index
int64 0
66.5k
| func_name
stringlengths 2
5.36k
| func_dep
stringlengths 16
2.19k
| func
stringlengths 8
55.3k
| test
stringlengths 0
7.07k
| opt
stringclasses 4
values | language
stringclasses 2
values | asm
stringlengths 0
45.4k
| ida_asm
stringlengths 0
44.7k
| ida_pseudo
stringlengths 0
44.3k
| ghidra_asm
stringlengths 0
49.1k
| ghidra_pseudo
stringlengths 0
64.7k
|
---|---|---|---|---|---|---|---|---|---|---|---|
10,700 |
bool google::protobuf::(anonymous namespace)::FlatAllocation<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, google::protobuf::SourceCodeInfo, google::protobuf::FileDescriptorTables, google::protobuf::MessageOptions, google::protobuf::FieldOptions, google::protobuf::EnumOptions, google::protobuf::EnumValueOptions, google::protobuf::ExtensionRangeOptions, google::protobuf::OneofOptions, google::protobuf::ServiceOptions, google::protobuf::MethodOptions, google::protobuf::FileOptions>::Init<google::protobuf::SourceCodeInfo>()
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc
|
bool Init() {
// Skip for the `char` block. No need to zero initialize it.
if (std::is_same<U, char>::value) return true;
for (char *p = data() + BeginOffset<U>(), *end = data() + EndOffset<U>();
p != end; p += sizeof(U)) {
::new (p) U{};
}
return true;
}
|
O0
|
cpp
|
bool google::protobuf::(anonymous namespace)::FlatAllocation<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, google::protobuf::SourceCodeInfo, google::protobuf::FileDescriptorTables, google::protobuf::MessageOptions, google::protobuf::FieldOptions, google::protobuf::EnumOptions, google::protobuf::EnumValueOptions, google::protobuf::ExtensionRangeOptions, google::protobuf::OneofOptions, google::protobuf::ServiceOptions, google::protobuf::MethodOptions, google::protobuf::FileOptions>::Init<google::protobuf::SourceCodeInfo>():
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq 0x30(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x68180
movq 0x10(%rsp), %rdi
movq %rax, 0x8(%rsp)
callq 0x68db0
movq 0x10(%rsp), %rdi
movl %eax, %ecx
movq 0x8(%rsp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, 0x28(%rsp)
callq 0x68180
movq 0x10(%rsp), %rdi
movq %rax, 0x18(%rsp)
callq 0x68de0
movl %eax, %ecx
movq 0x18(%rsp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rax
cmpq 0x20(%rsp), %rax
je 0x6bcbc
movq 0x28(%rsp), %rdi
callq 0x919a0
movq 0x28(%rsp), %rax
addq $0xa8, %rax
movq %rax, 0x28(%rsp)
jmp 0x6bc94
movb $0x1, %al
andb $0x1, %al
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
|
_ZN6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE4InitISJ_EEbv:
sub rsp, 38h
mov [rsp+38h+var_8], rdi
mov rdi, [rsp+38h+var_8]
mov [rsp+38h+var_28], rdi
call _ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE4dataEv; google::protobuf::`anonymous namespace'::FlatAllocation<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::data(void)
mov rdi, [rsp+38h+var_28]
mov [rsp+38h+var_30], rax
call _ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE11BeginOffsetISJ_EEiv; google::protobuf::`anonymous namespace'::FlatAllocation<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::BeginOffset<google::protobuf::FileOptions>(void)
mov rdi, [rsp+38h+var_28]
mov ecx, eax
mov rax, [rsp+38h+var_30]
movsxd rcx, ecx
add rax, rcx
mov [rsp+38h+var_10], rax
call _ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE4dataEv; google::protobuf::`anonymous namespace'::FlatAllocation<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::data(void)
mov rdi, [rsp+38h+var_28]
mov [rsp+38h+var_20], rax
call _ZNK6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9EndOffsetISJ_EEiv; google::protobuf::`anonymous namespace'::FlatAllocation<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::EndOffset<google::protobuf::FileOptions>(void)
mov ecx, eax
mov rax, [rsp+38h+var_20]
movsxd rcx, ecx
add rax, rcx
mov [rsp+38h+var_18], rax
loc_6BC94:
mov rax, [rsp+38h+var_10]
cmp rax, [rsp+38h+var_18]
jz short loc_6BCBC
mov rdi, [rsp+38h+var_10]; this
call _ZN6google8protobuf11FileOptionsC2Ev; google::protobuf::FileOptions::FileOptions(void)
mov rax, [rsp+38h+var_10]
add rax, 0A8h
mov [rsp+38h+var_10], rax
jmp short loc_6BC94
loc_6BCBC:
mov al, 1
and al, 1
add rsp, 38h
retn
|
char google::protobuf::`anonymous namespace'::FlatAllocation<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Init<google::protobuf::FileOptions>(
long long a1)
{
long long v2; // [rsp+8h] [rbp-30h]
long long v3; // [rsp+18h] [rbp-20h]
google::protobuf::FileOptions *v4; // [rsp+20h] [rbp-18h]
google::protobuf::FileOptions *v5; // [rsp+28h] [rbp-10h]
v2 = google::protobuf::`anonymous namespace'::FlatAllocation<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::data(a1);
v5 = (google::protobuf::FileOptions *)((int)google::protobuf::`anonymous namespace'::FlatAllocation<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::BeginOffset<google::protobuf::FileOptions>(a1)
+ v2);
v3 = google::protobuf::`anonymous namespace'::FlatAllocation<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::data(a1);
v4 = (google::protobuf::FileOptions *)((int)google::protobuf::`anonymous namespace'::FlatAllocation<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::EndOffset<google::protobuf::FileOptions>(a1)
+ v3);
while ( v5 != v4 )
{
google::protobuf::FileOptions::FileOptions(v5);
v5 = (google::protobuf::FileOptions *)((char *)v5 + 168);
}
return 1;
}
|
Init<google::protobuf::FileOptions>:
SUB RSP,0x38
MOV qword ptr [RSP + 0x30],RDI
MOV RDI,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x10],RDI
CALL 0x00168180
MOV RDI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x8],RAX
CALL 0x00168db0
MOV RDI,qword ptr [RSP + 0x10]
MOV ECX,EAX
MOV RAX,qword ptr [RSP + 0x8]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RSP + 0x28],RAX
CALL 0x00168180
MOV RDI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x18],RAX
CALL 0x00168de0
MOV ECX,EAX
MOV RAX,qword ptr [RSP + 0x18]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RSP + 0x20],RAX
LAB_0016bc94:
MOV RAX,qword ptr [RSP + 0x28]
CMP RAX,qword ptr [RSP + 0x20]
JZ 0x0016bcbc
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x001919a0
MOV RAX,qword ptr [RSP + 0x28]
ADD RAX,0xa8
MOV qword ptr [RSP + 0x28],RAX
JMP 0x0016bc94
LAB_0016bcbc:
MOV AL,0x1
AND AL,0x1
ADD RSP,0x38
RET
|
/* bool google::protobuf::(anonymous namespace)::FlatAllocation<char, std::__cxx11::string,
google::protobuf::SourceCodeInfo, google::protobuf::FileDescriptorTables,
google::protobuf::MessageOptions, google::protobuf::FieldOptions, google::protobuf::EnumOptions,
google::protobuf::EnumValueOptions, google::protobuf::ExtensionRangeOptions,
google::protobuf::OneofOptions, google::protobuf::ServiceOptions,
google::protobuf::MethodOptions,
google::protobuf::FileOptions>::Init<google::protobuf::FileOptions>() */
bool __thiscall
google::protobuf::(anonymous_namespace)::
FlatAllocation<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>
::Init<google::protobuf::FileOptions>
(FlatAllocation<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>
*this)
{
int iVar1;
int iVar2;
long lVar3;
long lVar4;
FileOptions *local_10;
lVar3 = data(this);
iVar1 = BeginOffset<google::protobuf::FileOptions>(this);
lVar4 = data(this);
iVar2 = EndOffset<google::protobuf::FileOptions>(this);
for (local_10 = (FileOptions *)(lVar3 + iVar1); local_10 != (FileOptions *)(lVar4 + iVar2);
local_10 = local_10 + 0xa8) {
FileOptions::FileOptions(local_10);
}
return true;
}
|
|
10,701 |
blst_fr_from_uint64
|
corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/exports.c
|
void blst_fr_from_uint64(vec256 ret, const unsigned long long a[4])
{
const union {
long one;
char little;
} is_endian = { 1 };
if (sizeof(limb_t) == 4 && !is_endian.little) {
int i;
for (i = 0; i < 4; i++) {
unsigned long long limb = a[i];
ret[2*i] = (limb_t)limb;
ret[2*i+1] = (limb_t)(limb >> 32);
}
a = (const unsigned long long *)ret;
}
mul_mont_sparse_256(ret, (const limb_t *)a, BLS12_381_rRR, BLS12_381_r, r0);
}
|
O3
|
c
|
blst_fr_from_uint64:
pushq %rbp
movq %rsp, %rbp
leaq 0x1abed(%rip), %rdx # 0x3fdc0
leaq 0x1a6d6(%rip), %rcx # 0x3f8b0
movabsq $-0x100000001, %r8 # imm = 0xFFFFFFFEFFFFFFFF
popq %rbp
jmp 0x35640
|
blst_fr_from_uint64:
push rbp
mov rbp, rsp
lea rdx, BLS12_381_rRR
lea rcx, BLS12_381_r
mov r8, 0FFFFFFFEFFFFFFFFh
pop rbp
jmp mul_mont_sparse_256
|
long long blst_fr_from_uint64(long long a1, long long a2)
{
return mul_mont_sparse_256(a1, a2, &BLS12_381_rRR, &BLS12_381_r, 0xFFFFFFFEFFFFFFFFLL);
}
|
blst_fr_from_uint64:
PUSH RBP
MOV RBP,RSP
LEA RDX,[0x13fdc0]
LEA RCX,[0x13f8b0]
MOV R8,-0x100000001
POP RBP
JMP 0x00135640
|
void blst_fr_from_uint64(int8 param_1,int8 param_2)
{
mul_mont_sparse_256(param_1,param_2,BLS12_381_rRR,BLS12_381_r,0xfffffffeffffffff);
return;
}
|
|
10,702 |
setup_key_functions
|
eloqsql/storage/myisam/mi_open.c
|
static void setup_key_functions(register MI_KEYDEF *keyinfo)
{
if (keyinfo->key_alg == HA_KEY_ALG_RTREE)
{
#ifdef HAVE_RTREE_KEYS
keyinfo->ck_insert = rtree_insert;
keyinfo->ck_delete = rtree_delete;
#else
DBUG_ASSERT(0); /* mi_open should check it never happens */
#endif
}
else
{
keyinfo->ck_insert = _mi_ck_write;
keyinfo->ck_delete = _mi_ck_delete;
}
if (keyinfo->flag & HA_BINARY_PACK_KEY)
{ /* Simple prefix compression */
keyinfo->bin_search=_mi_seq_search;
keyinfo->get_key=_mi_get_binary_pack_key;
keyinfo->pack_key=_mi_calc_bin_pack_key_length;
keyinfo->store_key=_mi_store_bin_pack_key;
}
else if (keyinfo->flag & HA_VAR_LENGTH_KEY)
{
keyinfo->get_key= _mi_get_pack_key;
if (keyinfo->seg[0].flag & HA_PACK_KEY)
{ /* Prefix compression */
/*
_mi_prefix_search() compares end-space against ASCII blank (' ').
It cannot be used for character sets, that do not encode the
blank character like ASCII does. UCS2 is an example. All
character sets with a fixed width > 1 or a mimimum width > 1
cannot represent blank like ASCII does. In these cases we have
to use _mi_seq_search() for the search.
*/
if (!keyinfo->seg->charset || use_strnxfrm(keyinfo->seg->charset) ||
(keyinfo->seg->flag & HA_NULL_PART) ||
(keyinfo->seg->charset->mbminlen > 1))
keyinfo->bin_search=_mi_seq_search;
else
keyinfo->bin_search=_mi_prefix_search;
keyinfo->pack_key=_mi_calc_var_pack_key_length;
keyinfo->store_key=_mi_store_var_pack_key;
}
else
{
keyinfo->bin_search=_mi_seq_search;
keyinfo->pack_key=_mi_calc_var_key_length; /* Variable length key */
keyinfo->store_key=_mi_store_static_key;
}
}
else
{
keyinfo->bin_search=_mi_bin_search;
keyinfo->get_key=_mi_get_static_key;
keyinfo->pack_key=_mi_calc_static_key_length;
keyinfo->store_key=_mi_store_static_key;
}
return;
}
|
O3
|
c
|
setup_key_functions:
pushq %rbp
movq %rsp, %rbp
cmpb $0x2, 0xc(%rdi)
leaq 0x8940(%rip), %rax # 0x88103
cmoveq 0x304805(%rip), %rax # 0x383fd0
leaq -0xabdd(%rip), %rcx # 0x74bf5
cmoveq 0x3047a6(%rip), %rcx # 0x383f80
movq %rax, 0x60(%rdi)
movq %rcx, 0x68(%rdi)
movzwl 0xa(%rdi), %eax
testb $0x20, %al
jne 0x7f80c
testb $0x8, %al
jne 0x7f83f
leaq 0x7197(%rip), %rax # 0x8698c
leaq 0x6987(%rip), %rdx # 0x86183
leaq 0x5be0(%rip), %rcx # 0x853e3
leaq 0x4ec4(%rip), %rsi # 0x846ce
jmp 0x7f828
leaq 0x737c(%rip), %rax # 0x86b8f
leaq 0x6fbd(%rip), %rdx # 0x867d7
leaq 0x5f05(%rip), %rcx # 0x85726
leaq 0x4fd7(%rip), %rsi # 0x847ff
movq %rsi, 0x40(%rdi)
movl $0x48, %esi
movq %rcx, (%rdi,%rsi)
movq %rdx, 0x50(%rdi)
movq %rax, 0x58(%rdi)
popq %rbp
retq
leaq 0x5bdd(%rip), %rax # 0x85423
movq %rax, 0x48(%rdi)
movq 0x28(%rdi), %rax
movzwl 0x12(%rax), %r8d
leaq 0x4fa5(%rip), %rcx # 0x847ff
movl $0x40, %esi
testb $0x2, %r8b
jne 0x7f875
leaq 0x7120(%rip), %rax # 0x8698c
leaq 0x6927(%rip), %rdx # 0x8619a
jmp 0x7f831
movq (%rax), %r9
leaq 0x7121(%rip), %rax # 0x869a0
leaq 0x6938(%rip), %rdx # 0x861be
testq %r9, %r9
je 0x7f831
movl 0xc(%r9), %r10d
andl $0x40, %r10d
andl $0x10, %r8d
orl %r10d, %r8d
jne 0x7f831
cmpl $0x2, 0x98(%r9)
jb 0x7f8af
leaq 0x4f52(%rip), %rcx # 0x847ff
jmp 0x7f831
leaq 0x50fb(%rip), %rcx # 0x849b1
jmp 0x7f831
|
setup_key_functions_0:
push rbp
mov rbp, rsp
cmp byte ptr [rdi+0Ch], 2
lea rax, _mi_ck_write
cmovz rax, cs:rtree_insert_ptr
lea rcx, _mi_ck_delete
cmovz rcx, cs:rtree_delete_ptr
mov [rdi+60h], rax
mov [rdi+68h], rcx
movzx eax, word ptr [rdi+0Ah]
test al, 20h
jnz short loc_7F80C
test al, 8
jnz short loc_7F83F
lea rax, _mi_store_static_key
lea rdx, _mi_calc_static_key_length
lea rcx, _mi_get_static_key
lea rsi, _mi_bin_search
jmp short loc_7F828
loc_7F80C:
lea rax, _mi_store_bin_pack_key
lea rdx, _mi_calc_bin_pack_key_length
lea rcx, _mi_get_binary_pack_key
lea rsi, _mi_seq_search
loc_7F828:
mov [rdi+40h], rsi
mov esi, 48h ; 'H'
loc_7F831:
mov [rdi+rsi], rcx
mov [rdi+50h], rdx
mov [rdi+58h], rax
pop rbp
retn
loc_7F83F:
lea rax, _mi_get_pack_key
mov [rdi+48h], rax
mov rax, [rdi+28h]
movzx r8d, word ptr [rax+12h]
lea rcx, _mi_seq_search
mov esi, 40h ; '@'
test r8b, 2
jnz short loc_7F875
lea rax, _mi_store_static_key
lea rdx, _mi_calc_var_key_length
jmp short loc_7F831
loc_7F875:
mov r9, [rax]
lea rax, _mi_store_var_pack_key
lea rdx, _mi_calc_var_pack_key_length
test r9, r9
jz short loc_7F831
mov r10d, [r9+0Ch]
and r10d, 40h
and r8d, 10h
or r8d, r10d
jnz short loc_7F831
cmp dword ptr [r9+98h], 2
jb short loc_7F8AF
lea rcx, _mi_seq_search
jmp short loc_7F831
loc_7F8AF:
lea rcx, _mi_prefix_search
jmp loc_7F831
|
long long ( * setup_key_functions_0(long long a1))()
{
long long ( *v1)(); // rax
long long ( *v2)(long long, unsigned int, long long, long long); // rcx
__int16 v3; // ax
long long ( *result)(); // rax
long long ( *v5)(int, int, int, int, int, int, long long); // rdx
long long ( *v6)(); // rcx
long long ( *v7)(int, int, int, int, int, int, long long, long long, long long); // rsi
long long v8; // rsi
long long *v9; // rax
__int16 v10; // r8
long long v11; // r9
v1 = (long long ( *)())mi_ck_write;
if ( *(_BYTE *)(a1 + 12) == 2 )
v1 = rtree_insert;
v2 = mi_ck_delete;
if ( *(_BYTE *)(a1 + 12) == 2 )
v2 = (long long ( *)(long long, unsigned int, long long, long long))rtree_delete;
*(_QWORD *)(a1 + 96) = v1;
*(_QWORD *)(a1 + 104) = v2;
v3 = *(_WORD *)(a1 + 10);
if ( (v3 & 0x20) != 0 )
{
result = mi_store_bin_pack_key;
v5 = mi_calc_bin_pack_key_length;
v6 = mi_get_binary_pack_key;
v7 = mi_seq_search;
goto LABEL_9;
}
if ( (v3 & 8) == 0 )
{
result = mi_store_static_key;
v5 = mi_calc_static_key_length;
v6 = mi_get_static_key;
v7 = (long long ( *)(int, int, int, int, int, int, long long, long long, long long))mi_bin_search;
LABEL_9:
*(_QWORD *)(a1 + 64) = v7;
v8 = 72LL;
goto LABEL_10;
}
*(_QWORD *)(a1 + 72) = mi_get_pack_key;
v9 = *(long long **)(a1 + 40);
v10 = *((_WORD *)v9 + 9);
v6 = (long long ( *)())mi_seq_search;
v8 = 64LL;
if ( (v10 & 2) != 0 )
{
v11 = *v9;
result = mi_store_var_pack_key;
v5 = mi_calc_var_pack_key_length;
if ( v11 && !(*(_DWORD *)(v11 + 12) & 0x40 | v10 & 0x10) )
{
if ( *(_DWORD *)(v11 + 152) < 2u )
v6 = (long long ( *)())mi_prefix_search;
else
v6 = (long long ( *)())mi_seq_search;
}
}
else
{
result = mi_store_static_key;
v5 = mi_calc_var_key_length;
}
LABEL_10:
*(_QWORD *)(a1 + v8) = v6;
*(_QWORD *)(a1 + 80) = v5;
*(_QWORD *)(a1 + 88) = result;
return result;
}
|
setup_key_functions:
PUSH RBP
MOV RBP,RSP
CMP byte ptr [RDI + 0xc],0x2
LEA RAX,[0x188103]
CMOVZ RAX,qword ptr [0x00483fd0]
LEA RCX,[0x174bf5]
CMOVZ RCX,qword ptr [0x00483f80]
MOV qword ptr [RDI + 0x60],RAX
MOV qword ptr [RDI + 0x68],RCX
MOVZX EAX,word ptr [RDI + 0xa]
TEST AL,0x20
JNZ 0x0017f80c
TEST AL,0x8
JNZ 0x0017f83f
LEA RAX,[0x18698c]
LEA RDX,[0x186183]
LEA RCX,[0x1853e3]
LEA RSI,[0x1846ce]
JMP 0x0017f828
LAB_0017f80c:
LEA RAX,[0x186b8f]
LEA RDX,[0x1867d7]
LEA RCX,[0x185726]
LEA RSI,[0x1847ff]
LAB_0017f828:
MOV qword ptr [RDI + 0x40],RSI
MOV ESI,0x48
LAB_0017f831:
MOV qword ptr [RDI + RSI*0x1],RCX
MOV qword ptr [RDI + 0x50],RDX
MOV qword ptr [RDI + 0x58],RAX
POP RBP
RET
LAB_0017f83f:
LEA RAX,[0x185423]
MOV qword ptr [RDI + 0x48],RAX
MOV RAX,qword ptr [RDI + 0x28]
MOVZX R8D,word ptr [RAX + 0x12]
LEA RCX,[0x1847ff]
MOV ESI,0x40
TEST R8B,0x2
JNZ 0x0017f875
LEA RAX,[0x18698c]
LEA RDX,[0x18619a]
JMP 0x0017f831
LAB_0017f875:
MOV R9,qword ptr [RAX]
LEA RAX,[0x1869a0]
LEA RDX,[0x1861be]
TEST R9,R9
JZ 0x0017f831
MOV R10D,dword ptr [R9 + 0xc]
AND R10D,0x40
AND R8D,0x10
OR R8D,R10D
JNZ 0x0017f831
CMP dword ptr [R9 + 0x98],0x2
JC 0x0017f8af
LEA RCX,[0x1847ff]
JMP 0x0017f831
LAB_0017f8af:
LEA RCX,[0x1849b1]
JMP 0x0017f831
|
void setup_key_functions(long param_1)
{
ushort uVar1;
long lVar2;
code *pcVar3;
code *pcVar4;
code *pcVar5;
code *pcVar6;
long lVar7;
bool bVar8;
bVar8 = *(char *)(param_1 + 0xc) == '\x02';
pcVar3 = _mi_ck_write;
if (bVar8) {
pcVar3 = (code *)PTR_rtree_insert_00483fd0;
}
pcVar4 = _mi_ck_delete;
if (bVar8) {
pcVar4 = (code *)PTR_rtree_delete_00483f80;
}
*(code **)(param_1 + 0x60) = pcVar3;
*(code **)(param_1 + 0x68) = pcVar4;
if ((*(ushort *)(param_1 + 10) & 0x20) == 0) {
if ((*(ushort *)(param_1 + 10) & 8) != 0) {
*(code **)(param_1 + 0x48) = _mi_get_pack_key;
uVar1 = *(ushort *)((long)*(long **)(param_1 + 0x28) + 0x12);
pcVar4 = _mi_seq_search;
lVar7 = 0x40;
if ((uVar1 & 2) == 0) {
pcVar3 = _mi_store_static_key;
pcVar5 = _mi_calc_var_key_length;
}
else {
lVar2 = **(long **)(param_1 + 0x28);
pcVar3 = _mi_store_var_pack_key;
pcVar5 = _mi_calc_var_pack_key_length;
if ((lVar2 != 0) && ((uVar1 & 0x10) == 0 && (*(uint *)(lVar2 + 0xc) & 0x40) == 0)) {
if (*(uint *)(lVar2 + 0x98) < 2) {
pcVar4 = _mi_prefix_search;
}
else {
pcVar4 = _mi_seq_search;
}
}
}
goto LAB_0017f831;
}
pcVar3 = _mi_store_static_key;
pcVar5 = _mi_calc_static_key_length;
pcVar4 = _mi_get_static_key;
pcVar6 = _mi_bin_search;
}
else {
pcVar3 = _mi_store_bin_pack_key;
pcVar5 = _mi_calc_bin_pack_key_length;
pcVar4 = _mi_get_binary_pack_key;
pcVar6 = _mi_seq_search;
}
*(code **)(param_1 + 0x40) = pcVar6;
lVar7 = 0x48;
LAB_0017f831:
*(code **)(param_1 + lVar7) = pcVar4;
*(code **)(param_1 + 0x50) = pcVar5;
*(code **)(param_1 + 0x58) = pcVar3;
return;
}
|
|
10,703 |
ma_get_indicator
|
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
|
static signed char ma_get_indicator(MYSQL_STMT *stmt, unsigned int param_nr, unsigned long row_nr)
{
if (!MARIADB_STMT_BULK_SUPPORTED(stmt) ||
!stmt->array_size ||
!stmt->params[param_nr].u.indicator)
return 0;
if (stmt->param_callback)
return *stmt->params[param_nr].u.indicator;
if (stmt->row_size)
return *((char *)stmt->params[param_nr].u.indicator + (row_nr * stmt->row_size));
return stmt->params[param_nr].u.indicator[row_nr];
}
|
O0
|
c
|
ma_get_indicator:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0x243e6
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x370(%rax), %rax
andq $0x1, %rax
cmpq $0x0, %rax
jne 0x243e6
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x4f0(%rax), %rax
movq 0x70(%rax), %rax
andq $0x4, %rax
cmpq $0x0, %rax
je 0x243e6
movq -0x10(%rbp), %rax
cmpl $0x0, 0x368(%rax)
je 0x243e6
movq -0x10(%rbp), %rax
movq 0x70(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, 0x20(%rax)
jne 0x243ef
movb $0x0, -0x1(%rbp)
jmp 0x24476
movq -0x10(%rbp), %rax
cmpq $0x0, 0x390(%rax)
je 0x2441a
movq -0x10(%rbp), %rax
movq 0x70(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rax
movb (%rax), %al
movb %al, -0x1(%rbp)
jmp 0x24476
movq -0x10(%rbp), %rax
cmpq $0x0, 0x370(%rax)
je 0x24456
movq -0x10(%rbp), %rax
movq 0x70(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rax
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rdx
imulq 0x370(%rdx), %rcx
movb (%rax,%rcx), %al
movb %al, -0x1(%rbp)
jmp 0x24476
movq -0x10(%rbp), %rax
movq 0x70(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rax
movq -0x20(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
popq %rbp
retq
nopl (%rax,%rax)
|
ma_get_indicator:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
cmp qword ptr [rax+38h], 0
jz short loc_243E6
mov rax, [rbp+var_10]
mov rax, [rax+38h]
mov rax, [rax+370h]
and rax, 1
cmp rax, 0
jnz short loc_243E6
mov rax, [rbp+var_10]
mov rax, [rax+38h]
mov rax, [rax+4F0h]
mov rax, [rax+70h]
and rax, 4
cmp rax, 0
jz short loc_243E6
mov rax, [rbp+var_10]
cmp dword ptr [rax+368h], 0
jz short loc_243E6
mov rax, [rbp+var_10]
mov rax, [rax+70h]
mov ecx, [rbp+var_14]
imul rcx, 70h ; 'p'
add rax, rcx
cmp qword ptr [rax+20h], 0
jnz short loc_243EF
loc_243E6:
mov [rbp+var_1], 0
jmp loc_24476
loc_243EF:
mov rax, [rbp+var_10]
cmp qword ptr [rax+390h], 0
jz short loc_2441A
mov rax, [rbp+var_10]
mov rax, [rax+70h]
mov ecx, [rbp+var_14]
imul rcx, 70h ; 'p'
add rax, rcx
mov rax, [rax+20h]
mov al, [rax]
mov [rbp+var_1], al
jmp short loc_24476
loc_2441A:
mov rax, [rbp+var_10]
cmp qword ptr [rax+370h], 0
jz short loc_24456
mov rax, [rbp+var_10]
mov rax, [rax+70h]
mov ecx, [rbp+var_14]
imul rcx, 70h ; 'p'
add rax, rcx
mov rax, [rax+20h]
mov rcx, [rbp+var_20]
mov rdx, [rbp+var_10]
imul rcx, [rdx+370h]
mov al, [rax+rcx]
mov [rbp+var_1], al
jmp short loc_24476
loc_24456:
mov rax, [rbp+var_10]
mov rax, [rax+70h]
mov ecx, [rbp+var_14]
imul rcx, 70h ; 'p'
add rax, rcx
mov rax, [rax+20h]
mov rcx, [rbp+var_20]
mov al, [rax+rcx]
mov [rbp+var_1], al
loc_24476:
mov al, [rbp+var_1]
pop rbp
retn
|
char ma_get_indicator(long long a1, unsigned int a2, long long a3)
{
if ( !*(_QWORD *)(a1 + 56)
|| (*(_QWORD *)(*(_QWORD *)(a1 + 56) + 880LL) & 1LL) != 0
|| (*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 56) + 1264LL) + 112LL) & 4LL) == 0
|| !*(_DWORD *)(a1 + 872)
|| !*(_QWORD *)(112LL * a2 + *(_QWORD *)(a1 + 112) + 32) )
{
return 0;
}
if ( *(_QWORD *)(a1 + 912) )
return **(_BYTE **)(112LL * a2 + *(_QWORD *)(a1 + 112) + 32);
if ( *(_QWORD *)(a1 + 880) )
return *(_BYTE *)(*(_QWORD *)(112LL * a2 + *(_QWORD *)(a1 + 112) + 32) + *(_QWORD *)(a1 + 880) * a3);
else
return *(_BYTE *)(*(_QWORD *)(112LL * a2 + *(_QWORD *)(a1 + 112) + 32) + a3);
}
|
ma_get_indicator:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x38],0x0
JZ 0x001243e6
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x38]
MOV RAX,qword ptr [RAX + 0x370]
AND RAX,0x1
CMP RAX,0x0
JNZ 0x001243e6
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x38]
MOV RAX,qword ptr [RAX + 0x4f0]
MOV RAX,qword ptr [RAX + 0x70]
AND RAX,0x4
CMP RAX,0x0
JZ 0x001243e6
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x368],0x0
JZ 0x001243e6
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x70]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x70
ADD RAX,RCX
CMP qword ptr [RAX + 0x20],0x0
JNZ 0x001243ef
LAB_001243e6:
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00124476
LAB_001243ef:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x390],0x0
JZ 0x0012441a
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x70]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x20]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x1],AL
JMP 0x00124476
LAB_0012441a:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x370],0x0
JZ 0x00124456
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x70]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x10]
IMUL RCX,qword ptr [RDX + 0x370]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x1],AL
JMP 0x00124476
LAB_00124456:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x70]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + -0x20]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x1],AL
LAB_00124476:
MOV AL,byte ptr [RBP + -0x1]
POP RBP
RET
|
int1 ma_get_indicator(long param_1,uint param_2,long param_3)
{
int1 local_9;
if ((((*(long *)(param_1 + 0x38) == 0) ||
((*(ulong *)(*(long *)(param_1 + 0x38) + 0x370) & 1) != 0)) ||
((*(ulong *)(*(long *)(*(long *)(param_1 + 0x38) + 0x4f0) + 0x70) & 4) == 0)) ||
((*(int *)(param_1 + 0x368) == 0 ||
(*(long *)(*(long *)(param_1 + 0x70) + (ulong)param_2 * 0x70 + 0x20) == 0)))) {
local_9 = 0;
}
else if (*(long *)(param_1 + 0x390) == 0) {
if (*(long *)(param_1 + 0x370) == 0) {
local_9 = *(int1 *)
(*(long *)(*(long *)(param_1 + 0x70) + (ulong)param_2 * 0x70 + 0x20) + param_3);
}
else {
local_9 = *(int1 *)
(*(long *)(*(long *)(param_1 + 0x70) + (ulong)param_2 * 0x70 + 0x20) +
param_3 * *(long *)(param_1 + 0x370));
}
}
else {
local_9 = **(int1 **)(*(long *)(param_1 + 0x70) + (ulong)param_2 * 0x70 + 0x20);
}
return local_9;
}
|
|
10,704 |
inline_mysql_file_delete
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline int
inline_mysql_file_delete(
#ifdef HAVE_PSI_FILE_INTERFACE
PSI_file_key key, const char *src_file, uint src_line,
#endif
const char *name, myf flags)
{
int result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_name_locker)(&state, key, PSI_FILE_DELETE, name, &locker);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_close_wait)(locker, src_file, src_line);
result= my_delete(name, flags);
PSI_FILE_CALL(end_file_close_wait)(locker, result);
return result;
}
#endif
result= my_delete(name, flags);
return result;
}
|
O0
|
c
|
inline_mysql_file_delete:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
leaq 0x267d74(%rip), %rax # 0x2bf0b8
movq (%rax), %rax
movq 0x148(%rax), %rax
movl -0x8(%rbp), %esi
movq -0x20(%rbp), %rcx
leaq -0x80(%rbp), %rdi
movl $0xe, %edx
leaq -0x38(%rbp), %r8
callq *%rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%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 0x573d8
leaq 0x267d29(%rip), %rax # 0x2bf0b8
movq (%rax), %rax
movq 0x220(%rax), %rax
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
callq *%rax
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xef130
movl %eax, -0x2c(%rbp)
leaq 0x267cfb(%rip), %rax # 0x2bf0b8
movq (%rax), %rax
movq 0x228(%rax), %rax
movq -0x38(%rbp), %rdi
movl -0x2c(%rbp), %esi
callq *%rax
movl -0x2c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x573ee
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xef130
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
inline_mysql_file_delete_0:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_8], edi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+148h]
mov esi, [rbp+var_8]
mov rcx, [rbp+var_20]
lea rdi, [rbp+var_80]
mov edx, 0Eh
lea r8, [rbp+var_38]
call rax
mov [rbp+var_38], rax
cmp [rbp+var_38], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_573D8
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+220h]
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_10]
mov edx, [rbp+var_14]
call rax
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_28]
call my_delete
mov [rbp+var_2C], eax
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+228h]
mov rdi, [rbp+var_38]
mov esi, [rbp+var_2C]
call rax
mov eax, [rbp+var_2C]
mov [rbp+var_4], eax
jmp short loc_573EE
loc_573D8:
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_28]
call my_delete
mov [rbp+var_2C], eax
mov eax, [rbp+var_2C]
mov [rbp+var_4], eax
loc_573EE:
mov eax, [rbp+var_4]
add rsp, 80h
pop rbp
retn
|
long long inline_mysql_file_delete_0(unsigned int a1, long long a2, unsigned int a3, long long a4, long long a5)
{
_BYTE v6[72]; // [rsp+0h] [rbp-80h] BYREF
long long v7; // [rsp+48h] [rbp-38h] BYREF
unsigned int v8; // [rsp+54h] [rbp-2Ch]
long long v9; // [rsp+58h] [rbp-28h]
long long v10; // [rsp+60h] [rbp-20h]
unsigned int v11; // [rsp+6Ch] [rbp-14h]
long long v12; // [rsp+70h] [rbp-10h]
unsigned int v13; // [rsp+78h] [rbp-8h]
v13 = a1;
v12 = a2;
v11 = a3;
v10 = a4;
v9 = a5;
v7 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, long long *))PSI_server[41])(v6, a1, 14LL, a4, &v7);
if ( v7 )
{
((void ( *)(long long, long long, _QWORD))PSI_server[68])(v7, v12, v11);
v8 = my_delete(v10, v9);
((void ( *)(long long, _QWORD))PSI_server[69])(v7, v8);
}
else
{
return (unsigned int)my_delete(v10, v9);
}
return v8;
}
|
inline_mysql_file_delete:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV dword ptr [RBP + -0x8],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
LEA RAX,[0x3bf0b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x148]
MOV ESI,dword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x80]
MOV EDX,0xe
LEA R8,[RBP + -0x38]
CALL RAX
MOV qword ptr [RBP + -0x38],RAX
CMP qword ptr [RBP + -0x38],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 0x001573d8
LEA RAX,[0x3bf0b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x220]
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x14]
CALL RAX
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x28]
CALL 0x001ef130
MOV dword ptr [RBP + -0x2c],EAX
LEA RAX,[0x3bf0b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x228]
MOV RDI,qword ptr [RBP + -0x38]
MOV ESI,dword ptr [RBP + -0x2c]
CALL RAX
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001573ee
LAB_001573d8:
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x28]
CALL 0x001ef130
MOV dword ptr [RBP + -0x2c],EAX
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x4],EAX
LAB_001573ee:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x80
POP RBP
RET
|
int4
inline_mysql_file_delete
(int4 param_1,int8 param_2,int4 param_3,int8 param_4,
int8 param_5)
{
int1 local_88 [72];
long local_40;
int4 local_34;
int8 local_30;
int8 local_28;
int4 local_1c;
int8 local_18;
int4 local_10;
int4 local_c;
local_30 = param_5;
local_28 = param_4;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
local_40 = (**(code **)(PSI_server + 0x148))(local_88,param_1,0xe,param_4,&local_40);
if (local_40 == 0) {
local_c = my_delete(local_28,local_30);
}
else {
(**(code **)(PSI_server + 0x220))(local_40,local_18,local_1c);
local_34 = my_delete(local_28,local_30);
(**(code **)(PSI_server + 0x228))(local_40,local_34);
local_c = local_34;
}
return local_c;
}
|
|
10,705 |
my_thread_destroy_common_mutex
|
eloqsql/mysys/my_thr_init.c
|
void my_thread_destroy_common_mutex(void)
{
mysql_mutex_destroy(&THR_LOCK_open);
mysql_mutex_destroy(&THR_LOCK_lock);
mysql_mutex_destroy(&THR_LOCK_myisam);
mysql_mutex_destroy(&THR_LOCK_myisam_mmap);
mysql_mutex_destroy(&THR_LOCK_heap);
mysql_mutex_destroy(&THR_LOCK_net);
mysql_mutex_destroy(&THR_LOCK_charset);
#if !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R)
mysql_mutex_destroy(&LOCK_localtime_r);
#endif
}
|
O0
|
c
|
my_thread_destroy_common_mutex:
pushq %rbp
movq %rsp, %rbp
leaq 0x362475(%rip), %rdi # 0x391b10
callq 0x2f6f0
leaq 0x3624b1(%rip), %rdi # 0x391b58
callq 0x2f6f0
leaq 0x3624ed(%rip), %rdi # 0x391ba0
callq 0x2f6f0
leaq 0x362529(%rip), %rdi # 0x391be8
callq 0x2f6f0
leaq 0x362565(%rip), %rdi # 0x391c30
callq 0x2f6f0
leaq 0x3625a1(%rip), %rdi # 0x391c78
callq 0x2f6f0
leaq 0x3625dd(%rip), %rdi # 0x391cc0
callq 0x2f6f0
popq %rbp
retq
nopw (%rax,%rax)
|
my_thread_destroy_common_mutex:
push rbp
mov rbp, rsp
lea rdi, THR_LOCK_open
call inline_mysql_mutex_destroy
lea rdi, THR_LOCK_lock
call inline_mysql_mutex_destroy
lea rdi, THR_LOCK_myisam
call inline_mysql_mutex_destroy
lea rdi, THR_LOCK_myisam_mmap
call inline_mysql_mutex_destroy
lea rdi, THR_LOCK_heap
call inline_mysql_mutex_destroy
lea rdi, THR_LOCK_net
call inline_mysql_mutex_destroy
lea rdi, THR_LOCK_charset
call inline_mysql_mutex_destroy
pop rbp
retn
|
long long my_thread_destroy_common_mutex()
{
inline_mysql_mutex_destroy(&THR_LOCK_open);
inline_mysql_mutex_destroy(&THR_LOCK_lock);
inline_mysql_mutex_destroy(&THR_LOCK_myisam);
inline_mysql_mutex_destroy(&THR_LOCK_myisam_mmap);
inline_mysql_mutex_destroy(&THR_LOCK_heap);
inline_mysql_mutex_destroy(&THR_LOCK_net);
return inline_mysql_mutex_destroy(&THR_LOCK_charset);
}
|
my_thread_destroy_common_mutex:
PUSH RBP
MOV RBP,RSP
LEA RDI,[0x491b10]
CALL 0x0012f6f0
LEA RDI,[0x491b58]
CALL 0x0012f6f0
LEA RDI,[0x491ba0]
CALL 0x0012f6f0
LEA RDI,[0x491be8]
CALL 0x0012f6f0
LEA RDI,[0x491c30]
CALL 0x0012f6f0
LEA RDI,[0x491c78]
CALL 0x0012f6f0
LEA RDI,[0x491cc0]
CALL 0x0012f6f0
POP RBP
RET
|
void my_thread_destroy_common_mutex(void)
{
inline_mysql_mutex_destroy(THR_LOCK_open);
inline_mysql_mutex_destroy(THR_LOCK_lock);
inline_mysql_mutex_destroy(THR_LOCK_myisam);
inline_mysql_mutex_destroy(THR_LOCK_myisam_mmap);
inline_mysql_mutex_destroy(THR_LOCK_heap);
inline_mysql_mutex_destroy(THR_LOCK_net);
inline_mysql_mutex_destroy(THR_LOCK_charset);
return;
}
|
|
10,706 |
nglog::base_logging::LogStreamBuf::~LogStreamBuf()
|
ng-log[P]ng-log/src/ng-log/logging.h
|
class NGLOG_EXPORT LogStreamBuf : public std::streambuf {
public:
// REQUIREMENTS: "len" must be >= 2 to account for the '\n' and '\0'.
LogStreamBuf(char* buf, int len) { setp(buf, buf + len - 2); }
// This effectively ignores overflow.
int_type overflow(int_type ch) { return ch; }
// Legacy public ostrstream method.
size_t pcount() const { return static_cast<size_t>(pptr() - pbase()); }
char* pbase() const { return std::streambuf::pbase(); }
}
|
O3
|
c
|
nglog::base_logging::LogStreamBuf::~LogStreamBuf():
pushq %rbx
movq %rdi, %rbx
movq 0x26ea7(%rip), %rax # 0x30f28
addq $0x10, %rax
movq %rax, (%rdi)
addq $0x38, %rdi
callq 0x7770
movq %rbx, %rdi
popq %rbx
jmp 0x7630
|
_ZN5nglog12base_logging12LogStreamBufD0Ev:
push rbx
mov rbx, rdi
mov rax, cs:_ZTVSt15basic_streambufIcSt11char_traitsIcEE_ptr
add rax, 10h
mov [rdi], rax
add rdi, 38h ; '8'; this
call __ZNSt6localeD1Ev; std::locale::~locale()
mov rdi, rbx
pop rbx
jmp _free
|
void nglog::base_logging::LogStreamBuf::~LogStreamBuf(nglog::base_logging::LogStreamBuf *this)
{
*(_QWORD *)this = (char *)&`vtable for'std::streambuf + 16;
std::locale::~locale((nglog::base_logging::LogStreamBuf *)((char *)this + 56));
free(this);
}
|
~LogStreamBuf:
PUSH RBX
MOV RBX,RDI
MOV RAX,qword ptr [0x00130f28]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
ADD RDI,0x38
CALL 0x00107770
MOV RDI,RBX
POP RBX
JMP 0x00107630
|
/* nglog::base_logging::LogStreamBuf::~LogStreamBuf() */
void __thiscall nglog::base_logging::LogStreamBuf::~LogStreamBuf(LogStreamBuf *this)
{
*(int **)this = PTR_vtable_00130f28 + 0x10;
std::locale::~locale((locale *)(this + 0x38));
free(this);
return;
}
|
|
10,707 |
mysql_load_plugin
|
eloqsql/build_O0/libmariadb/libmariadb/ma_client_plugin.c
|
struct st_mysql_client_plugin * STDCALL
mysql_load_plugin(MYSQL *mysql, const char *name, int type, int argc, ...)
{
struct st_mysql_client_plugin *p;
va_list args;
va_start(args, argc);
p= mysql_load_plugin_v(mysql, name, type, argc, args);
va_end(args);
return p;
}
|
O0
|
c
|
mysql_load_plugin:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
testb %al, %al
je 0x3601b
movaps %xmm0, -0xc0(%rbp)
movaps %xmm1, -0xb0(%rbp)
movaps %xmm2, -0xa0(%rbp)
movaps %xmm3, -0x90(%rbp)
movaps %xmm4, -0x80(%rbp)
movaps %xmm5, -0x70(%rbp)
movaps %xmm6, -0x60(%rbp)
movaps %xmm7, -0x50(%rbp)
movq %r9, -0xc8(%rbp)
movq %r8, -0xd0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
leaq -0xf0(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movl $0x30, -0x3c(%rbp)
movl $0x20, -0x40(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movl -0x18(%rbp), %ecx
leaq -0x40(%rbp), %r8
callq 0x35bf0
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
addq $0xf0, %rsp
popq %rbp
retq
|
mysql_load_plugin:
push rbp
mov rbp, rsp
sub rsp, 0F0h
test al, al
jz short loc_3601B
movaps [rbp+var_C0], xmm0
movaps [rbp+var_B0], xmm1
movaps [rbp+var_A0], xmm2
movaps [rbp+var_90], xmm3
movaps [rbp+var_80], xmm4
movaps [rbp+var_70], xmm5
movaps [rbp+var_60], xmm6
movaps [rbp+var_50], xmm7
loc_3601B:
mov [rbp+var_C8], r9
mov [rbp+var_D0], r8
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_18], ecx
lea rax, [rbp+var_F0]
mov [rbp+var_30], rax
lea rax, [rbp+arg_0]
mov [rbp+var_38], rax
mov [rbp+var_3C], 30h ; '0'
mov [rbp+var_40], 20h ; ' '
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov edx, [rbp+var_14]
mov ecx, [rbp+var_18]
lea r8, [rbp+var_40]
call mysql_load_plugin_v
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
add rsp, 0F0h
pop rbp
retn
|
void (**mysql_load_plugin(long long a1, const char *a2, signed int a3, unsigned int a4, ...))(void)
{
va_list va; // [rsp+B0h] [rbp-40h] BYREF
unsigned int v6; // [rsp+D8h] [rbp-18h]
signed int v7; // [rsp+DCh] [rbp-14h]
const char *v8; // [rsp+E0h] [rbp-10h]
long long v9; // [rsp+E8h] [rbp-8h]
va_start(va, a4);
v9 = a1;
v8 = a2;
v7 = a3;
v6 = a4;
return mysql_load_plugin_v(a1, a2, a3, a4, (long long)va);
}
|
mysql_load_plugin:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xf0
TEST AL,AL
JZ 0x0013601b
MOVAPS xmmword ptr [RBP + -0xc0],XMM0
MOVAPS xmmword ptr [RBP + -0xb0],XMM1
MOVAPS xmmword ptr [RBP + -0xa0],XMM2
MOVAPS xmmword ptr [RBP + -0x90],XMM3
MOVAPS xmmword ptr [RBP + -0x80],XMM4
MOVAPS xmmword ptr [RBP + -0x70],XMM5
MOVAPS xmmword ptr [RBP + -0x60],XMM6
MOVAPS xmmword ptr [RBP + -0x50],XMM7
LAB_0013601b:
MOV qword ptr [RBP + -0xc8],R9
MOV qword ptr [RBP + -0xd0],R8
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV dword ptr [RBP + -0x18],ECX
LEA RAX,[RBP + -0xf0]
MOV qword ptr [RBP + -0x30],RAX
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0x38],RAX
MOV dword ptr [RBP + -0x3c],0x30
MOV dword ptr [RBP + -0x40],0x20
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x14]
MOV ECX,dword ptr [RBP + -0x18]
LEA R8,[RBP + -0x40]
CALL 0x00135bf0
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RSP,0xf0
POP RBP
RET
|
int8
mysql_load_plugin(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
int8 param_9,int8 param_10,int4 param_11,int4 param_12,
int8 param_13,int8 param_14)
{
char in_AL;
int8 uVar1;
int1 local_f8 [32];
int8 local_d8;
int8 local_d0;
int8 local_c8;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int4 local_48;
int4 local_44;
int1 *local_40;
int1 *local_38;
int4 local_20;
int4 local_1c;
int8 local_18;
int8 local_10;
if (in_AL != '\0') {
local_c8 = param_1;
local_b8 = param_2;
local_a8 = param_3;
local_98 = param_4;
local_88 = param_5;
local_78 = param_6;
local_68 = param_7;
local_58 = param_8;
}
local_38 = local_f8;
local_40 = &stack0x00000008;
local_44 = 0x30;
local_48 = 0x20;
local_d8 = param_13;
local_d0 = param_14;
local_20 = param_12;
local_1c = param_11;
local_18 = param_10;
local_10 = param_9;
uVar1 = mysql_load_plugin_v(param_9,param_10,param_11,param_12,&local_48);
return uVar1;
}
|
|
10,708 |
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[](unsigned long)
|
monkey531[P]llama/common/json.hpp
|
reference operator[](size_type idx)
{
// implicitly convert null value to an empty array
if (is_null())
{
m_data.m_type = value_t::array;
m_data.m_value.array = create<array_t>();
assert_invariant();
}
// operator[] only works for arrays
if (JSON_HEDLEY_LIKELY(is_array()))
{
// fill up array with null values if given idx is outside range
if (idx >= m_data.m_value.array->size())
{
#if JSON_DIAGNOSTICS
// remember array size & capacity before resizing
const auto old_size = m_data.m_value.array->size();
const auto old_capacity = m_data.m_value.array->capacity();
#endif
m_data.m_value.array->resize(idx + 1);
#if JSON_DIAGNOSTICS
if (JSON_HEDLEY_UNLIKELY(m_data.m_value.array->capacity() != old_capacity))
{
// capacity has changed: update all parents
set_parents();
}
else
{
// set parent for values added above
set_parents(begin() + static_cast<typename iterator::difference_type>(old_size), static_cast<typename iterator::difference_type>(idx + 1 - old_size));
}
#endif
assert_invariant();
}
return m_data.m_value.array->operator[](idx);
}
JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a numeric argument with ", type_name()), this));
}
|
O1
|
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>::operator[](unsigned long):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
cmpb $0x0, (%rdi)
jne 0xb8e72
movb $0x2, (%r14)
movl $0x18, %edi
callq 0x1b8d0
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rax, 0x8(%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x65cc4
cmpb $0x2, (%r14)
jne 0xb8eb9
movq 0x8(%r14), %rdi
movq 0x8(%rdi), %rax
subq (%rdi), %rax
sarq $0x4, %rax
cmpq %rbx, %rax
ja 0xb8ea2
leaq 0x1(%rbx), %rsi
callq 0xb911c
movq %r14, %rdi
movl $0x1, %esi
callq 0x65cc4
movq 0x8(%r14), %rax
shlq $0x4, %rbx
addq (%rax), %rbx
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x20, %edi
callq 0x1b450
movq %rax, %rbx
movq %r14, %rdi
callq 0x6c4fa
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x480b5(%rip), %rsi # 0x100f92
leaq 0x10(%rsp), %rdi
callq 0xafa5a
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x131, %esi # imm = 0x131
movq %r14, %rcx
callq 0x6c2a2
xorl %ebp, %ebp
leaq 0x82000(%rip), %rsi # 0x13af08
leaq -0x508d3(%rip), %rdx # 0x6863c
movq %rbx, %rdi
callq 0x1bf90
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb8f3d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x1b8f0
jmp 0xb8f3d
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0xb8f4a
movq %rbx, %rdi
callq 0x1b680
movq %r14, %rdi
callq 0x1c020
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixEm:
push rbp; char
push r14; int
push rbx; __int64
sub rsp, 30h
mov rbx, rsi
mov r14, rdi
cmp byte ptr [rdi], 0
jnz short loc_B8E72
mov byte ptr [r14], 2
mov edi, 18h; unsigned __int64
call __Znwm; operator new(ulong)
xorps xmm0, xmm0
movups xmmword ptr [rax], xmm0
mov qword ptr [rax+10h], 0
mov [r14+8], rax
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
loc_B8E72:
cmp byte ptr [r14], 2
jnz short loc_B8EB9
mov rdi, [r14+8]
mov rax, [rdi+8]
sub rax, [rdi]
sar rax, 4
cmp rax, rbx
ja short loc_B8EA2
lea rsi, [rbx+1]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE6resizeEm; 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>>::resize(ulong)
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
loc_B8EA2:
mov rax, [r14+8]
shl rbx, 4
add rbx, [rax]
mov rax, rbx
add rsp, 30h
pop rbx
pop r14
pop rbp
retn
loc_B8EB9:
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, aCannotUseOpera; "cannot use operator[] with a numeric ar"...
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA52_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[52],char const*>(char const(&)[52],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 131h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
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_B8F3D
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_B8F3D
mov r14, rax
mov bpl, 1
loc_B8F3D:
test bpl, bpl
jz short loc_B8F4A
mov rdi, rbx; void *
call ___cxa_free_exception
loc_B8F4A:
mov rdi, r14
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>::operator[](
long long a1,
unsigned long long a2)
{
long long v3; // rax
_QWORD *v4; // rdi
nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx
const char *v7; // [rsp+8h] [rbp-40h] BYREF
_QWORD v8[2]; // [rsp+10h] [rbp-38h] BYREF
if ( !*(_BYTE *)a1 )
{
*(_BYTE *)a1 = 2;
v3 = operator new(0x18uLL);
*(_OWORD *)v3 = 0LL;
*(_QWORD *)(v3 + 16) = 0LL;
*(_QWORD *)(a1 + 8) = v3;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1);
}
if ( *(_BYTE *)a1 != 2 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
v7 = 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(&)[52],char const*>(
(long long)v8,
(long long)"cannot use operator[] with a numeric argument with ",
&v7);
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
exception,
305,
v8);
__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);
}
v4 = *(_QWORD **)(a1 + 8);
if ( (long long)(v4[1] - *v4) >> 4 <= a2 )
{
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>>::resize(
v4,
a2 + 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>::assert_invariant((char *)a1);
}
return **(_QWORD **)(a1 + 8) + 16 * a2;
}
|
operator[]:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV RBX,RSI
MOV R14,RDI
CMP byte ptr [RDI],0x0
JNZ 0x001b8e72
MOV byte ptr [R14],0x2
MOV EDI,0x18
CALL 0x0011b8d0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
MOV qword ptr [RAX + 0x10],0x0
MOV qword ptr [R14 + 0x8],RAX
MOV RDI,R14
MOV ESI,0x1
CALL 0x00165cc4
LAB_001b8e72:
CMP byte ptr [R14],0x2
JNZ 0x001b8eb9
MOV RDI,qword ptr [R14 + 0x8]
MOV RAX,qword ptr [RDI + 0x8]
SUB RAX,qword ptr [RDI]
SAR RAX,0x4
CMP RAX,RBX
JA 0x001b8ea2
LEA RSI,[RBX + 0x1]
CALL 0x001b911c
MOV RDI,R14
MOV ESI,0x1
CALL 0x00165cc4
LAB_001b8ea2:
MOV RAX,qword ptr [R14 + 0x8]
SHL RBX,0x4
ADD RBX,qword ptr [RAX]
MOV RAX,RBX
ADD RSP,0x30
POP RBX
POP R14
POP RBP
RET
LAB_001b8eb9:
MOV EDI,0x20
CALL 0x0011b450
MOV RBX,RAX
MOV RDI,R14
CALL 0x0016c4fa
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_001b8ed6:
LEA RSI,[0x200f92]
LEA RDI,[RSP + 0x10]
CALL 0x001afa5a
MOV BPL,0x1
LAB_001b8eea:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x131
MOV RCX,R14
CALL 0x0016c2a2
XOR EBP,EBP
LEA RSI,[0x23af08]
LEA RDX,[0x16863c]
MOV RDI,RBX
CALL 0x0011bf90
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, 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[](unsigned long) */
long __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>
::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>
*this,ulong param_1)
{
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_00;
int8 *puVar1;
int8 uVar2;
char *local_40;
detail local_38 [32];
if (*this == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0) {
*this = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2;
puVar1 = (int8 *)operator_new(0x18);
*puVar1 = 0;
puVar1[1] = 0;
puVar1[2] = 0;
*(int8 **)(this + 8) = puVar1;
assert_invariant(SUB81(this,0));
}
if (*this == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2) {
this_00 = *(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 ((ulong)(*(long *)(this_00 + 8) - *(long *)this_00 >> 4) <= param_1) {
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>>>
::resize(this_00,param_1 + 1);
assert_invariant(SUB81(this,0));
}
return param_1 * 0x10 + **(long **)(this + 8);
}
uVar2 = __cxa_allocate_exception(0x20);
local_40 = (char *)type_name(this);
/* try { // try from 001b8ed6 to 001b8ee6 has its CatchHandler @ 001b8f37 */
detail::concat<std::__cxx11::string,char_const(&)[52],char_const*>
(local_38,"cannot use operator[] with a numeric argument with ",&local_40);
/* try { // try from 001b8eea to 001b8f16 has its CatchHandler @ 001b8f17 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar2,0x131,local_38,this);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&detail::type_error::typeinfo,detail::exception::~exception);
}
|
|
10,709 |
test_instruments_reset()
|
eloqsql/storage/perfschema/unittest/pfs_instr_class-t.cc
|
void test_instruments_reset()
{
int rc;
PFS_sync_key key;
PFS_file_key file_key;
PFS_socket_key socket_key;
PFS_mutex_class *mutex_1;
PFS_mutex_class *mutex_2;
PFS_mutex_class *mutex_3;
PFS_rwlock_class *rwlock_1;
PFS_rwlock_class *rwlock_2;
PFS_rwlock_class *rwlock_3;
PFS_cond_class *cond_1;
PFS_cond_class *cond_2;
PFS_cond_class *cond_3;
PFS_file_class *file_1;
PFS_file_class *file_2;
PFS_file_class *file_3;
PFS_socket_class *socket_1;
PFS_socket_class *socket_2;
PFS_socket_class *socket_3;
rc= init_sync_class(3, 3, 3);
ok(rc == 0, "init (sync)");
rc= init_thread_class(3);
ok(rc == 0, "init (thread)");
rc= init_file_class(3);
ok(rc == 0, "init (file)");
rc= init_socket_class(3);
ok(rc == 0, "init (socket)");
key= register_mutex_class("M-1", 3, 0);
ok(key == 1, "mutex registered");
key= register_mutex_class("M-2", 3, 0);
ok(key == 2, "mutex registered");
key= register_mutex_class("M-3", 3, 0);
ok(key == 3, "mutex registered");
key= register_rwlock_class("RW-1", 4, 0);
ok(key == 1, "rwlock registered");
key= register_rwlock_class("RW-2", 4, 0);
ok(key == 2, "rwlock registered");
key= register_rwlock_class("RW-3", 4, 0);
ok(key == 3, "rwlock registered");
key= register_cond_class("C-1", 3, 0);
ok(key == 1, "cond registered");
key= register_cond_class("C-2", 3, 0);
ok(key == 2, "cond registered");
key= register_cond_class("C-3", 3, 0);
ok(key == 3, "cond registered");
file_key= register_file_class("F-1", 3, 0);
ok(file_key == 1, "file registered");
file_key= register_file_class("F-2", 3, 0);
ok(file_key == 2, "file registered");
file_key= register_file_class("F-3", 3, 0);
ok(file_key == 3, "file registered");
socket_key= register_socket_class("S-1", 3, 0);
ok(socket_key == 1, "socket registered");
socket_key= register_socket_class("S-2", 3, 0);
ok(socket_key == 2, "socket registered");
socket_key= register_socket_class("S-3", 3, 0);
ok(socket_key == 3, "socket registered");
mutex_1= find_mutex_class(1);
ok(mutex_1 != NULL, "mutex key 1");
mutex_2= find_mutex_class(2);
ok(mutex_2 != NULL, "mutex key 2");
mutex_3= find_mutex_class(3);
ok(mutex_3 != NULL, "mutex key 3");
rwlock_1= find_rwlock_class(1);
ok(rwlock_1 != NULL, "rwlock key 1");
rwlock_2= find_rwlock_class(2);
ok(rwlock_2 != NULL, "rwlock key 2");
rwlock_3= find_rwlock_class(3);
ok(rwlock_3 != NULL, "rwlock key 3");
cond_1= find_cond_class(1);
ok(cond_1 != NULL, "cond key 1");
cond_2= find_cond_class(2);
ok(cond_2 != NULL, "cond key 2");
cond_3= find_cond_class(3);
ok(cond_3 != NULL, "cond key 3");
file_1= find_file_class(1);
ok(file_1 != NULL, "file key 1");
file_2= find_file_class(2);
ok(file_2 != NULL, "file key 2");
file_3= find_file_class(3);
ok(file_3 != NULL, "file key 3");
socket_1= find_socket_class(1);
ok(socket_1 != NULL, "socket key 1");
socket_2= find_socket_class(2);
ok(socket_2 != NULL, "socket key 2");
socket_3= find_socket_class(3);
ok(socket_3 != NULL, "socket key 3");
#ifdef LATER
set_wait_stat(mutex_1);
set_wait_stat(mutex_2);
set_wait_stat(mutex_3);
set_wait_stat(rwlock_1);
set_wait_stat(rwlock_2);
set_wait_stat(rwlock_3);
set_wait_stat(cond_1);
set_wait_stat(cond_2);
set_wait_stat(cond_3);
set_wait_stat(file_1);
set_wait_stat(file_2);
set_wait_stat(file_3);
ok(! is_empty_stat(mutex_1), "mutex_1 stat is populated");
ok(! is_empty_stat(mutex_2), "mutex_2 stat is populated");
ok(! is_empty_stat(mutex_3), "mutex_3 stat is populated");
ok(! is_empty_stat(rwlock_1), "rwlock_1 stat is populated");
ok(! is_empty_stat(rwlock_2), "rwlock_2 stat is populated");
ok(! is_empty_stat(rwlock_3), "rwlock_3 stat is populated");
ok(! is_empty_stat(cond_1), "cond_1 stat is populated");
ok(! is_empty_stat(cond_2), "cond_2 stat is populated");
ok(! is_empty_stat(cond_3), "cond_3 stat is populated");
ok(! is_empty_stat(file_1), "file_1 stat is populated");
ok(! is_empty_stat(file_2), "file_2 stat is populated");
ok(! is_empty_stat(file_3), "file_3 stat is populated");
reset_global_wait_stat();
ok(is_empty_stat(mutex_1), "mutex_1 stat is cleared");
ok(is_empty_stat(mutex_2), "mutex_2 stat is cleared");
ok(is_empty_stat(mutex_3), "mutex_3 stat is cleared");
ok(is_empty_stat(rwlock_1), "rwlock_1 stat is cleared");
ok(is_empty_stat(rwlock_2), "rwlock_2 stat is cleared");
ok(is_empty_stat(rwlock_3), "rwlock_3 stat is cleared");
ok(is_empty_stat(cond_1), "cond_1 stat is cleared");
ok(is_empty_stat(cond_2), "cond_2 stat is cleared");
ok(is_empty_stat(cond_3), "cond_3 stat is cleared");
ok(is_empty_stat(file_1), "file_1 stat is cleared");
ok(is_empty_stat(file_2), "file_2 stat is cleared");
ok(is_empty_stat(file_3), "file_3 stat is cleared");
#endif
cleanup_sync_class();
cleanup_file_class();
cleanup_socket_class();
}
|
O3
|
cpp
|
test_instruments_reset():
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl $0x3, %edi
movl $0x3, %esi
movl $0x3, %edx
callq 0x266c0
xorl %edi, %edi
testl %eax, %eax
sete %dil
leaq 0x4e8e4(%rip), %rsi # 0x7d009
xorl %eax, %eax
callq 0x2ef93
movl $0x3, %edi
callq 0x2fb5a
xorl %edi, %edi
testl %eax, %eax
sete %dil
leaq 0x4e8d5(%rip), %rsi # 0x7d01a
xorl %eax, %eax
callq 0x2ef93
movl $0x3, %edi
callq 0x267c8
xorl %edi, %edi
testl %eax, %eax
sete %dil
leaq 0x4e8c8(%rip), %rsi # 0x7d02d
xorl %eax, %eax
callq 0x2ef93
movl $0x3, %edi
callq 0x268cd
xorl %edi, %edi
testl %eax, %eax
sete %dil
leaq 0x4e8b9(%rip), %rsi # 0x7d03e
xorl %eax, %eax
callq 0x2ef93
leaq 0x4f11b(%rip), %rdi # 0x7d8ae
movl $0x3, %esi
xorl %edx, %edx
callq 0x302a2
xorl %edi, %edi
cmpl $0x1, %eax
sete %dil
leaq 0x4e8c9(%rip), %rbx # 0x7d078
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2ef93
leaq 0x4f0f2(%rip), %rdi # 0x7d8b2
movl $0x3, %esi
xorl %edx, %edx
callq 0x302a2
xorl %edi, %edi
cmpl $0x2, %eax
sete %dil
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2ef93
leaq 0x4eb84(%rip), %rdi # 0x7d36a
movl $0x3, %esi
xorl %edx, %edx
callq 0x302a2
xorl %edi, %edi
cmpl $0x3, %eax
sete %dil
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2ef93
leaq 0x4f0aa(%rip), %rdi # 0x7d8b6
movl $0x4, %esi
xorl %edx, %edx
callq 0x30400
xorl %edi, %edi
cmpl $0x1, %eax
sete %dil
leaq 0x4e868(%rip), %rbx # 0x7d090
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2ef93
leaq 0x4f082(%rip), %rdi # 0x7d8bb
movl $0x4, %esi
xorl %edx, %edx
callq 0x30400
xorl %edi, %edi
cmpl $0x2, %eax
sete %dil
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2ef93
leaq 0x4ebd6(%rip), %rdi # 0x7d435
movl $0x4, %esi
xorl %edx, %edx
callq 0x30400
xorl %edi, %edi
cmpl $0x3, %eax
sete %dil
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2ef93
leaq 0x4f03b(%rip), %rdi # 0x7d8c0
movl $0x3, %esi
xorl %edx, %edx
callq 0x3055e
xorl %edi, %edi
cmpl $0x1, %eax
sete %dil
leaq 0x4e804(%rip), %rbx # 0x7d0a5
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2ef93
leaq 0x4f012(%rip), %rdi # 0x7d8c4
movl $0x3, %esi
xorl %edx, %edx
callq 0x3055e
xorl %edi, %edi
cmpl $0x2, %eax
sete %dil
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2ef93
leaq 0x4ec10(%rip), %rdi # 0x7d4e8
movl $0x3, %esi
xorl %edx, %edx
callq 0x3055e
xorl %edi, %edi
cmpl $0x3, %eax
sete %dil
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2ef93
leaq 0x4efca(%rip), %rdi # 0x7d8c8
movl $0x3, %esi
xorl %edx, %edx
callq 0x308ee
xorl %edi, %edi
cmpl $0x1, %eax
sete %dil
leaq 0x4e7b3(%rip), %rbx # 0x7d0cd
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2ef93
leaq 0x4efa1(%rip), %rdi # 0x7d8cc
movl $0x3, %esi
xorl %edx, %edx
callq 0x308ee
xorl %edi, %edi
cmpl $0x2, %eax
sete %dil
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2ef93
leaq 0x4ef7f(%rip), %rdi # 0x7d8d0
movl $0x3, %esi
xorl %edx, %edx
callq 0x308ee
xorl %edi, %edi
cmpl $0x3, %eax
sete %dil
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2ef93
leaq 0x4ef5d(%rip), %rdi # 0x7d8d4
movl $0x3, %esi
xorl %edx, %edx
callq 0x30df3
xorl %edi, %edi
cmpl $0x1, %eax
sete %dil
leaq 0x4e74d(%rip), %rbx # 0x7d0e0
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2ef93
leaq 0x4ef34(%rip), %rdi # 0x7d8d8
movl $0x3, %esi
xorl %edx, %edx
callq 0x30df3
xorl %edi, %edi
cmpl $0x2, %eax
sete %dil
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2ef93
leaq 0x4ef12(%rip), %rdi # 0x7d8dc
movl $0x3, %esi
xorl %edx, %edx
callq 0x30df3
xorl %edi, %edi
cmpl $0x3, %eax
sete %dil
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2ef93
movl $0x1, %edi
callq 0x306a2
xorl %edi, %edi
testq %rax, %rax
setne %dil
leaq 0x4e716(%rip), %rsi # 0x7d119
xorl %eax, %eax
callq 0x2ef93
movl $0x2, %edi
callq 0x306a2
xorl %edi, %edi
testq %rax, %rax
setne %dil
leaq 0x4eebc(%rip), %rsi # 0x7d8e0
xorl %eax, %eax
callq 0x2ef93
movl $0x3, %edi
callq 0x306a2
xorl %edi, %edi
testq %rax, %rax
setne %dil
leaq 0x4eea7(%rip), %rsi # 0x7d8ec
xorl %eax, %eax
callq 0x2ef93
movl $0x1, %edi
callq 0x306f2
xorl %edi, %edi
testq %rax, %rax
setne %dil
leaq 0x4e6e4(%rip), %rsi # 0x7d14a
xorl %eax, %eax
callq 0x2ef93
movl $0x2, %edi
callq 0x306f2
xorl %edi, %edi
testq %rax, %rax
setne %dil
leaq 0x4ee71(%rip), %rsi # 0x7d8f8
xorl %eax, %eax
callq 0x2ef93
movl $0x3, %edi
callq 0x306f2
xorl %edi, %edi
testq %rax, %rax
setne %dil
leaq 0x4ee5d(%rip), %rsi # 0x7d905
xorl %eax, %eax
callq 0x2ef93
movl $0x1, %edi
callq 0x30742
xorl %edi, %edi
testq %rax, %rax
setne %dil
leaq 0x4e6b2(%rip), %rsi # 0x7d17b
xorl %eax, %eax
callq 0x2ef93
movl $0x2, %edi
callq 0x30742
xorl %edi, %edi
testq %rax, %rax
setne %dil
leaq 0x4ee28(%rip), %rsi # 0x7d912
xorl %eax, %eax
callq 0x2ef93
movl $0x3, %edi
callq 0x30742
xorl %edi, %edi
testq %rax, %rax
setne %dil
leaq 0x4ee12(%rip), %rsi # 0x7d91d
xorl %eax, %eax
callq 0x2ef93
movl $0x1, %edi
callq 0x30cb3
xorl %edi, %edi
testq %rax, %rax
setne %dil
leaq 0x4e6af(%rip), %rsi # 0x7d1db
xorl %eax, %eax
callq 0x2ef93
movl $0x2, %edi
callq 0x30cb3
xorl %edi, %edi
testq %rax, %rax
setne %dil
leaq 0x4eddb(%rip), %rsi # 0x7d928
xorl %eax, %eax
callq 0x2ef93
movl $0x3, %edi
callq 0x30cb3
xorl %edi, %edi
testq %rax, %rax
setne %dil
leaq 0x4edc5(%rip), %rsi # 0x7d933
xorl %eax, %eax
callq 0x2ef93
movl $0x1, %edi
callq 0x30f43
xorl %edi, %edi
testq %rax, %rax
setne %dil
leaq 0x4e67b(%rip), %rsi # 0x7d20a
xorl %eax, %eax
callq 0x2ef93
movl $0x2, %edi
callq 0x30f43
xorl %edi, %edi
testq %rax, %rax
setne %dil
leaq 0x4ed8e(%rip), %rsi # 0x7d93e
xorl %eax, %eax
callq 0x2ef93
movl $0x3, %edi
callq 0x30f43
xorl %edi, %edi
testq %rax, %rax
setne %dil
leaq 0x4ed7a(%rip), %rsi # 0x7d94b
xorl %eax, %eax
callq 0x2ef93
callq 0x2faa0
callq 0x3015d
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x30220
|
_Z22test_instruments_resetv:
push rbp
mov rbp, rsp
push rbx
push rax
mov edi, 3; unsigned int
mov esi, 3; unsigned int
mov edx, 3; unsigned int
call _Z15init_sync_classjjj; init_sync_class(uint,uint,uint)
xor edi, edi
test eax, eax
setz dil
lea rsi, aZeroInitSync+5; "init (sync)"
xor eax, eax
call ok
mov edi, 3; unsigned int
call _Z17init_thread_classj; init_thread_class(uint)
xor edi, edi
test eax, eax
setz dil
lea rsi, aZeroInitThread+5; "init (thread)"
xor eax, eax
call ok
mov edi, 3; unsigned int
call _Z15init_file_classj; init_file_class(uint)
xor edi, edi
test eax, eax
setz dil
lea rsi, aZeroInitFile+5; "init (file)"
xor eax, eax
call ok
mov edi, 3; unsigned int
call _Z17init_socket_classj; init_socket_class(uint)
xor edi, edi
test eax, eax
setz dil
lea rsi, aZeroInitSocket+5; "init (socket)"
xor eax, eax
call ok
lea rdi, aM1; "M-1"
mov esi, 3; unsigned int
xor edx, edx; int
call _Z20register_mutex_classPKcji; register_mutex_class(char const*,uint,int)
xor edi, edi
cmp eax, 1
setz dil
lea rbx, aNoMutexRegiste+3; "mutex registered"
mov rsi, rbx
xor eax, eax
call ok
lea rdi, aM2; "M-2"
mov esi, 3; unsigned int
xor edx, edx; int
call _Z20register_mutex_classPKcji; register_mutex_class(char const*,uint,int)
xor edi, edi
cmp eax, 2
setz dil
mov rsi, rbx
xor eax, eax
call ok
lea rdi, aKey3IsM3+9; char *
mov esi, 3; unsigned int
xor edx, edx; int
call _Z20register_mutex_classPKcji; register_mutex_class(char const*,uint,int)
xor edi, edi
cmp eax, 3
setz dil
mov rsi, rbx
xor eax, eax
call ok
lea rdi, aRw1; "RW-1"
mov esi, 4; unsigned int
xor edx, edx; int
call _Z21register_rwlock_classPKcji; register_rwlock_class(char const*,uint,int)
xor edi, edi
cmp eax, 1
setz dil
lea rbx, aNoRwlockRegist+3; "rwlock registered"
mov rsi, rbx
xor eax, eax
call ok
lea rdi, aRw2; "RW-2"
mov esi, 4; unsigned int
xor edx, edx; int
call _Z21register_rwlock_classPKcji; register_rwlock_class(char const*,uint,int)
xor edi, edi
cmp eax, 2
setz dil
mov rsi, rbx
xor eax, eax
call ok
lea rdi, aKey3IsRw3+9; char *
mov esi, 4; unsigned int
xor edx, edx; int
call _Z21register_rwlock_classPKcji; register_rwlock_class(char const*,uint,int)
xor edi, edi
cmp eax, 3
setz dil
mov rsi, rbx
xor eax, eax
call ok
lea rdi, aC1; "C-1"
mov esi, 3; unsigned int
xor edx, edx; int
call _Z19register_cond_classPKcji; register_cond_class(char const*,uint,int)
xor edi, edi
cmp eax, 1
setz dil
lea rbx, aNoCondRegister+3; "cond registered"
mov rsi, rbx
xor eax, eax
call ok
lea rdi, aC2; "C-2"
mov esi, 3; unsigned int
xor edx, edx; int
call _Z19register_cond_classPKcji; register_cond_class(char const*,uint,int)
xor edi, edi
cmp eax, 2
setz dil
mov rsi, rbx
xor eax, eax
call ok
lea rdi, aKey3IsC3+9; char *
mov esi, 3; unsigned int
xor edx, edx; int
call _Z19register_cond_classPKcji; register_cond_class(char const*,uint,int)
xor edi, edi
cmp eax, 3
setz dil
mov rsi, rbx
xor eax, eax
call ok
lea rdi, aF1; "F-1"
mov esi, 3; unsigned int
xor edx, edx; int
call _Z19register_file_classPKcji; register_file_class(char const*,uint,int)
xor edi, edi
cmp eax, 1
setz dil
lea rbx, aNoFileRegister+3; "file registered"
mov rsi, rbx
xor eax, eax
call ok
lea rdi, aF2; "F-2"
mov esi, 3; unsigned int
xor edx, edx; int
call _Z19register_file_classPKcji; register_file_class(char const*,uint,int)
xor edi, edi
cmp eax, 2
setz dil
mov rsi, rbx
xor eax, eax
call ok
lea rdi, aF3; "F-3"
mov esi, 3; unsigned int
xor edx, edx; int
call _Z19register_file_classPKcji; register_file_class(char const*,uint,int)
xor edi, edi
cmp eax, 3
setz dil
mov rsi, rbx
xor eax, eax
call ok
lea rdi, aS1; "S-1"
mov esi, 3; unsigned int
xor edx, edx; int
call _Z21register_socket_classPKcji; register_socket_class(char const*,uint,int)
xor edi, edi
cmp eax, 1
setz dil
lea rbx, aNoSocketRegist+3; "socket registered"
mov rsi, rbx
xor eax, eax
call ok
lea rdi, aS2; "S-2"
mov esi, 3; unsigned int
xor edx, edx; int
call _Z21register_socket_classPKcji; register_socket_class(char const*,uint,int)
xor edi, edi
cmp eax, 2
setz dil
mov rsi, rbx
xor eax, eax
call ok
lea rdi, aS3; "S-3"
mov esi, 3; unsigned int
xor edx, edx; int
call _Z21register_socket_classPKcji; register_socket_class(char const*,uint,int)
xor edi, edi
cmp eax, 3
setz dil
mov rsi, rbx
xor eax, eax
call ok
mov edi, 1; unsigned int
call _Z16find_mutex_classj; find_mutex_class(uint)
xor edi, edi
test rax, rax
setnz dil
lea rsi, aNoMutexKey1+3; "mutex key 1"
xor eax, eax
call ok
mov edi, 2; unsigned int
call _Z16find_mutex_classj; find_mutex_class(uint)
xor edi, edi
test rax, rax
setnz dil
lea rsi, aMutexKey2; "mutex key 2"
xor eax, eax
call ok
mov edi, 3; unsigned int
call _Z16find_mutex_classj; find_mutex_class(uint)
xor edi, edi
test rax, rax
setnz dil
lea rsi, aMutexKey3; "mutex key 3"
xor eax, eax
call ok
mov edi, 1; unsigned int
call _Z17find_rwlock_classj; find_rwlock_class(uint)
xor edi, edi
test rax, rax
setnz dil
lea rsi, aNoRwlockKey1+3; "rwlock key 1"
xor eax, eax
call ok
mov edi, 2; unsigned int
call _Z17find_rwlock_classj; find_rwlock_class(uint)
xor edi, edi
test rax, rax
setnz dil
lea rsi, aRwlockKey2; "rwlock key 2"
xor eax, eax
call ok
mov edi, 3; unsigned int
call _Z17find_rwlock_classj; find_rwlock_class(uint)
xor edi, edi
test rax, rax
setnz dil
lea rsi, aRwlockKey3; "rwlock key 3"
xor eax, eax
call ok
mov edi, 1; unsigned int
call _Z15find_cond_classj; find_cond_class(uint)
xor edi, edi
test rax, rax
setnz dil
lea rsi, aNoCondKey1+3; "cond key 1"
xor eax, eax
call ok
mov edi, 2; unsigned int
call _Z15find_cond_classj; find_cond_class(uint)
xor edi, edi
test rax, rax
setnz dil
lea rsi, aCondKey2; "cond key 2"
xor eax, eax
call ok
mov edi, 3; unsigned int
call _Z15find_cond_classj; find_cond_class(uint)
xor edi, edi
test rax, rax
setnz dil
lea rsi, aCondKey3; "cond key 3"
xor eax, eax
call ok
mov edi, 1; unsigned int
call _Z15find_file_classj; find_file_class(uint)
xor edi, edi
test rax, rax
setnz dil
lea rsi, aNoFileKey1+3; "file key 1"
xor eax, eax
call ok
mov edi, 2; unsigned int
call _Z15find_file_classj; find_file_class(uint)
xor edi, edi
test rax, rax
setnz dil
lea rsi, aFileKey2; "file key 2"
xor eax, eax
call ok
mov edi, 3; unsigned int
call _Z15find_file_classj; find_file_class(uint)
xor edi, edi
test rax, rax
setnz dil
lea rsi, aFileKey3; "file key 3"
xor eax, eax
call ok
mov edi, 1; unsigned int
call _Z17find_socket_classj; find_socket_class(uint)
xor edi, edi
test rax, rax
setnz dil
lea rsi, aNoSocketKey1+3; "socket key 1"
xor eax, eax
call ok
mov edi, 2; unsigned int
call _Z17find_socket_classj; find_socket_class(uint)
xor edi, edi
test rax, rax
setnz dil
lea rsi, aSocketKey2; "socket key 2"
xor eax, eax
call ok
mov edi, 3; unsigned int
call _Z17find_socket_classj; find_socket_class(uint)
xor edi, edi
test rax, rax
setnz dil
lea rsi, aSocketKey3; "socket key 3"
xor eax, eax
call ok
call _Z18cleanup_sync_classv; cleanup_sync_class(void)
call _Z18cleanup_file_classv; cleanup_file_class(void)
add rsp, 8
pop rbx
pop rbp
jmp _Z20cleanup_socket_classv; cleanup_socket_class(void)
|
long long test_instruments_reset(void)
{
int inited; // eax
int v1; // edx
int v2; // ecx
int v3; // r8d
int v4; // r9d
int v5; // eax
int v6; // edx
int v7; // ecx
int v8; // r8d
int v9; // r9d
int v10; // eax
int v11; // edx
int v12; // ecx
int v13; // r8d
int v14; // r9d
int v15; // eax
int v16; // edx
int v17; // ecx
int v18; // r8d
int v19; // r9d
int v20; // eax
int v21; // edx
int v22; // ecx
int v23; // r8d
int v24; // r9d
int v25; // eax
int v26; // edx
int v27; // ecx
int v28; // r8d
int v29; // r9d
int v30; // eax
int v31; // edx
int v32; // ecx
int v33; // r8d
int v34; // r9d
int v35; // eax
int v36; // edx
int v37; // ecx
int v38; // r8d
int v39; // r9d
int v40; // eax
int v41; // edx
int v42; // ecx
int v43; // r8d
int v44; // r9d
int v45; // eax
int v46; // edx
int v47; // ecx
int v48; // r8d
int v49; // r9d
int v50; // eax
int v51; // edx
int v52; // ecx
int v53; // r8d
int v54; // r9d
int v55; // eax
int v56; // edx
int v57; // ecx
int v58; // r8d
int v59; // r9d
int v60; // eax
int v61; // edx
int v62; // ecx
int v63; // r8d
int v64; // r9d
int v65; // eax
int v66; // edx
int v67; // ecx
int v68; // r8d
int v69; // r9d
int v70; // eax
int v71; // edx
int v72; // ecx
int v73; // r8d
int v74; // r9d
int v75; // eax
int v76; // edx
int v77; // ecx
int v78; // r8d
int v79; // r9d
int v80; // eax
int v81; // edx
int v82; // ecx
int v83; // r8d
int v84; // r9d
int v85; // eax
int v86; // edx
int v87; // ecx
int v88; // r8d
int v89; // r9d
int v90; // eax
int v91; // edx
int v92; // ecx
int v93; // r8d
int v94; // r9d
long long mutex_class; // rax
int v96; // edx
int v97; // ecx
int v98; // r8d
int v99; // r9d
long long v100; // rax
int v101; // edx
int v102; // ecx
int v103; // r8d
int v104; // r9d
long long v105; // rax
int v106; // edx
int v107; // ecx
int v108; // r8d
int v109; // r9d
long long rwlock_class; // rax
int v111; // edx
int v112; // ecx
int v113; // r8d
int v114; // r9d
long long v115; // rax
int v116; // edx
int v117; // ecx
int v118; // r8d
int v119; // r9d
long long v120; // rax
int v121; // edx
int v122; // ecx
int v123; // r8d
int v124; // r9d
long long cond_class; // rax
int v126; // edx
int v127; // ecx
int v128; // r8d
int v129; // r9d
long long v130; // rax
int v131; // edx
int v132; // ecx
int v133; // r8d
int v134; // r9d
long long v135; // rax
int v136; // edx
int v137; // ecx
int v138; // r8d
int v139; // r9d
long long file_class; // rax
int v141; // edx
int v142; // ecx
int v143; // r8d
int v144; // r9d
long long v145; // rax
int v146; // edx
int v147; // ecx
int v148; // r8d
int v149; // r9d
long long v150; // rax
int v151; // edx
int v152; // ecx
int v153; // r8d
int v154; // r9d
long long socket_class; // rax
int v156; // edx
int v157; // ecx
int v158; // r8d
int v159; // r9d
long long v160; // rax
int v161; // edx
int v162; // ecx
int v163; // r8d
int v164; // r9d
long long v165; // rax
int v166; // edx
int v167; // ecx
int v168; // r8d
int v169; // r9d
inited = init_sync_class(3u, 3LL, 3u);
ok(inited == 0, (unsigned int)"init (sync)", v1, v2, v3, v4);
v5 = init_thread_class(3u);
ok(v5 == 0, (unsigned int)"init (thread)", v6, v7, v8, v9);
v10 = init_file_class(3u);
ok(v10 == 0, (unsigned int)"init (file)", v11, v12, v13, v14);
v15 = init_socket_class(3u);
ok(v15 == 0, (unsigned int)"init (socket)", v16, v17, v18, v19);
v20 = register_mutex_class("M-1", 3u, 0);
ok(v20 == 1, (unsigned int)"mutex registered", v21, v22, v23, v24);
v25 = register_mutex_class("M-2", 3u, 0);
ok(v25 == 2, (unsigned int)"mutex registered", v26, v27, v28, v29);
v30 = register_mutex_class("M-3", 3u, 0);
ok(v30 == 3, (unsigned int)"mutex registered", v31, v32, v33, v34);
v35 = register_rwlock_class("RW-1", 4u, 0);
ok(v35 == 1, (unsigned int)"rwlock registered", v36, v37, v38, v39);
v40 = register_rwlock_class("RW-2", 4u, 0);
ok(v40 == 2, (unsigned int)"rwlock registered", v41, v42, v43, v44);
v45 = register_rwlock_class("RW-3", 4u, 0);
ok(v45 == 3, (unsigned int)"rwlock registered", v46, v47, v48, v49);
v50 = register_cond_class("C-1", 3u, 0);
ok(v50 == 1, (unsigned int)"cond registered", v51, v52, v53, v54);
v55 = register_cond_class("C-2", 3u, 0);
ok(v55 == 2, (unsigned int)"cond registered", v56, v57, v58, v59);
v60 = register_cond_class("C-3", 3u, 0);
ok(v60 == 3, (unsigned int)"cond registered", v61, v62, v63, v64);
v65 = register_file_class("F-1", 3u, 0);
ok(v65 == 1, (unsigned int)"file registered", v66, v67, v68, v69);
v70 = register_file_class("F-2", 3u, 0);
ok(v70 == 2, (unsigned int)"file registered", v71, v72, v73, v74);
v75 = register_file_class("F-3", 3u, 0);
ok(v75 == 3, (unsigned int)"file registered", v76, v77, v78, v79);
v80 = register_socket_class("S-1", 3u, 0);
ok(v80 == 1, (unsigned int)"socket registered", v81, v82, v83, v84);
v85 = register_socket_class("S-2", 3u, 0);
ok(v85 == 2, (unsigned int)"socket registered", v86, v87, v88, v89);
v90 = register_socket_class("S-3", 3u, 0);
ok(v90 == 3, (unsigned int)"socket registered", v91, v92, v93, v94);
mutex_class = find_mutex_class(1u);
ok(mutex_class != 0, (unsigned int)"mutex key 1", v96, v97, v98, v99);
v100 = find_mutex_class(2u);
ok(v100 != 0, (unsigned int)"mutex key 2", v101, v102, v103, v104);
v105 = find_mutex_class(3u);
ok(v105 != 0, (unsigned int)"mutex key 3", v106, v107, v108, v109);
rwlock_class = find_rwlock_class(1u);
ok(rwlock_class != 0, (unsigned int)"rwlock key 1", v111, v112, v113, v114);
v115 = find_rwlock_class(2u);
ok(v115 != 0, (unsigned int)"rwlock key 2", v116, v117, v118, v119);
v120 = find_rwlock_class(3u);
ok(v120 != 0, (unsigned int)"rwlock key 3", v121, v122, v123, v124);
cond_class = find_cond_class(1u);
ok(cond_class != 0, (unsigned int)"cond key 1", v126, v127, v128, v129);
v130 = find_cond_class(2u);
ok(v130 != 0, (unsigned int)"cond key 2", v131, v132, v133, v134);
v135 = find_cond_class(3u);
ok(v135 != 0, (unsigned int)"cond key 3", v136, v137, v138, v139);
file_class = find_file_class(1u);
ok(file_class != 0, (unsigned int)"file key 1", v141, v142, v143, v144);
v145 = find_file_class(2u);
ok(v145 != 0, (unsigned int)"file key 2", v146, v147, v148, v149);
v150 = find_file_class(3u);
ok(v150 != 0, (unsigned int)"file key 3", v151, v152, v153, v154);
socket_class = find_socket_class(1u);
ok(socket_class != 0, (unsigned int)"socket key 1", v156, v157, v158, v159);
v160 = find_socket_class(2u);
ok(v160 != 0, (unsigned int)"socket key 2", v161, v162, v163, v164);
v165 = find_socket_class(3u);
ok(v165 != 0, (unsigned int)"socket key 3", v166, v167, v168, v169);
cleanup_sync_class();
cleanup_file_class();
return cleanup_socket_class();
}
|
test_instruments_reset:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV EDI,0x3
MOV ESI,0x3
MOV EDX,0x3
CALL 0x001266c0
XOR EDI,EDI
TEST EAX,EAX
SETZ DIL
LEA RSI,[0x17d009]
XOR EAX,EAX
CALL 0x0012ef93
MOV EDI,0x3
CALL 0x0012fb5a
XOR EDI,EDI
TEST EAX,EAX
SETZ DIL
LEA RSI,[0x17d01a]
XOR EAX,EAX
CALL 0x0012ef93
MOV EDI,0x3
CALL 0x001267c8
XOR EDI,EDI
TEST EAX,EAX
SETZ DIL
LEA RSI,[0x17d02d]
XOR EAX,EAX
CALL 0x0012ef93
MOV EDI,0x3
CALL 0x001268cd
XOR EDI,EDI
TEST EAX,EAX
SETZ DIL
LEA RSI,[0x17d03e]
XOR EAX,EAX
CALL 0x0012ef93
LEA RDI,[0x17d8ae]
MOV ESI,0x3
XOR EDX,EDX
CALL 0x001302a2
XOR EDI,EDI
CMP EAX,0x1
SETZ DIL
LEA RBX,[0x17d078]
MOV RSI,RBX
XOR EAX,EAX
CALL 0x0012ef93
LEA RDI,[0x17d8b2]
MOV ESI,0x3
XOR EDX,EDX
CALL 0x001302a2
XOR EDI,EDI
CMP EAX,0x2
SETZ DIL
MOV RSI,RBX
XOR EAX,EAX
CALL 0x0012ef93
LEA RDI,[0x17d36a]
MOV ESI,0x3
XOR EDX,EDX
CALL 0x001302a2
XOR EDI,EDI
CMP EAX,0x3
SETZ DIL
MOV RSI,RBX
XOR EAX,EAX
CALL 0x0012ef93
LEA RDI,[0x17d8b6]
MOV ESI,0x4
XOR EDX,EDX
CALL 0x00130400
XOR EDI,EDI
CMP EAX,0x1
SETZ DIL
LEA RBX,[0x17d090]
MOV RSI,RBX
XOR EAX,EAX
CALL 0x0012ef93
LEA RDI,[0x17d8bb]
MOV ESI,0x4
XOR EDX,EDX
CALL 0x00130400
XOR EDI,EDI
CMP EAX,0x2
SETZ DIL
MOV RSI,RBX
XOR EAX,EAX
CALL 0x0012ef93
LEA RDI,[0x17d435]
MOV ESI,0x4
XOR EDX,EDX
CALL 0x00130400
XOR EDI,EDI
CMP EAX,0x3
SETZ DIL
MOV RSI,RBX
XOR EAX,EAX
CALL 0x0012ef93
LEA RDI,[0x17d8c0]
MOV ESI,0x3
XOR EDX,EDX
CALL 0x0013055e
XOR EDI,EDI
CMP EAX,0x1
SETZ DIL
LEA RBX,[0x17d0a5]
MOV RSI,RBX
XOR EAX,EAX
CALL 0x0012ef93
LEA RDI,[0x17d8c4]
MOV ESI,0x3
XOR EDX,EDX
CALL 0x0013055e
XOR EDI,EDI
CMP EAX,0x2
SETZ DIL
MOV RSI,RBX
XOR EAX,EAX
CALL 0x0012ef93
LEA RDI,[0x17d4e8]
MOV ESI,0x3
XOR EDX,EDX
CALL 0x0013055e
XOR EDI,EDI
CMP EAX,0x3
SETZ DIL
MOV RSI,RBX
XOR EAX,EAX
CALL 0x0012ef93
LEA RDI,[0x17d8c8]
MOV ESI,0x3
XOR EDX,EDX
CALL 0x001308ee
XOR EDI,EDI
CMP EAX,0x1
SETZ DIL
LEA RBX,[0x17d0cd]
MOV RSI,RBX
XOR EAX,EAX
CALL 0x0012ef93
LEA RDI,[0x17d8cc]
MOV ESI,0x3
XOR EDX,EDX
CALL 0x001308ee
XOR EDI,EDI
CMP EAX,0x2
SETZ DIL
MOV RSI,RBX
XOR EAX,EAX
CALL 0x0012ef93
LEA RDI,[0x17d8d0]
MOV ESI,0x3
XOR EDX,EDX
CALL 0x001308ee
XOR EDI,EDI
CMP EAX,0x3
SETZ DIL
MOV RSI,RBX
XOR EAX,EAX
CALL 0x0012ef93
LEA RDI,[0x17d8d4]
MOV ESI,0x3
XOR EDX,EDX
CALL 0x00130df3
XOR EDI,EDI
CMP EAX,0x1
SETZ DIL
LEA RBX,[0x17d0e0]
MOV RSI,RBX
XOR EAX,EAX
CALL 0x0012ef93
LEA RDI,[0x17d8d8]
MOV ESI,0x3
XOR EDX,EDX
CALL 0x00130df3
XOR EDI,EDI
CMP EAX,0x2
SETZ DIL
MOV RSI,RBX
XOR EAX,EAX
CALL 0x0012ef93
LEA RDI,[0x17d8dc]
MOV ESI,0x3
XOR EDX,EDX
CALL 0x00130df3
XOR EDI,EDI
CMP EAX,0x3
SETZ DIL
MOV RSI,RBX
XOR EAX,EAX
CALL 0x0012ef93
MOV EDI,0x1
CALL 0x001306a2
XOR EDI,EDI
TEST RAX,RAX
SETNZ DIL
LEA RSI,[0x17d119]
XOR EAX,EAX
CALL 0x0012ef93
MOV EDI,0x2
CALL 0x001306a2
XOR EDI,EDI
TEST RAX,RAX
SETNZ DIL
LEA RSI,[0x17d8e0]
XOR EAX,EAX
CALL 0x0012ef93
MOV EDI,0x3
CALL 0x001306a2
XOR EDI,EDI
TEST RAX,RAX
SETNZ DIL
LEA RSI,[0x17d8ec]
XOR EAX,EAX
CALL 0x0012ef93
MOV EDI,0x1
CALL 0x001306f2
XOR EDI,EDI
TEST RAX,RAX
SETNZ DIL
LEA RSI,[0x17d14a]
XOR EAX,EAX
CALL 0x0012ef93
MOV EDI,0x2
CALL 0x001306f2
XOR EDI,EDI
TEST RAX,RAX
SETNZ DIL
LEA RSI,[0x17d8f8]
XOR EAX,EAX
CALL 0x0012ef93
MOV EDI,0x3
CALL 0x001306f2
XOR EDI,EDI
TEST RAX,RAX
SETNZ DIL
LEA RSI,[0x17d905]
XOR EAX,EAX
CALL 0x0012ef93
MOV EDI,0x1
CALL 0x00130742
XOR EDI,EDI
TEST RAX,RAX
SETNZ DIL
LEA RSI,[0x17d17b]
XOR EAX,EAX
CALL 0x0012ef93
MOV EDI,0x2
CALL 0x00130742
XOR EDI,EDI
TEST RAX,RAX
SETNZ DIL
LEA RSI,[0x17d912]
XOR EAX,EAX
CALL 0x0012ef93
MOV EDI,0x3
CALL 0x00130742
XOR EDI,EDI
TEST RAX,RAX
SETNZ DIL
LEA RSI,[0x17d91d]
XOR EAX,EAX
CALL 0x0012ef93
MOV EDI,0x1
CALL 0x00130cb3
XOR EDI,EDI
TEST RAX,RAX
SETNZ DIL
LEA RSI,[0x17d1db]
XOR EAX,EAX
CALL 0x0012ef93
MOV EDI,0x2
CALL 0x00130cb3
XOR EDI,EDI
TEST RAX,RAX
SETNZ DIL
LEA RSI,[0x17d928]
XOR EAX,EAX
CALL 0x0012ef93
MOV EDI,0x3
CALL 0x00130cb3
XOR EDI,EDI
TEST RAX,RAX
SETNZ DIL
LEA RSI,[0x17d933]
XOR EAX,EAX
CALL 0x0012ef93
MOV EDI,0x1
CALL 0x00130f43
XOR EDI,EDI
TEST RAX,RAX
SETNZ DIL
LEA RSI,[0x17d20a]
XOR EAX,EAX
CALL 0x0012ef93
MOV EDI,0x2
CALL 0x00130f43
XOR EDI,EDI
TEST RAX,RAX
SETNZ DIL
LEA RSI,[0x17d93e]
XOR EAX,EAX
CALL 0x0012ef93
MOV EDI,0x3
CALL 0x00130f43
XOR EDI,EDI
TEST RAX,RAX
SETNZ DIL
LEA RSI,[0x17d94b]
XOR EAX,EAX
CALL 0x0012ef93
CALL 0x0012faa0
CALL 0x0013015d
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x00130220
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* test_instruments_reset() */
void test_instruments_reset(void)
{
int iVar1;
long lVar2;
iVar1 = init_sync_class(3,3,3);
ok(iVar1 == 0,"init (sync)");
iVar1 = init_thread_class(3);
ok(iVar1 == 0,"init (thread)");
iVar1 = init_file_class(3);
ok(iVar1 == 0,"init (file)");
iVar1 = init_socket_class(3);
ok(iVar1 == 0,"init (socket)");
iVar1 = register_mutex_class("M-1",3,0);
ok(iVar1 == 1,"mutex registered");
iVar1 = register_mutex_class("M-2",3,0);
ok(iVar1 == 2,"mutex registered");
iVar1 = register_mutex_class("M-3",3,0);
ok(iVar1 == 3,"mutex registered");
iVar1 = register_rwlock_class("RW-1",4,0);
ok(iVar1 == 1,"rwlock registered");
iVar1 = register_rwlock_class("RW-2",4,0);
ok(iVar1 == 2,"rwlock registered");
iVar1 = register_rwlock_class("RW-3",4,0);
ok(iVar1 == 3,"rwlock registered");
iVar1 = register_cond_class("C-1",3,0);
ok(iVar1 == 1,"cond registered");
iVar1 = register_cond_class("C-2",3,0);
ok(iVar1 == 2,"cond registered");
iVar1 = register_cond_class("C-3",3,0);
ok(iVar1 == 3,"cond registered");
iVar1 = register_file_class("F-1",3,0);
ok(iVar1 == 1,"file registered");
iVar1 = register_file_class("F-2",3,0);
ok(iVar1 == 2,"file registered");
iVar1 = register_file_class("F-3",3,0);
ok(iVar1 == 3,"file registered");
iVar1 = register_socket_class("S-1",3,0);
ok(iVar1 == 1,"socket registered");
iVar1 = register_socket_class("S-2",3,0);
ok(iVar1 == 2,"socket registered");
iVar1 = register_socket_class("S-3",3,0);
ok(iVar1 == 3,"socket registered");
lVar2 = find_mutex_class(1);
ok(lVar2 != 0,"mutex key 1");
lVar2 = find_mutex_class(2);
ok(lVar2 != 0,"mutex key 2");
lVar2 = find_mutex_class(3);
ok(lVar2 != 0,"mutex key 3");
lVar2 = find_rwlock_class(1);
ok(lVar2 != 0,"rwlock key 1");
lVar2 = find_rwlock_class(2);
ok(lVar2 != 0,"rwlock key 2");
lVar2 = find_rwlock_class(3);
ok(lVar2 != 0,"rwlock key 3");
lVar2 = find_cond_class(1);
ok(lVar2 != 0,"cond key 1");
lVar2 = find_cond_class(2);
ok(lVar2 != 0,"cond key 2");
lVar2 = find_cond_class(3);
ok(lVar2 != 0,"cond key 3");
lVar2 = find_file_class(1);
ok(lVar2 != 0,"file key 1");
lVar2 = find_file_class(2);
ok(lVar2 != 0,"file key 2");
lVar2 = find_file_class(3);
ok(lVar2 != 0,"file key 3");
lVar2 = find_socket_class(1);
ok(lVar2 != 0,"socket key 1");
lVar2 = find_socket_class(2);
ok(lVar2 != 0,"socket key 2");
lVar2 = find_socket_class(3);
ok(lVar2 != 0,"socket key 3");
cleanup_sync_class();
cleanup_file_class();
cleanup_socket_class();
return;
}
|
|
10,710 |
ggml_win_unpart
|
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
|
struct ggml_tensor * ggml_win_unpart(
struct ggml_context * ctx,
struct ggml_tensor * a,
int w0,
int h0,
int w) {
GGML_ASSERT(a->type == GGML_TYPE_F32);
const int64_t ne[4] = { a->ne[0], w0, h0, 1, };
struct ggml_tensor * result = ggml_new_tensor(ctx, GGML_TYPE_F32, 3, ne);
int32_t params[] = { w };
ggml_set_op_params(result, params, sizeof(params));
result->op = GGML_OP_WIN_UNPART;
result->src[0] = a;
return result;
}
|
O3
|
c
|
ggml_win_unpart:
pushq %r14
pushq %rbx
subq $0x28, %rsp
cmpl $0x0, (%rsi)
jne 0x1f2da
movl %r8d, %ebx
movq %rsi, %r14
movq 0x10(%rsi), %rsi
movq %rsp, %rax
movq %rsi, (%rax)
movslq %edx, %rdx
movq %rdx, 0x8(%rax)
movslq %ecx, %rcx
movq %rcx, 0x10(%rax)
movq $0x1, 0x18(%rax)
xorl %esi, %esi
movl $0x3, %edx
movq %rax, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x1a57f
testq %rax, %rax
je 0x1f2f6
movl %ebx, 0x54(%rax)
movl $0x42, 0x50(%rax)
movq %r14, 0x98(%rax)
addq $0x28, %rsp
popq %rbx
popq %r14
retq
leaq 0x2d332(%rip), %rdi # 0x4c613
leaq 0x2d37d(%rip), %rdx # 0x4c665
leaq 0x2db1c(%rip), %rcx # 0x4ce0b
movl $0x11ba, %esi # imm = 0x11BA
jmp 0x1f310
leaq 0x2f46c(%rip), %rdi # 0x4e769
leaq 0x2d361(%rip), %rdx # 0x4c665
leaq 0x2f58b(%rip), %rcx # 0x4e896
movl $0x70, %esi
xorl %eax, %eax
callq 0x17cd0
|
ggml_win_unpart:
push r14
push rbx
sub rsp, 28h
cmp dword ptr [rsi], 0
jnz short loc_1F2DA
mov ebx, r8d
mov r14, rsi
mov rsi, [rsi+10h]
mov rax, rsp
mov [rax], rsi
movsxd rdx, edx
mov [rax+8], rdx
movsxd rcx, ecx
mov [rax+10h], rcx
mov qword ptr [rax+18h], 1
xor esi, esi
mov edx, 3
mov rcx, rax
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
test rax, rax
jz short loc_1F2F6
mov [rax+54h], ebx
mov dword ptr [rax+50h], 42h ; 'B'
mov [rax+98h], r14
add rsp, 28h
pop rbx
pop r14
retn
loc_1F2DA:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aATypeGgmlTypeF; "a->type == GGML_TYPE_F32"
mov esi, 11BAh
jmp short loc_1F310
loc_1F2F6:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNull; "tensor != NULL"
mov esi, 70h ; 'p'
loc_1F310:
xor eax, eax
call _ggml_abort
|
long long ggml_win_unpart(long long a1, long long a2, int a3, int a4, int a5, int a6, double a7)
{
long long result; // rax
const char *v9; // rdi
const char *v10; // rcx
int v11; // esi
long long v12[7]; // [rsp+0h] [rbp-38h] BYREF
if ( *(_DWORD *)a2 )
{
v9 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c";
v10 = "a->type == GGML_TYPE_F32";
v11 = 4538;
goto LABEL_6;
}
v12[0] = *(_QWORD *)(a2 + 16);
v12[1] = a3;
v12[2] = a4;
v12[3] = 1LL;
result = ggml_new_tensor_impl(a1, 0, 3u, v12, 0LL, 0LL, a7);
if ( !result )
{
v9 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h";
v10 = "tensor != NULL";
v11 = 112;
LABEL_6:
ggml_abort((_DWORD)v9, v11, (unsigned int)"GGML_ASSERT(%s) failed", (_DWORD)v10, a5, a6);
}
*(_DWORD *)(result + 84) = a5;
*(_DWORD *)(result + 80) = 66;
*(_QWORD *)(result + 152) = a2;
return result;
}
|
ggml_win_unpart:
PUSH R14
PUSH RBX
SUB RSP,0x28
CMP dword ptr [RSI],0x0
JNZ 0x0011f2da
MOV EBX,R8D
MOV R14,RSI
MOV RSI,qword ptr [RSI + 0x10]
MOV RAX,RSP
MOV qword ptr [RAX],RSI
MOVSXD RDX,EDX
MOV qword ptr [RAX + 0x8],RDX
MOVSXD RCX,ECX
MOV qword ptr [RAX + 0x10],RCX
MOV qword ptr [RAX + 0x18],0x1
XOR ESI,ESI
MOV EDX,0x3
MOV RCX,RAX
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0011a57f
TEST RAX,RAX
JZ 0x0011f2f6
MOV dword ptr [RAX + 0x54],EBX
MOV dword ptr [RAX + 0x50],0x42
MOV qword ptr [RAX + 0x98],R14
ADD RSP,0x28
POP RBX
POP R14
RET
LAB_0011f2da:
LEA RDI,[0x14c613]
LEA RDX,[0x14c665]
LEA RCX,[0x14ce0b]
MOV ESI,0x11ba
JMP 0x0011f310
LAB_0011f2f6:
LEA RDI,[0x14e769]
LEA RDX,[0x14c665]
LEA RCX,[0x14e896]
MOV ESI,0x70
LAB_0011f310:
XOR EAX,EAX
CALL 0x00117cd0
|
void ggml_win_unpart(int8 param_1,int *param_2,int param_3,int param_4,int4 param_5)
{
long lVar1;
char *pcVar2;
int8 uVar3;
char *pcVar4;
int8 local_38;
long local_30;
long local_28;
int8 local_20;
if (*param_2 == 0) {
local_38 = *(int8 *)(param_2 + 4);
local_30 = (long)param_3;
local_28 = (long)param_4;
local_20 = 1;
lVar1 = ggml_new_tensor_impl(param_1,0,3,&local_38,0,0);
if (lVar1 != 0) {
*(int4 *)(lVar1 + 0x54) = param_5;
*(int4 *)(lVar1 + 0x50) = 0x42;
*(int **)(lVar1 + 0x98) = param_2;
return;
}
pcVar4 =
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h";
pcVar2 = "tensor != NULL";
uVar3 = 0x70;
}
else {
pcVar4 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c";
pcVar2 = "a->type == GGML_TYPE_F32";
uVar3 = 0x11ba;
}
/* WARNING: Subroutine does not return */
ggml_abort(pcVar4,uVar3,"GGML_ASSERT(%s) failed",pcVar2);
}
|
|
10,711 |
my_string_repertoire
|
eloqsql/strings/ctype.c
|
my_repertoire_t
my_string_repertoire(CHARSET_INFO *cs, const char *str, size_t length)
{
if (cs->mbminlen == 1 && !(cs->state & MY_CS_NONASCII))
{
return my_string_repertoire_8bit(cs, str, length);
}
else
{
const char *strend= str + length;
my_wc_t wc;
int chlen;
for (;
(chlen= my_ci_mb_wc(cs, &wc, (uchar*) str, (uchar*) strend)) > 0;
str+= chlen)
{
if (wc > 0x7F)
return MY_REPERTOIRE_UNICODE30;
}
}
return MY_REPERTOIRE_ASCII;
}
|
O3
|
c
|
my_string_repertoire:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
cmpl $0x1, 0x98(%rdi)
jne 0xd18c3
testb $0x20, 0xd(%r15)
jne 0xd18c3
movl $0x1, %eax
testq %rbx, %rbx
jle 0xd1929
addq %r14, %rbx
cmpb $0x0, (%r14)
js 0xd1936
incq %r14
cmpq %rbx, %r14
jb 0xd18b3
jmp 0xd1929
addq %r14, %rbx
movq 0xb8(%r15), %rax
leaq -0x28(%rbp), %rsi
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq *0x28(%rax)
testl %eax, %eax
setg %cl
jle 0xd191f
cmpq $0x7f, -0x28(%rbp)
ja 0xd191f
leaq -0x28(%rbp), %r12
movq %r14, %rcx
movl %eax, %r14d
addq %rcx, %r14
movq 0xb8(%r15), %rax
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq *0x28(%rax)
testl %eax, %eax
setg %cl
jle 0xd191f
cmpq $0x80, -0x28(%rbp)
jb 0xd18ef
movzbl %cl, %eax
leal 0x1(,%rax,2), %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x3, %eax
jmp 0xd1929
|
my_string_repertoire:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov rbx, rdx
mov r14, rsi
mov r15, rdi
cmp dword ptr [rdi+98h], 1
jnz short loc_D18C3
test byte ptr [r15+0Dh], 20h
jnz short loc_D18C3
mov eax, 1
test rbx, rbx
jle short loc_D1929
add rbx, r14
loc_D18B3:
cmp byte ptr [r14], 0
js short loc_D1936
inc r14
cmp r14, rbx
jb short loc_D18B3
jmp short loc_D1929
loc_D18C3:
add rbx, r14
mov rax, [r15+0B8h]
lea rsi, [rbp+var_28]
mov rdi, r15
mov rdx, r14
mov rcx, rbx
call qword ptr [rax+28h]
test eax, eax
setnle cl
jle short loc_D191F
cmp [rbp+var_28], 7Fh
ja short loc_D191F
lea r12, [rbp+var_28]
loc_D18EF:
mov rcx, r14
mov r14d, eax
add r14, rcx
mov rax, [r15+0B8h]
mov rdi, r15
mov rsi, r12
mov rdx, r14
mov rcx, rbx
call qword ptr [rax+28h]
test eax, eax
setnle cl
jle short loc_D191F
cmp [rbp+var_28], 80h
jb short loc_D18EF
loc_D191F:
movzx eax, cl
lea eax, ds:1[rax*2]
loc_D1929:
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_D1936:
mov eax, 3
jmp short loc_D1929
|
long long my_string_repertoire(long long a1, char *a2, long long a3)
{
char *v3; // r14
long long result; // rax
char *v5; // rbx
int v6; // eax
bool v7; // cl
_QWORD v8[5]; // [rsp+8h] [rbp-28h] BYREF
v3 = a2;
if ( *(_DWORD *)(a1 + 152) != 1 || (*(_BYTE *)(a1 + 13) & 0x20) != 0 )
{
v5 = &a2[a3];
v6 = (*(long long ( **)(long long, _QWORD *, char *, char *))(*(_QWORD *)(a1 + 184) + 40LL))(
a1,
v8,
a2,
&a2[a3]);
v7 = v6 > 0;
if ( v6 > 0 && v8[0] <= 0x7FuLL )
{
do
{
v3 += (unsigned int)v6;
v6 = (*(long long ( **)(long long, _QWORD *, char *, char *))(*(_QWORD *)(a1 + 184) + 40LL))(
a1,
v8,
v3,
v5);
v7 = v6 > 0;
}
while ( v6 > 0 && v8[0] < 0x80uLL );
}
return 2 * (unsigned int)v7 + 1;
}
else
{
result = 1LL;
if ( a3 > 0 )
{
while ( *v3 >= 0 )
{
if ( ++v3 >= &a2[a3] )
return result;
}
return 3LL;
}
}
return result;
}
|
my_string_repertoire:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
CMP dword ptr [RDI + 0x98],0x1
JNZ 0x001d18c3
TEST byte ptr [R15 + 0xd],0x20
JNZ 0x001d18c3
MOV EAX,0x1
TEST RBX,RBX
JLE 0x001d1929
ADD RBX,R14
LAB_001d18b3:
CMP byte ptr [R14],0x0
JS 0x001d1936
INC R14
CMP R14,RBX
JC 0x001d18b3
JMP 0x001d1929
LAB_001d18c3:
ADD RBX,R14
MOV RAX,qword ptr [R15 + 0xb8]
LEA RSI,[RBP + -0x28]
MOV RDI,R15
MOV RDX,R14
MOV RCX,RBX
CALL qword ptr [RAX + 0x28]
TEST EAX,EAX
SETG CL
JLE 0x001d191f
CMP qword ptr [RBP + -0x28],0x7f
JA 0x001d191f
LEA R12,[RBP + -0x28]
LAB_001d18ef:
MOV RCX,R14
MOV R14D,EAX
ADD R14,RCX
MOV RAX,qword ptr [R15 + 0xb8]
MOV RDI,R15
MOV RSI,R12
MOV RDX,R14
MOV RCX,RBX
CALL qword ptr [RAX + 0x28]
TEST EAX,EAX
SETG CL
JLE 0x001d191f
CMP qword ptr [RBP + -0x28],0x80
JC 0x001d18ef
LAB_001d191f:
MOVZX EAX,CL
LEA EAX,[0x1 + RAX*0x2]
LAB_001d1929:
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001d1936:
MOV EAX,0x3
JMP 0x001d1929
|
char my_string_repertoire(long param_1,char *param_2,long param_3)
{
char cVar1;
uint uVar2;
bool bVar3;
char *pcVar4;
ulong local_30;
if ((*(int *)(param_1 + 0x98) == 1) && ((*(byte *)(param_1 + 0xd) & 0x20) == 0)) {
cVar1 = '\x01';
if (0 < param_3) {
pcVar4 = param_2 + param_3;
do {
if (*param_2 < '\0') {
return '\x03';
}
param_2 = param_2 + 1;
} while (param_2 < pcVar4);
}
}
else {
pcVar4 = param_2 + param_3;
uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x28))(param_1,&local_30,param_2,pcVar4);
bVar3 = 0 < (int)uVar2;
if ((0 < (int)uVar2) && (local_30 < 0x80)) {
do {
param_2 = param_2 + uVar2;
uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x28))(param_1,&local_30,param_2,pcVar4);
bVar3 = 0 < (int)uVar2;
if ((int)uVar2 < 1) break;
} while (local_30 < 0x80);
}
cVar1 = bVar3 * '\x02' + '\x01';
}
return cVar1;
}
|
|
10,712 |
inline_mysql_mutex_init
|
eloqsql/include/mysql/psi/mysql_thread.h
|
static inline int inline_mysql_mutex_init(
#ifdef HAVE_PSI_MUTEX_INTERFACE
PSI_mutex_key key,
#endif
mysql_mutex_t *that,
const pthread_mutexattr_t *attr
#ifdef SAFE_MUTEX
, const char *src_name, const char *src_file, uint src_line
#endif
)
{
#ifdef HAVE_PSI_MUTEX_INTERFACE
that->m_psi= PSI_MUTEX_CALL(init_mutex)(key, &that->m_mutex);
#else
that->m_psi= NULL;
#endif
#ifdef COROUTINE_ENABLED
that->l.data= that;
that->l.prev= that->l.next= NULL;
#endif
#ifdef SAFE_MUTEX
return safe_mutex_init(&that->m_mutex, attr, src_name, src_file, src_line);
#else
return pthread_mutex_init(&that->m_mutex, attr);
#endif
}
|
O0
|
c
|
inline_mysql_mutex_init:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq 0x1b574e(%rip), %rax # 0x235ca8
movq (%rax), %rax
movq 0x40(%rax), %rax
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq *%rax
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x10(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x38(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x30(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x28(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x363f0
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
|
inline_mysql_mutex_init:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+40h]
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
call rax
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+40h], rcx
mov rcx, [rbp+var_10]
mov rax, [rbp+var_10]
mov [rax+38h], rcx
mov rax, [rbp+var_10]
mov qword ptr [rax+30h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+28h], 0
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call _pthread_mutex_init
add rsp, 20h
pop rbp
retn
|
long long inline_mysql_mutex_init(unsigned int a1, _QWORD *a2, long long a3)
{
a2[8] = (*((long long ( **)(_QWORD, _QWORD *))PSI_server + 8))(a1, a2);
a2[7] = a2;
a2[6] = 0LL;
a2[5] = 0LL;
return pthread_mutex_init(a2, a3);
}
|
inline_mysql_mutex_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
LEA RAX,[0x335ca8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x40]
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
CALL RAX
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x40],RCX
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x38],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x30],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x28],0x0
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001363f0
ADD RSP,0x20
POP RBP
RET
|
void inline_mysql_mutex_init
(int4 param_1,pthread_mutex_t *param_2,pthread_mutexattr_t *param_3)
{
int8 uVar1;
uVar1 = (**(code **)(PSI_server + 0x40))(param_1,param_2);
*(int8 *)((long)param_2 + 0x40) = uVar1;
*(pthread_mutex_t **)((long)param_2 + 0x38) = param_2;
*(int8 *)((long)param_2 + 0x30) = 0;
param_2[1].__align = 0;
pthread_mutex_init(param_2,param_3);
return;
}
|
|
10,713 |
replace_len
|
eloqsql/extra/replace.c
|
static uint replace_len(char * str)
{
uint len=0;
while (*str)
{
if (str[0] == '\\' && str[1])
str++;
str++;
len++;
}
return len;
}
|
O0
|
c
|
replace_len:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rax
cmpb $0x0, (%rax)
je 0x26954
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x5c, %eax
jne 0x2693d
movq -0x8(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x0, %eax
je 0x2693d
movq -0x8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x8(%rbp)
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x2690f
movl -0xc(%rbp), %eax
popq %rbp
retq
nopl (%rax)
|
replace_len:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_C], 0
loc_2690F:
mov rax, [rbp+var_8]
cmp byte ptr [rax], 0
jz short loc_26954
mov rax, [rbp+var_8]
movsx eax, byte ptr [rax]
cmp eax, 5Ch ; '\'
jnz short loc_2693D
mov rax, [rbp+var_8]
movsx eax, byte ptr [rax+1]
cmp eax, 0
jz short loc_2693D
mov rax, [rbp+var_8]
add rax, 1
mov [rbp+var_8], rax
loc_2693D:
mov rax, [rbp+var_8]
add rax, 1
mov [rbp+var_8], rax
mov eax, [rbp+var_C]
add eax, 1
mov [rbp+var_C], eax
jmp short loc_2690F
loc_26954:
mov eax, [rbp+var_C]
pop rbp
retn
|
long long replace_len(_BYTE *a1)
{
unsigned int v2; // [rsp+0h] [rbp-Ch]
v2 = 0;
while ( *a1 )
{
if ( *a1 == 92 )
{
if ( a1[1] )
++a1;
}
++a1;
++v2;
}
return v2;
}
|
replace_len:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],0x0
LAB_0012690f:
MOV RAX,qword ptr [RBP + -0x8]
CMP byte ptr [RAX],0x0
JZ 0x00126954
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x5c
JNZ 0x0012693d
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x0
JZ 0x0012693d
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x1
MOV qword ptr [RBP + -0x8],RAX
LAB_0012693d:
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x1
MOV qword ptr [RBP + -0x8],RAX
MOV EAX,dword ptr [RBP + -0xc]
ADD EAX,0x1
MOV dword ptr [RBP + -0xc],EAX
JMP 0x0012690f
LAB_00126954:
MOV EAX,dword ptr [RBP + -0xc]
POP RBP
RET
|
int replace_len(char *param_1)
{
int local_14;
char *local_10;
local_14 = 0;
for (local_10 = param_1; *local_10 != '\0'; local_10 = local_10 + 1) {
if ((*local_10 == '\\') && (local_10[1] != '\0')) {
local_10 = local_10 + 1;
}
local_14 = local_14 + 1;
}
return local_14;
}
|
|
10,714 |
mul_by_xy0_fp6x2
|
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/fp12_tower.c
|
static void mul_by_xy0_fp6x2(vec768fp6 ret, const vec384fp6 a,
const vec384fp6 b)
{
vec768x t0, t1;
vec384x aa, bb;
mul_fp2x2(t0, a[0], b[0]);
mul_fp2x2(t1, a[1], b[1]);
/* ret[0] = ((a1 + a2)*(b1 + 0) - a1*b1 - a2*0)*(u+1) + a0*b0
= (a1*0 + a2*b1)*(u+1) + a0*b0 */
mul_fp2x2(ret[1], a[2], b[1]); /* borrow ret[1] for a moment */
mul_by_u_plus_1_fp2x2(ret[0], ret[1]);
add_fp2x2(ret[0], ret[0], t0);
/* ret[1] = (a0 + a1)*(b0 + b1) - a0*b0 - a1*b1 + a2*0*(u+1)
= a0*b1 + a1*b0 + a2*0*(u+1) */
add_fp2(aa, a[0], a[1]);
add_fp2(bb, b[0], b[1]);
mul_fp2x2(ret[1], aa, bb);
sub_fp2x2(ret[1], ret[1], t0);
sub_fp2x2(ret[1], ret[1], t1);
/* ret[2] = (a0 + a2)*(b0 + 0) - a0*b0 - a2*0 + a1*b1
= a0*0 + a2*b0 + a1*b1 */
mul_fp2x2(ret[2], a[2], b[0]);
add_fp2x2(ret[2], ret[2], t1);
}
|
O0
|
c
|
mul_by_xy0_fp6x2:
pushq %rbp
movq %rsp, %rbp
subq $0x260, %rsp # imm = 0x260
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq -0xe0(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0xbc3e0
leaq -0x1a0(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x60, %rsi
movq -0x18(%rbp), %rdx
addq $0x60, %rdx
callq 0xbc3e0
movq -0x8(%rbp), %rdi
addq $0xc0, %rdi
movq -0x10(%rbp), %rsi
addq $0xc0, %rsi
movq -0x18(%rbp), %rdx
addq $0x60, %rdx
callq 0xbc3e0
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0xc0, %rsi
callq 0xbc480
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
leaq -0xe0(%rbp), %rdx
callq 0xbc4e0
leaq -0x200(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x10(%rbp), %rdx
addq $0x60, %rdx
callq 0xb4e60
leaq -0x260(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq $0x60, %rdx
callq 0xb4e60
movq -0x8(%rbp), %rdi
addq $0xc0, %rdi
leaq -0x200(%rbp), %rsi
leaq -0x260(%rbp), %rdx
callq 0xbc3e0
movq -0x8(%rbp), %rdi
addq $0xc0, %rdi
movq -0x8(%rbp), %rsi
addq $0xc0, %rsi
leaq -0xe0(%rbp), %rdx
callq 0xbc420
movq -0x8(%rbp), %rdi
addq $0xc0, %rdi
movq -0x8(%rbp), %rsi
addq $0xc0, %rsi
leaq -0x1a0(%rbp), %rdx
callq 0xbc420
movq -0x8(%rbp), %rdi
addq $0x180, %rdi # imm = 0x180
movq -0x10(%rbp), %rsi
addq $0xc0, %rsi
movq -0x18(%rbp), %rdx
callq 0xbc3e0
movq -0x8(%rbp), %rdi
addq $0x180, %rdi # imm = 0x180
movq -0x8(%rbp), %rsi
addq $0x180, %rsi # imm = 0x180
leaq -0x1a0(%rbp), %rdx
callq 0xbc4e0
addq $0x260, %rsp # imm = 0x260
popq %rbp
retq
nop
|
mul_by_xy0_fp6x2:
push rbp
mov rbp, rsp
sub rsp, 260h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
lea rdi, [rbp+var_E0]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
call mul_fp2x2
lea rdi, [rbp+var_1A0]
mov rsi, [rbp+var_10]
add rsi, 60h ; '`'
mov rdx, [rbp+var_18]
add rdx, 60h ; '`'
call mul_fp2x2
mov rdi, [rbp+var_8]
add rdi, 0C0h
mov rsi, [rbp+var_10]
add rsi, 0C0h
mov rdx, [rbp+var_18]
add rdx, 60h ; '`'
call mul_fp2x2
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_8]
add rsi, 0C0h
call mul_by_u_plus_1_fp2x2
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_8]
lea rdx, [rbp+var_E0]
call add_fp2x2
lea rdi, [rbp+var_200]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_10]
add rdx, 60h ; '`'
call add_fp2
lea rdi, [rbp+var_260]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_18]
add rdx, 60h ; '`'
call add_fp2
mov rdi, [rbp+var_8]
add rdi, 0C0h
lea rsi, [rbp+var_200]
lea rdx, [rbp+var_260]
call mul_fp2x2
mov rdi, [rbp+var_8]
add rdi, 0C0h
mov rsi, [rbp+var_8]
add rsi, 0C0h
lea rdx, [rbp+var_E0]
call _sub_fp2x2
mov rdi, [rbp+var_8]
add rdi, 0C0h
mov rsi, [rbp+var_8]
add rsi, 0C0h
lea rdx, [rbp+var_1A0]
call _sub_fp2x2
mov rdi, [rbp+var_8]
add rdi, 180h
mov rsi, [rbp+var_10]
add rsi, 0C0h
mov rdx, [rbp+var_18]
call mul_fp2x2
mov rdi, [rbp+var_8]
add rdi, 180h
mov rsi, [rbp+var_8]
add rsi, 180h
lea rdx, [rbp+var_1A0]
call add_fp2x2
add rsp, 260h
pop rbp
retn
|
long long mul_by_xy0_fp6x2(long long a1, long long a2, long long a3)
{
_BYTE v4[96]; // [rsp+0h] [rbp-260h] BYREF
_BYTE v5[96]; // [rsp+60h] [rbp-200h] BYREF
_BYTE v6[192]; // [rsp+C0h] [rbp-1A0h] BYREF
_BYTE v7[200]; // [rsp+180h] [rbp-E0h] BYREF
long long v8; // [rsp+248h] [rbp-18h]
long long v9; // [rsp+250h] [rbp-10h]
long long v10; // [rsp+258h] [rbp-8h]
v10 = a1;
v9 = a2;
v8 = a3;
mul_fp2x2((long long)v7, a2, a3);
mul_fp2x2((long long)v6, v9 + 96, v8 + 96);
mul_fp2x2(v10 + 192, v9 + 192, v8 + 96);
mul_by_u_plus_1_fp2x2(v10, v10 + 192);
add_fp2x2(v10, v10, (long long)v7);
add_fp2((long long)v5, v9, v9 + 96);
add_fp2((long long)v4, v8, v8 + 96);
mul_fp2x2(v10 + 192, (long long)v5, (long long)v4);
sub_fp2x2(v10 + 192, v10 + 192, (long long)v7);
sub_fp2x2(v10 + 192, v10 + 192, (long long)v6);
mul_fp2x2(v10 + 384, v9 + 192, v8);
return add_fp2x2(v10 + 384, v10 + 384, (long long)v6);
}
|
mul_by_xy0_fp6x2:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x260
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
LEA RDI,[RBP + -0xe0]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x001bc3e0
LEA RDI,[RBP + -0x1a0]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x60
MOV RDX,qword ptr [RBP + -0x18]
ADD RDX,0x60
CALL 0x001bc3e0
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc0
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0xc0
MOV RDX,qword ptr [RBP + -0x18]
ADD RDX,0x60
CALL 0x001bc3e0
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0xc0
CALL 0x001bc480
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x8]
LEA RDX,[RBP + -0xe0]
CALL 0x001bc4e0
LEA RDI,[RBP + -0x200]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x10]
ADD RDX,0x60
CALL 0x001b4e60
LEA RDI,[RBP + -0x260]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x18]
ADD RDX,0x60
CALL 0x001b4e60
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc0
LEA RSI,[RBP + -0x200]
LEA RDX,[RBP + -0x260]
CALL 0x001bc3e0
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc0
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0xc0
LEA RDX,[RBP + -0xe0]
CALL 0x001bc420
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc0
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0xc0
LEA RDX,[RBP + -0x1a0]
CALL 0x001bc420
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x180
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0xc0
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x001bc3e0
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x180
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0x180
LEA RDX,[RBP + -0x1a0]
CALL 0x001bc4e0
ADD RSP,0x260
POP RBP
RET
|
void mul_by_xy0_fp6x2(long param_1,long param_2,long param_3)
{
int1 local_268 [96];
int1 local_208 [96];
int1 local_1a8 [192];
int1 local_e8 [200];
long local_20;
long local_18;
long local_10;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
mul_fp2x2(local_e8,param_2,param_3);
mul_fp2x2(local_1a8,local_18 + 0x60,local_20 + 0x60);
mul_fp2x2(local_10 + 0xc0,local_18 + 0xc0,local_20 + 0x60);
mul_by_u_plus_1_fp2x2(local_10,local_10 + 0xc0);
add_fp2x2(local_10,local_10,local_e8);
add_fp2(local_208,local_18,local_18 + 0x60);
add_fp2(local_268,local_20,local_20 + 0x60);
mul_fp2x2(local_10 + 0xc0,local_208,local_268);
sub_fp2x2(local_10 + 0xc0,local_10 + 0xc0,local_e8);
sub_fp2x2(local_10 + 0xc0,local_10 + 0xc0,local_1a8);
mul_fp2x2(local_10 + 0x180,local_18 + 0xc0,local_20);
add_fp2x2(local_10 + 0x180,local_10 + 0x180,local_1a8);
return;
}
|
|
10,715 |
cli::value::~value()
|
msxemulator/build_O3/_deps/picotool-src/cli.h
|
explicit value(string name) : value_base(std::move(name)) {}
|
O3
|
c
|
cli::value::~value():
pushq %rbx
movq %rdi, %rbx
leaq 0x92b7b(%rip), %rax # 0xe0250
movq %rax, (%rdi)
movq 0xc8(%rdi), %rax
testq %rax, %rax
je 0x4d6f5
leaq 0xb8(%rbx), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x5872e
movl $0xd8, %esi
movq %rbx, %rdi
popq %rbx
jmp 0xf470
movq %rax, %rdi
callq 0x1d2b2
nop
|
_ZN3cli5valueD0Ev:
push rbx
mov rbx, rdi
lea rax, off_E0250
mov [rdi], rax
mov rax, [rdi+0C8h]
test rax, rax
jz short loc_4D6F5
lea rdi, [rbx+0B8h]
mov rsi, rdi
mov edx, 3
call rax
loc_4D6F5:
mov rdi, rbx; this
call _ZN3cli9matchableD2Ev; cli::matchable::~matchable()
mov esi, 0D8h; unsigned __int64
mov rdi, rbx; void *
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
mov rdi, rax
call __clang_call_terminate
|
void cli::value::~value(cli::value *this)
{
void ( *v1)(char *, char *, long long); // rax
*(_QWORD *)this = off_E0250;
v1 = (void ( *)(char *, char *, long long))*((_QWORD *)this + 25);
if ( v1 )
v1((char *)this + 184, (char *)this + 184, 3LL);
cli::matchable::~matchable(this);
operator delete(this, 0xD8uLL);
}
|
~value:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x1e0250]
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RDI + 0xc8]
TEST RAX,RAX
JZ 0x0014d6f5
LEA RDI,[RBX + 0xb8]
LAB_0014d6eb:
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_0014d6f5:
MOV RDI,RBX
CALL 0x0015872e
MOV ESI,0xd8
MOV RDI,RBX
POP RBX
JMP 0x0010f470
|
/* cli::value::~value() */
void __thiscall cli::value::~value(value *this)
{
*(int ***)this = &PTR__value_base_001e0250;
if (*(code **)(this + 200) != (code *)0x0) {
/* try { // try from 0014d6eb to 0014d6f4 has its CatchHandler @ 0014d70b */
(**(code **)(this + 200))(this + 0xb8,this + 0xb8,3);
}
matchable::~matchable((matchable *)this);
operator_delete(this,0xd8);
return;
}
|
|
10,716 |
PFS_connection_slice::reset_stats()
|
eloqsql/storage/perfschema/pfs_con_slice.h
|
inline void reset_stats()
{
m_has_waits_stats= false;
m_has_stages_stats= false;
m_has_statements_stats= false;
m_has_transactions_stats= false;
m_has_memory_stats= false;
reset_status_stats();
}
|
O0
|
c
|
PFS_connection_slice::reset_stats():
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movb $0x0, (%rdi)
movb $0x0, 0x1(%rdi)
movb $0x0, 0x2(%rdi)
movb $0x0, 0x3(%rdi)
movb $0x0, 0x4(%rdi)
callq 0x36d60
addq $0x10, %rsp
popq %rbp
retq
nop
|
_ZN20PFS_connection_slice11reset_statsEv:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]; this
mov byte ptr [rdi], 0
mov byte ptr [rdi+1], 0
mov byte ptr [rdi+2], 0
mov byte ptr [rdi+3], 0
mov byte ptr [rdi+4], 0
call _ZN20PFS_connection_slice18reset_status_statsEv; PFS_connection_slice::reset_status_stats(void)
add rsp, 10h
pop rbp
retn
|
long long PFS_connection_slice::reset_stats(PFS_connection_slice *this)
{
*(_BYTE *)this = 0;
*((_BYTE *)this + 1) = 0;
*((_BYTE *)this + 2) = 0;
*((_BYTE *)this + 3) = 0;
*((_BYTE *)this + 4) = 0;
return PFS_connection_slice::reset_status_stats(this);
}
|
reset_stats:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
MOV byte ptr [RDI],0x0
MOV byte ptr [RDI + 0x1],0x0
MOV byte ptr [RDI + 0x2],0x0
MOV byte ptr [RDI + 0x3],0x0
MOV byte ptr [RDI + 0x4],0x0
CALL 0x00136d60
ADD RSP,0x10
POP RBP
RET
|
/* PFS_connection_slice::reset_stats() */
void __thiscall PFS_connection_slice::reset_stats(PFS_connection_slice *this)
{
*this = (PFS_connection_slice)0x0;
this[1] = (PFS_connection_slice)0x0;
this[2] = (PFS_connection_slice)0x0;
this[3] = (PFS_connection_slice)0x0;
this[4] = (PFS_connection_slice)0x0;
reset_status_stats(this);
return;
}
|
|
10,717 |
minja::IfTemplateToken::~IfTemplateToken()
|
monkey531[P]llama/common/./minja.hpp
|
IfTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, std::shared_ptr<Expression> && c) : TemplateToken(Type::If, location, pre, post), condition(std::move(c)) {}
|
O3
|
cpp
|
minja::IfTemplateToken::~IfTemplateToken():
pushq %rbx
movq %rdi, %rbx
leaq 0x95663(%rip), %rax # 0xeeb50
movq %rax, (%rdi)
movq 0x38(%rdi), %rdi
testq %rdi, %rdi
je 0x594fe
callq 0x2f80e
leaq 0x94cc3(%rip), %rax # 0xee1c8
movq %rax, (%rbx)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x59517
popq %rbx
jmp 0x2f80e
popq %rbx
retq
nop
|
_ZN5minja15IfTemplateTokenD2Ev:
push rbx
mov rbx, rdi
lea rax, off_EEB50
mov [rdi], rax
mov rdi, [rdi+38h]
test rdi, rdi
jz short loc_594FE
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_594FE:
lea rax, off_EE1C8
mov [rbx], rax
mov rdi, [rbx+18h]
test rdi, rdi
jz short loc_59517
pop rbx
jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_59517:
pop rbx
retn
|
void minja::IfTemplateToken::~IfTemplateToken(minja::IfTemplateToken *this)
{
volatile signed __int32 *v2; // rdi
volatile signed __int32 *v3; // rdi
*(_QWORD *)this = off_EEB50;
v2 = (volatile signed __int32 *)*((_QWORD *)this + 7);
if ( v2 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2);
*(_QWORD *)this = off_EE1C8;
v3 = (volatile signed __int32 *)*((_QWORD *)this + 3);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
}
|
~IfTemplateToken:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x1eeb50]
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x38]
TEST RDI,RDI
JZ 0x001594fe
CALL 0x0012f80e
LAB_001594fe:
LEA RAX,[0x1ee1c8]
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x18]
TEST RDI,RDI
JZ 0x00159517
POP RBX
JMP 0x0012f80e
LAB_00159517:
POP RBX
RET
|
/* minja::IfTemplateToken::~IfTemplateToken() */
void __thiscall minja::IfTemplateToken::~IfTemplateToken(IfTemplateToken *this)
{
*(int ***)this = &PTR__IfTemplateToken_001eeb50;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38));
}
*(int ***)this = &PTR__TemplateToken_001ee1c8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18));
return;
}
return;
}
|
|
10,718 |
init_instruments(PFS_global_param const*)
|
eloqsql/storage/perfschema/pfs_instr.cc
|
int init_instruments(const PFS_global_param *param)
{
uint index;
/* Make sure init_event_name_sizing is called */
assert(wait_class_max != 0);
file_handle_max= param->m_file_handle_sizing;
file_handle_full= false;
file_handle_lost= 0;
pfs_max_digest_length= param->m_max_digest_length;
pfs_max_sqltext= param->m_max_sql_text_length;
events_waits_history_per_thread= param->m_events_waits_history_sizing;
events_stages_history_per_thread= param->m_events_stages_history_sizing;
events_statements_history_per_thread= param->m_events_statements_history_sizing;
statement_stack_max= param->m_statement_stack_sizing;
events_transactions_history_per_thread= param->m_events_transactions_history_sizing;
session_connect_attrs_size_per_thread= param->m_session_connect_attrs_sizing;
session_connect_attrs_lost= 0;
file_handle_array= NULL;
thread_internal_id_counter.m_u64= 0;
if (global_mutex_container.init(param->m_mutex_sizing))
return 1;
if (global_rwlock_container.init(param->m_rwlock_sizing))
return 1;
if (global_cond_container.init(param->m_cond_sizing))
return 1;
if (global_file_container.init(param->m_file_sizing))
return 1;
if (file_handle_max > 0)
{
file_handle_array= PFS_MALLOC_ARRAY(& builtin_memory_file_handle,
file_handle_max,
sizeof(PFS_file*), PFS_file*,
MYF(MY_ZEROFILL));
if (unlikely(file_handle_array == NULL))
return 1;
}
if (global_table_container.init(param->m_table_sizing))
return 1;
if (global_socket_container.init(param->m_socket_sizing))
return 1;
if (global_mdl_container.init(param->m_metadata_lock_sizing))
return 1;
if (global_thread_container.init(param->m_thread_sizing))
return 1;
if (stage_class_max > 0)
{
global_instr_class_stages_array=
PFS_MALLOC_ARRAY(& builtin_memory_global_stages,
stage_class_max,
sizeof(PFS_stage_stat), PFS_stage_stat,
MYF(MY_ZEROFILL));
if (unlikely(global_instr_class_stages_array == NULL))
return 1;
for (index= 0; index < stage_class_max; index++)
global_instr_class_stages_array[index].reset();
}
if (statement_class_max > 0)
{
global_instr_class_statements_array=
PFS_MALLOC_ARRAY(& builtin_memory_global_statements,
statement_class_max,
sizeof(PFS_statement_stat), PFS_statement_stat,
MYF(MY_ZEROFILL));
if (unlikely(global_instr_class_statements_array == NULL))
return 1;
for (index= 0; index < statement_class_max; index++)
global_instr_class_statements_array[index].reset();
}
if (memory_class_max > 0)
{
global_instr_class_memory_array=
PFS_MALLOC_ARRAY(& builtin_memory_global_memory,
memory_class_max,
sizeof(PFS_memory_stat), PFS_memory_stat,
MYF(MY_ZEROFILL));
if (unlikely(global_instr_class_memory_array == NULL))
return 1;
for (index= 0; index < memory_class_max; index++)
global_instr_class_memory_array[index].reset();
}
return 0;
}
|
O0
|
cpp
|
init_instruments(PFS_global_param const*):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x88(%rax), %rax
movq %rax, 0x3dba32(%rip) # 0x409e00
movb $0x0, 0x3dba33(%rip) # 0x409e08
movq $0x0, 0x3dba30(%rip) # 0x409e10
movq -0x10(%rbp), %rax
movq 0x150(%rax), %rax
movq %rax, 0x3dba46(%rip) # 0x409e38
movq -0x10(%rbp), %rax
movq 0x158(%rax), %rax
movq %rax, 0x3dba3c(%rip) # 0x409e40
movq -0x10(%rbp), %rax
movq 0xa0(%rax), %rax
movq %rax, 0x3dba02(%rip) # 0x409e18
movq -0x10(%rbp), %rax
movq 0xe0(%rax), %rax
movq %rax, 0x3db9f8(%rip) # 0x409e20
movq -0x10(%rbp), %rax
movq 0xf8(%rax), %rax
movq %rax, 0x3db9ee(%rip) # 0x409e28
movq -0x10(%rbp), %rax
movq 0x138(%rax), %rax
movl %eax, 0x3db9e5(%rip) # 0x409e30
movq -0x10(%rbp), %rax
movq 0x120(%rax), %rax
movq %rax, 0x3dba0b(%rip) # 0x409e68
movq -0x10(%rbp), %rax
movq 0x130(%rax), %rax
movq %rax, 0x3db9e9(%rip) # 0x409e58
movq $0x0, 0x3db9e6(%rip) # 0x409e60
movq $0x0, 0x3db9eb(%rip) # 0x409e70
movq $0x0, 0x3dba30(%rip) # 0x409ec0
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rsi
leaq 0x39ce91(%rip), %rdi # 0x3cb330
callq 0x32380
cmpl $0x0, %eax
je 0x2e4b5
movl $0x1, -0x4(%rbp)
jmp 0x2e7c5
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rsi
leaq 0x39ce84(%rip), %rdi # 0x3cb348
callq 0x323e0
cmpl $0x0, %eax
je 0x2e4da
movl $0x1, -0x4(%rbp)
jmp 0x2e7c5
movq -0x10(%rbp), %rax
movq 0x68(%rax), %rsi
leaq 0x39ef3f(%rip), %rdi # 0x3cd428
callq 0x32550
cmpl $0x0, %eax
je 0x2e4ff
movl $0x1, -0x4(%rbp)
jmp 0x2e7c5
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rsi
leaq 0x39f7f7(%rip), %rdi # 0x3cdd08
callq 0x326c0
cmpl $0x0, %eax
je 0x2e527
movl $0x1, -0x4(%rbp)
jmp 0x2e7c5
cmpq $0x0, 0x3db8d1(%rip) # 0x409e00
jle 0x2e578
movq 0x3db8c8(%rip), %rsi # 0x409e00
leaq 0x3d6881(%rip), %rdi # 0x404dc0
movl $0x8, %edx
movl $0x20, %ecx
callq 0x29b10
movq %rax, 0x3db91b(%rip) # 0x409e70
cmpq $0x0, 0x3db913(%rip) # 0x409e70
sete %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x2e576
movl $0x1, -0x4(%rbp)
jmp 0x2e7c5
jmp 0x2e578
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rsi
leaq 0x3ae3e1(%rip), %rdi # 0x3dc968
callq 0x32830
cmpl $0x0, %eax
je 0x2e59d
movl $0x1, -0x4(%rbp)
jmp 0x2e7c5
movq -0x10(%rbp), %rax
movq 0x90(%rax), %rsi
leaq 0x3a7839(%rip), %rdi # 0x3d5de8
callq 0x329a0
cmpl $0x0, %eax
je 0x2e5c5
movl $0x1, -0x4(%rbp)
jmp 0x2e7c5
movq -0x10(%rbp), %rax
movq 0x148(%rax), %rsi
leaq 0x3a80f1(%rip), %rdi # 0x3d66c8
callq 0x32b10
cmpl $0x0, %eax
je 0x2e5ed
movl $0x1, -0x4(%rbp)
jmp 0x2e7c5
movq -0x10(%rbp), %rax
movq 0x70(%rax), %rsi
leaq 0x3d526c(%rip), %rdi # 0x403868
callq 0x32c80
cmpl $0x0, %eax
je 0x2e612
movl $0x1, -0x4(%rbp)
jmp 0x2e7c5
leaq 0x3dba77(%rip), %rax # 0x40a090
cmpq $0x0, (%rax)
jbe 0x2e69e
leaq 0x3dba6a(%rip), %rax # 0x40a090
movq (%rax), %rsi
leaq 0x3d7050(%rip), %rdi # 0x405680
movl $0x20, %ecx
movq %rcx, %rdx
callq 0x29b10
movq %rax, 0x3db834(%rip) # 0x409e78
cmpq $0x0, 0x3db82c(%rip) # 0x409e78
sete %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x2e665
movl $0x1, -0x4(%rbp)
jmp 0x2e7c5
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
leaq 0x3dba1a(%rip), %rcx # 0x40a090
cmpq (%rcx), %rax
jae 0x2e69c
movq 0x3db7f6(%rip), %rdi # 0x409e78
movl -0x14(%rbp), %eax
shlq $0x5, %rax
addq %rax, %rdi
callq 0x2d9d0
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x2e66c
jmp 0x2e69e
leaq 0x3db9fb(%rip), %rax # 0x40a0a0
cmpq $0x0, (%rax)
jbe 0x2e733
leaq 0x3db9ea(%rip), %rax # 0x40a0a0
movq (%rax), %rsi
leaq 0x3d7100(%rip), %rdi # 0x4057c0
movl $0xb8, %edx
movl $0x20, %ecx
callq 0x29b10
movq %rax, 0x3db7aa(%rip) # 0x409e80
cmpq $0x0, 0x3db7a2(%rip) # 0x409e80
sete %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x2e6f7
movl $0x1, -0x4(%rbp)
jmp 0x2e7c5
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
leaq 0x3db998(%rip), %rcx # 0x40a0a0
cmpq (%rcx), %rax
jae 0x2e731
movq 0x3db76c(%rip), %rdi # 0x409e80
movl -0x14(%rbp), %eax
imulq $0xb8, %rax, %rax
addq %rax, %rdi
callq 0x2d9f0
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x2e6fe
jmp 0x2e733
leaq 0x3db986(%rip), %rax # 0x40a0c0
cmpq $0x0, (%rax)
jbe 0x2e7be
leaq 0x3db979(%rip), %rax # 0x40a0c0
movq (%rax), %rsi
leaq 0x3d71af(%rip), %rdi # 0x405900
movl $0x48, %edx
movl $0x20, %ecx
callq 0x29b10
movq %rax, 0x3db721(%rip) # 0x409e88
cmpq $0x0, 0x3db719(%rip) # 0x409e88
sete %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x2e785
movl $0x1, -0x4(%rbp)
jmp 0x2e7c5
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
leaq 0x3db92a(%rip), %rcx # 0x40a0c0
cmpq (%rcx), %rax
jae 0x2e7bc
movq 0x3db6e6(%rip), %rdi # 0x409e88
movl -0x14(%rbp), %eax
imulq $0x48, %rax, %rax
addq %rax, %rdi
callq 0x2da60
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x2e78c
jmp 0x2e7be
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
|
_Z16init_instrumentsPK16PFS_global_param:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov rax, [rax+88h]
mov cs:file_handle_max, rax
mov cs:file_handle_full, 0
mov cs:file_handle_lost, 0
mov rax, [rbp+var_10]
mov rax, [rax+150h]
mov cs:pfs_max_digest_length, rax
mov rax, [rbp+var_10]
mov rax, [rax+158h]
mov cs:pfs_max_sqltext, rax
mov rax, [rbp+var_10]
mov rax, [rax+0A0h]
mov cs:events_waits_history_per_thread, rax
mov rax, [rbp+var_10]
mov rax, [rax+0E0h]
mov cs:events_stages_history_per_thread, rax
mov rax, [rbp+var_10]
mov rax, [rax+0F8h]
mov cs:events_statements_history_per_thread, rax
mov rax, [rbp+var_10]
mov rax, [rax+138h]
mov cs:statement_stack_max, eax
mov rax, [rbp+var_10]
mov rax, [rax+120h]
mov cs:events_transactions_history_per_thread, rax
mov rax, [rbp+var_10]
mov rax, [rax+130h]
mov cs:session_connect_attrs_size_per_thread, rax
mov cs:session_connect_attrs_lost, 0
mov cs:file_handle_array, 0
mov cs:_ZL26thread_internal_id_counter, 0; thread_internal_id_counter
mov rax, [rbp+var_10]
mov rsi, [rax+58h]
lea rdi, global_mutex_container
call _ZN41PFS_partitioned_buffer_scalable_containerI29PFS_buffer_scalable_containerI9PFS_mutexLi1024ELi1024E24PFS_buffer_default_arrayIS1_E28PFS_buffer_default_allocatorIS1_EELi2EE4initEl; PFS_partitioned_buffer_scalable_container<PFS_buffer_scalable_container<PFS_mutex,1024,1024,PFS_buffer_default_array<PFS_mutex>,PFS_buffer_default_allocator<PFS_mutex>>,2>::init(long)
cmp eax, 0
jz short loc_2E4B5
mov [rbp+var_4], 1
jmp loc_2E7C5
loc_2E4B5:
mov rax, [rbp+var_10]
mov rsi, [rax+60h]
lea rdi, global_rwlock_container
call _ZN29PFS_buffer_scalable_containerI10PFS_rwlockLi1024ELi1024E24PFS_buffer_default_arrayIS0_E28PFS_buffer_default_allocatorIS0_EE4initEl; PFS_buffer_scalable_container<PFS_rwlock,1024,1024,PFS_buffer_default_array<PFS_rwlock>,PFS_buffer_default_allocator<PFS_rwlock>>::init(long)
cmp eax, 0
jz short loc_2E4DA
mov [rbp+var_4], 1
jmp loc_2E7C5
loc_2E4DA:
mov rax, [rbp+var_10]
mov rsi, [rax+68h]
lea rdi, global_cond_container
call _ZN29PFS_buffer_scalable_containerI8PFS_condLi256ELi256E24PFS_buffer_default_arrayIS0_E28PFS_buffer_default_allocatorIS0_EE4initEl; PFS_buffer_scalable_container<PFS_cond,256,256,PFS_buffer_default_array<PFS_cond>,PFS_buffer_default_allocator<PFS_cond>>::init(long)
cmp eax, 0
jz short loc_2E4FF
mov [rbp+var_4], 1
jmp loc_2E7C5
loc_2E4FF:
mov rax, [rbp+var_10]
mov rsi, [rax+80h]
lea rdi, global_file_container
call _ZN29PFS_buffer_scalable_containerI8PFS_fileLi4096ELi4096E24PFS_buffer_default_arrayIS0_E28PFS_buffer_default_allocatorIS0_EE4initEl; PFS_buffer_scalable_container<PFS_file,4096,4096,PFS_buffer_default_array<PFS_file>,PFS_buffer_default_allocator<PFS_file>>::init(long)
cmp eax, 0
jz short loc_2E527
mov [rbp+var_4], 1
jmp loc_2E7C5
loc_2E527:
cmp cs:file_handle_max, 0
jle short loc_2E578
mov rsi, cs:file_handle_max; unsigned __int64
lea rdi, builtin_memory_file_handle; PFS_builtin_memory_class *
mov edx, 8; unsigned __int64
mov ecx, 20h ; ' '; unsigned __int64
call _Z16pfs_malloc_arrayP24PFS_builtin_memory_classmmm; pfs_malloc_array(PFS_builtin_memory_class *,ulong,ulong,ulong)
mov cs:file_handle_array, rax
cmp cs:file_handle_array, 0
setz al
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_2E576
mov [rbp+var_4], 1
jmp loc_2E7C5
loc_2E576:
jmp short $+2
loc_2E578:
mov rax, [rbp+var_10]
mov rsi, [rax+78h]
lea rdi, global_table_container
call _ZN29PFS_buffer_scalable_containerI9PFS_tableLi1024ELi1024E24PFS_buffer_default_arrayIS0_E28PFS_buffer_default_allocatorIS0_EE4initEl; PFS_buffer_scalable_container<PFS_table,1024,1024,PFS_buffer_default_array<PFS_table>,PFS_buffer_default_allocator<PFS_table>>::init(long)
cmp eax, 0
jz short loc_2E59D
mov [rbp+var_4], 1
jmp loc_2E7C5
loc_2E59D:
mov rax, [rbp+var_10]
mov rsi, [rax+90h]
lea rdi, global_socket_container
call _ZN29PFS_buffer_scalable_containerI10PFS_socketLi256ELi256E24PFS_buffer_default_arrayIS0_E28PFS_buffer_default_allocatorIS0_EE4initEl; PFS_buffer_scalable_container<PFS_socket,256,256,PFS_buffer_default_array<PFS_socket>,PFS_buffer_default_allocator<PFS_socket>>::init(long)
cmp eax, 0
jz short loc_2E5C5
mov [rbp+var_4], 1
jmp loc_2E7C5
loc_2E5C5:
mov rax, [rbp+var_10]
mov rsi, [rax+148h]
lea rdi, global_mdl_container
call _ZN29PFS_buffer_scalable_containerI17PFS_metadata_lockLi1024ELi1024E24PFS_buffer_default_arrayIS0_E28PFS_buffer_default_allocatorIS0_EE4initEl; PFS_buffer_scalable_container<PFS_metadata_lock,1024,1024,PFS_buffer_default_array<PFS_metadata_lock>,PFS_buffer_default_allocator<PFS_metadata_lock>>::init(long)
cmp eax, 0
jz short loc_2E5ED
mov [rbp+var_4], 1
jmp loc_2E7C5
loc_2E5ED:
mov rax, [rbp+var_10]
mov rsi, [rax+70h]
lea rdi, global_thread_container
call _ZN29PFS_buffer_scalable_containerI10PFS_threadLi256ELi256E16PFS_thread_array20PFS_thread_allocatorE4initEl; PFS_buffer_scalable_container<PFS_thread,256,256,PFS_thread_array,PFS_thread_allocator>::init(long)
cmp eax, 0
jz short loc_2E612
mov [rbp+var_4], 1
jmp loc_2E7C5
loc_2E612:
lea rax, stage_class_max
cmp qword ptr [rax], 0
jbe short loc_2E69E
lea rax, stage_class_max
mov rsi, [rax]; unsigned __int64
lea rdi, builtin_memory_global_stages; PFS_builtin_memory_class *
mov ecx, 20h ; ' '; unsigned __int64
mov rdx, rcx; unsigned __int64
call _Z16pfs_malloc_arrayP24PFS_builtin_memory_classmmm; pfs_malloc_array(PFS_builtin_memory_class *,ulong,ulong,ulong)
mov cs:global_instr_class_stages_array, rax
cmp cs:global_instr_class_stages_array, 0
setz al
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_2E665
mov [rbp+var_4], 1
jmp loc_2E7C5
loc_2E665:
mov [rbp+var_14], 0
loc_2E66C:
mov eax, [rbp+var_14]
lea rcx, stage_class_max
cmp rax, [rcx]
jnb short loc_2E69C
mov rdi, cs:global_instr_class_stages_array
mov eax, [rbp+var_14]
shl rax, 5
add rdi, rax; this
call _ZN14PFS_stage_stat5resetEv; PFS_stage_stat::reset(void)
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp short loc_2E66C
loc_2E69C:
jmp short $+2
loc_2E69E:
lea rax, statement_class_max
cmp qword ptr [rax], 0
jbe loc_2E733
lea rax, statement_class_max
mov rsi, [rax]; unsigned __int64
lea rdi, builtin_memory_global_statements; PFS_builtin_memory_class *
mov edx, 0B8h; unsigned __int64
mov ecx, 20h ; ' '; unsigned __int64
call _Z16pfs_malloc_arrayP24PFS_builtin_memory_classmmm; pfs_malloc_array(PFS_builtin_memory_class *,ulong,ulong,ulong)
mov cs:global_instr_class_statements_array, rax
cmp cs:global_instr_class_statements_array, 0
setz al
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_2E6F7
mov [rbp+var_4], 1
jmp loc_2E7C5
loc_2E6F7:
mov [rbp+var_14], 0
loc_2E6FE:
mov eax, [rbp+var_14]
lea rcx, statement_class_max
cmp rax, [rcx]
jnb short loc_2E731
mov rdi, cs:global_instr_class_statements_array
mov eax, [rbp+var_14]
imul rax, 0B8h
add rdi, rax; this
call _ZN18PFS_statement_stat5resetEv; PFS_statement_stat::reset(void)
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp short loc_2E6FE
loc_2E731:
jmp short $+2
loc_2E733:
lea rax, memory_class_max
cmp qword ptr [rax], 0
jbe short loc_2E7BE
lea rax, memory_class_max
mov rsi, [rax]; unsigned __int64
lea rdi, builtin_memory_global_memory; PFS_builtin_memory_class *
mov edx, 48h ; 'H'; unsigned __int64
mov ecx, 20h ; ' '; unsigned __int64
call _Z16pfs_malloc_arrayP24PFS_builtin_memory_classmmm; pfs_malloc_array(PFS_builtin_memory_class *,ulong,ulong,ulong)
mov cs:global_instr_class_memory_array, rax
cmp cs:global_instr_class_memory_array, 0
setz al
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_2E785
mov [rbp+var_4], 1
jmp short loc_2E7C5
loc_2E785:
mov [rbp+var_14], 0
loc_2E78C:
mov eax, [rbp+var_14]
lea rcx, memory_class_max
cmp rax, [rcx]
jnb short loc_2E7BC
mov rdi, cs:global_instr_class_memory_array
mov eax, [rbp+var_14]
imul rax, 48h ; 'H'
add rdi, rax; this
call _ZN15PFS_memory_stat5resetEv; PFS_memory_stat::reset(void)
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp short loc_2E78C
loc_2E7BC:
jmp short $+2
loc_2E7BE:
mov [rbp+var_4], 0
loc_2E7C5:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
|
long long init_instruments(_QWORD *a1)
{
unsigned int i; // [rsp+Ch] [rbp-14h]
unsigned int j; // [rsp+Ch] [rbp-14h]
unsigned int k; // [rsp+Ch] [rbp-14h]
file_handle_max = a1[17];
file_handle_full = 0;
file_handle_lost = 0LL;
pfs_max_digest_length = a1[42];
pfs_max_sqltext = a1[43];
events_waits_history_per_thread = a1[20];
events_stages_history_per_thread = a1[28];
events_statements_history_per_thread = a1[31];
statement_stack_max = a1[39];
events_transactions_history_per_thread = a1[36];
session_connect_attrs_size_per_thread = a1[38];
session_connect_attrs_lost = 0LL;
file_handle_array = 0LL;
thread_internal_id_counter = 0LL;
if ( (unsigned int)PFS_partitioned_buffer_scalable_container<PFS_buffer_scalable_container<PFS_mutex,1024,1024,PFS_buffer_default_array<PFS_mutex>,PFS_buffer_default_allocator<PFS_mutex>>,2>::init(
&global_mutex_container,
a1[11]) )
{
return 1;
}
else if ( (unsigned int)PFS_buffer_scalable_container<PFS_rwlock,1024,1024,PFS_buffer_default_array<PFS_rwlock>,PFS_buffer_default_allocator<PFS_rwlock>>::init(
&global_rwlock_container,
a1[12]) )
{
return 1;
}
else if ( (unsigned int)PFS_buffer_scalable_container<PFS_cond,256,256,PFS_buffer_default_array<PFS_cond>,PFS_buffer_default_allocator<PFS_cond>>::init(
&global_cond_container,
a1[13]) )
{
return 1;
}
else if ( (unsigned int)PFS_buffer_scalable_container<PFS_file,4096,4096,PFS_buffer_default_array<PFS_file>,PFS_buffer_default_allocator<PFS_file>>::init(
&global_file_container,
a1[16]) )
{
return 1;
}
else if ( (long long)file_handle_max <= 0
|| (file_handle_array = pfs_malloc_array(
(PFS_builtin_memory_class *)&builtin_memory_file_handle,
file_handle_max,
8uLL)) != 0 )
{
if ( (unsigned int)PFS_buffer_scalable_container<PFS_table,1024,1024,PFS_buffer_default_array<PFS_table>,PFS_buffer_default_allocator<PFS_table>>::init(
&global_table_container,
a1[15]) )
{
return 1;
}
else if ( (unsigned int)PFS_buffer_scalable_container<PFS_socket,256,256,PFS_buffer_default_array<PFS_socket>,PFS_buffer_default_allocator<PFS_socket>>::init(
&global_socket_container,
a1[18]) )
{
return 1;
}
else if ( (unsigned int)PFS_buffer_scalable_container<PFS_metadata_lock,1024,1024,PFS_buffer_default_array<PFS_metadata_lock>,PFS_buffer_default_allocator<PFS_metadata_lock>>::init(
&global_mdl_container,
a1[41]) )
{
return 1;
}
else
{
if ( !(unsigned int)PFS_buffer_scalable_container<PFS_thread,256,256,PFS_thread_array,PFS_thread_allocator>::init(
&global_thread_container,
a1[14]) )
{
if ( stage_class_max )
{
global_instr_class_stages_array = (PFS_stage_stat *)pfs_malloc_array(
(PFS_builtin_memory_class *)&builtin_memory_global_stages,
stage_class_max,
0x20uLL);
if ( !global_instr_class_stages_array )
return 1;
for ( i = 0; i < stage_class_max; ++i )
PFS_stage_stat::reset((PFS_stage_stat *)((char *)global_instr_class_stages_array + 32 * i));
}
if ( statement_class_max )
{
global_instr_class_statements_array = (PFS_statement_stat *)pfs_malloc_array(
(PFS_builtin_memory_class *)&builtin_memory_global_statements,
statement_class_max,
0xB8uLL);
if ( !global_instr_class_statements_array )
return 1;
for ( j = 0; j < statement_class_max; ++j )
PFS_statement_stat::reset((PFS_statement_stat *)((char *)global_instr_class_statements_array + 184 * j));
}
if ( memory_class_max )
{
global_instr_class_memory_array = (PFS_memory_stat *)pfs_malloc_array(
(PFS_builtin_memory_class *)&builtin_memory_global_memory,
memory_class_max,
0x48uLL);
if ( !global_instr_class_memory_array )
return 1;
for ( k = 0; k < memory_class_max; ++k )
PFS_memory_stat::reset((PFS_memory_stat *)((char *)global_instr_class_memory_array + 72 * k));
}
return 0;
}
return 1;
}
}
else
{
return 1;
}
}
|
init_instruments:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x88]
MOV qword ptr [0x00509e00],RAX
MOV byte ptr [0x00509e08],0x0
MOV qword ptr [0x00509e10],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x150]
MOV qword ptr [0x00509e38],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x158]
MOV qword ptr [0x00509e40],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xa0]
MOV qword ptr [0x00509e18],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xe0]
MOV qword ptr [0x00509e20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xf8]
MOV qword ptr [0x00509e28],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x138]
MOV dword ptr [0x00509e30],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x120]
MOV qword ptr [0x00509e68],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x130]
MOV qword ptr [0x00509e58],RAX
MOV qword ptr [0x00509e60],0x0
MOV qword ptr [0x00509e70],0x0
MOV qword ptr [0x00509ec0],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x58]
LEA RDI,[0x4cb330]
CALL 0x00132380
CMP EAX,0x0
JZ 0x0012e4b5
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0012e7c5
LAB_0012e4b5:
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x60]
LEA RDI,[0x4cb348]
CALL 0x001323e0
CMP EAX,0x0
JZ 0x0012e4da
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0012e7c5
LAB_0012e4da:
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x68]
LEA RDI,[0x4cd428]
CALL 0x00132550
CMP EAX,0x0
JZ 0x0012e4ff
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0012e7c5
LAB_0012e4ff:
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x80]
LEA RDI,[0x4cdd08]
CALL 0x001326c0
CMP EAX,0x0
JZ 0x0012e527
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0012e7c5
LAB_0012e527:
CMP qword ptr [0x00509e00],0x0
JLE 0x0012e578
MOV RSI,qword ptr [0x00509e00]
LEA RDI,[0x504dc0]
MOV EDX,0x8
MOV ECX,0x20
CALL 0x00129b10
MOV qword ptr [0x00509e70],RAX
CMP qword ptr [0x00509e70],0x0
SETZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x0012e576
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0012e7c5
LAB_0012e576:
JMP 0x0012e578
LAB_0012e578:
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x78]
LEA RDI,[0x4dc968]
CALL 0x00132830
CMP EAX,0x0
JZ 0x0012e59d
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0012e7c5
LAB_0012e59d:
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x90]
LEA RDI,[0x4d5de8]
CALL 0x001329a0
CMP EAX,0x0
JZ 0x0012e5c5
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0012e7c5
LAB_0012e5c5:
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x148]
LEA RDI,[0x4d66c8]
CALL 0x00132b10
CMP EAX,0x0
JZ 0x0012e5ed
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0012e7c5
LAB_0012e5ed:
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x70]
LEA RDI,[0x503868]
CALL 0x00132c80
CMP EAX,0x0
JZ 0x0012e612
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0012e7c5
LAB_0012e612:
LEA RAX,[0x50a090]
CMP qword ptr [RAX],0x0
JBE 0x0012e69e
LEA RAX,[0x50a090]
MOV RSI,qword ptr [RAX]
LEA RDI,[0x505680]
MOV ECX,0x20
MOV RDX,RCX
CALL 0x00129b10
MOV qword ptr [0x00509e78],RAX
CMP qword ptr [0x00509e78],0x0
SETZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x0012e665
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0012e7c5
LAB_0012e665:
MOV dword ptr [RBP + -0x14],0x0
LAB_0012e66c:
MOV EAX,dword ptr [RBP + -0x14]
LEA RCX,[0x50a090]
CMP RAX,qword ptr [RCX]
JNC 0x0012e69c
MOV RDI,qword ptr [0x00509e78]
MOV EAX,dword ptr [RBP + -0x14]
SHL RAX,0x5
ADD RDI,RAX
CALL 0x0012d9d0
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x0012e66c
LAB_0012e69c:
JMP 0x0012e69e
LAB_0012e69e:
LEA RAX,[0x50a0a0]
CMP qword ptr [RAX],0x0
JBE 0x0012e733
LEA RAX,[0x50a0a0]
MOV RSI,qword ptr [RAX]
LEA RDI,[0x5057c0]
MOV EDX,0xb8
MOV ECX,0x20
CALL 0x00129b10
MOV qword ptr [0x00509e80],RAX
CMP qword ptr [0x00509e80],0x0
SETZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x0012e6f7
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0012e7c5
LAB_0012e6f7:
MOV dword ptr [RBP + -0x14],0x0
LAB_0012e6fe:
MOV EAX,dword ptr [RBP + -0x14]
LEA RCX,[0x50a0a0]
CMP RAX,qword ptr [RCX]
JNC 0x0012e731
MOV RDI,qword ptr [0x00509e80]
MOV EAX,dword ptr [RBP + -0x14]
IMUL RAX,RAX,0xb8
ADD RDI,RAX
CALL 0x0012d9f0
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x0012e6fe
LAB_0012e731:
JMP 0x0012e733
LAB_0012e733:
LEA RAX,[0x50a0c0]
CMP qword ptr [RAX],0x0
JBE 0x0012e7be
LEA RAX,[0x50a0c0]
MOV RSI,qword ptr [RAX]
LEA RDI,[0x505900]
MOV EDX,0x48
MOV ECX,0x20
CALL 0x00129b10
MOV qword ptr [0x00509e88],RAX
CMP qword ptr [0x00509e88],0x0
SETZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x0012e785
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0012e7c5
LAB_0012e785:
MOV dword ptr [RBP + -0x14],0x0
LAB_0012e78c:
MOV EAX,dword ptr [RBP + -0x14]
LEA RCX,[0x50a0c0]
CMP RAX,qword ptr [RCX]
JNC 0x0012e7bc
MOV RDI,qword ptr [0x00509e88]
MOV EAX,dword ptr [RBP + -0x14]
IMUL RAX,RAX,0x48
ADD RDI,RAX
CALL 0x0012da60
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x0012e78c
LAB_0012e7bc:
JMP 0x0012e7be
LAB_0012e7be:
MOV dword ptr [RBP + -0x4],0x0
LAB_0012e7c5:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
/* init_instruments(PFS_global_param const*) */
int4 init_instruments(PFS_global_param *param_1)
{
int iVar1;
uint local_1c;
int4 local_c;
file_handle_max = *(ulong *)(param_1 + 0x88);
file_handle_full = 0;
file_handle_lost = 0;
pfs_max_digest_length = *(int8 *)(param_1 + 0x150);
pfs_max_sqltext = *(int8 *)(param_1 + 0x158);
events_waits_history_per_thread = *(int8 *)(param_1 + 0xa0);
events_stages_history_per_thread = *(int8 *)(param_1 + 0xe0);
events_statements_history_per_thread = *(int8 *)(param_1 + 0xf8);
statement_stack_max = (int4)*(int8 *)(param_1 + 0x138);
events_transactions_history_per_thread = *(int8 *)(param_1 + 0x120);
session_connect_attrs_size_per_thread = *(int8 *)(param_1 + 0x130);
session_connect_attrs_lost = 0;
file_handle_array = 0;
thread_internal_id_counter._0_8_ = 0;
iVar1 = PFS_partitioned_buffer_scalable_container<PFS_buffer_scalable_container<PFS_mutex,1024,1024,PFS_buffer_default_array<PFS_mutex>,PFS_buffer_default_allocator<PFS_mutex>>,2>
::init((PFS_partitioned_buffer_scalable_container<PFS_buffer_scalable_container<PFS_mutex,1024,1024,PFS_buffer_default_array<PFS_mutex>,PFS_buffer_default_allocator<PFS_mutex>>,2>
*)global_mutex_container,*(long *)(param_1 + 0x58));
if (iVar1 == 0) {
iVar1 = PFS_buffer_scalable_container<PFS_rwlock,1024,1024,PFS_buffer_default_array<PFS_rwlock>,PFS_buffer_default_allocator<PFS_rwlock>>
::init((PFS_buffer_scalable_container<PFS_rwlock,1024,1024,PFS_buffer_default_array<PFS_rwlock>,PFS_buffer_default_allocator<PFS_rwlock>>
*)global_rwlock_container,*(long *)(param_1 + 0x60));
if (iVar1 == 0) {
iVar1 = PFS_buffer_scalable_container<PFS_cond,256,256,PFS_buffer_default_array<PFS_cond>,PFS_buffer_default_allocator<PFS_cond>>
::init((PFS_buffer_scalable_container<PFS_cond,256,256,PFS_buffer_default_array<PFS_cond>,PFS_buffer_default_allocator<PFS_cond>>
*)global_cond_container,*(long *)(param_1 + 0x68));
if (iVar1 == 0) {
iVar1 = PFS_buffer_scalable_container<PFS_file,4096,4096,PFS_buffer_default_array<PFS_file>,PFS_buffer_default_allocator<PFS_file>>
::init((PFS_buffer_scalable_container<PFS_file,4096,4096,PFS_buffer_default_array<PFS_file>,PFS_buffer_default_allocator<PFS_file>>
*)&global_file_container,*(long *)(param_1 + 0x80));
if (iVar1 == 0) {
if (((long)file_handle_max < 1) ||
(file_handle_array =
pfs_malloc_array((PFS_builtin_memory_class *)builtin_memory_file_handle,
file_handle_max,8,0x20), file_handle_array != 0)) {
iVar1 = PFS_buffer_scalable_container<PFS_table,1024,1024,PFS_buffer_default_array<PFS_table>,PFS_buffer_default_allocator<PFS_table>>
::init((PFS_buffer_scalable_container<PFS_table,1024,1024,PFS_buffer_default_array<PFS_table>,PFS_buffer_default_allocator<PFS_table>>
*)global_table_container,*(long *)(param_1 + 0x78));
if (iVar1 == 0) {
iVar1 = PFS_buffer_scalable_container<PFS_socket,256,256,PFS_buffer_default_array<PFS_socket>,PFS_buffer_default_allocator<PFS_socket>>
::init((PFS_buffer_scalable_container<PFS_socket,256,256,PFS_buffer_default_array<PFS_socket>,PFS_buffer_default_allocator<PFS_socket>>
*)global_socket_container,*(long *)(param_1 + 0x90));
if (iVar1 == 0) {
iVar1 = PFS_buffer_scalable_container<PFS_metadata_lock,1024,1024,PFS_buffer_default_array<PFS_metadata_lock>,PFS_buffer_default_allocator<PFS_metadata_lock>>
::init((PFS_buffer_scalable_container<PFS_metadata_lock,1024,1024,PFS_buffer_default_array<PFS_metadata_lock>,PFS_buffer_default_allocator<PFS_metadata_lock>>
*)global_mdl_container,*(long *)(param_1 + 0x148));
if (iVar1 == 0) {
iVar1 = PFS_buffer_scalable_container<PFS_thread,256,256,PFS_thread_array,PFS_thread_allocator>
::init((PFS_buffer_scalable_container<PFS_thread,256,256,PFS_thread_array,PFS_thread_allocator>
*)global_thread_container,*(long *)(param_1 + 0x70));
if (iVar1 == 0) {
if (stage_class_max != 0) {
global_instr_class_stages_array =
pfs_malloc_array((PFS_builtin_memory_class *)builtin_memory_global_stages
,stage_class_max,0x20,0x20);
if (global_instr_class_stages_array == 0) {
return 1;
}
for (local_1c = 0; local_1c < stage_class_max; local_1c = local_1c + 1) {
PFS_stage_stat::reset
((PFS_stage_stat *)
(global_instr_class_stages_array + (ulong)local_1c * 0x20));
}
}
if (statement_class_max != 0) {
global_instr_class_statements_array =
pfs_malloc_array((PFS_builtin_memory_class *)
builtin_memory_global_statements,statement_class_max,
0xb8,0x20);
if (global_instr_class_statements_array == 0) {
return 1;
}
for (local_1c = 0; local_1c < statement_class_max; local_1c = local_1c + 1) {
PFS_statement_stat::reset
((PFS_statement_stat *)
(global_instr_class_statements_array + (ulong)local_1c * 0xb8));
}
}
if (memory_class_max != 0) {
global_instr_class_memory_array =
pfs_malloc_array((PFS_builtin_memory_class *)builtin_memory_global_memory
,memory_class_max,0x48,0x20);
if (global_instr_class_memory_array == 0) {
return 1;
}
for (local_1c = 0; local_1c < memory_class_max; local_1c = local_1c + 1) {
PFS_memory_stat::reset
((PFS_memory_stat *)
(global_instr_class_memory_array + (ulong)local_1c * 0x48));
}
}
local_c = 0;
}
else {
local_c = 1;
}
}
else {
local_c = 1;
}
}
else {
local_c = 1;
}
}
else {
local_c = 1;
}
}
else {
local_c = 1;
}
}
else {
local_c = 1;
}
}
else {
local_c = 1;
}
}
else {
local_c = 1;
}
}
else {
local_c = 1;
}
return local_c;
}
|
|
10,719 |
aimrt::runtime::core::executor::ExecutorManager::RegisterTImeWheelExecutorGenFunc()::$_0::operator()() const
|
aimrt_mujoco_sim/_deps/aimrt-src/src/runtime/core/executor/executor_manager.cc
|
void ExecutorManager::RegisterTImeWheelExecutorGenFunc() {
RegisterExecutorGenFunc("time_wheel", [this]() -> std::unique_ptr<ExecutorBase> {
auto ptr = std::make_unique<TimeWheelExecutor>();
ptr->SetLogger(logger_ptr_);
ptr->RegisterGetExecutorFunc([this](std::string_view name) {
return GetExecutor(name);
});
return ptr;
});
}
|
O0
|
cpp
|
aimrt::runtime::core::executor::ExecutorManager::RegisterTImeWheelExecutorGenFunc()::$_0::operator()() const:
subq $0x88, %rsp
movq %rdi, 0x18(%rsp)
movq %rdi, %rax
movq %rax, 0x20(%rsp)
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq 0x78(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x30(%rsp)
leaq 0x70(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x21bee0
movq 0x28(%rsp), %rdi
callq 0x21bf60
movq 0x30(%rsp), %rsi
movq %rax, %rdi
addq $0x20, %rsi
callq 0x21bf70
jmp 0x206dba
leaq 0x70(%rsp), %rdi
callq 0x21bf60
movq %rax, %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x8(%rsp)
movq %rax, 0x38(%rsp)
leaq 0x40(%rsp), %rdi
movq %rdi, 0x10(%rsp)
leaq 0x38(%rsp), %rsi
callq 0x206e70
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x2312e0
jmp 0x206dfb
leaq 0x40(%rsp), %rdi
callq 0x1e1e80
movq 0x18(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x21bfa0
leaq 0x70(%rsp), %rdi
callq 0x21c000
movq 0x20(%rsp), %rax
addq $0x88, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
jmp 0x206e53
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x1e1e80
leaq 0x70(%rsp), %rdi
callq 0x21c000
movq 0x68(%rsp), %rdi
callq 0x198ce0
nopw (%rax,%rax)
|
_ZZN5aimrt7runtime4core8executor15ExecutorManager32RegisterTImeWheelExecutorGenFuncEvENK3$_0clEv:
sub rsp, 88h
mov qword ptr [rsp+88h+var_70], rdi; int
mov rax, rdi
mov [rsp+88h+var_68], rax; int
mov qword ptr [rsp+88h+var_8], rdi; int
mov qword ptr [rsp+88h+var_10], rsi; int
mov rax, qword ptr [rsp+88h+var_10]
mov rax, [rax]
mov qword ptr [rsp+88h+var_58], rax; int
lea rdi, [rsp+88h+var_18]; int
mov qword ptr [rsp+88h+var_60], rdi; int
call _ZSt11make_uniqueIN5aimrt7runtime4core8executor17TimeWheelExecutorEJEENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<aimrt::runtime::core::executor::TimeWheelExecutor>()
mov rdi, qword ptr [rsp+88h+var_60]
call _ZNKSt10unique_ptrIN5aimrt7runtime4core8executor17TimeWheelExecutorESt14default_deleteIS4_EEptEv; std::unique_ptr<aimrt::runtime::core::executor::TimeWheelExecutor>::operator->(void)
mov rsi, qword ptr [rsp+88h+var_58]
mov rdi, rax
add rsi, 20h ; ' '
call _ZN5aimrt7runtime4core8executor17TimeWheelExecutor9SetLoggerERKSt10shared_ptrINS_6common4util13LoggerWrapperEE; aimrt::runtime::core::executor::TimeWheelExecutor::SetLogger(std::shared_ptr<aimrt::common::util::LoggerWrapper> const&)
jmp short $+2
loc_206DBA:
lea rdi, [rsp+88h+var_18]
call _ZNKSt10unique_ptrIN5aimrt7runtime4core8executor17TimeWheelExecutorESt14default_deleteIS4_EEptEv; std::unique_ptr<aimrt::runtime::core::executor::TimeWheelExecutor>::operator->(void)
mov rcx, rax
mov rax, qword ptr [rsp+88h+var_58]
mov qword ptr [rsp+88h+var_80], rcx; int
mov qword ptr [rsp+88h+var_50], rax; int
lea rdi, [rsp+88h+var_48]
mov qword ptr [rsp+88h+var_78], rdi; int
lea rsi, [rsp+88h+var_50]
call _ZNSt8functionIFN5aimrt8executor11ExecutorRefESt17basic_string_viewIcSt11char_traitsIcEEEEC2IZZNS0_7runtime4core8executor15ExecutorManager32RegisterTImeWheelExecutorGenFuncEvENK3$_0clEvEUlS6_E_vEEOT_; std::function<aimrt::executor::ExecutorRef ()(std::string_view)>::function<aimrt::runtime::core::executor::ExecutorManager::RegisterTImeWheelExecutorGenFunc(void)::$_0::operator() const(void)::{lambda(std::string_view)#1},void>(aimrt::runtime::core::executor::ExecutorManager::RegisterTImeWheelExecutorGenFunc(void)::$_0::operator() const(void)::{lambda(std::string_view)#1} &&)
mov rdi, qword ptr [rsp+88h+var_80]; int
mov rsi, qword ptr [rsp+88h+var_78]; int
call _ZN5aimrt7runtime4core8executor17TimeWheelExecutor23RegisterGetExecutorFuncERKSt8functionIFNS_8executor11ExecutorRefESt17basic_string_viewIcSt11char_traitsIcEEEE; aimrt::runtime::core::executor::TimeWheelExecutor::RegisterGetExecutorFunc(std::function<aimrt::executor::ExecutorRef ()(std::string_view)> const&)
jmp short $+2
loc_206DFB:
lea rdi, [rsp+88h+var_48]
call _ZNSt8functionIFN5aimrt8executor11ExecutorRefESt17basic_string_viewIcSt11char_traitsIcEEEED2Ev; std::function<aimrt::executor::ExecutorRef ()(std::string_view)>::~function()
mov rdi, qword ptr [rsp+88h+var_70]
lea rsi, [rsp+88h+var_18]
call _ZNSt10unique_ptrIN5aimrt7runtime4core8executor12ExecutorBaseESt14default_deleteIS4_EEC2INS3_17TimeWheelExecutorES5_IS9_EvEEOS_IT_T0_E; std::unique_ptr<aimrt::runtime::core::executor::ExecutorBase>::unique_ptr<aimrt::runtime::core::executor::TimeWheelExecutor,std::default_delete<aimrt::runtime::core::executor::TimeWheelExecutor>,void>(std::unique_ptr&&<aimrt::runtime::core::executor::TimeWheelExecutor,std::default_delete<aimrt::runtime::core::executor::TimeWheelExecutor>>)
lea rdi, [rsp+88h+var_18]
call _ZNSt10unique_ptrIN5aimrt7runtime4core8executor17TimeWheelExecutorESt14default_deleteIS4_EED2Ev; std::unique_ptr<aimrt::runtime::core::executor::TimeWheelExecutor>::~unique_ptr()
mov rax, [rsp+88h+var_68]
add rsp, 88h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_60], rcx
mov [rsp+arg_5C], eax
jmp short loc_206E53
mov rcx, rax
mov eax, edx
mov [rsp+arg_60], rcx
mov [rsp+arg_5C], eax
lea rdi, [rsp+arg_38]
call _ZNSt8functionIFN5aimrt8executor11ExecutorRefESt17basic_string_viewIcSt11char_traitsIcEEEED2Ev; std::function<aimrt::executor::ExecutorRef ()(std::string_view)>::~function()
loc_206E53:
lea rdi, [rsp+arg_68]
call _ZNSt10unique_ptrIN5aimrt7runtime4core8executor17TimeWheelExecutorESt14default_deleteIS4_EED2Ev; std::unique_ptr<aimrt::runtime::core::executor::TimeWheelExecutor>::~unique_ptr()
mov rdi, [rsp+arg_60]
call __Unwind_Resume
| ||||
10,720 |
aimrt::runtime::core::executor::ExecutorManager::RegisterTImeWheelExecutorGenFunc()::$_0::operator()() const
|
aimrt_mujoco_sim/_deps/aimrt-src/src/runtime/core/executor/executor_manager.cc
|
void ExecutorManager::RegisterTImeWheelExecutorGenFunc() {
RegisterExecutorGenFunc("time_wheel", [this]() -> std::unique_ptr<ExecutorBase> {
auto ptr = std::make_unique<TimeWheelExecutor>();
ptr->SetLogger(logger_ptr_);
ptr->RegisterGetExecutorFunc([this](std::string_view name) {
return GetExecutor(name);
});
return ptr;
});
}
|
O3
|
cpp
|
aimrt::runtime::core::executor::ExecutorManager::RegisterTImeWheelExecutorGenFunc()::$_0::operator()() const:
pushq %rbx
subq $0x20, %rsp
movq %rsp, %rcx
movq $0x0, 0x8(%rcx)
movq %rdi, (%rcx)
leaq 0x15e8(%rip), %rax # 0xaa0e4
movq %rax, 0x18(%rcx)
leaq 0x16b9(%rip), %rax # 0xaa1c0
movq %rax, 0x10(%rcx)
leaq 0x148d99(%rip), %rdx # 0x1f18ab
movl $0xa, %esi
callq 0xa8f9a
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0xa8b33
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $0x20, %rsp
popq %rbx
retq
jmp 0xa8b5d
movq %rax, %rbx
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0xa8b55
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x83b70
movq %rax, %rdi
callq 0x8b40b
nop
|
_ZN5aimrt7runtime4core8executor15ExecutorManager32RegisterTImeWheelExecutorGenFuncEv:
push rbx
sub rsp, 20h
mov rcx, rsp
mov qword ptr [rcx+8], 0
mov [rcx], rdi
lea rax, _ZNSt17_Function_handlerIFSt10unique_ptrIN5aimrt7runtime4core8executor12ExecutorBaseESt14default_deleteIS5_EEvEZNS4_15ExecutorManager32RegisterTImeWheelExecutorGenFuncEvE3$_0E9_M_invokeERKSt9_Any_data; std::_Function_handler<std::unique_ptr<aimrt::runtime::core::executor::ExecutorBase> ()(void),aimrt::runtime::core::executor::ExecutorManager::RegisterTImeWheelExecutorGenFunc(void)::$_0>::_M_invoke(std::_Any_data const&)
mov [rcx+18h], rax
lea rax, _ZNSt17_Function_handlerIFSt10unique_ptrIN5aimrt7runtime4core8executor12ExecutorBaseESt14default_deleteIS5_EEvEZNS4_15ExecutorManager32RegisterTImeWheelExecutorGenFuncEvE3$_0E10_M_managerERSt9_Any_dataRKSD_St18_Manager_operation; std::_Function_handler<std::unique_ptr<aimrt::runtime::core::executor::ExecutorBase> ()(void),aimrt::runtime::core::executor::ExecutorManager::RegisterTImeWheelExecutorGenFunc(void)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rcx+10h], rax
lea rdx, aTimeWheel; "time_wheel"
mov esi, 0Ah
call _ZN5aimrt7runtime4core8executor15ExecutorManager23RegisterExecutorGenFuncESt17basic_string_viewIcSt11char_traitsIcEEOSt8functionIFSt10unique_ptrINS2_12ExecutorBaseESt14default_deleteISA_EEvEE; aimrt::runtime::core::executor::ExecutorManager::RegisterExecutorGenFunc(std::string_view,std::function<std::unique_ptr<aimrt::runtime::core::executor::ExecutorBase> ()(void)> &&)
mov rax, [rsp+28h+var_18]
test rax, rax
jz short loc_A8B33
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_A8B33:
add rsp, 20h
pop rbx
retn
jmp short loc_A8B5D
mov rbx, rax
mov rax, [rsp+28h+var_18]
test rax, rax
jz short loc_A8B55
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_A8B55:
mov rdi, rbx
call __Unwind_Resume
loc_A8B5D:
mov rdi, rax
call __clang_call_terminate
|
long long ( * aimrt::runtime::core::executor::ExecutorManager::RegisterTImeWheelExecutorGenFunc(
aimrt::runtime::core::executor::ExecutorManager *this))()
{
long long ( *result)(); // rax
_QWORD v2[2]; // [rsp+0h] [rbp-28h] BYREF
long long ( *v3)(); // [rsp+10h] [rbp-18h]
long long ( *v4)(); // [rsp+18h] [rbp-10h]
v2[1] = 0LL;
v2[0] = this;
v4 = std::_Function_handler<std::unique_ptr<aimrt::runtime::core::executor::ExecutorBase> ()(void),aimrt::runtime::core::executor::ExecutorManager::RegisterTImeWheelExecutorGenFunc(void)::$_0>::_M_invoke;
v3 = std::_Function_handler<std::unique_ptr<aimrt::runtime::core::executor::ExecutorBase> ()(void),aimrt::runtime::core::executor::ExecutorManager::RegisterTImeWheelExecutorGenFunc(void)::$_0>::_M_manager;
aimrt::runtime::core::executor::ExecutorManager::RegisterExecutorGenFunc(this, 10LL, "time_wheel");
result = std::_Function_handler<std::unique_ptr<aimrt::runtime::core::executor::ExecutorBase> ()(void),aimrt::runtime::core::executor::ExecutorManager::RegisterTImeWheelExecutorGenFunc(void)::$_0>::_M_manager;
if ( std::_Function_handler<std::unique_ptr<aimrt::runtime::core::executor::ExecutorBase> ()(void),aimrt::runtime::core::executor::ExecutorManager::RegisterTImeWheelExecutorGenFunc(void)::$_0>::_M_manager )
return (long long ( *)())((long long ( *)(_QWORD *, _QWORD *, long long))v3)(v2, v2, 3LL);
return result;
}
|
RegisterTImeWheelExecutorGenFunc:
PUSH RBX
SUB RSP,0x20
MOV RCX,RSP
MOV qword ptr [RCX + 0x8],0x0
MOV qword ptr [RCX],RDI
LEA RAX,[0x1aa0e4]
MOV qword ptr [RCX + 0x18],RAX
LEA RAX,[0x1aa1c0]
MOV qword ptr [RCX + 0x10],RAX
LAB_001a8b0b:
LEA RDX,[0x2f18ab]
MOV ESI,0xa
CALL 0x001a8f9a
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x001a8b33
LAB_001a8b26:
MOV RDI,RSP
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_001a8b33:
ADD RSP,0x20
POP RBX
RET
|
/* aimrt::runtime::core::executor::ExecutorManager::RegisterTImeWheelExecutorGenFunc() */
void __thiscall
aimrt::runtime::core::executor::ExecutorManager::RegisterTImeWheelExecutorGenFunc
(ExecutorManager *this)
{
ExecutorManager *local_28;
int8 local_20;
code *local_18;
code *local_10;
local_20 = 0;
local_10 = std::
_Function_handler<std::unique_ptr<aimrt::runtime::core::executor::ExecutorBase,std::default_delete<aimrt::runtime::core::executor::ExecutorBase>>(),aimrt::runtime::core::executor::ExecutorManager::RegisterTImeWheelExecutorGenFunc()::$_0>
::_M_invoke;
local_18 = std::
_Function_handler<std::unique_ptr<aimrt::runtime::core::executor::ExecutorBase,std::default_delete<aimrt::runtime::core::executor::ExecutorBase>>(),aimrt::runtime::core::executor::ExecutorManager::RegisterTImeWheelExecutorGenFunc()::$_0>
::_M_manager;
local_28 = this;
/* try { // try from 001a8b0b to 001a8b1b has its CatchHandler @ 001a8b3b */
RegisterExecutorGenFunc(this,10,"time_wheel");
if (local_18 != (code *)0x0) {
/* try { // try from 001a8b26 to 001a8b32 has its CatchHandler @ 001a8b39 */
(*local_18)(&local_28,&local_28,3);
}
return;
}
|
|
10,721 |
mi_end_bulk_insert
|
eloqsql/storage/myisam/mi_write.c
|
int mi_end_bulk_insert(MI_INFO *info, my_bool abort)
{
int first_error= 0;
if (info->bulk_insert)
{
uint i;
for (i=0 ; i < info->s->base.keys ; i++)
{
if (is_tree_inited(& info->bulk_insert[i]))
{
int error;
if ((error= delete_tree(& info->bulk_insert[i], abort)))
{
first_error= first_error ? first_error : error;
abort= 1;
}
}
}
my_free(info->bulk_insert);
info->bulk_insert=0;
}
return first_error;
}
|
O3
|
c
|
mi_end_bulk_insert:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x80(%rdi), %rdi
testq %rdi, %rdi
je 0x89a59
movq (%rbx), %rax
cmpl $0x0, 0x180(%rax)
je 0x89a5e
xorl %r12d, %r12d
xorl %r13d, %r13d
xorl %r14d, %r14d
movq 0x80(%rbx), %rdi
cmpq $0x0, (%rdi,%r12)
je 0x89a3b
addq %r12, %rdi
movsbl %sil, %r15d
movl %r15d, %esi
callq 0xa4742
testl %r14d, %r14d
movl %r14d, %ecx
cmovel %eax, %ecx
testl %eax, %eax
cmovnel %ecx, %r14d
movzbl %r15b, %esi
movl $0x1, %eax
cmovnel %eax, %esi
movq (%rbx), %rax
incq %r13
movl 0x180(%rax), %ecx
addq $0x298, %r12 # imm = 0x298
cmpq %rcx, %r13
jb 0x89a00
movq 0x80(%rbx), %rdi
jmp 0x89a61
xorl %r14d, %r14d
jmp 0x89a71
xorl %r14d, %r14d
callq 0x9ffb6
movq $0x0, 0x80(%rbx)
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
|
mi_end_bulk_insert:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
mov rdi, [rdi+80h]
test rdi, rdi
jz short loc_89A59
mov rax, [rbx]
cmp dword ptr [rax+180h], 0
jz short loc_89A5E
xor r12d, r12d
xor r13d, r13d
xor r14d, r14d
loc_89A00:
mov rdi, [rbx+80h]
cmp qword ptr [rdi+r12], 0
jz short loc_89A3B
add rdi, r12
movsx r15d, sil
mov esi, r15d
call delete_tree
test r14d, r14d
mov ecx, r14d
cmovz ecx, eax
test eax, eax
cmovnz r14d, ecx
movzx esi, r15b
mov eax, 1
cmovnz esi, eax
mov rax, [rbx]
loc_89A3B:
inc r13
mov ecx, [rax+180h]
add r12, 298h
cmp r13, rcx
jb short loc_89A00
mov rdi, [rbx+80h]
jmp short loc_89A61
loc_89A59:
xor r14d, r14d
jmp short loc_89A71
loc_89A5E:
xor r14d, r14d
loc_89A61:
call my_free
mov qword ptr [rbx+80h], 0
loc_89A71:
mov eax, r14d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long mi_end_bulk_insert(_QWORD *a1, char a2)
{
long long v3; // rdi
long long v4; // rax
long long v5; // r12
unsigned long long v6; // r13
unsigned int v7; // r14d
long long v8; // rdi
int v9; // eax
int v10; // ecx
v3 = a1[16];
if ( v3 )
{
v4 = *a1;
if ( *(_DWORD *)(*a1 + 384LL) )
{
v5 = 0LL;
v6 = 0LL;
v7 = 0;
do
{
v8 = a1[16];
if ( *(_QWORD *)(v8 + v5) )
{
v9 = delete_tree(v5 + v8, (unsigned int)a2);
v10 = v7;
if ( !v7 )
v10 = v9;
if ( v9 )
{
v7 = v10;
a2 = 1;
}
v4 = *a1;
}
++v6;
v5 += 664LL;
}
while ( v6 < *(unsigned int *)(v4 + 384) );
v3 = a1[16];
}
else
{
v7 = 0;
}
my_free(v3);
a1[16] = 0LL;
}
else
{
return 0;
}
return v7;
}
|
mi_end_bulk_insert:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x80]
TEST RDI,RDI
JZ 0x00189a59
MOV RAX,qword ptr [RBX]
CMP dword ptr [RAX + 0x180],0x0
JZ 0x00189a5e
XOR R12D,R12D
XOR R13D,R13D
XOR R14D,R14D
LAB_00189a00:
MOV RDI,qword ptr [RBX + 0x80]
CMP qword ptr [RDI + R12*0x1],0x0
JZ 0x00189a3b
ADD RDI,R12
MOVSX R15D,SIL
MOV ESI,R15D
CALL 0x001a4742
TEST R14D,R14D
MOV ECX,R14D
CMOVZ ECX,EAX
TEST EAX,EAX
CMOVNZ R14D,ECX
MOVZX ESI,R15B
MOV EAX,0x1
CMOVNZ ESI,EAX
MOV RAX,qword ptr [RBX]
LAB_00189a3b:
INC R13
MOV ECX,dword ptr [RAX + 0x180]
ADD R12,0x298
CMP R13,RCX
JC 0x00189a00
MOV RDI,qword ptr [RBX + 0x80]
JMP 0x00189a61
LAB_00189a59:
XOR R14D,R14D
JMP 0x00189a71
LAB_00189a5e:
XOR R14D,R14D
LAB_00189a61:
CALL 0x0019ffb6
MOV qword ptr [RBX + 0x80],0x0
LAB_00189a71:
MOV EAX,R14D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int mi_end_bulk_insert(long *param_1,char param_2)
{
int iVar1;
long lVar2;
int iVar3;
long lVar4;
ulong uVar5;
int iVar6;
lVar4 = param_1[0x10];
if (lVar4 == 0) {
iVar6 = 0;
}
else {
lVar2 = *param_1;
if (*(int *)(lVar2 + 0x180) == 0) {
iVar6 = 0;
}
else {
lVar4 = 0;
uVar5 = 0;
iVar6 = 0;
do {
if (*(long *)(param_1[0x10] + lVar4) != 0) {
iVar1 = delete_tree(param_1[0x10] + lVar4,(int)param_2);
iVar3 = iVar6;
if (iVar6 == 0) {
iVar3 = iVar1;
}
if (iVar1 != 0) {
iVar6 = iVar3;
}
if (iVar1 != 0) {
param_2 = '\x01';
}
lVar2 = *param_1;
}
uVar5 = uVar5 + 1;
lVar4 = lVar4 + 0x298;
} while (uVar5 < *(uint *)(lVar2 + 0x180));
lVar4 = param_1[0x10];
}
my_free(lVar4);
param_1[0x10] = 0;
}
return iVar6;
}
|
|
10,722 |
LefDefParser::defiPinProp::propValue(int) const
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiPinProp.cpp
|
const char* defiPinProp::propValue(int index) const {
char msg[160];
if (index < 0 || index >= numProps_) {
sprintf (msg, "ERROR (DEFPARS-6120): The index number %d specified for the PIN PROPERTY is invalide.\nValid index number is from 0 to %d. Specify a valid index number and then try again.",
index, numProps_);
defiError(0, 6120, msg, defData);
return 0;
}
return propValues_[index];
}
|
O3
|
cpp
|
LefDefParser::defiPinProp::propValue(int) const:
pushq %r15
pushq %r14
pushq %rbx
subq $0xa0, %rsp
movl %esi, %edx
movq %rdi, %r14
testl %esi, %esi
setns %al
movl 0x20(%rdi), %ecx
cmpl %esi, %ecx
setg %sil
testb %sil, %al
je 0x27fd6
movq 0x30(%r14), %rax
movl %edx, %ecx
movq (%rax,%rcx,8), %rbx
jmp 0x27fff
leaq 0x1d2f4(%rip), %rsi # 0x452d1
xorl %ebx, %ebx
movq %rsp, %r15
movq %r15, %rdi
xorl %eax, %eax
callq 0x7060
movq 0x48(%r14), %rcx
xorl %edi, %edi
movl $0x17e8, %esi # imm = 0x17E8
movq %r15, %rdx
callq 0x1bb18
movq %rbx, %rax
addq $0xa0, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
|
_ZNK12LefDefParser11defiPinProp9propValueEi:
push r15
push r14
push rbx
sub rsp, 0A0h
mov edx, esi
mov r14, rdi
test esi, esi
setns al
mov ecx, [rdi+20h]
cmp ecx, esi
setnle sil
test al, sil
jz short loc_27FD6
mov rax, [r14+30h]
mov ecx, edx
mov rbx, [rax+rcx*8]
jmp short loc_27FFF
loc_27FD6:
lea rsi, aErrorDefpars61_3; "ERROR (DEFPARS-6120): The index number "...
xor ebx, ebx
mov r15, rsp
mov rdi, r15
xor eax, eax
call _sprintf
mov rcx, [r14+48h]; LefDefParser::defrData *
xor edi, edi; this
mov esi, 17E8h; int
mov rdx, r15; char *
call _ZN12LefDefParser9defiErrorEiiPKcPNS_8defrDataE; LefDefParser::defiError(int,int,char const*,LefDefParser::defrData *)
loc_27FFF:
mov rax, rbx
add rsp, 0A0h
pop rbx
pop r14
pop r15
retn
|
long long LefDefParser::defiPinProp::propValue(LefDefParser::defiPinProp *this, signed int a2)
{
int v2; // ecx
long long v3; // rbx
LefDefParser::defrData *v4; // r8
char v6[184]; // [rsp+0h] [rbp-B8h] BYREF
v2 = *((_DWORD *)this + 8);
if ( v2 > a2 && a2 >= 0 )
return *(_QWORD *)(*((_QWORD *)this + 6) + 8LL * (unsigned int)a2);
v3 = 0LL;
sprintf(
v6,
"ERROR (DEFPARS-6120): The index number %d specified for the PIN PROPERTY is invalide.\n"
"Valid index number is from 0 to %d. Specify a valid index number and then try again.",
a2,
v2);
LefDefParser::defiError(0LL, 6120, v6, *((LefDefParser::defrData **)this + 9), v4);
return v3;
}
|
propValue:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0xa0
MOV EDX,ESI
MOV R14,RDI
TEST ESI,ESI
SETNS AL
MOV ECX,dword ptr [RDI + 0x20]
CMP ECX,ESI
SETG SIL
TEST AL,SIL
JZ 0x00127fd6
MOV RAX,qword ptr [R14 + 0x30]
MOV ECX,EDX
MOV RBX,qword ptr [RAX + RCX*0x8]
JMP 0x00127fff
LAB_00127fd6:
LEA RSI,[0x1452d1]
XOR EBX,EBX
MOV R15,RSP
MOV RDI,R15
XOR EAX,EAX
CALL 0x00107060
MOV RCX,qword ptr [R14 + 0x48]
XOR EDI,EDI
MOV ESI,0x17e8
MOV RDX,R15
CALL 0x0011bb18
LAB_00127fff:
MOV RAX,RBX
ADD RSP,0xa0
POP RBX
POP R14
POP R15
RET
|
/* LefDefParser::defiPinProp::propValue(int) const */
int8 __thiscall LefDefParser::defiPinProp::propValue(defiPinProp *this,int param_1)
{
int8 uVar1;
char acStack_b8 [160];
if (param_1 < 0 || *(int *)(this + 0x20) <= param_1) {
uVar1 = 0;
sprintf(acStack_b8,
"ERROR (DEFPARS-6120): The index number %d specified for the PIN PROPERTY is invalide.\nValid index number is from 0 to %d. Specify a valid index number and then try again."
);
defiError(0,0x17e8,acStack_b8,*(defrData **)(this + 0x48));
}
else {
uVar1 = *(int8 *)(*(long *)(this + 0x30) + (ulong)(uint)param_1 * 8);
}
return uVar1;
}
|
|
10,723 |
initTimeTrace()
|
mnn-tts/MNN/tools/cpp/ExprDebug.hpp
|
static void _initTimeTrace() {
static TimeTraceInfo gTime;
gTimeTraceInfo = &gTime;
MNN::TensorCallBackWithInfo beforeCallBack = [&](const std::vector<MNN::Tensor*>& ntensors, const MNN::OperatorInfo* info) {
gTimeTraceInfo->begin(info);
return true;
};
MNN::TensorCallBackWithInfo callBack = [&](const std::vector<MNN::Tensor*>& ntensors, const MNN::OperatorInfo* info) {
for (auto t : ntensors) {
t->wait(MNN::Tensor::MAP_TENSOR_READ, true);
}
gTimeTraceInfo->end(info);
return true;
};
MNN::Express::ExecutorScope::Current()->setCallBack(std::move(beforeCallBack), std::move(callBack));
}
|
O0
|
cpp
|
initTimeTrace():
subq $0x98, %rsp
cmpb $0x0, 0x2ad72(%rip) # 0x344b0
jne 0x9783
leaq 0x2ad69(%rip), %rdi # 0x344b0
callq 0x43d0
cmpl $0x0, %eax
je 0x9783
leaq 0x2ad30(%rip), %rdi # 0x34488
callq 0xf060
leaq 0x593c(%rip), %rdi # 0xf0a0
leaq 0x2ad1d(%rip), %rsi # 0x34488
leaq 0x2abae(%rip), %rdx # 0x34320
callq 0x41c0
leaq 0x2ad32(%rip), %rdi # 0x344b0
callq 0x4160
leaq 0x2acfe(%rip), %rax # 0x34488
movq %rax, 0x2acef(%rip) # 0x34480
leaq 0x60(%rsp), %rdi
callq 0xf0d0
leaq 0x20(%rsp), %rdi
callq 0xf0f0
leaq 0x8(%rsp), %rdi
callq 0x4130
leaq 0x8(%rsp), %rdi
callq 0x9ed0
movq %rax, %rdi
leaq 0x60(%rsp), %rsi
leaq 0x20(%rsp), %rdx
callq 0x4590
leaq 0x8(%rsp), %rdi
callq 0x9de0
leaq 0x20(%rsp), %rdi
callq 0x9ee0
leaq 0x60(%rsp), %rdi
callq 0x9ee0
addq $0x98, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
|
_ZL14_initTimeTracev:
sub rsp, 98h
cmp cs:_ZGVZL14_initTimeTracevE5gTime, 0; `guard variable for'_initTimeTrace(void)::gTime
jnz short loc_9783
lea rdi, _ZGVZL14_initTimeTracevE5gTime; __guard *
call ___cxa_guard_acquire
cmp eax, 0
jz short loc_9783
lea rdi, _ZZL14_initTimeTracevE5gTime; this
call _ZN13TimeTraceInfoC2Ev; TimeTraceInfo::TimeTraceInfo(void)
lea rdi, _ZN13TimeTraceInfoD2Ev; lpfunc
lea rsi, _ZZL14_initTimeTracevE5gTime; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZL14_initTimeTracevE5gTime; __guard *
call ___cxa_guard_release
loc_9783:
lea rax, _ZZL14_initTimeTracevE5gTime; _initTimeTrace(void)::gTime
mov cs:_ZL14gTimeTraceInfo, rax; gTimeTraceInfo
lea rdi, [rsp+98h+var_38]
call _ZNSt3__18functionIFbRKNS_6vectorIPN3MNN6TensorENS_9allocatorIS4_EEEEPKNS2_12OperatorInfoEEEC2IZL14_initTimeTracevE3$_0vEET_; std::function<bool ()(std::vector<MNN::Tensor *> const&,MNN::OperatorInfo const*)>::function<_initTimeTrace(void)::$_0,void>(_initTimeTrace(void)::$_0)
lea rdi, [rsp+98h+var_78]
call _ZNSt3__18functionIFbRKNS_6vectorIPN3MNN6TensorENS_9allocatorIS4_EEEEPKNS2_12OperatorInfoEEEC2IZL14_initTimeTracevE3$_1vEET_; std::function<bool ()(std::vector<MNN::Tensor *> const&,MNN::OperatorInfo const*)>::function<_initTimeTrace(void)::$_1,void>(_initTimeTrace(void)::$_1)
lea rdi, [rsp+98h+var_90]; this
call __ZN3MNN7Express13ExecutorScope7CurrentEv; MNN::Express::ExecutorScope::Current(void)
lea rdi, [rsp+98h+var_90]
call _ZNKSt3__110shared_ptrIN3MNN7Express8ExecutorEEptB8nn200100Ev; std::shared_ptr<MNN::Express::Executor>::operator->(void)
mov rdi, rax
lea rsi, [rsp+98h+var_38]
lea rdx, [rsp+98h+var_78]
call __ZN3MNN7Express8Executor11setCallBackEONSt3__18functionIFbRKNS2_6vectorIPNS_6TensorENS2_9allocatorIS6_EEEEPKNS_12OperatorInfoEEEESH_; MNN::Express::Executor::setCallBack(std::function<bool ()(std::vector<MNN::Tensor *> const&,MNN::OperatorInfo const*)> &&,std::function<bool ()(std::vector<MNN::Tensor *> const&,MNN::OperatorInfo const*)> &)
lea rdi, [rsp+98h+var_90]
call _ZNSt3__110shared_ptrIN3MNN7Express8ExecutorEED2B8nn200100Ev; std::shared_ptr<MNN::Express::Executor>::~shared_ptr()
lea rdi, [rsp+98h+var_78]
call _ZNSt3__18functionIFbRKNS_6vectorIPN3MNN6TensorENS_9allocatorIS4_EEEEPKNS2_12OperatorInfoEEED2Ev; std::function<bool ()(std::vector<MNN::Tensor *> const&,MNN::OperatorInfo const*)>::~function()
lea rdi, [rsp+98h+var_38]
call _ZNSt3__18functionIFbRKNS_6vectorIPN3MNN6TensorENS_9allocatorIS4_EEEEPKNS2_12OperatorInfoEEED2Ev; std::function<bool ()(std::vector<MNN::Tensor *> const&,MNN::OperatorInfo const*)>::~function()
add rsp, 98h
retn
|
long long _initTimeTrace(void)
{
long long v0; // rax
_BYTE v2[24]; // [rsp+8h] [rbp-90h] BYREF
_BYTE v3[64]; // [rsp+20h] [rbp-78h] BYREF
_BYTE v4[56]; // [rsp+60h] [rbp-38h] BYREF
if ( !(_BYTE)`guard variable for'_initTimeTrace(void)::gTime
&& __cxa_guard_acquire(&`guard variable for'_initTimeTrace(void)::gTime) )
{
TimeTraceInfo::TimeTraceInfo((TimeTraceInfo *)&_initTimeTrace(void)::gTime);
__cxa_atexit(TimeTraceInfo::~TimeTraceInfo, &_initTimeTrace(void)::gTime, &_dso_handle);
__cxa_guard_release(&`guard variable for'_initTimeTrace(void)::gTime);
}
gTimeTraceInfo = (TimeTraceInfo *)&_initTimeTrace(void)::gTime;
std::function<bool ()(std::vector<MNN::Tensor *> const&,MNN::OperatorInfo const*)>::function<_initTimeTrace(void)::$_0,void>(v4);
std::function<bool ()(std::vector<MNN::Tensor *> const&,MNN::OperatorInfo const*)>::function<_initTimeTrace(void)::$_1,void>(v3);
MNN::Express::ExecutorScope::Current((MNN::Express::ExecutorScope *)v2);
v0 = std::shared_ptr<MNN::Express::Executor>::operator->[abi:nn200100](v2);
MNN::Express::Executor::setCallBack(v0, v4, v3);
std::shared_ptr<MNN::Express::Executor>::~shared_ptr[abi:nn200100](v2);
std::function<bool ()(std::vector<MNN::Tensor *> const&,MNN::OperatorInfo const*)>::~function(v3);
return std::function<bool ()(std::vector<MNN::Tensor *> const&,MNN::OperatorInfo const*)>::~function(v4);
}
|
_initTimeTrace:
SUB RSP,0x98
CMP byte ptr [0x001344b0],0x0
JNZ 0x00109783
LEA RDI,[0x1344b0]
CALL 0x001043d0
CMP EAX,0x0
JZ 0x00109783
LEA RDI,[0x134488]
CALL 0x0010f060
LEA RDI,[0x10f0a0]
LEA RSI,[0x134488]
LEA RDX,[0x134320]
CALL 0x001041c0
LEA RDI,[0x1344b0]
CALL 0x00104160
LAB_00109783:
LEA RAX,[0x134488]
MOV qword ptr [0x00134480],RAX
LEA RDI,[RSP + 0x60]
CALL 0x0010f0d0
LEA RDI,[RSP + 0x20]
CALL 0x0010f0f0
LEA RDI,[RSP + 0x8]
CALL 0x00104130
LEA RDI,[RSP + 0x8]
CALL 0x00109ed0
MOV RDI,RAX
LEA RSI,[RSP + 0x60]
LEA RDX,[RSP + 0x20]
CALL 0x00104590
LEA RDI,[RSP + 0x8]
CALL 0x00109de0
LEA RDI,[RSP + 0x20]
CALL 0x00109ee0
LEA RDI,[RSP + 0x60]
CALL 0x00109ee0
ADD RSP,0x98
RET
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* _initTimeTrace() */
void _initTimeTrace(void)
{
int iVar1;
function *pfVar2;
Executor> local_90 [24];
function<bool(std::vector<MNN::Tensor*,std::allocator<MNN::Tensor*>>const&,MNN::OperatorInfo_const*)>
local_78 [64];
function local_38 [56];
if (_initTimeTrace()::gTime == '\0') {
iVar1 = __cxa_guard_acquire(&_initTimeTrace()::gTime);
if (iVar1 != 0) {
TimeTraceInfo::TimeTraceInfo((TimeTraceInfo *)_initTimeTrace()::gTime);
__cxa_atexit(TimeTraceInfo::~TimeTraceInfo,_initTimeTrace()::gTime,&__dso_handle);
__cxa_guard_release(&_initTimeTrace()::gTime);
}
}
gTimeTraceInfo = _initTimeTrace()::gTime;
std::
function<bool(std::vector<MNN::Tensor*,std::allocator<MNN::Tensor*>>const&,MNN::OperatorInfo_const*)>
::function<_initTimeTrace()::__0,void>(local_38);
std::
function<bool(std::vector<MNN::Tensor*,std::allocator<MNN::Tensor*>>const&,MNN::OperatorInfo_const*)>
::function<_initTimeTrace()::__1,void>(local_78);
MNN::Express::ExecutorScope::Current();
pfVar2 = (function *)std::shared_ptr<MNN::Express::Executor>::operator->[abi_nn200100_(local_90);
MNN::Express::Executor::setCallBack(pfVar2,local_38);
std::shared_ptr<MNN::Express::Executor>::~shared_ptr_abi_nn200100_
((shared_ptr<MNN::Express::Executor> *)local_90);
std::
function<bool(std::vector<MNN::Tensor*,std::allocator<MNN::Tensor*>>const&,MNN::OperatorInfo_const*)>
::~function(local_78);
std::
function<bool(std::vector<MNN::Tensor*,std::allocator<MNN::Tensor*>>const&,MNN::OperatorInfo_const*)>
::~function((function<bool(std::vector<MNN::Tensor*,std::allocator<MNN::Tensor*>>const&,MNN::OperatorInfo_const*)>
*)local_38);
return;
}
|
|
10,724 |
minja::Value::set(minja::Value const&, minja::Value const&)
|
monkey531[P]llama/common/minja.hpp
|
void set(const Value& key, const Value& value) {
if (!object_) throw std::runtime_error("Value is not an object: " + dump());
if (!key.is_hashable()) throw std::runtime_error("Unashable type: " + dump());
(*object_)[key.primitive_] = value;
}
|
O2
|
cpp
|
minja::Value::set(minja::Value const&, minja::Value const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
cmpq $0x0, 0x20(%rdi)
je 0x69ce9
movq %rdx, %rbx
movq %rsi, %r15
movq %rsi, %rdi
callq 0x63250
testb %al, %al
je 0x69d46
movq 0x20(%r14), %rdi
addq $0x40, %r15
movq %r15, %rsi
callq 0x69e0e
movq %rax, %rdi
movq %rbx, %rsi
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x69e66
pushq $0x10
popq %rdi
callq 0x23480
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x63260
leaq 0x4a768(%rip), %rsi # 0xb4475
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x2730b
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x23e70
xorl %ebp, %ebp
movq 0x942bb(%rip), %rsi # 0xfdff0
movq 0x9421c(%rip), %rdx # 0xfdf58
movq %rbx, %rdi
callq 0x23f40
jmp 0x69da1
pushq $0x10
popq %rdi
callq 0x23480
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x63260
leaq 0x4a724(%rip), %rsi # 0xb448e
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x2730b
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x23e70
xorl %ebp, %ebp
movq 0x9425e(%rip), %rsi # 0xfdff0
movq 0x941bf(%rip), %rdx # 0xfdf58
movq %rbx, %rdi
callq 0x23f40
jmp 0x69da5
jmp 0x69db4
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x24218
jmp 0x69dba
movq %rax, %r14
movb $0x1, %bpl
leaq 0x8(%rsp), %rdi
callq 0x24218
testb %bpl, %bpl
jne 0x69dd0
jmp 0x69dd8
jmp 0x69dcd
movq %rax, %r14
movq %rbx, %rdi
callq 0x236b0
movq %r14, %rdi
callq 0x23fd0
|
_ZN5minja5Value3setERKS0_S2_:
push rbp
push r15
push r14
push rbx
sub rsp, 48h
mov r14, rdi
cmp qword ptr [rdi+20h], 0
jz short loc_69CE9
mov rbx, rdx
mov r15, rsi
mov rdi, rsi; this
call _ZNK5minja5Value12is_primitiveEv; minja::Value::is_primitive(void)
test al, al
jz loc_69D46
mov rdi, [r14+20h]
add r15, 40h ; '@'
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixERSJ_; 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>>>::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> const&)
mov rdi, rax
mov rsi, rbx
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
jmp _ZN5minja5ValueaSERKS0_; minja::Value::operator=(minja::Value const&)
loc_69CE9:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+68h+var_60]
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aValueIsNotAnOb; "Value is not an object: "
lea rdi, [rsp+68h+var_40]
lea rdx, [rsp+68h+var_60]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+68h+var_40]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp short loc_69DA1
loc_69D46:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+68h+var_60]
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aUnashableType; "Unashable type: "
lea rdi, [rsp+68h+var_40]
lea rdx, [rsp+68h+var_60]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+68h+var_40]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_69DA1:
jmp short loc_69DA5
jmp short loc_69DB4
loc_69DA5:
mov r14, rax
lea rdi, [rsp+68h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_69DBA
loc_69DB4:
mov r14, rax
mov bpl, 1
loc_69DBA:
lea rdi, [rsp+68h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_69DD0
jmp short loc_69DD8
jmp short $+2
loc_69DCD:
mov r14, rax
loc_69DD0:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_69DD8:
mov rdi, r14
call __Unwind_Resume
|
long long minja::Value::set(minja::Value *this, const minja::Value *a2, const minja::Value *a3)
{
long long v4; // rax
void *exception; // rbx
void *v7; // rbx
_BYTE v8[32]; // [rsp+8h] [rbp-60h] BYREF
_BYTE v9[64]; // [rsp+28h] [rbp-40h] BYREF
if ( !*((_QWORD *)this + 4) )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v8, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v9, (long long)"Value is not an object: ", (long long)v8);
std::runtime_error::runtime_error(exception, v9);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( !minja::Value::is_primitive(a2) )
{
v7 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v8, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v9, (long long)"Unashable type: ", (long long)v8);
std::runtime_error::runtime_error(v7, v9);
__cxa_throw(
v7,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v4 = 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>>>::operator[](
*((_QWORD *)this + 4),
(char *)a2 + 64);
return minja::Value::operator=(v4, a3);
}
|
set:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV R14,RDI
CMP qword ptr [RDI + 0x20],0x0
JZ 0x00169ce9
MOV RBX,RDX
MOV R15,RSI
MOV RDI,RSI
CALL 0x00163250
TEST AL,AL
JZ 0x00169d46
MOV RDI,qword ptr [R14 + 0x20]
ADD R15,0x40
MOV RSI,R15
CALL 0x00169e0e
MOV RDI,RAX
MOV RSI,RBX
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
JMP 0x00169e66
LAB_00169ce9:
PUSH 0x10
POP RDI
CALL 0x00123480
MOV RBX,RAX
LAB_00169cf4:
LEA RDI,[RSP + 0x8]
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x00163260
LAB_00169d06:
LEA RSI,[0x1b4475]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
CALL 0x0012730b
MOV BPL,0x1
LAB_00169d1f:
LEA RSI,[RSP + 0x28]
MOV RDI,RBX
CALL 0x00123e70
XOR EBP,EBP
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,RBX
CALL 0x00123f40
LAB_00169d46:
PUSH 0x10
POP RDI
CALL 0x00123480
MOV RBX,RAX
LAB_00169d51:
LEA RDI,[RSP + 0x8]
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x00163260
LAB_00169d63:
LEA RSI,[0x1b448e]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
CALL 0x0012730b
MOV BPL,0x1
LAB_00169d7c:
LEA RSI,[RSP + 0x28]
MOV RDI,RBX
CALL 0x00123e70
XOR EBP,EBP
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,RBX
CALL 0x00123f40
|
/* minja::Value::set(minja::Value const&, minja::Value const&) */
void __thiscall minja::Value::set(Value *this,Value *param_1,Value *param_2)
{
Value *this_00;
runtime_error *prVar1;
char cVar2;
int1 local_60 [32];
string local_40 [32];
if (*(long *)(this + 0x20) == 0) {
prVar1 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00169cf4 to 00169d05 has its CatchHandler @ 00169dcd */
dump_abi_cxx11_((int)local_60,SUB81(this,0));
/* try { // try from 00169d06 to 00169d1b has its CatchHandler @ 00169db4 */
std::operator+((char *)local_40,(string *)"Value is not an object: ");
/* try { // try from 00169d1f to 00169d43 has its CatchHandler @ 00169da5 */
std::runtime_error::runtime_error(prVar1,local_40);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar1,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
cVar2 = is_primitive(param_1);
if (cVar2 != '\0') {
this_00 = (Value *)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>>>
::operator[](*(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>>>
**)(this + 0x20),param_1 + 0x40);
operator=(this_00,param_2);
return;
}
prVar1 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00169d51 to 00169d62 has its CatchHandler @ 00169dcb */
dump_abi_cxx11_((int)local_60,SUB81(this,0));
/* try { // try from 00169d63 to 00169d78 has its CatchHandler @ 00169da3 */
std::operator+((char *)local_40,(string *)"Unashable type: ");
/* try { // try from 00169d7c to 00169da0 has its CatchHandler @ 00169da1 */
std::runtime_error::runtime_error(prVar1,local_40);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar1,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
|
|
10,725 |
nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*)
|
monkey531[P]llama/common/./json.hpp
|
static out_of_range create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("out_of_range", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x57d57(%rip), %rsi # 0x9c2c8
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x262e2
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x3b93c
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x3b9b2
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %r14, %rcx
callq 0x3b8d2
leaq 0x8(%rsp), %rdi
callq 0x20d78
leaq 0x48(%rsp), %rdi
callq 0x20d78
leaq 0x28(%rsp), %rdi
callq 0x20d78
movq 0x68(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4485e
leaq 0x68(%rsp), %rdi
callq 0x20d78
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
jmp 0x4462d
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20d78
jmp 0x44619
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x20d78
jmp 0x44628
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x20d78
jmp 0x44637
movq %rax, %rbx
movq %rbx, %rdi
callq 0x20b90
|
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_:
push rbp
push r15
push r14
push rbx
sub rsp, 88h
mov r15, rcx
mov r14, rdx
mov ebp, esi
mov rbx, rdi
lea rsi, aOutOfRange; "out_of_range"
lea rdi, [rsp+0A8h+var_80]
lea rdx, [rsp+0A8h+var_A1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0A8h+var_60]
lea rsi, [rsp+0A8h+var_80]
mov edx, ebp
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea rdi, [rsp+0A8h+var_A0]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail9exception11diagnosticsINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEESC_PKT_; nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const*)
lea rdi, [rsp+0A8h+var_40]
lea rsi, [rsp+0A8h+var_60]
lea rdx, [rsp+0A8h+var_A0]
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(std::string,std::string,std::string const&)
lea rdi, [rsp+0A8h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdx, [rsp+0A8h+var_40]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_rangeC2EiPKc; nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(int,char const*)
lea rdi, [rsp+0A8h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, rbx
add rsp, 88h
pop rbx
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_60]
jmp short loc_4462D
mov rbx, rax
lea rdi, [rsp+arg_0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_44619
mov rbx, rax
loc_44619:
lea rdi, [rsp+arg_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_44628
mov rbx, rax
loc_44628:
lea rdi, [rsp+arg_20]; void *
loc_4462D:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_44637
mov rbx, rax
loc_44637:
mov rdi, rbx
call __Unwind_Resume
|
nlohmann::json_abi_v3_11_3::detail::out_of_range * ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
nlohmann::json_abi_v3_11_3::detail::out_of_range *this,
int a2,
long long a3)
{
_QWORD v5[4]; // [rsp+8h] [rbp-A0h] BYREF
_QWORD v6[4]; // [rsp+28h] [rbp-80h] BYREF
_BYTE v7[32]; // [rsp+48h] [rbp-60h] BYREF
char *v8[8]; // [rsp+68h] [rbp-40h] BYREF
std::string::basic_string<std::allocator<char>>(v6, (long long)"out_of_range");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v7, (long long)v6, a2);
nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<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>>(v5);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(
(long long)v8,
(long long)v7,
(long long)v5,
a3);
std::string::~string(v5);
std::string::~string(v7);
std::string::~string(v6);
nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(this, a2, v8[0]);
std::string::~string(v8);
return this;
}
|
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x88
MOV R15,RCX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LAB_0014456a:
LEA RSI,[0x19c2c8]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x7]
CALL 0x001262e2
LAB_00144580:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
MOV EDX,EBP
CALL 0x0013b93c
LAB_00144591:
LEA RDI,[RSP + 0x8]
MOV RSI,R15
CALL 0x0013b9b2
LAB_0014459e:
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0x48]
LEA RDX,[RSP + 0x8]
MOV RCX,R14
CALL 0x0013b8d2
LEA RDI,[RSP + 0x8]
CALL 0x00120d78
LEA RDI,[RSP + 0x48]
CALL 0x00120d78
LEA RDI,[RSP + 0x28]
CALL 0x00120d78
MOV RDX,qword ptr [RSP + 0x68]
LAB_001445d8:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0014485e
LAB_001445e2:
LEA RDI,[RSP + 0x68]
CALL 0x00120d78
MOV RAX,RBX
ADD RSP,0x88
POP RBX
POP R14
POP R15
POP RBP
RET
|
out_of_range *
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(out_of_range *param_1,int param_2,string *param_3)
{
allocator local_a1;
basic_json local_a0 [32];
string local_80 [32];
exception local_60 [32];
char *local_40 [4];
/* try { // try from 0014456a to 0014457f has its CatchHandler @ 00144634 */
std::__cxx11::string::string<std::allocator<char>>(local_80,"out_of_range",&local_a1);
/* try { // try from 00144580 to 00144590 has its CatchHandler @ 00144625 */
nlohmann::json_abi_v3_11_3::detail::exception::name(local_60,local_80,param_2);
/* try { // try from 00144591 to 0014459d has its CatchHandler @ 00144616 */
nlohmann::json_abi_v3_11_3::detail::exception::
diagnostics<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(local_a0);
/* try { // try from 0014459e to 001445b4 has its CatchHandler @ 00144607 */
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,std::__cxx11::string,std::__cxx11::string,std::__cxx11::string_const&>
((detail *)local_40,(string *)local_60,(string *)local_a0,param_3);
std::__cxx11::string::~string((string *)local_a0);
std::__cxx11::string::~string((string *)local_60);
std::__cxx11::string::~string(local_80);
/* try { // try from 001445d8 to 001445e1 has its CatchHandler @ 001445fd */
nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(param_1,param_2,local_40[0]);
std::__cxx11::string::~string((string *)local_40);
return param_1;
}
|
|
10,726 |
nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*)
|
monkey531[P]llama/common/./json.hpp
|
static out_of_range create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("out_of_range", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x706b1(%rip), %rsi # 0xb9140
leaq 0x706b6(%rip), %rdx # 0xb914c
leaq 0x28(%rsp), %rdi
callq 0x590a2
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x3e0b6
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
movq 0x8(%r15), %rsi
addq 0x50(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x18a30
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x181e0
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x181e0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x8(%rsp), %rdi
callq 0x181e0
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x48b39
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x186a0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x48b54
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x186a0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x48b6b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x186a0
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x3e31e
leaq 0xa5847(%rip), %rax # 0xee3c8
movq %rax, (%rbx)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x48b9b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x186a0
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x48c29
movq 0x18(%rsp), %rsi
jmp 0x48c21
movq %rax, %rbx
jmp 0x48c12
movq %rax, %rbx
jmp 0x48c29
movq %rdx, %rbx
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x48beb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x186a0
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rdx
leaq 0x88(%rsp), %r12
movq %r14, %rsi
movq %r15, %rcx
movl %ebx, %r8d
movq %r12, %r9
callq 0x1906d
movq (%r12), %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x48c29
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x186a0
movq %rbx, %rdi
callq 0x18b90
|
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r15, rdx
mov ebp, esi
mov rbx, rdi
lea r13, [rsp+0C8h+var_90]
mov [r13-10h], r13
lea rsi, aOutOfRange; "out_of_range"
lea rdx, aOutOfRange+0Ch; ""
lea rdi, [rsp+0C8h+var_A0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+0C8h+var_80]; int
lea rsi, [rsp+0C8h+var_A0]; int
mov edx, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea r14, [rsp+0C8h+var_50]
mov [r14-10h], r14
xor eax, eax
mov [r14-8], rax
mov [r14], al
lea r12, [rsp+0C8h+var_B0]
mov [r12-10h], r12
mov [r12-8], rax
mov [r12], al
mov rsi, [r15+8]
add rsi, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rsi, qword ptr [rsp+0C8h+var_80]
mov rdx, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [rsp+0C8h+var_60]
mov rdx, [rsp+0C8h+var_58]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [r15]
mov rdx, [r15+8]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+0C8h+var_60]; void *
cmp rdi, r14
jz short loc_48B39
mov rsi, [rsp+0C8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_48B39:
lea rax, [rsp+0C8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_48B54
mov rsi, [rsp+0C8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_48B54:
mov rdi, [rsp+0C8h+var_A0]; void *
cmp rdi, r13
jz short loc_48B6B
mov rsi, [rsp+0C8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_48B6B:
mov rdx, [rsp+0C8h+var_C0]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*)
lea rax, off_EE3C8
mov [rbx], rax
mov rdi, [rsp+0C8h+var_C0]; void *
cmp rdi, r12
jz short loc_48B9B
mov rsi, [rsp+0C8h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_48B9B:
mov rax, rbx
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_0]
cmp rdi, r12
jz short loc_48C29
mov rsi, [rsp+arg_10]
jmp short loc_48C21
mov rbx, rax
jmp short loc_48C12
mov rbx, rax
jmp short loc_48C29
mov rbx, rdx
mov r15, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_48BEB
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_48BEB:
lea rdi, [rsp+arg_60]
lea rdx, [rsp+arg_40]
lea r12, [rsp+arg_80]
mov rsi, r14
mov rcx, r15
mov r8d, ebx
mov r9, r12
call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5__cold_1
mov rbx, [r12]
loc_48C12:
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_48C29
mov rsi, [rsp+arg_30]
loc_48C21:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_48C29:
mov rdi, rbx
call __Unwind_Resume
|
nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
nlohmann::json_abi_v3_11_3::detail::exception *this,
int a2,
_QWORD *a3)
{
char *v5[2]; // [rsp+8h] [rbp-C0h] BYREF
_QWORD v6[2]; // [rsp+18h] [rbp-B0h] BYREF
void *v7[2]; // [rsp+28h] [rbp-A0h] BYREF
_QWORD v8[2]; // [rsp+38h] [rbp-90h] BYREF
int v9[2]; // [rsp+48h] [rbp-80h] BYREF
long long v10; // [rsp+50h] [rbp-78h]
long long v11; // [rsp+58h] [rbp-70h] BYREF
void *v12; // [rsp+68h] [rbp-60h]
long long v13; // [rsp+70h] [rbp-58h]
_QWORD v14[10]; // [rsp+78h] [rbp-50h] BYREF
v7[0] = v8;
std::string::_M_construct<char const*>(v7, "out_of_range", "");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v9, (long long)v7, a2);
v12 = v14;
v13 = 0LL;
LOBYTE(v14[0]) = 0;
v5[0] = (char *)v6;
v5[1] = 0LL;
LOBYTE(v6[0]) = 0;
std::string::reserve(v5, v10 + a3[1]);
std::string::_M_append(v5, *(_QWORD *)v9, v10);
std::string::_M_append(v5, v12, v13);
std::string::_M_append(v5, *a3, a3[1]);
if ( v12 != v14 )
operator delete(v12, v14[0] + 1LL);
if ( *(long long **)v9 != &v11 )
operator delete(*(void **)v9, v11 + 1);
if ( v7[0] != v8 )
operator delete(v7[0], v8[0] + 1LL);
nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v5[0]);
*(_QWORD *)this = off_EE3C8;
if ( (_QWORD *)v5[0] != v6 )
operator delete(v5[0], v6[0] + 1LL);
return this;
}
|
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R15,RDX
MOV EBP,ESI
MOV RBX,RDI
LEA R13,[RSP + 0x38]
MOV qword ptr [R13 + -0x10],R13
LAB_00148a88:
LEA RSI,[0x1b9140]
LEA RDX,[0x1b914c]
LEA RDI,[RSP + 0x28]
CALL 0x001590a2
LAB_00148aa0:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
MOV EDX,EBP
CALL 0x0013e0b6
LEA R14,[RSP + 0x78]
MOV qword ptr [R14 + -0x10],R14
XOR EAX,EAX
MOV qword ptr [R14 + -0x8],RAX
MOV byte ptr [R14],AL
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
MOV qword ptr [R12 + -0x8],RAX
MOV byte ptr [R12],AL
MOV RSI,qword ptr [R15 + 0x8]
ADD RSI,qword ptr [RSP + 0x50]
LAB_00148adf:
LEA RDI,[RSP + 0x8]
CALL 0x00118a30
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
LEA RDI,[RSP + 0x8]
CALL 0x001181e0
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
LEA RDI,[RSP + 0x8]
CALL 0x001181e0
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
LEA RDI,[RSP + 0x8]
CALL 0x001181e0
MOV RDI,qword ptr [RSP + 0x68]
CMP RDI,R14
JZ 0x00148b39
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x001186a0
LAB_00148b39:
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00148b54
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x001186a0
LAB_00148b54:
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R13
JZ 0x00148b6b
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x001186a0
LAB_00148b6b:
MOV RDX,qword ptr [RSP + 0x8]
LAB_00148b70:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0013e31e
LAB_00148b7a:
LEA RAX,[0x1ee3c8]
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x00148b9b
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001186a0
LAB_00148b9b:
MOV RAX,RBX
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
exception *
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(exception *param_1,int param_2,ulong *param_3)
{
char *local_c0;
int8 local_b8;
char local_b0;
int7 uStack_af;
long *local_a0 [2];
long local_90 [2];
long *local_80 [2];
long local_70 [2];
int1 *local_60;
int8 local_58;
int1 local_50;
int7 uStack_4f;
/* try { // try from 00148a88 to 00148a9f has its CatchHandler @ 00148bc9 */
local_a0[0] = local_90;
std::__cxx11::string::_M_construct<char_const*>(local_a0,"out_of_range","");
/* try { // try from 00148aa0 to 00148ab0 has its CatchHandler @ 00148bc4 */
nlohmann::json_abi_v3_11_3::detail::exception::name
((exception *)local_80,(string *)local_a0,param_2);
local_58 = 0;
local_50 = 0;
local_b8 = 0;
local_b0 = '\0';
/* try { // try from 00148adf to 00148b21 has its CatchHandler @ 00148bce */
local_c0 = &local_b0;
local_60 = &local_50;
std::__cxx11::string::reserve((ulong)&local_c0);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_80[0]);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_60);
std::__cxx11::string::_M_append((char *)&local_c0,*param_3);
if (local_60 != &local_50) {
operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1);
}
if (local_80[0] != local_70) {
operator_delete(local_80[0],local_70[0] + 1);
}
if (local_a0[0] != local_90) {
operator_delete(local_a0[0],local_90[0] + 1);
}
/* try { // try from 00148b70 to 00148b79 has its CatchHandler @ 00148bb0 */
nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,local_c0);
*(int ***)param_1 = &PTR__exception_001ee3c8;
if (local_c0 != &local_b0) {
operator_delete(local_c0,CONCAT71(uStack_af,local_b0) + 1);
}
return param_1;
}
|
|
10,727 |
File::RenameSync(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&)
|
Dolphin-anty/Source/Core/Common/FileUtil.cpp
|
bool RenameSync(const std::string& srcFilename, const std::string& destFilename)
{
if (!Rename(srcFilename, destFilename))
return false;
#ifdef _WIN32
int fd = -1;
// XXX is this really needed?
errno_t err = _wsopen_s(&fd, UTF8ToWString(srcFilename).c_str(), _O_RDONLY, _SH_DENYNO,
_S_IREAD | _S_IWRITE);
if (!err && fd >= 0)
{
if (_commit(fd) != 0)
ERROR_LOG_FMT(COMMON, "{} sync failed on {}: {}", __func__, srcFilename, err);
close(fd);
}
#else
char* path = strdup(srcFilename.c_str());
FSyncPath(path);
FSyncPath(dirname(path));
free(path);
path = strdup(destFilename.c_str());
FSyncPath(dirname(path));
free(path);
#endif
return true;
}
|
O0
|
cpp
|
File::RenameSync(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x42610
testb $0x1, %al
jne 0x42958
movb $0x0, 0x27(%rsp)
jmp 0x429cd
movq 0x18(%rsp), %rdi
callq 0x13130
movq %rax, %rdi
callq 0x9630
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rdi
callq 0x429e0
movq 0x8(%rsp), %rdi
callq 0x95b0
movq %rax, %rdi
callq 0x429e0
movq 0x8(%rsp), %rdi
callq 0x99e0
movq 0x10(%rsp), %rdi
callq 0x13130
movq %rax, %rdi
callq 0x9630
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rdi
callq 0x95b0
movq %rax, %rdi
callq 0x429e0
movq 0x8(%rsp), %rdi
callq 0x99e0
movb $0x1, 0x27(%rsp)
movb 0x27(%rsp), %al
andb $0x1, %al
addq $0x28, %rsp
retq
nopl (%rax,%rax)
|
_ZN4File10RenameSyncERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov [rsp+28h+var_18], rsi
mov rdi, [rsp+28h+var_10]
mov rsi, [rsp+28h+var_18]; char *
call _ZN4File6RenameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_; File::Rename(std::string const&,std::string const&)
test al, 1
jnz short loc_42958
mov [rsp+28h+var_1], 0
jmp short loc_429CD
loc_42958:
mov rdi, [rsp+28h+var_10]
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov rdi, rax
call _strdup
mov [rsp+28h+var_20], rax
mov rdi, [rsp+28h+var_20]; this
call _ZN4FileL9FSyncPathEPKc; File::FSyncPath(char const*)
mov rdi, [rsp+28h+var_20]
call _dirname
mov rdi, rax; this
call _ZN4FileL9FSyncPathEPKc; File::FSyncPath(char const*)
mov rdi, [rsp+28h+var_20]
call _free
mov rdi, [rsp+28h+var_18]
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov rdi, rax
call _strdup
mov [rsp+28h+var_20], rax
mov rdi, [rsp+28h+var_20]
call _dirname
mov rdi, rax; this
call _ZN4FileL9FSyncPathEPKc; File::FSyncPath(char const*)
mov rdi, [rsp+28h+var_20]
call _free
mov [rsp+28h+var_1], 1
loc_429CD:
mov al, [rsp+28h+var_1]
and al, 1
add rsp, 28h
retn
|
char File::RenameSync(long long a1, const char *a2)
{
long long v2; // rax
File *v3; // rax
long long v4; // rax
File *v5; // rax
File *v7; // [rsp+8h] [rbp-20h]
File *v8; // [rsp+8h] [rbp-20h]
if ( !File::Rename(a1, (long long)a2) )
return 0;
v2 = std::string::c_str(a1);
v7 = (File *)strdup(v2);
File::FSyncPath(v7, a2);
v3 = (File *)dirname(v7);
File::FSyncPath(v3, a2);
free(v7);
v4 = std::string::c_str((long long)a2);
v8 = (File *)strdup(v4);
v5 = (File *)dirname(v8);
File::FSyncPath(v5, a2);
free(v8);
return 1;
}
|
RenameSync:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RDI
MOV qword ptr [RSP + 0x10],RSI
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x10]
CALL 0x00142610
TEST AL,0x1
JNZ 0x00142958
MOV byte ptr [RSP + 0x27],0x0
JMP 0x001429cd
LAB_00142958:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00113130
MOV RDI,RAX
CALL 0x00109630
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001429e0
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001095b0
MOV RDI,RAX
CALL 0x001429e0
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001099e0
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x00113130
MOV RDI,RAX
CALL 0x00109630
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001095b0
MOV RDI,RAX
CALL 0x001429e0
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001099e0
MOV byte ptr [RSP + 0x27],0x1
LAB_001429cd:
MOV AL,byte ptr [RSP + 0x27]
AND AL,0x1
ADD RSP,0x28
RET
|
/* File::RenameSync(std::__cxx11::string const&, std::__cxx11::string const&) */
bool File::RenameSync(string *param_1,string *param_2)
{
ulong uVar1;
char *pcVar2;
char *pcVar3;
bool bVar4;
uVar1 = Rename(param_1,param_2);
bVar4 = (uVar1 & 1) != 0;
if (bVar4) {
pcVar2 = (char *)std::__cxx11::string::c_str(param_1);
pcVar2 = strdup(pcVar2);
FSyncPath(pcVar2);
pcVar3 = dirname(pcVar2);
FSyncPath(pcVar3);
free(pcVar2);
pcVar2 = (char *)std::__cxx11::string::c_str(param_2);
pcVar2 = strdup(pcVar2);
pcVar3 = dirname(pcVar2);
FSyncPath(pcVar3);
free(pcVar2);
}
return bVar4;
}
|
|
10,728 |
ma_write_dynamic_record
|
eloqsql/storage/maria/ma_dynrec.c
|
my_bool _ma_write_dynamic_record(MARIA_HA *info, const uchar *record)
{
ulong reclength= _ma_rec_pack(info,info->rec_buff + MARIA_REC_BUFF_OFFSET,
record);
if (!reclength)
return 1;
return (write_dynamic_record(info,info->rec_buff + MARIA_REC_BUFF_OFFSET,
reclength));
}
|
O0
|
c
|
ma_write_dynamic_record:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x3a0(%rax), %rsi
addq $0x18, %rsi
movq -0x18(%rbp), %rdx
callq 0x3baa0
movl %eax, %eax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x3ba6f
movb $0x1, -0x1(%rbp)
jmp 0x3ba8e
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x3a0(%rax), %rsi
addq $0x18, %rsi
movq -0x20(%rbp), %rdx
callq 0x3c090
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
_ma_write_dynamic_record:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rdi, [rbp+var_10]
mov rax, [rbp+var_10]
mov rsi, [rax+3A0h]
add rsi, 18h
mov rdx, [rbp+var_18]
call _ma_rec_pack
mov eax, eax
mov [rbp+var_20], rax
cmp [rbp+var_20], 0
jnz short loc_3BA6F
mov [rbp+var_1], 1
jmp short loc_3BA8E
loc_3BA6F:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_10]
mov rsi, [rax+3A0h]
add rsi, 18h
mov rdx, [rbp+var_20]
call write_dynamic_record
mov [rbp+var_1], al
loc_3BA8E:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
|
char ma_write_dynamic_record(long long a1, long long a2)
{
unsigned int v2; // eax
v2 = ma_rec_pack(a1, *(_QWORD *)(a1 + 928) + 24LL, a2);
if ( v2 )
return write_dynamic_record(a1, *(_QWORD *)(a1 + 928) + 24LL, v2);
else
return 1;
}
|
_ma_write_dynamic_record:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x3a0]
ADD RSI,0x18
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x0013baa0
MOV EAX,EAX
MOV qword ptr [RBP + -0x20],RAX
CMP qword ptr [RBP + -0x20],0x0
JNZ 0x0013ba6f
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0013ba8e
LAB_0013ba6f:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x3a0]
ADD RSI,0x18
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x0013c090
MOV byte ptr [RBP + -0x1],AL
LAB_0013ba8e:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 _ma_write_dynamic_record(long param_1,int8 param_2)
{
int iVar1;
int1 local_9;
iVar1 = _ma_rec_pack(param_1,*(long *)(param_1 + 0x3a0) + 0x18,param_2);
if (iVar1 == 0) {
local_9 = 1;
}
else {
local_9 = write_dynamic_record(param_1,*(long *)(param_1 + 0x3a0) + 0x18,iVar1);
}
return local_9;
}
|
|
10,729 |
minja::IfNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const
|
monkey531[P]llama/common/minja.hpp
|
void do_render(std::ostringstream & out, const std::shared_ptr<Context> & context) const override {
for (const auto& branch : cascade) {
auto enter_branch = true;
if (branch.first) {
enter_branch = branch.first->evaluate(context).to_bool();
}
if (enter_branch) {
if (!branch.second) throw std::runtime_error("IfNode.cascade.second is null");
branch.second->render(out, context);
return;
}
}
}
|
O2
|
cpp
|
minja::IfNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq 0x20(%rdi), %r12
movq 0x28(%rdi), %r13
leaq 0x8(%rsp), %r15
cmpq %r13, %r12
je 0x57316
movq (%r12), %rsi
testq %rsi, %rsi
je 0x57301
movq %r15, %rdi
movq %rbx, %rdx
callq 0x3c514
movq %r15, %rdi
callq 0x3c6ea
movl %eax, %ebp
movq %r15, %rdi
callq 0x3c7a4
testb %bpl, %bpl
jne 0x57301
addq $0x20, %r12
jmp 0x572cb
movq 0x10(%r12), %rdi
testq %rdi, %rdi
je 0x57325
movq %r14, %rsi
movq %rbx, %rdx
callq 0x573b4
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x20380
movq %rax, %rbx
leaq 0x39534(%rip), %rsi # 0x9086b
movq %rax, %rdi
callq 0x20270
movq 0x78caa(%rip), %rsi # 0xcfff0
movq 0x78c23(%rip), %rdx # 0xcff70
movq %rbx, %rdi
callq 0x20b30
movq %rax, %r14
movq %rbx, %rdi
callq 0x20510
jmp 0x5736f
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x3c7a4
movq %r14, %rdi
callq 0x20bb0
nop
|
_ZNK5minja6IfNode9do_renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS_7ContextEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov rbx, rdx
mov r14, rsi
mov r12, [rdi+20h]
mov r13, [rdi+28h]
lea r15, [rsp+88h+var_80]
loc_572CB:
cmp r12, r13
jz short loc_57316
mov rsi, [r12]
test rsi, rsi
jz short loc_57301
mov rdi, r15
mov rdx, rbx
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
mov rdi, r15; this
call _ZNK5minja5Value7to_boolEv; minja::Value::to_bool(void)
mov ebp, eax
mov rdi, r15; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
test bpl, bpl
jnz short loc_57301
add r12, 20h ; ' '
jmp short loc_572CB
loc_57301:
mov rdi, [r12+10h]
test rdi, rdi
jz short loc_57325
mov rsi, r14
mov rdx, rbx
call _ZNK5minja12TemplateNode6renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS_7ContextEE; minja::TemplateNode::render(std::ostringstream &,std::shared_ptr<minja::Context> const&)
loc_57316:
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_57325:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aIfnodeCascadeS; "IfNode.cascade.second is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
jmp short loc_5736F
mov r14, rax
lea rdi, [rsp+88h+var_80]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_5736F:
mov rdi, r14
call __Unwind_Resume
|
void minja::IfNode::do_render(long long a1, int a2, int a3, int a4, int a5, int a6)
{
long long v7; // r12
long long v8; // r13
char v9; // bp
long long v10; // rdi
std::runtime_error *exception; // rbx
_BYTE v12[128]; // [rsp+8h] [rbp-80h] BYREF
v7 = *(_QWORD *)(a1 + 32);
v8 = *(_QWORD *)(a1 + 40);
while ( v7 != v8 )
{
if ( !*(_QWORD *)v7
|| (minja::Expression::evaluate((long long)v12, *(void (****)(void))v7),
v9 = minja::Value::to_bool((minja::Value *)v12),
minja::Value::~Value((minja::Value *)v12),
v9) )
{
v10 = *(_QWORD *)(v7 + 16);
if ( !v10 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "IfNode.cascade.second is null");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::TemplateNode::render(v10, a2, a3, a4, a5, a6);
return;
}
v7 += 32LL;
}
}
|
do_render:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV RBX,RDX
MOV R14,RSI
MOV R12,qword ptr [RDI + 0x20]
MOV R13,qword ptr [RDI + 0x28]
LEA R15,[RSP + 0x8]
LAB_001572cb:
CMP R12,R13
JZ 0x00157316
MOV RSI,qword ptr [R12]
TEST RSI,RSI
JZ 0x00157301
MOV RDI,R15
MOV RDX,RBX
CALL 0x0013c514
LAB_001572e4:
MOV RDI,R15
CALL 0x0013c6ea
LAB_001572ec:
MOV EBP,EAX
MOV RDI,R15
CALL 0x0013c7a4
TEST BPL,BPL
JNZ 0x00157301
ADD R12,0x20
JMP 0x001572cb
LAB_00157301:
MOV RDI,qword ptr [R12 + 0x10]
TEST RDI,RDI
JZ 0x00157325
MOV RSI,R14
MOV RDX,RBX
CALL 0x001573b4
LAB_00157316:
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00157325:
PUSH 0x10
POP RDI
CALL 0x00120380
MOV RBX,RAX
LAB_00157330:
LEA RSI,[0x19086b]
MOV RDI,RAX
CALL 0x00120270
LAB_0015733f:
MOV RSI,qword ptr [0x001cfff0]
MOV RDX,qword ptr [0x001cff70]
MOV RDI,RBX
CALL 0x00120b30
|
/* minja::IfNode::do_render(std::__cxx11::ostringstream&, std::shared_ptr<minja::Context> const&)
const */
void minja::IfNode::do_render(ostringstream *param_1,shared_ptr *param_2)
{
int8 *puVar1;
char cVar2;
runtime_error *this;
int8 *puVar3;
Expression local_80 [80];
puVar3 = *(int8 **)(param_1 + 0x20);
puVar1 = *(int8 **)(param_1 + 0x28);
while( true ) {
if (puVar3 == puVar1) {
return;
}
if ((shared_ptr *)*puVar3 == (shared_ptr *)0x0) break;
Expression::evaluate(local_80,(shared_ptr *)*puVar3);
/* try { // try from 001572e4 to 001572eb has its CatchHandler @ 00157362 */
cVar2 = Value::to_bool((Value *)local_80);
Value::~Value((Value *)local_80);
if (cVar2 != '\0') break;
puVar3 = puVar3 + 4;
}
if ((ostringstream *)puVar3[2] != (ostringstream *)0x0) {
TemplateNode::render((ostringstream *)puVar3[2],param_2);
return;
}
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00157330 to 0015733e has its CatchHandler @ 00157355 */
std::runtime_error::runtime_error(this,"IfNode.cascade.second is null");
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_001cfff0,PTR__runtime_error_001cff70);
}
|
|
10,730 |
JS_AddIntrinsicWeakRef
|
bluesky950520[P]quickjs/quickjs.c
|
void JS_AddIntrinsicWeakRef(JSContext *ctx)
{
JSRuntime *rt = ctx->rt;
/* WeakRef */
if (!JS_IsRegisteredClass(rt, JS_CLASS_WEAK_REF)) {
init_class_range(rt, js_weakref_class_def, JS_CLASS_WEAK_REF,
countof(js_weakref_class_def));
}
ctx->class_proto[JS_CLASS_WEAK_REF] = JS_NewObject(ctx);
JS_SetPropertyFunctionList(ctx, ctx->class_proto[JS_CLASS_WEAK_REF],
js_weakref_proto_funcs,
countof(js_weakref_proto_funcs));
JS_NewGlobalCConstructor(ctx, "WeakRef", js_weakref_constructor, 1, ctx->class_proto[JS_CLASS_WEAK_REF]);
/* FinalizationRegistry */
if (!JS_IsRegisteredClass(rt, JS_CLASS_FINALIZATION_REGISTRY)) {
init_class_range(rt, js_finrec_class_def, JS_CLASS_FINALIZATION_REGISTRY,
countof(js_finrec_class_def));
}
ctx->class_proto[JS_CLASS_FINALIZATION_REGISTRY] = JS_NewObject(ctx);
JS_SetPropertyFunctionList(ctx, ctx->class_proto[JS_CLASS_FINALIZATION_REGISTRY],
js_finrec_proto_funcs,
countof(js_finrec_proto_funcs));
JS_NewGlobalCConstructor(ctx, "FinalizationRegistry", js_finrec_constructor, 1, ctx->class_proto[JS_CLASS_FINALIZATION_REGISTRY]);
}
|
O0
|
c
|
JS_AddIntrinsicWeakRef:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq 0x60(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rdi
movl $0x3a, %esi
callq 0x2f520
cmpl $0x0, %eax
jne 0x2d9e6
movq 0x58(%rsp), %rdi
leaq 0x10ab49(%rip), %rsi # 0x138520
movl $0x3a, %edx
movl $0x1, %ecx
callq 0x287e0
movq 0x60(%rsp), %rax
movq 0x40(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x60(%rsp), %rdi
callq 0x30860
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
movq 0x48(%rsp), %rcx
movq %rcx, 0x3a0(%rax)
movq 0x50(%rsp), %rcx
movq %rcx, 0x3a8(%rax)
movq 0x60(%rsp), %rdi
movq 0x60(%rsp), %rax
movq 0x40(%rax), %rax
movq 0x3a0(%rax), %rsi
movq 0x3a8(%rax), %rdx
leaq 0x10f035(%rip), %rcx # 0x13ca80
movl $0x2, %r8d
callq 0x52df0
movq 0x60(%rsp), %rdi
movq 0x60(%rsp), %rax
movq 0x40(%rax), %rax
movq 0x3a0(%rax), %r8
movq 0x3a8(%rax), %r9
leaq 0xe667f(%rip), %rsi # 0x1140f8
leaq 0x32e60(%rip), %rdx # 0x608e0
movl $0x1, %ecx
callq 0x54460
movq %rax, 0x38(%rsp)
movq %rdx, 0x40(%rsp)
movq 0x58(%rsp), %rdi
movl $0x3b, %esi
callq 0x2f520
cmpl $0x0, %eax
jne 0x2dac3
movq 0x58(%rsp), %rdi
leaq 0x10aa8c(%rip), %rsi # 0x138540
movl $0x3b, %edx
movl $0x1, %ecx
callq 0x287e0
movq 0x60(%rsp), %rax
movq 0x40(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x60(%rsp), %rdi
callq 0x30860
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq 0x28(%rsp), %rcx
movq %rcx, 0x3b0(%rax)
movq 0x30(%rsp), %rcx
movq %rcx, 0x3b8(%rax)
movq 0x60(%rsp), %rdi
movq 0x60(%rsp), %rax
movq 0x40(%rax), %rax
movq 0x3b0(%rax), %rsi
movq 0x3b8(%rax), %rdx
leaq 0x10ef98(%rip), %rcx # 0x13cac0
movl $0x3, %r8d
callq 0x52df0
movq 0x60(%rsp), %rdi
movq 0x60(%rsp), %rax
movq 0x40(%rax), %rax
movq 0x3b0(%rax), %r8
movq 0x3b8(%rax), %r9
leaq 0xe65aa(%rip), %rsi # 0x114100
leaq 0x32f93(%rip), %rdx # 0x60af0
movl $0x1, %ecx
callq 0x54460
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)
|
JS_AddIntrinsicWeakRef:
sub rsp, 68h
mov [rsp+68h+var_8], rdi
mov rax, [rsp+68h+var_8]
mov rax, [rax+18h]
mov [rsp+68h+var_10], rax
mov rdi, [rsp+68h+var_10]
mov esi, 3Ah ; ':'
call JS_IsRegisteredClass
cmp eax, 0
jnz short loc_2D9E6
mov rdi, [rsp+68h+var_10]
lea rsi, js_weakref_class_def
mov edx, 3Ah ; ':'
mov ecx, 1
call init_class_range
loc_2D9E6:
mov rax, [rsp+68h+var_8]
mov rax, [rax+40h]
mov [rsp+68h+var_58], rax
mov rdi, [rsp+68h+var_8]
call JS_NewObject
mov rcx, rax
mov rax, [rsp+68h+var_58]
mov [rsp+68h+var_20], rcx
mov [rsp+68h+var_18], rdx
mov rcx, [rsp+68h+var_20]
mov [rax+3A0h], rcx
mov rcx, [rsp+68h+var_18]
mov [rax+3A8h], rcx
mov rdi, [rsp+68h+var_8]
mov rax, [rsp+68h+var_8]
mov rax, [rax+40h]
mov rsi, [rax+3A0h]
mov rdx, [rax+3A8h]
lea rcx, js_weakref_proto_funcs
mov r8d, 2
call JS_SetPropertyFunctionList
mov rdi, [rsp+68h+var_8]
mov rax, [rsp+68h+var_8]
mov rax, [rax+40h]
mov r8, [rax+3A0h]
mov r9, [rax+3A8h]
lea rsi, aWeakref; "WeakRef"
lea rdx, js_weakref_constructor
mov ecx, 1
call JS_NewGlobalCConstructor
mov [rsp+68h+var_30], rax
mov [rsp+68h+var_28], rdx
mov rdi, [rsp+68h+var_10]
mov esi, 3Bh ; ';'
call JS_IsRegisteredClass
cmp eax, 0
jnz short loc_2DAC3
mov rdi, [rsp+68h+var_10]
lea rsi, js_finrec_class_def
mov edx, 3Bh ; ';'
mov ecx, 1
call init_class_range
loc_2DAC3:
mov rax, [rsp+68h+var_8]
mov rax, [rax+40h]
mov [rsp+68h+var_60], rax
mov rdi, [rsp+68h+var_8]
call JS_NewObject
mov rcx, rax
mov rax, [rsp+68h+var_60]
mov [rsp+68h+var_40], rcx
mov [rsp+68h+var_38], rdx
mov rcx, [rsp+68h+var_40]
mov [rax+3B0h], rcx
mov rcx, [rsp+68h+var_38]
mov [rax+3B8h], rcx
mov rdi, [rsp+68h+var_8]
mov rax, [rsp+68h+var_8]
mov rax, [rax+40h]
mov rsi, [rax+3B0h]
mov rdx, [rax+3B8h]
lea rcx, js_finrec_proto_funcs
mov r8d, 3
call JS_SetPropertyFunctionList
mov rdi, [rsp+68h+var_8]
mov rax, [rsp+68h+var_8]
mov rax, [rax+40h]
mov r8, [rax+3B0h]
mov r9, [rax+3B8h]
lea rsi, aFinalizationre; "FinalizationRegistry"
lea rdx, js_finrec_constructor
mov ecx, 1
call JS_NewGlobalCConstructor
mov [rsp+68h+var_50], rax
mov [rsp+68h+var_48], rdx
add rsp, 68h
retn
|
long long JS_AddIntrinsicWeakRef(long long a1)
{
long long v1; // rdx
long long v2; // rdx
long long v4; // [rsp+8h] [rbp-60h]
long long v5; // [rsp+10h] [rbp-58h]
long long v6; // [rsp+58h] [rbp-10h]
v6 = *(_QWORD *)(a1 + 24);
if ( !(unsigned int)JS_IsRegisteredClass(v6, 58LL) )
init_class_range(v6, (long long)&js_weakref_class_def, 58, 1);
v5 = *(_QWORD *)(a1 + 64);
*(_QWORD *)(v5 + 928) = JS_NewObject(a1);
*(_QWORD *)(v5 + 936) = v1;
JS_SetPropertyFunctionList(
a1,
*(_QWORD *)(*(_QWORD *)(a1 + 64) + 928LL),
*(_QWORD *)(*(_QWORD *)(a1 + 64) + 936LL),
&js_weakref_proto_funcs,
2LL);
JS_NewGlobalCConstructor(
a1,
"WeakRef",
js_weakref_constructor,
1LL,
*(_QWORD *)(*(_QWORD *)(a1 + 64) + 928LL),
*(_QWORD *)(*(_QWORD *)(a1 + 64) + 936LL));
if ( !(unsigned int)JS_IsRegisteredClass(v6, 59LL) )
init_class_range(v6, (long long)&js_finrec_class_def, 59, 1);
v4 = *(_QWORD *)(a1 + 64);
*(_QWORD *)(v4 + 944) = JS_NewObject(a1);
*(_QWORD *)(v4 + 952) = v2;
JS_SetPropertyFunctionList(
a1,
*(_QWORD *)(*(_QWORD *)(a1 + 64) + 944LL),
*(_QWORD *)(*(_QWORD *)(a1 + 64) + 952LL),
&js_finrec_proto_funcs,
3LL);
return JS_NewGlobalCConstructor(
a1,
"FinalizationRegistry",
js_finrec_constructor,
1LL,
*(_QWORD *)(*(_QWORD *)(a1 + 64) + 944LL),
*(_QWORD *)(*(_QWORD *)(a1 + 64) + 952LL));
}
|
JS_AddIntrinsicWeakRef:
SUB RSP,0x68
MOV qword ptr [RSP + 0x60],RDI
MOV RAX,qword ptr [RSP + 0x60]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x58],RAX
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,0x3a
CALL 0x0012f520
CMP EAX,0x0
JNZ 0x0012d9e6
MOV RDI,qword ptr [RSP + 0x58]
LEA RSI,[0x238520]
MOV EDX,0x3a
MOV ECX,0x1
CALL 0x001287e0
LAB_0012d9e6:
MOV RAX,qword ptr [RSP + 0x60]
MOV RAX,qword ptr [RAX + 0x40]
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,qword ptr [RSP + 0x60]
CALL 0x00130860
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x48],RCX
MOV qword ptr [RSP + 0x50],RDX
MOV RCX,qword ptr [RSP + 0x48]
MOV qword ptr [RAX + 0x3a0],RCX
MOV RCX,qword ptr [RSP + 0x50]
MOV qword ptr [RAX + 0x3a8],RCX
MOV RDI,qword ptr [RSP + 0x60]
MOV RAX,qword ptr [RSP + 0x60]
MOV RAX,qword ptr [RAX + 0x40]
MOV RSI,qword ptr [RAX + 0x3a0]
MOV RDX,qword ptr [RAX + 0x3a8]
LEA RCX,[0x23ca80]
MOV R8D,0x2
CALL 0x00152df0
MOV RDI,qword ptr [RSP + 0x60]
MOV RAX,qword ptr [RSP + 0x60]
MOV RAX,qword ptr [RAX + 0x40]
MOV R8,qword ptr [RAX + 0x3a0]
MOV R9,qword ptr [RAX + 0x3a8]
LEA RSI,[0x2140f8]
LEA RDX,[0x1608e0]
MOV ECX,0x1
CALL 0x00154460
MOV qword ptr [RSP + 0x38],RAX
MOV qword ptr [RSP + 0x40],RDX
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,0x3b
CALL 0x0012f520
CMP EAX,0x0
JNZ 0x0012dac3
MOV RDI,qword ptr [RSP + 0x58]
LEA RSI,[0x238540]
MOV EDX,0x3b
MOV ECX,0x1
CALL 0x001287e0
LAB_0012dac3:
MOV RAX,qword ptr [RSP + 0x60]
MOV RAX,qword ptr [RAX + 0x40]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x60]
CALL 0x00130860
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x28],RCX
MOV qword ptr [RSP + 0x30],RDX
MOV RCX,qword ptr [RSP + 0x28]
MOV qword ptr [RAX + 0x3b0],RCX
MOV RCX,qword ptr [RSP + 0x30]
MOV qword ptr [RAX + 0x3b8],RCX
MOV RDI,qword ptr [RSP + 0x60]
MOV RAX,qword ptr [RSP + 0x60]
MOV RAX,qword ptr [RAX + 0x40]
MOV RSI,qword ptr [RAX + 0x3b0]
MOV RDX,qword ptr [RAX + 0x3b8]
LEA RCX,[0x23cac0]
MOV R8D,0x3
CALL 0x00152df0
MOV RDI,qword ptr [RSP + 0x60]
MOV RAX,qword ptr [RSP + 0x60]
MOV RAX,qword ptr [RAX + 0x40]
MOV R8,qword ptr [RAX + 0x3b0]
MOV R9,qword ptr [RAX + 0x3b8]
LEA RSI,[0x214100]
LEA RDX,[0x160af0]
MOV ECX,0x1
CALL 0x00154460
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],RDX
ADD RSP,0x68
RET
|
void JS_AddIntrinsicWeakRef(long param_1)
{
int8 uVar1;
long lVar2;
int iVar3;
int1 auVar4 [16];
uVar1 = *(int8 *)(param_1 + 0x18);
iVar3 = JS_IsRegisteredClass(uVar1,0x3a);
if (iVar3 == 0) {
init_class_range(uVar1,js_weakref_class_def,0x3a,1);
}
lVar2 = *(long *)(param_1 + 0x40);
auVar4 = JS_NewObject(param_1);
*(int1 (*) [16])(lVar2 + 0x3a0) = auVar4;
JS_SetPropertyFunctionList
(param_1,*(int8 *)(*(long *)(param_1 + 0x40) + 0x3a0),
*(int8 *)(*(long *)(param_1 + 0x40) + 0x3a8),js_weakref_proto_funcs,2);
JS_NewGlobalCConstructor
(param_1,"WeakRef",js_weakref_constructor,1,
*(int8 *)(*(long *)(param_1 + 0x40) + 0x3a0),
*(int8 *)(*(long *)(param_1 + 0x40) + 0x3a8));
iVar3 = JS_IsRegisteredClass(uVar1,0x3b);
if (iVar3 == 0) {
init_class_range(uVar1,js_finrec_class_def,0x3b,1);
}
lVar2 = *(long *)(param_1 + 0x40);
auVar4 = JS_NewObject(param_1);
*(int1 (*) [16])(lVar2 + 0x3b0) = auVar4;
JS_SetPropertyFunctionList
(param_1,*(int8 *)(*(long *)(param_1 + 0x40) + 0x3b0),
*(int8 *)(*(long *)(param_1 + 0x40) + 0x3b8),js_finrec_proto_funcs,3);
JS_NewGlobalCConstructor
(param_1,"FinalizationRegistry",js_finrec_constructor,1,
*(int8 *)(*(long *)(param_1 + 0x40) + 0x3b0),
*(int8 *)(*(long *)(param_1 + 0x40) + 0x3b8));
return;
}
|
|
10,731 |
JS_AddIntrinsicWeakRef
|
bluesky950520[P]quickjs/quickjs.c
|
void JS_AddIntrinsicWeakRef(JSContext *ctx)
{
JSRuntime *rt = ctx->rt;
/* WeakRef */
if (!JS_IsRegisteredClass(rt, JS_CLASS_WEAK_REF)) {
init_class_range(rt, js_weakref_class_def, JS_CLASS_WEAK_REF,
countof(js_weakref_class_def));
}
ctx->class_proto[JS_CLASS_WEAK_REF] = JS_NewObject(ctx);
JS_SetPropertyFunctionList(ctx, ctx->class_proto[JS_CLASS_WEAK_REF],
js_weakref_proto_funcs,
countof(js_weakref_proto_funcs));
JS_NewGlobalCConstructor(ctx, "WeakRef", js_weakref_constructor, 1, ctx->class_proto[JS_CLASS_WEAK_REF]);
/* FinalizationRegistry */
if (!JS_IsRegisteredClass(rt, JS_CLASS_FINALIZATION_REGISTRY)) {
init_class_range(rt, js_finrec_class_def, JS_CLASS_FINALIZATION_REGISTRY,
countof(js_finrec_class_def));
}
ctx->class_proto[JS_CLASS_FINALIZATION_REGISTRY] = JS_NewObject(ctx);
JS_SetPropertyFunctionList(ctx, ctx->class_proto[JS_CLASS_FINALIZATION_REGISTRY],
js_finrec_proto_funcs,
countof(js_finrec_proto_funcs));
JS_NewGlobalCConstructor(ctx, "FinalizationRegistry", js_finrec_constructor, 1, ctx->class_proto[JS_CLASS_FINALIZATION_REGISTRY]);
}
|
O2
|
c
|
JS_AddIntrinsicWeakRef:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x18(%rdi), %r14
cmpl $0x3b, 0x78(%r14)
jb 0x1d8b8
movq 0x80(%r14), %rax
cmpl $0x0, 0x910(%rax)
jne 0x1d8cd
leaq 0x9cb71(%rip), %rsi # 0xba430
pushq $0x3a
popq %rdx
pushq $0x1
popq %rcx
movq %r14, %rdi
callq 0x1b1c1
movq 0x40(%rbx), %r15
movq %rbx, %rdi
callq 0x1ee79
movq %rax, 0x3a0(%r15)
movq %rdx, 0x3a8(%r15)
movq 0x40(%rbx), %rax
movq 0x3a0(%rax), %rsi
movq 0x3a8(%rax), %rdx
leaq 0xa10a0(%rip), %rcx # 0xbe9a0
pushq $0x2
popq %r8
movq %rbx, %rdi
callq 0x2ffaf
movq 0x40(%rbx), %rax
movq 0x3a0(%rax), %r8
movq 0x3a8(%rax), %r9
leaq 0x6b737(%rip), %rsi # 0x8905c
leaq 0x196f2(%rip), %rdx # 0x3701e
pushq $0x1
popq %rcx
movq %rbx, %rdi
callq 0x3093c
cmpl $0x3c, 0x78(%r14)
jb 0x1d94e
movq 0x80(%r14), %rax
cmpl $0x0, 0x938(%rax)
jne 0x1d963
leaq 0x9cafb(%rip), %rsi # 0xba450
pushq $0x3b
popq %rdx
pushq $0x1
popq %rcx
movq %r14, %rdi
callq 0x1b1c1
movq 0x40(%rbx), %r14
movq %rbx, %rdi
callq 0x1ee79
movq %rax, 0x3b0(%r14)
movq %rdx, 0x3b8(%r14)
movq 0x40(%rbx), %rax
movq 0x3b0(%rax), %rsi
movq 0x3b8(%rax), %rdx
leaq 0xa104a(%rip), %rcx # 0xbe9e0
pushq $0x3
popq %r8
movq %rbx, %rdi
callq 0x2ffaf
movq 0x40(%rbx), %rax
movq 0x3b0(%rax), %r8
movq 0x3b8(%rax), %r9
leaq 0x6b6a9(%rip), %rsi # 0x89064
leaq 0x1976c(%rip), %rdx # 0x3712e
pushq $0x1
popq %rcx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x3093c
|
JS_AddIntrinsicWeakRef:
push r15
push r14
push rbx
mov rbx, rdi
mov r14, [rdi+18h]
cmp dword ptr [r14+78h], 3Bh ; ';'
jb short loc_1D8B8
mov rax, [r14+80h]
cmp dword ptr [rax+910h], 0
jnz short loc_1D8CD
loc_1D8B8:
lea rsi, js_weakref_class_def
push 3Ah ; ':'
pop rdx
push 1
pop rcx
mov rdi, r14
call init_class_range
loc_1D8CD:
mov r15, [rbx+40h]
mov rdi, rbx
call JS_NewObject
mov [r15+3A0h], rax
mov [r15+3A8h], rdx
mov rax, [rbx+40h]
mov rsi, [rax+3A0h]
mov rdx, [rax+3A8h]
lea rcx, js_weakref_proto_funcs
push 2
pop r8
mov rdi, rbx
call JS_SetPropertyFunctionList
mov rax, [rbx+40h]
mov r8, [rax+3A0h]
mov r9, [rax+3A8h]
lea rsi, aWeakref; "WeakRef"
lea rdx, js_weakref_constructor
push 1
pop rcx
mov rdi, rbx
call JS_NewGlobalCConstructor
cmp dword ptr [r14+78h], 3Ch ; '<'
jb short loc_1D94E
mov rax, [r14+80h]
cmp dword ptr [rax+938h], 0
jnz short loc_1D963
loc_1D94E:
lea rsi, js_finrec_class_def
push 3Bh ; ';'
pop rdx
push 1
pop rcx
mov rdi, r14
call init_class_range
loc_1D963:
mov r14, [rbx+40h]
mov rdi, rbx
call JS_NewObject
mov [r14+3B0h], rax
mov [r14+3B8h], rdx
mov rax, [rbx+40h]
mov rsi, [rax+3B0h]
mov rdx, [rax+3B8h]
lea rcx, js_finrec_proto_funcs
push 3
pop r8
mov rdi, rbx
call JS_SetPropertyFunctionList
mov rax, [rbx+40h]
mov r8, [rax+3B0h]
mov r9, [rax+3B8h]
lea rsi, aFinalizationre; "FinalizationRegistry"
lea rdx, js_finrec_constructor
push 1
pop rcx
mov rdi, rbx
pop rbx
pop r14
pop r15
jmp JS_NewGlobalCConstructor
|
long long JS_AddIntrinsicWeakRef(long long a1)
{
long long v1; // r14
long long v2; // r15
long long v3; // rdx
long long v4; // r14
long long v5; // rdx
v1 = *(_QWORD *)(a1 + 24);
if ( *(_DWORD *)(v1 + 120) < 0x3Bu || !*(_DWORD *)(*(_QWORD *)(v1 + 128) + 2320LL) )
init_class_range(*(_QWORD *)(a1 + 24), (long long)&js_weakref_class_def, 0x3Au, 1LL);
v2 = *(_QWORD *)(a1 + 64);
*(_QWORD *)(v2 + 928) = JS_NewObject(a1);
*(_QWORD *)(v2 + 936) = v3;
JS_SetPropertyFunctionList(
a1,
*(_QWORD *)(*(_QWORD *)(a1 + 64) + 928LL),
*(_QWORD *)(*(_QWORD *)(a1 + 64) + 936LL),
&js_weakref_proto_funcs,
2LL);
JS_NewGlobalCConstructor(
a1,
"WeakRef",
js_weakref_constructor,
1LL,
*(_QWORD *)(*(_QWORD *)(a1 + 64) + 928LL),
*(_QWORD *)(*(_QWORD *)(a1 + 64) + 936LL));
if ( *(_DWORD *)(v1 + 120) < 0x3Cu || !*(_DWORD *)(*(_QWORD *)(v1 + 128) + 2360LL) )
init_class_range(v1, (long long)&js_finrec_class_def, 0x3Bu, 1LL);
v4 = *(_QWORD *)(a1 + 64);
*(_QWORD *)(v4 + 944) = JS_NewObject(a1);
*(_QWORD *)(v4 + 952) = v5;
JS_SetPropertyFunctionList(
a1,
*(_QWORD *)(*(_QWORD *)(a1 + 64) + 944LL),
*(_QWORD *)(*(_QWORD *)(a1 + 64) + 952LL),
&js_finrec_proto_funcs,
3LL);
return JS_NewGlobalCConstructor(
a1,
"FinalizationRegistry",
js_finrec_constructor,
1LL,
*(_QWORD *)(*(_QWORD *)(a1 + 64) + 944LL),
*(_QWORD *)(*(_QWORD *)(a1 + 64) + 952LL));
}
|
JS_AddIntrinsicWeakRef:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RDI
MOV R14,qword ptr [RDI + 0x18]
CMP dword ptr [R14 + 0x78],0x3b
JC 0x0011d8b8
MOV RAX,qword ptr [R14 + 0x80]
CMP dword ptr [RAX + 0x910],0x0
JNZ 0x0011d8cd
LAB_0011d8b8:
LEA RSI,[0x1ba430]
PUSH 0x3a
POP RDX
PUSH 0x1
POP RCX
MOV RDI,R14
CALL 0x0011b1c1
LAB_0011d8cd:
MOV R15,qword ptr [RBX + 0x40]
MOV RDI,RBX
CALL 0x0011ee79
MOV qword ptr [R15 + 0x3a0],RAX
MOV qword ptr [R15 + 0x3a8],RDX
MOV RAX,qword ptr [RBX + 0x40]
MOV RSI,qword ptr [RAX + 0x3a0]
MOV RDX,qword ptr [RAX + 0x3a8]
LEA RCX,[0x1be9a0]
PUSH 0x2
POP R8
MOV RDI,RBX
CALL 0x0012ffaf
MOV RAX,qword ptr [RBX + 0x40]
MOV R8,qword ptr [RAX + 0x3a0]
MOV R9,qword ptr [RAX + 0x3a8]
LEA RSI,[0x18905c]
LEA RDX,[0x13701e]
PUSH 0x1
POP RCX
MOV RDI,RBX
CALL 0x0013093c
CMP dword ptr [R14 + 0x78],0x3c
JC 0x0011d94e
MOV RAX,qword ptr [R14 + 0x80]
CMP dword ptr [RAX + 0x938],0x0
JNZ 0x0011d963
LAB_0011d94e:
LEA RSI,[0x1ba450]
PUSH 0x3b
POP RDX
PUSH 0x1
POP RCX
MOV RDI,R14
CALL 0x0011b1c1
LAB_0011d963:
MOV R14,qword ptr [RBX + 0x40]
MOV RDI,RBX
CALL 0x0011ee79
MOV qword ptr [R14 + 0x3b0],RAX
MOV qword ptr [R14 + 0x3b8],RDX
MOV RAX,qword ptr [RBX + 0x40]
MOV RSI,qword ptr [RAX + 0x3b0]
MOV RDX,qword ptr [RAX + 0x3b8]
LEA RCX,[0x1be9e0]
PUSH 0x3
POP R8
MOV RDI,RBX
CALL 0x0012ffaf
MOV RAX,qword ptr [RBX + 0x40]
MOV R8,qword ptr [RAX + 0x3b0]
MOV R9,qword ptr [RAX + 0x3b8]
LEA RSI,[0x189064]
LEA RDX,[0x13712e]
PUSH 0x1
POP RCX
MOV RDI,RBX
POP RBX
POP R14
POP R15
JMP 0x0013093c
|
void JS_AddIntrinsicWeakRef(long param_1)
{
long lVar1;
long lVar2;
int1 auVar3 [16];
lVar1 = *(long *)(param_1 + 0x18);
if ((*(uint *)(lVar1 + 0x78) < 0x3b) || (*(int *)(*(long *)(lVar1 + 0x80) + 0x910) == 0)) {
init_class_range(lVar1,js_weakref_class_def,0x3a,1);
}
lVar2 = *(long *)(param_1 + 0x40);
auVar3 = JS_NewObject(param_1);
*(int1 (*) [16])(lVar2 + 0x3a0) = auVar3;
JS_SetPropertyFunctionList
(param_1,*(int8 *)(*(long *)(param_1 + 0x40) + 0x3a0),
*(int8 *)(*(long *)(param_1 + 0x40) + 0x3a8),js_weakref_proto_funcs,2);
JS_NewGlobalCConstructor
(param_1,"WeakRef",js_weakref_constructor,1,
*(int8 *)(*(long *)(param_1 + 0x40) + 0x3a0),
*(int8 *)(*(long *)(param_1 + 0x40) + 0x3a8));
if ((*(uint *)(lVar1 + 0x78) < 0x3c) || (*(int *)(*(long *)(lVar1 + 0x80) + 0x938) == 0)) {
init_class_range(lVar1,js_finrec_class_def,0x3b,1);
}
lVar1 = *(long *)(param_1 + 0x40);
auVar3 = JS_NewObject(param_1);
*(int1 (*) [16])(lVar1 + 0x3b0) = auVar3;
JS_SetPropertyFunctionList
(param_1,*(int8 *)(*(long *)(param_1 + 0x40) + 0x3b0),
*(int8 *)(*(long *)(param_1 + 0x40) + 0x3b8),js_finrec_proto_funcs,3);
JS_NewGlobalCConstructor
(param_1,"FinalizationRegistry",js_finrec_constructor,1,
*(int8 *)(*(long *)(param_1 + 0x40) + 0x3b0),
*(int8 *)(*(long *)(param_1 + 0x40) + 0x3b8));
return;
}
|
|
10,732 |
testing::internal::PrintTo(wchar_t const*, std::ostream*)
|
seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest-printers.cc
|
void PrintTo(const wchar_t* s, ostream* os) { PrintCStringTo(s, os); }
|
O1
|
cpp
|
testing::internal::PrintTo(wchar_t const*, std::ostream*):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
testq %rdi, %rdi
je 0x1c18f
movq %rdi, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x93a0
leaq 0x28803(%rip), %rsi # 0x44968
movl $0xd, %edx
movq %rax, %rdi
callq 0x95a0
movq %r14, %rdi
callq 0x93f0
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1c6af
leaq 0x24606(%rip), %rsi # 0x4079c
movl $0x4, %edx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x95a0
|
_ZN7testing8internal7PrintToEPKwPSo:
push r14
push rbx
push rax
mov rbx, rsi
test rdi, rdi
jz short loc_1C18F
mov r14, rdi
mov rdi, rbx
mov rsi, r14
call __ZNSo9_M_insertIPKvEERSoT_; std::ostream::_M_insert<void const*>(void const*)
lea rsi, aPointingTo; " pointing to "
mov edx, 0Dh
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, r14
call _wcslen
mov rdi, r14
mov rsi, rax
mov rdx, rbx
add rsp, 8
pop rbx
pop r14
jmp _ZN7testing8internalL20PrintCharsAsStringToIwEENS0_10CharFormatEPKT_mPSo; testing::internal::PrintCharsAsStringTo<wchar_t>(wchar_t const*,ulong,std::ostream *)
loc_1C18F:
lea rsi, aNull_0; "NULL"
mov edx, 4
mov rdi, rbx
add rsp, 8
pop rbx
pop r14
jmp __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
|
long long testing::internal::PrintTo(long long a1, long long a2)
{
long long v2; // rax
long long v3; // rax
if ( !a1 )
return std::__ostream_insert<char,std::char_traits<char>>(a2, "NULL", 4LL);
v2 = std::ostream::_M_insert<void const*>(a2, a1);
std::__ostream_insert<char,std::char_traits<char>>(v2, " pointing to ", 13LL);
v3 = wcslen(a1);
return testing::internal::PrintCharsAsStringTo<wchar_t>(a1, v3, a2);
}
|
PrintTo:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
TEST RDI,RDI
JZ 0x0011c18f
MOV R14,RDI
MOV RDI,RBX
MOV RSI,R14
CALL 0x001093a0
LEA RSI,[0x144968]
MOV EDX,0xd
MOV RDI,RAX
CALL 0x001095a0
MOV RDI,R14
CALL 0x001093f0
MOV RDI,R14
MOV RSI,RAX
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x0011c6af
LAB_0011c18f:
LEA RSI,[0x14079c]
MOV EDX,0x4
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x001095a0
|
/* testing::internal::PrintTo(wchar_t const*, std::ostream*) */
void testing::internal::PrintTo(wchar_t *param_1,ostream *param_2)
{
ostream *poVar1;
size_t sVar2;
if (param_1 != (wchar_t *)0x0) {
poVar1 = std::ostream::_M_insert<void_const*>(param_2);
std::__ostream_insert<char,std::char_traits<char>>(poVar1," pointing to ",0xd);
sVar2 = wcslen(param_1);
PrintCharsAsStringTo<wchar_t>(param_1,sVar2,param_2);
return;
}
std::__ostream_insert<char,std::char_traits<char>>(param_2,"NULL",4);
return;
}
|
|
10,733 |
minja::Value::push_back(minja::Value const&)
|
monkey531[P]llama/common/minja.hpp
|
void push_back(const Value& v) {
if (!array_)
throw std::runtime_error("Value is not an array: " + dump());
array_->push_back(v);
}
|
O3
|
cpp
|
minja::Value::push_back(minja::Value const&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x91e77
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x91f46
movl $0x10, %edi
callq 0x1b4d0
movq %rax, %rbx
movq %rsp, %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x8a0c8
leaq 0x6172a(%rip), %rsi # 0xf35c7
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x7c85d
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x1c0a0
xorl %ebp, %ebp
movq 0x9e125(%rip), %rsi # 0x12ffe8
movq 0x9e086(%rip), %rdx # 0x12ff50
movq %rbx, %rdi
callq 0x1c1c0
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x91ef0
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1ba60
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x91f0b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1ba60
testb %bpl, %bpl
jne 0x91f35
jmp 0x91f3d
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x91f35
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1ba60
jmp 0x91f35
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b760
movq %r14, %rdi
callq 0x1c250
nop
|
_ZN5minja5Value9push_backERKS0_:
push rbp
push r14
push rbx
sub rsp, 40h
mov r14, rdi
mov rdi, [rdi+10h]
test rdi, rdi
jz short loc_91E77
add rsp, 40h
pop rbx
pop r14
pop rbp
jmp _ZNSt6vectorIN5minja5ValueESaIS1_EE9push_backERKS1_; std::vector<minja::Value>::push_back(minja::Value const&)
loc_91E77:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, rsp
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aValueIsNotAnAr; "Value is not an array: "
lea rdi, [rsp+58h+var_38]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+58h+var_38]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+58h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_91EF0
mov rsi, [rsp+58h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_91EF0:
lea rax, [rsp+58h+var_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_91F0B
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_91F0B:
test bpl, bpl
jnz short loc_91F35
jmp short loc_91F3D
mov r14, rax
lea rax, [rsp+58h+var_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_91F35
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_91F35
mov r14, rax
loc_91F35:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_91F3D:
mov rdi, r14
call __Unwind_Resume
|
long long minja::Value::push_back(minja::Value *this, const minja::Value *a2)
{
long long v3; // rdi
void *exception; // rbx
_BYTE v6[16]; // [rsp+0h] [rbp-58h] BYREF
_BYTE v7[16]; // [rsp+20h] [rbp-38h] BYREF
v3 = *((_QWORD *)this + 2);
if ( !v3 )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v6, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v7, (long long)"Value is not an array: ", (long long)v6);
std::runtime_error::runtime_error(exception, v7);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
return std::vector<minja::Value>::push_back(v3, a2);
}
|
push_back:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV R14,RDI
MOV RDI,qword ptr [RDI + 0x10]
TEST RDI,RDI
JZ 0x00191e77
ADD RSP,0x40
POP RBX
POP R14
POP RBP
JMP 0x00191f46
LAB_00191e77:
MOV EDI,0x10
CALL 0x0011b4d0
MOV RBX,RAX
LAB_00191e84:
MOV RDI,RSP
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0018a0c8
LAB_00191e96:
LEA RSI,[0x1f35c7]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x0017c85d
MOV BPL,0x1
LAB_00191ead:
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x0011c0a0
XOR EBP,EBP
MOV RSI,qword ptr [0x0022ffe8]
MOV RDX,qword ptr [0x0022ff50]
MOV RDI,RBX
CALL 0x0011c1c0
|
/* minja::Value::push_back(minja::Value const&) */
void __thiscall minja::Value::push_back(Value *this,Value *param_1)
{
runtime_error *this_00;
int1 auStack_58 [32];
string local_38 [32];
if (*(vector<minja::Value,std::allocator<minja::Value>> **)(this + 0x10) !=
(vector<minja::Value,std::allocator<minja::Value>> *)0x0) {
std::vector<minja::Value,std::allocator<minja::Value>>::push_back
(*(vector<minja::Value,std::allocator<minja::Value>> **)(this + 0x10),param_1);
return;
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00191e84 to 00191e95 has its CatchHandler @ 00191f32 */
dump_abi_cxx11_((int)auStack_58,SUB81(this,0));
/* try { // try from 00191e96 to 00191ea9 has its CatchHandler @ 00191f12 */
std::operator+((char *)local_38,(string *)"Value is not an array: ");
/* try { // try from 00191ead to 00191ed1 has its CatchHandler @ 00191ed2 */
std::runtime_error::runtime_error(this_00,local_38);
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_0022ffe8,PTR__runtime_error_0022ff50);
}
|
|
10,734 |
Frame_range_n_top::Frame_range_n_top(THD*, SQL_I_List<st_order>*, SQL_I_List<st_order>*, bool, Item*)
|
eloqsql/sql/sql_window.cc
|
Frame_range_n_top(THD *thd,
SQL_I_List<ORDER> *partition_list,
SQL_I_List<ORDER> *order_list,
bool is_preceding_arg, Item *n_val_arg) :
cursor(thd, partition_list), n_val(n_val_arg), item_add(NULL),
is_preceding(is_preceding_arg)
{
DBUG_ASSERT(order_list->elements == 1);
Item *src_expr= order_list->first->item[0];
if (order_list->first->direction == ORDER::ORDER_ASC)
order_direction= 1;
else
order_direction= -1;
range_expr= (Cached_item_item*) new_Cached_item(thd, src_expr, FALSE);
bool use_minus= is_preceding;
if (order_direction == -1)
use_minus= !use_minus;
if (use_minus)
item_add= new (thd->mem_root) Item_func_minus(thd, src_expr, n_val);
else
item_add= new (thd->mem_root) Item_func_plus(thd, src_expr, n_val);
item_add->fix_fields(thd, &item_add);
}
|
O0
|
cpp
|
Frame_range_n_top::Frame_range_n_top(THD*, SQL_I_List<st_order>*, SQL_I_List<st_order>*, bool, Item*):
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movb %r8b, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
andb $0x1, %al
movb %al, -0x21(%rbp)
movq %r9, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x90(%rbp)
callq 0xc184f0
movq -0x90(%rbp), %rdi
leaq 0xe3302b(%rip), %rax # 0x1a4a340
movq %rax, (%rdi)
addq $0x28, %rdi
movq %rdi, -0x88(%rbp)
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0xc18640
jmp 0xc17332
movq -0x90(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, 0xb8(%rax)
movq $0x0, 0xc0(%rax)
movb -0x21(%rbp), %cl
andb $0x1, %cl
movb %cl, 0xc8(%rax)
jmp 0xc1735d
jmp 0xc1735f
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
cmpl $0x1, 0x2c(%rax)
jne 0xc173a4
movq -0x90(%rbp), %rax
movl $0x1, 0xcc(%rax)
jmp 0xc173b5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xc175ce
movq -0x90(%rbp), %rax
movl $0xffffffff, 0xcc(%rax) # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rsi
xorl %edx, %edx
callq 0xd44f20
movq %rax, -0x98(%rbp)
jmp 0xc173cd
movq -0x90(%rbp), %rax
movq -0x98(%rbp), %rcx
movq %rcx, 0xb0(%rax)
movb 0xc8(%rax), %cl
andb $0x1, %cl
movb %cl, -0x49(%rbp)
cmpl $-0x1, 0xcc(%rax)
jne 0xc17414
movb -0x49(%rbp), %al
xorb $-0x1, %al
andb $0x1, %al
movb %al, -0x49(%rbp)
jmp 0xc17414
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xc175c2
testb $0x1, -0x49(%rbp)
je 0xc174db
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
movq %rsi, -0xb0(%rbp)
movl $0xb8, %edi
callq 0x87dea0
movq %rax, %rcx
movq %rcx, -0xa8(%rbp)
movb $0x0, -0x61(%rbp)
xorl %eax, %eax
cmpq $0x0, %rcx
movq %rax, -0xa0(%rbp)
je 0xc1749b
movq -0xa8(%rbp), %rdi
movq -0x90(%rbp), %rax
movq -0xb0(%rbp), %rcx
movq %rdi, -0x58(%rbp)
movq %rcx, -0x60(%rbp)
movb $0x1, -0x61(%rbp)
movq -0x10(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq 0xb8(%rax), %rcx
callq 0xc19930
jmp 0xc1748b
movq -0xa8(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0xc1749b
movq -0x90(%rbp), %rax
movq -0xa0(%rbp), %rcx
movq %rcx, 0xc0(%rax)
jmp 0xc17592
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
testb $0x1, -0x61(%rbp)
jne 0xc174c9
jmp 0xc174d6
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rsi
callq 0x87df70
jmp 0xc175c2
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
movq %rsi, -0xc8(%rbp)
movl $0xb0, %edi
callq 0x87dea0
movq %rax, %rcx
movq %rcx, -0xc0(%rbp)
movb $0x0, -0x79(%rbp)
xorl %eax, %eax
cmpq $0x0, %rcx
movq %rax, -0xb8(%rbp)
je 0xc17558
movq -0xc0(%rbp), %rdi
movq -0x90(%rbp), %rax
movq -0xc8(%rbp), %rcx
movq %rdi, -0x70(%rbp)
movq %rcx, -0x78(%rbp)
movb $0x1, -0x79(%rbp)
movq -0x10(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq 0xb8(%rax), %rcx
callq 0x9cee10
jmp 0xc17548
movq -0xc0(%rbp), %rax
movq %rax, -0xb8(%rbp)
jmp 0xc17558
movq -0x90(%rbp), %rax
movq -0xb8(%rbp), %rcx
movq %rcx, 0xc0(%rax)
jmp 0xc17592
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
testb $0x1, -0x79(%rbp)
jne 0xc17583
jmp 0xc17590
movq -0x70(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x87df70
jmp 0xc175c2
movq -0x90(%rbp), %rax
movq %rax, %rdx
addq $0xc0, %rdx
movq 0xc0(%rax), %rdi
movq -0x10(%rbp), %rsi
movq (%rdi), %rax
movq 0x48(%rax), %rax
callq *%rax
jmp 0xc175b9
addq $0xd0, %rsp
popq %rbp
retq
movq -0x88(%rbp), %rdi
callq 0xc186b0
movq -0x90(%rbp), %rdi
callq 0xc18620
movq -0x38(%rbp), %rdi
callq 0x775a20
nopw %cs:(%rax,%rax)
nopl (%rax)
|
_ZN17Frame_range_n_topC2EP3THDP10SQL_I_ListI8st_orderES5_bP4Item:
push rbp
mov rbp, rsp
sub rsp, 0D0h
mov al, r8b
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
and al, 1
mov [rbp+var_21], al
mov [rbp+var_30], r9
mov rdi, [rbp+var_8]; this
mov [rbp+var_90], rdi
call _ZN12Frame_cursorC2Ev; Frame_cursor::Frame_cursor(void)
mov rdi, [rbp+var_90]
lea rax, off_1A4A340
mov [rdi], rax
add rdi, 28h ; '('
mov [rbp+var_88], rdi
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
call _ZN21Partition_read_cursorC2EP3THDP10SQL_I_ListI8st_orderE; Partition_read_cursor::Partition_read_cursor(THD *,SQL_I_List<st_order> *)
jmp short $+2
loc_C17332:
mov rax, [rbp+var_90]
mov rcx, [rbp+var_30]
mov [rax+0B8h], rcx
mov qword ptr [rax+0C0h], 0
mov cl, [rbp+var_21]
and cl, 1
mov [rax+0C8h], cl
jmp short $+2
loc_C1735D:
jmp short $+2
loc_C1735F:
mov rax, [rbp+var_20]
mov rax, [rax+8]
mov rax, [rax+8]
mov rax, [rax]
mov [rbp+var_48], rax
mov rax, [rbp+var_20]
mov rax, [rax+8]
cmp dword ptr [rax+2Ch], 1
jnz short loc_C173A4
mov rax, [rbp+var_90]
mov dword ptr [rax+0CCh], 1
jmp short loc_C173B5
mov rcx, rax
mov eax, edx
mov [rbp+var_38], rcx
mov [rbp+var_3C], eax
jmp loc_C175CE
loc_C173A4:
mov rax, [rbp+var_90]
mov dword ptr [rax+0CCh], 0FFFFFFFFh
loc_C173B5:
mov rdi, [rbp+var_10]; THD *
mov rsi, [rbp+var_48]; Item *
xor edx, edx; bool
call _Z15new_Cached_itemP3THDP4Itemb; new_Cached_item(THD *,Item *,bool)
mov [rbp+var_98], rax
jmp short $+2
loc_C173CD:
mov rax, [rbp+var_90]
mov rcx, [rbp+var_98]
mov [rax+0B0h], rcx
mov cl, [rax+0C8h]
and cl, 1
mov [rbp+var_49], cl
cmp dword ptr [rax+0CCh], 0FFFFFFFFh
jnz short loc_C17414
mov al, [rbp+var_49]
xor al, 0FFh
and al, 1
mov [rbp+var_49], al
jmp short loc_C17414
mov rcx, rax
mov eax, edx
mov [rbp+var_38], rcx
mov [rbp+var_3C], eax
jmp loc_C175C2
loc_C17414:
test [rbp+var_49], 1
jz loc_C174DB
mov rax, [rbp+var_10]
mov rsi, [rax+28h]
mov [rbp+var_B0], rsi
mov edi, 0B8h
call _ZN4ItemnwEmP11st_mem_root; Item::operator new(ulong,st_mem_root *)
mov rcx, rax
mov [rbp+var_A8], rcx
mov [rbp+var_61], 0
xor eax, eax
cmp rcx, 0
mov [rbp+var_A0], rax
jz short loc_C1749B
mov rdi, [rbp+var_A8]; this
mov rax, [rbp+var_90]
mov rcx, [rbp+var_B0]
mov [rbp+var_58], rdi
mov [rbp+var_60], rcx
mov [rbp+var_61], 1
mov rsi, [rbp+var_10]; THD *
mov rdx, [rbp+var_48]; Item *
mov rcx, [rax+0B8h]; Item *
call _ZN15Item_func_minusC2EP3THDP4ItemS3_; Item_func_minus::Item_func_minus(THD *,Item *,Item *)
jmp short $+2
loc_C1748B:
mov rax, [rbp+var_A8]
mov [rbp+var_A0], rax
jmp short $+2
loc_C1749B:
mov rax, [rbp+var_90]
mov rcx, [rbp+var_A0]
mov [rax+0C0h], rcx
jmp loc_C17592
mov rcx, rax
mov eax, edx
mov [rbp+var_38], rcx
mov [rbp+var_3C], eax
test [rbp+var_61], 1
jnz short loc_C174C9
jmp short loc_C174D6
loc_C174C9:
mov rdi, [rbp+var_58]
mov rsi, [rbp+var_60]
call _ZN4ItemdlEPvP11st_mem_root; Item::operator delete(void *,st_mem_root *)
loc_C174D6:
jmp loc_C175C2
loc_C174DB:
mov rax, [rbp+var_10]
mov rsi, [rax+28h]
mov [rbp+var_C8], rsi
mov edi, 0B0h
call _ZN4ItemnwEmP11st_mem_root; Item::operator new(ulong,st_mem_root *)
mov rcx, rax
mov [rbp+var_C0], rcx
mov [rbp+var_79], 0
xor eax, eax
cmp rcx, 0
mov [rbp+var_B8], rax
jz short loc_C17558
mov rdi, [rbp+var_C0]; this
mov rax, [rbp+var_90]
mov rcx, [rbp+var_C8]
mov [rbp+var_70], rdi
mov [rbp+var_78], rcx
mov [rbp+var_79], 1
mov rsi, [rbp+var_10]; THD *
mov rdx, [rbp+var_48]; Item *
mov rcx, [rax+0B8h]; Item *
call _ZN14Item_func_plusC2EP3THDP4ItemS3_; Item_func_plus::Item_func_plus(THD *,Item *,Item *)
jmp short $+2
loc_C17548:
mov rax, [rbp+var_C0]
mov [rbp+var_B8], rax
jmp short $+2
loc_C17558:
mov rax, [rbp+var_90]
mov rcx, [rbp+var_B8]
mov [rax+0C0h], rcx
jmp short loc_C17592
mov rcx, rax
mov eax, edx
mov [rbp+var_38], rcx
mov [rbp+var_3C], eax
test [rbp+var_79], 1
jnz short loc_C17583
jmp short loc_C17590
loc_C17583:
mov rdi, [rbp+var_70]
mov rsi, [rbp+var_78]
call _ZN4ItemdlEPvP11st_mem_root; Item::operator delete(void *,st_mem_root *)
loc_C17590:
jmp short loc_C175C2
loc_C17592:
mov rax, [rbp+var_90]
mov rdx, rax
add rdx, 0C0h
mov rdi, [rax+0C0h]
mov rsi, [rbp+var_10]
mov rax, [rdi]
mov rax, [rax+48h]
call rax
jmp short $+2
loc_C175B9:
add rsp, 0D0h
pop rbp
retn
loc_C175C2:
mov rdi, [rbp+var_88]; this
call _ZN21Partition_read_cursorD2Ev; Partition_read_cursor::~Partition_read_cursor()
loc_C175CE:
mov rdi, [rbp+var_90]; this
call _ZN12Frame_cursorD2Ev; Frame_cursor::~Frame_cursor()
mov rdi, [rbp+var_38]
call __Unwind_Resume
|
long long Frame_range_n_top::Frame_range_n_top(
long long a1,
long long *a2,
long long a3,
long long a4,
char a5,
long long a6)
{
Item_func_plus *v7; // [rsp+10h] [rbp-C0h]
Item_func_plus *v8; // [rsp+18h] [rbp-B8h]
Item_func_minus *v9; // [rsp+28h] [rbp-A8h]
Item_func_minus *v10; // [rsp+30h] [rbp-A0h]
char v11; // [rsp+87h] [rbp-49h]
Item *v12; // [rsp+88h] [rbp-48h]
char v14; // [rsp+AFh] [rbp-21h]
v14 = a5 & 1;
Frame_cursor::Frame_cursor((Frame_cursor *)a1);
*(_QWORD *)a1 = &off_1A4A340;
Partition_read_cursor::Partition_read_cursor(a1 + 40, a2, a3);
*(_QWORD *)(a1 + 184) = a6;
*(_QWORD *)(a1 + 192) = 0LL;
*(_BYTE *)(a1 + 200) = v14 & 1;
v12 = **(Item ***)(*(_QWORD *)(a4 + 8) + 8LL);
if ( *(_DWORD *)(*(_QWORD *)(a4 + 8) + 44LL) == 1 )
*(_DWORD *)(a1 + 204) = 1;
else
*(_DWORD *)(a1 + 204) = -1;
*(_QWORD *)(a1 + 176) = new_Cached_item((THD *)a2, v12, 0);
v11 = *(_BYTE *)(a1 + 200) & 1;
if ( *(_DWORD *)(a1 + 204) == -1 )
v11 = (*(_BYTE *)(a1 + 200) & 1) == 0;
if ( (v11 & 1) != 0 )
{
v9 = (Item_func_minus *)Item::operator new(184LL, a2[5]);
v10 = 0LL;
if ( v9 )
{
Item_func_minus::Item_func_minus(v9, (THD *)a2, v12, *(Item **)(a1 + 184));
v10 = v9;
}
*(_QWORD *)(a1 + 192) = v10;
}
else
{
v7 = (Item_func_plus *)Item::operator new(176LL, a2[5]);
v8 = 0LL;
if ( v7 )
{
Item_func_plus::Item_func_plus(v7, (THD *)a2, v12, *(Item **)(a1 + 184));
v8 = v7;
}
*(_QWORD *)(a1 + 192) = v8;
}
return (*(long long ( **)(_QWORD, long long *, long long))(**(_QWORD **)(a1 + 192) + 72LL))(
*(_QWORD *)(a1 + 192),
a2,
a1 + 192);
}
|
init_derived:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV AL,DL
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
AND AL,0x1
MOV byte ptr [RBP + -0x19],AL
MOV RDI,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x40],RDI
CALL 0x00c10710
MOV RDI,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x28],RAX
CALL 0x00c10760
MOV qword ptr [RBP + -0x30],RAX
CMP qword ptr [RBP + -0x30],0x0
JNZ 0x00c17315
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00c175a7
LAB_00c17315:
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x270]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x28]
CMP dword ptr [RAX + 0x268],0x1
JA 0x00c17347
CMP qword ptr [RBP + -0x38],0x0
JZ 0x00c17350
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x00a5a4a0
TEST AL,0x1
JNZ 0x00c17347
JMP 0x00c17350
LAB_00c17347:
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00c1b810
LAB_00c17350:
MOV RAX,qword ptr [RBP + -0x30]
CMP qword ptr [RAX + 0x778],0x0
JNZ 0x00c17372
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX + 0x778],RCX
JMP 0x00c17414
LAB_00c17372:
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00d1bd60
TEST AL,0x1
JNZ 0x00c17412
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x30]
CMP qword ptr [RAX + 0x778],RCX
JZ 0x00c17412
MOV RAX,qword ptr [RBP + -0x30]
MOV RDI,qword ptr [RAX + 0x778]
CALL 0x00d1bd60
TEST AL,0x1
JNZ 0x00c173aa
JMP 0x00c173bb
LAB_00c173aa:
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX + 0x778],RCX
JMP 0x00c17410
LAB_00c173bb:
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x620
MOV RAX,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RAX + 0x778]
ADD RSI,0x620
CALL 0x00c175c0
TEST AL,0x1
JNZ 0x00c173e3
JMP 0x00c173f5
LAB_00c173e3:
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x620
CALL 0x00accc60
JMP 0x00c1740e
LAB_00c173f5:
MOV EDI,0x101a
XOR EAX,EAX
MOV ESI,EAX
MOV AL,0x0
CALL 0x0141c1e0
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00c175a7
LAB_00c1740e:
JMP 0x00c17410
LAB_00c17410:
JMP 0x00c17412
LAB_00c17412:
JMP 0x00c17414
LAB_00c17414:
TEST byte ptr [RBP + -0x19],0x1
JZ 0x00c1743e
MOV RAX,qword ptr [RBP + -0x40]
CMP qword ptr [RAX + 0x198],0x0
JNZ 0x00c1743e
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00c17690
TEST AL,0x1
JNZ 0x00c1743e
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00a5b7a0
LAB_00c1743e:
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00a5ab20
TEST AL,0x1
JNZ 0x00c17534
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00c17690
TEST AL,0x1
JNZ 0x00c17534
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x009d36d0
TEST AL,0x1
JNZ 0x00c17529
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x00c1b830
TEST AL,0x1
JNZ 0x00c17483
JMP 0x00c17529
LAB_00c17483:
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x00ab3650
CMP RAX,0x0
JZ 0x00c17529
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x00ab3650
MOV EAX,dword ptr [RAX + 0x388]
SHR EAX,0x4
AND EAX,0x1
TEST EAX,0x1
JNZ 0x00c17529
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x58]
MOV EAX,dword ptr [RAX + 0x17c6]
SHR EAX,0x13
AND EAX,0x1
TEST EAX,0x1
JZ 0x00c174e7
MOV RAX,qword ptr [RBP + -0x28]
CMP dword ptr [RAX + 0x280],0x0
JNZ 0x00c17529
MOV RAX,qword ptr [RBP + -0x28]
CMP dword ptr [RAX + 0x2e8],0x0
JNZ 0x00c17529
LAB_00c174e7:
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,0x80
CALL 0x009cab00
TEST AL,0x1
JNZ 0x00c174fb
JMP 0x00c17529
LAB_00c174fb:
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x58]
MOV ESI,0x1
CALL 0x00ab4bc0
TEST AL,0x1
JNZ 0x00c17529
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00d1bd20
TEST AL,0x1
JNZ 0x00c17529
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00c1b910
JMP 0x00c17532
LAB_00c17529:
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00a5b4b0
LAB_00c17532:
JMP 0x00c17534
LAB_00c17534:
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x009d36d0
TEST AL,0x1
JNZ 0x00c17543
JMP 0x00c1754c
LAB_00c17543:
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00c122f0
LAB_00c1754c:
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00a5a480
TEST AL,0x1
JNZ 0x00c1755b
JMP 0x00c175a3
LAB_00c1755b:
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00a5ab20
TEST AL,0x1
JNZ 0x00c17594
MOV RAX,qword ptr [RBP + -0x30]
MOV AX,word ptr [RAX + 0x7f0]
AND AX,0x1
TEST AX,0x1
JZ 0x00c175a1
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x58]
MOVZX EAX,byte ptr [RAX + 0x183a]
AND EAX,0x2
CMP EAX,0x0
JNZ 0x00c175a1
LAB_00c17594:
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00c102f0
LAB_00c175a1:
JMP 0x00c175a3
LAB_00c175a3:
MOV byte ptr [RBP + -0x1],0x0
LAB_00c175a7:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x40
POP RBP
RET
|
/* TABLE_LIST::init_derived(THD*, bool) */
int1 __thiscall TABLE_LIST::init_derived(TABLE_LIST *this,THD *param_1,bool param_2)
{
st_select_lex *this_00;
st_select_lex_unit *this_01;
ulong uVar1;
long lVar2;
this_00 = (st_select_lex *)get_single_select(this);
this_01 = (st_select_lex_unit *)get_unit(this);
if (this_01 != (st_select_lex_unit *)0x0) {
if ((1 < *(uint *)(this_00 + 0x268)) ||
((*(TABLE_LIST **)(this_00 + 0x270) != (TABLE_LIST *)0x0 &&
(uVar1 = is_multitable(*(TABLE_LIST **)(this_00 + 0x270)), (uVar1 & 1) != 0)))) {
set_multitable(this);
}
if (*(long *)(this_01 + 0x778) == 0) {
*(TABLE_LIST **)(this_01 + 0x778) = this;
}
else {
uVar1 = is_with_table_recursive_reference(this);
if (((uVar1 & 1) == 0) && (*(TABLE_LIST **)(this_01 + 0x778) != this)) {
uVar1 = is_with_table_recursive_reference(*(TABLE_LIST **)(this_01 + 0x778));
if ((uVar1 & 1) == 0) {
uVar1 = vers_select_conds_t::eq
((vers_select_conds_t *)(this + 0x620),
(vers_select_conds_t *)(*(long *)(this_01 + 0x778) + 0x620));
if ((uVar1 & 1) == 0) {
my_error(0x101a,0);
return 1;
}
vers_select_conds_t::empty((vers_select_conds_t *)(this + 0x620));
}
else {
*(TABLE_LIST **)(this_01 + 0x778) = this;
}
}
}
if (((param_2) && (*(long *)(this + 0x198) == 0)) &&
(uVar1 = derived_table_optimization_done(this), (uVar1 & 1) == 0)) {
set_derived(this);
}
uVar1 = is_view(this);
if (((uVar1 & 1) == 0) && (uVar1 = derived_table_optimization_done(this), (uVar1 & 1) == 0)) {
uVar1 = is_materialized_derived(this);
if ((((((uVar1 & 1) == 0) &&
((uVar1 = st_select_lex::is_mergeable(this_00), (uVar1 & 1) != 0 &&
(lVar2 = st_select_lex_unit::outer_select(this_01), lVar2 != 0)))) &&
(lVar2 = st_select_lex_unit::outer_select(this_01),
(*(uint *)(lVar2 + 0x388) >> 4 & 1) == 0)) &&
(((*(uint *)(*(long *)(param_1 + 0x58) + 0x17c6) >> 0x13 & 1) == 0 ||
((*(int *)(this_00 + 0x280) == 0 && (*(int *)(this_00 + 0x2e8) == 0)))))) &&
((uVar1 = optimizer_flag(param_1,0x80), (uVar1 & 1) != 0 &&
((uVar1 = LEX::can_not_use_merged(*(LEX **)(param_1 + 0x58),true), (uVar1 & 1) == 0 &&
(uVar1 = is_recursive_with_table(this), (uVar1 & 1) == 0)))))) {
set_merged_derived(this);
}
else {
set_materialized_derived(this);
}
}
uVar1 = is_materialized_derived(this);
if ((uVar1 & 1) != 0) {
set_check_materialized(this);
}
uVar1 = is_merged_derived(this);
if (((uVar1 & 1) != 0) &&
((uVar1 = is_view(this), (uVar1 & 1) != 0 ||
(((*(ushort *)(this_01 + 0x7f0) & 1) != 0 &&
((*(byte *)(*(long *)(param_1 + 0x58) + 0x183a) & 2) == 0)))))) {
create_field_translation(this,param_1);
}
}
return 0;
}
|
|
10,735 |
Frame_range_n_top::Frame_range_n_top(THD*, SQL_I_List<st_order>*, SQL_I_List<st_order>*, bool, Item*)
|
eloqsql/sql/sql_window.cc
|
Frame_range_n_top(THD *thd,
SQL_I_List<ORDER> *partition_list,
SQL_I_List<ORDER> *order_list,
bool is_preceding_arg, Item *n_val_arg) :
cursor(thd, partition_list), n_val(n_val_arg), item_add(NULL),
is_preceding(is_preceding_arg)
{
DBUG_ASSERT(order_list->elements == 1);
Item *src_expr= order_list->first->item[0];
if (order_list->first->direction == ORDER::ORDER_ASC)
order_direction= 1;
else
order_direction= -1;
range_expr= (Cached_item_item*) new_Cached_item(thd, src_expr, FALSE);
bool use_minus= is_preceding;
if (order_direction == -1)
use_minus= !use_minus;
if (use_minus)
item_add= new (thd->mem_root) Item_func_minus(thd, src_expr, n_val);
else
item_add= new (thd->mem_root) Item_func_plus(thd, src_expr, n_val);
item_add->fix_fields(thd, &item_add);
}
|
O3
|
cpp
|
Frame_range_n_top::Frame_range_n_top(THD*, SQL_I_List<st_order>*, SQL_I_List<st_order>*, bool, Item*):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r12
movl %r8d, %r13d
movq %rcx, %rbx
movq %rsi, %r15
movq %rdi, %r14
leaq 0x8(%rdi), %rax
movl $0x0, 0x18(%rdi)
leaq 0xbd1f8f(%rip), %rcx # 0x14f1ae0
movq %rcx, 0x8(%rdi)
movq %rax, 0x10(%rdi)
movb $0x0, 0x20(%rdi)
leaq 0xad5dbc(%rip), %rax # 0x13f5920
movq %rax, (%rdi)
addq $0x28, %rdi
movq %rdi, -0x30(%rbp)
callq 0x92027a
movq %r12, 0xb8(%r14)
movq $0x0, 0xc0(%r14)
movb %r13b, 0xc8(%r14)
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rcx
xorl %edx, %edx
cmpl $0x1, 0x2c(%rax)
movq (%rcx), %r12
sete %dl
leal -0x1(%rdx,%rdx), %eax
movl %eax, 0xcc(%r14)
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x9b4a80
movq %rax, 0xb0(%r14)
cmpl $-0x1, 0xcc(%r14)
sete %al
movq 0x28(%r15), %rdi
cmpb %al, 0xc8(%r14)
jne 0x91fc24
movl $0xb0, %esi
callq 0xcf03ef
movq %rax, %r13
movq 0xb8(%r14), %rcx
movq %rax, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x7d6262
leaq 0xc2d0ff(%rip), %rax # 0x154cd00
movq %rax, 0x10(%r13)
movabsq $0x100000005, %rax # imm = 0x100000005
movq %rax, 0x18(%r13)
leaq 0xb23226(%rip), %rax # 0x1442e40
addq $0x10, %rax
movq %rax, (%r13)
jmp 0x91fc76
movl $0xb8, %esi
callq 0xcf03ef
movq %rax, %r13
movq 0xb8(%r14), %rcx
movq %rax, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x7d6262
leaq 0xc2d0b3(%rip), %rax # 0x154cd00
movq %rax, 0x10(%r13)
movabsq $0x100000005, %rax # imm = 0x100000005
movq %rax, 0x18(%r13)
leaq 0xb23882(%rip), %rax # 0x14434e8
addq $0x10, %rax
movq %rax, (%r13)
movb $0x0, 0xb0(%r13)
addq $0xc0, %r14
movq %r13, (%r14)
movq (%r13), %rax
movq %r13, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq *0x48(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x91fcaf
jmp 0x91fcaf
jmp 0x91fca5
movq %rax, %rdi
callq 0x6da8ee
jmp 0x91fcaf
movq %rax, %r14
movq -0x30(%rbp), %rdi
callq 0x9202b6
movq %r14, %rdi
callq 0x629200
nop
|
_ZN17Frame_range_n_topC2EP3THDP10SQL_I_ListI8st_orderES5_bP4Item:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12, r9
mov r13d, r8d
mov rbx, rcx
mov r15, rsi
mov r14, rdi
lea rax, [rdi+8]
mov dword ptr [rdi+18h], 0
lea rcx, end_of_list
mov [rdi+8], rcx
mov [rdi+10h], rax
mov byte ptr [rdi+20h], 0
lea rax, off_13F5920
mov [rdi], rax
add rdi, 28h ; '('
mov [rbp+var_30], rdi
call _ZN21Partition_read_cursorC2EP3THDP10SQL_I_ListI8st_orderE; Partition_read_cursor::Partition_read_cursor(THD *,SQL_I_List<st_order> *)
mov [r14+0B8h], r12
mov qword ptr [r14+0C0h], 0
mov [r14+0C8h], r13b
mov rax, [rbx+8]
mov rcx, [rax+8]
xor edx, edx
cmp dword ptr [rax+2Ch], 1
mov r12, [rcx]
setz dl
lea eax, [rdx+rdx-1]
mov [r14+0CCh], eax
mov rdi, r15; THD *
mov rsi, r12; Item *
xor edx, edx; bool
call _Z15new_Cached_itemP3THDP4Itemb; new_Cached_item(THD *,Item *,bool)
mov [r14+0B0h], rax
cmp dword ptr [r14+0CCh], 0FFFFFFFFh
setz al
mov rdi, [r15+28h]
cmp [r14+0C8h], al
jnz short loc_91FC24
mov esi, 0B0h
call alloc_root
mov r13, rax
mov rcx, [r14+0B8h]; Item *
mov rdi, rax; this
mov rsi, r15; THD *
mov rdx, r12; Item *
call _ZN16Item_hybrid_funcC2EP3THDP4ItemS3_; Item_hybrid_func::Item_hybrid_func(THD *,Item *,Item *)
lea rax, my_charset_latin1
mov [r13+10h], rax
mov rax, 100000005h
mov [r13+18h], rax
lea rax, _ZTV14Item_func_plus; `vtable for'Item_func_plus
add rax, 10h
mov [r13+0], rax
jmp short loc_91FC76
loc_91FC24:
mov esi, 0B8h
call alloc_root
mov r13, rax
mov rcx, [r14+0B8h]; Item *
mov rdi, rax; this
mov rsi, r15; THD *
mov rdx, r12; Item *
call _ZN16Item_hybrid_funcC2EP3THDP4ItemS3_; Item_hybrid_func::Item_hybrid_func(THD *,Item *,Item *)
lea rax, my_charset_latin1
mov [r13+10h], rax
mov rax, 100000005h
mov [r13+18h], rax
lea rax, _ZTV15Item_func_minus; `vtable for'Item_func_minus
add rax, 10h
mov [r13+0], rax
mov byte ptr [r13+0B0h], 0
loc_91FC76:
add r14, 0C0h
mov [r14], r13
mov rax, [r13+0]
mov rdi, r13
mov rsi, r15
mov rdx, r14
call qword ptr [rax+48h]
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_91FCAF
jmp short loc_91FCAF
jmp short $+2
loc_91FCA5:
mov rdi, rax
call __clang_call_terminate
jmp short $+2
loc_91FCAF:
mov r14, rax
mov rdi, [rbp+var_30]; this
call _ZN21Partition_read_cursorD2Ev; Partition_read_cursor::~Partition_read_cursor()
mov rdi, r14
call __Unwind_Resume
|
long long Frame_range_n_top::Frame_range_n_top(
long long a1,
THD *a2,
long long a3,
long long a4,
char a5,
long long a6)
{
long long v10; // rax
Item *v11; // r12
long long v12; // rdi
long long v13; // r13
long long *v14; // r14
*(_DWORD *)(a1 + 24) = 0;
*(_QWORD *)(a1 + 8) = &end_of_list;
*(_QWORD *)(a1 + 16) = a1 + 8;
*(_BYTE *)(a1 + 32) = 0;
*(_QWORD *)a1 = &off_13F5920;
Partition_read_cursor::Partition_read_cursor(a1 + 40, a2, a3);
*(_QWORD *)(a1 + 184) = a6;
*(_QWORD *)(a1 + 192) = 0LL;
*(_BYTE *)(a1 + 200) = a5;
v10 = *(_QWORD *)(a4 + 8);
v11 = **(Item ***)(v10 + 8);
*(_DWORD *)(a1 + 204) = 2 * (*(_DWORD *)(v10 + 44) == 1) - 1;
*(_QWORD *)(a1 + 176) = new_Cached_item(a2, v11, 0);
v12 = *((_QWORD *)a2 + 5);
if ( *(_BYTE *)(a1 + 200) == (*(_DWORD *)(a1 + 204) == -1) )
{
v13 = alloc_root(v12, 176LL);
Item_hybrid_func::Item_hybrid_func((Item_hybrid_func *)v13, a2, v11, *(Item **)(a1 + 184));
*(_QWORD *)(v13 + 16) = &my_charset_latin1;
*(_QWORD *)(v13 + 24) = 0x100000005LL;
*(_QWORD *)v13 = &`vtable for'Item_func_plus + 2;
}
else
{
v13 = alloc_root(v12, 184LL);
Item_hybrid_func::Item_hybrid_func((Item_hybrid_func *)v13, a2, v11, *(Item **)(a1 + 184));
*(_QWORD *)(v13 + 16) = &my_charset_latin1;
*(_QWORD *)(v13 + 24) = 0x100000005LL;
*(_QWORD *)v13 = &`vtable for'Item_func_minus + 2;
*(_BYTE *)(v13 + 176) = 0;
}
v14 = (long long *)(a1 + 192);
*v14 = v13;
return (*(long long ( **)(long long, THD *, long long *))(*(_QWORD *)v13 + 72LL))(v13, a2, v14);
}
| |||
10,736 |
reaction::ObserverGraph::checkDependency(std::shared_ptr<reaction::ObserverDataNode>, std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>, std::hash<std::shared_ptr<reaction::ObserverDataNode>>, std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>, std::allocator<std::shared_ptr<reaction::ObserverDataNode>>> const&, std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>, std::hash<std::shared_ptr<reaction::ObserverDataNode>>, std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>, std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>&)
|
reaction/include/reaction/observerNode.h
|
bool checkDependency(DataNodePtr node, const std::unordered_set<DataNodePtr> &targetDependencies, std::unordered_set<DataNodePtr> &visited) {
if (visited.count(node)) return false;
visited.insert(node);
if (targetDependencies.count(node)) return true;
for (auto neighbor : m_dataDependents[node]) {
if (checkDependency(neighbor, targetDependencies, visited)) return true;
}
return false;
}
|
O3
|
c
|
reaction::ObserverGraph::checkDependency(std::shared_ptr<reaction::ObserverDataNode>, std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>, std::hash<std::shared_ptr<reaction::ObserverDataNode>>, std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>, std::allocator<std::shared_ptr<reaction::ObserverDataNode>>> const&, std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>, std::hash<std::shared_ptr<reaction::ObserverDataNode>>, std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>, std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r15
movq %rcx, %rdi
callq 0x8454
testq %rax, %rax
je 0x8971
xorl %ebp, %ebp
jmp 0x89a1
leaq 0x20(%rsp), %rdx
movq %rbx, (%rdx)
movq %rbx, 0x10(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x8e46
movq %r14, 0x18(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x8454
movb $0x1, %bpl
testq %rax, %rax
je 0x89b2
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
movq %r12, %rsi
callq 0x705e
movq %rax, %r12
addq $0x10, %r12
movq 0xa5f5(%rip), %rbx # 0x12fc0
movq (%r12), %r12
testq %r12, %r12
setne %bpl
je 0x89a1
movq 0x8(%r12), %rax
movq 0x10(%r12), %r13
testq %r13, %r13
je 0x89fb
cmpb $0x0, (%rbx)
je 0x8a0a
incl 0x8(%r13)
movq %rax, (%rsp)
movq %r13, 0x8(%rsp)
jmp 0x8a1d
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
jmp 0x8a21
lock
incl 0x8(%r13)
cmpb $0x0, (%rbx)
movq %rax, (%rsp)
movq %r13, 0x8(%rsp)
je 0x8a69
incl 0x8(%r13)
movq %r15, %r14
movq %r15, %rdi
movq %rsp, %rsi
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rcx
callq 0x8946
movl %eax, %r15d
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x8a4b
callq 0x592e
testq %r13, %r13
je 0x8a58
movq %r13, %rdi
callq 0x592e
testb %r15b, %r15b
movq %r14, %r15
je 0x89cb
jmp 0x89a1
lock
incl 0x8(%r13)
jmp 0x8a21
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x8a82
callq 0x592e
testq %r13, %r13
je 0x8a8f
movq %r13, %rdi
callq 0x592e
movq %rbx, %rdi
callq 0x2270
nop
|
_ZN8reaction13ObserverGraph15checkDependencyESt10shared_ptrINS_16ObserverDataNodeEERKSt13unordered_setIS3_St4hashIS3_ESt8equal_toIS3_ESaIS3_EERSA_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov rbx, rcx
mov r14, rdx
mov r12, rsi
mov r15, rdi
mov rdi, rcx
call _ZNKSt10_HashtableISt10shared_ptrIN8reaction16ObserverDataNodeEES3_SaIS3_ENSt8__detail9_IdentityESt8equal_toIS3_ESt4hashIS3_ENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb1ELb1EEEE4findERKS3_; std::_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::shared_ptr<reaction::ObserverDataNode>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>::find(std::shared_ptr<reaction::ObserverDataNode> const&)
test rax, rax
jz short loc_8971
xor ebp, ebp
jmp short loc_89A1
loc_8971:
lea rdx, [rsp+58h+var_38]
mov [rdx], rbx
mov [rsp+58h+var_48], rbx
mov rdi, rbx
mov rsi, r12
call _ZNSt10_HashtableISt10shared_ptrIN8reaction16ObserverDataNodeEES3_SaIS3_ENSt8__detail9_IdentityESt8equal_toIS3_ESt4hashIS3_ENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb1ELb1EEEE9_M_insertIRKS3_NS5_10_AllocNodeISaINS5_10_Hash_nodeIS3_Lb0EEEEEEEESt4pairINS5_14_Node_iteratorIS3_Lb1ELb0EEEbEOT_RKT0_St17integral_constantIbLb1EE; std::_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::shared_ptr<reaction::ObserverDataNode>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>::_M_insert<std::shared_ptr<reaction::ObserverDataNode> const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::shared_ptr<reaction::ObserverDataNode>,false>>>>(std::shared_ptr<reaction::ObserverDataNode> const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::shared_ptr<reaction::ObserverDataNode>,false>>> const&,std::integral_constant<bool,true>)
mov [rsp+58h+var_40], r14
mov rdi, r14
mov rsi, r12
call _ZNKSt10_HashtableISt10shared_ptrIN8reaction16ObserverDataNodeEES3_SaIS3_ENSt8__detail9_IdentityESt8equal_toIS3_ESt4hashIS3_ENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb1ELb1EEEE4findERKS3_; std::_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::shared_ptr<reaction::ObserverDataNode>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>::find(std::shared_ptr<reaction::ObserverDataNode> const&)
mov bpl, 1
test rax, rax
jz short loc_89B2
loc_89A1:
mov eax, ebp
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_89B2:
mov rdi, r15
mov rsi, r12
call _ZNSt8__detail9_Map_baseISt10shared_ptrIN8reaction16ObserverDataNodeEESt4pairIKS4_St13unordered_setIS4_St4hashIS4_ESt8equal_toIS4_ESaIS4_EEESaISE_ENS_10_Select1stESB_S9_NS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixERS6_; std::__detail::_Map_base<std::shared_ptr<reaction::ObserverDataNode>,std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>>>,std::__detail::_Select1st,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](std::shared_ptr<reaction::ObserverDataNode> const&)
mov r12, rax
add r12, 10h
mov rbx, cs:__libc_single_threaded_ptr
loc_89CB:
mov r12, [r12]
test r12, r12
setnz bpl
jz short loc_89A1
mov rax, [r12+8]
mov r13, [r12+10h]
test r13, r13
jz short loc_89FB
cmp byte ptr [rbx], 0
jz short loc_8A0A
inc dword ptr [r13+8]
mov [rsp+58h+var_58], rax
mov [rsp+58h+var_50], r13
jmp short loc_8A1D
loc_89FB:
mov [rsp+58h+var_58], rax
mov [rsp+58h+var_50], 0
jmp short loc_8A21
loc_8A0A:
lock inc dword ptr [r13+8]
cmp byte ptr [rbx], 0
mov [rsp+58h+var_58], rax
mov [rsp+58h+var_50], r13
jz short loc_8A69
loc_8A1D:
inc dword ptr [r13+8]
loc_8A21:
mov r14, r15
mov rdi, r15
mov rsi, rsp
mov rdx, [rsp+58h+var_40]
mov rcx, [rsp+58h+var_48]
call _ZN8reaction13ObserverGraph15checkDependencyESt10shared_ptrINS_16ObserverDataNodeEERKSt13unordered_setIS3_St4hashIS3_ESt8equal_toIS3_ESaIS3_EERSA_; reaction::ObserverGraph::checkDependency(std::shared_ptr<reaction::ObserverDataNode>,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>> const&,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>&)
mov r15d, eax
mov rdi, [rsp+58h+var_50]
test rdi, rdi
jz short loc_8A4B
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8A4B:
test r13, r13
jz short loc_8A58
mov rdi, r13
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8A58:
test r15b, r15b
mov r15, r14
jz loc_89CB
jmp loc_89A1
loc_8A69:
lock inc dword ptr [r13+8]
jmp short loc_8A21
mov rbx, rax
mov rdi, [rsp+arg_0]
test rdi, rdi
jz short loc_8A82
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8A82:
test r13, r13
jz short loc_8A8F
mov rdi, r13
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8A8F:
mov rdi, rbx
call __Unwind_Resume
|
long long reaction::ObserverGraph::checkDependency(
unsigned long long *a1,
long long *a2,
long long *a3,
long long *a4)
{
unsigned int v4; // ebp
unsigned long long *v7; // r15
int v8; // ecx
int v9; // r8d
int v10; // r9d
int v12; // r8d
int v13; // r9d
_QWORD *v14; // r12
long long v15; // rax
volatile signed __int32 *v16; // r13
unsigned long long *v17; // r14
char v18; // r15
bool v19; // zf
long long v20; // [rsp+0h] [rbp-58h] BYREF
volatile signed __int32 *v21; // [rsp+8h] [rbp-50h]
long long *v22; // [rsp+10h] [rbp-48h]
long long *v23; // [rsp+18h] [rbp-40h]
long long *v24; // [rsp+20h] [rbp-38h] BYREF
v7 = a1;
if ( !std::_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::shared_ptr<reaction::ObserverDataNode>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>::find(
a4,
a2) )
{
v24 = a4;
v22 = a4;
std::_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::shared_ptr<reaction::ObserverDataNode>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>::_M_insert<std::shared_ptr<reaction::ObserverDataNode> const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::shared_ptr<reaction::ObserverDataNode>,false>>>>(
(_DWORD)a4,
(_DWORD)a2,
(unsigned int)&v24,
v8,
v9,
v10);
v23 = a3;
LOBYTE(v4) = 1;
if ( std::_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::shared_ptr<reaction::ObserverDataNode>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>::find(
a3,
a2) )
{
return v4;
}
v14 = std::__detail::_Map_base<std::shared_ptr<reaction::ObserverDataNode>,std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode> const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>>>>,std::__detail::_Select1st,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](
a1,
(unsigned long long *)a2)
+ 2;
while ( 1 )
{
v14 = (_QWORD *)*v14;
LOBYTE(v4) = v14 != 0LL;
if ( !v14 )
return v4;
v15 = v14[1];
v16 = (volatile signed __int32 *)v14[2];
if ( v16 )
{
if ( _libc_single_threaded )
{
++*((_DWORD *)v16 + 2);
v20 = v15;
v21 = v16;
}
else
{
_InterlockedIncrement(v16 + 2);
v20 = v15;
v21 = v16;
if ( !_libc_single_threaded )
{
_InterlockedIncrement(v16 + 2);
goto LABEL_13;
}
}
++*((_DWORD *)v16 + 2);
}
else
{
v20 = v14[1];
v21 = 0LL;
}
LABEL_13:
v17 = v7;
v18 = reaction::ObserverGraph::checkDependency(
(_DWORD)v7,
(unsigned int)&v20,
(_DWORD)v23,
(_DWORD)v22,
v12,
v13,
v20);
if ( v21 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v21);
if ( v16 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v16);
v19 = v18 == 0;
v7 = v17;
if ( !v19 )
return v4;
}
}
return 0;
}
|
checkDependency:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV RBX,RCX
MOV R14,RDX
MOV R12,RSI
MOV R15,RDI
MOV RDI,RCX
CALL 0x00108454
TEST RAX,RAX
JZ 0x00108971
XOR EBP,EBP
JMP 0x001089a1
LAB_00108971:
LEA RDX,[RSP + 0x20]
MOV qword ptr [RDX],RBX
MOV qword ptr [RSP + 0x10],RBX
MOV RDI,RBX
MOV RSI,R12
CALL 0x00108e46
MOV qword ptr [RSP + 0x18],R14
MOV RDI,R14
MOV RSI,R12
CALL 0x00108454
MOV BPL,0x1
TEST RAX,RAX
JZ 0x001089b2
LAB_001089a1:
MOV EAX,EBP
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001089b2:
MOV RDI,R15
MOV RSI,R12
CALL 0x0010705e
MOV R12,RAX
ADD R12,0x10
MOV RBX,qword ptr [0x00112fc0]
LAB_001089cb:
MOV R12,qword ptr [R12]
TEST R12,R12
SETNZ BPL
JZ 0x001089a1
MOV RAX,qword ptr [R12 + 0x8]
MOV R13,qword ptr [R12 + 0x10]
TEST R13,R13
JZ 0x001089fb
CMP byte ptr [RBX],0x0
JZ 0x00108a0a
INC dword ptr [R13 + 0x8]
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x8],R13
JMP 0x00108a1d
LAB_001089fb:
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x8],0x0
JMP 0x00108a21
LAB_00108a0a:
INC.LOCK dword ptr [R13 + 0x8]
CMP byte ptr [RBX],0x0
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x8],R13
JZ 0x00108a69
LAB_00108a1d:
INC dword ptr [R13 + 0x8]
LAB_00108a21:
MOV R14,R15
MOV RDI,R15
MOV RSI,RSP
MOV RDX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x10]
CALL 0x00108946
LAB_00108a39:
MOV R15D,EAX
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x00108a4b
CALL 0x0010592e
LAB_00108a4b:
TEST R13,R13
JZ 0x00108a58
MOV RDI,R13
CALL 0x0010592e
LAB_00108a58:
TEST R15B,R15B
MOV R15,R14
JZ 0x001089cb
JMP 0x001089a1
LAB_00108a69:
INC.LOCK dword ptr [R13 + 0x8]
JMP 0x00108a21
|
/* reaction::ObserverGraph::checkDependency(std::shared_ptr<reaction::ObserverDataNode>,
std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,
std::hash<std::shared_ptr<reaction::ObserverDataNode> >,
std::equal_to<std::shared_ptr<reaction::ObserverDataNode> >,
std::allocator<std::shared_ptr<reaction::ObserverDataNode> > > const&,
std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,
std::hash<std::shared_ptr<reaction::ObserverDataNode> >,
std::equal_to<std::shared_ptr<reaction::ObserverDataNode> >,
std::allocator<std::shared_ptr<reaction::ObserverDataNode> > >&) */
ulong __thiscall
reaction::ObserverGraph::checkDependency
(ObserverGraph *this,shared_ptr *param_2,
_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::shared_ptr<reaction::ObserverDataNode>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>
*param_3,_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::shared_ptr<reaction::ObserverDataNode>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>
*param_4)
{
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this_00;
int *puVar1;
char cVar2;
long lVar3;
int8 unaff_RBP;
ulong uVar4;
long *plVar5;
int8 local_58;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_50;
_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::shared_ptr<reaction::ObserverDataNode>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>
*local_48;
_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::shared_ptr<reaction::ObserverDataNode>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>
*local_40;
_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::shared_ptr<reaction::ObserverDataNode>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>
*local_38;
lVar3 = std::
_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::shared_ptr<reaction::ObserverDataNode>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>
::find(param_4,param_2);
if (lVar3 == 0) {
local_48 = param_4;
local_38 = param_4;
std::
_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::shared_ptr<reaction::ObserverDataNode>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>
::
_M_insert<std::shared_ptr<reaction::ObserverDataNode>const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::shared_ptr<reaction::ObserverDataNode>,false>>>>
(param_4,param_2);
local_40 = param_3;
lVar3 = std::
_Hashtable<std::shared_ptr<reaction::ObserverDataNode>,std::shared_ptr<reaction::ObserverDataNode>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Identity,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>
::find(param_3,param_2);
uVar4 = CONCAT71((int7)((ulong)unaff_RBP >> 8),1);
if (lVar3 == 0) {
lVar3 = std::__detail::
_Map_base<std::shared_ptr<reaction::ObserverDataNode>,std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>>>,std::__detail::_Select1st,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>
::operator[]((_Map_base<std::shared_ptr<reaction::ObserverDataNode>,std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>>,std::allocator<std::pair<std::shared_ptr<reaction::ObserverDataNode>const,std::unordered_set<std::shared_ptr<reaction::ObserverDataNode>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::allocator<std::shared_ptr<reaction::ObserverDataNode>>>>>,std::__detail::_Select1st,std::equal_to<std::shared_ptr<reaction::ObserverDataNode>>,std::hash<std::shared_ptr<reaction::ObserverDataNode>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>
*)this,param_2);
puVar1 = PTR___libc_single_threaded_00112fc0;
plVar5 = (long *)(lVar3 + 0x10);
do {
plVar5 = (long *)*plVar5;
uVar4 = CONCAT71((int7)(uVar4 >> 8),plVar5 != (long *)0x0);
if (plVar5 == (long *)0x0) break;
local_58 = plVar5[1];
this_00 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)plVar5[2];
if (this_00 == (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
local_50 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
}
else {
local_50 = this_00;
if (*puVar1 == '\0') {
LOCK();
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
UNLOCK();
if (*puVar1 == '\0') {
LOCK();
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
UNLOCK();
goto LAB_00108a21;
}
}
else {
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
}
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
}
LAB_00108a21:
/* try { // try from 00108a21 to 00108a38 has its CatchHandler @ 00108a70 */
cVar2 = checkDependency(this,&local_58,local_40,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 (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this_00);
}
} while (cVar2 == '\0');
}
}
else {
uVar4 = 0;
}
return uVar4 & 0xffffffff;
}
|
|
10,737 |
testing::Matcher<std::basic_string_view<char, std::char_traits<char>> const&>::Matcher(char const*)
|
seiftnesse[P]memoryallocator/build_O3/_deps/googletest-src/googletest/src/gtest-matchers.cc
|
Matcher<const internal::StringView&>::Matcher(const char* s) {
*this = Eq(std::string(s));
}
|
O3
|
cpp
|
testing::Matcher<std::basic_string_view<char, std::char_traits<char>> const&>::Matcher(char const*):
pushq %r15
pushq %r14
pushq %rbx
subq $0x60, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq 0x3fabc(%rip), %r14 # 0x59798
movq %r14, (%rdi)
leaq 0x40(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x34bfa
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0xf4a8
leaq 0x3fe33(%rip), %rax # 0x59b48
movq %rax, 0x28(%rsp)
movq $0x0, 0x38(%rsp)
leaq 0x3fef6(%rip), %rax # 0x59c20
movq %rax, 0x30(%rsp)
movl $0x28, %edi
callq 0x9490
movl $0x1, (%rax)
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x8(%rax)
movq 0x8(%rsp), %rdx
cmpq %r15, %rdx
je 0x19d63
movq %rdx, 0x8(%rax)
movq 0x18(%rsp), %rcx
movq %rcx, 0x18(%rax)
jmp 0x19d6a
movups (%r15), %xmm0
movups %xmm0, (%rcx)
movq 0x10(%rsp), %rcx
movq %rcx, 0x10(%rax)
movq %r15, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
leaq 0x28(%rsp), %rsi
movq %rax, 0x10(%rsi)
movq %r14, (%rsi)
movq %rbx, %rdi
callq 0x391ec
leaq 0x28(%rsp), %rdi
callq 0x3c6ac
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x19dbb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x94c0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x19dd6
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x94c0
addq $0x60, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x3c6ac
jmp 0x19df2
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x19e0e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x94c0
jmp 0x19e0e
movq %rax, %r14
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x19e2e
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x94c0
jmp 0x19e2e
movq %rax, %r14
movq %rbx, %rdi
callq 0x3c6ac
movq %r14, %rdi
callq 0x99a0
|
_ZN7testing7MatcherIRKSt17basic_string_viewIcSt11char_traitsIcEEEC2EPKc:
push r15
push r14
push rbx
sub rsp, 60h
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi+8], xmm0
lea r14, off_59798
mov [rdi], r14
lea rdi, [rsp+78h+var_38]
lea rdx, [rsp+78h+var_71]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea r15, [rsp+78h+var_60]
mov [r15-10h], r15
mov rsi, [rsp+78h+var_38]
mov rdx, [rsp+78h+var_30]
add rdx, rsi
lea rdi, [rsp+78h+var_70]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rax, off_59B48
mov [rsp+78h+var_50], rax
mov [rsp+78h+var_40], 0
lea rax, _ZZN7testing8internal11MatcherBaseIRKSt17basic_string_viewIcSt11char_traitsIcEEE9GetVTableINS8_11ValuePolicyINS0_9EqMatcherINSt7__cxx1112basic_stringIcS4_SaIcEEEEELb0EEEEEPKNS8_6VTableEvE7kVTable; testing::internal::MatcherBase<std::string_view const&>::GetVTable<testing::internal::MatcherBase<std::string_view const&>::ValuePolicy<testing::internal::EqMatcher<std::string>,false>>(void)::kVTable
mov [rsp+78h+var_48], rax
mov edi, 28h ; '('; unsigned __int64
call __Znwm; operator new(ulong)
mov dword ptr [rax], 1
mov rcx, rax
add rcx, 18h
mov [rax+8], rcx
mov rdx, [rsp+78h+var_70]
cmp rdx, r15
jz short loc_19D63
mov [rax+8], rdx
mov rcx, [rsp+78h+var_60]
mov [rax+18h], rcx
jmp short loc_19D6A
loc_19D63:
movups xmm0, xmmword ptr [r15]
movups xmmword ptr [rcx], xmm0
loc_19D6A:
mov rcx, [rsp+78h+var_68]
mov [rax+10h], rcx
mov [rsp+78h+var_70], r15
mov [rsp+78h+var_68], 0
mov byte ptr [rsp+78h+var_60], 0
lea rsi, [rsp+78h+var_50]
mov [rsi+10h], rax
mov [rsi], r14
mov rdi, rbx
call _ZN7testing8internal11MatcherBaseIRKSt17basic_string_viewIcSt11char_traitsIcEEEaSEOS8_; testing::internal::MatcherBase<std::string_view const&>::operator=(testing::internal::MatcherBase<std::string_view const&>&&)
lea rdi, [rsp+78h+var_50]
call _ZN7testing8internal11MatcherBaseIRKSt17basic_string_viewIcSt11char_traitsIcEEED2Ev; testing::internal::MatcherBase<std::string_view const&>::~MatcherBase()
mov rdi, [rsp+78h+var_70]; void *
cmp rdi, r15
jz short loc_19DBB
mov rsi, [rsp+78h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_19DBB:
lea rax, [rsp+78h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_19DD6
mov rsi, [rsp+78h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_19DD6:
add rsp, 60h
pop rbx
pop r14
pop r15
retn
mov r14, rax
lea rdi, [rsp+arg_20]
call _ZN7testing8internal11MatcherBaseIRKSt17basic_string_viewIcSt11char_traitsIcEEED2Ev; testing::internal::MatcherBase<std::string_view const&>::~MatcherBase()
jmp short loc_19DF2
mov r14, rax
loc_19DF2:
mov rdi, [rsp+arg_0]; void *
cmp rdi, r15
jz short loc_19E0E
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_19E0E
mov r14, rax
loc_19E0E:
lea rax, [rsp+arg_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_19E2E
mov rsi, [rsp+arg_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_19E2E
mov r14, rax
loc_19E2E:
mov rdi, rbx
call _ZN7testing8internal11MatcherBaseIRKSt17basic_string_viewIcSt11char_traitsIcEEED2Ev; testing::internal::MatcherBase<std::string_view const&>::~MatcherBase()
mov rdi, r14
call __Unwind_Resume
|
void testing::Matcher<std::string_view const&>::Matcher(long long a1, long long a2)
{
long long v2; // rax
char v3; // [rsp+7h] [rbp-71h] BYREF
void *v4; // [rsp+8h] [rbp-70h] BYREF
long long v5; // [rsp+10h] [rbp-68h]
__int128 v6; // [rsp+18h] [rbp-60h] BYREF
_QWORD v7[2]; // [rsp+28h] [rbp-50h] BYREF
long long v8; // [rsp+38h] [rbp-40h]
void *v9[2]; // [rsp+40h] [rbp-38h] BYREF
long long v10; // [rsp+50h] [rbp-28h] BYREF
*(_OWORD *)(a1 + 8) = 0LL;
*(_QWORD *)a1 = &off_59798;
std::string::basic_string<std::allocator<char>>(v9, a2, &v3);
v4 = &v6;
std::string::_M_construct<char *>((long long)&v4, (_BYTE *)v9[0], (long long)v9[0] + (unsigned long long)v9[1]);
v7[0] = &off_59B48;
v8 = 0LL;
v7[1] = testing::internal::MatcherBase<std::string_view const&>::GetVTable<testing::internal::MatcherBase<std::string_view const&>::ValuePolicy<testing::internal::EqMatcher<std::string>,false>>(void)::kVTable;
v2 = operator new(0x28uLL);
*(_DWORD *)v2 = 1;
*(_QWORD *)(v2 + 8) = v2 + 24;
if ( v4 == &v6 )
{
*(_OWORD *)(v2 + 24) = v6;
}
else
{
*(_QWORD *)(v2 + 8) = v4;
*(_QWORD *)(v2 + 24) = v6;
}
*(_QWORD *)(v2 + 16) = v5;
v4 = &v6;
v5 = 0LL;
LOBYTE(v6) = 0;
v8 = v2;
v7[0] = &off_59798;
testing::internal::MatcherBase<std::string_view const&>::operator=(a1);
testing::internal::MatcherBase<std::string_view const&>::~MatcherBase(v7);
if ( v4 != &v6 )
operator delete(v4, v6 + 1);
if ( v9[0] != &v10 )
operator delete(v9[0], v10 + 1);
}
|
Matcher:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x60
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x8],XMM0
LEA R14,[0x159798]
MOV qword ptr [RDI],R14
LAB_00119cdf:
LEA RDI,[RSP + 0x40]
LEA RDX,[RSP + 0x7]
CALL 0x00134bfa
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
ADD RDX,RSI
LAB_00119d04:
LEA RDI,[RSP + 0x8]
CALL 0x0010f4a8
LEA RAX,[0x159b48]
MOV qword ptr [RSP + 0x28],RAX
MOV qword ptr [RSP + 0x38],0x0
LEA RAX,[0x159c20]
MOV qword ptr [RSP + 0x30],RAX
LAB_00119d2f:
MOV EDI,0x28
CALL 0x00109490
MOV dword ptr [RAX],0x1
MOV RCX,RAX
ADD RCX,0x18
MOV qword ptr [RAX + 0x8],RCX
MOV RDX,qword ptr [RSP + 0x8]
CMP RDX,R15
JZ 0x00119d63
MOV qword ptr [RAX + 0x8],RDX
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RAX + 0x18],RCX
JMP 0x00119d6a
LAB_00119d63:
MOVUPS XMM0,xmmword ptr [R15]
MOVUPS xmmword ptr [RCX],XMM0
LAB_00119d6a:
MOV RCX,qword ptr [RSP + 0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV qword ptr [RSP + 0x8],R15
MOV qword ptr [RSP + 0x10],0x0
MOV byte ptr [RSP + 0x18],0x0
LEA RSI,[RSP + 0x28]
MOV qword ptr [RSI + 0x10],RAX
MOV qword ptr [RSI],R14
LAB_00119d92:
MOV RDI,RBX
CALL 0x001391ec
LAB_00119d9a:
LEA RDI,[RSP + 0x28]
CALL 0x0013c6ac
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R15
JZ 0x00119dbb
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001094c0
LAB_00119dbb:
LEA RAX,[RSP + 0x50]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00119dd6
MOV RSI,qword ptr [RSP + 0x50]
INC RSI
CALL 0x001094c0
LAB_00119dd6:
ADD RSP,0x60
POP RBX
POP R14
POP R15
RET
|
/* testing::Matcher<std::basic_string_view<char, std::char_traits<char> > const&>::Matcher(char
const*) */
void __thiscall
testing::Matcher<std::basic_string_view<char,std::char_traits<char>>const&>::Matcher
(Matcher<std::basic_string_view<char,std::char_traits<char>>const&> *this,char *param_1)
{
allocator local_71;
int1 *local_70;
int8 local_68;
int1 local_60;
int7 uStack_5f;
int8 uStack_58;
int **local_50;
int1 *local_48;
int4 *local_40;
long *local_38;
long local_30;
long local_28 [2];
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int ***)this = &PTR__MatcherBase_00159798;
/* try { // try from 00119cdf to 00119ced has its CatchHandler @ 00119e2b */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_38,param_1,&local_71);
/* try { // try from 00119d04 to 00119d0d has its CatchHandler @ 00119e0b */
local_70 = &local_60;
std::__cxx11::string::_M_construct<char*>(&local_70,local_38,local_30 + (long)local_38);
local_50 = &PTR__MatcherBase_00159b48;
local_40 = (int4 *)0x0;
local_48 = internal::MatcherBase<std::basic_string_view<char,std::char_traits<char>>const&>::
GetVTable<testing::internal::MatcherBase<std::basic_string_view<char,std::char_traits<char>>const&>::ValuePolicy<testing::internal::EqMatcher<std::__cxx11::string>,false>>()
::kVTable;
/* try { // try from 00119d2f to 00119d38 has its CatchHandler @ 00119def */
local_40 = (int4 *)operator_new(0x28);
*local_40 = 1;
*(int4 **)(local_40 + 2) = local_40 + 6;
if (local_70 == &local_60) {
*(ulong *)(local_40 + 6) = CONCAT71(uStack_5f,local_60);
*(int8 *)(local_40 + 8) = uStack_58;
}
else {
*(int1 **)(local_40 + 2) = local_70;
*(ulong *)(local_40 + 6) = CONCAT71(uStack_5f,local_60);
}
*(int8 *)(local_40 + 4) = local_68;
local_68 = 0;
local_60 = 0;
local_50 = &PTR__MatcherBase_00159798;
local_70 = &local_60;
/* try { // try from 00119d92 to 00119d99 has its CatchHandler @ 00119de0 */
internal::MatcherBase<std::basic_string_view<char,std::char_traits<char>>const&>::operator=
((MatcherBase<std::basic_string_view<char,std::char_traits<char>>const&> *)this,
(MatcherBase *)&local_50);
internal::MatcherBase<std::basic_string_view<char,std::char_traits<char>>const&>::~MatcherBase
((MatcherBase<std::basic_string_view<char,std::char_traits<char>>const&> *)&local_50);
if (local_70 != &local_60) {
operator_delete(local_70,CONCAT71(uStack_5f,local_60) + 1);
}
if (local_38 != local_28) {
operator_delete(local_38,local_28[0] + 1);
}
return;
}
|
|
10,738 |
LefDefParser::defiComponentMaskShiftLayer::addMaskShiftLayer(char const*)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiComponent.cpp
|
void defiComponentMaskShiftLayer::addMaskShiftLayer(const char* layer) {
int len = strlen(layer) + 1;
if (numLayers_ == layersAllocated_)
bumpLayers(numLayers_ * 2);
layers_[numLayers_] = (char*)malloc(len);
strcpy(layers_[numLayers_], defData->DEFCASE(layer));
(numLayers_)++;
}
|
O0
|
cpp
|
LefDefParser::defiComponentMaskShiftLayer::addMaskShiftLayer(char const*):
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rdi
callq 0x70e0
movq 0x8(%rsp), %rcx
addq $0x1, %rax
movl %eax, 0x14(%rsp)
movl 0x4(%rcx), %eax
cmpl (%rcx), %eax
jne 0x16e45
movq 0x8(%rsp), %rdi
movl 0x4(%rdi), %esi
shll %esi
callq 0x16d60
movslq 0x14(%rsp), %rdi
callq 0x72d0
movq %rax, %rsi
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rcx
movslq 0x4(%rax), %rdx
movq %rsi, (%rcx,%rdx,8)
movq 0x8(%rax), %rcx
movslq 0x4(%rax), %rdx
movq (%rcx,%rdx,8), %rcx
movq %rcx, (%rsp)
movq 0x10(%rax), %rdi
movq 0x18(%rsp), %rsi
callq 0x27ed0
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x7220
movq 0x8(%rsp), %rax
movl 0x4(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x4(%rax)
addq $0x28, %rsp
retq
|
_ZN12LefDefParser27defiComponentMaskShiftLayer17addMaskShiftLayerEPKc:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov rax, [rsp+28h+var_8]
mov [rsp+28h+var_20], rax
mov rdi, [rsp+28h+var_10]
call _strlen
mov rcx, [rsp+28h+var_20]
add rax, 1
mov [rsp+28h+var_14], eax
mov eax, [rcx+4]
cmp eax, [rcx]
jnz short loc_16E45
mov rdi, [rsp+28h+var_20]; this
mov esi, [rdi+4]
shl esi, 1; int
call _ZN12LefDefParser27defiComponentMaskShiftLayer10bumpLayersEi; LefDefParser::defiComponentMaskShiftLayer::bumpLayers(int)
loc_16E45:
movsxd rdi, [rsp+28h+var_14]
call _malloc
mov rsi, rax
mov rax, [rsp+28h+var_20]
mov rcx, [rax+8]
movsxd rdx, dword ptr [rax+4]
mov [rcx+rdx*8], rsi
mov rcx, [rax+8]
movsxd rdx, dword ptr [rax+4]
mov rcx, [rcx+rdx*8]
mov [rsp+28h+var_28], rcx
mov rdi, [rax+10h]; this
mov rsi, [rsp+28h+var_10]; char *
call _ZN12LefDefParser8defrData7DEFCASEEPKc; LefDefParser::defrData::DEFCASE(char const*)
mov rdi, [rsp+28h+var_28]
mov rsi, rax
call _strcpy
mov rax, [rsp+28h+var_20]
mov ecx, [rax+4]
add ecx, 1
mov [rax+4], ecx
add rsp, 28h
retn
|
LefDefParser::defrData ** LefDefParser::defiComponentMaskShiftLayer::addMaskShiftLayer(
LefDefParser::defrData **this,
const char *a2)
{
long long v2; // rax
long long v3; // rdx
LefDefParser::defrData **result; // rax
long long v5; // [rsp+0h] [rbp-28h]
int v6; // [rsp+14h] [rbp-14h]
v6 = strlen(a2) + 1;
if ( *((_DWORD *)this + 1) == *(_DWORD *)this )
LefDefParser::defiComponentMaskShiftLayer::bumpLayers(
(LefDefParser::defiComponentMaskShiftLayer *)this,
2 * *((_DWORD *)this + 1));
*((_QWORD *)this[1] + *((int *)this + 1)) = malloc(v6);
v5 = *((_QWORD *)this[1] + *((int *)this + 1));
v2 = LefDefParser::defrData::DEFCASE(this[2], a2);
strcpy(v5, v2, v3);
result = this;
++*((_DWORD *)this + 1);
return result;
}
|
addMaskShiftLayer:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001070e0
MOV RCX,qword ptr [RSP + 0x8]
ADD RAX,0x1
MOV dword ptr [RSP + 0x14],EAX
MOV EAX,dword ptr [RCX + 0x4]
CMP EAX,dword ptr [RCX]
JNZ 0x00116e45
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,dword ptr [RDI + 0x4]
SHL ESI,0x1
CALL 0x00116d60
LAB_00116e45:
MOVSXD RDI,dword ptr [RSP + 0x14]
CALL 0x001072d0
MOV RSI,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RAX + 0x8]
MOVSXD RDX,dword ptr [RAX + 0x4]
MOV qword ptr [RCX + RDX*0x8],RSI
MOV RCX,qword ptr [RAX + 0x8]
MOVSXD RDX,dword ptr [RAX + 0x4]
MOV RCX,qword ptr [RCX + RDX*0x8]
MOV qword ptr [RSP],RCX
MOV RDI,qword ptr [RAX + 0x10]
MOV RSI,qword ptr [RSP + 0x18]
CALL 0x00127ed0
MOV RDI,qword ptr [RSP]
MOV RSI,RAX
CALL 0x00107220
MOV RAX,qword ptr [RSP + 0x8]
MOV ECX,dword ptr [RAX + 0x4]
ADD ECX,0x1
MOV dword ptr [RAX + 0x4],ECX
ADD RSP,0x28
RET
|
/* LefDefParser::defiComponentMaskShiftLayer::addMaskShiftLayer(char const*) */
void __thiscall
LefDefParser::defiComponentMaskShiftLayer::addMaskShiftLayer
(defiComponentMaskShiftLayer *this,char *param_1)
{
char *__dest;
size_t sVar1;
void *pvVar2;
char *__src;
sVar1 = strlen(param_1);
if (*(int *)(this + 4) == *(int *)this) {
bumpLayers(this,*(int *)(this + 4) << 1);
}
pvVar2 = malloc((long)((int)sVar1 + 1));
*(void **)(*(long *)(this + 8) + (long)*(int *)(this + 4) * 8) = pvVar2;
__dest = *(char **)(*(long *)(this + 8) + (long)*(int *)(this + 4) * 8);
__src = (char *)defrData::DEFCASE(*(defrData **)(this + 0x10),param_1);
strcpy(__dest,__src);
*(int *)(this + 4) = *(int *)(this + 4) + 1;
return;
}
|
|
10,739 |
my_b_seq_read
|
eloqsql/mysys/mf_iocache.c
|
static int _my_b_seq_read(IO_CACHE *info, uchar *Buffer, size_t Count)
{
size_t length, diff_length, save_count, max_length;
my_off_t pos_in_file;
save_count=Count;
lock_append_buffer(info);
/* pos_in_file always point on where info->buffer was read */
if ((pos_in_file=info->pos_in_file +
(size_t) (info->read_end - info->buffer)) >= info->end_of_file)
goto read_append_buffer;
/*
With read-append cache we must always do a seek before we read,
because the write could have moved the file pointer astray
*/
if (mysql_file_seek(info->file, pos_in_file, MY_SEEK_SET, MYF(0)) == MY_FILEPOS_ERROR)
{
info->error= -1;
unlock_append_buffer(info);
return (1);
}
info->seek_not_done=0;
diff_length= (size_t) (pos_in_file & (IO_SIZE-1));
/* now the second stage begins - read from file descriptor */
if (Count >= (size_t) (IO_SIZE+(IO_SIZE-diff_length)))
{
/* Fill first intern buffer */
size_t read_length;
length= IO_ROUND_DN(Count) - diff_length;
if ((read_length= mysql_file_read(info->file,Buffer, length,
info->myflags)) == (size_t) -1)
{
info->error= -1;
unlock_append_buffer(info);
return 1;
}
Count-=read_length;
Buffer+=read_length;
pos_in_file+=read_length;
if (read_length != length)
{
/*
We only got part of data; Read the rest of the data from the
write buffer
*/
goto read_append_buffer;
}
diff_length=0;
}
max_length= info->read_length-diff_length;
if (max_length > (info->end_of_file - pos_in_file))
max_length= (size_t) (info->end_of_file - pos_in_file);
if (!max_length)
{
if (Count)
goto read_append_buffer;
length=0; /* Didn't read any more chars */
}
else
{
length= mysql_file_read(info->file,info->buffer, max_length, info->myflags);
if (length == (size_t) -1)
{
info->error= -1;
unlock_append_buffer(info);
return 1;
}
if (length < Count)
{
memcpy(Buffer, info->buffer, length);
Count -= length;
Buffer += length;
/*
added the line below to make
DBUG_ASSERT(pos_in_file==info->end_of_file) pass.
otherwise this does not appear to be needed
*/
pos_in_file += length;
goto read_append_buffer;
}
}
unlock_append_buffer(info);
info->read_pos=info->buffer+Count;
info->read_end=info->buffer+length;
info->pos_in_file=pos_in_file;
memcpy(Buffer,info->buffer,(size_t) Count);
return 0;
read_append_buffer:
/*
Read data from the current write buffer.
Count should never be == 0 here (The code will work even if count is 0)
*/
{
/* First copy the data to Count */
size_t len_in_buff = (size_t) (info->write_pos - info->append_read_pos);
size_t copy_len;
size_t transfer_len;
DBUG_ASSERT(info->append_read_pos <= info->write_pos);
copy_len=MY_MIN(Count, len_in_buff);
memcpy(Buffer, info->append_read_pos, copy_len);
info->append_read_pos += copy_len;
Count -= copy_len;
if (Count)
info->error= (int) (save_count - Count);
/* Fill read buffer with data from write buffer */
memcpy(info->buffer, info->append_read_pos,
(size_t) (transfer_len=len_in_buff - copy_len));
info->read_pos= info->buffer;
info->read_end= info->buffer+transfer_len;
info->append_read_pos=info->write_pos;
info->pos_in_file=pos_in_file+copy_len;
info->end_of_file+=len_in_buff;
}
unlock_append_buffer(info);
return Count ? 1 : 0;
}
|
O3
|
c
|
my_b_seq_read:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r12
movq %rsi, -0x40(%rbp)
movq %rdi, %r14
leaq 0x50(%rdi), %r15
cmpq $0x0, 0x90(%rdi)
jne 0x96453
movq %r15, %rdi
callq 0x29220
movq 0x18(%r14), %r13
subq 0x20(%r14), %r13
addq (%r14), %r13
cmpq 0x8(%r14), %r13
jae 0x961cf
movl 0xd4(%r14), %ebx
leaq 0x2efea5(%rip), %rax # 0x386010
movq (%rax), %rax
leaq -0xa8(%rbp), %rdi
movl %ebx, %esi
movl $0x8, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x96481
movl %ebx, %edi
movq %r13, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xa06f0
cmpq $-0x1, %rax
je 0x963b6
movl $0x0, 0xe0(%r14)
movl %r13d, %eax
andl $0xfff, %eax # imm = 0xFFF
movl $0x2000, %ecx # imm = 0x2000
subq %rax, %rcx
cmpq %r12, %rcx
jbe 0x96276
movq %r12, %rdx
jmp 0x962fc
movq %r13, -0x38(%rbp)
movq %r15, -0x30(%rbp)
movq %r12, %r13
movq 0x38(%r14), %rsi
movq 0x40(%r14), %r15
subq %rsi, %r15
cmpq %r15, %r13
movq %r15, %rbx
cmovbq %r13, %rbx
movq -0x40(%rbp), %rdi
movq %rbx, %rdx
callq 0x29080
movq 0x38(%r14), %rsi
addq %rbx, %rsi
movq %rsi, 0x38(%r14)
cmpq %r15, %r13
jbe 0x96219
subl %r13d, %r12d
leal (%rbx,%r12), %eax
movl %eax, 0xe4(%r14)
movq 0x20(%r14), %rdi
movq %r15, %r12
subq %rbx, %r12
movq %r12, %rdx
callq 0x29080
movq 0x20(%r14), %rax
movq 0x40(%r14), %rcx
movq %rax, 0x10(%r14)
addq %rax, %r12
movq %r12, 0x18(%r14)
movq %rcx, 0x38(%r14)
movq -0x38(%rbp), %rax
addq %rbx, %rax
movq %rax, (%r14)
addq %r15, 0x8(%r14)
movq 0x90(%r14), %rdi
testq %rdi, %rdi
jne 0x9646c
xorl %ebx, %ebx
cmpq %r15, %r13
seta %bl
movq -0x30(%rbp), %rdi
callq 0x291e0
jmp 0x963de
movq %r13, -0x38(%rbp)
movl %r12d, %r13d
andl $0xfffff000, %r13d # imm = 0xFFFFF000
subq %rax, %r13
movl 0xd4(%r14), %ebx
movq 0xf8(%r14), %rax
movq %rax, -0x30(%rbp)
leaq 0x2efd70(%rip), %rax # 0x386010
movq (%rax), %rax
leaq -0xa8(%rbp), %rdi
movl %ebx, %esi
movl $0x6, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x964b2
movl %ebx, %edi
movq -0x40(%rbp), %rsi
movq %r13, %rdx
movq -0x30(%rbp), %rcx
callq 0xa04f0
movq %rax, %rbx
cmpq $-0x1, %rbx
je 0x963b6
movq %r12, %rdx
subq %rbx, %rdx
addq %rbx, -0x40(%rbp)
addq %rbx, -0x38(%rbp)
cmpq %r13, %rbx
jne 0x963fb
xorl %eax, %eax
movq -0x38(%rbp), %r13
movq 0x8(%r14), %rbx
movq 0xf0(%r14), %rcx
subq %rax, %rcx
subq %r13, %rbx
cmpq %rbx, %rcx
cmovbq %rcx, %rbx
testq %rbx, %rbx
je 0x963f2
movq %rdx, -0x48(%rbp)
movq %r13, -0x38(%rbp)
movl 0xd4(%r14), %r13d
movq 0x20(%r14), %rax
movq %rax, -0x50(%rbp)
movq 0xf8(%r14), %rax
movq %rax, -0x30(%rbp)
leaq 0x2efcca(%rip), %rax # 0x386010
movq (%rax), %rax
leaq -0xa8(%rbp), %rdi
movl %r13d, %esi
movl $0x6, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x96527
movl %r13d, %edi
movq -0x50(%rbp), %rsi
movq %rbx, %rdx
movq -0x30(%rbp), %rcx
callq 0xa04f0
cmpq $-0x1, %rax
movq -0x48(%rbp), %rdx
je 0x963b6
movq %rdx, %r13
subq %rax, %r13
jbe 0x96407
movq %r15, -0x30(%rbp)
movq 0x20(%r14), %rsi
movq -0x40(%rbp), %rbx
movq %rbx, %rdi
movq %rax, %rdx
movq %rax, %r15
callq 0x29080
addq %r15, %rbx
movq %rbx, -0x40(%rbp)
addq %r15, -0x38(%rbp)
jmp 0x961da
movl $0xffffffff, 0xe4(%r14) # imm = 0xFFFFFFFF
movq 0x90(%r14), %rdi
testq %rdi, %rdi
jne 0x9649d
movq %r15, %rdi
callq 0x291e0
movl $0x1, %ebx
movl %ebx, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %rdx, %rdx
je 0x9640d
movq %r13, -0x38(%rbp)
movq %r15, -0x30(%rbp)
movq %rdx, %r13
jmp 0x961da
movq -0x38(%rbp), %r13
jmp 0x9640f
xorl %eax, %eax
movq %rax, %r12
movq %rdx, %rbx
movq 0x90(%r14), %rdi
testq %rdi, %rdi
jne 0x9659b
movq %r15, %rdi
callq 0x291e0
movq 0x20(%r14), %rsi
movq %rbx, %rdx
leaq (%rsi,%rbx), %rax
movq %rax, 0x10(%r14)
addq %rsi, %r12
movq %r12, 0x18(%r14)
movq %r13, (%r14)
movq -0x40(%rbp), %rdi
callq 0x29080
xorl %ebx, %ebx
jmp 0x963de
leaq 0x45bce(%rip), %rsi # 0xdc028
movq %r15, %rdi
movl $0x54c, %edx # imm = 0x54C
callq 0x2eb8f
jmp 0x9614c
leaq 0x2efb9d(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x96260
leaq -0x60(%rbp), %rcx
movq %rax, %rdi
movl %ebx, %esi
movq %r13, %rdx
movq %rcx, %rbx
callq 0x2ea93
movq (%rbx), %rax
jmp 0x96199
leaq 0x2efb6c(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x963d1
movq %rax, %rcx
leaq 0x2efb54(%rip), %rax # 0x386010
movq (%rax), %rax
leaq 0x45b62(%rip), %rdx # 0xdc028
movq %rcx, -0x48(%rbp)
movq %rcx, %rdi
movq %r13, %rsi
movl $0x569, %ecx # imm = 0x569
callq *0x210(%rax)
movl %ebx, %edi
movq -0x40(%rbp), %rsi
movq %r13, %rdx
movq -0x30(%rbp), %rcx
callq 0xa04f0
movq %rax, %rbx
xorl %esi, %esi
testq %rax, %rax
movl $0x0, %eax
cmoveq %r13, %rax
cmpq $-0x1, %rbx
cmovneq %rbx, %rsi
testb $0x6, -0x30(%rbp)
cmovneq %rax, %rsi
leaq 0x2efafb(%rip), %rax # 0x386010
movq (%rax), %rax
movq -0x48(%rbp), %rdi
callq *0x218(%rax)
jmp 0x962d5
movq %rax, %rcx
leaq 0x2efadf(%rip), %rax # 0x386010
movq (%rax), %rax
leaq 0x45aed(%rip), %rdx # 0xdc028
movq %rcx, -0x58(%rbp)
movq %rcx, %rdi
movq %rbx, %rsi
movl $0x589, %ecx # imm = 0x589
callq *0x210(%rax)
movl %r13d, %edi
movq -0x50(%rbp), %rsi
movq %rbx, %rdx
movq -0x30(%rbp), %rcx
callq 0xa04f0
movq %rax, %r13
xorl %esi, %esi
testq %rax, %rax
cmovneq %rsi, %rbx
cmpq $-0x1, %rax
cmovneq %rax, %rsi
testb $0x6, -0x30(%rbp)
cmovneq %rbx, %rsi
leaq 0x2efa8a(%rip), %rax # 0x386010
movq (%rax), %rax
movq -0x58(%rbp), %rdi
callq *0x218(%rax)
movq %r13, %rax
jmp 0x9637a
leaq 0x2efa6e(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x96425
|
_my_b_seq_read:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov r12, rdx
mov [rbp+var_40], rsi
mov r14, rdi
lea r15, [rdi+50h]
cmp qword ptr [rdi+90h], 0
jnz loc_96453
mov rdi, r15
call _pthread_mutex_lock
loc_9614C:
mov r13, [r14+18h]
sub r13, [r14+20h]
add r13, [r14]
cmp r13, [r14+8]
jnb short loc_961CF
mov ebx, [r14+0D4h]
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_A8]
mov esi, ebx
mov edx, 8
call qword ptr [rax+158h]
test rax, rax
jnz loc_96481
mov edi, ebx
mov rsi, r13
xor edx, edx
xor ecx, ecx
call my_seek
loc_96199:
cmp rax, 0FFFFFFFFFFFFFFFFh
jz loc_963B6
mov dword ptr [r14+0E0h], 0
mov eax, r13d
and eax, 0FFFh
mov ecx, 2000h
sub rcx, rax
cmp rcx, r12
jbe loc_96276
mov rdx, r12
jmp loc_962FC
loc_961CF:
mov [rbp+var_38], r13
mov [rbp+var_30], r15
mov r13, r12
loc_961DA:
mov rsi, [r14+38h]
mov r15, [r14+40h]
sub r15, rsi
cmp r13, r15
mov rbx, r15
cmovb rbx, r13
mov rdi, [rbp+var_40]
mov rdx, rbx
call _memcpy
mov rsi, [r14+38h]
add rsi, rbx
mov [r14+38h], rsi
cmp r13, r15
jbe short loc_96219
sub r12d, r13d
lea eax, [rbx+r12]
mov [r14+0E4h], eax
loc_96219:
mov rdi, [r14+20h]
mov r12, r15
sub r12, rbx
mov rdx, r12
call _memcpy
mov rax, [r14+20h]
mov rcx, [r14+40h]
mov [r14+10h], rax
add r12, rax
mov [r14+18h], r12
mov [r14+38h], rcx
mov rax, [rbp+var_38]
add rax, rbx
mov [r14], rax
add [r14+8], r15
mov rdi, [r14+90h]
test rdi, rdi
jnz loc_9646C
loc_96260:
xor ebx, ebx
cmp r13, r15
setnbe bl
mov rdi, [rbp+var_30]
call _pthread_mutex_unlock
jmp loc_963DE
loc_96276:
mov [rbp+var_38], r13
mov r13d, r12d
and r13d, 0FFFFF000h
sub r13, rax
mov ebx, [r14+0D4h]
mov rax, [r14+0F8h]
mov [rbp+var_30], rax
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_A8]
mov esi, ebx
mov edx, 6
call qword ptr [rax+158h]
test rax, rax
jnz loc_964B2
mov edi, ebx
mov rsi, [rbp+var_40]
mov rdx, r13
mov rcx, [rbp+var_30]
call my_read
mov rbx, rax
loc_962D5:
cmp rbx, 0FFFFFFFFFFFFFFFFh
jz loc_963B6
mov rdx, r12
sub rdx, rbx
add [rbp+var_40], rbx
add [rbp+var_38], rbx
cmp rbx, r13
jnz loc_963FB
xor eax, eax
mov r13, [rbp+var_38]
loc_962FC:
mov rbx, [r14+8]
mov rcx, [r14+0F0h]
sub rcx, rax
sub rbx, r13
cmp rcx, rbx
cmovb rbx, rcx
test rbx, rbx
jz loc_963F2
mov [rbp+var_48], rdx
mov [rbp+var_38], r13
mov r13d, [r14+0D4h]
mov rax, [r14+20h]
mov [rbp+var_50], rax
mov rax, [r14+0F8h]
mov [rbp+var_30], rax
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_A8]
mov esi, r13d
mov edx, 6
call qword ptr [rax+158h]
test rax, rax
jnz loc_96527
mov edi, r13d
mov rsi, [rbp+var_50]
mov rdx, rbx
mov rcx, [rbp+var_30]
call my_read
loc_9637A:
cmp rax, 0FFFFFFFFFFFFFFFFh
mov rdx, [rbp+var_48]
jz short loc_963B6
mov r13, rdx
sub r13, rax
jbe short loc_96407
mov [rbp+var_30], r15
mov rsi, [r14+20h]
mov rbx, [rbp+var_40]
mov rdi, rbx
mov rdx, rax
mov r15, rax
call _memcpy
add rbx, r15
mov [rbp+var_40], rbx
add [rbp+var_38], r15
jmp loc_961DA
loc_963B6:
mov dword ptr [r14+0E4h], 0FFFFFFFFh
mov rdi, [r14+90h]
test rdi, rdi
jnz loc_9649D
loc_963D1:
mov rdi, r15
call _pthread_mutex_unlock
mov ebx, 1
loc_963DE:
mov eax, ebx
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_963F2:
test rdx, rdx
jz short loc_9640D
mov [rbp+var_38], r13
loc_963FB:
mov [rbp+var_30], r15
mov r13, rdx
jmp loc_961DA
loc_96407:
mov r13, [rbp+var_38]
jmp short loc_9640F
loc_9640D:
xor eax, eax
loc_9640F:
mov r12, rax
mov rbx, rdx
mov rdi, [r14+90h]
test rdi, rdi
jnz loc_9659B
loc_96425:
mov rdi, r15
call _pthread_mutex_unlock
mov rsi, [r14+20h]
mov rdx, rbx
lea rax, [rsi+rbx]
mov [r14+10h], rax
add r12, rsi
mov [r14+18h], r12
mov [r14], r13
mov rdi, [rbp+var_40]
call _memcpy
xor ebx, ebx
jmp short loc_963DE
loc_96453:
lea rsi, aWorkspaceLlm4b_21; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, r15
mov edx, 54Ch
call psi_mutex_lock
jmp loc_9614C
loc_9646C:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_96260
loc_96481:
lea rcx, [rbp+var_60]
mov rdi, rax
mov esi, ebx
mov rdx, r13
mov rbx, rcx
call _my_b_seq_read_cold_1
mov rax, [rbx]
jmp loc_96199
loc_9649D:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_963D1
loc_964B2:
mov rcx, rax
lea rax, PSI_server
mov rax, [rax]
lea rdx, aWorkspaceLlm4b_21; "/workspace/llm4binary/github2025/eloqsq"...
mov [rbp+var_48], rcx
mov rdi, rcx
mov rsi, r13
mov ecx, 569h
call qword ptr [rax+210h]
mov edi, ebx
mov rsi, [rbp+var_40]
mov rdx, r13
mov rcx, [rbp+var_30]
call my_read
mov rbx, rax
xor esi, esi
test rax, rax
mov eax, 0
cmovz rax, r13
cmp rbx, 0FFFFFFFFFFFFFFFFh
cmovnz rsi, rbx
test byte ptr [rbp+var_30], 6
cmovnz rsi, rax
lea rax, PSI_server
mov rax, [rax]
mov rdi, [rbp+var_48]
call qword ptr [rax+218h]
jmp loc_962D5
loc_96527:
mov rcx, rax
lea rax, PSI_server
mov rax, [rax]
lea rdx, aWorkspaceLlm4b_21; "/workspace/llm4binary/github2025/eloqsq"...
mov [rbp+var_58], rcx
mov rdi, rcx
mov rsi, rbx
mov ecx, 589h
call qword ptr [rax+210h]
mov edi, r13d
mov rsi, [rbp+var_50]
mov rdx, rbx
mov rcx, [rbp+var_30]
call my_read
mov r13, rax
xor esi, esi
test rax, rax
cmovnz rbx, rsi
cmp rax, 0FFFFFFFFFFFFFFFFh
cmovnz rsi, rax
test byte ptr [rbp+var_30], 6
cmovnz rsi, rbx
lea rax, PSI_server
mov rax, [rax]
mov rdi, [rbp+var_58]
call qword ptr [rax+218h]
mov rax, r13
jmp loc_9637A
loc_9659B:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_96425
|
_BOOL8 my_b_seq_read(long long a1, unsigned long long a2, unsigned long long a3)
{
long long v4; // r15
unsigned long long v5; // r13
unsigned int v6; // ebx
long long v7; // rax
unsigned long long v8; // rsi
long long v9; // rax
unsigned long long v10; // rdx
unsigned long long v11; // rax
unsigned long long v12; // r13
long long v13; // rsi
unsigned long long v14; // r15
unsigned long long v15; // rbx
unsigned long long v16; // rsi
long long v17; // rax
long long v18; // rcx
BOOL v19; // ebx
unsigned long long v20; // r13
unsigned int v21; // ebx
long long v22; // rax
long long v23; // rbx
unsigned long long v24; // rbx
unsigned int v25; // r13d
long long v26; // rax
unsigned long long v27; // rax
unsigned long long v28; // rbx
unsigned long long v29; // r15
long long v30; // rdi
unsigned long long v32; // r12
unsigned long long v33; // rbx
long long v34; // rsi
unsigned long long v35; // rax
long long v36; // rax
unsigned long long v37; // r13
_BYTE v38[72]; // [rsp+8h] [rbp-A8h] BYREF
long long v39; // [rsp+50h] [rbp-60h] BYREF
long long v40; // [rsp+58h] [rbp-58h]
unsigned long long v41; // [rsp+60h] [rbp-50h]
unsigned long long v42; // [rsp+68h] [rbp-48h]
unsigned long long v43; // [rsp+70h] [rbp-40h]
unsigned long long v44; // [rsp+78h] [rbp-38h]
long long v45; // [rsp+80h] [rbp-30h]
v43 = a2;
v4 = a1 + 80;
if ( *(_QWORD *)(a1 + 144) )
psi_mutex_lock(a1 + 80, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c", 0x54Cu);
else
pthread_mutex_lock(a1 + 80);
v5 = *(_QWORD *)a1 + *(_QWORD *)(a1 + 24) - *(_QWORD *)(a1 + 32);
if ( v5 >= *(_QWORD *)(a1 + 8) )
{
v44 = *(_QWORD *)a1 + *(_QWORD *)(a1 + 24) - *(_QWORD *)(a1 + 32);
v45 = a1 + 80;
v12 = a3;
LABEL_10:
v13 = *(_QWORD *)(a1 + 56);
v14 = *(_QWORD *)(a1 + 64) - v13;
v15 = v14;
if ( v12 < v14 )
v15 = v12;
memcpy(v43, v13, v15);
v16 = v15 + *(_QWORD *)(a1 + 56);
*(_QWORD *)(a1 + 56) = v16;
if ( v12 > v14 )
*(_DWORD *)(a1 + 228) = v15 + a3 - v12;
memcpy(*(_QWORD *)(a1 + 32), v16, v14 - v15);
v17 = *(_QWORD *)(a1 + 32);
v18 = *(_QWORD *)(a1 + 64);
*(_QWORD *)(a1 + 16) = v17;
*(_QWORD *)(a1 + 24) = v17 + v14 - v15;
*(_QWORD *)(a1 + 56) = v18;
*(_QWORD *)a1 = v15 + v44;
*(_QWORD *)(a1 + 8) += v14;
if ( *(_QWORD *)(a1 + 144) )
PSI_server[44]();
v19 = v12 > v14;
pthread_mutex_unlock(v45);
return v19;
}
v6 = *(_DWORD *)(a1 + 212);
v7 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v38, v6, 8LL);
if ( v7 )
{
v8 = v6;
my_b_seq_read_cold_1(v7, v6, v5, &v39);
v9 = v39;
}
else
{
v8 = v5;
v9 = my_seek(v6, v5, 0LL, 0LL);
}
if ( v9 == -1 )
goto LABEL_30;
*(_DWORD *)(a1 + 224) = 0;
v11 = v5 & 0xFFF;
if ( 0x2000 - v11 <= a3 )
{
v44 = v5;
v20 = ((unsigned int)a3 & 0xFFFFF000) - v11;
v21 = *(_DWORD *)(a1 + 212);
v45 = *(_QWORD *)(a1 + 248);
v22 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v38, v21, 6LL);
if ( v22 )
{
v42 = v22;
((void ( *)(long long, unsigned long long, const char *, long long))PSI_server[66])(
v22,
v20,
"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",
1385LL);
v23 = my_read(v21, v43, v20, v45);
v8 = 0LL;
v35 = 0LL;
if ( !v23 )
v35 = v20;
if ( v23 != -1 )
v8 = v23;
if ( (v45 & 6) != 0 )
v8 = v35;
((void ( *)(unsigned long long, unsigned long long))PSI_server[67])(v42, v8);
}
else
{
v8 = v43;
v23 = my_read(v21, v43, v20, v45);
}
if ( v23 == -1 )
goto LABEL_30;
v10 = a3 - v23;
v43 += v23;
v44 += v23;
if ( v23 != v20 )
{
LABEL_36:
v45 = a1 + 80;
v12 = v10;
goto LABEL_10;
}
v11 = 0LL;
v5 = v44;
}
else
{
v10 = a3;
}
v24 = *(_QWORD *)(a1 + 8) - v5;
if ( *(_QWORD *)(a1 + 240) - v11 < v24 )
v24 = *(_QWORD *)(a1 + 240) - v11;
if ( !v24 )
{
if ( !v10 )
{
v27 = 0LL;
LABEL_39:
v32 = v27;
v33 = v10;
if ( *(_QWORD *)(a1 + 144) )
PSI_server[44]();
pthread_mutex_unlock(v4);
v34 = *(_QWORD *)(a1 + 32);
*(_QWORD *)(a1 + 16) = v34 + v33;
*(_QWORD *)(a1 + 24) = v34 + v32;
*(_QWORD *)a1 = v5;
memcpy(v43, v34, v33);
return 0;
}
v44 = v5;
goto LABEL_36;
}
v42 = v10;
v44 = v5;
v25 = *(_DWORD *)(a1 + 212);
v41 = *(_QWORD *)(a1 + 32);
v45 = *(_QWORD *)(a1 + 248);
v26 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v38, v25, 6LL);
if ( v26 )
{
v40 = v26;
((void ( *)(long long, unsigned long long, const char *, long long))PSI_server[66])(
v26,
v24,
"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",
1417LL);
v36 = my_read(v25, v41, v24, v45);
v37 = v36;
v8 = 0LL;
if ( v36 )
v24 = 0LL;
if ( v36 != -1 )
v8 = v36;
if ( (v45 & 6) != 0 )
v8 = v24;
((void ( *)(long long))PSI_server[67])(v40);
v27 = v37;
}
else
{
v8 = v41;
v27 = my_read(v25, v41, v24, v45);
}
v10 = v42;
if ( v27 != -1LL )
{
v12 = v42 - v27;
if ( v42 > v27 )
{
v45 = a1 + 80;
v28 = v43;
v29 = v27;
memcpy(v43, *(_QWORD *)(a1 + 32), v27);
v43 = v29 + v28;
v44 += v29;
goto LABEL_10;
}
v5 = v44;
goto LABEL_39;
}
LABEL_30:
*(_DWORD *)(a1 + 228) = -1;
v30 = *(_QWORD *)(a1 + 144);
if ( v30 )
((void ( *)(long long, unsigned long long, unsigned long long))PSI_server[44])(v30, v8, v10);
pthread_mutex_unlock(v4);
return 1;
}
|
_my_b_seq_read:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV R12,RDX
MOV qword ptr [RBP + -0x40],RSI
MOV R14,RDI
LEA R15,[RDI + 0x50]
CMP qword ptr [RDI + 0x90],0x0
JNZ 0x00196453
MOV RDI,R15
CALL 0x00129220
LAB_0019614c:
MOV R13,qword ptr [R14 + 0x18]
SUB R13,qword ptr [R14 + 0x20]
ADD R13,qword ptr [R14]
CMP R13,qword ptr [R14 + 0x8]
JNC 0x001961cf
MOV EBX,dword ptr [R14 + 0xd4]
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0xa8]
MOV ESI,EBX
MOV EDX,0x8
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x00196481
MOV EDI,EBX
MOV RSI,R13
XOR EDX,EDX
XOR ECX,ECX
CALL 0x001a06f0
LAB_00196199:
CMP RAX,-0x1
JZ 0x001963b6
MOV dword ptr [R14 + 0xe0],0x0
MOV EAX,R13D
AND EAX,0xfff
MOV ECX,0x2000
SUB RCX,RAX
CMP RCX,R12
JBE 0x00196276
MOV RDX,R12
JMP 0x001962fc
LAB_001961cf:
MOV qword ptr [RBP + -0x38],R13
MOV qword ptr [RBP + -0x30],R15
MOV R13,R12
LAB_001961da:
MOV RSI,qword ptr [R14 + 0x38]
MOV R15,qword ptr [R14 + 0x40]
SUB R15,RSI
CMP R13,R15
MOV RBX,R15
CMOVC RBX,R13
MOV RDI,qword ptr [RBP + -0x40]
MOV RDX,RBX
CALL 0x00129080
MOV RSI,qword ptr [R14 + 0x38]
ADD RSI,RBX
MOV qword ptr [R14 + 0x38],RSI
CMP R13,R15
JBE 0x00196219
SUB R12D,R13D
LEA EAX,[RBX + R12*0x1]
MOV dword ptr [R14 + 0xe4],EAX
LAB_00196219:
MOV RDI,qword ptr [R14 + 0x20]
MOV R12,R15
SUB R12,RBX
MOV RDX,R12
CALL 0x00129080
MOV RAX,qword ptr [R14 + 0x20]
MOV RCX,qword ptr [R14 + 0x40]
MOV qword ptr [R14 + 0x10],RAX
ADD R12,RAX
MOV qword ptr [R14 + 0x18],R12
MOV qword ptr [R14 + 0x38],RCX
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,RBX
MOV qword ptr [R14],RAX
ADD qword ptr [R14 + 0x8],R15
MOV RDI,qword ptr [R14 + 0x90]
TEST RDI,RDI
JNZ 0x0019646c
LAB_00196260:
XOR EBX,EBX
CMP R13,R15
SETA BL
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x001291e0
JMP 0x001963de
LAB_00196276:
MOV qword ptr [RBP + -0x38],R13
MOV R13D,R12D
AND R13D,0xfffff000
SUB R13,RAX
MOV EBX,dword ptr [R14 + 0xd4]
MOV RAX,qword ptr [R14 + 0xf8]
MOV qword ptr [RBP + -0x30],RAX
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0xa8]
MOV ESI,EBX
MOV EDX,0x6
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x001964b2
MOV EDI,EBX
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,R13
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001a04f0
MOV RBX,RAX
LAB_001962d5:
CMP RBX,-0x1
JZ 0x001963b6
MOV RDX,R12
SUB RDX,RBX
ADD qword ptr [RBP + -0x40],RBX
ADD qword ptr [RBP + -0x38],RBX
CMP RBX,R13
JNZ 0x001963fb
XOR EAX,EAX
MOV R13,qword ptr [RBP + -0x38]
LAB_001962fc:
MOV RBX,qword ptr [R14 + 0x8]
MOV RCX,qword ptr [R14 + 0xf0]
SUB RCX,RAX
SUB RBX,R13
CMP RCX,RBX
CMOVC RBX,RCX
TEST RBX,RBX
JZ 0x001963f2
MOV qword ptr [RBP + -0x48],RDX
MOV qword ptr [RBP + -0x38],R13
MOV R13D,dword ptr [R14 + 0xd4]
MOV RAX,qword ptr [R14 + 0x20]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [R14 + 0xf8]
MOV qword ptr [RBP + -0x30],RAX
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0xa8]
MOV ESI,R13D
MOV EDX,0x6
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x00196527
MOV EDI,R13D
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,RBX
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001a04f0
LAB_0019637a:
CMP RAX,-0x1
MOV RDX,qword ptr [RBP + -0x48]
JZ 0x001963b6
MOV R13,RDX
SUB R13,RAX
JBE 0x00196407
MOV qword ptr [RBP + -0x30],R15
MOV RSI,qword ptr [R14 + 0x20]
MOV RBX,qword ptr [RBP + -0x40]
MOV RDI,RBX
MOV RDX,RAX
MOV R15,RAX
CALL 0x00129080
ADD RBX,R15
MOV qword ptr [RBP + -0x40],RBX
ADD qword ptr [RBP + -0x38],R15
JMP 0x001961da
LAB_001963b6:
MOV dword ptr [R14 + 0xe4],0xffffffff
MOV RDI,qword ptr [R14 + 0x90]
TEST RDI,RDI
JNZ 0x0019649d
LAB_001963d1:
MOV RDI,R15
CALL 0x001291e0
MOV EBX,0x1
LAB_001963de:
MOV EAX,EBX
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001963f2:
TEST RDX,RDX
JZ 0x0019640d
MOV qword ptr [RBP + -0x38],R13
LAB_001963fb:
MOV qword ptr [RBP + -0x30],R15
MOV R13,RDX
JMP 0x001961da
LAB_00196407:
MOV R13,qword ptr [RBP + -0x38]
JMP 0x0019640f
LAB_0019640d:
XOR EAX,EAX
LAB_0019640f:
MOV R12,RAX
MOV RBX,RDX
MOV RDI,qword ptr [R14 + 0x90]
TEST RDI,RDI
JNZ 0x0019659b
LAB_00196425:
MOV RDI,R15
CALL 0x001291e0
MOV RSI,qword ptr [R14 + 0x20]
MOV RDX,RBX
LEA RAX,[RSI + RBX*0x1]
MOV qword ptr [R14 + 0x10],RAX
ADD R12,RSI
MOV qword ptr [R14 + 0x18],R12
MOV qword ptr [R14],R13
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00129080
XOR EBX,EBX
JMP 0x001963de
LAB_00196453:
LEA RSI,[0x1dc028]
MOV RDI,R15
MOV EDX,0x54c
CALL 0x0012eb8f
JMP 0x0019614c
LAB_0019646c:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x00196260
LAB_00196481:
LEA RCX,[RBP + -0x60]
MOV RDI,RAX
MOV ESI,EBX
MOV RDX,R13
MOV RBX,RCX
CALL 0x0012ea93
MOV RAX,qword ptr [RBX]
JMP 0x00196199
LAB_0019649d:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x001963d1
LAB_001964b2:
MOV RCX,RAX
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDX,[0x1dc028]
MOV qword ptr [RBP + -0x48],RCX
MOV RDI,RCX
MOV RSI,R13
MOV ECX,0x569
CALL qword ptr [RAX + 0x210]
MOV EDI,EBX
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,R13
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001a04f0
MOV RBX,RAX
XOR ESI,ESI
TEST RAX,RAX
MOV EAX,0x0
CMOVZ RAX,R13
CMP RBX,-0x1
CMOVNZ RSI,RBX
TEST byte ptr [RBP + -0x30],0x6
CMOVNZ RSI,RAX
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RBP + -0x48]
CALL qword ptr [RAX + 0x218]
JMP 0x001962d5
LAB_00196527:
MOV RCX,RAX
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDX,[0x1dc028]
MOV qword ptr [RBP + -0x58],RCX
MOV RDI,RCX
MOV RSI,RBX
MOV ECX,0x589
CALL qword ptr [RAX + 0x210]
MOV EDI,R13D
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,RBX
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001a04f0
MOV R13,RAX
XOR ESI,ESI
TEST RAX,RAX
CMOVNZ RBX,RSI
CMP RAX,-0x1
CMOVNZ RSI,RAX
TEST byte ptr [RBP + -0x30],0x6
CMOVNZ RSI,RBX
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RBP + -0x58]
CALL qword ptr [RAX + 0x218]
MOV RAX,R13
JMP 0x0019637a
LAB_0019659b:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x00196425
|
bool _my_b_seq_read(ulong *param_1,void *param_2,ulong param_3)
{
int4 uVar1;
void *pvVar2;
pthread_mutex_t *__mutex;
long lVar3;
long lVar4;
ulong __n;
long lVar5;
ulong uVar6;
long lVar7;
uint uVar8;
ulong uVar9;
ulong uVar10;
int1 local_b0 [72];
long local_68;
long local_60;
ulong local_58;
ulong local_50;
void *local_48;
ulong local_40;
pthread_mutex_t *local_38;
__mutex = (pthread_mutex_t *)(param_1 + 10);
local_48 = param_2;
if (param_1[0x12] == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x54c);
}
uVar9 = (param_1[3] - param_1[4]) + *param_1;
uVar8 = (uint)param_3;
if (uVar9 < param_1[1]) {
uVar1 = *(int4 *)((long)param_1 + 0xd4);
lVar3 = (**(code **)(PSI_server + 0x158))(local_b0,uVar1,8);
if (lVar3 == 0) {
local_68 = my_seek(uVar1,uVar9,0,0);
}
else {
_my_b_seq_read_cold_1(lVar3,uVar1,uVar9);
}
if (local_68 == -1) {
LAB_001963b6:
*(int4 *)((long)param_1 + 0xe4) = 0xffffffff;
if (param_1[0x12] != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
return true;
}
*(int4 *)(param_1 + 0x1c) = 0;
uVar10 = (ulong)((uint)uVar9 & 0xfff);
if (0x2000 - uVar10 <= param_3) {
lVar3 = (uVar8 & 0xfffff000) - uVar10;
uVar1 = *(int4 *)((long)param_1 + 0xd4);
local_38 = (pthread_mutex_t *)param_1[0x1f];
local_40 = uVar9;
uVar9 = (**(code **)(PSI_server + 0x158))(local_b0,uVar1,6);
if (uVar9 == 0) {
lVar4 = my_read(uVar1,local_48,lVar3,local_38);
}
else {
local_50 = uVar9;
(**(code **)(PSI_server + 0x210))
(uVar9,lVar3,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x569);
lVar4 = my_read(uVar1,local_48,lVar3,local_38);
lVar5 = 0;
if (lVar4 == 0) {
lVar5 = lVar3;
}
lVar7 = 0;
if (lVar4 != -1) {
lVar7 = lVar4;
}
if (((ulong)local_38 & 6) != 0) {
lVar7 = lVar5;
}
(**(code **)(PSI_server + 0x218))(local_50,lVar7);
}
if (lVar4 == -1) goto LAB_001963b6;
param_3 = param_3 - lVar4;
local_48 = (void *)((long)local_48 + lVar4);
uVar9 = local_40 + lVar4;
if (lVar4 != lVar3) goto LAB_001961da;
uVar10 = 0;
local_40 = uVar9;
}
uVar6 = param_1[1] - uVar9;
if (param_1[0x1e] - uVar10 < param_1[1] - uVar9) {
uVar6 = param_1[0x1e] - uVar10;
}
if (uVar6 == 0) {
if (param_3 == 0) {
__n = 0;
uVar10 = param_3;
LAB_0019640f:
if (param_1[0x12] != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
pvVar2 = (void *)param_1[4];
param_1[2] = (long)pvVar2 + uVar10;
param_1[3] = __n + (long)pvVar2;
*param_1 = uVar9;
memcpy(local_48,pvVar2,uVar10);
return false;
}
}
else {
uVar1 = *(int4 *)((long)param_1 + 0xd4);
local_58 = param_1[4];
local_38 = (pthread_mutex_t *)param_1[0x1f];
local_50 = param_3;
local_40 = uVar9;
lVar3 = (**(code **)(PSI_server + 0x158))(local_b0,uVar1,6);
if (lVar3 == 0) {
__n = my_read(uVar1,local_58,uVar6,local_38);
}
else {
local_60 = lVar3;
(**(code **)(PSI_server + 0x210))
(lVar3,uVar6,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x589);
__n = my_read(uVar1,local_58,uVar6,local_38);
if (__n != 0) {
uVar6 = 0;
}
uVar9 = 0;
if (__n != 0xffffffffffffffff) {
uVar9 = __n;
}
if (((ulong)local_38 & 6) != 0) {
uVar9 = uVar6;
}
(**(code **)(PSI_server + 0x218))(local_60,uVar9);
}
pvVar2 = local_48;
if (__n == 0xffffffffffffffff) goto LAB_001963b6;
param_3 = local_50 - __n;
uVar10 = local_50;
uVar9 = local_40;
if (local_50 < __n || param_3 == 0) goto LAB_0019640f;
local_38 = __mutex;
memcpy(local_48,(void *)param_1[4],__n);
local_48 = (void *)((long)pvVar2 + __n);
uVar9 = local_40 + __n;
__mutex = local_38;
}
}
LAB_001961da:
local_38 = __mutex;
local_40 = uVar9;
uVar10 = param_1[8] - (long)param_1[7];
uVar9 = uVar10;
if (param_3 < uVar10) {
uVar9 = param_3;
}
memcpy(local_48,(void *)param_1[7],uVar9);
uVar6 = param_1[7];
param_1[7] = uVar6 + uVar9;
if (uVar10 < param_3) {
*(uint *)((long)param_1 + 0xe4) = (int)uVar9 + (uVar8 - (int)param_3);
}
memcpy((void *)param_1[4],(void *)(uVar6 + uVar9),uVar10 - uVar9);
param_1[2] = param_1[4];
param_1[3] = (uVar10 - uVar9) + param_1[4];
param_1[7] = param_1[8];
*param_1 = local_40 + uVar9;
param_1[1] = param_1[1] + uVar10;
if (param_1[0x12] != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(local_38);
return uVar10 < param_3;
}
|
|
10,740 |
ps_fetch_float
|
eloqsql/libmariadb/libmariadb/ma_stmt_codec.c
|
static
void ps_fetch_float(MYSQL_BIND *r_param, const MYSQL_FIELD * field, unsigned char **row)
{
switch(r_param->buffer_type)
{
case MYSQL_TYPE_FLOAT:
{
float *value= (float *)r_param->buffer;
float4get(*value, *row);
r_param->buffer_length= 4;
*r_param->error= 0;
}
break;
default:
{
float value;
memcpy(&value, *row, sizeof(float));
float4get(value, (char *)*row);
convert_from_float(r_param, field, value, sizeof(float));
}
break;
}
(*row)+= 4;
}
|
O0
|
c
|
ps_fetch_float:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl 0x60(%rax), %eax
subl $0x4, %eax
jne 0x60cb6
jmp 0x60c82
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movl (%rcx), %ecx
movl %ecx, (%rax)
movq -0x8(%rbp), %rax
movq $0x4, 0x40(%rax)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movb $0x0, (%rax)
jmp 0x60ce5
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movss -0x24(%rbp), %xmm0
movl $0x4, %edx
callq 0x62530
movq -0x18(%rbp), %rax
movq (%rax), %rcx
addq $0x4, %rcx
movq %rcx, (%rax)
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
|
ps_fetch_float:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov eax, [rax+60h]
sub eax, 4
jnz short loc_60CB6
jmp short $+2
loc_60C82:
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
mov rcx, [rbp+var_18]
mov rcx, [rcx]
mov ecx, [rcx]
mov [rax], ecx
mov rax, [rbp+var_8]
mov qword ptr [rax+40h], 4
mov rax, [rbp+var_8]
mov rax, [rax+18h]
mov byte ptr [rax], 0
jmp short loc_60CE5
loc_60CB6:
mov rax, [rbp+var_18]
mov rax, [rax]
mov eax, [rax]
mov [rbp+var_24], eax
mov rax, [rbp+var_18]
mov rax, [rax]
mov eax, [rax]
mov [rbp+var_24], eax
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
movss xmm0, [rbp+var_24]
mov edx, 4
call convert_from_float
loc_60CE5:
mov rax, [rbp+var_18]
mov rcx, [rax]
add rcx, 4
mov [rax], rcx
add rsp, 30h
pop rbp
retn
|
float ** ps_fetch_float(long long a1, long long a2, float **a3)
{
float **result; // rax
if ( *(_DWORD *)(a1 + 96) == 4 )
{
**(float **)(a1 + 16) = **a3;
*(_QWORD *)(a1 + 64) = 4LL;
**(_BYTE **)(a1 + 24) = 0;
}
else
{
convert_from_float(a1, a2, 4LL, **a3);
}
result = a3;
++*a3;
return result;
}
|
ps_fetch_float:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x60]
SUB EAX,0x4
JNZ 0x00160cb6
JMP 0x00160c82
LAB_00160c82:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOV ECX,dword ptr [RCX]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x40],0x4
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x18]
MOV byte ptr [RAX],0x0
JMP 0x00160ce5
LAB_00160cb6:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x24],EAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOVSS XMM0,dword ptr [RBP + -0x24]
MOV EDX,0x4
CALL 0x00162530
LAB_00160ce5:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RAX]
ADD RCX,0x4
MOV qword ptr [RAX],RCX
ADD RSP,0x30
POP RBP
RET
|
void ps_fetch_float(long param_1,int8 param_2,long *param_3)
{
if (*(int *)(param_1 + 0x60) == 4) {
**(int4 **)(param_1 + 0x10) = *(int4 *)*param_3;
*(int8 *)(param_1 + 0x40) = 4;
**(int1 **)(param_1 + 0x18) = 0;
}
else {
convert_from_float(*(int4 *)*param_3,param_1,param_2,4);
}
*param_3 = *param_3 + 4;
return;
}
|
|
10,741 |
my_xml_error_lineno
|
eloqsql/strings/xml.c
|
uint my_xml_error_lineno(MY_XML_PARSER *p)
{
uint res=0;
const char *s;
for (s=p->beg ; s<p->cur; s++)
{
if (s[0] == '\n')
res++;
}
return res;
}
|
O3
|
c
|
my_xml_error_lineno:
movq 0x128(%rdi), %rcx
movq 0x130(%rdi), %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
jae 0x6dd78
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
xorl %esi, %esi
cmpb $0xa, (%rcx)
sete %sil
addl %esi, %eax
incq %rcx
cmpq %rdx, %rcx
jne 0x6dd64
popq %rbp
retq
nopl (%rax)
|
my_xml_error_lineno:
mov rcx, [rdi+128h]
mov rdx, [rdi+130h]
xor eax, eax
cmp rcx, rdx
jnb short locret_6DD78
push rbp
mov rbp, rsp
xor eax, eax
loc_6DD64:
xor esi, esi
cmp byte ptr [rcx], 0Ah
setz sil
add eax, esi
inc rcx
cmp rcx, rdx
jnz short loc_6DD64
pop rbp
locret_6DD78:
retn
|
long long my_xml_error_lineno(long long a1)
{
_BYTE *v1; // rcx
_BYTE *v2; // rdx
long long result; // rax
v1 = *(_BYTE **)(a1 + 296);
v2 = *(_BYTE **)(a1 + 304);
result = 0LL;
if ( v1 < v2 )
{
LODWORD(result) = 0;
do
result = (*v1++ == 10) + (unsigned int)result;
while ( v1 != v2 );
}
return result;
}
|
my_xml_error_lineno:
MOV RCX,qword ptr [RDI + 0x128]
MOV RDX,qword ptr [RDI + 0x130]
XOR EAX,EAX
CMP RCX,RDX
JNC 0x0016dd78
PUSH RBP
MOV RBP,RSP
XOR EAX,EAX
LAB_0016dd64:
XOR ESI,ESI
CMP byte ptr [RCX],0xa
SETZ SIL
ADD EAX,ESI
INC RCX
CMP RCX,RDX
JNZ 0x0016dd64
POP RBP
LAB_0016dd78:
RET
|
int my_xml_error_lineno(long param_1)
{
int iVar1;
char *pcVar2;
pcVar2 = *(char **)(param_1 + 0x128);
iVar1 = 0;
if (pcVar2 < *(char **)(param_1 + 0x130)) {
iVar1 = 0;
do {
iVar1 = iVar1 + (uint)(*pcVar2 == '\n');
pcVar2 = pcVar2 + 1;
} while (pcVar2 != *(char **)(param_1 + 0x130));
}
return iVar1;
}
|
|
10,742 |
minja::Value::set(minja::Value const&, minja::Value const&)
|
monkey531[P]llama/common/minja.hpp
|
void set(const Value& key, const Value& value) {
if (!object_) throw std::runtime_error("Value is not an object: " + dump());
if (!key.is_hashable()) throw std::runtime_error("Unashable type: " + dump());
(*object_)[key.primitive_] = value;
}
|
O3
|
cpp
|
minja::Value::set(minja::Value const&, minja::Value const&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
movq 0x20(%rdi), %rdi
testq %rdi, %rdi
je 0x4fedb
cmpq $0x0, 0x10(%rsi)
jne 0x4ff38
cmpq $0x0, 0x20(%rsi)
jne 0x4ff38
cmpq $0x0, 0x30(%rsi)
jne 0x4ff38
movq %rdx, %rbx
addq $0x40, %rsi
callq 0x50078
movq %rax, %r14
movq 0x10(%rbx), %rax
movq %rax, 0x10(%r14)
leaq 0x18(%r14), %rdi
leaq 0x18(%rbx), %rsi
callq 0x4f000
movq 0x20(%rbx), %rax
movq %rax, 0x20(%r14)
leaq 0x28(%r14), %rdi
leaq 0x28(%rbx), %rsi
callq 0x4f000
movq 0x30(%rbx), %rax
movq %rax, 0x30(%r14)
leaq 0x38(%r14), %rdi
leaq 0x38(%rbx), %rsi
callq 0x4f000
addq $0x40, %rbx
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq 0x2ab46
addq $0x40, %r14
leaq 0x20(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2a862
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3d7c0
movq %rbx, %rdi
callq 0x4a3ae
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x10, %edi
callq 0x18360
movq %rax, %rbx
movq %rsp, %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x3daf6
leaq 0x5b885(%rip), %rsi # 0xab786
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x24de1
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x18a80
xorl %ebp, %ebp
movq 0x8d0c1(%rip), %rsi # 0xdcfe8
movq 0x8d032(%rip), %rdx # 0xdcf60
movq %rbx, %rdi
callq 0x18b30
jmp 0x4ff93
movl $0x10, %edi
callq 0x18360
movq %rax, %rbx
movq %rsp, %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x3daf6
leaq 0x5b841(%rip), %rsi # 0xab79f
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x24de1
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x18a80
xorl %ebp, %ebp
movq 0x8d064(%rip), %rsi # 0xdcfe8
movq 0x8cfd5(%rip), %rdx # 0xdcf60
movq %rbx, %rdi
callq 0x18b30
jmp 0x4ff97
jmp 0x4ffd7
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ffb5
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x186a0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ffd0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x186a0
testb %bpl, %bpl
jne 0x4fffc
jmp 0x50004
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4fffc
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x4fffc
jmp 0x4fff9
movq %rax, %r14
movq %rbx, %rdi
callq 0x184f0
movq %r14, %rdi
callq 0x18b90
movq %rax, %rdi
callq 0x2a9d1
|
_ZN5minja5Value3setERKS0_S2_:
push rbp
push r14
push rbx
sub rsp, 40h
mov r14, rdi
mov rdi, [rdi+20h]
test rdi, rdi
jz loc_4FEDB
cmp qword ptr [rsi+10h], 0
jnz loc_4FF38
cmp qword ptr [rsi+20h], 0
jnz loc_4FF38
cmp qword ptr [rsi+30h], 0
jnz loc_4FF38
mov rbx, rdx
add rsi, 40h ; '@'
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixERSJ_; 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>>>::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> const&)
mov r14, rax
mov rax, [rbx+10h]
mov [r14+10h], rax
lea rdi, [r14+18h]
lea rsi, [rbx+18h]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEaSERKS2_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_count<(__gnu_cxx::_Lock_policy)2> const&)
mov rax, [rbx+20h]
mov [r14+20h], rax
lea rdi, [r14+28h]
lea rsi, [rbx+28h]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEaSERKS2_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_count<(__gnu_cxx::_Lock_policy)2> const&)
mov rax, [rbx+30h]
mov [r14+30h], rax
lea rdi, [r14+38h]
lea rsi, [rbx+38h]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEaSERKS2_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_count<(__gnu_cxx::_Lock_policy)2> const&)
add rbx, 40h ; '@'
lea rdi, [rsp+58h+var_38]
mov rsi, rbx
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&)
add r14, 40h ; '@'
lea rbx, [rsp+58h+var_38]
mov rdi, r14
mov rsi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
add rsp, 40h
pop rbx
pop r14
pop rbp
retn
loc_4FEDB:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, rsp
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aValueIsNotAnOb; "Value is not an object: "
lea rdi, [rsp+58h+var_38]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+58h+var_38]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp short loc_4FF93
loc_4FF38:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, rsp
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aUnashableType; "Unashable type: "
lea rdi, [rsp+58h+var_38]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+58h+var_38]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_4FF93:
jmp short loc_4FF97
jmp short loc_4FFD7
loc_4FF97:
mov r14, rax
lea rax, [rsp+58h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_4FFB5
mov rsi, [rsp+58h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4FFB5:
lea rax, [rsp+58h+var_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_4FFD0
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4FFD0:
test bpl, bpl
jnz short loc_4FFFC
jmp short loc_50004
loc_4FFD7:
mov r14, rax
lea rax, [rsp+58h+var_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_4FFFC
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_4FFFC
jmp short $+2
loc_4FFF9:
mov r14, rax
loc_4FFFC:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_50004:
mov rdi, r14
call __Unwind_Resume
mov rdi, rax
call __clang_call_terminate
|
char * minja::Value::set(minja::Value *this, const minja::Value *a2, const minja::Value *a3)
{
long long v4; // rdi
long long v6; // r14
char *result; // rax
void *exception; // rbx
void *v9; // rbx
_BYTE v10[16]; // [rsp+0h] [rbp-58h] BYREF
void **v11[2]; // [rsp+20h] [rbp-38h] BYREF
v4 = *((_QWORD *)this + 4);
if ( !v4 )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v10, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v11, (long long)"Value is not an object: ", (long long)v10);
std::runtime_error::runtime_error(exception, v11);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( *((_QWORD *)a2 + 2) || *((_QWORD *)a2 + 4) || *((_QWORD *)a2 + 6) )
{
v9 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v10, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v11, (long long)"Unashable type: ", (long long)v10);
std::runtime_error::runtime_error(v9, v11);
__cxa_throw(
v9,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v6 = 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>>>::operator[](
v4,
(char *)a2 + 64);
*(_QWORD *)(v6 + 16) = *((_QWORD *)a3 + 2);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(
(volatile signed __int32 **)(v6 + 24),
(volatile signed __int32 **)a3 + 3);
*(_QWORD *)(v6 + 32) = *((_QWORD *)a3 + 4);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(
(volatile signed __int32 **)(v6 + 40),
(volatile signed __int32 **)a3 + 5);
*(_QWORD *)(v6 + 48) = *((_QWORD *)a3 + 6);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(
(volatile signed __int32 **)(v6 + 56),
(volatile signed __int32 **)a3 + 7);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
(long long)v11,
(long long)a3 + 64);
result = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
(char *)(v6 + 64),
(char *)v11);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v11);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v11);
return result;
}
|
set:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV R14,RDI
MOV RDI,qword ptr [RDI + 0x20]
TEST RDI,RDI
JZ 0x0014fedb
CMP qword ptr [RSI + 0x10],0x0
JNZ 0x0014ff38
CMP qword ptr [RSI + 0x20],0x0
JNZ 0x0014ff38
CMP qword ptr [RSI + 0x30],0x0
JNZ 0x0014ff38
MOV RBX,RDX
ADD RSI,0x40
CALL 0x00150078
MOV R14,RAX
MOV RAX,qword ptr [RBX + 0x10]
MOV qword ptr [R14 + 0x10],RAX
LEA RDI,[R14 + 0x18]
LEA RSI,[RBX + 0x18]
CALL 0x0014f000
MOV RAX,qword ptr [RBX + 0x20]
MOV qword ptr [R14 + 0x20],RAX
LEA RDI,[R14 + 0x28]
LEA RSI,[RBX + 0x28]
CALL 0x0014f000
MOV RAX,qword ptr [RBX + 0x30]
MOV qword ptr [R14 + 0x30],RAX
LEA RDI,[R14 + 0x38]
LEA RSI,[RBX + 0x38]
CALL 0x0014f000
ADD RBX,0x40
LAB_0014fe9f:
LEA RDI,[RSP + 0x20]
MOV RSI,RBX
CALL 0x0012ab46
LAB_0014feac:
ADD R14,0x40
LEA RBX,[RSP + 0x20]
MOV RDI,R14
MOV RSI,RBX
CALL 0x0012a862
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0013d7c0
MOV RDI,RBX
CALL 0x0014a3ae
ADD RSP,0x40
POP RBX
POP R14
POP RBP
RET
LAB_0014fedb:
MOV EDI,0x10
CALL 0x00118360
MOV RBX,RAX
LAB_0014fee8:
MOV RDI,RSP
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0013daf6
LAB_0014fefa:
LEA RSI,[0x1ab786]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x00124de1
MOV BPL,0x1
LAB_0014ff11:
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x00118a80
XOR EBP,EBP
MOV RSI,qword ptr [0x001dcfe8]
MOV RDX,qword ptr [0x001dcf60]
MOV RDI,RBX
CALL 0x00118b30
LAB_0014ff38:
MOV EDI,0x10
CALL 0x00118360
MOV RBX,RAX
LAB_0014ff45:
MOV RDI,RSP
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0013daf6
LAB_0014ff57:
LEA RSI,[0x1ab79f]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x00124de1
MOV BPL,0x1
LAB_0014ff6e:
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x00118a80
XOR EBP,EBP
MOV RSI,qword ptr [0x001dcfe8]
MOV RDX,qword ptr [0x001dcf60]
MOV RDI,RBX
CALL 0x00118b30
|
/* minja::Value::set(minja::Value const&, minja::Value const&) */
void __thiscall minja::Value::set(Value *this,Value *param_1,Value *param_2)
{
long lVar1;
runtime_error *prVar2;
int1 auStack_58 [32];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_38 [32];
if (*(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>>>
**)(this + 0x20) ==
(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>>>
*)0x0) {
prVar2 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0014fee8 to 0014fef9 has its CatchHandler @ 0014fff9 */
dump_abi_cxx11_((int)auStack_58,SUB81(this,0));
/* try { // try from 0014fefa to 0014ff0d has its CatchHandler @ 0014ffd7 */
std::operator+((char *)local_38,(string *)"Value is not an object: ");
/* try { // try from 0014ff11 to 0014ff35 has its CatchHandler @ 0014ff97 */
std::runtime_error::runtime_error(prVar2,(string *)local_38);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar2,PTR_typeinfo_001dcfe8,PTR__runtime_error_001dcf60);
}
if (((*(long *)(param_1 + 0x10) == 0) && (*(long *)(param_1 + 0x20) == 0)) &&
(*(long *)(param_1 + 0x30) == 0)) {
lVar1 = 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>>>
::operator[](*(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>>>
**)(this + 0x20),(basic_json *)(param_1 + 0x40));
*(int8 *)(lVar1 + 0x10) = *(int8 *)(param_2 + 0x10);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(lVar1 + 0x18),
(__shared_count *)(param_2 + 0x18));
*(int8 *)(lVar1 + 0x20) = *(int8 *)(param_2 + 0x20);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(lVar1 + 0x28),
(__shared_count *)(param_2 + 0x28));
*(int8 *)(lVar1 + 0x30) = *(int8 *)(param_2 + 0x30);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(lVar1 + 0x38),
(__shared_count *)(param_2 + 0x38));
/* try { // try from 0014fe9f to 0014feab has its CatchHandler @ 0015000c */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_38,(basic_json *)(param_2 + 0x40));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::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>
*)(lVar1 + 0x40),(data *)local_38);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_38,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_38);
return;
}
prVar2 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0014ff45 to 0014ff56 has its CatchHandler @ 0014fff7 */
dump_abi_cxx11_((int)auStack_58,SUB81(this,0));
/* try { // try from 0014ff57 to 0014ff6a has its CatchHandler @ 0014ff95 */
std::operator+((char *)local_38,(string *)"Unashable type: ");
/* try { // try from 0014ff6e to 0014ff92 has its CatchHandler @ 0014ff93 */
std::runtime_error::runtime_error(prVar2,(string *)local_38);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar2,PTR_typeinfo_001dcfe8,PTR__runtime_error_001dcf60);
}
|
|
10,743 |
vsort_float
|
davidesantangelo[P]vsort/vsort.c
|
VSORT_API void vsort_float(float arr[], int n)
{
vsort_init();
if (!arr || n <= 1)
return;
vsort_log_debug("Starting vsort (float) for %d elements.", n);
if (n < thresholds.parallel_threshold)
{
vsort_sequential_float(arr, n);
}
else
{
#if defined(VSORT_APPLE) && defined(__arm64__)
vsort_parallel_float(arr, n);
#else
vsort_log_info("Parallel sort not available on this platform, using sequential.");
vsort_sequential_float(arr, n);
#endif
}
vsort_log_debug("vsort (float) completed for %d elements.", n);
}
|
O3
|
c
|
vsort_float:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
callq 0x1588
testq %r14, %r14
sete %al
cmpl $0x2, %ebx
setl %cl
orb %al, %cl
je 0x1233
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x1fe6(%rip), %rdi # 0x3220
movl %ebx, %esi
xorl %eax, %eax
callq 0x2976
cmpl %ebx, 0x4e97(%rip) # 0x60e0
jg 0x1259
leaq 0x1f67(%rip), %rdi # 0x31b9
xorl %eax, %eax
callq 0x28e3
movq %r14, %rdi
movl %ebx, %esi
callq 0x1fbe
leaq 0x1fde(%rip), %rdi # 0x3248
movl %ebx, %esi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2976
|
vsort_float:
push r14
push rbx
push rax
mov ebx, esi
mov r14, rdi
call vsort_init
test r14, r14
setz al
cmp ebx, 2
setl cl
or cl, al
jz short loc_1233
add rsp, 8
pop rbx
pop r14
retn
loc_1233:
lea rdi, aStartingVsortF; "Starting vsort (float) for %d elements."
mov esi, ebx
xor eax, eax
call vsort_log_debug
cmp cs:thresholds_2, ebx
jg short loc_1259
lea rdi, aParallelSortNo; "Parallel sort not available on this pla"...
xor eax, eax
call vsort_log_info
loc_1259:
mov rdi, r14
mov esi, ebx
call vsort_sequential_float
lea rdi, aVsortFloatComp; "vsort (float) completed for %d elements"...
mov esi, ebx
xor eax, eax
add rsp, 8
pop rbx
pop r14
jmp vsort_log_debug
|
char vsort_float(long long a1, int a2, long long a3, long long a4, long long a5, long long a6, char a7)
{
char v7; // al
int v8; // edx
int v9; // r8d
int v10; // r9d
char result; // al
int v12; // ecx
int v13; // edx
int v14; // ecx
int v15; // r8d
int v16; // r9d
int v17; // edx
int v18; // ecx
int v19; // r8d
int v20; // r9d
char v21; // [rsp-8h] [rbp-18h]
char v22; // [rsp-8h] [rbp-18h]
v21 = v7;
vsort_init();
result = a1 == 0;
LOBYTE(v12) = a1 == 0 || a2 < 2;
if ( !(_BYTE)v12 )
{
vsort_log_debug((unsigned int)"Starting vsort (float) for %d elements.", a2, v8, v12, v9, v10, v21);
if ( thresholds_2 <= a2 )
vsort_log_info(
(unsigned int)"Parallel sort not available on this platform, using sequential.",
a2,
v13,
v14,
v15,
v16,
v22);
vsort_sequential_float(a1, (unsigned int)a2);
return vsort_log_debug((unsigned int)"vsort (float) completed for %d elements.", a2, v17, v18, v19, v20, a7);
}
return result;
}
|
vsort_float:
PUSH R14
PUSH RBX
PUSH RAX
MOV EBX,ESI
MOV R14,RDI
CALL 0x00101588
TEST R14,R14
SETZ AL
CMP EBX,0x2
SETL CL
OR CL,AL
JZ 0x00101233
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_00101233:
LEA RDI,[0x103220]
MOV ESI,EBX
XOR EAX,EAX
CALL 0x00102976
CMP dword ptr [0x001060e0],EBX
JG 0x00101259
LEA RDI,[0x1031b9]
XOR EAX,EAX
CALL 0x001028e3
LAB_00101259:
MOV RDI,R14
MOV ESI,EBX
CALL 0x00101fbe
LEA RDI,[0x103248]
MOV ESI,EBX
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x00102976
|
void vsort_float(long param_1,int param_2)
{
vsort_init();
if (param_2 < 2 || param_1 == 0) {
return;
}
vsort_log_debug("Starting vsort (float) for %d elements.",param_2);
if (thresholds_2 <= param_2) {
vsort_log_info("Parallel sort not available on this platform, using sequential.");
}
vsort_sequential_float(param_1,param_2);
vsort_log_debug("vsort (float) completed for %d elements.",param_2);
return;
}
|
|
10,744 |
dach_set_double
|
xtate/src/util-data/data-chain.c
|
DataLink *dach_set_double(DataChain *dach, const char *name, double value) {
DataLink *link = dach_find_link(dach, name);
if (link == NULL) {
link = _dach_new_link(dach, name, 0, LinkType_Double);
}
return dach_set_double_by_link(link, value);
}
|
O3
|
c
|
dach_set_double:
pushq %rax
movb (%rsi), %al
testb %al, %al
je 0x4f192
leaq 0x1(%rsi), %rdx
xorl %ecx, %ecx
imull $0x97, %ecx, %r8d
movsbl %al, %ecx
addl %r8d, %ecx
movb (%rdx), %al
incq %rdx
testb %al, %al
jne 0x4f17a
jmp 0x4f194
xorl %ecx, %ecx
leaq 0x8(%rdi), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x4f1a7
cmpl %ecx, 0x2c(%rax)
jne 0x4f198
jmp 0x4f1bd
xorl %edx, %edx
movl $0x4, %ecx
movsd %xmm0, (%rsp)
callq 0x4eef6
movsd (%rsp), %xmm0
cmpl $0x4, 0x30(%rax)
jne 0x4f1c8
movsd %xmm0, 0x40(%rax)
popq %rcx
retq
|
dach_set_double:
push rax
mov al, [rsi]
test al, al
jz short loc_4F192
lea rdx, [rsi+1]
xor ecx, ecx
loc_4F17A:
imul r8d, ecx, 97h
movsx ecx, al
add ecx, r8d
mov al, [rdx]
inc rdx
test al, al
jnz short loc_4F17A
jmp short loc_4F194
loc_4F192:
xor ecx, ecx
loc_4F194:
lea rax, [rdi+8]
loc_4F198:
mov rax, [rax]
test rax, rax
jz short loc_4F1A7
cmp [rax+2Ch], ecx
jnz short loc_4F198
jmp short loc_4F1BD
loc_4F1A7:
xor edx, edx
mov ecx, 4
movsd [rsp+8+var_8], xmm0
call _dach_new_link
movsd xmm0, [rsp+8+var_8]
loc_4F1BD:
cmp dword ptr [rax+30h], 4
jnz short loc_4F1C8
movsd qword ptr [rax+40h], xmm0
loc_4F1C8:
pop rcx
retn
|
long long dach_set_double(long long a1, char *a2, double a3)
{
char v3; // al
char *v4; // rdx
int v5; // ecx
long long result; // rax
v3 = *a2;
if ( *a2 )
{
v4 = a2 + 1;
v5 = 0;
do
{
v5 = 151 * v5 + v3;
v3 = *v4++;
}
while ( v3 );
}
else
{
v5 = 0;
}
result = a1 + 8;
while ( 1 )
{
result = *(_QWORD *)result;
if ( !result )
break;
if ( *(_DWORD *)(result + 44) == v5 )
goto LABEL_11;
}
result = dach_new_link(a1, a2, 0LL, 4);
LABEL_11:
if ( *(_DWORD *)(result + 48) == 4 )
*(double *)(result + 64) = a3;
return result;
}
|
dach_set_double:
PUSH RAX
MOV AL,byte ptr [RSI]
TEST AL,AL
JZ 0x0014f192
LEA RDX,[RSI + 0x1]
XOR ECX,ECX
LAB_0014f17a:
IMUL R8D,ECX,0x97
MOVSX ECX,AL
ADD ECX,R8D
MOV AL,byte ptr [RDX]
INC RDX
TEST AL,AL
JNZ 0x0014f17a
JMP 0x0014f194
LAB_0014f192:
XOR ECX,ECX
LAB_0014f194:
LEA RAX,[RDI + 0x8]
LAB_0014f198:
MOV RAX,qword ptr [RAX]
TEST RAX,RAX
JZ 0x0014f1a7
CMP dword ptr [RAX + 0x2c],ECX
JNZ 0x0014f198
JMP 0x0014f1bd
LAB_0014f1a7:
XOR EDX,EDX
MOV ECX,0x4
MOVSD qword ptr [RSP],XMM0
CALL 0x0014eef6
MOVSD XMM0,qword ptr [RSP]
LAB_0014f1bd:
CMP dword ptr [RAX + 0x30],0x4
JNZ 0x0014f1c8
MOVSD qword ptr [RAX + 0x40],XMM0
LAB_0014f1c8:
POP RCX
RET
|
void dach_set_double(int8 param_1,long param_2,char *param_3)
{
char cVar1;
long *plVar2;
int iVar3;
char *pcVar4;
cVar1 = *param_3;
if (cVar1 == '\0') {
iVar3 = 0;
}
else {
pcVar4 = param_3 + 1;
iVar3 = 0;
do {
iVar3 = (int)cVar1 + iVar3 * 0x97;
cVar1 = *pcVar4;
pcVar4 = pcVar4 + 1;
} while (cVar1 != '\0');
}
plVar2 = (long *)(param_2 + 8);
do {
plVar2 = (long *)*plVar2;
if (plVar2 == (long *)0x0) {
plVar2 = (long *)_dach_new_link(param_2,param_3,0,4);
break;
}
} while (*(int *)((long)plVar2 + 0x2c) != iVar3);
if (*(int *)((long)plVar2 + 0x30) == 4) {
*(int8 *)((long)plVar2 + 0x40) = param_1;
}
return;
}
|
|
10,745 |
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::find_largest_pow10(unsigned int, unsigned int&)
|
hkr04[P]cpp-mcp/common/json.hpp
|
inline int find_largest_pow10(const std::uint32_t n, std::uint32_t& pow10)
{
// LCOV_EXCL_START
if (n >= 1000000000)
{
pow10 = 1000000000;
return 10;
}
// LCOV_EXCL_STOP
if (n >= 100000000)
{
pow10 = 100000000;
return 9;
}
if (n >= 10000000)
{
pow10 = 10000000;
return 8;
}
if (n >= 1000000)
{
pow10 = 1000000;
return 7;
}
if (n >= 100000)
{
pow10 = 100000;
return 6;
}
if (n >= 10000)
{
pow10 = 10000;
return 5;
}
if (n >= 1000)
{
pow10 = 1000;
return 4;
}
if (n >= 100)
{
pow10 = 100;
return 3;
}
if (n >= 10)
{
pow10 = 10;
return 2;
}
pow10 = 1;
return 1;
}
|
O0
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::find_largest_pow10(unsigned int, unsigned int&):
movl %edi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
cmpl $0x3b9aca00, -0x8(%rsp) # imm = 0x3B9ACA00
jb 0x7bd1b
movq -0x10(%rsp), %rax
movl $0x3b9aca00, (%rax) # imm = 0x3B9ACA00
movl $0xa, -0x4(%rsp)
jmp 0x7be2c
cmpl $0x5f5e100, -0x8(%rsp) # imm = 0x5F5E100
jb 0x7bd3d
movq -0x10(%rsp), %rax
movl $0x5f5e100, (%rax) # imm = 0x5F5E100
movl $0x9, -0x4(%rsp)
jmp 0x7be2c
cmpl $0x989680, -0x8(%rsp) # imm = 0x989680
jb 0x7bd5f
movq -0x10(%rsp), %rax
movl $0x989680, (%rax) # imm = 0x989680
movl $0x8, -0x4(%rsp)
jmp 0x7be2c
cmpl $0xf4240, -0x8(%rsp) # imm = 0xF4240
jb 0x7bd81
movq -0x10(%rsp), %rax
movl $0xf4240, (%rax) # imm = 0xF4240
movl $0x7, -0x4(%rsp)
jmp 0x7be2c
cmpl $0x186a0, -0x8(%rsp) # imm = 0x186A0
jb 0x7bda3
movq -0x10(%rsp), %rax
movl $0x186a0, (%rax) # imm = 0x186A0
movl $0x6, -0x4(%rsp)
jmp 0x7be2c
cmpl $0x2710, -0x8(%rsp) # imm = 0x2710
jb 0x7bdc2
movq -0x10(%rsp), %rax
movl $0x2710, (%rax) # imm = 0x2710
movl $0x5, -0x4(%rsp)
jmp 0x7be2c
cmpl $0x3e8, -0x8(%rsp) # imm = 0x3E8
jb 0x7bde1
movq -0x10(%rsp), %rax
movl $0x3e8, (%rax) # imm = 0x3E8
movl $0x4, -0x4(%rsp)
jmp 0x7be2c
cmpl $0x64, -0x8(%rsp)
jb 0x7bdfd
movq -0x10(%rsp), %rax
movl $0x64, (%rax)
movl $0x3, -0x4(%rsp)
jmp 0x7be2c
cmpl $0xa, -0x8(%rsp)
jb 0x7be19
movq -0x10(%rsp), %rax
movl $0xa, (%rax)
movl $0x2, -0x4(%rsp)
jmp 0x7be2c
movq -0x10(%rsp), %rax
movl $0x1, (%rax)
movl $0x1, -0x4(%rsp)
movl -0x4(%rsp), %eax
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
|
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl18find_largest_pow10EjRj:
mov [rsp+var_8], edi
mov [rsp+var_10], rsi
cmp [rsp+var_8], 3B9ACA00h
jb short loc_7BD1B
mov rax, [rsp+var_10]
mov dword ptr [rax], 3B9ACA00h
mov [rsp+var_4], 0Ah
jmp loc_7BE2C
loc_7BD1B:
cmp [rsp+var_8], 5F5E100h
jb short loc_7BD3D
mov rax, [rsp+var_10]
mov dword ptr [rax], 5F5E100h
mov [rsp+var_4], 9
jmp loc_7BE2C
loc_7BD3D:
cmp [rsp+var_8], 989680h
jb short loc_7BD5F
mov rax, [rsp+var_10]
mov dword ptr [rax], 989680h
mov [rsp+var_4], 8
jmp loc_7BE2C
loc_7BD5F:
cmp [rsp+var_8], offset unk_F4240
jb short loc_7BD81
mov rax, [rsp+var_10]
mov dword ptr [rax], offset unk_F4240
mov [rsp+var_4], 7
jmp loc_7BE2C
loc_7BD81:
cmp [rsp+var_8], 186A0h
jb short loc_7BDA3
mov rax, [rsp+var_10]
mov dword ptr [rax], 186A0h
mov [rsp+var_4], 6
jmp loc_7BE2C
loc_7BDA3:
cmp [rsp+var_8], 2710h
jb short loc_7BDC2
mov rax, [rsp+var_10]
mov dword ptr [rax], 2710h
mov [rsp+var_4], 5
jmp short loc_7BE2C
loc_7BDC2:
cmp [rsp+var_8], 3E8h
jb short loc_7BDE1
mov rax, [rsp+var_10]
mov dword ptr [rax], 3E8h
mov [rsp+var_4], 4
jmp short loc_7BE2C
loc_7BDE1:
cmp [rsp+var_8], 64h ; 'd'
jb short loc_7BDFD
mov rax, [rsp+var_10]
mov dword ptr [rax], 64h ; 'd'
mov [rsp+var_4], 3
jmp short loc_7BE2C
loc_7BDFD:
cmp [rsp+var_8], 0Ah
jb short loc_7BE19
mov rax, [rsp+var_10]
mov dword ptr [rax], 0Ah
mov [rsp+var_4], 2
jmp short loc_7BE2C
loc_7BE19:
mov rax, [rsp+var_10]
mov dword ptr [rax], 1
mov [rsp+var_4], 1
loc_7BE2C:
mov eax, [rsp+var_4]
retn
|
long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::find_largest_pow10(
nlohmann::json_abi_v3_11_3::detail::dtoa_impl *this,
_DWORD *a2,
unsigned int *a3)
{
if ( (unsigned int)this < 0x3B9ACA00 )
{
if ( (unsigned int)this < 0x5F5E100 )
{
if ( (unsigned int)this < 0x989680 )
{
if ( (unsigned int)this < (unsigned int)&unk_F4240 )
{
if ( (unsigned int)this < 0x186A0 )
{
if ( (unsigned int)this < 0x2710 )
{
if ( (unsigned int)this < 0x3E8 )
{
if ( (unsigned int)this < 0x64 )
{
if ( (unsigned int)this < 0xA )
{
*a2 = 1;
return 1;
}
else
{
*a2 = 10;
return 2;
}
}
else
{
*a2 = 100;
return 3;
}
}
else
{
*a2 = 1000;
return 4;
}
}
else
{
*a2 = 10000;
return 5;
}
}
else
{
*a2 = 100000;
return 6;
}
}
else
{
*a2 = (_DWORD)&unk_F4240;
return 7;
}
}
else
{
*a2 = 10000000;
return 8;
}
}
else
{
*a2 = 100000000;
return 9;
}
}
else
{
*a2 = 1000000000;
return 10;
}
}
|
find_largest_pow10:
MOV dword ptr [RSP + -0x8],EDI
MOV qword ptr [RSP + -0x10],RSI
CMP dword ptr [RSP + -0x8],0x3b9aca00
JC 0x0017bd1b
MOV RAX,qword ptr [RSP + -0x10]
MOV dword ptr [RAX],0x3b9aca00
MOV dword ptr [RSP + -0x4],0xa
JMP 0x0017be2c
LAB_0017bd1b:
CMP dword ptr [RSP + -0x8],0x5f5e100
JC 0x0017bd3d
MOV RAX,qword ptr [RSP + -0x10]
MOV dword ptr [RAX],0x5f5e100
MOV dword ptr [RSP + -0x4],0x9
JMP 0x0017be2c
LAB_0017bd3d:
CMP dword ptr [RSP + -0x8],0x989680
JC 0x0017bd5f
MOV RAX,qword ptr [RSP + -0x10]
MOV dword ptr [RAX],0x989680
MOV dword ptr [RSP + -0x4],0x8
JMP 0x0017be2c
LAB_0017bd5f:
CMP dword ptr [RSP + -0x8],0xf4240
JC 0x0017bd81
MOV RAX,qword ptr [RSP + -0x10]
MOV dword ptr [RAX],0xf4240
MOV dword ptr [RSP + -0x4],0x7
JMP 0x0017be2c
LAB_0017bd81:
CMP dword ptr [RSP + -0x8],0x186a0
JC 0x0017bda3
MOV RAX,qword ptr [RSP + -0x10]
MOV dword ptr [RAX],0x186a0
MOV dword ptr [RSP + -0x4],0x6
JMP 0x0017be2c
LAB_0017bda3:
CMP dword ptr [RSP + -0x8],0x2710
JC 0x0017bdc2
MOV RAX,qword ptr [RSP + -0x10]
MOV dword ptr [RAX],0x2710
MOV dword ptr [RSP + -0x4],0x5
JMP 0x0017be2c
LAB_0017bdc2:
CMP dword ptr [RSP + -0x8],0x3e8
JC 0x0017bde1
MOV RAX,qword ptr [RSP + -0x10]
MOV dword ptr [RAX],0x3e8
MOV dword ptr [RSP + -0x4],0x4
JMP 0x0017be2c
LAB_0017bde1:
CMP dword ptr [RSP + -0x8],0x64
JC 0x0017bdfd
MOV RAX,qword ptr [RSP + -0x10]
MOV dword ptr [RAX],0x64
MOV dword ptr [RSP + -0x4],0x3
JMP 0x0017be2c
LAB_0017bdfd:
CMP dword ptr [RSP + -0x8],0xa
JC 0x0017be19
MOV RAX,qword ptr [RSP + -0x10]
MOV dword ptr [RAX],0xa
MOV dword ptr [RSP + -0x4],0x2
JMP 0x0017be2c
LAB_0017be19:
MOV RAX,qword ptr [RSP + -0x10]
MOV dword ptr [RAX],0x1
MOV dword ptr [RSP + -0x4],0x1
LAB_0017be2c:
MOV EAX,dword ptr [RSP + -0x4]
RET
|
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::find_largest_pow10(unsigned int, unsigned int&) */
int4
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::find_largest_pow10(uint param_1,uint *param_2)
{
int4 local_4;
if (param_1 < 1000000000) {
if (param_1 < 100000000) {
if (param_1 < 10000000) {
if (param_1 < 1000000) {
if (param_1 < 100000) {
if (param_1 < 10000) {
if (param_1 < 1000) {
if (param_1 < 100) {
if (param_1 < 10) {
*param_2 = 1;
local_4 = 1;
}
else {
*param_2 = 10;
local_4 = 2;
}
}
else {
*param_2 = 100;
local_4 = 3;
}
}
else {
*param_2 = 1000;
local_4 = 4;
}
}
else {
*param_2 = 10000;
local_4 = 5;
}
}
else {
*param_2 = 100000;
local_4 = 6;
}
}
else {
*param_2 = 1000000;
local_4 = 7;
}
}
else {
*param_2 = 10000000;
local_4 = 8;
}
}
else {
*param_2 = 100000000;
local_4 = 9;
}
}
else {
*param_2 = 1000000000;
local_4 = 10;
}
return local_4;
}
|
|
10,746 |
blst_fp_from_uint64
|
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/exports.c
|
void blst_fp_from_uint64(vec384 ret, const unsigned long long a[6])
{
const union {
long one;
char little;
} is_endian = { 1 };
if (sizeof(limb_t) == 4 && !is_endian.little) {
int i;
for (i = 0; i < 6; i++) {
unsigned long long limb = a[i];
ret[2*i] = (limb_t)limb;
ret[2*i+1] = (limb_t)(limb >> 32);
}
a = (const unsigned long long *)ret;
}
mul_fp(ret, (const limb_t *)a, BLS12_381_RR);
}
|
O0
|
c
|
blst_fp_from_uint64:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq 0x316c9(%rip), %rax # 0xe6330
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq 0x31666(%rip), %rdx # 0xe62e0
callq 0xb4a30
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
|
blst_fp_from_uint64:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, cs:qword_E6330
mov [rbp+var_18], rax
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
lea rdx, BLS12_381_RR
call mul_fp
add rsp, 20h
pop rbp
retn
|
long long blst_fp_from_uint64(long long a1, long long a2)
{
return mul_fp(a1, a2, (long long)&BLS12_381_RR);
}
|
blst_fp_from_uint64:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [0x001e6330]
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
LEA RDX,[0x1e62e0]
CALL 0x001b4a30
ADD RSP,0x20
POP RBP
RET
|
void blst_fp_from_uint64(int8 param_1,int8 param_2)
{
mul_fp(param_1,param_2,BLS12_381_RR);
return;
}
|
|
10,747 |
get_head_or_tail_page
|
eloqsql/storage/maria/ma_blockrec.c
|
static my_bool get_head_or_tail_page(MARIA_HA *info,
const MARIA_BITMAP_BLOCK *block,
uchar *buff, uint length, uint page_type,
enum pagecache_page_lock lock,
struct st_row_pos_info *res)
{
uint block_size;
MARIA_PINNED_PAGE page_link;
MARIA_SHARE *share= info->s;
DBUG_ENTER("get_head_or_tail_page");
DBUG_PRINT("enter", ("page_type: %u length: %u", page_type, length));
block_size= share->block_size;
if (block->org_bitmap_value == 0) /* Empty block */
{
/* New page */
make_empty_page(info, buff, page_type, 1);
res->buff= buff;
res->empty_space= res->length= (block_size - PAGE_OVERHEAD_SIZE(share));
res->data= (buff + PAGE_HEADER_SIZE(share));
res->dir= res->data + res->length;
res->rownr= 0;
DBUG_ASSERT(length <= res->length);
}
else
{
uchar *dir;
/* Read old page */
page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK;
res->buff= pagecache_read(share->pagecache, &info->dfile,
block->page, 0, 0, share->page_type,
lock, &page_link.link);
page_link.changed= res->buff != 0;
push_dynamic(&info->pinned_pages, (void*) &page_link);
if (!page_link.changed)
{
_ma_set_fatal_error(info, my_errno);
DBUG_RETURN(1);
}
DBUG_ASSERT((uint) (res->buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) ==
page_type);
if (!(dir= find_free_position(info, res->buff, block_size, &res->rownr,
&res->length, &res->empty_space,
page_type == HEAD_PAGE)))
goto crashed;
if (res->length < length)
{
if (res->empty_space + res->length >= length)
{
_ma_compact_block_page(share,
res->buff, res->rownr, 1,
(page_type == HEAD_PAGE ?
info->trn->min_read_from : 0),
(page_type == HEAD_PAGE ?
share->base.min_block_length :
0));
/* All empty space are now after current position */
dir= dir_entry_pos(res->buff, block_size, res->rownr);
res->length= res->empty_space= uint2korr(dir+2);
}
if (res->length < length)
{
DBUG_PRINT("error", ("length: %u res->length: %u empty_space: %u",
length, res->length, res->empty_space));
goto crashed; /* Wrong bitmap information */
}
}
res->dir= dir;
res->data= res->buff + uint2korr(dir);
}
DBUG_RETURN(0);
crashed:
DBUG_ASSERT(!maria_assert_if_crashed_table);
_ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD); /* File crashed */
DBUG_RETURN(1);
}
|
O0
|
c
|
get_head_or_tail_page:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movl %r8d, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x50(%rbp)
jmp 0x7f283
movq -0x50(%rbp), %rax
movl 0x7bc(%rax), %eax
movl %eax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movzbl 0x15(%rax), %eax
cmpl $0x0, %eax
jne 0x7f32b
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x28(%rbp), %edx
movl $0x1, %ecx
callq 0x79640
movq -0x20(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, (%rax)
movl -0x30(%rbp), %ecx
movq -0x50(%rbp), %rax
movl 0xc18(%rax), %eax
addl $0x14, %eax
subl %eax, %ecx
movq 0x10(%rbp), %rax
movl %ecx, 0x18(%rax)
movq 0x10(%rbp), %rax
movl %ecx, 0x20(%rax)
movq -0x20(%rbp), %rcx
movq -0x50(%rbp), %rax
movl 0xc18(%rax), %eax
addl $0xc, %eax
movl %eax, %eax
addq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rbp), %rax
movl 0x18(%rax), %eax
addq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq 0x10(%rbp), %rax
movl $0x0, 0x1c(%rax)
jmp 0x7f326
jmp 0x7f545
movl $0x6, -0x40(%rbp)
movq -0x50(%rbp), %rax
movq 0x600(%rax), %rdi
movq -0x10(%rbp), %rsi
addq $0x470, %rsi # imm = 0x470
movq -0x18(%rbp), %rax
movq (%rax), %rdx
movq -0x50(%rbp), %rax
movl 0x7d4(%rax), %r9d
movl -0x2c(%rbp), %r10d
leaq -0x48(%rbp), %rax
xorl %ecx, %ecx
xorl %r8d, %r8d
movl %r10d, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x589a0
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, (%rax)
movq 0x10(%rbp), %rax
cmpq $0x0, (%rax)
setne %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x38(%rbp)
movq -0x10(%rbp), %rdi
addq $0x2e8, %rdi # imm = 0x2E8
leaq -0x48(%rbp), %rsi
callq 0xd9f10
cmpb $0x0, -0x38(%rbp)
jne 0x7f3cd
movq -0x10(%rbp), %rax
movq %rax, -0x60(%rbp)
callq 0xf55f0
movq -0x60(%rbp), %rdi
movl (%rax), %esi
callq 0x2e940
movb $0x1, -0x1(%rbp)
jmp 0x7f563
jmp 0x7f3cf
jmp 0x7f3d1
movq -0x10(%rbp), %rdi
movq 0x10(%rbp), %rax
movq (%rax), %rsi
movl -0x30(%rbp), %edx
movq 0x10(%rbp), %rcx
addq $0x1c, %rcx
movq 0x10(%rbp), %r8
addq $0x18, %r8
movq 0x10(%rbp), %r9
addq $0x20, %r9
cmpl $0x1, -0x28(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
movsbl %al, %eax
movl %eax, (%rsp)
callq 0x7f570
movq %rax, -0x58(%rbp)
cmpq $0x0, %rax
jne 0x7f41d
jmp 0x7f54d
movq 0x10(%rbp), %rax
movl 0x18(%rax), %eax
cmpl -0x24(%rbp), %eax
jae 0x7f51e
movq 0x10(%rbp), %rax
movl 0x20(%rax), %eax
movq 0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
cmpl -0x24(%rbp), %eax
jb 0x7f50a
movq -0x50(%rbp), %rax
movq %rax, -0x78(%rbp)
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x70(%rbp)
movq 0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0x64(%rbp)
cmpl $0x1, -0x28(%rbp)
jne 0x7f47c
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x80(%rax), %rax
movq %rax, -0x80(%rbp)
jmp 0x7f484
xorl %eax, %eax
movq %rax, -0x80(%rbp)
jmp 0x7f484
movq -0x80(%rbp), %rax
movq %rax, -0x88(%rbp)
cmpl $0x1, -0x28(%rbp)
jne 0x7f4a9
movq -0x50(%rbp), %rax
movq 0x3b8(%rax), %rax
movq %rax, -0x90(%rbp)
jmp 0x7f4b4
xorl %eax, %eax
movq %rax, -0x90(%rbp)
jmp 0x7f4b4
movq -0x88(%rbp), %r8
movl -0x64(%rbp), %edx
movq -0x70(%rbp), %rsi
movq -0x78(%rbp), %rdi
movq -0x90(%rbp), %rax
movl %eax, %r9d
movl $0x1, %ecx
callq 0x73ea0
movq 0x10(%rbp), %rax
movq (%rax), %rdi
movl -0x30(%rbp), %esi
movq 0x10(%rbp), %rax
movl 0x1c(%rax), %edx
callq 0x745d0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movzwl 0x2(%rax), %ecx
movq 0x10(%rbp), %rax
movl %ecx, 0x20(%rax)
movq 0x10(%rbp), %rax
movl %ecx, 0x18(%rax)
movq 0x10(%rbp), %rax
movl 0x18(%rax), %eax
cmpl -0x24(%rbp), %eax
jae 0x7f51c
jmp 0x7f518
jmp 0x7f51a
jmp 0x7f54d
jmp 0x7f51e
movq -0x58(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq 0x10(%rbp), %rax
movq (%rax), %rcx
movq -0x58(%rbp), %rax
movzwl (%rax), %eax
cltq
addq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0x7f547
movb $0x0, -0x1(%rbp)
jmp 0x7f563
jmp 0x7f54f
jmp 0x7f551
movq -0x10(%rbp), %rdi
movl $0x7f, %esi
callq 0x2e940
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0xa0, %rsp
popq %rbp
retq
nop
|
get_head_or_tail_page:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov rax, [rbp+arg_0]
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_2C], r9d
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_50], rax
jmp short $+2
loc_7F283:
mov rax, [rbp+var_50]
mov eax, [rax+7BCh]
mov [rbp+var_30], eax
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+15h]
cmp eax, 0
jnz loc_7F32B
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
mov edx, [rbp+var_28]
mov ecx, 1
call make_empty_page
mov rcx, [rbp+var_20]
mov rax, [rbp+arg_0]
mov [rax], rcx
mov ecx, [rbp+var_30]
mov rax, [rbp+var_50]
mov eax, [rax+0C18h]
add eax, 14h
sub ecx, eax
mov rax, [rbp+arg_0]
mov [rax+18h], ecx
mov rax, [rbp+arg_0]
mov [rax+20h], ecx
mov rcx, [rbp+var_20]
mov rax, [rbp+var_50]
mov eax, [rax+0C18h]
add eax, 0Ch
mov eax, eax
add rcx, rax
mov rax, [rbp+arg_0]
mov [rax+8], rcx
mov rax, [rbp+arg_0]
mov rcx, [rax+8]
mov rax, [rbp+arg_0]
mov eax, [rax+18h]
add rcx, rax
mov rax, [rbp+arg_0]
mov [rax+10h], rcx
mov rax, [rbp+arg_0]
mov dword ptr [rax+1Ch], 0
jmp short $+2
loc_7F326:
jmp loc_7F545
loc_7F32B:
mov [rbp+var_40], 6
mov rax, [rbp+var_50]
mov rdi, [rax+600h]
mov rsi, [rbp+var_10]
add rsi, 470h
mov rax, [rbp+var_18]
mov rdx, [rax]
mov rax, [rbp+var_50]
mov r9d, [rax+7D4h]
mov r10d, [rbp+var_2C]
lea rax, [rbp+var_48]
xor ecx, ecx
xor r8d, r8d
mov [rsp+0A0h+var_A0], r10d
mov [rsp+0A0h+var_98], rax
call pagecache_read
mov rcx, rax
mov rax, [rbp+arg_0]
mov [rax], rcx
mov rax, [rbp+arg_0]
cmp qword ptr [rax], 0
setnz al
and al, 1
movzx eax, al
mov [rbp+var_38], al
mov rdi, [rbp+var_10]
add rdi, 2E8h
lea rsi, [rbp+var_48]
call insert_dynamic
cmp [rbp+var_38], 0
jnz short loc_7F3CD
mov rax, [rbp+var_10]
mov [rbp+var_60], rax
call _my_thread_var
mov rdi, [rbp+var_60]
mov esi, [rax]
call _ma_set_fatal_error
mov [rbp+var_1], 1
jmp loc_7F563
loc_7F3CD:
jmp short $+2
loc_7F3CF:
jmp short $+2
loc_7F3D1:
mov rdi, [rbp+var_10]
mov rax, [rbp+arg_0]
mov rsi, [rax]
mov edx, [rbp+var_30]
mov rcx, [rbp+arg_0]
add rcx, 1Ch
mov r8, [rbp+arg_0]
add r8, 18h
mov r9, [rbp+arg_0]
add r9, 20h ; ' '
cmp [rbp+var_28], 1
setz al
and al, 1
movzx eax, al
movsx eax, al
mov [rsp+0A0h+var_A0], eax
call find_free_position
mov [rbp+var_58], rax
cmp rax, 0
jnz short loc_7F41D
jmp loc_7F54D
loc_7F41D:
mov rax, [rbp+arg_0]
mov eax, [rax+18h]
cmp eax, [rbp+var_24]
jnb loc_7F51E
mov rax, [rbp+arg_0]
mov eax, [rax+20h]
mov rcx, [rbp+arg_0]
add eax, [rcx+18h]
cmp eax, [rbp+var_24]
jb loc_7F50A
mov rax, [rbp+var_50]
mov [rbp+var_78], rax
mov rax, [rbp+arg_0]
mov rax, [rax]
mov [rbp+var_70], rax
mov rax, [rbp+arg_0]
mov eax, [rax+1Ch]
mov [rbp+var_64], eax
cmp [rbp+var_28], 1
jnz short loc_7F47C
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rax, [rax+80h]
mov [rbp+var_80], rax
jmp short loc_7F484
loc_7F47C:
xor eax, eax
mov [rbp+var_80], rax
jmp short $+2
loc_7F484:
mov rax, [rbp+var_80]
mov [rbp+var_88], rax
cmp [rbp+var_28], 1
jnz short loc_7F4A9
mov rax, [rbp+var_50]
mov rax, [rax+3B8h]
mov [rbp+var_90], rax
jmp short loc_7F4B4
loc_7F4A9:
xor eax, eax
mov [rbp+var_90], rax
jmp short $+2
loc_7F4B4:
mov r8, [rbp+var_88]
mov edx, [rbp+var_64]
mov rsi, [rbp+var_70]
mov rdi, [rbp+var_78]
mov rax, [rbp+var_90]
mov r9d, eax
mov ecx, 1
call _ma_compact_block_page
mov rax, [rbp+arg_0]
mov rdi, [rax]
mov esi, [rbp+var_30]
mov rax, [rbp+arg_0]
mov edx, [rax+1Ch]
call dir_entry_pos
mov [rbp+var_58], rax
mov rax, [rbp+var_58]
movzx ecx, word ptr [rax+2]
mov rax, [rbp+arg_0]
mov [rax+20h], ecx
mov rax, [rbp+arg_0]
mov [rax+18h], ecx
loc_7F50A:
mov rax, [rbp+arg_0]
mov eax, [rax+18h]
cmp eax, [rbp+var_24]
jnb short loc_7F51C
jmp short $+2
loc_7F518:
jmp short $+2
loc_7F51A:
jmp short loc_7F54D
loc_7F51C:
jmp short $+2
loc_7F51E:
mov rcx, [rbp+var_58]
mov rax, [rbp+arg_0]
mov [rax+10h], rcx
mov rax, [rbp+arg_0]
mov rcx, [rax]
mov rax, [rbp+var_58]
movzx eax, word ptr [rax]
cdqe
add rcx, rax
mov rax, [rbp+arg_0]
mov [rax+8], rcx
loc_7F545:
jmp short $+2
loc_7F547:
mov [rbp+var_1], 0
jmp short loc_7F563
loc_7F54D:
jmp short $+2
loc_7F54F:
jmp short $+2
loc_7F551:
mov rdi, [rbp+var_10]
mov esi, 7Fh
call _ma_set_fatal_error
mov [rbp+var_1], 1
loc_7F563:
mov al, [rbp+var_1]
add rsp, 0A0h
pop rbp
retn
|
char get_head_or_tail_page(
_DWORD *a1,
long long a2,
_BYTE *a3,
unsigned int a4,
int a5,
unsigned int a6,
double a7,
long long a8)
{
int v8; // ecx
int *v9; // rax
long long v10; // rdx
long long v11; // rcx
long long v12; // r8
int v13; // r9d
long long v14; // rdx
long long v15; // rcx
long long v16; // r8
int v17; // r9d
unsigned long long v19; // [rsp+20h] [rbp-80h]
long long v20; // [rsp+30h] [rbp-70h]
unsigned int v21; // [rsp+3Ch] [rbp-64h]
_DWORD *v22; // [rsp+40h] [rbp-60h]
unsigned __int16 *free_position; // [rsp+48h] [rbp-58h]
long long v24; // [rsp+50h] [rbp-50h]
char v25[8]; // [rsp+58h] [rbp-48h] BYREF
int v26; // [rsp+60h] [rbp-40h]
bool v27; // [rsp+68h] [rbp-38h]
unsigned int v28; // [rsp+70h] [rbp-30h]
unsigned int v29; // [rsp+74h] [rbp-2Ch]
int v30; // [rsp+78h] [rbp-28h]
unsigned int v31; // [rsp+7Ch] [rbp-24h]
_BYTE *v32; // [rsp+80h] [rbp-20h]
long long *v33; // [rsp+88h] [rbp-18h]
_DWORD *v34; // [rsp+90h] [rbp-10h]
v34 = a1;
v33 = (long long *)a2;
v32 = a3;
v31 = a4;
v30 = a5;
v29 = a6;
v24 = *(_QWORD *)a1;
v28 = *(_DWORD *)(*(_QWORD *)a1 + 1980LL);
if ( !*(_BYTE *)(a2 + 21) )
{
make_empty_page((long long)v34, v32, v30, 1);
*(_QWORD *)a8 = v32;
v8 = v28 - (*(_DWORD *)(v24 + 3096) + 20);
*(_DWORD *)(a8 + 24) = v8;
*(_DWORD *)(a8 + 32) = v8;
*(_QWORD *)(a8 + 8) = &v32[*(_DWORD *)(v24 + 3096) + 12];
*(_QWORD *)(a8 + 16) = *(unsigned int *)(a8 + 24) + *(_QWORD *)(a8 + 8);
*(_DWORD *)(a8 + 28) = 0;
return 0;
}
v26 = 6;
*(_QWORD *)a8 = pagecache_read(
*(_QWORD **)(v24 + 1536),
(long long)(v34 + 284),
*v33,
0,
0LL,
*(_DWORD *)(v24 + 2004),
a7,
v29,
v25);
v27 = *(_QWORD *)a8 != 0LL;
insert_dynamic(v34 + 186, v25);
if ( v27 )
{
free_position = (unsigned __int16 *)find_free_position(
(_DWORD)v34,
*(_QWORD *)a8,
v28,
(int)a8 + 28,
(int)a8 + 24,
(int)a8 + 32,
v30 == 1);
if ( !free_position )
goto LABEL_18;
if ( *(_DWORD *)(a8 + 24) < v31 )
{
v15 = a8;
if ( *(_DWORD *)(a8 + 24) + *(_DWORD *)(a8 + 32) >= v31 )
{
v20 = *(_QWORD *)a8;
v21 = *(_DWORD *)(a8 + 28);
if ( v30 == 1 )
v19 = *(_QWORD *)(*((_QWORD *)v34 + 1) + 128LL);
else
v19 = 0LL;
if ( v30 == 1 )
ma_compact_block_page(v24, v20, v21, 1, v19, *(_QWORD *)(v24 + 952));
else
ma_compact_block_page(v24, v20, v21, 1, v19, 0);
free_position = (unsigned __int16 *)dir_entry_pos(*(_QWORD *)a8, v28, *(_DWORD *)(a8 + 28));
v15 = free_position[1];
*(_DWORD *)(a8 + 32) = v15;
*(_DWORD *)(a8 + 24) = v15;
}
if ( *(_DWORD *)(a8 + 24) < v31 )
{
LABEL_18:
ma_set_fatal_error(v34, 127, v14, v15, v16, v17);
return 1;
}
}
*(_QWORD *)(a8 + 16) = free_position;
*(_QWORD *)(a8 + 8) = *free_position + *(_QWORD *)a8;
return 0;
}
v22 = v34;
v9 = (int *)my_thread_var(a7);
ma_set_fatal_error(v22, *v9, v10, v11, v12, v13);
return 1;
}
|
get_head_or_tail_page:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV RAX,qword ptr [RBP + 0x10]
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 dword ptr [RBP + -0x2c],R9D
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x0017f283
LAB_0017f283:
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX + 0x7bc]
MOV dword ptr [RBP + -0x30],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x15]
CMP EAX,0x0
JNZ 0x0017f32b
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RBP + -0x28]
MOV ECX,0x1
CALL 0x00179640
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX],RCX
MOV ECX,dword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX + 0xc18]
ADD EAX,0x14
SUB ECX,EAX
MOV RAX,qword ptr [RBP + 0x10]
MOV dword ptr [RAX + 0x18],ECX
MOV RAX,qword ptr [RBP + 0x10]
MOV dword ptr [RAX + 0x20],ECX
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX + 0xc18]
ADD EAX,0xc
MOV EAX,EAX
ADD RCX,RAX
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + 0x10]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + 0x10]
MOV EAX,dword ptr [RAX + 0x18]
ADD RCX,RAX
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + 0x10]
MOV dword ptr [RAX + 0x1c],0x0
JMP 0x0017f326
LAB_0017f326:
JMP 0x0017f545
LAB_0017f32b:
MOV dword ptr [RBP + -0x40],0x6
MOV RAX,qword ptr [RBP + -0x50]
MOV RDI,qword ptr [RAX + 0x600]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x470
MOV RAX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x50]
MOV R9D,dword ptr [RAX + 0x7d4]
MOV R10D,dword ptr [RBP + -0x2c]
LEA RAX,[RBP + -0x48]
XOR ECX,ECX
XOR R8D,R8D
MOV dword ptr [RSP],R10D
MOV qword ptr [RSP + 0x8],RAX
CALL 0x001589a0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + 0x10]
CMP qword ptr [RAX],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x38],AL
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x2e8
LEA RSI,[RBP + -0x48]
CALL 0x001d9f10
CMP byte ptr [RBP + -0x38],0x0
JNZ 0x0017f3cd
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x60],RAX
CALL 0x001f55f0
MOV RDI,qword ptr [RBP + -0x60]
MOV ESI,dword ptr [RAX]
CALL 0x0012e940
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0017f563
LAB_0017f3cd:
JMP 0x0017f3cf
LAB_0017f3cf:
JMP 0x0017f3d1
LAB_0017f3d1:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + 0x10]
MOV RSI,qword ptr [RAX]
MOV EDX,dword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + 0x10]
ADD RCX,0x1c
MOV R8,qword ptr [RBP + 0x10]
ADD R8,0x18
MOV R9,qword ptr [RBP + 0x10]
ADD R9,0x20
CMP dword ptr [RBP + -0x28],0x1
SETZ AL
AND AL,0x1
MOVZX EAX,AL
MOVSX EAX,AL
MOV dword ptr [RSP],EAX
CALL 0x0017f570
MOV qword ptr [RBP + -0x58],RAX
CMP RAX,0x0
JNZ 0x0017f41d
JMP 0x0017f54d
LAB_0017f41d:
MOV RAX,qword ptr [RBP + 0x10]
MOV EAX,dword ptr [RAX + 0x18]
CMP EAX,dword ptr [RBP + -0x24]
JNC 0x0017f51e
MOV RAX,qword ptr [RBP + 0x10]
MOV EAX,dword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + 0x10]
ADD EAX,dword ptr [RCX + 0x18]
CMP EAX,dword ptr [RBP + -0x24]
JC 0x0017f50a
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RBP + 0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x70],RAX
MOV RAX,qword ptr [RBP + 0x10]
MOV EAX,dword ptr [RAX + 0x1c]
MOV dword ptr [RBP + -0x64],EAX
CMP dword ptr [RBP + -0x28],0x1
JNZ 0x0017f47c
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x80]
MOV qword ptr [RBP + -0x80],RAX
JMP 0x0017f484
LAB_0017f47c:
XOR EAX,EAX
MOV qword ptr [RBP + -0x80],RAX
JMP 0x0017f484
LAB_0017f484:
MOV RAX,qword ptr [RBP + -0x80]
MOV qword ptr [RBP + -0x88],RAX
CMP dword ptr [RBP + -0x28],0x1
JNZ 0x0017f4a9
MOV RAX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RAX + 0x3b8]
MOV qword ptr [RBP + -0x90],RAX
JMP 0x0017f4b4
LAB_0017f4a9:
XOR EAX,EAX
MOV qword ptr [RBP + -0x90],RAX
JMP 0x0017f4b4
LAB_0017f4b4:
MOV R8,qword ptr [RBP + -0x88]
MOV EDX,dword ptr [RBP + -0x64]
MOV RSI,qword ptr [RBP + -0x70]
MOV RDI,qword ptr [RBP + -0x78]
MOV RAX,qword ptr [RBP + -0x90]
MOV R9D,EAX
MOV ECX,0x1
CALL 0x00173ea0
MOV RAX,qword ptr [RBP + 0x10]
MOV RDI,qword ptr [RAX]
MOV ESI,dword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + 0x10]
MOV EDX,dword ptr [RAX + 0x1c]
CALL 0x001745d0
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x58]
MOVZX ECX,word ptr [RAX + 0x2]
MOV RAX,qword ptr [RBP + 0x10]
MOV dword ptr [RAX + 0x20],ECX
MOV RAX,qword ptr [RBP + 0x10]
MOV dword ptr [RAX + 0x18],ECX
LAB_0017f50a:
MOV RAX,qword ptr [RBP + 0x10]
MOV EAX,dword ptr [RAX + 0x18]
CMP EAX,dword ptr [RBP + -0x24]
JNC 0x0017f51c
JMP 0x0017f518
LAB_0017f518:
JMP 0x0017f51a
LAB_0017f51a:
JMP 0x0017f54d
LAB_0017f51c:
JMP 0x0017f51e
LAB_0017f51e:
MOV RCX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + 0x10]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x58]
MOVZX EAX,word ptr [RAX]
CDQE
ADD RCX,RAX
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
LAB_0017f545:
JMP 0x0017f547
LAB_0017f547:
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0017f563
LAB_0017f54d:
JMP 0x0017f54f
LAB_0017f54f:
JMP 0x0017f551
LAB_0017f551:
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x7f
CALL 0x0012e940
MOV byte ptr [RBP + -0x1],0x1
LAB_0017f563:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0xa0
POP RBP
RET
|
int1
get_head_or_tail_page
(long *param_1,int8 *param_2,long param_3,uint param_4,int param_5,
int4 param_6,long *param_7)
{
ushort uVar1;
long lVar2;
long *plVar3;
long lVar4;
int4 *puVar5;
ulong local_98;
int8 local_88;
ushort *local_60;
int1 local_50 [8];
int4 local_48;
char local_40;
int local_38;
int4 local_34;
int local_30;
uint local_2c;
long local_28;
int8 *local_20;
long *local_18;
lVar2 = *param_1;
local_38 = *(int *)(lVar2 + 0x7bc);
local_34 = param_6;
local_30 = param_5;
local_2c = param_4;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
if (*(char *)((long)param_2 + 0x15) == '\0') {
make_empty_page(param_1,param_3,param_5,1);
*param_7 = local_28;
local_38 = local_38 - (*(int *)(lVar2 + 0xc18) + 0x14);
*(int *)(param_7 + 3) = local_38;
*(int *)(param_7 + 4) = local_38;
param_7[1] = local_28 + (ulong)(*(int *)(lVar2 + 0xc18) + 0xc);
param_7[2] = param_7[1] + (ulong)*(uint *)(param_7 + 3);
*(int4 *)((long)param_7 + 0x1c) = 0;
}
else {
local_48 = 6;
lVar4 = pagecache_read(*(int8 *)(lVar2 + 0x600),param_1 + 0x8e,*param_2,0,0,
*(int4 *)(lVar2 + 0x7d4),param_6,local_50);
*param_7 = lVar4;
local_40 = *param_7 != 0;
insert_dynamic(local_18 + 0x5d,local_50);
plVar3 = local_18;
if (local_40 == '\0') {
puVar5 = (int4 *)_my_thread_var();
_ma_set_fatal_error(plVar3,*puVar5);
return 1;
}
local_60 = (ushort *)
find_free_position(local_18,*param_7,local_38,(long)param_7 + 0x1c,param_7 + 3,
param_7 + 4,local_30 == 1);
if (local_60 == (ushort *)0x0) {
LAB_0017f54d:
_ma_set_fatal_error(local_18,0x7f);
return 1;
}
if (*(uint *)(param_7 + 3) < local_2c) {
if (local_2c <= (uint)((int)param_7[4] + (int)param_7[3])) {
if (local_30 == 1) {
local_88 = *(int8 *)(local_18[1] + 0x80);
local_98 = *(ulong *)(lVar2 + 0x3b8);
}
else {
local_88 = 0;
local_98 = 0;
}
_ma_compact_block_page
(lVar2,*param_7,*(int4 *)((long)param_7 + 0x1c),1,local_88,
local_98 & 0xffffffff);
local_60 = (ushort *)dir_entry_pos(*param_7,local_38,*(int4 *)((long)param_7 + 0x1c));
uVar1 = local_60[1];
*(uint *)(param_7 + 4) = (uint)uVar1;
*(uint *)(param_7 + 3) = (uint)uVar1;
}
if (*(uint *)(param_7 + 3) < local_2c) goto LAB_0017f54d;
}
param_7[2] = (long)local_60;
param_7[1] = *param_7 + (long)(int)(uint)*local_60;
}
return 0;
}
|
|
10,748 |
parse_device_list(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
monkey531[P]llama/common/arg.cpp
|
static std::vector<ggml_backend_dev_t> parse_device_list(const std::string & value) {
std::vector<ggml_backend_dev_t> devices;
auto dev_names = string_split<std::string>(value, ',');
if (dev_names.empty()) {
throw std::invalid_argument("no devices specified");
}
if (dev_names.size() == 1 && dev_names[0] == "none") {
devices.push_back(nullptr);
} else {
for (const auto & device : dev_names) {
auto * dev = ggml_backend_dev_by_name(device.c_str());
if (!dev || ggml_backend_dev_type(dev) != GGML_BACKEND_DEVICE_TYPE_GPU) {
throw std::invalid_argument(string_format("invalid device: %s", device.c_str()));
}
devices.push_back(dev);
}
devices.push_back(nullptr);
}
return devices;
}
|
O3
|
cpp
|
parse_device_list(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movl $0x2c, %edx
callq 0x4f273
movq (%r15), %r14
movq 0x8(%r15), %r12
cmpq %r12, %r14
je 0x518ad
movq %r12, %rax
subq %r14, %rax
cmpq $0x20, %rax
jne 0x517cd
leaq 0x96874(%rip), %rsi # 0xe8027
movq %r14, %rdi
callq 0x1a210
testl %eax, %eax
je 0x5184a
movq 0x8(%rsp), %r14
movq 0x10(%rsp), %r12
cmpq %r12, %r14
je 0x5181f
movq %rsp, %r15
movq (%r14), %rdi
callq 0x1a100
movq %rax, (%rsp)
testq %rax, %rax
je 0x51860
movq %rax, %rdi
callq 0x1a170
cmpl $0x1, %eax
jne 0x51860
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x5180b
movq (%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x51816
movq %rbx, %rdi
movq %r15, %rdx
callq 0x62f48
addq $0x20, %r14
cmpq %r12, %r14
jne 0x517d5
leaq 0x20(%rsp), %rsi
movq $0x0, (%rsi)
movq %rbx, %rdi
callq 0x62df0
leaq 0x8(%rsp), %rdi
callq 0x21ede
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20(%rsp), %rsi
movq $0x0, (%rsi)
movq %rbx, %rdi
callq 0x62df0
jmp 0x51833
movl $0x10, %edi
callq 0x1a430
movq %rax, %r15
movq (%r14), %rdx
leaq 0x9b805(%rip), %rsi # 0xed07c
leaq 0x20(%rsp), %rdi
xorl %eax, %eax
callq 0x725e3
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
callq 0x1af40
xorl %ebp, %ebp
movq 0xda734(%rip), %rsi # 0x12bfd0
movq 0xda70d(%rip), %rdx # 0x12bfb0
movq %r15, %rdi
callq 0x1af20
jmp 0x518df
movl $0x10, %edi
callq 0x1a430
movq %rax, %r15
leaq 0x9b7a6(%rip), %rsi # 0xed067
movq %rax, %rdi
callq 0x1b0f0
movq 0xda700(%rip), %rsi # 0x12bfd0
movq 0xda6d9(%rip), %rdx # 0x12bfb0
movq %r15, %rdi
callq 0x1af20
jmp 0x51919
jmp 0x51919
jmp 0x5190c
jmp 0x51919
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x51905
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a8e0
testb %bpl, %bpl
jne 0x5190f
jmp 0x5191c
movq %rax, %r14
movq %r15, %rdi
callq 0x1a670
jmp 0x5191c
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x21ede
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x5193a
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x1a8e0
movq %r14, %rdi
callq 0x1afb0
|
_ZL17parse_device_listRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 40h
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi], xmm0
mov qword ptr [rdi+10h], 0
lea r15, [rsp+68h+var_60]
mov rdi, r15; int
mov edx, 2Ch ; ','; int
call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char)
mov r14, [r15]
mov r12, [r15+8]
cmp r14, r12
jz loc_518AD
mov rax, r12
sub rax, r14
cmp rax, 20h ; ' '
jnz short loc_517CD
lea rsi, aNone; "none"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_5184A
mov r14, qword ptr [rsp+68h+var_60]
mov r12, [rsp+68h+var_58]
loc_517CD:
cmp r14, r12
jz short loc_5181F
mov r15, rsp
loc_517D5:
mov rdi, [r14]
call _ggml_backend_dev_by_name
mov [rsp+68h+var_68], rax
test rax, rax
jz short loc_51860
mov rdi, rax
call _ggml_backend_dev_type
cmp eax, 1
jnz short loc_51860
mov rsi, [rbx+8]
cmp rsi, [rbx+10h]
jz short loc_5180B
mov rax, [rsp+68h+var_68]
mov [rsi], rax
add qword ptr [rbx+8], 8
jmp short loc_51816
loc_5180B:
mov rdi, rbx
mov rdx, r15
call _ZNSt6vectorIP19ggml_backend_deviceSaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_; std::vector<ggml_backend_device *>::_M_realloc_insert<ggml_backend_device * const&>(__gnu_cxx::__normal_iterator<ggml_backend_device **,std::vector<ggml_backend_device *>>,ggml_backend_device * const&)
loc_51816:
add r14, 20h ; ' '
cmp r14, r12
jnz short loc_517D5
loc_5181F:
lea rsi, [rsp+68h+var_48]
mov qword ptr [rsi], 0
mov rdi, rbx
call _ZNSt6vectorIP19ggml_backend_deviceSaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<ggml_backend_device *>::emplace_back<ggml_backend_device *>(ggml_backend_device * &&)
loc_51833:
lea rdi, [rsp+68h+var_60]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_5184A:
lea rsi, [rsp+68h+var_48]
mov qword ptr [rsi], 0
mov rdi, rbx
call _ZNSt6vectorIP19ggml_backend_deviceSaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<ggml_backend_device *>::emplace_back<ggml_backend_device *>(ggml_backend_device * &&)
jmp short loc_51833
loc_51860:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r15, rax
mov rdx, [r14]
lea rsi, aInvalidDeviceS; "invalid device: %s"
lea rdi, [rsp+68h+var_48]
xor eax, eax
call _Z13string_formatB5cxx11PKcz; string_format(char const*,...)
mov bpl, 1
lea rsi, [rsp+68h+var_48]
mov rdi, r15
call __ZNSt16invalid_argumentC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::invalid_argument::invalid_argument(std::string const&)
xor ebp, ebp
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
jmp short loc_518DF
loc_518AD:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aNoDevicesSpeci; "no devices specified"
mov rdi, rax; this
call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
loc_518DF:
jmp short loc_51919
jmp short loc_51919
jmp short loc_5190C
jmp short loc_51919
mov r14, rax
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_51905
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_51905:
test bpl, bpl
jnz short loc_5190F
jmp short loc_5191C
loc_5190C:
mov r14, rax
loc_5190F:
mov rdi, r15; void *
call ___cxa_free_exception
jmp short loc_5191C
loc_51919:
mov r14, rax
loc_5191C:
lea rdi, [rsp+68h+var_60]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, [rbx]; void *
test rdi, rdi
jz short loc_5193A
mov rsi, [rbx+10h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5193A:
mov rdi, r14
call __Unwind_Resume
|
void parse_device_list(long long a1, long long a2)
{
_QWORD *v2; // r14
_QWORD *v3; // r12
long long v4; // rax
long long *v5; // rsi
void *v6; // r15
int v7; // ecx
int v8; // r8d
int v9; // r9d
std::invalid_argument *exception; // r15
long long v11; // [rsp+0h] [rbp-68h] BYREF
int v12[2]; // [rsp+8h] [rbp-60h] BYREF
_QWORD *v13; // [rsp+10h] [rbp-58h]
_QWORD v14[2]; // [rsp+20h] [rbp-48h] BYREF
*(_OWORD *)a1 = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
string_split<std::string>((long long)v12, a2, 0x2Cu);
v2 = *(_QWORD **)v12;
v3 = v13;
if ( *(_QWORD **)v12 == v13 )
{
exception = (std::invalid_argument *)__cxa_allocate_exception(0x10uLL);
std::invalid_argument::invalid_argument(exception, "no devices specified");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::invalid_argument,
(void (*)(void *))&std::invalid_argument::~invalid_argument);
}
if ( (_QWORD *)((char *)v13 - *(_QWORD *)v12) == &qword_20 )
{
if ( !(unsigned int)std::string::compare(*(_QWORD *)v12, "none") )
{
v14[0] = 0LL;
std::vector<ggml_backend_device *>::emplace_back<ggml_backend_device *>(a1, v14);
goto LABEL_13;
}
v2 = *(_QWORD **)v12;
v3 = v13;
}
for ( ; v2 != v3; v2 += 4 )
{
v4 = ggml_backend_dev_by_name(*v2);
v11 = v4;
if ( !v4 || (unsigned int)ggml_backend_dev_type(v4) != 1 )
{
v6 = __cxa_allocate_exception(0x10uLL);
string_format[abi:cxx11]((unsigned int)v14, (unsigned int)"invalid device: %s", *v2, v7, v8, v9);
std::invalid_argument::invalid_argument(v6, v14);
__cxa_throw(
v6,
(struct type_info *)&`typeinfo for'std::invalid_argument,
(void (*)(void *))&std::invalid_argument::~invalid_argument);
}
v5 = *(long long **)(a1 + 8);
if ( v5 == *(long long **)(a1 + 16) )
{
std::vector<ggml_backend_device *>::_M_realloc_insert<ggml_backend_device * const&>(a1, v5, &v11);
}
else
{
*v5 = v11;
*(_QWORD *)(a1 + 8) += 8LL;
}
}
v14[0] = 0LL;
std::vector<ggml_backend_device *>::emplace_back<ggml_backend_device *>(a1, v14);
LABEL_13:
std::vector<std::string>::~vector((long long)v12);
}
|
parse_device_list:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI],XMM0
MOV qword ptr [RDI + 0x10],0x0
LEA R15,[RSP + 0x8]
MOV RDI,R15
MOV EDX,0x2c
CALL 0x0014f273
MOV R14,qword ptr [R15]
MOV R12,qword ptr [R15 + 0x8]
CMP R14,R12
JZ 0x001518ad
MOV RAX,R12
SUB RAX,R14
CMP RAX,0x20
JNZ 0x001517cd
LEA RSI,[0x1e8027]
MOV RDI,R14
CALL 0x0011a210
TEST EAX,EAX
JZ 0x0015184a
MOV R14,qword ptr [RSP + 0x8]
MOV R12,qword ptr [RSP + 0x10]
LAB_001517cd:
CMP R14,R12
JZ 0x0015181f
MOV R15,RSP
LAB_001517d5:
MOV RDI,qword ptr [R14]
LAB_001517d8:
CALL 0x0011a100
MOV qword ptr [RSP],RAX
TEST RAX,RAX
JZ 0x00151860
MOV RDI,RAX
CALL 0x0011a170
CMP EAX,0x1
JNZ 0x00151860
MOV RSI,qword ptr [RBX + 0x8]
CMP RSI,qword ptr [RBX + 0x10]
JZ 0x0015180b
MOV RAX,qword ptr [RSP]
MOV qword ptr [RSI],RAX
ADD qword ptr [RBX + 0x8],0x8
JMP 0x00151816
LAB_0015180b:
MOV RDI,RBX
MOV RDX,R15
CALL 0x00162f48
LAB_00151816:
ADD R14,0x20
CMP R14,R12
JNZ 0x001517d5
LAB_0015181f:
LEA RSI,[RSP + 0x20]
MOV qword ptr [RSI],0x0
LAB_0015182b:
MOV RDI,RBX
CALL 0x00162df0
LAB_00151833:
LEA RDI,[RSP + 0x8]
CALL 0x00121ede
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0015184a:
LEA RSI,[RSP + 0x20]
MOV qword ptr [RSI],0x0
LAB_00151856:
MOV RDI,RBX
CALL 0x00162df0
LAB_0015185e:
JMP 0x00151833
LAB_00151860:
MOV EDI,0x10
CALL 0x0011a430
MOV R15,RAX
MOV RDX,qword ptr [R14]
LAB_00151870:
LEA RSI,[0x1ed07c]
LEA RDI,[RSP + 0x20]
XOR EAX,EAX
CALL 0x001725e3
MOV BPL,0x1
LAB_00151886:
LEA RSI,[RSP + 0x20]
MOV RDI,R15
CALL 0x0011af40
XOR EBP,EBP
MOV RSI,qword ptr [0x0022bfd0]
MOV RDX,qword ptr [0x0022bfb0]
MOV RDI,R15
CALL 0x0011af20
LAB_001518ad:
MOV EDI,0x10
CALL 0x0011a430
MOV R15,RAX
LAB_001518ba:
LEA RSI,[0x1ed067]
MOV RDI,RAX
CALL 0x0011b0f0
LAB_001518c9:
MOV RSI,qword ptr [0x0022bfd0]
MOV RDX,qword ptr [0x0022bfb0]
MOV RDI,R15
CALL 0x0011af20
|
/* parse_device_list(std::__cxx11::string const&) */
void parse_device_list(string *param_1)
{
long *plVar1;
char *pcVar2;
int iVar3;
invalid_argument *piVar4;
char in_SIL;
char *pcVar5;
long local_68;
char *local_60;
char *local_58;
ggml_backend_device *local_48 [4];
*(int8 *)param_1 = 0;
*(int8 *)(param_1 + 8) = 0;
*(int8 *)(param_1 + 0x10) = 0;
string_split<std::__cxx11::string>((string *)&local_60,in_SIL);
if (local_60 == local_58) {
piVar4 = (invalid_argument *)__cxa_allocate_exception(0x10);
/* try { // try from 001518ba to 001518c8 has its CatchHandler @ 001518e3 */
std::invalid_argument::invalid_argument(piVar4,"no devices specified");
/* try { // try from 001518c9 to 001518de has its CatchHandler @ 001518e1 */
/* WARNING: Subroutine does not return */
__cxa_throw(piVar4,PTR_typeinfo_0022bfd0,PTR__invalid_argument_0022bfb0);
}
pcVar2 = local_60;
pcVar5 = local_58;
if (((long)local_58 - (long)local_60 == 0x20) &&
(iVar3 = std::__cxx11::string::compare(local_60), pcVar2 = local_60, pcVar5 = local_58,
iVar3 == 0)) {
local_48[0] = (ggml_backend_device *)0x0;
/* try { // try from 00151856 to 0015185d has its CatchHandler @ 001518df */
std::vector<ggml_backend_device*,std::allocator<ggml_backend_device*>>::
emplace_back<ggml_backend_device*>
((vector<ggml_backend_device*,std::allocator<ggml_backend_device*>> *)param_1,local_48
);
}
else {
for (; pcVar2 != pcVar5; pcVar2 = pcVar2 + 0x20) {
/* try { // try from 001517d8 to 00151815 has its CatchHandler @ 00151919 */
local_68 = ggml_backend_dev_by_name(*(int8 *)pcVar2);
if ((local_68 == 0) || (iVar3 = ggml_backend_dev_type(local_68), iVar3 != 1)) {
piVar4 = (invalid_argument *)__cxa_allocate_exception(0x10);
/* try { // try from 00151870 to 00151882 has its CatchHandler @ 0015190c */
string_format_abi_cxx11_((char *)local_48,"invalid device: %s",*(int8 *)pcVar2);
/* try { // try from 00151886 to 001518aa has its CatchHandler @ 001518e7 */
std::invalid_argument::invalid_argument(piVar4,(string *)local_48);
/* WARNING: Subroutine does not return */
__cxa_throw(piVar4,PTR_typeinfo_0022bfd0,PTR__invalid_argument_0022bfb0);
}
plVar1 = *(long **)(param_1 + 8);
if (plVar1 == *(long **)(param_1 + 0x10)) {
std::vector<ggml_backend_device*,std::allocator<ggml_backend_device*>>::
_M_realloc_insert<ggml_backend_device*const&>
((vector<ggml_backend_device*,std::allocator<ggml_backend_device*>> *)param_1,
plVar1,&local_68);
}
else {
*plVar1 = local_68;
*(long *)(param_1 + 8) = *(long *)(param_1 + 8) + 8;
}
}
local_48[0] = (ggml_backend_device *)0x0;
/* try { // try from 0015182b to 00151832 has its CatchHandler @ 001518e5 */
std::vector<ggml_backend_device*,std::allocator<ggml_backend_device*>>::
emplace_back<ggml_backend_device*>
((vector<ggml_backend_device*,std::allocator<ggml_backend_device*>> *)param_1,local_48
);
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_60);
return;
}
|
|
10,749 |
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::insert(std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&)
|
monkey531[P]llama/common/json.hpp
|
std::pair<iterator, bool> insert( const value_type& value )
{
for (auto it = this->begin(); it != this->end(); ++it)
{
if (m_compare(it->first, value.first))
{
return {it, false};
}
}
Container::push_back(value);
return {--this->end(), true};
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::insert(std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %r14
movq (%rdi), %rbx
cmpq 0x8(%r14), %rbx
je 0x94807
movq %rbx, %rdi
movq %r15, %rsi
callq 0x46506
testb %al, %al
jne 0x9481e
addq $0x30, %rbx
jmp 0x947ec
movq %r14, %rdi
movq %r15, %rsi
callq 0x9482a
movq 0x8(%r14), %rbx
addq $-0x30, %rbx
movb $0x1, %dl
jmp 0x94820
xorl %edx, %edx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
|
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE6insertERKSI_:
push r15
push r14
push rbx
mov r15, rsi
mov r14, rdi
mov rbx, [rdi]
loc_947EC:
cmp rbx, [r14+8]
jz short loc_94807
mov rdi, rbx
mov rsi, r15
call _ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_
test al, al
jnz short loc_9481E
add rbx, 30h ; '0'
jmp short loc_947EC
loc_94807:
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE9push_backERKSG_; 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>>>::push_back(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&)
mov rbx, [r14+8]
add rbx, 0FFFFFFFFFFFFFFD0h
mov dl, 1
jmp short loc_94820
loc_9481E:
xor edx, edx
loc_94820:
mov rax, rbx
pop rbx
pop r14
pop r15
retn
|
long long nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::insert(
_QWORD **a1,
_QWORD *a2)
{
_QWORD *i; // rbx
for ( i = *a1; i != a1[1]; i += 6 )
{
if ( std::operator==<char>(i, a2) )
return (long long)i;
}
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>>>::push_back(
a1,
a2);
return (long long)(a1[1] - 6);
}
|
insert:
PUSH R15
PUSH R14
PUSH RBX
MOV R15,RSI
MOV R14,RDI
MOV RBX,qword ptr [RDI]
LAB_001947ec:
CMP RBX,qword ptr [R14 + 0x8]
JZ 0x00194807
MOV RDI,RBX
MOV RSI,R15
CALL 0x00146506
TEST AL,AL
JNZ 0x0019481e
ADD RBX,0x30
JMP 0x001947ec
LAB_00194807:
MOV RDI,R14
MOV RSI,R15
CALL 0x0019482a
MOV RBX,qword ptr [R14 + 0x8]
ADD RBX,-0x30
MOV DL,0x1
JMP 0x00194820
LAB_0019481e:
XOR EDX,EDX
LAB_00194820:
MOV RAX,RBX
POP RBX
POP R14
POP R15
RET
|
/* nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::string const,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> > > >::insert(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> > const&) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::
ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::insert(ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*this,pair *param_1)
{
char cVar1;
int8 extraout_RDX;
int8 uVar2;
string *psVar3;
int1 auVar4 [16];
psVar3 = *(string **)this;
do {
if (psVar3 == *(string **)(this + 8)) {
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>>>>
::push_back((vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*)this,param_1);
psVar3 = (string *)(*(long *)(this + 8) + -0x30);
uVar2 = CONCAT71((int7)((ulong)extraout_RDX >> 8),1);
LAB_00194820:
auVar4._8_8_ = uVar2;
auVar4._0_8_ = psVar3;
return auVar4;
}
cVar1 = std::operator==(psVar3,(string *)param_1);
if (cVar1 != '\0') {
uVar2 = 0;
goto LAB_00194820;
}
psVar3 = psVar3 + 0x30;
} while( true );
}
|
|
10,750 |
psi_cond_timedwait
|
eloqsql/mysys/my_thr_init.c
|
ATTRIBUTE_COLD int psi_cond_timedwait(mysql_cond_t *that, mysql_mutex_t *mutex,
const struct timespec *abstime,
const char *file, uint line)
{
PSI_cond_locker_state state;
PSI_cond_locker *locker= PSI_COND_CALL(start_cond_wait)
(&state, that->m_psi, mutex->m_psi, PSI_COND_TIMEDWAIT, file, line);
int result= my_cond_timedwait(&that->m_cond, &mutex->m_mutex, abstime);
if (psi_likely(locker))
PSI_COND_CALL(end_cond_wait)(locker, result);
return result;
}
|
O3
|
c
|
psi_cond_timedwait:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r8d, %r9d
movq %rcx, %r8
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq 0x30c5c4(%rip), %r13 # 0x3368c8
movq (%r13), %rax
movq 0x30(%rdi), %rsi
movq 0x40(%r15), %rdx
leaq -0x60(%rbp), %rdi
pushq $0x1
popq %rcx
callq *0x1c0(%rax)
movq %rax, %rbx
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x28610
movl %eax, %r14d
testq %rbx, %rbx
jne 0x2a348
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r13), %rax
movq %rbx, %rdi
movl %r14d, %esi
callq *0x1c8(%rax)
jmp 0x2a336
|
psi_cond_timedwait:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r9d, r8d
mov r8, rcx
mov r14, rdx
mov r15, rsi
mov r12, rdi
lea r13, PSI_server
mov rax, [r13+0]
mov rsi, [rdi+30h]
mov rdx, [r15+40h]
lea rdi, [rbp+var_60]
push 1
pop rcx
call qword ptr [rax+1C0h]
mov rbx, rax
mov rdi, r12
mov rsi, r15
mov rdx, r14
call _pthread_cond_timedwait
mov r14d, eax
test rbx, rbx
jnz short loc_2A348
loc_2A336:
mov eax, r14d
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_2A348:
mov rax, [r13+0]
mov rdi, rbx
mov esi, r14d
call qword ptr [rax+1C8h]
jmp short loc_2A336
|
long long psi_cond_timedwait(long long a1, long long a2, long long a3, long long a4, unsigned int a5)
{
long long v6; // rbx
unsigned int v7; // r14d
_BYTE v9[96]; // [rsp+0h] [rbp-60h] BYREF
v6 = (*((long long ( **)(_BYTE *, _QWORD, _QWORD, long long, long long, _QWORD))PSI_server + 56))(
v9,
*(_QWORD *)(a1 + 48),
*(_QWORD *)(a2 + 64),
1LL,
a4,
a5);
v7 = pthread_cond_timedwait(a1, a2, a3);
if ( v6 )
(*((void ( **)(long long, _QWORD))PSI_server + 57))(v6, v7);
return v7;
}
|
psi_cond_timedwait:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R9D,R8D
MOV R8,RCX
MOV R14,RDX
MOV R15,RSI
MOV R12,RDI
LEA R13,[0x4368c8]
MOV RAX,qword ptr [R13]
MOV RSI,qword ptr [RDI + 0x30]
MOV RDX,qword ptr [R15 + 0x40]
LEA RDI,[RBP + -0x60]
PUSH 0x1
POP RCX
CALL qword ptr [RAX + 0x1c0]
MOV RBX,RAX
MOV RDI,R12
MOV RSI,R15
MOV RDX,R14
CALL 0x00128610
MOV R14D,EAX
TEST RBX,RBX
JNZ 0x0012a348
LAB_0012a336:
MOV EAX,R14D
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0012a348:
MOV RAX,qword ptr [R13]
MOV RDI,RBX
MOV ESI,R14D
CALL qword ptr [RAX + 0x1c8]
JMP 0x0012a336
|
int psi_cond_timedwait(pthread_cond_t *param_1,pthread_mutex_t *param_2,timespec *param_3,
int8 param_4,int4 param_5)
{
int iVar1;
long lVar2;
int1 local_68 [56];
lVar2 = (**(code **)(PSI_server + 0x1c0))
(local_68,param_1[1].__align,*(int8 *)((long)param_2 + 0x40),1,param_4,
param_5);
iVar1 = pthread_cond_timedwait(param_1,param_2,param_3);
if (lVar2 != 0) {
(**(code **)(PSI_server + 0x1c8))(lVar2,iVar1);
}
return iVar1;
}
|
|
10,751 |
my_copy_fix_mb
|
eloqsql/strings/ctype-mb.c
|
size_t
my_copy_fix_mb(CHARSET_INFO *cs,
char *dst, size_t dst_length,
const char *src, size_t src_length,
size_t nchars, MY_STRCOPY_STATUS *status)
{
size_t well_formed_nchars;
size_t well_formed_length;
size_t fixed_length;
size_t min_length= MY_MIN(src_length, dst_length);
well_formed_nchars= my_ci_well_formed_char_length(cs, src, src + min_length,
nchars, status);
DBUG_ASSERT(well_formed_nchars <= nchars);
well_formed_length= status->m_source_end_pos - src;
if (well_formed_length)
memmove(dst, src, well_formed_length);
if (!status->m_well_formed_error_pos)
return well_formed_length;
fixed_length= my_append_fix_badly_formed_tail(cs,
dst + well_formed_length,
dst + dst_length,
src + well_formed_length,
src + src_length,
nchars - well_formed_nchars,
status);
return well_formed_length + fixed_length;
}
|
O0
|
c
|
my_copy_fix_mb:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x75458
movq -0x30(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0x75460
movq -0x20(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x28(%rbp), %rdx
addq -0x58(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq 0x10(%rbp), %r8
callq 0x75520
movq %rax, -0x40(%rbp)
jmp 0x7548b
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x754b5
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x265a0
movq 0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x754ca
movq -0x48(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x75513
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
addq -0x48(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
addq -0x48(%rbp), %rcx
movq -0x28(%rbp), %r8
addq -0x30(%rbp), %r8
movq -0x38(%rbp), %r9
subq -0x40(%rbp), %r9
movq 0x10(%rbp), %rax
movq %rax, (%rsp)
callq 0x75570
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rax
addq -0x50(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)
|
my_copy_fix_mb:
push rbp
mov rbp, rsp
sub rsp, 70h
mov rax, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
mov rax, [rbp+var_30]
cmp rax, [rbp+var_20]
jnb short loc_75458
mov rax, [rbp+var_30]
mov [rbp+var_60], rax
jmp short loc_75460
loc_75458:
mov rax, [rbp+var_20]
mov [rbp+var_60], rax
loc_75460:
mov rax, [rbp+var_60]
mov [rbp+var_58], rax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_28]
add rdx, [rbp+var_58]
mov rcx, [rbp+var_38]
mov r8, [rbp+arg_0]
call my_ci_well_formed_char_length
mov [rbp+var_40], rax
jmp short $+2
loc_7548B:
mov rax, [rbp+arg_0]
mov rax, [rax]
mov rcx, [rbp+var_28]
sub rax, rcx
mov [rbp+var_48], rax
cmp [rbp+var_48], 0
jz short loc_754B5
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_48]
call _memmove
loc_754B5:
mov rax, [rbp+arg_0]
cmp qword ptr [rax+8], 0
jnz short loc_754CA
mov rax, [rbp+var_48]
mov [rbp+var_8], rax
jmp short loc_75513
loc_754CA:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
add rsi, [rbp+var_48]
mov rdx, [rbp+var_18]
add rdx, [rbp+var_20]
mov rcx, [rbp+var_28]
add rcx, [rbp+var_48]
mov r8, [rbp+var_28]
add r8, [rbp+var_30]
mov r9, [rbp+var_38]
sub r9, [rbp+var_40]
mov rax, [rbp+arg_0]
mov [rsp+70h+var_70], rax
call my_append_fix_badly_formed_tail
mov [rbp+var_50], rax
mov rax, [rbp+var_48]
add rax, [rbp+var_50]
mov [rbp+var_8], rax
loc_75513:
mov rax, [rbp+var_8]
add rsp, 70h
pop rbp
retn
|
long long my_copy_fix_mb(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
long long a6,
_QWORD *a7)
{
unsigned long long v8; // [rsp+10h] [rbp-60h]
long long v9; // [rsp+28h] [rbp-48h]
int v10; // [rsp+30h] [rbp-40h]
int v11; // [rsp+38h] [rbp-38h]
int v12; // [rsp+40h] [rbp-30h]
int v14; // [rsp+50h] [rbp-20h]
v14 = a3;
v12 = a5;
v11 = a6;
if ( a5 >= a3 )
v8 = a3;
else
v8 = a5;
v10 = my_ci_well_formed_char_length(a1, a4, v8 + a4, a6, a7);
v9 = *a7 - a4;
if ( v9 )
memmove(a2, a4, v9);
if ( a7[1] )
return my_append_fix_badly_formed_tail(
a1,
(int)v9 + (int)a2,
v14 + (int)a2,
(int)v9 + (int)a4,
v12 + (int)a4,
v11 - v10,
(long long)a7)
+ v9;
else
return v9;
}
|
my_copy_fix_mb:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x00175458
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x60],RAX
JMP 0x00175460
LAB_00175458:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x60],RAX
LAB_00175460:
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x58],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x28]
ADD RDX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x38]
MOV R8,qword ptr [RBP + 0x10]
CALL 0x00175520
MOV qword ptr [RBP + -0x40],RAX
JMP 0x0017548b
LAB_0017548b:
MOV RAX,qword ptr [RBP + 0x10]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
CMP qword ptr [RBP + -0x48],0x0
JZ 0x001754b5
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x48]
CALL 0x001265a0
LAB_001754b5:
MOV RAX,qword ptr [RBP + 0x10]
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x001754ca
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00175513
LAB_001754ca:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
ADD RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x18]
ADD RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
ADD RCX,qword ptr [RBP + -0x48]
MOV R8,qword ptr [RBP + -0x28]
ADD R8,qword ptr [RBP + -0x30]
MOV R9,qword ptr [RBP + -0x38]
SUB R9,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RSP],RAX
CALL 0x00175570
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x48]
ADD RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x8],RAX
LAB_00175513:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x70
POP RBP
RET
|
size_t my_copy_fix_mb(int8 param_1,void *param_2,ulong param_3,void *param_4,ulong param_5,
long param_6,long *param_7)
{
long lVar1;
ulong local_68;
size_t local_10;
local_68 = param_3;
if (param_5 < param_3) {
local_68 = param_5;
}
lVar1 = my_ci_well_formed_char_length(param_1,param_4,(long)param_4 + local_68,param_6,param_7);
local_10 = *param_7 - (long)param_4;
if (local_10 != 0) {
memmove(param_2,param_4,local_10);
}
if (param_7[1] != 0) {
lVar1 = my_append_fix_badly_formed_tail
(param_1,(long)param_2 + local_10,(long)param_2 + param_3,
(long)param_4 + local_10,(long)param_4 + param_5,param_6 - lVar1,param_7);
local_10 = local_10 + lVar1;
}
return local_10;
}
|
|
10,752 |
my_getwd
|
eloqsql/mysys/my_getwd.c
|
int my_getwd(char * buf, size_t size, myf MyFlags)
{
char * pos;
DBUG_ENTER("my_getwd");
DBUG_PRINT("my",("buf:%p size: %u MyFlags %lu",
buf, (uint) size, MyFlags));
if (size < 1)
DBUG_RETURN(-1);
if (curr_dir[0]) /* Current pos is saved here */
(void) strmake(buf,&curr_dir[0],size-1);
else
{
#if defined(HAVE_GETCWD)
if (size < 2)
DBUG_RETURN(-1);
if (!getcwd(buf,(uint) (size-2)) && MyFlags & MY_WME)
{
my_errno=errno;
my_error(EE_GETWD,MYF(ME_BELL),errno);
DBUG_RETURN(-1);
}
#elif defined(HAVE_GETWD)
{
char pathname[MAXPATHLEN];
getwd(pathname);
strmake(buf,pathname,size-1);
}
#else
#error "No way to get current directory"
#endif
if (*((pos=strend(buf))-1) != FN_LIBCHAR) /* End with FN_LIBCHAR */
{
pos[0]= FN_LIBCHAR;
pos[1]=0;
}
(void) strmake(&curr_dir[0],buf, (size_t) (FN_REFLEN-1));
}
DBUG_RETURN(0);
}
|
O3
|
c
|
my_getwd:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl $0xffffffff, %ebx # imm = 0xFFFFFFFF
testq %rsi, %rsi
je 0x2ea4d
movq %rdx, %r15
movq %rsi, %rdx
movq %rdi, %r14
leaq 0x3382c4(%rip), %rax # 0x366cb0
cmpb $0x0, (%rax)
je 0x2ea07
decq %rdx
leaq 0x3382b5(%rip), %rsi # 0x366cb0
movq %r14, %rdi
callq 0x5bb1c
xorl %ebx, %ebx
jmp 0x2ea4d
cmpq $0x1, %rdx
je 0x2ea4d
addl $-0x2, %edx
movq %r14, %rdi
movq %rdx, %rsi
callq 0x24160
testb $0x10, %r15b
je 0x2ea5a
testq %rax, %rax
jne 0x2ea5a
callq 0x24050
movq %rax, %r14
movl (%rax), %r15d
callq 0x2974a
movl %r15d, (%rax)
movl (%r14), %edx
movl $0x4, %esi
movl $0x10, %edi
xorl %eax, %eax
callq 0x26d87
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x5bad4
cmpb $0x2f, -0x1(%rax)
je 0x2ea6d
movw $0x2f, (%rax)
leaq 0x33823c(%rip), %rdi # 0x366cb0
movl $0x1ff, %edx # imm = 0x1FF
movq %r14, %rsi
jmp 0x2e9fe
|
my_getwd:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov ebx, 0FFFFFFFFh
test rsi, rsi
jz short loc_2EA4D
mov r15, rdx
mov rdx, rsi
mov r14, rdi
lea rax, curr_dir
cmp byte ptr [rax], 0
jz short loc_2EA07
dec rdx
lea rsi, curr_dir
mov rdi, r14
loc_2E9FE:
call strmake
xor ebx, ebx
jmp short loc_2EA4D
loc_2EA07:
cmp rdx, 1
jz short loc_2EA4D
add edx, 0FFFFFFFEh
mov rdi, r14
mov rsi, rdx
call _getcwd
test r15b, 10h
jz short loc_2EA5A
test rax, rax
jnz short loc_2EA5A
call ___errno_location
mov r14, rax
mov r15d, [rax]
call _my_thread_var
mov [rax], r15d
mov edx, [r14]
mov esi, 4
mov edi, 10h
xor eax, eax
call my_error
loc_2EA4D:
mov eax, ebx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_2EA5A:
mov rdi, r14
call strend
cmp byte ptr [rax-1], 2Fh ; '/'
jz short loc_2EA6D
mov word ptr [rax], 2Fh ; '/'
loc_2EA6D:
lea rdi, curr_dir
mov edx, 1FFh
mov rsi, r14
jmp short loc_2E9FE
|
long long my_getwd(_BYTE *a1, long long a2, char a3)
{
unsigned int v3; // ebx
_BYTE *v5; // r14
long long v6; // rdx
_BYTE *v7; // rsi
long long v8; // rsi
long long v9; // rax
long long v10; // rdx
unsigned int *v11; // r14
unsigned int v12; // r15d
_WORD *v14; // rax
v3 = -1;
if ( a2 )
{
v5 = a1;
if ( curr_dir[0] )
{
v6 = a2 - 1;
v7 = curr_dir;
}
else
{
if ( a2 == 1 )
return v3;
v8 = (unsigned int)(a2 - 2);
v9 = getcwd(a1, v8);
if ( (a3 & 0x10) != 0 && !v9 )
{
v11 = (unsigned int *)__errno_location(a1, v8, v10);
v12 = *v11;
*(_DWORD *)my_thread_var() = v12;
my_error(0x10u, 4LL, *v11);
return v3;
}
v14 = (_WORD *)strend(a1);
if ( *((_BYTE *)v14 - 1) != 47 )
*v14 = 47;
a1 = curr_dir;
v6 = 511LL;
v7 = v5;
}
strmake(a1, v7, v6);
return 0;
}
return v3;
}
|
my_getwd:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EBX,0xffffffff
TEST RSI,RSI
JZ 0x0012ea4d
MOV R15,RDX
MOV RDX,RSI
MOV R14,RDI
LEA RAX,[0x466cb0]
CMP byte ptr [RAX],0x0
JZ 0x0012ea07
DEC RDX
LEA RSI,[0x466cb0]
MOV RDI,R14
LAB_0012e9fe:
CALL 0x0015bb1c
XOR EBX,EBX
JMP 0x0012ea4d
LAB_0012ea07:
CMP RDX,0x1
JZ 0x0012ea4d
ADD EDX,-0x2
MOV RDI,R14
MOV RSI,RDX
CALL 0x00124160
TEST R15B,0x10
JZ 0x0012ea5a
TEST RAX,RAX
JNZ 0x0012ea5a
CALL 0x00124050
MOV R14,RAX
MOV R15D,dword ptr [RAX]
CALL 0x0012974a
MOV dword ptr [RAX],R15D
MOV EDX,dword ptr [R14]
MOV ESI,0x4
MOV EDI,0x10
XOR EAX,EAX
CALL 0x00126d87
LAB_0012ea4d:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0012ea5a:
MOV RDI,R14
CALL 0x0015bad4
CMP byte ptr [RAX + -0x1],0x2f
JZ 0x0012ea6d
MOV word ptr [RAX],0x2f
LAB_0012ea6d:
LEA RDI,[0x466cb0]
MOV EDX,0x1ff
MOV RSI,R14
JMP 0x0012e9fe
|
int8 my_getwd(char *param_1,long param_2,ulong param_3)
{
int iVar1;
char *pcVar2;
int *piVar3;
int *piVar4;
int2 *puVar5;
char *pcVar6;
if (param_2 == 0) {
return 0xffffffff;
}
if (curr_dir == '\0') {
if (param_2 == 1) {
return 0xffffffff;
}
pcVar2 = getcwd(param_1,(ulong)((int)param_2 - 2));
if (((param_3 & 0x10) != 0) && (pcVar2 == (char *)0x0)) {
piVar3 = __errno_location();
iVar1 = *piVar3;
piVar4 = (int *)_my_thread_var();
*piVar4 = iVar1;
my_error(0x10,4,*piVar3);
return 0xffffffff;
}
puVar5 = (int2 *)strend(param_1);
if (*(char *)((long)puVar5 + -1) != '/') {
*puVar5 = 0x2f;
}
pcVar6 = &curr_dir;
param_2 = 0x1ff;
pcVar2 = param_1;
}
else {
param_2 = param_2 + -1;
pcVar2 = &curr_dir;
pcVar6 = param_1;
}
strmake(pcVar6,pcVar2,param_2);
return 0;
}
|
|
10,753 |
js_std_free_handlers
|
bluesky950520[P]quickjs/quickjs-libc.c
|
void js_std_free_handlers(JSRuntime *rt)
{
JSThreadState *ts = js_get_thread_state(rt);
struct list_head *el, *el1;
list_for_each_safe(el, el1, &ts->os_rw_handlers) {
JSOSRWHandler *rh = list_entry(el, JSOSRWHandler, link);
free_rw_handler(rt, rh);
}
list_for_each_safe(el, el1, &ts->os_signal_handlers) {
JSOSSignalHandler *sh = list_entry(el, JSOSSignalHandler, link);
free_sh(rt, sh);
}
list_for_each_safe(el, el1, &ts->os_timers) {
JSOSTimer *th = list_entry(el, JSOSTimer, link);
free_timer(rt, th);
}
#ifdef USE_WORKER
/* XXX: free port_list ? */
js_free_message_pipe(ts->recv_pipe);
js_free_message_pipe(ts->send_pipe);
#endif
}
|
O0
|
c
|
js_std_free_handlers:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq 0x30(%rsp), %rdi
callq 0x115d0
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
cmpq %rcx, %rax
je 0x114e6
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x115f0
movq 0x18(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
jmp 0x114a4
movq 0x28(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
addq $0x10, %rcx
cmpq %rcx, %rax
je 0x11548
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x11660
movq 0x18(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
jmp 0x11502
movq 0x28(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
addq $0x20, %rcx
cmpq %rcx, %rax
je 0x115a8
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
movq 0x30(%rsp), %rdi
movq (%rsp), %rsi
callq 0x116b0
movq 0x18(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
jmp 0x11564
movq 0x28(%rsp), %rax
movq 0x68(%rax), %rdi
callq 0x11700
movq 0x28(%rsp), %rax
movq 0x70(%rax), %rdi
callq 0x11700
addq $0x38, %rsp
retq
nopl (%rax)
|
js_std_free_handlers:
sub rsp, 38h
mov [rsp+38h+var_8], rdi
mov rdi, [rsp+38h+var_8]
call js_get_thread_state
mov [rsp+38h+var_10], rax
mov rax, [rsp+38h+var_10]
mov rax, [rax+8]
mov [rsp+38h+var_18], rax
mov rax, [rsp+38h+var_18]
mov rax, [rax+8]
mov [rsp+38h+var_20], rax
loc_114A4:
mov rax, [rsp+38h+var_18]
mov rcx, [rsp+38h+var_10]
cmp rax, rcx
jz short loc_114E6
mov rax, [rsp+38h+var_18]
mov [rsp+38h+var_28], rax
mov rdi, [rsp+38h+var_8]
mov rsi, [rsp+38h+var_28]
call free_rw_handler
mov rax, [rsp+38h+var_20]
mov [rsp+38h+var_18], rax
mov rax, [rsp+38h+var_18]
mov rax, [rax+8]
mov [rsp+38h+var_20], rax
jmp short loc_114A4
loc_114E6:
mov rax, [rsp+38h+var_10]
mov rax, [rax+18h]
mov [rsp+38h+var_18], rax
mov rax, [rsp+38h+var_18]
mov rax, [rax+8]
mov [rsp+38h+var_20], rax
loc_11502:
mov rax, [rsp+38h+var_18]
mov rcx, [rsp+38h+var_10]
add rcx, 10h
cmp rax, rcx
jz short loc_11548
mov rax, [rsp+38h+var_18]
mov [rsp+38h+var_30], rax
mov rdi, [rsp+38h+var_8]
mov rsi, [rsp+38h+var_30]
call free_sh
mov rax, [rsp+38h+var_20]
mov [rsp+38h+var_18], rax
mov rax, [rsp+38h+var_18]
mov rax, [rax+8]
mov [rsp+38h+var_20], rax
jmp short loc_11502
loc_11548:
mov rax, [rsp+38h+var_10]
mov rax, [rax+28h]
mov [rsp+38h+var_18], rax
mov rax, [rsp+38h+var_18]
mov rax, [rax+8]
mov [rsp+38h+var_20], rax
loc_11564:
mov rax, [rsp+38h+var_18]
mov rcx, [rsp+38h+var_10]
add rcx, 20h ; ' '
cmp rax, rcx
jz short loc_115A8
mov rax, [rsp+38h+var_18]
mov [rsp+38h+var_38], rax
mov rdi, [rsp+38h+var_8]
mov rsi, [rsp+38h+var_38]
call free_timer
mov rax, [rsp+38h+var_20]
mov [rsp+38h+var_18], rax
mov rax, [rsp+38h+var_18]
mov rax, [rax+8]
mov [rsp+38h+var_20], rax
jmp short loc_11564
loc_115A8:
mov rax, [rsp+38h+var_10]
mov rdi, [rax+68h]
call js_free_message_pipe
mov rax, [rsp+38h+var_10]
mov rdi, [rax+70h]
call js_free_message_pipe
add rsp, 38h
retn
|
long long js_std_free_handlers(long long a1)
{
_QWORD *v2; // [rsp+18h] [rbp-20h]
_QWORD *v3; // [rsp+18h] [rbp-20h]
_QWORD *v4; // [rsp+18h] [rbp-20h]
_QWORD *v5; // [rsp+20h] [rbp-18h]
_QWORD *v6; // [rsp+20h] [rbp-18h]
_QWORD *v7; // [rsp+20h] [rbp-18h]
_QWORD *thread_state; // [rsp+28h] [rbp-10h]
thread_state = (_QWORD *)js_get_thread_state(a1);
v5 = (_QWORD *)thread_state[1];
v2 = (_QWORD *)v5[1];
while ( v5 != thread_state )
{
free_rw_handler(a1, v5);
v5 = v2;
v2 = (_QWORD *)v2[1];
}
v6 = (_QWORD *)thread_state[3];
v3 = (_QWORD *)v6[1];
while ( v6 != thread_state + 2 )
{
free_sh(a1, v6);
v6 = v3;
v3 = (_QWORD *)v3[1];
}
v7 = (_QWORD *)thread_state[5];
v4 = (_QWORD *)v7[1];
while ( v7 != thread_state + 4 )
{
free_timer(a1, v7);
v7 = v4;
v4 = (_QWORD *)v4[1];
}
js_free_message_pipe(thread_state[13]);
return js_free_message_pipe(thread_state[14]);
}
|
js_std_free_handlers:
SUB RSP,0x38
MOV qword ptr [RSP + 0x30],RDI
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x001115d0
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x18],RAX
LAB_001114a4:
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x28]
CMP RAX,RCX
JZ 0x001114e6
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x10]
CALL 0x001115f0
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x18],RAX
JMP 0x001114a4
LAB_001114e6:
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x18],RAX
LAB_00111502:
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x28]
ADD RCX,0x10
CMP RAX,RCX
JZ 0x00111548
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x8]
CALL 0x00111660
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x18],RAX
JMP 0x00111502
LAB_00111548:
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x18],RAX
LAB_00111564:
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x28]
ADD RCX,0x20
CMP RAX,RCX
JZ 0x001115a8
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP],RAX
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP]
CALL 0x001116b0
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x18],RAX
JMP 0x00111564
LAB_001115a8:
MOV RAX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RAX + 0x68]
CALL 0x00111700
MOV RAX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RAX + 0x70]
CALL 0x00111700
ADD RSP,0x38
RET
|
void js_std_free_handlers(int8 param_1)
{
long lVar1;
int8 local_20;
int8 local_18;
lVar1 = js_get_thread_state(param_1);
local_18 = *(long *)(lVar1 + 8);
local_20 = *(long *)(local_18 + 8);
while (local_18 != lVar1) {
free_rw_handler(param_1,local_18);
local_18 = local_20;
local_20 = *(long *)(local_20 + 8);
}
local_18 = *(long *)(lVar1 + 0x18);
local_20 = *(long *)(local_18 + 8);
while (local_18 != lVar1 + 0x10) {
free_sh(param_1,local_18);
local_18 = local_20;
local_20 = *(long *)(local_20 + 8);
}
local_18 = *(long *)(lVar1 + 0x28);
local_20 = *(long *)(local_18 + 8);
while (local_18 != lVar1 + 0x20) {
free_timer(param_1,local_18);
local_18 = local_20;
local_20 = *(long *)(local_20 + 8);
}
js_free_message_pipe(*(int8 *)(lVar1 + 0x68));
js_free_message_pipe(*(int8 *)(lVar1 + 0x70));
return;
}
|
|
10,754 |
js_std_free_handlers
|
bluesky950520[P]quickjs/quickjs-libc.c
|
void js_std_free_handlers(JSRuntime *rt)
{
JSThreadState *ts = js_get_thread_state(rt);
struct list_head *el, *el1;
list_for_each_safe(el, el1, &ts->os_rw_handlers) {
JSOSRWHandler *rh = list_entry(el, JSOSRWHandler, link);
free_rw_handler(rt, rh);
}
list_for_each_safe(el, el1, &ts->os_signal_handlers) {
JSOSSignalHandler *sh = list_entry(el, JSOSSignalHandler, link);
free_sh(rt, sh);
}
list_for_each_safe(el, el1, &ts->os_timers) {
JSOSTimer *th = list_entry(el, JSOSTimer, link);
free_timer(rt, th);
}
#ifdef USE_WORKER
/* XXX: free port_list ? */
js_free_message_pipe(ts->recv_pipe);
js_free_message_pipe(ts->send_pipe);
#endif
}
|
O1
|
c
|
js_std_free_handlers:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
xorl %edi, %edi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3a5f3
movq %rax, %r14
movq %rax, %r15
movq 0x8(%rax), %rsi
cmpq %rax, %rsi
je 0x152b0
movq 0x8(%rsi), %r12
movq %rbx, %rdi
callq 0x1530d
movq %r12, %rsi
cmpq %r14, %r12
jne 0x1529c
leaq 0x10(%r14), %r12
movq 0x18(%r15), %rsi
cmpq %r12, %rsi
je 0x152d1
movq 0x8(%rsi), %r13
movq %rbx, %rdi
callq 0x1535d
movq %r13, %rsi
cmpq %r12, %r13
jne 0x152bd
addq $0x20, %r14
movq 0x28(%r15), %rsi
cmpq %r14, %rsi
je 0x152f2
movq 0x8(%rsi), %r12
movq %rbx, %rdi
callq 0x1539a
movq %r12, %rsi
cmpq %r14, %r12
jne 0x152de
movq 0x68(%r15), %rdi
callq 0x153d7
movq 0x70(%r15), %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x153d7
|
js_std_free_handlers:
push r15
push r14
push r13
push r12
push rbx
mov rbx, rdi
xor edi, edi
mov rsi, rbx
xor eax, eax
call js_std_cmd
mov r14, rax
mov r15, rax
mov rsi, [rax+8]
cmp rsi, rax
jz short loc_152B0
loc_1529C:
mov r12, [rsi+8]
mov rdi, rbx
call free_rw_handler
mov rsi, r12
cmp r12, r14
jnz short loc_1529C
loc_152B0:
lea r12, [r14+10h]
mov rsi, [r15+18h]
cmp rsi, r12
jz short loc_152D1
loc_152BD:
mov r13, [rsi+8]
mov rdi, rbx
call free_sh
mov rsi, r13
cmp r13, r12
jnz short loc_152BD
loc_152D1:
add r14, 20h ; ' '
mov rsi, [r15+28h]
cmp rsi, r14
jz short loc_152F2
loc_152DE:
mov r12, [rsi+8]
mov rdi, rbx
call free_timer
mov rsi, r12
cmp r12, r14
jnz short loc_152DE
loc_152F2:
mov rdi, [r15+68h]
call js_free_message_pipe
mov rdi, [r15+70h]
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp js_free_message_pipe
|
long long js_std_free_handlers(long long a1, long long a2, int a3, int a4, int a5, int a6)
{
long long v6; // r14
_QWORD *v7; // r15
long long v8; // rsi
long long v9; // r12
long long v10; // rsi
long long v11; // r13
long long v12; // r14
long long v13; // rsi
long long v14; // r12
v6 = js_std_cmd(0, a1, a3, a4, a5, a6);
v7 = (_QWORD *)v6;
v8 = *(_QWORD *)(v6 + 8);
if ( v8 != v6 )
{
do
{
v9 = *(_QWORD *)(v8 + 8);
free_rw_handler(a1);
v8 = v9;
}
while ( v9 != v6 );
}
v10 = *(_QWORD *)(v6 + 24);
if ( v10 != v6 + 16 )
{
do
{
v11 = *(_QWORD *)(v10 + 8);
free_sh(a1);
v10 = v11;
}
while ( v11 != v6 + 16 );
}
v12 = v6 + 32;
v13 = v7[5];
if ( v13 != v12 )
{
do
{
v14 = *(_QWORD *)(v13 + 8);
free_timer(a1);
v13 = v14;
}
while ( v14 != v12 );
}
js_free_message_pipe(v7[13], v13);
return js_free_message_pipe(v7[14], v13);
}
|
js_std_free_handlers:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV RBX,RDI
XOR EDI,EDI
MOV RSI,RBX
XOR EAX,EAX
CALL 0x0013a5f3
MOV R14,RAX
MOV R15,RAX
MOV RSI,qword ptr [RAX + 0x8]
CMP RSI,RAX
JZ 0x001152b0
LAB_0011529c:
MOV R12,qword ptr [RSI + 0x8]
MOV RDI,RBX
CALL 0x0011530d
MOV RSI,R12
CMP R12,R14
JNZ 0x0011529c
LAB_001152b0:
LEA R12,[R14 + 0x10]
MOV RSI,qword ptr [R15 + 0x18]
CMP RSI,R12
JZ 0x001152d1
LAB_001152bd:
MOV R13,qword ptr [RSI + 0x8]
MOV RDI,RBX
CALL 0x0011535d
MOV RSI,R13
CMP R13,R12
JNZ 0x001152bd
LAB_001152d1:
ADD R14,0x20
MOV RSI,qword ptr [R15 + 0x28]
CMP RSI,R14
JZ 0x001152f2
LAB_001152de:
MOV R12,qword ptr [RSI + 0x8]
MOV RDI,RBX
CALL 0x0011539a
MOV RSI,R12
CMP R12,R14
JNZ 0x001152de
LAB_001152f2:
MOV RDI,qword ptr [R15 + 0x68]
CALL 0x001153d7
MOV RDI,qword ptr [R15 + 0x70]
POP RBX
POP R12
POP R13
POP R14
POP R15
JMP 0x001153d7
|
void js_std_free_handlers(int8 param_1)
{
long lVar1;
long lVar2;
lVar2 = js_std_cmd(0,param_1);
lVar1 = *(long *)(lVar2 + 8);
while (lVar1 != lVar2) {
lVar1 = *(long *)(lVar1 + 8);
free_rw_handler(param_1);
}
lVar1 = *(long *)(lVar2 + 0x18);
while (lVar1 != lVar2 + 0x10) {
lVar1 = *(long *)(lVar1 + 8);
free_sh(param_1);
}
lVar1 = *(long *)(lVar2 + 0x28);
while (lVar1 != lVar2 + 0x20) {
lVar1 = *(long *)(lVar1 + 8);
free_timer(param_1);
}
js_free_message_pipe(*(int8 *)(lVar2 + 0x68));
js_free_message_pipe(*(int8 *)(lVar2 + 0x70));
return;
}
|
|
10,755 |
mimi_encoder_decoder::load_encoder()
|
ngxson[P]ggml-easy/demo/kyutai-mimi.cpp
|
void load_encoder() {
layers.push_back({
.conv_0_w = ctx.get_weight("encoder.layers.0.conv.weight"),
.conv_0_b = ctx.get_weight("encoder.layers.0.conv.bias"),
});
for (int i = 0; i < (int)repeated_pattern.size(); ++i) {
int i_start = repeated_pattern[i];
// residual layers
layers.push_back({
.is_resnet = true,
.conv_0_w = ctx.get_weight("encoder.layers.%d.block.1.conv.weight", i_start),
.conv_0_b = ctx.get_weight("encoder.layers.%d.block.1.conv.bias", i_start),
.conv_1_w = ctx.get_weight("encoder.layers.%d.block.3.conv.weight", i_start),
.conv_1_b = ctx.get_weight("encoder.layers.%d.block.3.conv.bias", i_start),
});
// downsampling layers
layers.push_back({
.is_elu = true, // layer (i_start + 1)
});
layers.push_back({
.conv_0_w = ctx.get_weight("encoder.layers.%d.conv.weight", i_start + 2),
.conv_0_b = ctx.get_weight("encoder.layers.%d.conv.bias", i_start + 2),
.stride = mimi_config.downsampling_ratio[i],
});
}
layers.push_back({
.is_elu = true, // layer 13
});
layers.push_back({
.conv_0_w = ctx.get_weight("encoder.layers.14.conv.weight"),
.conv_0_b = ctx.get_weight("encoder.layers.14.conv.bias"),
});
}
|
O3
|
cpp
|
mimi_encoder_decoder::load_encoder():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %r14
movw $0x0, (%rsp)
movb $0x0, 0x2(%rsp)
movq (%rdi), %rdi
leaq 0x5919(%rip), %rsi # 0xd917
xorl %eax, %eax
callq 0xa6ea
movq %rax, 0x8(%rsp)
movq (%rbx), %rdi
leaq 0x5920(%rip), %rsi # 0xd934
xorl %eax, %eax
callq 0xa6ea
movq %rax, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movl $0x1, 0x28(%rsp)
movq 0x18(%rbx), %rsi
cmpq 0x20(%rbx), %rsi
je 0x805a
movups (%rsp), %xmm0
movups 0x10(%rsp), %xmm1
movups 0x20(%rsp), %xmm2
movups %xmm2, 0x20(%rsi)
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x30, 0x18(%rbx)
jmp 0x8065
movq %rsp, %rdx
movq %r14, %rdi
callq 0xabc2
movq %rsp, %r15
leaq 0x5992(%rip), %r13 # 0xda01
xorl %r12d, %r12d
movl 0x28(%rbx,%r12,4), %ebp
movw $0x100, (%rsp) # imm = 0x100
movb $0x0, 0x2(%rsp)
movq (%rbx), %rdi
leaq 0x58c3(%rip), %rsi # 0xd94f
movl %ebp, %edx
xorl %eax, %eax
callq 0xa6ea
movq %rax, 0x8(%rsp)
movq (%rbx), %rdi
leaq 0x58d1(%rip), %rsi # 0xd975
movl %ebp, %edx
xorl %eax, %eax
callq 0xa6ea
movq %rax, 0x10(%rsp)
movq (%rbx), %rdi
leaq 0x58dd(%rip), %rsi # 0xd999
movl %ebp, %edx
xorl %eax, %eax
callq 0xa6ea
movq %rax, 0x18(%rsp)
movq (%rbx), %rdi
leaq 0x58eb(%rip), %rsi # 0xd9bf
movl %ebp, %edx
xorl %eax, %eax
callq 0xa6ea
movq %rax, 0x20(%rsp)
movl $0x1, 0x28(%rsp)
movq 0x18(%rbx), %rsi
cmpq 0x20(%rbx), %rsi
je 0x811b
movups (%rsp), %xmm0
movups 0x10(%rsp), %xmm1
movups 0x20(%rsp), %xmm2
movups %xmm2, 0x20(%rsi)
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
movq 0x18(%rbx), %rsi
addq $0x30, %rsi
movq %rsi, 0x18(%rbx)
jmp 0x812a
movq %r14, %rdi
movq %r15, %rdx
callq 0xabc2
movq 0x18(%rbx), %rsi
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movb $0x1, (%rsp)
movb $0x0, 0x2(%rsp)
movl $0x1, 0x28(%rsp)
cmpq 0x20(%rbx), %rsi
je 0x8176
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movaps 0x20(%rsp), %xmm2
movups %xmm2, 0x20(%rsi)
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x30, 0x18(%rbx)
jmp 0x8181
movq %r14, %rdi
movq %r15, %rdx
callq 0xabc2
movw $0x0, (%rsp)
movb $0x0, 0x2(%rsp)
movq (%rbx), %rdi
addl $0x2, %ebp
leaq 0x584a(%rip), %rsi # 0xd9e3
movl %ebp, %edx
xorl %eax, %eax
callq 0xa6ea
movq %rax, 0x8(%rsp)
movq (%rbx), %rdi
movq %r13, %rsi
movl %ebp, %edx
xorl %eax, %eax
callq 0xa6ea
movq %rax, 0x10(%rsp)
leaq 0x18(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq 0xa2a3(%rip), %rax # 0x12470
movl 0x3c(%rax,%r12,4), %eax
movl %eax, 0x28(%rsp)
movq 0x18(%rbx), %rsi
cmpq 0x20(%rbx), %rsi
je 0x8200
movups (%rsp), %xmm0
movups 0x10(%rsp), %xmm1
movups 0x20(%rsp), %xmm2
movups %xmm2, 0x20(%rsi)
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x30, 0x18(%rbx)
jmp 0x820b
movq %r14, %rdi
movq %r15, %rdx
callq 0xabc2
incq %r12
cmpq $0x4, %r12
jne 0x8072
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movb $0x1, (%rsp)
movb $0x0, 0x2(%rsp)
movl $0x1, 0x28(%rsp)
movq 0x18(%rbx), %rsi
cmpq 0x20(%rbx), %rsi
je 0x8268
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movaps 0x20(%rsp), %xmm2
movups %xmm2, 0x20(%rsi)
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x30, 0x18(%rbx)
jmp 0x8273
movq %rsp, %rdx
movq %r14, %rdi
callq 0xabc2
movw $0x0, (%rsp)
movb $0x0, 0x2(%rsp)
movq (%rbx), %rdi
leaq 0x5795(%rip), %rsi # 0xda1d
xorl %eax, %eax
callq 0xa6ea
movq %rax, 0x8(%rsp)
movq (%rbx), %rdi
leaq 0x579d(%rip), %rsi # 0xda3b
xorl %eax, %eax
callq 0xa6ea
movq %rax, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movl $0x1, 0x28(%rsp)
movq 0x18(%rbx), %rsi
cmpq 0x20(%rbx), %rsi
je 0x82e4
movups (%rsp), %xmm0
movups 0x10(%rsp), %xmm1
movups 0x20(%rsp), %xmm2
movups %xmm2, 0x20(%rsi)
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x30, 0x18(%rbx)
jmp 0x82ef
movq %rsp, %rdx
movq %r14, %rdi
callq 0xabc2
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ZN20mimi_encoder_decoder12load_encoderEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov rbx, rdi
lea r14, [rdi+10h]
mov word ptr [rsp+68h+var_68], 0
mov byte ptr [rsp+68h+var_68+2], 0
mov rdi, [rdi]; this
lea rsi, aEncoderLayers0; "encoder.layers.0.conv.weight"
xor eax, eax
call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...)
mov qword ptr [rsp+68h+var_68+8], rax
mov rdi, [rbx]; this
lea rsi, aEncoderLayers0_0; "encoder.layers.0.conv.bias"
xor eax, eax
call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...)
mov qword ptr [rsp+68h+var_58], rax
xorps xmm0, xmm0
movups [rsp+68h+var_58+8], xmm0
mov dword ptr [rsp+68h+var_48+8], 1
mov rsi, [rbx+18h]
cmp rsi, [rbx+20h]
jz short loc_805A
movups xmm0, [rsp+68h+var_68]
movups xmm1, [rsp+68h+var_58]
movups xmm2, xmmword ptr [rsp+20h]
movups xmmword ptr [rsi+20h], xmm2
movups xmmword ptr [rsi+10h], xmm1
movups xmmword ptr [rsi], xmm0
add qword ptr [rbx+18h], 30h ; '0'
jmp short loc_8065
loc_805A:
mov rdx, rsp
mov rdi, r14
call _ZNSt6vectorIN20mimi_encoder_decoder5layerESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_; std::vector<mimi_encoder_decoder::layer>::_M_realloc_insert<mimi_encoder_decoder::layer>(__gnu_cxx::__normal_iterator<mimi_encoder_decoder::layer*,std::vector<mimi_encoder_decoder::layer>>,mimi_encoder_decoder::layer &&)
loc_8065:
mov r15, rsp
lea r13, aEncoderLayersD; "encoder.layers.%d.conv.bias"
xor r12d, r12d
loc_8072:
mov ebp, [rbx+r12*4+28h]
mov word ptr [rsp+68h+var_68], 100h
mov byte ptr [rsp+68h+var_68+2], 0
mov rdi, [rbx]; this
lea rsi, aEncoderLayersD_0; "encoder.layers.%d.block.1.conv.weight"
mov edx, ebp
xor eax, eax
call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...)
mov qword ptr [rsp+68h+var_68+8], rax
mov rdi, [rbx]; this
lea rsi, aEncoderLayersD_1; "encoder.layers.%d.block.1.conv.bias"
mov edx, ebp
xor eax, eax
call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...)
mov qword ptr [rsp+68h+var_58], rax
mov rdi, [rbx]; this
lea rsi, aEncoderLayersD_2; "encoder.layers.%d.block.3.conv.weight"
mov edx, ebp
xor eax, eax
call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...)
mov qword ptr [rsp+68h+var_58+8], rax
mov rdi, [rbx]; this
lea rsi, aEncoderLayersD_3; "encoder.layers.%d.block.3.conv.bias"
mov edx, ebp
xor eax, eax
call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...)
mov qword ptr [rsp+68h+var_48], rax
mov dword ptr [rsp+68h+var_48+8], 1
mov rsi, [rbx+18h]
cmp rsi, [rbx+20h]
jz short loc_811B
movups xmm0, [rsp+68h+var_68]
movups xmm1, [rsp+68h+var_58]
movups xmm2, [rsp+68h+var_48]
movups xmmword ptr [rsi+20h], xmm2
movups xmmword ptr [rsi+10h], xmm1
movups xmmword ptr [rsi], xmm0
mov rsi, [rbx+18h]
add rsi, 30h ; '0'
mov [rbx+18h], rsi
jmp short loc_812A
loc_811B:
mov rdi, r14
mov rdx, r15
call _ZNSt6vectorIN20mimi_encoder_decoder5layerESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_; std::vector<mimi_encoder_decoder::layer>::_M_realloc_insert<mimi_encoder_decoder::layer>(__gnu_cxx::__normal_iterator<mimi_encoder_decoder::layer*,std::vector<mimi_encoder_decoder::layer>>,mimi_encoder_decoder::layer &&)
mov rsi, [rbx+18h]
loc_812A:
xorps xmm0, xmm0
movaps [rsp+68h+var_68], xmm0
movaps [rsp+68h+var_58], xmm0
mov qword ptr [rsp+68h+var_48], 0
mov byte ptr [rsp+68h+var_68], 1
mov byte ptr [rsp+68h+var_68+2], 0
mov dword ptr [rsp+68h+var_48+8], 1
cmp rsi, [rbx+20h]
jz short loc_8176
movaps xmm0, [rsp+68h+var_68]
movaps xmm1, [rsp+68h+var_58]
movaps xmm2, [rsp+68h+var_48]
movups xmmword ptr [rsi+20h], xmm2
movups xmmword ptr [rsi+10h], xmm1
movups xmmword ptr [rsi], xmm0
add qword ptr [rbx+18h], 30h ; '0'
jmp short loc_8181
loc_8176:
mov rdi, r14
mov rdx, r15
call _ZNSt6vectorIN20mimi_encoder_decoder5layerESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_; std::vector<mimi_encoder_decoder::layer>::_M_realloc_insert<mimi_encoder_decoder::layer>(__gnu_cxx::__normal_iterator<mimi_encoder_decoder::layer*,std::vector<mimi_encoder_decoder::layer>>,mimi_encoder_decoder::layer &&)
loc_8181:
mov word ptr [rsp+68h+var_68], 0
mov byte ptr [rsp+68h+var_68+2], 0
mov rdi, [rbx]; this
add ebp, 2
lea rsi, aEncoderLayersD_4; "encoder.layers.%d.conv.weight"
mov edx, ebp
xor eax, eax
call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...)
mov qword ptr [rsp+68h+var_68+8], rax
mov rdi, [rbx]; this
mov rsi, r13; char *
mov edx, ebp
xor eax, eax
call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...)
mov qword ptr [rsp+68h+var_58], rax
lea rax, [rsp+68h+var_58+8]
xorps xmm0, xmm0
movups xmmword ptr [rax], xmm0
lea rax, mimi_config
mov eax, [rax+r12*4+3Ch]
mov dword ptr [rsp+68h+var_48+8], eax
mov rsi, [rbx+18h]
cmp rsi, [rbx+20h]
jz short loc_8200
movups xmm0, [rsp+68h+var_68]
movups xmm1, [rsp+68h+var_58]
movups xmm2, [rsp+68h+var_48]
movups xmmword ptr [rsi+20h], xmm2
movups xmmword ptr [rsi+10h], xmm1
movups xmmword ptr [rsi], xmm0
add qword ptr [rbx+18h], 30h ; '0'
jmp short loc_820B
loc_8200:
mov rdi, r14
mov rdx, r15
call _ZNSt6vectorIN20mimi_encoder_decoder5layerESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_; std::vector<mimi_encoder_decoder::layer>::_M_realloc_insert<mimi_encoder_decoder::layer>(__gnu_cxx::__normal_iterator<mimi_encoder_decoder::layer*,std::vector<mimi_encoder_decoder::layer>>,mimi_encoder_decoder::layer &&)
loc_820B:
inc r12
cmp r12, 4
jnz loc_8072
xorps xmm0, xmm0
movaps [rsp+68h+var_68], xmm0
movaps [rsp+68h+var_58], xmm0
mov qword ptr [rsp+68h+var_48], 0
mov byte ptr [rsp+68h+var_68], 1
mov byte ptr [rsp+68h+var_68+2], 0
mov dword ptr [rsp+68h+var_48+8], 1
mov rsi, [rbx+18h]
cmp rsi, [rbx+20h]
jz short loc_8268
movaps xmm0, [rsp+68h+var_68]
movaps xmm1, [rsp+68h+var_58]
movaps xmm2, [rsp+68h+var_48]
movups xmmword ptr [rsi+20h], xmm2
movups xmmword ptr [rsi+10h], xmm1
movups xmmword ptr [rsi], xmm0
add qword ptr [rbx+18h], 30h ; '0'
jmp short loc_8273
loc_8268:
mov rdx, rsp
mov rdi, r14
call _ZNSt6vectorIN20mimi_encoder_decoder5layerESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_; std::vector<mimi_encoder_decoder::layer>::_M_realloc_insert<mimi_encoder_decoder::layer>(__gnu_cxx::__normal_iterator<mimi_encoder_decoder::layer*,std::vector<mimi_encoder_decoder::layer>>,mimi_encoder_decoder::layer &&)
loc_8273:
mov word ptr [rsp+68h+var_68], 0
mov byte ptr [rsp+68h+var_68+2], 0
mov rdi, [rbx]; this
lea rsi, aEncoderLayers1; "encoder.layers.14.conv.weight"
xor eax, eax
call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...)
mov qword ptr [rsp+68h+var_68+8], rax
mov rdi, [rbx]; this
lea rsi, aEncoderLayers1_0; "encoder.layers.14.conv.bias"
xor eax, eax
call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...)
mov qword ptr [rsp+68h+var_58], rax
xorps xmm0, xmm0
movups [rsp+68h+var_58+8], xmm0
mov dword ptr [rsp+68h+var_48+8], 1
mov rsi, [rbx+18h]
cmp rsi, [rbx+20h]
jz short loc_82E4
movups xmm0, [rsp+68h+var_68]
movups xmm1, [rsp+68h+var_58]
movups xmm2, [rsp+68h+var_48]
movups xmmword ptr [rsi+20h], xmm2
movups xmmword ptr [rsi+10h], xmm1
movups xmmword ptr [rsi], xmm0
add qword ptr [rbx+18h], 30h ; '0'
jmp short loc_82EF
loc_82E4:
mov rdx, rsp
mov rdi, r14
call _ZNSt6vectorIN20mimi_encoder_decoder5layerESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_; std::vector<mimi_encoder_decoder::layer>::_M_realloc_insert<mimi_encoder_decoder::layer>(__gnu_cxx::__normal_iterator<mimi_encoder_decoder::layer*,std::vector<mimi_encoder_decoder::layer>>,mimi_encoder_decoder::layer &&)
loc_82EF:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long mimi_encoder_decoder::load_encoder(ggml_easy::ctx **this)
{
char *v1; // r14
ggml_easy::ctx *v2; // rsi
__int128 v3; // xmm0
__int128 v4; // xmm1
long long i; // r12
int v6; // ebp
ggml_easy::ctx *v7; // rsi
__int128 v8; // xmm0
__int128 v9; // xmm1
ggml_easy::ctx *v10; // rsi
__int128 v11; // xmm0
__int128 v12; // xmm1
int v13; // ebp
ggml_easy::ctx *v14; // rsi
__int128 v15; // xmm0
__int128 v16; // xmm1
ggml_easy::ctx *v17; // rsi
__int128 v18; // xmm0
__int128 v19; // xmm1
long long result; // rax
ggml_easy::ctx *v21; // rsi
__int128 v22; // xmm0
__int128 v23; // xmm1
__int128 v24; // [rsp+0h] [rbp-68h] BYREF
_BYTE v25[64]; // [rsp+10h] [rbp-58h] BYREF
v1 = (char *)(this + 2);
LOWORD(v24) = 0;
BYTE2(v24) = 0;
*((_QWORD *)&v24 + 1) = ggml_easy::ctx::get_weight(*this, "encoder.layers.0.conv.weight");
*(_QWORD *)v25 = ggml_easy::ctx::get_weight(*this, "encoder.layers.0.conv.bias");
*(_OWORD *)&v25[8] = 0LL;
*(_DWORD *)&v25[24] = 1;
v2 = this[3];
if ( v2 == this[4] )
{
std::vector<mimi_encoder_decoder::layer>::_M_realloc_insert<mimi_encoder_decoder::layer>(v1, v2, &v24);
}
else
{
v3 = v24;
v4 = *(_OWORD *)v25;
*((_OWORD *)v2 + 2) = *(_OWORD *)&v25[16];
*((_OWORD *)v2 + 1) = v4;
*(_OWORD *)v2 = v3;
this[3] = (ggml_easy::ctx *)((char *)this[3] + 48);
}
for ( i = 0LL; i != 4; ++i )
{
v6 = *((_DWORD *)this + i + 10);
LOWORD(v24) = 256;
BYTE2(v24) = 0;
*((_QWORD *)&v24 + 1) = ggml_easy::ctx::get_weight(*this, "encoder.layers.%d.block.1.conv.weight", v6);
*(_QWORD *)v25 = ggml_easy::ctx::get_weight(*this, "encoder.layers.%d.block.1.conv.bias", v6);
*(_QWORD *)&v25[8] = ggml_easy::ctx::get_weight(*this, "encoder.layers.%d.block.3.conv.weight", v6);
*(_QWORD *)&v25[16] = ggml_easy::ctx::get_weight(*this, "encoder.layers.%d.block.3.conv.bias", v6);
*(_DWORD *)&v25[24] = 1;
v7 = this[3];
if ( v7 == this[4] )
{
std::vector<mimi_encoder_decoder::layer>::_M_realloc_insert<mimi_encoder_decoder::layer>(v1, v7, &v24);
v10 = this[3];
}
else
{
v8 = v24;
v9 = *(_OWORD *)v25;
*((_OWORD *)v7 + 2) = *(_OWORD *)&v25[16];
*((_OWORD *)v7 + 1) = v9;
*(_OWORD *)v7 = v8;
v10 = (ggml_easy::ctx *)((char *)this[3] + 48);
this[3] = v10;
}
v24 = 0LL;
memset(v25, 0, 24);
LOBYTE(v24) = 1;
BYTE2(v24) = 0;
*(_DWORD *)&v25[24] = 1;
if ( v10 == this[4] )
{
std::vector<mimi_encoder_decoder::layer>::_M_realloc_insert<mimi_encoder_decoder::layer>(v1, v10, &v24);
}
else
{
v11 = v24;
v12 = *(_OWORD *)v25;
*((_OWORD *)v10 + 2) = *(_OWORD *)&v25[16];
*((_OWORD *)v10 + 1) = v12;
*(_OWORD *)v10 = v11;
this[3] = (ggml_easy::ctx *)((char *)this[3] + 48);
}
LOWORD(v24) = 0;
BYTE2(v24) = 0;
v13 = v6 + 2;
*((_QWORD *)&v24 + 1) = ggml_easy::ctx::get_weight(*this, "encoder.layers.%d.conv.weight", v13);
*(_QWORD *)v25 = ggml_easy::ctx::get_weight(*this, "encoder.layers.%d.conv.bias", v13);
*(_OWORD *)&v25[8] = 0LL;
*(_DWORD *)&v25[24] = *(_DWORD *)&mimi_config[4 * i + 60];
v14 = this[3];
if ( v14 == this[4] )
{
std::vector<mimi_encoder_decoder::layer>::_M_realloc_insert<mimi_encoder_decoder::layer>(v1, v14, &v24);
}
else
{
v15 = v24;
v16 = *(_OWORD *)v25;
*((_OWORD *)v14 + 2) = *(_OWORD *)&v25[16];
*((_OWORD *)v14 + 1) = v16;
*(_OWORD *)v14 = v15;
this[3] = (ggml_easy::ctx *)((char *)this[3] + 48);
}
}
v24 = 0LL;
memset(v25, 0, 24);
LOBYTE(v24) = 1;
BYTE2(v24) = 0;
*(_DWORD *)&v25[24] = 1;
v17 = this[3];
if ( v17 == this[4] )
{
std::vector<mimi_encoder_decoder::layer>::_M_realloc_insert<mimi_encoder_decoder::layer>(v1, v17, &v24);
}
else
{
v18 = v24;
v19 = *(_OWORD *)v25;
*((_OWORD *)v17 + 2) = *(_OWORD *)&v25[16];
*((_OWORD *)v17 + 1) = v19;
*(_OWORD *)v17 = v18;
this[3] = (ggml_easy::ctx *)((char *)this[3] + 48);
}
LOWORD(v24) = 0;
BYTE2(v24) = 0;
*((_QWORD *)&v24 + 1) = ggml_easy::ctx::get_weight(*this, "encoder.layers.14.conv.weight");
result = ggml_easy::ctx::get_weight(*this, "encoder.layers.14.conv.bias");
*(_QWORD *)v25 = result;
*(_OWORD *)&v25[8] = 0LL;
*(_DWORD *)&v25[24] = 1;
v21 = this[3];
if ( v21 == this[4] )
return std::vector<mimi_encoder_decoder::layer>::_M_realloc_insert<mimi_encoder_decoder::layer>(v1, v21, &v24);
v22 = v24;
v23 = *(_OWORD *)v25;
*((_OWORD *)v21 + 2) = *(_OWORD *)&v25[16];
*((_OWORD *)v21 + 1) = v23;
*(_OWORD *)v21 = v22;
this[3] = (ggml_easy::ctx *)((char *)this[3] + 48);
return result;
}
|
load_encoder:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV RBX,RDI
LEA R14,[RDI + 0x10]
MOV word ptr [RSP],0x0
MOV byte ptr [RSP + 0x2],0x0
MOV RDI,qword ptr [RDI]
LEA RSI,[0x10d917]
XOR EAX,EAX
CALL 0x0010a6ea
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RBX]
LEA RSI,[0x10d934]
XOR EAX,EAX
CALL 0x0010a6ea
MOV qword ptr [RSP + 0x10],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x18],XMM0
MOV dword ptr [RSP + 0x28],0x1
MOV RSI,qword ptr [RBX + 0x18]
CMP RSI,qword ptr [RBX + 0x20]
JZ 0x0010805a
MOVUPS XMM0,xmmword ptr [RSP]
MOVUPS XMM1,xmmword ptr [RSP + 0x10]
MOVUPS XMM2,xmmword ptr [RSP + 0x20]
MOVUPS xmmword ptr [RSI + 0x20],XMM2
MOVUPS xmmword ptr [RSI + 0x10],XMM1
MOVUPS xmmword ptr [RSI],XMM0
ADD qword ptr [RBX + 0x18],0x30
JMP 0x00108065
LAB_0010805a:
MOV RDX,RSP
MOV RDI,R14
CALL 0x0010abc2
LAB_00108065:
MOV R15,RSP
LEA R13,[0x10da01]
XOR R12D,R12D
LAB_00108072:
MOV EBP,dword ptr [RBX + R12*0x4 + 0x28]
MOV word ptr [RSP],0x100
MOV byte ptr [RSP + 0x2],0x0
MOV RDI,qword ptr [RBX]
LEA RSI,[0x10d94f]
MOV EDX,EBP
XOR EAX,EAX
CALL 0x0010a6ea
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RBX]
LEA RSI,[0x10d975]
MOV EDX,EBP
XOR EAX,EAX
CALL 0x0010a6ea
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,qword ptr [RBX]
LEA RSI,[0x10d999]
MOV EDX,EBP
XOR EAX,EAX
CALL 0x0010a6ea
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RBX]
LEA RSI,[0x10d9bf]
MOV EDX,EBP
XOR EAX,EAX
CALL 0x0010a6ea
MOV qword ptr [RSP + 0x20],RAX
MOV dword ptr [RSP + 0x28],0x1
MOV RSI,qword ptr [RBX + 0x18]
CMP RSI,qword ptr [RBX + 0x20]
JZ 0x0010811b
MOVUPS XMM0,xmmword ptr [RSP]
MOVUPS XMM1,xmmword ptr [RSP + 0x10]
MOVUPS XMM2,xmmword ptr [RSP + 0x20]
MOVUPS xmmword ptr [RSI + 0x20],XMM2
MOVUPS xmmword ptr [RSI + 0x10],XMM1
MOVUPS xmmword ptr [RSI],XMM0
MOV RSI,qword ptr [RBX + 0x18]
ADD RSI,0x30
MOV qword ptr [RBX + 0x18],RSI
JMP 0x0010812a
LAB_0010811b:
MOV RDI,R14
MOV RDX,R15
CALL 0x0010abc2
MOV RSI,qword ptr [RBX + 0x18]
LAB_0010812a:
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOV qword ptr [RSP + 0x20],0x0
MOV byte ptr [RSP],0x1
MOV byte ptr [RSP + 0x2],0x0
MOV dword ptr [RSP + 0x28],0x1
CMP RSI,qword ptr [RBX + 0x20]
JZ 0x00108176
MOVAPS XMM0,xmmword ptr [RSP]
MOVAPS XMM1,xmmword ptr [RSP + 0x10]
MOVAPS XMM2,xmmword ptr [RSP + 0x20]
MOVUPS xmmword ptr [RSI + 0x20],XMM2
MOVUPS xmmword ptr [RSI + 0x10],XMM1
MOVUPS xmmword ptr [RSI],XMM0
ADD qword ptr [RBX + 0x18],0x30
JMP 0x00108181
LAB_00108176:
MOV RDI,R14
MOV RDX,R15
CALL 0x0010abc2
LAB_00108181:
MOV word ptr [RSP],0x0
MOV byte ptr [RSP + 0x2],0x0
MOV RDI,qword ptr [RBX]
ADD EBP,0x2
LEA RSI,[0x10d9e3]
MOV EDX,EBP
XOR EAX,EAX
CALL 0x0010a6ea
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RBX]
MOV RSI,R13
MOV EDX,EBP
XOR EAX,EAX
CALL 0x0010a6ea
MOV qword ptr [RSP + 0x10],RAX
LEA RAX,[RSP + 0x18]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
LEA RAX,[0x112470]
MOV EAX,dword ptr [RAX + R12*0x4 + 0x3c]
MOV dword ptr [RSP + 0x28],EAX
MOV RSI,qword ptr [RBX + 0x18]
CMP RSI,qword ptr [RBX + 0x20]
JZ 0x00108200
MOVUPS XMM0,xmmword ptr [RSP]
MOVUPS XMM1,xmmword ptr [RSP + 0x10]
MOVUPS XMM2,xmmword ptr [RSP + 0x20]
MOVUPS xmmword ptr [RSI + 0x20],XMM2
MOVUPS xmmword ptr [RSI + 0x10],XMM1
MOVUPS xmmword ptr [RSI],XMM0
ADD qword ptr [RBX + 0x18],0x30
JMP 0x0010820b
LAB_00108200:
MOV RDI,R14
MOV RDX,R15
CALL 0x0010abc2
LAB_0010820b:
INC R12
CMP R12,0x4
JNZ 0x00108072
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOV qword ptr [RSP + 0x20],0x0
MOV byte ptr [RSP],0x1
MOV byte ptr [RSP + 0x2],0x0
MOV dword ptr [RSP + 0x28],0x1
MOV RSI,qword ptr [RBX + 0x18]
CMP RSI,qword ptr [RBX + 0x20]
JZ 0x00108268
MOVAPS XMM0,xmmword ptr [RSP]
MOVAPS XMM1,xmmword ptr [RSP + 0x10]
MOVAPS XMM2,xmmword ptr [RSP + 0x20]
MOVUPS xmmword ptr [RSI + 0x20],XMM2
MOVUPS xmmword ptr [RSI + 0x10],XMM1
MOVUPS xmmword ptr [RSI],XMM0
ADD qword ptr [RBX + 0x18],0x30
JMP 0x00108273
LAB_00108268:
MOV RDX,RSP
MOV RDI,R14
CALL 0x0010abc2
LAB_00108273:
MOV word ptr [RSP],0x0
MOV byte ptr [RSP + 0x2],0x0
MOV RDI,qword ptr [RBX]
LEA RSI,[0x10da1d]
XOR EAX,EAX
CALL 0x0010a6ea
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RBX]
LEA RSI,[0x10da3b]
XOR EAX,EAX
CALL 0x0010a6ea
MOV qword ptr [RSP + 0x10],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x18],XMM0
MOV dword ptr [RSP + 0x28],0x1
MOV RSI,qword ptr [RBX + 0x18]
CMP RSI,qword ptr [RBX + 0x20]
JZ 0x001082e4
MOVUPS XMM0,xmmword ptr [RSP]
MOVUPS XMM1,xmmword ptr [RSP + 0x10]
MOVUPS XMM2,xmmword ptr [RSP + 0x20]
MOVUPS xmmword ptr [RSI + 0x20],XMM2
MOVUPS xmmword ptr [RSI + 0x10],XMM1
MOVUPS xmmword ptr [RSI],XMM0
ADD qword ptr [RBX + 0x18],0x30
JMP 0x001082ef
LAB_001082e4:
MOV RDX,RSP
MOV RDI,R14
CALL 0x0010abc2
LAB_001082ef:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* mimi_encoder_decoder::load_encoder() */
void __thiscall mimi_encoder_decoder::load_encoder(mimi_encoder_decoder *this)
{
vector<mimi_encoder_decoder::layer,std::allocator<mimi_encoder_decoder::layer>> *pvVar1;
uint uVar2;
ulong *puVar3;
int4 *puVar4;
long lVar5;
ulong local_68;
ulong uStack_60;
ulong local_58;
ulong uStack_50;
ulong uStack_48;
int4 uStack_40;
int4 uStack_3c;
pvVar1 = (vector<mimi_encoder_decoder::layer,std::allocator<mimi_encoder_decoder::layer>> *)
(this + 0x10);
local_68 = local_68 & 0xffffffffff000000;
uStack_60 = ggml_easy::ctx::get_weight(*(char **)this,"encoder.layers.0.conv.weight");
local_58 = ggml_easy::ctx::get_weight(*(char **)this,"encoder.layers.0.conv.bias");
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 1;
puVar3 = *(ulong **)(this + 0x18);
if (puVar3 == *(ulong **)(this + 0x20)) {
std::vector<mimi_encoder_decoder::layer,std::allocator<mimi_encoder_decoder::layer>>::
_M_realloc_insert<mimi_encoder_decoder::layer>(pvVar1,puVar3,&local_68);
}
else {
puVar3[4] = 0;
puVar3[5] = CONCAT44(uStack_3c,1);
puVar3[2] = local_58;
puVar3[3] = 0;
*puVar3 = local_68;
puVar3[1] = uStack_60;
*(long *)(this + 0x18) = *(long *)(this + 0x18) + 0x30;
}
lVar5 = 0;
do {
uVar2 = *(uint *)(this + lVar5 * 4 + 0x28);
local_68 = CONCAT53(local_68._3_5_,0x100);
uStack_60 = ggml_easy::ctx::get_weight
(*(char **)this,"encoder.layers.%d.block.1.conv.weight",(ulong)uVar2);
local_58 = ggml_easy::ctx::get_weight
(*(char **)this,"encoder.layers.%d.block.1.conv.bias",(ulong)uVar2);
uStack_50 = ggml_easy::ctx::get_weight
(*(char **)this,"encoder.layers.%d.block.3.conv.weight",(ulong)uVar2);
uStack_48 = ggml_easy::ctx::get_weight
(*(char **)this,"encoder.layers.%d.block.3.conv.bias",(ulong)uVar2);
uStack_40 = 1;
puVar3 = *(ulong **)(this + 0x18);
if (puVar3 == *(ulong **)(this + 0x20)) {
std::vector<mimi_encoder_decoder::layer,std::allocator<mimi_encoder_decoder::layer>>::
_M_realloc_insert<mimi_encoder_decoder::layer>(pvVar1,puVar3,&local_68);
puVar4 = *(int4 **)(this + 0x18);
}
else {
puVar3[4] = uStack_48;
puVar3[5] = CONCAT44(uStack_3c,1);
puVar3[2] = local_58;
puVar3[3] = uStack_50;
*puVar3 = local_68;
puVar3[1] = uStack_60;
puVar4 = (int4 *)(*(long *)(this + 0x18) + 0x30);
*(int4 **)(this + 0x18) = puVar4;
}
uStack_60 = 0;
local_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
local_68 = 1;
uStack_40 = 1;
if (puVar4 == *(int4 **)(this + 0x20)) {
std::vector<mimi_encoder_decoder::layer,std::allocator<mimi_encoder_decoder::layer>>::
_M_realloc_insert<mimi_encoder_decoder::layer>(pvVar1,puVar4,&local_68);
}
else {
*(int8 *)(puVar4 + 8) = 0;
*(ulong *)(puVar4 + 10) = CONCAT44(uStack_3c,1);
*(int8 *)(puVar4 + 4) = 0;
*(int8 *)(puVar4 + 6) = 0;
*puVar4 = 1;
puVar4[1] = 0;
puVar4[2] = 0;
puVar4[3] = 0;
*(long *)(this + 0x18) = *(long *)(this + 0x18) + 0x30;
}
local_68 = local_68 & 0xffffffffff000000;
uStack_60 = ggml_easy::ctx::get_weight
(*(char **)this,"encoder.layers.%d.conv.weight",(ulong)(uVar2 + 2));
local_58 = ggml_easy::ctx::get_weight
(*(char **)this,"encoder.layers.%d.conv.bias",(ulong)(uVar2 + 2));
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = (&DAT_001124ac)[lVar5];
puVar3 = *(ulong **)(this + 0x18);
if (puVar3 == *(ulong **)(this + 0x20)) {
std::vector<mimi_encoder_decoder::layer,std::allocator<mimi_encoder_decoder::layer>>::
_M_realloc_insert<mimi_encoder_decoder::layer>(pvVar1,puVar3,&local_68);
}
else {
puVar3[4] = 0;
puVar3[5] = CONCAT44(uStack_3c,uStack_40);
puVar3[2] = local_58;
puVar3[3] = 0;
*puVar3 = local_68;
puVar3[1] = uStack_60;
*(long *)(this + 0x18) = *(long *)(this + 0x18) + 0x30;
}
lVar5 = lVar5 + 1;
} while (lVar5 != 4);
uStack_60 = 0;
local_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
local_68 = 1;
uStack_40 = 1;
puVar4 = *(int4 **)(this + 0x18);
if (puVar4 == *(int4 **)(this + 0x20)) {
std::vector<mimi_encoder_decoder::layer,std::allocator<mimi_encoder_decoder::layer>>::
_M_realloc_insert<mimi_encoder_decoder::layer>(pvVar1,puVar4,&local_68);
}
else {
*(int8 *)(puVar4 + 8) = 0;
*(ulong *)(puVar4 + 10) = CONCAT44(uStack_3c,1);
*(int8 *)(puVar4 + 4) = 0;
*(int8 *)(puVar4 + 6) = 0;
*puVar4 = 1;
puVar4[1] = 0;
puVar4[2] = 0;
puVar4[3] = 0;
*(long *)(this + 0x18) = *(long *)(this + 0x18) + 0x30;
}
local_68 = local_68 & 0xffffffffff000000;
uStack_60 = ggml_easy::ctx::get_weight(*(char **)this,"encoder.layers.14.conv.weight");
local_58 = ggml_easy::ctx::get_weight(*(char **)this,"encoder.layers.14.conv.bias");
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 1;
puVar3 = *(ulong **)(this + 0x18);
if (puVar3 == *(ulong **)(this + 0x20)) {
std::vector<mimi_encoder_decoder::layer,std::allocator<mimi_encoder_decoder::layer>>::
_M_realloc_insert<mimi_encoder_decoder::layer>(pvVar1,puVar3,&local_68);
}
else {
puVar3[4] = 0;
puVar3[5] = CONCAT44(uStack_3c,1);
puVar3[2] = local_58;
puVar3[3] = 0;
*puVar3 = local_68;
puVar3[1] = uStack_60;
*(long *)(this + 0x18) = *(long *)(this + 0x18) + 0x30;
}
return;
}
|
|
10,756 |
my_strnxfrm_latin1_de
|
eloqsql/strings/ctype-latin1.c
|
static size_t
my_strnxfrm_latin1_de(CHARSET_INFO *cs,
uchar *dst, size_t dstlen, uint nweights,
const uchar* src, size_t srclen, uint flags)
{
uchar *de= dst + dstlen;
const uchar *se= src + srclen;
uchar *d0= dst;
for ( ; src < se && dst < de && nweights; src++, nweights--)
{
uchar chr= combo1map[*src];
*dst++= chr;
if ((chr= combo2map[*src]) && dst < de && nweights > 1)
{
*dst++= chr;
nweights--;
}
}
return my_strxfrm_pad_desc_and_reverse(cs, d0, dst, de, nweights, flags, 0);
}
|
O0
|
c
|
my_strnxfrm_latin1_de:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rcx
xorl %eax, %eax
cmpq -0x40(%rbp), %rcx
movb %al, -0x4a(%rbp)
jae 0x4056a
movq -0x10(%rbp), %rcx
xorl %eax, %eax
cmpq -0x38(%rbp), %rcx
movb %al, -0x4a(%rbp)
jae 0x4056a
cmpl $0x0, -0x1c(%rbp)
setne %al
movb %al, -0x4a(%rbp)
movb -0x4a(%rbp), %al
testb $0x1, %al
jne 0x40576
jmp 0x40607
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0xff45a(%rip), %rax # 0x13f9e0
movb (%rax,%rcx), %al
movb %al, -0x49(%rbp)
movb -0x49(%rbp), %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0xff530(%rip), %rax # 0x13fae0
movb (%rax,%rcx), %al
movb %al, -0x49(%rbp)
movzbl %al, %eax
cmpl $0x0, %eax
je 0x405eb
movq -0x10(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0x405eb
cmpl $0x1, -0x1c(%rbp)
jbe 0x405eb
movb -0x49(%rbp), %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x1c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x405ed
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movl -0x1c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x40542
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x38(%rbp), %rcx
movl -0x1c(%rbp), %r8d
movl 0x10(%rbp), %r9d
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x43610
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
|
my_strnxfrm_latin1_de:
push rbp
mov rbp, rsp
sub rsp, 60h
mov eax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_38], rax
mov rax, [rbp+var_28]
add rax, [rbp+var_30]
mov [rbp+var_40], rax
mov rax, [rbp+var_10]
mov [rbp+var_48], rax
loc_40542:
mov rcx, [rbp+var_28]
xor eax, eax
cmp rcx, [rbp+var_40]
mov [rbp+var_4A], al
jnb short loc_4056A
mov rcx, [rbp+var_10]
xor eax, eax
cmp rcx, [rbp+var_38]
mov [rbp+var_4A], al
jnb short loc_4056A
cmp [rbp+var_1C], 0
setnz al
mov [rbp+var_4A], al
loc_4056A:
mov al, [rbp+var_4A]
test al, 1
jnz short loc_40576
jmp loc_40607
loc_40576:
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, combo1map
mov al, [rax+rcx]
mov [rbp+var_49], al
mov cl, [rbp+var_49]
mov rax, [rbp+var_10]
mov rdx, rax
add rdx, 1
mov [rbp+var_10], rdx
mov [rax], cl
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, combo2map
mov al, [rax+rcx]
mov [rbp+var_49], al
movzx eax, al
cmp eax, 0
jz short loc_405EB
mov rax, [rbp+var_10]
cmp rax, [rbp+var_38]
jnb short loc_405EB
cmp [rbp+var_1C], 1
jbe short loc_405EB
mov cl, [rbp+var_49]
mov rax, [rbp+var_10]
mov rdx, rax
add rdx, 1
mov [rbp+var_10], rdx
mov [rax], cl
mov eax, [rbp+var_1C]
add eax, 0FFFFFFFFh
mov [rbp+var_1C], eax
loc_405EB:
jmp short $+2
loc_405ED:
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
mov eax, [rbp+var_1C]
add eax, 0FFFFFFFFh
mov [rbp+var_1C], eax
jmp loc_40542
loc_40607:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_48]
mov rdx, [rbp+var_10]
mov rcx, [rbp+var_38]
mov r8d, [rbp+var_1C]
mov r9d, [rbp+arg_0]
xor eax, eax
mov [rsp+60h+var_60], 0
call my_strxfrm_pad_desc_and_reverse
add rsp, 60h
pop rbp
retn
|
long long my_strnxfrm_latin1_de(
int a1,
unsigned __int8 *a2,
long long a3,
unsigned int a4,
unsigned __int8 *a5,
long long a6,
int a7)
{
unsigned __int8 *v7; // rax
unsigned __int8 *v8; // rax
bool v10; // [rsp+16h] [rbp-4Ah]
unsigned __int8 v11; // [rsp+17h] [rbp-49h]
unsigned long long v12; // [rsp+28h] [rbp-38h]
unsigned __int8 *v13; // [rsp+38h] [rbp-28h]
unsigned __int8 *v15; // [rsp+50h] [rbp-10h]
v15 = a2;
v13 = a5;
v12 = (unsigned long long)&a2[a3];
while ( 1 )
{
v10 = 0;
if ( v13 < &a5[a6] )
{
v10 = 0;
if ( (unsigned long long)v15 < v12 )
v10 = a4 != 0;
}
if ( !v10 )
break;
v7 = v15++;
*v7 = combo1map[*v13];
v11 = combo2map[*v13];
if ( v11 && (unsigned long long)v15 < v12 && a4 > 1 )
{
v8 = v15++;
*v8 = v11;
--a4;
}
++v13;
--a4;
}
return my_strxfrm_pad_desc_and_reverse(a1, (_DWORD)a2, (_DWORD)v15, v12, a4, a7, 0);
}
|
my_strnxfrm_latin1_de:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV EAX,dword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV dword ptr [RBP + -0x1c],ECX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x48],RAX
LAB_00140542:
MOV RCX,qword ptr [RBP + -0x28]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x40]
MOV byte ptr [RBP + -0x4a],AL
JNC 0x0014056a
MOV RCX,qword ptr [RBP + -0x10]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x38]
MOV byte ptr [RBP + -0x4a],AL
JNC 0x0014056a
CMP dword ptr [RBP + -0x1c],0x0
SETNZ AL
MOV byte ptr [RBP + -0x4a],AL
LAB_0014056a:
MOV AL,byte ptr [RBP + -0x4a]
TEST AL,0x1
JNZ 0x00140576
JMP 0x00140607
LAB_00140576:
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x23f9e0]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x49],AL
MOV CL,byte ptr [RBP + -0x49]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x23fae0]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x49],AL
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x001405eb
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x001405eb
CMP dword ptr [RBP + -0x1c],0x1
JBE 0x001405eb
MOV CL,byte ptr [RBP + -0x49]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x1c],EAX
LAB_001405eb:
JMP 0x001405ed
LAB_001405ed:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x00140542
LAB_00140607:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x38]
MOV R8D,dword ptr [RBP + -0x1c]
MOV R9D,dword ptr [RBP + 0x10]
XOR EAX,EAX
MOV dword ptr [RSP],0x0
CALL 0x00143610
ADD RSP,0x60
POP RBP
RET
|
void my_strnxfrm_latin1_de
(int8 param_1,char *param_2,long param_3,uint param_4,byte *param_5,
long param_6,int4 param_7)
{
char *pcVar1;
char *pcVar2;
bool bVar3;
byte *local_30;
uint local_24;
char *local_18;
pcVar1 = param_2 + param_3;
local_30 = param_5;
local_24 = param_4;
local_18 = param_2;
while( true ) {
bVar3 = false;
if ((local_30 < param_5 + param_6) && (bVar3 = false, local_18 < pcVar1)) {
bVar3 = local_24 != 0;
}
if (!bVar3) break;
pcVar2 = local_18 + 1;
*local_18 = combo1map[*local_30];
if (((combo2map[*local_30] != '\0') && (pcVar2 < pcVar1)) && (1 < local_24)) {
*pcVar2 = combo2map[*local_30];
local_24 = local_24 - 1;
pcVar2 = local_18 + 2;
}
local_18 = pcVar2;
local_30 = local_30 + 1;
local_24 = local_24 - 1;
}
my_strxfrm_pad_desc_and_reverse(param_1,param_2,local_18,pcVar1,local_24,param_7,0);
return;
}
|
|
10,757 |
trnman_init
|
eloqsql/storage/maria/trnman.c
|
int trnman_init(TrID initial_trid)
{
DBUG_ENTER("trnman_init");
DBUG_PRINT("enter", ("initial_trid: %lu", (ulong) initial_trid));
short_trid_to_active_trn= (TRN **)my_malloc(PSI_INSTRUMENT_ME, SHORT_TRID_MAX*sizeof(TRN*),
MYF(MY_WME|MY_ZEROFILL));
if (unlikely(!short_trid_to_active_trn))
DBUG_RETURN(1);
short_trid_to_active_trn--; /* min short_id is 1 */
/*
Initialize lists.
active_list_max.min_read_from must be larger than any trid,
so that when an active list is empty we would could free
all committed list.
And committed_list_max itself can not be freed so
committed_list_max.commit_trid must not be smaller that
active_list_max.min_read_from
*/
active_list_max.trid= active_list_min.trid= 0;
active_list_max.min_read_from= MAX_TRID;
active_list_max.next= active_list_min.prev= 0;
active_list_max.prev= &active_list_min;
active_list_min.next= &active_list_max;
committed_list_max.commit_trid= MAX_TRID;
committed_list_max.next= committed_list_min.prev= 0;
committed_list_max.prev= &committed_list_min;
committed_list_min.next= &committed_list_max;
trnman_active_transactions= 0;
trnman_committed_transactions= 0;
trnman_allocated_transactions= 0;
/* This is needed for recovery and repair */
dummy_transaction_object.min_read_from= ~(TrID) 0;
dummy_transaction_object.first_undo_lsn= TRANSACTION_LOGGED_LONG_ID;
pool= 0;
global_trid_generator= initial_trid;
trid_min_read_from= initial_trid;
lf_hash_init(&trid_to_trn, sizeof(TRN*), LF_HASH_UNIQUE,
0, 0, trn_get_hash_key, 0);
DBUG_PRINT("info", ("mysql_mutex_init LOCK_trn_list"));
mysql_mutex_init(key_LOCK_trn_list, &LOCK_trn_list, MY_MUTEX_INIT_FAST);
DBUG_RETURN(0);
}
|
O3
|
c
|
trnman_init:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
xorl %ebx, %ebx
pushq $0x30
popq %rdx
movl $0x7fff8, %esi # imm = 0x7FFF8
xorl %edi, %edi
callq 0x9fc95
movq %rax, 0x3d2dfa(%rip) # 0x3fd170
testq %rax, %rax
je 0x2a4c2
andq $0x0, 0x3d2e69(%rip) # 0x3fd1f0
andq $0x0, 0x3d2f11(%rip) # 0x3fd2a0
addq $-0x8, %rax
orq $-0x1, 0x3d2f0d(%rip) # 0x3fd2a8
movq %rax, 0x3d2dce(%rip) # 0x3fd170
andq $0x0, 0x3d2e3e(%rip) # 0x3fd1e8
leaq 0x3d2dc7(%rip), %rax # 0x3fd178
andq $0x0, 0x3d2ed7(%rip) # 0x3fd290
leaq 0x3d2e68(%rip), %rcx # 0x3fd228
orq $-0x1, 0x3d2f98(%rip) # 0x3fd360
movq %rax, 0x3d2ec9(%rip) # 0x3fd298
andq $0x0, 0x3d3021(%rip) # 0x3fd3f8
movq %rcx, 0x3d2e02(%rip) # 0x3fd1e0
andq $0x0, 0x3d2f5a(%rip) # 0x3fd340
leaq 0x3d2eeb(%rip), %rax # 0x3fd2d8
andl $0x0, 0x3d3044(%rip) # 0x3fd438
leaq 0x3d2f8d(%rip), %rcx # 0x3fd388
andl $0x0, 0x3d303a(%rip) # 0x3fd43c
movq %rcx, 0x3d2f3f(%rip) # 0x3fd348
andl $0x0, 0x3d3030(%rip) # 0x3fd440
leaq 0x3d2bc9(%rip), %rcx # 0x3fcfe0
orq $-0x1, 0x80(%rcx)
movq %rax, 0x3d2fca(%rip) # 0x3fd3f0
andq $0x0, 0x3d301a(%rip) # 0x3fd448
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, 0xa0(%rcx)
movq %r14, 0x3d300a(%rip) # 0x3fd450
movq %r14, 0x359d3b(%rip) # 0x384188
andq $0x0, (%rsp)
leaq 0x3d2fff(%rip), %rdi # 0x3fd458
leaq 0x1c3fd(%rip), %r9 # 0x4685d
pushq $0x8
popq %rsi
pushq $0x1
popq %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0xa5af8
leaq 0x3d2c59(%rip), %rax # 0x3fd0d0
movl (%rax), %edi
leaq 0x35bb90(%rip), %rax # 0x386010
movq (%rax), %rax
leaq 0x3d3096(%rip), %r14 # 0x3fd520
movq %r14, %rsi
callq *0x40(%rax)
movq %rax, 0x3d30c9(%rip) # 0x3fd560
movq %r14, 0x3d30ba(%rip) # 0x3fd558
xorps %xmm0, %xmm0
movups %xmm0, 0x3d30a0(%rip) # 0x3fd548
leaq 0xbde581(%rip), %rsi # 0xc08a30
movq %r14, %rdi
callq 0x29340
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x1
popq %rbx
jmp 0x2a4b7
|
trnman_init:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 10h
mov r14, rdi
xor ebx, ebx
push 30h ; '0'
pop rdx
mov esi, 7FFF8h
xor edi, edi
call my_malloc
mov cs:short_trid_to_active_trn, rax
test rax, rax
jz loc_2A4C2
and cs:qword_3FD1F0, 0
and cs:qword_3FD2A0, 0
add rax, 0FFFFFFFFFFFFFFF8h
or cs:qword_3FD2A8, 0FFFFFFFFFFFFFFFFh
mov cs:short_trid_to_active_trn, rax
and cs:qword_3FD1E8, 0
lea rax, active_list_min
and cs:qword_3FD290, 0
lea rcx, active_list_max
or cs:qword_3FD360, 0FFFFFFFFFFFFFFFFh
mov cs:qword_3FD298, rax
and cs:qword_3FD3F8, 0
mov cs:qword_3FD1E0, rcx
and cs:qword_3FD340, 0
lea rax, committed_list_max
and cs:trnman_active_transactions, 0
lea rcx, committed_list_min
and cs:trnman_committed_transactions, 0
mov cs:qword_3FD348, rcx
and cs:trnman_allocated_transactions, 0
lea rcx, dummy_transaction_object
or qword ptr [rcx+80h], 0FFFFFFFFFFFFFFFFh
mov cs:qword_3FD3F0, rax
and cs:pool, 0
mov rax, 8000000000000000h
mov [rcx+0A0h], rax
mov cs:global_trid_generator, r14
mov cs:trid_min_read_from, r14
and [rsp+20h+var_20], 0
lea rdi, trid_to_trn
lea r9, trn_get_hash_key
push 8
pop rsi
push 1
pop rdx
xor ecx, ecx
xor r8d, r8d
call lf_hash_init
lea rax, key_LOCK_trn_list
mov edi, [rax]
lea rax, PSI_server
mov rax, [rax]
lea r14, LOCK_trn_list
mov rsi, r14
call qword ptr [rax+40h]
mov cs:qword_3FD560, rax
mov cs:qword_3FD558, r14
xorps xmm0, xmm0
movups cs:xmmword_3FD548, xmm0
lea rsi, my_fast_mutexattr
mov rdi, r14
call _pthread_mutex_init
loc_2A4B7:
mov eax, ebx
add rsp, 10h
pop rbx
pop r14
pop rbp
retn
loc_2A4C2:
push 1
pop rbx
jmp short loc_2A4B7
|
long long trnman_init(long long a1)
{
unsigned int v1; // ebx
long long v2; // rax
v1 = 0;
v2 = my_malloc(0LL, 524280LL, 48LL);
short_trid_to_active_trn = v2;
if ( v2 )
{
qword_3FD1F0 = 0LL;
qword_3FD2A0 = 0LL;
qword_3FD2A8 = -1LL;
short_trid_to_active_trn = v2 - 8;
qword_3FD1E8 = 0LL;
qword_3FD290 = 0LL;
qword_3FD360 = -1LL;
qword_3FD298 = (long long)&active_list_min;
qword_3FD3F8 = 0LL;
qword_3FD1E0 = (long long)&active_list_max;
qword_3FD340 = 0LL;
trnman_active_transactions = 0;
trnman_committed_transactions = 0;
qword_3FD348 = (long long)&committed_list_min;
trnman_allocated_transactions = 0;
dummy_transaction_object[16] = -1LL;
qword_3FD3F0 = (long long)&committed_list_max;
pool = 0LL;
dummy_transaction_object[20] = 0x8000000000000000LL;
global_trid_generator = a1;
trid_min_read_from = a1;
lf_hash_init((unsigned int)&trid_to_trn, 8, 1, 0, 0, (unsigned int)trn_get_hash_key, 0LL);
qword_3FD560 = ((long long ( *)(_QWORD, void *))PSI_server[8])(key_LOCK_trn_list, &LOCK_trn_list);
qword_3FD558 = (long long)&LOCK_trn_list;
xmmword_3FD548 = 0LL;
pthread_mutex_init(&LOCK_trn_list, &my_fast_mutexattr);
}
else
{
return 1;
}
return v1;
}
|
trnman_init:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV R14,RDI
XOR EBX,EBX
PUSH 0x30
POP RDX
MOV ESI,0x7fff8
XOR EDI,EDI
CALL 0x0019fc95
MOV qword ptr [0x004fd170],RAX
TEST RAX,RAX
JZ 0x0012a4c2
AND qword ptr [0x004fd1f0],0x0
AND qword ptr [0x004fd2a0],0x0
ADD RAX,-0x8
OR qword ptr [0x004fd2a8],-0x1
MOV qword ptr [0x004fd170],RAX
AND qword ptr [0x004fd1e8],0x0
LEA RAX,[0x4fd178]
AND qword ptr [0x004fd290],0x0
LEA RCX,[0x4fd228]
OR qword ptr [0x004fd360],-0x1
MOV qword ptr [0x004fd298],RAX
AND qword ptr [0x004fd3f8],0x0
MOV qword ptr [0x004fd1e0],RCX
AND qword ptr [0x004fd340],0x0
LEA RAX,[0x4fd2d8]
AND dword ptr [0x004fd438],0x0
LEA RCX,[0x4fd388]
AND dword ptr [0x004fd43c],0x0
MOV qword ptr [0x004fd348],RCX
AND dword ptr [0x004fd440],0x0
LEA RCX,[0x4fcfe0]
OR qword ptr [RCX + 0x80],-0x1
MOV qword ptr [0x004fd3f0],RAX
AND qword ptr [0x004fd448],0x0
MOV RAX,-0x8000000000000000
MOV qword ptr [RCX + 0xa0],RAX
MOV qword ptr [0x004fd450],R14
MOV qword ptr [0x00484188],R14
AND qword ptr [RSP],0x0
LEA RDI,[0x4fd458]
LEA R9,[0x14685d]
PUSH 0x8
POP RSI
PUSH 0x1
POP RDX
XOR ECX,ECX
XOR R8D,R8D
CALL 0x001a5af8
LEA RAX,[0x4fd0d0]
MOV EDI,dword ptr [RAX]
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA R14,[0x4fd520]
MOV RSI,R14
CALL qword ptr [RAX + 0x40]
MOV qword ptr [0x004fd560],RAX
MOV qword ptr [0x004fd558],R14
XORPS XMM0,XMM0
MOVUPS xmmword ptr [0x004fd548],XMM0
LEA RSI,[0xd08a30]
MOV RDI,R14
CALL 0x00129340
LAB_0012a4b7:
MOV EAX,EBX
ADD RSP,0x10
POP RBX
POP R14
POP RBP
RET
LAB_0012a4c2:
PUSH 0x1
POP RBX
JMP 0x0012a4b7
|
bool trnman_init(int8 param_1)
{
long lVar1;
lVar1 = my_malloc(0,0x7fff8,0x30);
if (lVar1 == 0) {
short_trid_to_active_trn = 0;
}
else {
active_list_min._120_8_ = 0;
active_list_max._120_8_ = 0;
short_trid_to_active_trn = lVar1 + -8;
active_list_max._128_8_ = 0xffffffffffffffff;
active_list_min._112_8_ = 0;
active_list_max._104_8_ = 0;
committed_list_max._136_8_ = 0xffffffffffffffff;
active_list_max._112_8_ = active_list_min;
committed_list_min._112_8_ = 0;
active_list_min._104_8_ = active_list_max;
committed_list_max._104_8_ = 0;
trnman_active_transactions = 0;
trnman_committed_transactions = 0;
committed_list_max._112_8_ = committed_list_min;
trnman_allocated_transactions = 0;
dummy_transaction_object._128_8_ = 0xffffffffffffffff;
committed_list_min._104_8_ = committed_list_max;
pool = 0;
dummy_transaction_object._160_8_ = 0x8000000000000000;
trid_min_read_from = param_1;
global_trid_generator = param_1;
lf_hash_init(trid_to_trn,8,1,0,0,trn_get_hash_key,0);
LOCK_trn_list._64_8_ = (**(code **)(PSI_server + 0x40))(key_LOCK_trn_list,LOCK_trn_list);
LOCK_trn_list._56_8_ = LOCK_trn_list;
LOCK_trn_list._40_8_ = 0;
LOCK_trn_list._48_8_ = 0;
pthread_mutex_init((pthread_mutex_t *)LOCK_trn_list,(pthread_mutexattr_t *)&my_fast_mutexattr);
}
return lVar1 == 0;
}
|
|
10,758 |
double_is_int32
|
bluesky950520[P]quickjs/quickjs.c
|
static inline BOOL double_is_int32(double d)
{
uint64_t u, e;
JSFloat64Union t;
t.d = d;
u = t.u64;
e = ((u >> 52) & 0x7FF) - 1023;
if (e > 30) {
// accept 0, INT32_MIN, reject too large, too small, nan, inf, -0
return !u || (u == 0xc1e0000000000000);
} else {
// shift out sign, exponent and whole part bits
// value is fractional if remaining low bits are non-zero
return !(u << 12 << e);
}
}
|
O0
|
c
|
double_is_int32:
movsd %xmm0, -0x10(%rsp)
movsd -0x10(%rsp), %xmm0
movsd %xmm0, -0x28(%rsp)
movq -0x28(%rsp), %rax
movq %rax, -0x18(%rsp)
movq -0x18(%rsp), %rax
shrq $0x34, %rax
andq $0x7ff, %rax # imm = 0x7FF
subq $0x3ff, %rax # imm = 0x3FF
movq %rax, -0x20(%rsp)
cmpq $0x1e, -0x20(%rsp)
jbe 0x5add1
movb $0x1, %al
cmpq $0x0, -0x18(%rsp)
movb %al, -0x29(%rsp)
je 0x5adc2
movabsq $-0x3e20000000000000, %rax # imm = 0xC1E0000000000000
cmpq %rax, -0x18(%rsp)
sete %al
movb %al, -0x29(%rsp)
movb -0x29(%rsp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x4(%rsp)
jmp 0x5adf4
movq -0x18(%rsp), %rax
shlq $0xc, %rax
movq -0x20(%rsp), %rcx
shlq %cl, %rax
cmpq $0x0, %rax
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x4(%rsp)
movl -0x4(%rsp), %eax
retq
nopl (%rax)
|
double_is_int32:
movsd [rsp+var_10], xmm0
movsd xmm0, [rsp+var_10]
movsd [rsp+var_28], xmm0
mov rax, [rsp+var_28]
mov [rsp+var_18], rax
mov rax, [rsp+var_18]
shr rax, 34h
and rax, 7FFh
sub rax, 3FFh
mov [rsp+var_20], rax
cmp [rsp+var_20], 1Eh
jbe short loc_5ADD1
mov al, 1
cmp [rsp+var_18], 0
mov [rsp+var_29], al
jz short loc_5ADC2
mov rax, 0C1E0000000000000h
cmp [rsp+var_18], rax
setz al
mov [rsp+var_29], al
loc_5ADC2:
mov al, [rsp+var_29]
and al, 1
movzx eax, al
mov [rsp+var_4], eax
jmp short loc_5ADF4
loc_5ADD1:
mov rax, [rsp+var_18]
shl rax, 0Ch
mov rcx, [rsp+var_20]
shl rax, cl
cmp rax, 0
setnz al
xor al, 0FFh
and al, 1
movzx eax, al
mov [rsp+var_4], eax
loc_5ADF4:
mov eax, [rsp+var_4]
retn
|
_BOOL8 double_is_int32(double a1)
{
bool v2; // [rsp+1h] [rbp-29h]
if ( ((*(_QWORD *)&a1 >> 52) & 0x7FFuLL) - 1023 <= 0x1E )
{
return *(_QWORD *)&a1 << 12 << ((unsigned __int8)(*(_QWORD *)&a1 >> 52) + 1) == 0LL;
}
else
{
v2 = 1;
if ( a1 != 0.0 )
return *(_QWORD *)&a1 == 0xC1E0000000000000LL;
return v2;
}
}
|
double_is_int32:
MOVSD qword ptr [RSP + -0x10],XMM0
MOVSD XMM0,qword ptr [RSP + -0x10]
MOVSD qword ptr [RSP + -0x28],XMM0
MOV RAX,qword ptr [RSP + -0x28]
MOV qword ptr [RSP + -0x18],RAX
MOV RAX,qword ptr [RSP + -0x18]
SHR RAX,0x34
AND RAX,0x7ff
SUB RAX,0x3ff
MOV qword ptr [RSP + -0x20],RAX
CMP qword ptr [RSP + -0x20],0x1e
JBE 0x0015add1
MOV AL,0x1
CMP qword ptr [RSP + -0x18],0x0
MOV byte ptr [RSP + -0x29],AL
JZ 0x0015adc2
MOV RAX,-0x3e20000000000000
CMP qword ptr [RSP + -0x18],RAX
SETZ AL
MOV byte ptr [RSP + -0x29],AL
LAB_0015adc2:
MOV AL,byte ptr [RSP + -0x29]
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RSP + -0x4],EAX
JMP 0x0015adf4
LAB_0015add1:
MOV RAX,qword ptr [RSP + -0x18]
SHL RAX,0xc
MOV RCX,qword ptr [RSP + -0x20]
SHL RAX,CL
CMP RAX,0x0
SETNZ AL
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RSP + -0x4],EAX
LAB_0015adf4:
MOV EAX,dword ptr [RSP + -0x4]
RET
|
bool double_is_int32(ulong param_1)
{
ulong uVar1;
bool local_29;
uVar1 = (param_1 >> 0x34 & 0x7ff) - 0x3ff;
if (uVar1 < 0x1f) {
local_29 = (bool)(((param_1 << 0xc) << ((byte)uVar1 & 0x3f) != 0 ^ 0xffU) & 1);
}
else {
local_29 = param_1 == 0 || param_1 == 0xc1e0000000000000;
}
return local_29;
}
|
|
10,759 |
double_is_int32
|
bluesky950520[P]quickjs/quickjs.c
|
static inline BOOL double_is_int32(double d)
{
uint64_t u, e;
JSFloat64Union t;
t.d = d;
u = t.u64;
e = ((u >> 52) & 0x7FF) - 1023;
if (e > 30) {
// accept 0, INT32_MIN, reject too large, too small, nan, inf, -0
return !u || (u == 0xc1e0000000000000);
} else {
// shift out sign, exponent and whole part bits
// value is fractional if remaining low bits are non-zero
return !(u << 12 << e);
}
}
|
O1
|
c
|
double_is_int32:
movq %xmm0, %rax
movq %rax, %rcx
shrq $0x34, %rcx
andl $0x7ff, %ecx # imm = 0x7FF
addq $-0x3ff, %rcx # imm = 0xFC01
cmpq $0x1f, %rcx
jb 0x1ca34
testq %rax, %rax
sete %dl
movabsq $-0x3e20000000000000, %rcx # imm = 0xC1E0000000000000
cmpq %rcx, %rax
sete %cl
orb %dl, %cl
jmp 0x1ca44
movq %rax, %rdx
shlq $0xc, %rdx
shlq %cl, %rdx
testq %rdx, %rdx
sete %cl
cvttsd2si %xmm0, %edx
xorl %esi, %esi
testb %cl, %cl
cmovneq %rdx, %rax
movl $0x7, %edx
cmovneq %rsi, %rdx
retq
|
js_number:
movq rax, xmm0
mov rcx, rax
shr rcx, 34h
and ecx, 7FFh
add rcx, 0FFFFFFFFFFFFFC01h
cmp rcx, 1Fh
jb short loc_1CA34
test rax, rax
setz dl
mov rcx, 0C1E0000000000000h
cmp rax, rcx
setz cl
or cl, dl
jmp short loc_1CA44
loc_1CA34:
mov rdx, rax
shl rdx, 0Ch
shl rdx, cl
test rdx, rdx
setz cl
loc_1CA44:
cvttsd2si edx, xmm0
xor esi, esi
test cl, cl
cmovnz rax, rdx
mov edx, 7
cmovnz rdx, rsi
retn
|
long long js_number(double a1)
{
long long result; // rax
bool v2; // cl
result = *(_QWORD *)&a1;
if ( ((*(_QWORD *)&a1 >> 52) & 0x7FFuLL) - 1023 < 0x1F )
v2 = *(_QWORD *)&a1 << 12 << ((unsigned __int8)(*(_QWORD *)&a1 >> 52) + 1) == 0LL;
else
v2 = *(_QWORD *)&a1 == 0LL || *(_QWORD *)&a1 == 0xC1E0000000000000LL;
if ( v2 )
return (unsigned int)(int)a1;
return result;
}
| |||
10,760 |
double_is_int32
|
bluesky950520[P]quickjs/quickjs.c
|
static inline BOOL double_is_int32(double d)
{
uint64_t u, e;
JSFloat64Union t;
t.d = d;
u = t.u64;
e = ((u >> 52) & 0x7FF) - 1023;
if (e > 30) {
// accept 0, INT32_MIN, reject too large, too small, nan, inf, -0
return !u || (u == 0xc1e0000000000000);
} else {
// shift out sign, exponent and whole part bits
// value is fractional if remaining low bits are non-zero
return !(u << 12 << e);
}
}
|
O2
|
c
|
double_is_int32:
movq %xmm0, %rax
movq %rax, %rcx
shrq $0x34, %rcx
andl $0x7ff, %ecx # imm = 0x7FF
addq $-0x3ff, %rcx # imm = 0xFC01
cmpq $0x1f, %rcx
jb 0x16fd7
testq %rax, %rax
sete %dl
movabsq $-0x3e20000000000000, %rcx # imm = 0xC1E0000000000000
cmpq %rcx, %rax
sete %cl
orb %dl, %cl
jmp 0x16fe7
movq %rax, %rdx
shlq $0xc, %rdx
shlq %cl, %rdx
testq %rdx, %rdx
sete %cl
cvttsd2si %xmm0, %edx
xorl %esi, %esi
testb %cl, %cl
cmovneq %rdx, %rax
pushq $0x7
popq %rdx
cmovneq %rsi, %rdx
retq
|
js_number:
movq rax, xmm0
mov rcx, rax
shr rcx, 34h
and ecx, 7FFh
add rcx, 0FFFFFFFFFFFFFC01h
cmp rcx, 1Fh
jb short loc_16FD7
test rax, rax
setz dl
mov rcx, 0C1E0000000000000h
cmp rax, rcx
setz cl
or cl, dl
jmp short loc_16FE7
loc_16FD7:
mov rdx, rax
shl rdx, 0Ch
shl rdx, cl
test rdx, rdx
setz cl
loc_16FE7:
cvttsd2si edx, xmm0
xor esi, esi
test cl, cl
cmovnz rax, rdx
push 7
pop rdx
cmovnz rdx, rsi
retn
|
long long js_number(double a1)
{
long long result; // rax
bool v2; // cl
result = *(_QWORD *)&a1;
if ( ((*(_QWORD *)&a1 >> 52) & 0x7FFuLL) - 1023 < 0x1F )
v2 = *(_QWORD *)&a1 << 12 << ((unsigned __int8)(*(_QWORD *)&a1 >> 52) + 1) == 0LL;
else
v2 = *(_QWORD *)&a1 == 0LL || *(_QWORD *)&a1 == 0xC1E0000000000000LL;
if ( v2 )
return (unsigned int)(int)a1;
return result;
}
|
js_number:
MOVQ RAX,XMM0
MOV RCX,RAX
SHR RCX,0x34
AND ECX,0x7ff
ADD RCX,-0x3ff
CMP RCX,0x1f
JC 0x00116fd7
TEST RAX,RAX
SETZ DL
MOV RCX,-0x3e20000000000000
CMP RAX,RCX
SETZ CL
OR CL,DL
JMP 0x00116fe7
LAB_00116fd7:
MOV RDX,RAX
SHL RDX,0xc
SHL RDX,CL
TEST RDX,RDX
SETZ CL
LAB_00116fe7:
CVTTSD2SI EDX,XMM0
XOR ESI,ESI
TEST CL,CL
CMOVNZ RAX,RDX
PUSH 0x7
POP RDX
CMOVNZ RDX,RSI
RET
|
int1 [16] js_number(double param_1,int8 param_2,int8 param_3,int8 param_4)
{
bool bVar1;
ulong uVar2;
long lVar3;
int1 auVar5 [16];
int8 uVar4;
uVar2 = (ulong)((uint)((ulong)param_1 >> 0x34) & 0x7ff) - 0x3ff;
if (uVar2 < 0x1f) {
lVar3 = ((long)param_1 << 0xc) << ((byte)uVar2 & 0x3f);
bVar1 = lVar3 == 0;
}
else {
lVar3 = CONCAT71((int7)((ulong)param_4 >> 8),param_1 == 0.0);
bVar1 = param_1 == -2147483648.0 || param_1 == 0.0;
}
if (bVar1) {
param_1 = (double)CONCAT44((int)((ulong)lVar3 >> 0x20),(int)param_1);
}
uVar4 = 7;
if (bVar1) {
uVar4 = 0;
}
auVar5._8_8_ = uVar4;
auVar5._0_8_ = param_1;
return auVar5;
}
|
|
10,761 |
nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type)
|
llama.cpp/common/json.hpp
|
static const char* token_type_name(const token_type t) noexcept
{
switch (t)
{
case token_type::uninitialized:
return "<uninitialized>";
case token_type::literal_true:
return "true literal";
case token_type::literal_false:
return "false literal";
case token_type::literal_null:
return "null literal";
case token_type::value_string:
return "string literal";
case token_type::value_unsigned:
case token_type::value_integer:
case token_type::value_float:
return "number literal";
case token_type::begin_array:
return "'['";
case token_type::begin_object:
return "'{'";
case token_type::end_array:
return "']'";
case token_type::end_object:
return "'}'";
case token_type::name_separator:
return "':'";
case token_type::value_separator:
return "','";
case token_type::parse_error:
return "<parse error>";
case token_type::end_of_input:
return "end of input";
case token_type::literal_or_value:
return "'[', '{', or a literal";
// LCOV_EXCL_START
default: // catch non-enum values
return "unknown token";
// LCOV_EXCL_STOP
}
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<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>>::token_type):
cmpl $0x10, %edi
ja 0x7c77d
movl %edi, %eax
leaq 0xe4510(%rip), %rcx # 0x160c88
movq (%rcx,%rax,8), %rax
retq
leaq 0x9e9aa(%rip), %rax # 0x11b12e
retq
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE:
cmp edi, 10h
ja short loc_7C77D
mov eax, edi
lea rcx, off_160C88; "<uninitialized>"
mov rax, [rcx+rax*8]
retn
loc_7C77D:
lea rax, aUnknownToken; "unknown token"
retn
|
const char * nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::token_type_name(
unsigned int a1)
{
if ( a1 > 0x10 )
return "unknown token";
else
return off_160C88[a1];
}
|
token_type_name:
CMP EDI,0x10
JA 0x0017c77d
MOV EAX,EDI
LEA RCX,[0x260c88]
MOV RAX,qword ptr [RCX + RAX*0x8]
RET
LAB_0017c77d:
LEA RAX,[0x21b12e]
RET
|
/* nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>
>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::token_type) */
char * nlohmann::json_abi_v3_11_3::detail::
lexer_base<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::token_type_name(uint param_1)
{
if (param_1 < 0x11) {
return (&PTR_s_<uninitialized>_00260c88)[param_1];
}
return "unknown token";
}
|
|
10,762 |
ft_trig_pseudo_rotate
|
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-ft-math.c
|
static void ft_trig_pseudo_rotate(PVG_FT_Vector* vec, PVG_FT_Angle theta)
{
PVG_FT_Int i;
PVG_FT_Fixed x, y, xtemp, b;
const PVG_FT_Fixed* arctanptr;
x = vec->x;
y = vec->y;
/* Rotate inside [-PI/4,PI/4] sector */
while (theta < -PVG_FT_ANGLE_PI4) {
xtemp = y;
y = -x;
x = xtemp;
theta += PVG_FT_ANGLE_PI2;
}
while (theta > PVG_FT_ANGLE_PI4) {
xtemp = -y;
y = x;
x = xtemp;
theta -= PVG_FT_ANGLE_PI2;
}
arctanptr = ft_trig_arctan_table;
/* Pseudorotations, with right shifts */
for (i = 1, b = 1; i < PVG_FT_TRIG_MAX_ITERS; b <<= 1, i++) {
PVG_FT_Fixed v1 = ((y + b) >> i);
PVG_FT_Fixed v2 = ((x + b) >> i);
if (theta < 0) {
xtemp = x + v1;
y = y - v2;
x = xtemp;
theta += *arctanptr++;
} else {
xtemp = x - v1;
y = y + v2;
x = xtemp;
theta -= *arctanptr++;
}
}
vec->x = x;
vec->y = y;
}
|
O2
|
c
|
ft_trig_pseudo_rotate:
movq (%rdi), %rcx
movq 0x8(%rdi), %rax
cmpq $-0x2d0000, %rsi # imm = 0xFFD30000
jge 0x1d089
movq %rcx, %rdx
negq %rdx
addq $0x5a0000, %rsi # imm = 0x5A0000
movq %rax, %rcx
movq %rdx, %rax
jmp 0x1d05b
negq %rax
addq $-0x5a0000, %rsi # imm = 0xFFA60000
movq %rax, %rcx
movq %rdx, %rax
movq %rcx, %rdx
cmpq $0x2d0000, %rsi # imm = 0x2D0000
jg 0x1d079
pushq %rbx
leaq 0x4fe3(%rip), %r8 # 0x22080
movabsq $0x1, %rcx
movq %rcx, %r9
cmpq $0x17, %rcx
je 0x1d0e6
leaq (%r9,%rax), %r10
sarq %cl, %r10
leaq (%r9,%rdx), %r11
sarq %cl, %r11
movq (%r8), %rbx
testq %rsi, %rsi
js 0x1d0d1
subq %r10, %rdx
addq %r11, %rax
subq %rbx, %rsi
jmp 0x1d0da
addq %r10, %rdx
subq %r11, %rax
addq %rbx, %rsi
addq $0x8, %r8
addq %r9, %r9
incq %rcx
jmp 0x1d0aa
movq %rdx, (%rdi)
movq %rax, 0x8(%rdi)
popq %rbx
retq
|
ft_trig_pseudo_rotate:
mov rcx, [rdi]
mov rax, [rdi+8]
loc_1D05B:
cmp rsi, 0FFFFFFFFFFD30000h
jge short loc_1D089
mov rdx, rcx
neg rdx
add rsi, 5A0000h
mov rcx, rax
mov rax, rdx
jmp short loc_1D05B
loc_1D079:
neg rax
add rsi, 0FFFFFFFFFFA60000h
mov rcx, rax
mov rax, rdx
loc_1D089:
mov rdx, rcx
cmp rsi, 2D0000h
jg short loc_1D079
push rbx
lea r8, ft_trig_arctan_table
mov rcx, 1
mov r9, rcx
loc_1D0AA:
cmp rcx, 17h
jz short loc_1D0E6
lea r10, [r9+rax]
sar r10, cl
lea r11, [r9+rdx]
sar r11, cl
mov rbx, [r8]
test rsi, rsi
js short loc_1D0D1
sub rdx, r10
add rax, r11
sub rsi, rbx
jmp short loc_1D0DA
loc_1D0D1:
add rdx, r10
sub rax, r11
add rsi, rbx
loc_1D0DA:
add r8, 8
add r9, r9
inc rcx
jmp short loc_1D0AA
loc_1D0E6:
mov [rdi], rdx
mov [rdi+8], rax
pop rbx
retn
|
long long ft_trig_pseudo_rotate(long long *a1, long long a2)
{
long long v2; // rcx
long long result; // rax
long long v4; // rdx
long long v5; // rdx
long long *v6; // r8
long long v7; // rcx
long long v8; // r9
long long v9; // r10
long long v10; // r11
long long v11; // rbx
v2 = *a1;
result = a1[1];
while ( a2 < -2949120 )
{
v4 = -v2;
a2 += 5898240LL;
v2 = result;
result = v4;
}
while ( 1 )
{
v5 = v2;
if ( a2 <= 2949120 )
break;
a2 -= 5898240LL;
v2 = -result;
result = v5;
}
v6 = (long long *)&ft_trig_arctan_table;
v7 = 1LL;
v8 = 1LL;
while ( v7 != 23 )
{
v9 = (v8 + result) >> v7;
v10 = (v8 + v5) >> v7;
v11 = *v6;
if ( a2 < 0 )
{
v5 += v9;
result -= v10;
a2 += v11;
}
else
{
v5 -= v9;
result += v10;
a2 -= v11;
}
++v6;
v8 *= 2LL;
++v7;
}
*a1 = v5;
a1[1] = result;
return result;
}
|
ft_trig_pseudo_rotate:
MOV RCX,qword ptr [RDI]
MOV RAX,qword ptr [RDI + 0x8]
LAB_0011d05b:
CMP RSI,-0x2d0000
JGE 0x0011d089
MOV RDX,RCX
NEG RDX
ADD RSI,0x5a0000
MOV RCX,RAX
MOV RAX,RDX
JMP 0x0011d05b
LAB_0011d079:
NEG RAX
ADD RSI,-0x5a0000
MOV RCX,RAX
MOV RAX,RDX
LAB_0011d089:
MOV RDX,RCX
CMP RSI,0x2d0000
JG 0x0011d079
PUSH RBX
LEA R8,[0x122080]
MOV RCX,0x1
MOV R9,RCX
LAB_0011d0aa:
CMP RCX,0x17
JZ 0x0011d0e6
LEA R10,[R9 + RAX*0x1]
SAR R10,CL
LEA R11,[R9 + RDX*0x1]
SAR R11,CL
MOV RBX,qword ptr [R8]
TEST RSI,RSI
JS 0x0011d0d1
SUB RDX,R10
ADD RAX,R11
SUB RSI,RBX
JMP 0x0011d0da
LAB_0011d0d1:
ADD RDX,R10
SUB RAX,R11
ADD RSI,RBX
LAB_0011d0da:
ADD R8,0x8
ADD R9,R9
INC RCX
JMP 0x0011d0aa
LAB_0011d0e6:
MOV qword ptr [RDI],RDX
MOV qword ptr [RDI + 0x8],RAX
POP RBX
RET
|
void ft_trig_pseudo_rotate(long *param_1,long param_2)
{
long lVar1;
long lVar2;
long lVar3;
long lVar4;
long *plVar5;
long lVar6;
long lVar7;
long lVar8;
lVar6 = param_1[1];
lVar4 = *param_1;
for (; lVar2 = lVar6, param_2 < -0x2d0000; param_2 = param_2 + 0x5a0000) {
lVar6 = -lVar4;
lVar4 = lVar2;
}
for (; 0x2d0000 < param_2; param_2 = param_2 + -0x5a0000) {
lVar6 = -lVar2;
lVar2 = lVar4;
lVar4 = lVar6;
}
plVar5 = &ft_trig_arctan_table;
lVar6 = 1;
for (lVar3 = 1; lVar3 != 0x17; lVar3 = lVar3 + 1) {
lVar7 = lVar6 + lVar2 >> ((byte)lVar3 & 0x3f);
lVar8 = lVar6 + lVar4 >> ((byte)lVar3 & 0x3f);
lVar1 = *plVar5;
if (param_2 < 0) {
lVar8 = -lVar8;
}
else {
lVar7 = -lVar7;
lVar1 = -lVar1;
}
param_2 = param_2 + lVar1;
lVar4 = lVar4 + lVar7;
lVar2 = lVar2 + lVar8;
plVar5 = plVar5 + 1;
lVar6 = lVar6 * 2;
}
*param_1 = lVar4;
param_1[1] = lVar2;
return;
}
|
|
10,763 |
my_strerror
|
eloqsql/strings/my_vsnprintf.c
|
const char* my_strerror(char *buf, size_t len, int nr)
{
char *msg= NULL;
buf[0]= '\0'; /* failsafe */
if (nr <= 0)
{
strmake(buf, (nr == 0 ?
"Internal error/check (Not system error)" :
"Internal error < 0 (Not system error)"),
len-1);
return buf;
}
/*
These (handler-) error messages are shared by perror, as required
by the principle of least surprise.
*/
if ((nr >= HA_ERR_FIRST) && (nr <= HA_ERR_LAST))
{
msg= (char *) handler_error_messages[nr - HA_ERR_FIRST];
strmake(buf, msg, len - 1);
}
else
{
/*
On Windows, do things the Windows way. On a system that supports both
the GNU and the XSI variant, use whichever was configured (GNU); if
this choice is not advertised, use the default (POSIX/XSI). Testing
for __GNUC__ is not sufficient to determine whether this choice exists.
*/
#if defined(_WIN32)
strerror_s(buf, len, nr);
#elif ((defined _POSIX_C_SOURCE && (_POSIX_C_SOURCE >= 200112L)) || \
(defined _XOPEN_SOURCE && (_XOPEN_SOURCE >= 600))) && \
! defined _GNU_SOURCE
strerror_r(nr, buf, len); /* I can build with or without GNU */
#elif defined(__GLIBC__) && defined (_GNU_SOURCE)
char *r= strerror_r(nr, buf, len);
if (r != buf) /* Want to help, GNU? */
strmake(buf, r, len - 1); /* Then don't. */
#else
strerror_r(nr, buf, len);
#endif
}
/*
strerror() return values are implementation-dependent, so let's
be pragmatic.
*/
if (!buf[0])
strmake(buf, "unknown error", len - 1);
return buf;
}
|
O3
|
c
|
my_strerror:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movb $0x0, (%rdi)
testl %edx, %edx
jle 0xdd172
leal -0x78(%rdx), %eax
cmpl $0x4e, %eax
ja 0xdd186
movl %eax, %eax
leaq 0x285c43(%rip), %rcx # 0x362dac
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
jmp 0xdd19b
leaq 0x9ae2(%rip), %rax # 0xe6c5b
leaq 0x9b03(%rip), %rsi # 0xe6c83
cmoveq %rax, %rsi
jmp 0xdd1b3
movl %edx, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x29970
movq %rax, %rsi
cmpq %rbx, %rax
je 0xdd1a7
leaq -0x1(%r14), %rdx
movq %rbx, %rdi
callq 0xdd5d4
cmpb $0x0, (%rbx)
jne 0xdd1c1
leaq 0x9af6(%rip), %rsi # 0xe6ca9
decq %r14
movq %rbx, %rdi
movq %r14, %rdx
callq 0xdd5d4
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
|
my_strerror:
push rbp
mov rbp, rsp
push r14
push rbx
mov r14, rsi
mov rbx, rdi
mov byte ptr [rdi], 0
test edx, edx
jle short loc_DD172
lea eax, [rdx-78h]
cmp eax, 4Eh ; 'N'
ja short loc_DD186
mov eax, eax
lea rcx, handler_error_messages_rel
movsxd rsi, dword ptr [rcx+rax*4]
add rsi, rcx
jmp short loc_DD19B
loc_DD172:
lea rax, aInternalErrorC; "Internal error/check (Not system error)"
lea rsi, aInternalError0; "Internal error < 0 (Not system error)"
cmovz rsi, rax
jmp short loc_DD1B3
loc_DD186:
mov edi, edx
mov rsi, rbx
mov rdx, r14
call _strerror_r
mov rsi, rax
cmp rax, rbx
jz short loc_DD1A7
loc_DD19B:
lea rdx, [r14-1]
mov rdi, rbx
call strmake
loc_DD1A7:
cmp byte ptr [rbx], 0
jnz short loc_DD1C1
lea rsi, aUnknownError; "unknown error"
loc_DD1B3:
dec r14
mov rdi, rbx
mov rdx, r14
call strmake
loc_DD1C1:
mov rax, rbx
pop rbx
pop r14
pop rbp
retn
|
char * my_strerror(char *a1, long long a2, int a3)
{
char *v4; // rsi
const char *v5; // rsi
*a1 = 0;
if ( a3 <= 0 )
{
v5 = "Internal error < 0 (Not system error)";
if ( !a3 )
v5 = "Internal error/check (Not system error)";
goto LABEL_11;
}
if ( (unsigned int)(a3 - 120) > 0x4E )
{
v4 = (char *)strerror_r((unsigned int)a3, a1, a2);
if ( v4 == a1 )
goto LABEL_9;
}
else
{
v4 = (char *)handler_error_messages_rel + handler_error_messages_rel[a3 - 120];
}
strmake(a1, v4, a2 - 1);
LABEL_9:
if ( !*a1 )
{
v5 = "unknown error";
LABEL_11:
strmake(a1, v5, a2 - 1);
}
return a1;
}
|
my_strerror:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV R14,RSI
MOV RBX,RDI
MOV byte ptr [RDI],0x0
TEST EDX,EDX
JLE 0x001dd172
LEA EAX,[RDX + -0x78]
CMP EAX,0x4e
JA 0x001dd186
MOV EAX,EAX
LEA RCX,[0x462dac]
MOVSXD RSI,dword ptr [RCX + RAX*0x4]
ADD RSI,RCX
JMP 0x001dd19b
LAB_001dd172:
LEA RAX,[0x1e6c5b]
LEA RSI,[0x1e6c83]
CMOVZ RSI,RAX
JMP 0x001dd1b3
LAB_001dd186:
MOV EDI,EDX
MOV RSI,RBX
MOV RDX,R14
CALL 0x00129970
MOV RSI,RAX
CMP RAX,RBX
JZ 0x001dd1a7
LAB_001dd19b:
LEA RDX,[R14 + -0x1]
MOV RDI,RBX
CALL 0x001dd5d4
LAB_001dd1a7:
CMP byte ptr [RBX],0x0
JNZ 0x001dd1c1
LEA RSI,[0x1e6ca9]
LAB_001dd1b3:
DEC R14
MOV RDI,RBX
MOV RDX,R14
CALL 0x001dd5d4
LAB_001dd1c1:
MOV RAX,RBX
POP RBX
POP R14
POP RBP
RET
|
char * my_strerror(char *param_1,size_t param_2,int param_3)
{
char *pcVar1;
*param_1 = '\0';
if (param_3 < 1) {
pcVar1 = "Internal error < 0 (Not system error)";
if (param_3 == 0) {
pcVar1 = "Internal error/check (Not system error)";
}
goto LAB_001dd1b3;
}
if (param_3 - 0x78U < 0x4f) {
pcVar1 = handler_error_messages_rel +
*(int *)(handler_error_messages_rel + (ulong)(param_3 - 0x78U) * 4);
LAB_001dd19b:
strmake(param_1,pcVar1,param_2 - 1);
}
else {
pcVar1 = strerror_r(param_3,param_1,param_2);
if (pcVar1 != param_1) goto LAB_001dd19b;
}
if (*param_1 != '\0') {
return param_1;
}
pcVar1 = "unknown error";
LAB_001dd1b3:
strmake(param_1,pcVar1,param_2 - 1);
return param_1;
}
|
|
10,764 |
common_sampler_type_to_str[abi:cxx11](common_sampler_type)
|
monkey531[P]llama/common/sampling.cpp
|
std::string common_sampler_type_to_str(enum common_sampler_type cnstr) {
switch (cnstr) {
case COMMON_SAMPLER_TYPE_DRY: return "dry";
case COMMON_SAMPLER_TYPE_TOP_K: return "top_k";
case COMMON_SAMPLER_TYPE_TYPICAL_P: return "typ_p";
case COMMON_SAMPLER_TYPE_TOP_P: return "top_p";
case COMMON_SAMPLER_TYPE_MIN_P: return "min_p";
case COMMON_SAMPLER_TYPE_TEMPERATURE: return "temperature";
case COMMON_SAMPLER_TYPE_XTC: return "xtc";
case COMMON_SAMPLER_TYPE_INFILL: return "infill";
case COMMON_SAMPLER_TYPE_PENALTIES: return "penalties";
default : return "";
}
}
|
O1
|
cpp
|
common_sampler_type_to_str[abi:cxx11](common_sampler_type):
pushq %rbx
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
decl %esi
cmpl $0x9, %esi
ja 0xd25a0
leaq 0x27fdc(%rip), %rax # 0xfa4d8
movslq (%rax,%rsi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x283a3(%rip), %rsi # 0xfa8af
leaq 0x2839f(%rip), %rdx # 0xfa8b2
jmp 0xd2593
leaq 0x283a3(%rip), %rsi # 0xfa8bf
leaq 0x283a1(%rip), %rdx # 0xfa8c4
jmp 0xd2593
leaq 0x2839f(%rip), %rsi # 0xfa8cb
leaq 0x283a3(%rip), %rdx # 0xfa8d6
jmp 0xd2593
leaq 0x28377(%rip), %rsi # 0xfa8b3
leaq 0x28375(%rip), %rdx # 0xfa8b8
jmp 0xd2593
leaq 0x2838b(%rip), %rsi # 0xfa8d7
leaq 0x28387(%rip), %rdx # 0xfa8da
jmp 0xd2593
leaq 0x1aa5d(%rip), %rsi # 0xecfb9
leaq 0x1aa5c(%rip), %rdx # 0xecfbf
jmp 0xd2593
leaq 0x28359(%rip), %rsi # 0xfa8c5
leaq 0x28357(%rip), %rdx # 0xfa8ca
jmp 0xd2593
leaq 0x2833d(%rip), %rsi # 0xfa8b9
leaq 0x2833b(%rip), %rdx # 0xfa8be
jmp 0xd2593
leaq 0x2834f(%rip), %rsi # 0xfa8db
leaq 0x28351(%rip), %rdx # 0xfa8e4
movq %rbx, %rdi
callq 0x26266
movq %rbx, %rax
popq %rbx
retq
leaq 0x1ea35(%rip), %rdx # 0xf0fdc
movq %rbx, %rdi
movq %rdx, %rsi
jmp 0xd2596
|
_Z26common_sampler_type_to_strB5cxx1119common_sampler_type:
push rbx
mov rbx, rdi
lea rax, [rdi+10h]
mov [rdi], rax
dec esi; switch 10 cases
cmp esi, 9
ja def_D2503; jumptable 00000000000D2503 default case, case 5
lea rax, jpt_D2503
movsxd rcx, ds:(jpt_D2503 - 0FA4D8h)[rax+rsi*4]
add rcx, rax
jmp rcx; switch jump
loc_D2505:
lea rsi, aDry; jumptable 00000000000D2503 case 1
lea rdx, aDry+3; ""
jmp short loc_D2593
loc_D2515:
lea rsi, aTopP_0; jumptable 00000000000D2503 case 3
lea rdx, aTopP_0+5; ""
jmp short loc_D2593
loc_D2525:
lea rsi, aTemperature; jumptable 00000000000D2503 case 7
lea rdx, aTemperature+0Bh; ""
jmp short loc_D2593
loc_D2535:
lea rsi, aTopK_0; jumptable 00000000000D2503 case 2
lea rdx, aTopK_0+5; ""
jmp short loc_D2593
loc_D2545:
lea rsi, aXtc; jumptable 00000000000D2503 case 8
lea rdx, aXtc+3; ""
jmp short loc_D2593
loc_D2555:
lea rsi, aSpmInfill+6; jumptable 00000000000D2503 case 9
lea rdx, aSpmInfill+0Ch; ""
jmp short loc_D2593
loc_D2565:
lea rsi, aMinP_0; jumptable 00000000000D2503 case 4
lea rdx, aMinP_0+5; ""
jmp short loc_D2593
loc_D2575:
lea rsi, aTypP; jumptable 00000000000D2503 case 6
lea rdx, aTypP+5; ""
jmp short loc_D2593
loc_D2585:
lea rsi, aPenalties; jumptable 00000000000D2503 case 10
lea rdx, aPenalties+9; ""
loc_D2593:
mov rdi, rbx
loc_D2596:
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 rax, rbx
pop rbx
retn
def_D2503:
lea rdx, aErrorWhileHand_0+34h; jumptable 00000000000D2503 default case, case 5
mov rdi, rbx
mov rsi, rdx
jmp short loc_D2596
|
_QWORD * common_sampler_type_to_str[abi:cxx11](_QWORD *a1, int a2)
{
char *v2; // rsi
char *v3; // rdx
*a1 = a1 + 2;
switch ( a2 )
{
case 1:
v2 = "dry";
v3 = "";
break;
case 2:
v2 = "top_k";
v3 = "";
break;
case 3:
v2 = "top_p";
v3 = "";
break;
case 4:
v2 = "min_p";
v3 = "";
break;
case 6:
v2 = "typ_p";
v3 = "";
break;
case 7:
v2 = "temperature";
v3 = "";
break;
case 8:
v2 = "xtc";
v3 = "";
break;
case 9:
v2 = "infill";
v3 = "";
break;
case 10:
v2 = "penalties";
v3 = "";
break;
default:
v3 = "";
v2 = "";
break;
}
std::string::_M_construct<char const*>(a1, v2, (long long)v3);
return a1;
}
|
common_sampler_type_to_str[abi:cxx11]:
PUSH RBX
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
MOV qword ptr [RDI],RAX
DEC ESI
CMP ESI,0x9
JA 0x001d25a0
LEA RAX,[0x1fa4d8]
MOVSXD RCX,dword ptr [RAX + RSI*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_1:
LEA RSI,[0x1fa8af]
LEA RDX,[0x1fa8b2]
JMP 0x001d2593
caseD_3:
LEA RSI,[0x1fa8bf]
LEA RDX,[0x1fa8c4]
JMP 0x001d2593
caseD_7:
LEA RSI,[0x1fa8cb]
LEA RDX,[0x1fa8d6]
JMP 0x001d2593
caseD_2:
LEA RSI,[0x1fa8b3]
LEA RDX,[0x1fa8b8]
JMP 0x001d2593
caseD_8:
LEA RSI,[0x1fa8d7]
LEA RDX,[0x1fa8da]
JMP 0x001d2593
caseD_9:
LEA RSI,[0x1ecfb9]
LEA RDX,[0x1ecfbf]
JMP 0x001d2593
caseD_4:
LEA RSI,[0x1fa8c5]
LEA RDX,[0x1fa8ca]
JMP 0x001d2593
caseD_6:
LEA RSI,[0x1fa8b9]
LEA RDX,[0x1fa8be]
JMP 0x001d2593
caseD_a:
LEA RSI,[0x1fa8db]
LEA RDX,[0x1fa8e4]
LAB_001d2593:
MOV RDI,RBX
LAB_001d2596:
CALL 0x00126266
MOV RAX,RBX
POP RBX
RET
caseD_5:
LEA RDX,[0x1f0fdc]
MOV RDI,RBX
MOV RSI,RDX
JMP 0x001d2596
|
/* common_sampler_type_to_str[abi:cxx11](common_sampler_type) */
long * common_sampler_type_to_str_abi_cxx11_(long *param_1,int4 param_2)
{
char *pcVar1;
char *pcVar2;
*param_1 = (long)(param_1 + 2);
switch(param_2) {
case 1:
pcVar2 = "dry";
pcVar1 = "";
break;
case 2:
pcVar2 = "top_k";
pcVar1 = "";
break;
case 3:
pcVar2 = "top_p";
pcVar1 = "";
break;
case 4:
pcVar2 = "min_p";
pcVar1 = "";
break;
default:
pcVar1 = "";
pcVar2 = pcVar1;
break;
case 6:
pcVar2 = "typ_p";
pcVar1 = "";
break;
case 7:
pcVar2 = "temperature";
pcVar1 = "";
break;
case 8:
pcVar2 = "xtc";
pcVar1 = "";
break;
case 9:
pcVar2 = "infill";
pcVar1 = "";
break;
case 10:
pcVar2 = "penalties";
pcVar1 = "";
}
std::__cxx11::string::_M_construct<char_const*>(param_1,pcVar2,pcVar1);
return param_1;
}
|
|
10,765 |
common_sampler_type_to_str[abi:cxx11](common_sampler_type)
|
monkey531[P]llama/common/sampling.cpp
|
std::string common_sampler_type_to_str(enum common_sampler_type cnstr) {
switch (cnstr) {
case COMMON_SAMPLER_TYPE_DRY: return "dry";
case COMMON_SAMPLER_TYPE_TOP_K: return "top_k";
case COMMON_SAMPLER_TYPE_TYPICAL_P: return "typ_p";
case COMMON_SAMPLER_TYPE_TOP_P: return "top_p";
case COMMON_SAMPLER_TYPE_MIN_P: return "min_p";
case COMMON_SAMPLER_TYPE_TEMPERATURE: return "temperature";
case COMMON_SAMPLER_TYPE_XTC: return "xtc";
case COMMON_SAMPLER_TYPE_INFILL: return "infill";
case COMMON_SAMPLER_TYPE_PENALTIES: return "penalties";
default : return "";
}
}
|
O2
|
cpp
|
common_sampler_type_to_str[abi:cxx11](common_sampler_type):
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
decl %esi
cmpl $0x9, %esi
ja 0x9b975
leaq 0x20bc6(%rip), %rax # 0xbc4b4
movslq (%rax,%rsi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x20f8d(%rip), %rsi # 0xbc88b
leaq 0xf(%rsp), %rdx
jmp 0x9b981
leaq 0x20f8f(%rip), %rsi # 0xbc89b
leaq 0xc(%rsp), %rdx
jmp 0x9b981
leaq 0x20f8d(%rip), %rsi # 0xbc8a7
leaq 0xa(%rsp), %rdx
jmp 0x9b981
leaq 0x20f67(%rip), %rsi # 0xbc88f
leaq 0xe(%rsp), %rdx
jmp 0x9b981
leaq 0x20f7d(%rip), %rsi # 0xbc8b3
leaq 0x9(%rsp), %rdx
jmp 0x9b981
leaq 0x13665(%rip), %rsi # 0xaefa9
leaq 0x8(%rsp), %rdx
jmp 0x9b981
leaq 0x20f4f(%rip), %rsi # 0xbc8a1
leaq 0xb(%rsp), %rdx
jmp 0x9b981
leaq 0x20f35(%rip), %rsi # 0xbc895
leaq 0xd(%rsp), %rdx
jmp 0x9b981
leaq 0x20f49(%rip), %rsi # 0xbc8b7
leaq 0x7(%rsp), %rdx
jmp 0x9b981
leaq 0x17653(%rip), %rsi # 0xb2fcf
leaq 0x6(%rsp), %rdx
movq %rbx, %rdi
callq 0x291dc
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
|
_Z26common_sampler_type_to_strB5cxx1119common_sampler_type:
push rbx
sub rsp, 10h
mov rbx, rdi
dec esi; switch 10 cases
cmp esi, 9
ja def_9B8F5; jumptable 000000000009B8F5 default case, case 5
lea rax, jpt_9B8F5
movsxd rcx, ds:(jpt_9B8F5 - 0BC4B4h)[rax+rsi*4]
add rcx, rax
jmp rcx; switch jump
loc_9B8F7:
lea rsi, aDry; jumptable 000000000009B8F5 case 1
lea rdx, [rsp+18h+var_9]
jmp short loc_9B981
loc_9B905:
lea rsi, aTopP_0; jumptable 000000000009B8F5 case 3
lea rdx, [rsp+18h+var_C]
jmp short loc_9B981
loc_9B913:
lea rsi, aTemperature; jumptable 000000000009B8F5 case 7
lea rdx, [rsp+18h+var_E]
jmp short loc_9B981
loc_9B921:
lea rsi, aTopK_0; jumptable 000000000009B8F5 case 2
lea rdx, [rsp+18h+var_A]
jmp short loc_9B981
loc_9B92F:
lea rsi, aXtc; jumptable 000000000009B8F5 case 8
lea rdx, [rsp+18h+var_F]
jmp short loc_9B981
loc_9B93D:
lea rsi, aSpmInfill+6; jumptable 000000000009B8F5 case 9
lea rdx, [rsp+18h+var_10]
jmp short loc_9B981
loc_9B94B:
lea rsi, aMinP_0; jumptable 000000000009B8F5 case 4
lea rdx, [rsp+18h+var_D]
jmp short loc_9B981
loc_9B959:
lea rsi, aTypP; jumptable 000000000009B8F5 case 6
lea rdx, [rsp+18h+var_B]
jmp short loc_9B981
loc_9B967:
lea rsi, aPenalties; jumptable 000000000009B8F5 case 10
lea rdx, [rsp+18h+var_11]
jmp short loc_9B981
def_9B8F5:
lea rsi, aErrorWhileHand_0+34h; jumptable 000000000009B8F5 default case, case 5
lea rdx, [rsp+18h+var_12]
loc_9B981:
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rax, rbx
add rsp, 10h
pop rbx
retn
|
_QWORD * common_sampler_type_to_str[abi:cxx11](_QWORD *a1, int a2)
{
char *v2; // rsi
switch ( a2 )
{
case 1:
v2 = "dry";
break;
case 2:
v2 = "top_k";
break;
case 3:
v2 = "top_p";
break;
case 4:
v2 = "min_p";
break;
case 6:
v2 = "typ_p";
break;
case 7:
v2 = "temperature";
break;
case 8:
v2 = "xtc";
break;
case 9:
v2 = "infill";
break;
case 10:
v2 = "penalties";
break;
default:
v2 = "";
break;
}
std::string::basic_string<std::allocator<char>>(a1, (long long)v2);
return a1;
}
|
common_sampler_type_to_str[abi:cxx11]:
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
DEC ESI
CMP ESI,0x9
JA 0x0019b975
LEA RAX,[0x1bc4b4]
MOVSXD RCX,dword ptr [RAX + RSI*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_1:
LEA RSI,[0x1bc88b]
LEA RDX,[RSP + 0xf]
JMP 0x0019b981
caseD_3:
LEA RSI,[0x1bc89b]
LEA RDX,[RSP + 0xc]
JMP 0x0019b981
caseD_7:
LEA RSI,[0x1bc8a7]
LEA RDX,[RSP + 0xa]
JMP 0x0019b981
caseD_2:
LEA RSI,[0x1bc88f]
LEA RDX,[RSP + 0xe]
JMP 0x0019b981
caseD_8:
LEA RSI,[0x1bc8b3]
LEA RDX,[RSP + 0x9]
JMP 0x0019b981
caseD_9:
LEA RSI,[0x1aefa9]
LEA RDX,[RSP + 0x8]
JMP 0x0019b981
caseD_4:
LEA RSI,[0x1bc8a1]
LEA RDX,[RSP + 0xb]
JMP 0x0019b981
caseD_6:
LEA RSI,[0x1bc895]
LEA RDX,[RSP + 0xd]
JMP 0x0019b981
caseD_a:
LEA RSI,[0x1bc8b7]
LEA RDX,[RSP + 0x7]
JMP 0x0019b981
caseD_5:
LEA RSI,[0x1b2fcf]
LEA RDX,[RSP + 0x6]
LAB_0019b981:
MOV RDI,RBX
CALL 0x001291dc
MOV RAX,RBX
ADD RSP,0x10
POP RBX
RET
|
/* common_sampler_type_to_str[abi:cxx11](common_sampler_type) */
string * common_sampler_type_to_str_abi_cxx11_(string *param_1,int4 param_2)
{
allocator *paVar1;
char *pcVar2;
allocator local_12;
allocator local_11;
allocator local_10;
allocator local_f;
allocator local_e;
allocator local_d;
allocator local_c;
allocator local_b;
allocator local_a;
allocator local_9;
switch(param_2) {
case 1:
pcVar2 = "dry";
paVar1 = &local_9;
break;
case 2:
pcVar2 = "top_k";
paVar1 = &local_a;
break;
case 3:
pcVar2 = "top_p";
paVar1 = &local_c;
break;
case 4:
pcVar2 = "min_p";
paVar1 = &local_d;
break;
default:
pcVar2 = "";
paVar1 = &local_12;
break;
case 6:
pcVar2 = "typ_p";
paVar1 = &local_b;
break;
case 7:
pcVar2 = "temperature";
paVar1 = &local_e;
break;
case 8:
pcVar2 = "xtc";
paVar1 = &local_f;
break;
case 9:
pcVar2 = "infill";
paVar1 = &local_10;
break;
case 10:
pcVar2 = "penalties";
paVar1 = &local_11;
}
std::__cxx11::string::string<std::allocator<char>>(param_1,pcVar2,paVar1);
return param_1;
}
|
|
10,766 |
ImPlot3D::BeginItem(char const*, int, int)
|
zkingston[P]unknot/build_O1/_deps/implot3d-src/implot3d_items.cpp
|
bool BeginItem(const char* label_id, ImPlot3DItemFlags flags, ImPlot3DCol recolor_from) {
ImPlot3DContext& gp = *GImPlot3D;
IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "PlotX() needs to be called between BeginPlot() and EndPlot()!");
// Lock setup
SetupLock();
ImPlot3DStyle& style = gp.Style;
ImPlot3DNextItemData& n = gp.NextItemData;
// Register item
bool just_created;
ImPlot3DItem* item = RegisterOrGetItem(label_id, flags, &just_created);
// Set/override item color
if (recolor_from != -1) {
if (!IsColorAuto(n.Colors[recolor_from]))
item->Color = ImGui::ColorConvertFloat4ToU32(n.Colors[recolor_from]);
else if (!IsColorAuto(gp.Style.Colors[recolor_from]))
item->Color = ImGui::ColorConvertFloat4ToU32(gp.Style.Colors[recolor_from]);
else if (just_created)
item->Color = NextColormapColorU32();
} else if (just_created) {
item->Color = NextColormapColorU32();
}
// Set next item color
ImVec4 item_color = ImGui::ColorConvertU32ToFloat4(item->Color);
n.IsAutoLine = IsColorAuto(n.Colors[ImPlot3DCol_Line]) && IsColorAuto(ImPlot3DCol_Line);
n.IsAutoFill = IsColorAuto(n.Colors[ImPlot3DCol_Fill]) && IsColorAuto(ImPlot3DCol_Fill);
n.Colors[ImPlot3DCol_Line] = IsColorAuto(n.Colors[ImPlot3DCol_Line]) ? (IsColorAuto(ImPlot3DCol_Line) ? item_color : gp.Style.Colors[ImPlot3DCol_Line]) : n.Colors[ImPlot3DCol_Line];
n.Colors[ImPlot3DCol_Fill] = IsColorAuto(n.Colors[ImPlot3DCol_Fill]) ? (IsColorAuto(ImPlot3DCol_Fill) ? item_color : gp.Style.Colors[ImPlot3DCol_Fill]) : n.Colors[ImPlot3DCol_Fill];
n.Colors[ImPlot3DCol_MarkerOutline] = IsColorAuto(n.Colors[ImPlot3DCol_MarkerOutline]) ? (IsColorAuto(ImPlot3DCol_MarkerOutline) ? n.Colors[ImPlot3DCol_Line] : gp.Style.Colors[ImPlot3DCol_MarkerOutline]) : n.Colors[ImPlot3DCol_MarkerOutline];
n.Colors[ImPlot3DCol_MarkerFill] = IsColorAuto(n.Colors[ImPlot3DCol_MarkerFill]) ? (IsColorAuto(ImPlot3DCol_MarkerFill) ? n.Colors[ImPlot3DCol_Line] : gp.Style.Colors[ImPlot3DCol_MarkerFill]) : n.Colors[ImPlot3DCol_MarkerFill];
// Set size & weight
n.LineWeight = n.LineWeight < 0.0f ? style.LineWeight : n.LineWeight;
n.Marker = n.Marker < 0 ? style.Marker : n.Marker;
n.MarkerSize = n.MarkerSize < 0.0f ? style.MarkerSize : n.MarkerSize;
n.MarkerWeight = n.MarkerWeight < 0.0f ? style.MarkerWeight : n.MarkerWeight;
n.FillAlpha = n.FillAlpha < 0 ? gp.Style.FillAlpha : n.FillAlpha;
// Apply alpha modifiers
n.Colors[ImPlot3DCol_Fill].w *= n.FillAlpha;
n.Colors[ImPlot3DCol_MarkerFill].w *= n.FillAlpha;
// Set render flags
n.RenderLine = n.Colors[ImPlot3DCol_Line].w > 0 && n.LineWeight > 0;
n.RenderFill = n.Colors[ImPlot3DCol_Fill].w > 0;
n.RenderMarkerFill = n.Colors[ImPlot3DCol_MarkerFill].w > 0;
n.RenderMarkerLine = n.Colors[ImPlot3DCol_MarkerOutline].w > 0 && n.MarkerWeight > 0;
// Don't render if item is hidden
if (!item->Show) {
EndItem();
return false;
} else {
// Legend hover highlight
if (item->LegendHovered) {
if (!ImHasFlag(gp.CurrentItems->Legend.Flags, ImPlot3DLegendFlags_NoHighlightItem)) {
n.LineWeight *= ITEM_HIGHLIGHT_LINE_SCALE;
n.MarkerSize *= ITEM_HIGHLIGHT_MARK_SCALE;
n.MarkerWeight *= ITEM_HIGHLIGHT_LINE_SCALE;
}
}
}
return true;
}
|
O1
|
cpp
|
ImPlot3D::BeginItem(char const*, int, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebp
movl %esi, %ebx
movq %rdi, %r15
leaq 0x2e0424(%rip), %r13 # 0x336c98
movq (%r13), %r12
cmpq $0x0, 0x28(%r12)
jne 0x5688c
leaq 0x242bf1(%rip), %rdi # 0x299478
callq 0x2161f4
callq 0x50ce3
leaq 0x38(%r12), %r14
leaq 0x7(%rsp), %rdx
movq %r15, %rdi
movl %ebx, %esi
callq 0x56b93
movq %rax, %rbx
cmpl $-0x1, %ebp
je 0x568db
movslq %ebp, %rbp
shlq $0x4, %rbp
leaq (%r14,%rbp), %r15
movq %r15, %rdi
callq 0x54576
testb %al, %al
je 0x568e9
leaq (%r12,%rbp), %r15
addq $0xe0, %r15
movq %r15, %rdi
callq 0x54576
testb %al, %al
je 0x568e9
cmpb $0x1, 0x7(%rsp)
jne 0x568f4
callq 0x5434a
jmp 0x568f1
movq %r15, %rdi
callq 0x213cfe
movl %eax, 0x4(%rbx)
movl 0x4(%rbx), %edi
callq 0x213cb2
movlhps %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0]
movups %xmm0, 0x8(%rsp)
movq %r14, %rdi
callq 0x54576
testb %al, %al
je 0x56919
xorl %edi, %edi
callq 0x53ed9
jmp 0x5691b
xorl %eax, %eax
movb %al, 0x91(%r12)
leaq 0x48(%r12), %r15
movq %r15, %rdi
callq 0x54576
testb %al, %al
je 0x56940
movl $0x1, %edi
callq 0x53ed9
jmp 0x56942
xorl %eax, %eax
movb %al, 0x90(%r12)
movq %r14, %rdi
callq 0x54576
movq %r14, %rcx
testb %al, %al
je 0x56973
xorl %edi, %edi
callq 0x53ed9
leaq 0xe0(%r12), %rdx
testb %al, %al
leaq 0x8(%rsp), %rcx
cmoveq %rdx, %rcx
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq %r15, %rdi
callq 0x54576
movq %r15, %rcx
testb %al, %al
je 0x569a6
movl $0x1, %edi
callq 0x53ed9
leaq 0xf0(%r12), %rdx
testb %al, %al
leaq 0x8(%rsp), %rcx
cmoveq %rdx, %rcx
movups (%rcx), %xmm0
movups %xmm0, (%r15)
leaq 0x58(%r12), %r15
movq %r15, %rdi
callq 0x54576
movq %r15, %rcx
testb %al, %al
je 0x569d9
movl $0x2, %edi
callq 0x53ed9
leaq 0x100(%r12), %rcx
testb %al, %al
cmovneq %r14, %rcx
movups (%rcx), %xmm0
movups %xmm0, (%r15)
leaq 0x68(%r12), %r15
movq %r15, %rdi
callq 0x54576
movq %r15, %rcx
testb %al, %al
je 0x56a0c
movl $0x3, %edi
callq 0x53ed9
leaq 0x110(%r12), %rcx
testb %al, %al
cmovneq %r14, %rcx
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movss 0x78(%r12), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm0, %xmm1
jbe 0x56a2c
movss 0x94(%r12), %xmm0
movss %xmm0, 0x78(%r12)
movl 0x7c(%r12), %eax
testl %eax, %eax
jns 0x56a44
movl 0x98(%r12), %eax
movl %eax, 0x7c(%r12)
movss 0x80(%r12), %xmm1
xorps %xmm3, %xmm3
ucomiss %xmm1, %xmm3
jbe 0x56a65
movss 0x9c(%r12), %xmm1
movss %xmm1, 0x80(%r12)
movss 0x84(%r12), %xmm2
ucomiss %xmm2, %xmm3
jbe 0x56a88
movss 0xa0(%r12), %xmm2
movss %xmm2, 0x84(%r12)
movss 0x88(%r12), %xmm4
ucomiss %xmm4, %xmm3
jbe 0x56aab
movss 0xa4(%r12), %xmm4
movss %xmm4, 0x88(%r12)
movss 0x54(%r12), %xmm5
mulss %xmm4, %xmm5
movss %xmm5, 0x54(%r12)
mulss 0x74(%r12), %xmm4
movss %xmm4, 0x74(%r12)
xorps %xmm6, %xmm6
cmpltps %xmm0, %xmm6
movss 0x44(%r12), %xmm7
movss 0x64(%r12), %xmm8
xorps %xmm9, %xmm9
cmpltps %xmm7, %xmm9
andps %xmm6, %xmm9
movd %xmm9, %eax
andb $0x1, %al
movb %al, 0x8c(%r12)
ucomiss %xmm3, %xmm5
seta 0x8d(%r12)
ucomiss %xmm3, %xmm4
seta 0x8f(%r12)
xorps %xmm4, %xmm4
cmpltps %xmm2, %xmm4
cmpltps %xmm8, %xmm3
andps %xmm4, %xmm3
movd %xmm3, %eax
andb $0x1, %al
movb %al, 0x8e(%r12)
movb 0xc(%rbx), %bpl
testb %bpl, %bpl
je 0x56b75
cmpb $0x1, 0xd(%rbx)
jne 0x56b82
movq 0x30(%r12), %rax
testb $0x2, 0x28(%rax)
jne 0x56b82
addss %xmm0, %xmm0
movss %xmm0, 0x78(%r12)
unpcklps %xmm2, %xmm1 # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
mulps 0x23eca6(%rip), %xmm1 # 0x295810
movlps %xmm1, 0x80(%r12)
jmp 0x56b82
movq (%r13), %rdi
addq $0x38, %rdi
callq 0x55a36
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ZN8ImPlot3D9BeginItemEPKcii:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov ebp, edx
mov ebx, esi
mov r15, rdi
lea r13, _ZN8ImPlot3D9GImPlot3DE; ImPlot3D::GImPlot3D
mov r12, [r13+0]
cmp qword ptr [r12+28h], 0
jnz short loc_5688C
lea rdi, aPlotxNeedsToBe; "PlotX() needs to be called between Begi"...
call _ZN5ImGui8ErrorLogEPKc; ImGui::ErrorLog(char const*)
loc_5688C:
call _ZN8ImPlot3D9SetupLockEv; ImPlot3D::SetupLock(void)
lea r14, [r12+38h]
lea rdx, [rsp+48h+var_41]; int
mov rdi, r15; this
mov esi, ebx; int
call _ZN8ImPlot3D17RegisterOrGetItemEPKciPb; ImPlot3D::RegisterOrGetItem(char const*,int,bool *)
mov rbx, rax
cmp ebp, 0FFFFFFFFh
jz short loc_568DB
movsxd rbp, ebp
shl rbp, 4
lea r15, [r14+rbp]
mov rdi, r15
call _ZN8ImPlot3D11IsColorAutoERK6ImVec4; ImPlot3D::IsColorAuto(ImVec4 const&)
test al, al
jz short loc_568E9
lea r15, [r12+rbp]
add r15, 0E0h
mov rdi, r15; this
call _ZN8ImPlot3D11IsColorAutoERK6ImVec4; ImPlot3D::IsColorAuto(ImVec4 const&)
test al, al
jz short loc_568E9
loc_568DB:
cmp byte ptr [rsp+48h+var_41], 1
jnz short loc_568F4
call _ZN8ImPlot3D20NextColormapColorU32Ev; ImPlot3D::NextColormapColorU32(void)
jmp short loc_568F1
loc_568E9:
mov rdi, r15
call _ZN5ImGui23ColorConvertFloat4ToU32ERK6ImVec4; ImGui::ColorConvertFloat4ToU32(ImVec4 const&)
loc_568F1:
mov [rbx+4], eax
loc_568F4:
mov edi, [rbx+4]; this
call _ZN5ImGui23ColorConvertU32ToFloat4Ej; ImGui::ColorConvertU32ToFloat4(uint)
movlhps xmm0, xmm1
movups xmmword ptr [rsp+48h+var_41+1], xmm0
mov rdi, r14
call _ZN8ImPlot3D11IsColorAutoERK6ImVec4; ImPlot3D::IsColorAuto(ImVec4 const&)
test al, al
jz short loc_56919
xor edi, edi; this
call _ZN8ImPlot3D11IsColorAutoEi; ImPlot3D::IsColorAuto(int)
jmp short loc_5691B
loc_56919:
xor eax, eax
loc_5691B:
mov [r12+91h], al
lea r15, [r12+48h]
mov rdi, r15
call _ZN8ImPlot3D11IsColorAutoERK6ImVec4; ImPlot3D::IsColorAuto(ImVec4 const&)
test al, al
jz short loc_56940
mov edi, (offset dword_0+1); this
call _ZN8ImPlot3D11IsColorAutoEi; ImPlot3D::IsColorAuto(int)
jmp short loc_56942
loc_56940:
xor eax, eax
loc_56942:
mov [r12+90h], al
mov rdi, r14
call _ZN8ImPlot3D11IsColorAutoERK6ImVec4; ImPlot3D::IsColorAuto(ImVec4 const&)
mov rcx, r14
test al, al
jz short loc_56973
xor edi, edi; this
call _ZN8ImPlot3D11IsColorAutoEi; ImPlot3D::IsColorAuto(int)
lea rdx, [r12+0E0h]
test al, al
lea rcx, [rsp+48h+var_41+1]
cmovz rcx, rdx
loc_56973:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r14], xmm0
mov rdi, r15
call _ZN8ImPlot3D11IsColorAutoERK6ImVec4; ImPlot3D::IsColorAuto(ImVec4 const&)
mov rcx, r15
test al, al
jz short loc_569A6
mov edi, (offset dword_0+1); this
call _ZN8ImPlot3D11IsColorAutoEi; ImPlot3D::IsColorAuto(int)
lea rdx, [r12+0F0h]
test al, al
lea rcx, [rsp+48h+var_41+1]
cmovz rcx, rdx
loc_569A6:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r15], xmm0
lea r15, [r12+58h]
mov rdi, r15
call _ZN8ImPlot3D11IsColorAutoERK6ImVec4; ImPlot3D::IsColorAuto(ImVec4 const&)
mov rcx, r15
test al, al
jz short loc_569D9
mov edi, (offset dword_0+2); this
call _ZN8ImPlot3D11IsColorAutoEi; ImPlot3D::IsColorAuto(int)
lea rcx, [r12+100h]
test al, al
cmovnz rcx, r14
loc_569D9:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r15], xmm0
lea r15, [r12+68h]
mov rdi, r15
call _ZN8ImPlot3D11IsColorAutoERK6ImVec4; ImPlot3D::IsColorAuto(ImVec4 const&)
mov rcx, r15
test al, al
jz short loc_56A0C
mov edi, (offset dword_0+3); this
call _ZN8ImPlot3D11IsColorAutoEi; ImPlot3D::IsColorAuto(int)
lea rcx, [r12+110h]
test al, al
cmovnz rcx, r14
loc_56A0C:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r15], xmm0
movss xmm0, dword ptr [r12+78h]
xorps xmm1, xmm1
ucomiss xmm1, xmm0
jbe short loc_56A2C
movss xmm0, dword ptr [r12+94h]
loc_56A2C:
movss dword ptr [r12+78h], xmm0
mov eax, [r12+7Ch]
test eax, eax
jns short loc_56A44
mov eax, [r12+98h]
loc_56A44:
mov [r12+7Ch], eax
movss xmm1, dword ptr [r12+80h]
xorps xmm3, xmm3
ucomiss xmm3, xmm1
jbe short loc_56A65
movss xmm1, dword ptr [r12+9Ch]
loc_56A65:
movss dword ptr [r12+80h], xmm1
movss xmm2, dword ptr [r12+84h]
ucomiss xmm3, xmm2
jbe short loc_56A88
movss xmm2, dword ptr [r12+0A0h]
loc_56A88:
movss dword ptr [r12+84h], xmm2
movss xmm4, dword ptr [r12+88h]
ucomiss xmm3, xmm4
jbe short loc_56AAB
movss xmm4, dword ptr [r12+0A4h]
loc_56AAB:
movss dword ptr [r12+88h], xmm4
movss xmm5, dword ptr [r12+54h]
mulss xmm5, xmm4
movss dword ptr [r12+54h], xmm5
mulss xmm4, dword ptr [r12+74h]
movss dword ptr [r12+74h], xmm4
xorps xmm6, xmm6
cmpltps xmm6, xmm0
movss xmm7, dword ptr [r12+44h]
movss xmm8, dword ptr [r12+64h]
xorps xmm9, xmm9
cmpltps xmm9, xmm7
andps xmm9, xmm6
movd eax, xmm9
and al, 1
mov [r12+8Ch], al
ucomiss xmm5, xmm3
setnbe byte ptr [r12+8Dh]
ucomiss xmm4, xmm3
setnbe byte ptr [r12+8Fh]
xorps xmm4, xmm4
cmpltps xmm4, xmm2
cmpltps xmm3, xmm8
andps xmm3, xmm4
movd eax, xmm3
and al, 1
mov [r12+8Eh], al
mov bpl, [rbx+0Ch]
test bpl, bpl
jz short loc_56B75
cmp byte ptr [rbx+0Dh], 1
jnz short loc_56B82
mov rax, [r12+30h]
test byte ptr [rax+28h], 2
jnz short loc_56B82
addss xmm0, xmm0
movss dword ptr [r12+78h], xmm0
unpcklps xmm1, xmm2
mulps xmm1, cs:xmmword_295810
movlps qword ptr [r12+80h], xmm1
jmp short loc_56B82
loc_56B75:
mov rdi, [r13+0]
add rdi, 38h ; '8'; this
call _ZN20ImPlot3DNextItemData5ResetEv; ImPlot3DNextItemData::Reset(void)
loc_56B82:
mov eax, ebp
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long ImPlot3D::BeginItem(ImPlot3D *this, const char *a2, int a3, __m128 a4, __m128 a5)
{
long long v5; // rbp
ImPlot3D *v6; // r15
ImGui *v7; // r12
_OWORD *v8; // r14
ImPlot3D *v9; // rdi
bool *v10; // rcx
long long Item; // rbx
long long v12; // r15
int ColormapColorU32; // eax
char IsColorAuto; // al
char v15; // al
char v16; // al
_OWORD *v17; // rcx
char v18; // al
char v19; // al
_OWORD *v20; // rcx
char v21; // al
char v22; // al
_OWORD *v23; // rcx
char v24; // al
char v25; // al
_OWORD *v26; // rcx
char v27; // al
__m128 v28; // xmm0
int v29; // eax
__m128 v30; // xmm1
__m128 v31; // xmm2
float v32; // xmm4_4
float v33; // xmm5_4
float v34; // xmm4_4
__m128 v35; // xmm8
char v37; // [rsp+7h] [rbp-41h] BYREF
__m128 v38[4]; // [rsp+8h] [rbp-40h] BYREF
LODWORD(v5) = a3;
v6 = this;
v7 = ImPlot3D::GImPlot3D;
if ( !*((_QWORD *)ImPlot3D::GImPlot3D + 5) )
{
this = (ImPlot3D *)"PlotX() needs to be called between BeginPlot() and EndPlot()!";
ImGui::ErrorLog((ImGui *)"PlotX() needs to be called between BeginPlot() and EndPlot()!", a2);
}
ImPlot3D::SetupLock(this, a2, *(double *)a4.m128_u64);
v8 = (_OWORD *)((char *)v7 + 56);
v9 = v6;
Item = ImPlot3D::RegisterOrGetItem(v6, (const char *)(unsigned int)a2, (int)&v37, v10);
if ( (_DWORD)v5 == -1
|| (v5 = 16LL * (int)v5, v12 = (long long)v8 + v5, (unsigned __int8)ImPlot3D::IsColorAuto((long long)v8 + v5))
&& (v12 = (long long)v7 + v5 + 224, v9 = (ImPlot3D *)v12, (unsigned __int8)ImPlot3D::IsColorAuto(v12)) )
{
if ( v37 != 1 )
goto LABEL_10;
ColormapColorU32 = ImPlot3D::NextColormapColorU32(v9, (const char *)(unsigned int)a2);
}
else
{
ColormapColorU32 = ImGui::ColorConvertFloat4ToU32(v12);
}
*(_DWORD *)(Item + 4) = ColormapColorU32;
LABEL_10:
ImGui::ColorConvertU32ToFloat4((ImGui *)*(unsigned int *)(Item + 4), (unsigned int)a2);
v38[0] = _mm_movelh_ps(a4, a5);
if ( (unsigned __int8)ImPlot3D::IsColorAuto((long long)v7 + 56) )
IsColorAuto = ImPlot3D::IsColorAuto(0LL);
else
IsColorAuto = 0;
*((_BYTE *)v7 + 145) = IsColorAuto;
if ( (unsigned __int8)ImPlot3D::IsColorAuto((long long)v7 + 72) )
v15 = ImPlot3D::IsColorAuto((ImPlot3D *)((char *)&dword_0 + 1));
else
v15 = 0;
*((_BYTE *)v7 + 144) = v15;
v16 = ImPlot3D::IsColorAuto((long long)v7 + 56);
v17 = (_OWORD *)((char *)v7 + 56);
if ( v16 )
{
v18 = ImPlot3D::IsColorAuto(0LL);
v17 = (_OWORD *)v38;
if ( !v18 )
v17 = (_OWORD *)((char *)v7 + 224);
}
*v8 = *v17;
v19 = ImPlot3D::IsColorAuto((long long)v7 + 72);
v20 = (_OWORD *)((char *)v7 + 72);
if ( v19 )
{
v21 = ImPlot3D::IsColorAuto((ImPlot3D *)((char *)&dword_0 + 1));
v20 = (_OWORD *)v38;
if ( !v21 )
v20 = (_OWORD *)((char *)v7 + 240);
}
*(_OWORD *)((char *)v7 + 72) = *v20;
v22 = ImPlot3D::IsColorAuto((long long)v7 + 88);
v23 = (_OWORD *)((char *)v7 + 88);
if ( v22 )
{
v24 = ImPlot3D::IsColorAuto((ImPlot3D *)((char *)&dword_0 + 2));
v23 = (_OWORD *)((char *)v7 + 256);
if ( v24 )
v23 = (_OWORD *)((char *)v7 + 56);
}
*(_OWORD *)((char *)v7 + 88) = *v23;
v25 = ImPlot3D::IsColorAuto((long long)v7 + 104);
v26 = (_OWORD *)((char *)v7 + 104);
if ( v25 )
{
v27 = ImPlot3D::IsColorAuto((ImPlot3D *)((char *)&dword_0 + 3));
v26 = (_OWORD *)((char *)v7 + 272);
if ( v27 )
v26 = (_OWORD *)((char *)v7 + 56);
}
*(_OWORD *)((char *)v7 + 104) = *v26;
v28 = (__m128)*((unsigned int *)v7 + 30);
if ( v28.m128_f32[0] < 0.0 )
v28 = (__m128)*((unsigned int *)v7 + 37);
*((_DWORD *)v7 + 30) = v28.m128_i32[0];
v29 = *((_DWORD *)v7 + 31);
if ( v29 < 0 )
v29 = *((_DWORD *)v7 + 38);
*((_DWORD *)v7 + 31) = v29;
v30 = (__m128)*((unsigned int *)v7 + 32);
if ( v30.m128_f32[0] < 0.0 )
v30 = (__m128)*((unsigned int *)v7 + 39);
*((_DWORD *)v7 + 32) = v30.m128_i32[0];
v31 = (__m128)*((unsigned int *)v7 + 33);
if ( v31.m128_f32[0] < 0.0 )
v31 = (__m128)*((unsigned int *)v7 + 40);
*((_DWORD *)v7 + 33) = v31.m128_i32[0];
v32 = *((float *)v7 + 34);
if ( v32 < 0.0 )
v32 = *((float *)v7 + 41);
*((float *)v7 + 34) = v32;
v33 = *((float *)v7 + 21) * v32;
*((float *)v7 + 21) = v33;
v34 = v32 * *((float *)v7 + 29);
*((float *)v7 + 29) = v34;
v35 = (__m128)*((unsigned int *)v7 + 25);
*((_BYTE *)v7 + 140) = _mm_cvtsi128_si32((__m128i)_mm_and_ps(
_mm_cmplt_ps((__m128)0LL, (__m128)*((unsigned int *)v7 + 17)),
_mm_cmplt_ps((__m128)0LL, v28))) & 1;
*((_BYTE *)v7 + 141) = v33 > 0.0;
*((_BYTE *)v7 + 143) = v34 > 0.0;
*((_BYTE *)v7 + 142) = _mm_cvtsi128_si32((__m128i)_mm_and_ps(
_mm_cmplt_ps((__m128)0LL, v35),
_mm_cmplt_ps((__m128)0LL, v31))) & 1;
LOBYTE(v5) = *(_BYTE *)(Item + 12);
if ( (_BYTE)v5 )
{
if ( *(_BYTE *)(Item + 13) == 1 && (*(_BYTE *)(*((_QWORD *)v7 + 6) + 40LL) & 2) == 0 )
{
*((float *)v7 + 30) = v28.m128_f32[0] + v28.m128_f32[0];
_mm_storel_ps((double *)v7 + 16, _mm_mul_ps(_mm_unpacklo_ps(v30, v31), (__m128)xmmword_295810));
}
}
else
{
ImPlot3DNextItemData::Reset((ImGui *)((char *)ImPlot3D::GImPlot3D + 56));
}
return (unsigned int)v5;
}
|
BeginItem:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV EBP,EDX
MOV EBX,ESI
MOV R15,RDI
LEA R13,[0x436c98]
MOV R12,qword ptr [R13]
CMP qword ptr [R12 + 0x28],0x0
JNZ 0x0015688c
LEA RDI,[0x399478]
CALL 0x003161f4
LAB_0015688c:
CALL 0x00150ce3
LEA R14,[R12 + 0x38]
LEA RDX,[RSP + 0x7]
MOV RDI,R15
MOV ESI,EBX
CALL 0x00156b93
MOV RBX,RAX
CMP EBP,-0x1
JZ 0x001568db
MOVSXD RBP,EBP
SHL RBP,0x4
LEA R15,[R14 + RBP*0x1]
MOV RDI,R15
CALL 0x00154576
TEST AL,AL
JZ 0x001568e9
LEA R15,[R12 + RBP*0x1]
ADD R15,0xe0
MOV RDI,R15
CALL 0x00154576
TEST AL,AL
JZ 0x001568e9
LAB_001568db:
CMP byte ptr [RSP + 0x7],0x1
JNZ 0x001568f4
CALL 0x0015434a
JMP 0x001568f1
LAB_001568e9:
MOV RDI,R15
CALL 0x00313cfe
LAB_001568f1:
MOV dword ptr [RBX + 0x4],EAX
LAB_001568f4:
MOV EDI,dword ptr [RBX + 0x4]
CALL 0x00313cb2
MOVLHPS XMM0,XMM1
MOVUPS xmmword ptr [RSP + 0x8],XMM0
MOV RDI,R14
CALL 0x00154576
TEST AL,AL
JZ 0x00156919
XOR EDI,EDI
CALL 0x00153ed9
JMP 0x0015691b
LAB_00156919:
XOR EAX,EAX
LAB_0015691b:
MOV byte ptr [R12 + 0x91],AL
LEA R15,[R12 + 0x48]
MOV RDI,R15
CALL 0x00154576
TEST AL,AL
JZ 0x00156940
MOV EDI,0x1
CALL 0x00153ed9
JMP 0x00156942
LAB_00156940:
XOR EAX,EAX
LAB_00156942:
MOV byte ptr [R12 + 0x90],AL
MOV RDI,R14
CALL 0x00154576
MOV RCX,R14
TEST AL,AL
JZ 0x00156973
XOR EDI,EDI
CALL 0x00153ed9
LEA RDX,[R12 + 0xe0]
TEST AL,AL
LEA RCX,[RSP + 0x8]
CMOVZ RCX,RDX
LAB_00156973:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R14],XMM0
MOV RDI,R15
CALL 0x00154576
MOV RCX,R15
TEST AL,AL
JZ 0x001569a6
MOV EDI,0x1
CALL 0x00153ed9
LEA RDX,[R12 + 0xf0]
TEST AL,AL
LEA RCX,[RSP + 0x8]
CMOVZ RCX,RDX
LAB_001569a6:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R15],XMM0
LEA R15,[R12 + 0x58]
MOV RDI,R15
CALL 0x00154576
MOV RCX,R15
TEST AL,AL
JZ 0x001569d9
MOV EDI,0x2
CALL 0x00153ed9
LEA RCX,[R12 + 0x100]
TEST AL,AL
CMOVNZ RCX,R14
LAB_001569d9:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R15],XMM0
LEA R15,[R12 + 0x68]
MOV RDI,R15
CALL 0x00154576
MOV RCX,R15
TEST AL,AL
JZ 0x00156a0c
MOV EDI,0x3
CALL 0x00153ed9
LEA RCX,[R12 + 0x110]
TEST AL,AL
CMOVNZ RCX,R14
LAB_00156a0c:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R15],XMM0
MOVSS XMM0,dword ptr [R12 + 0x78]
XORPS XMM1,XMM1
UCOMISS XMM1,XMM0
JBE 0x00156a2c
MOVSS XMM0,dword ptr [R12 + 0x94]
LAB_00156a2c:
MOVSS dword ptr [R12 + 0x78],XMM0
MOV EAX,dword ptr [R12 + 0x7c]
TEST EAX,EAX
JNS 0x00156a44
MOV EAX,dword ptr [R12 + 0x98]
LAB_00156a44:
MOV dword ptr [R12 + 0x7c],EAX
MOVSS XMM1,dword ptr [R12 + 0x80]
XORPS XMM3,XMM3
UCOMISS XMM3,XMM1
JBE 0x00156a65
MOVSS XMM1,dword ptr [R12 + 0x9c]
LAB_00156a65:
MOVSS dword ptr [R12 + 0x80],XMM1
MOVSS XMM2,dword ptr [R12 + 0x84]
UCOMISS XMM3,XMM2
JBE 0x00156a88
MOVSS XMM2,dword ptr [R12 + 0xa0]
LAB_00156a88:
MOVSS dword ptr [R12 + 0x84],XMM2
MOVSS XMM4,dword ptr [R12 + 0x88]
UCOMISS XMM3,XMM4
JBE 0x00156aab
MOVSS XMM4,dword ptr [R12 + 0xa4]
LAB_00156aab:
MOVSS dword ptr [R12 + 0x88],XMM4
MOVSS XMM5,dword ptr [R12 + 0x54]
MULSS XMM5,XMM4
MOVSS dword ptr [R12 + 0x54],XMM5
MULSS XMM4,dword ptr [R12 + 0x74]
MOVSS dword ptr [R12 + 0x74],XMM4
XORPS XMM6,XMM6
CMPLTPS XMM6,XMM0
MOVSS XMM7,dword ptr [R12 + 0x44]
MOVSS XMM8,dword ptr [R12 + 0x64]
XORPS XMM9,XMM9
CMPLTPS XMM9,XMM7
ANDPS XMM9,XMM6
MOVD EAX,XMM9
AND AL,0x1
MOV byte ptr [R12 + 0x8c],AL
UCOMISS XMM5,XMM3
SETA byte ptr [R12 + 0x8d]
UCOMISS XMM4,XMM3
SETA byte ptr [R12 + 0x8f]
XORPS XMM4,XMM4
CMPLTPS XMM4,XMM2
CMPLTPS XMM3,XMM8
ANDPS XMM3,XMM4
MOVD EAX,XMM3
AND AL,0x1
MOV byte ptr [R12 + 0x8e],AL
MOV BPL,byte ptr [RBX + 0xc]
TEST BPL,BPL
JZ 0x00156b75
CMP byte ptr [RBX + 0xd],0x1
JNZ 0x00156b82
MOV RAX,qword ptr [R12 + 0x30]
TEST byte ptr [RAX + 0x28],0x2
JNZ 0x00156b82
ADDSS XMM0,XMM0
MOVSS dword ptr [R12 + 0x78],XMM0
UNPCKLPS XMM1,XMM2
MULPS XMM1,xmmword ptr [0x00395810]
MOVLPS qword ptr [R12 + 0x80],XMM1
JMP 0x00156b82
LAB_00156b75:
MOV RDI,qword ptr [R13]
ADD RDI,0x38
CALL 0x00155a36
LAB_00156b82:
MOV EAX,EBP
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* ImPlot3D::BeginItem(char const*, int, int) */
ulong ImPlot3D::BeginItem(char *param_1,int param_2,int param_3)
{
ImVec4 *pIVar1;
int8 uVar2;
long lVar3;
char cVar4;
int1 uVar5;
int4 uVar6;
int iVar7;
long lVar8;
ImVec4 *pIVar9;
ulong uVar10;
ImVec4 *pIVar11;
float fVar12;
float fVar13;
float fVar14;
float fVar15;
float fVar16;
bool local_41;
int8 local_40 [2];
lVar3 = GImPlot3D;
uVar10 = (ulong)(uint)param_3;
if (*(long *)(GImPlot3D + 0x28) == 0) {
ImGui::ErrorLog("PlotX() needs to be called between BeginPlot() and EndPlot()!");
}
SetupLock();
pIVar1 = (ImVec4 *)(lVar3 + 0x38);
lVar8 = RegisterOrGetItem(param_1,param_2,&local_41);
if (param_3 == -1) {
LAB_001568db:
if (local_41 != true) goto LAB_001568f4;
uVar6 = NextColormapColorU32();
}
else {
uVar10 = (long)param_3 * 0x10;
pIVar11 = pIVar1 + uVar10;
cVar4 = IsColorAuto(pIVar11);
if (cVar4 != '\0') {
pIVar11 = (ImVec4 *)(lVar3 + uVar10 + 0xe0);
cVar4 = IsColorAuto(pIVar11);
if (cVar4 != '\0') goto LAB_001568db;
}
uVar6 = ImGui::ColorConvertFloat4ToU32(pIVar11);
}
*(int4 *)(lVar8 + 4) = uVar6;
LAB_001568f4:
local_40[0] = ImGui::ColorConvertU32ToFloat4(*(uint *)(lVar8 + 4));
cVar4 = IsColorAuto(pIVar1);
if (cVar4 == '\0') {
uVar5 = 0;
}
else {
uVar5 = IsColorAuto(0);
}
*(int1 *)(lVar3 + 0x91) = uVar5;
pIVar11 = (ImVec4 *)(lVar3 + 0x48);
cVar4 = IsColorAuto(pIVar11);
if (cVar4 == '\0') {
uVar5 = 0;
}
else {
uVar5 = IsColorAuto(1);
}
*(int1 *)(lVar3 + 0x90) = uVar5;
cVar4 = IsColorAuto(pIVar1);
pIVar9 = pIVar1;
if (cVar4 != '\0') {
cVar4 = IsColorAuto(0);
pIVar9 = (ImVec4 *)local_40;
if (cVar4 == '\0') {
pIVar9 = (ImVec4 *)(lVar3 + 0xe0);
}
}
uVar2 = *(int8 *)(pIVar9 + 8);
*(int8 *)pIVar1 = *(int8 *)pIVar9;
*(int8 *)(lVar3 + 0x40) = uVar2;
cVar4 = IsColorAuto(pIVar11);
pIVar9 = pIVar11;
if (cVar4 != '\0') {
cVar4 = IsColorAuto(1);
pIVar9 = (ImVec4 *)local_40;
if (cVar4 == '\0') {
pIVar9 = (ImVec4 *)(lVar3 + 0xf0);
}
}
uVar2 = *(int8 *)(pIVar9 + 8);
*(int8 *)pIVar11 = *(int8 *)pIVar9;
*(int8 *)(lVar3 + 0x50) = uVar2;
pIVar11 = (ImVec4 *)(lVar3 + 0x58);
cVar4 = IsColorAuto(pIVar11);
pIVar9 = pIVar11;
if (cVar4 != '\0') {
cVar4 = IsColorAuto(2);
pIVar9 = (ImVec4 *)(lVar3 + 0x100);
if (cVar4 != '\0') {
pIVar9 = pIVar1;
}
}
uVar2 = *(int8 *)(pIVar9 + 8);
*(int8 *)pIVar11 = *(int8 *)pIVar9;
*(int8 *)(lVar3 + 0x60) = uVar2;
pIVar11 = (ImVec4 *)(lVar3 + 0x68);
cVar4 = IsColorAuto(pIVar11);
pIVar9 = pIVar11;
if (cVar4 != '\0') {
cVar4 = IsColorAuto(3);
pIVar9 = (ImVec4 *)(lVar3 + 0x110);
if (cVar4 != '\0') {
pIVar9 = pIVar1;
}
}
uVar2 = *(int8 *)(pIVar9 + 8);
*(int8 *)pIVar11 = *(int8 *)pIVar9;
*(int8 *)(lVar3 + 0x70) = uVar2;
fVar12 = *(float *)(lVar3 + 0x78);
if (fVar12 < 0.0) {
fVar12 = *(float *)(lVar3 + 0x94);
}
*(float *)(lVar3 + 0x78) = fVar12;
iVar7 = *(int *)(lVar3 + 0x7c);
if (iVar7 < 0) {
iVar7 = *(int *)(lVar3 + 0x98);
}
*(int *)(lVar3 + 0x7c) = iVar7;
fVar13 = *(float *)(lVar3 + 0x80);
if (fVar13 < 0.0) {
fVar13 = *(float *)(lVar3 + 0x9c);
}
*(float *)(lVar3 + 0x80) = fVar13;
fVar14 = *(float *)(lVar3 + 0x84);
if (fVar14 < 0.0) {
fVar14 = *(float *)(lVar3 + 0xa0);
}
*(float *)(lVar3 + 0x84) = fVar14;
fVar15 = *(float *)(lVar3 + 0x88);
if (fVar15 < 0.0) {
fVar15 = *(float *)(lVar3 + 0xa4);
}
*(float *)(lVar3 + 0x88) = fVar15;
fVar16 = *(float *)(lVar3 + 0x54) * fVar15;
*(float *)(lVar3 + 0x54) = fVar16;
fVar15 = fVar15 * *(float *)(lVar3 + 0x74);
*(float *)(lVar3 + 0x74) = fVar15;
*(byte *)(lVar3 + 0x8c) = -(0.0 < *(float *)(lVar3 + 0x44)) & -(0.0 < fVar12) & 1;
*(bool *)(lVar3 + 0x8d) = 0.0 < fVar16;
*(bool *)(lVar3 + 0x8f) = 0.0 < fVar15;
*(byte *)(lVar3 + 0x8e) = -(0.0 < *(float *)(lVar3 + 100)) & -(0.0 < fVar14) & 1;
cVar4 = *(char *)(lVar8 + 0xc);
if (cVar4 == '\0') {
ImPlot3DNextItemData::Reset((ImPlot3DNextItemData *)(GImPlot3D + 0x38));
}
else if ((*(char *)(lVar8 + 0xd) == '\x01') &&
((*(byte *)(*(long *)(lVar3 + 0x30) + 0x28) & 2) == 0)) {
*(float *)(lVar3 + 0x78) = fVar12 + fVar12;
*(ulong *)(lVar3 + 0x80) = CONCAT44(fVar14 * _UNK_00395814,fVar13 * _DAT_00395810);
}
return CONCAT71((int7)(uVar10 >> 8),cVar4) & 0xffffffff;
}
|
|
10,767 |
mi_check_index
|
eloqsql/storage/myisam/mi_search.c
|
int _mi_check_index(MI_INFO *info, int inx)
{
if (inx == -1) /* Use last index */
inx=info->lastinx;
if (inx < 0)
{
my_errno= HA_ERR_WRONG_INDEX;
return -1;
}
if (!mi_is_key_active(info->s->state.key_map, inx))
{
my_errno= info->s->state.state.records ? HA_ERR_WRONG_INDEX :
HA_ERR_END_OF_FILE;
return -1;
}
if (info->lastinx != inx) /* Index changed */
{
info->lastinx = inx;
info->page_changed=1;
info->update= ((info->update & (HA_STATE_CHANGED | HA_STATE_ROW_CHANGED)) |
HA_STATE_NEXT_FOUND | HA_STATE_PREV_FOUND);
}
if (info->opt_flag & WRITE_CACHE_USED && flush_io_cache(&info->rec_cache))
return(-1);
return(inx);
}
|
O0
|
c
|
mi_check_index:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
cmpl $-0x1, -0x14(%rbp)
jne 0xc5fc2
movq -0x10(%rbp), %rax
movl 0x1d4(%rax), %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
jge 0xc5fdf
callq 0xfdd30
movl $0x7c, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xc60cb
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0xc0(%rax), %rax
movl -0x14(%rbp), %ecx
movl $0x1, %edx
shlq %cl, %rdx
movq %rdx, %rcx
andq %rcx, %rax
cmpq $0x0, %rax
je 0xc600c
movb $0x1, %al
testb $0x1, %al
jne 0xc6049
jmp 0xc6014
xorl %eax, %eax
testb $0x1, %al
jne 0xc6049
jmp 0xc6014
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rdx
movl $0x89, %eax
movl $0x7c, %ecx
cmpq $0x0, %rdx
cmovnel %ecx, %eax
movl %eax, -0x18(%rbp)
callq 0xfdd30
movl -0x18(%rbp), %ecx
movl %ecx, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xc60cb
movq -0x10(%rbp), %rax
movl 0x1d4(%rax), %eax
cmpl -0x14(%rbp), %eax
je 0xc6090
movl -0x14(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x1d4(%rax)
movq -0x10(%rbp), %rax
movb $0x1, 0x33c(%rax)
movq -0x10(%rbp), %rax
movl 0x1d0(%rax), %ecx
andl $0x401, %ecx # imm = 0x401
orl $0x10, %ecx
orl $0x20, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x1d0(%rax)
movq -0x10(%rbp), %rax
movl 0x1c8(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0xc60c5
movq -0x10(%rbp), %rdi
addq $0x220, %rdi # imm = 0x220
movl $0x1, %esi
callq 0xe8710
cmpl $0x0, %eax
je 0xc60c5
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xc60cb
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_mi_check_index:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
cmp [rbp+var_14], 0FFFFFFFFh
jnz short loc_C5FC2
mov rax, [rbp+var_10]
mov eax, [rax+1D4h]
mov [rbp+var_14], eax
loc_C5FC2:
cmp [rbp+var_14], 0
jge short loc_C5FDF
call _my_thread_var
mov dword ptr [rax], 7Ch ; '|'
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_C60CB
loc_C5FDF:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+0C0h]
mov ecx, [rbp+var_14]
mov edx, 1
shl rdx, cl
mov rcx, rdx
and rax, rcx
cmp rax, 0
jz short loc_C600C
mov al, 1
test al, 1
jnz short loc_C6049
jmp short loc_C6014
loc_C600C:
xor eax, eax
test al, 1
jnz short loc_C6049
jmp short $+2
loc_C6014:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rdx, [rax+18h]
mov eax, 89h
mov ecx, 7Ch ; '|'
cmp rdx, 0
cmovnz eax, ecx
mov [rbp+var_18], eax
call _my_thread_var
mov ecx, [rbp+var_18]
mov [rax], ecx
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_C60CB
loc_C6049:
mov rax, [rbp+var_10]
mov eax, [rax+1D4h]
cmp eax, [rbp+var_14]
jz short loc_C6090
mov ecx, [rbp+var_14]
mov rax, [rbp+var_10]
mov [rax+1D4h], ecx
mov rax, [rbp+var_10]
mov byte ptr [rax+33Ch], 1
mov rax, [rbp+var_10]
mov ecx, [rax+1D0h]
and ecx, 401h
or ecx, 10h
or ecx, 20h
mov rax, [rbp+var_10]
mov [rax+1D0h], ecx
loc_C6090:
mov rax, [rbp+var_10]
mov eax, [rax+1C8h]
and eax, 10h
cmp eax, 0
jz short loc_C60C5
mov rdi, [rbp+var_10]
add rdi, 220h
mov esi, 1
call my_b_flush_io_cache
cmp eax, 0
jz short loc_C60C5
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_C60CB
loc_C60C5:
mov eax, [rbp+var_14]
mov [rbp+var_4], eax
loc_C60CB:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
|
long long mi_check_index(long long a1, const char *a2)
{
int v2; // eax
int v4; // [rsp+Ch] [rbp-14h]
v4 = (int)a2;
if ( (_DWORD)a2 == -1 )
v4 = *(_DWORD *)(a1 + 468);
if ( v4 >= 0 )
{
if ( ((1LL << v4) & *(_QWORD *)(*(_QWORD *)a1 + 192LL)) != 0 )
{
if ( *(_DWORD *)(a1 + 468) != v4 )
{
*(_DWORD *)(a1 + 468) = v4;
*(_BYTE *)(a1 + 828) = 1;
*(_DWORD *)(a1 + 464) = *(_DWORD *)(a1 + 464) & 0x401 | 0x30;
}
if ( (*(_DWORD *)(a1 + 456) & 0x10) != 0 && (unsigned int)my_b_flush_io_cache(a1 + 544, 1LL) )
return (unsigned int)-1;
else
return (unsigned int)v4;
}
else
{
v2 = 137;
if ( *(_QWORD *)(*(_QWORD *)a1 + 24LL) )
v2 = 124;
*(_DWORD *)my_thread_var(a1, a2) = v2;
return (unsigned int)-1;
}
}
else
{
*(_DWORD *)my_thread_var(a1, a2) = 124;
return (unsigned int)-1;
}
}
|
_mi_check_index:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
CMP dword ptr [RBP + -0x14],-0x1
JNZ 0x001c5fc2
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x1d4]
MOV dword ptr [RBP + -0x14],EAX
LAB_001c5fc2:
CMP dword ptr [RBP + -0x14],0x0
JGE 0x001c5fdf
CALL 0x001fdd30
MOV dword ptr [RAX],0x7c
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x001c60cb
LAB_001c5fdf:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0xc0]
MOV ECX,dword ptr [RBP + -0x14]
MOV EDX,0x1
SHL RDX,CL
MOV RCX,RDX
AND RAX,RCX
CMP RAX,0x0
JZ 0x001c600c
MOV AL,0x1
TEST AL,0x1
JNZ 0x001c6049
JMP 0x001c6014
LAB_001c600c:
XOR EAX,EAX
TEST AL,0x1
JNZ 0x001c6049
JMP 0x001c6014
LAB_001c6014:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x18]
MOV EAX,0x89
MOV ECX,0x7c
CMP RDX,0x0
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x18],EAX
CALL 0x001fdd30
MOV ECX,dword ptr [RBP + -0x18]
MOV dword ptr [RAX],ECX
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x001c60cb
LAB_001c6049:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x1d4]
CMP EAX,dword ptr [RBP + -0x14]
JZ 0x001c6090
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x1d4],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x33c],0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x1d0]
AND ECX,0x401
OR ECX,0x10
OR ECX,0x20
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x1d0],ECX
LAB_001c6090:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x1c8]
AND EAX,0x10
CMP EAX,0x0
JZ 0x001c60c5
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x220
MOV ESI,0x1
CALL 0x001e8710
CMP EAX,0x0
JZ 0x001c60c5
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x001c60cb
LAB_001c60c5:
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x4],EAX
LAB_001c60cb:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
/* WARNING: Removing unreachable block (ram,0x001c600a) */
int _mi_check_index(long *param_1,int param_2)
{
int4 uVar1;
int iVar2;
int4 *puVar3;
int local_1c;
int local_c;
local_1c = param_2;
if (param_2 == -1) {
local_1c = *(int *)((long)param_1 + 0x1d4);
}
if (local_1c < 0) {
puVar3 = (int4 *)_my_thread_var();
*puVar3 = 0x7c;
local_c = -1;
}
else if ((*(ulong *)(*param_1 + 0xc0) & 1L << ((byte)local_1c & 0x3f)) == 0) {
uVar1 = 0x89;
if (*(long *)(*param_1 + 0x18) != 0) {
uVar1 = 0x7c;
}
puVar3 = (int4 *)_my_thread_var();
*puVar3 = uVar1;
local_c = -1;
}
else {
if (*(int *)((long)param_1 + 0x1d4) != local_1c) {
*(int *)((long)param_1 + 0x1d4) = local_1c;
*(int1 *)((long)param_1 + 0x33c) = 1;
*(uint *)(param_1 + 0x3a) = *(uint *)(param_1 + 0x3a) & 0x401 | 0x30;
}
if (((*(uint *)(param_1 + 0x39) & 0x10) == 0) ||
(iVar2 = my_b_flush_io_cache(param_1 + 0x44,1), iVar2 == 0)) {
local_c = local_1c;
}
else {
local_c = -1;
}
}
return local_c;
}
|
|
10,768 |
my_lengthsp_utf16le
|
eloqsql/strings/ctype-ucs2.c
|
static size_t
my_lengthsp_utf16le(CHARSET_INFO *cs __attribute__((unused)),
const char *ptr, size_t length)
{
const char *end= ptr + length;
while (end > ptr + 1 && uint2korr(end - 2) == ' ')
end-= 2;
return (size_t) (end - ptr);
}
|
O0
|
c
|
my_lengthsp_utf16le:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rdx
addq $0x1, %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x21(%rbp)
jbe 0x92a23
movq -0x20(%rbp), %rax
movzwl -0x2(%rax), %eax
cmpl $0x20, %eax
sete %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
testb $0x1, %al
jne 0x92a2c
jmp 0x92a3a
movq -0x20(%rbp), %rax
addq $-0x2, %rax
movq %rax, -0x20(%rbp)
jmp 0x929fc
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
subq %rcx, %rax
popq %rbp
retq
nopw (%rax,%rax)
|
my_lengthsp_utf16le:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_20], rax
loc_929FC:
mov rcx, [rbp+var_20]
mov rdx, [rbp+var_10]
add rdx, 1
xor eax, eax
cmp rcx, rdx
mov [rbp+var_21], al
jbe short loc_92A23
mov rax, [rbp+var_20]
movzx eax, word ptr [rax-2]
cmp eax, 20h ; ' '
setz al
mov [rbp+var_21], al
loc_92A23:
mov al, [rbp+var_21]
test al, 1
jnz short loc_92A2C
jmp short loc_92A3A
loc_92A2C:
mov rax, [rbp+var_20]
add rax, 0FFFFFFFFFFFFFFFEh
mov [rbp+var_20], rax
jmp short loc_929FC
loc_92A3A:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
sub rax, rcx
pop rbp
retn
|
long long my_lengthsp_utf16le(long long a1, long long a2, long long a3)
{
bool v4; // [rsp+1h] [rbp-21h]
unsigned long long i; // [rsp+2h] [rbp-20h]
for ( i = a3 + a2; ; i -= 2LL )
{
v4 = 0;
if ( i > a2 + 1 )
v4 = *(unsigned __int16 *)(i - 2) == 32;
if ( !v4 )
break;
}
return i - a2;
}
|
my_lengthsp_utf16le:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x20],RAX
LAB_001929fc:
MOV RCX,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x10]
ADD RDX,0x1
XOR EAX,EAX
CMP RCX,RDX
MOV byte ptr [RBP + -0x21],AL
JBE 0x00192a23
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,word ptr [RAX + -0x2]
CMP EAX,0x20
SETZ AL
MOV byte ptr [RBP + -0x21],AL
LAB_00192a23:
MOV AL,byte ptr [RBP + -0x21]
TEST AL,0x1
JNZ 0x00192a2c
JMP 0x00192a3a
LAB_00192a2c:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,-0x2
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001929fc
LAB_00192a3a:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
SUB RAX,RCX
POP RBP
RET
|
long my_lengthsp_utf16le(int8 param_1,long param_2,long param_3)
{
bool bVar1;
int8 local_28;
local_28 = param_2 + param_3;
while( true ) {
bVar1 = false;
if (param_2 + 1U < local_28) {
bVar1 = *(short *)(local_28 - 2) == 0x20;
}
if (!bVar1) break;
local_28 = local_28 - 2;
}
return local_28 - param_2;
}
|
|
10,769 |
ggml_nbytes
|
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
|
size_t ggml_nbytes(const struct ggml_tensor * tensor) {
size_t nbytes;
const size_t blck_size = ggml_blck_size(tensor->type);
if (blck_size == 1) {
nbytes = ggml_type_size(tensor->type);
for (int i = 0; i < GGML_MAX_DIMS; ++i) {
nbytes += (tensor->ne[i] - 1)*tensor->nb[i];
}
}
else {
nbytes = tensor->ne[0]*tensor->nb[0]/blck_size;
for (int i = 1; i < GGML_MAX_DIMS; ++i) {
nbytes += (tensor->ne[i] - 1)*tensor->nb[i];
}
}
return nbytes;
}
|
O0
|
c
|
ggml_nbytes:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl (%rax), %edi
callq 0x48480
movq %rax, -0x18(%rbp)
cmpq $0x1, -0x18(%rbp)
jne 0x4af62
movq -0x8(%rbp), %rax
movl (%rax), %edi
callq 0x45cd0
movq %rax, -0x10(%rbp)
movl $0x0, -0x1c(%rbp)
cmpl $0x4, -0x1c(%rbp)
jge 0x4af60
movq -0x8(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq 0x10(%rax,%rcx,8), %rax
subq $0x1, %rax
movq -0x8(%rbp), %rcx
movslq -0x1c(%rbp), %rdx
imulq 0x30(%rcx,%rdx,8), %rax
addq -0x10(%rbp), %rax
movq %rax, -0x10(%rbp)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x4af28
jmp 0x4afc0
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x8(%rbp), %rcx
imulq 0x30(%rcx), %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq -0x18(%rbp)
movq %rax, -0x10(%rbp)
movl $0x1, -0x20(%rbp)
cmpl $0x4, -0x20(%rbp)
jge 0x4afbe
movq -0x8(%rbp), %rax
movslq -0x20(%rbp), %rcx
movq 0x10(%rax,%rcx,8), %rax
subq $0x1, %rax
movq -0x8(%rbp), %rcx
movslq -0x20(%rbp), %rdx
imulq 0x30(%rcx,%rdx,8), %rax
addq -0x10(%rbp), %rax
movq %rax, -0x10(%rbp)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x4af86
jmp 0x4afc0
movq -0x10(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
ggml_nbytes:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov edi, [rax]
call _ggml_blck_size
mov [rbp+var_18], rax
cmp [rbp+var_18], 1
jnz short loc_4AF62
mov rax, [rbp+var_8]
mov edi, [rax]
call _ggml_type_size
mov [rbp+var_10], rax
mov [rbp+var_1C], 0
loc_4AF28:
cmp [rbp+var_1C], 4
jge short loc_4AF60
mov rax, [rbp+var_8]
movsxd rcx, [rbp+var_1C]
mov rax, [rax+rcx*8+10h]
sub rax, 1
mov rcx, [rbp+var_8]
movsxd rdx, [rbp+var_1C]
imul rax, [rcx+rdx*8+30h]
add rax, [rbp+var_10]
mov [rbp+var_10], rax
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
jmp short loc_4AF28
loc_4AF60:
jmp short loc_4AFC0
loc_4AF62:
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov rcx, [rbp+var_8]
imul rax, [rcx+30h]
xor ecx, ecx
mov edx, ecx
div [rbp+var_18]
mov [rbp+var_10], rax
mov [rbp+var_20], 1
loc_4AF86:
cmp [rbp+var_20], 4
jge short loc_4AFBE
mov rax, [rbp+var_8]
movsxd rcx, [rbp+var_20]
mov rax, [rax+rcx*8+10h]
sub rax, 1
mov rcx, [rbp+var_8]
movsxd rdx, [rbp+var_20]
imul rax, [rcx+rdx*8+30h]
add rax, [rbp+var_10]
mov [rbp+var_10], rax
mov eax, [rbp+var_20]
add eax, 1
mov [rbp+var_20], eax
jmp short loc_4AF86
loc_4AFBE:
jmp short $+2
loc_4AFC0:
mov rax, [rbp+var_10]
add rsp, 20h
pop rbp
retn
|
long long ggml_nbytes(unsigned int *a1)
{
int j; // [rsp+0h] [rbp-20h]
int i; // [rsp+4h] [rbp-1Ch]
unsigned long long v4; // [rsp+8h] [rbp-18h]
long long v5; // [rsp+10h] [rbp-10h]
v4 = ggml_blck_size(*a1);
if ( v4 == 1 )
{
v5 = ggml_type_size(*a1);
for ( i = 0; i < 4; ++i )
v5 += *(_QWORD *)&a1[2 * i + 12] * (*(_QWORD *)&a1[2 * i + 4] - 1LL);
}
else
{
v5 = *((_QWORD *)a1 + 6) * *((_QWORD *)a1 + 2) / v4;
for ( j = 1; j < 4; ++j )
v5 += *(_QWORD *)&a1[2 * j + 12] * (*(_QWORD *)&a1[2 * j + 4] - 1LL);
}
return v5;
}
|
ggml_nbytes:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV EDI,dword ptr [RAX]
CALL 0x00148480
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0x1
JNZ 0x0014af62
MOV RAX,qword ptr [RBP + -0x8]
MOV EDI,dword ptr [RAX]
CALL 0x00145cd0
MOV qword ptr [RBP + -0x10],RAX
MOV dword ptr [RBP + -0x1c],0x0
LAB_0014af28:
CMP dword ptr [RBP + -0x1c],0x4
JGE 0x0014af60
MOV RAX,qword ptr [RBP + -0x8]
MOVSXD RCX,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RAX + RCX*0x8 + 0x10]
SUB RAX,0x1
MOV RCX,qword ptr [RBP + -0x8]
MOVSXD RDX,dword ptr [RBP + -0x1c]
IMUL RAX,qword ptr [RCX + RDX*0x8 + 0x30]
ADD RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x10],RAX
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x0014af28
LAB_0014af60:
JMP 0x0014afc0
LAB_0014af62:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x8]
IMUL RAX,qword ptr [RCX + 0x30]
XOR ECX,ECX
MOV EDX,ECX
DIV qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x10],RAX
MOV dword ptr [RBP + -0x20],0x1
LAB_0014af86:
CMP dword ptr [RBP + -0x20],0x4
JGE 0x0014afbe
MOV RAX,qword ptr [RBP + -0x8]
MOVSXD RCX,dword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + RCX*0x8 + 0x10]
SUB RAX,0x1
MOV RCX,qword ptr [RBP + -0x8]
MOVSXD RDX,dword ptr [RBP + -0x20]
IMUL RAX,qword ptr [RCX + RDX*0x8 + 0x30]
ADD RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x10],RAX
MOV EAX,dword ptr [RBP + -0x20]
ADD EAX,0x1
MOV dword ptr [RBP + -0x20],EAX
JMP 0x0014af86
LAB_0014afbe:
JMP 0x0014afc0
LAB_0014afc0:
MOV RAX,qword ptr [RBP + -0x10]
ADD RSP,0x20
POP RBP
RET
|
ulong ggml_nbytes(int4 *param_1)
{
int local_28;
int local_24;
ulong local_18;
local_18 = ggml_blck_size(*param_1);
if (local_18 == 1) {
local_18 = ggml_type_size(*param_1);
for (local_24 = 0; local_24 < 4; local_24 = local_24 + 1) {
local_18 = (*(long *)(param_1 + (long)local_24 * 2 + 4) + -1) *
*(long *)(param_1 + (long)local_24 * 2 + 0xc) + local_18;
}
}
else {
local_18 = (ulong)(*(long *)(param_1 + 4) * *(long *)(param_1 + 0xc)) / local_18;
for (local_28 = 1; local_28 < 4; local_28 = local_28 + 1) {
local_18 = (*(long *)(param_1 + (long)local_28 * 2 + 4) + -1) *
*(long *)(param_1 + (long)local_28 * 2 + 0xc) + local_18;
}
}
return local_18;
}
|
|
10,770 |
ggml_nbytes
|
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
|
size_t ggml_nbytes(const struct ggml_tensor * tensor) {
size_t nbytes;
const size_t blck_size = ggml_blck_size(tensor->type);
if (blck_size == 1) {
nbytes = ggml_type_size(tensor->type);
for (int i = 0; i < GGML_MAX_DIMS; ++i) {
nbytes += (tensor->ne[i] - 1)*tensor->nb[i];
}
}
else {
nbytes = tensor->ne[0]*tensor->nb[0]/blck_size;
for (int i = 1; i < GGML_MAX_DIMS; ++i) {
nbytes += (tensor->ne[i] - 1)*tensor->nb[i];
}
}
return nbytes;
}
|
O1
|
c
|
ggml_nbytes:
movl (%rdi), %eax
movl $0x5f000003, %ecx # imm = 0x5F000003
btq %rax, %rcx
jb 0x1b12f
imulq $0x38, %rax, %rsi
leaq 0x51c9f(%rip), %r8 # 0x6cda0
movq 0x30(%rdi), %rax
imulq 0x10(%rdi), %rax
xorl %ecx, %ecx
xorl %edx, %edx
divq 0x8(%rsi,%r8)
movq 0x18(%rdi,%rcx,8), %rdx
decq %rdx
imulq 0x38(%rdi,%rcx,8), %rdx
addq %rdx, %rax
incq %rcx
cmpq $0x3, %rcx
jne 0x1b113
jmp 0x1b15c
imulq $0x38, %rax, %rax
leaq 0x51c66(%rip), %rcx # 0x6cda0
movq 0x18(%rax,%rcx), %rax
movq $-0x4, %rcx
movq 0x30(%rdi,%rcx,8), %rdx
decq %rdx
imulq 0x50(%rdi,%rcx,8), %rdx
addq %rdx, %rax
incq %rcx
jne 0x1b146
retq
|
ggml_nbytes:
mov eax, [rdi]
mov ecx, 5F000003h
bt rcx, rax
jb short loc_1B12F
imul rsi, rax, 38h ; '8'
lea r8, type_traits
mov rax, [rdi+30h]
imul rax, [rdi+10h]
xor ecx, ecx
xor edx, edx
div qword ptr [rsi+r8+8]
loc_1B113:
mov rdx, [rdi+rcx*8+18h]
dec rdx
imul rdx, [rdi+rcx*8+38h]
add rax, rdx
inc rcx
cmp rcx, 3
jnz short loc_1B113
jmp short locret_1B15C
loc_1B12F:
imul rax, 38h ; '8'
lea rcx, type_traits
mov rax, [rax+rcx+18h]
mov rcx, 0FFFFFFFFFFFFFFFCh
loc_1B146:
mov rdx, [rdi+rcx*8+30h]
dec rdx
imul rdx, [rdi+rcx*8+50h]
add rax, rdx
inc rcx
jnz short loc_1B146
locret_1B15C:
retn
|
unsigned long long ggml_nbytes(unsigned int *a1)
{
unsigned long long v1; // rax
long long v2; // rcx
long long v3; // rcx
unsigned long long result; // rax
long long v5; // rcx
v1 = *a1;
v2 = 1593835523LL;
if ( _bittest64(&v2, v1) )
{
result = (unsigned long long)(&type_traits)[7 * v1 + 3];
v5 = -4LL;
do
{
result += *(_QWORD *)&a1[2 * v5 + 20] * (*(_QWORD *)&a1[2 * v5 + 12] - 1LL);
++v5;
}
while ( v5 );
}
else
{
v3 = 0LL;
result = *((_QWORD *)a1 + 2) * *((_QWORD *)a1 + 6) / (unsigned long long)(&type_traits)[7 * v1 + 1];
do
{
result += *(_QWORD *)&a1[2 * v3 + 14] * (*(_QWORD *)&a1[2 * v3 + 6] - 1LL);
++v3;
}
while ( v3 != 3 );
}
return result;
}
|
ggml_nbytes:
MOV EAX,dword ptr [RDI]
MOV ECX,0x5f000003
BT RCX,RAX
JC 0x0011b12f
IMUL RSI,RAX,0x38
LEA R8,[0x16cda0]
MOV RAX,qword ptr [RDI + 0x30]
IMUL RAX,qword ptr [RDI + 0x10]
XOR ECX,ECX
XOR EDX,EDX
DIV qword ptr [RSI + R8*0x1 + 0x8]
LAB_0011b113:
MOV RDX,qword ptr [RDI + RCX*0x8 + 0x18]
DEC RDX
IMUL RDX,qword ptr [RDI + RCX*0x8 + 0x38]
ADD RAX,RDX
INC RCX
CMP RCX,0x3
JNZ 0x0011b113
JMP 0x0011b15c
LAB_0011b12f:
IMUL RAX,RAX,0x38
LEA RCX,[0x16cda0]
MOV RAX,qword ptr [RAX + RCX*0x1 + 0x18]
MOV RCX,-0x4
LAB_0011b146:
MOV RDX,qword ptr [RDI + RCX*0x8 + 0x30]
DEC RDX
IMUL RDX,qword ptr [RDI + RCX*0x8 + 0x50]
ADD RAX,RDX
INC RCX
JNZ 0x0011b146
LAB_0011b15c:
RET
|
ulong ggml_nbytes(uint *param_1)
{
ulong uVar1;
long lVar2;
uVar1 = (ulong)*param_1;
if ((0x5f000003UL >> (uVar1 & 0x3f) & 1) == 0) {
lVar2 = 0;
uVar1 = (ulong)(*(long *)(param_1 + 0xc) * *(long *)(param_1 + 4)) /
*(ulong *)(type_traits + uVar1 * 0x38 + 8);
do {
uVar1 = uVar1 + (*(long *)(param_1 + lVar2 * 2 + 6) + -1) *
*(long *)(param_1 + lVar2 * 2 + 0xe);
lVar2 = lVar2 + 1;
} while (lVar2 != 3);
}
else {
uVar1 = *(ulong *)(type_traits + uVar1 * 0x38 + 0x18);
lVar2 = -4;
do {
uVar1 = uVar1 + (*(long *)(param_1 + lVar2 * 2 + 0xc) + -1) *
*(long *)(param_1 + lVar2 * 2 + 0x14);
lVar2 = lVar2 + 1;
} while (lVar2 != 0);
}
return uVar1;
}
|
|
10,771 |
ggml_nbytes
|
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
|
size_t ggml_nbytes(const struct ggml_tensor * tensor) {
size_t nbytes;
const size_t blck_size = ggml_blck_size(tensor->type);
if (blck_size == 1) {
nbytes = ggml_type_size(tensor->type);
for (int i = 0; i < GGML_MAX_DIMS; ++i) {
nbytes += (tensor->ne[i] - 1)*tensor->nb[i];
}
}
else {
nbytes = tensor->ne[0]*tensor->nb[0]/blck_size;
for (int i = 1; i < GGML_MAX_DIMS; ++i) {
nbytes += (tensor->ne[i] - 1)*tensor->nb[i];
}
}
return nbytes;
}
|
O3
|
c
|
ggml_nbytes:
movl (%rdi), %eax
movl $0x5f000003, %ecx # imm = 0x5F000003
btq %rax, %rcx
jb 0x19dfe
imulq $0x38, %rax, %rsi
leaq 0x52fcf(%rip), %r8 # 0x6cda0
movq 0x30(%rdi), %rax
imulq 0x10(%rdi), %rax
xorl %ecx, %ecx
xorl %edx, %edx
divq 0x8(%rsi,%r8)
movq 0x18(%rdi,%rcx,8), %rdx
decq %rdx
imulq 0x38(%rdi,%rcx,8), %rdx
addq %rdx, %rax
incq %rcx
cmpq $0x3, %rcx
jne 0x19de3
retq
imulq $0x38, %rax, %rax
leaq 0x52f97(%rip), %rcx # 0x6cda0
movq 0x18(%rax,%rcx), %xmm0
movq $-0x4, %rax
pcmpeqd %xmm1, %xmm1
movdqu 0x30(%rdi,%rax,8), %xmm2
paddq %xmm1, %xmm2
movdqu 0x50(%rdi,%rax,8), %xmm3
movdqa %xmm3, %xmm4
psrlq $0x20, %xmm4
pmuludq %xmm2, %xmm4
movdqa %xmm2, %xmm5
psrlq $0x20, %xmm5
pmuludq %xmm3, %xmm5
paddq %xmm4, %xmm5
psllq $0x20, %xmm5
pmuludq %xmm3, %xmm2
paddq %xmm2, %xmm0
paddq %xmm5, %xmm0
addq $0x2, %rax
jne 0x19e1a
pshufd $0xee, %xmm0, %xmm1 # xmm1 = xmm0[2,3,2,3]
paddq %xmm0, %xmm1
movq %xmm1, %rax
retq
|
ggml_nbytes:
mov eax, [rdi]
mov ecx, 5F000003h
bt rcx, rax
jb short loc_19DFE
imul rsi, rax, 38h ; '8'
lea r8, type_traits
mov rax, [rdi+30h]
imul rax, [rdi+10h]
xor ecx, ecx
xor edx, edx
div qword ptr [rsi+r8+8]
loc_19DE3:
mov rdx, [rdi+rcx*8+18h]
dec rdx
imul rdx, [rdi+rcx*8+38h]
add rax, rdx
inc rcx
cmp rcx, 3
jnz short loc_19DE3
retn
loc_19DFE:
imul rax, 38h ; '8'
lea rcx, type_traits
movq xmm0, qword ptr [rax+rcx+18h]
mov rax, 0FFFFFFFFFFFFFFFCh
pcmpeqd xmm1, xmm1
loc_19E1A:
movdqu xmm2, xmmword ptr [rdi+rax*8+30h]
paddq xmm2, xmm1
movdqu xmm3, xmmword ptr [rdi+rax*8+50h]
movdqa xmm4, xmm3
psrlq xmm4, 20h ; ' '
pmuludq xmm4, xmm2
movdqa xmm5, xmm2
psrlq xmm5, 20h ; ' '
pmuludq xmm5, xmm3
paddq xmm5, xmm4
psllq xmm5, 20h ; ' '
pmuludq xmm2, xmm3
paddq xmm0, xmm2
paddq xmm0, xmm5
add rax, 2
jnz short loc_19E1A
pshufd xmm1, xmm0, 0EEh
paddq xmm1, xmm0
movq rax, xmm1
retn
|
unsigned long long ggml_nbytes(unsigned int *a1)
{
unsigned long long v1; // rax
long long v2; // rcx
long long v3; // rcx
unsigned long long result; // rax
__m128i v5; // xmm0
long long v6; // rax
__m128i v7; // xmm2
__m128i v8; // xmm3
v1 = *a1;
v2 = 1593835523LL;
if ( _bittest64(&v2, v1) )
{
v5 = _mm_loadl_epi64((const __m128i *)&(&type_traits)[7 * v1 + 3]);
v6 = -4LL;
do
{
v7 = _mm_add_epi64(_mm_loadu_si128((const __m128i *)&a1[2 * v6 + 12]), (__m128i)-1LL);
v8 = _mm_loadu_si128((const __m128i *)&a1[2 * v6 + 20]);
v5 = _mm_add_epi64(
_mm_add_epi64(v5, _mm_mul_epu32(v7, v8)),
_mm_slli_epi64(
_mm_add_epi64(_mm_mul_epu32(_mm_srli_epi64(v7, 0x20u), v8), _mm_mul_epu32(_mm_srli_epi64(v8, 0x20u), v7)),
0x20u));
v6 += 2LL;
}
while ( v6 );
return _mm_add_epi64(_mm_shuffle_epi32(v5, 238), v5).m128i_u64[0];
}
else
{
v3 = 0LL;
result = *((_QWORD *)a1 + 2) * *((_QWORD *)a1 + 6) / (unsigned long long)(&type_traits)[7 * v1 + 1];
do
{
result += *(_QWORD *)&a1[2 * v3 + 14] * (*(_QWORD *)&a1[2 * v3 + 6] - 1LL);
++v3;
}
while ( v3 != 3 );
}
return result;
}
|
ggml_nbytes:
MOV EAX,dword ptr [RDI]
MOV ECX,0x5f000003
BT RCX,RAX
JC 0x00119dfe
IMUL RSI,RAX,0x38
LEA R8,[0x16cda0]
MOV RAX,qword ptr [RDI + 0x30]
IMUL RAX,qword ptr [RDI + 0x10]
XOR ECX,ECX
XOR EDX,EDX
DIV qword ptr [RSI + R8*0x1 + 0x8]
LAB_00119de3:
MOV RDX,qword ptr [RDI + RCX*0x8 + 0x18]
DEC RDX
IMUL RDX,qword ptr [RDI + RCX*0x8 + 0x38]
ADD RAX,RDX
INC RCX
CMP RCX,0x3
JNZ 0x00119de3
RET
LAB_00119dfe:
IMUL RAX,RAX,0x38
LEA RCX,[0x16cda0]
MOVQ XMM0,qword ptr [RAX + RCX*0x1 + 0x18]
MOV RAX,-0x4
PCMPEQD XMM1,XMM1
LAB_00119e1a:
MOVDQU XMM2,xmmword ptr [RDI + RAX*0x8 + 0x30]
PADDQ XMM2,XMM1
MOVDQU XMM3,xmmword ptr [RDI + RAX*0x8 + 0x50]
MOVDQA XMM4,XMM3
PSRLQ XMM4,0x20
PMULUDQ XMM4,XMM2
MOVDQA XMM5,XMM2
PSRLQ XMM5,0x20
PMULUDQ XMM5,XMM3
PADDQ XMM5,XMM4
PSLLQ XMM5,0x20
PMULUDQ XMM2,XMM3
PADDQ XMM0,XMM2
PADDQ XMM0,XMM5
ADD RAX,0x2
JNZ 0x00119e1a
PSHUFD XMM1,XMM0,0xee
PADDQ XMM1,XMM0
MOVQ RAX,XMM1
RET
|
ulong ggml_nbytes(uint *param_1)
{
ulong uVar1;
ulong uVar2;
long lVar3;
long lVar4;
long lVar5;
ulong uVar6;
ulong uVar7;
uVar2 = (ulong)*param_1;
if ((0x5f000003UL >> (uVar2 & 0x3f) & 1) == 0) {
lVar4 = 0;
uVar2 = (ulong)(*(long *)(param_1 + 0xc) * *(long *)(param_1 + 4)) /
*(ulong *)(type_traits + uVar2 * 0x38 + 8);
do {
uVar2 = uVar2 + (*(long *)(param_1 + lVar4 * 2 + 6) + -1) *
*(long *)(param_1 + lVar4 * 2 + 0xe);
lVar4 = lVar4 + 1;
} while (lVar4 != 3);
return uVar2;
}
lVar4 = *(long *)(type_traits + uVar2 * 0x38 + 0x18);
lVar5 = 0;
lVar3 = -4;
do {
uVar6 = *(long *)(param_1 + lVar3 * 2 + 0xc) - 1;
uVar7 = *(long *)(param_1 + lVar3 * 2 + 0xc + 2) - 1;
uVar2 = *(ulong *)(param_1 + lVar3 * 2 + 0x14);
uVar1 = *(ulong *)((long)(param_1 + lVar3 * 2 + 0x14) + 8);
lVar4 = lVar4 + (uVar6 & 0xffffffff) * (uVar2 & 0xffffffff) +
((uVar6 >> 0x20) * (uVar2 & 0xffffffff) + (uVar2 >> 0x20) * (uVar6 & 0xffffffff) << 0x20
);
lVar5 = lVar5 + (uVar7 & 0xffffffff) * (uVar1 & 0xffffffff) +
((uVar7 >> 0x20) * (uVar1 & 0xffffffff) + (uVar1 >> 0x20) * (uVar7 & 0xffffffff) << 0x20
);
lVar3 = lVar3 + 2;
} while (lVar3 != 0);
return lVar5 + lVar4;
}
|
|
10,772 |
mi_read_dynamic_record
|
eloqsql/storage/myisam/mi_dynrec.c
|
int _mi_read_dynamic_record(MI_INFO *info, my_off_t filepos, uchar *buf)
{
int block_of_record;
uint b_type,UNINIT_VAR(left_length);
uchar *UNINIT_VAR(to);
MI_BLOCK_INFO block_info;
File file;
DBUG_ENTER("mi_read_dynamic_record");
if (filepos != HA_OFFSET_ERROR)
{
file=info->dfile;
block_of_record= 0; /* First block of record is numbered as zero. */
block_info.second_read= 0;
do
{
/* A corrupted table can have wrong pointers. (Bug# 19835) */
if (filepos == HA_OFFSET_ERROR)
goto panic;
if (info->opt_flag & WRITE_CACHE_USED &&
info->rec_cache.pos_in_file < filepos + MI_BLOCK_INFO_HEADER_LENGTH &&
flush_io_cache(&info->rec_cache))
goto err;
info->rec_cache.seek_not_done=1;
if ((b_type= _mi_get_block_info(&block_info, file, filepos))
& (BLOCK_DELETED | BLOCK_ERROR | BLOCK_SYNC_ERROR |
BLOCK_FATAL_ERROR))
{
if (b_type & (BLOCK_SYNC_ERROR | BLOCK_DELETED))
my_errno=HA_ERR_RECORD_DELETED;
goto err;
}
if (block_of_record++ == 0) /* First block */
{
if (block_info.rec_len > (uint) info->s->base.max_pack_length)
goto panic;
if (info->s->base.blobs)
{
if (!(to=mi_alloc_rec_buff(info, block_info.rec_len,
&info->rec_buff)))
goto err;
}
else
to= info->rec_buff;
left_length=block_info.rec_len;
}
if (left_length < block_info.data_len || ! block_info.data_len)
goto panic; /* Wrong linked record */
/* copy information that is already read */
{
uint offset= (uint) (block_info.filepos - filepos);
uint prefetch_len= (sizeof(block_info.header) - offset);
filepos+= sizeof(block_info.header);
if (prefetch_len > block_info.data_len)
prefetch_len= block_info.data_len;
if (prefetch_len)
{
memcpy((uchar*) to, block_info.header + offset, prefetch_len);
block_info.data_len-= prefetch_len;
left_length-= prefetch_len;
to+= prefetch_len;
}
}
/* read rest of record from file */
if (block_info.data_len)
{
if (info->opt_flag & WRITE_CACHE_USED &&
info->rec_cache.pos_in_file < filepos + block_info.data_len &&
flush_io_cache(&info->rec_cache))
goto err;
/*
What a pity that this method is not called 'file_pread' and that
there is no equivalent without seeking. We are at the right
position already. :(
*/
if (info->s->file_read(info, (uchar*) to, block_info.data_len,
filepos, MYF(MY_NABP)))
goto panic;
left_length-=block_info.data_len;
to+=block_info.data_len;
}
filepos= block_info.next_filepos;
} while (left_length);
info->update|= HA_STATE_AKTIV; /* We have a aktive record */
fast_mi_writeinfo(info);
DBUG_RETURN(_mi_rec_unpack(info,buf,info->rec_buff,block_info.rec_len) !=
MY_FILE_ERROR ? 0 : -1);
}
fast_mi_writeinfo(info);
DBUG_RETURN(-1); /* Wrong data to read */
panic:
my_errno=HA_ERR_WRONG_IN_RECORD;
err:
(void) _mi_writeinfo(info,0);
DBUG_RETURN(-1);
}
|
O3
|
c
|
mi_read_dynamic_record:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdi, %r13
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
cmpq $-0x1, %rsi
je 0x7a605
movq %rsi, %r14
movq %rdx, -0xb8(%rbp)
movl 0x1c0(%r13), %r15d
leaq -0x88(%rbp), %rax
movl $0x0, 0x50(%rax)
leaq 0x220(%r13), %rax
movq %rax, -0xa0(%rbp)
leaq 0x120(%r13), %rax
movq %rax, -0xb0(%rbp)
xorl %ebx, %ebx
movl %r15d, -0xa4(%rbp)
movq %r13, -0xc0(%rbp)
movl $0x7f, -0x94(%rbp)
cmpq $-0x1, %r14
je 0x7a632
testb $0x10, 0x1c8(%r13)
je 0x7a430
leaq 0x14(%r14), %rax
movq -0xa0(%rbp), %rcx
cmpq %rax, (%rcx)
jae 0x7a430
movq -0xa0(%rbp), %rdi
movl $0x1, %esi
callq 0x967f1
testl %eax, %eax
jne 0x7a63f
movl $0x1, 0x300(%r13)
leaq -0x88(%rbp), %rdi
movl %r15d, %esi
movq %r14, %rdx
callq 0x796a3
cmpl $0x4, %eax
jae 0x7a624
subl $0x1, %ebx
jae 0x7a4b4
movq -0x70(%rbp), %r12
movq (%r13), %rax
movl 0x158(%rax), %ecx
cmpq %rcx, %r12
ja 0x7a632
cmpl $0x0, 0x188(%rax)
je 0x7a4a3
movq %r13, %rdi
movq %r12, %rsi
movq -0xb0(%rbp), %rdx
callq 0x80f8d
movq %rax, -0x90(%rbp)
testq %rax, %rax
je 0x7a63f
movq -0x70(%rbp), %r12
jmp 0x7a4b4
movq -0xb0(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x90(%rbp)
movl %r12d, %eax
movq -0x68(%rbp), %rdx
leaq -0x1(%rdx), %rcx
cmpq %rax, %rcx
jae 0x7a632
movl %ebx, -0x98(%rbp)
movq -0x50(%rbp), %rax
subq %r14, %rax
movl $0x14, %ecx
subl %eax, %ecx
cmpq %rcx, %rdx
movl %edx, %ebx
cmovael %ecx, %ebx
testl %ebx, %ebx
je 0x7a53a
movl %eax, %eax
leaq (%rax,%rbp), %rsi
addq $-0x88, %rsi
movl %ebx, %r13d
movq -0x90(%rbp), %r15
movq %r15, %rdi
movq %r13, %rdx
callq 0x29080
movq -0x68(%rbp), %rdx
subl %ebx, %r12d
addq %r13, %r15
movq %r15, -0x90(%rbp)
subq %r13, %rdx
movq -0xc0(%rbp), %r13
movl -0xa4(%rbp), %r15d
movq %rdx, -0x68(%rbp)
movl -0x98(%rbp), %ebx
jne 0x7a540
jmp 0x7a5af
movl -0x98(%rbp), %ebx
addq $0x14, %r14
testb $0x10, 0x1c8(%r13)
je 0x7a57b
leaq (%rdx,%r14), %rax
movq -0xa0(%rbp), %rcx
cmpq %rax, (%rcx)
jae 0x7a57b
movq -0xa0(%rbp), %rdi
movl $0x1, %esi
callq 0x967f1
testl %eax, %eax
jne 0x7a63f
movq -0x68(%rbp), %rdx
movq (%r13), %rax
movl $0x4, %r8d
movq %r13, %rdi
movq -0x90(%rbp), %rsi
movq %r14, %rcx
callq *0x2e0(%rax)
testq %rax, %rax
jne 0x7a632
movq -0x68(%rbp), %rax
subl %eax, %r12d
addq %rax, -0x90(%rbp)
movq -0x48(%rbp), %r14
testl %r12d, %r12d
jne 0x7a3e9
orb $0x2, 0x1d0(%r13)
movq (%r13), %rax
cmpl $0x0, 0x368(%rax)
jne 0x7a5db
movq %r13, %rdi
xorl %esi, %esi
callq 0x7dba6
movq 0x120(%r13), %rdx
movq -0x70(%rbp), %rcx
movq %r13, %rdi
movq -0xb8(%rbp), %rsi
callq 0x79f5d
xorl %r14d, %r14d
cmpq $-0x1, %rax
sete %r14b
negl %r14d
jmp 0x7a64f
movq (%r13), %rax
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
cmpl $0x0, 0x368(%rax)
jne 0x7a64f
movq %r13, %rdi
xorl %esi, %esi
callq 0x7dba6
jmp 0x7a64f
movl $0x86, -0x94(%rbp)
testb $0x14, %al
je 0x7a63f
callq 0xa2f56
movl -0x94(%rbp), %ecx
movl %ecx, (%rax)
movq %r13, %rdi
xorl %esi, %esi
callq 0x7dba6
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x7a673
movl %r14d, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x29250
|
_mi_read_dynamic_record:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r13, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
cmp rsi, 0FFFFFFFFFFFFFFFFh
jz loc_7A605
mov r14, rsi
mov [rbp+var_B8], rdx
mov r15d, [r13+1C0h]
lea rax, [rbp+var_88]
mov dword ptr [rax+50h], 0
lea rax, [r13+220h]
mov [rbp+var_A0], rax
lea rax, [r13+120h]
mov [rbp+var_B0], rax
xor ebx, ebx
mov [rbp+var_A4], r15d
mov [rbp+var_C0], r13
loc_7A3E9:
mov [rbp+var_94], 7Fh
cmp r14, 0FFFFFFFFFFFFFFFFh
jz loc_7A632
test byte ptr [r13+1C8h], 10h
jz short loc_7A430
lea rax, [r14+14h]
mov rcx, [rbp+var_A0]
cmp [rcx], rax
jnb short loc_7A430
mov rdi, [rbp+var_A0]
mov esi, 1
call my_b_flush_io_cache
test eax, eax
jnz loc_7A63F
loc_7A430:
mov dword ptr [r13+300h], 1
lea rdi, [rbp+var_88]
mov esi, r15d
mov rdx, r14
call _mi_get_block_info
cmp eax, 4
jnb loc_7A624
sub ebx, 1
jnb short loc_7A4B4
mov r12, [rbp+var_70]
mov rax, [r13+0]
mov ecx, [rax+158h]
cmp r12, rcx
ja loc_7A632
cmp dword ptr [rax+188h], 0
jz short loc_7A4A3
mov rdi, r13
mov rsi, r12
mov rdx, [rbp+var_B0]
call mi_alloc_rec_buff
mov [rbp+var_90], rax
test rax, rax
jz loc_7A63F
mov r12, [rbp+var_70]
jmp short loc_7A4B4
loc_7A4A3:
mov rax, [rbp+var_B0]
mov rax, [rax]
mov [rbp+var_90], rax
loc_7A4B4:
mov eax, r12d
mov rdx, [rbp+var_68]
lea rcx, [rdx-1]
cmp rcx, rax
jnb loc_7A632
mov [rbp+var_98], ebx
mov rax, [rbp+var_50]
sub rax, r14
mov ecx, 14h
sub ecx, eax
cmp rdx, rcx
mov ebx, edx
cmovnb ebx, ecx
test ebx, ebx
jz short loc_7A53A
mov eax, eax
lea rsi, [rax+rbp]
add rsi, 0FFFFFFFFFFFFFF78h
mov r13d, ebx
mov r15, [rbp+var_90]
mov rdi, r15
mov rdx, r13
call _memcpy
mov rdx, [rbp+var_68]
sub r12d, ebx
add r15, r13
mov [rbp+var_90], r15
sub rdx, r13
mov r13, [rbp+var_C0]
mov r15d, [rbp+var_A4]
mov [rbp+var_68], rdx
mov ebx, [rbp+var_98]
jnz short loc_7A540
jmp short loc_7A5AF
loc_7A53A:
mov ebx, [rbp+var_98]
loc_7A540:
add r14, 14h
test byte ptr [r13+1C8h], 10h
jz short loc_7A57B
lea rax, [rdx+r14]
mov rcx, [rbp+var_A0]
cmp [rcx], rax
jnb short loc_7A57B
mov rdi, [rbp+var_A0]
mov esi, 1
call my_b_flush_io_cache
test eax, eax
jnz loc_7A63F
mov rdx, [rbp+var_68]
loc_7A57B:
mov rax, [r13+0]
mov r8d, 4
mov rdi, r13
mov rsi, [rbp+var_90]
mov rcx, r14
call qword ptr [rax+2E0h]
test rax, rax
jnz loc_7A632
mov rax, [rbp+var_68]
sub r12d, eax
add [rbp+var_90], rax
loc_7A5AF:
mov r14, [rbp+var_48]
test r12d, r12d
jnz loc_7A3E9
or byte ptr [r13+1D0h], 2
mov rax, [r13+0]
cmp dword ptr [rax+368h], 0
jnz short loc_7A5DB
mov rdi, r13
xor esi, esi
call _mi_writeinfo
loc_7A5DB:
mov rdx, [r13+120h]
mov rcx, [rbp+var_70]
mov rdi, r13
mov rsi, [rbp+var_B8]
call _mi_rec_unpack
xor r14d, r14d
cmp rax, 0FFFFFFFFFFFFFFFFh
setz r14b
neg r14d
jmp short loc_7A64F
loc_7A605:
mov rax, [r13+0]
mov r14d, 0FFFFFFFFh
cmp dword ptr [rax+368h], 0
jnz short loc_7A64F
mov rdi, r13
xor esi, esi
call _mi_writeinfo
jmp short loc_7A64F
loc_7A624:
mov [rbp+var_94], 86h
test al, 14h
jz short loc_7A63F
loc_7A632:
call _my_thread_var
mov ecx, [rbp+var_94]
mov [rax], ecx
loc_7A63F:
mov rdi, r13
xor esi, esi
call _mi_writeinfo
mov r14d, 0FFFFFFFFh
loc_7A64F:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_7A673
mov eax, r14d
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_7A673:
call ___stack_chk_fail
|
long long mi_read_dynamic_record(_DWORD *a1, long long a2, _WORD *a3)
{
unsigned int v3; // r12d
long long v4; // r13
long long v5; // r14
unsigned int v6; // r15d
int v7; // ebx
unsigned int block_info; // eax
bool v9; // cf
int v10; // ebx
unsigned long long v11; // rdx
unsigned int v12; // ebx
bool v13; // zf
long long v14; // r14
unsigned int v15; // r14d
_DWORD *v17; // [rsp+0h] [rbp-C0h]
long long *v19; // [rsp+10h] [rbp-B0h]
unsigned int v20; // [rsp+1Ch] [rbp-A4h]
_QWORD *v21; // [rsp+20h] [rbp-A0h]
int v22; // [rsp+28h] [rbp-98h]
int v23; // [rsp+2Ch] [rbp-94h]
long long v24; // [rsp+30h] [rbp-90h]
_BYTE v25[24]; // [rsp+38h] [rbp-88h] BYREF
unsigned long long v26; // [rsp+50h] [rbp-70h]
unsigned long long v27; // [rsp+58h] [rbp-68h]
long long v28; // [rsp+70h] [rbp-50h]
long long v29; // [rsp+78h] [rbp-48h]
int v30; // [rsp+88h] [rbp-38h]
unsigned long long v31; // [rsp+90h] [rbp-30h]
v4 = (long long)a1;
v31 = __readfsqword(0x28u);
if ( a2 != -1 )
{
v5 = a2;
v6 = a1[112];
v30 = 0;
v21 = a1 + 136;
v19 = (long long *)(a1 + 72);
v7 = 0;
v20 = v6;
v17 = a1;
while ( 1 )
{
v23 = 127;
if ( v5 == -1 )
goto LABEL_34;
if ( (*(_BYTE *)(v4 + 456) & 0x10) != 0
&& *v21 < (unsigned long long)(v5 + 20)
&& (unsigned int)my_b_flush_io_cache(v21, 1LL) )
{
goto LABEL_35;
}
*(_DWORD *)(v4 + 768) = 1;
a1 = v25;
block_info = mi_get_block_info((long long)v25, v6, v5);
if ( block_info >= 4 )
{
v23 = 134;
if ( (block_info & 0x14) != 0 )
LABEL_34:
*(_DWORD *)my_thread_var(a1) = v23;
LABEL_35:
mi_writeinfo(v4, 0LL);
return (unsigned int)-1;
}
v9 = v7 == 0;
v10 = v7 - 1;
if ( v9 )
{
v3 = v26;
if ( v26 > *(unsigned int *)(*(_QWORD *)v4 + 344LL) )
goto LABEL_34;
if ( *(_DWORD *)(*(_QWORD *)v4 + 392LL) )
{
a1 = (_DWORD *)v4;
v24 = mi_alloc_rec_buff(v4, v26, v19);
if ( !v24 )
goto LABEL_35;
v3 = v26;
}
else
{
v24 = *v19;
}
}
v11 = v27;
if ( v27 - 1 >= v3 )
goto LABEL_34;
v22 = v10;
v12 = v27;
if ( v27 >= (unsigned int)(20 - (v28 - v5)) )
v12 = 20 - (v28 - v5);
if ( !v12 )
break;
a1 = (_DWORD *)v24;
memcpy(v24, &v25[(unsigned int)(v28 - v5)], v12);
v3 -= v12;
v24 += v12;
v11 = v27 - v12;
v13 = v27 == v12;
v4 = (long long)v17;
v6 = v20;
v27 = v11;
v7 = v22;
if ( !v13 )
goto LABEL_21;
LABEL_27:
v5 = v29;
if ( !v3 )
{
*(_BYTE *)(v4 + 464) |= 2u;
if ( !*(_DWORD *)(*(_QWORD *)v4 + 872LL) )
mi_writeinfo(v4, 0LL);
return (unsigned int)-(mi_rec_unpack(v4, a3, *(unsigned __int8 **)(v4 + 288), v26) == -1);
}
}
v7 = v22;
LABEL_21:
v14 = v5 + 20;
if ( (*(_BYTE *)(v4 + 456) & 0x10) != 0 && *v21 < v11 + v14 )
{
if ( (unsigned int)my_b_flush_io_cache(v21, 1LL) )
goto LABEL_35;
v11 = v27;
}
a1 = (_DWORD *)v4;
if ( (*(long long ( **)(long long, long long, unsigned long long, long long, long long))(*(_QWORD *)v4 + 736LL))(
v4,
v24,
v11,
v14,
4LL) )
{
goto LABEL_34;
}
v3 -= v27;
v24 += v27;
goto LABEL_27;
}
v15 = -1;
if ( !*(_DWORD *)(*(_QWORD *)a1 + 872LL) )
mi_writeinfo(a1, 0LL);
return v15;
}
|
_mi_read_dynamic_record:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R13,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
CMP RSI,-0x1
JZ 0x0017a605
MOV R14,RSI
MOV qword ptr [RBP + -0xb8],RDX
MOV R15D,dword ptr [R13 + 0x1c0]
LEA RAX,[RBP + -0x88]
MOV dword ptr [RAX + 0x50],0x0
LEA RAX,[R13 + 0x220]
MOV qword ptr [RBP + -0xa0],RAX
LEA RAX,[R13 + 0x120]
MOV qword ptr [RBP + -0xb0],RAX
XOR EBX,EBX
MOV dword ptr [RBP + -0xa4],R15D
MOV qword ptr [RBP + -0xc0],R13
LAB_0017a3e9:
MOV dword ptr [RBP + -0x94],0x7f
CMP R14,-0x1
JZ 0x0017a632
TEST byte ptr [R13 + 0x1c8],0x10
JZ 0x0017a430
LEA RAX,[R14 + 0x14]
MOV RCX,qword ptr [RBP + -0xa0]
CMP qword ptr [RCX],RAX
JNC 0x0017a430
MOV RDI,qword ptr [RBP + -0xa0]
MOV ESI,0x1
CALL 0x001967f1
TEST EAX,EAX
JNZ 0x0017a63f
LAB_0017a430:
MOV dword ptr [R13 + 0x300],0x1
LEA RDI,[RBP + -0x88]
MOV ESI,R15D
MOV RDX,R14
CALL 0x001796a3
CMP EAX,0x4
JNC 0x0017a624
SUB EBX,0x1
JNC 0x0017a4b4
MOV R12,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [R13]
MOV ECX,dword ptr [RAX + 0x158]
CMP R12,RCX
JA 0x0017a632
CMP dword ptr [RAX + 0x188],0x0
JZ 0x0017a4a3
MOV RDI,R13
MOV RSI,R12
MOV RDX,qword ptr [RBP + -0xb0]
CALL 0x00180f8d
MOV qword ptr [RBP + -0x90],RAX
TEST RAX,RAX
JZ 0x0017a63f
MOV R12,qword ptr [RBP + -0x70]
JMP 0x0017a4b4
LAB_0017a4a3:
MOV RAX,qword ptr [RBP + -0xb0]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x90],RAX
LAB_0017a4b4:
MOV EAX,R12D
MOV RDX,qword ptr [RBP + -0x68]
LEA RCX,[RDX + -0x1]
CMP RCX,RAX
JNC 0x0017a632
MOV dword ptr [RBP + -0x98],EBX
MOV RAX,qword ptr [RBP + -0x50]
SUB RAX,R14
MOV ECX,0x14
SUB ECX,EAX
CMP RDX,RCX
MOV EBX,EDX
CMOVNC EBX,ECX
TEST EBX,EBX
JZ 0x0017a53a
MOV EAX,EAX
LEA RSI,[RAX + RBP*0x1]
ADD RSI,-0x88
MOV R13D,EBX
MOV R15,qword ptr [RBP + -0x90]
MOV RDI,R15
MOV RDX,R13
CALL 0x00129080
MOV RDX,qword ptr [RBP + -0x68]
SUB R12D,EBX
ADD R15,R13
MOV qword ptr [RBP + -0x90],R15
SUB RDX,R13
MOV R13,qword ptr [RBP + -0xc0]
MOV R15D,dword ptr [RBP + -0xa4]
MOV qword ptr [RBP + -0x68],RDX
MOV EBX,dword ptr [RBP + -0x98]
JNZ 0x0017a540
JMP 0x0017a5af
LAB_0017a53a:
MOV EBX,dword ptr [RBP + -0x98]
LAB_0017a540:
ADD R14,0x14
TEST byte ptr [R13 + 0x1c8],0x10
JZ 0x0017a57b
LEA RAX,[RDX + R14*0x1]
MOV RCX,qword ptr [RBP + -0xa0]
CMP qword ptr [RCX],RAX
JNC 0x0017a57b
MOV RDI,qword ptr [RBP + -0xa0]
MOV ESI,0x1
CALL 0x001967f1
TEST EAX,EAX
JNZ 0x0017a63f
MOV RDX,qword ptr [RBP + -0x68]
LAB_0017a57b:
MOV RAX,qword ptr [R13]
MOV R8D,0x4
MOV RDI,R13
MOV RSI,qword ptr [RBP + -0x90]
MOV RCX,R14
CALL qword ptr [RAX + 0x2e0]
TEST RAX,RAX
JNZ 0x0017a632
MOV RAX,qword ptr [RBP + -0x68]
SUB R12D,EAX
ADD qword ptr [RBP + -0x90],RAX
LAB_0017a5af:
MOV R14,qword ptr [RBP + -0x48]
TEST R12D,R12D
JNZ 0x0017a3e9
OR byte ptr [R13 + 0x1d0],0x2
MOV RAX,qword ptr [R13]
CMP dword ptr [RAX + 0x368],0x0
JNZ 0x0017a5db
MOV RDI,R13
XOR ESI,ESI
CALL 0x0017dba6
LAB_0017a5db:
MOV RDX,qword ptr [R13 + 0x120]
MOV RCX,qword ptr [RBP + -0x70]
MOV RDI,R13
MOV RSI,qword ptr [RBP + -0xb8]
CALL 0x00179f5d
XOR R14D,R14D
CMP RAX,-0x1
SETZ R14B
NEG R14D
JMP 0x0017a64f
LAB_0017a605:
MOV RAX,qword ptr [R13]
MOV R14D,0xffffffff
CMP dword ptr [RAX + 0x368],0x0
JNZ 0x0017a64f
MOV RDI,R13
XOR ESI,ESI
CALL 0x0017dba6
JMP 0x0017a64f
LAB_0017a624:
MOV dword ptr [RBP + -0x94],0x86
TEST AL,0x14
JZ 0x0017a63f
LAB_0017a632:
CALL 0x001a2f56
MOV ECX,dword ptr [RBP + -0x94]
MOV dword ptr [RAX],ECX
LAB_0017a63f:
MOV RDI,R13
XOR ESI,ESI
CALL 0x0017dba6
MOV R14D,0xffffffff
LAB_0017a64f:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0017a673
MOV EAX,R14D
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0017a673:
CALL 0x00129250
|
int _mi_read_dynamic_record(long *param_1,long param_2,int8 param_3)
{
ulong *puVar1;
int iVar2;
uint uVar3;
uint uVar4;
long lVar5;
long lVar6;
int4 *puVar7;
uint uVar8;
int iVar9;
uint uVar10;
ulong unaff_R12;
ulong __n;
long in_FS_OFFSET;
bool bVar11;
int4 local_9c;
void *local_98;
int1 local_90 [24];
ulong local_78;
ulong local_70;
int8 local_58;
long local_50;
int4 local_40;
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
if (param_2 == -1) {
iVar9 = -1;
if (*(int *)(*param_1 + 0x368) == 0) {
_mi_writeinfo(param_1,0);
}
}
else {
lVar6 = param_1[0x38];
local_40 = 0;
puVar1 = (ulong *)(param_1 + 0x44);
iVar9 = 0;
do {
local_9c = 0x7f;
if (param_2 == -1) goto LAB_0017a632;
if ((((*(byte *)(param_1 + 0x39) & 0x10) != 0) && (*puVar1 < param_2 + 0x14U)) &&
(iVar2 = my_b_flush_io_cache(puVar1,1), iVar2 != 0)) {
LAB_0017a63f:
_mi_writeinfo(param_1,0);
iVar9 = -1;
goto LAB_0017a64f;
}
*(int4 *)(param_1 + 0x60) = 1;
uVar3 = _mi_get_block_info(local_90,(int)lVar6,param_2);
if (3 < uVar3) {
local_9c = 0x86;
if ((uVar3 & 0x14) != 0) goto LAB_0017a632;
goto LAB_0017a63f;
}
bVar11 = iVar9 == 0;
iVar9 = iVar9 + -1;
if (bVar11) {
if (*(uint *)(*param_1 + 0x158) < local_78) goto LAB_0017a632;
if (*(int *)(*param_1 + 0x188) == 0) {
local_98 = (void *)param_1[0x24];
unaff_R12 = local_78;
}
else {
local_98 = (void *)mi_alloc_rec_buff(param_1,local_78,param_1 + 0x24);
unaff_R12 = local_78;
if (local_98 == (void *)0x0) goto LAB_0017a63f;
}
}
uVar3 = (uint)unaff_R12;
if ((unaff_R12 & 0xffffffff) <= local_70 - 1) {
LAB_0017a632:
puVar7 = (int4 *)_my_thread_var();
*puVar7 = local_9c;
goto LAB_0017a63f;
}
uVar4 = (int)local_58 - (int)param_2;
uVar8 = 0x14 - uVar4;
uVar10 = (uint)local_70;
if (uVar8 <= local_70) {
uVar10 = uVar8;
}
if (uVar10 == 0) {
LAB_0017a540:
if ((((*(byte *)(param_1 + 0x39) & 0x10) != 0) && (*puVar1 < local_70 + param_2 + 0x14)) &&
(iVar2 = my_b_flush_io_cache(puVar1,1), iVar2 != 0)) goto LAB_0017a63f;
lVar5 = (**(code **)(*param_1 + 0x2e0))(param_1,local_98,local_70,param_2 + 0x14,4);
if (lVar5 != 0) goto LAB_0017a632;
uVar3 = uVar3 - (int)local_70;
local_98 = (void *)((long)local_98 + local_70);
}
else {
__n = (ulong)uVar10;
memcpy(local_98,local_90 + uVar4,__n);
uVar3 = uVar3 - uVar10;
local_98 = (void *)((long)local_98 + __n);
local_70 = local_70 - __n;
if (local_70 != 0) goto LAB_0017a540;
}
unaff_R12 = (ulong)uVar3;
param_2 = local_50;
} while (uVar3 != 0);
*(byte *)(param_1 + 0x3a) = *(byte *)(param_1 + 0x3a) | 2;
if (*(int *)(*param_1 + 0x368) == 0) {
_mi_writeinfo(param_1,0);
}
lVar6 = _mi_rec_unpack(param_1,param_3,param_1[0x24],local_78);
iVar9 = -(uint)(lVar6 == -1);
}
LAB_0017a64f:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return iVar9;
}
|
|
10,773 |
binding_system_is_binding_captured
|
tsotchke[P]eshkol/src/frontend/binding/lambda/binding_lambda.c
|
bool binding_system_is_binding_captured(BindingSystem* system, uint64_t binding_id) {
assert(system != NULL);
// Check if is_captured array exists
if (!system->binding_table.is_captured) {
return false;
}
// Find the binding
for (size_t i = 0; i < system->binding_table.count; i++) {
if (system->binding_table.binding_ids[i] == binding_id) {
return system->binding_table.is_captured[i];
}
}
return false;
}
|
O2
|
c
|
binding_system_is_binding_captured:
pushq %rax
testq %rdi, %rdi
je 0x13b07
movq 0x30(%rdi), %rax
testq %rax, %rax
je 0x13afe
movq 0x48(%rdi), %rdx
xorl %ecx, %ecx
cmpq %rcx, %rdx
je 0x13afe
movq 0x18(%rdi), %r8
cmpq %rsi, (%r8,%rcx,8)
je 0x13b02
incq %rcx
jmp 0x13aea
xorl %eax, %eax
jmp 0x13b05
movb (%rax,%rcx), %al
popq %rcx
retq
leaq 0x5923(%rip), %rdi # 0x19431
leaq 0xb7ec(%rip), %rsi # 0x1f301
leaq 0xb8d5(%rip), %rcx # 0x1f3f1
movl $0x9b, %edx
callq 0x2180
|
binding_system_is_binding_captured:
push rax
test rdi, rdi
jz short loc_13B07
mov rax, [rdi+30h]
test rax, rax
jz short loc_13AFE
mov rdx, [rdi+48h]
xor ecx, ecx
loc_13AEA:
cmp rdx, rcx
jz short loc_13AFE
mov r8, [rdi+18h]
cmp [r8+rcx*8], rsi
jz short loc_13B02
inc rcx
jmp short loc_13AEA
loc_13AFE:
xor eax, eax
jmp short loc_13B05
loc_13B02:
mov al, [rax+rcx]
loc_13B05:
pop rcx
retn
loc_13B07:
lea rdi, aSystemNull; "system != NULL"
lea rsi, aWorkspaceLlm4b_23; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBoolBindingSys_5; "_Bool binding_system_is_binding_capture"...
mov edx, 9Bh
call ___assert_fail
|
char binding_system_is_binding_captured(_QWORD *a1, long long a2)
{
long long v2; // rax
long long i; // rcx
if ( !a1 )
__assert_fail(
"system != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/lambda/binding_lambda.c",
155LL,
"_Bool binding_system_is_binding_captured(BindingSystem *, uint64_t)");
v2 = a1[6];
if ( v2 )
{
for ( i = 0LL; a1[9] != i; ++i )
{
if ( *(_QWORD *)(a1[3] + 8 * i) == a2 )
return *(_BYTE *)(v2 + i);
}
}
return 0;
}
|
binding_system_is_binding_captured:
PUSH RAX
TEST RDI,RDI
JZ 0x00113b07
MOV RAX,qword ptr [RDI + 0x30]
TEST RAX,RAX
JZ 0x00113afe
MOV RDX,qword ptr [RDI + 0x48]
XOR ECX,ECX
LAB_00113aea:
CMP RDX,RCX
JZ 0x00113afe
MOV R8,qword ptr [RDI + 0x18]
CMP qword ptr [R8 + RCX*0x8],RSI
JZ 0x00113b02
INC RCX
JMP 0x00113aea
LAB_00113afe:
XOR EAX,EAX
JMP 0x00113b05
LAB_00113b02:
MOV AL,byte ptr [RAX + RCX*0x1]
LAB_00113b05:
POP RCX
RET
LAB_00113b07:
LEA RDI,[0x119431]
LEA RSI,[0x11f301]
LEA RCX,[0x11f3f1]
MOV EDX,0x9b
CALL 0x00102180
|
int8 binding_system_is_binding_captured(long param_1,long param_2)
{
long lVar1;
long lVar2;
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("system != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/lambda/binding_lambda.c"
,0x9b,"_Bool binding_system_is_binding_captured(BindingSystem *, uint64_t)");
}
lVar1 = *(long *)(param_1 + 0x30);
if (lVar1 != 0) {
for (lVar2 = 0; *(long *)(param_1 + 0x48) != lVar2; lVar2 = lVar2 + 1) {
if (*(long *)(*(long *)(param_1 + 0x18) + lVar2 * 8) == param_2) {
return CONCAT71((int7)((ulong)lVar1 >> 8),*(int1 *)(lVar1 + lVar2));
}
}
}
return 0;
}
|
|
10,774 |
mi_mmap_pwrite
|
eloqsql/storage/myisam/mi_dynrec.c
|
size_t mi_mmap_pwrite(MI_INFO *info, const uchar *Buffer,
size_t Count, my_off_t offset, myf MyFlags)
{
DBUG_PRINT("info", ("mi_write with mmap %d\n", info->dfile));
if (info->s->concurrent_insert)
mysql_rwlock_rdlock(&info->s->mmap_lock);
/*
The following test may fail in the following cases:
- We failed to remap a memory area (fragmented memory?)
- This thread has done some writes, but not yet extended the
memory mapped area.
*/
if (info->s->mmaped_length >= offset + Count)
{
memcpy(info->s->file_map + offset, Buffer, Count);
if (info->s->concurrent_insert)
mysql_rwlock_unlock(&info->s->mmap_lock);
return 0;
}
else
{
info->s->nonmmaped_inserts++;
if (info->s->concurrent_insert)
mysql_rwlock_unlock(&info->s->mmap_lock);
return mysql_file_pwrite(info->dfile, Buffer, Count, offset, MyFlags);
}
}
|
O0
|
c
|
mi_mmap_pwrite:
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 %r8, -0x30(%rbp)
jmp 0xa6b7e
movq -0x10(%rbp), %rax
movq (%rax), %rax
cmpb $0x0, 0x384(%rax)
je 0xa6bad
movq -0x10(%rbp), %rax
movq (%rax), %rdi
addq $0x4e0, %rdi # imm = 0x4E0
leaq 0xb2e04(%rip), %rsi # 0x1599a7
movl $0xe3, %edx
callq 0xa6e30
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x4d0(%rax), %rax
movq -0x28(%rbp), %rcx
addq -0x20(%rbp), %rcx
cmpq %rcx, %rax
jb 0xa6c14
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x270(%rax), %rdi
addq -0x28(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x2a0b0
movq -0x10(%rbp), %rax
movq (%rax), %rax
cmpb $0x0, 0x384(%rax)
je 0xa6c0a
movq -0x10(%rbp), %rax
movq (%rax), %rdi
addq $0x4e0, %rdi # imm = 0x4E0
callq 0xa6ea0
movq $0x0, -0x8(%rbp)
jmp 0xa6c80
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x4d8(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x4d8(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
cmpb $0x0, 0x384(%rax)
je 0xa6c4d
movq -0x10(%rbp), %rax
movq (%rax), %rdi
addq $0x4e0, %rdi # imm = 0x4E0
callq 0xa6ea0
movq -0x10(%rbp), %rax
movl 0x1c0(%rax), %edx
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %r8
movq -0x28(%rbp), %r9
movq -0x30(%rbp), %rax
leaq 0xb2d39(%rip), %rdi # 0x1599a7
movl $0xf8, %esi
movq %rax, (%rsp)
callq 0xa7080
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
mi_mmap_pwrite:
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 [rbp+var_30], r8
jmp short $+2
loc_A6B7E:
mov rax, [rbp+var_10]
mov rax, [rax]
cmp byte ptr [rax+384h], 0
jz short loc_A6BAD
mov rax, [rbp+var_10]
mov rdi, [rax]
add rdi, 4E0h
lea rsi, aWorkspaceLlm4b_24; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 0E3h
call inline_mysql_rwlock_rdlock_3
loc_A6BAD:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+4D0h]
mov rcx, [rbp+var_28]
add rcx, [rbp+var_20]
cmp rax, rcx
jb short loc_A6C14
mov rax, [rbp+var_10]
mov rax, [rax]
mov rdi, [rax+270h]
add rdi, [rbp+var_28]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call _memcpy
mov rax, [rbp+var_10]
mov rax, [rax]
cmp byte ptr [rax+384h], 0
jz short loc_A6C0A
mov rax, [rbp+var_10]
mov rdi, [rax]
add rdi, 4E0h
call inline_mysql_rwlock_unlock_5
loc_A6C0A:
mov [rbp+var_8], 0
jmp short loc_A6C80
loc_A6C14:
mov rax, [rbp+var_10]
mov rax, [rax]
mov ecx, [rax+4D8h]
add ecx, 1
mov [rax+4D8h], ecx
mov rax, [rbp+var_10]
mov rax, [rax]
cmp byte ptr [rax+384h], 0
jz short loc_A6C4D
mov rax, [rbp+var_10]
mov rdi, [rax]
add rdi, 4E0h
call inline_mysql_rwlock_unlock_5
loc_A6C4D:
mov rax, [rbp+var_10]
mov edx, [rax+1C0h]
mov rcx, [rbp+var_18]
mov r8, [rbp+var_20]
mov r9, [rbp+var_28]
mov rax, [rbp+var_30]
lea rdi, aWorkspaceLlm4b_24; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 0F8h
mov [rsp+40h+var_40], rax
call inline_mysql_file_pwrite_0
mov [rbp+var_8], rax
loc_A6C80:
mov rax, [rbp+var_8]
add rsp, 40h
pop rbp
retn
|
long long mi_mmap_pwrite(_DWORD *a1, long long a2, long long a3, long long a4, long long a5)
{
if ( *(_BYTE *)(*(_QWORD *)a1 + 900LL) )
inline_mysql_rwlock_rdlock_3(
*(_QWORD *)a1 + 1248LL,
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_dynrec.c",
227LL);
if ( *(_QWORD *)(*(_QWORD *)a1 + 1232LL) < (unsigned long long)(a3 + a4) )
{
++*(_DWORD *)(*(_QWORD *)a1 + 1240LL);
if ( *(_BYTE *)(*(_QWORD *)a1 + 900LL) )
inline_mysql_rwlock_unlock_5(*(_QWORD *)a1 + 1248LL);
return inline_mysql_file_pwrite_0(
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_dynrec.c",
248,
a1[112],
a2,
a3,
a4,
a5);
}
else
{
memcpy(a4 + *(_QWORD *)(*(_QWORD *)a1 + 624LL), a2, a3);
if ( *(_BYTE *)(*(_QWORD *)a1 + 900LL) )
inline_mysql_rwlock_unlock_5(*(_QWORD *)a1 + 1248LL);
return 0LL;
}
}
|
mi_mmap_pwrite:
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 qword ptr [RBP + -0x30],R8
JMP 0x001a6b7e
LAB_001a6b7e:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
CMP byte ptr [RAX + 0x384],0x0
JZ 0x001a6bad
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
ADD RDI,0x4e0
LEA RSI,[0x2599a7]
MOV EDX,0xe3
CALL 0x001a6e30
LAB_001a6bad:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x4d0]
MOV RCX,qword ptr [RBP + -0x28]
ADD RCX,qword ptr [RBP + -0x20]
CMP RAX,RCX
JC 0x001a6c14
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x270]
ADD RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x0012a0b0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
CMP byte ptr [RAX + 0x384],0x0
JZ 0x001a6c0a
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
ADD RDI,0x4e0
CALL 0x001a6ea0
LAB_001a6c0a:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001a6c80
LAB_001a6c14:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RAX + 0x4d8]
ADD ECX,0x1
MOV dword ptr [RAX + 0x4d8],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
CMP byte ptr [RAX + 0x384],0x0
JZ 0x001a6c4d
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
ADD RDI,0x4e0
CALL 0x001a6ea0
LAB_001a6c4d:
MOV RAX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RAX + 0x1c0]
MOV RCX,qword ptr [RBP + -0x18]
MOV R8,qword ptr [RBP + -0x20]
MOV R9,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x30]
LEA RDI,[0x2599a7]
MOV ESI,0xf8
MOV qword ptr [RSP],RAX
CALL 0x001a7080
MOV qword ptr [RBP + -0x8],RAX
LAB_001a6c80:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x40
POP RBP
RET
|
int8
mi_mmap_pwrite(long *param_1,void *param_2,size_t param_3,long param_4,int8 param_5)
{
int8 local_10;
if (*(char *)(*param_1 + 900) != '\0') {
inline_mysql_rwlock_rdlock
(*param_1 + 0x4e0,
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_dynrec.c",0xe3);
}
if (*(ulong *)(*param_1 + 0x4d0) < param_4 + param_3) {
*(int *)(*param_1 + 0x4d8) = *(int *)(*param_1 + 0x4d8) + 1;
if (*(char *)(*param_1 + 900) != '\0') {
inline_mysql_rwlock_unlock(*param_1 + 0x4e0);
}
local_10 = inline_mysql_file_pwrite
("/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_dynrec.c",0xf8
,(int)param_1[0x38],param_2,param_3,param_4,param_5);
}
else {
memcpy((void *)(*(long *)(*param_1 + 0x270) + param_4),param_2,param_3);
if (*(char *)(*param_1 + 900) != '\0') {
inline_mysql_rwlock_unlock(*param_1 + 0x4e0);
}
local_10 = 0;
}
return local_10;
}
|
|
10,775 |
mariadb_field_attr
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
int STDCALL
mariadb_field_attr(MARIADB_CONST_STRING *attr,
const MYSQL_FIELD *field,
enum mariadb_field_attr_t type)
{
MA_FIELD_EXTENSION *ext= (MA_FIELD_EXTENSION*) field->extension;
if (!ext || type > MARIADB_FIELD_ATTR_LAST)
{
*attr= null_const_string;
return 1;
}
*attr= ext->metadata[type];
return 0;
}
|
O0
|
c
|
mariadb_field_attr:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq -0x18(%rbp), %rax
movq 0x78(%rax), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x1fba8
cmpl $0x1, -0x1c(%rbp)
jbe 0x1fbca
movq -0x10(%rbp), %rax
movq 0x4080d(%rip), %rcx # 0x603c0
movq %rcx, (%rax)
movq 0x4080b(%rip), %rcx # 0x603c8
movq %rcx, 0x8(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x1fbf1
movq -0x10(%rbp), %rax
movq -0x28(%rbp), %rcx
movl -0x1c(%rbp), %edx
shlq $0x4, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
mariadb_field_attr:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov rax, [rbp+var_18]
mov rax, [rax+78h]
mov [rbp+var_28], rax
cmp [rbp+var_28], 0
jz short loc_1FBA8
cmp [rbp+var_1C], 1
jbe short loc_1FBCA
loc_1FBA8:
mov rax, [rbp+var_10]
mov rcx, cs:null_const_string
mov [rax], rcx
mov rcx, cs:qword_603C8
mov [rax+8], rcx
mov [rbp+var_4], 1
jmp short loc_1FBF1
loc_1FBCA:
mov rax, [rbp+var_10]
mov rcx, [rbp+var_28]
mov edx, [rbp+var_1C]
shl rdx, 4
add rcx, rdx
mov rdx, [rcx]
mov [rax], rdx
mov rcx, [rcx+8]
mov [rax+8], rcx
mov [rbp+var_4], 0
loc_1FBF1:
mov eax, [rbp+var_4]
pop rbp
retn
|
long long mariadb_field_attr(_QWORD *a1, long long a2, unsigned int a3)
{
long long v3; // rdx
long long v5; // [rsp+0h] [rbp-28h]
v5 = *(_QWORD *)(a2 + 120);
if ( v5 && a3 <= 1 )
{
v3 = 16LL * a3;
*a1 = *(_QWORD *)(v3 + v5);
a1[1] = *(_QWORD *)(v3 + v5 + 8);
return 0;
}
else
{
*a1 = null_const_string;
a1[1] = qword_603C8;
return 1;
}
}
|
mariadb_field_attr:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x78]
MOV qword ptr [RBP + -0x28],RAX
CMP qword ptr [RBP + -0x28],0x0
JZ 0x0011fba8
CMP dword ptr [RBP + -0x1c],0x1
JBE 0x0011fbca
LAB_0011fba8:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [0x001603c0]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [0x001603c8]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0011fbf1
LAB_0011fbca:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x28]
MOV EDX,dword ptr [RBP + -0x1c]
SHL RDX,0x4
ADD RCX,RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RAX],RDX
MOV RCX,qword ptr [RCX + 0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RBP + -0x4],0x0
LAB_0011fbf1:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 mariadb_field_attr(int8 *param_1,long param_2,uint param_3)
{
int8 *puVar1;
int4 local_c;
if ((*(long *)(param_2 + 0x78) == 0) || (1 < param_3)) {
*param_1 = null_const_string;
param_1[1] = DAT_001603c8;
local_c = 1;
}
else {
puVar1 = (int8 *)(*(long *)(param_2 + 0x78) + (ulong)param_3 * 0x10);
*param_1 = *puVar1;
param_1[1] = puVar1[1];
local_c = 0;
}
return local_c;
}
|
|
10,776 |
CLIPTextModel::calculate_mem_size(ggml_type)
|
7CodeWizard[P]stablediffusion/clip.hpp
|
size_t calculate_mem_size(ggml_type wtype) {
double mem_size = 0;
mem_size += hidden_size * max_position_embeddings * ggml_type_sizef(GGML_TYPE_I32); // position_ids
mem_size += hidden_size * vocab_size * ggml_type_sizef(wtype); // token_embed_weight
mem_size += hidden_size * max_position_embeddings * ggml_type_sizef(wtype); // position_embed_weight
for (int i = 0; i < num_hidden_layers; i++) {
mem_size += resblocks[i].calculate_mem_size(wtype);
}
mem_size += 2 * hidden_size * ggml_type_sizef(GGML_TYPE_F32); // final_ln_w/b
if (version == OPEN_CLIP_VIT_BIGG_14) {
mem_size += hidden_size * projection_dim * ggml_type_sizef(GGML_TYPE_F32); // text_projection
}
return static_cast<size_t>(mem_size);
}
|
O1
|
cpp
|
CLIPTextModel::calculate_mem_size(ggml_type):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movl 0x8(%rdi), %eax
imull 0xc(%rdi), %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x10(%rsp)
movl $0x12, %edi
callq 0x8e19d
mulsd 0x10(%rsp), %xmm0
xorpd %xmm1, %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
movl 0x4(%rbx), %eax
imull 0xc(%rbx), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x8(%rsp)
movl %ebp, %edi
callq 0x8e19d
mulsd 0x8(%rsp), %xmm0
addsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movl 0x8(%rbx), %eax
imull 0xc(%rbx), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x8(%rsp)
movl %ebp, %edi
callq 0x8e19d
mulsd 0x8(%rsp), %xmm0
addsd 0x10(%rsp), %xmm0
cmpl $0x0, 0x18(%rbx)
movsd %xmm0, 0x10(%rsp)
jle 0x38d40
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x40(%rbx), %rdi
addq %r14, %rdi
movl %ebp, %esi
callq 0x38dd2
movq %rax, %xmm0
punpckldq 0x84c17(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x84c1f(%rip), %xmm0 # 0xbd930
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1 # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x10(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x10(%rsp)
incq %r15
movslq 0x18(%rbx), %rax
addq $0x90, %r14
cmpq %rax, %r15
jl 0x38cee
movl 0xc(%rbx), %eax
addl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x8(%rsp)
xorl %edi, %edi
callq 0x8e19d
mulsd 0x8(%rsp), %xmm0
addsd 0x10(%rsp), %xmm0
cmpl $0x2, (%rbx)
jne 0x38da7
movl 0x20(%rbx), %eax
imull 0xc(%rbx), %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
movsd %xmm1, 0x8(%rsp)
xorl %edi, %edi
movapd %xmm0, 0x10(%rsp)
callq 0x8e19d
mulsd 0x8(%rsp), %xmm0
movapd 0x10(%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, 0x10(%rsp)
movapd 0x10(%rsp), %xmm0
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
subsd 0x84ce9(%rip), %xmm0 # 0xbdaa0
cvttsd2si %xmm0, %rax
sarq $0x3f, %rdx
andq %rdx, %rax
orq %rcx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
|
_ZN13CLIPTextModel18calculate_mem_sizeE9ggml_type:
push rbp
push r15
push r14
push rbx
sub rsp, 28h
mov ebp, esi
mov rbx, rdi
mov eax, [rdi+8]
imul eax, [rdi+0Ch]
cvtsi2sd xmm0, eax
movsd qword ptr [rsp+48h+var_38], xmm0
mov edi, 12h
call ggml_type_sizef
mulsd xmm0, qword ptr [rsp+48h+var_38]
xorpd xmm1, xmm1
addsd xmm1, xmm0
movsd qword ptr [rsp+48h+var_38], xmm1
mov eax, [rbx+4]
imul eax, [rbx+0Ch]
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
movsd [rsp+48h+var_40], xmm0
mov edi, ebp
call ggml_type_sizef
mulsd xmm0, [rsp+48h+var_40]
addsd xmm0, qword ptr [rsp+48h+var_38]
movsd qword ptr [rsp+48h+var_38], xmm0
mov eax, [rbx+8]
imul eax, [rbx+0Ch]
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
movsd [rsp+48h+var_40], xmm0
mov edi, ebp
call ggml_type_sizef
mulsd xmm0, [rsp+48h+var_40]
addsd xmm0, qword ptr [rsp+48h+var_38]
cmp dword ptr [rbx+18h], 0
movsd qword ptr [rsp+48h+var_38], xmm0
jle short loc_38D40
xor r14d, r14d
xor r15d, r15d
loc_38CEE:
mov rdi, [rbx+40h]
add rdi, r14
mov esi, ebp
call _ZN22ResidualAttentionBlock18calculate_mem_sizeE9ggml_type; ResidualAttentionBlock::calculate_mem_size(ggml_type)
movq xmm0, rax
punpckldq xmm0, cs:xmmword_BD920
subpd xmm0, cs:xmmword_BD930
movapd xmm1, xmm0
unpckhpd xmm1, xmm0
addsd xmm1, xmm0
movsd xmm0, qword ptr [rsp+48h+var_38]
addsd xmm0, xmm1
movsd qword ptr [rsp+48h+var_38], xmm0
inc r15
movsxd rax, dword ptr [rbx+18h]
add r14, 90h
cmp r15, rax
jl short loc_38CEE
loc_38D40:
mov eax, [rbx+0Ch]
add eax, eax
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
movsd [rsp+48h+var_40], xmm0
xor edi, edi
call ggml_type_sizef
mulsd xmm0, [rsp+48h+var_40]
addsd xmm0, qword ptr [rsp+48h+var_38]
cmp dword ptr [rbx], 2
jnz short loc_38DA7
mov eax, [rbx+20h]
imul eax, [rbx+0Ch]
xorps xmm1, xmm1
cvtsi2sd xmm1, eax
movsd [rsp+48h+var_40], xmm1
xor edi, edi
movapd [rsp+48h+var_38], xmm0
call ggml_type_sizef
mulsd xmm0, [rsp+48h+var_40]
movapd xmm1, [rsp+48h+var_38]
addsd xmm1, xmm0
movapd [rsp+48h+var_38], xmm1
movapd xmm0, [rsp+48h+var_38]
loc_38DA7:
cvttsd2si rcx, xmm0
mov rdx, rcx
subsd xmm0, cs:qword_BDAA0
cvttsd2si rax, xmm0
sar rdx, 3Fh
and rax, rdx
or rax, rcx
add rsp, 28h
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long CLIPTextModel::calculate_mem_size(long long a1, unsigned int a2)
{
long long v3; // r14
long long v4; // r15
__m128d v5; // xmm0
double v6; // xmm0_8
double v8; // [rsp+8h] [rbp-40h]
double v9; // [rsp+8h] [rbp-40h]
double v10; // [rsp+8h] [rbp-40h]
double v11; // [rsp+8h] [rbp-40h]
double v12; // [rsp+10h] [rbp-38h]
double v13; // [rsp+10h] [rbp-38h]
double v14; // [rsp+10h] [rbp-38h]
double v15; // [rsp+10h] [rbp-38h]
v12 = (double)(*(_DWORD *)(a1 + 12) * *(_DWORD *)(a1 + 8));
v13 = ggml_type_sizef(18LL) * v12 + 0.0;
v8 = (double)(*(_DWORD *)(a1 + 12) * *(_DWORD *)(a1 + 4));
v14 = ggml_type_sizef(a2) * v8 + v13;
v9 = (double)(*(_DWORD *)(a1 + 12) * *(_DWORD *)(a1 + 8));
v15 = ggml_type_sizef(a2) * v9 + v14;
if ( *(int *)(a1 + 24) > 0 )
{
v3 = 0LL;
v4 = 0LL;
do
{
v5 = _mm_sub_pd(
(__m128d)_mm_unpacklo_epi32(
(__m128i)(unsigned long long)ResidualAttentionBlock::calculate_mem_size(
v3 + *(_QWORD *)(a1 + 64),
a2),
(__m128i)xmmword_BD920),
(__m128d)xmmword_BD930);
v15 = v15 + _mm_unpackhi_pd(v5, v5).m128d_f64[0] + v5.m128d_f64[0];
++v4;
v3 += 144LL;
}
while ( v4 < *(int *)(a1 + 24) );
}
v10 = (double)(2 * *(_DWORD *)(a1 + 12));
v6 = ggml_type_sizef(0LL) * v10 + v15;
if ( *(_DWORD *)a1 == 2 )
{
v11 = (double)(*(_DWORD *)(a1 + 12) * *(_DWORD *)(a1 + 32));
v6 = v6 + ggml_type_sizef(0LL) * v11;
}
return (unsigned int)(int)v6;
}
| |||
10,777 |
CLIPTextModel::calculate_mem_size(ggml_type)
|
7CodeWizard[P]stablediffusion/clip.hpp
|
size_t calculate_mem_size(ggml_type wtype) {
double mem_size = 0;
mem_size += hidden_size * max_position_embeddings * ggml_type_sizef(GGML_TYPE_I32); // position_ids
mem_size += hidden_size * vocab_size * ggml_type_sizef(wtype); // token_embed_weight
mem_size += hidden_size * max_position_embeddings * ggml_type_sizef(wtype); // position_embed_weight
for (int i = 0; i < num_hidden_layers; i++) {
mem_size += resblocks[i].calculate_mem_size(wtype);
}
mem_size += 2 * hidden_size * ggml_type_sizef(GGML_TYPE_F32); // final_ln_w/b
if (version == OPEN_CLIP_VIT_BIGG_14) {
mem_size += hidden_size * projection_dim * ggml_type_sizef(GGML_TYPE_F32); // text_projection
}
return static_cast<size_t>(mem_size);
}
|
O2
|
cpp
|
CLIPTextModel::calculate_mem_size(ggml_type):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movl 0x8(%rdi), %eax
imull 0xc(%rdi), %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x10(%rsp)
pushq $0x12
popq %rdi
callq 0x67bc7
mulsd 0x10(%rsp), %xmm0
xorpd %xmm1, %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
movl 0x4(%rbx), %eax
imull 0xc(%rbx), %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x8(%rsp)
movl %ebp, %edi
callq 0x67bc7
mulsd 0x8(%rsp), %xmm0
addsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movl 0x8(%rbx), %eax
imull 0xc(%rbx), %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x8(%rsp)
movl %ebp, %edi
callq 0x67bc7
mulsd 0x8(%rsp), %xmm0
addsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
xorl %r14d, %r14d
xorl %r15d, %r15d
movslq 0x18(%rbx), %rax
cmpq %rax, %r15
jge 0x22292
movq 0x40(%rbx), %rdi
addq %r14, %rdi
movl %ebp, %esi
callq 0x2231e
movq %rax, %xmm0
punpckldq 0x775fe(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x77606(%rip), %xmm0 # 0x99870
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1 # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x10(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x10(%rsp)
incq %r15
addq $0x90, %r14
jmp 0x2223e
movl 0xc(%rbx), %eax
addl %eax, %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x8(%rsp)
xorl %edi, %edi
callq 0x67bc7
mulsd 0x8(%rsp), %xmm0
addsd 0x10(%rsp), %xmm0
cmpl $0x2, (%rbx)
jne 0x222f3
movl 0x20(%rbx), %eax
imull 0xc(%rbx), %eax
cvtsi2sd %eax, %xmm1
movsd %xmm1, 0x8(%rsp)
xorl %edi, %edi
movapd %xmm0, 0x10(%rsp)
callq 0x67bc7
mulsd 0x8(%rsp), %xmm0
movapd 0x10(%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, 0x10(%rsp)
movapd 0x10(%rsp), %xmm0
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
subsd 0x776cd(%rip), %xmm0 # 0x999d0
cvttsd2si %xmm0, %rax
sarq $0x3f, %rdx
andq %rdx, %rax
orq %rcx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
|
_ZN13CLIPTextModel18calculate_mem_sizeE9ggml_type:
push rbp
push r15
push r14
push rbx
sub rsp, 28h
mov ebp, esi
mov rbx, rdi
mov eax, [rdi+8]
imul eax, [rdi+0Ch]
cvtsi2sd xmm0, eax
movsd qword ptr [rsp+48h+var_38], xmm0
push 12h
pop rdi
call ggml_type_sizef
mulsd xmm0, qword ptr [rsp+48h+var_38]
xorpd xmm1, xmm1
addsd xmm1, xmm0
movsd qword ptr [rsp+48h+var_38], xmm1
mov eax, [rbx+4]
imul eax, [rbx+0Ch]
cvtsi2sd xmm0, eax
movsd [rsp+48h+var_40], xmm0
mov edi, ebp
call ggml_type_sizef
mulsd xmm0, [rsp+48h+var_40]
addsd xmm0, qword ptr [rsp+48h+var_38]
movsd qword ptr [rsp+48h+var_38], xmm0
mov eax, [rbx+8]
imul eax, [rbx+0Ch]
cvtsi2sd xmm0, eax
movsd [rsp+48h+var_40], xmm0
mov edi, ebp
call ggml_type_sizef
mulsd xmm0, [rsp+48h+var_40]
addsd xmm0, qword ptr [rsp+48h+var_38]
movsd qword ptr [rsp+48h+var_38], xmm0
xor r14d, r14d
xor r15d, r15d
loc_2223E:
movsxd rax, dword ptr [rbx+18h]
cmp r15, rax
jge short loc_22292
mov rdi, [rbx+40h]
add rdi, r14
mov esi, ebp
call _ZN22ResidualAttentionBlock18calculate_mem_sizeE9ggml_type; ResidualAttentionBlock::calculate_mem_size(ggml_type)
movq xmm0, rax
punpckldq xmm0, cs:xmmword_99860
subpd xmm0, cs:xmmword_99870
movapd xmm1, xmm0
unpckhpd xmm1, xmm0
addsd xmm1, xmm0
movsd xmm0, qword ptr [rsp+48h+var_38]
addsd xmm0, xmm1
movsd qword ptr [rsp+48h+var_38], xmm0
inc r15
add r14, 90h
jmp short loc_2223E
loc_22292:
mov eax, [rbx+0Ch]
add eax, eax
cvtsi2sd xmm0, eax
movsd [rsp+48h+var_40], xmm0
xor edi, edi
call ggml_type_sizef
mulsd xmm0, [rsp+48h+var_40]
addsd xmm0, qword ptr [rsp+48h+var_38]
cmp dword ptr [rbx], 2
jnz short loc_222F3
mov eax, [rbx+20h]
imul eax, [rbx+0Ch]
cvtsi2sd xmm1, eax
movsd [rsp+48h+var_40], xmm1
xor edi, edi
movapd [rsp+48h+var_38], xmm0
call ggml_type_sizef
mulsd xmm0, [rsp+48h+var_40]
movapd xmm1, [rsp+48h+var_38]
addsd xmm1, xmm0
movapd [rsp+48h+var_38], xmm1
movapd xmm0, [rsp+48h+var_38]
loc_222F3:
cvttsd2si rcx, xmm0
mov rdx, rcx
subsd xmm0, cs:qword_999D0
cvttsd2si rax, xmm0
sar rdx, 3Fh
and rax, rdx
or rax, rcx
add rsp, 28h
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long CLIPTextModel::calculate_mem_size(long long a1, unsigned int a2)
{
long long v3; // r14
long long i; // r15
__m128d v5; // xmm0
double v6; // xmm0_8
double v8; // [rsp+8h] [rbp-40h]
double v9; // [rsp+8h] [rbp-40h]
double v10; // [rsp+8h] [rbp-40h]
double v11; // [rsp+8h] [rbp-40h]
double v12; // [rsp+10h] [rbp-38h]
double v13; // [rsp+10h] [rbp-38h]
double v14; // [rsp+10h] [rbp-38h]
double v15; // [rsp+10h] [rbp-38h]
v12 = (double)(*(_DWORD *)(a1 + 12) * *(_DWORD *)(a1 + 8));
v13 = ggml_type_sizef(18LL) * v12 + 0.0;
v8 = (double)(*(_DWORD *)(a1 + 12) * *(_DWORD *)(a1 + 4));
v14 = ggml_type_sizef(a2) * v8 + v13;
v9 = (double)(*(_DWORD *)(a1 + 12) * *(_DWORD *)(a1 + 8));
v15 = ggml_type_sizef(a2) * v9 + v14;
v3 = 0LL;
for ( i = 0LL; i < *(int *)(a1 + 24); ++i )
{
v5 = _mm_sub_pd(
(__m128d)_mm_unpacklo_epi32(
(__m128i)(unsigned long long)ResidualAttentionBlock::calculate_mem_size(
v3 + *(_QWORD *)(a1 + 64),
a2),
(__m128i)xmmword_99860),
(__m128d)xmmword_99870);
v15 = v15 + _mm_unpackhi_pd(v5, v5).m128d_f64[0] + v5.m128d_f64[0];
v3 += 144LL;
}
v10 = (double)(2 * *(_DWORD *)(a1 + 12));
v6 = ggml_type_sizef(0LL) * v10 + v15;
if ( *(_DWORD *)a1 == 2 )
{
v11 = (double)(*(_DWORD *)(a1 + 12) * *(_DWORD *)(a1 + 32));
v6 = v6 + ggml_type_sizef(0LL) * v11;
}
return (unsigned int)(int)v6;
}
|
calculate_mem_size:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV EBP,ESI
MOV RBX,RDI
MOV EAX,dword ptr [RDI + 0x8]
IMUL EAX,dword ptr [RDI + 0xc]
CVTSI2SD XMM0,EAX
MOVSD qword ptr [RSP + 0x10],XMM0
PUSH 0x12
POP RDI
CALL 0x00167bc7
MULSD XMM0,qword ptr [RSP + 0x10]
XORPD XMM1,XMM1
ADDSD XMM1,XMM0
MOVSD qword ptr [RSP + 0x10],XMM1
MOV EAX,dword ptr [RBX + 0x4]
IMUL EAX,dword ptr [RBX + 0xc]
CVTSI2SD XMM0,EAX
MOVSD qword ptr [RSP + 0x8],XMM0
MOV EDI,EBP
CALL 0x00167bc7
MULSD XMM0,qword ptr [RSP + 0x8]
ADDSD XMM0,qword ptr [RSP + 0x10]
MOVSD qword ptr [RSP + 0x10],XMM0
MOV EAX,dword ptr [RBX + 0x8]
IMUL EAX,dword ptr [RBX + 0xc]
CVTSI2SD XMM0,EAX
MOVSD qword ptr [RSP + 0x8],XMM0
MOV EDI,EBP
CALL 0x00167bc7
MULSD XMM0,qword ptr [RSP + 0x8]
ADDSD XMM0,qword ptr [RSP + 0x10]
MOVSD qword ptr [RSP + 0x10],XMM0
XOR R14D,R14D
XOR R15D,R15D
LAB_0012223e:
MOVSXD RAX,dword ptr [RBX + 0x18]
CMP R15,RAX
JGE 0x00122292
MOV RDI,qword ptr [RBX + 0x40]
ADD RDI,R14
MOV ESI,EBP
CALL 0x0012231e
MOVQ XMM0,RAX
PUNPCKLDQ XMM0,xmmword ptr [0x00199860]
SUBPD XMM0,xmmword ptr [0x00199870]
MOVAPD XMM1,XMM0
UNPCKHPD XMM1,XMM0
ADDSD XMM1,XMM0
MOVSD XMM0,qword ptr [RSP + 0x10]
ADDSD XMM0,XMM1
MOVSD qword ptr [RSP + 0x10],XMM0
INC R15
ADD R14,0x90
JMP 0x0012223e
LAB_00122292:
MOV EAX,dword ptr [RBX + 0xc]
ADD EAX,EAX
CVTSI2SD XMM0,EAX
MOVSD qword ptr [RSP + 0x8],XMM0
XOR EDI,EDI
CALL 0x00167bc7
MULSD XMM0,qword ptr [RSP + 0x8]
ADDSD XMM0,qword ptr [RSP + 0x10]
CMP dword ptr [RBX],0x2
JNZ 0x001222f3
MOV EAX,dword ptr [RBX + 0x20]
IMUL EAX,dword ptr [RBX + 0xc]
CVTSI2SD XMM1,EAX
MOVSD qword ptr [RSP + 0x8],XMM1
XOR EDI,EDI
MOVAPD xmmword ptr [RSP + 0x10],XMM0
CALL 0x00167bc7
MULSD XMM0,qword ptr [RSP + 0x8]
MOVAPD XMM1,xmmword ptr [RSP + 0x10]
ADDSD XMM1,XMM0
MOVAPD xmmword ptr [RSP + 0x10],XMM1
MOVAPD XMM0,xmmword ptr [RSP + 0x10]
LAB_001222f3:
CVTTSD2SI RCX,XMM0
MOV RDX,RCX
SUBSD XMM0,qword ptr [0x001999d0]
CVTTSD2SI RAX,XMM0
SAR RDX,0x3f
AND RAX,RDX
OR RAX,RCX
ADD RSP,0x28
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CLIPTextModel::calculate_mem_size(ggml_type) */
ulong __thiscall CLIPTextModel::calculate_mem_size(CLIPTextModel *this,int4 param_2)
{
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int8 uVar7;
long lVar8;
long lVar9;
double dVar10;
double dVar11;
double dVar12;
int1 auVar13 [16];
double local_38;
iVar1 = *(int *)(this + 8);
iVar2 = *(int *)(this + 0xc);
dVar10 = (double)ggml_type_sizef(0x12);
iVar3 = *(int *)(this + 4);
iVar4 = *(int *)(this + 0xc);
dVar11 = (double)ggml_type_sizef(param_2);
iVar5 = *(int *)(this + 8);
iVar6 = *(int *)(this + 0xc);
dVar12 = (double)ggml_type_sizef(param_2);
local_38 = dVar12 * (double)(iVar5 * iVar6) +
dVar11 * (double)(iVar3 * iVar4) + dVar10 * (double)(iVar1 * iVar2) + 0.0;
lVar8 = 0;
for (lVar9 = 0; lVar9 < *(int *)(this + 0x18); lVar9 = lVar9 + 1) {
uVar7 = ResidualAttentionBlock::calculate_mem_size
((ResidualAttentionBlock *)(*(long *)(this + 0x40) + lVar8),param_2);
auVar13._8_4_ = (int)((ulong)uVar7 >> 0x20);
auVar13._0_8_ = uVar7;
auVar13._12_4_ = DAT_00199860._4_4_;
local_38 = local_38 +
(auVar13._8_8_ - _UNK_00199878) +
((double)CONCAT44((int4)DAT_00199860,(int)uVar7) - _DAT_00199870);
lVar8 = lVar8 + 0x90;
}
iVar1 = *(int *)(this + 0xc);
dVar10 = (double)ggml_type_sizef(0);
local_38 = dVar10 * (double)(iVar1 * 2) + local_38;
if (*(int *)this == 2) {
iVar1 = *(int *)(this + 0x20);
iVar2 = *(int *)(this + 0xc);
dVar10 = (double)ggml_type_sizef(0);
local_38 = local_38 + dVar10 * (double)(iVar1 * iVar2);
}
return (long)(local_38 - DAT_001999d0) & (long)local_38 >> 0x3f | (long)local_38;
}
|
|
10,778 |
CLIPTextModel::calculate_mem_size(ggml_type)
|
7CodeWizard[P]stablediffusion/clip.hpp
|
size_t calculate_mem_size(ggml_type wtype) {
double mem_size = 0;
mem_size += hidden_size * max_position_embeddings * ggml_type_sizef(GGML_TYPE_I32); // position_ids
mem_size += hidden_size * vocab_size * ggml_type_sizef(wtype); // token_embed_weight
mem_size += hidden_size * max_position_embeddings * ggml_type_sizef(wtype); // position_embed_weight
for (int i = 0; i < num_hidden_layers; i++) {
mem_size += resblocks[i].calculate_mem_size(wtype);
}
mem_size += 2 * hidden_size * ggml_type_sizef(GGML_TYPE_F32); // final_ln_w/b
if (version == OPEN_CLIP_VIT_BIGG_14) {
mem_size += hidden_size * projection_dim * ggml_type_sizef(GGML_TYPE_F32); // text_projection
}
return static_cast<size_t>(mem_size);
}
|
O3
|
cpp
|
CLIPTextModel::calculate_mem_size(ggml_type):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movl 0x8(%rdi), %eax
imull 0xc(%rdi), %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x10(%rsp)
movl $0x12, %edi
callq 0x8cf2e
mulsd 0x10(%rsp), %xmm0
xorpd %xmm1, %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
movl 0x4(%rbx), %eax
imull 0xc(%rbx), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x8(%rsp)
movl %ebp, %edi
callq 0x8cf2e
mulsd 0x8(%rsp), %xmm0
addsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movl 0x8(%rbx), %eax
imull 0xc(%rbx), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x8(%rsp)
movl %ebp, %edi
callq 0x8cf2e
mulsd 0x8(%rsp), %xmm0
addsd 0x10(%rsp), %xmm0
cmpl $0x0, 0x18(%rbx)
movsd %xmm0, 0x10(%rsp)
jle 0x381a8
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x40(%rbx), %rdi
addq %r14, %rdi
movl %ebp, %esi
callq 0x3823a
movq %rax, %xmm0
punpckldq 0x847bf(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x847c7(%rip), %xmm0 # 0xbc940
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1 # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x10(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x10(%rsp)
incq %r15
movslq 0x18(%rbx), %rax
addq $0x90, %r14
cmpq %rax, %r15
jl 0x38156
movl 0xc(%rbx), %eax
addl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x8(%rsp)
xorl %edi, %edi
callq 0x8cf2e
mulsd 0x8(%rsp), %xmm0
addsd 0x10(%rsp), %xmm0
cmpl $0x2, (%rbx)
jne 0x3820f
movl 0x20(%rbx), %eax
imull 0xc(%rbx), %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
movsd %xmm1, 0x8(%rsp)
xorl %edi, %edi
movapd %xmm0, 0x10(%rsp)
callq 0x8cf2e
mulsd 0x8(%rsp), %xmm0
movapd 0x10(%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, 0x10(%rsp)
movapd 0x10(%rsp), %xmm0
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
subsd 0x84891(%rip), %xmm0 # 0xbcab0
cvttsd2si %xmm0, %rax
sarq $0x3f, %rdx
andq %rdx, %rax
orq %rcx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
|
_ZN13CLIPTextModel18calculate_mem_sizeE9ggml_type:
push rbp
push r15
push r14
push rbx
sub rsp, 28h
mov ebp, esi
mov rbx, rdi
mov eax, [rdi+8]
imul eax, [rdi+0Ch]
cvtsi2sd xmm0, eax
movsd qword ptr [rsp+48h+var_38], xmm0
mov edi, 12h
call ggml_type_sizef
mulsd xmm0, qword ptr [rsp+48h+var_38]
xorpd xmm1, xmm1
addsd xmm1, xmm0
movsd qword ptr [rsp+48h+var_38], xmm1
mov eax, [rbx+4]
imul eax, [rbx+0Ch]
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
movsd [rsp+48h+var_40], xmm0
mov edi, ebp
call ggml_type_sizef
mulsd xmm0, [rsp+48h+var_40]
addsd xmm0, qword ptr [rsp+48h+var_38]
movsd qword ptr [rsp+48h+var_38], xmm0
mov eax, [rbx+8]
imul eax, [rbx+0Ch]
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
movsd [rsp+48h+var_40], xmm0
mov edi, ebp
call ggml_type_sizef
mulsd xmm0, [rsp+48h+var_40]
addsd xmm0, qword ptr [rsp+48h+var_38]
cmp dword ptr [rbx+18h], 0
movsd qword ptr [rsp+48h+var_38], xmm0
jle short loc_381A8
xor r14d, r14d
xor r15d, r15d
loc_38156:
mov rdi, [rbx+40h]
add rdi, r14
mov esi, ebp
call _ZN22ResidualAttentionBlock18calculate_mem_sizeE9ggml_type; ResidualAttentionBlock::calculate_mem_size(ggml_type)
movq xmm0, rax
punpckldq xmm0, cs:xmmword_BC930
subpd xmm0, cs:xmmword_BC940
movapd xmm1, xmm0
unpckhpd xmm1, xmm0
addsd xmm1, xmm0
movsd xmm0, qword ptr [rsp+48h+var_38]
addsd xmm0, xmm1
movsd qword ptr [rsp+48h+var_38], xmm0
inc r15
movsxd rax, dword ptr [rbx+18h]
add r14, 90h
cmp r15, rax
jl short loc_38156
loc_381A8:
mov eax, [rbx+0Ch]
add eax, eax
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
movsd [rsp+48h+var_40], xmm0
xor edi, edi
call ggml_type_sizef
mulsd xmm0, [rsp+48h+var_40]
addsd xmm0, qword ptr [rsp+48h+var_38]
cmp dword ptr [rbx], 2
jnz short loc_3820F
mov eax, [rbx+20h]
imul eax, [rbx+0Ch]
xorps xmm1, xmm1
cvtsi2sd xmm1, eax
movsd [rsp+48h+var_40], xmm1
xor edi, edi
movapd [rsp+48h+var_38], xmm0
call ggml_type_sizef
mulsd xmm0, [rsp+48h+var_40]
movapd xmm1, [rsp+48h+var_38]
addsd xmm1, xmm0
movapd [rsp+48h+var_38], xmm1
movapd xmm0, [rsp+48h+var_38]
loc_3820F:
cvttsd2si rcx, xmm0
mov rdx, rcx
subsd xmm0, cs:qword_BCAB0
cvttsd2si rax, xmm0
sar rdx, 3Fh
and rax, rdx
or rax, rcx
add rsp, 28h
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long CLIPTextModel::calculate_mem_size(long long a1, unsigned int a2)
{
long long v3; // r14
long long v4; // r15
__m128d v5; // xmm0
double v6; // xmm0_8
double v8; // [rsp+8h] [rbp-40h]
double v9; // [rsp+8h] [rbp-40h]
double v10; // [rsp+8h] [rbp-40h]
double v11; // [rsp+8h] [rbp-40h]
double v12; // [rsp+10h] [rbp-38h]
double v13; // [rsp+10h] [rbp-38h]
double v14; // [rsp+10h] [rbp-38h]
double v15; // [rsp+10h] [rbp-38h]
v12 = (double)(*(_DWORD *)(a1 + 12) * *(_DWORD *)(a1 + 8));
v13 = ggml_type_sizef(18LL) * v12 + 0.0;
v8 = (double)(*(_DWORD *)(a1 + 12) * *(_DWORD *)(a1 + 4));
v14 = ggml_type_sizef(a2) * v8 + v13;
v9 = (double)(*(_DWORD *)(a1 + 12) * *(_DWORD *)(a1 + 8));
v15 = ggml_type_sizef(a2) * v9 + v14;
if ( *(int *)(a1 + 24) > 0 )
{
v3 = 0LL;
v4 = 0LL;
do
{
v5 = _mm_sub_pd(
(__m128d)_mm_unpacklo_epi32(
(__m128i)(unsigned long long)ResidualAttentionBlock::calculate_mem_size(
v3 + *(_QWORD *)(a1 + 64),
a2),
(__m128i)xmmword_BC930),
(__m128d)xmmword_BC940);
v15 = v15 + _mm_unpackhi_pd(v5, v5).m128d_f64[0] + v5.m128d_f64[0];
++v4;
v3 += 144LL;
}
while ( v4 < *(int *)(a1 + 24) );
}
v10 = (double)(2 * *(_DWORD *)(a1 + 12));
v6 = ggml_type_sizef(0LL) * v10 + v15;
if ( *(_DWORD *)a1 == 2 )
{
v11 = (double)(*(_DWORD *)(a1 + 12) * *(_DWORD *)(a1 + 32));
v6 = v6 + ggml_type_sizef(0LL) * v11;
}
return (unsigned int)(int)v6;
}
| |||
10,779 |
YAML::as_if<aimrt_mujoco_sim::mujoco_sim_module::publisher::JointSensorPublisherBase::Options, void>::operator()() const
|
aimrt_mujoco_sim/_deps/yaml-cpp-src/include/yaml-cpp/node/impl.h
|
T operator()() const {
if (!node.m_pNode)
throw TypedBadConversion<T>(node.Mark());
T t;
if (convert<T>::decode(node, t))
return t;
throw TypedBadConversion<T>(node.Mark());
}
|
O3
|
c
|
YAML::as_if<aimrt_mujoco_sim::mujoco_sim_module::publisher::JointSensorPublisherBase::Options, void>::operator()() const:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rdi
cmpq $0x0, 0x38(%rdi)
je 0x59b70
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
movq %rbx, %rsi
callq 0x59c34
testb %al, %al
je 0x59bb6
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movl $0x40, %edi
callq 0x2c800
movq %rax, %rbx
movq (%r14), %rdi
callq 0x47518
movq %rsp, %rsi
movq %rax, (%rsi)
movl %edx, 0x8(%rsi)
movq %rbx, %rdi
callq 0x48dd4
leaq 0x1af663(%rip), %rax # 0x209200
movq %rax, (%rbx)
leaq 0x1af631(%rip), %rsi # 0x2091d8
leaq 0x6b7e(%rip), %rdx # 0x6072c
movq %rbx, %rdi
callq 0x2e0f0
movl $0x40, %edi
callq 0x2c800
movq %rax, %r15
movq (%r14), %rdi
callq 0x47518
movq %rsp, %rsi
movq %rax, (%rsi)
movl %edx, 0x8(%rsi)
movq %r15, %rdi
callq 0x48dd4
leaq 0x1af61d(%rip), %rax # 0x209200
movq %rax, (%r15)
leaq 0x1af5eb(%rip), %rsi # 0x2091d8
leaq 0x6b38(%rip), %rdx # 0x6072c
movq %r15, %rdi
callq 0x2e0f0
jmp 0x59c18
movq %rax, %r14
movq %r15, %rdi
callq 0x2cc80
jmp 0x59c1b
movq %rax, %r14
movq %rbx, %rdi
callq 0x2cc80
jmp 0x59c2c
movq %rax, %r14
leaq 0x18(%rbx), %rdi
callq 0x59558
movq %rbx, %rdi
callq 0x4f6b4
movq %r14, %rdi
callq 0x2e220
|
_ZNK4YAML5as_ifIN16aimrt_mujoco_sim17mujoco_sim_module9publisher24TouchSensorPublisherBase7OptionsEvEclEv:
push r15
push r14
push rbx; __int64
sub rsp, 10h
mov r14, rsi
mov rbx, rdi
mov rdi, [rsi]; int
cmp qword ptr [rdi+38h], 0
jz short loc_59B70
xorps xmm0, xmm0
movups xmmword ptr [rbx+20h], xmm0
movups xmmword ptr [rbx+10h], xmm0
movups xmmword ptr [rbx], xmm0
mov rsi, rbx
call _ZN4YAML7convertIN16aimrt_mujoco_sim17mujoco_sim_module9publisher24TouchSensorPublisherBase7OptionsEE6decodeERKNS_4NodeERS5_; YAML::convert<aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options>::decode(YAML::Node const&,aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options&)
test al, al
jz short loc_59BB6
mov rax, rbx
add rsp, 10h
pop rbx
pop r14
pop r15
retn
loc_59B70:
mov edi, 40h ; '@'; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, [r14]; this
call _ZNK4YAML4Node4MarkEv; YAML::Node::Mark(void)
mov rsi, rsp; int
mov [rsi], rax
mov [rsi+8], edx
mov rdi, rbx; int
call _ZN4YAML13BadConversionC2ERKNS_4MarkE; YAML::BadConversion::BadConversion(YAML::Mark const&)
lea rax, off_209200
mov [rbx], rax
lea rsi, _ZTIN4YAML18TypedBadConversionIN16aimrt_mujoco_sim17mujoco_sim_module9publisher24TouchSensorPublisherBase7OptionsEEE; lptinfo
lea rdx, _ZN4YAML9ExceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_59BB6:
mov edi, 40h ; '@'; thrown_size
call ___cxa_allocate_exception
mov r15, rax
mov rdi, [r14]; this
call _ZNK4YAML4Node4MarkEv; YAML::Node::Mark(void)
mov rsi, rsp; int
mov [rsi], rax
mov [rsi+8], edx
mov rdi, r15; int
call _ZN4YAML13BadConversionC2ERKNS_4MarkE; YAML::BadConversion::BadConversion(YAML::Mark const&)
lea rax, off_209200
mov [r15], rax
lea rsi, _ZTIN4YAML18TypedBadConversionIN16aimrt_mujoco_sim17mujoco_sim_module9publisher24TouchSensorPublisherBase7OptionsEEE; lptinfo
lea rdx, _ZN4YAML9ExceptionD2Ev; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
jmp short loc_59C18
mov r14, rax
mov rdi, r15; void *
call ___cxa_free_exception
jmp short loc_59C1B
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
jmp short loc_59C2C
loc_59C18:
mov r14, rax
loc_59C1B:
lea rdi, [rbx+18h]
call _ZNSt6vectorIS_IN16aimrt_mujoco_sim17mujoco_sim_module9publisher24TouchSensorPublisherBase7Options5StateESaIS5_EESaIS7_EED2Ev; std::vector<std::vector<aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options::State>>::~vector()
mov rdi, rbx
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
loc_59C2C:
mov rdi, r14
call __Unwind_Resume
|
_OWORD * YAML::as_if<aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options,void>::operator()(
_OWORD *a1,
YAML::Node **a2)
{
YAML::Node *v3; // rdi
_QWORD *exception; // rbx
int v6; // edx
_QWORD *v7; // r15
int v8; // edx
long long v9; // [rsp+0h] [rbp-28h] BYREF
int v10; // [rsp+8h] [rbp-20h]
v3 = *a2;
if ( !*((_QWORD *)*a2 + 7) )
{
exception = __cxa_allocate_exception(0x40uLL);
v9 = YAML::Node::Mark(*a2);
v10 = v6;
YAML::BadConversion::BadConversion(exception, (int)&v9);
*exception = &off_209200;
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'YAML::TypedBadConversion<aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options>,
YAML::Exception::~Exception);
}
a1[2] = 0LL;
a1[1] = 0LL;
*a1 = 0LL;
if ( !(unsigned __int8)YAML::convert<aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options>::decode((int)v3) )
{
v7 = __cxa_allocate_exception(0x40uLL);
v9 = YAML::Node::Mark(*a2);
v10 = v8;
YAML::BadConversion::BadConversion(v7, (int)&v9);
*v7 = &off_209200;
__cxa_throw(
v7,
(struct type_info *)&`typeinfo for'YAML::TypedBadConversion<aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options>,
YAML::Exception::~Exception);
}
return a1;
}
|
operator():
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV R14,RSI
MOV RBX,RDI
MOV RDI,qword ptr [RSI]
CMP qword ptr [RDI + 0x38],0x0
JZ 0x00159b70
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x20],XMM0
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOVUPS xmmword ptr [RBX],XMM0
LAB_00159b57:
MOV RSI,RBX
CALL 0x00159c34
LAB_00159b5f:
TEST AL,AL
JZ 0x00159bb6
MOV RAX,RBX
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
LAB_00159b70:
MOV EDI,0x40
CALL 0x0012c800
MOV RBX,RAX
MOV RDI,qword ptr [R14]
LAB_00159b80:
CALL 0x00147518
MOV RSI,RSP
MOV qword ptr [RSI],RAX
MOV dword ptr [RSI + 0x8],EDX
MOV RDI,RBX
CALL 0x00148dd4
LAB_00159b96:
LEA RAX,[0x309200]
MOV qword ptr [RBX],RAX
LEA RSI,[0x3091d8]
LEA RDX,[0x16072c]
MOV RDI,RBX
CALL 0x0012e0f0
LAB_00159bb6:
MOV EDI,0x40
CALL 0x0012c800
MOV R15,RAX
MOV RDI,qword ptr [R14]
LAB_00159bc6:
CALL 0x00147518
MOV RSI,RSP
MOV qword ptr [RSI],RAX
MOV dword ptr [RSI + 0x8],EDX
MOV RDI,R15
CALL 0x00148dd4
LEA RAX,[0x309200]
MOV qword ptr [R15],RAX
LAB_00159be6:
LEA RSI,[0x3091d8]
LEA RDX,[0x16072c]
MOV RDI,R15
CALL 0x0012e0f0
|
/* YAML::as_if<aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options,
void>::TEMPNAMEPLACEHOLDERVALUE() const */
as_if<aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options,void> *
__thiscall
YAML::as_if<aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options,void>
::operator()(as_if<aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options,void>
*this)
{
Node *pNVar1;
char cVar2;
BadConversion *pBVar3;
int8 *in_RSI;
Mark local_28 [16];
pNVar1 = (Node *)*in_RSI;
if (*(long *)(pNVar1 + 0x38) == 0) {
pBVar3 = (BadConversion *)__cxa_allocate_exception(0x40);
/* try { // try from 00159b80 to 00159b95 has its CatchHandler @ 00159c0b */
local_28._0_12_ = Node::Mark((Node *)*in_RSI);
BadConversion::BadConversion(pBVar3,local_28);
*(int ***)pBVar3 = &PTR__BadInsert_00309200;
/* WARNING: Subroutine does not return */
__cxa_throw(pBVar3,&TypedBadConversion<aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options>
::typeinfo,BadInsert::~BadInsert);
}
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
/* try { // try from 00159b57 to 00159b5e has its CatchHandler @ 00159c18 */
cVar2 = convert<aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options>
::decode(pNVar1,(Options *)this);
if (cVar2 != '\0') {
return this;
}
pBVar3 = (BadConversion *)__cxa_allocate_exception(0x40);
/* try { // try from 00159bc6 to 00159bdb has its CatchHandler @ 00159bfe */
local_28._0_12_ = Node::Mark((Node *)*in_RSI);
BadConversion::BadConversion(pBVar3,local_28);
*(int ***)pBVar3 = &PTR__BadInsert_00309200;
/* try { // try from 00159be6 to 00159bfb has its CatchHandler @ 00159bfc */
/* WARNING: Subroutine does not return */
__cxa_throw(pBVar3,&TypedBadConversion<aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options>
::typeinfo,BadInsert::~BadInsert);
}
|
|
10,780 |
LefDefParser::lefwInit(_IO_FILE*)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
|
int
lefwInit(FILE *f)
{
int i;
// Check if the user is valid
/* don't need anymore
if (!lefiValidUser())
exit(77);
*/
// if (lefwFile) return LEFW_BAD_ORDER;
lefwFile = f;
if (lefwHasInitCbk == 1) { // lefwInitCbk has already called, issue an error
fprintf(lefwFile,
"ERROR (LEFWRIT-4000): lefwInitCbk has already called, cannot call lefwInit again.\n");
fprintf(lefwFile, "Writer Exit.\n");
exit(LEFW_BAD_ORDER);
}
lefwState = LEFW_UNINIT; // Current state of writer
lefwDidInit = 0; // required section
for (i = 0; i < MAXSYN; i++)
lefwSynArray[i] = 0;
lefwDidInit = 1;
lefwState = LEFW_INIT;
lefwHasInit = 1;
return LEFW_OK;
}
|
O0
|
cpp
|
LefDefParser::lefwInit(_IO_FILE*):
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rcx
leaq 0x26e4b(%rip), %rax # 0x32e00
movq %rcx, (%rax)
leaq 0x27129(%rip), %rax # 0x330e8
cmpl $0x1, (%rax)
jne 0xbffe
leaq 0x26e35(%rip), %rax # 0x32e00
movq (%rax), %rdi
leaq 0x1dd91(%rip), %rsi # 0x29d66
movb $0x0, %al
callq 0x1100
leaq 0x26e1d(%rip), %rax # 0x32e00
movq (%rax), %rdi
leaq 0x1ddcc(%rip), %rsi # 0x29db9
movb $0x0, %al
callq 0x1100
movl $0x2, %edi
callq 0x10b0
leaq 0x2704b(%rip), %rax # 0x33050
movl $0x0, (%rax)
leaq 0x27042(%rip), %rax # 0x33054
movl $0x0, (%rax)
movl $0x0, 0xc(%rsp)
cmpl $0x8f, 0xc(%rsp)
jge 0xc04a
movslq 0xc(%rsp), %rcx
leaq 0x26dda(%rip), %rax # 0x32e10
movl $0x0, (%rax,%rcx,4)
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0xc020
leaq 0x27003(%rip), %rax # 0x33054
movl $0x1, (%rax)
leaq 0x26ff2(%rip), %rax # 0x33050
movl $0x1, (%rax)
leaq 0x27079(%rip), %rax # 0x330e4
movl $0x1, (%rax)
xorl %eax, %eax
addq $0x18, %rsp
retq
nopl (%rax,%rax)
|
_ZN12LefDefParser8lefwInitEP8_IO_FILE:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov rcx, [rsp+18h+var_8]
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov [rax], rcx
lea rax, _ZN12LefDefParser14lefwHasInitCbkE; LefDefParser::lefwHasInitCbk
cmp dword ptr [rax], 1
jnz short loc_BFFE
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
lea rsi, aErrorLefwrit40; "ERROR (LEFWRIT-4000): lefwInitCbk has a"...
mov al, 0
call _fprintf
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
lea rsi, aWriterExit; "Writer Exit.\n"
mov al, 0
call _fprintf
mov edi, 2
call _exit
loc_BFFE:
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
mov dword ptr [rax], 0
lea rax, _ZN12LefDefParser11lefwDidInitE; LefDefParser::lefwDidInit
mov dword ptr [rax], 0
mov [rsp+18h+var_C], 0
loc_C020:
cmp [rsp+18h+var_C], 8Fh
jge short loc_C04A
movsxd rcx, [rsp+18h+var_C]
lea rax, _ZN12LefDefParser12lefwSynArrayE; LefDefParser::lefwSynArray
mov dword ptr [rax+rcx*4], 0
mov eax, [rsp+18h+var_C]
add eax, 1
mov [rsp+18h+var_C], eax
jmp short loc_C020
loc_C04A:
lea rax, _ZN12LefDefParser11lefwDidInitE; LefDefParser::lefwDidInit
mov dword ptr [rax], 1
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
mov dword ptr [rax], 1
lea rax, _ZN12LefDefParser11lefwHasInitE; LefDefParser::lefwHasInit
mov dword ptr [rax], 1
xor eax, eax
add rsp, 18h
retn
|
long long LefDefParser::lefwInit(long long a1)
{
int i; // [rsp+Ch] [rbp-Ch]
LefDefParser::lefwFile = a1;
if ( LefDefParser::lefwHasInitCbk == 1 )
{
fprintf(
LefDefParser::lefwFile,
"ERROR (LEFWRIT-4000): lefwInitCbk has already called, cannot call lefwInit again.\n");
fprintf(LefDefParser::lefwFile, "Writer Exit.\n");
exit(2LL);
}
LefDefParser::lefwState = 0;
LefDefParser::lefwDidInit = 0;
for ( i = 0; i < 143; ++i )
LefDefParser::lefwSynArray[i] = 0;
LefDefParser::lefwDidInit = 1;
LefDefParser::lefwState = 1;
LefDefParser::lefwHasInit = 1;
return 0LL;
}
|
lefwInit:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV RCX,qword ptr [RSP + 0x10]
LEA RAX,[0x132e00]
MOV qword ptr [RAX],RCX
LEA RAX,[0x1330e8]
CMP dword ptr [RAX],0x1
JNZ 0x0010bffe
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x129d66]
MOV AL,0x0
CALL 0x00101100
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x129db9]
MOV AL,0x0
CALL 0x00101100
MOV EDI,0x2
CALL 0x001010b0
LAB_0010bffe:
LEA RAX,[0x133050]
MOV dword ptr [RAX],0x0
LEA RAX,[0x133054]
MOV dword ptr [RAX],0x0
MOV dword ptr [RSP + 0xc],0x0
LAB_0010c020:
CMP dword ptr [RSP + 0xc],0x8f
JGE 0x0010c04a
MOVSXD RCX,dword ptr [RSP + 0xc]
LEA RAX,[0x132e10]
MOV dword ptr [RAX + RCX*0x4],0x0
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,0x1
MOV dword ptr [RSP + 0xc],EAX
JMP 0x0010c020
LAB_0010c04a:
LEA RAX,[0x133054]
MOV dword ptr [RAX],0x1
LEA RAX,[0x133050]
MOV dword ptr [RAX],0x1
LEA RAX,[0x1330e4]
MOV dword ptr [RAX],0x1
XOR EAX,EAX
ADD RSP,0x18
RET
|
/* LefDefParser::lefwInit(_IO_FILE*) */
int8 LefDefParser::lefwInit(_IO_FILE *param_1)
{
int local_c;
lefwFile = param_1;
if (lefwHasInitCbk == 1) {
fprintf(param_1,
"ERROR (LEFWRIT-4000): lefwInitCbk has already called, cannot call lefwInit again.\n");
fprintf(lefwFile,"Writer Exit.\n");
/* WARNING: Subroutine does not return */
exit(2);
}
for (local_c = 0; local_c < 0x8f; local_c = local_c + 1) {
*(int4 *)(lefwSynArray + (long)local_c * 4) = 0;
}
lefwDidInit = 1;
lefwState = 1;
lefwHasInit = 1;
return 0;
}
|
|
10,781 |
get_store_length
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
static size_t get_store_length(size_t length)
{
#define MAX_STORE_SIZE 9
unsigned char buffer[MAX_STORE_SIZE], *p;
/* We just store the length and subtract offset of our buffer
to determine the length */
p= mysql_net_store_length(buffer, length);
return p - buffer;
}
|
O0
|
c
|
get_store_length:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x20(%rbp)
movq -0x20(%rbp), %rsi
leaq -0x11(%rbp), %rdi
movq %rdi, -0x38(%rbp)
callq 0x4a5f0
movq -0x38(%rbp), %rcx
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x30(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x448e9
movq -0x30(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
callq 0x362a0
nop
|
get_store_length:
push rbp
mov rbp, rsp
sub rsp, 40h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_20], rdi
mov rsi, [rbp+var_20]
lea rdi, [rbp+var_11]
mov [rbp+var_38], rdi
call mysql_net_store_length
mov rcx, [rbp+var_38]
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
sub rax, rcx
mov [rbp+var_30], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_448E9
mov rax, [rbp+var_30]
add rsp, 40h
pop rbp
retn
loc_448E9:
call ___stack_chk_fail
|
long long get_store_length(long long a1)
{
_BYTE v2[9]; // [rsp+2Fh] [rbp-11h] BYREF
unsigned long long v3; // [rsp+38h] [rbp-8h]
v3 = __readfsqword(0x28u);
return mysql_net_store_length(v2, a1) - (_QWORD)v2;
}
|
get_store_length:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x20],RDI
MOV RSI,qword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x11]
MOV qword ptr [RBP + -0x38],RDI
CALL 0x0014a5f0
MOV RCX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
SUB RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001448e9
MOV RAX,qword ptr [RBP + -0x30]
ADD RSP,0x40
POP RBP
RET
LAB_001448e9:
CALL 0x001362a0
|
long get_store_length(int8 param_1)
{
long lVar1;
long in_FS_OFFSET;
int1 local_19 [9];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
lVar1 = mysql_net_store_length(local_19,param_1);
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return lVar1 - (long)local_19;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
10,782 |
int minja::Value::get<int>() const
|
monkey531[P]llama/common/minja.hpp
|
T get() const {
if (is_primitive()) return primitive_.get<T>();
throw std::runtime_error("get<T> not defined for this value type: " + dump());
}
|
O0
|
cpp
|
int minja::Value::get<int>() const:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq 0x60(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x1232f0
testb $0x1, %al
jne 0x13c45e
jmp 0x13c471
movq 0x8(%rsp), %rdi
addq $0x40, %rdi
callq 0x13c630
addq $0x68, %rsp
retq
movb $0x1, 0x13(%rsp)
movl $0x10, %edi
callq 0x5e6b0
movq 0x8(%rsp), %rsi
movq %rax, (%rsp)
leaq 0x20(%rsp), %rdi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x123370
jmp 0x13c49c
leaq 0xe32eb(%rip), %rsi # 0x21f78e
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0x108300
jmp 0x13c4b4
movq (%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x5e4e0
jmp 0x13c4c4
movq (%rsp), %rdi
movb $0x0, 0x13(%rsp)
movq 0x176adc(%rip), %rsi # 0x2b2fb0
movq 0x176a9d(%rip), %rdx # 0x2b2f78
callq 0x5eb30
jmp 0x13c542
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
jmp 0x13c524
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
jmp 0x13c51a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x5f5d8
leaq 0x20(%rsp), %rdi
callq 0x5f5d8
testb $0x1, 0x13(%rsp)
jne 0x13c52d
jmp 0x13c536
movq (%rsp), %rdi
callq 0x5efd0
jmp 0x13c538
movq 0x18(%rsp), %rdi
callq 0x5ebf0
nopw %cs:(%rax,%rax)
nopl (%rax)
|
_ZNK5minja5Value3getIiEET_v:
sub rsp, 68h
mov [rsp+68h+var_8], rdi
mov rdi, [rsp+68h+var_8]; this
mov [rsp+68h+var_60], rdi
call _ZNK5minja5Value12is_primitiveEv; minja::Value::is_primitive(void)
test al, 1
jnz short loc_13C45E
jmp short loc_13C471
loc_13C45E:
mov rdi, [rsp+68h+var_60]
add rdi, 40h ; '@'
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE3getIiiEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalIT_ELi0EEEvEE8get_implIT0_EtlNS0_6detail12priority_tagILj4EEEEEEv
add rsp, 68h
retn
loc_13C471:
mov [rsp+68h+var_55], 1
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rsi, [rsp+68h+var_60]
mov [rsp+68h+var_68], rax
lea rdi, [rsp+68h+var_48]
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
jmp short $+2
loc_13C49C:
lea rsi, aGetTNotDefined; "get<T> not defined for this value type:"...
lea rdi, [rsp+68h+var_28]
lea rdx, [rsp+68h+var_48]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
jmp short $+2
loc_13C4B4:
mov rdi, [rsp+68h+var_68]
lea rsi, [rsp+68h+var_28]
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
jmp short $+2
loc_13C4C4:
mov rdi, [rsp+68h+var_68]; void *
mov [rsp+68h+var_55], 0
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
|
long long minja::Value::get<int>(minja::Value *a1)
{
void *exception; // [rsp+0h] [rbp-68h]
_BYTE v3[32]; // [rsp+20h] [rbp-48h] BYREF
_BYTE v4[32]; // [rsp+40h] [rbp-28h] BYREF
minja::Value *v5; // [rsp+60h] [rbp-8h]
v5 = a1;
if ( (minja::Value::is_primitive(a1) & 1) == 0 )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v3, (long long)a1, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v4, (long long)"get<T> not defined for this value type: ", (long long)v3);
std::runtime_error::runtime_error(exception, v4);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get<int,int>((char *)a1 + 64);
}
| |||
10,783 |
int minja::Value::get<int>() const
|
monkey531[P]llama/common/minja.hpp
|
T get() const {
if (is_primitive()) return primitive_.get<T>();
throw std::runtime_error("get<T> not defined for this value type: " + dump());
}
|
O1
|
cpp
|
int minja::Value::get<int>() const:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
cmpq $0x0, 0x10(%rdi)
jne 0x96a93
cmpq $0x0, 0x20(%r14)
jne 0x96a93
cmpq $0x0, 0x30(%r14)
jne 0x96a93
addq $0x40, %r14
movq %rsp, %rbx
movl $0x0, (%rbx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x96b4c
movl (%rbx), %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x10, %edi
callq 0x1b450
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x8c5e0
leaq 0x612d4(%rip), %rsi # 0xf7d8f
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x7e407
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x1be70
xorl %ebp, %ebp
movq 0x9d509(%rip), %rsi # 0x133fe8
movq 0x9d472(%rip), %rdx # 0x133f58
movq %rbx, %rdi
callq 0x1bf60
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x96b14
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b910
jmp 0x96b14
movq %rax, %r14
movb $0x1, %bpl
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x96b37
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1b910
jmp 0x96b37
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x96b44
movq %rbx, %rdi
callq 0x1b690
movq %r14, %rdi
callq 0x1bff0
|
_ZNK5minja5Value3getIiEET_v:
push rbp
push r14
push rbx
sub rsp, 40h
mov r14, rdi
cmp qword ptr [rdi+10h], 0
jnz short loc_96A93
cmp qword ptr [r14+20h], 0
jnz short loc_96A93
cmp qword ptr [r14+30h], 0
jnz short loc_96A93
add r14, 40h ; '@'
mov rbx, rsp
mov dword ptr [rbx], 0
mov rdi, r14
mov rsi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_
mov eax, [rbx]
add rsp, 40h
pop rbx
pop r14
pop rbp
retn
loc_96A93:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+58h+var_38]
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aGetTNotDefined; "get<T> not defined for this value type:"...
mov rdi, rsp
lea rdx, [rsp+58h+var_38]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
mov rsi, rsp
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+58h+var_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_96B14
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_96B14
mov r14, rax
mov bpl, 1
loc_96B14:
lea rax, [rsp+58h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_96B37
mov rsi, [rsp+58h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_96B37
mov r14, rax
mov bpl, 1
loc_96B37:
test bpl, bpl
jz short loc_96B44
mov rdi, rbx; void *
call ___cxa_free_exception
loc_96B44:
mov rdi, r14
call __Unwind_Resume
|
long long minja::Value::get<int>(_QWORD *a1)
{
void *exception; // rbx
_DWORD v3[4]; // [rsp+0h] [rbp-58h] BYREF
_BYTE v4[16]; // [rsp+20h] [rbp-38h] BYREF
if ( a1[2] || a1[4] || a1[6] )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v4, (long long)a1, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v3, (long long)"get<T> not defined for this value type: ", (long long)v4);
std::runtime_error::runtime_error(exception, v3);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v3[0] = 0;
ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_(
a1 + 8,
v3);
return v3[0];
}
|
get<int>:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV R14,RDI
CMP qword ptr [RDI + 0x10],0x0
JNZ 0x00196a93
CMP qword ptr [R14 + 0x20],0x0
JNZ 0x00196a93
CMP qword ptr [R14 + 0x30],0x0
JNZ 0x00196a93
ADD R14,0x40
MOV RBX,RSP
MOV dword ptr [RBX],0x0
MOV RDI,R14
MOV RSI,RBX
CALL 0x00196b4c
MOV EAX,dword ptr [RBX]
ADD RSP,0x40
POP RBX
POP R14
POP RBP
RET
LAB_00196a93:
MOV EDI,0x10
CALL 0x0011b450
MOV RBX,RAX
LAB_00196aa0:
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0018c5e0
LAB_00196ab4:
LEA RSI,[0x1f7d8f]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x0017e407
MOV BPL,0x1
LAB_00196acb:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0011be70
XOR EBP,EBP
MOV RSI,qword ptr [0x00233fe8]
MOV RDX,qword ptr [0x00233f58]
MOV RDI,RBX
CALL 0x0011bf60
|
/* int minja::Value::get<int>() const */
int __thiscall minja::Value::get<int>(Value *this)
{
runtime_error *this_00;
int local_58 [8];
int1 local_38 [32];
if (((*(long *)(this + 0x10) == 0) && (*(long *)(this + 0x20) == 0)) &&
(*(long *)(this + 0x30) == 0)) {
local_58[0] = 0;
_ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_
(this + 0x40,local_58);
return local_58[0];
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00196aa0 to 00196ab3 has its CatchHandler @ 00196b31 */
dump_abi_cxx11_((int)local_38,SUB81(this,0));
/* try { // try from 00196ab4 to 00196ac7 has its CatchHandler @ 00196b0e */
std::operator+((char *)local_58,(string *)"get<T> not defined for this value type: ");
/* try { // try from 00196acb to 00196aed has its CatchHandler @ 00196aee */
std::runtime_error::runtime_error(this_00,(string *)local_58);
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_00233fe8,PTR__runtime_error_00233f58);
}
|
|
10,784 |
int minja::Value::get<int>() const
|
monkey531[P]llama/common/minja.hpp
|
T get() const {
if (is_primitive()) return primitive_.get<T>();
throw std::runtime_error("get<T> not defined for this value type: " + dump());
}
|
O2
|
cpp
|
int minja::Value::get<int>() const:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x67bb2
testb %al, %al
je 0x6862b
addq $0x40, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6888c
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x24470
movq %rax, %rbx
movq %rsp, %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x67bc2
leaq 0x50742(%rip), %rsi # 0xb8d8f
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x5d362
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x24e80
xorl %ebp, %ebp
movq 0x9b97d(%rip), %rsi # 0x103ff0
movq 0x9b8de(%rip), %rdx # 0x103f58
movq %rbx, %rdi
callq 0x24f50
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x25258
jmp 0x68697
movq %rax, %r14
movb $0x1, %bpl
movq %rsp, %rdi
callq 0x25258
testb %bpl, %bpl
jne 0x686a9
jmp 0x686b1
movq %rax, %r14
movq %rbx, %rdi
callq 0x246b0
movq %r14, %rdi
callq 0x24fe0
nop
|
_ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v:
push rbp
push r14
push rbx
sub rsp, 40h
mov r14, rsi
mov rbx, rdi
mov rdi, rsi; this
call _ZNK5minja5Value12is_primitiveEv; minja::Value::is_primitive(void)
test al, al
jz short loc_6862B
add r14, 40h ; '@'
mov rdi, rbx
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
mov rax, rbx
add rsp, 40h
pop rbx
pop r14
pop rbp
retn
loc_6862B:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, rsp
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aGetTNotDefined; "get<T> not defined for this value type:"...
lea rdi, [rsp+58h+var_38]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+58h+var_38]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rdi, [rsp+58h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_68697
mov r14, rax
mov bpl, 1
loc_68697:
mov rdi, rsp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_686A9
jmp short loc_686B1
mov r14, rax
loc_686A9:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_686B1:
mov rdi, r14
call __Unwind_Resume
|
long long minja::Value::get<std::string>(long long a1, minja::Value *a2)
{
void *exception; // rbx
_BYTE v4[32]; // [rsp+0h] [rbp-58h] BYREF
_BYTE v5[56]; // [rsp+20h] [rbp-38h] BYREF
if ( !minja::Value::is_primitive(a2) )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v4, (long long)a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v5, (long long)"get<T> not defined for this value type: ", (long long)v4);
std::runtime_error::runtime_error(exception, v5);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
a1,
(char *)a2 + 64);
return a1;
}
|
get<std::__cxx11::string>:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSI
CALL 0x00167bb2
TEST AL,AL
JZ 0x0016862b
ADD R14,0x40
MOV RDI,RBX
MOV RSI,R14
CALL 0x0016888c
MOV RAX,RBX
ADD RSP,0x40
POP RBX
POP R14
POP RBP
RET
LAB_0016862b:
PUSH 0x10
POP RDI
CALL 0x00124470
MOV RBX,RAX
LAB_00168636:
MOV RDI,RSP
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x00167bc2
LAB_00168646:
LEA RSI,[0x1b8d8f]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x0015d362
MOV BPL,0x1
LAB_0016865d:
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x00124e80
XOR EBP,EBP
MOV RSI,qword ptr [0x00203ff0]
MOV RDX,qword ptr [0x00203f58]
MOV RDI,RBX
CALL 0x00124f50
|
/* std::__cxx11::string minja::Value::get<std::__cxx11::string >() const */
void minja::Value::get<std::__cxx11::string>(void)
{
char cVar1;
runtime_error *this;
Value *in_RSI;
int1 auStack_58 [32];
string local_38 [32];
cVar1 = is_primitive(in_RSI);
if (cVar1 != '\0') {
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
();
return;
}
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00168636 to 00168645 has its CatchHandler @ 001686a6 */
dump_abi_cxx11_((int)auStack_58,SUB81(in_RSI,0));
/* try { // try from 00168646 to 00168659 has its CatchHandler @ 00168691 */
std::operator+((char *)local_38,(string *)"get<T> not defined for this value type: ");
/* try { // try from 0016865d to 00168681 has its CatchHandler @ 00168682 */
std::runtime_error::runtime_error(this,local_38);
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_00203ff0,PTR__runtime_error_00203f58);
}
|
|
10,785 |
int minja::Value::get<int>() const
|
monkey531[P]llama/common/minja.hpp
|
T get() const {
if (is_primitive()) return primitive_.get<T>();
throw std::runtime_error("get<T> not defined for this value type: " + dump());
}
|
O3
|
cpp
|
int minja::Value::get<int>() const:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
cmpq $0x0, 0x10(%rsi)
jne 0x8cf39
cmpq $0x0, 0x20(%r14)
jne 0x8cf39
cmpq $0x0, 0x30(%r14)
jne 0x8cf39
movq %rdi, %rbx
addq $0x40, %r14
movq %r14, %rsi
callq 0x8d1e0
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x10, %edi
callq 0x1b450
movq %rax, %rbx
movq %rsp, %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x8c0b0
leaq 0x67e20(%rip), %rsi # 0xf4d7f
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x7e879
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x1be70
xorl %ebp, %ebp
movq 0xa4063(%rip), %rsi # 0x130fe8
movq 0xa3fcc(%rip), %rdx # 0x130f58
movq %rbx, %rdi
callq 0x1bf60
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8cfb2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1b910
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8cfcd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b910
testb %bpl, %bpl
jne 0x8cff7
jmp 0x8cfff
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8cff7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b910
jmp 0x8cff7
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b690
movq %r14, %rdi
callq 0x1bff0
nop
|
_ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v:
push rbp
push r14
push rbx
sub rsp, 40h
mov r14, rsi
cmp qword ptr [rsi+10h], 0
jnz short loc_8CF39
cmp qword ptr [r14+20h], 0
jnz short loc_8CF39
cmp qword ptr [r14+30h], 0
jnz short loc_8CF39
mov rbx, rdi
add r14, 40h ; '@'
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
mov rax, rbx
add rsp, 40h
pop rbx
pop r14
pop rbp
retn
loc_8CF39:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, rsp
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aGetTNotDefined; "get<T> not defined for this value type:"...
lea rdi, [rsp+58h+var_38]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+58h+var_38]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+58h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_8CFB2
mov rsi, [rsp+58h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8CFB2:
lea rax, [rsp+58h+var_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_8CFCD
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8CFCD:
test bpl, bpl
jnz short loc_8CFF7
jmp short loc_8CFFF
mov r14, rax
lea rax, [rsp+58h+var_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_8CFF7
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_8CFF7
mov r14, rax
loc_8CFF7:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_8CFFF:
mov rdi, r14
call __Unwind_Resume
|
long long minja::Value::get<std::string>(long long a1, _QWORD *a2)
{
void *exception; // rbx
_BYTE v4[16]; // [rsp+0h] [rbp-58h] BYREF
_BYTE v5[16]; // [rsp+20h] [rbp-38h] BYREF
if ( a2[2] || a2[4] || a2[6] )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v4, (long long)a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v5, (long long)"get<T> not defined for this value type: ", (long long)v4);
std::runtime_error::runtime_error(exception, v5);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
a1,
a2 + 8);
return a1;
}
|
get<std::__cxx11::string>:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV R14,RSI
CMP qword ptr [RSI + 0x10],0x0
JNZ 0x0018cf39
CMP qword ptr [R14 + 0x20],0x0
JNZ 0x0018cf39
CMP qword ptr [R14 + 0x30],0x0
JNZ 0x0018cf39
MOV RBX,RDI
ADD R14,0x40
MOV RSI,R14
CALL 0x0018d1e0
MOV RAX,RBX
ADD RSP,0x40
POP RBX
POP R14
POP RBP
RET
LAB_0018cf39:
MOV EDI,0x10
CALL 0x0011b450
MOV RBX,RAX
LAB_0018cf46:
MOV RDI,RSP
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0018c0b0
LAB_0018cf58:
LEA RSI,[0x1f4d7f]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x0017e879
MOV BPL,0x1
LAB_0018cf6f:
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x0011be70
XOR EBP,EBP
MOV RSI,qword ptr [0x00230fe8]
MOV RDX,qword ptr [0x00230f58]
MOV RDI,RBX
CALL 0x0011bf60
|
/* std::__cxx11::string minja::Value::get<std::__cxx11::string >() const */
void minja::Value::get<std::__cxx11::string>(void)
{
runtime_error *this;
long in_RSI;
int8 in_RDI;
int1 auStack_58 [32];
string local_38 [32];
if (((*(long *)(in_RSI + 0x10) == 0) && (*(long *)(in_RSI + 0x20) == 0)) &&
(*(long *)(in_RSI + 0x30) == 0)) {
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(in_RDI,in_RSI + 0x40);
return;
}
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0018cf46 to 0018cf57 has its CatchHandler @ 0018cff4 */
dump_abi_cxx11_((int)auStack_58,SUB81(in_RSI,0));
/* try { // try from 0018cf58 to 0018cf6b has its CatchHandler @ 0018cfd4 */
std::operator+((char *)local_38,(string *)"get<T> not defined for this value type: ");
/* try { // try from 0018cf6f to 0018cf93 has its CatchHandler @ 0018cf94 */
std::runtime_error::runtime_error(this,local_38);
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_00230fe8,PTR__runtime_error_00230f58);
}
|
|
10,786 |
write_hook_for_undo
|
eloqsql/storage/maria/ma_blockrec.c
|
my_bool write_hook_for_undo(enum translog_record_type type
__attribute__ ((unused)),
TRN *trn, MARIA_HA *tbl_info
__attribute__ ((unused)),
LSN *lsn, void *hook_arg
__attribute__ ((unused)))
{
DBUG_ASSERT(trn->trid != 0);
trn->undo_lsn= *lsn;
if (unlikely(LSN_WITH_FLAGS_TO_LSN(trn->first_undo_lsn) == 0))
trn->first_undo_lsn=
trn->undo_lsn | LSN_WITH_FLAGS_TO_FLAGS(trn->first_undo_lsn);
return 0;
/*
when we implement purging, we will specialize this hook: UNDO_PURGE
records will additionally set trn->undo_purge_lsn
*/
}
|
O0
|
c
|
write_hook_for_undo:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
jmp 0x79629
movq -0x20(%rbp), %rax
movq (%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x98(%rax)
movq -0x10(%rbp), %rcx
movabsq $0xffffffffffffff, %rax # imm = 0xFFFFFFFFFFFFFF
andq 0xa0(%rcx), %rax
cmpq $0x0, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x7969d
movq -0x10(%rbp), %rax
movq 0x98(%rax), %rcx
movq -0x10(%rbp), %rdx
movabsq $-0x100000000000000, %rax # imm = 0xFF00000000000000
andq 0xa0(%rdx), %rax
orq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0xa0(%rax)
xorl %eax, %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
write_hook_for_undo:
push rbp
mov rbp, rsp
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
jmp short $+2
loc_79629:
mov rax, [rbp+var_20]
mov rcx, [rax]
mov rax, [rbp+var_10]
mov [rax+98h], rcx
mov rcx, [rbp+var_10]
mov rax, 0FFFFFFFFFFFFFFh
and rax, [rcx+0A0h]
cmp rax, 0
setz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_7969D
mov rax, [rbp+var_10]
mov rcx, [rax+98h]
mov rdx, [rbp+var_10]
mov rax, 0FF00000000000000h
and rax, [rdx+0A0h]
or rcx, rax
mov rax, [rbp+var_10]
mov [rax+0A0h], rcx
loc_7969D:
xor eax, eax
pop rbp
retn
|
long long write_hook_for_undo(long long a1, long long a2, long long a3, _QWORD *a4)
{
*(_QWORD *)(a2 + 152) = *a4;
if ( (*(_QWORD *)(a2 + 160) & 0xFFFFFFFFFFFFFFLL) == 0 )
*(_QWORD *)(a2 + 160) = *(_QWORD *)(a2 + 160) & 0xFF00000000000000LL | *(_QWORD *)(a2 + 152);
return 0LL;
}
|
write_hook_for_undo:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
JMP 0x00179629
LAB_00179629:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x98],RCX
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,0xffffffffffffff
AND RAX,qword ptr [RCX + 0xa0]
CMP RAX,0x0
SETZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0017969d
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x98]
MOV RDX,qword ptr [RBP + -0x10]
MOV RAX,-0x100000000000000
AND RAX,qword ptr [RDX + 0xa0]
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0xa0],RCX
LAB_0017969d:
XOR EAX,EAX
POP RBP
RET
|
int8
write_hook_for_undo(int8 param_1,long param_2,int8 param_3,int8 *param_4)
{
*(int8 *)(param_2 + 0x98) = *param_4;
if ((*(ulong *)(param_2 + 0xa0) & 0xffffffffffffff) == 0) {
*(ulong *)(param_2 + 0xa0) =
*(ulong *)(param_2 + 0x98) | *(ulong *)(param_2 + 0xa0) & 0xff00000000000000;
}
return 0;
}
|
|
10,787 |
Elevetor::qt_metacall(QMetaObject::Call, int, void**)
|
LeafBlue[P]myElevetor/build_O0/myElevetor_autogen/EWIEGA46WW/moc_elevetor.cpp
|
int Elevetor::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QObject::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 1)
qt_static_metacall(this, _c, _id, _a);
_id -= 1;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 1)
*reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
_id -= 1;
}
return _id;
}
|
O0
|
cpp
|
Elevetor::qt_metacall(QMetaObject::Call, int, void**):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x30(%rbp)
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
movq -0x20(%rbp), %rcx
callq 0x5340
movl %eax, -0x18(%rbp)
cmpl $0x0, -0x18(%rbp)
jge 0x58be
movl -0x18(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x592c
cmpl $0x0, -0x14(%rbp)
jne 0x58e8
cmpl $0x1, -0x18(%rbp)
jge 0x58dd
movq -0x30(%rbp), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
movq -0x20(%rbp), %rcx
callq 0x56d0
movl -0x18(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x5926
cmpl $0x7, -0x14(%rbp)
jne 0x5924
cmpl $0x1, -0x18(%rbp)
jge 0x591b
leaq -0x28(%rbp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x5110
leaq -0x28(%rbp), %rdi
callq 0x5b40
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq -0x28(%rbp), %rcx
movq %rcx, (%rax)
movl -0x18(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x5926
movl -0x18(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ZN8Elevetor11qt_metacallEN11QMetaObject4CallEiPPv:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
mov rdi, [rbp+var_10]
mov [rbp+var_30], rdi
mov esi, [rbp+var_14]
mov edx, [rbp+var_18]
mov rcx, [rbp+var_20]
call __ZN7QObject11qt_metacallEN11QMetaObject4CallEiPPv; QObject::qt_metacall(QMetaObject::Call,int,void **)
mov [rbp+var_18], eax
cmp [rbp+var_18], 0
jge short loc_58BE
mov eax, [rbp+var_18]
mov [rbp+var_4], eax
jmp short loc_592C
loc_58BE:
cmp [rbp+var_14], 0
jnz short loc_58E8
cmp [rbp+var_18], 1
jge short loc_58DD
mov rdi, [rbp+var_30]
mov esi, [rbp+var_14]
mov edx, [rbp+var_18]
mov rcx, [rbp+var_20]
call _ZN8Elevetor18qt_static_metacallEP7QObjectN11QMetaObject4CallEiPPv; Elevetor::qt_static_metacall(QObject *,QMetaObject::Call,int,void **)
loc_58DD:
mov eax, [rbp+var_18]
sub eax, 1
mov [rbp+var_18], eax
jmp short loc_5926
loc_58E8:
cmp [rbp+var_14], 7
jnz short loc_5924
cmp [rbp+var_18], 1
jge short loc_591B
lea rdi, [rbp+var_28]
xor esi, esi
mov edx, 8
call _memset
lea rdi, [rbp+var_28]; this
call _ZN9QMetaTypeC2Ev; QMetaType::QMetaType(void)
mov rax, [rbp+var_20]
mov rax, [rax]
mov rcx, [rbp+var_28]
mov [rax], rcx
loc_591B:
mov eax, [rbp+var_18]
sub eax, 1
mov [rbp+var_18], eax
loc_5924:
jmp short $+2
loc_5926:
mov eax, [rbp+var_18]
mov [rbp+var_4], eax
loc_592C:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
long long Elevetor::qt_metacall(Elevetor *a1, unsigned int a2, unsigned int a3, _QWORD **a4)
{
long long v5; // [rsp+8h] [rbp-28h] BYREF
_QWORD **v6; // [rsp+10h] [rbp-20h]
int v7; // [rsp+18h] [rbp-18h]
unsigned int v8; // [rsp+1Ch] [rbp-14h]
Elevetor *v9; // [rsp+20h] [rbp-10h]
v9 = a1;
v8 = a2;
v6 = a4;
v7 = QObject::qt_metacall(a1, a2, a3, a4);
if ( v7 >= 0 )
{
if ( v8 )
{
if ( v8 == 7 )
{
if ( v7 < 1 )
{
memset(&v5, 0LL, sizeof(v5));
QMetaType::QMetaType((QMetaType *)&v5);
**v6 = v5;
}
--v7;
}
}
else
{
if ( v7 < 1 )
Elevetor::qt_static_metacall(a1, v8, v7, (long long)v6);
--v7;
}
return (unsigned int)v7;
}
else
{
return (unsigned int)v7;
}
}
|
qt_metacall:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV RDI,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x30],RDI
MOV ESI,dword ptr [RBP + -0x14]
MOV EDX,dword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
CALL 0x00105340
MOV dword ptr [RBP + -0x18],EAX
CMP dword ptr [RBP + -0x18],0x0
JGE 0x001058be
MOV EAX,dword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0010592c
LAB_001058be:
CMP dword ptr [RBP + -0x14],0x0
JNZ 0x001058e8
CMP dword ptr [RBP + -0x18],0x1
JGE 0x001058dd
MOV RDI,qword ptr [RBP + -0x30]
MOV ESI,dword ptr [RBP + -0x14]
MOV EDX,dword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
CALL 0x001056d0
LAB_001058dd:
MOV EAX,dword ptr [RBP + -0x18]
SUB EAX,0x1
MOV dword ptr [RBP + -0x18],EAX
JMP 0x00105926
LAB_001058e8:
CMP dword ptr [RBP + -0x14],0x7
JNZ 0x00105924
CMP dword ptr [RBP + -0x18],0x1
JGE 0x0010591b
LEA RDI,[RBP + -0x28]
XOR ESI,ESI
MOV EDX,0x8
CALL 0x00105110
LEA RDI,[RBP + -0x28]
CALL 0x00105b40
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
LAB_0010591b:
MOV EAX,dword ptr [RBP + -0x18]
SUB EAX,0x1
MOV dword ptr [RBP + -0x18],EAX
LAB_00105924:
JMP 0x00105926
LAB_00105926:
MOV EAX,dword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x4],EAX
LAB_0010592c:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
/* Elevetor::qt_metacall(QMetaObject::Call, int, void**) */
int __thiscall
Elevetor::qt_metacall(Elevetor *this,int param_2,int4 param_3,int8 *param_4)
{
int8 local_30;
int8 *local_28;
int local_20;
int local_1c;
Elevetor *local_18;
int local_c;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = this;
local_20 = QObject::qt_metacall(this,param_2,param_3,param_4);
local_c = local_20;
if (-1 < local_20) {
if (local_1c == 0) {
if (local_20 < 1) {
qt_static_metacall(this,0,local_20,local_28);
}
local_20 = local_20 + -1;
}
else if (local_1c == 7) {
if (local_20 < 1) {
memset(&local_30,0,8);
QMetaType::QMetaType((QMetaType *)&local_30);
*(int8 *)*local_28 = local_30;
}
local_20 = local_20 + -1;
}
local_c = local_20;
}
return local_c;
}
|
|
10,788 |
mjs_attachBody
|
aimrt_mujoco_sim/_deps/mujoco-src/src/user/user_api.cc
|
int mjs_attachBody(mjsFrame* parent, const mjsBody* child,
const char* prefix, const char* suffix) {
mjCFrame* frame_parent = static_cast<mjCFrame*>(parent->element);
mjCBody* child_body = static_cast<mjCBody*>(child->element);
*frame_parent += std::string(prefix) + *child_body + std::string(suffix);
return 0;
}
|
O3
|
cpp
|
mjs_attachBody:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq %rcx, %r15
movq (%rdi), %rax
leaq -0x8(%rax), %rbx
testq %rax, %rax
cmoveq %rax, %rbx
movq (%rsi), %r13
leaq 0x50(%rsp), %r12
leaq 0xf(%rsp), %rax
movq %r12, %rdi
movq %rdx, %rsi
movq %rax, %rdx
callq 0x7caf2
leaq -0x8(%r13), %r14
testq %r13, %r13
cmoveq %r13, %r14
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x30(%rsp), %rdi
callq 0x2dec0
leaq 0x70(%r14), %rdi
leaq 0x30(%rsp), %r12
movq %r12, %rsi
callq 0x2e680
movq (%r12), %rdi
cmpq %r13, %rdi
je 0xb6fc1
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2ded0
leaq 0x10(%rsp), %rdi
leaq 0xe(%rsp), %rdx
movq %r15, %rsi
callq 0x7caf2
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %rdi
movq %r13, (%rdi)
callq 0x2dec0
leaq 0x90(%r14), %rdi
leaq 0x30(%rsp), %r15
movq %r15, %rsi
callq 0x2e680
movq (%r15), %rdi
cmpq %r13, %rdi
je 0xb7016
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2ded0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1168a6
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb703c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2ded0
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb7057
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2ded0
xorl %eax, %eax
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0xb7069
movq %rax, %rbx
jmp 0xb708c
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb708c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2ded0
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb70a7
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2ded0
movq %rbx, %rdi
callq 0x2dee0
|
mjs_attachBody:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 70h
mov r15, rcx
mov rax, [rdi]
lea rbx, [rax-8]
test rax, rax
cmovz rbx, rax
mov r13, [rsi]
lea r12, [rsp+98h+var_48]
lea rax, [rsp+98h+var_89]
mov rdi, r12
mov rsi, rdx
mov rdx, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea r14, [r13-8]
test r13, r13
cmovz r14, r13
mov rsi, [r12]
mov rdx, [r12+8]
add rdx, rsi
lea r13, [rsp+98h+var_58]
mov [r13-10h], r13
lea rdi, [rsp+98h+var_68]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [r14+70h]
lea r12, [rsp+98h+var_68]
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r12]; void *
cmp rdi, r13
jz short loc_B6FC1
mov rsi, [rsp+98h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B6FC1:
lea rdi, [rsp+98h+var_88]
lea rdx, [rsp+98h+var_8A]
mov rsi, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rsi, [rsp+98h+var_88]
mov rdx, [rsp+98h+var_80]
add rdx, rsi
lea rdi, [rsp+98h+var_68]
mov [rdi], r13
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [r14+90h]
lea r15, [rsp+98h+var_68]
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r15]; void *
cmp rdi, r13
jz short loc_B7016
mov rsi, [rsp+98h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B7016:
mov rdi, rbx
mov rsi, r14
call _ZN8mjCFramepLERK7mjCBody; mjCFrame::operator+=(mjCBody const&)
lea rax, [rsp+98h+var_78]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B703C
mov rsi, [rsp+98h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B703C:
lea rax, [rsp+98h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B7057
mov rsi, [rsp+98h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B7057:
xor eax, eax
add rsp, 70h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
jmp short $+2
loc_B7069:
mov rbx, rax
jmp short loc_B708C
mov rbx, rax
lea rax, [rsp+arg_18]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B708C
mov rsi, [rsp+arg_18]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B708C:
lea rax, [rsp+arg_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B70A7
mov rsi, [rsp+arg_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B70A7:
mov rdi, rbx
call __Unwind_Resume
|
long long mjs_attachBody(_QWORD *a1, long long *a2, long long a3, long long a4)
{
long long v5; // rbx
long long v6; // r13
long long v7; // r14
void *v9[2]; // [rsp+10h] [rbp-88h] BYREF
long long v10; // [rsp+20h] [rbp-78h] BYREF
void *v11[2]; // [rsp+30h] [rbp-68h] BYREF
_QWORD v12[2]; // [rsp+40h] [rbp-58h] BYREF
void *v13[2]; // [rsp+50h] [rbp-48h] BYREF
long long v14; // [rsp+60h] [rbp-38h] BYREF
v5 = *a1 - 8LL;
if ( !*a1 )
v5 = 0LL;
v6 = *a2;
std::string::basic_string<std::allocator<char>>(v13, a3);
v7 = v6 - 8;
if ( !v6 )
v7 = 0LL;
v11[0] = v12;
std::string::_M_construct<char const*>(v11, v13[0], (char *)v13[0] + (unsigned long long)v13[1]);
std::string::operator=(v7 + 112, v11);
if ( v11[0] != v12 )
operator delete(v11[0], v12[0] + 1LL);
std::string::basic_string<std::allocator<char>>(v9, a4);
v11[0] = v12;
std::string::_M_construct<char const*>(v11, v9[0], (char *)v9[0] + (unsigned long long)v9[1]);
std::string::operator=(v7 + 144, v11);
if ( v11[0] != v12 )
operator delete(v11[0], v12[0] + 1LL);
mjCFrame::operator+=(v5, v7);
if ( v9[0] != &v10 )
operator delete(v9[0], v10 + 1);
if ( v13[0] != &v14 )
operator delete(v13[0], v14 + 1);
return 0LL;
}
|
mjs_attachBody:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x70
MOV R15,RCX
MOV RAX,qword ptr [RDI]
LEA RBX,[RAX + -0x8]
TEST RAX,RAX
CMOVZ RBX,RAX
MOV R13,qword ptr [RSI]
LEA R12,[RSP + 0x50]
LEA RAX,[RSP + 0xf]
MOV RDI,R12
MOV RSI,RDX
MOV RDX,RAX
CALL 0x0017caf2
LEA R14,[R13 + -0x8]
TEST R13,R13
CMOVZ R14,R13
MOV RSI,qword ptr [R12]
MOV RDX,qword ptr [R12 + 0x8]
ADD RDX,RSI
LEA R13,[RSP + 0x40]
MOV qword ptr [R13 + -0x10],R13
LAB_001b6f90:
LEA RDI,[RSP + 0x30]
CALL 0x0012dec0
LEA RDI,[R14 + 0x70]
LEA R12,[RSP + 0x30]
MOV RSI,R12
CALL 0x0012e680
MOV RDI,qword ptr [R12]
CMP RDI,R13
JZ 0x001b6fc1
MOV RSI,qword ptr [RSP + 0x40]
INC RSI
CALL 0x0012ded0
LAB_001b6fc1:
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0xe]
MOV RSI,R15
CALL 0x0017caf2
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x18]
ADD RDX,RSI
LEA RDI,[RSP + 0x30]
MOV qword ptr [RDI],R13
LAB_001b6fe8:
CALL 0x0012dec0
LEA RDI,[R14 + 0x90]
LEA R15,[RSP + 0x30]
MOV RSI,R15
CALL 0x0012e680
MOV RDI,qword ptr [R15]
CMP RDI,R13
JZ 0x001b7016
MOV RSI,qword ptr [RSP + 0x40]
INC RSI
CALL 0x0012ded0
LAB_001b7016:
MOV RDI,RBX
MOV RSI,R14
CALL 0x002168a6
LAB_001b7021:
LEA RAX,[RSP + 0x20]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001b703c
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x0012ded0
LAB_001b703c:
LEA RAX,[RSP + 0x60]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001b7057
MOV RSI,qword ptr [RSP + 0x60]
INC RSI
CALL 0x0012ded0
LAB_001b7057:
XOR EAX,EAX
ADD RSP,0x70
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
int8 mjs_attachBody(long *param_1,long *param_2,char *param_3,char *param_4)
{
long lVar1;
mjCFrame *this;
mjCBody *pmVar2;
allocator local_8a;
allocator local_89;
long *local_88;
long local_80;
long local_78 [2];
long *local_68 [2];
long local_58 [2];
long *local_48;
long local_40;
long local_38 [2];
this = (mjCFrame *)(*param_1 + -8);
if (*param_1 == 0) {
this = (mjCFrame *)0x0;
}
lVar1 = *param_2;
std::__cxx11::string::string<std::allocator<char>>((string *)&local_48,param_3,&local_89);
pmVar2 = (mjCBody *)(lVar1 + -8);
if (lVar1 == 0) {
pmVar2 = (mjCBody *)0x0;
}
/* try { // try from 001b6f90 to 001b6f99 has its CatchHandler @ 001b7069 */
local_68[0] = local_58;
std::__cxx11::string::_M_construct<char_const*>(local_68,local_48,local_40 + (long)local_48);
std::__cxx11::string::operator=((string *)(pmVar2 + 0x70),(string *)local_68);
if (local_68[0] != local_58) {
operator_delete(local_68[0],local_58[0] + 1);
}
/* try { // try from 001b6fc1 to 001b6fd2 has its CatchHandler @ 001b7067 */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_88,param_4,&local_8a);
local_68[0] = local_58;
/* try { // try from 001b6fe8 to 001b7020 has its CatchHandler @ 001b706e */
std::__cxx11::string::_M_construct<char_const*>(local_68,local_88,local_80 + (long)local_88);
std::__cxx11::string::operator=((string *)(pmVar2 + 0x90),(string *)local_68);
if (local_68[0] != local_58) {
operator_delete(local_68[0],local_58[0] + 1);
}
mjCFrame::operator+=(this,pmVar2);
if (local_88 != local_78) {
operator_delete(local_88,local_78[0] + 1);
}
if (local_48 != local_38) {
operator_delete(local_48,local_38[0] + 1);
}
return 0;
}
|
|
10,789 |
get_lvalue
|
bluesky950520[P]quickjs/quickjs.c
|
static __exception int get_lvalue(JSParseState *s, int *popcode, int *pscope,
JSAtom *pname, int *plabel, int *pdepth, BOOL keep,
int tok)
{
JSFunctionDef *fd;
int opcode, scope, label, depth;
JSAtom name;
/* we check the last opcode to get the lvalue type */
fd = s->cur_func;
scope = 0;
name = JS_ATOM_NULL;
label = -1;
depth = 0;
switch(opcode = get_prev_opcode(fd)) {
case OP_scope_get_var:
name = get_u32(fd->byte_code.buf + fd->last_opcode_pos + 1);
scope = get_u16(fd->byte_code.buf + fd->last_opcode_pos + 5);
if ((name == JS_ATOM_arguments || name == JS_ATOM_eval) &&
fd->is_strict_mode) {
return js_parse_error(s, "invalid lvalue in strict mode");
}
if (name == JS_ATOM_this || name == JS_ATOM_new_target)
goto invalid_lvalue;
depth = 2; /* will generate OP_get_ref_value */
break;
case OP_get_field:
name = get_u32(fd->byte_code.buf + fd->last_opcode_pos + 1);
depth = 1;
break;
case OP_scope_get_private_field:
name = get_u32(fd->byte_code.buf + fd->last_opcode_pos + 1);
scope = get_u16(fd->byte_code.buf + fd->last_opcode_pos + 5);
depth = 1;
break;
case OP_get_array_el:
depth = 2;
break;
case OP_get_super_value:
depth = 3;
break;
default:
invalid_lvalue:
if (tok == TOK_FOR) {
return js_parse_error(s, "invalid for in/of left hand-side");
} else if (tok == TOK_INC || tok == TOK_DEC) {
return js_parse_error(s, "invalid increment/decrement operand");
} else if (tok == '[' || tok == '{') {
return js_parse_error(s, "invalid destructuring target");
} else {
return js_parse_error(s, "invalid assignment left-hand side");
}
}
/* remove the last opcode */
fd->byte_code.size = fd->last_opcode_pos;
fd->last_opcode_pos = -1;
if (keep) {
/* get the value but keep the object/fields on the stack */
switch(opcode) {
case OP_scope_get_var:
label = new_label(s);
emit_op(s, OP_scope_make_ref);
emit_atom(s, name);
emit_u32(s, label);
emit_u16(s, scope);
update_label(fd, label, 1);
emit_op(s, OP_get_ref_value);
opcode = OP_get_ref_value;
break;
case OP_get_field:
emit_op(s, OP_get_field2);
emit_atom(s, name);
emit_ic(s, name);
break;
case OP_scope_get_private_field:
emit_op(s, OP_scope_get_private_field2);
emit_atom(s, name);
emit_u16(s, scope);
break;
case OP_get_array_el:
/* XXX: replace by a single opcode ? */
emit_op(s, OP_to_propkey2);
emit_op(s, OP_dup2);
emit_op(s, OP_get_array_el);
break;
case OP_get_super_value:
emit_op(s, OP_to_propkey);
emit_op(s, OP_dup3);
emit_op(s, OP_get_super_value);
break;
default:
abort();
}
} else {
switch(opcode) {
case OP_scope_get_var:
label = new_label(s);
emit_op(s, OP_scope_make_ref);
emit_atom(s, name);
emit_u32(s, label);
emit_u16(s, scope);
update_label(fd, label, 1);
opcode = OP_get_ref_value;
break;
case OP_get_array_el:
emit_op(s, OP_to_propkey2);
break;
case OP_get_super_value:
emit_op(s, OP_to_propkey);
break;
}
}
*popcode = opcode;
*pscope = scope;
/* name has refcount for OP_get_field and OP_get_ref_value,
and JS_ATOM_NULL for other opcodes */
*pname = name;
*plabel = label;
if (pdepth)
*pdepth = depth;
return 0;
}
|
O0
|
c
|
get_lvalue:
subq $0x68, %rsp
movl 0x78(%rsp), %eax
movl 0x70(%rsp), %eax
movq %rdi, 0x58(%rsp)
movq %rsi, 0x50(%rsp)
movq %rdx, 0x48(%rsp)
movq %rcx, 0x40(%rsp)
movq %r8, 0x38(%rsp)
movq %r9, 0x30(%rsp)
movq 0x58(%rsp), %rax
movq 0x90(%rax), %rax
movq %rax, 0x28(%rsp)
movl $0x0, 0x20(%rsp)
movl $0x0, 0x14(%rsp)
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
movl $0x0, 0x18(%rsp)
movq 0x28(%rsp), %rdi
callq 0xb3fa0
movl %eax, 0x24(%rsp)
movl %eax, %ecx
movl %ecx, 0x10(%rsp)
subl $0x41, %eax
je 0xae44b
jmp 0xae35a
movl 0x10(%rsp), %eax
subl $0x47, %eax
je 0xae4dd
jmp 0xae369
movl 0x10(%rsp), %eax
subl $0x4a, %eax
je 0xae4ea
jmp 0xae378
movl 0x10(%rsp), %eax
subl $0xb7, %eax
je 0xae399
jmp 0xae385
movl 0x10(%rsp), %eax
subl $0xbd, %eax
je 0xae480
jmp 0xae4f7
movq 0x28(%rsp), %rax
movq 0x138(%rax), %rdi
movq 0x28(%rsp), %rax
movslq 0x168(%rax), %rax
addq %rax, %rdi
addq $0x1, %rdi
callq 0x654a0
movl %eax, 0x14(%rsp)
movq 0x28(%rsp), %rax
movq 0x138(%rax), %rdi
movq 0x28(%rsp), %rax
movslq 0x168(%rax), %rax
addq %rax, %rdi
addq $0x5, %rdi
callq 0x6aeb0
movl %eax, 0x20(%rsp)
cmpl $0x4e, 0x14(%rsp)
je 0xae3f7
cmpl $0x3b, 0x14(%rsp)
jne 0xae42b
movq 0x28(%rsp), %rax
movw 0x84(%rax), %ax
shrw $0xf, %ax
movzbl %al, %eax
cmpl $0x0, %eax
je 0xae42b
movq 0x58(%rsp), %rdi
leaq 0x67ef7(%rip), %rsi # 0x116312
movb $0x0, %al
callq 0x4e980
movl %eax, 0x64(%rsp)
jmp 0xae854
cmpl $0x8, 0x14(%rsp)
je 0xae439
cmpl $0x72, 0x14(%rsp)
jne 0xae43e
jmp 0xae4f9
movl $0x2, 0x18(%rsp)
jmp 0xae58c
movq 0x28(%rsp), %rax
movq 0x138(%rax), %rdi
movq 0x28(%rsp), %rax
movslq 0x168(%rax), %rax
addq %rax, %rdi
addq $0x1, %rdi
callq 0x654a0
movl %eax, 0x14(%rsp)
movl $0x1, 0x18(%rsp)
jmp 0xae58c
movq 0x28(%rsp), %rax
movq 0x138(%rax), %rdi
movq 0x28(%rsp), %rax
movslq 0x168(%rax), %rax
addq %rax, %rdi
addq $0x1, %rdi
callq 0x654a0
movl %eax, 0x14(%rsp)
movq 0x28(%rsp), %rax
movq 0x138(%rax), %rdi
movq 0x28(%rsp), %rax
movslq 0x168(%rax), %rax
addq %rax, %rdi
addq $0x5, %rdi
callq 0x6aeb0
movl %eax, 0x20(%rsp)
movl $0x1, 0x18(%rsp)
jmp 0xae58c
movl $0x2, 0x18(%rsp)
jmp 0xae58c
movl $0x3, 0x18(%rsp)
jmp 0xae58c
jmp 0xae4f9
cmpl $-0x45, 0x78(%rsp)
jne 0xae51c
movq 0x58(%rsp), %rdi
leaq 0x67e24(%rip), %rsi # 0x116330
movb $0x0, %al
callq 0x4e980
movl %eax, 0x64(%rsp)
jmp 0xae854
cmpl $-0x6b, 0x78(%rsp)
je 0xae52a
cmpl $-0x6c, 0x78(%rsp)
jne 0xae546
movq 0x58(%rsp), %rdi
leaq 0x67e1b(%rip), %rsi # 0x116351
movb $0x0, %al
callq 0x4e980
movl %eax, 0x64(%rsp)
jmp 0xae854
cmpl $0x5b, 0x78(%rsp)
je 0xae554
cmpl $0x7b, 0x78(%rsp)
jne 0xae570
movq 0x58(%rsp), %rdi
leaq 0x678aa(%rip), %rsi # 0x115e0a
movb $0x0, %al
callq 0x4e980
movl %eax, 0x64(%rsp)
jmp 0xae854
movq 0x58(%rsp), %rdi
leaq 0x67df9(%rip), %rsi # 0x116375
movb $0x0, %al
callq 0x4e980
movl %eax, 0x64(%rsp)
jmp 0xae854
movq 0x28(%rsp), %rax
movslq 0x168(%rax), %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x140(%rax)
movq 0x28(%rsp), %rax
movl $0xffffffff, 0x168(%rax) # imm = 0xFFFFFFFF
cmpl $0x0, 0x70(%rsp)
je 0xae751
movl 0x24(%rsp), %eax
movl %eax, 0xc(%rsp)
subl $0x41, %eax
je 0xae689
jmp 0xae5d1
movl 0xc(%rsp), %eax
subl $0x47, %eax
je 0xae6e9
jmp 0xae5e0
movl 0xc(%rsp), %eax
subl $0x4a, %eax
je 0xae718
jmp 0xae5ef
movl 0xc(%rsp), %eax
subl $0xb7, %eax
je 0xae610
jmp 0xae5fc
movl 0xc(%rsp), %eax
subl $0xbd, %eax
je 0xae6b9
jmp 0xae747
movq 0x58(%rsp), %rdi
callq 0xad0a0
movl %eax, 0x1c(%rsp)
movq 0x58(%rsp), %rdi
movl $0xba, %esi
callq 0xa3210
movq 0x58(%rsp), %rdi
movl 0x14(%rsp), %esi
callq 0xa4780
movq 0x58(%rsp), %rdi
movl 0x1c(%rsp), %esi
callq 0xad7c0
movq 0x58(%rsp), %rdi
movl 0x20(%rsp), %eax
movzwl %ax, %esi
callq 0xa3270
movq 0x28(%rsp), %rdi
movl 0x1c(%rsp), %esi
movl $0x1, %edx
callq 0xb7340
movq 0x58(%rsp), %rdi
movl $0x3c, %esi
callq 0xa3210
movl $0x3c, 0x24(%rsp)
jmp 0xae74c
movq 0x58(%rsp), %rdi
movl $0x42, %esi
callq 0xa3210
movq 0x58(%rsp), %rdi
movl 0x14(%rsp), %esi
callq 0xa4780
movq 0x58(%rsp), %rdi
movl 0x14(%rsp), %esi
callq 0xaed60
jmp 0xae74c
movq 0x58(%rsp), %rdi
movl $0xbe, %esi
callq 0xa3210
movq 0x58(%rsp), %rdi
movl 0x14(%rsp), %esi
callq 0xa4780
movq 0x58(%rsp), %rdi
movl 0x20(%rsp), %eax
movzwl %ax, %esi
callq 0xa3270
jmp 0xae74c
movq 0x58(%rsp), %rdi
movl $0x72, %esi
callq 0xa3210
movq 0x58(%rsp), %rdi
movl $0x13, %esi
callq 0xa3210
movq 0x58(%rsp), %rdi
movl $0x47, %esi
callq 0xa3210
jmp 0xae74c
movq 0x58(%rsp), %rdi
movl $0x71, %esi
callq 0xa3210
movq 0x58(%rsp), %rdi
movl $0x14, %esi
callq 0xa3210
movq 0x58(%rsp), %rdi
movl $0x4a, %esi
callq 0xa3210
jmp 0xae74c
callq 0xe090
jmp 0xae80d
movl 0x24(%rsp), %eax
movl %eax, 0x8(%rsp)
subl $0x47, %eax
je 0xae7eb
jmp 0xae764
movl 0x8(%rsp), %eax
subl $0x4a, %eax
je 0xae7fc
jmp 0xae773
movl 0x8(%rsp), %eax
subl $0xb7, %eax
jne 0xae80b
jmp 0xae784
movq 0x58(%rsp), %rdi
callq 0xad0a0
movl %eax, 0x1c(%rsp)
movq 0x58(%rsp), %rdi
movl $0xba, %esi
callq 0xa3210
movq 0x58(%rsp), %rdi
movl 0x14(%rsp), %esi
callq 0xa4780
movq 0x58(%rsp), %rdi
movl 0x1c(%rsp), %esi
callq 0xad7c0
movq 0x58(%rsp), %rdi
movl 0x20(%rsp), %eax
movzwl %ax, %esi
callq 0xa3270
movq 0x28(%rsp), %rdi
movl 0x1c(%rsp), %esi
movl $0x1, %edx
callq 0xb7340
movl $0x3c, 0x24(%rsp)
jmp 0xae80b
movq 0x58(%rsp), %rdi
movl $0x72, %esi
callq 0xa3210
jmp 0xae80b
movq 0x58(%rsp), %rdi
movl $0x71, %esi
callq 0xa3210
jmp 0xae80d
movl 0x24(%rsp), %ecx
movq 0x50(%rsp), %rax
movl %ecx, (%rax)
movl 0x20(%rsp), %ecx
movq 0x48(%rsp), %rax
movl %ecx, (%rax)
movl 0x14(%rsp), %ecx
movq 0x40(%rsp), %rax
movl %ecx, (%rax)
movl 0x1c(%rsp), %ecx
movq 0x38(%rsp), %rax
movl %ecx, (%rax)
cmpq $0x0, 0x30(%rsp)
je 0xae84c
movl 0x18(%rsp), %ecx
movq 0x30(%rsp), %rax
movl %ecx, (%rax)
movl $0x0, 0x64(%rsp)
movl 0x64(%rsp), %eax
addq $0x68, %rsp
retq
nopl (%rax)
|
get_lvalue:
sub rsp, 68h
mov eax, [rsp+68h+arg_8]
mov eax, [rsp+68h+arg_0]
mov [rsp+68h+var_10], rdi
mov [rsp+68h+var_18], rsi
mov [rsp+68h+var_20], rdx
mov [rsp+68h+var_28], rcx
mov [rsp+68h+var_30], r8
mov [rsp+68h+var_38], r9
mov rax, [rsp+68h+var_10]
mov rax, [rax+90h]
mov [rsp+68h+var_40], rax
mov [rsp+68h+var_48], 0
mov [rsp+68h+var_54], 0
mov [rsp+68h+var_4C], 0FFFFFFFFh
mov [rsp+68h+var_50], 0
mov rdi, [rsp+68h+var_40]
call get_prev_opcode
mov [rsp+68h+var_44], eax
mov ecx, eax
mov [rsp+68h+var_58], ecx
sub eax, 41h ; 'A'
jz loc_AE44B
jmp short $+2
loc_AE35A:
mov eax, [rsp+68h+var_58]
sub eax, 47h ; 'G'
jz loc_AE4DD
jmp short $+2
loc_AE369:
mov eax, [rsp+68h+var_58]
sub eax, 4Ah ; 'J'
jz loc_AE4EA
jmp short $+2
loc_AE378:
mov eax, [rsp+68h+var_58]
sub eax, 0B7h
jz short loc_AE399
jmp short $+2
loc_AE385:
mov eax, [rsp+68h+var_58]
sub eax, 0BDh
jz loc_AE480
jmp loc_AE4F7
loc_AE399:
mov rax, [rsp+68h+var_40]
mov rdi, [rax+138h]
mov rax, [rsp+68h+var_40]
movsxd rax, dword ptr [rax+168h]
add rdi, rax
add rdi, 1
call get_u32
mov [rsp+68h+var_54], eax
mov rax, [rsp+68h+var_40]
mov rdi, [rax+138h]
mov rax, [rsp+68h+var_40]
movsxd rax, dword ptr [rax+168h]
add rdi, rax
add rdi, 5
call get_u16
mov [rsp+68h+var_48], eax
cmp [rsp+68h+var_54], 4Eh ; 'N'
jz short loc_AE3F7
cmp [rsp+68h+var_54], 3Bh ; ';'
jnz short loc_AE42B
loc_AE3F7:
mov rax, [rsp+68h+var_40]
mov ax, [rax+84h]
shr ax, 0Fh
movzx eax, al
cmp eax, 0
jz short loc_AE42B
mov rdi, [rsp+68h+var_10]
lea rsi, aInvalidLvalueI; "invalid lvalue in strict mode"
mov al, 0
call js_parse_error
mov [rsp+68h+var_4], eax
jmp loc_AE854
loc_AE42B:
cmp [rsp+68h+var_54], 8
jz short loc_AE439
cmp [rsp+68h+var_54], 72h ; 'r'
jnz short loc_AE43E
loc_AE439:
jmp loc_AE4F9
loc_AE43E:
mov [rsp+68h+var_50], 2
jmp loc_AE58C
loc_AE44B:
mov rax, [rsp+68h+var_40]
mov rdi, [rax+138h]
mov rax, [rsp+68h+var_40]
movsxd rax, dword ptr [rax+168h]
add rdi, rax
add rdi, 1
call get_u32
mov [rsp+68h+var_54], eax
mov [rsp+68h+var_50], 1
jmp loc_AE58C
loc_AE480:
mov rax, [rsp+68h+var_40]
mov rdi, [rax+138h]
mov rax, [rsp+68h+var_40]
movsxd rax, dword ptr [rax+168h]
add rdi, rax
add rdi, 1
call get_u32
mov [rsp+68h+var_54], eax
mov rax, [rsp+68h+var_40]
mov rdi, [rax+138h]
mov rax, [rsp+68h+var_40]
movsxd rax, dword ptr [rax+168h]
add rdi, rax
add rdi, 5
call get_u16
mov [rsp+68h+var_48], eax
mov [rsp+68h+var_50], 1
jmp loc_AE58C
loc_AE4DD:
mov [rsp+68h+var_50], 2
jmp loc_AE58C
loc_AE4EA:
mov [rsp+68h+var_50], 3
jmp loc_AE58C
loc_AE4F7:
jmp short $+2
loc_AE4F9:
cmp [rsp+68h+arg_8], 0FFFFFFBBh
jnz short loc_AE51C
mov rdi, [rsp+68h+var_10]
lea rsi, aInvalidForInOf; "invalid for in/of left hand-side"
mov al, 0
call js_parse_error
mov [rsp+68h+var_4], eax
jmp loc_AE854
loc_AE51C:
cmp [rsp+68h+arg_8], 0FFFFFF95h
jz short loc_AE52A
cmp [rsp+68h+arg_8], 0FFFFFF94h
jnz short loc_AE546
loc_AE52A:
mov rdi, [rsp+68h+var_10]
lea rsi, aInvalidIncreme; "invalid increment/decrement operand"
mov al, 0
call js_parse_error
mov [rsp+68h+var_4], eax
jmp loc_AE854
loc_AE546:
cmp [rsp+68h+arg_8], 5Bh ; '['
jz short loc_AE554
cmp [rsp+68h+arg_8], 7Bh ; '{'
jnz short loc_AE570
loc_AE554:
mov rdi, [rsp+68h+var_10]
lea rsi, aInvalidDestruc; "invalid destructuring target"
mov al, 0
call js_parse_error
mov [rsp+68h+var_4], eax
jmp loc_AE854
loc_AE570:
mov rdi, [rsp+68h+var_10]
lea rsi, aInvalidAssignm_0; "invalid assignment left-hand side"
mov al, 0
call js_parse_error
mov [rsp+68h+var_4], eax
jmp loc_AE854
loc_AE58C:
mov rax, [rsp+68h+var_40]
movsxd rcx, dword ptr [rax+168h]
mov rax, [rsp+68h+var_40]
mov [rax+140h], rcx
mov rax, [rsp+68h+var_40]
mov dword ptr [rax+168h], 0FFFFFFFFh
cmp [rsp+68h+arg_0], 0
jz loc_AE751
mov eax, [rsp+68h+var_44]
mov [rsp+68h+var_5C], eax
sub eax, 41h ; 'A'
jz loc_AE689
jmp short $+2
loc_AE5D1:
mov eax, [rsp+68h+var_5C]
sub eax, 47h ; 'G'
jz loc_AE6E9
jmp short $+2
loc_AE5E0:
mov eax, [rsp+68h+var_5C]
sub eax, 4Ah ; 'J'
jz loc_AE718
jmp short $+2
loc_AE5EF:
mov eax, [rsp+68h+var_5C]
sub eax, 0B7h
jz short loc_AE610
jmp short $+2
loc_AE5FC:
mov eax, [rsp+68h+var_5C]
sub eax, 0BDh
jz loc_AE6B9
jmp loc_AE747
loc_AE610:
mov rdi, [rsp+68h+var_10]
call new_label
mov [rsp+68h+var_4C], eax
mov rdi, [rsp+68h+var_10]
mov esi, 0BAh
call emit_op
mov rdi, [rsp+68h+var_10]
mov esi, [rsp+68h+var_54]
call emit_atom
mov rdi, [rsp+68h+var_10]
mov esi, [rsp+68h+var_4C]
call emit_u32
mov rdi, [rsp+68h+var_10]
mov eax, [rsp+68h+var_48]
movzx esi, ax
call emit_u16
mov rdi, [rsp+68h+var_40]
mov esi, [rsp+68h+var_4C]
mov edx, 1
call update_label
mov rdi, [rsp+68h+var_10]
mov esi, 3Ch ; '<'
call emit_op
mov [rsp+68h+var_44], 3Ch ; '<'
jmp loc_AE74C
loc_AE689:
mov rdi, [rsp+68h+var_10]
mov esi, 42h ; 'B'
call emit_op
mov rdi, [rsp+68h+var_10]
mov esi, [rsp+68h+var_54]
call emit_atom
mov rdi, [rsp+68h+var_10]
mov esi, [rsp+68h+var_54]
call emit_ic
jmp loc_AE74C
loc_AE6B9:
mov rdi, [rsp+68h+var_10]
mov esi, 0BEh
call emit_op
mov rdi, [rsp+68h+var_10]
mov esi, [rsp+68h+var_54]
call emit_atom
mov rdi, [rsp+68h+var_10]
mov eax, [rsp+68h+var_48]
movzx esi, ax
call emit_u16
jmp short loc_AE74C
loc_AE6E9:
mov rdi, [rsp+68h+var_10]
mov esi, 72h ; 'r'
call emit_op
mov rdi, [rsp+68h+var_10]
mov esi, 13h
call emit_op
mov rdi, [rsp+68h+var_10]
mov esi, 47h ; 'G'
call emit_op
jmp short loc_AE74C
loc_AE718:
mov rdi, [rsp+68h+var_10]
mov esi, 71h ; 'q'
call emit_op
mov rdi, [rsp+68h+var_10]
mov esi, 14h
call emit_op
mov rdi, [rsp+68h+var_10]
mov esi, 4Ah ; 'J'
call emit_op
jmp short loc_AE74C
loc_AE747:
call _abort
loc_AE74C:
jmp loc_AE80D
loc_AE751:
mov eax, [rsp+68h+var_44]
mov [rsp+68h+var_60], eax
sub eax, 47h ; 'G'
jz loc_AE7EB
jmp short $+2
loc_AE764:
mov eax, [rsp+68h+var_60]
sub eax, 4Ah ; 'J'
jz loc_AE7FC
jmp short $+2
loc_AE773:
mov eax, [rsp+68h+var_60]
sub eax, 0B7h
jnz loc_AE80B
jmp short $+2
loc_AE784:
mov rdi, [rsp+68h+var_10]
call new_label
mov [rsp+68h+var_4C], eax
mov rdi, [rsp+68h+var_10]
mov esi, 0BAh
call emit_op
mov rdi, [rsp+68h+var_10]
mov esi, [rsp+68h+var_54]
call emit_atom
mov rdi, [rsp+68h+var_10]
mov esi, [rsp+68h+var_4C]
call emit_u32
mov rdi, [rsp+68h+var_10]
mov eax, [rsp+68h+var_48]
movzx esi, ax
call emit_u16
mov rdi, [rsp+68h+var_40]
mov esi, [rsp+68h+var_4C]
mov edx, 1
call update_label
mov [rsp+68h+var_44], 3Ch ; '<'
jmp short loc_AE80B
loc_AE7EB:
mov rdi, [rsp+68h+var_10]
mov esi, 72h ; 'r'
call emit_op
jmp short loc_AE80B
loc_AE7FC:
mov rdi, [rsp+68h+var_10]
mov esi, 71h ; 'q'
call emit_op
loc_AE80B:
jmp short $+2
loc_AE80D:
mov ecx, [rsp+68h+var_44]
mov rax, [rsp+68h+var_18]
mov [rax], ecx
mov ecx, [rsp+68h+var_48]
mov rax, [rsp+68h+var_20]
mov [rax], ecx
mov ecx, [rsp+68h+var_54]
mov rax, [rsp+68h+var_28]
mov [rax], ecx
mov ecx, [rsp+68h+var_4C]
mov rax, [rsp+68h+var_30]
mov [rax], ecx
cmp [rsp+68h+var_38], 0
jz short loc_AE84C
mov ecx, [rsp+68h+var_50]
mov rax, [rsp+68h+var_38]
mov [rax], ecx
loc_AE84C:
mov [rsp+68h+var_4], 0
loc_AE854:
mov eax, [rsp+68h+var_4]
add rsp, 68h
retn
|
long long get_lvalue(
long long *a1,
unsigned int *a2,
_DWORD *a3,
unsigned int *a4,
unsigned int *a5,
int *a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14,
int a15,
int a16)
{
long long v16; // rdx
long long v17; // r8
long long v18; // r9
__m128 v19; // xmm4
__m128 v20; // xmm5
long long v21; // rcx
char v23; // [rsp+0h] [rbp-68h]
unsigned int u32; // [rsp+14h] [rbp-54h]
int v25; // [rsp+18h] [rbp-50h]
unsigned int v26; // [rsp+1Ch] [rbp-4Ch]
int u16; // [rsp+20h] [rbp-48h]
unsigned int prev_opcode; // [rsp+24h] [rbp-44h]
long long v29; // [rsp+28h] [rbp-40h]
v29 = a1[18];
u16 = 0;
u32 = 0;
v26 = -1;
prev_opcode = get_prev_opcode(v29);
v21 = prev_opcode;
switch ( prev_opcode )
{
case 0x41u:
u32 = get_u32((unsigned int *)(*(int *)(v29 + 360) + *(_QWORD *)(v29 + 312) + 1LL));
v25 = 1;
break;
case 0x47u:
v25 = 2;
break;
case 0x4Au:
v25 = 3;
break;
case 0xB7u:
u32 = get_u32((unsigned int *)(*(int *)(v29 + 360) + *(_QWORD *)(v29 + 312) + 1LL));
u16 = get_u16((unsigned __int16 *)(*(int *)(v29 + 360) + *(_QWORD *)(v29 + 312) + 5LL));
if ( (u32 == 78 || u32 == 59) && *(__int16 *)(v29 + 132) < 0 )
return (unsigned int)js_parse_error(
a1,
(long long)"invalid lvalue in strict mode",
v16,
v21,
v17,
v18,
a7,
a8,
a9,
a10,
v19,
v20,
a13,
a14,
v23);
if ( u32 == 8 || u32 == 114 )
goto LABEL_19;
v25 = 2;
break;
case 0xBDu:
u32 = get_u32((unsigned int *)(*(int *)(v29 + 360) + *(_QWORD *)(v29 + 312) + 1LL));
u16 = get_u16((unsigned __int16 *)(*(int *)(v29 + 360) + *(_QWORD *)(v29 + 312) + 5LL));
v25 = 1;
break;
default:
LABEL_19:
switch ( a16 )
{
case -69:
return (unsigned int)js_parse_error(
a1,
(long long)"invalid for in/of left hand-side",
v16,
v21,
v17,
v18,
a7,
a8,
a9,
a10,
v19,
v20,
a13,
a14,
v23);
case -107:
case -108:
return (unsigned int)js_parse_error(
a1,
(long long)"invalid increment/decrement operand",
v16,
v21,
v17,
v18,
a7,
a8,
a9,
a10,
v19,
v20,
a13,
a14,
v23);
case 91:
case 123:
return (unsigned int)js_parse_error(
a1,
(long long)"invalid destructuring target",
v16,
v21,
v17,
v18,
a7,
a8,
a9,
a10,
v19,
v20,
a13,
a14,
v23);
default:
return (unsigned int)js_parse_error(
a1,
(long long)"invalid assignment left-hand side",
v16,
v21,
v17,
v18,
a7,
a8,
a9,
a10,
v19,
v20,
a13,
a14,
v23);
}
}
*(_QWORD *)(v29 + 320) = *(int *)(v29 + 360);
*(_DWORD *)(v29 + 360) = -1;
if ( a15 )
{
switch ( prev_opcode )
{
case 0x41u:
emit_op((long long)a1, 66);
emit_atom(a1, u32);
emit_ic(a1, u32);
break;
case 0x47u:
emit_op((long long)a1, 114);
emit_op((long long)a1, 19);
emit_op((long long)a1, 71);
break;
case 0x4Au:
emit_op((long long)a1, 113);
emit_op((long long)a1, 20);
emit_op((long long)a1, 74);
break;
case 0xB7u:
v26 = new_label((long long)a1);
emit_op((long long)a1, 186);
emit_atom(a1, u32);
emit_u32((long long)a1, v26);
emit_u16((long long)a1, u16);
update_label(v29, v26, 1LL);
emit_op((long long)a1, 60);
prev_opcode = 60;
break;
default:
emit_op((long long)a1, 190);
emit_atom(a1, u32);
emit_u16((long long)a1, u16);
break;
}
}
else
{
switch ( prev_opcode )
{
case 0x47u:
emit_op((long long)a1, 114);
break;
case 0x4Au:
emit_op((long long)a1, 113);
break;
case 0xB7u:
v26 = new_label((long long)a1);
emit_op((long long)a1, 186);
emit_atom(a1, u32);
emit_u32((long long)a1, v26);
emit_u16((long long)a1, u16);
update_label(v29, v26, 1LL);
prev_opcode = 60;
break;
}
}
*a2 = prev_opcode;
*a3 = u16;
*a4 = u32;
*a5 = v26;
if ( a6 )
*a6 = v25;
return 0;
}
|
get_lvalue:
SUB RSP,0x68
MOV EAX,dword ptr [RSP + 0x78]
MOV EAX,dword ptr [RSP + 0x70]
MOV qword ptr [RSP + 0x58],RDI
MOV qword ptr [RSP + 0x50],RSI
MOV qword ptr [RSP + 0x48],RDX
MOV qword ptr [RSP + 0x40],RCX
MOV qword ptr [RSP + 0x38],R8
MOV qword ptr [RSP + 0x30],R9
MOV RAX,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RAX + 0x90]
MOV qword ptr [RSP + 0x28],RAX
MOV dword ptr [RSP + 0x20],0x0
MOV dword ptr [RSP + 0x14],0x0
MOV dword ptr [RSP + 0x1c],0xffffffff
MOV dword ptr [RSP + 0x18],0x0
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x001b3fa0
MOV dword ptr [RSP + 0x24],EAX
MOV ECX,EAX
MOV dword ptr [RSP + 0x10],ECX
SUB EAX,0x41
JZ 0x001ae44b
JMP 0x001ae35a
LAB_001ae35a:
MOV EAX,dword ptr [RSP + 0x10]
SUB EAX,0x47
JZ 0x001ae4dd
JMP 0x001ae369
LAB_001ae369:
MOV EAX,dword ptr [RSP + 0x10]
SUB EAX,0x4a
JZ 0x001ae4ea
JMP 0x001ae378
LAB_001ae378:
MOV EAX,dword ptr [RSP + 0x10]
SUB EAX,0xb7
JZ 0x001ae399
JMP 0x001ae385
LAB_001ae385:
MOV EAX,dword ptr [RSP + 0x10]
SUB EAX,0xbd
JZ 0x001ae480
JMP 0x001ae4f7
LAB_001ae399:
MOV RAX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RAX + 0x138]
MOV RAX,qword ptr [RSP + 0x28]
MOVSXD RAX,dword ptr [RAX + 0x168]
ADD RDI,RAX
ADD RDI,0x1
CALL 0x001654a0
MOV dword ptr [RSP + 0x14],EAX
MOV RAX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RAX + 0x138]
MOV RAX,qword ptr [RSP + 0x28]
MOVSXD RAX,dword ptr [RAX + 0x168]
ADD RDI,RAX
ADD RDI,0x5
CALL 0x0016aeb0
MOV dword ptr [RSP + 0x20],EAX
CMP dword ptr [RSP + 0x14],0x4e
JZ 0x001ae3f7
CMP dword ptr [RSP + 0x14],0x3b
JNZ 0x001ae42b
LAB_001ae3f7:
MOV RAX,qword ptr [RSP + 0x28]
MOV AX,word ptr [RAX + 0x84]
SHR AX,0xf
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x001ae42b
MOV RDI,qword ptr [RSP + 0x58]
LEA RSI,[0x216312]
MOV AL,0x0
CALL 0x0014e980
MOV dword ptr [RSP + 0x64],EAX
JMP 0x001ae854
LAB_001ae42b:
CMP dword ptr [RSP + 0x14],0x8
JZ 0x001ae439
CMP dword ptr [RSP + 0x14],0x72
JNZ 0x001ae43e
LAB_001ae439:
JMP 0x001ae4f9
LAB_001ae43e:
MOV dword ptr [RSP + 0x18],0x2
JMP 0x001ae58c
LAB_001ae44b:
MOV RAX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RAX + 0x138]
MOV RAX,qword ptr [RSP + 0x28]
MOVSXD RAX,dword ptr [RAX + 0x168]
ADD RDI,RAX
ADD RDI,0x1
CALL 0x001654a0
MOV dword ptr [RSP + 0x14],EAX
MOV dword ptr [RSP + 0x18],0x1
JMP 0x001ae58c
LAB_001ae480:
MOV RAX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RAX + 0x138]
MOV RAX,qword ptr [RSP + 0x28]
MOVSXD RAX,dword ptr [RAX + 0x168]
ADD RDI,RAX
ADD RDI,0x1
CALL 0x001654a0
MOV dword ptr [RSP + 0x14],EAX
MOV RAX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RAX + 0x138]
MOV RAX,qword ptr [RSP + 0x28]
MOVSXD RAX,dword ptr [RAX + 0x168]
ADD RDI,RAX
ADD RDI,0x5
CALL 0x0016aeb0
MOV dword ptr [RSP + 0x20],EAX
MOV dword ptr [RSP + 0x18],0x1
JMP 0x001ae58c
LAB_001ae4dd:
MOV dword ptr [RSP + 0x18],0x2
JMP 0x001ae58c
LAB_001ae4ea:
MOV dword ptr [RSP + 0x18],0x3
JMP 0x001ae58c
LAB_001ae4f7:
JMP 0x001ae4f9
LAB_001ae4f9:
CMP dword ptr [RSP + 0x78],-0x45
JNZ 0x001ae51c
MOV RDI,qword ptr [RSP + 0x58]
LEA RSI,[0x216330]
MOV AL,0x0
CALL 0x0014e980
MOV dword ptr [RSP + 0x64],EAX
JMP 0x001ae854
LAB_001ae51c:
CMP dword ptr [RSP + 0x78],-0x6b
JZ 0x001ae52a
CMP dword ptr [RSP + 0x78],-0x6c
JNZ 0x001ae546
LAB_001ae52a:
MOV RDI,qword ptr [RSP + 0x58]
LEA RSI,[0x216351]
MOV AL,0x0
CALL 0x0014e980
MOV dword ptr [RSP + 0x64],EAX
JMP 0x001ae854
LAB_001ae546:
CMP dword ptr [RSP + 0x78],0x5b
JZ 0x001ae554
CMP dword ptr [RSP + 0x78],0x7b
JNZ 0x001ae570
LAB_001ae554:
MOV RDI,qword ptr [RSP + 0x58]
LEA RSI,[0x215e0a]
MOV AL,0x0
CALL 0x0014e980
MOV dword ptr [RSP + 0x64],EAX
JMP 0x001ae854
LAB_001ae570:
MOV RDI,qword ptr [RSP + 0x58]
LEA RSI,[0x216375]
MOV AL,0x0
CALL 0x0014e980
MOV dword ptr [RSP + 0x64],EAX
JMP 0x001ae854
LAB_001ae58c:
MOV RAX,qword ptr [RSP + 0x28]
MOVSXD RCX,dword ptr [RAX + 0x168]
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RAX + 0x140],RCX
MOV RAX,qword ptr [RSP + 0x28]
MOV dword ptr [RAX + 0x168],0xffffffff
CMP dword ptr [RSP + 0x70],0x0
JZ 0x001ae751
MOV EAX,dword ptr [RSP + 0x24]
MOV dword ptr [RSP + 0xc],EAX
SUB EAX,0x41
JZ 0x001ae689
JMP 0x001ae5d1
LAB_001ae5d1:
MOV EAX,dword ptr [RSP + 0xc]
SUB EAX,0x47
JZ 0x001ae6e9
JMP 0x001ae5e0
LAB_001ae5e0:
MOV EAX,dword ptr [RSP + 0xc]
SUB EAX,0x4a
JZ 0x001ae718
JMP 0x001ae5ef
LAB_001ae5ef:
MOV EAX,dword ptr [RSP + 0xc]
SUB EAX,0xb7
JZ 0x001ae610
JMP 0x001ae5fc
LAB_001ae5fc:
MOV EAX,dword ptr [RSP + 0xc]
SUB EAX,0xbd
JZ 0x001ae6b9
JMP 0x001ae747
LAB_001ae610:
MOV RDI,qword ptr [RSP + 0x58]
CALL 0x001ad0a0
MOV dword ptr [RSP + 0x1c],EAX
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,0xba
CALL 0x001a3210
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,dword ptr [RSP + 0x14]
CALL 0x001a4780
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,dword ptr [RSP + 0x1c]
CALL 0x001ad7c0
MOV RDI,qword ptr [RSP + 0x58]
MOV EAX,dword ptr [RSP + 0x20]
MOVZX ESI,AX
CALL 0x001a3270
MOV RDI,qword ptr [RSP + 0x28]
MOV ESI,dword ptr [RSP + 0x1c]
MOV EDX,0x1
CALL 0x001b7340
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,0x3c
CALL 0x001a3210
MOV dword ptr [RSP + 0x24],0x3c
JMP 0x001ae74c
LAB_001ae689:
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,0x42
CALL 0x001a3210
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,dword ptr [RSP + 0x14]
CALL 0x001a4780
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,dword ptr [RSP + 0x14]
CALL 0x001aed60
JMP 0x001ae74c
LAB_001ae6b9:
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,0xbe
CALL 0x001a3210
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,dword ptr [RSP + 0x14]
CALL 0x001a4780
MOV RDI,qword ptr [RSP + 0x58]
MOV EAX,dword ptr [RSP + 0x20]
MOVZX ESI,AX
CALL 0x001a3270
JMP 0x001ae74c
LAB_001ae6e9:
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,0x72
CALL 0x001a3210
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,0x13
CALL 0x001a3210
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,0x47
CALL 0x001a3210
JMP 0x001ae74c
LAB_001ae718:
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,0x71
CALL 0x001a3210
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,0x14
CALL 0x001a3210
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,0x4a
CALL 0x001a3210
JMP 0x001ae74c
LAB_001ae747:
CALL 0x0010e090
LAB_001ae74c:
JMP 0x001ae80d
LAB_001ae751:
MOV EAX,dword ptr [RSP + 0x24]
MOV dword ptr [RSP + 0x8],EAX
SUB EAX,0x47
JZ 0x001ae7eb
JMP 0x001ae764
LAB_001ae764:
MOV EAX,dword ptr [RSP + 0x8]
SUB EAX,0x4a
JZ 0x001ae7fc
JMP 0x001ae773
LAB_001ae773:
MOV EAX,dword ptr [RSP + 0x8]
SUB EAX,0xb7
JNZ 0x001ae80b
JMP 0x001ae784
LAB_001ae784:
MOV RDI,qword ptr [RSP + 0x58]
CALL 0x001ad0a0
MOV dword ptr [RSP + 0x1c],EAX
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,0xba
CALL 0x001a3210
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,dword ptr [RSP + 0x14]
CALL 0x001a4780
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,dword ptr [RSP + 0x1c]
CALL 0x001ad7c0
MOV RDI,qword ptr [RSP + 0x58]
MOV EAX,dword ptr [RSP + 0x20]
MOVZX ESI,AX
CALL 0x001a3270
MOV RDI,qword ptr [RSP + 0x28]
MOV ESI,dword ptr [RSP + 0x1c]
MOV EDX,0x1
CALL 0x001b7340
MOV dword ptr [RSP + 0x24],0x3c
JMP 0x001ae80b
LAB_001ae7eb:
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,0x72
CALL 0x001a3210
JMP 0x001ae80b
LAB_001ae7fc:
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,0x71
CALL 0x001a3210
LAB_001ae80b:
JMP 0x001ae80d
LAB_001ae80d:
MOV ECX,dword ptr [RSP + 0x24]
MOV RAX,qword ptr [RSP + 0x50]
MOV dword ptr [RAX],ECX
MOV ECX,dword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x48]
MOV dword ptr [RAX],ECX
MOV ECX,dword ptr [RSP + 0x14]
MOV RAX,qword ptr [RSP + 0x40]
MOV dword ptr [RAX],ECX
MOV ECX,dword ptr [RSP + 0x1c]
MOV RAX,qword ptr [RSP + 0x38]
MOV dword ptr [RAX],ECX
CMP qword ptr [RSP + 0x30],0x0
JZ 0x001ae84c
MOV ECX,dword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP + 0x30]
MOV dword ptr [RAX],ECX
LAB_001ae84c:
MOV dword ptr [RSP + 0x64],0x0
LAB_001ae854:
MOV EAX,dword ptr [RSP + 0x64]
ADD RSP,0x68
RET
|
int4
get_lvalue(long param_1,int *param_2,uint *param_3,int *param_4,int4 *param_5,
int4 *param_6,int param_7,int param_8)
{
long lVar1;
int4 uVar2;
int local_54;
int4 local_50;
int4 local_4c;
uint local_48;
int local_44;
lVar1 = *(long *)(param_1 + 0x90);
local_48 = 0;
local_54 = 0;
local_4c = 0xffffffff;
local_44 = get_prev_opcode(lVar1);
if (local_44 == 0x41) {
local_54 = get_u32(*(long *)(lVar1 + 0x138) + (long)*(int *)(lVar1 + 0x168) + 1);
local_50 = 1;
}
else if (local_44 == 0x47) {
local_50 = 2;
}
else if (local_44 == 0x4a) {
local_50 = 3;
}
else if (local_44 == 0xb7) {
local_54 = get_u32(*(long *)(lVar1 + 0x138) + (long)*(int *)(lVar1 + 0x168) + 1);
local_48 = get_u16(*(long *)(lVar1 + 0x138) + (long)*(int *)(lVar1 + 0x168) + 5);
if (((local_54 == 0x4e) || (local_54 == 0x3b)) && (*(short *)(lVar1 + 0x84) < 0)) {
uVar2 = js_parse_error(param_1,"invalid lvalue in strict mode");
return uVar2;
}
if ((local_54 == 8) || (local_54 == 0x72)) goto LAB_001ae4f9;
local_50 = 2;
}
else {
if (local_44 != 0xbd) {
LAB_001ae4f9:
if (param_8 == -0x45) {
uVar2 = js_parse_error(param_1,"invalid for in/of left hand-side");
return uVar2;
}
if ((param_8 != -0x6b) && (param_8 != -0x6c)) {
if ((param_8 != 0x5b) && (param_8 != 0x7b)) {
uVar2 = js_parse_error(param_1,"invalid assignment left-hand side");
return uVar2;
}
uVar2 = js_parse_error(param_1,"invalid destructuring target");
return uVar2;
}
uVar2 = js_parse_error(param_1,"invalid increment/decrement operand");
return uVar2;
}
local_54 = get_u32(*(long *)(lVar1 + 0x138) + (long)*(int *)(lVar1 + 0x168) + 1);
local_48 = get_u16(*(long *)(lVar1 + 0x138) + (long)*(int *)(lVar1 + 0x168) + 5);
local_50 = 1;
}
*(long *)(lVar1 + 0x140) = (long)*(int *)(lVar1 + 0x168);
*(int4 *)(lVar1 + 0x168) = 0xffffffff;
if (param_7 == 0) {
if (local_44 == 0x47) {
emit_op(param_1,0x72);
}
else if (local_44 == 0x4a) {
emit_op(param_1,0x71);
}
else if (local_44 == 0xb7) {
local_4c = new_label(param_1);
emit_op(param_1,0xba);
emit_atom(param_1,local_54);
emit_u32(param_1,local_4c);
emit_u16(param_1,local_48 & 0xffff);
update_label(lVar1,local_4c,1);
local_44 = 0x3c;
}
}
else if (local_44 == 0x41) {
emit_op(param_1,0x42);
emit_atom(param_1,local_54);
emit_ic(param_1,local_54);
}
else if (local_44 == 0x47) {
emit_op(param_1,0x72);
emit_op(param_1,0x13);
emit_op(param_1,0x47);
}
else if (local_44 == 0x4a) {
emit_op(param_1,0x71);
emit_op(param_1,0x14);
emit_op(param_1,0x4a);
}
else if (local_44 == 0xb7) {
local_4c = new_label(param_1);
emit_op(param_1,0xba);
emit_atom(param_1,local_54);
emit_u32(param_1,local_4c);
emit_u16(param_1,local_48 & 0xffff);
update_label(lVar1,local_4c,1);
emit_op(param_1,0x3c);
local_44 = 0x3c;
}
else {
if (local_44 != 0xbd) {
/* WARNING: Subroutine does not return */
abort();
}
emit_op(param_1,0xbe);
emit_atom(param_1,local_54);
emit_u16(param_1,local_48 & 0xffff);
}
*param_2 = local_44;
*param_3 = local_48;
*param_4 = local_54;
*param_5 = local_4c;
if (param_6 != (int4 *)0x0) {
*param_6 = local_50;
}
return 0;
}
|
|
10,790 |
get_lvalue
|
bluesky950520[P]quickjs/quickjs.c
|
static __exception int get_lvalue(JSParseState *s, int *popcode, int *pscope,
JSAtom *pname, int *plabel, int *pdepth, BOOL keep,
int tok)
{
JSFunctionDef *fd;
int opcode, scope, label, depth;
JSAtom name;
/* we check the last opcode to get the lvalue type */
fd = s->cur_func;
scope = 0;
name = JS_ATOM_NULL;
label = -1;
depth = 0;
switch(opcode = get_prev_opcode(fd)) {
case OP_scope_get_var:
name = get_u32(fd->byte_code.buf + fd->last_opcode_pos + 1);
scope = get_u16(fd->byte_code.buf + fd->last_opcode_pos + 5);
if ((name == JS_ATOM_arguments || name == JS_ATOM_eval) &&
fd->is_strict_mode) {
return js_parse_error(s, "invalid lvalue in strict mode");
}
if (name == JS_ATOM_this || name == JS_ATOM_new_target)
goto invalid_lvalue;
depth = 2; /* will generate OP_get_ref_value */
break;
case OP_get_field:
name = get_u32(fd->byte_code.buf + fd->last_opcode_pos + 1);
depth = 1;
break;
case OP_scope_get_private_field:
name = get_u32(fd->byte_code.buf + fd->last_opcode_pos + 1);
scope = get_u16(fd->byte_code.buf + fd->last_opcode_pos + 5);
depth = 1;
break;
case OP_get_array_el:
depth = 2;
break;
case OP_get_super_value:
depth = 3;
break;
default:
invalid_lvalue:
if (tok == TOK_FOR) {
return js_parse_error(s, "invalid for in/of left hand-side");
} else if (tok == TOK_INC || tok == TOK_DEC) {
return js_parse_error(s, "invalid increment/decrement operand");
} else if (tok == '[' || tok == '{') {
return js_parse_error(s, "invalid destructuring target");
} else {
return js_parse_error(s, "invalid assignment left-hand side");
}
}
/* remove the last opcode */
fd->byte_code.size = fd->last_opcode_pos;
fd->last_opcode_pos = -1;
if (keep) {
/* get the value but keep the object/fields on the stack */
switch(opcode) {
case OP_scope_get_var:
label = new_label(s);
emit_op(s, OP_scope_make_ref);
emit_atom(s, name);
emit_u32(s, label);
emit_u16(s, scope);
update_label(fd, label, 1);
emit_op(s, OP_get_ref_value);
opcode = OP_get_ref_value;
break;
case OP_get_field:
emit_op(s, OP_get_field2);
emit_atom(s, name);
emit_ic(s, name);
break;
case OP_scope_get_private_field:
emit_op(s, OP_scope_get_private_field2);
emit_atom(s, name);
emit_u16(s, scope);
break;
case OP_get_array_el:
/* XXX: replace by a single opcode ? */
emit_op(s, OP_to_propkey2);
emit_op(s, OP_dup2);
emit_op(s, OP_get_array_el);
break;
case OP_get_super_value:
emit_op(s, OP_to_propkey);
emit_op(s, OP_dup3);
emit_op(s, OP_get_super_value);
break;
default:
abort();
}
} else {
switch(opcode) {
case OP_scope_get_var:
label = new_label(s);
emit_op(s, OP_scope_make_ref);
emit_atom(s, name);
emit_u32(s, label);
emit_u16(s, scope);
update_label(fd, label, 1);
opcode = OP_get_ref_value;
break;
case OP_get_array_el:
emit_op(s, OP_to_propkey2);
break;
case OP_get_super_value:
emit_op(s, OP_to_propkey);
break;
}
}
*popcode = opcode;
*pscope = scope;
/* name has refcount for OP_get_field and OP_get_ref_value,
and JS_ATOM_NULL for other opcodes */
*pname = name;
*plabel = label;
if (pdepth)
*pdepth = depth;
return 0;
}
|
O2
|
c
|
get_lvalue:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbp
movq 0x90(%rdi), %r15
movslq 0x168(%r15), %rax
testq %rax, %rax
js 0x5a44c
movq %r9, %rbx
movq 0x138(%r15), %rdi
movzbl (%rdi,%rax), %r12d
cmpl $0x41, %r12d
je 0x5a4b1
pushq $0x2
popq %r10
cmpl $0x47, %r12d
je 0x5a48f
cmpl $0x4a, %r12d
je 0x5a4a5
cmpl $0xbd, %r12d
je 0x5a494
cmpl $0xb7, %r12d
jne 0x5a44c
movl 0x1(%rdi,%rax), %r14d
cmpl $0x8, %r14d
je 0x5a44c
movzwl 0x5(%rdi,%rax), %r9d
cmpl $0x3b, %r14d
je 0x5a435
cmpl $0x72, %r14d
je 0x5a44c
cmpl $0x4e, %r14d
jne 0x5a4bd
cmpw $0x0, 0x84(%r15)
jns 0x5a4bd
leaq 0x30e19(%rip), %rsi # 0x8b260
jmp 0x5a60c
movl 0x68(%rsp), %eax
cmpl $-0x45, %eax
jne 0x5a461
leaq 0x30e22(%rip), %rsi # 0x8b27e
jmp 0x5a60c
movl %eax, %ecx
andl $-0x2, %ecx
cmpl $-0x6c, %ecx
jne 0x5a477
leaq 0x30e2d(%rip), %rsi # 0x8b29f
jmp 0x5a60c
andl $-0x21, %eax
cmpl $0x5b, %eax
jne 0x5a605
leaq 0x308ce(%rip), %rsi # 0x8ad58
jmp 0x5a60c
xorl %r9d, %r9d
jmp 0x5a4ac
movl 0x1(%rdi,%rax), %r14d
movzwl 0x5(%rdi,%rax), %r9d
pushq $0x1
popq %r10
jmp 0x5a4bd
xorl %r9d, %r9d
pushq $0x3
popq %r10
xorl %r14d, %r14d
jmp 0x5a4bd
movl 0x1(%rdi,%rax), %r14d
pushq $0x1
popq %r10
xorl %r9d, %r9d
movl 0x60(%rsp), %edi
movzwl %r9w, %r9d
movl %r9d, (%rsp)
movq %rax, 0x140(%r15)
orl $-0x1, 0x168(%r15)
testl %edi, %edi
movq %r8, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movl %r10d, 0x4(%rsp)
je 0x5a58f
cmpl $0x41, %r12d
je 0x5a638
cmpl $0x47, %r12d
je 0x5a61e
cmpl $0x4a, %r12d
je 0x5a661
cmpl $0xbd, %r12d
je 0x5a68c
cmpl $0xb7, %r12d
jne 0x5a717
movq %rbp, %rdi
callq 0x59bfb
movl %eax, %r13d
movq %rbp, %rdi
movl $0xba, %esi
callq 0x535cb
movq %rbp, %rdi
movl %r14d, %esi
callq 0x54cac
movq %rbp, %rdi
movl %r13d, %esi
callq 0x59f8e
movq %rbp, %rdi
movl (%rsp), %esi
callq 0x535ea
movq 0x170(%r15), %rax
movslq %r13d, %rcx
imulq $0x18, %rcx, %rcx
incl (%rax,%rcx)
pushq $0x3c
popq %r12
movq %rbp, %rdi
movl %r12d, %esi
callq 0x535cb
jmp 0x5a6d9
pushq $-0x1
popq %r13
cmpl $0x47, %r12d
je 0x5a6ca
cmpl $0x4a, %r12d
je 0x5a6bb
cmpl $0xb7, %r12d
jne 0x5a6d9
movq %rbp, %rdi
callq 0x59bfb
movl %eax, %r13d
movq %rbp, %rdi
movl $0xba, %esi
callq 0x535cb
movq %rbp, %rdi
movl %r14d, %esi
callq 0x54cac
movq %rbp, %rdi
movl %r13d, %esi
callq 0x59f8e
movq %rbp, %rdi
movl (%rsp), %esi
callq 0x535ea
movq 0x170(%r15), %rax
movslq %r13d, %rcx
imulq $0x18, %rcx, %rcx
incl (%rax,%rcx)
pushq $0x3c
jmp 0x5a6d7
leaq 0x30cb7(%rip), %rsi # 0x8b2c3
movq %rbp, %rdi
xorl %eax, %eax
callq 0x2c007
pushq $-0x1
popq %rax
jmp 0x5a708
pushq $0x72
popq %rsi
movq %rbp, %rdi
callq 0x535cb
pushq $0x13
popq %rsi
movq %rbp, %rdi
callq 0x535cb
pushq $0x47
jmp 0x5a679
pushq $0x42
popq %rsi
movq %rbp, %rdi
callq 0x535cb
movq %rbp, %rdi
movl %r14d, %esi
callq 0x54cac
movq %rbp, %rdi
movl %r14d, %esi
callq 0x5aa76
pushq $-0x1
popq %r13
pushq $0x41
jmp 0x5a6d7
pushq $0x71
popq %rsi
movq %rbp, %rdi
callq 0x535cb
pushq $0x14
popq %rsi
movq %rbp, %rdi
callq 0x535cb
pushq $0x4a
popq %r12
movq %rbp, %rdi
movl %r12d, %esi
callq 0x535cb
pushq $-0x1
popq %r13
jmp 0x5a6d9
movq %rbp, %rdi
movl $0xbe, %esi
callq 0x535cb
movq %rbp, %rdi
movl %r14d, %esi
callq 0x54cac
movq %rbp, %rdi
movl (%rsp), %esi
callq 0x535ea
pushq $-0x1
popq %r13
movl $0xbd, %r12d
jmp 0x5a6d9
pushq $0x71
popq %rsi
movq %rbp, %rdi
callq 0x535cb
pushq $0x4a
jmp 0x5a6d7
pushq $0x72
popq %rsi
movq %rbp, %rdi
callq 0x535cb
pushq $0x47
popq %r12
movq 0x8(%rsp), %rax
movl %r12d, (%rax)
movq 0x10(%rsp), %rax
movl (%rsp), %ecx
movl %ecx, (%rax)
movq 0x18(%rsp), %rax
movl %r14d, (%rax)
movq 0x20(%rsp), %rax
movl %r13d, (%rax)
xorl %eax, %eax
testq %rbx, %rbx
je 0x5a708
movl 0x4(%rsp), %ecx
movl %ecx, (%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xe090
|
get_lvalue:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov rbp, rdi
mov r15, [rdi+90h]
movsxd rax, dword ptr [r15+168h]
test rax, rax
js loc_5A44C
mov rbx, r9
mov rdi, [r15+138h]
movzx r12d, byte ptr [rdi+rax]
cmp r12d, 41h ; 'A'
jz loc_5A4B1
push 2
pop r10
cmp r12d, 47h ; 'G'
jz loc_5A48F
cmp r12d, 4Ah ; 'J'
jz loc_5A4A5
cmp r12d, 0BDh
jz loc_5A494
cmp r12d, 0B7h
jnz short loc_5A44C
mov r14d, [rdi+rax+1]
cmp r14d, 8
jz short loc_5A44C
movzx r9d, word ptr [rdi+rax+5]
cmp r14d, 3Bh ; ';'
jz short loc_5A435
cmp r14d, 72h ; 'r'
jz short loc_5A44C
cmp r14d, 4Eh ; 'N'
jnz loc_5A4BD
loc_5A435:
cmp word ptr [r15+84h], 0
jns short loc_5A4BD
lea rsi, aInvalidLvalueI; "invalid lvalue in strict mode"
jmp loc_5A60C
loc_5A44C:
mov eax, [rsp+58h+arg_8]
cmp eax, 0FFFFFFBBh
jnz short loc_5A461
lea rsi, aInvalidForInOf; "invalid for in/of left hand-side"
jmp loc_5A60C
loc_5A461:
mov ecx, eax
and ecx, 0FFFFFFFEh
cmp ecx, 0FFFFFF94h
jnz short loc_5A477
lea rsi, aInvalidIncreme; "invalid increment/decrement operand"
jmp loc_5A60C
loc_5A477:
and eax, 0FFFFFFDFh
cmp eax, 5Bh ; '['
jnz loc_5A605
lea rsi, aInvalidDestruc; "invalid destructuring target"
jmp loc_5A60C
loc_5A48F:
xor r9d, r9d
jmp short loc_5A4AC
loc_5A494:
mov r14d, [rdi+rax+1]
movzx r9d, word ptr [rdi+rax+5]
push 1
pop r10
jmp short loc_5A4BD
loc_5A4A5:
xor r9d, r9d
push 3
pop r10
loc_5A4AC:
xor r14d, r14d
jmp short loc_5A4BD
loc_5A4B1:
mov r14d, [rdi+rax+1]
push 1
pop r10
xor r9d, r9d
loc_5A4BD:
mov edi, [rsp+58h+arg_0]
movzx r9d, r9w
mov [rsp+58h+var_58], r9d
mov [r15+140h], rax
or dword ptr [r15+168h], 0FFFFFFFFh
test edi, edi
mov [rsp+58h+var_38], r8
mov [rsp+58h+var_40], rcx
mov [rsp+58h+var_48], rdx
mov [rsp+58h+var_50], rsi
mov [rsp+58h+var_54], r10d
jz loc_5A58F
cmp r12d, 41h ; 'A'
jz loc_5A638
cmp r12d, 47h ; 'G'
jz loc_5A61E
cmp r12d, 4Ah ; 'J'
jz loc_5A661
cmp r12d, 0BDh
jz loc_5A68C
cmp r12d, 0B7h
jnz loc_5A717
mov rdi, rbp
call new_label
mov r13d, eax
mov rdi, rbp
mov esi, 0BAh
call emit_op
mov rdi, rbp
mov esi, r14d
call emit_atom
mov rdi, rbp
mov esi, r13d
call emit_u32
mov rdi, rbp
mov esi, [rsp+58h+var_58]
call emit_u16
mov rax, [r15+170h]
movsxd rcx, r13d
imul rcx, 18h
inc dword ptr [rax+rcx]
push 3Ch ; '<'
pop r12
mov rdi, rbp
mov esi, r12d
call emit_op
jmp loc_5A6D9
loc_5A58F:
push 0FFFFFFFFFFFFFFFFh
pop r13
cmp r12d, 47h ; 'G'
jz loc_5A6CA
cmp r12d, 4Ah ; 'J'
jz loc_5A6BB
cmp r12d, 0B7h
jnz loc_5A6D9
mov rdi, rbp
call new_label
mov r13d, eax
mov rdi, rbp
mov esi, 0BAh
call emit_op
mov rdi, rbp
mov esi, r14d
call emit_atom
mov rdi, rbp
mov esi, r13d
call emit_u32
mov rdi, rbp
mov esi, [rsp+58h+var_58]
call emit_u16
mov rax, [r15+170h]
movsxd rcx, r13d
imul rcx, 18h
inc dword ptr [rax+rcx]
push 3Ch ; '<'
jmp loc_5A6D7
loc_5A605:
lea rsi, aInvalidAssignm_0; "invalid assignment left-hand side"
loc_5A60C:
mov rdi, rbp
xor eax, eax
call js_parse_error
push 0FFFFFFFFFFFFFFFFh
pop rax
jmp loc_5A708
loc_5A61E:
push 72h ; 'r'
pop rsi
mov rdi, rbp
call emit_op
push 13h
pop rsi
mov rdi, rbp
call emit_op
push 47h ; 'G'
jmp short loc_5A679
loc_5A638:
push 42h ; 'B'
pop rsi
mov rdi, rbp
call emit_op
mov rdi, rbp
mov esi, r14d
call emit_atom
mov rdi, rbp
mov esi, r14d
call emit_ic
push 0FFFFFFFFFFFFFFFFh
pop r13
push 41h ; 'A'
jmp short loc_5A6D7
loc_5A661:
push 71h ; 'q'
pop rsi
mov rdi, rbp
call emit_op
push 14h
pop rsi
mov rdi, rbp
call emit_op
push 4Ah ; 'J'
loc_5A679:
pop r12
mov rdi, rbp
mov esi, r12d
call emit_op
push 0FFFFFFFFFFFFFFFFh
pop r13
jmp short loc_5A6D9
loc_5A68C:
mov rdi, rbp
mov esi, 0BEh
call emit_op
mov rdi, rbp
mov esi, r14d
call emit_atom
mov rdi, rbp
mov esi, [rsp+58h+var_58]
call emit_u16
push 0FFFFFFFFFFFFFFFFh
pop r13
mov r12d, 0BDh
jmp short loc_5A6D9
loc_5A6BB:
push 71h ; 'q'
pop rsi
mov rdi, rbp
call emit_op
push 4Ah ; 'J'
jmp short loc_5A6D7
loc_5A6CA:
push 72h ; 'r'
pop rsi
mov rdi, rbp
call emit_op
push 47h ; 'G'
loc_5A6D7:
pop r12
loc_5A6D9:
mov rax, [rsp+58h+var_50]
mov [rax], r12d
mov rax, [rsp+58h+var_48]
mov ecx, [rsp+58h+var_58]
mov [rax], ecx
mov rax, [rsp+58h+var_40]
mov [rax], r14d
mov rax, [rsp+58h+var_38]
mov [rax], r13d
xor eax, eax
test rbx, rbx
jz short loc_5A708
mov ecx, [rsp+58h+var_54]
mov [rbx], ecx
loc_5A708:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_5A717:
call _abort
|
long long get_lvalue(
long long *a1,
int *a2,
_DWORD *a3,
long long a4,
signed int *a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
int a15,
int a16)
{
long long v17; // r15
long long v18; // rax
_DWORD *v19; // rbx
long long v20; // rdi
int v21; // r12d
int v22; // r10d
unsigned int v23; // r14d
const char *v24; // rsi
signed int v25; // r13d
long long result; // rax
int v27; // [rsp-8h] [rbp-60h]
int v28; // [rsp-8h] [rbp-60h]
char v29; // [rsp+0h] [rbp-58h]
int v30; // [rsp+0h] [rbp-58h]
int v31; // [rsp+4h] [rbp-54h]
_DWORD *v33; // [rsp+18h] [rbp-40h]
v17 = a1[18];
v18 = *(int *)(v17 + 360);
if ( v18 < 0 )
goto LABEL_13;
v19 = (_DWORD *)a6;
v20 = *(_QWORD *)(v17 + 312);
v21 = *(unsigned __int8 *)(v20 + v18);
if ( v21 == 65 )
{
v23 = *(_DWORD *)(v20 + v18 + 1);
v22 = 1;
LOWORD(a6) = 0;
goto LABEL_24;
}
v22 = 2;
switch ( v21 )
{
case 71:
LOWORD(a6) = 0;
LABEL_22:
v23 = 0;
goto LABEL_24;
case 74:
LOWORD(a6) = 0;
v22 = 3;
goto LABEL_22;
case 189:
v23 = *(_DWORD *)(v20 + v18 + 1);
LOWORD(a6) = *(_WORD *)(v20 + v18 + 5);
v22 = 1;
goto LABEL_24;
}
if ( v21 != 183 )
goto LABEL_13;
v23 = *(_DWORD *)(v20 + v18 + 1);
if ( v23 == 8 )
goto LABEL_13;
a6 = *(unsigned __int16 *)(v20 + v18 + 5);
if ( v23 != 59 )
{
if ( v23 != 114 )
{
if ( v23 != 78 )
goto LABEL_24;
goto LABEL_11;
}
LABEL_13:
if ( a16 == -69 )
{
v24 = "invalid for in/of left hand-side";
}
else
{
a4 = a16 & 0xFFFFFFFE;
if ( (_DWORD)a4 == -108 )
{
v24 = "invalid increment/decrement operand";
}
else if ( (a16 & 0xFFFFFFDF) == 0x5B )
{
v24 = "invalid destructuring target";
}
else
{
v24 = "invalid assignment left-hand side";
}
}
goto LABEL_35;
}
LABEL_11:
if ( *(__int16 *)(v17 + 132) < 0 )
{
v24 = "invalid lvalue in strict mode";
LABEL_35:
js_parse_error(a1, (long long)v24, (long long)a3, a4, (long long)a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v29);
return -1LL;
}
LABEL_24:
v30 = (unsigned __int16)a6;
*(_QWORD *)(v17 + 320) = v18;
*(_DWORD *)(v17 + 360) = -1;
v33 = (_DWORD *)a4;
v31 = v22;
if ( !a15 )
{
v25 = -1;
switch ( v21 )
{
case 71:
emit_op((long long)a1, 114);
v27 = 71;
break;
case 74:
emit_op((long long)a1, 113);
v27 = 74;
break;
case 183:
v25 = new_label((long long)a1);
emit_op((long long)a1, 186);
emit_atom((long long)a1, v23);
emit_u32((long long)a1, v25);
emit_u16((long long)a1, v30);
++*(_DWORD *)(*(_QWORD *)(v17 + 368) + 24LL * v25);
v27 = 60;
break;
default:
goto LABEL_44;
}
goto LABEL_43;
}
if ( v21 == 65 )
{
emit_op((long long)a1, 66);
emit_atom((long long)a1, v23);
emit_ic(a1, v23);
v25 = -1;
v27 = 65;
LABEL_43:
v21 = v27;
goto LABEL_44;
}
if ( v21 == 71 )
{
emit_op((long long)a1, 114);
emit_op((long long)a1, 19);
v28 = 71;
}
else
{
if ( v21 != 74 )
{
if ( v21 == 189 )
{
emit_op((long long)a1, 190);
emit_atom((long long)a1, v23);
emit_u16((long long)a1, v30);
v25 = -1;
v21 = 189;
}
else
{
v25 = new_label((long long)a1);
emit_op((long long)a1, 186);
emit_atom((long long)a1, v23);
emit_u32((long long)a1, v25);
emit_u16((long long)a1, v30);
++*(_DWORD *)(*(_QWORD *)(v17 + 368) + 24LL * v25);
v21 = 60;
emit_op((long long)a1, 60);
}
goto LABEL_44;
}
emit_op((long long)a1, 113);
emit_op((long long)a1, 20);
v28 = 74;
}
v21 = v28;
emit_op((long long)a1, v28);
v25 = -1;
LABEL_44:
*a2 = v21;
*a3 = v30;
*v33 = v23;
*a5 = v25;
result = 0LL;
if ( v19 )
*v19 = v31;
return result;
}
|
get_lvalue:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV RBP,RDI
MOV R15,qword ptr [RDI + 0x90]
MOVSXD RAX,dword ptr [R15 + 0x168]
TEST RAX,RAX
JS 0x0015a44c
MOV RBX,R9
MOV RDI,qword ptr [R15 + 0x138]
MOVZX R12D,byte ptr [RDI + RAX*0x1]
CMP R12D,0x41
JZ 0x0015a4b1
PUSH 0x2
POP R10
CMP R12D,0x47
JZ 0x0015a48f
CMP R12D,0x4a
JZ 0x0015a4a5
CMP R12D,0xbd
JZ 0x0015a494
CMP R12D,0xb7
JNZ 0x0015a44c
MOV R14D,dword ptr [RDI + RAX*0x1 + 0x1]
CMP R14D,0x8
JZ 0x0015a44c
MOVZX R9D,word ptr [RDI + RAX*0x1 + 0x5]
CMP R14D,0x3b
JZ 0x0015a435
CMP R14D,0x72
JZ 0x0015a44c
CMP R14D,0x4e
JNZ 0x0015a4bd
LAB_0015a435:
CMP word ptr [R15 + 0x84],0x0
JNS 0x0015a4bd
LEA RSI,[0x18b260]
JMP 0x0015a60c
LAB_0015a44c:
MOV EAX,dword ptr [RSP + 0x68]
CMP EAX,-0x45
JNZ 0x0015a461
LEA RSI,[0x18b27e]
JMP 0x0015a60c
LAB_0015a461:
MOV ECX,EAX
AND ECX,0xfffffffe
CMP ECX,-0x6c
JNZ 0x0015a477
LEA RSI,[0x18b29f]
JMP 0x0015a60c
LAB_0015a477:
AND EAX,0xffffffdf
CMP EAX,0x5b
JNZ 0x0015a605
LEA RSI,[0x18ad58]
JMP 0x0015a60c
LAB_0015a48f:
XOR R9D,R9D
JMP 0x0015a4ac
LAB_0015a494:
MOV R14D,dword ptr [RDI + RAX*0x1 + 0x1]
MOVZX R9D,word ptr [RDI + RAX*0x1 + 0x5]
PUSH 0x1
POP R10
JMP 0x0015a4bd
LAB_0015a4a5:
XOR R9D,R9D
PUSH 0x3
POP R10
LAB_0015a4ac:
XOR R14D,R14D
JMP 0x0015a4bd
LAB_0015a4b1:
MOV R14D,dword ptr [RDI + RAX*0x1 + 0x1]
PUSH 0x1
POP R10
XOR R9D,R9D
LAB_0015a4bd:
MOV EDI,dword ptr [RSP + 0x60]
MOVZX R9D,R9W
MOV dword ptr [RSP],R9D
MOV qword ptr [R15 + 0x140],RAX
OR dword ptr [R15 + 0x168],0xffffffff
TEST EDI,EDI
MOV qword ptr [RSP + 0x20],R8
MOV qword ptr [RSP + 0x18],RCX
MOV qword ptr [RSP + 0x10],RDX
MOV qword ptr [RSP + 0x8],RSI
MOV dword ptr [RSP + 0x4],R10D
JZ 0x0015a58f
CMP R12D,0x41
JZ 0x0015a638
CMP R12D,0x47
JZ 0x0015a61e
CMP R12D,0x4a
JZ 0x0015a661
CMP R12D,0xbd
JZ 0x0015a68c
CMP R12D,0xb7
JNZ 0x0015a717
MOV RDI,RBP
CALL 0x00159bfb
MOV R13D,EAX
MOV RDI,RBP
MOV ESI,0xba
CALL 0x001535cb
MOV RDI,RBP
MOV ESI,R14D
CALL 0x00154cac
MOV RDI,RBP
MOV ESI,R13D
CALL 0x00159f8e
MOV RDI,RBP
MOV ESI,dword ptr [RSP]
CALL 0x001535ea
MOV RAX,qword ptr [R15 + 0x170]
MOVSXD RCX,R13D
IMUL RCX,RCX,0x18
INC dword ptr [RAX + RCX*0x1]
PUSH 0x3c
POP R12
MOV RDI,RBP
MOV ESI,R12D
CALL 0x001535cb
JMP 0x0015a6d9
LAB_0015a58f:
PUSH -0x1
POP R13
CMP R12D,0x47
JZ 0x0015a6ca
CMP R12D,0x4a
JZ 0x0015a6bb
CMP R12D,0xb7
JNZ 0x0015a6d9
MOV RDI,RBP
CALL 0x00159bfb
MOV R13D,EAX
MOV RDI,RBP
MOV ESI,0xba
CALL 0x001535cb
MOV RDI,RBP
MOV ESI,R14D
CALL 0x00154cac
MOV RDI,RBP
MOV ESI,R13D
CALL 0x00159f8e
MOV RDI,RBP
MOV ESI,dword ptr [RSP]
CALL 0x001535ea
MOV RAX,qword ptr [R15 + 0x170]
MOVSXD RCX,R13D
IMUL RCX,RCX,0x18
INC dword ptr [RAX + RCX*0x1]
PUSH 0x3c
JMP 0x0015a6d7
LAB_0015a605:
LEA RSI,[0x18b2c3]
LAB_0015a60c:
MOV RDI,RBP
XOR EAX,EAX
CALL 0x0012c007
PUSH -0x1
POP RAX
JMP 0x0015a708
LAB_0015a61e:
PUSH 0x72
POP RSI
MOV RDI,RBP
CALL 0x001535cb
PUSH 0x13
POP RSI
MOV RDI,RBP
CALL 0x001535cb
PUSH 0x47
JMP 0x0015a679
LAB_0015a638:
PUSH 0x42
POP RSI
MOV RDI,RBP
CALL 0x001535cb
MOV RDI,RBP
MOV ESI,R14D
CALL 0x00154cac
MOV RDI,RBP
MOV ESI,R14D
CALL 0x0015aa76
PUSH -0x1
POP R13
PUSH 0x41
JMP 0x0015a6d7
LAB_0015a661:
PUSH 0x71
POP RSI
MOV RDI,RBP
CALL 0x001535cb
PUSH 0x14
POP RSI
MOV RDI,RBP
CALL 0x001535cb
PUSH 0x4a
LAB_0015a679:
POP R12
MOV RDI,RBP
MOV ESI,R12D
CALL 0x001535cb
PUSH -0x1
POP R13
JMP 0x0015a6d9
LAB_0015a68c:
MOV RDI,RBP
MOV ESI,0xbe
CALL 0x001535cb
MOV RDI,RBP
MOV ESI,R14D
CALL 0x00154cac
MOV RDI,RBP
MOV ESI,dword ptr [RSP]
CALL 0x001535ea
PUSH -0x1
POP R13
MOV R12D,0xbd
JMP 0x0015a6d9
LAB_0015a6bb:
PUSH 0x71
POP RSI
MOV RDI,RBP
CALL 0x001535cb
PUSH 0x4a
JMP 0x0015a6d7
LAB_0015a6ca:
PUSH 0x72
POP RSI
MOV RDI,RBP
CALL 0x001535cb
PUSH 0x47
LAB_0015a6d7:
POP R12
LAB_0015a6d9:
MOV RAX,qword ptr [RSP + 0x8]
MOV dword ptr [RAX],R12D
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RSP]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RSP + 0x18]
MOV dword ptr [RAX],R14D
MOV RAX,qword ptr [RSP + 0x20]
MOV dword ptr [RAX],R13D
XOR EAX,EAX
TEST RBX,RBX
JZ 0x0015a708
MOV ECX,dword ptr [RSP + 0x4]
MOV dword ptr [RBX],ECX
LAB_0015a708:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0015a717:
CALL 0x0010e090
|
int8
get_lvalue(long param_1,uint *param_2,uint *param_3,int *param_4,int *param_5,int4 *param_6,
int param_7,uint param_8)
{
int *piVar1;
byte bVar2;
long lVar3;
long lVar4;
int iVar5;
long lVar6;
char *pcVar7;
uint uVar8;
int4 uVar9;
uint uVar10;
int iVar11;
lVar3 = *(long *)(param_1 + 0x90);
lVar6 = (long)*(int *)(lVar3 + 0x168);
if (lVar6 < 0) goto LAB_0015a44c;
lVar4 = *(long *)(lVar3 + 0x138);
bVar2 = *(byte *)(lVar4 + lVar6);
uVar10 = (uint)bVar2;
if (bVar2 == 0x41) {
iVar11 = *(int *)(lVar4 + 1 + lVar6);
uVar9 = 1;
uVar8 = 0;
}
else {
uVar9 = 2;
if (bVar2 != 0x47) {
if (bVar2 != 0x4a) {
if (bVar2 == 0xbd) {
iVar11 = *(int *)(lVar4 + 1 + lVar6);
uVar8 = (uint)*(ushort *)(lVar4 + 5 + lVar6);
uVar9 = 1;
goto LAB_0015a4bd;
}
if ((bVar2 != 0xb7) || (iVar11 = *(int *)(lVar4 + 1 + lVar6), iVar11 == 8)) {
LAB_0015a44c:
if (param_8 == 0xffffffbb) {
pcVar7 = "invalid for in/of left hand-side";
}
else if ((param_8 & 0xfffffffe) == 0xffffff94) {
pcVar7 = "invalid increment/decrement operand";
}
else if ((param_8 & 0xffffffdf) == 0x5b) {
pcVar7 = "invalid destructuring target";
}
else {
pcVar7 = "invalid assignment left-hand side";
}
LAB_0015a60c:
js_parse_error(param_1,pcVar7);
return 0xffffffffffffffff;
}
uVar8 = (uint)*(ushort *)(lVar4 + 5 + lVar6);
if (iVar11 != 0x3b) {
if (iVar11 == 0x72) goto LAB_0015a44c;
if (iVar11 != 0x4e) goto LAB_0015a4bd;
}
if (*(short *)(lVar3 + 0x84) < 0) {
pcVar7 = "invalid lvalue in strict mode";
goto LAB_0015a60c;
}
goto LAB_0015a4bd;
}
uVar9 = 3;
}
uVar8 = 0;
iVar11 = 0;
}
LAB_0015a4bd:
*(long *)(lVar3 + 0x140) = lVar6;
*(int4 *)(lVar3 + 0x168) = 0xffffffff;
if (param_7 == 0) {
iVar5 = -1;
if (bVar2 == 0x47) {
emit_op(param_1,0x72);
uVar10 = 0x47;
}
else if (bVar2 == 0x4a) {
emit_op(param_1,0x71);
uVar10 = 0x4a;
}
else if (bVar2 == 0xb7) {
iVar5 = new_label(param_1);
emit_op(param_1,0xba);
emit_atom(param_1,iVar11);
emit_u32(param_1,iVar5);
emit_u16(param_1,uVar8);
piVar1 = (int *)(*(long *)(lVar3 + 0x170) + (long)iVar5 * 0x18);
*piVar1 = *piVar1 + 1;
uVar10 = 0x3c;
}
}
else if (bVar2 == 0x41) {
emit_op(param_1,0x42);
emit_atom(param_1,iVar11);
emit_ic(param_1,iVar11);
iVar5 = -1;
uVar10 = 0x41;
}
else {
if (bVar2 == 0x47) {
emit_op(param_1,0x72);
emit_op(param_1,0x13);
uVar10 = 0x47;
}
else {
if (bVar2 != 0x4a) {
if (bVar2 == 0xbd) {
emit_op(param_1,0xbe);
emit_atom(param_1,iVar11);
emit_u16(param_1,uVar8);
iVar5 = -1;
uVar10 = 0xbd;
}
else {
if (bVar2 != 0xb7) {
/* WARNING: Subroutine does not return */
abort();
}
iVar5 = new_label(param_1);
emit_op(param_1,0xba);
emit_atom(param_1,iVar11);
emit_u32(param_1,iVar5);
emit_u16(param_1,uVar8);
piVar1 = (int *)(*(long *)(lVar3 + 0x170) + (long)iVar5 * 0x18);
*piVar1 = *piVar1 + 1;
uVar10 = 0x3c;
emit_op(param_1,0x3c);
}
goto LAB_0015a6d9;
}
emit_op(param_1,0x71);
emit_op(param_1,0x14);
uVar10 = 0x4a;
}
emit_op(param_1,uVar10);
iVar5 = -1;
}
LAB_0015a6d9:
*param_2 = uVar10;
*param_3 = uVar8;
*param_4 = iVar11;
*param_5 = iVar5;
if (param_6 != (int4 *)0x0) {
*param_6 = uVar9;
}
return 0;
}
|
|
10,791 |
my_fcvt
|
eloqsql/strings/dtoa.c
|
size_t my_fcvt(double x, int precision, char *to, my_bool *error)
{
int decpt, sign, len, i;
char *res, *src, *end, *dst= to;
char buf[DTOA_BUFF_SIZE];
DBUG_ASSERT(precision >= 0 && precision < DECIMAL_NOT_SPECIFIED && to != NULL);
res= dtoa(x, 5, precision, &decpt, &sign, &end, buf, sizeof(buf));
if (decpt == DTOA_OVERFLOW)
{
dtoa_free(res, buf, sizeof(buf));
*to++= '0';
*to= '\0';
if (error != NULL)
*error= TRUE;
return 1;
}
src= res;
len= (int)(end - src);
if (sign)
*dst++= '-';
if (decpt <= 0)
{
*dst++= '0';
*dst++= '.';
for (i= decpt; i < 0; i++)
*dst++= '0';
}
for (i= 1; i <= len; i++)
{
*dst++= *src++;
if (i == decpt && i < len)
*dst++= '.';
}
while (i++ <= decpt)
*dst++= '0';
if (precision > 0)
{
if (len <= decpt)
*dst++= '.';
for (i= precision - MY_MAX(0, (len - decpt)); i > 0; i--)
*dst++= '0';
}
*dst= '\0';
if (error != NULL)
*error= FALSE;
dtoa_free(res, buf, sizeof(buf));
return dst - to;
}
|
O0
|
c
|
my_fcvt:
pushq %rbp
movq %rsp, %rbp
subq $0xee0, %rsp # imm = 0xEE0
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movsd %xmm0, -0xe80(%rbp)
movl %edi, -0xe84(%rbp)
movq %rsi, -0xe90(%rbp)
movq %rdx, -0xe98(%rbp)
movq -0xe90(%rbp), %rax
movq %rax, -0xec8(%rbp)
jmp 0xd8524
movsd -0xe80(%rbp), %xmm0
movl -0xe84(%rbp), %esi
leaq -0xe70(%rbp), %r9
movl $0x5, %edi
leaq -0xe9c(%rbp), %rdx
leaq -0xea0(%rbp), %rcx
leaq -0xec0(%rbp), %r8
movq $0xe60, (%rsp) # imm = 0xE60
callq 0xd8890
movq %rax, -0xeb0(%rbp)
cmpl $0x270f, -0xe9c(%rbp) # imm = 0x270F
jne 0xd85d1
movq -0xeb0(%rbp), %rdi
leaq -0xe70(%rbp), %rsi
movl $0xe60, %edx # imm = 0xE60
callq 0xd9ee0
movq -0xe90(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xe90(%rbp)
movb $0x30, (%rax)
movq -0xe90(%rbp), %rax
movb $0x0, (%rax)
cmpq $0x0, -0xe98(%rbp)
je 0xd85c1
movq -0xe98(%rbp), %rax
movb $0x1, (%rax)
movq $0x1, -0xe78(%rbp)
jmp 0xd8858
movq -0xeb0(%rbp), %rax
movq %rax, -0xeb8(%rbp)
movq -0xec0(%rbp), %rax
movq -0xeb8(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0xea4(%rbp)
cmpl $0x0, -0xea0(%rbp)
je 0xd8617
movq -0xec8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xec8(%rbp)
movb $0x2d, (%rax)
cmpl $0x0, -0xe9c(%rbp)
jg 0xd8690
movq -0xec8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xec8(%rbp)
movb $0x30, (%rax)
movq -0xec8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xec8(%rbp)
movb $0x2e, (%rax)
movl -0xe9c(%rbp), %eax
movl %eax, -0xea8(%rbp)
cmpl $0x0, -0xea8(%rbp)
jge 0xd868e
movq -0xec8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xec8(%rbp)
movb $0x30, (%rax)
movl -0xea8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xea8(%rbp)
jmp 0xd865c
jmp 0xd8690
movl $0x1, -0xea8(%rbp)
movl -0xea8(%rbp), %eax
cmpl -0xea4(%rbp), %eax
jg 0xd8720
movq -0xeb8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xeb8(%rbp)
movb (%rax), %cl
movq -0xec8(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0xec8(%rbp)
movb %cl, (%rax)
movl -0xea8(%rbp), %eax
cmpl -0xe9c(%rbp), %eax
jne 0xd870a
movl -0xea8(%rbp), %eax
cmpl -0xea4(%rbp), %eax
jge 0xd870a
movq -0xec8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xec8(%rbp)
movb $0x2e, (%rax)
jmp 0xd870c
movl -0xea8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xea8(%rbp)
jmp 0xd869a
jmp 0xd8722
movl -0xea8(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0xea8(%rbp)
cmpl -0xe9c(%rbp), %eax
jg 0xd8755
movq -0xec8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xec8(%rbp)
movb $0x30, (%rax)
jmp 0xd8722
cmpl $0x0, -0xe84(%rbp)
jle 0xd880a
movl -0xea4(%rbp), %eax
cmpl -0xe9c(%rbp), %eax
jg 0xd8788
movq -0xec8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xec8(%rbp)
movb $0x2e, (%rax)
movl -0xe84(%rbp), %eax
movl %eax, -0xecc(%rbp)
movl -0xea4(%rbp), %ecx
subl -0xe9c(%rbp), %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jle 0xd87b0
xorl %eax, %eax
movl %eax, -0xed0(%rbp)
jmp 0xd87c2
movl -0xea4(%rbp), %eax
subl -0xe9c(%rbp), %eax
movl %eax, -0xed0(%rbp)
movl -0xecc(%rbp), %eax
movl -0xed0(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0xea8(%rbp)
cmpl $0x0, -0xea8(%rbp)
jle 0xd8808
movq -0xec8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xec8(%rbp)
movb $0x30, (%rax)
movl -0xea8(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xea8(%rbp)
jmp 0xd87d6
jmp 0xd880a
movq -0xec8(%rbp), %rax
movb $0x0, (%rax)
cmpq $0x0, -0xe98(%rbp)
je 0xd8828
movq -0xe98(%rbp), %rax
movb $0x0, (%rax)
movq -0xeb0(%rbp), %rdi
leaq -0xe70(%rbp), %rsi
movl $0xe60, %edx # imm = 0xE60
callq 0xd9ee0
movq -0xec8(%rbp), %rax
movq -0xe90(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0xe78(%rbp)
movq -0xe78(%rbp), %rax
movq %rax, -0xed8(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xd8888
movq -0xed8(%rbp), %rax
addq $0xee0, %rsp # imm = 0xEE0
popq %rbp
retq
callq 0x29420
nopl (%rax)
|
my_fcvt:
push rbp
mov rbp, rsp
sub rsp, 0EE0h
mov rax, fs:28h
mov [rbp+var_8], rax
movsd [rbp+var_E80], xmm0
mov [rbp+var_E84], edi
mov [rbp+var_E90], rsi
mov [rbp+var_E98], rdx
mov rax, [rbp+var_E90]
mov [rbp+var_EC8], rax
jmp short $+2
loc_D8524:
movsd xmm0, [rbp+var_E80]
mov esi, [rbp+var_E84]
lea r9, [rbp+var_E70]
mov edi, 5
lea rdx, [rbp+var_E9C]
lea rcx, [rbp+var_EA0]
lea r8, [rbp+var_EC0]
mov [rsp+0EE0h+var_EE0], 0E60h
call dtoa
mov [rbp+var_EB0], rax
cmp [rbp+var_E9C], 270Fh
jnz short loc_D85D1
mov rdi, [rbp+var_EB0]
lea rsi, [rbp+var_E70]
mov edx, 0E60h
call dtoa_free
mov rax, [rbp+var_E90]
mov rcx, rax
add rcx, 1
mov [rbp+var_E90], rcx
mov byte ptr [rax], 30h ; '0'
mov rax, [rbp+var_E90]
mov byte ptr [rax], 0
cmp [rbp+var_E98], 0
jz short loc_D85C1
mov rax, [rbp+var_E98]
mov byte ptr [rax], 1
loc_D85C1:
mov [rbp+var_E78], 1
jmp loc_D8858
loc_D85D1:
mov rax, [rbp+var_EB0]
mov [rbp+var_EB8], rax
mov rax, [rbp+var_EC0]
mov rcx, [rbp+var_EB8]
sub rax, rcx
mov [rbp+var_EA4], eax
cmp [rbp+var_EA0], 0
jz short loc_D8617
mov rax, [rbp+var_EC8]
mov rcx, rax
add rcx, 1
mov [rbp+var_EC8], rcx
mov byte ptr [rax], 2Dh ; '-'
loc_D8617:
cmp [rbp+var_E9C], 0
jg short loc_D8690
mov rax, [rbp+var_EC8]
mov rcx, rax
add rcx, 1
mov [rbp+var_EC8], rcx
mov byte ptr [rax], 30h ; '0'
mov rax, [rbp+var_EC8]
mov rcx, rax
add rcx, 1
mov [rbp+var_EC8], rcx
mov byte ptr [rax], 2Eh ; '.'
mov eax, [rbp+var_E9C]
mov [rbp+var_EA8], eax
loc_D865C:
cmp [rbp+var_EA8], 0
jge short loc_D868E
mov rax, [rbp+var_EC8]
mov rcx, rax
add rcx, 1
mov [rbp+var_EC8], rcx
mov byte ptr [rax], 30h ; '0'
mov eax, [rbp+var_EA8]
add eax, 1
mov [rbp+var_EA8], eax
jmp short loc_D865C
loc_D868E:
jmp short $+2
loc_D8690:
mov [rbp+var_EA8], 1
loc_D869A:
mov eax, [rbp+var_EA8]
cmp eax, [rbp+var_EA4]
jg short loc_D8720
mov rax, [rbp+var_EB8]
mov rcx, rax
add rcx, 1
mov [rbp+var_EB8], rcx
mov cl, [rax]
mov rax, [rbp+var_EC8]
mov rdx, rax
add rdx, 1
mov [rbp+var_EC8], rdx
mov [rax], cl
mov eax, [rbp+var_EA8]
cmp eax, [rbp+var_E9C]
jnz short loc_D870A
mov eax, [rbp+var_EA8]
cmp eax, [rbp+var_EA4]
jge short loc_D870A
mov rax, [rbp+var_EC8]
mov rcx, rax
add rcx, 1
mov [rbp+var_EC8], rcx
mov byte ptr [rax], 2Eh ; '.'
loc_D870A:
jmp short $+2
loc_D870C:
mov eax, [rbp+var_EA8]
add eax, 1
mov [rbp+var_EA8], eax
jmp loc_D869A
loc_D8720:
jmp short $+2
loc_D8722:
mov eax, [rbp+var_EA8]
mov ecx, eax
add ecx, 1
mov [rbp+var_EA8], ecx
cmp eax, [rbp+var_E9C]
jg short loc_D8755
mov rax, [rbp+var_EC8]
mov rcx, rax
add rcx, 1
mov [rbp+var_EC8], rcx
mov byte ptr [rax], 30h ; '0'
jmp short loc_D8722
loc_D8755:
cmp [rbp+var_E84], 0
jle loc_D880A
mov eax, [rbp+var_EA4]
cmp eax, [rbp+var_E9C]
jg short loc_D8788
mov rax, [rbp+var_EC8]
mov rcx, rax
add rcx, 1
mov [rbp+var_EC8], rcx
mov byte ptr [rax], 2Eh ; '.'
loc_D8788:
mov eax, [rbp+var_E84]
mov [rbp+var_ECC], eax
mov ecx, [rbp+var_EA4]
sub ecx, [rbp+var_E9C]
xor eax, eax
cmp eax, ecx
jle short loc_D87B0
xor eax, eax
mov [rbp+var_ED0], eax
jmp short loc_D87C2
loc_D87B0:
mov eax, [rbp+var_EA4]
sub eax, [rbp+var_E9C]
mov [rbp+var_ED0], eax
loc_D87C2:
mov eax, [rbp+var_ECC]
mov ecx, [rbp+var_ED0]
sub eax, ecx
mov [rbp+var_EA8], eax
loc_D87D6:
cmp [rbp+var_EA8], 0
jle short loc_D8808
mov rax, [rbp+var_EC8]
mov rcx, rax
add rcx, 1
mov [rbp+var_EC8], rcx
mov byte ptr [rax], 30h ; '0'
mov eax, [rbp+var_EA8]
add eax, 0FFFFFFFFh
mov [rbp+var_EA8], eax
jmp short loc_D87D6
loc_D8808:
jmp short $+2
loc_D880A:
mov rax, [rbp+var_EC8]
mov byte ptr [rax], 0
cmp [rbp+var_E98], 0
jz short loc_D8828
mov rax, [rbp+var_E98]
mov byte ptr [rax], 0
loc_D8828:
mov rdi, [rbp+var_EB0]
lea rsi, [rbp+var_E70]
mov edx, 0E60h
call dtoa_free
mov rax, [rbp+var_EC8]
mov rcx, [rbp+var_E90]
sub rax, rcx
mov [rbp+var_E78], rax
loc_D8858:
mov rax, [rbp+var_E78]
mov [rbp+var_ED8], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_D8888
mov rax, [rbp+var_ED8]
add rsp, 0EE0h
pop rbp
retn
loc_D8888:
call ___stack_chk_fail
|
long long my_fcvt(int a1, _BYTE *a2, _BYTE *a3, double a4)
{
_BYTE *v4; // rax
_BYTE *v5; // rax
_BYTE *v6; // rax
char *v7; // rax
char v8; // cl
_BYTE *v9; // rax
_BYTE *v10; // rax
int v11; // eax
_BYTE *v12; // rax
_BYTE *v13; // rax
_BYTE *v14; // rax
int v16; // [rsp+10h] [rbp-ED0h]
_BYTE *v17; // [rsp+18h] [rbp-EC8h]
long long v18; // [rsp+20h] [rbp-EC0h] BYREF
char *v19; // [rsp+28h] [rbp-EB8h]
long long v20; // [rsp+30h] [rbp-EB0h]
int i; // [rsp+38h] [rbp-EA8h]
int v22; // [rsp+3Ch] [rbp-EA4h]
int v23; // [rsp+40h] [rbp-EA0h] BYREF
int v24; // [rsp+44h] [rbp-E9Ch] BYREF
_BYTE *v25; // [rsp+48h] [rbp-E98h]
_BYTE *v26; // [rsp+50h] [rbp-E90h]
int v27; // [rsp+5Ch] [rbp-E84h]
double v28; // [rsp+60h] [rbp-E80h]
_BYTE v30[3688]; // [rsp+70h] [rbp-E70h] BYREF
unsigned long long v31; // [rsp+ED8h] [rbp-8h]
v31 = __readfsqword(0x28u);
v28 = a4;
v27 = a1;
v26 = a2;
v25 = a3;
v17 = a2;
v20 = dtoa(5, a1, (unsigned int)&v24, (unsigned int)&v23, (unsigned int)&v18, (unsigned int)v30, 3680LL);
if ( v24 == 9999 )
{
dtoa_free(v20, v30, 3680LL, a4);
v4 = v26++;
*v4 = 48;
*v26 = 0;
if ( v25 )
*v25 = 1;
return 1LL;
}
else
{
v19 = (char *)v20;
v22 = v18 - v20;
if ( v23 )
{
v17 = a2 + 1;
*a2 = 45;
}
if ( v24 <= 0 )
{
*v17 = 48;
v5 = v17 + 1;
v17 += 2;
*v5 = 46;
for ( i = v24; i < 0; ++i )
{
v6 = v17++;
*v6 = 48;
}
}
for ( i = 1; i <= v22; ++i )
{
v7 = v19++;
v8 = *v7;
v9 = v17++;
*v9 = v8;
if ( i == v24 && i < v22 )
{
v10 = v17++;
*v10 = 46;
}
}
while ( 1 )
{
v11 = i++;
if ( v11 > v24 )
break;
v12 = v17++;
*v12 = 48;
}
if ( v27 > 0 )
{
if ( v22 <= v24 )
{
v13 = v17++;
*v13 = 46;
}
if ( v22 - v24 >= 0 )
v16 = v22 - v24;
else
v16 = 0;
for ( i = v27 - v16; i > 0; --i )
{
v14 = v17++;
*v14 = 48;
}
}
*v17 = 0;
if ( v25 )
*v25 = 0;
dtoa_free(v20, v30, 3680LL, a4);
return v17 - v26;
}
}
|
my_fcvt:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xee0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOVSD qword ptr [RBP + -0xe80],XMM0
MOV dword ptr [RBP + -0xe84],EDI
MOV qword ptr [RBP + -0xe90],RSI
MOV qword ptr [RBP + -0xe98],RDX
MOV RAX,qword ptr [RBP + -0xe90]
MOV qword ptr [RBP + -0xec8],RAX
JMP 0x001d8524
LAB_001d8524:
MOVSD XMM0,qword ptr [RBP + -0xe80]
MOV ESI,dword ptr [RBP + -0xe84]
LEA R9,[RBP + -0xe70]
MOV EDI,0x5
LEA RDX,[RBP + -0xe9c]
LEA RCX,[RBP + -0xea0]
LEA R8,[RBP + -0xec0]
MOV qword ptr [RSP],0xe60
CALL 0x001d8890
MOV qword ptr [RBP + -0xeb0],RAX
CMP dword ptr [RBP + -0xe9c],0x270f
JNZ 0x001d85d1
MOV RDI,qword ptr [RBP + -0xeb0]
LEA RSI,[RBP + -0xe70]
MOV EDX,0xe60
CALL 0x001d9ee0
MOV RAX,qword ptr [RBP + -0xe90]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0xe90],RCX
MOV byte ptr [RAX],0x30
MOV RAX,qword ptr [RBP + -0xe90]
MOV byte ptr [RAX],0x0
CMP qword ptr [RBP + -0xe98],0x0
JZ 0x001d85c1
MOV RAX,qword ptr [RBP + -0xe98]
MOV byte ptr [RAX],0x1
LAB_001d85c1:
MOV qword ptr [RBP + -0xe78],0x1
JMP 0x001d8858
LAB_001d85d1:
MOV RAX,qword ptr [RBP + -0xeb0]
MOV qword ptr [RBP + -0xeb8],RAX
MOV RAX,qword ptr [RBP + -0xec0]
MOV RCX,qword ptr [RBP + -0xeb8]
SUB RAX,RCX
MOV dword ptr [RBP + -0xea4],EAX
CMP dword ptr [RBP + -0xea0],0x0
JZ 0x001d8617
MOV RAX,qword ptr [RBP + -0xec8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0xec8],RCX
MOV byte ptr [RAX],0x2d
LAB_001d8617:
CMP dword ptr [RBP + -0xe9c],0x0
JG 0x001d8690
MOV RAX,qword ptr [RBP + -0xec8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0xec8],RCX
MOV byte ptr [RAX],0x30
MOV RAX,qword ptr [RBP + -0xec8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0xec8],RCX
MOV byte ptr [RAX],0x2e
MOV EAX,dword ptr [RBP + -0xe9c]
MOV dword ptr [RBP + -0xea8],EAX
LAB_001d865c:
CMP dword ptr [RBP + -0xea8],0x0
JGE 0x001d868e
MOV RAX,qword ptr [RBP + -0xec8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0xec8],RCX
MOV byte ptr [RAX],0x30
MOV EAX,dword ptr [RBP + -0xea8]
ADD EAX,0x1
MOV dword ptr [RBP + -0xea8],EAX
JMP 0x001d865c
LAB_001d868e:
JMP 0x001d8690
LAB_001d8690:
MOV dword ptr [RBP + -0xea8],0x1
LAB_001d869a:
MOV EAX,dword ptr [RBP + -0xea8]
CMP EAX,dword ptr [RBP + -0xea4]
JG 0x001d8720
MOV RAX,qword ptr [RBP + -0xeb8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0xeb8],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0xec8]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0xec8],RDX
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RBP + -0xea8]
CMP EAX,dword ptr [RBP + -0xe9c]
JNZ 0x001d870a
MOV EAX,dword ptr [RBP + -0xea8]
CMP EAX,dword ptr [RBP + -0xea4]
JGE 0x001d870a
MOV RAX,qword ptr [RBP + -0xec8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0xec8],RCX
MOV byte ptr [RAX],0x2e
LAB_001d870a:
JMP 0x001d870c
LAB_001d870c:
MOV EAX,dword ptr [RBP + -0xea8]
ADD EAX,0x1
MOV dword ptr [RBP + -0xea8],EAX
JMP 0x001d869a
LAB_001d8720:
JMP 0x001d8722
LAB_001d8722:
MOV EAX,dword ptr [RBP + -0xea8]
MOV ECX,EAX
ADD ECX,0x1
MOV dword ptr [RBP + -0xea8],ECX
CMP EAX,dword ptr [RBP + -0xe9c]
JG 0x001d8755
MOV RAX,qword ptr [RBP + -0xec8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0xec8],RCX
MOV byte ptr [RAX],0x30
JMP 0x001d8722
LAB_001d8755:
CMP dword ptr [RBP + -0xe84],0x0
JLE 0x001d880a
MOV EAX,dword ptr [RBP + -0xea4]
CMP EAX,dword ptr [RBP + -0xe9c]
JG 0x001d8788
MOV RAX,qword ptr [RBP + -0xec8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0xec8],RCX
MOV byte ptr [RAX],0x2e
LAB_001d8788:
MOV EAX,dword ptr [RBP + -0xe84]
MOV dword ptr [RBP + -0xecc],EAX
MOV ECX,dword ptr [RBP + -0xea4]
SUB ECX,dword ptr [RBP + -0xe9c]
XOR EAX,EAX
CMP EAX,ECX
JLE 0x001d87b0
XOR EAX,EAX
MOV dword ptr [RBP + -0xed0],EAX
JMP 0x001d87c2
LAB_001d87b0:
MOV EAX,dword ptr [RBP + -0xea4]
SUB EAX,dword ptr [RBP + -0xe9c]
MOV dword ptr [RBP + -0xed0],EAX
LAB_001d87c2:
MOV EAX,dword ptr [RBP + -0xecc]
MOV ECX,dword ptr [RBP + -0xed0]
SUB EAX,ECX
MOV dword ptr [RBP + -0xea8],EAX
LAB_001d87d6:
CMP dword ptr [RBP + -0xea8],0x0
JLE 0x001d8808
MOV RAX,qword ptr [RBP + -0xec8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0xec8],RCX
MOV byte ptr [RAX],0x30
MOV EAX,dword ptr [RBP + -0xea8]
ADD EAX,-0x1
MOV dword ptr [RBP + -0xea8],EAX
JMP 0x001d87d6
LAB_001d8808:
JMP 0x001d880a
LAB_001d880a:
MOV RAX,qword ptr [RBP + -0xec8]
MOV byte ptr [RAX],0x0
CMP qword ptr [RBP + -0xe98],0x0
JZ 0x001d8828
MOV RAX,qword ptr [RBP + -0xe98]
MOV byte ptr [RAX],0x0
LAB_001d8828:
MOV RDI,qword ptr [RBP + -0xeb0]
LEA RSI,[RBP + -0xe70]
MOV EDX,0xe60
CALL 0x001d9ee0
MOV RAX,qword ptr [RBP + -0xec8]
MOV RCX,qword ptr [RBP + -0xe90]
SUB RAX,RCX
MOV qword ptr [RBP + -0xe78],RAX
LAB_001d8858:
MOV RAX,qword ptr [RBP + -0xe78]
MOV qword ptr [RBP + -0xed8],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001d8888
MOV RAX,qword ptr [RBP + -0xed8]
ADD RSP,0xee0
POP RBP
RET
LAB_001d8888:
CALL 0x00129420
|
long my_fcvt(int8 param_1,int param_2,int1 *param_3,int1 *param_4)
{
int1 *puVar1;
long in_FS_OFFSET;
int local_ed8;
int1 *local_ed0;
int local_ec8 [2];
int1 *local_ec0;
int1 *local_eb8;
int local_eb0;
int local_eac;
int local_ea8;
int local_ea4;
int1 *local_ea0;
int1 *local_e98;
int local_e8c;
int8 local_e88;
long local_e80;
int1 local_e78 [3688];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_ea0 = param_4;
local_e98 = param_3;
local_e8c = param_2;
local_e88 = param_1;
local_eb8 = (int1 *)dtoa(param_1,5,param_2,&local_ea4,&local_ea8,local_ec8,local_e78,0xe60);
if (local_ea4 == 9999) {
dtoa_free(local_eb8,local_e78,0xe60);
*local_e98 = 0x30;
local_e98[1] = 0;
if (local_ea0 != (int1 *)0x0) {
*local_ea0 = 1;
}
local_e80 = 1;
local_e98 = local_e98 + 1;
}
else {
local_eac = local_ec8[0] - (int)local_eb8;
local_ed0 = param_3;
if (local_ea8 != 0) {
local_ed0 = param_3 + 1;
*param_3 = 0x2d;
}
if (local_ea4 < 1) {
*local_ed0 = 0x30;
local_ed0[1] = 0x2e;
local_ed0 = local_ed0 + 2;
for (local_eb0 = local_ea4; local_eb0 < 0; local_eb0 = local_eb0 + 1) {
*local_ed0 = 0x30;
local_ed0 = local_ed0 + 1;
}
}
local_ec0 = local_eb8;
for (local_eb0 = 1; local_eb0 <= local_eac; local_eb0 = local_eb0 + 1) {
puVar1 = local_ed0 + 1;
*local_ed0 = *local_ec0;
if ((local_eb0 == local_ea4) && (local_eb0 < local_eac)) {
*puVar1 = 0x2e;
puVar1 = local_ed0 + 2;
}
local_ed0 = puVar1;
local_ec0 = local_ec0 + 1;
}
while (local_eb0 <= local_ea4) {
*local_ed0 = 0x30;
local_ed0 = local_ed0 + 1;
local_eb0 = local_eb0 + 1;
}
local_eb0 = local_eb0 + 1;
if (0 < local_e8c) {
if (local_eac <= local_ea4) {
*local_ed0 = 0x2e;
local_ed0 = local_ed0 + 1;
}
if (local_eac - local_ea4 < 0) {
local_ed8 = 0;
}
else {
local_ed8 = local_eac - local_ea4;
}
for (local_eb0 = local_e8c - local_ed8; 0 < local_eb0; local_eb0 = local_eb0 + -1) {
*local_ed0 = 0x30;
local_ed0 = local_ed0 + 1;
}
}
*local_ed0 = 0;
if (local_ea0 != (int1 *)0x0) {
*local_ea0 = 0;
}
dtoa_free(local_eb8,local_e78,0xe60);
local_e80 = (long)local_ed0 - (long)local_e98;
}
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_e80;
}
|
|
10,792 |
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::findConnectedSubsetExtent() const
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/unorderedSubset.cpp
|
int UnorderedSubset::findConnectedSubsetExtent() const {
int extent = 0, fStart = _faceInRing;
for (int f = GetFaceNext(fStart); f >= 0; f = GetFaceNext(f)) {
// periodic -- return
if (f == fStart)
return extent;
++extent;
}
for (int f = GetFacePrev(fStart); f >= 0; f = GetFacePrev(f))
++extent;
return extent;
}
|
O1
|
cpp
|
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::findConnectedSubsetExtent() const:
movzwl 0x10c(%rdi), %edx
movq 0x118(%rdi), %rcx
movzwl 0x2(%rcx,%rdx,4), %esi
xorl %eax, %eax
testw %si, %si
js 0xb0a9f
cmpw %dx, %si
je 0xb0aba
incl %eax
leal 0x1(,%rsi,2), %esi
movzwl %si, %esi
movzwl (%rcx,%rsi,2), %esi
jmp 0xb0a83
addl %edx, %edx
movl %edx, %edx
movzwl (%rcx,%rdx,2), %edx
jmp 0xb0ab5
incl %eax
andl $0x7fff, %edx # imm = 0x7FFF
movzwl (%rcx,%rdx,4), %edx
testw %dx, %dx
jns 0xb0aa9
retq
nop
|
_ZNK10OpenSubdiv6v3_6_03Tmr15UnorderedSubset25findConnectedSubsetExtentEv:
movzx edx, word ptr [rdi+10Ch]
mov rcx, [rdi+118h]
movzx esi, word ptr [rcx+rdx*4+2]
xor eax, eax
loc_B0A83:
test si, si
js short loc_B0A9F
cmp si, dx
jz short locret_B0ABA
inc eax
lea esi, ds:1[rsi*2]
movzx esi, si
movzx esi, word ptr [rcx+rsi*2]
jmp short loc_B0A83
loc_B0A9F:
add edx, edx
mov edx, edx
movzx edx, word ptr [rcx+rdx*2]
jmp short loc_B0AB5
loc_B0AA9:
inc eax
and edx, 7FFFh
movzx edx, word ptr [rcx+rdx*4]
loc_B0AB5:
test dx, dx
jns short loc_B0AA9
locret_B0ABA:
retn
|
long long OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::findConnectedSubsetExtent(
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset *this)
{
long long v1; // rdx
long long v2; // rcx
__int16 v3; // si
long long result; // rax
__int16 i; // dx
v1 = *((unsigned __int16 *)this + 134);
v2 = *((_QWORD *)this + 35);
v3 = *(_WORD *)(v2 + 4 * v1 + 2);
result = 0LL;
while ( v3 >= 0 )
{
if ( v3 == (_WORD)v1 )
return result;
result = (unsigned int)(result + 1);
v3 = *(_WORD *)(v2 + 2LL * (unsigned __int16)(2 * v3 + 1));
}
for ( i = *(_WORD *)(v2 + 2LL * (unsigned int)(2 * v1)); i >= 0; i = *(_WORD *)(v2 + 4LL * (i & 0x7FFF)) )
result = (unsigned int)(result + 1);
return result;
}
|
findConnectedSubsetExtent:
MOVZX EDX,word ptr [RDI + 0x10c]
MOV RCX,qword ptr [RDI + 0x118]
MOVZX ESI,word ptr [RCX + RDX*0x4 + 0x2]
XOR EAX,EAX
LAB_001b0a83:
TEST SI,SI
JS 0x001b0a9f
CMP SI,DX
JZ 0x001b0aba
INC EAX
LEA ESI,[0x1 + RSI*0x2]
MOVZX ESI,SI
MOVZX ESI,word ptr [RCX + RSI*0x2]
JMP 0x001b0a83
LAB_001b0a9f:
ADD EDX,EDX
MOV EDX,EDX
MOVZX EDX,word ptr [RCX + RDX*0x2]
JMP 0x001b0ab5
LAB_001b0aa9:
INC EAX
AND EDX,0x7fff
MOVZX EDX,word ptr [RCX + RDX*0x4]
LAB_001b0ab5:
TEST DX,DX
JNS 0x001b0aa9
LAB_001b0aba:
RET
|
/* OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::findConnectedSubsetExtent() const */
int __thiscall
OpenSubdiv::v3_6_0::Tmr::UnorderedSubset::findConnectedSubsetExtent(UnorderedSubset *this)
{
ushort uVar1;
long lVar2;
int iVar3;
ushort uVar4;
uVar1 = *(ushort *)(this + 0x10c);
lVar2 = *(long *)(this + 0x118);
uVar4 = *(ushort *)(lVar2 + 2 + (ulong)uVar1 * 4);
iVar3 = 0;
while( true ) {
if ((short)uVar4 < 0) {
for (uVar1 = *(ushort *)(lVar2 + (ulong)((uint)uVar1 * 2) * 2); -1 < (short)uVar1;
uVar1 = *(ushort *)(lVar2 + (ulong)(uVar1 & 0x7fff) * 4)) {
iVar3 = iVar3 + 1;
}
return iVar3;
}
if (uVar4 == uVar1) break;
iVar3 = iVar3 + 1;
uVar4 = *(ushort *)(lVar2 + (ulong)(ushort)(uVar4 * 2 + 1) * 2);
}
return iVar3;
}
|
|
10,793 |
my_strnncoll_simple
|
eloqsql/strings/ctype-simple.c
|
int my_strnncoll_simple(CHARSET_INFO * cs, const uchar *s, size_t slen,
const uchar *t, size_t tlen,
my_bool t_is_prefix)
{
size_t len = ( slen > tlen ) ? tlen : slen;
const uchar *map= cs->sort_order;
if (t_is_prefix && slen > tlen)
slen=tlen;
while (len--)
{
if (map[*s++] != map[*t++])
return ((int) map[s[-1]] - (int) map[t[-1]]);
}
/*
We can't use (slen - tlen) here as the result may be outside of the
precision of a signed int
*/
return slen > tlen ? 1 : slen < tlen ? -1 : 0 ;
}
|
O0
|
c
|
my_strnncoll_simple:
pushq %rbp
movq %rsp, %rbp
movb %r9b, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movb %al, -0x31(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x30(%rbp), %rax
jbe 0x77a32
movq -0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x77a3a
movq -0x20(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rax
movq %rax, -0x48(%rbp)
movsbl -0x31(%rbp), %eax
cmpl $0x0, %eax
je 0x77a69
movq -0x20(%rbp), %rax
cmpq -0x30(%rbp), %rax
jbe 0x77a69
movq -0x30(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0x77a6b
movq -0x40(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x40(%rbp)
cmpq $0x0, %rax
je 0x77ae1
movq -0x48(%rbp), %rax
movq -0x18(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x18(%rbp)
movzbl (%rcx), %ecx
movzbl (%rax,%rcx), %eax
movq -0x48(%rbp), %rcx
movq -0x28(%rbp), %rdx
movq %rdx, %rsi
addq $0x1, %rsi
movq %rsi, -0x28(%rbp)
movzbl (%rdx), %edx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
je 0x77adf
movq -0x48(%rbp), %rax
movq -0x18(%rbp), %rcx
movzbl -0x1(%rcx), %ecx
movzbl (%rax,%rcx), %eax
movq -0x48(%rbp), %rcx
movq -0x28(%rbp), %rdx
movzbl -0x1(%rdx), %edx
movzbl (%rcx,%rdx), %ecx
subl %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x77b13
jmp 0x77a6b
movq -0x20(%rbp), %rax
cmpq -0x30(%rbp), %rax
jbe 0x77af5
movl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x77b0d
movq -0x20(%rbp), %rdx
movq -0x30(%rbp), %rsi
xorl %eax, %eax
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
cmpq %rsi, %rdx
cmovbl %ecx, %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax,%rax)
|
my_strnncoll_simple:
push rbp
mov rbp, rsp
mov al, r9b
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_31], al
mov rax, [rbp+var_20]
cmp rax, [rbp+var_30]
jbe short loc_77A32
mov rax, [rbp+var_30]
mov [rbp+var_50], rax
jmp short loc_77A3A
loc_77A32:
mov rax, [rbp+var_20]
mov [rbp+var_50], rax
loc_77A3A:
mov rax, [rbp+var_50]
mov [rbp+var_40], rax
mov rax, [rbp+var_10]
mov rax, [rax+58h]
mov [rbp+var_48], rax
movsx eax, [rbp+var_31]
cmp eax, 0
jz short loc_77A69
mov rax, [rbp+var_20]
cmp rax, [rbp+var_30]
jbe short loc_77A69
mov rax, [rbp+var_30]
mov [rbp+var_20], rax
loc_77A69:
jmp short $+2
loc_77A6B:
mov rax, [rbp+var_40]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_40], rcx
cmp rax, 0
jz short loc_77AE1
mov rax, [rbp+var_48]
mov rcx, [rbp+var_18]
mov rdx, rcx
add rdx, 1
mov [rbp+var_18], rdx
movzx ecx, byte ptr [rcx]
movzx eax, byte ptr [rax+rcx]
mov rcx, [rbp+var_48]
mov rdx, [rbp+var_28]
mov rsi, rdx
add rsi, 1
mov [rbp+var_28], rsi
movzx edx, byte ptr [rdx]
movzx ecx, byte ptr [rcx+rdx]
cmp eax, ecx
jz short loc_77ADF
mov rax, [rbp+var_48]
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx-1]
movzx eax, byte ptr [rax+rcx]
mov rcx, [rbp+var_48]
mov rdx, [rbp+var_28]
movzx edx, byte ptr [rdx-1]
movzx ecx, byte ptr [rcx+rdx]
sub eax, ecx
mov [rbp+var_4], eax
jmp short loc_77B13
loc_77ADF:
jmp short loc_77A6B
loc_77AE1:
mov rax, [rbp+var_20]
cmp rax, [rbp+var_30]
jbe short loc_77AF5
mov eax, 1
mov [rbp+var_54], eax
jmp short loc_77B0D
loc_77AF5:
mov rdx, [rbp+var_20]
mov rsi, [rbp+var_30]
xor eax, eax
mov ecx, 0FFFFFFFFh
cmp rdx, rsi
cmovb eax, ecx
mov [rbp+var_54], eax
loc_77B0D:
mov eax, [rbp+var_54]
mov [rbp+var_4], eax
loc_77B13:
mov eax, [rbp+var_4]
pop rbp
retn
|
long long my_strnncoll_simple(
long long a1,
unsigned __int8 *a2,
unsigned long long a3,
unsigned __int8 *a4,
unsigned long long a5,
char a6)
{
unsigned __int8 *v7; // rcx
unsigned __int8 *v8; // rdx
unsigned int v9; // eax
unsigned long long v12; // [rsp+4h] [rbp-50h]
long long v13; // [rsp+Ch] [rbp-48h]
unsigned long long v14; // [rsp+14h] [rbp-40h]
unsigned long long v16; // [rsp+34h] [rbp-20h]
v16 = a3;
if ( a3 <= a5 )
v12 = a3;
else
v12 = a5;
v14 = v12;
v13 = *(_QWORD *)(a1 + 88);
if ( a6 && a3 > a5 )
v16 = a5;
while ( v14-- )
{
v7 = a2++;
v8 = a4++;
if ( *(unsigned __int8 *)(v13 + *v7) != *(unsigned __int8 *)(v13 + *v8) )
return (unsigned int)(*(unsigned __int8 *)(v13 + *(a2 - 1)) - *(unsigned __int8 *)(v13 + *(a4 - 1)));
}
if ( v16 <= a5 )
{
v9 = 0;
if ( v16 < a5 )
v9 = -1;
return v9;
}
else
{
return 1;
}
}
|
my_strnncoll_simple:
PUSH RBP
MOV RBP,RSP
MOV AL,R9B
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV byte ptr [RBP + -0x31],AL
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x30]
JBE 0x00177a32
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x00177a3a
LAB_00177a32:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x50],RAX
LAB_00177a3a:
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x58]
MOV qword ptr [RBP + -0x48],RAX
MOVSX EAX,byte ptr [RBP + -0x31]
CMP EAX,0x0
JZ 0x00177a69
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x30]
JBE 0x00177a69
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x20],RAX
LAB_00177a69:
JMP 0x00177a6b
LAB_00177a6b:
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,RAX
ADD RCX,-0x1
MOV qword ptr [RBP + -0x40],RCX
CMP RAX,0x0
JZ 0x00177ae1
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x18]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x18],RDX
MOVZX ECX,byte ptr [RCX]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV RCX,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x28]
MOV RSI,RDX
ADD RSI,0x1
MOV qword ptr [RBP + -0x28],RSI
MOVZX EDX,byte ptr [RDX]
MOVZX ECX,byte ptr [RCX + RDX*0x1]
CMP EAX,ECX
JZ 0x00177adf
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + -0x1]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV RCX,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x28]
MOVZX EDX,byte ptr [RDX + -0x1]
MOVZX ECX,byte ptr [RCX + RDX*0x1]
SUB EAX,ECX
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00177b13
LAB_00177adf:
JMP 0x00177a6b
LAB_00177ae1:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x30]
JBE 0x00177af5
MOV EAX,0x1
MOV dword ptr [RBP + -0x54],EAX
JMP 0x00177b0d
LAB_00177af5:
MOV RDX,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x30]
XOR EAX,EAX
MOV ECX,0xffffffff
CMP RDX,RSI
CMOVC EAX,ECX
MOV dword ptr [RBP + -0x54],EAX
LAB_00177b0d:
MOV EAX,dword ptr [RBP + -0x54]
MOV dword ptr [RBP + -0x4],EAX
LAB_00177b13:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int my_strnncoll_simple(long param_1,byte *param_2,ulong param_3,byte *param_4,ulong param_5,
char param_6)
{
long lVar1;
byte *pbVar2;
byte *pbVar3;
int local_5c;
ulong local_58;
ulong local_48;
byte *local_30;
ulong local_28;
byte *local_20;
local_58 = param_3;
if (param_5 < param_3) {
local_58 = param_5;
}
local_48 = local_58;
lVar1 = *(long *)(param_1 + 0x58);
pbVar2 = param_4;
pbVar3 = param_2;
local_28 = param_3;
if ((param_6 != '\0') && (pbVar2 = param_4, pbVar3 = param_2, param_5 < param_3)) {
pbVar2 = param_4;
pbVar3 = param_2;
local_28 = param_5;
}
do {
local_20 = pbVar3;
local_30 = pbVar2;
if (local_48 == 0) {
if (param_5 < local_28) {
local_5c = 1;
}
else {
local_5c = 0;
if (local_28 < param_5) {
local_5c = -1;
}
}
return local_5c;
}
local_48 = local_48 - 1;
pbVar2 = local_30 + 1;
pbVar3 = local_20 + 1;
} while (*(char *)(lVar1 + (ulong)*local_20) == *(char *)(lVar1 + (ulong)*local_30));
return (uint)*(byte *)(lVar1 + (ulong)*local_20) - (uint)*(byte *)(lVar1 + (ulong)*local_30);
}
|
|
10,794 |
lf_dynarray_value
|
eloqsql/mysys/lf_dynarray.c
|
void *lf_dynarray_value(LF_DYNARRAY *array, uint idx)
{
void * ptr, * volatile * ptr_ptr= 0;
int i;
for (i= LF_DYNARRAY_LEVELS-1; idx < dynarray_idxes_in_prev_levels[i]; i--)
/* no-op */;
ptr_ptr= &array->level[i];
idx-= dynarray_idxes_in_prev_levels[i];
for (; i > 0; i--)
{
if (!(ptr= *ptr_ptr))
return(NULL);
ptr_ptr= ((void **)ptr) + idx / dynarray_idxes_in_prev_level[i];
idx %= dynarray_idxes_in_prev_level[i];
}
if (!(ptr= *ptr_ptr))
return(NULL);
return ((uchar*)ptr) + array->size_of_element * idx;
}
|
O3
|
c
|
lf_dynarray_value:
pushq %rbp
movq %rsp, %rbp
movl %esi, %edx
movl %esi, %r8d
leaq 0x20(%rdi), %rax
movl $0x5, %esi
movl $0x4, %ecx
leaq 0x3b2aa(%rip), %r9 # 0xe0d40
movq -0x8(%r9,%rcx,8), %r10
decl %esi
decq %rcx
addq $-0x8, %rax
cmpq %r8, %r10
ja 0xa5a96
subl %r10d, %edx
testq %rcx, %rcx
jle 0xa5ae1
leal -0x1(%rsi), %ecx
movl %ecx, %ecx
leaq 0x3b2a3(%rip), %r8 # 0xe0d60
leaq (%r8,%rcx,8), %r8
xorl %ecx, %ecx
movq (%rax), %r9
testq %r9, %r9
je 0xa5af4
movl %edx, %eax
xorl %edx, %edx
divq (%r8)
leaq (%r9,%rax,8), %rax
decl %esi
addq $-0x8, %r8
cmpl $0x1, %esi
jg 0xa5ac3
movq (%rax), %rcx
testq %rcx, %rcx
je 0xa5af2
imull 0x20(%rdi), %edx
addq %rdx, %rcx
jmp 0xa5af4
xorl %ecx, %ecx
movq %rcx, %rax
popq %rbp
retq
|
lf_dynarray_value:
push rbp
mov rbp, rsp
mov edx, esi
mov r8d, esi
lea rax, [rdi+20h]
mov esi, 5
mov ecx, 4
lea r9, dynarray_idxes_in_prev_levels
loc_A5A96:
mov r10, [r9+rcx*8-8]
dec esi
dec rcx
add rax, 0FFFFFFFFFFFFFFF8h
cmp r10, r8
ja short loc_A5A96
sub edx, r10d
test rcx, rcx
jle short loc_A5AE1
lea ecx, [rsi-1]
mov ecx, ecx
lea r8, dynarray_idxes_in_prev_level
lea r8, [r8+rcx*8]
xor ecx, ecx
loc_A5AC3:
mov r9, [rax]
test r9, r9
jz short loc_A5AF4
mov eax, edx
xor edx, edx
div qword ptr [r8]
lea rax, [r9+rax*8]
dec esi
add r8, 0FFFFFFFFFFFFFFF8h
cmp esi, 1
jg short loc_A5AC3
loc_A5AE1:
mov rcx, [rax]
test rcx, rcx
jz short loc_A5AF2
imul edx, [rdi+20h]
add rcx, rdx
jmp short loc_A5AF4
loc_A5AF2:
xor ecx, ecx
loc_A5AF4:
mov rax, rcx
pop rbp
retn
|
long long lf_dynarray_value(long long a1, unsigned int a2)
{
unsigned long long v3; // r8
_QWORD *v4; // rax
int v5; // esi
long long v6; // rcx
unsigned long long v7; // r10
unsigned long long v8; // rdx
_QWORD *v9; // r8
long long v10; // rcx
unsigned long long v11; // rtt
v3 = a2;
v4 = (_QWORD *)(a1 + 32);
v5 = 5;
v6 = 4LL;
do
{
v7 = dynarray_idxes_in_prev_levels[v6 - 1];
--v5;
--v6;
--v4;
}
while ( v7 > v3 );
LODWORD(v8) = a2 - v7;
if ( v6 <= 0 )
{
LABEL_7:
if ( *v4 )
return (unsigned int)(*(_DWORD *)(a1 + 32) * v8) + *v4;
else
return 0LL;
}
else
{
v9 = (_QWORD *)((char *)&dynarray_idxes_in_prev_level + 8 * (unsigned int)(v5 - 1));
v10 = 0LL;
while ( *v4 )
{
v11 = (unsigned int)v8;
v8 = (unsigned long long)(unsigned int)v8 % *v9;
v4 = (_QWORD *)(*v4 + 8 * (v11 / *v9));
--v5;
--v9;
if ( v5 <= 1 )
goto LABEL_7;
}
}
return v10;
}
|
lf_dynarray_value:
PUSH RBP
MOV RBP,RSP
MOV EDX,ESI
MOV R8D,ESI
LEA RAX,[RDI + 0x20]
MOV ESI,0x5
MOV ECX,0x4
LEA R9,[0x1e0d40]
LAB_001a5a96:
MOV R10,qword ptr [R9 + RCX*0x8 + -0x8]
DEC ESI
DEC RCX
ADD RAX,-0x8
CMP R10,R8
JA 0x001a5a96
SUB EDX,R10D
TEST RCX,RCX
JLE 0x001a5ae1
LEA ECX,[RSI + -0x1]
MOV ECX,ECX
LEA R8,[0x1e0d60]
LEA R8,[R8 + RCX*0x8]
XOR ECX,ECX
LAB_001a5ac3:
MOV R9,qword ptr [RAX]
TEST R9,R9
JZ 0x001a5af4
MOV EAX,EDX
XOR EDX,EDX
DIV qword ptr [R8]
LEA RAX,[R9 + RAX*0x8]
DEC ESI
ADD R8,-0x8
CMP ESI,0x1
JG 0x001a5ac3
LAB_001a5ae1:
MOV RCX,qword ptr [RAX]
TEST RCX,RCX
JZ 0x001a5af2
IMUL EDX,dword ptr [RDI + 0x20]
ADD RCX,RDX
JMP 0x001a5af4
LAB_001a5af2:
XOR ECX,ECX
LAB_001a5af4:
MOV RAX,RCX
POP RBP
RET
|
long lf_dynarray_value(long param_1,uint param_2)
{
long lVar1;
int1 auVar2 [16];
int1 auVar3 [16];
ulong uVar4;
long *plVar5;
long lVar6;
ulong uVar7;
int iVar8;
int iVar9;
ulong *puVar10;
plVar5 = (long *)(param_1 + 0x20);
lVar6 = 4;
iVar9 = 5;
do {
iVar8 = iVar9;
lVar1 = lVar6 * 8;
iVar9 = iVar8 + -1;
lVar6 = lVar6 + -1;
plVar5 = plVar5 + -1;
} while ((ulong)param_2 < *(ulong *)(write_pin_change_table + lVar1 + 0x18));
param_2 = param_2 - (int)*(ulong *)(write_pin_change_table + lVar1 + 0x18);
uVar7 = (ulong)param_2;
if (0 < lVar6) {
puVar10 = (ulong *)(dynarray_idxes_in_prev_level + (ulong)(iVar8 - 2) * 8);
do {
if (*plVar5 == 0) {
return 0;
}
uVar4 = uVar7 & 0xffffffff;
auVar2._8_8_ = 0;
auVar2._0_8_ = *puVar10;
auVar3._8_8_ = 0;
auVar3._0_8_ = uVar4;
uVar7 = SUB168(auVar3 % auVar2,0);
param_2 = SUB164(auVar3 % auVar2,0);
plVar5 = (long *)(*plVar5 + (uVar4 / *puVar10) * 8);
iVar9 = iVar9 + -1;
puVar10 = puVar10 + -1;
} while (1 < iVar9);
}
if (*plVar5 == 0) {
lVar6 = 0;
}
else {
lVar6 = *plVar5 + (ulong)(param_2 * *(int *)(param_1 + 0x20));
}
return lVar6;
}
|
|
10,795 |
bf_exp
|
bluesky950520[P]quickjs/libbf.c
|
int bf_exp(bf_t *r, const bf_t *a, limb_t prec, bf_flags_t flags)
{
bf_context_t *s = r->ctx;
int ret;
assert(r != a);
if (a->len == 0) {
if (a->expn == BF_EXP_NAN) {
bf_set_nan(r);
} else if (a->expn == BF_EXP_INF) {
if (a->sign)
bf_set_zero(r, 0);
else
bf_set_inf(r, 0);
} else {
bf_set_ui(r, 1);
}
return 0;
}
ret = check_exp_underflow_overflow(s, r, a, a, prec, flags);
if (ret)
return ret;
if (a->expn < 0 && (-a->expn) >= (prec + 2)) {
/* small argument case: result = 1 + epsilon * sign(x) */
bf_set_ui(r, 1);
return bf_add_epsilon(r, r, -(prec + 2), a->sign, prec, flags);
}
return bf_ziv_rounding(r, a, prec, flags, bf_exp_internal, NULL);
}
|
O0
|
c
|
bf_exp:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
movl %ecx, 0x14(%rsp)
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rax
cmpq $0x0, 0x18(%rax)
jne 0xece3b
movq 0x20(%rsp), %rax
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rcx, 0x10(%rax)
jne 0xecde1
movq 0x28(%rsp), %rdi
callq 0xe4ee0
jmp 0xece2e
movq 0x20(%rsp), %rax
movabsq $0x7ffffffffffffffe, %rcx # imm = 0x7FFFFFFFFFFFFFFE
cmpq %rcx, 0x10(%rax)
jne 0xece1d
movq 0x20(%rsp), %rax
cmpl $0x0, 0x8(%rax)
je 0xece0f
movq 0x28(%rsp), %rdi
xorl %esi, %esi
callq 0xe4f80
jmp 0xece1b
movq 0x28(%rsp), %rdi
xorl %esi, %esi
callq 0xe4fc0
jmp 0xece2c
movq 0x28(%rsp), %rdi
movl $0x1, %esi
callq 0xe4de0
jmp 0xece2e
movl $0x0, 0x34(%rsp)
jmp 0xecf09
movq 0x8(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq 0x20(%rsp), %rcx
movq 0x18(%rsp), %r8
movl 0x14(%rsp), %r9d
callq 0xecf20
movl %eax, 0x4(%rsp)
cmpl $0x0, 0x4(%rsp)
je 0xece76
movl 0x4(%rsp), %eax
movl %eax, 0x34(%rsp)
jmp 0xecf09
movq 0x20(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jge 0xecee1
movq 0x20(%rsp), %rcx
xorl %eax, %eax
subq 0x10(%rcx), %rax
movq 0x18(%rsp), %rcx
addq $0x2, %rcx
cmpq %rcx, %rax
jb 0xecee1
movq 0x28(%rsp), %rdi
movl $0x1, %esi
callq 0xe4de0
movq 0x28(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x18(%rsp), %rax
addq $0x2, %rax
xorl %ecx, %ecx
movl %ecx, %edx
subq %rax, %rdx
movq 0x20(%rsp), %rax
movl 0x8(%rax), %ecx
movq 0x18(%rsp), %r8
movl 0x14(%rsp), %r9d
callq 0xed180
movl %eax, 0x34(%rsp)
jmp 0xecf09
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rdx
movl 0x14(%rsp), %ecx
leaq 0x465(%rip), %r8 # 0xed360
xorl %eax, %eax
movl %eax, %r9d
callq 0xed220
movl %eax, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
|
bf_exp:
sub rsp, 38h
mov [rsp+38h+var_10], rdi
mov [rsp+38h+var_18], rsi
mov [rsp+38h+var_20], rdx
mov [rsp+38h+var_24], ecx
mov rax, [rsp+38h+var_10]
mov rax, [rax]
mov [rsp+38h+var_30], rax
mov rax, [rsp+38h+var_18]
cmp qword ptr [rax+18h], 0
jnz short loc_ECE3B
mov rax, [rsp+38h+var_18]
mov rcx, 7FFFFFFFFFFFFFFFh
cmp [rax+10h], rcx
jnz short loc_ECDE1
mov rdi, [rsp+38h+var_10]
call bf_set_nan
jmp short loc_ECE2E
loc_ECDE1:
mov rax, [rsp+38h+var_18]
mov rcx, 7FFFFFFFFFFFFFFEh
cmp [rax+10h], rcx
jnz short loc_ECE1D
mov rax, [rsp+38h+var_18]
cmp dword ptr [rax+8], 0
jz short loc_ECE0F
mov rdi, [rsp+38h+var_10]
xor esi, esi
call bf_set_zero
jmp short loc_ECE1B
loc_ECE0F:
mov rdi, [rsp+38h+var_10]
xor esi, esi
call bf_set_inf
loc_ECE1B:
jmp short loc_ECE2C
loc_ECE1D:
mov rdi, [rsp+38h+var_10]
mov esi, 1
call bf_set_ui
loc_ECE2C:
jmp short $+2
loc_ECE2E:
mov [rsp+38h+var_4], 0
jmp loc_ECF09
loc_ECE3B:
mov rdi, [rsp+38h+var_30]
mov rsi, [rsp+38h+var_10]
mov rdx, [rsp+38h+var_18]
mov rcx, [rsp+38h+var_18]
mov r8, [rsp+38h+var_20]
mov r9d, [rsp+38h+var_24]
call check_exp_underflow_overflow
mov [rsp+38h+var_34], eax
cmp [rsp+38h+var_34], 0
jz short loc_ECE76
mov eax, [rsp+38h+var_34]
mov [rsp+38h+var_4], eax
jmp loc_ECF09
loc_ECE76:
mov rax, [rsp+38h+var_18]
cmp qword ptr [rax+10h], 0
jge short loc_ECEE1
mov rcx, [rsp+38h+var_18]
xor eax, eax
sub rax, [rcx+10h]
mov rcx, [rsp+38h+var_20]
add rcx, 2
cmp rax, rcx
jb short loc_ECEE1
mov rdi, [rsp+38h+var_10]
mov esi, 1
call bf_set_ui
mov rdi, [rsp+38h+var_10]
mov rsi, [rsp+38h+var_10]
mov rax, [rsp+38h+var_20]
add rax, 2
xor ecx, ecx
mov edx, ecx
sub rdx, rax
mov rax, [rsp+38h+var_18]
mov ecx, [rax+8]
mov r8, [rsp+38h+var_20]
mov r9d, [rsp+38h+var_24]
call bf_add_epsilon
mov [rsp+38h+var_4], eax
jmp short loc_ECF09
loc_ECEE1:
mov rdi, [rsp+38h+var_10]
mov rsi, [rsp+38h+var_18]
mov rdx, [rsp+38h+var_20]
mov ecx, [rsp+38h+var_24]
lea r8, bf_exp_internal
xor eax, eax
mov r9d, eax
call bf_ziv_rounding
mov [rsp+38h+var_4], eax
loc_ECF09:
mov eax, [rsp+38h+var_4]
add rsp, 38h
retn
|
long long bf_exp(_QWORD *a1, long long a2, long long a3, unsigned int a4)
{
unsigned int v5; // [rsp+4h] [rbp-34h]
if ( *(_QWORD *)(a2 + 24) )
{
v5 = check_exp_underflow_overflow(*a1, a1, a2, a2, a3, a4);
if ( v5 )
{
return v5;
}
else if ( *(long long *)(a2 + 16) >= 0 || -*(_QWORD *)(a2 + 16) < (unsigned long long)(a3 + 2) )
{
return (unsigned int)bf_ziv_rounding(a1, a2, a3, a4, bf_exp_internal, 0LL);
}
else
{
bf_set_ui((long long)a1, 1LL);
return (unsigned int)bf_add_epsilon(a1, a1, -(a3 + 2), *(unsigned int *)(a2 + 8), a3, a4);
}
}
else
{
if ( *(_QWORD *)(a2 + 16) == 0x7FFFFFFFFFFFFFFFLL )
{
bf_set_nan((long long)a1);
}
else if ( *(_QWORD *)(a2 + 16) == 0x7FFFFFFFFFFFFFFELL )
{
if ( *(_DWORD *)(a2 + 8) )
bf_set_zero((long long)a1, 0);
else
bf_set_inf((long long)a1, 0);
}
else
{
bf_set_ui((long long)a1, 1LL);
}
return 0;
}
}
|
bf_exp:
SUB RSP,0x38
MOV qword ptr [RSP + 0x28],RDI
MOV qword ptr [RSP + 0x20],RSI
MOV qword ptr [RSP + 0x18],RDX
MOV dword ptr [RSP + 0x14],ECX
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x20]
CMP qword ptr [RAX + 0x18],0x0
JNZ 0x001ece3b
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,0x7fffffffffffffff
CMP qword ptr [RAX + 0x10],RCX
JNZ 0x001ecde1
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x001e4ee0
JMP 0x001ece2e
LAB_001ecde1:
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,0x7ffffffffffffffe
CMP qword ptr [RAX + 0x10],RCX
JNZ 0x001ece1d
MOV RAX,qword ptr [RSP + 0x20]
CMP dword ptr [RAX + 0x8],0x0
JZ 0x001ece0f
MOV RDI,qword ptr [RSP + 0x28]
XOR ESI,ESI
CALL 0x001e4f80
JMP 0x001ece1b
LAB_001ece0f:
MOV RDI,qword ptr [RSP + 0x28]
XOR ESI,ESI
CALL 0x001e4fc0
LAB_001ece1b:
JMP 0x001ece2c
LAB_001ece1d:
MOV RDI,qword ptr [RSP + 0x28]
MOV ESI,0x1
CALL 0x001e4de0
LAB_001ece2c:
JMP 0x001ece2e
LAB_001ece2e:
MOV dword ptr [RSP + 0x34],0x0
JMP 0x001ecf09
LAB_001ece3b:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x20]
MOV R8,qword ptr [RSP + 0x18]
MOV R9D,dword ptr [RSP + 0x14]
CALL 0x001ecf20
MOV dword ptr [RSP + 0x4],EAX
CMP dword ptr [RSP + 0x4],0x0
JZ 0x001ece76
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [RSP + 0x34],EAX
JMP 0x001ecf09
LAB_001ece76:
MOV RAX,qword ptr [RSP + 0x20]
CMP qword ptr [RAX + 0x10],0x0
JGE 0x001ecee1
MOV RCX,qword ptr [RSP + 0x20]
XOR EAX,EAX
SUB RAX,qword ptr [RCX + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
ADD RCX,0x2
CMP RAX,RCX
JC 0x001ecee1
MOV RDI,qword ptr [RSP + 0x28]
MOV ESI,0x1
CALL 0x001e4de0
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x18]
ADD RAX,0x2
XOR ECX,ECX
MOV EDX,ECX
SUB RDX,RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV ECX,dword ptr [RAX + 0x8]
MOV R8,qword ptr [RSP + 0x18]
MOV R9D,dword ptr [RSP + 0x14]
CALL 0x001ed180
MOV dword ptr [RSP + 0x34],EAX
JMP 0x001ecf09
LAB_001ecee1:
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x18]
MOV ECX,dword ptr [RSP + 0x14]
LEA R8,[0x1ed360]
XOR EAX,EAX
MOV R9D,EAX
CALL 0x001ed220
MOV dword ptr [RSP + 0x34],EAX
LAB_001ecf09:
MOV EAX,dword ptr [RSP + 0x34]
ADD RSP,0x38
RET
|
int bf_exp(int8 *param_1,long param_2,long param_3,int4 param_4)
{
int local_4;
if (*(long *)(param_2 + 0x18) == 0) {
if (*(long *)(param_2 + 0x10) == 0x7fffffffffffffff) {
bf_set_nan(param_1);
}
else if (*(long *)(param_2 + 0x10) == 0x7ffffffffffffffe) {
if (*(int *)(param_2 + 8) == 0) {
bf_set_inf(param_1,0);
}
else {
bf_set_zero(param_1,0);
}
}
else {
bf_set_ui(param_1,1);
}
local_4 = 0;
}
else {
local_4 = check_exp_underflow_overflow(*param_1,param_1,param_2,param_2,param_3,param_4);
if (local_4 == 0) {
if ((*(long *)(param_2 + 0x10) < 0) && (param_3 + 2U <= (ulong)-*(long *)(param_2 + 0x10))) {
bf_set_ui(param_1,1);
local_4 = bf_add_epsilon(param_1,param_1,-(param_3 + 2),*(int4 *)(param_2 + 8),param_3
,param_4);
}
else {
local_4 = bf_ziv_rounding(param_1,param_2,param_3,param_4,bf_exp_internal,0);
}
}
}
return local_4;
}
|
|
10,796 |
bf_exp
|
bluesky950520[P]quickjs/libbf.c
|
int bf_exp(bf_t *r, const bf_t *a, limb_t prec, bf_flags_t flags)
{
bf_context_t *s = r->ctx;
int ret;
assert(r != a);
if (a->len == 0) {
if (a->expn == BF_EXP_NAN) {
bf_set_nan(r);
} else if (a->expn == BF_EXP_INF) {
if (a->sign)
bf_set_zero(r, 0);
else
bf_set_inf(r, 0);
} else {
bf_set_ui(r, 1);
}
return 0;
}
ret = check_exp_underflow_overflow(s, r, a, a, prec, flags);
if (ret)
return ret;
if (a->expn < 0 && (-a->expn) >= (prec + 2)) {
/* small argument case: result = 1 + epsilon * sign(x) */
bf_set_ui(r, 1);
return bf_add_epsilon(r, r, -(prec + 2), a->sign, prec, flags);
}
return bf_ziv_rounding(r, a, prec, flags, bf_exp_internal, NULL);
}
|
O3
|
c
|
bf_exp:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
cmpq $0x0, 0x18(%rsi)
je 0x8c6f9
movl %ecx, %ebp
movq %rdx, %r14
movq (%rbx), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r15, %rcx
movq %r14, %r8
movl %ebp, %r9d
callq 0x8c7f0
testl %eax, %eax
jne 0x8c7af
movq 0x10(%r15), %rax
testq %rax, %rax
jns 0x8c6d5
negq %rax
leaq 0x2(%r14), %rcx
cmpq %rax, %rcx
jbe 0x8c7ba
leaq 0x548(%rip), %r8 # 0x8cc24
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebp, %ecx
xorl %r9d, %r9d
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x8cb45
movq 0x10(%r15), %rax
movabsq $0x7ffffffffffffffe, %r14 # imm = 0x7FFFFFFFFFFFFFFE
cmpq %r14, %rax
je 0x8c742
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rcx, %rax
jne 0x8c773
cmpq $0x0, 0x18(%rbx)
je 0x8c73d
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
incq %r14
jmp 0x8c7a2
cmpl $0x0, 0x8(%r15)
movq 0x18(%rbx), %rax
je 0x8c782
testq %rax, %rax
je 0x8c76d
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
addq $0x2, %r14
jmp 0x8c7a2
movl $0x1, %esi
movq %rbx, %rdi
callq 0x868c8
jmp 0x8c7ad
testq %rax, %rax
je 0x8c7a2
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
movq %r14, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %esi
movq %rbx, %rdi
callq 0x868c8
movq $-0x2, %rdx
subq %r14, %rdx
movl 0x8(%r15), %ecx
movq (%rbx), %rsi
movq %rbx, %rdi
movq %r14, %r8
movl %ebp, %r9d
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x8caa6
|
bf_exp:
push rbp
push r15
push r14
push rbx
push rax
mov r15, rsi
mov rbx, rdi
cmp qword ptr [rsi+18h], 0
jz short loc_8C6F9
mov ebp, ecx
mov r14, rdx
mov rdi, [rbx]
mov rsi, rbx
mov rdx, r15
mov rcx, r15
mov r8, r14
mov r9d, ebp
call check_exp_underflow_overflow
test eax, eax
jnz loc_8C7AF
mov rax, [r15+10h]
test rax, rax
jns short loc_8C6D5
neg rax
lea rcx, [r14+2]
cmp rcx, rax
jbe loc_8C7BA
loc_8C6D5:
lea r8, bf_exp_internal
mov rdi, rbx
mov rsi, r15
mov rdx, r14
mov ecx, ebp
xor r9d, r9d
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp bf_ziv_rounding
loc_8C6F9:
mov rax, [r15+10h]
mov r14, 7FFFFFFFFFFFFFFEh
cmp rax, r14
jz short loc_8C742
mov rcx, 7FFFFFFFFFFFFFFFh
cmp rax, rcx
jnz short loc_8C773
cmp qword ptr [rbx+18h], 0
jz short loc_8C73D
mov rax, [rbx]
mov rsi, [rbx+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [rbx+20h], rax
mov qword ptr [rbx+18h], 0
loc_8C73D:
inc r14
jmp short loc_8C7A2
loc_8C742:
cmp dword ptr [r15+8], 0
mov rax, [rbx+18h]
jz short loc_8C782
test rax, rax
jz short loc_8C76D
mov rax, [rbx]
mov rsi, [rbx+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [rbx+20h], rax
mov qword ptr [rbx+18h], 0
loc_8C76D:
add r14, 2
jmp short loc_8C7A2
loc_8C773:
mov esi, 1
mov rdi, rbx
call bf_set_ui
jmp short loc_8C7AD
loc_8C782:
test rax, rax
jz short loc_8C7A2
mov rax, [rbx]
mov rsi, [rbx+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [rbx+20h], rax
mov qword ptr [rbx+18h], 0
loc_8C7A2:
mov [rbx+10h], r14
mov dword ptr [rbx+8], 0
loc_8C7AD:
xor eax, eax
loc_8C7AF:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_8C7BA:
mov esi, 1
mov rdi, rbx
call bf_set_ui
mov rdx, 0FFFFFFFFFFFFFFFEh
sub rdx, r14
mov ecx, [r15+8]
mov rsi, [rbx]
mov rdi, rbx
mov r8, r14
mov r9d, ebp
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp bf_add_epsilon
|
long long bf_exp(_QWORD **a1, long long a2, long long a3, unsigned int a4)
{
long long v4; // rax
long long result; // rax
long long v8; // rax
long long v9; // rax
unsigned long long v10; // r14
_QWORD *v11; // rax
if ( !*(_QWORD *)(a2 + 24) )
{
v9 = *(_QWORD *)(a2 + 16);
v10 = 0x7FFFFFFFFFFFFFFELL;
if ( v9 == 0x7FFFFFFFFFFFFFFELL )
{
v11 = a1[3];
if ( *(_DWORD *)(a2 + 8) )
{
if ( v11 )
{
a1[4] = (_QWORD *)((long long ( *)(_QWORD, _QWORD *, _QWORD))(*a1)[1])(**a1, a1[4], 0LL);
a1[3] = 0LL;
}
v10 = 0x8000000000000000LL;
}
else if ( v11 )
{
a1[4] = (_QWORD *)((long long ( *)(_QWORD, _QWORD *, _QWORD))(*a1)[1])(**a1, a1[4], 0LL);
a1[3] = 0LL;
}
}
else
{
if ( v9 != 0x7FFFFFFFFFFFFFFFLL )
{
bf_set_ui(a1, 1uLL);
return 0LL;
}
if ( a1[3] )
{
a1[4] = (_QWORD *)((long long ( *)(_QWORD, _QWORD *, _QWORD))(*a1)[1])(**a1, a1[4], 0LL);
a1[3] = 0LL;
}
v10 = 0x7FFFFFFFFFFFFFFFLL;
}
a1[2] = (_QWORD *)v10;
*((_DWORD *)a1 + 2) = 0;
return 0LL;
}
result = check_exp_underflow_overflow(*a1, a1, a2, a2, a3, a4, v4);
if ( !(_DWORD)result )
{
v8 = *(_QWORD *)(a2 + 16);
if ( v8 < 0 && a3 + 2 <= (unsigned long long)-v8 )
{
bf_set_ui(a1, 1uLL);
return bf_add_epsilon(a1, *a1, -2 - a3, *(unsigned int *)(a2 + 8), a3, a4);
}
else
{
return bf_ziv_rounding(a1, a2, a3, a4, bf_exp_internal, 0LL);
}
}
return result;
}
|
bf_exp:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R15,RSI
MOV RBX,RDI
CMP qword ptr [RSI + 0x18],0x0
JZ 0x0018c6f9
MOV EBP,ECX
MOV R14,RDX
MOV RDI,qword ptr [RBX]
MOV RSI,RBX
MOV RDX,R15
MOV RCX,R15
MOV R8,R14
MOV R9D,EBP
CALL 0x0018c7f0
TEST EAX,EAX
JNZ 0x0018c7af
MOV RAX,qword ptr [R15 + 0x10]
TEST RAX,RAX
JNS 0x0018c6d5
NEG RAX
LEA RCX,[R14 + 0x2]
CMP RCX,RAX
JBE 0x0018c7ba
LAB_0018c6d5:
LEA R8,[0x18cc24]
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
MOV ECX,EBP
XOR R9D,R9D
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0018cb45
LAB_0018c6f9:
MOV RAX,qword ptr [R15 + 0x10]
MOV R14,0x7ffffffffffffffe
CMP RAX,R14
JZ 0x0018c742
MOV RCX,0x7fffffffffffffff
CMP RAX,RCX
JNZ 0x0018c773
CMP qword ptr [RBX + 0x18],0x0
JZ 0x0018c73d
MOV RAX,qword ptr [RBX]
MOV RSI,qword ptr [RBX + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x20],RAX
MOV qword ptr [RBX + 0x18],0x0
LAB_0018c73d:
INC R14
JMP 0x0018c7a2
LAB_0018c742:
CMP dword ptr [R15 + 0x8],0x0
MOV RAX,qword ptr [RBX + 0x18]
JZ 0x0018c782
TEST RAX,RAX
JZ 0x0018c76d
MOV RAX,qword ptr [RBX]
MOV RSI,qword ptr [RBX + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x20],RAX
MOV qword ptr [RBX + 0x18],0x0
LAB_0018c76d:
ADD R14,0x2
JMP 0x0018c7a2
LAB_0018c773:
MOV ESI,0x1
MOV RDI,RBX
CALL 0x001868c8
JMP 0x0018c7ad
LAB_0018c782:
TEST RAX,RAX
JZ 0x0018c7a2
MOV RAX,qword ptr [RBX]
MOV RSI,qword ptr [RBX + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x20],RAX
MOV qword ptr [RBX + 0x18],0x0
LAB_0018c7a2:
MOV qword ptr [RBX + 0x10],R14
MOV dword ptr [RBX + 0x8],0x0
LAB_0018c7ad:
XOR EAX,EAX
LAB_0018c7af:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0018c7ba:
MOV ESI,0x1
MOV RDI,RBX
CALL 0x001868c8
MOV RDX,-0x2
SUB RDX,R14
MOV ECX,dword ptr [R15 + 0x8]
MOV RSI,qword ptr [RBX]
MOV RDI,RBX
MOV R8,R14
MOV R9D,EBP
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0018caa6
|
int8 bf_exp(long *param_1,long param_2,long param_3,int4 param_4)
{
int8 uVar1;
long lVar2;
long lVar3;
if (*(long *)(param_2 + 0x18) == 0) {
lVar3 = 0x7ffffffffffffffe;
if (*(long *)(param_2 + 0x10) == 0x7ffffffffffffffe) {
if (*(int *)(param_2 + 8) == 0) {
if (param_1[3] != 0) {
lVar2 = (*(code *)((int8 *)*param_1)[1])(*(int8 *)*param_1,param_1[4],0);
param_1[4] = lVar2;
param_1[3] = 0;
}
}
else {
if (param_1[3] != 0) {
lVar3 = (*(code *)((int8 *)*param_1)[1])(*(int8 *)*param_1,param_1[4],0);
param_1[4] = lVar3;
param_1[3] = 0;
}
lVar3 = -0x8000000000000000;
}
}
else {
if (*(long *)(param_2 + 0x10) != 0x7fffffffffffffff) {
bf_set_ui(param_1,1);
return 0;
}
if (param_1[3] != 0) {
lVar3 = (*(code *)((int8 *)*param_1)[1])(*(int8 *)*param_1,param_1[4],0);
param_1[4] = lVar3;
param_1[3] = 0;
}
lVar3 = 0x7fffffffffffffff;
}
param_1[2] = lVar3;
*(int4 *)(param_1 + 1) = 0;
return 0;
}
uVar1 = check_exp_underflow_overflow(*param_1,param_1,param_2,param_2,param_3,param_4);
if ((int)uVar1 != 0) {
return uVar1;
}
if ((*(long *)(param_2 + 0x10) < 0) && (param_3 + 2U <= (ulong)-*(long *)(param_2 + 0x10))) {
bf_set_ui(param_1,1);
uVar1 = bf_add_epsilon(param_1,*param_1,-2 - param_3,*(int4 *)(param_2 + 8),param_3,
param_4);
return uVar1;
}
uVar1 = bf_ziv_rounding(param_1,param_2,param_3,param_4,bf_exp_internal,0);
return uVar1;
}
|
|
10,797 |
minja::Context::get(minja::Value const&)
|
monkey531[P]llama/common/minja.hpp
|
virtual Value get(const Value & key) {
if (values_.contains(key)) return values_.at(key);
if (parent_) return parent_->get(key);
return Value();
}
|
O1
|
cpp
|
minja::Context::get(minja::Value const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x18(%rsi), %r12
movq %r12, %rdi
movq %rdx, %rsi
callq 0x984c6
testb %al, %al
je 0xa1cae
movq %r12, %rdi
movq %r14, %rsi
callq 0x982c8
movq %rbx, %rdi
movq %rax, %rsi
callq 0x928e2
jmp 0xa1d01
movq 0x68(%r15), %rsi
testq %rsi, %rsi
je 0xa1cc5
movq (%rsi), %rax
movq %rbx, %rdi
movq %r14, %rdx
callq *0x10(%rax)
jmp 0xa1d01
leaq 0x40(%rbx), %r14
movq $0x0, 0x48(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x30(%rbx)
movb $0x0, 0x40(%rbx)
movq %r14, %rdi
movl $0x1, %esi
callq 0x5cc84
movq %r14, %rdi
movl $0x1, %esi
callq 0x5cc84
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
|
_ZN5minja7Context3getERKNS_5ValueE:
push r15
push r14
push r12
push rbx
push rax
mov r14, rdx
mov r15, rsi
mov rbx, rdi
lea r12, [rsi+18h]
mov rdi, r12; this
mov rsi, rdx; minja::Value *
call _ZNK5minja5Value8containsERKS0_; minja::Value::contains(minja::Value const&)
test al, al
jz short loc_A1CAE
mov rdi, r12; this
mov rsi, r14; minja::Value *
call _ZN5minja5Value2atERKS0_; minja::Value::at(minja::Value const&)
mov rdi, rbx; this
mov rsi, rax; minja::Value *
call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&)
jmp short loc_A1D01
loc_A1CAE:
mov rsi, [r15+68h]
test rsi, rsi
jz short loc_A1CC5
mov rax, [rsi]
mov rdi, rbx
mov rdx, r14
call qword ptr [rax+10h]
jmp short loc_A1D01
loc_A1CC5:
lea r14, [rbx+40h]
mov qword ptr [rbx+48h], 0
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
movups xmmword ptr [rbx+10h], xmm0
movups xmmword ptr [rbx+20h], xmm0
movups xmmword ptr [rbx+30h], xmm0
mov byte ptr [rbx+40h], 0
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
loc_A1D01:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
|
minja::Context * minja::Context::get(
minja::Context *this,
const minja::Value *a2,
const minja::Value *a3,
__m128d a4)
{
const minja::Value *v5; // rax
long long v6; // rsi
if ( (unsigned __int8)minja::Value::contains((const minja::Value *)((char *)a2 + 24), a3, a4) )
{
v5 = (const minja::Value *)minja::Value::at((const minja::Value *)((char *)a2 + 24), a3);
minja::Value::Value(this, v5);
}
else
{
v6 = *((_QWORD *)a2 + 13);
if ( v6 )
{
(*(void ( **)(minja::Context *, long long, const minja::Value *))(*(_QWORD *)v6 + 16LL))(this, v6, a3);
}
else
{
*((_QWORD *)this + 9) = 0LL;
*(_OWORD *)this = 0LL;
*((_OWORD *)this + 1) = 0LL;
*((_OWORD *)this + 2) = 0LL;
*((_OWORD *)this + 3) = 0LL;
*((_BYTE *)this + 64) = 0;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)this + 64);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)this + 64);
}
}
return this;
}
|
get:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
LEA R12,[RSI + 0x18]
MOV RDI,R12
MOV RSI,RDX
CALL 0x001984c6
TEST AL,AL
JZ 0x001a1cae
MOV RDI,R12
MOV RSI,R14
CALL 0x001982c8
MOV RDI,RBX
MOV RSI,RAX
CALL 0x001928e2
JMP 0x001a1d01
LAB_001a1cae:
MOV RSI,qword ptr [R15 + 0x68]
TEST RSI,RSI
JZ 0x001a1cc5
MOV RAX,qword ptr [RSI]
MOV RDI,RBX
MOV RDX,R14
CALL qword ptr [RAX + 0x10]
JMP 0x001a1d01
LAB_001a1cc5:
LEA R14,[RBX + 0x40]
MOV qword ptr [RBX + 0x48],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOVUPS xmmword ptr [RBX + 0x20],XMM0
MOVUPS xmmword ptr [RBX + 0x30],XMM0
MOV byte ptr [RBX + 0x40],0x0
MOV RDI,R14
MOV ESI,0x1
CALL 0x0015cc84
MOV RDI,R14
MOV ESI,0x1
CALL 0x0015cc84
LAB_001a1d01:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* minja::Context::get(minja::Value const&) */
Value * minja::Context::get(Value *param_1)
{
char cVar1;
Value *pVVar2;
Value *in_RDX;
long in_RSI;
bool bVar3;
cVar1 = Value::contains((Value *)(in_RSI + 0x18),in_RDX);
if (cVar1 == '\0') {
if (*(long **)(in_RSI + 0x68) == (long *)0x0) {
bVar3 = (bool)((char)param_1 + '@');
*(int8 *)(param_1 + 0x48) = 0;
*(int8 *)param_1 = 0;
*(int8 *)(param_1 + 8) = 0;
*(int8 *)(param_1 + 0x10) = 0;
*(int8 *)(param_1 + 0x18) = 0;
*(int8 *)(param_1 + 0x20) = 0;
*(int8 *)(param_1 + 0x28) = 0;
*(int8 *)(param_1 + 0x30) = 0;
*(int8 *)(param_1 + 0x38) = 0;
param_1[0x40] = (Value)0x0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar3);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(bVar3);
}
else {
(**(code **)(**(long **)(in_RSI + 0x68) + 0x10))(param_1);
}
}
else {
pVVar2 = (Value *)Value::at((Value *)(in_RSI + 0x18),in_RDX);
Value::Value(param_1,pVVar2);
}
return param_1;
}
|
|
10,798 |
minja::Value::to_int() const
|
monkey531[P]llama/common/minja.hpp
|
int64_t to_int() const {
if (is_null()) return 0;
if (is_boolean()) return get<bool>() ? 1 : 0;
if (is_number()) return static_cast<int64_t>(get<double>());
if (is_string()) {
try {
return std::stol(get<std::string>());
} catch (const std::exception &) {
return 0;
}
}
return 0;
}
|
O1
|
cpp
|
minja::Value::to_int() const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rsi
cmpq $0x0, 0x20(%rdi)
movb 0x40(%rdi), %al
jne 0xb09ce
cmpq $0x0, 0x10(%rsi)
jne 0xb09ce
testb %al, %al
jne 0xb09ce
cmpq $0x0, 0x30(%rsi)
jne 0xb09ce
xorl %ebx, %ebx
jmp 0xb0a70
cmpb $0x4, %al
jne 0xb09e2
movq %rsi, %rdi
callq 0x868b8
movzbl %al, %ebx
jmp 0xb0a70
leal -0x5(%rax), %ecx
cmpb $0x2, %cl
ja 0xb09f9
movq %rsi, %rdi
callq 0x85a72
cvttsd2si %xmm0, %rbx
jmp 0xb0a70
cmpb $0x3, %al
jne 0xb09c7
leaq 0x8(%rsp), %rdi
callq 0x869b2
movq 0x8(%rsp), %r15
callq 0x1a060
movq %rax, %r14
movl (%rax), %ebp
movl $0x0, (%rax)
leaq 0x28(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x1abf0
cmpq %r15, (%r12)
je 0xb0a80
movq %rax, %rbx
movl (%r14), %eax
testl %eax, %eax
je 0xb0a52
cmpl $0x22, %eax
jne 0xb0a55
leaq 0x4153c(%rip), %rdi # 0xf1f89
callq 0x1ac40
movl %ebp, (%r14)
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb0a70
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a890
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x41502(%rip), %rdi # 0xf1f89
callq 0x1a530
movq %rdx, %r15
movq %rax, %rbx
jmp 0xb0abe
movq %rdx, %r15
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0xb0aa3
movl %ebp, (%r14)
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb0abe
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a890
movq %rbx, %rdi
cmpl $0x1, %r15d
jne 0xb0ad6
callq 0x1a370
callq 0x1ade0
jmp 0xb09c7
callq 0x1af20
nop
|
_ZNK5minja5Value6to_intEv:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 30h
mov rsi, rdi
cmp qword ptr [rdi+20h], 0
mov al, [rdi+40h]
jnz short loc_B09CE
cmp qword ptr [rsi+10h], 0
jnz short loc_B09CE
test al, al
jnz short loc_B09CE
cmp qword ptr [rsi+30h], 0
jnz short loc_B09CE
loc_B09C7:
xor ebx, ebx
jmp loc_B0A70
loc_B09CE:
cmp al, 4
jnz short loc_B09E2
mov rdi, rsi
call _ZNK5minja5Value3getIbEET_v; minja::Value::get<bool>(void)
movzx ebx, al
jmp loc_B0A70
loc_B09E2:
lea ecx, [rax-5]
cmp cl, 2
ja short loc_B09F9
mov rdi, rsi
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
cvttsd2si rbx, xmm0
jmp short loc_B0A70
loc_B09F9:
cmp al, 3
jnz short loc_B09C7
lea rdi, [rsp+58h+var_50]
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
mov r15, [rsp+58h+var_50]
call ___errno_location
mov r14, rax
mov ebp, [rax]
mov dword ptr [rax], 0
lea r12, [rsp+58h+var_30]
mov rdi, r15
mov rsi, r12
mov edx, 0Ah
call _strtol
cmp [r12], r15
jz short loc_B0A80
mov rbx, rax
mov eax, [r14]
test eax, eax
jz short loc_B0A52
cmp eax, 22h ; '"'
jnz short loc_B0A55
lea rdi, aStol; "stol"
call __ZSt20__throw_out_of_rangePKc; std::__throw_out_of_range(char const*)
loc_B0A52:
mov [r14], ebp
loc_B0A55:
lea rax, [rsp+58h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B0A70
mov rsi, [rsp+58h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B0A70:
mov rax, rbx
add rsp, 30h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_B0A80:
lea rdi, aStol; "stol"
call __ZSt24__throw_invalid_argumentPKc; std::__throw_invalid_argument(char const*)
mov r15, rdx
mov rbx, rax
jmp short loc_B0ABE
mov r15, rdx
mov rbx, rax
cmp dword ptr [r14], 0
jnz short loc_B0AA3
mov [r14], ebp
loc_B0AA3:
lea rax, [rsp+58h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B0ABE
mov rsi, [rsp+58h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B0ABE:
mov rdi, rbx; void *
cmp r15d, 1
jnz short loc_B0AD6
call ___cxa_begin_catch
call ___cxa_end_catch
jmp loc_B09C7
loc_B0AD6:
call __Unwind_Resume
|
long long minja::Value::to_int(minja::Value *this, double a2)
{
char v2; // al
long long v3; // rbx
long long *v4; // r15
int *v5; // r14
int v6; // ebp
long long v7; // rax
void *v9; // rdi
int v10; // edx
long long *v11; // [rsp+8h] [rbp-50h] BYREF
long long v12; // [rsp+18h] [rbp-40h] BYREF
long long *v13; // [rsp+28h] [rbp-30h] BYREF
v2 = *((_BYTE *)this + 64);
if ( !*((_QWORD *)this + 4) && !*((_QWORD *)this + 2) && !v2 && !*((_QWORD *)this + 6) )
return 0LL;
if ( v2 == 4 )
return (unsigned __int8)minja::Value::get<bool>(this);
if ( (unsigned __int8)(v2 - 5) <= 2u )
return (unsigned int)(int)minja::Value::get<double>(this);
if ( v2 != 3 )
return 0LL;
minja::Value::get<std::string>((long long)&v11, this);
v4 = v11;
v5 = (int *)__errno_location(a2);
v6 = *v5;
*v5 = 0;
v7 = strtol(v4, &v13, 10LL);
if ( v13 == v4 )
{
v9 = (void *)std::__throw_invalid_argument("stol");
if ( v10 != 1 )
_Unwind_Resume(v9);
__cxa_begin_catch(v9);
__cxa_end_catch();
return 0LL;
}
v3 = v7;
if ( *v5 )
{
if ( *v5 == 34 )
std::__throw_out_of_range("stol");
}
else
{
*v5 = v6;
}
if ( v11 != &v12 )
operator delete(v11, v12 + 1);
return v3;
}
|
to_int:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x30
MOV RSI,RDI
CMP qword ptr [RDI + 0x20],0x0
MOV AL,byte ptr [RDI + 0x40]
JNZ 0x001b09ce
CMP qword ptr [RSI + 0x10],0x0
JNZ 0x001b09ce
TEST AL,AL
JNZ 0x001b09ce
CMP qword ptr [RSI + 0x30],0x0
JNZ 0x001b09ce
LAB_001b09c7:
XOR EBX,EBX
JMP 0x001b0a70
LAB_001b09ce:
CMP AL,0x4
JNZ 0x001b09e2
MOV RDI,RSI
CALL 0x001868b8
MOVZX EBX,AL
JMP 0x001b0a70
LAB_001b09e2:
LEA ECX,[RAX + -0x5]
CMP CL,0x2
JA 0x001b09f9
MOV RDI,RSI
CALL 0x00185a72
CVTTSD2SI RBX,XMM0
JMP 0x001b0a70
LAB_001b09f9:
CMP AL,0x3
JNZ 0x001b09c7
LAB_001b09fd:
LEA RDI,[RSP + 0x8]
CALL 0x001869b2
MOV R15,qword ptr [RSP + 0x8]
CALL 0x0011a060
MOV R14,RAX
MOV EBP,dword ptr [RAX]
MOV dword ptr [RAX],0x0
LEA R12,[RSP + 0x28]
MOV RDI,R15
MOV RSI,R12
MOV EDX,0xa
CALL 0x0011abf0
CMP qword ptr [R12],R15
JZ 0x001b0a80
MOV RBX,RAX
MOV EAX,dword ptr [R14]
TEST EAX,EAX
JZ 0x001b0a52
CMP EAX,0x22
JNZ 0x001b0a55
LAB_001b0a46:
LEA RDI,[0x1f1f89]
CALL 0x0011ac40
LAB_001b0a52:
MOV dword ptr [R14],EBP
LAB_001b0a55:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001b0a70
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011a890
LAB_001b0a70:
MOV RAX,RBX
ADD RSP,0x30
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001b0a80:
LEA RDI,[0x1f1f89]
CALL 0x0011a530
LAB_001b0a8c:
MOV R15,RDX
MOV RBX,RAX
JMP 0x001b0abe
LAB_001b0abe:
MOV RDI,RBX
CMP R15D,0x1
JNZ 0x001b0ad6
CALL 0x0011a370
CALL 0x0011ade0
JMP 0x001b09c7
LAB_001b0ad6:
CALL 0x0011af20
|
/* minja::Value::to_int() const */
ulong __thiscall minja::Value::to_int(Value *this)
{
Value VVar1;
int iVar2;
bool bVar3;
int *piVar4;
ulong uVar5;
double dVar6;
int1 auVar7 [12];
long *local_50;
long local_40 [2];
long *local_30;
VVar1 = this[0x40];
if ((((*(long *)(this + 0x20) == 0) && (*(long *)(this + 0x10) == 0)) && (VVar1 == (Value)0x0)) &&
(*(long *)(this + 0x30) == 0)) {
return 0;
}
if (VVar1 == (Value)0x4) {
bVar3 = get<bool>(this);
return (ulong)bVar3;
}
if ((byte)((char)VVar1 - 5U) < 3) {
dVar6 = get<double>(this);
return (long)dVar6;
}
if (VVar1 != (Value)0x3) {
return 0;
}
/* try { // try from 001b09fd to 001b0a06 has its CatchHandler @ 001b0a8c */
get<std::__cxx11::string>();
piVar4 = __errno_location();
iVar2 = *piVar4;
*piVar4 = 0;
uVar5 = strtol((char *)local_50,(char **)&local_30,10);
if (local_30 == local_50) {
auVar7 = std::__throw_invalid_argument("stol");
/* catch(type#1 @ 0022e8f8, ) { ... } // from try @ 001b09fd with catch @
001b0a8c */
if (auVar7._8_4_ == 1) {
__cxa_begin_catch();
__cxa_end_catch();
return 0;
}
/* WARNING: Subroutine does not return */
_Unwind_Resume(auVar7._0_8_);
}
if (*piVar4 != 0) {
if (*piVar4 != 0x22) goto LAB_001b0a55;
/* try { // try from 001b0a46 to 001b0a8b has its CatchHandler @ 001b0a94 */
std::__throw_out_of_range("stol");
}
*piVar4 = iVar2;
LAB_001b0a55:
if (local_50 != local_40) {
operator_delete(local_50,local_40[0] + 1);
return uVar5;
}
return uVar5;
}
|
|
10,799 |
R3D_GetLightInnerCutOff
|
r3d/src/r3d_lighting.c
|
float R3D_GetLightInnerCutOff(R3D_Light id)
{
r3d_get_and_check_light(light, id, 0);
return acosf(light->innerCutOff) * RAD2DEG;
}
|
O3
|
c
|
R3D_GetLightInnerCutOff:
pushq %rbp
movq %rsp, %rbp
movl %edi, %edx
testl %edi, %edi
je 0xbf467
leaq 0xf2793(%rip), %rax # 0x1b1bc0
cmpl %edx, 0x168(%rax)
jbe 0xbf467
movq 0x128(%rax), %rsi
leal -0x1(%rdx), %ecx
cmpb $0x1, (%rsi,%rcx)
jne 0xbf467
movq 0x108(%rax), %rsi
cmpq %rcx, 0x110(%rax)
setbe %dil
testq %rsi, %rsi
sete %r8b
orb %dil, %r8b
cmpb $0x1, %r8b
jne 0xbf47f
leaq 0x53ba3(%rip), %rsi # 0x113011
movl $0x5, %edi
xorl %eax, %eax
callq 0xaa495
xorps %xmm0, %xmm0
popq %rbp
retq
imulq 0x120(%rax), %rcx
movss 0xa8(%rsi,%rcx), %xmm0
callq 0x83e0
mulss 0x23bbb(%rip), %xmm0 # 0xe3058
jmp 0xbf47d
|
R3D_GetLightInnerCutOff:
push rbp
mov rbp, rsp
mov edx, edi
test edi, edi
jz short loc_BF467
lea rax, R3D
cmp [rax+168h], edx
jbe short loc_BF467
mov rsi, [rax+128h]
lea ecx, [rdx-1]
cmp byte ptr [rsi+rcx], 1
jnz short loc_BF467
mov rsi, [rax+108h]
cmp [rax+110h], rcx
setbe dil
test rsi, rsi
setz r8b
or r8b, dil
cmp r8b, 1
jnz short loc_BF47F
loc_BF467:
lea rsi, aLightIdIIsNotV; "Light [ID %i] is not valid"
mov edi, 5
xor eax, eax
call TraceLog
xorps xmm0, xmm0
loc_BF47D:
pop rbp
retn
loc_BF47F:
imul rcx, [rax+120h]
movss xmm0, dword ptr [rsi+rcx+0A8h]
call _acosf
mulss xmm0, cs:dword_E3058
jmp short loc_BF47D
|
float R3D_GetLightInnerCutOff(long long a1)
{
int v1; // edx
unsigned long long v2; // rcx
long long v3; // rsi
v1 = a1;
if ( (_DWORD)a1 )
{
if ( *((_DWORD *)&R3D + 90) > (unsigned int)a1 )
{
v2 = (unsigned int)(a1 - 1);
if ( *(_BYTE *)(*((_QWORD *)&R3D + 37) + v2) == 1 )
{
v3 = *((_QWORD *)&R3D + 33);
LOBYTE(a1) = *((_QWORD *)&R3D + 34) <= v2;
if ( ((unsigned __int8)a1 | (v3 == 0)) != 1 )
return acosf(a1, v3) * 57.295776;
}
}
}
TraceLog(5, (long long)"Light [ID %i] is not valid", v1);
return 0.0;
}
|
R3D_GetLightInnerCutOff:
PUSH RBP
MOV RBP,RSP
MOV EDX,EDI
TEST EDI,EDI
JZ 0x001bf467
LEA RAX,[0x2b1bc0]
CMP dword ptr [RAX + 0x168],EDX
JBE 0x001bf467
MOV RSI,qword ptr [RAX + 0x128]
LEA ECX,[RDX + -0x1]
CMP byte ptr [RSI + RCX*0x1],0x1
JNZ 0x001bf467
MOV RSI,qword ptr [RAX + 0x108]
CMP qword ptr [RAX + 0x110],RCX
SETBE DIL
TEST RSI,RSI
SETZ R8B
OR R8B,DIL
CMP R8B,0x1
JNZ 0x001bf47f
LAB_001bf467:
LEA RSI,[0x213011]
MOV EDI,0x5
XOR EAX,EAX
CALL 0x001aa495
XORPS XMM0,XMM0
LAB_001bf47d:
POP RBP
RET
LAB_001bf47f:
IMUL RCX,qword ptr [RAX + 0x120]
MOVSS XMM0,dword ptr [RSI + RCX*0x1 + 0xa8]
CALL 0x001083e0
MULSS XMM0,dword ptr [0x001e3058]
JMP 0x001bf47d
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
float R3D_GetLightInnerCutOff(uint param_1)
{
ulong uVar1;
float fVar2;
if ((((param_1 != 0) && (param_1 < (uint)DAT_002b1d28)) &&
(uVar1 = (ulong)(param_1 - 1), *(char *)(DAT_002b1ce8 + uVar1) == '\x01')) &&
(DAT_002b1cc8 != 0 && uVar1 < DAT_002b1cd0)) {
fVar2 = acosf(*(float *)(DAT_002b1cc8 + 0xa8 + uVar1 * DAT_002b1ce0));
return fVar2 * _DAT_001e3058;
}
TraceLog(5,"Light [ID %i] is not valid");
return 0.0;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.