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
|
---|---|---|---|---|---|---|---|---|---|---|---|
65,000 |
inline_mysql_file_create_with_symlink
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline File
inline_mysql_file_create_with_symlink(
#ifdef HAVE_PSI_FILE_INTERFACE
PSI_file_key key, const char *src_file, uint src_line,
#endif
const char *linkname, const char *filename, int create_flags,
int access_flags, myf flags)
{
File file;
#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_CREATE, filename,
&locker);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line);
file= my_create_with_symlink(linkname, filename, create_flags, access_flags,
flags);
PSI_FILE_CALL(end_file_open_wait_and_bind_to_descriptor)(locker, file);
return file;
}
#endif
file= my_create_with_symlink(linkname, filename, create_flags, access_flags,
flags);
return file;
}
|
O3
|
c
|
inline_mysql_file_create_with_symlink:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r9, %rbx
movl %r8d, %r14d
movq %rcx, %r15
movq %rdx, %r12
movl %esi, -0x2c(%rbp)
movl %edi, %esi
leaq 0x307dc3(%rip), %rax # 0x339478
movq (%rax), %rax
leaq -0x80(%rbp), %rdi
leaq -0x38(%rbp), %r13
xorl %edx, %edx
movq %r13, %r8
callq *0x148(%rax)
movq %rax, (%r13)
testq %rax, %rax
jne 0x316fa
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
movl %r14d, %ecx
movq %rbx, %r8
callq 0x619d8
movl %eax, %ebx
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x307d77(%rip), %r13 # 0x339478
movq (%r13), %rcx
leaq 0x67852(%rip), %rsi # 0x98f5e
movq %rax, %rdi
movl -0x2c(%rbp), %edx
callq *0x1f0(%rcx)
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
movl %r14d, %ecx
movq %rbx, %r8
callq 0x619d8
movl %eax, %ebx
movq (%r13), %rax
movq -0x38(%rbp), %rdi
movl %ebx, %esi
callq *0x200(%rax)
jmp 0x316e9
|
inline_mysql_file_create_with_symlink:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov rbx, r9
mov r14d, r8d
mov r15, rcx
mov r12, rdx
mov [rbp+var_2C], esi
mov esi, edi
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_80]
lea r13, [rbp+var_38]
xor edx, edx
mov r8, r13
call qword ptr [rax+148h]
mov [r13+0], rax
test rax, rax
jnz short loc_316FA
mov rdi, r12
mov rsi, r15
xor edx, edx
mov ecx, r14d
mov r8, rbx
call my_create_with_symlink
mov ebx, eax
loc_316E9:
mov eax, ebx
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_316FA:
lea r13, PSI_server
mov rcx, [r13+0]
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, rax
mov edx, [rbp+var_2C]
call qword ptr [rcx+1F0h]
mov rdi, r12
mov rsi, r15
xor edx, edx
mov ecx, r14d
mov r8, rbx
call my_create_with_symlink
mov ebx, eax
mov rax, [r13+0]
mov rdi, [rbp+var_38]
mov esi, ebx
call qword ptr [rax+200h]
jmp short loc_316E9
|
long long inline_mysql_file_create_with_symlink(
unsigned int a1,
unsigned int a2,
long long a3,
long long a4,
unsigned int a5,
long long a6)
{
long long v10; // rax
_BYTE v12[72]; // [rsp+0h] [rbp-80h] BYREF
long long v13; // [rsp+48h] [rbp-38h] BYREF
unsigned int v14; // [rsp+54h] [rbp-2Ch]
v14 = a2;
v10 = (*((long long ( **)(_BYTE *, _QWORD, _QWORD, long long, long long *))PSI_server + 41))(
v12,
a1,
0LL,
a4,
&v13);
v13 = v10;
if ( v10 )
{
(*((void ( **)(long long, const char *, _QWORD))PSI_server + 62))(
v10,
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_create.c",
v14);
a6 = (unsigned int)my_create_with_symlink(a3, a4, 0LL, a5, a6);
(*((void ( **)(long long, long long))PSI_server + 64))(v13, a6);
}
else
{
LODWORD(a6) = my_create_with_symlink(a3, a4, 0LL, a5, a6);
}
return (unsigned int)a6;
}
|
inline_mysql_file_create_with_symlink:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV RBX,R9
MOV R14D,R8D
MOV R15,RCX
MOV R12,RDX
MOV dword ptr [RBP + -0x2c],ESI
MOV ESI,EDI
LEA RAX,[0x439478]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x80]
LEA R13,[RBP + -0x38]
XOR EDX,EDX
MOV R8,R13
CALL qword ptr [RAX + 0x148]
MOV qword ptr [R13],RAX
TEST RAX,RAX
JNZ 0x001316fa
MOV RDI,R12
MOV RSI,R15
XOR EDX,EDX
MOV ECX,R14D
MOV R8,RBX
CALL 0x001619d8
MOV EBX,EAX
LAB_001316e9:
MOV EAX,EBX
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001316fa:
LEA R13,[0x439478]
MOV RCX,qword ptr [R13]
LEA RSI,[0x198f5e]
MOV RDI,RAX
MOV EDX,dword ptr [RBP + -0x2c]
CALL qword ptr [RCX + 0x1f0]
MOV RDI,R12
MOV RSI,R15
XOR EDX,EDX
MOV ECX,R14D
MOV R8,RBX
CALL 0x001619d8
MOV EBX,EAX
MOV RAX,qword ptr [R13]
MOV RDI,qword ptr [RBP + -0x38]
MOV ESI,EBX
CALL qword ptr [RAX + 0x200]
JMP 0x001316e9
|
int4
inline_mysql_file_create_with_symlink
(int4 param_1,int4 param_2,int8 param_3,int8 param_4,
int4 param_5,int8 param_6)
{
int4 uVar1;
int1 local_88 [72];
long local_40;
int4 local_34;
local_34 = param_2;
local_40 = (**(code **)(PSI_server + 0x148))(local_88,param_1,0,param_4,&local_40);
if (local_40 == 0) {
uVar1 = my_create_with_symlink(param_3,param_4,0,param_5,param_6);
}
else {
(**(code **)(PSI_server + 0x1f0))
(local_40,"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_create.c",
local_34);
uVar1 = my_create_with_symlink(param_3,param_4,0,param_5,param_6);
(**(code **)(PSI_server + 0x200))(local_40,uVar1);
}
return uVar1;
}
|
|
65,001 |
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>>>>::erase(__gnu_cxx::__normal_iterator<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>>*, std::vector<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>>, 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>>>>>, __gnu_cxx::__normal_iterator<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>>*, std::vector<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>>, 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>>>>>)
|
monkey531[P]llama/common/json.hpp
|
iterator erase(iterator first, iterator last)
{
if (first == last)
{
return first;
}
const auto elements_affected = std::distance(first, last);
const auto offset = std::distance(Container::begin(), first);
// This is the start situation. We need to delete elements_affected
// elements (3 in this example: e, f, g), and need to return an
// iterator past the last deleted element (h in this example).
// Note that offset is the distance from the start of the vector
// to first. We will need this later.
// [ a, b, c, d, e, f, g, h, i, j ]
// ^ ^
// first last
// Since we cannot move const Keys, we re-construct them in place.
// We start at first and re-construct (viz. copy) the elements from
// the back of the vector. Example for first iteration:
// ,--------.
// v | destroy e and re-construct with h
// [ a, b, c, d, e, f, g, h, i, j ]
// ^ ^
// it it + elements_affected
for (auto it = first; std::next(it, elements_affected) != Container::end(); ++it)
{
it->~value_type(); // destroy but keep allocation
new (&*it) value_type{std::move(*std::next(it, elements_affected))}; // "move" next element to it
}
// [ a, b, c, d, h, i, j, h, i, j ]
// ^ ^
// first last
// remove the unneeded elements at the end of the vector
Container::resize(this->size() - static_cast<size_type>(elements_affected));
// [ a, b, c, d, h, i, j ]
// ^ ^
// first last
// first is now pointing past the last deleted element, but we cannot
// use this iterator, because it may have been invalidated by the
// resize call. Instead, we can return begin() + offset.
return Container::begin() + offset;
}
|
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>>>>::erase(__gnu_cxx::__normal_iterator<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>>*, std::vector<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>>, 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>>>>>, __gnu_cxx::__normal_iterator<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>>*, std::vector<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>>, 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>>>>>):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpq %rdx, %rsi
je 0x6f5a7
movq %rdi, %r14
subq %rbx, %rdx
pushq $0x60
popq %rcx
movq %rdx, %rax
cqto
idivq %rcx
movq %rax, %r15
movq (%rdi), %rax
movq %rax, (%rsp)
imulq $0x60, %r15, %r13
addq %rbx, %r13
movq %r13, %r12
negq %r12
movq %rbx, %rbp
cmpq 0x8(%r14), %r13
je 0x6f581
movq %rbp, %rdi
callq 0x69502
movq %rbp, %rdi
movq %r13, %rsi
callq 0x6f5ba
addq $0x60, %rbp
addq $0x60, %r13
addq $-0x60, %r12
jmp 0x6f55a
subq (%rsp), %rbx
addq (%r14), %r12
negq %r12
movq %r12, %rax
cqto
pushq $0x60
popq %rcx
idivq %rcx
subq %r15, %rax
movq %r14, %rdi
movq %rax, %rsi
callq 0x6f5e4
addq (%r14), %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
|
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEESR_:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rsi
cmp rsi, rdx
jz short loc_6F5A7
mov r14, rdi
sub rdx, rbx
push 60h ; '`'
pop rcx
mov rax, rdx
cqo
idiv rcx
mov r15, rax
mov rax, [rdi]
mov [rsp+38h+var_38], rax
imul r13, r15, 60h ; '`'
add r13, rbx
mov r12, r13
neg r12
mov rbp, rbx
loc_6F55A:
cmp r13, [r14+8]
jz short loc_6F581
mov rdi, rbp
call _ZNSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueEED2Ev; 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>::~pair()
mov rdi, rbp
mov rsi, r13
call _ZNSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueEEC2EOSI_; 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>::pair(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>&&)
add rbp, 60h ; '`'
add r13, 60h ; '`'
add r12, 0FFFFFFFFFFFFFFA0h
jmp short loc_6F55A
loc_6F581:
sub rbx, [rsp+38h+var_38]
add r12, [r14]
neg r12
mov rax, r12
cqo
push 60h ; '`'
pop rcx
idiv rcx
sub rax, r15
mov rdi, r14
mov rsi, rax
call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE6resizeEm; std::vector<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>>::resize(ulong)
add rbx, [r14]
loc_6F5A7:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long 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>>>::erase(
long long *a1,
long long a2,
long long a3)
{
long long v3; // rbx
long long v4; // r15
long long v5; // r13
long long v6; // r12
long long v7; // rbp
long long v9; // [rsp+0h] [rbp-38h]
v3 = a2;
if ( a2 != a3 )
{
v4 = (a3 - a2) / 96;
v9 = *a1;
v5 = a2 + 96 * v4;
v6 = -v5;
v7 = a2;
while ( v5 != a1[1] )
{
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>::~pair(v7);
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>::pair(
v7,
v5);
v7 += 96LL;
v5 += 96LL;
v6 -= 96LL;
}
std::vector<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>>::resize(
a1,
-(*a1 + v6) / 96 - v4,
-(*a1 + v6) % 96);
return *a1 + a2 - v9;
}
return v3;
}
|
erase:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
CMP RSI,RDX
JZ 0x0016f5a7
MOV R14,RDI
SUB RDX,RBX
PUSH 0x60
POP RCX
MOV RAX,RDX
CQO
IDIV RCX
MOV R15,RAX
MOV RAX,qword ptr [RDI]
MOV qword ptr [RSP],RAX
IMUL R13,R15,0x60
ADD R13,RBX
MOV R12,R13
NEG R12
MOV RBP,RBX
LAB_0016f55a:
CMP R13,qword ptr [R14 + 0x8]
JZ 0x0016f581
MOV RDI,RBP
CALL 0x00169502
MOV RDI,RBP
MOV RSI,R13
CALL 0x0016f5ba
ADD RBP,0x60
ADD R13,0x60
ADD R12,-0x60
JMP 0x0016f55a
LAB_0016f581:
SUB RBX,qword ptr [RSP]
ADD R12,qword ptr [R14]
NEG R12
MOV RAX,R12
CQO
PUSH 0x60
POP RCX
IDIV RCX
SUB RAX,R15
MOV RDI,R14
MOV RSI,RAX
CALL 0x0016f5e4
ADD RBX,qword ptr [R14]
LAB_0016f5a7:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* 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> >
>::erase(__gnu_cxx::__normal_iterator<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>*,
std::vector<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>,
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> > > >,
__gnu_cxx::__normal_iterator<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>*,
std::vector<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>,
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> > > >) */
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>
* __thiscall
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>>>
::erase(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,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>
*param_2,
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>
*param_3)
{
long lVar1;
long lVar2;
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_00;
long lVar3;
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>
*ppVar4;
if (param_2 != param_3) {
lVar2 = ((long)param_3 - (long)param_2) / 0x60;
lVar1 = *(long *)this;
ppVar4 = param_2 + lVar2 * 0x60;
lVar3 = -(long)ppVar4;
this_00 = param_2;
for (; ppVar4 != *(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 + 8); ppVar4 = ppVar4 + 0x60) {
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>
::~pair(this_00);
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>
::pair(this_00,ppVar4);
this_00 = this_00 + 0x60;
lVar3 = lVar3 + -0x60;
}
std::
vector<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>,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>>>
::resize((vector<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>,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,-(lVar3 + *(long *)this) / 0x60 - lVar2);
param_2 = param_2 + (*(long *)this - lVar1);
}
return param_2;
}
|
|
65,002 |
my_hash_sort_utf8mb4
|
eloqsql/strings/ctype-utf8.c
|
static void
my_hash_sort_utf8mb4(CHARSET_INFO *cs, const uchar *s, size_t slen,
ulong *nr1, ulong *nr2)
{
/*
Remove end space. We do this to be able to compare
'A ' and 'A' as identical
*/
const uchar *e= skip_trailing_space(s, slen);
my_hash_sort_utf8mb4_nopad(cs, s, e - s, nr1, nr2);
}
|
O3
|
c
|
my_hash_sort_utf8mb4:
pushq %rbp
movq %rsp, %rbp
leaq (%rsi,%rdx), %r10
cmpq $0x15, %rdx
jb 0x54313
movq %r10, %r9
andq $-0x4, %r9
cmpq %rsi, %r9
jbe 0x54313
leaq 0x3(%rsi), %rdx
andq $-0x4, %rdx
movq %r10, %rax
movb -0x1(%r10), %r11b
cmpq %r9, %r10
jbe 0x54338
leaq -0x1(%rax), %r10
cmpb $0x20, %r11b
je 0x542fb
jmp 0x54316
movq %r10, %rax
movq %rax, %r9
subq %rsi, %r9
movq %r9, %rdx
cmpq %rsi, %rax
jbe 0x54332
cmpb $0x20, -0x1(%rax)
leaq -0x1(%rax), %rax
leaq -0x1(%rdx), %r9
je 0x5431c
popq %rbp
jmp 0x545bc
cmpb $0x20, %r11b
setne %r10b
cmpq %r9, %rdx
setae %r9b
orb %r10b, %r9b
jne 0x54316
movq %rax, %r9
movq %r9, %rax
cmpq %rdx, %r9
jbe 0x54316
leaq -0x4(%rax), %r9
cmpl $0x20202020, -0x4(%rax) # imm = 0x20202020
je 0x5434f
jmp 0x54316
|
my_hash_sort_utf8mb4:
push rbp
mov rbp, rsp
lea r10, [rsi+rdx]
cmp rdx, 15h
jb short loc_54313
mov r9, r10
and r9, 0FFFFFFFFFFFFFFFCh
cmp r9, rsi
jbe short loc_54313
lea rdx, [rsi+3]
and rdx, 0FFFFFFFFFFFFFFFCh
loc_542FB:
mov rax, r10
mov r11b, [r10-1]
cmp r10, r9
jbe short loc_54338
lea r10, [rax-1]
cmp r11b, 20h ; ' '
jz short loc_542FB
jmp short loc_54316
loc_54313:
mov rax, r10
loc_54316:
mov r9, rax
sub r9, rsi
loc_5431C:
mov rdx, r9
cmp rax, rsi
jbe short loc_54332
cmp byte ptr [rax-1], 20h ; ' '
lea rax, [rax-1]
lea r9, [rdx-1]
jz short loc_5431C
loc_54332:
pop rbp
jmp my_hash_sort_utf8mb4_nopad
loc_54338:
cmp r11b, 20h ; ' '
setnz r10b
cmp rdx, r9
setnb r9b
or r9b, r10b
jnz short loc_54316
mov r9, rax
loc_5434F:
mov rax, r9
cmp r9, rdx
jbe short loc_54316
lea r9, [rax-4]
cmp dword ptr [rax-4], 20202020h
jz short loc_5434F
jmp short loc_54316
|
long long my_hash_sort_utf8mb4(long long a1, unsigned long long a2, unsigned long long a3, long long a4, long long a5)
{
unsigned long long v5; // r10
unsigned long long v6; // r9
unsigned long long v7; // rdx
unsigned long long v8; // rax
char v9; // r11
unsigned long long v10; // r9
unsigned long long v11; // rdx
bool v12; // zf
unsigned long long v14; // r9
v5 = a2 + a3;
if ( a3 < 0x15 || (v6 = v5 & 0xFFFFFFFFFFFFFFFCLL, (v5 & 0xFFFFFFFFFFFFFFFCLL) <= a2) )
{
v8 = a2 + a3;
}
else
{
v7 = (a2 + 3) & 0xFFFFFFFFFFFFFFFCLL;
while ( 1 )
{
v8 = v5;
v9 = *(_BYTE *)(v5 - 1);
if ( v5 <= v6 )
break;
--v5;
if ( v9 != 32 )
goto LABEL_8;
}
if ( v9 == 32 && v7 < v6 )
{
v14 = v5;
do
{
v8 = v14;
if ( v14 <= v7 )
break;
v14 -= 4LL;
}
while ( *(_DWORD *)(v8 - 4) == 538976288 );
}
}
LABEL_8:
v10 = v8 - a2;
do
{
v11 = v10;
if ( v8 <= a2 )
break;
v12 = *(_BYTE *)--v8 == 32;
--v10;
}
while ( v12 );
return my_hash_sort_utf8mb4_nopad(a1, a2, v11, a4, a5, v10);
}
|
my_hash_sort_utf8mb4:
PUSH RBP
MOV RBP,RSP
LEA R10,[RSI + RDX*0x1]
CMP RDX,0x15
JC 0x00154313
MOV R9,R10
AND R9,-0x4
CMP R9,RSI
JBE 0x00154313
LEA RDX,[RSI + 0x3]
AND RDX,-0x4
LAB_001542fb:
MOV RAX,R10
MOV R11B,byte ptr [R10 + -0x1]
CMP R10,R9
JBE 0x00154338
LEA R10,[RAX + -0x1]
CMP R11B,0x20
JZ 0x001542fb
JMP 0x00154316
LAB_00154313:
MOV RAX,R10
LAB_00154316:
MOV R9,RAX
SUB R9,RSI
LAB_0015431c:
MOV RDX,R9
CMP RAX,RSI
JBE 0x00154332
CMP byte ptr [RAX + -0x1],0x20
LEA RAX,[RAX + -0x1]
LEA R9,[RDX + -0x1]
JZ 0x0015431c
LAB_00154332:
POP RBP
JMP 0x001545bc
LAB_00154338:
CMP R11B,0x20
SETNZ R10B
CMP RDX,R9
SETNC R9B
OR R9B,R10B
JNZ 0x00154316
MOV R9,RAX
LAB_0015434f:
MOV RAX,R9
CMP R9,RDX
JBE 0x00154316
LEA R9,[RAX + -0x4]
CMP dword ptr [RAX + -0x4],0x20202020
JZ 0x0015434f
JMP 0x00154316
|
void my_hash_sort_utf8mb4(int8 param_1,ulong param_2,ulong param_3)
{
char *pcVar1;
ulong uVar2;
ulong uVar3;
ulong uVar4;
ulong uVar5;
uVar3 = param_2 + param_3;
if ((0x14 < param_3) && (uVar5 = uVar3 & 0xfffffffffffffffc, param_2 < uVar5)) {
uVar4 = param_2 + 3 & 0xfffffffffffffffc;
uVar2 = uVar3;
do {
uVar3 = uVar2;
if (uVar3 <= uVar5) {
uVar2 = uVar3;
if (uVar4 < uVar5 && *(char *)(uVar3 - 1) == ' ') goto LAB_0015434f;
break;
}
uVar2 = uVar3 - 1;
} while (*(char *)(uVar3 - 1) == ' ');
}
goto LAB_0015431c;
while (uVar2 = uVar3 - 4, *(int *)(uVar3 - 4) == 0x20202020) {
LAB_0015434f:
uVar3 = uVar2;
if (uVar3 <= uVar4) break;
}
LAB_0015431c:
do {
if (uVar3 <= param_2) break;
pcVar1 = (char *)(uVar3 - 1);
uVar3 = uVar3 - 1;
} while (*pcVar1 == ' ');
my_hash_sort_utf8mb4_nopad();
return;
}
|
|
65,003 |
ps_fetch_from_1_to_8_bytes
|
eloqsql/libmariadb/libmariadb/ma_stmt_codec.c
|
void ps_fetch_from_1_to_8_bytes(MYSQL_BIND *r_param, const MYSQL_FIELD * const field,
unsigned char **row, unsigned int byte_count)
{
my_bool is_unsigned= test(field->flags & UNSIGNED_FLAG);
r_param->buffer_length= byte_count;
switch (byte_count) {
case 1:
*(uchar *)r_param->buffer= **row;
*r_param->error= is_unsigned != r_param->is_unsigned && *(uchar *)r_param->buffer > INT_MAX8;
break;
case 2:
shortstore(r_param->buffer, ((ushort) sint2korr(*row)));
*r_param->error= is_unsigned != r_param->is_unsigned && *(ushort *)r_param->buffer > INT_MAX16;
break;
case 4:
{
longstore(r_param->buffer, ((uint32)sint4korr(*row)));
*r_param->error= is_unsigned != r_param->is_unsigned && *(uint32 *)r_param->buffer > INT_MAX32;
}
break;
case 8:
{
ulonglong val= (ulonglong)sint8korr(*row);
longlongstore(r_param->buffer, val);
*r_param->error= is_unsigned != r_param->is_unsigned && val > LONGLONG_MAX ;
}
break;
default:
r_param->buffer_length= 0;
break;
}
(*row)+= byte_count;
}
|
O0
|
c
|
ps_fetch_from_1_to_8_bytes:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movl 0x64(%rax), %eax
andl $0x20, %eax
shrl $0x5, %eax
movb %al, -0x1d(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movq %rcx, 0x40(%rax)
movl -0x1c(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x38(%rbp)
subl $0x7, %eax
ja 0x51d61
movq -0x38(%rbp), %rax
leaq 0x7f561(%rip), %rcx # 0xd0f90
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x18(%rbp), %rax
movq (%rax), %rax
movb (%rax), %cl
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movb %cl, (%rax)
movsbl -0x1d(%rbp), %ecx
movq -0x8(%rbp), %rax
movsbl 0x65(%rax), %edx
xorl %eax, %eax
cmpl %edx, %ecx
movb %al, -0x39(%rbp)
je 0x51a74
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movzbl (%rax), %eax
cmpl $0x7f, %eax
setg %al
movb %al, -0x39(%rbp)
movb -0x39(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movb %cl, (%rax)
jmp 0x51d6d
jmp 0x51a8f
movq -0x18(%rbp), %rax
movq (%rax), %rax
movzbl (%rax), %eax
cwtl
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x1(%rcx), %ecx
movswl %cx, %ecx
shll $0x8, %ecx
addl %ecx, %eax
movzwl %ax, %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movb %cl, (%rax)
movl -0x24(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movb %cl, 0x1(%rax)
movsbl -0x1d(%rbp), %ecx
movq -0x8(%rbp), %rax
movsbl 0x65(%rax), %edx
xorl %eax, %eax
cmpl %edx, %ecx
movb %al, -0x3a(%rbp)
je 0x51b00
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movzwl (%rax), %eax
cmpl $0x7fff, %eax # imm = 0x7FFF
setg %al
movb %al, -0x3a(%rbp)
movb -0x3a(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movb %cl, (%rax)
jmp 0x51d6d
jmp 0x51b1b
movq -0x18(%rbp), %rax
movq (%rax), %rax
movzbl (%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x3(%rcx), %ecx
movswl %cx, %ecx
shll $0x18, %ecx
addl %ecx, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movb %cl, (%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movzbl (%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x3(%rcx), %ecx
movswl %cx, %ecx
shll $0x18, %ecx
addl %ecx, %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movb %cl, 0x1(%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movzbl (%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x3(%rcx), %ecx
movswl %cx, %ecx
shll $0x18, %ecx
addl %ecx, %eax
shrl $0x10, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movb %cl, 0x2(%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movzbl (%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x3(%rcx), %ecx
movswl %cx, %ecx
shll $0x18, %ecx
addl %ecx, %eax
shrl $0x18, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movb %cl, 0x3(%rax)
movsbl -0x1d(%rbp), %ecx
movq -0x8(%rbp), %rax
movsbl 0x65(%rax), %edx
xorl %eax, %eax
cmpl %edx, %ecx
movb %al, -0x3b(%rbp)
je 0x51c76
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movl (%rax), %eax
cmpq $0x7fffffff, %rax # imm = 0x7FFFFFFF
setg %al
movb %al, -0x3b(%rbp)
movb -0x3b(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movb %cl, (%rax)
jmp 0x51d6d
movq -0x18(%rbp), %rax
movq (%rax), %rax
movzbl (%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x3(%rcx), %ecx
shll $0x18, %ecx
addl %ecx, %eax
movl %eax, %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x4(%rcx), %ecx
movq -0x18(%rbp), %rdx
movq (%rdx), %rdx
movzbl 0x5(%rdx), %edx
shll $0x8, %edx
addl %edx, %ecx
movq -0x18(%rbp), %rdx
movq (%rdx), %rdx
movzbl 0x6(%rdx), %edx
shll $0x10, %edx
addl %edx, %ecx
movq -0x18(%rbp), %rdx
movq (%rdx), %rdx
movzbl 0x7(%rdx), %edx
shll $0x18, %edx
addl %edx, %ecx
movl %ecx, %ecx
shlq $0x20, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x30(%rbp), %rcx
movq %rcx, (%rax)
movsbl -0x1d(%rbp), %ecx
movq -0x8(%rbp), %rax
movsbl 0x65(%rax), %edx
xorl %eax, %eax
cmpl %edx, %ecx
movb %al, -0x3c(%rbp)
je 0x51d4b
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rax, -0x30(%rbp)
seta %al
movb %al, -0x3c(%rbp)
movb -0x3c(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movb %cl, (%rax)
jmp 0x51d6d
movq -0x8(%rbp), %rax
movq $0x0, 0x40(%rax)
movl -0x1c(%rbp), %edx
movq -0x18(%rbp), %rax
movq (%rax), %rcx
movl %edx, %edx
addq %rdx, %rcx
movq %rcx, (%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
ps_fetch_from_1_to_8_bytes:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
mov rax, [rbp+var_10]
mov eax, [rax+64h]
and eax, 20h
shr eax, 5
mov [rbp+var_1D], al
mov eax, [rbp+var_1C]
mov ecx, eax
mov rax, [rbp+var_8]
mov [rax+40h], rcx
mov eax, [rbp+var_1C]
dec eax; switch 8 cases
mov ecx, eax
mov [rbp+var_38], rcx
sub eax, 7
ja def_51A36; jumptable 0000000000051A36 default case, cases 3,5-7
mov rax, [rbp+var_38]
lea rcx, jpt_51A36
movsxd rax, ds:(jpt_51A36 - 0D0F90h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_51A38:
mov rax, [rbp+var_18]; jumptable 0000000000051A36 case 1
mov rax, [rax]
mov cl, [rax]
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov [rax], cl
movsx ecx, [rbp+var_1D]
mov rax, [rbp+var_8]
movsx edx, byte ptr [rax+65h]
xor eax, eax
cmp ecx, edx
mov [rbp+var_39], al
jz short loc_51A74
mov rax, [rbp+var_8]
mov rax, [rax+10h]
movzx eax, byte ptr [rax]
cmp eax, 7Fh
setnle al
mov [rbp+var_39], al
loc_51A74:
mov al, [rbp+var_39]
and al, 1
movzx eax, al
mov cl, al
mov rax, [rbp+var_8]
mov rax, [rax+18h]
mov [rax], cl
jmp loc_51D6D
loc_51A8D:
jmp short $+2; jumptable 0000000000051A36 case 2
loc_51A8F:
mov rax, [rbp+var_18]
mov rax, [rax]
movzx eax, byte ptr [rax]
cwde
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+1]
movsx ecx, cx
shl ecx, 8
add eax, ecx
movzx eax, ax
mov [rbp+var_24], eax
mov eax, [rbp+var_24]
mov cl, al
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov [rax], cl
mov eax, [rbp+var_24]
shr eax, 8
mov cl, al
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov [rax+1], cl
movsx ecx, [rbp+var_1D]
mov rax, [rbp+var_8]
movsx edx, byte ptr [rax+65h]
xor eax, eax
cmp ecx, edx
mov [rbp+var_3A], al
jz short loc_51B00
mov rax, [rbp+var_8]
mov rax, [rax+10h]
movzx eax, word ptr [rax]
cmp eax, 7FFFh
setnle al
mov [rbp+var_3A], al
loc_51B00:
mov al, [rbp+var_3A]
and al, 1
movzx eax, al
mov cl, al
mov rax, [rbp+var_8]
mov rax, [rax+18h]
mov [rax], cl
jmp loc_51D6D
loc_51B19:
jmp short $+2; jumptable 0000000000051A36 case 4
loc_51B1B:
mov rax, [rbp+var_18]
mov rax, [rax]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
add eax, ecx
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
add eax, ecx
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+3]
movsx ecx, cx
shl ecx, 18h
add eax, ecx
mov cl, al
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov [rax], cl
mov rax, [rbp+var_18]
mov rax, [rax]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
add eax, ecx
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
add eax, ecx
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+3]
movsx ecx, cx
shl ecx, 18h
add eax, ecx
shr eax, 8
mov cl, al
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov [rax+1], cl
mov rax, [rbp+var_18]
mov rax, [rax]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
add eax, ecx
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
add eax, ecx
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+3]
movsx ecx, cx
shl ecx, 18h
add eax, ecx
shr eax, 10h
mov cl, al
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov [rax+2], cl
mov rax, [rbp+var_18]
mov rax, [rax]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
add eax, ecx
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
add eax, ecx
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+3]
movsx ecx, cx
shl ecx, 18h
add eax, ecx
shr eax, 18h
mov cl, al
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov [rax+3], cl
movsx ecx, [rbp+var_1D]
mov rax, [rbp+var_8]
movsx edx, byte ptr [rax+65h]
xor eax, eax
cmp ecx, edx
mov [rbp+var_3B], al
jz short loc_51C76
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov eax, [rax]
cmp rax, 7FFFFFFFh
setnle al
mov [rbp+var_3B], al
loc_51C76:
mov al, [rbp+var_3B]
and al, 1
movzx eax, al
mov cl, al
mov rax, [rbp+var_8]
mov rax, [rax+18h]
mov [rax], cl
jmp loc_51D6D
loc_51C8F:
mov rax, [rbp+var_18]; jumptable 0000000000051A36 case 8
mov rax, [rax]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
add eax, ecx
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
add eax, ecx
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+3]
shl ecx, 18h
add eax, ecx
mov eax, eax
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+4]
mov rdx, [rbp+var_18]
mov rdx, [rdx]
movzx edx, byte ptr [rdx+5]
shl edx, 8
add ecx, edx
mov rdx, [rbp+var_18]
mov rdx, [rdx]
movzx edx, byte ptr [rdx+6]
shl edx, 10h
add ecx, edx
mov rdx, [rbp+var_18]
mov rdx, [rdx]
movzx edx, byte ptr [rdx+7]
shl edx, 18h
add ecx, edx
mov ecx, ecx
shl rcx, 20h
add rax, rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov rcx, [rbp+var_30]
mov [rax], rcx
movsx ecx, [rbp+var_1D]
mov rax, [rbp+var_8]
movsx edx, byte ptr [rax+65h]
xor eax, eax
cmp ecx, edx
mov [rbp+var_3C], al
jz short loc_51D4B
mov rax, 7FFFFFFFFFFFFFFFh
cmp [rbp+var_30], rax
setnbe al
mov [rbp+var_3C], al
loc_51D4B:
mov al, [rbp+var_3C]
and al, 1
movzx eax, al
mov cl, al
mov rax, [rbp+var_8]
mov rax, [rax+18h]
mov [rax], cl
jmp short loc_51D6D
def_51A36:
mov rax, [rbp+var_8]; jumptable 0000000000051A36 default case, cases 3,5-7
mov qword ptr [rax+40h], 0
loc_51D6D:
mov edx, [rbp+var_1C]
mov rax, [rbp+var_18]
mov rcx, [rax]
mov edx, edx
add rcx, rdx
mov [rax], rcx
pop rbp
retn
|
_BYTE ** ps_fetch_from_1_to_8_bytes(long long a1, long long a2, _BYTE **a3, unsigned int a4)
{
_BYTE **result; // rax
bool v5; // [rsp+0h] [rbp-3Ch]
bool v6; // [rsp+1h] [rbp-3Bh]
bool v7; // [rsp+2h] [rbp-3Ah]
bool v8; // [rsp+3h] [rbp-39h]
unsigned long long v9; // [rsp+Ch] [rbp-30h]
char v10; // [rsp+1Fh] [rbp-1Dh]
v10 = (*(_DWORD *)(a2 + 100) & 0x20u) >> 5;
*(_QWORD *)(a1 + 64) = a4;
switch ( a4 )
{
case 1u:
**(_BYTE **)(a1 + 16) = **a3;
v8 = 0;
if ( v10 != *(char *)(a1 + 101) )
v8 = **(unsigned __int8 **)(a1 + 16) > 0x7Fu;
**(_BYTE **)(a1 + 24) = v8;
break;
case 2u:
**(_WORD **)(a1 + 16) = ((unsigned __int8)(*a3)[1] << 8) + (unsigned __int8)**a3;
v7 = 0;
if ( v10 != *(char *)(a1 + 101) )
v7 = **(unsigned __int16 **)(a1 + 16) > 0x7FFFu;
**(_BYTE **)(a1 + 24) = v7;
break;
case 4u:
**(_BYTE **)(a1 + 16) = **a3;
*(_BYTE *)(*(_QWORD *)(a1 + 16) + 1LL) = (unsigned __int16)(((unsigned __int8)(*a3)[1] << 8)
+ (unsigned __int8)**a3) >> 8;
*(_BYTE *)(*(_QWORD *)(a1 + 16) + 2LL) = (((unsigned __int8)(*a3)[3] << 24)
+ ((unsigned __int8)(*a3)[2] << 16)
+ ((unsigned __int8)(*a3)[1] << 8)
+ (unsigned int)(unsigned __int8)**a3) >> 16;
*(_BYTE *)(*(_QWORD *)(a1 + 16) + 3LL) = (((unsigned __int8)(*a3)[3] << 24)
+ ((unsigned __int8)(*a3)[2] << 16)
+ ((unsigned __int8)(*a3)[1] << 8)
+ (unsigned int)(unsigned __int8)**a3) >> 24;
v6 = 0;
if ( v10 != *(char *)(a1 + 101) )
v6 = **(unsigned int **)(a1 + 16) > 0x7FFFFFFFuLL;
**(_BYTE **)(a1 + 24) = v6;
break;
case 8u:
v9 = ((unsigned long long)(((unsigned __int8)(*a3)[7] << 24)
+ ((unsigned __int8)(*a3)[6] << 16)
+ ((unsigned __int8)(*a3)[5] << 8)
+ (unsigned int)(unsigned __int8)(*a3)[4]) << 32)
+ ((unsigned __int8)(*a3)[3] << 24)
+ ((unsigned __int8)(*a3)[2] << 16)
+ ((unsigned __int8)(*a3)[1] << 8)
+ (unsigned int)(unsigned __int8)**a3;
**(_QWORD **)(a1 + 16) = v9;
v5 = 0;
if ( v10 != *(char *)(a1 + 101) )
v5 = v9 > 0x7FFFFFFFFFFFFFFFLL;
**(_BYTE **)(a1 + 24) = v5;
break;
default:
*(_QWORD *)(a1 + 64) = 0LL;
break;
}
result = a3;
*a3 += a4;
return result;
}
|
ps_fetch_from_1_to_8_bytes:
PUSH RBP
MOV RBP,RSP
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 RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x64]
AND EAX,0x20
SHR EAX,0x5
MOV byte ptr [RBP + -0x1d],AL
MOV EAX,dword ptr [RBP + -0x1c]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x40],RCX
MOV EAX,dword ptr [RBP + -0x1c]
DEC EAX
MOV ECX,EAX
MOV qword ptr [RBP + -0x38],RCX
SUB EAX,0x7
JA 0x00151d61
MOV RAX,qword ptr [RBP + -0x38]
LEA RCX,[0x1d0f90]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV byte ptr [RAX],CL
MOVSX ECX,byte ptr [RBP + -0x1d]
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EDX,byte ptr [RAX + 0x65]
XOR EAX,EAX
CMP ECX,EDX
MOV byte ptr [RBP + -0x39],AL
JZ 0x00151a74
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x7f
SETG AL
MOV byte ptr [RBP + -0x39],AL
LAB_00151a74:
MOV AL,byte ptr [RBP + -0x39]
AND AL,0x1
MOVZX EAX,AL
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x18]
MOV byte ptr [RAX],CL
JMP 0x00151d6d
caseD_2:
JMP 0x00151a8f
LAB_00151a8f:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOVZX EAX,byte ptr [RAX]
CWDE
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x1]
MOVSX ECX,CX
SHL ECX,0x8
ADD EAX,ECX
MOVZX EAX,AX
MOV dword ptr [RBP + -0x24],EAX
MOV EAX,dword ptr [RBP + -0x24]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RBP + -0x24]
SHR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV byte ptr [RAX + 0x1],CL
MOVSX ECX,byte ptr [RBP + -0x1d]
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EDX,byte ptr [RAX + 0x65]
XOR EAX,EAX
CMP ECX,EDX
MOV byte ptr [RBP + -0x3a],AL
JZ 0x00151b00
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOVZX EAX,word ptr [RAX]
CMP EAX,0x7fff
SETG AL
MOV byte ptr [RBP + -0x3a],AL
LAB_00151b00:
MOV AL,byte ptr [RBP + -0x3a]
AND AL,0x1
MOVZX EAX,AL
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x18]
MOV byte ptr [RAX],CL
JMP 0x00151d6d
caseD_4:
JMP 0x00151b1b
LAB_00151b1b:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x3]
MOVSX ECX,CX
SHL ECX,0x18
ADD EAX,ECX
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x3]
MOVSX ECX,CX
SHL ECX,0x18
ADD EAX,ECX
SHR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x3]
MOVSX ECX,CX
SHL ECX,0x18
ADD EAX,ECX
SHR EAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x3]
MOVSX ECX,CX
SHL ECX,0x18
ADD EAX,ECX
SHR EAX,0x18
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV byte ptr [RAX + 0x3],CL
MOVSX ECX,byte ptr [RBP + -0x1d]
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EDX,byte ptr [RAX + 0x65]
XOR EAX,EAX
CMP ECX,EDX
MOV byte ptr [RBP + -0x3b],AL
JZ 0x00151c76
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV EAX,dword ptr [RAX]
CMP RAX,0x7fffffff
SETG AL
MOV byte ptr [RBP + -0x3b],AL
LAB_00151c76:
MOV AL,byte ptr [RBP + -0x3b]
AND AL,0x1
MOVZX EAX,AL
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x18]
MOV byte ptr [RAX],CL
JMP 0x00151d6d
caseD_8:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x3]
SHL ECX,0x18
ADD EAX,ECX
MOV EAX,EAX
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x4]
MOV RDX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RDX]
MOVZX EDX,byte ptr [RDX + 0x5]
SHL EDX,0x8
ADD ECX,EDX
MOV RDX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RDX]
MOVZX EDX,byte ptr [RDX + 0x6]
SHL EDX,0x10
ADD ECX,EDX
MOV RDX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RDX]
MOVZX EDX,byte ptr [RDX + 0x7]
SHL EDX,0x18
ADD ECX,EDX
MOV ECX,ECX
SHL RCX,0x20
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX],RCX
MOVSX ECX,byte ptr [RBP + -0x1d]
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EDX,byte ptr [RAX + 0x65]
XOR EAX,EAX
CMP ECX,EDX
MOV byte ptr [RBP + -0x3c],AL
JZ 0x00151d4b
MOV RAX,0x7fffffffffffffff
CMP qword ptr [RBP + -0x30],RAX
SETA AL
MOV byte ptr [RBP + -0x3c],AL
LAB_00151d4b:
MOV AL,byte ptr [RBP + -0x3c]
AND AL,0x1
MOVZX EAX,AL
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x18]
MOV byte ptr [RAX],CL
JMP 0x00151d6d
caseD_3:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x40],0x0
LAB_00151d6d:
MOV EDX,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RAX]
MOV EDX,EDX
ADD RCX,RDX
MOV qword ptr [RAX],RCX
POP RBP
RET
|
void ps_fetch_from_1_to_8_bytes(long param_1,long param_2,long *param_3,uint param_4)
{
char cVar1;
uint uVar2;
ulong uVar3;
bool local_44;
bool local_43;
bool local_42;
bool local_41;
cVar1 = (char)((*(uint *)(param_2 + 100) & 0x20) >> 5);
*(ulong *)(param_1 + 0x40) = (ulong)param_4;
switch(param_4) {
case 1:
**(int1 **)(param_1 + 0x10) = *(int1 *)*param_3;
local_41 = false;
if (cVar1 != *(char *)(param_1 + 0x65)) {
local_41 = 0x7f < **(byte **)(param_1 + 0x10);
}
*(bool *)*(int8 *)(param_1 + 0x18) = local_41;
break;
case 2:
uVar2 = (int)(short)(ushort)*(byte *)*param_3 + (short)(ushort)*(byte *)(*param_3 + 1) * 0x100 &
0xffff;
**(int1 **)(param_1 + 0x10) = (char)uVar2;
*(char *)(*(long *)(param_1 + 0x10) + 1) = (char)(uVar2 >> 8);
local_42 = false;
if (cVar1 != *(char *)(param_1 + 0x65)) {
local_42 = 0x7fff < **(ushort **)(param_1 + 0x10);
}
*(bool *)*(int8 *)(param_1 + 0x18) = local_42;
break;
default:
*(int8 *)(param_1 + 0x40) = 0;
break;
case 4:
**(int1 **)(param_1 + 0x10) = *(int1 *)*param_3;
*(char *)(*(long *)(param_1 + 0x10) + 1) =
(char)((uint)*(byte *)*param_3 + (uint)*(byte *)(*param_3 + 1) * 0x100 >> 8);
*(char *)(*(long *)(param_1 + 0x10) + 2) =
(char)((uint)*(byte *)*param_3 + (uint)*(byte *)(*param_3 + 1) * 0x100 +
(uint)*(byte *)(*param_3 + 2) * 0x10000 >> 0x10);
*(char *)(*(long *)(param_1 + 0x10) + 3) =
(char)((uint)*(byte *)*param_3 + (uint)*(byte *)(*param_3 + 1) * 0x100 +
(uint)*(byte *)(*param_3 + 2) * 0x10000 +
(short)(ushort)*(byte *)(*param_3 + 3) * 0x1000000 >> 0x18);
local_43 = false;
if (cVar1 != *(char *)(param_1 + 0x65)) {
local_43 = 0x7fffffff < **(uint **)(param_1 + 0x10);
}
*(bool *)*(int8 *)(param_1 + 0x18) = local_43;
break;
case 8:
uVar3 = CONCAT44((uint)*(byte *)(*param_3 + 4) + (uint)*(byte *)(*param_3 + 5) * 0x100 +
(uint)*(byte *)(*param_3 + 6) * 0x10000 +
(uint)*(byte *)(*param_3 + 7) * 0x1000000,
(uint)*(byte *)*param_3 + (uint)*(byte *)(*param_3 + 1) * 0x100 +
(uint)*(byte *)(*param_3 + 2) * 0x10000 +
(uint)*(byte *)(*param_3 + 3) * 0x1000000);
**(ulong **)(param_1 + 0x10) = uVar3;
local_44 = cVar1 != *(char *)(param_1 + 0x65) && 0x7fffffffffffffff < uVar3;
*(bool *)*(int8 *)(param_1 + 0x18) = local_44;
}
*param_3 = *param_3 + (ulong)param_4;
return;
}
|
|
65,004 |
ma_tls_version_options
|
eloqsql/libmariadb/libmariadb/secure/openssl.c
|
static long ma_tls_version_options(const char *version)
{
long protocol_options,
disable_all_protocols;
protocol_options= disable_all_protocols=
SSL_OP_NO_SSLv2 |
SSL_OP_NO_SSLv3 |
SSL_OP_NO_TLSv1 |
SSL_OP_NO_TLSv1_1 |
SSL_OP_NO_TLSv1_2
#ifdef TLS1_3_VERSION
| SSL_OP_NO_TLSv1_3
#endif
;
if (!version)
return 0;
if (strstr(version, "TLSv1.0"))
protocol_options&= ~SSL_OP_NO_TLSv1;
if (strstr(version, "TLSv1.1"))
protocol_options&= ~SSL_OP_NO_TLSv1_1;
if (strstr(version, "TLSv1.2"))
protocol_options&= ~SSL_OP_NO_TLSv1_2;
#ifdef TLS1_3_VERSION
if (strstr(version, "TLSv1.3"))
protocol_options&= ~SSL_OP_NO_TLSv1_3;
#endif
if (protocol_options != disable_all_protocols)
return protocol_options;
return 0;
}
|
O0
|
c
|
ma_tls_version_options:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq $0x3e000000, -0x20(%rbp) # imm = 0x3E000000
movq $0x3e000000, -0x18(%rbp) # imm = 0x3E000000
cmpq $0x0, -0x10(%rbp)
jne 0x5aa00
movq $0x0, -0x8(%rbp)
jmp 0x5aaac
movq -0x10(%rbp), %rdi
leaq 0x6f819(%rip), %rsi # 0xca224
callq 0x36450
cmpq $0x0, %rax
je 0x5aa24
movq -0x18(%rbp), %rax
andq $-0x4000001, %rax # imm = 0xFBFFFFFF
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x6f7fd(%rip), %rsi # 0xca22c
callq 0x36450
cmpq $0x0, %rax
je 0x5aa48
movq -0x18(%rbp), %rax
andq $-0x10000001, %rax # imm = 0xEFFFFFFF
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x6f7e1(%rip), %rsi # 0xca234
callq 0x36450
cmpq $0x0, %rax
je 0x5aa6c
movq -0x18(%rbp), %rax
andq $-0x8000001, %rax # imm = 0xF7FFFFFF
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x6f7c5(%rip), %rsi # 0xca23c
callq 0x36450
cmpq $0x0, %rax
je 0x5aa90
movq -0x18(%rbp), %rax
andq $-0x20000001, %rax # imm = 0xDFFFFFFF
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
je 0x5aaa4
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x5aaac
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
ma_tls_version_options:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_20], 3E000000h
mov [rbp+var_18], 3E000000h
cmp [rbp+var_10], 0
jnz short loc_5AA00
mov [rbp+var_8], 0
jmp loc_5AAAC
loc_5AA00:
mov rdi, [rbp+var_10]
lea rsi, aTlsv10; "TLSv1.0"
call _strstr
cmp rax, 0
jz short loc_5AA24
mov rax, [rbp+var_18]
and rax, 0FFFFFFFFFBFFFFFFh
mov [rbp+var_18], rax
loc_5AA24:
mov rdi, [rbp+var_10]
lea rsi, aTlsv11; "TLSv1.1"
call _strstr
cmp rax, 0
jz short loc_5AA48
mov rax, [rbp+var_18]
and rax, 0FFFFFFFFEFFFFFFFh
mov [rbp+var_18], rax
loc_5AA48:
mov rdi, [rbp+var_10]
lea rsi, aTlsv12; "TLSv1.2"
call _strstr
cmp rax, 0
jz short loc_5AA6C
mov rax, [rbp+var_18]
and rax, 0FFFFFFFFF7FFFFFFh
mov [rbp+var_18], rax
loc_5AA6C:
mov rdi, [rbp+var_10]
lea rsi, aTlsv13; "TLSv1.3"
call _strstr
cmp rax, 0
jz short loc_5AA90
mov rax, [rbp+var_18]
and rax, 0FFFFFFFFDFFFFFFFh
mov [rbp+var_18], rax
loc_5AA90:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jz short loc_5AAA4
mov rax, [rbp+var_18]
mov [rbp+var_8], rax
jmp short loc_5AAAC
loc_5AAA4:
mov [rbp+var_8], 0
loc_5AAAC:
mov rax, [rbp+var_8]
add rsp, 20h
pop rbp
retn
|
long long ma_tls_version_options(long long a1)
{
long long v2; // [rsp+8h] [rbp-18h]
v2 = 1040187392LL;
if ( !a1 )
return 0LL;
if ( strstr(a1, "TLSv1.0") )
v2 = 973078528LL;
if ( strstr(a1, "TLSv1.1") )
v2 &= ~0x10000000uLL;
if ( strstr(a1, "TLSv1.2") )
v2 &= ~0x8000000uLL;
if ( strstr(a1, "TLSv1.3") )
v2 &= ~0x20000000uLL;
if ( v2 == 1040187392 )
return 0LL;
else
return v2;
}
|
ma_tls_version_options:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x20],0x3e000000
MOV qword ptr [RBP + -0x18],0x3e000000
CMP qword ptr [RBP + -0x10],0x0
JNZ 0x0015aa00
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0015aaac
LAB_0015aa00:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1ca224]
CALL 0x00136450
CMP RAX,0x0
JZ 0x0015aa24
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,-0x4000001
MOV qword ptr [RBP + -0x18],RAX
LAB_0015aa24:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1ca22c]
CALL 0x00136450
CMP RAX,0x0
JZ 0x0015aa48
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,-0x10000001
MOV qword ptr [RBP + -0x18],RAX
LAB_0015aa48:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1ca234]
CALL 0x00136450
CMP RAX,0x0
JZ 0x0015aa6c
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,-0x8000001
MOV qword ptr [RBP + -0x18],RAX
LAB_0015aa6c:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1ca23c]
CALL 0x00136450
CMP RAX,0x0
JZ 0x0015aa90
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,-0x20000001
MOV qword ptr [RBP + -0x18],RAX
LAB_0015aa90:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x0015aaa4
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0015aaac
LAB_0015aaa4:
MOV qword ptr [RBP + -0x8],0x0
LAB_0015aaac:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x20
POP RBP
RET
|
ulong ma_tls_version_options(char *param_1)
{
char *pcVar1;
ulong local_20;
ulong local_10;
local_20 = 0x3e000000;
if (param_1 == (char *)0x0) {
local_10 = 0;
}
else {
pcVar1 = strstr(param_1,"TLSv1.0");
if (pcVar1 != (char *)0x0) {
local_20 = 0x3a000000;
}
pcVar1 = strstr(param_1,"TLSv1.1");
if (pcVar1 != (char *)0x0) {
local_20 = local_20 & 0xffffffffefffffff;
}
pcVar1 = strstr(param_1,"TLSv1.2");
if (pcVar1 != (char *)0x0) {
local_20 = local_20 & 0xfffffffff7ffffff;
}
pcVar1 = strstr(param_1,"TLSv1.3");
if (pcVar1 != (char *)0x0) {
local_20 = local_20 & 0xffffffffdfffffff;
}
if (local_20 == 0x3e000000) {
local_10 = 0;
}
else {
local_10 = local_20;
}
}
return local_10;
}
|
|
65,005 |
find_hashed_shape_prop
|
bluesky950520[P]quickjs/quickjs.c
|
static JSShape *find_hashed_shape_prop(JSRuntime *rt, JSShape *sh,
JSAtom atom, int prop_flags)
{
JSShape *sh1;
uint32_t h, h1, i, n;
h = sh->hash;
h = shape_hash(h, atom);
h = shape_hash(h, prop_flags);
h1 = get_shape_hash(h, rt->shape_hash_bits);
for(sh1 = rt->shape_hash[h1]; sh1 != NULL; sh1 = sh1->shape_hash_next) {
/* we test the hash first so that the rest is done only if the
shapes really match */
if (sh1->hash == h &&
sh1->proto == sh->proto &&
sh1->prop_count == ((n = sh->prop_count) + 1)) {
for(i = 0; i < n; i++) {
if (unlikely(sh1->prop[i].atom != sh->prop[i].atom) ||
unlikely(sh1->prop[i].flags != sh->prop[i].flags))
goto next;
}
if (unlikely(sh1->prop[n].atom != atom) ||
unlikely(sh1->prop[n].flags != prop_flags))
goto next;
return sh1;
}
next: ;
}
return NULL;
}
|
O0
|
c
|
find_hashed_shape_prop:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movl %edx, 0x1c(%rsp)
movl %ecx, 0x18(%rsp)
movq 0x20(%rsp), %rax
movl 0x1c(%rax), %eax
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %edi
movl 0x1c(%rsp), %esi
callq 0x5c640
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %edi
movl 0x18(%rsp), %esi
callq 0x5c640
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %edi
movq 0x28(%rsp), %rax
movl 0x184(%rax), %esi
callq 0x5c5d0
movl %eax, 0x8(%rsp)
movq 0x28(%rsp), %rax
movq 0x190(%rax), %rax
movl 0x8(%rsp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
je 0x5ce2f
movq 0x10(%rsp), %rax
movl 0x1c(%rax), %eax
cmpl 0xc(%rsp), %eax
jne 0x5ce18
movq 0x10(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x20(%rsp), %rcx
cmpq 0x38(%rcx), %rax
jne 0x5ce18
movq 0x10(%rsp), %rax
movl 0x28(%rax), %eax
movq 0x20(%rsp), %rcx
movl 0x28(%rcx), %ecx
movl %ecx, (%rsp)
addl $0x1, %ecx
cmpl %ecx, %eax
jne 0x5ce18
movl $0x0, 0x4(%rsp)
movl 0x4(%rsp), %eax
cmpl (%rsp), %eax
jae 0x5cdbf
movq 0x10(%rsp), %rax
movl 0x4(%rsp), %ecx
movl 0x44(%rax,%rcx,8), %eax
movq 0x20(%rsp), %rcx
movl 0x4(%rsp), %edx
cmpl 0x44(%rcx,%rdx,8), %eax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x5cdae
movq 0x10(%rsp), %rax
movl 0x4(%rsp), %ecx
movl 0x40(%rax,%rcx,8), %eax
shrl $0x1a, %eax
movq 0x20(%rsp), %rcx
movl 0x4(%rsp), %edx
movl 0x40(%rcx,%rdx,8), %ecx
shrl $0x1a, %ecx
cmpl %ecx, %eax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x5cdb0
jmp 0x5ce1a
jmp 0x5cdb2
movl 0x4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x4(%rsp)
jmp 0x5cd41
movq 0x10(%rsp), %rax
movl (%rsp), %ecx
movl 0x44(%rax,%rcx,8), %eax
cmpl 0x1c(%rsp), %eax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x5ce0a
movq 0x10(%rsp), %rax
movl (%rsp), %ecx
movl 0x40(%rax,%rcx,8), %eax
shrl $0x1a, %eax
cmpl 0x18(%rsp), %eax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x5ce0c
jmp 0x5ce1a
movq 0x10(%rsp), %rax
movq %rax, 0x30(%rsp)
jmp 0x5ce38
jmp 0x5ce1a
jmp 0x5ce1c
movq 0x10(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x10(%rsp)
jmp 0x5cce5
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
|
find_hashed_shape_prop:
sub rsp, 38h
mov [rsp+38h+var_10], rdi
mov [rsp+38h+var_18], rsi
mov [rsp+38h+var_1C], edx
mov [rsp+38h+var_20], ecx
mov rax, [rsp+38h+var_18]
mov eax, [rax+1Ch]
mov [rsp+38h+var_2C], eax
mov edi, [rsp+38h+var_2C]
mov esi, [rsp+38h+var_1C]
call shape_hash
mov [rsp+38h+var_2C], eax
mov edi, [rsp+38h+var_2C]
mov esi, [rsp+38h+var_20]
call shape_hash
mov [rsp+38h+var_2C], eax
mov edi, [rsp+38h+var_2C]
mov rax, [rsp+38h+var_10]
mov esi, [rax+184h]
call get_shape_hash
mov [rsp+38h+var_30], eax
mov rax, [rsp+38h+var_10]
mov rax, [rax+190h]
mov ecx, [rsp+38h+var_30]
mov rax, [rax+rcx*8]
mov [rsp+38h+var_28], rax
loc_5CCE5:
cmp [rsp+38h+var_28], 0
jz loc_5CE2F
mov rax, [rsp+38h+var_28]
mov eax, [rax+1Ch]
cmp eax, [rsp+38h+var_2C]
jnz loc_5CE18
mov rax, [rsp+38h+var_28]
mov rax, [rax+38h]
mov rcx, [rsp+38h+var_18]
cmp rax, [rcx+38h]
jnz loc_5CE18
mov rax, [rsp+38h+var_28]
mov eax, [rax+28h]
mov rcx, [rsp+38h+var_18]
mov ecx, [rcx+28h]
mov [rsp+38h+var_38], ecx
add ecx, 1
cmp eax, ecx
jnz loc_5CE18
mov [rsp+38h+var_34], 0
loc_5CD41:
mov eax, [rsp+38h+var_34]
cmp eax, [rsp+38h+var_38]
jnb short loc_5CDBF
mov rax, [rsp+38h+var_28]
mov ecx, [rsp+38h+var_34]
mov eax, [rax+rcx*8+44h]
mov rcx, [rsp+38h+var_18]
mov edx, [rsp+38h+var_34]
cmp eax, [rcx+rdx*8+44h]
setnz al
xor al, 0FFh
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jnz short loc_5CDAE
mov rax, [rsp+38h+var_28]
mov ecx, [rsp+38h+var_34]
mov eax, [rax+rcx*8+40h]
shr eax, 1Ah
mov rcx, [rsp+38h+var_18]
mov edx, [rsp+38h+var_34]
mov ecx, [rcx+rdx*8+40h]
shr ecx, 1Ah
cmp eax, ecx
setnz al
xor al, 0FFh
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_5CDB0
loc_5CDAE:
jmp short loc_5CE1A
loc_5CDB0:
jmp short $+2
loc_5CDB2:
mov eax, [rsp+38h+var_34]
add eax, 1
mov [rsp+38h+var_34], eax
jmp short loc_5CD41
loc_5CDBF:
mov rax, [rsp+38h+var_28]
mov ecx, [rsp+38h+var_38]
mov eax, [rax+rcx*8+44h]
cmp eax, [rsp+38h+var_1C]
setnz al
xor al, 0FFh
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jnz short loc_5CE0A
mov rax, [rsp+38h+var_28]
mov ecx, [rsp+38h+var_38]
mov eax, [rax+rcx*8+40h]
shr eax, 1Ah
cmp eax, [rsp+38h+var_20]
setnz al
xor al, 0FFh
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_5CE0C
loc_5CE0A:
jmp short loc_5CE1A
loc_5CE0C:
mov rax, [rsp+38h+var_28]
mov [rsp+38h+var_8], rax
jmp short loc_5CE38
loc_5CE18:
jmp short $+2
loc_5CE1A:
jmp short $+2
loc_5CE1C:
mov rax, [rsp+38h+var_28]
mov rax, [rax+30h]
mov [rsp+38h+var_28], rax
jmp loc_5CCE5
loc_5CE2F:
mov [rsp+38h+var_8], 0
loc_5CE38:
mov rax, [rsp+38h+var_8]
add rsp, 38h
retn
|
long long find_hashed_shape_prop(long long a1, long long a2, int a3, int a4)
{
int v4; // eax
unsigned int v6; // [rsp+0h] [rbp-38h]
unsigned int j; // [rsp+4h] [rbp-34h]
unsigned int v8; // [rsp+Ch] [rbp-2Ch]
long long i; // [rsp+10h] [rbp-28h]
v4 = shape_hash(*(_DWORD *)(a2 + 28), a3);
v8 = shape_hash(v4, a4);
for ( i = *(_QWORD *)(*(_QWORD *)(a1 + 400) + 8LL * (unsigned int)get_shape_hash(v8, *(_DWORD *)(a1 + 388)));
i;
i = *(_QWORD *)(i + 48) )
{
if ( *(_DWORD *)(i + 28) == v8 && *(_QWORD *)(i + 56) == *(_QWORD *)(a2 + 56) )
{
v6 = *(_DWORD *)(a2 + 40);
if ( *(_DWORD *)(i + 40) == v6 + 1 )
{
for ( j = 0; j < v6; ++j )
{
if ( *(_DWORD *)(i + 8LL * j + 68) != *(_DWORD *)(a2 + 8LL * j + 68)
|| *(_DWORD *)(i + 8LL * j + 64) >> 26 != *(_DWORD *)(a2 + 8LL * j + 64) >> 26 )
{
goto LABEL_16;
}
}
if ( *(_DWORD *)(i + 8LL * v6 + 68) == a3 && *(_DWORD *)(i + 8LL * v6 + 64) >> 26 == a4 )
return i;
}
}
LABEL_16:
;
}
return 0LL;
}
|
find_hashed_shape_prop:
SUB RSP,0x38
MOV qword ptr [RSP + 0x28],RDI
MOV qword ptr [RSP + 0x20],RSI
MOV dword ptr [RSP + 0x1c],EDX
MOV dword ptr [RSP + 0x18],ECX
MOV RAX,qword ptr [RSP + 0x20]
MOV EAX,dword ptr [RAX + 0x1c]
MOV dword ptr [RSP + 0xc],EAX
MOV EDI,dword ptr [RSP + 0xc]
MOV ESI,dword ptr [RSP + 0x1c]
CALL 0x0015c640
MOV dword ptr [RSP + 0xc],EAX
MOV EDI,dword ptr [RSP + 0xc]
MOV ESI,dword ptr [RSP + 0x18]
CALL 0x0015c640
MOV dword ptr [RSP + 0xc],EAX
MOV EDI,dword ptr [RSP + 0xc]
MOV RAX,qword ptr [RSP + 0x28]
MOV ESI,dword ptr [RAX + 0x184]
CALL 0x0015c5d0
MOV dword ptr [RSP + 0x8],EAX
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX + 0x190]
MOV ECX,dword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RSP + 0x10],RAX
LAB_0015cce5:
CMP qword ptr [RSP + 0x10],0x0
JZ 0x0015ce2f
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0x1c]
CMP EAX,dword ptr [RSP + 0xc]
JNZ 0x0015ce18
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RSP + 0x20]
CMP RAX,qword ptr [RCX + 0x38]
JNZ 0x0015ce18
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0x28]
MOV RCX,qword ptr [RSP + 0x20]
MOV ECX,dword ptr [RCX + 0x28]
MOV dword ptr [RSP],ECX
ADD ECX,0x1
CMP EAX,ECX
JNZ 0x0015ce18
MOV dword ptr [RSP + 0x4],0x0
LAB_0015cd41:
MOV EAX,dword ptr [RSP + 0x4]
CMP EAX,dword ptr [RSP]
JNC 0x0015cdbf
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RSP + 0x4]
MOV EAX,dword ptr [RAX + RCX*0x8 + 0x44]
MOV RCX,qword ptr [RSP + 0x20]
MOV EDX,dword ptr [RSP + 0x4]
CMP EAX,dword ptr [RCX + RDX*0x8 + 0x44]
SETNZ AL
XOR AL,0xff
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JNZ 0x0015cdae
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RSP + 0x4]
MOV EAX,dword ptr [RAX + RCX*0x8 + 0x40]
SHR EAX,0x1a
MOV RCX,qword ptr [RSP + 0x20]
MOV EDX,dword ptr [RSP + 0x4]
MOV ECX,dword ptr [RCX + RDX*0x8 + 0x40]
SHR ECX,0x1a
CMP EAX,ECX
SETNZ AL
XOR AL,0xff
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0015cdb0
LAB_0015cdae:
JMP 0x0015ce1a
LAB_0015cdb0:
JMP 0x0015cdb2
LAB_0015cdb2:
MOV EAX,dword ptr [RSP + 0x4]
ADD EAX,0x1
MOV dword ptr [RSP + 0x4],EAX
JMP 0x0015cd41
LAB_0015cdbf:
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RSP]
MOV EAX,dword ptr [RAX + RCX*0x8 + 0x44]
CMP EAX,dword ptr [RSP + 0x1c]
SETNZ AL
XOR AL,0xff
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JNZ 0x0015ce0a
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RSP]
MOV EAX,dword ptr [RAX + RCX*0x8 + 0x40]
SHR EAX,0x1a
CMP EAX,dword ptr [RSP + 0x18]
SETNZ AL
XOR AL,0xff
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0015ce0c
LAB_0015ce0a:
JMP 0x0015ce1a
LAB_0015ce0c:
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x30],RAX
JMP 0x0015ce38
LAB_0015ce18:
JMP 0x0015ce1a
LAB_0015ce1a:
JMP 0x0015ce1c
LAB_0015ce1c:
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RSP + 0x10],RAX
JMP 0x0015cce5
LAB_0015ce2f:
MOV qword ptr [RSP + 0x30],0x0
LAB_0015ce38:
MOV RAX,qword ptr [RSP + 0x30]
ADD RSP,0x38
RET
|
long find_hashed_shape_prop(long param_1,long param_2,int param_3,uint param_4)
{
int4 uVar1;
int iVar2;
uint uVar3;
uint local_34;
long local_28;
uVar1 = shape_hash(*(int4 *)(param_2 + 0x1c),param_3);
iVar2 = shape_hash(uVar1,param_4);
uVar3 = get_shape_hash(iVar2,*(int4 *)(param_1 + 0x184));
local_28 = *(long *)(*(long *)(param_1 + 400) + (ulong)uVar3 * 8);
do {
if (local_28 == 0) {
return 0;
}
if (((*(int *)(local_28 + 0x1c) == iVar2) &&
(*(long *)(local_28 + 0x38) == *(long *)(param_2 + 0x38))) &&
(uVar3 = *(uint *)(param_2 + 0x28), *(int *)(local_28 + 0x28) == uVar3 + 1)) {
for (local_34 = 0; local_34 < uVar3; local_34 = local_34 + 1) {
if ((*(int *)(local_28 + 0x44 + (ulong)local_34 * 8) !=
*(int *)(param_2 + 0x44 + (ulong)local_34 * 8)) ||
(*(uint *)(local_28 + 0x40 + (ulong)local_34 * 8) >> 0x1a !=
*(uint *)(param_2 + 0x40 + (ulong)local_34 * 8) >> 0x1a)) goto LAB_0015ce1c;
}
if ((*(int *)(local_28 + 0x44 + (ulong)uVar3 * 8) == param_3) &&
(*(uint *)(local_28 + 0x40 + (ulong)uVar3 * 8) >> 0x1a == param_4)) {
return local_28;
}
}
LAB_0015ce1c:
local_28 = *(long *)(local_28 + 0x30);
} while( true );
}
|
|
65,006 |
js_map_has
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_map_has(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int magic)
{
JSMapState *s = JS_GetOpaque2(ctx, this_val, JS_CLASS_MAP + magic);
JSMapRecord *mr;
JSValue key;
if (!s)
return JS_EXCEPTION;
key = map_normalize_key(ctx, argv[0]);
mr = map_find_record(ctx, s, key);
return js_bool(mr != NULL);
}
|
O2
|
c
|
js_map_has:
pushq %r14
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rdi, %rbx
leal 0x23(%r9), %ecx
callq 0x24db7
testq %rax, %rax
je 0x4834b
movq (%r14), %rdx
movq 0x8(%r14), %rcx
movl %ecx, %esi
xorq $0x7, %rsi
movq %rdx, %rdi
btrq $0x3f, %rdi
xorl %r8d, %r8d
orq %rsi, %rdi
cmoveq %r8, %rdx
cmoveq %r8, %rcx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x413bd
movq %rax, %rcx
xorl %eax, %eax
testq %rcx, %rcx
setne %al
pushq $0x1
popq %rdx
jmp 0x48350
pushq $0x6
popq %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
js_map_has:
push r14
push rbx
push rax
mov r14, r8
mov rbx, rdi
lea ecx, [r9+23h]
call JS_GetOpaque2
test rax, rax
jz short loc_4834B
mov rdx, [r14]
mov rcx, [r14+8]
mov esi, ecx
xor rsi, 7
mov rdi, rdx
btr rdi, 3Fh ; '?'
xor r8d, r8d
or rdi, rsi
cmovz rdx, r8
cmovz rcx, r8
mov rdi, rbx
mov rsi, rax
call map_find_record
mov rcx, rax
xor eax, eax
test rcx, rcx
setnz al
push 1
pop rdx
jmp short loc_48350
loc_4834B:
push 6
pop rdx
xor eax, eax
loc_48350:
add rsp, 8
pop rbx
pop r14
retn
|
_BOOL8 js_map_has(long long a1, long long a2, int a3, __m128d a4, long long a5, long long a6, int a7)
{
long long Opaque2; // rax
_DWORD *v9; // rdx
long long v10; // rcx
Opaque2 = JS_GetOpaque2(a1, a2, a3, a7 + 35);
if ( !Opaque2 )
return 0LL;
v9 = *(_DWORD **)a6;
v10 = *(_QWORD *)(a6 + 8);
if ( !((unsigned int)v10 ^ 7LL | *(_QWORD *)a6 & 0x7FFFFFFFFFFFFFFFLL) )
{
v9 = 0LL;
v10 = 0LL;
}
return map_find_record(a1, Opaque2, v9, v10, a4) != 0;
}
|
js_map_has:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,R8
MOV RBX,RDI
LEA ECX,[R9 + 0x23]
CALL 0x00124db7
TEST RAX,RAX
JZ 0x0014834b
MOV RDX,qword ptr [R14]
MOV RCX,qword ptr [R14 + 0x8]
MOV ESI,ECX
XOR RSI,0x7
MOV RDI,RDX
BTR RDI,0x3f
XOR R8D,R8D
OR RDI,RSI
CMOVZ RDX,R8
CMOVZ RCX,R8
MOV RDI,RBX
MOV RSI,RAX
CALL 0x001413bd
MOV RCX,RAX
XOR EAX,EAX
TEST RCX,RCX
SETNZ AL
PUSH 0x1
POP RDX
JMP 0x00148350
LAB_0014834b:
PUSH 0x6
POP RDX
XOR EAX,EAX
LAB_00148350:
ADD RSP,0x8
POP RBX
POP R14
RET
|
bool js_map_has(int8 param_1)
{
ulong uVar1;
long lVar2;
ulong uVar3;
ulong *in_R8;
bool bVar4;
lVar2 = JS_GetOpaque2();
if (lVar2 == 0) {
bVar4 = false;
}
else {
uVar3 = in_R8[1];
uVar1 = *in_R8;
if ((*in_R8 & 0x7fffffffffffffff) == 0 && (in_R8[1] & 0xffffffff) == 7) {
uVar3 = 0;
uVar1 = 0;
}
lVar2 = map_find_record(param_1,lVar2,uVar1,uVar3);
bVar4 = lVar2 != 0;
}
return bVar4;
}
|
|
65,007 |
bf_pow_ui
|
bluesky950520[P]quickjs/libbf.c
|
static int bf_pow_ui(bf_t *r, const bf_t *a, limb_t b, limb_t prec,
bf_flags_t flags)
{
int ret, n_bits, i;
assert(r != a);
if (b == 0)
return bf_set_ui(r, 1);
ret = bf_set(r, a);
n_bits = LIMB_BITS - clz(b);
for(i = n_bits - 2; i >= 0; i--) {
ret |= bf_mul(r, r, r, prec, flags);
if ((b >> i) & 1)
ret |= bf_mul(r, r, a, prec, flags);
}
return ret;
}
|
O2
|
c
|
bf_pow_ui:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r15
testq %rdx, %rdx
je 0x74900
movl %r8d, %ebx
movq %rcx, %r14
movq %rdx, %r12
movq %r15, %rdi
movq %rsi, 0x8(%rsp)
callq 0x6eaea
movl %eax, %r13d
movq %r12, 0x10(%rsp)
bsrq %r12, %r12
xorl $-0x40, %r12d
addl $0x3f, %r12d
testl %r12d, %r12d
js 0x748ee
movq %r15, %rdi
movq %r15, %rsi
movq %r15, %rdx
movq %r14, %rcx
movl %ebx, %r8d
callq 0x7022d
movl %eax, %ebp
orl %r13d, %ebp
movq 0x10(%rsp), %rax
btq %r12, %rax
jae 0x748e6
movq %r15, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rcx
movl %ebx, %r8d
callq 0x7022d
orl %eax, %ebp
decl %r12d
movl %ebp, %r13d
jmp 0x748a5
movl %r13d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x1
popq %rsi
movq %r15, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6e9da
|
bf_pow_ui:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r15, rdi
test rdx, rdx
jz loc_74900
mov ebx, r8d
mov r14, rcx
mov r12, rdx
mov rdi, r15
mov [rsp+48h+var_40], rsi
call bf_set
mov r13d, eax
mov [rsp+48h+var_38], r12
bsr r12, r12
xor r12d, 0FFFFFFC0h
add r12d, 3Fh ; '?'
loc_748A5:
test r12d, r12d
js short loc_748EE
mov rdi, r15
mov rsi, r15
mov rdx, r15
mov rcx, r14
mov r8d, ebx
call bf_mul
mov ebp, eax
or ebp, r13d
mov rax, [rsp+48h+var_38]
bt rax, r12
jnb short loc_748E6
mov rdi, r15
mov rsi, r15
mov rdx, [rsp+48h+var_40]
mov rcx, r14
mov r8d, ebx
call bf_mul
or ebp, eax
loc_748E6:
dec r12d
mov r13d, ebp
jmp short loc_748A5
loc_748EE:
mov eax, r13d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_74900:
push 1
pop rsi
mov rdi, r15
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp bf_set_ui
|
long long bf_pow_ui(long long *a1, long long *a2, unsigned long long a3, long long a4, unsigned int a5)
{
unsigned long long v7; // r12
unsigned int v8; // r13d
unsigned long long v9; // r12
unsigned int v10; // ebp
unsigned long long v11; // rax
unsigned long long v13; // [rsp+10h] [rbp-38h]
if ( !a3 )
return bf_set_ui((long long)a1, 1uLL);
v7 = a3;
v8 = bf_set((long long)a1, (long long)a2);
v13 = v7;
_BitScanReverse64(&v7, v7);
v9 = ((unsigned int)v7 ^ 0xFFFFFFC0) + 63;
while ( (v9 & 0x80000000) == 0LL )
{
v10 = v8 | bf_mul(a1, a1, a1, a4, a5);
v11 = v13;
if ( _bittest64((const long long *)&v11, v9) )
v10 |= bf_mul(a1, a1, a2, a4, a5);
v9 = (unsigned int)(v9 - 1);
v8 = v10;
}
return v8;
}
|
bf_pow_ui:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R15,RDI
TEST RDX,RDX
JZ 0x00174900
MOV EBX,R8D
MOV R14,RCX
MOV R12,RDX
MOV RDI,R15
MOV qword ptr [RSP + 0x8],RSI
CALL 0x0016eaea
MOV R13D,EAX
MOV qword ptr [RSP + 0x10],R12
BSR R12,R12
XOR R12D,0xffffffc0
ADD R12D,0x3f
LAB_001748a5:
TEST R12D,R12D
JS 0x001748ee
MOV RDI,R15
MOV RSI,R15
MOV RDX,R15
MOV RCX,R14
MOV R8D,EBX
CALL 0x0017022d
MOV EBP,EAX
OR EBP,R13D
MOV RAX,qword ptr [RSP + 0x10]
BT RAX,R12
JNC 0x001748e6
MOV RDI,R15
MOV RSI,R15
MOV RDX,qword ptr [RSP + 0x8]
MOV RCX,R14
MOV R8D,EBX
CALL 0x0017022d
OR EBP,EAX
LAB_001748e6:
DEC R12D
MOV R13D,EBP
JMP 0x001748a5
LAB_001748ee:
MOV EAX,R13D
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00174900:
PUSH 0x1
POP RSI
MOV RDI,R15
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0016e9da
|
ulong bf_pow_ui(int8 param_1,int8 param_2,ulong param_3,int8 param_4,
int4 param_5)
{
long lVar1;
uint uVar2;
uint uVar3;
ulong uVar4;
uint uVar5;
if (param_3 != 0) {
uVar2 = bf_set(param_1);
lVar1 = 0x3f;
if (param_3 != 0) {
for (; param_3 >> lVar1 == 0; lVar1 = lVar1 + -1) {
}
}
uVar5 = ((uint)lVar1 ^ 0xffffffc0) + 0x3f;
while( true ) {
if ((int)uVar5 < 0) break;
uVar3 = bf_mul(param_1,param_1,param_1,param_4,param_5);
uVar2 = uVar3 | uVar2;
if ((param_3 >> ((ulong)uVar5 & 0x3f) & 1) != 0) {
uVar3 = bf_mul(param_1,param_1,param_2,param_4,param_5);
uVar2 = uVar2 | uVar3;
}
uVar5 = uVar5 - 1;
}
return (ulong)uVar2;
}
uVar4 = bf_set_ui(param_1,1);
return uVar4;
}
|
|
65,008 |
bf_pow_ui
|
bluesky950520[P]quickjs/libbf.c
|
static int bf_pow_ui(bf_t *r, const bf_t *a, limb_t b, limb_t prec,
bf_flags_t flags)
{
int ret, n_bits, i;
assert(r != a);
if (b == 0)
return bf_set_ui(r, 1);
ret = bf_set(r, a);
n_bits = LIMB_BITS - clz(b);
for(i = n_bits - 2; i >= 0; i--) {
ret |= bf_mul(r, r, r, prec, flags);
if ((b >> i) & 1)
ret |= bf_mul(r, r, a, prec, flags);
}
return ret;
}
|
O3
|
c
|
bf_pow_ui:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
testq %rdx, %rdx
je 0x8df65
movl %r8d, %ebx
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %rbp
movq %r14, %rdi
callq 0x86a9a
movl %eax, %r13d
bsrq %r12, %rax
xorq $0x3f, %rax
cmpq $0x3f, %rax
jne 0x8df80
movl %r13d, %ebp
jmp 0x8dff5
movl $0x1, %esi
movq %r14, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x868c8
movq %rbp, 0x18(%rsp)
movq %r12, 0x20(%rsp)
movl %ebx, 0xc(%rsp)
movl $0x3e, %r12d
subq %rax, %r12
movl $0x3f, %ebx
subl %eax, %ebx
movq %r15, 0x10(%rsp)
movq %r14, %rdi
movq %r14, %rsi
movq %r14, %rdx
movq %r15, %rcx
movl 0xc(%rsp), %r15d
movl %r15d, %r8d
callq 0x8853c
movl %eax, %ebp
orl %r13d, %ebp
movq 0x20(%rsp), %rax
btq %r12, %rax
jae 0x8dfe6
movq %r14, %rdi
movq %r14, %rsi
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rcx
movl %r15d, %r8d
callq 0x8853c
orl %eax, %ebp
decq %r12
movl %ebp, %r13d
decl %ebx
movq 0x10(%rsp), %r15
jg 0x8dfa3
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
bf_pow_ui:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r14, rdi
test rdx, rdx
jz short loc_8DF65
mov ebx, r8d
mov r15, rcx
mov r12, rdx
mov rbp, rsi
mov rdi, r14
call bf_set
mov r13d, eax
bsr rax, r12
xor rax, 3Fh
cmp rax, 3Fh ; '?'
jnz short loc_8DF80
mov ebp, r13d
jmp loc_8DFF5
loc_8DF65:
mov esi, 1
mov rdi, r14
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp bf_set_ui
loc_8DF80:
mov [rsp+58h+var_40], rbp
mov [rsp+58h+var_38], r12
mov [rsp+58h+var_4C], ebx
mov r12d, 3Eh ; '>'
sub r12, rax
mov ebx, 3Fh ; '?'
sub ebx, eax
mov [rsp+58h+var_48], r15
loc_8DFA3:
mov rdi, r14
mov rsi, r14
mov rdx, r14
mov rcx, r15
mov r15d, [rsp+58h+var_4C]
mov r8d, r15d
call bf_mul
mov ebp, eax
or ebp, r13d
mov rax, [rsp+58h+var_38]
bt rax, r12
jnb short loc_8DFE6
mov rdi, r14
mov rsi, r14
mov rdx, [rsp+58h+var_40]
mov rcx, [rsp+58h+var_48]
mov r8d, r15d
call bf_mul
or ebp, eax
loc_8DFE6:
dec r12
mov r13d, ebp
dec ebx
mov r15, [rsp+58h+var_48]
jg short loc_8DFA3
loc_8DFF5:
mov eax, ebp
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long bf_pow_ui(__int128 *a1, long long a2, unsigned long long a3, long long a4, unsigned int a5)
{
unsigned int v8; // r13d
unsigned long long v9; // rax
unsigned long long v10; // rax
unsigned int v11; // ebp
unsigned long long v13; // r12
int v14; // ebx
unsigned long long v15; // rax
bool v16; // cc
unsigned int v17; // [rsp+Ch] [rbp-4Ch]
long long v18; // [rsp+10h] [rbp-48h]
unsigned long long v19; // [rsp+20h] [rbp-38h]
if ( !a3 )
return bf_set_ui((_QWORD **)a1, 1uLL);
v8 = bf_set(a1, a2);
_BitScanReverse64(&v9, a3);
v10 = v9 ^ 0x3F;
if ( v10 == 63 )
{
return v8;
}
else
{
v19 = a3;
v17 = a5;
v13 = 62 - v10;
v14 = 63 - v10;
v18 = a4;
do
{
v11 = v8 | bf_mul(a1, (long long)a1, (long long)a1, a4, v17);
v15 = v19;
if ( _bittest64((const long long *)&v15, v13) )
v11 |= bf_mul(a1, (long long)a1, a2, v18, v17);
--v13;
v8 = v11;
v16 = v14-- <= 1;
a4 = v18;
}
while ( !v16 );
}
return v11;
}
|
bf_pow_ui:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R14,RDI
TEST RDX,RDX
JZ 0x0018df65
MOV EBX,R8D
MOV R15,RCX
MOV R12,RDX
MOV RBP,RSI
MOV RDI,R14
CALL 0x00186a9a
MOV R13D,EAX
BSR RAX,R12
XOR RAX,0x3f
CMP RAX,0x3f
JNZ 0x0018df80
MOV EBP,R13D
JMP 0x0018dff5
LAB_0018df65:
MOV ESI,0x1
MOV RDI,R14
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001868c8
LAB_0018df80:
MOV qword ptr [RSP + 0x18],RBP
MOV qword ptr [RSP + 0x20],R12
MOV dword ptr [RSP + 0xc],EBX
MOV R12D,0x3e
SUB R12,RAX
MOV EBX,0x3f
SUB EBX,EAX
MOV qword ptr [RSP + 0x10],R15
LAB_0018dfa3:
MOV RDI,R14
MOV RSI,R14
MOV RDX,R14
MOV RCX,R15
MOV R15D,dword ptr [RSP + 0xc]
MOV R8D,R15D
CALL 0x0018853c
MOV EBP,EAX
OR EBP,R13D
MOV RAX,qword ptr [RSP + 0x20]
BT RAX,R12
JNC 0x0018dfe6
MOV RDI,R14
MOV RSI,R14
MOV RDX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x10]
MOV R8D,R15D
CALL 0x0018853c
OR EBP,EAX
LAB_0018dfe6:
DEC R12
MOV R13D,EBP
DEC EBX
MOV R15,qword ptr [RSP + 0x10]
JG 0x0018dfa3
LAB_0018dff5:
MOV EAX,EBP
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong bf_pow_ui(int8 param_1,int8 param_2,ulong param_3,int8 param_4,
int4 param_5)
{
bool bVar1;
uint uVar2;
uint uVar3;
ulong uVar4;
int iVar5;
int iVar6;
ulong uVar7;
ulong uVar8;
if (param_3 == 0) {
uVar4 = bf_set_ui(param_1,1);
return uVar4;
}
uVar2 = bf_set(param_1);
uVar7 = (ulong)uVar2;
uVar4 = 0x3f;
if (param_3 != 0) {
for (; param_3 >> uVar4 == 0; uVar4 = uVar4 - 1) {
}
}
uVar4 = uVar4 ^ 0x3f;
if (uVar4 != 0x3f) {
uVar8 = 0x3e - uVar4;
iVar5 = 0x3f - (int)uVar4;
do {
uVar2 = bf_mul(param_1,param_1,param_1,param_4,param_5);
uVar2 = uVar2 | (uint)uVar7;
if ((param_3 >> (uVar8 & 0x3f) & 1) != 0) {
uVar3 = bf_mul(param_1,param_1,param_2,param_4,param_5);
uVar2 = uVar2 | uVar3;
}
uVar7 = (ulong)uVar2;
uVar8 = uVar8 - 1;
iVar6 = iVar5 + -1;
bVar1 = 0 < iVar5;
iVar5 = iVar6;
} while (iVar6 != 0 && bVar1);
}
return uVar7;
}
|
|
65,009 |
my_thread_global_init
|
eloqsql/mysys/my_thr_init.c
|
my_bool my_thread_global_init(void)
{
int pth_ret;
/* Normally this should never be called twice */
DBUG_ASSERT(my_thread_global_init_done == 0);
if (my_thread_global_init_done)
return 0;
my_thread_global_init_done= 1;
/*
THR_KEY_mysys is deleted in my_end() as DBUG libraries are using it even
after my_thread_global_end() is called.
my_thr_key_mysys_exist is used to protect against application like QT
that calls my_thread_global_init() + my_thread_global_end() multiple times
without calling my_init() + my_end().
*/
if (!my_thr_key_mysys_exists &&
(pth_ret= pthread_key_create(&THR_KEY_mysys, NULL)) != 0)
{
fprintf(stderr, "Can't initialize threads: error %d\n", pth_ret);
return 1;
}
my_thr_key_mysys_exists= 1;
/* Mutex used by my_thread_init() and after my_thread_destroy_mutex() */
my_thread_init_internal_mutex();
if (my_thread_init())
return 1;
my_thread_init_common_mutex();
return 0;
}
|
O3
|
c
|
my_thread_global_init:
cmpb $0x0, 0x342fa5(%rip) # 0x369948
je 0x269a8
xorl %eax, %eax
retq
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movb $0x1, 0x342f93(%rip) # 0x369948
leaq 0x342cc8(%rip), %rbx # 0x369684
cmpb $0x0, (%rbx)
je 0x269df
movb $0x1, (%rbx)
callq 0x267f7
callq 0x26a19
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
jne 0x26a12
callq 0x2666a
xorl %eax, %eax
jmp 0x26a12
leaq 0x342f66(%rip), %rdi # 0x36994c
xorl %esi, %esi
callq 0x244f0
testl %eax, %eax
je 0x269c1
movq 0x2cb5d8(%rip), %rcx # 0x2f1fd0
movq (%rcx), %rdi
leaq 0x36c7e(%rip), %rdx # 0x5d680
movl $0x1, %esi
movl %eax, %ecx
xorl %eax, %eax
callq 0x24540
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
my_thread_global_init:
cmp cs:my_thread_global_init_done, 0
jz short loc_269A8
xor eax, eax
retn
loc_269A8:
push rbp
mov rbp, rsp
push rbx
push rax
mov cs:my_thread_global_init_done, 1
lea rbx, my_thr_key_mysys_exists
cmp byte ptr [rbx], 0
jz short loc_269DF
loc_269C1:
mov byte ptr [rbx], 1
call my_thread_init_internal_mutex
call my_thread_init
mov ecx, eax
mov al, 1
test cl, cl
jnz short loc_26A12
call my_thread_init_common_mutex
xor eax, eax
jmp short loc_26A12
loc_269DF:
lea rdi, THR_KEY_mysys
xor esi, esi
call _pthread_key_create
test eax, eax
jz short loc_269C1
mov rcx, cs:stderr_ptr
mov rdi, [rcx]
lea rdx, aCanTInitialize; "Can't initialize threads: error %d\n"
mov esi, 1
mov ecx, eax
xor eax, eax
call ___fprintf_chk
mov al, 1
loc_26A12:
add rsp, 8
pop rbx
pop rbp
retn
|
char my_thread_global_init(void *a1)
{
char result; // al
char v2; // cl
int v3; // eax
if ( my_thread_global_init_done )
return 0;
my_thread_global_init_done = 1;
if ( my_thr_key_mysys_exists || (a1 = &THR_KEY_mysys, (v3 = pthread_key_create(&THR_KEY_mysys, 0LL)) == 0) )
{
my_thr_key_mysys_exists = 1;
my_thread_init_internal_mutex();
v2 = my_thread_init(a1);
result = 1;
if ( !v2 )
{
my_thread_init_common_mutex();
return 0;
}
}
else
{
__fprintf_chk(stderr, 1LL, "Can't initialize threads: error %d\n", v3);
return 1;
}
return result;
}
|
my_thread_global_init:
CMP byte ptr [0x00469948],0x0
JZ 0x001269a8
XOR EAX,EAX
RET
LAB_001269a8:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV byte ptr [0x00469948],0x1
LEA RBX,[0x469684]
CMP byte ptr [RBX],0x0
JZ 0x001269df
LAB_001269c1:
MOV byte ptr [RBX],0x1
CALL 0x001267f7
CALL 0x00126a19
MOV ECX,EAX
MOV AL,0x1
TEST CL,CL
JNZ 0x00126a12
CALL 0x0012666a
XOR EAX,EAX
JMP 0x00126a12
LAB_001269df:
LEA RDI,[0x46994c]
XOR ESI,ESI
CALL 0x001244f0
TEST EAX,EAX
JZ 0x001269c1
MOV RCX,qword ptr [0x003f1fd0]
MOV RDI,qword ptr [RCX]
LEA RDX,[0x15d680]
MOV ESI,0x1
MOV ECX,EAX
XOR EAX,EAX
CALL 0x00124540
MOV AL,0x1
LAB_00126a12:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
bool my_thread_global_init(void)
{
char cVar1;
int iVar2;
if (my_thread_global_init_done != '\0') {
return false;
}
my_thread_global_init_done = 1;
if ((my_thr_key_mysys_exists == '\0') &&
(iVar2 = pthread_key_create(&THR_KEY_mysys,(__destr_function *)0x0), iVar2 != 0)) {
__fprintf_chk(*(int8 *)PTR_stderr_003f1fd0,1,"Can\'t initialize threads: error %d\n",iVar2
);
return true;
}
my_thr_key_mysys_exists = 1;
my_thread_init_internal_mutex();
cVar1 = my_thread_init();
if (cVar1 == '\0') {
my_thread_init_common_mutex();
}
return cVar1 != '\0';
}
|
|
65,010 |
mysql_init_ps_subsystem
|
eloqsql/libmariadb/libmariadb/ma_stmt_codec.c
|
void mysql_init_ps_subsystem(void)
{
memset(mysql_ps_fetch_functions, 0, sizeof(mysql_ps_fetch_functions));
mysql_ps_fetch_functions[MYSQL_TYPE_NULL].func= ps_fetch_null;
mysql_ps_fetch_functions[MYSQL_TYPE_NULL].pack_len = 0;
mysql_ps_fetch_functions[MYSQL_TYPE_NULL].max_len = 0;
mysql_ps_fetch_functions[MYSQL_TYPE_TINY].func = ps_fetch_int8;
mysql_ps_fetch_functions[MYSQL_TYPE_TINY].pack_len = 1;
mysql_ps_fetch_functions[MYSQL_TYPE_TINY].max_len = 4;
mysql_ps_fetch_functions[MYSQL_TYPE_SHORT].func = ps_fetch_int16;
mysql_ps_fetch_functions[MYSQL_TYPE_SHORT].pack_len = 2;
mysql_ps_fetch_functions[MYSQL_TYPE_SHORT].max_len = 6;
mysql_ps_fetch_functions[MYSQL_TYPE_YEAR].func = ps_fetch_int16;
mysql_ps_fetch_functions[MYSQL_TYPE_YEAR].pack_len = 2;
mysql_ps_fetch_functions[MYSQL_TYPE_YEAR].max_len = 4;
mysql_ps_fetch_functions[MYSQL_TYPE_INT24].func = ps_fetch_int32;
mysql_ps_fetch_functions[MYSQL_TYPE_INT24].pack_len = 4;
mysql_ps_fetch_functions[MYSQL_TYPE_INT24].max_len = 8;
mysql_ps_fetch_functions[MYSQL_TYPE_LONG].func = ps_fetch_int32;
mysql_ps_fetch_functions[MYSQL_TYPE_LONG].pack_len = 4;
mysql_ps_fetch_functions[MYSQL_TYPE_LONG].max_len = 11;
mysql_ps_fetch_functions[MYSQL_TYPE_LONGLONG].func = ps_fetch_int64;
mysql_ps_fetch_functions[MYSQL_TYPE_LONGLONG].pack_len= 8;
mysql_ps_fetch_functions[MYSQL_TYPE_LONGLONG].max_len = 20;
mysql_ps_fetch_functions[MYSQL_TYPE_FLOAT].func = ps_fetch_float;
mysql_ps_fetch_functions[MYSQL_TYPE_FLOAT].pack_len = 4;
mysql_ps_fetch_functions[MYSQL_TYPE_FLOAT].max_len = MAX_DOUBLE_STRING_REP_LENGTH;
mysql_ps_fetch_functions[MYSQL_TYPE_DOUBLE].func = ps_fetch_double;
mysql_ps_fetch_functions[MYSQL_TYPE_DOUBLE].pack_len = 8;
mysql_ps_fetch_functions[MYSQL_TYPE_DOUBLE].max_len = MAX_DOUBLE_STRING_REP_LENGTH;
mysql_ps_fetch_functions[MYSQL_TYPE_TIME].func = ps_fetch_datetime;
mysql_ps_fetch_functions[MYSQL_TYPE_TIME].pack_len = MYSQL_PS_SKIP_RESULT_W_LEN;
mysql_ps_fetch_functions[MYSQL_TYPE_TIME].max_len = 17;
mysql_ps_fetch_functions[MYSQL_TYPE_DATE].func = ps_fetch_datetime;
mysql_ps_fetch_functions[MYSQL_TYPE_DATE].pack_len = MYSQL_PS_SKIP_RESULT_W_LEN;
mysql_ps_fetch_functions[MYSQL_TYPE_DATE].max_len = 10;
mysql_ps_fetch_functions[MYSQL_TYPE_NEWDATE].func = ps_fetch_string;
mysql_ps_fetch_functions[MYSQL_TYPE_NEWDATE].pack_len = MYSQL_PS_SKIP_RESULT_W_LEN;
mysql_ps_fetch_functions[MYSQL_TYPE_NEWDATE].max_len = -1;
mysql_ps_fetch_functions[MYSQL_TYPE_DATETIME].func = ps_fetch_datetime;
mysql_ps_fetch_functions[MYSQL_TYPE_DATETIME].pack_len= MYSQL_PS_SKIP_RESULT_W_LEN;
mysql_ps_fetch_functions[MYSQL_TYPE_DATETIME].max_len = 30;
mysql_ps_fetch_functions[MYSQL_TYPE_TIMESTAMP].func = ps_fetch_datetime;
mysql_ps_fetch_functions[MYSQL_TYPE_TIMESTAMP].pack_len= MYSQL_PS_SKIP_RESULT_W_LEN;
mysql_ps_fetch_functions[MYSQL_TYPE_TIMESTAMP].max_len = 30;
mysql_ps_fetch_functions[MYSQL_TYPE_TINY_BLOB].func = ps_fetch_bin;
mysql_ps_fetch_functions[MYSQL_TYPE_TINY_BLOB].pack_len= MYSQL_PS_SKIP_RESULT_STR;
mysql_ps_fetch_functions[MYSQL_TYPE_TINY_BLOB].max_len = -1;
mysql_ps_fetch_functions[MYSQL_TYPE_BLOB].func = ps_fetch_bin;
mysql_ps_fetch_functions[MYSQL_TYPE_BLOB].pack_len = MYSQL_PS_SKIP_RESULT_STR;
mysql_ps_fetch_functions[MYSQL_TYPE_BLOB].max_len = -1;
mysql_ps_fetch_functions[MYSQL_TYPE_MEDIUM_BLOB].func = ps_fetch_bin;
mysql_ps_fetch_functions[MYSQL_TYPE_MEDIUM_BLOB].pack_len= MYSQL_PS_SKIP_RESULT_STR;
mysql_ps_fetch_functions[MYSQL_TYPE_MEDIUM_BLOB].max_len = -1;
mysql_ps_fetch_functions[MYSQL_TYPE_LONG_BLOB].func = ps_fetch_bin;
mysql_ps_fetch_functions[MYSQL_TYPE_LONG_BLOB].pack_len = MYSQL_PS_SKIP_RESULT_STR;
mysql_ps_fetch_functions[MYSQL_TYPE_LONG_BLOB].max_len = -1;
mysql_ps_fetch_functions[MYSQL_TYPE_BIT].func = ps_fetch_bin;
mysql_ps_fetch_functions[MYSQL_TYPE_BIT].pack_len = MYSQL_PS_SKIP_RESULT_STR;
mysql_ps_fetch_functions[MYSQL_TYPE_BIT].max_len = -1;
mysql_ps_fetch_functions[MYSQL_TYPE_VAR_STRING].func = ps_fetch_string;
mysql_ps_fetch_functions[MYSQL_TYPE_VAR_STRING].pack_len = MYSQL_PS_SKIP_RESULT_STR;
mysql_ps_fetch_functions[MYSQL_TYPE_VAR_STRING].max_len = -1;
mysql_ps_fetch_functions[MYSQL_TYPE_VARCHAR].func = ps_fetch_string;
mysql_ps_fetch_functions[MYSQL_TYPE_VARCHAR].pack_len = MYSQL_PS_SKIP_RESULT_STR;
mysql_ps_fetch_functions[MYSQL_TYPE_VARCHAR].max_len = -1;
mysql_ps_fetch_functions[MYSQL_TYPE_STRING].func = ps_fetch_string;
mysql_ps_fetch_functions[MYSQL_TYPE_STRING].pack_len = MYSQL_PS_SKIP_RESULT_STR;
mysql_ps_fetch_functions[MYSQL_TYPE_STRING].max_len = -1;
mysql_ps_fetch_functions[MYSQL_TYPE_JSON].func = ps_fetch_string;
mysql_ps_fetch_functions[MYSQL_TYPE_JSON].pack_len = MYSQL_PS_SKIP_RESULT_STR;
mysql_ps_fetch_functions[MYSQL_TYPE_JSON].max_len = -1;
mysql_ps_fetch_functions[MYSQL_TYPE_DECIMAL].func = ps_fetch_string;
mysql_ps_fetch_functions[MYSQL_TYPE_DECIMAL].pack_len = MYSQL_PS_SKIP_RESULT_STR;
mysql_ps_fetch_functions[MYSQL_TYPE_DECIMAL].max_len = -1;
mysql_ps_fetch_functions[MYSQL_TYPE_NEWDECIMAL].func = ps_fetch_string;
mysql_ps_fetch_functions[MYSQL_TYPE_NEWDECIMAL].pack_len = MYSQL_PS_SKIP_RESULT_STR;
mysql_ps_fetch_functions[MYSQL_TYPE_NEWDECIMAL].max_len = -1;
mysql_ps_fetch_functions[MYSQL_TYPE_ENUM].func = ps_fetch_string;
mysql_ps_fetch_functions[MYSQL_TYPE_ENUM].pack_len = MYSQL_PS_SKIP_RESULT_STR;
mysql_ps_fetch_functions[MYSQL_TYPE_ENUM].max_len = -1;
mysql_ps_fetch_functions[MYSQL_TYPE_SET].func = ps_fetch_string;
mysql_ps_fetch_functions[MYSQL_TYPE_SET].pack_len = MYSQL_PS_SKIP_RESULT_STR;
mysql_ps_fetch_functions[MYSQL_TYPE_SET].max_len = -1;
mysql_ps_fetch_functions[MYSQL_TYPE_GEOMETRY].func = ps_fetch_string;
mysql_ps_fetch_functions[MYSQL_TYPE_GEOMETRY].pack_len= MYSQL_PS_SKIP_RESULT_STR;
mysql_ps_fetch_functions[MYSQL_TYPE_GEOMETRY].max_len = -1;
mysql_ps_subsystem_initialized= 1;
}
|
O3
|
c
|
mysql_init_ps_subsystem:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
leaq 0x27055(%rip), %rbx # 0x4b060
movl $0x1800, %edx # imm = 0x1800
movq %rbx, %rdi
xorl %esi, %esi
callq 0x13260
leaq 0x298(%rip), %rax # 0x242b9
movq %rax, 0x90(%rbx)
movq $0x0, 0xa0(%rbx)
leaq 0x285(%rip), %rax # 0x242bf
movq %rax, 0x18(%rbx)
movl $0x1, 0x20(%rbx)
movl $0x4, %eax
movq %rax, 0x28(%rbx)
leaq 0x2d1(%rip), %rcx # 0x24326
movq %rcx, 0x30(%rbx)
movl $0x2, %edx
movl %edx, 0x38(%rbx)
movq $0x6, 0x40(%rbx)
movq %rcx, 0x138(%rbx)
movl %edx, 0x140(%rbx)
movq %rax, 0x148(%rbx)
leaq 0x2ef(%rip), %rax # 0x24373
movq %rax, 0xd8(%rbx)
movl $0x4, %ecx
movl %ecx, 0xe0(%rbx)
movq $0x8, 0xe8(%rbx)
movq %rax, 0x48(%rbx)
movl %ecx, 0x50(%rbx)
movq $0xb, 0x58(%rbx)
leaq 0x307(%rip), %rax # 0x243be
movq %rax, 0xc0(%rbx)
movl $0x8, %eax
movl %eax, 0xc8(%rbx)
movq $0x14, 0xd0(%rbx)
leaq 0x321(%rip), %rdx # 0x243fc
movq %rdx, 0x60(%rbx)
movl %ecx, 0x68(%rbx)
movl $0x12c, %ecx # imm = 0x12C
movq %rcx, 0x70(%rbx)
leaq 0x631(%rip), %rdx # 0x24723
movq %rdx, 0x78(%rbx)
movl %eax, 0x80(%rbx)
movq %rcx, 0x88(%rbx)
leaq 0x93d(%rip), %rdx # 0x24a47
movq %rdx, 0x108(%rbx)
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
movl %esi, 0x110(%rbx)
movq $0x11, 0x118(%rbx)
movq %rdx, 0xf0(%rbx)
movl %esi, 0xf8(%rbx)
movq $0xa, 0x100(%rbx)
leaq 0xb99(%rip), %rax # 0x24cdf
movq %rax, 0x150(%rbx)
movl %esi, 0x158(%rbx)
movq $-0x1, %rcx
movq %rcx, 0x160(%rbx)
movq %rdx, 0x120(%rbx)
movl %esi, 0x128(%rbx)
movl $0x1e, %edi
movq %rdi, 0x130(%rbx)
movq %rdx, 0xa8(%rbx)
movl %esi, 0xb0(%rbx)
movq %rdi, 0xb8(%rbx)
leaq 0xb81(%rip), %rsi # 0x24d16
movq %rsi, 0x1758(%rbx)
movl $0xfffffffe, %edx # imm = 0xFFFFFFFE
movl %edx, 0x1760(%rbx)
movq %rcx, 0x1768(%rbx)
movq %rsi, 0x17a0(%rbx)
movl %edx, 0x17a8(%rbx)
movq %rcx, 0x17b0(%rbx)
movq %rsi, 0x1770(%rbx)
movl %edx, 0x1778(%rbx)
movq %rcx, 0x1780(%rbx)
movq %rsi, 0x1788(%rbx)
movl %edx, 0x1790(%rbx)
movq %rcx, 0x1798(%rbx)
movq %rsi, 0x180(%rbx)
movl %edx, 0x188(%rbx)
movq %rcx, 0x190(%rbx)
movq %rax, 0x17b8(%rbx)
movl %edx, 0x17c0(%rbx)
movq %rcx, 0x17c8(%rbx)
movq %rax, 0x168(%rbx)
movl %edx, 0x170(%rbx)
movq %rcx, 0x178(%rbx)
movq %rax, 0x17d0(%rbx)
movl %edx, 0x17d8(%rbx)
movq %rcx, 0x17e0(%rbx)
movq %rax, 0x16f8(%rbx)
movl %edx, 0x1700(%rbx)
movq %rcx, 0x1708(%rbx)
movq %rax, (%rbx)
movl %edx, 0x8(%rbx)
movq %rcx, 0x10(%rbx)
movq %rax, 0x1710(%rbx)
movl %edx, 0x1718(%rbx)
movq %rcx, 0x1720(%rbx)
movq %rax, 0x1728(%rbx)
movl %edx, 0x1730(%rbx)
movq %rcx, 0x1738(%rbx)
movq %rax, 0x1740(%rbx)
movl %edx, 0x1748(%rbx)
movq %rcx, 0x1750(%rbx)
movq %rax, 0x17e8(%rbx)
movl %edx, 0x17f0(%rbx)
movq %rcx, 0x17f8(%rbx)
leaq 0x26da1(%rip), %rax # 0x4b050
movb $0x1, (%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
mysql_init_ps_subsystem:
push rbp
mov rbp, rsp
push rbx
push rax
lea rbx, mysql_ps_fetch_functions
mov edx, 1800h
mov rdi, rbx
xor esi, esi
call _memset
lea rax, ps_fetch_null
mov [rbx+90h], rax
mov qword ptr [rbx+0A0h], 0
lea rax, ps_fetch_int8
mov [rbx+18h], rax
mov dword ptr [rbx+20h], 1
mov eax, 4
mov [rbx+28h], rax
lea rcx, ps_fetch_int16
mov [rbx+30h], rcx
mov edx, 2
mov [rbx+38h], edx
mov qword ptr [rbx+40h], 6
mov [rbx+138h], rcx
mov [rbx+140h], edx
mov [rbx+148h], rax
lea rax, ps_fetch_int32
mov [rbx+0D8h], rax
mov ecx, 4
mov [rbx+0E0h], ecx
mov qword ptr [rbx+0E8h], 8
mov [rbx+48h], rax
mov [rbx+50h], ecx
mov qword ptr [rbx+58h], 0Bh
lea rax, ps_fetch_int64
mov [rbx+0C0h], rax
mov eax, 8
mov [rbx+0C8h], eax
mov qword ptr [rbx+0D0h], 14h
lea rdx, ps_fetch_float
mov [rbx+60h], rdx
mov [rbx+68h], ecx
mov ecx, 12Ch
mov [rbx+70h], rcx
lea rdx, ps_fetch_double
mov [rbx+78h], rdx
mov [rbx+80h], eax
mov [rbx+88h], rcx
lea rdx, ps_fetch_datetime
mov [rbx+108h], rdx
mov esi, 0FFFFFFFFh
mov [rbx+110h], esi
mov qword ptr [rbx+118h], 11h
mov [rbx+0F0h], rdx
mov [rbx+0F8h], esi
mov qword ptr [rbx+100h], 0Ah
lea rax, ps_fetch_string
mov [rbx+150h], rax
mov [rbx+158h], esi
mov rcx, 0FFFFFFFFFFFFFFFFh
mov [rbx+160h], rcx
mov [rbx+120h], rdx
mov [rbx+128h], esi
mov edi, 1Eh
mov [rbx+130h], rdi
mov [rbx+0A8h], rdx
mov [rbx+0B0h], esi
mov [rbx+0B8h], rdi
lea rsi, ps_fetch_bin
mov [rbx+1758h], rsi
mov edx, 0FFFFFFFEh
mov [rbx+1760h], edx
mov [rbx+1768h], rcx
mov [rbx+17A0h], rsi
mov [rbx+17A8h], edx
mov [rbx+17B0h], rcx
mov [rbx+1770h], rsi
mov [rbx+1778h], edx
mov [rbx+1780h], rcx
mov [rbx+1788h], rsi
mov [rbx+1790h], edx
mov [rbx+1798h], rcx
mov [rbx+180h], rsi
mov [rbx+188h], edx
mov [rbx+190h], rcx
mov [rbx+17B8h], rax
mov [rbx+17C0h], edx
mov [rbx+17C8h], rcx
mov [rbx+168h], rax
mov [rbx+170h], edx
mov [rbx+178h], rcx
mov [rbx+17D0h], rax
mov [rbx+17D8h], edx
mov [rbx+17E0h], rcx
mov [rbx+16F8h], rax
mov [rbx+1700h], edx
mov [rbx+1708h], rcx
mov [rbx], rax
mov [rbx+8], edx
mov [rbx+10h], rcx
mov [rbx+1710h], rax
mov [rbx+1718h], edx
mov [rbx+1720h], rcx
mov [rbx+1728h], rax
mov [rbx+1730h], edx
mov [rbx+1738h], rcx
mov [rbx+1740h], rax
mov [rbx+1748h], edx
mov [rbx+1750h], rcx
mov [rbx+17E8h], rax
mov [rbx+17F0h], edx
mov [rbx+17F8h], rcx
lea rax, mysql_ps_subsystem_initialized
mov byte ptr [rax], 1
add rsp, 8
pop rbx
pop rbp
retn
|
_BYTE *mysql_init_ps_subsystem()
{
_BYTE *result; // rax
memset(mysql_ps_fetch_functions, 0LL, sizeof(mysql_ps_fetch_functions));
*(_QWORD *)&mysql_ps_fetch_functions[36] = ps_fetch_null;
*(_QWORD *)&mysql_ps_fetch_functions[40] = 0LL;
*(_QWORD *)&mysql_ps_fetch_functions[6] = ps_fetch_int8;
mysql_ps_fetch_functions[8] = 1;
*(_QWORD *)&mysql_ps_fetch_functions[10] = 4LL;
*(_QWORD *)&mysql_ps_fetch_functions[12] = ps_fetch_int16;
mysql_ps_fetch_functions[14] = 2;
*(_QWORD *)&mysql_ps_fetch_functions[16] = 6LL;
*(_QWORD *)&mysql_ps_fetch_functions[78] = ps_fetch_int16;
mysql_ps_fetch_functions[80] = 2;
*(_QWORD *)&mysql_ps_fetch_functions[82] = 4LL;
*(_QWORD *)&mysql_ps_fetch_functions[54] = ps_fetch_int32;
mysql_ps_fetch_functions[56] = 4;
*(_QWORD *)&mysql_ps_fetch_functions[58] = 8LL;
*(_QWORD *)&mysql_ps_fetch_functions[18] = ps_fetch_int32;
mysql_ps_fetch_functions[20] = 4;
*(_QWORD *)&mysql_ps_fetch_functions[22] = 11LL;
*(_QWORD *)&mysql_ps_fetch_functions[48] = ps_fetch_int64;
mysql_ps_fetch_functions[50] = 8;
*(_QWORD *)&mysql_ps_fetch_functions[52] = 20LL;
*(_QWORD *)&mysql_ps_fetch_functions[24] = ps_fetch_float;
mysql_ps_fetch_functions[26] = 4;
*(_QWORD *)&mysql_ps_fetch_functions[28] = 300LL;
*(_QWORD *)&mysql_ps_fetch_functions[30] = ps_fetch_double;
mysql_ps_fetch_functions[32] = 8;
*(_QWORD *)&mysql_ps_fetch_functions[34] = 300LL;
*(_QWORD *)&mysql_ps_fetch_functions[66] = ps_fetch_datetime;
mysql_ps_fetch_functions[68] = -1;
*(_QWORD *)&mysql_ps_fetch_functions[70] = 17LL;
*(_QWORD *)&mysql_ps_fetch_functions[60] = ps_fetch_datetime;
mysql_ps_fetch_functions[62] = -1;
*(_QWORD *)&mysql_ps_fetch_functions[64] = 10LL;
*(_QWORD *)&mysql_ps_fetch_functions[84] = ps_fetch_string;
mysql_ps_fetch_functions[86] = -1;
*(_QWORD *)&mysql_ps_fetch_functions[88] = -1LL;
*(_QWORD *)&mysql_ps_fetch_functions[72] = ps_fetch_datetime;
mysql_ps_fetch_functions[74] = -1;
*(_QWORD *)&mysql_ps_fetch_functions[76] = 30LL;
*(_QWORD *)&mysql_ps_fetch_functions[42] = ps_fetch_datetime;
mysql_ps_fetch_functions[44] = -1;
*(_QWORD *)&mysql_ps_fetch_functions[46] = 30LL;
*(_QWORD *)&mysql_ps_fetch_functions[1494] = ps_fetch_bin;
mysql_ps_fetch_functions[1496] = -2;
*(_QWORD *)&mysql_ps_fetch_functions[1498] = -1LL;
*(_QWORD *)&mysql_ps_fetch_functions[1512] = ps_fetch_bin;
mysql_ps_fetch_functions[1514] = -2;
*(_QWORD *)&mysql_ps_fetch_functions[1516] = -1LL;
*(_QWORD *)&mysql_ps_fetch_functions[1500] = ps_fetch_bin;
mysql_ps_fetch_functions[1502] = -2;
*(_QWORD *)&mysql_ps_fetch_functions[1504] = -1LL;
*(_QWORD *)&mysql_ps_fetch_functions[1506] = ps_fetch_bin;
mysql_ps_fetch_functions[1508] = -2;
*(_QWORD *)&mysql_ps_fetch_functions[1510] = -1LL;
*(_QWORD *)&mysql_ps_fetch_functions[96] = ps_fetch_bin;
mysql_ps_fetch_functions[98] = -2;
*(_QWORD *)&mysql_ps_fetch_functions[100] = -1LL;
*(_QWORD *)&mysql_ps_fetch_functions[1518] = ps_fetch_string;
mysql_ps_fetch_functions[1520] = -2;
*(_QWORD *)&mysql_ps_fetch_functions[1522] = -1LL;
*(_QWORD *)&mysql_ps_fetch_functions[90] = ps_fetch_string;
mysql_ps_fetch_functions[92] = -2;
*(_QWORD *)&mysql_ps_fetch_functions[94] = -1LL;
*(_QWORD *)&mysql_ps_fetch_functions[1524] = ps_fetch_string;
mysql_ps_fetch_functions[1526] = -2;
*(_QWORD *)&mysql_ps_fetch_functions[1528] = -1LL;
*(_QWORD *)&mysql_ps_fetch_functions[1470] = ps_fetch_string;
mysql_ps_fetch_functions[1472] = -2;
*(_QWORD *)&mysql_ps_fetch_functions[1474] = -1LL;
*(_QWORD *)mysql_ps_fetch_functions = ps_fetch_string;
mysql_ps_fetch_functions[2] = -2;
*(_QWORD *)&mysql_ps_fetch_functions[4] = -1LL;
*(_QWORD *)&mysql_ps_fetch_functions[1476] = ps_fetch_string;
mysql_ps_fetch_functions[1478] = -2;
*(_QWORD *)&mysql_ps_fetch_functions[1480] = -1LL;
*(_QWORD *)&mysql_ps_fetch_functions[1482] = ps_fetch_string;
mysql_ps_fetch_functions[1484] = -2;
*(_QWORD *)&mysql_ps_fetch_functions[1486] = -1LL;
*(_QWORD *)&mysql_ps_fetch_functions[1488] = ps_fetch_string;
mysql_ps_fetch_functions[1490] = -2;
*(_QWORD *)&mysql_ps_fetch_functions[1492] = -1LL;
*(_QWORD *)&mysql_ps_fetch_functions[1530] = ps_fetch_string;
mysql_ps_fetch_functions[1532] = -2;
*(_QWORD *)&mysql_ps_fetch_functions[1534] = -1LL;
result = mysql_ps_subsystem_initialized;
mysql_ps_subsystem_initialized[0] = 1;
return result;
}
|
mysql_init_ps_subsystem:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
LEA RBX,[0x14b060]
MOV EDX,0x1800
MOV RDI,RBX
XOR ESI,ESI
CALL 0x00113260
LEA RAX,[0x1242b9]
MOV qword ptr [RBX + 0x90],RAX
MOV qword ptr [RBX + 0xa0],0x0
LEA RAX,[0x1242bf]
MOV qword ptr [RBX + 0x18],RAX
MOV dword ptr [RBX + 0x20],0x1
MOV EAX,0x4
MOV qword ptr [RBX + 0x28],RAX
LEA RCX,[0x124326]
MOV qword ptr [RBX + 0x30],RCX
MOV EDX,0x2
MOV dword ptr [RBX + 0x38],EDX
MOV qword ptr [RBX + 0x40],0x6
MOV qword ptr [RBX + 0x138],RCX
MOV dword ptr [RBX + 0x140],EDX
MOV qword ptr [RBX + 0x148],RAX
LEA RAX,[0x124373]
MOV qword ptr [RBX + 0xd8],RAX
MOV ECX,0x4
MOV dword ptr [RBX + 0xe0],ECX
MOV qword ptr [RBX + 0xe8],0x8
MOV qword ptr [RBX + 0x48],RAX
MOV dword ptr [RBX + 0x50],ECX
MOV qword ptr [RBX + 0x58],0xb
LEA RAX,[0x1243be]
MOV qword ptr [RBX + 0xc0],RAX
MOV EAX,0x8
MOV dword ptr [RBX + 0xc8],EAX
MOV qword ptr [RBX + 0xd0],0x14
LEA RDX,[0x1243fc]
MOV qword ptr [RBX + 0x60],RDX
MOV dword ptr [RBX + 0x68],ECX
MOV ECX,0x12c
MOV qword ptr [RBX + 0x70],RCX
LEA RDX,[0x124723]
MOV qword ptr [RBX + 0x78],RDX
MOV dword ptr [RBX + 0x80],EAX
MOV qword ptr [RBX + 0x88],RCX
LEA RDX,[0x124a47]
MOV qword ptr [RBX + 0x108],RDX
MOV ESI,0xffffffff
MOV dword ptr [RBX + 0x110],ESI
MOV qword ptr [RBX + 0x118],0x11
MOV qword ptr [RBX + 0xf0],RDX
MOV dword ptr [RBX + 0xf8],ESI
MOV qword ptr [RBX + 0x100],0xa
LEA RAX,[0x124cdf]
MOV qword ptr [RBX + 0x150],RAX
MOV dword ptr [RBX + 0x158],ESI
MOV RCX,-0x1
MOV qword ptr [RBX + 0x160],RCX
MOV qword ptr [RBX + 0x120],RDX
MOV dword ptr [RBX + 0x128],ESI
MOV EDI,0x1e
MOV qword ptr [RBX + 0x130],RDI
MOV qword ptr [RBX + 0xa8],RDX
MOV dword ptr [RBX + 0xb0],ESI
MOV qword ptr [RBX + 0xb8],RDI
LEA RSI,[0x124d16]
MOV qword ptr [RBX + 0x1758],RSI
MOV EDX,0xfffffffe
MOV dword ptr [RBX + 0x1760],EDX
MOV qword ptr [RBX + 0x1768],RCX
MOV qword ptr [RBX + 0x17a0],RSI
MOV dword ptr [RBX + 0x17a8],EDX
MOV qword ptr [RBX + 0x17b0],RCX
MOV qword ptr [RBX + 0x1770],RSI
MOV dword ptr [RBX + 0x1778],EDX
MOV qword ptr [RBX + 0x1780],RCX
MOV qword ptr [RBX + 0x1788],RSI
MOV dword ptr [RBX + 0x1790],EDX
MOV qword ptr [RBX + 0x1798],RCX
MOV qword ptr [RBX + 0x180],RSI
MOV dword ptr [RBX + 0x188],EDX
MOV qword ptr [RBX + 0x190],RCX
MOV qword ptr [RBX + 0x17b8],RAX
MOV dword ptr [RBX + 0x17c0],EDX
MOV qword ptr [RBX + 0x17c8],RCX
MOV qword ptr [RBX + 0x168],RAX
MOV dword ptr [RBX + 0x170],EDX
MOV qword ptr [RBX + 0x178],RCX
MOV qword ptr [RBX + 0x17d0],RAX
MOV dword ptr [RBX + 0x17d8],EDX
MOV qword ptr [RBX + 0x17e0],RCX
MOV qword ptr [RBX + 0x16f8],RAX
MOV dword ptr [RBX + 0x1700],EDX
MOV qword ptr [RBX + 0x1708],RCX
MOV qword ptr [RBX],RAX
MOV dword ptr [RBX + 0x8],EDX
MOV qword ptr [RBX + 0x10],RCX
MOV qword ptr [RBX + 0x1710],RAX
MOV dword ptr [RBX + 0x1718],EDX
MOV qword ptr [RBX + 0x1720],RCX
MOV qword ptr [RBX + 0x1728],RAX
MOV dword ptr [RBX + 0x1730],EDX
MOV qword ptr [RBX + 0x1738],RCX
MOV qword ptr [RBX + 0x1740],RAX
MOV dword ptr [RBX + 0x1748],EDX
MOV qword ptr [RBX + 0x1750],RCX
MOV qword ptr [RBX + 0x17e8],RAX
MOV dword ptr [RBX + 0x17f0],EDX
MOV qword ptr [RBX + 0x17f8],RCX
LEA RAX,[0x14b050]
MOV byte ptr [RAX],0x1
ADD RSP,0x8
POP RBX
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void mysql_init_ps_subsystem(void)
{
memset(&mysql_ps_fetch_functions,0,0x1800);
_DAT_0014b0f0 = ps_fetch_null;
_DAT_0014b100 = 0;
_DAT_0014b078 = ps_fetch_int8;
_DAT_0014b080 = 1;
_DAT_0014b088 = 4;
_DAT_0014b090 = ps_fetch_int16;
_DAT_0014b098 = 2;
_DAT_0014b0a0 = 6;
_DAT_0014b198 = ps_fetch_int16;
_DAT_0014b1a0 = 2;
_DAT_0014b1a8 = 4;
_DAT_0014b138 = ps_fetch_int32;
_DAT_0014b140 = 4;
_DAT_0014b148 = 8;
_DAT_0014b0a8 = ps_fetch_int32;
_DAT_0014b0b0 = 4;
_DAT_0014b0b8 = 0xb;
_DAT_0014b120 = ps_fetch_int64;
_DAT_0014b128 = 8;
_DAT_0014b130 = 0x14;
_DAT_0014b0c0 = ps_fetch_float;
_DAT_0014b0c8 = 4;
_DAT_0014b0d0 = 300;
_DAT_0014b0d8 = ps_fetch_double;
_DAT_0014b0e0 = 8;
_DAT_0014b0e8 = 300;
_DAT_0014b168 = ps_fetch_datetime;
_DAT_0014b170 = 0xffffffff;
_DAT_0014b178 = 0x11;
_DAT_0014b150 = ps_fetch_datetime;
_DAT_0014b158 = 0xffffffff;
_DAT_0014b160 = 10;
_DAT_0014b1b0 = ps_fetch_string;
_DAT_0014b1b8 = 0xffffffff;
_DAT_0014b1c0 = 0xffffffffffffffff;
_DAT_0014b180 = ps_fetch_datetime;
_DAT_0014b188 = 0xffffffff;
_DAT_0014b190 = 0x1e;
_DAT_0014b108 = ps_fetch_datetime;
_DAT_0014b110 = 0xffffffff;
_DAT_0014b118 = 0x1e;
_DAT_0014c7b8 = ps_fetch_bin;
_DAT_0014c7c0 = 0xfffffffe;
_DAT_0014c7c8 = 0xffffffffffffffff;
_DAT_0014c800 = ps_fetch_bin;
_DAT_0014c808 = 0xfffffffe;
_DAT_0014c810 = 0xffffffffffffffff;
_DAT_0014c7d0 = ps_fetch_bin;
_DAT_0014c7d8 = 0xfffffffe;
_DAT_0014c7e0 = 0xffffffffffffffff;
_DAT_0014c7e8 = ps_fetch_bin;
_DAT_0014c7f0 = 0xfffffffe;
_DAT_0014c7f8 = 0xffffffffffffffff;
_DAT_0014b1e0 = ps_fetch_bin;
_DAT_0014b1e8 = 0xfffffffe;
_DAT_0014b1f0 = 0xffffffffffffffff;
_DAT_0014c818 = ps_fetch_string;
_DAT_0014c820 = 0xfffffffe;
_DAT_0014c828 = 0xffffffffffffffff;
_DAT_0014b1c8 = ps_fetch_string;
_DAT_0014b1d0 = 0xfffffffe;
_DAT_0014b1d8 = 0xffffffffffffffff;
_DAT_0014c830 = ps_fetch_string;
_DAT_0014c838 = 0xfffffffe;
_DAT_0014c840 = 0xffffffffffffffff;
_DAT_0014c758 = ps_fetch_string;
_DAT_0014c760 = 0xfffffffe;
_DAT_0014c768 = 0xffffffffffffffff;
mysql_ps_fetch_functions = ps_fetch_string;
DAT_0014b068 = 0xfffffffe;
DAT_0014b070 = 0xffffffffffffffff;
DAT_0014c770 = ps_fetch_string;
DAT_0014c778 = 0xfffffffe;
DAT_0014c780 = 0xffffffffffffffff;
DAT_0014c788 = ps_fetch_string;
DAT_0014c790 = 0xfffffffe;
DAT_0014c798 = 0xffffffffffffffff;
DAT_0014c7a0 = ps_fetch_string;
DAT_0014c7a8 = 0xfffffffe;
DAT_0014c7b0 = 0xffffffffffffffff;
DAT_0014c848 = ps_fetch_string;
DAT_0014c850 = 0xfffffffe;
DAT_0014c858 = 0xffffffffffffffff;
mysql_ps_subsystem_initialized = 1;
return;
}
|
|
65,011 |
Catch::TextFlow::Column::const_iterator::const_iterator(Catch::TextFlow::Column const&)
|
AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp
|
Column::const_iterator::const_iterator( Column const& column ): m_column( column ) {
assert( m_column.m_width > m_column.m_indent );
assert( m_column.m_initialIndent == std::string::npos ||
m_column.m_width > m_column.m_initialIndent );
calcLength();
if ( m_lineLength == 0 ) {
m_lineStart = m_column.m_string.size();
}
}
|
O3
|
cpp
|
Catch::TextFlow::Column::const_iterator::const_iterator(Catch::TextFlow::Column const&):
pushq %rbx
movq %rdi, %rbx
movq %rsi, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movups %xmm0, 0x11(%rdi)
callq 0x6367a
cmpq $0x0, 0x10(%rbx)
jne 0x6390f
movq (%rbx), %rax
movq 0x8(%rax), %rax
movq %rax, 0x8(%rbx)
popq %rbx
retq
nop
|
_ZN5Catch8TextFlow6Column14const_iteratorC2ERKS1_:
push rbx; Alternative name is 'Catch::TextFlow::Column::const_iterator::const_iterator(Catch::TextFlow::Column const&)'
mov rbx, rdi
mov [rdi], rsi
xorps xmm0, xmm0
movups xmmword ptr [rdi+8], xmm0
movups xmmword ptr [rdi+11h], xmm0
call _ZN5Catch8TextFlow6Column14const_iterator10calcLengthEv; Catch::TextFlow::Column::const_iterator::calcLength(void)
cmp qword ptr [rbx+10h], 0
jnz short loc_6390F
mov rax, [rbx]
mov rax, [rax+8]
mov [rbx+8], rax
loc_6390F:
pop rbx
retn
|
unsigned long long Catch::TextFlow::Column::const_iterator::const_iterator(long long a1, long long a2)
{
unsigned long long result; // rax
*(_QWORD *)a1 = a2;
*(_OWORD *)(a1 + 8) = 0LL;
*(_OWORD *)(a1 + 17) = 0LL;
result = Catch::TextFlow::Column::const_iterator::calcLength((Catch::TextFlow::Column::const_iterator *)a1);
if ( !*(_QWORD *)(a1 + 16) )
{
result = *(_QWORD *)(*(_QWORD *)a1 + 8LL);
*(_QWORD *)(a1 + 8) = result;
}
return result;
}
|
const_iterator:
PUSH RBX
MOV RBX,RDI
MOV qword ptr [RDI],RSI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x8],XMM0
MOVUPS xmmword ptr [RDI + 0x11],XMM0
CALL 0x0016367a
CMP qword ptr [RBX + 0x10],0x0
JNZ 0x0016390f
MOV RAX,qword ptr [RBX]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x8],RAX
LAB_0016390f:
POP RBX
RET
|
/* Catch::TextFlow::Column::const_iterator::const_iterator(Catch::TextFlow::Column const&) */
void __thiscall
Catch::TextFlow::Column::const_iterator::const_iterator(const_iterator *this,Column *param_1)
{
*(Column **)this = param_1;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x11) = 0;
*(int8 *)(this + 0x19) = 0;
calcLength(this);
if (*(long *)(this + 0x10) == 0) {
*(int8 *)(this + 8) = *(int8 *)(*(long *)this + 8);
}
return;
}
|
|
65,012 |
ma_update_dynamic_record
|
eloqsql/storage/maria/ma_dynrec.c
|
my_bool _ma_update_dynamic_record(MARIA_HA *info, MARIA_RECORD_POS pos,
const uchar *oldrec __attribute__ ((unused)),
const uchar *record)
{
uint length= _ma_rec_pack(info, info->rec_buff + MARIA_REC_BUFF_OFFSET,
record);
if (!length)
return 1;
return (update_dynamic_record(info, pos,
info->rec_buff + MARIA_REC_BUFF_OFFSET,
length));
}
|
O0
|
c
|
ma_update_dynamic_record:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x3a0(%rax), %rsi
addq $0x18, %rsi
movq -0x28(%rbp), %rdx
callq 0x3ba70
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x2c(%rbp)
jne 0x3c213
movb $0x1, -0x1(%rbp)
jmp 0x3c237
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x3a0(%rax), %rdx
addq $0x18, %rdx
movl -0x2c(%rbp), %eax
movl %eax, %ecx
callq 0x3c240
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
|
_ma_update_dynamic_record:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rdi, [rbp+var_10]
mov rax, [rbp+var_10]
mov rsi, [rax+3A0h]
add rsi, 18h
mov rdx, [rbp+var_28]
call _ma_rec_pack
mov [rbp+var_2C], eax
cmp [rbp+var_2C], 0
jnz short loc_3C213
mov [rbp+var_1], 1
jmp short loc_3C237
loc_3C213:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rax, [rbp+var_10]
mov rdx, [rax+3A0h]
add rdx, 18h
mov eax, [rbp+var_2C]
mov ecx, eax
call update_dynamic_record
mov [rbp+var_1], al
loc_3C237:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
|
char ma_update_dynamic_record(long long a1, long long a2, long long a3, _BYTE *a4)
{
unsigned int v5; // [rsp+4h] [rbp-2Ch]
v5 = ma_rec_pack((_DWORD *)a1, (_BYTE *)(*(_QWORD *)(a1 + 928) + 24LL), a4);
if ( v5 )
return update_dynamic_record(a1, a2, *(_QWORD *)(a1 + 928) + 24LL, v5);
else
return 1;
}
|
_ma_update_dynamic_record:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
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 + -0x28]
CALL 0x0013ba70
MOV dword ptr [RBP + -0x2c],EAX
CMP dword ptr [RBP + -0x2c],0x0
JNZ 0x0013c213
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0013c237
LAB_0013c213:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x3a0]
ADD RDX,0x18
MOV EAX,dword ptr [RBP + -0x2c]
MOV ECX,EAX
CALL 0x0013c240
MOV byte ptr [RBP + -0x1],AL
LAB_0013c237:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1
_ma_update_dynamic_record(long param_1,int8 param_2,int8 param_3,int8 param_4)
{
int iVar1;
int1 local_9;
iVar1 = _ma_rec_pack(param_1,*(long *)(param_1 + 0x3a0) + 0x18,param_4);
if (iVar1 == 0) {
local_9 = 1;
}
else {
local_9 = update_dynamic_record(param_1,param_2,*(long *)(param_1 + 0x3a0) + 0x18,iVar1);
}
return local_9;
}
|
|
65,013 |
my_charset_loader_init_mysys
|
eloqsql/mysys/charset.c
|
void
my_charset_loader_init_mysys(MY_CHARSET_LOADER *loader)
{
loader->error[0]= '\0';
loader->once_alloc= my_once_alloc_c;
loader->malloc= my_malloc_c;
loader->realloc= my_realloc_c;
loader->free= my_free;
loader->reporter= my_charset_error_reporter;
loader->add_collation= add_collation;
}
|
O0
|
c
|
my_charset_loader_init_mysys:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movb $0x0, (%rax)
movq -0x8(%rbp), %rax
leaq 0x66(%rip), %rcx # 0x7c2a0
movq %rcx, 0x80(%rax)
movq -0x8(%rbp), %rax
leaq 0x74(%rip), %rcx # 0x7c2c0
movq %rcx, 0x88(%rax)
movq -0x8(%rbp), %rax
leaq 0x92(%rip), %rcx # 0x7c2f0
movq %rcx, 0x90(%rax)
movq -0x8(%rbp), %rax
leaq 0xf020(%rip), %rcx # 0x8b290
movq %rcx, 0x98(%rax)
leaq 0x1cda62(%rip), %rax # 0x249ce0
movq (%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xa0(%rax)
movq -0x8(%rbp), %rax
leaq 0x99(%rip), %rcx # 0x7c330
movq %rcx, 0xa8(%rax)
popq %rbp
retq
|
my_charset_loader_init_mysys:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov byte ptr [rax], 0
mov rax, [rbp+var_8]
lea rcx, my_once_alloc_c
mov [rax+80h], rcx
mov rax, [rbp+var_8]
lea rcx, my_malloc_c
mov [rax+88h], rcx
mov rax, [rbp+var_8]
lea rcx, my_realloc_c
mov [rax+90h], rcx
mov rax, [rbp+var_8]
lea rcx, my_free
mov [rax+98h], rcx
lea rax, my_charset_error_reporter
mov rcx, [rax]
mov rax, [rbp+var_8]
mov [rax+0A0h], rcx
mov rax, [rbp+var_8]
lea rcx, add_collation
mov [rax+0A8h], rcx
pop rbp
retn
|
long long my_charset_loader_init_mysys(long long a1)
{
long long result; // rax
*(_BYTE *)a1 = 0;
*(_QWORD *)(a1 + 128) = my_once_alloc_c;
*(_QWORD *)(a1 + 136) = my_malloc_c;
*(_QWORD *)(a1 + 144) = my_realloc_c;
*(_QWORD *)(a1 + 152) = my_free;
*(_QWORD *)(a1 + 160) = my_charset_error_reporter;
result = a1;
*(_QWORD *)(a1 + 168) = add_collation;
return result;
}
|
my_charset_loader_init_mysys:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x8]
LEA RCX,[0x17c2a0]
MOV qword ptr [RAX + 0x80],RCX
MOV RAX,qword ptr [RBP + -0x8]
LEA RCX,[0x17c2c0]
MOV qword ptr [RAX + 0x88],RCX
MOV RAX,qword ptr [RBP + -0x8]
LEA RCX,[0x17c2f0]
MOV qword ptr [RAX + 0x90],RCX
MOV RAX,qword ptr [RBP + -0x8]
LEA RCX,[0x18b290]
MOV qword ptr [RAX + 0x98],RCX
LEA RAX,[0x349ce0]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xa0],RCX
MOV RAX,qword ptr [RBP + -0x8]
LEA RCX,[0x17c330]
MOV qword ptr [RAX + 0xa8],RCX
POP RBP
RET
|
void my_charset_loader_init_mysys(int1 *param_1)
{
*param_1 = 0;
*(code **)(param_1 + 0x80) = my_once_alloc_c;
*(code **)(param_1 + 0x88) = my_malloc_c;
*(code **)(param_1 + 0x90) = my_realloc_c;
*(code **)(param_1 + 0x98) = my_free;
*(int **)(param_1 + 0xa0) = my_charset_error_reporter;
*(code **)(param_1 + 0xa8) = add_collation;
return;
}
|
|
65,014 |
ma_search_no_save
|
eloqsql/storage/maria/ma_search.c
|
static int _ma_search_no_save(register MARIA_HA *info, MARIA_KEY *key,
uint32 nextflag, register my_off_t pos,
MARIA_PINNED_PAGE **res_page_link,
uchar **res_page_buff)
{
my_bool last_key_not_used, buff_alloced;
int error,flag;
uint page_flag, nod_flag, used_length;
uchar *keypos,*maxpos;
uchar *lastkey;
MARIA_KEYDEF *keyinfo= key->keyinfo;
MARIA_PAGE page;
MARIA_PINNED_PAGE *page_link;
DBUG_ENTER("_ma_search");
DBUG_PRINT("enter",("page: %lu nextflag: %u lastpos: %lu",
(ulong) (pos / info->s->block_size),
nextflag, (ulong) info->cur_row.lastpos));
DBUG_EXECUTE("key", _ma_print_key(DBUG_FILE, key););
DBUG_ASSERT(info->last_key.keyinfo == key->keyinfo);
if (pos == HA_OFFSET_ERROR)
{
my_errno=HA_ERR_KEY_NOT_FOUND; /* Didn't find key */
info->cur_row.lastpos= HA_OFFSET_ERROR;
if (!(nextflag & (SEARCH_SMALLER | SEARCH_BIGGER | SEARCH_LAST)))
DBUG_RETURN(-1); /* Not found ; return error */
DBUG_RETURN(1); /* Search at upper levels */
}
alloc_on_stack(*info->stack_end_ptr, lastkey, buff_alloced,
keyinfo->max_store_length);
if (!lastkey)
DBUG_RETURN(1);
if (_ma_fetch_keypage(&page, info, keyinfo, pos,
PAGECACHE_LOCK_READ, DFLT_INIT_HITS, 0, 0))
goto err;
page_link= dynamic_element(&info->pinned_pages,
info->pinned_pages.elements-1,
MARIA_PINNED_PAGE*);
DBUG_DUMP("page", page.buff, page.size);
flag= (*keyinfo->bin_search)(key, &page, nextflag, &keypos, lastkey,
&last_key_not_used);
if (flag == MARIA_FOUND_WRONG_KEY)
{
_ma_print_error(info, HA_ERR_CRASHED, 0);
my_errno= HA_ERR_CRASHED;
goto err;
}
page_flag= page.flag;
used_length= page.size;
nod_flag= page.node;
maxpos= page.buff + used_length -1;
if (flag)
{
if ((error= _ma_search_no_save(info, key, nextflag,
_ma_kpos(nod_flag,keypos),
res_page_link, res_page_buff)) <= 0)
goto ret_error;
error= 1; /* Default return value */
if (flag >0)
{
if (nextflag & (SEARCH_SMALLER | SEARCH_LAST) &&
keypos == page.buff + info->s->keypage_header + nod_flag)
goto ret_error; /* Bigger than key */
}
else if (nextflag & SEARCH_BIGGER && keypos >= maxpos)
goto ret_error; /* Smaller than key */
}
else
{
/* Found matching key */
if ((nextflag & SEARCH_FIND) && nod_flag &&
((keyinfo->flag & (HA_NOSAME | HA_NULL_PART)) != HA_NOSAME ||
(key->flag & SEARCH_PART_KEY) || info->s->base.born_transactional))
{
if ((error= _ma_search_no_save(info, key, (nextflag | SEARCH_FIND) &
~(SEARCH_BIGGER | SEARCH_SMALLER |
SEARCH_LAST),
_ma_kpos(nod_flag,keypos),
res_page_link, res_page_buff)) >= 0 ||
my_errno != HA_ERR_KEY_NOT_FOUND)
goto ret_error;
}
}
if ((nextflag & (SEARCH_SMALLER | SEARCH_LAST)) && flag != 0)
{
uint not_used[2];
if (_ma_get_prev_key(&info->last_key, &page, keypos))
goto err;
/*
We have to use key->flag >> 1 here to transform
SEARCH_PAGE_KEY_HAS_TRANSID to SEARCH_USER_KEY_HAS_TRANSID
*/
if (!(nextflag & SEARCH_SMALLER) &&
ha_key_cmp(keyinfo->seg, info->last_key.data, key->data,
key->data_length + key->ref_length,
SEARCH_FIND | (key->flag >> 1) | info->last_key.flag,
not_used))
{
my_errno=HA_ERR_KEY_NOT_FOUND; /* Didn't find key */
goto err;
}
}
else
{
/* Set info->last_key to temporarily point to last key value */
info->last_key.data= lastkey;
/* Get key value (if not packed key) and position after key */
if (!(*keyinfo->get_key)(&info->last_key, page_flag, nod_flag, &keypos))
goto err;
memcpy(info->lastkey_buff, lastkey,
info->last_key.data_length + info->last_key.ref_length);
info->last_key.data= info->lastkey_buff;
}
info->cur_row.lastpos= _ma_row_pos_from_key(&info->last_key);
info->cur_row.trid= _ma_trid_from_key(&info->last_key);
/* Store offset to key */
info->keypos_offset= (uint) (keypos - page.buff);
info->maxpos_offset= (uint) (maxpos - page.buff);
info->int_nod_flag= nod_flag;
info->last_keypage= pos;
*res_page_link= page_link;
*res_page_buff= page.buff;
stack_alloc_free(lastkey, buff_alloced);
DBUG_PRINT("exit",("found key at %lu",(ulong) info->cur_row.lastpos));
DBUG_RETURN(0);
err:
DBUG_PRINT("exit",("Error: %d",my_errno));
info->cur_row.lastpos= HA_OFFSET_ERROR;
info->page_changed=1;
error= -1;
ret_error:
stack_alloc_free(lastkey, buff_alloced);
DBUG_RETURN(error);
}
|
O3
|
c
|
ma_search_no_save:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %edx, %r15d
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
cmpq $-0x1, %rcx
je 0x6c3b6
movq %r9, %r14
movq %r8, %r12
movq %rsi, -0x50(%rbp)
movq 0x8(%rsi), %rax
movq %rax, -0x68(%rbp)
movzwl 0xb0(%rax), %esi
leaq -0xc0(%rbp), %rdx
movq %rsi, (%rdx)
movq 0x78(%rbx), %rax
movq (%rax), %rax
subq %rdx, %rax
subq %rsi, %rax
jbe 0x6c2c8
cmpq $0x10000, %rax # imm = 0x10000
ja 0x6c2aa
cmpl $0x1000, %esi # imm = 0x1000
jb 0x6c2c8
cmpq $0x8001, %rax # imm = 0x8001
jb 0x6c2c8
movq %r12, -0x58(%rbp)
movq %r14, -0x60(%rbp)
movq %rsp, %r13
addl $0xf, %esi
andl $-0x10, %esi
subq %rsi, %r13
movq %r13, %rsp
movb $0x1, %al
movl %eax, -0x44(%rbp)
jmp 0x6c2f5
movq %rcx, %r13
movl $0x0, -0x44(%rbp)
movl $0x10010, %edx # imm = 0x10010
xorl %edi, %edi
callq 0x9fd41
testq %rax, %rax
je 0x6c3e3
movq %r12, -0x58(%rbp)
movq %r14, -0x60(%rbp)
movq %r13, %rcx
movq %rax, %r13
leaq -0xc0(%rbp), %rdi
movq %rbx, %rsi
movq -0x68(%rbp), %r12
movq %r12, %rdx
movq %rcx, %r14
movl $0x3, %r8d
movl $0x3, %r9d
pushq $0x0
pushq $0x0
callq 0x6f14e
addq $0x10, %rsp
testb %al, %al
jne 0x6c38e
movq %r14, -0x88(%rbp)
movl 0x2f0(%rbx), %eax
decl %eax
leaq (%rax,%rax,2), %rax
shlq $0x3, %rax
addq 0x2e8(%rbx), %rax
movq %rax, -0x80(%rbp)
leaq -0xc0(%rbp), %rsi
leaq -0x40(%rbp), %rcx
leaq -0x45(%rbp), %r9
movq -0x50(%rbp), %rdi
movl %r15d, %edx
movq %r13, %r8
callq *0xd8(%r12)
cmpl $0x7fffffff, %eax # imm = 0x7FFFFFFF
jne 0x6c40e
movq %rbx, %rdi
movl $0x7e, %esi
xorl %edx, %edx
callq 0x3fbe6
callq 0xa1ab2
movl $0x7e, (%rax)
movq $-0x1, 0x98(%rbx)
movb $0x1, 0x684(%rbx)
movl $0xffffffff, %r12d # imm = 0xFFFFFFFF
cmpb $0x0, -0x44(%rbp)
jne 0x6c3e9
movq %r13, %rdi
callq 0x9ff6e
jmp 0x6c3e9
callq 0xa1ab2
movl $0x78, (%rax)
movq $-0x1, 0x98(%rbx)
andl $0x118, %r15d # imm = 0x118
xorl %r12d, %r12d
cmpl $0x1, %r15d
sbbl %r12d, %r12d
orl $0x1, %r12d
jmp 0x6c3e9
movl $0x1, %r12d
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x6c6b6
movl %r12d, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %r14d
movl -0x94(%rbp), %esi
movl -0xa0(%rbp), %eax
movl -0x98(%rbp), %edx
movq -0xb0(%rbp), %rcx
addq %rcx, %rax
decq %rax
movq %rax, -0x78(%rbp)
testl %r14d, %r14d
movq %rdx, -0x70(%rbp)
je 0x6c4b2
movl %esi, -0x34(%rbp)
movq -0x40(%rbp), %rsi
movl %edx, %edi
callq 0x6d15f
movq %rbx, %rdi
movq -0x50(%rbp), %rsi
movl %r15d, %edx
movq %rax, %rcx
movq -0x58(%rbp), %r8
movq -0x60(%rbp), %r9
callq 0x6c22f
testl %eax, %eax
jle 0x6c52a
testl %r14d, %r14d
jle 0x6c532
testl $0x110, %r15d # imm = 0x110
movq -0x70(%rbp), %rdx
movl -0x34(%rbp), %esi
je 0x6c5f4
movq (%rbx), %rax
movl 0x744(%rax), %eax
addq -0xb0(%rbp), %rax
addq %rdx, %rax
cmpq %rax, -0x40(%rbp)
jne 0x6c560
movl $0x1, %r12d
jmp 0x6c3a6
testl %edx, %edx
setne %al
andb %r15b, %al
cmpb $0x1, %al
jne 0x6c5f4
movq -0x68(%rbp), %rax
movzwl 0xa2(%rax), %eax
andl $0x11, %eax
cmpw $0x1, %ax
jne 0x6c4f0
movq -0x50(%rbp), %rax
testb $0x4, 0x1a(%rax)
jne 0x6c4f0
movq (%rbx), %rax
cmpb $0x0, 0x44c(%rax)
je 0x6c5f4
movl %esi, -0x34(%rbp)
andl $0xfffffee7, %r15d # imm = 0xFFFFFEE7
movq -0x40(%rbp), %rsi
movl %edx, %edi
movq %rdx, %r14
callq 0x6d15f
movq %rbx, %rdi
movq -0x50(%rbp), %rsi
movl %r15d, %edx
movq %rax, %rcx
movq -0x58(%rbp), %r8
movq -0x60(%rbp), %r9
callq 0x6c22f
testl %eax, %eax
js 0x6c5da
movl %eax, %r12d
jmp 0x6c3a6
testb $0x8, %r15b
movq -0x70(%rbp), %rdx
movl -0x34(%rbp), %esi
je 0x6c553
movl $0x1, %r12d
movq -0x78(%rbp), %rax
cmpq %rax, -0x40(%rbp)
jae 0x6c3a6
testl $0x110, %r15d # imm = 0x110
je 0x6c5f4
leaq 0x200(%rbx), %rdi
movq -0x40(%rbp), %rdx
leaq -0xc0(%rbp), %rsi
callq 0x6f00b
testb %al, %al
jne 0x6c38e
testb $0x10, %r15b
jne 0x6c641
movq -0x68(%rbp), %rax
movq 0xc0(%rax), %rdi
movq 0x200(%rbx), %rsi
movq -0x50(%rbp), %rax
movq (%rax), %rdx
movl 0x14(%rax), %ecx
addl 0x10(%rax), %ecx
movl 0x18(%rax), %r8d
shrl %r8d
orl 0x218(%rbx), %r8d
orl $0x1, %r8d
leaq -0xc8(%rbp), %r9
callq 0x9e7b2
testl %eax, %eax
je 0x6c641
callq 0xa1ab2
movl $0x78, (%rax)
jmp 0x6c38e
callq 0xa1ab2
movl $0xffffffff, %r12d # imm = 0xFFFFFFFF
cmpl $0x78, (%rax)
movq %r14, %rdx
movl -0x34(%rbp), %esi
jne 0x6c3a6
leaq 0x200(%rbx), %rdi
movq %r13, 0x200(%rbx)
leaq -0x40(%rbp), %rcx
movq -0x68(%rbp), %rax
callq *0xe0(%rax)
testl %eax, %eax
je 0x6c38e
movq 0x388(%rbx), %rdi
movl 0x214(%rbx), %edx
addl 0x210(%rbx), %edx
movq %r13, %rsi
callq 0x29080
movq 0x388(%rbx), %rax
movq %rax, 0x200(%rbx)
leaq 0x200(%rbx), %r14
movq %r14, %rdi
callq 0x6d2c4
movq %rax, 0x98(%rbx)
movq %r14, %rdi
callq 0x6d37c
movq %rax, 0xc0(%rbx)
movl -0x40(%rbp), %eax
movq -0xb0(%rbp), %rcx
subl %ecx, %eax
movl %eax, 0x3c0(%rbx)
movq -0x78(%rbp), %rax
subl %ecx, %eax
movl %eax, 0x3c4(%rbx)
movq -0x70(%rbp), %rax
movl %eax, 0x3d0(%rbx)
movq -0x88(%rbp), %rax
movq %rax, 0x440(%rbx)
movq -0x58(%rbp), %rax
movq -0x80(%rbp), %rdx
movq %rdx, (%rax)
movq -0x60(%rbp), %rax
movq %rcx, (%rax)
xorl %r12d, %r12d
jmp 0x6c3a6
callq 0x29250
|
_ma_search_no_save:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A8h
mov r15d, edx
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
cmp rcx, 0FFFFFFFFFFFFFFFFh
jz loc_6C3B6
mov r14, r9
mov r12, r8
mov [rbp+var_50], rsi
mov rax, [rsi+8]
mov [rbp+var_68], rax
movzx esi, word ptr [rax+0B0h]
lea rdx, [rbp+var_C0]
mov [rdx], rsi
mov rax, [rbx+78h]
mov rax, [rax]
sub rax, rdx
sub rax, rsi
jbe short loc_6C2C8
cmp rax, offset stru_10000
ja short loc_6C2AA
cmp esi, 1000h
jb short loc_6C2C8
cmp rax, 8001h
jb short loc_6C2C8
loc_6C2AA:
mov [rbp+var_58], r12
mov [rbp+var_60], r14
mov r13, rsp
add esi, 0Fh
and esi, 0FFFFFFF0h
sub r13, rsi
mov rsp, r13
mov al, 1
mov [rbp+var_44], eax
jmp short loc_6C2F5
loc_6C2C8:
mov r13, rcx
mov [rbp+var_44], 0
mov edx, 10010h
xor edi, edi
call my_malloc
test rax, rax
jz loc_6C3E3
mov [rbp+var_58], r12
mov [rbp+var_60], r14
mov rcx, r13
mov r13, rax
loc_6C2F5:
lea rdi, [rbp+var_C0]
mov rsi, rbx
mov r12, [rbp+var_68]
mov rdx, r12
mov r14, rcx
mov r8d, 3
mov r9d, 3
push 0
push 0
call _ma_fetch_keypage
add rsp, 10h
test al, al
jnz short loc_6C38E
mov [rbp+var_88], r14
mov eax, [rbx+2F0h]
dec eax
lea rax, [rax+rax*2]
shl rax, 3
add rax, [rbx+2E8h]
mov [rbp+var_80], rax
lea rsi, [rbp+var_C0]
lea rcx, [rbp+var_40]
lea r9, [rbp+var_45]
mov rdi, [rbp+var_50]
mov edx, r15d
mov r8, r13
call qword ptr [r12+0D8h]
cmp eax, 7FFFFFFFh
jnz loc_6C40E
mov rdi, rbx
mov esi, 7Eh ; '~'
xor edx, edx
call _ma_print_error
call _my_thread_var
mov dword ptr [rax], 7Eh ; '~'
loc_6C38E:
mov qword ptr [rbx+98h], 0FFFFFFFFFFFFFFFFh
mov byte ptr [rbx+684h], 1
mov r12d, 0FFFFFFFFh
loc_6C3A6:
cmp byte ptr [rbp+var_44], 0
jnz short loc_6C3E9
mov rdi, r13
call my_free
jmp short loc_6C3E9
loc_6C3B6:
call _my_thread_var
mov dword ptr [rax], 78h ; 'x'
mov qword ptr [rbx+98h], 0FFFFFFFFFFFFFFFFh
and r15d, 118h
xor r12d, r12d
cmp r15d, 1
sbb r12d, r12d
or r12d, 1
jmp short loc_6C3E9
loc_6C3E3:
mov r12d, 1
loc_6C3E9:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz loc_6C6B6
mov eax, r12d
lea rsp, [rbp-28h]
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_6C40E:
mov r14d, eax
mov esi, [rbp+var_94]
mov eax, [rbp+var_A0]
mov edx, [rbp+var_98]
mov rcx, [rbp+var_B0]
add rax, rcx
dec rax
mov [rbp+var_78], rax
test r14d, r14d
mov [rbp+var_70], rdx
jz short loc_6C4B2
mov [rbp+var_34], esi
mov rsi, [rbp+var_40]
mov edi, edx
call _ma_kpos
mov rdi, rbx
mov rsi, [rbp+var_50]
mov edx, r15d
mov rcx, rax
mov r8, [rbp+var_58]
mov r9, [rbp+var_60]
call _ma_search_no_save
test eax, eax
jle loc_6C52A
test r14d, r14d
jle loc_6C532
test r15d, 110h
mov rdx, [rbp+var_70]
mov esi, [rbp+var_34]
jz loc_6C5F4
mov rax, [rbx]
mov eax, [rax+744h]
add rax, [rbp+var_B0]
add rax, rdx
cmp [rbp+var_40], rax
jnz loc_6C560
mov r12d, 1
jmp loc_6C3A6
loc_6C4B2:
test edx, edx
setnz al
and al, r15b
cmp al, 1
jnz loc_6C5F4
mov rax, [rbp+var_68]
movzx eax, word ptr [rax+0A2h]
and eax, 11h
cmp ax, 1
jnz short loc_6C4F0
mov rax, [rbp+var_50]
test byte ptr [rax+1Ah], 4
jnz short loc_6C4F0
mov rax, [rbx]
cmp byte ptr [rax+44Ch], 0
jz loc_6C5F4
loc_6C4F0:
mov [rbp+var_34], esi
and r15d, 0FFFFFEE7h
mov rsi, [rbp+var_40]
mov edi, edx
mov r14, rdx
call _ma_kpos
mov rdi, rbx
mov rsi, [rbp+var_50]
mov edx, r15d
mov rcx, rax
mov r8, [rbp+var_58]
mov r9, [rbp+var_60]
call _ma_search_no_save
test eax, eax
js loc_6C5DA
loc_6C52A:
mov r12d, eax
jmp loc_6C3A6
loc_6C532:
test r15b, 8
mov rdx, [rbp+var_70]
mov esi, [rbp+var_34]
jz short loc_6C553
mov r12d, 1
mov rax, [rbp+var_78]
cmp [rbp+var_40], rax
jnb loc_6C3A6
loc_6C553:
test r15d, 110h
jz loc_6C5F4
loc_6C560:
lea rdi, [rbx+200h]
mov rdx, [rbp+var_40]
lea rsi, [rbp+var_C0]
call _ma_get_prev_key
test al, al
jnz loc_6C38E
test r15b, 10h
jnz loc_6C641
mov rax, [rbp+var_68]
mov rdi, [rax+0C0h]
mov rsi, [rbx+200h]
mov rax, [rbp+var_50]
mov rdx, [rax]
mov ecx, [rax+14h]
add ecx, [rax+10h]
mov r8d, [rax+18h]
shr r8d, 1
or r8d, [rbx+218h]
or r8d, 1
lea r9, [rbp+var_C8]
call ha_key_cmp
test eax, eax
jz short loc_6C641
call _my_thread_var
mov dword ptr [rax], 78h ; 'x'
jmp loc_6C38E
loc_6C5DA:
call _my_thread_var
mov r12d, 0FFFFFFFFh
cmp dword ptr [rax], 78h ; 'x'
mov rdx, r14
mov esi, [rbp+var_34]
jnz loc_6C3A6
loc_6C5F4:
lea rdi, [rbx+200h]
mov [rbx+200h], r13
lea rcx, [rbp+var_40]
mov rax, [rbp+var_68]
call qword ptr [rax+0E0h]
test eax, eax
jz loc_6C38E
mov rdi, [rbx+388h]
mov edx, [rbx+214h]
add edx, [rbx+210h]
mov rsi, r13
call _memcpy
mov rax, [rbx+388h]
mov [rbx+200h], rax
loc_6C641:
lea r14, [rbx+200h]
mov rdi, r14
call _ma_row_pos_from_key
mov [rbx+98h], rax
mov rdi, r14
call _ma_trid_from_key
mov [rbx+0C0h], rax
mov eax, dword ptr [rbp+var_40]
mov rcx, [rbp+var_B0]
sub eax, ecx
mov [rbx+3C0h], eax
mov rax, [rbp+var_78]
sub eax, ecx
mov [rbx+3C4h], eax
mov rax, [rbp+var_70]
mov [rbx+3D0h], eax
mov rax, [rbp+var_88]
mov [rbx+440h], rax
mov rax, [rbp+var_58]
mov rdx, [rbp+var_80]
mov [rax], rdx
mov rax, [rbp+var_60]
mov [rax], rcx
xor r12d, r12d
jmp loc_6C3A6
loc_6C6B6:
call ___stack_chk_fail
|
long long ma_search_no_save(long long a1, long long a2, unsigned int a3, long long a4, long long *a5, _QWORD *a6)
{
unsigned long long v10; // rsi
unsigned long long v11; // rax
bool v12; // cc
unsigned long long v13; // rax
char *v14; // r13
long long v15; // r13
long long v16; // rax
long long v17; // r12
long long v18; // r14
int v19; // eax
long long v20; // rcx
long long v21; // r8
int v22; // r9d
unsigned int v23; // r12d
int v25; // r14d
long long v26; // rsi
long long v27; // rdx
long long v28; // rax
int v29; // eax
long long v30; // r14
long long v31; // rax
long long v32; // rdi
_DWORD *v33; // rax
long long v34; // rcx
char v36[8]; // [rsp+8h] [rbp-C8h] BYREF
_QWORD v37[2]; // [rsp+10h] [rbp-C0h] BYREF
long long v38; // [rsp+20h] [rbp-B0h]
unsigned int v39; // [rsp+30h] [rbp-A0h]
unsigned int v40; // [rsp+38h] [rbp-98h]
unsigned int v41; // [rsp+3Ch] [rbp-94h]
long long v42; // [rsp+48h] [rbp-88h]
long long v43; // [rsp+50h] [rbp-80h]
unsigned long long v44; // [rsp+58h] [rbp-78h]
long long v45; // [rsp+60h] [rbp-70h]
long long v46; // [rsp+68h] [rbp-68h]
_QWORD *v47; // [rsp+70h] [rbp-60h]
long long *v48; // [rsp+78h] [rbp-58h]
long long v49; // [rsp+80h] [rbp-50h]
char v50; // [rsp+8Bh] [rbp-45h] BYREF
int v51; // [rsp+8Ch] [rbp-44h]
unsigned long long v52; // [rsp+90h] [rbp-40h] BYREF
unsigned int v53; // [rsp+9Ch] [rbp-34h]
unsigned long long v54; // [rsp+A0h] [rbp-30h]
v54 = __readfsqword(0x28u);
if ( a4 == -1 )
{
*(_DWORD *)my_thread_var(a1) = 120;
*(_QWORD *)(a1 + 152) = -1LL;
return (a3 & 0x118) == 0 ? -1 : 1;
}
v49 = a2;
v46 = *(_QWORD *)(a2 + 8);
v10 = *(unsigned __int16 *)(v46 + 176);
v37[0] = v10;
v11 = **(_QWORD **)(a1 + 120) - (_QWORD)v37;
v12 = v11 <= v10;
v13 = v11 - v10;
if ( v12 || v13 <= (unsigned long long)&stru_10000 && ((unsigned int)v10 < 0x1000 || v13 < 0x8001) )
{
v15 = a4;
v51 = 0;
v16 = my_malloc(0LL, v10, 65552LL);
if ( !v16 )
return 1;
v48 = a5;
v47 = a6;
a4 = v15;
v14 = (char *)v16;
}
else
{
v48 = a5;
v47 = a6;
v14 = &v36[-(((_DWORD)v10 + 15) & 0xFFFFFFF0) - 8];
LOBYTE(v13) = 1;
v51 = v13;
}
v17 = v46;
v18 = a4;
if ( (unsigned __int8)ma_fetch_keypage((unsigned int)v37, a1, v46, a4, 3, 3, 0LL) )
goto LABEL_12;
v42 = v18;
v43 = *(_QWORD *)(a1 + 744) + 24LL * (unsigned int)(*(_DWORD *)(a1 + 752) - 1);
v19 = (*(long long ( **)(long long, _QWORD *, _QWORD, unsigned long long *, char *, char *))(v17 + 216))(
v49,
v37,
a3,
&v52,
v14,
&v50);
if ( v19 == 0x7FFFFFFF )
{
ma_print_error((_DWORD *)a1, 126, 0, v20, v21, v22);
*(_DWORD *)my_thread_var(a1) = 126;
LABEL_12:
*(_QWORD *)(a1 + 152) = -1LL;
*(_BYTE *)(a1 + 1668) = 1;
v23 = -1;
goto LABEL_13;
}
v25 = v19;
v26 = v41;
v27 = v40;
v44 = v38 + v39 - 1;
v45 = v40;
if ( !v19 )
{
if ( ((unsigned __int8)a3 & (v40 != 0)) != 1
|| (*(_WORD *)(v46 + 162) & 0x11) == 1 && (*(_BYTE *)(v49 + 26) & 4) == 0 && !*(_BYTE *)(*(_QWORD *)a1 + 1100LL) )
{
goto LABEL_38;
}
v53 = v41;
v30 = v40;
v31 = ma_kpos(v40, v52);
v29 = ma_search_no_save(a1, v49, a3 & 0xFFFFFEE7, v31, v48, v47);
if ( v29 < 0 )
{
v33 = (_DWORD *)my_thread_var(a1);
v23 = -1;
v27 = v30;
v26 = v53;
if ( *v33 != 120 )
goto LABEL_13;
goto LABEL_38;
}
LABEL_29:
v23 = v29;
goto LABEL_13;
}
v53 = v41;
v28 = ma_kpos(v40, v52);
v29 = ma_search_no_save(a1, v49, a3, v28, v48, v47);
if ( v29 <= 0 )
goto LABEL_29;
if ( v25 > 0 )
{
v27 = v45;
v26 = v53;
if ( (a3 & 0x110) != 0 )
{
if ( v52 == v45 + v38 + *(unsigned int *)(*(_QWORD *)a1 + 1860LL) )
{
v23 = 1;
goto LABEL_13;
}
goto LABEL_33;
}
goto LABEL_38;
}
v27 = v45;
v26 = v53;
if ( (a3 & 8) == 0 || (v23 = 1, v52 < v44) )
{
if ( (a3 & 0x110) != 0 )
{
LABEL_33:
if ( (unsigned __int8)ma_get_prev_key(a1 + 512, v37, v52) )
goto LABEL_12;
if ( (a3 & 0x10) == 0 )
{
v32 = *(_QWORD *)(v46 + 192);
if ( (unsigned int)ha_key_cmp(
v32,
*(_QWORD *)(a1 + 512),
*(_QWORD *)v49,
(unsigned int)(*(_DWORD *)(v49 + 16) + *(_DWORD *)(v49 + 20)),
*(_DWORD *)(a1 + 536) | (*(_DWORD *)(v49 + 24) >> 1) | 1u,
v36) )
{
*(_DWORD *)my_thread_var(v32) = 120;
goto LABEL_12;
}
}
goto LABEL_40;
}
LABEL_38:
*(_QWORD *)(a1 + 512) = v14;
if ( !(*(unsigned int ( **)(long long, long long, long long, unsigned long long *))(v46 + 224))(
a1 + 512,
v26,
v27,
&v52) )
goto LABEL_12;
memcpy(*(_QWORD *)(a1 + 904), v14, (unsigned int)(*(_DWORD *)(a1 + 528) + *(_DWORD *)(a1 + 532)));
*(_QWORD *)(a1 + 512) = *(_QWORD *)(a1 + 904);
LABEL_40:
*(_QWORD *)(a1 + 152) = ma_row_pos_from_key(a1 + 512);
*(_QWORD *)(a1 + 192) = ma_trid_from_key(a1 + 512);
v34 = v38;
*(_DWORD *)(a1 + 960) = v52 - v38;
*(_DWORD *)(a1 + 964) = v44 - v34;
*(_DWORD *)(a1 + 976) = v45;
*(_QWORD *)(a1 + 1088) = v42;
*v48 = v43;
*v47 = v34;
v23 = 0;
}
LABEL_13:
if ( !(_BYTE)v51 )
my_free(v14);
return v23;
}
|
_ma_search_no_save:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa8
MOV R15D,EDX
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
CMP RCX,-0x1
JZ 0x0016c3b6
MOV R14,R9
MOV R12,R8
MOV qword ptr [RBP + -0x50],RSI
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RBP + -0x68],RAX
MOVZX ESI,word ptr [RAX + 0xb0]
LEA RDX,[RBP + -0xc0]
MOV qword ptr [RDX],RSI
MOV RAX,qword ptr [RBX + 0x78]
MOV RAX,qword ptr [RAX]
SUB RAX,RDX
SUB RAX,RSI
JBE 0x0016c2c8
CMP RAX,0x10000
JA 0x0016c2aa
CMP ESI,0x1000
JC 0x0016c2c8
CMP RAX,0x8001
JC 0x0016c2c8
LAB_0016c2aa:
MOV qword ptr [RBP + -0x58],R12
MOV qword ptr [RBP + -0x60],R14
MOV R13,RSP
ADD ESI,0xf
AND ESI,0xfffffff0
SUB R13,RSI
MOV RSP,R13
MOV AL,0x1
MOV dword ptr [RBP + -0x44],EAX
JMP 0x0016c2f5
LAB_0016c2c8:
MOV R13,RCX
MOV dword ptr [RBP + -0x44],0x0
MOV EDX,0x10010
XOR EDI,EDI
CALL 0x0019fd41
TEST RAX,RAX
JZ 0x0016c3e3
MOV qword ptr [RBP + -0x58],R12
MOV qword ptr [RBP + -0x60],R14
MOV RCX,R13
MOV R13,RAX
LAB_0016c2f5:
LEA RDI,[RBP + -0xc0]
MOV RSI,RBX
MOV R12,qword ptr [RBP + -0x68]
MOV RDX,R12
MOV R14,RCX
MOV R8D,0x3
MOV R9D,0x3
PUSH 0x0
PUSH 0x0
CALL 0x0016f14e
ADD RSP,0x10
TEST AL,AL
JNZ 0x0016c38e
MOV qword ptr [RBP + -0x88],R14
MOV EAX,dword ptr [RBX + 0x2f0]
DEC EAX
LEA RAX,[RAX + RAX*0x2]
SHL RAX,0x3
ADD RAX,qword ptr [RBX + 0x2e8]
MOV qword ptr [RBP + -0x80],RAX
LEA RSI,[RBP + -0xc0]
LEA RCX,[RBP + -0x40]
LEA R9,[RBP + -0x45]
MOV RDI,qword ptr [RBP + -0x50]
MOV EDX,R15D
MOV R8,R13
CALL qword ptr [R12 + 0xd8]
CMP EAX,0x7fffffff
JNZ 0x0016c40e
MOV RDI,RBX
MOV ESI,0x7e
XOR EDX,EDX
CALL 0x0013fbe6
CALL 0x001a1ab2
MOV dword ptr [RAX],0x7e
LAB_0016c38e:
MOV qword ptr [RBX + 0x98],-0x1
MOV byte ptr [RBX + 0x684],0x1
MOV R12D,0xffffffff
LAB_0016c3a6:
CMP byte ptr [RBP + -0x44],0x0
JNZ 0x0016c3e9
MOV RDI,R13
CALL 0x0019ff6e
JMP 0x0016c3e9
LAB_0016c3b6:
CALL 0x001a1ab2
MOV dword ptr [RAX],0x78
MOV qword ptr [RBX + 0x98],-0x1
AND R15D,0x118
XOR R12D,R12D
CMP R15D,0x1
SBB R12D,R12D
OR R12D,0x1
JMP 0x0016c3e9
LAB_0016c3e3:
MOV R12D,0x1
LAB_0016c3e9:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0016c6b6
MOV EAX,R12D
LEA RSP,[RBP + -0x28]
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0016c40e:
MOV R14D,EAX
MOV ESI,dword ptr [RBP + -0x94]
MOV EAX,dword ptr [RBP + -0xa0]
MOV EDX,dword ptr [RBP + -0x98]
MOV RCX,qword ptr [RBP + -0xb0]
ADD RAX,RCX
DEC RAX
MOV qword ptr [RBP + -0x78],RAX
TEST R14D,R14D
MOV qword ptr [RBP + -0x70],RDX
JZ 0x0016c4b2
MOV dword ptr [RBP + -0x34],ESI
MOV RSI,qword ptr [RBP + -0x40]
MOV EDI,EDX
CALL 0x0016d15f
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0x50]
MOV EDX,R15D
MOV RCX,RAX
MOV R8,qword ptr [RBP + -0x58]
MOV R9,qword ptr [RBP + -0x60]
CALL 0x0016c22f
TEST EAX,EAX
JLE 0x0016c52a
TEST R14D,R14D
JLE 0x0016c532
TEST R15D,0x110
MOV RDX,qword ptr [RBP + -0x70]
MOV ESI,dword ptr [RBP + -0x34]
JZ 0x0016c5f4
MOV RAX,qword ptr [RBX]
MOV EAX,dword ptr [RAX + 0x744]
ADD RAX,qword ptr [RBP + -0xb0]
ADD RAX,RDX
CMP qword ptr [RBP + -0x40],RAX
JNZ 0x0016c560
MOV R12D,0x1
JMP 0x0016c3a6
LAB_0016c4b2:
TEST EDX,EDX
SETNZ AL
AND AL,R15B
CMP AL,0x1
JNZ 0x0016c5f4
MOV RAX,qword ptr [RBP + -0x68]
MOVZX EAX,word ptr [RAX + 0xa2]
AND EAX,0x11
CMP AX,0x1
JNZ 0x0016c4f0
MOV RAX,qword ptr [RBP + -0x50]
TEST byte ptr [RAX + 0x1a],0x4
JNZ 0x0016c4f0
MOV RAX,qword ptr [RBX]
CMP byte ptr [RAX + 0x44c],0x0
JZ 0x0016c5f4
LAB_0016c4f0:
MOV dword ptr [RBP + -0x34],ESI
AND R15D,0xfffffee7
MOV RSI,qword ptr [RBP + -0x40]
MOV EDI,EDX
MOV R14,RDX
CALL 0x0016d15f
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0x50]
MOV EDX,R15D
MOV RCX,RAX
MOV R8,qword ptr [RBP + -0x58]
MOV R9,qword ptr [RBP + -0x60]
CALL 0x0016c22f
TEST EAX,EAX
JS 0x0016c5da
LAB_0016c52a:
MOV R12D,EAX
JMP 0x0016c3a6
LAB_0016c532:
TEST R15B,0x8
MOV RDX,qword ptr [RBP + -0x70]
MOV ESI,dword ptr [RBP + -0x34]
JZ 0x0016c553
MOV R12D,0x1
MOV RAX,qword ptr [RBP + -0x78]
CMP qword ptr [RBP + -0x40],RAX
JNC 0x0016c3a6
LAB_0016c553:
TEST R15D,0x110
JZ 0x0016c5f4
LAB_0016c560:
LEA RDI,[RBX + 0x200]
MOV RDX,qword ptr [RBP + -0x40]
LEA RSI,[RBP + -0xc0]
CALL 0x0016f00b
TEST AL,AL
JNZ 0x0016c38e
TEST R15B,0x10
JNZ 0x0016c641
MOV RAX,qword ptr [RBP + -0x68]
MOV RDI,qword ptr [RAX + 0xc0]
MOV RSI,qword ptr [RBX + 0x200]
MOV RAX,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RAX]
MOV ECX,dword ptr [RAX + 0x14]
ADD ECX,dword ptr [RAX + 0x10]
MOV R8D,dword ptr [RAX + 0x18]
SHR R8D,0x1
OR R8D,dword ptr [RBX + 0x218]
OR R8D,0x1
LEA R9,[RBP + -0xc8]
CALL 0x0019e7b2
TEST EAX,EAX
JZ 0x0016c641
CALL 0x001a1ab2
MOV dword ptr [RAX],0x78
JMP 0x0016c38e
LAB_0016c5da:
CALL 0x001a1ab2
MOV R12D,0xffffffff
CMP dword ptr [RAX],0x78
MOV RDX,R14
MOV ESI,dword ptr [RBP + -0x34]
JNZ 0x0016c3a6
LAB_0016c5f4:
LEA RDI,[RBX + 0x200]
MOV qword ptr [RBX + 0x200],R13
LEA RCX,[RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x68]
CALL qword ptr [RAX + 0xe0]
TEST EAX,EAX
JZ 0x0016c38e
MOV RDI,qword ptr [RBX + 0x388]
MOV EDX,dword ptr [RBX + 0x214]
ADD EDX,dword ptr [RBX + 0x210]
MOV RSI,R13
CALL 0x00129080
MOV RAX,qword ptr [RBX + 0x388]
MOV qword ptr [RBX + 0x200],RAX
LAB_0016c641:
LEA R14,[RBX + 0x200]
MOV RDI,R14
CALL 0x0016d2c4
MOV qword ptr [RBX + 0x98],RAX
MOV RDI,R14
CALL 0x0016d37c
MOV qword ptr [RBX + 0xc0],RAX
MOV EAX,dword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0xb0]
SUB EAX,ECX
MOV dword ptr [RBX + 0x3c0],EAX
MOV RAX,qword ptr [RBP + -0x78]
SUB EAX,ECX
MOV dword ptr [RBX + 0x3c4],EAX
MOV RAX,qword ptr [RBP + -0x70]
MOV dword ptr [RBX + 0x3d0],EAX
MOV RAX,qword ptr [RBP + -0x88]
MOV qword ptr [RBX + 0x440],RAX
MOV RAX,qword ptr [RBP + -0x58]
MOV RDX,qword ptr [RBP + -0x80]
MOV qword ptr [RAX],RDX
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX],RCX
XOR R12D,R12D
JMP 0x0016c3a6
LAB_0016c6b6:
CALL 0x00129250
|
uint _ma_search_no_save(long *param_1,int8 *param_2,uint param_3,long param_4,long *param_5,
long *param_6)
{
ushort uVar1;
int iVar2;
uint uVar3;
code *pcVar4;
int8 uVar5;
void *__dest;
long *plVar6;
long *plVar7;
int8 *puVar8;
char cVar9;
int iVar10;
uint uVar11;
ulong uVar12;
int1 *__src;
int4 *puVar13;
int8 uVar14;
int *piVar15;
long lVar16;
int1 *puVar17;
int1 *puVar18;
int4 uVar19;
long in_FS_OFFSET;
int1 auStack_d8 [8];
int1 local_d0 [8];
ulong local_c8 [2];
long local_b8;
uint local_a8;
uint local_a0;
int4 local_9c;
long local_90;
long local_88;
ulong local_80;
ulong local_78;
long local_70;
long *local_68;
long *local_60;
int8 *local_58;
int1 local_4d;
int4 local_4c;
int local_48;
int4 uStack_44;
int4 local_3c;
long local_38;
puVar17 = auStack_d8;
puVar18 = auStack_d8;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
if (param_4 == -1) {
puVar13 = (int4 *)_my_thread_var();
*puVar13 = 0x78;
param_1[0x13] = -1;
uVar11 = -(uint)((param_3 & 0x118) == 0) | 1;
goto LAB_0016c3e9;
}
local_70 = param_2[1];
uVar1 = *(ushort *)(local_70 + 0xb0);
local_c8[0] = (ulong)uVar1;
uVar12 = (*(long *)param_1[0xf] - (long)local_c8) - local_c8[0];
local_58 = param_2;
if (((ulong)(*(long *)param_1[0xf] - (long)local_c8) < local_c8[0] || uVar12 == 0) ||
((uVar12 < 0x10001 && ((uVar1 < 0x1000 || (uVar12 < 0x8001)))))) {
local_4c = 0;
__src = (int1 *)my_malloc(0,local_c8[0],0x10010);
if (__src == (int1 *)0x0) {
uVar11 = 1;
puVar18 = auStack_d8;
goto LAB_0016c3e9;
}
}
else {
puVar17 = auStack_d8 + -(ulong)(uVar1 + 0xf & 0xfffffff0);
local_4c = (int4)CONCAT71((int7)(uVar12 >> 8),1);
__src = puVar17;
}
lVar16 = local_70;
local_68 = param_6;
local_60 = param_5;
*(int8 *)(puVar17 + -8) = 0;
*(int8 *)(puVar17 + -0x10) = 0;
*(int8 *)(puVar17 + -0x18) = 0x16c31e;
cVar9 = _ma_fetch_keypage(local_c8,param_1,lVar16,param_4,3,3);
puVar8 = local_58;
if (cVar9 == '\0') {
local_88 = (ulong)((int)param_1[0x5e] - 1) * 0x18 + param_1[0x5d];
pcVar4 = *(code **)(lVar16 + 0xd8);
local_90 = param_4;
*(int8 *)(puVar17 + -8) = 0x16c369;
iVar10 = (*pcVar4)(puVar8,local_c8,param_3,&local_48,__src,&local_4d);
if (iVar10 == 0x7fffffff) {
*(int8 *)(puVar17 + -8) = 0x16c383;
_ma_print_error(param_1,0x7e,0);
*(int8 *)(puVar17 + -8) = 0x16c388;
puVar13 = (int4 *)_my_thread_var();
*puVar13 = 0x7e;
goto LAB_0016c38e;
}
uVar12 = (ulong)local_a0;
local_80 = ((ulong)local_a8 + local_b8) - 1;
local_78 = uVar12;
if (iVar10 == 0) {
uVar19 = local_9c;
if (((local_a0 != 0 & (byte)param_3) != 1) ||
((((*(ushort *)(local_70 + 0xa2) & 0x11) == 1 &&
((*(byte *)((long)local_58 + 0x1a) & 4) == 0)) &&
(uVar19 = local_9c, *(char *)(*param_1 + 0x44c) == '\0')))) goto LAB_0016c5f4;
local_3c = local_9c;
uVar14 = CONCAT44(uStack_44,local_48);
*(int8 *)(puVar17 + -8) = 0x16c508;
uVar14 = _ma_kpos(uVar12,uVar14);
puVar8 = local_58;
plVar7 = local_60;
plVar6 = local_68;
*(int8 *)(puVar17 + -8) = 0x16c522;
uVar11 = _ma_search_no_save(param_1,puVar8,param_3 & 0xfffffee7,uVar14,plVar7,plVar6);
if ((int)uVar11 < 0) {
*(int8 *)(puVar17 + -8) = 0x16c5df;
piVar15 = (int *)_my_thread_var();
uVar11 = 0xffffffff;
uVar19 = local_3c;
if (*piVar15 == 0x78) goto LAB_0016c5f4;
}
}
else {
local_3c = local_9c;
uVar14 = CONCAT44(uStack_44,local_48);
*(int8 *)(puVar17 + -8) = 0x16c44b;
uVar14 = _ma_kpos(uVar12,uVar14);
puVar8 = local_58;
plVar7 = local_60;
plVar6 = local_68;
*(int8 *)(puVar17 + -8) = 0x16c465;
uVar11 = _ma_search_no_save(param_1,puVar8,param_3,uVar14,plVar7,plVar6);
if (0 < (int)uVar11) {
uVar12 = local_78;
uVar19 = local_3c;
if (iVar10 < 1) {
if (((param_3 & 8) == 0) || (uVar11 = 1, CONCAT44(uStack_44,local_48) < local_80)) {
if ((param_3 & 0x110) != 0) goto LAB_0016c560;
goto LAB_0016c5f4;
}
}
else {
if ((param_3 & 0x110) == 0) {
LAB_0016c5f4:
param_1[0x40] = (long)__src;
pcVar4 = *(code **)(local_70 + 0xe0);
*(int8 *)(puVar17 + -8) = 0x16c610;
iVar10 = (*pcVar4)(param_1 + 0x40,uVar19,uVar12,&local_48);
if (iVar10 == 0) goto LAB_0016c38e;
__dest = (void *)param_1[0x71];
iVar10 = *(int *)((long)param_1 + 0x214);
lVar16 = param_1[0x42];
*(int8 *)(puVar17 + -8) = 0x16c633;
memcpy(__dest,__src,(ulong)(uint)(iVar10 + (int)lVar16));
param_1[0x40] = param_1[0x71];
}
else {
if (CONCAT44(uStack_44,local_48) ==
(ulong)*(uint *)(*param_1 + 0x744) + local_b8 + local_78) {
uVar11 = 1;
goto LAB_0016c3a6;
}
LAB_0016c560:
uVar14 = CONCAT44(uStack_44,local_48);
*(int8 *)(puVar17 + -8) = 0x16c577;
cVar9 = _ma_get_prev_key(param_1 + 0x40,local_c8,uVar14);
if (cVar9 != '\0') goto LAB_0016c38e;
if ((param_3 & 0x10) == 0) {
uVar14 = *(int8 *)(local_70 + 0xc0);
lVar16 = param_1[0x40];
uVar5 = *local_58;
iVar10 = *(int *)((long)local_58 + 0x14);
iVar2 = *(int *)(local_58 + 2);
uVar11 = *(uint *)(local_58 + 3);
uVar3 = *(uint *)(param_1 + 0x43);
*(int8 *)(puVar17 + -8) = 0x16c5c6;
iVar10 = ha_key_cmp(uVar14,lVar16,uVar5,iVar10 + iVar2,uVar11 >> 1 | uVar3 | 1,
local_d0);
if (iVar10 != 0) {
*(int8 *)(puVar17 + -8) = 0x16c5cf;
puVar13 = (int4 *)_my_thread_var();
*puVar13 = 0x78;
goto LAB_0016c38e;
}
}
}
*(int8 *)(puVar17 + -8) = 0x16c650;
lVar16 = _ma_row_pos_from_key(param_1 + 0x40);
param_1[0x13] = lVar16;
*(int8 *)(puVar17 + -8) = 0x16c65f;
lVar16 = _ma_trid_from_key(param_1 + 0x40);
param_1[0x18] = lVar16;
*(int *)(param_1 + 0x78) = local_48 - (int)local_b8;
*(int *)((long)param_1 + 0x3c4) = (int)local_80 - (int)local_b8;
*(int *)(param_1 + 0x7a) = (int)local_78;
param_1[0x88] = local_90;
*local_60 = local_88;
*local_68 = local_b8;
uVar11 = 0;
}
}
}
}
else {
LAB_0016c38e:
param_1[0x13] = -1;
*(int1 *)((long)param_1 + 0x684) = 1;
uVar11 = 0xffffffff;
}
LAB_0016c3a6:
puVar18 = puVar17;
if ((char)local_4c == '\0') {
*(int8 *)(puVar17 + -8) = 0x16c3b4;
my_free(__src);
}
LAB_0016c3e9:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
*(code **)(puVar18 + -8) = _ma_bin_search;
__stack_chk_fail();
}
return uVar11;
}
|
|
65,015 |
parse_cpu_range(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool (&) [512])
|
monkey531[P]llama/common/common.cpp
|
bool parse_cpu_range(const std::string & range, bool (&boolmask)[GGML_MAX_N_THREADS]) {
size_t dash_loc = range.find('-');
if (dash_loc == std::string::npos) {
LOG_ERR("Format of CPU range is invalid! Expected [<start>]-[<end>].\n");
return false;
}
size_t start_i;
size_t end_i;
if (dash_loc == 0) {
start_i = 0;
} else {
start_i = std::stoull(range.substr(0, dash_loc));
if (start_i >= GGML_MAX_N_THREADS) {
LOG_ERR("Start index out of bounds!\n");
return false;
}
}
if (dash_loc == range.length() - 1) {
end_i = GGML_MAX_N_THREADS - 1;
} else {
end_i = std::stoull(range.substr(dash_loc + 1));
if (end_i >= GGML_MAX_N_THREADS) {
LOG_ERR("End index out of bounds!\n");
return false;
}
}
for (size_t i = start_i; i <= end_i; i++) {
boolmask[i] = true;
}
return true;
}
|
O3
|
cpp
|
parse_cpu_range(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool (&) [512]):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movq %rdi, %r15
movl $0x2d, %esi
xorl %edx, %edx
callq 0x18870
movq %rax, %r12
testq %rax, %rax
je 0x1eeaa
cmpq $-0x1, %r12
jne 0x1eeb7
leaq 0xc0170(%rip), %rax # 0xdf000
cmpl $0x0, (%rax)
js 0x1f068
callq 0x80403
leaq 0x89f8e(%rip), %rdx # 0xa8e33
jmp 0x1f030
movq %rbx, 0x10(%rsp)
movq %r12, %r14
jmp 0x1ef71
movq %rbx, 0x10(%rsp)
leaq 0x18(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %r12, %rcx
callq 0x186f0
movq (%r14), %rbp
callq 0x18060
movq %rax, %r13
movl (%rax), %eax
movl %eax, 0x4(%rsp)
movl $0x0, (%r13)
leaq 0x8(%rsp), %rbx
movq %rbp, %rdi
movq %rbx, %rsi
movl $0xa, %edx
callq 0x18890
cmpq %rbp, (%rbx)
je 0x1f07b
movq %rax, %r14
movl (%r13), %eax
testl %eax, %eax
je 0x1ef24
cmpl $0x22, %eax
jne 0x1ef2c
leaq 0x8aafa(%rip), %rdi # 0xa9a19
callq 0x189a0
movl 0x4(%rsp), %eax
movl %eax, (%r13)
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1ef47
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x186a0
cmpq $0x200, %r14 # imm = 0x200
jb 0x1ef71
leaq 0xc00a9(%rip), %rax # 0xdf000
cmpl $0x0, (%rax)
js 0x1f068
callq 0x80403
leaq 0x89f04(%rip), %rdx # 0xa8e70
jmp 0x1f030
movq 0x8(%r15), %rax
decq %rax
movl $0x1ff, %r13d # imm = 0x1FF
cmpq %rax, %r12
je 0x1f043
incq %r12
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq $-0x1, %rcx
callq 0x186f0
movq (%rbx), %rbx
callq 0x18060
movq %rax, %r15
movl (%rax), %ebp
movl $0x0, (%rax)
leaq 0x8(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x18890
cmpq %rbx, (%r12)
je 0x1f087
movq %rax, %r13
movl (%r15), %eax
testl %eax, %eax
je 0x1eff1
cmpl $0x22, %eax
jne 0x1eff4
leaq 0x8aa2d(%rip), %rdi # 0xa9a19
callq 0x189a0
movl %ebp, (%r15)
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f00f
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x186a0
cmpq $0x200, %r13 # imm = 0x200
jb 0x1f043
leaq 0xbffe1(%rip), %rax # 0xdf000
cmpl $0x0, (%rax)
js 0x1f068
callq 0x80403
leaq 0x89e5c(%rip), %rdx # 0xa8e8c
xorl %ebp, %ebp
movq %rax, %rdi
movl $0x4, %esi
xorl %eax, %eax
callq 0x804a0
jmp 0x1f06a
movb $0x1, %bpl
cmpq %r13, %r14
ja 0x1f06a
movq 0x10(%rsp), %rdi
addq %r14, %rdi
subq %r14, %r13
incq %r13
movl $0x1, %esi
movq %r13, %rdx
callq 0x183d0
jmp 0x1f06a
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8a997(%rip), %rdi # 0xa9a19
callq 0x183f0
leaq 0x8a98b(%rip), %rdi # 0xa9a19
callq 0x183f0
movq %rax, %rbx
cmpl $0x0, (%r15)
jne 0x1f09f
movl %ebp, (%r15)
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x19066
jmp 0x1f0d1
movq %rax, %rbx
cmpl $0x0, (%r13)
jne 0x1f0c2
movl 0x4(%rsp), %eax
movl %eax, (%r13)
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x19083
movq %rbx, %rdi
callq 0x18bc0
|
_Z15parse_cpu_rangeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA512_b:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov rbx, rsi
mov r15, rdi
mov esi, 2Dh ; '-'
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm; std::string::find(char,ulong)
mov r12, rax
test rax, rax
jz short loc_1EEAA
cmp r12, 0FFFFFFFFFFFFFFFFh
jnz short loc_1EEB7
lea rax, common_log_verbosity_thold
cmp dword ptr [rax], 0
js loc_1F068
call _Z15common_log_mainv; common_log_main(void)
lea rdx, aFormatOfCpuRan; "Format of CPU range is invalid! Expecte"...
jmp loc_1F030
loc_1EEAA:
mov [rsp+68h+var_58], rbx
mov r14, r12
jmp loc_1EF71
loc_1EEB7:
mov [rsp+68h+var_58], rbx
lea r14, [rsp+68h+var_50]
mov rdi, r14
mov rsi, r15
xor edx, edx
mov rcx, r12
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
mov rbp, [r14]
call ___errno_location
mov r13, rax
mov eax, [rax]
mov [rsp+68h+var_64], eax
mov dword ptr [r13+0], 0
lea rbx, [rsp+68h+var_60]
mov rdi, rbp
mov rsi, rbx
mov edx, 0Ah
call _strtoull
cmp [rbx], rbp
jz loc_1F07B
mov r14, rax
mov eax, [r13+0]
test eax, eax
jz short loc_1EF24
cmp eax, 22h ; '"'
jnz short loc_1EF2C
lea rdi, aStoull; "stoull"
call __ZSt20__throw_out_of_rangePKc; std::__throw_out_of_range(char const*)
loc_1EF24:
mov eax, [rsp+68h+var_64]
mov [r13+0], eax
loc_1EF2C:
lea rax, [rsp+68h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1EF47
mov rsi, [rsp+68h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1EF47:
cmp r14, 200h
jb short loc_1EF71
lea rax, common_log_verbosity_thold
cmp dword ptr [rax], 0
js loc_1F068
call _Z15common_log_mainv; common_log_main(void)
lea rdx, aStartIndexOutO; "Start index out of bounds!\n"
jmp loc_1F030
loc_1EF71:
mov rax, [r15+8]
dec rax
mov r13d, 1FFh
cmp r12, rax
jz loc_1F043
inc r12
lea rbx, [rsp+68h+var_50]
mov rdi, rbx
mov rsi, r15
mov rdx, r12
mov rcx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
mov rbx, [rbx]
call ___errno_location
mov r15, rax
mov ebp, [rax]
mov dword ptr [rax], 0
lea r12, [rsp+68h+var_60]
mov rdi, rbx
mov rsi, r12
mov edx, 0Ah
call _strtoull
cmp [r12], rbx
jz loc_1F087
mov r13, rax
mov eax, [r15]
test eax, eax
jz short loc_1EFF1
cmp eax, 22h ; '"'
jnz short loc_1EFF4
lea rdi, aStoull; "stoull"
call __ZSt20__throw_out_of_rangePKc; std::__throw_out_of_range(char const*)
loc_1EFF1:
mov [r15], ebp
loc_1EFF4:
lea rax, [rsp+68h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1F00F
mov rsi, [rsp+68h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1F00F:
cmp r13, 200h
jb short loc_1F043
lea rax, common_log_verbosity_thold
cmp dword ptr [rax], 0
js short loc_1F068
call _Z15common_log_mainv; common_log_main(void)
lea rdx, aEndIndexOutOfB; "End index out of bounds!\n"
loc_1F030:
xor ebp, ebp
mov rdi, rax
mov esi, 4
xor eax, eax
call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...)
jmp short loc_1F06A
loc_1F043:
mov bpl, 1
cmp r14, r13
ja short loc_1F06A
mov rdi, [rsp+68h+var_58]
add rdi, r14
sub r13, r14
inc r13
mov esi, 1
mov rdx, r13
call _memset
jmp short loc_1F06A
loc_1F068:
xor ebp, ebp
loc_1F06A:
mov eax, ebp
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_1F07B:
lea rdi, aStoull; "stoull"
call __ZSt24__throw_invalid_argumentPKc; std::__throw_invalid_argument(char const*)
loc_1F087:
lea rdi, aStoull; "stoull"
call __ZSt24__throw_invalid_argumentPKc; std::__throw_invalid_argument(char const*)
mov rbx, rax
cmp dword ptr [r15], 0
jnz short loc_1F09F
mov [r15], ebp
loc_1F09F:
lea rdi, [rsp+68h+var_60]
lea rsi, [rsp+68h+var_50]
call _Z15parse_cpu_rangeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA512_b_cold_1; parse_cpu_range(std::string const&,bool (&)[512]) [clone]
jmp short loc_1F0D1
mov rbx, rax
cmp dword ptr [r13+0], 0
jnz short loc_1F0C2
mov eax, [rsp+68h+var_64]
mov [r13+0], eax
loc_1F0C2:
lea rdi, [rsp+68h+var_60]
lea rsi, [rsp+68h+var_50]
call _Z15parse_cpu_rangeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA512_b_cold_2; parse_cpu_range(std::string const&,bool (&)[512]) [clone]
loc_1F0D1:
mov rdi, rbx
call __Unwind_Resume
|
long long parse_cpu_range(long long a1, long long a2)
{
void *v2; // rbp
_DWORD *v3; // r15
long long v4; // rax
long long v5; // r12
int v6; // eax
int v7; // ecx
int v8; // r8d
int v9; // r9d
const char *v10; // rdx
unsigned long long v11; // r14
int *v12; // r13
long long v13; // rax
unsigned long long v14; // r13
void *v15; // rbx
long long v16; // rax
long long v18; // rbx
int v19; // [rsp+4h] [rbp-64h]
void *v20; // [rsp+8h] [rbp-60h] BYREF
long long v21; // [rsp+10h] [rbp-58h]
void *v22[2]; // [rsp+18h] [rbp-50h] BYREF
_QWORD v23[8]; // [rsp+28h] [rbp-40h] BYREF
v3 = (_DWORD *)a1;
v4 = std::string::find(a1, 45LL, 0LL);
v5 = v4;
if ( v4 )
{
if ( v4 == -1 )
{
if ( common_log_verbosity_thold >= 0 )
{
v6 = common_log_main();
v10 = "Format of CPU range is invalid! Expected [<start>]-[<end>].\n";
LABEL_27:
LODWORD(v2) = 0;
common_log_add(v6, 4, (_DWORD)v10, v7, v8, v9);
return (unsigned int)v2;
}
goto LABEL_30;
}
v21 = a2;
std::string::substr(v22, a1, 0LL, v4);
v2 = v22[0];
v12 = (int *)__errno_location();
v19 = *v12;
*v12 = 0;
v13 = strtoull(v2, &v20, 10LL);
if ( v20 == v2 )
{
std::__throw_invalid_argument("stoull");
goto LABEL_33;
}
v11 = v13;
if ( *v12 )
{
if ( *v12 == 34 )
std::__throw_out_of_range("stoull");
}
else
{
*v12 = v19;
}
if ( v22[0] != v23 )
operator delete(v22[0], v23[0] + 1LL);
if ( v11 >= 0x200 )
{
if ( common_log_verbosity_thold >= 0 )
{
v6 = common_log_main();
v10 = "Start index out of bounds!\n";
goto LABEL_27;
}
LABEL_30:
LODWORD(v2) = 0;
return (unsigned int)v2;
}
}
else
{
v21 = a2;
v11 = 0LL;
}
v14 = 511LL;
if ( v5 == *(_QWORD *)(a1 + 8) - 1LL )
goto LABEL_28;
std::string::substr(v22, a1, v5 + 1, -1LL);
v15 = v22[0];
v3 = (_DWORD *)__errno_location();
LODWORD(v2) = *v3;
*v3 = 0;
v16 = strtoull(v15, &v20, 10LL);
if ( v20 == v15 )
{
LABEL_33:
v18 = std::__throw_invalid_argument("stoull");
if ( !*v3 )
*v3 = (_DWORD)v2;
parse_cpu_range((long long)&v20, v22);
_Unwind_Resume(v18);
}
v14 = v16;
if ( *v3 )
{
if ( *v3 == 34 )
std::__throw_out_of_range("stoull");
}
else
{
*v3 = (_DWORD)v2;
}
if ( v22[0] != v23 )
operator delete(v22[0], v23[0] + 1LL);
if ( v14 >= 0x200 )
{
if ( common_log_verbosity_thold >= 0 )
{
v6 = common_log_main();
v10 = "End index out of bounds!\n";
goto LABEL_27;
}
goto LABEL_30;
}
LABEL_28:
LOBYTE(v2) = 1;
if ( v11 <= v14 )
memset(v11 + v21, 1LL, v14 - v11 + 1);
return (unsigned int)v2;
}
|
parse_cpu_range:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV RBX,RSI
MOV R15,RDI
MOV ESI,0x2d
XOR EDX,EDX
CALL 0x00118870
MOV R12,RAX
TEST RAX,RAX
JZ 0x0011eeaa
CMP R12,-0x1
JNZ 0x0011eeb7
LEA RAX,[0x1df000]
CMP dword ptr [RAX],0x0
JS 0x0011f068
CALL 0x00180403
LEA RDX,[0x1a8e33]
JMP 0x0011f030
LAB_0011eeaa:
MOV qword ptr [RSP + 0x10],RBX
MOV R14,R12
JMP 0x0011ef71
LAB_0011eeb7:
MOV qword ptr [RSP + 0x10],RBX
LEA R14,[RSP + 0x18]
MOV RDI,R14
MOV RSI,R15
XOR EDX,EDX
MOV RCX,R12
CALL 0x001186f0
MOV RBP,qword ptr [R14]
CALL 0x00118060
MOV R13,RAX
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0x4],EAX
MOV dword ptr [R13],0x0
LEA RBX,[RSP + 0x8]
MOV RDI,RBP
MOV RSI,RBX
MOV EDX,0xa
CALL 0x00118890
CMP qword ptr [RBX],RBP
JZ 0x0011f07b
MOV R14,RAX
MOV EAX,dword ptr [R13]
TEST EAX,EAX
JZ 0x0011ef24
CMP EAX,0x22
JNZ 0x0011ef2c
LAB_0011ef18:
LEA RDI,[0x1a9a19]
CALL 0x001189a0
LAB_0011ef24:
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [R13],EAX
LAB_0011ef2c:
LEA RAX,[RSP + 0x28]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0011ef47
MOV RSI,qword ptr [RSP + 0x28]
INC RSI
CALL 0x001186a0
LAB_0011ef47:
CMP R14,0x200
JC 0x0011ef71
LEA RAX,[0x1df000]
CMP dword ptr [RAX],0x0
JS 0x0011f068
CALL 0x00180403
LEA RDX,[0x1a8e70]
JMP 0x0011f030
LAB_0011ef71:
MOV RAX,qword ptr [R15 + 0x8]
DEC RAX
MOV R13D,0x1ff
CMP R12,RAX
JZ 0x0011f043
INC R12
LEA RBX,[RSP + 0x18]
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R12
MOV RCX,-0x1
CALL 0x001186f0
MOV RBX,qword ptr [RBX]
CALL 0x00118060
MOV R15,RAX
MOV EBP,dword ptr [RAX]
MOV dword ptr [RAX],0x0
LEA R12,[RSP + 0x8]
MOV RDI,RBX
MOV RSI,R12
MOV EDX,0xa
CALL 0x00118890
CMP qword ptr [R12],RBX
JZ 0x0011f087
MOV R13,RAX
MOV EAX,dword ptr [R15]
TEST EAX,EAX
JZ 0x0011eff1
CMP EAX,0x22
JNZ 0x0011eff4
LAB_0011efe5:
LEA RDI,[0x1a9a19]
CALL 0x001189a0
LAB_0011eff1:
MOV dword ptr [R15],EBP
LAB_0011eff4:
LEA RAX,[RSP + 0x28]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0011f00f
MOV RSI,qword ptr [RSP + 0x28]
INC RSI
CALL 0x001186a0
LAB_0011f00f:
CMP R13,0x200
JC 0x0011f043
LEA RAX,[0x1df000]
CMP dword ptr [RAX],0x0
JS 0x0011f068
CALL 0x00180403
LEA RDX,[0x1a8e8c]
LAB_0011f030:
XOR EBP,EBP
MOV RDI,RAX
MOV ESI,0x4
XOR EAX,EAX
CALL 0x001804a0
JMP 0x0011f06a
LAB_0011f043:
MOV BPL,0x1
CMP R14,R13
JA 0x0011f06a
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,R14
SUB R13,R14
INC R13
MOV ESI,0x1
MOV RDX,R13
CALL 0x001183d0
JMP 0x0011f06a
LAB_0011f068:
XOR EBP,EBP
LAB_0011f06a:
MOV EAX,EBP
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0011f07b:
LEA RDI,[0x1a9a19]
CALL 0x001183f0
LAB_0011f087:
LEA RDI,[0x1a9a19]
CALL 0x001183f0
LAB_0011f093:
MOV RBX,RAX
CMP dword ptr [R15],0x0
JNZ 0x0011f09f
MOV dword ptr [R15],EBP
LAB_0011f09f:
LEA RDI,[RSP + 0x8]
LEA RSI,[RSP + 0x18]
CALL 0x00119066
JMP 0x0011f0d1
LAB_0011f0d1:
MOV RDI,RBX
CALL 0x00118bc0
|
/* parse_cpu_range(std::__cxx11::string const&, bool (&) [512]) */
ulong parse_cpu_range(string *param_1,bool *param_2)
{
int iVar1;
uint uVar2;
long *__nptr;
long lVar3;
int8 uVar4;
int *piVar5;
ulong uVar6;
char *pcVar7;
long *unaff_RBP;
ulong uVar8;
ulonglong uVar9;
long *local_60;
bool *local_58;
long *local_50 [2];
long local_40 [2];
lVar3 = std::__cxx11::string::find((char)param_1,0x2d);
if (lVar3 == 0) {
uVar6 = 0;
local_58 = param_2;
LAB_0011ef71:
uVar9 = 0x1ff;
if (lVar3 != *(long *)(param_1 + 8) + -1) {
std::__cxx11::string::substr((ulong)local_50,(ulong)param_1);
__nptr = local_50[0];
param_1 = (string *)__errno_location();
uVar2 = *(uint *)param_1;
unaff_RBP = (long *)(ulong)uVar2;
*(uint *)param_1 = 0;
uVar9 = strtoull((char *)__nptr,(char **)&local_60,10);
if (local_60 == __nptr) {
LAB_0011f087:
/* try { // try from 0011f087 to 0011f092 has its CatchHandler @ 0011f093 */
uVar4 = std::__throw_invalid_argument("stoull");
/* catch() { ... } // from try @ 0011efe5 with catch @ 0011f093
catch() { ... } // from try @ 0011f087 with catch @ 0011f093 */
if (*(uint *)param_1 == 0) {
*(uint *)param_1 = (uint)unaff_RBP;
}
parse_cpu_range((string *)&local_60,(bool *)local_50);
/* WARNING: Subroutine does not return */
_Unwind_Resume(uVar4);
}
if (*(uint *)param_1 == 0) {
LAB_0011eff1:
*(uint *)param_1 = uVar2;
}
else if (*(uint *)param_1 == 0x22) {
/* try { // try from 0011efe5 to 0011eff0 has its CatchHandler @ 0011f093 */
std::__throw_out_of_range("stoull");
goto LAB_0011eff1;
}
if (local_50[0] != local_40) {
operator_delete(local_50[0],local_40[0] + 1);
}
if (0x1ff < uVar9) {
if (common_log_verbosity_thold < 0) goto LAB_0011f068;
uVar4 = common_log_main();
pcVar7 = "End index out of bounds!\n";
goto LAB_0011f030;
}
}
uVar8 = CONCAT71((int7)((ulong)unaff_RBP >> 8),1);
if (uVar6 <= uVar9) {
memset(local_58 + uVar6,1,(uVar9 - uVar6) + 1);
}
}
else {
if (lVar3 == -1) {
if (common_log_verbosity_thold < 0) {
LAB_0011f068:
uVar8 = 0;
goto LAB_0011f06a;
}
uVar4 = common_log_main();
pcVar7 = "Format of CPU range is invalid! Expected [<start>]-[<end>].\n";
}
else {
local_58 = param_2;
std::__cxx11::string::substr((ulong)local_50,(ulong)param_1);
unaff_RBP = local_50[0];
piVar5 = __errno_location();
iVar1 = *piVar5;
*piVar5 = 0;
uVar6 = strtoull((char *)unaff_RBP,(char **)&local_60,10);
if (local_60 == unaff_RBP) {
/* try { // try from 0011f07b to 0011f086 has its CatchHandler @ 0011f0b0 */
std::__throw_invalid_argument("stoull");
goto LAB_0011f087;
}
if (*piVar5 == 0) {
LAB_0011ef24:
*piVar5 = iVar1;
}
else if (*piVar5 == 0x22) {
/* try { // try from 0011ef18 to 0011ef23 has its CatchHandler @ 0011f0b0 */
std::__throw_out_of_range("stoull");
goto LAB_0011ef24;
}
if (local_50[0] != local_40) {
operator_delete(local_50[0],local_40[0] + 1);
}
if (uVar6 < 0x200) goto LAB_0011ef71;
if (common_log_verbosity_thold < 0) goto LAB_0011f068;
uVar4 = common_log_main();
pcVar7 = "Start index out of bounds!\n";
}
LAB_0011f030:
uVar8 = 0;
common_log_add(uVar4,4,pcVar7);
}
LAB_0011f06a:
return uVar8 & 0xffffffff;
}
|
|
65,016 |
mi_copy_status
|
eloqsql/storage/myisam/mi_locking.c
|
void mi_copy_status(void* to,void *from)
{
MI_INFO *info= (MI_INFO*) to;
DBUG_ENTER("mi_copy_status");
info->state= &((MI_INFO*) from)->save_state;
DBUG_PRINT("info",("key_file: %ld data_file: %ld",
(long) info->state->key_file_length,
(long) info->state->data_file_length));
DBUG_VOID_RETURN;
}
|
O0
|
c
|
mi_copy_status:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rcx
addq $0x10, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0xb2756
jmp 0xb2758
jmp 0xb275a
popq %rbp
retq
nopl (%rax)
|
mi_copy_status:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
mov rcx, [rbp+var_10]
add rcx, 10h
mov rax, [rbp+var_18]
mov [rax+8], rcx
jmp short $+2
loc_B2756:
jmp short $+2
loc_B2758:
jmp short $+2
loc_B275A:
pop rbp
retn
|
long long mi_copy_status(long long a1, long long a2)
{
long long result; // rax
result = a1;
*(_QWORD *)(a1 + 8) = a2 + 16;
return result;
}
|
mi_copy_status:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x10]
ADD RCX,0x10
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x8],RCX
JMP 0x001b2756
LAB_001b2756:
JMP 0x001b2758
LAB_001b2758:
JMP 0x001b275a
LAB_001b275a:
POP RBP
RET
|
void mi_copy_status(long param_1,long param_2)
{
*(long *)(param_1 + 8) = param_2 + 0x10;
return;
}
|
|
65,017 |
LefDefParser::lefwRealProperty(char const*, double)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
|
int
lefwRealProperty(const char *propName,
double propValue)
{
if ((lefwState != LEFW_VIA) && (lefwState != LEFW_LAYER) &&
(lefwState != LEFW_VIARULE) && (lefwState != LEFW_MACRO_START) &&
(lefwState != LEFW_MACRO) && (lefwState != LEFW_VIA_START) &&
(lefwState != LEFW_VIARULE_START) && (lefwState != LEFW_LAYER_START) &&
(lefwState != LEFW_BEGINEXT) && (lefwState != LEFW_VIAVIARULE))
return LEFW_BAD_ORDER;
if (lefwWriteEncrypt)
encPrint(lefwFile, (char*) " PROPERTY %s %.11g ;\n", propName, propValue);
else
fprintf(lefwFile, " PROPERTY %s %.11g ;\n", propName, propValue);
lefwLines++;
return LEFW_OK;
}
|
O0
|
cpp
|
LefDefParser::lefwRealProperty(char const*, double):
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movsd %xmm0, (%rsp)
leaq 0xa0e0b(%rip), %rax # 0xc54a0
cmpl $0x48, (%rax)
je 0x24710
leaq 0xa0dff(%rip), %rax # 0xc54a0
cmpl $0x1c, (%rax)
je 0x24710
leaq 0xa0df3(%rip), %rax # 0xc54a0
cmpl $0x4a, (%rax)
je 0x24710
leaq 0xa0de7(%rip), %rax # 0xc54a0
cmpl $0x9, (%rax)
je 0x24710
leaq 0xa0ddb(%rip), %rax # 0xc54a0
cmpl $0x21, (%rax)
je 0x24710
leaq 0xa0dcf(%rip), %rax # 0xc54a0
cmpl $0xf, (%rax)
je 0x24710
leaq 0xa0dc3(%rip), %rax # 0xc54a0
cmpl $0x10, (%rax)
je 0x24710
leaq 0xa0db7(%rip), %rax # 0xc54a0
cmpl $0x6, (%rax)
je 0x24710
leaq 0xa0dab(%rip), %rax # 0xc54a0
cmpl $0x14, (%rax)
je 0x24710
leaq 0xa0d9f(%rip), %rax # 0xc54a0
cmpl $0x4e, (%rax)
je 0x24710
movl $0x2, 0x14(%rsp)
jmp 0x2477c
cmpl $0x0, 0xa0e25(%rip) # 0xc553c
je 0x2473d
leaq 0xa0b30(%rip), %rax # 0xc5250
movq (%rax), %rdi
movq 0x8(%rsp), %rdx
movsd (%rsp), %xmm0
leaq 0x6f102(%rip), %rsi # 0x93836
movb $0x1, %al
callq 0x8bf50
jmp 0x2475f
leaq 0xa0b0c(%rip), %rax # 0xc5250
movq (%rax), %rdi
movq 0x8(%rsp), %rdx
movsd (%rsp), %xmm0
leaq 0x6f0de(%rip), %rsi # 0x93836
movb $0x1, %al
callq 0x2370
leaq 0xa0d36(%rip), %rax # 0xc549c
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0xa0d2a(%rip), %rax # 0xc549c
movl %ecx, (%rax)
movl $0x0, 0x14(%rsp)
movl 0x14(%rsp), %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
|
_ZN12LefDefParser16lefwRealPropertyEPKcd:
sub rsp, 18h
mov [rsp+18h+var_10], rdi
movsd [rsp+18h+var_18], xmm0
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 48h ; 'H'
jz short loc_24710
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 1Ch
jz short loc_24710
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 4Ah ; 'J'
jz short loc_24710
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 9
jz short loc_24710
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 21h ; '!'
jz short loc_24710
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 0Fh
jz short loc_24710
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 10h
jz short loc_24710
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 6
jz short loc_24710
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 14h
jz short loc_24710
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 4Eh ; 'N'
jz short loc_24710
mov [rsp+18h+var_4], 2
jmp short loc_2477C
loc_24710:
cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 0; LefDefParser::lefwWriteEncrypt
jz short loc_2473D
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
mov rdx, [rsp+18h+var_10]
movsd xmm0, [rsp+18h+var_18]
lea rsi, aPropertyS11g; " PROPERTY %s %.11g ;\n"
mov al, 1
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp short loc_2475F
loc_2473D:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
mov rdx, [rsp+18h+var_10]
movsd xmm0, [rsp+18h+var_18]
lea rsi, aPropertyS11g; " PROPERTY %s %.11g ;\n"
mov al, 1
call _fprintf
loc_2475F:
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
mov ecx, [rax]
add ecx, 1
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
mov [rax], ecx
mov [rsp+18h+var_4], 0
loc_2477C:
mov eax, [rsp+18h+var_4]
add rsp, 18h
retn
|
long long LefDefParser::lefwRealProperty(
LefDefParser *this,
const char *a2,
double a3,
long long a4,
int a5,
int a6,
int a7)
{
if ( LefDefParser::lefwState == 72
|| LefDefParser::lefwState == 28
|| LefDefParser::lefwState == 74
|| LefDefParser::lefwState == 9
|| LefDefParser::lefwState == 33
|| LefDefParser::lefwState == 15
|| LefDefParser::lefwState == 16
|| LefDefParser::lefwState == 6
|| LefDefParser::lefwState == 20
|| LefDefParser::lefwState == 78 )
{
if ( LefDefParser::lefwWriteEncrypt )
LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)" PROPERTY %s %.11g ;\n", (_DWORD)this, a5, a6, a7);
else
fprintf(*(_QWORD *)&LefDefParser::lefwFile, " PROPERTY %s %.11g ;\n", (const char *)this, a3);
++LefDefParser::lefwLines;
return 0;
}
else
{
return 2;
}
}
|
lefwRealProperty:
SUB RSP,0x18
MOV qword ptr [RSP + 0x8],RDI
MOVSD qword ptr [RSP],XMM0
LEA RAX,[0x1c54a0]
CMP dword ptr [RAX],0x48
JZ 0x00124710
LEA RAX,[0x1c54a0]
CMP dword ptr [RAX],0x1c
JZ 0x00124710
LEA RAX,[0x1c54a0]
CMP dword ptr [RAX],0x4a
JZ 0x00124710
LEA RAX,[0x1c54a0]
CMP dword ptr [RAX],0x9
JZ 0x00124710
LEA RAX,[0x1c54a0]
CMP dword ptr [RAX],0x21
JZ 0x00124710
LEA RAX,[0x1c54a0]
CMP dword ptr [RAX],0xf
JZ 0x00124710
LEA RAX,[0x1c54a0]
CMP dword ptr [RAX],0x10
JZ 0x00124710
LEA RAX,[0x1c54a0]
CMP dword ptr [RAX],0x6
JZ 0x00124710
LEA RAX,[0x1c54a0]
CMP dword ptr [RAX],0x14
JZ 0x00124710
LEA RAX,[0x1c54a0]
CMP dword ptr [RAX],0x4e
JZ 0x00124710
MOV dword ptr [RSP + 0x14],0x2
JMP 0x0012477c
LAB_00124710:
CMP dword ptr [0x001c553c],0x0
JZ 0x0012473d
LEA RAX,[0x1c5250]
MOV RDI,qword ptr [RAX]
MOV RDX,qword ptr [RSP + 0x8]
MOVSD XMM0,qword ptr [RSP]
LEA RSI,[0x193836]
MOV AL,0x1
CALL 0x0018bf50
JMP 0x0012475f
LAB_0012473d:
LEA RAX,[0x1c5250]
MOV RDI,qword ptr [RAX]
MOV RDX,qword ptr [RSP + 0x8]
MOVSD XMM0,qword ptr [RSP]
LEA RSI,[0x193836]
MOV AL,0x1
CALL 0x00102370
LAB_0012475f:
LEA RAX,[0x1c549c]
MOV ECX,dword ptr [RAX]
ADD ECX,0x1
LEA RAX,[0x1c549c]
MOV dword ptr [RAX],ECX
MOV dword ptr [RSP + 0x14],0x0
LAB_0012477c:
MOV EAX,dword ptr [RSP + 0x14]
ADD RSP,0x18
RET
|
/* LefDefParser::lefwRealProperty(char const*, double) */
int4 LefDefParser::lefwRealProperty(char *param_1,double param_2)
{
int4 local_4;
if ((((((lefwState == 0x48) || (lefwState == 0x1c)) || (lefwState == 0x4a)) ||
((lefwState == 9 || (lefwState == 0x21)))) ||
((lefwState == 0xf || ((lefwState == 0x10 || (lefwState == 6)))))) ||
((lefwState == 0x14 || (lefwState == 0x4e)))) {
if (lefwWriteEncrypt == 0) {
fprintf(lefwFile," PROPERTY %s %.11g ;\n",param_2,param_1);
}
else {
encPrint(lefwFile," PROPERTY %s %.11g ;\n",param_2,param_1);
}
lefwLines = lefwLines + 1;
local_4 = 0;
}
else {
local_4 = 2;
}
return local_4;
}
|
|
65,018 |
SearchFree
|
seiftnesse[P]memoryallocator/src/custom_alloc_util.c
|
segment_t *SearchFree(segment_t *s, int size) {
segment_t *best_fit = NULL;
int best_size = INT_MAX;
HEAP_LOG("Searching for free segment: required blocks=%d\n", size);
// Best-fit strategy: find smallest free block that fits
while (s) {
if (s->is_free && s->size >= size) {
check_memory_corruption(s);
if (s->size < best_size) {
best_fit = s;
best_size = s->size;
HEAP_LOG("Found potential segment: addr=%p, size=%d blocks\n", s, s->size);
// Perfect fit - return immediately
if (s->size == size) {
HEAP_LOG("Perfect fit found at %p\n", s);
return s;
}
}
}
s = s->next;
}
if (best_fit) {
HEAP_LOG("Best fit segment found: addr=%p, size=%d blocks\n", best_fit, best_fit->size);
} else {
HEAP_LOG("No suitable free segment found\n");
}
return best_fit;
}
|
O0
|
c
|
SearchFree:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq $0x0, -0x20(%rbp)
movl $0x7fffffff, -0x24(%rbp) # imm = 0x7FFFFFFF
cmpq $0x0, -0x10(%rbp)
je 0x38e9
movq -0x10(%rbp), %rax
cmpl $0x0, (%rax)
je 0x38db
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
cmpl -0x14(%rbp), %eax
jl 0x38db
movq -0x10(%rbp), %rdi
callq 0x48d0
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
cmpl -0x24(%rbp), %eax
jge 0x38d9
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
cmpl -0x14(%rbp), %eax
jne 0x38d7
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x38fc
jmp 0x38d9
jmp 0x38db
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x387e
cmpq $0x0, -0x20(%rbp)
je 0x38f2
jmp 0x38f4
jmp 0x38f4
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
SearchFree:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], 0
mov [rbp+var_24], 7FFFFFFFh
loc_387E:
cmp [rbp+var_10], 0
jz short loc_38E9
mov rax, [rbp+var_10]
cmp dword ptr [rax], 0
jz short loc_38DB
mov rax, [rbp+var_10]
mov eax, [rax+4]
cmp eax, [rbp+var_14]
jl short loc_38DB
mov rdi, [rbp+var_10]
call check_memory_corruption
mov rax, [rbp+var_10]
mov eax, [rax+4]
cmp eax, [rbp+var_24]
jge short loc_38D9
mov rax, [rbp+var_10]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov eax, [rax+4]
mov [rbp+var_24], eax
mov rax, [rbp+var_10]
mov eax, [rax+4]
cmp eax, [rbp+var_14]
jnz short loc_38D7
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
jmp short loc_38FC
loc_38D7:
jmp short $+2
loc_38D9:
jmp short $+2
loc_38DB:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rbp+var_10], rax
jmp short loc_387E
loc_38E9:
cmp [rbp+var_20], 0
jz short loc_38F2
jmp short loc_38F4
loc_38F2:
jmp short $+2
loc_38F4:
mov rax, [rbp+var_20]
mov [rbp+var_8], rax
loc_38FC:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
|
long long SearchFree(long long a1, int a2)
{
int v3; // [rsp+Ch] [rbp-24h]
long long v4; // [rsp+10h] [rbp-20h]
v4 = 0LL;
v3 = 0x7FFFFFFF;
while ( a1 )
{
if ( *(_DWORD *)a1 )
{
if ( *(_DWORD *)(a1 + 4) >= a2 )
{
check_memory_corruption(a1);
if ( *(_DWORD *)(a1 + 4) < v3 )
{
v4 = a1;
v3 = *(_DWORD *)(a1 + 4);
if ( v3 == a2 )
return a1;
}
}
}
a1 = *(_QWORD *)(a1 + 8);
}
return v4;
}
|
SearchFree:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],0x0
MOV dword ptr [RBP + -0x24],0x7fffffff
LAB_0010387e:
CMP qword ptr [RBP + -0x10],0x0
JZ 0x001038e9
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX],0x0
JZ 0x001038db
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x4]
CMP EAX,dword ptr [RBP + -0x14]
JL 0x001038db
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001048d0
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x4]
CMP EAX,dword ptr [RBP + -0x24]
JGE 0x001038d9
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x4]
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x4]
CMP EAX,dword ptr [RBP + -0x14]
JNZ 0x001038d7
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001038fc
LAB_001038d7:
JMP 0x001038d9
LAB_001038d9:
JMP 0x001038db
LAB_001038db:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x10],RAX
JMP 0x0010387e
LAB_001038e9:
CMP qword ptr [RBP + -0x20],0x0
JZ 0x001038f2
JMP 0x001038f4
LAB_001038f2:
JMP 0x001038f4
LAB_001038f4:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x8],RAX
LAB_001038fc:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
int * SearchFree(int *param_1,int param_2)
{
int local_2c;
int *local_28;
int *local_18;
local_28 = (int *)0x0;
local_2c = 0x7fffffff;
local_18 = param_1;
do {
if (local_18 == (int *)0x0) {
return local_28;
}
if (((*local_18 != 0) && (param_2 <= local_18[1])) &&
(check_memory_corruption(local_18), local_18[1] < local_2c)) {
local_28 = local_18;
local_2c = local_18[1];
if (local_18[1] == param_2) {
return local_18;
}
}
local_18 = *(int **)(local_18 + 2);
} while( true );
}
|
|
65,019 |
evmone::VM::get_execution_state(unsigned long)
|
corpus-core[P]colibri-stateless/build_O0/_deps/evmone_external-src/lib/evmone/vm.cpp
|
ExecutionState& VM::get_execution_state(size_t depth) noexcept
{
// Vector already has the capacity for all possible depths,
// so reallocation never happens (therefore: noexcept).
// The ExecutionStates are lazily created because they pre-allocate EVM memory and stack.
assert(depth < m_execution_states.capacity());
if (m_execution_states.size() <= depth)
m_execution_states.resize(depth + 1);
return m_execution_states[depth];
}
|
O0
|
cpp
|
evmone::VM::get_execution_state(unsigned long):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
addq $0x40, %rdi
callq 0x38dc0
movq %rax, %rcx
movq -0x18(%rbp), %rax
cmpq %rcx, %rax
jae 0x38bc7
jmp 0x38be6
leaq 0xa55c9(%rip), %rdi # 0xde197
leaq 0xa55e8(%rip), %rsi # 0xde1bd
movl $0x5e, %edx
leaq 0xa5659(%rip), %rcx # 0xde23a
callq 0x23120
movq -0x20(%rbp), %rdi
addq $0x40, %rdi
callq 0x38df0
cmpq -0x10(%rbp), %rax
ja 0x38c11
movq -0x20(%rbp), %rdi
addq $0x40, %rdi
movq -0x10(%rbp), %rsi
incq %rsi
callq 0x38e20
jmp 0x38c0f
jmp 0x38c11
movq -0x20(%rbp), %rdi
addq $0x40, %rdi
movq -0x10(%rbp), %rsi
callq 0x38eb0
addq $0x20, %rsp
popq %rbp
retq
movq %rax, %rdi
callq 0x37a70
|
_ZN6evmone2VM19get_execution_stateEm:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]
mov [rbp+var_20], rdi
mov rax, [rbp+var_10]
mov [rbp+var_18], rax
add rdi, 40h ; '@'
call _ZNKSt6vectorIN6evmone14ExecutionStateESaIS1_EE8capacityEv; std::vector<evmone::ExecutionState>::capacity(void)
mov rcx, rax
mov rax, [rbp+var_18]
cmp rax, rcx
jnb short loc_38BC7
jmp short loc_38BE6
loc_38BC7:
lea rdi, aDepthMExecutio; "depth < m_execution_states.capacity()"
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov edx, 5Eh ; '^'
lea rcx, aExecutionstate; "ExecutionState &evmone::VM::get_executi"...
call ___assert_fail
loc_38BE6:
mov rdi, [rbp+var_20]
add rdi, 40h ; '@'
call _ZNKSt6vectorIN6evmone14ExecutionStateESaIS1_EE4sizeEv; std::vector<evmone::ExecutionState>::size(void)
cmp rax, [rbp+var_10]
ja short loc_38C11
mov rdi, [rbp+var_20]
add rdi, 40h ; '@'
mov rsi, [rbp+var_10]
inc rsi
call _ZNSt6vectorIN6evmone14ExecutionStateESaIS1_EE6resizeEm; std::vector<evmone::ExecutionState>::resize(ulong)
jmp short $+2
loc_38C0F:
jmp short $+2
loc_38C11:
mov rdi, [rbp+var_20]
add rdi, 40h ; '@'
mov rsi, [rbp+var_10]
call _ZNSt6vectorIN6evmone14ExecutionStateESaIS1_EEixEm; std::vector<evmone::ExecutionState>::operator[](ulong)
add rsp, 20h
pop rbp
retn
mov rdi, rax
call __clang_call_terminate
|
long long evmone::VM::get_execution_state(evmone::VM *this, unsigned long long a2)
{
if ( a2 >= std::vector<evmone::ExecutionState>::capacity((char *)this + 64) )
__assert_fail(
"depth < m_execution_states.capacity()",
"/workspace/llm4binary/github/2025_star3/corpus-core[P]colibri-stateless/build_O0/_deps/evmone_external-src/lib/evmone/vm.cpp",
94LL,
"ExecutionState &evmone::VM::get_execution_state(size_t)");
if ( std::vector<evmone::ExecutionState>::size((char *)this + 64) <= a2 )
std::vector<evmone::ExecutionState>::resize((char *)this + 64, a2 + 1);
return std::vector<evmone::ExecutionState>::operator[]((char *)this + 64, a2);
}
|
get_execution_state:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x18],RAX
ADD RDI,0x40
CALL 0x00138dc0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,RCX
JNC 0x00138bc7
JMP 0x00138be6
LAB_00138bc7:
LEA RDI,[0x1de197]
LEA RSI,[0x1de1bd]
MOV EDX,0x5e
LEA RCX,[0x1de23a]
CALL 0x00123120
LAB_00138be6:
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x40
CALL 0x00138df0
CMP RAX,qword ptr [RBP + -0x10]
JA 0x00138c11
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x40
MOV RSI,qword ptr [RBP + -0x10]
INC RSI
LAB_00138c08:
CALL 0x00138e20
JMP 0x00138c0f
LAB_00138c0f:
JMP 0x00138c11
LAB_00138c11:
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x40
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x00138eb0
ADD RSP,0x20
POP RBP
RET
|
/* evmone::VM::get_execution_state(unsigned long) */
void __thiscall evmone::VM::get_execution_state(VM *this,ulong param_1)
{
ulong uVar1;
uVar1 = std::vector<evmone::ExecutionState,std::allocator<evmone::ExecutionState>>::capacity
((vector<evmone::ExecutionState,std::allocator<evmone::ExecutionState>> *)
(this + 0x40));
if (param_1 < uVar1) {
uVar1 = std::vector<evmone::ExecutionState,std::allocator<evmone::ExecutionState>>::size
((vector<evmone::ExecutionState,std::allocator<evmone::ExecutionState>> *)
(this + 0x40));
if (uVar1 <= param_1) {
/* try { // try from 00138c08 to 00138c0c has its CatchHandler @ 00138c28 */
std::vector<evmone::ExecutionState,std::allocator<evmone::ExecutionState>>::resize
((vector<evmone::ExecutionState,std::allocator<evmone::ExecutionState>> *)
(this + 0x40),param_1 + 1);
}
std::vector<evmone::ExecutionState,std::allocator<evmone::ExecutionState>>::operator[]
((vector<evmone::ExecutionState,std::allocator<evmone::ExecutionState>> *)
(this + 0x40),param_1);
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("depth < m_execution_states.capacity()",
"/workspace/llm4binary/github/2025_star3/corpus-core[P]colibri-stateless/build_O0/_deps/evmone_external-src/lib/evmone/vm.cpp"
,0x5e,"ExecutionState &evmone::VM::get_execution_state(size_t)");
}
|
|
65,020 |
ma_mmap_pwrite
|
eloqsql/storage/maria/ma_dynrec.c
|
size_t _ma_mmap_pwrite(MARIA_HA *info, const uchar *Buffer,
size_t Count, my_off_t offset, myf MyFlags)
{
DBUG_PRINT("info", ("maria_write with mmap %d\n", info->dfile.file));
if (info->s->lock_key_trees)
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->lock_key_trees)
mysql_rwlock_unlock(&info->s->mmap_lock);
return 0;
}
else
{
info->s->nonmmaped_inserts++;
if (info->s->lock_key_trees)
mysql_rwlock_unlock(&info->s->mmap_lock);
return my_pwrite(info->dfile.file, Buffer, Count, offset, MyFlags);
}
}
|
O3
|
c
|
ma_mmap_pwrite:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r12
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r13
movq %rdi, %r15
movq (%rdi), %rax
cmpb $0x0, 0x7e3(%rax)
je 0x3d374
leaq 0xb78(%rax), %rdi
cmpq $0x0, 0xc08(%rax)
jne 0x3d430
callq 0xa5294
movq (%r15), %rax
leaq (%r14,%rbx), %rcx
cmpq %rcx, 0xa00(%rax)
jae 0x3d3e3
movq %r12, -0x30(%rbp)
incl 0xa08(%rax)
movq (%r15), %r12
cmpb $0x0, 0x7e3(%r12)
je 0x3d3bc
movq 0xc08(%r12), %rdi
addq $0xb78, %r12 # imm = 0xB78
testq %rdi, %rdi
jne 0x3d446
movq %r12, %rdi
callq 0xa53c2
movl 0x480(%r15), %edi
movq %r13, %rsi
movq %rbx, %rdx
movq %r14, %rcx
movq -0x30(%rbp), %r8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xa16ca
addq 0x5f0(%rax), %r14
movq %r14, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x29080
movq (%r15), %rbx
cmpb $0x0, 0x7e3(%rbx)
je 0x3d41f
movq 0xc08(%rbx), %rdi
addq $0xb78, %rbx # imm = 0xB78
testq %rdi, %rdi
jne 0x3d45b
movq %rbx, %rdi
callq 0xa53c2
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x9d616(%rip), %rsi # 0xdaa4d
movl $0xbb, %edx
callq 0x2ec50
jmp 0x3d374
leaq 0x34ac73(%rip), %rax # 0x3880c0
movq (%rax), %rax
callq *0x168(%rax)
jmp 0x3d3b4
leaq 0x34ac5e(%rip), %rax # 0x3880c0
movq (%rax), %rax
callq *0x168(%rax)
jmp 0x3d417
|
_ma_mmap_pwrite:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12, r8
mov r14, rcx
mov rbx, rdx
mov r13, rsi
mov r15, rdi
mov rax, [rdi]
cmp byte ptr [rax+7E3h], 0
jz short loc_3D374
lea rdi, [rax+0B78h]
cmp qword ptr [rax+0C08h], 0
jnz loc_3D430
call my_rw_rdlock
loc_3D374:
mov rax, [r15]
lea rcx, [r14+rbx]
cmp [rax+0A00h], rcx
jnb short loc_3D3E3
mov [rbp+var_30], r12
inc dword ptr [rax+0A08h]
mov r12, [r15]
cmp byte ptr [r12+7E3h], 0
jz short loc_3D3BC
mov rdi, [r12+0C08h]
add r12, 0B78h
test rdi, rdi
jnz loc_3D446
loc_3D3B4:
mov rdi, r12
call my_rw_unlock
loc_3D3BC:
mov edi, [r15+480h]
mov rsi, r13
mov rdx, rbx
mov rcx, r14
mov r8, [rbp+var_30]
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp my_pwrite
loc_3D3E3:
add r14, [rax+5F0h]
mov rdi, r14
mov rsi, r13
mov rdx, rbx
call _memcpy
mov rbx, [r15]
cmp byte ptr [rbx+7E3h], 0
jz short loc_3D41F
mov rdi, [rbx+0C08h]
add rbx, 0B78h
test rdi, rdi
jnz short loc_3D45B
loc_3D417:
mov rdi, rbx
call my_rw_unlock
loc_3D41F:
xor eax, eax
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3D430:
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 0BBh
call psi_rwlock_rdlock
jmp loc_3D374
loc_3D446:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+168h]
jmp loc_3D3B4
loc_3D45B:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+168h]
jmp short loc_3D417
|
long long ma_mmap_pwrite(unsigned int *a1, long long a2, long long a3, long long a4, long long a5)
{
long long v9; // rax
long long v10; // rdi
long long v11; // rax
long long v12; // r12
long long v13; // rdi
long long v14; // r12
long long v16; // rbx
long long v17; // rdi
long long v18; // rbx
long long v19; // [rsp+0h] [rbp-30h]
v9 = *(_QWORD *)a1;
if ( *(_BYTE *)(*(_QWORD *)a1 + 2019LL) )
{
v10 = v9 + 2936;
if ( *(_QWORD *)(v9 + 3080) )
psi_rwlock_rdlock(v10, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_dynrec.c", 0xBBu);
else
my_rw_rdlock(v10);
}
v11 = *(_QWORD *)a1;
if ( *(_QWORD *)(*(_QWORD *)a1 + 2560LL) >= (unsigned long long)(a4 + a3) )
{
memcpy(*(_QWORD *)(v11 + 1520) + a4, a2, a3);
v16 = *(_QWORD *)a1;
if ( *(_BYTE *)(*(_QWORD *)a1 + 2019LL) )
{
v17 = *(_QWORD *)(v16 + 3080);
v18 = v16 + 2936;
if ( v17 )
((void ( *)(long long))PSI_server[45])(v17);
my_rw_unlock(v18);
}
return 0LL;
}
else
{
v19 = a5;
++*(_DWORD *)(v11 + 2568);
v12 = *(_QWORD *)a1;
if ( *(_BYTE *)(*(_QWORD *)a1 + 2019LL) )
{
v13 = *(_QWORD *)(v12 + 3080);
v14 = v12 + 2936;
if ( v13 )
((void ( *)(long long))PSI_server[45])(v13);
my_rw_unlock(v14);
}
return my_pwrite(a1[288], a2, a3, a4, v19);
}
}
|
_ma_mmap_pwrite:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12,R8
MOV R14,RCX
MOV RBX,RDX
MOV R13,RSI
MOV R15,RDI
MOV RAX,qword ptr [RDI]
CMP byte ptr [RAX + 0x7e3],0x0
JZ 0x0013d374
LEA RDI,[RAX + 0xb78]
CMP qword ptr [RAX + 0xc08],0x0
JNZ 0x0013d430
CALL 0x001a5294
LAB_0013d374:
MOV RAX,qword ptr [R15]
LEA RCX,[R14 + RBX*0x1]
CMP qword ptr [RAX + 0xa00],RCX
JNC 0x0013d3e3
MOV qword ptr [RBP + -0x30],R12
INC dword ptr [RAX + 0xa08]
MOV R12,qword ptr [R15]
CMP byte ptr [R12 + 0x7e3],0x0
JZ 0x0013d3bc
MOV RDI,qword ptr [R12 + 0xc08]
ADD R12,0xb78
TEST RDI,RDI
JNZ 0x0013d446
LAB_0013d3b4:
MOV RDI,R12
CALL 0x001a53c2
LAB_0013d3bc:
MOV EDI,dword ptr [R15 + 0x480]
MOV RSI,R13
MOV RDX,RBX
MOV RCX,R14
MOV R8,qword ptr [RBP + -0x30]
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001a16ca
LAB_0013d3e3:
ADD R14,qword ptr [RAX + 0x5f0]
MOV RDI,R14
MOV RSI,R13
MOV RDX,RBX
CALL 0x00129080
MOV RBX,qword ptr [R15]
CMP byte ptr [RBX + 0x7e3],0x0
JZ 0x0013d41f
MOV RDI,qword ptr [RBX + 0xc08]
ADD RBX,0xb78
TEST RDI,RDI
JNZ 0x0013d45b
LAB_0013d417:
MOV RDI,RBX
CALL 0x001a53c2
LAB_0013d41f:
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013d430:
LEA RSI,[0x1daa4d]
MOV EDX,0xbb
CALL 0x0012ec50
JMP 0x0013d374
LAB_0013d446:
LEA RAX,[0x4880c0]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x168]
JMP 0x0013d3b4
LAB_0013d45b:
LEA RAX,[0x4880c0]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x168]
JMP 0x0013d417
|
int8
_ma_mmap_pwrite(long *param_1,void *param_2,size_t param_3,long param_4,int8 param_5)
{
long lVar1;
int8 uVar2;
lVar1 = *param_1;
if (*(char *)(lVar1 + 0x7e3) != '\0') {
if (*(long *)(lVar1 + 0xc08) == 0) {
my_rw_rdlock();
}
else {
psi_rwlock_rdlock(lVar1 + 0xb78,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_dynrec.c",0xbb);
}
}
lVar1 = *param_1;
if (*(ulong *)(lVar1 + 0xa00) < param_4 + param_3) {
*(int *)(lVar1 + 0xa08) = *(int *)(lVar1 + 0xa08) + 1;
lVar1 = *param_1;
if (*(char *)(lVar1 + 0x7e3) != '\0') {
if (*(long *)(lVar1 + 0xc08) != 0) {
(**(code **)(PSI_server + 0x168))();
}
my_rw_unlock(lVar1 + 0xb78);
}
uVar2 = my_pwrite((int)param_1[0x90],param_2,param_3,param_4,param_5);
return uVar2;
}
memcpy((void *)(param_4 + *(long *)(lVar1 + 0x5f0)),param_2,param_3);
lVar1 = *param_1;
if (*(char *)(lVar1 + 0x7e3) != '\0') {
if (*(long *)(lVar1 + 0xc08) != 0) {
(**(code **)(PSI_server + 0x168))();
}
my_rw_unlock(lVar1 + 0xb78);
}
return 0;
}
|
|
65,021 |
common_sampler::set_logits(llama_context*, int)
|
monkey531[P]llama/common/sampling.cpp
|
void set_logits(struct llama_context * ctx, int idx) {
const auto * logits = llama_get_logits_ith(ctx, idx);
const llama_model * model = llama_get_model(ctx);
const llama_vocab * vocab = llama_model_get_vocab(model);
const int n_vocab = llama_vocab_n_tokens(vocab);
cur.resize(n_vocab);
for (llama_token token_id = 0; token_id < n_vocab; token_id++) {
cur[token_id] = llama_token_data{token_id, logits[token_id], 0.0f};
}
cur_p = { cur.data(), cur.size(), -1, false };
}
|
O2
|
cpp
|
common_sampler::set_logits(llama_context*, int):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
movl %edx, %esi
callq 0x24d80
movq %rax, %r14
movq %r15, %rdi
callq 0x24790
movq %rax, %rdi
callq 0x25180
movq %rax, %rdi
callq 0x250b0
leaq 0x180(%rbx), %rdi
movslq %eax, %r15
movq %r15, %rsi
callq 0x9af82
movq 0x180(%rbx), %rcx
xorl %eax, %eax
testl %r15d, %r15d
cmovlel %eax, %r15d
leaq 0x8(%rcx), %rdx
cmpq %rax, %r15
je 0x9ac65
movss (%r14,%rax,4), %xmm0
movl %eax, -0x8(%rdx)
movss %xmm0, -0x4(%rdx)
andl $0x0, (%rdx)
incq %rax
addq $0xc, %rdx
jmp 0x9ac46
movq 0x188(%rbx), %rax
subq %rcx, %rax
pushq $0xc
popq %rsi
cqto
idivq %rsi
movq %rcx, 0x198(%rbx)
movq %rax, 0x1a0(%rbx)
orq $-0x1, 0x1a8(%rbx)
movb $0x0, 0x1b0(%rbx)
popq %rbx
popq %r14
popq %r15
retq
|
_ZN14common_sampler10set_logitsEP13llama_contexti:
push r15
push r14
push rbx
mov r15, rsi
mov rbx, rdi
mov rdi, rsi
mov esi, edx
call _llama_get_logits_ith
mov r14, rax
mov rdi, r15
call _llama_get_model
mov rdi, rax
call _llama_model_get_vocab
mov rdi, rax
call _llama_vocab_n_tokens
lea rdi, [rbx+180h]
movsxd r15, eax
mov rsi, r15
call _ZNSt6vectorI16llama_token_dataSaIS0_EE6resizeEm; std::vector<llama_token_data>::resize(ulong)
mov rcx, [rbx+180h]
xor eax, eax
test r15d, r15d
cmovle r15d, eax
lea rdx, [rcx+8]
loc_9AC46:
cmp r15, rax
jz short loc_9AC65
movss xmm0, dword ptr [r14+rax*4]
mov [rdx-8], eax
movss dword ptr [rdx-4], xmm0
and dword ptr [rdx], 0
inc rax
add rdx, 0Ch
jmp short loc_9AC46
loc_9AC65:
mov rax, [rbx+188h]
sub rax, rcx
push 0Ch
pop rsi
cqo
idiv rsi
mov [rbx+198h], rcx
mov [rbx+1A0h], rax
or qword ptr [rbx+1A8h], 0FFFFFFFFFFFFFFFFh
mov byte ptr [rbx+1B0h], 0
pop rbx
pop r14
pop r15
retn
|
long long common_sampler::set_logits(long long a1, long long a2, unsigned int a3)
{
long long logits_ith; // r14
long long model; // rax
long long vocab; // rax
long long v6; // r15
long long v7; // rcx
long long v8; // rax
_DWORD *v9; // rdx
int v10; // xmm0_4
long long result; // rax
logits_ith = llama_get_logits_ith(a2, a3);
model = llama_get_model(a2);
vocab = llama_model_get_vocab(model);
v6 = (int)llama_vocab_n_tokens(vocab);
std::vector<llama_token_data>::resize(a1 + 384, v6);
v7 = *(_QWORD *)(a1 + 384);
v8 = 0LL;
if ( (int)v6 <= 0 )
v6 = 0LL;
v9 = (_DWORD *)(v7 + 8);
while ( v6 != v8 )
{
v10 = *(_DWORD *)(logits_ith + 4 * v8);
*(v9 - 2) = v8;
*(v9 - 1) = v10;
*v9 = 0;
++v8;
v9 += 3;
}
result = (*(_QWORD *)(a1 + 392) - v7) / 12;
*(_QWORD *)(a1 + 408) = v7;
*(_QWORD *)(a1 + 416) = result;
*(_QWORD *)(a1 + 424) = -1LL;
*(_BYTE *)(a1 + 432) = 0;
return result;
}
|
set_logits:
PUSH R15
PUSH R14
PUSH RBX
MOV R15,RSI
MOV RBX,RDI
MOV RDI,RSI
MOV ESI,EDX
CALL 0x00124d80
MOV R14,RAX
MOV RDI,R15
CALL 0x00124790
MOV RDI,RAX
CALL 0x00125180
MOV RDI,RAX
CALL 0x001250b0
LEA RDI,[RBX + 0x180]
MOVSXD R15,EAX
MOV RSI,R15
CALL 0x0019af82
MOV RCX,qword ptr [RBX + 0x180]
XOR EAX,EAX
TEST R15D,R15D
CMOVLE R15D,EAX
LEA RDX,[RCX + 0x8]
LAB_0019ac46:
CMP R15,RAX
JZ 0x0019ac65
MOVSS XMM0,dword ptr [R14 + RAX*0x4]
MOV dword ptr [RDX + -0x8],EAX
MOVSS dword ptr [RDX + -0x4],XMM0
AND dword ptr [RDX],0x0
INC RAX
ADD RDX,0xc
JMP 0x0019ac46
LAB_0019ac65:
MOV RAX,qword ptr [RBX + 0x188]
SUB RAX,RCX
PUSH 0xc
POP RSI
CQO
IDIV RSI
MOV qword ptr [RBX + 0x198],RCX
MOV qword ptr [RBX + 0x1a0],RAX
OR qword ptr [RBX + 0x1a8],-0x1
MOV byte ptr [RBX + 0x1b0],0x0
POP RBX
POP R14
POP R15
RET
|
/* common_sampler::set_logits(llama_context*, int) */
void __thiscall common_sampler::set_logits(common_sampler *this,llama_context *param_1,int param_2)
{
int4 uVar1;
long lVar2;
uint uVar3;
long lVar4;
int8 uVar5;
ulong uVar6;
int4 *puVar7;
ulong uVar8;
lVar4 = llama_get_logits_ith(param_1,param_2);
uVar5 = llama_get_model(param_1);
uVar5 = llama_model_get_vocab(uVar5);
uVar3 = llama_vocab_n_tokens(uVar5);
std::vector<llama_token_data,std::allocator<llama_token_data>>::resize
((vector<llama_token_data,std::allocator<llama_token_data>> *)(this + 0x180),
(long)(int)uVar3);
lVar2 = *(long *)(this + 0x180);
uVar6 = 0;
uVar8 = (ulong)uVar3;
if ((int)uVar3 < 1) {
uVar8 = uVar6;
}
puVar7 = (int4 *)(lVar2 + 8);
for (; uVar8 != uVar6; uVar6 = uVar6 + 1) {
uVar1 = *(int4 *)(lVar4 + uVar6 * 4);
puVar7[-2] = (int)uVar6;
puVar7[-1] = uVar1;
*puVar7 = 0;
puVar7 = puVar7 + 3;
}
*(long *)(this + 0x198) = lVar2;
*(long *)(this + 0x1a0) = (*(long *)(this + 0x188) - lVar2) / 0xc;
*(int8 *)(this + 0x1a8) = 0xffffffffffffffff;
this[0x1b0] = (common_sampler)0x0;
return;
}
|
|
65,022 |
init_event_name_sizing(PFS_global_param const*)
|
eloqsql/storage/perfschema/pfs_instr_class.cc
|
void init_event_name_sizing(const PFS_global_param *param)
{
/* global table io, table lock, idle, metadata */
mutex_class_start= COUNT_GLOBAL_EVENT_INDEX;
rwlock_class_start= mutex_class_start + param->m_mutex_class_sizing;
cond_class_start= rwlock_class_start + param->m_rwlock_class_sizing;
file_class_start= cond_class_start + param->m_cond_class_sizing;
socket_class_start= file_class_start + param->m_file_class_sizing;
wait_class_max= socket_class_start + param->m_socket_class_sizing;
}
|
O0
|
cpp
|
init_event_name_sizing(PFS_global_param const*):
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl $0x4, 0x3cbcae(%rip) # 0x40ce10
movl 0x3cbca8(%rip), %eax # 0x40ce10
movq -0x8(%rbp), %rcx
addq 0x18(%rcx), %rax
movl %eax, 0x3cbc9e(%rip) # 0x40ce14
movl 0x3cbc98(%rip), %eax # 0x40ce14
movq -0x8(%rbp), %rcx
addq 0x20(%rcx), %rax
movl %eax, 0x3cbc8e(%rip) # 0x40ce18
movl 0x3cbc88(%rip), %eax # 0x40ce18
movq -0x8(%rbp), %rcx
addq 0x28(%rcx), %rax
movl %eax, 0x3cbc7e(%rip) # 0x40ce1c
movl 0x3cbc78(%rip), %eax # 0x40ce1c
movq -0x8(%rbp), %rcx
addq 0x50(%rcx), %rax
movl %eax, 0x3cbc72(%rip) # 0x40ce24
movl 0x3cbc6c(%rip), %eax # 0x40ce24
movq -0x8(%rbp), %rcx
addq 0x98(%rcx), %rax
movl %eax, 0x3cbc57(%rip) # 0x40ce20
popq %rbp
retq
nopl (%rax,%rax)
|
_Z22init_event_name_sizingPK16PFS_global_param:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov cs:mutex_class_start, 4
mov eax, cs:mutex_class_start
mov rcx, [rbp+var_8]
add rax, [rcx+18h]
mov cs:rwlock_class_start, eax
mov eax, cs:rwlock_class_start
mov rcx, [rbp+var_8]
add rax, [rcx+20h]
mov cs:cond_class_start, eax
mov eax, cs:cond_class_start
mov rcx, [rbp+var_8]
add rax, [rcx+28h]
mov cs:file_class_start, eax
mov eax, cs:file_class_start
mov rcx, [rbp+var_8]
add rax, [rcx+50h]
mov cs:socket_class_start, eax
mov eax, cs:socket_class_start
mov rcx, [rbp+var_8]
add rax, [rcx+98h]
mov cs:wait_class_max, eax
pop rbp
retn
|
long long init_event_name_sizing(long long a1)
{
long long result; // rax
mutex_class_start = 4;
rwlock_class_start = *(_DWORD *)(a1 + 24) + 4;
cond_class_start = *(_DWORD *)(a1 + 32) + rwlock_class_start;
file_class_start = *(_DWORD *)(a1 + 40) + cond_class_start;
socket_class_start = *(_DWORD *)(a1 + 80) + file_class_start;
result = *(_QWORD *)(a1 + 152) + (unsigned int)socket_class_start;
wait_class_max = *(_DWORD *)(a1 + 152) + socket_class_start;
return result;
}
|
init_event_name_sizing:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [0x0050ce10],0x4
MOV EAX,dword ptr [0x0050ce10]
MOV RCX,qword ptr [RBP + -0x8]
ADD RAX,qword ptr [RCX + 0x18]
MOV dword ptr [0x0050ce14],EAX
MOV EAX,dword ptr [0x0050ce14]
MOV RCX,qword ptr [RBP + -0x8]
ADD RAX,qword ptr [RCX + 0x20]
MOV dword ptr [0x0050ce18],EAX
MOV EAX,dword ptr [0x0050ce18]
MOV RCX,qword ptr [RBP + -0x8]
ADD RAX,qword ptr [RCX + 0x28]
MOV dword ptr [0x0050ce1c],EAX
MOV EAX,dword ptr [0x0050ce1c]
MOV RCX,qword ptr [RBP + -0x8]
ADD RAX,qword ptr [RCX + 0x50]
MOV dword ptr [0x0050ce24],EAX
MOV EAX,dword ptr [0x0050ce24]
MOV RCX,qword ptr [RBP + -0x8]
ADD RAX,qword ptr [RCX + 0x98]
MOV dword ptr [0x0050ce20],EAX
POP RBP
RET
|
/* init_event_name_sizing(PFS_global_param const*) */
void init_event_name_sizing(PFS_global_param *param_1)
{
mutex_class_start = 4;
rwlock_class_start = (int)*(int8 *)(param_1 + 0x18) + 4;
cond_class_start = rwlock_class_start + (int)*(int8 *)(param_1 + 0x20);
file_class_start = cond_class_start + (int)*(int8 *)(param_1 + 0x28);
socket_class_start = file_class_start + (int)*(int8 *)(param_1 + 0x50);
wait_class_max = socket_class_start + (int)*(int8 *)(param_1 + 0x98);
return;
}
|
|
65,023 |
add_struct_to_map(hash_lex_struct*)
|
eloqsql/sql/gen_lex_hash.cc
|
void add_struct_to_map(hash_lex_struct *st)
{
st->ithis= size_hash_map/4;
size_hash_map+= 4;
hash_map= (char*)realloc((char*)hash_map,size_hash_map);
hash_map[size_hash_map-4]= (char) (st->first_char == -1 ? 0 :
st->first_char);
hash_map[size_hash_map-3]= (char) (st->first_char == -1 ||
st->first_char == 0 ? 0 : st->last_char);
if (st->first_char == -1)
{
hash_map[size_hash_map-2]= ((unsigned int)(int16)st->iresult)&255;
hash_map[size_hash_map-1]= ((unsigned int)(int16)st->iresult)>>8;
}
else if (st->first_char == 0)
{
hash_map[size_hash_map-2]= ((unsigned int)(int16)array_elements(symbols))&255;
hash_map[size_hash_map-1]= ((unsigned int)(int16)array_elements(symbols))>>8;
}
}
|
O3
|
cpp
|
add_struct_to_map(hash_lex_struct*):
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq 0x8c24(%rip), %rsi # 0x13640
leal 0x3(%rsi), %eax
testq %rsi, %rsi
cmovnsl %esi, %eax
sarl $0x2, %eax
movl %eax, 0x10(%rdi)
addq $0x4, %rsi
movl %esi, 0x8c0b(%rip) # 0x13640
movq 0x8bfc(%rip), %rdi # 0x13638
callq 0xa0d0
movq %rax, 0x8bf0(%rip) # 0x13638
movl (%rbx), %edx
xorl %esi, %esi
cmpl $-0x1, %edx
movl %edx, %edi
cmovel %esi, %edi
movslq 0x8be5(%rip), %rcx # 0x13640
movb %dil, -0x4(%rax,%rcx)
leal 0x1(%rdx), %edi
cmpl $0x2, %edi
jb 0xaa6c
movb 0x4(%rbx), %sil
movb %sil, -0x3(%rax,%rcx)
testl %edx, %edx
je 0xaa86
cmpl $-0x1, %edx
jne 0xaa91
movl 0x8(%rbx), %edx
movb %dl, -0x2(%rax,%rcx)
shrl $0x8, %edx
jmp 0xaa8d
movb $-0x4a, -0x2(%rax,%rcx)
movb $0x2, %dl
movb %dl, -0x1(%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
_Z17add_struct_to_mapP15hash_lex_struct:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
movsxd rsi, cs:size_hash_map
lea eax, [rsi+3]
test rsi, rsi
cmovns eax, esi
sar eax, 2
mov [rdi+10h], eax
add rsi, 4
mov cs:size_hash_map, esi
mov rdi, cs:hash_map
call _realloc
mov cs:hash_map, rax
mov edx, [rbx]
xor esi, esi
cmp edx, 0FFFFFFFFh
mov edi, edx
cmovz edi, esi
movsxd rcx, cs:size_hash_map
mov [rax+rcx-4], dil
lea edi, [rdx+1]
cmp edi, 2
jb short loc_AA6C
mov sil, [rbx+4]
loc_AA6C:
mov [rax+rcx-3], sil
test edx, edx
jz short loc_AA86
cmp edx, 0FFFFFFFFh
jnz short loc_AA91
mov edx, [rbx+8]
mov [rax+rcx-2], dl
shr edx, 8
jmp short loc_AA8D
loc_AA86:
mov byte ptr [rax+rcx-2], 0B6h
mov dl, 2
loc_AA8D:
mov [rax+rcx-1], dl
loc_AA91:
add rsp, 8
pop rbx
pop rbp
retn
|
long long add_struct_to_map(int *a1)
{
long long v2; // rsi
int v3; // eax
long long v4; // rsi
long long result; // rax
int v6; // edx
char v7; // si
int v8; // edi
long long v9; // rcx
unsigned int v10; // edx
unsigned int v11; // edx
v2 = size_hash_map;
v3 = size_hash_map + 3;
if ( size_hash_map >= 0LL )
v3 = size_hash_map;
a1[4] = v3 >> 2;
v4 = v2 + 4;
size_hash_map = v4;
result = realloc(hash_map, v4);
hash_map = result;
v6 = *a1;
v7 = 0;
v8 = *a1;
if ( *a1 == -1 )
LOBYTE(v8) = 0;
v9 = size_hash_map;
*(_BYTE *)(result + size_hash_map - 4) = v8;
if ( (unsigned int)(v6 + 1) >= 2 )
v7 = *((_BYTE *)a1 + 4);
*(_BYTE *)(result + v9 - 3) = v7;
if ( v6 )
{
if ( v6 != -1 )
return result;
v10 = a1[2];
*(_BYTE *)(result + v9 - 2) = v10;
v11 = v10 >> 8;
}
else
{
*(_BYTE *)(result + v9 - 2) = -74;
LOBYTE(v11) = 2;
}
*(_BYTE *)(result + v9 - 1) = v11;
return result;
}
|
add_struct_to_map:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOVSXD RSI,dword ptr [0x00113640]
LEA EAX,[RSI + 0x3]
TEST RSI,RSI
CMOVNS EAX,ESI
SAR EAX,0x2
MOV dword ptr [RDI + 0x10],EAX
ADD RSI,0x4
MOV dword ptr [0x00113640],ESI
MOV RDI,qword ptr [0x00113638]
CALL 0x0010a0d0
MOV qword ptr [0x00113638],RAX
MOV EDX,dword ptr [RBX]
XOR ESI,ESI
CMP EDX,-0x1
MOV EDI,EDX
CMOVZ EDI,ESI
MOVSXD RCX,dword ptr [0x00113640]
MOV byte ptr [RAX + RCX*0x1 + -0x4],DIL
LEA EDI,[RDX + 0x1]
CMP EDI,0x2
JC 0x0010aa6c
MOV SIL,byte ptr [RBX + 0x4]
LAB_0010aa6c:
MOV byte ptr [RAX + RCX*0x1 + -0x3],SIL
TEST EDX,EDX
JZ 0x0010aa86
CMP EDX,-0x1
JNZ 0x0010aa91
MOV EDX,dword ptr [RBX + 0x8]
MOV byte ptr [RAX + RCX*0x1 + -0x2],DL
SHR EDX,0x8
JMP 0x0010aa8d
LAB_0010aa86:
MOV byte ptr [RAX + RCX*0x1 + -0x2],0xb6
MOV DL,0x2
LAB_0010aa8d:
MOV byte ptr [RAX + RCX*0x1 + -0x1],DL
LAB_0010aa91:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
/* add_struct_to_map(hash_lex_struct*) */
void add_struct_to_map(hash_lex_struct *param_1)
{
int4 uVar1;
int iVar2;
void *pvVar3;
long lVar4;
int1 uVar5;
hash_lex_struct hVar6;
size_t __size;
hash_lex_struct hVar7;
iVar2 = size_hash_map + 3;
if (-1 < (long)size_hash_map) {
iVar2 = size_hash_map;
}
*(int *)(param_1 + 0x10) = iVar2 >> 2;
__size = (long)size_hash_map + 4;
size_hash_map = (int)__size;
pvVar3 = realloc(hash_map,__size);
iVar2 = *(int *)param_1;
hVar6 = (hash_lex_struct)0x0;
hVar7 = SUB41(iVar2,0);
if (iVar2 == -1) {
hVar7 = hVar6;
}
lVar4 = (long)size_hash_map;
hash_map = pvVar3;
*(hash_lex_struct *)((long)pvVar3 + lVar4 + -4) = hVar7;
if (1 < iVar2 + 1U) {
hVar6 = param_1[4];
}
*(hash_lex_struct *)((long)pvVar3 + lVar4 + -3) = hVar6;
if (iVar2 == 0) {
*(int1 *)((long)pvVar3 + lVar4 + -2) = 0xb6;
uVar5 = 2;
}
else {
if (iVar2 != -1) {
return;
}
uVar1 = *(int4 *)(param_1 + 8);
*(char *)((long)pvVar3 + lVar4 + -2) = (char)uVar1;
uVar5 = (int1)((uint)uVar1 >> 8);
}
*(int1 *)((long)pvVar3 + lVar4 + -1) = uVar5;
return;
}
|
|
65,024 |
tinyxml2::XMLNode::DeleteChild(tinyxml2::XMLNode*)
|
aimrt_mujoco_sim/_deps/tinyxml2-src/tinyxml2.cpp
|
void XMLNode::DeleteChild( XMLNode* node )
{
TIXMLASSERT( node );
TIXMLASSERT( node->_document == _document );
TIXMLASSERT( node->_parent == this );
Unlink( node );
TIXMLASSERT(node->_prev == 0);
TIXMLASSERT(node->_next == 0);
TIXMLASSERT(node->_parent == 0);
DeleteNode( node );
}
|
O0
|
cpp
|
tinyxml2::XMLNode::DeleteChild(tinyxml2::XMLNode*):
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
jmp 0x510059
jmp 0x51005b
jmp 0x51005d
jmp 0x51005f
jmp 0x510061
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x4f900
jmp 0x510071
jmp 0x510073
jmp 0x510075
jmp 0x510077
jmp 0x510079
movq 0x8(%rsp), %rdi
callq 0x4f950
addq $0x18, %rsp
retq
nopl (%rax,%rax)
|
_ZN8tinyxml27XMLNode11DeleteChildEPS0_:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov [rsp+18h+var_10], rsi
mov rax, [rsp+18h+var_8]
mov [rsp+18h+var_18], rax
jmp short $+2
loc_510059:
jmp short $+2
loc_51005B:
jmp short $+2
loc_51005D:
jmp short $+2
loc_51005F:
jmp short $+2
loc_510061:
mov rdi, [rsp+18h+var_18]; this
mov rsi, [rsp+18h+var_10]; tinyxml2::XMLNode *
call __ZN8tinyxml27XMLNode6UnlinkEPS0_; tinyxml2::XMLNode::Unlink(tinyxml2::XMLNode*)
jmp short $+2
loc_510071:
jmp short $+2
loc_510073:
jmp short $+2
loc_510075:
jmp short $+2
loc_510077:
jmp short $+2
loc_510079:
mov rdi, [rsp+18h+var_10]; this
call __ZN8tinyxml27XMLNode10DeleteNodeEPS0_; tinyxml2::XMLNode::DeleteNode(tinyxml2::XMLNode*)
add rsp, 18h
retn
|
long long tinyxml2::XMLNode::DeleteChild(tinyxml2::XMLNode *this, tinyxml2::XMLNode *a2)
{
tinyxml2::XMLNode::Unlink(this, a2);
return tinyxml2::XMLNode::DeleteNode(a2, a2);
}
|
capacity:
MOV qword ptr [RSP + -0x8],RDI
MOV RCX,qword ptr [RSP + -0x8]
MOV RAX,qword ptr [RCX + 0x10]
MOV RCX,qword ptr [RCX]
SUB RAX,RCX
SAR RAX,0x2
RET
|
/* std::vector<mjtObj_, std::allocator<mjtObj_> >::capacity() const */
long __thiscall
std::vector<mjtObj_,std::allocator<mjtObj_>>::capacity
(vector<mjtObj_,std::allocator<mjtObj_>> *this)
{
return *(long *)(this + 0x10) - *(long *)this >> 2;
}
|
|
65,025 |
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::lexer(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&&, bool)
|
monkey531[P]llama/common/./json.hpp
|
explicit lexer(InputAdapterType&& adapter, bool ignore_comments_ = false) noexcept
: ia(std::move(adapter))
, ignore_comments(ignore_comments_)
, decimal_point_char(static_cast<char_int_type>(get_decimal_point()))
{}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::lexer(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&&, bool):
pushq %rbx
movq %rdi, %rbx
movups (%rsi), %xmm0
movups %xmm0, (%rdi)
movb %dl, 0x10(%rdi)
movl $0xffffffff, 0x14(%rdi) # imm = 0xFFFFFFFF
xorl %eax, %eax
movb %al, 0x18(%rdi)
leaq 0x60(%rdi), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x40(%rdi)
movq %rcx, 0x50(%rdi)
movq %rax, 0x58(%rdi)
movb %al, 0x60(%rdi)
leaq 0x2a88(%rip), %rcx # 0xb2c4c
movq %rcx, 0x70(%rdi)
movups %xmm0, 0x78(%rdi)
movq %rax, 0x88(%rdi)
callq 0x19d10
movq (%rax), %rax
testq %rax, %rax
je 0xb01e5
movsbl (%rax), %eax
jmp 0xb01ea
movl $0x2e, %eax
movl %eax, 0x90(%rbx)
popq %rbx
retq
|
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEEC2EOSM_b:
push rbx
mov rbx, rdi
movups xmm0, xmmword ptr [rsi]
movups xmmword ptr [rdi], xmm0
mov [rdi+10h], dl
mov dword ptr [rdi+14h], 0FFFFFFFFh
xor eax, eax
mov [rdi+18h], al
lea rcx, [rdi+60h]
xorps xmm0, xmm0
movups xmmword ptr [rdi+20h], xmm0
movups xmmword ptr [rdi+30h], xmm0
movups xmmword ptr [rdi+40h], xmm0
mov [rdi+50h], rcx
mov [rdi+58h], rax
mov [rdi+60h], al
lea rcx, aNoteDebugGramm+0CAh; ""
mov [rdi+70h], rcx
movups xmmword ptr [rdi+78h], xmm0
mov [rdi+88h], rax
call _localeconv
mov rax, [rax]
test rax, rax
jz short loc_B01E5
movsx eax, byte ptr [rax]
jmp short loc_B01EA
loc_B01E5:
mov eax, 2Eh ; '.'
loc_B01EA:
mov [rbx+90h], eax
pop rbx
retn
|
long long nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::lexer(
long long a1,
_OWORD *a2,
char a3)
{
char *v3; // rax
long long result; // rax
*(_OWORD *)a1 = *a2;
*(_BYTE *)(a1 + 16) = a3;
*(_DWORD *)(a1 + 20) = -1;
*(_BYTE *)(a1 + 24) = 0;
*(_OWORD *)(a1 + 32) = 0LL;
*(_OWORD *)(a1 + 48) = 0LL;
*(_OWORD *)(a1 + 64) = 0LL;
*(_QWORD *)(a1 + 80) = a1 + 96;
*(_QWORD *)(a1 + 88) = 0LL;
*(_BYTE *)(a1 + 96) = 0;
*(_QWORD *)(a1 + 112) = "";
*(_OWORD *)(a1 + 120) = 0LL;
*(_QWORD *)(a1 + 136) = 0LL;
v3 = *(char **)localeconv(a1);
if ( v3 )
result = (unsigned int)*v3;
else
result = 46LL;
*(_DWORD *)(a1 + 144) = result;
return result;
}
|
lexer:
PUSH RBX
MOV RBX,RDI
MOVUPS XMM0,xmmword ptr [RSI]
MOVUPS xmmword ptr [RDI],XMM0
MOV byte ptr [RDI + 0x10],DL
MOV dword ptr [RDI + 0x14],0xffffffff
XOR EAX,EAX
MOV byte ptr [RDI + 0x18],AL
LEA RCX,[RDI + 0x60]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOVUPS xmmword ptr [RDI + 0x30],XMM0
MOVUPS xmmword ptr [RDI + 0x40],XMM0
MOV qword ptr [RDI + 0x50],RCX
MOV qword ptr [RDI + 0x58],RAX
MOV byte ptr [RDI + 0x60],AL
LEA RCX,[0x1b2c4c]
MOV qword ptr [RDI + 0x70],RCX
MOVUPS xmmword ptr [RDI + 0x78],XMM0
MOV qword ptr [RDI + 0x88],RAX
CALL 0x00119d10
MOV RAX,qword ptr [RAX]
TEST RAX,RAX
JZ 0x001b01e5
MOVSX EAX,byte ptr [RAX]
JMP 0x001b01ea
LAB_001b01e5:
MOV EAX,0x2e
LAB_001b01ea:
MOV dword ptr [RBX + 0x90],EAX
POP RBX
RET
|
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > >
>::lexer(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > >&&, bool) */
void __thiscall
nlohmann::json_abi_v3_11_3::detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::lexer(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*this,iterator_input_adapter *param_1,bool param_2)
{
int8 uVar1;
int iVar2;
lconv *plVar3;
uVar1 = *(int8 *)(param_1 + 8);
*(int8 *)this = *(int8 *)param_1;
*(int8 *)(this + 8) = uVar1;
this[0x10] = (lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
)param_2;
*(int4 *)(this + 0x14) = 0xffffffff;
this[0x18] = (lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
)0x0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
*(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
**)(this + 0x50) = this + 0x60;
*(int8 *)(this + 0x58) = 0;
this[0x60] = (lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
)0x0;
*(char **)(this + 0x70) = "";
*(int8 *)(this + 0x78) = 0;
*(int8 *)(this + 0x80) = 0;
*(int8 *)(this + 0x88) = 0;
plVar3 = localeconv();
if (plVar3->decimal_point == (char *)0x0) {
iVar2 = 0x2e;
}
else {
iVar2 = (int)*plVar3->decimal_point;
}
*(int *)(this + 0x90) = iVar2;
return;
}
|
|
65,026 |
ma_nommap_pread
|
eloqsql/storage/maria/ma_dynrec.c
|
size_t _ma_nommap_pread(MARIA_HA *info, uchar *Buffer,
size_t Count, my_off_t offset, myf MyFlags)
{
return mysql_file_pread(info->dfile.file, Buffer, Count, offset, MyFlags);
}
|
O3
|
c
|
ma_nommap_pread:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r8, -0x30(%rbp)
movq %rcx, %r12
movq %rdx, %r14
movq %rsi, %r13
movl 0x480(%rdi), %ebx
leaq 0x349c92(%rip), %rax # 0x386010
movq (%rax), %rax
leaq -0x78(%rbp), %rdi
movl %ebx, %esi
movl $0x6, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x3c3c0
movl %ebx, %edi
movq %r13, %rsi
movq %r14, %rdx
movq %r12, %rcx
movq -0x30(%rbp), %r8
callq 0xa0638
movq %rax, %rbx
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
leaq 0x349c46(%rip), %rax # 0x386010
movq (%rax), %rax
leaq 0x9d397(%rip), %rdx # 0xd976b
movq %r15, %rdi
movq %r14, %rsi
movl $0xa2, %ecx
callq *0x210(%rax)
movl %ebx, %edi
movq %r13, %rsi
movq %r14, %rdx
movq %r12, %rcx
movq -0x30(%rbp), %r12
movq %r12, %r8
callq 0xa0638
movq %rax, %rbx
xorl %esi, %esi
testq %rax, %rax
cmovneq %rsi, %r14
cmpq $-0x1, %rax
cmovneq %rax, %rsi
testb $0x6, %r12b
cmovneq %r14, %rsi
leaq 0x349bf1(%rip), %rax # 0x386010
movq (%rax), %rax
movq %r15, %rdi
callq *0x218(%rax)
jmp 0x3c3ae
|
_ma_nommap_pread:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov [rbp+var_30], r8
mov r12, rcx
mov r14, rdx
mov r13, rsi
mov ebx, [rdi+480h]
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_78]
mov esi, ebx
mov edx, 6
call qword ptr [rax+158h]
test rax, rax
jnz short loc_3C3C0
mov edi, ebx
mov rsi, r13
mov rdx, r14
mov rcx, r12
mov r8, [rbp+var_30]
call my_pread
mov rbx, rax
loc_3C3AE:
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3C3C0:
mov r15, rax
lea rax, PSI_server
mov rax, [rax]
lea rdx, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, r15
mov rsi, r14
mov ecx, 0A2h
call qword ptr [rax+210h]
mov edi, ebx
mov rsi, r13
mov rdx, r14
mov rcx, r12
mov r12, [rbp+var_30]
mov r8, r12
call my_pread
mov rbx, rax
xor esi, esi
test rax, rax
cmovnz r14, rsi
cmp rax, 0FFFFFFFFFFFFFFFFh
cmovnz rsi, rax
test r12b, 6
cmovnz rsi, r14
lea rax, PSI_server
mov rax, [rax]
mov rdi, r15
call qword ptr [rax+218h]
jmp short loc_3C3AE
|
long long ma_nommap_pread(long long a1, long long a2, long long a3, long long a4, long long a5)
{
unsigned int v7; // ebx
long long v8; // rax
long long v9; // rbx
long long v11; // r15
_BYTE v12[72]; // [rsp+8h] [rbp-78h] BYREF
long long v13; // [rsp+50h] [rbp-30h]
v13 = a5;
v7 = *(_DWORD *)(a1 + 1152);
v8 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v12, v7, 6LL);
if ( !v8 )
return my_pread(v7, a2, a3, a4, v13);
v11 = v8;
((void ( *)(long long, long long, const char *, long long))PSI_server[66])(
v8,
a3,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_dynrec.c",
162LL);
v9 = my_pread(v7, a2, a3, a4, v13);
((void ( *)(long long))PSI_server[67])(v11);
return v9;
}
|
_ma_nommap_pread:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV qword ptr [RBP + -0x30],R8
MOV R12,RCX
MOV R14,RDX
MOV R13,RSI
MOV EBX,dword ptr [RDI + 0x480]
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x78]
MOV ESI,EBX
MOV EDX,0x6
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x0013c3c0
MOV EDI,EBX
MOV RSI,R13
MOV RDX,R14
MOV RCX,R12
MOV R8,qword ptr [RBP + -0x30]
CALL 0x001a0638
MOV RBX,RAX
LAB_0013c3ae:
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013c3c0:
MOV R15,RAX
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDX,[0x1d976b]
MOV RDI,R15
MOV RSI,R14
MOV ECX,0xa2
CALL qword ptr [RAX + 0x210]
MOV EDI,EBX
MOV RSI,R13
MOV RDX,R14
MOV RCX,R12
MOV R12,qword ptr [RBP + -0x30]
MOV R8,R12
CALL 0x001a0638
MOV RBX,RAX
XOR ESI,ESI
TEST RAX,RAX
CMOVNZ R14,RSI
CMP RAX,-0x1
CMOVNZ RSI,RAX
TEST R12B,0x6
CMOVNZ RSI,R14
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
MOV RDI,R15
CALL qword ptr [RAX + 0x218]
JMP 0x0013c3ae
|
long _ma_nommap_pread(long param_1,int8 param_2,long param_3,int8 param_4,ulong param_5)
{
int4 uVar1;
ulong uVar2;
long lVar3;
long lVar4;
long lVar5;
int1 local_80 [72];
ulong local_38;
uVar1 = *(int4 *)(param_1 + 0x480);
local_38 = param_5;
lVar3 = (**(code **)(PSI_server + 0x158))(local_80,uVar1,6);
if (lVar3 == 0) {
lVar4 = my_pread(uVar1,param_2,param_3,param_4,local_38);
}
else {
(**(code **)(PSI_server + 0x210))
(lVar3,param_3,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_dynrec.c",
0xa2);
uVar2 = local_38;
lVar4 = my_pread(uVar1,param_2,param_3,param_4,local_38);
if (lVar4 != 0) {
param_3 = 0;
}
lVar5 = 0;
if (lVar4 != -1) {
lVar5 = lVar4;
}
if ((uVar2 & 6) != 0) {
lVar5 = param_3;
}
(**(code **)(PSI_server + 0x218))(lVar3,lVar5);
}
return lVar4;
}
|
|
65,027 |
char const* fmt::v8::detail::parse_align<char, fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>>&>(char const*, char const*, fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>>&)
|
aimrt_mujoco_sim/_deps/spdlog_lib-src/include/spdlog/fmt/bundled/core.h
|
FMT_CONSTEXPR auto parse_align(const Char* begin, const Char* end,
Handler&& handler) -> const Char* {
FMT_ASSERT(begin != end, "");
auto align = align::none;
auto p = begin + code_point_length(begin);
if (p >= end) p = begin;
for (;;) {
switch (to_ascii(*p)) {
case '<':
align = align::left;
break;
case '>':
align = align::right;
break;
case '^':
align = align::center;
break;
default:
break;
}
if (align != align::none) {
if (p != begin) {
auto c = *begin;
if (c == '{')
return handler.on_error("invalid fill character '{'"), begin;
handler.on_fill(basic_string_view<Char>(begin, to_unsigned(p - begin)));
begin = p + 1;
} else
++begin;
handler.on_align(align);
break;
} else if (p == begin) {
break;
}
p = begin;
}
return begin;
}
|
O0
|
c
|
char const* fmt::v8::detail::parse_align<char, fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>>&>(char const*, char const*, fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>>&):
subq $0x68, %rsp
movq %rdi, 0x58(%rsp)
movq %rsi, 0x50(%rsp)
movq %rdx, 0x48(%rsp)
movq 0x58(%rsp), %rax
cmpq 0x50(%rsp), %rax
setne %al
andb $0x1, %al
movb %al, 0x47(%rsp)
leaq 0x47(%rsp), %rdi
leaq 0x69731(%rip), %rsi # 0x1129a3
callq 0xa6140
movl $0x0, 0x40(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x58(%rsp), %rdi
callq 0xa98a0
movl %eax, %ecx
movq 0x18(%rsp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
cmpq 0x50(%rsp), %rax
jb 0xa92bb
movq 0x58(%rsp), %rax
movq %rax, 0x38(%rsp)
jmp 0xa92bd
movq 0x38(%rsp), %rax
movsbl (%rax), %edi
callq 0xa9410
movsbl %al, %eax
movl %eax, 0x14(%rsp)
subl $0x3c, %eax
je 0xa92ee
jmp 0xa92d8
movl 0x14(%rsp), %eax
subl $0x3e, %eax
je 0xa92f8
jmp 0xa92e3
movl 0x14(%rsp), %eax
subl $0x5e, %eax
je 0xa9302
jmp 0xa930c
movl $0x1, 0x40(%rsp)
jmp 0xa930e
movl $0x2, 0x40(%rsp)
jmp 0xa930e
movl $0x3, 0x40(%rsp)
jmp 0xa930e
jmp 0xa930e
cmpl $0x0, 0x40(%rsp)
je 0xa93d6
movq 0x38(%rsp), %rax
cmpq 0x58(%rsp), %rax
je 0xa93b8
movq 0x58(%rsp), %rax
movb (%rax), %al
movb %al, 0x37(%rsp)
movsbl 0x37(%rsp), %eax
cmpl $0x7b, %eax
jne 0xa935e
movq 0x48(%rsp), %rdi
leaq 0x69737(%rip), %rsi # 0x112a81
callq 0xa9910
movq 0x58(%rsp), %rax
movq %rax, 0x60(%rsp)
jmp 0xa93ff
movq 0x48(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x58(%rsp), %rax
movq %rax, (%rsp)
movq 0x38(%rsp), %rdi
movq 0x58(%rsp), %rax
subq %rax, %rdi
callq 0x9a870
movq (%rsp), %rsi
movq %rax, %rdx
leaq 0x20(%rsp), %rdi
callq 0x99120
movq 0x8(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0xa9940
movq 0x38(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x58(%rsp)
jmp 0xa93c6
movq 0x58(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x58(%rsp)
movq 0x48(%rsp), %rdi
movl 0x40(%rsp), %esi
callq 0xa9990
jmp 0xa93f5
movq 0x38(%rsp), %rax
cmpq 0x58(%rsp), %rax
jne 0xa93e4
jmp 0xa93f5
jmp 0xa93e6
movq 0x58(%rsp), %rax
movq %rax, 0x38(%rsp)
jmp 0xa92bd
movq 0x58(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
addq $0x68, %rsp
retq
nopl (%rax)
|
_ZN3fmt2v86detail11parse_alignIcRNS1_13specs_checkerINS1_13specs_handlerIcEEEEEEPKT_SA_SA_OT0_:
sub rsp, 68h
mov [rsp+68h+var_10], rdi
mov [rsp+68h+var_18], rsi
mov [rsp+68h+var_20], rdx
mov rax, [rsp+68h+var_10]
cmp rax, [rsp+68h+var_18]
setnz al
and al, 1
mov [rsp+68h+var_21], al
lea rdi, [rsp+68h+var_21]
lea rsi, unk_1129A3
call _ZN3fmt2v813ignore_unusedIJbA1_cEEEvDpRKT_; fmt::v8::ignore_unused<bool,char [1]>(bool,char [1] const&)
mov [rsp+68h+var_28], 0
mov rax, [rsp+68h+var_10]
mov [rsp+68h+var_50], rax
mov rdi, [rsp+68h+var_10]
call _ZN3fmt2v86detail17code_point_lengthIcEEiPKT_; fmt::v8::detail::code_point_length<char>(char const*)
mov ecx, eax
mov rax, [rsp+68h+var_50]
movsxd rcx, ecx
add rax, rcx
mov [rsp+68h+var_30], rax
mov rax, [rsp+68h+var_30]
cmp rax, [rsp+68h+var_18]
jb short loc_A92BB
mov rax, [rsp+68h+var_10]
mov [rsp+68h+var_30], rax
loc_A92BB:
jmp short $+2
loc_A92BD:
mov rax, [rsp+68h+var_30]
movsx edi, byte ptr [rax]
call _ZN3fmt2v86detail8to_asciiIcTnNSt9enable_ifIXsr3std11is_integralIT_EE5valueEiE4typeELi0EEES4_S4_
movsx eax, al
mov [rsp+68h+var_54], eax
sub eax, 3Ch ; '<'
jz short loc_A92EE
jmp short $+2
loc_A92D8:
mov eax, [rsp+68h+var_54]
sub eax, 3Eh ; '>'
jz short loc_A92F8
jmp short $+2
loc_A92E3:
mov eax, [rsp+68h+var_54]
sub eax, 5Eh ; '^'
jz short loc_A9302
jmp short loc_A930C
loc_A92EE:
mov [rsp+68h+var_28], 1
jmp short loc_A930E
loc_A92F8:
mov [rsp+68h+var_28], 2
jmp short loc_A930E
loc_A9302:
mov [rsp+68h+var_28], 3
jmp short loc_A930E
loc_A930C:
jmp short $+2
loc_A930E:
cmp [rsp+68h+var_28], 0
jz loc_A93D6
mov rax, [rsp+68h+var_30]
cmp rax, [rsp+68h+var_10]
jz loc_A93B8
mov rax, [rsp+68h+var_10]
mov al, [rax]
mov [rsp+68h+var_31], al
movsx eax, [rsp+68h+var_31]
cmp eax, 7Bh ; '{'
jnz short loc_A935E
mov rdi, [rsp+68h+var_20]
lea rsi, aInvalidFillCha; "invalid fill character '{'"
call _ZN3fmt2v86detail13specs_handlerIcE8on_errorEPKc; fmt::v8::detail::specs_handler<char>::on_error(char const*)
mov rax, [rsp+68h+var_10]
mov [rsp+68h+var_8], rax
jmp loc_A93FF
loc_A935E:
mov rax, [rsp+68h+var_20]
mov [rsp+68h+var_60], rax
mov rax, [rsp+68h+var_10]
mov [rsp+68h+var_68], rax
mov rdi, [rsp+68h+var_30]
mov rax, [rsp+68h+var_10]
sub rdi, rax
call _ZN3fmt2v86detail11to_unsignedIlEENSt13make_unsignedIT_E4typeES4_; fmt::v8::detail::to_unsigned<long>(long)
mov rsi, [rsp+68h+var_68]
mov rdx, rax
lea rdi, [rsp+68h+var_48]
call _ZN3fmt2v817basic_string_viewIcEC2EPKcm; fmt::v8::basic_string_view<char>::basic_string_view(char const*,ulong)
mov rdi, [rsp+68h+var_60]
mov rsi, [rsp+68h+var_48]
mov rdx, [rsp+68h+var_40]
call _ZN3fmt2v86detail12specs_setterIcE7on_fillENS0_17basic_string_viewIcEE; fmt::v8::detail::specs_setter<char>::on_fill(fmt::v8::basic_string_view<char>)
mov rax, [rsp+68h+var_30]
add rax, 1
mov [rsp+68h+var_10], rax
jmp short loc_A93C6
loc_A93B8:
mov rax, [rsp+68h+var_10]
add rax, 1
mov [rsp+68h+var_10], rax
loc_A93C6:
mov rdi, [rsp+68h+var_20]
mov esi, [rsp+68h+var_28]
call _ZN3fmt2v86detail13specs_checkerINS1_13specs_handlerIcEEE8on_alignENS0_5align4typeE; fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>>::on_align(fmt::v8::align::type)
jmp short loc_A93F5
loc_A93D6:
mov rax, [rsp+68h+var_30]
cmp rax, [rsp+68h+var_10]
jnz short loc_A93E4
jmp short loc_A93F5
loc_A93E4:
jmp short $+2
loc_A93E6:
mov rax, [rsp+68h+var_10]
mov [rsp+68h+var_30], rax
jmp loc_A92BD
loc_A93F5:
mov rax, [rsp+68h+var_10]
mov [rsp+68h+var_8], rax
loc_A93FF:
mov rax, [rsp+68h+var_8]
add rsp, 68h
retn
|
char * fmt::v8::detail::parse_align<char,fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>> &>(
char *a1,
char *a2,
long long a3)
{
long long v3; // rax
long long v5; // [rsp+8h] [rbp-60h]
int v6; // [rsp+14h] [rbp-54h]
_QWORD v7[2]; // [rsp+20h] [rbp-48h] BYREF
char v8; // [rsp+37h] [rbp-31h]
char *v9; // [rsp+38h] [rbp-30h]
unsigned int v10; // [rsp+40h] [rbp-28h]
bool v11; // [rsp+47h] [rbp-21h]
long long v12; // [rsp+48h] [rbp-20h]
char *v13; // [rsp+50h] [rbp-18h]
char *v14; // [rsp+58h] [rbp-10h]
v14 = a1;
v13 = a2;
v12 = a3;
v11 = a1 != a2;
fmt::v8::ignore_unused<bool,char [1]>();
v10 = 0;
v9 = &a1[(int)fmt::v8::detail::code_point_length<char>(a1, &unk_1129A3)];
if ( v9 >= a2 )
v9 = v14;
while ( 1 )
{
v6 = (char)ZN3fmt2v86detail8to_asciiIcTnNSt9enable_ifIXsr3std11is_integralIT_EE5valueEiE4typeELi0EEES4_S4_((unsigned int)*v9);
switch ( v6 )
{
case '<':
v10 = 1;
break;
case '>':
v10 = 2;
break;
case '^':
v10 = 3;
break;
}
if ( v10 )
break;
if ( v9 == v14 )
return v14;
v9 = v14;
}
if ( v9 == v14 )
{
++v14;
}
else
{
v8 = *v14;
if ( v8 == 123 )
fmt::v8::detail::specs_handler<char>::on_error(v12, "invalid fill character '{'");
v5 = v12;
v3 = fmt::v8::detail::to_unsigned<long>(v9 - v14);
fmt::v8::basic_string_view<char>::basic_string_view(v7, (long long)v14, v3);
fmt::v8::detail::specs_setter<char>::on_fill(v5, v7[0], v7[1]);
v14 = v9 + 1;
}
fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>>::on_align(v12, v10);
return v14;
}
|
parse_align<char,fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>>&>:
SUB RSP,0x68
MOV qword ptr [RSP + 0x58],RDI
MOV qword ptr [RSP + 0x50],RSI
MOV qword ptr [RSP + 0x48],RDX
MOV RAX,qword ptr [RSP + 0x58]
CMP RAX,qword ptr [RSP + 0x50]
SETNZ AL
AND AL,0x1
MOV byte ptr [RSP + 0x47],AL
LEA RDI,[RSP + 0x47]
LEA RSI,[0x2129a3]
CALL 0x001a6140
MOV dword ptr [RSP + 0x40],0x0
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0x58]
CALL 0x001a98a0
MOV ECX,EAX
MOV RAX,qword ptr [RSP + 0x18]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x38]
CMP RAX,qword ptr [RSP + 0x50]
JC 0x001a92bb
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x38],RAX
LAB_001a92bb:
JMP 0x001a92bd
LAB_001a92bd:
MOV RAX,qword ptr [RSP + 0x38]
MOVSX EDI,byte ptr [RAX]
CALL 0x001a9410
MOVSX EAX,AL
MOV dword ptr [RSP + 0x14],EAX
SUB EAX,0x3c
JZ 0x001a92ee
JMP 0x001a92d8
LAB_001a92d8:
MOV EAX,dword ptr [RSP + 0x14]
SUB EAX,0x3e
JZ 0x001a92f8
JMP 0x001a92e3
LAB_001a92e3:
MOV EAX,dword ptr [RSP + 0x14]
SUB EAX,0x5e
JZ 0x001a9302
JMP 0x001a930c
LAB_001a92ee:
MOV dword ptr [RSP + 0x40],0x1
JMP 0x001a930e
LAB_001a92f8:
MOV dword ptr [RSP + 0x40],0x2
JMP 0x001a930e
LAB_001a9302:
MOV dword ptr [RSP + 0x40],0x3
JMP 0x001a930e
LAB_001a930c:
JMP 0x001a930e
LAB_001a930e:
CMP dword ptr [RSP + 0x40],0x0
JZ 0x001a93d6
MOV RAX,qword ptr [RSP + 0x38]
CMP RAX,qword ptr [RSP + 0x58]
JZ 0x001a93b8
MOV RAX,qword ptr [RSP + 0x58]
MOV AL,byte ptr [RAX]
MOV byte ptr [RSP + 0x37],AL
MOVSX EAX,byte ptr [RSP + 0x37]
CMP EAX,0x7b
JNZ 0x001a935e
MOV RDI,qword ptr [RSP + 0x48]
LEA RSI,[0x212a81]
CALL 0x001a9910
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x60],RAX
JMP 0x001a93ff
LAB_001a935e:
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP],RAX
MOV RDI,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RSP + 0x58]
SUB RDI,RAX
CALL 0x0019a870
MOV RSI,qword ptr [RSP]
MOV RDX,RAX
LEA RDI,[RSP + 0x20]
CALL 0x00199120
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
CALL 0x001a9940
MOV RAX,qword ptr [RSP + 0x38]
ADD RAX,0x1
MOV qword ptr [RSP + 0x58],RAX
JMP 0x001a93c6
LAB_001a93b8:
MOV RAX,qword ptr [RSP + 0x58]
ADD RAX,0x1
MOV qword ptr [RSP + 0x58],RAX
LAB_001a93c6:
MOV RDI,qword ptr [RSP + 0x48]
MOV ESI,dword ptr [RSP + 0x40]
CALL 0x001a9990
JMP 0x001a93f5
LAB_001a93d6:
MOV RAX,qword ptr [RSP + 0x38]
CMP RAX,qword ptr [RSP + 0x58]
JNZ 0x001a93e4
JMP 0x001a93f5
LAB_001a93e4:
JMP 0x001a93e6
LAB_001a93e6:
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x38],RAX
JMP 0x001a92bd
LAB_001a93f5:
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x60],RAX
LAB_001a93ff:
MOV RAX,qword ptr [RSP + 0x60]
ADD RSP,0x68
RET
|
/* char const* fmt::v8::detail::parse_align<char,
fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char> >&>(char const*, char const*,
fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char> >&) */
char * fmt::v8::detail::
parse_align<char,fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>>&>
(char *param_1,char *param_2,specs_checker *param_3)
{
specs_checker *psVar1;
char *pcVar2;
char cVar3;
int iVar4;
ulong uVar5;
int8 local_48;
int8 local_40;
char local_31;
char *local_30;
int local_28;
bool local_21;
specs_checker *local_20;
char *local_18;
char *local_10;
local_21 = param_1 != param_2;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
ignore_unused<bool,char[1]>(&local_21,"");
pcVar2 = local_10;
local_28 = 0;
iVar4 = code_point_length<char>(local_10);
local_30 = pcVar2 + iVar4;
if (local_18 <= local_30) {
local_30 = local_10;
}
while( true ) {
cVar3 = _ZN3fmt2v86detail8to_asciiIcTnNSt9enable_ifIXsr3std11is_integralIT_EE5valueEiE4typeELi0EEES4_S4_
((int)*local_30);
pcVar2 = local_10;
psVar1 = local_20;
if (cVar3 == '<') {
local_28 = 1;
}
else if (cVar3 == '>') {
local_28 = 2;
}
else if (cVar3 == '^') {
local_28 = 3;
}
if (local_28 != 0) break;
if (local_30 == local_10) {
return local_10;
}
local_30 = local_10;
}
if (local_30 != local_10) {
local_31 = *local_10;
if (local_31 == '{') {
specs_handler<char>::on_error((specs_handler<char> *)local_20,"invalid fill character \'{\'");
return local_10;
}
uVar5 = to_unsigned<long>((long)local_30 - (long)local_10);
basic_string_view<char>::basic_string_view((basic_string_view<char> *)&local_48,pcVar2,uVar5);
specs_setter<char>::on_fill(psVar1,local_48,local_40);
local_10 = local_30;
}
local_10 = local_10 + 1;
specs_checker<fmt::v8::detail::specs_handler<char>>::on_align
((specs_checker<fmt::v8::detail::specs_handler<char>> *)local_20,local_28);
return local_10;
}
|
|
65,028 |
YAML::detail::node::node()
|
aimrt_mujoco_sim/_deps/yaml-cpp-src/include/yaml-cpp/node/detail/node.h
|
node() : m_pRef(new node_ref), m_dependencies{}, m_index{} {}
|
O3
|
c
|
YAML::detail::node::node():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x10, %edi
callq 0x2d270
movq %rax, %r14
movq %rax, %rdi
callq 0x609e0
movq %r14, (%rbx)
leaq 0x8(%rbx), %rdi
movq %r14, %rsi
callq 0x60c10
leaq 0x18(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movq $0x0, 0x20(%rbx)
movq %rax, 0x28(%rbx)
movq %rax, 0x30(%rbx)
movups %xmm0, 0x38(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movl $0x10, %esi
movq %r14, %rdi
callq 0x2d2d0
movq %rbx, %rdi
callq 0x2e220
|
_ZN4YAML6detail4nodeC2Ev:
push r14
push rbx
push rax
mov rbx, rdi
mov edi, 10h; unsigned __int64
call __Znwm; operator new(ulong)
mov r14, rax
mov rdi, rax; this
call _ZN4YAML6detail8node_refC2Ev; YAML::detail::node_ref::node_ref(void)
mov [rbx], r14
lea rdi, [rbx+8]
mov rsi, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2IPN4YAML6detail8node_refEEET_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<YAML::detail::node_ref *>(YAML::detail::node_ref *)
lea rax, [rbx+18h]
xorps xmm0, xmm0
movups xmmword ptr [rbx+10h], xmm0
mov qword ptr [rbx+20h], 0
mov [rbx+28h], rax
mov [rbx+30h], rax
movups xmmword ptr [rbx+38h], xmm0
add rsp, 8
pop rbx
pop r14
retn
mov rbx, rax
mov esi, 10h; unsigned __int64
mov rdi, r14; void *
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, rbx
call __Unwind_Resume
|
long long YAML::detail::node::node(YAML::detail::node *this)
{
YAML::detail::node_ref *v1; // r14
long long result; // rax
v1 = (YAML::detail::node_ref *)operator new(0x10uLL);
YAML::detail::node_ref::node_ref(v1);
*(_QWORD *)this = v1;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<YAML::detail::node_ref *>((char *)this + 8, v1);
result = (long long)this + 24;
*((_OWORD *)this + 1) = 0LL;
*((_QWORD *)this + 4) = 0LL;
*((_QWORD *)this + 5) = (char *)this + 24;
*((_QWORD *)this + 6) = (char *)this + 24;
*(_OWORD *)((char *)this + 56) = 0LL;
return result;
}
|
node:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV EDI,0x10
CALL 0x0012d270
MOV R14,RAX
LAB_0016098a:
MOV RDI,RAX
CALL 0x001609e0
LAB_00160992:
MOV qword ptr [RBX],R14
LEA RDI,[RBX + 0x8]
MOV RSI,R14
CALL 0x00160c10
LEA RAX,[RBX + 0x18]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOV qword ptr [RBX + 0x20],0x0
MOV qword ptr [RBX + 0x28],RAX
MOV qword ptr [RBX + 0x30],RAX
MOVUPS xmmword ptr [RBX + 0x38],XMM0
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* YAML::detail::node::node() */
void __thiscall YAML::detail::node::node(node *this)
{
node_ref *this_00;
this_00 = (node_ref *)operator_new(0x10);
/* try { // try from 0016098a to 00160991 has its CatchHandler @ 001609c8 */
node_ref::node_ref(this_00);
*(node_ref **)this = this_00;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<YAML::detail::node_ref*>
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(this + 8),this_00);
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(node **)(this + 0x28) = this + 0x18;
*(node **)(this + 0x30) = this + 0x18;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x40) = 0;
return;
}
|
|
65,029 |
mi_ft_segiterator_dummy_init
|
eloqsql/storage/myisam/ft_update.c
|
void _mi_ft_segiterator_dummy_init(const uchar *record, uint len,
FT_SEG_ITERATOR *ftsi)
{
DBUG_ENTER("_mi_ft_segiterator_dummy_init");
ftsi->num=1;
ftsi->seg=0;
ftsi->pos=record;
ftsi->len=len;
DBUG_VOID_RETURN;
}
|
O3
|
c
|
mi_ft_segiterator_dummy_init:
pushq %rbp
movq %rsp, %rbp
movl $0x1, (%rdx)
movq $0x0, 0x8(%rdx)
movq %rdi, 0x18(%rdx)
movl %esi, 0x4(%rdx)
popq %rbp
retq
|
_mi_ft_segiterator_dummy_init:
push rbp
mov rbp, rsp
mov dword ptr [rdx], 1
mov qword ptr [rdx+8], 0
mov [rdx+18h], rdi
mov [rdx+4], esi
pop rbp
retn
|
void mi_ft_segiterator_dummy_init(long long a1, int a2, long long a3)
{
*(_DWORD *)a3 = 1;
*(_QWORD *)(a3 + 8) = 0LL;
*(_QWORD *)(a3 + 24) = a1;
*(_DWORD *)(a3 + 4) = a2;
}
|
_mi_ft_segiterator_dummy_init:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RDX],0x1
MOV qword ptr [RDX + 0x8],0x0
MOV qword ptr [RDX + 0x18],RDI
MOV dword ptr [RDX + 0x4],ESI
POP RBP
RET
|
void _mi_ft_segiterator_dummy_init(int8 param_1,int4 param_2,int4 *param_3)
{
*param_3 = 1;
*(int8 *)(param_3 + 2) = 0;
*(int8 *)(param_3 + 6) = param_1;
param_3[1] = param_2;
return;
}
|
|
65,030 |
strmake
|
eloqsql/strings/strmake.c
|
char *strmake(register char *dst, register const char *src, size_t length)
{
while (length--)
{
if (! (*dst++ = *src++))
{
#ifdef EXTRA_DEBUG
/*
'length' is the maximum length of the string; the buffer needs
to be one character larger to accommodate the terminating
'\0'. This is easy to get wrong, so we make sure we write to
the entire length of the buffer to identify incorrect
buffer-sizes. We only initialism the "unused" part of the
buffer here, a) for efficiency, and b) because dst==src is
allowed, so initializing the entire buffer would overwrite the
source-string. Also, we write a character rather than '\0' as
this makes spotting these problems in the results easier.
If we are using purify/valgrind, we only set one character at
end to be able to detect also wrong accesses after the end of
dst.
*/
if (length)
{
#ifdef HAVE_valgrind
dst[length-1]= 'Z';
#else
bfill(dst, length-1, (int) 'Z');
#endif /* HAVE_valgrind */
}
#endif /* EXTRA_DEBUG */
return dst-1;
}
}
*dst=0;
return dst;
}
|
O0
|
c
|
strmake:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x20(%rbp)
cmpq $0x0, %rax
je 0x8649b
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movb (%rax), %al
movq -0x10(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %al, (%rcx)
cmpb $0x0, %al
jne 0x86499
movq -0x10(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x8(%rbp)
jmp 0x864aa
jmp 0x86450
movq -0x10(%rbp), %rax
movb $0x0, (%rax)
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
|
strmake:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
loc_86450:
mov rax, [rbp+var_20]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_20], rcx
cmp rax, 0
jz short loc_8649B
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
mov al, [rax]
mov rcx, [rbp+var_10]
mov rdx, rcx
add rdx, 1
mov [rbp+var_10], rdx
mov [rcx], al
cmp al, 0
jnz short loc_86499
mov rax, [rbp+var_10]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_8], rax
jmp short loc_864AA
loc_86499:
jmp short loc_86450
loc_8649B:
mov rax, [rbp+var_10]
mov byte ptr [rax], 0
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
loc_864AA:
mov rax, [rbp+var_8]
pop rbp
retn
|
_BYTE * strmake(_BYTE *a1, _BYTE *a2, long long a3)
{
_BYTE *v4; // rax
_BYTE *v5; // rcx
while ( a3-- )
{
v4 = a2++;
LOBYTE(v4) = *v4;
v5 = a1++;
*v5 = (_BYTE)v4;
if ( !(_BYTE)v4 )
return a1 - 1;
}
*a1 = 0;
return a1;
}
|
strmake:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
LAB_00186450:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,RAX
ADD RCX,-0x1
MOV qword ptr [RBP + -0x20],RCX
CMP RAX,0x0
JZ 0x0018649b
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x18],RCX
MOV AL,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RCX],AL
CMP AL,0x0
JNZ 0x00186499
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001864aa
LAB_00186499:
JMP 0x00186450
LAB_0018649b:
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
LAB_001864aa:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
char * strmake(char *param_1,char *param_2,long param_3)
{
char cVar1;
char *pcVar2;
long local_28;
char *local_20;
char *local_18;
local_28 = param_3;
local_20 = param_2;
pcVar2 = param_1;
do {
local_18 = pcVar2;
if (local_28 == 0) {
*local_18 = '\0';
return local_18;
}
cVar1 = *local_20;
*local_18 = cVar1;
local_28 = local_28 + -1;
local_20 = local_20 + 1;
pcVar2 = local_18 + 1;
} while (cVar1 != '\0');
return local_18;
}
|
|
65,031 |
ggml_cont
|
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
|
struct ggml_tensor * ggml_cont(
struct ggml_context * ctx,
struct ggml_tensor * a) {
return ggml_cont_impl(ctx, a);
}
|
O1
|
c
|
ggml_cont:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl (%rsi), %esi
leaq 0x10(%rbx), %rcx
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x1b871
movq %rax, %r14
leaq 0x100(%rbx), %rdx
leaq 0x2f437(%rip), %rsi # 0x4c976
movq %rax, %rdi
xorl %eax, %eax
callq 0x18a70
movl $0x20, 0x50(%r14)
movq %rbx, 0x98(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
ggml_cont:
push r14
push rbx
push rax
mov rbx, rsi
mov esi, [rsi]
lea rcx, [rbx+10h]
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
mov r14, rax
lea rdx, [rbx+100h]
lea rsi, aSCont; "%s (cont)"
mov rdi, rax
xor eax, eax
call _ggml_format_name
mov dword ptr [r14+50h], 20h ; ' '
mov [r14+98h], rbx
mov rax, r14
add rsp, 8
pop rbx
pop r14
retn
|
long long ggml_cont(long long a1, long long a2, double a3)
{
long long v3; // r14
v3 = ggml_new_tensor_impl(a1, *(_DWORD *)a2, 4, (long long *)(a2 + 16), 0LL, 0LL, a3);
ggml_format_name(v3, (long long)"%s (cont)");
*(_DWORD *)(v3 + 80) = 32;
*(_QWORD *)(v3 + 152) = a2;
return v3;
}
|
ggml_cont:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV ESI,dword ptr [RSI]
LEA RCX,[RBX + 0x10]
MOV EDX,0x4
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0011b871
MOV R14,RAX
LEA RDX,[RBX + 0x100]
LEA RSI,[0x14c976]
MOV RDI,RAX
XOR EAX,EAX
CALL 0x00118a70
MOV dword ptr [R14 + 0x50],0x20
MOV qword ptr [R14 + 0x98],RBX
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R14
RET
|
long ggml_cont(int8 param_1,int4 *param_2)
{
long lVar1;
lVar1 = ggml_new_tensor_impl(param_1,*param_2,4,param_2 + 4,0,0);
ggml_format_name(lVar1,"%s (cont)",param_2 + 0x40);
*(int4 *)(lVar1 + 0x50) = 0x20;
*(int4 **)(lVar1 + 0x98) = param_2;
return lVar1;
}
|
|
65,032 |
ggml_cont
|
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
|
struct ggml_tensor * ggml_cont(
struct ggml_context * ctx,
struct ggml_tensor * a) {
return ggml_cont_impl(ctx, a);
}
|
O3
|
c
|
ggml_cont:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl (%rsi), %esi
leaq 0x10(%rbx), %rcx
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x1a57f
movq %rax, %r14
leaq 0x100(%rbx), %rdx
leaq 0x307c6(%rip), %rsi # 0x4ca1a
movq %rax, %rdi
xorl %eax, %eax
callq 0x17a60
movl $0x20, 0x50(%r14)
movq %rbx, 0x98(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
ggml_cont:
push r14
push rbx
push rax
mov rbx, rsi
mov esi, [rsi]
lea rcx, [rbx+10h]
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
mov r14, rax
lea rdx, [rbx+100h]
lea rsi, aSCont; "%s (cont)"
mov rdi, rax
xor eax, eax
call _ggml_format_name
mov dword ptr [r14+50h], 20h ; ' '
mov [r14+98h], rbx
mov rax, r14
add rsp, 8
pop rbx
pop r14
retn
|
long long ggml_cont(long long a1, long long a2, double a3)
{
long long v3; // r14
v3 = ggml_new_tensor_impl(a1, *(_DWORD *)a2, 4u, (long long *)(a2 + 16), 0LL, 0LL, a3);
ggml_format_name(v3, (long long)"%s (cont)");
*(_DWORD *)(v3 + 80) = 32;
*(_QWORD *)(v3 + 152) = a2;
return v3;
}
|
ggml_cont:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV ESI,dword ptr [RSI]
LEA RCX,[RBX + 0x10]
MOV EDX,0x4
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0011a57f
MOV R14,RAX
LEA RDX,[RBX + 0x100]
LEA RSI,[0x14ca1a]
MOV RDI,RAX
XOR EAX,EAX
CALL 0x00117a60
MOV dword ptr [R14 + 0x50],0x20
MOV qword ptr [R14 + 0x98],RBX
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R14
RET
|
long ggml_cont(int8 param_1,int4 *param_2)
{
long lVar1;
lVar1 = ggml_new_tensor_impl(param_1,*param_2,4,param_2 + 4,0,0);
ggml_format_name(lVar1,"%s (cont)",param_2 + 0x40);
*(int4 *)(lVar1 + 0x50) = 0x20;
*(int4 **)(lVar1 + 0x98) = param_2;
return lVar1;
}
|
|
65,033 |
google::protobuf::compiler::java::RepeatedImmutableStringFieldLiteGenerator::RepeatedImmutableStringFieldLiteGenerator(google::protobuf::FieldDescriptor const*, int, google::protobuf::compiler::java::Context*)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/string_field_lite.cc
|
RepeatedImmutableStringFieldLiteGenerator::
RepeatedImmutableStringFieldLiteGenerator(const FieldDescriptor* descriptor,
int messageBitIndex,
Context* context)
: descriptor_(descriptor), name_resolver_(context->GetNameResolver()) {
SetPrimitiveVariables(descriptor, messageBitIndex, 0,
context->GetFieldGeneratorInfo(descriptor),
name_resolver_, &variables_);
}
|
O3
|
cpp
|
google::protobuf::compiler::java::RepeatedImmutableStringFieldLiteGenerator::RepeatedImmutableStringFieldLiteGenerator(google::protobuf::FieldDescriptor const*, int, google::protobuf::compiler::java::Context*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r12
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x19028e(%rip), %rax # 0x27a5b0
movq %rax, (%rdi)
movq %rsi, 0x8(%rdi)
leaq 0x10(%rdi), %r14
leaq 0x18(%rdi), %rax
movl $0x0, 0x18(%rdi)
xorl %ecx, %ecx
movq %rcx, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movq %rax, 0x30(%rdi)
movq %rcx, 0x38(%rdi)
movq %r12, %rdi
callq 0xcda64
movq %rax, 0x40(%rbx)
movq %r12, %rdi
movq %r15, %rsi
callq 0xceecc
movq 0x40(%rbx), %rcx
movq %r15, %rdi
movl %ebp, %esi
movq %rax, %rdx
movq %r14, %r8
callq 0xe8ad8
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq %r14, %rdi
callq 0x2e5e0
movq %rbx, %rdi
callq 0xd46c6
movq %r15, %rdi
callq 0x1f860
nop
|
_ZN6google8protobuf8compiler4java41RepeatedImmutableStringFieldLiteGeneratorC2EPKNS0_15FieldDescriptorEiPNS2_7ContextE:
push rbp; int
push r15; int
push r14; int
push r12; int
push rbx; int
mov r12, rcx
mov ebp, edx
mov r15, rsi
mov rbx, rdi
lea rax, off_27A5B0
mov [rdi], rax
mov [rdi+8], rsi
lea r14, [rdi+10h]
lea rax, [rdi+18h]
mov dword ptr [rdi+18h], 0
xor ecx, ecx
mov [rdi+20h], rcx
mov [rdi+28h], rax
mov [rdi+30h], rax
mov [rdi+38h], rcx
mov rdi, r12; this
call _ZNK6google8protobuf8compiler4java7Context15GetNameResolverEv; google::protobuf::compiler::java::Context::GetNameResolver(void)
mov [rbx+40h], rax
mov rdi, r12; this
mov rsi, r15; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf8compiler4java7Context21GetFieldGeneratorInfoEPKNS0_15FieldDescriptorE; google::protobuf::compiler::java::Context::GetFieldGeneratorInfo(google::protobuf::FieldDescriptor const*)
mov rcx, [rbx+40h]
mov rdi, r15; this
mov esi, ebp
mov rdx, rax
mov r8, r14
call _ZN6google8protobuf8compiler4java12_GLOBAL__N_121SetPrimitiveVariablesEPKNS0_15FieldDescriptorEiiPKNS2_18FieldGeneratorInfoEPNS2_17ClassNameResolverEPSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESI_St4lessISI_ESaISt4pairIKSI_SI_EEE_0; google::protobuf::compiler::java::`anonymous namespace'::SetPrimitiveVariables(google::protobuf::FieldDescriptor const*,int,int,google::protobuf::compiler::java::FieldGeneratorInfo const*,google::protobuf::compiler::java::ClassNameResolver *,std::map<std::string,std::string> *)
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
mov r15, rax
mov rdi, r14
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree()
mov rdi, rbx; this
call _ZN6google8protobuf8compiler4java27ImmutableFieldLiteGeneratorD2Ev; google::protobuf::compiler::java::ImmutableFieldLiteGenerator::~ImmutableFieldLiteGenerator()
mov rdi, r15
call __Unwind_Resume
|
void google::protobuf::compiler::java::RepeatedImmutableStringFieldLiteGenerator::RepeatedImmutableStringFieldLiteGenerator(
google::protobuf::compiler::java::RepeatedImmutableStringFieldLiteGenerator *this,
const google::protobuf::FieldDescriptor *a2,
int a3,
google::protobuf::compiler::java::Context *a4)
{
char *FieldGeneratorInfo; // rax
*(_QWORD *)this = off_27A5B0;
*((_QWORD *)this + 1) = a2;
*((_DWORD *)this + 6) = 0;
*((_QWORD *)this + 4) = 0LL;
*((_QWORD *)this + 5) = (char *)this + 24;
*((_QWORD *)this + 6) = (char *)this + 24;
*((_QWORD *)this + 7) = 0LL;
*((_QWORD *)this + 8) = google::protobuf::compiler::java::Context::GetNameResolver(a4);
FieldGeneratorInfo = google::protobuf::compiler::java::Context::GetFieldGeneratorInfo(a4, a2);
google::protobuf::compiler::java::`anonymous namespace'::SetPrimitiveVariables(
a2,
a3,
(_BYTE **)FieldGeneratorInfo,
*((_QWORD *)this + 8),
(long long)this + 16);
}
|
RepeatedImmutableStringFieldLiteGenerator:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R12,RCX
MOV EBP,EDX
MOV R15,RSI
MOV RBX,RDI
LEA RAX,[0x37a5b0]
MOV qword ptr [RDI],RAX
MOV qword ptr [RDI + 0x8],RSI
LEA R14,[RDI + 0x10]
LEA RAX,[RDI + 0x18]
MOV dword ptr [RDI + 0x18],0x0
XOR ECX,ECX
MOV qword ptr [RDI + 0x20],RCX
MOV qword ptr [RDI + 0x28],RAX
MOV qword ptr [RDI + 0x30],RAX
MOV qword ptr [RDI + 0x38],RCX
LAB_001ea34a:
MOV RDI,R12
CALL 0x001cda64
MOV qword ptr [RBX + 0x40],RAX
MOV RDI,R12
MOV RSI,R15
CALL 0x001ceecc
MOV RCX,qword ptr [RBX + 0x40]
MOV RDI,R15
MOV ESI,EBP
MOV RDX,RAX
MOV R8,R14
CALL 0x001e8ad8
LAB_001ea375:
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::compiler::java::RepeatedImmutableStringFieldLiteGenerator::RepeatedImmutableStringFieldLiteGenerator(google::protobuf::FieldDescriptor
const*, int, google::protobuf::compiler::java::Context*) */
void __thiscall
google::protobuf::compiler::java::RepeatedImmutableStringFieldLiteGenerator::
RepeatedImmutableStringFieldLiteGenerator
(RepeatedImmutableStringFieldLiteGenerator *this,FieldDescriptor *param_1,int param_2,
Context *param_3)
{
int iVar1;
int8 uVar2;
map *in_R9;
*(int ***)this = &PTR__RepeatedImmutableStringFieldLiteGenerator_0037a5b0;
*(FieldDescriptor **)(this + 8) = param_1;
*(int4 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(RepeatedImmutableStringFieldLiteGenerator **)(this + 0x28) = this + 0x18;
*(RepeatedImmutableStringFieldLiteGenerator **)(this + 0x30) = this + 0x18;
*(int8 *)(this + 0x38) = 0;
/* try { // try from 001ea34a to 001ea374 has its CatchHandler @ 001ea37e */
uVar2 = Context::GetNameResolver(param_3);
*(int8 *)(this + 0x40) = uVar2;
iVar1 = Context::GetFieldGeneratorInfo(param_3,param_1);
(anonymous_namespace)::SetPrimitiveVariables
(param_1,param_2,iVar1,*(FieldGeneratorInfo **)(this + 0x40),
(ClassNameResolver *)(this + 0x10),in_R9);
return;
}
|
|
65,034 |
create_temp_file
|
eloqsql/mysys/mf_tempfile.c
|
File create_temp_file(char *to, const char *dir, const char *prefix,
int mode, myf MyFlags)
{
File file= -1;
DBUG_ENTER("create_temp_file");
DBUG_PRINT("enter", ("dir: %s, prefix: %s", dir ? dir : "(null)", prefix));
DBUG_ASSERT((mode & (O_EXCL | O_TRUNC | O_CREAT | O_RDWR)) == 0);
mode|= O_TRUNC | O_CREAT | O_RDWR; /* not O_EXCL, see Windows code below */
#ifdef _WIN32
{
TCHAR path_buf[MAX_PATH-14];
/*
Use GetTempPath to determine path for temporary files.
This is because the documentation for GetTempFileName
has the following to say about this parameter:
"If this parameter is NULL, the function fails."
*/
if (!dir)
{
if(GetTempPath(sizeof(path_buf), path_buf) > 0)
dir = path_buf;
}
/*
Use GetTempFileName to generate a unique filename, create
the file and release it's handle
- uses up to the first three letters from prefix
*/
if (GetTempFileName(dir, prefix, 0, to) == 0)
DBUG_RETURN(-1);
DBUG_PRINT("info", ("name: %s", to));
if (MyFlags & MY_TEMPORARY)
mode|= O_SHORT_LIVED | O_TEMPORARY;
/*
Open the file without O_EXCL flag
since the file has already been created by GetTempFileName
*/
if ((file= my_open(to, mode, MyFlags)) < 0)
{
/* Open failed, remove the file created by GetTempFileName */
int tmp= my_errno;
(void) my_delete(to, MYF(0));
my_errno= tmp;
}
}
#elif defined(HAVE_MKSTEMP)
if (!dir && ! (dir =getenv("TMPDIR")))
dir= DEFAULT_TMPDIR;
#ifdef O_TMPFILE
{
static int O_TMPFILE_works= 1;
if ((MyFlags & MY_TEMPORARY) && O_TMPFILE_works)
{
/* explictly don't use O_EXCL here has it has a different
meaning with O_TMPFILE
*/
if ((file= open(dir, (mode & ~O_CREAT) | O_TMPFILE | O_CLOEXEC,
S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP)) >= 0)
{
my_snprintf(to, FN_REFLEN, "%s/#sql/fd=%d", dir, file);
file=my_register_filename(file, to, FILE_BY_O_TMPFILE,
EE_CANTCREATEFILE, MyFlags);
}
else if (errno == EOPNOTSUPP || errno == EINVAL)
{
my_printf_error(EE_CANTCREATEFILE, "O_TMPFILE is not supported on %s "
"(disabling future attempts)",
MYF(ME_NOTE | ME_ERROR_LOG_ONLY), dir);
O_TMPFILE_works= 0;
}
}
}
if (file == -1)
#endif /* O_TMPFILE */
{
char prefix_buff[30];
uint pfx_len;
File org_file;
pfx_len= (uint) (strmov(strnmov(prefix_buff,
prefix ? prefix : "tmp.",
sizeof(prefix_buff)-7),"XXXXXX") -
prefix_buff);
if (strlen(dir)+ pfx_len > FN_REFLEN-2)
{
errno=my_errno= ENAMETOOLONG;
DBUG_RETURN(file);
}
strmov(convert_dirname(to,dir,NullS),prefix_buff);
org_file=mkstemp(to);
if (org_file >= 0 && (MyFlags & MY_TEMPORARY))
(void) my_delete(to, MYF(MY_WME));
file=my_register_filename(org_file, to, FILE_BY_MKSTEMP,
EE_CANTCREATEFILE, MyFlags);
/* If we didn't manage to register the name, remove the temp file */
if (org_file >= 0 && file < 0)
{
int tmp=my_errno;
close(org_file);
(void) my_delete(to, MYF(MY_WME));
my_errno=tmp;
}
}
#else
#error No implementation found for create_temp_file
#endif
if (file >= 0)
statistic_increment(my_tmp_file_created,&THR_LOCK_open);
DBUG_RETURN(file);
}
|
O3
|
c
|
create_temp_file:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r14
movl %ecx, %r13d
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
testq %rsi, %rsi
jne 0xa8668
leaq 0x33a56(%rip), %rdi # 0xdc0ab
callq 0x29600
testq %rax, %rax
leaq 0x33a4e(%rip), %r15 # 0xdc0b2
cmovneq %rax, %r15
testb $0x40, %r14b
je 0xa871c
testb $0x1, 0xb5f17f(%rip) # 0xc077f8
jne 0xa871c
andl $0xffb6fdbd, %r13d # imm = 0xFFB6FDBD
orl $0x490202, %r13d # imm = 0x490202
movq %r15, %rdi
movl %r13d, %esi
movl $0x1b0, %edx # imm = 0x1B0
xorl %eax, %eax
callq 0x299a0
movl %eax, %r13d
testl %eax, %eax
js 0xa86df
leaq 0x33a0a(%rip), %rdx # 0xdc0b7
movl $0x200, %esi # imm = 0x200
movq %rbx, %rdi
movq %r15, %rcx
movl %r13d, %r8d
xorl %eax, %eax
callq 0xd665e
movl %r13d, %edi
movq %rbx, %rsi
movl $0x5, %edx
movl $0x1, %ecx
movq %r14, %r8
callq 0x9fd6a
movl %eax, %r13d
jmp 0xa8712
callq 0x29790
movl (%rax), %eax
cmpl $0x5f, %eax
je 0xa86f0
cmpl $0x16, %eax
jne 0xa8712
leaq 0x339ce(%rip), %rsi # 0xdc0c5
movl $0x480, %edx # imm = 0x480
movl $0x1, %edi
movq %r15, %rcx
xorl %eax, %eax
callq 0x9dc21
movb $0x1, 0xb5f0e6(%rip) # 0xc077f8
cmpl $-0x1, %r13d
jne 0xa8805
testq %r12, %r12
leaq 0x339dc(%rip), %rsi # 0xdc102
cmovneq %r12, %rsi
leaq -0x50(%rbp), %r12
movl $0x17, %edx
movq %r12, %rdi
callq 0xd6a60
movq %rax, %r13
movl $0x58585858, (%rax) # imm = 0x58585858
movl $0x585858, 0x3(%rax) # imm = 0x585858
subl %r12d, %r13d
addl $0x6, %r13d
movq %r15, %rdi
callq 0x29340
addq %rax, %r13
cmpq $0x1fe, %r13 # imm = 0x1FE
ja 0xa8816
testb $0x40, %r14b
sete %r12b
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x942ab
leaq -0x50(%rbp), %rsi
movq %rax, %rdi
callq 0x29350
movq %rbx, %rdi
movl $0x80000, %esi # imm = 0x80000
callq 0x29540
movl %eax, %r15d
testl %eax, %eax
sets %al
orb %r12b, %al
jne 0xa87b2
movl $0x10, %esi
movq %rbx, %rdi
callq 0x9d890
testl %r15d, %r15d
setns %r12b
movl %r15d, %edi
movq %rbx, %rsi
movl $0x6, %edx
movl $0x1, %ecx
movq %r14, %r8
callq 0x9fd6a
movl %eax, %r13d
testl %eax, %eax
sets %al
andb %r12b, %al
cmpb $0x1, %al
jne 0xa8805
callq 0xa13e6
movl (%rax), %r14d
movl %r15d, %edi
callq 0x291b0
movl $0x10, %esi
movq %rbx, %rdi
callq 0x9d890
callq 0xa13e6
movl %r14d, (%rax)
testl %r13d, %r13d
js 0xa882f
leaq 0xb5e357(%rip), %rax # 0xc06b68
incq (%rax)
jmp 0xa882f
callq 0xa13e6
movl $0x24, %ebx
movl %ebx, (%rax)
callq 0x29790
movl %ebx, (%rax)
movl $0xffffffff, %r13d # imm = 0xFFFFFFFF
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0xa8850
movl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x29260
nopl (%rax)
|
create_temp_file:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r14, r8
mov r13d, ecx
mov r12, rdx
mov r15, rsi
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
test rsi, rsi
jnz short loc_A8668
lea rdi, aTmpdir; "TMPDIR"
call _getenv
test rax, rax
lea r15, aTmp; "/tmp"
cmovnz r15, rax
loc_A8668:
test r14b, 40h
jz loc_A871C
test cs:create_temp_file_O_TMPFILE_works, 1
jnz loc_A871C
and r13d, 0FFB6FDBDh
or r13d, 490202h
mov rdi, r15
mov esi, r13d
mov edx, 1B0h
xor eax, eax
call _open64
mov r13d, eax
test eax, eax
js short loc_A86DF
lea rdx, aSSqlFdD; "%s/#sql/fd=%d"
mov esi, 200h
mov rdi, rbx
mov rcx, r15
mov r8d, r13d
xor eax, eax
call my_snprintf
mov edi, r13d
mov rsi, rbx
mov edx, 5
mov ecx, 1
mov r8, r14
call my_register_filename
mov r13d, eax
jmp short loc_A8712
loc_A86DF:
call ___errno_location
mov eax, [rax]
cmp eax, 5Fh ; '_'
jz short loc_A86F0
cmp eax, 16h
jnz short loc_A8712
loc_A86F0:
lea rsi, aOTmpfileIsNotS; "O_TMPFILE is not supported on %s (disab"...
mov edx, 480h
mov edi, 1
mov rcx, r15
xor eax, eax
call my_printf_error
mov cs:create_temp_file_O_TMPFILE_works, 1
loc_A8712:
cmp r13d, 0FFFFFFFFh
jnz loc_A8805
loc_A871C:
test r12, r12
lea rsi, aTmp_0; "tmp."
cmovnz rsi, r12
lea r12, [rbp+var_50]
mov edx, 17h
mov rdi, r12
call strnmov
mov r13, rax
mov dword ptr [rax], 58585858h
mov dword ptr [rax+3], offset unk_585858
sub r13d, r12d
add r13d, 6
mov rdi, r15
call _strlen
add r13, rax
cmp r13, 1FEh
ja loc_A8816
test r14b, 40h
setz r12b
mov rdi, rbx
mov rsi, r15
xor edx, edx
call convert_dirname
lea rsi, [rbp+var_50]
mov rdi, rax
call _strcpy
mov rdi, rbx
mov esi, 80000h
call _mkostemp64
mov r15d, eax
test eax, eax
sets al
or al, r12b
jnz short loc_A87B2
mov esi, 10h
mov rdi, rbx
call my_delete
loc_A87B2:
test r15d, r15d
setns r12b
mov edi, r15d
mov rsi, rbx
mov edx, 6
mov ecx, 1
mov r8, r14
call my_register_filename
mov r13d, eax
test eax, eax
sets al
and al, r12b
cmp al, 1
jnz short loc_A8805
call _my_thread_var
mov r14d, [rax]
mov edi, r15d
call _close
mov esi, 10h
mov rdi, rbx
call my_delete
call _my_thread_var
mov [rax], r14d
loc_A8805:
test r13d, r13d
js short loc_A882F
lea rax, my_tmp_file_created
inc qword ptr [rax]
jmp short loc_A882F
loc_A8816:
call _my_thread_var
mov ebx, 24h ; '$'
mov [rax], ebx
call ___errno_location
mov [rax], ebx
mov r13d, 0FFFFFFFFh
loc_A882F:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_A8850
mov eax, r13d
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_A8850:
call ___stack_chk_fail
|
long long create_temp_file(
_WORD *a1,
const char *a2,
const char *a3,
int a4,
__int16 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
const char *v16; // r15
long long v17; // rax
int v18; // eax
int v19; // r9d
int v20; // r13d
int v21; // eax
long long v22; // r8
long long v23; // r9
__m128 v24; // xmm4
__m128 v25; // xmm5
const char *v26; // rsi
_DWORD *v27; // rax
_WORD *v28; // rax
int v29; // r15d
int v30; // r14d
char v32[32]; // [rsp+0h] [rbp-50h] BYREF
unsigned long long v33; // [rsp+20h] [rbp-30h]
v16 = a2;
v33 = __readfsqword(0x28u);
if ( !a2 )
{
v17 = getenv("TMPDIR");
v16 = "/tmp";
if ( v17 )
v16 = (const char *)v17;
}
if ( (a5 & 0x40) == 0 || (create_temp_file_O_TMPFILE_works & 1) != 0 )
goto LABEL_12;
v18 = open64(v16, a4 & 0xFFB6FDBD | 0x490202, 432LL);
v20 = v18;
if ( v18 < 0 )
{
v21 = *(_DWORD *)__errno_location(v16);
if ( v21 == 95 || v21 == 22 )
{
my_printf_error(
1,
(long long)"O_TMPFILE is not supported on %s (disabling future attempts)",
1152,
(long long)v16,
v22,
v23,
a6,
a7,
a8,
a9,
v24,
v25,
a12,
a13,
v32[0]);
create_temp_file_O_TMPFILE_works = 1;
}
}
else
{
my_snprintf((_DWORD)a1, 512, (unsigned int)"%s/#sql/fd=%d", (_DWORD)v16, v18, v19);
v20 = my_register_filename((unsigned int)v20, (long long)a1, 5, 1u, a5);
}
if ( v20 == -1 )
{
LABEL_12:
v26 = "tmp.";
if ( a3 )
v26 = a3;
v27 = (_DWORD *)strnmov(v32, v26, 23LL);
*v27 = 1482184792;
*(_DWORD *)((char *)v27 + 3) = (_DWORD)&unk_585858;
if ( strlen(v16) + (unsigned long long)((unsigned int)v27 - (unsigned int)v32 + 6) > 0x1FE )
{
*(_DWORD *)my_thread_var() = 36;
*(_DWORD *)__errno_location(v16) = 36;
return (unsigned int)-1;
}
v28 = convert_dirname(a1, (long long)v16, 0LL);
strcpy(v28, v32);
v29 = mkostemp64(a1, 0x80000LL);
if ( (a5 & 0x40) != 0 && v29 >= 0 )
my_delete((long long)a1, 16LL);
v20 = my_register_filename((unsigned int)v29, (long long)a1, 6, 1u, a5);
if ( v29 >= 0 && v20 < 0 )
{
v30 = *(_DWORD *)my_thread_var();
close((unsigned int)v29);
my_delete((long long)a1, 16LL);
*(_DWORD *)my_thread_var() = v30;
}
}
if ( v20 >= 0 )
++my_tmp_file_created;
return (unsigned int)v20;
}
|
create_temp_file:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R14,R8
MOV R13D,ECX
MOV R12,RDX
MOV R15,RSI
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
TEST RSI,RSI
JNZ 0x001a8668
LEA RDI,[0x1dc0ab]
CALL 0x00129600
TEST RAX,RAX
LEA R15,[0x1dc0b2]
CMOVNZ R15,RAX
LAB_001a8668:
TEST R14B,0x40
JZ 0x001a871c
TEST byte ptr [0x00d077f8],0x1
JNZ 0x001a871c
AND R13D,0xffb6fdbd
OR R13D,0x490202
MOV RDI,R15
MOV ESI,R13D
MOV EDX,0x1b0
XOR EAX,EAX
CALL 0x001299a0
MOV R13D,EAX
TEST EAX,EAX
JS 0x001a86df
LEA RDX,[0x1dc0b7]
MOV ESI,0x200
MOV RDI,RBX
MOV RCX,R15
MOV R8D,R13D
XOR EAX,EAX
CALL 0x001d665e
MOV EDI,R13D
MOV RSI,RBX
MOV EDX,0x5
MOV ECX,0x1
MOV R8,R14
CALL 0x0019fd6a
MOV R13D,EAX
JMP 0x001a8712
LAB_001a86df:
CALL 0x00129790
MOV EAX,dword ptr [RAX]
CMP EAX,0x5f
JZ 0x001a86f0
CMP EAX,0x16
JNZ 0x001a8712
LAB_001a86f0:
LEA RSI,[0x1dc0c5]
MOV EDX,0x480
MOV EDI,0x1
MOV RCX,R15
XOR EAX,EAX
CALL 0x0019dc21
MOV byte ptr [0x00d077f8],0x1
LAB_001a8712:
CMP R13D,-0x1
JNZ 0x001a8805
LAB_001a871c:
TEST R12,R12
LEA RSI,[0x1dc102]
CMOVNZ RSI,R12
LEA R12,[RBP + -0x50]
MOV EDX,0x17
MOV RDI,R12
CALL 0x001d6a60
MOV R13,RAX
MOV dword ptr [RAX],0x58585858
MOV dword ptr [RAX + 0x3],0x585858
SUB R13D,R12D
ADD R13D,0x6
MOV RDI,R15
CALL 0x00129340
ADD R13,RAX
CMP R13,0x1fe
JA 0x001a8816
TEST R14B,0x40
SETZ R12B
MOV RDI,RBX
MOV RSI,R15
XOR EDX,EDX
CALL 0x001942ab
LEA RSI,[RBP + -0x50]
MOV RDI,RAX
CALL 0x00129350
MOV RDI,RBX
MOV ESI,0x80000
CALL 0x00129540
MOV R15D,EAX
TEST EAX,EAX
SETS AL
OR AL,R12B
JNZ 0x001a87b2
MOV ESI,0x10
MOV RDI,RBX
CALL 0x0019d890
LAB_001a87b2:
TEST R15D,R15D
SETNS R12B
MOV EDI,R15D
MOV RSI,RBX
MOV EDX,0x6
MOV ECX,0x1
MOV R8,R14
CALL 0x0019fd6a
MOV R13D,EAX
TEST EAX,EAX
SETS AL
AND AL,R12B
CMP AL,0x1
JNZ 0x001a8805
CALL 0x001a13e6
MOV R14D,dword ptr [RAX]
MOV EDI,R15D
CALL 0x001291b0
MOV ESI,0x10
MOV RDI,RBX
CALL 0x0019d890
CALL 0x001a13e6
MOV dword ptr [RAX],R14D
LAB_001a8805:
TEST R13D,R13D
JS 0x001a882f
LEA RAX,[0xd06b68]
INC qword ptr [RAX]
JMP 0x001a882f
LAB_001a8816:
CALL 0x001a13e6
MOV EBX,0x24
MOV dword ptr [RAX],EBX
CALL 0x00129790
MOV dword ptr [RAX],EBX
MOV R13D,0xffffffff
LAB_001a882f:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x001a8850
MOV EAX,R13D
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001a8850:
CALL 0x00129260
|
int create_temp_file(char *param_1,char *param_2,int *param_3,uint param_4,ulong param_5)
{
int4 uVar1;
int iVar2;
int __fd;
char *pcVar3;
int4 *puVar4;
size_t sVar5;
int *piVar6;
int *puVar7;
long in_FS_OFFSET;
char local_58 [32];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
if (param_2 == (char *)0x0) {
pcVar3 = getenv("TMPDIR");
param_2 = "/tmp";
if (pcVar3 != (char *)0x0) {
param_2 = pcVar3;
}
}
if (((param_5 & 0x40) == 0) || ((create_temp_file_O_TMPFILE_works & 1) != 0)) {
LAB_001a871c:
puVar7 = &DAT_001dc102;
if (param_3 != (int *)0x0) {
puVar7 = param_3;
}
puVar4 = (int4 *)strnmov(local_58,puVar7,0x17);
*puVar4 = 0x58585858;
*(int4 *)((long)puVar4 + 3) = 0x585858;
sVar5 = strlen(param_2);
if (0x1fe < (((int)puVar4 - (int)local_58) + 6) + sVar5) {
puVar4 = (int4 *)_my_thread_var();
*puVar4 = 0x24;
piVar6 = __errno_location();
*piVar6 = 0x24;
iVar2 = -1;
goto LAB_001a882f;
}
pcVar3 = (char *)convert_dirname(param_1,param_2,0);
strcpy(pcVar3,local_58);
__fd = mkostemp64(param_1,0x80000);
if (-1 < __fd && (param_5 & 0x40) != 0) {
my_delete(param_1,0x10);
}
iVar2 = my_register_filename(__fd,param_1,6,1,param_5);
if (iVar2 < 0 && -1 < __fd) {
puVar4 = (int4 *)_my_thread_var();
uVar1 = *puVar4;
close(__fd);
my_delete(param_1,0x10);
puVar4 = (int4 *)_my_thread_var();
*puVar4 = uVar1;
}
}
else {
iVar2 = open64(param_2,param_4 & 0xffb6fdbd | 0x490202,0x1b0);
if (iVar2 < 0) {
piVar6 = __errno_location();
if ((*piVar6 == 0x5f) || (*piVar6 == 0x16)) {
my_printf_error(1,"O_TMPFILE is not supported on %s (disabling future attempts)",0x480,
param_2);
create_temp_file_O_TMPFILE_works = 1;
}
}
else {
my_snprintf(param_1,0x200,"%s/#sql/fd=%d",param_2,iVar2);
iVar2 = my_register_filename(iVar2,param_1,5,1,param_5);
}
if (iVar2 == -1) goto LAB_001a871c;
}
if (-1 < iVar2) {
my_tmp_file_created = my_tmp_file_created + 1;
}
LAB_001a882f:
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return iVar2;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
65,035 |
ftxui::separatorHeavy()
|
Andrewchistyakov[P]flashcards_lyc/build_O2/_deps/ftxui-src/src/ftxui/dom/separator.cpp
|
Element separatorHeavy() {
return std::make_shared<SeparatorAuto>(HEAVY);
}
|
O2
|
cpp
|
ftxui::separatorHeavy():
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0xc(%rsp), %rsi
movl $0x2, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x1f1a9
leaq 0x18(%rsp), %rdi
movaps -0x8(%rdi), %xmm0
andq $0x0, (%rdi)
movups %xmm0, (%rbx)
andq $0x0, -0x8(%rdi)
callq 0x13452
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
retq
|
_ZN5ftxui14separatorHeavyEv:
push rbx
sub rsp, 20h
mov rbx, rdi
lea rsi, [rsp+28h+var_1C]
mov dword ptr [rsi], 2
lea rdi, [rsp+28h+var_18]
call _ZSt11make_sharedIN5ftxui12_GLOBAL__N_113SeparatorAutoEJNS0_11BorderStyleEEESt10shared_ptrIT_EDpOT0_; std::make_shared<ftxui::`anonymous namespace'::SeparatorAuto,ftxui::BorderStyle>(ftxui::BorderStyle &&)
lea rdi, [rsp+28h+var_10]
movaps xmm0, xmmword ptr [rdi-8]
and qword ptr [rdi], 0
movups xmmword ptr [rbx], xmm0
and qword ptr [rdi-8], 0
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rax, rbx
add rsp, 20h
pop rbx
retn
|
ftxui * ftxui::separatorHeavy(ftxui *this)
{
__int128 v1; // xmm0
unsigned int v3; // [rsp+Ch] [rbp-1Ch] BYREF
__int128 v4; // [rsp+10h] [rbp-18h] BYREF
v3 = 2;
std::make_shared<ftxui::`anonymous namespace'::SeparatorAuto,ftxui::BorderStyle>(&v4, &v3);
v1 = v4;
*((_QWORD *)&v4 + 1) = 0LL;
*(_OWORD *)this = v1;
*(_QWORD *)&v4 = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v4 + 1);
return this;
}
|
separatorHeavy:
PUSH RBX
SUB RSP,0x20
MOV RBX,RDI
LEA RSI,[RSP + 0xc]
MOV dword ptr [RSI],0x2
LEA RDI,[RSP + 0x10]
CALL 0x0011f1a9
LEA RDI,[RSP + 0x18]
MOVAPS XMM0,xmmword ptr [RDI + -0x8]
AND qword ptr [RDI],0x0
MOVUPS xmmword ptr [RBX],XMM0
AND qword ptr [RDI + -0x8],0x0
CALL 0x00113452
MOV RAX,RBX
ADD RSP,0x20
POP RBX
RET
|
/* ftxui::separatorHeavy() */
ftxui * __thiscall ftxui::separatorHeavy(ftxui *this)
{
int8 uVar1;
int8 local_18;
int8 uStack_10;
std::make_shared<ftxui::(anonymous_namespace)::SeparatorAuto,ftxui::BorderStyle>
((BorderStyle *)&local_18);
uVar1 = uStack_10;
uStack_10 = 0;
*(int8 *)this = local_18;
*(int8 *)(this + 8) = uVar1;
local_18 = 0;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&uStack_10);
return this;
}
|
|
65,036 |
my_strnxfrm_8bit_nopad_bin
|
eloqsql/strings/ctype-bin.c
|
static size_t
my_strnxfrm_8bit_nopad_bin(CHARSET_INFO *cs,
uchar * dst, size_t dstlen, uint nweights,
const uchar *src, size_t srclen, uint flags)
{
set_if_smaller(srclen, dstlen);
set_if_smaller(srclen, nweights);
if (dst != src)
memcpy(dst, src, srclen);
return my_strxfrm_pad_desc_and_reverse_nopad(cs, dst, dst + srclen,
dst + dstlen,(uint)(nweights - srclen),
flags, 0);
}
|
O0
|
c
|
my_strnxfrm_8bit_nopad_bin:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %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 -0x30(%rbp), %rax
cmpq -0x18(%rbp), %rax
jbe 0x356c4
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x356c6
jmp 0x356c8
movq -0x30(%rbp), %rax
movl -0x1c(%rbp), %ecx
cmpq %rcx, %rax
jbe 0x356db
movl -0x1c(%rbp), %eax
movq %rax, -0x30(%rbp)
jmp 0x356dd
movq -0x10(%rbp), %rax
cmpq -0x28(%rbp), %rax
je 0x356f8
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x241f0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x10(%rbp), %rdx
addq -0x30(%rbp), %rdx
movq -0x10(%rbp), %rcx
addq -0x18(%rbp), %rcx
movl -0x1c(%rbp), %eax
subq -0x30(%rbp), %rax
movl %eax, %r8d
movl 0x10(%rbp), %r9d
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x41330
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_strnxfrm_8bit_nopad_bin:
push rbp
mov rbp, rsp
sub rsp, 40h
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_30]
cmp rax, [rbp+var_18]
jbe short loc_356C4
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
loc_356C4:
jmp short $+2
loc_356C6:
jmp short $+2
loc_356C8:
mov rax, [rbp+var_30]
mov ecx, [rbp+var_1C]
cmp rax, rcx
jbe short loc_356DB
mov eax, [rbp+var_1C]
mov [rbp+var_30], rax
loc_356DB:
jmp short $+2
loc_356DD:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_28]
jz short loc_356F8
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_30]
call _memcpy
loc_356F8:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_10]
add rdx, [rbp+var_30]
mov rcx, [rbp+var_10]
add rcx, [rbp+var_18]
mov eax, [rbp+var_1C]
sub rax, [rbp+var_30]
mov r8d, eax
mov r9d, [rbp+arg_0]
xor eax, eax
mov [rsp+40h+var_40], 0
call my_strxfrm_pad_desc_and_reverse_nopad
add rsp, 40h
pop rbp
retn
|
long long my_strnxfrm_8bit_nopad_bin(
int a1,
long long a2,
unsigned long long a3,
unsigned int a4,
long long a5,
unsigned long long a6,
int a7)
{
unsigned long long v8; // [rsp+10h] [rbp-30h]
int v10; // [rsp+28h] [rbp-18h]
v10 = a3;
v8 = a6;
if ( a6 > a3 )
v8 = a3;
if ( v8 > a4 )
v8 = a4;
if ( a2 != a5 )
memcpy(a2, a5, v8);
return my_strxfrm_pad_desc_and_reverse_nopad(a1, a2, (int)v8 + (int)a2, v10 + (int)a2, a4 - (unsigned int)v8, a7, 0);
}
|
my_strnxfrm_8bit_nopad_bin:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
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 + -0x30]
CMP RAX,qword ptr [RBP + -0x18]
JBE 0x001356c4
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
LAB_001356c4:
JMP 0x001356c6
LAB_001356c6:
JMP 0x001356c8
LAB_001356c8:
MOV RAX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RBP + -0x1c]
CMP RAX,RCX
JBE 0x001356db
MOV EAX,dword ptr [RBP + -0x1c]
MOV qword ptr [RBP + -0x30],RAX
LAB_001356db:
JMP 0x001356dd
LAB_001356dd:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x28]
JZ 0x001356f8
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x001241f0
LAB_001356f8:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x10]
ADD RDX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x1c]
SUB RAX,qword ptr [RBP + -0x30]
MOV R8D,EAX
MOV R9D,dword ptr [RBP + 0x10]
XOR EAX,EAX
MOV dword ptr [RSP],0x0
CALL 0x00141330
ADD RSP,0x40
POP RBP
RET
|
void my_strnxfrm_8bit_nopad_bin
(int8 param_1,void *param_2,ulong param_3,uint param_4,void *param_5,
ulong param_6,int4 param_7)
{
int8 local_38;
local_38 = param_6;
if (param_3 < param_6) {
local_38 = param_3;
}
if (param_4 < local_38) {
local_38 = (ulong)param_4;
}
if (param_2 != param_5) {
memcpy(param_2,param_5,local_38);
}
my_strxfrm_pad_desc_and_reverse_nopad
(param_1,param_2,(long)param_2 + local_38,(long)param_2 + param_3,
param_4 - (int)local_38,param_7,0);
return;
}
|
|
65,037 |
streamable_to_string<char [13], true>::impl[abi:cxx11](char const (&) [13])
|
aimrt_mujoco_sim/_deps/yaml-cpp-src/include/yaml-cpp/traits.h
|
static std::string impl(const Key& key) {
std::stringstream ss;
ss << key;
return ss.str();
}
|
O3
|
c
|
streamable_to_string<char [13], true>::impl[abi:cxx11](char const (&) [13]):
pushq %r15
pushq %r14
pushq %rbx
subq $0x190, %rsp # imm = 0x190
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2cc30
leaq 0x18(%rsp), %r15
movq %r14, %rdi
callq 0x2c700
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x2d4f0
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x2ccd0
movq 0x1c2a1b(%rip), %rsi # 0x20fe58
leaq 0x8(%rsp), %rdi
callq 0x2cce0
leaq 0x88(%rsp), %rdi
callq 0x2c4d0
movq %rbx, %rax
addq $0x190, %rsp # imm = 0x190
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x1c29ea(%rip), %rsi # 0x20fe58
leaq 0x8(%rsp), %rdi
callq 0x2cce0
leaq 0x88(%rsp), %rdi
callq 0x2c4d0
movq %rbx, %rdi
callq 0x2e220
nop
|
_ZN20streamable_to_stringIA18_cLb1EE4implB5cxx11ERA18_Kc:
push r15
push r14
push rbx
sub rsp, 190h
mov r14, rsi
mov rbx, rdi
lea rdi, [rsp+1A8h+var_1A0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void)
lea r15, [rsp+1A8h+var_190]
mov rdi, r14
call _strlen
mov rdi, r15
mov rsi, r14
mov rdx, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, [rsp+1A8h+var_188]
mov rdi, rbx
call __ZNKRSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+1A8h+var_1A0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
lea rdi, [rsp+1A8h+var_120]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rax, rbx
add rsp, 190h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+arg_0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
lea rdi, [rsp+arg_80]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, rbx
call __Unwind_Resume
|
long long streamable_to_string<char [18],true>::impl[abi:cxx11](long long a1, long long a2)
{
long long v2; // rax
_BYTE v4[16]; // [rsp+8h] [rbp-1A0h] BYREF
_BYTE v5[8]; // [rsp+18h] [rbp-190h] BYREF
_BYTE v6[104]; // [rsp+20h] [rbp-188h] BYREF
_BYTE v7[288]; // [rsp+88h] [rbp-120h] BYREF
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v4);
v2 = strlen(a2);
std::__ostream_insert<char,std::char_traits<char>>(v5, a2, v2);
std::stringbuf::str(a1, v6);
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(
v4,
&`VTT for'std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>);
std::ios_base::~ios_base((std::ios_base *)v7);
return a1;
}
|
impl[abi:cxx11]:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x190
MOV R14,RSI
MOV RBX,RDI
LEA RDI,[RSP + 0x8]
CALL 0x0012cc30
LEA R15,[RSP + 0x18]
MOV RDI,R14
CALL 0x0012c700
LAB_0014d41b:
MOV RDI,R15
MOV RSI,R14
MOV RDX,RAX
CALL 0x0012d4f0
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x0012ccd0
LAB_0014d436:
MOV RSI,qword ptr [0x0030fe58]
LEA RDI,[RSP + 0x8]
CALL 0x0012cce0
LEA RDI,[RSP + 0x88]
CALL 0x0012c4d0
MOV RAX,RBX
ADD RSP,0x190
POP RBX
POP R14
POP R15
RET
|
/* streamable_to_string<char [18], true>::impl[abi:cxx11](char const (&) [18]) */
streamable_to_string<char[18],true> * __thiscall
streamable_to_string<char[18],true>::impl_abi_cxx11_
(streamable_to_string<char[18],true> *this,char *param_1)
{
size_t sVar1;
stringstream local_1a0 [16];
ostream local_190 [112];
ios_base local_120 [264];
std::__cxx11::stringstream::stringstream(local_1a0);
sVar1 = strlen(param_1);
/* try { // try from 0014d41b to 0014d435 has its CatchHandler @ 0014d464 */
std::__ostream_insert<char,std::char_traits<char>>(local_190,param_1,sVar1);
std::__cxx11::stringbuf::str();
std::__cxx11::stringstream::~stringstream(local_1a0);
std::ios_base::~ios_base(local_120);
return this;
}
|
|
65,038 |
move_to_next_bitmap
|
eloqsql/storage/maria/ma_bitmap.c
|
static my_bool move_to_next_bitmap(MARIA_HA *info, MARIA_FILE_BITMAP *bitmap)
{
pgcache_page_no_t page= bitmap->page;
MARIA_STATE_INFO *state= &info->s->state;
DBUG_ENTER("move_to_next_bitmap");
if (state->first_bitmap_with_space != ~(pgcache_page_no_t) 0 &&
state->first_bitmap_with_space != page)
{
page= state->first_bitmap_with_space;
state->first_bitmap_with_space= ~(pgcache_page_no_t) 0;
DBUG_ASSERT(page % bitmap->pages_covered == 0);
}
else
{
page+= bitmap->pages_covered;
DBUG_ASSERT(page % bitmap->pages_covered == 0);
}
DBUG_RETURN(_ma_change_bitmap_page(info, bitmap, page));
}
|
O0
|
c
|
move_to_next_bitmap:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
cmpq $-0x1, 0xd0(%rax)
je 0x673c8
movq -0x20(%rbp), %rax
movq 0xd0(%rax), %rax
cmpq -0x18(%rbp), %rax
je 0x673c8
movq -0x20(%rbp), %rax
movq 0xd0(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq $-0x1, 0xd0(%rax)
jmp 0x673c6
jmp 0x673df
movq -0x10(%rbp), %rax
movq 0x138(%rax), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0x673dd
jmp 0x673df
jmp 0x673e1
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x65ac0
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nop
|
move_to_next_bitmap:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
cmp qword ptr [rax+0D0h], 0FFFFFFFFFFFFFFFFh
jz short loc_673C8
mov rax, [rbp+var_20]
mov rax, [rax+0D0h]
cmp rax, [rbp+var_18]
jz short loc_673C8
mov rax, [rbp+var_20]
mov rax, [rax+0D0h]
mov [rbp+var_18], rax
mov rax, [rbp+var_20]
mov qword ptr [rax+0D0h], 0FFFFFFFFFFFFFFFFh
jmp short $+2
loc_673C6:
jmp short loc_673DF
loc_673C8:
mov rax, [rbp+var_10]
mov rax, [rax+138h]
add rax, [rbp+var_18]
mov [rbp+var_18], rax
jmp short $+2
loc_673DD:
jmp short $+2
loc_673DF:
jmp short $+2
loc_673E1:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
call _ma_change_bitmap_page
mov [rbp+var_21], al
mov al, [rbp+var_21]
add rsp, 30h
pop rbp
retn
|
char move_to_next_bitmap(long long *a1, long long a2)
{
long long v3; // [rsp+10h] [rbp-20h]
long long v4; // [rsp+18h] [rbp-18h]
long long v5; // [rsp+18h] [rbp-18h]
v4 = *(_QWORD *)(a2 + 16);
v3 = *a1;
if ( *(_QWORD *)(*a1 + 208) == -1LL || *(_QWORD *)(v3 + 208) == v4 )
{
v5 = v4 + *(_QWORD *)(a2 + 312);
}
else
{
v5 = *(_QWORD *)(v3 + 208);
*(_QWORD *)(v3 + 208) = -1LL;
}
return ma_change_bitmap_page(a1, a2, v5);
}
|
move_to_next_bitmap:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
CMP qword ptr [RAX + 0xd0],-0x1
JZ 0x001673c8
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0xd0]
CMP RAX,qword ptr [RBP + -0x18]
JZ 0x001673c8
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0xd0]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0xd0],-0x1
JMP 0x001673c6
LAB_001673c6:
JMP 0x001673df
LAB_001673c8:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x138]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001673dd
LAB_001673dd:
JMP 0x001673df
LAB_001673df:
JMP 0x001673e1
LAB_001673e1:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x00165ac0
MOV byte ptr [RBP + -0x21],AL
MOV AL,byte ptr [RBP + -0x21]
ADD RSP,0x30
POP RBP
RET
|
int8 move_to_next_bitmap(long *param_1,long param_2)
{
long lVar1;
int8 uVar2;
int8 local_20;
lVar1 = *param_1;
if ((*(long *)(lVar1 + 0xd0) == -1) || (*(long *)(lVar1 + 0xd0) == *(long *)(param_2 + 0x10))) {
local_20 = *(long *)(param_2 + 0x138) + *(long *)(param_2 + 0x10);
}
else {
local_20 = *(long *)(lVar1 + 0xd0);
*(int8 *)(lVar1 + 0xd0) = 0xffffffffffffffff;
}
uVar2 = _ma_change_bitmap_page(param_1,param_2,local_20);
return uVar2;
}
|
|
65,039 |
decode_pos
|
eloqsql/storage/myisam/mi_packrec.c
|
static uint decode_pos(MI_BIT_BUFF *bit_buff, MI_DECODE_TREE *decode_tree)
{
uint16 *pos=decode_tree->table;
for (;;)
{
if (get_bit(bit_buff))
pos++;
if (*pos & IS_CHAR)
return (uint) (*pos & ~IS_CHAR);
pos+= *pos;
}
}
|
O0
|
c
|
decode_pos:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0xbdc0a
movq -0x8(%rbp), %rax
movl (%rax), %eax
movq -0x8(%rbp), %rdx
movl 0x4(%rdx), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rdx)
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
jne 0xbdc2e
jmp 0xbdc3a
movq -0x8(%rbp), %rdi
callq 0xbc0c0
movq -0x8(%rbp), %rax
movl $0x1f, 0x4(%rax)
movq -0x8(%rbp), %rax
movl (%rax), %eax
andl $0x80000000, %eax # imm = 0x80000000
cmpl $0x0, %eax
je 0xbdc3a
movq -0x18(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movzwl (%rax), %eax
andl $0x8000, %eax # imm = 0x8000
cmpl $0x0, %eax
je 0xbdc5d
movq -0x18(%rbp), %rax
movzwl (%rax), %eax
andl $0xffff7fff, %eax # imm = 0xFFFF7FFF
addq $0x20, %rsp
popq %rbp
retq
movq -0x18(%rbp), %rax
movzwl (%rax), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
shlq %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
jmp 0xbdbdb
nopw (%rax,%rax)
|
decode_pos_0:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_18], rax
loc_BDBDB:
mov rax, [rbp+var_8]
cmp dword ptr [rax+4], 0
jz short loc_BDC0A
mov rax, [rbp+var_8]
mov eax, [rax]
mov rdx, [rbp+var_8]
mov ecx, [rdx+4]
add ecx, 0FFFFFFFFh
mov [rdx+4], ecx
mov edx, 1
shl edx, cl
mov ecx, edx
and eax, ecx
cmp eax, 0
jnz short loc_BDC2E
jmp short loc_BDC3A
loc_BDC0A:
mov rdi, [rbp+var_8]
call fill_buffer_0
mov rax, [rbp+var_8]
mov dword ptr [rax+4], 1Fh
mov rax, [rbp+var_8]
mov eax, [rax]
and eax, 80000000h
cmp eax, 0
jz short loc_BDC3A
loc_BDC2E:
mov rax, [rbp+var_18]
add rax, 2
mov [rbp+var_18], rax
loc_BDC3A:
mov rax, [rbp+var_18]
movzx eax, word ptr [rax]
and eax, 8000h
cmp eax, 0
jz short loc_BDC5D
mov rax, [rbp+var_18]
movzx eax, word ptr [rax]
and eax, 0FFFF7FFFh
add rsp, 20h
pop rbp
retn
loc_BDC5D:
mov rax, [rbp+var_18]
movzx ecx, word ptr [rax]
mov rax, [rbp+var_18]
movsxd rcx, ecx
shl rcx, 1
add rax, rcx
mov [rbp+var_18], rax
jmp loc_BDBDB
|
long long decode_pos_0(int *a1, _WORD **a2)
{
int v2; // eax
int v3; // ecx
_WORD *i; // [rsp+8h] [rbp-18h]
for ( i = *a2; ; i += (unsigned __int16)*i )
{
if ( !a1[1] )
{
fill_buffer_0((long long)a1);
a1[1] = 31;
if ( *a1 >= 0 )
goto LABEL_7;
LABEL_6:
++i;
goto LABEL_7;
}
v2 = *a1;
v3 = a1[1] - 1;
a1[1] = v3;
if ( ((1 << v3) & v2) != 0 )
goto LABEL_6;
LABEL_7:
if ( (*i & 0x8000) != 0 )
break;
}
return *i & 0x7FFF;
}
|
decode_pos:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
LAB_001bdbdb:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x4],0x0
JZ 0x001bdc0a
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RDX + 0x4]
ADD ECX,-0x1
MOV dword ptr [RDX + 0x4],ECX
MOV EDX,0x1
SHL EDX,CL
MOV ECX,EDX
AND EAX,ECX
CMP EAX,0x0
JNZ 0x001bdc2e
JMP 0x001bdc3a
LAB_001bdc0a:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001bc0c0
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x4],0x1f
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX]
AND EAX,0x80000000
CMP EAX,0x0
JZ 0x001bdc3a
LAB_001bdc2e:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x2
MOV qword ptr [RBP + -0x18],RAX
LAB_001bdc3a:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX]
AND EAX,0x8000
CMP EAX,0x0
JZ 0x001bdc5d
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX]
AND EAX,0xffff7fff
ADD RSP,0x20
POP RBP
RET
LAB_001bdc5d:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX ECX,word ptr [RAX]
MOV RAX,qword ptr [RBP + -0x18]
MOVSXD RCX,ECX
SHL RCX,0x1
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001bdbdb
|
ushort decode_pos(uint *param_1,int8 *param_2)
{
uint uVar1;
ushort *local_20;
local_20 = (ushort *)*param_2;
while( true ) {
if (param_1[1] == 0) {
fill_buffer(param_1);
param_1[1] = 0x1f;
uVar1 = *param_1 & 0x80000000;
}
else {
uVar1 = param_1[1];
param_1[1] = uVar1 - 1;
uVar1 = *param_1 & 1 << ((byte)(uVar1 - 1) & 0x1f);
}
if (uVar1 != 0) {
local_20 = local_20 + 1;
}
if ((*local_20 & 0x8000) != 0) break;
local_20 = local_20 + (int)(uint)*local_20;
}
return *local_20 & 0x7fff;
}
|
|
65,040 |
stbi_load
|
7CodeWizard[P]stablediffusion/thirdparty/stb_image.h
|
STBIDEF stbi_uc *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp)
{
FILE *f = stbi__fopen(filename, "rb");
unsigned char *result;
if (!f) return stbi__errpuc("can't fopen", "Unable to open file");
result = stbi_load_from_file(f,x,y,comp,req_comp);
fclose(f);
return result;
}
|
O2
|
c
|
stbi_load:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %r8d, %ebx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
leaq 0x8c14d(%rip), %rsi # 0x97d50
callq 0xa700
testq %rax, %rax
je 0xbc34
movq %rax, %r13
movq %rax, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
movl %ebx, %r8d
callq 0xbc50
movq %rax, %rbx
movq %r13, %rdi
callq 0xa5e0
movq %rbx, %rax
jmp 0xbc46
leaq 0x8c118(%rip), %rax # 0x97d53
movq %rax, %fs:-0x20
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
|
stbi_load:
push r15
push r14
push r13
push r12
push rbx
mov ebx, r8d
mov r14, rcx
mov r15, rdx
mov r12, rsi
lea rsi, unk_97D50
call _fopen
test rax, rax
jz short loc_BC34
mov r13, rax
mov rdi, rax
mov rsi, r12
mov rdx, r15
mov rcx, r14
mov r8d, ebx
call stbi_load_from_file
mov rbx, rax
mov rdi, r13
call _fclose
mov rax, rbx
jmp short loc_BC46
loc_BC34:
lea rax, aCanTFopen; "can't fopen"
mov fs:0FFFFFFFFFFFFFFE0h, rax
xor eax, eax
loc_BC46:
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
|
long long stbi_load(long long a1, long long a2, long long a3, long long a4, unsigned int a5)
{
long long v8; // rax
long long v9; // r13
long long v10; // rbx
v8 = fopen(a1, &unk_97D50);
if ( v8 )
{
v9 = v8;
v10 = stbi_load_from_file(v8, a2, a3, a4, a5);
fclose(v9);
return v10;
}
else
{
__writefsqword(0xFFFFFFE0, (unsigned long long)"can't fopen");
return 0LL;
}
}
|
stbi_load:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV EBX,R8D
MOV R14,RCX
MOV R15,RDX
MOV R12,RSI
LEA RSI,[0x197d50]
CALL 0x0010a700
TEST RAX,RAX
JZ 0x0010bc34
MOV R13,RAX
MOV RDI,RAX
MOV RSI,R12
MOV RDX,R15
MOV RCX,R14
MOV R8D,EBX
CALL 0x0010bc50
MOV RBX,RAX
MOV RDI,R13
CALL 0x0010a5e0
MOV RAX,RBX
JMP 0x0010bc46
LAB_0010bc34:
LEA RAX,[0x197d53]
MOV qword ptr FS:[-0x20],RAX
XOR EAX,EAX
LAB_0010bc46:
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
int8
stbi_load(char *param_1,int8 param_2,int8 param_3,int8 param_4,int4 param_5)
{
FILE *__stream;
int8 uVar1;
long in_FS_OFFSET;
__stream = fopen(param_1,"rb");
if (__stream == (FILE *)0x0) {
*(char **)(in_FS_OFFSET + -0x20) = "can\'t fopen";
uVar1 = 0;
}
else {
uVar1 = stbi_load_from_file(__stream,param_2,param_3,param_4,param_5);
fclose(__stream);
}
return uVar1;
}
|
|
65,041 |
nglog::(anonymous namespace)::GetPC(void*)
|
ng-log[P]ng-log/src/signalhandler.cc
|
void* GetPC(void* ucontext_in_void) {
# if (defined(HAVE_UCONTEXT_H) || defined(HAVE_SYS_UCONTEXT_H)) && \
defined(PC_FROM_UCONTEXT)
if (ucontext_in_void != nullptr) {
ucontext_t* context = reinterpret_cast<ucontext_t*>(ucontext_in_void);
return (void*)context->PC_FROM_UCONTEXT;
}
# else
(void)ucontext_in_void;
# endif
return nullptr;
}
|
O0
|
cpp
|
nglog::(anonymous namespace)::GetPC(void*):
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x4cf48
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq 0xa8(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x4cf50
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ZN5nglog12_GLOBAL__N_15GetPCEPv:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
cmp [rbp+var_10], 0
jz short loc_4CF48
mov rax, [rbp+var_10]
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov rax, [rax+0A8h]
mov [rbp+var_8], rax
jmp short loc_4CF50
loc_4CF48:
mov [rbp+var_8], 0
loc_4CF50:
mov rax, [rbp+var_8]
pop rbp
retn
|
long long nglog::`anonymous namespace'::GetPC(nglog::_anonymous_namespace_ *this, void *a2)
{
if ( this )
return *((_QWORD *)this + 21);
else
return 0LL;
}
|
GetPC:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0014cf48
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0xa8]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0014cf50
LAB_0014cf48:
MOV qword ptr [RBP + -0x8],0x0
LAB_0014cf50:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
/* nglog::(anonymous namespace)::GetPC(void*) */
int8 nglog::(anonymous_namespace)::GetPC(void *param_1)
{
int8 local_10;
if (param_1 == (void *)0x0) {
local_10 = 0;
}
else {
local_10 = *(int8 *)((long)param_1 + 0xa8);
}
return local_10;
}
|
|
65,042 |
ggml_map_custom3_impl_f32
|
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
|
static struct ggml_tensor * ggml_map_custom3_impl_f32(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * b,
struct ggml_tensor * c,
const ggml_custom3_op_f32_t fun,
bool inplace) {
struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
ggml_set_op_params(result, (const void *) &fun, sizeof(fun));
result->op = GGML_OP_MAP_CUSTOM3_F32;
result->src[0] = a;
result->src[1] = b;
result->src[2] = c;
return result;
}
|
O0
|
c
|
ggml_map_custom3_impl_f32:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %r9b, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
andb $0x1, %al
movb %al, -0x29(%rbp)
testb $0x1, -0x29(%rbp)
je 0x54c6d
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x428f0
movq %rax, -0x40(%rbp)
jmp 0x54c7e
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x45d90
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
leaq -0x28(%rbp), %rsi
movl $0x8, %edx
callq 0x4e370
movq -0x38(%rbp), %rax
movl $0x4c, 0x50(%rax)
movq -0x10(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x98(%rax)
movq -0x18(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0xa0(%rax)
movq -0x20(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0xa8(%rax)
movq -0x38(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
ggml_map_custom3_impl_f32:
push rbp
mov rbp, rsp
sub rsp, 40h
mov al, r9b
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
and al, 1
mov [rbp+var_29], al
test [rbp+var_29], 1
jz short loc_54C6D
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
call _ggml_view_tensor
mov [rbp+var_40], rax
jmp short loc_54C7E
loc_54C6D:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
call _ggml_dup_tensor
mov [rbp+var_40], rax
loc_54C7E:
mov rax, [rbp+var_40]
mov [rbp+var_38], rax
mov rdi, [rbp+var_38]
lea rsi, [rbp+var_28]
mov edx, 8
call ggml_set_op_params
mov rax, [rbp+var_38]
mov dword ptr [rax+50h], 4Ch ; 'L'
mov rcx, [rbp+var_10]
mov rax, [rbp+var_38]
mov [rax+98h], rcx
mov rcx, [rbp+var_18]
mov rax, [rbp+var_38]
mov [rax+0A0h], rcx
mov rcx, [rbp+var_20]
mov rax, [rbp+var_38]
mov [rax+0A8h], rcx
mov rax, [rbp+var_38]
add rsp, 40h
pop rbp
retn
|
long long ggml_map_custom3_impl_f32(
long long a1,
unsigned int *a2,
long long a3,
long long a4,
long long a5,
char a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14)
{
long long v15; // [rsp+0h] [rbp-40h]
long long v16; // [rsp+18h] [rbp-28h] BYREF
long long v17; // [rsp+20h] [rbp-20h]
long long v18; // [rsp+28h] [rbp-18h]
unsigned int *v19; // [rsp+30h] [rbp-10h]
long long v20; // [rsp+38h] [rbp-8h]
v20 = a1;
v19 = a2;
v18 = a3;
v17 = a4;
v16 = a5;
if ( (a6 & 1) != 0 )
v15 = (long long)ggml_view_tensor(v20, (long long)v19, a7, a8, a9, a10, a11, a12, a13, a14);
else
v15 = ggml_dup_tensor(v20, v19);
ggml_set_op_params(v15, (long long)&v16, 8uLL);
*(_DWORD *)(v15 + 80) = 76;
*(_QWORD *)(v15 + 152) = v19;
*(_QWORD *)(v15 + 160) = v18;
*(_QWORD *)(v15 + 168) = v17;
return v15;
}
|
ggml_map_custom3_impl_f32:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV AL,R9B
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
AND AL,0x1
MOV byte ptr [RBP + -0x29],AL
TEST byte ptr [RBP + -0x29],0x1
JZ 0x00154c6d
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x001428f0
MOV qword ptr [RBP + -0x40],RAX
JMP 0x00154c7e
LAB_00154c6d:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x00145d90
MOV qword ptr [RBP + -0x40],RAX
LAB_00154c7e:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x38]
LEA RSI,[RBP + -0x28]
MOV EDX,0x8
CALL 0x0014e370
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x50],0x4c
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0x98],RCX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0xa0],RCX
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0xa8],RCX
MOV RAX,qword ptr [RBP + -0x38]
ADD RSP,0x40
POP RBP
RET
|
long ggml_map_custom3_impl_f32
(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,byte param_6)
{
long local_48;
int8 local_30;
int8 local_28;
int8 local_20;
int8 local_18;
int8 local_10;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
if ((param_6 & 1) == 0) {
local_48 = ggml_dup_tensor(param_1,param_2);
}
else {
local_48 = ggml_view_tensor(param_1,param_2);
}
ggml_set_op_params(local_48,&local_30,8);
*(int4 *)(local_48 + 0x50) = 0x4c;
*(int8 *)(local_48 + 0x98) = local_18;
*(int8 *)(local_48 + 0xa0) = local_20;
*(int8 *)(local_48 + 0xa8) = local_28;
return local_48;
}
|
|
65,043 |
ggml_map_custom3_impl_f32
|
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
|
static struct ggml_tensor * ggml_map_custom3_impl_f32(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * b,
struct ggml_tensor * c,
const ggml_custom3_op_f32_t fun,
bool inplace) {
struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
ggml_set_op_params(result, (const void *) &fun, sizeof(fun));
result->op = GGML_OP_MAP_CUSTOM3_F32;
result->src[0] = a;
result->src[1] = b;
result->src[2] = c;
return result;
}
|
O1
|
c
|
ggml_map_custom3_impl_f32:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r12
testl %r9d, %r9d
je 0x211db
movq %r12, %rsi
callq 0x17260
jmp 0x211f4
movl (%r12), %esi
leaq 0x10(%r12), %rcx
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x1b871
testq %rax, %rax
je 0x21225
movq %r15, 0x54(%rax)
movl $0x4c, 0x50(%rax)
movq %r12, 0x98(%rax)
movq %r14, 0xa0(%rax)
movq %rbx, 0xa8(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x2d499(%rip), %rdi # 0x4e6c5
leaq 0x2b38e(%rip), %rdx # 0x4c5c1
leaq 0x2d5b8(%rip), %rcx # 0x4e7f2
movl $0x70, %esi
xorl %eax, %eax
callq 0x18ce0
|
ggml_map_custom3_impl_f32:
push r15
push r14
push r12
push rbx
push rax
mov r15, r8
mov rbx, rcx
mov r14, rdx
mov r12, rsi
test r9d, r9d
jz short loc_211DB
mov rsi, r12
call _ggml_view_tensor
jmp short loc_211F4
loc_211DB:
mov esi, [r12]
lea rcx, [r12+10h]
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
loc_211F4:
test rax, rax
jz short loc_21225
mov [rax+54h], r15
mov dword ptr [rax+50h], 4Ch ; 'L'
mov [rax+98h], r12
mov [rax+0A0h], r14
mov [rax+0A8h], rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
loc_21225:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNull; "tensor != NULL"
mov esi, 70h ; 'p'
xor eax, eax
call _ggml_abort
|
long long ggml_map_custom3_impl_f32(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
int a6,
double a7)
{
long long result; // rax
int v11; // r8d
int v12; // r9d
if ( a6 )
result = ggml_view_tensor(a1, a2, a7);
else
result = ggml_new_tensor_impl(a1, *(_DWORD *)a2, 4, (long long *)(a2 + 16), 0LL, 0LL, a7);
if ( !result )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h",
112,
(unsigned int)"GGML_ASSERT(%s) failed",
(unsigned int)"tensor != NULL",
v11,
v12);
*(_QWORD *)(result + 84) = a5;
*(_DWORD *)(result + 80) = 76;
*(_QWORD *)(result + 152) = a2;
*(_QWORD *)(result + 160) = a3;
*(_QWORD *)(result + 168) = a4;
return result;
}
|
ggml_map_custom3_impl_f32:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,R8
MOV RBX,RCX
MOV R14,RDX
MOV R12,RSI
TEST R9D,R9D
JZ 0x001211db
MOV RSI,R12
CALL 0x00117260
JMP 0x001211f4
LAB_001211db:
MOV ESI,dword ptr [R12]
LEA RCX,[R12 + 0x10]
MOV EDX,0x4
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0011b871
LAB_001211f4:
TEST RAX,RAX
JZ 0x00121225
MOV qword ptr [RAX + 0x54],R15
MOV dword ptr [RAX + 0x50],0x4c
MOV qword ptr [RAX + 0x98],R12
MOV qword ptr [RAX + 0xa0],R14
MOV qword ptr [RAX + 0xa8],RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_00121225:
LEA RDI,[0x14e6c5]
LEA RDX,[0x14c5c1]
LEA RCX,[0x14e7f2]
MOV ESI,0x70
XOR EAX,EAX
CALL 0x00118ce0
|
void ggml_map_custom3_impl_f32
(int8 param_1,int4 *param_2,int8 param_3,int8 param_4,
int8 param_5,int param_6)
{
long lVar1;
if (param_6 == 0) {
lVar1 = ggml_new_tensor_impl(param_1,*param_2,4,param_2 + 4,0,0);
}
else {
lVar1 = ggml_view_tensor(param_1,param_2);
}
if (lVar1 != 0) {
*(int8 *)(lVar1 + 0x54) = param_5;
*(int4 *)(lVar1 + 0x50) = 0x4c;
*(int4 **)(lVar1 + 0x98) = param_2;
*(int8 *)(lVar1 + 0xa0) = param_3;
*(int8 *)(lVar1 + 0xa8) = param_4;
return;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h"
,0x70,"GGML_ASSERT(%s) failed","tensor != NULL");
}
|
|
65,044 |
ggml_map_custom3_impl_f32
|
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
|
static struct ggml_tensor * ggml_map_custom3_impl_f32(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * b,
struct ggml_tensor * c,
const ggml_custom3_op_f32_t fun,
bool inplace) {
struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
ggml_set_op_params(result, (const void *) &fun, sizeof(fun));
result->op = GGML_OP_MAP_CUSTOM3_F32;
result->src[0] = a;
result->src[1] = b;
result->src[2] = c;
return result;
}
|
O3
|
c
|
ggml_map_custom3_impl_f32:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r12
testl %r9d, %r9d
je 0x1fe6b
movq %r12, %rsi
callq 0x16260
jmp 0x1fe84
movl (%r12), %esi
leaq 0x10(%r12), %rcx
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x1a57f
testq %rax, %rax
je 0x1feb5
movq %r15, 0x54(%rax)
movl $0x4c, 0x50(%rax)
movq %r12, 0x98(%rax)
movq %r14, 0xa0(%rax)
movq %rbx, 0xa8(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x2e8ad(%rip), %rdi # 0x4e769
leaq 0x2c7a2(%rip), %rdx # 0x4c665
leaq 0x2e9cc(%rip), %rcx # 0x4e896
movl $0x70, %esi
xorl %eax, %eax
callq 0x17cd0
|
ggml_map_custom3_impl_f32:
push r15
push r14
push r12
push rbx
push rax
mov r15, r8
mov rbx, rcx
mov r14, rdx
mov r12, rsi
test r9d, r9d
jz short loc_1FE6B
mov rsi, r12
call _ggml_view_tensor
jmp short loc_1FE84
loc_1FE6B:
mov esi, [r12]
lea rcx, [r12+10h]
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
loc_1FE84:
test rax, rax
jz short loc_1FEB5
mov [rax+54h], r15
mov dword ptr [rax+50h], 4Ch ; 'L'
mov [rax+98h], r12
mov [rax+0A0h], r14
mov [rax+0A8h], rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
loc_1FEB5:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNull; "tensor != NULL"
mov esi, 70h ; 'p'
xor eax, eax
call _ggml_abort
|
long long ggml_map_custom3_impl_f32(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
int a6,
double a7)
{
long long result; // rax
int v11; // r8d
int v12; // r9d
if ( a6 )
result = ggml_view_tensor(a1, a2, a7);
else
result = ggml_new_tensor_impl(a1, *(_DWORD *)a2, 4u, (long long *)(a2 + 16), 0LL, 0LL, a7);
if ( !result )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h",
112,
(unsigned int)"GGML_ASSERT(%s) failed",
(unsigned int)"tensor != NULL",
v11,
v12);
*(_QWORD *)(result + 84) = a5;
*(_DWORD *)(result + 80) = 76;
*(_QWORD *)(result + 152) = a2;
*(_QWORD *)(result + 160) = a3;
*(_QWORD *)(result + 168) = a4;
return result;
}
|
ggml_map_custom3_impl_f32:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,R8
MOV RBX,RCX
MOV R14,RDX
MOV R12,RSI
TEST R9D,R9D
JZ 0x0011fe6b
MOV RSI,R12
CALL 0x00116260
JMP 0x0011fe84
LAB_0011fe6b:
MOV ESI,dword ptr [R12]
LEA RCX,[R12 + 0x10]
MOV EDX,0x4
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0011a57f
LAB_0011fe84:
TEST RAX,RAX
JZ 0x0011feb5
MOV qword ptr [RAX + 0x54],R15
MOV dword ptr [RAX + 0x50],0x4c
MOV qword ptr [RAX + 0x98],R12
MOV qword ptr [RAX + 0xa0],R14
MOV qword ptr [RAX + 0xa8],RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0011feb5:
LEA RDI,[0x14e769]
LEA RDX,[0x14c665]
LEA RCX,[0x14e896]
MOV ESI,0x70
XOR EAX,EAX
CALL 0x00117cd0
|
void ggml_map_custom3_impl_f32
(int8 param_1,int4 *param_2,int8 param_3,int8 param_4,
int8 param_5,int param_6)
{
long lVar1;
if (param_6 == 0) {
lVar1 = ggml_new_tensor_impl(param_1,*param_2,4,param_2 + 4,0,0);
}
else {
lVar1 = ggml_view_tensor(param_1,param_2);
}
if (lVar1 != 0) {
*(int8 *)(lVar1 + 0x54) = param_5;
*(int4 *)(lVar1 + 0x50) = 0x4c;
*(int4 **)(lVar1 + 0x98) = param_2;
*(int8 *)(lVar1 + 0xa0) = param_3;
*(int8 *)(lVar1 + 0xa8) = param_4;
return;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h"
,0x70,"GGML_ASSERT(%s) failed","tensor != NULL");
}
|
|
65,045 |
hexlo
|
eloqsql/strings/ctype-utf8.c
|
static int hexlo(int x)
{
static const char hex_lo_digit[256]=
{
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, /* ................ */
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, /* ................ */
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, /* !"#$%&'()*+,-./ */
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,-1,-1,-1,-1,-1,-1, /* 0123456789:;<=>? */
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, /* @ABCDEFGHIJKLMNO */
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, /* PQRSTUVWXYZ[\]^_ */
-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1, /* `abcdefghijklmno */
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, /* pqrstuvwxyz{|}~. */
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, /* ................ */
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, /* ................ */
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, /* ................ */
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, /* ................ */
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, /* ................ */
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, /* ................ */
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, /* ................ */
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, /* ................ */
};
return hex_lo_digit[(unsigned int) x];
}
|
O0
|
c
|
hexlo:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
movl -0x4(%rbp), %eax
movl %eax, %ecx
leaq 0x14cafd(%rip), %rax # 0x1be5d0
movsbl (%rax,%rcx), %eax
popq %rbp
retq
nopl (%rax)
|
hexlo:
push rbp
mov rbp, rsp
mov [rbp+var_4], edi
mov eax, [rbp+var_4]
mov ecx, eax
lea rax, hexlo_hex_lo_digit
movsx eax, byte ptr [rax+rcx]
pop rbp
retn
|
long long hexlo(int a1)
{
return (unsigned int)hexlo_hex_lo_digit[a1];
}
|
hexlo:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0x4],EDI
MOV EAX,dword ptr [RBP + -0x4]
MOV ECX,EAX
LEA RAX,[0x2be5d0]
MOVSX EAX,byte ptr [RAX + RCX*0x1]
POP RBP
RET
|
int hexlo(uint param_1)
{
return (int)(char)hexlo_hex_lo_digit[param_1];
}
|
|
65,046 |
js_typed_array_sort
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_typed_array_sort(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSObject *p;
int len;
size_t elt_size;
struct TA_sort_context tsc;
int (*cmpfun)(const void *a, const void *b, void *opaque);
p = get_typed_array(ctx, this_val);
if (!p)
return JS_EXCEPTION;
if (typed_array_is_oob(p))
return JS_ThrowTypeErrorArrayBufferOOB(ctx);
tsc.ctx = ctx;
tsc.exception = 0;
tsc.arr = this_val;
tsc.cmp = argv[0];
if (!JS_IsUndefined(tsc.cmp) && check_function(ctx, tsc.cmp))
return JS_EXCEPTION;
len = p->u.array.count;
if (len > 1) {
switch (p->class_id) {
case JS_CLASS_INT8_ARRAY:
tsc.getfun = js_TA_get_int8;
cmpfun = js_TA_cmp_int8;
break;
case JS_CLASS_UINT8C_ARRAY:
case JS_CLASS_UINT8_ARRAY:
tsc.getfun = js_TA_get_uint8;
cmpfun = js_TA_cmp_uint8;
break;
case JS_CLASS_INT16_ARRAY:
tsc.getfun = js_TA_get_int16;
cmpfun = js_TA_cmp_int16;
break;
case JS_CLASS_UINT16_ARRAY:
tsc.getfun = js_TA_get_uint16;
cmpfun = js_TA_cmp_uint16;
break;
case JS_CLASS_INT32_ARRAY:
tsc.getfun = js_TA_get_int32;
cmpfun = js_TA_cmp_int32;
break;
case JS_CLASS_UINT32_ARRAY:
tsc.getfun = js_TA_get_uint32;
cmpfun = js_TA_cmp_uint32;
break;
case JS_CLASS_BIG_INT64_ARRAY:
tsc.getfun = js_TA_get_int64;
cmpfun = js_TA_cmp_int64;
break;
case JS_CLASS_BIG_UINT64_ARRAY:
tsc.getfun = js_TA_get_uint64;
cmpfun = js_TA_cmp_uint64;
break;
case JS_CLASS_FLOAT16_ARRAY:
tsc.getfun = js_TA_get_float16;
cmpfun = js_TA_cmp_float16;
break;
case JS_CLASS_FLOAT32_ARRAY:
tsc.getfun = js_TA_get_float32;
cmpfun = js_TA_cmp_float32;
break;
case JS_CLASS_FLOAT64_ARRAY:
tsc.getfun = js_TA_get_float64;
cmpfun = js_TA_cmp_float64;
break;
default:
abort();
}
elt_size = 1 << typed_array_size_log2(p->class_id);
if (!JS_IsUndefined(tsc.cmp)) {
uint32_t *array_idx;
void *array_tmp;
size_t i, j;
/* XXX: a stable sort would use less memory */
array_idx = js_malloc(ctx, len * sizeof(array_idx[0]));
if (!array_idx)
return JS_EXCEPTION;
for(i = 0; i < len; i++)
array_idx[i] = i;
tsc.elt_size = elt_size;
rqsort(array_idx, len, sizeof(array_idx[0]),
js_TA_cmp_generic, &tsc);
if (tsc.exception)
goto fail;
// per spec: typed array can be detached mid-iteration
if (typed_array_is_oob(p))
goto done;
len = min_int(len, p->u.array.count);
if (len == 0)
goto done;
array_tmp = js_malloc(ctx, len * elt_size);
if (!array_tmp) {
fail:
js_free(ctx, array_idx);
return JS_EXCEPTION;
}
memcpy(array_tmp, p->u.array.u.ptr, len * elt_size);
switch(elt_size) {
case 1:
for(i = 0; i < len; i++) {
j = array_idx[i];
p->u.array.u.uint8_ptr[i] = ((uint8_t *)array_tmp)[j];
}
break;
case 2:
for(i = 0; i < len; i++) {
j = array_idx[i];
p->u.array.u.uint16_ptr[i] = ((uint16_t *)array_tmp)[j];
}
break;
case 4:
for(i = 0; i < len; i++) {
j = array_idx[i];
p->u.array.u.uint32_ptr[i] = ((uint32_t *)array_tmp)[j];
}
break;
case 8:
for(i = 0; i < len; i++) {
j = array_idx[i];
p->u.array.u.uint64_ptr[i] = ((uint64_t *)array_tmp)[j];
}
break;
default:
abort();
}
js_free(ctx, array_tmp);
done:
js_free(ctx, array_idx);
} else {
rqsort(p->u.array.u.ptr, len, elt_size, cmpfun, &tsc);
if (tsc.exception)
return JS_EXCEPTION;
}
}
return js_dup(this_val);
}
|
O1
|
c
|
js_typed_array_sort:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r8, %rbp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, 0x28(%rsp)
cmpl $-0x1, %ebx
jne 0x81cd2
movq 0x28(%rsp), %r12
movzwl 0x6(%r12), %eax
addl $-0x15, %eax
cmpw $0xc, %ax
jb 0x81ce6
leaq 0x20738(%rip), %rsi # 0xa2411
xorl %r12d, %r12d
movq %r15, %rdi
xorl %eax, %eax
callq 0x22567
movl $0x6, %r13d
testq %r12, %r12
je 0x81de0
movq %r12, %rdi
callq 0x396c4
testl %eax, %eax
je 0x81d1a
leaq 0x2071a(%rip), %rsi # 0xa2422
xorl %r14d, %r14d
movq %r15, %rdi
xorl %eax, %eax
callq 0x22567
jmp 0x81de3
movq %r15, 0x28(%rsp)
movl $0x0, 0x30(%rsp)
movq %r14, 0x38(%rsp)
movq %rbx, 0x40(%rsp)
movdqu (%rbp), %xmm0
movdqu %xmm0, 0x48(%rsp)
movq 0x50(%rsp), %rdx
cmpl $0x3, %edx
je 0x81d5b
movq 0x48(%rsp), %rsi
movq %r15, %rdi
callq 0x415b1
testl %eax, %eax
jne 0x81de0
movslq 0x40(%r12), %rbp
cmpq $0x2, %rbp
jl 0x81f58
movzwl 0x6(%r12), %eax
addl $-0x15, %eax
cmpw $0xc, %ax
jae 0x820d0
movzwl %ax, %eax
shll $0x3, %eax
leaq 0x4ada6(%rip), %rcx # 0xccb30
movq (%rax,%rcx), %rcx
movq %rcx, 0x58(%rsp)
movzwl 0x6(%r12), %ecx
leaq 0x1bb3f(%rip), %rdx # 0x9d8df
movb -0x15(%rcx,%rdx), %cl
leaq 0x4ade5(%rip), %rdx # 0xccb90
movl $0x1, %esi
shll %cl, %esi
movq (%rax,%rdx), %rcx
movslq %esi, %rdx
cmpl $0x3, 0x50(%rsp)
jne 0x81dfd
movq 0x38(%r12), %rdi
leaq 0x28(%rsp), %r15
movq %rbp, %rsi
movq %r15, %r8
callq 0x1c031
cmpl $0x0, 0x8(%r15)
je 0x81f58
xorl %r14d, %r14d
xorl %eax, %eax
orq %rax, %r14
movq %r14, %rax
movq %r13, %rdx
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, 0x10(%rsp)
movq %rsi, 0x18(%rsp)
leaq (,%rbp,4), %rsi
movq %r15, %rdi
callq 0xede6
testq %rax, %rax
je 0x81de0
cmpq $0x1, %rbp
movq %rbp, %rcx
adcq $0x0, %rcx
leal 0x1(%rcx), %esi
andl $-0x2, %esi
decq %rcx
movq %rcx, %xmm0
pshufd $0x44, %xmm0, %xmm0 # xmm0 = xmm0[0,1,0,1]
movdqa 0x19a5e(%rip), %xmm1 # 0x9b8a0
xorl %ecx, %ecx
movdqa 0x19a64(%rip), %xmm2 # 0x9b8b0
pxor %xmm2, %xmm0
pcmpeqd %xmm3, %xmm3
movdqa 0x19a74(%rip), %xmm4 # 0x9b8d0
movdqa %xmm1, %xmm5
pxor %xmm2, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm0, %xmm6
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7 # xmm7 = xmm5[1,1,3,3]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm5 # xmm5 = xmm6[1,1,3,3]
por %xmm7, %xmm5
movd %xmm5, %edx
notl %edx
testb $0x1, %dl
je 0x81e90
movl %ecx, (%rax,%rcx,4)
pxor %xmm3, %xmm5
pextrw $0x4, %xmm5, %edx
testb $0x1, %dl
je 0x81ea5
leal 0x1(%rcx), %edx
movl %edx, 0x4(%rax,%rcx,4)
addq $0x2, %rcx
paddq %xmm4, %xmm1
cmpq %rcx, %rsi
jne 0x81e5c
leaq 0x28(%rsp), %r8
movq 0x18(%rsp), %rcx
movl %ecx, 0x38(%r8)
leaq 0x1113(%rip), %rcx # 0x82fda
movl $0x4, %edx
movq %rax, %rdi
movq %rax, (%rsp)
movq %rbp, %rsi
callq 0x1c031
leaq 0x28(%rsp), %rax
cmpl $0x0, 0x8(%rax)
je 0x81f16
movq 0x18(%r15), %rbx
decq 0x28(%rbx)
movq (%rsp), %r14
movq %r14, %rdi
callq *0x20(%rbx)
movq 0x30(%rbx), %rcx
movq 0x40(%rbx), %rdi
subq %rax, %rcx
addq $-0x8, %rcx
movq %rcx, 0x30(%rbx)
movq %r14, %rsi
callq *0x10(%rbx)
jmp 0x81de0
movq %r12, %rdi
callq 0x396c4
testl %eax, %eax
jne 0x81f2b
movl 0x40(%r12), %eax
testl %eax, %eax
jne 0x81f81
movq 0x18(%r15), %r15
decq 0x28(%r15)
movq (%rsp), %r12
movq %r12, %rdi
callq *0x20(%r15)
movq 0x30(%r15), %rcx
movq 0x40(%r15), %rdi
subq %rax, %rcx
addq $-0x8, %rcx
movq %rcx, 0x30(%r15)
movq %r12, %rsi
callq *0x10(%r15)
movq %r14, 0x20(%rsp)
cmpl $-0x9, %ebx
jb 0x81f69
movq 0x20(%rsp), %rax
incl (%rax)
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
andq %r14, %rax
movl %r14d, %r14d
movq %rbx, %r13
jmp 0x81de5
cmpl %eax, %ebp
cmovll %ebp, %eax
movslq %eax, %rbp
movq 0x10(%rsp), %rsi
imulq %rbp, %rsi
movq %r15, %rdi
movq %rsi, 0x10(%rsp)
callq 0xede6
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x81ee6
movq 0x38(%r12), %rsi
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rdx
callq 0xe5b0
movq 0x18(%rsp), %rax
decl %eax
cmpl $0x7, %eax
ja 0x820d0
movq %rax, %rcx
leaq 0x1b7d1(%rip), %rax # 0x9d7ac
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
cmpq $0x1, %rbp
adcq $0x0, %rbp
xorl %eax, %eax
movq (%rsp), %rsi
movq 0x8(%rsp), %r13
movl (%rsi,%rax,4), %ecx
movb (%r13,%rcx), %cl
movq 0x38(%r12), %rdx
movb %cl, (%rdx,%rax)
incq %rax
cmpq %rax, %rbp
jne 0x81ff7
jmp 0x8209c
cmpq $0x1, %rbp
adcq $0x0, %rbp
xorl %eax, %eax
movq (%rsp), %rsi
movq 0x8(%rsp), %r13
movl (%rsi,%rax,4), %ecx
movl (%r13,%rcx,4), %ecx
movq 0x38(%r12), %rdx
movl %ecx, (%rdx,%rax,4)
incq %rax
cmpq %rax, %rbp
jne 0x82027
jmp 0x8209c
cmpq $0x1, %rbp
adcq $0x0, %rbp
xorl %eax, %eax
movq (%rsp), %rsi
movq 0x8(%rsp), %r13
movl (%rsi,%rax,4), %ecx
movq (%r13,%rcx,8), %rcx
movq 0x38(%r12), %rdx
movq %rcx, (%rdx,%rax,8)
incq %rax
cmpq %rax, %rbp
jne 0x82054
jmp 0x8209c
cmpq $0x1, %rbp
adcq $0x0, %rbp
xorl %eax, %eax
movq (%rsp), %rsi
movq 0x8(%rsp), %r13
movl (%rsi,%rax,4), %ecx
movzwl (%r13,%rcx,2), %ecx
movq 0x38(%r12), %rdx
movw %cx, (%rdx,%rax,2)
incq %rax
cmpq %rax, %rbp
jne 0x82082
movq 0x18(%r15), %r12
decq 0x28(%r12)
movq %r13, %rdi
callq *0x20(%r12)
movq 0x30(%r12), %rcx
movq 0x40(%r12), %rdi
subq %rax, %rcx
addq $-0x8, %rcx
movq %rcx, 0x30(%r12)
movq %r13, %rsi
callq *0x10(%r12)
jmp 0x81f2b
callq 0xe090
|
js_typed_array_sort:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov rbp, r8
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov [rsp+98h+var_70], rsi
cmp ebx, 0FFFFFFFFh
jnz short loc_81CD2
mov r12, [rsp+98h+var_70]
movzx eax, word ptr [r12+6]
add eax, 0FFFFFFEBh
cmp ax, 0Ch
jb short loc_81CE6
loc_81CD2:
lea rsi, aNotATypedarray; "not a TypedArray"
xor r12d, r12d
mov rdi, r15
xor eax, eax
call JS_ThrowTypeError
loc_81CE6:
mov r13d, 6
test r12, r12
jz loc_81DE0
mov rdi, r12
call typed_array_is_oob
test eax, eax
jz short loc_81D1A
lea rsi, aArraybufferIsD_0; "ArrayBuffer is detached or resized"
xor r14d, r14d
mov rdi, r15
xor eax, eax
call JS_ThrowTypeError
jmp loc_81DE3
loc_81D1A:
mov [rsp+98h+var_70], r15
mov [rsp+98h+var_68], 0
mov [rsp+98h+var_60], r14
mov [rsp+98h+var_58], rbx
movdqu xmm0, xmmword ptr [rbp+0]
movdqu [rsp+98h+var_50], xmm0
mov rdx, qword ptr [rsp+98h+var_50+8]
cmp edx, 3
jz short loc_81D5B
mov rsi, qword ptr [rsp+98h+var_50]
mov rdi, r15
call check_function
test eax, eax
jnz loc_81DE0
loc_81D5B:
movsxd rbp, dword ptr [r12+40h]
cmp rbp, 2
jl loc_81F58
movzx eax, word ptr [r12+6]
add eax, 0FFFFFFEBh
cmp ax, 0Ch
jnb def_81FE2; jumptable 0000000000081FE2 default case, cases 3,5-7
movzx eax, ax
shl eax, 3
lea rcx, off_CCB30
mov rcx, [rax+rcx]
mov [rsp+98h+var_40], rcx
movzx ecx, word ptr [r12+6]
lea rdx, typed_array_size_log2
mov cl, [rcx+rdx-15h]
lea rdx, off_CCB90
mov esi, 1
shl esi, cl
mov rcx, [rax+rdx]
movsxd rdx, esi
cmp dword ptr [rsp+98h+var_50+8], 3
jnz short loc_81DFD
mov rdi, [r12+38h]
lea r15, [rsp+98h+var_70]
mov rsi, rbp
mov r8, r15
call rqsort
cmp dword ptr [r15+8], 0
jz loc_81F58
loc_81DE0:
xor r14d, r14d
loc_81DE3:
xor eax, eax
loc_81DE5:
or r14, rax
mov rax, r14
mov rdx, r13
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_81DFD:
mov [rsp+98h+var_88], rdx
mov [rsp+98h+var_80], rsi
lea rsi, ds:0[rbp*4]
mov rdi, r15
call js_malloc
test rax, rax
jz short loc_81DE0
cmp rbp, 1
mov rcx, rbp
adc rcx, 0
lea esi, [rcx+1]
and esi, 0FFFFFFFEh
dec rcx
movq xmm0, rcx
pshufd xmm0, xmm0, 44h ; 'D'
movdqa xmm1, cs:xmmword_9B8A0
xor ecx, ecx
movdqa xmm2, cs:xmmword_9B8B0
pxor xmm0, xmm2
pcmpeqd xmm3, xmm3
movdqa xmm4, cs:xmmword_9B8D0
loc_81E5C:
movdqa xmm5, xmm1
pxor xmm5, xmm2
movdqa xmm6, xmm5
pcmpgtd xmm6, xmm0
pcmpeqd xmm5, xmm0
pshufd xmm7, xmm5, 0F5h
pand xmm7, xmm6
pshufd xmm5, xmm6, 0F5h
por xmm5, xmm7
movd edx, xmm5
not edx
test dl, 1
jz short loc_81E90
mov [rax+rcx*4], ecx
loc_81E90:
pxor xmm5, xmm3
pextrw edx, xmm5, 4
test dl, 1
jz short loc_81EA5
lea edx, [rcx+1]
mov [rax+rcx*4+4], edx
loc_81EA5:
add rcx, 2
paddq xmm1, xmm4
cmp rsi, rcx
jnz short loc_81E5C
lea r8, [rsp+98h+var_70]
mov rcx, [rsp+98h+var_80]
mov [r8+38h], ecx
lea rcx, js_TA_cmp_generic
mov edx, 4
mov rdi, rax
mov [rsp+98h+var_98], rax
mov rsi, rbp
call rqsort
lea rax, [rsp+98h+var_70]
cmp dword ptr [rax+8], 0
jz short loc_81F16
loc_81EE6:
mov rbx, [r15+18h]
dec qword ptr [rbx+28h]
mov r14, [rsp+98h+var_98]
mov rdi, r14
call qword ptr [rbx+20h]
mov rcx, [rbx+30h]
mov rdi, [rbx+40h]
sub rcx, rax
add rcx, 0FFFFFFFFFFFFFFF8h
mov [rbx+30h], rcx
mov rsi, r14
call qword ptr [rbx+10h]
jmp loc_81DE0
loc_81F16:
mov rdi, r12
call typed_array_is_oob
test eax, eax
jnz short loc_81F2B
mov eax, [r12+40h]
test eax, eax
jnz short loc_81F81
loc_81F2B:
mov r15, [r15+18h]
dec qword ptr [r15+28h]
mov r12, [rsp+98h+var_98]
mov rdi, r12
call qword ptr [r15+20h]
mov rcx, [r15+30h]
mov rdi, [r15+40h]
sub rcx, rax
add rcx, 0FFFFFFFFFFFFFFF8h
mov [r15+30h], rcx
mov rsi, r12
call qword ptr [r15+10h]
loc_81F58:
mov [rsp+98h+var_78], r14
cmp ebx, 0FFFFFFF7h
jb short loc_81F69
mov rax, [rsp+98h+var_78]
inc dword ptr [rax]
loc_81F69:
mov rax, 0FFFFFFFF00000000h
and rax, r14
mov r14d, r14d
mov r13, rbx
jmp loc_81DE5
loc_81F81:
cmp ebp, eax
cmovl eax, ebp
movsxd rbp, eax
mov rsi, [rsp+98h+var_88]
imul rsi, rbp
mov rdi, r15
mov [rsp+98h+var_88], rsi
call js_malloc
mov [rsp+98h+var_90], rax
test rax, rax
jz loc_81EE6
mov rsi, [r12+38h]
mov rdi, [rsp+98h+var_90]
mov rdx, [rsp+98h+var_88]
call _memcpy
mov rax, [rsp+98h+var_80]
dec eax; switch 8 cases
cmp eax, 7
ja def_81FE2; jumptable 0000000000081FE2 default case, cases 3,5-7
mov rcx, rax
lea rax, jpt_81FE2
movsxd rcx, ds:(jpt_81FE2 - 9D7ACh)[rax+rcx*4]
add rcx, rax
jmp rcx; switch jump
loc_81FE4:
cmp rbp, 1; jumptable 0000000000081FE2 case 1
adc rbp, 0
xor eax, eax
mov rsi, [rsp+98h+var_98]
mov r13, [rsp+98h+var_90]
loc_81FF7:
mov ecx, [rsi+rax*4]
mov cl, [r13+rcx+0]
mov rdx, [r12+38h]
mov [rdx+rax], cl
inc rax
cmp rbp, rax
jnz short loc_81FF7
jmp loc_8209C
loc_82014:
cmp rbp, 1; jumptable 0000000000081FE2 case 4
adc rbp, 0
xor eax, eax
mov rsi, [rsp+98h+var_98]
mov r13, [rsp+98h+var_90]
loc_82027:
mov ecx, [rsi+rax*4]
mov ecx, [r13+rcx*4+0]
mov rdx, [r12+38h]
mov [rdx+rax*4], ecx
inc rax
cmp rbp, rax
jnz short loc_82027
jmp short loc_8209C
loc_82041:
cmp rbp, 1; jumptable 0000000000081FE2 case 8
adc rbp, 0
xor eax, eax
mov rsi, [rsp+98h+var_98]
mov r13, [rsp+98h+var_90]
loc_82054:
mov ecx, [rsi+rax*4]
mov rcx, [r13+rcx*8+0]
mov rdx, [r12+38h]
mov [rdx+rax*8], rcx
inc rax
cmp rbp, rax
jnz short loc_82054
jmp short loc_8209C
loc_8206F:
cmp rbp, 1; jumptable 0000000000081FE2 case 2
adc rbp, 0
xor eax, eax
mov rsi, [rsp+98h+var_98]
mov r13, [rsp+98h+var_90]
loc_82082:
mov ecx, [rsi+rax*4]
movzx ecx, word ptr [r13+rcx*2+0]
mov rdx, [r12+38h]
mov [rdx+rax*2], cx
inc rax
cmp rbp, rax
jnz short loc_82082
loc_8209C:
mov r12, [r15+18h]
dec qword ptr [r12+28h]
mov rdi, r13
call qword ptr [r12+20h]
mov rcx, [r12+30h]
mov rdi, [r12+40h]
sub rcx, rax
add rcx, 0FFFFFFFFFFFFFFF8h
mov [r12+30h], rcx
mov rsi, r13
call qword ptr [r12+10h]
jmp loc_81F2B
def_81FE2:
call _abort; jumptable 0000000000081FE2 default case, cases 3,5-7
|
unsigned long long js_typed_array_sort(
long long a1,
_DWORD *a2,
long long a3,
long long a4,
const __m128i *a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
unsigned long long v16; // r14
long long v18; // r12
const char *v19; // rdi
long long v20; // rdx
long long v21; // rcx
long long v22; // r8
long long v23; // r9
__m128 v24; // xmm4
__m128 v25; // xmm5
__m128 v26; // xmm0
signed long long v27; // rbp
long long v28; // rax
int v29; // esi
unsigned long long v30; // rax
long long v32; // rax
signed long long v33; // rcx
long long v34; // rsi
__m128i v35; // xmm0
__m128i si128; // xmm1
long long v37; // rcx
__m128i v38; // xmm2
__m128i v39; // xmm0
__m128i v40; // xmm4
__m128i v41; // xmm5
__m128i v42; // xmm6
__m128i v43; // xmm5
long long v44; // rbx
long long v45; // rax
long long v46; // rdi
int v47; // eax
long long v48; // r15
long long v49; // rax
long long v50; // rdi
long long v51; // rbp
long long v52; // rbp
long long v53; // rax
long long v54; // r13
long long v55; // rbp
long long v56; // rax
long long v57; // rbp
long long v58; // rax
long long v59; // rbp
long long v60; // rax
long long v61; // r12
long long v62; // rax
long long v63; // rdi
char v64; // [rsp+0h] [rbp-98h]
long long v65; // [rsp+0h] [rbp-98h]
long long v66; // [rsp+8h] [rbp-90h]
long long v67; // [rsp+10h] [rbp-88h]
long long v68; // [rsp+10h] [rbp-88h]
int v69; // [rsp+18h] [rbp-80h]
long long v70; // [rsp+28h] [rbp-70h] BYREF
int v71; // [rsp+30h] [rbp-68h]
_DWORD *v72; // [rsp+38h] [rbp-60h]
long long v73; // [rsp+40h] [rbp-58h]
__m128 v74; // [rsp+48h] [rbp-50h]
long long ( *v75)(); // [rsp+58h] [rbp-40h]
int v76; // [rsp+60h] [rbp-38h]
v16 = (unsigned long long)a2;
v70 = (long long)a2;
if ( (_DWORD)a3 != -1 || (v18 = v70, (unsigned __int16)(*(_WORD *)(v70 + 6) - 21) >= 0xCu) )
{
v18 = 0LL;
JS_ThrowTypeError(
a1,
(long long)"not a TypedArray",
a3,
a4,
(long long)a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
v64);
}
if ( !v18 )
goto LABEL_13;
v19 = (const char *)v18;
if ( typed_array_is_oob(v18) )
{
v16 = 0LL;
JS_ThrowTypeError(
a1,
(long long)"ArrayBuffer is detached or resized",
v20,
v21,
v22,
v23,
a7,
a8,
a9,
a10,
v24,
v25,
a13,
a14,
v64);
LABEL_14:
v30 = 0LL;
return v30 | v16;
}
v70 = a1;
v71 = 0;
v72 = a2;
v73 = a3;
v26 = (__m128)_mm_loadu_si128(a5);
v74 = v26;
if ( v26.m128_i32[2] != 3 )
{
v19 = (const char *)a1;
if ( (unsigned int)check_function(
a1,
v74.m128_i64[0],
v26.m128_i32[2],
v26,
a8,
a9,
a10,
*(double *)v24.m128_u64,
*(double *)v25.m128_u64,
a13,
a14) )
{
LABEL_13:
v16 = 0LL;
goto LABEL_14;
}
}
v27 = *(int *)(v18 + 64);
if ( v27 >= 2 )
{
if ( (unsigned __int16)(*(_WORD *)(v18 + 6) - 21) >= 0xCu )
LABEL_47:
abort(v19);
v28 = (unsigned __int16)(*(_WORD *)(v18 + 6) - 21);
v75 = off_CCB30[v28];
v29 = 1 << typed_array_size_log2[*(unsigned __int16 *)(v18 + 6) - 21];
if ( v74.m128_i32[2] != 3 )
{
v67 = v29;
v69 = 1 << typed_array_size_log2[*(unsigned __int16 *)(v18 + 6) - 21];
v32 = js_malloc(a1, 4 * v27);
if ( !v32 )
goto LABEL_13;
v33 = (v27 == 0) + v27;
v34 = ((_DWORD)v33 + 1) & 0xFFFFFFFE;
v35 = _mm_shuffle_epi32((__m128i)(unsigned long long)(v33 - 1), 68);
si128 = _mm_load_si128((const __m128i *)&xmmword_9B8A0);
v37 = 0LL;
v38 = _mm_load_si128((const __m128i *)&xmmword_9B8B0);
v39 = _mm_xor_si128(v35, v38);
v40 = _mm_load_si128((const __m128i *)&xmmword_9B8D0);
do
{
v41 = _mm_xor_si128(si128, v38);
v42 = _mm_cmpgt_epi32(v41, v39);
v43 = _mm_or_si128(
_mm_shuffle_epi32(v42, 245),
_mm_and_si128(_mm_shuffle_epi32(_mm_cmpeq_epi32(v41, v39), 245), v42));
if ( (~_mm_cvtsi128_si32(v43) & 1) != 0 )
*(_DWORD *)(v32 + 4 * v37) = v37;
if ( (_mm_extract_epi16(_mm_xor_si128(v43, (__m128i)-1LL), 4) & 1) != 0 )
*(_DWORD *)(v32 + 4 * v37 + 4) = v37 + 1;
v37 += 2LL;
si128 = _mm_add_epi64(si128, v40);
}
while ( v34 != v37 );
v76 = v69;
v65 = v32;
rqsort(
v32,
v27,
4LL,
(long long ( *)(unsigned long long, unsigned long long, long long))js_TA_cmp_generic,
(long long)&v70);
if ( !v71 )
{
if ( typed_array_is_oob(v18) || (v47 = *(_DWORD *)(v18 + 64)) == 0 )
{
LABEL_27:
v48 = *(_QWORD *)(a1 + 24);
--*(_QWORD *)(v48 + 40);
v49 = (*(long long ( **)(long long, double, double, double, double))(v48 + 32))(
v65,
*(double *)v39.m128i_i64,
*(double *)si128.m128i_i64,
*(double *)v38.m128i_i64,
NAN);
v50 = *(_QWORD *)(v48 + 64);
*(_QWORD *)(v48 + 48) = *(_QWORD *)(v48 + 48) - v49 - 8;
(*(void ( **)(long long, long long))(v48 + 16))(v50, v65);
goto LABEL_28;
}
if ( (int)v27 < v47 )
v47 = v27;
v51 = v47;
v68 = v47 * v67;
v66 = js_malloc(a1, v68);
if ( v66 )
{
v19 = (const char *)v66;
memcpy(v66, *(_QWORD *)(v18 + 56), v68);
switch ( v69 )
{
case 1:
v52 = (v51 == 0) + v51;
v53 = 0LL;
v54 = v66;
do
{
*(_BYTE *)(*(_QWORD *)(v18 + 56) + v53) = *(_BYTE *)(v66 + *(unsigned int *)(v65 + 4 * v53));
++v53;
}
while ( v52 != v53 );
goto LABEL_46;
case 2:
v59 = (v51 == 0) + v51;
v60 = 0LL;
v54 = v66;
do
{
*(_WORD *)(*(_QWORD *)(v18 + 56) + 2 * v60) = *(_WORD *)(v66 + 2LL * *(unsigned int *)(v65 + 4 * v60));
++v60;
}
while ( v59 != v60 );
goto LABEL_46;
case 4:
v55 = (v51 == 0) + v51;
v56 = 0LL;
v54 = v66;
do
{
*(_DWORD *)(*(_QWORD *)(v18 + 56) + 4 * v56) = *(_DWORD *)(v66 + 4LL * *(unsigned int *)(v65 + 4 * v56));
++v56;
}
while ( v55 != v56 );
goto LABEL_46;
case 8:
v57 = (v51 == 0) + v51;
v58 = 0LL;
v54 = v66;
do
{
*(_QWORD *)(*(_QWORD *)(v18 + 56) + 8 * v58) = *(_QWORD *)(v66 + 8LL * *(unsigned int *)(v65 + 4 * v58));
++v58;
}
while ( v57 != v58 );
LABEL_46:
v61 = *(_QWORD *)(a1 + 24);
--*(_QWORD *)(v61 + 40);
v62 = (*(long long ( **)(long long, double, double, double, double))(v61 + 32))(
v54,
*(double *)v39.m128i_i64,
*(double *)si128.m128i_i64,
*(double *)v38.m128i_i64,
NAN);
v63 = *(_QWORD *)(v61 + 64);
*(_QWORD *)(v61 + 48) = *(_QWORD *)(v61 + 48) - v62 - 8;
(*(void ( **)(long long, long long))(v61 + 16))(v63, v54);
goto LABEL_27;
default:
goto LABEL_47;
}
}
}
v44 = *(_QWORD *)(a1 + 24);
--*(_QWORD *)(v44 + 40);
v45 = (*(long long ( **)(long long, double, double, double, double))(v44 + 32))(
v65,
*(double *)v39.m128i_i64,
*(double *)si128.m128i_i64,
*(double *)v38.m128i_i64,
NAN);
v46 = *(_QWORD *)(v44 + 64);
*(_QWORD *)(v44 + 48) = *(_QWORD *)(v44 + 48) - v45 - 8;
(*(void ( **)(long long, long long))(v44 + 16))(v46, v65);
goto LABEL_13;
}
rqsort(
*(_QWORD *)(v18 + 56),
v27,
v29,
(long long ( *)(unsigned long long, unsigned long long, long long))off_CCB90[v28],
(long long)&v70);
if ( v71 )
goto LABEL_13;
}
LABEL_28:
if ( (unsigned int)a3 >= 0xFFFFFFF7 )
++*(_DWORD *)v16;
v30 = v16 & 0xFFFFFFFF00000000LL;
v16 = (unsigned int)v16;
return v30 | v16;
}
|
js_typed_array_sort:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV RBP,R8
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOV qword ptr [RSP + 0x28],RSI
CMP EBX,-0x1
JNZ 0x00181cd2
MOV R12,qword ptr [RSP + 0x28]
MOVZX EAX,word ptr [R12 + 0x6]
ADD EAX,-0x15
CMP AX,0xc
JC 0x00181ce6
LAB_00181cd2:
LEA RSI,[0x1a2411]
XOR R12D,R12D
MOV RDI,R15
XOR EAX,EAX
CALL 0x00122567
LAB_00181ce6:
MOV R13D,0x6
TEST R12,R12
JZ 0x00181de0
MOV RDI,R12
CALL 0x001396c4
TEST EAX,EAX
JZ 0x00181d1a
LEA RSI,[0x1a2422]
XOR R14D,R14D
MOV RDI,R15
XOR EAX,EAX
CALL 0x00122567
JMP 0x00181de3
LAB_00181d1a:
MOV qword ptr [RSP + 0x28],R15
MOV dword ptr [RSP + 0x30],0x0
MOV qword ptr [RSP + 0x38],R14
MOV qword ptr [RSP + 0x40],RBX
MOVDQU XMM0,xmmword ptr [RBP]
MOVDQU xmmword ptr [RSP + 0x48],XMM0
MOV RDX,qword ptr [RSP + 0x50]
CMP EDX,0x3
JZ 0x00181d5b
MOV RSI,qword ptr [RSP + 0x48]
MOV RDI,R15
CALL 0x001415b1
TEST EAX,EAX
JNZ 0x00181de0
LAB_00181d5b:
MOVSXD RBP,dword ptr [R12 + 0x40]
CMP RBP,0x2
JL 0x00181f58
MOVZX EAX,word ptr [R12 + 0x6]
ADD EAX,-0x15
CMP AX,0xc
JNC 0x001820d0
MOVZX EAX,AX
SHL EAX,0x3
LEA RCX,[0x1ccb30]
MOV RCX,qword ptr [RAX + RCX*0x1]
MOV qword ptr [RSP + 0x58],RCX
MOVZX ECX,word ptr [R12 + 0x6]
LEA RDX,[0x19d8df]
MOV CL,byte ptr [RCX + RDX*0x1 + -0x15]
LEA RDX,[0x1ccb90]
MOV ESI,0x1
SHL ESI,CL
MOV RCX,qword ptr [RAX + RDX*0x1]
MOVSXD RDX,ESI
CMP dword ptr [RSP + 0x50],0x3
JNZ 0x00181dfd
MOV RDI,qword ptr [R12 + 0x38]
LEA R15,[RSP + 0x28]
MOV RSI,RBP
MOV R8,R15
CALL 0x0011c031
CMP dword ptr [R15 + 0x8],0x0
JZ 0x00181f58
LAB_00181de0:
XOR R14D,R14D
LAB_00181de3:
XOR EAX,EAX
LAB_00181de5:
OR R14,RAX
MOV RAX,R14
MOV RDX,R13
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00181dfd:
MOV qword ptr [RSP + 0x10],RDX
MOV qword ptr [RSP + 0x18],RSI
LEA RSI,[RBP*0x4]
MOV RDI,R15
CALL 0x0010ede6
TEST RAX,RAX
JZ 0x00181de0
CMP RBP,0x1
MOV RCX,RBP
ADC RCX,0x0
LEA ESI,[RCX + 0x1]
AND ESI,0xfffffffe
DEC RCX
MOVQ XMM0,RCX
PSHUFD XMM0,XMM0,0x44
MOVDQA XMM1,xmmword ptr [0x0019b8a0]
XOR ECX,ECX
MOVDQA XMM2,xmmword ptr [0x0019b8b0]
PXOR XMM0,XMM2
PCMPEQD XMM3,XMM3
MOVDQA XMM4,xmmword ptr [0x0019b8d0]
LAB_00181e5c:
MOVDQA XMM5,XMM1
PXOR XMM5,XMM2
MOVDQA XMM6,XMM5
PCMPGTD XMM6,XMM0
PCMPEQD XMM5,XMM0
PSHUFD XMM7,XMM5,0xf5
PAND XMM7,XMM6
PSHUFD XMM5,XMM6,0xf5
POR XMM5,XMM7
MOVD EDX,XMM5
NOT EDX
TEST DL,0x1
JZ 0x00181e90
MOV dword ptr [RAX + RCX*0x4],ECX
LAB_00181e90:
PXOR XMM5,XMM3
PEXTRW EDX,XMM5,0x4
TEST DL,0x1
JZ 0x00181ea5
LEA EDX,[RCX + 0x1]
MOV dword ptr [RAX + RCX*0x4 + 0x4],EDX
LAB_00181ea5:
ADD RCX,0x2
PADDQ XMM1,XMM4
CMP RSI,RCX
JNZ 0x00181e5c
LEA R8,[RSP + 0x28]
MOV RCX,qword ptr [RSP + 0x18]
MOV dword ptr [R8 + 0x38],ECX
LEA RCX,[0x182fda]
MOV EDX,0x4
MOV RDI,RAX
MOV qword ptr [RSP],RAX
MOV RSI,RBP
CALL 0x0011c031
LEA RAX,[RSP + 0x28]
CMP dword ptr [RAX + 0x8],0x0
JZ 0x00181f16
LAB_00181ee6:
MOV RBX,qword ptr [R15 + 0x18]
DEC qword ptr [RBX + 0x28]
MOV R14,qword ptr [RSP]
MOV RDI,R14
CALL qword ptr [RBX + 0x20]
MOV RCX,qword ptr [RBX + 0x30]
MOV RDI,qword ptr [RBX + 0x40]
SUB RCX,RAX
ADD RCX,-0x8
MOV qword ptr [RBX + 0x30],RCX
MOV RSI,R14
CALL qword ptr [RBX + 0x10]
JMP 0x00181de0
LAB_00181f16:
MOV RDI,R12
CALL 0x001396c4
TEST EAX,EAX
JNZ 0x00181f2b
MOV EAX,dword ptr [R12 + 0x40]
TEST EAX,EAX
JNZ 0x00181f81
LAB_00181f2b:
MOV R15,qword ptr [R15 + 0x18]
DEC qword ptr [R15 + 0x28]
MOV R12,qword ptr [RSP]
MOV RDI,R12
CALL qword ptr [R15 + 0x20]
MOV RCX,qword ptr [R15 + 0x30]
MOV RDI,qword ptr [R15 + 0x40]
SUB RCX,RAX
ADD RCX,-0x8
MOV qword ptr [R15 + 0x30],RCX
MOV RSI,R12
CALL qword ptr [R15 + 0x10]
LAB_00181f58:
MOV qword ptr [RSP + 0x20],R14
CMP EBX,-0x9
JC 0x00181f69
MOV RAX,qword ptr [RSP + 0x20]
INC dword ptr [RAX]
LAB_00181f69:
MOV RAX,-0x100000000
AND RAX,R14
MOV R14D,R14D
MOV R13,RBX
JMP 0x00181de5
LAB_00181f81:
CMP EBP,EAX
CMOVL EAX,EBP
MOVSXD RBP,EAX
MOV RSI,qword ptr [RSP + 0x10]
IMUL RSI,RBP
MOV RDI,R15
MOV qword ptr [RSP + 0x10],RSI
CALL 0x0010ede6
MOV qword ptr [RSP + 0x8],RAX
TEST RAX,RAX
JZ 0x00181ee6
MOV RSI,qword ptr [R12 + 0x38]
MOV RDI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
CALL 0x0010e5b0
MOV RAX,qword ptr [RSP + 0x18]
DEC EAX
CMP EAX,0x7
JA 0x001820d0
MOV RCX,RAX
LEA RAX,[0x19d7ac]
MOVSXD RCX,dword ptr [RAX + RCX*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_1:
CMP RBP,0x1
ADC RBP,0x0
XOR EAX,EAX
MOV RSI,qword ptr [RSP]
MOV R13,qword ptr [RSP + 0x8]
LAB_00181ff7:
MOV ECX,dword ptr [RSI + RAX*0x4]
MOV CL,byte ptr [R13 + RCX*0x1]
MOV RDX,qword ptr [R12 + 0x38]
MOV byte ptr [RDX + RAX*0x1],CL
INC RAX
CMP RBP,RAX
JNZ 0x00181ff7
JMP 0x0018209c
caseD_4:
CMP RBP,0x1
ADC RBP,0x0
XOR EAX,EAX
MOV RSI,qword ptr [RSP]
MOV R13,qword ptr [RSP + 0x8]
LAB_00182027:
MOV ECX,dword ptr [RSI + RAX*0x4]
MOV ECX,dword ptr [R13 + RCX*0x4]
MOV RDX,qword ptr [R12 + 0x38]
MOV dword ptr [RDX + RAX*0x4],ECX
INC RAX
CMP RBP,RAX
JNZ 0x00182027
JMP 0x0018209c
caseD_8:
CMP RBP,0x1
ADC RBP,0x0
XOR EAX,EAX
MOV RSI,qword ptr [RSP]
MOV R13,qword ptr [RSP + 0x8]
LAB_00182054:
MOV ECX,dword ptr [RSI + RAX*0x4]
MOV RCX,qword ptr [R13 + RCX*0x8]
MOV RDX,qword ptr [R12 + 0x38]
MOV qword ptr [RDX + RAX*0x8],RCX
INC RAX
CMP RBP,RAX
JNZ 0x00182054
JMP 0x0018209c
caseD_2:
CMP RBP,0x1
ADC RBP,0x0
XOR EAX,EAX
MOV RSI,qword ptr [RSP]
MOV R13,qword ptr [RSP + 0x8]
LAB_00182082:
MOV ECX,dword ptr [RSI + RAX*0x4]
MOVZX ECX,word ptr [R13 + RCX*0x2]
MOV RDX,qword ptr [R12 + 0x38]
MOV word ptr [RDX + RAX*0x2],CX
INC RAX
CMP RBP,RAX
JNZ 0x00182082
LAB_0018209c:
MOV R12,qword ptr [R15 + 0x18]
DEC qword ptr [R12 + 0x28]
MOV RDI,R13
CALL qword ptr [R12 + 0x20]
MOV RCX,qword ptr [R12 + 0x30]
MOV RDI,qword ptr [R12 + 0x40]
SUB RCX,RAX
ADD RCX,-0x8
MOV qword ptr [R12 + 0x30],RCX
MOV RSI,R13
CALL qword ptr [R12 + 0x10]
JMP 0x00181f2b
caseD_3:
CALL 0x0010e090
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
int1 [16]
js_typed_array_sort(int *param_1,int *param_2,int8 param_3,int8 param_4,
int8 *param_5)
{
bool bVar1;
long lVar2;
long lVar3;
ushort uVar4;
int iVar5;
int iVar6;
long lVar7;
ulong uVar8;
void *__dest;
long lVar9;
long lVar10;
long lVar11;
long lVar12;
int iVar13;
int *piVar14;
ulong uVar15;
int1 auVar16 [16];
int1 auVar17 [16];
int iVar18;
int1 auVar19 [16];
int *local_70;
int local_68;
int *local_60;
int8 local_58;
int8 local_50;
int8 uStack_48;
int *local_40;
int local_38;
local_70 = param_2;
if (((uint)param_3 != 0xffffffff) ||
(piVar14 = param_2, 0xb < (ushort)(*(short *)((long)param_2 + 6) - 0x15U))) {
piVar14 = (int *)0x0;
JS_ThrowTypeError(param_1,"not a TypedArray");
}
if (piVar14 != (int *)0x0) {
iVar5 = typed_array_is_oob(piVar14);
if (iVar5 == 0) {
local_68 = 0;
local_50 = *param_5;
uStack_48 = param_5[1];
local_70 = param_1;
local_60 = param_2;
local_58 = param_3;
if (((int)uStack_48 == 3) || (iVar5 = check_function(param_1,local_50), iVar5 == 0)) {
iVar5 = piVar14[0x10];
lVar12 = (long)iVar5;
if (lVar12 < 2) {
LAB_00181f58:
if (0xfffffff6 < (uint)param_3) {
*param_2 = *param_2 + 1;
}
uVar8 = (ulong)param_2 & 0xffffffff00000000;
uVar15 = (ulong)param_2 & 0xffffffff;
goto LAB_00181de5;
}
uVar4 = *(short *)((long)piVar14 + 6) - 0x15;
if (0xb < uVar4) {
switchD_00181fe2_caseD_3:
/* WARNING: Subroutine does not return */
abort();
}
local_40 = (&PTR_js_TA_get_uint8_001ccb30)[uVar4];
iVar13 = 1 << ("toSorted"[(ulong)*(ushort *)((long)piVar14 + 6) + 6] & 0x1fU);
lVar11 = (long)iVar13;
if ((int)uStack_48 == 3) {
rqsort(*(int8 *)(piVar14 + 0xe),lVar12,lVar11,(&PTR_js_TA_cmp_uint8_001ccb90)[uVar4]
,&local_70);
if (local_68 == 0) goto LAB_00181f58;
}
else {
lVar7 = js_malloc(param_1,lVar12 * 4,lVar11,(&PTR_js_TA_cmp_uint8_001ccb90)[uVar4]);
lVar3 = _UNK_0019b8d8;
lVar2 = _DAT_0019b8d0;
auVar19 = _DAT_0019b8b0;
if (lVar7 != 0) {
lVar9 = lVar12 + (ulong)(lVar12 == 0);
lVar10 = lVar9 + -1;
auVar16._8_4_ = (int)lVar10;
auVar16._0_8_ = lVar10;
auVar16._12_4_ = (int)((ulong)lVar10 >> 0x20);
uVar8 = 0;
auVar16 = auVar16 ^ _DAT_0019b8b0;
auVar17 = _DAT_0019b8a0;
do {
bVar1 = auVar16._0_4_ < SUB164(auVar17 ^ auVar19,0);
iVar6 = auVar16._4_4_;
iVar18 = SUB164(auVar17 ^ auVar19,4);
if ((bool)(~(iVar6 < iVar18 || iVar18 == iVar6 && bVar1) & 1)) {
*(int *)(lVar7 + uVar8 * 4) = (int)uVar8;
}
if (iVar6 >= iVar18 && (iVar18 != iVar6 || !bVar1)) {
*(int *)(lVar7 + 4 + uVar8 * 4) = (int)uVar8 + 1;
}
uVar8 = uVar8 + 2;
lVar10 = auVar17._8_8_;
auVar17._0_8_ = auVar17._0_8_ + lVar2;
auVar17._8_8_ = lVar10 + lVar3;
} while (((int)lVar9 + 1U & 0xfffffffe) != uVar8);
local_38 = iVar13;
rqsort(lVar7,lVar12,4,js_TA_cmp_generic);
if (local_68 == 0) {
iVar6 = typed_array_is_oob(piVar14);
if ((iVar6 == 0) && (iVar6 = piVar14[0x10], iVar6 != 0)) {
if (iVar5 < iVar6) {
iVar6 = iVar5;
}
lVar12 = (long)iVar6;
__dest = (void *)js_malloc(param_1);
if (__dest == (void *)0x0) goto LAB_00181ee6;
memcpy(__dest,*(void **)(piVar14 + 0xe),lVar11 * lVar12);
switch(iVar13) {
case 1:
lVar11 = 0;
do {
*(int1 *)(*(long *)(piVar14 + 0xe) + lVar11) =
*(int1 *)((long)__dest + (ulong)*(uint *)(lVar7 + lVar11 * 4));
lVar11 = lVar11 + 1;
} while (lVar12 + (ulong)(lVar12 == 0) != lVar11);
break;
case 2:
lVar11 = 0;
do {
*(int2 *)(*(long *)(piVar14 + 0xe) + lVar11 * 2) =
*(int2 *)((long)__dest + (ulong)*(uint *)(lVar7 + lVar11 * 4) * 2);
lVar11 = lVar11 + 1;
} while (lVar12 + (ulong)(lVar12 == 0) != lVar11);
break;
default:
goto switchD_00181fe2_caseD_3;
case 4:
lVar11 = 0;
do {
*(int4 *)(*(long *)(piVar14 + 0xe) + lVar11 * 4) =
*(int4 *)((long)__dest + (ulong)*(uint *)(lVar7 + lVar11 * 4) * 4);
lVar11 = lVar11 + 1;
} while (lVar12 + (ulong)(lVar12 == 0) != lVar11);
break;
case 8:
lVar11 = 0;
do {
*(int8 *)(*(long *)(piVar14 + 0xe) + lVar11 * 8) =
*(int8 *)((long)__dest + (ulong)*(uint *)(lVar7 + lVar11 * 4) * 8);
lVar11 = lVar11 + 1;
} while (lVar12 + (ulong)(lVar12 == 0) != lVar11);
}
lVar12 = *(long *)(param_1 + 6);
*(long *)(lVar12 + 0x28) = *(long *)(lVar12 + 0x28) + -1;
lVar11 = (**(code **)(lVar12 + 0x20))(__dest);
*(long *)(lVar12 + 0x30) = (*(long *)(lVar12 + 0x30) - lVar11) + -8;
(**(code **)(lVar12 + 0x10))(*(int8 *)(lVar12 + 0x40),__dest);
}
lVar12 = *(long *)(param_1 + 6);
*(long *)(lVar12 + 0x28) = *(long *)(lVar12 + 0x28) + -1;
lVar11 = (**(code **)(lVar12 + 0x20))(lVar7);
*(long *)(lVar12 + 0x30) = (*(long *)(lVar12 + 0x30) - lVar11) + -8;
(**(code **)(lVar12 + 0x10))(*(int8 *)(lVar12 + 0x40),lVar7);
goto LAB_00181f58;
}
LAB_00181ee6:
lVar12 = *(long *)(param_1 + 6);
*(long *)(lVar12 + 0x28) = *(long *)(lVar12 + 0x28) + -1;
lVar11 = (**(code **)(lVar12 + 0x20))(lVar7);
*(long *)(lVar12 + 0x30) = (*(long *)(lVar12 + 0x30) - lVar11) + -8;
(**(code **)(lVar12 + 0x10))(*(int8 *)(lVar12 + 0x40),lVar7);
}
}
}
}
else {
JS_ThrowTypeError(param_1,"ArrayBuffer is detached or resized");
}
}
uVar15 = 0;
uVar8 = 0;
param_3 = 6;
LAB_00181de5:
auVar19._8_8_ = param_3;
auVar19._0_8_ = uVar15 | uVar8;
return auVar19;
}
|
|
65,047 |
js_typed_array_sort
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_typed_array_sort(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSObject *p;
int len;
size_t elt_size;
struct TA_sort_context tsc;
int (*cmpfun)(const void *a, const void *b, void *opaque);
p = get_typed_array(ctx, this_val);
if (!p)
return JS_EXCEPTION;
if (typed_array_is_oob(p))
return JS_ThrowTypeErrorArrayBufferOOB(ctx);
tsc.ctx = ctx;
tsc.exception = 0;
tsc.arr = this_val;
tsc.cmp = argv[0];
if (!JS_IsUndefined(tsc.cmp) && check_function(ctx, tsc.cmp))
return JS_EXCEPTION;
len = p->u.array.count;
if (len > 1) {
switch (p->class_id) {
case JS_CLASS_INT8_ARRAY:
tsc.getfun = js_TA_get_int8;
cmpfun = js_TA_cmp_int8;
break;
case JS_CLASS_UINT8C_ARRAY:
case JS_CLASS_UINT8_ARRAY:
tsc.getfun = js_TA_get_uint8;
cmpfun = js_TA_cmp_uint8;
break;
case JS_CLASS_INT16_ARRAY:
tsc.getfun = js_TA_get_int16;
cmpfun = js_TA_cmp_int16;
break;
case JS_CLASS_UINT16_ARRAY:
tsc.getfun = js_TA_get_uint16;
cmpfun = js_TA_cmp_uint16;
break;
case JS_CLASS_INT32_ARRAY:
tsc.getfun = js_TA_get_int32;
cmpfun = js_TA_cmp_int32;
break;
case JS_CLASS_UINT32_ARRAY:
tsc.getfun = js_TA_get_uint32;
cmpfun = js_TA_cmp_uint32;
break;
case JS_CLASS_BIG_INT64_ARRAY:
tsc.getfun = js_TA_get_int64;
cmpfun = js_TA_cmp_int64;
break;
case JS_CLASS_BIG_UINT64_ARRAY:
tsc.getfun = js_TA_get_uint64;
cmpfun = js_TA_cmp_uint64;
break;
case JS_CLASS_FLOAT16_ARRAY:
tsc.getfun = js_TA_get_float16;
cmpfun = js_TA_cmp_float16;
break;
case JS_CLASS_FLOAT32_ARRAY:
tsc.getfun = js_TA_get_float32;
cmpfun = js_TA_cmp_float32;
break;
case JS_CLASS_FLOAT64_ARRAY:
tsc.getfun = js_TA_get_float64;
cmpfun = js_TA_cmp_float64;
break;
default:
abort();
}
elt_size = 1 << typed_array_size_log2(p->class_id);
if (!JS_IsUndefined(tsc.cmp)) {
uint32_t *array_idx;
void *array_tmp;
size_t i, j;
/* XXX: a stable sort would use less memory */
array_idx = js_malloc(ctx, len * sizeof(array_idx[0]));
if (!array_idx)
return JS_EXCEPTION;
for(i = 0; i < len; i++)
array_idx[i] = i;
tsc.elt_size = elt_size;
rqsort(array_idx, len, sizeof(array_idx[0]),
js_TA_cmp_generic, &tsc);
if (tsc.exception)
goto fail;
// per spec: typed array can be detached mid-iteration
if (typed_array_is_oob(p))
goto done;
len = min_int(len, p->u.array.count);
if (len == 0)
goto done;
array_tmp = js_malloc(ctx, len * elt_size);
if (!array_tmp) {
fail:
js_free(ctx, array_idx);
return JS_EXCEPTION;
}
memcpy(array_tmp, p->u.array.u.ptr, len * elt_size);
switch(elt_size) {
case 1:
for(i = 0; i < len; i++) {
j = array_idx[i];
p->u.array.u.uint8_ptr[i] = ((uint8_t *)array_tmp)[j];
}
break;
case 2:
for(i = 0; i < len; i++) {
j = array_idx[i];
p->u.array.u.uint16_ptr[i] = ((uint16_t *)array_tmp)[j];
}
break;
case 4:
for(i = 0; i < len; i++) {
j = array_idx[i];
p->u.array.u.uint32_ptr[i] = ((uint32_t *)array_tmp)[j];
}
break;
case 8:
for(i = 0; i < len; i++) {
j = array_idx[i];
p->u.array.u.uint64_ptr[i] = ((uint64_t *)array_tmp)[j];
}
break;
default:
abort();
}
js_free(ctx, array_tmp);
done:
js_free(ctx, array_idx);
} else {
rqsort(p->u.array.u.ptr, len, elt_size, cmpfun, &tsc);
if (tsc.exception)
return JS_EXCEPTION;
}
}
return js_dup(this_val);
}
|
O2
|
c
|
js_typed_array_sort:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r8, %rbp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x3280b
pushq $0x6
popq %r13
testq %rax, %rax
je 0x6d208
movq %rax, %r12
movq %rax, %rdi
callq 0x32836
testl %eax, %eax
je 0x6d221
movq %r15, %rdi
callq 0x3289b
xorl %eax, %eax
xorl %ecx, %ecx
orq %rcx, %rax
movq %r13, %rdx
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, 0x28(%rsp)
andl $0x0, 0x30(%rsp)
movq %r14, 0x38(%rsp)
movq %rbx, 0x40(%rsp)
movups (%rbp), %xmm0
movups %xmm0, 0x48(%rsp)
movq 0x50(%rsp), %rdx
movl %edx, %edi
cmpq $0x3, %rdi
je 0x6d262
movq 0x48(%rsp), %rsi
movq %rdi, %rbp
movq %r15, %rdi
callq 0x3949a
movq %rbp, %rdi
testl %eax, %eax
jne 0x6d208
movslq 0x40(%r12), %rbp
cmpq $0x2, %rbp
jl 0x6d372
movzwl 0x6(%r12), %eax
leal -0x15(%rax), %ecx
cmpw $0xc, %cx
jae 0x6d4a4
movzwl %cx, %edx
leaq 0x175f1(%rip), %rcx # 0x8487f
movb -0x15(%rax,%rcx), %cl
pushq $0x1
popq %rsi
shll %cl, %esi
shll $0x3, %edx
leaq 0x4d88f(%rip), %rax # 0xbab30
movq (%rdx,%rax), %rax
leaq 0x4d8e4(%rip), %rcx # 0xbab90
movq (%rdx,%rcx), %rcx
movq %rax, 0x58(%rsp)
movslq %esi, %rdx
cmpl $0x3, %edi
jne 0x6d2e2
movq 0x38(%r12), %rdi
leaq 0x28(%rsp), %r15
movq %rbp, %rsi
movq %r15, %r8
callq 0x1683c
cmpl $0x0, 0x8(%r15)
jne 0x6d208
jmp 0x6d372
movq %rdx, 0x18(%rsp)
movq %rsi, 0x20(%rsp)
leaq (,%rbp,4), %rsi
movq %r15, %rdi
callq 0x17214
testq %rax, %rax
je 0x6d208
movq %rax, %rdi
xorl %eax, %eax
movq 0x20(%rsp), %rcx
cmpq %rax, %rbp
je 0x6d31c
movl %eax, (%rdi,%rax,4)
incq %rax
jmp 0x6d30f
leaq 0x28(%rsp), %r8
movl %ecx, 0x38(%r8)
leaq 0xc0c(%rip), %rcx # 0x6df38
pushq $0x4
popq %rdx
movq %rdi, 0x8(%rsp)
movq %rbp, %rsi
callq 0x1683c
movq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rax
cmpl $0x0, 0x8(%rax)
je 0x6d359
movq %r15, %rdi
callq 0x1726e
jmp 0x6d208
movq %r12, %rdi
callq 0x32836
testl %eax, %eax
je 0x6d392
movq %r15, %rdi
movq 0x8(%rsp), %rsi
callq 0x1726e
cmpl $-0x9, %ebx
jb 0x6d37a
incl (%r14)
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %r14, %rcx
movl %r14d, %eax
movq %rbx, %r13
jmp 0x6d20c
movl 0x40(%r12), %eax
testl %eax, %eax
je 0x6d365
cmpl %eax, %ebp
cmovll %ebp, %eax
movslq %eax, %rbp
movq 0x18(%rsp), %rsi
imulq %rbp, %rsi
movq %r15, %rdi
movq %rsi, 0x18(%rsp)
callq 0x17214
testq %rax, %rax
movq 0x8(%rsp), %rsi
movq 0x20(%rsp), %rcx
je 0x6d34c
movq 0x38(%r12), %rsi
movq %rax, 0x10(%rsp)
movq %rax, %rdi
movq 0x18(%rsp), %rdx
movq %rcx, %r13
callq 0xe5c0
decl %r13d
cmpl $0x7, %r13d
ja 0x6d4a4
leaq 0x1734e(%rip), %rax # 0x84744
movslq (%rax,%r13,4), %rcx
addq %rax, %rcx
jmpq *%rcx
xorl %eax, %eax
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
cmpq %rax, %rbp
je 0x6d497
movl (%rdi,%rax,4), %ecx
movb (%rsi,%rcx), %cl
movq 0x38(%r12), %rdx
movb %cl, (%rdx,%rax)
incq %rax
jmp 0x6d40b
xorl %eax, %eax
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
cmpq %rax, %rbp
je 0x6d497
movl (%rdi,%rax,4), %ecx
movl (%rsi,%rcx,4), %ecx
movq 0x38(%r12), %rdx
movl %ecx, (%rdx,%rax,4)
incq %rax
jmp 0x6d433
xorl %eax, %eax
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
cmpq %rax, %rbp
je 0x6d497
movl (%rdi,%rax,4), %ecx
movq (%rsi,%rcx,8), %rcx
movq 0x38(%r12), %rdx
movq %rcx, (%rdx,%rax,8)
incq %rax
jmp 0x6d457
xorl %eax, %eax
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
cmpq %rax, %rbp
je 0x6d497
movl (%rdi,%rax,4), %ecx
movzwl (%rsi,%rcx,2), %ecx
movq 0x38(%r12), %rdx
movw %cx, (%rdx,%rax,2)
incq %rax
jmp 0x6d47d
movq %r15, %rdi
callq 0x1726e
jmp 0x6d365
callq 0xe090
|
js_typed_array_sort:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov rbp, r8
mov rbx, rdx
mov r14, rsi
mov r15, rdi
call get_typed_array
push 6
pop r13
test rax, rax
jz short loc_6D208
mov r12, rax
mov rdi, rax
call typed_array_is_oob
test eax, eax
jz short loc_6D221
mov rdi, r15
call JS_ThrowTypeErrorArrayBufferOOB
loc_6D208:
xor eax, eax
xor ecx, ecx
loc_6D20C:
or rax, rcx
mov rdx, r13
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_6D221:
mov [rsp+98h+var_70], r15
and [rsp+98h+var_68], 0
mov [rsp+98h+var_60], r14
mov [rsp+98h+var_58], rbx
movups xmm0, xmmword ptr [rbp+0]
movups [rsp+98h+var_50], xmm0
mov rdx, qword ptr [rsp+98h+var_50+8]
mov edi, edx
cmp rdi, 3
jz short loc_6D262
mov rsi, qword ptr [rsp+98h+var_50]
mov rbp, rdi
mov rdi, r15
call check_function
mov rdi, rbp
test eax, eax
jnz short loc_6D208
loc_6D262:
movsxd rbp, dword ptr [r12+40h]
cmp rbp, 2
jl loc_6D372
movzx eax, word ptr [r12+6]
lea ecx, [rax-15h]
cmp cx, 0Ch
jnb def_6D3FD; jumptable 000000000006D3FD default case, cases 3,5-7
movzx edx, cx
lea rcx, typed_array_size_log2
mov cl, [rax+rcx-15h]
push 1
pop rsi
shl esi, cl
shl edx, 3
lea rax, off_BAB30
mov rax, [rdx+rax]
lea rcx, off_BAB90
mov rcx, [rdx+rcx]
mov [rsp+98h+var_40], rax
movsxd rdx, esi
cmp edi, 3
jnz short loc_6D2E2
mov rdi, [r12+38h]
lea r15, [rsp+98h+var_70]
mov rsi, rbp
mov r8, r15
call rqsort
cmp dword ptr [r15+8], 0
jnz loc_6D208
jmp loc_6D372
loc_6D2E2:
mov [rsp+98h+var_80], rdx
mov [rsp+98h+var_78], rsi
lea rsi, ds:0[rbp*4]
mov rdi, r15
call js_malloc
test rax, rax
jz loc_6D208
mov rdi, rax
xor eax, eax
mov rcx, [rsp+98h+var_78]
loc_6D30F:
cmp rbp, rax
jz short loc_6D31C
mov [rdi+rax*4], eax
inc rax
jmp short loc_6D30F
loc_6D31C:
lea r8, [rsp+98h+var_70]
mov [r8+38h], ecx
lea rcx, js_TA_cmp_generic
push 4
pop rdx
mov [rsp+98h+var_90], rdi
mov rsi, rbp
call rqsort
mov rsi, [rsp+98h+var_90]
lea rax, [rsp+98h+var_70]
cmp dword ptr [rax+8], 0
jz short loc_6D359
loc_6D34C:
mov rdi, r15
call js_free
jmp loc_6D208
loc_6D359:
mov rdi, r12
call typed_array_is_oob
test eax, eax
jz short loc_6D392
loc_6D365:
mov rdi, r15
mov rsi, [rsp+98h+var_90]
call js_free
loc_6D372:
cmp ebx, 0FFFFFFF7h
jb short loc_6D37A
inc dword ptr [r14]
loc_6D37A:
mov rcx, 0FFFFFFFF00000000h
and rcx, r14
mov eax, r14d
mov r13, rbx
jmp loc_6D20C
loc_6D392:
mov eax, [r12+40h]
test eax, eax
jz short loc_6D365
cmp ebp, eax
cmovl eax, ebp
movsxd rbp, eax
mov rsi, [rsp+98h+var_80]
imul rsi, rbp
mov rdi, r15
mov [rsp+98h+var_80], rsi
call js_malloc
test rax, rax
mov rsi, [rsp+98h+var_90]
mov rcx, [rsp+98h+var_78]
jz short loc_6D34C
mov rsi, [r12+38h]
mov [rsp+98h+var_88], rax
mov rdi, rax
mov rdx, [rsp+98h+var_80]
mov r13, rcx
call _memcpy
dec r13d; switch 8 cases
cmp r13d, 7
ja def_6D3FD; jumptable 000000000006D3FD default case, cases 3,5-7
lea rax, jpt_6D3FD
movsxd rcx, ds:(jpt_6D3FD - 84744h)[rax+r13*4]
add rcx, rax
jmp rcx; switch jump
loc_6D3FF:
xor eax, eax; jumptable 000000000006D3FD case 1
mov rdi, [rsp+98h+var_90]
mov rsi, [rsp+98h+var_88]
loc_6D40B:
cmp rbp, rax
jz loc_6D497
mov ecx, [rdi+rax*4]
mov cl, [rsi+rcx]
mov rdx, [r12+38h]
mov [rdx+rax], cl
inc rax
jmp short loc_6D40B
loc_6D427:
xor eax, eax; jumptable 000000000006D3FD case 4
mov rdi, [rsp+98h+var_90]
mov rsi, [rsp+98h+var_88]
loc_6D433:
cmp rbp, rax
jz short loc_6D497
mov ecx, [rdi+rax*4]
mov ecx, [rsi+rcx*4]
mov rdx, [r12+38h]
mov [rdx+rax*4], ecx
inc rax
jmp short loc_6D433
loc_6D44B:
xor eax, eax; jumptable 000000000006D3FD case 8
mov rdi, [rsp+98h+var_90]
mov rsi, [rsp+98h+var_88]
loc_6D457:
cmp rbp, rax
jz short loc_6D497
mov ecx, [rdi+rax*4]
mov rcx, [rsi+rcx*8]
mov rdx, [r12+38h]
mov [rdx+rax*8], rcx
inc rax
jmp short loc_6D457
loc_6D471:
xor eax, eax; jumptable 000000000006D3FD case 2
mov rdi, [rsp+98h+var_90]
mov rsi, [rsp+98h+var_88]
loc_6D47D:
cmp rbp, rax
jz short loc_6D497
mov ecx, [rdi+rax*4]
movzx ecx, word ptr [rsi+rcx*2]
mov rdx, [r12+38h]
mov [rdx+rax*2], cx
inc rax
jmp short loc_6D47D
loc_6D497:
mov rdi, r15
call js_free
jmp loc_6D365
def_6D3FD:
call _abort; jumptable 000000000006D3FD default case, cases 3,5-7
|
unsigned long long js_typed_array_sort(
long long a1,
long long a2,
long long a3,
long long a4,
__m128 *a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
long long typed_array; // rax
long long v19; // r12
long long v20; // rdx
long long v21; // rcx
long long v22; // r8
long long v23; // r9
__m128 v24; // xmm4
__m128 v25; // xmm5
long long v26; // rax
unsigned long long v27; // rcx
__m128 v29; // xmm0
const char *v30; // rdi
signed long long v31; // rbp
long long v32; // rax
int v33; // esi
long long v34; // rdx
long long ( *v35)(unsigned long long, unsigned long long, long long); // rcx
long long v36; // rax
long long v37; // rdi
long long i; // rax
long long v39; // rsi
int v40; // eax
long long v41; // rbp
long long v42; // rax
long long v43; // rax
long long v44; // rsi
long long v45; // rax
long long v46; // rax
long long v47; // rax
char v48; // [rsp+0h] [rbp-98h]
long long v49; // [rsp+8h] [rbp-90h]
long long v50; // [rsp+10h] [rbp-88h]
long long v51; // [rsp+18h] [rbp-80h]
long long v52; // [rsp+18h] [rbp-80h]
int v53; // [rsp+20h] [rbp-78h]
long long v54; // [rsp+28h] [rbp-70h] BYREF
int v55; // [rsp+30h] [rbp-68h]
long long v56; // [rsp+38h] [rbp-60h]
long long v57; // [rsp+40h] [rbp-58h]
__m128 v58; // [rsp+48h] [rbp-50h]
long long ( *v59)(); // [rsp+58h] [rbp-40h]
int v60; // [rsp+60h] [rbp-38h]
typed_array = get_typed_array(a1, a2, a3, a4, (long long)a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
if ( !typed_array )
goto LABEL_4;
v19 = typed_array;
if ( typed_array_is_oob(typed_array) )
{
JS_ThrowTypeErrorArrayBufferOOB(a1, a7, a8, a9, a10, v24, v25, a13, a14, a2, v20, v21, v22, v23, v48);
LABEL_4:
v26 = 0LL;
v27 = 0LL;
return v27 | v26;
}
v54 = a1;
v55 = 0;
v56 = a2;
v57 = a3;
v29 = *a5;
v58 = *a5;
v30 = (const char *)v58.m128_u32[2];
if ( v58.m128_u32[2] != 3LL )
{
v30 = (const char *)v58.m128_u32[2];
if ( (unsigned int)check_function(
a1,
v58.m128_i64[0],
v58.m128_i32[2],
v29,
a8,
a9,
a10,
*(double *)v24.m128_u64,
*(double *)v25.m128_u64,
a13,
a14) )
goto LABEL_4;
}
v31 = *(int *)(v19 + 64);
if ( v31 >= 2 )
{
v32 = *(unsigned __int16 *)(v19 + 6);
if ( (unsigned __int16)(v32 - 21) >= 0xCu )
LABEL_42:
abort(v30);
v33 = 1 << typed_array_size_log2[v32 - 21];
v34 = (unsigned __int16)(v32 - 21);
v35 = (long long ( *)(unsigned long long, unsigned long long, long long))off_BAB90[v34];
v59 = off_BAB30[v34];
if ( (_DWORD)v30 != 3 )
{
v51 = v33;
v53 = v33;
v36 = js_malloc(a1, 4 * v31);
if ( !v36 )
goto LABEL_4;
v37 = v36;
for ( i = 0LL; v31 != i; ++i )
*(_DWORD *)(v37 + 4 * i) = i;
v60 = v33;
v49 = v37;
rqsort(
v37,
v31,
4LL,
(long long ( *)(unsigned long long, unsigned long long, long long))js_TA_cmp_generic,
(long long)&v54);
v39 = v37;
if ( !v55 )
{
if ( typed_array_is_oob(v19) || (v40 = *(_DWORD *)(v19 + 64)) == 0 )
{
LABEL_20:
js_free(a1, v49);
goto LABEL_21;
}
if ( (int)v31 < v40 )
v40 = v31;
v41 = v40;
v52 = v40 * v51;
v42 = js_malloc(a1, v52);
v39 = v37;
if ( v42 )
{
v50 = v42;
v30 = (const char *)v42;
memcpy(v42, *(_QWORD *)(v19 + 56), v52);
switch ( v53 )
{
case 1:
v43 = 0LL;
v44 = v50;
while ( v41 != v43 )
{
*(_BYTE *)(*(_QWORD *)(v19 + 56) + v43) = *(_BYTE *)(v50 + *(unsigned int *)(v49 + 4 * v43));
++v43;
}
goto LABEL_41;
case 2:
v47 = 0LL;
v44 = v50;
while ( v41 != v47 )
{
*(_WORD *)(*(_QWORD *)(v19 + 56) + 2 * v47) = *(_WORD *)(v50 + 2LL * *(unsigned int *)(v49 + 4 * v47));
++v47;
}
goto LABEL_41;
case 4:
v45 = 0LL;
v44 = v50;
while ( v41 != v45 )
{
*(_DWORD *)(*(_QWORD *)(v19 + 56) + 4 * v45) = *(_DWORD *)(v50 + 4LL * *(unsigned int *)(v49 + 4 * v45));
++v45;
}
goto LABEL_41;
case 8:
v46 = 0LL;
v44 = v50;
while ( v41 != v46 )
{
*(_QWORD *)(*(_QWORD *)(v19 + 56) + 8 * v46) = *(_QWORD *)(v50 + 8LL * *(unsigned int *)(v49 + 4 * v46));
++v46;
}
LABEL_41:
js_free(a1, v44);
goto LABEL_20;
default:
goto LABEL_42;
}
}
}
js_free(a1, v39);
goto LABEL_4;
}
rqsort(*(_QWORD *)(v19 + 56), v31, v33, v35, (long long)&v54);
if ( v55 )
goto LABEL_4;
}
LABEL_21:
if ( (unsigned int)a3 >= 0xFFFFFFF7 )
++*(_DWORD *)a2;
v27 = a2 & 0xFFFFFFFF00000000LL;
v26 = (unsigned int)a2;
return v27 | v26;
}
|
js_typed_array_sort:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV RBP,R8
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
CALL 0x0013280b
PUSH 0x6
POP R13
TEST RAX,RAX
JZ 0x0016d208
MOV R12,RAX
MOV RDI,RAX
CALL 0x00132836
TEST EAX,EAX
JZ 0x0016d221
MOV RDI,R15
CALL 0x0013289b
LAB_0016d208:
XOR EAX,EAX
XOR ECX,ECX
LAB_0016d20c:
OR RAX,RCX
MOV RDX,R13
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0016d221:
MOV qword ptr [RSP + 0x28],R15
AND dword ptr [RSP + 0x30],0x0
MOV qword ptr [RSP + 0x38],R14
MOV qword ptr [RSP + 0x40],RBX
MOVUPS XMM0,xmmword ptr [RBP]
MOVUPS xmmword ptr [RSP + 0x48],XMM0
MOV RDX,qword ptr [RSP + 0x50]
MOV EDI,EDX
CMP RDI,0x3
JZ 0x0016d262
MOV RSI,qword ptr [RSP + 0x48]
MOV RBP,RDI
MOV RDI,R15
CALL 0x0013949a
MOV RDI,RBP
TEST EAX,EAX
JNZ 0x0016d208
LAB_0016d262:
MOVSXD RBP,dword ptr [R12 + 0x40]
CMP RBP,0x2
JL 0x0016d372
MOVZX EAX,word ptr [R12 + 0x6]
LEA ECX,[RAX + -0x15]
CMP CX,0xc
JNC 0x0016d4a4
MOVZX EDX,CX
LEA RCX,[0x18487f]
MOV CL,byte ptr [RAX + RCX*0x1 + -0x15]
PUSH 0x1
POP RSI
SHL ESI,CL
SHL EDX,0x3
LEA RAX,[0x1bab30]
MOV RAX,qword ptr [RDX + RAX*0x1]
LEA RCX,[0x1bab90]
MOV RCX,qword ptr [RDX + RCX*0x1]
MOV qword ptr [RSP + 0x58],RAX
MOVSXD RDX,ESI
CMP EDI,0x3
JNZ 0x0016d2e2
MOV RDI,qword ptr [R12 + 0x38]
LEA R15,[RSP + 0x28]
MOV RSI,RBP
MOV R8,R15
CALL 0x0011683c
CMP dword ptr [R15 + 0x8],0x0
JNZ 0x0016d208
JMP 0x0016d372
LAB_0016d2e2:
MOV qword ptr [RSP + 0x18],RDX
MOV qword ptr [RSP + 0x20],RSI
LEA RSI,[RBP*0x4]
MOV RDI,R15
CALL 0x00117214
TEST RAX,RAX
JZ 0x0016d208
MOV RDI,RAX
XOR EAX,EAX
MOV RCX,qword ptr [RSP + 0x20]
LAB_0016d30f:
CMP RBP,RAX
JZ 0x0016d31c
MOV dword ptr [RDI + RAX*0x4],EAX
INC RAX
JMP 0x0016d30f
LAB_0016d31c:
LEA R8,[RSP + 0x28]
MOV dword ptr [R8 + 0x38],ECX
LEA RCX,[0x16df38]
PUSH 0x4
POP RDX
MOV qword ptr [RSP + 0x8],RDI
MOV RSI,RBP
CALL 0x0011683c
MOV RSI,qword ptr [RSP + 0x8]
LEA RAX,[RSP + 0x28]
CMP dword ptr [RAX + 0x8],0x0
JZ 0x0016d359
LAB_0016d34c:
MOV RDI,R15
CALL 0x0011726e
JMP 0x0016d208
LAB_0016d359:
MOV RDI,R12
CALL 0x00132836
TEST EAX,EAX
JZ 0x0016d392
LAB_0016d365:
MOV RDI,R15
MOV RSI,qword ptr [RSP + 0x8]
CALL 0x0011726e
LAB_0016d372:
CMP EBX,-0x9
JC 0x0016d37a
INC dword ptr [R14]
LAB_0016d37a:
MOV RCX,-0x100000000
AND RCX,R14
MOV EAX,R14D
MOV R13,RBX
JMP 0x0016d20c
LAB_0016d392:
MOV EAX,dword ptr [R12 + 0x40]
TEST EAX,EAX
JZ 0x0016d365
CMP EBP,EAX
CMOVL EAX,EBP
MOVSXD RBP,EAX
MOV RSI,qword ptr [RSP + 0x18]
IMUL RSI,RBP
MOV RDI,R15
MOV qword ptr [RSP + 0x18],RSI
CALL 0x00117214
TEST RAX,RAX
MOV RSI,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x20]
JZ 0x0016d34c
MOV RSI,qword ptr [R12 + 0x38]
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,RAX
MOV RDX,qword ptr [RSP + 0x18]
MOV R13,RCX
CALL 0x0010e5c0
DEC R13D
CMP R13D,0x7
JA 0x0016d4a4
LEA RAX,[0x184744]
MOVSXD RCX,dword ptr [RAX + R13*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_1:
XOR EAX,EAX
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x10]
LAB_0016d40b:
CMP RBP,RAX
JZ 0x0016d497
MOV ECX,dword ptr [RDI + RAX*0x4]
MOV CL,byte ptr [RSI + RCX*0x1]
MOV RDX,qword ptr [R12 + 0x38]
MOV byte ptr [RDX + RAX*0x1],CL
INC RAX
JMP 0x0016d40b
caseD_4:
XOR EAX,EAX
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x10]
LAB_0016d433:
CMP RBP,RAX
JZ 0x0016d497
MOV ECX,dword ptr [RDI + RAX*0x4]
MOV ECX,dword ptr [RSI + RCX*0x4]
MOV RDX,qword ptr [R12 + 0x38]
MOV dword ptr [RDX + RAX*0x4],ECX
INC RAX
JMP 0x0016d433
caseD_8:
XOR EAX,EAX
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x10]
LAB_0016d457:
CMP RBP,RAX
JZ 0x0016d497
MOV ECX,dword ptr [RDI + RAX*0x4]
MOV RCX,qword ptr [RSI + RCX*0x8]
MOV RDX,qword ptr [R12 + 0x38]
MOV qword ptr [RDX + RAX*0x8],RCX
INC RAX
JMP 0x0016d457
caseD_2:
XOR EAX,EAX
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x10]
LAB_0016d47d:
CMP RBP,RAX
JZ 0x0016d497
MOV ECX,dword ptr [RDI + RAX*0x4]
MOVZX ECX,word ptr [RSI + RCX*0x2]
MOV RDX,qword ptr [R12 + 0x38]
MOV word ptr [RDX + RAX*0x2],CX
INC RAX
JMP 0x0016d47d
LAB_0016d497:
MOV RDI,R15
CALL 0x0011726e
JMP 0x0016d365
caseD_3:
CALL 0x0010e090
|
int1 [16]
js_typed_array_sort(int8 param_1,int *param_2,int8 param_3,int8 param_4,
int8 *param_5)
{
int iVar1;
int iVar2;
long lVar3;
ulong uVar4;
long lVar5;
long lVar6;
void *__dest;
ushort uVar7;
ulong uVar8;
long lVar9;
long lVar10;
int iVar11;
int1 auVar12 [16];
int8 local_70;
int local_68;
int *local_60;
int8 local_58;
int4 local_50;
int4 uStack_4c;
int iStack_48;
int4 uStack_44;
int *local_40;
int local_38;
lVar3 = get_typed_array();
if (lVar3 != 0) {
iVar1 = typed_array_is_oob(lVar3);
if (iVar1 == 0) {
local_68 = 0;
local_50 = *(int4 *)param_5;
uStack_4c = *(int4 *)((long)param_5 + 4);
iVar1 = *(int *)(param_5 + 1);
uStack_44 = *(int4 *)((long)param_5 + 0xc);
local_70 = param_1;
local_60 = param_2;
local_58 = param_3;
iStack_48 = iVar1;
if ((iVar1 == 3) || (iVar2 = check_function(param_1,*param_5), iVar2 == 0)) {
iVar2 = *(int *)(lVar3 + 0x40);
lVar10 = (long)iVar2;
if (lVar10 < 2) {
LAB_0016d372:
if (0xfffffff6 < (uint)param_3) {
*param_2 = *param_2 + 1;
}
uVar8 = (ulong)param_2 & 0xffffffff00000000;
uVar4 = (ulong)param_2 & 0xffffffff;
goto LAB_0016d20c;
}
uVar7 = *(ushort *)(lVar3 + 6) - 0x15;
if (0xb < uVar7) {
switchD_0016d3fd_caseD_3:
/* WARNING: Subroutine does not return */
abort();
}
iVar11 = 1 << ("toSorted"[(ulong)*(ushort *)(lVar3 + 6) + 6] & 0x1fU);
local_40 = (&PTR_js_TA_get_uint8_001bab30)[uVar7];
lVar9 = (long)iVar11;
if (iVar1 == 3) {
rqsort(*(int8 *)(lVar3 + 0x38),lVar10,lVar9,(&PTR_js_TA_cmp_uint8_001bab90)[uVar7],
&local_70);
if (local_68 == 0) goto LAB_0016d372;
}
else {
lVar5 = js_malloc(param_1,lVar10 * 4,lVar9,(&PTR_js_TA_cmp_uint8_001bab90)[uVar7]);
if (lVar5 != 0) {
for (lVar6 = 0; lVar10 != lVar6; lVar6 = lVar6 + 1) {
*(int *)(lVar5 + lVar6 * 4) = (int)lVar6;
}
local_38 = iVar11;
rqsort(lVar5,lVar10,4,js_TA_cmp_generic);
if (local_68 == 0) {
iVar1 = typed_array_is_oob(lVar3,lVar5);
if ((iVar1 == 0) && (iVar1 = *(int *)(lVar3 + 0x40), iVar1 != 0)) {
if (iVar2 < iVar1) {
iVar1 = iVar2;
}
lVar10 = (long)iVar1;
__dest = (void *)js_malloc(param_1);
if (__dest == (void *)0x0) goto LAB_0016d34c;
memcpy(__dest,*(void **)(lVar3 + 0x38),lVar9 * lVar10);
switch(iVar11) {
case 1:
for (lVar9 = 0; lVar10 != lVar9; lVar9 = lVar9 + 1) {
*(int1 *)(*(long *)(lVar3 + 0x38) + lVar9) =
*(int1 *)((long)__dest + (ulong)*(uint *)(lVar5 + lVar9 * 4));
}
break;
case 2:
for (lVar9 = 0; lVar10 != lVar9; lVar9 = lVar9 + 1) {
*(int2 *)(*(long *)(lVar3 + 0x38) + lVar9 * 2) =
*(int2 *)((long)__dest + (ulong)*(uint *)(lVar5 + lVar9 * 4) * 2);
}
break;
default:
goto switchD_0016d3fd_caseD_3;
case 4:
for (lVar9 = 0; lVar10 != lVar9; lVar9 = lVar9 + 1) {
*(int4 *)(*(long *)(lVar3 + 0x38) + lVar9 * 4) =
*(int4 *)((long)__dest + (ulong)*(uint *)(lVar5 + lVar9 * 4) * 4);
}
break;
case 8:
for (lVar9 = 0; lVar10 != lVar9; lVar9 = lVar9 + 1) {
*(int8 *)(*(long *)(lVar3 + 0x38) + lVar9 * 8) =
*(int8 *)((long)__dest + (ulong)*(uint *)(lVar5 + lVar9 * 4) * 8);
}
}
js_free(param_1);
}
js_free(param_1,lVar5);
goto LAB_0016d372;
}
LAB_0016d34c:
js_free(param_1,lVar5);
}
}
}
}
else {
JS_ThrowTypeErrorArrayBufferOOB(param_1);
}
}
uVar4 = 0;
uVar8 = 0;
param_3 = 6;
LAB_0016d20c:
auVar12._0_8_ = uVar4 | uVar8;
auVar12._8_8_ = param_3;
return auVar12;
}
|
|
65,048 |
js_typed_array_sort
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_typed_array_sort(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSObject *p;
int len;
size_t elt_size;
struct TA_sort_context tsc;
int (*cmpfun)(const void *a, const void *b, void *opaque);
p = get_typed_array(ctx, this_val);
if (!p)
return JS_EXCEPTION;
if (typed_array_is_oob(p))
return JS_ThrowTypeErrorArrayBufferOOB(ctx);
tsc.ctx = ctx;
tsc.exception = 0;
tsc.arr = this_val;
tsc.cmp = argv[0];
if (!JS_IsUndefined(tsc.cmp) && check_function(ctx, tsc.cmp))
return JS_EXCEPTION;
len = p->u.array.count;
if (len > 1) {
switch (p->class_id) {
case JS_CLASS_INT8_ARRAY:
tsc.getfun = js_TA_get_int8;
cmpfun = js_TA_cmp_int8;
break;
case JS_CLASS_UINT8C_ARRAY:
case JS_CLASS_UINT8_ARRAY:
tsc.getfun = js_TA_get_uint8;
cmpfun = js_TA_cmp_uint8;
break;
case JS_CLASS_INT16_ARRAY:
tsc.getfun = js_TA_get_int16;
cmpfun = js_TA_cmp_int16;
break;
case JS_CLASS_UINT16_ARRAY:
tsc.getfun = js_TA_get_uint16;
cmpfun = js_TA_cmp_uint16;
break;
case JS_CLASS_INT32_ARRAY:
tsc.getfun = js_TA_get_int32;
cmpfun = js_TA_cmp_int32;
break;
case JS_CLASS_UINT32_ARRAY:
tsc.getfun = js_TA_get_uint32;
cmpfun = js_TA_cmp_uint32;
break;
case JS_CLASS_BIG_INT64_ARRAY:
tsc.getfun = js_TA_get_int64;
cmpfun = js_TA_cmp_int64;
break;
case JS_CLASS_BIG_UINT64_ARRAY:
tsc.getfun = js_TA_get_uint64;
cmpfun = js_TA_cmp_uint64;
break;
case JS_CLASS_FLOAT16_ARRAY:
tsc.getfun = js_TA_get_float16;
cmpfun = js_TA_cmp_float16;
break;
case JS_CLASS_FLOAT32_ARRAY:
tsc.getfun = js_TA_get_float32;
cmpfun = js_TA_cmp_float32;
break;
case JS_CLASS_FLOAT64_ARRAY:
tsc.getfun = js_TA_get_float64;
cmpfun = js_TA_cmp_float64;
break;
default:
abort();
}
elt_size = 1 << typed_array_size_log2(p->class_id);
if (!JS_IsUndefined(tsc.cmp)) {
uint32_t *array_idx;
void *array_tmp;
size_t i, j;
/* XXX: a stable sort would use less memory */
array_idx = js_malloc(ctx, len * sizeof(array_idx[0]));
if (!array_idx)
return JS_EXCEPTION;
for(i = 0; i < len; i++)
array_idx[i] = i;
tsc.elt_size = elt_size;
rqsort(array_idx, len, sizeof(array_idx[0]),
js_TA_cmp_generic, &tsc);
if (tsc.exception)
goto fail;
// per spec: typed array can be detached mid-iteration
if (typed_array_is_oob(p))
goto done;
len = min_int(len, p->u.array.count);
if (len == 0)
goto done;
array_tmp = js_malloc(ctx, len * elt_size);
if (!array_tmp) {
fail:
js_free(ctx, array_idx);
return JS_EXCEPTION;
}
memcpy(array_tmp, p->u.array.u.ptr, len * elt_size);
switch(elt_size) {
case 1:
for(i = 0; i < len; i++) {
j = array_idx[i];
p->u.array.u.uint8_ptr[i] = ((uint8_t *)array_tmp)[j];
}
break;
case 2:
for(i = 0; i < len; i++) {
j = array_idx[i];
p->u.array.u.uint16_ptr[i] = ((uint16_t *)array_tmp)[j];
}
break;
case 4:
for(i = 0; i < len; i++) {
j = array_idx[i];
p->u.array.u.uint32_ptr[i] = ((uint32_t *)array_tmp)[j];
}
break;
case 8:
for(i = 0; i < len; i++) {
j = array_idx[i];
p->u.array.u.uint64_ptr[i] = ((uint64_t *)array_tmp)[j];
}
break;
default:
abort();
}
js_free(ctx, array_tmp);
done:
js_free(ctx, array_idx);
} else {
rqsort(p->u.array.u.ptr, len, elt_size, cmpfun, &tsc);
if (tsc.exception)
return JS_EXCEPTION;
}
}
return js_dup(this_val);
}
|
O3
|
c
|
js_typed_array_sort:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %rbx
movq %rdi, %r15
cmpl $-0x1, %ebx
jne 0x847fb
movq %rsi, %r14
movzwl 0x6(%rsi), %eax
addl $-0x15, %eax
cmpw $0xc, %ax
jae 0x847fb
movq %r8, %r12
movq %r14, %rdi
callq 0x3aa19
testl %eax, %eax
je 0x8482e
leaq 0x20bd3(%rip), %rsi # 0xa53cc
jmp 0x84802
leaq 0x20bb9(%rip), %rsi # 0xa53bb
xorl %r14d, %r14d
movq %r15, %rdi
xorl %eax, %eax
callq 0x22d8b
movl $0x6, %ebx
xorl %eax, %eax
orq %rax, %r14
movq %r14, %rax
movq %rbx, %rdx
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, 0x18(%rsp)
movl $0x0, 0x20(%rsp)
movq %r14, 0x28(%rsp)
movq %rbx, 0x30(%rsp)
movdqu (%r12), %xmm0
movdqu %xmm0, 0x38(%rsp)
movq 0x40(%rsp), %rdx
movl %edx, %ebp
cmpq $0x3, %rbp
je 0x8486f
movq 0x38(%rsp), %rsi
movq %r15, %rdi
callq 0x42f63
testl %eax, %eax
jne 0x848eb
movslq 0x40(%r14), %r13
cmpq $0x2, %r13
jl 0x84a47
movzwl 0x6(%r14), %eax
leal -0x15(%rax), %ecx
cmpw $0xc, %cx
jae 0x84b92
movzwl %cx, %edx
leaq 0x1bfc6(%rip), %rcx # 0xa085f
movb -0x15(%rax,%rcx), %cl
movl $0x1, %r12d
shll %cl, %r12d
shll $0x3, %edx
leaq 0x4b280(%rip), %rax # 0xcfb30
movq (%rdx,%rax), %rax
leaq 0x4b2d5(%rip), %rcx # 0xcfb90
movq (%rdx,%rcx), %rcx
movq %rax, 0x48(%rsp)
movslq %r12d, %rdx
cmpl $0x3, %ebp
jne 0x848f8
movq 0x38(%r14), %rdi
leaq 0x18(%rsp), %r15
movq %r13, %rsi
movq %r15, %r8
callq 0x1c934
cmpl $0x0, 0x8(%r15)
je 0x84a47
movl $0x6, %ebx
xorl %r14d, %r14d
jmp 0x84814
movq %rdx, 0x10(%rsp)
leaq (,%r13,4), %rsi
movq %r15, %rdi
callq 0xee12
testq %rax, %rax
je 0x849fb
movq %rax, %rbp
leal 0x1(%r13), %eax
andl $-0x2, %eax
movq %r13, %rcx
decq %rcx
movq %rcx, %xmm0
pshufd $0x44, %xmm0, %xmm0 # xmm0 = xmm0[0,1,0,1]
movdqa 0x1cdf8(%rip), %xmm1 # 0xa1730
xorl %ecx, %ecx
movdqa 0x1cdfe(%rip), %xmm2 # 0xa1740
pxor %xmm2, %xmm0
pcmpeqd %xmm3, %xmm3
movdqa 0x1ce0e(%rip), %xmm4 # 0xa1760
movdqa %xmm1, %xmm5
pxor %xmm2, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm0, %xmm6
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7 # xmm7 = xmm5[1,1,3,3]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm5 # xmm5 = xmm6[1,1,3,3]
por %xmm7, %xmm5
movd %xmm5, %edx
notl %edx
testb $0x1, %dl
je 0x84987
movl %ecx, (%rbp,%rcx,4)
pxor %xmm3, %xmm5
pextrw $0x4, %xmm5, %edx
testb $0x1, %dl
je 0x8499c
leal 0x1(%rcx), %edx
movl %edx, 0x4(%rbp,%rcx,4)
addq $0x2, %rcx
paddq %xmm4, %xmm1
cmpq %rcx, %rax
jne 0x84952
leaq 0x18(%rsp), %r8
movl %r12d, 0x38(%r8)
leaq 0x1128(%rip), %rcx # 0x85ae1
movl $0x4, %edx
movq %rbp, %rdi
movq %r13, %rsi
callq 0x1c934
leaq 0x18(%rsp), %rax
cmpl $0x0, 0x8(%rax)
je 0x84a0a
movq 0x18(%r15), %rbx
decq 0x28(%rbx)
movq %rbp, %rdi
callq *0x20(%rbx)
movq 0x30(%rbx), %rcx
movq 0x40(%rbx), %rdi
subq %rax, %rcx
addq $-0x8, %rcx
movq %rcx, 0x30(%rbx)
movq %rbp, %rsi
callq *0x10(%rbx)
xorl %r14d, %r14d
xorl %eax, %eax
movl $0x6, %ebx
jmp 0x84816
movq %r14, %rdi
callq 0x3aa19
testl %eax, %eax
jne 0x84a1e
movl 0x40(%r14), %eax
testl %eax, %eax
jne 0x84a5f
movq 0x18(%r15), %r15
decq 0x28(%r15)
movq %rbp, %rdi
callq *0x20(%r15)
movq 0x30(%r15), %rcx
movq 0x40(%r15), %rdi
subq %rax, %rcx
addq $-0x8, %rcx
movq %rcx, 0x30(%r15)
movq %rbp, %rsi
callq *0x10(%r15)
incl (%r14)
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
andq %r14, %rax
movl %r14d, %r14d
jmp 0x84816
cmpl %eax, %r13d
cmovll %r13d, %eax
movslq %eax, %r13
movq 0x10(%rsp), %rsi
imulq %r13, %rsi
movq %r15, %rdi
movq %rsi, 0x10(%rsp)
callq 0xee12
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x849d4
movq 0x38(%r14), %rsi
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rdx
callq 0xe5b0
decl %r12d
cmpl $0x7, %r12d
ja 0x84b92
leaq 0x1bc74(%rip), %rax # 0xa0728
movslq (%rax,%r12,4), %rcx
addq %rax, %rcx
jmpq *%rcx
cmpq $0x1, %r13
adcq $0x0, %r13
xorl %eax, %eax
movq 0x8(%rsp), %rsi
movl (%rbp,%rax,4), %ecx
movb (%rsi,%rcx), %cl
movq 0x38(%r14), %rdx
movb %cl, (%rdx,%rax)
incq %rax
cmpq %rax, %r13
jne 0x84acc
jmp 0x84b5b
cmpq $0x1, %r13
adcq $0x0, %r13
xorl %eax, %eax
movq 0x8(%rsp), %rsi
movl (%rbp,%rax,4), %ecx
movl (%rsi,%rcx,4), %ecx
movq 0x38(%r14), %rdx
movl %ecx, (%rdx,%rax,4)
incq %rax
cmpq %rax, %r13
jne 0x84af3
jmp 0x84b5b
cmpq $0x1, %r13
adcq $0x0, %r13
xorl %eax, %eax
movq 0x8(%rsp), %rsi
movl (%rbp,%rax,4), %ecx
movq (%rsi,%rcx,8), %rcx
movq 0x38(%r14), %rdx
movq %rcx, (%rdx,%rax,8)
incq %rax
cmpq %rax, %r13
jne 0x84b1a
jmp 0x84b5b
cmpq $0x1, %r13
adcq $0x0, %r13
xorl %eax, %eax
movq 0x8(%rsp), %rsi
movl (%rbp,%rax,4), %ecx
movzwl (%rsi,%rcx,2), %ecx
movq 0x38(%r14), %rdx
movw %cx, (%rdx,%rax,2)
incq %rax
cmpq %rax, %r13
jne 0x84b43
movq 0x18(%r15), %r12
decq 0x28(%r12)
movq %rsi, %r13
movq %rsi, %rdi
callq *0x20(%r12)
movq 0x30(%r12), %rcx
movq 0x40(%r12), %rdi
subq %rax, %rcx
addq $-0x8, %rcx
movq %rcx, 0x30(%r12)
movq %r13, %rsi
callq *0x10(%r12)
jmp 0x84a1e
callq 0xe090
|
js_typed_array_sort:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov rbx, rdx
mov r15, rdi
cmp ebx, 0FFFFFFFFh
jnz short loc_847FB
mov r14, rsi
movzx eax, word ptr [rsi+6]
add eax, 0FFFFFFEBh
cmp ax, 0Ch
jnb short loc_847FB
mov r12, r8
mov rdi, r14
call typed_array_is_oob
test eax, eax
jz short loc_8482E
lea rsi, aArraybufferIsD_0; "ArrayBuffer is detached or resized"
jmp short loc_84802
loc_847FB:
lea rsi, aNotATypedarray; "not a TypedArray"
loc_84802:
xor r14d, r14d
mov rdi, r15
xor eax, eax
call JS_ThrowTypeError
mov ebx, 6
loc_84814:
xor eax, eax
loc_84816:
or r14, rax
mov rax, r14
mov rdx, rbx
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_8482E:
mov [rsp+88h+var_70], r15
mov [rsp+88h+var_68], 0
mov [rsp+88h+var_60], r14
mov [rsp+88h+var_58], rbx
movdqu xmm0, xmmword ptr [r12]
movdqu [rsp+88h+var_50], xmm0
mov rdx, qword ptr [rsp+88h+var_50+8]
mov ebp, edx
cmp rbp, 3
jz short loc_8486F
mov rsi, qword ptr [rsp+88h+var_50]
mov rdi, r15
call check_function
test eax, eax
jnz short loc_848EB
loc_8486F:
movsxd r13, dword ptr [r14+40h]
cmp r13, 2
jl loc_84A47
movzx eax, word ptr [r14+6]
lea ecx, [rax-15h]
cmp cx, 0Ch
jnb def_84ABB; jumptable 0000000000084ABB default case, cases 3,5-7
movzx edx, cx
lea rcx, typed_array_size_log2
mov cl, [rax+rcx-15h]
mov r12d, 1
shl r12d, cl
shl edx, 3
lea rax, off_CFB30
mov rax, [rdx+rax]
lea rcx, off_CFB90
mov rcx, [rdx+rcx]
mov [rsp+88h+var_40], rax
movsxd rdx, r12d
cmp ebp, 3
jnz short loc_848F8
mov rdi, [r14+38h]
lea r15, [rsp+88h+var_70]
mov rsi, r13
mov r8, r15
call rqsort
cmp dword ptr [r15+8], 0
jz loc_84A47
loc_848EB:
mov ebx, 6
xor r14d, r14d
jmp loc_84814
loc_848F8:
mov [rsp+88h+var_78], rdx
lea rsi, ds:0[r13*4]
mov rdi, r15
call js_malloc
test rax, rax
jz loc_849FB
mov rbp, rax
lea eax, [r13+1]
and eax, 0FFFFFFFEh
mov rcx, r13
dec rcx
movq xmm0, rcx
pshufd xmm0, xmm0, 44h ; 'D'
movdqa xmm1, cs:xmmword_A1730
xor ecx, ecx
movdqa xmm2, cs:xmmword_A1740
pxor xmm0, xmm2
pcmpeqd xmm3, xmm3
movdqa xmm4, cs:xmmword_A1760
loc_84952:
movdqa xmm5, xmm1
pxor xmm5, xmm2
movdqa xmm6, xmm5
pcmpgtd xmm6, xmm0
pcmpeqd xmm5, xmm0
pshufd xmm7, xmm5, 0F5h
pand xmm7, xmm6
pshufd xmm5, xmm6, 0F5h
por xmm5, xmm7
movd edx, xmm5
not edx
test dl, 1
jz short loc_84987
mov [rbp+rcx*4+0], ecx
loc_84987:
pxor xmm5, xmm3
pextrw edx, xmm5, 4
test dl, 1
jz short loc_8499C
lea edx, [rcx+1]
mov [rbp+rcx*4+4], edx
loc_8499C:
add rcx, 2
paddq xmm1, xmm4
cmp rax, rcx
jnz short loc_84952
lea r8, [rsp+88h+var_70]
mov [r8+38h], r12d
lea rcx, js_TA_cmp_generic
mov edx, 4
mov rdi, rbp
mov rsi, r13
call rqsort
lea rax, [rsp+88h+var_70]
cmp dword ptr [rax+8], 0
jz short loc_84A0A
loc_849D4:
mov rbx, [r15+18h]
dec qword ptr [rbx+28h]
mov rdi, rbp
call qword ptr [rbx+20h]
mov rcx, [rbx+30h]
mov rdi, [rbx+40h]
sub rcx, rax
add rcx, 0FFFFFFFFFFFFFFF8h
mov [rbx+30h], rcx
mov rsi, rbp
call qword ptr [rbx+10h]
loc_849FB:
xor r14d, r14d
xor eax, eax
mov ebx, 6
jmp loc_84816
loc_84A0A:
mov rdi, r14
call typed_array_is_oob
test eax, eax
jnz short loc_84A1E
mov eax, [r14+40h]
test eax, eax
jnz short loc_84A5F
loc_84A1E:
mov r15, [r15+18h]
dec qword ptr [r15+28h]
mov rdi, rbp
call qword ptr [r15+20h]
mov rcx, [r15+30h]
mov rdi, [r15+40h]
sub rcx, rax
add rcx, 0FFFFFFFFFFFFFFF8h
mov [r15+30h], rcx
mov rsi, rbp
call qword ptr [r15+10h]
loc_84A47:
inc dword ptr [r14]
mov rax, 0FFFFFFFF00000000h
and rax, r14
mov r14d, r14d
jmp loc_84816
loc_84A5F:
cmp r13d, eax
cmovl eax, r13d
movsxd r13, eax
mov rsi, [rsp+88h+var_78]
imul rsi, r13
mov rdi, r15
mov [rsp+88h+var_78], rsi
call js_malloc
mov [rsp+88h+var_80], rax
test rax, rax
jz loc_849D4
mov rsi, [r14+38h]
mov rdi, [rsp+88h+var_80]
mov rdx, [rsp+88h+var_78]
call _memcpy
dec r12d; switch 8 cases
cmp r12d, 7
ja def_84ABB; jumptable 0000000000084ABB default case, cases 3,5-7
lea rax, jpt_84ABB
movsxd rcx, ds:(jpt_84ABB - 0A0728h)[rax+r12*4]
add rcx, rax
jmp rcx; switch jump
loc_84ABD:
cmp r13, 1; jumptable 0000000000084ABB case 1
adc r13, 0
xor eax, eax
mov rsi, [rsp+88h+var_80]
loc_84ACC:
mov ecx, [rbp+rax*4+0]
mov cl, [rsi+rcx]
mov rdx, [r14+38h]
mov [rdx+rax], cl
inc rax
cmp r13, rax
jnz short loc_84ACC
jmp short loc_84B5B
loc_84AE4:
cmp r13, 1; jumptable 0000000000084ABB case 4
adc r13, 0
xor eax, eax
mov rsi, [rsp+88h+var_80]
loc_84AF3:
mov ecx, [rbp+rax*4+0]
mov ecx, [rsi+rcx*4]
mov rdx, [r14+38h]
mov [rdx+rax*4], ecx
inc rax
cmp r13, rax
jnz short loc_84AF3
jmp short loc_84B5B
loc_84B0B:
cmp r13, 1; jumptable 0000000000084ABB case 8
adc r13, 0
xor eax, eax
mov rsi, [rsp+88h+var_80]
loc_84B1A:
mov ecx, [rbp+rax*4+0]
mov rcx, [rsi+rcx*8]
mov rdx, [r14+38h]
mov [rdx+rax*8], rcx
inc rax
cmp r13, rax
jnz short loc_84B1A
jmp short loc_84B5B
loc_84B34:
cmp r13, 1; jumptable 0000000000084ABB case 2
adc r13, 0
xor eax, eax
mov rsi, [rsp+88h+var_80]
loc_84B43:
mov ecx, [rbp+rax*4+0]
movzx ecx, word ptr [rsi+rcx*2]
mov rdx, [r14+38h]
mov [rdx+rax*2], cx
inc rax
cmp r13, rax
jnz short loc_84B43
loc_84B5B:
mov r12, [r15+18h]
dec qword ptr [r12+28h]
mov r13, rsi
mov rdi, rsi
call qword ptr [r12+20h]
mov rcx, [r12+30h]
mov rdi, [r12+40h]
sub rcx, rax
add rcx, 0FFFFFFFFFFFFFFF8h
mov [r12+30h], rcx
mov rsi, r13
call qword ptr [r12+10h]
jmp loc_84A1E
def_84ABB:
call _abort; jumptable 0000000000084ABB default case, cases 3,5-7
|
unsigned long long js_typed_array_sort(
long long a1,
long long a2,
long long a3,
long long a4,
const __m128i *a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
long long v16; // r14
const char *v18; // rdi
const char *v19; // rsi
unsigned long long v20; // rax
__m128 v22; // xmm0
signed long long v23; // r13
long long v24; // rax
int v25; // r12d
long long v26; // rdx
long long ( *v27)(unsigned long long, unsigned long long, long long); // rcx
long long v28; // rax
long long v29; // rbp
__m128i si128; // xmm1
long long v31; // rcx
__m128i v32; // xmm2
__m128i v33; // xmm0
__m128i v34; // xmm4
__m128i v35; // xmm5
__m128i v36; // xmm6
__m128i v37; // xmm5
long long v38; // rbx
long long v39; // rax
long long v40; // rdi
int v41; // eax
long long v42; // r15
long long v43; // rax
long long v44; // rdi
long long v45; // r13
long long v46; // r13
long long v47; // rax
long long v48; // rsi
long long v49; // r13
long long v50; // rax
long long v51; // r13
long long v52; // rax
long long v53; // r13
long long v54; // rax
long long v55; // r12
long long v56; // rax
long long v57; // rdi
char v58; // [rsp+0h] [rbp-88h]
long long v59; // [rsp+8h] [rbp-80h]
long long v60; // [rsp+10h] [rbp-78h]
long long v61; // [rsp+18h] [rbp-70h] BYREF
int v62; // [rsp+20h] [rbp-68h]
long long v63; // [rsp+28h] [rbp-60h]
long long v64; // [rsp+30h] [rbp-58h]
__m128 v65; // [rsp+38h] [rbp-50h]
long long ( *v66)(); // [rsp+48h] [rbp-40h]
int v67; // [rsp+50h] [rbp-38h]
if ( (_DWORD)a3 != -1 || (v16 = a2, (unsigned __int16)(*(_WORD *)(a2 + 6) - 21) >= 0xCu) )
{
v19 = "not a TypedArray";
goto LABEL_6;
}
v18 = (const char *)a2;
if ( !typed_array_is_oob(a2) )
{
v61 = a1;
v62 = 0;
v63 = a2;
v64 = a3;
v22 = (__m128)_mm_loadu_si128(a5);
v65 = v22;
if ( v22.m128_u32[2] != 3LL )
{
v18 = (const char *)a1;
if ( (unsigned int)check_function(
a1,
v65.m128_i64[0],
v22.m128_i64[1],
a4,
(long long)a5,
a6,
v22,
a8,
a9,
a10,
a11,
a12,
a13,
a14) )
goto LABEL_15;
}
v23 = *(int *)(a2 + 64);
if ( v23 >= 2 )
{
v24 = *(unsigned __int16 *)(a2 + 6);
if ( (unsigned __int16)(v24 - 21) >= 0xCu )
LABEL_46:
abort(v18);
v25 = 1 << typed_array_size_log2[v24 - 21];
v26 = (unsigned __int16)(v24 - 21);
v27 = (long long ( *)(unsigned long long, unsigned long long, long long))off_CFB90[v26];
v66 = off_CFB30[v26];
if ( v22.m128_i32[2] != 3 )
{
v28 = js_malloc(a1, 4 * v23);
if ( v28 )
{
v29 = v28;
si128 = _mm_load_si128((const __m128i *)&xmmword_A1730);
v31 = 0LL;
v32 = _mm_load_si128((const __m128i *)&xmmword_A1740);
v33 = _mm_xor_si128(_mm_shuffle_epi32((__m128i)(unsigned long long)(v23 - 1), 68), v32);
v34 = _mm_load_si128((const __m128i *)&xmmword_A1760);
do
{
v35 = _mm_xor_si128(si128, v32);
v36 = _mm_cmpgt_epi32(v35, v33);
v37 = _mm_or_si128(
_mm_shuffle_epi32(v36, 245),
_mm_and_si128(_mm_shuffle_epi32(_mm_cmpeq_epi32(v35, v33), 245), v36));
if ( (~_mm_cvtsi128_si32(v37) & 1) != 0 )
*(_DWORD *)(v28 + 4 * v31) = v31;
if ( (_mm_extract_epi16(_mm_xor_si128(v37, (__m128i)-1LL), 4) & 1) != 0 )
*(_DWORD *)(v28 + 4 * v31 + 4) = v31 + 1;
v31 += 2LL;
si128 = _mm_add_epi64(si128, v34);
}
while ( (((_DWORD)v23 + 1) & 0xFFFFFFFE) != v31 );
v67 = v25;
rqsort(
v28,
v23,
4LL,
(long long ( *)(unsigned long long, unsigned long long, long long))js_TA_cmp_generic,
(long long)&v61);
if ( !v62 )
{
if ( typed_array_is_oob(a2) || (v41 = *(_DWORD *)(a2 + 64)) == 0 )
{
LABEL_28:
v42 = *(_QWORD *)(a1 + 24);
--*(_QWORD *)(v42 + 40);
v43 = (*(long long ( **)(long long, double, double, double, double))(v42 + 32))(
v29,
*(double *)v33.m128i_i64,
*(double *)si128.m128i_i64,
*(double *)v32.m128i_i64,
NAN);
v44 = *(_QWORD *)(v42 + 64);
*(_QWORD *)(v42 + 48) = *(_QWORD *)(v42 + 48) - v43 - 8;
(*(void ( **)(long long, long long))(v42 + 16))(v44, v29);
goto LABEL_29;
}
if ( (int)v23 < v41 )
v41 = v23;
v45 = v41;
v60 = v41 * (long long)v25;
v59 = js_malloc(a1, v60);
if ( v59 )
{
v18 = (const char *)v59;
memcpy(v59, *(_QWORD *)(a2 + 56), v60);
switch ( v25 )
{
case 1:
v46 = (v45 == 0) + v45;
v47 = 0LL;
v48 = v59;
do
{
*(_BYTE *)(*(_QWORD *)(v16 + 56) + v47) = *(_BYTE *)(v59 + *(unsigned int *)(v29 + 4 * v47));
++v47;
}
while ( v46 != v47 );
goto LABEL_45;
case 2:
v53 = (v45 == 0) + v45;
v54 = 0LL;
v48 = v59;
do
{
*(_WORD *)(*(_QWORD *)(v16 + 56) + 2 * v54) = *(_WORD *)(v59 + 2LL
* *(unsigned int *)(v29 + 4 * v54));
++v54;
}
while ( v53 != v54 );
goto LABEL_45;
case 4:
v49 = (v45 == 0) + v45;
v50 = 0LL;
v48 = v59;
do
{
*(_DWORD *)(*(_QWORD *)(v16 + 56) + 4 * v50) = *(_DWORD *)(v59
+ 4LL * *(unsigned int *)(v29 + 4 * v50));
++v50;
}
while ( v49 != v50 );
goto LABEL_45;
case 8:
v51 = (v45 == 0) + v45;
v52 = 0LL;
v48 = v59;
do
{
*(_QWORD *)(*(_QWORD *)(v16 + 56) + 8 * v52) = *(_QWORD *)(v59
+ 8LL * *(unsigned int *)(v29 + 4 * v52));
++v52;
}
while ( v51 != v52 );
LABEL_45:
v55 = *(_QWORD *)(a1 + 24);
--*(_QWORD *)(v55 + 40);
v56 = (*(long long ( **)(long long, double, double, double, double))(v55 + 32))(
v48,
*(double *)v33.m128i_i64,
*(double *)si128.m128i_i64,
*(double *)v32.m128i_i64,
NAN);
v57 = *(_QWORD *)(v55 + 64);
*(_QWORD *)(v55 + 48) = *(_QWORD *)(v55 + 48) - v56 - 8;
(*(void ( **)(long long, long long))(v55 + 16))(v57, v48);
goto LABEL_28;
default:
goto LABEL_46;
}
}
}
v38 = *(_QWORD *)(a1 + 24);
--*(_QWORD *)(v38 + 40);
v39 = (*(long long ( **)(long long, double, double, double, double))(v38 + 32))(
v29,
*(double *)v33.m128i_i64,
*(double *)si128.m128i_i64,
*(double *)v32.m128i_i64,
NAN);
v40 = *(_QWORD *)(v38 + 64);
*(_QWORD *)(v38 + 48) = *(_QWORD *)(v38 + 48) - v39 - 8;
(*(void ( **)(long long, long long))(v38 + 16))(v40, v29);
}
v16 = 0LL;
v20 = 0LL;
return v20 | v16;
}
rqsort(*(_QWORD *)(a2 + 56), v23, v25, v27, (long long)&v61);
if ( v62 )
{
LABEL_15:
v16 = 0LL;
goto LABEL_7;
}
}
LABEL_29:
++*(_DWORD *)v16;
v20 = v16 & 0xFFFFFFFF00000000LL;
v16 = (unsigned int)v16;
return v20 | v16;
}
v19 = "ArrayBuffer is detached or resized";
LABEL_6:
v16 = 0LL;
JS_ThrowTypeError(a1, (long long)v19, a3, a4, (long long)a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v58);
LABEL_7:
v20 = 0LL;
return v20 | v16;
}
|
js_typed_array_sort:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV RBX,RDX
MOV R15,RDI
CMP EBX,-0x1
JNZ 0x001847fb
MOV R14,RSI
MOVZX EAX,word ptr [RSI + 0x6]
ADD EAX,-0x15
CMP AX,0xc
JNC 0x001847fb
MOV R12,R8
MOV RDI,R14
CALL 0x0013aa19
TEST EAX,EAX
JZ 0x0018482e
LEA RSI,[0x1a53cc]
JMP 0x00184802
LAB_001847fb:
LEA RSI,[0x1a53bb]
LAB_00184802:
XOR R14D,R14D
MOV RDI,R15
XOR EAX,EAX
CALL 0x00122d8b
MOV EBX,0x6
LAB_00184814:
XOR EAX,EAX
LAB_00184816:
OR R14,RAX
MOV RAX,R14
MOV RDX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0018482e:
MOV qword ptr [RSP + 0x18],R15
MOV dword ptr [RSP + 0x20],0x0
MOV qword ptr [RSP + 0x28],R14
MOV qword ptr [RSP + 0x30],RBX
MOVDQU XMM0,xmmword ptr [R12]
MOVDQU xmmword ptr [RSP + 0x38],XMM0
MOV RDX,qword ptr [RSP + 0x40]
MOV EBP,EDX
CMP RBP,0x3
JZ 0x0018486f
MOV RSI,qword ptr [RSP + 0x38]
MOV RDI,R15
CALL 0x00142f63
TEST EAX,EAX
JNZ 0x001848eb
LAB_0018486f:
MOVSXD R13,dword ptr [R14 + 0x40]
CMP R13,0x2
JL 0x00184a47
MOVZX EAX,word ptr [R14 + 0x6]
LEA ECX,[RAX + -0x15]
CMP CX,0xc
JNC 0x00184b92
MOVZX EDX,CX
LEA RCX,[0x1a085f]
MOV CL,byte ptr [RAX + RCX*0x1 + -0x15]
MOV R12D,0x1
SHL R12D,CL
SHL EDX,0x3
LEA RAX,[0x1cfb30]
MOV RAX,qword ptr [RDX + RAX*0x1]
LEA RCX,[0x1cfb90]
MOV RCX,qword ptr [RDX + RCX*0x1]
MOV qword ptr [RSP + 0x48],RAX
MOVSXD RDX,R12D
CMP EBP,0x3
JNZ 0x001848f8
MOV RDI,qword ptr [R14 + 0x38]
LEA R15,[RSP + 0x18]
MOV RSI,R13
MOV R8,R15
CALL 0x0011c934
CMP dword ptr [R15 + 0x8],0x0
JZ 0x00184a47
LAB_001848eb:
MOV EBX,0x6
XOR R14D,R14D
JMP 0x00184814
LAB_001848f8:
MOV qword ptr [RSP + 0x10],RDX
LEA RSI,[R13*0x4]
MOV RDI,R15
CALL 0x0010ee12
TEST RAX,RAX
JZ 0x001849fb
MOV RBP,RAX
LEA EAX,[R13 + 0x1]
AND EAX,0xfffffffe
MOV RCX,R13
DEC RCX
MOVQ XMM0,RCX
PSHUFD XMM0,XMM0,0x44
MOVDQA XMM1,xmmword ptr [0x001a1730]
XOR ECX,ECX
MOVDQA XMM2,xmmword ptr [0x001a1740]
PXOR XMM0,XMM2
PCMPEQD XMM3,XMM3
MOVDQA XMM4,xmmword ptr [0x001a1760]
LAB_00184952:
MOVDQA XMM5,XMM1
PXOR XMM5,XMM2
MOVDQA XMM6,XMM5
PCMPGTD XMM6,XMM0
PCMPEQD XMM5,XMM0
PSHUFD XMM7,XMM5,0xf5
PAND XMM7,XMM6
PSHUFD XMM5,XMM6,0xf5
POR XMM5,XMM7
MOVD EDX,XMM5
NOT EDX
TEST DL,0x1
JZ 0x00184987
MOV dword ptr [RBP + RCX*0x4],ECX
LAB_00184987:
PXOR XMM5,XMM3
PEXTRW EDX,XMM5,0x4
TEST DL,0x1
JZ 0x0018499c
LEA EDX,[RCX + 0x1]
MOV dword ptr [RBP + RCX*0x4 + 0x4],EDX
LAB_0018499c:
ADD RCX,0x2
PADDQ XMM1,XMM4
CMP RAX,RCX
JNZ 0x00184952
LEA R8,[RSP + 0x18]
MOV dword ptr [R8 + 0x38],R12D
LEA RCX,[0x185ae1]
MOV EDX,0x4
MOV RDI,RBP
MOV RSI,R13
CALL 0x0011c934
LEA RAX,[RSP + 0x18]
CMP dword ptr [RAX + 0x8],0x0
JZ 0x00184a0a
LAB_001849d4:
MOV RBX,qword ptr [R15 + 0x18]
DEC qword ptr [RBX + 0x28]
MOV RDI,RBP
CALL qword ptr [RBX + 0x20]
MOV RCX,qword ptr [RBX + 0x30]
MOV RDI,qword ptr [RBX + 0x40]
SUB RCX,RAX
ADD RCX,-0x8
MOV qword ptr [RBX + 0x30],RCX
MOV RSI,RBP
CALL qword ptr [RBX + 0x10]
LAB_001849fb:
XOR R14D,R14D
XOR EAX,EAX
MOV EBX,0x6
JMP 0x00184816
LAB_00184a0a:
MOV RDI,R14
CALL 0x0013aa19
TEST EAX,EAX
JNZ 0x00184a1e
MOV EAX,dword ptr [R14 + 0x40]
TEST EAX,EAX
JNZ 0x00184a5f
LAB_00184a1e:
MOV R15,qword ptr [R15 + 0x18]
DEC qword ptr [R15 + 0x28]
MOV RDI,RBP
CALL qword ptr [R15 + 0x20]
MOV RCX,qword ptr [R15 + 0x30]
MOV RDI,qword ptr [R15 + 0x40]
SUB RCX,RAX
ADD RCX,-0x8
MOV qword ptr [R15 + 0x30],RCX
MOV RSI,RBP
CALL qword ptr [R15 + 0x10]
LAB_00184a47:
INC dword ptr [R14]
MOV RAX,-0x100000000
AND RAX,R14
MOV R14D,R14D
JMP 0x00184816
LAB_00184a5f:
CMP R13D,EAX
CMOVL EAX,R13D
MOVSXD R13,EAX
MOV RSI,qword ptr [RSP + 0x10]
IMUL RSI,R13
MOV RDI,R15
MOV qword ptr [RSP + 0x10],RSI
CALL 0x0010ee12
MOV qword ptr [RSP + 0x8],RAX
TEST RAX,RAX
JZ 0x001849d4
MOV RSI,qword ptr [R14 + 0x38]
MOV RDI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
CALL 0x0010e5b0
DEC R12D
CMP R12D,0x7
JA 0x00184b92
LEA RAX,[0x1a0728]
MOVSXD RCX,dword ptr [RAX + R12*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_1:
CMP R13,0x1
ADC R13,0x0
XOR EAX,EAX
MOV RSI,qword ptr [RSP + 0x8]
LAB_00184acc:
MOV ECX,dword ptr [RBP + RAX*0x4]
MOV CL,byte ptr [RSI + RCX*0x1]
MOV RDX,qword ptr [R14 + 0x38]
MOV byte ptr [RDX + RAX*0x1],CL
INC RAX
CMP R13,RAX
JNZ 0x00184acc
JMP 0x00184b5b
caseD_4:
CMP R13,0x1
ADC R13,0x0
XOR EAX,EAX
MOV RSI,qword ptr [RSP + 0x8]
LAB_00184af3:
MOV ECX,dword ptr [RBP + RAX*0x4]
MOV ECX,dword ptr [RSI + RCX*0x4]
MOV RDX,qword ptr [R14 + 0x38]
MOV dword ptr [RDX + RAX*0x4],ECX
INC RAX
CMP R13,RAX
JNZ 0x00184af3
JMP 0x00184b5b
caseD_8:
CMP R13,0x1
ADC R13,0x0
XOR EAX,EAX
MOV RSI,qword ptr [RSP + 0x8]
LAB_00184b1a:
MOV ECX,dword ptr [RBP + RAX*0x4]
MOV RCX,qword ptr [RSI + RCX*0x8]
MOV RDX,qword ptr [R14 + 0x38]
MOV qword ptr [RDX + RAX*0x8],RCX
INC RAX
CMP R13,RAX
JNZ 0x00184b1a
JMP 0x00184b5b
caseD_2:
CMP R13,0x1
ADC R13,0x0
XOR EAX,EAX
MOV RSI,qword ptr [RSP + 0x8]
LAB_00184b43:
MOV ECX,dword ptr [RBP + RAX*0x4]
MOVZX ECX,word ptr [RSI + RCX*0x2]
MOV RDX,qword ptr [R14 + 0x38]
MOV word ptr [RDX + RAX*0x2],CX
INC RAX
CMP R13,RAX
JNZ 0x00184b43
LAB_00184b5b:
MOV R12,qword ptr [R15 + 0x18]
DEC qword ptr [R12 + 0x28]
MOV R13,RSI
MOV RDI,RSI
CALL qword ptr [R12 + 0x20]
MOV RCX,qword ptr [R12 + 0x30]
MOV RDI,qword ptr [R12 + 0x40]
SUB RCX,RAX
ADD RCX,-0x8
MOV qword ptr [R12 + 0x30],RCX
MOV RSI,R13
CALL qword ptr [R12 + 0x10]
JMP 0x00184a1e
caseD_3:
CALL 0x0010e090
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
int1 [16]
js_typed_array_sort(long param_1,int *param_2,int8 param_3,int8 param_4,
int8 *param_5)
{
bool bVar1;
long lVar2;
long lVar3;
int iVar4;
int iVar5;
long lVar6;
ulong uVar7;
void *__dest;
ushort uVar8;
long lVar9;
long lVar10;
char *pcVar11;
int iVar12;
long lVar13;
ulong uVar14;
int1 auVar15 [16];
int1 auVar16 [16];
int iVar17;
int1 auVar18 [16];
long local_70;
int local_68;
int *local_60;
int8 local_58;
int8 local_50;
ulong uStack_48;
int *local_40;
int local_38;
if (((int)param_3 == -1) && ((ushort)(*(short *)((long)param_2 + 6) - 0x15U) < 0xc)) {
iVar4 = typed_array_is_oob(param_2);
if (iVar4 != 0) {
pcVar11 = "ArrayBuffer is detached or resized";
goto LAB_00184802;
}
local_68 = 0;
local_50 = *param_5;
uVar7 = param_5[1];
local_70 = param_1;
local_60 = param_2;
local_58 = param_3;
uStack_48 = uVar7;
if (((uVar7 & 0xffffffff) == 3) || (iVar4 = check_function(param_1,local_50), iVar4 == 0)) {
iVar4 = param_2[0x10];
lVar13 = (long)iVar4;
if (1 < lVar13) {
uVar8 = *(ushort *)((long)param_2 + 6) - 0x15;
if (0xb < uVar8) {
switchD_00184abb_caseD_3:
/* WARNING: Subroutine does not return */
abort();
}
iVar12 = 1 << ("toSorted"[(ulong)*(ushort *)((long)param_2 + 6) + 6] & 0x1fU);
local_40 = (&PTR_js_TA_get_uint8_001cfb30)[uVar8];
lVar10 = (long)iVar12;
if ((int)uVar7 != 3) {
lVar6 = js_malloc(param_1,lVar13 * 4,lVar10,(&PTR_js_TA_cmp_uint8_001cfb90)[uVar8]);
lVar3 = _UNK_001a1768;
lVar2 = _DAT_001a1760;
auVar18 = _DAT_001a1740;
if (lVar6 != 0) {
lVar9 = lVar13 + -1;
auVar15._8_4_ = (int)lVar9;
auVar15._0_8_ = lVar9;
auVar15._12_4_ = (int)((ulong)lVar9 >> 0x20);
uVar7 = 0;
auVar15 = auVar15 ^ _DAT_001a1740;
auVar16 = _DAT_001a1730;
do {
bVar1 = auVar15._0_4_ < SUB164(auVar16 ^ auVar18,0);
iVar5 = auVar15._4_4_;
iVar17 = SUB164(auVar16 ^ auVar18,4);
if ((bool)(~(iVar5 < iVar17 || iVar17 == iVar5 && bVar1) & 1)) {
*(int *)(lVar6 + uVar7 * 4) = (int)uVar7;
}
if (iVar5 >= iVar17 && (iVar17 != iVar5 || !bVar1)) {
*(int *)(lVar6 + 4 + uVar7 * 4) = (int)uVar7 + 1;
}
uVar7 = uVar7 + 2;
lVar9 = auVar16._8_8_;
auVar16._0_8_ = auVar16._0_8_ + lVar2;
auVar16._8_8_ = lVar9 + lVar3;
} while ((iVar4 + 1U & 0xfffffffe) != uVar7);
local_38 = iVar12;
rqsort(lVar6,lVar13,4,js_TA_cmp_generic);
if (local_68 == 0) {
iVar5 = typed_array_is_oob(param_2);
if ((iVar5 == 0) && (iVar5 = param_2[0x10], iVar5 != 0)) {
if (iVar4 < iVar5) {
iVar5 = iVar4;
}
lVar13 = (long)iVar5;
__dest = (void *)js_malloc(param_1);
if (__dest == (void *)0x0) goto LAB_001849d4;
memcpy(__dest,*(void **)(param_2 + 0xe),lVar10 * lVar13);
switch(iVar12) {
case 1:
lVar10 = 0;
do {
*(int1 *)(*(long *)(param_2 + 0xe) + lVar10) =
*(int1 *)((long)__dest + (ulong)*(uint *)(lVar6 + lVar10 * 4));
lVar10 = lVar10 + 1;
} while (lVar13 + (ulong)(lVar13 == 0) != lVar10);
break;
case 2:
lVar10 = 0;
do {
*(int2 *)(*(long *)(param_2 + 0xe) + lVar10 * 2) =
*(int2 *)((long)__dest + (ulong)*(uint *)(lVar6 + lVar10 * 4) * 2);
lVar10 = lVar10 + 1;
} while (lVar13 + (ulong)(lVar13 == 0) != lVar10);
break;
default:
goto switchD_00184abb_caseD_3;
case 4:
lVar10 = 0;
do {
*(int4 *)(*(long *)(param_2 + 0xe) + lVar10 * 4) =
*(int4 *)((long)__dest + (ulong)*(uint *)(lVar6 + lVar10 * 4) * 4);
lVar10 = lVar10 + 1;
} while (lVar13 + (ulong)(lVar13 == 0) != lVar10);
break;
case 8:
lVar10 = 0;
do {
*(int8 *)(*(long *)(param_2 + 0xe) + lVar10 * 8) =
*(int8 *)((long)__dest + (ulong)*(uint *)(lVar6 + lVar10 * 4) * 8);
lVar10 = lVar10 + 1;
} while (lVar13 + (ulong)(lVar13 == 0) != lVar10);
}
lVar13 = *(long *)(param_1 + 0x18);
*(long *)(lVar13 + 0x28) = *(long *)(lVar13 + 0x28) + -1;
lVar10 = (**(code **)(lVar13 + 0x20))(__dest);
*(long *)(lVar13 + 0x30) = (*(long *)(lVar13 + 0x30) - lVar10) + -8;
(**(code **)(lVar13 + 0x10))(*(int8 *)(lVar13 + 0x40),__dest);
}
lVar13 = *(long *)(param_1 + 0x18);
*(long *)(lVar13 + 0x28) = *(long *)(lVar13 + 0x28) + -1;
lVar10 = (**(code **)(lVar13 + 0x20))(lVar6);
*(long *)(lVar13 + 0x30) = (*(long *)(lVar13 + 0x30) - lVar10) + -8;
(**(code **)(lVar13 + 0x10))(*(int8 *)(lVar13 + 0x40),lVar6);
goto LAB_00184a47;
}
LAB_001849d4:
lVar13 = *(long *)(param_1 + 0x18);
*(long *)(lVar13 + 0x28) = *(long *)(lVar13 + 0x28) + -1;
lVar10 = (**(code **)(lVar13 + 0x20))(lVar6);
*(long *)(lVar13 + 0x30) = (*(long *)(lVar13 + 0x30) - lVar10) + -8;
(**(code **)(lVar13 + 0x10))(*(int8 *)(lVar13 + 0x40),lVar6);
}
uVar14 = 0;
uVar7 = 0;
param_3 = 6;
goto LAB_00184816;
}
rqsort(*(int8 *)(param_2 + 0xe),lVar13,lVar10,(&PTR_js_TA_cmp_uint8_001cfb90)[uVar8],
&local_70);
if (local_68 != 0) goto LAB_00184814;
}
LAB_00184a47:
*param_2 = *param_2 + 1;
uVar7 = (ulong)param_2 & 0xffffffff00000000;
uVar14 = (ulong)param_2 & 0xffffffff;
goto LAB_00184816;
}
}
else {
pcVar11 = "not a TypedArray";
LAB_00184802:
JS_ThrowTypeError(param_1,pcVar11);
}
LAB_00184814:
uVar14 = 0;
param_3 = 6;
uVar7 = 0;
LAB_00184816:
auVar18._8_8_ = param_3;
auVar18._0_8_ = uVar14 | uVar7;
return auVar18;
}
|
|
65,049 |
nlohmann::json_abi_v3_11_3::detail::lexer<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>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::skip_bom()
|
llama.cpp/common/json.hpp
|
bool skip_bom()
{
if (get() == 0xEF)
{
// check if we completely parse the BOM
return get() == 0xBB && get() == 0xBF;
}
// the first character is not the beginning of the BOM; unget it to
// process is later
unget();
return true;
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::lexer<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>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::skip_bom():
pushq %rbx
movq %rdi, %rbx
callq 0x21856
cmpl $0xef, %eax
je 0x85d5e
movq %rbx, %rdi
callq 0x86654
movb $0x1, %al
popq %rbx
retq
movq %rbx, %rdi
callq 0x21856
cmpl $0xbb, %eax
je 0x85d71
xorl %eax, %eax
jmp 0x85d5c
movq %rbx, %rdi
callq 0x21856
cmpl $0xbf, %eax
sete %al
jmp 0x85d5c
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE8skip_bomEv:
push rbx
mov rbx, rdi
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
cmp eax, 0EFh
jz short loc_85D5E
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5ungetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(void)
mov al, 1
loc_85D5C:
pop rbx
retn
loc_85D5E:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
cmp eax, 0BBh
jz short loc_85D71
xor eax, eax
jmp short loc_85D5C
loc_85D71:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
cmp eax, 0BFh
setz al
jmp short loc_85D5C
|
bool nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::skip_bom(
__m128i *a1)
{
if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1) == 239 )
return (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1) == 187
&& (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1) == 191;
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(a1);
return 1;
}
|
skip_bom:
PUSH RBX
MOV RBX,RDI
CALL 0x00121856
CMP EAX,0xef
JZ 0x00185d5e
MOV RDI,RBX
CALL 0x00186654
MOV AL,0x1
LAB_00185d5c:
POP RBX
RET
LAB_00185d5e:
MOV RDI,RBX
CALL 0x00121856
CMP EAX,0xbb
JZ 0x00185d71
XOR EAX,EAX
JMP 0x00185d5c
LAB_00185d71:
MOV RDI,RBX
CALL 0x00121856
CMP EAX,0xbf
SETZ AL
JMP 0x00185d5c
|
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::skip_bom() */
bool __thiscall
nlohmann::json_abi_v3_11_3::detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::skip_bom(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*this)
{
int iVar1;
bool bVar2;
iVar1 = get(this);
if (iVar1 == 0xef) {
iVar1 = get(this);
if (iVar1 == 0xbb) {
iVar1 = get(this);
bVar2 = iVar1 == 0xbf;
}
else {
bVar2 = false;
}
}
else {
unget(this);
bVar2 = true;
}
return bVar2;
}
|
|
65,050 |
ma_randominit
|
eloqsql/libmariadb/libmariadb/ma_password.c
|
void ma_randominit(struct rand_struct *rand_st,ulong seed1, ulong seed2)
{ /* For mysql 3.21.# */
#ifdef HAVE_purify
memset((char*) rand_st, 0m sizeof(*rand_st)); /* Avoid UMC warnings */
#endif
rand_st->max_value= 0x3FFFFFFFL;
rand_st->max_value_dbl=(double) rand_st->max_value;
rand_st->seed1=seed1%rand_st->max_value ;
rand_st->seed2=seed2%rand_st->max_value;
}
|
O3
|
c
|
ma_randominit:
pushq %rbp
movq %rsp, %rbp
movq %rdx, %rcx
movq $0x3fffffff, 0x10(%rdi) # imm = 0x3FFFFFFF
movabsq $0x41cfffffff800000, %rax # imm = 0x41CFFFFFFF800000
movq %rax, 0x18(%rdi)
movabsq $0x400000011, %r8 # imm = 0x400000011
movq %rsi, %rax
mulq %r8
movq %rsi, %r9
subq %rdx, %r9
shrq %r9
addq %rdx, %r9
shrq $0x1d, %r9
movq %r9, %rax
shlq $0x1e, %rax
subq %rax, %r9
addq %rsi, %r9
movq %rcx, %rax
mulq %r8
movq %r9, (%rdi)
movq %rcx, %rax
subq %rdx, %rax
shrq %rax
addq %rdx, %rax
shrq $0x1d, %rax
movq %rax, %rdx
shlq $0x1e, %rdx
subq %rdx, %rax
addq %rcx, %rax
movq %rax, 0x8(%rdi)
popq %rbp
retq
|
ma_randominit:
push rbp
mov rbp, rsp
mov rcx, rdx
mov qword ptr [rdi+10h], 3FFFFFFFh
mov rax, 41CFFFFFFF800000h
mov [rdi+18h], rax
mov r8, 400000011h
mov rax, rsi
mul r8
mov r9, rsi
sub r9, rdx
shr r9, 1
add r9, rdx
shr r9, 1Dh
mov rax, r9
shl rax, 1Eh
sub r9, rax
add r9, rsi
mov rax, rcx
mul r8
mov [rdi], r9
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 1Dh
mov rdx, rax
shl rdx, 1Eh
sub rax, rdx
add rax, rcx
mov [rdi+8], rax
pop rbp
retn
|
unsigned long long ma_randominit(unsigned long long *a1, unsigned long long a2, unsigned long long a3)
{
unsigned long long result; // rax
a1[2] = 0x3FFFFFFFLL;
a1[3] = 0x41CFFFFFFF800000LL;
*a1 = a2 % 0x3FFFFFFF;
result = a3 % 0x3FFFFFFF;
a1[1] = a3 % 0x3FFFFFFF;
return result;
}
|
ma_randominit:
PUSH RBP
MOV RBP,RSP
MOV RCX,RDX
MOV qword ptr [RDI + 0x10],0x3fffffff
MOV RAX,0x41cfffffff800000
MOV qword ptr [RDI + 0x18],RAX
MOV R8,0x400000011
MOV RAX,RSI
MUL R8
MOV R9,RSI
SUB R9,RDX
SHR R9,0x1
ADD R9,RDX
SHR R9,0x1d
MOV RAX,R9
SHL RAX,0x1e
SUB R9,RAX
ADD R9,RSI
MOV RAX,RCX
MUL R8
MOV qword ptr [RDI],R9
MOV RAX,RCX
SUB RAX,RDX
SHR RAX,0x1
ADD RAX,RDX
SHR RAX,0x1d
MOV RDX,RAX
SHL RDX,0x1e
SUB RAX,RDX
ADD RAX,RCX
MOV qword ptr [RDI + 0x8],RAX
POP RBP
RET
|
void ma_randominit(ulong *param_1,ulong param_2,ulong param_3)
{
param_1[2] = 0x3fffffff;
param_1[3] = 0x41cfffffff800000;
*param_1 = param_2 % 0x3fffffff;
param_1[1] = param_3 % 0x3fffffff;
return;
}
|
|
65,051 |
testing::internal::(anonymous namespace)::PositiveAndNegativeUnitTestFilter::PositiveAndNegativeUnitTestFilter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest.cc
|
explicit PositiveAndNegativeUnitTestFilter(const std::string& filter) {
std::vector<std::string> positive_and_negative_filters;
// NOTE: `SplitString` always returns a non-empty container.
SplitString(filter, '-', &positive_and_negative_filters);
const auto& positive_filter = positive_and_negative_filters.front();
if (positive_and_negative_filters.size() > 1) {
positive_filter_ = UnitTestFilter(
positive_filter.empty() ? kUniversalFilter : positive_filter);
// TODO(b/214626361): Fail on multiple '-' characters
// For the moment to preserve old behavior we concatenate the rest of the
// string parts with `-` as separator to generate the negative filter.
auto negative_filter_string = positive_and_negative_filters[1];
for (std::size_t i = 2; i < positive_and_negative_filters.size(); i++)
negative_filter_string =
negative_filter_string + '-' + positive_and_negative_filters[i];
negative_filter_ = UnitTestFilter(negative_filter_string);
} else {
// In case we don't have a negative filter and positive filter is ""
// we do not use kUniversalFilter by design as opposed to when we have a
// negative filter.
positive_filter_ = UnitTestFilter(positive_filter);
}
}
|
O1
|
cpp
|
testing::internal::(anonymous namespace)::PositiveAndNegativeUnitTestFilter::PositiveAndNegativeUnitTestFilter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
leaq 0x18(%rdi), %r14
leaq 0x48(%rdi), %rcx
movq %rcx, 0x18(%rdi)
movl $0x1, %ecx
movq %rcx, 0x20(%rdi)
movups %xmm0, 0x28(%rdi)
movl $0x3f800000, %edx # imm = 0x3F800000
movl %edx, 0x38(%rdi)
leaq 0x68(%rdi), %r15
leaq 0x98(%rdi), %rsi
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x50(%rdi)
movq %rax, 0x60(%rdi)
movq %rsi, 0x68(%rdi)
movq %rcx, 0x70(%rdi)
movups %xmm0, 0x78(%rdi)
movl %edx, 0x88(%rdi)
movups %xmm0, 0x90(%rdi)
leaq 0x30(%rsp), %rdx
movq %rax, 0x10(%rdx)
movaps %xmm0, (%rdx)
leaq 0x413e438(%rip), %rdi # 0x415de58
movl $0x2d, %esi
callq 0x18767
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rax
subq %rsi, %rax
cmpq $0x21, %rax
jb 0x1fa70
movq 0x8(%rsi), %rdx
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
testq %rdx, %rdx
movq %r14, 0x28(%rsp)
movq %r15, 0x20(%rsp)
je 0x1faf6
movq (%rsi), %rsi
addq %rsi, %rdx
movq %rsp, %rdi
callq 0xf66a
jmp 0x1fb0c
leaq 0x78(%rsp), %rdi
callq 0x1f6f6
xorps %xmm0, %xmm0
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq (%rbx), %rax
movups 0x8(%rbx), %xmm0
leaq 0x90(%rsp), %r15
movq -0x18(%r15), %rcx
movq %rcx, (%rbx)
movq -0x10(%r15), %rcx
movq %rcx, 0x8(%rbx)
movq -0x8(%r15), %rcx
movq %rcx, 0x10(%rbx)
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
movq 0x10(%rdi), %rsi
movq %rax, (%rdi)
movups %xmm0, 0x8(%rdi)
movq %rcx, -0x18(%r15)
movq %rdx, -0x10(%r15)
movq %rsi, -0x8(%r15)
callq 0x3538e
movq %r14, %rdi
movq %r15, %rsi
callq 0x9c0e
movq %r15, %rdi
callq 0x3a35e
leaq 0x78(%rsp), %rdi
callq 0x3538e
jmp 0x1fd8d
leaq 0x215c3(%rip), %rsi # 0x410c0
leaq 0x215bd(%rip), %rdx # 0x410c1
movq %rsp, %rdi
callq 0xfdfe
leaq 0x78(%rsp), %rdi
movq %rsp, %rsi
callq 0x1f6f6
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq (%rbx), %rax
movups 0x8(%rbx), %xmm0
leaq 0x90(%rsp), %r12
movq -0x18(%r12), %rcx
movq %rcx, (%rbx)
movq -0x10(%r12), %rcx
movq %rcx, 0x8(%rbx)
movq -0x8(%r12), %rcx
movq %rcx, 0x10(%rbx)
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
movq 0x10(%rdi), %rsi
movq %rax, (%rdi)
movups %xmm0, 0x8(%rdi)
movq %rcx, -0x18(%r12)
movq %rdx, -0x10(%r12)
movq %rsi, -0x8(%r12)
callq 0x3538e
movq %r14, %rdi
movq %r12, %rsi
callq 0x9c0e
movq %r12, %rdi
callq 0x3a35e
leaq 0x78(%rsp), %rdi
callq 0x3538e
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x1fbae
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x30(%rsp), %rax
movq %rsp, %rdi
movq %r13, (%rdi)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
callq 0xf66a
movq 0x38(%rsp), %rax
subq 0x30(%rsp), %rax
cmpq $0x41, %rax
jb 0x1fce8
leaq 0x60(%rsp), %r15
movl $0x2, %r14d
movl $0x48, %r13d
leaq 0x88(%rsp), %rbp
leaq 0x50(%rsp), %r12
movq %r15, 0x50(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xf66a
movq 0x58(%rsp), %rsi
movl $0x1, %ecx
movq %r12, %rdi
xorl %edx, %edx
movl $0x2d, %r8d
callq 0x9a50
movq 0x30(%rsp), %rax
movq -0x8(%rax,%r13), %rsi
movq (%rax,%r13), %rdx
movq %r12, %rdi
callq 0x9170
movq %rbp, 0x78(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1fc6a
movq %rdx, 0x78(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x88(%rsp)
jmp 0x1fc71
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x80(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rsp, %rdi
leaq 0x78(%rsp), %rsi
callq 0x9670
movq 0x78(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1fcb3
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x1fcca
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x94c0
movq 0x38(%rsp), %rax
subq 0x30(%rsp), %rax
incq %r14
sarq $0x5, %rax
addq $0x20, %r13
cmpq %rax, %r14
jb 0x1fbfb
leaq 0x78(%rsp), %rdi
movq %rsp, %rsi
callq 0x1f6f6
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x50(%rbx), %rax
movups 0x58(%rbx), %xmm0
leaq 0x90(%rsp), %r14
movq -0x18(%r14), %rcx
movq %rcx, 0x50(%rbx)
movq -0x10(%r14), %rcx
movq %rcx, 0x58(%rbx)
movq -0x8(%r14), %rcx
movq %rcx, 0x60(%rbx)
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
movq 0x10(%rdi), %rsi
movq %rax, (%rdi)
movups %xmm0, 0x8(%rdi)
movq %rcx, -0x18(%r14)
movq %rdx, -0x10(%r14)
movq %rsi, -0x8(%r14)
callq 0x3538e
movq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x9c0e
leaq 0x10(%rsp), %rbx
movq %r14, %rdi
callq 0x3a35e
leaq 0x78(%rsp), %rdi
callq 0x3538e
movq (%rsp), %rdi
cmpq %rbx, %rdi
je 0x1fd8d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x94c0
leaq 0x30(%rsp), %rdi
callq 0x3538e
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1fdbf
jmp 0x1fdda
jmp 0x1fdd5
jmp 0x1fdbf
movq %rax, %r12
movq (%rsp), %rdi
cmpq %r13, %rdi
jne 0x1fe09
jmp 0x1fe16
movq %rax, %rdi
callq 0xf6fa
jmp 0x1fdd5
jmp 0x1fdcb
movq %r15, 0x20(%rsp)
movq %r14, 0x28(%rsp)
movq %rax, %r12
jmp 0x1fe16
movq %rax, %r12
jmp 0x1fdfb
jmp 0x1fde1
movq %rax, %r12
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x1fdfb
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x94c0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1fe16
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x94c0
leaq 0x50(%rbx), %r13
leaq 0x30(%rsp), %rdi
callq 0x3538e
movq 0x20(%rsp), %rdi
callq 0x3a35e
movq %r13, %rdi
callq 0x3538e
movq 0x28(%rsp), %rdi
callq 0x3a35e
movq %rbx, %rdi
callq 0x3538e
movq %r12, %rdi
callq 0x99a0
|
_ZN7testing8internal12_GLOBAL__N_133PositiveAndNegativeUnitTestFilterC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C8h
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi], xmm0
xor eax, eax
mov [rdi+10h], rax
lea r14, [rdi+18h]
lea rcx, [rdi+48h]
mov [rdi+18h], rcx
mov ecx, 1; int
mov [rdi+20h], rcx
movups xmmword ptr [rdi+28h], xmm0
mov edx, 3F800000h
mov [rdi+38h], edx
lea r15, [rdi+68h]
lea rsi, [rdi+98h]
movups xmmword ptr [rdi+40h], xmm0
movups xmmword ptr [rdi+50h], xmm0
mov [rdi+60h], rax
mov [rdi+68h], rsi
mov [rdi+70h], rcx
movups xmmword ptr [rdi+78h], xmm0
mov [rdi+88h], edx
movups xmmword ptr [rdi+90h], xmm0
lea rdx, [rsp+0F8h+var_C8]; int
mov [rdx+10h], rax
movaps xmmword ptr [rdx], xmm0
lea rdi, _ZN7testing18FLAGS_gtest_filterB5cxx11E; int
mov esi, 2Dh ; '-'; int
call _ZN7testing8internal11SplitStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcPSt6vectorIS6_SaIS6_EE; testing::internal::SplitString(std::string const&,char,std::vector<std::string> *)
mov rsi, qword ptr [rsp+0F8h+var_C8]
mov rax, [rsp+0F8h+var_C0]
sub rax, rsi
cmp rax, 21h ; '!'
jb short loc_1FA70
mov rdx, [rsi+8]
lea r13, [rsp+0F8h+var_E8]
mov [r13-10h], r13
test rdx, rdx
mov [rsp+0F8h+var_D0], r14
mov [rsp+0F8h+var_D8], r15
jz loc_1FAF6
mov rsi, [rsi]
add rdx, rsi
mov rdi, rsp
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
jmp loc_1FB0C
loc_1FA70:
lea rdi, [rsp+0F8h+var_80]
call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter(std::string const&)
xorps xmm0, xmm0
mov rdi, rsp; void *
movaps xmmword ptr [rdi], xmm0
mov qword ptr [rdi+10h], 0
mov rax, [rbx]
movups xmm0, xmmword ptr [rbx+8]
lea r15, [rsp+0F8h+var_68]
mov rcx, [r15-18h]
mov [rbx], rcx
mov rcx, [r15-10h]
mov [rbx+8], rcx
mov rcx, [r15-8]
mov [rbx+10h], rcx
mov rcx, [rdi]
mov rdx, [rdi+8]
mov rsi, [rdi+10h]
mov [rdi], rax
movups xmmword ptr [rdi+8], xmm0
mov [r15-18h], rcx
mov [r15-10h], rdx
mov [r15-8], rsi
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, r14
mov rsi, r15
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE14_M_move_assignEOSI_St17integral_constantIbLb1EE; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::_M_move_assign(std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>&&,std::integral_constant<bool,true>)
mov rdi, r15
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEED2Ev; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable()
lea rdi, [rsp+0F8h+var_80]; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp loc_1FD8D
loc_1FAF6:
lea rsi, _ZN7testingL16kUniversalFilterE; "*"
lea rdx, _ZN7testingL16kUniversalFilterE+1; ""
mov rdi, rsp
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)
loc_1FB0C:
lea rdi, [rsp+0F8h+var_80]
mov rsi, rsp
call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter(std::string const&)
xorps xmm0, xmm0
lea rdi, [rsp+0F8h+var_A8]; void *
movaps xmmword ptr [rdi], xmm0
mov qword ptr [rdi+10h], 0
mov rax, [rbx]
movups xmm0, xmmword ptr [rbx+8]
lea r12, [rsp+0F8h+var_68]
mov rcx, [r12-18h]
mov [rbx], rcx
mov rcx, [r12-10h]
mov [rbx+8], rcx
mov rcx, [r12-8]
mov [rbx+10h], rcx
mov rcx, [rdi]
mov rdx, [rdi+8]
mov rsi, [rdi+10h]
mov [rdi], rax
movups xmmword ptr [rdi+8], xmm0
mov [r12-18h], rcx
mov [r12-10h], rdx
mov [r12-8], rsi
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, r14
mov rsi, r12
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE14_M_move_assignEOSI_St17integral_constantIbLb1EE; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::_M_move_assign(std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>&&,std::integral_constant<bool,true>)
mov rdi, r12
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEED2Ev; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable()
lea rdi, [rsp+0F8h+var_80]; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, [rsp+0F8h+var_F8]; void *
cmp rdi, r13
jz short loc_1FBAE
mov rsi, [rsp+0F8h+var_E8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1FBAE:
mov rax, qword ptr [rsp+0F8h+var_C8]
mov rdi, rsp
mov [rdi], r13
mov rsi, [rax+20h]
mov rdx, [rax+28h]
add rdx, rsi
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
mov rax, [rsp+0F8h+var_C0]
sub rax, qword ptr [rsp+0F8h+var_C8]
cmp rax, 41h ; 'A'
jb loc_1FCE8
lea r15, [rsp+0F8h+var_98]
mov r14d, 2
mov r13d, 48h ; 'H'
lea rbp, [rsp+0F8h+var_70]
lea r12, [rsp+0F8h+var_A8]
loc_1FBFB:
mov [rsp+0F8h+var_A8], r15
mov rsi, [rsp+0F8h+var_F8]
mov rdx, [rsp+0F8h+var_F0]
add rdx, rsi
mov rdi, r12
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
mov rsi, [rsp+0F8h+var_A0]
mov ecx, 1
mov rdi, r12
xor edx, edx
mov r8d, 2Dh ; '-'
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE14_M_replace_auxEmmmc; std::string::_M_replace_aux(ulong,ulong,ulong,char)
mov rax, qword ptr [rsp+0F8h+var_C8]
mov rsi, [rax+r13-8]
mov rdx, [rax+r13]
mov rdi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov [rsp+0F8h+var_80], rbp
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_1FC6A
mov [rsp+0F8h+var_80], rdx
mov rdx, [rcx]
mov [rsp+0F8h+var_70], rdx
jmp short loc_1FC71
loc_1FC6A:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rbp+0], xmm0
loc_1FC71:
mov rdx, [rax+8]
mov [rsp+0F8h+var_78], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov rdi, rsp
lea rsi, [rsp+0F8h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [rsp+0F8h+var_80]; void *
cmp rdi, rbp
jz short loc_1FCB3
mov rsi, [rsp+0F8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1FCB3:
mov rdi, [rsp+0F8h+var_A8]; void *
cmp rdi, r15
jz short loc_1FCCA
mov rsi, [rsp+0F8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1FCCA:
mov rax, [rsp+0F8h+var_C0]
sub rax, qword ptr [rsp+0F8h+var_C8]
inc r14
sar rax, 5
add r13, 20h ; ' '
cmp r14, rax
jb loc_1FBFB
loc_1FCE8:
lea rdi, [rsp+0F8h+var_80]
mov rsi, rsp
call _ZN7testing8internal12_GLOBAL__N_114UnitTestFilterC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter(std::string const&)
xorps xmm0, xmm0
lea rdi, [rsp+0F8h+var_A8]; void *
movaps xmmword ptr [rdi], xmm0
mov qword ptr [rdi+10h], 0
mov rax, [rbx+50h]
movups xmm0, xmmword ptr [rbx+58h]
lea r14, [rsp+0F8h+var_68]
mov rcx, [r14-18h]
mov [rbx+50h], rcx
mov rcx, [r14-10h]
mov [rbx+58h], rcx
mov rcx, [r14-8]
mov [rbx+60h], rcx
mov rcx, [rdi]
mov rdx, [rdi+8]
mov rsi, [rdi+10h]
mov [rdi], rax
movups xmmword ptr [rdi+8], xmm0
mov [r14-18h], rcx
mov [r14-10h], rdx
mov [r14-8], rsi
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, [rsp+0F8h+var_D8]
mov rsi, r14
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE14_M_move_assignEOSI_St17integral_constantIbLb1EE; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::_M_move_assign(std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>&&,std::integral_constant<bool,true>)
lea rbx, [rsp+0F8h+var_E8]
mov rdi, r14
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEED2Ev; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable()
lea rdi, [rsp+0F8h+var_80]; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, [rsp+0F8h+var_F8]; void *
cmp rdi, rbx
jz short loc_1FD8D
mov rsi, [rsp+0F8h+var_E8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1FD8D:
lea rdi, [rsp+0F8h+var_C8]; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
add rsp, 0C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_1FDBF
jmp short loc_1FDDA
jmp short loc_1FDD5
jmp short loc_1FDBF
mov r12, rax
mov rdi, [rsp+0F8h+var_F8]
cmp rdi, r13
jnz short loc_1FE09
jmp short loc_1FE16
loc_1FDBF:
mov rdi, rax
call __clang_call_terminate
jmp short loc_1FDD5
jmp short $+2
loc_1FDCB:
mov [rsp+0F8h+var_D8], r15
mov [rsp+0F8h+var_D0], r14
loc_1FDD5:
mov r12, rax
jmp short loc_1FE16
loc_1FDDA:
mov r12, rax
jmp short loc_1FDFB
jmp short $+2
loc_1FDE1:
mov r12, rax
mov rdi, [rsp+0F8h+var_A8]; void *
cmp rdi, r15
jz short loc_1FDFB
mov rsi, [rsp+0F8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1FDFB:
mov rdi, [rsp+0F8h+var_F8]; void *
lea rax, [rsp+0F8h+var_E8]
cmp rdi, rax
jz short loc_1FE16
loc_1FE09:
mov rsi, [rsp+0F8h+var_E8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1FE16:
lea r13, [rbx+50h]
lea rdi, [rsp+0F8h+var_C8]; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, [rsp+0F8h+var_D8]
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEED2Ev; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable()
mov rdi, r13; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, [rsp+0F8h+var_D0]
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEED2Ev; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable()
mov rdi, rbx; void *
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, r12
call __Unwind_Resume
|
void testing::internal::`anonymous namespace'::PositiveAndNegativeUnitTestFilter::PositiveAndNegativeUnitTestFilter(
long long a1)
{
long long v1; // r14
long long v2; // rdx
void *v3; // rax
__int128 v4; // xmm0
void *v5; // rcx
void *v6; // rdx
void *v7; // rsi
void *v8; // rax
__int128 v9; // xmm0
void *v10; // rcx
void *v11; // rdx
void *v12; // rsi
unsigned long long v13; // r14
long long v14; // r13
long long v15; // rax
_OWORD *v16; // rcx
void *v17; // rax
__int128 v18; // xmm0
void *v19; // rcx
void *v20; // rdx
void *v21; // rsi
void *v22[4]; // [rsp+0h] [rbp-F8h] BYREF
long long v23; // [rsp+20h] [rbp-D8h]
long long v24; // [rsp+28h] [rbp-D0h]
__int128 v25; // [rsp+30h] [rbp-C8h] BYREF
long long v26; // [rsp+40h] [rbp-B8h]
void *v27[5]; // [rsp+50h] [rbp-A8h] BYREF
void *v28; // [rsp+78h] [rbp-80h] BYREF
void *v29; // [rsp+80h] [rbp-78h]
_OWORD v30[7]; // [rsp+88h] [rbp-70h] BYREF
*(_OWORD *)a1 = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
v1 = a1 + 24;
*(_QWORD *)(a1 + 24) = a1 + 72;
*(_QWORD *)(a1 + 32) = 1LL;
*(_OWORD *)(a1 + 40) = 0LL;
*(_DWORD *)(a1 + 56) = 1065353216;
*(_OWORD *)(a1 + 64) = 0LL;
*(_OWORD *)(a1 + 80) = 0LL;
*(_QWORD *)(a1 + 96) = 0LL;
*(_QWORD *)(a1 + 104) = a1 + 152;
*(_QWORD *)(a1 + 112) = 1LL;
*(_OWORD *)(a1 + 120) = 0LL;
*(_DWORD *)(a1 + 136) = 1065353216;
*(_OWORD *)(a1 + 144) = 0LL;
v26 = 0LL;
v25 = 0LL;
testing::internal::SplitString((long long)&testing::FLAGS_gtest_filter[abi:cxx11], 45, &v25);
if ( *((_QWORD *)&v25 + 1) - (_QWORD)v25 < 0x21uLL )
{
testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter((long long)&v28, v25);
memset(v22, 0, 24);
v3 = *(void **)a1;
v4 = *(_OWORD *)(a1 + 8);
*(_QWORD *)a1 = v28;
*(_QWORD *)(a1 + 8) = v29;
*(_QWORD *)(a1 + 16) = *(_QWORD *)&v30[0];
v5 = v22[0];
v6 = v22[1];
v7 = v22[2];
v22[0] = v3;
*(_OWORD *)&v22[1] = v4;
v28 = v5;
v29 = v6;
*(_QWORD *)&v30[0] = v7;
std::vector<std::string>::~vector(v22);
std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::_M_move_assign(
v1,
(long long)v30 + 8);
std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable((char *)v30 + 8);
std::vector<std::string>::~vector(&v28);
}
else
{
v2 = *(_QWORD *)(v25 + 8);
v22[0] = &v22[2];
v24 = a1 + 24;
v23 = a1 + 104;
if ( v2 )
std::string::_M_construct<char *>(v22, *(_BYTE **)v25, *(_QWORD *)v25 + v2);
else
std::string::_M_construct<char const*>(v22, "*", (long long)"");
testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter((long long)&v28, (long long)v22);
memset(v27, 0, 24);
v8 = *(void **)a1;
v9 = *(_OWORD *)(a1 + 8);
*(_QWORD *)a1 = v28;
*(_QWORD *)(a1 + 8) = v29;
*(_QWORD *)(a1 + 16) = *(_QWORD *)&v30[0];
v10 = v27[0];
v11 = v27[1];
v12 = v27[2];
v27[0] = v8;
*(_OWORD *)&v27[1] = v9;
v28 = v10;
v29 = v11;
*(_QWORD *)&v30[0] = v12;
std::vector<std::string>::~vector(v27);
std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::_M_move_assign(
v1,
(long long)v30 + 8);
std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable((char *)v30 + 8);
std::vector<std::string>::~vector(&v28);
if ( v22[0] != &v22[2] )
operator delete(v22[0], (unsigned long long)v22[2] + 1);
v22[0] = &v22[2];
std::string::_M_construct<char *>(v22, *(_BYTE **)(v25 + 32), *(_QWORD *)(v25 + 32) + *(_QWORD *)(v25 + 40));
if ( *((_QWORD *)&v25 + 1) - (_QWORD)v25 >= 0x41uLL )
{
v13 = 2LL;
v14 = 72LL;
do
{
v27[0] = &v27[2];
std::string::_M_construct<char *>(v27, (_BYTE *)v22[0], (long long)v22[0] + (unsigned long long)v22[1]);
std::string::_M_replace_aux(v27, v27[1], 0LL, 1LL, 45LL);
v15 = std::string::_M_append(v27, *(_QWORD *)(v25 + v14 - 8));
v28 = v30;
v16 = (_OWORD *)(v15 + 16);
if ( *(_QWORD *)v15 == v15 + 16 )
{
v30[0] = *v16;
}
else
{
v28 = *(void **)v15;
*(_QWORD *)&v30[0] = *(_QWORD *)v16;
}
v29 = *(void **)(v15 + 8);
*(_QWORD *)v15 = v16;
*(_QWORD *)(v15 + 8) = 0LL;
*(_BYTE *)(v15 + 16) = 0;
std::string::operator=(v22, &v28);
if ( v28 != v30 )
operator delete(v28, *(_QWORD *)&v30[0] + 1LL);
if ( v27[0] != &v27[2] )
operator delete(v27[0], (unsigned long long)v27[2] + 1);
++v13;
v14 += 32LL;
}
while ( v13 < (long long)(*((_QWORD *)&v25 + 1) - v25) >> 5 );
}
testing::internal::`anonymous namespace'::UnitTestFilter::UnitTestFilter((long long)&v28, (long long)v22);
memset(v27, 0, 24);
v17 = *(void **)(a1 + 80);
v18 = *(_OWORD *)(a1 + 88);
*(_QWORD *)(a1 + 80) = v28;
*(_QWORD *)(a1 + 88) = v29;
*(_QWORD *)(a1 + 96) = *(_QWORD *)&v30[0];
v19 = v27[0];
v20 = v27[1];
v21 = v27[2];
v27[0] = v17;
*(_OWORD *)&v27[1] = v18;
v28 = v19;
v29 = v20;
*(_QWORD *)&v30[0] = v21;
std::vector<std::string>::~vector(v27);
std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::_M_move_assign(
v23,
(long long)v30 + 8);
std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable((char *)v30 + 8);
std::vector<std::string>::~vector(&v28);
if ( v22[0] != &v22[2] )
operator delete(v22[0], (unsigned long long)v22[2] + 1);
}
std::vector<std::string>::~vector(&v25);
}
|
PositiveAndNegativeUnitTestFilter:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc8
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI],XMM0
XOR EAX,EAX
MOV qword ptr [RDI + 0x10],RAX
LEA R14,[RDI + 0x18]
LEA RCX,[RDI + 0x48]
MOV qword ptr [RDI + 0x18],RCX
MOV ECX,0x1
MOV qword ptr [RDI + 0x20],RCX
MOVUPS xmmword ptr [RDI + 0x28],XMM0
MOV EDX,0x3f800000
MOV dword ptr [RDI + 0x38],EDX
LEA R15,[RDI + 0x68]
LEA RSI,[RDI + 0x98]
MOVUPS xmmword ptr [RDI + 0x40],XMM0
MOVUPS xmmword ptr [RDI + 0x50],XMM0
MOV qword ptr [RDI + 0x60],RAX
MOV qword ptr [RDI + 0x68],RSI
MOV qword ptr [RDI + 0x70],RCX
MOVUPS xmmword ptr [RDI + 0x78],XMM0
MOV dword ptr [RDI + 0x88],EDX
MOVUPS xmmword ptr [RDI + 0x90],XMM0
LEA RDX,[RSP + 0x30]
MOV qword ptr [RDX + 0x10],RAX
MOVAPS xmmword ptr [RDX],XMM0
LAB_0011fa19:
LEA RDI,[0x425de58]
MOV ESI,0x2d
CALL 0x00118767
MOV RSI,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RSP + 0x38]
SUB RAX,RSI
CMP RAX,0x21
JC 0x0011fa70
MOV RDX,qword ptr [RSI + 0x8]
LEA R13,[RSP + 0x10]
MOV qword ptr [R13 + -0x10],R13
TEST RDX,RDX
MOV qword ptr [RSP + 0x28],R14
MOV qword ptr [RSP + 0x20],R15
JZ 0x0011faf6
MOV RSI,qword ptr [RSI]
ADD RDX,RSI
LAB_0011fa63:
MOV RDI,RSP
CALL 0x0010f66a
JMP 0x0011fb0c
LAB_0011fa70:
LEA RDI,[RSP + 0x78]
CALL 0x0011f6f6
XORPS XMM0,XMM0
MOV RDI,RSP
MOVAPS xmmword ptr [RDI],XMM0
MOV qword ptr [RDI + 0x10],0x0
MOV RAX,qword ptr [RBX]
MOVUPS XMM0,xmmword ptr [RBX + 0x8]
LEA R15,[RSP + 0x90]
MOV RCX,qword ptr [R15 + -0x18]
MOV qword ptr [RBX],RCX
MOV RCX,qword ptr [R15 + -0x10]
MOV qword ptr [RBX + 0x8],RCX
MOV RCX,qword ptr [R15 + -0x8]
MOV qword ptr [RBX + 0x10],RCX
MOV RCX,qword ptr [RDI]
MOV RDX,qword ptr [RDI + 0x8]
MOV RSI,qword ptr [RDI + 0x10]
MOV qword ptr [RDI],RAX
MOVUPS xmmword ptr [RDI + 0x8],XMM0
MOV qword ptr [R15 + -0x18],RCX
MOV qword ptr [R15 + -0x10],RDX
MOV qword ptr [R15 + -0x8],RSI
CALL 0x0013538e
LAB_0011fad4:
MOV RDI,R14
MOV RSI,R15
CALL 0x00109c0e
MOV RDI,R15
CALL 0x0013a35e
LEA RDI,[RSP + 0x78]
CALL 0x0013538e
JMP 0x0011fd8d
LAB_0011faf6:
LEA RSI,[0x1410c0]
LEA RDX,[0x1410c1]
MOV RDI,RSP
CALL 0x0010fdfe
LAB_0011fb0c:
LEA RDI,[RSP + 0x78]
MOV RSI,RSP
CALL 0x0011f6f6
XORPS XMM0,XMM0
LEA RDI,[RSP + 0x50]
MOVAPS xmmword ptr [RDI],XMM0
MOV qword ptr [RDI + 0x10],0x0
MOV RAX,qword ptr [RBX]
MOVUPS XMM0,xmmword ptr [RBX + 0x8]
LEA R12,[RSP + 0x90]
MOV RCX,qword ptr [R12 + -0x18]
MOV qword ptr [RBX],RCX
MOV RCX,qword ptr [R12 + -0x10]
MOV qword ptr [RBX + 0x8],RCX
MOV RCX,qword ptr [R12 + -0x8]
MOV qword ptr [RBX + 0x10],RCX
MOV RCX,qword ptr [RDI]
MOV RDX,qword ptr [RDI + 0x8]
MOV RSI,qword ptr [RDI + 0x10]
MOV qword ptr [RDI],RAX
MOVUPS xmmword ptr [RDI + 0x8],XMM0
MOV qword ptr [R12 + -0x18],RCX
MOV qword ptr [R12 + -0x10],RDX
MOV qword ptr [R12 + -0x8],RSI
CALL 0x0013538e
LAB_0011fb7b:
MOV RDI,R14
MOV RSI,R12
CALL 0x00109c0e
MOV RDI,R12
CALL 0x0013a35e
LEA RDI,[RSP + 0x78]
CALL 0x0013538e
MOV RDI,qword ptr [RSP]
CMP RDI,R13
JZ 0x0011fbae
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001094c0
LAB_0011fbae:
MOV RAX,qword ptr [RSP + 0x30]
MOV RDI,RSP
MOV qword ptr [RDI],R13
MOV RSI,qword ptr [RAX + 0x20]
MOV RDX,qword ptr [RAX + 0x28]
ADD RDX,RSI
LAB_0011fbc4:
CALL 0x0010f66a
MOV RAX,qword ptr [RSP + 0x38]
SUB RAX,qword ptr [RSP + 0x30]
CMP RAX,0x41
JC 0x0011fce8
LEA R15,[RSP + 0x60]
MOV R14D,0x2
MOV R13D,0x48
LEA RBP,[RSP + 0x88]
LEA R12,[RSP + 0x50]
LAB_0011fbfb:
MOV qword ptr [RSP + 0x50],R15
MOV RSI,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x8]
ADD RDX,RSI
LAB_0011fc0c:
MOV RDI,R12
CALL 0x0010f66a
MOV RSI,qword ptr [RSP + 0x58]
LAB_0011fc19:
MOV ECX,0x1
MOV RDI,R12
XOR EDX,EDX
MOV R8D,0x2d
CALL 0x00109a50
MOV RAX,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RAX + R13*0x1 + -0x8]
MOV RDX,qword ptr [RAX + R13*0x1]
LAB_0011fc3c:
MOV RDI,R12
CALL 0x00109170
MOV qword ptr [RSP + 0x78],RBP
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x0011fc6a
MOV qword ptr [RSP + 0x78],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x88],RDX
JMP 0x0011fc71
LAB_0011fc6a:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RBP],XMM0
LAB_0011fc71:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x80],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
MOV RDI,RSP
LEA RSI,[RSP + 0x78]
CALL 0x00109670
MOV RDI,qword ptr [RSP + 0x78]
CMP RDI,RBP
JZ 0x0011fcb3
MOV RSI,qword ptr [RSP + 0x88]
INC RSI
CALL 0x001094c0
LAB_0011fcb3:
MOV RDI,qword ptr [RSP + 0x50]
CMP RDI,R15
JZ 0x0011fcca
MOV RSI,qword ptr [RSP + 0x60]
INC RSI
CALL 0x001094c0
LAB_0011fcca:
MOV RAX,qword ptr [RSP + 0x38]
SUB RAX,qword ptr [RSP + 0x30]
INC R14
SAR RAX,0x5
ADD R13,0x20
CMP R14,RAX
JC 0x0011fbfb
LAB_0011fce8:
LEA RDI,[RSP + 0x78]
MOV RSI,RSP
CALL 0x0011f6f6
XORPS XMM0,XMM0
LEA RDI,[RSP + 0x50]
MOVAPS xmmword ptr [RDI],XMM0
MOV qword ptr [RDI + 0x10],0x0
MOV RAX,qword ptr [RBX + 0x50]
MOVUPS XMM0,xmmword ptr [RBX + 0x58]
LEA R14,[RSP + 0x90]
MOV RCX,qword ptr [R14 + -0x18]
MOV qword ptr [RBX + 0x50],RCX
MOV RCX,qword ptr [R14 + -0x10]
MOV qword ptr [RBX + 0x58],RCX
MOV RCX,qword ptr [R14 + -0x8]
MOV qword ptr [RBX + 0x60],RCX
MOV RCX,qword ptr [RDI]
MOV RDX,qword ptr [RDI + 0x8]
MOV RSI,qword ptr [RDI + 0x10]
MOV qword ptr [RDI],RAX
MOVUPS xmmword ptr [RDI + 0x8],XMM0
MOV qword ptr [R14 + -0x18],RCX
MOV qword ptr [R14 + -0x10],RDX
MOV qword ptr [R14 + -0x8],RSI
CALL 0x0013538e
LAB_0011fd53:
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,R14
CALL 0x00109c0e
LAB_0011fd60:
LEA RBX,[RSP + 0x10]
MOV RDI,R14
CALL 0x0013a35e
LEA RDI,[RSP + 0x78]
CALL 0x0013538e
MOV RDI,qword ptr [RSP]
CMP RDI,RBX
JZ 0x0011fd8d
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001094c0
LAB_0011fd8d:
LEA RDI,[RSP + 0x30]
CALL 0x0013538e
ADD RSP,0xc8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* testing::internal::(anonymous
namespace)::PositiveAndNegativeUnitTestFilter::PositiveAndNegativeUnitTestFilter(std::__cxx11::string
const&) */
void __thiscall
testing::internal::(anonymous_namespace)::PositiveAndNegativeUnitTestFilter::
PositiveAndNegativeUnitTestFilter(PositiveAndNegativeUnitTestFilter *this,string *param_1)
{
PositiveAndNegativeUnitTestFilter *pPVar1;
long *plVar2;
long *plVar3;
long lVar4;
ulong uVar5;
long *local_f8;
long lStack_f0;
long local_e8 [2];
PositiveAndNegativeUnitTestFilter *local_d8;
PositiveAndNegativeUnitTestFilter *local_d0;
string *local_c8;
long lStack_c0;
int8 local_b8;
long *local_a8;
ulong uStack_a0;
long local_98 [3];
long *local_80;
long local_78;
long local_70;
long alStack_68 [7];
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
pPVar1 = this + 0x18;
*(PositiveAndNegativeUnitTestFilter **)(this + 0x18) = this + 0x48;
*(int8 *)(this + 0x20) = 1;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int4 *)(this + 0x38) = 0x3f800000;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
*(int8 *)(this + 0x50) = 0;
*(int8 *)(this + 0x58) = 0;
*(int8 *)(this + 0x60) = 0;
*(PositiveAndNegativeUnitTestFilter **)(this + 0x68) = this + 0x98;
*(int8 *)(this + 0x70) = 1;
*(int8 *)(this + 0x78) = 0;
*(int8 *)(this + 0x80) = 0;
*(int4 *)(this + 0x88) = 0x3f800000;
*(int8 *)(this + 0x90) = 0;
*(int8 *)(this + 0x98) = 0;
local_b8 = 0;
local_c8 = (string *)0x0;
lStack_c0 = 0;
/* try { // try from 0011fa19 to 0011fa29 has its CatchHandler @ 0011fdcb */
SplitString((string *)&FLAGS_gtest_filter_abi_cxx11_,'-',(vector *)&local_c8);
if ((ulong)(lStack_c0 - (long)local_c8) < 0x21) {
/* try { // try from 0011fa70 to 0011fa79 has its CatchHandler @ 0011fdc9 */
UnitTestFilter::UnitTestFilter((UnitTestFilter *)&local_80,local_c8);
local_f8 = *(long **)this;
lStack_f0 = *(long *)(this + 8);
local_e8[0] = *(long *)(this + 0x10);
*(long **)this = local_80;
*(long *)(this + 8) = local_78;
*(long *)(this + 0x10) = local_70;
local_80 = (long *)0x0;
local_78 = 0;
local_70 = 0;
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_f8);
/* try { // try from 0011fad4 to 0011fade has its CatchHandler @ 0011fdbf */
std::
_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>
::_M_move_assign(pPVar1,(_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>
*)alStack_68);
std::
_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>
::~_Hashtable((_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>
*)alStack_68);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_80);
}
else {
local_f8 = local_e8;
local_d8 = this + 0x68;
local_d0 = pPVar1;
if (*(long *)(local_c8 + 8) == 0) {
/* try { // try from 0011faf6 to 0011fb0b has its CatchHandler @ 0011fdc7 */
std::__cxx11::string::_M_construct<char_const*>(&local_f8,&kUniversalFilter,0x1410c1);
}
else {
/* try { // try from 0011fa63 to 0011fa6a has its CatchHandler @ 0011fdc7 */
std::__cxx11::string::_M_construct<char*>
(&local_f8,*(long *)local_c8,*(long *)(local_c8 + 8) + *(long *)local_c8);
}
/* try { // try from 0011fb0c to 0011fb18 has its CatchHandler @ 0011fdb1 */
UnitTestFilter::UnitTestFilter((UnitTestFilter *)&local_80,(string *)&local_f8);
local_a8 = *(long **)this;
uStack_a0 = *(ulong *)(this + 8);
local_98[0] = *(long *)(this + 0x10);
*(long **)this = local_80;
*(long *)(this + 8) = local_78;
*(long *)(this + 0x10) = local_70;
local_80 = (long *)0x0;
local_78 = 0;
local_70 = 0;
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_a8);
/* try { // try from 0011fb7b to 0011fb85 has its CatchHandler @ 0011fdaf */
std::
_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>
::_M_move_assign(pPVar1,(_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>
*)alStack_68);
std::
_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>
::~_Hashtable((_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>
*)alStack_68);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_80);
if (local_f8 != local_e8) {
operator_delete(local_f8,local_e8[0] + 1);
}
local_f8 = local_e8;
/* try { // try from 0011fbc4 to 0011fbc8 has its CatchHandler @ 0011fdad */
std::__cxx11::string::_M_construct<char*>
(&local_f8,*(long *)(local_c8 + 0x20),
*(long *)(local_c8 + 0x28) + *(long *)(local_c8 + 0x20));
if (0x40 < (ulong)(lStack_c0 - (long)local_c8)) {
uVar5 = 2;
lVar4 = 0x48;
do {
local_a8 = local_98;
/* try { // try from 0011fc0c to 0011fc13 has its CatchHandler @ 0011fdda */
std::__cxx11::string::_M_construct<char*>(&local_a8,local_f8,lStack_f0 + (long)local_f8);
/* try { // try from 0011fc19 to 0011fc2d has its CatchHandler @ 0011fddf */
std::__cxx11::string::_M_replace_aux((ulong)&local_a8,uStack_a0,0,'\x01');
/* try { // try from 0011fc3c to 0011fc43 has its CatchHandler @ 0011fde1 */
plVar2 = (long *)std::__cxx11::string::_M_append
((char *)&local_a8,*(ulong *)(local_c8 + lVar4 + -8));
plVar3 = plVar2 + 2;
if ((long *)*plVar2 == plVar3) {
local_70 = *plVar3;
alStack_68[0] = plVar2[3];
local_80 = &local_70;
}
else {
local_70 = *plVar3;
local_80 = (long *)*plVar2;
}
local_78 = plVar2[1];
*plVar2 = (long)plVar3;
plVar2[1] = 0;
*(int1 *)(plVar2 + 2) = 0;
std::__cxx11::string::operator=((string *)&local_f8,(string *)&local_80);
if (local_80 != &local_70) {
operator_delete(local_80,local_70 + 1);
}
if (local_a8 != local_98) {
operator_delete(local_a8,local_98[0] + 1);
}
uVar5 = uVar5 + 1;
lVar4 = lVar4 + 0x20;
} while (uVar5 < (ulong)(lStack_c0 - (long)local_c8 >> 5));
}
/* try { // try from 0011fce8 to 0011fcf4 has its CatchHandler @ 0011fdab */
UnitTestFilter::UnitTestFilter((UnitTestFilter *)&local_80,(string *)&local_f8);
local_a8 = *(long **)(this + 0x50);
uStack_a0 = *(ulong *)(this + 0x58);
local_98[0] = *(long *)(this + 0x60);
*(long **)(this + 0x50) = local_80;
*(long *)(this + 0x58) = local_78;
*(long *)(this + 0x60) = local_70;
local_80 = (long *)0x0;
local_78 = 0;
local_70 = 0;
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_a8);
/* try { // try from 0011fd53 to 0011fd5f has its CatchHandler @ 0011fda9 */
std::
_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>
::_M_move_assign(local_d8,(_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>
*)alStack_68);
std::
_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>
::~_Hashtable((_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>
*)alStack_68);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_80);
if (local_f8 != local_e8) {
operator_delete(local_f8,local_e8[0] + 1);
}
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_c8);
return;
}
|
|
65,052 |
LefDefParser::lefwLayerRoutingMinenclosedarea(int, double*, double*)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
|
int
lefwLayerRoutingMinenclosedarea(int numMinenclosed,
double *area,
double *width)
{
int i;
if (!lefwFile)
return LEFW_UNINITIALIZED;
if (lefwState != LEFW_LAYERROUTING_START &&
lefwState != LEFW_LAYERROUTING)
return LEFW_BAD_ORDER;
if (!lefwIsRouting)
return LEFW_BAD_DATA; // only routing calls this func
if (prtSemiColon) {
// the previous statement hasn't written the ; yet
if (lefwWriteEncrypt)
encPrint(lefwFile, (char*) ";\n");
else
fprintf(lefwFile, ";\n");
prtSemiColon = 0;
}
if (lefwWriteEncrypt) {
for (i = 0; i < numMinenclosed; i++) {
encPrint(lefwFile, (char*) " MINENCLOSEDAREA %.11g ", area[i]);
if (width[i] != 0)
encPrint(lefwFile, (char*) "WIDTH %.11g ", width[i]);
encPrint(lefwFile, (char*) ";\n");
}
} else {
for (i = 0; i < numMinenclosed; i++) {
fprintf(lefwFile, " MINENCLOSEDAREA %.11g ", area[i]);
if (width[i] != 0)
fprintf(lefwFile, "WIDTH %.11g ", width[i]);
fprintf(lefwFile, ";\n");
}
}
lefwLines++;
return LEFW_OK;
}
|
O3
|
cpp
|
LefDefParser::lefwLayerRoutingMinenclosedarea(int, double*, double*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x78c21(%rip), %r12 # 0x8d0f0
movq (%r12), %rcx
testq %rcx, %rcx
je 0x1452d
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
leaq 0x78e59(%rip), %rax # 0x8d340
movl (%rax), %edx
cmpl $0x1f, %edx
je 0x144fc
movl $0x2, %eax
cmpl $0x7, %edx
jne 0x14644
leaq 0x78eb1(%rip), %rax # 0x8d3b4
cmpl $0x0, (%rax)
je 0x14537
cmpb $0x1, 0x78ed5(%rip) # 0x8d3e4
jne 0x1455e
cmpb $0x1, 0x78ec4(%rip) # 0x8d3dc
jne 0x14541
leaq 0x462e0(%rip), %rsi # 0x5a801
movq %rcx, %rdi
xorl %eax, %eax
callq 0x55afd
jmp 0x14557
movl $0x1, %eax
jmp 0x14644
movl $0x3, %eax
jmp 0x14644
leaq 0x462b9(%rip), %rdi # 0x5a801
movl $0x2, %esi
movl $0x1, %edx
callq 0x23d0
movb $0x0, 0x78e86(%rip) # 0x8d3e4
cmpb $0x0, 0x78e77(%rip) # 0x8d3dc
je 0x145cf
testl %ebp, %ebp
jle 0x14639
movl %ebp, %ebp
leaq 0x46289(%rip), %r13 # 0x5a801
xorl %r15d, %r15d
movq (%r12), %rdi
movsd (%r14,%r15,8), %xmm0
leaq 0x46ba9(%rip), %rsi # 0x5b135
movb $0x1, %al
callq 0x55afd
movsd (%rbx,%r15,8), %xmm0
ucomisd 0x5653f(%rip), %xmm0 # 0x6aae0
jne 0x145a5
jnp 0x145b7
movq (%r12), %rdi
leaq 0x4672c(%rip), %rsi # 0x5acdc
movb $0x1, %al
callq 0x55afd
movq (%r12), %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x55afd
incq %r15
cmpq %r15, %rbp
jne 0x1457b
jmp 0x14639
testl %ebp, %ebp
jle 0x14639
movl %ebp, %ebp
xorl %r15d, %r15d
leaq 0x46222(%rip), %r13 # 0x5a801
movq (%r12), %rdi
movsd (%r14,%r15,8), %xmm0
leaq 0x46b45(%rip), %rsi # 0x5b135
movb $0x1, %al
callq 0x22e0
movsd (%rbx,%r15,8), %xmm0
ucomisd 0x564db(%rip), %xmm0 # 0x6aae0
jne 0x14609
jnp 0x1461b
movq (%r12), %rdi
leaq 0x466c8(%rip), %rsi # 0x5acdc
movb $0x1, %al
callq 0x22e0
movq (%r12), %rcx
movl $0x2, %esi
movl $0x1, %edx
movq %r13, %rdi
callq 0x23d0
incq %r15
cmpq %r15, %rbp
jne 0x145df
leaq 0x78cfc(%rip), %rax # 0x8d33c
incl (%rax)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ZN12LefDefParser31lefwLayerRoutingMinenclosedareaEiPdS0_:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
lea r12, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rcx, [r12]
test rcx, rcx
jz short loc_1452D
mov rbx, rdx
mov r14, rsi
mov ebp, edi
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
mov edx, [rax]
cmp edx, 1Fh
jz short loc_144FC
mov eax, 2
cmp edx, 7
jnz loc_14644
loc_144FC:
lea rax, _ZN12LefDefParser13lefwIsRoutingE; LefDefParser::lefwIsRouting
cmp dword ptr [rax], 0
jz short loc_14537
cmp cs:_ZN12LefDefParserL12prtSemiColonE, 1; LefDefParser::prtSemiColon
jnz short loc_1455E
cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 1; LefDefParser::lefwWriteEncrypt
jnz short loc_14541
lea rsi, aDividercharS+11h; ";\n"
mov rdi, rcx
xor eax, eax
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp short loc_14557
loc_1452D:
mov eax, 1
jmp loc_14644
loc_14537:
mov eax, 3
jmp loc_14644
loc_14541:
lea rdi, aDividercharS+11h; ";\n"
mov esi, 2
mov edx, 1
call _fwrite
loc_14557:
mov cs:_ZN12LefDefParserL12prtSemiColonE, 0; LefDefParser::prtSemiColon
loc_1455E:
cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 0; LefDefParser::lefwWriteEncrypt
jz short loc_145CF
test ebp, ebp
jle loc_14639
mov ebp, ebp
lea r13, aDividercharS+11h; ";\n"
xor r15d, r15d
loc_1457B:
mov rdi, [r12]
movsd xmm0, qword ptr [r14+r15*8]
lea rsi, aMinenclosedare_1; " MINENCLOSEDAREA %.11g "
mov al, 1
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
movsd xmm0, qword ptr [rbx+r15*8]
ucomisd xmm0, cs:qword_6AAE0
jnz short loc_145A5
jnp short loc_145B7
loc_145A5:
mov rdi, [r12]
lea rsi, aMinimumcut11gW+14h; "WIDTH %.11g "
mov al, 1
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
loc_145B7:
mov rdi, [r12]
mov rsi, r13
xor eax, eax
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
inc r15
cmp rbp, r15
jnz short loc_1457B
jmp short loc_14639
loc_145CF:
test ebp, ebp
jle short loc_14639
mov ebp, ebp
xor r15d, r15d
lea r13, aDividercharS+11h; ";\n"
loc_145DF:
mov rdi, [r12]
movsd xmm0, qword ptr [r14+r15*8]
lea rsi, aMinenclosedare_1; " MINENCLOSEDAREA %.11g "
mov al, 1
call _fprintf
movsd xmm0, qword ptr [rbx+r15*8]
ucomisd xmm0, cs:qword_6AAE0
jnz short loc_14609
jnp short loc_1461B
loc_14609:
mov rdi, [r12]
lea rsi, aMinimumcut11gW+14h; "WIDTH %.11g "
mov al, 1
call _fprintf
loc_1461B:
mov rcx, [r12]
mov esi, 2
mov edx, 1
mov rdi, r13
call _fwrite
inc r15
cmp rbp, r15
jnz short loc_145DF
loc_14639:
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
inc dword ptr [rax]
xor eax, eax
loc_14644:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long LefDefParser::lefwLayerRoutingMinenclosedarea(
LefDefParser *this,
long long a2,
double *a3,
double *a4,
int a5,
int a6)
{
int v6; // ecx
unsigned int v8; // edx
long long result; // rax
long long v10; // r15
int v11; // edx
int v12; // ecx
int v13; // r8d
int v14; // r9d
long long v15; // r15
double v16; // xmm0_8
v6 = LefDefParser::lefwFile;
if ( !*(_QWORD *)&LefDefParser::lefwFile )
return 1LL;
v8 = LefDefParser::lefwState;
if ( LefDefParser::lefwState == 31 || (result = 2LL, LefDefParser::lefwState == 7) )
{
if ( LefDefParser::lefwIsRouting )
{
if ( LefDefParser::prtSemiColon == 1 )
{
if ( LefDefParser::lefwWriteEncrypt == 1 )
LefDefParser::encPrint(
LefDefParser::lefwFile,
(unsigned int)";\n",
LefDefParser::lefwState,
LefDefParser::lefwFile,
a5,
a6);
else
fwrite(";\n", 2LL, 1LL, *(_QWORD *)&LefDefParser::lefwFile);
LefDefParser::prtSemiColon = 0;
}
if ( LefDefParser::lefwWriteEncrypt )
{
if ( (int)this > 0 )
{
v10 = 0LL;
do
{
LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)" MINENCLOSEDAREA %.11g ", v8, v6, a5, a6);
if ( a3[v10] != 0.0 )
LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"WIDTH %.11g ", v11, v12, v13, v14);
LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)";\n", v11, v12, v13, v14);
++v10;
}
while ( (unsigned int)this != v10 );
}
}
else if ( (int)this > 0 )
{
v15 = 0LL;
do
{
fprintf(*(_QWORD *)&LefDefParser::lefwFile, " MINENCLOSEDAREA %.11g ", *(double *)(a2 + 8 * v15));
v16 = a3[v15];
if ( v16 != 0.0 )
fprintf(*(_QWORD *)&LefDefParser::lefwFile, "WIDTH %.11g ", v16);
fwrite(";\n", 2LL, 1LL, *(_QWORD *)&LefDefParser::lefwFile);
++v15;
}
while ( (unsigned int)this != v15 );
}
++LefDefParser::lefwLines;
return 0LL;
}
else
{
return 3LL;
}
}
return result;
}
|
lefwLayerRoutingMinenclosedarea:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
LEA R12,[0x18d0f0]
MOV RCX,qword ptr [R12]
TEST RCX,RCX
JZ 0x0011452d
MOV RBX,RDX
MOV R14,RSI
MOV EBP,EDI
LEA RAX,[0x18d340]
MOV EDX,dword ptr [RAX]
CMP EDX,0x1f
JZ 0x001144fc
MOV EAX,0x2
CMP EDX,0x7
JNZ 0x00114644
LAB_001144fc:
LEA RAX,[0x18d3b4]
CMP dword ptr [RAX],0x0
JZ 0x00114537
CMP byte ptr [0x0018d3e4],0x1
JNZ 0x0011455e
CMP byte ptr [0x0018d3dc],0x1
JNZ 0x00114541
LEA RSI,[0x15a801]
MOV RDI,RCX
XOR EAX,EAX
CALL 0x00155afd
JMP 0x00114557
LAB_0011452d:
MOV EAX,0x1
JMP 0x00114644
LAB_00114537:
MOV EAX,0x3
JMP 0x00114644
LAB_00114541:
LEA RDI,[0x15a801]
MOV ESI,0x2
MOV EDX,0x1
CALL 0x001023d0
LAB_00114557:
MOV byte ptr [0x0018d3e4],0x0
LAB_0011455e:
CMP byte ptr [0x0018d3dc],0x0
JZ 0x001145cf
TEST EBP,EBP
JLE 0x00114639
MOV EBP,EBP
LEA R13,[0x15a801]
XOR R15D,R15D
LAB_0011457b:
MOV RDI,qword ptr [R12]
MOVSD XMM0,qword ptr [R14 + R15*0x8]
LEA RSI,[0x15b135]
MOV AL,0x1
CALL 0x00155afd
MOVSD XMM0,qword ptr [RBX + R15*0x8]
UCOMISD XMM0,qword ptr [0x0016aae0]
JNZ 0x001145a5
JNP 0x001145b7
LAB_001145a5:
MOV RDI,qword ptr [R12]
LEA RSI,[0x15acdc]
MOV AL,0x1
CALL 0x00155afd
LAB_001145b7:
MOV RDI,qword ptr [R12]
MOV RSI,R13
XOR EAX,EAX
CALL 0x00155afd
INC R15
CMP RBP,R15
JNZ 0x0011457b
JMP 0x00114639
LAB_001145cf:
TEST EBP,EBP
JLE 0x00114639
MOV EBP,EBP
XOR R15D,R15D
LEA R13,[0x15a801]
LAB_001145df:
MOV RDI,qword ptr [R12]
MOVSD XMM0,qword ptr [R14 + R15*0x8]
LEA RSI,[0x15b135]
MOV AL,0x1
CALL 0x001022e0
MOVSD XMM0,qword ptr [RBX + R15*0x8]
UCOMISD XMM0,qword ptr [0x0016aae0]
JNZ 0x00114609
JNP 0x0011461b
LAB_00114609:
MOV RDI,qword ptr [R12]
LEA RSI,[0x15acdc]
MOV AL,0x1
CALL 0x001022e0
LAB_0011461b:
MOV RCX,qword ptr [R12]
MOV ESI,0x2
MOV EDX,0x1
MOV RDI,R13
CALL 0x001023d0
INC R15
CMP RBP,R15
JNZ 0x001145df
LAB_00114639:
LEA RAX,[0x18d33c]
INC dword ptr [RAX]
XOR EAX,EAX
LAB_00114644:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* LefDefParser::lefwLayerRoutingMinenclosedarea(int, double*, double*) */
int8
LefDefParser::lefwLayerRoutingMinenclosedarea(int param_1,double *param_2,double *param_3)
{
int8 uVar1;
ulong uVar2;
if (lefwFile == (_IO_FILE *)0x0) {
uVar1 = 1;
}
else if ((lefwState == 0x1f) || (uVar1 = 2, lefwState == 7)) {
if (lefwIsRouting == 0) {
uVar1 = 3;
}
else {
if (prtSemiColon == '\x01') {
if (lefwWriteEncrypt == '\x01') {
encPrint(lefwFile,";\n");
}
else {
fwrite(";\n",2,1,lefwFile);
}
prtSemiColon = '\0';
}
if (lefwWriteEncrypt == '\0') {
if (0 < param_1) {
uVar2 = 0;
do {
fprintf(lefwFile," MINENCLOSEDAREA %.11g ",param_2[uVar2]);
if ((param_3[uVar2] != _DAT_0016aae0) || (NAN(param_3[uVar2]) || NAN(_DAT_0016aae0))) {
fprintf(lefwFile,"WIDTH %.11g ");
}
fwrite(";\n",2,1,lefwFile);
uVar2 = uVar2 + 1;
} while ((uint)param_1 != uVar2);
}
}
else if (0 < param_1) {
uVar2 = 0;
do {
encPrint(lefwFile," MINENCLOSEDAREA %.11g ",param_2[uVar2]);
if ((param_3[uVar2] != _DAT_0016aae0) || (NAN(param_3[uVar2]) || NAN(_DAT_0016aae0))) {
encPrint(lefwFile,"WIDTH %.11g ");
}
encPrint(lefwFile,";\n");
uVar2 = uVar2 + 1;
} while ((uint)param_1 != uVar2);
}
lefwLines = lefwLines + 1;
uVar1 = 0;
}
}
return uVar1;
}
|
|
65,053 |
parse_prefixed_json_tool_call_array(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)
|
monkey531[P]llama/common/chat.cpp
|
static common_chat_msg parse_prefixed_json_tool_call_array(const std::string& input, const std::string & prefix, size_t rstrip_prefix = 0) {
auto content_end = input.find(prefix);
size_t tc_start = std::string::npos;
common_chat_msg result;
result.role = "assistant";
const auto process_tool_calls = [&](const json & tool_calls) {
for (const auto & tool_call : tool_calls) {
const auto & arguments = tool_call["arguments"];
result.tool_calls.push_back({
tool_call["name"],
arguments.is_string() ? arguments.get<std::string>() : arguments.dump(),
tool_call.contains("id") ? tool_call["id"] : "",
});
}
};
if (content_end == std::string::npos) {
result.content = input;
} else {
tc_start = content_end + prefix.size() - rstrip_prefix;
result.content = input.substr(0, content_end);
auto tool_calls = json::parse(input.substr(tc_start));
process_tool_calls(tool_calls);
}
return result;
}
|
O2
|
cpp
|
parse_prefixed_json_tool_call_array(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r13
movq %rsi, %rdi
movq %rdx, %rsi
xorl %edx, %edx
callq 0x21d90
movq %rax, %r14
movq %r13, %rdi
callq 0x939ac
leaq 0xaff3(%rip), %rsi # 0x9c656
movq %r13, 0x8(%rsp)
movq %r13, %rdi
callq 0x21d20
cmpq $-0x1, %r14
je 0x91865
movq 0x8(%r12), %r12
leaq 0x50(%rsp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
movq %r14, %rcx
callq 0x21720
subq %r15, %r14
addq %r12, %r14
movq 0x8(%rsp), %rax
leaq 0x20(%rax), %rdi
leaq 0x50(%rsp), %r15
movq %r15, %rsi
callq 0x21850
movq %r15, %rdi
callq 0x21dc8
leaq 0x50(%rsp), %rdi
pushq $-0x1
popq %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x21720
xorps %xmm0, %xmm0
leaq 0xb0(%rsp), %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
pushq $0x1
popq %rcx
xorl %r8d, %r8d
callq 0x75f56
leaq 0xb0(%rsp), %rdi
callq 0x2a646
leaq 0x50(%rsp), %r15
movq %r15, %rdi
callq 0x21dc8
leaq 0x20(%rsp), %r12
leaq 0x10(%rsp), %rbx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x488da
leaq 0xd8(%rsp), %rdi
movq %rbx, %rsi
callq 0x4896e
movq 0x8(%rsp), %rax
leaq 0x40(%rax), %rbx
leaq 0x40(%rsp), %rbp
movq %r12, %rdi
leaq 0xd8(%rsp), %rsi
callq 0x45d24
testb %al, %al
je 0x91854
movq %r12, %rdi
callq 0x45d2e
movq %rax, %r13
movq %rax, %rdi
leaq 0xc211(%rip), %rsi # 0x9d97a
callq 0x4574a
movq %rax, %r14
movq %r13, %rdi
leaq 0xc7a3(%rip), %rsi # 0x9df1e
callq 0x4574a
movq %r15, %rdi
movq %rax, %rsi
callq 0x47640
cmpb $0x3, (%r14)
jne 0x917a0
leaq 0x70(%rsp), %rdi
movq %r14, %rsi
callq 0x47640
jmp 0x917b9
leaq 0x70(%rsp), %rdi
movq %r14, %rsi
pushq $-0x1
popq %rdx
pushq $0x20
popq %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x47264
movq %r13, %rdi
leaq 0xb2f2(%rip), %rsi # 0x9cab5
callq 0x7656e
testb %al, %al
je 0x917e8
movq %r13, %rdi
leaq 0xb2df(%rip), %rsi # 0x9cab5
callq 0x4574a
movq %rbp, %rdi
movq %rax, %rsi
callq 0x2fa10
jmp 0x917f7
movq %rbp, %rdi
leaq 0x344a(%rip), %rsi # 0x94c3c
callq 0x80daa
leaq 0x90(%rsp), %rdi
movq %rbp, %rsi
callq 0x47640
movq %rbx, %rdi
movq %r15, %rsi
callq 0x93a30
movq %r15, %rdi
callq 0x82e24
movq %rbp, %rdi
callq 0x2fe74
movq 0x20(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x9183f
cmpl $0x1, %eax
jne 0x9184a
addq $0x30, 0x28(%rsp)
jmp 0x9173c
addq $0x10, 0x30(%rsp)
jmp 0x9173c
incq 0x38(%rsp)
jmp 0x9173c
leaq 0x10(%rsp), %rdi
callq 0x2fe74
movq 0x8(%rsp), %r14
jmp 0x91876
movq 0x8(%rsp), %r14
leaq 0x20(%r14), %rdi
movq %rbx, %rsi
callq 0x213f0
movq %r14, %rax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x918ad
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x2a646
leaq 0x50(%rsp), %rdi
callq 0x21dc8
jmp 0x91905
jmp 0x918ad
jmp 0x918ad
movq %rax, %rbx
jmp 0x91905
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x82e24
xorl %ebp, %ebp
jmp 0x918c9
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x40(%rsp), %rdi
callq 0x2fe74
testb %bpl, %bpl
jne 0x918e2
jmp 0x918fb
movq %rax, %rbx
jmp 0x918ec
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x21dc8
leaq 0x50(%rsp), %rdi
callq 0x21dc8
jmp 0x918fb
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2fe74
movq 0x8(%rsp), %rdi
callq 0x5958c
movq %rbx, %rdi
callq 0x21be0
|
_ZL35parse_prefixed_json_tool_call_arrayRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_m:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0F8h
mov r15, rcx
mov r12, rdx
mov rbx, rsi
mov r13, rdi
mov rdi, rsi
mov rsi, rdx
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m; std::string::find(std::string const&,ulong)
mov r14, rax
mov rdi, r13; this
call _ZN15common_chat_msgC2Ev; common_chat_msg::common_chat_msg(void)
lea rsi, aYouAreAHelpful+12h; "assistant"
mov [rsp+128h+var_120], r13
mov rdi, r13
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEPKc; std::string::assign(char const*)
cmp r14, 0FFFFFFFFFFFFFFFFh
jz loc_91865
mov r12, [r12+8]
lea rdi, [rsp+128h+var_D8]
mov rsi, rbx
xor edx, edx
mov rcx, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
sub r14, r15
add r14, r12
mov rax, [rsp+128h+var_120]
lea rdi, [rax+20h]
lea r15, [rsp+128h+var_D8]
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+128h+var_D8]
push 0FFFFFFFFFFFFFFFFh
pop rcx
mov rsi, rbx
mov rdx, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
xorps xmm0, xmm0
lea rdx, [rsp+128h+var_78]
movaps xmmword ptr [rdx+10h], xmm0
movaps xmmword ptr [rdx], xmm0
lea rdi, [rsp+128h+var_118]
lea rsi, [rsp+128h+var_D8]
push 1
pop rcx
xor r8d, r8d
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::parse<std::string>(std::string &&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool)
lea rdi, [rsp+128h+var_78]; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
lea r15, [rsp+128h+var_D8]
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea r12, [rsp+128h+var_108]
lea rbx, [rsp+128h+var_118]
mov rdi, r12
mov rsi, rbx
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6cbeginEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cbegin(void)
lea rdi, [rsp+128h+var_50]
mov rsi, rbx
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4cendEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cend(void)
mov rax, [rsp+128h+var_120]
lea rbx, [rax+40h]
lea rbp, [rsp+128h+var_E8]
loc_9173C:
mov rdi, r12
lea rsi, [rsp+128h+var_50]
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
test al, al
jz loc_91854
mov rdi, r12
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void)
mov r13, rax
mov rdi, rax
lea rsi, aKeywordArgumen+9; "arguments"
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *)
mov r14, rax
mov rdi, r13
lea rsi, aNamespacedSetO+2Fh; "name"
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *)
mov rdi, r15
mov rsi, rax
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
cmp byte ptr [r14], 3
jnz short loc_917A0
lea rdi, [rsp+128h+var_B8]
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
jmp short loc_917B9
loc_917A0:
lea rdi, [rsp+128h+var_B8]
mov rsi, r14
push 0FFFFFFFFFFFFFFFFh
pop rdx
push 20h ; ' '
pop rcx
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
loc_917B9:
mov rdi, r13
lea rsi, aToolCallId+0Ah; "id"
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_
test al, al
jz short loc_917E8
mov rdi, r13
lea rsi, aToolCallId+0Ah; "id"
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *)
mov rdi, rbp
mov rsi, rax
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
jmp short loc_917F7
loc_917E8:
mov rdi, rbp
lea rsi, aNoteDebugGramm+0CAh; ""
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
loc_917F7:
lea rdi, [rsp+128h+var_98]
mov rsi, rbp
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
mov rdi, rbx
mov rsi, r15
call _ZNSt6vectorI16common_tool_callSaIS0_EE12emplace_backIJS0_EEERS0_DpOT_; std::vector<common_tool_call>::emplace_back<common_tool_call>(common_tool_call &&)
mov rdi, r15; this
call _ZN16common_tool_callD2Ev; common_tool_call::~common_tool_call()
mov rdi, rbp
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rax, [rsp+128h+var_108]
movzx eax, byte ptr [rax]
cmp eax, 2
jz short loc_9183F
cmp eax, 1
jnz short loc_9184A
add [rsp+128h+var_100], 30h ; '0'
jmp loc_9173C
loc_9183F:
add [rsp+128h+var_F8], 10h
jmp loc_9173C
loc_9184A:
inc [rsp+128h+var_F0]
jmp loc_9173C
loc_91854:
lea rdi, [rsp+128h+var_118]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov r14, [rsp+128h+var_120]
jmp short loc_91876
loc_91865:
mov r14, [rsp+128h+var_120]
lea rdi, [r14+20h]
mov rsi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
loc_91876:
mov rax, r14
add rsp, 0F8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_918AD
mov rbx, rax
lea rdi, [rsp+arg_A8]; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_91905
jmp short loc_918AD
jmp short $+2
loc_918AD:
mov rbx, rax
jmp short loc_91905
mov rbx, rax
lea rdi, [rsp+arg_48]; this
call _ZN16common_tool_callD2Ev; common_tool_call::~common_tool_call()
xor ebp, ebp
jmp short loc_918C9
mov rbx, rax
mov bpl, 1
loc_918C9:
lea rdi, [rsp+arg_38]
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()
test bpl, bpl
jnz short loc_918E2
jmp short loc_918FB
mov rbx, rax
jmp short loc_918EC
mov rbx, rax
loc_918E2:
lea rdi, [rsp+arg_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_918EC:
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_918FB
mov rbx, rax
loc_918FB:
lea rdi, [rsp+arg_8]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_91905:
mov rdi, [rsp+arg_0]; this
call _ZN15common_chat_msgD2Ev; common_chat_msg::~common_chat_msg()
mov rdi, rbx
call __Unwind_Resume
|
common_chat_msg * parse_prefixed_json_tool_call_array(
common_chat_msg *this,
long long a2,
long long a3,
long long a4)
{
long long v6; // r14
long long v7; // r12
long long v8; // r13
_BYTE *v9; // r14
long long v10; // rax
unsigned __int8 *v11; // rax
int v12; // eax
common_chat_msg *v13; // r14
_BYTE v15[16]; // [rsp+10h] [rbp-118h] BYREF
unsigned __int8 *v16; // [rsp+20h] [rbp-108h] BYREF
long long v17; // [rsp+28h] [rbp-100h]
long long v18; // [rsp+30h] [rbp-F8h]
long long v19; // [rsp+38h] [rbp-F0h]
unsigned __int8 v20[16]; // [rsp+40h] [rbp-E8h] BYREF
long long v21[4]; // [rsp+50h] [rbp-D8h] BYREF
_BYTE v22[32]; // [rsp+70h] [rbp-B8h] BYREF
_BYTE v23[32]; // [rsp+90h] [rbp-98h] BYREF
_BYTE v24[40]; // [rsp+B0h] [rbp-78h] BYREF
_BYTE v25[80]; // [rsp+D8h] [rbp-50h] BYREF
v6 = std::string::find(a2, a3, 0LL);
common_chat_msg::common_chat_msg(this);
std::string::assign(this, "assistant");
if ( v6 == -1 )
{
v13 = this;
std::string::_M_assign((char *)this + 32, a2);
}
else
{
v7 = *(_QWORD *)(a3 + 8);
std::string::substr(v21, a2, 0LL, v6);
std::string::operator=((char *)this + 32, v21);
std::string::~string(v21);
std::string::substr(v21, a2, v7 + v6 - a4, -1LL);
memset(v24, 0, 32);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parse<std::string>(
v15,
v21,
(long long)v24,
1u,
0);
std::_Function_base::~_Function_base((std::_Function_base *)v24);
std::string::~string(v21);
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>::cbegin(
(long long)&v16,
(long long)v15);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::cend(
(long long)v25,
(long long)v15);
while ( ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_((long long)&v16) )
{
v8 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(&v16);
v9 = (_BYTE *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
v8,
(long long)"arguments");
v10 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
v8,
(long long)"name");
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
(long long)v21,
v10);
if ( *v9 == 3 )
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
(long long)v22,
(long long)v9);
else
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
(long long)v22,
(long long)v9,
-1,
32,
0,
0);
if ( ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_(v8) )
{
v11 = (unsigned __int8 *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
v8,
(long long)"id");
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(
v20,
v11);
}
else
{
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_((char *)v20);
}
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
(long long)v23,
(long long)v20);
std::vector<common_tool_call>::emplace_back<common_tool_call>((char *)this + 64, v21);
common_tool_call::~common_tool_call((common_tool_call *)v21);
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(v20);
v12 = *v16;
if ( v12 == 2 )
{
v18 += 16LL;
}
else if ( v12 == 1 )
{
v17 += 48LL;
}
else
{
++v19;
}
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v15);
return this;
}
return v13;
}
|
parse_prefixed_json_tool_call_array:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xf8
MOV R15,RCX
MOV R12,RDX
MOV RBX,RSI
MOV R13,RDI
MOV RDI,RSI
MOV RSI,RDX
XOR EDX,EDX
CALL 0x00121d90
MOV R14,RAX
MOV RDI,R13
CALL 0x001939ac
LAB_0019165c:
LEA RSI,[0x19c656]
MOV qword ptr [RSP + 0x8],R13
MOV RDI,R13
CALL 0x00121d20
CMP R14,-0x1
JZ 0x00191865
MOV R12,qword ptr [R12 + 0x8]
LAB_0019167f:
LEA RDI,[RSP + 0x50]
MOV RSI,RBX
XOR EDX,EDX
MOV RCX,R14
CALL 0x00121720
SUB R14,R15
ADD R14,R12
MOV RAX,qword ptr [RSP + 0x8]
LEA RDI,[RAX + 0x20]
LEA R15,[RSP + 0x50]
MOV RSI,R15
CALL 0x00121850
MOV RDI,R15
CALL 0x00121dc8
LAB_001916b5:
LEA RDI,[RSP + 0x50]
PUSH -0x1
POP RCX
MOV RSI,RBX
MOV RDX,R14
CALL 0x00121720
XORPS XMM0,XMM0
LEA RDX,[RSP + 0xb0]
MOVAPS xmmword ptr [RDX + 0x10],XMM0
MOVAPS xmmword ptr [RDX],XMM0
LAB_001916da:
LEA RDI,[RSP + 0x10]
LEA RSI,[RSP + 0x50]
PUSH 0x1
POP RCX
XOR R8D,R8D
CALL 0x00175f56
LEA RDI,[RSP + 0xb0]
CALL 0x0012a646
LEA R15,[RSP + 0x50]
MOV RDI,R15
CALL 0x00121dc8
LEA R12,[RSP + 0x20]
LEA RBX,[RSP + 0x10]
MOV RDI,R12
MOV RSI,RBX
CALL 0x001488da
LEA RDI,[RSP + 0xd8]
MOV RSI,RBX
CALL 0x0014896e
MOV RAX,qword ptr [RSP + 0x8]
LEA RBX,[RAX + 0x40]
LEA RBP,[RSP + 0x40]
LAB_0019173c:
MOV RDI,R12
LEA RSI,[RSP + 0xd8]
CALL 0x00145d24
TEST AL,AL
JZ 0x00191854
MOV RDI,R12
CALL 0x00145d2e
MOV R13,RAX
MOV RDI,RAX
LEA RSI,[0x19d97a]
CALL 0x0014574a
MOV R14,RAX
MOV RDI,R13
LEA RSI,[0x19df1e]
CALL 0x0014574a
MOV RDI,R15
MOV RSI,RAX
CALL 0x00147640
CMP byte ptr [R14],0x3
JNZ 0x001917a0
LAB_00191791:
LEA RDI,[RSP + 0x70]
MOV RSI,R14
CALL 0x00147640
JMP 0x001917b9
LAB_001917a0:
LEA RDI,[RSP + 0x70]
MOV RSI,R14
PUSH -0x1
POP RDX
PUSH 0x20
POP RCX
XOR R8D,R8D
XOR R9D,R9D
CALL 0x00147264
LAB_001917b9:
MOV RDI,R13
LEA RSI,[0x19cab5]
CALL 0x0017656e
TEST AL,AL
JZ 0x001917e8
MOV RDI,R13
LEA RSI,[0x19cab5]
CALL 0x0014574a
MOV RDI,RBP
MOV RSI,RAX
CALL 0x0012fa10
JMP 0x001917f7
LAB_001917e8:
MOV RDI,RBP
LEA RSI,[0x194c3c]
CALL 0x00180daa
LAB_001917f7:
LEA RDI,[RSP + 0x90]
MOV RSI,RBP
CALL 0x00147640
LAB_00191807:
MOV RDI,RBX
MOV RSI,R15
CALL 0x00193a30
MOV RDI,R15
CALL 0x00182e24
MOV RDI,RBP
CALL 0x0012fe74
MOV RAX,qword ptr [RSP + 0x20]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x2
JZ 0x0019183f
CMP EAX,0x1
JNZ 0x0019184a
ADD qword ptr [RSP + 0x28],0x30
JMP 0x0019173c
LAB_0019183f:
ADD qword ptr [RSP + 0x30],0x10
JMP 0x0019173c
LAB_0019184a:
INC qword ptr [RSP + 0x38]
JMP 0x0019173c
LAB_00191854:
LEA RDI,[RSP + 0x10]
CALL 0x0012fe74
MOV R14,qword ptr [RSP + 0x8]
JMP 0x00191876
LAB_00191865:
MOV R14,qword ptr [RSP + 0x8]
LEA RDI,[R14 + 0x20]
LAB_0019186e:
MOV RSI,RBX
CALL 0x001213f0
LAB_00191876:
MOV RAX,R14
ADD RSP,0xf8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* parse_prefixed_json_tool_call_array(std::__cxx11::string const&, std::__cxx11::string const&,
unsigned long) */
string * parse_prefixed_json_tool_call_array(string *param_1,string *param_2,ulong param_3)
{
char cVar1;
long lVar2;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this;
char *pcVar3;
basic_json *pbVar4;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_118 [16];
char *local_108;
long local_100;
long local_f8;
long local_f0;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_e8 [16];
string local_d8 [32];
int1 local_b8 [32];
int1 local_98 [32];
int8 local_78;
int8 uStack_70;
int8 local_68;
int8 uStack_60;
int1 local_50 [32];
lVar2 = std::__cxx11::string::find(param_2,param_3);
common_chat_msg::common_chat_msg((common_chat_msg *)param_1);
/* try { // try from 0019165c to 0019166f has its CatchHandler @ 001918ad */
std::__cxx11::string::assign((char *)param_1);
if (lVar2 == -1) {
/* try { // try from 0019186e to 00191875 has its CatchHandler @ 0019188b */
std::__cxx11::string::_M_assign(param_1 + 0x20);
}
else {
/* try { // try from 0019167f to 00191690 has its CatchHandler @ 001918ab */
std::__cxx11::string::substr((ulong)local_d8,(ulong)param_2);
std::__cxx11::string::operator=(param_1 + 0x20,local_d8);
std::__cxx11::string::~string(local_d8);
/* try { // try from 001916b5 to 001916c7 has its CatchHandler @ 001918a9 */
std::__cxx11::string::substr((ulong)local_d8,(ulong)param_2);
local_68 = 0;
uStack_60 = 0;
local_78 = 0;
uStack_70 = 0;
/* try { // try from 001916da to 001916ee has its CatchHandler @ 0019188d */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::parse<std::__cxx11::string>(local_118,local_d8,&local_78,1,0);
std::_Function_base::~_Function_base((_Function_base *)&local_78);
std::__cxx11::string::~string(local_d8);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::cbegin();
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::cend();
while( true ) {
/* try { // try from 0019173c to 0019178a has its CatchHandler @ 001918f8 */
cVar1 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
*)&local_108,local_50);
if (cVar1 == '\0') break;
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>
*)nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::operator*((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
*)&local_108);
pcVar3 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>(this,"arguments");
pbVar4 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>(this,"name");
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(local_d8,pbVar4);
if (*pcVar3 == '\x03') {
/* try { // try from 00191791 to 001917b8 has its CatchHandler @ 001918da */
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(local_b8,pcVar3);
}
else {
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::dump(local_b8,pcVar3,0xffffffffffffffff,0x20,0,0);
}
/* try { // try from 001917b9 to 001917f6 has its CatchHandler @ 001918df */
cVar1 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_
(this,"id");
if (cVar1 == '\0') {
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
(local_e8,"");
}
else {
pbVar4 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>(this,"id");
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_e8,pbVar4);
}
/* try { // try from 001917f7 to 00191806 has its CatchHandler @ 001918c3 */
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(local_98,local_e8);
/* try { // try from 00191807 to 00191811 has its CatchHandler @ 001918b2 */
std::vector<common_tool_call,std::allocator<common_tool_call>>::emplace_back<common_tool_call>
((vector<common_tool_call,std::allocator<common_tool_call>> *)(param_1 + 0x40),
(common_tool_call *)local_d8);
common_tool_call::~common_tool_call((common_tool_call *)local_d8);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_e8);
if (*local_108 == '\x02') {
local_f8 = local_f8 + 0x10;
}
else if (*local_108 == '\x01') {
local_100 = local_100 + 0x30;
}
else {
local_f0 = local_f0 + 1;
}
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_118);
}
return param_1;
}
|
|
65,054 |
parse_prefixed_json_tool_call_array(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)
|
monkey531[P]llama/common/chat.cpp
|
static common_chat_msg parse_prefixed_json_tool_call_array(const std::string& input, const std::string & prefix, size_t rstrip_prefix = 0) {
auto content_end = input.find(prefix);
size_t tc_start = std::string::npos;
common_chat_msg result;
result.role = "assistant";
const auto process_tool_calls = [&](const json & tool_calls) {
for (const auto & tool_call : tool_calls) {
const auto & arguments = tool_call["arguments"];
result.tool_calls.push_back({
tool_call["name"],
arguments.is_string() ? arguments.get<std::string>() : arguments.dump(),
tool_call.contains("id") ? tool_call["id"] : "",
});
}
};
if (content_end == std::string::npos) {
result.content = input;
} else {
tc_start = content_end + prefix.size() - rstrip_prefix;
result.content = input.substr(0, content_end);
auto tool_calls = json::parse(input.substr(tc_start));
process_tool_calls(tool_calls);
}
return result;
}
|
O3
|
cpp
|
parse_prefixed_json_tool_call_array(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbp
movq (%rdx), %rsi
movq 0x8(%rdx), %rcx
xorl %r13d, %r13d
movq %r14, %rdi
xorl %edx, %edx
callq 0x19ba0
movq %rax, %r15
leaq 0x10(%rbp), %rax
movq %rax, (%rbp)
movq %r13, 0x8(%rbp)
movb %r13b, 0x10(%rbp)
leaq 0x30(%rbp), %rax
movq %rax, 0x20(%rbp)
movq %r13, 0x28(%rbp)
movb %r13b, 0x30(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbp)
movq %r13, 0x50(%rbp)
leaq 0x68(%rbp), %rax
movq %rax, 0x58(%rbp)
movq %r13, 0x60(%rbp)
movb %r13b, 0x68(%rbp)
leaq 0xc257(%rip), %rcx # 0xba606
movl $0x9, %r8d
movq %rbp, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %rbp, 0x48(%rsp)
callq 0x19a60
leaq 0x20(%rbp), %r13
cmpq $-0x1, %r15
je 0xae4f3
movq 0x8(%r12), %r12
leaq 0x60(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %r15, %rcx
callq 0x19700
subq %rbx, %r15
addq %r12, %r15
leaq 0x60(%rsp), %rbx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x19820
movq (%rbx), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xae41b
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x196b0
leaq 0x60(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq $-0x1, %rcx
callq 0x19700
xorps %xmm0, %xmm0
leaq 0xd0(%rsp), %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
leaq 0x50(%rsp), %rbx
leaq 0x60(%rsp), %rsi
movq %rbx, %rdi
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x876de
movq 0xe0(%rsp), %rax
testq %rax, %rax
je 0xae47d
leaq 0xd0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xae499
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x196b0
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rbx, 0x28(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rsp)
movq %rax, 0x40(%rsp)
movzbl 0x50(%rsp), %ecx
testl %ecx, %ecx
je 0xae52e
cmpl $0x2, %ecx
je 0xae503
cmpl $0x1, %ecx
jne 0xae539
movq 0x58(%rsp), %rcx
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
movq %rbx, 0x8(%rsp)
movq $0x0, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movq 0x8(%rcx), %rax
movq %rax, 0x10(%rsp)
jmp 0xae555
movq %r13, %rdi
movq %r14, %rsi
callq 0x193d0
jmp 0xae703
movq 0x58(%rsp), %rcx
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq %rbx, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq %rax, 0x20(%rsp)
movq 0x8(%rcx), %rax
movq %rax, 0x18(%rsp)
jmp 0xae555
movq $0x1, 0x40(%rsp)
jmp 0xae542
movq $0x0, 0x40(%rsp)
movq %rbx, 0x8(%rsp)
movups %xmm0, 0x10(%rsp)
movq $0x1, 0x20(%rsp)
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x4ccec
testb %al, %al
jne 0xae6f9
movq 0x48(%rsp), %rax
leaq 0x40(%rax), %r14
leaq 0x28(%rsp), %r13
leaq 0x60(%rsp), %r12
leaq 0xc0(%rsp), %r15
movq %r13, %rdi
callq 0x490a2
movq %rax, %rbx
movq %rax, %rdi
leaq 0xd38e(%rip), %rsi # 0xbb92a
callq 0x4871e
movq %rax, %rbp
movq %rbx, %rdi
leaq 0xd920(%rip), %rsi # 0xbbece
callq 0x4871e
movq %r12, %rdi
movq %rax, %rsi
callq 0x4b868
cmpb $0x3, (%rbp)
jne 0xae5d6
leaq 0x80(%rsp), %rdi
movq %rbp, %rsi
callq 0x4b868
jmp 0xae5f6
leaq 0x80(%rsp), %rdi
movq %rbp, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x4b368
movq %rbx, %rdi
leaq 0xc465(%rip), %rsi # 0xbaa65
callq 0x87f6a
testb %al, %al
je 0xae625
movq %rbx, %rdi
leaq 0xc452(%rip), %rsi # 0xbaa65
callq 0x4871e
movq %r15, %rdi
movq %rax, %rsi
callq 0x2d4c2
jmp 0xae634
movq %r15, %rdi
leaq 0x461d(%rip), %rsi # 0xb2c4c
callq 0x97f16
leaq 0xa0(%rsp), %rdi
movq %r15, %rsi
callq 0x4b868
movq %r14, %rdi
movq %r12, %rsi
callq 0xb12d6
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0xae674
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x196b0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0xae699
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x196b0
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xae6b5
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x196b0
movq %r15, %rdi
callq 0x2d98e
movq 0x28(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0xae6d7
cmpl $0x1, %eax
jne 0xae6df
addq $0x30, 0x30(%rsp)
jmp 0xae6e4
addq $0x10, 0x38(%rsp)
jmp 0xae6e4
incq 0x40(%rsp)
movq %r13, %rdi
leaq 0x8(%rsp), %rsi
callq 0x4ccec
testb %al, %al
je 0xae587
leaq 0x50(%rsp), %rdi
callq 0x2d98e
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xae771
jmp 0xae765
jmp 0xae7f2
movq %rax, %r14
movq 0xe0(%rsp), %rax
testq %rax, %rax
je 0xae740
leaq 0xd0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xae7ff
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x196b0
jmp 0xae7ff
movq %rax, %rdi
callq 0x27a01
jmp 0xae771
jmp 0xae771
movq %rax, %r14
jmp 0xae7ff
movq %rax, %r14
jmp 0xae7d4
movq %rax, %r14
leaq 0xc0(%rsp), %rdi
callq 0x2d98e
jmp 0xae7af
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0xb11f6
leaq 0xc0(%rsp), %rdi
callq 0x2d98e
jmp 0xae7f5
movq %rax, %r14
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0xae7d4
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x196b0
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xae7f5
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x196b0
jmp 0xae7f5
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x2d98e
movq 0x48(%rsp), %rdi
callq 0x63368
movq %r14, %rdi
callq 0x19be0
|
_ZL35parse_prefixed_json_tool_call_arrayRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_m:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0F8h
mov rbx, rcx
mov r12, rdx
mov r14, rsi
mov rbp, rdi
mov rsi, [rdx]
mov rcx, [rdx+8]
xor r13d, r13d
mov rdi, r14
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong)
mov r15, rax
lea rax, [rbp+10h]
mov [rbp+0], rax
mov [rbp+8], r13
mov [rbp+10h], r13b
lea rax, [rbp+30h]
mov [rbp+20h], rax
mov [rbp+28h], r13
mov [rbp+30h], r13b
xorps xmm0, xmm0
movups xmmword ptr [rbp+40h], xmm0
mov [rbp+50h], r13
lea rax, [rbp+68h]
mov [rbp+58h], rax
mov [rbp+60h], r13
mov [rbp+68h], r13b
lea rcx, aYouAreAHelpful+12h; "assistant"
mov r8d, 9
mov rdi, rbp
xor esi, esi
xor edx, edx
mov [rsp+128h+var_E0], rbp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
lea r13, [rbp+20h]
cmp r15, 0FFFFFFFFFFFFFFFFh
jz loc_AE4F3
mov r12, [r12+8]
lea rdi, [rsp+128h+var_C8]
mov rsi, r14
xor edx, edx
mov rcx, r15
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
sub r15, rbx
add r15, r12
lea rbx, [rsp+128h+var_C8]
mov rdi, r13
mov rsi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [rbx]; void *
lea rax, [rsp+128h+var_B8]
cmp rdi, rax
jz short loc_AE41B
mov rsi, [rsp+128h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AE41B:
lea rdi, [rsp+128h+var_C8]
mov rsi, r14
mov rdx, r15
mov rcx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
xorps xmm0, xmm0
lea rdx, [rsp+128h+var_58]
movaps xmmword ptr [rdx+10h], xmm0
movaps xmmword ptr [rdx], xmm0
lea rbx, [rsp+128h+var_D8]
lea rsi, [rsp+128h+var_C8]
mov rdi, rbx
mov ecx, 1
xor r8d, r8d
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::parse<std::string>(std::string &&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool)
mov rax, [rsp+128h+var_48]
test rax, rax
jz short loc_AE47D
lea rdi, [rsp+128h+var_58]
mov rsi, rdi
mov edx, 3
call rax
loc_AE47D:
mov rdi, [rsp+128h+var_C8]; void *
lea rax, [rsp+128h+var_B8]
cmp rdi, rax
jz short loc_AE499
mov rsi, [rsp+128h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AE499:
mov rax, 8000000000000000h
mov [rsp+128h+var_100], rbx
xorps xmm0, xmm0
movups [rsp+128h+var_F8], xmm0
mov [rsp+128h+var_E8], rax
movzx ecx, [rsp+128h+var_D8]
test ecx, ecx
jz short loc_AE52E
cmp ecx, 2
jz short loc_AE503
cmp ecx, 1
jnz short loc_AE539
mov rcx, [rsp+128h+var_D0]
mov rdx, [rcx]
mov qword ptr [rsp+128h+var_F8], rdx
mov [rsp+128h+var_120], rbx
mov qword ptr [rsp+128h+var_118+8], 0
mov [rsp+128h+var_108], rax
mov rax, [rcx+8]
mov qword ptr [rsp+128h+var_118], rax
jmp short loc_AE555
loc_AE4F3:
mov rdi, r13
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
jmp loc_AE703
loc_AE503:
mov rcx, [rsp+128h+var_D0]
mov rdx, [rcx]
mov qword ptr [rsp+128h+var_F8+8], rdx
mov [rsp+128h+var_120], rbx
mov qword ptr [rsp+128h+var_118], 0
mov [rsp+128h+var_108], rax
mov rax, [rcx+8]
mov qword ptr [rsp+128h+var_118+8], rax
jmp short loc_AE555
loc_AE52E:
mov [rsp+128h+var_E8], 1
jmp short loc_AE542
loc_AE539:
mov [rsp+128h+var_E8], 0
loc_AE542:
mov [rsp+128h+var_120], rbx
movups [rsp+128h+var_118], xmm0
mov [rsp+128h+var_108], 1
loc_AE555:
lea rdi, [rsp+128h+var_100]
lea rsi, [rsp+128h+var_120]
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
test al, al
jnz loc_AE6F9
mov rax, [rsp+128h+var_E0]
lea r14, [rax+40h]
lea r13, [rsp+128h+var_100]
lea r12, [rsp+128h+var_C8]
lea r15, [rsp+128h+var_68]
loc_AE587:
mov rdi, r13
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void)
mov rbx, rax
mov rdi, rax
lea rsi, aKeywordArgumen+9; "arguments"
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *)
mov rbp, rax
mov rdi, rbx
lea rsi, aNamespacedSetO+2Fh; "name"
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *)
mov rdi, r12
mov rsi, rax
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
cmp byte ptr [rbp+0], 3
jnz short loc_AE5D6
lea rdi, [rsp+128h+var_A8]
mov rsi, rbp
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
jmp short loc_AE5F6
loc_AE5D6:
lea rdi, [rsp+128h+var_A8]
mov rsi, rbp
mov edx, 0FFFFFFFFh
mov ecx, 20h ; ' '
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
loc_AE5F6:
mov rdi, rbx
lea rsi, aToolCallId+0Ah; "id"
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_
test al, al
jz short loc_AE625
mov rdi, rbx
lea rsi, aToolCallId+0Ah; "id"
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *)
mov rdi, r15
mov rsi, rax
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
jmp short loc_AE634
loc_AE625:
mov rdi, r15
lea rsi, aNoteDebugGramm+0CAh; ""
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
loc_AE634:
lea rdi, [rsp+128h+var_88]
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
mov rdi, r14
mov rsi, r12
call _ZNSt6vectorI16common_tool_callSaIS0_EE12emplace_backIJS0_EEERS0_DpOT_; std::vector<common_tool_call>::emplace_back<common_tool_call>(common_tool_call &&)
mov rdi, [rsp+128h+var_88]; void *
lea rax, [rsp+128h+var_78]
cmp rdi, rax
jz short loc_AE674
mov rsi, [rsp+128h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AE674:
mov rdi, [rsp+128h+var_A8]; void *
lea rax, [rsp+128h+var_98]
cmp rdi, rax
jz short loc_AE699
mov rsi, [rsp+128h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AE699:
mov rdi, [rsp+128h+var_C8]; void *
lea rax, [rsp+128h+var_B8]
cmp rdi, rax
jz short loc_AE6B5
mov rsi, [rsp+128h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AE6B5:
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rax, [rsp+128h+var_100]
movzx eax, byte ptr [rax]
cmp eax, 2
jz short loc_AE6D7
cmp eax, 1
jnz short loc_AE6DF
add qword ptr [rsp+128h+var_F8], 30h ; '0'
jmp short loc_AE6E4
loc_AE6D7:
add qword ptr [rsp+128h+var_F8+8], 10h
jmp short loc_AE6E4
loc_AE6DF:
inc [rsp+128h+var_E8]
loc_AE6E4:
mov rdi, r13
lea rsi, [rsp+128h+var_120]
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
test al, al
jz loc_AE587
loc_AE6F9:
lea rdi, [rsp+128h+var_D8]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_AE703:
add rsp, 0F8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_AE771
jmp short loc_AE765
jmp loc_AE7F2
mov r14, rax
mov rax, [rsp+128h+var_48]
test rax, rax
jz short loc_AE740
lea rdi, [rsp+128h+var_58]
mov rsi, rdi
mov edx, 3
call rax
loc_AE740:
mov rdi, [rsp+128h+var_C8]; void *
lea rax, [rsp+128h+var_B8]
cmp rdi, rax
jz loc_AE7FF
mov rsi, [rsp+128h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp loc_AE7FF
loc_AE765:
mov rdi, rax
call __clang_call_terminate
jmp short loc_AE771
jmp short $+2
loc_AE771:
mov r14, rax
jmp loc_AE7FF
mov r14, rax
jmp short loc_AE7D4
mov r14, rax
lea rdi, [rsp+128h+var_68]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
jmp short loc_AE7AF
mov r14, rax
lea rdi, [rsp+128h+var_C8]; this
call _ZN16common_tool_callD2Ev; common_tool_call::~common_tool_call()
lea rdi, [rsp+128h+var_68]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
jmp short loc_AE7F5
mov r14, rax
loc_AE7AF:
mov rdi, [rsp+128h+var_A8]; void *
lea rax, [rsp+128h+var_98]
cmp rdi, rax
jz short loc_AE7D4
mov rsi, [rsp+128h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AE7D4:
mov rdi, [rsp+128h+var_C8]; void *
lea rax, [rsp+128h+var_B8]
cmp rdi, rax
jz short loc_AE7F5
mov rsi, [rsp+128h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_AE7F5
loc_AE7F2:
mov r14, rax
loc_AE7F5:
lea rdi, [rsp+128h+var_D8]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_AE7FF:
mov rdi, [rsp+128h+var_E0]; this
call _ZN15common_chat_msgD2Ev; common_chat_msg::~common_chat_msg()
mov rdi, r14
call __Unwind_Resume
|
long long parse_prefixed_json_tool_call_array(long long a1, long long a2, _QWORD *a3, long long a4)
{
long long v6; // r15
long long v7; // r12
long long v8; // r15
char *v10; // r14
long long v11; // rbx
_BYTE *v12; // rbp
long long v13; // rax
unsigned __int8 *v14; // rax
int v15; // eax
_BYTE *v16; // [rsp+8h] [rbp-120h] BYREF
__int128 v17; // [rsp+10h] [rbp-118h]
long long v18; // [rsp+20h] [rbp-108h]
unsigned __int8 *v19; // [rsp+28h] [rbp-100h] BYREF
__int128 v20; // [rsp+30h] [rbp-F8h]
long long v21; // [rsp+40h] [rbp-E8h]
common_chat_msg *v22; // [rsp+48h] [rbp-E0h]
_BYTE v23[8]; // [rsp+50h] [rbp-D8h] BYREF
_QWORD *v24; // [rsp+58h] [rbp-D0h]
void *v25[2]; // [rsp+60h] [rbp-C8h] BYREF
_QWORD v26[2]; // [rsp+70h] [rbp-B8h] BYREF
void *v27[2]; // [rsp+80h] [rbp-A8h] BYREF
long long v28; // [rsp+90h] [rbp-98h] BYREF
void *v29; // [rsp+A0h] [rbp-88h] BYREF
long long v30; // [rsp+B0h] [rbp-78h] BYREF
unsigned __int8 v31[16]; // [rsp+C0h] [rbp-68h] BYREF
__int128 v32; // [rsp+D0h] [rbp-58h] BYREF
__int128 v33; // [rsp+E0h] [rbp-48h]
v6 = std::string::find(a2, *a3, 0LL, a3[1]);
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
*(_QWORD *)(a1 + 32) = a1 + 48;
*(_QWORD *)(a1 + 40) = 0LL;
*(_BYTE *)(a1 + 48) = 0;
*(_OWORD *)(a1 + 64) = 0LL;
*(_QWORD *)(a1 + 80) = 0LL;
*(_QWORD *)(a1 + 88) = a1 + 104;
*(_QWORD *)(a1 + 96) = 0LL;
*(_BYTE *)(a1 + 104) = 0;
v22 = (common_chat_msg *)a1;
std::string::_M_replace(a1, 0LL, 0LL, "assistant", 9LL);
if ( v6 == -1 )
return std::string::_M_assign(a1 + 32, a2);
v7 = a3[1];
std::string::substr(v25, a2, 0LL, v6);
v8 = v7 + v6 - a4;
std::string::operator=(a1 + 32, v25);
if ( v25[0] != v26 )
operator delete(v25[0], v26[0] + 1LL);
std::string::substr(v25, a2, v8, -1LL);
v33 = 0LL;
v32 = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parse<std::string>(
(long long)v23,
(long long *)v25,
(long long)&v32,
1u,
0);
if ( (_QWORD)v33 )
((void ( *)(__int128 *, __int128 *, long long))v33)(&v32, &v32, 3LL);
if ( v25[0] != v26 )
operator delete(v25[0], v26[0] + 1LL);
v19 = v23;
v20 = 0LL;
v21 = 0x8000000000000000LL;
if ( !v23[0] )
{
v21 = 1LL;
LABEL_16:
v16 = v23;
v17 = 0LL;
v18 = 1LL;
goto LABEL_17;
}
if ( v23[0] == 2 )
{
*((_QWORD *)&v20 + 1) = *v24;
v16 = v23;
*(_QWORD *)&v17 = 0LL;
v18 = 0x8000000000000000LL;
*((_QWORD *)&v17 + 1) = v24[1];
goto LABEL_17;
}
if ( v23[0] != 1 )
{
v21 = 0LL;
goto LABEL_16;
}
*(_QWORD *)&v20 = *v24;
v16 = v23;
*((_QWORD *)&v17 + 1) = 0LL;
v18 = 0x8000000000000000LL;
*(_QWORD *)&v17 = v24[1];
LABEL_17:
if ( !(unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_(
&v19,
&v16) )
{
v10 = (char *)v22 + 64;
do
{
v11 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(&v19);
v12 = (_BYTE *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
v11,
"arguments");
v13 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
v11,
"name");
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
(long long)v25,
v13);
if ( *v12 == 3 )
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
(long long)v27,
(long long)v12);
else
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
(long long)v27,
(long long)v12,
-1,
32,
0,
0);
if ( ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_(
v11,
(long long)"id") )
{
v14 = (unsigned __int8 *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
v11,
"id");
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(
v31,
v14);
}
else
{
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_((char *)v31);
}
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
(long long)&v29,
(long long)v31);
std::vector<common_tool_call>::emplace_back<common_tool_call>(v10, v25);
if ( v29 != &v30 )
operator delete(v29, v30 + 1);
if ( v27[0] != &v28 )
operator delete(v27[0], v28 + 1);
if ( v25[0] != v26 )
operator delete(v25[0], v26[0] + 1LL);
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(v31);
v15 = *v19;
if ( v15 == 2 )
{
*((_QWORD *)&v20 + 1) += 16LL;
}
else if ( v15 == 1 )
{
*(_QWORD *)&v20 = v20 + 48;
}
else
{
++v21;
}
}
while ( !(unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_(
&v19,
&v16) );
}
return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v23);
}
|
parse_prefixed_json_tool_call_array:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xf8
MOV RBX,RCX
MOV R12,RDX
MOV R14,RSI
MOV RBP,RDI
MOV RSI,qword ptr [RDX]
MOV RCX,qword ptr [RDX + 0x8]
XOR R13D,R13D
MOV RDI,R14
XOR EDX,EDX
CALL 0x00119ba0
MOV R15,RAX
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP],RAX
MOV qword ptr [RBP + 0x8],R13
MOV byte ptr [RBP + 0x10],R13B
LEA RAX,[RBP + 0x30]
MOV qword ptr [RBP + 0x20],RAX
MOV qword ptr [RBP + 0x28],R13
MOV byte ptr [RBP + 0x30],R13B
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBP + 0x40],XMM0
MOV qword ptr [RBP + 0x50],R13
LEA RAX,[RBP + 0x68]
MOV qword ptr [RBP + 0x58],RAX
MOV qword ptr [RBP + 0x60],R13
MOV byte ptr [RBP + 0x68],R13B
LAB_001ae3a8:
LEA RCX,[0x1ba606]
MOV R8D,0x9
MOV RDI,RBP
XOR ESI,ESI
XOR EDX,EDX
MOV qword ptr [RSP + 0x48],RBP
CALL 0x00119a60
LEA R13,[RBP + 0x20]
CMP R15,-0x1
JZ 0x001ae4f3
MOV R12,qword ptr [R12 + 0x8]
LAB_001ae3d9:
LEA RDI,[RSP + 0x60]
MOV RSI,R14
XOR EDX,EDX
MOV RCX,R15
CALL 0x00119700
SUB R15,RBX
ADD R15,R12
LEA RBX,[RSP + 0x60]
MOV RDI,R13
MOV RSI,RBX
CALL 0x00119820
MOV RDI,qword ptr [RBX]
LEA RAX,[RSP + 0x70]
CMP RDI,RAX
JZ 0x001ae41b
MOV RSI,qword ptr [RSP + 0x70]
INC RSI
CALL 0x001196b0
LAB_001ae41b:
LEA RDI,[RSP + 0x60]
MOV RSI,R14
MOV RDX,R15
MOV RCX,-0x1
CALL 0x00119700
XORPS XMM0,XMM0
LEA RDX,[RSP + 0xd0]
MOVAPS xmmword ptr [RDX + 0x10],XMM0
MOVAPS xmmword ptr [RDX],XMM0
LAB_001ae444:
LEA RBX,[RSP + 0x50]
LEA RSI,[RSP + 0x60]
MOV RDI,RBX
MOV ECX,0x1
XOR R8D,R8D
CALL 0x001876de
MOV RAX,qword ptr [RSP + 0xe0]
TEST RAX,RAX
JZ 0x001ae47d
LAB_001ae46b:
LEA RDI,[RSP + 0xd0]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_001ae47d:
MOV RDI,qword ptr [RSP + 0x60]
LEA RAX,[RSP + 0x70]
CMP RDI,RAX
JZ 0x001ae499
MOV RSI,qword ptr [RSP + 0x70]
INC RSI
CALL 0x001196b0
LAB_001ae499:
MOV RAX,-0x8000000000000000
MOV qword ptr [RSP + 0x28],RBX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x30],XMM0
MOV qword ptr [RSP + 0x40],RAX
MOVZX ECX,byte ptr [RSP + 0x50]
TEST ECX,ECX
JZ 0x001ae52e
CMP ECX,0x2
JZ 0x001ae503
CMP ECX,0x1
JNZ 0x001ae539
MOV RCX,qword ptr [RSP + 0x58]
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x30],RDX
MOV qword ptr [RSP + 0x8],RBX
MOV qword ptr [RSP + 0x18],0x0
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RCX + 0x8]
MOV qword ptr [RSP + 0x10],RAX
JMP 0x001ae555
LAB_001ae4f3:
MOV RDI,R13
MOV RSI,R14
CALL 0x001193d0
JMP 0x001ae703
LAB_001ae503:
MOV RCX,qword ptr [RSP + 0x58]
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x38],RDX
MOV qword ptr [RSP + 0x8],RBX
MOV qword ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RCX + 0x8]
MOV qword ptr [RSP + 0x18],RAX
JMP 0x001ae555
LAB_001ae52e:
MOV qword ptr [RSP + 0x40],0x1
JMP 0x001ae542
LAB_001ae539:
MOV qword ptr [RSP + 0x40],0x0
LAB_001ae542:
MOV qword ptr [RSP + 0x8],RBX
MOVUPS xmmword ptr [RSP + 0x10],XMM0
MOV qword ptr [RSP + 0x20],0x1
LAB_001ae555:
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0x8]
CALL 0x0014ccec
TEST AL,AL
JNZ 0x001ae6f9
MOV RAX,qword ptr [RSP + 0x48]
LEA R14,[RAX + 0x40]
LEA R13,[RSP + 0x28]
LEA R12,[RSP + 0x60]
LEA R15,[RSP + 0xc0]
LAB_001ae587:
MOV RDI,R13
CALL 0x001490a2
MOV RBX,RAX
MOV RDI,RAX
LEA RSI,[0x1bb92a]
CALL 0x0014871e
MOV RBP,RAX
MOV RDI,RBX
LEA RSI,[0x1bbece]
CALL 0x0014871e
MOV RDI,R12
MOV RSI,RAX
CALL 0x0014b868
CMP byte ptr [RBP],0x3
JNZ 0x001ae5d6
LAB_001ae5c4:
LEA RDI,[RSP + 0x80]
MOV RSI,RBP
CALL 0x0014b868
JMP 0x001ae5f6
LAB_001ae5d6:
LEA RDI,[RSP + 0x80]
MOV RSI,RBP
MOV EDX,0xffffffff
MOV ECX,0x20
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0014b368
LAB_001ae5f6:
MOV RDI,RBX
LEA RSI,[0x1baa65]
CALL 0x00187f6a
TEST AL,AL
JZ 0x001ae625
MOV RDI,RBX
LEA RSI,[0x1baa65]
CALL 0x0014871e
MOV RDI,R15
MOV RSI,RAX
CALL 0x0012d4c2
JMP 0x001ae634
LAB_001ae625:
MOV RDI,R15
LEA RSI,[0x1b2c4c]
CALL 0x00197f16
LAB_001ae634:
LEA RDI,[RSP + 0xa0]
MOV RSI,R15
CALL 0x0014b868
LAB_001ae644:
MOV RDI,R14
MOV RSI,R12
CALL 0x001b12d6
MOV RDI,qword ptr [RSP + 0xa0]
LEA RAX,[RSP + 0xb0]
CMP RDI,RAX
JZ 0x001ae674
MOV RSI,qword ptr [RSP + 0xb0]
INC RSI
CALL 0x001196b0
LAB_001ae674:
MOV RDI,qword ptr [RSP + 0x80]
LEA RAX,[RSP + 0x90]
CMP RDI,RAX
JZ 0x001ae699
MOV RSI,qword ptr [RSP + 0x90]
INC RSI
CALL 0x001196b0
LAB_001ae699:
MOV RDI,qword ptr [RSP + 0x60]
LEA RAX,[RSP + 0x70]
CMP RDI,RAX
JZ 0x001ae6b5
MOV RSI,qword ptr [RSP + 0x70]
INC RSI
CALL 0x001196b0
LAB_001ae6b5:
MOV RDI,R15
CALL 0x0012d98e
MOV RAX,qword ptr [RSP + 0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x2
JZ 0x001ae6d7
CMP EAX,0x1
JNZ 0x001ae6df
ADD qword ptr [RSP + 0x30],0x30
JMP 0x001ae6e4
LAB_001ae6d7:
ADD qword ptr [RSP + 0x38],0x10
JMP 0x001ae6e4
LAB_001ae6df:
INC qword ptr [RSP + 0x40]
LAB_001ae6e4:
MOV RDI,R13
LEA RSI,[RSP + 0x8]
CALL 0x0014ccec
TEST AL,AL
JZ 0x001ae587
LAB_001ae6f9:
LEA RDI,[RSP + 0x50]
CALL 0x0012d98e
LAB_001ae703:
ADD RSP,0xf8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* parse_prefixed_json_tool_call_array(std::__cxx11::string const&, std::__cxx11::string const&,
unsigned long) */
void parse_prefixed_json_tool_call_array(string *param_1,string *param_2,ulong param_3)
{
vector<common_tool_call,std::allocator<common_tool_call>> *this;
char cVar1;
long lVar2;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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;
basic_json *pbVar3;
basic_json *pbVar4;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*local_120;
long local_118;
long lStack_110;
int8 local_108;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_100;
long local_f8;
long lStack_f0;
long local_e8;
string *local_e0;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_d8 [8];
long *local_d0;
long *local_c8 [2];
long local_b8 [2];
long *local_a8 [2];
long local_98 [2];
long *local_88 [2];
long local_78 [2];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_68 [16];
int8 local_58;
int8 uStack_50;
code *local_48;
int8 uStack_40;
lVar2 = std::__cxx11::string::find((char *)param_2,*(ulong *)param_3,0);
*(string **)param_1 = param_1 + 0x10;
*(int8 *)(param_1 + 8) = 0;
param_1[0x10] = (string)0x0;
*(string **)(param_1 + 0x20) = param_1 + 0x30;
*(int8 *)(param_1 + 0x28) = 0;
param_1[0x30] = (string)0x0;
*(int8 *)(param_1 + 0x40) = 0;
*(int8 *)(param_1 + 0x48) = 0;
*(int8 *)(param_1 + 0x50) = 0;
*(string **)(param_1 + 0x58) = param_1 + 0x68;
*(int8 *)(param_1 + 0x60) = 0;
param_1[0x68] = (string)0x0;
local_e0 = param_1;
/* try { // try from 001ae3a8 to 001ae3c5 has its CatchHandler @ 001ae771 */
std::__cxx11::string::_M_replace((ulong)param_1,0,(char *)0x0,0x1ba606);
if (lVar2 == -1) {
/* try { // try from 001ae4f3 to 001ae4fd has its CatchHandler @ 001ae715 */
std::__cxx11::string::_M_assign(param_1 + 0x20);
return;
}
/* try { // try from 001ae3d9 to 001ae3ea has its CatchHandler @ 001ae76f */
std::__cxx11::string::substr((ulong)local_c8,(ulong)param_2);
std::__cxx11::string::operator=(param_1 + 0x20,(string *)local_c8);
if (local_c8[0] != local_b8) {
operator_delete(local_c8[0],local_b8[0] + 1);
}
/* try { // try from 001ae41b to 001ae431 has its CatchHandler @ 001ae76d */
std::__cxx11::string::substr((ulong)local_c8,(ulong)param_2);
local_48 = (code *)0x0;
uStack_40 = 0;
local_58 = 0;
uStack_50 = 0;
/* try { // try from 001ae444 to 001ae45d has its CatchHandler @ 001ae71e */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::parse<std::__cxx11::string>(local_d8,local_c8,&local_58,1,0);
if (local_48 != (code *)0x0) {
/* try { // try from 001ae46b to 001ae47c has its CatchHandler @ 001ae717 */
(*local_48)(&local_58,&local_58,3);
}
if (local_c8[0] != local_b8) {
operator_delete(local_c8[0],local_b8[0] + 1);
}
local_f8 = 0;
lStack_f0 = 0;
local_e8 = -0x8000000000000000;
if (local_d8[0] ==
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0) {
local_e8 = 1;
}
else {
if (local_d8[0] ==
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2) {
lStack_f0 = *local_d0;
local_118 = 0;
local_108 = 0x8000000000000000;
lStack_110 = local_d0[1];
goto LAB_001ae555;
}
if (local_d8[0] ==
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) {
local_f8 = *local_d0;
lStack_110 = 0;
local_108 = 0x8000000000000000;
local_118 = local_d0[1];
goto LAB_001ae555;
}
local_e8 = 0;
}
local_118 = 0;
lStack_110 = 0;
local_108 = 1;
LAB_001ae555:
/* try { // try from 001ae555 to 001ae563 has its CatchHandler @ 001ae719 */
local_120 = local_d8;
local_100 = local_d8;
cVar1 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
(&local_100,&local_120);
if (cVar1 == '\0') {
this = (vector<common_tool_call,std::allocator<common_tool_call>> *)(local_e0 + 0x40);
do {
/* try { // try from 001ae587 to 001ae5bd has its CatchHandler @ 001ae7f2 */
this_00 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::operator*((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
*)&local_100);
pbVar3 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>(this_00,"arguments");
pbVar4 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>(this_00,"name");
_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
((common_tool_call *)local_c8,pbVar4);
if (*pbVar3 == (basic_json)0x3) {
/* try { // try from 001ae5c4 to 001ae5f5 has its CatchHandler @ 001ae779 */
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(local_a8,pbVar3);
}
else {
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::dump(local_a8,pbVar3,0xffffffff,0x20,0,0);
}
/* try { // try from 001ae5f6 to 001ae633 has its CatchHandler @ 001ae7ac */
cVar1 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_
(this_00,"id");
if (cVar1 == '\0') {
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
(local_68,"");
}
else {
pbVar3 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>(this_00,"id");
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_68,pbVar3);
}
/* try { // try from 001ae634 to 001ae643 has its CatchHandler @ 001ae77e */
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(local_88,local_68);
/* try { // try from 001ae644 to 001ae64e has its CatchHandler @ 001ae790 */
std::vector<common_tool_call,std::allocator<common_tool_call>>::emplace_back<common_tool_call>
(this,(common_tool_call *)local_c8);
if (local_88[0] != local_78) {
operator_delete(local_88[0],local_78[0] + 1);
}
if (local_a8[0] != local_98) {
operator_delete(local_a8[0],local_98[0] + 1);
}
if (local_c8[0] != local_b8) {
operator_delete(local_c8[0],local_b8[0] + 1);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_68);
if (*local_100 ==
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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) {
lStack_f0 = lStack_f0 + 0x10;
}
else if (*local_100 ==
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) {
local_f8 = local_f8 + 0x30;
}
else {
local_e8 = local_e8 + 1;
}
/* try { // try from 001ae6e4 to 001ae6f0 has its CatchHandler @ 001ae7f2 */
cVar1 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
*)&local_100,&local_120);
} while (cVar1 == '\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_d8);
return;
}
|
|
65,055 |
flux::parser::Parser::expressionStatement()
|
kvthweatt[P]FluxLang/src/parser/parser.cpp
|
std::unique_ptr<Stmt> Parser::expressionStatement() {
auto startToken = current_;
// Simply parse the expression using the expression() function,
// which will delegate to assignment() for handling assignments
auto expr = expression();
if (!expr) {
error("Expected expression");
return nullptr;
}
consume(lexer::TokenType::SEMICOLON, "Expected ';' after expression");
return std::make_unique<ExprStmt>(std::move(expr), makeRange(startToken, previous_));
}
|
O1
|
cpp
|
flux::parser::Parser::expressionStatement():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movups 0x8(%rsi), %xmm0
movups 0x18(%rsi), %xmm1
movups 0x28(%rsi), %xmm2
movups 0x38(%rsi), %xmm3
leaq 0x50(%rsp), %rdi
movaps %xmm3, -0x10(%rdi)
movaps %xmm2, -0x20(%rdi)
movaps %xmm1, -0x30(%rdi)
movaps %xmm0, -0x40(%rdi)
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x48(%rsi), %rsi
movq 0x50(%r15), %rdx
addq %rsi, %rdx
callq 0x9160
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x1cf50
movq 0x8(%rsp), %r14
testq %r14, %r14
je 0x22217
leaq 0xb6ed(%rip), %r8 # 0x2d873
leaq 0x78(%rsp), %rdi
movl $0x1d, %ecx
movq %r15, %rsi
movl $0x58, %edx
callq 0x14f3c
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x221be
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x6280
movq 0x28(%rsp), %r13
movq 0x30(%rsp), %rbp
movq 0x90(%r15), %r12
movq 0x98(%r15), %r15
movl $0x30, %edi
callq 0x6270
movq 0x8(%rsp), %rcx
movq $0x0, 0x8(%rsp)
movq %r13, 0x8(%rax)
movq %rbp, 0x10(%rax)
movq %r12, 0x18(%rax)
movq %r15, 0x20(%rax)
leaq 0x18113(%rip), %rdx # 0x3a318
addq $0x10, %rdx
movq %rdx, (%rax)
movq %rcx, 0x28(%rax)
leaq 0x60(%rsp), %r12
jmp 0x22238
leaq 0x8(%r15), %rsi
leaq 0x9218(%rip), %rcx # 0x2b43a
movl $0x13, %edx
movq %r15, %rdi
callq 0x14c10
movq $0x0, (%rbx)
xorl %eax, %eax
movq %rax, (%rbx)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2224b
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x22262
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x6280
movq %rbx, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x22279
movq %rax, %rbx
testq %r14, %r14
je 0x2228a
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
jmp 0x22298
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x222b4
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x6280
movq %rbx, %rdi
callq 0x6440
|
_ZN4flux6parser6Parser19expressionStatementEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0D8h
mov r15, rsi
mov rbx, rdi
movups xmm0, xmmword ptr [rsi+8]
movups xmm1, xmmword ptr [rsi+18h]
movups xmm2, xmmword ptr [rsi+28h]
movups xmm3, xmmword ptr [rsi+38h]
lea rdi, [rsp+108h+var_B8]
movaps xmmword ptr [rdi-10h], xmm3
movaps xmmword ptr [rdi-20h], xmm2
movaps xmmword ptr [rdi-30h], xmm1
movaps xmmword ptr [rdi-40h], xmm0
lea r12, [rsp+108h+var_A8]
mov [r12-10h], r12
mov rsi, [rsi+48h]
mov rdx, [r15+50h]
add rdx, rsi
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rdi, [rsp+108h+var_100]; this
mov rsi, r15
call _ZN4flux6parser6Parser10expressionEv; flux::parser::Parser::expression(void)
mov r14, [rsp+108h+var_100]
test r14, r14
jz loc_22217
lea r8, aExpectedAfterE; "Expected ';' after expression"
lea rdi, [rsp+108h+var_90]; this
mov ecx, 1Dh
mov rsi, r15
mov edx, 58h ; 'X'
call _ZN4flux6parser6Parser7consumeENS_5lexer9TokenTypeESt17basic_string_viewIcSt11char_traitsIcEE; flux::parser::Parser::consume(flux::lexer::TokenType,std::string_view)
lea rax, [rsp+108h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_221BE
mov rsi, [rsp+108h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_221BE:
mov r13, [rsp+108h+var_E0]
mov rbp, [rsp+108h+var_D8]
mov r12, [r15+90h]
mov r15, [r15+98h]
mov edi, 30h ; '0'; unsigned __int64
call __Znwm; operator new(ulong)
mov rcx, [rsp+108h+var_100]
mov [rsp+108h+var_100], 0
mov [rax+8], r13
mov [rax+10h], rbp
mov [rax+18h], r12
mov [rax+20h], r15
lea rdx, _ZTVN4flux6parser8ExprStmtE; `vtable for'flux::parser::ExprStmt
add rdx, 10h
mov [rax], rdx
mov [rax+28h], rcx
lea r12, [rsp+108h+var_A8]
jmp short loc_22238
loc_22217:
lea rsi, [r15+8]
lea rcx, aExpectedExpres_3; "Expected expression"
mov edx, 13h
mov rdi, r15
call _ZN4flux6parser6Parser5errorERKNS_5lexer5TokenESt17basic_string_viewIcSt11char_traitsIcEE; flux::parser::Parser::error(flux::lexer::Token const&,std::string_view)
mov qword ptr [rbx], 0
xor eax, eax
loc_22238:
mov [rbx], rax
mov rdi, [rsp+108h+var_100]
test rdi, rdi
jz short loc_2224B
mov rax, [rdi]
call qword ptr [rax+8]
loc_2224B:
mov rdi, [rsp+108h+var_B8]; void *
cmp rdi, r12
jz short loc_22262
mov rsi, [rsp+108h+var_A8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_22262:
mov rax, rbx
add rsp, 0D8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_22279:
mov rbx, rax
test r14, r14
jz short loc_2228A
mov rax, [r14]
mov rdi, r14
call qword ptr [rax+8]
loc_2228A:
mov [rsp+arg_0], 0
jmp short loc_22298
mov rbx, rax
loc_22298:
mov rdi, [rsp+arg_48]; void *
lea rax, [rsp+arg_58]
cmp rdi, rax
jz short loc_222B4
mov rsi, [rsp+arg_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_222B4:
mov rdi, rbx
call __Unwind_Resume
|
flux::parser::Parser * flux::parser::Parser::expressionStatement(flux::parser::Parser *this, long long a2)
{
__int128 v2; // xmm0
__int128 v3; // xmm1
__int128 v4; // xmm2
long long v5; // r13
long long v6; // rbp
long long v7; // r12
long long v8; // r15
_QWORD *v9; // rax
long long v10; // rcx
long long v12; // [rsp+8h] [rbp-100h] BYREF
__int128 v13; // [rsp+10h] [rbp-F8h]
__int128 v14; // [rsp+20h] [rbp-E8h]
__int128 v15; // [rsp+30h] [rbp-D8h]
__int128 v16; // [rsp+40h] [rbp-C8h]
void *v17; // [rsp+50h] [rbp-B8h] BYREF
_QWORD v18[3]; // [rsp+60h] [rbp-A8h] BYREF
_BYTE v19[64]; // [rsp+78h] [rbp-90h] BYREF
long long *v20; // [rsp+B8h] [rbp-50h]
long long v21; // [rsp+C8h] [rbp-40h] BYREF
v2 = *(_OWORD *)(a2 + 8);
v3 = *(_OWORD *)(a2 + 24);
v4 = *(_OWORD *)(a2 + 40);
v16 = *(_OWORD *)(a2 + 56);
v15 = v4;
v14 = v3;
v13 = v2;
v17 = v18;
std::string::_M_construct<char *>(&v17, *(_BYTE **)(a2 + 72), *(_QWORD *)(a2 + 72) + *(_QWORD *)(a2 + 80));
flux::parser::Parser::expression((flux::parser::Parser *)&v12);
if ( v12 )
{
flux::parser::Parser::consume((flux::parser::Parser *)v19, a2, 88, 29LL, (long long)"Expected ';' after expression");
if ( v20 != &v21 )
operator delete(v20, v21 + 1);
v5 = *((_QWORD *)&v14 + 1);
v6 = v15;
v7 = *(_QWORD *)(a2 + 144);
v8 = *(_QWORD *)(a2 + 152);
v9 = (_QWORD *)operator new(0x30uLL);
v10 = v12;
v12 = 0LL;
v9[1] = v5;
v9[2] = v6;
v9[3] = v7;
v9[4] = v8;
*v9 = &`vtable for'flux::parser::ExprStmt + 2;
v9[5] = v10;
}
else
{
flux::parser::Parser::error((_BYTE *)a2, a2 + 8, 19LL, (long long)"Expected expression");
*(_QWORD *)this = 0LL;
v9 = 0LL;
}
*(_QWORD *)this = v9;
if ( v12 )
(*(void ( **)(long long))(*(_QWORD *)v12 + 8LL))(v12);
if ( v17 != v18 )
operator delete(v17, v18[0] + 1LL);
return this;
}
|
expressionStatement:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xd8
MOV R15,RSI
MOV RBX,RDI
MOVUPS XMM0,xmmword ptr [RSI + 0x8]
MOVUPS XMM1,xmmword ptr [RSI + 0x18]
MOVUPS XMM2,xmmword ptr [RSI + 0x28]
MOVUPS XMM3,xmmword ptr [RSI + 0x38]
LEA RDI,[RSP + 0x50]
MOVAPS xmmword ptr [RDI + -0x10],XMM3
MOVAPS xmmword ptr [RDI + -0x20],XMM2
MOVAPS xmmword ptr [RDI + -0x30],XMM1
MOVAPS xmmword ptr [RDI + -0x40],XMM0
LEA R12,[RSP + 0x60]
MOV qword ptr [R12 + -0x10],R12
MOV RSI,qword ptr [RSI + 0x48]
MOV RDX,qword ptr [R15 + 0x50]
ADD RDX,RSI
CALL 0x00109160
LAB_00122164:
LEA RDI,[RSP + 0x8]
MOV RSI,R15
CALL 0x0011cf50
MOV R14,qword ptr [RSP + 0x8]
TEST R14,R14
JZ 0x00122217
LAB_0012217f:
LEA R8,[0x12d873]
LEA RDI,[RSP + 0x78]
MOV ECX,0x1d
MOV RSI,R15
MOV EDX,0x58
CALL 0x00114f3c
LEA RAX,[RSP + 0xc8]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001221be
MOV RSI,qword ptr [RSP + 0xc8]
INC RSI
CALL 0x00106280
LAB_001221be:
MOV R13,qword ptr [RSP + 0x28]
MOV RBP,qword ptr [RSP + 0x30]
MOV R12,qword ptr [R15 + 0x90]
MOV R15,qword ptr [R15 + 0x98]
LAB_001221d6:
MOV EDI,0x30
CALL 0x00106270
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x8],0x0
MOV qword ptr [RAX + 0x8],R13
MOV qword ptr [RAX + 0x10],RBP
MOV qword ptr [RAX + 0x18],R12
MOV qword ptr [RAX + 0x20],R15
LEA RDX,[0x13a318]
ADD RDX,0x10
MOV qword ptr [RAX],RDX
MOV qword ptr [RAX + 0x28],RCX
LEA R12,[RSP + 0x60]
JMP 0x00122238
LAB_00122217:
LEA RSI,[R15 + 0x8]
LAB_0012221b:
LEA RCX,[0x12b43a]
MOV EDX,0x13
MOV RDI,R15
CALL 0x00114c10
LAB_0012222f:
MOV qword ptr [RBX],0x0
XOR EAX,EAX
LAB_00122238:
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x0012224b
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_0012224b:
MOV RDI,qword ptr [RSP + 0x50]
CMP RDI,R12
JZ 0x00122262
MOV RSI,qword ptr [RSP + 0x60]
INC RSI
CALL 0x00106280
LAB_00122262:
MOV RAX,RBX
ADD RSP,0xd8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* flux::parser::Parser::expressionStatement() */
void flux::parser::Parser::expressionStatement(void)
{
int8 uVar1;
int8 uVar2;
int8 uVar3;
int8 uVar4;
long *plVar5;
int8 *puVar6;
long in_RSI;
int8 *in_RDI;
long *local_100;
int4 local_f8;
int4 uStack_f4;
int4 uStack_f0;
int4 uStack_ec;
int4 local_e8;
int4 uStack_e4;
int4 uStack_e0;
int4 uStack_dc;
int4 local_d8;
int4 uStack_d4;
int4 uStack_d0;
int4 uStack_cc;
int4 local_c8;
int4 uStack_c4;
int4 uStack_c0;
int4 uStack_bc;
long *local_b8 [2];
long local_a8 [3];
int1 local_90 [64];
long *local_50;
long local_40 [2];
local_f8 = *(int4 *)(in_RSI + 8);
uStack_f4 = *(int4 *)(in_RSI + 0xc);
uStack_f0 = *(int4 *)(in_RSI + 0x10);
uStack_ec = *(int4 *)(in_RSI + 0x14);
local_e8 = *(int4 *)(in_RSI + 0x18);
uStack_e4 = *(int4 *)(in_RSI + 0x1c);
uStack_e0 = *(int4 *)(in_RSI + 0x20);
uStack_dc = *(int4 *)(in_RSI + 0x24);
local_d8 = *(int4 *)(in_RSI + 0x28);
uStack_d4 = *(int4 *)(in_RSI + 0x2c);
uStack_d0 = *(int4 *)(in_RSI + 0x30);
uStack_cc = *(int4 *)(in_RSI + 0x34);
local_c8 = *(int4 *)(in_RSI + 0x38);
uStack_c4 = *(int4 *)(in_RSI + 0x3c);
uStack_c0 = *(int4 *)(in_RSI + 0x40);
uStack_bc = *(int4 *)(in_RSI + 0x44);
local_b8[0] = local_a8;
std::__cxx11::string::_M_construct<char*>
(local_b8,*(long *)(in_RSI + 0x48),*(long *)(in_RSI + 0x50) + *(long *)(in_RSI + 0x48));
/* try { // try from 00122164 to 00122170 has its CatchHandler @ 00122295 */
expression((Parser *)&local_100);
if (local_100 == (long *)0x0) {
/* try { // try from 0012221b to 0012222e has its CatchHandler @ 00122279 */
error();
*in_RDI = 0;
puVar6 = (int8 *)0x0;
}
else {
/* try { // try from 0012217f to 0012219c has its CatchHandler @ 00122279 */
consume(local_90);
if (local_50 != local_40) {
operator_delete(local_50,local_40[0] + 1);
}
uVar3 = CONCAT44(uStack_dc,uStack_e0);
uVar4 = CONCAT44(uStack_d4,local_d8);
uVar1 = *(int8 *)(in_RSI + 0x90);
uVar2 = *(int8 *)(in_RSI + 0x98);
/* try { // try from 001221d6 to 001221df has its CatchHandler @ 00122277 */
puVar6 = (int8 *)operator_new(0x30);
plVar5 = local_100;
local_100 = (long *)0x0;
puVar6[1] = uVar3;
puVar6[2] = uVar4;
puVar6[3] = uVar1;
puVar6[4] = uVar2;
*puVar6 = &PTR__ExprStmt_0013a328;
puVar6[5] = plVar5;
}
*in_RDI = puVar6;
if (local_100 != (long *)0x0) {
(**(code **)(*local_100 + 8))();
}
if (local_b8[0] != local_a8) {
operator_delete(local_b8[0],local_a8[0] + 1);
}
return;
}
|
|
65,056 |
js_add_slow
|
bluesky950520[P]quickjs/quickjs.c
|
int js_add_slow(JSContext *ctx, JSValue *sp)
{
JSValue op1, op2;
uint32_t tag1, tag2;
op1 = sp[-2];
op2 = sp[-1];
tag1 = JS_VALUE_GET_NORM_TAG(op1);
tag2 = JS_VALUE_GET_NORM_TAG(op2);
/* fast path for float64 */
if (tag1 == JS_TAG_FLOAT64 && tag2 == JS_TAG_FLOAT64) {
double d1, d2;
d1 = JS_VALUE_GET_FLOAT64(op1);
d2 = JS_VALUE_GET_FLOAT64(op2);
sp[-2] = js_float64(d1 + d2);
return 0;
}
if (tag1 == JS_TAG_OBJECT || tag2 == JS_TAG_OBJECT) {
op1 = JS_ToPrimitiveFree(ctx, op1, HINT_NONE);
if (JS_IsException(op1)) {
JS_FreeValue(ctx, op2);
goto exception;
}
op2 = JS_ToPrimitiveFree(ctx, op2, HINT_NONE);
if (JS_IsException(op2)) {
JS_FreeValue(ctx, op1);
goto exception;
}
tag1 = JS_VALUE_GET_NORM_TAG(op1);
tag2 = JS_VALUE_GET_NORM_TAG(op2);
}
if (tag1 == JS_TAG_STRING || tag2 == JS_TAG_STRING) {
sp[-2] = JS_ConcatString(ctx, op1, op2);
if (JS_IsException(sp[-2]))
goto exception;
return 0;
}
op1 = JS_ToNumericFree(ctx, op1);
if (JS_IsException(op1)) {
JS_FreeValue(ctx, op2);
goto exception;
}
op2 = JS_ToNumericFree(ctx, op2);
if (JS_IsException(op2)) {
JS_FreeValue(ctx, op1);
goto exception;
}
tag1 = JS_VALUE_GET_NORM_TAG(op1);
tag2 = JS_VALUE_GET_NORM_TAG(op2);
if (tag1 == JS_TAG_INT && tag2 == JS_TAG_INT) {
int32_t v1, v2;
int64_t v;
v1 = JS_VALUE_GET_INT(op1);
v2 = JS_VALUE_GET_INT(op2);
v = (int64_t)v1 + (int64_t)v2;
sp[-2] = js_int64(v);
} else if (tag1 == JS_TAG_BIG_INT || tag2 == JS_TAG_BIG_INT) {
if (js_binary_arith_bigint(ctx, OP_add, sp - 2, op1, op2))
goto exception;
} else {
double d1, d2;
/* float64 result */
if (JS_ToFloat64Free(ctx, &d1, op1)) {
JS_FreeValue(ctx, op2);
goto exception;
}
if (JS_ToFloat64Free(ctx, &d2, op2))
goto exception;
sp[-2] = js_float64(d1 + d2);
}
return 0;
exception:
sp[-2] = JS_UNDEFINED;
sp[-1] = JS_UNDEFINED;
return -1;
}
|
O1
|
c
|
js_add_slow:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movq -0x20(%rsi), %xmm0
movq -0x18(%rsi), %r15
movups -0x10(%rsi), %xmm1
movaps %xmm1, 0x10(%rsp)
movq 0x18(%rsp), %r12
movl %r15d, %eax
xorl $0x7, %eax
movl %r12d, %ecx
xorl $0x7, %ecx
orl %eax, %ecx
jne 0x401e3
addsd 0x10(%rsp), %xmm0
movsd %xmm0, -0x20(%rbx)
movq $0x7, -0x18(%rbx)
xorl %eax, %eax
jmp 0x40311
movq %rdi, %r14
cmpl $-0x1, %r15d
sete %al
cmpl $-0x1, %r12d
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x40264
movq %xmm0, %rsi
movq %r14, %rdi
movq %r15, %rdx
movl $0x2, %ecx
callq 0x3dfd7
movq %rdx, %r15
movq 0x10(%rsp), %rsi
cmpl $0x6, %r15d
jne 0x4022a
movq 0x18(%r14), %rdi
movq %r12, %rdx
jmp 0x402f2
movq %rax, %r13
movq %r14, %rdi
movq %r12, %rdx
movl $0x2, %ecx
callq 0x3dfd7
movq %rdx, %r12
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
cmpl $0x6, %r12d
jne 0x4025f
movq 0x18(%r14), %rdi
movq %r13, %rsi
movq %r15, %rdx
jmp 0x402f2
movq %r13, %xmm0
movq %xmm0, %rsi
cmpl $-0x7, %r15d
je 0x4029e
cmpl $-0x7, %r12d
je 0x4029e
movq %r14, %rdi
movq %r15, %rdx
movl $0x1, %ecx
callq 0x42b20
movq %rdx, %r13
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
cmpl $0x6, %r13d
jne 0x402c6
movq 0x18(%r14), %rdi
jmp 0x402f2
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %r8
movq %r14, %rdi
movq %r15, %rdx
callq 0x40436
movq %rax, -0x20(%rbx)
movq %rdx, -0x18(%rbx)
cmpl $0x6, %edx
jne 0x401dc
jmp 0x402f7
movq %rax, %r15
movq %r14, %rdi
movl $0x1, %ecx
callq 0x42b20
movq %rdx, %rbp
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
cmpl $0x6, %ebp
jne 0x40320
movq 0x18(%r14), %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x1d8c6
xorl %eax, %eax
movl %eax, -0x20(%rbx)
movl $0x3, %ecx
movq %rcx, -0x18(%rbx)
movl %eax, -0x10(%rbx)
movq %rcx, -0x8(%rbx)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
movl %ebp, %eax
orl %r13d, %eax
je 0x4034e
cmpl $-0x9, %r13d
je 0x40387
cmpl $-0x9, %ebp
je 0x40387
cmpl $0x2, %r13d
ja 0x403b6
xorps %xmm0, %xmm0
cvtsi2sd %r15d, %xmm0
movsd %xmm0, 0x30(%rsp)
jmp 0x403e9
movslq 0x10(%rsp), %rax
movslq %r15d, %rcx
addq %rax, %rcx
movslq %ecx, %rdx
xorl %eax, %eax
cmpq %rcx, %rdx
movl %edx, %edx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
movq %xmm0, %rcx
cmoveq %rdx, %rcx
movl $0x7, %edx
cmoveq %rax, %rdx
movq %rcx, -0x20(%rbx)
movq %rdx, -0x18(%rbx)
jmp 0x40311
leaq -0x20(%rbx), %rdx
movdqa 0x10(%rsp), %xmm0
movdqu %xmm0, (%rsp)
movq %r14, %rdi
movl $0x9d, %esi
movq %r15, %rcx
movq %r13, %r8
callq 0x4267f
testl %eax, %eax
jne 0x402f7
jmp 0x401dc
cmpl $0x7, %r13d
jne 0x403c3
movq %r15, 0x30(%rsp)
jmp 0x403e9
leaq 0x30(%rsp), %rsi
movq %r14, %rdi
movq %r15, %rdx
movq %r13, %rcx
callq 0x3df2f
testl %eax, %eax
je 0x403e9
movq 0x18(%r14), %rdi
movq %r12, %rsi
movq %rbp, %rdx
jmp 0x402f2
cmpl $0x2, %ebp
ja 0x403fe
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
movsd %xmm0, 0x28(%rsp)
jmp 0x40425
cmpl $0x7, %ebp
jne 0x4040a
movq %r12, 0x28(%rsp)
jmp 0x40425
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
movq %r12, %rdx
movq %rbp, %rcx
callq 0x3df2f
testl %eax, %eax
jne 0x402f7
movsd 0x30(%rsp), %xmm0
addsd 0x28(%rsp), %xmm0
jmp 0x401cf
|
js_add_slow:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov rbx, rsi
movq xmm0, qword ptr [rsi-20h]
mov r15, [rsi-18h]
movups xmm1, xmmword ptr [rsi-10h]
movaps [rsp+68h+var_58], xmm1
mov r12, qword ptr [rsp+68h+var_58+8]
mov eax, r15d
xor eax, 7
mov ecx, r12d
xor ecx, 7
or ecx, eax
jnz short loc_401E3
addsd xmm0, qword ptr [rsp+68h+var_58]
loc_401CF:
movsd qword ptr [rbx-20h], xmm0
mov qword ptr [rbx-18h], 7
loc_401DC:
xor eax, eax
jmp loc_40311
loc_401E3:
mov r14, rdi
cmp r15d, 0FFFFFFFFh
setz al
cmp r12d, 0FFFFFFFFh
setz cl
or cl, al
cmp cl, 1
jnz short loc_40264
movq rsi, xmm0
mov rdi, r14
mov rdx, r15
mov ecx, 2
call JS_ToPrimitiveFree
mov r15, rdx
mov rsi, qword ptr [rsp+68h+var_58]
cmp r15d, 6
jnz short loc_4022A
mov rdi, [r14+18h]
mov rdx, r12
jmp loc_402F2
loc_4022A:
mov r13, rax
mov rdi, r14
mov rdx, r12
mov ecx, 2
call JS_ToPrimitiveFree
mov r12, rdx
mov qword ptr [rsp+68h+var_58], rax
mov qword ptr [rsp+68h+var_58+8], rdx
cmp r12d, 6
jnz short loc_4025F
mov rdi, [r14+18h]
mov rsi, r13
mov rdx, r15
jmp loc_402F2
loc_4025F:
movq xmm0, r13
loc_40264:
movq rsi, xmm0
cmp r15d, 0FFFFFFF9h
jz short loc_4029E
cmp r12d, 0FFFFFFF9h
jz short loc_4029E
mov rdi, r14
mov rdx, r15
mov ecx, 1
call JS_ToNumberHintFree
mov r13, rdx
mov rsi, qword ptr [rsp+68h+var_58]
mov rdx, qword ptr [rsp+68h+var_58+8]
cmp r13d, 6
jnz short loc_402C6
mov rdi, [r14+18h]
jmp short loc_402F2
loc_4029E:
mov rcx, qword ptr [rsp+68h+var_58]
mov r8, qword ptr [rsp+68h+var_58+8]
mov rdi, r14
mov rdx, r15
call JS_ConcatString
mov [rbx-20h], rax
mov [rbx-18h], rdx
cmp edx, 6
jnz loc_401DC
jmp short loc_402F7
loc_402C6:
mov r15, rax
mov rdi, r14
mov ecx, 1
call JS_ToNumberHintFree
mov rbp, rdx
mov qword ptr [rsp+68h+var_58], rax
mov qword ptr [rsp+68h+var_58+8], rdx
cmp ebp, 6
jnz short loc_40320
mov rdi, [r14+18h]
mov rsi, r15
mov rdx, r13
loc_402F2:
call JS_FreeValueRT
loc_402F7:
xor eax, eax
mov [rbx-20h], eax
mov ecx, 3
mov [rbx-18h], rcx
mov [rbx-10h], eax
mov [rbx-8], rcx
mov eax, 0FFFFFFFFh
loc_40311:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_40320:
mov r12, rax
mov eax, ebp
or eax, r13d
jz short loc_4034E
cmp r13d, 0FFFFFFF7h
jz short loc_40387
cmp ebp, 0FFFFFFF7h
jz short loc_40387
cmp r13d, 2
ja short loc_403B6
xorps xmm0, xmm0
cvtsi2sd xmm0, r15d
movsd [rsp+68h+var_38], xmm0
jmp loc_403E9
loc_4034E:
movsxd rax, dword ptr [rsp+68h+var_58]
movsxd rcx, r15d
add rcx, rax
movsxd rdx, ecx
xor eax, eax
cmp rdx, rcx
mov edx, edx
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
movq rcx, xmm0
cmovz rcx, rdx
mov edx, 7
cmovz rdx, rax
mov [rbx-20h], rcx
mov [rbx-18h], rdx
jmp short loc_40311
loc_40387:
lea rdx, [rbx-20h]
movdqa xmm0, [rsp+68h+var_58]
movdqu [rsp+68h+var_68], xmm0
mov rdi, r14
mov esi, 9Dh
mov rcx, r15
mov r8, r13
call js_binary_arith_bigint
test eax, eax
jnz loc_402F7
jmp loc_401DC
loc_403B6:
cmp r13d, 7
jnz short loc_403C3
mov [rsp+68h+var_38], r15
jmp short loc_403E9
loc_403C3:
lea rsi, [rsp+68h+var_38]
mov rdi, r14
mov rdx, r15
mov rcx, r13
call __JS_ToFloat64Free
test eax, eax
jz short loc_403E9
mov rdi, [r14+18h]
mov rsi, r12
mov rdx, rbp
jmp loc_402F2
loc_403E9:
cmp ebp, 2
ja short loc_403FE
xorps xmm0, xmm0
cvtsi2sd xmm0, r12d
movsd [rsp+68h+var_40], xmm0
jmp short loc_40425
loc_403FE:
cmp ebp, 7
jnz short loc_4040A
mov [rsp+68h+var_40], r12
jmp short loc_40425
loc_4040A:
lea rsi, [rsp+68h+var_40]
mov rdi, r14
mov rdx, r12
mov rcx, rbp
call __JS_ToFloat64Free
test eax, eax
jnz loc_402F7
loc_40425:
movsd xmm0, [rsp+68h+var_38]
addsd xmm0, [rsp+68h+var_40]
jmp loc_401CF
|
long long js_add_slow(
long long a1,
long long a2,
double a3,
double a4,
__m128 a5,
__m128 a6,
double a7,
double a8,
__m128 a9,
__m128 a10)
{
__m128 v11; // xmm0
long long v12; // r15
__m128 v13; // xmm1
__int32 v14; // r12d
double v15; // xmm0_8
long long result; // rax
unsigned long long v17; // rax
double v18; // xmm4_8
double v19; // xmm5_8
long long v20; // rdx
_DWORD *v21; // rsi
long long v22; // rdi
long long v23; // rdx
_DWORD *v24; // r13
__m128i v25; // rax
long long v26; // rax
long long v27; // rdx
long long v28; // r13
long long v29; // rdx
long long v30; // r15
__m128i v31; // rax
int v32; // r9d
long long v33; // rbp
long long v34; // r12
long long v35; // rcx
bool v36; // zf
double v37; // rdx
double v38; // rcx
long long v39; // rdx
__m128i v40; // xmm0
__m128i v41; // [rsp+10h] [rbp-58h] BYREF
double v42; // [rsp+28h] [rbp-40h] BYREF
double v43[7]; // [rsp+30h] [rbp-38h] BYREF
v11 = (__m128)_mm_loadl_epi64((const __m128i *)(a2 - 32));
v12 = *(_QWORD *)(a2 - 24);
v13 = *(__m128 *)(a2 - 16);
v41 = (__m128i)v13;
v14 = v13.m128_i32[2];
if ( !((unsigned int)v12 ^ 7 | v13.m128_i32[2] ^ 7) )
{
v15 = *(double *)v11.m128_u64 + *(double *)v41.m128i_i64;
LABEL_3:
*(double *)(a2 - 32) = v15;
*(_QWORD *)(a2 - 24) = 7LL;
return 0LL;
}
if ( (_DWORD)v12 == -1 || v41.m128i_i32[2] == -1 )
{
v17 = JS_ToPrimitiveFree(a1, v11.m128_u64[0], v12, 2, v11, v13, a5, a6, a7, a8, a9, a10);
v12 = v20;
v21 = (_DWORD *)v41.m128i_i64[0];
if ( (_DWORD)v20 == 6 )
{
v22 = *(_QWORD *)(a1 + 24);
v23 = v41.m128i_i64[1];
LABEL_19:
JS_FreeValueRT(v22, v21, v23);
LABEL_20:
*(_DWORD *)(a2 - 32) = 0;
*(_QWORD *)(a2 - 24) = 3LL;
*(_DWORD *)(a2 - 16) = 0;
*(_QWORD *)(a2 - 8) = 3LL;
return 0xFFFFFFFFLL;
}
v24 = (_DWORD *)v17;
v25.m128i_i64[0] = JS_ToPrimitiveFree(
a1,
v41.m128i_u64[0],
v41.m128i_i64[1],
2,
v11,
v13,
a5,
a6,
v18,
v19,
a9,
a10);
v14 = v25.m128i_i32[2];
v41 = v25;
if ( v25.m128i_i32[2] == 6 )
{
v22 = *(_QWORD *)(a1 + 24);
v21 = v24;
v23 = v12;
goto LABEL_19;
}
v11.m128_u64[0] = (unsigned long long)v24;
}
if ( (_DWORD)v12 == -7 || v14 == -7 )
{
*(_QWORD *)(a2 - 32) = JS_ConcatString(a1, v11.m128_u64[0], v12);
*(_QWORD *)(a2 - 24) = v29;
if ( (_DWORD)v29 != 6 )
return 0LL;
goto LABEL_20;
}
v26 = JS_ToNumberHintFree(a1, v11.m128_u64[0], v12, 1LL);
v28 = v27;
v23 = v41.m128i_i64[1];
v21 = (_DWORD *)v41.m128i_i64[0];
if ( (_DWORD)v28 == 6 )
{
v22 = *(_QWORD *)(a1 + 24);
goto LABEL_19;
}
v30 = v26;
v31.m128i_i64[0] = JS_ToNumberHintFree(a1, v41.m128i_i64[0], v41.m128i_i64[1], 1LL);
v33 = v31.m128i_i64[1];
v41 = v31;
if ( v31.m128i_i32[2] == 6 )
{
v22 = *(_QWORD *)(a1 + 24);
v21 = (_DWORD *)v30;
v23 = v28;
goto LABEL_19;
}
v34 = v31.m128i_i64[0];
if ( (unsigned int)v28 | v31.m128i_i32[2] )
{
if ( (_DWORD)v28 == -9 || v31.m128i_i32[2] == -9 )
{
v40 = _mm_load_si128(&v41);
if ( !(unsigned int)js_binary_arith_bigint(
a1,
157,
(int)a2 - 32,
v30,
v28,
v32,
v40.m128i_i64[0],
v40.m128i_i64[1]) )
return 0LL;
goto LABEL_20;
}
if ( (unsigned int)v28 > 2 )
{
if ( (_DWORD)v28 == 7 )
{
v43[0] = *(double *)&v30;
}
else if ( (unsigned int)_JS_ToFloat64Free(a1, (long long *)v43, v30, v28) )
{
v22 = *(_QWORD *)(a1 + 24);
v21 = (_DWORD *)v34;
v23 = v33;
goto LABEL_19;
}
}
else
{
v43[0] = (double)(int)v30;
}
if ( (unsigned int)v33 > 2 )
{
if ( (_DWORD)v33 == 7 )
{
v42 = *(double *)&v34;
}
else if ( (unsigned int)_JS_ToFloat64Free(a1, (long long *)&v42, v34, v33) )
{
goto LABEL_20;
}
}
else
{
v42 = (double)(int)v34;
}
v15 = v43[0] + v42;
goto LABEL_3;
}
v35 = v41.m128i_i32[0] + (long long)(int)v30;
result = 0LL;
v36 = (int)v35 == v35;
*(_QWORD *)&v37 = (unsigned int)v35;
v38 = (double)(int)v35;
if ( v36 )
v38 = v37;
v39 = 7LL;
if ( v36 )
v39 = 0LL;
*(double *)(a2 - 32) = v38;
*(_QWORD *)(a2 - 24) = v39;
return result;
}
|
js_add_slow:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV RBX,RSI
MOVQ XMM0,qword ptr [RSI + -0x20]
MOV R15,qword ptr [RSI + -0x18]
MOVUPS XMM1,xmmword ptr [RSI + -0x10]
MOVAPS xmmword ptr [RSP + 0x10],XMM1
MOV R12,qword ptr [RSP + 0x18]
MOV EAX,R15D
XOR EAX,0x7
MOV ECX,R12D
XOR ECX,0x7
OR ECX,EAX
JNZ 0x001401e3
ADDSD XMM0,qword ptr [RSP + 0x10]
LAB_001401cf:
MOVSD qword ptr [RBX + -0x20],XMM0
MOV qword ptr [RBX + -0x18],0x7
LAB_001401dc:
XOR EAX,EAX
JMP 0x00140311
LAB_001401e3:
MOV R14,RDI
CMP R15D,-0x1
SETZ AL
CMP R12D,-0x1
SETZ CL
OR CL,AL
CMP CL,0x1
JNZ 0x00140264
MOVQ RSI,XMM0
MOV RDI,R14
MOV RDX,R15
MOV ECX,0x2
CALL 0x0013dfd7
MOV R15,RDX
MOV RSI,qword ptr [RSP + 0x10]
CMP R15D,0x6
JNZ 0x0014022a
MOV RDI,qword ptr [R14 + 0x18]
MOV RDX,R12
JMP 0x001402f2
LAB_0014022a:
MOV R13,RAX
MOV RDI,R14
MOV RDX,R12
MOV ECX,0x2
CALL 0x0013dfd7
MOV R12,RDX
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
CMP R12D,0x6
JNZ 0x0014025f
MOV RDI,qword ptr [R14 + 0x18]
MOV RSI,R13
MOV RDX,R15
JMP 0x001402f2
LAB_0014025f:
MOVQ XMM0,R13
LAB_00140264:
MOVQ RSI,XMM0
CMP R15D,-0x7
JZ 0x0014029e
CMP R12D,-0x7
JZ 0x0014029e
MOV RDI,R14
MOV RDX,R15
MOV ECX,0x1
CALL 0x00142b20
MOV R13,RDX
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x18]
CMP R13D,0x6
JNZ 0x001402c6
MOV RDI,qword ptr [R14 + 0x18]
JMP 0x001402f2
LAB_0014029e:
MOV RCX,qword ptr [RSP + 0x10]
MOV R8,qword ptr [RSP + 0x18]
MOV RDI,R14
MOV RDX,R15
CALL 0x00140436
MOV qword ptr [RBX + -0x20],RAX
MOV qword ptr [RBX + -0x18],RDX
CMP EDX,0x6
JNZ 0x001401dc
JMP 0x001402f7
LAB_001402c6:
MOV R15,RAX
MOV RDI,R14
MOV ECX,0x1
CALL 0x00142b20
MOV RBP,RDX
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
CMP EBP,0x6
JNZ 0x00140320
MOV RDI,qword ptr [R14 + 0x18]
MOV RSI,R15
MOV RDX,R13
LAB_001402f2:
CALL 0x0011d8c6
LAB_001402f7:
XOR EAX,EAX
MOV dword ptr [RBX + -0x20],EAX
MOV ECX,0x3
MOV qword ptr [RBX + -0x18],RCX
MOV dword ptr [RBX + -0x10],EAX
MOV qword ptr [RBX + -0x8],RCX
MOV EAX,0xffffffff
LAB_00140311:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00140320:
MOV R12,RAX
MOV EAX,EBP
OR EAX,R13D
JZ 0x0014034e
CMP R13D,-0x9
JZ 0x00140387
CMP EBP,-0x9
JZ 0x00140387
CMP R13D,0x2
JA 0x001403b6
XORPS XMM0,XMM0
CVTSI2SD XMM0,R15D
MOVSD qword ptr [RSP + 0x30],XMM0
JMP 0x001403e9
LAB_0014034e:
MOVSXD RAX,dword ptr [RSP + 0x10]
MOVSXD RCX,R15D
ADD RCX,RAX
MOVSXD RDX,ECX
XOR EAX,EAX
CMP RDX,RCX
MOV EDX,EDX
XORPS XMM0,XMM0
CVTSI2SD XMM0,RCX
MOVQ RCX,XMM0
CMOVZ RCX,RDX
MOV EDX,0x7
CMOVZ RDX,RAX
MOV qword ptr [RBX + -0x20],RCX
MOV qword ptr [RBX + -0x18],RDX
JMP 0x00140311
LAB_00140387:
LEA RDX,[RBX + -0x20]
MOVDQA XMM0,xmmword ptr [RSP + 0x10]
MOVDQU xmmword ptr [RSP],XMM0
MOV RDI,R14
MOV ESI,0x9d
MOV RCX,R15
MOV R8,R13
CALL 0x0014267f
TEST EAX,EAX
JNZ 0x001402f7
JMP 0x001401dc
LAB_001403b6:
CMP R13D,0x7
JNZ 0x001403c3
MOV qword ptr [RSP + 0x30],R15
JMP 0x001403e9
LAB_001403c3:
LEA RSI,[RSP + 0x30]
MOV RDI,R14
MOV RDX,R15
MOV RCX,R13
CALL 0x0013df2f
TEST EAX,EAX
JZ 0x001403e9
MOV RDI,qword ptr [R14 + 0x18]
MOV RSI,R12
MOV RDX,RBP
JMP 0x001402f2
LAB_001403e9:
CMP EBP,0x2
JA 0x001403fe
XORPS XMM0,XMM0
CVTSI2SD XMM0,R12D
MOVSD qword ptr [RSP + 0x28],XMM0
JMP 0x00140425
LAB_001403fe:
CMP EBP,0x7
JNZ 0x0014040a
MOV qword ptr [RSP + 0x28],R12
JMP 0x00140425
LAB_0014040a:
LEA RSI,[RSP + 0x28]
MOV RDI,R14
MOV RDX,R12
MOV RCX,RBP
CALL 0x0013df2f
TEST EAX,EAX
JNZ 0x001402f7
LAB_00140425:
MOVSD XMM0,qword ptr [RSP + 0x30]
ADDSD XMM0,qword ptr [RSP + 0x28]
JMP 0x001401cf
|
int8 js_add_slow(long param_1,long param_2)
{
double dVar1;
int iVar2;
ulong uVar3;
int8 uVar4;
uint uVar5;
int8 in_R9;
uint uVar6;
int iVar7;
bool bVar8;
double dVar9;
int1 auVar10 [16];
int1 auVar11 [16];
int8 local_58;
int8 uStack_50;
double local_40;
double local_38;
dVar9 = *(double *)*(int1 (*) [16])(param_2 + -0x20);
auVar10 = *(int1 (*) [16])(param_2 + -0x20);
dVar1 = *(double *)*(int1 (*) [16])(param_2 + -0x10);
iVar2 = *(int *)(param_2 + -8);
uVar4 = *(int8 *)(param_2 + -8);
auVar11 = *(int1 (*) [16])(param_2 + -0x10);
iVar7 = (int)*(int8 *)(param_2 + -0x18);
if (iVar2 == 7 && iVar7 == 7) {
dVar9 = dVar9 + dVar1;
goto LAB_001401cf;
}
if (iVar2 == -1 || iVar7 == -1) {
auVar10 = JS_ToPrimitiveFree(param_1,dVar9,*(int8 *)(param_2 + -0x18),2);
if (auVar10._8_4_ == 6) {
uVar4 = *(int8 *)(param_1 + 0x18);
}
else {
auVar11 = JS_ToPrimitiveFree(param_1,dVar1,uVar4,2);
if (auVar11._8_4_ != 6) goto LAB_00140264;
uVar4 = *(int8 *)(param_1 + 0x18);
auVar11 = auVar10;
}
}
else {
LAB_00140264:
uStack_50 = auVar11._8_8_;
local_58 = auVar11._0_8_;
if ((auVar10._8_4_ == -7) || (auVar11._8_4_ == -7)) {
auVar11 = JS_ConcatString(param_1,auVar10._0_8_,auVar10._8_8_,local_58,uStack_50);
*(int1 (*) [16])(param_2 + -0x20) = auVar11;
if (auVar11._8_4_ != 6) {
return 0;
}
goto LAB_001402f7;
}
auVar10 = JS_ToNumberHintFree(param_1,auVar10._0_8_,auVar10._8_8_,1);
dVar9 = auVar10._0_8_;
uVar6 = auVar10._8_4_;
if (uVar6 == 6) {
uVar4 = *(int8 *)(param_1 + 0x18);
}
else {
auVar11 = JS_ToNumberHintFree(param_1,local_58,uStack_50,1);
uVar5 = auVar11._8_4_;
if (uVar5 != 6) {
if (uVar5 == 0 && uVar6 == 0) {
uVar3 = (long)auVar10._0_4_ + (long)auVar11._0_4_;
bVar8 = (long)(int)uVar3 == uVar3;
dVar9 = (double)(long)uVar3;
if (bVar8) {
dVar9 = (double)(uVar3 & 0xffffffff);
}
uVar4 = 7;
if (bVar8) {
uVar4 = 0;
}
*(double *)(param_2 + -0x20) = dVar9;
*(int8 *)(param_2 + -0x18) = uVar4;
return 0;
}
if ((uVar6 == 0xfffffff7) || (uVar5 == 0xfffffff7)) {
iVar2 = js_binary_arith_bigint
(param_1,0x9d,param_2 + -0x20,dVar9,auVar10._8_8_,in_R9,auVar11);
if (iVar2 == 0) {
return 0;
}
goto LAB_001402f7;
}
if (uVar6 < 3) {
dVar9 = (double)auVar10._0_4_;
}
else if ((uVar6 != 7) &&
(iVar2 = __JS_ToFloat64Free(param_1,&local_38,dVar9,auVar10._8_8_), dVar9 = local_38
, iVar2 != 0)) {
uVar4 = *(int8 *)(param_1 + 0x18);
goto LAB_001402f2;
}
local_38 = dVar9;
if (uVar5 < 3) {
dVar9 = (double)auVar11._0_4_;
}
else {
dVar9 = auVar11._0_8_;
if ((uVar5 != 7) &&
(iVar2 = __JS_ToFloat64Free(param_1,&local_40,auVar11._0_8_,auVar11._8_8_),
dVar9 = local_40, iVar2 != 0)) goto LAB_001402f7;
}
local_40 = dVar9;
dVar9 = local_38 + local_40;
LAB_001401cf:
*(double *)(param_2 + -0x20) = dVar9;
*(int8 *)(param_2 + -0x18) = 7;
return 0;
}
uVar4 = *(int8 *)(param_1 + 0x18);
auVar11 = auVar10;
}
}
LAB_001402f2:
JS_FreeValueRT(uVar4,auVar11._0_8_,auVar11._8_8_);
LAB_001402f7:
*(int4 *)(param_2 + -0x20) = 0;
*(int8 *)(param_2 + -0x18) = 3;
*(int4 *)(param_2 + -0x10) = 0;
*(int8 *)(param_2 + -8) = 3;
return 0xffffffff;
}
|
|
65,057 |
js_add_slow
|
bluesky950520[P]quickjs/quickjs.c
|
int js_add_slow(JSContext *ctx, JSValue *sp)
{
JSValue op1, op2;
uint32_t tag1, tag2;
op1 = sp[-2];
op2 = sp[-1];
tag1 = JS_VALUE_GET_NORM_TAG(op1);
tag2 = JS_VALUE_GET_NORM_TAG(op2);
/* fast path for float64 */
if (tag1 == JS_TAG_FLOAT64 && tag2 == JS_TAG_FLOAT64) {
double d1, d2;
d1 = JS_VALUE_GET_FLOAT64(op1);
d2 = JS_VALUE_GET_FLOAT64(op2);
sp[-2] = js_float64(d1 + d2);
return 0;
}
if (tag1 == JS_TAG_OBJECT || tag2 == JS_TAG_OBJECT) {
op1 = JS_ToPrimitiveFree(ctx, op1, HINT_NONE);
if (JS_IsException(op1)) {
JS_FreeValue(ctx, op2);
goto exception;
}
op2 = JS_ToPrimitiveFree(ctx, op2, HINT_NONE);
if (JS_IsException(op2)) {
JS_FreeValue(ctx, op1);
goto exception;
}
tag1 = JS_VALUE_GET_NORM_TAG(op1);
tag2 = JS_VALUE_GET_NORM_TAG(op2);
}
if (tag1 == JS_TAG_STRING || tag2 == JS_TAG_STRING) {
sp[-2] = JS_ConcatString(ctx, op1, op2);
if (JS_IsException(sp[-2]))
goto exception;
return 0;
}
op1 = JS_ToNumericFree(ctx, op1);
if (JS_IsException(op1)) {
JS_FreeValue(ctx, op2);
goto exception;
}
op2 = JS_ToNumericFree(ctx, op2);
if (JS_IsException(op2)) {
JS_FreeValue(ctx, op1);
goto exception;
}
tag1 = JS_VALUE_GET_NORM_TAG(op1);
tag2 = JS_VALUE_GET_NORM_TAG(op2);
if (tag1 == JS_TAG_INT && tag2 == JS_TAG_INT) {
int32_t v1, v2;
int64_t v;
v1 = JS_VALUE_GET_INT(op1);
v2 = JS_VALUE_GET_INT(op2);
v = (int64_t)v1 + (int64_t)v2;
sp[-2] = js_int64(v);
} else if (tag1 == JS_TAG_BIG_INT || tag2 == JS_TAG_BIG_INT) {
if (js_binary_arith_bigint(ctx, OP_add, sp - 2, op1, op2))
goto exception;
} else {
double d1, d2;
/* float64 result */
if (JS_ToFloat64Free(ctx, &d1, op1)) {
JS_FreeValue(ctx, op2);
goto exception;
}
if (JS_ToFloat64Free(ctx, &d2, op2))
goto exception;
sp[-2] = js_float64(d1 + d2);
}
return 0;
exception:
sp[-2] = JS_UNDEFINED;
sp[-1] = JS_UNDEFINED;
return -1;
}
|
O2
|
c
|
js_add_slow:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movq -0x20(%rsi), %xmm0
movq -0x18(%rsi), %r12
movups -0x10(%rsi), %xmm1
movaps %xmm1, 0x10(%rsp)
movq 0x18(%rsp), %r15
movl %r12d, %eax
xorl $0x7, %eax
movl %r15d, %ecx
xorl $0x7, %ecx
orl %eax, %ecx
jne 0x38396
addsd 0x10(%rsp), %xmm0
movsd %xmm0, -0x20(%rbx)
movq $0x7, -0x18(%rbx)
xorl %eax, %eax
jmp 0x3846f
movq %rdi, %r14
cmpl $-0x1, %r12d
sete %al
cmpl $-0x1, %r15d
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x383fe
movq %xmm0, %rsi
pushq $0x2
popq %rcx
movq %r14, %rdi
movq %r12, %rdx
callq 0x366ee
movq %rdx, %r12
movq 0x10(%rsp), %rsi
cmpl $0x6, %r12d
je 0x38428
movq %rax, %r13
pushq $0x2
popq %rcx
movq %r14, %rdi
movq %r15, %rdx
callq 0x366ee
movq %rdx, %r15
movq %rax, 0x10(%rsp)
cmpl $0x6, %r15d
jne 0x383f9
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
jmp 0x3842e
movq %r13, %xmm0
movq %xmm0, %rsi
cmpl $-0x7, %r12d
je 0x38435
cmpl $-0x7, %r15d
je 0x38435
movq %r14, %rdi
movq %r12, %rdx
callq 0x3a3be
movq %rdx, %r13
movq 0x10(%rsp), %rsi
cmpl $0x6, %r13d
jne 0x3847e
movq %r14, %rdi
movq %r15, %rdx
callq 0x1801e
jmp 0x38459
movq 0x10(%rsp), %rcx
movq %r14, %rdi
movq %r12, %rdx
movq %r15, %r8
callq 0x38559
movq %rax, -0x20(%rbx)
movq %rdx, -0x18(%rbx)
cmpl $0x6, %edx
jne 0x3838f
andl $0x0, -0x20(%rbx)
pushq $0x3
popq %rax
movq %rax, -0x18(%rbx)
andl $0x0, -0x10(%rbx)
movq %rax, -0x8(%rbx)
pushq $-0x1
popq %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
movq %r14, %rdi
movq %r15, %rdx
callq 0x3a3be
movq %rdx, %rbp
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
cmpl $0x6, %ebp
jne 0x384a9
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
jmp 0x3842e
movq %rax, %r15
movl %ebp, %eax
orl %r13d, %eax
je 0x384e3
cmpl $-0x9, %r13d
je 0x384fe
cmpl $-0x9, %ebp
je 0x384fe
leaq 0x30(%rsp), %rsi
movq %r14, %rdi
movq %r12, %rdx
movq %r13, %rcx
callq 0x21288
testl %eax, %eax
je 0x3852d
movq %r14, %rdi
movq %r15, %rsi
movq %rbp, %rdx
jmp 0x3842e
movslq %r12d, %rax
movslq %r15d, %rdi
addq %rax, %rdi
callq 0x20a0b
movq %rax, -0x20(%rbx)
movq %rdx, -0x18(%rbx)
jmp 0x3838f
leaq -0x20(%rbx), %rdx
movdqa 0x10(%rsp), %xmm0
movdqu %xmm0, (%rsp)
movq %r14, %rdi
movl $0x9d, %esi
movq %r12, %rcx
movq %r13, %r8
callq 0x3a3c6
testl %eax, %eax
jne 0x38459
jmp 0x3838f
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
movq %r15, %rdx
movq %rbp, %rcx
callq 0x21288
testl %eax, %eax
jne 0x38459
movsd 0x30(%rsp), %xmm0
addsd 0x28(%rsp), %xmm0
jmp 0x38382
|
js_add_slow:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov rbx, rsi
movq xmm0, qword ptr [rsi-20h]
mov r12, [rsi-18h]
movups xmm1, xmmword ptr [rsi-10h]
movaps [rsp+68h+var_58], xmm1
mov r15, qword ptr [rsp+68h+var_58+8]
mov eax, r12d
xor eax, 7
mov ecx, r15d
xor ecx, 7
or ecx, eax
jnz short loc_38396
addsd xmm0, qword ptr [rsp+68h+var_58]
loc_38382:
movsd qword ptr [rbx-20h], xmm0
mov qword ptr [rbx-18h], 7
loc_3838F:
xor eax, eax
jmp loc_3846F
loc_38396:
mov r14, rdi
cmp r12d, 0FFFFFFFFh
setz al
cmp r15d, 0FFFFFFFFh
setz cl
or cl, al
cmp cl, 1
jnz short loc_383FE
movq rsi, xmm0
push 2
pop rcx
mov rdi, r14
mov rdx, r12
call JS_ToPrimitiveFree
mov r12, rdx
mov rsi, qword ptr [rsp+68h+var_58]
cmp r12d, 6
jz short loc_38428
mov r13, rax
push 2
pop rcx
mov rdi, r14
mov rdx, r15
call JS_ToPrimitiveFree
mov r15, rdx
mov qword ptr [rsp+68h+var_58], rax
cmp r15d, 6
jnz short loc_383F9
mov rdi, r14
mov rsi, r13
mov rdx, r12
jmp short loc_3842E
loc_383F9:
movq xmm0, r13
loc_383FE:
movq rsi, xmm0
cmp r12d, 0FFFFFFF9h
jz short loc_38435
cmp r15d, 0FFFFFFF9h
jz short loc_38435
mov rdi, r14
mov rdx, r12
call JS_ToNumericFree
mov r13, rdx
mov rsi, qword ptr [rsp+68h+var_58]
cmp r13d, 6
jnz short loc_3847E
loc_38428:
mov rdi, r14
mov rdx, r15
loc_3842E:
call JS_FreeValue
jmp short loc_38459
loc_38435:
mov rcx, qword ptr [rsp+68h+var_58]
mov rdi, r14
mov rdx, r12
mov r8, r15
call JS_ConcatString
mov [rbx-20h], rax
mov [rbx-18h], rdx
cmp edx, 6
jnz loc_3838F
loc_38459:
and dword ptr [rbx-20h], 0
push 3
pop rax
mov [rbx-18h], rax
and dword ptr [rbx-10h], 0
mov [rbx-8], rax
push 0FFFFFFFFFFFFFFFFh
pop rax
loc_3846F:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3847E:
mov r12, rax
mov rdi, r14
mov rdx, r15
call JS_ToNumericFree
mov rbp, rdx
mov qword ptr [rsp+68h+var_58], rax
mov qword ptr [rsp+68h+var_58+8], rdx
cmp ebp, 6
jnz short loc_384A9
mov rdi, r14
mov rsi, r12
mov rdx, r13
jmp short loc_3842E
loc_384A9:
mov r15, rax
mov eax, ebp
or eax, r13d
jz short loc_384E3
cmp r13d, 0FFFFFFF7h
jz short loc_384FE
cmp ebp, 0FFFFFFF7h
jz short loc_384FE
lea rsi, [rsp+68h+var_38]
mov rdi, r14
mov rdx, r12
mov rcx, r13
call JS_ToFloat64Free
test eax, eax
jz short loc_3852D
mov rdi, r14
mov rsi, r15
mov rdx, rbp
jmp loc_3842E
loc_384E3:
movsxd rax, r12d
movsxd rdi, r15d
add rdi, rax
call js_int64
mov [rbx-20h], rax
mov [rbx-18h], rdx
jmp loc_3838F
loc_384FE:
lea rdx, [rbx-20h]
movdqa xmm0, [rsp+68h+var_58]
movdqu [rsp+68h+var_68], xmm0
mov rdi, r14
mov esi, 9Dh
mov rcx, r12
mov r8, r13
call js_binary_arith_bigint
test eax, eax
jnz loc_38459
jmp loc_3838F
loc_3852D:
lea rsi, [rsp+68h+var_40]
mov rdi, r14
mov rdx, r15
mov rcx, rbp
call JS_ToFloat64Free
test eax, eax
jnz loc_38459
movsd xmm0, [rsp+68h+var_38]
addsd xmm0, [rsp+68h+var_40]
jmp loc_38382
|
long long js_add_slow(
const char *a1,
long long a2,
double a3,
double a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
long long a11,
long long a12,
long long a13,
long long a14)
{
__m128 v15; // xmm0
long long v16; // r12
__m128 v17; // xmm1
long long v18; // r15
double v19; // xmm0_8
unsigned long long v21; // rax
long long v22; // r8
long long v23; // r9
__m128 v24; // xmm4
__m128 v25; // xmm5
long long v26; // rdx
long long v27; // rsi
unsigned long long v28; // r13
unsigned long long v29; // rax
long long v30; // rdx
long long v31; // rdx
long long v32; // rax
long long v33; // rdx
long long v34; // r13
long long v35; // rdx
long long v36; // r12
__m128i v37; // rax
int v38; // r9d
long long v39; // rbp
long long v40; // r15
long long v41; // rdx
__m128i v42; // xmm0
__m128i v43; // [rsp+10h] [rbp-58h] BYREF
double v44; // [rsp+28h] [rbp-40h] BYREF
double v45[7]; // [rsp+30h] [rbp-38h] BYREF
v15 = (__m128)_mm_loadl_epi64((const __m128i *)(a2 - 32));
v16 = *(_QWORD *)(a2 - 24);
v17 = *(__m128 *)(a2 - 16);
v43 = (__m128i)v17;
v18 = v17.m128_i64[1];
if ( !((unsigned int)v16 ^ 7 | v17.m128_i32[2] ^ 7) )
{
v19 = *(double *)v15.m128_u64 + *(double *)v43.m128i_i64;
LABEL_3:
*(double *)(a2 - 32) = v19;
*(_QWORD *)(a2 - 24) = 7LL;
return 0LL;
}
if ( (_DWORD)v16 == -1 || v43.m128i_i32[2] == -1 )
{
v21 = JS_ToPrimitiveFree((long long)a1, v15.m128_i64[0], v16, 2LL, a13, a14, v15, v17, a5, a6, a7, a8, a9, a10);
v16 = v26;
v27 = v43.m128i_i64[0];
if ( (_DWORD)v26 == 6 )
{
LABEL_13:
v31 = v18;
goto LABEL_14;
}
v28 = v21;
v29 = JS_ToPrimitiveFree(
(long long)a1,
v43.m128i_i64[0],
v43.m128i_i64[1],
2LL,
v22,
v23,
v15,
v17,
a5,
a6,
v24,
v25,
a9,
a10);
v18 = v30;
v43.m128i_i64[0] = v29;
if ( (_DWORD)v30 == 6 )
{
v27 = v28;
v31 = v16;
LABEL_14:
JS_FreeValue((long long)a1, v27, v31);
goto LABEL_16;
}
v15.m128_u64[0] = v28;
}
if ( (_DWORD)v16 == -7 || (_DWORD)v18 == -7 )
{
*(_QWORD *)(a2 - 32) = JS_ConcatString(a1, v15.m128_u64[0], v16, v43.m128i_i64[0]);
*(_QWORD *)(a2 - 24) = v35;
if ( (_DWORD)v35 != 6 )
return 0LL;
}
else
{
v32 = JS_ToNumericFree(a1, v15.m128_u64[0]);
v34 = v33;
v27 = v43.m128i_i64[0];
if ( (_DWORD)v33 == 6 )
goto LABEL_13;
v36 = v32;
v37.m128i_i64[0] = JS_ToNumericFree(a1, v43.m128i_i64[0]);
v39 = v37.m128i_i64[1];
v43 = v37;
if ( v37.m128i_i32[2] == 6 )
{
v27 = v36;
v31 = v34;
goto LABEL_14;
}
v40 = v37.m128i_i64[0];
if ( !((unsigned int)v34 | v37.m128i_i32[2]) )
{
*(_QWORD *)(a2 - 32) = js_int64((int)v36 + (long long)v37.m128i_i32[0]);
*(_QWORD *)(a2 - 24) = v41;
return 0LL;
}
if ( (_DWORD)v34 == -9 || v37.m128i_i32[2] == -9 )
{
v42 = _mm_load_si128(&v43);
if ( !(unsigned int)js_binary_arith_bigint(
(_DWORD)a1,
157,
(int)a2 - 32,
v36,
v34,
v38,
v42.m128i_i64[0],
v42.m128i_i64[1]) )
return 0LL;
}
else
{
if ( (unsigned int)JS_ToFloat64Free(a1, v45, v36, v34) )
{
v27 = v40;
v31 = v39;
goto LABEL_14;
}
if ( !(unsigned int)JS_ToFloat64Free(a1, &v44, v40, v39) )
{
v19 = v45[0] + v44;
goto LABEL_3;
}
}
}
LABEL_16:
*(_DWORD *)(a2 - 32) = 0;
*(_QWORD *)(a2 - 24) = 3LL;
*(_DWORD *)(a2 - 16) = 0;
*(_QWORD *)(a2 - 8) = 3LL;
return -1LL;
}
|
js_add_slow:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV RBX,RSI
MOVQ XMM0,qword ptr [RSI + -0x20]
MOV R12,qword ptr [RSI + -0x18]
MOVUPS XMM1,xmmword ptr [RSI + -0x10]
MOVAPS xmmword ptr [RSP + 0x10],XMM1
MOV R15,qword ptr [RSP + 0x18]
MOV EAX,R12D
XOR EAX,0x7
MOV ECX,R15D
XOR ECX,0x7
OR ECX,EAX
JNZ 0x00138396
ADDSD XMM0,qword ptr [RSP + 0x10]
LAB_00138382:
MOVSD qword ptr [RBX + -0x20],XMM0
MOV qword ptr [RBX + -0x18],0x7
LAB_0013838f:
XOR EAX,EAX
JMP 0x0013846f
LAB_00138396:
MOV R14,RDI
CMP R12D,-0x1
SETZ AL
CMP R15D,-0x1
SETZ CL
OR CL,AL
CMP CL,0x1
JNZ 0x001383fe
MOVQ RSI,XMM0
PUSH 0x2
POP RCX
MOV RDI,R14
MOV RDX,R12
CALL 0x001366ee
MOV R12,RDX
MOV RSI,qword ptr [RSP + 0x10]
CMP R12D,0x6
JZ 0x00138428
MOV R13,RAX
PUSH 0x2
POP RCX
MOV RDI,R14
MOV RDX,R15
CALL 0x001366ee
MOV R15,RDX
MOV qword ptr [RSP + 0x10],RAX
CMP R15D,0x6
JNZ 0x001383f9
MOV RDI,R14
MOV RSI,R13
MOV RDX,R12
JMP 0x0013842e
LAB_001383f9:
MOVQ XMM0,R13
LAB_001383fe:
MOVQ RSI,XMM0
CMP R12D,-0x7
JZ 0x00138435
CMP R15D,-0x7
JZ 0x00138435
MOV RDI,R14
MOV RDX,R12
CALL 0x0013a3be
MOV R13,RDX
MOV RSI,qword ptr [RSP + 0x10]
CMP R13D,0x6
JNZ 0x0013847e
LAB_00138428:
MOV RDI,R14
MOV RDX,R15
LAB_0013842e:
CALL 0x0011801e
JMP 0x00138459
LAB_00138435:
MOV RCX,qword ptr [RSP + 0x10]
MOV RDI,R14
MOV RDX,R12
MOV R8,R15
CALL 0x00138559
MOV qword ptr [RBX + -0x20],RAX
MOV qword ptr [RBX + -0x18],RDX
CMP EDX,0x6
JNZ 0x0013838f
LAB_00138459:
AND dword ptr [RBX + -0x20],0x0
PUSH 0x3
POP RAX
MOV qword ptr [RBX + -0x18],RAX
AND dword ptr [RBX + -0x10],0x0
MOV qword ptr [RBX + -0x8],RAX
PUSH -0x1
POP RAX
LAB_0013846f:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013847e:
MOV R12,RAX
MOV RDI,R14
MOV RDX,R15
CALL 0x0013a3be
MOV RBP,RDX
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
CMP EBP,0x6
JNZ 0x001384a9
MOV RDI,R14
MOV RSI,R12
MOV RDX,R13
JMP 0x0013842e
LAB_001384a9:
MOV R15,RAX
MOV EAX,EBP
OR EAX,R13D
JZ 0x001384e3
CMP R13D,-0x9
JZ 0x001384fe
CMP EBP,-0x9
JZ 0x001384fe
LEA RSI,[RSP + 0x30]
MOV RDI,R14
MOV RDX,R12
MOV RCX,R13
CALL 0x00121288
TEST EAX,EAX
JZ 0x0013852d
MOV RDI,R14
MOV RSI,R15
MOV RDX,RBP
JMP 0x0013842e
LAB_001384e3:
MOVSXD RAX,R12D
MOVSXD RDI,R15D
ADD RDI,RAX
CALL 0x00120a0b
MOV qword ptr [RBX + -0x20],RAX
MOV qword ptr [RBX + -0x18],RDX
JMP 0x0013838f
LAB_001384fe:
LEA RDX,[RBX + -0x20]
MOVDQA XMM0,xmmword ptr [RSP + 0x10]
MOVDQU xmmword ptr [RSP],XMM0
MOV RDI,R14
MOV ESI,0x9d
MOV RCX,R12
MOV R8,R13
CALL 0x0013a3c6
TEST EAX,EAX
JNZ 0x00138459
JMP 0x0013838f
LAB_0013852d:
LEA RSI,[RSP + 0x28]
MOV RDI,R14
MOV RDX,R15
MOV RCX,RBP
CALL 0x00121288
TEST EAX,EAX
JNZ 0x00138459
MOVSD XMM0,qword ptr [RSP + 0x30]
ADDSD XMM0,qword ptr [RSP + 0x28]
JMP 0x00138382
|
int8 js_add_slow(int8 param_1,long param_2)
{
double dVar1;
int8 uVar2;
int1 auVar3 [16];
int iVar4;
int iVar5;
int8 in_R9;
double dVar6;
int1 auVar7 [16];
int1 auVar8 [16];
int8 local_58;
double local_40;
double local_38;
dVar6 = *(double *)*(int1 (*) [16])(param_2 + -0x20);
auVar7 = *(int1 (*) [16])(param_2 + -0x20);
dVar1 = *(double *)*(int1 (*) [16])(param_2 + -0x10);
iVar4 = *(int *)(param_2 + -8);
uVar2 = *(int8 *)(param_2 + -8);
auVar8 = *(int1 (*) [16])(param_2 + -0x10);
iVar5 = (int)*(int8 *)(param_2 + -0x18);
if (iVar4 == 7 && iVar5 == 7) {
dVar6 = dVar6 + dVar1;
LAB_00138382:
*(double *)(param_2 + -0x20) = dVar6;
*(int8 *)(param_2 + -0x18) = 7;
return 0;
}
if ((iVar4 != -1 && iVar5 != -1) ||
((auVar7 = JS_ToPrimitiveFree(param_1,dVar6,*(int8 *)(param_2 + -0x18),2),
auVar3 = auVar8, auVar7._8_4_ != 6 &&
(auVar8 = JS_ToPrimitiveFree(param_1,dVar1,uVar2,2), auVar3 = auVar7, auVar8._8_4_ != 6)))) {
local_58 = auVar8._0_8_;
if ((auVar7._8_4_ == -7) || (auVar8._8_4_ == -7)) {
auVar7 = JS_ConcatString(param_1,auVar7._0_8_,auVar7._8_8_,local_58,auVar8._8_8_);
*(int1 (*) [16])(param_2 + -0x20) = auVar7;
if (auVar7._8_4_ != 6) {
return 0;
}
goto LAB_00138459;
}
auVar7 = JS_ToNumericFree(param_1,auVar7._0_8_,auVar7._8_8_);
iVar4 = auVar7._8_4_;
auVar3 = auVar8;
if (iVar4 != 6) {
auVar8 = JS_ToNumericFree(param_1,local_58,auVar8._8_8_);
iVar5 = auVar8._8_4_;
auVar3 = auVar7;
if (iVar5 != 6) {
if (iVar5 == 0 && iVar4 == 0) {
auVar7 = js_int64((long)auVar8._0_4_ + (long)auVar7._0_4_);
*(int1 (*) [16])(param_2 + -0x20) = auVar7;
return 0;
}
if ((iVar4 == -9) || (iVar5 == -9)) {
iVar4 = js_binary_arith_bigint
(param_1,0x9d,param_2 + -0x20,auVar7._0_8_,auVar7._8_8_,in_R9,auVar8);
if (iVar4 == 0) {
return 0;
}
goto LAB_00138459;
}
iVar4 = JS_ToFloat64Free(param_1,&local_38,auVar7._0_8_,auVar7._8_8_);
auVar3 = auVar8;
if (iVar4 == 0) {
iVar4 = JS_ToFloat64Free(param_1,&local_40,auVar8._0_8_,auVar8._8_8_);
if (iVar4 == 0) {
dVar6 = local_38 + local_40;
goto LAB_00138382;
}
goto LAB_00138459;
}
}
}
}
JS_FreeValue(param_1,auVar3._0_8_,auVar3._8_8_);
LAB_00138459:
*(int4 *)(param_2 + -0x20) = 0;
*(int8 *)(param_2 + -0x18) = 3;
*(int4 *)(param_2 + -0x10) = 0;
*(int8 *)(param_2 + -8) = 3;
return 0xffffffffffffffff;
}
|
|
65,058 |
my_wc_mb_sjis
|
eloqsql/strings/ctype-sjis.c
|
static int
my_wc_mb_sjis(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
int code;
if ((int) wc < 0x80) /* ASCII: [U+0000..U+007F] -> [00-7F] */
{
/*
This branch is for performance purposes on ASCII range,
to avoid using unicode_to_cp932[]: about 10% improvement.
*/
if (wc == 0x5c)
{
/*
Special case when converting from Unicode to SJIS:
U+005C -> [81][5F] FULL WIDTH REVERSE SOLIDUS
*/
code= MB2(0x815F);
goto mb;
}
if (s >= e)
return MY_CS_TOOSMALL;
s[0]= (uchar) wc; /* ASCII */
return 1;
}
if (wc > 0xFFFF ||
!(code= unicode_to_sjis[wc])) /* Bad Unicode code point */
return MY_CS_ILUNI;
if (code <= 0xFF)
{
/* JIS-X-0201 HALF WIDTH KATAKANA [U+FF61..U+FF9F] -> [A1..DF] */
if (s >= e)
return MY_CS_TOOSMALL;
s[0]= code;
return 1;
}
mb:
if (s + 2 > e)
return MY_CS_TOOSMALL2;
MY_PUT_MB2(s, code); /* JIS-X-0208 */
return 2;
}
|
O3
|
c
|
my_wc_mb_sjis:
pushq %rbp
movq %rsp, %rbp
cmpl $0x7f, %esi
jg 0x5ac92
movl $0x815f, %edi # imm = 0x815F
cmpq $0x5c, %rsi
je 0x5acc8
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x5ace2
movb %sil, (%rdx)
jmp 0x5acc1
xorl %eax, %eax
cmpq $0xffff, %rsi # imm = 0xFFFF
ja 0x5ace2
leaq 0x18af2c(%rip), %rdi # 0x1e5bd0
movzwl (%rdi,%rsi,2), %edi
testl %edi, %edi
je 0x5ace2
cmpl $0xff, %edi
ja 0x5acc8
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x5ace2
movb %dil, (%rdx)
movl $0x1, %eax
jmp 0x5ace2
leaq 0x2(%rdx), %rsi
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %rsi
ja 0x5ace2
rolw $0x8, %di
movw %di, (%rdx)
movl $0x2, %eax
popq %rbp
retq
|
my_wc_mb_sjis:
push rbp
mov rbp, rsp
cmp esi, 7Fh
jg short loc_5AC92
mov edi, 815Fh
cmp rsi, 5Ch ; '\'
jz short loc_5ACC8
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short loc_5ACE2
mov [rdx], sil
jmp short loc_5ACC1
loc_5AC92:
xor eax, eax
cmp rsi, 0FFFFh
ja short loc_5ACE2
lea rdi, unicode_to_sjis
movzx edi, word ptr [rdi+rsi*2]
test edi, edi
jz short loc_5ACE2
cmp edi, 0FFh
ja short loc_5ACC8
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short loc_5ACE2
mov [rdx], dil
loc_5ACC1:
mov eax, 1
jmp short loc_5ACE2
loc_5ACC8:
lea rsi, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp rsi, rcx
ja short loc_5ACE2
rol di, 8
mov [rdx], di
mov eax, 2
loc_5ACE2:
pop rbp
retn
|
long long my_wc_mb_sjis(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
unsigned int v4; // edi
long long result; // rax
if ( (int)a2 <= 127 )
{
LOWORD(v4) = -32417;
if ( a2 != 92 )
{
result = 4294967195LL;
if ( (unsigned long long)a3 >= a4 )
return result;
*a3 = a2;
return 1LL;
}
LABEL_11:
result = 4294967194LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
*(_WORD *)a3 = __ROL2__(v4, 8);
return 2LL;
}
return result;
}
result = 0LL;
if ( a2 <= 0xFFFF )
{
v4 = unicode_to_sjis[a2];
if ( unicode_to_sjis[a2] )
{
if ( v4 <= 0xFF )
{
result = 4294967195LL;
if ( (unsigned long long)a3 >= a4 )
return result;
*a3 = v4;
return 1LL;
}
goto LABEL_11;
}
}
return result;
}
|
my_wc_mb_sjis:
PUSH RBP
MOV RBP,RSP
CMP ESI,0x7f
JG 0x0015ac92
MOV EDI,0x815f
CMP RSI,0x5c
JZ 0x0015acc8
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x0015ace2
MOV byte ptr [RDX],SIL
JMP 0x0015acc1
LAB_0015ac92:
XOR EAX,EAX
CMP RSI,0xffff
JA 0x0015ace2
LEA RDI,[0x2e5bd0]
MOVZX EDI,word ptr [RDI + RSI*0x2]
TEST EDI,EDI
JZ 0x0015ace2
CMP EDI,0xff
JA 0x0015acc8
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x0015ace2
MOV byte ptr [RDX],DIL
LAB_0015acc1:
MOV EAX,0x1
JMP 0x0015ace2
LAB_0015acc8:
LEA RSI,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP RSI,RCX
JA 0x0015ace2
ROL DI,0x8
MOV word ptr [RDX],DI
MOV EAX,0x2
LAB_0015ace2:
POP RBP
RET
|
int8 my_wc_mb_sjis(int8 param_1,ulong param_2,ushort *param_3,ushort *param_4)
{
ushort uVar1;
if ((int)param_2 < 0x80) {
uVar1 = 0x815f;
if (param_2 == 0x5c) {
LAB_0015acc8:
if (param_4 < param_3 + 1) {
return 0xffffff9a;
}
*param_3 = uVar1 << 8 | uVar1 >> 8;
return 2;
}
if (param_4 <= param_3) {
return 0xffffff9b;
}
*(char *)param_3 = (char)param_2;
}
else {
if (0xffff < param_2) {
return 0;
}
uVar1 = *(ushort *)(unicode_to_sjis + param_2 * 2);
if (uVar1 == 0) {
return 0;
}
if (0xff < uVar1) goto LAB_0015acc8;
if (param_4 <= param_3) {
return 0xffffff9b;
}
*(char *)param_3 = (char)uVar1;
}
return 1;
}
|
|
65,059 |
ImPlotAxis::SetAspect(double)
|
zkingston[P]unknot/build_O1/_deps/implot-src/implot_internal.h
|
inline bool IsLockedMin() const { return !Enabled || IsRangeLocked() || ImHasFlag(Flags, ImPlotAxisFlags_LockMin); }
|
O1
|
c
|
ImPlotAxis::SetAspect(double):
movb 0x16c(%rdi), %al
cmpb $0x1, %al
jne 0xc8559
cmpl $0x1, 0x20(%rdi)
sete %dl
andb 0x16f(%rdi), %dl
jne 0xc8559
movapd %xmm0, %xmm2
movl $0x4000, %ecx # imm = 0x4000
andl 0x4(%rdi), %ecx
sete %sil
orb %sil, %dl
je 0xc854f
shrl $0xe, %ecx
jmp 0xc8555
movb 0x5(%rdi), %cl
shrb $0x7, %cl
testb %cl, %cl
je 0xc855a
retq
movss 0x114(%rdi), %xmm0
subss 0x110(%rdi), %xmm0
andps 0x1cbebf(%rip), %xmm0 # 0x294430
cvtss2sd %xmm0, %xmm1
movsd 0x10(%rdi), %xmm0
movsd 0x18(%rdi), %xmm3
mulsd %xmm2, %xmm1
subsd %xmm0, %xmm3
subsd %xmm3, %xmm1
mulsd 0x1cc1bd(%rip), %xmm1 # 0x294750
testb %al, %al
je 0xc85fd
cmpb $0x1, 0x16f(%rdi)
jne 0xc85a6
cmpl $0x1, 0x20(%rdi)
je 0xc85ac
testb $0x40, 0x5(%rdi)
je 0xc85cb
testb %al, %al
je 0xc85fd
cmpb $0x1, 0x16f(%rdi)
jne 0xc85bf
cmpl $0x1, 0x20(%rdi)
je 0xc85cb
testb $-0x80, 0x5(%rdi)
jne 0xc85cb
addsd %xmm1, %xmm1
jmp 0xc8601
testb %al, %al
je 0xc85fd
cmpb $0x1, 0x16f(%rdi)
jne 0xc85de
cmpl $0x1, 0x20(%rdi)
je 0xc85fd
testb $0x40, 0x5(%rdi)
jne 0xc85fd
testb %al, %al
je 0xc860b
cmpb $0x1, 0x16f(%rdi)
jne 0xc85f7
cmpl $0x1, 0x20(%rdi)
je 0xc860b
testb $-0x80, 0x5(%rdi)
jne 0xc860b
subsd %xmm1, %xmm0
addsd 0x18(%rdi), %xmm1
jmp 0xc82a4
addsd %xmm1, %xmm1
subsd %xmm1, %xmm0
movsd 0x18(%rdi), %xmm1
jmp 0xc82a4
nop
|
_ZN10ImPlotAxis9SetAspectEd:
mov al, [rdi+16Ch]
cmp al, 1
jnz short locret_C8559
cmp dword ptr [rdi+20h], 1
setz dl
and dl, [rdi+16Fh]
jnz short locret_C8559
movapd xmm2, xmm0
mov ecx, 4000h
and ecx, [rdi+4]
setz sil
or dl, sil
jz short loc_C854F
shr ecx, 0Eh
jmp short loc_C8555
loc_C854F:
mov cl, [rdi+5]
shr cl, 7
loc_C8555:
test cl, cl
jz short loc_C855A
locret_C8559:
retn
loc_C855A:
movss xmm0, dword ptr [rdi+114h]
subss xmm0, dword ptr [rdi+110h]
andps xmm0, cs:xmmword_294430
cvtss2sd xmm1, xmm0
movsd xmm0, qword ptr [rdi+10h]
movsd xmm3, qword ptr [rdi+18h]
mulsd xmm1, xmm2
subsd xmm3, xmm0
subsd xmm1, xmm3
mulsd xmm1, cs:qword_294750
test al, al
jz short loc_C85FD
cmp byte ptr [rdi+16Fh], 1
jnz short loc_C85A6
cmp dword ptr [rdi+20h], 1
jz short loc_C85AC
loc_C85A6:
test byte ptr [rdi+5], 40h
jz short loc_C85CB
loc_C85AC:
test al, al
jz short loc_C85FD
cmp byte ptr [rdi+16Fh], 1
jnz short loc_C85BF
cmp dword ptr [rdi+20h], 1
jz short loc_C85CB
loc_C85BF:
test byte ptr [rdi+5], 80h
jnz short loc_C85CB
addsd xmm1, xmm1
jmp short loc_C8601
loc_C85CB:
test al, al
jz short loc_C85FD
cmp byte ptr [rdi+16Fh], 1
jnz short loc_C85DE
cmp dword ptr [rdi+20h], 1
jz short loc_C85FD
loc_C85DE:
test byte ptr [rdi+5], 40h
jnz short loc_C85FD
test al, al
jz short loc_C860B
cmp byte ptr [rdi+16Fh], 1
jnz short loc_C85F7
cmp dword ptr [rdi+20h], 1
jz short loc_C860B
loc_C85F7:
test byte ptr [rdi+5], 80h
jnz short loc_C860B
loc_C85FD:
subsd xmm0, xmm1; double
loc_C8601:
addsd xmm1, qword ptr [rdi+18h]; double
jmp _ZN10ImPlotAxis8SetRangeEdd; ImPlotAxis::SetRange(double,double)
loc_C860B:
addsd xmm1, xmm1
subsd xmm0, xmm1; double
movsd xmm1, qword ptr [rdi+18h]; double
jmp _ZN10ImPlotAxis8SetRangeEdd; ImPlotAxis::SetRange(double,double)
|
void ImPlotAxis::SetAspect(ImPlotAxis *this, double a2, __m128d a3)
{
char v4; // cl
__m128d v5; // xmm0
if ( *((_BYTE *)this + 364) == 1 && (*((_BYTE *)this + 367) & (*((_DWORD *)this + 8) == 1)) == 0 )
{
v4 = (*((_DWORD *)this + 1) & 0x4000) != 0 ? *((_BYTE *)this + 5) >> 7 : 0;
if ( !v4 )
{
v5 = (__m128d)*((unsigned long long *)this + 2);
a3.m128d_f64[0] = (fabs(*((float *)this + 69) - *((float *)this + 68)) * a2
- (*((double *)this + 3)
- v5.m128d_f64[0]))
* 0.5;
if ( (*((_BYTE *)this + 367) == 1 && *((_DWORD *)this + 8) == 1 || (*((_BYTE *)this + 5) & 0x40) != 0)
&& (*((_BYTE *)this + 367) != 1 || *((_DWORD *)this + 8) != 1)
&& *((char *)this + 5) >= 0 )
{
a3.m128d_f64[0] = a3.m128d_f64[0] + a3.m128d_f64[0];
}
else
{
if ( (*((_BYTE *)this + 367) != 1 || *((_DWORD *)this + 8) != 1)
&& (*((_BYTE *)this + 5) & 0x40) == 0
&& (*((_BYTE *)this + 367) == 1 && *((_DWORD *)this + 8) == 1 || *((char *)this + 5) < 0) )
{
v5.m128d_f64[0] = v5.m128d_f64[0] - (a3.m128d_f64[0] + a3.m128d_f64[0]);
ImPlotAxis::SetRange((__m128d *)this, v5, (__m128d)*((unsigned long long *)this + 3));
return;
}
v5.m128d_f64[0] = v5.m128d_f64[0] - a3.m128d_f64[0];
}
a3.m128d_f64[0] = a3.m128d_f64[0] + *((double *)this + 3);
ImPlotAxis::SetRange((__m128d *)this, v5, a3);
}
}
}
|
SetAspect:
MOV AL,byte ptr [RDI + 0x16c]
CMP AL,0x1
JNZ 0x001c8559
CMP dword ptr [RDI + 0x20],0x1
SETZ DL
AND DL,byte ptr [RDI + 0x16f]
JNZ 0x001c8559
MOVAPD XMM2,XMM0
MOV ECX,0x4000
AND ECX,dword ptr [RDI + 0x4]
SETZ SIL
OR DL,SIL
JZ 0x001c854f
SHR ECX,0xe
JMP 0x001c8555
LAB_001c854f:
MOV CL,byte ptr [RDI + 0x5]
SHR CL,0x7
LAB_001c8555:
TEST CL,CL
JZ 0x001c855a
LAB_001c8559:
RET
LAB_001c855a:
MOVSS XMM0,dword ptr [RDI + 0x114]
SUBSS XMM0,dword ptr [RDI + 0x110]
ANDPS XMM0,xmmword ptr [0x00394430]
CVTSS2SD XMM1,XMM0
MOVSD XMM0,qword ptr [RDI + 0x10]
MOVSD XMM3,qword ptr [RDI + 0x18]
MULSD XMM1,XMM2
SUBSD XMM3,XMM0
SUBSD XMM1,XMM3
MULSD XMM1,qword ptr [0x00394750]
TEST AL,AL
JZ 0x001c85fd
CMP byte ptr [RDI + 0x16f],0x1
JNZ 0x001c85a6
CMP dword ptr [RDI + 0x20],0x1
JZ 0x001c85ac
LAB_001c85a6:
TEST byte ptr [RDI + 0x5],0x40
JZ 0x001c85cb
LAB_001c85ac:
TEST AL,AL
JZ 0x001c85fd
CMP byte ptr [RDI + 0x16f],0x1
JNZ 0x001c85bf
CMP dword ptr [RDI + 0x20],0x1
JZ 0x001c85cb
LAB_001c85bf:
TEST byte ptr [RDI + 0x5],0x80
JNZ 0x001c85cb
ADDSD XMM1,XMM1
JMP 0x001c8601
LAB_001c85cb:
TEST AL,AL
JZ 0x001c85fd
CMP byte ptr [RDI + 0x16f],0x1
JNZ 0x001c85de
CMP dword ptr [RDI + 0x20],0x1
JZ 0x001c85fd
LAB_001c85de:
TEST byte ptr [RDI + 0x5],0x40
JNZ 0x001c85fd
TEST AL,AL
JZ 0x001c860b
CMP byte ptr [RDI + 0x16f],0x1
JNZ 0x001c85f7
CMP dword ptr [RDI + 0x20],0x1
JZ 0x001c860b
LAB_001c85f7:
TEST byte ptr [RDI + 0x5],0x80
JNZ 0x001c860b
LAB_001c85fd:
SUBSD XMM0,XMM1
LAB_001c8601:
ADDSD XMM1,qword ptr [RDI + 0x18]
JMP 0x001c82a4
LAB_001c860b:
ADDSD XMM1,XMM1
SUBSD XMM0,XMM1
MOVSD XMM1,qword ptr [RDI + 0x18]
JMP 0x001c82a4
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* ImPlotAxis::SetAspect(double) */
void __thiscall ImPlotAxis::SetAspect(ImPlotAxis *this,double param_1)
{
byte bVar1;
double dVar2;
double dVar3;
if ((this[0x16c] == (ImPlotAxis)0x1) && ((*(int *)(this + 0x20) == 1 & (byte)this[0x16f]) == 0)) {
if ((*(uint *)(this + 4) & 0x4000) == 0) {
bVar1 = 0;
}
else {
bVar1 = (byte)this[5] >> 7;
}
if (bVar1 == 0) {
dVar2 = *(double *)(this + 0x10);
dVar3 = ((double)(float)((uint)(*(float *)(this + 0x114) - *(float *)(this + 0x110)) &
_DAT_00394430) * param_1 - (*(double *)(this + 0x18) - dVar2)) *
DAT_00394750;
if ((((this[0x16f] == (ImPlotAxis)0x1) && (*(int *)(this + 0x20) == 1)) ||
(((byte)this[5] & 0x40) != 0)) &&
(((this[0x16f] != (ImPlotAxis)0x1 || (*(int *)(this + 0x20) != 1)) &&
(((byte)this[5] & 0x80) == 0)))) {
dVar3 = dVar3 + dVar3;
}
else {
if (((this[0x16f] != (ImPlotAxis)0x1) || (*(int *)(this + 0x20) != 1)) &&
((((byte)this[5] & 0x40) == 0 &&
(((this[0x16f] == (ImPlotAxis)0x1 && (*(int *)(this + 0x20) == 1)) ||
(((byte)this[5] & 0x80) != 0)))))) {
SetRange(this,dVar2 - (dVar3 + dVar3),*(double *)(this + 0x18));
return;
}
dVar2 = dVar2 - dVar3;
}
SetRange(this,dVar2,dVar3 + *(double *)(this + 0x18));
return;
}
}
return;
}
|
|
65,060 |
PFS_host::aggregate_memory(bool)
|
eloqsql/storage/perfschema/pfs_host.cc
|
void PFS_host::aggregate_memory(bool alive)
{
if (read_instr_class_memory_stats() == NULL)
return;
/*
Aggregate MEMORY_SUMMARY_BY_HOST_BY_EVENT_NAME to:
- MEMORY_SUMMARY_GLOBAL_BY_EVENT_NAME
*/
aggregate_all_memory(alive,
write_instr_class_memory_stats(),
global_instr_class_memory_array);
}
|
O0
|
cpp
|
PFS_host::aggregate_memory(bool):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %sil, %al
movq %rdi, -0x8(%rbp)
andb $0x1, %al
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x18(%rbp)
callq 0x36910
cmpq $0x0, %rax
jne 0x56b99
jmp 0x56bc2
movq -0x18(%rbp), %rdi
movb -0x9(%rbp), %al
movb %al, -0x19(%rbp)
callq 0x36950
movq %rax, %rsi
movb -0x19(%rbp), %al
leaq 0x3b32d3(%rip), %rcx # 0x409e88
movq (%rcx), %rdx
andb $0x1, %al
movzbl %al, %edi
callq 0x311d0
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
_ZN8PFS_host16aggregate_memoryEb:
push rbp
mov rbp, rsp
sub rsp, 20h
mov al, sil
mov [rbp+var_8], rdi
and al, 1
mov [rbp+var_9], al
mov rdi, [rbp+var_8]; this
mov [rbp+var_18], rdi
call _ZNK20PFS_connection_slice29read_instr_class_memory_statsEv; PFS_connection_slice::read_instr_class_memory_stats(void)
cmp rax, 0
jnz short loc_56B99
jmp short loc_56BC2
loc_56B99:
mov rdi, [rbp+var_18]; this
mov al, [rbp+var_9]
mov [rbp+var_19], al
call _ZN20PFS_connection_slice30write_instr_class_memory_statsEv; PFS_connection_slice::write_instr_class_memory_stats(void)
mov rsi, rax; PFS_memory_stat *
mov al, [rbp+var_19]
lea rcx, global_instr_class_memory_array
mov rdx, [rcx]; PFS_memory_stat *
and al, 1
movzx edi, al; bool
call _Z20aggregate_all_memorybP15PFS_memory_statS0_; aggregate_all_memory(bool,PFS_memory_stat *,PFS_memory_stat *)
loc_56BC2:
add rsp, 20h
pop rbp
retn
|
PFS_memory_stat * PFS_host::aggregate_memory(PFS_host *this, char a2)
{
PFS_memory_stat *result; // rax
PFS_memory_stat *v3; // rax
result = (PFS_memory_stat *)PFS_connection_slice::read_instr_class_memory_stats(this);
if ( result )
{
v3 = (PFS_memory_stat *)PFS_connection_slice::write_instr_class_memory_stats(this);
return aggregate_all_memory(a2 & 1, v3, global_instr_class_memory_array);
}
return result;
}
|
aggregate_memory:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV AL,SIL
MOV qword ptr [RBP + -0x8],RDI
AND AL,0x1
MOV byte ptr [RBP + -0x9],AL
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RDI
CALL 0x00136910
CMP RAX,0x0
JNZ 0x00156b99
JMP 0x00156bc2
LAB_00156b99:
MOV RDI,qword ptr [RBP + -0x18]
MOV AL,byte ptr [RBP + -0x9]
MOV byte ptr [RBP + -0x19],AL
CALL 0x00136950
MOV RSI,RAX
MOV AL,byte ptr [RBP + -0x19]
LEA RCX,[0x509e88]
MOV RDX,qword ptr [RCX]
AND AL,0x1
MOVZX EDI,AL
CALL 0x001311d0
LAB_00156bc2:
ADD RSP,0x20
POP RBP
RET
|
/* PFS_host::aggregate_memory(bool) */
void __thiscall PFS_host::aggregate_memory(PFS_host *this,bool param_1)
{
long lVar1;
PFS_memory_stat *pPVar2;
lVar1 = PFS_connection_slice::read_instr_class_memory_stats((PFS_connection_slice *)this);
if (lVar1 != 0) {
pPVar2 = (PFS_memory_stat *)
PFS_connection_slice::write_instr_class_memory_stats((PFS_connection_slice *)this);
aggregate_all_memory(param_1,pPVar2,global_instr_class_memory_array);
}
return;
}
|
|
65,061 |
get_internal_charset
|
eloqsql/mysys/charset.c
|
static CHARSET_INFO *
get_internal_charset(MY_CHARSET_LOADER *loader, uint cs_number, myf flags)
{
char buf[FN_REFLEN];
struct charset_info_st *cs;
DBUG_ASSERT(cs_number < array_elements(all_charsets));
if ((cs= (struct charset_info_st*) all_charsets[cs_number]))
{
if (cs->state & MY_CS_READY) /* if CS is already initialized */
{
my_collation_statistics_inc_use_count(cs_number);
return cs;
}
/*
To make things thread safe we are not allowing other threads to interfere
while we may changing the cs_info_table
*/
mysql_mutex_lock(&THR_LOCK_charset);
if (!(cs->state & (MY_CS_COMPILED|MY_CS_LOADED))) /* if CS is not in memory */
{
MY_CHARSET_LOADER loader;
strxmov(get_charsets_dir(buf), cs->cs_name.str, ".xml", NullS);
my_charset_loader_init_mysys(&loader);
my_read_charset_file(&loader, buf, flags);
}
if (cs->state & MY_CS_AVAILABLE)
{
if (!(cs->state & MY_CS_READY))
{
if (!simple_8bit_charset_data_is_full(cs))
{
CHARSET_INFO *refcs= find_charset_data_inheritance_source(cs);
if (refcs)
inherit_charset_data(cs, refcs);
}
if (!simple_8bit_collation_data_is_full(cs))
{
CHARSET_INFO *refcl= find_collation_data_inheritance_source(cs, flags);
if (refcl)
inherit_collation_data(cs, refcl);
}
if (my_ci_init_charset(cs, loader) ||
my_ci_init_collation(cs, loader))
{
cs= NULL;
}
else
cs->state|= MY_CS_READY;
}
my_collation_statistics_inc_use_count(cs_number);
}
else
cs= NULL;
mysql_mutex_unlock(&THR_LOCK_charset);
}
return cs;
}
|
O3
|
c
|
get_internal_charset:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2c8, %rsp # imm = 0x2C8
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movl %esi, %r13d
leaq 0x3423ab(%rip), %r12 # 0x36e4c0
movq (%r12,%r13,8), %rbx
testq %rbx, %rbx
je 0x2c1fe
testb $0x1, 0xd(%rbx)
jne 0x2c205
movq %rdx, %r15
movq %rdi, %r14
leaq 0x34223f(%rip), %rax # 0x36e378
cmpq $0x0, 0x40(%rax)
jne 0x2c3e7
leaq 0x34222d(%rip), %rdi # 0x36e378
callq 0x244c0
movl 0xc(%rbx), %eax
testb $0x9, %al
jne 0x2c1f1
leaq -0x230(%rbp), %rdi
callq 0x2ba1b
movq 0x10(%rbx), %rsi
leaq 0x360cc(%rip), %rdx # 0x6223e
movq %rax, %rdi
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x5f458
leaq -0x2e0(%rbp), %rdi
movb $0x0, (%rdi)
leaq -0xd01(%rip), %rax # 0x2b48e
movq %rax, 0x80(%rdi)
leaq -0xd00(%rip), %rax # 0x2b49d
movq %rax, 0x88(%rdi)
leaq -0xcf3(%rip), %rax # 0x2b4b8
movq %rax, 0x90(%rdi)
leaq -0x280b(%rip), %rax # 0x299ae
movq %rax, 0x98(%rdi)
leaq 0x2cae39(%rip), %rax # 0x2f7000
movq (%rax), %rax
movq %rax, 0xa0(%rdi)
leaq -0xd02(%rip), %rax # 0x2b4d6
movq %rax, 0xa8(%rdi)
leaq -0x230(%rbp), %rsi
movq %r15, %rdx
callq 0x2cdc4
movl 0xc(%rbx), %eax
btl $0x9, %eax
jb 0x2c215
xorl %ebx, %ebx
jmp 0x2c3a7
xorl %ebx, %ebx
jmp 0x2c3c3
leaq 0x346324(%rip), %rax # 0x372530
incq (%rax,%r13,8)
jmp 0x2c3c3
btl $0x8, %eax
jb 0x2c39c
cmpq $0x0, 0x40(%rbx)
je 0x2c23b
cmpq $0x0, 0x50(%rbx)
je 0x2c23b
cmpq $0x0, 0x48(%rbx)
je 0x2c23b
cmpq $0x0, 0x68(%rbx)
jne 0x2c26a
movq 0x10(%rbx), %rdi
movl $0x20, %esi
callq 0x2becc
testl %eax, %eax
je 0x2c26a
cmpl %eax, (%rbx)
je 0x2c26a
movl %eax, %eax
movq (%r12,%rax,8), %rsi
testq %rsi, %rsi
je 0x2c26a
testb $0x2, 0xd(%rsi)
je 0x2c26a
movq %rbx, %rdi
callq 0x2d00d
cmpq $0x0, 0x58(%rbx)
jne 0x2c35e
testb $0x10, 0xc(%rbx)
jne 0x2c35e
movq 0x38(%rbx), %rax
testq %rax, %rax
je 0x2c35e
leaq 0x36031(%rip), %rsi # 0x622c4
movl $0x8, %edx
movq %rax, -0x2e8(%rbp)
movq -0x2e8(%rbp), %rdi
callq 0x24150
movq -0x2e8(%rbp), %rcx
testl %eax, %eax
jne 0x2c35e
leaq 0x8(%rcx), %rdi
movq %rdi, -0x2f0(%rbp)
movl $0x5d, %esi
callq 0x24110
testq %rax, %rax
setne %dl
movq -0x2e8(%rbp), %rcx
addq $0x28, %rcx
cmpq %rax, %rcx
seta %cl
andb %dl, %cl
cmpb $0x1, %cl
jne 0x2c35e
movq -0x2f0(%rbp), %rsi
subq %rsi, %rax
leaq -0x2e0(%rbp), %rdi
movl $0x21, %ecx
movq %rax, %rdx
movq %rax, -0x2e8(%rbp)
callq 0x24610
movq -0x2e8(%rbp), %rax
movb $0x0, -0x2e0(%rbp,%rax)
leaq -0x2e0(%rbp), %rdi
movq %r15, %rsi
callq 0x2bbaf
testl %eax, %eax
je 0x2c35e
cmpl %eax, (%rbx)
je 0x2c35e
movl %eax, %eax
movq (%r12,%rax,8), %rax
testq %rax, %rax
je 0x2c35e
testb $0x2, 0xd(%rax)
je 0x2c35e
cmpq $0x0, 0x58(%rbx)
jne 0x2c35e
testb $0x10, 0xc(%rbx)
jne 0x2c35e
movq 0x58(%rax), %rax
movq %rax, 0x58(%rbx)
movq 0xb8(%rbx), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x2c379
movq %rbx, %rdi
movq %r14, %rsi
callq *%rax
testb %al, %al
jne 0x2c394
movq 0xc0(%rbx), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x2c398
movq %rbx, %rdi
movq %r14, %rsi
callq *%rax
testb %al, %al
je 0x2c398
xorl %ebx, %ebx
jmp 0x2c39c
orb $0x1, 0xd(%rbx)
leaq 0x34618d(%rip), %rax # 0x372530
incq (%rax,%r13,8)
leaq 0x341fca(%rip), %rax # 0x36e378
movq 0x40(%rax), %rdi
testq %rdi, %rdi
jne 0x2c3f1
leaq 0x341fba(%rip), %rdi # 0x36e378
callq 0x24210
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x2c403
movq %rbx, %rax
addq $0x2c8, %rsp # imm = 0x2C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x24b6f
jmp 0x2c150
leaq 0x2cac00(%rip), %rax # 0x2f6ff8
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x2c3b7
callq 0x24380
|
get_internal_charset:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 2C8h
mov rax, fs:28h
mov [rbp+var_30], rax
mov r13d, esi
lea r12, all_charsets
mov rbx, [r12+r13*8]
test rbx, rbx
jz loc_2C1FE
test byte ptr [rbx+0Dh], 1
jnz loc_2C205
mov r15, rdx
mov r14, rdi
lea rax, THR_LOCK_charset
cmp qword ptr [rax+40h], 0
jnz loc_2C3E7
lea rdi, THR_LOCK_charset
call _pthread_mutex_lock
loc_2C150:
mov eax, [rbx+0Ch]
test al, 9
jnz loc_2C1F1
lea rdi, [rbp+var_230]
call get_charsets_dir
mov rsi, [rbx+10h]
lea rdx, aIndexXml+5; ".xml"
mov rdi, rax
xor ecx, ecx
xor eax, eax
call strxmov
lea rdi, [rbp+var_2E0]
mov byte ptr [rdi], 0
lea rax, my_once_alloc_c
mov [rdi+80h], rax
lea rax, my_malloc_c
mov [rdi+88h], rax
lea rax, my_realloc_c
mov [rdi+90h], rax
lea rax, my_free
mov [rdi+98h], rax
lea rax, my_charset_error_reporter
mov rax, [rax]
mov [rdi+0A0h], rax
lea rax, add_collation
mov [rdi+0A8h], rax
lea rsi, [rbp+var_230]
mov rdx, r15
call my_read_charset_file
mov eax, [rbx+0Ch]
loc_2C1F1:
bt eax, 9
jb short loc_2C215
xor ebx, ebx
jmp loc_2C3A7
loc_2C1FE:
xor ebx, ebx
jmp loc_2C3C3
loc_2C205:
lea rax, my_collation_statistics
inc qword ptr [rax+r13*8]
jmp loc_2C3C3
loc_2C215:
bt eax, 8
jb loc_2C39C
cmp qword ptr [rbx+40h], 0
jz short loc_2C23B
cmp qword ptr [rbx+50h], 0
jz short loc_2C23B
cmp qword ptr [rbx+48h], 0
jz short loc_2C23B
cmp qword ptr [rbx+68h], 0
jnz short loc_2C26A
loc_2C23B:
mov rdi, [rbx+10h]
mov esi, 20h ; ' '
call get_charset_number_internal
test eax, eax
jz short loc_2C26A
cmp [rbx], eax
jz short loc_2C26A
mov eax, eax
mov rsi, [r12+rax*8]
test rsi, rsi
jz short loc_2C26A
test byte ptr [rsi+0Dh], 2
jz short loc_2C26A
mov rdi, rbx
call inherit_charset_data
loc_2C26A:
cmp qword ptr [rbx+58h], 0
jnz loc_2C35E
test byte ptr [rbx+0Ch], 10h
jnz loc_2C35E
mov rax, [rbx+38h]
test rax, rax
jz loc_2C35E
lea rsi, aImport; "[import "
mov edx, 8
mov [rbp+var_2E8], rax
mov rdi, [rbp+var_2E8]
call _strncmp
mov rcx, [rbp+var_2E8]
test eax, eax
jnz loc_2C35E
lea rdi, [rcx+8]
mov [rbp+var_2F0], rdi
mov esi, 5Dh ; ']'
call _strchr
test rax, rax
setnz dl
mov rcx, [rbp+var_2E8]
add rcx, 28h ; '('
cmp rcx, rax
setnbe cl
and cl, dl
cmp cl, 1
jnz short loc_2C35E
mov rsi, [rbp+var_2F0]
sub rax, rsi
lea rdi, [rbp+var_2E0]
mov ecx, 21h ; '!'
mov rdx, rax
mov [rbp+var_2E8], rax
call ___memcpy_chk
mov rax, [rbp+var_2E8]
mov [rbp+rax+var_2E0], 0
lea rdi, [rbp+var_2E0]
mov rsi, r15
call get_collation_number
test eax, eax
jz short loc_2C35E
cmp [rbx], eax
jz short loc_2C35E
mov eax, eax
mov rax, [r12+rax*8]
test rax, rax
jz short loc_2C35E
test byte ptr [rax+0Dh], 2
jz short loc_2C35E
cmp qword ptr [rbx+58h], 0
jnz short loc_2C35E
test byte ptr [rbx+0Ch], 10h
jnz short loc_2C35E
mov rax, [rax+58h]
mov [rbx+58h], rax
loc_2C35E:
mov rax, [rbx+0B8h]
mov rax, [rax]
test rax, rax
jz short loc_2C379
mov rdi, rbx
mov rsi, r14
call rax
test al, al
jnz short loc_2C394
loc_2C379:
mov rax, [rbx+0C0h]
mov rax, [rax]
test rax, rax
jz short loc_2C398
mov rdi, rbx
mov rsi, r14
call rax
test al, al
jz short loc_2C398
loc_2C394:
xor ebx, ebx
jmp short loc_2C39C
loc_2C398:
or byte ptr [rbx+0Dh], 1
loc_2C39C:
lea rax, my_collation_statistics
inc qword ptr [rax+r13*8]
loc_2C3A7:
lea rax, THR_LOCK_charset
mov rdi, [rax+40h]
test rdi, rdi
jnz short loc_2C3F1
loc_2C3B7:
lea rdi, THR_LOCK_charset
call _pthread_mutex_unlock
loc_2C3C3:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_2C403
mov rax, rbx
add rsp, 2C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_2C3E7:
call get_internal_charset_cold_1
jmp loc_2C150
loc_2C3F1:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_2C3B7
loc_2C403:
call ___stack_chk_fail
|
long long get_internal_charset(long long a1, unsigned int a2, long long a3)
{
long long v3; // r13
long long v4; // rbx
long long v6; // rdx
long long v7; // rcx
int v8; // eax
int charsets_dir; // eax
int v10; // r8d
int v11; // r9d
int charset_number_internal; // eax
long long v13; // rsi
long long v14; // rax
int v15; // eax
unsigned long long v16; // rax
int collation_number; // eax
long long v18; // rax
unsigned __int8 ( *v19)(long long, long long, long long, long long); // rax
unsigned __int8 ( *v20)(long long, long long, long long, long long); // rax
long long v22; // [rsp+0h] [rbp-2F0h]
long long v23; // [rsp+8h] [rbp-2E8h]
_BYTE v24[128]; // [rsp+10h] [rbp-2E0h] BYREF
long long ( *v25)(long long); // [rsp+90h] [rbp-260h]
long long ( *v26)(unsigned long long); // [rsp+98h] [rbp-258h]
long long ( *v27)(long long, unsigned long long); // [rsp+A0h] [rbp-250h]
long long ( *v28)(long long); // [rsp+A8h] [rbp-248h]
long long ( *v29)(); // [rsp+B0h] [rbp-240h]
long long ( *v30)(unsigned int *); // [rsp+B8h] [rbp-238h]
_BYTE v31[512]; // [rsp+C0h] [rbp-230h] BYREF
unsigned long long v32; // [rsp+2C0h] [rbp-30h]
v32 = __readfsqword(0x28u);
v3 = a2;
v4 = all_charsets[a2];
if ( !v4 )
return 0LL;
if ( (*(_BYTE *)(v4 + 13) & 1) != 0 )
{
++my_collation_statistics[a2];
}
else
{
if ( THR_LOCK_charset[8] )
get_internal_charset_cold_1();
else
pthread_mutex_lock(THR_LOCK_charset);
v8 = *(_DWORD *)(v4 + 12);
if ( (v8 & 9) == 0 )
{
charsets_dir = get_charsets_dir((long long)v31);
strxmov(charsets_dir, *(_QWORD *)(v4 + 16), (unsigned int)".xml", 0, v10, v11);
v24[0] = 0;
v25 = my_once_alloc_c;
v26 = my_malloc_c;
v27 = my_realloc_c;
v28 = my_free;
v29 = my_charset_error_reporter;
v30 = add_collation;
my_read_charset_file(v24, v31, a3);
v8 = *(_DWORD *)(v4 + 12);
}
if ( (v8 & 0x200) != 0 )
{
if ( (v8 & 0x100) == 0 )
{
if ( !*(_QWORD *)(v4 + 64) || !*(_QWORD *)(v4 + 80) || !*(_QWORD *)(v4 + 72) || !*(_QWORD *)(v4 + 104) )
{
charset_number_internal = get_charset_number_internal(*(_QWORD *)(v4 + 16), 32);
if ( charset_number_internal )
{
if ( *(_DWORD *)v4 != charset_number_internal )
{
v13 = all_charsets[charset_number_internal];
if ( v13 )
{
if ( (*(_BYTE *)(v13 + 13) & 2) != 0 )
inherit_charset_data(v4);
}
}
}
}
if ( !*(_QWORD *)(v4 + 88) && (*(_BYTE *)(v4 + 12) & 0x10) == 0 )
{
v14 = *(_QWORD *)(v4 + 56);
if ( v14 )
{
v23 = *(_QWORD *)(v4 + 56);
v15 = strncmp(v14, "[import ", 8LL, v7);
v7 = v23;
if ( !v15 )
{
v22 = v23 + 8;
v16 = strchr(v23 + 8, 93LL, v6, v23);
LOBYTE(v6) = v16 != 0;
v7 = v23 + 40;
LOBYTE(v7) = v16 != 0 && v23 + 40 > v16;
if ( (_BYTE)v7 == 1 )
{
v23 = v16 - v22;
__memcpy_chk(v24, v22, v16 - v22, 33LL);
v24[v23] = 0;
collation_number = get_collation_number((long long)v24, a3);
if ( collation_number )
{
if ( *(_DWORD *)v4 != collation_number )
{
v18 = all_charsets[collation_number];
if ( v18 )
{
if ( (*(_BYTE *)(v18 + 13) & 2) != 0 && !*(_QWORD *)(v4 + 88) && (*(_BYTE *)(v4 + 12) & 0x10) == 0 )
*(_QWORD *)(v4 + 88) = *(_QWORD *)(v18 + 88);
}
}
}
}
}
}
}
v19 = **(unsigned __int8 ( ***)(long long, long long, long long, long long))(v4 + 184);
if ( v19 && v19(v4, a1, v6, v7)
|| (v20 = **(unsigned __int8 ( ***)(long long, long long, long long, long long))(v4 + 192)) != 0LL
&& v20(v4, a1, v6, v7) )
{
v4 = 0LL;
}
else
{
*(_BYTE *)(v4 + 13) |= 1u;
}
}
++my_collation_statistics[v3];
}
else
{
v4 = 0LL;
}
if ( THR_LOCK_charset[8] )
(*((void (**)(void))PSI_server[0] + 44))();
pthread_mutex_unlock(THR_LOCK_charset);
}
return v4;
}
|
get_internal_charset:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x2c8
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV R13D,ESI
LEA R12,[0x46e4c0]
MOV RBX,qword ptr [R12 + R13*0x8]
TEST RBX,RBX
JZ 0x0012c1fe
TEST byte ptr [RBX + 0xd],0x1
JNZ 0x0012c205
MOV R15,RDX
MOV R14,RDI
LEA RAX,[0x46e378]
CMP qword ptr [RAX + 0x40],0x0
JNZ 0x0012c3e7
LEA RDI,[0x46e378]
CALL 0x001244c0
LAB_0012c150:
MOV EAX,dword ptr [RBX + 0xc]
TEST AL,0x9
JNZ 0x0012c1f1
LEA RDI,[RBP + -0x230]
CALL 0x0012ba1b
MOV RSI,qword ptr [RBX + 0x10]
LEA RDX,[0x16223e]
MOV RDI,RAX
XOR ECX,ECX
XOR EAX,EAX
CALL 0x0015f458
LEA RDI,[RBP + -0x2e0]
MOV byte ptr [RDI],0x0
LEA RAX,[0x12b48e]
MOV qword ptr [RDI + 0x80],RAX
LEA RAX,[0x12b49d]
MOV qword ptr [RDI + 0x88],RAX
LEA RAX,[0x12b4b8]
MOV qword ptr [RDI + 0x90],RAX
LEA RAX,[0x1299ae]
MOV qword ptr [RDI + 0x98],RAX
LEA RAX,[0x3f7000]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RDI + 0xa0],RAX
LEA RAX,[0x12b4d6]
MOV qword ptr [RDI + 0xa8],RAX
LEA RSI,[RBP + -0x230]
MOV RDX,R15
CALL 0x0012cdc4
MOV EAX,dword ptr [RBX + 0xc]
LAB_0012c1f1:
BT EAX,0x9
JC 0x0012c215
XOR EBX,EBX
JMP 0x0012c3a7
LAB_0012c1fe:
XOR EBX,EBX
JMP 0x0012c3c3
LAB_0012c205:
LEA RAX,[0x472530]
INC qword ptr [RAX + R13*0x8]
JMP 0x0012c3c3
LAB_0012c215:
BT EAX,0x8
JC 0x0012c39c
CMP qword ptr [RBX + 0x40],0x0
JZ 0x0012c23b
CMP qword ptr [RBX + 0x50],0x0
JZ 0x0012c23b
CMP qword ptr [RBX + 0x48],0x0
JZ 0x0012c23b
CMP qword ptr [RBX + 0x68],0x0
JNZ 0x0012c26a
LAB_0012c23b:
MOV RDI,qword ptr [RBX + 0x10]
MOV ESI,0x20
CALL 0x0012becc
TEST EAX,EAX
JZ 0x0012c26a
CMP dword ptr [RBX],EAX
JZ 0x0012c26a
MOV EAX,EAX
MOV RSI,qword ptr [R12 + RAX*0x8]
TEST RSI,RSI
JZ 0x0012c26a
TEST byte ptr [RSI + 0xd],0x2
JZ 0x0012c26a
MOV RDI,RBX
CALL 0x0012d00d
LAB_0012c26a:
CMP qword ptr [RBX + 0x58],0x0
JNZ 0x0012c35e
TEST byte ptr [RBX + 0xc],0x10
JNZ 0x0012c35e
MOV RAX,qword ptr [RBX + 0x38]
TEST RAX,RAX
JZ 0x0012c35e
LEA RSI,[0x1622c4]
MOV EDX,0x8
MOV qword ptr [RBP + -0x2e8],RAX
MOV RDI,qword ptr [RBP + -0x2e8]
CALL 0x00124150
MOV RCX,qword ptr [RBP + -0x2e8]
TEST EAX,EAX
JNZ 0x0012c35e
LEA RDI,[RCX + 0x8]
MOV qword ptr [RBP + -0x2f0],RDI
MOV ESI,0x5d
CALL 0x00124110
TEST RAX,RAX
SETNZ DL
MOV RCX,qword ptr [RBP + -0x2e8]
ADD RCX,0x28
CMP RCX,RAX
SETA CL
AND CL,DL
CMP CL,0x1
JNZ 0x0012c35e
MOV RSI,qword ptr [RBP + -0x2f0]
SUB RAX,RSI
LEA RDI,[RBP + -0x2e0]
MOV ECX,0x21
MOV RDX,RAX
MOV qword ptr [RBP + -0x2e8],RAX
CALL 0x00124610
MOV RAX,qword ptr [RBP + -0x2e8]
MOV byte ptr [RBP + RAX*0x1 + -0x2e0],0x0
LEA RDI,[RBP + -0x2e0]
MOV RSI,R15
CALL 0x0012bbaf
TEST EAX,EAX
JZ 0x0012c35e
CMP dword ptr [RBX],EAX
JZ 0x0012c35e
MOV EAX,EAX
MOV RAX,qword ptr [R12 + RAX*0x8]
TEST RAX,RAX
JZ 0x0012c35e
TEST byte ptr [RAX + 0xd],0x2
JZ 0x0012c35e
CMP qword ptr [RBX + 0x58],0x0
JNZ 0x0012c35e
TEST byte ptr [RBX + 0xc],0x10
JNZ 0x0012c35e
MOV RAX,qword ptr [RAX + 0x58]
MOV qword ptr [RBX + 0x58],RAX
LAB_0012c35e:
MOV RAX,qword ptr [RBX + 0xb8]
MOV RAX,qword ptr [RAX]
TEST RAX,RAX
JZ 0x0012c379
MOV RDI,RBX
MOV RSI,R14
CALL RAX
TEST AL,AL
JNZ 0x0012c394
LAB_0012c379:
MOV RAX,qword ptr [RBX + 0xc0]
MOV RAX,qword ptr [RAX]
TEST RAX,RAX
JZ 0x0012c398
MOV RDI,RBX
MOV RSI,R14
CALL RAX
TEST AL,AL
JZ 0x0012c398
LAB_0012c394:
XOR EBX,EBX
JMP 0x0012c39c
LAB_0012c398:
OR byte ptr [RBX + 0xd],0x1
LAB_0012c39c:
LEA RAX,[0x472530]
INC qword ptr [RAX + R13*0x8]
LAB_0012c3a7:
LEA RAX,[0x46e378]
MOV RDI,qword ptr [RAX + 0x40]
TEST RDI,RDI
JNZ 0x0012c3f1
LAB_0012c3b7:
LEA RDI,[0x46e378]
CALL 0x00124210
LAB_0012c3c3:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0012c403
MOV RAX,RBX
ADD RSP,0x2c8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0012c3e7:
CALL 0x00124b6f
JMP 0x0012c150
LAB_0012c3f1:
LEA RAX,[0x3f6ff8]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0012c3b7
LAB_0012c403:
CALL 0x00124380
|
uint * get_internal_charset(int8 param_1,ulong param_2,int8 param_3)
{
char *__s;
char *__s1;
long lVar1;
char cVar2;
uint uVar3;
int iVar4;
int8 uVar5;
char *pcVar6;
uint *puVar7;
long in_FS_OFFSET;
int1 local_2e8 [128];
code *local_268;
code *local_260;
code *local_258;
code *local_250;
int *local_248;
code *local_240;
int1 local_238 [512];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
param_2 = param_2 & 0xffffffff;
puVar7 = (uint *)(&all_charsets)[param_2];
if (puVar7 == (uint *)0x0) {
puVar7 = (uint *)0x0;
goto LAB_0012c3c3;
}
if ((*(byte *)((long)puVar7 + 0xd) & 1) != 0) {
*(long *)(my_collation_statistics + param_2 * 8) =
*(long *)(my_collation_statistics + param_2 * 8) + 1;
goto LAB_0012c3c3;
}
if (THR_LOCK_charset._64_8_ == 0) {
pthread_mutex_lock((pthread_mutex_t *)THR_LOCK_charset);
}
else {
get_internal_charset_cold_1();
}
uVar3 = puVar7[3];
if ((uVar3 & 9) == 0) {
uVar5 = get_charsets_dir(local_238);
strxmov(uVar5,*(int8 *)(puVar7 + 4),".xml",0);
local_2e8[0] = 0;
local_268 = my_once_alloc_c;
local_260 = my_malloc_c;
local_258 = my_realloc_c;
local_250 = my_free;
local_248 = my_charset_error_reporter;
local_240 = add_collation;
my_read_charset_file(local_2e8,local_238,param_3);
uVar3 = puVar7[3];
}
if ((uVar3 >> 9 & 1) == 0) {
puVar7 = (uint *)0x0;
}
else {
if ((uVar3 >> 8 & 1) == 0) {
if ((((*(long *)(puVar7 + 0x10) == 0) || (*(long *)(puVar7 + 0x14) == 0)) ||
(*(long *)(puVar7 + 0x12) == 0)) || (*(long *)(puVar7 + 0x1a) == 0)) {
uVar3 = get_charset_number_internal(*(int8 *)(puVar7 + 4),0x20);
if (((uVar3 != 0) && (*puVar7 != uVar3)) &&
(((&all_charsets)[uVar3] != 0 && ((*(byte *)((&all_charsets)[uVar3] + 0xd) & 2) != 0))))
{
inherit_charset_data(puVar7);
}
}
if (((*(long *)(puVar7 + 0x16) == 0) && ((puVar7[3] & 0x10) == 0)) &&
(__s1 = *(char **)(puVar7 + 0xe), __s1 != (char *)0x0)) {
iVar4 = strncmp(__s1,"[import ",8);
if (iVar4 == 0) {
__s = __s1 + 8;
pcVar6 = strchr(__s,0x5d);
if (pcVar6 < __s1 + 0x28 && pcVar6 != (char *)0x0) {
__memcpy_chk(local_2e8,__s,(long)pcVar6 - (long)__s,0x21);
local_2e8[(long)pcVar6 - (long)__s] = 0;
uVar3 = get_collation_number(local_2e8,param_3);
if (((((uVar3 != 0) && (*puVar7 != uVar3)) &&
(lVar1 = (&all_charsets)[uVar3], lVar1 != 0)) &&
(((*(byte *)(lVar1 + 0xd) & 2) != 0 && (*(long *)(puVar7 + 0x16) == 0)))) &&
((puVar7[3] & 0x10) == 0)) {
*(int8 *)(puVar7 + 0x16) = *(int8 *)(lVar1 + 0x58);
}
}
}
}
if ((code *)**(int8 **)(puVar7 + 0x2e) == (code *)0x0) {
LAB_0012c379:
if ((code *)**(int8 **)(puVar7 + 0x30) != (code *)0x0) {
cVar2 = (*(code *)**(int8 **)(puVar7 + 0x30))(puVar7,param_1);
if (cVar2 != '\0') goto LAB_0012c394;
}
*(byte *)((long)puVar7 + 0xd) = *(byte *)((long)puVar7 + 0xd) | 1;
}
else {
cVar2 = (*(code *)**(int8 **)(puVar7 + 0x2e))(puVar7,param_1);
if (cVar2 == '\0') goto LAB_0012c379;
LAB_0012c394:
puVar7 = (uint *)0x0;
}
}
*(long *)(my_collation_statistics + param_2 * 8) =
*(long *)(my_collation_statistics + param_2 * 8) + 1;
}
if (THR_LOCK_charset._64_8_ != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)THR_LOCK_charset);
LAB_0012c3c3:
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return puVar7;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
65,062 |
list_cons
|
eloqsql/mysys/list.c
|
LIST *list_cons(void *data, LIST *list)
{
LIST *new_charset=(LIST*) my_malloc(key_memory_LIST, sizeof(LIST),MYF(MY_FAE));
if (!new_charset)
return 0;
new_charset->data=data;
return list_add(list,new_charset);
}
|
O3
|
c
|
list_cons:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xb81075(%rip), %rax # 0xc30fec
movl (%rax), %edi
movl $0x18, %esi
movl $0x8, %edx
callq 0xbf321
testq %rax, %rax
je 0xaffbc
movq %r14, 0x10(%rax)
testq %rbx, %rbx
je 0xaffa7
movq (%rbx), %rcx
testq %rcx, %rcx
je 0xaffb0
movq %rax, 0x8(%rcx)
movq (%rbx), %rcx
jmp 0xaffb2
movq $0x0, (%rax)
jmp 0xaffb8
xorl %ecx, %ecx
movq %rcx, (%rax)
movq %rax, (%rbx)
movq %rbx, 0x8(%rax)
popq %rbx
popq %r14
popq %rbp
retq
|
list_cons:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rsi
mov r14, rdi
lea rax, key_memory_LIST
mov edi, [rax]
mov esi, 18h
mov edx, 8
call my_malloc
test rax, rax
jz short loc_AFFBC
mov [rax+10h], r14
test rbx, rbx
jz short loc_AFFA7
mov rcx, [rbx]
test rcx, rcx
jz short loc_AFFB0
mov [rcx+8], rax
mov rcx, [rbx]
jmp short loc_AFFB2
loc_AFFA7:
mov qword ptr [rax], 0
jmp short loc_AFFB8
loc_AFFB0:
xor ecx, ecx
loc_AFFB2:
mov [rax], rcx
mov [rbx], rax
loc_AFFB8:
mov [rax+8], rbx
loc_AFFBC:
pop rbx
pop r14
pop rbp
retn
|
_QWORD * list_cons(long long a1, long long *a2)
{
_QWORD *result; // rax
long long v3; // rcx
result = (_QWORD *)my_malloc(key_memory_LIST, 24LL, 8LL);
if ( result )
{
result[2] = a1;
if ( a2 )
{
if ( *a2 )
{
*(_QWORD *)(*a2 + 8) = result;
v3 = *a2;
}
else
{
v3 = 0LL;
}
*result = v3;
*a2 = (long long)result;
}
else
{
*result = 0LL;
}
result[1] = a2;
}
return result;
}
|
list_cons:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
LEA RAX,[0xd30fec]
MOV EDI,dword ptr [RAX]
MOV ESI,0x18
MOV EDX,0x8
CALL 0x001bf321
TEST RAX,RAX
JZ 0x001affbc
MOV qword ptr [RAX + 0x10],R14
TEST RBX,RBX
JZ 0x001affa7
MOV RCX,qword ptr [RBX]
TEST RCX,RCX
JZ 0x001affb0
MOV qword ptr [RCX + 0x8],RAX
MOV RCX,qword ptr [RBX]
JMP 0x001affb2
LAB_001affa7:
MOV qword ptr [RAX],0x0
JMP 0x001affb8
LAB_001affb0:
XOR ECX,ECX
LAB_001affb2:
MOV qword ptr [RAX],RCX
MOV qword ptr [RBX],RAX
LAB_001affb8:
MOV qword ptr [RAX + 0x8],RBX
LAB_001affbc:
POP RBX
POP R14
POP RBP
RET
|
void list_cons(long param_1,long *param_2)
{
long *plVar1;
long lVar2;
plVar1 = (long *)my_malloc(key_memory_LIST,0x18,8);
if (plVar1 != (long *)0x0) {
plVar1[2] = param_1;
if (param_2 == (long *)0x0) {
*plVar1 = 0;
}
else {
if (*param_2 == 0) {
lVar2 = 0;
}
else {
*(long **)(*param_2 + 8) = plVar1;
lVar2 = *param_2;
}
*plVar1 = lVar2;
*param_2 = (long)plVar1;
}
plVar1[1] = (long)param_2;
}
return;
}
|
|
65,063 |
fmt::v11::detail::add_compare(fmt::v11::detail::bigint const&, fmt::v11::detail::bigint const&, fmt::v11::detail::bigint const&)
|
zkingston[P]unknot/build_O0/_deps/fmt-src/include/fmt/format.h
|
FMT_CONSTEXPR auto add_compare(const bigint& lhs1, const bigint& lhs2,
const bigint& rhs) -> int {
int max_lhs_bigits = max_of(lhs1.num_bigits(), lhs2.num_bigits());
int num_rhs_bigits = rhs.num_bigits();
if (max_lhs_bigits + 1 < num_rhs_bigits) return -1;
if (max_lhs_bigits > num_rhs_bigits) return 1;
double_bigit borrow = 0;
int min_exp = min_of(min_of(lhs1.exp_, lhs2.exp_), rhs.exp_);
for (int i = num_rhs_bigits - 1; i >= min_exp; --i) {
double_bigit sum = double_bigit(lhs1.get_bigit(i)) + lhs2.get_bigit(i);
bigit rhs_bigit = rhs.get_bigit(i);
if (sum > rhs_bigit + borrow) return 1;
borrow = rhs_bigit + borrow - sum;
if (borrow > 1) return -1;
borrow <<= bigit_bits;
}
return borrow != 0 ? -1 : 0;
}
|
O0
|
c
|
fmt::v11::detail::add_compare(fmt::v11::detail::bigint const&, fmt::v11::detail::bigint const&, fmt::v11::detail::bigint const&):
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
movq 0x48(%rsp), %rdi
callq 0xb9a30
movl %eax, 0x10(%rsp)
movq 0x40(%rsp), %rdi
callq 0xb9a30
movl 0x10(%rsp), %edi
movl %eax, %esi
callq 0xb14c0
movl %eax, 0x34(%rsp)
movq 0x38(%rsp), %rdi
callq 0xb9a30
movl %eax, 0x30(%rsp)
movl 0x34(%rsp), %eax
addl $0x1, %eax
cmpl 0x30(%rsp), %eax
jge 0xb85e2
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0xb8709
movl 0x34(%rsp), %eax
cmpl 0x30(%rsp), %eax
jle 0xb85f9
movl $0x1, 0x54(%rsp)
jmp 0xb8709
movq $0x0, 0x28(%rsp)
movq 0x48(%rsp), %rax
movl 0xa8(%rax), %edi
movq 0x40(%rsp), %rax
movl 0xa8(%rax), %esi
callq 0xb3590
movl %eax, %edi
movq 0x38(%rsp), %rax
movl 0xa8(%rax), %esi
callq 0xb3590
movl %eax, 0x24(%rsp)
movl 0x30(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x20(%rsp)
movl 0x20(%rsp), %eax
cmpl 0x24(%rsp), %eax
jl 0xb86f2
movq 0x48(%rsp), %rdi
movl 0x20(%rsp), %esi
callq 0xb9a60
movl %eax, %eax
movq %rax, 0x8(%rsp)
movq 0x40(%rsp), %rdi
movl 0x20(%rsp), %esi
callq 0xb9a60
movl %eax, %ecx
movq 0x8(%rsp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %rdi
movl 0x20(%rsp), %esi
callq 0xb9a60
movl %eax, 0x14(%rsp)
movq 0x18(%rsp), %rax
movl 0x14(%rsp), %ecx
addq 0x28(%rsp), %rcx
cmpq %rcx, %rax
jbe 0xb86af
movl $0x1, 0x54(%rsp)
jmp 0xb8709
movl 0x14(%rsp), %eax
addq 0x28(%rsp), %rax
subq 0x18(%rsp), %rax
movq %rax, 0x28(%rsp)
cmpq $0x1, 0x28(%rsp)
jbe 0xb86d4
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0xb8709
movq 0x28(%rsp), %rax
shlq $0x20, %rax
movq %rax, 0x28(%rsp)
movl 0x20(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x20(%rsp)
jmp 0xb863e
movq 0x28(%rsp), %rdx
xorl %eax, %eax
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
cmpq $0x0, %rdx
cmovnel %ecx, %eax
movl %eax, 0x54(%rsp)
movl 0x54(%rsp), %eax
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
|
_ZN3fmt3v116detail11add_compareERKNS1_6bigintES4_S4_:
sub rsp, 58h
mov [rsp+58h+var_10], rdi
mov [rsp+58h+var_18], rsi
mov [rsp+58h+var_20], rdx
mov rdi, [rsp+58h+var_10]; this
call _ZNK3fmt3v116detail6bigint10num_bigitsEv; fmt::v11::detail::bigint::num_bigits(void)
mov [rsp+58h+var_48], eax
mov rdi, [rsp+58h+var_18]; this
call _ZNK3fmt3v116detail6bigint10num_bigitsEv; fmt::v11::detail::bigint::num_bigits(void)
mov edi, [rsp+58h+var_48]
mov esi, eax
call _ZN3fmt3v116max_ofIiEET_S2_S2_; fmt::v11::max_of<int>(int,int)
mov [rsp+58h+var_24], eax
mov rdi, [rsp+58h+var_20]; this
call _ZNK3fmt3v116detail6bigint10num_bigitsEv; fmt::v11::detail::bigint::num_bigits(void)
mov [rsp+58h+var_28], eax
mov eax, [rsp+58h+var_24]
add eax, 1
cmp eax, [rsp+58h+var_28]
jge short loc_B85E2
mov [rsp+58h+var_4], 0FFFFFFFFh
jmp loc_B8709
loc_B85E2:
mov eax, [rsp+58h+var_24]
cmp eax, [rsp+58h+var_28]
jle short loc_B85F9
mov [rsp+58h+var_4], 1
jmp loc_B8709
loc_B85F9:
mov [rsp+58h+var_30], 0
mov rax, [rsp+58h+var_10]
mov edi, [rax+0A8h]
mov rax, [rsp+58h+var_18]
mov esi, [rax+0A8h]
call _ZN3fmt3v116min_ofIiEET_S2_S2_; fmt::v11::min_of<int>(int,int)
mov edi, eax
mov rax, [rsp+58h+var_20]
mov esi, [rax+0A8h]
call _ZN3fmt3v116min_ofIiEET_S2_S2_; fmt::v11::min_of<int>(int,int)
mov [rsp+58h+var_34], eax
mov eax, [rsp+58h+var_28]
sub eax, 1
mov [rsp+58h+var_38], eax
loc_B863E:
mov eax, [rsp+58h+var_38]
cmp eax, [rsp+58h+var_34]
jl loc_B86F2
mov rdi, [rsp+58h+var_10]; this
mov esi, [rsp+58h+var_38]; int
call _ZNK3fmt3v116detail6bigint9get_bigitEi; fmt::v11::detail::bigint::get_bigit(int)
mov eax, eax
mov [rsp+58h+var_50], rax
mov rdi, [rsp+58h+var_18]; this
mov esi, [rsp+58h+var_38]; int
call _ZNK3fmt3v116detail6bigint9get_bigitEi; fmt::v11::detail::bigint::get_bigit(int)
mov ecx, eax
mov rax, [rsp+58h+var_50]
mov ecx, ecx
add rax, rcx
mov [rsp+58h+var_40], rax
mov rdi, [rsp+58h+var_20]; this
mov esi, [rsp+58h+var_38]; int
call _ZNK3fmt3v116detail6bigint9get_bigitEi; fmt::v11::detail::bigint::get_bigit(int)
mov [rsp+58h+var_44], eax
mov rax, [rsp+58h+var_40]
mov ecx, [rsp+58h+var_44]
add rcx, [rsp+58h+var_30]
cmp rax, rcx
jbe short loc_B86AF
mov [rsp+58h+var_4], 1
jmp short loc_B8709
loc_B86AF:
mov eax, [rsp+58h+var_44]
add rax, [rsp+58h+var_30]
sub rax, [rsp+58h+var_40]
mov [rsp+58h+var_30], rax
cmp [rsp+58h+var_30], 1
jbe short loc_B86D4
mov [rsp+58h+var_4], 0FFFFFFFFh
jmp short loc_B8709
loc_B86D4:
mov rax, [rsp+58h+var_30]
shl rax, 20h
mov [rsp+58h+var_30], rax
mov eax, [rsp+58h+var_38]
add eax, 0FFFFFFFFh
mov [rsp+58h+var_38], eax
jmp loc_B863E
loc_B86F2:
mov rdx, [rsp+58h+var_30]
xor eax, eax
mov ecx, 0FFFFFFFFh
cmp rdx, 0
cmovnz eax, ecx
mov [rsp+58h+var_4], eax
loc_B8709:
mov eax, [rsp+58h+var_4]
add rsp, 58h
retn
|
long long fmt::v11::detail::add_compare(
fmt::v11::detail *this,
const fmt::v11::detail::bigint *a2,
const fmt::v11::detail::bigint *a3,
const fmt::v11::detail::bigint *a4)
{
unsigned int v4; // eax
unsigned int v5; // eax
unsigned int v6; // eax
long long bigit; // [rsp+8h] [rbp-50h]
unsigned int v9; // [rsp+10h] [rbp-48h]
unsigned int v10; // [rsp+14h] [rbp-44h]
unsigned long long v11; // [rsp+18h] [rbp-40h]
int i; // [rsp+20h] [rbp-38h]
_BYTE v13[12]; // [rsp+24h] [rbp-34h]
unsigned long long v14; // [rsp+28h] [rbp-30h]
int v15; // [rsp+30h] [rbp-28h]
int v16; // [rsp+34h] [rbp-24h]
v9 = fmt::v11::detail::bigint::num_bigits(this);
v4 = fmt::v11::detail::bigint::num_bigits(a2);
v16 = fmt::v11::max_of<int>(v9, v4);
v15 = fmt::v11::detail::bigint::num_bigits(a3);
if ( v16 + 1 >= v15 )
{
if ( v16 <= v15 )
{
*(_DWORD *)&v13[8] = 0;
v5 = fmt::v11::min_of<int>(*((_DWORD *)this + 42), *((_DWORD *)a2 + 42));
*(_QWORD *)v13 = (unsigned int)fmt::v11::min_of<int>(v5, *((_DWORD *)a3 + 42));
for ( i = v15 - 1; i >= *(int *)v13; --i )
{
bigit = (unsigned int)fmt::v11::detail::bigint::get_bigit(this, i);
v11 = (unsigned int)fmt::v11::detail::bigint::get_bigit(a2, i) + bigit;
v10 = fmt::v11::detail::bigint::get_bigit(a3, i);
if ( v11 > *(_QWORD *)&v13[4] + (unsigned long long)v10 )
return 1;
v14 = *(_QWORD *)&v13[4] + v10 - v11;
if ( v14 > 1 )
return (unsigned int)-1;
*(_QWORD *)&v13[4] = v14 << 32;
}
v6 = 0;
if ( *(_QWORD *)&v13[4] )
return (unsigned int)-1;
return v6;
}
else
{
return 1;
}
}
else
{
return (unsigned int)-1;
}
}
|
add_compare:
SUB RSP,0x58
MOV qword ptr [RSP + 0x48],RDI
MOV qword ptr [RSP + 0x40],RSI
MOV qword ptr [RSP + 0x38],RDX
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x001b9a30
MOV dword ptr [RSP + 0x10],EAX
MOV RDI,qword ptr [RSP + 0x40]
CALL 0x001b9a30
MOV EDI,dword ptr [RSP + 0x10]
MOV ESI,EAX
CALL 0x001b14c0
MOV dword ptr [RSP + 0x34],EAX
MOV RDI,qword ptr [RSP + 0x38]
CALL 0x001b9a30
MOV dword ptr [RSP + 0x30],EAX
MOV EAX,dword ptr [RSP + 0x34]
ADD EAX,0x1
CMP EAX,dword ptr [RSP + 0x30]
JGE 0x001b85e2
MOV dword ptr [RSP + 0x54],0xffffffff
JMP 0x001b8709
LAB_001b85e2:
MOV EAX,dword ptr [RSP + 0x34]
CMP EAX,dword ptr [RSP + 0x30]
JLE 0x001b85f9
MOV dword ptr [RSP + 0x54],0x1
JMP 0x001b8709
LAB_001b85f9:
MOV qword ptr [RSP + 0x28],0x0
MOV RAX,qword ptr [RSP + 0x48]
MOV EDI,dword ptr [RAX + 0xa8]
MOV RAX,qword ptr [RSP + 0x40]
MOV ESI,dword ptr [RAX + 0xa8]
CALL 0x001b3590
MOV EDI,EAX
MOV RAX,qword ptr [RSP + 0x38]
MOV ESI,dword ptr [RAX + 0xa8]
CALL 0x001b3590
MOV dword ptr [RSP + 0x24],EAX
MOV EAX,dword ptr [RSP + 0x30]
SUB EAX,0x1
MOV dword ptr [RSP + 0x20],EAX
LAB_001b863e:
MOV EAX,dword ptr [RSP + 0x20]
CMP EAX,dword ptr [RSP + 0x24]
JL 0x001b86f2
MOV RDI,qword ptr [RSP + 0x48]
MOV ESI,dword ptr [RSP + 0x20]
CALL 0x001b9a60
MOV EAX,EAX
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x40]
MOV ESI,dword ptr [RSP + 0x20]
CALL 0x001b9a60
MOV ECX,EAX
MOV RAX,qword ptr [RSP + 0x8]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0x38]
MOV ESI,dword ptr [RSP + 0x20]
CALL 0x001b9a60
MOV dword ptr [RSP + 0x14],EAX
MOV RAX,qword ptr [RSP + 0x18]
MOV ECX,dword ptr [RSP + 0x14]
ADD RCX,qword ptr [RSP + 0x28]
CMP RAX,RCX
JBE 0x001b86af
MOV dword ptr [RSP + 0x54],0x1
JMP 0x001b8709
LAB_001b86af:
MOV EAX,dword ptr [RSP + 0x14]
ADD RAX,qword ptr [RSP + 0x28]
SUB RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x28],RAX
CMP qword ptr [RSP + 0x28],0x1
JBE 0x001b86d4
MOV dword ptr [RSP + 0x54],0xffffffff
JMP 0x001b8709
LAB_001b86d4:
MOV RAX,qword ptr [RSP + 0x28]
SHL RAX,0x20
MOV qword ptr [RSP + 0x28],RAX
MOV EAX,dword ptr [RSP + 0x20]
ADD EAX,-0x1
MOV dword ptr [RSP + 0x20],EAX
JMP 0x001b863e
LAB_001b86f2:
MOV RDX,qword ptr [RSP + 0x28]
XOR EAX,EAX
MOV ECX,0xffffffff
CMP RDX,0x0
CMOVNZ EAX,ECX
MOV dword ptr [RSP + 0x54],EAX
LAB_001b8709:
MOV EAX,dword ptr [RSP + 0x54]
ADD RSP,0x58
RET
|
/* fmt::v11::detail::add_compare(fmt::v11::detail::bigint const&, fmt::v11::detail::bigint const&,
fmt::v11::detail::bigint const&) */
int4 fmt::v11::detail::add_compare(bigint *param_1,bigint *param_2,bigint *param_3)
{
int iVar1;
int iVar2;
uint uVar3;
uint uVar4;
uint uVar5;
ulong uVar6;
int local_38;
long local_30;
int4 local_4;
iVar1 = bigint::num_bigits(param_1);
iVar2 = bigint::num_bigits(param_2);
iVar1 = max_of<int>(iVar1,iVar2);
local_38 = bigint::num_bigits(param_3);
if (iVar1 + 1 < local_38) {
local_4 = 0xffffffff;
}
else if (local_38 < iVar1) {
local_4 = 1;
}
else {
local_30 = 0;
iVar1 = min_of<int>(*(int *)(param_1 + 0xa8),*(int *)(param_2 + 0xa8));
iVar1 = min_of<int>(iVar1,*(int *)(param_3 + 0xa8));
while (local_38 = local_38 + -1, iVar1 <= local_38) {
uVar3 = bigint::get_bigit(param_1,local_38);
uVar4 = bigint::get_bigit(param_2,local_38);
uVar5 = bigint::get_bigit(param_3,local_38);
if ((ulong)uVar5 + local_30 < (ulong)uVar3 + (ulong)uVar4) {
return 1;
}
uVar6 = ((ulong)uVar5 + local_30) - ((ulong)uVar3 + (ulong)uVar4);
if (1 < uVar6) {
return 0xffffffff;
}
local_30 = uVar6 << 0x20;
}
local_4 = 0;
if (local_30 != 0) {
local_4 = 0xffffffff;
}
}
return local_4;
}
|
|
65,064 |
findValidMapping
|
untodesu[P]riteg/build_O3/_deps/glfw-src/src/input.c
|
static _GLFWmapping* findValidMapping(const _GLFWjoystick* js)
{
_GLFWmapping* mapping = findMapping(js->guid);
if (mapping)
{
int i;
for (i = 0; i <= GLFW_GAMEPAD_BUTTON_LAST; i++)
{
if (!isValidElementForJoystick(mapping->buttons + i, js))
{
_glfwInputError(GLFW_INVALID_VALUE,
"Invalid button in gamepad mapping %s (%s)",
mapping->guid,
mapping->name);
return NULL;
}
}
for (i = 0; i <= GLFW_GAMEPAD_AXIS_LAST; i++)
{
if (!isValidElementForJoystick(mapping->axes + i, js))
{
_glfwInputError(GLFW_INVALID_VALUE,
"Invalid axis in gamepad mapping %s (%s)",
mapping->guid,
mapping->name);
return NULL;
}
}
}
return mapping;
}
|
O3
|
c
|
findValidMapping:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
addq $0x48, %rdi
callq 0x1b2ef
testq %rax, %rax
je 0x19852
movq %rax, %rbx
movl $0xa1, %r12d
leaq 0x69c2b(%rip), %r15 # 0x8341b
leaq (%rbx,%r12), %rdi
movq %r14, %rsi
callq 0x1b93c
testl %eax, %eax
je 0x19839
addq $0x4, %r12
cmpq $0xdd, %r12
jne 0x197f0
movl $0xdd, %r12d
leaq 0x69c2b(%rip), %r15 # 0x83445
leaq (%rbx,%r12), %rdi
movq %r14, %rsi
callq 0x1b93c
testl %eax, %eax
je 0x19839
addq $0x4, %r12
cmpq $0xf5, %r12
jne 0x1981a
jmp 0x19854
movq %rbx, %rdx
subq $-0x80, %rdx
movl $0x10004, %edi # imm = 0x10004
movq %r15, %rsi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x18e91
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
|
findValidMapping:
push r15
push r14
push r12
push rbx
push rax
mov r14, rdi
add rdi, 48h ; 'H'
call findMapping
test rax, rax
jz short loc_19852
mov rbx, rax
mov r12d, 0A1h
lea r15, aInvalidButtonI; "Invalid button in gamepad mapping %s (%"...
loc_197F0:
lea rdi, [rbx+r12]
mov rsi, r14
call isValidElementForJoystick
test eax, eax
jz short loc_19839
add r12, 4
cmp r12, 0DDh
jnz short loc_197F0
mov r12d, 0DDh
lea r15, aInvalidAxisInG; "Invalid axis in gamepad mapping %s (%s)"
loc_1981A:
lea rdi, [rbx+r12]
mov rsi, r14
call isValidElementForJoystick
test eax, eax
jz short loc_19839
add r12, 4
cmp r12, 0F5h
jnz short loc_1981A
jmp short loc_19854
loc_19839:
mov rdx, rbx
sub rdx, 0FFFFFFFFFFFFFF80h
mov edi, 10004h
mov rsi, r15
mov rcx, rbx
xor eax, eax
call _glfwInputError
loc_19852:
xor ebx, ebx
loc_19854:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
|
long long findValidMapping(long long a1)
{
long long Mapping; // rax
long long v2; // rbx
long long v3; // r12
const char *v4; // r15
long long v5; // r12
Mapping = findMapping(a1 + 72);
if ( Mapping )
{
v2 = Mapping;
v3 = 161LL;
v4 = "Invalid button in gamepad mapping %s (%s)";
while ( (unsigned int)isValidElementForJoystick(v2 + v3, a1) )
{
v3 += 4LL;
if ( v3 == 221 )
{
v5 = 221LL;
v4 = "Invalid axis in gamepad mapping %s (%s)";
while ( (unsigned int)isValidElementForJoystick(v2 + v5, a1) )
{
v5 += 4LL;
if ( v5 == 245 )
return v2;
}
break;
}
}
glfwInputError(0x10004u, (long long)v4, v2 + 128, v2);
}
return 0LL;
}
|
findValidMapping:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RDI
ADD RDI,0x48
CALL 0x0011b2ef
TEST RAX,RAX
JZ 0x00119852
MOV RBX,RAX
MOV R12D,0xa1
LEA R15,[0x18341b]
LAB_001197f0:
LEA RDI,[RBX + R12*0x1]
MOV RSI,R14
CALL 0x0011b93c
TEST EAX,EAX
JZ 0x00119839
ADD R12,0x4
CMP R12,0xdd
JNZ 0x001197f0
MOV R12D,0xdd
LEA R15,[0x183445]
LAB_0011981a:
LEA RDI,[RBX + R12*0x1]
MOV RSI,R14
CALL 0x0011b93c
TEST EAX,EAX
JZ 0x00119839
ADD R12,0x4
CMP R12,0xf5
JNZ 0x0011981a
JMP 0x00119854
LAB_00119839:
MOV RDX,RBX
SUB RDX,-0x80
MOV EDI,0x10004
MOV RSI,R15
MOV RCX,RBX
XOR EAX,EAX
CALL 0x00118e91
LAB_00119852:
XOR EBX,EBX
LAB_00119854:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
long findValidMapping(long param_1)
{
int iVar1;
long lVar2;
long lVar3;
char *pcVar4;
lVar2 = findMapping(param_1 + 0x48);
if (lVar2 != 0) {
lVar3 = 0xa1;
pcVar4 = "Invalid button in gamepad mapping %s (%s)";
do {
iVar1 = isValidElementForJoystick(lVar2 + lVar3,param_1);
if (iVar1 == 0) goto LAB_00119839;
lVar3 = lVar3 + 4;
} while (lVar3 != 0xdd);
lVar3 = 0xdd;
pcVar4 = "Invalid axis in gamepad mapping %s (%s)";
while (iVar1 = isValidElementForJoystick(lVar2 + lVar3,param_1), iVar1 != 0) {
lVar3 = lVar3 + 4;
if (lVar3 == 0xf5) {
return lVar2;
}
}
LAB_00119839:
_glfwInputError(0x10004,pcVar4,lVar2 + 0x80,lVar2);
}
return 0;
}
|
|
65,065 |
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(char*, int&, int&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
|
monkey531[P]llama/common/json.hpp
|
inline void grisu2(char* buf, int& len, int& decimal_exponent,
diyfp m_minus, diyfp v, diyfp m_plus)
{
JSON_ASSERT(m_plus.e == m_minus.e);
JSON_ASSERT(m_plus.e == v.e);
// --------(-----------------------+-----------------------)-------- (A)
// m- v m+
//
// --------------------(-----------+-----------------------)-------- (B)
// m- v m+
//
// First scale v (and m- and m+) such that the exponent is in the range
// [alpha, gamma].
const cached_power cached = get_cached_power_for_binary_exponent(m_plus.e);
const diyfp c_minus_k(cached.f, cached.e); // = c ~= 10^-k
// The exponent of the products is = v.e + c_minus_k.e + q and is in the range [alpha,gamma]
const diyfp w = diyfp::mul(v, c_minus_k);
const diyfp w_minus = diyfp::mul(m_minus, c_minus_k);
const diyfp w_plus = diyfp::mul(m_plus, c_minus_k);
// ----(---+---)---------------(---+---)---------------(---+---)----
// w- w w+
// = c*m- = c*v = c*m+
//
// diyfp::mul rounds its result and c_minus_k is approximated too. w, w- and
// w+ are now off by a small amount.
// In fact:
//
// w - v * 10^k < 1 ulp
//
// To account for this inaccuracy, add resp. subtract 1 ulp.
//
// --------+---[---------------(---+---)---------------]---+--------
// w- M- w M+ w+
//
// Now any number in [M-, M+] (bounds included) will round to w when input,
// regardless of how the input rounding algorithm breaks ties.
//
// And digit_gen generates the shortest possible such number in [M-, M+].
// Note that this does not mean that Grisu2 always generates the shortest
// possible number in the interval (m-, m+).
const diyfp M_minus(w_minus.f + 1, w_minus.e);
const diyfp M_plus (w_plus.f - 1, w_plus.e );
decimal_exponent = -cached.k; // = -(-k) = k
grisu2_digit_gen(buf, len, decimal_exponent, M_minus, w, M_plus);
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(char*, int&, int&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rcx, 0x58(%rsp)
movl %r8d, 0x60(%rsp)
cmpl %r8d, 0xc8(%rsp)
jne 0x87cc8
movq %rdi, 0x20(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
leaq 0xb0(%rsp), %r13
cmpl %r8d, 0x8(%r13)
jne 0x87ce4
movl %r8d, %edi
callq 0x87d9d
movq %rdx, %r12
leaq 0x68(%rsp), %r14
movq %rax, (%r14)
movl %r12d, 0x8(%r14)
movq %r13, %rdi
movq %r14, %rsi
callq 0x87ed2
movq %rax, %r15
movl %edx, %ebx
leaq 0x58(%rsp), %rdi
movq %r14, %rsi
callq 0x87ed2
movq %rax, %r13
movl %edx, %ebp
leaq 0xc0(%rsp), %rdi
movq %r14, %rsi
callq 0x87ed2
incq %r13
decq %rax
shrq $0x20, %r12
negl %r12d
movq 0x30(%rsp), %rcx
movl %r12d, (%rcx)
movq %r15, 0x48(%rsp)
movl %ebx, 0x50(%rsp)
movq %rax, 0x38(%rsp)
movl %edx, 0x40(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, 0x10(%rsp)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rsp)
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq %rcx, %rdx
movq %r13, %rcx
movl %ebp, %r8d
callq 0x87f2e
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x280fd(%rip), %rdi # 0xafdcc
leaq 0x22534(%rip), %rdx # 0xaa20a
leaq 0x2d908(%rip), %rcx # 0xb55e5
movl $0x454b, %esi # imm = 0x454B
jmp 0x87cfe
leaq 0x280e1(%rip), %rdi # 0xafdcc
leaq 0x22518(%rip), %rdx # 0xaa20a
leaq 0x2d902(%rip), %rcx # 0xb55fb
movl $0x454c, %esi # imm = 0x454C
xorl %eax, %eax
callq 0x23ee0
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl6grisu2EPcRiS4_NS2_5diyfpES5_S5_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov [rsp+0A8h+var_50], rcx
mov [rsp+0A8h+var_48], r8d
cmp [rsp+0A8h+arg_18], r8d
jnz loc_87CC8
mov [rsp+0A8h+var_88], rdi
mov [rsp+0A8h+var_80], rsi
mov [rsp+0A8h+var_78], rdx
lea r13, [rsp+0A8h+arg_0]
cmp [r13+8], r8d
jnz loc_87CE4
mov edi, r8d; this
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl36get_cached_power_for_binary_exponentEi; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int)
mov r12, rdx
lea r14, [rsp+0A8h+var_40]
mov [r14], rax
mov [r14+8], r12d
mov rdi, r13
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&)
mov r15, rax
mov ebx, edx
lea rdi, [rsp+0A8h+var_50]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&)
mov r13, rax
mov ebp, edx
lea rdi, [rsp+0A8h+arg_10]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&)
inc r13
dec rax
shr r12, 20h
neg r12d
mov rcx, [rsp+0A8h+var_78]
mov [rcx], r12d
mov qword ptr [rsp+0A8h+var_60], r15
mov dword ptr [rsp+0A8h+var_60+8], ebx
mov qword ptr [rsp+0A8h+var_70], rax
mov dword ptr [rsp+0A8h+var_70+8], edx
movups xmm0, [rsp+0A8h+var_70]
movups [rsp+0A8h+var_98], xmm0
movups xmm0, [rsp+0A8h+var_60]
movups [rsp+0A8h+var_A8], xmm0
mov rdi, [rsp+0A8h+var_88]
mov rsi, [rsp+0A8h+var_80]
mov rdx, rcx
mov rcx, r13
mov r8d, ebp
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl16grisu2_digit_genEPcRiS4_NS2_5diyfpES5_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_digit_gen(char *,int &,int &,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_87CC8:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aMPlusEMMinusE; "m_plus.e == m_minus.e"
mov esi, 454Bh
jmp short loc_87CFE
loc_87CE4:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aMPlusEVE; "m_plus.e == v.e"
mov esi, 454Ch
loc_87CFE:
xor eax, eax
call _ggml_abort
nop
|
long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(
int a1,
int a2,
_DWORD *a3,
long long a4,
unsigned int a5,
long long a6,
char a7,
int a8,
char a9,
int a10)
{
long long cached_power_for_binary_exponent; // rax
int v11; // rdx^4
int v12; // r12^4
int v13; // edx
char v14; // r15
int v15; // edx
int v16; // ebx
int v17; // r13d
int v18; // edx
int v19; // ebp
char v20; // al
int v21; // edx
int v22; // r9d
long long v25; // [rsp+58h] [rbp-50h] BYREF
unsigned int v26; // [rsp+60h] [rbp-48h]
long long v27; // [rsp+68h] [rbp-40h] BYREF
int v28; // [rsp+70h] [rbp-38h]
v25 = a4;
v26 = a5;
if ( a10 == a5 )
{
if ( a8 == a5 )
{
cached_power_for_binary_exponent = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(
(nlohmann::json_abi_v3_11_3::detail::dtoa_impl *)a5,
a2);
v12 = v11;
v27 = cached_power_for_binary_exponent;
v28 = v13;
v14 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&a7, &v27);
v16 = v15;
v17 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&v25, &v27);
v19 = v18;
v20 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&a9, &v27);
*a3 = -v12;
return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_digit_gen(
a1,
a2,
(_DWORD)a3,
v17 + 1,
v19,
v22,
v14,
v16,
v20 - 1,
v21);
}
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17740LL,
"GGML_ASSERT(%s) failed",
"m_plus.e == v.e");
}
else
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17739LL,
"GGML_ASSERT(%s) failed",
"m_plus.e == m_minus.e");
}
return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp");
}
|
grisu2:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV qword ptr [RSP + 0x58],RCX
MOV dword ptr [RSP + 0x60],R8D
CMP dword ptr [RSP + 0xc8],R8D
JNZ 0x00187cc8
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV qword ptr [RSP + 0x30],RDX
LEA R13,[RSP + 0xb0]
CMP dword ptr [R13 + 0x8],R8D
JNZ 0x00187ce4
MOV EDI,R8D
CALL 0x00187d9d
MOV R12,RDX
LEA R14,[RSP + 0x68]
MOV qword ptr [R14],RAX
MOV dword ptr [R14 + 0x8],R12D
MOV RDI,R13
MOV RSI,R14
CALL 0x00187ed2
MOV R15,RAX
MOV EBX,EDX
LEA RDI,[RSP + 0x58]
MOV RSI,R14
CALL 0x00187ed2
MOV R13,RAX
MOV EBP,EDX
LEA RDI,[RSP + 0xc0]
MOV RSI,R14
CALL 0x00187ed2
INC R13
DEC RAX
SHR R12,0x20
NEG R12D
MOV RCX,qword ptr [RSP + 0x30]
MOV dword ptr [RCX],R12D
MOV qword ptr [RSP + 0x48],R15
MOV dword ptr [RSP + 0x50],EBX
MOV qword ptr [RSP + 0x38],RAX
MOV dword ptr [RSP + 0x40],EDX
MOVUPS XMM0,xmmword ptr [RSP + 0x38]
MOVUPS xmmword ptr [RSP + 0x10],XMM0
MOVUPS XMM0,xmmword ptr [RSP + 0x48]
MOVUPS xmmword ptr [RSP],XMM0
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,RCX
MOV RCX,R13
MOV R8D,EBP
CALL 0x00187f2e
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00187cc8:
LEA RDI,[0x1afdcc]
LEA RDX,[0x1aa20a]
LEA RCX,[0x1b55e5]
MOV ESI,0x454b
JMP 0x00187cfe
LAB_00187ce4:
LEA RDI,[0x1afdcc]
LEA RDX,[0x1aa20a]
LEA RCX,[0x1b55fb]
MOV ESI,0x454c
LAB_00187cfe:
XOR EAX,EAX
CALL 0x00123ee0
|
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(char*, int&, int&,
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp) */
void nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2
(int8 param_1,int8 param_2,int *param_3,int8 param_4,int param_5,
int8 param_6,int8 param_7,int param_8,int8 param_9,int param_10)
{
int4 uVar1;
char *pcVar2;
int4 extraout_EDX;
int8 uVar3;
int1 auVar4 [16];
int1 auVar5 [12];
int1 auVar6 [12];
int4 uStack_64;
int8 local_50;
int local_48;
int8 local_40;
int4 local_38;
local_50 = param_4;
local_48 = param_5;
if (param_10 == param_5) {
if (param_8 == param_5) {
auVar4 = get_cached_power_for_binary_exponent(param_5);
local_40 = auVar4._0_8_;
local_38 = auVar4._8_4_;
uVar1 = diyfp::mul((diyfp *)¶m_7,(diyfp *)&local_40);
auVar5 = diyfp::mul((diyfp *)&local_50,(diyfp *)&local_40);
auVar6 = diyfp::mul((diyfp *)¶m_9,(diyfp *)&local_40);
*param_3 = -auVar4._12_4_;
grisu2_digit_gen(param_1,param_2,param_3,auVar5._0_8_ + 1,auVar5._8_4_,param_6,uVar1,
extraout_EDX,auVar6._0_8_ + -1,CONCAT44(uStack_64,auVar6._8_4_));
return;
}
pcVar2 = "m_plus.e == v.e";
uVar3 = 0x454c;
}
else {
pcVar2 = "m_plus.e == m_minus.e";
uVar3 = 0x454b;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar3,
"GGML_ASSERT(%s) failed",pcVar2);
}
|
|
65,066 |
ftxui::Renderer(std::function<std::shared_ptr<ftxui::Node> (bool)>)
|
Andrewchistyakov[P]flashcards_lyc/build_O3/_deps/ftxui-src/src/ftxui/component/renderer.cpp
|
Component Renderer(std::function<Element(bool)> render) {
class Impl : public ComponentBase {
public:
explicit Impl(std::function<Element(bool)> render)
: render_(std::move(render)) {}
private:
Element Render() override { return render_(Focused()) | reflect(box_); }
bool Focusable() const override { return true; }
bool OnEvent(Event event) override {
if (event.is_mouse() && box_.Contain(event.mouse().x, event.mouse().y)) {
if (!CaptureMouse(event)) {
return false;
}
TakeFocus();
}
return false;
}
Box box_;
std::function<Element(bool)> render_;
};
return Make<Impl>(std::move(render));
}
|
O3
|
cpp
|
ftxui::Renderer(std::function<std::shared_ptr<ftxui::Node> (bool)>):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl $0x68, %edi
callq 0xb3e0
movabsq $0x100000001, %rcx # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x2b951(%rip), %rcx # 0x58308
movq %rcx, (%rax)
movq 0x10(%r14), %rdx
movq 0x18(%r14), %rcx
testq %rdx, %rdx
je 0x2c9ec
movups (%r14), %xmm0
addq $0x10, %r14
movups %xmm0, 0x48(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movups %xmm0, 0x38(%rax)
movups %xmm0, 0x28(%rax)
movups %xmm0, 0x18(%rax)
movq %rdx, 0x58(%rax)
jmp 0x2ca07
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%rax)
movups %xmm0, 0x38(%rax)
movups %xmm0, 0x28(%rax)
movups %xmm0, 0x18(%rax)
movq $0x0, 0x58(%rax)
movq %rax, %rdx
addq $0x10, %rdx
leaq 0x2b943(%rip), %rsi # 0x58358
movq %rsi, 0x10(%rax)
movq %rcx, 0x60(%rax)
movq %rdx, (%rbx)
movq %rax, 0x8(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
_ZN5ftxui8RendererESt8functionIFSt10shared_ptrINS_4NodeEEbEE:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov edi, 68h ; 'h'; unsigned __int64
call __Znwm; operator new(ulong)
mov rcx, 100000001h
mov [rax+8], rcx
lea rcx, off_58308
mov [rax], rcx
mov rdx, [r14+10h]
mov rcx, [r14+18h]
test rdx, rdx
jz short loc_2C9EC
movups xmm0, xmmword ptr [r14]
add r14, 10h
movups xmmword ptr [rax+48h], xmm0
xorps xmm0, xmm0
movups xmmword ptr [r14], xmm0
movups xmmword ptr [rax+38h], xmm0
movups xmmword ptr [rax+28h], xmm0
movups xmmword ptr [rax+18h], xmm0
mov [rax+58h], rdx
jmp short loc_2CA07
loc_2C9EC:
xorps xmm0, xmm0
movups xmmword ptr [rax+48h], xmm0
movups xmmword ptr [rax+38h], xmm0
movups xmmword ptr [rax+28h], xmm0
movups xmmword ptr [rax+18h], xmm0
mov qword ptr [rax+58h], 0
loc_2CA07:
mov rdx, rax
add rdx, 10h
lea rsi, off_58358
mov [rax+10h], rsi
mov [rax+60h], rcx
mov [rbx], rdx
mov [rbx+8], rax
mov rax, rbx
add rsp, 8
pop rbx
pop r14
retn
|
_QWORD * ftxui::Renderer(_QWORD *a1, long long a2)
{
long long v2; // rax
long long v3; // rdx
long long v4; // rcx
v2 = operator new(0x68uLL);
*(_QWORD *)(v2 + 8) = 0x100000001LL;
*(_QWORD *)v2 = off_58308;
v3 = *(_QWORD *)(a2 + 16);
v4 = *(_QWORD *)(a2 + 24);
if ( v3 )
{
*(_OWORD *)(v2 + 72) = *(_OWORD *)a2;
*(_OWORD *)(a2 + 16) = 0LL;
*(_OWORD *)(v2 + 56) = 0LL;
*(_OWORD *)(v2 + 40) = 0LL;
*(_OWORD *)(v2 + 24) = 0LL;
*(_QWORD *)(v2 + 88) = v3;
}
else
{
*(_OWORD *)(v2 + 72) = 0LL;
*(_OWORD *)(v2 + 56) = 0LL;
*(_OWORD *)(v2 + 40) = 0LL;
*(_OWORD *)(v2 + 24) = 0LL;
*(_QWORD *)(v2 + 88) = 0LL;
}
*(_QWORD *)(v2 + 16) = off_58358;
*(_QWORD *)(v2 + 96) = v4;
*a1 = v2 + 16;
a1[1] = v2;
return a1;
}
|
Renderer:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV EDI,0x68
CALL 0x0010b3e0
MOV RCX,0x100000001
MOV qword ptr [RAX + 0x8],RCX
LEA RCX,[0x158308]
MOV qword ptr [RAX],RCX
MOV RDX,qword ptr [R14 + 0x10]
MOV RCX,qword ptr [R14 + 0x18]
TEST RDX,RDX
JZ 0x0012c9ec
MOVUPS XMM0,xmmword ptr [R14]
ADD R14,0x10
MOVUPS xmmword ptr [RAX + 0x48],XMM0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14],XMM0
MOVUPS xmmword ptr [RAX + 0x38],XMM0
MOVUPS xmmword ptr [RAX + 0x28],XMM0
MOVUPS xmmword ptr [RAX + 0x18],XMM0
MOV qword ptr [RAX + 0x58],RDX
JMP 0x0012ca07
LAB_0012c9ec:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + 0x48],XMM0
MOVUPS xmmword ptr [RAX + 0x38],XMM0
MOVUPS xmmword ptr [RAX + 0x28],XMM0
MOVUPS xmmword ptr [RAX + 0x18],XMM0
MOV qword ptr [RAX + 0x58],0x0
LAB_0012ca07:
MOV RDX,RAX
ADD RDX,0x10
LEA RSI,[0x158358]
MOV qword ptr [RAX + 0x10],RSI
MOV qword ptr [RAX + 0x60],RCX
MOV qword ptr [RBX],RDX
MOV qword ptr [RBX + 0x8],RAX
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* ftxui::Renderer(std::function<std::shared_ptr<ftxui::Node> (bool)>) */
ftxui * __thiscall ftxui::Renderer(ftxui *this,int8 *param_2)
{
long lVar1;
int8 uVar2;
int8 uVar3;
int8 *puVar4;
puVar4 = (int8 *)operator_new(0x68);
puVar4[1] = 0x100000001;
*puVar4 = &PTR___Sp_counted_ptr_inplace_00158308;
lVar1 = param_2[2];
uVar2 = param_2[3];
if (lVar1 == 0) {
puVar4[9] = 0;
puVar4[10] = 0;
puVar4[7] = 0;
puVar4[8] = 0;
puVar4[5] = 0;
puVar4[6] = 0;
puVar4[3] = 0;
puVar4[4] = 0;
puVar4[0xb] = 0;
}
else {
uVar3 = param_2[1];
puVar4[9] = *param_2;
puVar4[10] = uVar3;
param_2[2] = 0;
param_2[3] = 0;
puVar4[7] = 0;
puVar4[8] = 0;
puVar4[5] = 0;
puVar4[6] = 0;
puVar4[3] = 0;
puVar4[4] = 0;
puVar4[0xb] = lVar1;
}
puVar4[2] = &PTR__Impl_00158358;
puVar4[0xc] = uVar2;
*(int8 **)this = puVar4 + 2;
*(int8 **)(this + 8) = puVar4;
return this;
}
|
|
65,067 |
LefDefParser::defiVia::addPattern(char const*)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiVia.cpp
|
void defiVia::addPattern(const char* pattern) {
int len = strlen(pattern) + 1;
if (len > patternLength_) {
patternLength_ = len;
pattern_ = (char*)realloc(pattern_, len);
}
strcpy(pattern_, defData->DEFCASE(pattern));
hasPattern_ = 1;
}
|
O3
|
cpp
|
LefDefParser::defiVia::addPattern(char const*):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x60d0
incl %eax
cmpl 0x18(%rbx), %eax
jle 0x2674a
movl %eax, 0x18(%rbx)
movq 0x10(%rbx), %rdi
movslq %eax, %rsi
callq 0x62f0
movq %rax, %r15
movq %rax, 0x10(%rbx)
jmp 0x2674e
movq 0x10(%rbx), %r15
movq 0x110(%rbx), %rdi
movq %r14, %rsi
callq 0x18aa0
movq %r15, %rdi
movq %rax, %rsi
callq 0x6190
movl $0x1, 0x28(%rbx)
popq %rbx
popq %r14
popq %r15
retq
nop
|
_ZN12LefDefParser7defiVia10addPatternEPKc:
push r15
push r14
push rbx
mov r14, rsi
mov rbx, rdi
mov rdi, rsi
call _strlen
inc eax
cmp eax, [rbx+18h]
jle short loc_2674A
mov [rbx+18h], eax
mov rdi, [rbx+10h]
movsxd rsi, eax
call _realloc
mov r15, rax
mov [rbx+10h], rax
jmp short loc_2674E
loc_2674A:
mov r15, [rbx+10h]
loc_2674E:
mov rdi, [rbx+110h]; this
mov rsi, r14; char *
call _ZN12LefDefParser8defrData7DEFCASEEPKc; LefDefParser::defrData::DEFCASE(char const*)
mov rdi, r15
mov rsi, rax
call _strcpy
mov dword ptr [rbx+28h], 1
pop rbx
pop r14
pop r15
retn
|
long long LefDefParser::defiVia::addPattern(LefDefParser::defiVia *this, const char *a2)
{
int v2; // eax
long long v3; // r15
const char *v4; // rax
long long result; // rax
v2 = strlen(a2) + 1;
if ( v2 <= *((_DWORD *)this + 6) )
{
v3 = *((_QWORD *)this + 2);
}
else
{
*((_DWORD *)this + 6) = v2;
v3 = realloc(*((_QWORD *)this + 2));
*((_QWORD *)this + 2) = v3;
}
v4 = LefDefParser::defrData::DEFCASE(*((LefDefParser::defrData **)this + 34), a2);
result = strcpy(v3, v4);
*((_DWORD *)this + 10) = 1;
return result;
}
|
addPattern:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSI
CALL 0x001060d0
INC EAX
CMP EAX,dword ptr [RBX + 0x18]
JLE 0x0012674a
MOV dword ptr [RBX + 0x18],EAX
MOV RDI,qword ptr [RBX + 0x10]
MOVSXD RSI,EAX
CALL 0x001062f0
MOV R15,RAX
MOV qword ptr [RBX + 0x10],RAX
JMP 0x0012674e
LAB_0012674a:
MOV R15,qword ptr [RBX + 0x10]
LAB_0012674e:
MOV RDI,qword ptr [RBX + 0x110]
MOV RSI,R14
CALL 0x00118aa0
MOV RDI,R15
MOV RSI,RAX
CALL 0x00106190
MOV dword ptr [RBX + 0x28],0x1
POP RBX
POP R14
POP R15
RET
|
/* LefDefParser::defiVia::addPattern(char const*) */
void __thiscall LefDefParser::defiVia::addPattern(defiVia *this,char *param_1)
{
int iVar1;
size_t sVar2;
char *__dest;
char *__src;
sVar2 = strlen(param_1);
iVar1 = (int)sVar2 + 1;
if (*(int *)(this + 0x18) < iVar1) {
*(int *)(this + 0x18) = iVar1;
__dest = (char *)realloc(*(void **)(this + 0x10),(long)iVar1);
*(char **)(this + 0x10) = __dest;
}
else {
__dest = *(char **)(this + 0x10);
}
__src = (char *)defrData::DEFCASE(*(defrData **)(this + 0x110),param_1);
strcpy(__dest,__src);
*(int4 *)(this + 0x28) = 1;
return;
}
|
|
65,068 |
fill_and_get_bits
|
eloqsql/storage/maria/ma_packrec.c
|
static uint fill_and_get_bits(MARIA_BIT_BUFF *bit_buff, uint count)
{
uint tmp;
count-=bit_buff->bits;
tmp=(bit_buff->current_byte & mask[bit_buff->bits]) << count;
fill_buffer(bit_buff);
bit_buff->bits=BITS_SAVED - count;
return tmp+(bit_buff->current_byte >> (BITS_SAVED - count));
}
|
O0
|
c
|
fill_and_get_bits:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movl 0x4(%rax), %ecx
movl -0xc(%rbp), %eax
subl %ecx, %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rax
movl (%rax), %eax
movq -0x8(%rbp), %rcx
movl 0x4(%rcx), %ecx
movl %ecx, %edx
leaq 0x28446c(%rip), %rcx # 0x2bd2e0
andl (%rcx,%rdx,4), %eax
movl -0xc(%rbp), %ecx
shll %cl, %eax
movl %eax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
callq 0x39690
movl $0x20, %ecx
subl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
movl (%rcx), %edx
movl $0x20, %ecx
subl -0xc(%rbp), %ecx
shrl %cl, %edx
movl %edx, %ecx
addl %ecx, %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
fill_and_get_bits:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov rax, [rbp+var_8]
mov ecx, [rax+4]
mov eax, [rbp+var_C]
sub eax, ecx
mov [rbp+var_C], eax
mov rax, [rbp+var_8]
mov eax, [rax]
mov rcx, [rbp+var_8]
mov ecx, [rcx+4]
mov edx, ecx
lea rcx, mask
and eax, [rcx+rdx*4]
mov ecx, [rbp+var_C]
shl eax, cl
mov [rbp+var_10], eax
mov rdi, [rbp+var_8]
call fill_buffer
mov ecx, 20h ; ' '
sub ecx, [rbp+var_C]
mov rax, [rbp+var_8]
mov [rax+4], ecx
mov eax, [rbp+var_10]
mov rcx, [rbp+var_8]
mov edx, [rcx]
mov ecx, 20h ; ' '
sub ecx, [rbp+var_C]
shr edx, cl
mov ecx, edx
add eax, ecx
add rsp, 10h
pop rbp
retn
|
long long fill_and_get_bits(_DWORD *a1, int a2)
{
int v3; // [rsp+0h] [rbp-10h]
int v4; // [rsp+4h] [rbp-Ch]
v4 = a2 - a1[1];
v3 = (mask[a1[1]] & *a1) << v4;
fill_buffer(a1);
a1[1] = 32 - v4;
return (unsigned int)((*a1 >> (32 - v4)) + v3);
}
|
fill_and_get_bits:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x4]
MOV EAX,dword ptr [RBP + -0xc]
SUB EAX,ECX
MOV dword ptr [RBP + -0xc],EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RCX + 0x4]
MOV EDX,ECX
LEA RCX,[0x3bd2e0]
AND EAX,dword ptr [RCX + RDX*0x4]
MOV ECX,dword ptr [RBP + -0xc]
SHL EAX,CL
MOV dword ptr [RBP + -0x10],EAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00139690
MOV ECX,0x20
SUB ECX,dword ptr [RBP + -0xc]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x4],ECX
MOV EAX,dword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x8]
MOV EDX,dword ptr [RCX]
MOV ECX,0x20
SUB ECX,dword ptr [RBP + -0xc]
SHR EDX,CL
MOV ECX,EDX
ADD EAX,ECX
ADD RSP,0x10
POP RBP
RET
|
int fill_and_get_bits(uint *param_1,int param_2)
{
uint uVar1;
uint uVar2;
uint uVar3;
byte bVar4;
uVar1 = param_1[1];
uVar2 = *param_1;
uVar3 = *(uint *)(mask + (ulong)param_1[1] * 4);
bVar4 = (byte)(param_2 - uVar1);
fill_buffer(param_1);
param_1[1] = 0x20 - (param_2 - uVar1);
return ((uVar2 & uVar3) << (bVar4 & 0x1f)) + (*param_1 >> (0x20 - bVar4 & 0x1f));
}
|
|
65,069 |
llama_model_loader::weight_name_comparer::operator()(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&) const
|
monkey531[P]llama/src/llama-model-loader.h
|
bool operator()(const std::string & a, const std::string & b) const {
int a_layer = -1;
int b_layer = -1;
sscanf(a.c_str(), "blk.%d.", &a_layer);
sscanf(b.c_str(), "blk.%d.", &b_layer);
if (a_layer != b_layer) {
return a_layer < b_layer;
}
return a < b;
}
|
O0
|
c
|
llama_model_loader::weight_name_comparer::operator()(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&) const:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
movl $0xffffffff, 0x4(%rsp) # imm = 0xFFFFFFFF
movl $0xffffffff, (%rsp) # imm = 0xFFFFFFFF
movq 0x10(%rsp), %rdi
callq 0x1f5f40
movq %rax, %rdi
leaq 0xf8efb(%rip), %rsi # 0x3d4351
leaq 0x4(%rsp), %rdx
movb $0x0, %al
callq 0x204d10
movq 0x8(%rsp), %rdi
callq 0x1f5f40
movq %rax, %rdi
leaq 0xf8edb(%rip), %rsi # 0x3d4351
movq %rsp, %rdx
movb $0x0, %al
callq 0x204d10
movl 0x4(%rsp), %eax
cmpl (%rsp), %eax
je 0x2db49b
movl 0x4(%rsp), %eax
cmpl (%rsp), %eax
setl %al
andb $0x1, %al
movb %al, 0x27(%rsp)
jmp 0x2db4b0
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x1f1920
andb $0x1, %al
movb %al, 0x27(%rsp)
movb 0x27(%rsp), %al
andb $0x1, %al
addq $0x28, %rsp
retq
nopl (%rax,%rax)
|
_ZNK18llama_model_loader20weight_name_comparerclERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov [rsp+28h+var_18], rsi
mov [rsp+28h+var_20], rdx
mov [rsp+28h+var_24], 0FFFFFFFFh
mov [rsp+28h+var_28], 0FFFFFFFFh
mov rdi, [rsp+28h+var_18]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov rdi, rax
lea rsi, aBlkD; "blk.%d."
lea rdx, [rsp+28h+var_24]
mov al, 0
call ___isoc99_sscanf
mov rdi, [rsp+28h+var_20]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov rdi, rax
lea rsi, aBlkD; "blk.%d."
mov rdx, rsp
mov al, 0
call ___isoc99_sscanf
mov eax, [rsp+28h+var_24]
cmp eax, [rsp+28h+var_28]
jz short loc_2DB49B
mov eax, [rsp+28h+var_24]
cmp eax, [rsp+28h+var_28]
setl al
and al, 1
mov [rsp+28h+var_1], al
jmp short loc_2DB4B0
loc_2DB49B:
mov rdi, [rsp+28h+var_18]
mov rsi, [rsp+28h+var_20]
call __ZStltIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_; std::operator<<char>(std::string const&,std::string const&)
and al, 1
mov [rsp+28h+var_1], al
loc_2DB4B0:
mov al, [rsp+28h+var_1]
and al, 1
add rsp, 28h
retn
|
char llama_model_loader::weight_name_comparer::operator()(long long a1, long long a2, long long a3)
{
long long v3; // rax
long long v4; // rax
long long v5; // rdx
long long v6; // rcx
long long v7; // r8
long long v8; // r9
long long v10; // [rsp+0h] [rbp-28h] BYREF
long long v11; // [rsp+8h] [rbp-20h]
long long v12; // [rsp+10h] [rbp-18h]
long long v13; // [rsp+18h] [rbp-10h]
char v14; // [rsp+27h] [rbp-1h]
v13 = a1;
v12 = a2;
v11 = a3;
v10 = -1LL;
v3 = std::string::c_str(a2);
__isoc99_sscanf(v3, "blk.%d.", (char *)&v10 + 4);
v4 = std::string::c_str(v11);
__isoc99_sscanf(v4, "blk.%d.", &v10);
if ( HIDWORD(v10) == (_DWORD)v10 )
v14 = std::operator<<char>(v12, v11, v5, v6, v7, v8, v10, v11, v12) & 1;
else
v14 = SHIDWORD(v10) < (int)v10;
return v14 & 1;
}
| |||
65,070 |
llama_model_loader::weight_name_comparer::operator()(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&) const
|
monkey531[P]llama/src/llama-model-loader.h
|
bool operator()(const std::string & a, const std::string & b) const {
int a_layer = -1;
int b_layer = -1;
sscanf(a.c_str(), "blk.%d.", &a_layer);
sscanf(b.c_str(), "blk.%d.", &b_layer);
if (a_layer != b_layer) {
return a_layer < b_layer;
}
return a < b;
}
|
O2
|
c
|
llama_model_loader::weight_name_comparer::operator()(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&) const:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
leaq 0xc(%rsp), %r15
orl $-0x1, (%r15)
leaq 0x8(%rsp), %r12
orl $-0x1, (%r12)
movq (%rsi), %rdi
leaq 0x5ab91(%rip), %r13 # 0x146169
movq %r13, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0xa1a00
movq (%rbx), %rdi
movq %r13, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0xa1a00
movl (%r12), %eax
cmpl %eax, (%r15)
jne 0xeb60b
movq %r14, %rdi
movq %rbx, %rsi
callq 0x9c350
jmp 0xeb60e
setl %al
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
|
_ZNK18llama_model_loader20weight_name_comparerclERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 10h
mov rbx, rdx
mov r14, rsi
lea r15, [rsp+38h+var_2C]
or dword ptr [r15], 0FFFFFFFFh
lea r12, [rsp+38h+var_30]
or dword ptr [r12], 0FFFFFFFFh
mov rdi, [rsi]
lea r13, aBlkD; "blk.%d."
mov rsi, r13
mov rdx, r15
xor eax, eax
call ___isoc99_sscanf
mov rdi, [rbx]
mov rsi, r13
mov rdx, r12
xor eax, eax
call ___isoc99_sscanf
mov eax, [r12]
cmp [r15], eax
jnz short loc_EB60B
mov rdi, r14
mov rsi, rbx
call __ZStltIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_; std::operator<<char>(std::string const&,std::string const&)
jmp short loc_EB60E
loc_EB60B:
setl al
loc_EB60E:
add rsp, 10h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
|
char llama_model_loader::weight_name_comparer::operator()(long long a1, _QWORD *a2, _QWORD *a3)
{
int v5; // [rsp+8h] [rbp-30h] BYREF
int v6; // [rsp+Ch] [rbp-2Ch] BYREF
v6 = -1;
v5 = -1;
__isoc99_sscanf(*a2, "blk.%d.", &v6);
__isoc99_sscanf(*a3, "blk.%d.", &v5);
if ( v6 == v5 )
return std::operator<<char>(a2, a3);
else
return v6 < v5;
}
|
operator():
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV RBX,RDX
MOV R14,RSI
LEA R15,[RSP + 0xc]
OR dword ptr [R15],0xffffffff
LEA R12,[RSP + 0x8]
OR dword ptr [R12],0xffffffff
MOV RDI,qword ptr [RSI]
LEA R13,[0x246169]
MOV RSI,R13
MOV RDX,R15
XOR EAX,EAX
CALL 0x001a1a00
MOV RDI,qword ptr [RBX]
MOV RSI,R13
MOV RDX,R12
XOR EAX,EAX
CALL 0x001a1a00
MOV EAX,dword ptr [R12]
CMP dword ptr [R15],EAX
JNZ 0x001eb60b
MOV RDI,R14
MOV RSI,RBX
CALL 0x0019c350
JMP 0x001eb60e
LAB_001eb60b:
SETL AL
LAB_001eb60e:
ADD RSP,0x10
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* llama_model_loader::weight_name_comparer::TEMPNAMEPLACEHOLDERVALUE(std::__cxx11::string const&,
std::__cxx11::string const&) const */
bool __thiscall
llama_model_loader::weight_name_comparer::operator()
(weight_name_comparer *this,string *param_1,string *param_2)
{
bool bVar1;
int local_30;
int local_2c;
local_2c = -1;
local_30 = -1;
__isoc99_sscanf(*(int8 *)param_1,"blk.%d.",&local_2c);
__isoc99_sscanf(*(int8 *)param_2,"blk.%d.",&local_30);
if (local_2c == local_30) {
bVar1 = std::operator<(param_1,param_2);
}
else {
bVar1 = local_2c < local_30;
}
return bVar1;
}
|
|
65,071 |
evmone::advanced::Instruction const* evmone::advanced::(anonymous namespace)::op<&void evmone::advanced::instr::impl<(evmone::Opcode)11, &evmone::instr::core::signextend(evmone::StackTop)>(evmone::advanced::AdvancedExecutionState&)>(evmone::advanced::Instruction const*, evmone::advanced::AdvancedExecutionState&)
|
corpus-core[P]colibri-stateless/build_O3/_deps/evmone_external-src/lib/evmone/advanced_instructions.cpp
|
inline void impl(AdvancedExecutionState& state) noexcept
{
CoreFn(state.stack);
state.adjust_stack_size(instr::traits[Op].stack_height_change);
}
|
O3
|
cpp
|
evmone::advanced::Instruction const* evmone::advanced::(anonymous namespace)::op<&void evmone::advanced::instr::impl<(evmone::Opcode)11, &evmone::instr::core::signextend(evmone::StackTop)>(evmone::advanced::AdvancedExecutionState&)>(evmone::advanced::Instruction const*, evmone::advanced::AdvancedExecutionState&):
pushq %r14
pushq %rbx
movq 0x228(%rsi), %rdx
movq (%rdx), %r9
movq 0x10(%rdx), %rcx
movq 0x18(%rdx), %r8
xorl %r10d, %r10d
movq %r8, %rax
orq %rcx, %rax
cmoveq %r9, %rcx
cmoveq 0x8(%rdx), %r8
movq %rdi, %rax
movl $0x1f, %r11d
cmovneq %r10, %r11
leaq -0x20(%rdx), %rdi
cmpq %r11, %rcx
sbbq $0x0, %r8
jae 0x4e510
movq %r9, %r10
andq $-0x8, %r10
leal (,%r9,8), %ecx
movq (%rdi,%r10), %r11
movq %r11, %r8
shrq %cl, %r8
movsbq %r8b, %r8
movq %r8, %rbx
shlq %cl, %rbx
movq $-0x1, %r14
shlq %cl, %r14
notq %r14
andq %r11, %r14
orq %rbx, %r14
movq %r14, (%rdi,%r10)
cmpq $0x17, %r9
ja 0x4e510
shrq $0x3, %r9
sarq $0x7, %r8
cmpq $0x2, %r9
movl $0x2, %r10d
cmovbq %r9, %r10
movl $0x4, %ecx
subl %r10d, %ecx
andl $0x6, %ecx
movl $0x2, %r9d
subl %r10d, %r9d
movd %r9d, %xmm0
pshufd $0x44, %xmm0, %xmm0 # xmm0 = xmm0[0,1,0,1]
addq $-0x8, %rdx
xorl %r9d, %r9d
pmovsxbq 0x3d727(%rip), %xmm1 # 0x8bbd0
movdqa 0x34f2f(%rip), %xmm2 # 0x833e0
por %xmm2, %xmm0
pcmpeqd %xmm3, %xmm3
movq %r9, %xmm4
movdqa %xmm4, %xmm5
pxor %xmm2, %xmm5
pcmpgtq %xmm0, %xmm5
movd %xmm5, %r10d
notl %r10d
testb $0x1, %r10b
je 0x4e4dc
movq %r8, (%rdx)
pshufd $0x44, %xmm4, %xmm4 # xmm4 = xmm4[0,1,0,1]
por %xmm1, %xmm4
pxor %xmm2, %xmm4
pcmpgtq %xmm0, %xmm4
pxor %xmm3, %xmm4
pextrb $0x8, %xmm4, %r10d
testb $0x1, %r10b
je 0x4e503
movq %r8, -0x8(%rdx)
addq $0x2, %r9
addq $-0x10, %rdx
cmpq %r9, %rcx
jne 0x4e4b9
movq %rdi, 0x228(%rsi)
addq $0x10, %rax
popq %rbx
popq %r14
retq
|
_ZN6evmone8advanced12_GLOBAL__N_12opIXadL_ZNS0_5instr4implILNS_6OpcodeE11EXadL_ZNS_5instr4core10signextendENS_8StackTopEEEEEvRNS0_22AdvancedExecutionStateEEEEEPKNS0_11InstructionESD_SA_:
push r14
push rbx
mov rdx, [rsi+228h]
mov r9, [rdx]
mov rcx, [rdx+10h]
mov r8, [rdx+18h]
xor r10d, r10d
mov rax, r8
or rax, rcx
cmovz rcx, r9
cmovz r8, [rdx+8]
mov rax, rdi
mov r11d, 1Fh
cmovnz r11, r10
lea rdi, [rdx-20h]
cmp rcx, r11
sbb r8, 0
jnb loc_4E510
mov r10, r9
and r10, 0FFFFFFFFFFFFFFF8h
lea ecx, ds:0[r9*8]
mov r11, [rdi+r10]
mov r8, r11
shr r8, cl
movsx r8, r8b
mov rbx, r8
shl rbx, cl
mov r14, 0FFFFFFFFFFFFFFFFh
shl r14, cl
not r14
and r14, r11
or r14, rbx
mov [rdi+r10], r14
cmp r9, 17h
ja loc_4E510
shr r9, 3
sar r8, 7
cmp r9, 2
mov r10d, 2
cmovb r10, r9
mov ecx, 4
sub ecx, r10d
and ecx, 6
mov r9d, 2
sub r9d, r10d
movd xmm0, r9d
pshufd xmm0, xmm0, 44h ; 'D'
add rdx, 0FFFFFFFFFFFFFFF8h
xor r9d, r9d
pmovsxbq xmm1, cs:word_8BBD0
movdqa xmm2, cs:xmmword_833E0
por xmm0, xmm2
pcmpeqd xmm3, xmm3
loc_4E4B9:
movq xmm4, r9
movdqa xmm5, xmm4
pxor xmm5, xmm2
pcmpgtq xmm5, xmm0
movd r10d, xmm5
not r10d
test r10b, 1
jz short loc_4E4DC
mov [rdx], r8
loc_4E4DC:
pshufd xmm4, xmm4, 44h ; 'D'
por xmm4, xmm1
pxor xmm4, xmm2
pcmpgtq xmm4, xmm0
pxor xmm4, xmm3
pextrb r10d, xmm4, 8
test r10b, 1
jz short loc_4E503
mov [rdx-8], r8
loc_4E503:
add r9, 2
add rdx, 0FFFFFFFFFFFFFFF0h
cmp rcx, r9
jnz short loc_4E4B9
loc_4E510:
mov [rsi+228h], rdi
add rax, 10h
pop rbx
pop r14
retn
|
long long evmone::advanced::`anonymous namespace'::op<&void evmone::advanced::instr::impl<(evmone::Opcode)11,&evmone::instr::core::signextend>>(
long long a1,
long long a2)
{
unsigned long long *v2; // rdx
unsigned long long v3; // r9
unsigned long long v4; // rcx
unsigned long long v5; // r8
long long v7; // r11
unsigned long long *v8; // rdi
long long v9; // r8
unsigned long long v10; // r9
long long v11; // r8
int v12; // r10d
long long *v13; // rdx
unsigned long long v14; // r9
__m128i v15; // xmm1
__m128i si128; // xmm2
__m128i v17; // xmm0
v2 = *(unsigned long long **)(a2 + 552);
v3 = *v2;
v4 = v2[2];
v5 = v2[3];
if ( *((_OWORD *)v2 + 1) == 0LL )
{
v4 = *v2;
v5 = v2[1];
}
v7 = 31LL;
if ( *((_OWORD *)v2 + 1) != 0LL )
v7 = 0LL;
v8 = v2 - 4;
if ( __PAIR128__(v5, v4) < (unsigned long long)v7 )
{
v9 = (char)(*(unsigned long long *)((char *)v8 + (v3 & 0xFFFFFFFFFFFFFFF8LL)) >> (8 * (unsigned __int8)v3));
*(unsigned long long *)((char *)v8 + (v3 & 0xFFFFFFFFFFFFFFF8LL)) = (v9 << (8 * (unsigned __int8)v3)) | *(unsigned long long *)((char *)v8 + (v3 & 0xFFFFFFFFFFFFFFF8LL)) & ~(-1LL << (8 * (unsigned __int8)v3));
if ( v3 <= 0x17 )
{
v10 = v3 >> 3;
v11 = v9 >> 7;
v12 = 2;
if ( v10 < 2 )
v12 = v10;
v13 = (long long *)(v2 - 1);
v14 = 0LL;
v15 = _mm_cvtepi8_epi64(256);
si128 = _mm_load_si128((const __m128i *)&xmmword_833E0);
v17 = _mm_or_si128(_mm_shuffle_epi32(_mm_cvtsi32_si128(2 - v12), 68), si128);
do
{
if ( (~_mm_cvtsi128_si32(_mm_cmpgt_epi64(_mm_xor_si128((__m128i)v14, si128), v17)) & 1) != 0 )
*v13 = v11;
if ( (_mm_extract_epi8(
_mm_xor_si128(
_mm_cmpgt_epi64(_mm_xor_si128(_mm_or_si128(_mm_shuffle_epi32((__m128i)v14, 68), v15), si128), v17),
(__m128i)-1LL),
8) & 1) != 0 )
*(v13 - 1) = v11;
v14 += 2LL;
v13 -= 2;
}
while ( ((4 - (_BYTE)v12) & 6) != v14 );
}
}
*(_QWORD *)(a2 + 552) = v8;
return a1 + 16;
}
|
op<&(void_evmone::advanced::instr::impl<(evmone::Opcode)11,&evmone::instr::core::signextend>(evmone::advanced::AdvancedExecutionState&))>:
PUSH R14
PUSH RBX
MOV RDX,qword ptr [RSI + 0x228]
MOV R9,qword ptr [RDX]
MOV RCX,qword ptr [RDX + 0x10]
MOV R8,qword ptr [RDX + 0x18]
XOR R10D,R10D
MOV RAX,R8
OR RAX,RCX
CMOVZ RCX,R9
CMOVZ R8,qword ptr [RDX + 0x8]
MOV RAX,RDI
MOV R11D,0x1f
CMOVNZ R11,R10
LEA RDI,[RDX + -0x20]
CMP RCX,R11
SBB R8,0x0
JNC 0x0014e510
MOV R10,R9
AND R10,-0x8
LEA ECX,[R9*0x8]
MOV R11,qword ptr [RDI + R10*0x1]
MOV R8,R11
SHR R8,CL
MOVSX R8,R8B
MOV RBX,R8
SHL RBX,CL
MOV R14,-0x1
SHL R14,CL
NOT R14
AND R14,R11
OR R14,RBX
MOV qword ptr [RDI + R10*0x1],R14
CMP R9,0x17
JA 0x0014e510
SHR R9,0x3
SAR R8,0x7
CMP R9,0x2
MOV R10D,0x2
CMOVC R10,R9
MOV ECX,0x4
SUB ECX,R10D
AND ECX,0x6
MOV R9D,0x2
SUB R9D,R10D
MOVD XMM0,R9D
PSHUFD XMM0,XMM0,0x44
ADD RDX,-0x8
XOR R9D,R9D
PMOVSXBQ XMM1,word ptr [0x0018bbd0]
MOVDQA XMM2,xmmword ptr [0x001833e0]
POR XMM0,XMM2
PCMPEQD XMM3,XMM3
LAB_0014e4b9:
MOVQ XMM4,R9
MOVDQA XMM5,XMM4
PXOR XMM5,XMM2
PCMPGTQ XMM5,XMM0
MOVD R10D,XMM5
NOT R10D
TEST R10B,0x1
JZ 0x0014e4dc
MOV qword ptr [RDX],R8
LAB_0014e4dc:
PSHUFD XMM4,XMM4,0x44
POR XMM4,XMM1
PXOR XMM4,XMM2
PCMPGTQ XMM4,XMM0
PXOR XMM4,XMM3
PEXTRB R10D,XMM4,0x8
TEST R10B,0x1
JZ 0x0014e503
MOV qword ptr [RDX + -0x8],R8
LAB_0014e503:
ADD R9,0x2
ADD RDX,-0x10
CMP RCX,R9
JNZ 0x0014e4b9
LAB_0014e510:
MOV qword ptr [RSI + 0x228],RDI
ADD RAX,0x10
POP RBX
POP R14
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* evmone::advanced::Instruction const* evmone::advanced::(anonymous namespace)::op<&(void
evmone::advanced::instr::impl<(evmone::Opcode)11,
&evmone::instr::core::signextend>(evmone::advanced::AdvancedExecutionState&))>(evmone::advanced::Instruction
const*, evmone::advanced::AdvancedExecutionState&) */
Instruction *
evmone::advanced::(anonymous_namespace)::
op<&(void_evmone::advanced::instr::impl<(evmone::Opcode)11,&evmone::instr::core::signextend>(evmone::advanced::AdvancedExecutionState&))>
(Instruction *param_1,AdvancedExecutionState *param_2)
{
ulong *puVar1;
bool bVar2;
bool bVar3;
int1 auVar4 [16];
byte bVar5;
ulong uVar6;
ulong *puVar7;
long lVar8;
ulong uVar9;
uint uVar10;
ulong uVar11;
ulong uVar12;
int1 auVar13 [16];
int1 in_XMM1 [16];
int1 auVar14 [16];
int1 auVar15 [16];
puVar7 = *(ulong **)(param_2 + 0x228);
uVar11 = *puVar7;
bVar2 = puVar7[3] == 0;
bVar3 = puVar7[2] == 0;
uVar6 = puVar7[2];
if (bVar2 && bVar3) {
uVar6 = uVar11;
}
uVar9 = puVar7[3];
if (bVar2 && bVar3) {
uVar9 = puVar7[1];
}
uVar12 = 0x1f;
if (!bVar2 || !bVar3) {
uVar12 = 0;
}
puVar1 = puVar7 + -4;
if (uVar9 < (uVar6 < uVar12)) {
bVar5 = (char)uVar11 * '\b';
uVar6 = *(ulong *)((long)puVar1 + (uVar11 & 0xfffffffffffffff8));
lVar8 = (long)(char)(uVar6 >> (bVar5 & 0x3f));
*(ulong *)((long)puVar1 + (uVar11 & 0xfffffffffffffff8)) =
~(-1L << (bVar5 & 0x3f)) & uVar6 | lVar8 << (bVar5 & 0x3f);
auVar4 = _DAT_001833e0;
if (uVar11 < 0x18) {
uVar9 = lVar8 >> 7;
uVar6 = 2;
if (uVar11 >> 3 < 2) {
uVar6 = uVar11 >> 3;
}
uVar10 = 2 - (int)uVar6;
auVar13._4_4_ = 0;
auVar13._0_4_ = uVar10;
auVar13._8_4_ = uVar10;
auVar13._12_4_ = 0;
puVar7 = puVar7 + -1;
uVar11 = 0;
auVar14 = pmovsxbq(in_XMM1,_DAT_0018bbd0);
auVar13 = auVar13 | _DAT_001833e0;
do {
if ((bool)(~(auVar13._0_8_ < (long)(uVar11 ^ auVar4._0_8_)) & 1)) {
*puVar7 = uVar9;
}
auVar15._8_4_ = (int)uVar11;
auVar15._0_8_ = uVar11;
auVar15._12_4_ = (int)(uVar11 >> 0x20);
if ((long)((auVar15._8_8_ | auVar14._8_8_) ^ auVar4._8_8_) <= auVar13._8_8_) {
puVar7[-1] = uVar9;
}
uVar11 = uVar11 + 2;
puVar7 = puVar7 + -2;
} while ((4U - (int)uVar6 & 6) != uVar11);
}
}
*(ulong **)(param_2 + 0x228) = puVar1;
return param_1 + 0x10;
}
|
|
65,072 |
bool minja::Value::get<bool>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool) const
|
llama.cpp/common/minja/minja.hpp
|
T get(const std::string & key, T default_value) const {
if (!contains(key)) return default_value;
return at(key).get<T>();
}
|
O3
|
cpp
|
bool minja::Value::get<bool>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool) const:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
callq 0xc1d6c
testb %al, %al
je 0xcbb20
movq %rsp, %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0xbbf7e
movq %r14, %rdi
movq %rbx, %rsi
callq 0xc03c6
movq %rax, %rdi
callq 0xbef60
movl %eax, %ebx
leaq 0x40(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x852f2
movq %r14, %rdi
callq 0x89a0c
leaq 0x38(%rsp), %rdi
callq 0x70a5a
leaq 0x28(%rsp), %rdi
callq 0x70a5a
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x70a5a
movq -0x10(%r14), %rdi
testq %rdi, %rdi
je 0xcbb20
movq 0x9649d(%rip), %rax # 0x161f98
cmpb $0x0, (%rax)
je 0xcbb0b
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0xcbb15
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0xcbb20
movq (%rdi), %rax
callq *0x18(%rax)
movl %ebx, %eax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0xb6214
movq %rbx, %rdi
callq 0x20af0
nop
|
_ZNK5minja5Value3getIbEET_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES2_:
push r15
push r14
push rbx
sub rsp, 50h
mov ebx, edx
mov r15, rsi
mov r14, rdi
call _ZNK5minja5Value8containsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::contains(std::string const&)
test al, al
jz loc_CBB20
mov rbx, rsp
mov rdi, rbx
mov rsi, r15
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
mov rdi, r14; this
mov rsi, rbx; minja::Value *
call _ZN5minja5Value2atERKS0_; minja::Value::at(minja::Value const&)
mov rdi, rax
call _ZNK5minja5Value3getIbEET_v; minja::Value::get<bool>(void)
mov ebx, eax
lea r14, [rsp+68h+var_28]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
lea rdi, [rsp+68h+var_30]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+68h+var_40]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea r14, [rsp+68h+var_50]
mov rdi, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, [r14-10h]
test rdi, rdi
jz short loc_CBB20
mov rax, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rax], 0
jz short loc_CBB0B
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_CBB15
loc_CBB0B:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_CBB15:
cmp eax, 1
jnz short loc_CBB20
mov rax, [rdi]
call qword ptr [rax+18h]
loc_CBB20:
mov eax, ebx
add rsp, 50h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rdi, rsp; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, rbx
call __Unwind_Resume
|
long long minja::Value::get<bool>(minja::Value *this, long long a2, unsigned int a3, __m128d a4)
{
_QWORD *v5; // rax
unsigned int v6; // eax
long long v7; // rdi
signed __int32 v8; // eax
long long v10; // [rsp+0h] [rbp-68h] BYREF
long long v11; // [rsp+8h] [rbp-60h]
volatile signed __int32 *v12; // [rsp+18h] [rbp-50h] BYREF
volatile signed __int32 *v13; // [rsp+28h] [rbp-40h] BYREF
volatile signed __int32 *v14; // [rsp+38h] [rbp-30h] BYREF
char v15[40]; // [rsp+40h] [rbp-28h] BYREF
if ( minja::Value::contains((long long)this, a2, a4) )
{
minja::Value::Value((long long)&v10, a2);
v5 = (_QWORD *)minja::Value::at(this, (const minja::Value *)&v10);
LOBYTE(v6) = minja::Value::get<bool>(v5);
a3 = v6;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v15);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v15);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v14);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v13);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v12);
v7 = v11;
if ( v11 )
{
if ( _libc_single_threaded )
{
v8 = *(_DWORD *)(v11 + 12);
*(_DWORD *)(v11 + 12) = v8 - 1;
}
else
{
v8 = _InterlockedExchangeAdd((volatile signed __int32 *)(v11 + 12), 0xFFFFFFFF);
}
if ( v8 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v7 + 24LL))(v7, 0LL);
}
}
return a3;
}
|
get<bool>:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV EBX,EDX
MOV R15,RSI
MOV R14,RDI
CALL 0x001c1d6c
TEST AL,AL
JZ 0x001cbb20
MOV RBX,RSP
MOV RDI,RBX
MOV RSI,R15
CALL 0x001bbf7e
LAB_001cba9e:
MOV RDI,R14
MOV RSI,RBX
CALL 0x001c03c6
MOV RDI,RAX
CALL 0x001bef60
LAB_001cbab1:
MOV EBX,EAX
LEA R14,[RSP + 0x40]
MOV RDI,R14
XOR ESI,ESI
CALL 0x001852f2
MOV RDI,R14
CALL 0x00189a0c
LEA RDI,[RSP + 0x38]
CALL 0x00170a5a
LEA RDI,[RSP + 0x28]
CALL 0x00170a5a
LEA R14,[RSP + 0x18]
MOV RDI,R14
CALL 0x00170a5a
MOV RDI,qword ptr [R14 + -0x10]
TEST RDI,RDI
JZ 0x001cbb20
MOV RAX,qword ptr [0x00261f98]
CMP byte ptr [RAX],0x0
JZ 0x001cbb0b
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x001cbb15
LAB_001cbb0b:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_001cbb15:
CMP EAX,0x1
JNZ 0x001cbb20
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_001cbb20:
MOV EAX,EBX
ADD RSP,0x50
POP RBX
POP R14
POP R15
RET
|
/* bool minja::Value::get<bool>(std::__cxx11::string const&, bool) const */
bool __thiscall minja::Value::get<bool>(Value *this,string *param_1,bool param_2)
{
int *piVar1;
char cVar2;
int iVar3;
Value *this_00;
Value aVStack_68 [8];
long *local_60;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_50 [16];
__shared_count<(__gnu_cxx::_Lock_policy)2> local_40 [16];
__shared_count<(__gnu_cxx::_Lock_policy)2> local_30 [8];
data local_28 [16];
cVar2 = contains(this,param_1);
if (cVar2 != '\0') {
Value(aVStack_68,param_1);
/* try { // try from 001cba9e to 001cbab0 has its CatchHandler @ 001cbb2c */
this_00 = (Value *)at(this,aVStack_68);
param_2 = get<bool>(this_00);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_28,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_28);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_30);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_40);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_50);
if (local_60 != (long *)0x0) {
if (*PTR___libc_single_threaded_00261f98 == '\0') {
LOCK();
piVar1 = (int *)((long)local_60 + 0xc);
iVar3 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar3 = *(int *)((long)local_60 + 0xc);
*(int *)((long)local_60 + 0xc) = iVar3 + -1;
}
if (iVar3 == 1) {
(**(code **)(*local_60 + 0x18))();
}
}
}
return param_2;
}
|
|
65,073 |
char const* fmt::v10::detail::parse_replacement_field<char, void fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char>&, fmt::v10::basic_string_view<char>, fmt::v10::detail::vformat_args<char>::type, fmt::v10::detail::locale_ref)::format_handler&>(char const*, char const*, void fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char>&, fmt::v10::basic_string_view<char>, fmt::v10::detail::vformat_args<char>::type, fmt::v10::detail::locale_ref)::format_handler&)
|
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/core.h
|
FMT_CONSTEXPR auto parse_replacement_field(const Char* begin, const Char* end,
Handler&& handler) -> const Char* {
struct id_adapter {
Handler& handler;
int arg_id;
FMT_CONSTEXPR void on_auto() { arg_id = handler.on_arg_id(); }
FMT_CONSTEXPR void on_index(int id) { arg_id = handler.on_arg_id(id); }
FMT_CONSTEXPR void on_name(basic_string_view<Char> id) {
arg_id = handler.on_arg_id(id);
}
};
++begin;
if (begin == end) return handler.on_error("invalid format string"), end;
if (*begin == '}') {
handler.on_replacement_field(handler.on_arg_id(), begin);
} else if (*begin == '{') {
handler.on_text(begin, begin + 1);
} else {
auto adapter = id_adapter{handler, 0};
begin = parse_arg_id(begin, end, adapter);
Char c = begin != end ? *begin : Char();
if (c == '}') {
handler.on_replacement_field(adapter.arg_id, begin);
} else if (c == ':') {
begin = handler.on_format_specs(adapter.arg_id, begin + 1, end);
if (begin == end || *begin != '}')
return handler.on_error("unknown format specifier"), end;
} else {
return handler.on_error("missing '}' in format string"), end;
}
}
return begin + 1;
}
|
O3
|
c
|
char const* fmt::v10::detail::parse_replacement_field<char, void fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char>&, fmt::v10::basic_string_view<char>, fmt::v10::detail::vformat_args<char>::type, fmt::v10::detail::locale_ref)::format_handler&>(char const*, char const*, void fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char>&, fmt::v10::basic_string_view<char>, fmt::v10::detail::vformat_args<char>::type, fmt::v10::detail::locale_ref)::format_handler&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r14
leaq 0x1(%rdi), %rbx
cmpq %rsi, %rbx
je 0x2f0e4
movq %rdx, %r12
movzbl (%rbx), %eax
cmpl $0x7b, %eax
je 0x2edc2
cmpl $0x7d, %eax
jne 0x2ede0
movl 0x10(%r12), %edx
testl %edx, %edx
js 0x2f0f0
leal 0x1(%rdx), %eax
movl %eax, 0x10(%r12)
leaq 0x18(%r12), %r14
leaq 0x10(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x2faef
movq 0x18(%r12), %r15
movl 0x10(%r13), %eax
decl %eax
cmpl $0xe, %eax
ja 0x2f0c9
leaq 0x544b2(%rip), %rcx # 0x83230
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movzbl 0x10(%rsp), %esi
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
leaq 0x60(%rsp), %rdx
movq %rax, (%rdx)
movb $0x0, 0x8(%rdx)
movw $0x0, 0x9(%rdx)
movl $0x20, 0xb(%rdx)
movb $0x1, 0xf(%rdx)
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x25d49
jmp 0x2f0c6
movq %rdi, %rsi
movq 0x18(%r12), %rdx
addq $0x2, %rsi
movq %rbx, %rdi
callq 0x2e43b
movq %rax, 0x18(%r12)
jmp 0x2f0cc
movq %r12, 0x30(%rsp)
movl $0x0, 0x38(%rsp)
cmpb $0x3a, %al
jne 0x2ee0c
movl 0x10(%r12), %eax
testl %eax, %eax
js 0x2f0f0
leal 0x1(%rax), %ecx
movl %ecx, 0x10(%r12)
movl %eax, 0x38(%rsp)
jmp 0x2ee1f
leaq 0x30(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2fb13
movq %rax, %rbx
cmpq %r14, %rbx
je 0x2f0fc
movzbl (%rbx), %eax
cmpl $0x3a, %eax
je 0x2eea1
cmpl $0x7d, %eax
jne 0x2f0fc
movl 0x38(%rsp), %edx
leaq 0x18(%r12), %r14
leaq 0x10(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x2faef
movq 0x18(%r12), %r15
movq %r15, 0x40(%rsp)
movups 0x20(%r12), %xmm0
movups %xmm0, 0x48(%rsp)
movq 0x30(%r12), %rax
movq %rax, 0x58(%rsp)
movl 0x10(%r13), %ecx
decl %ecx
cmpl $0xe, %ecx
ja 0x2f0c9
leaq 0x543e5(%rip), %rdx # 0x8326c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movl 0x10(%rsp), %esi
movq %r15, %rdi
callq 0x255e4
jmp 0x2f0c6
movl 0x38(%rsp), %esi
incq %rbx
movq %r12, %rdi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x2f1be
cmpq %r14, %rax
je 0x2eec7
movq %rax, %rbx
cmpb $0x7d, (%rax)
je 0x2f0cc
leaq 0x54b31(%rip), %rdi # 0x839ff
callq 0x254fc
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
addq %rdi, %rsi
movq %r15, %rdx
callq 0x2e43b
jmp 0x2f0c6
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r15, %rdi
callq 0x25a47
jmp 0x2f0c6
movq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x2e9f2
jmp 0x2f0c6
movq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x2584c
jmp 0x2f0c6
movsd 0x10(%rsp), %xmm0
movq %r15, %rdi
callq 0x2ab3e
jmp 0x2f0c6
movq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x259bb
jmp 0x2f0c6
movl 0x10(%rsp), %esi
movq %r15, %rdi
callq 0x257c7
jmp 0x2f0c6
movb 0x10(%rsp), %bpl
movq 0x10(%r15), %rax
leaq 0x1(%rax), %rsi
cmpq %rsi, 0x18(%r15)
jae 0x2ef81
movq (%r15), %rax
movq %r15, %rdi
callq *(%rax)
movq 0x10(%r15), %rax
leaq 0x1(%rax), %rsi
movq 0x8(%r15), %rcx
movq %rsi, 0x10(%r15)
movb %bpl, (%rcx,%rax)
jmp 0x2f0c9
fldt 0x10(%rsp)
fstpt (%rsp)
movabsq $-0x100000000, %rsi # imm = 0xFFFFFFFF00000000
movabsq $0x100000020000000, %rdx # imm = 0x100000020000000
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x2c082
jmp 0x2f0c6
movss 0x10(%rsp), %xmm0
movq %r15, %rdi
callq 0x2933a
jmp 0x2f0c6
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r15, %rdi
callq 0x25cb1
jmp 0x2f0c6
movq 0x20(%r12), %rax
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rcx
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %rsi
movaps %xmm0, (%rsi)
movl $0x0, 0x10(%rsi)
leaq 0x60(%rsp), %r13
movq %r15, (%r13)
movq %rax, 0x8(%r13)
movups 0x28(%r12), %xmm0
movups %xmm0, 0x10(%r13)
movq %r13, %rdx
callq *%rcx
movq (%r13), %r15
jmp 0x2f0c9
movq 0x10(%rsp), %rsi
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
leaq 0x60(%rsp), %rdx
movq %rax, (%rdx)
movb $0x0, 0x8(%rdx)
movw $0x0, 0x9(%rdx)
movl $0x20, 0xb(%rdx)
movb $0x1, 0xf(%rdx)
movq %r15, %rdi
callq 0x2ea2b
jmp 0x2f0c6
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rcx
xorps %xmm0, %xmm0
leaq 0x80(%rsp), %rsi
movaps %xmm0, (%rsi)
movl $0x0, 0x10(%rsi)
movups 0x48(%rsp), %xmm0
leaq 0x60(%rsp), %r12
movq %r15, (%r12)
movups %xmm0, 0x8(%r12)
movq %rax, 0x18(%r12)
movq %r12, %rdx
callq *%rcx
movq (%r12), %r15
jmp 0x2f0c9
movzbl 0x10(%rsp), %esi
leaq 0x40(%rsp), %rdi
callq 0x25572
jmp 0x2f0c6
movq 0x10(%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0x255ac
movq %rax, %r15
movq %r15, (%r14)
incq %rbx
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x548fe(%rip), %rdi # 0x839e9
callq 0x254fc
leaq 0x5493e(%rip), %rdi # 0x83a35
callq 0x254fc
leaq 0x54915(%rip), %rdi # 0x83a18
callq 0x254fc
|
_ZN3fmt3v106detail23parse_replacement_fieldIcRZNS1_10vformat_toIcEEvRNS1_6bufferIT_EENS0_17basic_string_viewIS5_EENS1_12vformat_argsIS5_E4typeENS1_10locale_refEE14format_handlerEEPKS5_SH_SH_OT0_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r14, rsi
lea rbx, [rdi+1]
cmp rbx, rsi
jz loc_2F0E4
mov r12, rdx
movzx eax, byte ptr [rbx]
cmp eax, 7Bh ; '{'
jz loc_2EDC2
cmp eax, 7Dh ; '}'
jnz loc_2EDE0
mov edx, [r12+10h]
test edx, edx
js loc_2F0F0
lea eax, [rdx+1]
mov [r12+10h], eax
lea r14, [r12+18h]
lea r13, [rsp+0C8h+var_B8]
mov rdi, r13
mov rsi, r14
call _ZN3fmt3v106detail7get_argINS0_20basic_format_contextINS0_8appenderEcEEiEEDTcldtfp_3argfp0_EERT_T0_
mov r15, [r12+18h]
mov eax, [r13+10h]
dec eax; switch 15 cases
cmp eax, 0Eh
ja def_2ED85; jumptable 000000000002ED85 default case
lea rcx, jpt_2ED85
movsxd rax, ds:(jpt_2ED85 - 83230h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_2ED87:
movzx esi, byte ptr [rsp+0C8h+var_B8]; jumptable 000000000002ED85 case 7
mov rax, 0FFFFFFFF00000000h
lea rdx, [rsp+0C8h+var_68]
mov [rdx], rax
mov byte ptr [rdx+8], 0
mov word ptr [rdx+9], 0
mov dword ptr [rdx+0Bh], 20h ; ' '
mov byte ptr [rdx+0Fh], 1
mov rdi, r15
xor ecx, ecx
call _ZN3fmt3v106detail5writeIcNS0_8appenderEbTnNSt9enable_ifIXsr3std7is_sameIT1_bEE5valueEiE4typeELi0EEET0_S8_S5_RKNS0_12format_specsIT_EENS1_10locale_refE
jmp loc_2F0C6
loc_2EDC2:
mov rsi, rdi
mov rdx, [r12+18h]
add rsi, 2
mov rdi, rbx
call _ZN3fmt3v106detail17copy_str_noinlineIcPKcNS0_8appenderEEET1_T0_S7_S6_; fmt::v10::detail::copy_str_noinline<char,char const*,fmt::v10::appender>(char const*,char const*,fmt::v10::appender)
mov [r12+18h], rax
jmp loc_2F0CC
loc_2EDE0:
mov [rsp+0C8h+var_98], r12
mov dword ptr [rsp+0C8h+var_90], 0
cmp al, 3Ah ; ':'
jnz short loc_2EE0C
mov eax, [r12+10h]
test eax, eax
js loc_2F0F0
lea ecx, [rax+1]
mov [r12+10h], ecx
mov dword ptr [rsp+0C8h+var_90], eax
jmp short loc_2EE1F
loc_2EE0C:
lea rdx, [rsp+0C8h+var_98]
mov rdi, rbx; char *
mov rsi, r14; char *
call _ZN3fmt3v106detail15do_parse_arg_idIcRZNS1_23parse_replacement_fieldIcRZNS1_10vformat_toIcEEvRNS1_6bufferIT_EENS0_17basic_string_viewIS6_EENS1_12vformat_argsIS6_E4typeENS1_10locale_refEE14format_handlerEEPKS6_SI_SI_OT0_E10id_adapterEESI_SI_SI_SK_; fmt::v10::detail::do_parse_arg_id<char,fmt::v10::detail::parse_replacement_field<char,fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char> &,fmt::v10::basic_string_view<char>,fmt::v10::detail::vformat_args<char>::type,fmt::v10::detail::locale_ref)::format_handler &>(char const*,char const*,fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char> &,fmt::v10::basic_string_view<char>,fmt::v10::detail::vformat_args<char>::type,fmt::v10::detail::locale_ref)::format_handler &)::id_adapter &>(char const*,char const*,fmt::v10::detail::parse_replacement_field<char,fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char> &,fmt::v10::basic_string_view<char>,fmt::v10::detail::vformat_args<char>::type,fmt::v10::detail::locale_ref)::format_handler &>(char const*,char const*,fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char> &,fmt::v10::basic_string_view<char>,fmt::v10::detail::vformat_args<char>::type,fmt::v10::detail::locale_ref)::format_handler &)::id_adapter)
mov rbx, rax
loc_2EE1F:
cmp rbx, r14
jz loc_2F0FC
movzx eax, byte ptr [rbx]
cmp eax, 3Ah ; ':'
jz short loc_2EEA1
cmp eax, 7Dh ; '}'
jnz loc_2F0FC
mov edx, dword ptr [rsp+0C8h+var_90]
lea r14, [r12+18h]
lea r13, [rsp+0C8h+var_B8]
mov rdi, r13
mov rsi, r14
call _ZN3fmt3v106detail7get_argINS0_20basic_format_contextINS0_8appenderEcEEiEEDTcldtfp_3argfp0_EERT_T0_
mov r15, [r12+18h]
mov [rsp+0C8h+var_88], r15
movups xmm0, xmmword ptr [r12+20h]
movups [rsp+0C8h+var_80], xmm0
mov rax, [r12+30h]
mov [rsp+0C8h+var_70], rax
mov ecx, [r13+10h]
dec ecx; switch 15 cases
cmp ecx, 0Eh
ja def_2ED85; jumptable 000000000002ED85 default case
lea rdx, jpt_2EE8E
movsxd rcx, ds:(jpt_2EE8E - 8326Ch)[rdx+rcx*4]
add rcx, rdx
jmp rcx; switch jump
loc_2EE90:
mov esi, dword ptr [rsp+0C8h+var_B8]; jumptable 000000000002ED85 case 1
mov rdi, r15
call _ZN3fmt3v106detail5writeIcNS0_8appenderEiTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_
jmp loc_2F0C6
loc_2EEA1:
mov esi, dword ptr [rsp+0C8h+var_90]; char *
inc rbx
mov rdi, r12
mov rdx, rbx
mov rcx, r14
call _ZZN3fmt3v106detail10vformat_toIcEEvRNS1_6bufferIT_EENS0_17basic_string_viewIS4_EENS1_12vformat_argsIS4_E4typeENS1_10locale_refEEN14format_handler15on_format_specsEiPKcSF_; fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char> &,fmt::v10::basic_string_view<char>,fmt::v10::detail::vformat_args<char>::type,fmt::v10::detail::locale_ref)::format_handler::on_format_specs(int,char const*,char const*)
cmp rax, r14
jz short loc_2EEC7
mov rbx, rax
cmp byte ptr [rax], 7Dh ; '}'
jz loc_2F0CC
loc_2EEC7:
lea rdi, aUnknownFormatS; "unknown format specifier"
call _ZN3fmt3v106detail18throw_format_errorEPKc; fmt::v10::detail::throw_format_error(char const*)
loc_2EED3:
mov rdi, [rsp+0C8h+var_B8]; jumptable 000000000002ED85 case 13
mov rsi, [rsp+18h]
add rsi, rdi
mov rdx, r15
call _ZN3fmt3v106detail17copy_str_noinlineIcPKcNS0_8appenderEEET1_T0_S7_S6_; fmt::v10::detail::copy_str_noinline<char,char const*,fmt::v10::appender>(char const*,char const*,fmt::v10::appender)
jmp loc_2F0C6
loc_2EEED:
mov rsi, [rsp+0C8h+var_B8]; jumptable 000000000002ED85 case 5
mov rdx, [rsp+18h]
mov rdi, r15
call _ZN3fmt3v106detail5writeIcNS0_8appenderEnTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_
jmp loc_2F0C6
loc_2EF04:
mov rsi, [rsp+0C8h+var_B8]; jumptable 000000000002ED85 case 12
mov rdi, r15
call _ZN3fmt3v106detail5writeIcNS0_8appenderEEET0_S4_PKT_; fmt::v10::detail::write<char,fmt::v10::appender>(fmt::v10::appender,char const*)
jmp loc_2F0C6
loc_2EF16:
mov rsi, [rsp+0C8h+var_B8]; jumptable 000000000002ED85 case 3
mov rdi, r15
call _ZN3fmt3v106detail5writeIcNS0_8appenderExTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_
jmp loc_2F0C6
loc_2EF28:
movsd xmm0, [rsp+0C8h+var_B8]; jumptable 000000000002ED85 case 10
mov rdi, r15; int
call _ZN3fmt3v106detail5writeIcNS0_8appenderEdTnNSt9enable_ifIXsr13is_fast_floatIT1_EE5valueEiE4typeELi0EEET0_S8_S5_
jmp loc_2F0C6
loc_2EF3B:
mov rsi, [rsp+0C8h+var_B8]; jumptable 000000000002ED85 case 4
mov rdi, r15
call _ZN3fmt3v106detail5writeIcNS0_8appenderEyTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_
jmp loc_2F0C6
loc_2EF4D:
mov esi, dword ptr [rsp+0C8h+var_B8]; jumptable 000000000002ED85 case 2
mov rdi, r15
call _ZN3fmt3v106detail5writeIcNS0_8appenderEjTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_
jmp loc_2F0C6
loc_2EF5E:
mov bpl, byte ptr [rsp+0C8h+var_B8]; jumptable 000000000002ED85 case 8
mov rax, [r15+10h]
lea rsi, [rax+1]
cmp [r15+18h], rsi
jnb short loc_2EF81
mov rax, [r15]
mov rdi, r15
call qword ptr [rax]
mov rax, [r15+10h]
lea rsi, [rax+1]
loc_2EF81:
mov rcx, [r15+8]
mov [r15+10h], rsi
mov [rcx+rax], bpl
jmp def_2ED85; jumptable 000000000002ED85 default case
loc_2EF92:
fld tbyte ptr [rsp+0C8h+var_B8]; jumptable 000000000002ED85 case 11
fstp [rsp+0C8h+var_C8]; _TBYTE
mov rsi, 0FFFFFFFF00000000h
mov rdx, 100000020000000h
mov rdi, r15; int
xor ecx, ecx
call _ZN3fmt3v106detail11write_floatIcNS0_8appenderEeEET0_S4_T1_NS0_12format_specsIT_EENS1_10locale_refE; fmt::v10::detail::write_float<char,fmt::v10::appender,long double>(fmt::v10::appender,long double,fmt::v10::format_specs<char>,fmt::v10::detail::locale_ref)
jmp loc_2F0C6
loc_2EFBC:
movss xmm0, dword ptr [rsp+0C8h+var_B8]; jumptable 000000000002ED85 case 9
mov rdi, r15; int
call _ZN3fmt3v106detail5writeIcNS0_8appenderEfTnNSt9enable_ifIXsr13is_fast_floatIT1_EE5valueEiE4typeELi0EEET0_S8_S5_
jmp loc_2F0C6
loc_2EFCF:
mov rsi, [rsp+0C8h+var_B8]; jumptable 000000000002ED85 case 6
mov rdx, [rsp+18h]
mov rdi, r15
call _ZN3fmt3v106detail5writeIcNS0_8appenderEoTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_
jmp loc_2F0C6
loc_2EFE6:
mov rax, [r12+20h]; jumptable 000000000002ED85 case 15
mov rdi, [rsp+0C8h+var_B8]
mov rcx, [rsp+18h]
xorps xmm0, xmm0
lea rsi, [rsp+0C8h+var_88]
movaps xmmword ptr [rsi], xmm0
mov dword ptr [rsi+10h], 0
lea r13, [rsp+0C8h+var_68]
mov [r13+0], r15
mov [r13+8], rax
movups xmm0, xmmword ptr [r12+28h]
movups xmmword ptr [r13+10h], xmm0
mov rdx, r13
call rcx
mov r15, [r13+0]
jmp def_2ED85; jumptable 000000000002ED85 default case
loc_2F02D:
mov rsi, [rsp+0C8h+var_B8]; jumptable 000000000002ED85 case 14
mov rax, 0FFFFFFFF00000000h
lea rdx, [rsp+0C8h+var_68]
mov [rdx], rax
mov byte ptr [rdx+8], 0
mov word ptr [rdx+9], 0
mov dword ptr [rdx+0Bh], 20h ; ' '
mov byte ptr [rdx+0Fh], 1
mov rdi, r15
call _ZN3fmt3v106detail9write_ptrIcNS0_8appenderEmEET0_S4_T1_PKNS0_12format_specsIT_EE; fmt::v10::detail::write_ptr<char,fmt::v10::appender,ulong>(fmt::v10::appender,ulong,fmt::v10::format_specs<char> const*)
jmp short loc_2F0C6
loc_2F063:
mov rdi, [rsp+0C8h+var_B8]; jumptable 000000000002EE8E case 15
mov rcx, [rsp+18h]
xorps xmm0, xmm0
lea rsi, [rsp+0C8h+var_48]
movaps xmmword ptr [rsi], xmm0
mov dword ptr [rsi+10h], 0
movups xmm0, [rsp+0C8h+var_80]
lea r12, [rsp+0C8h+var_68]
mov [r12], r15
movups xmmword ptr [r12+8], xmm0
mov [r12+18h], rax
mov rdx, r12
call rcx
mov r15, [r12]
jmp short def_2ED85; jumptable 000000000002ED85 default case
loc_2F0A6:
movzx esi, byte ptr [rsp+0C8h+var_B8]; jumptable 000000000002EE8E case 7
lea rdi, [rsp+0C8h+var_88]
call _ZN3fmt3v106detail21default_arg_formatterIcEclIbEENS0_8appenderET_; fmt::v10::detail::default_arg_formatter<char>::operator()<bool>(bool)
jmp short loc_2F0C6
loc_2F0B7:
mov rsi, [rsp+0C8h+var_B8]; jumptable 000000000002EE8E case 14
lea rdi, [rsp+0C8h+var_88]
call _ZN3fmt3v106detail21default_arg_formatterIcEclIPKvEENS0_8appenderET_; fmt::v10::detail::default_arg_formatter<char>::operator()<void const*>(void const*)
loc_2F0C6:
mov r15, rax
def_2ED85:
mov [r14], r15; jumptable 000000000002ED85 default case
loc_2F0CC:
inc rbx
mov rax, rbx
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_2F0E4:
lea rdi, aInvalidFormatS_0; "invalid format string"
call _ZN3fmt3v106detail18throw_format_errorEPKc; fmt::v10::detail::throw_format_error(char const*)
loc_2F0F0:
lea rdi, aCannotSwitchFr; "cannot switch from manual to automatic "...
call _ZN3fmt3v106detail18throw_format_errorEPKc; fmt::v10::detail::throw_format_error(char const*)
loc_2F0FC:
lea rdi, aMissingInForma; "missing '}' in format string"
call _ZN3fmt3v106detail18throw_format_errorEPKc; fmt::v10::detail::throw_format_error(char const*)
|
unsigned __int8 * fmt::v10::detail::parse_replacement_field<char,void fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char> &,fmt::v10::basic_string_view<char>,fmt::v10::detail::vformat_args<char>::type,fmt::v10::detail::locale_ref)::format_handler &>(
long long a1,
const char *a2,
long long a3)
{
const char *v3; // rbx
int v5; // eax
long long v6; // rdx
_QWORD *v7; // r14
long long v8; // r8
long long v9; // r9
_QWORD *v10; // r15
long long v11; // rax
int v12; // eax
int v13; // eax
long long v14; // rax
const char *v15; // rax
char v16; // bp
long long v17; // rax
long long v18; // rsi
long long v19; // rcx
long long v20; // rax
long double v22; // [rsp+10h] [rbp-B8h] BYREF
int v23; // [rsp+20h] [rbp-A8h]
long long v24; // [rsp+30h] [rbp-98h]
char *v25; // [rsp+38h] [rbp-90h]
_BYTE v26[24]; // [rsp+40h] [rbp-88h] BYREF
long long v27; // [rsp+58h] [rbp-70h]
unsigned long long v28; // [rsp+60h] [rbp-68h] BYREF
_BYTE v29[24]; // [rsp+68h] [rbp-60h]
__int128 v30; // [rsp+80h] [rbp-48h] BYREF
int v31; // [rsp+90h] [rbp-38h]
v3 = (const char *)(a1 + 1);
if ( (const char *)(a1 + 1) == a2 )
fmt::v10::detail::throw_format_error((fmt::v10::detail *)"invalid format string", a2);
v5 = *(unsigned __int8 *)v3;
if ( v5 == 123 )
{
*(_QWORD *)(a3 + 24) = fmt::v10::detail::copy_str_noinline<char,char const*,fmt::v10::appender>(
a1 + 1,
a1 + 2,
*(_QWORD *)(a3 + 24));
}
else
{
if ( v5 == 125 )
{
v6 = *(unsigned int *)(a3 + 16);
if ( (int)v6 >= 0 )
{
*(_DWORD *)(a3 + 16) = v6 + 1;
v7 = (_QWORD *)(a3 + 24);
fmt::v10::detail::get_arg<fmt::v10::basic_format_context<fmt::v10::appender,char>,int>(&v22, a3 + 24, v6);
v10 = *(_QWORD **)(a3 + 24);
switch ( v23 )
{
case 1:
goto LABEL_16;
case 2:
goto LABEL_26;
case 3:
goto LABEL_23;
case 4:
goto LABEL_25;
case 5:
goto LABEL_21;
case 6:
goto LABEL_32;
case 7:
v28 = 0xFFFFFFFF00000000LL;
v29[0] = 0;
*(_WORD *)&v29[1] = 0;
*(_DWORD *)&v29[3] = 32;
v29[7] = 1;
v11 = ZN3fmt3v106detail5writeIcNS0_8appenderEbTnNSt9enable_ifIXsr3std7is_sameIT1_bEE5valueEiE4typeELi0EEET0_S8_S5_RKNS0_12format_specsIT_EENS1_10locale_refE(
(long long)v10,
LOBYTE(v22),
(long long)&v28,
0LL,
v8,
v9);
goto LABEL_38;
case 8:
goto LABEL_27;
case 9:
goto LABEL_31;
case 10:
goto LABEL_24;
case 11:
goto LABEL_30;
case 12:
goto LABEL_22;
case 13:
goto LABEL_20;
case 14:
v28 = 0xFFFFFFFF00000000LL;
v29[0] = 0;
*(_WORD *)&v29[1] = 0;
*(_DWORD *)&v29[3] = 32;
v29[7] = 1;
v11 = fmt::v10::detail::write_ptr<char,fmt::v10::appender,unsigned long>(
(long long)v10,
*(unsigned long long *)&v22,
(long long)&v28);
goto LABEL_38;
case 15:
v20 = *(_QWORD *)(a3 + 32);
memset(v26, 0, 20);
v28 = (unsigned long long)v10;
*(_QWORD *)v29 = v20;
*(_OWORD *)&v29[8] = *(_OWORD *)(a3 + 40);
(*((void ( **)(_QWORD, _BYTE *, unsigned long long *))&v22 + 1))(*(_QWORD *)&v22, v26, &v28);
v10 = (_QWORD *)v28;
break;
default:
break;
}
LABEL_39:
*v7 = v10;
return (unsigned __int8 *)(v3 + 1);
}
LABEL_42:
fmt::v10::detail::throw_format_error(
(fmt::v10::detail *)"cannot switch from manual to automatic argument indexing",
a2);
}
v24 = a3;
LODWORD(v25) = 0;
if ( (_BYTE)v5 == 58 )
{
v12 = *(_DWORD *)(a3 + 16);
if ( v12 < 0 )
goto LABEL_42;
*(_DWORD *)(a3 + 16) = v12 + 1;
LODWORD(v25) = v12;
}
else
{
v3 = (const char *)fmt::v10::detail::do_parse_arg_id<char,char const* fmt::v10::detail::parse_replacement_field<char,void fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char> &,fmt::v10::basic_string_view<char>,fmt::v10::detail::vformat_args<char>::type,fmt::v10::detail::locale_ref)::format_handler &>(char const*,char const*,void fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char> &,fmt::v10::basic_string_view<char>,fmt::v10::detail::vformat_args<char>::type,fmt::v10::detail::locale_ref)::format_handler &)::id_adapter &>((char *)(a1 + 1));
}
if ( v3 == a2 )
LABEL_43:
fmt::v10::detail::throw_format_error((fmt::v10::detail *)"missing '}' in format string", a2);
v13 = *(unsigned __int8 *)v3;
if ( v13 != 58 )
{
if ( v13 == 125 )
{
v7 = (_QWORD *)(a3 + 24);
fmt::v10::detail::get_arg<fmt::v10::basic_format_context<fmt::v10::appender,char>,int>(
&v22,
a3 + 24,
(unsigned int)v25);
v10 = *(_QWORD **)(a3 + 24);
*(_QWORD *)v26 = v10;
*(_OWORD *)&v26[8] = *(_OWORD *)(a3 + 32);
v14 = *(_QWORD *)(a3 + 48);
v27 = v14;
switch ( v23 )
{
case 1:
LABEL_16:
v11 = ZN3fmt3v106detail5writeIcNS0_8appenderEiTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_(
v10,
SLODWORD(v22));
goto LABEL_38;
case 2:
LABEL_26:
v11 = ZN3fmt3v106detail5writeIcNS0_8appenderEjTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_(
v10,
LODWORD(v22));
goto LABEL_38;
case 3:
LABEL_23:
v11 = ZN3fmt3v106detail5writeIcNS0_8appenderExTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_(
v10,
*(long long *)&v22);
goto LABEL_38;
case 4:
LABEL_25:
v11 = ZN3fmt3v106detail5writeIcNS0_8appenderEyTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_(
v10,
*(unsigned long long *)&v22);
goto LABEL_38;
case 5:
LABEL_21:
v11 = ZN3fmt3v106detail5writeIcNS0_8appenderEnTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_(
v10,
*(unsigned long long *)&v22,
*((long long *)&v22 + 1));
goto LABEL_38;
case 6:
LABEL_32:
v11 = ZN3fmt3v106detail5writeIcNS0_8appenderEoTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_(
v10,
*(unsigned long long *)&v22,
*((unsigned long long *)&v22 + 1));
goto LABEL_38;
case 7:
v11 = fmt::v10::detail::default_arg_formatter<char>::operator()<bool>((long long *)v26, LOBYTE(v22));
goto LABEL_38;
case 8:
LABEL_27:
v16 = LOBYTE(v22);
v17 = v10[2];
v18 = v17 + 1;
if ( v10[3] < (unsigned long long)(v17 + 1) )
{
(*(void ( **)(_QWORD *))*v10)(v10);
v17 = v10[2];
v18 = v17 + 1;
}
v19 = v10[1];
v10[2] = v18;
*(_BYTE *)(v19 + v17) = v16;
goto LABEL_39;
case 9:
LABEL_31:
v11 = ZN3fmt3v106detail5writeIcNS0_8appenderEfTnNSt9enable_ifIXsr13is_fast_floatIT1_EE5valueEiE4typeELi0EEET0_S8_S5_((int)v10);
goto LABEL_38;
case 10:
LABEL_24:
v11 = ZN3fmt3v106detail5writeIcNS0_8appenderEdTnNSt9enable_ifIXsr13is_fast_floatIT1_EE5valueEiE4typeELi0EEET0_S8_S5_((int)v10);
goto LABEL_38;
case 11:
LABEL_30:
v11 = fmt::v10::detail::write_float<char,fmt::v10::appender,long double>(
v10,
(const char *)0xFFFFFFFF00000000LL,
0x100000020000000LL,
v22);
goto LABEL_38;
case 12:
LABEL_22:
v11 = fmt::v10::detail::write<char,fmt::v10::appender>((long long)v10, *(long long *)&v22);
goto LABEL_38;
case 13:
LABEL_20:
v11 = fmt::v10::detail::copy_str_noinline<char,char const*,fmt::v10::appender>(
*(long long *)&v22,
*(_QWORD *)&v22 + *((_QWORD *)&v22 + 1),
(long long)v10);
goto LABEL_38;
case 14:
v11 = fmt::v10::detail::default_arg_formatter<char>::operator()<void const*>(
(long long *)v26,
*(long long *)&v22);
LABEL_38:
v10 = (_QWORD *)v11;
break;
case 15:
v30 = 0LL;
v31 = 0;
v28 = (unsigned long long)v10;
*(_OWORD *)v29 = *(_OWORD *)&v26[8];
*(_QWORD *)&v29[16] = v14;
(*((void ( **)(_QWORD, __int128 *, unsigned long long *))&v22 + 1))(*(_QWORD *)&v22, &v30, &v28);
v10 = (_QWORD *)v28;
break;
default:
goto LABEL_39;
}
goto LABEL_39;
}
goto LABEL_43;
}
v15 = (const char *)fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char> &,fmt::v10::basic_string_view<char>,fmt::v10::detail::vformat_args<char>::type,fmt::v10::detail::locale_ref)::format_handler::on_format_specs(
a3,
(unsigned int)v25,
v3 + 1,
a2);
if ( v15 == a2 || (v3 = v15, *v15 != 125) )
fmt::v10::detail::throw_format_error(
(fmt::v10::detail *)"unknown format specifier",
(const char *)(unsigned int)v25);
}
return (unsigned __int8 *)(v3 + 1);
}
|
parse_replacement_field<char,fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char>&,fmt::v10::basic_string_view<char>,fmt::v10::detail::vformat_args<char>::type,fmt::v10::detail::locale_ref)::format_handler&>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R14,RSI
LEA RBX,[RDI + 0x1]
CMP RBX,RSI
JZ 0x0012f0e4
MOV R12,RDX
MOVZX EAX,byte ptr [RBX]
CMP EAX,0x7b
JZ 0x0012edc2
CMP EAX,0x7d
JNZ 0x0012ede0
MOV EDX,dword ptr [R12 + 0x10]
TEST EDX,EDX
JS 0x0012f0f0
LEA EAX,[RDX + 0x1]
MOV dword ptr [R12 + 0x10],EAX
LEA R14,[R12 + 0x18]
LEA R13,[RSP + 0x10]
MOV RDI,R13
MOV RSI,R14
CALL 0x0012faef
MOV R15,qword ptr [R12 + 0x18]
MOV EAX,dword ptr [R13 + 0x10]
DEC EAX
CMP EAX,0xe
JA 0x0012f0c9
LEA RCX,[0x183230]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_7:
MOVZX ESI,byte ptr [RSP + 0x10]
MOV RAX,-0x100000000
LEA RDX,[RSP + 0x60]
MOV qword ptr [RDX],RAX
MOV byte ptr [RDX + 0x8],0x0
MOV word ptr [RDX + 0x9],0x0
MOV dword ptr [RDX + 0xb],0x20
MOV byte ptr [RDX + 0xf],0x1
MOV RDI,R15
XOR ECX,ECX
CALL 0x00125d49
JMP 0x0012f0c6
LAB_0012edc2:
MOV RSI,RDI
MOV RDX,qword ptr [R12 + 0x18]
ADD RSI,0x2
MOV RDI,RBX
CALL 0x0012e43b
MOV qword ptr [R12 + 0x18],RAX
JMP 0x0012f0cc
LAB_0012ede0:
MOV qword ptr [RSP + 0x30],R12
MOV dword ptr [RSP + 0x38],0x0
CMP AL,0x3a
JNZ 0x0012ee0c
MOV EAX,dword ptr [R12 + 0x10]
TEST EAX,EAX
JS 0x0012f0f0
LEA ECX,[RAX + 0x1]
MOV dword ptr [R12 + 0x10],ECX
MOV dword ptr [RSP + 0x38],EAX
JMP 0x0012ee1f
LAB_0012ee0c:
LEA RDX,[RSP + 0x30]
MOV RDI,RBX
MOV RSI,R14
CALL 0x0012fb13
MOV RBX,RAX
LAB_0012ee1f:
CMP RBX,R14
JZ 0x0012f0fc
MOVZX EAX,byte ptr [RBX]
CMP EAX,0x3a
JZ 0x0012eea1
CMP EAX,0x7d
JNZ 0x0012f0fc
MOV EDX,dword ptr [RSP + 0x38]
LEA R14,[R12 + 0x18]
LEA R13,[RSP + 0x10]
MOV RDI,R13
MOV RSI,R14
CALL 0x0012faef
MOV R15,qword ptr [R12 + 0x18]
MOV qword ptr [RSP + 0x40],R15
MOVUPS XMM0,xmmword ptr [R12 + 0x20]
MOVUPS xmmword ptr [RSP + 0x48],XMM0
MOV RAX,qword ptr [R12 + 0x30]
MOV qword ptr [RSP + 0x58],RAX
MOV ECX,dword ptr [R13 + 0x10]
DEC ECX
CMP ECX,0xe
JA 0x0012f0c9
LEA RDX,[0x18326c]
MOVSXD RCX,dword ptr [RDX + RCX*0x4]
ADD RCX,RDX
switchD:
JMP RCX
caseD_1:
MOV ESI,dword ptr [RSP + 0x10]
MOV RDI,R15
CALL 0x001255e4
JMP 0x0012f0c6
LAB_0012eea1:
MOV ESI,dword ptr [RSP + 0x38]
INC RBX
MOV RDI,R12
MOV RDX,RBX
MOV RCX,R14
CALL 0x0012f1be
CMP RAX,R14
JZ 0x0012eec7
MOV RBX,RAX
CMP byte ptr [RAX],0x7d
JZ 0x0012f0cc
LAB_0012eec7:
LEA RDI,[0x1839ff]
CALL 0x001254fc
caseD_d:
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x18]
ADD RSI,RDI
MOV RDX,R15
CALL 0x0012e43b
JMP 0x0012f0c6
caseD_5:
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x18]
MOV RDI,R15
CALL 0x00125a47
JMP 0x0012f0c6
caseD_c:
MOV RSI,qword ptr [RSP + 0x10]
MOV RDI,R15
CALL 0x0012e9f2
JMP 0x0012f0c6
caseD_3:
MOV RSI,qword ptr [RSP + 0x10]
MOV RDI,R15
CALL 0x0012584c
JMP 0x0012f0c6
caseD_a:
MOVSD XMM0,qword ptr [RSP + 0x10]
MOV RDI,R15
CALL 0x0012ab3e
JMP 0x0012f0c6
caseD_4:
MOV RSI,qword ptr [RSP + 0x10]
MOV RDI,R15
CALL 0x001259bb
JMP 0x0012f0c6
caseD_2:
MOV ESI,dword ptr [RSP + 0x10]
MOV RDI,R15
CALL 0x001257c7
JMP 0x0012f0c6
caseD_8:
MOV BPL,byte ptr [RSP + 0x10]
MOV RAX,qword ptr [R15 + 0x10]
LEA RSI,[RAX + 0x1]
CMP qword ptr [R15 + 0x18],RSI
JNC 0x0012ef81
MOV RAX,qword ptr [R15]
MOV RDI,R15
CALL qword ptr [RAX]
MOV RAX,qword ptr [R15 + 0x10]
LEA RSI,[RAX + 0x1]
LAB_0012ef81:
MOV RCX,qword ptr [R15 + 0x8]
MOV qword ptr [R15 + 0x10],RSI
MOV byte ptr [RCX + RAX*0x1],BPL
JMP 0x0012f0c9
caseD_b:
FLD tword ptr [RSP + 0x10]
FSTP tword ptr [RSP]
MOV RSI,-0x100000000
MOV RDX,0x100000020000000
MOV RDI,R15
XOR ECX,ECX
CALL 0x0012c082
JMP 0x0012f0c6
caseD_9:
MOVSS XMM0,dword ptr [RSP + 0x10]
MOV RDI,R15
CALL 0x0012933a
JMP 0x0012f0c6
caseD_6:
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x18]
MOV RDI,R15
CALL 0x00125cb1
JMP 0x0012f0c6
caseD_f:
MOV RAX,qword ptr [R12 + 0x20]
MOV RDI,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
XORPS XMM0,XMM0
LEA RSI,[RSP + 0x40]
MOVAPS xmmword ptr [RSI],XMM0
MOV dword ptr [RSI + 0x10],0x0
LEA R13,[RSP + 0x60]
MOV qword ptr [R13],R15
MOV qword ptr [R13 + 0x8],RAX
MOVUPS XMM0,xmmword ptr [R12 + 0x28]
MOVUPS xmmword ptr [R13 + 0x10],XMM0
MOV RDX,R13
CALL RCX
MOV R15,qword ptr [R13]
JMP 0x0012f0c9
caseD_e:
MOV RSI,qword ptr [RSP + 0x10]
MOV RAX,-0x100000000
LEA RDX,[RSP + 0x60]
MOV qword ptr [RDX],RAX
MOV byte ptr [RDX + 0x8],0x0
MOV word ptr [RDX + 0x9],0x0
MOV dword ptr [RDX + 0xb],0x20
MOV byte ptr [RDX + 0xf],0x1
MOV RDI,R15
CALL 0x0012ea2b
JMP 0x0012f0c6
caseD_f:
MOV RDI,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
XORPS XMM0,XMM0
LEA RSI,[RSP + 0x80]
MOVAPS xmmword ptr [RSI],XMM0
MOV dword ptr [RSI + 0x10],0x0
MOVUPS XMM0,xmmword ptr [RSP + 0x48]
LEA R12,[RSP + 0x60]
MOV qword ptr [R12],R15
MOVUPS xmmword ptr [R12 + 0x8],XMM0
MOV qword ptr [R12 + 0x18],RAX
MOV RDX,R12
CALL RCX
MOV R15,qword ptr [R12]
JMP 0x0012f0c9
caseD_7:
MOVZX ESI,byte ptr [RSP + 0x10]
LEA RDI,[RSP + 0x40]
CALL 0x00125572
JMP 0x0012f0c6
caseD_e:
MOV RSI,qword ptr [RSP + 0x10]
LEA RDI,[RSP + 0x40]
CALL 0x001255ac
LAB_0012f0c6:
MOV R15,RAX
default:
MOV qword ptr [R14],R15
LAB_0012f0cc:
INC RBX
MOV RAX,RBX
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0012f0e4:
LEA RDI,[0x1839e9]
CALL 0x001254fc
LAB_0012f0f0:
LEA RDI,[0x183a35]
CALL 0x001254fc
LAB_0012f0fc:
LEA RDI,[0x183a18]
CALL 0x001254fc
|
/* char const* fmt::v10::detail::parse_replacement_field<char,
fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char>&,
fmt::v10::basic_string_view<char>, fmt::v10::detail::vformat_args<char>::type,
fmt::v10::detail::locale_ref)::format_handler&>(char const*, char const*,
fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char>&,
fmt::v10::basic_string_view<char>, fmt::v10::detail::vformat_args<char>::type,
fmt::v10::detail::locale_ref)::format_handler&) */
char * fmt::v10::detail::
parse_replacement_field<char,fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char>&,fmt::v10::basic_string_view<char>,fmt::v10::detail::vformat_args<char>::type,fmt::v10::detail::locale_ref)::format_handler&>
(char *param_1,char *param_2,format_handler *param_3)
{
char cVar1;
uint uVar2;
int8 uVar3;
char *pcVar4;
long lVar5;
ulong uVar6;
int iVar7;
int8 in_R8;
int8 in_R9;
int8 *puVar8;
int4 local_b8;
int4 uStack_b4;
int2 uStack_b0;
int6 uStack_ae;
int4 local_a8;
format_handler *local_98;
uint local_90;
int8 *local_88;
int8 uStack_80;
int4 local_78;
int4 uStack_74;
int8 local_70;
int8 *local_68;
int8 local_60;
int4 uStack_58;
int4 uStack_54;
int8 uStack_50;
int8 local_48;
int8 uStack_40;
int4 local_38;
pcVar4 = param_1 + 1;
if (pcVar4 == param_2) {
/* WARNING: Subroutine does not return */
throw_format_error("invalid format string");
}
cVar1 = *pcVar4;
if (cVar1 == '{') {
uVar3 = copy_str_noinline<char,char_const*,fmt::v10::appender>
(pcVar4,param_1 + 2,*(int8 *)(param_3 + 0x18));
*(int8 *)(param_3 + 0x18) = uVar3;
goto LAB_0012f0cc;
}
iVar7 = (int)param_3;
if (cVar1 == '}') {
if (*(int *)(param_3 + 0x10) < 0) {
LAB_0012f0f0:
/* WARNING: Subroutine does not return */
throw_format_error("cannot switch from manual to automatic argument indexing");
}
*(int *)(param_3 + 0x10) = *(int *)(param_3 + 0x10) + 1;
get_arg<fmt::v10::basic_format_context<fmt::v10::appender,char>,int>
((basic_format_context *)&local_b8,iVar7 + 0x18);
puVar8 = *(int8 **)(param_3 + 0x18);
local_68 = puVar8;
switch(local_a8) {
case 1:
switchD_0012ed85_caseD_1:
local_68 = (int8 *)
_ZN3fmt3v106detail5writeIcNS0_8appenderEiTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_
(puVar8,local_b8);
break;
case 2:
switchD_0012ed85_caseD_2:
local_68 = (int8 *)
_ZN3fmt3v106detail5writeIcNS0_8appenderEjTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_
(puVar8,local_b8);
break;
case 3:
switchD_0012ed85_caseD_3:
local_68 = (int8 *)
_ZN3fmt3v106detail5writeIcNS0_8appenderExTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_
(puVar8,CONCAT44(uStack_b4,local_b8));
break;
case 4:
switchD_0012ed85_caseD_4:
local_68 = (int8 *)
_ZN3fmt3v106detail5writeIcNS0_8appenderEyTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_
(puVar8,CONCAT44(uStack_b4,local_b8));
break;
case 5:
switchD_0012ed85_caseD_5:
local_68 = (int8 *)
_ZN3fmt3v106detail5writeIcNS0_8appenderEnTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_
(puVar8,CONCAT44(uStack_b4,local_b8),CONCAT62(uStack_ae,uStack_b0));
break;
case 6:
switchD_0012ed85_caseD_6:
local_68 = (int8 *)
_ZN3fmt3v106detail5writeIcNS0_8appenderEoTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_
(puVar8,CONCAT44(uStack_b4,local_b8),CONCAT62(uStack_ae,uStack_b0));
break;
case 7:
local_68 = (int8 *)0xffffffff00000000;
local_60 = 0x100000020000000;
local_68 = (int8 *)
_ZN3fmt3v106detail5writeIcNS0_8appenderEbTnNSt9enable_ifIXsr3std7is_sameIT1_bEE5valueEiE4typeELi0EEET0_S8_S5_RKNS0_12format_specsIT_EENS1_10locale_refE
(puVar8,local_b8._0_1_,&local_68,0);
break;
case 8:
switchD_0012ed85_caseD_8:
lVar5 = puVar8[2];
uVar6 = lVar5 + 1;
if ((ulong)puVar8[3] < uVar6) {
(**(code **)*puVar8)(puVar8);
lVar5 = puVar8[2];
uVar6 = lVar5 + 1;
}
puVar8[2] = uVar6;
*(basic_format_context *)(puVar8[1] + lVar5) = local_b8._0_1_;
local_68 = puVar8;
break;
case 9:
switchD_0012ed85_caseD_9:
local_68 = (int8 *)
_ZN3fmt3v106detail5writeIcNS0_8appenderEfTnNSt9enable_ifIXsr13is_fast_floatIT1_EE5valueEiE4typeELi0EEET0_S8_S5_
(local_b8,puVar8);
break;
case 10:
switchD_0012ed85_caseD_a:
local_68 = (int8 *)
_ZN3fmt3v106detail5writeIcNS0_8appenderEdTnNSt9enable_ifIXsr13is_fast_floatIT1_EE5valueEiE4typeELi0EEET0_S8_S5_
(local_b8,puVar8);
break;
case 0xb:
switchD_0012ed85_caseD_b:
local_68 = (int8 *)
write_float<char,fmt::v10::appender,long_double>
(puVar8,0xffffffff00000000,0x100000020000000,0,in_R8,in_R9,
CONCAT28(uStack_b0,CONCAT44(uStack_b4,local_b8)));
break;
case 0xc:
switchD_0012ed85_caseD_c:
local_68 = (int8 *)write<char,fmt::v10::appender>(puVar8,CONCAT44(uStack_b4,local_b8));
break;
case 0xd:
switchD_0012ed85_caseD_d:
local_68 = (int8 *)
copy_str_noinline<char,char_const*,fmt::v10::appender>
(CONCAT44(uStack_b4,local_b8),
CONCAT62(uStack_ae,uStack_b0) + CONCAT44(uStack_b4,local_b8),puVar8);
break;
case 0xe:
local_68 = (int8 *)0xffffffff00000000;
local_60 = 0x100000020000000;
local_68 = (int8 *)
write_ptr<char,fmt::v10::appender,unsigned_long>
(puVar8,CONCAT44(uStack_b4,local_b8));
break;
case 0xf:
local_60 = *(int8 *)(param_3 + 0x20);
local_88 = (int8 *)0x0;
uStack_80 = 0;
local_78 = 0;
uStack_58 = *(int4 *)(param_3 + 0x28);
uStack_54 = *(int4 *)(param_3 + 0x2c);
uStack_50 = *(int8 *)(param_3 + 0x30);
(*(code *)CONCAT62(uStack_ae,uStack_b0))(CONCAT44(uStack_b4,local_b8),&local_88,&local_68);
}
}
else {
local_90 = 0;
local_98 = param_3;
if (cVar1 == ':') {
uVar2 = *(uint *)(param_3 + 0x10);
if ((int)uVar2 < 0) goto LAB_0012f0f0;
*(uint *)(param_3 + 0x10) = uVar2 + 1;
local_90 = uVar2;
}
else {
pcVar4 = do_parse_arg_id<char,fmt::v10::detail::parse_replacement_field<char,fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char>&,fmt::v10::basic_string_view<char>,fmt::v10::detail::vformat_args<char>::type,fmt::v10::detail::locale_ref)::format_handler&>(char_const*,char_const*,fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char>&,fmt::v10::basic_string_view<char>,fmt::v10::detail::vformat_args<char>::type,fmt::v10::detail::locale_ref)::format_handler&)::id_adapter&>
(pcVar4,param_2,(format_handler *)&local_98);
}
if (pcVar4 == param_2) {
LAB_0012f0fc:
/* WARNING: Subroutine does not return */
throw_format_error("missing \'}\' in format string");
}
if (*pcVar4 == ':') {
pcVar4 = (char *)vformat_to<char>(fmt::v10::detail::buffer<char>&,fmt::v10::basic_string_view<char>,fmt::v10::detail::vformat_args<char>::type,fmt::v10::detail::locale_ref)
::format_handler::on_format_specs(iVar7,(char *)(ulong)local_90,pcVar4 + 1);
if ((pcVar4 == param_2) || (*pcVar4 != '}')) {
/* WARNING: Subroutine does not return */
throw_format_error("unknown format specifier");
}
goto LAB_0012f0cc;
}
if (*pcVar4 != '}') goto LAB_0012f0fc;
get_arg<fmt::v10::basic_format_context<fmt::v10::appender,char>,int>
((basic_format_context *)&local_b8,iVar7 + 0x18);
puVar8 = *(int8 **)(param_3 + 0x18);
local_60 = *(int8 *)(param_3 + 0x20);
uStack_80 = *(int8 *)(param_3 + 0x20);
local_78 = *(int4 *)(param_3 + 0x28);
uStack_74 = *(int4 *)(param_3 + 0x2c);
local_70 = *(int8 *)(param_3 + 0x30);
local_68 = puVar8;
local_88 = puVar8;
switch(local_a8) {
case 1:
goto switchD_0012ed85_caseD_1;
case 2:
goto switchD_0012ed85_caseD_2;
case 3:
goto switchD_0012ed85_caseD_3;
case 4:
goto switchD_0012ed85_caseD_4;
case 5:
goto switchD_0012ed85_caseD_5;
case 6:
goto switchD_0012ed85_caseD_6;
case 7:
local_68 = (int8 *)
default_arg_formatter<char>::operator()
((default_arg_formatter<char> *)&local_88,(bool)local_b8._0_1_);
break;
case 8:
goto switchD_0012ed85_caseD_8;
case 9:
goto switchD_0012ed85_caseD_9;
case 10:
goto switchD_0012ed85_caseD_a;
case 0xb:
goto switchD_0012ed85_caseD_b;
case 0xc:
goto switchD_0012ed85_caseD_c;
case 0xd:
goto switchD_0012ed85_caseD_d;
case 0xe:
local_68 = (int8 *)
default_arg_formatter<char>::operator()
((default_arg_formatter<char> *)&local_88,
(void *)CONCAT44(uStack_b4,local_b8));
break;
case 0xf:
local_48 = 0;
uStack_40 = 0;
local_38 = 0;
uStack_58 = local_78;
uStack_54 = uStack_74;
uStack_50 = local_70;
(*(code *)CONCAT62(uStack_ae,uStack_b0))(CONCAT44(uStack_b4,local_b8),&local_48,&local_68);
}
}
*(int8 **)(param_3 + 0x18) = local_68;
LAB_0012f0cc:
return pcVar4 + 1;
}
|
|
65,074 |
js_std_file_tell
|
bluesky950520[P]quickjs/quickjs-libc.c
|
static JSValue js_std_file_tell(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int is_bigint)
{
FILE *f = js_std_file_get(ctx, this_val);
int64_t pos;
if (!f)
return JS_EXCEPTION;
#if defined(__linux__)
pos = ftello(f);
#else
pos = ftell(f);
#endif
if (is_bigint)
return JS_NewBigInt64(ctx, pos);
else
return JS_NewInt64(ctx, pos);
}
|
O0
|
c
|
js_std_file_tell:
subq $0xd8, %rsp
movq %rsi, 0x38(%rsp)
movq %rdx, 0x40(%rsp)
movq %rdi, 0x30(%rsp)
movl %ecx, 0x2c(%rsp)
movq %r8, 0x20(%rsp)
movl %r9d, 0x1c(%rsp)
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0x127c0
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
jne 0x11a2b
movl $0x0, 0x48(%rsp)
movq $0x6, 0x50(%rsp)
jmp 0x11b83
movq 0x10(%rsp), %rdi
callq 0xe110
movq %rax, 0x8(%rsp)
cmpl $0x0, 0x1c(%rsp)
je 0x11a5f
movq 0x30(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x38a30
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
jmp 0x11b83
movq 0x30(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x80(%rsp)
movq %rax, 0x78(%rsp)
cmpq $-0x80000000, 0x78(%rsp) # imm = 0x80000000
jl 0x11af7
cmpq $0x7fffffff, 0x78(%rsp) # imm = 0x7FFFFFFF
jg 0x11af7
movq 0x80(%rsp), %rcx
movl 0x78(%rsp), %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
movl 0x9c(%rsp), %eax
movl %eax, 0xa8(%rsp)
movq $0x0, 0xb0(%rsp)
movq 0xa8(%rsp), %rcx
movq 0xb0(%rsp), %rax
movq %rcx, 0x68(%rsp)
movq %rax, 0x70(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x90(%rsp)
jmp 0x11b69
movq 0x80(%rsp), %rax
cvtsi2sdq 0x78(%rsp), %xmm0
movq %rax, 0xc0(%rsp)
movsd %xmm0, 0xb8(%rsp)
movsd 0xb8(%rsp), %xmm0
callq 0x13560
movq %rax, 0xc8(%rsp)
movq %rdx, 0xd0(%rsp)
movq 0xc8(%rsp), %rcx
movq 0xd0(%rsp), %rax
movq %rcx, 0x58(%rsp)
movq %rax, 0x60(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x88(%rsp), %rcx
movq 0x90(%rsp), %rax
movq %rcx, 0x48(%rsp)
movq %rax, 0x50(%rsp)
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %rdx
addq $0xd8, %rsp
retq
nopw %cs:(%rax,%rax)
|
js_std_file_tell:
sub rsp, 0D8h
mov [rsp+0D8h+var_A0], rsi
mov [rsp+0D8h+var_98], rdx
mov [rsp+0D8h+var_A8], rdi
mov [rsp+0D8h+var_AC], ecx
mov [rsp+0D8h+var_B8], r8
mov [rsp+0D8h+var_BC], r9d
mov rdi, [rsp+0D8h+var_A8]
mov rsi, [rsp+0D8h+var_A0]
mov rdx, [rsp+0D8h+var_98]
call js_std_file_get
mov [rsp+0D8h+var_C8], rax
cmp [rsp+0D8h+var_C8], 0
jnz short loc_11A2B
mov dword ptr [rsp+0D8h+var_90], 0
mov [rsp+0D8h+var_88], 6
jmp loc_11B83
loc_11A2B:
mov rdi, [rsp+0D8h+var_C8]
call _ftello
mov [rsp+0D8h+var_D0], rax
cmp [rsp+0D8h+var_BC], 0
jz short loc_11A5F
mov rdi, [rsp+0D8h+var_A8]
mov rsi, [rsp+0D8h+var_D0]
call JS_NewBigInt64
mov [rsp+0D8h+var_90], rax
mov [rsp+0D8h+var_88], rdx
jmp loc_11B83
loc_11A5F:
mov rcx, [rsp+0D8h+var_A8]
mov rax, [rsp+0D8h+var_D0]
mov [rsp+0D8h+var_58], rcx
mov [rsp+0D8h+var_60], rax
cmp [rsp+0D8h+var_60], 0FFFFFFFF80000000h
jl short loc_11AF7
cmp [rsp+0D8h+var_60], 7FFFFFFFh
jg short loc_11AF7
mov rcx, [rsp+0D8h+var_58]
mov eax, dword ptr [rsp+0D8h+var_60]
mov [rsp+0D8h+var_38], rcx
mov [rsp+0D8h+var_3C], eax
mov eax, [rsp+0D8h+var_3C]
mov dword ptr [rsp+0D8h+var_30], eax
mov [rsp+0D8h+var_28], 0
mov rcx, [rsp+0D8h+var_30]
mov rax, [rsp+0D8h+var_28]
mov [rsp+0D8h+var_70], rcx
mov [rsp+0D8h+var_68], rax
mov rax, [rsp+0D8h+var_70]
mov [rsp+0D8h+var_50], rax
mov rax, [rsp+0D8h+var_68]
mov [rsp+0D8h+var_48], rax
jmp short loc_11B69
loc_11AF7:
mov rax, [rsp+0D8h+var_58]
cvtsi2sd xmm0, [rsp+0D8h+var_60]
mov [rsp+0D8h+var_18], rax
movsd [rsp+0D8h+var_20], xmm0
movsd xmm0, [rsp+0D8h+var_20]
call __JS_NewFloat64
mov [rsp+0D8h+var_10], rax
mov [rsp+0D8h+var_8], rdx
mov rcx, [rsp+0D8h+var_10]
mov rax, [rsp+0D8h+var_8]
mov [rsp+0D8h+var_80], rcx
mov [rsp+0D8h+var_78], rax
mov rax, [rsp+0D8h+var_80]
mov [rsp+0D8h+var_50], rax
mov rax, [rsp+0D8h+var_78]
mov [rsp+0D8h+var_48], rax
loc_11B69:
mov rcx, [rsp+0D8h+var_50]
mov rax, [rsp+0D8h+var_48]
mov [rsp+0D8h+var_90], rcx
mov [rsp+0D8h+var_88], rax
loc_11B83:
mov rax, [rsp+0D8h+var_90]
mov rdx, [rsp+0D8h+var_88]
add rsp, 0D8h
retn
|
long long js_std_file_tell(long long a1, long long a2, long long a3, long long a4, long long a5, int a6)
{
long long v7; // [rsp+8h] [rbp-D0h]
long long v8; // [rsp+10h] [rbp-C8h]
long long v10; // [rsp+48h] [rbp-90h]
long long v12; // [rsp+A8h] [rbp-30h]
v8 = js_std_file_get(a1, a2, a3);
if ( v8 )
{
v7 = ftello(v8);
if ( a6 )
{
return JS_NewBigInt64(a1, v7);
}
else
{
if ( v7 < (long long)0xFFFFFFFF80000000LL || v7 > 0x7FFFFFFF )
return _JS_NewFloat64((double)(int)v7);
LODWORD(v12) = v7;
return v12;
}
}
else
{
LODWORD(v10) = 0;
}
return v10;
}
|
js_std_file_tell:
SUB RSP,0xd8
MOV qword ptr [RSP + 0x38],RSI
MOV qword ptr [RSP + 0x40],RDX
MOV qword ptr [RSP + 0x30],RDI
MOV dword ptr [RSP + 0x2c],ECX
MOV qword ptr [RSP + 0x20],R8
MOV dword ptr [RSP + 0x1c],R9D
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x38]
MOV RDX,qword ptr [RSP + 0x40]
CALL 0x001127c0
MOV qword ptr [RSP + 0x10],RAX
CMP qword ptr [RSP + 0x10],0x0
JNZ 0x00111a2b
MOV dword ptr [RSP + 0x48],0x0
MOV qword ptr [RSP + 0x50],0x6
JMP 0x00111b83
LAB_00111a2b:
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x0010e110
MOV qword ptr [RSP + 0x8],RAX
CMP dword ptr [RSP + 0x1c],0x0
JZ 0x00111a5f
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x8]
CALL 0x00138a30
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
JMP 0x00111b83
LAB_00111a5f:
MOV RCX,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x80],RCX
MOV qword ptr [RSP + 0x78],RAX
CMP qword ptr [RSP + 0x78],-0x80000000
JL 0x00111af7
CMP qword ptr [RSP + 0x78],0x7fffffff
JG 0x00111af7
MOV RCX,qword ptr [RSP + 0x80]
MOV EAX,dword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0xa0],RCX
MOV dword ptr [RSP + 0x9c],EAX
MOV EAX,dword ptr [RSP + 0x9c]
MOV dword ptr [RSP + 0xa8],EAX
MOV qword ptr [RSP + 0xb0],0x0
MOV RCX,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0x68],RCX
MOV qword ptr [RSP + 0x70],RAX
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x88],RAX
MOV RAX,qword ptr [RSP + 0x70]
MOV qword ptr [RSP + 0x90],RAX
JMP 0x00111b69
LAB_00111af7:
MOV RAX,qword ptr [RSP + 0x80]
CVTSI2SD XMM0,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0xc0],RAX
MOVSD qword ptr [RSP + 0xb8],XMM0
MOVSD XMM0,qword ptr [RSP + 0xb8]
CALL 0x00113560
MOV qword ptr [RSP + 0xc8],RAX
MOV qword ptr [RSP + 0xd0],RDX
MOV RCX,qword ptr [RSP + 0xc8]
MOV RAX,qword ptr [RSP + 0xd0]
MOV qword ptr [RSP + 0x58],RCX
MOV qword ptr [RSP + 0x60],RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x88],RAX
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x90],RAX
LAB_00111b69:
MOV RCX,qword ptr [RSP + 0x88]
MOV RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0x48],RCX
MOV qword ptr [RSP + 0x50],RAX
LAB_00111b83:
MOV RAX,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
ADD RSP,0xd8
RET
|
int1 [16]
js_std_file_tell(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int param_6)
{
int4 extraout_EAX;
FILE *__stream;
__off_t _Var1;
int4 extraout_var;
int8 extraout_RDX;
int1 auVar2 [16];
int4 local_90;
int4 uStack_8c;
int8 local_88;
int4 local_60;
int4 local_50;
int4 uStack_4c;
int8 local_48;
int4 uStack_2c;
__stream = (FILE *)js_std_file_get(param_1,param_2,param_3);
if (__stream == (FILE *)0x0) {
local_90 = 0;
local_88 = 6;
}
else {
_Var1 = ftello(__stream);
if (param_6 == 0) {
if ((_Var1 < -0x80000000) || (0x7fffffff < _Var1)) {
__JS_NewFloat64((double)_Var1);
local_48 = extraout_RDX;
local_50 = extraout_EAX;
uStack_4c = extraout_var;
}
else {
local_60 = (int4)_Var1;
local_50 = local_60;
uStack_4c = uStack_2c;
local_48 = 0;
}
local_90 = local_50;
uStack_8c = uStack_4c;
local_88 = local_48;
}
else {
auVar2 = JS_NewBigInt64(param_1,_Var1);
local_88 = auVar2._8_8_;
local_90 = auVar2._0_4_;
uStack_8c = auVar2._4_4_;
}
}
auVar2._4_4_ = uStack_8c;
auVar2._0_4_ = local_90;
auVar2._8_8_ = local_88;
return auVar2;
}
|
|
65,075 |
js_std_file_tell
|
bluesky950520[P]quickjs/quickjs-libc.c
|
static JSValue js_std_file_tell(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int is_bigint)
{
FILE *f = js_std_file_get(ctx, this_val);
int64_t pos;
if (!f)
return JS_EXCEPTION;
#if defined(__linux__)
pos = ftello(f);
#else
pos = ftell(f);
#endif
if (is_bigint)
return JS_NewBigInt64(ctx, pos);
else
return JS_NewInt64(ctx, pos);
}
|
O1
|
c
|
js_std_file_tell:
pushq %rbp
pushq %r14
pushq %rbx
movl %r9d, %ebp
movq %rdi, %rbx
callq 0x15974
testq %rax, %rax
je 0x1549a
movabsq $-0x100000000, %r14 # imm = 0xFFFFFFFF00000000
movq %rax, %rdi
callq 0xe110
testl %ebp, %ebp
je 0x154a6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x27762
jmp 0x154c7
movl $0x6, %edx
xorl %eax, %eax
xorl %r14d, %r14d
jmp 0x154ca
movslq %eax, %rcx
xorl %esi, %esi
cmpq %rax, %rcx
cvtsi2sd %rax, %xmm0
movl %ecx, %ecx
movq %xmm0, %rax
cmoveq %rcx, %rax
movl $0x7, %edx
cmoveq %rsi, %rdx
andq %rax, %r14
movl %eax, %eax
orq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
|
js_std_file_tell:
push rbp
push r14
push rbx
mov ebp, r9d
mov rbx, rdi
call js_std_file_get
test rax, rax
jz short loc_1549A
mov r14, 0FFFFFFFF00000000h
mov rdi, rax
call _ftello
test ebp, ebp
jz short loc_154A6
mov rdi, rbx
mov rsi, rax
call JS_NewBigInt64
jmp short loc_154C7
loc_1549A:
mov edx, 6
xor eax, eax
xor r14d, r14d
jmp short loc_154CA
loc_154A6:
movsxd rcx, eax
xor esi, esi
cmp rcx, rax
cvtsi2sd xmm0, rax
mov ecx, ecx
movq rax, xmm0
cmovz rax, rcx
mov edx, 7
cmovz rdx, rsi
loc_154C7:
and r14, rax
loc_154CA:
mov eax, eax
or rax, r14
pop rbx
pop r14
pop rbp
retn
|
unsigned long long js_std_file_tell(long long a1, long long a2, long long a3, long long a4, long long a5, int a6)
{
long long v7; // rax
long long v8; // rax
double v9; // rax
unsigned long long v10; // r14
bool v11; // zf
double v12; // rcx
v7 = js_std_file_get(a1);
if ( v7 )
{
v8 = ftello(v7);
if ( a6 )
{
v9 = COERCE_DOUBLE(JS_NewBigInt64(a1, v8));
}
else
{
v11 = (int)v8 == v8;
*(_QWORD *)&v12 = (unsigned int)v8;
v9 = (double)(int)v8;
if ( v11 )
v9 = v12;
}
v10 = *(_QWORD *)&v9 & 0xFFFFFFFF00000000LL;
}
else
{
LODWORD(v9) = 0;
v10 = 0LL;
}
return v10 | LODWORD(v9);
}
|
js_std_file_tell:
PUSH RBP
PUSH R14
PUSH RBX
MOV EBP,R9D
MOV RBX,RDI
CALL 0x00115974
TEST RAX,RAX
JZ 0x0011549a
MOV R14,-0x100000000
MOV RDI,RAX
CALL 0x0010e110
TEST EBP,EBP
JZ 0x001154a6
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00127762
JMP 0x001154c7
LAB_0011549a:
MOV EDX,0x6
XOR EAX,EAX
XOR R14D,R14D
JMP 0x001154ca
LAB_001154a6:
MOVSXD RCX,EAX
XOR ESI,ESI
CMP RCX,RAX
CVTSI2SD XMM0,RAX
MOV ECX,ECX
MOVQ RAX,XMM0
CMOVZ RAX,RCX
MOV EDX,0x7
CMOVZ RDX,RSI
LAB_001154c7:
AND R14,RAX
LAB_001154ca:
MOV EAX,EAX
OR RAX,R14
POP RBX
POP R14
POP RBP
RET
|
ulong js_std_file_tell(int8 param_1)
{
FILE *__stream;
ulong uVar1;
double dVar2;
int in_R9D;
__stream = (FILE *)js_std_file_get();
if (__stream == (FILE *)0x0) {
dVar2 = 0.0;
uVar1 = 0;
}
else {
uVar1 = ftello(__stream);
if (in_R9D == 0) {
dVar2 = (double)(long)uVar1;
if ((long)(int)uVar1 == uVar1) {
dVar2 = (double)(uVar1 & 0xffffffff);
}
}
else {
dVar2 = (double)JS_NewBigInt64(param_1,uVar1);
}
uVar1 = (ulong)dVar2 & 0xffffffff00000000;
}
return (ulong)dVar2 & 0xffffffff | uVar1;
}
|
|
65,076 |
js_std_file_tell
|
bluesky950520[P]quickjs/quickjs-libc.c
|
static JSValue js_std_file_tell(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int is_bigint)
{
FILE *f = js_std_file_get(ctx, this_val);
int64_t pos;
if (!f)
return JS_EXCEPTION;
#if defined(__linux__)
pos = ftello(f);
#else
pos = ftell(f);
#endif
if (is_bigint)
return JS_NewBigInt64(ctx, pos);
else
return JS_NewInt64(ctx, pos);
}
|
O3
|
c
|
js_std_file_tell:
pushq %rbp
pushq %r14
pushq %rbx
movl %r9d, %ebp
movq %rdi, %rbx
callq 0x1634c
testq %rax, %rax
je 0x15e7c
movabsq $-0x100000000, %r14 # imm = 0xFFFFFFFF00000000
movq %rax, %rdi
callq 0xe110
testl %ebp, %ebp
je 0x15e88
movq %rbx, %rdi
movq %rax, %rsi
callq 0x27d6d
jmp 0x15ea9
movl $0x6, %edx
xorl %eax, %eax
xorl %r14d, %r14d
jmp 0x15eac
movslq %eax, %rcx
xorl %esi, %esi
cmpq %rax, %rcx
cvtsi2sd %rax, %xmm0
movl %ecx, %ecx
movq %xmm0, %rax
cmoveq %rcx, %rax
movl $0x7, %edx
cmoveq %rsi, %rdx
andq %rax, %r14
movl %eax, %eax
orq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
|
js_std_file_tell:
push rbp
push r14
push rbx
mov ebp, r9d
mov rbx, rdi
call js_std_file_get
test rax, rax
jz short loc_15E7C
mov r14, 0FFFFFFFF00000000h
mov rdi, rax
call _ftello
test ebp, ebp
jz short loc_15E88
mov rdi, rbx
mov rsi, rax
call JS_NewBigInt64
jmp short loc_15EA9
loc_15E7C:
mov edx, 6
xor eax, eax
xor r14d, r14d
jmp short loc_15EAC
loc_15E88:
movsxd rcx, eax
xor esi, esi
cmp rcx, rax
cvtsi2sd xmm0, rax
mov ecx, ecx
movq rax, xmm0
cmovz rax, rcx
mov edx, 7
cmovz rdx, rsi
loc_15EA9:
and r14, rax
loc_15EAC:
mov eax, eax
or rax, r14
pop rbx
pop r14
pop rbp
retn
|
unsigned long long js_std_file_tell(long long a1, long long a2, long long a3, long long a4, long long a5, int a6)
{
long long v7; // rax
long long v8; // rax
double v9; // rax
unsigned long long v10; // r14
bool v11; // zf
double v12; // rcx
v7 = js_std_file_get(a1);
if ( v7 )
{
v8 = ftello(v7);
if ( a6 )
{
v9 = COERCE_DOUBLE(JS_NewBigInt64(a1, v8));
}
else
{
v11 = (int)v8 == v8;
*(_QWORD *)&v12 = (unsigned int)v8;
v9 = (double)(int)v8;
if ( v11 )
v9 = v12;
}
v10 = *(_QWORD *)&v9 & 0xFFFFFFFF00000000LL;
}
else
{
LODWORD(v9) = 0;
v10 = 0LL;
}
return v10 | LODWORD(v9);
}
|
js_std_file_tell:
PUSH RBP
PUSH R14
PUSH RBX
MOV EBP,R9D
MOV RBX,RDI
CALL 0x0011634c
TEST RAX,RAX
JZ 0x00115e7c
MOV R14,-0x100000000
MOV RDI,RAX
CALL 0x0010e110
TEST EBP,EBP
JZ 0x00115e88
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00127d6d
JMP 0x00115ea9
LAB_00115e7c:
MOV EDX,0x6
XOR EAX,EAX
XOR R14D,R14D
JMP 0x00115eac
LAB_00115e88:
MOVSXD RCX,EAX
XOR ESI,ESI
CMP RCX,RAX
CVTSI2SD XMM0,RAX
MOV ECX,ECX
MOVQ RAX,XMM0
CMOVZ RAX,RCX
MOV EDX,0x7
CMOVZ RDX,RSI
LAB_00115ea9:
AND R14,RAX
LAB_00115eac:
MOV EAX,EAX
OR RAX,R14
POP RBX
POP R14
POP RBP
RET
|
ulong js_std_file_tell(int8 param_1)
{
FILE *__stream;
ulong uVar1;
double dVar2;
int in_R9D;
__stream = (FILE *)js_std_file_get();
if (__stream == (FILE *)0x0) {
dVar2 = 0.0;
uVar1 = 0;
}
else {
uVar1 = ftello(__stream);
if (in_R9D == 0) {
dVar2 = (double)(long)uVar1;
if ((long)(int)uVar1 == uVar1) {
dVar2 = (double)(uVar1 & 0xffffffff);
}
}
else {
dVar2 = (double)JS_NewBigInt64(param_1,uVar1);
}
uVar1 = (ulong)dVar2 & 0xffffffff00000000;
}
return (ulong)dVar2 & 0xffffffff | uVar1;
}
|
|
65,077 |
ggml_compute_forward_acc
|
ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp
|
void ggml_compute_forward_acc(
const ggml_compute_params * params,
ggml_tensor * dst) {
const ggml_tensor * src0 = dst->src[0];
switch (src0->type) {
case GGML_TYPE_F32:
{
ggml_compute_forward_acc_f32(params, dst);
} break;
case GGML_TYPE_F16:
case GGML_TYPE_BF16:
case GGML_TYPE_Q4_0:
case GGML_TYPE_Q4_1:
case GGML_TYPE_Q5_0:
case GGML_TYPE_Q5_1:
case GGML_TYPE_Q8_0:
case GGML_TYPE_Q8_1:
case GGML_TYPE_Q2_K:
case GGML_TYPE_Q3_K:
case GGML_TYPE_Q4_K:
case GGML_TYPE_Q5_K:
case GGML_TYPE_Q6_K:
case GGML_TYPE_TQ1_0:
case GGML_TYPE_TQ2_0:
case GGML_TYPE_IQ2_XXS:
case GGML_TYPE_IQ2_XS:
case GGML_TYPE_IQ3_XXS:
case GGML_TYPE_IQ1_S:
case GGML_TYPE_IQ1_M:
case GGML_TYPE_IQ4_NL:
case GGML_TYPE_IQ4_XS:
case GGML_TYPE_IQ3_S:
case GGML_TYPE_IQ2_S:
default:
{
GGML_ABORT("fatal error");
}
}
}
|
O0
|
cpp
|
ggml_compute_forward_acc:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq 0x98(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movl (%rax), %eax
movl %eax, 0xc(%rsp)
testl %eax, %eax
je 0x8a925
jmp 0x8a8e0
movl 0xc(%rsp), %eax
decl %eax
subl $0x3, %eax
jb 0x8a936
jmp 0x8a8ed
movl 0xc(%rsp), %eax
addl $-0x6, %eax
subl $0x9, %eax
jb 0x8a936
jmp 0x8a8fb
movl 0xc(%rsp), %eax
addl $-0x10, %eax
subl $0x8, %eax
jb 0x8a936
jmp 0x8a909
movl 0xc(%rsp), %eax
addl $-0x1d, %eax
subl $0x2, %eax
jb 0x8a936
jmp 0x8a917
movl 0xc(%rsp), %eax
addl $-0x22, %eax
subl $0x2, %eax
jb 0x8a936
jmp 0x8a938
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x8a960
jmp 0x8a952
jmp 0x8a938
leaq 0x2ad59(%rip), %rdi # 0xb5698
movl $0x72c, %esi # imm = 0x72C
leaq 0x21149(%rip), %rdx # 0xaba94
movb $0x0, %al
callq 0x10660
addq $0x28, %rsp
retq
nopw (%rax,%rax)
|
ggml_compute_forward_acc:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov rax, [rsp+28h+var_10]
mov rax, [rax+98h]
mov [rsp+28h+var_18], rax
mov rax, [rsp+28h+var_18]
mov eax, [rax]
mov [rsp+28h+var_1C], eax
test eax, eax
jz short loc_8A925
jmp short $+2
loc_8A8E0:
mov eax, [rsp+28h+var_1C]
dec eax
sub eax, 3
jb short loc_8A936
jmp short $+2
loc_8A8ED:
mov eax, [rsp+28h+var_1C]
add eax, 0FFFFFFFAh
sub eax, 9
jb short loc_8A936
jmp short $+2
loc_8A8FB:
mov eax, [rsp+28h+var_1C]
add eax, 0FFFFFFF0h
sub eax, 8
jb short loc_8A936
jmp short $+2
loc_8A909:
mov eax, [rsp+28h+var_1C]
add eax, 0FFFFFFE3h
sub eax, 2
jb short loc_8A936
jmp short $+2
loc_8A917:
mov eax, [rsp+28h+var_1C]
add eax, 0FFFFFFDEh
sub eax, 2
jb short loc_8A936
jmp short loc_8A938
loc_8A925:
mov rdi, [rsp+28h+var_8]
mov rsi, [rsp+28h+var_10]
call _ZL28ggml_compute_forward_acc_f32PK19ggml_compute_paramsP11ggml_tensor; ggml_compute_forward_acc_f32(ggml_compute_params const*,ggml_tensor *)
jmp short loc_8A952
loc_8A936:
jmp short $+2
loc_8A938:
lea rdi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"...
mov esi, 72Ch
lea rdx, aFatalError; "fatal error"
mov al, 0
call _ggml_abort
loc_8A952:
add rsp, 28h
retn
|
double ggml_compute_forward_acc(long long a1, long long a2)
{
double result; // xmm0_8
if ( **(_DWORD **)(a2 + 152) )
return ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
1836LL,
"fatal error");
ggml_compute_forward_acc_f32(a1, a2);
return result;
}
|
ggml_compute_forward_acc:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x98]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0xc],EAX
TEST EAX,EAX
JZ 0x0018a925
JMP 0x0018a8e0
LAB_0018a8e0:
MOV EAX,dword ptr [RSP + 0xc]
DEC EAX
SUB EAX,0x3
JC 0x0018a936
JMP 0x0018a8ed
LAB_0018a8ed:
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,-0x6
SUB EAX,0x9
JC 0x0018a936
JMP 0x0018a8fb
LAB_0018a8fb:
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,-0x10
SUB EAX,0x8
JC 0x0018a936
JMP 0x0018a909
LAB_0018a909:
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,-0x1d
SUB EAX,0x2
JC 0x0018a936
JMP 0x0018a917
LAB_0018a917:
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,-0x22
SUB EAX,0x2
JC 0x0018a936
JMP 0x0018a938
LAB_0018a925:
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x18]
CALL 0x0018a960
JMP 0x0018a952
LAB_0018a936:
JMP 0x0018a938
LAB_0018a938:
LEA RDI,[0x1b5698]
MOV ESI,0x72c
LEA RDX,[0x1aba94]
MOV AL,0x0
CALL 0x00110660
LAB_0018a952:
ADD RSP,0x28
RET
|
void ggml_compute_forward_acc(ggml_compute_params *param_1,ggml_tensor *param_2)
{
if (**(int **)(param_2 + 0x98) == 0) {
ggml_compute_forward_acc_f32(param_1,param_2);
}
else {
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp"
,0x72c,"fatal error");
}
return;
}
|
|
65,078 |
free_all_read_locks
|
eloqsql/mysys/thr_lock.c
|
static inline void free_all_read_locks(THR_LOCK *lock,
my_bool using_concurrent_insert)
{
THR_LOCK_DATA *data=lock->read_wait.data;
check_locks(lock,"before freeing read locks", TL_UNLOCK, 1);
/* move all locks from read_wait list to read list */
(*lock->read.last)=data;
data->prev=lock->read.last;
lock->read.last=lock->read_wait.last;
/* Clear read_wait list */
lock->read_wait.last= &lock->read_wait.data;
do
{
mysql_cond_t *cond= data->cond;
if ((int) data->type == (int) TL_READ_NO_INSERT)
{
if (using_concurrent_insert)
{
/*
We can't free this lock;
Link lock away from read chain back into read_wait chain
*/
if (((*data->prev)=data->next))
data->next->prev=data->prev;
else
lock->read.last=data->prev;
*lock->read_wait.last= data;
data->prev= lock->read_wait.last;
lock->read_wait.last= &data->next;
continue;
}
lock->read_no_write_count++;
}
/* purecov: begin inspected */
DBUG_PRINT("lock",("giving read lock to thread: %lu",
(ulong)data->owner->thread_id));
/* purecov: end */
data->cond=0; /* Mark thread free */
mysql_cond_signal(cond);
} while ((data=data->next));
*lock->read_wait.last=0;
if (!lock->read_wait.data)
lock->write_lock_count=0;
check_locks(lock,"after giving read locks", TL_UNLOCK, 0);
}
|
O0
|
c
|
free_all_read_locks:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %sil, %al
movq %rdi, -0x8(%rbp)
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rax
movq 0x68(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x78(%rax)
movq -0x8(%rbp), %rcx
addq $0x60, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x68(%rax)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x5, 0x40(%rax)
jne 0x26790
cmpb $0x0, -0x9(%rbp)
je 0x2677d
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
je 0x2673c
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x10(%rax)
jmp 0x2674c
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x78(%rax)
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq 0x68(%rax), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movq 0x68(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rcx
addq $0x8, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x68(%rax)
jmp 0x267a9
movq -0x8(%rbp), %rax
movl 0xa8(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0xa8(%rax)
jmp 0x26792
jmp 0x26794
movq -0x18(%rbp), %rax
movq $0x0, 0x20(%rax)
movq -0x20(%rbp), %rdi
callq 0x25d20
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
jne 0x266ed
movq -0x8(%rbp), %rax
movq 0x68(%rax), %rax
movq $0x0, (%rax)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x60(%rax)
jne 0x267e8
movq -0x8(%rbp), %rax
movq $0x0, 0xa0(%rax)
addq $0x20, %rsp
popq %rbp
retq
nop
|
free_all_read_locks:
push rbp
mov rbp, rsp
sub rsp, 20h
mov al, sil
mov [rbp+var_8], rdi
mov [rbp+var_9], al
mov rax, [rbp+var_8]
mov rax, [rax+60h]
mov [rbp+var_18], rax
mov rcx, [rbp+var_18]
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov [rax], rcx
mov rax, [rbp+var_8]
mov rcx, [rax+78h]
mov rax, [rbp+var_18]
mov [rax+10h], rcx
mov rax, [rbp+var_8]
mov rcx, [rax+68h]
mov rax, [rbp+var_8]
mov [rax+78h], rcx
mov rcx, [rbp+var_8]
add rcx, 60h ; '`'
mov rax, [rbp+var_8]
mov [rax+68h], rcx
loc_266ED:
mov rax, [rbp+var_18]
mov rax, [rax+20h]
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
cmp dword ptr [rax+40h], 5
jnz loc_26790
cmp [rbp+var_9], 0
jz short loc_2677D
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov rcx, [rbp+var_18]
mov rcx, [rcx+10h]
mov [rcx], rax
cmp rax, 0
jz short loc_2673C
mov rax, [rbp+var_18]
mov rcx, [rax+10h]
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov [rax+10h], rcx
jmp short loc_2674C
loc_2673C:
mov rax, [rbp+var_18]
mov rcx, [rax+10h]
mov rax, [rbp+var_8]
mov [rax+78h], rcx
loc_2674C:
mov rcx, [rbp+var_18]
mov rax, [rbp+var_8]
mov rax, [rax+68h]
mov [rax], rcx
mov rax, [rbp+var_8]
mov rcx, [rax+68h]
mov rax, [rbp+var_18]
mov [rax+10h], rcx
mov rcx, [rbp+var_18]
add rcx, 8
mov rax, [rbp+var_8]
mov [rax+68h], rcx
jmp short loc_267A9
loc_2677D:
mov rax, [rbp+var_8]
mov ecx, [rax+0A8h]
add ecx, 1
mov [rax+0A8h], ecx
loc_26790:
jmp short $+2
loc_26792:
jmp short $+2
loc_26794:
mov rax, [rbp+var_18]
mov qword ptr [rax+20h], 0
mov rdi, [rbp+var_20]
call inline_mysql_cond_signal
loc_267A9:
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov [rbp+var_18], rax
cmp rax, 0
jnz loc_266ED
mov rax, [rbp+var_8]
mov rax, [rax+68h]
mov qword ptr [rax], 0
mov rax, [rbp+var_8]
cmp qword ptr [rax+60h], 0
jnz short loc_267E8
mov rax, [rbp+var_8]
mov qword ptr [rax+0A0h], 0
loc_267E8:
add rsp, 20h
pop rbp
retn
|
long long free_all_read_locks(long long a1, char a2)
{
long long v2; // rax
long long result; // rax
long long v4; // [rsp+0h] [rbp-20h]
long long v5; // [rsp+8h] [rbp-18h]
v5 = *(_QWORD *)(a1 + 96);
**(_QWORD **)(a1 + 120) = v5;
*(_QWORD *)(v5 + 16) = *(_QWORD *)(a1 + 120);
*(_QWORD *)(a1 + 120) = *(_QWORD *)(a1 + 104);
*(_QWORD *)(a1 + 104) = a1 + 96;
do
{
v4 = *(_QWORD *)(v5 + 32);
if ( *(_DWORD *)(v5 + 64) != 5 )
goto LABEL_9;
if ( !a2 )
{
++*(_DWORD *)(a1 + 168);
LABEL_9:
*(_QWORD *)(v5 + 32) = 0LL;
inline_mysql_cond_signal(v4);
goto LABEL_10;
}
v2 = *(_QWORD *)(v5 + 8);
**(_QWORD **)(v5 + 16) = v2;
if ( v2 )
*(_QWORD *)(*(_QWORD *)(v5 + 8) + 16LL) = *(_QWORD *)(v5 + 16);
else
*(_QWORD *)(a1 + 120) = *(_QWORD *)(v5 + 16);
**(_QWORD **)(a1 + 104) = v5;
*(_QWORD *)(v5 + 16) = *(_QWORD *)(a1 + 104);
*(_QWORD *)(a1 + 104) = v5 + 8;
LABEL_10:
v5 = *(_QWORD *)(v5 + 8);
}
while ( v5 );
**(_QWORD **)(a1 + 104) = 0LL;
result = a1;
if ( !*(_QWORD *)(a1 + 96) )
{
result = a1;
*(_QWORD *)(a1 + 160) = 0LL;
}
return result;
}
|
free_all_read_locks:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV AL,SIL
MOV qword ptr [RBP + -0x8],RDI
MOV byte ptr [RBP + -0x9],AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x60]
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x78]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x68]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x78],RCX
MOV RCX,qword ptr [RBP + -0x8]
ADD RCX,0x60
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x68],RCX
LAB_001266ed:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX + 0x40],0x5
JNZ 0x00126790
CMP byte ptr [RBP + -0x9],0x0
JZ 0x0012677d
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX + 0x10]
MOV qword ptr [RCX],RAX
CMP RAX,0x0
JZ 0x0012673c
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x0012674c
LAB_0012673c:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x78],RCX
LAB_0012674c:
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x68]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x68]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RBP + -0x18]
ADD RCX,0x8
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x68],RCX
JMP 0x001267a9
LAB_0012677d:
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0xa8]
ADD ECX,0x1
MOV dword ptr [RAX + 0xa8],ECX
LAB_00126790:
JMP 0x00126792
LAB_00126792:
JMP 0x00126794
LAB_00126794:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x20],0x0
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00125d20
LAB_001267a9:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x18],RAX
CMP RAX,0x0
JNZ 0x001266ed
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x68]
MOV qword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x60],0x0
JNZ 0x001267e8
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xa0],0x0
LAB_001267e8:
ADD RSP,0x20
POP RBP
RET
|
void free_all_read_locks(long param_1,char param_2)
{
int8 uVar1;
long lVar2;
int8 local_20;
local_20 = *(long *)(param_1 + 0x60);
**(long **)(param_1 + 0x78) = local_20;
*(int8 *)(local_20 + 0x10) = *(int8 *)(param_1 + 0x78);
*(int8 *)(param_1 + 0x78) = *(int8 *)(param_1 + 0x68);
*(long *)(param_1 + 0x68) = param_1 + 0x60;
do {
uVar1 = *(int8 *)(local_20 + 0x20);
if (*(int *)(local_20 + 0x40) == 5) {
if (param_2 == '\0') {
*(int *)(param_1 + 0xa8) = *(int *)(param_1 + 0xa8) + 1;
goto LAB_00126794;
}
lVar2 = *(long *)(local_20 + 8);
**(long **)(local_20 + 0x10) = lVar2;
if (lVar2 == 0) {
*(int8 *)(param_1 + 0x78) = *(int8 *)(local_20 + 0x10);
}
else {
*(int8 *)(*(long *)(local_20 + 8) + 0x10) = *(int8 *)(local_20 + 0x10);
}
**(long **)(param_1 + 0x68) = local_20;
*(int8 *)(local_20 + 0x10) = *(int8 *)(param_1 + 0x68);
*(long *)(param_1 + 0x68) = local_20 + 8;
}
else {
LAB_00126794:
*(int8 *)(local_20 + 0x20) = 0;
inline_mysql_cond_signal(uVar1);
}
local_20 = *(long *)(local_20 + 8);
if (local_20 == 0) {
**(int8 **)(param_1 + 0x68) = 0;
if (*(long *)(param_1 + 0x60) == 0) {
*(int8 *)(param_1 + 0xa0) = 0;
}
return;
}
} while( true );
}
|
|
65,079 |
ma_skip_pack_key
|
eloqsql/storage/maria/ma_search.c
|
uchar *_ma_skip_pack_key(MARIA_KEY *key, uint page_flag,
uint nod_flag, uchar *page)
{
reg1 HA_KEYSEG *keyseg;
for (keyseg= key->keyinfo->seg ; keyseg->type ; keyseg++)
{
if (keyseg->flag & HA_PACK_KEY)
{
/* key with length, packed to previous key */
uint packed= *page & 128, length;
if (keyseg->length >= 127)
{
length= mi_uint2korr(page) & 32767;
page+= 2;
}
else
length= *page++ & 127;
if (packed)
{
if (length == 0) /* Same key */
continue;
get_key_length(length,page);
page+= length;
continue;
}
if ((keyseg->flag & HA_NULL_PART) && length)
{
/*
Keys that can have null use length+1 as the length for date as the
number 0 is reserved for keys that have a NULL value
*/
length--;
}
page+= length;
}
else
{
if (keyseg->flag & HA_NULL_PART)
if (!*page++)
continue;
if (keyseg->flag & (HA_SPACE_PACK | HA_BLOB_PART | HA_VAR_LENGTH_PART))
{
uint length;
get_key_length(length,page);
page+=length;
}
else
page+= keyseg->length;
}
}
page+= keyseg->length;
if ((page_flag & KEYPAGE_FLAG_HAS_TRANSID) && key_has_transid(page-1))
page+= transid_packed_length(page);
return page + nod_flag;
}
|
O0
|
c
|
ma_skip_pack_key:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq 0xc0(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
cmpb $0x0, 0x18(%rax)
je 0x98c14
movq -0x20(%rbp), %rax
movzwl 0x12(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x98b4a
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
andl $0x80, %eax
movl %eax, -0x24(%rbp)
movq -0x20(%rbp), %rax
movzwl 0x14(%rax), %eax
cmpl $0x7f, %eax
jl 0x98a86
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x18(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzwl %ax, %eax
andl $0x7fff, %eax # imm = 0x7FFF
movl %eax, -0x28(%rbp)
movq -0x18(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x18(%rbp)
jmp 0x98a9e
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movzbl (%rax), %eax
andl $0x7f, %eax
movl %eax, -0x28(%rbp)
cmpl $0x0, -0x24(%rbp)
je 0x98b16
cmpl $0x0, -0x28(%rbp)
jne 0x98aaf
jmp 0x98c03
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xff, %eax
je 0x98ad4
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movzbl (%rax), %eax
movl %eax, -0x28(%rbp)
jmp 0x98b01
movq -0x18(%rbp), %rax
movzbl 0x2(%rax), %eax
movzwl %ax, %eax
movq -0x18(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzwl %ax, %eax
movl %eax, -0x28(%rbp)
movq -0x18(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x18(%rbp)
movl -0x28(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
jmp 0x98c03
movq -0x20(%rbp), %rax
movzwl 0x12(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x98b35
cmpl $0x0, -0x28(%rbp)
je 0x98b35
movl -0x28(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
jmp 0x98c01
movq -0x20(%rbp), %rax
movzwl 0x12(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x98b75
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
cmpb $0x0, (%rax)
jne 0x98b73
jmp 0x98c03
jmp 0x98b75
movq -0x20(%rbp), %rax
movzwl 0x12(%rax), %eax
andl $0x29, %eax
cmpl $0x0, %eax
je 0x98be9
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xff, %eax
je 0x98baa
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movzbl (%rax), %eax
movl %eax, -0x2c(%rbp)
jmp 0x98bd7
movq -0x18(%rbp), %rax
movzbl 0x2(%rax), %eax
movzwl %ax, %eax
movq -0x18(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzwl %ax, %eax
movl %eax, -0x2c(%rbp)
movq -0x18(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x18(%rbp)
movl -0x2c(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
jmp 0x98bff
movq -0x20(%rbp), %rax
movzwl 0x14(%rax), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
jmp 0x98c01
jmp 0x98c03
movq -0x20(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x20(%rbp)
jmp 0x98a15
movq -0x20(%rbp), %rax
movzwl 0x14(%rax), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movl -0xc(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x98c7c
movq -0x18(%rbp), %rax
movzbl -0x1(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x98c7c
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xf3, %eax
jge 0x98c5d
movl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x98c6c
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
subl $0xf8, %eax
movl %eax, -0x30(%rbp)
movl -0x30(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl -0x10(%rbp), %ecx
addq %rcx, %rax
popq %rbp
retq
nopl (%rax,%rax)
|
_ma_skip_pack_key:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
mov [rbp+var_18], rcx
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov rax, [rax+0C0h]
mov [rbp+var_20], rax
loc_98A15:
mov rax, [rbp+var_20]
cmp byte ptr [rax+18h], 0
jz loc_98C14
mov rax, [rbp+var_20]
movzx eax, word ptr [rax+12h]
and eax, 2
cmp eax, 0
jz loc_98B4A
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
and eax, 80h
mov [rbp+var_24], eax
mov rax, [rbp+var_20]
movzx eax, word ptr [rax+14h]
cmp eax, 7Fh
jl short loc_98A86
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
movzx eax, ax
and eax, 7FFFh
mov [rbp+var_28], eax
mov rax, [rbp+var_18]
add rax, 2
mov [rbp+var_18], rax
jmp short loc_98A9E
loc_98A86:
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
movzx eax, byte ptr [rax]
and eax, 7Fh
mov [rbp+var_28], eax
loc_98A9E:
cmp [rbp+var_24], 0
jz short loc_98B16
cmp [rbp+var_28], 0
jnz short loc_98AAF
jmp loc_98C03
loc_98AAF:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
cmp eax, 0FFh
jz short loc_98AD4
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
movzx eax, byte ptr [rax]
mov [rbp+var_28], eax
jmp short loc_98B01
loc_98AD4:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+2]
movzx eax, ax
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+1]
movzx ecx, cx
shl ecx, 8
or eax, ecx
movzx eax, ax
mov [rbp+var_28], eax
mov rax, [rbp+var_18]
add rax, 3
mov [rbp+var_18], rax
loc_98B01:
mov ecx, [rbp+var_28]
mov rax, [rbp+var_18]
mov ecx, ecx
add rax, rcx
mov [rbp+var_18], rax
jmp loc_98C03
loc_98B16:
mov rax, [rbp+var_20]
movzx eax, word ptr [rax+12h]
and eax, 10h
cmp eax, 0
jz short loc_98B35
cmp [rbp+var_28], 0
jz short loc_98B35
mov eax, [rbp+var_28]
add eax, 0FFFFFFFFh
mov [rbp+var_28], eax
loc_98B35:
mov ecx, [rbp+var_28]
mov rax, [rbp+var_18]
mov ecx, ecx
add rax, rcx
mov [rbp+var_18], rax
jmp loc_98C01
loc_98B4A:
mov rax, [rbp+var_20]
movzx eax, word ptr [rax+12h]
and eax, 10h
cmp eax, 0
jz short loc_98B75
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
cmp byte ptr [rax], 0
jnz short loc_98B73
jmp loc_98C03
loc_98B73:
jmp short $+2
loc_98B75:
mov rax, [rbp+var_20]
movzx eax, word ptr [rax+12h]
and eax, 29h
cmp eax, 0
jz short loc_98BE9
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
cmp eax, 0FFh
jz short loc_98BAA
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
movzx eax, byte ptr [rax]
mov [rbp+var_2C], eax
jmp short loc_98BD7
loc_98BAA:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+2]
movzx eax, ax
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+1]
movzx ecx, cx
shl ecx, 8
or eax, ecx
movzx eax, ax
mov [rbp+var_2C], eax
mov rax, [rbp+var_18]
add rax, 3
mov [rbp+var_18], rax
loc_98BD7:
mov ecx, [rbp+var_2C]
mov rax, [rbp+var_18]
mov ecx, ecx
add rax, rcx
mov [rbp+var_18], rax
jmp short loc_98BFF
loc_98BE9:
mov rax, [rbp+var_20]
movzx ecx, word ptr [rax+14h]
mov rax, [rbp+var_18]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_18], rax
loc_98BFF:
jmp short $+2
loc_98C01:
jmp short $+2
loc_98C03:
mov rax, [rbp+var_20]
add rax, 20h ; ' '
mov [rbp+var_20], rax
jmp loc_98A15
loc_98C14:
mov rax, [rbp+var_20]
movzx ecx, word ptr [rax+14h]
mov rax, [rbp+var_18]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_18], rax
mov eax, [rbp+var_C]
and eax, 2
cmp eax, 0
jz short loc_98C7C
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax-1]
and eax, 1
cmp eax, 0
jz short loc_98C7C
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
cmp eax, 0F3h
jge short loc_98C5D
mov eax, 1
mov [rbp+var_30], eax
jmp short loc_98C6C
loc_98C5D:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
sub eax, 0F8h
mov [rbp+var_30], eax
loc_98C6C:
mov ecx, [rbp+var_30]
mov rax, [rbp+var_18]
mov ecx, ecx
add rax, rcx
mov [rbp+var_18], rax
loc_98C7C:
mov rax, [rbp+var_18]
mov ecx, [rbp+var_10]
add rax, rcx
pop rbp
retn
|
unsigned __int8 * ma_skip_pack_key(long long a1, char a2, int a3, unsigned __int16 *a4)
{
unsigned __int16 *v4; // rax
unsigned __int16 *v5; // rax
unsigned __int16 *v6; // rax
unsigned __int16 *v7; // rax
unsigned int v9; // [rsp+0h] [rbp-30h]
int v10; // [rsp+4h] [rbp-2Ch]
unsigned int v11; // [rsp+8h] [rbp-28h]
int v12; // [rsp+8h] [rbp-28h]
int v13; // [rsp+Ch] [rbp-24h]
long long i; // [rsp+10h] [rbp-20h]
char *v16; // [rsp+18h] [rbp-18h]
char *v17; // [rsp+18h] [rbp-18h]
unsigned __int8 *v18; // [rsp+18h] [rbp-18h]
for ( i = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 192LL); *(_BYTE *)(i + 24); i += 32LL )
{
if ( (*(_WORD *)(i + 18) & 2) != 0 )
{
v13 = *(_BYTE *)a4 & 0x80;
if ( *(unsigned __int16 *)(i + 20) < 0x7Fu )
{
v4 = a4;
a4 = (unsigned __int16 *)((char *)a4 + 1);
v11 = *(_BYTE *)v4 & 0x7F;
}
else
{
v11 = _byteswap_ushort(*a4++) & 0x7FFF;
}
if ( v13 )
{
if ( v11 )
{
if ( *(unsigned __int8 *)a4 == 255 )
{
v12 = _byteswap_ushort(*(unsigned __int16 *)((char *)a4 + 1));
v16 = (char *)a4 + 3;
}
else
{
v5 = a4;
v16 = (char *)a4 + 1;
v12 = *(unsigned __int8 *)v5;
}
a4 = (unsigned __int16 *)&v16[v12];
}
}
else
{
if ( (*(_WORD *)(i + 18) & 0x10) != 0 && v11 )
--v11;
a4 = (unsigned __int16 *)((char *)a4 + v11);
}
}
else if ( (*(_WORD *)(i + 18) & 0x10) == 0 || (v6 = a4, a4 = (unsigned __int16 *)((char *)a4 + 1), *(_BYTE *)v6) )
{
if ( (*(_WORD *)(i + 18) & 0x29) != 0 )
{
if ( *(unsigned __int8 *)a4 == 255 )
{
v10 = _byteswap_ushort(*(unsigned __int16 *)((char *)a4 + 1));
v17 = (char *)a4 + 3;
}
else
{
v7 = a4;
v17 = (char *)a4 + 1;
v10 = *(unsigned __int8 *)v7;
}
a4 = (unsigned __int16 *)&v17[v10];
}
else
{
a4 = (unsigned __int16 *)((char *)a4 + *(unsigned __int16 *)(i + 20));
}
}
}
v18 = (unsigned __int8 *)a4 + *(unsigned __int16 *)(i + 20);
if ( (a2 & 2) != 0 && (*(v18 - 1) & 1) != 0 )
{
if ( *v18 >= 0xF3u )
v9 = *v18 - 248;
else
v9 = 1;
v18 += v9;
}
return &v18[a3];
}
|
_ma_skip_pack_key:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
MOV qword ptr [RBP + -0x18],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0xc0]
MOV qword ptr [RBP + -0x20],RAX
LAB_00198a15:
MOV RAX,qword ptr [RBP + -0x20]
CMP byte ptr [RAX + 0x18],0x0
JZ 0x00198c14
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,word ptr [RAX + 0x12]
AND EAX,0x2
CMP EAX,0x0
JZ 0x00198b4a
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
AND EAX,0x80
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,word ptr [RAX + 0x14]
CMP EAX,0x7f
JL 0x00198a86
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVZX EAX,AX
AND EAX,0x7fff
MOV dword ptr [RBP + -0x28],EAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x2
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00198a9e
LAB_00198a86:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x18],RCX
MOVZX EAX,byte ptr [RAX]
AND EAX,0x7f
MOV dword ptr [RBP + -0x28],EAX
LAB_00198a9e:
CMP dword ptr [RBP + -0x24],0x0
JZ 0x00198b16
CMP dword ptr [RBP + -0x28],0x0
JNZ 0x00198aaf
JMP 0x00198c03
LAB_00198aaf:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xff
JZ 0x00198ad4
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x18],RCX
MOVZX EAX,byte ptr [RAX]
MOV dword ptr [RBP + -0x28],EAX
JMP 0x00198b01
LAB_00198ad4:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x2]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x1]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVZX EAX,AX
MOV dword ptr [RBP + -0x28],EAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x3
MOV qword ptr [RBP + -0x18],RAX
LAB_00198b01:
MOV ECX,dword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00198c03
LAB_00198b16:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,word ptr [RAX + 0x12]
AND EAX,0x10
CMP EAX,0x0
JZ 0x00198b35
CMP dword ptr [RBP + -0x28],0x0
JZ 0x00198b35
MOV EAX,dword ptr [RBP + -0x28]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x28],EAX
LAB_00198b35:
MOV ECX,dword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00198c01
LAB_00198b4a:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,word ptr [RAX + 0x12]
AND EAX,0x10
CMP EAX,0x0
JZ 0x00198b75
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x18],RCX
CMP byte ptr [RAX],0x0
JNZ 0x00198b73
JMP 0x00198c03
LAB_00198b73:
JMP 0x00198b75
LAB_00198b75:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,word ptr [RAX + 0x12]
AND EAX,0x29
CMP EAX,0x0
JZ 0x00198be9
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xff
JZ 0x00198baa
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x18],RCX
MOVZX EAX,byte ptr [RAX]
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x00198bd7
LAB_00198baa:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x2]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x1]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVZX EAX,AX
MOV dword ptr [RBP + -0x2c],EAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x3
MOV qword ptr [RBP + -0x18],RAX
LAB_00198bd7:
MOV ECX,dword ptr [RBP + -0x2c]
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00198bff
LAB_00198be9:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX ECX,word ptr [RAX + 0x14]
MOV RAX,qword ptr [RBP + -0x18]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
LAB_00198bff:
JMP 0x00198c01
LAB_00198c01:
JMP 0x00198c03
LAB_00198c03:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x20
MOV qword ptr [RBP + -0x20],RAX
JMP 0x00198a15
LAB_00198c14:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX ECX,word ptr [RAX + 0x14]
MOV RAX,qword ptr [RBP + -0x18]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
MOV EAX,dword ptr [RBP + -0xc]
AND EAX,0x2
CMP EAX,0x0
JZ 0x00198c7c
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + -0x1]
AND EAX,0x1
CMP EAX,0x0
JZ 0x00198c7c
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xf3
JGE 0x00198c5d
MOV EAX,0x1
MOV dword ptr [RBP + -0x30],EAX
JMP 0x00198c6c
LAB_00198c5d:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
SUB EAX,0xf8
MOV dword ptr [RBP + -0x30],EAX
LAB_00198c6c:
MOV ECX,dword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
LAB_00198c7c:
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x10]
ADD RAX,RCX
POP RBP
RET
|
byte * _ma_skip_pack_key(long param_1,uint param_2,uint param_3,byte *param_4)
{
byte bVar1;
byte *pbVar2;
uint local_38;
uint local_34;
uint local_30;
long local_28;
byte *local_20;
local_20 = param_4;
for (local_28 = *(long *)(*(long *)(param_1 + 8) + 0xc0); *(char *)(local_28 + 0x18) != '\0';
local_28 = local_28 + 0x20) {
if ((*(ushort *)(local_28 + 0x12) & 2) == 0) {
if (((*(ushort *)(local_28 + 0x12) & 0x10) == 0) ||
(pbVar2 = local_20 + 1, bVar1 = *local_20, local_20 = pbVar2, bVar1 != 0)) {
if ((*(ushort *)(local_28 + 0x12) & 0x29) == 0) {
local_20 = local_20 + (int)(uint)*(ushort *)(local_28 + 0x14);
}
else {
if (*local_20 == 0xff) {
local_34 = (uint)CONCAT11(local_20[1],local_20[2]);
local_20 = local_20 + 3;
}
else {
local_34 = (uint)*local_20;
local_20 = local_20 + 1;
}
local_20 = local_20 + local_34;
}
}
}
else {
bVar1 = *local_20;
if (*(ushort *)(local_28 + 0x14) < 0x7f) {
local_30 = *local_20 & 0x7f;
local_20 = local_20 + 1;
}
else {
local_30 = (uint)local_20[1] | (*local_20 & 0x7f) << 8;
local_20 = local_20 + 2;
}
if ((bVar1 & 0x80) == 0) {
if (((*(ushort *)(local_28 + 0x12) & 0x10) != 0) && (local_30 != 0)) {
local_30 = local_30 - 1;
}
local_20 = local_20 + local_30;
}
else if (local_30 != 0) {
if (*local_20 == 0xff) {
local_30 = (uint)CONCAT11(local_20[1],local_20[2]);
local_20 = local_20 + 3;
}
else {
local_30 = (uint)*local_20;
local_20 = local_20 + 1;
}
local_20 = local_20 + local_30;
}
}
}
local_20 = local_20 + (int)(uint)*(ushort *)(local_28 + 0x14);
if (((param_2 & 2) != 0) && ((local_20[-1] & 1) != 0)) {
if (*local_20 < 0xf3) {
local_38 = 1;
}
else {
local_38 = *local_20 - 0xf8;
}
local_20 = local_20 + local_38;
}
return local_20 + param_3;
}
|
|
65,080 |
mi_ft_update
|
eloqsql/storage/myisam/ft_update.c
|
int _mi_ft_update(MI_INFO *info, uint keynr, uchar *keybuf,
const uchar *oldrec, const uchar *newrec, my_off_t pos)
{
int error= -1;
FT_WORD *oldlist,*newlist, *old_word, *new_word;
CHARSET_INFO *cs=info->s->keyinfo[keynr].seg->charset;
uint key_length;
int cmp, cmp2;
DBUG_ENTER("_mi_ft_update");
if (!(old_word=oldlist=_mi_ft_parserecord(info, keynr, oldrec,
&info->ft_memroot)) ||
!(new_word=newlist=_mi_ft_parserecord(info, keynr, newrec,
&info->ft_memroot)))
goto err;
error=0;
while(old_word->pos && new_word->pos)
{
cmp= ha_compare_text(cs, (uchar*) old_word->pos,old_word->len,
(uchar*) new_word->pos,new_word->len,0);
cmp2= cmp ? 0 : (fabs(old_word->weight - new_word->weight) > 1.e-5);
if (cmp < 0 || cmp2)
{
key_length=_ft_make_key(info,keynr,keybuf,old_word,pos);
if ((error=_mi_ck_delete(info,keynr,(uchar*) keybuf,key_length)))
goto err;
}
if (cmp > 0 || cmp2)
{
key_length=_ft_make_key(info,keynr,keybuf,new_word,pos);
if ((error=_mi_ck_write(info,keynr,(uchar*) keybuf,key_length)))
goto err;
}
if (cmp<=0) old_word++;
if (cmp>=0) new_word++;
}
if (old_word->pos)
error=_mi_ft_erase(info,keynr,keybuf,old_word,pos);
else if (new_word->pos)
error=_mi_ft_store(info,keynr,keybuf,new_word,pos);
err:
free_root(&info->ft_memroot, MYF(MY_MARK_BLOCKS_FREE));
DBUG_RETURN(error);
}
|
O0
|
c
|
mi_ft_update:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movl $0xffffffff, -0x34(%rbp) # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x218(%rax), %rax
movl -0xc(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq 0x28(%rax), %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x20(%rbp), %rdx
movq -0x8(%rbp), %rcx
addq $0x90, %rcx
callq 0x63120
movq %rax, -0x40(%rbp)
movq %rax, -0x50(%rbp)
cmpq $0x0, %rax
je 0x6337e
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x28(%rbp), %rdx
movq -0x8(%rbp), %rcx
addq $0x90, %rcx
callq 0x63120
movq %rax, -0x48(%rbp)
movq %rax, -0x58(%rbp)
cmpq $0x0, %rax
jne 0x63383
jmp 0x6352f
movl $0x0, -0x34(%rbp)
movq -0x50(%rbp), %rcx
xorl %eax, %eax
cmpq $0x0, (%rcx)
movb %al, -0x6d(%rbp)
je 0x633a7
movq -0x58(%rbp), %rax
cmpq $0x0, (%rax)
setne %al
movb %al, -0x6d(%rbp)
movb -0x6d(%rbp), %al
testb $0x1, %al
jne 0x633b3
jmp 0x634df
movq -0x60(%rbp), %rdi
movq -0x50(%rbp), %rax
movq (%rax), %rsi
movq -0x50(%rbp), %rax
movq 0x10(%rax), %rdx
movq -0x58(%rbp), %rax
movq (%rax), %rcx
movq -0x58(%rbp), %rax
movq 0x10(%rax), %r8
xorl %r9d, %r9d
callq 0x7d1a0
movl %eax, -0x68(%rbp)
cmpl $0x0, -0x68(%rbp)
je 0x633ed
xorl %eax, %eax
movl %eax, -0x74(%rbp)
jmp 0x63421
movq -0x50(%rbp), %rax
movsd 0x8(%rax), %xmm0
movq -0x58(%rbp), %rax
subsd 0x8(%rax), %xmm0
movaps 0x7b07a(%rip), %xmm1 # 0xde480
pand %xmm1, %xmm0
movsd 0x7af56(%rip), %xmm1 # 0xde368
ucomisd %xmm1, %xmm0
seta %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x74(%rbp)
movl -0x74(%rbp), %eax
movl %eax, -0x6c(%rbp)
cmpl $0x0, -0x68(%rbp)
jl 0x63433
cmpl $0x0, -0x6c(%rbp)
je 0x63470
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x50(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x63560
movl %eax, -0x64(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movl -0x64(%rbp), %ecx
callq 0x2d1b0
movl %eax, -0x34(%rbp)
cmpl $0x0, %eax
je 0x6346e
jmp 0x6352f
jmp 0x63470
cmpl $0x0, -0x68(%rbp)
jg 0x6347c
cmpl $0x0, -0x6c(%rbp)
je 0x634b6
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x58(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x63560
movl %eax, -0x64(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movl -0x64(%rbp), %ecx
callq 0x50410
movl %eax, -0x34(%rbp)
cmpl $0x0, %eax
je 0x634b4
jmp 0x6352f
jmp 0x634b6
cmpl $0x0, -0x68(%rbp)
jg 0x634c8
movq -0x50(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x50(%rbp)
cmpl $0x0, -0x68(%rbp)
jl 0x634da
movq -0x58(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x58(%rbp)
jmp 0x6338a
movq -0x50(%rbp), %rax
cmpq $0x0, (%rax)
je 0x63506
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x50(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x636b0
movl %eax, -0x34(%rbp)
jmp 0x6352d
movq -0x58(%rbp), %rax
cmpq $0x0, (%rax)
je 0x6352b
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x58(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x63740
movl %eax, -0x34(%rbp)
jmp 0x6352d
jmp 0x6352f
movq -0x8(%rbp), %rdi
addq $0x90, %rdi
movl $0x2, %esi
callq 0x7bea0
movl -0x34(%rbp), %eax
movl %eax, -0x78(%rbp)
movl -0x78(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_mi_ft_update:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov [rbp+var_34], 0FFFFFFFFh
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+218h]
mov ecx, [rbp+var_C]
imul rcx, 70h ; 'p'
add rax, rcx
mov rax, [rax+28h]
mov rax, [rax]
mov [rbp+var_60], rax
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_8]
add rcx, 90h
call _mi_ft_parserecord
mov [rbp+var_40], rax
mov [rbp+var_50], rax
cmp rax, 0
jz short loc_6337E
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_8]
add rcx, 90h
call _mi_ft_parserecord
mov [rbp+var_48], rax
mov [rbp+var_58], rax
cmp rax, 0
jnz short loc_63383
loc_6337E:
jmp loc_6352F
loc_63383:
mov [rbp+var_34], 0
loc_6338A:
mov rcx, [rbp+var_50]
xor eax, eax
cmp qword ptr [rcx], 0
mov [rbp+var_6D], al
jz short loc_633A7
mov rax, [rbp+var_58]
cmp qword ptr [rax], 0
setnz al
mov [rbp+var_6D], al
loc_633A7:
mov al, [rbp+var_6D]
test al, 1
jnz short loc_633B3
jmp loc_634DF
loc_633B3:
mov rdi, [rbp+var_60]
mov rax, [rbp+var_50]
mov rsi, [rax]
mov rax, [rbp+var_50]
mov rdx, [rax+10h]
mov rax, [rbp+var_58]
mov rcx, [rax]
mov rax, [rbp+var_58]
mov r8, [rax+10h]
xor r9d, r9d
call ha_compare_text
mov [rbp+var_68], eax
cmp [rbp+var_68], 0
jz short loc_633ED
xor eax, eax
mov [rbp+var_74], eax
jmp short loc_63421
loc_633ED:
mov rax, [rbp+var_50]
movsd xmm0, qword ptr [rax+8]
mov rax, [rbp+var_58]
subsd xmm0, qword ptr [rax+8]
movaps xmm1, cs:xmmword_DE480
pand xmm0, xmm1
movsd xmm1, cs:qword_DE368
ucomisd xmm0, xmm1
setnbe al
and al, 1
movzx eax, al
mov [rbp+var_74], eax
loc_63421:
mov eax, [rbp+var_74]
mov [rbp+var_6C], eax
cmp [rbp+var_68], 0
jl short loc_63433
cmp [rbp+var_6C], 0
jz short loc_63470
loc_63433:
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_50]
mov r8, [rbp+var_30]
call _ft_make_key
mov [rbp+var_64], eax
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov ecx, [rbp+var_64]
call _mi_ck_delete
mov [rbp+var_34], eax
cmp eax, 0
jz short loc_6346E
jmp loc_6352F
loc_6346E:
jmp short $+2
loc_63470:
cmp [rbp+var_68], 0
jg short loc_6347C
cmp [rbp+var_6C], 0
jz short loc_634B6
loc_6347C:
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_58]
mov r8, [rbp+var_30]
call _ft_make_key
mov [rbp+var_64], eax
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov ecx, [rbp+var_64]
call _mi_ck_write
mov [rbp+var_34], eax
cmp eax, 0
jz short loc_634B4
jmp short loc_6352F
loc_634B4:
jmp short $+2
loc_634B6:
cmp [rbp+var_68], 0
jg short loc_634C8
mov rax, [rbp+var_50]
add rax, 18h
mov [rbp+var_50], rax
loc_634C8:
cmp [rbp+var_68], 0
jl short loc_634DA
mov rax, [rbp+var_58]
add rax, 18h
mov [rbp+var_58], rax
loc_634DA:
jmp loc_6338A
loc_634DF:
mov rax, [rbp+var_50]
cmp qword ptr [rax], 0
jz short loc_63506
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_50]
mov r8, [rbp+var_30]
call _mi_ft_erase
mov [rbp+var_34], eax
jmp short loc_6352D
loc_63506:
mov rax, [rbp+var_58]
cmp qword ptr [rax], 0
jz short loc_6352B
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_58]
mov r8, [rbp+var_30]
call _mi_ft_store
mov [rbp+var_34], eax
loc_6352B:
jmp short $+2
loc_6352D:
jmp short $+2
loc_6352F:
mov rdi, [rbp+var_8]
add rdi, 90h
mov esi, 2
call free_root
mov eax, [rbp+var_34]
mov [rbp+var_78], eax
mov eax, [rbp+var_78]
add rsp, 80h
pop rbp
retn
|
long long mi_ft_update(_QWORD *a1, unsigned int a2, long long a3, long long a4, long long a5, long long a6)
{
__m128i v6; // xmm0
BOOL v8; // [rsp+Ch] [rbp-74h]
bool v9; // [rsp+13h] [rbp-6Dh]
int v10; // [rsp+18h] [rbp-68h]
unsigned int key; // [rsp+1Ch] [rbp-64h]
unsigned int v12; // [rsp+1Ch] [rbp-64h]
long long v13; // [rsp+20h] [rbp-60h]
long long v14; // [rsp+28h] [rbp-58h]
_QWORD *v15; // [rsp+30h] [rbp-50h]
unsigned int v16; // [rsp+4Ch] [rbp-34h]
v16 = -1;
v13 = **(_QWORD **)(112LL * a2 + *(_QWORD *)(*a1 + 536LL) + 40);
v15 = (_QWORD *)mi_ft_parserecord(a1, a2, a4, (long long)(a1 + 18));
if ( v15 )
{
v14 = mi_ft_parserecord(a1, a2, a5, (long long)(a1 + 18));
if ( v14 )
{
v16 = 0;
while ( 1 )
{
v9 = 0;
if ( *v15 )
v9 = *(_QWORD *)v14 != 0LL;
if ( !v9 )
break;
v10 = ha_compare_text(v13, *v15, v15[2], *(_QWORD *)v14, *(_QWORD *)(v14 + 16), 0LL);
if ( v10 )
{
v8 = 0;
}
else
{
v6 = (__m128i)(unsigned long long)v15[1];
*(double *)v6.m128i_i64 = *(double *)v6.m128i_i64 - *(double *)(v14 + 8);
v8 = *(double *)_mm_and_si128(v6, (__m128i)xmmword_DE480).m128i_i64 > 0.00001;
}
if ( v10 < 0 || v8 )
{
key = ft_make_key(a1, a2, a3, v15, a6);
v16 = mi_ck_delete((long long)a1, a2, a3, key);
if ( v16 )
goto LABEL_26;
}
if ( v10 > 0 || v8 )
{
v12 = ft_make_key(a1, a2, a3, v14, a6);
v16 = mi_ck_write((long long)a1, a2, a3, v12);
if ( v16 )
goto LABEL_26;
}
if ( v10 <= 0 )
v15 += 3;
if ( v10 >= 0 )
v14 += 24LL;
}
if ( *v15 )
{
v16 = mi_ft_erase(a1, a2, a3, v15, a6);
}
else if ( *(_QWORD *)v14 )
{
v16 = mi_ft_store(a1, a2, a3, v14, a6);
}
}
}
LABEL_26:
free_root(a1 + 18, 2LL);
return v16;
}
|
_mi_ft_update:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV dword ptr [RBP + -0x34],0xffffffff
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV ECX,dword ptr [RBP + -0xc]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x60],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x8]
ADD RCX,0x90
CALL 0x00163120
MOV qword ptr [RBP + -0x40],RAX
MOV qword ptr [RBP + -0x50],RAX
CMP RAX,0x0
JZ 0x0016337e
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x8]
ADD RCX,0x90
CALL 0x00163120
MOV qword ptr [RBP + -0x48],RAX
MOV qword ptr [RBP + -0x58],RAX
CMP RAX,0x0
JNZ 0x00163383
LAB_0016337e:
JMP 0x0016352f
LAB_00163383:
MOV dword ptr [RBP + -0x34],0x0
LAB_0016338a:
MOV RCX,qword ptr [RBP + -0x50]
XOR EAX,EAX
CMP qword ptr [RCX],0x0
MOV byte ptr [RBP + -0x6d],AL
JZ 0x001633a7
MOV RAX,qword ptr [RBP + -0x58]
CMP qword ptr [RAX],0x0
SETNZ AL
MOV byte ptr [RBP + -0x6d],AL
LAB_001633a7:
MOV AL,byte ptr [RBP + -0x6d]
TEST AL,0x1
JNZ 0x001633b3
JMP 0x001634df
LAB_001633b3:
MOV RDI,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RBP + -0x50]
MOV RSI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x58]
MOV R8,qword ptr [RAX + 0x10]
XOR R9D,R9D
CALL 0x0017d1a0
MOV dword ptr [RBP + -0x68],EAX
CMP dword ptr [RBP + -0x68],0x0
JZ 0x001633ed
XOR EAX,EAX
MOV dword ptr [RBP + -0x74],EAX
JMP 0x00163421
LAB_001633ed:
MOV RAX,qword ptr [RBP + -0x50]
MOVSD XMM0,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x58]
SUBSD XMM0,qword ptr [RAX + 0x8]
MOVAPS XMM1,xmmword ptr [0x001de480]
PAND XMM0,XMM1
MOVSD XMM1,qword ptr [0x001de368]
UCOMISD XMM0,XMM1
SETA AL
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RBP + -0x74],EAX
LAB_00163421:
MOV EAX,dword ptr [RBP + -0x74]
MOV dword ptr [RBP + -0x6c],EAX
CMP dword ptr [RBP + -0x68],0x0
JL 0x00163433
CMP dword ptr [RBP + -0x6c],0x0
JZ 0x00163470
LAB_00163433:
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x50]
MOV R8,qword ptr [RBP + -0x30]
CALL 0x00163560
MOV dword ptr [RBP + -0x64],EAX
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x64]
CALL 0x0012d1b0
MOV dword ptr [RBP + -0x34],EAX
CMP EAX,0x0
JZ 0x0016346e
JMP 0x0016352f
LAB_0016346e:
JMP 0x00163470
LAB_00163470:
CMP dword ptr [RBP + -0x68],0x0
JG 0x0016347c
CMP dword ptr [RBP + -0x6c],0x0
JZ 0x001634b6
LAB_0016347c:
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x58]
MOV R8,qword ptr [RBP + -0x30]
CALL 0x00163560
MOV dword ptr [RBP + -0x64],EAX
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x64]
CALL 0x00150410
MOV dword ptr [RBP + -0x34],EAX
CMP EAX,0x0
JZ 0x001634b4
JMP 0x0016352f
LAB_001634b4:
JMP 0x001634b6
LAB_001634b6:
CMP dword ptr [RBP + -0x68],0x0
JG 0x001634c8
MOV RAX,qword ptr [RBP + -0x50]
ADD RAX,0x18
MOV qword ptr [RBP + -0x50],RAX
LAB_001634c8:
CMP dword ptr [RBP + -0x68],0x0
JL 0x001634da
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,0x18
MOV qword ptr [RBP + -0x58],RAX
LAB_001634da:
JMP 0x0016338a
LAB_001634df:
MOV RAX,qword ptr [RBP + -0x50]
CMP qword ptr [RAX],0x0
JZ 0x00163506
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x50]
MOV R8,qword ptr [RBP + -0x30]
CALL 0x001636b0
MOV dword ptr [RBP + -0x34],EAX
JMP 0x0016352d
LAB_00163506:
MOV RAX,qword ptr [RBP + -0x58]
CMP qword ptr [RAX],0x0
JZ 0x0016352b
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x58]
MOV R8,qword ptr [RBP + -0x30]
CALL 0x00163740
MOV dword ptr [RBP + -0x34],EAX
LAB_0016352b:
JMP 0x0016352d
LAB_0016352d:
JMP 0x0016352f
LAB_0016352f:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x90
MOV ESI,0x2
CALL 0x0017bea0
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x78],EAX
MOV EAX,dword ptr [RBP + -0x78]
ADD RSP,0x80
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
int _mi_ft_update(long *param_1,uint param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6)
{
int8 uVar1;
int iVar2;
int4 uVar3;
bool bVar4;
long *local_60;
long *local_58;
int local_3c;
local_3c = -1;
uVar1 = **(int8 **)(*(long *)(*param_1 + 0x218) + (ulong)param_2 * 0x70 + 0x28);
local_58 = (long *)_mi_ft_parserecord(param_1,param_2,param_4,param_1 + 0x12);
if ((local_58 != (long *)0x0) &&
(local_60 = (long *)_mi_ft_parserecord(param_1,param_2,param_5,param_1 + 0x12),
local_60 != (long *)0x0)) {
local_3c = 0;
while( true ) {
bVar4 = false;
if (*local_58 != 0) {
bVar4 = *local_60 != 0;
}
if (!bVar4) break;
iVar2 = ha_compare_text(uVar1,*local_58,local_58[2],*local_60,local_60[2],0);
if (iVar2 == 0) {
bVar4 = DAT_001de368 <
(double)((ulong)((double)local_58[1] - (double)local_60[1]) & _DAT_001de480);
}
else {
bVar4 = false;
}
if ((iVar2 < 0) || (bVar4)) {
uVar3 = _ft_make_key(param_1,param_2,param_3,local_58,param_6);
local_3c = _mi_ck_delete(param_1,param_2,param_3,uVar3);
if (local_3c != 0) goto LAB_0016352f;
}
if ((0 < iVar2) || (bVar4)) {
uVar3 = _ft_make_key(param_1,param_2,param_3,local_60,param_6);
local_3c = _mi_ck_write(param_1,param_2,param_3,uVar3);
if (local_3c != 0) goto LAB_0016352f;
}
if (iVar2 < 1) {
local_58 = local_58 + 3;
}
if (-1 < iVar2) {
local_60 = local_60 + 3;
}
}
if (*local_58 == 0) {
if (*local_60 != 0) {
local_3c = _mi_ft_store(param_1,param_2,param_3,local_60,param_6);
}
}
else {
local_3c = _mi_ft_erase(param_1,param_2,param_3,local_58,param_6);
}
}
LAB_0016352f:
free_root(param_1 + 0x12,2);
return local_3c;
}
|
|
65,081 |
js_object_defineProperties
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_object_defineProperties(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
// defineProperties(obj, properties)
JSValue obj = argv[0];
if (JS_ObjectDefineProperties(ctx, obj, argv[1]))
return JS_EXCEPTION;
else
return js_dup(obj);
}
|
O1
|
c
|
js_object_defineProperties:
pushq %r14
pushq %rbx
pushq %rax
movq (%r8), %r14
movq 0x8(%r8), %rbx
movq 0x10(%r8), %rcx
movq 0x18(%r8), %r8
movq %r14, %rsi
movq %rbx, %rdx
callq 0x710f1
testl %eax, %eax
je 0x6ffa9
movl $0x6, %ebx
xorl %r14d, %r14d
jmp 0x6ffb8
movq %r14, (%rsp)
cmpl $-0x9, %ebx
jb 0x6ffb8
movq (%rsp), %rax
incl (%rax)
movq %r14, %rax
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
js_object_defineProperties:
push r14
push rbx
push rax
mov r14, [r8]
mov rbx, [r8+8]
mov rcx, [r8+10h]
mov r8, [r8+18h]
mov rsi, r14
mov rdx, rbx
call JS_ObjectDefineProperties
test eax, eax
jz short loc_6FFA9
mov ebx, 6
xor r14d, r14d
jmp short loc_6FFB8
loc_6FFA9:
mov [rsp+18h+var_18], r14
cmp ebx, 0FFFFFFF7h
jb short loc_6FFB8
mov rax, [rsp+18h+var_18]
inc dword ptr [rax]
loc_6FFB8:
mov rax, r14
mov rdx, rbx
add rsp, 8
pop rbx
pop r14
retn
|
_DWORD * js_object_defineProperties(long long a1, long long a2, long long a3, long long a4, _QWORD *a5)
{
_DWORD *v5; // r14
long long v6; // rbx
v5 = (_DWORD *)*a5;
v6 = a5[1];
if ( (unsigned int)JS_ObjectDefineProperties(a1, *a5, v6, a5[2]) )
return 0LL;
if ( (unsigned int)v6 >= 0xFFFFFFF7 )
++*v5;
return v5;
}
|
js_object_defineProperties:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,qword ptr [R8]
MOV RBX,qword ptr [R8 + 0x8]
MOV RCX,qword ptr [R8 + 0x10]
MOV R8,qword ptr [R8 + 0x18]
MOV RSI,R14
MOV RDX,RBX
CALL 0x001710f1
TEST EAX,EAX
JZ 0x0016ffa9
MOV EBX,0x6
XOR R14D,R14D
JMP 0x0016ffb8
LAB_0016ffa9:
MOV qword ptr [RSP],R14
CMP EBX,-0x9
JC 0x0016ffb8
MOV RAX,qword ptr [RSP]
INC dword ptr [RAX]
LAB_0016ffb8:
MOV RAX,R14
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R14
RET
|
int1 [16] js_object_defineProperties(int8 param_1)
{
int iVar1;
int8 uVar2;
int8 *in_R8;
int *piVar3;
int1 auVar4 [16];
piVar3 = (int *)*in_R8;
uVar2 = in_R8[1];
iVar1 = JS_ObjectDefineProperties(param_1,piVar3,uVar2,in_R8[2],in_R8[3]);
if (iVar1 == 0) {
if (0xfffffff6 < (uint)uVar2) {
*piVar3 = *piVar3 + 1;
}
}
else {
uVar2 = 6;
piVar3 = (int *)0x0;
}
auVar4._8_8_ = uVar2;
auVar4._0_8_ = piVar3;
return auVar4;
}
|
|
65,082 |
my_strntol_8bit
|
eloqsql/strings/ctype-simple.c
|
long my_strntol_8bit(CHARSET_INFO *cs,
const char *nptr, size_t l, int base,
char **endptr, int *err)
{
int negative;
register uint32 cutoff;
register uint cutlim;
register uint32 i;
register const char *s;
register uchar c;
const char *save, *e;
int overflow;
*err= 0; /* Initialize error indicator */
s = nptr;
e = nptr+l;
for ( ; s<e && my_isspace(cs, *s) ; s++);
if (s == e)
{
goto noconv;
}
/* Check for a sign. */
if (*s == '-')
{
negative = 1;
++s;
}
else if (*s == '+')
{
negative = 0;
++s;
}
else
negative = 0;
save = s;
cutoff = ((uint32)~0L) / (uint32) base;
cutlim = (uint) (((uint32)~0L) % (uint32) base);
overflow = 0;
i = 0;
for (c = *s; s != e; c = *++s)
{
if (c>='0' && c<='9')
c -= '0';
else if (c>='A' && c<='Z')
c = c - 'A' + 10;
else if (c>='a' && c<='z')
c = c - 'a' + 10;
else
break;
if (c >= base)
break;
if (i > cutoff || (i == cutoff && c > cutlim))
overflow = 1;
else
{
i *= (uint32) base;
i += c;
}
}
if (s == save)
goto noconv;
if (endptr != NULL)
*endptr = (char *) s;
if (negative)
{
if (i > (uint32) INT_MIN32)
overflow = 1;
}
else if (i > INT_MAX32)
overflow = 1;
if (overflow)
{
err[0]= ERANGE;
return negative ? INT_MIN32 : INT_MAX32;
}
return (negative ? -((long) i) : (long) i);
noconv:
err[0]= EDOM;
if (endptr != NULL)
*endptr = (char *) nptr;
return 0L;
}
|
O0
|
c
|
my_strntol_8bit:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x38(%rbp), %rax
movl $0x0, (%rax)
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rax
addq -0x20(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x50(%rbp), %rcx
xorl %eax, %eax
cmpq -0x68(%rbp), %rcx
movb %al, -0x6d(%rbp)
jae 0x46328
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movq -0x50(%rbp), %rcx
movzbl (%rcx), %ecx
movzbl 0x1(%rax,%rcx), %eax
andl $0x8, %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x6d(%rbp)
movb -0x6d(%rbp), %al
testb $0x1, %al
jne 0x46331
jmp 0x46341
jmp 0x46333
movq -0x50(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x50(%rbp)
jmp 0x462f9
movq -0x50(%rbp), %rax
cmpq -0x68(%rbp), %rax
jne 0x46350
jmp 0x46545
movq -0x50(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x46371
movl $0x1, -0x3c(%rbp)
movq -0x50(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x50(%rbp)
jmp 0x4639b
movq -0x50(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2b, %eax
jne 0x46392
movl $0x0, -0x3c(%rbp)
movq -0x50(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x50(%rbp)
jmp 0x46399
movl $0x0, -0x3c(%rbp)
jmp 0x4639b
movq -0x50(%rbp), %rax
movq %rax, -0x60(%rbp)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
xorl %edx, %edx
divl -0x24(%rbp)
movl %eax, -0x40(%rbp)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
xorl %edx, %edx
divl -0x24(%rbp)
movl %edx, -0x44(%rbp)
movl $0x0, -0x6c(%rbp)
movl $0x0, -0x48(%rbp)
movq -0x50(%rbp), %rax
movb (%rax), %al
movb %al, -0x51(%rbp)
movq -0x50(%rbp), %rax
cmpq -0x68(%rbp), %rax
je 0x464a5
movzbl -0x51(%rbp), %eax
cmpl $0x30, %eax
jl 0x46400
movzbl -0x51(%rbp), %eax
cmpl $0x39, %eax
jg 0x46400
movzbl -0x51(%rbp), %eax
subl $0x30, %eax
movb %al, -0x51(%rbp)
jmp 0x46448
movzbl -0x51(%rbp), %eax
cmpl $0x41, %eax
jl 0x46421
movzbl -0x51(%rbp), %eax
cmpl $0x5a, %eax
jg 0x46421
movzbl -0x51(%rbp), %eax
subl $0x41, %eax
addl $0xa, %eax
movb %al, -0x51(%rbp)
jmp 0x46446
movzbl -0x51(%rbp), %eax
cmpl $0x61, %eax
jl 0x46442
movzbl -0x51(%rbp), %eax
cmpl $0x7a, %eax
jg 0x46442
movzbl -0x51(%rbp), %eax
subl $0x61, %eax
addl $0xa, %eax
movb %al, -0x51(%rbp)
jmp 0x46444
jmp 0x464a5
jmp 0x46446
jmp 0x46448
movzbl -0x51(%rbp), %eax
cmpl -0x24(%rbp), %eax
jl 0x46453
jmp 0x464a5
movl -0x48(%rbp), %eax
cmpl -0x40(%rbp), %eax
ja 0x4646c
movl -0x48(%rbp), %eax
cmpl -0x40(%rbp), %eax
jne 0x46475
movzbl -0x51(%rbp), %eax
cmpl -0x44(%rbp), %eax
jbe 0x46475
movl $0x1, -0x6c(%rbp)
jmp 0x46489
movl -0x24(%rbp), %eax
imull -0x48(%rbp), %eax
movl %eax, -0x48(%rbp)
movzbl -0x51(%rbp), %eax
addl -0x48(%rbp), %eax
movl %eax, -0x48(%rbp)
jmp 0x4648b
movq -0x50(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x50(%rbp)
movb 0x1(%rax), %al
movb %al, -0x51(%rbp)
jmp 0x463d4
movq -0x50(%rbp), %rax
cmpq -0x60(%rbp), %rax
jne 0x464b4
jmp 0x46545
cmpq $0x0, -0x30(%rbp)
je 0x464c6
movq -0x50(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
cmpl $0x0, -0x3c(%rbp)
je 0x464de
cmpl $0x80000000, -0x48(%rbp) # imm = 0x80000000
jbe 0x464dc
movl $0x1, -0x6c(%rbp)
jmp 0x464f2
movl -0x48(%rbp), %eax
cmpq $0x7fffffff, %rax # imm = 0x7FFFFFFF
jle 0x464f0
movl $0x1, -0x6c(%rbp)
jmp 0x464f2
cmpl $0x0, -0x6c(%rbp)
je 0x4651e
movq -0x38(%rbp), %rax
movl $0x22, (%rax)
movl -0x3c(%rbp), %edx
movl $0x7fffffff, %eax # imm = 0x7FFFFFFF
movq $-0x80000000, %rcx # imm = 0x80000000
cmpl $0x0, %edx
cmovneq %rcx, %rax
movq %rax, -0x8(%rbp)
jmp 0x46569
cmpl $0x0, -0x3c(%rbp)
je 0x46534
movl -0x48(%rbp), %eax
movl %eax, %ecx
xorl %eax, %eax
subq %rcx, %rax
movq %rax, -0x78(%rbp)
jmp 0x4653b
movl -0x48(%rbp), %eax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x46569
movq -0x38(%rbp), %rax
movl $0x21, (%rax)
cmpq $0x0, -0x30(%rbp)
je 0x46561
movq -0x18(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nop
|
my_strntol_8bit:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_24], ecx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
mov rax, [rbp+var_38]
mov dword ptr [rax], 0
mov rax, [rbp+var_18]
mov [rbp+var_50], rax
mov rax, [rbp+var_18]
add rax, [rbp+var_20]
mov [rbp+var_68], rax
loc_462F9:
mov rcx, [rbp+var_50]
xor eax, eax
cmp rcx, [rbp+var_68]
mov [rbp+var_6D], al
jnb short loc_46328
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov rcx, [rbp+var_50]
movzx ecx, byte ptr [rcx]
movzx eax, byte ptr [rax+rcx+1]
and eax, 8
cmp eax, 0
setnz al
mov [rbp+var_6D], al
loc_46328:
mov al, [rbp+var_6D]
test al, 1
jnz short loc_46331
jmp short loc_46341
loc_46331:
jmp short $+2
loc_46333:
mov rax, [rbp+var_50]
add rax, 1
mov [rbp+var_50], rax
jmp short loc_462F9
loc_46341:
mov rax, [rbp+var_50]
cmp rax, [rbp+var_68]
jnz short loc_46350
jmp loc_46545
loc_46350:
mov rax, [rbp+var_50]
movsx eax, byte ptr [rax]
cmp eax, 2Dh ; '-'
jnz short loc_46371
mov [rbp+var_3C], 1
mov rax, [rbp+var_50]
add rax, 1
mov [rbp+var_50], rax
jmp short loc_4639B
loc_46371:
mov rax, [rbp+var_50]
movsx eax, byte ptr [rax]
cmp eax, 2Bh ; '+'
jnz short loc_46392
mov [rbp+var_3C], 0
mov rax, [rbp+var_50]
add rax, 1
mov [rbp+var_50], rax
jmp short loc_46399
loc_46392:
mov [rbp+var_3C], 0
loc_46399:
jmp short $+2
loc_4639B:
mov rax, [rbp+var_50]
mov [rbp+var_60], rax
mov eax, 0FFFFFFFFh
xor edx, edx
div [rbp+var_24]
mov [rbp+var_40], eax
mov eax, 0FFFFFFFFh
xor edx, edx
div [rbp+var_24]
mov [rbp+var_44], edx
mov [rbp+var_6C], 0
mov [rbp+var_48], 0
mov rax, [rbp+var_50]
mov al, [rax]
mov [rbp+var_51], al
loc_463D4:
mov rax, [rbp+var_50]
cmp rax, [rbp+var_68]
jz loc_464A5
movzx eax, [rbp+var_51]
cmp eax, 30h ; '0'
jl short loc_46400
movzx eax, [rbp+var_51]
cmp eax, 39h ; '9'
jg short loc_46400
movzx eax, [rbp+var_51]
sub eax, 30h ; '0'
mov [rbp+var_51], al
jmp short loc_46448
loc_46400:
movzx eax, [rbp+var_51]
cmp eax, 41h ; 'A'
jl short loc_46421
movzx eax, [rbp+var_51]
cmp eax, 5Ah ; 'Z'
jg short loc_46421
movzx eax, [rbp+var_51]
sub eax, 41h ; 'A'
add eax, 0Ah
mov [rbp+var_51], al
jmp short loc_46446
loc_46421:
movzx eax, [rbp+var_51]
cmp eax, 61h ; 'a'
jl short loc_46442
movzx eax, [rbp+var_51]
cmp eax, 7Ah ; 'z'
jg short loc_46442
movzx eax, [rbp+var_51]
sub eax, 61h ; 'a'
add eax, 0Ah
mov [rbp+var_51], al
jmp short loc_46444
loc_46442:
jmp short loc_464A5
loc_46444:
jmp short $+2
loc_46446:
jmp short $+2
loc_46448:
movzx eax, [rbp+var_51]
cmp eax, [rbp+var_24]
jl short loc_46453
jmp short loc_464A5
loc_46453:
mov eax, [rbp+var_48]
cmp eax, [rbp+var_40]
ja short loc_4646C
mov eax, [rbp+var_48]
cmp eax, [rbp+var_40]
jnz short loc_46475
movzx eax, [rbp+var_51]
cmp eax, [rbp+var_44]
jbe short loc_46475
loc_4646C:
mov [rbp+var_6C], 1
jmp short loc_46489
loc_46475:
mov eax, [rbp+var_24]
imul eax, [rbp+var_48]
mov [rbp+var_48], eax
movzx eax, [rbp+var_51]
add eax, [rbp+var_48]
mov [rbp+var_48], eax
loc_46489:
jmp short $+2
loc_4648B:
mov rax, [rbp+var_50]
mov rcx, rax
add rcx, 1
mov [rbp+var_50], rcx
mov al, [rax+1]
mov [rbp+var_51], al
jmp loc_463D4
loc_464A5:
mov rax, [rbp+var_50]
cmp rax, [rbp+var_60]
jnz short loc_464B4
jmp loc_46545
loc_464B4:
cmp [rbp+var_30], 0
jz short loc_464C6
mov rcx, [rbp+var_50]
mov rax, [rbp+var_30]
mov [rax], rcx
loc_464C6:
cmp [rbp+var_3C], 0
jz short loc_464DE
cmp [rbp+var_48], 80000000h
jbe short loc_464DC
mov [rbp+var_6C], 1
loc_464DC:
jmp short loc_464F2
loc_464DE:
mov eax, [rbp+var_48]
cmp rax, 7FFFFFFFh
jle short loc_464F0
mov [rbp+var_6C], 1
loc_464F0:
jmp short $+2
loc_464F2:
cmp [rbp+var_6C], 0
jz short loc_4651E
mov rax, [rbp+var_38]
mov dword ptr [rax], 22h ; '"'
mov edx, [rbp+var_3C]
mov eax, 7FFFFFFFh
mov rcx, 0FFFFFFFF80000000h
cmp edx, 0
cmovnz rax, rcx
mov [rbp+var_8], rax
jmp short loc_46569
loc_4651E:
cmp [rbp+var_3C], 0
jz short loc_46534
mov eax, [rbp+var_48]
mov ecx, eax
xor eax, eax
sub rax, rcx
mov [rbp+var_78], rax
jmp short loc_4653B
loc_46534:
mov eax, [rbp+var_48]
mov [rbp+var_78], rax
loc_4653B:
mov rax, [rbp+var_78]
mov [rbp+var_8], rax
jmp short loc_46569
loc_46545:
mov rax, [rbp+var_38]
mov dword ptr [rax], 21h ; '!'
cmp [rbp+var_30], 0
jz short loc_46561
mov rcx, [rbp+var_18]
mov rax, [rbp+var_30]
mov [rax], rcx
loc_46561:
mov [rbp+var_8], 0
loc_46569:
mov rax, [rbp+var_8]
pop rbp
retn
|
long long my_strntol_8bit(long long a1, _BYTE *a2, long long a3, int a4, _QWORD *a5, _DWORD *a6)
{
_BYTE *v6; // rax
long long v7; // rax
bool v10; // [rsp+Bh] [rbp-6Dh]
int v11; // [rsp+Ch] [rbp-6Ch]
_BYTE *v12; // [rsp+10h] [rbp-68h]
_BYTE *v13; // [rsp+18h] [rbp-60h]
unsigned __int8 v14; // [rsp+27h] [rbp-51h]
unsigned __int8 v15; // [rsp+27h] [rbp-51h]
_BYTE *v16; // [rsp+28h] [rbp-50h]
unsigned int v17; // [rsp+30h] [rbp-48h]
unsigned long long v18; // [rsp+34h] [rbp-44h]
int v19; // [rsp+3Ch] [rbp-3Ch]
*a6 = 0;
v16 = a2;
v12 = &a2[a3];
while ( 1 )
{
v10 = 0;
if ( v16 < v12 )
v10 = (*(_BYTE *)(*(_QWORD *)(a1 + 64) + (unsigned __int8)*v16 + 1LL) & 8) != 0;
if ( !v10 )
break;
++v16;
}
if ( v16 == v12 )
goto LABEL_45;
if ( *v16 == 45 )
{
v19 = 1;
++v16;
}
else
{
v19 = 0;
if ( *v16 == 43 )
++v16;
}
v13 = v16;
v11 = 0;
v17 = 0;
v14 = *v16;
while ( v16 != v12 )
{
if ( v14 < 0x30u || v14 > 0x39u )
{
if ( v14 < 0x41u || v14 > 0x5Au )
{
if ( v14 < 0x61u || v14 > 0x7Au )
break;
v15 = v14 - 97 + 10;
}
else
{
v15 = v14 - 65 + 10;
}
}
else
{
v15 = v14 - 48;
}
if ( v15 >= a4 )
break;
LODWORD(v18) = 0xFFFFFFFF % a4;
HIDWORD(v18) = 0xFFFFFFFF / a4;
if ( __PAIR64__(v17, v15) <= v18 )
v17 = v17 * a4 + v15;
else
v11 = 1;
v6 = v16++;
v14 = v6[1];
}
if ( v16 == v13 )
{
LABEL_45:
*a6 = 33;
if ( a5 )
*a5 = a2;
return 0LL;
}
else
{
if ( a5 )
*a5 = v16;
if ( v19 )
{
if ( v17 > 0x80000000 )
v11 = 1;
}
else if ( v17 > 0x7FFFFFFFuLL )
{
v11 = 1;
}
if ( v11 )
{
*a6 = 34;
v7 = 0x7FFFFFFFLL;
if ( v19 )
return 0xFFFFFFFF80000000LL;
return v7;
}
else if ( v19 )
{
return -(long long)v17;
}
else
{
return v17;
}
}
}
|
my_strntol_8bit:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],ECX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x68],RAX
LAB_001462f9:
MOV RCX,qword ptr [RBP + -0x50]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x68]
MOV byte ptr [RBP + -0x6d],AL
JNC 0x00146328
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV RCX,qword ptr [RBP + -0x50]
MOVZX ECX,byte ptr [RCX]
MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1]
AND EAX,0x8
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x6d],AL
LAB_00146328:
MOV AL,byte ptr [RBP + -0x6d]
TEST AL,0x1
JNZ 0x00146331
JMP 0x00146341
LAB_00146331:
JMP 0x00146333
LAB_00146333:
MOV RAX,qword ptr [RBP + -0x50]
ADD RAX,0x1
MOV qword ptr [RBP + -0x50],RAX
JMP 0x001462f9
LAB_00146341:
MOV RAX,qword ptr [RBP + -0x50]
CMP RAX,qword ptr [RBP + -0x68]
JNZ 0x00146350
JMP 0x00146545
LAB_00146350:
MOV RAX,qword ptr [RBP + -0x50]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2d
JNZ 0x00146371
MOV dword ptr [RBP + -0x3c],0x1
MOV RAX,qword ptr [RBP + -0x50]
ADD RAX,0x1
MOV qword ptr [RBP + -0x50],RAX
JMP 0x0014639b
LAB_00146371:
MOV RAX,qword ptr [RBP + -0x50]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2b
JNZ 0x00146392
MOV dword ptr [RBP + -0x3c],0x0
MOV RAX,qword ptr [RBP + -0x50]
ADD RAX,0x1
MOV qword ptr [RBP + -0x50],RAX
JMP 0x00146399
LAB_00146392:
MOV dword ptr [RBP + -0x3c],0x0
LAB_00146399:
JMP 0x0014639b
LAB_0014639b:
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x60],RAX
MOV EAX,0xffffffff
XOR EDX,EDX
DIV dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x40],EAX
MOV EAX,0xffffffff
XOR EDX,EDX
DIV dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x44],EDX
MOV dword ptr [RBP + -0x6c],0x0
MOV dword ptr [RBP + -0x48],0x0
MOV RAX,qword ptr [RBP + -0x50]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x51],AL
LAB_001463d4:
MOV RAX,qword ptr [RBP + -0x50]
CMP RAX,qword ptr [RBP + -0x68]
JZ 0x001464a5
MOVZX EAX,byte ptr [RBP + -0x51]
CMP EAX,0x30
JL 0x00146400
MOVZX EAX,byte ptr [RBP + -0x51]
CMP EAX,0x39
JG 0x00146400
MOVZX EAX,byte ptr [RBP + -0x51]
SUB EAX,0x30
MOV byte ptr [RBP + -0x51],AL
JMP 0x00146448
LAB_00146400:
MOVZX EAX,byte ptr [RBP + -0x51]
CMP EAX,0x41
JL 0x00146421
MOVZX EAX,byte ptr [RBP + -0x51]
CMP EAX,0x5a
JG 0x00146421
MOVZX EAX,byte ptr [RBP + -0x51]
SUB EAX,0x41
ADD EAX,0xa
MOV byte ptr [RBP + -0x51],AL
JMP 0x00146446
LAB_00146421:
MOVZX EAX,byte ptr [RBP + -0x51]
CMP EAX,0x61
JL 0x00146442
MOVZX EAX,byte ptr [RBP + -0x51]
CMP EAX,0x7a
JG 0x00146442
MOVZX EAX,byte ptr [RBP + -0x51]
SUB EAX,0x61
ADD EAX,0xa
MOV byte ptr [RBP + -0x51],AL
JMP 0x00146444
LAB_00146442:
JMP 0x001464a5
LAB_00146444:
JMP 0x00146446
LAB_00146446:
JMP 0x00146448
LAB_00146448:
MOVZX EAX,byte ptr [RBP + -0x51]
CMP EAX,dword ptr [RBP + -0x24]
JL 0x00146453
JMP 0x001464a5
LAB_00146453:
MOV EAX,dword ptr [RBP + -0x48]
CMP EAX,dword ptr [RBP + -0x40]
JA 0x0014646c
MOV EAX,dword ptr [RBP + -0x48]
CMP EAX,dword ptr [RBP + -0x40]
JNZ 0x00146475
MOVZX EAX,byte ptr [RBP + -0x51]
CMP EAX,dword ptr [RBP + -0x44]
JBE 0x00146475
LAB_0014646c:
MOV dword ptr [RBP + -0x6c],0x1
JMP 0x00146489
LAB_00146475:
MOV EAX,dword ptr [RBP + -0x24]
IMUL EAX,dword ptr [RBP + -0x48]
MOV dword ptr [RBP + -0x48],EAX
MOVZX EAX,byte ptr [RBP + -0x51]
ADD EAX,dword ptr [RBP + -0x48]
MOV dword ptr [RBP + -0x48],EAX
LAB_00146489:
JMP 0x0014648b
LAB_0014648b:
MOV RAX,qword ptr [RBP + -0x50]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x50],RCX
MOV AL,byte ptr [RAX + 0x1]
MOV byte ptr [RBP + -0x51],AL
JMP 0x001463d4
LAB_001464a5:
MOV RAX,qword ptr [RBP + -0x50]
CMP RAX,qword ptr [RBP + -0x60]
JNZ 0x001464b4
JMP 0x00146545
LAB_001464b4:
CMP qword ptr [RBP + -0x30],0x0
JZ 0x001464c6
MOV RCX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX],RCX
LAB_001464c6:
CMP dword ptr [RBP + -0x3c],0x0
JZ 0x001464de
CMP dword ptr [RBP + -0x48],0x80000000
JBE 0x001464dc
MOV dword ptr [RBP + -0x6c],0x1
LAB_001464dc:
JMP 0x001464f2
LAB_001464de:
MOV EAX,dword ptr [RBP + -0x48]
CMP RAX,0x7fffffff
JLE 0x001464f0
MOV dword ptr [RBP + -0x6c],0x1
LAB_001464f0:
JMP 0x001464f2
LAB_001464f2:
CMP dword ptr [RBP + -0x6c],0x0
JZ 0x0014651e
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX],0x22
MOV EDX,dword ptr [RBP + -0x3c]
MOV EAX,0x7fffffff
MOV RCX,-0x80000000
CMP EDX,0x0
CMOVNZ RAX,RCX
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00146569
LAB_0014651e:
CMP dword ptr [RBP + -0x3c],0x0
JZ 0x00146534
MOV EAX,dword ptr [RBP + -0x48]
MOV ECX,EAX
XOR EAX,EAX
SUB RAX,RCX
MOV qword ptr [RBP + -0x78],RAX
JMP 0x0014653b
LAB_00146534:
MOV EAX,dword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x78],RAX
LAB_0014653b:
MOV RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00146569
LAB_00146545:
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX],0x21
CMP qword ptr [RBP + -0x30],0x0
JZ 0x00146561
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX],RCX
LAB_00146561:
MOV qword ptr [RBP + -0x8],0x0
LAB_00146569:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
ulong my_strntol_8bit(long param_1,byte *param_2,long param_3,uint param_4,int8 *param_5,
int4 *param_6)
{
bool bVar1;
byte *pbVar2;
uint uVar3;
byte *pbVar4;
bool bVar5;
ulong local_80;
byte local_59;
byte *local_58;
uint local_50;
*param_6 = 0;
pbVar4 = param_2 + param_3;
local_58 = param_2;
while( true ) {
bVar5 = false;
if (local_58 < pbVar4) {
bVar5 = (*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)*local_58) & 8) != 0;
}
if (!bVar5) break;
local_58 = local_58 + 1;
}
if (local_58 != pbVar4) {
if (*local_58 == 0x2d) {
bVar5 = true;
local_58 = local_58 + 1;
}
else {
if (*local_58 == 0x2b) {
local_58 = local_58 + 1;
}
bVar5 = false;
}
pbVar2 = local_58;
uVar3 = (uint)(0xffffffff / (ulong)param_4);
bVar1 = false;
local_50 = 0;
local_59 = *local_58;
for (; local_58 != pbVar4; local_58 = local_58 + 1) {
if ((local_59 < 0x30) || (0x39 < local_59)) {
if ((local_59 < 0x41) || (0x5a < local_59)) {
if ((local_59 < 0x61) || (0x7a < local_59)) break;
local_59 = local_59 + 0xa9;
}
else {
local_59 = local_59 - 0x37;
}
}
else {
local_59 = local_59 - 0x30;
}
if ((int)param_4 <= (int)(uint)local_59) break;
if ((uVar3 < local_50) ||
((local_50 == uVar3 && ((uint)(0xffffffff % (ulong)param_4) < (uint)local_59)))) {
bVar1 = true;
}
else {
local_50 = (uint)local_59 + param_4 * local_50;
}
local_59 = local_58[1];
}
if (local_58 != pbVar2) {
if (param_5 != (int8 *)0x0) {
*param_5 = local_58;
}
if (bVar5) {
if (0x80000000 < local_50) {
bVar1 = true;
}
}
else if (0x7fffffff < local_50) {
bVar1 = true;
}
if (bVar1) {
*param_6 = 0x22;
if (!bVar5) {
return 0x7fffffff;
}
return 0xffffffff80000000;
}
if (bVar5) {
local_80 = -(ulong)local_50;
}
else {
local_80 = (ulong)local_50;
}
return local_80;
}
}
*param_6 = 0x21;
if (param_5 != (int8 *)0x0) {
*param_5 = param_2;
}
return 0;
}
|
|
65,083 |
ggml_opt_dataset_get_batch
|
ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp
|
void ggml_opt_dataset_get_batch(ggml_opt_dataset_t dataset, struct ggml_tensor * data_batch, struct ggml_tensor * labels_batch, int64_t ibatch) {
GGML_ASSERT( data_batch && ggml_is_contiguous(data_batch));
GGML_ASSERT(!labels_batch || ggml_is_contiguous(labels_batch));
GGML_ASSERT((labels_batch == nullptr) == (dataset->labels == nullptr));
const size_t nb_data_batch = ggml_nbytes(data_batch);
GGML_ASSERT(nb_data_batch % dataset->nbs_data == 0);
const int64_t shards_per_batch = nb_data_batch / dataset->nbs_data;
if (labels_batch) {
const size_t nb_labels_batch = ggml_nbytes(labels_batch);
GGML_ASSERT(nb_labels_batch == shards_per_batch*dataset->nbs_labels);
}
GGML_ASSERT((ibatch + 1)*shards_per_batch <= int64_t(dataset->permutation.size()));
for (int64_t ishard_batch = 0; ishard_batch < shards_per_batch; ++ishard_batch) {
const int64_t ishard = dataset->permutation[ibatch*shards_per_batch + ishard_batch];
const char * ptr_data = (const char *) dataset->data->data + ishard*dataset->nbs_data;
ggml_backend_tensor_set(data_batch, ptr_data, ishard_batch*dataset->nbs_data, dataset->nbs_data);
if (!labels_batch) {
continue;
}
const char * ptr_labels = (const char *) dataset->labels->data + ishard*dataset->nbs_labels;
ggml_backend_tensor_set(labels_batch, ptr_labels, ishard_batch*dataset->nbs_labels, dataset->nbs_labels);
}
}
|
O0
|
cpp
|
ggml_opt_dataset_get_batch:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
cmpq $0x0, 0x58(%rsp)
je 0x6521e
movq 0x58(%rsp), %rdi
callq 0x40fb0
testb $0x1, %al
jne 0x6523f
leaq 0x52e03(%rip), %rdi # 0xb8028
movl $0x90, %esi
leaq 0x4f3d1(%rip), %rdx # 0xb4602
leaq 0x52eb4(%rip), %rcx # 0xb80ec
movb $0x0, %al
callq 0x46780
cmpq $0x0, 0x50(%rsp)
je 0x65276
movq 0x50(%rsp), %rdi
callq 0x40fb0
testb $0x1, %al
jne 0x65276
leaq 0x52dcc(%rip), %rdi # 0xb8028
movl $0x91, %esi
leaq 0x4f39a(%rip), %rdx # 0xb4602
leaq 0x52eaa(%rip), %rcx # 0xb8119
movb $0x0, %al
callq 0x46780
cmpq $0x0, 0x50(%rsp)
sete %al
andb $0x1, %al
movzbl %al, %eax
movq 0x60(%rsp), %rcx
cmpq $0x0, 0x18(%rcx)
sete %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0x652bc
leaq 0x52d86(%rip), %rdi # 0xb8028
movl $0x92, %esi
leaq 0x4f354(%rip), %rdx # 0xb4602
leaq 0x52e96(%rip), %rcx # 0xb814b
movb $0x0, %al
callq 0x46780
movq 0x58(%rsp), %rdi
callq 0x40640
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq 0x60(%rsp), %rcx
xorl %edx, %edx
divq 0x30(%rcx)
cmpq $0x0, %rdx
je 0x65302
leaq 0x52d40(%rip), %rdi # 0xb8028
movl $0x95, %esi
leaq 0x4f30e(%rip), %rdx # 0xb4602
leaq 0x52e8a(%rip), %rcx # 0xb8185
movb $0x0, %al
callq 0x46780
movq 0x40(%rsp), %rax
movq 0x60(%rsp), %rcx
xorl %edx, %edx
divq 0x30(%rcx)
movq %rax, 0x38(%rsp)
cmpq $0x0, 0x50(%rsp)
je 0x6536a
movq 0x50(%rsp), %rdi
callq 0x40640
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
movq 0x60(%rsp), %rdx
imulq 0x38(%rdx), %rcx
cmpq %rcx, %rax
je 0x65368
leaq 0x52cda(%rip), %rdi # 0xb8028
movl $0x9a, %esi
leaq 0x4f2a8(%rip), %rdx # 0xb4602
leaq 0x52e4b(%rip), %rcx # 0xb81ac
movb $0x0, %al
callq 0x46780
jmp 0x6536a
movq 0x48(%rsp), %rax
addq $0x1, %rax
imulq 0x38(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x60(%rsp), %rdi
addq $0x40, %rdi
callq 0x40600
movq %rax, %rcx
movq 0x8(%rsp), %rax
cmpq %rcx, %rax
jle 0x653ba
leaq 0x52c88(%rip), %rdi # 0xb8028
movl $0x9d, %esi
leaq 0x4f256(%rip), %rdx # 0xb4602
leaq 0x52e31(%rip), %rcx # 0xb81e4
movb $0x0, %al
callq 0x46780
movq $0x0, 0x28(%rsp)
movq 0x28(%rsp), %rax
cmpq 0x38(%rsp), %rax
jge 0x654b2
movq 0x60(%rsp), %rdi
addq $0x40, %rdi
movq 0x48(%rsp), %rsi
imulq 0x38(%rsp), %rsi
addq 0x28(%rsp), %rsi
callq 0x44390
movq (%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x60(%rsp), %rax
movq 0x10(%rax), %rax
movq 0xf8(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x60(%rsp), %rdx
imulq 0x30(%rdx), %rcx
addq %rcx, %rax
movq %rax, 0x18(%rsp)
movq 0x58(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x60(%rsp), %rax
imulq 0x30(%rax), %rdx
movq 0x60(%rsp), %rax
movq 0x30(%rax), %rcx
callq 0x41fa0
cmpq $0x0, 0x50(%rsp)
jne 0x65451
jmp 0x6549f
movq 0x60(%rsp), %rax
movq 0x18(%rax), %rax
movq 0xf8(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x60(%rsp), %rdx
imulq 0x38(%rdx), %rcx
addq %rcx, %rax
movq %rax, 0x10(%rsp)
movq 0x50(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x60(%rsp), %rax
imulq 0x38(%rax), %rdx
movq 0x60(%rsp), %rax
movq 0x38(%rax), %rcx
callq 0x41fa0
movq 0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x28(%rsp)
jmp 0x653c3
addq $0x68, %rsp
retq
nopw (%rax,%rax)
|
ggml_opt_dataset_get_batch:
sub rsp, 68h
mov [rsp+68h+var_8], rdi
mov [rsp+68h+var_10], rsi
mov [rsp+68h+var_18], rdx
mov [rsp+68h+var_20], rcx
cmp [rsp+68h+var_10], 0
jz short loc_6521E
mov rdi, [rsp+68h+var_10]
call _ggml_is_contiguous
test al, 1
jnz short loc_6523F
loc_6521E:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
mov esi, 90h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aDataBatchGgmlI; "data_batch && ggml_is_contiguous(data_b"...
mov al, 0
call _ggml_abort
loc_6523F:
cmp [rsp+68h+var_18], 0
jz short loc_65276
mov rdi, [rsp+68h+var_18]
call _ggml_is_contiguous
test al, 1
jnz short loc_65276
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
mov esi, 91h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aLabelsBatchGgm; "!labels_batch || ggml_is_contiguous(lab"...
mov al, 0
call _ggml_abort
loc_65276:
cmp [rsp+68h+var_18], 0
setz al
and al, 1
movzx eax, al
mov rcx, [rsp+68h+var_8]
cmp qword ptr [rcx+18h], 0
setz cl
and cl, 1
movzx ecx, cl
cmp eax, ecx
jz short loc_652BC
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
mov esi, 92h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aLabelsBatchNul; "(labels_batch == nullptr) == (dataset->"...
mov al, 0
call _ggml_abort
loc_652BC:
mov rdi, [rsp+68h+var_10]
call _ggml_nbytes
mov [rsp+68h+var_28], rax
mov rax, [rsp+68h+var_28]
mov rcx, [rsp+68h+var_8]
xor edx, edx
div qword ptr [rcx+30h]
cmp rdx, 0
jz short loc_65302
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
mov esi, 95h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNbDataBatchDat; "nb_data_batch % dataset->nbs_data == 0"
mov al, 0
call _ggml_abort
loc_65302:
mov rax, [rsp+68h+var_28]
mov rcx, [rsp+68h+var_8]
xor edx, edx
div qword ptr [rcx+30h]
mov [rsp+68h+var_30], rax
cmp [rsp+68h+var_18], 0
jz short loc_6536A
mov rdi, [rsp+68h+var_18]
call _ggml_nbytes
mov [rsp+68h+var_38], rax
mov rax, [rsp+68h+var_38]
mov rcx, [rsp+68h+var_30]
mov rdx, [rsp+68h+var_8]
imul rcx, [rdx+38h]
cmp rax, rcx
jz short loc_65368
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
mov esi, 9Ah
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNbLabelsBatchS; "nb_labels_batch == shards_per_batch*dat"...
mov al, 0
call _ggml_abort
loc_65368:
jmp short $+2
loc_6536A:
mov rax, [rsp+68h+var_20]
add rax, 1
imul rax, [rsp+68h+var_30]
mov [rsp+68h+var_60], rax
mov rdi, [rsp+68h+var_8]
add rdi, 40h ; '@'
call __ZNKSt6vectorIlSaIlEE4sizeEv; std::vector<long>::size(void)
mov rcx, rax
mov rax, [rsp+68h+var_60]
cmp rax, rcx
jle short loc_653BA
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
mov esi, 9Dh
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aIbatch1ShardsP; "(ibatch + 1)*shards_per_batch <= int64_"...
mov al, 0
call _ggml_abort
loc_653BA:
mov [rsp+68h+var_40], 0
loc_653C3:
mov rax, [rsp+68h+var_40]
cmp rax, [rsp+68h+var_30]
jge loc_654B2
mov rdi, [rsp+68h+var_8]
add rdi, 40h ; '@'
mov rsi, [rsp+68h+var_20]
imul rsi, [rsp+68h+var_30]
add rsi, [rsp+68h+var_40]
call __ZNSt6vectorIlSaIlEEixEm; std::vector<long>::operator[](ulong)
mov rax, [rax]
mov [rsp+68h+var_48], rax
mov rax, [rsp+68h+var_8]
mov rax, [rax+10h]
mov rax, [rax+0F8h]
mov rcx, [rsp+68h+var_48]
mov rdx, [rsp+68h+var_8]
imul rcx, [rdx+30h]
add rax, rcx
mov [rsp+68h+var_50], rax
mov rdi, [rsp+68h+var_10]
mov rsi, [rsp+68h+var_50]
mov rdx, [rsp+68h+var_40]
mov rax, [rsp+68h+var_8]
imul rdx, [rax+30h]
mov rax, [rsp+68h+var_8]
mov rcx, [rax+30h]
call _ggml_backend_tensor_set
cmp [rsp+68h+var_18], 0
jnz short loc_65451
jmp short loc_6549F
loc_65451:
mov rax, [rsp+68h+var_8]
mov rax, [rax+18h]
mov rax, [rax+0F8h]
mov rcx, [rsp+68h+var_48]
mov rdx, [rsp+68h+var_8]
imul rcx, [rdx+38h]
add rax, rcx
mov [rsp+68h+var_58], rax
mov rdi, [rsp+68h+var_18]
mov rsi, [rsp+68h+var_58]
mov rdx, [rsp+68h+var_40]
mov rax, [rsp+68h+var_8]
imul rdx, [rax+38h]
mov rax, [rsp+68h+var_8]
mov rcx, [rax+38h]
call _ggml_backend_tensor_set
loc_6549F:
mov rax, [rsp+68h+var_40]
add rax, 1
mov [rsp+68h+var_40], rax
jmp loc_653C3
loc_654B2:
add rsp, 68h
retn
|
signed long long ggml_opt_dataset_get_batch(_QWORD *a1, unsigned int *a2, unsigned int *a3, long long a4)
{
unsigned long long v4; // rdx
signed long long result; // rax
long long *v6; // rax
long long v7; // [rsp+20h] [rbp-48h]
signed long long i; // [rsp+28h] [rbp-40h]
long long v9; // [rsp+30h] [rbp-38h]
signed long long v10; // [rsp+38h] [rbp-30h]
unsigned long long v11; // [rsp+40h] [rbp-28h]
if ( !a2 || (ggml_is_contiguous((long long)a2) & 1) == 0 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp",
144,
(long long)"GGML_ASSERT(%s) failed",
"data_batch && ggml_is_contiguous(data_batch)");
if ( a3 && (ggml_is_contiguous((long long)a3) & 1) == 0 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp",
145,
(long long)"GGML_ASSERT(%s) failed",
"!labels_batch || ggml_is_contiguous(labels_batch)");
if ( (a3 == 0LL) != (a1[3] == 0LL) )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp",
146,
(long long)"GGML_ASSERT(%s) failed",
"(labels_batch == nullptr) == (dataset->labels == nullptr)");
v11 = ggml_nbytes(a2);
if ( v11 % a1[6] )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp",
149,
(long long)"GGML_ASSERT(%s) failed",
"nb_data_batch % dataset->nbs_data == 0");
v4 = v11 % a1[6];
v10 = v11 / a1[6];
if ( a3 )
{
v9 = ggml_nbytes(a3);
v4 = (unsigned long long)a1;
if ( v9 != a1[7] * v10 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp",
154,
(long long)"GGML_ASSERT(%s) failed",
"nb_labels_batch == shards_per_batch*dataset->nbs_labels");
}
if ( v10 * (a4 + 1) > std::vector<long>::size(a1 + 8, a2, v4) )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp",
157,
(long long)"GGML_ASSERT(%s) failed",
"(ibatch + 1)*shards_per_batch <= int64_t(dataset->permutation.size())");
for ( i = 0LL; ; ++i )
{
result = i;
if ( i >= v10 )
break;
v6 = (long long *)std::vector<long>::operator[](a1 + 8, i + v10 * a4);
v7 = *v6;
ggml_backend_tensor_set(a2, a1[6] * *v6 + *(_QWORD *)(a1[2] + 248LL), a1[6] * i, a1[6]);
if ( a3 )
ggml_backend_tensor_set(a3, a1[7] * v7 + *(_QWORD *)(a1[3] + 248LL), a1[7] * i, a1[7]);
}
return result;
}
|
ggml_opt_dataset_get_batch:
SUB RSP,0x68
MOV qword ptr [RSP + 0x60],RDI
MOV qword ptr [RSP + 0x58],RSI
MOV qword ptr [RSP + 0x50],RDX
MOV qword ptr [RSP + 0x48],RCX
CMP qword ptr [RSP + 0x58],0x0
JZ 0x0016521e
MOV RDI,qword ptr [RSP + 0x58]
CALL 0x00140fb0
TEST AL,0x1
JNZ 0x0016523f
LAB_0016521e:
LEA RDI,[0x1b8028]
MOV ESI,0x90
LEA RDX,[0x1b4602]
LEA RCX,[0x1b80ec]
MOV AL,0x0
CALL 0x00146780
LAB_0016523f:
CMP qword ptr [RSP + 0x50],0x0
JZ 0x00165276
MOV RDI,qword ptr [RSP + 0x50]
CALL 0x00140fb0
TEST AL,0x1
JNZ 0x00165276
LEA RDI,[0x1b8028]
MOV ESI,0x91
LEA RDX,[0x1b4602]
LEA RCX,[0x1b8119]
MOV AL,0x0
CALL 0x00146780
LAB_00165276:
CMP qword ptr [RSP + 0x50],0x0
SETZ AL
AND AL,0x1
MOVZX EAX,AL
MOV RCX,qword ptr [RSP + 0x60]
CMP qword ptr [RCX + 0x18],0x0
SETZ CL
AND CL,0x1
MOVZX ECX,CL
CMP EAX,ECX
JZ 0x001652bc
LEA RDI,[0x1b8028]
MOV ESI,0x92
LEA RDX,[0x1b4602]
LEA RCX,[0x1b814b]
MOV AL,0x0
CALL 0x00146780
LAB_001652bc:
MOV RDI,qword ptr [RSP + 0x58]
CALL 0x00140640
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV RCX,qword ptr [RSP + 0x60]
XOR EDX,EDX
DIV qword ptr [RCX + 0x30]
CMP RDX,0x0
JZ 0x00165302
LEA RDI,[0x1b8028]
MOV ESI,0x95
LEA RDX,[0x1b4602]
LEA RCX,[0x1b8185]
MOV AL,0x0
CALL 0x00146780
LAB_00165302:
MOV RAX,qword ptr [RSP + 0x40]
MOV RCX,qword ptr [RSP + 0x60]
XOR EDX,EDX
DIV qword ptr [RCX + 0x30]
MOV qword ptr [RSP + 0x38],RAX
CMP qword ptr [RSP + 0x50],0x0
JZ 0x0016536a
MOV RDI,qword ptr [RSP + 0x50]
CALL 0x00140640
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV RCX,qword ptr [RSP + 0x38]
MOV RDX,qword ptr [RSP + 0x60]
IMUL RCX,qword ptr [RDX + 0x38]
CMP RAX,RCX
JZ 0x00165368
LEA RDI,[0x1b8028]
MOV ESI,0x9a
LEA RDX,[0x1b4602]
LEA RCX,[0x1b81ac]
MOV AL,0x0
CALL 0x00146780
LAB_00165368:
JMP 0x0016536a
LAB_0016536a:
MOV RAX,qword ptr [RSP + 0x48]
ADD RAX,0x1
IMUL RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x60]
ADD RDI,0x40
CALL 0x00140600
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x8]
CMP RAX,RCX
JLE 0x001653ba
LEA RDI,[0x1b8028]
MOV ESI,0x9d
LEA RDX,[0x1b4602]
LEA RCX,[0x1b81e4]
MOV AL,0x0
CALL 0x00146780
LAB_001653ba:
MOV qword ptr [RSP + 0x28],0x0
LAB_001653c3:
MOV RAX,qword ptr [RSP + 0x28]
CMP RAX,qword ptr [RSP + 0x38]
JGE 0x001654b2
MOV RDI,qword ptr [RSP + 0x60]
ADD RDI,0x40
MOV RSI,qword ptr [RSP + 0x48]
IMUL RSI,qword ptr [RSP + 0x38]
ADD RSI,qword ptr [RSP + 0x28]
CALL 0x00144390
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x60]
MOV RAX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RAX + 0xf8]
MOV RCX,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x60]
IMUL RCX,qword ptr [RDX + 0x30]
ADD RAX,RCX
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0x58]
MOV RSI,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x60]
IMUL RDX,qword ptr [RAX + 0x30]
MOV RAX,qword ptr [RSP + 0x60]
MOV RCX,qword ptr [RAX + 0x30]
CALL 0x00141fa0
CMP qword ptr [RSP + 0x50],0x0
JNZ 0x00165451
JMP 0x0016549f
LAB_00165451:
MOV RAX,qword ptr [RSP + 0x60]
MOV RAX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RAX + 0xf8]
MOV RCX,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x60]
IMUL RCX,qword ptr [RDX + 0x38]
ADD RAX,RCX
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x60]
IMUL RDX,qword ptr [RAX + 0x38]
MOV RAX,qword ptr [RSP + 0x60]
MOV RCX,qword ptr [RAX + 0x38]
CALL 0x00141fa0
LAB_0016549f:
MOV RAX,qword ptr [RSP + 0x28]
ADD RAX,0x1
MOV qword ptr [RSP + 0x28],RAX
JMP 0x001653c3
LAB_001654b2:
ADD RSP,0x68
RET
|
void ggml_opt_dataset_get_batch(long param_1,long param_2,long param_3,long param_4)
{
ulong uVar1;
long lVar2;
long *plVar3;
long local_40;
if ((param_2 == 0) || (uVar1 = ggml_is_contiguous(param_2), (uVar1 & 1) == 0)) {
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp",
0x90,"GGML_ASSERT(%s) failed","data_batch && ggml_is_contiguous(data_batch)");
}
if ((param_3 != 0) && (uVar1 = ggml_is_contiguous(param_3), (uVar1 & 1) == 0)) {
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp",
0x91,"GGML_ASSERT(%s) failed","!labels_batch || ggml_is_contiguous(labels_batch)");
}
if ((param_3 == 0) != (*(long *)(param_1 + 0x18) == 0)) {
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp",
0x92,"GGML_ASSERT(%s) failed",
"(labels_batch == nullptr) == (dataset->labels == nullptr)");
}
uVar1 = ggml_nbytes(param_2);
if (uVar1 % *(ulong *)(param_1 + 0x30) != 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp",
0x95,"GGML_ASSERT(%s) failed","nb_data_batch % dataset->nbs_data == 0");
}
uVar1 = uVar1 / *(ulong *)(param_1 + 0x30);
if ((param_3 != 0) && (lVar2 = ggml_nbytes(param_3), lVar2 != uVar1 * *(long *)(param_1 + 0x38)))
{
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp",
0x9a,"GGML_ASSERT(%s) failed",
"nb_labels_batch == shards_per_batch*dataset->nbs_labels");
}
lVar2 = std::vector<long,std::allocator<long>>::size
((vector<long,std::allocator<long>> *)(param_1 + 0x40));
if (lVar2 < (long)((param_4 + 1) * uVar1)) {
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp",
0x9d,"GGML_ASSERT(%s) failed",
"(ibatch + 1)*shards_per_batch <= int64_t(dataset->permutation.size())");
}
for (local_40 = 0; local_40 < (long)uVar1; local_40 = local_40 + 1) {
plVar3 = (long *)std::vector<long,std::allocator<long>>::operator[]
((vector<long,std::allocator<long>> *)(param_1 + 0x40),
param_4 * uVar1 + local_40);
lVar2 = *plVar3;
ggml_backend_tensor_set
(param_2,*(long *)(*(long *)(param_1 + 0x10) + 0xf8) +
lVar2 * *(long *)(param_1 + 0x30),local_40 * *(long *)(param_1 + 0x30),
*(int8 *)(param_1 + 0x30));
if (param_3 != 0) {
ggml_backend_tensor_set
(param_3,*(long *)(*(long *)(param_1 + 0x18) + 0xf8) +
lVar2 * *(long *)(param_1 + 0x38),local_40 * *(long *)(param_1 + 0x38),
*(int8 *)(param_1 + 0x38));
}
}
return;
}
|
|
65,084 |
ggml_opt_dataset_get_batch
|
ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp
|
void ggml_opt_dataset_get_batch(ggml_opt_dataset_t dataset, struct ggml_tensor * data_batch, struct ggml_tensor * labels_batch, int64_t ibatch) {
GGML_ASSERT( data_batch && ggml_is_contiguous(data_batch));
GGML_ASSERT(!labels_batch || ggml_is_contiguous(labels_batch));
GGML_ASSERT((labels_batch == nullptr) == (dataset->labels == nullptr));
const size_t nb_data_batch = ggml_nbytes(data_batch);
GGML_ASSERT(nb_data_batch % dataset->nbs_data == 0);
const int64_t shards_per_batch = nb_data_batch / dataset->nbs_data;
if (labels_batch) {
const size_t nb_labels_batch = ggml_nbytes(labels_batch);
GGML_ASSERT(nb_labels_batch == shards_per_batch*dataset->nbs_labels);
}
GGML_ASSERT((ibatch + 1)*shards_per_batch <= int64_t(dataset->permutation.size()));
for (int64_t ishard_batch = 0; ishard_batch < shards_per_batch; ++ishard_batch) {
const int64_t ishard = dataset->permutation[ibatch*shards_per_batch + ishard_batch];
const char * ptr_data = (const char *) dataset->data->data + ishard*dataset->nbs_data;
ggml_backend_tensor_set(data_batch, ptr_data, ishard_batch*dataset->nbs_data, dataset->nbs_data);
if (!labels_batch) {
continue;
}
const char * ptr_labels = (const char *) dataset->labels->data + ishard*dataset->nbs_labels;
ggml_backend_tensor_set(labels_batch, ptr_labels, ishard_batch*dataset->nbs_labels, dataset->nbs_labels);
}
}
|
O1
|
cpp
|
ggml_opt_dataset_get_batch:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x29484
movq %rcx, %r13
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movq %rsi, %rdi
callq 0x16430
testb %al, %al
je 0x29484
testq %r14, %r14
je 0x29385
movq %r14, %rdi
callq 0x16430
testb %al, %al
je 0x294f7
testq %r14, %r14
sete %al
cmpq $0x0, 0x18(%r12)
setne %cl
xorb %al, %cl
je 0x294a3
movq %rbx, %rdi
callq 0x161c0
xorl %edx, %edx
divq 0x30(%r12)
testq %rdx, %rdx
jne 0x294bf
movq %rax, %rsi
testq %r14, %r14
movq %rax, (%rsp)
je 0x293de
movq %r14, %rdi
callq 0x161c0
movq (%rsp), %rsi
movq 0x38(%r12), %rcx
imulq %rsi, %rcx
cmpq %rcx, %rax
jne 0x29513
leaq 0x1(%r13), %rax
imulq %rsi, %rax
movq 0x48(%r12), %rcx
subq 0x40(%r12), %rcx
sarq $0x3, %rcx
cmpq %rcx, %rax
jg 0x294db
testq %rsi, %rsi
jle 0x29475
imulq %rsi, %r13
xorl %r15d, %r15d
shlq $0x3, %r13
movq 0x40(%r12), %rax
addq %r13, %rax
movq (%rax,%r15,8), %rbp
movq 0x10(%r12), %rax
movq 0x30(%r12), %rcx
movq %rcx, %rsi
imulq %rbp, %rsi
addq 0xf8(%rax), %rsi
movq %rcx, %rdx
imulq %r15, %rdx
movq %rbx, %rdi
callq 0x168d0
testq %r14, %r14
je 0x2946c
movq 0x18(%r12), %rax
movq 0x38(%r12), %rcx
imulq %rcx, %rbp
addq 0xf8(%rax), %rbp
movq %rcx, %rdx
imulq %r15, %rdx
movq %r14, %rdi
movq %rbp, %rsi
callq 0x168d0
incq %r15
cmpq (%rsp), %r15
jl 0x2940d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2492d(%rip), %rdi # 0x4ddb8
leaq 0x211c8(%rip), %rdx # 0x4a65a
leaq 0x249e3(%rip), %rcx # 0x4de7c
movl $0x90, %esi
jmp 0x2952d
leaq 0x2490e(%rip), %rdi # 0x4ddb8
leaq 0x211a9(%rip), %rdx # 0x4a65a
leaq 0x24a23(%rip), %rcx # 0x4dedb
movl $0x92, %esi
jmp 0x2952d
leaq 0x248f2(%rip), %rdi # 0x4ddb8
leaq 0x2118d(%rip), %rdx # 0x4a65a
leaq 0x24a41(%rip), %rcx # 0x4df15
movl $0x95, %esi
jmp 0x2952d
leaq 0x248d6(%rip), %rdi # 0x4ddb8
leaq 0x21171(%rip), %rdx # 0x4a65a
leaq 0x24a84(%rip), %rcx # 0x4df74
movl $0x9d, %esi
jmp 0x2952d
leaq 0x248ba(%rip), %rdi # 0x4ddb8
leaq 0x21155(%rip), %rdx # 0x4a65a
leaq 0x2499d(%rip), %rcx # 0x4dea9
movl $0x91, %esi
jmp 0x2952d
leaq 0x2489e(%rip), %rdi # 0x4ddb8
leaq 0x21139(%rip), %rdx # 0x4a65a
leaq 0x24a14(%rip), %rcx # 0x4df3c
movl $0x9a, %esi
xorl %eax, %eax
callq 0x17c70
|
ggml_opt_dataset_get_batch:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
test rsi, rsi
jz loc_29484
mov r13, rcx
mov r14, rdx
mov rbx, rsi
mov r12, rdi
mov rdi, rsi
call _ggml_is_contiguous
test al, al
jz loc_29484
test r14, r14
jz short loc_29385
mov rdi, r14
call _ggml_is_contiguous
test al, al
jz loc_294F7
loc_29385:
test r14, r14
setz al
cmp qword ptr [r12+18h], 0
setnz cl
xor cl, al
jz loc_294A3
mov rdi, rbx
call _ggml_nbytes
xor edx, edx
div qword ptr [r12+30h]
test rdx, rdx
jnz loc_294BF
mov rsi, rax
test r14, r14
mov [rsp+38h+var_38], rax
jz short loc_293DE
mov rdi, r14
call _ggml_nbytes
mov rsi, [rsp+38h+var_38]
mov rcx, [r12+38h]
imul rcx, rsi
cmp rax, rcx
jnz loc_29513
loc_293DE:
lea rax, [r13+1]
imul rax, rsi
mov rcx, [r12+48h]
sub rcx, [r12+40h]
sar rcx, 3
cmp rax, rcx
jg loc_294DB
test rsi, rsi
jle short loc_29475
imul r13, rsi
xor r15d, r15d
shl r13, 3
loc_2940D:
mov rax, [r12+40h]
add rax, r13
mov rbp, [rax+r15*8]
mov rax, [r12+10h]
mov rcx, [r12+30h]
mov rsi, rcx
imul rsi, rbp
add rsi, [rax+0F8h]
mov rdx, rcx
imul rdx, r15
mov rdi, rbx
call _ggml_backend_tensor_set
test r14, r14
jz short loc_2946C
mov rax, [r12+18h]
mov rcx, [r12+38h]
imul rbp, rcx
add rbp, [rax+0F8h]
mov rdx, rcx
imul rdx, r15
mov rdi, r14
mov rsi, rbp
call _ggml_backend_tensor_set
loc_2946C:
inc r15
cmp r15, [rsp+38h+var_38]
jl short loc_2940D
loc_29475:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_29484:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aDataBatchGgmlI; "data_batch && ggml_is_contiguous(data_b"...
mov esi, 90h
jmp loc_2952D
loc_294A3:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aLabelsBatchNul; "(labels_batch == nullptr) == (dataset->"...
mov esi, 92h
jmp short loc_2952D
loc_294BF:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNbDataBatchDat; "nb_data_batch % dataset->nbs_data == 0"
mov esi, 95h
jmp short loc_2952D
loc_294DB:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aIbatch1ShardsP; "(ibatch + 1)*shards_per_batch <= int64_"...
mov esi, 9Dh
jmp short loc_2952D
loc_294F7:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aLabelsBatchGgm; "!labels_batch || ggml_is_contiguous(lab"...
mov esi, 91h
jmp short loc_2952D
loc_29513:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNbLabelsBatchS; "nb_labels_batch == shards_per_batch*dat"...
mov esi, 9Ah
loc_2952D:
xor eax, eax
call _ggml_abort
|
long long ggml_opt_dataset_get_batch(_QWORD *a1, long long *a2, long long *a3, long long a4, int a5, int a6)
{
unsigned long long v9; // rax
unsigned long long v10; // rtt
long long v11; // rsi
long long result; // rax
signed long long v13; // r15
long long v14; // r13
long long v15; // rbp
const char *v16; // rcx
int v17; // esi
signed long long v18; // [rsp+0h] [rbp-38h]
if ( !a2 || !(unsigned __int8)ggml_is_contiguous((long long)a2) )
{
v16 = "data_batch && ggml_is_contiguous(data_batch)";
v17 = 144;
goto LABEL_22;
}
if ( a3 && !(unsigned __int8)ggml_is_contiguous((long long)a3) )
{
v16 = "!labels_batch || ggml_is_contiguous(labels_batch)";
v17 = 145;
goto LABEL_22;
}
if ( (a3 == 0LL) == (a1[3] != 0LL) )
{
v16 = "(labels_batch == nullptr) == (dataset->labels == nullptr)";
v17 = 146;
goto LABEL_22;
}
v10 = ggml_nbytes(a2);
v9 = v10 / a1[6];
if ( v10 % a1[6] )
{
v16 = "nb_data_batch % dataset->nbs_data == 0";
v17 = 149;
goto LABEL_22;
}
v11 = v9;
v18 = v9;
if ( a3 )
{
v11 = v9;
if ( ggml_nbytes(a3) != v9 * a1[7] )
{
v16 = "nb_labels_batch == shards_per_batch*dataset->nbs_labels";
v17 = 154;
LABEL_22:
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp",
v17,
(unsigned int)"GGML_ASSERT(%s) failed",
(_DWORD)v16,
a5,
a6);
}
}
result = v11 * (a4 + 1);
if ( result > (long long)(a1[9] - a1[8]) >> 3 )
{
v16 = "(ibatch + 1)*shards_per_batch <= int64_t(dataset->permutation.size())";
v17 = 157;
goto LABEL_22;
}
if ( v11 > 0 )
{
v13 = 0LL;
v14 = 8 * v11 * a4;
do
{
v15 = *(_QWORD *)(v14 + a1[8] + 8 * v13);
result = ggml_backend_tensor_set(a2, *(_QWORD *)(a1[2] + 248LL) + v15 * a1[6], v13 * a1[6], a1[6]);
if ( a3 )
result = ggml_backend_tensor_set(a3, *(_QWORD *)(a1[3] + 248LL) + a1[7] * v15, v13 * a1[7], a1[7]);
++v13;
}
while ( v13 < v18 );
}
return result;
}
|
ggml_opt_dataset_get_batch:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
TEST RSI,RSI
JZ 0x00129484
MOV R13,RCX
MOV R14,RDX
MOV RBX,RSI
MOV R12,RDI
MOV RDI,RSI
CALL 0x00116430
TEST AL,AL
JZ 0x00129484
TEST R14,R14
JZ 0x00129385
MOV RDI,R14
CALL 0x00116430
TEST AL,AL
JZ 0x001294f7
LAB_00129385:
TEST R14,R14
SETZ AL
CMP qword ptr [R12 + 0x18],0x0
SETNZ CL
XOR CL,AL
JZ 0x001294a3
MOV RDI,RBX
CALL 0x001161c0
XOR EDX,EDX
DIV qword ptr [R12 + 0x30]
TEST RDX,RDX
JNZ 0x001294bf
MOV RSI,RAX
TEST R14,R14
MOV qword ptr [RSP],RAX
JZ 0x001293de
MOV RDI,R14
CALL 0x001161c0
MOV RSI,qword ptr [RSP]
MOV RCX,qword ptr [R12 + 0x38]
IMUL RCX,RSI
CMP RAX,RCX
JNZ 0x00129513
LAB_001293de:
LEA RAX,[R13 + 0x1]
IMUL RAX,RSI
MOV RCX,qword ptr [R12 + 0x48]
SUB RCX,qword ptr [R12 + 0x40]
SAR RCX,0x3
CMP RAX,RCX
JG 0x001294db
TEST RSI,RSI
JLE 0x00129475
IMUL R13,RSI
XOR R15D,R15D
SHL R13,0x3
LAB_0012940d:
MOV RAX,qword ptr [R12 + 0x40]
ADD RAX,R13
MOV RBP,qword ptr [RAX + R15*0x8]
MOV RAX,qword ptr [R12 + 0x10]
MOV RCX,qword ptr [R12 + 0x30]
MOV RSI,RCX
IMUL RSI,RBP
ADD RSI,qword ptr [RAX + 0xf8]
MOV RDX,RCX
IMUL RDX,R15
MOV RDI,RBX
CALL 0x001168d0
TEST R14,R14
JZ 0x0012946c
MOV RAX,qword ptr [R12 + 0x18]
MOV RCX,qword ptr [R12 + 0x38]
IMUL RBP,RCX
ADD RBP,qword ptr [RAX + 0xf8]
MOV RDX,RCX
IMUL RDX,R15
MOV RDI,R14
MOV RSI,RBP
CALL 0x001168d0
LAB_0012946c:
INC R15
CMP R15,qword ptr [RSP]
JL 0x0012940d
LAB_00129475:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00129484:
LEA RDI,[0x14ddb8]
LEA RDX,[0x14a65a]
LEA RCX,[0x14de7c]
MOV ESI,0x90
JMP 0x0012952d
LAB_001294a3:
LEA RDI,[0x14ddb8]
LEA RDX,[0x14a65a]
LEA RCX,[0x14dedb]
MOV ESI,0x92
JMP 0x0012952d
LAB_001294bf:
LEA RDI,[0x14ddb8]
LEA RDX,[0x14a65a]
LEA RCX,[0x14df15]
MOV ESI,0x95
JMP 0x0012952d
LAB_001294db:
LEA RDI,[0x14ddb8]
LEA RDX,[0x14a65a]
LEA RCX,[0x14df74]
MOV ESI,0x9d
JMP 0x0012952d
LAB_001294f7:
LEA RDI,[0x14ddb8]
LEA RDX,[0x14a65a]
LEA RCX,[0x14dea9]
MOV ESI,0x91
JMP 0x0012952d
LAB_00129513:
LEA RDI,[0x14ddb8]
LEA RDX,[0x14a65a]
LEA RCX,[0x14df3c]
MOV ESI,0x9a
LAB_0012952d:
XOR EAX,EAX
CALL 0x00117c70
|
void ggml_opt_dataset_get_batch(long param_1,long param_2,long param_3,long param_4)
{
char cVar1;
ulong uVar2;
ulong uVar3;
long lVar4;
long lVar5;
char *pcVar6;
int8 uVar7;
if (param_2 != 0) {
cVar1 = ggml_is_contiguous(param_2);
if (cVar1 != '\0') {
if (param_3 != 0) {
cVar1 = ggml_is_contiguous(param_3);
if (cVar1 == '\0') {
pcVar6 = "!labels_batch || ggml_is_contiguous(labels_batch)";
uVar7 = 0x91;
goto LAB_0012952d;
}
}
if ((*(long *)(param_1 + 0x18) != 0) == (param_3 == 0)) {
pcVar6 = "(labels_batch == nullptr) == (dataset->labels == nullptr)";
uVar7 = 0x92;
}
else {
uVar2 = ggml_nbytes(param_2);
uVar3 = uVar2 / *(ulong *)(param_1 + 0x30);
if (uVar2 % *(ulong *)(param_1 + 0x30) == 0) {
if (param_3 != 0) {
lVar4 = ggml_nbytes(param_3);
if (lVar4 != *(long *)(param_1 + 0x38) * uVar3) {
pcVar6 = "nb_labels_batch == shards_per_batch*dataset->nbs_labels";
uVar7 = 0x9a;
goto LAB_0012952d;
}
}
lVar4 = (param_4 + 1) * uVar3;
lVar5 = *(long *)(param_1 + 0x48) - *(long *)(param_1 + 0x40) >> 3;
if (lVar4 - lVar5 == 0 || lVar4 < lVar5) {
if (0 < (long)uVar3) {
lVar4 = 0;
do {
lVar5 = *(long *)(*(long *)(param_1 + 0x40) + param_4 * uVar3 * 8 + lVar4 * 8);
ggml_backend_tensor_set
(param_2,*(long *)(param_1 + 0x30) * lVar5 +
*(long *)(*(long *)(param_1 + 0x10) + 0xf8),
*(long *)(param_1 + 0x30) * lVar4);
if (param_3 != 0) {
ggml_backend_tensor_set
(param_3,lVar5 * *(long *)(param_1 + 0x38) +
*(long *)(*(long *)(param_1 + 0x18) + 0xf8),
*(long *)(param_1 + 0x38) * lVar4);
}
lVar4 = lVar4 + 1;
} while (lVar4 < (long)uVar3);
}
return;
}
pcVar6 = "(ibatch + 1)*shards_per_batch <= int64_t(dataset->permutation.size())";
uVar7 = 0x9d;
}
else {
pcVar6 = "nb_data_batch % dataset->nbs_data == 0";
uVar7 = 0x95;
}
}
goto LAB_0012952d;
}
}
pcVar6 = "data_batch && ggml_is_contiguous(data_batch)";
uVar7 = 0x90;
LAB_0012952d:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp",
uVar7,"GGML_ASSERT(%s) failed",pcVar6);
}
|
|
65,085 |
ggml_opt_dataset_get_batch
|
ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp
|
void ggml_opt_dataset_get_batch(ggml_opt_dataset_t dataset, struct ggml_tensor * data_batch, struct ggml_tensor * labels_batch, int64_t ibatch) {
GGML_ASSERT( data_batch && ggml_is_contiguous(data_batch));
GGML_ASSERT(!labels_batch || ggml_is_contiguous(labels_batch));
GGML_ASSERT((labels_batch == nullptr) == (dataset->labels == nullptr));
const size_t nb_data_batch = ggml_nbytes(data_batch);
GGML_ASSERT(nb_data_batch % dataset->nbs_data == 0);
const int64_t shards_per_batch = nb_data_batch / dataset->nbs_data;
if (labels_batch) {
const size_t nb_labels_batch = ggml_nbytes(labels_batch);
GGML_ASSERT(nb_labels_batch == shards_per_batch*dataset->nbs_labels);
}
GGML_ASSERT((ibatch + 1)*shards_per_batch <= int64_t(dataset->permutation.size()));
for (int64_t ishard_batch = 0; ishard_batch < shards_per_batch; ++ishard_batch) {
const int64_t ishard = dataset->permutation[ibatch*shards_per_batch + ishard_batch];
const char * ptr_data = (const char *) dataset->data->data + ishard*dataset->nbs_data;
ggml_backend_tensor_set(data_batch, ptr_data, ishard_batch*dataset->nbs_data, dataset->nbs_data);
if (!labels_batch) {
continue;
}
const char * ptr_labels = (const char *) dataset->labels->data + ishard*dataset->nbs_labels;
ggml_backend_tensor_set(labels_batch, ptr_labels, ishard_batch*dataset->nbs_labels, dataset->nbs_labels);
}
}
|
O3
|
cpp
|
ggml_opt_dataset_get_batch:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x2930c
movq %rcx, %r13
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movq %rsi, %rdi
callq 0x16430
testb %al, %al
je 0x2930c
testq %r14, %r14
je 0x2920d
movq %r14, %rdi
callq 0x16430
testb %al, %al
je 0x2937f
testq %r14, %r14
sete %al
cmpq $0x0, 0x18(%r12)
setne %cl
xorb %al, %cl
je 0x2932b
movq %rbx, %rdi
callq 0x161c0
xorl %edx, %edx
divq 0x30(%r12)
testq %rdx, %rdx
jne 0x29347
movq %rax, %rsi
testq %r14, %r14
movq %rax, (%rsp)
je 0x29266
movq %r14, %rdi
callq 0x161c0
movq (%rsp), %rsi
movq 0x38(%r12), %rcx
imulq %rsi, %rcx
cmpq %rcx, %rax
jne 0x2939b
leaq 0x1(%r13), %rax
imulq %rsi, %rax
movq 0x48(%r12), %rcx
subq 0x40(%r12), %rcx
sarq $0x3, %rcx
cmpq %rcx, %rax
jg 0x29363
testq %rsi, %rsi
jle 0x292fd
imulq %rsi, %r13
xorl %r15d, %r15d
shlq $0x3, %r13
movq 0x40(%r12), %rax
addq %r13, %rax
movq (%rax,%r15,8), %rbp
movq 0x10(%r12), %rax
movq 0x30(%r12), %rcx
movq %rcx, %rsi
imulq %rbp, %rsi
addq 0xf8(%rax), %rsi
movq %rcx, %rdx
imulq %r15, %rdx
movq %rbx, %rdi
callq 0x168d0
testq %r14, %r14
je 0x292f4
movq 0x18(%r12), %rax
movq 0x38(%r12), %rcx
imulq %rcx, %rbp
addq 0xf8(%rax), %rbp
movq %rcx, %rdx
imulq %r15, %rdx
movq %r14, %rdi
movq %rbp, %rsi
callq 0x168d0
incq %r15
cmpq (%rsp), %r15
jl 0x29295
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x24aa5(%rip), %rdi # 0x4ddb8
leaq 0x21344(%rip), %rdx # 0x4a65e
leaq 0x24b5b(%rip), %rcx # 0x4de7c
movl $0x90, %esi
jmp 0x293b5
leaq 0x24a86(%rip), %rdi # 0x4ddb8
leaq 0x21325(%rip), %rdx # 0x4a65e
leaq 0x24b9b(%rip), %rcx # 0x4dedb
movl $0x92, %esi
jmp 0x293b5
leaq 0x24a6a(%rip), %rdi # 0x4ddb8
leaq 0x21309(%rip), %rdx # 0x4a65e
leaq 0x24bb9(%rip), %rcx # 0x4df15
movl $0x95, %esi
jmp 0x293b5
leaq 0x24a4e(%rip), %rdi # 0x4ddb8
leaq 0x212ed(%rip), %rdx # 0x4a65e
leaq 0x24bfc(%rip), %rcx # 0x4df74
movl $0x9d, %esi
jmp 0x293b5
leaq 0x24a32(%rip), %rdi # 0x4ddb8
leaq 0x212d1(%rip), %rdx # 0x4a65e
leaq 0x24b15(%rip), %rcx # 0x4dea9
movl $0x91, %esi
jmp 0x293b5
leaq 0x24a16(%rip), %rdi # 0x4ddb8
leaq 0x212b5(%rip), %rdx # 0x4a65e
leaq 0x24b8c(%rip), %rcx # 0x4df3c
movl $0x9a, %esi
xorl %eax, %eax
callq 0x17c60
|
ggml_opt_dataset_get_batch:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
test rsi, rsi
jz loc_2930C
mov r13, rcx
mov r14, rdx
mov rbx, rsi
mov r12, rdi
mov rdi, rsi
call _ggml_is_contiguous
test al, al
jz loc_2930C
test r14, r14
jz short loc_2920D
mov rdi, r14
call _ggml_is_contiguous
test al, al
jz loc_2937F
loc_2920D:
test r14, r14
setz al
cmp qword ptr [r12+18h], 0
setnz cl
xor cl, al
jz loc_2932B
mov rdi, rbx
call _ggml_nbytes
xor edx, edx
div qword ptr [r12+30h]
test rdx, rdx
jnz loc_29347
mov rsi, rax
test r14, r14
mov [rsp+38h+var_38], rax
jz short loc_29266
mov rdi, r14
call _ggml_nbytes
mov rsi, [rsp+38h+var_38]
mov rcx, [r12+38h]
imul rcx, rsi
cmp rax, rcx
jnz loc_2939B
loc_29266:
lea rax, [r13+1]
imul rax, rsi
mov rcx, [r12+48h]
sub rcx, [r12+40h]
sar rcx, 3
cmp rax, rcx
jg loc_29363
test rsi, rsi
jle short loc_292FD
imul r13, rsi
xor r15d, r15d
shl r13, 3
loc_29295:
mov rax, [r12+40h]
add rax, r13
mov rbp, [rax+r15*8]
mov rax, [r12+10h]
mov rcx, [r12+30h]
mov rsi, rcx
imul rsi, rbp
add rsi, [rax+0F8h]
mov rdx, rcx
imul rdx, r15
mov rdi, rbx
call _ggml_backend_tensor_set
test r14, r14
jz short loc_292F4
mov rax, [r12+18h]
mov rcx, [r12+38h]
imul rbp, rcx
add rbp, [rax+0F8h]
mov rdx, rcx
imul rdx, r15
mov rdi, r14
mov rsi, rbp
call _ggml_backend_tensor_set
loc_292F4:
inc r15
cmp r15, [rsp+38h+var_38]
jl short loc_29295
loc_292FD:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_2930C:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aDataBatchGgmlI; "data_batch && ggml_is_contiguous(data_b"...
mov esi, 90h
jmp loc_293B5
loc_2932B:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aLabelsBatchNul; "(labels_batch == nullptr) == (dataset->"...
mov esi, 92h
jmp short loc_293B5
loc_29347:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNbDataBatchDat; "nb_data_batch % dataset->nbs_data == 0"
mov esi, 95h
jmp short loc_293B5
loc_29363:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aIbatch1ShardsP; "(ibatch + 1)*shards_per_batch <= int64_"...
mov esi, 9Dh
jmp short loc_293B5
loc_2937F:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aLabelsBatchGgm; "!labels_batch || ggml_is_contiguous(lab"...
mov esi, 91h
jmp short loc_293B5
loc_2939B:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNbLabelsBatchS; "nb_labels_batch == shards_per_batch*dat"...
mov esi, 9Ah
loc_293B5:
xor eax, eax
call _ggml_abort
|
long long ggml_opt_dataset_get_batch(
_QWORD *a1,
unsigned int *a2,
unsigned int *a3,
long long a4,
int a5,
int a6)
{
unsigned long long v9; // rax
unsigned long long v10; // rtt
long long v11; // rsi
long long result; // rax
signed long long v13; // r15
long long v14; // r13
long long v15; // rbp
const char *v16; // rcx
int v17; // esi
signed long long v18; // [rsp+0h] [rbp-38h]
if ( !a2 || !(unsigned __int8)ggml_is_contiguous((long long)a2) )
{
v16 = "data_batch && ggml_is_contiguous(data_batch)";
v17 = 144;
goto LABEL_22;
}
if ( a3 && !(unsigned __int8)ggml_is_contiguous((long long)a3) )
{
v16 = "!labels_batch || ggml_is_contiguous(labels_batch)";
v17 = 145;
goto LABEL_22;
}
if ( (a3 == 0LL) == (a1[3] != 0LL) )
{
v16 = "(labels_batch == nullptr) == (dataset->labels == nullptr)";
v17 = 146;
goto LABEL_22;
}
v10 = ggml_nbytes(a2);
v9 = v10 / a1[6];
if ( v10 % a1[6] )
{
v16 = "nb_data_batch % dataset->nbs_data == 0";
v17 = 149;
goto LABEL_22;
}
v11 = v9;
v18 = v9;
if ( a3 )
{
v11 = v9;
if ( ggml_nbytes(a3) != v9 * a1[7] )
{
v16 = "nb_labels_batch == shards_per_batch*dataset->nbs_labels";
v17 = 154;
LABEL_22:
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp",
v17,
(unsigned int)"GGML_ASSERT(%s) failed",
(_DWORD)v16,
a5,
a6);
}
}
result = v11 * (a4 + 1);
if ( result > (long long)(a1[9] - a1[8]) >> 3 )
{
v16 = "(ibatch + 1)*shards_per_batch <= int64_t(dataset->permutation.size())";
v17 = 157;
goto LABEL_22;
}
if ( v11 > 0 )
{
v13 = 0LL;
v14 = 8 * v11 * a4;
do
{
v15 = *(_QWORD *)(v14 + a1[8] + 8 * v13);
result = ggml_backend_tensor_set(a2, *(_QWORD *)(a1[2] + 248LL) + v15 * a1[6], v13 * a1[6], a1[6]);
if ( a3 )
result = ggml_backend_tensor_set(a3, *(_QWORD *)(a1[3] + 248LL) + a1[7] * v15, v13 * a1[7], a1[7]);
++v13;
}
while ( v13 < v18 );
}
return result;
}
|
ggml_opt_dataset_get_batch:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
TEST RSI,RSI
JZ 0x0012930c
MOV R13,RCX
MOV R14,RDX
MOV RBX,RSI
MOV R12,RDI
MOV RDI,RSI
CALL 0x00116430
TEST AL,AL
JZ 0x0012930c
TEST R14,R14
JZ 0x0012920d
MOV RDI,R14
CALL 0x00116430
TEST AL,AL
JZ 0x0012937f
LAB_0012920d:
TEST R14,R14
SETZ AL
CMP qword ptr [R12 + 0x18],0x0
SETNZ CL
XOR CL,AL
JZ 0x0012932b
MOV RDI,RBX
CALL 0x001161c0
XOR EDX,EDX
DIV qword ptr [R12 + 0x30]
TEST RDX,RDX
JNZ 0x00129347
MOV RSI,RAX
TEST R14,R14
MOV qword ptr [RSP],RAX
JZ 0x00129266
MOV RDI,R14
CALL 0x001161c0
MOV RSI,qword ptr [RSP]
MOV RCX,qword ptr [R12 + 0x38]
IMUL RCX,RSI
CMP RAX,RCX
JNZ 0x0012939b
LAB_00129266:
LEA RAX,[R13 + 0x1]
IMUL RAX,RSI
MOV RCX,qword ptr [R12 + 0x48]
SUB RCX,qword ptr [R12 + 0x40]
SAR RCX,0x3
CMP RAX,RCX
JG 0x00129363
TEST RSI,RSI
JLE 0x001292fd
IMUL R13,RSI
XOR R15D,R15D
SHL R13,0x3
LAB_00129295:
MOV RAX,qword ptr [R12 + 0x40]
ADD RAX,R13
MOV RBP,qword ptr [RAX + R15*0x8]
MOV RAX,qword ptr [R12 + 0x10]
MOV RCX,qword ptr [R12 + 0x30]
MOV RSI,RCX
IMUL RSI,RBP
ADD RSI,qword ptr [RAX + 0xf8]
MOV RDX,RCX
IMUL RDX,R15
MOV RDI,RBX
CALL 0x001168d0
TEST R14,R14
JZ 0x001292f4
MOV RAX,qword ptr [R12 + 0x18]
MOV RCX,qword ptr [R12 + 0x38]
IMUL RBP,RCX
ADD RBP,qword ptr [RAX + 0xf8]
MOV RDX,RCX
IMUL RDX,R15
MOV RDI,R14
MOV RSI,RBP
CALL 0x001168d0
LAB_001292f4:
INC R15
CMP R15,qword ptr [RSP]
JL 0x00129295
LAB_001292fd:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0012930c:
LEA RDI,[0x14ddb8]
LEA RDX,[0x14a65e]
LEA RCX,[0x14de7c]
MOV ESI,0x90
JMP 0x001293b5
LAB_0012932b:
LEA RDI,[0x14ddb8]
LEA RDX,[0x14a65e]
LEA RCX,[0x14dedb]
MOV ESI,0x92
JMP 0x001293b5
LAB_00129347:
LEA RDI,[0x14ddb8]
LEA RDX,[0x14a65e]
LEA RCX,[0x14df15]
MOV ESI,0x95
JMP 0x001293b5
LAB_00129363:
LEA RDI,[0x14ddb8]
LEA RDX,[0x14a65e]
LEA RCX,[0x14df74]
MOV ESI,0x9d
JMP 0x001293b5
LAB_0012937f:
LEA RDI,[0x14ddb8]
LEA RDX,[0x14a65e]
LEA RCX,[0x14dea9]
MOV ESI,0x91
JMP 0x001293b5
LAB_0012939b:
LEA RDI,[0x14ddb8]
LEA RDX,[0x14a65e]
LEA RCX,[0x14df3c]
MOV ESI,0x9a
LAB_001293b5:
XOR EAX,EAX
CALL 0x00117c60
|
void ggml_opt_dataset_get_batch(long param_1,long param_2,long param_3,long param_4)
{
char cVar1;
ulong uVar2;
ulong uVar3;
long lVar4;
long lVar5;
char *pcVar6;
int8 uVar7;
if (param_2 != 0) {
cVar1 = ggml_is_contiguous(param_2);
if (cVar1 != '\0') {
if (param_3 != 0) {
cVar1 = ggml_is_contiguous(param_3);
if (cVar1 == '\0') {
pcVar6 = "!labels_batch || ggml_is_contiguous(labels_batch)";
uVar7 = 0x91;
goto LAB_001293b5;
}
}
if ((*(long *)(param_1 + 0x18) != 0) == (param_3 == 0)) {
pcVar6 = "(labels_batch == nullptr) == (dataset->labels == nullptr)";
uVar7 = 0x92;
}
else {
uVar2 = ggml_nbytes(param_2);
uVar3 = uVar2 / *(ulong *)(param_1 + 0x30);
if (uVar2 % *(ulong *)(param_1 + 0x30) == 0) {
if (param_3 != 0) {
lVar4 = ggml_nbytes(param_3);
if (lVar4 != *(long *)(param_1 + 0x38) * uVar3) {
pcVar6 = "nb_labels_batch == shards_per_batch*dataset->nbs_labels";
uVar7 = 0x9a;
goto LAB_001293b5;
}
}
lVar4 = (param_4 + 1) * uVar3;
lVar5 = *(long *)(param_1 + 0x48) - *(long *)(param_1 + 0x40) >> 3;
if (lVar4 - lVar5 == 0 || lVar4 < lVar5) {
if (0 < (long)uVar3) {
lVar4 = 0;
do {
lVar5 = *(long *)(*(long *)(param_1 + 0x40) + param_4 * uVar3 * 8 + lVar4 * 8);
ggml_backend_tensor_set
(param_2,*(long *)(param_1 + 0x30) * lVar5 +
*(long *)(*(long *)(param_1 + 0x10) + 0xf8),
*(long *)(param_1 + 0x30) * lVar4);
if (param_3 != 0) {
ggml_backend_tensor_set
(param_3,lVar5 * *(long *)(param_1 + 0x38) +
*(long *)(*(long *)(param_1 + 0x18) + 0xf8),
*(long *)(param_1 + 0x38) * lVar4);
}
lVar4 = lVar4 + 1;
} while (lVar4 < (long)uVar3);
}
return;
}
pcVar6 = "(ibatch + 1)*shards_per_batch <= int64_t(dataset->permutation.size())";
uVar7 = 0x9d;
}
else {
pcVar6 = "nb_data_batch % dataset->nbs_data == 0";
uVar7 = 0x95;
}
}
goto LAB_001293b5;
}
}
pcVar6 = "data_batch && ggml_is_contiguous(data_batch)";
uVar7 = 0x90;
LAB_001293b5:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp",
uVar7,"GGML_ASSERT(%s) failed",pcVar6);
}
|
|
65,086 |
getTimezoneOffset
|
bluesky950520[P]quickjs/quickjs.c
|
static int getTimezoneOffset(int64_t time) {
#if defined(_WIN32)
DWORD r;
TIME_ZONE_INFORMATION t;
r = GetTimeZoneInformation(&t);
if (r == TIME_ZONE_ID_INVALID)
return 0;
if (r == TIME_ZONE_ID_DAYLIGHT)
return (int)(t.Bias + t.DaylightBias);
return (int)t.Bias;
#else
time_t ti;
struct tm tm;
time /= 1000; /* convert to seconds */
if (sizeof(time_t) == 4) {
/* on 32-bit systems, we need to clamp the time value to the
range of `time_t`. This is better than truncating values to
32 bits and hopefully provides the same result as 64-bit
implementation of localtime_r.
*/
if ((time_t)-1 < 0) {
if (time < INT32_MIN) {
time = INT32_MIN;
} else if (time > INT32_MAX) {
time = INT32_MAX;
}
} else {
if (time < 0) {
time = 0;
} else if (time > UINT32_MAX) {
time = UINT32_MAX;
}
}
}
ti = time;
localtime_r(&ti, &tm);
#ifdef NO_TM_GMTOFF
struct tm gmt;
gmtime_r(&ti, &gmt);
/* disable DST adjustment on the local tm struct */
tm.tm_isdst = 0;
return (int)difftime(mktime(&gmt), mktime(&tm)) / 60;
#else
return -tm.tm_gmtoff / 60;
#endif /* NO_TM_GMTOFF */
#endif
}
|
O2
|
c
|
getTimezoneOffset:
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rax
movl $0x3e8, %ecx # imm = 0x3E8
cqto
idivq %rcx
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x8(%rsp), %rbx
movq %rbx, %rsi
callq 0xe0f0
movq 0x28(%rbx), %rax
pushq $-0x3c
popq %rcx
cqto
idivq %rcx
addq $0x40, %rsp
popq %rbx
retq
|
getTimezoneOffset:
push rbx
sub rsp, 40h
mov rax, rdi
mov ecx, 3E8h
cqo
idiv rcx
mov rdi, rsp
mov [rdi], rax
lea rbx, [rsp+48h+var_40]
mov rsi, rbx
call _localtime_r
mov rax, [rbx+28h]
push 0FFFFFFFFFFFFFFC4h
pop rcx
cqo
idiv rcx
add rsp, 40h
pop rbx
retn
|
long long getTimezoneOffset(long long a1)
{
long long v2; // [rsp+0h] [rbp-48h] BYREF
char v3; // [rsp+8h] [rbp-40h] BYREF
long long v4; // [rsp+30h] [rbp-18h]
v2 = a1 / 1000;
localtime_r(&v2, &v3, a1 % 1000);
return v4 / -60;
}
|
getTimezoneOffset:
PUSH RBX
SUB RSP,0x40
MOV RAX,RDI
MOV ECX,0x3e8
CQO
IDIV RCX
MOV RDI,RSP
MOV qword ptr [RDI],RAX
LEA RBX,[RSP + 0x8]
MOV RSI,RBX
CALL 0x0010e0f0
MOV RAX,qword ptr [RBX + 0x28]
PUSH -0x3c
POP RCX
CQO
IDIV RCX
ADD RSP,0x40
POP RBX
RET
|
long getTimezoneOffset(long param_1)
{
long local_48;
tm local_40;
local_48 = param_1 / 1000;
localtime_r(&local_48,&local_40);
return local_40.tm_gmtoff / -0x3c;
}
|
|
65,087 |
google::protobuf::compiler::php::(anonymous namespace)::PhpName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::compiler::php::Options const&)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/php/php_generator.cc
|
std::string PhpName(const std::string& full_name, const Options& options) {
if (options.is_descriptor) {
return kDescriptorPackageName;
}
std::string segment;
std::string result;
bool cap_next_letter = true;
for (int i = 0; i < full_name.size(); i++) {
if ('a' <= full_name[i] && full_name[i] <= 'z' && cap_next_letter) {
segment += full_name[i] + ('A' - 'a');
cap_next_letter = false;
} else if (full_name[i] == '.') {
result += ClassNamePrefix(segment) + segment + '\\';
segment = "";
cap_next_letter = true;
} else {
segment += full_name[i];
cap_next_letter = false;
}
}
result += ClassNamePrefix(segment) + segment;
return result;
}
|
O3
|
cpp
|
google::protobuf::compiler::php::(anonymous namespace)::PhpName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::compiler::php::Options const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
testb $0x1, %dl
je 0x5d3a2
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq 0x2230e1(%rip), %rsi # 0x280460
movq 0x2230e2(%rip), %rdx # 0x280468
addq %rsi, %rdx
movq %rbx, %rdi
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2586a
movq %rsi, %r14
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
xorl %edx, %edx
movq %rdx, -0x8(%r12)
movb %dl, (%r12)
leaq 0x10(%rbx), %rax
movq %rax, 0x60(%rsp)
movq %rax, (%rbx)
movq %rdx, 0x8(%rbx)
movb %dl, 0x10(%rbx)
movq %r12, %rsi
cmpq %rdx, 0x8(%r14)
je 0x5d56a
leaq 0x10(%rsp), %rbp
movb $0x1, %r13b
xorl %r12d, %r12d
leaq 0x20(%rsp), %r15
movq (%r14), %rax
movb (%rax,%r12), %al
cmpb $0x61, %al
jl 0x5d40c
leal -0x20(%rax), %ecx
cmpb $0x7b, %al
movzbl %al, %edx
movzbl %cl, %eax
cmovael %edx, %eax
testb $0x1, %r13b
cmovel %edx, %eax
jmp 0x5d461
cmpb $0x2e, %al
jne 0x5d461
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x68(%rsp), %r13
movq %r13, %rdi
callq 0x5d6b2
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r13, %rdi
callq 0x1f150
leaq 0x50(%rsp), %r13
movq %r13, 0x40(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5d474
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0x5d47c
movsbl %al, %esi
movq %r15, %rdi
callq 0x1f420
xorl %r13d, %r13d
jmp 0x5d54e
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x48(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x48(%rsp), %rsi
movl $0x1, %ecx
leaq 0x40(%rsp), %rdi
xorl %edx, %edx
movl $0x5c, %r8d
callq 0x1f8c0
movq %rbp, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5d4d1
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x5d4d8
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x1f150
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x5d50f
callq 0x1f4a0
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x5d51e
callq 0x1f4a0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x5d532
callq 0x1f4a0
movb $0x1, %r13b
movq 0x28(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
leaq 0x13d063(%rip), %rcx # 0x19a5a9
xorl %r8d, %r8d
callq 0x1f760
incq %r12
cmpq %r12, 0x8(%r14)
ja 0x5d3ea
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x30(%rsp), %r12
leaq 0x40(%rsp), %rdi
callq 0x5d6b2
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x40(%rsp), %rdi
callq 0x1f150
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x5d5ae
movq %rsi, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x5d5b8
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq %r15, %rsi
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
callq 0x1f150
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x5d5e6
callq 0x1f4a0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5d5f9
callq 0x1f4a0
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x5d608
callq 0x1f4a0
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x5d630
callq 0x1f4a0
jmp 0x5d630
movq %rax, %r14
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x5d676
jmp 0x5d684
movq %rax, %r14
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x5d653
callq 0x1f4a0
jmp 0x5d653
movq %rax, %r14
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x5d66c
callq 0x1f4a0
jmp 0x5d66c
movq %rax, %r14
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x5d687
callq 0x1f4a0
jmp 0x5d687
jmp 0x5d684
movq %rax, %r14
movq (%rbx), %rdi
cmpq 0x60(%rsp), %rdi
je 0x5d696
callq 0x1f4a0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x5d6aa
callq 0x1f4a0
movq %r14, %rdi
callq 0x1f860
|
_ZN6google8protobuf8compiler3php12_GLOBAL__N_17PhpNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS2_7OptionsE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov rbx, rdi
test dl, 1
jz short loc_5D3A2
lea rax, [rbx+10h]
mov [rbx], rax
mov rsi, cs:_ZL22kDescriptorPackageNameB5cxx11; kDescriptorPackageName
mov rdx, cs:qword_280468
add rdx, rsi
mov rdi, rbx
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
loc_5D3A2:
mov r14, rsi
lea r12, [rsp+0B8h+var_88]
mov [r12-10h], r12
xor edx, edx
mov [r12-8], rdx
mov [r12], dl
lea rax, [rbx+10h]
mov [rsp+0B8h+var_58], rax
mov [rbx], rax
mov [rbx+8], rdx
mov [rbx+10h], dl
mov rsi, r12
cmp [r14+8], rdx
jz loc_5D56A
lea rbp, [rsp+0B8h+var_A8]
mov r13b, 1
xor r12d, r12d
lea r15, [rsp+0B8h+var_98]
loc_5D3EA:
mov rax, [r14]
mov al, [rax+r12]
cmp al, 61h ; 'a'
jl short loc_5D40C
lea ecx, [rax-20h]
cmp al, 7Bh ; '{'
movzx edx, al
movzx eax, cl
cmovnb eax, edx
test r13b, 1
cmovz eax, edx
jmp short loc_5D461
loc_5D40C:
cmp al, 2Eh ; '.'
jnz short loc_5D461
mov rsi, [rsp+0B8h+var_98]
mov rdx, [rsp+0B8h+var_90]
lea r13, [rsp+0B8h+var_50]
mov rdi, r13
call _ZN6google8protobuf8compiler3php12_GLOBAL__N_115ClassNamePrefixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::compiler::php::`anonymous namespace'::ClassNamePrefix(std::string const&)
mov rsi, [rsp+0B8h+var_98]
mov rdx, [rsp+0B8h+var_90]
mov rdi, r13
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
lea r13, [rsp+0B8h+var_68]
mov [rsp+0B8h+var_78], r13
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_5D474
mov [rsp+0B8h+var_78], rdx
mov rdx, [rcx]
mov [rsp+0B8h+var_68], rdx
jmp short loc_5D47C
loc_5D461:
movsx esi, al
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
xor r13d, r13d
jmp loc_5D54E
loc_5D474:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r13+0], xmm0
loc_5D47C:
mov rdx, [rax+8]
mov [rsp+0B8h+var_70], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov rsi, [rsp+0B8h+var_70]
mov ecx, 1
lea rdi, [rsp+0B8h+var_78]
xor edx, edx
mov r8d, 5Ch ; '\'
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE14_M_replace_auxEmmmc; std::string::_M_replace_aux(ulong,ulong,ulong,char)
mov [rsp+0B8h+var_B8], rbp
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_5D4D1
mov [rsp+0B8h+var_B8], rdx
mov rdx, [rcx]
mov [rsp+0B8h+var_A8], rdx
jmp short loc_5D4D8
loc_5D4D1:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rbp+0], xmm0
loc_5D4D8:
mov rdx, [rax+8]
mov [rsp+0B8h+var_B0], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov rsi, [rsp+0B8h+var_B8]
mov rdx, [rsp+0B8h+var_B0]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+0B8h+var_B8]; void *
cmp rdi, rbp
jz short loc_5D50F
call __ZdlPv; operator delete(void *)
loc_5D50F:
mov rdi, [rsp+0B8h+var_78]; void *
cmp rdi, r13
jz short loc_5D51E
call __ZdlPv; operator delete(void *)
loc_5D51E:
mov rdi, [rsp+0B8h+var_50]; void *
lea rax, [rsp+0B8h+var_40]
cmp rdi, rax
jz short loc_5D532
call __ZdlPv; operator delete(void *)
loc_5D532:
mov r13b, 1
mov rdx, [rsp+0B8h+var_90]
mov rdi, r15
xor esi, esi
lea rcx, asc_19A5A7+2; ""
xor r8d, r8d
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
loc_5D54E:
inc r12
cmp [r14+8], r12
ja loc_5D3EA
mov rsi, [rsp+0B8h+var_98]
mov rdx, [rsp+0B8h+var_90]
lea r12, [rsp+0B8h+var_88]
loc_5D56A:
lea rdi, [rsp+0B8h+var_78]
call _ZN6google8protobuf8compiler3php12_GLOBAL__N_115ClassNamePrefixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::compiler::php::`anonymous namespace'::ClassNamePrefix(std::string const&)
mov rsi, [rsp+0B8h+var_98]
mov rdx, [rsp+0B8h+var_90]
lea rdi, [rsp+0B8h+var_78]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
lea r15, [rsp+0B8h+var_A8]
mov [r15-10h], r15
mov rsi, [rax]
mov rcx, rax
add rcx, 10h
cmp rsi, rcx
jz short loc_5D5AE
mov [rsp+0B8h+var_B8], rsi
mov rdx, [rcx]
mov [rsp+0B8h+var_A8], rdx
jmp short loc_5D5B8
loc_5D5AE:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r15], xmm0
mov rsi, r15
loc_5D5B8:
mov rdx, [rax+8]
mov [rsp+0B8h+var_B0], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+0B8h+var_B8]; void *
cmp rdi, r15
jz short loc_5D5E6
call __ZdlPv; operator delete(void *)
loc_5D5E6:
lea rax, [rsp+0B8h+var_68]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5D5F9
call __ZdlPv; operator delete(void *)
loc_5D5F9:
mov rdi, [rsp+0B8h+var_98]; void *
cmp rdi, r12
jz short loc_5D608
call __ZdlPv; operator delete(void *)
loc_5D608:
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, [rsp+0]; void *
cmp rdi, r15
jz short loc_5D630
call __ZdlPv; operator delete(void *)
jmp short loc_5D630
mov r14, rax
loc_5D630:
lea rax, [rsp+arg_48]
mov rdi, [rax-10h]
jmp short loc_5D676
jmp short loc_5D684
mov r14, rax
mov rdi, [rsp+0]; void *
cmp rdi, rbp
jz short loc_5D653
call __ZdlPv; operator delete(void *)
jmp short loc_5D653
mov r14, rax
loc_5D653:
mov rdi, [rsp+arg_38]; void *
lea rax, [rsp+arg_48]
cmp rdi, rax
jz short loc_5D66C
call __ZdlPv; operator delete(void *)
jmp short loc_5D66C
mov r14, rax
loc_5D66C:
mov rdi, [rsp+arg_60]; void *
lea rax, [rsp+arg_70]
loc_5D676:
cmp rdi, rax
jz short loc_5D687
call __ZdlPv; operator delete(void *)
jmp short loc_5D687
jmp short $+2
loc_5D684:
mov r14, rax
loc_5D687:
mov rdi, [rbx]; void *
cmp rdi, [rsp+arg_58]
jz short loc_5D696
call __ZdlPv; operator delete(void *)
loc_5D696:
mov rdi, [rsp+arg_18]; void *
lea rax, [rsp+arg_28]
cmp rdi, rax
jz short loc_5D6AA
call __ZdlPv; operator delete(void *)
loc_5D6AA:
mov rdi, r14
call __Unwind_Resume
|
void google::protobuf::compiler::php::`anonymous namespace'::PhpName(long long a1, _QWORD *a2, char a3)
{
long long v4; // rdx
_BYTE *v5; // rsi
char v6; // r13
unsigned long long v7; // r12
char v8; // al
bool v9; // cf
long long v10; // rax
__int128 *v11; // rcx
long long v12; // rax
__int128 *v13; // rcx
long long v14; // rax
__int128 *v15; // rsi
__int128 *v16; // rcx
long long v17; // rdx
__int128 *v18; // [rsp+0h] [rbp-B8h]
__int128 *v19; // [rsp+0h] [rbp-B8h]
long long v20; // [rsp+8h] [rbp-B0h]
__int128 v21; // [rsp+10h] [rbp-A8h] BYREF
void *v22; // [rsp+20h] [rbp-98h] BYREF
long long v23; // [rsp+28h] [rbp-90h]
_BYTE v24[16]; // [rsp+30h] [rbp-88h] BYREF
void *v25; // [rsp+40h] [rbp-78h] BYREF
long long v26; // [rsp+48h] [rbp-70h]
__int128 v27; // [rsp+50h] [rbp-68h] BYREF
long long v28; // [rsp+60h] [rbp-58h]
void *v29[2]; // [rsp+68h] [rbp-50h] BYREF
char v30; // [rsp+78h] [rbp-40h] BYREF
if ( (a3 & 1) != 0 )
{
*(_QWORD *)a1 = a1 + 16;
std::string::_M_construct<char *>(
a1,
(_BYTE *)kDescriptorPackageName[abi:cxx11],
kDescriptorPackageName[abi:cxx11] + qword_280468);
return;
}
v22 = v24;
v4 = 0LL;
v23 = 0LL;
v24[0] = 0;
v28 = a1 + 16;
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v5 = v24;
if ( !a2[1] )
goto LABEL_28;
v6 = 1;
v7 = 0LL;
do
{
v8 = *(_BYTE *)(*a2 + v7);
if ( v8 >= 97 )
{
v9 = (unsigned __int8)v8 < 0x7Bu;
v8 -= 32;
if ( !v9 )
v8 = *(_BYTE *)(*a2 + v7);
if ( (v6 & 1) == 0 )
v8 = *(_BYTE *)(*a2 + v7);
LABEL_14:
std::string::push_back(&v22, (unsigned int)v8);
v6 = 0;
goto LABEL_26;
}
if ( v8 != 46 )
goto LABEL_14;
google::protobuf::compiler::php::`anonymous namespace'::ClassNamePrefix(v29, v22, v23);
v10 = std::string::_M_append(v29, v22, v23);
v25 = &v27;
v11 = (__int128 *)(v10 + 16);
if ( *(_QWORD *)v10 == v10 + 16 )
{
v27 = *v11;
}
else
{
v25 = *(void **)v10;
*(_QWORD *)&v27 = *(_QWORD *)v11;
}
v26 = *(_QWORD *)(v10 + 8);
*(_QWORD *)v10 = v11;
*(_QWORD *)(v10 + 8) = 0LL;
*(_BYTE *)(v10 + 16) = 0;
v12 = std::string::_M_replace_aux(&v25, v26, 0LL, 1LL, 92LL);
v18 = &v21;
v13 = (__int128 *)(v12 + 16);
if ( *(_QWORD *)v12 == v12 + 16 )
{
v21 = *v13;
}
else
{
v18 = *(__int128 **)v12;
*(_QWORD *)&v21 = *(_QWORD *)v13;
}
v20 = *(_QWORD *)(v12 + 8);
*(_QWORD *)v12 = v13;
*(_QWORD *)(v12 + 8) = 0LL;
*(_BYTE *)(v12 + 16) = 0;
std::string::_M_append(a1, v18, v20);
if ( v18 != &v21 )
operator delete(v18);
if ( v25 != &v27 )
operator delete(v25);
if ( v29[0] != &v30 )
operator delete(v29[0]);
v6 = 1;
std::string::_M_replace(&v22, 0LL, v23, "", 0LL);
LABEL_26:
++v7;
}
while ( a2[1] > v7 );
v5 = v22;
v4 = v23;
LABEL_28:
google::protobuf::compiler::php::`anonymous namespace'::ClassNamePrefix(&v25, v5, v4);
v14 = std::string::_M_append(&v25, v22, v23);
v19 = &v21;
v15 = *(__int128 **)v14;
v16 = (__int128 *)(v14 + 16);
if ( *(_QWORD *)v14 == v14 + 16 )
{
v21 = *v16;
v15 = &v21;
}
else
{
v19 = *(__int128 **)v14;
*(_QWORD *)&v21 = *(_QWORD *)v16;
}
v17 = *(_QWORD *)(v14 + 8);
*(_QWORD *)v14 = v16;
*(_QWORD *)(v14 + 8) = 0LL;
*(_BYTE *)(v14 + 16) = 0;
std::string::_M_append(a1, v15, v17);
if ( v19 != &v21 )
operator delete(v19);
if ( v25 != &v27 )
operator delete(v25);
if ( v22 != v24 )
operator delete(v22);
}
|
PhpName:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV RBX,RDI
TEST DL,0x1
JZ 0x0015d3a2
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
MOV RSI,qword ptr [0x00380460]
MOV RDX,qword ptr [0x00380468]
ADD RDX,RSI
MOV RDI,RBX
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0012586a
LAB_0015d3a2:
MOV R14,RSI
LEA R12,[RSP + 0x30]
MOV qword ptr [R12 + -0x10],R12
XOR EDX,EDX
MOV qword ptr [R12 + -0x8],RDX
MOV byte ptr [R12],DL
LEA RAX,[RBX + 0x10]
MOV qword ptr [RSP + 0x60],RAX
MOV qword ptr [RBX],RAX
MOV qword ptr [RBX + 0x8],RDX
MOV byte ptr [RBX + 0x10],DL
MOV RSI,R12
CMP qword ptr [R14 + 0x8],RDX
JZ 0x0015d56a
LEA RBP,[RSP + 0x10]
MOV R13B,0x1
XOR R12D,R12D
LEA R15,[RSP + 0x20]
LAB_0015d3ea:
MOV RAX,qword ptr [R14]
MOV AL,byte ptr [RAX + R12*0x1]
CMP AL,0x61
JL 0x0015d40c
LEA ECX,[RAX + -0x20]
CMP AL,0x7b
MOVZX EDX,AL
MOVZX EAX,CL
CMOVNC EAX,EDX
TEST R13B,0x1
CMOVZ EAX,EDX
JMP 0x0015d461
LAB_0015d40c:
CMP AL,0x2e
JNZ 0x0015d461
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
LAB_0015d41a:
LEA R13,[RSP + 0x68]
MOV RDI,R13
CALL 0x0015d6b2
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
LAB_0015d431:
MOV RDI,R13
CALL 0x0011f150
LEA R13,[RSP + 0x50]
MOV qword ptr [RSP + 0x40],R13
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x0015d474
MOV qword ptr [RSP + 0x40],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x50],RDX
JMP 0x0015d47c
LAB_0015d461:
MOVSX ESI,AL
MOV RDI,R15
CALL 0x0011f420
XOR R13D,R13D
JMP 0x0015d54e
LAB_0015d474:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R13],XMM0
LAB_0015d47c:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x48],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
MOV RSI,qword ptr [RSP + 0x48]
LAB_0015d499:
MOV ECX,0x1
LEA RDI,[RSP + 0x40]
XOR EDX,EDX
MOV R8D,0x5c
CALL 0x0011f8c0
MOV qword ptr [RSP],RBP
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x0015d4d1
MOV qword ptr [RSP],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x10],RDX
JMP 0x0015d4d8
LAB_0015d4d1:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RBP],XMM0
LAB_0015d4d8:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
MOV RSI,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x8]
LAB_0015d4f9:
MOV RDI,RBX
CALL 0x0011f150
MOV RDI,qword ptr [RSP]
CMP RDI,RBP
JZ 0x0015d50f
CALL 0x0011f4a0
LAB_0015d50f:
MOV RDI,qword ptr [RSP + 0x40]
CMP RDI,R13
JZ 0x0015d51e
CALL 0x0011f4a0
LAB_0015d51e:
MOV RDI,qword ptr [RSP + 0x68]
LEA RAX,[RSP + 0x78]
CMP RDI,RAX
JZ 0x0015d532
CALL 0x0011f4a0
LAB_0015d532:
MOV R13B,0x1
MOV RDX,qword ptr [RSP + 0x28]
LAB_0015d53a:
MOV RDI,R15
XOR ESI,ESI
LEA RCX,[0x29a5a9]
XOR R8D,R8D
CALL 0x0011f760
LAB_0015d54e:
INC R12
CMP qword ptr [R14 + 0x8],R12
JA 0x0015d3ea
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
LEA R12,[RSP + 0x30]
LAB_0015d56a:
LEA RDI,[RSP + 0x40]
CALL 0x0015d6b2
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
LAB_0015d57e:
LEA RDI,[RSP + 0x40]
CALL 0x0011f150
LEA R15,[RSP + 0x10]
MOV qword ptr [R15 + -0x10],R15
MOV RSI,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RSI,RCX
JZ 0x0015d5ae
MOV qword ptr [RSP],RSI
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x10],RDX
JMP 0x0015d5b8
LAB_0015d5ae:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R15],XMM0
MOV RSI,R15
LAB_0015d5b8:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LAB_0015d5d0:
MOV RDI,RBX
CALL 0x0011f150
LAB_0015d5d8:
MOV RDI,qword ptr [RSP]
CMP RDI,R15
JZ 0x0015d5e6
CALL 0x0011f4a0
LAB_0015d5e6:
LEA RAX,[RSP + 0x50]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0015d5f9
CALL 0x0011f4a0
LAB_0015d5f9:
MOV RDI,qword ptr [RSP + 0x20]
CMP RDI,R12
JZ 0x0015d608
CALL 0x0011f4a0
LAB_0015d608:
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::compiler::php::(anonymous namespace)::PhpName(std::__cxx11::string const&,
google::protobuf::compiler::php::Options const&) */
void __thiscall
google::protobuf::compiler::php::(anonymous_namespace)::PhpName
(_anonymous_namespace_ *this,string *param_1,Options *param_2)
{
long *plVar1;
long *plVar2;
long *plVar3;
ulong uVar4;
long *local_b8;
long local_a8;
long lStack_a0;
int1 *local_98;
char *local_90;
int1 local_88 [16];
long *local_78;
ulong local_70;
long local_68;
long lStack_60;
_anonymous_namespace_ *local_58;
int1 *local_50 [2];
int1 local_40 [16];
if (((ulong)param_2 & 1) == 0) {
local_98 = local_88;
local_90 = (char *)0x0;
local_88[0] = 0;
local_58 = this + 0x10;
*(_anonymous_namespace_ **)this = local_58;
*(int8 *)(this + 8) = 0;
this[0x10] = (_anonymous_namespace_)0x0;
if (*(long *)(param_1 + 8) != 0) {
uVar4 = 0;
do {
if ((*(char *)(*(long *)param_1 + uVar4) < 'a') &&
(*(char *)(*(long *)param_1 + uVar4) == '.')) {
/* try { // try from 0015d41a to 0015d426 has its CatchHandler @ 0015d682 */
ClassNamePrefix((string *)local_50);
/* try { // try from 0015d431 to 0015d438 has its CatchHandler @ 0015d669 */
plVar1 = (long *)std::__cxx11::string::_M_append((char *)local_50,(ulong)local_98);
plVar2 = plVar1 + 2;
if ((long *)*plVar1 == plVar2) {
local_68 = *plVar2;
lStack_60 = plVar1[3];
local_78 = &local_68;
}
else {
local_68 = *plVar2;
local_78 = (long *)*plVar1;
}
local_70 = plVar1[1];
*plVar1 = (long)plVar2;
plVar1[1] = 0;
*(int1 *)(plVar1 + 2) = 0;
/* try { // try from 0015d499 to 0015d4af has its CatchHandler @ 0015d650 */
plVar1 = (long *)std::__cxx11::string::_M_replace_aux((ulong)&local_78,local_70,0,'\x01');
plVar2 = plVar1 + 2;
if ((long *)*plVar1 == plVar2) {
local_a8 = *plVar2;
lStack_a0 = plVar1[3];
local_b8 = &local_a8;
}
else {
local_a8 = *plVar2;
local_b8 = (long *)*plVar1;
}
*plVar1 = (long)plVar2;
plVar1[1] = 0;
*(int1 *)(plVar1 + 2) = 0;
/* try { // try from 0015d4f9 to 0015d500 has its CatchHandler @ 0015d63d */
std::__cxx11::string::_M_append((char *)this,(ulong)local_b8);
if (local_b8 != &local_a8) {
operator_delete(local_b8);
}
if (local_78 != &local_68) {
operator_delete(local_78);
}
if (local_50[0] != local_40) {
operator_delete(local_50[0]);
}
/* try { // try from 0015d53a to 0015d54d has its CatchHandler @ 0015d684 */
std::__cxx11::string::_M_replace((ulong)&local_98,0,local_90,0x29a5a9);
}
else {
/* try { // try from 0015d461 to 0015d46b has its CatchHandler @ 0015d684 */
std::__cxx11::string::push_back((char)&local_98);
}
uVar4 = uVar4 + 1;
} while (uVar4 < *(ulong *)(param_1 + 8));
}
/* try { // try from 0015d56a to 0015d573 has its CatchHandler @ 0015d63b */
ClassNamePrefix((string *)&local_78);
/* try { // try from 0015d57e to 0015d587 has its CatchHandler @ 0015d62d */
plVar1 = (long *)std::__cxx11::string::_M_append((char *)&local_78,(ulong)local_98);
plVar2 = plVar1 + 2;
if ((long *)*plVar1 == plVar2) {
local_a8 = *plVar2;
lStack_a0 = plVar1[3];
plVar3 = &local_a8;
}
else {
local_a8 = *plVar2;
plVar3 = (long *)*plVar1;
}
*plVar1 = (long)plVar2;
plVar1[1] = 0;
*(int1 *)(plVar1 + 2) = 0;
/* try { // try from 0015d5d0 to 0015d5d7 has its CatchHandler @ 0015d61a */
std::__cxx11::string::_M_append((char *)this,(ulong)plVar3);
if (plVar3 != &local_a8) {
operator_delete(plVar3);
}
if (local_78 != &local_68) {
operator_delete(local_78);
}
if (local_98 != local_88) {
operator_delete(local_98);
}
return;
}
*(_anonymous_namespace_ **)this = this + 0x10;
std::__cxx11::string::_M_construct<char*>
(this,kDescriptorPackageName_abi_cxx11_,DAT_00380468 + kDescriptorPackageName_abi_cxx11_
);
return;
}
|
|
65,088 |
mbedtls_ct_memcpy_offset
|
msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/constant_time.c
|
void mbedtls_ct_memcpy_offset(unsigned char *dest,
const unsigned char *src,
size_t offset,
size_t offset_min,
size_t offset_max,
size_t len)
{
size_t offsetval;
for (offsetval = offset_min; offsetval <= offset_max; offsetval++) {
mbedtls_ct_memcpy_if_eq(dest, src + offsetval, len,
offsetval, offset);
}
}
|
O3
|
c
|
mbedtls_ct_memcpy_offset:
cmpq %r8, %rcx
ja 0x82619
addq %rcx, %rsi
testq %r9, %r9
je 0x8260e
xorl %eax, %eax
leaq (%rsi,%rax), %r10
leaq (%rdi,%rax), %r11
cmpq %rdx, %rcx
cmoveq %r10, %r11
movb (%r11), %r10b
movb %r10b, (%rdi,%rax)
incq %rax
cmpq %rax, %r9
jne 0x825f0
incq %rcx
incq %rsi
cmpq %r8, %rcx
jbe 0x825e9
retq
|
mbedtls_ct_memcpy_offset:
cmp rcx, r8
ja short locret_82619
add rsi, rcx
loc_825E9:
test r9, r9
jz short loc_8260E
xor eax, eax
loc_825F0:
lea r10, [rsi+rax]
lea r11, [rdi+rax]
cmp rcx, rdx
cmovz r11, r10
mov r10b, [r11]
mov [rdi+rax], r10b
inc rax
cmp r9, rax
jnz short loc_825F0
loc_8260E:
inc rcx
inc rsi
cmp rcx, r8
jbe short loc_825E9
locret_82619:
retn
|
void mbedtls_ct_memcpy_offset(
long long a1,
long long a2,
long long a3,
unsigned long long a4,
unsigned long long a5,
long long a6)
{
long long v6; // rsi
long long i; // rax
_BYTE *v8; // r11
if ( a4 <= a5 )
{
v6 = a4 + a2;
do
{
if ( a6 )
{
for ( i = 0LL; i != a6; ++i )
{
v8 = (_BYTE *)(a1 + i);
if ( a4 == a3 )
v8 = (_BYTE *)(v6 + i);
*(_BYTE *)(a1 + i) = *v8;
}
}
++a4;
++v6;
}
while ( a4 <= a5 );
}
}
|
mbedtls_ct_memcpy_offset:
CMP RCX,R8
JA 0x00182619
ADD RSI,RCX
LAB_001825e9:
TEST R9,R9
JZ 0x0018260e
XOR EAX,EAX
LAB_001825f0:
LEA R10,[RSI + RAX*0x1]
LEA R11,[RDI + RAX*0x1]
CMP RCX,RDX
CMOVZ R11,R10
MOV R10B,byte ptr [R11]
MOV byte ptr [RDI + RAX*0x1],R10B
INC RAX
CMP R9,RAX
JNZ 0x001825f0
LAB_0018260e:
INC RCX
INC RSI
CMP RCX,R8
JBE 0x001825e9
LAB_00182619:
RET
|
void mbedtls_ct_memcpy_offset
(long param_1,long param_2,ulong param_3,ulong param_4,ulong param_5,long param_6)
{
long lVar1;
int1 *puVar2;
if (param_4 <= param_5) {
param_2 = param_2 + param_4;
do {
if (param_6 != 0) {
lVar1 = 0;
do {
puVar2 = (int1 *)(param_1 + lVar1);
if (param_4 == param_3) {
puVar2 = (int1 *)(param_2 + lVar1);
}
*(int1 *)(param_1 + lVar1) = *puVar2;
lVar1 = lVar1 + 1;
} while (param_6 != lVar1);
}
param_4 = param_4 + 1;
param_2 = param_2 + 1;
} while (param_4 <= param_5);
}
return;
}
|
|
65,089 |
inherit_charset_data
|
eloqsql/mysys/charset.c
|
static void
inherit_charset_data(struct charset_info_st *cs, CHARSET_INFO *refcs)
{
if (!cs->to_upper)
cs->to_upper= refcs->to_upper;
if (!cs->to_lower)
cs->to_lower= refcs->to_lower;
if (!cs->m_ctype)
cs->m_ctype= refcs->m_ctype;
if (!cs->tab_to_uni)
cs->tab_to_uni= refcs->tab_to_uni;
}
|
O3
|
c
|
inherit_charset_data:
pushq %rbp
movq %rsp, %rbp
cmpq $0x0, 0x50(%rdi)
jne 0x9a520
movq 0x50(%rsi), %rax
movq %rax, 0x50(%rdi)
cmpq $0x0, 0x48(%rdi)
jne 0x9a52f
movq 0x48(%rsi), %rax
movq %rax, 0x48(%rdi)
cmpq $0x0, 0x40(%rdi)
jne 0x9a53e
movq 0x40(%rsi), %rax
movq %rax, 0x40(%rdi)
cmpq $0x0, 0x68(%rdi)
jne 0x9a54d
movq 0x68(%rsi), %rax
movq %rax, 0x68(%rdi)
popq %rbp
retq
nop
|
inherit_charset_data:
push rbp
mov rbp, rsp
cmp qword ptr [rdi+50h], 0
jnz short loc_9A520
mov rax, [rsi+50h]
mov [rdi+50h], rax
loc_9A520:
cmp qword ptr [rdi+48h], 0
jnz short loc_9A52F
mov rax, [rsi+48h]
mov [rdi+48h], rax
loc_9A52F:
cmp qword ptr [rdi+40h], 0
jnz short loc_9A53E
mov rax, [rsi+40h]
mov [rdi+40h], rax
loc_9A53E:
cmp qword ptr [rdi+68h], 0
jnz short loc_9A54D
mov rax, [rsi+68h]
mov [rdi+68h], rax
loc_9A54D:
pop rbp
retn
|
long long inherit_charset_data(_QWORD *a1, _QWORD *a2)
{
long long result; // rax
if ( !a1[10] )
{
result = a2[10];
a1[10] = result;
}
if ( !a1[9] )
{
result = a2[9];
a1[9] = result;
}
if ( !a1[8] )
{
result = a2[8];
a1[8] = result;
}
if ( !a1[13] )
{
result = a2[13];
a1[13] = result;
}
return result;
}
|
inherit_charset_data:
PUSH RBP
MOV RBP,RSP
CMP qword ptr [RDI + 0x50],0x0
JNZ 0x0019a520
MOV RAX,qword ptr [RSI + 0x50]
MOV qword ptr [RDI + 0x50],RAX
LAB_0019a520:
CMP qword ptr [RDI + 0x48],0x0
JNZ 0x0019a52f
MOV RAX,qword ptr [RSI + 0x48]
MOV qword ptr [RDI + 0x48],RAX
LAB_0019a52f:
CMP qword ptr [RDI + 0x40],0x0
JNZ 0x0019a53e
MOV RAX,qword ptr [RSI + 0x40]
MOV qword ptr [RDI + 0x40],RAX
LAB_0019a53e:
CMP qword ptr [RDI + 0x68],0x0
JNZ 0x0019a54d
MOV RAX,qword ptr [RSI + 0x68]
MOV qword ptr [RDI + 0x68],RAX
LAB_0019a54d:
POP RBP
RET
|
void inherit_charset_data(long param_1,long param_2)
{
if (*(long *)(param_1 + 0x50) == 0) {
*(int8 *)(param_1 + 0x50) = *(int8 *)(param_2 + 0x50);
}
if (*(long *)(param_1 + 0x48) == 0) {
*(int8 *)(param_1 + 0x48) = *(int8 *)(param_2 + 0x48);
}
if (*(long *)(param_1 + 0x40) == 0) {
*(int8 *)(param_1 + 0x40) = *(int8 *)(param_2 + 0x40);
}
if (*(long *)(param_1 + 0x68) == 0) {
*(int8 *)(param_1 + 0x68) = *(int8 *)(param_2 + 0x68);
}
return;
}
|
|
65,090 |
my_casedn_str_mb
|
eloqsql/strings/ctype-mb.c
|
size_t my_casedn_str_mb(CHARSET_INFO * cs, char *str)
{
register uint32 l;
register const uchar *map= cs->to_lower;
char *str_orig= str;
while (*str)
{
/* Pointing after the '\0' is safe here. */
if ((l= my_ismbchar(cs, str, str + cs->mbmaxlen)))
str+= l;
else
{
*str= (char) map[(uchar)*str];
str++;
}
}
return (size_t) (str - str_orig);
}
|
O3
|
c
|
my_casedn_str_mb:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
cmpb $0x0, (%rsi)
movq %rsi, %rax
je 0x39d64
movq %rdi, %r14
movq 0x48(%rdi), %r12
movq %rbx, %r15
movl 0x9c(%r14), %edx
addq %r15, %rdx
movq 0xb8(%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0xc0(%rax)
cmpl $0x2, %eax
jge 0x39d54
movzbl (%r15), %eax
movb (%r12,%rax), %al
movb %al, (%r15)
movl $0x1, %ecx
jmp 0x39d56
movl %eax, %ecx
leaq (%r15,%rcx), %rax
cmpb $0x0, (%r15,%rcx)
movq %rax, %r15
jne 0x39d20
subq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
my_casedn_str_mb:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov rbx, rsi
cmp byte ptr [rsi], 0
mov rax, rsi
jz short loc_39D64
mov r14, rdi
mov r12, [rdi+48h]
mov r15, rbx
loc_39D20:
mov edx, [r14+9Ch]
add rdx, r15
mov rax, [r14+0B8h]
mov rdi, r14
mov rsi, r15
call qword ptr [rax+0C0h]
cmp eax, 2
jge short loc_39D54
movzx eax, byte ptr [r15]
mov al, [r12+rax]
mov [r15], al
mov ecx, 1
jmp short loc_39D56
loc_39D54:
mov ecx, eax
loc_39D56:
lea rax, [r15+rcx]
cmp byte ptr [r15+rcx], 0
mov r15, rax
jnz short loc_39D20
loc_39D64:
sub rax, rbx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
long long my_casedn_str_mb(long long a1, _BYTE *a2)
{
_BYTE *v2; // rax
long long v3; // r12
_BYTE *v4; // r15
int v5; // eax
long long v6; // rcx
bool v7; // zf
v2 = a2;
if ( *a2 )
{
v3 = *(_QWORD *)(a1 + 72);
v4 = a2;
do
{
v5 = (*(long long ( **)(long long, _BYTE *, _BYTE *))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
v4,
&v4[*(unsigned int *)(a1 + 156)]);
if ( v5 >= 2 )
{
v6 = (unsigned int)v5;
}
else
{
*v4 = *(_BYTE *)(v3 + (unsigned __int8)*v4);
v6 = 1LL;
}
v2 = &v4[v6];
v7 = v4[v6] == 0;
v4 += v6;
}
while ( !v7 );
}
return v2 - a2;
}
|
my_casedn_str_mb:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RSI
CMP byte ptr [RSI],0x0
MOV RAX,RSI
JZ 0x00139d64
MOV R14,RDI
MOV R12,qword ptr [RDI + 0x48]
MOV R15,RBX
LAB_00139d20:
MOV EDX,dword ptr [R14 + 0x9c]
ADD RDX,R15
MOV RAX,qword ptr [R14 + 0xb8]
MOV RDI,R14
MOV RSI,R15
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
JGE 0x00139d54
MOVZX EAX,byte ptr [R15]
MOV AL,byte ptr [R12 + RAX*0x1]
MOV byte ptr [R15],AL
MOV ECX,0x1
JMP 0x00139d56
LAB_00139d54:
MOV ECX,EAX
LAB_00139d56:
LEA RAX,[R15 + RCX*0x1]
CMP byte ptr [R15 + RCX*0x1],0x0
MOV R15,RAX
JNZ 0x00139d20
LAB_00139d64:
SUB RAX,RBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
long my_casedn_str_mb(long param_1,byte *param_2)
{
byte *pbVar1;
long lVar2;
uint uVar3;
byte *pbVar4;
ulong uVar5;
byte *pbVar6;
pbVar4 = param_2;
if (*param_2 != 0) {
lVar2 = *(long *)(param_1 + 0x48);
pbVar6 = param_2;
do {
uVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))
(param_1,pbVar6,pbVar6 + *(uint *)(param_1 + 0x9c));
if ((int)uVar3 < 2) {
*pbVar6 = *(byte *)(lVar2 + (ulong)*pbVar6);
uVar5 = 1;
}
else {
uVar5 = (ulong)uVar3;
}
pbVar4 = pbVar6 + uVar5;
pbVar1 = pbVar6 + uVar5;
pbVar6 = pbVar4;
} while (*pbVar1 != 0);
}
return (long)pbVar4 - (long)param_2;
}
|
|
65,091 |
js_array_at
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_array_at(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue obj, ret;
int64_t len, idx;
ret = JS_EXCEPTION;
obj = JS_ToObject(ctx, this_val);
if (js_get_length64(ctx, &len, obj))
goto exception;
if (JS_ToInt64Sat(ctx, &idx, argv[0]))
goto exception;
if (idx < 0)
idx = len + idx;
if (idx < 0 || idx >= len) {
ret = JS_UNDEFINED;
} else {
ret = JS_GetPropertyInt64(ctx, obj, idx);
}
exception:
JS_FreeValue(ctx, obj);
return ret;
}
|
O2
|
c
|
js_array_at:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r8, %r13
movq %rdi, %rbx
callq 0x20b92
movq %rax, %r14
movq %rdx, %r15
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movq %rax, %rdx
movq %r15, %rcx
callq 0x1cc43
pushq $0x6
popq %r12
testl %eax, %eax
jne 0x61af5
movq (%r13), %rdx
movq 0x8(%r13), %rcx
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x21416
testl %eax, %eax
jne 0x61af5
movq (%rsp), %rax
movq 0x8(%rsp), %rdx
movq %rax, %rcx
sarq $0x3f, %rcx
andq %rdx, %rcx
addq %rax, %rcx
setns %al
cmpq %rdx, %rcx
setl %dl
andb %al, %dl
cmpb $0x1, %dl
jne 0x61af1
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1e178
movq %rdx, %r12
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %rax, %rcx
movl %eax, %r13d
jmp 0x61afa
pushq $0x3
popq %r12
xorl %r13d, %r13d
xorl %ecx, %ecx
orq %rcx, %r13
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1801e
movq %r13, %rax
movq %r12, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
|
js_array_at:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 10h
mov r13, r8
mov rbx, rdi
call JS_ToObject
mov r14, rax
mov r15, rdx
lea rsi, [rsp+38h+var_30]
mov rdi, rbx
mov rdx, rax
mov rcx, r15
call js_get_length64
push 6
pop r12
test eax, eax
jnz short loc_61AF5
mov rdx, [r13+0]
mov rcx, [r13+8]
mov rsi, rsp
mov rdi, rbx
call JS_ToInt64Sat
test eax, eax
jnz short loc_61AF5
mov rax, [rsp+38h+var_38]
mov rdx, [rsp+38h+var_30]
mov rcx, rax
sar rcx, 3Fh
and rcx, rdx
add rcx, rax
setns al
cmp rcx, rdx
setl dl
and dl, al
cmp dl, 1
jnz short loc_61AF1
mov rdi, rbx
mov rsi, r14
mov rdx, r15
call JS_GetPropertyInt64
mov r12, rdx
mov rcx, 0FFFFFFFF00000000h
and rcx, rax
mov r13d, eax
jmp short loc_61AFA
loc_61AF1:
push 3
pop r12
loc_61AF5:
xor r13d, r13d
xor ecx, ecx
loc_61AFA:
or r13, rcx
mov rdi, rbx
mov rsi, r14
mov rdx, r15
call JS_FreeValue
mov rax, r13
mov rdx, r12
add rsp, 10h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
|
unsigned long long js_array_at(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
long long v15; // r14
long long v16; // rdx
long long v17; // r15
long long v18; // rcx
bool v19; // sf
signed long long v20; // rcx
unsigned long long PropertyInt64; // rax
unsigned long long v22; // rcx
long long v23; // r13
unsigned long long v24; // r13
long long v26; // [rsp+0h] [rbp-38h] BYREF
signed long long v27[6]; // [rsp+8h] [rbp-30h] BYREF
v15 = JS_ToObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
v17 = v16;
if ( (unsigned int)js_get_length64(a1, v27, v15, v16)
|| (unsigned int)JS_ToInt64Sat(a1, (long long)&v26, *(_DWORD **)a5, *(_QWORD *)(a5 + 8))
|| (v18 = v27[0] & (v26 >> 63), v19 = v26 + v18 < 0, v20 = v26 + v18, v19 || v20 >= v27[0]) )
{
v23 = 0LL;
v22 = 0LL;
}
else
{
PropertyInt64 = JS_GetPropertyInt64(a1, v15, v17, v20);
v22 = PropertyInt64 & 0xFFFFFFFF00000000LL;
v23 = (unsigned int)PropertyInt64;
}
v24 = v22 | v23;
JS_FreeValue(a1, v15, v17);
return v24;
}
|
js_array_at:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV R13,R8
MOV RBX,RDI
CALL 0x00120b92
MOV R14,RAX
MOV R15,RDX
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
MOV RDX,RAX
MOV RCX,R15
CALL 0x0011cc43
PUSH 0x6
POP R12
TEST EAX,EAX
JNZ 0x00161af5
MOV RDX,qword ptr [R13]
MOV RCX,qword ptr [R13 + 0x8]
MOV RSI,RSP
MOV RDI,RBX
CALL 0x00121416
TEST EAX,EAX
JNZ 0x00161af5
MOV RAX,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x8]
MOV RCX,RAX
SAR RCX,0x3f
AND RCX,RDX
ADD RCX,RAX
SETNS AL
CMP RCX,RDX
SETL DL
AND DL,AL
CMP DL,0x1
JNZ 0x00161af1
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
CALL 0x0011e178
MOV R12,RDX
MOV RCX,-0x100000000
AND RCX,RAX
MOV R13D,EAX
JMP 0x00161afa
LAB_00161af1:
PUSH 0x3
POP R12
LAB_00161af5:
XOR R13D,R13D
XOR ECX,ECX
LAB_00161afa:
OR R13,RCX
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
CALL 0x0011801e
MOV RAX,R13
MOV RDX,R12
ADD RSP,0x10
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
int1 [16] js_array_at(int8 param_1)
{
int iVar1;
int8 uVar2;
ulong uVar3;
int8 *in_R8;
int8 uVar5;
ulong uVar6;
int1 auVar7 [16];
long local_38;
ulong local_30;
int8 uVar4;
auVar7 = JS_ToObject();
uVar4 = auVar7._8_8_;
uVar2 = auVar7._0_8_;
iVar1 = js_get_length64(param_1,&local_30,uVar2,uVar4);
uVar5 = 6;
if (iVar1 == 0) {
iVar1 = JS_ToInt64Sat(param_1,&local_38,*in_R8,in_R8[1]);
if (iVar1 == 0) {
local_38 = (local_38 >> 0x3f & local_30) + local_38;
if (local_38 < (long)local_30 && -1 < local_38) {
auVar7 = JS_GetPropertyInt64(param_1,uVar2,uVar4);
uVar5 = auVar7._8_8_;
uVar3 = auVar7._0_8_ & 0xffffffff00000000;
uVar6 = auVar7._0_8_ & 0xffffffff;
goto LAB_00161afa;
}
uVar5 = 3;
}
}
uVar6 = 0;
uVar3 = 0;
LAB_00161afa:
JS_FreeValue(param_1,uVar2,uVar4);
auVar7._8_8_ = uVar5;
auVar7._0_8_ = uVar6 | uVar3;
return auVar7;
}
|
|
65,092 |
LefDefParser::lefwVersion(int, int)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
|
int
lefwVersion(int vers1,
int vers2)
{
if (!lefwFile)
return LEFW_UNINITIALIZED;
if (!lefwDidInit)
return LEFW_BAD_ORDER;
if (lefwState != LEFW_INIT && lefwState < LEFW_END)
return LEFW_BAD_ORDER; // not of the ENDs
if (lefwSynArray[LEFW_VERSION])
return LEFW_ALREADY_DEFINED;
if (lefwWriteEncrypt)
encPrint(lefwFile, (char*) "VERSION %d.%d ;\n", vers1, vers2);
else
fprintf(lefwFile, "VERSION %d.%d ;\n", vers1, vers2);
if (vers2 >= 10)
versionNum = vers1 + (vers2 / 100.0);
else
versionNum = vers1 + (vers2 / 10.0);
lefwSynArray[LEFW_VERSION] = 1;
lefwLines++;
return LEFW_OK;
}
|
O3
|
cpp
|
LefDefParser::lefwVersion(int, int):
pushq %rbp
pushq %r14
pushq %rbx
movl %edi, %ebp
leaq 0x1e789(%rip), %rax # 0x24e00
movq (%rax), %rdi
testq %rdi, %rdi
je 0x66de
leaq 0x1e9ce(%rip), %rcx # 0x25054
movl $0x2, %eax
cmpl $0x0, (%rcx)
je 0x66e3
leaq 0x1e9b9(%rip), %rcx # 0x25050
movl (%rcx), %ecx
cmpl $0x1, %ecx
setne %dl
cmpl $0x4f, %ecx
setl %cl
testb %cl, %dl
jne 0x66e3
leaq 0x1e760(%rip), %r14 # 0x24e10
movl $0x4, %eax
cmpl $0x0, 0x11c(%r14)
jne 0x66e3
movl %esi, %ebx
cmpb $0x1, 0x1ea24(%rip) # 0x250ec
jne 0x66e8
leaq 0x13aa7(%rip), %rsi # 0x1a178
movl %ebp, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x18c35
jmp 0x66fa
movl $0x1, %eax
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x13a89(%rip), %rsi # 0x1a178
movl %ebp, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x10f0
xorl %eax, %eax
cmpl $0xa, %ebx
cvtsi2sd %ebp, %xmm0
cvtsi2sd %ebx, %xmm1
setge %al
leaq 0x15e47(%rip), %rcx # 0x1c558
divsd (%rcx,%rax,8), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x1e61e(%rip) # 0x24d40
movl $0x1, 0x11c(%r14)
leaq 0x1e918(%rip), %rax # 0x2504c
incl (%rax)
xorl %eax, %eax
jmp 0x66e3
|
_ZN12LefDefParser11lefwVersionEii:
push rbp
push r14
push rbx
mov ebp, edi
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
test rdi, rdi
jz short loc_66DE
lea rcx, _ZN12LefDefParser11lefwDidInitE; LefDefParser::lefwDidInit
mov eax, 2
cmp dword ptr [rcx], 0
jz short loc_66E3
lea rcx, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
mov ecx, [rcx]
cmp ecx, 1
setnz dl
cmp ecx, 4Fh ; 'O'
setl cl
test dl, cl
jnz short loc_66E3
lea r14, _ZN12LefDefParser12lefwSynArrayE; LefDefParser::lefwSynArray
mov eax, 4
cmp dword ptr [r14+11Ch], 0
jnz short loc_66E3
mov ebx, esi
cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 1; LefDefParser::lefwWriteEncrypt
jnz short loc_66E8
lea rsi, aVersionDD; "VERSION %d.%d ;\n"
mov edx, ebp
mov ecx, ebx
xor eax, eax
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp short loc_66FA
loc_66DE:
mov eax, 1
loc_66E3:
pop rbx
pop r14
pop rbp
retn
loc_66E8:
lea rsi, aVersionDD; "VERSION %d.%d ;\n"
mov edx, ebp
mov ecx, ebx
xor eax, eax
call _fprintf
loc_66FA:
xor eax, eax
cmp ebx, 0Ah
cvtsi2sd xmm0, ebp
cvtsi2sd xmm1, ebx
setnl al
lea rcx, unk_1C558
divsd xmm1, qword ptr [rcx+rax*8]
addsd xmm1, xmm0
movsd cs:_ZN12LefDefParserL10versionNumE, xmm1; LefDefParser::versionNum
mov dword ptr [r14+11Ch], 1
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
inc dword ptr [rax]
xor eax, eax
jmp short loc_66E3
|
long long LefDefParser::lefwVersion(LefDefParser *this, int a2, int a3, long long a4, int a5, int a6)
{
long long result; // rax
if ( !*(_QWORD *)&LefDefParser::lefwFile )
return 1LL;
result = 2LL;
if ( LefDefParser::lefwDidInit )
{
if ( LefDefParser::lefwState >= 79 || LefDefParser::lefwState == 1 )
{
result = 4LL;
if ( !LefDefParser::lefwSynArray[71] )
{
if ( LefDefParser::lefwWriteEncrypt == 1 )
LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"VERSION %d.%d ;\n", (_DWORD)this, a2, a5, a6);
else
fprintf(*(_QWORD *)&LefDefParser::lefwFile, "VERSION %d.%d ;\n", (_DWORD)this, a2);
*(double *)&LefDefParser::versionNum = (double)a2 / dbl_1C558[a2 >= 10] + (double)(int)this;
LefDefParser::lefwSynArray[71] = 1;
++LefDefParser::lefwLines;
return 0LL;
}
}
}
return result;
}
|
lefwVersion:
PUSH RBP
PUSH R14
PUSH RBX
MOV EBP,EDI
LEA RAX,[0x124e00]
MOV RDI,qword ptr [RAX]
TEST RDI,RDI
JZ 0x001066de
LEA RCX,[0x125054]
MOV EAX,0x2
CMP dword ptr [RCX],0x0
JZ 0x001066e3
LEA RCX,[0x125050]
MOV ECX,dword ptr [RCX]
CMP ECX,0x1
SETNZ DL
CMP ECX,0x4f
SETL CL
TEST DL,CL
JNZ 0x001066e3
LEA R14,[0x124e10]
MOV EAX,0x4
CMP dword ptr [R14 + 0x11c],0x0
JNZ 0x001066e3
MOV EBX,ESI
CMP byte ptr [0x001250ec],0x1
JNZ 0x001066e8
LEA RSI,[0x11a178]
MOV EDX,EBP
MOV ECX,EBX
XOR EAX,EAX
CALL 0x00118c35
JMP 0x001066fa
LAB_001066de:
MOV EAX,0x1
LAB_001066e3:
POP RBX
POP R14
POP RBP
RET
LAB_001066e8:
LEA RSI,[0x11a178]
MOV EDX,EBP
MOV ECX,EBX
XOR EAX,EAX
CALL 0x001010f0
LAB_001066fa:
XOR EAX,EAX
CMP EBX,0xa
CVTSI2SD XMM0,EBP
CVTSI2SD XMM1,EBX
SETGE AL
LEA RCX,[0x11c558]
DIVSD XMM1,qword ptr [RCX + RAX*0x8]
ADDSD XMM1,XMM0
MOVSD qword ptr [0x00124d40],XMM1
MOV dword ptr [R14 + 0x11c],0x1
LEA RAX,[0x12504c]
INC dword ptr [RAX]
XOR EAX,EAX
JMP 0x001066e3
|
/* LefDefParser::lefwVersion(int, int) */
int8 LefDefParser::lefwVersion(int param_1,int param_2)
{
int8 uVar1;
if (lefwFile == (_IO_FILE *)0x0) {
uVar1 = 1;
}
else {
uVar1 = 2;
if (((lefwDidInit != 0) && (lefwState == 1 || 0x4e < lefwState)) &&
(uVar1 = 4, lefwSynArray._284_4_ == 0)) {
if (lefwWriteEncrypt == '\x01') {
encPrint(lefwFile,"VERSION %d.%d ;\n",param_1,param_2);
}
else {
fprintf(lefwFile,"VERSION %d.%d ;\n",param_1,param_2);
}
versionNum = (double)param_2 / *(double *)(&DAT_0011c558 + (ulong)(9 < param_2) * 8) +
(double)param_1;
lefwSynArray._284_4_ = 1;
lefwLines = lefwLines + 1;
uVar1 = 0;
}
}
return uVar1;
}
|
|
65,093 |
blst_fr_from_scalar
|
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/exports.c
|
void blst_fr_from_scalar(vec256 ret, const pow256 a)
{
const union {
long one;
char little;
} is_endian = { 1 };
if ((uptr_t)ret == (uptr_t)a && is_endian.little) {
mul_mont_sparse_256(ret, (const limb_t *)a, BLS12_381_rRR,
BLS12_381_r, r0);
} else {
vec256 out;
limbs_from_le_bytes(out, a, 32);
mul_mont_sparse_256(ret, out, BLS12_381_rRR, BLS12_381_r, r0);
vec_zero(out, sizeof(out));
}
}
|
O0
|
c
|
blst_fr_from_scalar:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq 0x32139(%rip), %rax # 0xe6330
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq %rcx, %rax
jne 0xb4238
movsbl -0x18(%rbp), %eax
cmpl $0x0, %eax
je 0xb4238
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq 0x320f0(%rip), %rdx # 0xe6310
leaq 0x31bd9(%rip), %rcx # 0xe5e00
movabsq $-0x100000001, %r8 # imm = 0xFFFFFFFEFFFFFFFF
callq 0xcb080
jmp 0xb427d
leaq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0x20, %edx
callq 0xb4290
movq -0x8(%rbp), %rdi
leaq -0x40(%rbp), %rsi
leaq 0x320b7(%rip), %rdx # 0xe6310
leaq 0x31ba0(%rip), %rcx # 0xe5e00
movabsq $-0x100000001, %r8 # imm = 0xFFFFFFFEFFFFFFFF
callq 0xcb080
leaq -0x40(%rbp), %rdi
movl $0x20, %esi
callq 0xa7170
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
|
blst_fr_from_scalar:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, cs:qword_E6330
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
mov rcx, [rbp+var_10]
cmp rax, rcx
jnz short loc_B4238
movsx eax, byte ptr [rbp+var_18]
cmp eax, 0
jz short loc_B4238
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
lea rdx, BLS12_381_rRR
lea rcx, BLS12_381_r
mov r8, 0FFFFFFFEFFFFFFFFh
call mul_mont_sparse_256
jmp short loc_B427D
loc_B4238:
lea rdi, [rbp+var_40]
mov rsi, [rbp+var_10]
mov edx, 20h ; ' '
call limbs_from_le_bytes
mov rdi, [rbp+var_8]
lea rsi, [rbp+var_40]
lea rdx, BLS12_381_rRR
lea rcx, BLS12_381_r
mov r8, 0FFFFFFFEFFFFFFFFh
call mul_mont_sparse_256
lea rdi, [rbp+var_40]
mov esi, 20h ; ' '
call vec_zero
loc_B427D:
add rsp, 40h
pop rbp
retn
|
long long blst_fr_from_scalar(long long a1, long long a2)
{
_BYTE v3[40]; // [rsp+0h] [rbp-40h] BYREF
long long v4; // [rsp+28h] [rbp-18h]
long long v5; // [rsp+30h] [rbp-10h]
long long v6; // [rsp+38h] [rbp-8h]
v6 = a1;
v5 = a2;
v4 = 1LL;
if ( a1 == a2 )
return mul_mont_sparse_256(v6, v5, &BLS12_381_rRR, &BLS12_381_r, 0xFFFFFFFEFFFFFFFFLL);
limbs_from_le_bytes(v3, v5, 32LL);
mul_mont_sparse_256(v6, v3, &BLS12_381_rRR, &BLS12_381_r, 0xFFFFFFFEFFFFFFFFLL);
return vec_zero((long long)v3, 0x20uLL);
}
|
blst_fr_from_scalar:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [0x001e6330]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,RCX
JNZ 0x001b4238
MOVSX EAX,byte ptr [RBP + -0x18]
CMP EAX,0x0
JZ 0x001b4238
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
LEA RDX,[0x1e6310]
LEA RCX,[0x1e5e00]
MOV R8,-0x100000001
CALL 0x001cb080
JMP 0x001b427d
LAB_001b4238:
LEA RDI,[RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,0x20
CALL 0x001b4290
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[RBP + -0x40]
LEA RDX,[0x1e6310]
LEA RCX,[0x1e5e00]
MOV R8,-0x100000001
CALL 0x001cb080
LEA RDI,[RBP + -0x40]
MOV ESI,0x20
CALL 0x001a7170
LAB_001b427d:
ADD RSP,0x40
POP RBP
RET
|
void blst_fr_from_scalar(long param_1,long param_2)
{
int1 local_48 [40];
int8 local_20;
long local_18;
long local_10;
local_20 = DAT_001e6330;
local_18 = param_2;
local_10 = param_1;
if ((param_1 == param_2) && (local_20._0_1_ = (char)DAT_001e6330, (char)local_20 != '\0')) {
mul_mont_sparse_256(param_1,param_2,BLS12_381_rRR,BLS12_381_r,0xfffffffeffffffff);
}
else {
limbs_from_le_bytes(local_48,param_2,0x20);
mul_mont_sparse_256(local_10,local_48,BLS12_381_rRR,BLS12_381_r,0xfffffffeffffffff);
vec_zero(local_48,0x20);
}
return;
}
|
|
65,094 |
LefDefParser::lefwStartMacro(char const*)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
|
int
lefwStartMacro(const char *macroName)
{
if (!lefwFile)
return LEFW_UNINITIALIZED;
if (lefwState == LEFW_MACRO_START ||
lefwState == LEFW_MACRO)
return LEFW_BAD_ORDER;
if (!macroName || macroName == 0 || *macroName == 0)
return LEFW_BAD_DATA;
if (lefwWriteEncrypt)
encPrint(lefwFile, (char*) "MACRO %s\n", macroName);
else
fprintf(lefwFile, "MACRO %s\n", macroName);
lefwLines++;
lefwState = LEFW_MACRO_START;
lefwIsMacroDensity = 0;
lefwIsMacroPin = 0;
lefwIsMacroObs = 0;
lefwIsMacroTiming = 0;
return LEFW_OK;
}
|
O0
|
cpp
|
LefDefParser::lefwStartMacro(char const*):
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
leaq 0x9b8d0(%rip), %rax # 0xc5250
cmpq $0x0, (%rax)
jne 0x29993
movl $0x1, 0x14(%rsp)
jmp 0x29a85
leaq 0x9bb06(%rip), %rax # 0xc54a0
cmpl $0x9, (%rax)
je 0x299ab
leaq 0x9bafa(%rip), %rax # 0xc54a0
cmpl $0x21, (%rax)
jne 0x299b8
movl $0x2, 0x14(%rsp)
jmp 0x29a85
cmpq $0x0, 0x8(%rsp)
je 0x299d5
cmpq $0x0, 0x8(%rsp)
je 0x299d5
movq 0x8(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x299e2
movl $0x3, 0x14(%rsp)
jmp 0x29a85
cmpl $0x0, 0x9bb53(%rip) # 0xc553c
je 0x29a0a
leaq 0x9b85e(%rip), %rax # 0xc5250
movq (%rax), %rdi
movq 0x8(%rsp), %rdx
leaq 0x6f50a(%rip), %rsi # 0x98f0b
movb $0x0, %al
callq 0x8bf50
jmp 0x29a27
leaq 0x9b83f(%rip), %rax # 0xc5250
movq (%rax), %rdi
movq 0x8(%rsp), %rdx
leaq 0x6f4eb(%rip), %rsi # 0x98f0b
movb $0x0, %al
callq 0x2370
leaq 0x9ba6e(%rip), %rax # 0xc549c
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x9ba62(%rip), %rax # 0xc549c
movl %ecx, (%rax)
leaq 0x9ba5d(%rip), %rax # 0xc54a0
movl $0x9, (%rax)
leaq 0x9ba94(%rip), %rax # 0xc54e4
movl $0x0, (%rax)
leaq 0x9ba93(%rip), %rax # 0xc54f0
movl $0x0, (%rax)
leaq 0x9ba7e(%rip), %rax # 0xc54e8
movl $0x0, (%rax)
leaq 0x9ba85(%rip), %rax # 0xc54fc
movl $0x0, (%rax)
movl $0x0, 0x14(%rsp)
movl 0x14(%rsp), %eax
addq $0x18, %rsp
retq
nop
|
_ZN12LefDefParser14lefwStartMacroEPKc:
sub rsp, 18h
mov [rsp+18h+var_10], rdi
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
cmp qword ptr [rax], 0
jnz short loc_29993
mov [rsp+18h+var_4], 1
jmp loc_29A85
loc_29993:
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 9
jz short loc_299AB
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 21h ; '!'
jnz short loc_299B8
loc_299AB:
mov [rsp+18h+var_4], 2
jmp loc_29A85
loc_299B8:
cmp [rsp+18h+var_10], 0
jz short loc_299D5
cmp [rsp+18h+var_10], 0
jz short loc_299D5
mov rax, [rsp+18h+var_10]
movsx eax, byte ptr [rax]
cmp eax, 0
jnz short loc_299E2
loc_299D5:
mov [rsp+18h+var_4], 3
jmp loc_29A85
loc_299E2:
cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 0; LefDefParser::lefwWriteEncrypt
jz short loc_29A0A
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
mov rdx, [rsp+18h+var_10]
lea rsi, aEndMacroS+4; "MACRO %s\n"
mov al, 0
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp short loc_29A27
loc_29A0A:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
mov rdx, [rsp+18h+var_10]
lea rsi, aEndMacroS+4; "MACRO %s\n"
mov al, 0
call _fprintf
loc_29A27:
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
mov ecx, [rax]
add ecx, 1
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
mov [rax], ecx
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
mov dword ptr [rax], 9
lea rax, _ZN12LefDefParser18lefwIsMacroDensityE; LefDefParser::lefwIsMacroDensity
mov dword ptr [rax], 0
lea rax, _ZN12LefDefParser14lefwIsMacroPinE; LefDefParser::lefwIsMacroPin
mov dword ptr [rax], 0
lea rax, _ZN12LefDefParser14lefwIsMacroObsE; LefDefParser::lefwIsMacroObs
mov dword ptr [rax], 0
lea rax, _ZN12LefDefParser17lefwIsMacroTimingE; LefDefParser::lefwIsMacroTiming
mov dword ptr [rax], 0
mov [rsp+18h+var_4], 0
loc_29A85:
mov eax, [rsp+18h+var_4]
add rsp, 18h
retn
|
long long LefDefParser::lefwStartMacro(LefDefParser *this, const char *a2, long long a3, int a4, int a5, int a6)
{
if ( *(_QWORD *)&LefDefParser::lefwFile )
{
if ( LefDefParser::lefwState == 9 || LefDefParser::lefwState == 33 )
{
return 2;
}
else if ( this && *(_BYTE *)this )
{
if ( LefDefParser::lefwWriteEncrypt )
LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"MACRO %s\n", (_DWORD)this, a4, a5, a6);
else
fprintf(*(_QWORD *)&LefDefParser::lefwFile, "MACRO %s\n", (const char *)this);
++LefDefParser::lefwLines;
LefDefParser::lefwState = 9;
LefDefParser::lefwIsMacroDensity = 0;
LefDefParser::lefwIsMacroPin = 0;
LefDefParser::lefwIsMacroObs = 0;
LefDefParser::lefwIsMacroTiming = 0;
return 0;
}
else
{
return 3;
}
}
else
{
return 1;
}
}
|
lefwStartMacro:
SUB RSP,0x18
MOV qword ptr [RSP + 0x8],RDI
LEA RAX,[0x1c5250]
CMP qword ptr [RAX],0x0
JNZ 0x00129993
MOV dword ptr [RSP + 0x14],0x1
JMP 0x00129a85
LAB_00129993:
LEA RAX,[0x1c54a0]
CMP dword ptr [RAX],0x9
JZ 0x001299ab
LEA RAX,[0x1c54a0]
CMP dword ptr [RAX],0x21
JNZ 0x001299b8
LAB_001299ab:
MOV dword ptr [RSP + 0x14],0x2
JMP 0x00129a85
LAB_001299b8:
CMP qword ptr [RSP + 0x8],0x0
JZ 0x001299d5
CMP qword ptr [RSP + 0x8],0x0
JZ 0x001299d5
MOV RAX,qword ptr [RSP + 0x8]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JNZ 0x001299e2
LAB_001299d5:
MOV dword ptr [RSP + 0x14],0x3
JMP 0x00129a85
LAB_001299e2:
CMP dword ptr [0x001c553c],0x0
JZ 0x00129a0a
LEA RAX,[0x1c5250]
MOV RDI,qword ptr [RAX]
MOV RDX,qword ptr [RSP + 0x8]
LEA RSI,[0x198f0b]
MOV AL,0x0
CALL 0x0018bf50
JMP 0x00129a27
LAB_00129a0a:
LEA RAX,[0x1c5250]
MOV RDI,qword ptr [RAX]
MOV RDX,qword ptr [RSP + 0x8]
LEA RSI,[0x198f0b]
MOV AL,0x0
CALL 0x00102370
LAB_00129a27:
LEA RAX,[0x1c549c]
MOV ECX,dword ptr [RAX]
ADD ECX,0x1
LEA RAX,[0x1c549c]
MOV dword ptr [RAX],ECX
LEA RAX,[0x1c54a0]
MOV dword ptr [RAX],0x9
LEA RAX,[0x1c54e4]
MOV dword ptr [RAX],0x0
LEA RAX,[0x1c54f0]
MOV dword ptr [RAX],0x0
LEA RAX,[0x1c54e8]
MOV dword ptr [RAX],0x0
LEA RAX,[0x1c54fc]
MOV dword ptr [RAX],0x0
MOV dword ptr [RSP + 0x14],0x0
LAB_00129a85:
MOV EAX,dword ptr [RSP + 0x14]
ADD RSP,0x18
RET
|
/* LefDefParser::lefwStartMacro(char const*) */
int4 LefDefParser::lefwStartMacro(char *param_1)
{
int4 local_4;
if (lefwFile == (_IO_FILE *)0x0) {
local_4 = 1;
}
else if ((lefwState == 9) || (lefwState == 0x21)) {
local_4 = 2;
}
else if ((param_1 == (char *)0x0) || ((param_1 == (char *)0x0 || (*param_1 == '\0')))) {
local_4 = 3;
}
else {
if (lefwWriteEncrypt == 0) {
fprintf(lefwFile,"MACRO %s\n",param_1);
}
else {
encPrint(lefwFile,"MACRO %s\n",param_1);
}
lefwLines = lefwLines + 1;
lefwState = 9;
lefwIsMacroDensity = 0;
lefwIsMacroPin = 0;
lefwIsMacroObs = 0;
lefwIsMacroTiming = 0;
local_4 = 0;
}
return local_4;
}
|
|
65,095 |
session::send_login_request()
|
untodesu[P]voxelius/game/client/session.cc
|
void session::send_login_request(void)
{
protocol::LoginRequest packet;
packet.version = protocol::VERSION;
packet.voxel_registry_checksum = voxel_registry::calcualte_checksum();
packet.item_registry_checksum = item_registry::calcualte_checksum();
packet.password_hash = server_password_hash;
packet.username = client_game::username.get();
protocol::send(session::peer, protocol::encode(packet));
server_password_hash = UINT64_MAX;
progress_bar::set_title("connecting.logging_in");
globals::gui_screen = GUI_PROGRESS_BAR;
}
|
O3
|
cpp
|
session::send_login_request():
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
xorl %eax, %eax
leaq 0x48(%rsp), %r12
movq %rax, -0x38(%r12)
leaq 0x1ea4a2(%rip), %rcx # 0x251278
movq %rcx, -0x40(%r12)
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb $0x0, (%r12)
movl $0xf, -0x30(%r12)
callq 0x839fe
movq %rax, 0x20(%rsp)
callq 0x7b101
movq %rax, 0x28(%rsp)
movq 0x1f0bb2(%rip), %rax # 0x2579c0
movq %rax, 0x30(%rsp)
leaq 0x1f2f4e(%rip), %rdi # 0x259d68
callq 0x12d72e
movq %rax, %rbx
leaq 0x38(%rsp), %r14
movq 0x8(%r14), %r15
movq %rax, %rdi
callq 0x26330
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %rbx, %rcx
movq %rax, %r8
callq 0x26dc0
movq 0x1f471b(%rip), %rbx # 0x25b568
leaq 0x8(%rsp), %rdi
movl $0x1, %esi
callq 0x7c048
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7c976
movq $-0x1, 0x1f0b4e(%rip) # 0x2579c0
leaq 0x133e96(%rip), %rdi # 0x19ad0f
callq 0x607fb
leaq 0x1f31bf(%rip), %rax # 0x25a044
movl $0x4, (%rax)
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x66ea2
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x268e0
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x66ec8
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x268e0
movq %rbx, %rdi
callq 0x26ff0
|
_ZN7session18send_login_requestEv:
push r15
push r14
push r12
push rbx
sub rsp, 58h
xor eax, eax
lea r12, [rsp+78h+var_30]
mov [r12-38h], rax
lea rcx, off_251278
mov [r12-40h], rcx
mov [r12-10h], r12
mov [r12-8], rax
mov byte ptr [r12], 0
mov dword ptr [r12-30h], 0Fh
call _ZN14voxel_registry18calcualte_checksumEv; voxel_registry::calcualte_checksum(void)
mov [rsp+78h+var_58], rax
call _ZN13item_registry18calcualte_checksumEv; item_registry::calcualte_checksum(void)
mov [rsp+78h+var_50], rax
mov rax, cs:_ZL20server_password_hash; server_password_hash
mov [rsp+78h+var_48], rax
lea rdi, _ZN11client_game8usernameE; this
call _ZNK12ConfigString3getEv; ConfigString::get(void)
mov rbx, rax
lea r14, [rsp+78h+var_40]
mov r15, [r14+8]
mov rdi, rax
call _strlen
mov rdi, r14
xor esi, esi
mov rdx, r15
mov rcx, rbx
mov r8, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
mov rbx, cs:_ZN7session4peerE; session::peer
lea rdi, [rsp+78h+var_70]; this
mov esi, (offset dword_0+1); protocol::LoginRequest *
call _ZN8protocol6encodeERKNS_12LoginRequestEj; protocol::encode(protocol::LoginRequest const&,uint)
mov rdi, rbx
mov rsi, rax; char *
call _ZN8protocol4sendEP9_ENetPeerP11_ENetPacket; protocol::send(_ENetPeer *,_ENetPacket *)
mov cs:_ZL20server_password_hash, 0FFFFFFFFFFFFFFFFh; server_password_hash
lea rdi, aConnectingLogg; "connecting.logging_in"
call _ZN12progress_bar9set_titleEPKc; progress_bar::set_title(char const*)
lea rax, _ZN7globals10gui_screenE; globals::gui_screen
mov dword ptr [rax], 4
mov rdi, [rsp+78h+var_40]; void *
cmp rdi, r12
jz short loc_66EA2
mov rsi, [rsp+78h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_66EA2:
add rsp, 58h
pop rbx
pop r12
pop r14
pop r15
retn
mov rbx, rax
mov rdi, [rsp+arg_30]; void *
cmp rdi, r12
jz short loc_66EC8
mov rsi, [rsp+arg_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_66EC8:
mov rdi, rbx
call __Unwind_Resume
|
void session::send_login_request(session *this)
{
long long v1; // rbx
long long v2; // rax
long long v3; // r9
message_box *v4; // rbx
unsigned int v5; // edx
const char *v6; // rsi
_QWORD v7[2]; // [rsp+8h] [rbp-70h] BYREF
int v8; // [rsp+18h] [rbp-60h]
long long v9; // [rsp+20h] [rbp-58h]
long long v10; // [rsp+28h] [rbp-50h]
long long v11; // [rsp+30h] [rbp-48h]
void *v12[2]; // [rsp+38h] [rbp-40h] BYREF
_QWORD v13[6]; // [rsp+48h] [rbp-30h] BYREF
v7[1] = 0LL;
v7[0] = off_251278;
v12[0] = v13;
v12[1] = 0LL;
LOBYTE(v13[0]) = 0;
v8 = 15;
v9 = voxel_registry::calcualte_checksum(this);
v10 = item_registry::calcualte_checksum(this);
v11 = server_password_hash;
v1 = ConfigString::get((ConfigString *)&client_game::username);
v2 = strlen(v1);
std::string::_M_replace(v12, 0LL, 0LL, v1, v2, v3);
v4 = session::peer;
v6 = (const char *)protocol::encode((protocol *)v7, (const protocol::LoginRequest *)((char *)&dword_0 + 1), v5);
protocol::send(v4, v6);
server_password_hash = -1LL;
progress_bar::set_title((progress_bar *)"connecting.logging_in", v6);
globals::gui_screen = 4;
if ( v12[0] != v13 )
operator delete(v12[0], v13[0] + 1LL);
}
|
send_login_request:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x58
XOR EAX,EAX
LEA R12,[RSP + 0x48]
MOV qword ptr [R12 + -0x38],RAX
LEA RCX,[0x351278]
MOV qword ptr [R12 + -0x40],RCX
MOV qword ptr [R12 + -0x10],R12
MOV qword ptr [R12 + -0x8],RAX
MOV byte ptr [R12],0x0
MOV dword ptr [R12 + -0x30],0xf
LAB_00166df3:
CALL 0x001839fe
MOV qword ptr [RSP + 0x20],RAX
CALL 0x0017b101
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [0x003579c0]
MOV qword ptr [RSP + 0x30],RAX
LEA RDI,[0x359d68]
CALL 0x0022d72e
MOV RBX,RAX
LEA R14,[RSP + 0x38]
MOV R15,qword ptr [R14 + 0x8]
MOV RDI,RAX
CALL 0x00126330
MOV RDI,R14
XOR ESI,ESI
MOV RDX,R15
MOV RCX,RBX
MOV R8,RAX
CALL 0x00126dc0
MOV RBX,qword ptr [0x0035b568]
LEA RDI,[RSP + 0x8]
MOV ESI,0x1
CALL 0x0017c048
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0017c976
MOV qword ptr [0x003579c0],-0x1
LEA RDI,[0x29ad0f]
CALL 0x001607fb
LAB_00166e7e:
LEA RAX,[0x35a044]
MOV dword ptr [RAX],0x4
MOV RDI,qword ptr [RSP + 0x38]
CMP RDI,R12
JZ 0x00166ea2
MOV RSI,qword ptr [RSP + 0x48]
INC RSI
CALL 0x001268e0
LAB_00166ea2:
ADD RSP,0x58
POP RBX
POP R12
POP R14
POP R15
RET
|
/* session::send_login_request() */
void session::send_login_request(void)
{
_ENetPeer *p_Var1;
char *pcVar2;
char *__s;
_ENetPacket *p_Var3;
int **local_70;
int8 local_68;
int4 local_60;
int8 local_58;
int8 local_50;
int8 local_48;
int1 *local_40;
char *local_38;
int1 local_30;
int7 uStack_2f;
local_68 = 0;
local_70 = &PTR__LoginRequest_00351278;
local_38 = (char *)0x0;
local_30 = 0;
local_60 = 0xf;
local_40 = &local_30;
/* try { // try from 00166df3 to 00166e7d has its CatchHandler @ 00166eae */
local_58 = voxel_registry::calcualte_checksum();
local_50 = item_registry::calcualte_checksum();
local_48 = server_password_hash;
__s = (char *)ConfigString::get((ConfigString *)client_game::username);
pcVar2 = local_38;
strlen(__s);
std::__cxx11::string::_M_replace((ulong)&local_40,0,pcVar2,(ulong)__s);
p_Var1 = peer;
p_Var3 = (_ENetPacket *)protocol::encode((LoginRequest *)&local_70,1);
protocol::send(p_Var1,p_Var3);
server_password_hash = 0xffffffffffffffff;
progress_bar::set_title("connecting.logging_in");
globals::gui_screen = 4;
if (local_40 != &local_30) {
operator_delete(local_40,CONCAT71(uStack_2f,local_30) + 1);
}
return;
}
|
|
65,096 |
stbi__jpeg_finish(stbi__jpeg*)
|
7CodeWizard[P]stablediffusion/thirdparty/stb_image.h
|
static void stbi__jpeg_finish(stbi__jpeg *z)
{
if (z->progressive) {
// dequantize and idct the data
int i,j,n;
for (n=0; n < z->s->img_n; ++n) {
int w = (z->img_comp[n].x+7) >> 3;
int h = (z->img_comp[n].y+7) >> 3;
for (j=0; j < h; ++j) {
for (i=0; i < w; ++i) {
short *data = z->img_comp[n].coeff + 64 * (i + j * z->img_comp[n].coeff_w);
stbi__jpeg_dequantize(data, z->dequant[z->img_comp[n].tq]);
z->idct_block_kernel(z->img_comp[n].data+z->img_comp[n].w2*j*8+i*8, z->img_comp[n].w2, data);
}
}
}
}
}
|
O0
|
c
|
stbi__jpeg_finish(stbi__jpeg*):
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rax
cmpl $0x0, 0x4830(%rax)
je 0x29a39
movl $0x0, 0x14(%rsp)
movl 0x14(%rsp), %eax
movq 0x20(%rsp), %rcx
movq (%rcx), %rcx
cmpl 0x8(%rcx), %eax
jge 0x29a37
movq 0x20(%rsp), %rax
addq $0x46a0, %rax # imm = 0x46A0
movslq 0x14(%rsp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movl 0x1c(%rax), %eax
addl $0x7, %eax
sarl $0x3, %eax
movl %eax, 0x10(%rsp)
movq 0x20(%rsp), %rax
addq $0x46a0, %rax # imm = 0x46A0
movslq 0x14(%rsp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movl 0x20(%rax), %eax
addl $0x7, %eax
sarl $0x3, %eax
movl %eax, 0xc(%rsp)
movl $0x0, 0x18(%rsp)
movl 0x18(%rsp), %eax
cmpl 0xc(%rsp), %eax
jge 0x29a25
movl $0x0, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
cmpl 0x10(%rsp), %eax
jge 0x29a13
movq 0x20(%rsp), %rax
addq $0x46a0, %rax # imm = 0x46A0
movslq 0x14(%rsp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq 0x50(%rax), %rax
movl 0x1c(%rsp), %ecx
movl 0x18(%rsp), %edx
movq 0x20(%rsp), %rsi
addq $0x46a0, %rsi # imm = 0x46A0
movslq 0x14(%rsp), %rdi
imulq $0x60, %rdi, %rdi
addq %rdi, %rsi
imull 0x58(%rsi), %edx
addl %edx, %ecx
shll $0x6, %ecx
movslq %ecx, %rcx
shlq %rcx
addq %rcx, %rax
movq %rax, (%rsp)
movq (%rsp), %rdi
movq 0x20(%rsp), %rsi
addq $0x3488, %rsi # imm = 0x3488
movq 0x20(%rsp), %rax
addq $0x46a0, %rax # imm = 0x46A0
movslq 0x14(%rsp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movslq 0xc(%rax), %rax
shlq $0x7, %rax
addq %rax, %rsi
callq 0x2ad50
movq 0x20(%rsp), %rax
movq 0x4870(%rax), %rax
movq 0x20(%rsp), %rcx
addq $0x46a0, %rcx # imm = 0x46A0
movslq 0x14(%rsp), %rdx
imulq $0x60, %rdx, %rdx
addq %rdx, %rcx
movq 0x30(%rcx), %rdi
movq 0x20(%rsp), %rcx
addq $0x46a0, %rcx # imm = 0x46A0
movslq 0x14(%rsp), %rdx
imulq $0x60, %rdx, %rdx
addq %rdx, %rcx
movl 0x24(%rcx), %ecx
imull 0x18(%rsp), %ecx
shll $0x3, %ecx
movslq %ecx, %rcx
addq %rcx, %rdi
movl 0x1c(%rsp), %ecx
shll $0x3, %ecx
movslq %ecx, %rcx
addq %rcx, %rdi
movq 0x20(%rsp), %rcx
addq $0x46a0, %rcx # imm = 0x46A0
movslq 0x14(%rsp), %rdx
imulq $0x60, %rdx, %rdx
addq %rdx, %rcx
movl 0x24(%rcx), %esi
movq (%rsp), %rdx
callq *%rax
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x298ee
jmp 0x29a15
movl 0x18(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x18(%rsp)
jmp 0x298d8
jmp 0x29a27
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x29873
jmp 0x29a39
addq $0x28, %rsp
retq
nop
|
_ZL17stbi__jpeg_finishP10stbi__jpeg:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov rax, [rsp+28h+var_8]
cmp dword ptr [rax+4830h], 0
jz loc_29A39
mov [rsp+28h+var_14], 0
loc_29873:
mov eax, [rsp+28h+var_14]
mov rcx, [rsp+28h+var_8]
mov rcx, [rcx]
cmp eax, [rcx+8]
jge loc_29A37
mov rax, [rsp+28h+var_8]
add rax, 46A0h
movsxd rcx, [rsp+28h+var_14]
imul rcx, 60h ; '`'
add rax, rcx
mov eax, [rax+1Ch]
add eax, 7
sar eax, 3
mov [rsp+28h+var_18], eax
mov rax, [rsp+28h+var_8]
add rax, 46A0h
movsxd rcx, [rsp+28h+var_14]
imul rcx, 60h ; '`'
add rax, rcx
mov eax, [rax+20h]
add eax, 7
sar eax, 3
mov [rsp+28h+var_1C], eax
mov [rsp+28h+var_10], 0
loc_298D8:
mov eax, [rsp+28h+var_10]
cmp eax, [rsp+28h+var_1C]
jge loc_29A25
mov [rsp+28h+var_C], 0
loc_298EE:
mov eax, [rsp+28h+var_C]
cmp eax, [rsp+28h+var_18]
jge loc_29A13
mov rax, [rsp+28h+var_8]
add rax, 46A0h
movsxd rcx, [rsp+28h+var_14]
imul rcx, 60h ; '`'
add rax, rcx
mov rax, [rax+50h]
mov ecx, [rsp+28h+var_C]
mov edx, [rsp+28h+var_10]
mov rsi, [rsp+28h+var_8]
add rsi, 46A0h
movsxd rdi, [rsp+28h+var_14]
imul rdi, 60h ; '`'
add rsi, rdi
imul edx, [rsi+58h]
add ecx, edx
shl ecx, 6
movsxd rcx, ecx
shl rcx, 1
add rax, rcx
mov [rsp+28h+var_28], rax
mov rdi, [rsp+28h+var_28]; __int16 *
mov rsi, [rsp+28h+var_8]
add rsi, 3488h
mov rax, [rsp+28h+var_8]
add rax, 46A0h
movsxd rcx, [rsp+28h+var_14]
imul rcx, 60h ; '`'
add rax, rcx
movsxd rax, dword ptr [rax+0Ch]
shl rax, 7
add rsi, rax; unsigned __int16 *
call _ZL21stbi__jpeg_dequantizePsPt; stbi__jpeg_dequantize(short *,ushort *)
mov rax, [rsp+28h+var_8]
mov rax, [rax+4870h]
mov rcx, [rsp+28h+var_8]
add rcx, 46A0h
movsxd rdx, [rsp+28h+var_14]
imul rdx, 60h ; '`'
add rcx, rdx
mov rdi, [rcx+30h]
mov rcx, [rsp+28h+var_8]
add rcx, 46A0h
movsxd rdx, [rsp+28h+var_14]
imul rdx, 60h ; '`'
add rcx, rdx
mov ecx, [rcx+24h]
imul ecx, [rsp+28h+var_10]
shl ecx, 3
movsxd rcx, ecx
add rdi, rcx
mov ecx, [rsp+28h+var_C]
shl ecx, 3
movsxd rcx, ecx
add rdi, rcx
mov rcx, [rsp+28h+var_8]
add rcx, 46A0h
movsxd rdx, [rsp+28h+var_14]
imul rdx, 60h ; '`'
add rcx, rdx
mov esi, [rcx+24h]
mov rdx, [rsp+28h+var_28]
call rax
mov eax, [rsp+28h+var_C]
add eax, 1
mov [rsp+28h+var_C], eax
jmp loc_298EE
loc_29A13:
jmp short $+2
loc_29A15:
mov eax, [rsp+28h+var_10]
add eax, 1
mov [rsp+28h+var_10], eax
jmp loc_298D8
loc_29A25:
jmp short $+2
loc_29A27:
mov eax, [rsp+28h+var_14]
add eax, 1
mov [rsp+28h+var_14], eax
jmp loc_29873
loc_29A37:
jmp short $+2
loc_29A39:
add rsp, 28h
retn
|
long long stbi__jpeg_finish(long long a1)
{
long long result; // rax
__int16 *v2; // [rsp+0h] [rbp-28h]
int v3; // [rsp+Ch] [rbp-1Ch]
int v4; // [rsp+10h] [rbp-18h]
unsigned int i; // [rsp+14h] [rbp-14h]
int j; // [rsp+18h] [rbp-10h]
int k; // [rsp+1Ch] [rbp-Ch]
result = a1;
if ( *(_DWORD *)(a1 + 18480) )
{
for ( i = 0; ; ++i )
{
result = i;
if ( (signed int)i >= *(_DWORD *)(*(_QWORD *)a1 + 8LL) )
break;
v4 = (*(_DWORD *)(96LL * (int)i + a1 + 18080 + 28) + 7) >> 3;
v3 = (*(_DWORD *)(96LL * (int)i + a1 + 18080 + 32) + 7) >> 3;
for ( j = 0; j < v3; ++j )
{
for ( k = 0; k < v4; ++k )
{
v2 = (__int16 *)(2LL * ((*(_DWORD *)(96LL * (int)i + a1 + 18080 + 88) * j + k) << 6)
+ *(_QWORD *)(96LL * (int)i + a1 + 18080 + 80));
stbi__jpeg_dequantize(
v2,
(unsigned __int16 *)(((long long)*(int *)(96LL * (int)i + a1 + 18080 + 12) << 7) + a1 + 13448));
(*(void ( **)(_QWORD, _QWORD, __int16 *))(a1 + 18544))(
8 * k + 8 * j * *(_DWORD *)(96LL * (int)i + a1 + 18080 + 36) + *(_QWORD *)(96LL * (int)i + a1 + 18080 + 48),
*(unsigned int *)(96LL * (int)i + a1 + 18080 + 36),
v2);
}
}
}
}
return result;
}
|
stbi__jpeg_finish:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV RAX,qword ptr [RSP + 0x20]
CMP dword ptr [RAX + 0x4830],0x0
JZ 0x00129a39
MOV dword ptr [RSP + 0x14],0x0
LAB_00129873:
MOV EAX,dword ptr [RSP + 0x14]
MOV RCX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RCX]
CMP EAX,dword ptr [RCX + 0x8]
JGE 0x00129a37
MOV RAX,qword ptr [RSP + 0x20]
ADD RAX,0x46a0
MOVSXD RCX,dword ptr [RSP + 0x14]
IMUL RCX,RCX,0x60
ADD RAX,RCX
MOV EAX,dword ptr [RAX + 0x1c]
ADD EAX,0x7
SAR EAX,0x3
MOV dword ptr [RSP + 0x10],EAX
MOV RAX,qword ptr [RSP + 0x20]
ADD RAX,0x46a0
MOVSXD RCX,dword ptr [RSP + 0x14]
IMUL RCX,RCX,0x60
ADD RAX,RCX
MOV EAX,dword ptr [RAX + 0x20]
ADD EAX,0x7
SAR EAX,0x3
MOV dword ptr [RSP + 0xc],EAX
MOV dword ptr [RSP + 0x18],0x0
LAB_001298d8:
MOV EAX,dword ptr [RSP + 0x18]
CMP EAX,dword ptr [RSP + 0xc]
JGE 0x00129a25
MOV dword ptr [RSP + 0x1c],0x0
LAB_001298ee:
MOV EAX,dword ptr [RSP + 0x1c]
CMP EAX,dword ptr [RSP + 0x10]
JGE 0x00129a13
MOV RAX,qword ptr [RSP + 0x20]
ADD RAX,0x46a0
MOVSXD RCX,dword ptr [RSP + 0x14]
IMUL RCX,RCX,0x60
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x50]
MOV ECX,dword ptr [RSP + 0x1c]
MOV EDX,dword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x20]
ADD RSI,0x46a0
MOVSXD RDI,dword ptr [RSP + 0x14]
IMUL RDI,RDI,0x60
ADD RSI,RDI
IMUL EDX,dword ptr [RSI + 0x58]
ADD ECX,EDX
SHL ECX,0x6
MOVSXD RCX,ECX
SHL RCX,0x1
ADD RAX,RCX
MOV qword ptr [RSP],RAX
MOV RDI,qword ptr [RSP]
MOV RSI,qword ptr [RSP + 0x20]
ADD RSI,0x3488
MOV RAX,qword ptr [RSP + 0x20]
ADD RAX,0x46a0
MOVSXD RCX,dword ptr [RSP + 0x14]
IMUL RCX,RCX,0x60
ADD RAX,RCX
MOVSXD RAX,dword ptr [RAX + 0xc]
SHL RAX,0x7
ADD RSI,RAX
CALL 0x0012ad50
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x4870]
MOV RCX,qword ptr [RSP + 0x20]
ADD RCX,0x46a0
MOVSXD RDX,dword ptr [RSP + 0x14]
IMUL RDX,RDX,0x60
ADD RCX,RDX
MOV RDI,qword ptr [RCX + 0x30]
MOV RCX,qword ptr [RSP + 0x20]
ADD RCX,0x46a0
MOVSXD RDX,dword ptr [RSP + 0x14]
IMUL RDX,RDX,0x60
ADD RCX,RDX
MOV ECX,dword ptr [RCX + 0x24]
IMUL ECX,dword ptr [RSP + 0x18]
SHL ECX,0x3
MOVSXD RCX,ECX
ADD RDI,RCX
MOV ECX,dword ptr [RSP + 0x1c]
SHL ECX,0x3
MOVSXD RCX,ECX
ADD RDI,RCX
MOV RCX,qword ptr [RSP + 0x20]
ADD RCX,0x46a0
MOVSXD RDX,dword ptr [RSP + 0x14]
IMUL RDX,RDX,0x60
ADD RCX,RDX
MOV ESI,dword ptr [RCX + 0x24]
MOV RDX,qword ptr [RSP]
CALL RAX
MOV EAX,dword ptr [RSP + 0x1c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x1c],EAX
JMP 0x001298ee
LAB_00129a13:
JMP 0x00129a15
LAB_00129a15:
MOV EAX,dword ptr [RSP + 0x18]
ADD EAX,0x1
MOV dword ptr [RSP + 0x18],EAX
JMP 0x001298d8
LAB_00129a25:
JMP 0x00129a27
LAB_00129a27:
MOV EAX,dword ptr [RSP + 0x14]
ADD EAX,0x1
MOV dword ptr [RSP + 0x14],EAX
JMP 0x00129873
LAB_00129a37:
JMP 0x00129a39
LAB_00129a39:
ADD RSP,0x28
RET
|
/* stbi__jpeg_finish(stbi__jpeg*) */
void stbi__jpeg_finish(stbi__jpeg *param_1)
{
int iVar1;
int iVar2;
short *psVar3;
int local_14;
int local_10;
int local_c;
if (*(int *)(param_1 + 0x4830) != 0) {
for (local_14 = 0; local_14 < *(int *)(*(long *)param_1 + 8); local_14 = local_14 + 1) {
iVar1 = *(int *)(param_1 + (long)local_14 * 0x60 + 0x46bc);
iVar2 = *(int *)(param_1 + (long)local_14 * 0x60 + 0x46c0);
for (local_10 = 0; local_10 < iVar2 + 7 >> 3; local_10 = local_10 + 1) {
for (local_c = 0; local_c < iVar1 + 7 >> 3; local_c = local_c + 1) {
psVar3 = (short *)(*(long *)(param_1 + (long)local_14 * 0x60 + 0x46f0) +
(long)((local_c +
local_10 * *(int *)(param_1 + (long)local_14 * 0x60 + 0x46f8)) *
0x40) * 2);
stbi__jpeg_dequantize
(psVar3,(ushort *)
(param_1 +
(long)*(int *)(param_1 + (long)local_14 * 0x60 + 0x46ac) * 0x80 + 0x3488
));
(**(code **)(param_1 + 0x4870))
(*(long *)(param_1 + (long)local_14 * 0x60 + 0x46d0) +
(long)(*(int *)(param_1 + (long)local_14 * 0x60 + 0x46c4) * local_10 * 8) +
(long)(local_c << 3),*(int4 *)(param_1 + (long)local_14 * 0x60 + 0x46c4),
psVar3);
}
}
}
}
return;
}
|
|
65,097 |
output2File()
|
isyoCode[P]yoyologger/test/usage.cc
|
void output2File() {
yoyo::Logger::getInstance()->setWritefile(false);
std::string sMsg = "this is a test message";
LOGI("This is a info log output to file");
LOGE(sMsg);
LOGD(std::move(sMsg));
LOGT("This is a info log output to file");
LOGW("This is a info log output to file");
LOGF("This is a info log output to file");
}
|
O3
|
cpp
|
output2File():
pushq %r14
pushq %rbx
subq $0x28, %rsp
callq 0x3940
movb $0x0, 0x2cb(%rax)
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x39d1(%rip), %rsi # 0x7020
leaq 0x39e0(%rip), %rdx # 0x7036
leaq 0x8(%rsp), %rdi
callq 0x3ef0
callq 0x3940
leaq 0x74ec(%rip), %rcx # 0xab58
movq %rsp, %rdx
movq %rcx, (%rdx)
leaq 0x39be(%rip), %rsi # 0x7037
movq %rax, %rdi
callq 0x3a2a
callq 0x3940
leaq 0x74e3(%rip), %rdx # 0xab70
movq %rsp, %rcx
movq %rdx, (%rcx)
leaq 0x8(%rsp), %rdx
movq %rax, %rdi
movl $0x3, %esi
callq 0x67ae
callq 0x3940
leaq 0x74d7(%rip), %rdx # 0xab88
movq %rsp, %rcx
movq %rdx, (%rcx)
leaq 0x8(%rsp), %rdx
movq %rax, %rdi
movl $0x2, %esi
callq 0x64e6
callq 0x3940
leaq 0x74cb(%rip), %rcx # 0xaba0
movq %rsp, %rdx
movq %rcx, (%rdx)
leaq 0x3955(%rip), %rsi # 0x7037
movq %rax, %rdi
callq 0x3ab8
callq 0x3940
leaq 0x74c2(%rip), %rcx # 0xabb8
movq %rsp, %rdx
movq %rcx, (%rdx)
leaq 0x3934(%rip), %rsi # 0x7037
movq %rax, %rdi
callq 0x3b4a
callq 0x3940
leaq 0x74b9(%rip), %rcx # 0xabd0
movq %rsp, %rdx
movq %rcx, (%rdx)
leaq 0x3913(%rip), %rsi # 0x7037
movq %rax, %rdi
callq 0x3bdc
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x3743
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
addq $0x28, %rsp
popq %rbx
popq %r14
retq
jmp 0x3757
jmp 0x3757
jmp 0x3757
jmp 0x3757
jmp 0x3757
jmp 0x3757
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x3771
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
movq %rbx, %rdi
callq 0x33a0
|
_Z11output2Filev:
push r14; int
push rbx; int
sub rsp, 28h
call _ZN4yoyo9SingletonINS_6LoggerEE11getInstanceEv; yoyo::Singleton<yoyo::Logger>::getInstance(void)
mov byte ptr [rax+2CBh], 0
lea r14, [rsp+38h+var_20]
mov [r14-10h], r14
lea rsi, aThisIsATestMes; "this is a test message"
lea rdx, aThisIsATestMes+16h; ""
lea rdi, [rsp+38h+var_30]
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)
call _ZN4yoyo9SingletonINS_6LoggerEE11getInstanceEv; yoyo::Singleton<yoyo::Logger>::getInstance(void)
lea rcx, off_AB58; "/workspace/llm4binary/github/2025_star3"...
mov rdx, rsp
mov [rdx], rcx
lea rsi, aThisIsAInfoLog; "This is a info log output to file"
mov rdi, rax; int
call _ZN4yoyo6Logger4infoIRA34_KcEEvOT_OSt15source_location; yoyo::Logger::info<char const(&)[34]>(char const(&)[34] &&,std::source_location &&)
call _ZN4yoyo9SingletonINS_6LoggerEE11getInstanceEv; yoyo::Singleton<yoyo::Logger>::getInstance(void)
lea rdx, off_AB70; "/workspace/llm4binary/github/2025_star3"...
mov rcx, rsp; int
mov [rcx], rdx
lea rdx, [rsp+38h+var_30]; int
mov rdi, rax; int
mov esi, 3; int
call _ZN4yoyo6Logger3logENS_8LOGLEVELERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEOSt15source_location; yoyo::Logger::log(yoyo::LOGLEVEL,std::string const&,std::source_location &&)
call _ZN4yoyo9SingletonINS_6LoggerEE11getInstanceEv; yoyo::Singleton<yoyo::Logger>::getInstance(void)
lea rdx, off_AB88; "/workspace/llm4binary/github/2025_star3"...
mov rcx, rsp; int
mov [rcx], rdx
lea rdx, [rsp+38h+var_30]; int
mov rdi, rax; int
mov esi, 2; int
call _ZN4yoyo6Logger3logENS_8LOGLEVELEONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEOSt15source_location; yoyo::Logger::log(yoyo::LOGLEVEL,std::string &&,std::source_location &&)
call _ZN4yoyo9SingletonINS_6LoggerEE11getInstanceEv; yoyo::Singleton<yoyo::Logger>::getInstance(void)
lea rcx, off_ABA0; "/workspace/llm4binary/github/2025_star3"...
mov rdx, rsp
mov [rdx], rcx
lea rsi, aThisIsAInfoLog; "This is a info log output to file"
mov rdi, rax; int
call _ZN4yoyo6Logger5traceIRA34_KcEEvOT_OSt15source_location; yoyo::Logger::trace<char const(&)[34]>(char const(&)[34] &&,std::source_location &&)
call _ZN4yoyo9SingletonINS_6LoggerEE11getInstanceEv; yoyo::Singleton<yoyo::Logger>::getInstance(void)
lea rcx, off_ABB8; "/workspace/llm4binary/github/2025_star3"...
mov rdx, rsp
mov [rdx], rcx
lea rsi, aThisIsAInfoLog; "This is a info log output to file"
mov rdi, rax; int
call _ZN4yoyo6Logger4warnIRA34_KcEEvOT_OSt15source_location; yoyo::Logger::warn<char const(&)[34]>(char const(&)[34] &&,std::source_location &&)
call _ZN4yoyo9SingletonINS_6LoggerEE11getInstanceEv; yoyo::Singleton<yoyo::Logger>::getInstance(void)
lea rcx, off_ABD0; "/workspace/llm4binary/github/2025_star3"...
mov rdx, rsp
mov [rdx], rcx
lea rsi, aThisIsAInfoLog; "This is a info log output to file"
mov rdi, rax; int
call _ZN4yoyo6Logger5fatalIRA34_KcEEvOT_OSt15source_location; yoyo::Logger::fatal<char const(&)[34]>(char const(&)[34] &&,std::source_location &&)
mov rdi, [rsp+38h+var_30]; void *
cmp rdi, r14
jz short loc_3743
mov rsi, [rsp+38h+var_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3743:
add rsp, 28h
pop rbx
pop r14
retn
jmp short loc_3757
jmp short loc_3757
jmp short loc_3757
jmp short loc_3757
jmp short loc_3757
jmp short $+2
loc_3757:
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r14
jz short loc_3771
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3771:
mov rdi, rbx
call __Unwind_Resume
|
output2File:
PUSH R14
PUSH RBX
SUB RSP,0x28
CALL 0x00103940
MOV byte ptr [RAX + 0x2cb],0x0
LEA R14,[RSP + 0x18]
MOV qword ptr [R14 + -0x10],R14
LEA RSI,[0x107020]
LEA RDX,[0x107036]
LEA RDI,[RSP + 0x8]
CALL 0x00103ef0
LAB_00103660:
CALL 0x00103940
LEA RCX,[0x10ab58]
MOV RDX,RSP
MOV qword ptr [RDX],RCX
LAB_00103672:
LEA RSI,[0x107037]
MOV RDI,RAX
CALL 0x00103a2a
LAB_00103681:
CALL 0x00103940
LEA RDX,[0x10ab70]
MOV RCX,RSP
MOV qword ptr [RCX],RDX
LAB_00103693:
LEA RDX,[RSP + 0x8]
MOV RDI,RAX
MOV ESI,0x3
CALL 0x001067ae
LAB_001036a5:
CALL 0x00103940
LEA RDX,[0x10ab88]
MOV RCX,RSP
MOV qword ptr [RCX],RDX
LAB_001036b7:
LEA RDX,[RSP + 0x8]
MOV RDI,RAX
MOV ESI,0x2
CALL 0x001064e6
LAB_001036c9:
CALL 0x00103940
LEA RCX,[0x10aba0]
MOV RDX,RSP
MOV qword ptr [RDX],RCX
LAB_001036db:
LEA RSI,[0x107037]
MOV RDI,RAX
CALL 0x00103ab8
LAB_001036ea:
CALL 0x00103940
LEA RCX,[0x10abb8]
MOV RDX,RSP
MOV qword ptr [RDX],RCX
LAB_001036fc:
LEA RSI,[0x107037]
MOV RDI,RAX
CALL 0x00103b4a
LAB_0010370b:
CALL 0x00103940
LEA RCX,[0x10abd0]
MOV RDX,RSP
MOV qword ptr [RDX],RCX
LAB_0010371d:
LEA RSI,[0x107037]
MOV RDI,RAX
CALL 0x00103bdc
LAB_0010372c:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R14
JZ 0x00103743
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x00103290
LAB_00103743:
ADD RSP,0x28
POP RBX
POP R14
RET
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* output2File() */
void output2File(void)
{
long lVar1;
Logger *pLVar2;
int **local_38;
long *local_30 [2];
long local_20 [2];
lVar1 = yoyo::Singleton<yoyo::Logger>::getInstance();
*(int1 *)(lVar1 + 0x2cb) = 0;
local_30[0] = local_20;
std::__cxx11::string::_M_construct<char_const*>(local_30,"this is a test message","");
/* try { // try from 00103660 to 00103664 has its CatchHandler @ 00103757 */
pLVar2 = (Logger *)yoyo::Singleton<yoyo::Logger>::getInstance();
local_38 = &PTR_s__workspace_llm4binary_github_202_0010ab58;
/* try { // try from 00103672 to 00103680 has its CatchHandler @ 00103755 */
yoyo::Logger::info<char_const(&)[34]>
(pLVar2,"This is a info log output to file",(source_location *)&local_38);
/* try { // try from 00103681 to 00103685 has its CatchHandler @ 00103757 */
pLVar2 = (Logger *)yoyo::Singleton<yoyo::Logger>::getInstance();
local_38 = &PTR_s__workspace_llm4binary_github_202_0010ab70;
/* try { // try from 00103693 to 001036a4 has its CatchHandler @ 00103753 */
yoyo::Logger::log(pLVar2,3,local_30);
/* try { // try from 001036a5 to 001036a9 has its CatchHandler @ 00103757 */
pLVar2 = (Logger *)yoyo::Singleton<yoyo::Logger>::getInstance();
local_38 = &PTR_s__workspace_llm4binary_github_202_0010ab88;
/* try { // try from 001036b7 to 001036c8 has its CatchHandler @ 00103751 */
yoyo::Logger::log(pLVar2,2,local_30);
/* try { // try from 001036c9 to 001036cd has its CatchHandler @ 00103757 */
pLVar2 = (Logger *)yoyo::Singleton<yoyo::Logger>::getInstance();
local_38 = &PTR_s__workspace_llm4binary_github_202_0010aba0;
/* try { // try from 001036db to 001036e9 has its CatchHandler @ 0010374f */
yoyo::Logger::trace<char_const(&)[34]>
(pLVar2,"This is a info log output to file",(source_location *)&local_38);
/* try { // try from 001036ea to 001036ee has its CatchHandler @ 00103757 */
pLVar2 = (Logger *)yoyo::Singleton<yoyo::Logger>::getInstance();
local_38 = &PTR_s__workspace_llm4binary_github_202_0010abb8;
/* try { // try from 001036fc to 0010370a has its CatchHandler @ 0010374d */
yoyo::Logger::warn<char_const(&)[34]>
(pLVar2,"This is a info log output to file",(source_location *)&local_38);
/* try { // try from 0010370b to 0010370f has its CatchHandler @ 00103757 */
pLVar2 = (Logger *)yoyo::Singleton<yoyo::Logger>::getInstance();
local_38 = &PTR_s__workspace_llm4binary_github_202_0010abd0;
/* try { // try from 0010371d to 0010372b has its CatchHandler @ 0010374b */
yoyo::Logger::fatal<char_const(&)[34]>
(pLVar2,"This is a info log output to file",(source_location *)&local_38);
if (local_30[0] != local_20) {
operator_delete(local_30[0],local_20[0] + 1);
}
return;
}
|
||
65,098 |
inline_mysql_file_create_with_symlink
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline File
inline_mysql_file_create_with_symlink(
#ifdef HAVE_PSI_FILE_INTERFACE
PSI_file_key key, const char *src_file, uint src_line,
#endif
const char *linkname, const char *filename, int create_flags,
int access_flags, myf flags)
{
File file;
#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_CREATE, filename,
&locker);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line);
file= my_create_with_symlink(linkname, filename, create_flags, access_flags,
flags);
PSI_FILE_CALL(end_file_open_wait_and_bind_to_descriptor)(locker, file);
return file;
}
#endif
file= my_create_with_symlink(linkname, filename, create_flags, access_flags,
flags);
return file;
}
|
O0
|
c
|
inline_mysql_file_create_with_symlink:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq 0x18(%rbp), %rax
movl 0x10(%rbp), %eax
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
leaq 0x1e6da9(%rip), %rax # 0x2c0238
movq (%rax), %rax
movq 0x148(%rax), %rax
movl -0x8(%rbp), %esi
movq -0x28(%rbp), %rcx
leaq -0x80(%rbp), %rdi
xorl %edx, %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 0xd952a
leaq 0x1e6d61(%rip), %rax # 0x2c0238
movq (%rax), %rax
movq 0x1f0(%rax), %rax
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
callq *%rax
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl -0x2c(%rbp), %edx
movl 0x10(%rbp), %ecx
movq 0x18(%rbp), %r8
callq 0xf5420
movl %eax, -0x30(%rbp)
leaq 0x1e6d29(%rip), %rax # 0x2c0238
movq (%rax), %rax
movq 0x200(%rax), %rax
movq -0x38(%rbp), %rdi
movl -0x30(%rbp), %esi
callq *%rax
movl -0x30(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xd954a
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl -0x2c(%rbp), %edx
movl 0x10(%rbp), %ecx
movq 0x18(%rbp), %r8
callq 0xf5420
movl %eax, -0x30(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
inline_mysql_file_create_with_symlink_0:
push rbp
mov rbp, rsp
sub rsp, 80h
mov rax, [rbp+arg_8]
mov eax, [rbp+arg_0]
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
mov [rbp+var_2C], r9d
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+148h]
mov esi, [rbp+var_8]
mov rcx, [rbp+var_28]
lea rdi, [rbp+var_80]
xor edx, edx
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_D952A
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1F0h]
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]
mov edx, [rbp+var_2C]
mov ecx, [rbp+arg_0]
mov r8, [rbp+arg_8]
call my_create_with_symlink
mov [rbp+var_30], eax
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+200h]
mov rdi, [rbp+var_38]
mov esi, [rbp+var_30]
call rax
mov eax, [rbp+var_30]
mov [rbp+var_4], eax
jmp short loc_D954A
loc_D952A:
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_28]
mov edx, [rbp+var_2C]
mov ecx, [rbp+arg_0]
mov r8, [rbp+arg_8]
call my_create_with_symlink
mov [rbp+var_30], eax
mov eax, [rbp+var_30]
mov [rbp+var_4], eax
loc_D954A:
mov eax, [rbp+var_4]
add rsp, 80h
pop rbp
retn
|
long long inline_mysql_file_create_with_symlink_0(
unsigned int a1,
long long a2,
unsigned int a3,
long long a4,
long long a5,
unsigned int a6,
unsigned int a7,
long long a8)
{
_BYTE v9[72]; // [rsp+0h] [rbp-80h] BYREF
long long v10; // [rsp+48h] [rbp-38h] BYREF
unsigned int v11; // [rsp+50h] [rbp-30h]
unsigned int v12; // [rsp+54h] [rbp-2Ch]
long long v13; // [rsp+58h] [rbp-28h]
long long v14; // [rsp+60h] [rbp-20h]
unsigned int v15; // [rsp+6Ch] [rbp-14h]
long long v16; // [rsp+70h] [rbp-10h]
unsigned int v17; // [rsp+78h] [rbp-8h]
v17 = a1;
v16 = a2;
v15 = a3;
v14 = a4;
v13 = a5;
v12 = a6;
v10 = ((long long ( *)(_BYTE *, _QWORD, _QWORD, long long, long long *))PSI_server[41])(v9, a1, 0LL, a5, &v10);
if ( v10 )
{
((void ( *)(long long, long long, _QWORD))PSI_server[62])(v10, v16, v15);
v11 = my_create_with_symlink(v14, v13, v12, a7, a8);
((void ( *)(long long, _QWORD))PSI_server[64])(v10, v11);
}
else
{
return (unsigned int)my_create_with_symlink(v14, v13, v12, a7, a8);
}
return v11;
}
|
inline_mysql_file_create_with_symlink:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV RAX,qword ptr [RBP + 0x18]
MOV EAX,dword ptr [RBP + 0x10]
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
MOV dword ptr [RBP + -0x2c],R9D
LEA RAX,[0x3c0238]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x148]
MOV ESI,dword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x28]
LEA RDI,[RBP + -0x80]
XOR EDX,EDX
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 0x001d952a
LEA RAX,[0x3c0238]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1f0]
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]
MOV EDX,dword ptr [RBP + -0x2c]
MOV ECX,dword ptr [RBP + 0x10]
MOV R8,qword ptr [RBP + 0x18]
CALL 0x001f5420
MOV dword ptr [RBP + -0x30],EAX
LEA RAX,[0x3c0238]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x200]
MOV RDI,qword ptr [RBP + -0x38]
MOV ESI,dword ptr [RBP + -0x30]
CALL RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001d954a
LAB_001d952a:
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x28]
MOV EDX,dword ptr [RBP + -0x2c]
MOV ECX,dword ptr [RBP + 0x10]
MOV R8,qword ptr [RBP + 0x18]
CALL 0x001f5420
MOV dword ptr [RBP + -0x30],EAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x4],EAX
LAB_001d954a:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x80
POP RBP
RET
|
int4
inline_mysql_file_create_with_symlink
(int4 param_1,int8 param_2,int4 param_3,int8 param_4,
int8 param_5,int4 param_6,int4 param_7,int8 param_8)
{
int1 local_88 [72];
long local_40;
int4 local_38;
int4 local_34;
int8 local_30;
int8 local_28;
int4 local_1c;
int8 local_18;
int4 local_10;
int4 local_c;
local_34 = param_6;
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,0,param_5,&local_40);
if (local_40 == 0) {
local_c = my_create_with_symlink(local_28,local_30,local_34,param_7,param_8);
}
else {
(**(code **)(PSI_server + 0x1f0))(local_40,local_18,local_1c);
local_38 = my_create_with_symlink(local_28,local_30,local_34,param_7,param_8);
(**(code **)(PSI_server + 0x200))(local_40,local_38);
local_c = local_38;
}
return local_c;
}
|
|
65,099 |
common_chat_format_name[abi:cxx11](common_chat_format)
|
monkey531[P]llama/common/chat.cpp
|
std::string common_chat_format_name(common_chat_format format) {
switch (format) {
case COMMON_CHAT_FORMAT_CONTENT_ONLY: return "Content-only";
case COMMON_CHAT_FORMAT_GENERIC: return "Generic";
case COMMON_CHAT_FORMAT_MISTRAL_NEMO: return "Mistral Nemo";
case COMMON_CHAT_FORMAT_LLAMA_3_X: return "Llama 3.x";
case COMMON_CHAT_FORMAT_LLAMA_3_X_WITH_BUILTIN_TOOLS: return "Llama 3.x with builtin tools";
case COMMON_CHAT_FORMAT_DEEPSEEK_R1: return "DeepSeek R1";
case COMMON_CHAT_FORMAT_FIREFUNCTION_V2: return "FireFunction v2";
case COMMON_CHAT_FORMAT_FUNCTIONARY_V3_2: return "Functionary v3.2";
case COMMON_CHAT_FORMAT_FUNCTIONARY_V3_1_LLAMA_3_1: return "Functionary v3.1 Llama 3.1";
case COMMON_CHAT_FORMAT_HERMES_2_PRO: return "Hermes 2 Pro";
case COMMON_CHAT_FORMAT_COMMAND_R7B: return "Command R7B";
default:
throw std::runtime_error("Unknown chat format");
}
}
|
O1
|
cpp
|
common_chat_format_name[abi:cxx11](common_chat_format):
pushq %r14
pushq %rbx
pushq %rax
cmpl $0xa, %esi
ja 0x861e7
movq %rdi, %rbx
movl %esi, %eax
leaq 0x31477(%rip), %rcx # 0xb7538
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x324a8(%rip), %rsi # 0xb8580
leaq 0x324ad(%rip), %rdx # 0xb858c
jmp 0x861d4
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x324ba(%rip), %rsi # 0xb85ac
leaq 0x324cf(%rip), %rdx # 0xb85c8
jmp 0x861d4
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x32505(%rip), %rsi # 0xb8611
leaq 0x3250a(%rip), %rdx # 0xb861d
jmp 0x861d4
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3246f(%rip), %rsi # 0xb8595
leaq 0x32474(%rip), %rdx # 0xb85a1
jmp 0x861d4
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x32462(%rip), %rsi # 0xb85a2
leaq 0x32464(%rip), %rdx # 0xb85ab
jmp 0x861d4
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3248b(%rip), %rsi # 0xb85e5
leaq 0x32494(%rip), %rdx # 0xb85f5
jmp 0x861d4
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3241c(%rip), %rsi # 0xb858d
leaq 0x3241c(%rip), %rdx # 0xb8594
jmp 0x861d4
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x32441(%rip), %rsi # 0xb85c9
leaq 0x32445(%rip), %rdx # 0xb85d4
jmp 0x861d4
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x32436(%rip), %rsi # 0xb85d5
leaq 0x3243e(%rip), %rdx # 0xb85e4
jmp 0x861d4
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x32468(%rip), %rsi # 0xb861e
leaq 0x3246c(%rip), %rdx # 0xb8629
jmp 0x861d4
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x32429(%rip), %rsi # 0xb85f6
leaq 0x3243c(%rip), %rdx # 0xb8610
movq %rbx, %rdi
callq 0x2175a
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x10, %edi
callq 0x19380
movq %rax, %rbx
leaq 0x3242f(%rip), %rsi # 0xb862a
movq %rax, %rdi
callq 0x19280
movq 0x5ede6(%rip), %rsi # 0xe4ff0
movq 0x5ed5f(%rip), %rdx # 0xe4f70
movq %rbx, %rdi
callq 0x19bb0
movq %rax, %r14
movq %rbx, %rdi
callq 0x19520
movq %r14, %rdi
callq 0x19c10
|
_Z23common_chat_format_nameB5cxx1118common_chat_format:
push r14
push rbx
push rax
cmp esi, 0Ah; switch 11 cases
ja def_860C8; jumptable 00000000000860C8 default case
mov rbx, rdi
mov eax, esi
lea rcx, jpt_860C8
movsxd rax, ds:(jpt_860C8 - 0B7538h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_860CA:
lea rax, [rbx+10h]; jumptable 00000000000860C8 case 0
mov [rbx], rax
lea rsi, aContentOnly; "Content-only"
lea rdx, aContentOnly+0Ch; ""
jmp loc_861D4
loc_860E4:
lea rax, [rbx+10h]; jumptable 00000000000860C8 case 4
mov [rbx], rax
lea rsi, aLlama3XWithBui; "Llama 3.x with builtin tools"
lea rdx, aLlama3XWithBui+1Ch; ""
jmp loc_861D4
loc_860FE:
lea rax, [rbx+10h]; jumptable 00000000000860C8 case 9
mov [rbx], rax
lea rsi, aHermes2Pro; "Hermes 2 Pro"
lea rdx, aHermes2Pro+0Ch; ""
jmp loc_861D4
loc_86118:
lea rax, [rbx+10h]; jumptable 00000000000860C8 case 2
mov [rbx], rax
lea rsi, aMistralNemo; "Mistral Nemo"
lea rdx, aMistralNemo+0Ch; ""
jmp loc_861D4
loc_86132:
lea rax, [rbx+10h]; jumptable 00000000000860C8 case 3
mov [rbx], rax
lea rsi, aLlama3X; "Llama 3.x"
lea rdx, aLlama3X+9; ""
jmp loc_861D4
loc_8614C:
lea rax, [rbx+10h]; jumptable 00000000000860C8 case 7
mov [rbx], rax
lea rsi, aFunctionaryV32; "Functionary v3.2"
lea rdx, aFunctionaryV32+10h; ""
jmp short loc_861D4
loc_86163:
lea rax, [rbx+10h]; jumptable 00000000000860C8 case 1
mov [rbx], rax
lea rsi, aGeneric; "Generic"
lea rdx, aGeneric+7; ""
jmp short loc_861D4
loc_8617A:
lea rax, [rbx+10h]; jumptable 00000000000860C8 case 5
mov [rbx], rax
lea rsi, aDeepseekR1; "DeepSeek R1"
lea rdx, aDeepseekR1+0Bh; ""
jmp short loc_861D4
loc_86191:
lea rax, [rbx+10h]; jumptable 00000000000860C8 case 6
mov [rbx], rax
lea rsi, aFirefunctionV2; "FireFunction v2"
lea rdx, aFirefunctionV2+0Fh; ""
jmp short loc_861D4
loc_861A8:
lea rax, [rbx+10h]; jumptable 00000000000860C8 case 10
mov [rbx], rax
lea rsi, aCommandR7b; "Command R7B"
lea rdx, aCommandR7b+0Bh; ""
jmp short loc_861D4
loc_861BF:
lea rax, [rbx+10h]; jumptable 00000000000860C8 case 8
mov [rbx], rax
lea rsi, aFunctionaryV31; "Functionary v3.1 Llama 3.1"
lea rdx, aFunctionaryV31+1Ah; ""
loc_861D4:
mov rdi, rbx
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
add rsp, 8
pop rbx
pop r14
retn
def_860C8:
mov edi, 10h; jumptable 00000000000860C8 default case
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aUnknownChatFor; "Unknown chat format"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
mov rdi, r14
call __Unwind_Resume
|
_QWORD * common_chat_format_name[abi:cxx11](_QWORD *a1, int a2)
{
char *v2; // rsi
char *v3; // rdx
std::runtime_error *exception; // rbx
switch ( a2 )
{
case 0:
*a1 = a1 + 2;
v2 = "Content-only";
v3 = "";
break;
case 1:
*a1 = a1 + 2;
v2 = "Generic";
v3 = "";
break;
case 2:
*a1 = a1 + 2;
v2 = "Mistral Nemo";
v3 = "";
break;
case 3:
*a1 = a1 + 2;
v2 = "Llama 3.x";
v3 = "";
break;
case 4:
*a1 = a1 + 2;
v2 = "Llama 3.x with builtin tools";
v3 = "";
break;
case 5:
*a1 = a1 + 2;
v2 = "DeepSeek R1";
v3 = "";
break;
case 6:
*a1 = a1 + 2;
v2 = "FireFunction v2";
v3 = "";
break;
case 7:
*a1 = a1 + 2;
v2 = "Functionary v3.2";
v3 = "";
break;
case 8:
*a1 = a1 + 2;
v2 = "Functionary v3.1 Llama 3.1";
v3 = "";
break;
case 9:
*a1 = a1 + 2;
v2 = "Hermes 2 Pro";
v3 = "";
break;
case 10:
*a1 = a1 + 2;
v2 = "Command R7B";
v3 = "";
break;
default:
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Unknown chat format");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
std::string::_M_construct<char const*>(a1, v2, (long long)v3);
return a1;
}
|
common_chat_format_name[abi:cxx11]:
PUSH R14
PUSH RBX
PUSH RAX
CMP ESI,0xa
JA 0x001861e7
MOV RBX,RDI
MOV EAX,ESI
LEA RCX,[0x1b7538]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_0:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1b8580]
LEA RDX,[0x1b858c]
JMP 0x001861d4
caseD_4:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1b85ac]
LEA RDX,[0x1b85c8]
JMP 0x001861d4
caseD_9:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1b8611]
LEA RDX,[0x1b861d]
JMP 0x001861d4
caseD_2:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1b8595]
LEA RDX,[0x1b85a1]
JMP 0x001861d4
caseD_3:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1b85a2]
LEA RDX,[0x1b85ab]
JMP 0x001861d4
caseD_7:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1b85e5]
LEA RDX,[0x1b85f5]
JMP 0x001861d4
caseD_1:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1b858d]
LEA RDX,[0x1b8594]
JMP 0x001861d4
caseD_5:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1b85c9]
LEA RDX,[0x1b85d4]
JMP 0x001861d4
caseD_6:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1b85d5]
LEA RDX,[0x1b85e4]
JMP 0x001861d4
caseD_a:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1b861e]
LEA RDX,[0x1b8629]
JMP 0x001861d4
caseD_8:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1b85f6]
LEA RDX,[0x1b8610]
LAB_001861d4:
MOV RDI,RBX
CALL 0x0012175a
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
RET
default:
MOV EDI,0x10
CALL 0x00119380
MOV RBX,RAX
LAB_001861f4:
LEA RSI,[0x1b862a]
MOV RDI,RAX
CALL 0x00119280
LAB_00186203:
MOV RSI,qword ptr [0x001e4ff0]
MOV RDX,qword ptr [0x001e4f70]
MOV RDI,RBX
CALL 0x00119bb0
|
/* common_chat_format_name[abi:cxx11](common_chat_format) */
long * common_chat_format_name_abi_cxx11_(long *param_1,int4 param_2)
{
runtime_error *this;
char *pcVar1;
char *pcVar2;
switch(param_2) {
case 0:
*param_1 = (long)(param_1 + 2);
pcVar2 = "Content-only";
pcVar1 = "";
break;
case 1:
*param_1 = (long)(param_1 + 2);
pcVar2 = "Generic";
pcVar1 = "";
break;
case 2:
*param_1 = (long)(param_1 + 2);
pcVar2 = "Mistral Nemo";
pcVar1 = "";
break;
case 3:
*param_1 = (long)(param_1 + 2);
pcVar2 = "Llama 3.x";
pcVar1 = "";
break;
case 4:
*param_1 = (long)(param_1 + 2);
pcVar2 = "Llama 3.x with builtin tools";
pcVar1 = "";
break;
case 5:
*param_1 = (long)(param_1 + 2);
pcVar2 = "DeepSeek R1";
pcVar1 = "";
break;
case 6:
*param_1 = (long)(param_1 + 2);
pcVar2 = "FireFunction v2";
pcVar1 = "";
break;
case 7:
*param_1 = (long)(param_1 + 2);
pcVar2 = "Functionary v3.2";
pcVar1 = "";
break;
case 8:
*param_1 = (long)(param_1 + 2);
pcVar2 = "Functionary v3.1 Llama 3.1";
pcVar1 = "";
break;
case 9:
*param_1 = (long)(param_1 + 2);
pcVar2 = "Hermes 2 Pro";
pcVar1 = "";
break;
case 10:
*param_1 = (long)(param_1 + 2);
pcVar2 = "Command R7B";
pcVar1 = "";
break;
default:
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001861f4 to 00186202 has its CatchHandler @ 00186219 */
std::runtime_error::runtime_error(this,"Unknown chat format");
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_001e4ff0,PTR__runtime_error_001e4f70);
}
std::__cxx11::string::_M_construct<char_const*>(param_1,pcVar2,pcVar1);
return param_1;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.