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
|
|---|---|---|---|---|---|---|---|---|---|---|---|
57,400
|
ModelLoader::init_from_gguf_file(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&)
|
7CodeWizard[P]stablediffusion/model.cpp
|
bool ModelLoader::init_from_gguf_file(const std::string& file_path, const std::string& prefix) {
LOG_DEBUG("init from '%s'", file_path.c_str());
file_paths_.push_back(file_path);
size_t file_index = file_paths_.size() - 1;
gguf_context* ctx_gguf_ = NULL;
ggml_context* ctx_meta_ = NULL;
ctx_gguf_ = gguf_init_from_file(file_path.c_str(), {true, &ctx_meta_});
if (!ctx_gguf_) {
LOG_ERROR("failed to open '%s'", file_path.c_str());
return false;
}
int n_tensors = gguf_get_n_tensors(ctx_gguf_);
size_t total_size = 0;
size_t data_offset = gguf_get_data_offset(ctx_gguf_);
for (int i = 0; i < n_tensors; i++) {
std::string name = gguf_get_tensor_name(ctx_gguf_, i);
struct ggml_tensor* dummy = ggml_get_tensor(ctx_meta_, name.c_str());
size_t offset = data_offset + gguf_get_tensor_offset(ctx_gguf_, i);
// LOG_DEBUG("%s", name.c_str());
TensorStorage tensor_storage(prefix + name, dummy->type, dummy->ne, ggml_n_dims(dummy), file_index, offset);
GGML_ASSERT(ggml_nbytes(dummy) == tensor_storage.nbytes());
tensor_storages.push_back(tensor_storage);
}
gguf_free(ctx_gguf_);
ggml_free(ctx_meta_);
return true;
}
|
O2
|
cpp
|
ModelLoader::init_from_gguf_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdx, 0x38(%rsp)
movq %rsi, %rbx
movq %rdi, %r12
movq (%rsi), %r8
leaq 0x5647d(%rip), %rsi # 0x9dce3
leaq 0x56552(%rip), %rcx # 0x9ddbf
xorl %r13d, %r13d
xorl %edi, %edi
movl $0x28f, %edx # imm = 0x28F
xorl %eax, %eax
callq 0x55f59
movq %r12, %rdi
movq %rbx, %rsi
callq 0x3eefa
movq 0x8(%r12), %rbp
subq (%r12), %rbp
leaq 0x18(%rsp), %rdx
andq $0x0, (%rdx)
movq (%rbx), %rdi
pushq $0x1
popq %rsi
callq 0x76c0d
movq %rax, %r15
testq %rax, %rax
je 0x479fb
sarq $0x5, %rbp
decq %rbp
movq %r15, %rdi
callq 0x781d9
movl %eax, %ebx
movq %r15, %rdi
callq 0x776fc
addq $0x18, %r12
testl %ebx, %ebx
cmovlel %r13d, %ebx
movl %ebx, 0x14(%rsp)
movq %rax, 0x28(%rsp)
movq %rbp, 0x30(%rsp)
movq %r15, 0x20(%rsp)
cmpl %r13d, 0x14(%rsp)
je 0x479e7
movq %r15, %rdi
movl %r13d, %esi
callq 0x78239
leaq 0x40(%rsp), %rdi
movq %rax, %rsi
leaq 0x80(%rsp), %rdx
callq 0x19f24
movq 0x18(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x69979
movl %r13d, %esi
movq %rax, %r13
movq %r15, %rdi
movl %esi, %ebx
callq 0x7824a
movq %rax, %r14
movq %r12, %r15
leaq 0x60(%rsp), %rdi
movq 0x38(%rsp), %rsi
leaq 0x40(%rsp), %rdx
callq 0x4a10d
movl (%r13), %r12d
movq %r13, %rdi
callq 0x67d2a
leaq 0x60(%rsp), %rbp
addq 0x28(%rsp), %r14
movq %r13, %rcx
addq $0x10, %rcx
movq %r14, (%rsp)
leaq 0x80(%rsp), %rdi
movq %rbp, %rsi
movl %r12d, %edx
movl %eax, %r8d
movq 0x30(%rsp), %r9
callq 0x4a6c8
movq %rbp, %rdi
callq 0xac60
movq %r13, %rdi
callq 0x67afd
movq %r15, %r12
movq 0x20(%rsp), %r15
movq %rax, %r14
movl %ebx, %r13d
leaq 0x80(%rsp), %rdi
callq 0x4a752
cmpq %rax, %r14
jne 0x47a33
movq %r12, %rdi
leaq 0x80(%rsp), %rsi
callq 0x4a4fa
leaq 0x80(%rsp), %rdi
callq 0xac60
leaq 0x40(%rsp), %rdi
callq 0xac60
incl %r13d
jmp 0x478e8
movq %r15, %rdi
callq 0x774a1
movq 0x18(%rsp), %rdi
callq 0x6823b
jmp 0x47a1b
movq (%rbx), %r8
leaq 0x562de(%rip), %rsi # 0x9dce3
leaq 0x563c2(%rip), %rcx # 0x9ddce
pushq $0x3
popq %rdi
movl $0x297, %edx # imm = 0x297
xorl %eax, %eax
callq 0x55f59
testq %r15, %r15
setne %al
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8e50e(%rip), %rax # 0xd5f48
movq (%rax), %rdi
callq 0xa6f0
movq 0x8e55f(%rip), %rax # 0xd5fa8
movq (%rax), %rdi
leaq 0x527cb(%rip), %rsi # 0x9a21e
leaq 0x56289(%rip), %rdx # 0x9dce3
leaq 0x56381(%rip), %r8 # 0x9dde2
movl $0x2a8, %ecx # imm = 0x2A8
xorl %eax, %eax
callq 0xa8b0
callq 0x67550
callq 0xa300
jmp 0x47a7b
jmp 0x47a7b
movq %rax, %rbx
jmp 0x47a9c
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
jmp 0x47a97
jmp 0x47a8c
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0xac60
leaq 0x40(%rsp), %rdi
callq 0xac60
movq %rbx, %rdi
callq 0xaab0
|
_ZN11ModelLoader19init_from_gguf_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0E8h
mov [rsp+118h+var_E0], rdx
mov rbx, rsi
mov r12, rdi
mov r8, [rsi]
lea rsi, aWorkspaceLlm4b_4; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aInitFromS; "init from '%s'"
xor r13d, r13d
xor edi, edi
mov edx, 28Fh
xor eax, eax
call _Z10log_printf14sd_log_level_tPKciS1_z; log_printf(sd_log_level_t,char const*,int,char const*,...)
mov rdi, r12
mov rsi, rbx
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_; std::vector<std::string>::push_back(std::string const&)
mov rbp, [r12+8]
sub rbp, [r12]
lea rdx, [rsp+118h+var_100]
and qword ptr [rdx], 0
mov rdi, [rbx]
push 1
pop rsi
call gguf_init_from_file
mov r15, rax
test rax, rax
jz loc_479FB
sar rbp, 5
dec rbp
mov rdi, r15
call gguf_get_n_tensors
mov ebx, eax
mov rdi, r15
call gguf_get_data_offset
add r12, 18h
test ebx, ebx
cmovle ebx, r13d
mov [rsp+118h+var_104], ebx
mov [rsp+118h+var_F0], rax
mov [rsp+118h+var_E8], rbp
mov [rsp+118h+var_F8], r15
loc_478E8:
cmp [rsp+118h+var_104], r13d
jz loc_479E7
mov rdi, r15
mov esi, r13d
call gguf_get_tensor_name
lea rdi, [rsp+118h+var_D8]
mov rsi, rax
lea rdx, [rsp+118h+var_98]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, [rsp+118h+var_100]
mov rsi, [rsp+118h+var_D8]
call ggml_get_tensor
mov esi, r13d
mov r13, rax
mov rdi, r15
mov ebx, esi
call gguf_get_tensor_offset
mov r14, rax
mov r15, r12
lea rdi, [rsp+118h+var_B8]
mov rsi, [rsp+118h+var_E0]
lea rdx, [rsp+118h+var_D8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_; std::operator+<char>(std::string const&,std::string const&)
mov r12d, [r13+0]
mov rdi, r13
call ggml_n_dims
lea rbp, [rsp+118h+var_B8]
add r14, [rsp+118h+var_F0]
mov rcx, r13
add rcx, 10h
mov [rsp+118h+var_118], r14
lea rdi, [rsp+118h+var_98]
mov rsi, rbp
mov edx, r12d
mov r8d, eax
mov r9, [rsp+118h+var_E8]
call _ZN13TensorStorageC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9ggml_typePlimm; TensorStorage::TensorStorage(std::string const&,ggml_type,long *,int,ulong,ulong)
mov rdi, rbp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r13
call ggml_nbytes
mov r12, r15
mov r15, [rsp+118h+var_F8]
mov r14, rax
mov r13d, ebx
lea rdi, [rsp+118h+var_98]; this
call _ZNK13TensorStorage6nbytesEv; TensorStorage::nbytes(void)
cmp r14, rax
jnz short loc_47A33
mov rdi, r12
lea rsi, [rsp+118h+var_98]
call _ZNSt6vectorI13TensorStorageSaIS0_EE9push_backERKS0_; std::vector<TensorStorage>::push_back(TensorStorage const&)
lea rdi, [rsp+118h+var_98]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+118h+var_D8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
inc r13d
jmp loc_478E8
loc_479E7:
mov rdi, r15
call gguf_free
mov rdi, [rsp+118h+var_100]
call ggml_free
jmp short loc_47A1B
loc_479FB:
mov r8, [rbx]
lea rsi, aWorkspaceLlm4b_4; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aFailedToOpenS; "failed to open '%s'"
push 3
pop rdi
mov edx, 297h
xor eax, eax
call _Z10log_printf14sd_log_level_tPKciS1_z; log_printf(sd_log_level_t,char const*,int,char const*,...)
loc_47A1B:
test r15, r15
setnz al
add rsp, 0E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_47A33:
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aGgmlAssertSDS; "GGML_ASSERT: %s:%d: %s\n"
lea rdx, aWorkspaceLlm4b_4; "/workspace/llm4binary/github/2025_star3"...
lea r8, aGgmlNbytesDumm; "ggml_nbytes(dummy) == tensor_storage.nb"...
mov ecx, 2A8h
xor eax, eax
call _fprintf
call ggml_print_backtrace
call _abort
jmp short loc_47A7B
jmp short $+2
loc_47A7B:
mov rbx, rax
jmp short loc_47A9C
mov rbx, rax
lea rdi, [rsp+118h+var_B8]
jmp short loc_47A97
jmp short $+2
loc_47A8C:
mov rbx, rax
lea rdi, [rsp+118h+var_98]; void *
loc_47A97:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_47A9C:
lea rdi, [rsp+118h+var_D8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx
call __Unwind_Resume
|
bool ModelLoader::init_from_gguf_file(_QWORD *a1, _QWORD *a2, long long a3, long long a4, long long a5, int a6)
{
unsigned int v6; // r13d
long long v7; // rbp
long long v8; // rax
int v9; // r9d
long long v10; // r15
long long v11; // rbp
int n_tensors; // ebx
long long data_offset; // rax
_QWORD *v14; // r12
long long tensor_name; // rax
unsigned int v16; // esi
int *tensor; // r13
long long tensor_offset; // r14
_QWORD *v19; // r15
int v20; // r12d
int v21; // eax
long long v22; // rax
double v23; // xmm0_8
long long v25; // rdi
double v26; // xmm0_8
long long v27; // [rsp+18h] [rbp-100h] BYREF
long long v28; // [rsp+20h] [rbp-F8h]
long long v29; // [rsp+28h] [rbp-F0h]
long long v30; // [rsp+30h] [rbp-E8h]
long long v31; // [rsp+38h] [rbp-E0h]
_QWORD v32[4]; // [rsp+40h] [rbp-D8h] BYREF
_BYTE v33[32]; // [rsp+60h] [rbp-B8h] BYREF
_BYTE v34[152]; // [rsp+80h] [rbp-98h] BYREF
v31 = a3;
v6 = 0;
log_printf(
0,
(unsigned int)"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/model.cpp",
655,
(unsigned int)"init from '%s'",
*a2,
a6);
std::vector<std::string>::push_back((long long)a1, (long long)a2);
v7 = a1[1] - *a1;
v27 = 0LL;
v8 = gguf_init_from_file(*a2, 1LL, &v27);
v10 = v8;
if ( v8 )
{
v11 = (v7 >> 5) - 1;
n_tensors = gguf_get_n_tensors(v8);
data_offset = gguf_get_data_offset(v10);
v14 = a1 + 3;
if ( n_tensors <= 0 )
n_tensors = 0;
v29 = data_offset;
v30 = v11;
v28 = v10;
while ( n_tensors != v6 )
{
tensor_name = gguf_get_tensor_name(v10, v6);
std::string::basic_string<std::allocator<char>>(v32, tensor_name);
v16 = v6;
tensor = (int *)ggml_get_tensor(v27, v32[0]);
tensor_offset = gguf_get_tensor_offset(v10);
v19 = v14;
std::operator+<char>(v33, v31, v32);
v20 = *tensor;
v21 = ggml_n_dims(tensor);
TensorStorage::TensorStorage(
(unsigned int)v34,
(unsigned int)v33,
v20,
(_DWORD)tensor + 16,
v21,
v30,
v29 + tensor_offset);
std::string::~string(v33);
v22 = ggml_nbytes(tensor);
v14 = v19;
v10 = v28;
if ( v22 != TensorStorage::nbytes((TensorStorage *)v34) )
{
fflush(stdout);
v25 = stderr;
v26 = fprintf(
stderr,
"GGML_ASSERT: %s:%d: %s\n",
"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/model.cpp",
680,
"ggml_nbytes(dummy) == tensor_storage.nbytes()");
ggml_print_backtrace(v26);
abort(v25);
}
std::vector<TensorStorage>::push_back(v14, v34);
std::string::~string(v34);
std::string::~string(v32);
v6 = v16 + 1;
}
v23 = gguf_free(v10);
ggml_free(v27, v23);
}
else
{
log_printf(
3,
(unsigned int)"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/model.cpp",
663,
(unsigned int)"failed to open '%s'",
*a2,
v9);
}
return v10 != 0;
}
|
init_from_gguf_file:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xe8
MOV qword ptr [RSP + 0x38],RDX
MOV RBX,RSI
MOV R12,RDI
MOV R8,qword ptr [RSI]
LEA RSI,[0x19dce3]
LEA RCX,[0x19ddbf]
XOR R13D,R13D
XOR EDI,EDI
MOV EDX,0x28f
XOR EAX,EAX
CALL 0x00155f59
MOV RDI,R12
MOV RSI,RBX
CALL 0x0013eefa
MOV RBP,qword ptr [R12 + 0x8]
SUB RBP,qword ptr [R12]
LEA RDX,[RSP + 0x18]
AND qword ptr [RDX],0x0
MOV RDI,qword ptr [RBX]
PUSH 0x1
POP RSI
CALL 0x00176c0d
MOV R15,RAX
TEST RAX,RAX
JZ 0x001479fb
SAR RBP,0x5
DEC RBP
MOV RDI,R15
CALL 0x001781d9
MOV EBX,EAX
MOV RDI,R15
CALL 0x001776fc
ADD R12,0x18
TEST EBX,EBX
CMOVLE EBX,R13D
MOV dword ptr [RSP + 0x14],EBX
MOV qword ptr [RSP + 0x28],RAX
MOV qword ptr [RSP + 0x30],RBP
MOV qword ptr [RSP + 0x20],R15
LAB_001478e8:
CMP dword ptr [RSP + 0x14],R13D
JZ 0x001479e7
MOV RDI,R15
MOV ESI,R13D
CALL 0x00178239
LEA RDI,[RSP + 0x40]
MOV RSI,RAX
LEA RDX,[RSP + 0x80]
CALL 0x00119f24
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x40]
LAB_0014791d:
CALL 0x00169979
LAB_00147922:
MOV ESI,R13D
MOV R13,RAX
MOV RDI,R15
MOV EBX,ESI
CALL 0x0017824a
LAB_00147932:
MOV R14,RAX
MOV R15,R12
LEA RDI,[RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x38]
LEA RDX,[RSP + 0x40]
CALL 0x0014a10d
MOV R12D,dword ptr [R13]
LAB_00147950:
MOV RDI,R13
CALL 0x00167d2a
LEA RBP,[RSP + 0x60]
ADD R14,qword ptr [RSP + 0x28]
MOV RCX,R13
ADD RCX,0x10
MOV qword ptr [RSP],R14
LEA RDI,[RSP + 0x80]
MOV RSI,RBP
MOV EDX,R12D
MOV R8D,EAX
MOV R9,qword ptr [RSP + 0x30]
CALL 0x0014a6c8
MOV RDI,RBP
CALL 0x0010ac60
LAB_00147990:
MOV RDI,R13
CALL 0x00167afd
MOV R12,R15
MOV R15,qword ptr [RSP + 0x20]
MOV R14,RAX
MOV R13D,EBX
LEA RDI,[RSP + 0x80]
CALL 0x0014a752
CMP R14,RAX
JNZ 0x00147a33
MOV RDI,R12
LEA RSI,[RSP + 0x80]
CALL 0x0014a4fa
LAB_001479c8:
LEA RDI,[RSP + 0x80]
CALL 0x0010ac60
LEA RDI,[RSP + 0x40]
CALL 0x0010ac60
INC R13D
JMP 0x001478e8
LAB_001479e7:
MOV RDI,R15
CALL 0x001774a1
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0016823b
JMP 0x00147a1b
LAB_001479fb:
MOV R8,qword ptr [RBX]
LEA RSI,[0x19dce3]
LEA RCX,[0x19ddce]
PUSH 0x3
POP RDI
MOV EDX,0x297
XOR EAX,EAX
CALL 0x00155f59
LAB_00147a1b:
TEST R15,R15
SETNZ AL
ADD RSP,0xe8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00147a33:
MOV RAX,qword ptr [0x001d5f48]
MOV RDI,qword ptr [RAX]
CALL 0x0010a6f0
MOV RAX,qword ptr [0x001d5fa8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x19a21e]
LEA RDX,[0x19dce3]
LEA R8,[0x19dde2]
MOV ECX,0x2a8
XOR EAX,EAX
CALL 0x0010a8b0
LAB_00147a6d:
CALL 0x00167550
LAB_00147a72:
CALL 0x0010a300
|
/* ModelLoader::init_from_gguf_file(std::__cxx11::string const&, std::__cxx11::string const&) */
bool __thiscall ModelLoader::init_from_gguf_file(ModelLoader *this,string *param_1,string *param_2)
{
int4 uVar1;
long lVar2;
long lVar3;
int iVar4;
int4 uVar5;
long lVar6;
long lVar7;
char *pcVar8;
int4 *puVar9;
long lVar10;
long lVar11;
int iVar12;
int8 local_d8 [4];
string local_b8 [32];
allocator local_98 [104];
iVar12 = 0;
log_printf(0,"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/model.cpp",
0x28f,"init from \'%s\'",*(int8 *)param_1);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)this,param_1);
lVar2 = *(long *)(this + 8);
lVar3 = *(long *)this;
lVar6 = gguf_init_from_file(*(int8 *)param_1,1);
if (lVar6 == 0) {
log_printf(3,"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/model.cpp",
0x297,"failed to open \'%s\'",*(int8 *)param_1);
}
else {
iVar4 = gguf_get_n_tensors(lVar6);
lVar7 = gguf_get_data_offset(lVar6);
if (iVar4 < 1) {
iVar4 = 0;
}
for (; iVar4 != iVar12; iVar12 = iVar12 + 1) {
pcVar8 = (char *)gguf_get_tensor_name(lVar6,iVar12);
std::__cxx11::string::string<std::allocator<char>>((string *)local_d8,pcVar8,local_98);
/* try { // try from 0014791d to 00147921 has its CatchHandler @ 00147a77 */
puVar9 = (int4 *)ggml_get_tensor(0,local_d8[0]);
/* try { // try from 00147922 to 00147931 has its CatchHandler @ 00147a79 */
lVar10 = gguf_get_tensor_offset(lVar6);
/* try { // try from 00147932 to 0014794b has its CatchHandler @ 00147a7b */
std::operator+(local_b8,param_2);
uVar1 = *puVar9;
/* try { // try from 00147950 to 00147987 has its CatchHandler @ 00147a80 */
uVar5 = ggml_n_dims(puVar9);
TensorStorage::TensorStorage
((TensorStorage *)local_98,local_b8,uVar1,puVar9 + 4,uVar5,(lVar2 - lVar3 >> 5) + -1
,lVar10 + lVar7);
std::__cxx11::string::~string(local_b8);
/* try { // try from 00147990 to 001479c7 has its CatchHandler @ 00147a8a */
lVar10 = ggml_nbytes(puVar9);
lVar11 = TensorStorage::nbytes((TensorStorage *)local_98);
if (lVar10 != lVar11) {
fflush(*(FILE **)PTR_stdout_001d5f48);
fprintf(*(FILE **)PTR_stderr_001d5fa8,"GGML_ASSERT: %s:%d: %s\n",
"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/model.cpp",
0x2a8,"ggml_nbytes(dummy) == tensor_storage.nbytes()");
/* try { // try from 00147a6d to 00147a71 has its CatchHandler @ 00147a8c */
ggml_print_backtrace();
/* WARNING: Subroutine does not return */
abort();
}
std::vector<TensorStorage,std::allocator<TensorStorage>>::push_back
((vector<TensorStorage,std::allocator<TensorStorage>> *)(this + 0x18),
(TensorStorage *)local_98);
std::__cxx11::string::~string((string *)local_98);
std::__cxx11::string::~string((string *)local_d8);
}
gguf_free(lVar6);
ggml_free(0);
}
return lVar6 != 0;
}
|
|
57,401
|
ModelLoader::init_from_gguf_file(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&)
|
7CodeWizard[P]stablediffusion/model.cpp
|
bool ModelLoader::init_from_gguf_file(const std::string& file_path, const std::string& prefix) {
LOG_DEBUG("init from '%s'", file_path.c_str());
file_paths_.push_back(file_path);
size_t file_index = file_paths_.size() - 1;
gguf_context* ctx_gguf_ = NULL;
ggml_context* ctx_meta_ = NULL;
ctx_gguf_ = gguf_init_from_file(file_path.c_str(), {true, &ctx_meta_});
if (!ctx_gguf_) {
LOG_ERROR("failed to open '%s'", file_path.c_str());
return false;
}
int n_tensors = gguf_get_n_tensors(ctx_gguf_);
size_t total_size = 0;
size_t data_offset = gguf_get_data_offset(ctx_gguf_);
for (int i = 0; i < n_tensors; i++) {
std::string name = gguf_get_tensor_name(ctx_gguf_, i);
struct ggml_tensor* dummy = ggml_get_tensor(ctx_meta_, name.c_str());
size_t offset = data_offset + gguf_get_tensor_offset(ctx_gguf_, i);
// LOG_DEBUG("%s", name.c_str());
TensorStorage tensor_storage(prefix + name, dummy->type, dummy->ne, ggml_n_dims(dummy), file_index, offset);
GGML_ASSERT(ggml_nbytes(dummy) == tensor_storage.nbytes());
tensor_storages.push_back(tensor_storage);
}
gguf_free(ctx_gguf_);
ggml_free(ctx_meta_);
return true;
}
|
O3
|
cpp
|
ModelLoader::init_from_gguf_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rdx, 0x60(%rsp)
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %r8
leaq 0x58a7f(%rip), %rsi # 0xc0de3
leaq 0x58b54(%rip), %rcx # 0xc0ebf
xorl %edi, %edi
movl $0x28f, %edx # imm = 0x28F
xorl %eax, %eax
callq 0x7947e
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5d81e
movq 0x8(%r14), %rax
movq %r14, 0x18(%rsp)
subq (%r14), %rax
movq %rax, %r14
leaq 0x20(%rsp), %rdx
movq $0x0, (%rdx)
movq (%rbx), %rdi
movl $0x1, %esi
callq 0x9bccc
movq %rax, %r15
testq %rax, %rax
je 0x68599
movq %r15, %rdi
callq 0x9cbe9
movl %eax, %ebx
movq %r15, %rdi
callq 0x9c862
movq %rax, 0x58(%rsp)
movl %ebx, 0x14(%rsp)
testl %ebx, %ebx
jle 0x68585
sarq $0x5, %r14
decq %r14
movq %r14, 0x50(%rsp)
addq $0x18, 0x18(%rsp)
xorl %ebx, %ebx
leaq 0x28(%rsp), %r12
leaq 0x70(%rsp), %rbp
movq %r15, 0x48(%rsp)
movq %r15, %rdi
movl %ebx, %esi
callq 0x9cc46
movq %r12, %rdi
movq %rax, %rsi
leaq 0x90(%rsp), %rdx
callq 0x2e2fe
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x8f8d9
movq %rax, %r13
movq %r15, %rdi
movl %ebx, %esi
callq 0x9cc57
movq %rax, %r14
movq %rbp, %rdi
movq 0x60(%rsp), %rsi
movq %r12, %rdx
callq 0x6bce6
movl (%r13), %r12d
movq %r13, %rdi
callq 0x8d052
addq 0x58(%rsp), %r14
movq %r13, %rcx
addq $0x10, %rcx
movq %r14, (%rsp)
leaq 0x90(%rsp), %rdi
movq %rbp, %rsi
movl %r12d, %edx
movl %eax, %r8d
movq 0x50(%rsp), %r9
callq 0x6c8ae
movq %rbx, 0x68(%rsp)
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x684a8
movq 0x80(%rsp), %rsi
incq %rsi
callq 0xa5d0
movq %r13, %rdi
callq 0x8cdf7
movq %rax, %r13
movq 0xb8(%rsp), %r15
movq 0xc0(%rsp), %rbp
movq 0xc8(%rsp), %r14
movq 0xd0(%rsp), %rbx
movl 0xb0(%rsp), %edi
callq 0x8ceea
movq %rax, %r12
movl 0xb0(%rsp), %edi
callq 0x8ced8
imulq %r15, %rbp
imulq %rbx, %r14
imulq %rbp, %r14
imulq %r12, %r14
movslq %eax, %rcx
movq %r14, %rax
xorl %edx, %edx
divq %rcx
cmpq %rax, %r13
jne 0x685d3
movq 0x18(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x6c630
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x68549
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0xa5d0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
movq 0x48(%rsp), %r15
movq 0x68(%rsp), %rbx
leaq 0x28(%rsp), %r12
leaq 0x70(%rsp), %rbp
je 0x68579
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5d0
incl %ebx
cmpl %ebx, 0x14(%rsp)
jne 0x683fe
movq %r15, %rdi
callq 0x9c627
movq 0x20(%rsp), %rdi
callq 0x8d4cf
jmp 0x685bb
movq (%rbx), %r8
leaq 0x58840(%rip), %rsi # 0xc0de3
leaq 0x58924(%rip), %rcx # 0xc0ece
movl $0x3, %edi
movl $0x297, %edx # imm = 0x297
xorl %eax, %eax
callq 0x7947e
testq %r15, %r15
setne %al
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8c97e(%rip), %rax # 0xf4f58
movq (%rax), %rdi
callq 0xa6d0
movq 0x8c9cf(%rip), %rax # 0xf4fb8
movq (%rax), %rdi
leaq 0x54d0b(%rip), %rsi # 0xbd2fe
leaq 0x587e9(%rip), %rdx # 0xc0de3
leaq 0x588e1(%rip), %r8 # 0xc0ee2
movl $0x2a8, %ecx # imm = 0x2A8
xorl %eax, %eax
callq 0xa8a0
callq 0x8c8ec
callq 0xa300
jmp 0x6861b
jmp 0x6861b
movq %rax, %rbx
jmp 0x68669
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x68669
movq 0x80(%rsp), %rsi
jmp 0x68661
jmp 0x68641
movq %rax, %rbx
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x68669
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0xa5d0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x68685
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5d0
movq %rbx, %rdi
callq 0xaad0
nop
|
_ZN11ModelLoader19init_from_gguf_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0F8h
mov [rsp+128h+var_C8], rdx
mov rbx, rsi
mov r14, rdi
mov r8, [rsi]
lea rsi, aWorkspaceLlm4b_7; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aInitFromS; "init from '%s'"
xor edi, edi
mov edx, 28Fh
xor eax, eax
call _Z10log_printf14sd_log_level_tPKciS1_z; log_printf(sd_log_level_t,char const*,int,char const*,...)
mov rdi, r14
mov rsi, rbx
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_; std::vector<std::string>::push_back(std::string const&)
mov rax, [r14+8]
mov [rsp+128h+var_110], r14
sub rax, [r14]
mov r14, rax
lea rdx, [rsp+128h+var_108]
mov qword ptr [rdx], 0
mov rdi, [rbx]
mov esi, 1
call gguf_init_from_file
mov r15, rax
test rax, rax
jz loc_68599
mov rdi, r15
call gguf_get_n_tensors
mov ebx, eax
mov rdi, r15
call gguf_get_data_offset
mov [rsp+128h+var_D0], rax
mov [rsp+128h+var_114], ebx
test ebx, ebx
jle loc_68585
sar r14, 5
dec r14
mov [rsp+128h+var_D8], r14
add [rsp+128h+var_110], 18h
xor ebx, ebx
lea r12, [rsp+128h+var_100]
lea rbp, [rsp+128h+var_B8]
mov [rsp+128h+var_E0], r15
loc_683FE:
mov rdi, r15
mov esi, ebx
call gguf_get_tensor_name
mov rdi, r12
mov rsi, rax
lea rdx, [rsp+128h+var_98]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, [rsp+128h+var_108]
mov rsi, [rsp+128h+var_100]
call ggml_get_tensor
mov r13, rax
mov rdi, r15
mov esi, ebx
call gguf_get_tensor_offset
mov r14, rax
mov rdi, rbp
mov rsi, [rsp+128h+var_C8]
mov rdx, r12
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_; std::operator+<char>(std::string const&,std::string const&)
mov r12d, [r13+0]
mov rdi, r13
call ggml_n_dims
add r14, [rsp+128h+var_D0]
mov rcx, r13
add rcx, 10h
mov [rsp+128h+var_128], r14
lea rdi, [rsp+128h+var_98]
mov rsi, rbp
mov edx, r12d
mov r8d, eax
mov r9, [rsp+128h+var_D8]
call _ZN13TensorStorageC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9ggml_typePlimm; TensorStorage::TensorStorage(std::string const&,ggml_type,long *,int,ulong,ulong)
mov [rsp+128h+var_C0], rbx
mov rdi, [rsp+128h+var_B8]; void *
lea rax, [rsp+128h+var_A8]
cmp rdi, rax
jz short loc_684A8
mov rsi, [rsp+128h+var_A8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_684A8:
mov rdi, r13
call ggml_nbytes
mov r13, rax
mov r15, [rsp+128h+var_70]
mov rbp, [rsp+128h+var_68]
mov r14, [rsp+128h+var_60]
mov rbx, [rsp+128h+var_58]
mov edi, [rsp+128h+var_78]
call ggml_type_size
mov r12, rax
mov edi, [rsp+128h+var_78]
call ggml_blck_size
imul rbp, r15
imul r14, rbx
imul r14, rbp
imul r14, r12
movsxd rcx, eax
mov rax, r14
xor edx, edx
div rcx
cmp r13, rax
jnz loc_685D3
mov rdi, [rsp+128h+var_110]
lea rsi, [rsp+128h+var_98]
call _ZNSt6vectorI13TensorStorageSaIS0_EE9push_backERKS0_; std::vector<TensorStorage>::push_back(TensorStorage const&)
mov rdi, [rsp+128h+var_98]; void *
lea rax, [rsp+128h+var_88]
cmp rdi, rax
jz short loc_68549
mov rsi, [rsp+128h+var_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_68549:
mov rdi, [rsp+128h+var_100]; void *
lea rax, [rsp+128h+var_F0]
cmp rdi, rax
mov r15, [rsp+128h+var_E0]
mov rbx, [rsp+128h+var_C0]
lea r12, [rsp+128h+var_100]
lea rbp, [rsp+128h+var_B8]
jz short loc_68579
mov rsi, [rsp+128h+var_F0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_68579:
inc ebx
cmp [rsp+128h+var_114], ebx
jnz loc_683FE
loc_68585:
mov rdi, r15
call gguf_free
mov rdi, [rsp+128h+var_108]
call ggml_free
jmp short loc_685BB
loc_68599:
mov r8, [rbx]
lea rsi, aWorkspaceLlm4b_7; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aFailedToOpenS; "failed to open '%s'"
mov edi, 3
mov edx, 297h
xor eax, eax
call _Z10log_printf14sd_log_level_tPKciS1_z; log_printf(sd_log_level_t,char const*,int,char const*,...)
loc_685BB:
test r15, r15
setnz al
add rsp, 0F8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_685D3:
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aGgmlAssertSDS; "GGML_ASSERT: %s:%d: %s\n"
lea rdx, aWorkspaceLlm4b_7; "/workspace/llm4binary/github/2025_star3"...
lea r8, aGgmlNbytesDumm; "ggml_nbytes(dummy) == tensor_storage.nb"...
mov ecx, 2A8h
xor eax, eax
call _fprintf
call ggml_print_backtrace
call _abort
jmp short loc_6861B
jmp short $+2
loc_6861B:
mov rbx, rax
jmp short loc_68669
mov rbx, rax
mov rdi, [rsp+128h+var_B8]
lea rax, [rsp+128h+var_A8]
cmp rdi, rax
jz short loc_68669
mov rsi, [rsp+128h+var_A8]
jmp short loc_68661
jmp short $+2
loc_68641:
mov rbx, rax
mov rdi, [rsp+128h+var_98]; void *
lea rax, [rsp+128h+var_88]
cmp rdi, rax
jz short loc_68669
mov rsi, [rsp+128h+var_88]
loc_68661:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_68669:
mov rdi, [rsp+128h+var_100]; void *
lea rax, [rsp+128h+var_F0]
cmp rdi, rax
jz short loc_68685
mov rsi, [rsp+128h+var_F0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_68685:
mov rdi, rbx
call __Unwind_Resume
|
bool ModelLoader::init_from_gguf_file(
_QWORD *a1,
_QWORD *a2,
long long a3,
double a4,
long long a5,
long long a6,
int a7)
{
long long v7; // r14
long long v8; // rax
int v9; // r9d
long long v10; // r15
int n_tensors; // ebx
long long v12; // rbx
long long tensor_name; // rax
int *tensor; // r13
long long tensor_offset; // r14
int v16; // r12d
int v17; // eax
long long v18; // r13
long long v19; // r15
long long v20; // rbp
long long v21; // r14
long long v22; // rbx
long long v23; // r12
int v24; // ebx
long long v26; // rdi
int v27; // [rsp+14h] [rbp-114h]
long long v28; // [rsp+20h] [rbp-108h] BYREF
void *v29[2]; // [rsp+28h] [rbp-100h] BYREF
long long v30; // [rsp+38h] [rbp-F0h] BYREF
long long v31; // [rsp+48h] [rbp-E0h]
long long v32; // [rsp+50h] [rbp-D8h]
long long data_offset; // [rsp+58h] [rbp-D0h]
long long v34; // [rsp+60h] [rbp-C8h]
long long v35; // [rsp+68h] [rbp-C0h]
void *v36[2]; // [rsp+70h] [rbp-B8h] BYREF
long long v37; // [rsp+80h] [rbp-A8h] BYREF
void *v38[2]; // [rsp+90h] [rbp-98h] BYREF
long long v39; // [rsp+A0h] [rbp-88h] BYREF
unsigned int v40; // [rsp+B0h] [rbp-78h]
long long v41; // [rsp+B8h] [rbp-70h]
long long v42; // [rsp+C0h] [rbp-68h]
long long v43; // [rsp+C8h] [rbp-60h]
long long v44; // [rsp+D0h] [rbp-58h]
v34 = a3;
log_printf(
0,
(unsigned int)"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/model.cpp",
655,
(unsigned int)"init from '%s'",
*a2,
a7);
std::vector<std::string>::push_back((long long)a1, (long long)a2);
v7 = a1[1] - *a1;
v28 = 0LL;
v8 = gguf_init_from_file(*a2, 1LL, &v28);
v10 = v8;
if ( v8 )
{
n_tensors = gguf_get_n_tensors(v8);
data_offset = gguf_get_data_offset(v10);
v27 = n_tensors;
if ( n_tensors > 0 )
{
v32 = (v7 >> 5) - 1;
v12 = 0LL;
v31 = v10;
do
{
tensor_name = gguf_get_tensor_name(v10, (unsigned int)v12);
std::string::basic_string<std::allocator<char>>(v29, tensor_name);
tensor = (int *)ggml_get_tensor(v28, v29[0]);
tensor_offset = gguf_get_tensor_offset(v10, (unsigned int)v12);
std::operator+<char>(v36, v34, v29);
v16 = *tensor;
v17 = ggml_n_dims(tensor);
TensorStorage::TensorStorage(
(unsigned int)v38,
(unsigned int)v36,
v16,
(_DWORD)tensor + 16,
v17,
v32,
data_offset + tensor_offset);
v35 = v12;
if ( v36[0] != &v37 )
operator delete(v36[0], v37 + 1);
v18 = ggml_nbytes(tensor);
v19 = v41;
v20 = v42;
v21 = v43;
v22 = v44;
v23 = ggml_type_size(v40);
if ( v18 != v23 * v19 * v20 * v22 * v21 / (unsigned long long)(int)ggml_blck_size(v40) )
{
fflush(stdout);
v26 = stderr;
fprintf(
stderr,
"GGML_ASSERT: %s:%d: %s\n",
"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/model.cpp",
680,
"ggml_nbytes(dummy) == tensor_storage.nbytes()");
ggml_print_backtrace(v26);
abort(v26);
}
std::vector<TensorStorage>::push_back(a1 + 3, v38);
if ( v38[0] != &v39 )
operator delete(v38[0], v39 + 1);
v10 = v31;
v24 = v35;
if ( v29[0] != &v30 )
operator delete(v29[0], v30 + 1);
v12 = (unsigned int)(v24 + 1);
}
while ( v27 != (_DWORD)v12 );
}
gguf_free(v10);
ggml_free(v28, a4);
}
else
{
log_printf(
3,
(unsigned int)"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/model.cpp",
663,
(unsigned int)"failed to open '%s'",
*a2,
v9);
}
return v10 != 0;
}
| |||
57,402
|
ma_apply_redo_free_blocks
|
eloqsql/storage/maria/ma_blockrec.c
|
uint _ma_apply_redo_free_blocks(MARIA_HA *info,
LSN lsn __attribute__((unused)),
LSN redo_lsn,
const uchar *header)
{
MARIA_SHARE *share= info->s;
uint ranges;
uint16 sid;
DBUG_ENTER("_ma_apply_redo_free_blocks");
share->state.changed|= (STATE_CHANGED | STATE_NOT_ZEROFILLED |
STATE_NOT_MOVABLE);
sid= fileid_korr(header);
header+= FILEID_STORE_SIZE;
ranges= pagerange_korr(header);
header+= PAGERANGE_STORE_SIZE;
DBUG_ASSERT(ranges > 0);
/** @todo leave bitmap lock to the bitmap code... */
mysql_mutex_lock(&share->bitmap.bitmap_lock);
while (ranges--)
{
my_bool res;
uint page_range;
pgcache_page_no_t page, start_page;
start_page= page= page_korr(header);
header+= PAGE_STORE_SIZE;
/* Page range may have this bit set to indicate a tail page */
page_range= pagerange_korr(header) & ~(TAIL_BIT | START_EXTENT_BIT);
DBUG_ASSERT(page_range > 0);
header+= PAGERANGE_STORE_SIZE;
DBUG_PRINT("info", ("page: %lu pages: %u", (long) page, page_range));
for ( ; page_range-- ; start_page++)
{
if (_ma_redo_not_needed_for_page(sid, redo_lsn, start_page, FALSE))
continue;
res= _ma_bitmap_reset_full_page_bits(info, &share->bitmap, start_page,
1);
if (res)
{
mysql_mutex_unlock(&share->bitmap.bitmap_lock);
_ma_mark_file_crashed(share);
DBUG_ASSERT(!maria_assert_if_crashed_table);
DBUG_RETURN(res);
}
}
}
mysql_mutex_unlock(&share->bitmap.bitmap_lock);
DBUG_RETURN(0);
}
|
O3
|
c
|
ma_apply_redo_free_blocks:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, -0x58(%rbp)
movq (%rdi), %rax
orl $0x181, 0x170(%rax) # imm = 0x181
movzwl (%rcx), %ebx
movzwl 0x2(%rcx), %r13d
leaq 0xa98(%rax), %rdi
cmpq $0x0, 0xad8(%rax)
movq %rdi, -0x40(%rbp)
movq %rax, -0x30(%rbp)
jne 0x5fc67
callq 0x29220
testl %r13d, %r13d
je 0x5fc15
addq $0x4, %r15
movq -0x30(%rbp), %rax
addq $0xa10, %rax # imm = 0xA10
movq %rax, -0x50(%rbp)
movzwl %bx, %r14d
movl %r13d, -0x34(%rbp)
movq %r15, -0x48(%rbp)
movzwl 0x5(%r15), %r15d
andl $0x3fff, %r15d # imm = 0x3FFF
je 0x5fc01
movq -0x48(%rbp), %rcx
movzbl 0x4(%rcx), %eax
shlq $0x20, %rax
movl (%rcx), %r13d
orq %rax, %r13
movl %r14d, %edi
movq %r12, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
callq 0x507a3
testb %al, %al
jne 0x5fbf6
movq -0x58(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq %r13, %rdx
movl $0x1, %ecx
callq 0x41476
testb %al, %al
jne 0x5fc32
decl %r15d
incq %r13
testl %r15d, %r15d
jne 0x5fbc9
movl -0x34(%rbp), %r13d
decl %r13d
movq -0x48(%rbp), %r15
addq $0x7, %r15
testl %r13d, %r13d
jne 0x5fba1
movq -0x30(%rbp), %rax
movq 0xad8(%rax), %rdi
testq %rdi, %rdi
jne 0x5fc8f
movq -0x40(%rbp), %rdi
callq 0x291e0
xorl %eax, %eax
jmp 0x5fc58
movl %eax, %ebx
movq -0x30(%rbp), %r14
movq 0xad8(%r14), %rdi
testq %rdi, %rdi
jne 0x5fc7d
movq -0x40(%rbp), %rdi
callq 0x291e0
movq %r14, %rdi
callq 0x38222
movsbl %bl, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7af5d(%rip), %rsi # 0xdabcb
movl $0x1a2a, %edx # imm = 0x1A2A
callq 0x2eb8f
jmp 0x5fb82
leaq 0x32638c(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x5fc44
leaq 0x32637a(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x5fc25
|
_ma_apply_redo_free_blocks:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r15, rcx
mov r12, rdx
mov [rbp+var_58], rdi
mov rax, [rdi]
or dword ptr [rax+170h], 181h
movzx ebx, word ptr [rcx]
movzx r13d, word ptr [rcx+2]
lea rdi, [rax+0A98h]
cmp qword ptr [rax+0AD8h], 0
mov [rbp+var_40], rdi
mov [rbp+var_30], rax
jnz loc_5FC67
call _pthread_mutex_lock
loc_5FB82:
test r13d, r13d
jz loc_5FC15
add r15, 4
mov rax, [rbp+var_30]
add rax, 0A10h
mov [rbp+var_50], rax
movzx r14d, bx
loc_5FBA1:
mov [rbp+var_34], r13d
mov [rbp+var_48], r15
movzx r15d, word ptr [r15+5]
and r15d, 3FFFh
jz short loc_5FC01
mov rcx, [rbp+var_48]
movzx eax, byte ptr [rcx+4]
shl rax, 20h
mov r13d, [rcx]
or r13, rax
loc_5FBC9:
mov edi, r14d
mov rsi, r12
mov rdx, r13
xor ecx, ecx
call _ma_redo_not_needed_for_page
test al, al
jnz short loc_5FBF6
mov rdi, [rbp+var_58]
mov rsi, [rbp+var_50]
mov rdx, r13
mov ecx, 1
call _ma_bitmap_reset_full_page_bits
test al, al
jnz short loc_5FC32
loc_5FBF6:
dec r15d
inc r13
test r15d, r15d
jnz short loc_5FBC9
loc_5FC01:
mov r13d, [rbp+var_34]
dec r13d
mov r15, [rbp+var_48]
add r15, 7
test r13d, r13d
jnz short loc_5FBA1
loc_5FC15:
mov rax, [rbp+var_30]
mov rdi, [rax+0AD8h]
test rdi, rdi
jnz short loc_5FC8F
loc_5FC25:
mov rdi, [rbp+var_40]
call _pthread_mutex_unlock
xor eax, eax
jmp short loc_5FC58
loc_5FC32:
mov ebx, eax
mov r14, [rbp+var_30]
mov rdi, [r14+0AD8h]
test rdi, rdi
jnz short loc_5FC7D
loc_5FC44:
mov rdi, [rbp+var_40]
call _pthread_mutex_unlock
mov rdi, r14
call _ma_mark_file_crashed
movsx eax, bl
loc_5FC58:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_5FC67:
lea rsi, aWorkspaceLlm4b_10; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 1A2Ah
call psi_mutex_lock
jmp loc_5FB82
loc_5FC7D:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_5FC44
loc_5FC8F:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_5FC25
|
long long ma_apply_redo_free_blocks(
long long *a1,
__m128 a2,
__m128 a3,
__m128 a4,
__m128 a5,
double a6,
double a7,
__m128 a8,
__m128 a9,
long long a10,
long long a11,
unsigned __int16 *a12)
{
long long v14; // rax
unsigned __int16 v15; // bx
int v16; // r13d
long long v17; // rdi
double v18; // xmm4_8
double v19; // xmm5_8
unsigned __int16 *v20; // r15
int v21; // r15d
unsigned long long v22; // r13
char v23; // al
char v25; // bl
unsigned __int16 *v27; // [rsp+18h] [rbp-48h]
long long v28; // [rsp+20h] [rbp-40h]
int v29; // [rsp+2Ch] [rbp-34h]
long long v30; // [rsp+30h] [rbp-30h]
v14 = *a1;
*(_DWORD *)(v14 + 368) |= 0x181u;
v15 = *a12;
v16 = a12[1];
v17 = v14 + 2712;
v28 = v14 + 2712;
v30 = v14;
if ( *(_QWORD *)(v14 + 2776) )
psi_mutex_lock(v17, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_blockrec.c", 0x1A2Au);
else
pthread_mutex_lock(v17);
if ( v16 )
{
v20 = a12 + 2;
while ( 1 )
{
v29 = v16;
v27 = v20;
v21 = *(unsigned __int16 *)((char *)v20 + 5) & 0x3FFF;
if ( v21 )
break;
LABEL_10:
v16 = v29 - 1;
v20 = (unsigned __int16 *)((char *)v27 + 7);
if ( v29 == 1 )
goto LABEL_11;
}
v22 = ((unsigned long long)*((unsigned __int8 *)v27 + 4) << 32) | *(unsigned int *)v27;
while ( 1 )
{
if ( !ma_redo_not_needed_for_page(v15, a11, v22, 0, a2, a3, a4, a5, v18, v19, a8, a9) )
{
v23 = ma_bitmap_reset_full_page_bits(a1, v30 + 2576, v22, 1LL);
if ( v23 )
break;
}
--v21;
++v22;
if ( !v21 )
goto LABEL_10;
}
v25 = v23;
if ( *(_QWORD *)(v30 + 2776) )
PSI_server[44]();
pthread_mutex_unlock(v28);
ma_mark_file_crashed(v30);
return (unsigned int)v25;
}
else
{
LABEL_11:
if ( *(_QWORD *)(v30 + 2776) )
PSI_server[44]();
pthread_mutex_unlock(v28);
return 0LL;
}
}
|
_ma_apply_redo_free_blocks:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R15,RCX
MOV R12,RDX
MOV qword ptr [RBP + -0x58],RDI
MOV RAX,qword ptr [RDI]
OR dword ptr [RAX + 0x170],0x181
MOVZX EBX,word ptr [RCX]
MOVZX R13D,word ptr [RCX + 0x2]
LEA RDI,[RAX + 0xa98]
CMP qword ptr [RAX + 0xad8],0x0
MOV qword ptr [RBP + -0x40],RDI
MOV qword ptr [RBP + -0x30],RAX
JNZ 0x0015fc67
CALL 0x00129220
LAB_0015fb82:
TEST R13D,R13D
JZ 0x0015fc15
ADD R15,0x4
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0xa10
MOV qword ptr [RBP + -0x50],RAX
MOVZX R14D,BX
LAB_0015fba1:
MOV dword ptr [RBP + -0x34],R13D
MOV qword ptr [RBP + -0x48],R15
MOVZX R15D,word ptr [R15 + 0x5]
AND R15D,0x3fff
JZ 0x0015fc01
MOV RCX,qword ptr [RBP + -0x48]
MOVZX EAX,byte ptr [RCX + 0x4]
SHL RAX,0x20
MOV R13D,dword ptr [RCX]
OR R13,RAX
LAB_0015fbc9:
MOV EDI,R14D
MOV RSI,R12
MOV RDX,R13
XOR ECX,ECX
CALL 0x001507a3
TEST AL,AL
JNZ 0x0015fbf6
MOV RDI,qword ptr [RBP + -0x58]
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,R13
MOV ECX,0x1
CALL 0x00141476
TEST AL,AL
JNZ 0x0015fc32
LAB_0015fbf6:
DEC R15D
INC R13
TEST R15D,R15D
JNZ 0x0015fbc9
LAB_0015fc01:
MOV R13D,dword ptr [RBP + -0x34]
DEC R13D
MOV R15,qword ptr [RBP + -0x48]
ADD R15,0x7
TEST R13D,R13D
JNZ 0x0015fba1
LAB_0015fc15:
MOV RAX,qword ptr [RBP + -0x30]
MOV RDI,qword ptr [RAX + 0xad8]
TEST RDI,RDI
JNZ 0x0015fc8f
LAB_0015fc25:
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x001291e0
XOR EAX,EAX
JMP 0x0015fc58
LAB_0015fc32:
MOV EBX,EAX
MOV R14,qword ptr [RBP + -0x30]
MOV RDI,qword ptr [R14 + 0xad8]
TEST RDI,RDI
JNZ 0x0015fc7d
LAB_0015fc44:
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x001291e0
MOV RDI,R14
CALL 0x00138222
MOVSX EAX,BL
LAB_0015fc58:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0015fc67:
LEA RSI,[0x1dabcb]
MOV EDX,0x1a2a
CALL 0x0012eb8f
JMP 0x0015fb82
LAB_0015fc7d:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0015fc44
LAB_0015fc8f:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0015fc25
|
int _ma_apply_redo_free_blocks
(long *param_1,int8 param_2,int8 param_3,int2 *param_4)
{
pthread_mutex_t *__mutex;
int2 uVar1;
ushort uVar2;
long lVar3;
char cVar4;
uint uVar5;
ulong uVar6;
uint uVar7;
uint5 *puVar8;
lVar3 = *param_1;
*(uint *)(lVar3 + 0x170) = *(uint *)(lVar3 + 0x170) | 0x181;
uVar1 = *param_4;
uVar2 = param_4[1];
uVar5 = (uint)uVar2;
__mutex = (pthread_mutex_t *)(lVar3 + 0xa98);
if (*(long *)(lVar3 + 0xad8) == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_blockrec.c",
0x1a2a);
}
if (uVar2 != 0) {
puVar8 = (uint5 *)(param_4 + 2);
do {
uVar7 = *(ushort *)((long)puVar8 + 5) & 0x3fff;
if ((*(ushort *)((long)puVar8 + 5) & 0x3fff) != 0) {
uVar6 = (ulong)*puVar8;
do {
cVar4 = _ma_redo_not_needed_for_page(uVar1,param_3,uVar6,0);
if ((cVar4 == '\0') &&
(cVar4 = _ma_bitmap_reset_full_page_bits(param_1,lVar3 + 0xa10,uVar6), cVar4 != '\0'))
{
if (*(long *)(lVar3 + 0xad8) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
_ma_mark_file_crashed(lVar3);
return (int)cVar4;
}
uVar7 = uVar7 - 1;
uVar6 = uVar6 + 1;
} while (uVar7 != 0);
}
uVar5 = uVar5 - 1;
puVar8 = (uint5 *)((long)puVar8 + 7);
} while (uVar5 != 0);
}
if (*(long *)(lVar3 + 0xad8) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
return 0;
}
|
|
57,403
|
Sj_materialization_picker::set_from_prev(POSITION*)
|
eloqsql/sql/opt_subselect.cc
|
void Sj_materialization_picker::set_from_prev(POSITION *prev)
{
if (prev->sjmat_picker.is_used)
set_empty();
else
{
sjm_scan_need_tables= prev->sjmat_picker.sjm_scan_need_tables;
sjm_scan_last_inner= prev->sjmat_picker.sjm_scan_last_inner;
}
is_used= FALSE;
}
|
O0
|
cpp
|
Sj_materialization_picker::set_from_prev(POSITION*):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
testb $0x1, 0xd8(%rax)
je 0xab2120
movq -0x18(%rbp), %rdi
movq (%rdi), %rax
callq *(%rax)
jmp 0xab2140
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0xe0(%rcx), %rcx
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rcx
movl 0xdc(%rcx), %ecx
movl %ecx, 0xc(%rax)
movq -0x18(%rbp), %rax
movb $0x0, 0x8(%rax)
addq $0x20, %rsp
popq %rbp
retq
nop
|
_ZN25Sj_materialization_picker13set_from_prevEP8POSITION:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
mov rax, [rbp+var_10]
test byte ptr [rax+0D8h], 1
jz short loc_AB2120
mov rdi, [rbp+var_18]
mov rax, [rdi]
call qword ptr [rax]
jmp short loc_AB2140
loc_AB2120:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
mov rcx, [rcx+0E0h]
mov [rax+10h], rcx
mov rcx, [rbp+var_10]
mov ecx, [rcx+0DCh]
mov [rax+0Ch], ecx
loc_AB2140:
mov rax, [rbp+var_18]
mov byte ptr [rax+8], 0
add rsp, 20h
pop rbp
retn
|
Sj_materialization_picker * Sj_materialization_picker::set_from_prev(
Sj_materialization_picker *this,
POSITION *a2)
{
Sj_materialization_picker *result; // rax
if ( (*((_BYTE *)a2 + 216) & 1) != 0 )
{
(**(void ( ***)(Sj_materialization_picker *))this)(this);
}
else
{
*((_QWORD *)this + 2) = *((_QWORD *)a2 + 28);
*((_DWORD *)this + 3) = *((_DWORD *)a2 + 55);
}
result = this;
*((_BYTE *)this + 8) = 0;
return result;
}
|
start_stats_load:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x00b022e0
AND AL,0x1
ADD RSP,0x10
POP RBP
RET
|
/* TABLE_STATISTICS_CB::start_stats_load(THD*) */
byte __thiscall TABLE_STATISTICS_CB::start_stats_load(TABLE_STATISTICS_CB *this,THD *param_1)
{
byte bVar1;
bVar1 = Statistics_state::start_load((Statistics_state *)this,param_1);
return bVar1 & 1;
}
|
|
57,404
|
ma_read
|
eloqsql/libmariadb/libmariadb/ma_io.c
|
size_t ma_read(void *ptr, size_t size, size_t nmemb, MA_FILE *file)
{
size_t s= 0;
if (!file)
return -1;
switch (file->type) {
case MA_FILE_LOCAL:
s= fread(ptr, size, nmemb, (FILE *)file->ptr);
return s;
break;
#ifdef HAVE_REMOTEIO
case MA_FILE_REMOTE:
return rio_plugin->methods->mread(ptr, size, nmemb, file);
break;
#endif
default:
return -1;
}
}
|
O3
|
c
|
ma_read:
pushq %rbp
movq %rsp, %rbp
testq %rcx, %rcx
je 0x2a1f9
movl (%rcx), %eax
cmpl $0x2, %eax
je 0x2a202
cmpl $0x1, %eax
jne 0x2a1f9
movq 0x8(%rcx), %rcx
popq %rbp
jmp 0x136c0
movq $-0x1, %rax
popq %rbp
retq
leaq 0x257f7(%rip), %rax # 0x4fa00
movq (%rax), %rax
movq 0x58(%rax), %rax
movq 0x18(%rax), %rax
popq %rbp
jmpq *%rax
|
ma_read:
push rbp
mov rbp, rsp
test rcx, rcx
jz short loc_2A1F9
mov eax, [rcx]
cmp eax, 2
jz short loc_2A202
cmp eax, 1
jnz short loc_2A1F9
mov rcx, [rcx+8]
pop rbp
jmp _fread
loc_2A1F9:
mov rax, 0FFFFFFFFFFFFFFFFh
pop rbp
retn
loc_2A202:
lea rax, rio_plugin
mov rax, [rax]
mov rax, [rax+58h]
mov rax, [rax+18h]
pop rbp
jmp rax
|
long long ma_read(long long a1, long long a2, long long a3, long long a4)
{
if ( !a4 )
return -1LL;
if ( *(_DWORD *)a4 != 2 )
{
if ( *(_DWORD *)a4 == 1 )
return fread(a1, a2, a3, *(_QWORD *)(a4 + 8));
return -1LL;
}
return (*(long long (**)(void))(*(_QWORD *)(rio_plugin + 88LL) + 24LL))();
}
|
ma_read:
PUSH RBP
MOV RBP,RSP
TEST RCX,RCX
JZ 0x0012a1f9
MOV EAX,dword ptr [RCX]
CMP EAX,0x2
JZ 0x0012a202
CMP EAX,0x1
JNZ 0x0012a1f9
MOV RCX,qword ptr [RCX + 0x8]
POP RBP
JMP 0x001136c0
LAB_0012a1f9:
MOV RAX,-0x1
POP RBP
RET
LAB_0012a202:
LEA RAX,[0x14fa00]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x58]
MOV RAX,qword ptr [RAX + 0x18]
POP RBP
JMP RAX
|
size_t ma_read(void *param_1,size_t param_2,size_t param_3,int *param_4)
{
size_t sVar1;
if (param_4 != (int *)0x0) {
if (*param_4 == 2) {
/* WARNING: Could not recover jumptable at 0x0012a215. Too many branches */
/* WARNING: Treating indirect jump as call */
sVar1 = (**(code **)(*(long *)(rio_plugin + 0x58) + 0x18))();
return sVar1;
}
if (*param_4 == 1) {
sVar1 = fread(param_1,param_2,param_3,*(FILE **)(param_4 + 2));
return sVar1;
}
}
return 0xffffffffffffffff;
}
|
|
57,405
|
my_charlen_utf8mb3
|
eloqsql/strings/ctype-utf8.c
|
static
int my_charlen_utf8mb3(CHARSET_INFO *cs __attribute__((unused)),
const uchar *s, const uchar *e)
{
uchar c;
if (s >= e)
return MY_CS_TOOSMALL;
c= s[0];
if (c < 0xf0)
return my_valid_mbcharlen_utf8mb3(s, e);
return MY_CS_ILSEQ;
}
|
O0
|
c
|
my_charlen_utf8mb3:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jb 0x67e87
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x67eb4
movq -0x18(%rbp), %rax
movb (%rax), %al
movb %al, -0x21(%rbp)
movzbl -0x21(%rbp), %eax
cmpl $0xf0, %eax
jge 0x67ead
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x68d20
movl %eax, -0x4(%rbp)
jmp 0x67eb4
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
|
my_charlen_utf8mb3:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jb short loc_67E87
mov [rbp+var_4], 0FFFFFF9Bh
jmp short loc_67EB4
loc_67E87:
mov rax, [rbp+var_18]
mov al, [rax]
mov [rbp+var_21], al
movzx eax, [rbp+var_21]
cmp eax, 0F0h
jge short loc_67EAD
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_20]
call my_valid_mbcharlen_utf8mb3
mov [rbp+var_4], eax
jmp short loc_67EB4
loc_67EAD:
mov [rbp+var_4], 0
loc_67EB4:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
long long my_charlen_utf8mb3(long long a1, unsigned __int8 *a2, unsigned long long a3)
{
if ( (unsigned long long)a2 < a3 )
{
if ( *a2 >= 0xF0u )
return 0;
else
return (unsigned int)my_valid_mbcharlen_utf8mb3(a2, a3);
}
else
{
return (unsigned int)-101;
}
}
|
my_charlen_utf8mb3:
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 RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JC 0x00167e87
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x00167eb4
LAB_00167e87:
MOV RAX,qword ptr [RBP + -0x18]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x21],AL
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xf0
JGE 0x00167ead
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x00168d20
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00167eb4
LAB_00167ead:
MOV dword ptr [RBP + -0x4],0x0
LAB_00167eb4:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 my_charlen_utf8mb3(int8 param_1,byte *param_2,byte *param_3)
{
int4 local_c;
if (param_2 < param_3) {
if (*param_2 < 0xf0) {
local_c = my_valid_mbcharlen_utf8mb3(param_2,param_3);
}
else {
local_c = 0;
}
}
else {
local_c = 0xffffff9b;
}
return local_c;
}
|
|
57,406
|
init_default_directories
|
eloqsql/mysys/my_default.c
|
static const char **init_default_directories(MEM_ROOT *alloc)
{
const char **dirs;
char *env;
int errors= 0;
DBUG_ENTER("init_default_directories");
dirs= (const char **)alloc_root(alloc, DEFAULT_DIRS_SIZE * sizeof(char *));
if (dirs == NULL)
DBUG_RETURN(NULL);
bzero((char *) dirs, DEFAULT_DIRS_SIZE * sizeof(char *));
#ifdef _WIN32
{
char fname_buffer[FN_REFLEN];
if (GetSystemWindowsDirectory(fname_buffer, sizeof(fname_buffer)))
errors += add_directory(alloc, fname_buffer, dirs);
if (GetWindowsDirectory(fname_buffer, sizeof(fname_buffer)))
errors += add_directory(alloc, fname_buffer, dirs);
errors += add_directory(alloc, "C:/", dirs);
if (my_get_module_parent(fname_buffer, sizeof(fname_buffer)) != NULL)
{
errors += add_directory(alloc, fname_buffer, dirs);
strcat_s(fname_buffer, sizeof(fname_buffer), "/data");
errors += add_directory(alloc, fname_buffer, dirs);
}
}
#else
#if defined(DEFAULT_SYSCONFDIR)
if (DEFAULT_SYSCONFDIR[0])
errors += add_directory(alloc, DEFAULT_SYSCONFDIR, dirs);
#else
errors += add_directory(alloc, "/etc/", dirs);
errors += add_directory(alloc, "/etc/mysql/", dirs);
#endif /* DEFAULT_SYSCONFDIR */
#endif
/*
If value of $MARIADB_HOME environment variable name is NULL, check
for $MYSQL_HOME
*/
if ((env= getenv("MARIADB_HOME")))
errors += add_directory(alloc, env, dirs);
else
{
if ((env= getenv("MYSQL_HOME")))
errors += add_directory(alloc, env, dirs);
}
/* Placeholder for --defaults-extra-file=<path> */
errors += add_directory(alloc, "", dirs);
#if !defined(_WIN32)
errors += add_directory(alloc, "~/", dirs);
#endif
DBUG_RETURN(errors > 0 ? NULL : dirs);
}
|
O0
|
c
|
init_default_directories:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x10(%rbp), %rdi
movl $0x40, %esi
callq 0x3b410
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x35dcb
jmp 0x35dbe
movq $0x0, -0x8(%rbp)
jmp 0x35ebf
movq -0x18(%rbp), %rdi
xorl %esi, %esi
movl $0x40, %edx
callq 0x251d0
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq 0x4e31c(%rip), %rsi # 0x84106
callq 0x37ad0
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq 0x4e308(%rip), %rsi # 0x8410c
callq 0x37ad0
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x4e302(%rip), %rdi # 0x84118
callq 0x25430
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0x35e3e
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x37ad0
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x35e6d
leaq 0x4e2e0(%rip), %rdi # 0x84125
callq 0x25430
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0x35e6b
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x37ad0
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x35e6d
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq 0x5155e(%rip), %rsi # 0x873da
callq 0x37ad0
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq 0x4e29a(%rip), %rsi # 0x84130
callq 0x37ad0
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
cmpl $0x0, -0x24(%rbp)
jle 0x35eaf
xorl %eax, %eax
movq %rax, -0x30(%rbp)
jmp 0x35eb7
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
|
init_default_directories:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_24], 0
mov rdi, [rbp+var_10]
mov esi, 40h ; '@'
call alloc_root
mov [rbp+var_18], rax
cmp [rbp+var_18], 0
jnz short loc_35DCB
jmp short $+2
loc_35DBE:
mov [rbp+var_8], 0
jmp loc_35EBF
loc_35DCB:
mov rdi, [rbp+var_18]
xor esi, esi
mov edx, 40h ; '@'
call _memset
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_18]
lea rsi, aEtc; "/etc/"
call add_directory
add eax, [rbp+var_24]
mov [rbp+var_24], eax
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_18]
lea rsi, aEtcMysql; "/etc/mysql/"
call add_directory
add eax, [rbp+var_24]
mov [rbp+var_24], eax
lea rdi, aMariadbHome; "MARIADB_HOME"
call _getenv
mov [rbp+var_20], rax
cmp rax, 0
jz short loc_35E3E
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_18]
call add_directory
add eax, [rbp+var_24]
mov [rbp+var_24], eax
jmp short loc_35E6D
loc_35E3E:
lea rdi, aMysqlHome; "MYSQL_HOME"
call _getenv
mov [rbp+var_20], rax
cmp rax, 0
jz short loc_35E6B
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_18]
call add_directory
add eax, [rbp+var_24]
mov [rbp+var_24], eax
loc_35E6B:
jmp short $+2
loc_35E6D:
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_18]
lea rsi, asc_873D6+4; ""
call add_directory
add eax, [rbp+var_24]
mov [rbp+var_24], eax
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_18]
lea rsi, asc_84130; "~/"
call add_directory
add eax, [rbp+var_24]
mov [rbp+var_24], eax
cmp [rbp+var_24], 0
jle short loc_35EAF
xor eax, eax
mov [rbp+var_30], rax
jmp short loc_35EB7
loc_35EAF:
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
loc_35EB7:
mov rax, [rbp+var_30]
mov [rbp+var_8], rax
loc_35EBF:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
|
long long init_default_directories(long long a1)
{
int v3; // [rsp+Ch] [rbp-24h]
int v4; // [rsp+Ch] [rbp-24h]
int v5; // [rsp+Ch] [rbp-24h]
long long v6; // [rsp+10h] [rbp-20h]
long long v7; // [rsp+18h] [rbp-18h]
v7 = alloc_root(a1, 64LL);
if ( !v7 )
return 0LL;
memset(v7, 0LL, 64LL);
v3 = add_directory(a1, "/etc/", v7);
v4 = v3 + add_directory(a1, "/etc/mysql/", v7);
v6 = getenv("MARIADB_HOME");
if ( v6 || (v6 = getenv("MYSQL_HOME")) != 0 )
v4 += add_directory(a1, v6, v7);
v5 = v4 + add_directory(a1, "", v7);
if ( (int)(v5 + add_directory(a1, "~/", v7)) <= 0 )
return v7;
else
return 0LL;
}
|
init_default_directories:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x24],0x0
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x40
CALL 0x0013b410
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0x0
JNZ 0x00135dcb
JMP 0x00135dbe
LAB_00135dbe:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00135ebf
LAB_00135dcb:
MOV RDI,qword ptr [RBP + -0x18]
XOR ESI,ESI
MOV EDX,0x40
CALL 0x001251d0
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
LEA RSI,[0x184106]
CALL 0x00137ad0
ADD EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x24],EAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
LEA RSI,[0x18410c]
CALL 0x00137ad0
ADD EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x24],EAX
LEA RDI,[0x184118]
CALL 0x00125430
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JZ 0x00135e3e
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x00137ad0
ADD EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x24],EAX
JMP 0x00135e6d
LAB_00135e3e:
LEA RDI,[0x184125]
CALL 0x00125430
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JZ 0x00135e6b
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x00137ad0
ADD EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x24],EAX
LAB_00135e6b:
JMP 0x00135e6d
LAB_00135e6d:
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
LEA RSI,[0x1873da]
CALL 0x00137ad0
ADD EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x24],EAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
LEA RSI,[0x184130]
CALL 0x00137ad0
ADD EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x24],EAX
CMP dword ptr [RBP + -0x24],0x0
JLE 0x00135eaf
XOR EAX,EAX
MOV qword ptr [RBP + -0x30],RAX
JMP 0x00135eb7
LAB_00135eaf:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
LAB_00135eb7:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x8],RAX
LAB_00135ebf:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
void * init_default_directories(int8 param_1)
{
int iVar1;
int iVar2;
char *pcVar3;
void *local_38;
int local_2c;
void *local_10;
local_38 = (void *)alloc_root(param_1);
if (local_38 == (void *)0x0) {
local_10 = (void *)0x0;
}
else {
memset(local_38,0,0x40);
iVar1 = add_directory(param_1,"/etc/",local_38);
local_2c = add_directory(param_1,"/etc/mysql/",local_38);
local_2c = local_2c + iVar1;
pcVar3 = getenv("MARIADB_HOME");
if (pcVar3 == (char *)0x0) {
pcVar3 = getenv("MYSQL_HOME");
if (pcVar3 != (char *)0x0) {
iVar1 = add_directory(param_1,pcVar3,local_38);
local_2c = iVar1 + local_2c;
}
}
else {
iVar1 = add_directory(param_1,pcVar3,local_38);
local_2c = iVar1 + local_2c;
}
iVar1 = add_directory(param_1,&DAT_001873da,local_38);
iVar2 = add_directory(param_1,&DAT_00184130,local_38);
if (0 < iVar2 + iVar1 + local_2c) {
local_38 = (void *)0x0;
}
local_10 = local_38;
}
return local_10;
}
|
|
57,407
|
ma_soft_sync_background
|
eloqsql/storage/maria/ma_loghandler.c
|
static pthread_handler_t
ma_soft_sync_background( void *arg __attribute__((unused)))
{
my_thread_init();
{
DBUG_ENTER("ma_soft_sync_background");
for(;;)
{
ulonglong prev_loop= microsecond_interval_timer();
ulonglong time, sleep;
uint32 min, max, sync_request;
min= soft_sync_min;
max= soft_sync_max;
sync_request= soft_need_sync;
soft_sync_min= max;
soft_need_sync= 0;
sleep= group_commit_wait;
if (sync_request)
translog_sync_files(min, max, FALSE);
time= microsecond_interval_timer() - prev_loop;
if (time > sleep)
sleep= 0;
else
sleep-= time;
if (my_service_thread_sleep(&soft_sync_control, sleep))
break;
}
my_thread_end();
DBUG_RETURN(0);
}
}
|
O3
|
c
|
ma_soft_sync_background:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
callq 0xa1c95
movabsq $0x20c49ba5e353f7cf, %r12 # imm = 0x20C49BA5E353F7CF
leaq 0x335de6(%rip), %rbx # 0x3841b8
callq 0x9e55c
shrq $0x3, %rax
mulq %r12
movq %rdx, %r15
movl 0xbb1305(%rip), %edi # 0xbff6ec
movl 0xbb1303(%rip), %esi # 0xbff6f0
cmpb $0x0, 0xbb1300(%rip) # 0xbff6f4
movl %esi, 0xbb12f2(%rip) # 0xbff6ec
movb $0x1, 0xbb12f3(%rip) # 0xbff6f4
movl 0xbb12dc(%rip), %r14d # 0xbff6e4
jne 0x4e411
xorl %edx, %edx
callq 0x4d65e
shrq $0x4, %r15
callq 0x9e55c
shrq $0x3, %rax
mulq %r12
shrq $0x4, %rdx
subq %r15, %rdx
subq %rdx, %r14
jae 0x4e430
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x50a34
testb %al, %al
je 0x4e3d2
callq 0xa1f10
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
ma_soft_sync_background:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
call my_thread_init
mov r12, 20C49BA5E353F7CFh
lea rbx, soft_sync_control
loc_4E3D2:
call my_interval_timer
shr rax, 3
mul r12
mov r15, rdx
mov edi, cs:soft_sync_min
mov esi, cs:soft_sync_max
cmp cs:soft_need_sync, 0
mov cs:soft_sync_min, esi
mov cs:soft_need_sync, 1
mov r14d, cs:group_commit_wait
jnz short loc_4E411
xor edx, edx
call translog_sync_files
loc_4E411:
shr r15, 4
call my_interval_timer
shr rax, 3
mul r12
shr rdx, 4
sub rdx, r15
sub r14, rdx
jnb short loc_4E430
xor r14d, r14d
loc_4E430:
mov rdi, rbx
mov rsi, r14
call my_service_thread_sleep
test al, al
jz short loc_4E3D2
call my_thread_end
xor eax, eax
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
long long ma_soft_sync_background()
{
unsigned long long v0; // r15
long long v1; // rdi
bool v2; // zf
unsigned long long v3; // r14
unsigned long long v4; // rdx
bool v5; // cf
unsigned long long v6; // r14
my_thread_init();
do
{
v0 = (0x20C49BA5E353F7CFLL * (unsigned __int128)((unsigned long long)((long long (*)(void))my_interval_timer)() >> 3)) >> 64;
v1 = (unsigned int)soft_sync_min;
v2 = soft_need_sync == 0;
soft_sync_min = soft_sync_max;
soft_need_sync = 1;
v3 = (unsigned int)group_commit_wait;
if ( v2 )
translog_sync_files(v1, soft_sync_max, 0);
v4 = my_interval_timer(v1) / 0x3E8uLL - (v0 >> 4);
v5 = v3 < v4;
v6 = v3 - v4;
if ( v5 )
v6 = 0LL;
}
while ( !(unsigned __int8)my_service_thread_sleep(&soft_sync_control, v6) );
my_thread_end();
return 0LL;
}
|
ma_soft_sync_background:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
CALL 0x001a1c95
MOV R12,0x20c49ba5e353f7cf
LEA RBX,[0x4841b8]
LAB_0014e3d2:
CALL 0x0019e55c
SHR RAX,0x3
MUL R12
MOV R15,RDX
MOV EDI,dword ptr [0x00cff6ec]
MOV ESI,dword ptr [0x00cff6f0]
CMP byte ptr [0x00cff6f4],0x0
MOV dword ptr [0x00cff6ec],ESI
MOV byte ptr [0x00cff6f4],0x1
MOV R14D,dword ptr [0x00cff6e4]
JNZ 0x0014e411
XOR EDX,EDX
CALL 0x0014d65e
LAB_0014e411:
SHR R15,0x4
CALL 0x0019e55c
SHR RAX,0x3
MUL R12
SHR RDX,0x4
SUB RDX,R15
SUB R14,RDX
JNC 0x0014e430
XOR R14D,R14D
LAB_0014e430:
MOV RDI,RBX
MOV RSI,R14
CALL 0x00150a34
TEST AL,AL
JZ 0x0014e3d2
CALL 0x001a1f10
XOR EAX,EAX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int8 ma_soft_sync_background(void)
{
int4 uVar1;
char cVar2;
ulong uVar3;
ulong uVar4;
ulong uVar5;
long lVar6;
bool bVar7;
my_thread_init();
do {
uVar3 = my_interval_timer();
uVar1 = soft_sync_min;
bVar7 = soft_need_sync == '\0';
soft_sync_min = soft_sync_max;
soft_need_sync = '\x01';
uVar5 = (ulong)group_commit_wait;
if (bVar7) {
translog_sync_files(uVar1,soft_sync_max,0);
}
uVar4 = my_interval_timer();
uVar3 = uVar4 / 1000 - uVar3 / 1000;
lVar6 = uVar5 - uVar3;
if (uVar5 < uVar3) {
lVar6 = 0;
}
cVar2 = my_service_thread_sleep(soft_sync_control,lVar6);
} while (cVar2 == '\0');
my_thread_end();
return 0;
}
|
|
57,408
|
get_exported_names
|
bluesky950520[P]quickjs/quickjs.c
|
static __exception int get_exported_names(JSContext *ctx,
GetExportNamesState *s,
JSModuleDef *m, BOOL from_star)
{
ExportedNameEntry *en;
int i, j;
/* check circular reference */
for(i = 0; i < s->modules_count; i++) {
if (s->modules[i] == m)
return 0;
}
if (js_resize_array(ctx, (void **)&s->modules, sizeof(s->modules[0]),
&s->modules_size, s->modules_count + 1))
return -1;
s->modules[s->modules_count++] = m;
for(i = 0; i < m->export_entries_count; i++) {
JSExportEntry *me = &m->export_entries[i];
if (from_star && me->export_name == JS_ATOM_default)
continue;
j = find_exported_name(s, me->export_name);
if (j < 0) {
if (js_resize_array(ctx, (void **)&s->exported_names, sizeof(s->exported_names[0]),
&s->exported_names_size,
s->exported_names_count + 1))
return -1;
en = &s->exported_names[s->exported_names_count++];
en->export_name = me->export_name;
/* avoid a second lookup for simple module exports */
if (from_star || me->export_type != JS_EXPORT_TYPE_LOCAL)
en->u.me = NULL;
else
en->u.me = me;
} else {
en = &s->exported_names[j];
en->u.me = NULL;
}
}
for(i = 0; i < m->star_export_entries_count; i++) {
JSStarExportEntry *se = &m->star_export_entries[i];
JSModuleDef *m1;
m1 = m->req_module_entries[se->req_module_idx].module;
if (get_exported_names(ctx, s, m1, TRUE))
return -1;
}
return 0;
}
|
O0
|
c
|
get_exported_names:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
movl %ecx, 0x34(%rsp)
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
movq 0x40(%rsp), %rcx
cmpl 0xc(%rcx), %eax
jge 0x72101
movq 0x40(%rsp), %rax
movq (%rax), %rax
movslq 0x24(%rsp), %rcx
movq (%rax,%rcx,8), %rax
cmpq 0x38(%rsp), %rax
jne 0x720f2
movl $0x0, 0x54(%rsp)
jmp 0x7233e
jmp 0x720f4
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x720bf
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x40(%rsp), %rcx
addq $0x8, %rcx
movq 0x40(%rsp), %rax
movl 0xc(%rax), %r8d
addl $0x1, %r8d
movl $0x8, %edx
callq 0x71e80
cmpl $0x0, %eax
je 0x7213d
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x7233e
movq 0x38(%rsp), %rdx
movq 0x40(%rsp), %rax
movq (%rax), %rax
movq 0x40(%rsp), %rsi
movl 0xc(%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, 0xc(%rsi)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
movq 0x38(%rsp), %rcx
cmpl 0x30(%rcx), %eax
jge 0x722ae
movq 0x38(%rsp), %rax
movq 0x28(%rax), %rax
movslq 0x24(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x18(%rsp)
cmpl $0x0, 0x34(%rsp)
je 0x721ac
movq 0x18(%rsp), %rax
cmpl $0x16, 0x18(%rax)
jne 0x721ac
jmp 0x7229e
movq 0x40(%rsp), %rdi
movq 0x18(%rsp), %rax
movl 0x18(%rax), %esi
callq 0x72710
movl %eax, 0x20(%rsp)
cmpl $0x0, 0x20(%rsp)
jge 0x72275
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
addq $0x10, %rsi
movq 0x40(%rsp), %rcx
addq $0x18, %rcx
movq 0x40(%rsp), %rax
movl 0x1c(%rax), %r8d
addl $0x1, %r8d
movl $0x10, %edx
callq 0x71e80
cmpl $0x0, %eax
je 0x7220d
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x7233e
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x40(%rsp), %rdx
movl 0x1c(%rdx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, 0x1c(%rdx)
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, 0x28(%rsp)
movq 0x18(%rsp), %rax
movl 0x18(%rax), %ecx
movq 0x28(%rsp), %rax
movl %ecx, (%rax)
cmpl $0x0, 0x34(%rsp)
jne 0x72256
movq 0x18(%rsp), %rax
cmpl $0x0, 0x10(%rax)
je 0x72265
movq 0x28(%rsp), %rax
movq $0x0, 0x8(%rax)
jmp 0x72273
movq 0x18(%rsp), %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x8(%rax)
jmp 0x7229c
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movslq 0x20(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq $0x0, 0x8(%rax)
jmp 0x7229e
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x72169
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
movq 0x38(%rsp), %rcx
cmpl 0x40(%rcx), %eax
jge 0x72336
movq 0x38(%rsp), %rax
movq 0x38(%rax), %rax
movslq 0x24(%rsp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x10(%rsp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x8(%rsp), %rdx
movl $0x1, %ecx
callq 0x720a0
cmpl $0x0, %eax
je 0x72327
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x7233e
jmp 0x72329
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x722b6
movl $0x0, 0x54(%rsp)
movl 0x54(%rsp), %eax
addq $0x58, %rsp
retq
nopw (%rax,%rax)
|
get_exported_names:
sub rsp, 58h
mov [rsp+58h+var_10], rdi
mov [rsp+58h+var_18], rsi
mov [rsp+58h+var_20], rdx
mov [rsp+58h+var_24], ecx
mov [rsp+58h+var_34], 0
loc_720BF:
mov eax, [rsp+58h+var_34]
mov rcx, [rsp+58h+var_18]
cmp eax, [rcx+0Ch]
jge short loc_72101
mov rax, [rsp+58h+var_18]
mov rax, [rax]
movsxd rcx, [rsp+58h+var_34]
mov rax, [rax+rcx*8]
cmp rax, [rsp+58h+var_20]
jnz short loc_720F2
mov [rsp+58h+var_4], 0
jmp loc_7233E
loc_720F2:
jmp short $+2
loc_720F4:
mov eax, [rsp+58h+var_34]
add eax, 1
mov [rsp+58h+var_34], eax
jmp short loc_720BF
loc_72101:
mov rdi, [rsp+58h+var_10]
mov rsi, [rsp+58h+var_18]
mov rcx, [rsp+58h+var_18]
add rcx, 8
mov rax, [rsp+58h+var_18]
mov r8d, [rax+0Ch]
add r8d, 1
mov edx, 8
call js_resize_array
cmp eax, 0
jz short loc_7213D
mov [rsp+58h+var_4], 0FFFFFFFFh
jmp loc_7233E
loc_7213D:
mov rdx, [rsp+58h+var_20]
mov rax, [rsp+58h+var_18]
mov rax, [rax]
mov rsi, [rsp+58h+var_18]
mov ecx, [rsi+0Ch]
mov edi, ecx
add edi, 1
mov [rsi+0Ch], edi
movsxd rcx, ecx
mov [rax+rcx*8], rdx
mov [rsp+58h+var_34], 0
loc_72169:
mov eax, [rsp+58h+var_34]
mov rcx, [rsp+58h+var_20]
cmp eax, [rcx+30h]
jge loc_722AE
mov rax, [rsp+58h+var_20]
mov rax, [rax+28h]
movsxd rcx, [rsp+58h+var_34]
shl rcx, 5
add rax, rcx
mov [rsp+58h+var_40], rax
cmp [rsp+58h+var_24], 0
jz short loc_721AC
mov rax, [rsp+58h+var_40]
cmp dword ptr [rax+18h], 16h
jnz short loc_721AC
jmp loc_7229E
loc_721AC:
mov rdi, [rsp+58h+var_18]
mov rax, [rsp+58h+var_40]
mov esi, [rax+18h]
call find_exported_name
mov [rsp+58h+var_38], eax
cmp [rsp+58h+var_38], 0
jge loc_72275
mov rdi, [rsp+58h+var_10]
mov rsi, [rsp+58h+var_18]
add rsi, 10h
mov rcx, [rsp+58h+var_18]
add rcx, 18h
mov rax, [rsp+58h+var_18]
mov r8d, [rax+1Ch]
add r8d, 1
mov edx, 10h
call js_resize_array
cmp eax, 0
jz short loc_7220D
mov [rsp+58h+var_4], 0FFFFFFFFh
jmp loc_7233E
loc_7220D:
mov rax, [rsp+58h+var_18]
mov rax, [rax+10h]
mov rdx, [rsp+58h+var_18]
mov ecx, [rdx+1Ch]
mov esi, ecx
add esi, 1
mov [rdx+1Ch], esi
movsxd rcx, ecx
shl rcx, 4
add rax, rcx
mov [rsp+58h+var_30], rax
mov rax, [rsp+58h+var_40]
mov ecx, [rax+18h]
mov rax, [rsp+58h+var_30]
mov [rax], ecx
cmp [rsp+58h+var_24], 0
jnz short loc_72256
mov rax, [rsp+58h+var_40]
cmp dword ptr [rax+10h], 0
jz short loc_72265
loc_72256:
mov rax, [rsp+58h+var_30]
mov qword ptr [rax+8], 0
jmp short loc_72273
loc_72265:
mov rcx, [rsp+58h+var_40]
mov rax, [rsp+58h+var_30]
mov [rax+8], rcx
loc_72273:
jmp short loc_7229C
loc_72275:
mov rax, [rsp+58h+var_18]
mov rax, [rax+10h]
movsxd rcx, [rsp+58h+var_38]
shl rcx, 4
add rax, rcx
mov [rsp+58h+var_30], rax
mov rax, [rsp+58h+var_30]
mov qword ptr [rax+8], 0
loc_7229C:
jmp short $+2
loc_7229E:
mov eax, [rsp+58h+var_34]
add eax, 1
mov [rsp+58h+var_34], eax
jmp loc_72169
loc_722AE:
mov [rsp+58h+var_34], 0
loc_722B6:
mov eax, [rsp+58h+var_34]
mov rcx, [rsp+58h+var_20]
cmp eax, [rcx+40h]
jge short loc_72336
mov rax, [rsp+58h+var_20]
mov rax, [rax+38h]
movsxd rcx, [rsp+58h+var_34]
shl rcx, 2
add rax, rcx
mov [rsp+58h+var_48], rax
mov rax, [rsp+58h+var_20]
mov rax, [rax+18h]
mov rcx, [rsp+58h+var_48]
movsxd rcx, dword ptr [rcx]
shl rcx, 4
add rax, rcx
mov rax, [rax+8]
mov [rsp+58h+var_50], rax
mov rdi, [rsp+58h+var_10]
mov rsi, [rsp+58h+var_18]
mov rdx, [rsp+58h+var_50]
mov ecx, 1
call get_exported_names
cmp eax, 0
jz short loc_72327
mov [rsp+58h+var_4], 0FFFFFFFFh
jmp short loc_7233E
loc_72327:
jmp short $+2
loc_72329:
mov eax, [rsp+58h+var_34]
add eax, 1
mov [rsp+58h+var_34], eax
jmp short loc_722B6
loc_72336:
mov [rsp+58h+var_4], 0
loc_7233E:
mov eax, [rsp+58h+var_4]
add rsp, 58h
retn
|
long long get_exported_names(long long a1, long long a2, long long a3, int a4)
{
long long v4; // rax
int v5; // ecx
long long v6; // rax
int v7; // ecx
long long v9; // [rsp+18h] [rbp-40h]
int exported_name; // [rsp+20h] [rbp-38h]
int i; // [rsp+24h] [rbp-34h]
int j; // [rsp+24h] [rbp-34h]
int k; // [rsp+24h] [rbp-34h]
long long v14; // [rsp+28h] [rbp-30h]
for ( i = 0; i < *(_DWORD *)(a2 + 12); ++i )
{
if ( *(_QWORD *)(*(_QWORD *)a2 + 8LL * i) == a3 )
return 0;
}
if ( (unsigned int)js_resize_array(a1, a2, 8u, (_DWORD *)(a2 + 8), *(_DWORD *)(a2 + 12) + 1) )
{
return (unsigned int)-1;
}
else
{
v4 = *(_QWORD *)a2;
v5 = *(_DWORD *)(a2 + 12);
*(_DWORD *)(a2 + 12) = v5 + 1;
*(_QWORD *)(v4 + 8LL * v5) = a3;
for ( j = 0; j < *(_DWORD *)(a3 + 48); ++j )
{
v9 = 32LL * j + *(_QWORD *)(a3 + 40);
if ( !a4 || *(_DWORD *)(v9 + 24) != 22 )
{
exported_name = find_exported_name(a2, *(unsigned int *)(v9 + 24));
if ( exported_name >= 0 )
{
*(_QWORD *)(16LL * exported_name + *(_QWORD *)(a2 + 16) + 8) = 0LL;
}
else
{
if ( (unsigned int)js_resize_array(a1, a2 + 16, 0x10u, (_DWORD *)(a2 + 24), *(_DWORD *)(a2 + 28) + 1) )
return (unsigned int)-1;
v6 = *(_QWORD *)(a2 + 16);
v7 = *(_DWORD *)(a2 + 28);
*(_DWORD *)(a2 + 28) = v7 + 1;
v14 = 16LL * v7 + v6;
*(_DWORD *)v14 = *(_DWORD *)(v9 + 24);
if ( a4 || *(_DWORD *)(v9 + 16) )
*(_QWORD *)(v14 + 8) = 0LL;
else
*(_QWORD *)(v14 + 8) = v9;
}
}
}
for ( k = 0; k < *(_DWORD *)(a3 + 64); ++k )
{
if ( (unsigned int)get_exported_names(
a1,
a2,
*(_QWORD *)(16LL * *(int *)(4LL * k + *(_QWORD *)(a3 + 56)) + *(_QWORD *)(a3 + 24) + 8),
1LL) )
return (unsigned int)-1;
}
return 0;
}
}
|
get_exported_names:
SUB RSP,0x58
MOV qword ptr [RSP + 0x48],RDI
MOV qword ptr [RSP + 0x40],RSI
MOV qword ptr [RSP + 0x38],RDX
MOV dword ptr [RSP + 0x34],ECX
MOV dword ptr [RSP + 0x24],0x0
LAB_001720bf:
MOV EAX,dword ptr [RSP + 0x24]
MOV RCX,qword ptr [RSP + 0x40]
CMP EAX,dword ptr [RCX + 0xc]
JGE 0x00172101
MOV RAX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RSP + 0x24]
MOV RAX,qword ptr [RAX + RCX*0x8]
CMP RAX,qword ptr [RSP + 0x38]
JNZ 0x001720f2
MOV dword ptr [RSP + 0x54],0x0
JMP 0x0017233e
LAB_001720f2:
JMP 0x001720f4
LAB_001720f4:
MOV EAX,dword ptr [RSP + 0x24]
ADD EAX,0x1
MOV dword ptr [RSP + 0x24],EAX
JMP 0x001720bf
LAB_00172101:
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x40]
MOV RCX,qword ptr [RSP + 0x40]
ADD RCX,0x8
MOV RAX,qword ptr [RSP + 0x40]
MOV R8D,dword ptr [RAX + 0xc]
ADD R8D,0x1
MOV EDX,0x8
CALL 0x00171e80
CMP EAX,0x0
JZ 0x0017213d
MOV dword ptr [RSP + 0x54],0xffffffff
JMP 0x0017233e
LAB_0017213d:
MOV RDX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RSP + 0x40]
MOV ECX,dword ptr [RSI + 0xc]
MOV EDI,ECX
ADD EDI,0x1
MOV dword ptr [RSI + 0xc],EDI
MOVSXD RCX,ECX
MOV qword ptr [RAX + RCX*0x8],RDX
MOV dword ptr [RSP + 0x24],0x0
LAB_00172169:
MOV EAX,dword ptr [RSP + 0x24]
MOV RCX,qword ptr [RSP + 0x38]
CMP EAX,dword ptr [RCX + 0x30]
JGE 0x001722ae
MOV RAX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RAX + 0x28]
MOVSXD RCX,dword ptr [RSP + 0x24]
SHL RCX,0x5
ADD RAX,RCX
MOV qword ptr [RSP + 0x18],RAX
CMP dword ptr [RSP + 0x34],0x0
JZ 0x001721ac
MOV RAX,qword ptr [RSP + 0x18]
CMP dword ptr [RAX + 0x18],0x16
JNZ 0x001721ac
JMP 0x0017229e
LAB_001721ac:
MOV RDI,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RSP + 0x18]
MOV ESI,dword ptr [RAX + 0x18]
CALL 0x00172710
MOV dword ptr [RSP + 0x20],EAX
CMP dword ptr [RSP + 0x20],0x0
JGE 0x00172275
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x40]
ADD RSI,0x10
MOV RCX,qword ptr [RSP + 0x40]
ADD RCX,0x18
MOV RAX,qword ptr [RSP + 0x40]
MOV R8D,dword ptr [RAX + 0x1c]
ADD R8D,0x1
MOV EDX,0x10
CALL 0x00171e80
CMP EAX,0x0
JZ 0x0017220d
MOV dword ptr [RSP + 0x54],0xffffffff
JMP 0x0017233e
LAB_0017220d:
MOV RAX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RAX + 0x10]
MOV RDX,qword ptr [RSP + 0x40]
MOV ECX,dword ptr [RDX + 0x1c]
MOV ESI,ECX
ADD ESI,0x1
MOV dword ptr [RDX + 0x1c],ESI
MOVSXD RCX,ECX
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV ECX,dword ptr [RAX + 0x18]
MOV RAX,qword ptr [RSP + 0x28]
MOV dword ptr [RAX],ECX
CMP dword ptr [RSP + 0x34],0x0
JNZ 0x00172256
MOV RAX,qword ptr [RSP + 0x18]
CMP dword ptr [RAX + 0x10],0x0
JZ 0x00172265
LAB_00172256:
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RAX + 0x8],0x0
JMP 0x00172273
LAB_00172265:
MOV RCX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RAX + 0x8],RCX
LAB_00172273:
JMP 0x0017229c
LAB_00172275:
MOV RAX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RAX + 0x10]
MOVSXD RCX,dword ptr [RSP + 0x20]
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RAX + 0x8],0x0
LAB_0017229c:
JMP 0x0017229e
LAB_0017229e:
MOV EAX,dword ptr [RSP + 0x24]
ADD EAX,0x1
MOV dword ptr [RSP + 0x24],EAX
JMP 0x00172169
LAB_001722ae:
MOV dword ptr [RSP + 0x24],0x0
LAB_001722b6:
MOV EAX,dword ptr [RSP + 0x24]
MOV RCX,qword ptr [RSP + 0x38]
CMP EAX,dword ptr [RCX + 0x40]
JGE 0x00172336
MOV RAX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RAX + 0x38]
MOVSXD RCX,dword ptr [RSP + 0x24]
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RSP + 0x10]
MOVSXD RCX,dword ptr [RCX]
SHL RCX,0x4
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x8]
MOV ECX,0x1
CALL 0x001720a0
CMP EAX,0x0
JZ 0x00172327
MOV dword ptr [RSP + 0x54],0xffffffff
JMP 0x0017233e
LAB_00172327:
JMP 0x00172329
LAB_00172329:
MOV EAX,dword ptr [RSP + 0x24]
ADD EAX,0x1
MOV dword ptr [RSP + 0x24],EAX
JMP 0x001722b6
LAB_00172336:
MOV dword ptr [RSP + 0x54],0x0
LAB_0017233e:
MOV EAX,dword ptr [RSP + 0x54]
ADD RSP,0x58
RET
|
int4 get_exported_names(int8 param_1,long *param_2,long param_3,int param_4)
{
int iVar1;
long lVar2;
int4 *puVar3;
int local_34;
int4 local_4;
for (local_34 = 0; local_34 < *(int *)((long)param_2 + 0xc); local_34 = local_34 + 1) {
if (*(long *)(*param_2 + (long)local_34 * 8) == param_3) {
return 0;
}
}
iVar1 = js_resize_array(param_1,param_2,8,param_2 + 1,*(int *)((long)param_2 + 0xc) + 1);
if (iVar1 == 0) {
iVar1 = *(int *)((long)param_2 + 0xc);
*(int *)((long)param_2 + 0xc) = iVar1 + 1;
*(long *)(*param_2 + (long)iVar1 * 8) = param_3;
for (local_34 = 0; local_34 < *(int *)(param_3 + 0x30); local_34 = local_34 + 1) {
lVar2 = *(long *)(param_3 + 0x28) + (long)local_34 * 0x20;
if ((param_4 == 0) || (*(int *)(lVar2 + 0x18) != 0x16)) {
iVar1 = find_exported_name(param_2,*(int4 *)(lVar2 + 0x18));
if (iVar1 < 0) {
iVar1 = js_resize_array(param_1,param_2 + 2,0x10,param_2 + 3,
*(int *)((long)param_2 + 0x1c) + 1);
if (iVar1 != 0) {
return 0xffffffff;
}
iVar1 = *(int *)((long)param_2 + 0x1c);
*(int *)((long)param_2 + 0x1c) = iVar1 + 1;
puVar3 = (int4 *)(param_2[2] + (long)iVar1 * 0x10);
*puVar3 = *(int4 *)(lVar2 + 0x18);
if ((param_4 == 0) && (*(int *)(lVar2 + 0x10) == 0)) {
*(long *)(puVar3 + 2) = lVar2;
}
else {
*(int8 *)(puVar3 + 2) = 0;
}
}
else {
*(int8 *)(param_2[2] + (long)iVar1 * 0x10 + 8) = 0;
}
}
}
for (local_34 = 0; local_34 < *(int *)(param_3 + 0x40); local_34 = local_34 + 1) {
iVar1 = get_exported_names(param_1,param_2,
*(int8 *)
(*(long *)(param_3 + 0x18) +
(long)*(int *)(*(long *)(param_3 + 0x38) + (long)local_34 * 4) *
0x10 + 8),1);
if (iVar1 != 0) {
return 0xffffffff;
}
}
local_4 = 0;
}
else {
local_4 = 0xffffffff;
}
return local_4;
}
|
|
57,409
|
get_exported_names
|
bluesky950520[P]quickjs/quickjs.c
|
static __exception int get_exported_names(JSContext *ctx,
GetExportNamesState *s,
JSModuleDef *m, BOOL from_star)
{
ExportedNameEntry *en;
int i, j;
/* check circular reference */
for(i = 0; i < s->modules_count; i++) {
if (s->modules[i] == m)
return 0;
}
if (js_resize_array(ctx, (void **)&s->modules, sizeof(s->modules[0]),
&s->modules_size, s->modules_count + 1))
return -1;
s->modules[s->modules_count++] = m;
for(i = 0; i < m->export_entries_count; i++) {
JSExportEntry *me = &m->export_entries[i];
if (from_star && me->export_name == JS_ATOM_default)
continue;
j = find_exported_name(s, me->export_name);
if (j < 0) {
if (js_resize_array(ctx, (void **)&s->exported_names, sizeof(s->exported_names[0]),
&s->exported_names_size,
s->exported_names_count + 1))
return -1;
en = &s->exported_names[s->exported_names_count++];
en->export_name = me->export_name;
/* avoid a second lookup for simple module exports */
if (from_star || me->export_type != JS_EXPORT_TYPE_LOCAL)
en->u.me = NULL;
else
en->u.me = me;
} else {
en = &s->exported_names[j];
en->u.me = NULL;
}
}
for(i = 0; i < m->star_export_entries_count; i++) {
JSStarExportEntry *se = &m->star_export_entries[i];
JSModuleDef *m1;
m1 = m->req_module_entries[se->req_module_idx].module;
if (get_exported_names(ctx, s, m1, TRUE))
return -1;
}
return 0;
}
|
O2
|
c
|
get_exported_names:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %r12d
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl 0xc(%rsi), %r8d
xorl %eax, %eax
testl %r8d, %r8d
movl $0x0, %ecx
cmovgl %r8d, %ecx
cmpq %rax, %rcx
je 0x3a664
movq (%r14), %rdx
leaq 0x1(%rax), %rsi
cmpq %rbx, (%rdx,%rax,8)
movq %rsi, %rax
jne 0x3a648
xorl %ecx, %ecx
jmp 0x3a7ad
leaq 0x8(%r14), %rcx
incl %r8d
pushq $0x8
popq %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x3a573
pushq $-0x1
popq %rcx
testl %eax, %eax
jne 0x3a7ad
movq %r15, 0x8(%rsp)
movq (%r14), %rax
movslq 0xc(%r14), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0xc(%r14)
movq %rbx, (%rax,%rcx,8)
leaq 0x10(%r14), %r13
leaq 0x18(%r14), %rax
movq %rax, 0x10(%rsp)
xorl %ebp, %ebp
movslq 0x30(%rbx), %rax
cmpq %rax, %rbp
jge 0x3a767
movq 0x28(%rbx), %r15
movq %rbp, %rcx
shlq $0x5, %rcx
movl 0x18(%r15,%rcx), %eax
testl %r12d, %r12d
je 0x3a6d5
cmpl $0x16, %eax
je 0x3a759
addq %rcx, %r15
movl 0x1c(%r14), %r8d
testl %r8d, %r8d
movl $0x0, %ecx
cmovgl %r8d, %ecx
shlq $0x4, %rcx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x3a702
movq (%r13), %rsi
cmpl %eax, (%rsi,%rdx)
je 0x3a753
addq $0x10, %rdx
jmp 0x3a6ee
incl %r8d
movq 0x8(%rsp), %rdi
movq %r13, %rsi
pushq $0x10
popq %rdx
movq 0x10(%rsp), %rcx
callq 0x3a573
testl %eax, %eax
jne 0x3a7aa
movq 0x10(%r14), %rcx
movslq 0x1c(%r14), %rdx
leal 0x1(%rdx), %esi
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movl %esi, 0x1c(%r14)
movl 0x18(%r15), %esi
movl %esi, (%rcx,%rdx)
testl %r12d, %r12d
jne 0x3a74c
cmpl $0x0, 0x10(%r15)
je 0x3a761
andq $0x0, 0x8(%rax)
jmp 0x3a759
andq $0x0, 0x8(%rsi,%rdx)
incq %rbp
jmp 0x3a6aa
movq %r15, 0x8(%rax)
jmp 0x3a759
xorl %r15d, %r15d
pushq $0x1
popq %r12
movq 0x8(%rsp), %r13
movslq 0x40(%rbx), %rax
cmpq %rax, %r15
jge 0x3a65d
movq 0x18(%rbx), %rax
movq 0x38(%rbx), %rcx
movslq (%rcx,%r15,4), %rcx
shlq $0x4, %rcx
movq 0x8(%rax,%rcx), %rdx
movq %r13, %rdi
movq %r14, %rsi
movl %r12d, %ecx
callq 0x3a61c
incq %r15
testl %eax, %eax
je 0x3a773
pushq $-0x1
popq %rcx
movl %ecx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
get_exported_names:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r12d, ecx
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov r8d, [rsi+0Ch]
xor eax, eax
test r8d, r8d
mov ecx, 0
cmovg ecx, r8d
loc_3A648:
cmp rcx, rax
jz short loc_3A664
mov rdx, [r14]
lea rsi, [rax+1]
cmp [rdx+rax*8], rbx
mov rax, rsi
jnz short loc_3A648
loc_3A65D:
xor ecx, ecx
jmp loc_3A7AD
loc_3A664:
lea rcx, [r14+8]
inc r8d
push 8
pop rdx
mov rdi, r15
mov rsi, r14
call js_resize_array
push 0FFFFFFFFFFFFFFFFh
pop rcx
test eax, eax
jnz loc_3A7AD
mov [rsp+48h+var_40], r15
mov rax, [r14]
movsxd rcx, dword ptr [r14+0Ch]
lea edx, [rcx+1]
mov [r14+0Ch], edx
mov [rax+rcx*8], rbx
lea r13, [r14+10h]
lea rax, [r14+18h]
mov [rsp+48h+var_38], rax
xor ebp, ebp
loc_3A6AA:
movsxd rax, dword ptr [rbx+30h]
cmp rbp, rax
jge loc_3A767
mov r15, [rbx+28h]
mov rcx, rbp
shl rcx, 5
mov eax, [r15+rcx+18h]
test r12d, r12d
jz short loc_3A6D5
cmp eax, 16h
jz loc_3A759
loc_3A6D5:
add r15, rcx
mov r8d, [r14+1Ch]
test r8d, r8d
mov ecx, 0
cmovg ecx, r8d
shl rcx, 4
xor edx, edx
loc_3A6EE:
cmp rcx, rdx
jz short loc_3A702
mov rsi, [r13+0]
cmp [rsi+rdx], eax
jz short loc_3A753
add rdx, 10h
jmp short loc_3A6EE
loc_3A702:
inc r8d
mov rdi, [rsp+48h+var_40]
mov rsi, r13
push 10h
pop rdx
mov rcx, [rsp+48h+var_38]
call js_resize_array
test eax, eax
jnz loc_3A7AA
mov rcx, [r14+10h]
movsxd rdx, dword ptr [r14+1Ch]
lea esi, [rdx+1]
shl rdx, 4
lea rax, [rcx+rdx]
mov [r14+1Ch], esi
mov esi, [r15+18h]
mov [rcx+rdx], esi
test r12d, r12d
jnz short loc_3A74C
cmp dword ptr [r15+10h], 0
jz short loc_3A761
loc_3A74C:
and qword ptr [rax+8], 0
jmp short loc_3A759
loc_3A753:
and qword ptr [rsi+rdx+8], 0
loc_3A759:
inc rbp
jmp loc_3A6AA
loc_3A761:
mov [rax+8], r15
jmp short loc_3A759
loc_3A767:
xor r15d, r15d
push 1
pop r12
mov r13, [rsp+48h+var_40]
loc_3A773:
movsxd rax, dword ptr [rbx+40h]
cmp r15, rax
jge loc_3A65D
mov rax, [rbx+18h]
mov rcx, [rbx+38h]
movsxd rcx, dword ptr [rcx+r15*4]
shl rcx, 4
mov rdx, [rax+rcx+8]
mov rdi, r13
mov rsi, r14
mov ecx, r12d
call get_exported_names
inc r15
test eax, eax
jz short loc_3A773
loc_3A7AA:
push 0FFFFFFFFFFFFFFFFh
pop rcx
loc_3A7AD:
mov eax, ecx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long get_exported_names(long long a1, long long a2, long long a3, int a4)
{
int v6; // r8d
long long v7; // rax
long long v8; // rcx
unsigned int v10; // ecx
int v11; // eax
long long v12; // rax
long long v13; // rcx
_QWORD *v14; // r13
long long i; // rbp
long long v16; // r15
int v17; // eax
long long v18; // r15
int v19; // r8d
long long v20; // rcx
long long v21; // rcx
long long j; // rdx
long long v23; // rdx
long long v24; // rax
long long v25; // r15
v6 = *(_DWORD *)(a2 + 12);
v7 = 0LL;
v8 = 0LL;
if ( v6 > 0 )
v8 = (unsigned int)v6;
while ( v8 != v7 )
{
if ( *(_QWORD *)(*(_QWORD *)a2 + 8 * v7++) == a3 )
return 0;
}
v11 = js_resize_array(a1, a2, 8LL, (_DWORD *)(a2 + 8), v6 + 1);
v10 = -1;
if ( !v11 )
{
v12 = *(_QWORD *)a2;
v13 = *(int *)(a2 + 12);
*(_DWORD *)(a2 + 12) = v13 + 1;
*(_QWORD *)(v12 + 8 * v13) = a3;
v14 = (_QWORD *)(a2 + 16);
for ( i = 0LL; i < *(int *)(a3 + 48); ++i )
{
v16 = *(_QWORD *)(a3 + 40);
v17 = *(_DWORD *)(v16 + 32 * i + 24);
if ( !a4 || v17 != 22 )
{
v18 = 32 * i + v16;
v19 = *(_DWORD *)(a2 + 28);
v20 = 0LL;
if ( v19 > 0 )
v20 = (unsigned int)v19;
v21 = 16 * v20;
for ( j = 0LL; v21 != j; j += 16LL )
{
if ( *(_DWORD *)(*v14 + j) == v17 )
{
*(_QWORD *)(*v14 + j + 8) = 0LL;
goto LABEL_22;
}
}
if ( (unsigned int)js_resize_array(a1, a2 + 16, 16LL, (_DWORD *)(a2 + 24), v19 + 1) )
return (unsigned int)-1;
v23 = *(int *)(a2 + 28);
v24 = *(_QWORD *)(a2 + 16) + 16 * v23;
*(_DWORD *)(a2 + 28) = v23 + 1;
*(_DWORD *)v24 = *(_DWORD *)(v18 + 24);
if ( a4 || *(_DWORD *)(v18 + 16) )
*(_QWORD *)(v24 + 8) = 0LL;
else
*(_QWORD *)(v24 + 8) = v18;
}
LABEL_22:
;
}
v25 = 0LL;
while ( v25 < *(int *)(a3 + 64) )
{
if ( (unsigned int)get_exported_names(
a1,
a2,
*(_QWORD *)(*(_QWORD *)(a3 + 24) + 16LL * *(int *)(*(_QWORD *)(a3 + 56) + 4 * v25++) + 8),
1LL) )
return (unsigned int)-1;
}
return 0;
}
return v10;
}
|
get_exported_names:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R12D,ECX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOV R8D,dword ptr [RSI + 0xc]
XOR EAX,EAX
TEST R8D,R8D
MOV ECX,0x0
CMOVG ECX,R8D
LAB_0013a648:
CMP RCX,RAX
JZ 0x0013a664
MOV RDX,qword ptr [R14]
LEA RSI,[RAX + 0x1]
CMP qword ptr [RDX + RAX*0x8],RBX
MOV RAX,RSI
JNZ 0x0013a648
LAB_0013a65d:
XOR ECX,ECX
JMP 0x0013a7ad
LAB_0013a664:
LEA RCX,[R14 + 0x8]
INC R8D
PUSH 0x8
POP RDX
MOV RDI,R15
MOV RSI,R14
CALL 0x0013a573
PUSH -0x1
POP RCX
TEST EAX,EAX
JNZ 0x0013a7ad
MOV qword ptr [RSP + 0x8],R15
MOV RAX,qword ptr [R14]
MOVSXD RCX,dword ptr [R14 + 0xc]
LEA EDX,[RCX + 0x1]
MOV dword ptr [R14 + 0xc],EDX
MOV qword ptr [RAX + RCX*0x8],RBX
LEA R13,[R14 + 0x10]
LEA RAX,[R14 + 0x18]
MOV qword ptr [RSP + 0x10],RAX
XOR EBP,EBP
LAB_0013a6aa:
MOVSXD RAX,dword ptr [RBX + 0x30]
CMP RBP,RAX
JGE 0x0013a767
MOV R15,qword ptr [RBX + 0x28]
MOV RCX,RBP
SHL RCX,0x5
MOV EAX,dword ptr [R15 + RCX*0x1 + 0x18]
TEST R12D,R12D
JZ 0x0013a6d5
CMP EAX,0x16
JZ 0x0013a759
LAB_0013a6d5:
ADD R15,RCX
MOV R8D,dword ptr [R14 + 0x1c]
TEST R8D,R8D
MOV ECX,0x0
CMOVG ECX,R8D
SHL RCX,0x4
XOR EDX,EDX
LAB_0013a6ee:
CMP RCX,RDX
JZ 0x0013a702
MOV RSI,qword ptr [R13]
CMP dword ptr [RSI + RDX*0x1],EAX
JZ 0x0013a753
ADD RDX,0x10
JMP 0x0013a6ee
LAB_0013a702:
INC R8D
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,R13
PUSH 0x10
POP RDX
MOV RCX,qword ptr [RSP + 0x10]
CALL 0x0013a573
TEST EAX,EAX
JNZ 0x0013a7aa
MOV RCX,qword ptr [R14 + 0x10]
MOVSXD RDX,dword ptr [R14 + 0x1c]
LEA ESI,[RDX + 0x1]
SHL RDX,0x4
LEA RAX,[RCX + RDX*0x1]
MOV dword ptr [R14 + 0x1c],ESI
MOV ESI,dword ptr [R15 + 0x18]
MOV dword ptr [RCX + RDX*0x1],ESI
TEST R12D,R12D
JNZ 0x0013a74c
CMP dword ptr [R15 + 0x10],0x0
JZ 0x0013a761
LAB_0013a74c:
AND qword ptr [RAX + 0x8],0x0
JMP 0x0013a759
LAB_0013a753:
AND qword ptr [RSI + RDX*0x1 + 0x8],0x0
LAB_0013a759:
INC RBP
JMP 0x0013a6aa
LAB_0013a761:
MOV qword ptr [RAX + 0x8],R15
JMP 0x0013a759
LAB_0013a767:
XOR R15D,R15D
PUSH 0x1
POP R12
MOV R13,qword ptr [RSP + 0x8]
LAB_0013a773:
MOVSXD RAX,dword ptr [RBX + 0x40]
CMP R15,RAX
JGE 0x0013a65d
MOV RAX,qword ptr [RBX + 0x18]
MOV RCX,qword ptr [RBX + 0x38]
MOVSXD RCX,dword ptr [RCX + R15*0x4]
SHL RCX,0x4
MOV RDX,qword ptr [RAX + RCX*0x1 + 0x8]
MOV RDI,R13
MOV RSI,R14
MOV ECX,R12D
CALL 0x0013a61c
INC R15
TEST EAX,EAX
JZ 0x0013a773
LAB_0013a7aa:
PUSH -0x1
POP RCX
LAB_0013a7ad:
MOV EAX,ECX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int4 get_exported_names(int8 param_1,long *param_2,long param_3,int param_4)
{
uint uVar1;
int iVar2;
ulong uVar3;
ulong uVar4;
long lVar5;
long lVar6;
long lVar7;
long lVar8;
uVar1 = *(uint *)((long)param_2 + 0xc);
uVar3 = 0;
uVar4 = 0;
if (0 < (int)uVar1) {
uVar3 = (ulong)uVar1;
}
while (uVar3 != uVar4) {
lVar7 = uVar4 * 8;
uVar4 = uVar4 + 1;
if (*(long *)(*param_2 + lVar7) == param_3) {
return 0;
}
}
iVar2 = js_resize_array(param_1,param_2,8,param_2 + 1,uVar1 + 1);
if (iVar2 != 0) {
return 0xffffffff;
}
iVar2 = *(int *)((long)param_2 + 0xc);
*(int *)((long)param_2 + 0xc) = iVar2 + 1;
*(long *)(*param_2 + (long)iVar2 * 8) = param_3;
lVar7 = 0;
do {
if (*(int *)(param_3 + 0x30) <= lVar7) {
lVar7 = 0;
do {
if (*(int *)(param_3 + 0x40) <= lVar7) {
return 0;
}
iVar2 = get_exported_names(param_1,param_2,
*(int8 *)
(*(long *)(param_3 + 0x18) + 8 +
(long)*(int *)(*(long *)(param_3 + 0x38) + lVar7 * 4) * 0x10),1)
;
lVar7 = lVar7 + 1;
} while (iVar2 == 0);
return 0xffffffff;
}
iVar2 = *(int *)(*(long *)(param_3 + 0x28) + 0x18 + lVar7 * 0x20);
if ((param_4 == 0) || (iVar2 != 0x16)) {
lVar8 = *(long *)(param_3 + 0x28) + lVar7 * 0x20;
uVar1 = *(uint *)((long)param_2 + 0x1c);
uVar4 = 0;
if (0 < (int)uVar1) {
uVar4 = (ulong)uVar1;
}
for (lVar5 = 0; uVar4 * 0x10 != lVar5; lVar5 = lVar5 + 0x10) {
lVar6 = param_2[2];
if (*(int *)(lVar6 + lVar5) == iVar2) {
*(int8 *)(lVar6 + 8 + lVar5) = 0;
goto LAB_0013a759;
}
}
iVar2 = js_resize_array(param_1,param_2 + 2,0x10,param_2 + 3,uVar1 + 1);
if (iVar2 != 0) {
return 0xffffffff;
}
lVar6 = (long)*(int *)((long)param_2 + 0x1c) * 0x10;
lVar5 = param_2[2] + lVar6;
*(int *)((long)param_2 + 0x1c) = *(int *)((long)param_2 + 0x1c) + 1;
*(int4 *)(param_2[2] + lVar6) = *(int4 *)(lVar8 + 0x18);
if ((param_4 == 0) && (*(int *)(lVar8 + 0x10) == 0)) {
*(long *)(lVar5 + 8) = lVar8;
}
else {
*(int8 *)(lVar5 + 8) = 0;
}
}
LAB_0013a759:
lVar7 = lVar7 + 1;
} while( true );
}
|
|
57,410
|
get_exported_names
|
bluesky950520[P]quickjs/quickjs.c
|
static __exception int get_exported_names(JSContext *ctx,
GetExportNamesState *s,
JSModuleDef *m, BOOL from_star)
{
ExportedNameEntry *en;
int i, j;
/* check circular reference */
for(i = 0; i < s->modules_count; i++) {
if (s->modules[i] == m)
return 0;
}
if (js_resize_array(ctx, (void **)&s->modules, sizeof(s->modules[0]),
&s->modules_size, s->modules_count + 1))
return -1;
s->modules[s->modules_count++] = m;
for(i = 0; i < m->export_entries_count; i++) {
JSExportEntry *me = &m->export_entries[i];
if (from_star && me->export_name == JS_ATOM_default)
continue;
j = find_exported_name(s, me->export_name);
if (j < 0) {
if (js_resize_array(ctx, (void **)&s->exported_names, sizeof(s->exported_names[0]),
&s->exported_names_size,
s->exported_names_count + 1))
return -1;
en = &s->exported_names[s->exported_names_count++];
en->export_name = me->export_name;
/* avoid a second lookup for simple module exports */
if (from_star || me->export_type != JS_EXPORT_TYPE_LOCAL)
en->u.me = NULL;
else
en->u.me = me;
} else {
en = &s->exported_names[j];
en->u.me = NULL;
}
}
for(i = 0; i < m->star_export_entries_count; i++) {
JSStarExportEntry *se = &m->star_export_entries[i];
JSModuleDef *m1;
m1 = m->req_module_entries[se->req_module_idx].module;
if (get_exported_names(ctx, s, m1, TRUE))
return -1;
}
return 0;
}
|
O3
|
c
|
get_exported_names:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %ebp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movslq 0xc(%rsi), %r8
testq %r8, %r8
jle 0x445d6
movq (%r14), %rcx
xorl %eax, %eax
xorl %edx, %edx
cmpq %rbx, (%rcx,%rdx,8)
je 0x4471b
incq %rdx
cmpq %rdx, %r8
jne 0x445c4
cmpl %r8d, 0x8(%r14)
movq %r15, 0x8(%rsp)
jle 0x4472a
movq (%r14), %rax
leal 0x1(%r8), %ecx
movl %ecx, 0xc(%r14)
movslq %r8d, %rcx
movq %rbx, (%rax,%rcx,8)
cmpl $0x0, 0x30(%rbx)
jle 0x446cf
leaq 0x10(%r14), %rsi
leaq 0x18(%r14), %r13
xorl %r15d, %r15d
movq 0x28(%rbx), %r12
movq %r15, %rcx
shlq $0x5, %rcx
movl 0x18(%r12,%rcx), %eax
testl %ebp, %ebp
je 0x44625
cmpl $0x16, %eax
je 0x4468f
movslq 0x1c(%r14), %r8
testq %r8, %r8
jle 0x44648
movq (%rsi), %rdx
movq %r8, %r9
shlq $0x4, %r9
xorl %edi, %edi
cmpl %eax, (%rdx,%rdi)
je 0x44680
addq $0x10, %rdi
cmpq %rdi, %r9
jne 0x4463a
addq %rcx, %r12
cmpl %r8d, (%r13)
jle 0x446a1
movq 0x10(%r14), %rdx
movslq %r8d, %rdi
incl %r8d
shlq $0x4, %rdi
leaq (%rdx,%rdi), %rcx
movl %r8d, 0x1c(%r14)
movl %eax, (%rdx,%rdi)
testl %ebp, %ebp
jne 0x44676
cmpl $0x0, 0x10(%r12)
je 0x4468b
movq $0x0, 0x8(%rcx)
jmp 0x4468f
movq $0x0, 0x8(%rdx,%rdi)
jmp 0x4468f
movq %r12, 0x8(%rcx)
incq %r15
movslq 0x30(%rbx), %rax
cmpq %rax, %r15
jl 0x4460c
jmp 0x446cf
incl %r8d
movq 0x8(%rsp), %rdi
movq %rsi, 0x10(%rsp)
movl $0x10, %edx
movq %r13, %rcx
callq 0x444ee
testl %eax, %eax
jne 0x44716
movl 0x1c(%r14), %r8d
movl 0x18(%r12), %eax
movq 0x10(%rsp), %rsi
jmp 0x44651
cmpl $0x0, 0x40(%rbx)
jle 0x44712
xorl %r15d, %r15d
movq 0x8(%rsp), %r12
movq 0x18(%rbx), %rax
movq 0x38(%rbx), %rcx
movslq (%rcx,%r15,4), %rcx
shlq $0x4, %rcx
movq 0x8(%rax,%rcx), %rdx
movq %r12, %rdi
movq %r14, %rsi
movl $0x1, %ecx
callq 0x4459b
testl %eax, %eax
jne 0x44716
incq %r15
movslq 0x40(%rbx), %rax
cmpq %rax, %r15
jl 0x446dd
xorl %eax, %eax
jmp 0x4471b
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8(%r14), %rcx
incl %r8d
movq %r15, %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0x444ee
movl %eax, %ecx
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
testl %ecx, %ecx
jne 0x4471b
movl 0xc(%r14), %r8d
jmp 0x445e5
|
get_exported_names:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov ebp, ecx
mov rbx, rdx
mov r14, rsi
mov r15, rdi
movsxd r8, dword ptr [rsi+0Ch]
test r8, r8
jle short loc_445D6
mov rcx, [r14]
xor eax, eax
xor edx, edx
loc_445C4:
cmp [rcx+rdx*8], rbx
jz loc_4471B
inc rdx
cmp r8, rdx
jnz short loc_445C4
loc_445D6:
cmp [r14+8], r8d
mov [rsp+48h+var_40], r15
jle loc_4472A
loc_445E5:
mov rax, [r14]
lea ecx, [r8+1]
mov [r14+0Ch], ecx
movsxd rcx, r8d
mov [rax+rcx*8], rbx
cmp dword ptr [rbx+30h], 0
jle loc_446CF
lea rsi, [r14+10h]
lea r13, [r14+18h]
xor r15d, r15d
loc_4460C:
mov r12, [rbx+28h]
mov rcx, r15
shl rcx, 5
mov eax, [r12+rcx+18h]
test ebp, ebp
jz short loc_44625
cmp eax, 16h
jz short loc_4468F
loc_44625:
movsxd r8, dword ptr [r14+1Ch]
test r8, r8
jle short loc_44648
mov rdx, [rsi]
mov r9, r8
shl r9, 4
xor edi, edi
loc_4463A:
cmp [rdx+rdi], eax
jz short loc_44680
add rdi, 10h
cmp r9, rdi
jnz short loc_4463A
loc_44648:
add r12, rcx
cmp [r13+0], r8d
jle short loc_446A1
loc_44651:
mov rdx, [r14+10h]
movsxd rdi, r8d
inc r8d
shl rdi, 4
lea rcx, [rdx+rdi]
mov [r14+1Ch], r8d
mov [rdx+rdi], eax
test ebp, ebp
jnz short loc_44676
cmp dword ptr [r12+10h], 0
jz short loc_4468B
loc_44676:
mov qword ptr [rcx+8], 0
jmp short loc_4468F
loc_44680:
mov qword ptr [rdx+rdi+8], 0
jmp short loc_4468F
loc_4468B:
mov [rcx+8], r12
loc_4468F:
inc r15
movsxd rax, dword ptr [rbx+30h]
cmp r15, rax
jl loc_4460C
jmp short loc_446CF
loc_446A1:
inc r8d
mov rdi, [rsp+48h+var_40]
mov [rsp+48h+var_38], rsi
mov edx, 10h
mov rcx, r13
call js_realloc_array
test eax, eax
jnz short loc_44716
mov r8d, [r14+1Ch]
mov eax, [r12+18h]
mov rsi, [rsp+48h+var_38]
jmp short loc_44651
loc_446CF:
cmp dword ptr [rbx+40h], 0
jle short loc_44712
xor r15d, r15d
mov r12, [rsp+48h+var_40]
loc_446DD:
mov rax, [rbx+18h]
mov rcx, [rbx+38h]
movsxd rcx, dword ptr [rcx+r15*4]
shl rcx, 4
mov rdx, [rax+rcx+8]
mov rdi, r12
mov rsi, r14
mov ecx, 1
call get_exported_names
test eax, eax
jnz short loc_44716
inc r15
movsxd rax, dword ptr [rbx+40h]
cmp r15, rax
jl short loc_446DD
loc_44712:
xor eax, eax
jmp short loc_4471B
loc_44716:
mov eax, 0FFFFFFFFh
loc_4471B:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4472A:
lea rcx, [r14+8]
inc r8d
mov rdi, r15
mov rsi, r14
mov edx, 8
call js_realloc_array
mov ecx, eax
mov eax, 0FFFFFFFFh
test ecx, ecx
jnz short loc_4471B
mov r8d, [r14+0Ch]
jmp loc_445E5
|
long long get_exported_names(long long a1, long long a2, long long a3, int a4)
{
long long v7; // r8
long long result; // rax
long long v9; // rdx
long long v10; // rax
long long *v11; // rsi
long long i; // r15
long long v13; // r12
int v14; // eax
long long v15; // r8
long long v16; // rdx
long long v17; // rdi
long long v18; // r12
long long v19; // rcx
long long v20; // r15
int v21; // ecx
v7 = *(int *)(a2 + 12);
if ( v7 <= 0 )
{
LABEL_5:
if ( *(_DWORD *)(a2 + 8) <= (int)v7 )
{
v21 = js_realloc_array(a1, (long long *)a2, 8u, (_DWORD *)(a2 + 8), (int)v7 + 1);
result = 0xFFFFFFFFLL;
if ( v21 )
return result;
LODWORD(v7) = *(_DWORD *)(a2 + 12);
}
v10 = *(_QWORD *)a2;
*(_DWORD *)(a2 + 12) = v7 + 1;
*(_QWORD *)(v10 + 8LL * (int)v7) = a3;
if ( *(int *)(a3 + 48) > 0 )
{
v11 = (long long *)(a2 + 16);
for ( i = 0LL; i < *(int *)(a3 + 48); ++i )
{
v13 = *(_QWORD *)(a3 + 40);
v14 = *(_DWORD *)(v13 + 32 * i + 24);
if ( !a4 || v14 != 22 )
{
v15 = *(int *)(a2 + 28);
if ( v15 <= 0 )
{
LABEL_14:
v18 = 32 * i + v13;
if ( *(_DWORD *)(a2 + 24) <= (int)v15 )
{
if ( (unsigned int)js_realloc_array(a1, v11, 0x10u, (_DWORD *)(a2 + 24), (int)v15 + 1) )
return 0xFFFFFFFFLL;
LODWORD(v15) = *(_DWORD *)(a2 + 28);
v14 = *(_DWORD *)(v18 + 24);
}
v19 = *(_QWORD *)(a2 + 16) + 16LL * (int)v15;
*(_DWORD *)(a2 + 28) = v15 + 1;
*(_DWORD *)v19 = v14;
if ( a4 || *(_DWORD *)(v18 + 16) )
*(_QWORD *)(v19 + 8) = 0LL;
else
*(_QWORD *)(v19 + 8) = v18;
}
else
{
v16 = *v11;
v17 = 0LL;
while ( *(_DWORD *)(v16 + v17) != v14 )
{
v17 += 16LL;
if ( 16 * v15 == v17 )
goto LABEL_14;
}
*(_QWORD *)(v16 + v17 + 8) = 0LL;
}
}
}
}
if ( *(int *)(a3 + 64) <= 0 )
{
return 0LL;
}
else
{
v20 = 0LL;
while ( !(unsigned int)get_exported_names(
a1,
a2,
*(_QWORD *)(*(_QWORD *)(a3 + 24) + 16LL * *(int *)(*(_QWORD *)(a3 + 56) + 4 * v20) + 8),
1LL) )
{
if ( ++v20 >= *(int *)(a3 + 64) )
return 0LL;
}
return 0xFFFFFFFFLL;
}
}
else
{
result = 0LL;
v9 = 0LL;
while ( *(_QWORD *)(*(_QWORD *)a2 + 8 * v9) != a3 )
{
if ( v7 == ++v9 )
goto LABEL_5;
}
}
return result;
}
|
get_exported_names:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV EBP,ECX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOVSXD R8,dword ptr [RSI + 0xc]
TEST R8,R8
JLE 0x001445d6
MOV RCX,qword ptr [R14]
XOR EAX,EAX
XOR EDX,EDX
LAB_001445c4:
CMP qword ptr [RCX + RDX*0x8],RBX
JZ 0x0014471b
INC RDX
CMP R8,RDX
JNZ 0x001445c4
LAB_001445d6:
CMP dword ptr [R14 + 0x8],R8D
MOV qword ptr [RSP + 0x8],R15
JLE 0x0014472a
LAB_001445e5:
MOV RAX,qword ptr [R14]
LEA ECX,[R8 + 0x1]
MOV dword ptr [R14 + 0xc],ECX
MOVSXD RCX,R8D
MOV qword ptr [RAX + RCX*0x8],RBX
CMP dword ptr [RBX + 0x30],0x0
JLE 0x001446cf
LEA RSI,[R14 + 0x10]
LEA R13,[R14 + 0x18]
XOR R15D,R15D
LAB_0014460c:
MOV R12,qword ptr [RBX + 0x28]
MOV RCX,R15
SHL RCX,0x5
MOV EAX,dword ptr [R12 + RCX*0x1 + 0x18]
TEST EBP,EBP
JZ 0x00144625
CMP EAX,0x16
JZ 0x0014468f
LAB_00144625:
MOVSXD R8,dword ptr [R14 + 0x1c]
TEST R8,R8
JLE 0x00144648
MOV RDX,qword ptr [RSI]
MOV R9,R8
SHL R9,0x4
XOR EDI,EDI
LAB_0014463a:
CMP dword ptr [RDX + RDI*0x1],EAX
JZ 0x00144680
ADD RDI,0x10
CMP R9,RDI
JNZ 0x0014463a
LAB_00144648:
ADD R12,RCX
CMP dword ptr [R13],R8D
JLE 0x001446a1
LAB_00144651:
MOV RDX,qword ptr [R14 + 0x10]
MOVSXD RDI,R8D
INC R8D
SHL RDI,0x4
LEA RCX,[RDX + RDI*0x1]
MOV dword ptr [R14 + 0x1c],R8D
MOV dword ptr [RDX + RDI*0x1],EAX
TEST EBP,EBP
JNZ 0x00144676
CMP dword ptr [R12 + 0x10],0x0
JZ 0x0014468b
LAB_00144676:
MOV qword ptr [RCX + 0x8],0x0
JMP 0x0014468f
LAB_00144680:
MOV qword ptr [RDX + RDI*0x1 + 0x8],0x0
JMP 0x0014468f
LAB_0014468b:
MOV qword ptr [RCX + 0x8],R12
LAB_0014468f:
INC R15
MOVSXD RAX,dword ptr [RBX + 0x30]
CMP R15,RAX
JL 0x0014460c
JMP 0x001446cf
LAB_001446a1:
INC R8D
MOV RDI,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x10],RSI
MOV EDX,0x10
MOV RCX,R13
CALL 0x001444ee
TEST EAX,EAX
JNZ 0x00144716
MOV R8D,dword ptr [R14 + 0x1c]
MOV EAX,dword ptr [R12 + 0x18]
MOV RSI,qword ptr [RSP + 0x10]
JMP 0x00144651
LAB_001446cf:
CMP dword ptr [RBX + 0x40],0x0
JLE 0x00144712
XOR R15D,R15D
MOV R12,qword ptr [RSP + 0x8]
LAB_001446dd:
MOV RAX,qword ptr [RBX + 0x18]
MOV RCX,qword ptr [RBX + 0x38]
MOVSXD RCX,dword ptr [RCX + R15*0x4]
SHL RCX,0x4
MOV RDX,qword ptr [RAX + RCX*0x1 + 0x8]
MOV RDI,R12
MOV RSI,R14
MOV ECX,0x1
CALL 0x0014459b
TEST EAX,EAX
JNZ 0x00144716
INC R15
MOVSXD RAX,dword ptr [RBX + 0x40]
CMP R15,RAX
JL 0x001446dd
LAB_00144712:
XOR EAX,EAX
JMP 0x0014471b
LAB_00144716:
MOV EAX,0xffffffff
LAB_0014471b:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014472a:
LEA RCX,[R14 + 0x8]
INC R8D
MOV RDI,R15
MOV RSI,R14
MOV EDX,0x8
CALL 0x001444ee
MOV ECX,EAX
MOV EAX,0xffffffff
TEST ECX,ECX
JNZ 0x0014471b
MOV R8D,dword ptr [R14 + 0xc]
JMP 0x001445e5
|
int8 get_exported_names(int8 param_1,long *param_2,long param_3,int param_4)
{
int iVar1;
long lVar2;
long lVar3;
int iVar4;
long lVar5;
iVar1 = *(int *)((long)param_2 + 0xc);
if (0 < (long)iVar1) {
lVar2 = 0;
do {
if (*(long *)(*param_2 + lVar2 * 8) == param_3) {
return 0;
}
lVar2 = lVar2 + 1;
} while (iVar1 != lVar2);
}
if ((int)param_2[1] <= iVar1) {
iVar1 = js_realloc_array(param_1,param_2,8,param_2 + 1,iVar1 + 1);
if (iVar1 != 0) {
return 0xffffffff;
}
iVar1 = *(int *)((long)param_2 + 0xc);
}
*(int *)((long)param_2 + 0xc) = iVar1 + 1;
*(long *)(*param_2 + (long)iVar1 * 8) = param_3;
if (0 < *(int *)(param_3 + 0x30)) {
lVar2 = 0;
do {
iVar1 = *(int *)(*(long *)(param_3 + 0x28) + 0x18 + lVar2 * 0x20);
if ((param_4 == 0) || (iVar1 != 0x16)) {
iVar4 = *(int *)((long)param_2 + 0x1c);
if (0 < (long)iVar4) {
lVar5 = param_2[2];
lVar3 = 0;
do {
if (*(int *)(lVar5 + lVar3) == iVar1) {
*(int8 *)(lVar5 + 8 + lVar3) = 0;
goto LAB_0014468f;
}
lVar3 = lVar3 + 0x10;
} while ((long)iVar4 << 4 != lVar3);
}
lVar5 = *(long *)(param_3 + 0x28) + lVar2 * 0x20;
if ((int)param_2[3] <= iVar4) {
iVar1 = js_realloc_array(param_1,param_2 + 2,0x10,param_2 + 3,iVar4 + 1);
if (iVar1 != 0) {
return 0xffffffff;
}
iVar4 = *(int *)((long)param_2 + 0x1c);
iVar1 = *(int *)(lVar5 + 0x18);
}
lVar3 = param_2[2] + (long)iVar4 * 0x10;
*(int *)((long)param_2 + 0x1c) = iVar4 + 1;
*(int *)(param_2[2] + (long)iVar4 * 0x10) = iVar1;
if ((param_4 == 0) && (*(int *)(lVar5 + 0x10) == 0)) {
*(long *)(lVar3 + 8) = lVar5;
}
else {
*(int8 *)(lVar3 + 8) = 0;
}
}
LAB_0014468f:
lVar2 = lVar2 + 1;
} while (lVar2 < *(int *)(param_3 + 0x30));
}
if (0 < *(int *)(param_3 + 0x40)) {
lVar2 = 0;
do {
iVar1 = get_exported_names(param_1,param_2,
*(int8 *)
(*(long *)(param_3 + 0x18) + 8 +
(long)*(int *)(*(long *)(param_3 + 0x38) + lVar2 * 4) * 0x10),1);
if (iVar1 != 0) {
return 0xffffffff;
}
lVar2 = lVar2 + 1;
} while (lVar2 < *(int *)(param_3 + 0x40));
}
return 0;
}
|
|
57,411
|
my_longlong10_to_str_8bit
|
eloqsql/strings/ctype-simple.c
|
size_t my_longlong10_to_str_8bit(CHARSET_INFO *cs __attribute__((unused)),
char *dst, size_t len, int radix,
longlong val)
{
char buffer[65];
register char *p, *e;
long long_val;
uint sign= 0;
ulonglong uval = (ulonglong)val;
if (radix < 0)
{
if (val < 0)
{
/* Avoid integer overflow in (-val) for LONGLONG_MIN (BUG#31799). */
uval = (ulonglong)0 - uval;
*dst++= '-';
len--;
sign= 1;
}
}
e = p = &buffer[sizeof(buffer)-1];
*p= 0;
if (uval == 0)
{
*--p= '0';
len= 1;
goto cnv;
}
while (uval > (ulonglong) LONG_MAX)
{
ulonglong quo= uval/(uint) 10;
uint rem= (uint) (uval- quo* (uint) 10);
*--p = '0' + rem;
uval= quo;
}
long_val= (long) uval;
while (long_val != 0)
{
long quo= long_val/10;
*--p = (char) ('0' + (long_val - quo*10));
long_val= quo;
}
len= MY_MIN(len, (size_t) (e-p));
cnv:
memcpy(dst, p, len);
return len+sign;
}
|
O0
|
c
|
my_longlong10_to_str_8bit:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x58(%rbp)
movq %rsi, -0x60(%rbp)
movq %rdx, -0x68(%rbp)
movl %ecx, -0x6c(%rbp)
movq %r8, -0x78(%rbp)
movl $0x0, -0x94(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0xa0(%rbp)
cmpl $0x0, -0x6c(%rbp)
jge 0x94057
cmpq $0x0, -0x78(%rbp)
jge 0x94055
xorl %eax, %eax
subq -0xa0(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x60(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x60(%rbp)
movb $0x2d, (%rax)
movq -0x68(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x68(%rbp)
movl $0x1, -0x94(%rbp)
jmp 0x94057
leaq -0x50(%rbp), %rax
addq $0x40, %rax
movq %rax, -0x80(%rbp)
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rax
movb $0x0, (%rax)
cmpq $0x0, -0xa0(%rbp)
jne 0x9409b
movq -0x80(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x80(%rbp)
movb $0x30, -0x1(%rax)
movq $0x1, -0x68(%rbp)
jmp 0x941bb
jmp 0x9409d
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rax, -0xa0(%rbp)
jbe 0x9410d
movq -0xa0(%rbp), %rax
movl $0xa, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, -0xa8(%rbp)
movq -0xa0(%rbp), %rax
imulq $0xa, -0xa8(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0xac(%rbp)
movl -0xac(%rbp), %eax
addl $0x30, %eax
movb %al, %cl
movq -0x80(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x80(%rbp)
movb %cl, -0x1(%rax)
movq -0xa8(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0x9409d
movq -0xa0(%rbp), %rax
movq %rax, -0x90(%rbp)
cmpq $0x0, -0x90(%rbp)
je 0x94177
movq -0x90(%rbp), %rax
movl $0xa, %ecx
cqto
idivq %rcx
movq %rax, -0xb8(%rbp)
movq -0x90(%rbp), %rax
imulq $0xa, -0xb8(%rbp), %rcx
subq %rcx, %rax
addq $0x30, %rax
movb %al, %cl
movq -0x80(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x80(%rbp)
movb %cl, -0x1(%rax)
movq -0xb8(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x9411b
movq -0x68(%rbp), %rax
movq -0x88(%rbp), %rcx
movq -0x80(%rbp), %rdx
subq %rdx, %rcx
cmpq %rcx, %rax
jae 0x9419b
movq -0x68(%rbp), %rax
movq %rax, -0xc0(%rbp)
jmp 0x941b0
movq -0x88(%rbp), %rax
movq -0x80(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0x360b0
movq -0x68(%rbp), %rax
movl -0x94(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0xc8(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x94202
movq -0xc8(%rbp), %rax
addq $0xd0, %rsp
popq %rbp
retq
callq 0x362a0
nopw (%rax,%rax)
|
my_longlong10_to_str_8bit:
push rbp
mov rbp, rsp
sub rsp, 0D0h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_58], rdi
mov [rbp+var_60], rsi
mov [rbp+var_68], rdx
mov [rbp+var_6C], ecx
mov [rbp+var_78], r8
mov [rbp+var_94], 0
mov rax, [rbp+var_78]
mov [rbp+var_A0], rax
cmp [rbp+var_6C], 0
jge short loc_94057
cmp [rbp+var_78], 0
jge short loc_94055
xor eax, eax
sub rax, [rbp+var_A0]
mov [rbp+var_A0], rax
mov rax, [rbp+var_60]
mov rcx, rax
add rcx, 1
mov [rbp+var_60], rcx
mov byte ptr [rax], 2Dh ; '-'
mov rax, [rbp+var_68]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_68], rax
mov [rbp+var_94], 1
loc_94055:
jmp short $+2
loc_94057:
lea rax, [rbp+var_50]
add rax, 40h ; '@'
mov [rbp+var_80], rax
mov [rbp+var_88], rax
mov rax, [rbp+var_80]
mov byte ptr [rax], 0
cmp [rbp+var_A0], 0
jnz short loc_9409B
mov rax, [rbp+var_80]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_80], rcx
mov byte ptr [rax-1], 30h ; '0'
mov [rbp+var_68], 1
jmp loc_941BB
loc_9409B:
jmp short $+2
loc_9409D:
mov rax, 7FFFFFFFFFFFFFFFh
cmp [rbp+var_A0], rax
jbe short loc_9410D
mov rax, [rbp+var_A0]
mov ecx, 0Ah
xor edx, edx
div rcx
mov [rbp+var_A8], rax
mov rax, [rbp+var_A0]
imul rcx, [rbp+var_A8], 0Ah
sub rax, rcx
mov [rbp+var_AC], eax
mov eax, [rbp+var_AC]
add eax, 30h ; '0'
mov cl, al
mov rax, [rbp+var_80]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_80], rdx
mov [rax-1], cl
mov rax, [rbp+var_A8]
mov [rbp+var_A0], rax
jmp short loc_9409D
loc_9410D:
mov rax, [rbp+var_A0]
mov [rbp+var_90], rax
loc_9411B:
cmp [rbp+var_90], 0
jz short loc_94177
mov rax, [rbp+var_90]
mov ecx, 0Ah
cqo
idiv rcx
mov [rbp+var_B8], rax
mov rax, [rbp+var_90]
imul rcx, [rbp+var_B8], 0Ah
sub rax, rcx
add rax, 30h ; '0'
mov cl, al
mov rax, [rbp+var_80]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_80], rdx
mov [rax-1], cl
mov rax, [rbp+var_B8]
mov [rbp+var_90], rax
jmp short loc_9411B
loc_94177:
mov rax, [rbp+var_68]
mov rcx, [rbp+var_88]
mov rdx, [rbp+var_80]
sub rcx, rdx
cmp rax, rcx
jnb short loc_9419B
mov rax, [rbp+var_68]
mov [rbp+var_C0], rax
jmp short loc_941B0
loc_9419B:
mov rax, [rbp+var_88]
mov rcx, [rbp+var_80]
sub rax, rcx
mov [rbp+var_C0], rax
loc_941B0:
mov rax, [rbp+var_C0]
mov [rbp+var_68], rax
loc_941BB:
mov rdi, [rbp+var_60]
mov rsi, [rbp+var_80]
mov rdx, [rbp+var_68]
call _memcpy
mov rax, [rbp+var_68]
mov ecx, [rbp+var_94]
add rax, rcx
mov [rbp+var_C8], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_94202
mov rax, [rbp+var_C8]
add rsp, 0D0h
pop rbp
retn
loc_94202:
call ___stack_chk_fail
|
long long my_longlong10_to_str_8bit(long long a1, _BYTE *a2, _BYTE *a3, int a4, long long a5)
{
char *v5; // rax
char *v6; // rax
_BYTE *v8; // [rsp+10h] [rbp-C0h]
unsigned long long v9; // [rsp+30h] [rbp-A0h]
unsigned int v10; // [rsp+3Ch] [rbp-94h]
signed long long i; // [rsp+40h] [rbp-90h]
char *v12; // [rsp+50h] [rbp-80h]
_BYTE *v13; // [rsp+68h] [rbp-68h]
long long v14; // [rsp+68h] [rbp-68h]
_BYTE *v15; // [rsp+70h] [rbp-60h]
char v16; // [rsp+BFh] [rbp-11h] BYREF
_BYTE v17[8]; // [rsp+C0h] [rbp-10h] BYREF
unsigned long long v18; // [rsp+C8h] [rbp-8h]
v18 = __readfsqword(0x28u);
v15 = a2;
v13 = a3;
v10 = 0;
v9 = a5;
if ( a4 < 0 && a5 < 0 )
{
v9 = -a5;
v15 = a2 + 1;
*a2 = 45;
v13 = a3 - 1;
v10 = 1;
}
v12 = v17;
v17[0] = 0;
if ( v9 )
{
while ( v9 > 0x7FFFFFFFFFFFFFFFLL )
{
v5 = v12--;
*(v5 - 1) = v9 % 0xA + 48;
v9 /= 0xAuLL;
}
for ( i = v9; i; i /= 10LL )
{
v6 = v12--;
*(v6 - 1) = i % 10 + 48;
}
if ( (unsigned long long)v13 >= v17 - v12 )
v8 = (_BYTE *)(v17 - v12);
else
v8 = v13;
v14 = (long long)v8;
}
else
{
v12 = &v16;
v16 = 48;
v14 = 1LL;
}
memcpy(v15, v12, v14);
return v10 + v14;
}
|
my_longlong10_to_str_8bit:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x58],RDI
MOV qword ptr [RBP + -0x60],RSI
MOV qword ptr [RBP + -0x68],RDX
MOV dword ptr [RBP + -0x6c],ECX
MOV qword ptr [RBP + -0x78],R8
MOV dword ptr [RBP + -0x94],0x0
MOV RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0xa0],RAX
CMP dword ptr [RBP + -0x6c],0x0
JGE 0x00194057
CMP qword ptr [RBP + -0x78],0x0
JGE 0x00194055
XOR EAX,EAX
SUB RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0xa0],RAX
MOV RAX,qword ptr [RBP + -0x60]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x60],RCX
MOV byte ptr [RAX],0x2d
MOV RAX,qword ptr [RBP + -0x68]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x68],RAX
MOV dword ptr [RBP + -0x94],0x1
LAB_00194055:
JMP 0x00194057
LAB_00194057:
LEA RAX,[RBP + -0x50]
ADD RAX,0x40
MOV qword ptr [RBP + -0x80],RAX
MOV qword ptr [RBP + -0x88],RAX
MOV RAX,qword ptr [RBP + -0x80]
MOV byte ptr [RAX],0x0
CMP qword ptr [RBP + -0xa0],0x0
JNZ 0x0019409b
MOV RAX,qword ptr [RBP + -0x80]
MOV RCX,RAX
ADD RCX,-0x1
MOV qword ptr [RBP + -0x80],RCX
MOV byte ptr [RAX + -0x1],0x30
MOV qword ptr [RBP + -0x68],0x1
JMP 0x001941bb
LAB_0019409b:
JMP 0x0019409d
LAB_0019409d:
MOV RAX,0x7fffffffffffffff
CMP qword ptr [RBP + -0xa0],RAX
JBE 0x0019410d
MOV RAX,qword ptr [RBP + -0xa0]
MOV ECX,0xa
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0xa8],RAX
MOV RAX,qword ptr [RBP + -0xa0]
IMUL RCX,qword ptr [RBP + -0xa8],0xa
SUB RAX,RCX
MOV dword ptr [RBP + -0xac],EAX
MOV EAX,dword ptr [RBP + -0xac]
ADD EAX,0x30
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x80]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RBP + -0x80],RDX
MOV byte ptr [RAX + -0x1],CL
MOV RAX,qword ptr [RBP + -0xa8]
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x0019409d
LAB_0019410d:
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x90],RAX
LAB_0019411b:
CMP qword ptr [RBP + -0x90],0x0
JZ 0x00194177
MOV RAX,qword ptr [RBP + -0x90]
MOV ECX,0xa
CQO
IDIV RCX
MOV qword ptr [RBP + -0xb8],RAX
MOV RAX,qword ptr [RBP + -0x90]
IMUL RCX,qword ptr [RBP + -0xb8],0xa
SUB RAX,RCX
ADD RAX,0x30
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x80]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RBP + -0x80],RDX
MOV byte ptr [RAX + -0x1],CL
MOV RAX,qword ptr [RBP + -0xb8]
MOV qword ptr [RBP + -0x90],RAX
JMP 0x0019411b
LAB_00194177:
MOV RAX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x88]
MOV RDX,qword ptr [RBP + -0x80]
SUB RCX,RDX
CMP RAX,RCX
JNC 0x0019419b
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0xc0],RAX
JMP 0x001941b0
LAB_0019419b:
MOV RAX,qword ptr [RBP + -0x88]
MOV RCX,qword ptr [RBP + -0x80]
SUB RAX,RCX
MOV qword ptr [RBP + -0xc0],RAX
LAB_001941b0:
MOV RAX,qword ptr [RBP + -0xc0]
MOV qword ptr [RBP + -0x68],RAX
LAB_001941bb:
MOV RDI,qword ptr [RBP + -0x60]
MOV RSI,qword ptr [RBP + -0x80]
MOV RDX,qword ptr [RBP + -0x68]
CALL 0x001360b0
MOV RAX,qword ptr [RBP + -0x68]
MOV ECX,dword ptr [RBP + -0x94]
ADD RAX,RCX
MOV qword ptr [RBP + -0xc8],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00194202
MOV RAX,qword ptr [RBP + -0xc8]
ADD RSP,0xd0
POP RBP
RET
LAB_00194202:
CALL 0x001362a0
|
long my_longlong10_to_str_8bit
(int8 param_1,int1 *param_2,ulong param_3,int param_4,ulong param_5)
{
char *pcVar1;
long in_FS_OFFSET;
ulong local_c8;
ulong local_a8;
uint local_9c;
ulong local_98;
char *local_88;
size_t local_70;
int1 *local_68;
char local_19 [9];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_9c = 0;
local_a8 = param_5;
local_70 = param_3;
local_68 = param_2;
if (param_4 < 0) {
if ((long)param_5 < 0) {
local_a8 = -param_5;
local_68 = param_2 + 1;
*param_2 = 0x2d;
local_70 = param_3 - 1;
}
local_9c = (uint)((long)param_5 < 0);
}
pcVar1 = local_19 + 1;
local_19[1] = 0;
local_88 = pcVar1;
if (local_a8 == 0) {
local_88 = local_19;
local_19[0] = '0';
local_70 = 1;
}
else {
while (0x7fffffffffffffff < local_a8) {
local_88[-1] = (char)local_a8 + (char)(local_a8 / 10) * -10 + '0';
local_a8 = local_a8 / 10;
local_88 = local_88 + -1;
}
local_98 = local_a8;
while (local_98 != 0) {
local_88[-1] = (char)local_98 + (char)((long)local_98 / 10) * -10 + '0';
local_98 = (long)local_98 / 10;
local_88 = local_88 + -1;
}
if (local_70 < (ulong)((long)pcVar1 - (long)local_88)) {
local_c8 = local_70;
}
else {
local_c8 = (long)pcVar1 - (long)local_88;
}
local_70 = local_c8;
}
memcpy(local_68,local_88,local_70);
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_70 + local_9c;
}
|
|
57,412
|
do_command(THD*, bool)
|
eloqsql/sql/sql_parse.cc
|
dispatch_command_return do_command(THD *thd, bool blocking)
{
dispatch_command_return return_value;
char *packet= 0;
ulong packet_length;
NET *net= &thd->net;
enum enum_server_command command;
DBUG_ENTER("do_command");
#ifdef WITH_WSREP
DBUG_ASSERT(!thd->async_state.pending_ops() ||
(WSREP(thd) &&
thd->wsrep_trx().state() == wsrep::transaction::s_aborted));
#else
DBUG_ASSERT(!thd->async_state.pending_ops());
#endif
if (thd->async_state.m_state == thd_async_state::enum_async_state::RESUMED)
{
/*
Resuming previously suspended command.
Restore the state
*/
command = thd->async_state.m_command;
packet = thd->async_state.m_packet.str;
packet_length = (ulong)thd->async_state.m_packet.length;
goto resume;
}
/*
indicator of uninitialized lex => normal flow of errors handling
(see my_message_sql)
*/
thd->lex->current_select= 0;
/*
This thread will do a blocking read from the client which
will be interrupted when the next command is received from
the client, the connection is closed or "net_wait_timeout"
number of seconds has passed.
*/
if (!thd->skip_wait_timeout)
my_net_set_read_timeout(net, thd->get_net_wait_timeout());
/* Errors and diagnostics are cleared once here before query */
thd->clear_error(1);
net_new_transaction(net);
/* Save for user statistics */
thd->start_bytes_received= thd->status_var.bytes_received;
/*
Synchronization point for testing of KILL_CONNECTION.
This sync point can wait here, to simulate slow code execution
between the last test of thd->killed and blocking in read().
The goal of this test is to verify that a connection does not
hang, if it is killed at this point of execution.
(Bug#37780 - main.kill fails randomly)
Note that the sync point wait itself will be terminated by a
kill. In this case it consumes a condition broadcast, but does
not change anything else. The consumed broadcast should not
matter here, because the read/recv() below doesn't use it.
*/
DEBUG_SYNC(thd, "before_do_command_net_read");
packet_length= my_net_read_packet(net, 1);
if (unlikely(packet_length == packet_error))
{
DBUG_PRINT("info",("Got error %d reading command from socket %s",
net->error,
vio_description(net->vio)));
/* Instrument this broken statement as "statement/com/error" */
thd->m_statement_psi= MYSQL_REFINE_STATEMENT(thd->m_statement_psi,
com_statement_info[COM_END].
m_key);
/* Check if we can continue without closing the connection */
/* The error must be set. */
DBUG_ASSERT(thd->is_error());
thd->protocol->end_statement();
/* Mark the statement completed. */
MYSQL_END_STATEMENT(thd->m_statement_psi, thd->get_stmt_da());
thd->m_statement_psi= NULL;
thd->m_digest= NULL;
if (net->error != 3)
{
return_value= DISPATCH_COMMAND_CLOSE_CONNECTION; // We have to close it.
goto out;
}
net->error= 0;
return_value= DISPATCH_COMMAND_SUCCESS;
goto out;
}
packet= (char*) net->read_pos;
/*
'packet_length' contains length of data, as it was stored in packet
header. In case of malformed header, my_net_read returns zero.
If packet_length is not zero, my_net_read ensures that the returned
number of bytes was actually read from network.
There is also an extra safety measure in my_net_read:
it sets packet[packet_length]= 0, but only for non-zero packets.
*/
if (packet_length == 0) /* safety */
{
/* Initialize with COM_SLEEP packet */
packet[0]= (uchar) COM_SLEEP;
packet_length= 1;
}
/* Do not rely on my_net_read, extra safety against programming errors. */
packet[packet_length]= '\0'; /* safety */
command= fetch_command(thd, packet);
#ifdef WITH_WSREP
DEBUG_SYNC(thd, "wsrep_before_before_command");
/*
If this command does not return a result, then we
instruct wsrep_before_command() to skip result handling.
This causes BF aborted transaction to roll back but keep
the error state until next command which is able to return
a result to the client.
*/
if (unlikely(wsrep_service_started) &&
wsrep_before_command(thd, wsrep_command_no_result(command)))
{
/*
Aborted by background rollbacker thread.
Handle error here and jump straight to out.
Notice that thd->store_globals() is called
in wsrep_before_command().
*/
WSREP_LOG_THD(thd, "enter found BF aborted");
DBUG_ASSERT(!thd->mdl_context.has_locks());
DBUG_ASSERT(!thd->get_stmt_da()->is_set());
/* We let COM_QUIT and COM_STMT_CLOSE to execute even if wsrep aborted. */
if (command == COM_STMT_EXECUTE)
{
WSREP_DEBUG("PS BF aborted at do_command");
thd->wsrep_delayed_BF_abort= true;
}
if (command != COM_STMT_CLOSE &&
command != COM_STMT_EXECUTE &&
command != COM_QUIT)
{
my_error(ER_LOCK_DEADLOCK, MYF(0));
WSREP_DEBUG("Deadlock error for: %s", thd->query());
thd->reset_killed();
thd->mysys_var->abort = 0;
thd->wsrep_retry_counter = 0;
/* Instrument this broken statement as "statement/com/error" */
thd->m_statement_psi= MYSQL_REFINE_STATEMENT(thd->m_statement_psi,
com_statement_info[COM_END].
m_key);
thd->protocol->end_statement();
/* Mark the statement completed. */
MYSQL_END_STATEMENT(thd->m_statement_psi, thd->get_stmt_da());
thd->m_statement_psi= NULL;
thd->m_digest= NULL;
return_value= DISPATCH_COMMAND_SUCCESS;
wsrep_after_command_before_result(thd);
goto out;
}
}
if (WSREP(thd))
{
/*
* bail out if DB snapshot has not been installed. We however,
* allow queries "SET" and "SHOW", they are trapped later in execute_command
*/
if (!(thd->wsrep_applier) &&
(!wsrep_ready_get() || wsrep_reject_queries != WSREP_REJECT_NONE) &&
(server_command_flags[command] & CF_SKIP_WSREP_CHECK) == 0)
{
my_message(ER_UNKNOWN_COM_ERROR,
"WSREP has not yet prepared node for application use", MYF(0));
thd->protocol->end_statement();
/* Performance Schema Interface instrumentation end. */
MYSQL_END_STATEMENT(thd->m_statement_psi, thd->get_stmt_da());
thd->m_statement_psi= NULL;
thd->m_digest= NULL;
return_value= DISPATCH_COMMAND_SUCCESS;
wsrep_after_command_before_result(thd);
goto out;
}
}
#endif /* WITH_WSREP */
/* Restore read timeout value */
my_net_set_read_timeout(net, thd->variables.net_read_timeout);
DBUG_ASSERT(packet_length);
DBUG_ASSERT(!thd->apc_target.is_enabled());
resume:
return_value= dispatch_command(command, thd, packet+1,
(uint) (packet_length-1), blocking);
if (return_value == DISPATCH_COMMAND_WOULDBLOCK)
{
/* Save current state, and resume later.*/
thd->async_state.m_command= command;
thd->async_state.m_packet={packet,packet_length};
DBUG_RETURN(return_value);
}
DBUG_ASSERT(!thd->apc_target.is_enabled());
out:
thd->lex->restore_set_statement_var();
/* The statement instrumentation must be closed in all cases. */
DBUG_ASSERT(thd->m_digest == NULL);
DBUG_ASSERT(thd->m_statement_psi == NULL);
#ifdef WITH_WSREP
if (packet_length != packet_error)
{
/* there was a command to process, and before_command() has been called */
if (unlikely(wsrep_service_started))
wsrep_after_command_after_result(thd);
}
if (thd->wsrep_delayed_BF_abort)
{
my_error(ER_LOCK_DEADLOCK, MYF(0));
WSREP_DEBUG("Deadlock error for PS query: %s", thd->query());
thd->reset_killed();
thd->mysys_var->abort = 0;
thd->wsrep_retry_counter = 0;
thd->wsrep_delayed_BF_abort= false;
}
#endif /* WITH_WSREP */
DBUG_RETURN(return_value);
}
|
O3
|
cpp
|
do_command(THD*, bool):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
cmpl $0x2, 0x61e8(%rdi)
jne 0x75b43c
movl 0x61ec(%rbx), %r15d
movq 0x61f0(%rbx), %r12
movq 0x61f8(%rbx), %r13
jmp 0x75b619
movl %esi, -0x2c(%rbp)
leaq 0x2c8(%rbx), %r14
movq 0x58(%rbx), %rax
movq $0x0, 0xd28(%rax)
cmpb $0x0, 0x27b6(%rbx)
jne 0x75b470
movq %rbx, %rdi
callq 0x767f9e
movq %r14, %rdi
movl %eax, %esi
callq 0x9db979
movq 0x6018(%rbx), %rdi
callq 0x733926
movb $0x0, 0x3fca(%rbx)
movl 0x3ebc(%rbx), %eax
cmpl $0x2, %eax
jne 0x75b496
movq %rbx, %rdi
callq 0x720816
leaq 0x58(%rbx), %r15
leaq 0x6018(%rbx), %r12
movl $0x0, 0x328(%rbx)
movq 0x1420(%rbx), %rax
movq %rax, 0x4018(%rbx)
movq %r14, %rdi
movl $0x1, %esi
callq 0x9db3a1
cmpq $-0x1, %rax
je 0x75b6fe
movq %rax, %r13
movq %r12, %rdx
movq 0x2e8(%rbx), %r12
testq %rax, %rax
movq %r15, -0x38(%rbp)
je 0x75b4ec
movb (%r12), %al
jmp 0x75b4f9
movb $0x0, (%r12)
movl $0x1, %r13d
xorl %eax, %eax
movb $0x0, (%r12,%r13)
leal -0x20(%rax), %ecx
cmpb $-0x26, %cl
movzbl %al, %eax
movl $0xff, %ecx
cmovael %eax, %ecx
movzbl %cl, %r15d
leaq 0x167804f(%rip), %rax # 0x1dd3569
cmpb $0x1, (%rax)
je 0x75b71b
leaq 0x16780fa(%rip), %rax # 0x1dd3624
cmpb $0x1, (%rax)
jne 0x75b608
cmpb $0x0, 0xbd0(%rbx)
je 0x75b608
cmpb $0x0, 0x6299(%rbx)
jne 0x75b608
callq 0xaf6310
testb %al, %al
je 0x75b567
leaq 0x1678f43(%rip), %rax # 0x1dd44a0
cmpq $0x0, (%rax)
je 0x75b608
movl %r15d, %eax
leaq 0xe02a6f(%rip), %rcx # 0x155dfe0
testb $0x4, (%rcx,%rax,4)
jne 0x75b608
leaq 0x5e50bc(%rip), %rsi # 0xd4063e
movl $0x417, %edi # imm = 0x417
xorl %edx, %edx
callq 0xcbf8f2
movq 0x590(%rbx), %rdi
callq 0x61ea66
movq 0x3b90(%rbx), %r14
movq 0x6018(%rbx), %r15
leaq 0xd81f99(%rip), %r12 # 0x14dd548
movq (%r12), %rax
callq *0x248(%rax)
testq %r14, %r14
jne 0x75b77a
xorl %eax, %eax
movq %rax, 0x3b90(%rbx)
movq %rax, 0x3b48(%rbx)
cmpl $0x0, 0x6560(%rbx)
je 0x75b5f7
leaq 0x37e0(%rbx), %rax
cmpq %rax, 0x3998(%rbx)
jne 0x75b5f7
leaq 0x6518(%rbx), %rdi
callq 0xd19f3a
movq -0x38(%rbp), %rax
movq (%rax), %rdi
callq 0x746f28
xorl %r14d, %r14d
jmp 0x75b668
movl 0x9c8(%rbx), %esi
movq %r14, %rdi
callq 0x9db979
movl -0x2c(%rbp), %esi
leaq 0x1(%r12), %rdx
leal -0x1(%r13), %ecx
movzbl %sil, %r8d
movl %r15d, %edi
movq %rbx, %rsi
callq 0x759594
cmpl $0x2, %eax
jne 0x75b656
movl %r15d, 0x61ec(%rbx)
movq %r12, 0x61f0(%rbx)
movq %r13, 0x61f8(%rbx)
movl $0x2, %r14d
jmp 0x75b6ec
movl %eax, %r14d
movq 0x58(%rbx), %rdi
callq 0x746f28
cmpq $-0x1, %r13
je 0x75b678
leaq 0x1677efa(%rip), %rax # 0x1dd3569
cmpb $0x1, (%rax)
je 0x75b748
cmpb $0x1, 0x64d0(%rbx)
jne 0x75b6ec
movl $0x4bd, %edi # imm = 0x4BD
xorl %esi, %esi
xorl %eax, %eax
callq 0xcbf683
leaq 0x1677eaa(%rip), %rax # 0x1dd3540
cmpq $0x0, (%rax)
je 0x75b6c1
movq 0x60(%rbx), %r8
leaq 0x25a1c6(%rip), %rdi # 0x9b586d
leaq 0x5e4e84(%rip), %rsi # 0xd40532
leaq 0x5e4fbd(%rip), %rcx # 0xd40672
movl $0x5a2, %edx # imm = 0x5A2
xorl %eax, %eax
callq 0xaf5e8c
movq %rbx, %rdi
callq 0x720816
movq 0x2708(%rbx), %rax
movl $0x0, 0xe0(%rax)
movq $0x0, 0x6418(%rbx)
movb $0x0, 0x64d0(%rbx)
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x44(%rbp), %r14
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x62728d
movl (%r14), %r14d
jmp 0x75b678
leaq -0x40(%rbp), %rcx
movl %r15d, %edi
movq %rbx, %rsi
callq 0x6270a3
cmpw $0x1, %ax
je 0x75b5f7
movzwl %ax, %eax
testl %eax, %eax
je 0x75b523
movq -0x40(%rbp), %rdi
jmp 0x75b5f2
cmpl $0x0, 0x6560(%rbx)
je 0x75b678
leaq 0x37e0(%rbx), %rax
cmpq %rax, 0x3998(%rbx)
jne 0x75b678
leaq 0x6518(%rbx), %rdi
callq 0xd1a056
jmp 0x75b678
movq (%r12), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0x2f0(%rax)
jmp 0x75b5c2
|
_Z10do_commandP3THDb:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov rbx, rdi
cmp dword ptr [rdi+61E8h], 2
jnz short loc_75B43C
mov r15d, [rbx+61ECh]
mov r12, [rbx+61F0h]
mov r13, [rbx+61F8h]
jmp loc_75B619
loc_75B43C:
mov [rbp+var_2C], esi
lea r14, [rbx+2C8h]
mov rax, [rbx+58h]
mov qword ptr [rax+0D28h], 0
cmp byte ptr [rbx+27B6h], 0
jnz short loc_75B470
mov rdi, rbx; this
call _ZN3THD20get_net_wait_timeoutEv; THD::get_net_wait_timeout(void)
mov rdi, r14
mov esi, eax
call my_net_set_read_timeout
loc_75B470:
mov rdi, [rbx+6018h]; this
call _ZN16Diagnostics_area22reset_diagnostics_areaEv; Diagnostics_area::reset_diagnostics_area(void)
mov byte ptr [rbx+3FCAh], 0
mov eax, [rbx+3EBCh]
cmp eax, 2
jnz short loc_75B496
mov rdi, rbx; this
call _ZN3THD12reset_killedEv; THD::reset_killed(void)
loc_75B496:
lea r15, [rbx+58h]
lea r12, [rbx+6018h]
mov dword ptr [rbx+328h], 0
mov rax, [rbx+1420h]
mov [rbx+4018h], rax
mov rdi, r14
mov esi, 1
call my_net_read_packet
cmp rax, 0FFFFFFFFFFFFFFFFh
jz loc_75B6FE
mov r13, rax
mov rdx, r12
mov r12, [rbx+2E8h]
test rax, rax
mov [rbp+var_38], r15
jz short loc_75B4EC
mov al, [r12]
jmp short loc_75B4F9
loc_75B4EC:
mov byte ptr [r12], 0
mov r13d, 1
xor eax, eax
loc_75B4F9:
mov byte ptr [r12+r13], 0
lea ecx, [rax-20h]
cmp cl, 0DAh
movzx eax, al
mov ecx, 0FFh
cmovnb ecx, eax
movzx r15d, cl
lea rax, wsrep_service_started
cmp byte ptr [rax], 1
jz loc_75B71B
loc_75B523:
lea rax, WSREP_PROVIDER_EXISTS_
cmp byte ptr [rax], 1
jnz loc_75B608
cmp byte ptr [rbx+0BD0h], 0
jz loc_75B608
cmp byte ptr [rbx+6299h], 0
jnz loc_75B608
call _Z15wsrep_ready_getv; wsrep_ready_get(void)
test al, al
jz short loc_75B567
lea rax, wsrep_reject_queries
cmp qword ptr [rax], 0
jz loc_75B608
loc_75B567:
mov eax, r15d
lea rcx, server_command_flags
test byte ptr [rcx+rax*4], 4
jnz loc_75B608
lea rsi, aWsrepHasNotYet; "WSREP has not yet prepared node for app"...
mov edi, 417h
xor edx, edx
call my_message
mov rdi, [rbx+590h]; this
call _ZN8Protocol13end_statementEv; Protocol::end_statement(void)
mov r14, [rbx+3B90h]
mov r15, [rbx+6018h]
lea r12, PSI_server
mov rax, [r12]
call qword ptr [rax+248h]
test r14, r14
jnz loc_75B77A
loc_75B5C2:
xor eax, eax
mov [rbx+3B90h], rax
mov [rbx+3B48h], rax
cmp dword ptr [rbx+6560h], 0
jz short loc_75B5F7
lea rax, [rbx+37E0h]
cmp [rbx+3998h], rax
jnz short loc_75B5F7
lea rdi, [rbx+6518h]; this
loc_75B5F2:
call _ZN5wsrep12client_state27after_command_before_resultEv; wsrep::client_state::after_command_before_result(void)
loc_75B5F7:
mov rax, [rbp+var_38]
mov rdi, [rax]; this
call _ZN3LEX25restore_set_statement_varEv; LEX::restore_set_statement_var(void)
xor r14d, r14d
jmp short loc_75B668
loc_75B608:
mov esi, [rbx+9C8h]
mov rdi, r14
call my_net_set_read_timeout
mov esi, [rbp+var_2C]
loc_75B619:
lea rdx, [r12+1]
lea ecx, [r13-1]
movzx r8d, sil
mov edi, r15d
mov rsi, rbx
call _Z16dispatch_command19enum_server_commandP3THDPcjb; dispatch_command(enum_server_command,THD *,char *,uint,bool)
cmp eax, 2
jnz short loc_75B656
mov [rbx+61ECh], r15d
mov [rbx+61F0h], r12
mov [rbx+61F8h], r13
mov r14d, 2
jmp loc_75B6EC
loc_75B656:
mov r14d, eax
mov rdi, [rbx+58h]; this
call _ZN3LEX25restore_set_statement_varEv; LEX::restore_set_statement_var(void)
cmp r13, 0FFFFFFFFFFFFFFFFh
jz short loc_75B678
loc_75B668:
lea rax, wsrep_service_started
cmp byte ptr [rax], 1
jz loc_75B748
loc_75B678:
cmp byte ptr [rbx+64D0h], 1
jnz short loc_75B6EC
mov edi, 4BDh
xor esi, esi
xor eax, eax
call my_error
lea rax, wsrep_debug
cmp qword ptr [rax], 0
jz short loc_75B6C1
mov r8, [rbx+60h]
lea rdi, _Z22glog_print_informationPKciS0_z; void (*)(const char *, int, const char *, ...)
lea rsi, aWorkspaceLlm4b_14; "/workspace/llm4binary/github2025/eloqsq"...
lea rcx, aDeadlockErrorF_0; "Deadlock error for PS query: %s"
mov edx, 5A2h; int
xor eax, eax
call _Z9WSREP_LOGPFvPKciS0_zES0_iS0_z; WSREP_LOG(void (*)(char const*,int,char const*,...),char const*,int,char const*,...)
loc_75B6C1:
mov rdi, rbx; this
call _ZN3THD12reset_killedEv; THD::reset_killed(void)
mov rax, [rbx+2708h]
mov dword ptr [rax+0E0h], 0
mov qword ptr [rbx+6418h], 0
mov byte ptr [rbx+64D0h], 0
loc_75B6EC:
mov eax, r14d
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_75B6FE:
lea r14, [rbp+var_44]
mov rdi, rbx
mov rsi, r12
mov rdx, r15
mov rcx, r14
call _Z10do_commandP3THDb_cold_2; do_command(THD *,bool) [clone]
mov r14d, [r14]
jmp loc_75B678
loc_75B71B:
lea rcx, [rbp+var_40]
mov edi, r15d
mov rsi, rbx
call _Z10do_commandP3THDb_cold_1; do_command(THD *,bool) [clone]
cmp ax, 1
jz loc_75B5F7
movzx eax, ax
test eax, eax
jz loc_75B523
mov rdi, [rbp+var_40]
jmp loc_75B5F2
loc_75B748:
cmp dword ptr [rbx+6560h], 0
jz loc_75B678
lea rax, [rbx+37E0h]
cmp [rbx+3998h], rax
jnz loc_75B678
lea rdi, [rbx+6518h]; this
call _ZN5wsrep12client_state26after_command_after_resultEv; wsrep::client_state::after_command_after_result(void)
jmp loc_75B678
loc_75B77A:
mov rax, [r12]
mov rdi, r14
mov rsi, r15
call qword ptr [rax+2F0h]
jmp loc_75B5C2
|
long long do_command(
THD *this,
int a2,
double a3,
__m128 a4,
__m128 a5,
__m128 a6,
double a7,
double a8,
__m128 a9,
__m128 a10)
{
unsigned int v11; // r15d
_BYTE *v12; // r12
long long v13; // r13
unsigned int net_wait_timeout; // eax
long long packet; // rax
unsigned __int8 v16; // al
unsigned __int8 v17; // cl
long long v18; // r14
long long v19; // r15
wsrep::client_state *v20; // rdi
int v21; // edx
int v22; // ecx
int v23; // r8d
int v24; // r9d
unsigned int v25; // r14d
unsigned int v26; // eax
__int16 v28; // ax
unsigned int v29; // [rsp+Ch] [rbp-44h] BYREF
wsrep::client_state *v30; // [rsp+10h] [rbp-40h] BYREF
THD ***v31; // [rsp+18h] [rbp-38h]
int v32; // [rsp+24h] [rbp-2Ch]
if ( *((_DWORD *)this + 6266) == 2 )
{
v11 = *((_DWORD *)this + 6267);
v12 = (_BYTE *)*((_QWORD *)this + 3134);
v13 = *((_QWORD *)this + 3135);
goto LABEL_28;
}
v32 = a2;
*(_QWORD *)(*((_QWORD *)this + 11) + 3368LL) = 0LL;
if ( !*((_BYTE *)this + 10166) )
{
net_wait_timeout = THD::get_net_wait_timeout(this);
my_net_set_read_timeout((char *)this + 712, net_wait_timeout);
}
Diagnostics_area::reset_diagnostics_area(*((Diagnostics_area **)this + 3075));
*((_BYTE *)this + 16330) = 0;
if ( *((_DWORD *)this + 4015) == 2 )
THD::reset_killed(this);
*((_DWORD *)this + 202) = 0;
*((_QWORD *)this + 2051) = *((_QWORD *)this + 644);
packet = my_net_read_packet((char *)this + 712, 1LL);
if ( packet == -1 )
{
do_command((long long)this, (long long *)this + 3075, (LEX **)this + 11, (int *)&v29);
v25 = v29;
goto LABEL_32;
}
v13 = packet;
v12 = (_BYTE *)*((_QWORD *)this + 93);
v31 = (THD ***)((char *)this + 88);
if ( packet )
{
v16 = *v12;
}
else
{
*v12 = 0;
v13 = 1LL;
v16 = 0;
}
v12[v13] = 0;
v17 = -1;
if ( (unsigned __int8)(v16 - 32) >= 0xDAu )
v17 = v16;
v11 = v17;
if ( wsrep_service_started == 1 )
{
v28 = do_command(v17, (long long)this, (long long *)this + 3075, &v30);
if ( v28 == 1 )
goto LABEL_26;
if ( v28 )
{
v20 = v30;
LABEL_25:
wsrep::client_state::after_command_before_result(v20);
LABEL_26:
LEX::restore_set_statement_var(*v31);
v25 = 0;
LABEL_31:
if ( wsrep_service_started == 1
&& *((_DWORD *)this + 6488)
&& *((THD **)this + 1843) == (THD *)((char *)this + 14304) )
{
wsrep::client_state::after_command_after_result((THD *)((char *)this + 25880));
}
goto LABEL_32;
}
}
if ( WSREP_PROVIDER_EXISTS_ == 1
&& *((_BYTE *)this + 3024)
&& !*((_BYTE *)this + 25241)
&& (!(unsigned __int8)wsrep_ready_get() || wsrep_reject_queries)
&& (*((_BYTE *)server_command_flags + 4 * v11) & 4) == 0 )
{
my_message(1047LL, "WSREP has not yet prepared node for application use", 0LL);
Protocol::end_statement(*((Protocol **)this + 178));
v18 = *((_QWORD *)this + 1906);
v19 = *((_QWORD *)this + 3075);
PSI_server[73]();
if ( v18 )
((void ( *)(long long, long long))PSI_server[94])(v18, v19);
*((_QWORD *)this + 1906) = 0LL;
*((_QWORD *)this + 1897) = 0LL;
if ( !*((_DWORD *)this + 6488) || *((THD **)this + 1843) != (THD *)((char *)this + 14304) )
goto LABEL_26;
v20 = (THD *)((char *)this + 25880);
goto LABEL_25;
}
my_net_set_read_timeout((char *)this + 712, *((unsigned int *)this + 626));
LOBYTE(a2) = v32;
LABEL_28:
v26 = dispatch_command(
v11,
(unsigned long long)this,
v12 + 1,
(int)v13 - 1,
(unsigned __int8)a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9,
a10);
if ( v26 == 2 )
{
*((_DWORD *)this + 6267) = v11;
*((_QWORD *)this + 3134) = v12;
*((_QWORD *)this + 3135) = v13;
return 2;
}
v25 = v26;
LEX::restore_set_statement_var(*((THD ***)this + 11));
if ( v13 != -1 )
goto LABEL_31;
LABEL_32:
if ( *((_BYTE *)this + 25808) == 1 )
{
my_error(1213, 0, v21, v22, v23, v24);
if ( wsrep_debug )
WSREP_LOG(
(void (*)(const char *, int, const char *, ...))glog_print_information,
"/workspace/llm4binary/github2025/eloqsql/sql/sql_parse.cc",
1442,
"Deadlock error for PS query: %s",
*((const char **)this + 12));
THD::reset_killed(this);
*(_DWORD *)(*((_QWORD *)this + 1249) + 224LL) = 0;
*((_QWORD *)this + 3203) = 0LL;
*((_BYTE *)this + 25808) = 0;
}
return v25;
}
|
aggregate_thread_stages:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
TEST RDI,RDI
SETZ AL
TEST RSI,RSI
SETZ CL
OR CL,AL
JNZ 0x0075b460
TEST byte ptr [R15 + 0x1],0x1
JNZ 0x0075b43c
MOV RDI,R15
CALL 0x00bc16f2
MOV byte ptr [R15 + 0x1],0x1
LAB_0075b43c:
MOV R15,qword ptr [R15 + 0x10]
CMP byte ptr [R14 + 0x1],0x1
JZ 0x0075b454
MOV RDI,R14
CALL 0x00bc16f2
MOV byte ptr [R14 + 0x1],0x1
LAB_0075b454:
MOV RDX,qword ptr [R14 + 0x10]
MOV RDI,RBX
MOV RSI,R15
JMP 0x0075b487
LAB_0075b460:
TEST R15,R15
JZ 0x0075b496
TEST byte ptr [R15 + 0x1],0x1
JNZ 0x0075b479
MOV RDI,R15
CALL 0x00bc16f2
MOV byte ptr [R15 + 0x1],0x1
LAB_0075b479:
MOV RSI,qword ptr [R15 + 0x10]
MOV RDX,qword ptr [0x01ecaec0]
MOV RDI,RBX
LAB_0075b487:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x00bca34f
LAB_0075b496:
TEST R14,R14
JZ 0x0075b4b5
TEST byte ptr [R14 + 0x1],0x1
JNZ 0x0075b4af
MOV RDI,R14
CALL 0x00bc16f2
MOV byte ptr [R14 + 0x1],0x1
LAB_0075b4af:
MOV RSI,qword ptr [R14 + 0x10]
JMP 0x0075b4bc
LAB_0075b4b5:
MOV RSI,qword ptr [0x01ecaec0]
LAB_0075b4bc:
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x00bca2d8
|
/* aggregate_thread_stages(PFS_thread*, PFS_account*, PFS_user*, PFS_host*) [clone .cold.1] */
void aggregate_thread_stages
(PFS_thread *param_1,PFS_account *param_2,PFS_user *param_3,PFS_host *param_4)
{
PFS_stage_stat *pPVar1;
PFS_stage_stat *pPVar2;
if (param_2 == (PFS_account *)0x0 || param_1 == (PFS_thread *)0x0) {
if (param_1 == (PFS_thread *)0x0) {
pPVar2 = global_instr_class_stages_array;
if (param_2 != (PFS_account *)0x0) {
if (((byte)param_2[1] & 1) == 0) {
PFS_connection_slice::reset_stages_stats((PFS_connection_slice *)param_2);
param_2[1] = (PFS_account)0x1;
}
pPVar2 = *(PFS_stage_stat **)(param_2 + 0x10);
}
aggregate_all_stages((PFS_stage_stat *)param_3,pPVar2);
return;
}
if (((byte)param_1[1] & 1) == 0) {
PFS_connection_slice::reset_stages_stats((PFS_connection_slice *)param_1);
param_1[1] = (PFS_thread)0x1;
}
pPVar2 = *(PFS_stage_stat **)(param_1 + 0x10);
pPVar1 = global_instr_class_stages_array;
}
else {
if (((byte)param_1[1] & 1) == 0) {
PFS_connection_slice::reset_stages_stats((PFS_connection_slice *)param_1);
param_1[1] = (PFS_thread)0x1;
}
pPVar2 = *(PFS_stage_stat **)(param_1 + 0x10);
if (param_2[1] != (PFS_account)0x1) {
PFS_connection_slice::reset_stages_stats((PFS_connection_slice *)param_2);
param_2[1] = (PFS_account)0x1;
}
pPVar1 = *(PFS_stage_stat **)(param_2 + 0x10);
}
aggregate_all_stages((PFS_stage_stat *)param_3,pPVar2,pPVar1);
return;
}
|
|
57,413
|
getopt_ll_limit_value
|
eloqsql/mysys/my_getopt.c
|
longlong getopt_ll_limit_value(longlong num, const struct my_option *optp,
my_bool *fix)
{
longlong old= num;
my_bool adjusted= FALSE;
char buf1[255], buf2[255];
ulonglong block_size= (optp->block_size ? (ulonglong) optp->block_size : 1L);
DBUG_ENTER("getopt_ll_limit_value");
if (num > 0 && ((ulonglong) num > (ulonglong) optp->max_value) &&
optp->max_value) /* if max value is not set -> no upper limit */
{
num= (ulonglong) optp->max_value;
adjusted= TRUE;
}
switch ((optp->var_type & GET_TYPE_MASK)) {
case GET_INT:
if (num > (longlong) INT_MAX)
{
num= ((longlong) INT_MAX);
adjusted= TRUE;
}
break;
case GET_LONG:
#if SIZEOF_LONG < SIZEOF_LONG_LONG
if (num > (longlong) LONG_MAX)
{
num= ((longlong) LONG_MAX);
adjusted= TRUE;
}
#endif
break;
default:
DBUG_ASSERT((optp->var_type & GET_TYPE_MASK) == GET_LL);
break;
}
num= (num / block_size);
num= (longlong) (num * block_size);
if (num < optp->min_value)
{
num= optp->min_value;
if (old < optp->min_value)
adjusted= TRUE;
}
if (fix)
*fix= old != num;
else if (adjusted)
my_getopt_error_reporter(WARNING_LEVEL,
"option '%s': signed value %s adjusted to %s",
optp->name, llstr(old, buf1), llstr(num, buf2));
DBUG_RETURN(num);
}
|
O0
|
c
|
getopt_ll_limit_value:
pushq %rbp
movq %rsp, %rbp
subq $0x270, %rsp # imm = 0x270
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x218(%rbp)
movq %rsi, -0x220(%rbp)
movq %rdx, -0x228(%rbp)
movq -0x218(%rbp), %rax
movq %rax, -0x230(%rbp)
movb $0x0, -0x231(%rbp)
movq -0x220(%rbp), %rax
cmpq $0x0, 0x60(%rax)
je 0xf6fc4
movq -0x220(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x248(%rbp)
jmp 0xf6fd2
movl $0x1, %eax
movq %rax, -0x248(%rbp)
jmp 0xf6fd2
movq -0x248(%rbp), %rax
movq %rax, -0x240(%rbp)
cmpq $0x0, -0x218(%rbp)
jle 0xf7025
movq -0x218(%rbp), %rax
movq -0x220(%rbp), %rcx
cmpq 0x50(%rcx), %rax
jbe 0xf7025
movq -0x220(%rbp), %rax
cmpq $0x0, 0x50(%rax)
je 0xf7025
movq -0x220(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x218(%rbp)
movb $0x1, -0x231(%rbp)
movq -0x220(%rbp), %rax
movq 0x30(%rax), %rax
andl $0x3f, %eax
movq %rax, -0x250(%rbp)
subq $0x3, %rax
je 0xf7051
jmp 0xf7042
movq -0x250(%rbp), %rax
subq $0x5, %rax
je 0xf7072
jmp 0xf7074
cmpq $0x7fffffff, -0x218(%rbp) # imm = 0x7FFFFFFF
jle 0xf7070
movq $0x7fffffff, -0x218(%rbp) # imm = 0x7FFFFFFF
movb $0x1, -0x231(%rbp)
jmp 0xf707a
jmp 0xf707a
jmp 0xf7076
jmp 0xf7078
jmp 0xf707a
movq -0x218(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq -0x240(%rbp)
movq %rax, -0x218(%rbp)
movq -0x218(%rbp), %rax
imulq -0x240(%rbp), %rax
movq %rax, -0x218(%rbp)
movq -0x218(%rbp), %rax
movq -0x220(%rbp), %rcx
cmpq 0x48(%rcx), %rax
jge 0xf70ec
movq -0x220(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x218(%rbp)
movq -0x230(%rbp), %rax
movq -0x220(%rbp), %rcx
cmpq 0x48(%rcx), %rax
jge 0xf70ea
movb $0x1, -0x231(%rbp)
jmp 0xf70ec
cmpq $0x0, -0x228(%rbp)
je 0xf711c
movq -0x230(%rbp), %rax
cmpq -0x218(%rbp), %rax
setne %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %cl
movq -0x228(%rbp), %rax
movb %cl, (%rax)
jmp 0xf719f
cmpb $0x0, -0x231(%rbp)
je 0xf719d
leaq 0x1d3ab4(%rip), %rax # 0x2cabe0
movq (%rax), %rax
movq %rax, -0x258(%rbp)
movq -0x220(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x268(%rbp)
movq -0x230(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x1537b0
movq %rax, -0x260(%rbp)
movq -0x218(%rbp), %rdi
leaq -0x210(%rbp), %rsi
callq 0x1537b0
movq -0x268(%rbp), %rdx
movq -0x260(%rbp), %rcx
movq -0x258(%rbp), %r9
movq %rax, %r8
movl $0x1, %edi
leaq 0x66f9c(%rip), %rsi # 0x15e134
movb $0x0, %al
callq *%r9
jmp 0xf719f
jmp 0xf71a1
movq -0x218(%rbp), %rax
movq %rax, -0x270(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xf71d1
movq -0x270(%rbp), %rax
addq $0x270, %rsp # imm = 0x270
popq %rbp
retq
callq 0x2a270
nopw %cs:(%rax,%rax)
|
getopt_ll_limit_value:
push rbp
mov rbp, rsp
sub rsp, 270h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_218], rdi
mov [rbp+var_220], rsi
mov [rbp+var_228], rdx
mov rax, [rbp+var_218]
mov [rbp+var_230], rax
mov [rbp+var_231], 0
mov rax, [rbp+var_220]
cmp qword ptr [rax+60h], 0
jz short loc_F6FC4
mov rax, [rbp+var_220]
mov rax, [rax+60h]
mov [rbp+var_248], rax
jmp short loc_F6FD2
loc_F6FC4:
mov eax, 1
mov [rbp+var_248], rax
jmp short $+2
loc_F6FD2:
mov rax, [rbp+var_248]
mov [rbp+var_240], rax
cmp [rbp+var_218], 0
jle short loc_F7025
mov rax, [rbp+var_218]
mov rcx, [rbp+var_220]
cmp rax, [rcx+50h]
jbe short loc_F7025
mov rax, [rbp+var_220]
cmp qword ptr [rax+50h], 0
jz short loc_F7025
mov rax, [rbp+var_220]
mov rax, [rax+50h]
mov [rbp+var_218], rax
mov [rbp+var_231], 1
loc_F7025:
mov rax, [rbp+var_220]
mov rax, [rax+30h]
and eax, 3Fh
mov [rbp+var_250], rax
sub rax, 3
jz short loc_F7051
jmp short $+2
loc_F7042:
mov rax, [rbp+var_250]
sub rax, 5
jz short loc_F7072
jmp short loc_F7074
loc_F7051:
cmp [rbp+var_218], 7FFFFFFFh
jle short loc_F7070
mov [rbp+var_218], 7FFFFFFFh
mov [rbp+var_231], 1
loc_F7070:
jmp short loc_F707A
loc_F7072:
jmp short loc_F707A
loc_F7074:
jmp short $+2
loc_F7076:
jmp short $+2
loc_F7078:
jmp short $+2
loc_F707A:
mov rax, [rbp+var_218]
xor ecx, ecx
mov edx, ecx
div [rbp+var_240]
mov [rbp+var_218], rax
mov rax, [rbp+var_218]
imul rax, [rbp+var_240]
mov [rbp+var_218], rax
mov rax, [rbp+var_218]
mov rcx, [rbp+var_220]
cmp rax, [rcx+48h]
jge short loc_F70EC
mov rax, [rbp+var_220]
mov rax, [rax+48h]
mov [rbp+var_218], rax
mov rax, [rbp+var_230]
mov rcx, [rbp+var_220]
cmp rax, [rcx+48h]
jge short loc_F70EA
mov [rbp+var_231], 1
loc_F70EA:
jmp short $+2
loc_F70EC:
cmp [rbp+var_228], 0
jz short loc_F711C
mov rax, [rbp+var_230]
cmp rax, [rbp+var_218]
setnz al
and al, 1
movzx eax, al
mov cl, al
mov rax, [rbp+var_228]
mov [rax], cl
jmp loc_F719F
loc_F711C:
cmp [rbp+var_231], 0
jz short loc_F719D
lea rax, my_getopt_error_reporter
mov rax, [rax]
mov [rbp+var_258], rax
mov rax, [rbp+var_220]
mov rax, [rax]
mov [rbp+var_268], rax
mov rdi, [rbp+var_230]
lea rsi, [rbp+var_110]
call llstr
mov [rbp+var_260], rax
mov rdi, [rbp+var_218]
lea rsi, [rbp+var_210]
call llstr
mov rdx, [rbp+var_268]
mov rcx, [rbp+var_260]
mov r9, [rbp+var_258]
mov r8, rax
mov edi, 1
lea rsi, aOptionSSignedV; "option '%s': signed value %s adjusted t"...
mov al, 0
call r9
loc_F719D:
jmp short $+2
loc_F719F:
jmp short $+2
loc_F71A1:
mov rax, [rbp+var_218]
mov [rbp+var_270], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_F71D1
mov rax, [rbp+var_270]
add rsp, 270h
pop rbp
retn
loc_F71D1:
call ___stack_chk_fail
|
long long getopt_ll_limit_value(long long a1, long long a2, bool *a3)
{
const char *v3; // rax
const char *v5; // [rsp+8h] [rbp-268h]
const char *v6; // [rsp+10h] [rbp-260h]
long long (*v7)(int, long long, ...); // [rsp+18h] [rbp-258h]
unsigned long long v8; // [rsp+28h] [rbp-248h]
char v9; // [rsp+3Fh] [rbp-231h]
long long v10; // [rsp+58h] [rbp-218h]
long long v11; // [rsp+58h] [rbp-218h]
char v12[256]; // [rsp+60h] [rbp-210h] BYREF
char v13[264]; // [rsp+160h] [rbp-110h] BYREF
unsigned long long v14; // [rsp+268h] [rbp-8h]
v14 = __readfsqword(0x28u);
v10 = a1;
v9 = 0;
if ( *(_QWORD *)(a2 + 96) )
v8 = *(_QWORD *)(a2 + 96);
else
v8 = 1LL;
if ( a1 > 0 && (unsigned long long)a1 > *(_QWORD *)(a2 + 80) && *(_QWORD *)(a2 + 80) )
{
v10 = *(_QWORD *)(a2 + 80);
v9 = 1;
}
if ( (*(_QWORD *)(a2 + 48) & 0x3FLL) == 3 && v10 > 0x7FFFFFFF )
{
v10 = 0x7FFFFFFFLL;
v9 = 1;
}
v11 = v8 * (v10 / v8);
if ( v11 < *(_QWORD *)(a2 + 72) )
{
v11 = *(_QWORD *)(a2 + 72);
if ( a1 < v11 )
v9 = 1;
}
if ( a3 )
{
*a3 = a1 != v11;
}
else if ( v9 )
{
v7 = my_getopt_error_reporter;
v5 = *(const char **)a2;
v6 = (const char *)llstr(a1, v13);
v3 = (const char *)llstr(v11, v12);
v7(1, (long long)"option '%s': signed value %s adjusted to %s", v5, v6, v3);
}
return v11;
}
|
getopt_ll_limit_value:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x270
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x218],RDI
MOV qword ptr [RBP + -0x220],RSI
MOV qword ptr [RBP + -0x228],RDX
MOV RAX,qword ptr [RBP + -0x218]
MOV qword ptr [RBP + -0x230],RAX
MOV byte ptr [RBP + -0x231],0x0
MOV RAX,qword ptr [RBP + -0x220]
CMP qword ptr [RAX + 0x60],0x0
JZ 0x001f6fc4
MOV RAX,qword ptr [RBP + -0x220]
MOV RAX,qword ptr [RAX + 0x60]
MOV qword ptr [RBP + -0x248],RAX
JMP 0x001f6fd2
LAB_001f6fc4:
MOV EAX,0x1
MOV qword ptr [RBP + -0x248],RAX
JMP 0x001f6fd2
LAB_001f6fd2:
MOV RAX,qword ptr [RBP + -0x248]
MOV qword ptr [RBP + -0x240],RAX
CMP qword ptr [RBP + -0x218],0x0
JLE 0x001f7025
MOV RAX,qword ptr [RBP + -0x218]
MOV RCX,qword ptr [RBP + -0x220]
CMP RAX,qword ptr [RCX + 0x50]
JBE 0x001f7025
MOV RAX,qword ptr [RBP + -0x220]
CMP qword ptr [RAX + 0x50],0x0
JZ 0x001f7025
MOV RAX,qword ptr [RBP + -0x220]
MOV RAX,qword ptr [RAX + 0x50]
MOV qword ptr [RBP + -0x218],RAX
MOV byte ptr [RBP + -0x231],0x1
LAB_001f7025:
MOV RAX,qword ptr [RBP + -0x220]
MOV RAX,qword ptr [RAX + 0x30]
AND EAX,0x3f
MOV qword ptr [RBP + -0x250],RAX
SUB RAX,0x3
JZ 0x001f7051
JMP 0x001f7042
LAB_001f7042:
MOV RAX,qword ptr [RBP + -0x250]
SUB RAX,0x5
JZ 0x001f7072
JMP 0x001f7074
LAB_001f7051:
CMP qword ptr [RBP + -0x218],0x7fffffff
JLE 0x001f7070
MOV qword ptr [RBP + -0x218],0x7fffffff
MOV byte ptr [RBP + -0x231],0x1
LAB_001f7070:
JMP 0x001f707a
LAB_001f7072:
JMP 0x001f707a
LAB_001f7074:
JMP 0x001f7076
LAB_001f7076:
JMP 0x001f7078
LAB_001f7078:
JMP 0x001f707a
LAB_001f707a:
MOV RAX,qword ptr [RBP + -0x218]
XOR ECX,ECX
MOV EDX,ECX
DIV qword ptr [RBP + -0x240]
MOV qword ptr [RBP + -0x218],RAX
MOV RAX,qword ptr [RBP + -0x218]
IMUL RAX,qword ptr [RBP + -0x240]
MOV qword ptr [RBP + -0x218],RAX
MOV RAX,qword ptr [RBP + -0x218]
MOV RCX,qword ptr [RBP + -0x220]
CMP RAX,qword ptr [RCX + 0x48]
JGE 0x001f70ec
MOV RAX,qword ptr [RBP + -0x220]
MOV RAX,qword ptr [RAX + 0x48]
MOV qword ptr [RBP + -0x218],RAX
MOV RAX,qword ptr [RBP + -0x230]
MOV RCX,qword ptr [RBP + -0x220]
CMP RAX,qword ptr [RCX + 0x48]
JGE 0x001f70ea
MOV byte ptr [RBP + -0x231],0x1
LAB_001f70ea:
JMP 0x001f70ec
LAB_001f70ec:
CMP qword ptr [RBP + -0x228],0x0
JZ 0x001f711c
MOV RAX,qword ptr [RBP + -0x230]
CMP RAX,qword ptr [RBP + -0x218]
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x228]
MOV byte ptr [RAX],CL
JMP 0x001f719f
LAB_001f711c:
CMP byte ptr [RBP + -0x231],0x0
JZ 0x001f719d
LEA RAX,[0x3cabe0]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x258],RAX
MOV RAX,qword ptr [RBP + -0x220]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x268],RAX
MOV RDI,qword ptr [RBP + -0x230]
LEA RSI,[RBP + -0x110]
CALL 0x002537b0
MOV qword ptr [RBP + -0x260],RAX
MOV RDI,qword ptr [RBP + -0x218]
LEA RSI,[RBP + -0x210]
CALL 0x002537b0
MOV RDX,qword ptr [RBP + -0x268]
MOV RCX,qword ptr [RBP + -0x260]
MOV R9,qword ptr [RBP + -0x258]
MOV R8,RAX
MOV EDI,0x1
LEA RSI,[0x25e134]
MOV AL,0x0
CALL R9
LAB_001f719d:
JMP 0x001f719f
LAB_001f719f:
JMP 0x001f71a1
LAB_001f71a1:
MOV RAX,qword ptr [RBP + -0x218]
MOV qword ptr [RBP + -0x270],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001f71d1
MOV RAX,qword ptr [RBP + -0x270]
ADD RSP,0x270
POP RBP
RET
LAB_001f71d1:
CALL 0x0012a270
|
ulong getopt_ll_limit_value(ulong param_1,int8 *param_2,long param_3)
{
int8 uVar1;
bool bVar2;
int *puVar3;
int8 uVar4;
int8 uVar5;
ulong uVar6;
long in_FS_OFFSET;
ulong local_250;
ulong local_220;
int1 local_218 [256];
int1 local_118 [264];
long local_10;
puVar3 = my_getopt_error_reporter;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
bVar2 = false;
if (param_2[0xc] == 0) {
local_250 = 1;
}
else {
local_250 = param_2[0xc];
}
local_220 = param_1;
if (((0 < (long)param_1) && ((ulong)param_2[10] < param_1)) && (param_2[10] != 0)) {
local_220 = param_2[10];
bVar2 = true;
}
if ((((uint)param_2[6] & 0x3f) == 3) && (0x7fffffff < (long)local_220)) {
local_220 = 0x7fffffff;
bVar2 = true;
}
uVar6 = local_220 % local_250;
local_220 = (local_220 / local_250) * local_250;
if (((long)local_220 < (long)param_2[9]) &&
(local_220 = param_2[9], (long)param_1 < (long)param_2[9])) {
bVar2 = true;
}
if (param_3 == 0) {
if (bVar2) {
uVar1 = *param_2;
uVar4 = llstr(param_1,local_118,uVar6);
uVar5 = llstr(local_220,local_218);
(*(code *)puVar3)(1,"option \'%s\': signed value %s adjusted to %s",uVar1,uVar4,uVar5);
}
}
else {
*(bool *)param_3 = param_1 != local_220;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_220;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
57,414
|
memcmp16_8
|
bluesky950520[P]quickjs/quickjs.c
|
static int memcmp16_8(const uint16_t *src1, const uint8_t *src2, int len)
{
int c, i;
for(i = 0; i < len; i++) {
c = src1[i] - src2[i];
if (c != 0)
return c;
}
return 0;
}
|
O2
|
c
|
memcmp16_8:
xorl %ecx, %ecx
testl %edx, %edx
cmovlel %ecx, %edx
cmpq %rcx, %rdx
je 0x34a27
movzwl (%rdi,%rcx,2), %eax
movzbl (%rsi,%rcx), %r8d
incq %rcx
subl %r8d, %eax
je 0x34a10
retq
xorl %eax, %eax
retq
|
memcmp16_8:
xor ecx, ecx
test edx, edx
cmovle edx, ecx
loc_34A10:
cmp rdx, rcx
jz short loc_34A27
movzx eax, word ptr [rdi+rcx*2]
movzx r8d, byte ptr [rsi+rcx]
inc rcx
sub eax, r8d
jz short loc_34A10
retn
loc_34A27:
xor eax, eax
retn
|
long long memcmp16_8(long long a1, long long a2, long long a3)
{
long long v3; // rcx
int v4; // eax
int v5; // r8d
long long result; // rax
v3 = 0LL;
if ( (int)a3 <= 0 )
a3 = 0LL;
while ( a3 != v3 )
{
v4 = *(unsigned __int16 *)(a1 + 2 * v3);
v5 = *(unsigned __int8 *)(a2 + v3++);
result = (unsigned int)(v4 - v5);
if ( (_DWORD)result )
return result;
}
return 0LL;
}
|
memcmp16_8:
XOR ECX,ECX
TEST EDX,EDX
CMOVLE EDX,ECX
LAB_00134a10:
CMP RDX,RCX
JZ 0x00134a27
MOVZX EAX,word ptr [RDI + RCX*0x2]
MOVZX R8D,byte ptr [RSI + RCX*0x1]
INC RCX
SUB EAX,R8D
JZ 0x00134a10
RET
LAB_00134a27:
XOR EAX,EAX
RET
|
int memcmp16_8(long param_1,long param_2,uint param_3)
{
long lVar1;
byte *pbVar2;
int iVar3;
ulong uVar4;
ulong uVar5;
uVar4 = 0;
uVar5 = (ulong)param_3;
if ((int)param_3 < 1) {
uVar5 = uVar4;
}
do {
if (uVar5 == uVar4) {
return 0;
}
lVar1 = uVar4 * 2;
pbVar2 = (byte *)(param_2 + uVar4);
uVar4 = uVar4 + 1;
iVar3 = (uint)*(ushort *)(param_1 + lVar1) - (uint)*pbVar2;
} while (iVar3 == 0);
return iVar3;
}
|
|
57,415
|
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::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>::parse<char const (&) [24]>(char const (&) [24], std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::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>&)>, bool, bool)
|
llama.cpp/common/./json.hpp
|
JSON_HEDLEY_WARN_UNUSED_RESULT
static basic_json parse(InputType&& i,
const parser_callback_t cb = nullptr,
const bool allow_exceptions = true,
const bool ignore_comments = false)
{
basic_json result;
parser(detail::input_adapter(std::forward<InputType>(i)), cb, allow_exceptions, ignore_comments).parse(true, result);
return result;
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> 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>::parse<char const (&) [24]>(char const (&) [24], std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::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>&)>, bool, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xf0, %rsp
movl %r8d, %ebp
movl %ecx, %r14d
movq %rdi, %rbx
movb $0x0, (%rdi)
movq $0x0, 0x8(%rdi)
movq (%rsi), %r15
movq 0x8(%rsi), %r12
leaq 0x8(%rsp), %rdi
movq %rdx, %rsi
callq 0x2b232
addq %r15, %r12
movzbl %r14b, %r8d
movzbl %bpl, %r9d
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %r15, %rsi
movq %r12, %rdx
callq 0x2b186
leaq 0x28(%rsp), %rdi
movl $0x1, %esi
movq %rbx, %rdx
callq 0x2b290
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x2bca2
movq -0x18(%r14), %rax
testq %rax, %rax
je 0x2b10e
leaq 0x28(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x2b127
leaq 0x8(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rax
addq $0xf0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2b16b
jmp 0x2b16b
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x2b7be
jmp 0x2b150
movq %rax, %r14
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x2b176
leaq 0x8(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x2b176
movq %rax, %rdi
callq 0x2a81a
movq %rax, %r14
movq %rbx, %rdi
callq 0x300e0
movq %r14, %rdi
callq 0x1c7d0
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIRKS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 0F0h
mov ebp, r8d
mov r14d, ecx
mov rbx, rdi
mov byte ptr [rdi], 0
mov qword ptr [rdi+8], 0
mov r15, [rsi]
mov r12, [rsi+8]
lea rdi, [rsp+118h+var_110]
mov rsi, rdx
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; 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> &)>::function(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> &)> const&)
add r12, r15
movzx r8d, r14b
movzx r9d, bpl
lea rdi, [rsp+118h+var_F0]
lea rcx, [rsp+118h+var_110]
mov rsi, r15
mov rdx, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,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+118h+var_F0]; int
mov esi, 1
mov rdx, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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>>>::parse(bool,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)
lea r14, [rsp+118h+var_C8]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; 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>>>::~lexer()
mov rax, [r14-18h]
test rax, rax
jz short loc_2B10E
lea rdi, [rsp+118h+var_F0]
mov rsi, rdi
mov edx, 3
call rax
loc_2B10E:
mov rax, [rsp+118h+var_100]
test rax, rax
jz short loc_2B127
lea rdi, [rsp+118h+var_110]
mov rsi, rdi
mov edx, 3
call rax
loc_2B127:
mov rax, rbx
add rsp, 0F0h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
jmp short loc_2B16B
jmp short loc_2B16B
mov r14, rax
lea rdi, [rsp+118h+var_F0]
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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>>>::~parser()
jmp short loc_2B150
mov r14, rax
loc_2B150:
mov rax, [rsp+118h+var_100]
test rax, rax
jz short loc_2B176
lea rdi, [rsp+118h+var_110]
mov rsi, rdi
mov edx, 3
call rax
jmp short loc_2B176
loc_2B16B:
mov rdi, rax
call __clang_call_terminate
mov r14, rax
loc_2B176:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, r14
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parse<std::string const&>(
long long a1,
long long *a2,
long long a3,
unsigned __int8 a4,
unsigned __int8 a5)
{
long long v7; // r15
long long v8; // r12
_BYTE v10[16]; // [rsp+8h] [rbp-110h] BYREF
void ( *v11)(_BYTE *, _BYTE *, long long); // [rsp+18h] [rbp-100h]
int v12[4]; // [rsp+28h] [rbp-F0h] BYREF
void ( *v13)(int *, int *, long long); // [rsp+38h] [rbp-E0h]
_BYTE v14[200]; // [rsp+50h] [rbp-C8h] BYREF
*(_BYTE *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0LL;
v7 = *a2;
v8 = a2[1];
std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::function(
v10,
a3);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(
v12,
v7,
v7 + v8,
v10,
a4,
a5);
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse((int)v12);
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(
v14,
1LL);
if ( v13 )
v13(v12, v12, 3LL);
if ( v11 )
v11(v10, v10, 3LL);
return a1;
}
|
parse<std::__cxx11::string_const&>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0xf0
MOV EBP,R8D
MOV R14D,ECX
MOV RBX,RDI
MOV byte ptr [RDI],0x0
MOV qword ptr [RDI + 0x8],0x0
MOV R15,qword ptr [RSI]
MOV R12,qword ptr [RSI + 0x8]
LAB_0012b0aa:
LEA RDI,[RSP + 0x8]
MOV RSI,RDX
CALL 0x0012b232
ADD R12,R15
LAB_0012b0ba:
MOVZX R8D,R14B
MOVZX R9D,BPL
LEA RDI,[RSP + 0x28]
LEA RCX,[RSP + 0x8]
MOV RSI,R15
MOV RDX,R12
CALL 0x0012b186
LAB_0012b0d7:
LEA RDI,[RSP + 0x28]
MOV ESI,0x1
MOV RDX,RBX
CALL 0x0012b290
LEA R14,[RSP + 0x50]
MOV RDI,R14
CALL 0x0012bca2
MOV RAX,qword ptr [R14 + -0x18]
TEST RAX,RAX
JZ 0x0012b10e
LAB_0012b0ff:
LEA RDI,[RSP + 0x28]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_0012b10e:
MOV RAX,qword ptr [RSP + 0x18]
TEST RAX,RAX
JZ 0x0012b127
LAB_0012b118:
LEA RDI,[RSP + 0x8]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_0012b127:
MOV RAX,RBX
ADD RSP,0xf0
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, 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 const&>(std::__cxx11::string const&,
std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&)>, bool, bool) */
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
* __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::parse<std::__cxx11::string_const&>
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,long *param_1,function *param_3,int1 param_4,int1 param_5)
{
long lVar1;
long lVar2;
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
local_110 [16];
code *local_100;
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
local_f0 [16];
code *local_e0;
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>>>
local_c8 [160];
*this = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0;
*(int8 *)(this + 8) = 0;
lVar1 = *param_1;
lVar2 = param_1[1];
/* try { // try from 0012b0aa to 0012b0b6 has its CatchHandler @ 0012b173 */
std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::function(local_110,param_3);
/* try { // try from 0012b0ba to 0012b0d6 has its CatchHandler @ 0012b14d */
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
(local_f0,lVar1,lVar2 + lVar1,local_110,param_4,param_5);
/* try { // try from 0012b0d7 to 0012b0e8 has its CatchHandler @ 0012b13e */
detail::
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::parse(local_f0,true,(basic_json *)this);
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(local_c8);
if (local_e0 != (code *)0x0) {
/* try { // try from 0012b0ff to 0012b10d has its CatchHandler @ 0012b13c */
(*local_e0)(local_f0,local_f0,3);
}
if (local_100 != (code *)0x0) {
/* try { // try from 0012b118 to 0012b126 has its CatchHandler @ 0012b13a */
(*local_100)(local_110,local_110,3);
}
return this;
}
|
|
57,416
|
lf_dynarray_lvalue
|
eloqsql/mysys/lf_dynarray.c
|
void *lf_dynarray_lvalue(LF_DYNARRAY *array, uint idx)
{
void * ptr, * volatile * ptr_ptr= 0;
int i;
for (i= LF_DYNARRAY_LEVELS-1; idx < dynarray_idxes_in_prev_levels[i]; i--)
/* no-op */;
ptr_ptr= &array->level[i];
idx-= dynarray_idxes_in_prev_levels[i];
for (; i > 0; i--)
{
if (!(ptr= *ptr_ptr))
{
void *alloc= my_malloc(key_memory_lf_dynarray, LF_DYNARRAY_LEVEL_LENGTH *
sizeof(void *), MYF(MY_WME|MY_ZEROFILL));
if (unlikely(!alloc))
return(NULL);
if (my_atomic_casptr(ptr_ptr, &ptr, alloc))
ptr= alloc;
else
my_free(alloc);
}
ptr_ptr= ((void **)ptr) + idx / dynarray_idxes_in_prev_level[i];
idx%= dynarray_idxes_in_prev_level[i];
}
if (!(ptr= *ptr_ptr))
{
uchar *alloc, *data;
alloc= my_malloc(key_memory_lf_dynarray,
LF_DYNARRAY_LEVEL_LENGTH * array->size_of_element +
MY_MAX(array->size_of_element, sizeof(void *)),
MYF(MY_WME|MY_ZEROFILL));
if (unlikely(!alloc))
return(NULL);
/* reserve the space for free() address */
data= alloc + sizeof(void *);
{ /* alignment */
intptr mod= ((intptr)data) % array->size_of_element;
if (mod)
data+= array->size_of_element - mod;
}
((void **)data)[-1]= alloc; /* free() will need the original pointer */
if (my_atomic_casptr(ptr_ptr, &ptr, data))
ptr= data;
else
my_free(alloc);
}
return ((uchar*)ptr) + array->size_of_element * idx;
}
|
O0
|
c
|
lf_dynarray_lvalue:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq $0x0, -0x28(%rbp)
movl $0x3, -0x2c(%rbp)
movl -0x14(%rbp), %eax
movslq -0x2c(%rbp), %rdx
leaq 0x5c681(%rip), %rcx # 0x159630
cmpq (%rcx,%rdx,8), %rax
jae 0xfcfc2
jmp 0xfcfb7
movl -0x2c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0xfcfa1
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movslq -0x2c(%rbp), %rcx
leaq 0x5c650(%rip), %rax # 0x159630
movq (%rax,%rcx,8), %rcx
movl -0x14(%rbp), %eax
subq %rcx, %rax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x2c(%rbp)
jle 0xfd10a
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0xfd0ac
leaq 0xb85f99(%rip), %rax # 0xc82fac
movl (%rax), %edi
movl $0x800, %esi # imm = 0x800
movl $0x30, %edx
callq 0xf3a20
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xfd057
movq $0x0, -0x8(%rbp)
jmp 0xfd27f
movq -0x28(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
movq -0x40(%rbp), %rdx
lock
cmpxchgq %rdx, (%rcx)
movq %rax, %rcx
sete %al
movb %al, -0x79(%rbp)
movq %rcx, -0x78(%rbp)
testb $0x1, %al
jne 0xfd089
movq -0x78(%rbp), %rax
movq %rax, -0x20(%rbp)
movb -0x79(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
testb $0x1, -0x41(%rbp)
je 0xfd0a1
movq -0x38(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0xfd0aa
movq -0x38(%rbp), %rdi
callq 0xf3da0
jmp 0xfd0ac
movq -0x20(%rbp), %rax
movq %rax, -0x88(%rbp)
movl -0x14(%rbp), %eax
movslq -0x2c(%rbp), %rsi
leaq 0x5c58b(%rip), %rcx # 0x159650
xorl %edx, %edx
divq (%rcx,%rsi,8)
movq %rax, %rcx
movq -0x88(%rbp), %rax
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movslq -0x2c(%rbp), %rcx
leaq 0x5c565(%rip), %rax # 0x159650
movq (%rax,%rcx,8), %rcx
movl -0x14(%rbp), %eax
xorl %edx, %edx
divq %rcx
movl %edx, %eax
movl %eax, -0x14(%rbp)
movl -0x2c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0xfcfed
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0xfd267
leaq 0xb85e86(%rip), %rax # 0xc82fac
movl (%rax), %eax
movl %eax, -0x94(%rbp)
movq -0x10(%rbp), %rax
movl 0x20(%rax), %eax
shll $0x8, %eax
movl %eax, %eax
movq %rax, -0x90(%rbp)
movq -0x10(%rbp), %rax
movl 0x20(%rax), %eax
cmpq $0x8, %rax
jbe 0xfd15e
movq -0x10(%rbp), %rax
movl 0x20(%rax), %eax
movq %rax, -0xa0(%rbp)
jmp 0xfd16c
movl $0x8, %eax
movq %rax, -0xa0(%rbp)
jmp 0xfd16c
movl -0x94(%rbp), %edi
movq -0x90(%rbp), %rsi
movq -0xa0(%rbp), %rax
addq %rax, %rsi
movl $0x30, %edx
callq 0xf3a20
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xfd1c0
movq $0x0, -0x8(%rbp)
jmp 0xfd27f
movq -0x50(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x20(%rcx), %ecx
xorl %edx, %edx
divq %rcx
movq %rdx, -0x60(%rbp)
cmpq $0x0, -0x60(%rbp)
je 0xfd1fa
movq -0x10(%rbp), %rax
movl 0x20(%rax), %eax
subq -0x60(%rbp), %rax
addq -0x58(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x50(%rbp), %rcx
movq -0x58(%rbp), %rax
movq %rcx, -0x8(%rax)
movq -0x28(%rbp), %rcx
movq -0x58(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x20(%rbp), %rax
movq -0x68(%rbp), %rdx
lock
cmpxchgq %rdx, (%rcx)
movq %rax, %rcx
sete %al
movb %al, -0xa9(%rbp)
movq %rcx, -0xa8(%rbp)
testb $0x1, %al
jne 0xfd241
movq -0xa8(%rbp), %rax
movq %rax, -0x20(%rbp)
movb -0xa9(%rbp), %al
andb $0x1, %al
movb %al, -0x69(%rbp)
testb $0x1, -0x69(%rbp)
je 0xfd25c
movq -0x58(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0xfd265
movq -0x50(%rbp), %rdi
callq 0xf3da0
jmp 0xfd267
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x20(%rcx), %ecx
imull -0x14(%rbp), %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xb0, %rsp
popq %rbp
retq
nopl (%rax)
|
lf_dynarray_lvalue:
push rbp
mov rbp, rsp
sub rsp, 0B0h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_28], 0
mov [rbp+var_2C], 3
loc_FCFA1:
mov eax, [rbp+var_14]
movsxd rdx, [rbp+var_2C]
lea rcx, dynarray_idxes_in_prev_levels
cmp rax, [rcx+rdx*8]
jnb short loc_FCFC2
jmp short $+2
loc_FCFB7:
mov eax, [rbp+var_2C]
add eax, 0FFFFFFFFh
mov [rbp+var_2C], eax
jmp short loc_FCFA1
loc_FCFC2:
mov rax, [rbp+var_10]
movsxd rcx, [rbp+var_2C]
shl rcx, 3
add rax, rcx
mov [rbp+var_28], rax
movsxd rcx, [rbp+var_2C]
lea rax, dynarray_idxes_in_prev_levels
mov rcx, [rax+rcx*8]
mov eax, [rbp+var_14]
sub rax, rcx
mov [rbp+var_14], eax
loc_FCFED:
cmp [rbp+var_2C], 0
jle loc_FD10A
mov rax, [rbp+var_28]
mov rax, [rax]
mov [rbp+var_20], rax
cmp rax, 0
jnz loc_FD0AC
lea rax, key_memory_lf_dynarray
mov edi, [rax]
mov esi, 800h
mov edx, 30h ; '0'
call my_malloc
mov [rbp+var_38], rax
cmp [rbp+var_38], 0
setnz al
xor al, 0FFh
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_FD057
mov [rbp+var_8], 0
jmp loc_FD27F
loc_FD057:
mov rcx, [rbp+var_28]
mov rax, [rbp+var_38]
mov [rbp+var_40], rax
mov rax, [rbp+var_20]
mov rdx, [rbp+var_40]
lock cmpxchg [rcx], rdx
mov rcx, rax
setz al
mov [rbp+var_79], al
mov [rbp+var_78], rcx
test al, 1
jnz short loc_FD089
mov rax, [rbp+var_78]
mov [rbp+var_20], rax
loc_FD089:
mov al, [rbp+var_79]
and al, 1
mov [rbp+var_41], al
test [rbp+var_41], 1
jz short loc_FD0A1
mov rax, [rbp+var_38]
mov [rbp+var_20], rax
jmp short loc_FD0AA
loc_FD0A1:
mov rdi, [rbp+var_38]
call my_free
loc_FD0AA:
jmp short $+2
loc_FD0AC:
mov rax, [rbp+var_20]
mov [rbp+var_88], rax
mov eax, [rbp+var_14]
movsxd rsi, [rbp+var_2C]
lea rcx, dynarray_idxes_in_prev_level
xor edx, edx
div qword ptr [rcx+rsi*8]
mov rcx, rax
mov rax, [rbp+var_88]
shl rcx, 3
add rax, rcx
mov [rbp+var_28], rax
movsxd rcx, [rbp+var_2C]
lea rax, dynarray_idxes_in_prev_level
mov rcx, [rax+rcx*8]
mov eax, [rbp+var_14]
xor edx, edx
div rcx
mov eax, edx
mov [rbp+var_14], eax
mov eax, [rbp+var_2C]
add eax, 0FFFFFFFFh
mov [rbp+var_2C], eax
jmp loc_FCFED
loc_FD10A:
mov rax, [rbp+var_28]
mov rax, [rax]
mov [rbp+var_20], rax
cmp rax, 0
jnz loc_FD267
lea rax, key_memory_lf_dynarray
mov eax, [rax]
mov [rbp+var_94], eax
mov rax, [rbp+var_10]
mov eax, [rax+20h]
shl eax, 8
mov eax, eax
mov [rbp+var_90], rax
mov rax, [rbp+var_10]
mov eax, [rax+20h]
cmp rax, 8
jbe short loc_FD15E
mov rax, [rbp+var_10]
mov eax, [rax+20h]
mov [rbp+var_A0], rax
jmp short loc_FD16C
loc_FD15E:
mov eax, 8
mov [rbp+var_A0], rax
jmp short $+2
loc_FD16C:
mov edi, [rbp+var_94]
mov rsi, [rbp+var_90]
mov rax, [rbp+var_A0]
add rsi, rax
mov edx, 30h ; '0'
call my_malloc
mov [rbp+var_50], rax
cmp [rbp+var_50], 0
setnz al
xor al, 0FFh
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_FD1C0
mov [rbp+var_8], 0
jmp loc_FD27F
loc_FD1C0:
mov rax, [rbp+var_50]
add rax, 8
mov [rbp+var_58], rax
mov rax, [rbp+var_58]
mov rcx, [rbp+var_10]
mov ecx, [rcx+20h]
xor edx, edx
div rcx
mov [rbp+var_60], rdx
cmp [rbp+var_60], 0
jz short loc_FD1FA
mov rax, [rbp+var_10]
mov eax, [rax+20h]
sub rax, [rbp+var_60]
add rax, [rbp+var_58]
mov [rbp+var_58], rax
loc_FD1FA:
mov rcx, [rbp+var_50]
mov rax, [rbp+var_58]
mov [rax-8], rcx
mov rcx, [rbp+var_28]
mov rax, [rbp+var_58]
mov [rbp+var_68], rax
mov rax, [rbp+var_20]
mov rdx, [rbp+var_68]
lock cmpxchg [rcx], rdx
mov rcx, rax
setz al
mov [rbp+var_A9], al
mov [rbp+var_A8], rcx
test al, 1
jnz short loc_FD241
mov rax, [rbp+var_A8]
mov [rbp+var_20], rax
loc_FD241:
mov al, [rbp+var_A9]
and al, 1
mov [rbp+var_69], al
test [rbp+var_69], 1
jz short loc_FD25C
mov rax, [rbp+var_58]
mov [rbp+var_20], rax
jmp short loc_FD265
loc_FD25C:
mov rdi, [rbp+var_50]
call my_free
loc_FD265:
jmp short $+2
loc_FD267:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
mov ecx, [rcx+20h]
imul ecx, [rbp+var_14]
mov ecx, ecx
add rax, rcx
mov [rbp+var_8], rax
loc_FD27F:
mov rax, [rbp+var_8]
add rsp, 0B0h
pop rbp
retn
|
signed long long lf_dynarray_lvalue(long long a1, unsigned int a2)
{
signed long long v2; // rcx
signed long long v3; // rcx
long long v5; // [rsp+10h] [rbp-A0h]
unsigned long long v6; // [rsp+50h] [rbp-60h]
signed long long v7; // [rsp+58h] [rbp-58h]
long long v8; // [rsp+60h] [rbp-50h]
signed long long v9; // [rsp+78h] [rbp-38h]
int i; // [rsp+84h] [rbp-2Ch]
volatile signed long long *v11; // [rsp+88h] [rbp-28h]
volatile signed long long v12; // [rsp+90h] [rbp-20h]
volatile signed long long v13; // [rsp+90h] [rbp-20h]
unsigned int v14; // [rsp+9Ch] [rbp-14h]
for ( i = 3; (unsigned long long)a2 < dynarray_idxes_in_prev_levels[i]; --i )
;
v11 = (volatile signed long long *)(8LL * i + a1);
v14 = a2 - dynarray_idxes_in_prev_levels[i];
while ( i > 0 )
{
v12 = *v11;
if ( !*v11 )
{
v9 = my_malloc(key_memory_lf_dynarray, (const char *)&stru_7F0.st_size, 48LL);
if ( !v9 )
return 0LL;
v2 = _InterlockedCompareExchange64(v11, v9, 0LL);
if ( v2 )
{
v12 = v2;
my_free(v9);
}
else
{
v12 = v9;
}
}
v11 = (volatile signed long long *)(8 * ((unsigned long long)v14 / dynarray_idxes_in_prev_level[i]) + v12);
v14 = (unsigned long long)v14 % dynarray_idxes_in_prev_level[i--];
}
v13 = *v11;
if ( *v11 )
return v14 * *(_DWORD *)(a1 + 32) + v13;
if ( *(unsigned int *)(a1 + 32) <= 8uLL )
v5 = 8LL;
else
v5 = *(unsigned int *)(a1 + 32);
v8 = my_malloc(key_memory_lf_dynarray, (const char *)(v5 + (unsigned int)(*(_DWORD *)(a1 + 32) << 8)), 48LL);
if ( v8 )
{
v7 = v8 + 8;
v6 = (v8 + 8) % (unsigned long long)*(unsigned int *)(a1 + 32);
if ( v6 )
v7 += *(unsigned int *)(a1 + 32) - v6;
*(_QWORD *)(v7 - 8) = v8;
v3 = _InterlockedCompareExchange64(v11, v7, 0LL);
if ( v3 )
{
v13 = v3;
my_free(v8);
}
else
{
v13 = v7;
}
return v14 * *(_DWORD *)(a1 + 32) + v13;
}
return 0LL;
}
|
lf_dynarray_lvalue:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xb0
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x28],0x0
MOV dword ptr [RBP + -0x2c],0x3
LAB_001fcfa1:
MOV EAX,dword ptr [RBP + -0x14]
MOVSXD RDX,dword ptr [RBP + -0x2c]
LEA RCX,[0x259630]
CMP RAX,qword ptr [RCX + RDX*0x8]
JNC 0x001fcfc2
JMP 0x001fcfb7
LAB_001fcfb7:
MOV EAX,dword ptr [RBP + -0x2c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x001fcfa1
LAB_001fcfc2:
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,dword ptr [RBP + -0x2c]
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
MOVSXD RCX,dword ptr [RBP + -0x2c]
LEA RAX,[0x259630]
MOV RCX,qword ptr [RAX + RCX*0x8]
MOV EAX,dword ptr [RBP + -0x14]
SUB RAX,RCX
MOV dword ptr [RBP + -0x14],EAX
LAB_001fcfed:
CMP dword ptr [RBP + -0x2c],0x0
JLE 0x001fd10a
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JNZ 0x001fd0ac
LEA RAX,[0xd82fac]
MOV EDI,dword ptr [RAX]
MOV ESI,0x800
MOV EDX,0x30
CALL 0x001f3a20
MOV qword ptr [RBP + -0x38],RAX
CMP qword ptr [RBP + -0x38],0x0
SETNZ AL
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001fd057
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001fd27f
LAB_001fd057:
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x40]
CMPXCHG.LOCK qword ptr [RCX],RDX
MOV RCX,RAX
SETZ AL
MOV byte ptr [RBP + -0x79],AL
MOV qword ptr [RBP + -0x78],RCX
TEST AL,0x1
JNZ 0x001fd089
MOV RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0x20],RAX
LAB_001fd089:
MOV AL,byte ptr [RBP + -0x79]
AND AL,0x1
MOV byte ptr [RBP + -0x41],AL
TEST byte ptr [RBP + -0x41],0x1
JZ 0x001fd0a1
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001fd0aa
LAB_001fd0a1:
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x001f3da0
LAB_001fd0aa:
JMP 0x001fd0ac
LAB_001fd0ac:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x88],RAX
MOV EAX,dword ptr [RBP + -0x14]
MOVSXD RSI,dword ptr [RBP + -0x2c]
LEA RCX,[0x259650]
XOR EDX,EDX
DIV qword ptr [RCX + RSI*0x8]
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x88]
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
MOVSXD RCX,dword ptr [RBP + -0x2c]
LEA RAX,[0x259650]
MOV RCX,qword ptr [RAX + RCX*0x8]
MOV EAX,dword ptr [RBP + -0x14]
XOR EDX,EDX
DIV RCX
MOV EAX,EDX
MOV dword ptr [RBP + -0x14],EAX
MOV EAX,dword ptr [RBP + -0x2c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x001fcfed
LAB_001fd10a:
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JNZ 0x001fd267
LEA RAX,[0xd82fac]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x94],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x20]
SHL EAX,0x8
MOV EAX,EAX
MOV qword ptr [RBP + -0x90],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x20]
CMP RAX,0x8
JBE 0x001fd15e
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x001fd16c
LAB_001fd15e:
MOV EAX,0x8
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x001fd16c
LAB_001fd16c:
MOV EDI,dword ptr [RBP + -0x94]
MOV RSI,qword ptr [RBP + -0x90]
MOV RAX,qword ptr [RBP + -0xa0]
ADD RSI,RAX
MOV EDX,0x30
CALL 0x001f3a20
MOV qword ptr [RBP + -0x50],RAX
CMP qword ptr [RBP + -0x50],0x0
SETNZ AL
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001fd1c0
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001fd27f
LAB_001fd1c0:
MOV RAX,qword ptr [RBP + -0x50]
ADD RAX,0x8
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0x20]
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0x60],RDX
CMP qword ptr [RBP + -0x60],0x0
JZ 0x001fd1fa
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x20]
SUB RAX,qword ptr [RBP + -0x60]
ADD RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x58],RAX
LAB_001fd1fa:
MOV RCX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RAX + -0x8],RCX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x68]
CMPXCHG.LOCK qword ptr [RCX],RDX
MOV RCX,RAX
SETZ AL
MOV byte ptr [RBP + -0xa9],AL
MOV qword ptr [RBP + -0xa8],RCX
TEST AL,0x1
JNZ 0x001fd241
MOV RAX,qword ptr [RBP + -0xa8]
MOV qword ptr [RBP + -0x20],RAX
LAB_001fd241:
MOV AL,byte ptr [RBP + -0xa9]
AND AL,0x1
MOV byte ptr [RBP + -0x69],AL
TEST byte ptr [RBP + -0x69],0x1
JZ 0x001fd25c
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001fd265
LAB_001fd25c:
MOV RDI,qword ptr [RBP + -0x50]
CALL 0x001f3da0
LAB_001fd265:
JMP 0x001fd267
LAB_001fd267:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0x20]
IMUL ECX,dword ptr [RBP + -0x14]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x8],RAX
LAB_001fd27f:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0xb0
POP RBP
RET
|
long lf_dynarray_lvalue(long param_1,uint param_2)
{
ulong uVar1;
long lVar2;
ulong uVar3;
bool bVar4;
ulong local_a8;
ulong local_60;
int local_34;
ulong *local_30;
ulong local_28;
uint local_1c;
local_34 = 3;
while ((ulong)param_2 < *(ulong *)(dynarray_idxes_in_prev_levels + (long)local_34 * 8)) {
local_34 = local_34 + -1;
}
local_30 = (ulong *)(param_1 + (long)local_34 * 8);
local_1c = param_2 - (int)*(int8 *)(dynarray_idxes_in_prev_levels + (long)local_34 * 8);
for (; 0 < local_34; local_34 = local_34 + -1) {
uVar1 = *local_30;
local_28 = uVar1;
if (uVar1 == 0) {
local_28 = my_malloc(key_memory_lf_dynarray,0x800,0x30);
if (local_28 == 0) {
return 0;
}
LOCK();
uVar3 = *local_30;
bVar4 = uVar3 == 0;
if (bVar4) {
*local_30 = local_28;
uVar3 = uVar1;
}
UNLOCK();
if (!bVar4) {
my_free(local_28);
local_28 = uVar3;
}
}
local_30 = (ulong *)(local_28 +
((ulong)local_1c /
*(ulong *)(dynarray_idxes_in_prev_level + (long)local_34 * 8)) * 8);
local_1c = (uint)((ulong)local_1c %
*(ulong *)(dynarray_idxes_in_prev_level + (long)local_34 * 8));
}
uVar1 = *local_30;
local_28 = uVar1;
if (uVar1 == 0) {
if (*(uint *)(param_1 + 0x20) < 9) {
local_a8 = 8;
}
else {
local_a8 = (ulong)*(uint *)(param_1 + 0x20);
}
lVar2 = my_malloc(key_memory_lf_dynarray,(uint)(*(int *)(param_1 + 0x20) << 8) + local_a8,0x30);
if (lVar2 == 0) {
return 0;
}
local_60 = lVar2 + 8;
uVar3 = local_60 % (ulong)*(uint *)(param_1 + 0x20);
if (uVar3 != 0) {
local_60 = (*(uint *)(param_1 + 0x20) - uVar3) + local_60;
}
*(long *)(local_60 - 8) = lVar2;
LOCK();
local_28 = *local_30;
bVar4 = local_28 == 0;
if (bVar4) {
*local_30 = local_60;
local_28 = uVar1;
}
UNLOCK();
if (bVar4) {
local_28 = local_60;
}
else {
my_free(lVar2);
}
}
return local_28 + *(int *)(param_1 + 0x20) * local_1c;
}
|
|
57,417
|
CLI::detail::convert_arg_for_ini(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char, char)
|
MikePodsytnik[P]TCRtrie/build_O2/_deps/cli11-src/include/CLI/impl/Config_inl.hpp
|
CLI11_INLINE std::string convert_arg_for_ini(const std::string &arg, char stringQuote, char characterQuote) {
if(arg.empty()) {
return std::string(2, stringQuote);
}
// some specifically supported strings
if(arg == "true" || arg == "false" || arg == "nan" || arg == "inf") {
return arg;
}
// floating point conversion can convert some hex codes, but don't try that here
if(arg.compare(0, 2, "0x") != 0 && arg.compare(0, 2, "0X") != 0) {
using CLI::detail::lexical_cast;
double val = 0.0;
if(lexical_cast(arg, val)) {
return arg;
}
}
// just quote a single non numeric character
if(arg.size() == 1) {
return std::string(1, characterQuote) + arg + characterQuote;
}
// handle hex, binary or octal arguments
if(arg.front() == '0') {
if(arg[1] == 'x') {
if(std::all_of(arg.begin() + 2, arg.end(), [](char x) {
return (x >= '0' && x <= '9') || (x >= 'A' && x <= 'F') || (x >= 'a' && x <= 'f');
})) {
return arg;
}
} else if(arg[1] == 'o') {
if(std::all_of(arg.begin() + 2, arg.end(), [](char x) { return (x >= '0' && x <= '7'); })) {
return arg;
}
} else if(arg[1] == 'b') {
if(std::all_of(arg.begin() + 2, arg.end(), [](char x) { return (x == '0' || x == '1'); })) {
return arg;
}
}
}
if(arg.find_first_of(stringQuote) == std::string::npos) {
return std::string(1, stringQuote) + arg + stringQuote;
}
return characterQuote + arg + characterQuote;
}
|
O2
|
cpp
|
CLI::detail::convert_arg_for_ini(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char, char):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movl %edx, %r15d
movq %rdi, %rbx
cmpq $0x0, 0x8(%rsi)
je 0x9a60
movl %ecx, %ebp
movq %rsi, %r14
leaq 0x1fa59(%rip), %rsi # 0x29467
movq %r14, %rdi
callq 0x966c
testb %al, %al
jne 0x9a53
leaq 0x1f6f9(%rip), %rsi # 0x2911a
movq %r14, %rdi
callq 0x966c
testb %al, %al
jne 0x9a53
leaq 0x1fafe(%rip), %rsi # 0x29532
movq %r14, %rdi
callq 0x966c
testb %al, %al
jne 0x9a53
leaq 0x1faef(%rip), %rsi # 0x29536
movq %r14, %rdi
callq 0x966c
testb %al, %al
je 0x9a84
movq %rbx, %rdi
movq %r14, %rsi
callq 0x75e0
jmp 0x9a76
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movsbl %r15b, %edx
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x7500
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1faaf(%rip), %rcx # 0x2953a
pushq $0x2
popq %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x75b0
testl %eax, %eax
je 0x9ac9
leaq 0x1fa9a(%rip), %rcx # 0x2953d
pushq $0x2
popq %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x75b0
testl %eax, %eax
je 0x9ac9
leaq 0x8(%rsp), %rsi
andq $0x0, (%rsi)
movq %r14, %rdi
callq 0x10d6a
testb %al, %al
jne 0x9a53
movq 0x8(%r14), %rsi
cmpq $0x1, %rsi
jne 0x9b15
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movsbl %bpl, %ebp
leaq 0x28(%rsp), %rdi
pushq $0x1
popq %rsi
movl %ebp, %edx
callq 0x7500
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq %r14, %rdx
callq 0xa194
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movl %ebp, %edx
callq 0xa1e9
jmp 0x9bdc
movq (%r14), %rax
cmpb $0x30, (%rax)
jne 0x9b60
movzbl 0x1(%rax), %ecx
cmpl $0x62, %ecx
je 0x9b4c
cmpl $0x6f, %ecx
je 0x9b3e
cmpl $0x78, %ecx
jne 0x9b60
leaq 0x2(%rax), %rdi
addq %rax, %rsi
callq 0x11695
jmp 0x9b58
leaq 0x2(%rax), %rdi
addq %rax, %rsi
callq 0x116a6
jmp 0x9b58
leaq 0x2(%rax), %rdi
addq %rax, %rsi
callq 0x116b7
testb %al, %al
jne 0x9a53
movsbl %r15b, %r15d
movq %r14, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x7580
cmpq $-0x1, %rax
je 0x9ba1
movsbl %bpl, %ebp
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
callq 0x116c8
movq %rbx, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0xa1e9
leaq 0x8(%rsp), %rdi
jmp 0x9beb
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x28(%rsp), %rdi
pushq $0x1
popq %rsi
movl %r15d, %edx
callq 0x7500
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq %r14, %rdx
callq 0xa194
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movl %r15d, %edx
callq 0xa1e9
leaq 0x8(%rsp), %rdi
callq 0x7860
leaq 0x28(%rsp), %rdi
callq 0x7860
jmp 0x9a76
jmp 0x9c05
jmp 0x9c14
jmp 0x9c23
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
jmp 0x9c1c
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x7860
jmp 0x9c17
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x7860
jmp 0x9c26
movq %rax, %rbx
movq %rbx, %rdi
callq 0x7770
|
_ZN3CLI6detail19convert_arg_for_iniERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcc:
push rbp
push r15
push r14
push rbx
sub rsp, 48h
mov r15d, edx
mov rbx, rdi
cmp qword ptr [rsi+8], 0
jz short loc_9A60
mov ebp, ecx
mov r14, rsi
lea rsi, aTrue; "true"
mov rdi, r14
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jnz short loc_9A53
lea rsi, aFalse; "false"
mov rdi, r14
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jnz short loc_9A53
lea rsi, aNan; "nan"
mov rdi, r14
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jnz short loc_9A53
lea rsi, aInf; "inf"
mov rdi, r14
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jz short loc_9A84
loc_9A53:
mov rdi, rbx
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
jmp short loc_9A76
loc_9A60:
lea rax, [rbx+10h]
mov [rbx], rax
movsx edx, r15b
push 2
pop rsi
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char)
loc_9A76:
mov rax, rbx
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_9A84:
lea rcx, a0x; "0x"
push 2
pop rdx
mov rdi, r14
xor esi, esi
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmPKc; std::string::compare(ulong,ulong,char const*)
test eax, eax
jz short loc_9AC9
lea rcx, a0x_0; "0X"
push 2
pop rdx
mov rdi, r14
xor esi, esi
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmPKc; std::string::compare(ulong,ulong,char const*)
test eax, eax
jz short loc_9AC9
lea rsi, [rsp+68h+var_60]
and qword ptr [rsi], 0
mov rdi, r14
call _ZN3CLI6detail12lexical_castIdTnNSt9enable_ifIXeqsr15classify_objectIT_EE5valueLNS0_15object_categoryE10EENS0_7enablerEE4typeELS5_0EEEbRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERS3_
test al, al
jnz short loc_9A53
loc_9AC9:
mov rsi, [r14+8]
cmp rsi, 1
jnz short loc_9B15
lea rax, [rsp+68h+var_30]
mov [rax-10h], rax
movsx ebp, bpl
lea rdi, [rsp+68h+var_40]
push 1
pop rsi
mov edx, ebp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char)
lea rdi, [rsp+68h+var_60]
lea rsi, [rsp+68h+var_40]
mov rdx, r14
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_; std::operator+<char>(std::string&&,std::string const&)
lea rsi, [rsp+68h+var_60]
mov rdi, rbx
mov edx, ebp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S5_; std::operator+<char>(std::string&&,char)
jmp loc_9BDC
loc_9B15:
mov rax, [r14]
cmp byte ptr [rax], 30h ; '0'
jnz short loc_9B60
movzx ecx, byte ptr [rax+1]
cmp ecx, 62h ; 'b'
jz short loc_9B4C
cmp ecx, 6Fh ; 'o'
jz short loc_9B3E
cmp ecx, 78h ; 'x'
jnz short loc_9B60
lea rdi, [rax+2]
add rsi, rax
call _ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEZN3CLI6detail19convert_arg_for_iniERKS9_ccEUlcE_EbT_SG_T0_; std::all_of<__gnu_cxx::__normal_iterator<char const*,std::string>,CLI::detail::convert_arg_for_ini(std::string const&,char,char)::{lambda(char)#1}>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,CLI::detail::convert_arg_for_ini(std::string const&,char,char)::{lambda(char)#1})
jmp short loc_9B58
loc_9B3E:
lea rdi, [rax+2]
add rsi, rax
call _ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEZN3CLI6detail19convert_arg_for_iniERKS9_ccEUlcE0_EbT_SG_T0_; std::all_of<__gnu_cxx::__normal_iterator<char const*,std::string>,CLI::detail::convert_arg_for_ini(std::string const&,char,char)::{lambda(char)#2}>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,CLI::detail::convert_arg_for_ini(std::string const&,char,char)::{lambda(char)#2})
jmp short loc_9B58
loc_9B4C:
lea rdi, [rax+2]
add rsi, rax
call _ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEZN3CLI6detail19convert_arg_for_iniERKS9_ccEUlcE1_EbT_SG_T0_; std::all_of<__gnu_cxx::__normal_iterator<char const*,std::string>,CLI::detail::convert_arg_for_ini(std::string const&,char,char)::{lambda(char)#3}>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,CLI::detail::convert_arg_for_ini(std::string const&,char,char)::{lambda(char)#3})
loc_9B58:
test al, al
jnz loc_9A53
loc_9B60:
movsx r15d, r15b
mov rdi, r14
mov esi, r15d
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm; std::string::find(char,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_9BA1
movsx ebp, bpl
lea r15, [rsp+68h+var_60]
mov rdi, r15
mov esi, ebp
mov rdx, r14
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_; std::operator+<char>(char,std::string const&)
mov rdi, rbx
mov rsi, r15
mov edx, ebp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S5_; std::operator+<char>(std::string&&,char)
lea rdi, [rsp+68h+var_60]
jmp short loc_9BEB
loc_9BA1:
lea rax, [rsp+68h+var_30]
mov [rax-10h], rax
lea rdi, [rsp+68h+var_40]
push 1
pop rsi
mov edx, r15d
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char)
lea rdi, [rsp+68h+var_60]
lea rsi, [rsp+68h+var_40]
mov rdx, r14
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_; std::operator+<char>(std::string&&,std::string const&)
lea rsi, [rsp+68h+var_60]
mov rdi, rbx
mov edx, r15d
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S5_; std::operator+<char>(std::string&&,char)
loc_9BDC:
lea rdi, [rsp+68h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+68h+var_40]; void *
loc_9BEB:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp loc_9A76
jmp short loc_9C05
jmp short loc_9C14
jmp short loc_9C23
mov rbx, rax
lea rdi, [rsp+arg_0]
jmp short loc_9C1C
loc_9C05:
mov rbx, rax
lea rdi, [rsp+arg_0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_9C17
loc_9C14:
mov rbx, rax
loc_9C17:
lea rdi, [rsp+arg_20]; void *
loc_9C1C:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_9C26
loc_9C23:
mov rbx, rax
loc_9C26:
mov rdi, rbx
call __Unwind_Resume
|
_QWORD * CLI::detail::convert_arg_for_ini(_QWORD *a1, _QWORD *a2, char a3, char a4)
{
long long v9; // rsi
_BYTE *v10; // rax
int v11; // ecx
char v12; // al
_QWORD *v13; // rdi
_QWORD v14[4]; // [rsp+8h] [rbp-60h] BYREF
_QWORD v15[2]; // [rsp+28h] [rbp-40h] BYREF
_BYTE v16[48]; // [rsp+38h] [rbp-30h] BYREF
if ( !a2[1] )
{
*a1 = a1 + 2;
std::string::_M_construct(a1, 2LL, (unsigned int)a3);
return a1;
}
if ( !std::operator==<char>((long long)a2)
&& !std::operator==<char>((long long)a2)
&& !std::operator==<char>((long long)a2)
&& !std::operator==<char>((long long)a2) )
{
if ( !(unsigned int)std::string::compare(a2, 0LL, 2LL, "0x")
|| !(unsigned int)std::string::compare(a2, 0LL, 2LL, "0X")
|| (v14[0] = 0LL,
!(unsigned __int8)ZN3CLI6detail12lexical_castIdTnNSt9enable_ifIXeqsr15classify_objectIT_EE5valueLNS0_15object_categoryE10EENS0_7enablerEE4typeELS5_0EEEbRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERS3_(
a2,
v14)) )
{
v9 = a2[1];
if ( v9 == 1 )
{
v15[0] = v16;
std::string::_M_construct(v15, 1LL, (unsigned int)a4);
std::operator+<char>(v14, v15, a2);
std::operator+<char>(a1, v14, (unsigned int)a4);
goto LABEL_25;
}
v10 = (_BYTE *)*a2;
if ( *(_BYTE *)*a2 != 48 )
goto LABEL_22;
v11 = (unsigned __int8)v10[1];
switch ( v11 )
{
case 'b':
v12 = std::all_of<__gnu_cxx::__normal_iterator<char const*,std::string>,CLI::detail::convert_arg_for_ini(std::string const&,char,char)::{lambda(char)#3}>(
v10 + 2,
&v10[v9]);
break;
case 'o':
v12 = std::all_of<__gnu_cxx::__normal_iterator<char const*,std::string>,CLI::detail::convert_arg_for_ini(std::string const&,char,char)::{lambda(char)#2}>(
v10 + 2,
&v10[v9]);
break;
case 'x':
v12 = std::all_of<__gnu_cxx::__normal_iterator<char const*,std::string>,CLI::detail::convert_arg_for_ini(std::string const&,char,char)::{lambda(char)#1}>(
v10 + 2,
&v10[v9]);
break;
default:
LABEL_22:
if ( std::string::find(a2, (unsigned int)a3) != -1 )
{
std::operator+<char>(v14, (unsigned int)a4, a2);
std::operator+<char>(a1, v14, (unsigned int)a4);
v13 = v14;
LABEL_26:
std::string::~string(v13);
return a1;
}
v15[0] = v16;
std::string::_M_construct(v15, 1LL, (unsigned int)a3);
std::operator+<char>(v14, v15, a2);
std::operator+<char>(a1, v14, (unsigned int)a3);
LABEL_25:
std::string::~string(v14);
v13 = v15;
goto LABEL_26;
}
if ( !v12 )
goto LABEL_22;
}
}
std::string::basic_string(a1);
return a1;
}
|
convert_arg_for_ini:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV R15D,EDX
MOV RBX,RDI
CMP qword ptr [RSI + 0x8],0x0
JZ 0x00109a60
MOV EBP,ECX
MOV R14,RSI
LEA RSI,[0x129467]
MOV RDI,R14
CALL 0x0010966c
TEST AL,AL
JNZ 0x00109a53
LEA RSI,[0x12911a]
MOV RDI,R14
CALL 0x0010966c
TEST AL,AL
JNZ 0x00109a53
LEA RSI,[0x129532]
MOV RDI,R14
CALL 0x0010966c
TEST AL,AL
JNZ 0x00109a53
LEA RSI,[0x129536]
MOV RDI,R14
CALL 0x0010966c
TEST AL,AL
JZ 0x00109a84
LAB_00109a53:
MOV RDI,RBX
MOV RSI,R14
CALL 0x001075e0
JMP 0x00109a76
LAB_00109a60:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
MOVSX EDX,R15B
PUSH 0x2
POP RSI
MOV RDI,RBX
CALL 0x00107500
LAB_00109a76:
MOV RAX,RBX
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00109a84:
LEA RCX,[0x12953a]
PUSH 0x2
POP RDX
MOV RDI,R14
XOR ESI,ESI
CALL 0x001075b0
TEST EAX,EAX
JZ 0x00109ac9
LEA RCX,[0x12953d]
PUSH 0x2
POP RDX
MOV RDI,R14
XOR ESI,ESI
CALL 0x001075b0
TEST EAX,EAX
JZ 0x00109ac9
LEA RSI,[RSP + 0x8]
AND qword ptr [RSI],0x0
MOV RDI,R14
CALL 0x00110d6a
TEST AL,AL
JNZ 0x00109a53
LAB_00109ac9:
MOV RSI,qword ptr [R14 + 0x8]
CMP RSI,0x1
JNZ 0x00109b15
LEA RAX,[RSP + 0x38]
MOV qword ptr [RAX + -0x10],RAX
LAB_00109adc:
MOVSX EBP,BPL
LEA RDI,[RSP + 0x28]
PUSH 0x1
POP RSI
MOV EDX,EBP
CALL 0x00107500
LAB_00109aef:
LEA RDI,[RSP + 0x8]
LEA RSI,[RSP + 0x28]
MOV RDX,R14
CALL 0x0010a194
LAB_00109b01:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
MOV EDX,EBP
CALL 0x0010a1e9
LAB_00109b10:
JMP 0x00109bdc
LAB_00109b15:
MOV RAX,qword ptr [R14]
CMP byte ptr [RAX],0x30
JNZ 0x00109b60
MOVZX ECX,byte ptr [RAX + 0x1]
CMP ECX,0x62
JZ 0x00109b4c
CMP ECX,0x6f
JZ 0x00109b3e
CMP ECX,0x78
JNZ 0x00109b60
LEA RDI,[RAX + 0x2]
ADD RSI,RAX
CALL 0x00111695
JMP 0x00109b58
LAB_00109b3e:
LEA RDI,[RAX + 0x2]
ADD RSI,RAX
CALL 0x001116a6
JMP 0x00109b58
LAB_00109b4c:
LEA RDI,[RAX + 0x2]
ADD RSI,RAX
CALL 0x001116b7
LAB_00109b58:
TEST AL,AL
JNZ 0x00109a53
LAB_00109b60:
MOVSX R15D,R15B
MOV RDI,R14
MOV ESI,R15D
XOR EDX,EDX
CALL 0x00107580
CMP RAX,-0x1
JZ 0x00109ba1
MOVSX EBP,BPL
LEA R15,[RSP + 0x8]
MOV RDI,R15
MOV ESI,EBP
MOV RDX,R14
CALL 0x001116c8
LAB_00109b8d:
MOV RDI,RBX
MOV RSI,R15
MOV EDX,EBP
CALL 0x0010a1e9
LEA RDI,[RSP + 0x8]
JMP 0x00109beb
LAB_00109ba1:
LEA RAX,[RSP + 0x38]
MOV qword ptr [RAX + -0x10],RAX
LAB_00109baa:
LEA RDI,[RSP + 0x28]
PUSH 0x1
POP RSI
MOV EDX,R15D
CALL 0x00107500
LAB_00109bba:
LEA RDI,[RSP + 0x8]
LEA RSI,[RSP + 0x28]
MOV RDX,R14
CALL 0x0010a194
LAB_00109bcc:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
MOV EDX,R15D
CALL 0x0010a1e9
LAB_00109bdc:
LEA RDI,[RSP + 0x8]
CALL 0x00107860
LEA RDI,[RSP + 0x28]
LAB_00109beb:
CALL 0x00107860
JMP 0x00109a76
|
/* CLI::detail::convert_arg_for_ini(std::__cxx11::string const&, char, char) */
detail * __thiscall
CLI::detail::convert_arg_for_ini(detail *this,string *param_1,char param_2,char param_3)
{
char *pcVar1;
bool bVar2;
char cVar3;
int iVar4;
long lVar5;
string *this_00;
int8 local_60 [4];
int1 *local_40 [2];
int1 local_30 [16];
if (*(long *)(param_1 + 8) == 0) {
*(detail **)this = this + 0x10;
std::__cxx11::string::_M_construct((ulong)this,'\x02');
return this;
}
bVar2 = std::operator==(param_1,"true");
if ((((bVar2) || (bVar2 = std::operator==(param_1,"false"), bVar2)) ||
(bVar2 = std::operator==(param_1,"nan"), bVar2)) ||
(bVar2 = std::operator==(param_1,"inf"), bVar2)) goto LAB_00109a53;
iVar4 = std::__cxx11::string::compare((ulong)param_1,0,(char *)0x2);
if ((iVar4 != 0) &&
(iVar4 = std::__cxx11::string::compare((ulong)param_1,0,(char *)0x2), iVar4 != 0)) {
local_60[0] = 0;
cVar3 = _ZN3CLI6detail12lexical_castIdTnNSt9enable_ifIXeqsr15classify_objectIT_EE5valueLNS0_15object_categoryE10EENS0_7enablerEE4typeELS5_0EEEbRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERS3_
(param_1);
if (cVar3 != '\0') goto LAB_00109a53;
}
lVar5 = *(long *)(param_1 + 8);
if (lVar5 == 1) {
local_40[0] = local_30;
/* try { // try from 00109adc to 00109aee has its CatchHandler @ 00109c23 */
std::__cxx11::string::_M_construct((ulong)local_40,'\x01');
/* try { // try from 00109aef to 00109b00 has its CatchHandler @ 00109c14 */
std::operator+((string *)local_60,(string *)local_40);
/* try { // try from 00109b01 to 00109b0f has its CatchHandler @ 00109c05 */
std::operator+((string *)this,(char)local_60);
}
else {
pcVar1 = *(char **)param_1;
if (*pcVar1 == '0') {
cVar3 = pcVar1[1];
if (cVar3 == 'b') {
bVar2 = std::
all_of<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,CLI::detail::convert_arg_for_ini(std::__cxx11::string_const&,char,char)::_lambda(char)_3_>
(pcVar1 + 2,pcVar1 + lVar5);
}
else if (cVar3 == 'o') {
bVar2 = std::
all_of<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,CLI::detail::convert_arg_for_ini(std::__cxx11::string_const&,char,char)::_lambda(char)_2_>
(pcVar1 + 2,pcVar1 + lVar5);
}
else {
if (cVar3 != 'x') goto LAB_00109b60;
bVar2 = std::
all_of<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,CLI::detail::convert_arg_for_ini(std::__cxx11::string_const&,char,char)::_lambda(char)_1_>
(pcVar1 + 2,pcVar1 + lVar5);
}
if (bVar2 != false) {
LAB_00109a53:
std::__cxx11::string::string((string *)this,param_1);
return this;
}
}
LAB_00109b60:
lVar5 = std::__cxx11::string::find((char)param_1,(ulong)(uint)(int)param_2);
if (lVar5 != -1) {
std::operator+((char)local_60,(string *)(ulong)(uint)(int)param_3);
/* try { // try from 00109b8d to 00109b99 has its CatchHandler @ 00109bfb */
std::operator+((string *)this,(char)local_60);
this_00 = (string *)local_60;
goto LAB_00109beb;
}
local_40[0] = local_30;
/* try { // try from 00109baa to 00109bb9 has its CatchHandler @ 00109bf9 */
std::__cxx11::string::_M_construct((ulong)local_40,'\x01');
/* try { // try from 00109bba to 00109bcb has its CatchHandler @ 00109bf7 */
std::operator+((string *)local_60,(string *)local_40);
/* try { // try from 00109bcc to 00109bdb has its CatchHandler @ 00109bf5 */
std::operator+((string *)this,(char)local_60);
}
std::__cxx11::string::~string((string *)local_60);
this_00 = (string *)local_40;
LAB_00109beb:
std::__cxx11::string::~string(this_00);
return this;
}
|
|
57,418
|
get_charset_name
|
eloqsql/mysys/charset.c
|
const char *get_charset_name(uint charset_number)
{
my_pthread_once(&charsets_initialized, init_available_charsets);
if (charset_number < array_elements(all_charsets))
{
CHARSET_INFO *cs= all_charsets[charset_number];
if (cs && (cs->number == charset_number) && cs->coll_name.str)
return cs->coll_name.str;
}
return "?"; /* this mimics find_type() */
}
|
O3
|
c
|
get_charset_name:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
leaq 0x36c076(%rip), %rdi # 0x3cf690
leaq -0x302(%rip), %rsi # 0x6331f
callq 0x37290
leaq 0x441ed(%rip), %rcx # 0xa781a
cmpl $0x7ff, %ebx # imm = 0x7FF
ja 0x63654
movl %ebx, %eax
leaq 0x363fe2(%rip), %rdx # 0x3c7620
movq (%rdx,%rax,8), %rax
testq %rax, %rax
je 0x63654
cmpl %ebx, (%rax)
jne 0x63654
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x63657
movq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
get_charset_name:
push rbp
mov rbp, rsp
push rbx
push rax
mov ebx, edi
lea rdi, charsets_initialized
lea rsi, init_available_charsets
call _pthread_once
lea rcx, asc_A781A; "?"
cmp ebx, 7FFh
ja short loc_63654
mov eax, ebx
lea rdx, all_charsets
mov rax, [rdx+rax*8]
test rax, rax
jz short loc_63654
cmp [rax], ebx
jnz short loc_63654
mov rax, [rax+20h]
test rax, rax
jnz short loc_63657
loc_63654:
mov rax, rcx
loc_63657:
add rsp, 8
pop rbx
pop rbp
retn
|
const char * get_charset_name(unsigned int a1)
{
long long v1; // rax
const char *result; // rax
pthread_once(&charsets_initialized, init_available_charsets);
if ( a1 > 0x7FF )
return "?";
v1 = all_charsets[a1];
if ( !v1 )
return "?";
if ( *(_DWORD *)v1 != a1 )
return "?";
result = *(const char **)(v1 + 32);
if ( !result )
return "?";
return result;
}
|
get_charset_name:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV EBX,EDI
LEA RDI,[0x4cf690]
LEA RSI,[0x16331f]
CALL 0x00137290
LEA RCX,[0x1a781a]
CMP EBX,0x7ff
JA 0x00163654
MOV EAX,EBX
LEA RDX,[0x4c7620]
MOV RAX,qword ptr [RDX + RAX*0x8]
TEST RAX,RAX
JZ 0x00163654
CMP dword ptr [RAX],EBX
JNZ 0x00163654
MOV RAX,qword ptr [RAX + 0x20]
TEST RAX,RAX
JNZ 0x00163657
LAB_00163654:
MOV RAX,RCX
LAB_00163657:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int * get_charset_name(uint param_1)
{
uint *puVar1;
int *puVar2;
pthread_once(&charsets_initialized,init_available_charsets);
if ((((0x7ff < param_1) || (puVar1 = (uint *)(&all_charsets)[param_1], puVar1 == (uint *)0x0)) ||
(*puVar1 != param_1)) || (puVar2 = *(int **)(puVar1 + 8), puVar2 == (int *)0x0)) {
puVar2 = &DAT_001a781a;
}
return puVar2;
}
|
|
57,419
|
copy_uca_collation
|
eloqsql/mysys/charset.c
|
static void
copy_uca_collation(struct charset_info_st *to, CHARSET_INFO *from,
CHARSET_INFO *loaded)
{
to->cset= from->cset;
to->coll= from->coll;
/*
Single-level UCA collation have strnxfrm_multiple=8.
In case of a multi-level UCA collation we use strnxfrm_multiply=4.
That means MY_COLLATION_HANDLER::strnfrmlen() will request the caller
to allocate a buffer smaller size for each level, for performance purpose,
and to fit longer VARCHARs to @@max_sort_length.
This makes filesort produce non-precise order for some rare Unicode
characters that produce more than 4 weights (long expansions).
UCA requires 2 bytes per weight multiplied by the number of levels.
In case of a 2-level collation, each character requires 4*2=8 bytes.
Therefore, the longest VARCHAR that fits into the default @@max_sort_length
is 1024/8=VARCHAR(128). With strnxfrm_multiply==8, only VARCHAR(64)
would fit.
Note, the built-in collation utf8_thai_520_w2 also uses strnxfrm_multiply=4,
for the same purpose.
TODO: we could add a new LDML syntax to choose strxfrm_multiply value.
*/
to->strxfrm_multiply= loaded->levels_for_order > 1 ?
4 : from->strxfrm_multiply;
to->min_sort_char= from->min_sort_char;
to->max_sort_char= from->max_sort_char;
to->mbminlen= from->mbminlen;
to->mbmaxlen= from->mbmaxlen;
to->caseup_multiply= from->caseup_multiply;
to->casedn_multiply= from->casedn_multiply;
to->state|= MY_CS_AVAILABLE | MY_CS_LOADED |
MY_CS_STRNXFRM | MY_CS_UNICODE;
}
|
O0
|
c
|
copy_uca_collation:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0xb8(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xb8(%rax)
movq -0x10(%rbp), %rax
movq 0xc0(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xc0(%rax)
movq -0x18(%rbp), %rax
movzbl 0xb2(%rax), %eax
cmpl $0x1, %eax
jle 0xe1fc6
movl $0x4, %eax
movl %eax, -0x1c(%rbp)
jmp 0xe1fd3
movq -0x10(%rbp), %rax
movl 0x90(%rax), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x90(%rax)
movq -0x10(%rbp), %rax
movq 0xa0(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xa0(%rax)
movq -0x10(%rbp), %rax
movq 0xa8(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xa8(%rax)
movq -0x10(%rbp), %rax
movl 0x98(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x98(%rax)
movq -0x10(%rbp), %rax
movl 0x9c(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x9c(%rax)
movq -0x10(%rbp), %rax
movb 0x94(%rax), %cl
movq -0x8(%rbp), %rax
movb %cl, 0x94(%rax)
movq -0x10(%rbp), %rax
movb 0x95(%rax), %cl
movq -0x8(%rbp), %rax
movb %cl, 0x95(%rax)
movq -0x8(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x2c8, %ecx # imm = 0x2C8
movl %ecx, 0xc(%rax)
popq %rbp
retq
nop
|
copy_uca_collation:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_10]
mov rcx, [rax+0B8h]
mov rax, [rbp+var_8]
mov [rax+0B8h], rcx
mov rax, [rbp+var_10]
mov rcx, [rax+0C0h]
mov rax, [rbp+var_8]
mov [rax+0C0h], rcx
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+0B2h]
cmp eax, 1
jle short loc_E1FC6
mov eax, 4
mov [rbp+var_1C], eax
jmp short loc_E1FD3
loc_E1FC6:
mov rax, [rbp+var_10]
mov eax, [rax+90h]
mov [rbp+var_1C], eax
loc_E1FD3:
mov ecx, [rbp+var_1C]
mov rax, [rbp+var_8]
mov [rax+90h], ecx
mov rax, [rbp+var_10]
mov rcx, [rax+0A0h]
mov rax, [rbp+var_8]
mov [rax+0A0h], rcx
mov rax, [rbp+var_10]
mov rcx, [rax+0A8h]
mov rax, [rbp+var_8]
mov [rax+0A8h], rcx
mov rax, [rbp+var_10]
mov ecx, [rax+98h]
mov rax, [rbp+var_8]
mov [rax+98h], ecx
mov rax, [rbp+var_10]
mov ecx, [rax+9Ch]
mov rax, [rbp+var_8]
mov [rax+9Ch], ecx
mov rax, [rbp+var_10]
mov cl, [rax+94h]
mov rax, [rbp+var_8]
mov [rax+94h], cl
mov rax, [rbp+var_10]
mov cl, [rax+95h]
mov rax, [rbp+var_8]
mov [rax+95h], cl
mov rax, [rbp+var_8]
mov ecx, [rax+0Ch]
or ecx, 2C8h
mov [rax+0Ch], ecx
pop rbp
retn
|
long long copy_uca_collation(long long a1, long long a2, long long a3)
{
long long result; // rax
int v4; // [rsp+0h] [rbp-1Ch]
*(_QWORD *)(a1 + 184) = *(_QWORD *)(a2 + 184);
*(_QWORD *)(a1 + 192) = *(_QWORD *)(a2 + 192);
if ( *(unsigned __int8 *)(a3 + 178) <= 1u )
v4 = *(_DWORD *)(a2 + 144);
else
v4 = 4;
*(_DWORD *)(a1 + 144) = v4;
*(_QWORD *)(a1 + 160) = *(_QWORD *)(a2 + 160);
*(_QWORD *)(a1 + 168) = *(_QWORD *)(a2 + 168);
*(_DWORD *)(a1 + 152) = *(_DWORD *)(a2 + 152);
*(_DWORD *)(a1 + 156) = *(_DWORD *)(a2 + 156);
*(_BYTE *)(a1 + 148) = *(_BYTE *)(a2 + 148);
*(_BYTE *)(a1 + 149) = *(_BYTE *)(a2 + 149);
result = a1;
*(_DWORD *)(a1 + 12) |= 0x2C8u;
return result;
}
|
copy_uca_collation:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xb8],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0xc0]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xc0],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0xb2]
CMP EAX,0x1
JLE 0x001e1fc6
MOV EAX,0x4
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x001e1fd3
LAB_001e1fc6:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x90]
MOV dword ptr [RBP + -0x1c],EAX
LAB_001e1fd3:
MOV ECX,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x90],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0xa0]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xa0],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0xa8]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xa8],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x98]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x98],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x9c]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x9c],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV CL,byte ptr [RAX + 0x94]
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x94],CL
MOV RAX,qword ptr [RBP + -0x10]
MOV CL,byte ptr [RAX + 0x95]
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x95],CL
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0xc]
OR ECX,0x2c8
MOV dword ptr [RAX + 0xc],ECX
POP RBP
RET
|
void copy_uca_collation(long param_1,long param_2,long param_3)
{
int4 local_24;
*(int8 *)(param_1 + 0xb8) = *(int8 *)(param_2 + 0xb8);
*(int8 *)(param_1 + 0xc0) = *(int8 *)(param_2 + 0xc0);
if (*(byte *)(param_3 + 0xb2) < 2) {
local_24 = *(int4 *)(param_2 + 0x90);
}
else {
local_24 = 4;
}
*(int4 *)(param_1 + 0x90) = local_24;
*(int8 *)(param_1 + 0xa0) = *(int8 *)(param_2 + 0xa0);
*(int8 *)(param_1 + 0xa8) = *(int8 *)(param_2 + 0xa8);
*(int4 *)(param_1 + 0x98) = *(int4 *)(param_2 + 0x98);
*(int4 *)(param_1 + 0x9c) = *(int4 *)(param_2 + 0x9c);
*(int1 *)(param_1 + 0x94) = *(int1 *)(param_2 + 0x94);
*(int1 *)(param_1 + 0x95) = *(int1 *)(param_2 + 0x95);
*(uint *)(param_1 + 0xc) = *(uint *)(param_1 + 0xc) | 0x2c8;
return;
}
|
|
57,420
|
google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::UpdateMetadata(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long, unsigned long, unsigned long)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/command_line_interface.cc
|
void CommandLineInterface::MemoryOutputStream::UpdateMetadata(
const std::string& insertion_content, size_t insertion_offset,
size_t insertion_length, size_t indent_length) {
auto it = directory_->files_.find(filename_ + ".pb.meta");
if (it == directory_->files_.end() && info_to_insert_.annotation().empty()) {
// No metadata was recorded for this file.
return;
}
GeneratedCodeInfo metadata;
bool is_text_format = false;
std::string* encoded_data = nullptr;
if (it != directory_->files_.end()) {
encoded_data = &it->second;
// Try to decode a GeneratedCodeInfo proto from the .pb.meta file. It may be
// in wire or text format. Keep the same format when the data is written out
// later.
if (!metadata.ParseFromString(*encoded_data)) {
if (!TextFormat::ParseFromString(*encoded_data, &metadata)) {
// The metadata is invalid.
std::cerr
<< filename_
<< ".pb.meta: Could not parse metadata as wire or text format."
<< std::endl;
return;
}
// Generators that use the public plugin interface emit text-format
// metadata (because in the public plugin protocol, file content must be
// UTF8-encoded strings).
is_text_format = true;
}
} else {
// Create a new file to store the new metadata in info_to_insert_.
encoded_data =
&directory_->files_.insert({filename_ + ".pb.meta", ""}).first->second;
}
GeneratedCodeInfo new_metadata;
bool crossed_offset = false;
size_t to_add = 0;
for (const auto& source_annotation : metadata.annotation()) {
// The first time an annotation at or after the insertion point is found,
// insert the new metadata from info_to_insert_. Shift all annotations
// after the new metadata by the length of the text that was inserted
// (including any additional indent length).
if (source_annotation.begin() >= insertion_offset && !crossed_offset) {
crossed_offset = true;
InsertShiftedInfo(insertion_content, insertion_offset, indent_length,
new_metadata);
to_add += insertion_length;
}
GeneratedCodeInfo::Annotation* annotation = new_metadata.add_annotation();
*annotation = source_annotation;
annotation->set_begin(annotation->begin() + to_add);
annotation->set_end(annotation->end() + to_add);
}
// If there were never any annotations at or after the insertion point,
// make sure to still insert the new metadata from info_to_insert_.
if (!crossed_offset) {
InsertShiftedInfo(insertion_content, insertion_offset, indent_length,
new_metadata);
}
if (is_text_format) {
TextFormat::PrintToString(new_metadata, encoded_data);
} else {
new_metadata.SerializeToString(encoded_data);
}
}
|
O3
|
cpp
|
google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::UpdateMetadata(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long, unsigned long, unsigned long):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %r8, 0x38(%rsp)
movq %rcx, 0x80(%rsp)
movq %rdx, 0x10(%rsp)
movq %rsi, 0x30(%rsp)
movq %rdi, %r14
movq 0x8(%rdi), %rbx
leaq 0x50(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x10(%rdi), %rsi
movq 0x18(%rdi), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %r12
movq %r12, %rdi
callq 0x2586a
leaq 0x1938d1(%rip), %rsi # 0x1ba376
movq %r12, %rdi
callq 0x1f8e0
addq $0x8, %rbx
leaq 0x40(%rsp), %rsi
movq %rbx, %rdi
callq 0x2fb2c
movq %rax, %r15
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x26ad0
callq 0x1f4a0
movq 0x8(%r14), %rax
addq $0x10, %rax
cmpq %rax, %r15
jne 0x26aeb
cmpl $0x0, 0x98(%r14)
je 0x26d7c
leaq 0xa8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x154f3e
movq 0x8(%r14), %rbx
leaq 0x10(%rbx), %rax
cmpq %rax, %r15
je 0x26b9a
addq $0x40, %r15
leaq 0xa8(%rsp), %rdi
movq %r15, %rsi
callq 0x20b08
testb %al, %al
jne 0x26c38
leaq 0xa8(%rsp), %rsi
movq %r15, %rdi
callq 0x17a9c8
movb $0x1, %bl
testb %al, %al
jne 0x26c3a
movq 0x10(%r14), %rsi
movq 0x18(%r14), %rdx
movq 0x25848e(%rip), %rdi # 0x27efe0
callq 0x1f560
movq %rax, %rbx
leaq 0x173974(%rip), %rsi # 0x19a4d5
movl $0x3a, %edx
movq %rax, %rdi
callq 0x1f560
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1f4d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1f040
movq %rax, %rdi
callq 0x1f310
jmp 0x26d6f
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x10(%r14), %rsi
movq 0x18(%r14), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0x2586a
leaq 0x1937b0(%rip), %rsi # 0x1ba376
leaq 0x88(%rsp), %rdi
callq 0x1f8e0
leaq 0x1739cf(%rip), %rdx # 0x19a5a9
leaq 0x40(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x2dd92
addq $0x8, %rbx
leaq 0x40(%rsp), %rsi
movq %rbx, %rdi
callq 0x2f742
movq %rax, %r15
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x26c13
callq 0x1f4a0
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x26c22
callq 0x1f4a0
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x26c34
callq 0x1f4a0
addq $0x40, %r15
xorl %ebx, %ebx
movq %r15, 0x20(%rsp)
leaq 0x40(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x154f3e
movq 0xc8(%rsp), %rax
leaq 0x8(%rax), %rbp
testq %rax, %rax
cmoveq %rax, %rbp
movslq 0xc0(%rsp), %r15
testq %r15, %r15
je 0x26d25
movl %ebx, 0x1c(%rsp)
movq %r14, 0x28(%rsp)
shlq $0x3, %r15
xorl %r14d, %r14d
xorl %r13d, %r13d
movq $0x0, 0x8(%rsp)
movq (%rbp,%r14), %r12
movslq 0x38(%r12), %rax
cmpq 0x10(%rsp), %rax
jb 0x26cd2
testb $0x1, 0x8(%rsp)
jne 0x26cd2
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x38(%rsp), %rcx
leaq 0x40(%rsp), %r8
callq 0x2695c
addq 0x80(%rsp), %r13
movb $0x1, %al
movq %rax, 0x8(%rsp)
leaq 0x50(%rsp), %rdi
xorl %esi, %esi
callq 0x2e54e
movq %rax, %rbx
movq %rax, %rdi
movq %r12, %rsi
callq 0x154eaa
orb $0x6, 0x10(%rbx)
movq 0x38(%rbx), %xmm0
movd %r13d, %xmm1
pshufd $0x50, %xmm1, %xmm1 # xmm1 = xmm1[0,0,1,1]
paddd %xmm0, %xmm1
movq %xmm1, 0x38(%rbx)
addq $0x8, %r14
cmpq %r14, %r15
jne 0x26c8d
testb $0x1, 0x8(%rsp)
movq 0x28(%rsp), %r14
movl 0x1c(%rsp), %ebx
jne 0x26d41
leaq 0x40(%rsp), %r8
movq %r14, %rdi
movq 0x30(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x38(%rsp), %rcx
callq 0x2695c
testb %bl, %bl
je 0x26d56
leaq 0x40(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x17db9a
jmp 0x26d65
leaq 0x40(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0xfdce0
leaq 0x40(%rsp), %rdi
callq 0x154ffc
leaq 0xa8(%rsp), %rdi
callq 0x154ffc
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x2dcda
jmp 0x26da2
jmp 0x26d9f
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x26de6
callq 0x1f4a0
jmp 0x26de6
jmp 0x26dbc
jmp 0x26dbc
jmp 0x26dd9
movq %rax, %rbx
jmp 0x26de6
jmp 0x26dc3
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x26df3
callq 0x1f4a0
jmp 0x26df3
jmp 0x26dd9
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x154ffc
leaq 0xa8(%rsp), %rdi
callq 0x154ffc
movq %rbx, %rdi
callq 0x1f860
nop
|
_ZN6google8protobuf8compiler20CommandLineInterface18MemoryOutputStream14UpdateMetadataERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmm:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0D8h
mov [rsp+108h+var_D0], r8
mov [rsp+108h+var_88], rcx
mov [rsp+108h+var_F8], rdx
mov [rsp+108h+var_D8], rsi
mov r14, rdi
mov rbx, [rdi+8]
lea r13, [rsp+108h+var_B8]
mov [r13-10h], r13
mov rsi, [rdi+10h]
mov rdx, [rdi+18h]
add rdx, rsi
lea r12, [rsp+108h+var_C8]
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)
lea rsi, aJavaPbMeta+5; ".pb.meta"
mov rdi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
add rbx, 8
lea rsi, [rsp+108h+var_C8]
mov rdi, rbx
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE4findERS7_; 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>>>::find(std::string const&)
mov r15, rax
mov rdi, [rsp+108h+var_C8]; void *
cmp rdi, r13
jz short loc_26AD0
call __ZdlPv; operator delete(void *)
loc_26AD0:
mov rax, [r14+8]
add rax, 10h
cmp r15, rax
jnz short loc_26AEB
cmp dword ptr [r14+98h], 0
jz loc_26D7C
loc_26AEB:
lea rdi, [rsp+108h+var_60]
xor esi, esi
xor edx, edx
call _ZN6google8protobuf17GeneratedCodeInfoC2EPNS0_5ArenaEb; google::protobuf::GeneratedCodeInfo::GeneratedCodeInfo(google::protobuf::Arena *,bool)
mov rbx, [r14+8]
lea rax, [rbx+10h]
cmp r15, rax
jz loc_26B9A
add r15, 40h ; '@'
lea rdi, [rsp+108h+var_60]
mov rsi, r15
call _ZN6google8protobuf11MessageLite15ParseFromStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::MessageLite::ParseFromString(std::string const&)
test al, al
jnz loc_26C38
lea rsi, [rsp+108h+var_60]
mov rdi, r15
call _ZN6google8protobuf10TextFormat15ParseFromStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_7MessageE; google::protobuf::TextFormat::ParseFromString(std::string const&,google::protobuf::Message *)
mov bl, 1
test al, al
jnz loc_26C3A
mov rsi, [r14+10h]
mov rdx, [r14+18h]
mov rdi, cs:_ZSt4cerr_ptr
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rbx, rax
lea rsi, aPbMetaCouldNot; ".pb.meta: Could not parse metadata as w"...
mov edx, 3Ah ; ':'
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rax, [rbx]
mov rdi, [rax-18h]
add rdi, rbx
mov esi, 0Ah
call __ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc; std::ios::widen(char)
movsx esi, al; char
mov rdi, rbx; this
call __ZNSo3putEc; std::ostream::put(char)
mov rdi, rax; this
call __ZNSo5flushEv; std::ostream::flush(void)
jmp loc_26D6F
loc_26B9A:
lea r12, [rsp+108h+var_70]
mov [r12-10h], r12
mov rsi, [r14+10h]
mov rdx, [r14+18h]
add rdx, rsi
lea rdi, [rsp+108h+var_80]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rsi, aJavaPbMeta+5; ".pb.meta"
lea rdi, [rsp+108h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rdx, asc_19A5A7+2; ""
lea rdi, [rsp+108h+var_C8]
lea rsi, [rsp+108h+var_80]
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_EC2IS5_RA1_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_
add rbx, 8
lea rsi, [rsp+108h+var_C8]
mov rdi, rbx
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE16_M_insert_uniqueIS8_EES6_ISt17_Rb_tree_iteratorIS8_EbEOT_; 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>>>::_M_insert_unique<std::pair<std::string const,std::string>>(std::pair<std::string const,std::string> &&)
mov r15, rax
lea rax, [rsp+108h+var_98]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_26C13
call __ZdlPv; operator delete(void *)
loc_26C13:
mov rdi, [rsp+108h+var_C8]; void *
cmp rdi, r13
jz short loc_26C22
call __ZdlPv; operator delete(void *)
loc_26C22:
mov rdi, [rsp+108h+var_80]; void *
cmp rdi, r12
jz short loc_26C34
call __ZdlPv; operator delete(void *)
loc_26C34:
add r15, 40h ; '@'
loc_26C38:
xor ebx, ebx
loc_26C3A:
mov [rsp+108h+var_E8], r15
lea rdi, [rsp+108h+var_C8]
xor esi, esi
xor edx, edx
call _ZN6google8protobuf17GeneratedCodeInfoC2EPNS0_5ArenaEb; google::protobuf::GeneratedCodeInfo::GeneratedCodeInfo(google::protobuf::Arena *,bool)
mov rax, [rsp+108h+var_40]
lea rbp, [rax+8]
test rax, rax
cmovz rbp, rax
movsxd r15, [rsp+108h+var_48]
test r15, r15
jz loc_26D25
mov [rsp+108h+var_EC], ebx
mov [rsp+108h+var_E0], r14
shl r15, 3
xor r14d, r14d
xor r13d, r13d
mov qword ptr [rsp+108h+var_100], 0
loc_26C8D:
mov r12, [rbp+r14+0]
movsxd rax, dword ptr [r12+38h]
cmp rax, [rsp+108h+var_F8]
jb short loc_26CD2
test [rsp+108h+var_100], 1
jnz short loc_26CD2
mov rdi, [rsp+108h+var_E0]
mov rsi, [rsp+108h+var_D8]
mov rdx, [rsp+108h+var_F8]
mov rcx, [rsp+108h+var_D0]
lea r8, [rsp+108h+var_C8]
call _ZN6google8protobuf8compiler20CommandLineInterface18MemoryOutputStream17InsertShiftedInfoERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmRNS0_17GeneratedCodeInfoE; google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::InsertShiftedInfo(std::string const&,ulong,ulong,google::protobuf::GeneratedCodeInfo &)
add r13, [rsp+108h+var_88]
mov al, 1
mov qword ptr [rsp+108h+var_100], rax; char
loc_26CD2:
lea rdi, [rsp+108h+var_B8]; this
xor esi, esi
call _ZN6google8protobuf8internal20RepeatedPtrFieldBase3AddINS0_16RepeatedPtrFieldINS0_28GeneratedCodeInfo_AnnotationEE11TypeHandlerEEEPNT_4TypeEPKS9_; google::protobuf::internal::RepeatedPtrFieldBase::Add<google::protobuf::RepeatedPtrField<google::protobuf::GeneratedCodeInfo_Annotation>::TypeHandler>(google::protobuf::RepeatedPtrField<google::protobuf::GeneratedCodeInfo_Annotation>::TypeHandler::Type * const*)
mov rbx, rax
mov rdi, rax; this
mov rsi, r12; google::protobuf::GeneratedCodeInfo_Annotation *
call _ZN6google8protobuf28GeneratedCodeInfo_Annotation8CopyFromERKS1_; google::protobuf::GeneratedCodeInfo_Annotation::CopyFrom(google::protobuf::GeneratedCodeInfo_Annotation const&)
or byte ptr [rbx+10h], 6
movq xmm0, qword ptr [rbx+38h]
movd xmm1, r13d
pshufd xmm1, xmm1, 50h ; 'P'
paddd xmm1, xmm0
movq qword ptr [rbx+38h], xmm1
add r14, 8
cmp r15, r14
jnz loc_26C8D
test [rsp+108h+var_100], 1
mov r14, [rsp+108h+var_E0]
mov ebx, [rsp+108h+var_EC]
jnz short loc_26D41
loc_26D25:
lea r8, [rsp+108h+var_C8]
mov rdi, r14
mov rsi, [rsp+108h+var_D8]
mov rdx, [rsp+108h+var_F8]
mov rcx, [rsp+108h+var_D0]
call _ZN6google8protobuf8compiler20CommandLineInterface18MemoryOutputStream17InsertShiftedInfoERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmmRNS0_17GeneratedCodeInfoE; google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::InsertShiftedInfo(std::string const&,ulong,ulong,google::protobuf::GeneratedCodeInfo &)
loc_26D41:
test bl, bl
jz short loc_26D56
lea rdi, [rsp+108h+var_C8]; google::protobuf::Message *
mov rsi, [rsp+108h+var_E8]
call _ZN6google8protobuf10TextFormat13PrintToStringERKNS0_7MessageEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::TextFormat::PrintToString(google::protobuf::Message const&,std::string *)
jmp short loc_26D65
loc_26D56:
lea rdi, [rsp+108h+var_C8]
mov rsi, [rsp+108h+var_E8]
call _ZNK6google8protobuf11MessageLite17SerializeToStringEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::MessageLite::SerializeToString(std::string *)
loc_26D65:
lea rdi, [rsp+108h+var_C8]; this
call _ZN6google8protobuf17GeneratedCodeInfoD2Ev; google::protobuf::GeneratedCodeInfo::~GeneratedCodeInfo()
loc_26D6F:
lea rdi, [rsp+108h+var_60]; this
call _ZN6google8protobuf17GeneratedCodeInfoD2Ev; google::protobuf::GeneratedCodeInfo::~GeneratedCodeInfo()
loc_26D7C:
add rsp, 0D8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_38]
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ED2Ev; std::pair<std::string const,std::string>::~pair()
jmp short loc_26DA2
jmp short $+2
loc_26D9F:
mov rbx, rax
loc_26DA2:
mov rdi, [rsp+arg_80]; void *
cmp rdi, r12
jz short loc_26DE6
call __ZdlPv; operator delete(void *)
jmp short loc_26DE6
jmp short loc_26DBC
jmp short loc_26DBC
jmp short loc_26DD9
loc_26DBC:
mov rbx, rax
jmp short loc_26DE6
jmp short $+2
loc_26DC3:
mov rbx, rax
mov rdi, [rsp+arg_38]; void *
cmp rdi, r13
jz short loc_26DF3
call __ZdlPv; operator delete(void *)
jmp short loc_26DF3
jmp short $+2
loc_26DD9:
mov rbx, rax
lea rdi, [rsp+arg_38]; this
call _ZN6google8protobuf17GeneratedCodeInfoD2Ev; google::protobuf::GeneratedCodeInfo::~GeneratedCodeInfo()
loc_26DE6:
lea rdi, [rsp+arg_A0]; this
call _ZN6google8protobuf17GeneratedCodeInfoD2Ev; google::protobuf::GeneratedCodeInfo::~GeneratedCodeInfo()
loc_26DF3:
mov rdi, rbx
call __Unwind_Resume
|
void google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::UpdateMetadata(
long long a1,
_QWORD *a2,
unsigned long long a3,
long long a4,
long long a5)
{
long long v5; // r14
long long v6; // rbx
long long v7; // r15
long long v8; // rbx
long long *v9; // r15
char v10; // bl
std::ostream *v11; // rbx
char v12; // al
std::ostream *v13; // rax
long long v14; // r15
long long v15; // rbp
long long v16; // r15
long long v17; // r14
unsigned int v18; // r13d
int *v19; // r12
long long v20; // rbx
int v21; // [rsp+0h] [rbp-108h]
char v22; // [rsp+8h] [rbp-100h]
char v24; // [rsp+1Ch] [rbp-ECh]
long long *v25; // [rsp+20h] [rbp-E8h]
void *v27[2]; // [rsp+40h] [rbp-C8h] BYREF
_BYTE v28[16]; // [rsp+50h] [rbp-B8h] BYREF
char *v29; // [rsp+60h] [rbp-A8h]
char v30; // [rsp+70h] [rbp-98h] BYREF
long long v31; // [rsp+80h] [rbp-88h]
void *v32[2]; // [rsp+88h] [rbp-80h] BYREF
_BYTE v33[16]; // [rsp+98h] [rbp-70h] BYREF
_BYTE v34[24]; // [rsp+A8h] [rbp-60h] BYREF
int v35; // [rsp+C0h] [rbp-48h]
long long v36; // [rsp+C8h] [rbp-40h]
v31 = a4;
v5 = a1;
v6 = *(_QWORD *)(a1 + 8);
v27[0] = v28;
std::string::_M_construct<char *>((long long)v27, *(_BYTE **)(a1 + 16), *(_QWORD *)(a1 + 16) + *(_QWORD *)(a1 + 24));
std::string::append(v27, ".pb.meta");
v7 = 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>>>::find(
v6 + 8,
v27);
if ( v27[0] != v28 )
operator delete(v27[0]);
if ( v7 != *(_QWORD *)(a1 + 8) + 16LL || *(_DWORD *)(a1 + 152) )
{
google::protobuf::GeneratedCodeInfo::GeneratedCodeInfo((google::protobuf::GeneratedCodeInfo *)v34, 0LL, 0);
v8 = *(_QWORD *)(a1 + 8);
if ( v7 == v8 + 16 )
{
v32[0] = v33;
std::string::_M_construct<char *>((long long)v32, *(_BYTE **)(a1 + 16), *(_QWORD *)(a1 + 16) + *(_QWORD *)(a1 + 24));
std::string::append(v32, ".pb.meta");
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_EC2IS5_RA1_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(
v27,
v32,
"");
v14 = 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>>>::_M_insert_unique<std::pair<std::string const,std::string>>(
v8 + 8,
v27);
if ( v29 != &v30 )
operator delete(v29);
if ( v27[0] != v28 )
operator delete(v27[0]);
if ( v32[0] != v33 )
operator delete(v32[0]);
v9 = (long long *)(v14 + 64);
}
else
{
v9 = (long long *)(v7 + 64);
if ( !(unsigned __int8)google::protobuf::MessageLite::ParseFromString((google::protobuf::MessageLite *)v34, v9) )
{
v10 = 1;
if ( !(unsigned __int8)google::protobuf::TextFormat::ParseFromString(v9, v34) )
{
v11 = (std::ostream *)std::__ostream_insert<char,std::char_traits<char>>(
&std::cerr,
*(_QWORD *)(a1 + 16),
*(_QWORD *)(a1 + 24));
std::__ostream_insert<char,std::char_traits<char>>(
v11,
".pb.meta: Could not parse metadata as wire or text format.",
58LL);
v12 = std::ios::widen((char *)v11 + *(_QWORD *)(*(_QWORD *)v11 - 24LL), 10LL);
v13 = (std::ostream *)std::ostream::put(v11, v12);
std::ostream::flush(v13);
LABEL_31:
google::protobuf::GeneratedCodeInfo::~GeneratedCodeInfo((google::protobuf::GeneratedCodeInfo *)v34);
return;
}
LABEL_17:
v25 = v9;
google::protobuf::GeneratedCodeInfo::GeneratedCodeInfo((google::protobuf::GeneratedCodeInfo *)v27, 0LL, 0);
v15 = v36 + 8;
if ( !v36 )
v15 = 0LL;
if ( !v35 )
goto LABEL_26;
v24 = v10;
v16 = 8LL * v35;
v17 = 0LL;
v18 = 0;
v22 = 0;
do
{
v19 = *(int **)(v15 + v17);
if ( v19[14] >= a3 && (v22 & 1) == 0 )
{
google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::InsertShiftedInfo(
a1,
a2,
a3,
a5,
(long long)v27);
v18 += v31;
v22 = 1;
}
v20 = google::protobuf::internal::RepeatedPtrFieldBase::Add<google::protobuf::RepeatedPtrField<google::protobuf::GeneratedCodeInfo_Annotation>::TypeHandler>((google::protobuf::internal::RepeatedPtrFieldBase *)v28);
google::protobuf::GeneratedCodeInfo_Annotation::CopyFrom(
(google::protobuf::GeneratedCodeInfo_Annotation *)v20,
(const google::protobuf::GeneratedCodeInfo_Annotation *)v19);
*(_BYTE *)(v20 + 16) |= 6u;
*(_QWORD *)(v20 + 56) = _mm_add_epi32(
_mm_shuffle_epi32(_mm_cvtsi32_si128(v18), 80),
_mm_loadl_epi64((const __m128i *)(v20 + 56))).m128i_u64[0];
v17 += 8LL;
}
while ( v16 != v17 );
v5 = a1;
v10 = v24;
if ( (v22 & 1) == 0 )
LABEL_26:
google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::InsertShiftedInfo(
v5,
a2,
a3,
a5,
(long long)v27);
if ( v10 )
google::protobuf::TextFormat::PrintToString((google::protobuf::Message *)v27, v21, v22);
else
google::protobuf::MessageLite::SerializeToString(v27, v25);
google::protobuf::GeneratedCodeInfo::~GeneratedCodeInfo((google::protobuf::GeneratedCodeInfo *)v27);
goto LABEL_31;
}
}
v10 = 0;
goto LABEL_17;
}
}
|
UpdateMetadata:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xd8
MOV qword ptr [RSP + 0x38],R8
MOV qword ptr [RSP + 0x80],RCX
MOV qword ptr [RSP + 0x10],RDX
MOV qword ptr [RSP + 0x30],RSI
MOV R14,RDI
MOV RBX,qword ptr [RDI + 0x8]
LEA R13,[RSP + 0x50]
MOV qword ptr [R13 + -0x10],R13
MOV RSI,qword ptr [RDI + 0x10]
MOV RDX,qword ptr [RDI + 0x18]
ADD RDX,RSI
LEA R12,[RSP + 0x40]
MOV RDI,R12
CALL 0x0012586a
LAB_00126a9e:
LEA RSI,[0x2ba376]
MOV RDI,R12
CALL 0x0011f8e0
ADD RBX,0x8
LAB_00126ab1:
LEA RSI,[RSP + 0x40]
MOV RDI,RBX
CALL 0x0012fb2c
LAB_00126abe:
MOV R15,RAX
MOV RDI,qword ptr [RSP + 0x40]
CMP RDI,R13
JZ 0x00126ad0
CALL 0x0011f4a0
LAB_00126ad0:
MOV RAX,qword ptr [R14 + 0x8]
ADD RAX,0x10
CMP R15,RAX
JNZ 0x00126aeb
CMP dword ptr [R14 + 0x98],0x0
JZ 0x00126d7c
LAB_00126aeb:
LEA RDI,[RSP + 0xa8]
XOR ESI,ESI
XOR EDX,EDX
CALL 0x00254f3e
MOV RBX,qword ptr [R14 + 0x8]
LEA RAX,[RBX + 0x10]
CMP R15,RAX
JZ 0x00126b9a
ADD R15,0x40
LAB_00126b11:
LEA RDI,[RSP + 0xa8]
MOV RSI,R15
CALL 0x00120b08
TEST AL,AL
JNZ 0x00126c38
LEA RSI,[RSP + 0xa8]
MOV RDI,R15
CALL 0x0027a9c8
MOV BL,0x1
TEST AL,AL
JNZ 0x00126c3a
MOV RSI,qword ptr [R14 + 0x10]
MOV RDX,qword ptr [R14 + 0x18]
MOV RDI,qword ptr [0x0037efe0]
CALL 0x0011f560
MOV RBX,RAX
LEA RSI,[0x29a4d5]
MOV EDX,0x3a
MOV RDI,RAX
CALL 0x0011f560
MOV RAX,qword ptr [RBX]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,RBX
MOV ESI,0xa
CALL 0x0011f4d0
MOVSX ESI,AL
MOV RDI,RBX
CALL 0x0011f040
MOV RDI,RAX
CALL 0x0011f310
JMP 0x00126d6f
LAB_00126b9a:
LEA R12,[RSP + 0x98]
MOV qword ptr [R12 + -0x10],R12
MOV RSI,qword ptr [R14 + 0x10]
MOV RDX,qword ptr [R14 + 0x18]
ADD RDX,RSI
LAB_00126bb2:
LEA RDI,[RSP + 0x88]
CALL 0x0012586a
LAB_00126bbf:
LEA RSI,[0x2ba376]
LEA RDI,[RSP + 0x88]
CALL 0x0011f8e0
LAB_00126bd3:
LEA RDX,[0x29a5a9]
LEA RDI,[RSP + 0x40]
LEA RSI,[RSP + 0x88]
CALL 0x0012dd92
ADD RBX,0x8
LAB_00126bf0:
LEA RSI,[RSP + 0x40]
MOV RDI,RBX
CALL 0x0012f742
MOV R15,RAX
LEA RAX,[RSP + 0x70]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00126c13
CALL 0x0011f4a0
LAB_00126c13:
MOV RDI,qword ptr [RSP + 0x40]
CMP RDI,R13
JZ 0x00126c22
CALL 0x0011f4a0
LAB_00126c22:
MOV RDI,qword ptr [RSP + 0x88]
CMP RDI,R12
JZ 0x00126c34
CALL 0x0011f4a0
LAB_00126c34:
ADD R15,0x40
LAB_00126c38:
XOR EBX,EBX
LAB_00126c3a:
MOV qword ptr [RSP + 0x20],R15
LEA RDI,[RSP + 0x40]
XOR ESI,ESI
XOR EDX,EDX
CALL 0x00254f3e
MOV RAX,qword ptr [RSP + 0xc8]
LEA RBP,[RAX + 0x8]
TEST RAX,RAX
CMOVZ RBP,RAX
MOVSXD R15,dword ptr [RSP + 0xc0]
TEST R15,R15
JZ 0x00126d25
MOV dword ptr [RSP + 0x1c],EBX
MOV qword ptr [RSP + 0x28],R14
SHL R15,0x3
XOR R14D,R14D
XOR R13D,R13D
MOV qword ptr [RSP + 0x8],0x0
LAB_00126c8d:
MOV R12,qword ptr [RBP + R14*0x1]
MOVSXD RAX,dword ptr [R12 + 0x38]
CMP RAX,qword ptr [RSP + 0x10]
JC 0x00126cd2
TEST byte ptr [RSP + 0x8],0x1
JNZ 0x00126cd2
LAB_00126ca5:
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x38]
LEA R8,[RSP + 0x40]
CALL 0x0012695c
ADD R13,qword ptr [RSP + 0x80]
MOV AL,0x1
MOV qword ptr [RSP + 0x8],RAX
LAB_00126cd2:
LEA RDI,[RSP + 0x50]
XOR ESI,ESI
CALL 0x0012e54e
MOV RBX,RAX
MOV RDI,RAX
MOV RSI,R12
CALL 0x00254eaa
OR byte ptr [RBX + 0x10],0x6
MOVQ XMM0,qword ptr [RBX + 0x38]
MOVD XMM1,R13D
PSHUFD XMM1,XMM1,0x50
PADDD XMM1,XMM0
MOVQ qword ptr [RBX + 0x38],XMM1
ADD R14,0x8
CMP R15,R14
JNZ 0x00126c8d
TEST byte ptr [RSP + 0x8],0x1
MOV R14,qword ptr [RSP + 0x28]
MOV EBX,dword ptr [RSP + 0x1c]
JNZ 0x00126d41
LAB_00126d25:
LEA R8,[RSP + 0x40]
MOV RDI,R14
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x38]
CALL 0x0012695c
LAB_00126d41:
TEST BL,BL
JZ 0x00126d56
LEA RDI,[RSP + 0x40]
MOV RSI,qword ptr [RSP + 0x20]
CALL 0x0027db9a
JMP 0x00126d65
LAB_00126d56:
LEA RDI,[RSP + 0x40]
MOV RSI,qword ptr [RSP + 0x20]
CALL 0x001fdce0
LAB_00126d65:
LEA RDI,[RSP + 0x40]
CALL 0x00254ffc
LAB_00126d6f:
LEA RDI,[RSP + 0xa8]
CALL 0x00254ffc
LAB_00126d7c:
ADD RSP,0xd8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::UpdateMetadata(std::__cxx11::string
const&, unsigned long, unsigned long, unsigned long) */
void __thiscall
google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::UpdateMetadata
(MemoryOutputStream *this,string *param_1,ulong param_2,ulong param_3,ulong param_4)
{
GeneratedCodeInfo_Annotation *pGVar1;
bool bVar2;
bool bVar3;
char cVar4;
long lVar5;
ostream *poVar6;
Type *this_00;
long lVar7;
long lVar8;
string *psVar9;
Type *local_c8 [2];
Type local_b8 [16];
int1 *local_a8;
int1 local_98 [16];
ulong local_88;
int1 *local_80 [2];
int1 local_70 [16];
GeneratedCodeInfo local_60 [24];
int local_48;
long local_40;
lVar5 = *(long *)(this + 8);
local_c8[0] = local_b8;
local_88 = param_3;
std::__cxx11::string::_M_construct<char*>
(local_c8,*(long *)(this + 0x10),*(long *)(this + 0x18) + *(long *)(this + 0x10));
/* try { // try from 00126a9e to 00126aac has its CatchHandler @ 00126dc3 */
std::__cxx11::string::append((char *)local_c8);
/* try { // try from 00126ab1 to 00126abd has its CatchHandler @ 00126dc1 */
lVar5 = std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::find((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
*)(lVar5 + 8),(string *)local_c8);
if (local_c8[0] != local_b8) {
operator_delete(local_c8[0]);
}
if ((lVar5 == *(long *)(this + 8) + 0x10) && (*(int *)(this + 0x98) == 0)) {
return;
}
GeneratedCodeInfo::GeneratedCodeInfo(local_60,(Arena *)0x0,false);
lVar7 = *(long *)(this + 8);
if (lVar5 == lVar7 + 0x10) {
/* try { // try from 00126bb2 to 00126bbe has its CatchHandler @ 00126db6 */
local_80[0] = local_70;
std::__cxx11::string::_M_construct<char*>
(local_80,*(long *)(this + 0x10),*(long *)(this + 0x18) + *(long *)(this + 0x10));
/* try { // try from 00126bbf to 00126bd2 has its CatchHandler @ 00126d9f */
std::__cxx11::string::append((char *)local_80);
/* try { // try from 00126bd3 to 00126beb has its CatchHandler @ 00126d9d */
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_EC2IS5_RA1_KcTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_
(local_c8,local_80,&DAT_0029a5a9);
/* try { // try from 00126bf0 to 00126bfc has its CatchHandler @ 00126d8e */
lVar5 = std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::_M_insert_unique<std::pair<std::__cxx11::string_const,std::__cxx11::string>>
((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
*)(lVar7 + 8),(pair *)local_c8);
if (local_a8 != local_98) {
operator_delete(local_a8);
}
if (local_c8[0] != local_b8) {
operator_delete(local_c8[0]);
}
if (local_80[0] != local_70) {
operator_delete(local_80[0]);
}
psVar9 = (string *)(lVar5 + 0x40);
LAB_00126c38:
bVar2 = false;
}
else {
psVar9 = (string *)(lVar5 + 0x40);
/* try { // try from 00126b11 to 00126b94 has its CatchHandler @ 00126dbc */
cVar4 = MessageLite::ParseFromString((MessageLite *)local_60,psVar9);
if (cVar4 != '\0') goto LAB_00126c38;
cVar4 = TextFormat::ParseFromString(psVar9,(Message *)local_60);
bVar2 = true;
if (cVar4 == '\0') {
poVar6 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)PTR_cerr_0037efe0,*(char **)(this + 0x10),
*(long *)(this + 0x18));
std::__ostream_insert<char,std::char_traits<char>>
(poVar6,".pb.meta: Could not parse metadata as wire or text format.",0x3a);
std::ios::widen((char)*(int8 *)(*(long *)poVar6 + -0x18) + (char)poVar6);
std::ostream::put((char)poVar6);
std::ostream::flush();
goto LAB_00126d6f;
}
}
/* try { // try from 00126c3a to 00126c4c has its CatchHandler @ 00126db8 */
GeneratedCodeInfo::GeneratedCodeInfo((GeneratedCodeInfo *)local_c8,(Arena *)0x0,false);
lVar5 = local_40 + 8;
if (local_40 == 0) {
lVar5 = 0;
}
if ((long)local_48 == 0) {
LAB_00126d25:
/* try { // try from 00126d25 to 00126d64 has its CatchHandler @ 00126dba */
InsertShiftedInfo(this,param_1,param_2,param_4,(GeneratedCodeInfo *)local_c8);
}
else {
lVar8 = 0;
lVar7 = 0;
bVar3 = false;
do {
pGVar1 = *(GeneratedCodeInfo_Annotation **)(lVar5 + lVar8);
if ((param_2 <= (ulong)(long)*(int *)(pGVar1 + 0x38)) && (!bVar3)) {
/* try { // try from 00126ca5 to 00126cc2 has its CatchHandler @ 00126dd7 */
InsertShiftedInfo(this,param_1,param_2,param_4,(GeneratedCodeInfo *)local_c8);
lVar7 = lVar7 + local_88;
bVar3 = true;
}
/* try { // try from 00126cd2 to 00126ceb has its CatchHandler @ 00126dd9 */
this_00 = internal::RepeatedPtrFieldBase::
Add<google::protobuf::RepeatedPtrField<google::protobuf::GeneratedCodeInfo_Annotation>::TypeHandler>
(local_b8);
GeneratedCodeInfo_Annotation::CopyFrom((GeneratedCodeInfo_Annotation *)this_00,pGVar1);
this_00[0x10] = (Type)((byte)this_00[0x10] | 6);
*(ulong *)(this_00 + 0x38) =
CONCAT44((int)lVar7 + (int)((ulong)*(int8 *)(this_00 + 0x38) >> 0x20),
(int)lVar7 + (int)*(int8 *)(this_00 + 0x38));
lVar8 = lVar8 + 8;
} while ((long)local_48 * 8 != lVar8);
if (!bVar3) goto LAB_00126d25;
}
if (bVar2) {
TextFormat::PrintToString((Message *)local_c8,psVar9);
}
else {
MessageLite::SerializeToString((MessageLite *)local_c8,psVar9);
}
GeneratedCodeInfo::~GeneratedCodeInfo((GeneratedCodeInfo *)local_c8);
LAB_00126d6f:
GeneratedCodeInfo::~GeneratedCodeInfo(local_60);
return;
}
|
|
57,421
|
my_strnxfrm_win1250ch
|
eloqsql/strings/ctype-win1250ch.c
|
static size_t
my_strnxfrm_win1250ch(CHARSET_INFO *cs __attribute__((unused)),
uchar *dest, size_t len,
uint nweights_arg __attribute__((unused)),
const uchar *src, size_t srclen, uint flags)
{
int value;
const uchar *p;
int pass = 0;
size_t totlen = 0;
p = src;
if (!(flags & 0x0F)) /* All levels by default */
flags|= 0x0F;
while (totlen < len)
{
NEXT_CMP_VALUE(src, p, pass, value, (int)srclen);
if (!value)
break;
if ((1 << pass) & flags)
dest[totlen++] = value;
}
if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && len > totlen)
{
memset(dest + totlen, 0x00, len - totlen);
totlen= len;
}
return totlen;
}
|
O3
|
c
|
my_strnxfrm_win1250ch:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
movq %rsi, -0x50(%rbp)
movl 0x10(%rbp), %eax
movl %eax, %edx
orl $0xf, %edx
testb $0xf, %al
cmovnel %eax, %edx
xorl %r10d, %r10d
testq %rbx, %rbx
je 0xd36a8
movslq %r9d, %rdi
movl $0x1, %eax
subq %r8, %rax
movq %rax, -0x60(%rbp)
leaq 0x28a495(%rip), %r14 # 0x35d9e0
leaq 0x2b2d7e(%rip), %r15 # 0x3862d0
xorl %eax, %eax
movq %r8, %r11
movq %rbx, -0x48(%rbp)
movq %r9, -0x40(%rbp)
movq %r8, -0x38(%rbp)
movl %edx, -0x2c(%rbp)
movq %r11, %rsi
subq %r8, %rsi
cmpq %rdi, %rsi
jge 0xd3582
testl %r10d, %r10d
je 0xd3644
movl $0x9, %r12d
jmp 0xd35a3
testl %r9d, %r9d
jle 0xd36ac
testl %r10d, %r10d
jne 0xd36ac
movl $0x1, %r10d
movl $0x9, %r12d
movq %r8, %r11
movq %r14, %rsi
movzbl (%r11), %ecx
movb (%rsi,%rcx), %sil
cmpb $-0x1, %sil
jne 0xd3684
movq %r12, -0x68(%rbp)
movq %r10, -0x58(%rbp)
movq %r11, %rdx
subq %r8, %rdx
movq -0x60(%rbp), %rcx
leaq (%rcx,%r11), %r13
xorl %r10d, %r10d
movq %r10, %rbx
shlq $0x4, %rbx
movq (%rbx,%r15), %rsi
movb (%rsi), %r9b
testb %r9b, %r9b
je 0xd3614
cmpq %rdi, %rdx
jge 0xd3614
incq %rsi
movq %r13, %r14
movq %r11, %r12
cmpb (%r12), %r9b
jne 0xd361c
incq %r12
movb (%rsi), %r9b
testb %r9b, %r9b
je 0xd3617
leaq 0x1(%r14), %rcx
incq %rsi
cmpq %rdi, %r14
movq %rcx, %r14
jl 0xd35f2
jmp 0xd3617
movq %r11, %r12
testb %r9b, %r9b
je 0xd3659
incq %r10
cmpq $0x50, %r10
jne 0xd35d1
movb $-0x1, %sil
movq -0x48(%rbp), %rbx
movq -0x40(%rbp), %r9
movq -0x38(%rbp), %r8
movl -0x2c(%rbp), %edx
movq -0x58(%rbp), %r10
leaq 0x28a39e(%rip), %r14 # 0x35d9e0
jmp 0xd3689
xorl %r10d, %r10d
movl $0x8, %r12d
leaq 0x28a28c(%rip), %rsi # 0x35d8e0
jmp 0xd35a6
addq %r15, %rbx
movq -0x68(%rbp), %rcx
movb (%rbx,%rcx), %sil
decq %r12
movq %r12, %r11
movq -0x48(%rbp), %rbx
movq -0x40(%rbp), %r9
movq -0x38(%rbp), %r8
movl -0x2c(%rbp), %edx
movq -0x58(%rbp), %r10
leaq 0x28a35c(%rip), %r14 # 0x35d9e0
testb %sil, %sil
je 0xd36ac
btl %r10d, %edx
jae 0xd369a
movq -0x50(%rbp), %rcx
movb %sil, (%rcx,%rax)
incq %rax
incq %r11
cmpq %rbx, %rax
jb 0xd3566
jmp 0xd36c7
xorl %eax, %eax
jmp 0xd36c7
testb %dl, %dl
jns 0xd36c7
movq -0x50(%rbp), %rdi
addq %rax, %rdi
movq %rbx, %rdx
subq %rax, %rdx
xorl %esi, %esi
callq 0x29290
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_strnxfrm_win1250ch:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov rbx, rdx
mov [rbp+var_50], rsi
mov eax, [rbp+arg_0]
mov edx, eax
or edx, 0Fh
test al, 0Fh
cmovnz edx, eax
xor r10d, r10d
test rbx, rbx
jz loc_D36A8
movsxd rdi, r9d
mov eax, 1
sub rax, r8
mov [rbp+var_60], rax
lea r14, _sort_order_win1250ch2
lea r15, doubles_0
xor eax, eax
mov r11, r8
mov [rbp+var_48], rbx
mov [rbp+var_40], r9
mov [rbp+var_38], r8
mov [rbp+var_2C], edx
loc_D3566:
mov rsi, r11
sub rsi, r8
cmp rsi, rdi
jge short loc_D3582
test r10d, r10d
jz loc_D3644
mov r12d, 9
jmp short loc_D35A3
loc_D3582:
test r9d, r9d
jle loc_D36AC
test r10d, r10d
jnz loc_D36AC
mov r10d, 1
mov r12d, 9
mov r11, r8
loc_D35A3:
mov rsi, r14
loc_D35A6:
movzx ecx, byte ptr [r11]
mov sil, [rsi+rcx]
cmp sil, 0FFh
jnz loc_D3684
mov [rbp+var_68], r12
mov [rbp+var_58], r10
mov rdx, r11
sub rdx, r8
mov rcx, [rbp+var_60]
lea r13, [rcx+r11]
xor r10d, r10d
loc_D35D1:
mov rbx, r10
shl rbx, 4
mov rsi, [rbx+r15]
mov r9b, [rsi]
test r9b, r9b
jz short loc_D3614
cmp rdx, rdi
jge short loc_D3614
inc rsi
mov r14, r13
mov r12, r11
loc_D35F2:
cmp r9b, [r12]
jnz short loc_D361C
inc r12
mov r9b, [rsi]
test r9b, r9b
jz short loc_D3617
lea rcx, [r14+1]
inc rsi
cmp r14, rdi
mov r14, rcx
jl short loc_D35F2
jmp short loc_D3617
loc_D3614:
mov r12, r11
loc_D3617:
test r9b, r9b
jz short loc_D3659
loc_D361C:
inc r10
cmp r10, 50h ; 'P'
jnz short loc_D35D1
mov sil, 0FFh
mov rbx, [rbp+var_48]
mov r9, [rbp+var_40]
mov r8, [rbp+var_38]
mov edx, [rbp+var_2C]
mov r10, [rbp+var_58]
lea r14, _sort_order_win1250ch2
jmp short loc_D3689
loc_D3644:
xor r10d, r10d
mov r12d, 8
lea rsi, _sort_order_win1250ch1
jmp loc_D35A6
loc_D3659:
add rbx, r15
mov rcx, [rbp+var_68]
mov sil, [rbx+rcx]
dec r12
mov r11, r12
mov rbx, [rbp+var_48]
mov r9, [rbp+var_40]
mov r8, [rbp+var_38]
mov edx, [rbp+var_2C]
mov r10, [rbp+var_58]
lea r14, _sort_order_win1250ch2
loc_D3684:
test sil, sil
jz short loc_D36AC
loc_D3689:
bt edx, r10d
jnb short loc_D369A
mov rcx, [rbp+var_50]
mov [rcx+rax], sil
inc rax
loc_D369A:
inc r11
cmp rax, rbx
jb loc_D3566
jmp short loc_D36C7
loc_D36A8:
xor eax, eax
jmp short loc_D36C7
loc_D36AC:
test dl, dl
jns short loc_D36C7
mov rdi, [rbp+var_50]
add rdi, rax
mov rdx, rbx
sub rdx, rax
xor esi, esi
call _memset
mov rax, rbx
loc_D36C7:
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
unsigned long long my_strnxfrm_win1250ch(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned __int8 *a5,
int a6,
int a7)
{
int v8; // edx
long long v9; // r10
long long v10; // rdi
unsigned long long result; // rax
unsigned __int8 *v12; // r11
long long v13; // r12
_BYTE *v14; // rsi
char v15; // si
long long v16; // r10
char *v17; // rsi
char v18; // r9
char *v19; // rsi
unsigned __int8 *v20; // r14
_BYTE *v21; // r12
long long v23; // [rsp+8h] [rbp-68h]
long long v24; // [rsp+10h] [rbp-60h]
long long v25; // [rsp+18h] [rbp-58h]
unsigned long long v27; // [rsp+28h] [rbp-48h]
int v28; // [rsp+30h] [rbp-40h]
unsigned __int8 *v29; // [rsp+38h] [rbp-38h]
int v30; // [rsp+44h] [rbp-2Ch]
v8 = a7 | 0xF;
if ( (a7 & 0xF) != 0 )
v8 = a7;
v9 = 0LL;
if ( !a3 )
return 0LL;
v10 = a6;
v24 = 1LL - (_QWORD)a5;
result = 0LL;
v12 = a5;
v27 = a3;
v28 = a6;
v29 = a5;
v30 = v8;
while ( 2 )
{
if ( v12 - a5 >= v10 )
{
if ( a6 <= 0 || (_DWORD)v9 )
break;
v9 = 1LL;
v13 = 9LL;
v12 = a5;
}
else
{
if ( !(_DWORD)v9 )
{
v9 = 0LL;
v13 = 8LL;
v14 = &sort_order_win1250ch1;
goto LABEL_12;
}
v13 = 9LL;
}
v14 = &sort_order_win1250ch2;
LABEL_12:
v15 = v14[*v12];
if ( v15 != -1 )
goto LABEL_27;
v23 = v13;
v25 = v9;
v16 = 0LL;
while ( 1 )
{
v17 = (char *)*(&doubles_0 + 2 * v16);
v18 = *v17;
if ( !*v17 || v12 - a5 >= v10 )
break;
v19 = v17 + 1;
v20 = &v12[v24];
v21 = v12;
while ( v18 == *v21 )
{
++v21;
v18 = *v19;
if ( *v19 )
{
++v19;
if ( (long long)v20++ < v10 )
continue;
}
goto LABEL_22;
}
LABEL_23:
if ( ++v16 == 80 )
{
v15 = -1;
a3 = v27;
a6 = v28;
a5 = v29;
v8 = v30;
v9 = v25;
goto LABEL_28;
}
}
v21 = v12;
LABEL_22:
if ( v18 )
goto LABEL_23;
v15 = *((_BYTE *)&doubles_0 + 16 * v16 + v23);
v12 = v21 - 1;
a3 = v27;
a6 = v28;
a5 = v29;
v8 = v30;
v9 = v25;
LABEL_27:
if ( v15 )
{
LABEL_28:
if ( _bittest(&v8, v9) )
*(_BYTE *)(a2 + result++) = v15;
++v12;
if ( result >= a3 )
return result;
continue;
}
break;
}
if ( (v8 & 0x80u) != 0 )
{
memset(result + a2, 0LL, a3 - result);
return a3;
}
return result;
}
|
my_strnxfrm_win1250ch:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV RBX,RDX
MOV qword ptr [RBP + -0x50],RSI
MOV EAX,dword ptr [RBP + 0x10]
MOV EDX,EAX
OR EDX,0xf
TEST AL,0xf
CMOVNZ EDX,EAX
XOR R10D,R10D
TEST RBX,RBX
JZ 0x001d36a8
MOVSXD RDI,R9D
MOV EAX,0x1
SUB RAX,R8
MOV qword ptr [RBP + -0x60],RAX
LEA R14,[0x45d9e0]
LEA R15,[0x4862d0]
XOR EAX,EAX
MOV R11,R8
MOV qword ptr [RBP + -0x48],RBX
MOV qword ptr [RBP + -0x40],R9
MOV qword ptr [RBP + -0x38],R8
MOV dword ptr [RBP + -0x2c],EDX
LAB_001d3566:
MOV RSI,R11
SUB RSI,R8
CMP RSI,RDI
JGE 0x001d3582
TEST R10D,R10D
JZ 0x001d3644
MOV R12D,0x9
JMP 0x001d35a3
LAB_001d3582:
TEST R9D,R9D
JLE 0x001d36ac
TEST R10D,R10D
JNZ 0x001d36ac
MOV R10D,0x1
MOV R12D,0x9
MOV R11,R8
LAB_001d35a3:
MOV RSI,R14
LAB_001d35a6:
MOVZX ECX,byte ptr [R11]
MOV SIL,byte ptr [RSI + RCX*0x1]
CMP SIL,0xff
JNZ 0x001d3684
MOV qword ptr [RBP + -0x68],R12
MOV qword ptr [RBP + -0x58],R10
MOV RDX,R11
SUB RDX,R8
MOV RCX,qword ptr [RBP + -0x60]
LEA R13,[RCX + R11*0x1]
XOR R10D,R10D
LAB_001d35d1:
MOV RBX,R10
SHL RBX,0x4
MOV RSI,qword ptr [RBX + R15*0x1]
MOV R9B,byte ptr [RSI]
TEST R9B,R9B
JZ 0x001d3614
CMP RDX,RDI
JGE 0x001d3614
INC RSI
MOV R14,R13
MOV R12,R11
LAB_001d35f2:
CMP R9B,byte ptr [R12]
JNZ 0x001d361c
INC R12
MOV R9B,byte ptr [RSI]
TEST R9B,R9B
JZ 0x001d3617
LEA RCX,[R14 + 0x1]
INC RSI
CMP R14,RDI
MOV R14,RCX
JL 0x001d35f2
JMP 0x001d3617
LAB_001d3614:
MOV R12,R11
LAB_001d3617:
TEST R9B,R9B
JZ 0x001d3659
LAB_001d361c:
INC R10
CMP R10,0x50
JNZ 0x001d35d1
MOV SIL,0xff
MOV RBX,qword ptr [RBP + -0x48]
MOV R9,qword ptr [RBP + -0x40]
MOV R8,qword ptr [RBP + -0x38]
MOV EDX,dword ptr [RBP + -0x2c]
MOV R10,qword ptr [RBP + -0x58]
LEA R14,[0x45d9e0]
JMP 0x001d3689
LAB_001d3644:
XOR R10D,R10D
MOV R12D,0x8
LEA RSI,[0x45d8e0]
JMP 0x001d35a6
LAB_001d3659:
ADD RBX,R15
MOV RCX,qword ptr [RBP + -0x68]
MOV SIL,byte ptr [RBX + RCX*0x1]
DEC R12
MOV R11,R12
MOV RBX,qword ptr [RBP + -0x48]
MOV R9,qword ptr [RBP + -0x40]
MOV R8,qword ptr [RBP + -0x38]
MOV EDX,dword ptr [RBP + -0x2c]
MOV R10,qword ptr [RBP + -0x58]
LEA R14,[0x45d9e0]
LAB_001d3684:
TEST SIL,SIL
JZ 0x001d36ac
LAB_001d3689:
BT EDX,R10D
JNC 0x001d369a
MOV RCX,qword ptr [RBP + -0x50]
MOV byte ptr [RCX + RAX*0x1],SIL
INC RAX
LAB_001d369a:
INC R11
CMP RAX,RBX
JC 0x001d3566
JMP 0x001d36c7
LAB_001d36a8:
XOR EAX,EAX
JMP 0x001d36c7
LAB_001d36ac:
TEST DL,DL
JNS 0x001d36c7
MOV RDI,qword ptr [RBP + -0x50]
ADD RDI,RAX
MOV RDX,RBX
SUB RDX,RAX
XOR ESI,ESI
CALL 0x00129290
MOV RAX,RBX
LAB_001d36c7:
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong my_strnxfrm_win1250ch
(int8 param_1,long param_2,ulong param_3,int8 param_4,byte *param_5,
int param_6,uint param_7)
{
uint uVar1;
byte *pbVar2;
byte *pbVar3;
byte *pbVar4;
ulong uVar5;
char cVar6;
int1 *puVar7;
byte *pbVar8;
byte bVar9;
int iVar10;
long lVar11;
byte *pbVar12;
byte *pbVar13;
long lVar14;
uVar1 = param_7 | 0xf;
if ((param_7 & 0xf) != 0) {
uVar1 = param_7;
}
iVar10 = 0;
if (param_3 == 0) {
uVar5 = 0;
}
else {
uVar5 = 0;
pbVar12 = param_5;
do {
if ((long)pbVar12 - (long)param_5 < (long)param_6) {
if (iVar10 != 0) goto LAB_001d35a3;
iVar10 = 0;
lVar14 = 8;
puVar7 = _sort_order_win1250ch1;
}
else {
if ((param_6 < 1) || (iVar10 != 0)) goto LAB_001d36ac;
iVar10 = 1;
pbVar12 = param_5;
LAB_001d35a3:
lVar14 = 9;
puVar7 = _sort_order_win1250ch2;
}
cVar6 = puVar7[*pbVar12];
if (cVar6 == -1) {
lVar11 = 0;
do {
pbVar8 = (&doubles)[lVar11 * 2];
bVar9 = *pbVar8;
pbVar13 = pbVar12;
pbVar4 = pbVar12 + (1 - (long)param_5);
pbVar3 = pbVar12 + -(long)param_5;
if (bVar9 != 0) {
while (pbVar2 = pbVar4, (long)pbVar3 < (long)param_6) {
pbVar8 = pbVar8 + 1;
if (bVar9 != *pbVar13) goto LAB_001d361c;
pbVar13 = pbVar13 + 1;
bVar9 = *pbVar8;
if (bVar9 == 0) break;
pbVar4 = pbVar2 + 1;
pbVar3 = pbVar2;
}
}
if (bVar9 == 0) {
cVar6 = *(char *)((long)&doubles + lVar14 + lVar11 * 0x10);
pbVar12 = pbVar13 + -1;
goto LAB_001d3684;
}
LAB_001d361c:
lVar11 = lVar11 + 1;
} while (lVar11 != 0x50);
cVar6 = -1;
}
else {
LAB_001d3684:
if (cVar6 == '\0') {
LAB_001d36ac:
if (-1 < (char)uVar1) {
return uVar5;
}
memset((void *)(param_2 + uVar5),0,param_3 - uVar5);
return param_3;
}
}
if ((uVar1 >> iVar10 & 1) != 0) {
*(char *)(param_2 + uVar5) = cVar6;
uVar5 = uVar5 + 1;
}
pbVar12 = pbVar12 + 1;
} while (uVar5 < param_3);
}
return uVar5;
}
|
|
57,422
|
make_empty_page
|
eloqsql/storage/maria/ma_blockrec.c
|
static void make_empty_page(MARIA_HA *info, uchar *buff, uint page_type,
my_bool create_dir_entry)
{
uint block_size= info->s->block_size;
DBUG_ENTER("make_empty_page");
bzero(buff, PAGE_HEADER_SIZE(info->s));
#if !defined(DONT_ZERO_PAGE_BLOCKS) || defined(HAVE_valgrind)
/*
We zero the rest of the block to avoid getting old memory information
to disk and to allow the file to be compressed better if archived.
The code does not assume the block is zeroed.
*/
if (page_type != BLOB_PAGE)
bzero(buff+ PAGE_HEADER_SIZE(info->s),
block_size - PAGE_HEADER_SIZE(info->s));
#endif
buff[PAGE_TYPE_OFFSET]= (uchar) page_type;
buff[DIR_COUNT_OFFSET]= (int) create_dir_entry;
buff[DIR_FREE_OFFSET]= END_OF_DIR_FREE_LIST;
if (create_dir_entry)
{
/* Create directory entry to point to start of page with size 0 */
buff+= block_size - PAGE_SUFFIX_SIZE - DIR_ENTRY_SIZE;
int2store(buff, PAGE_HEADER_SIZE(info->s));
int2store(buff+2, 0);
}
DBUG_VOID_RETURN;
}
|
O0
|
c
|
make_empty_page:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %cl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movb %al, -0x15(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl 0x7bc(%rax), %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl 0xc18(%rax), %eax
addl $0xc, %eax
movl %eax, %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x2a2c0
cmpl $0x3, -0x14(%rbp)
je 0x7b476
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl 0xc18(%rax), %eax
addl $0xc, %eax
movl %eax, %eax
addq %rax, %rdi
movl -0x1c(%rbp), %eax
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
movl 0xc18(%rcx), %ecx
addl $0xc, %ecx
subl %ecx, %eax
movl %eax, %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x2a2c0
movl -0x14(%rbp), %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x7(%rax)
movsbl -0x15(%rbp), %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x8(%rax)
movq -0x10(%rbp), %rax
movb $-0x1, 0x9(%rax)
cmpb $0x0, -0x15(%rbp)
je 0x7b4ee
movl -0x1c(%rbp), %ecx
subl $0x4, %ecx
subl $0x4, %ecx
movq -0x10(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl 0xc18(%rax), %eax
addl $0xc, %eax
movw %ax, %cx
movq -0x28(%rbp), %rax
movw %cx, (%rax)
jmp 0x7b4d7
movq -0x10(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movw $0x0, (%rax)
jmp 0x7b4ee
jmp 0x7b4f0
jmp 0x7b4f2
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
make_empty_page:
push rbp
mov rbp, rsp
sub rsp, 30h
mov al, cl
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_15], al
mov rax, [rbp+var_8]
mov rax, [rax]
mov eax, [rax+7BCh]
mov [rbp+var_1C], eax
mov rdi, [rbp+var_10]
mov rax, [rbp+var_8]
mov rax, [rax]
mov eax, [rax+0C18h]
add eax, 0Ch
mov eax, eax
mov edx, eax
xor esi, esi
call _memset
cmp [rbp+var_14], 3
jz short loc_7B476
mov rdi, [rbp+var_10]
mov rax, [rbp+var_8]
mov rax, [rax]
mov eax, [rax+0C18h]
add eax, 0Ch
mov eax, eax
add rdi, rax
mov eax, [rbp+var_1C]
mov rcx, [rbp+var_8]
mov rcx, [rcx]
mov ecx, [rcx+0C18h]
add ecx, 0Ch
sub eax, ecx
mov eax, eax
mov edx, eax
xor esi, esi
call _memset
loc_7B476:
mov eax, [rbp+var_14]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+7], cl
movsx eax, [rbp+var_15]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+8], cl
mov rax, [rbp+var_10]
mov byte ptr [rax+9], 0FFh
cmp [rbp+var_15], 0
jz short loc_7B4EE
mov ecx, [rbp+var_1C]
sub ecx, 4
sub ecx, 4
mov rax, [rbp+var_10]
mov ecx, ecx
add rax, rcx
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rax, [rbp+var_8]
mov rax, [rax]
mov eax, [rax+0C18h]
add eax, 0Ch
mov cx, ax
mov rax, [rbp+var_28]
mov [rax], cx
jmp short $+2
loc_7B4D7:
mov rax, [rbp+var_10]
add rax, 2
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
mov word ptr [rax], 0
jmp short $+2
loc_7B4EE:
jmp short $+2
loc_7B4F0:
jmp short $+2
loc_7B4F2:
add rsp, 30h
pop rbp
retn
|
_WORD * make_empty_page(long long a1, _BYTE *a2, int a3, char a4)
{
_WORD *result; // rax
_WORD *v5; // [rsp+8h] [rbp-28h]
int v6; // [rsp+14h] [rbp-1Ch]
v6 = *(_DWORD *)(*(_QWORD *)a1 + 1980LL);
memset(a2, 0LL, (unsigned int)(*(_DWORD *)(*(_QWORD *)a1 + 3096LL) + 12));
if ( a3 != 3 )
memset(
&a2[*(_DWORD *)(*(_QWORD *)a1 + 3096LL) + 12],
0LL,
(unsigned int)(v6 - (*(_DWORD *)(*(_QWORD *)a1 + 3096LL) + 12)));
a2[7] = a3;
a2[8] = a4;
result = a2;
a2[9] = -1;
if ( a4 )
{
v5 = &a2[v6 - 8];
*v5 = *(_DWORD *)(*(_QWORD *)a1 + 3096LL) + 12;
result = v5 + 1;
v5[1] = 0;
}
return result;
}
|
make_empty_page:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV AL,CL
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV byte ptr [RBP + -0x15],AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x7bc]
MOV dword ptr [RBP + -0x1c],EAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0xc18]
ADD EAX,0xc
MOV EAX,EAX
MOV EDX,EAX
XOR ESI,ESI
CALL 0x0012a2c0
CMP dword ptr [RBP + -0x14],0x3
JZ 0x0017b476
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0xc18]
ADD EAX,0xc
MOV EAX,EAX
ADD RDI,RAX
MOV EAX,dword ptr [RBP + -0x1c]
MOV RCX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RCX]
MOV ECX,dword ptr [RCX + 0xc18]
ADD ECX,0xc
SUB EAX,ECX
MOV EAX,EAX
MOV EDX,EAX
XOR ESI,ESI
CALL 0x0012a2c0
LAB_0017b476:
MOV EAX,dword ptr [RBP + -0x14]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x7],CL
MOVSX EAX,byte ptr [RBP + -0x15]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x8],CL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x9],0xff
CMP byte ptr [RBP + -0x15],0x0
JZ 0x0017b4ee
MOV ECX,dword ptr [RBP + -0x1c]
SUB ECX,0x4
SUB ECX,0x4
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0xc18]
ADD EAX,0xc
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x28]
MOV word ptr [RAX],CX
JMP 0x0017b4d7
LAB_0017b4d7:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x2
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV word ptr [RAX],0x0
JMP 0x0017b4ee
LAB_0017b4ee:
JMP 0x0017b4f0
LAB_0017b4f0:
JMP 0x0017b4f2
LAB_0017b4f2:
ADD RSP,0x30
POP RBP
RET
|
void make_empty_page(long *param_1,void *param_2,int param_3,char param_4)
{
int iVar1;
short *psVar2;
iVar1 = *(int *)(*param_1 + 0x7bc);
memset(param_2,0,(ulong)(*(int *)(*param_1 + 0xc18) + 0xc));
if (param_3 != 3) {
memset((void *)((long)param_2 + (ulong)(*(int *)(*param_1 + 0xc18) + 0xc)),0,
(ulong)(uint)(iVar1 - (*(int *)(*param_1 + 0xc18) + 0xc)));
}
*(char *)((long)param_2 + 7) = (char)param_3;
*(char *)((long)param_2 + 8) = param_4;
*(int1 *)((long)param_2 + 9) = 0xff;
if (param_4 != '\0') {
psVar2 = (short *)((long)param_2 + (ulong)(iVar1 - 8));
*psVar2 = (short)*(int4 *)(*param_1 + 0xc18) + 0xc;
psVar2[1] = 0;
}
return;
}
|
|
57,423
|
write_hook_for_undo_key_delete
|
eloqsql/storage/maria/ma_key_recover.c
|
my_bool write_hook_for_undo_key_delete(enum translog_record_type type,
TRN *trn, MARIA_HA *tbl_info,
LSN *lsn, void *hook_arg)
{
struct st_msg_to_write_hook_for_undo_key *msg=
(struct st_msg_to_write_hook_for_undo_key *) hook_arg;
MARIA_SHARE *share= tbl_info->s;
if (msg->auto_increment > 0) /* If auto increment key */
{
/* Restore auto increment if no one has changed it in between */
if (share->last_auto_increment == tbl_info->last_auto_increment &&
tbl_info->last_auto_increment != ~(ulonglong) 0)
share->state.auto_increment= tbl_info->last_auto_increment;
}
return write_hook_for_undo_key(type, trn, tbl_info, lsn, hook_arg);
}
|
O0
|
c
|
write_hook_for_undo_key_delete:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jbe 0x71aa7
movq -0x38(%rbp), %rax
movq 0x610(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x3e8(%rcx), %rax
jne 0x71aa5
movq -0x18(%rbp), %rax
cmpq $-0x1, 0x3e8(%rax)
je 0x71aa5
movq -0x18(%rbp), %rax
movq 0x3e8(%rax), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0xd8(%rax)
jmp 0x71aa7
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %r8
callq 0x718d0
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
write_hook_for_undo_key_delete:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov rax, [rbp+var_28]
mov [rbp+var_30], rax
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
cmp qword ptr [rax+18h], 0
jbe short loc_71AA7
mov rax, [rbp+var_38]
mov rax, [rax+610h]
mov rcx, [rbp+var_18]
cmp rax, [rcx+3E8h]
jnz short loc_71AA5
mov rax, [rbp+var_18]
cmp qword ptr [rax+3E8h], 0FFFFFFFFFFFFFFFFh
jz short loc_71AA5
mov rax, [rbp+var_18]
mov rcx, [rax+3E8h]
mov rax, [rbp+var_38]
mov [rax+0D8h], rcx
loc_71AA5:
jmp short $+2
loc_71AA7:
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
mov r8, [rbp+var_28]
call write_hook_for_undo_key
add rsp, 40h
pop rbp
retn
|
long long write_hook_for_undo_key_delete(unsigned int a1, long long a2, long long *a3, long long a4, long long a5)
{
long long v6; // [rsp+8h] [rbp-38h]
v6 = *a3;
if ( *(_QWORD *)(a5 + 24) && *(_QWORD *)(v6 + 1552) == a3[125] && a3[125] != -1 )
*(_QWORD *)(v6 + 216) = a3[125];
return write_hook_for_undo_key(a1, a2, (long long)a3, a4, a5);
}
|
write_hook_for_undo_key_delete:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
CMP qword ptr [RAX + 0x18],0x0
JBE 0x00171aa7
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x610]
MOV RCX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RCX + 0x3e8]
JNZ 0x00171aa5
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x3e8],-0x1
JZ 0x00171aa5
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RAX + 0x3e8]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0xd8],RCX
LAB_00171aa5:
JMP 0x00171aa7
LAB_00171aa7:
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
MOV R8,qword ptr [RBP + -0x28]
CALL 0x001718d0
ADD RSP,0x40
POP RBP
RET
|
void write_hook_for_undo_key_delete
(int4 param_1,int8 param_2,long *param_3,int8 param_4,long param_5)
{
if (((*(long *)(param_5 + 0x18) != 0) && (*(long *)(*param_3 + 0x610) == param_3[0x7d])) &&
(param_3[0x7d] != -1)) {
*(long *)(*param_3 + 0xd8) = param_3[0x7d];
}
write_hook_for_undo_key(param_1,param_2,param_3,param_4,param_5);
return;
}
|
|
57,424
|
my_thread_init_thr_mutex
|
eloqsql/mysys/my_thr_init.c
|
static void my_thread_init_thr_mutex(struct st_my_thread_var *var)
{
mysql_mutex_init(key_my_thread_var_mutex, &var->mutex, MY_MUTEX_INIT_FAST);
mysql_cond_init(key_my_thread_var_suspend, &var->suspend, NULL);
}
|
O3
|
c
|
my_thread_init_thr_mutex:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x341491(%rip), %rax # 0x36d518
movl (%rax), %edi
leaq 0x40(%rbx), %r14
leaq 0x2cadd4(%rip), %r15 # 0x2f6e68
movq (%r15), %rax
movq %r14, %rsi
callq *0x40(%rax)
movq %rax, 0x80(%rbx)
movq %r14, 0x78(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x68(%rbx)
leaq 0x34213a(%rip), %rsi # 0x36e1f0
movq %r14, %rdi
callq 0x24580
leaq 0x341497(%rip), %rax # 0x36d55c
movl (%rax), %edi
leaq 0x8(%rbx), %r14
movq (%r15), %rax
movq %r14, %rsi
callq *0x60(%rax)
movq %rax, 0x38(%rbx)
movq %r14, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x24480
|
my_thread_init_thr_mutex:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdi
lea rax, key_my_thread_var_mutex
mov edi, [rax]
lea r14, [rbx+40h]
lea r15, PSI_server
mov rax, [r15]
mov rsi, r14
call qword ptr [rax+40h]
mov [rbx+80h], rax
mov [rbx+78h], r14
xorps xmm0, xmm0
movups xmmword ptr [rbx+68h], xmm0
lea rsi, my_fast_mutexattr
mov rdi, r14
call _pthread_mutex_init
lea rax, key_my_thread_var_suspend
mov edi, [rax]
lea r14, [rbx+8]
mov rax, [r15]
mov rsi, r14
call qword ptr [rax+60h]
mov [rbx+38h], rax
mov rdi, r14
xor esi, esi
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp _pthread_cond_init
|
long long my_thread_init_thr_mutex(long long a1)
{
*(_QWORD *)(a1 + 128) = (*((long long ( **)(_QWORD, long long))PSI_server[0] + 8))(
key_my_thread_var_mutex,
a1 + 64);
*(_QWORD *)(a1 + 120) = a1 + 64;
*(_OWORD *)(a1 + 104) = 0LL;
pthread_mutex_init(a1 + 64, &my_fast_mutexattr);
*(_QWORD *)(a1 + 56) = (*((long long ( **)(_QWORD, long long))PSI_server[0] + 12))(
key_my_thread_var_suspend,
a1 + 8);
return pthread_cond_init(a1 + 8, 0LL);
}
|
my_thread_init_thr_mutex:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA RAX,[0x46d518]
MOV EDI,dword ptr [RAX]
LEA R14,[RBX + 0x40]
LEA R15,[0x3f6e68]
MOV RAX,qword ptr [R15]
MOV RSI,R14
CALL qword ptr [RAX + 0x40]
MOV qword ptr [RBX + 0x80],RAX
MOV qword ptr [RBX + 0x78],R14
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x68],XMM0
LEA RSI,[0x46e1f0]
MOV RDI,R14
CALL 0x00124580
LEA RAX,[0x46d55c]
MOV EDI,dword ptr [RAX]
LEA R14,[RBX + 0x8]
MOV RAX,qword ptr [R15]
MOV RSI,R14
CALL qword ptr [RAX + 0x60]
MOV qword ptr [RBX + 0x38],RAX
MOV RDI,R14
XOR ESI,ESI
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x00124480
|
void my_thread_init_thr_mutex(long param_1)
{
pthread_mutex_t *__mutex;
int8 uVar1;
__mutex = (pthread_mutex_t *)(param_1 + 0x40);
uVar1 = (**(code **)(PSI_server + 0x40))(key_my_thread_var_mutex,__mutex);
*(int8 *)(param_1 + 0x80) = uVar1;
*(pthread_mutex_t **)(param_1 + 0x78) = __mutex;
*(int8 *)(param_1 + 0x68) = 0;
*(int8 *)(param_1 + 0x70) = 0;
pthread_mutex_init(__mutex,(pthread_mutexattr_t *)&my_fast_mutexattr);
uVar1 = (**(code **)(PSI_server + 0x60))(key_my_thread_var_suspend);
*(int8 *)(param_1 + 0x38) = uVar1;
pthread_cond_init((pthread_cond_t *)(param_1 + 8),(pthread_condattr_t *)0x0);
return;
}
|
|
57,425
|
ma_pvio_wait_io_or_timeout
|
eloqsql/libmariadb/libmariadb/ma_pvio.c
|
int ma_pvio_wait_io_or_timeout(MARIADB_PVIO *pvio, my_bool is_read, int timeout)
{
if (pvio)
{
if (IS_PVIO_ASYNC_ACTIVE(pvio))
return ma_pvio_wait_async(pvio->mysql->options.extension->async_context,
(is_read) ? VIO_IO_EVENT_READ : VIO_IO_EVENT_WRITE,
timeout);
if (pvio && pvio->methods->wait_io_or_timeout)
return pvio->methods->wait_io_or_timeout(pvio, is_read, timeout);
}
return 1;
}
|
O0
|
c
|
ma_pvio_wait_io_or_timeout:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %sil, %al
movq %rdi, -0x10(%rbp)
movb %al, -0x11(%rbp)
movl %edx, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x3e52b
movq -0x10(%rbp), %rax
cmpq $0x0, 0x40(%rax)
je 0x3e4f3
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
cmpq $0x0, 0x480(%rax)
je 0x3e4f3
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movq 0x480(%rax), %rax
cmpq $0x0, 0x28(%rax)
je 0x3e4f3
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movsbl 0x14(%rax), %eax
cmpl $0x0, %eax
je 0x3e4f3
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rdi
movsbl -0x11(%rbp), %ecx
movl $0x1, %esi
xorl %eax, %eax
cmpl $0x0, %ecx
cmovnel %eax, %esi
movl -0x18(%rbp), %edx
callq 0x3e540
movsbl %al, %eax
movl %eax, -0x4(%rbp)
jmp 0x3e532
cmpq $0x0, -0x10(%rbp)
je 0x3e529
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
cmpq $0x0, 0x30(%rax)
je 0x3e529
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq 0x30(%rax), %rax
movq -0x10(%rbp), %rdi
movb -0x11(%rbp), %cl
movl -0x18(%rbp), %edx
movsbl %cl, %esi
callq *%rax
movl %eax, -0x4(%rbp)
jmp 0x3e532
jmp 0x3e52b
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
ma_pvio_wait_io_or_timeout:
push rbp
mov rbp, rsp
sub rsp, 20h
mov al, sil
mov [rbp+var_10], rdi
mov [rbp+var_11], al
mov [rbp+var_18], edx
cmp [rbp+var_10], 0
jz loc_3E52B
mov rax, [rbp+var_10]
cmp qword ptr [rax+40h], 0
jz short loc_3E4F3
mov rax, [rbp+var_10]
mov rax, [rax+40h]
cmp qword ptr [rax+480h], 0
jz short loc_3E4F3
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov rax, [rax+480h]
cmp qword ptr [rax+28h], 0
jz short loc_3E4F3
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov rax, [rax+480h]
mov rax, [rax+28h]
movsx eax, byte ptr [rax+14h]
cmp eax, 0
jz short loc_3E4F3
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov rax, [rax+480h]
mov rdi, [rax+28h]
movsx ecx, [rbp+var_11]
mov esi, 1
xor eax, eax
cmp ecx, 0
cmovnz esi, eax
mov edx, [rbp+var_18]
call ma_pvio_wait_async
movsx eax, al
mov [rbp+var_4], eax
jmp short loc_3E532
loc_3E4F3:
cmp [rbp+var_10], 0
jz short loc_3E529
mov rax, [rbp+var_10]
mov rax, [rax+48h]
cmp qword ptr [rax+30h], 0
jz short loc_3E529
mov rax, [rbp+var_10]
mov rax, [rax+48h]
mov rax, [rax+30h]
mov rdi, [rbp+var_10]
mov cl, [rbp+var_11]
mov edx, [rbp+var_18]
movsx esi, cl
call rax
mov [rbp+var_4], eax
jmp short loc_3E532
loc_3E529:
jmp short $+2
loc_3E52B:
mov [rbp+var_4], 1
loc_3E532:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
|
long long ma_pvio_wait_io_or_timeout(long long a1, char a2, unsigned int a3)
{
if ( !a1 )
return 1;
if ( !*(_QWORD *)(a1 + 64)
|| !*(_QWORD *)(*(_QWORD *)(a1 + 64) + 1152LL)
|| !*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 64) + 1152LL) + 40LL)
|| !*(_BYTE *)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 64) + 1152LL) + 40LL) + 20LL) )
{
if ( *(_QWORD *)(*(_QWORD *)(a1 + 72) + 48LL) )
return (unsigned int)(*(long long ( **)(long long, _QWORD, _QWORD))(*(_QWORD *)(a1 + 72) + 48LL))(
a1,
(unsigned int)a2,
a3);
return 1;
}
return (unsigned int)(char)ma_pvio_wait_async(
*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 64) + 1152LL) + 40LL),
a2 == 0,
a3);
}
|
ma_pvio_wait_io_or_timeout:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV AL,SIL
MOV qword ptr [RBP + -0x10],RDI
MOV byte ptr [RBP + -0x11],AL
MOV dword ptr [RBP + -0x18],EDX
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0013e52b
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x40],0x0
JZ 0x0013e4f3
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
CMP qword ptr [RAX + 0x480],0x0
JZ 0x0013e4f3
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV RAX,qword ptr [RAX + 0x480]
CMP qword ptr [RAX + 0x28],0x0
JZ 0x0013e4f3
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOVSX EAX,byte ptr [RAX + 0x14]
CMP EAX,0x0
JZ 0x0013e4f3
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV RAX,qword ptr [RAX + 0x480]
MOV RDI,qword ptr [RAX + 0x28]
MOVSX ECX,byte ptr [RBP + -0x11]
MOV ESI,0x1
XOR EAX,EAX
CMP ECX,0x0
CMOVNZ ESI,EAX
MOV EDX,dword ptr [RBP + -0x18]
CALL 0x0013e540
MOVSX EAX,AL
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0013e532
LAB_0013e4f3:
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0013e529
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x48]
CMP qword ptr [RAX + 0x30],0x0
JZ 0x0013e529
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x48]
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RBP + -0x10]
MOV CL,byte ptr [RBP + -0x11]
MOV EDX,dword ptr [RBP + -0x18]
MOVSX ESI,CL
CALL RAX
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0013e532
LAB_0013e529:
JMP 0x0013e52b
LAB_0013e52b:
MOV dword ptr [RBP + -0x4],0x1
LAB_0013e532:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int ma_pvio_wait_io_or_timeout(long param_1,char param_2,int4 param_3)
{
char cVar1;
int iVar2;
if (param_1 != 0) {
if ((((*(long *)(param_1 + 0x40) != 0) && (*(long *)(*(long *)(param_1 + 0x40) + 0x480) != 0))
&& (*(long *)(*(long *)(*(long *)(param_1 + 0x40) + 0x480) + 0x28) != 0)) &&
(*(char *)(*(long *)(*(long *)(*(long *)(param_1 + 0x40) + 0x480) + 0x28) + 0x14) != '\0')) {
cVar1 = ma_pvio_wait_async(*(int8 *)
(*(long *)(*(long *)(param_1 + 0x40) + 0x480) + 0x28),
param_2 == '\0',param_3);
return (int)cVar1;
}
if ((param_1 != 0) && (*(long *)(*(long *)(param_1 + 0x48) + 0x30) != 0)) {
iVar2 = (**(code **)(*(long *)(param_1 + 0x48) + 0x30))(param_1,(int)param_2,param_3,param_2);
return iVar2;
}
}
return 1;
}
|
|
57,426
|
mysql_client_plugin_init
|
eloqsql/build_O3/libmariadb/libmariadb/ma_client_plugin.c
|
int mysql_client_plugin_init()
{
MYSQL mysql;
struct st_mysql_client_plugin **builtin;
va_list unused;
LINT_INIT_STRUCT(unused);
if (initialized)
return 0;
memset(&mysql, 0, sizeof(mysql)); /* dummy mysql for set_mysql_extended_error */
pthread_mutex_init(&LOCK_load_client_plugin, NULL);
ma_init_alloc_root(&mem_root, 128, 128);
memset(&plugin_list, 0, sizeof(plugin_list));
initialized= 1;
pthread_mutex_lock(&LOCK_load_client_plugin);
for (builtin= mysql_client_builtins; *builtin; builtin++)
add_plugin(&mysql, *builtin, 0, 0, unused);
pthread_mutex_unlock(&LOCK_load_client_plugin);
load_env_plugins(&mysql);
return 0;
}
|
O3
|
c
|
mysql_client_plugin_init:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x520, %rsp # imm = 0x520
movq %fs:0x28, %rax
movq %rax, -0x28(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x540(%rbp)
movq $0x0, -0x530(%rbp)
cmpb $0x0, 0x26185(%rip) # 0x51d50
jne 0x2bd36
leaq -0x520(%rbp), %rdi
movl $0x4f8, %edx # imm = 0x4F8
xorl %esi, %esi
callq 0x13270
leaq 0x2616d(%rip), %rbx # 0x51d58
movq %rbx, %rdi
xorl %esi, %esi
callq 0x136d0
leaq 0x26184(%rip), %rdi # 0x51d80
movl $0x80, %esi
movl $0x80, %edx
callq 0x225d0
leaq 0x261ae(%rip), %rax # 0x51dc0
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rax)
movaps %xmm0, 0x20(%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
movb $0x1, 0x26125(%rip) # 0x51d50
movq %rbx, %rdi
callq 0x136c0
leaq 0x23656(%rip), %r15 # 0x4f290
movq (%r15), %rsi
testq %rsi, %rsi
je 0x2bc6f
addq $0x8, %r15
leaq -0x520(%rbp), %rbx
leaq -0x540(%rbp), %r14
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r14, %r8
callq 0x2bd5c
movq (%r15), %rsi
addq $0x8, %r15
testq %rsi, %rsi
jne 0x2bc54
leaq 0x260e2(%rip), %rdi # 0x51d58
callq 0x13340
leaq 0xf956(%rip), %rdi # 0x3b5d8
callq 0x135b0
testq %rax, %rax
je 0x2bd36
xorl %ecx, %ecx
cmpb $0x0, (%rax,%rcx)
je 0x2bca9
incq %rcx
cmpq $0x400, %rcx # imm = 0x400
jne 0x2bc92
jmp 0x2bd36
cmpq $0x3ff, %rcx # imm = 0x3FF
ja 0x2bd36
movq %rax, %rdi
callq 0x13810
movq %rax, %rbx
movq %rax, %rdi
movl $0x3b, %esi
callq 0x13180
movq %rbx, %r15
testq %rax, %rax
je 0x2bd16
movq %rax, %r14
leaq -0x520(%rbp), %r12
movq %rbx, %r15
movb $0x0, (%r14)
movq %r12, %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x2c301
movq %r14, %r15
incq %r15
movq %r15, %rdi
movl $0x3b, %esi
callq 0x13180
movq %rax, %r14
testq %rax, %rax
jne 0x2bce3
leaq -0x520(%rbp), %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x2c301
movq %rbx, %rdi
callq 0x13580
movq %fs:0x28, %rax
cmpq -0x28(%rbp), %rax
jne 0x2bd57
xorl %eax, %eax
addq $0x520, %rsp # imm = 0x520
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x13510
|
mysql_client_plugin_init:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 520h
mov rax, fs:28h
mov [rbp+var_28], rax
xorps xmm0, xmm0
movaps [rbp+var_540], xmm0
mov [rbp+var_530], 0
cmp cs:initialized, 0
jnz loc_2BD36
lea rdi, [rbp+var_520]
mov edx, 4F8h
xor esi, esi
call _memset
lea rbx, LOCK_load_client_plugin
mov rdi, rbx
xor esi, esi
call _pthread_mutex_init
lea rdi, mem_root
mov esi, 80h
mov edx, 80h
call ma_init_alloc_root
lea rax, plugin_list
xorps xmm0, xmm0
movaps xmmword ptr [rax+30h], xmm0
movaps xmmword ptr [rax+20h], xmm0
movaps xmmword ptr [rax+10h], xmm0
movaps xmmword ptr [rax], xmm0
mov cs:initialized, 1
mov rdi, rbx
call _pthread_mutex_lock
lea r15, mysql_client_builtins
mov rsi, [r15]
test rsi, rsi
jz short loc_2BC6F
add r15, 8
lea rbx, [rbp+var_520]
lea r14, [rbp+var_540]
loc_2BC54:
mov rdi, rbx
xor edx, edx
xor ecx, ecx
mov r8, r14
call add_plugin
mov rsi, [r15]
add r15, 8
test rsi, rsi
jnz short loc_2BC54
loc_2BC6F:
lea rdi, LOCK_load_client_plugin
call _pthread_mutex_unlock
lea rdi, aLibmysqlPlugin; "LIBMYSQL_PLUGINS"
call _getenv
test rax, rax
jz loc_2BD36
xor ecx, ecx
loc_2BC92:
cmp byte ptr [rax+rcx], 0
jz short loc_2BCA9
inc rcx
cmp rcx, 400h
jnz short loc_2BC92
jmp loc_2BD36
loc_2BCA9:
cmp rcx, 3FFh
ja loc_2BD36
mov rdi, rax
call _strdup
mov rbx, rax
mov rdi, rax
mov esi, 3Bh ; ';'
call _strchr
mov r15, rbx
test rax, rax
jz short loc_2BD16
mov r14, rax
lea r12, [rbp+var_520]
mov r15, rbx
loc_2BCE3:
mov byte ptr [r14], 0
mov rdi, r12
mov rsi, r15
mov edx, 0FFFFFFFFh
xor ecx, ecx
xor eax, eax
call mysql_load_plugin
mov r15, r14
inc r15
mov rdi, r15
mov esi, 3Bh ; ';'
call _strchr
mov r14, rax
test rax, rax
jnz short loc_2BCE3
loc_2BD16:
lea rdi, [rbp+var_520]
mov rsi, r15
mov edx, 0FFFFFFFFh
xor ecx, ecx
xor eax, eax
call mysql_load_plugin
mov rdi, rbx
call _free
loc_2BD36:
mov rax, fs:28h
cmp rax, [rbp+var_28]
jnz short loc_2BD57
xor eax, eax
add rsp, 520h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_2BD57:
call ___stack_chk_fail
|
long long mysql_client_plugin_init()
{
void *v0; // rsi
void **v1; // r15
long long v2; // rax
unsigned long long v3; // rcx
long long v4; // rbx
long long v5; // rax
int v6; // r8d
int v7; // r9d
int v8; // r15d
_BYTE *v9; // r14
__int128 v11; // [rsp+0h] [rbp-540h] BYREF
long long v12; // [rsp+10h] [rbp-530h]
_BYTE v13[1272]; // [rsp+20h] [rbp-520h] BYREF
unsigned long long v14; // [rsp+518h] [rbp-28h]
v14 = __readfsqword(0x28u);
v11 = 0LL;
v12 = 0LL;
if ( !initialized )
{
memset(v13, 0LL, sizeof(v13));
pthread_mutex_init(&LOCK_load_client_plugin, 0LL);
ma_init_alloc_root((long long)&mem_root, 128LL, 128LL);
plugin_list[3] = 0LL;
plugin_list[2] = 0LL;
plugin_list[1] = 0LL;
plugin_list[0] = 0LL;
initialized = 1;
pthread_mutex_lock(&LOCK_load_client_plugin);
v0 = mysql_client_builtins;
if ( mysql_client_builtins )
{
v1 = (void **)(&mysql_client_builtins + 1);
do
{
((void ( *)(_BYTE *, void *, _QWORD, _QWORD, __int128 *))add_plugin)(v13, v0, 0LL, 0LL, &v11);
v0 = *v1++;
}
while ( v0 );
}
pthread_mutex_unlock(&LOCK_load_client_plugin);
v2 = getenv("LIBMYSQL_PLUGINS");
if ( v2 )
{
v3 = 0LL;
while ( *(_BYTE *)(v2 + v3) )
{
if ( ++v3 == 1024 )
return 0LL;
}
if ( v3 <= 0x3FF )
{
v4 = strdup(v2);
v5 = strchr(v4, 59LL);
v8 = v4;
if ( v5 )
{
v9 = (_BYTE *)v5;
v8 = v4;
do
{
*v9 = 0;
mysql_load_plugin((unsigned int)v13, v8, -1, 0, v6, v7, v11);
v8 = (_DWORD)v9 + 1;
v9 = (_BYTE *)strchr(v9 + 1, 59LL);
}
while ( v9 );
}
mysql_load_plugin((unsigned int)v13, v8, -1, 0, v6, v7, v11);
free(v4);
}
}
}
return 0LL;
}
|
mysql_client_plugin_init:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x520
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RBP + -0x540],XMM0
MOV qword ptr [RBP + -0x530],0x0
CMP byte ptr [0x00151d50],0x0
JNZ 0x0012bd36
LEA RDI,[RBP + -0x520]
MOV EDX,0x4f8
XOR ESI,ESI
CALL 0x00113270
LEA RBX,[0x151d58]
MOV RDI,RBX
XOR ESI,ESI
CALL 0x001136d0
LEA RDI,[0x151d80]
MOV ESI,0x80
MOV EDX,0x80
CALL 0x001225d0
LEA RAX,[0x151dc0]
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RAX + 0x30],XMM0
MOVAPS xmmword ptr [RAX + 0x20],XMM0
MOVAPS xmmword ptr [RAX + 0x10],XMM0
MOVAPS xmmword ptr [RAX],XMM0
MOV byte ptr [0x00151d50],0x1
MOV RDI,RBX
CALL 0x001136c0
LEA R15,[0x14f290]
MOV RSI,qword ptr [R15]
TEST RSI,RSI
JZ 0x0012bc6f
ADD R15,0x8
LEA RBX,[RBP + -0x520]
LEA R14,[RBP + -0x540]
LAB_0012bc54:
MOV RDI,RBX
XOR EDX,EDX
XOR ECX,ECX
MOV R8,R14
CALL 0x0012bd5c
MOV RSI,qword ptr [R15]
ADD R15,0x8
TEST RSI,RSI
JNZ 0x0012bc54
LAB_0012bc6f:
LEA RDI,[0x151d58]
CALL 0x00113340
LEA RDI,[0x13b5d8]
CALL 0x001135b0
TEST RAX,RAX
JZ 0x0012bd36
XOR ECX,ECX
LAB_0012bc92:
CMP byte ptr [RAX + RCX*0x1],0x0
JZ 0x0012bca9
INC RCX
CMP RCX,0x400
JNZ 0x0012bc92
JMP 0x0012bd36
LAB_0012bca9:
CMP RCX,0x3ff
JA 0x0012bd36
MOV RDI,RAX
CALL 0x00113810
MOV RBX,RAX
MOV RDI,RAX
MOV ESI,0x3b
CALL 0x00113180
MOV R15,RBX
TEST RAX,RAX
JZ 0x0012bd16
MOV R14,RAX
LEA R12,[RBP + -0x520]
MOV R15,RBX
LAB_0012bce3:
MOV byte ptr [R14],0x0
MOV RDI,R12
MOV RSI,R15
MOV EDX,0xffffffff
XOR ECX,ECX
XOR EAX,EAX
CALL 0x0012c301
MOV R15,R14
INC R15
MOV RDI,R15
MOV ESI,0x3b
CALL 0x00113180
MOV R14,RAX
TEST RAX,RAX
JNZ 0x0012bce3
LAB_0012bd16:
LEA RDI,[RBP + -0x520]
MOV RSI,R15
MOV EDX,0xffffffff
XOR ECX,ECX
XOR EAX,EAX
CALL 0x0012c301
MOV RDI,RBX
CALL 0x00113580
LAB_0012bd36:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x28]
JNZ 0x0012bd57
XOR EAX,EAX
ADD RSP,0x520
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0012bd57:
CALL 0x00113510
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
int8 mysql_client_plugin_init(void)
{
char *pcVar1;
char *__s;
char *pcVar2;
ulong uVar3;
int *puVar4;
int **ppuVar5;
long in_FS_OFFSET;
int8 local_548;
int8 uStack_540;
int8 local_538;
int1 local_528 [1272];
long local_30;
local_30 = *(long *)(in_FS_OFFSET + 0x28);
local_548 = 0;
uStack_540 = 0;
local_538 = 0;
if (initialized == '\0') {
memset(local_528,0,0x4f8);
pthread_mutex_init((pthread_mutex_t *)LOCK_load_client_plugin,(pthread_mutexattr_t *)0x0);
ma_init_alloc_root(mem_root,0x80,0x80);
_DAT_00151df0 = 0;
uRam0000000000151df8 = 0;
_DAT_00151de0 = 0;
uRam0000000000151de8 = 0;
_DAT_00151dd0 = 0;
uRam0000000000151dd8 = 0;
plugin_list = 0;
DAT_00151dc8 = 0;
initialized = '\x01';
pthread_mutex_lock((pthread_mutex_t *)LOCK_load_client_plugin);
if (mysql_client_builtins != (int *)0x0) {
ppuVar5 = &PTR_mysql_old_password_client_plugin_0014f298;
puVar4 = mysql_client_builtins;
do {
add_plugin(local_528,puVar4,0,0,&local_548);
puVar4 = *ppuVar5;
ppuVar5 = ppuVar5 + 1;
} while (puVar4 != (int *)0x0);
}
pthread_mutex_unlock((pthread_mutex_t *)LOCK_load_client_plugin);
pcVar1 = getenv("LIBMYSQL_PLUGINS");
if (pcVar1 != (char *)0x0) {
uVar3 = 0;
do {
if (pcVar1[uVar3] == '\0') {
if (uVar3 < 0x400) {
__s = strdup(pcVar1);
pcVar2 = strchr(__s,0x3b);
pcVar1 = __s;
if (pcVar2 != (char *)0x0) {
do {
*pcVar2 = '\0';
mysql_load_plugin(local_528,pcVar1,0xffffffff,0);
pcVar1 = pcVar2 + 1;
pcVar2 = strchr(pcVar1,0x3b);
} while (pcVar2 != (char *)0x0);
}
mysql_load_plugin(local_528,pcVar1,0xffffffff,0);
free(__s);
}
break;
}
uVar3 = uVar3 + 1;
} while (uVar3 != 0x400);
}
}
if (*(long *)(in_FS_OFFSET + 0x28) != local_30) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return 0;
}
|
|
57,427
|
nglog::LogMessageTime::LogMessageTime(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>>)
|
ng-log[P]ng-log/src/logging.cc
|
LogMessageTime::LogMessageTime(std::chrono::system_clock::time_point now)
: timestamp_{now} {
std::time_t timestamp;
std::tie(tm_, timestamp, gmtoffset_) = Breakdown(now);
usecs_ = std::chrono::duration_cast<std::chrono::microseconds>(
now - std::chrono::system_clock::from_time_t(timestamp));
}
|
O1
|
cpp
|
nglog::LogMessageTime::LogMessageTime(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>>):
pushq %r14
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movl $0x0, 0x20(%rdi)
movups %xmm0, 0x28(%rdi)
movq %rsi, 0x38(%rdi)
movabsq $0x112e0be826d694b3, %rcx # imm = 0x112E0BE826D694B3
movq %rsi, %rax
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x1a, %rdx
addq %rax, %rdx
movq %rdx, (%rsp)
leaq 0x226bc(%rip), %rax # 0x31b89
cmpb $0x1, (%rax)
jne 0xf4e1
movq %rsp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x7a70
jmp 0xf4ee
movq %rsp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x7260
movq 0x30(%rsp), %rax
movups 0x8(%rsp), %xmm0
movups 0x18(%rsp), %xmm1
movups 0x28(%rsp), %xmm2
movaps %xmm0, 0x40(%rsp)
movaps %xmm1, 0x50(%rsp)
movaps %xmm2, 0x60(%rsp)
movq 0x38(%rsp), %rdx
movq %rdx, 0x70(%rsp)
imulq $-0x3b9aca00, (%rsp), %rcx # imm = 0xC4653600
movq %rdx, 0x30(%rbx)
movups %xmm2, 0x20(%rbx)
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
movabsq $0x48d159e26af37c05, %rdx # imm = 0x48D159E26AF37C05
imulq %rdx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0xa, %rdx
addq %rax, %rdx
imulq $0xe10, %rdx, %rax # imm = 0xE10
movq %rax, 0x48(%rbx)
addq %r14, %rcx
movabsq $0x20c49ba5e353f7cf, %rdx # imm = 0x20C49BA5E353F7CF
movq %rcx, %rax
imulq %rdx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x7, %rdx
addq %rax, %rdx
movq %rdx, 0x40(%rbx)
addq $0x78, %rsp
popq %rbx
popq %r14
retq
nop
|
_ZN5nglog14LogMessageTimeC2ENSt6chrono10time_pointINS1_3_V212system_clockENS1_8durationIlSt5ratioILl1ELl1000000000EEEEEE:
push r14; Alternative name is 'nglog::LogMessageTime::LogMessageTime(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>>)'
push rbx
sub rsp, 78h
mov r14, rsi
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi+10h], xmm0
movups xmmword ptr [rdi], xmm0
mov dword ptr [rdi+20h], 0
movups xmmword ptr [rdi+28h], xmm0
mov [rdi+38h], rsi
mov rcx, 112E0BE826D694B3h
mov rax, rsi
imul rcx
mov rax, rdx
shr rax, 3Fh
sar rdx, 1Ah
add rdx, rax
mov [rsp+88h+var_88], rdx
lea rax, _ZN3fLB18FLAGS_log_utc_timeE; fLB::FLAGS_log_utc_time
cmp byte ptr [rax], 1
jnz short loc_F4E1
mov rdi, rsp
lea rsi, [rsp+88h+var_80]
call _gmtime_r
jmp short loc_F4EE
loc_F4E1:
mov rdi, rsp
lea rsi, [rsp+88h+var_80]
call _localtime_r
loc_F4EE:
mov rax, [rsp+88h+var_58]
movups xmm0, [rsp+88h+var_80]
movups xmm1, [rsp+88h+var_70]
movups xmm2, xmmword ptr [rsp+28h]
movaps [rsp+88h+var_48], xmm0
movaps [rsp+88h+var_38], xmm1
movaps [rsp+88h+var_28], xmm2
mov rdx, [rsp+88h+var_50]
mov [rsp+88h+var_18], rdx
imul rcx, [rsp+88h+var_88], 0FFFFFFFFC4653600h
mov [rbx+30h], rdx
movups xmmword ptr [rbx+20h], xmm2
movups xmmword ptr [rbx+10h], xmm1
movups xmmword ptr [rbx], xmm0
mov rdx, 48D159E26AF37C05h
imul rdx
mov rax, rdx
shr rax, 3Fh
sar rdx, 0Ah
add rdx, rax
imul rax, rdx, 0E10h
mov [rbx+48h], rax
add rcx, r14
mov rdx, 20C49BA5E353F7CFh
mov rax, rcx
imul rdx
mov rax, rdx
shr rax, 3Fh
sar rdx, 7
add rdx, rax
mov [rbx+40h], rdx
add rsp, 78h
pop rbx
pop r14
retn
|
unsigned long long nglog::LogMessageTime::LogMessageTime(long long a1, long long a2)
{
long long v2; // rax
__int128 v3; // xmm0
__int128 v4; // xmm1
__int128 v5; // xmm2
long long v6; // rcx
long long v7; // rcx
unsigned long long result; // rax
long long v9; // [rsp+0h] [rbp-88h] BYREF
_OWORD v10[2]; // [rsp+8h] [rbp-80h] BYREF
__int128 v11; // [rsp+28h] [rbp-60h]
long long v12; // [rsp+38h] [rbp-50h]
*(_OWORD *)(a1 + 16) = 0LL;
*(_OWORD *)a1 = 0LL;
*(_DWORD *)(a1 + 32) = 0;
*(_OWORD *)(a1 + 40) = 0LL;
*(_QWORD *)(a1 + 56) = a2;
v9 = a2 / 1000000000;
if ( fLB::FLAGS_log_utc_time == 1 )
gmtime_r(&v9, v10);
else
localtime_r(&v9, v10);
v2 = *((_QWORD *)&v11 + 1);
v3 = v10[0];
v4 = v10[1];
v5 = v11;
v6 = -1000000000 * v9;
*(_QWORD *)(a1 + 48) = v12;
*(_OWORD *)(a1 + 32) = v5;
*(_OWORD *)(a1 + 16) = v4;
*(_OWORD *)a1 = v3;
*(_QWORD *)(a1 + 72) = 3600 * (v2 / 3600);
v7 = a2 + v6;
result = (unsigned long long)((unsigned __int128)(0x20C49BA5E353F7CFLL * (__int128)v7) >> 64) >> 63;
*(_QWORD *)(a1 + 64) = v7 / 1000;
return result;
}
|
LogMessageTime:
PUSH R14
PUSH RBX
SUB RSP,0x78
MOV R14,RSI
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x10],XMM0
MOVUPS xmmword ptr [RDI],XMM0
MOV dword ptr [RDI + 0x20],0x0
MOVUPS xmmword ptr [RDI + 0x28],XMM0
MOV qword ptr [RDI + 0x38],RSI
MOV RCX,0x112e0be826d694b3
MOV RAX,RSI
IMUL RCX
MOV RAX,RDX
SHR RAX,0x3f
SAR RDX,0x1a
ADD RDX,RAX
MOV qword ptr [RSP],RDX
LEA RAX,[0x131b89]
CMP byte ptr [RAX],0x1
JNZ 0x0010f4e1
MOV RDI,RSP
LEA RSI,[RSP + 0x8]
CALL 0x00107a70
JMP 0x0010f4ee
LAB_0010f4e1:
MOV RDI,RSP
LEA RSI,[RSP + 0x8]
CALL 0x00107260
LAB_0010f4ee:
MOV RAX,qword ptr [RSP + 0x30]
MOVUPS XMM0,xmmword ptr [RSP + 0x8]
MOVUPS XMM1,xmmword ptr [RSP + 0x18]
MOVUPS XMM2,xmmword ptr [RSP + 0x28]
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOVAPS xmmword ptr [RSP + 0x50],XMM1
MOVAPS xmmword ptr [RSP + 0x60],XMM2
MOV RDX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x70],RDX
IMUL RCX,qword ptr [RSP],-0x3b9aca00
MOV qword ptr [RBX + 0x30],RDX
MOVUPS xmmword ptr [RBX + 0x20],XMM2
MOVUPS xmmword ptr [RBX + 0x10],XMM1
MOVUPS xmmword ptr [RBX],XMM0
MOV RDX,0x48d159e26af37c05
IMUL RDX
MOV RAX,RDX
SHR RAX,0x3f
SAR RDX,0xa
ADD RDX,RAX
IMUL RAX,RDX,0xe10
MOV qword ptr [RBX + 0x48],RAX
ADD RCX,R14
MOV RDX,0x20c49ba5e353f7cf
MOV RAX,RCX
IMUL RDX
MOV RAX,RDX
SHR RAX,0x3f
SAR RDX,0x7
ADD RDX,RAX
MOV qword ptr [RBX + 0x40],RDX
ADD RSP,0x78
POP RBX
POP R14
RET
|
/* nglog::LogMessageTime::LogMessageTime(std::chrono::time_point<std::chrono::_V2::system_clock,
std::chrono::duration<long, std::ratio<1l, 1000000000l> > >) */
void __thiscall nglog::LogMessageTime::LogMessageTime(LogMessageTime *this,long param_2)
{
long local_88;
tm local_80 [2];
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int4 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(long *)(this + 0x38) = param_2;
local_88 = param_2 / 1000000000;
if (fLB::FLAGS_log_utc_time == '\x01') {
gmtime_r(&local_88,local_80);
}
else {
localtime_r(&local_88,local_80);
}
*(char **)(this + 0x30) = local_80[0].tm_zone;
*(int8 *)(this + 0x20) = local_80[0]._32_8_;
*(long *)(this + 0x28) = local_80[0].tm_gmtoff;
*(int8 *)(this + 0x10) = local_80[0]._16_8_;
*(int8 *)(this + 0x18) = local_80[0]._24_8_;
*(int8 *)this = local_80[0]._0_8_;
*(int8 *)(this + 8) = local_80[0]._8_8_;
*(long *)(this + 0x48) = (local_80[0].tm_gmtoff / 0xe10) * 0xe10;
*(long *)(this + 0x40) = (local_88 * -1000000000 + param_2) / 1000;
return;
}
|
|
57,428
|
testing::internal::BriefUnitTestResultPrinter::OnTestIterationEnd(testing::UnitTest const&, int)
|
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest.cc
|
void BriefUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test,
int /*iteration*/) {
ColoredPrintf(GTestColor::kGreen, "[==========] ");
printf("%s from %s ran.",
FormatTestCount(unit_test.test_to_run_count()).c_str(),
FormatTestSuiteCount(unit_test.test_suite_to_run_count()).c_str());
if (GTEST_FLAG_GET(print_time)) {
printf(" (%s ms total)",
internal::StreamableToString(unit_test.elapsed_time()).c_str());
}
printf("\n");
ColoredPrintf(GTestColor::kGreen, "[ PASSED ] ");
printf("%s.\n", FormatTestCount(unit_test.successful_test_count()).c_str());
const int skipped_test_count = unit_test.skipped_test_count();
if (skipped_test_count > 0) {
ColoredPrintf(GTestColor::kGreen, "[ SKIPPED ] ");
printf("%s.\n", FormatTestCount(skipped_test_count).c_str());
}
int num_disabled = unit_test.reportable_disabled_test_count();
if (num_disabled && !GTEST_FLAG_GET(also_run_disabled_tests)) {
if (unit_test.Passed()) {
printf("\n"); // Add a spacer if no FAILURE banner is displayed.
}
ColoredPrintf(GTestColor::kYellow, " YOU HAVE %d DISABLED %s\n\n",
num_disabled, num_disabled == 1 ? "TEST" : "TESTS");
}
// Ensure that Google Test output is printed before, e.g., heapchecker output.
fflush(stdout);
}
|
O3
|
cpp
|
testing::internal::BriefUnitTestResultPrinter::OnTestIterationEnd(testing::UnitTest const&, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
leaq 0x1fc29(%rip), %rsi # 0x432c7
xorl %ebp, %ebp
movl $0x2, %edi
xorl %eax, %eax
callq 0x22129
movq 0x40(%rbx), %rdi
callq 0x1c862
leaq 0x1ebf2(%rip), %rdx # 0x422ae
leaq 0x1eff7(%rip), %rcx # 0x426ba
leaq 0x8(%rsp), %rdi
movl %eax, %esi
callq 0x228b2
movq 0x40(%rbx), %rcx
movq 0xb8(%rcx), %rax
movq 0xc0(%rcx), %rcx
cmpq %rcx, %rax
je 0x236fa
xorl %ebp, %ebp
movq (%rax), %rdx
movzbl 0x70(%rdx), %edx
addl %edx, %ebp
addq $0x8, %rax
cmpq %rcx, %rax
jne 0x236e8
movq 0x8(%rsp), %r14
leaq 0x20be6(%rip), %rdx # 0x442ec
leaq 0x20bea(%rip), %rcx # 0x442f7
leaq 0x28(%rsp), %rdi
movl %ebp, %esi
callq 0x228b2
leaq 0x38(%rsp), %r15
movq -0x10(%r15), %rdx
leaq 0x1fcd5(%rip), %rdi # 0x433fe
movq %r14, %rsi
xorl %eax, %eax
callq 0x8080
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x23749
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x84e0
leaq 0x18(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x23764
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x84e0
cmpb $0x1, 0x35f86(%rip) # 0x596f1
jne 0x237b3
movq 0x40(%rbx), %rax
movq 0x2a0(%rax), %rax
leaq 0x28(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x3471e
movq (%r14), %rsi
leaq 0x1fc77(%rip), %rdi # 0x4340e
xorl %eax, %eax
callq 0x8080
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x237b3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x84e0
movl $0xa, %edi
callq 0x8790
leaq 0x1fc59(%rip), %rsi # 0x4341d
movl $0x2, %edi
xorl %eax, %eax
callq 0x22129
movq 0x40(%rbx), %rdi
callq 0x1c45c
leaq 0x1eace(%rip), %rdx # 0x422ae
leaq 0x1eed3(%rip), %rcx # 0x426ba
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl %eax, %esi
callq 0x228b2
movq (%r14), %rsi
leaq 0x1fa8d(%rip), %rdi # 0x4328d
xorl %eax, %eax
callq 0x8080
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x2381c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x84e0
movq 0x40(%rbx), %rdi
callq 0x1c4e2
testl %eax, %eax
jle 0x23881
movl %eax, %ebp
leaq 0x1fb0c(%rip), %rsi # 0x4333e
movl $0x2, %edi
xorl %eax, %eax
callq 0x22129
leaq 0x1ea69(%rip), %rdx # 0x422ae
leaq 0x1ee6e(%rip), %rcx # 0x426ba
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl %ebp, %esi
callq 0x228b2
movq (%r14), %rsi
leaq 0x1fa28(%rip), %rdi # 0x4328d
xorl %eax, %eax
callq 0x8080
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x23881
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x84e0
movq 0x40(%rbx), %r14
movq %r14, %rdi
callq 0x1c622
testl %eax, %eax
je 0x238dc
cmpb $0x0, 0x35deb(%rip) # 0x59683
jne 0x238dc
movl %eax, %ebx
movq %r14, %rdi
callq 0x34788
testb %al, %al
je 0x238b2
movl $0xa, %edi
callq 0x8790
cmpl $0x1, %ebx
leaq 0x1faec(%rip), %rax # 0x433a8
leaq 0x1faea(%rip), %rcx # 0x433ad
cmoveq %rax, %rcx
leaq 0x1fb5d(%rip), %rsi # 0x4342b
movl $0x3, %edi
movl %ebx, %edx
xorl %eax, %eax
callq 0x22129
movq 0x3569d(%rip), %rax # 0x58f80
movq (%rax), %rdi
callq 0x8600
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x23914
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x84e0
movq %rbx, %rdi
callq 0x8990
|
_ZN7testing8internal26BriefUnitTestResultPrinter18OnTestIterationEndERKNS_8UnitTestEi:
push rbp
push r15
push r14
push rbx
sub rsp, 48h
mov rbx, rsi
lea rsi, asc_432C7; "[==========] "
xor ebp, ebp
mov edi, 2
xor eax, eax
call _ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz; testing::internal::ColoredPrintf(testing::internal::`anonymous namespace'::GTestColor,char const*,...)
mov rdi, [rbx+40h]; this
call _ZNK7testing8internal12UnitTestImpl17test_to_run_countEv; testing::internal::UnitTestImpl::test_to_run_count(void)
lea rdx, aDeathtestPasse+36h; int
lea rcx, aAlsoRunDisable+12h; int
lea rdi, [rsp+68h+var_60]; int
mov esi, eax; int
call _ZN7testingL19FormatCountableNounB5cxx11EiPKcS1_; testing::FormatCountableNoun(int,char const*,char const*)
mov rcx, [rbx+40h]
mov rax, [rcx+0B8h]
mov rcx, [rcx+0C0h]
cmp rax, rcx
jz short loc_236FA
xor ebp, ebp
loc_236E8:
mov rdx, [rax]
movzx edx, byte ptr [rdx+70h]
add ebp, edx
add rax, 8
cmp rax, rcx
jnz short loc_236E8
loc_236FA:
mov r14, qword ptr [rsp+68h+var_60]
lea rdx, aTestSuite; "test suite"
lea rcx, aTestSuites; "test suites"
lea rdi, [rsp+68h+var_40]; int
mov esi, ebp; int
call _ZN7testingL19FormatCountableNounB5cxx11EiPKcS1_; testing::FormatCountableNoun(int,char const*,char const*)
lea r15, [rsp+68h+var_30]
mov rdx, [r15-10h]
lea rdi, aSFromSRan; "%s from %s ran."
mov rsi, r14
xor eax, eax
call _printf
mov rdi, [r15-10h]; void *
cmp rdi, r15
jz short loc_23749
mov rsi, [rsp+68h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_23749:
lea r15, [rsp+68h+var_50]
mov rdi, [r15-10h]; void *
cmp rdi, r15
jz short loc_23764
mov rsi, [rsp+68h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_23764:
cmp cs:_ZN7testing22FLAGS_gtest_print_timeE, 1; testing::FLAGS_gtest_print_time
jnz short loc_237B3
mov rax, [rbx+40h]
mov rax, [rax+2A0h]
lea rsi, [rsp+68h+var_40]
mov [rsi], rax
lea r14, [rsp+68h+var_60]
mov rdi, r14
call _ZN7testing8internal18StreamableToStringIlEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::internal::StreamableToString<long>(long const&)
mov rsi, [r14]
lea rdi, aSMsTotal; " (%s ms total)"
xor eax, eax
call _printf
mov rdi, [r14]; void *
cmp rdi, r15
jz short loc_237B3
mov rsi, [rsp+68h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_237B3:
mov edi, 0Ah
call _putchar
lea rsi, aPassed; "[ PASSED ] "
mov edi, 2
xor eax, eax
call _ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz; testing::internal::ColoredPrintf(testing::internal::`anonymous namespace'::GTestColor,char const*,...)
mov rdi, [rbx+40h]; this
call _ZNK7testing8internal12UnitTestImpl21successful_test_countEv; testing::internal::UnitTestImpl::successful_test_count(void)
lea rdx, aDeathtestPasse+36h; int
lea rcx, aAlsoRunDisable+12h; int
lea r14, [rsp+68h+var_60]
mov rdi, r14; int
mov esi, eax; int
call _ZN7testingL19FormatCountableNounB5cxx11EiPKcS1_; testing::FormatCountableNoun(int,char const*,char const*)
mov rsi, [r14]
lea rdi, aNoteThisIsTest+1Fh; "%s.\n"
xor eax, eax
call _printf
mov rdi, [r14]; void *
cmp rdi, r15
jz short loc_2381C
mov rsi, [rsp+68h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2381C:
mov rdi, [rbx+40h]; this
call _ZNK7testing8internal12UnitTestImpl18skipped_test_countEv; testing::internal::UnitTestImpl::skipped_test_count(void)
test eax, eax
jle short loc_23881
mov ebp, eax
lea rsi, aSkipped_0; "[ SKIPPED ] "
mov edi, 2
xor eax, eax
call _ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz; testing::internal::ColoredPrintf(testing::internal::`anonymous namespace'::GTestColor,char const*,...)
lea rdx, aDeathtestPasse+36h; int
lea rcx, aAlsoRunDisable+12h; int
lea r14, [rsp+68h+var_60]
mov rdi, r14; int
mov esi, ebp; int
call _ZN7testingL19FormatCountableNounB5cxx11EiPKcS1_; testing::FormatCountableNoun(int,char const*,char const*)
mov rsi, [r14]
lea rdi, aNoteThisIsTest+1Fh; "%s.\n"
xor eax, eax
call _printf
mov rdi, [r14]; void *
cmp rdi, r15
jz short loc_23881
mov rsi, [rsp+68h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_23881:
mov r14, [rbx+40h]
mov rdi, r14; this
call _ZNK7testing8internal12UnitTestImpl30reportable_disabled_test_countEv; testing::internal::UnitTestImpl::reportable_disabled_test_count(void)
test eax, eax
jz short loc_238DC
cmp cs:_ZN7testing35FLAGS_gtest_also_run_disabled_testsE, 0; testing::FLAGS_gtest_also_run_disabled_tests
jnz short loc_238DC
mov ebx, eax
mov rdi, r14; this
call _ZNK7testing8internal12UnitTestImpl6PassedEv; testing::internal::UnitTestImpl::Passed(void)
test al, al
jz short loc_238B2
mov edi, 0Ah
call _putchar
loc_238B2:
cmp ebx, 1
lea rax, aTest_0; "TEST"
lea rcx, aTests; "TESTS"
cmovz rcx, rax
lea rsi, aYouHaveDDisabl; " YOU HAVE %d DISABLED %s\n\n"
mov edi, 3
mov edx, ebx
xor eax, eax
call _ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz; testing::internal::ColoredPrintf(testing::internal::`anonymous namespace'::GTestColor,char const*,...)
loc_238DC:
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_23914
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_23914:
mov rdi, rbx
call __Unwind_Resume
|
long long testing::internal::BriefUnitTestResultPrinter::OnTestIterationEnd(
testing::internal::BriefUnitTestResultPrinter *this,
testing::internal::UnitTestImpl **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)
{
int v14; // ebp
int v15; // eax
testing::internal::UnitTestImpl *v16; // rcx
long long v17; // rax
long long v18; // rcx
const char *v19; // r14
long long v20; // rdx
long long v21; // rcx
long long v22; // r8
long long v23; // r9
__m128 v24; // xmm4
__m128 v25; // xmm5
int v26; // eax
int v27; // eax
long long v28; // rdx
long long v29; // rcx
long long v30; // r8
long long v31; // r9
__m128 v32; // xmm4
__m128 v33; // xmm5
int v34; // ebp
testing::internal::UnitTestImpl *v35; // r14
unsigned int v36; // eax
unsigned int v37; // ebx
long long v38; // r8
long long v39; // r9
__m128 v40; // xmm4
__m128 v41; // xmm5
const char *v42; // rcx
char v44; // [rsp+0h] [rbp-68h]
char v45; // [rsp+0h] [rbp-68h]
char v46; // [rsp+0h] [rbp-68h]
int v47[2]; // [rsp+8h] [rbp-60h] BYREF
_QWORD v48[2]; // [rsp+18h] [rbp-50h] BYREF
char *v49; // [rsp+28h] [rbp-40h] BYREF
long long v50; // [rsp+38h] [rbp-30h] BYREF
v14 = 0;
testing::internal::ColoredPrintf(
2,
(long long)"[==========] ",
a3,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
v44);
v15 = testing::internal::UnitTestImpl::test_to_run_count(a2[8]);
testing::FormatCountableNoun[abi:cxx11]((long long)v47, v15, "test", "tests");
v16 = a2[8];
v17 = *((_QWORD *)v16 + 23);
v18 = *((_QWORD *)v16 + 24);
if ( v17 != v18 )
{
v14 = 0;
do
{
v14 += *(unsigned __int8 *)(*(_QWORD *)v17 + 112LL);
v17 += 8LL;
}
while ( v17 != v18 );
}
v19 = *(const char **)v47;
testing::FormatCountableNoun[abi:cxx11]((long long)&v49, v14, "test suite", "test suites");
printf("%s from %s ran.", v19, v49);
if ( v49 != (char *)&v50 )
operator delete(v49, v50 + 1);
if ( *(_QWORD **)v47 != v48 )
operator delete(*(void **)v47, v48[0] + 1LL);
if ( testing::FLAGS_gtest_print_time == 1 )
{
v49 = (char *)*((_QWORD *)a2[8] + 84);
testing::internal::StreamableToString<long>(v47);
printf(" (%s ms total)", *(const char **)v47);
if ( *(_QWORD **)v47 != v48 )
operator delete(*(void **)v47, v48[0] + 1LL);
}
putchar(10LL);
testing::internal::ColoredPrintf(
2,
(long long)"[ PASSED ] ",
v20,
v21,
v22,
v23,
a7,
a8,
a9,
a10,
v24,
v25,
a13,
a14,
v45);
v26 = testing::internal::UnitTestImpl::successful_test_count(a2[8]);
testing::FormatCountableNoun[abi:cxx11]((long long)v47, v26, "test", "tests");
printf("%s.\n", *(const char **)v47);
if ( *(_QWORD **)v47 != v48 )
operator delete(*(void **)v47, v48[0] + 1LL);
v27 = testing::internal::UnitTestImpl::skipped_test_count(a2[8]);
if ( v27 > 0 )
{
v34 = v27;
testing::internal::ColoredPrintf(
2,
(long long)"[ SKIPPED ] ",
v28,
v29,
v30,
v31,
a7,
a8,
a9,
a10,
v32,
v33,
a13,
a14,
v46);
testing::FormatCountableNoun[abi:cxx11]((long long)v47, v34, "test", "tests");
printf("%s.\n", *(const char **)v47);
if ( *(_QWORD **)v47 != v48 )
operator delete(*(void **)v47, v48[0] + 1LL);
}
v35 = a2[8];
v36 = testing::internal::UnitTestImpl::reportable_disabled_test_count(v35);
if ( v36 && !testing::FLAGS_gtest_also_run_disabled_tests )
{
v37 = v36;
if ( (unsigned __int8)testing::internal::UnitTestImpl::Passed(v35) )
putchar(10LL);
v42 = "TESTS";
if ( v37 == 1 )
v42 = "TEST";
testing::internal::ColoredPrintf(
3,
(long long)" YOU HAVE %d DISABLED %s\n\n",
v37,
(long long)v42,
v38,
v39,
a7,
a8,
a9,
a10,
v40,
v41,
a13,
a14,
v46);
}
return fflush(stdout);
}
|
OnTestIterationEnd:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV RBX,RSI
LEA RSI,[0x1432c7]
XOR EBP,EBP
MOV EDI,0x2
XOR EAX,EAX
CALL 0x00122129
MOV RDI,qword ptr [RBX + 0x40]
CALL 0x0011c862
LEA RDX,[0x1422ae]
LEA RCX,[0x1426ba]
LEA RDI,[RSP + 0x8]
MOV ESI,EAX
CALL 0x001228b2
MOV RCX,qword ptr [RBX + 0x40]
MOV RAX,qword ptr [RCX + 0xb8]
MOV RCX,qword ptr [RCX + 0xc0]
CMP RAX,RCX
JZ 0x001236fa
XOR EBP,EBP
LAB_001236e8:
MOV RDX,qword ptr [RAX]
MOVZX EDX,byte ptr [RDX + 0x70]
ADD EBP,EDX
ADD RAX,0x8
CMP RAX,RCX
JNZ 0x001236e8
LAB_001236fa:
MOV R14,qword ptr [RSP + 0x8]
LAB_001236ff:
LEA RDX,[0x1442ec]
LEA RCX,[0x1442f7]
LEA RDI,[RSP + 0x28]
MOV ESI,EBP
CALL 0x001228b2
LAB_00123719:
LEA R15,[RSP + 0x38]
MOV RDX,qword ptr [R15 + -0x10]
LEA RDI,[0x1433fe]
MOV RSI,R14
XOR EAX,EAX
CALL 0x00108080
MOV RDI,qword ptr [R15 + -0x10]
CMP RDI,R15
JZ 0x00123749
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x001084e0
LAB_00123749:
LEA R15,[RSP + 0x18]
MOV RDI,qword ptr [R15 + -0x10]
CMP RDI,R15
JZ 0x00123764
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001084e0
LAB_00123764:
CMP byte ptr [0x001596f1],0x1
JNZ 0x001237b3
MOV RAX,qword ptr [RBX + 0x40]
MOV RAX,qword ptr [RAX + 0x2a0]
LEA RSI,[RSP + 0x28]
MOV qword ptr [RSI],RAX
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x0013471e
MOV RSI,qword ptr [R14]
LEA RDI,[0x14340e]
XOR EAX,EAX
CALL 0x00108080
MOV RDI,qword ptr [R14]
CMP RDI,R15
JZ 0x001237b3
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001084e0
LAB_001237b3:
MOV EDI,0xa
CALL 0x00108790
LEA RSI,[0x14341d]
MOV EDI,0x2
XOR EAX,EAX
CALL 0x00122129
MOV RDI,qword ptr [RBX + 0x40]
CALL 0x0011c45c
LEA RDX,[0x1422ae]
LEA RCX,[0x1426ba]
LEA R14,[RSP + 0x8]
MOV RDI,R14
MOV ESI,EAX
CALL 0x001228b2
MOV RSI,qword ptr [R14]
LEA RDI,[0x14328d]
XOR EAX,EAX
CALL 0x00108080
MOV RDI,qword ptr [R14]
CMP RDI,R15
JZ 0x0012381c
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001084e0
LAB_0012381c:
MOV RDI,qword ptr [RBX + 0x40]
CALL 0x0011c4e2
TEST EAX,EAX
JLE 0x00123881
MOV EBP,EAX
LEA RSI,[0x14333e]
MOV EDI,0x2
XOR EAX,EAX
CALL 0x00122129
LEA RDX,[0x1422ae]
LEA RCX,[0x1426ba]
LEA R14,[RSP + 0x8]
MOV RDI,R14
MOV ESI,EBP
CALL 0x001228b2
MOV RSI,qword ptr [R14]
LEA RDI,[0x14328d]
XOR EAX,EAX
CALL 0x00108080
MOV RDI,qword ptr [R14]
CMP RDI,R15
JZ 0x00123881
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001084e0
LAB_00123881:
MOV R14,qword ptr [RBX + 0x40]
MOV RDI,R14
CALL 0x0011c622
TEST EAX,EAX
JZ 0x001238dc
CMP byte ptr [0x00159683],0x0
JNZ 0x001238dc
MOV EBX,EAX
MOV RDI,R14
CALL 0x00134788
TEST AL,AL
JZ 0x001238b2
MOV EDI,0xa
CALL 0x00108790
LAB_001238b2:
CMP EBX,0x1
LEA RAX,[0x1433a8]
LEA RCX,[0x1433ad]
CMOVZ RCX,RAX
LEA RSI,[0x14342b]
MOV EDI,0x3
MOV EDX,EBX
XOR EAX,EAX
CALL 0x00122129
LAB_001238dc:
MOV RAX,qword ptr [0x00158f80]
MOV RDI,qword ptr [RAX]
CALL 0x00108600
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* testing::internal::BriefUnitTestResultPrinter::OnTestIterationEnd(testing::UnitTest const&, int)
*/
void testing::internal::BriefUnitTestResultPrinter::OnTestIterationEnd
(UnitTest *param_1,int param_2)
{
long *plVar1;
UnitTestImpl *this;
long *plVar2;
char cVar3;
uint uVar4;
int iVar5;
long *plVar6;
char *pcVar7;
uint uVar8;
int4 in_register_00000034;
long lVar9;
long *local_60 [2];
long local_50 [2];
long *local_40 [2];
long local_30 [2];
lVar9 = CONCAT44(in_register_00000034,param_2);
uVar8 = 0;
ColoredPrintf(2,"[==========] ");
uVar4 = UnitTestImpl::test_to_run_count(*(UnitTestImpl **)(lVar9 + 0x40));
FormatCountableNoun_abi_cxx11_((int)local_60,(char *)(ulong)uVar4,"test");
plVar2 = local_60[0];
plVar6 = *(long **)(*(long *)(lVar9 + 0x40) + 0xb8);
plVar1 = *(long **)(*(long *)(lVar9 + 0x40) + 0xc0);
if (plVar6 != plVar1) {
uVar8 = 0;
do {
uVar8 = uVar8 + *(byte *)(*plVar6 + 0x70);
plVar6 = plVar6 + 1;
} while (plVar6 != plVar1);
}
/* try { // try from 001236ff to 00123718 has its CatchHandler @ 001238f6 */
FormatCountableNoun_abi_cxx11_((int)local_40,(char *)(ulong)uVar8,"test suite");
printf("%s from %s ran.",plVar2,local_40[0]);
if (local_40[0] != local_30) {
operator_delete(local_40[0],local_30[0] + 1);
}
if (local_60[0] != local_50) {
operator_delete(local_60[0],local_50[0] + 1);
}
if (FLAGS_gtest_print_time == '\x01') {
local_40[0] = *(long **)(*(long *)(lVar9 + 0x40) + 0x2a0);
StreamableToString<long>((long *)local_60);
printf(" (%s ms total)",local_60[0]);
if (local_60[0] != local_50) {
operator_delete(local_60[0],local_50[0] + 1);
}
}
putchar(10);
ColoredPrintf(2,"[ PASSED ] ");
uVar4 = UnitTestImpl::successful_test_count(*(UnitTestImpl **)(lVar9 + 0x40));
FormatCountableNoun_abi_cxx11_((int)local_60,(char *)(ulong)uVar4,"test");
printf("%s.\n",local_60[0]);
if (local_60[0] != local_50) {
operator_delete(local_60[0],local_50[0] + 1);
}
uVar4 = UnitTestImpl::skipped_test_count(*(UnitTestImpl **)(lVar9 + 0x40));
if (0 < (int)uVar4) {
ColoredPrintf(2,"[ SKIPPED ] ");
FormatCountableNoun_abi_cxx11_((int)local_60,(char *)(ulong)uVar4,"test");
printf("%s.\n",local_60[0]);
if (local_60[0] != local_50) {
operator_delete(local_60[0],local_50[0] + 1);
}
}
this = *(UnitTestImpl **)(lVar9 + 0x40);
iVar5 = UnitTestImpl::reportable_disabled_test_count(this);
if ((iVar5 != 0) && (FLAGS_gtest_also_run_disabled_tests == '\0')) {
cVar3 = UnitTestImpl::Passed(this);
if (cVar3 != '\0') {
putchar(10);
}
pcVar7 = "TESTS";
if (iVar5 == 1) {
pcVar7 = "TEST";
}
ColoredPrintf(3," YOU HAVE %d DISABLED %s\n\n",iVar5,pcVar7);
}
fflush(*(FILE **)PTR_stdout_00158f80);
return;
}
|
|
57,429
|
LefDefParser::lefiNoiseEdge::clear()
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiCrossTalk.cpp
|
void
lefiNoiseEdge::clear()
{
int i;
lefiNoiseResistance *r;
int maxr = numResistances_;
for (i = 0; i < maxr; i++) {
r = resistances_[i];
r->Destroy();
lefFree((char*) r);
}
edge_ = 0;
numResistances_ = 0;
}
|
O0
|
cpp
|
LefDefParser::lefiNoiseEdge::clear():
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
movl 0x8(%rax), %eax
movl %eax, 0xc(%rsp)
movl $0x0, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
cmpl 0xc(%rsp), %eax
jge 0x8e3c2
movq (%rsp), %rax
movq 0x10(%rax), %rax
movslq 0x1c(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdi
callq 0x8dfe0
movq 0x10(%rsp), %rdi
callq 0x52810
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x8e381
movq (%rsp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movl $0x0, 0x8(%rax)
addq $0x28, %rsp
retq
nopl (%rax)
|
_ZN12LefDefParser13lefiNoiseEdge5clearEv:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov rax, [rsp+28h+var_8]
mov [rsp+28h+var_28], rax
mov eax, [rax+8]
mov [rsp+28h+var_1C], eax
mov [rsp+28h+var_C], 0
loc_8E381:
mov eax, [rsp+28h+var_C]
cmp eax, [rsp+28h+var_1C]
jge short loc_8E3C2
mov rax, [rsp+28h+var_28]
mov rax, [rax+10h]
movsxd rcx, [rsp+28h+var_C]
mov rax, [rax+rcx*8]
mov [rsp+28h+var_18], rax
mov rdi, [rsp+28h+var_18]; this
call _ZN12LefDefParser19lefiNoiseResistance7DestroyEv; LefDefParser::lefiNoiseResistance::Destroy(void)
mov rdi, [rsp+28h+var_18]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov eax, [rsp+28h+var_C]
add eax, 1
mov [rsp+28h+var_C], eax
jmp short loc_8E381
loc_8E3C2:
mov rax, [rsp+28h+var_28]
xorps xmm0, xmm0
movsd qword ptr [rax], xmm0
mov dword ptr [rax+8], 0
add rsp, 28h
retn
|
LefDefParser::lefiNoiseEdge * LefDefParser::lefiNoiseEdge::clear(LefDefParser::lefiNoiseEdge *this, void *a2)
{
LefDefParser::lefiNoiseEdge *result; // rax
int v3; // [rsp+Ch] [rbp-1Ch]
LefDefParser **v4; // [rsp+10h] [rbp-18h]
int i; // [rsp+1Ch] [rbp-Ch]
v3 = *((_DWORD *)this + 2);
for ( i = 0; i < v3; ++i )
{
v4 = *(LefDefParser ***)(*((_QWORD *)this + 2) + 8LL * i);
LefDefParser::lefiNoiseResistance::Destroy(v4, a2);
LefDefParser::lefFree((LefDefParser *)v4, a2);
}
result = this;
*(_QWORD *)this = 0LL;
*((_DWORD *)this + 2) = 0;
return result;
}
|
clear:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP],RAX
MOV EAX,dword ptr [RAX + 0x8]
MOV dword ptr [RSP + 0xc],EAX
MOV dword ptr [RSP + 0x1c],0x0
LAB_0018e381:
MOV EAX,dword ptr [RSP + 0x1c]
CMP EAX,dword ptr [RSP + 0xc]
JGE 0x0018e3c2
MOV RAX,qword ptr [RSP]
MOV RAX,qword ptr [RAX + 0x10]
MOVSXD RCX,dword ptr [RSP + 0x1c]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x0018dfe0
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x00152810
MOV EAX,dword ptr [RSP + 0x1c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x1c],EAX
JMP 0x0018e381
LAB_0018e3c2:
MOV RAX,qword ptr [RSP]
XORPS XMM0,XMM0
MOVSD qword ptr [RAX],XMM0
MOV dword ptr [RAX + 0x8],0x0
ADD RSP,0x28
RET
|
/* LefDefParser::lefiNoiseEdge::clear() */
void __thiscall LefDefParser::lefiNoiseEdge::clear(lefiNoiseEdge *this)
{
int iVar1;
lefiNoiseResistance *this_00;
int local_c;
iVar1 = *(int *)(this + 8);
for (local_c = 0; local_c < iVar1; local_c = local_c + 1) {
this_00 = *(lefiNoiseResistance **)(*(long *)(this + 0x10) + (long)local_c * 8);
lefiNoiseResistance::Destroy(this_00);
lefFree(this_00);
}
*(int8 *)this = 0;
*(int4 *)(this + 8) = 0;
return;
}
|
|
57,430
|
testing::TestResult::RecordProperty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::TestProperty const&)
|
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest.cc
|
void TestResult::RecordProperty(const std::string& xml_element,
const TestProperty& test_property) {
if (!ValidateTestProperty(xml_element, test_property)) {
return;
}
internal::MutexLock lock(&test_properties_mutex_);
const std::vector<TestProperty>::iterator property_with_matching_key =
std::find_if(test_properties_.begin(), test_properties_.end(),
internal::TestPropertyKeyIs(test_property.key()));
if (property_with_matching_key == test_properties_.end()) {
test_properties_.push_back(test_property);
return;
}
property_with_matching_key->SetValue(test_property.value());
}
|
O3
|
cpp
|
testing::TestResult::RecordProperty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::TestProperty const&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rdx, %r14
movq %rdi, %rbx
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x1fa2e
testb %al, %al
je 0x1f9b3
movq %rbx, %rdi
callq 0x36cf4
movq 0x50(%rbx), %r15
movq 0x58(%rbx), %r12
movq (%r14), %rsi
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x81e0
leaq 0x40(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %rdi
callq 0x391b4
leaq 0x30(%rsp), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x33be3
movq %rax, %r15
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x1f940
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x84e0
leaq 0x20(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0x1f95c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x84e0
cmpq 0x58(%rbx), %r15
je 0x1f99f
movq 0x20(%r14), %rsi
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x81e0
addq $0x20, %r15
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x8290
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f9ab
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x84e0
jmp 0x1f9ab
leaq 0x50(%rbx), %rdi
movq %r14, %rsi
callq 0x33d48
movq %rbx, %rdi
callq 0x36d92
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x1fa12
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
jne 0x1fa03
jmp 0x1fa15
jmp 0x1fa12
jmp 0x1fa25
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x1f9f5
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x84e0
jmp 0x1f9f5
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fa15
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x84e0
jmp 0x1fa15
movq %rax, %r14
movq %rbx, %rdi
callq 0x36d92
movq %r14, %rdi
callq 0x8990
movq %rax, %rdi
callq 0x321df
nop
|
_ZN7testing10TestResult14RecordPropertyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_12TestPropertyE:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 50h
mov r14, rdx
mov rbx, rdi
mov rdi, rsi
mov rsi, rdx
call _ZN7testing10TestResult20ValidateTestPropertyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_12TestPropertyE; testing::TestResult::ValidateTestProperty(std::string const&,testing::TestProperty const&)
test al, al
jz loc_1F9B3
mov rdi, rbx; this
call _ZN7testing8internal9MutexBase4LockEv; testing::internal::MutexBase::Lock(void)
mov r15, [rbx+50h]
mov r12, [rbx+58h]
mov rsi, [r14]
lea rdi, [rsp+78h+var_68]
lea rdx, [rsp+78h+var_69]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcRKS3_; std::string::basic_string(char const*,std::allocator<char> const&)
lea r13, [rsp+78h+var_38]
mov [r13-10h], r13
mov rsi, [rsp+78h+var_68]
mov rdx, [rsp+78h+var_60]
add rdx, rsi
lea rdi, [rsp+78h+var_48]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rdx, [rsp+78h+var_48]; int
mov rdi, r15; int
mov rsi, r12; int
call _ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN7testing12TestPropertyESt6vectorIS3_SaIS3_EEEENS2_8internal17TestPropertyKeyIsEET_SB_SB_T0_; std::find_if<__gnu_cxx::__normal_iterator<testing::TestProperty *,std::vector<testing::TestProperty>>,testing::internal::TestPropertyKeyIs>(__gnu_cxx::__normal_iterator<testing::TestProperty *,std::vector<testing::TestProperty>>,__gnu_cxx::__normal_iterator<testing::TestProperty *,std::vector<testing::TestProperty>>,testing::internal::TestPropertyKeyIs)
mov r15, rax
mov rdi, [rsp+78h+var_48]; void *
cmp rdi, r13
jz short loc_1F940
mov rsi, [rsp+78h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1F940:
lea r12, [rsp+78h+var_58]
mov rdi, [r12-10h]; void *
cmp rdi, r12
jz short loc_1F95C
mov rsi, [rsp+78h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1F95C:
cmp r15, [rbx+58h]
jz short loc_1F99F
mov rsi, [r14+20h]
lea rdi, [rsp+78h+var_68]
lea rdx, [rsp+78h+var_69]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcRKS3_; std::string::basic_string(char const*,std::allocator<char> const&)
add r15, 20h ; ' '
lea rsi, [rsp+78h+var_68]
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
mov rdi, [rsp+78h+var_68]; void *
cmp rdi, r12
jz short loc_1F9AB
mov rsi, [rsp+78h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_1F9AB
loc_1F99F:
lea rdi, [rbx+50h]
mov rsi, r14
call _ZNSt6vectorIN7testing12TestPropertyESaIS1_EE9push_backERKS1_; std::vector<testing::TestProperty>::push_back(testing::TestProperty const&)
loc_1F9AB:
mov rdi, rbx; this
call _ZN7testing8internal9MutexBase6UnlockEv; testing::internal::MutexBase::Unlock(void)
loc_1F9B3:
add rsp, 50h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
jmp short loc_1FA12
mov r14, rax
mov rdi, [rsp+78h+var_68]
cmp rdi, r12
jnz short loc_1FA03
jmp short loc_1FA15
jmp short loc_1FA12
jmp short loc_1FA25
mov r14, rax
mov rdi, [rsp+78h+var_48]; void *
cmp rdi, r13
jz short loc_1F9F5
mov rsi, [rsp+78h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_1F9F5
mov r14, rax
loc_1F9F5:
lea rax, [rsp+78h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1FA15
loc_1FA03:
mov rsi, [rsp+78h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_1FA15
loc_1FA12:
mov r14, rax
loc_1FA15:
mov rdi, rbx; this
call _ZN7testing8internal9MutexBase6UnlockEv; testing::internal::MutexBase::Unlock(void)
mov rdi, r14
call __Unwind_Resume
loc_1FA25:
mov rdi, rax
call __clang_call_terminate
|
RecordProperty:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x50
MOV R14,RDX
MOV RBX,RDI
MOV RDI,RSI
MOV RSI,RDX
CALL 0x0011fa2e
TEST AL,AL
JZ 0x0011f9b3
MOV RDI,RBX
CALL 0x00136cf4
MOV R15,qword ptr [RBX + 0x50]
MOV R12,qword ptr [RBX + 0x58]
MOV RSI,qword ptr [R14]
LAB_0011f8e7:
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0xf]
CALL 0x001081e0
LEA R13,[RSP + 0x40]
MOV qword ptr [R13 + -0x10],R13
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x18]
ADD RDX,RSI
LAB_0011f90c:
LEA RDI,[RSP + 0x30]
CALL 0x001391b4
LAB_0011f916:
LEA RDX,[RSP + 0x30]
MOV RDI,R15
MOV RSI,R12
CALL 0x00133be3
MOV R15,RAX
MOV RDI,qword ptr [RSP + 0x30]
CMP RDI,R13
JZ 0x0011f940
MOV RSI,qword ptr [RSP + 0x40]
INC RSI
CALL 0x001084e0
LAB_0011f940:
LEA R12,[RSP + 0x20]
MOV RDI,qword ptr [R12 + -0x10]
CMP RDI,R12
JZ 0x0011f95c
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x001084e0
LAB_0011f95c:
CMP R15,qword ptr [RBX + 0x58]
JZ 0x0011f99f
MOV RSI,qword ptr [R14 + 0x20]
LAB_0011f966:
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0xf]
CALL 0x001081e0
ADD R15,0x20
LAB_0011f979:
LEA RSI,[RSP + 0x10]
MOV RDI,R15
CALL 0x00108290
MOV RDI,qword ptr [RSP + 0x10]
CMP RDI,R12
JZ 0x0011f9ab
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x001084e0
JMP 0x0011f9ab
LAB_0011f99f:
LEA RDI,[RBX + 0x50]
MOV RSI,R14
CALL 0x00133d48
LAB_0011f9ab:
MOV RDI,RBX
CALL 0x00136d92
LAB_0011f9b3:
ADD RSP,0x50
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* testing::TestResult::RecordProperty(std::__cxx11::string const&, testing::TestProperty const&) */
void __thiscall
testing::TestResult::RecordProperty(TestResult *this,string *param_1,TestProperty *param_2)
{
int8 uVar1;
int8 uVar2;
long lVar3;
char cVar4;
allocator local_69;
long *local_68;
long local_60;
long local_58 [2];
long *local_48 [2];
long local_38 [2];
cVar4 = ValidateTestProperty(param_1,param_2);
if (cVar4 != '\0') {
internal::MutexBase::Lock((MutexBase *)this);
uVar1 = *(int8 *)(this + 0x50);
uVar2 = *(int8 *)(this + 0x58);
/* try { // try from 0011f8e7 to 0011f8f5 has its CatchHandler @ 0011fa12 */
std::__cxx11::string::string((string *)&local_68,*(char **)param_2,&local_69);
/* try { // try from 0011f90c to 0011f915 has its CatchHandler @ 0011f9f2 */
local_48[0] = local_38;
std::__cxx11::string::_M_construct<char*>(local_48,local_68,local_60 + (long)local_68);
/* try { // try from 0011f916 to 0011f925 has its CatchHandler @ 0011f9d6 */
lVar3 = std::
find_if<__gnu_cxx::__normal_iterator<testing::TestProperty*,std::vector<testing::TestProperty,std::allocator<testing::TestProperty>>>,testing::internal::TestPropertyKeyIs>
(uVar1,uVar2,local_48);
if (local_48[0] != local_38) {
operator_delete(local_48[0],local_38[0] + 1);
}
if (local_68 != local_58) {
operator_delete(local_68,local_58[0] + 1);
}
if (lVar3 == *(long *)(this + 0x58)) {
/* try { // try from 0011f99f to 0011f9aa has its CatchHandler @ 0011f9c1 */
std::vector<testing::TestProperty,std::allocator<testing::TestProperty>>::push_back
((vector<testing::TestProperty,std::allocator<testing::TestProperty>> *)
(this + 0x50),param_2);
}
else {
/* try { // try from 0011f966 to 0011f974 has its CatchHandler @ 0011f9d2 */
std::__cxx11::string::string((string *)&local_68,*(char **)(param_2 + 0x20),&local_69);
/* try { // try from 0011f979 to 0011f985 has its CatchHandler @ 0011f9c3 */
std::__cxx11::string::_M_assign((string *)(lVar3 + 0x20));
if (local_68 != local_58) {
operator_delete(local_68,local_58[0] + 1);
}
}
/* try { // try from 0011f9ab to 0011f9b2 has its CatchHandler @ 0011f9d4 */
internal::MutexBase::Unlock((MutexBase *)this);
}
return;
}
|
||
57,431
|
string_get_sortable_timestamp[abi:cxx11]()
|
monkey531[P]llama/common/common.cpp
|
std::string string_get_sortable_timestamp() {
using clock = std::chrono::system_clock;
const clock::time_point current_time = clock::now();
const time_t as_time_t = clock::to_time_t(current_time);
char timestamp_no_ns[100];
std::strftime(timestamp_no_ns, 100, "%Y_%m_%d-%H_%M_%S", std::localtime(&as_time_t));
const int64_t ns = std::chrono::duration_cast<std::chrono::nanoseconds>(
current_time.time_since_epoch() % 1000000000).count();
char timestamp_ns[11];
snprintf(timestamp_ns, 11, "%09" PRId64, ns);
return std::string(timestamp_no_ns) + "." + std::string(timestamp_ns);
}
|
O1
|
cpp
|
string_get_sortable_timestamp[abi:cxx11]():
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf0, %rsp
movq %rdi, %rbx
callq 0x1b090
movq %rax, %r14
movabsq $0x112e0be826d694b3, %rcx # imm = 0x112E0BE826D694B3
imulq %rcx
movq %rdx, %r12
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x1a, %r12
addq %rax, %r12
leaq 0x78(%rsp), %rdi
movq %r12, (%rdi)
callq 0x1b6b0
leaq 0x7f401(%rip), %rdx # 0xf1e57
leaq 0x80(%rsp), %r15
movl $0x64, %esi
movq %r15, %rdi
movq %rax, %rcx
callq 0x1b730
imulq $0x3b9aca00, %r12, %rax # imm = 0x3B9ACA00
subq %rax, %r14
leaq 0x7f3ea(%rip), %rdx # 0xf1e69
leaq 0x4d(%rsp), %rdi
movl $0xb, %esi
movq %r14, %rcx
xorl %eax, %eax
callq 0x1be10
leaq 0x68(%rsp), %r12
movq %r12, -0x10(%r12)
movq %r15, %rdi
callq 0x1b3f0
leaq (%rsp,%rax), %rdx
addq $0x80, %rdx
leaq 0x58(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x23388
leaq 0x7aa3a(%rip), %rsi # 0xed501
movq %r14, %rdi
callq 0x1c120
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x72af6
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x72afd
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x4d(%rsp), %r14
movq %r14, %rdi
callq 0x1b3f0
leaq (%rsp,%rax), %rdx
addq $0x4d, %rdx
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x23388
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x30(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r15, %rcx
je 0x72b62
movq 0x18(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x72b7d
movl $0xf, %esi
cmpq %r13, 0x28(%rsp)
je 0x72b78
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x72b8e
movq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x1b270
jmp 0x72b9c
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1ba00
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x72bbb
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x72bc1
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x72bf4
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1b900
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x72c0b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b900
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x72c22
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x1b900
movq %rbx, %rax
addq $0xf0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x72c55
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1b900
jmp 0x72c55
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x72c71
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b900
jmp 0x72c71
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x72c88
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x1b900
movq %rbx, %rdi
callq 0x1bfd0
|
_Z29string_get_sortable_timestampB5cxx11v:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0F0h
mov rbx, rdi
call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void)
mov r14, rax
mov rcx, 112E0BE826D694B3h
imul rcx
mov r12, rdx
mov rax, rdx
shr rax, 3Fh
sar r12, 1Ah
add r12, rax
lea rdi, [rsp+118h+var_A0]
mov [rdi], r12
call _localtime
lea rdx, aYMDHMS; "%Y_%m_%d-%H_%M_%S"
lea r15, [rsp+118h+var_98]
mov esi, 64h ; 'd'
mov rdi, r15
mov rcx, rax
call _strftime
imul rax, r12, 3B9ACA00h
sub r14, rax
lea rdx, a09ld; "%09ld"
lea rdi, [rsp+118h+var_CB]
mov esi, 0Bh
mov rcx, r14
xor eax, eax
call _snprintf
lea r12, [rsp+118h+var_B0]
mov [r12-10h], r12
mov rdi, r15
call _strlen
lea rdx, [rsp+rax+118h+var_118]
add rdx, 80h
lea r14, [rsp+118h+var_C0]
mov rdi, r14
mov rsi, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rsi, aN0N1+8; "."
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea r15, [rsp+118h+var_100]
mov [r15-10h], r15
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_72AF6
mov [rsp+118h+var_110], rdx
mov rdx, [rcx]
mov [rsp+118h+var_100], rdx
jmp short loc_72AFD
loc_72AF6:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r15], xmm0
loc_72AFD:
mov rdx, [rax+8]
mov [rsp+118h+var_108], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea r13, [rsp+118h+var_E0]
mov [r13-10h], r13
lea r14, [rsp+118h+var_CB]
mov rdi, r14
call _strlen
lea rdx, [rsp+rax+118h+var_118]
add rdx, 4Dh ; 'M'
lea rdi, [rsp+118h+var_F0]
mov rsi, r14
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rcx, [rsp+118h+var_110]
mov r8, [rsp+118h+var_108]
mov rdx, [rsp+118h+var_E8]
lea rax, [rdx+r8]
mov esi, 0Fh
cmp rcx, r15
jz short loc_72B62
mov rsi, [rsp+118h+var_100]
loc_72B62:
cmp rax, rsi
jbe short loc_72B7D
mov esi, 0Fh
cmp [rsp+118h+var_F0], r13
jz short loc_72B78
mov rsi, [rsp+118h+var_E0]
loc_72B78:
cmp rax, rsi
jbe short loc_72B8E
loc_72B7D:
mov rsi, [rsp+118h+var_F0]
lea rdi, [rsp+118h+var_110]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
jmp short loc_72B9C
loc_72B8E:
lea rdi, [rsp+118h+var_F0]
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
loc_72B9C:
lea rdx, [rbx+10h]
mov [rbx], rdx
mov rsi, [rax]
lea rcx, [rax+10h]
cmp rsi, rcx
jz short loc_72BBB
mov [rbx], rsi
mov rdx, [rcx]
mov [rbx+10h], rdx
jmp short loc_72BC1
loc_72BBB:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rdx], xmm0
loc_72BC1:
mov rdx, rax
add rdx, 8
mov rsi, [rax+8]
mov [rbx+8], rsi
mov [rax], rcx
mov qword ptr [rdx], 0
mov byte ptr [rcx], 0
mov rdi, [rsp+118h+var_F0]; void *
cmp rdi, r13
jz short loc_72BF4
mov rsi, [rsp+118h+var_E0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_72BF4:
mov rdi, [rsp+118h+var_110]; void *
cmp rdi, r15
jz short loc_72C0B
mov rsi, [rsp+118h+var_100]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_72C0B:
mov rdi, [rsp+118h+var_C0]; void *
cmp rdi, r12
jz short loc_72C22
mov rsi, [rsp+118h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_72C22:
mov rax, rbx
add rsp, 0F0h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov rbx, rax
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_72C55
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_72C55
mov rbx, rax
loc_72C55:
mov rdi, [rsp+arg_0]; void *
cmp rdi, r15
jz short loc_72C71
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_72C71
mov rbx, rax
loc_72C71:
mov rdi, [rsp+arg_50]; void *
cmp rdi, r12
jz short loc_72C88
mov rsi, [rsp+arg_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_72C88:
mov rdi, rbx
call __Unwind_Resume
|
long long string_get_sortable_timestamp[abi:cxx11](long long a1)
{
long long v1; // r14
long long v2; // rax
long long v3; // rax
long long v4; // rax
__int128 *v5; // rcx
long long v6; // rax
char *v7; // rax
unsigned long long v8; // rsi
unsigned long long v9; // rsi
_QWORD *v10; // rax
_OWORD *v11; // rcx
void *v13; // [rsp+8h] [rbp-110h] BYREF
long long v14; // [rsp+10h] [rbp-108h]
__int128 v15; // [rsp+18h] [rbp-100h] BYREF
void *v16[2]; // [rsp+28h] [rbp-F0h] BYREF
_QWORD v17[2]; // [rsp+38h] [rbp-E0h] BYREF
_BYTE v18[11]; // [rsp+4Dh] [rbp-CBh] BYREF
void *v19[2]; // [rsp+58h] [rbp-C0h] BYREF
_QWORD v20[3]; // [rsp+68h] [rbp-B0h] BYREF
_BYTE v21[152]; // [rsp+80h] [rbp-98h] BYREF
v1 = std::chrono::_V2::system_clock::now((std::chrono::_V2::system_clock *)a1);
v20[2] = v1 / 1000000000;
v2 = localtime();
strftime(v21, 100LL, "%Y_%m_%d-%H_%M_%S", v2);
snprintf(v18, 11LL, "%09ld", v1 % 1000000000);
v19[0] = v20;
v3 = strlen(v21);
std::string::_M_construct<char const*>(v19, v21, (long long)&v21[v3]);
v4 = std::string::append(v19, ".");
v13 = &v15;
v5 = (__int128 *)(v4 + 16);
if ( *(_QWORD *)v4 == v4 + 16 )
{
v15 = *v5;
}
else
{
v13 = *(void **)v4;
*(_QWORD *)&v15 = *(_QWORD *)v5;
}
v14 = *(_QWORD *)(v4 + 8);
*(_QWORD *)v4 = v5;
*(_QWORD *)(v4 + 8) = 0LL;
*(_BYTE *)(v4 + 16) = 0;
v16[0] = v17;
v6 = strlen(v18);
std::string::_M_construct<char const*>(v16, v18, (long long)&v18[v6]);
v7 = (char *)v16[1] + v14;
v8 = 15LL;
if ( v13 != &v15 )
v8 = v15;
if ( (unsigned long long)v7 <= v8 )
goto LABEL_10;
v9 = 15LL;
if ( v16[0] != v17 )
v9 = v17[0];
if ( (unsigned long long)v7 <= v9 )
v10 = (_QWORD *)std::string::replace(v16, 0LL, 0LL, v13, v14);
else
LABEL_10:
v10 = (_QWORD *)std::string::_M_append(&v13, v16[0]);
*(_QWORD *)a1 = a1 + 16;
v11 = v10 + 2;
if ( (_QWORD *)*v10 == v10 + 2 )
{
*(_OWORD *)(a1 + 16) = *v11;
}
else
{
*(_QWORD *)a1 = *v10;
*(_QWORD *)(a1 + 16) = *(_QWORD *)v11;
}
*(_QWORD *)(a1 + 8) = v10[1];
*v10 = v11;
v10[1] = 0LL;
*(_BYTE *)v11 = 0;
if ( v16[0] != v17 )
operator delete(v16[0], v17[0] + 1LL);
if ( v13 != &v15 )
operator delete(v13, v15 + 1);
if ( v19[0] != v20 )
operator delete(v19[0], v20[0] + 1LL);
return a1;
}
|
string_get_sortable_timestamp[abi:cxx11]:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xf0
MOV RBX,RDI
CALL 0x0011b090
MOV R14,RAX
MOV RCX,0x112e0be826d694b3
IMUL RCX
MOV R12,RDX
MOV RAX,RDX
SHR RAX,0x3f
SAR R12,0x1a
ADD R12,RAX
LEA RDI,[RSP + 0x78]
MOV qword ptr [RDI],R12
CALL 0x0011b6b0
LEA RDX,[0x1f1e57]
LEA R15,[RSP + 0x80]
MOV ESI,0x64
MOV RDI,R15
MOV RCX,RAX
CALL 0x0011b730
IMUL RAX,R12,0x3b9aca00
SUB R14,RAX
LEA RDX,[0x1f1e69]
LEA RDI,[RSP + 0x4d]
MOV ESI,0xb
MOV RCX,R14
XOR EAX,EAX
CALL 0x0011be10
LEA R12,[RSP + 0x68]
MOV qword ptr [R12 + -0x10],R12
MOV RDI,R15
CALL 0x0011b3f0
LEA RDX,[RSP + RAX*0x1]
ADD RDX,0x80
LEA R14,[RSP + 0x58]
MOV RDI,R14
MOV RSI,R15
CALL 0x00123388
LAB_00172ac0:
LEA RSI,[0x1ed501]
MOV RDI,R14
CALL 0x0011c120
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x00172af6
MOV qword ptr [RSP + 0x8],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x18],RDX
JMP 0x00172afd
LAB_00172af6:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R15],XMM0
LAB_00172afd:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x10],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LEA R13,[RSP + 0x38]
MOV qword ptr [R13 + -0x10],R13
LEA R14,[RSP + 0x4d]
MOV RDI,R14
CALL 0x0011b3f0
LEA RDX,[RSP + RAX*0x1]
ADD RDX,0x4d
LAB_00172b33:
LEA RDI,[RSP + 0x28]
MOV RSI,R14
CALL 0x00123388
MOV RCX,qword ptr [RSP + 0x8]
MOV R8,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x30]
LEA RAX,[RDX + R8*0x1]
MOV ESI,0xf
CMP RCX,R15
JZ 0x00172b62
MOV RSI,qword ptr [RSP + 0x18]
LAB_00172b62:
CMP RAX,RSI
JBE 0x00172b7d
MOV ESI,0xf
CMP qword ptr [RSP + 0x28],R13
JZ 0x00172b78
MOV RSI,qword ptr [RSP + 0x38]
LAB_00172b78:
CMP RAX,RSI
JBE 0x00172b8e
LAB_00172b7d:
MOV RSI,qword ptr [RSP + 0x28]
LAB_00172b82:
LEA RDI,[RSP + 0x8]
CALL 0x0011b270
JMP 0x00172b9c
LAB_00172b8e:
LEA RDI,[RSP + 0x28]
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0011ba00
LAB_00172b9c:
LEA RDX,[RBX + 0x10]
MOV qword ptr [RBX],RDX
MOV RSI,qword ptr [RAX]
LEA RCX,[RAX + 0x10]
CMP RSI,RCX
JZ 0x00172bbb
MOV qword ptr [RBX],RSI
MOV RDX,qword ptr [RCX]
MOV qword ptr [RBX + 0x10],RDX
JMP 0x00172bc1
LAB_00172bbb:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RDX],XMM0
LAB_00172bc1:
MOV RDX,RAX
ADD RDX,0x8
MOV RSI,qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x8],RSI
MOV qword ptr [RAX],RCX
MOV qword ptr [RDX],0x0
MOV byte ptr [RCX],0x0
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R13
JZ 0x00172bf4
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011b900
LAB_00172bf4:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R15
JZ 0x00172c0b
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011b900
LAB_00172c0b:
MOV RDI,qword ptr [RSP + 0x58]
CMP RDI,R12
JZ 0x00172c22
MOV RSI,qword ptr [RSP + 0x68]
INC RSI
CALL 0x0011b900
LAB_00172c22:
MOV RAX,RBX
ADD RSP,0xf0
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* string_get_sortable_timestamp[abi:cxx11]() */
void string_get_sortable_timestamp_abi_cxx11_(void)
{
int8 *puVar1;
int8 uVar2;
long lVar3;
tm *__tp;
size_t sVar4;
long *plVar5;
int8 *puVar6;
ulong *puVar7;
ulong uVar8;
int8 *in_RDI;
ulong *local_110;
long local_108;
ulong local_100;
long lStack_f8;
ulong *local_f0;
long local_e8;
ulong local_e0 [2];
char local_cb [11];
long *local_c0 [2];
long local_b0 [2];
long local_a0;
char local_98 [112];
lVar3 = std::chrono::_V2::system_clock::now();
local_a0 = lVar3 / 1000000000;
__tp = localtime(&local_a0);
strftime(local_98,100,"%Y_%m_%d-%H_%M_%S",__tp);
snprintf(local_cb,0xb,"%09ld",lVar3 % 1000000000);
local_c0[0] = local_b0;
sVar4 = strlen(local_98);
std::__cxx11::string::_M_construct<char_const*>(local_c0,local_98,local_98 + sVar4);
/* try { // try from 00172ac0 to 00172ace has its CatchHandler @ 00172c6e */
plVar5 = (long *)std::__cxx11::string::append((char *)local_c0);
puVar7 = (ulong *)(plVar5 + 2);
if ((ulong *)*plVar5 == puVar7) {
local_100 = *puVar7;
lStack_f8 = plVar5[3];
local_110 = &local_100;
}
else {
local_100 = *puVar7;
local_110 = (ulong *)*plVar5;
}
local_108 = plVar5[1];
*plVar5 = (long)puVar7;
plVar5[1] = 0;
*(int1 *)(plVar5 + 2) = 0;
local_f0 = local_e0;
sVar4 = strlen(local_cb);
/* try { // try from 00172b33 to 00172b3f has its CatchHandler @ 00172c52 */
std::__cxx11::string::_M_construct<char_const*>(&local_f0,local_cb,local_cb + sVar4);
uVar8 = 0xf;
if (local_110 != &local_100) {
uVar8 = local_100;
}
if (uVar8 < (ulong)(local_e8 + local_108)) {
uVar8 = 0xf;
if (local_f0 != local_e0) {
uVar8 = local_e0[0];
}
if ((ulong)(local_e8 + local_108) <= uVar8) {
puVar6 = (int8 *)
std::__cxx11::string::replace((ulong)&local_f0,0,(char *)0x0,(ulong)local_110);
goto LAB_00172b9c;
}
}
/* try { // try from 00172b82 to 00172b9b has its CatchHandler @ 00172c36 */
puVar6 = (int8 *)std::__cxx11::string::_M_append((char *)&local_110,(ulong)local_f0);
LAB_00172b9c:
*in_RDI = in_RDI + 2;
puVar1 = puVar6 + 2;
if ((int8 *)*puVar6 == puVar1) {
uVar2 = puVar6[3];
in_RDI[2] = *puVar1;
in_RDI[3] = uVar2;
}
else {
*in_RDI = (int8 *)*puVar6;
in_RDI[2] = *puVar1;
}
in_RDI[1] = puVar6[1];
*puVar6 = puVar1;
puVar6[1] = 0;
*(int1 *)puVar1 = 0;
if (local_f0 != local_e0) {
operator_delete(local_f0,local_e0[0] + 1);
}
if (local_110 != &local_100) {
operator_delete(local_110,local_100 + 1);
}
if (local_c0[0] != local_b0) {
operator_delete(local_c0[0],local_b0[0] + 1);
}
return;
}
|
|
57,432
|
ethash_keccak256
|
corpus-core[P]colibri-stateless/build_O2/_deps/ethhash_external-src/lib/keccak/keccak.c
|
union ethash_hash256 ethash_keccak256(const uint8_t* data, size_t size)
{
union ethash_hash256 hash;
keccak(hash.word64s, 256, data, size);
return hash;
}
|
O2
|
c
|
ethash_keccak256:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe0, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
andq $0x0, 0x8(%rsp)
leaq 0x10(%rsp), %r12
movl $0xc8, %edx
movq %r12, %rdi
xorl %esi, %esi
callq 0x221a0
movq %r15, %r13
subq $0x88, %r13
jb 0x495c6
xorl %r15d, %r15d
cmpq $0x88, %r15
je 0x495b5
movq (%r14,%r15), %rax
xorq %rax, 0x10(%rsp,%r15)
addq $0x8, %r15
jmp 0x4959d
movq %r12, %rdi
callq *0x72d2a(%rip) # 0xbc2e8
addq %r15, %r14
movq %r13, %r15
jmp 0x49591
xorl %eax, %eax
cmpq $0x7, %r15
jbe 0x495e1
movq (%r14,%rax), %rcx
xorq %rcx, 0x10(%rsp,%rax)
addq $-0x8, %r15
addq $0x8, %rax
jmp 0x495c8
xorl %ecx, %ecx
cmpq %rcx, %r15
je 0x495f8
leaq (%r14,%rcx), %rdx
movb (%rdx,%rax), %dl
movb %dl, 0x8(%rsp,%rcx)
incq %rcx
jmp 0x495e3
movb $0x1, 0x8(%rsp,%rcx)
movq 0x8(%rsp), %rcx
xorq %rcx, 0x10(%rsp,%rax)
leaq 0x10(%rsp), %rdi
xorb $-0x80, 0x87(%rdi)
callq *0x72ccf(%rip) # 0xbc2e8
xorl %eax, %eax
cmpq $0x4, %rax
je 0x4962f
movq 0x10(%rsp,%rax,8), %rcx
movq %rcx, (%rbx,%rax,8)
incq %rax
jmp 0x4961b
movq %rbx, %rax
addq $0xe0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
|
ethash_keccak256:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0E0h
mov r15, rdx
mov r14, rsi
mov rbx, rdi
and [rsp+108h+var_100], 0
lea r12, [rsp+108h+var_F8]
mov edx, 0C8h
mov rdi, r12
xor esi, esi
call _memset
mov r13, r15
loc_49591:
sub r13, 88h
jb short loc_495C6
xor r15d, r15d
loc_4959D:
cmp r15, 88h
jz short loc_495B5
mov rax, [r14+r15]
xor [rsp+r15+108h+var_F8], rax
add r15, 8
jmp short loc_4959D
loc_495B5:
mov rdi, r12
call cs:keccakf1600_best
add r14, r15
mov r15, r13
jmp short loc_49591
loc_495C6:
xor eax, eax
loc_495C8:
cmp r15, 7
jbe short loc_495E1
mov rcx, [r14+rax]
xor [rsp+rax+108h+var_F8], rcx
add r15, 0FFFFFFFFFFFFFFF8h
add rax, 8
jmp short loc_495C8
loc_495E1:
xor ecx, ecx
loc_495E3:
cmp r15, rcx
jz short loc_495F8
lea rdx, [r14+rcx]
mov dl, [rdx+rax]
mov byte ptr [rsp+rcx+108h+var_100], dl
inc rcx
jmp short loc_495E3
loc_495F8:
mov byte ptr [rsp+rcx+108h+var_100], 1
mov rcx, [rsp+108h+var_100]
xor [rsp+rax+108h+var_F8], rcx
lea rdi, [rsp+108h+var_F8]
xor byte ptr [rdi+87h], 80h
call cs:keccakf1600_best
xor eax, eax
loc_4961B:
cmp rax, 4
jz short loc_4962F
mov rcx, [rsp+rax*8+108h+var_F8]
mov [rbx+rax*8], rcx
inc rax
jmp short loc_4961B
loc_4962F:
mov rax, rbx
add rsp, 0E0h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
|
long long ethash_keccak256(long long a1, long long a2, unsigned long long a3)
{
unsigned long long i; // r13
bool v6; // cf
long long j; // r15
long long v8; // rax
long long k; // rcx
long long m; // rax
long long v12; // [rsp+8h] [rbp-100h]
_QWORD v13[16]; // [rsp+10h] [rbp-F8h] BYREF
char v14; // [rsp+97h] [rbp-71h]
v12 = 0LL;
memset(v13, 0LL, 200LL);
for ( i = a3; ; a3 = i )
{
v6 = i < 0x88;
i -= 136LL;
if ( v6 )
break;
for ( j = 0LL; j != 17; ++j )
v13[j] ^= *(_QWORD *)(a2 + j * 8);
keccakf1600_best();
a2 += 136LL;
}
v8 = 0LL;
while ( a3 > 7 )
{
v13[v8] ^= *(_QWORD *)(a2 + v8 * 8);
a3 -= 8LL;
++v8;
}
for ( k = 0LL; a3 != k; ++k )
*((_BYTE *)&v13[-1] + k) = *(_BYTE *)(a2 + k + v8 * 8);
*((_BYTE *)&v13[-1] + k) = 1;
v13[v8] ^= v12;
v14 ^= 0x80u;
keccakf1600_best();
for ( m = 0LL; m != 4; ++m )
*(_QWORD *)(a1 + 8 * m) = v13[m];
return a1;
}
|
ethash_keccak256:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xe0
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
AND qword ptr [RSP + 0x8],0x0
LEA R12,[RSP + 0x10]
MOV EDX,0xc8
MOV RDI,R12
XOR ESI,ESI
CALL 0x001221a0
MOV R13,R15
LAB_00149591:
SUB R13,0x88
JC 0x001495c6
XOR R15D,R15D
LAB_0014959d:
CMP R15,0x88
JZ 0x001495b5
MOV RAX,qword ptr [R14 + R15*0x1]
XOR qword ptr [RSP + R15*0x1 + 0x10],RAX
ADD R15,0x8
JMP 0x0014959d
LAB_001495b5:
MOV RDI,R12
CALL qword ptr [0x001bc2e8]
ADD R14,R15
MOV R15,R13
JMP 0x00149591
LAB_001495c6:
XOR EAX,EAX
LAB_001495c8:
CMP R15,0x7
JBE 0x001495e1
MOV RCX,qword ptr [R14 + RAX*0x1]
XOR qword ptr [RSP + RAX*0x1 + 0x10],RCX
ADD R15,-0x8
ADD RAX,0x8
JMP 0x001495c8
LAB_001495e1:
XOR ECX,ECX
LAB_001495e3:
CMP R15,RCX
JZ 0x001495f8
LEA RDX,[R14 + RCX*0x1]
MOV DL,byte ptr [RDX + RAX*0x1]
MOV byte ptr [RSP + RCX*0x1 + 0x8],DL
INC RCX
JMP 0x001495e3
LAB_001495f8:
MOV byte ptr [RSP + RCX*0x1 + 0x8],0x1
MOV RCX,qword ptr [RSP + 0x8]
XOR qword ptr [RSP + RAX*0x1 + 0x10],RCX
LEA RDI,[RSP + 0x10]
XOR byte ptr [RDI + 0x87],0x80
CALL qword ptr [0x001bc2e8]
XOR EAX,EAX
LAB_0014961b:
CMP RAX,0x4
JZ 0x0014962f
MOV RCX,qword ptr [RSP + RAX*0x8 + 0x10]
MOV qword ptr [RBX + RAX*0x8],RCX
INC RAX
JMP 0x0014961b
LAB_0014962f:
MOV RAX,RBX
ADD RSP,0xe0
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
long ethash_keccak256(long param_1,long param_2,ulong param_3)
{
ulong uVar1;
long lVar2;
ulong local_100;
ulong local_f8 [16];
byte local_71;
local_100 = 0;
memset(local_f8,0,200);
while (0x87 < param_3) {
for (lVar2 = 0; lVar2 != 0x88; lVar2 = lVar2 + 8) {
*(ulong *)((long)local_f8 + lVar2) =
*(ulong *)((long)local_f8 + lVar2) ^ *(ulong *)(param_2 + lVar2);
}
(*(code *)keccakf1600_best)(local_f8);
param_2 = param_2 + 0x88;
param_3 = param_3 - 0x88;
}
lVar2 = 0;
for (; 7 < param_3; param_3 = param_3 - 8) {
*(ulong *)((long)local_f8 + lVar2) =
*(ulong *)((long)local_f8 + lVar2) ^ *(ulong *)(param_2 + lVar2);
lVar2 = lVar2 + 8;
}
for (uVar1 = 0; param_3 != uVar1; uVar1 = uVar1 + 1) {
*(int1 *)((long)local_f8 + (uVar1 - 8)) = *(int1 *)(param_2 + uVar1 + lVar2);
}
*(int1 *)((long)local_f8 + (uVar1 - 8)) = 1;
*(ulong *)((long)local_f8 + lVar2) = *(ulong *)((long)local_f8 + lVar2) ^ local_100;
local_71 = local_71 ^ 0x80;
(*(code *)keccakf1600_best)();
for (lVar2 = 0; lVar2 != 4; lVar2 = lVar2 + 1) {
*(ulong *)(param_1 + lVar2 * 8) = local_f8[lVar2];
}
return param_1;
}
|
|
57,433
|
mariadb_compress_alloc
|
eloqsql/libmariadb/libmariadb/ma_compress.c
|
unsigned char *_mariadb_compress_alloc(NET *net, const unsigned char *packet, size_t *len, size_t *complen)
{
unsigned char *compbuf;
*complen = *len * 120 / 100 + 12;
if (!(compbuf = (unsigned char *) malloc(*complen)))
return 0; /* Not enough memory */
if (compression_plugin(net)->compress(compression_ctx(net), (void *)compbuf, complen, (void *)packet, *len))
{
free(compbuf);
return 0;
}
if (*complen >= *len)
{
*complen=0;
free(compbuf);
return 0;
}
swap(size_t,*len,*complen); /* *len is now packet length */
return compbuf;
}
|
O3
|
c
|
mariadb_compress_alloc:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
imulq $0x78, (%rdx), %rax
shrq $0x2, %rax
movabsq $0x28f5c28f5c28f5c3, %rcx # imm = 0x28F5C28F5C28F5C3
mulq %rcx
shrq $0x2, %rdx
leaq 0xc(%rdx), %rdi
movq %rdi, (%rbx)
callq 0x13600
testq %rax, %rax
je 0x1e3b4
movq %rax, %r14
movq 0x2a0(%r13), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rax), %rax
movq (%r15), %r8
movq %r14, %rsi
movq %rbx, %rdx
movq %r12, %rcx
callq *0x68(%rax)
testb %al, %al
jne 0x1e3ac
movq (%rbx), %rax
movq (%r15), %rcx
cmpq %rcx, %rax
jae 0x1e3a5
movq %rax, (%r15)
movq %rcx, (%rbx)
jmp 0x1e3b7
movq $0x0, (%rbx)
movq %r14, %rdi
callq 0x13570
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_mariadb_compress_alloc:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rcx
mov r15, rdx
mov r12, rsi
mov r13, rdi
imul rax, [rdx], 78h ; 'x'
shr rax, 2
mov rcx, 28F5C28F5C28F5C3h
mul rcx
shr rdx, 2
lea rdi, [rdx+0Ch]
mov [rbx], rdi
call _malloc
test rax, rax
jz short loc_1E3B4
mov r14, rax
mov rax, [r13+2A0h]
mov rdi, [rax+8]
mov rax, [rax+10h]
mov r8, [r15]
mov rsi, r14
mov rdx, rbx
mov rcx, r12
call qword ptr [rax+68h]
test al, al
jnz short loc_1E3AC
mov rax, [rbx]
mov rcx, [r15]
cmp rax, rcx
jnb short loc_1E3A5
mov [r15], rax
mov [rbx], rcx
jmp short loc_1E3B7
loc_1E3A5:
mov qword ptr [rbx], 0
loc_1E3AC:
mov rdi, r14
call _free
loc_1E3B4:
xor r14d, r14d
loc_1E3B7:
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long mariadb_compress_alloc(long long a1, long long a2, unsigned long long *a3, unsigned long long *a4)
{
unsigned long long v7; // rdi
long long v8; // rax
long long v9; // r14
unsigned long long v10; // rcx
v7 = 120 * *a3 / 0x64 + 12;
*a4 = v7;
v8 = malloc(v7);
if ( !v8 )
return 0LL;
v9 = v8;
if ( (*(unsigned __int8 ( **)(_QWORD, long long, unsigned long long *, long long, unsigned long long))(*(_QWORD *)(*(_QWORD *)(a1 + 672) + 16LL) + 104LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 672) + 8LL),
v8,
a4,
a2,
*a3) )
{
LABEL_6:
free(v9);
return 0LL;
}
v10 = *a3;
if ( *a4 >= *a3 )
{
*a4 = 0LL;
goto LABEL_6;
}
*a3 = *a4;
*a4 = v10;
return v9;
}
|
_mariadb_compress_alloc:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RCX
MOV R15,RDX
MOV R12,RSI
MOV R13,RDI
IMUL RAX,qword ptr [RDX],0x78
SHR RAX,0x2
MOV RCX,0x28f5c28f5c28f5c3
MUL RCX
SHR RDX,0x2
LEA RDI,[RDX + 0xc]
MOV qword ptr [RBX],RDI
CALL 0x00113600
TEST RAX,RAX
JZ 0x0011e3b4
MOV R14,RAX
MOV RAX,qword ptr [R13 + 0x2a0]
MOV RDI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV R8,qword ptr [R15]
MOV RSI,R14
MOV RDX,RBX
MOV RCX,R12
CALL qword ptr [RAX + 0x68]
TEST AL,AL
JNZ 0x0011e3ac
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [R15]
CMP RAX,RCX
JNC 0x0011e3a5
MOV qword ptr [R15],RAX
MOV qword ptr [RBX],RCX
JMP 0x0011e3b7
LAB_0011e3a5:
MOV qword ptr [RBX],0x0
LAB_0011e3ac:
MOV RDI,R14
CALL 0x00113570
LAB_0011e3b4:
XOR R14D,R14D
LAB_0011e3b7:
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void * _mariadb_compress_alloc(long param_1,int8 param_2,ulong *param_3,size_t *param_4)
{
size_t __size;
ulong uVar1;
char cVar2;
void *__ptr;
__size = (*param_3 * 0x78) / 100 + 0xc;
*param_4 = __size;
__ptr = malloc(__size);
if (__ptr != (void *)0x0) {
cVar2 = (**(code **)(*(long *)(*(long *)(param_1 + 0x2a0) + 0x10) + 0x68))
(*(int8 *)(*(long *)(param_1 + 0x2a0) + 8),__ptr,param_4,param_2,
*param_3);
if (cVar2 == '\0') {
uVar1 = *param_3;
if (*param_4 < uVar1) {
*param_3 = *param_4;
*param_4 = uVar1;
return __ptr;
}
*param_4 = 0;
}
free(__ptr);
}
return (void *)0x0;
}
|
|
57,434
|
wsrep::transaction::after_rollback()
|
eloqsql/wsrep-lib/src/transaction.cpp
|
int wsrep::transaction::after_rollback()
{
wsrep::unique_lock<wsrep::mutex> lock(client_state_.mutex());
debug_log_state("after_rollback_enter");
assert(state() == s_aborting ||
state() == s_must_replay);
if (is_streaming() && bf_aborted_in_total_order_)
{
lock.unlock();
// Storage service scope
{
scoped_storage_service<storage_service_deleter>
sr_scope(
client_service_,
server_service_.storage_service(client_service_),
storage_service_deleter(server_service_));
wsrep::storage_service& storage_service(
sr_scope.storage_service());
storage_service.adopt_transaction(*this);
storage_service.remove_fragments();
storage_service.commit(wsrep::ws_handle(), wsrep::ws_meta());
}
lock.lock();
streaming_context_.cleanup();
}
if (is_streaming() && state() != s_must_replay)
{
streaming_context_.cleanup();
}
if (state() == s_aborting)
{
state(lock, s_aborted);
}
// Releasing the transaction from provider is postponed into
// after_statement() hook. Depending on DBMS system all the
// resources acquired by transaction may or may not be released
// during actual rollback. If the transaction has been ordered,
// releasing the commit ordering critical section should be
// also postponed until all resources have been released.
debug_log_state("after_rollback_leave");
return 0;
}
|
O3
|
cpp
|
wsrep::transaction::after_rollback():
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x18(%rbp)
movq 0x10(%rdi), %rax
movq 0x18(%rax), %rax
leaq -0x28(%rbp), %r14
movq %rax, (%r14)
movb $0x0, 0x8(%r14)
movq %r14, %rdi
callq 0x72ce92
movb $0x1, 0x8(%r14)
leaq 0xd20e4(%rip), %rsi # 0xe2a2b8
movq %rbx, %rdi
callq 0xd55b72
cmpq $0x0, 0xc8(%rbx)
je 0xd582e8
cmpb $0x1, 0x5c(%rbx)
jne 0xd58336
cmpb $0x0, -0x20(%rbp)
je 0xd5837c
movq -0x28(%rbp), %rdi
testq %rdi, %rdi
je 0xd58211
movq (%rdi), %rax
callq *0x18(%rax)
movb $0x0, -0x20(%rbp)
movq (%rbx), %rdi
movq 0x8(%rbx), %r14
movq (%rdi), %rax
movq %r14, %rsi
callq *0x10(%rax)
movq (%rbx), %rcx
leaq -0x88(%rbp), %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xd57cbc
movq -0x80(%rbp), %r14
movq (%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *0x18(%rax)
movq (%r14), %rax
movq %r14, %rdi
callq *0x30(%rax)
movq $-0x1, %rax
leaq -0x98(%rbp), %rsi
movq %rax, (%rsi)
movq $0x0, 0x8(%rsi)
pxor %xmm0, %xmm0
leaq -0x70(%rbp), %rdx
movdqa %xmm0, (%rdx)
movq %rax, 0x10(%rdx)
movdqu %xmm0, 0x18(%rdx)
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0x28(%rdx)
movq %rax, 0x38(%rdx)
movl $0x0, 0x40(%rdx)
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
leaq -0x88(%rbp), %rdi
callq 0xd57d32
leaq -0x28(%rbp), %rdi
callq 0x72ce92
movq $0x0, 0xc8(%rbx)
movq 0xd0(%rbx), %rax
cmpq %rax, 0xd8(%rbx)
je 0xd582d1
movq %rax, 0xd8(%rbx)
movq $-0x1, 0xe8(%rbx)
pxor %xmm0, %xmm0
movdqu %xmm0, 0x100(%rbx)
movl 0x30(%rbx), %eax
cmpl $0x9, %eax
jne 0xd582fd
movq %rbx, %rdi
movl $0xa, %edx
callq 0xd56adc
leaq 0xd1fc9(%rip), %rsi # 0xe2a2cd
movq %rbx, %rdi
callq 0xd55b72
leaq -0x28(%rbp), %rdi
callq 0x72ce78
movq %fs:0x28, %rax
cmpq -0x18(%rbp), %rax
jne 0xd583cd
xorl %eax, %eax
addq $0x90, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl 0x30(%rbx), %eax
cmpl $0xb, %eax
je 0xd582eb
movq $0x0, 0xc8(%rbx)
movq 0xd0(%rbx), %rcx
cmpq %rcx, 0xd8(%rbx)
je 0xd58360
movq %rcx, 0xd8(%rbx)
movq $-0x1, 0xe8(%rbx)
pxor %xmm0, %xmm0
movdqu %xmm0, 0x100(%rbx)
jmp 0xd582eb
movq %fs:0x28, %rax
cmpq -0x18(%rbp), %rax
jne 0xd583cd
movl $0x1, %edi
callq 0x628ac0
jmp 0xd58397
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0xd57d32
jmp 0xd583ad
jmp 0xd583aa
movq %rax, %rbx
leaq -0x28(%rbp), %rdi
callq 0x72ce78
movq %fs:0x28, %rax
cmpq -0x18(%rbp), %rax
jne 0xd583cd
movq %rbx, %rdi
callq 0x629200
callq 0x6286b0
|
_ZN5wsrep11transaction14after_rollbackEv:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 90h
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_18], rax
mov rax, [rdi+10h]
mov rax, [rax+18h]
lea r14, [rbp+var_28]
mov [r14], rax
mov byte ptr [r14+8], 0
mov rdi, r14
call _ZNSt11unique_lockIN5wsrep5mutexEE4lockEv; std::unique_lock<wsrep::mutex>::lock(void)
mov byte ptr [r14+8], 1
lea rsi, aAfterRollbackE; "after_rollback_enter"
mov rdi, rbx; this
call _ZNK5wsrep11transaction15debug_log_stateEPKc; wsrep::transaction::debug_log_state(char const*)
cmp qword ptr [rbx+0C8h], 0
jz loc_D582E8
cmp byte ptr [rbx+5Ch], 1
jnz loc_D58336
cmp [rbp+var_20], 0
jz loc_D5837C
mov rdi, [rbp+var_28]
test rdi, rdi
jz short loc_D58211
mov rax, [rdi]
call qword ptr [rax+18h]
mov [rbp+var_20], 0
loc_D58211:
mov rdi, [rbx]
mov r14, [rbx+8]
mov rax, [rdi]
mov rsi, r14
call qword ptr [rax+10h]
mov rcx, [rbx]
lea rdi, [rbp+var_88]
mov rsi, r14
mov rdx, rax
call _ZN12_GLOBAL__N_122scoped_storage_serviceINS_23storage_service_deleterEEC2ERN5wsrep14client_serviceEPNS3_15storage_serviceES1_; `anonymous namespace'::scoped_storage_service<`anonymous namespace'::storage_service_deleter>::scoped_storage_service(wsrep::client_service &,wsrep::storage_service *,`anonymous namespace'::storage_service_deleter)
mov r14, [rbp+var_80]
mov rax, [r14]
mov rdi, r14
mov rsi, rbx
call qword ptr [rax+18h]
mov rax, [r14]
mov rdi, r14
call qword ptr [rax+30h]
mov rax, 0FFFFFFFFFFFFFFFFh
lea rsi, [rbp+var_98]
mov [rsi], rax
mov qword ptr [rsi+8], 0
pxor xmm0, xmm0
lea rdx, [rbp+var_70]
movdqa xmmword ptr [rdx], xmm0
mov [rdx+10h], rax
movdqu xmmword ptr [rdx+18h], xmm0
pcmpeqd xmm0, xmm0
movdqu xmmword ptr [rdx+28h], xmm0
mov [rdx+38h], rax
mov dword ptr [rdx+40h], 0
mov rax, [r14]
mov rdi, r14
call qword ptr [rax+38h]
lea rdi, [rbp+var_88]
call _ZN12_GLOBAL__N_122scoped_storage_serviceINS_23storage_service_deleterEED2Ev; `anonymous namespace'::scoped_storage_service<`anonymous namespace'::storage_service_deleter>::~scoped_storage_service()
lea rdi, [rbp+var_28]
call _ZNSt11unique_lockIN5wsrep5mutexEE4lockEv; std::unique_lock<wsrep::mutex>::lock(void)
mov qword ptr [rbx+0C8h], 0
mov rax, [rbx+0D0h]
cmp [rbx+0D8h], rax
jz short loc_D582D1
mov [rbx+0D8h], rax
loc_D582D1:
mov qword ptr [rbx+0E8h], 0FFFFFFFFFFFFFFFFh
pxor xmm0, xmm0
movdqu xmmword ptr [rbx+100h], xmm0
loc_D582E8:
mov eax, [rbx+30h]
loc_D582EB:
cmp eax, 9
jnz short loc_D582FD
mov rdi, rbx
mov edx, 0Ah
call _ZN5wsrep11transaction5stateERSt11unique_lockINS_5mutexEENS0_5stateE; wsrep::transaction::state(std::unique_lock<wsrep::mutex> &,wsrep::transaction::state)
loc_D582FD:
lea rsi, aAfterRollbackL; "after_rollback_leave"
mov rdi, rbx; this
call _ZNK5wsrep11transaction15debug_log_stateEPKc; wsrep::transaction::debug_log_state(char const*)
lea rdi, [rbp+var_28]
call _ZNSt11unique_lockIN5wsrep5mutexEED2Ev; std::unique_lock<wsrep::mutex>::~unique_lock()
mov rax, fs:28h
cmp rax, [rbp+var_18]
jnz loc_D583CD
xor eax, eax
add rsp, 90h
pop rbx
pop r14
pop rbp
retn
loc_D58336:
mov eax, [rbx+30h]
cmp eax, 0Bh
jz short loc_D582EB
mov qword ptr [rbx+0C8h], 0
mov rcx, [rbx+0D0h]
cmp [rbx+0D8h], rcx
jz short loc_D58360
mov [rbx+0D8h], rcx
loc_D58360:
mov qword ptr [rbx+0E8h], 0FFFFFFFFFFFFFFFFh
pxor xmm0, xmm0
movdqu xmmword ptr [rbx+100h], xmm0
jmp loc_D582EB
loc_D5837C:
mov rax, fs:28h
cmp rax, [rbp+var_18]
jnz short loc_D583CD
mov edi, 1; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
jmp short $+2
loc_D58397:
mov rbx, rax
lea rdi, [rbp+var_88]
call _ZN12_GLOBAL__N_122scoped_storage_serviceINS_23storage_service_deleterEED2Ev; `anonymous namespace'::scoped_storage_service<`anonymous namespace'::storage_service_deleter>::~scoped_storage_service()
jmp short loc_D583AD
jmp short $+2
loc_D583AA:
mov rbx, rax
loc_D583AD:
lea rdi, [rbp+var_28]
call _ZNSt11unique_lockIN5wsrep5mutexEED2Ev; std::unique_lock<wsrep::mutex>::~unique_lock()
mov rax, fs:28h
cmp rax, [rbp+var_18]
jnz short loc_D583CD
mov rdi, rbx
call __Unwind_Resume
loc_D583CD:
call ___stack_chk_fail
|
long long wsrep::transaction::after_rollback(wsrep::transaction *this)
{
const char *v1; // rsi
long long v2; // r14
long long v3; // rax
long long v4; // r14
long long v5; // rax
int v6; // eax
long long v8; // rcx
_QWORD v9[2]; // [rsp+8h] [rbp-98h] BYREF
long long v10; // [rsp+18h] [rbp-88h] BYREF
long long v11; // [rsp+20h] [rbp-80h]
__int128 v12; // [rsp+30h] [rbp-70h] BYREF
long long v13; // [rsp+40h] [rbp-60h]
__int128 v14; // [rsp+48h] [rbp-58h]
__int128 v15; // [rsp+58h] [rbp-48h]
long long v16; // [rsp+68h] [rbp-38h]
int v17; // [rsp+70h] [rbp-30h]
long long v18; // [rsp+78h] [rbp-28h] BYREF
char v19; // [rsp+80h] [rbp-20h]
unsigned long long v20; // [rsp+88h] [rbp-18h]
v20 = __readfsqword(0x28u);
v18 = *(_QWORD *)(*((_QWORD *)this + 2) + 24LL);
v19 = 0;
std::unique_lock<wsrep::mutex>::lock(&v18);
v19 = 1;
v1 = "after_rollback_enter";
wsrep::transaction::debug_log_state(this, "after_rollback_enter");
if ( !*((_QWORD *)this + 25) )
{
LABEL_9:
v6 = *((_DWORD *)this + 12);
goto LABEL_10;
}
if ( *((_BYTE *)this + 92) == 1 )
{
if ( !v19 )
std::__throw_system_error(1);
if ( v18 )
{
(*(void ( **)(long long))(*(_QWORD *)v18 + 24LL))(v18);
v19 = 0;
}
v2 = *((_QWORD *)this + 1);
v3 = (*(long long ( **)(_QWORD, long long))(**(_QWORD **)this + 16LL))(*(_QWORD *)this, v2);
`anonymous namespace'::scoped_storage_service<`anonymous namespace'::storage_service_deleter>::scoped_storage_service(
&v10,
v2,
v3,
*(_QWORD *)this);
v4 = v11;
(*(void ( **)(long long, wsrep::transaction *))(*(_QWORD *)v11 + 24LL))(v11, this);
(*(void ( **)(long long))(*(_QWORD *)v4 + 48LL))(v4);
v1 = (const char *)v9;
v9[0] = -1LL;
v9[1] = 0LL;
v12 = 0LL;
v13 = -1LL;
v14 = 0LL;
v15 = -1LL;
v16 = -1LL;
v17 = 0;
(*(void ( **)(long long, _QWORD *, __int128 *))(*(_QWORD *)v4 + 56LL))(v4, v9, &v12);
`anonymous namespace'::scoped_storage_service<`anonymous namespace'::storage_service_deleter>::~scoped_storage_service(&v10);
std::unique_lock<wsrep::mutex>::lock(&v18);
*((_QWORD *)this + 25) = 0LL;
v5 = *((_QWORD *)this + 26);
if ( *((_QWORD *)this + 27) != v5 )
*((_QWORD *)this + 27) = v5;
*((_QWORD *)this + 29) = -1LL;
*((_OWORD *)this + 16) = 0LL;
goto LABEL_9;
}
v6 = *((_DWORD *)this + 12);
if ( v6 != 11 )
{
*((_QWORD *)this + 25) = 0LL;
v8 = *((_QWORD *)this + 26);
if ( *((_QWORD *)this + 27) != v8 )
*((_QWORD *)this + 27) = v8;
*((_QWORD *)this + 29) = -1LL;
*((_OWORD *)this + 16) = 0LL;
}
LABEL_10:
if ( v6 == 9 )
wsrep::transaction::state((long long)this, (long long)v1, 0xAu);
wsrep::transaction::debug_log_state(this, "after_rollback_leave");
std::unique_lock<wsrep::mutex>::~unique_lock((long long)&v18);
return 0LL;
}
|
operator=:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RDI
CMP RSI,RDI
JZ 0x00d58273
MOV R15,RSI
MOV RDX,qword ptr [RSI + 0x8]
MOV RCX,qword ptr [RSI + 0x10]
MOV R14,RCX
SUB R14,RDX
MOV RDI,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RBX + 0x18]
SUB RAX,RDI
CMP R14,RAX
JBE 0x00d58215
MOV RSI,R14
SAR RSI,0x3
MOV RDI,RBX
CALL 0x00d5829c
MOV R15,RAX
MOV RAX,qword ptr [RBX + 0x8]
TEST RAX,RAX
JZ 0x00d58208
LEA R12,[RAX + -0x18]
LEA RCX,[0x1626f08]
MOV RCX,qword ptr [RCX]
MOV EDI,dword ptr [RAX + -0x18]
MOV RSI,qword ptr [RAX + -0x8]
MOV RDX,qword ptr [RAX + -0x10]
CALL qword ptr [RCX + 0x3f8]
MOV RDI,R12
CALL 0x0072a4d8
LAB_00d58208:
MOV qword ptr [RBX + 0x8],R15
ADD R15,R14
MOV qword ptr [RBX + 0x18],R15
JMP 0x00d5826b
LAB_00d58215:
MOV RAX,qword ptr [RBX + 0x10]
SUB RAX,RDI
CMP RAX,R14
JNC 0x00d5825a
CMP RAX,0x9
JL 0x00d5827f
MOV RSI,RDX
MOV RDX,RAX
CALL 0x007283a0
LAB_00d58232:
MOV RAX,qword ptr [RBX + 0x10]
MOV RCX,RAX
SUB RCX,qword ptr [RBX + 0x8]
ADD RCX,qword ptr [R15 + 0x8]
MOV RDX,qword ptr [R15 + 0x10]
LAB_00d58245:
CMP RCX,RDX
JZ 0x00d5826b
MOV RSI,qword ptr [RCX]
MOV qword ptr [RAX],RSI
ADD RCX,0x8
ADD RAX,0x8
JMP 0x00d58245
LAB_00d5825a:
CMP R14,0x9
JL 0x00d5828d
MOV RSI,RDX
MOV RDX,R14
CALL 0x007283a0
LAB_00d5826b:
ADD R14,qword ptr [RBX + 0x8]
MOV qword ptr [RBX + 0x10],R14
LAB_00d58273:
MOV RAX,RBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_00d5827f:
CMP RAX,0x8
JNZ 0x00d58232
MOV RAX,qword ptr [RDX]
MOV qword ptr [RDI],RAX
JMP 0x00d58232
LAB_00d5828d:
CMP R14,0x8
JNZ 0x00d5826b
MOV RAX,qword ptr [RDX]
MOV qword ptr [RDI],RAX
JMP 0x00d5826b
|
/* std::vector<trx_rseg_t*, ut_allocator<trx_rseg_t*, true>
>::TEMPNAMEPLACEHOLDERVALUE(std::vector<trx_rseg_t*, ut_allocator<trx_rseg_t*, true> > const&) */
vector<trx_rseg_t*,ut_allocator<trx_rseg_t*,true>> * __thiscall
std::vector<trx_rseg_t*,ut_allocator<trx_rseg_t*,true>>::operator=
(vector<trx_rseg_t*,ut_allocator<trx_rseg_t*,true>> *this,vector *param_1)
{
int8 *puVar1;
long lVar2;
trx_rseg_t **pptVar3;
ulong __n;
int8 *puVar4;
int8 *puVar5;
ulong __n_00;
if (param_1 != (vector *)this) {
puVar4 = *(int8 **)(param_1 + 8);
__n_00 = *(long *)(param_1 + 0x10) - (long)puVar4;
puVar1 = *(int8 **)(this + 8);
if ((ulong)(*(long *)(this + 0x18) - (long)puVar1) < __n_00) {
pptVar3 = _M_allocate_and_copy<__gnu_cxx::__normal_iterator<trx_rseg_t*const*,std::vector<trx_rseg_t*,ut_allocator<trx_rseg_t*,true>>>>
(this,(long)__n_00 >> 3);
lVar2 = *(long *)(this + 8);
if (lVar2 != 0) {
(**(code **)(PSI_server + 0x3f8))
(*(int4 *)(lVar2 + -0x18),*(int8 *)(lVar2 + -8),
*(int8 *)(lVar2 + -0x10));
free((void *)(lVar2 + -0x18));
}
*(trx_rseg_t ***)(this + 8) = pptVar3;
*(ulong *)(this + 0x18) = (long)pptVar3 + __n_00;
}
else {
__n = *(long *)(this + 0x10) - (long)puVar1;
if (__n < __n_00) {
if ((long)__n < 9) {
if (__n == 8) {
*puVar1 = *puVar4;
}
}
else {
memmove(puVar1,puVar4,__n);
}
puVar4 = *(int8 **)(this + 0x10);
puVar1 = *(int8 **)(param_1 + 0x10);
for (puVar5 = (int8 *)((long)puVar4 + (*(long *)(param_1 + 8) - *(long *)(this + 8)));
puVar5 != puVar1; puVar5 = puVar5 + 1) {
*puVar4 = *puVar5;
puVar4 = puVar4 + 1;
}
}
else if ((long)__n_00 < 9) {
if (__n_00 == 8) {
*puVar1 = *puVar4;
}
}
else {
memmove(puVar1,puVar4,__n_00);
}
}
*(ulong *)(this + 0x10) = __n_00 + *(long *)(this + 8);
}
return this;
}
|
|
57,435
|
my_instr_simple
|
eloqsql/strings/ctype-simple.c
|
uint my_instr_simple(CHARSET_INFO *cs,
const char *b, size_t b_length,
const char *s, size_t s_length,
my_match_t *match, uint nmatch)
{
register const uchar *str, *search, *end, *search_end;
if (s_length <= b_length)
{
if (!s_length)
{
if (nmatch)
{
match->beg= 0;
match->end= 0;
match->mb_len= 0;
}
return 1; /* Empty string is always found */
}
str= (const uchar*) b;
search= (const uchar*) s;
end= (const uchar*) b+b_length-s_length+1;
search_end= (const uchar*) s + s_length;
skip:
while (str != end)
{
if (cs->sort_order[*str++] == cs->sort_order[*search])
{
register const uchar *i,*j;
i= str;
j= search+1;
while (j != search_end)
if (cs->sort_order[*i++] != cs->sort_order[*j++])
goto skip;
if (nmatch > 0)
{
match[0].beg= 0;
match[0].end= (uint) (str- (const uchar*)b-1);
match[0].mb_len= match[0].end;
if (nmatch > 1)
{
match[1].beg= match[0].end;
match[1].end= (uint)(match[0].end+s_length);
match[1].mb_len= match[1].end-match[1].beg;
}
}
return 2;
}
}
}
return 0;
}
|
O0
|
c
|
my_instr_simple:
pushq %rbp
movq %rsp, %rbp
movl 0x10(%rbp), %eax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x20(%rbp), %rax
ja 0xc457e
cmpq $0x0, -0x30(%rbp)
jne 0xc4416
cmpl $0x0, 0x10(%rbp)
je 0xc440a
movq -0x38(%rbp), %rax
movl $0x0, (%rax)
movq -0x38(%rbp), %rax
movl $0x0, 0x4(%rax)
movq -0x38(%rbp), %rax
movl $0x0, 0x8(%rax)
movl $0x1, -0x4(%rbp)
jmp 0xc4585
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
addq -0x20(%rbp), %rax
xorl %ecx, %ecx
subq -0x30(%rbp), %rcx
addq %rcx, %rax
addq $0x1, %rax
movq %rax, -0x50(%rbp)
movq -0x28(%rbp), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x58(%rbp)
jmp 0xc444d
movq -0x40(%rbp), %rax
cmpq -0x50(%rbp), %rax
je 0xc457c
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rax
movq -0x40(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x40(%rbp)
movzbl (%rcx), %ecx
movzbl (%rax,%rcx), %eax
movq -0x10(%rbp), %rcx
movq 0x58(%rcx), %rcx
movq -0x48(%rbp), %rdx
movzbl (%rdx), %edx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jne 0xc4577
movq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
cmpq -0x58(%rbp), %rax
je 0xc44f9
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rax
movq -0x60(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x60(%rbp)
movzbl (%rcx), %ecx
movzbl (%rax,%rcx), %eax
movq -0x10(%rbp), %rcx
movq 0x58(%rcx), %rcx
movq -0x68(%rbp), %rdx
movq %rdx, %rsi
addq $0x1, %rsi
movq %rsi, -0x68(%rbp)
movzbl (%rdx), %edx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
je 0xc44f7
jmp 0xc444b
jmp 0xc44a8
cmpl $0x0, 0x10(%rbp)
jbe 0xc456e
movq -0x38(%rbp), %rax
movl $0x0, (%rax)
movq -0x40(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
subq $0x1, %rax
movl %eax, %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x38(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x8(%rax)
cmpl $0x1, 0x10(%rbp)
jbe 0xc456c
movq -0x38(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
addq -0x30(%rbp), %rax
movl %eax, %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x38(%rbp), %rax
movl 0x10(%rax), %ecx
movq -0x38(%rbp), %rax
subl 0xc(%rax), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x14(%rax)
jmp 0xc456e
movl $0x2, -0x4(%rbp)
jmp 0xc4585
jmp 0xc444d
jmp 0xc457e
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw (%rax,%rax)
|
my_instr_simple:
push rbp
mov rbp, rsp
mov eax, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
mov rax, [rbp+var_30]
cmp rax, [rbp+var_20]
ja loc_C457E
cmp [rbp+var_30], 0
jnz short loc_C4416
cmp [rbp+arg_0], 0
jz short loc_C440A
mov rax, [rbp+var_38]
mov dword ptr [rax], 0
mov rax, [rbp+var_38]
mov dword ptr [rax+4], 0
mov rax, [rbp+var_38]
mov dword ptr [rax+8], 0
loc_C440A:
mov [rbp+var_4], 1
jmp loc_C4585
loc_C4416:
mov rax, [rbp+var_18]
mov [rbp+var_40], rax
mov rax, [rbp+var_28]
mov [rbp+var_48], rax
mov rax, [rbp+var_18]
add rax, [rbp+var_20]
xor ecx, ecx
sub rcx, [rbp+var_30]
add rax, rcx
add rax, 1
mov [rbp+var_50], rax
mov rax, [rbp+var_28]
add rax, [rbp+var_30]
mov [rbp+var_58], rax
loc_C444B:
jmp short $+2
loc_C444D:
mov rax, [rbp+var_40]
cmp rax, [rbp+var_50]
jz loc_C457C
mov rax, [rbp+var_10]
mov rax, [rax+58h]
mov rcx, [rbp+var_40]
mov rdx, rcx
add rdx, 1
mov [rbp+var_40], rdx
movzx ecx, byte ptr [rcx]
movzx eax, byte ptr [rax+rcx]
mov rcx, [rbp+var_10]
mov rcx, [rcx+58h]
mov rdx, [rbp+var_48]
movzx edx, byte ptr [rdx]
movzx ecx, byte ptr [rcx+rdx]
cmp eax, ecx
jnz loc_C4577
mov rax, [rbp+var_40]
mov [rbp+var_60], rax
mov rax, [rbp+var_48]
add rax, 1
mov [rbp+var_68], rax
loc_C44A8:
mov rax, [rbp+var_68]
cmp rax, [rbp+var_58]
jz short loc_C44F9
mov rax, [rbp+var_10]
mov rax, [rax+58h]
mov rcx, [rbp+var_60]
mov rdx, rcx
add rdx, 1
mov [rbp+var_60], rdx
movzx ecx, byte ptr [rcx]
movzx eax, byte ptr [rax+rcx]
mov rcx, [rbp+var_10]
mov rcx, [rcx+58h]
mov rdx, [rbp+var_68]
mov rsi, rdx
add rsi, 1
mov [rbp+var_68], rsi
movzx edx, byte ptr [rdx]
movzx ecx, byte ptr [rcx+rdx]
cmp eax, ecx
jz short loc_C44F7
jmp loc_C444B
loc_C44F7:
jmp short loc_C44A8
loc_C44F9:
cmp [rbp+arg_0], 0
jbe short loc_C456E
mov rax, [rbp+var_38]
mov dword ptr [rax], 0
mov rax, [rbp+var_40]
mov rcx, [rbp+var_18]
sub rax, rcx
sub rax, 1
mov ecx, eax
mov rax, [rbp+var_38]
mov [rax+4], ecx
mov rax, [rbp+var_38]
mov ecx, [rax+4]
mov rax, [rbp+var_38]
mov [rax+8], ecx
cmp [rbp+arg_0], 1
jbe short loc_C456C
mov rax, [rbp+var_38]
mov ecx, [rax+4]
mov rax, [rbp+var_38]
mov [rax+0Ch], ecx
mov rax, [rbp+var_38]
mov eax, [rax+4]
add rax, [rbp+var_30]
mov ecx, eax
mov rax, [rbp+var_38]
mov [rax+10h], ecx
mov rax, [rbp+var_38]
mov ecx, [rax+10h]
mov rax, [rbp+var_38]
sub ecx, [rax+0Ch]
mov rax, [rbp+var_38]
mov [rax+14h], ecx
loc_C456C:
jmp short $+2
loc_C456E:
mov [rbp+var_4], 2
jmp short loc_C4585
loc_C4577:
jmp loc_C444D
loc_C457C:
jmp short $+2
loc_C457E:
mov [rbp+var_4], 0
loc_C4585:
mov eax, [rbp+var_4]
pop rbp
retn
|
long long my_instr_simple(
long long a1,
unsigned __int8 *a2,
unsigned long long a3,
unsigned __int8 *a4,
unsigned long long a5,
_DWORD *a6,
unsigned int a7)
{
unsigned __int8 *v7; // rcx
unsigned __int8 *v8; // rcx
unsigned __int8 *v9; // rdx
unsigned __int8 *v11; // [rsp+0h] [rbp-68h]
unsigned __int8 *v12; // [rsp+8h] [rbp-60h]
unsigned __int8 *v13; // [rsp+10h] [rbp-58h]
long long v14; // [rsp+18h] [rbp-50h]
unsigned __int8 *v15; // [rsp+28h] [rbp-40h]
if ( a5 > a3 )
return 0;
if ( a5 )
{
v15 = a2;
v14 = (long long)&a2[a3 - a5 + 1];
v13 = &a4[a5];
LABEL_7:
while ( v15 != (unsigned __int8 *)v14 )
{
v7 = v15++;
if ( *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + *v7) == *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + *a4) )
{
v12 = v15;
v11 = a4 + 1;
while ( v11 != v13 )
{
v8 = v12++;
v9 = v11++;
if ( *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + *v8) != *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + *v9) )
goto LABEL_7;
}
if ( a7 )
{
*a6 = 0;
a6[1] = (_DWORD)v15 - (_DWORD)a2 - 1;
a6[2] = a6[1];
if ( a7 > 1 )
{
a6[3] = a6[1];
a6[4] = a5 + a6[1];
a6[5] = a6[4] - a6[3];
}
}
return 2;
}
}
return 0;
}
if ( a7 )
{
*a6 = 0;
a6[1] = 0;
a6[2] = 0;
}
return 1;
}
|
my_instr_simple:
PUSH RBP
MOV RBP,RSP
MOV EAX,dword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x20]
JA 0x001c457e
CMP qword ptr [RBP + -0x30],0x0
JNZ 0x001c4416
CMP dword ptr [RBP + 0x10],0x0
JZ 0x001c440a
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x4],0x0
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x8],0x0
LAB_001c440a:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001c4585
LAB_001c4416:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,qword ptr [RBP + -0x20]
XOR ECX,ECX
SUB RCX,qword ptr [RBP + -0x30]
ADD RAX,RCX
ADD RAX,0x1
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x58],RAX
LAB_001c444b:
JMP 0x001c444d
LAB_001c444d:
MOV RAX,qword ptr [RBP + -0x40]
CMP RAX,qword ptr [RBP + -0x50]
JZ 0x001c457c
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x58]
MOV RCX,qword ptr [RBP + -0x40]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x40],RDX
MOVZX ECX,byte ptr [RCX]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x58]
MOV RDX,qword ptr [RBP + -0x48]
MOVZX EDX,byte ptr [RDX]
MOVZX ECX,byte ptr [RCX + RDX*0x1]
CMP EAX,ECX
JNZ 0x001c4577
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x48]
ADD RAX,0x1
MOV qword ptr [RBP + -0x68],RAX
LAB_001c44a8:
MOV RAX,qword ptr [RBP + -0x68]
CMP RAX,qword ptr [RBP + -0x58]
JZ 0x001c44f9
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x58]
MOV RCX,qword ptr [RBP + -0x60]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x60],RDX
MOVZX ECX,byte ptr [RCX]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x58]
MOV RDX,qword ptr [RBP + -0x68]
MOV RSI,RDX
ADD RSI,0x1
MOV qword ptr [RBP + -0x68],RSI
MOVZX EDX,byte ptr [RDX]
MOVZX ECX,byte ptr [RCX + RDX*0x1]
CMP EAX,ECX
JZ 0x001c44f7
JMP 0x001c444b
LAB_001c44f7:
JMP 0x001c44a8
LAB_001c44f9:
CMP dword ptr [RBP + 0x10],0x0
JBE 0x001c456e
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x18]
SUB RAX,RCX
SUB RAX,0x1
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x4],ECX
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RAX + 0x4]
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x8],ECX
CMP dword ptr [RBP + 0x10],0x1
JBE 0x001c456c
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RAX + 0x4]
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0xc],ECX
MOV RAX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RAX + 0x4]
ADD RAX,qword ptr [RBP + -0x30]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x10],ECX
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x38]
SUB ECX,dword ptr [RAX + 0xc]
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x14],ECX
LAB_001c456c:
JMP 0x001c456e
LAB_001c456e:
MOV dword ptr [RBP + -0x4],0x2
JMP 0x001c4585
LAB_001c4577:
JMP 0x001c444d
LAB_001c457c:
JMP 0x001c457e
LAB_001c457e:
MOV dword ptr [RBP + -0x4],0x0
LAB_001c4585:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4
my_instr_simple(long param_1,byte *param_2,ulong param_3,byte *param_4,ulong param_5,
int4 *param_6,uint param_7)
{
byte bVar1;
byte bVar2;
byte *pbVar3;
byte *local_70;
byte *local_68;
byte *local_48;
if (param_5 <= param_3) {
if (param_5 == 0) {
if (param_7 != 0) {
*param_6 = 0;
param_6[1] = 0;
param_6[2] = 0;
}
return 1;
}
local_48 = param_2;
while (local_48 != param_2 + (param_3 - param_5) + 1) {
pbVar3 = local_48 + 1;
bVar1 = *local_48;
local_48 = pbVar3;
if (*(char *)(*(long *)(param_1 + 0x58) + (ulong)bVar1) ==
*(char *)(*(long *)(param_1 + 0x58) + (ulong)*param_4)) {
local_70 = param_4 + 1;
local_68 = pbVar3;
do {
if (local_70 == param_4 + param_5) {
if (param_7 != 0) {
*param_6 = 0;
param_6[1] = ((int)pbVar3 - (int)param_2) + -1;
param_6[2] = param_6[1];
if (1 < param_7) {
param_6[3] = param_6[1];
param_6[4] = param_6[1] + (int)param_5;
param_6[5] = param_6[4] - param_6[3];
}
}
return 2;
}
bVar1 = *local_68;
bVar2 = *local_70;
local_70 = local_70 + 1;
local_68 = local_68 + 1;
} while (*(char *)(*(long *)(param_1 + 0x58) + (ulong)bVar1) ==
*(char *)(*(long *)(param_1 + 0x58) + (ulong)bVar2));
}
}
}
return 0;
}
|
|
57,436
|
normalize_dirname
|
eloqsql/mysys/mf_pack.c
|
size_t normalize_dirname(char *to, const char *from)
{
size_t length;
char buff[FN_REFLEN + 1];
DBUG_ENTER("normalize_dirname");
/*
Despite the name, this actually converts the name to the system's
format (TODO: name this properly).
*/
(void) intern_filename(buff, from);
length= strlen(buff); /* Fix that '/' is last */
if (length &&
#ifdef FN_DEVCHAR
buff[length - 1] != FN_DEVCHAR &&
#endif
buff[length - 1] != FN_LIBCHAR && buff[length - 1] != '/')
{
/* we need reserve 2 bytes for the trailing slash and the zero */
if (length >= sizeof (buff) - 1)
length= sizeof (buff) - 2;
buff[length]= FN_LIBCHAR;
buff[length + 1]= '\0';
}
length=cleanup_dirname(to, buff);
DBUG_RETURN(length);
}
|
O3
|
c
|
normalize_dirname:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x210, %rsp # imm = 0x210
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x18(%rbp)
leaq -0x220(%rbp), %r14
movq %r14, %rdi
callq 0x34f49
movq %r14, %rdi
callq 0x24170
testq %rax, %rax
je 0x3529f
cmpb $0x2f, -0x1(%rax,%r14)
je 0x3529f
movl $0x1ff, %ecx # imm = 0x1FF
cmpq %rcx, %rax
cmovbq %rax, %rcx
movw $0x2f, -0x220(%rbp,%rcx)
leaq -0x220(%rbp), %rsi
movq %rbx, %rdi
callq 0x34fdf
movq %fs:0x28, %rcx
cmpq -0x18(%rbp), %rcx
jne 0x352c9
addq $0x210, %rsp # imm = 0x210
popq %rbx
popq %r14
popq %rbp
retq
callq 0x243e0
|
normalize_dirname:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 210h
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_18], rax
lea r14, [rbp+var_220]
mov rdi, r14
call intern_filename
mov rdi, r14
call _strlen
test rax, rax
jz short loc_3529F
cmp byte ptr [rax+r14-1], 2Fh ; '/'
jz short loc_3529F
mov ecx, 1FFh
cmp rax, rcx
cmovb rcx, rax
mov [rbp+rcx+var_220], 2Fh ; '/'
loc_3529F:
lea rsi, [rbp+var_220]
mov rdi, rbx
call cleanup_dirname
mov rcx, fs:28h
cmp rcx, [rbp+var_18]
jnz short loc_352C9
add rsp, 210h
pop rbx
pop r14
pop rbp
retn
loc_352C9:
call ___stack_chk_fail
|
long long normalize_dirname(long long a1, _BYTE *a2)
{
unsigned long long v2; // rax
long long v3; // rcx
unsigned __int8 v5[520]; // [rsp+0h] [rbp-220h] BYREF
unsigned long long v6; // [rsp+208h] [rbp-18h]
v6 = __readfsqword(0x28u);
intern_filename((long long)v5, a2);
v2 = strlen(v5);
if ( v2 && v5[v2 - 1] != 47 )
{
v3 = 511LL;
if ( v2 < 0x1FF )
v3 = v2;
*(_WORD *)&v5[v3] = 47;
}
return cleanup_dirname(a1, v5);
}
|
normalize_dirname:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x210
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x18],RAX
LEA R14,[RBP + -0x220]
MOV RDI,R14
CALL 0x00134f49
MOV RDI,R14
CALL 0x00124170
TEST RAX,RAX
JZ 0x0013529f
CMP byte ptr [RAX + R14*0x1 + -0x1],0x2f
JZ 0x0013529f
MOV ECX,0x1ff
CMP RAX,RCX
CMOVC RCX,RAX
MOV word ptr [RBP + RCX*0x1 + -0x220],0x2f
LAB_0013529f:
LEA RSI,[RBP + -0x220]
MOV RDI,RBX
CALL 0x00134fdf
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x18]
JNZ 0x001352c9
ADD RSP,0x210
POP RBX
POP R14
POP RBP
RET
LAB_001352c9:
CALL 0x001243e0
|
void normalize_dirname(int8 param_1)
{
size_t sVar1;
size_t sVar2;
long in_FS_OFFSET;
int8 uStack_230;
char local_228 [520];
long local_20;
local_20 = *(long *)(in_FS_OFFSET + 0x28);
uStack_230 = (code *)0x135274;
intern_filename(local_228);
uStack_230 = (code *)0x13527c;
sVar1 = strlen(local_228);
if ((sVar1 != 0) && (local_228[sVar1 - 1] != '/')) {
sVar2 = 0x1ff;
if (sVar1 < 0x1ff) {
sVar2 = sVar1;
}
(local_228 + sVar2)[0] = '/';
(local_228 + sVar2)[1] = '\0';
}
uStack_230 = (code *)0x1352ae;
cleanup_dirname(param_1,local_228);
if (*(long *)(in_FS_OFFSET + 0x28) == local_20) {
return;
}
/* WARNING: Subroutine does not return */
uStack_230 = unpack_dirname;
__stack_chk_fail();
}
|
|
57,437
|
mi_calc_bin_pack_key_length
|
eloqsql/storage/myisam/mi_search.c
|
int
_mi_calc_bin_pack_key_length(MI_KEYDEF *keyinfo,uint nod_flag,uchar *next_key,
uchar *org_key, uchar *prev_key, uchar *key,
MI_KEY_PARAM *s_temp)
{
uint length,key_length,ref_length;
s_temp->totlength=key_length=_mi_keylength(keyinfo,key)+nod_flag;
#ifdef HAVE_valgrind
s_temp->n_length= s_temp->n_ref_length=0; /* For valgrind */
#endif
s_temp->key=key;
s_temp->prev_key=org_key;
if (prev_key) /* If not first key in block */
{
/* pack key against previous key */
/*
As keys may be identical when running a sort in myisamchk, we
have to guard against the case where keys may be identical
*/
uchar *end;
end=key+key_length;
for ( ; *key == *prev_key && key < end; key++,prev_key++) ;
s_temp->ref_length= ref_length=(uint) (key-s_temp->key);
length=key_length - ref_length + get_pack_length(ref_length);
}
else
{
/* No previous key */
s_temp->ref_length=ref_length=0;
length=key_length+1;
}
if ((s_temp->next_key_pos=next_key)) /* If another key after */
{
/* pack key against next key */
uint next_length,next_length_pack;
get_key_pack_length(next_length,next_length_pack,next_key);
/* If first key and next key is packed (only on delete) */
if (!prev_key && org_key && next_length)
{
uchar *end;
for (key= s_temp->key, end=key+next_length ;
*key == *org_key && key < end;
key++,org_key++) ;
ref_length= (uint) (key - s_temp->key);
}
if (next_length > ref_length)
{
/* We put a key with different case between two keys with the same prefix
Extend next key to have same prefix as
this key */
s_temp->n_ref_length= ref_length;
s_temp->prev_length= next_length-ref_length;
s_temp->prev_key+= ref_length;
return (int) (length+ s_temp->prev_length - next_length_pack +
get_pack_length(ref_length));
}
/* Check how many characters are identical to next key */
key= s_temp->key+next_length;
s_temp->prev_length= 0;
while (*key++ == *next_key++) ;
if ((ref_length= (uint) (key - s_temp->key)-1) == next_length)
{
s_temp->next_key_pos=0;
return length; /* can't pack next key */
}
s_temp->n_ref_length=ref_length;
return (int) (length-(ref_length - next_length) - next_length_pack +
get_pack_length(ref_length));
}
return (int) length;
}
|
O3
|
c
|
mi_calc_bin_pack_key_length:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r14
movl %esi, %r13d
movq %r9, %rsi
callq 0x86378
addl %r13d, %eax
movq 0x10(%rbp), %r13
movl %eax, 0x10(%r13)
movq %rbx, 0x20(%r13)
movq %r12, 0x28(%r13)
testq %r15, %r15
je 0x870d7
movb (%rbx), %cl
cmpb (%r15), %cl
sete %cl
testl %eax, %eax
setne %sil
andb %cl, %sil
movq %rbx, %rdx
cmpb $0x1, %sil
jne 0x870bd
movl %eax, %ecx
addq %rbx, %rcx
leaq 0x1(%r15), %rsi
leaq 0x1(%rbx), %rdi
movb (%rdi), %r8b
leaq 0x1(%rdi), %rdx
cmpb (%rsi), %r8b
jne 0x870ba
incq %rsi
cmpq %rcx, %rdi
movq %rdx, %rdi
jb 0x870a3
decq %rdx
subl %ebx, %edx
movl %edx, (%r13)
subl %edx, %eax
xorl %ecx, %ecx
cmpl $0xff, %edx
setae %cl
leal (%rax,%rcx,2), %eax
incl %eax
jmp 0x870e3
movl $0x0, (%r13)
incl %eax
xorl %edx, %edx
movq %r14, 0x30(%r13)
testq %r14, %r14
je 0x871e5
movzbl (%r14), %esi
cmpl $0xff, %esi
je 0x87108
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
movl $0x1, %edi
jmp 0x8711e
movzwl 0x1(%r14), %ecx
rolw $0x8, %cx
movzwl %cx, %esi
movl $0xfffffffd, %ecx # imm = 0xFFFFFFFD
movl $0x3, %edi
testq %r12, %r12
je 0x87163
testq %r15, %r15
jne 0x87163
testl %esi, %esi
je 0x87163
movb (%rbx), %r8b
movq %rbx, %rdx
cmpb (%r12), %r8b
jne 0x87161
movl %esi, %r8d
addq %rbx, %r8
leaq 0x1(%r12), %r9
leaq 0x1(%rbx), %r10
movb (%r10), %r11b
leaq 0x1(%r10), %rdx
cmpb (%r9), %r11b
jne 0x8715e
incq %r9
cmpq %r8, %r10
movq %rdx, %r10
jb 0x87147
decq %rdx
subl %ebx, %edx
movl %esi, %r8d
subl %edx, %r8d
jbe 0x87194
movl %edx, 0x8(%r13)
movl %r8d, 0x18(%r13)
movl %edx, %esi
addq %rsi, %r12
movq %r12, 0x28(%r13)
xorl %esi, %esi
cmpl $0xff, %edx
setae %sil
addl %eax, %ecx
addl %r8d, %ecx
leal (%rcx,%rsi,2), %eax
incl %eax
jmp 0x871e5
addq %rdi, %r14
movl %esi, %esi
addq %rsi, %rbx
movl $0x0, 0x18(%r13)
xorl %edx, %edx
movq %rdx, %rdi
movb (%rbx,%rdx), %r8b
incq %rdx
cmpb (%r14,%rdi), %r8b
je 0x871a6
cmpl $0x1, %edx
jne 0x871c5
movq $0x0, 0x30(%r13)
jmp 0x871e5
addq %rdx, %rsi
decq %rsi
movl %esi, 0x8(%r13)
xorl %edi, %edi
cmpl $0xff, %esi
setae %dil
addl %ecx, %eax
leal (%rax,%rdi,2), %eax
subl %edx, %eax
addl $0x2, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_mi_calc_bin_pack_key_length:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, r9
mov r15, r8
mov r12, rcx
mov r14, rdx
mov r13d, esi
mov rsi, r9
call _mi_keylength
add eax, r13d
mov r13, [rbp+arg_0]
mov [r13+10h], eax
mov [r13+20h], rbx
mov [r13+28h], r12
test r15, r15
jz short loc_870D7
mov cl, [rbx]
cmp cl, [r15]
setz cl
test eax, eax
setnz sil
and sil, cl
mov rdx, rbx
cmp sil, 1
jnz short loc_870BD
mov ecx, eax
add rcx, rbx
lea rsi, [r15+1]
lea rdi, [rbx+1]
loc_870A3:
mov r8b, [rdi]
lea rdx, [rdi+1]
cmp r8b, [rsi]
jnz short loc_870BA
inc rsi
cmp rdi, rcx
mov rdi, rdx
jb short loc_870A3
loc_870BA:
dec rdx
loc_870BD:
sub edx, ebx
mov [r13+0], edx
sub eax, edx
xor ecx, ecx
cmp edx, 0FFh
setnb cl
lea eax, [rax+rcx*2]
inc eax
jmp short loc_870E3
loc_870D7:
mov dword ptr [r13+0], 0
inc eax
xor edx, edx
loc_870E3:
mov [r13+30h], r14
test r14, r14
jz loc_871E5
movzx esi, byte ptr [r14]
cmp esi, 0FFh
jz short loc_87108
mov ecx, 0FFFFFFFFh
mov edi, 1
jmp short loc_8711E
loc_87108:
movzx ecx, word ptr [r14+1]
rol cx, 8
movzx esi, cx
mov ecx, 0FFFFFFFDh
mov edi, 3
loc_8711E:
test r12, r12
jz short loc_87163
test r15, r15
jnz short loc_87163
test esi, esi
jz short loc_87163
mov r8b, [rbx]
mov rdx, rbx
cmp r8b, [r12]
jnz short loc_87161
mov r8d, esi
add r8, rbx
lea r9, [r12+1]
lea r10, [rbx+1]
loc_87147:
mov r11b, [r10]
lea rdx, [r10+1]
cmp r11b, [r9]
jnz short loc_8715E
inc r9
cmp r10, r8
mov r10, rdx
jb short loc_87147
loc_8715E:
dec rdx
loc_87161:
sub edx, ebx
loc_87163:
mov r8d, esi
sub r8d, edx
jbe short loc_87194
mov [r13+8], edx
mov [r13+18h], r8d
mov esi, edx
add r12, rsi
mov [r13+28h], r12
xor esi, esi
cmp edx, 0FFh
setnb sil
add ecx, eax
add ecx, r8d
lea eax, [rcx+rsi*2]
inc eax
jmp short loc_871E5
loc_87194:
add r14, rdi
mov esi, esi
add rbx, rsi
mov dword ptr [r13+18h], 0
xor edx, edx
loc_871A6:
mov rdi, rdx
mov r8b, [rbx+rdx]
inc rdx
cmp r8b, [r14+rdi]
jz short loc_871A6
cmp edx, 1
jnz short loc_871C5
mov qword ptr [r13+30h], 0
jmp short loc_871E5
loc_871C5:
add rsi, rdx
dec rsi
mov [r13+8], esi
xor edi, edi
cmp esi, 0FFh
setnb dil
add eax, ecx
lea eax, [rax+rdi*2]
sub eax, edx
add eax, 2
loc_871E5:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long mi_calc_bin_pack_key_length(
long long a1,
int a2,
unsigned __int8 *a3,
_BYTE *a4,
_BYTE *a5,
unsigned __int8 *a6,
long long a7)
{
int v11; // eax
int v12; // edx
_BYTE *v13; // rsi
unsigned __int8 *v14; // rdi
int v15; // edx
bool v16; // cf
unsigned int v17; // edx
long long result; // rax
unsigned int v19; // esi
int v20; // ecx
long long v21; // rdi
int v22; // edx
_BYTE *v23; // r9
unsigned __int8 *v24; // r10
int v25; // edx
int v26; // r8d
unsigned __int8 *v27; // r14
unsigned __int8 *v28; // rbx
long long v29; // rdx
long long v30; // rdi
unsigned __int8 v31; // r8
unsigned int v32; // esi
v11 = a2 + mi_keylength(a1, a6);
*(_DWORD *)(a7 + 16) = v11;
*(_QWORD *)(a7 + 32) = a6;
*(_QWORD *)(a7 + 40) = a4;
if ( a5 )
{
v12 = (int)a6;
if ( *a6 == *a5 && v11 != 0 )
{
v13 = a5 + 1;
v14 = a6 + 1;
do
{
v15 = (_DWORD)v14 + 1;
if ( *v14 != *v13 )
break;
++v13;
v16 = v14++ < &a6[v11];
}
while ( v16 );
v12 = v15 - 1;
}
v17 = v12 - (_DWORD)a6;
*(_DWORD *)a7 = v17;
result = v11 - v17 + 2 * (v17 >= 0xFF) + 1;
}
else
{
*(_DWORD *)a7 = 0;
result = (unsigned int)(v11 + 1);
v17 = 0;
}
*(_QWORD *)(a7 + 48) = a3;
if ( a3 )
{
v19 = *a3;
if ( v19 == 255 )
{
v19 = (unsigned __int16)__ROL2__(*(_WORD *)(a3 + 1), 8);
v20 = -3;
v21 = 3LL;
}
else
{
v20 = -1;
v21 = 1LL;
}
if ( a4 && !a5 && v19 )
{
v22 = (int)a6;
if ( *a6 == *a4 )
{
v23 = a4 + 1;
v24 = a6 + 1;
do
{
v25 = (_DWORD)v24 + 1;
if ( *v24 != *v23 )
break;
++v23;
v16 = v24++ < &a6[v19];
}
while ( v16 );
v22 = v25 - 1;
}
v17 = v22 - (_DWORD)a6;
}
v26 = v19 - v17;
if ( v19 <= v17 )
{
v27 = &a3[v21];
v28 = &a6[v19];
*(_DWORD *)(a7 + 24) = 0;
v29 = 0LL;
do
{
v30 = v29;
v31 = v28[v29++];
}
while ( v31 == v27[v30] );
if ( (_DWORD)v29 == 1 )
{
*(_QWORD *)(a7 + 48) = 0LL;
}
else
{
v32 = v29 + v19 - 1;
*(_DWORD *)(a7 + 8) = v32;
return v20 + (_DWORD)result + 2 * (v32 >= 0xFF) - (unsigned int)v29 + 2;
}
}
else
{
*(_DWORD *)(a7 + 8) = v17;
*(_DWORD *)(a7 + 24) = v26;
*(_QWORD *)(a7 + 40) = &a4[v17];
return v26 + (_DWORD)result + v20 + 2 * (unsigned int)(v17 >= 0xFF) + 1;
}
}
return result;
}
|
_mi_calc_bin_pack_key_length:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,R9
MOV R15,R8
MOV R12,RCX
MOV R14,RDX
MOV R13D,ESI
MOV RSI,R9
CALL 0x00186378
ADD EAX,R13D
MOV R13,qword ptr [RBP + 0x10]
MOV dword ptr [R13 + 0x10],EAX
MOV qword ptr [R13 + 0x20],RBX
MOV qword ptr [R13 + 0x28],R12
TEST R15,R15
JZ 0x001870d7
MOV CL,byte ptr [RBX]
CMP CL,byte ptr [R15]
SETZ CL
TEST EAX,EAX
SETNZ SIL
AND SIL,CL
MOV RDX,RBX
CMP SIL,0x1
JNZ 0x001870bd
MOV ECX,EAX
ADD RCX,RBX
LEA RSI,[R15 + 0x1]
LEA RDI,[RBX + 0x1]
LAB_001870a3:
MOV R8B,byte ptr [RDI]
LEA RDX,[RDI + 0x1]
CMP R8B,byte ptr [RSI]
JNZ 0x001870ba
INC RSI
CMP RDI,RCX
MOV RDI,RDX
JC 0x001870a3
LAB_001870ba:
DEC RDX
LAB_001870bd:
SUB EDX,EBX
MOV dword ptr [R13],EDX
SUB EAX,EDX
XOR ECX,ECX
CMP EDX,0xff
SETNC CL
LEA EAX,[RAX + RCX*0x2]
INC EAX
JMP 0x001870e3
LAB_001870d7:
MOV dword ptr [R13],0x0
INC EAX
XOR EDX,EDX
LAB_001870e3:
MOV qword ptr [R13 + 0x30],R14
TEST R14,R14
JZ 0x001871e5
MOVZX ESI,byte ptr [R14]
CMP ESI,0xff
JZ 0x00187108
MOV ECX,0xffffffff
MOV EDI,0x1
JMP 0x0018711e
LAB_00187108:
MOVZX ECX,word ptr [R14 + 0x1]
ROL CX,0x8
MOVZX ESI,CX
MOV ECX,0xfffffffd
MOV EDI,0x3
LAB_0018711e:
TEST R12,R12
JZ 0x00187163
TEST R15,R15
JNZ 0x00187163
TEST ESI,ESI
JZ 0x00187163
MOV R8B,byte ptr [RBX]
MOV RDX,RBX
CMP R8B,byte ptr [R12]
JNZ 0x00187161
MOV R8D,ESI
ADD R8,RBX
LEA R9,[R12 + 0x1]
LEA R10,[RBX + 0x1]
LAB_00187147:
MOV R11B,byte ptr [R10]
LEA RDX,[R10 + 0x1]
CMP R11B,byte ptr [R9]
JNZ 0x0018715e
INC R9
CMP R10,R8
MOV R10,RDX
JC 0x00187147
LAB_0018715e:
DEC RDX
LAB_00187161:
SUB EDX,EBX
LAB_00187163:
MOV R8D,ESI
SUB R8D,EDX
JBE 0x00187194
MOV dword ptr [R13 + 0x8],EDX
MOV dword ptr [R13 + 0x18],R8D
MOV ESI,EDX
ADD R12,RSI
MOV qword ptr [R13 + 0x28],R12
XOR ESI,ESI
CMP EDX,0xff
SETNC SIL
ADD ECX,EAX
ADD ECX,R8D
LEA EAX,[RCX + RSI*0x2]
INC EAX
JMP 0x001871e5
LAB_00187194:
ADD R14,RDI
MOV ESI,ESI
ADD RBX,RSI
MOV dword ptr [R13 + 0x18],0x0
XOR EDX,EDX
LAB_001871a6:
MOV RDI,RDX
MOV R8B,byte ptr [RBX + RDX*0x1]
INC RDX
CMP R8B,byte ptr [R14 + RDI*0x1]
JZ 0x001871a6
CMP EDX,0x1
JNZ 0x001871c5
MOV qword ptr [R13 + 0x30],0x0
JMP 0x001871e5
LAB_001871c5:
ADD RSI,RDX
DEC RSI
MOV dword ptr [R13 + 0x8],ESI
XOR EDI,EDI
CMP ESI,0xff
SETNC DIL
ADD EAX,ECX
LEA EAX,[RAX + RDI*0x2]
SUB EAX,EDX
ADD EAX,0x2
LAB_001871e5:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int _mi_calc_bin_pack_key_length
(int8 param_1,int param_2,byte *param_3,char *param_4,char *param_5,
char *param_6,uint *param_7)
{
char *pcVar1;
long lVar2;
long lVar3;
int iVar4;
uint uVar5;
int iVar6;
int iVar7;
uint uVar8;
int iVar9;
long lVar10;
long lVar11;
char *pcVar12;
char *pcVar13;
long lVar14;
uint uVar15;
bool bVar16;
iVar4 = _mi_keylength(param_1,param_6);
uVar5 = iVar4 + param_2;
param_7[4] = uVar5;
*(char **)(param_7 + 8) = param_6;
*(char **)(param_7 + 10) = param_4;
iVar4 = (int)param_6;
if (param_5 == (char *)0x0) {
*param_7 = 0;
uVar8 = 0;
}
else {
iVar7 = iVar4;
if (uVar5 != 0 && *param_6 == *param_5) {
pcVar12 = param_5 + 1;
pcVar13 = param_6 + 1;
do {
pcVar1 = pcVar13 + 1;
if (*pcVar13 != *pcVar12) break;
pcVar12 = pcVar12 + 1;
bVar16 = pcVar13 < param_6 + uVar5;
pcVar13 = pcVar1;
} while (bVar16);
iVar7 = (int)pcVar1 + -1;
}
uVar8 = iVar7 - iVar4;
*param_7 = uVar8;
uVar5 = (uVar5 - uVar8) + (uint)(0xfe < uVar8) * 2;
}
iVar7 = uVar5 + 1;
*(byte **)(param_7 + 0xc) = param_3;
if (param_3 != (byte *)0x0) {
uVar5 = (uint)*param_3;
if (*param_3 == 0xff) {
uVar5 = (uint)(ushort)(*(ushort *)(param_3 + 1) << 8 | *(ushort *)(param_3 + 1) >> 8);
iVar6 = -3;
lVar14 = 3;
}
else {
iVar6 = -1;
lVar14 = 1;
}
if (((param_4 != (char *)0x0) && (param_5 == (char *)0x0)) && (uVar5 != 0)) {
iVar9 = iVar4;
if (*param_6 == *param_4) {
pcVar12 = param_4 + 1;
pcVar13 = param_6 + 1;
do {
pcVar1 = pcVar13 + 1;
if (*pcVar13 != *pcVar12) break;
pcVar12 = pcVar12 + 1;
bVar16 = pcVar13 < param_6 + uVar5;
pcVar13 = pcVar1;
} while (bVar16);
iVar9 = (int)pcVar1 + -1;
}
uVar8 = iVar9 - iVar4;
}
uVar15 = uVar5 - uVar8;
if (uVar5 < uVar8 || uVar15 == 0) {
param_7[6] = 0;
lVar10 = 0;
do {
lVar3 = lVar10 + (ulong)uVar5;
lVar11 = lVar10 + 1;
lVar2 = lVar10 + lVar14;
lVar10 = lVar11;
} while (param_6[lVar3] == param_3[lVar2]);
iVar4 = (int)lVar11;
if (iVar4 == 1) {
param_7[0xc] = 0;
param_7[0xd] = 0;
}
else {
uVar5 = (uVar5 + iVar4) - 1;
param_7[2] = uVar5;
iVar7 = ((iVar7 + iVar6 + (uint)(0xfe < uVar5) * 2) - iVar4) + 2;
}
}
else {
param_7[2] = uVar8;
param_7[6] = uVar15;
*(char **)(param_7 + 10) = param_4 + uVar8;
iVar7 = iVar6 + iVar7 + uVar15 + (uint)(0xfe < uVar8) * 2 + 1;
}
}
return iVar7;
}
|
|
57,438
|
js_math_imul
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_math_imul(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
uint32_t a, b, c;
int32_t d;
if (JS_ToUint32(ctx, &a, argv[0]))
return JS_EXCEPTION;
if (JS_ToUint32(ctx, &b, argv[1]))
return JS_EXCEPTION;
c = a * b;
memcpy(&d, &c, sizeof(d));
return js_int32(d);
}
|
O0
|
c
|
js_math_imul:
subq $0x48, %rsp
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq %rdi, 0x20(%rsp)
movl %ecx, 0x1c(%rsp)
movq %r8, 0x10(%rsp)
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rax
movq (%rax), %rdx
movq 0x8(%rax), %rcx
leaq 0xc(%rsp), %rsi
callq 0x4c680
cmpl $0x0, %eax
je 0xd77ff
movl $0x0, 0x38(%rsp)
movq $0x6, 0x40(%rsp)
jmp 0xd7859
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rdx
movq 0x18(%rax), %rcx
leaq 0x8(%rsp), %rsi
callq 0x4c680
cmpl $0x0, %eax
je 0xd7833
movl $0x0, 0x38(%rsp)
movq $0x6, 0x40(%rsp)
jmp 0xd7859
movl 0xc(%rsp), %eax
imull 0x8(%rsp), %eax
movl %eax, 0x4(%rsp)
movl 0x4(%rsp), %eax
movl %eax, (%rsp)
movl (%rsp), %edi
callq 0x32a00
movq %rax, 0x38(%rsp)
movq %rdx, 0x40(%rsp)
movq 0x38(%rsp), %rax
movq 0x40(%rsp), %rdx
addq $0x48, %rsp
retq
nopl (%rax,%rax)
|
js_math_imul:
sub rsp, 48h
mov [rsp+48h+var_20], rsi
mov [rsp+48h+var_18], rdx
mov [rsp+48h+var_28], rdi
mov [rsp+48h+var_2C], ecx
mov [rsp+48h+var_38], r8
mov rdi, [rsp+48h+var_28]
mov rax, [rsp+48h+var_38]
mov rdx, [rax]
mov rcx, [rax+8]
lea rsi, [rsp+48h+var_3C]
call JS_ToUint32_0
cmp eax, 0
jz short loc_D77FF
mov dword ptr [rsp+48h+var_10], 0
mov [rsp+48h+var_8], 6
jmp short loc_D7859
loc_D77FF:
mov rdi, [rsp+48h+var_28]
mov rax, [rsp+48h+var_38]
mov rdx, [rax+10h]
mov rcx, [rax+18h]
lea rsi, [rsp+48h+var_40]
call JS_ToUint32_0
cmp eax, 0
jz short loc_D7833
mov dword ptr [rsp+48h+var_10], 0
mov [rsp+48h+var_8], 6
jmp short loc_D7859
loc_D7833:
mov eax, [rsp+48h+var_3C]
imul eax, [rsp+48h+var_40]
mov [rsp+48h+var_44], eax
mov eax, [rsp+48h+var_44]
mov [rsp+48h+var_48], eax
mov edi, [rsp+48h+var_48]
call js_int32
mov [rsp+48h+var_10], rax
mov [rsp+48h+var_8], rdx
loc_D7859:
mov rax, [rsp+48h+var_10]
mov rdx, [rsp+48h+var_8]
add rsp, 48h
retn
|
long long js_math_imul(long long a1, long long a2, long long a3, int a4, long long a5)
{
long long v5; // rdx
int v7; // [rsp+8h] [rbp-40h] BYREF
int v8; // [rsp+Ch] [rbp-3Ch] BYREF
long long v9; // [rsp+10h] [rbp-38h]
int v10; // [rsp+1Ch] [rbp-2Ch]
long long v11; // [rsp+20h] [rbp-28h]
long long v12; // [rsp+28h] [rbp-20h]
long long v13; // [rsp+30h] [rbp-18h]
long long v14; // [rsp+38h] [rbp-10h]
long long v15; // [rsp+40h] [rbp-8h]
v12 = a2;
v13 = a3;
v11 = a1;
v10 = a4;
v9 = a5;
if ( (unsigned int)JS_ToUint32_0(a1, (long long)&v8, *(_DWORD **)a5, *(_QWORD *)(a5 + 8)) )
{
LODWORD(v14) = 0;
v15 = 6LL;
}
else if ( (unsigned int)JS_ToUint32_0(v11, (long long)&v7, *(_DWORD **)(v9 + 16), *(_QWORD *)(v9 + 24)) )
{
LODWORD(v14) = 0;
v15 = 6LL;
}
else
{
v14 = js_int32(v7 * v8);
v15 = v5;
}
return v14;
}
|
js_math_imul:
SUB RSP,0x48
MOV qword ptr [RSP + 0x28],RSI
MOV qword ptr [RSP + 0x30],RDX
MOV qword ptr [RSP + 0x20],RDI
MOV dword ptr [RSP + 0x1c],ECX
MOV qword ptr [RSP + 0x10],R8
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RAX]
MOV RCX,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0xc]
CALL 0x0014c680
CMP EAX,0x0
JZ 0x001d77ff
MOV dword ptr [RSP + 0x38],0x0
MOV qword ptr [RSP + 0x40],0x6
JMP 0x001d7859
LAB_001d77ff:
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RAX + 0x18]
LEA RSI,[RSP + 0x8]
CALL 0x0014c680
CMP EAX,0x0
JZ 0x001d7833
MOV dword ptr [RSP + 0x38],0x0
MOV qword ptr [RSP + 0x40],0x6
JMP 0x001d7859
LAB_001d7833:
MOV EAX,dword ptr [RSP + 0xc]
IMUL EAX,dword ptr [RSP + 0x8]
MOV dword ptr [RSP + 0x4],EAX
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [RSP],EAX
MOV EDI,dword ptr [RSP]
CALL 0x00132a00
MOV qword ptr [RSP + 0x38],RAX
MOV qword ptr [RSP + 0x40],RDX
LAB_001d7859:
MOV RAX,qword ptr [RSP + 0x38]
MOV RDX,qword ptr [RSP + 0x40]
ADD RSP,0x48
RET
|
int1 [16]
js_math_imul(int8 param_1,int8 param_2,int8 param_3,int4 param_4,
int8 *param_5)
{
int iVar1;
int1 auVar2 [16];
int local_40;
int local_3c;
int8 *local_38;
int4 local_2c;
int8 local_28;
int8 local_20;
int8 local_18;
int4 local_10;
int4 uStack_c;
int8 local_8;
local_38 = param_5;
local_2c = param_4;
local_28 = param_1;
local_20 = param_2;
local_18 = param_3;
iVar1 = JS_ToUint32(param_1,&local_3c,*param_5,param_5[1]);
if (iVar1 == 0) {
iVar1 = JS_ToUint32(local_28,&local_40,local_38[2],local_38[3]);
if (iVar1 == 0) {
auVar2 = js_int32(local_3c * local_40);
local_8 = auVar2._8_8_;
local_10 = auVar2._0_4_;
uStack_c = auVar2._4_4_;
}
else {
local_10 = 0;
local_8 = 6;
}
}
else {
local_10 = 0;
local_8 = 6;
}
auVar2._4_4_ = uStack_c;
auVar2._0_4_ = local_10;
auVar2._8_8_ = local_8;
return auVar2;
}
|
|
57,439
|
common_kv_cache_dump_view(llama_kv_cache_view const&, int)
|
monkey531[P]llama/common/common.cpp
|
void common_kv_cache_dump_view(const llama_kv_cache_view & view, int row_size) {
static const char slot_chars[] = ".123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+";
printf("=== Dumping KV cache. total cells %d, max sequences per cell %d, populated cells %d, total tokens in cache %d, largest empty slot=%d @ %d",
view.n_cells, view.n_seq_max, view.used_cells, view.token_count, view.max_contiguous, view.max_contiguous_idx);
llama_kv_cache_view_cell * c_curr = view.cells;
llama_seq_id * cs_curr = view.cells_sequences;
for (int i = 0; i < view.n_cells; i++, c_curr++, cs_curr += view.n_seq_max) {
if (i % row_size == 0) {
printf("\n%5d: ", i);
}
int seq_count = 0;
for (int j = 0; j < view.n_seq_max; j++) {
if (cs_curr[j] >= 0) { seq_count++; }
}
putchar(slot_chars[std::min(sizeof(slot_chars) - 2, size_t(seq_count))]);
}
printf("\n=== Done dumping\n");
}
|
O1
|
cpp
|
common_kv_cache_dump_view(llama_kv_cache_view const&, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl (%rdi), %esi
movl 0x4(%rdi), %edx
movl 0xc(%rdi), %ecx
movl 0x8(%rdi), %r8d
movl 0x10(%rdi), %r9d
movl 0x14(%rdi), %eax
movl %eax, (%rsp)
leaq 0x7bcec(%rip), %rdi # 0xf33bb
xorl %eax, %eax
callq 0x1b070
cmpl $0x0, (%r14)
jle 0x7774c
movq 0x20(%r14), %r12
movl $0x3e, %r13d
leaq 0x7e223(%rip), %r15 # 0xf5910
xorl %ebp, %ebp
movl %ebp, %eax
cltd
idivl %ebx
testl %edx, %edx
jne 0x77708
leaq 0x7bd46(%rip), %rdi # 0xf3445
movl %ebp, %esi
xorl %eax, %eax
callq 0x1b070
movslq 0x4(%r14), %rcx
testq %rcx, %rcx
jle 0x7772a
xorl %edx, %edx
xorl %eax, %eax
movl (%r12,%rdx,4), %esi
notl %esi
shrl $0x1f, %esi
addl %esi, %eax
incq %rdx
cmpq %rdx, %rcx
jne 0x77715
jmp 0x7772c
xorl %eax, %eax
cmpl $0x3e, %eax
cmovael %r13d, %eax
movsbl (%rax,%r15), %edi
callq 0x1bc10
incl %ebp
movslq 0x4(%r14), %rax
leaq (%r12,%rax,4), %r12
cmpl (%r14), %ebp
jl 0x776ef
leaq 0x7e1a9(%rip), %rdi # 0xf58fc
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1bd50
|
_Z25common_kv_cache_dump_viewRK19llama_kv_cache_viewi:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov ebx, esi
mov r14, rdi
mov esi, [rdi]
mov edx, [rdi+4]
mov ecx, [rdi+0Ch]
mov r8d, [rdi+8]
mov r9d, [rdi+10h]
mov eax, [rdi+14h]
mov [rsp+38h+var_38], eax
lea rdi, aDumpingKvCache; "=== Dumping KV cache. total cells %d, m"...
xor eax, eax
call _printf
cmp dword ptr [r14], 0
jle short loc_7774C
mov r12, [r14+20h]
mov r13d, 3Eh ; '>'
lea r15, _ZZ25common_kv_cache_dump_viewRK19llama_kv_cache_viewiE10slot_chars; ".123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabc"...
xor ebp, ebp
loc_776EF:
mov eax, ebp
cdq
idiv ebx
test edx, edx
jnz short loc_77708
lea rdi, a5d; "\n%5d: "
mov esi, ebp
xor eax, eax
call _printf
loc_77708:
movsxd rcx, dword ptr [r14+4]
test rcx, rcx
jle short loc_7772A
xor edx, edx
xor eax, eax
loc_77715:
mov esi, [r12+rdx*4]
not esi
shr esi, 1Fh
add eax, esi
inc rdx
cmp rcx, rdx
jnz short loc_77715
jmp short loc_7772C
loc_7772A:
xor eax, eax
loc_7772C:
cmp eax, 3Eh ; '>'
cmovnb eax, r13d
movsx edi, byte ptr [rax+r15]
call _putchar
inc ebp
movsxd rax, dword ptr [r14+4]
lea r12, [r12+rax*4]
cmp ebp, [r14]
jl short loc_776EF
loc_7774C:
lea rdi, aDoneDumping; "\n=== Done dumping"
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _puts
|
long long common_kv_cache_dump_view(long long a1, int a2)
{
long long v2; // r12
int v3; // ebp
long long v4; // rcx
long long v5; // rdx
long long v6; // rax
printf(
"=== Dumping KV cache. total cells %d, max sequences per cell %d, populated cells %d, total tokens in cache %d, large"
"st empty slot=%d @ %d",
*(_DWORD *)a1,
*(_DWORD *)(a1 + 4),
*(_DWORD *)(a1 + 12),
*(_DWORD *)(a1 + 8),
*(_DWORD *)(a1 + 16),
*(_DWORD *)(a1 + 20));
if ( *(int *)a1 > 0 )
{
v2 = *(_QWORD *)(a1 + 32);
v3 = 0;
do
{
if ( !(v3 % a2) )
printf("\n%5d: ", v3);
v4 = *(int *)(a1 + 4);
if ( v4 <= 0 )
{
v6 = 0LL;
}
else
{
v5 = 0LL;
LODWORD(v6) = 0;
do
v6 = (*(_DWORD *)(v2 + 4 * v5++) >= 0) + (unsigned int)v6;
while ( v4 != v5 );
}
if ( (unsigned int)v6 >= 0x3E )
v6 = 62LL;
putchar((unsigned int)common_kv_cache_dump_view(llama_kv_cache_view const&,int)::slot_chars[v6]);
++v3;
v2 += 4LL * *(int *)(a1 + 4);
}
while ( v3 < *(_DWORD *)a1 );
}
return puts("\n=== Done dumping");
}
|
common_kv_cache_dump_view:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV EBX,ESI
MOV R14,RDI
MOV ESI,dword ptr [RDI]
MOV EDX,dword ptr [RDI + 0x4]
MOV ECX,dword ptr [RDI + 0xc]
MOV R8D,dword ptr [RDI + 0x8]
MOV R9D,dword ptr [RDI + 0x10]
MOV EAX,dword ptr [RDI + 0x14]
MOV dword ptr [RSP],EAX
LEA RDI,[0x1f33bb]
XOR EAX,EAX
CALL 0x0011b070
CMP dword ptr [R14],0x0
JLE 0x0017774c
MOV R12,qword ptr [R14 + 0x20]
MOV R13D,0x3e
LEA R15,[0x1f5910]
XOR EBP,EBP
LAB_001776ef:
MOV EAX,EBP
CDQ
IDIV EBX
TEST EDX,EDX
JNZ 0x00177708
LEA RDI,[0x1f3445]
MOV ESI,EBP
XOR EAX,EAX
CALL 0x0011b070
LAB_00177708:
MOVSXD RCX,dword ptr [R14 + 0x4]
TEST RCX,RCX
JLE 0x0017772a
XOR EDX,EDX
XOR EAX,EAX
LAB_00177715:
MOV ESI,dword ptr [R12 + RDX*0x4]
NOT ESI
SHR ESI,0x1f
ADD EAX,ESI
INC RDX
CMP RCX,RDX
JNZ 0x00177715
JMP 0x0017772c
LAB_0017772a:
XOR EAX,EAX
LAB_0017772c:
CMP EAX,0x3e
CMOVNC EAX,R13D
MOVSX EDI,byte ptr [RAX + R15*0x1]
CALL 0x0011bc10
INC EBP
MOVSXD RAX,dword ptr [R14 + 0x4]
LEA R12,[R12 + RAX*0x4]
CMP EBP,dword ptr [R14]
JL 0x001776ef
LAB_0017774c:
LEA RDI,[0x1f58fc]
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0011bd50
|
/* common_kv_cache_dump_view(llama_kv_cache_view const&, int) */
void common_kv_cache_dump_view(llama_kv_cache_view *param_1,int param_2)
{
uint uVar1;
int8 in_RAX;
ulong uVar2;
long lVar3;
uint uVar4;
long lVar5;
printf("=== Dumping KV cache. total cells %d, max sequences per cell %d, populated cells %d, total tokens in cache %d, largest empty slot=%d @ %d"
,(ulong)*(uint *)param_1,(ulong)*(uint *)(param_1 + 4),(ulong)*(uint *)(param_1 + 0xc),
(ulong)*(uint *)(param_1 + 8),(ulong)*(uint *)(param_1 + 0x10),
CONCAT44((int)((ulong)in_RAX >> 0x20),*(int4 *)(param_1 + 0x14)));
if (0 < *(int *)param_1) {
lVar5 = *(long *)(param_1 + 0x20);
uVar4 = 0;
do {
if ((int)uVar4 % param_2 == 0) {
printf("\n%5d: ",(ulong)uVar4);
}
if ((long)*(int *)(param_1 + 4) < 1) {
uVar1 = 0;
}
else {
lVar3 = 0;
uVar1 = 0;
do {
uVar1 = uVar1 - ((int)~*(uint *)(lVar5 + lVar3 * 4) >> 0x1f);
lVar3 = lVar3 + 1;
} while (*(int *)(param_1 + 4) != lVar3);
}
uVar2 = (ulong)uVar1;
if (0x3d < uVar1) {
uVar2 = 0x3e;
}
putchar((int)".123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+"[uVar2]);
uVar4 = uVar4 + 1;
lVar5 = lVar5 + (long)*(int *)(param_1 + 4) * 4;
} while ((int)uVar4 < *(int *)param_1);
}
puts("\n=== Done dumping");
return;
}
|
|
57,440
|
Saver_OneShot::init()
|
untodesu[P]riteg/riteg/saver_oneshot.cc
|
void Saver_OneShot::init(void)
{
auto oneshot_path = cmdline::get("opath");
riteg_force_assert_msg(oneshot_path, "Invalid argument [opath]");
m_is_done = false;
m_path = oneshot_path;
}
|
O3
|
cpp
|
Saver_OneShot::init():
pushq %r15
pushq %r14
pushq %rbx
subq $0xf0, %rsp
movq %rdi, %rbx
leaq 0x518a5(%rip), %rdi # 0x66983
xorl %esi, %esi
callq 0xe088
movq %rax, 0x58(%rsp)
testq %rax, %rax
je 0x15111
movb $0x0, 0x30(%rbx)
addq $0x8, %rbx
leaq 0x58(%rsp), %rsi
movq %rbx, %rdi
callq 0xd0a2
addq $0xf0, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x91ed8(%rip), %rdi # 0xa6ff0
leaq 0x5100e(%rip), %rsi # 0x6612d
movl $0x1, %edx
callq 0xc9e0
leaq 0x51859(%rip), %rsi # 0x66989
leaq 0xa0(%rsp), %rbx
movq %rbx, %rdi
movl $0x2, %edx
callq 0xf0da
leaq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq 0xe1ae
movq 0x30(%rsp), %rsi
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0xe36e
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x91e6d(%rip), %rdi # 0xa6ff0
callq 0xc9e0
movq %rax, %rbx
leaq 0x78279(%rip), %rsi # 0x8d40b
movl $0x1, %edx
movq %rax, %rdi
callq 0xc9e0
movq %rbx, %rdi
movl $0xb, %esi
callq 0xceb0
movq %rax, %rbx
leaq 0x50f79(%rip), %rsi # 0x6612f
movl $0x3, %edx
movq %rax, %rdi
callq 0xc9e0
leaq 0x50f69(%rip), %rsi # 0x66133
movl $0x15, %edx
movq %rbx, %rdi
callq 0xc9e0
leaq 0x51160(%rip), %rsi # 0x6633e
movl $0x12, %edx
movq %rbx, %rdi
callq 0xc9e0
leaq 0x51240(%rip), %rsi # 0x66432
movl $0xc, %edx
movq %rbx, %rdi
callq 0xc9e0
leaq 0x51157(%rip), %rsi # 0x6635d
movl $0x2, %edx
movq %rbx, %rdi
callq 0xc9e0
leaq 0x517bf(%rip), %rsi # 0x669d9
movl $0x18, %edx
movq %rbx, %rdi
callq 0xc9e0
movq %rbx, %rdi
callq 0xc3f0
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x15246
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc8d0
leaq 0x30(%rsp), %rdi
callq 0xe222
leaq 0xa0(%rsp), %rdi
callq 0xe222
movq 0x91d8c(%rip), %rdi # 0xa6ff0
leaq 0x50ec2(%rip), %rsi # 0x6612d
movl $0x1, %edx
callq 0xc9e0
leaq 0x5170d(%rip), %rsi # 0x66989
leaq 0xa0(%rsp), %rbx
movq %rbx, %rdi
movl $0x2, %edx
callq 0xf0da
leaq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq 0xe1ae
movq 0x30(%rsp), %rsi
leaq 0x90(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x80(%rsp), %rdi
callq 0xe36e
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
movq 0x91d15(%rip), %rdi # 0xa6ff0
callq 0xc9e0
movq %rax, %rbx
leaq 0x78121(%rip), %rsi # 0x8d40b
movl $0x1, %edx
movq %rax, %rdi
callq 0xc9e0
movq %rbx, %rdi
movl $0xb, %esi
callq 0xceb0
movq %rax, %rbx
leaq 0x50e21(%rip), %rsi # 0x6612f
movl $0x3, %edx
movq %rax, %rdi
callq 0xc9e0
leaq 0x50e11(%rip), %rsi # 0x66133
movl $0x15, %edx
movq %rbx, %rdi
callq 0xc9e0
leaq 0x51653(%rip), %rsi # 0x66989
leaq 0xc8(%rsp), %rdi
movl $0x2, %edx
callq 0xf0da
leaq 0x8(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0xe1ae
movq 0x8(%rsp), %rsi
leaq 0x70(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x60(%rsp), %rdi
callq 0xe36e
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq %rbx, %rdi
callq 0xc9e0
movq %rax, %rbx
leaq 0x78075(%rip), %rsi # 0x8d40b
movl $0x1, %edx
movq %rax, %rdi
callq 0xc9e0
movq %rbx, %rdi
movl $0xb, %esi
callq 0xceb0
movq %rax, %rdi
callq 0xc3f0
leaq 0x60(%rsp), %rdi
callq 0xc3b0
leaq 0x8(%rsp), %rdi
callq 0xe222
leaq 0xc8(%rsp), %rdi
callq 0xe222
leaq 0x80(%rsp), %rdi
callq 0xc3b0
leaq 0x30(%rsp), %rdi
callq 0xe222
leaq 0xa0(%rsp), %rdi
callq 0xe222
callq 0xc1e0
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x15421
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xc8d0
jmp 0x15421
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xe222
jmp 0x15430
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0xe222
jmp 0x15444
jmp 0x15441
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r14, %rdi
je 0x1547e
movq 0x90(%rsp), %rsi
jmp 0x15471
jmp 0x1547b
jmp 0x1548a
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1547e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc8d0
jmp 0x1547e
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xe222
jmp 0x1548d
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0xe222
movq %rbx, %rdi
callq 0xcf00
|
_ZN13Saver_OneShot4initEv:
push r15
push r14
push rbx
sub rsp, 0F0h
mov rbx, rdi
lea rdi, aOpath; "opath"
xor esi, esi; char *
call _ZN7cmdline3getEPKcS1_; cmdline::get(char const*,char const*)
mov [rsp+108h+var_B0], rax
test rax, rax
jz short loc_15111
mov byte ptr [rbx+30h], 0
add rbx, 8
lea rsi, [rsp+108h+var_B0]
mov rdi, rbx
call _ZNSt10filesystem7__cxx114pathaSIPKcEERNSt9enable_ifIX13__is_path_srcIT_EES1_E4typeERKS6_
add rsp, 0F0h
pop rbx
pop r14
pop r15
retn
loc_15111:
mov rdi, cs:_ZSt4cerr_ptr
lea rsi, asc_6612D; "["
mov edx, 1
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, aWorkspaceLlm4b_7; "/workspace/llm4binary/github/2025_star3"...
lea rbx, [rsp+108h+var_68]
mov rdi, rbx; this
mov edx, 2
call _ZNSt10filesystem7__cxx114pathC2IA80_cS1_EERKT_NS1_6formatE; std::filesystem::__cxx11::path::path<char [80],std::filesystem::__cxx11::path>(char [80] const&,std::filesystem::__cxx11::path::format)
lea rdi, [rsp+108h+var_D8]; this
mov rsi, rbx
call _ZNKSt10filesystem7__cxx114path8filenameEv; std::filesystem::__cxx11::path::filename(void)
mov rsi, [rsp+108h+var_D8]
lea r14, [rsp+108h+var_F0]
mov [r14-10h], r14
mov rdx, [rsp+108h+var_D0]
add rdx, rsi
lea rdi, [rsp+108h+var_100]
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 rsi, [rsp+108h+var_100]
mov rdx, [rsp+108h+var_F8]
mov rdi, cs:_ZSt4cerr_ptr
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rbx, rax
lea rsi, asc_8D40A+1; ":"
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, rbx
mov esi, 0Bh
call __ZNSolsEi; std::ostream::operator<<(int)
mov rbx, rax
lea rsi, asc_6612F; "]: "
mov edx, 3
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, a13191mfatal0m; "\x1B[1;31;91mfatal:\x1B[0m "
mov edx, 15h
mov rdi, rbx
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, aAssertionFaile_0; "assertion failed: "
mov edx, 12h
mov rdi, rbx
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, aOneshotPath; "oneshot_path"
mov edx, 0Ch
mov rdi, rbx
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, asc_6635D; "; "
mov edx, 2
mov rdi, rbx
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, aInvalidArgumen_2; "Invalid argument [opath]"
mov edx, 18h
mov rdi, rbx
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, rbx
call __ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_; std::endl<char,std::char_traits<char>>(std::ostream &)
mov rdi, [rsp+108h+var_100]; void *
cmp rdi, r14
jz short loc_15246
mov rsi, [rsp+108h+var_F0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_15246:
lea rdi, [rsp+108h+var_D8]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
lea rdi, [rsp+108h+var_68]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
mov rdi, cs:_ZSt4cerr_ptr
lea rsi, asc_6612D; "["
mov edx, 1
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, aWorkspaceLlm4b_7; "/workspace/llm4binary/github/2025_star3"...
lea rbx, [rsp+108h+var_68]
mov rdi, rbx; this
mov edx, 2
call _ZNSt10filesystem7__cxx114pathC2IA80_cS1_EERKT_NS1_6formatE; std::filesystem::__cxx11::path::path<char [80],std::filesystem::__cxx11::path>(char [80] const&,std::filesystem::__cxx11::path::format)
lea rdi, [rsp+108h+var_D8]; this
mov rsi, rbx
call _ZNKSt10filesystem7__cxx114path8filenameEv; std::filesystem::__cxx11::path::filename(void)
mov rsi, [rsp+108h+var_D8]
lea r14, [rsp+108h+var_78]
mov [r14-10h], r14
mov rdx, [rsp+108h+var_D0]
add rdx, rsi
lea rdi, [rsp+108h+var_88]
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 rsi, [rsp+108h+var_88]
mov rdx, [rsp+108h+var_80]
mov rdi, cs:_ZSt4cerr_ptr
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rbx, rax
lea rsi, asc_8D40A+1; ":"
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, rbx
mov esi, 0Bh
call __ZNSolsEi; std::ostream::operator<<(int)
mov rbx, rax
lea rsi, asc_6612F; "]: "
mov edx, 3
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, a13191mfatal0m; "\x1B[1;31;91mfatal:\x1B[0m "
mov edx, 15h
mov rdi, rbx
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, aWorkspaceLlm4b_7; "/workspace/llm4binary/github/2025_star3"...
lea rdi, [rsp+108h+var_40]; this
mov edx, 2
call _ZNSt10filesystem7__cxx114pathC2IA80_cS1_EERKT_NS1_6formatE; std::filesystem::__cxx11::path::path<char [80],std::filesystem::__cxx11::path>(char [80] const&,std::filesystem::__cxx11::path::format)
lea rdi, [rsp+108h+var_100]; this
lea rsi, [rsp+108h+var_40]
call _ZNKSt10filesystem7__cxx114path8filenameEv; std::filesystem::__cxx11::path::filename(void)
mov rsi, [rsp+108h+var_100]
lea r15, [rsp+108h+var_98]
mov [r15-10h], r15
mov rdx, [rsp+108h+var_F8]
add rdx, rsi
lea rdi, [rsp+108h+var_A8]
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 rsi, [rsp+108h+var_A8]
mov rdx, [rsp+108h+var_A0]
mov rdi, rbx
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rbx, rax
lea rsi, asc_8D40A+1; ":"
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, rbx
mov esi, 0Bh
call __ZNSolsEi; std::ostream::operator<<(int)
mov rdi, rax
call __ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_; std::endl<char,std::char_traits<char>>(std::ostream &)
lea rdi, [rsp+108h+var_A8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+108h+var_100]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
lea rdi, [rsp+108h+var_40]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
lea rdi, [rsp+108h+var_88]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+108h+var_D8]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
lea rdi, [rsp+108h+var_68]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
call __ZSt9terminatev; std::terminate(void)
mov rbx, rax
mov rdi, [rsp+108h+var_A8]; void *
cmp rdi, r15
jz short loc_15421
mov rsi, [rsp+108h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_15421
mov rbx, rax
loc_15421:
lea rdi, [rsp+108h+var_100]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
jmp short loc_15430
mov rbx, rax
loc_15430:
lea rdi, [rsp+108h+var_40]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
jmp short loc_15444
jmp short $+2
loc_15441:
mov rbx, rax
loc_15444:
mov rdi, [rsp+108h+var_88]
cmp rdi, r14
jz short loc_1547E
mov rsi, [rsp+108h+var_78]
jmp short loc_15471
jmp short loc_1547B
jmp short loc_1548A
mov rbx, rax
mov rdi, [rsp+108h+var_100]; void *
cmp rdi, r14
jz short loc_1547E
mov rsi, [rsp+108h+var_F0]
loc_15471:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_1547E
loc_1547B:
mov rbx, rax
loc_1547E:
lea rdi, [rsp+108h+var_D8]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
jmp short loc_1548D
loc_1548A:
mov rbx, rax
loc_1548D:
lea rdi, [rsp+108h+var_68]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
mov rdi, rbx
call __Unwind_Resume
|
long long Saver_OneShot::init(Saver_OneShot *this, long long a2, const char *a3)
{
long long v4; // rbx
long long v5; // rbx
long long v6; // rbx
long long v7; // rbx
long long v8; // rbx
long long v9; // rax
void *v10; // [rsp+8h] [rbp-100h] BYREF
long long v11; // [rsp+10h] [rbp-F8h]
_QWORD v12[3]; // [rsp+18h] [rbp-F0h] BYREF
_BYTE *v13; // [rsp+30h] [rbp-D8h] BYREF
long long v14; // [rsp+38h] [rbp-D0h]
void *v16[2]; // [rsp+60h] [rbp-A8h] BYREF
long long v17; // [rsp+70h] [rbp-98h] BYREF
_QWORD v18[2]; // [rsp+80h] [rbp-88h] BYREF
long long v19; // [rsp+90h] [rbp-78h] BYREF
_QWORD v20[5]; // [rsp+A0h] [rbp-68h] BYREF
_QWORD v21[8]; // [rsp+C8h] [rbp-40h] BYREF
if ( !cmdline::get((cmdline *)"opath", 0LL, a3) )
{
std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, "[", 1LL);
std::filesystem::__cxx11::path::path<char [80],std::filesystem::__cxx11::path>(
(std::filesystem::__cxx11::path *)v20,
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/riteg/saver_oneshot.cc");
std::filesystem::__cxx11::path::filename((std::filesystem::__cxx11::path *)&v13, v20);
v10 = v12;
std::string::_M_construct<char const*>((long long)&v10, v13, (long long)&v13[v14]);
v4 = std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, v10, v11);
std::__ostream_insert<char,std::char_traits<char>>(v4, ":", 1LL);
v5 = std::ostream::operator<<(v4, 11LL);
std::__ostream_insert<char,std::char_traits<char>>(v5, "]: ", 3LL);
std::__ostream_insert<char,std::char_traits<char>>(v5, "\x1B[1;31;91mfatal:\x1B[0m ", 21LL);
std::__ostream_insert<char,std::char_traits<char>>(v5, "assertion failed: ", 18LL);
std::__ostream_insert<char,std::char_traits<char>>(v5, "oneshot_path", 12LL);
std::__ostream_insert<char,std::char_traits<char>>(v5, "; ", 2LL);
std::__ostream_insert<char,std::char_traits<char>>(v5, "Invalid argument [opath]", 24LL);
std::endl<char,std::char_traits<char>>(v5);
if ( v10 != v12 )
operator delete(v10, v12[0] + 1LL);
std::filesystem::__cxx11::path::~path((std::filesystem::__cxx11::path *)&v13);
std::filesystem::__cxx11::path::~path((std::filesystem::__cxx11::path *)v20);
std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, "[", 1LL);
std::filesystem::__cxx11::path::path<char [80],std::filesystem::__cxx11::path>(
(std::filesystem::__cxx11::path *)v20,
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/riteg/saver_oneshot.cc");
std::filesystem::__cxx11::path::filename((std::filesystem::__cxx11::path *)&v13, v20);
v18[0] = &v19;
std::string::_M_construct<char const*>((long long)v18, v13, (long long)&v13[v14]);
v6 = std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, v18[0], v18[1]);
std::__ostream_insert<char,std::char_traits<char>>(v6, ":", 1LL);
v7 = std::ostream::operator<<(v6, 11LL);
std::__ostream_insert<char,std::char_traits<char>>(v7, "]: ", 3LL);
std::__ostream_insert<char,std::char_traits<char>>(v7, "\x1B[1;31;91mfatal:\x1B[0m ", 21LL);
std::filesystem::__cxx11::path::path<char [80],std::filesystem::__cxx11::path>(
(std::filesystem::__cxx11::path *)v21,
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/riteg/saver_oneshot.cc");
std::filesystem::__cxx11::path::filename((std::filesystem::__cxx11::path *)&v10, v21);
v16[0] = &v17;
std::string::_M_construct<char const*>((long long)v16, v10, (long long)v10 + v11);
v8 = std::__ostream_insert<char,std::char_traits<char>>(v7, v16[0], v16[1]);
std::__ostream_insert<char,std::char_traits<char>>(v8, ":", 1LL);
v9 = std::ostream::operator<<(v8, 11LL);
std::endl<char,std::char_traits<char>>(v9);
std::string::~string(v16);
std::filesystem::__cxx11::path::~path((std::filesystem::__cxx11::path *)&v10);
std::filesystem::__cxx11::path::~path((std::filesystem::__cxx11::path *)v21);
std::string::~string(v18);
std::filesystem::__cxx11::path::~path((std::filesystem::__cxx11::path *)&v13);
std::filesystem::__cxx11::path::~path((std::filesystem::__cxx11::path *)v20);
std::terminate();
}
*((_BYTE *)this + 48) = 0;
return std::filesystem::__cxx11::path::operator=<char const*>((long long)this + 8);
}
|
init:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0xf0
MOV RBX,RDI
LEA RDI,[0x166983]
XOR ESI,ESI
CALL 0x0010e088
MOV qword ptr [RSP + 0x58],RAX
TEST RAX,RAX
JZ 0x00115111
MOV byte ptr [RBX + 0x30],0x0
ADD RBX,0x8
LEA RSI,[RSP + 0x58]
MOV RDI,RBX
CALL 0x0010d0a2
ADD RSP,0xf0
POP RBX
POP R14
POP R15
RET
LAB_00115111:
MOV RDI,qword ptr [0x001a6ff0]
LEA RSI,[0x16612d]
MOV EDX,0x1
CALL 0x0010c9e0
LEA RSI,[0x166989]
LEA RBX,[RSP + 0xa0]
MOV RDI,RBX
MOV EDX,0x2
CALL 0x0010f0da
LAB_00115145:
LEA RDI,[RSP + 0x30]
MOV RSI,RBX
CALL 0x0010e1ae
MOV RSI,qword ptr [RSP + 0x30]
LEA R14,[RSP + 0x18]
MOV qword ptr [R14 + -0x10],R14
MOV RDX,qword ptr [RSP + 0x38]
ADD RDX,RSI
LAB_00115168:
LEA RDI,[RSP + 0x8]
CALL 0x0010e36e
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_0011517c:
MOV RDI,qword ptr [0x001a6ff0]
CALL 0x0010c9e0
MOV RBX,RAX
LEA RSI,[0x18d40b]
MOV EDX,0x1
MOV RDI,RAX
CALL 0x0010c9e0
MOV RDI,RBX
MOV ESI,0xb
CALL 0x0010ceb0
MOV RBX,RAX
LEA RSI,[0x16612f]
MOV EDX,0x3
MOV RDI,RAX
CALL 0x0010c9e0
LEA RSI,[0x166133]
MOV EDX,0x15
MOV RDI,RBX
CALL 0x0010c9e0
LEA RSI,[0x16633e]
MOV EDX,0x12
MOV RDI,RBX
CALL 0x0010c9e0
LEA RSI,[0x166432]
MOV EDX,0xc
MOV RDI,RBX
CALL 0x0010c9e0
LEA RSI,[0x16635d]
MOV EDX,0x2
MOV RDI,RBX
CALL 0x0010c9e0
LEA RSI,[0x1669d9]
MOV EDX,0x18
MOV RDI,RBX
CALL 0x0010c9e0
MOV RDI,RBX
CALL 0x0010c3f0
LAB_0011522f:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R14
JZ 0x00115246
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0010c8d0
LAB_00115246:
LEA RDI,[RSP + 0x30]
CALL 0x0010e222
LEA RDI,[RSP + 0xa0]
CALL 0x0010e222
MOV RDI,qword ptr [0x001a6ff0]
LEA RSI,[0x16612d]
MOV EDX,0x1
CALL 0x0010c9e0
LEA RSI,[0x166989]
LEA RBX,[RSP + 0xa0]
MOV RDI,RBX
MOV EDX,0x2
CALL 0x0010f0da
LAB_00115291:
LEA RDI,[RSP + 0x30]
MOV RSI,RBX
CALL 0x0010e1ae
MOV RSI,qword ptr [RSP + 0x30]
LEA R14,[RSP + 0x90]
MOV qword ptr [R14 + -0x10],R14
MOV RDX,qword ptr [RSP + 0x38]
ADD RDX,RSI
LAB_001152b7:
LEA RDI,[RSP + 0x80]
CALL 0x0010e36e
MOV RSI,qword ptr [RSP + 0x80]
MOV RDX,qword ptr [RSP + 0x88]
LAB_001152d4:
MOV RDI,qword ptr [0x001a6ff0]
CALL 0x0010c9e0
MOV RBX,RAX
LEA RSI,[0x18d40b]
MOV EDX,0x1
MOV RDI,RAX
CALL 0x0010c9e0
MOV RDI,RBX
MOV ESI,0xb
CALL 0x0010ceb0
MOV RBX,RAX
LEA RSI,[0x16612f]
MOV EDX,0x3
MOV RDI,RAX
CALL 0x0010c9e0
LEA RSI,[0x166133]
MOV EDX,0x15
MOV RDI,RBX
CALL 0x0010c9e0
LAB_0011532f:
LEA RSI,[0x166989]
LEA RDI,[RSP + 0xc8]
MOV EDX,0x2
CALL 0x0010f0da
LAB_00115348:
LEA RDI,[RSP + 0x8]
LEA RSI,[RSP + 0xc8]
CALL 0x0010e1ae
MOV RSI,qword ptr [RSP + 0x8]
LEA R15,[RSP + 0x70]
MOV qword ptr [R15 + -0x10],R15
MOV RDX,qword ptr [RSP + 0x10]
ADD RDX,RSI
LAB_00115370:
LEA RDI,[RSP + 0x60]
CALL 0x0010e36e
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0x68]
LAB_00115384:
MOV RDI,RBX
CALL 0x0010c9e0
MOV RBX,RAX
LEA RSI,[0x18d40b]
MOV EDX,0x1
MOV RDI,RAX
CALL 0x0010c9e0
MOV RDI,RBX
MOV ESI,0xb
CALL 0x0010ceb0
MOV RDI,RAX
CALL 0x0010c3f0
LAB_001153b8:
LEA RDI,[RSP + 0x60]
CALL 0x0010c3b0
LEA RDI,[RSP + 0x8]
CALL 0x0010e222
LEA RDI,[RSP + 0xc8]
CALL 0x0010e222
LEA RDI,[RSP + 0x80]
CALL 0x0010c3b0
LEA RDI,[RSP + 0x30]
CALL 0x0010e222
LEA RDI,[RSP + 0xa0]
CALL 0x0010e222
CALL 0x0010c1e0
|
/* Saver_OneShot::init() */
void __thiscall Saver_OneShot::init(Saver_OneShot *this)
{
ostream *poVar1;
long *local_100;
long local_f8;
long local_f0 [3];
long local_d8;
long local_d0;
char *local_b0;
char *local_a8;
long local_a0;
char local_98 [16];
char *local_88;
long local_80;
char local_78 [16];
path local_68 [40];
path local_40 [40];
local_b0 = (char *)cmdline::get("opath",(char *)0x0);
if (local_b0 != (char *)0x0) {
this[0x30] = (Saver_OneShot)0x0;
std::filesystem::__cxx11::path::operator=((path *)(this + 8),&local_b0);
return;
}
std::__ostream_insert<char,std::char_traits<char>>((ostream *)PTR_cerr_001a6ff0,"[",1);
std::filesystem::__cxx11::path::path<char[80],std::filesystem::__cxx11::path>
(local_68,
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/riteg/saver_oneshot.cc",2);
/* try { // try from 00115145 to 00115151 has its CatchHandler @ 0011548a */
std::filesystem::__cxx11::path::filename();
/* try { // try from 00115168 to 00115171 has its CatchHandler @ 0011547b */
local_100 = local_f0;
std::__cxx11::string::_M_construct<char_const*>(&local_100,local_d8,local_d0 + local_d8);
/* try { // try from 0011517c to 0011522e has its CatchHandler @ 0011545f */
poVar1 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)PTR_cerr_001a6ff0,(char *)local_100,local_f8);
std::__ostream_insert<char,std::char_traits<char>>(poVar1,":",1);
poVar1 = (ostream *)std::ostream::operator<<(poVar1,0xb);
std::__ostream_insert<char,std::char_traits<char>>(poVar1,"]: ",3);
std::__ostream_insert<char,std::char_traits<char>>(poVar1,"\x1b[1;31;91mfatal:\x1b[0m ",0x15);
std::__ostream_insert<char,std::char_traits<char>>(poVar1,"assertion failed: ",0x12);
std::__ostream_insert<char,std::char_traits<char>>(poVar1,"oneshot_path",0xc);
std::__ostream_insert<char,std::char_traits<char>>(poVar1,"; ",2);
std::__ostream_insert<char,std::char_traits<char>>(poVar1,"Invalid argument [opath]",0x18);
std::endl<char,std::char_traits<char>>(poVar1);
if (local_100 != local_f0) {
operator_delete(local_100,local_f0[0] + 1);
}
std::filesystem::__cxx11::path::~path((path *)&local_d8);
std::filesystem::__cxx11::path::~path(local_68);
std::__ostream_insert<char,std::char_traits<char>>((ostream *)PTR_cerr_001a6ff0,"[",1);
std::filesystem::__cxx11::path::path<char[80],std::filesystem::__cxx11::path>
(local_68,
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/riteg/saver_oneshot.cc",2);
/* try { // try from 00115291 to 0011529d has its CatchHandler @ 0011545d */
std::filesystem::__cxx11::path::filename();
local_88 = local_78;
/* try { // try from 001152b7 to 001152c3 has its CatchHandler @ 0011545b */
std::__cxx11::string::_M_construct<char_const*>(&local_88,local_d8,local_d0 + local_d8);
/* try { // try from 001152d4 to 0011532e has its CatchHandler @ 00115441 */
poVar1 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)PTR_cerr_001a6ff0,local_88,local_80);
std::__ostream_insert<char,std::char_traits<char>>(poVar1,":",1);
poVar1 = (ostream *)std::ostream::operator<<(poVar1,0xb);
std::__ostream_insert<char,std::char_traits<char>>(poVar1,"]: ",3);
std::__ostream_insert<char,std::char_traits<char>>(poVar1,"\x1b[1;31;91mfatal:\x1b[0m ",0x15);
/* try { // try from 0011532f to 00115347 has its CatchHandler @ 0011543f */
std::filesystem::__cxx11::path::path<char[80],std::filesystem::__cxx11::path>
(local_40,
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/riteg/saver_oneshot.cc",2);
/* try { // try from 00115348 to 00115359 has its CatchHandler @ 0011542d */
std::filesystem::__cxx11::path::filename();
local_a8 = local_98;
/* try { // try from 00115370 to 00115379 has its CatchHandler @ 0011541e */
std::__cxx11::string::_M_construct<char_const*>(&local_a8,local_100,(long)local_100 + local_f8);
/* try { // try from 00115384 to 001153b7 has its CatchHandler @ 00115402 */
poVar1 = std::__ostream_insert<char,std::char_traits<char>>(poVar1,local_a8,local_a0);
std::__ostream_insert<char,std::char_traits<char>>(poVar1,":",1);
poVar1 = (ostream *)std::ostream::operator<<(poVar1,0xb);
std::endl<char,std::char_traits<char>>(poVar1);
std::__cxx11::string::~string((string *)&local_a8);
std::filesystem::__cxx11::path::~path((path *)&local_100);
std::filesystem::__cxx11::path::~path(local_40);
std::__cxx11::string::~string((string *)&local_88);
std::filesystem::__cxx11::path::~path((path *)&local_d8);
std::filesystem::__cxx11::path::~path(local_68);
/* WARNING: Subroutine does not return */
std::terminate();
}
|
|
57,441
|
ma_keyseg_read
|
eloqsql/storage/maria/ma_open.c
|
uchar *_ma_keyseg_read(uchar *ptr, HA_KEYSEG *keyseg)
{
keyseg->type = *ptr++;
keyseg->language = *ptr++;
keyseg->null_bit = *ptr++;
keyseg->bit_start = *ptr++;
keyseg->language += ((uint16) (*ptr++)) << 8;
keyseg->bit_length = *ptr++;
keyseg->flag = mi_uint2korr(ptr); ptr+= 2;
keyseg->length = mi_uint2korr(ptr); ptr+= 2;
keyseg->start = mi_uint4korr(ptr); ptr+= 4;
keyseg->null_pos = mi_uint4korr(ptr); ptr+= 4;
keyseg->charset=0; /* Will be filled in later */
if (keyseg->null_bit)
keyseg->bit_pos= (uint16)(keyseg->null_pos + (keyseg->null_bit == 7));
else
{
keyseg->bit_pos= (uint16)keyseg->null_pos;
keyseg->null_pos= 0;
}
return ptr;
}
|
O0
|
c
|
ma_keyseg_read:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb (%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x18(%rax)
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movzbl (%rax), %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x16(%rax)
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb (%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x19(%rax)
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb (%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1a(%rax)
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movzbl (%rax), %eax
movzwl %ax, %edx
shll $0x8, %edx
movq -0x10(%rbp), %rax
movzwl 0x16(%rax), %ecx
addl %edx, %ecx
movw %cx, 0x16(%rax)
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb (%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1b(%rax)
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x12(%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x14(%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x3(%rax), %ecx
movq -0x8(%rbp), %rax
movzbl 0x2(%rax), %eax
shll $0x8, %eax
orl %eax, %ecx
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
shll $0x10, %eax
orl %eax, %ecx
movq -0x8(%rbp), %rax
movzbl (%rax), %eax
shll $0x18, %eax
orl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x8(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x3(%rax), %ecx
movq -0x8(%rbp), %rax
movzbl 0x2(%rax), %eax
shll $0x8, %eax
orl %eax, %ecx
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
shll $0x10, %eax
orl %eax, %ecx
movq -0x8(%rbp), %rax
movzbl (%rax), %eax
shll $0x18, %eax
orl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x8(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x8(%rbp)
movq -0x10(%rbp), %rax
movq $0x0, (%rax)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x19(%rax)
je 0x2fd92
movq -0x10(%rbp), %rax
movl 0xc(%rax), %eax
movq -0x10(%rbp), %rcx
movzbl 0x19(%rcx), %ecx
cmpl $0x7, %ecx
sete %cl
andb $0x1, %cl
movzbl %cl, %ecx
addl %ecx, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x10(%rax)
jmp 0x2fdaf
movq -0x10(%rbp), %rax
movl 0xc(%rax), %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x10(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0xc(%rax)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ma_keyseg_read:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov cl, [rax]
mov rax, [rbp+var_10]
mov [rax+18h], cl
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
movzx eax, byte ptr [rax]
mov cx, ax
mov rax, [rbp+var_10]
mov [rax+16h], cx
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov cl, [rax]
mov rax, [rbp+var_10]
mov [rax+19h], cl
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov cl, [rax]
mov rax, [rbp+var_10]
mov [rax+1Ah], cl
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
movzx eax, byte ptr [rax]
movzx edx, ax
shl edx, 8
mov rax, [rbp+var_10]
movzx ecx, word ptr [rax+16h]
add ecx, edx
mov [rax+16h], cx
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov cl, [rax]
mov rax, [rbp+var_10]
mov [rax+1Bh], cl
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
mov cx, ax
mov rax, [rbp+var_10]
mov [rax+12h], cx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
mov cx, ax
mov rax, [rbp+var_10]
mov [rax+14h], cx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
movzx ecx, byte ptr [rax+3]
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+2]
shl eax, 8
or ecx, eax
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
shl eax, 10h
or ecx, eax
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax]
shl eax, 18h
or ecx, eax
mov rax, [rbp+var_10]
mov [rax+8], ecx
mov rax, [rbp+var_8]
add rax, 4
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
movzx ecx, byte ptr [rax+3]
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+2]
shl eax, 8
or ecx, eax
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
shl eax, 10h
or ecx, eax
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax]
shl eax, 18h
or ecx, eax
mov rax, [rbp+var_10]
mov [rax+0Ch], ecx
mov rax, [rbp+var_8]
add rax, 4
mov [rbp+var_8], rax
mov rax, [rbp+var_10]
mov qword ptr [rax], 0
mov rax, [rbp+var_10]
cmp byte ptr [rax+19h], 0
jz short loc_2FD92
mov rax, [rbp+var_10]
mov eax, [rax+0Ch]
mov rcx, [rbp+var_10]
movzx ecx, byte ptr [rcx+19h]
cmp ecx, 7
setz cl
and cl, 1
movzx ecx, cl
add eax, ecx
mov cx, ax
mov rax, [rbp+var_10]
mov [rax+10h], cx
jmp short loc_2FDAF
loc_2FD92:
mov rax, [rbp+var_10]
mov eax, [rax+0Ch]
mov cx, ax
mov rax, [rbp+var_10]
mov [rax+10h], cx
mov rax, [rbp+var_10]
mov dword ptr [rax+0Ch], 0
loc_2FDAF:
mov rax, [rbp+var_8]
pop rbp
retn
|
long long ma_keyseg_read(long long a1, long long a2)
{
*(_BYTE *)(a2 + 24) = *(_BYTE *)a1;
*(_WORD *)(a2 + 22) = *(unsigned __int8 *)(a1 + 1);
*(_BYTE *)(a2 + 25) = *(_BYTE *)(a1 + 2);
*(_BYTE *)(a2 + 26) = *(_BYTE *)(a1 + 3);
*(_WORD *)(a2 + 22) += *(unsigned __int8 *)(a1 + 4) << 8;
*(_BYTE *)(a2 + 27) = *(_BYTE *)(a1 + 5);
*(_WORD *)(a2 + 18) = _byteswap_ushort(*(_WORD *)(a1 + 6));
*(_WORD *)(a2 + 20) = _byteswap_ushort(*(_WORD *)(a1 + 8));
*(_DWORD *)(a2 + 8) = _byteswap_ulong(*(_DWORD *)(a1 + 10));
*(_DWORD *)(a2 + 12) = _byteswap_ulong(*(_DWORD *)(a1 + 14));
*(_QWORD *)a2 = 0LL;
if ( *(_BYTE *)(a2 + 25) )
{
*(_WORD *)(a2 + 16) = (*(_BYTE *)(a2 + 25) == 7) + (unsigned __int16)*(_DWORD *)(a2 + 12);
}
else
{
*(_WORD *)(a2 + 16) = *(_DWORD *)(a2 + 12);
*(_DWORD *)(a2 + 12) = 0;
}
return a1 + 18;
}
|
_ma_keyseg_read:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x8],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x18],CL
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x8],RCX
MOVZX EAX,byte ptr [RAX]
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV word ptr [RAX + 0x16],CX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x8],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x19],CL
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x8],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1a],CL
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x8],RCX
MOVZX EAX,byte ptr [RAX]
MOVZX EDX,AX
SHL EDX,0x8
MOV RAX,qword ptr [RBP + -0x10]
MOVZX ECX,word ptr [RAX + 0x16]
ADD ECX,EDX
MOV word ptr [RAX + 0x16],CX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x8],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1b],CL
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV word ptr [RAX + 0x12],CX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV word ptr [RAX + 0x14],CX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RAX + 0x3]
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x2]
SHL EAX,0x8
OR ECX,EAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
SHL EAX,0x10
OR ECX,EAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX]
SHL EAX,0x18
OR ECX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x8],ECX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x4
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RAX + 0x3]
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x2]
SHL EAX,0x8
OR ECX,EAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
SHL EAX,0x10
OR ECX,EAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX]
SHL EAX,0x18
OR ECX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xc],ECX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x4
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x19],0x0
JZ 0x0012fd92
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0xc]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,byte ptr [RCX + 0x19]
CMP ECX,0x7
SETZ CL
AND CL,0x1
MOVZX ECX,CL
ADD EAX,ECX
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV word ptr [RAX + 0x10],CX
JMP 0x0012fdaf
LAB_0012fd92:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0xc]
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV word ptr [RAX + 0x10],CX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xc],0x0
LAB_0012fdaf:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
int1 * _ma_keyseg_read(int1 *param_1,int8 *param_2)
{
*(int1 *)(param_2 + 3) = *param_1;
*(ushort *)((long)param_2 + 0x16) = (ushort)(byte)param_1[1];
*(int1 *)((long)param_2 + 0x19) = param_1[2];
*(int1 *)((long)param_2 + 0x1a) = param_1[3];
*(ushort *)((long)param_2 + 0x16) =
*(short *)((long)param_2 + 0x16) + (ushort)(byte)param_1[4] * 0x100;
*(int1 *)((long)param_2 + 0x1b) = param_1[5];
*(ushort *)((long)param_2 + 0x12) = CONCAT11(param_1[6],param_1[7]);
*(ushort *)((long)param_2 + 0x14) = CONCAT11(param_1[8],param_1[9]);
*(uint *)(param_2 + 1) =
CONCAT13(param_1[10],CONCAT12(param_1[0xb],CONCAT11(param_1[0xc],param_1[0xd])));
*(uint *)((long)param_2 + 0xc) =
CONCAT13(param_1[0xe],CONCAT12(param_1[0xf],CONCAT11(param_1[0x10],param_1[0x11])));
*param_2 = 0;
if (*(char *)((long)param_2 + 0x19) == '\0') {
*(short *)(param_2 + 2) = (short)*(int4 *)((long)param_2 + 0xc);
*(int4 *)((long)param_2 + 0xc) = 0;
}
else {
*(ushort *)(param_2 + 2) =
(short)*(int4 *)((long)param_2 + 0xc) +
(ushort)(*(char *)((long)param_2 + 0x19) == '\a');
}
return param_1 + 0x12;
}
|
|
57,442
|
compute_tree_feature(unsigned int, Feature&, unsigned short, unsigned short)
|
untodesu[P]voxelius/game/server/overworld.cc
|
static void compute_tree_feature(unsigned int height, Feature &feature, voxel_id log_voxel, voxel_id leaves_voxel)
{
// Ensure the tree height is too small
height = cxpr::max<unsigned int>(height, 4U);
// Put down a single piece of dirt
feature.push_back({ voxel_pos(0, -1, 0), game_voxels::dirt, true });
// Generate tree stem
for(unsigned int i = 0; i < height; ++i) {
feature.push_back({ voxel_pos(0, i, 0), log_voxel, true });
}
auto leaves_start = height - 3U;
auto leaves_thick_end = height - 2U;
auto leaves_thin_end = height - 1U;
// Generate the thin 3x3 layer of leaves that
// starts from leaves_start and ends at leaves_thin_end
for(unsigned int i = leaves_start; i <= leaves_thin_end; ++i) {
feature.push_back({ local_pos(-1, i, -1), leaves_voxel, false });
feature.push_back({ local_pos(-1, i, +0), leaves_voxel, false });
feature.push_back({ local_pos(-1, i, +1), leaves_voxel, false });
feature.push_back({ local_pos(+0, i, -1), leaves_voxel, false });
feature.push_back({ local_pos(+0, i, +1), leaves_voxel, false });
feature.push_back({ local_pos(+1, i, -1), leaves_voxel, false });
feature.push_back({ local_pos(+1, i, +0), leaves_voxel, false });
feature.push_back({ local_pos(+1, i, +1), leaves_voxel, false });
}
// Generate the tree cap; a 3x3 patch of leaves
// that is slapped right on top of the thin 3x3 layer
feature.push_back({ local_pos(-1, height, +0), leaves_voxel, false });
feature.push_back({ local_pos(+0, height, -1), leaves_voxel, false });
feature.push_back({ local_pos(+0, height, +0), leaves_voxel, false });
feature.push_back({ local_pos(+0, height, +1), leaves_voxel, false });
feature.push_back({ local_pos(+1, height, +0), leaves_voxel, false });
// Generate the thin 5x5 layer of leaves that
// starts from leaves_start and ends at leaves_thin_end
for(unsigned int i = leaves_start; i <= leaves_thick_end; ++i) {
feature.push_back({ local_pos(-1, i, -2), leaves_voxel, false });
feature.push_back({ local_pos(-1, i, +2), leaves_voxel, false });
feature.push_back({ local_pos(-2, i, -1), leaves_voxel, false });
feature.push_back({ local_pos(-2, i, -2), leaves_voxel, false });
feature.push_back({ local_pos(-2, i, +0), leaves_voxel, false });
feature.push_back({ local_pos(-2, i, +1), leaves_voxel, false });
feature.push_back({ local_pos(-2, i, +2), leaves_voxel, false });
feature.push_back({ local_pos(+0, i, -2), leaves_voxel, false });
feature.push_back({ local_pos(+0, i, +2), leaves_voxel, false });
feature.push_back({ local_pos(+1, i, -2), leaves_voxel, false });
feature.push_back({ local_pos(+1, i, +2), leaves_voxel, false });
feature.push_back({ local_pos(+2, i, -1), leaves_voxel, false });
feature.push_back({ local_pos(+2, i, -2), leaves_voxel, false });
feature.push_back({ local_pos(+2, i, +0), leaves_voxel, false });
feature.push_back({ local_pos(+2, i, +1), leaves_voxel, false });
feature.push_back({ local_pos(+2, i, +2), leaves_voxel, false });
}
}
|
O2
|
cpp
|
compute_tree_feature(unsigned int, Feature&, unsigned short, unsigned short):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, %r14
movq %rsp, %r12
movb $0x1, (%r12)
leaq 0xf1d92(%rip), %rax # 0x10dfa4
movzwl (%rax), %eax
movw %ax, 0x2(%r12)
andq $0x0, 0x8(%r12)
movl %edi, %r15d
orq $-0x1, 0x10(%r12)
addq $0x8, %r14
andq $0x0, 0x18(%r12)
movq %r14, %rdi
movq %r12, %rsi
callq 0x1d7f4
movq %r15, 0x20(%rsp)
movl %r15d, %r13d
xorl %r15d, %r15d
cmpq %r15, %r13
je 0x1c279
movb $0x1, (%rsp)
movw %bp, 0x2(%rsp)
andq $0x0, 0x8(%rsp)
movq %r15, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x1d7f4
incq %r15
jmp 0x1c24a
movq %r13, 0x38(%rsp)
movq 0x20(%rsp), %rax
leal -0x3(%rax), %r15d
decl %eax
movl %eax, 0x34(%rsp)
movq %r15, 0x28(%rsp)
movl %r15d, %eax
xorl %r12d, %r12d
pushq $0x1
popq %r13
cmpl 0x34(%rsp), %eax
ja 0x1c3e0
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
orq $-0x1, 0x8(%rsp)
movswq %ax, %rbp
movq %rbp, 0x10(%rsp)
orq $-0x1, 0x18(%rsp)
movq %r14, %rdi
movq %rsp, %r15
movq %r15, %rsi
movq %rax, 0x40(%rsp)
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
orq $-0x1, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
orq $-0x1, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
movq %r13, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
andq $0x0, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
orq $-0x1, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
andq $0x0, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
movq %r13, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
movq %r13, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
orq $-0x1, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
movq %r13, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
movq %r13, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
movq %r13, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movq 0x40(%rsp), %rax
incl %eax
jmp 0x1c29c
movq 0x20(%rsp), %rax
addl $-0x2, %eax
movq %rax, 0x20(%rsp)
xorl %r12d, %r12d
movq %rsp, %r13
movb %r12b, (%r13)
movw %bx, 0x2(%r13)
orq $-0x1, 0x8(%r13)
movswq 0x38(%rsp), %r15
movq %r15, 0x10(%r13)
andq $0x0, 0x18(%r13)
movq %r14, %rdi
movq %r13, %rsi
callq 0x1d7f4
movb %r12b, (%r13)
movw %bx, 0x2(%r13)
andq $0x0, 0x8(%r13)
movq %r15, 0x10(%r13)
orq $-0x1, 0x18(%r13)
movq %rsp, %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x1d7f4
movb %r12b, (%r13)
movw %bx, 0x2(%r13)
andq $0x0, 0x8(%r13)
movq %r15, 0x10(%r13)
andq $0x0, 0x18(%r13)
movq %rsp, %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x1d7f4
movb %r12b, (%r13)
movw %bx, 0x2(%r13)
andq $0x0, 0x8(%r13)
movq %r15, 0x10(%r13)
pushq $0x1
popq %rbp
movq %rbp, 0x18(%r13)
movq %rsp, %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x1d7f4
movb %r12b, (%r13)
movw %bx, 0x2(%r13)
movq %rbp, 0x8(%r13)
movq %r15, 0x10(%r13)
andq $0x0, 0x18(%r13)
movq %rsp, %rsi
movq %r14, %rdi
callq 0x1d7f4
movq 0x28(%rsp), %rax
xorl %r12d, %r12d
cmpl 0x20(%rsp), %eax
ja 0x1c735
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
orq $-0x1, 0x8(%rsp)
movswq %ax, %rbp
movq %rbp, 0x10(%rsp)
pushq $-0x2
popq %r15
movq %r15, 0x18(%rsp)
movq %r14, %rdi
movq %rsp, %r15
movq %r15, %rsi
movq %rax, 0x28(%rsp)
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
orq $-0x1, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
pushq $0x2
popq %r13
movq %r13, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
pushq $-0x2
popq %r13
movq %r13, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
orq $-0x1, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
movq %r13, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
movq %r13, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
movq %r13, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
movq %r13, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
pushq $0x1
popq %rax
movq %rax, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
movq %r13, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
pushq $0x2
popq %rax
movq %rax, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
andq $0x0, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
movq %r13, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
andq $0x0, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
pushq $0x2
popq %rax
movq %rax, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
pushq $0x1
popq %r13
movq %r13, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
pushq $-0x2
popq %rax
movq %rax, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
movq %r13, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
pushq $0x2
popq %r13
movq %r13, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
movq %r13, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
orq $-0x1, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
movq %r13, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
pushq $-0x2
popq %rax
movq %rax, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
movq %r13, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
movq %r13, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
pushq $0x1
popq %rax
movq %rax, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movb %r12b, (%rsp)
movw %bx, 0x2(%rsp)
movq %r13, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
movq %r13, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d7f4
movq 0x28(%rsp), %rax
incl %eax
jmp 0x1c4b5
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ZL20compute_tree_featurejR7Featurett:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov ebx, ecx
mov ebp, edx
mov r14, rsi
mov r12, rsp
mov byte ptr [r12], 1
lea rax, _ZN11game_voxels4dirtE; game_voxels::dirt
movzx eax, word ptr [rax]
mov [r12+2], ax
and qword ptr [r12+8], 0
mov r15d, edi
or qword ptr [r12+10h], 0FFFFFFFFFFFFFFFFh
add r14, 8
and qword ptr [r12+18h], 0
mov rdi, r14
mov rsi, r12
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_58], r15
mov r13d, r15d
xor r15d, r15d
loc_1C24A:
cmp r13, r15
jz short loc_1C279
mov [rsp+78h+var_78], 1
mov [rsp+78h+var_76], bp
and [rsp+78h+var_70], 0
mov [rsp+78h+var_68], r15
and [rsp+78h+var_60], 0
mov rdi, r14
mov rsi, r12
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
inc r15
jmp short loc_1C24A
loc_1C279:
mov [rsp+78h+var_40], r13
mov rax, [rsp+78h+var_58]
lea r15d, [rax-3]
dec eax
mov [rsp+78h+var_44], eax
mov [rsp+78h+var_50], r15
mov eax, r15d
xor r12d, r12d
push 1
pop r13
loc_1C29C:
cmp eax, [rsp+78h+var_44]
ja loc_1C3E0
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
or [rsp+78h+var_70], 0FFFFFFFFFFFFFFFFh
movsx rbp, ax
mov [rsp+78h+var_68], rbp
or [rsp+78h+var_60], 0FFFFFFFFFFFFFFFFh
mov rdi, r14
mov r15, rsp
mov rsi, r15
mov [rsp+78h+var_38], rax
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
or [rsp+78h+var_70], 0FFFFFFFFFFFFFFFFh
mov [rsp+78h+var_68], rbp
and [rsp+78h+var_60], 0
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
or [rsp+78h+var_70], 0FFFFFFFFFFFFFFFFh
mov [rsp+78h+var_68], rbp
mov [rsp+78h+var_60], r13
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
and [rsp+78h+var_70], 0
mov [rsp+78h+var_68], rbp
or [rsp+78h+var_60], 0FFFFFFFFFFFFFFFFh
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
and [rsp+78h+var_70], 0
mov [rsp+78h+var_68], rbp
mov [rsp+78h+var_60], r13
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
mov [rsp+78h+var_70], r13
mov [rsp+78h+var_68], rbp
or [rsp+78h+var_60], 0FFFFFFFFFFFFFFFFh
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
mov [rsp+78h+var_70], r13
mov [rsp+78h+var_68], rbp
and [rsp+78h+var_60], 0
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
mov [rsp+78h+var_70], r13
mov [rsp+78h+var_68], rbp
mov [rsp+78h+var_60], r13
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov rax, [rsp+78h+var_38]
inc eax
jmp loc_1C29C
loc_1C3E0:
mov rax, [rsp+78h+var_58]
add eax, 0FFFFFFFEh
mov [rsp+78h+var_58], rax
xor r12d, r12d
mov r13, rsp
mov [r13+0], r12b
mov [r13+2], bx
or qword ptr [r13+8], 0FFFFFFFFFFFFFFFFh
movsx r15, word ptr [rsp+78h+var_40]
mov [r13+10h], r15
and qword ptr [r13+18h], 0
mov rdi, r14
mov rsi, r13
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [r13+0], r12b
mov [r13+2], bx
and qword ptr [r13+8], 0
mov [r13+10h], r15
or qword ptr [r13+18h], 0FFFFFFFFFFFFFFFFh
mov r13, rsp
mov rdi, r14
mov rsi, r13
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [r13+0], r12b
mov [r13+2], bx
and qword ptr [r13+8], 0
mov [r13+10h], r15
and qword ptr [r13+18h], 0
mov r13, rsp
mov rdi, r14
mov rsi, r13
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [r13+0], r12b
mov [r13+2], bx
and qword ptr [r13+8], 0
mov [r13+10h], r15
push 1
pop rbp
mov [r13+18h], rbp
mov r13, rsp
mov rdi, r14
mov rsi, r13
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [r13+0], r12b
mov [r13+2], bx
mov [r13+8], rbp
mov [r13+10h], r15
and qword ptr [r13+18h], 0
mov rsi, rsp
mov rdi, r14
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov rax, [rsp+78h+var_50]
xor r12d, r12d
loc_1C4B5:
cmp eax, dword ptr [rsp+78h+var_58]
ja loc_1C735
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
or [rsp+78h+var_70], 0FFFFFFFFFFFFFFFFh
movsx rbp, ax
mov [rsp+78h+var_68], rbp
push 0FFFFFFFFFFFFFFFEh
pop r15
mov [rsp+78h+var_60], r15
mov rdi, r14
mov r15, rsp
mov rsi, r15
mov [rsp+78h+var_50], rax
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
or [rsp+78h+var_70], 0FFFFFFFFFFFFFFFFh
mov [rsp+78h+var_68], rbp
push 2
pop r13
mov [rsp+78h+var_60], r13
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
push 0FFFFFFFFFFFFFFFEh
pop r13
mov [rsp+78h+var_70], r13
mov [rsp+78h+var_68], rbp
or [rsp+78h+var_60], 0FFFFFFFFFFFFFFFFh
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
mov [rsp+78h+var_70], r13
mov [rsp+78h+var_68], rbp
mov [rsp+78h+var_60], r13
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
mov [rsp+78h+var_70], r13
mov [rsp+78h+var_68], rbp
and [rsp+78h+var_60], 0
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
mov [rsp+78h+var_70], r13
mov [rsp+78h+var_68], rbp
push 1
pop rax
mov [rsp+78h+var_60], rax
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
mov [rsp+78h+var_70], r13
mov [rsp+78h+var_68], rbp
push 2
pop rax
mov [rsp+78h+var_60], rax
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
and [rsp+78h+var_70], 0
mov [rsp+78h+var_68], rbp
mov [rsp+78h+var_60], r13
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
and [rsp+78h+var_70], 0
mov [rsp+78h+var_68], rbp
push 2
pop rax
mov [rsp+78h+var_60], rax
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
push 1
pop r13
mov [rsp+78h+var_70], r13
mov [rsp+78h+var_68], rbp
push 0FFFFFFFFFFFFFFFEh
pop rax
mov [rsp+78h+var_60], rax
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
mov [rsp+78h+var_70], r13
mov [rsp+78h+var_68], rbp
push 2
pop r13
mov [rsp+78h+var_60], r13
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
mov [rsp+78h+var_70], r13
mov [rsp+78h+var_68], rbp
or [rsp+78h+var_60], 0FFFFFFFFFFFFFFFFh
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
mov [rsp+78h+var_70], r13
mov [rsp+78h+var_68], rbp
push 0FFFFFFFFFFFFFFFEh
pop rax
mov [rsp+78h+var_60], rax
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
mov [rsp+78h+var_70], r13
mov [rsp+78h+var_68], rbp
and [rsp+78h+var_60], 0
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
mov [rsp+78h+var_70], r13
mov [rsp+78h+var_68], rbp
push 1
pop rax
mov [rsp+78h+var_60], rax
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov [rsp+78h+var_78], r12b
mov [rsp+78h+var_76], bx
mov [rsp+78h+var_70], r13
mov [rsp+78h+var_68], rbp
mov [rsp+78h+var_60], r13
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorISt5tupleIJN3glm3vecILi3ElLNS1_9qualifierE0EEEtbEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool>>(std::tuple<glm::vec<3,long,(glm::qualifier)0>,ushort,bool> &&)
mov rax, [rsp+78h+var_50]
inc eax
jmp loc_1C4B5
loc_1C735:
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long compute_tree_feature(unsigned int a1, Feature *a2, __int16 a3, __int16 a4)
{
char *v6; // r14
long long v7; // rdx
long long v8; // rcx
long long v9; // r8
long long v10; // r9
long long i; // r15
long long j; // rax
long long v13; // rbp
long long v14; // rdx
long long v15; // rcx
long long v16; // r8
long long v17; // r9
long long v18; // rdx
long long v19; // rcx
long long v20; // r8
long long v21; // r9
long long v22; // rdx
long long v23; // rcx
long long v24; // r8
long long v25; // r9
long long v26; // rdx
long long v27; // rcx
long long v28; // r8
long long v29; // r9
long long v30; // rdx
long long v31; // rcx
long long v32; // r8
long long v33; // r9
long long v34; // rdx
long long v35; // rcx
long long v36; // r8
long long v37; // r9
long long v38; // rdx
long long v39; // rcx
long long v40; // r8
long long v41; // r9
long long v42; // r15
long long v43; // rdx
long long v44; // rcx
long long v45; // r8
long long v46; // r9
long long v47; // rdx
long long v48; // rcx
long long v49; // r8
long long v50; // r9
long long v51; // rdx
long long v52; // rcx
long long v53; // r8
long long v54; // r9
long long v55; // rdx
long long v56; // rcx
long long v57; // r8
long long v58; // r9
long long v59; // rdx
long long v60; // rcx
long long v61; // r8
long long v62; // r9
long long result; // rax
long long v64; // rbp
long long v65; // rdx
long long v66; // rcx
long long v67; // r8
long long v68; // r9
long long v69; // rdx
long long v70; // rcx
long long v71; // r8
long long v72; // r9
long long v73; // rdx
long long v74; // rcx
long long v75; // r8
long long v76; // r9
long long v77; // rdx
long long v78; // rcx
long long v79; // r8
long long v80; // r9
long long v81; // rdx
long long v82; // rcx
long long v83; // r8
long long v84; // r9
long long v85; // rdx
long long v86; // rcx
long long v87; // r8
long long v88; // r9
long long v89; // rdx
long long v90; // rcx
long long v91; // r8
long long v92; // r9
long long v93; // rdx
long long v94; // rcx
long long v95; // r8
long long v96; // r9
long long v97; // rdx
long long v98; // rcx
long long v99; // r8
long long v100; // r9
long long v101; // rdx
long long v102; // rcx
long long v103; // r8
long long v104; // r9
long long v105; // rdx
long long v106; // rcx
long long v107; // r8
long long v108; // r9
long long v109; // rdx
long long v110; // rcx
long long v111; // r8
long long v112; // r9
long long v113; // rdx
long long v114; // rcx
long long v115; // r8
long long v116; // r9
long long v117; // rdx
long long v118; // rcx
long long v119; // r8
long long v120; // r9
long long v121; // rdx
long long v122; // rcx
long long v123; // r8
long long v124; // r9
_BYTE v125[2]; // [rsp+0h] [rbp-78h] BYREF
__int16 v126; // [rsp+2h] [rbp-76h]
long long v127; // [rsp+8h] [rbp-70h]
long long v128; // [rsp+10h] [rbp-68h]
long long v129; // [rsp+18h] [rbp-60h]
long long v130; // [rsp+20h] [rbp-58h]
long long v131; // [rsp+28h] [rbp-50h]
unsigned int v132; // [rsp+34h] [rbp-44h]
long long v133; // [rsp+38h] [rbp-40h]
long long v134; // [rsp+40h] [rbp-38h]
v125[0] = 1;
v126 = game_voxels::dirt;
v127 = 0LL;
v128 = -1LL;
v6 = (char *)a2 + 8;
v129 = 0LL;
((void ( *)(char *, _BYTE *))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
(char *)a2 + 8,
v125);
v130 = a1;
for ( i = 0LL; a1 != i; ++i )
{
v125[0] = 1;
v126 = a3;
v127 = 0LL;
v128 = i;
v129 = 0LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v7,
v8,
v9,
v10);
}
v133 = a1;
v132 = v130 - 1;
v131 = (unsigned int)(v130 - 3);
for ( j = v131; (unsigned int)j <= v132; j = (unsigned int)(v134 + 1) )
{
v125[0] = 0;
v126 = a4;
v127 = -1LL;
v13 = (__int16)j;
v128 = (__int16)j;
v129 = -1LL;
v134 = j;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v7,
v8,
v9,
v10);
v125[0] = 0;
v126 = a4;
v127 = -1LL;
v128 = v13;
v129 = 0LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v14,
v15,
v16,
v17);
v125[0] = 0;
v126 = a4;
v127 = -1LL;
v128 = v13;
v129 = 1LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v18,
v19,
v20,
v21);
v125[0] = 0;
v126 = a4;
v127 = 0LL;
v128 = v13;
v129 = -1LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v22,
v23,
v24,
v25);
v125[0] = 0;
v126 = a4;
v127 = 0LL;
v128 = v13;
v129 = 1LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v26,
v27,
v28,
v29);
v125[0] = 0;
v126 = a4;
v127 = 1LL;
v128 = v13;
v129 = -1LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v30,
v31,
v32,
v33);
v125[0] = 0;
v126 = a4;
v127 = 1LL;
v128 = v13;
v129 = 0LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v34,
v35,
v36,
v37);
v125[0] = 0;
v126 = a4;
v127 = 1LL;
v128 = v13;
v129 = 1LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v38,
v39,
v40,
v41);
}
v130 = (unsigned int)(v130 - 2);
v125[0] = 0;
v126 = a4;
v127 = -1LL;
v42 = (__int16)v133;
v128 = (__int16)v133;
v129 = 0LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v7,
v8,
v9,
v10);
v125[0] = 0;
v126 = a4;
v127 = 0LL;
v128 = v42;
v129 = -1LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v43,
v44,
v45,
v46);
v125[0] = 0;
v126 = a4;
v127 = 0LL;
v128 = v42;
v129 = 0LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v47,
v48,
v49,
v50);
v125[0] = 0;
v126 = a4;
v127 = 0LL;
v128 = v42;
v129 = 1LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v51,
v52,
v53,
v54);
v125[0] = 0;
v126 = a4;
v127 = 1LL;
v128 = v42;
v129 = 0LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v55,
v56,
v57,
v58);
for ( result = v131; (unsigned int)result <= (unsigned int)v130; result = (unsigned int)(v131 + 1) )
{
v125[0] = 0;
v126 = a4;
v127 = -1LL;
v64 = (__int16)result;
v128 = (__int16)result;
v129 = -2LL;
v131 = result;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v59,
v60,
v61,
v62);
v125[0] = 0;
v126 = a4;
v127 = -1LL;
v128 = v64;
v129 = 2LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v65,
v66,
v67,
v68);
v125[0] = 0;
v126 = a4;
v127 = -2LL;
v128 = v64;
v129 = -1LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v69,
v70,
v71,
v72);
v125[0] = 0;
v126 = a4;
v127 = -2LL;
v128 = v64;
v129 = -2LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v73,
v74,
v75,
v76);
v125[0] = 0;
v126 = a4;
v127 = -2LL;
v128 = v64;
v129 = 0LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v77,
v78,
v79,
v80);
v125[0] = 0;
v126 = a4;
v127 = -2LL;
v128 = v64;
v129 = 1LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v81,
v82,
v83,
v84);
v125[0] = 0;
v126 = a4;
v127 = -2LL;
v128 = v64;
v129 = 2LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v85,
v86,
v87,
v88);
v125[0] = 0;
v126 = a4;
v127 = 0LL;
v128 = v64;
v129 = -2LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v89,
v90,
v91,
v92);
v125[0] = 0;
v126 = a4;
v127 = 0LL;
v128 = v64;
v129 = 2LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v93,
v94,
v95,
v96);
v125[0] = 0;
v126 = a4;
v127 = 1LL;
v128 = v64;
v129 = -2LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v97,
v98,
v99,
v100);
v125[0] = 0;
v126 = a4;
v127 = 1LL;
v128 = v64;
v129 = 2LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v101,
v102,
v103,
v104);
v125[0] = 0;
v126 = a4;
v127 = 2LL;
v128 = v64;
v129 = -1LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v105,
v106,
v107,
v108);
v125[0] = 0;
v126 = a4;
v127 = 2LL;
v128 = v64;
v129 = -2LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v109,
v110,
v111,
v112);
v125[0] = 0;
v126 = a4;
v127 = 2LL;
v128 = v64;
v129 = 0LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v113,
v114,
v115,
v116);
v125[0] = 0;
v126 = a4;
v127 = 2LL;
v128 = v64;
v129 = 1LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v117,
v118,
v119,
v120);
v125[0] = 0;
v126 = a4;
v127 = 2LL;
v128 = v64;
v129 = 2LL;
((void ( *)(char *, _BYTE *, long long, long long, long long, long long))std::vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned short,bool>>)(
v6,
v125,
v121,
v122,
v123,
v124);
}
return result;
}
|
compute_tree_feature:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV EBX,ECX
MOV EBP,EDX
MOV R14,RSI
MOV R12,RSP
MOV byte ptr [R12],0x1
LEA RAX,[0x20dfa4]
MOVZX EAX,word ptr [RAX]
MOV word ptr [R12 + 0x2],AX
AND qword ptr [R12 + 0x8],0x0
MOV R15D,EDI
OR qword ptr [R12 + 0x10],-0x1
ADD R14,0x8
AND qword ptr [R12 + 0x18],0x0
MOV RDI,R14
MOV RSI,R12
CALL 0x0011d7f4
MOV qword ptr [RSP + 0x20],R15
MOV R13D,R15D
XOR R15D,R15D
LAB_0011c24a:
CMP R13,R15
JZ 0x0011c279
MOV byte ptr [RSP],0x1
MOV word ptr [RSP + 0x2],BP
AND qword ptr [RSP + 0x8],0x0
MOV qword ptr [RSP + 0x10],R15
AND qword ptr [RSP + 0x18],0x0
MOV RDI,R14
MOV RSI,R12
CALL 0x0011d7f4
INC R15
JMP 0x0011c24a
LAB_0011c279:
MOV qword ptr [RSP + 0x38],R13
MOV RAX,qword ptr [RSP + 0x20]
LEA R15D,[RAX + -0x3]
DEC EAX
MOV dword ptr [RSP + 0x34],EAX
MOV qword ptr [RSP + 0x28],R15
MOV EAX,R15D
XOR R12D,R12D
PUSH 0x1
POP R13
LAB_0011c29c:
CMP EAX,dword ptr [RSP + 0x34]
JA 0x0011c3e0
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
OR qword ptr [RSP + 0x8],-0x1
MOVSX RBP,AX
MOV qword ptr [RSP + 0x10],RBP
OR qword ptr [RSP + 0x18],-0x1
MOV RDI,R14
MOV R15,RSP
MOV RSI,R15
MOV qword ptr [RSP + 0x40],RAX
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
OR qword ptr [RSP + 0x8],-0x1
MOV qword ptr [RSP + 0x10],RBP
AND qword ptr [RSP + 0x18],0x0
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
OR qword ptr [RSP + 0x8],-0x1
MOV qword ptr [RSP + 0x10],RBP
MOV qword ptr [RSP + 0x18],R13
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
AND qword ptr [RSP + 0x8],0x0
MOV qword ptr [RSP + 0x10],RBP
OR qword ptr [RSP + 0x18],-0x1
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
AND qword ptr [RSP + 0x8],0x0
MOV qword ptr [RSP + 0x10],RBP
MOV qword ptr [RSP + 0x18],R13
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
MOV qword ptr [RSP + 0x8],R13
MOV qword ptr [RSP + 0x10],RBP
OR qword ptr [RSP + 0x18],-0x1
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
MOV qword ptr [RSP + 0x8],R13
MOV qword ptr [RSP + 0x10],RBP
AND qword ptr [RSP + 0x18],0x0
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
MOV qword ptr [RSP + 0x8],R13
MOV qword ptr [RSP + 0x10],RBP
MOV qword ptr [RSP + 0x18],R13
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV RAX,qword ptr [RSP + 0x40]
INC EAX
JMP 0x0011c29c
LAB_0011c3e0:
MOV RAX,qword ptr [RSP + 0x20]
ADD EAX,-0x2
MOV qword ptr [RSP + 0x20],RAX
XOR R12D,R12D
MOV R13,RSP
MOV byte ptr [R13],R12B
MOV word ptr [R13 + 0x2],BX
OR qword ptr [R13 + 0x8],-0x1
MOVSX R15,word ptr [RSP + 0x38]
MOV qword ptr [R13 + 0x10],R15
AND qword ptr [R13 + 0x18],0x0
MOV RDI,R14
MOV RSI,R13
CALL 0x0011d7f4
MOV byte ptr [R13],R12B
MOV word ptr [R13 + 0x2],BX
AND qword ptr [R13 + 0x8],0x0
MOV qword ptr [R13 + 0x10],R15
OR qword ptr [R13 + 0x18],-0x1
MOV R13,RSP
MOV RDI,R14
MOV RSI,R13
CALL 0x0011d7f4
MOV byte ptr [R13],R12B
MOV word ptr [R13 + 0x2],BX
AND qword ptr [R13 + 0x8],0x0
MOV qword ptr [R13 + 0x10],R15
AND qword ptr [R13 + 0x18],0x0
MOV R13,RSP
MOV RDI,R14
MOV RSI,R13
CALL 0x0011d7f4
MOV byte ptr [R13],R12B
MOV word ptr [R13 + 0x2],BX
AND qword ptr [R13 + 0x8],0x0
MOV qword ptr [R13 + 0x10],R15
PUSH 0x1
POP RBP
MOV qword ptr [R13 + 0x18],RBP
MOV R13,RSP
MOV RDI,R14
MOV RSI,R13
CALL 0x0011d7f4
MOV byte ptr [R13],R12B
MOV word ptr [R13 + 0x2],BX
MOV qword ptr [R13 + 0x8],RBP
MOV qword ptr [R13 + 0x10],R15
AND qword ptr [R13 + 0x18],0x0
MOV RSI,RSP
MOV RDI,R14
CALL 0x0011d7f4
MOV RAX,qword ptr [RSP + 0x28]
XOR R12D,R12D
LAB_0011c4b5:
CMP EAX,dword ptr [RSP + 0x20]
JA 0x0011c735
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
OR qword ptr [RSP + 0x8],-0x1
MOVSX RBP,AX
MOV qword ptr [RSP + 0x10],RBP
PUSH -0x2
POP R15
MOV qword ptr [RSP + 0x18],R15
MOV RDI,R14
MOV R15,RSP
MOV RSI,R15
MOV qword ptr [RSP + 0x28],RAX
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
OR qword ptr [RSP + 0x8],-0x1
MOV qword ptr [RSP + 0x10],RBP
PUSH 0x2
POP R13
MOV qword ptr [RSP + 0x18],R13
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
PUSH -0x2
POP R13
MOV qword ptr [RSP + 0x8],R13
MOV qword ptr [RSP + 0x10],RBP
OR qword ptr [RSP + 0x18],-0x1
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
MOV qword ptr [RSP + 0x8],R13
MOV qword ptr [RSP + 0x10],RBP
MOV qword ptr [RSP + 0x18],R13
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
MOV qword ptr [RSP + 0x8],R13
MOV qword ptr [RSP + 0x10],RBP
AND qword ptr [RSP + 0x18],0x0
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
MOV qword ptr [RSP + 0x8],R13
MOV qword ptr [RSP + 0x10],RBP
PUSH 0x1
POP RAX
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
MOV qword ptr [RSP + 0x8],R13
MOV qword ptr [RSP + 0x10],RBP
PUSH 0x2
POP RAX
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
AND qword ptr [RSP + 0x8],0x0
MOV qword ptr [RSP + 0x10],RBP
MOV qword ptr [RSP + 0x18],R13
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
AND qword ptr [RSP + 0x8],0x0
MOV qword ptr [RSP + 0x10],RBP
PUSH 0x2
POP RAX
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
PUSH 0x1
POP R13
MOV qword ptr [RSP + 0x8],R13
MOV qword ptr [RSP + 0x10],RBP
PUSH -0x2
POP RAX
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
MOV qword ptr [RSP + 0x8],R13
MOV qword ptr [RSP + 0x10],RBP
PUSH 0x2
POP R13
MOV qword ptr [RSP + 0x18],R13
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
MOV qword ptr [RSP + 0x8],R13
MOV qword ptr [RSP + 0x10],RBP
OR qword ptr [RSP + 0x18],-0x1
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
MOV qword ptr [RSP + 0x8],R13
MOV qword ptr [RSP + 0x10],RBP
PUSH -0x2
POP RAX
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
MOV qword ptr [RSP + 0x8],R13
MOV qword ptr [RSP + 0x10],RBP
AND qword ptr [RSP + 0x18],0x0
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
MOV qword ptr [RSP + 0x8],R13
MOV qword ptr [RSP + 0x10],RBP
PUSH 0x1
POP RAX
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV byte ptr [RSP],R12B
MOV word ptr [RSP + 0x2],BX
MOV qword ptr [RSP + 0x8],R13
MOV qword ptr [RSP + 0x10],RBP
MOV qword ptr [RSP + 0x18],R13
MOV RDI,R14
MOV RSI,R15
CALL 0x0011d7f4
MOV RAX,qword ptr [RSP + 0x28]
INC EAX
JMP 0x0011c4b5
LAB_0011c735:
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* compute_tree_feature(unsigned int, Feature&, unsigned short, unsigned short) */
void compute_tree_feature(uint param_1,Feature *param_2,ushort param_3,ushort param_4)
{
long lVar1;
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
*this;
ulong uVar2;
ulong uVar3;
tuple local_78 [2];
ushort local_76;
int8 local_70;
ulong local_68;
int8 local_60;
ulong local_58;
ulong local_50;
uint local_44;
ulong local_40;
ulong local_38;
local_78[0] = (tuple)0x1;
local_76 = game_voxels::dirt;
local_70 = 0;
uVar2 = (ulong)param_1;
local_68 = 0xffffffffffffffff;
this = (vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
*)(param_2 + 8);
local_60 = 0;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>(this,local_78);
local_58 = uVar2;
for (uVar3 = 0; uVar2 != uVar3; uVar3 = uVar3 + 1) {
local_78[0] = (tuple)0x1;
local_70 = 0;
local_60 = 0;
local_76 = param_3;
local_68 = uVar3;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
}
local_44 = (int)local_58 - 1;
uVar3 = (ulong)((int)local_58 - 3);
local_50 = uVar3;
local_40 = uVar2;
while (local_76 = param_4, (uint)uVar3 <= local_44) {
local_78[0] = (tuple)0x0;
local_70 = 0xffffffffffffffff;
lVar1 = (long)(short)uVar3;
local_60 = 0xffffffffffffffff;
local_68 = lVar1;
local_38 = uVar3;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 0xffffffffffffffff;
local_60 = 0;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 0xffffffffffffffff;
local_60 = 1;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 0;
local_60 = 0xffffffffffffffff;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 0;
local_60 = 1;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 1;
local_60 = 0xffffffffffffffff;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 1;
local_60 = 0;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 1;
local_60 = 1;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
uVar3 = (ulong)((int)local_38 + 1);
}
local_58 = (ulong)((int)local_58 - 2);
local_78[0] = (tuple)0x0;
local_70 = 0xffffffffffffffff;
lVar1 = (long)(short)local_40;
local_60 = 0;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 0;
local_60 = 0xffffffffffffffff;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 0;
local_60 = 0;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 0;
local_60 = 1;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 1;
local_60 = 0;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>(this,local_78);
for (; (uint)local_50 <= (uint)local_58; local_50 = (ulong)((int)local_50 + 1)) {
local_78[0] = (tuple)0x0;
local_70 = 0xffffffffffffffff;
lVar1 = (long)(short)local_50;
local_60 = 0xfffffffffffffffe;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 0xffffffffffffffff;
local_60 = 2;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 0xfffffffffffffffe;
local_60 = 0xffffffffffffffff;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 0xfffffffffffffffe;
local_60 = 0xfffffffffffffffe;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 0xfffffffffffffffe;
local_60 = 0;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 0xfffffffffffffffe;
local_60 = 1;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 0xfffffffffffffffe;
local_60 = 2;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 0;
local_60 = 0xfffffffffffffffe;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 0;
local_60 = 2;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 1;
local_60 = 0xfffffffffffffffe;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 1;
local_60 = 2;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 2;
local_60 = 0xffffffffffffffff;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 2;
local_60 = 0xfffffffffffffffe;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 2;
local_60 = 0;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 2;
local_60 = 1;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
local_78[0] = (tuple)0x0;
local_70 = 2;
local_60 = 2;
local_76 = param_4;
local_68 = lVar1;
std::
vector<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>,std::allocator<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>>
::emplace_back<std::tuple<glm::vec<3,long,(glm::qualifier)0>,unsigned_short,bool>>
(this,local_78);
}
return;
}
|
|
57,443
|
inline_mysql_file_seek
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline my_off_t
inline_mysql_file_seek(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, my_off_t pos, int whence, myf flags)
{
my_off_t result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_SEEK);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, (size_t) 0, src_file, src_line);
result= my_seek(file, pos, whence, flags);
PSI_FILE_CALL(end_file_wait)(locker, (size_t) 0);
return result;
}
#endif
result= my_seek(file, pos, whence, flags);
return result;
}
|
O0
|
c
|
inline_mysql_file_seek:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x1dfe60(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x158(%rax), %rax
movl -0x18(%rbp), %esi
leaq -0x88(%rbp), %rdi
movl $0x8, %edx
callq *%rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xe02f3
leaq 0x1dfe1a(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x210(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rdx
movl -0x14(%rbp), %ecx
xorl %esi, %esi
callq *%rax
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
movq -0x30(%rbp), %rcx
callq 0xf4c70
movq %rax, -0x38(%rbp)
leaq 0x1dfde3(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x218(%rax), %rax
movq -0x40(%rbp), %rdi
xorl %ecx, %ecx
movl %ecx, %esi
callq *%rax
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xe0312
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
movq -0x30(%rbp), %rcx
callq 0xf4c70
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nop
|
inline_mysql_file_seek_6:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
mov [rbp+var_24], r8d
mov [rbp+var_30], r9
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+158h]
mov esi, [rbp+var_18]
lea rdi, [rbp+var_88]
mov edx, 8
call rax
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_E02F3
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+210h]
mov rdi, [rbp+var_40]
mov rdx, [rbp+var_10]
mov ecx, [rbp+var_14]
xor esi, esi
call rax
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov edx, [rbp+var_24]
mov rcx, [rbp+var_30]
call my_seek
mov [rbp+var_38], rax
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+218h]
mov rdi, [rbp+var_40]
xor ecx, ecx
mov esi, ecx
call rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
jmp short loc_E0312
loc_E02F3:
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov edx, [rbp+var_24]
mov rcx, [rbp+var_30]
call my_seek
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
loc_E0312:
mov rax, [rbp+var_8]
add rsp, 90h
pop rbp
retn
|
long long inline_mysql_file_seek_6(
long long a1,
unsigned int a2,
unsigned int a3,
long long a4,
unsigned int a5,
long long a6)
{
_BYTE v7[72]; // [rsp+8h] [rbp-88h] BYREF
long long v8; // [rsp+50h] [rbp-40h]
long long v9; // [rsp+58h] [rbp-38h]
long long v10; // [rsp+60h] [rbp-30h]
unsigned int v11; // [rsp+6Ch] [rbp-24h]
long long v12; // [rsp+70h] [rbp-20h]
unsigned int v13; // [rsp+78h] [rbp-18h]
unsigned int v14; // [rsp+7Ch] [rbp-14h]
long long v15; // [rsp+80h] [rbp-10h]
v15 = a1;
v14 = a2;
v13 = a3;
v12 = a4;
v11 = a5;
v10 = a6;
v8 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v7, a3, 8LL);
if ( !v8 )
return my_seek(v13, v12, v11, v10);
((void ( *)(long long, _QWORD, long long, _QWORD))PSI_server[66])(v8, 0LL, v15, v14);
v9 = my_seek(v13, v12, v11, v10);
((void ( *)(long long, _QWORD))PSI_server[67])(v8, 0LL);
return v9;
}
|
inline_mysql_file_seek:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV dword ptr [RBP + -0x24],R8D
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x158]
MOV ESI,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x88]
MOV EDX,0x8
CALL RAX
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001e02f3
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x210]
MOV RDI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
XOR ESI,ESI
CALL RAX
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001f4c70
MOV qword ptr [RBP + -0x38],RAX
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV RDI,qword ptr [RBP + -0x40]
XOR ECX,ECX
MOV ESI,ECX
CALL RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001e0312
LAB_001e02f3:
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001f4c70
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
LAB_001e0312:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x90
POP RBP
RET
|
int8
inline_mysql_file_seek
(int8 param_1,int4 param_2,int4 param_3,int8 param_4,
int4 param_5,int8 param_6)
{
int1 local_90 [72];
long local_48;
int8 local_40;
int8 local_38;
int4 local_2c;
int8 local_28;
int4 local_20;
int4 local_1c;
int8 local_18;
int8 local_10;
local_38 = param_6;
local_2c = param_5;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,8);
if (local_48 == 0) {
local_10 = my_seek(local_20,local_28,local_2c,local_38);
}
else {
(**(code **)(PSI_server + 0x210))(local_48,0,local_18,local_1c);
local_40 = my_seek(local_20,local_28,local_2c,local_38);
(**(code **)(PSI_server + 0x218))(local_48,0);
local_10 = local_40;
}
return local_10;
}
|
|
57,444
|
inline_mysql_file_seek
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline my_off_t
inline_mysql_file_seek(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, my_off_t pos, int whence, myf flags)
{
my_off_t result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_SEEK);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, (size_t) 0, src_file, src_line);
result= my_seek(file, pos, whence, flags);
PSI_FILE_CALL(end_file_wait)(locker, (size_t) 0);
return result;
}
#endif
result= my_seek(file, pos, whence, flags);
return result;
}
|
O3
|
c
|
inline_mysql_file_seek:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x48, %rsp
movl %edi, %ebx
leaq 0x306d92(%rip), %rax # 0x386010
movq (%rax), %rax
leaq -0x50(%rbp), %rdi
movl %ebx, %esi
movl $0x8, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x7f2ab
movl %ebx, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xa0a84
addq $0x48, %rsp
popq %rbx
popq %rbp
retq
movq %rax, %rdi
movl %ebx, %esi
callq 0x2e136
jmp 0x7f2a4
|
inline_mysql_file_seek_0:
push rbp
mov rbp, rsp
push rbx
sub rsp, 48h
mov ebx, edi
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_50]
mov esi, ebx
mov edx, 8
call qword ptr [rax+158h]
test rax, rax
jnz short loc_7F2AB
mov edi, ebx
xor esi, esi
xor edx, edx
xor ecx, ecx
call my_seek
loc_7F2A4:
add rsp, 48h
pop rbx
pop rbp
retn
loc_7F2AB:
mov rdi, rax
mov esi, ebx
call inline_mysql_file_seek_cold_1_0
jmp short loc_7F2A4
|
long long inline_mysql_file_seek_0(unsigned int a1)
{
long long v1; // rax
_BYTE v3[80]; // [rsp+0h] [rbp-50h] BYREF
v1 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v3, a1, 8LL);
if ( v1 )
return inline_mysql_file_seek_cold_1_0(v1, a1);
else
return my_seek(a1, 0LL, 0LL, 0LL);
}
|
inline_mysql_file_seek:
PUSH RBP
MOV RBP,RSP
PUSH RBX
SUB RSP,0x48
MOV EBX,EDI
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x50]
MOV ESI,EBX
MOV EDX,0x8
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x0017f2ab
MOV EDI,EBX
XOR ESI,ESI
XOR EDX,EDX
XOR ECX,ECX
CALL 0x001a0a84
LAB_0017f2a4:
ADD RSP,0x48
POP RBX
POP RBP
RET
LAB_0017f2ab:
MOV RDI,RAX
MOV ESI,EBX
CALL 0x0012e136
JMP 0x0017f2a4
|
void inline_mysql_file_seek(int4 param_1)
{
long lVar1;
int1 local_58 [72];
lVar1 = (**(code **)(PSI_server + 0x158))(local_58,param_1,8);
if (lVar1 == 0) {
my_seek(param_1,0,0,0);
}
else {
inline_mysql_file_seek_cold_1(lVar1,param_1);
}
return;
}
|
|
57,445
|
my_string_metadata_get
|
eloqsql/strings/ctype.c
|
void
my_string_metadata_get(MY_STRING_METADATA *metadata,
CHARSET_INFO *cs, const char *str, size_t length)
{
if (cs->mbmaxlen == 1 && !(cs->state & MY_CS_NONASCII))
{
metadata->char_length= length;
metadata->repertoire= my_string_repertoire_8bit(cs, str, (ulong)length);
}
else
{
my_string_metadata_get_mb(metadata, cs, str, (ulong)length);
}
}
|
O3
|
c
|
my_string_metadata_get:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
cmpl $0x1, 0x9c(%rsi)
jne 0x59391
testb $0x20, 0xd(%r12)
jne 0x59391
movq %r14, (%rbx)
movl $0x3, %eax
testq %r14, %r14
je 0x59371
movl $0x2000, %ecx # imm = 0x2000
andl 0xc(%r12), %ecx
jne 0x5938c
testq %r14, %r14
jle 0x59387
addq %r15, %r14
cmpb $0x0, (%r15)
js 0x5938c
incq %r15
cmpq %r14, %r15
jb 0x59379
movl $0x1, %eax
movl %eax, 0x8(%rbx)
jmp 0x593fb
movl $0x1, 0x8(%rbx)
movq $0x0, (%rbx)
testq %r14, %r14
jle 0x593fb
addq %r15, %r14
leaq -0x30(%rbp), %r13
movq 0xb8(%r12), %rax
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq *0x28(%rax)
testl %eax, %eax
jle 0x593d6
cmpq $0x80, -0x30(%rbp)
jb 0x593ee
orb $0x2, 0x8(%rbx)
jmp 0x593ee
je 0x593e5
orb $0x2, 0x8(%rbx)
cmpl $-0x64, %eax
jb 0x593fb
negl %eax
jmp 0x593ee
orb $0x2, 0x8(%rbx)
movl $0x1, %eax
movl %eax, %eax
addq %rax, %r15
incq (%rbx)
cmpq %r14, %r15
jb 0x593ab
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_string_metadata_get:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rcx
mov r15, rdx
mov r12, rsi
mov rbx, rdi
cmp dword ptr [rsi+9Ch], 1
jnz short loc_59391
test byte ptr [r12+0Dh], 20h
jnz short loc_59391
mov [rbx], r14
mov eax, 3
test r14, r14
jz short loc_59371
mov ecx, 2000h
and ecx, [r12+0Ch]
jnz short loc_5938C
loc_59371:
test r14, r14
jle short loc_59387
add r14, r15
loc_59379:
cmp byte ptr [r15], 0
js short loc_5938C
inc r15
cmp r15, r14
jb short loc_59379
loc_59387:
mov eax, 1
loc_5938C:
mov [rbx+8], eax
jmp short loc_593FB
loc_59391:
mov dword ptr [rbx+8], 1
mov qword ptr [rbx], 0
test r14, r14
jle short loc_593FB
add r14, r15
lea r13, [rbp+var_30]
loc_593AB:
mov rax, [r12+0B8h]
mov rdi, r12
mov rsi, r13
mov rdx, r15
mov rcx, r14
call qword ptr [rax+28h]
test eax, eax
jle short loc_593D6
cmp [rbp+var_30], 80h
jb short loc_593EE
or byte ptr [rbx+8], 2
jmp short loc_593EE
loc_593D6:
jz short loc_593E5
or byte ptr [rbx+8], 2
cmp eax, 0FFFFFF9Ch
jb short loc_593FB
neg eax
jmp short loc_593EE
loc_593E5:
or byte ptr [rbx+8], 2
mov eax, 1
loc_593EE:
mov eax, eax
add r15, rax
inc qword ptr [rbx]
cmp r15, r14
jb short loc_593AB
loc_593FB:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long my_string_metadata_get(long long a1, long long a2, char *a3, long long a4)
{
long long result; // rax
char *v5; // r15
unsigned long long v6; // r14
unsigned long long v7[6]; // [rsp+0h] [rbp-30h] BYREF
v7[0] = result;
v5 = a3;
if ( *(_DWORD *)(a2 + 156) != 1 || (*(_BYTE *)(a2 + 13) & 0x20) != 0 )
{
*(_DWORD *)(a1 + 8) = 1;
*(_QWORD *)a1 = 0LL;
if ( a4 > 0 )
{
v6 = (unsigned long long)&a3[a4];
do
{
result = (*(long long ( **)(long long, unsigned long long *, char *, unsigned long long))(*(_QWORD *)(a2 + 184)
+ 40LL))(
a2,
v7,
v5,
v6);
if ( (int)result <= 0 )
{
if ( (_DWORD)result )
{
*(_BYTE *)(a1 + 8) |= 2u;
if ( (unsigned int)result < 0xFFFFFF9C )
return result;
LODWORD(result) = -(int)result;
}
else
{
*(_BYTE *)(a1 + 8) |= 2u;
LODWORD(result) = 1;
}
}
else if ( v7[0] >= 0x80 )
{
*(_BYTE *)(a1 + 8) |= 2u;
}
result = (unsigned int)result;
v5 += (unsigned int)result;
++*(_QWORD *)a1;
}
while ( (unsigned long long)v5 < v6 );
}
}
else
{
*(_QWORD *)a1 = a4;
result = 3LL;
if ( !a4 || (*(_DWORD *)(a2 + 12) & 0x2000) == 0 )
{
if ( a4 <= 0 )
{
LABEL_8:
result = 1LL;
}
else
{
while ( *v5 >= 0 )
{
if ( ++v5 >= &a3[a4] )
goto LABEL_8;
}
}
}
*(_DWORD *)(a1 + 8) = result;
}
return result;
}
|
my_string_metadata_get:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RCX
MOV R15,RDX
MOV R12,RSI
MOV RBX,RDI
CMP dword ptr [RSI + 0x9c],0x1
JNZ 0x00159391
TEST byte ptr [R12 + 0xd],0x20
JNZ 0x00159391
MOV qword ptr [RBX],R14
MOV EAX,0x3
TEST R14,R14
JZ 0x00159371
MOV ECX,0x2000
AND ECX,dword ptr [R12 + 0xc]
JNZ 0x0015938c
LAB_00159371:
TEST R14,R14
JLE 0x00159387
ADD R14,R15
LAB_00159379:
CMP byte ptr [R15],0x0
JS 0x0015938c
INC R15
CMP R15,R14
JC 0x00159379
LAB_00159387:
MOV EAX,0x1
LAB_0015938c:
MOV dword ptr [RBX + 0x8],EAX
JMP 0x001593fb
LAB_00159391:
MOV dword ptr [RBX + 0x8],0x1
MOV qword ptr [RBX],0x0
TEST R14,R14
JLE 0x001593fb
ADD R14,R15
LEA R13,[RBP + -0x30]
LAB_001593ab:
MOV RAX,qword ptr [R12 + 0xb8]
MOV RDI,R12
MOV RSI,R13
MOV RDX,R15
MOV RCX,R14
CALL qword ptr [RAX + 0x28]
TEST EAX,EAX
JLE 0x001593d6
CMP qword ptr [RBP + -0x30],0x80
JC 0x001593ee
OR byte ptr [RBX + 0x8],0x2
JMP 0x001593ee
LAB_001593d6:
JZ 0x001593e5
OR byte ptr [RBX + 0x8],0x2
CMP EAX,-0x64
JC 0x001593fb
NEG EAX
JMP 0x001593ee
LAB_001593e5:
OR byte ptr [RBX + 0x8],0x2
MOV EAX,0x1
LAB_001593ee:
MOV EAX,EAX
ADD R15,RAX
INC qword ptr [RBX]
CMP R15,R14
JC 0x001593ab
LAB_001593fb:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void my_string_metadata_get(long *param_1,long param_2,char *param_3,long param_4)
{
int4 uVar1;
uint uVar2;
ulong in_RAX;
char *pcVar3;
ulong local_38;
if ((*(int *)(param_2 + 0x9c) == 1) && ((*(byte *)(param_2 + 0xd) & 0x20) == 0)) {
*param_1 = param_4;
uVar1 = 3;
if ((param_4 == 0) || ((*(uint *)(param_2 + 0xc) & 0x2000) == 0)) {
if (0 < param_4) {
pcVar3 = param_3 + param_4;
do {
if (*param_3 < '\0') goto LAB_0015938c;
param_3 = param_3 + 1;
} while (param_3 < pcVar3);
}
uVar1 = 1;
}
LAB_0015938c:
*(int4 *)(param_1 + 1) = uVar1;
}
else {
*(int4 *)(param_1 + 1) = 1;
*param_1 = 0;
if (0 < param_4) {
pcVar3 = param_3 + param_4;
local_38 = in_RAX;
do {
uVar2 = (**(code **)(*(long *)(param_2 + 0xb8) + 0x28))(param_2,&local_38,param_3,pcVar3);
if ((int)uVar2 < 1) {
if (uVar2 == 0) {
*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 2;
uVar2 = 1;
}
else {
*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 2;
if (uVar2 < 0xffffff9c) {
return;
}
uVar2 = -uVar2;
}
}
else if (0x7f < local_38) {
*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 2;
}
param_3 = param_3 + uVar2;
*param_1 = *param_1 + 1;
} while (param_3 < pcVar3);
}
}
return;
}
|
|
57,446
|
ma_scan_remember_block_record
|
eloqsql/storage/maria/ma_blockrec.c
|
int _ma_scan_remember_block_record(MARIA_HA *info,
MARIA_RECORD_POS *lastpos)
{
uchar *bitmap_buff;
DBUG_ENTER("_ma_scan_remember_block_record");
if (!(info->scan_save))
{
if (!(info->scan_save= my_malloc(PSI_INSTRUMENT_ME,
ALIGN_SIZE(sizeof(*info->scan_save)) +
info->s->block_size * 2,
MYF(MY_WME))))
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
info->scan_save->bitmap_buff= ((uchar*) info->scan_save +
ALIGN_SIZE(sizeof(*info->scan_save)));
}
/* For checking if pages have changed since we last read it */
info->scan.row_changes= info->row_changes;
/* Remember used bitmap and used head page */
bitmap_buff= info->scan_save->bitmap_buff;
memcpy(info->scan_save, &info->scan, sizeof(*info->scan_save));
info->scan_save->bitmap_buff= bitmap_buff;
memcpy(bitmap_buff, info->scan.bitmap_buff, info->s->block_size * 2);
/* Point to the last read row */
*lastpos= info->cur_row.nextpos - 1;
info->scan_save->dir+= DIR_ENTRY_SIZE;
DBUG_RETURN(0);
}
|
O0
|
c
|
ma_scan_remember_block_record:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x280(%rax)
jne 0x5944d
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x7bc(%rax), %eax
shll %eax
movl %eax, %eax
movl %eax, %esi
addq $0x60, %rsi
xorl %edi, %edi
movl $0x10, %edx
callq 0xf3a20
movq -0x10(%rbp), %rcx
movq %rax, 0x280(%rcx)
cmpq $0x0, %rax
jne 0x59430
jmp 0x59424
movl $0x80, -0x4(%rbp)
jmp 0x59502
movq -0x10(%rbp), %rax
movq 0x280(%rax), %rcx
addq $0x60, %rcx
movq -0x10(%rbp), %rax
movq 0x280(%rax), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0x3f0(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x278(%rax)
movq -0x10(%rbp), %rax
movq 0x280(%rax), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x280(%rax), %rdi
movq -0x10(%rbp), %rsi
addq $0x220, %rsi # imm = 0x220
movl $0x60, %edx
callq 0x2a090
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x280(%rax), %rax
movq %rcx, (%rax)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x220(%rax), %rsi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x7bc(%rax), %eax
shll %eax
movl %eax, %eax
movl %eax, %edx
callq 0x2a090
movq -0x10(%rbp), %rax
movq 0xa0(%rax), %rcx
subq $0x1, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0x280(%rax), %rax
movq 0x20(%rax), %rcx
addq $0x4, %rcx
movq %rcx, 0x20(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
_ma_scan_remember_block_record:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
cmp qword ptr [rax+280h], 0
jnz short loc_5944D
mov rax, [rbp+var_10]
mov rax, [rax]
mov eax, [rax+7BCh]
shl eax, 1
mov eax, eax
mov esi, eax
add rsi, 60h ; '`'
xor edi, edi
mov edx, 10h
call my_malloc
mov rcx, [rbp+var_10]
mov [rcx+280h], rax
cmp rax, 0
jnz short loc_59430
jmp short $+2
loc_59424:
mov [rbp+var_4], 80h
jmp loc_59502
loc_59430:
mov rax, [rbp+var_10]
mov rcx, [rax+280h]
add rcx, 60h ; '`'
mov rax, [rbp+var_10]
mov rax, [rax+280h]
mov [rax], rcx
loc_5944D:
mov rax, [rbp+var_10]
mov rcx, [rax+3F0h]
mov rax, [rbp+var_10]
mov [rax+278h], rcx
mov rax, [rbp+var_10]
mov rax, [rax+280h]
mov rax, [rax]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rdi, [rax+280h]
mov rsi, [rbp+var_10]
add rsi, 220h
mov edx, 60h ; '`'
call _memcpy
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov rax, [rax+280h]
mov [rax], rcx
mov rdi, [rbp+var_20]
mov rax, [rbp+var_10]
mov rsi, [rax+220h]
mov rax, [rbp+var_10]
mov rax, [rax]
mov eax, [rax+7BCh]
shl eax, 1
mov eax, eax
mov edx, eax
call _memcpy
mov rax, [rbp+var_10]
mov rcx, [rax+0A0h]
sub rcx, 1
mov rax, [rbp+var_18]
mov [rax], rcx
mov rax, [rbp+var_10]
mov rax, [rax+280h]
mov rcx, [rax+20h]
add rcx, 4
mov [rax+20h], rcx
mov [rbp+var_4], 0
loc_59502:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
|
long long ma_scan_remember_block_record(_QWORD *a1, _QWORD *a2)
{
long long v2; // rax
long long v4; // [rsp+0h] [rbp-20h]
if ( a1[80] )
goto LABEL_5;
v2 = my_malloc(0LL, (unsigned int)(2 * *(_DWORD *)(*a1 + 1980LL)) + 96LL, 16LL);
a1[80] = v2;
if ( v2 )
{
*(_QWORD *)a1[80] = a1[80] + 96LL;
LABEL_5:
a1[79] = a1[126];
v4 = *(_QWORD *)a1[80];
memcpy(a1[80], a1 + 68, 96LL);
*(_QWORD *)a1[80] = v4;
memcpy(v4, a1[68], (unsigned int)(2 * *(_DWORD *)(*a1 + 1980LL)));
*a2 = a1[20] - 1LL;
*(_QWORD *)(a1[80] + 32LL) += 4LL;
return 0;
}
return 128;
}
|
_ma_scan_remember_block_record:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x280],0x0
JNZ 0x0015944d
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x7bc]
SHL EAX,0x1
MOV EAX,EAX
MOV ESI,EAX
ADD RSI,0x60
XOR EDI,EDI
MOV EDX,0x10
CALL 0x001f3a20
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x280],RAX
CMP RAX,0x0
JNZ 0x00159430
JMP 0x00159424
LAB_00159424:
MOV dword ptr [RBP + -0x4],0x80
JMP 0x00159502
LAB_00159430:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x280]
ADD RCX,0x60
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x280]
MOV qword ptr [RAX],RCX
LAB_0015944d:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x3f0]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x278],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x280]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x280]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x220
MOV EDX,0x60
CALL 0x0012a090
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x280]
MOV qword ptr [RAX],RCX
MOV RDI,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x220]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x7bc]
SHL EAX,0x1
MOV EAX,EAX
MOV EDX,EAX
CALL 0x0012a090
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0xa0]
SUB RCX,0x1
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x280]
MOV RCX,qword ptr [RAX + 0x20]
ADD RCX,0x4
MOV qword ptr [RAX + 0x20],RCX
MOV dword ptr [RBP + -0x4],0x0
LAB_00159502:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 _ma_scan_remember_block_record(long *param_1,long *param_2)
{
void *__dest;
long lVar1;
if (param_1[0x50] == 0) {
lVar1 = my_malloc(0,(ulong)(uint)(*(int *)(*param_1 + 0x7bc) << 1) + 0x60,0x10);
param_1[0x50] = lVar1;
if (lVar1 == 0) {
return 0x80;
}
*(long *)param_1[0x50] = param_1[0x50] + 0x60;
}
param_1[0x4f] = param_1[0x7e];
__dest = *(void **)param_1[0x50];
memcpy((void *)param_1[0x50],param_1 + 0x44,0x60);
*(void **)param_1[0x50] = __dest;
memcpy(__dest,(void *)param_1[0x44],(ulong)(uint)(*(int *)(*param_1 + 0x7bc) << 1));
*param_2 = param_1[0x14] + -1;
*(long *)(param_1[0x50] + 0x20) = *(long *)(param_1[0x50] + 0x20) + 4;
return 0;
}
|
|
57,447
|
mi_keylength_part
|
eloqsql/storage/myisam/mi_search.c
|
uint _mi_keylength_part(MI_KEYDEF *keyinfo, register uchar *key,
HA_KEYSEG *end)
{
reg1 HA_KEYSEG *keyseg;
uchar *start= key;
for (keyseg=keyinfo->seg ; keyseg != end ; keyseg++)
{
if (keyseg->flag & HA_NULL_PART)
if (!*key++)
continue;
if (keyseg->flag & (HA_SPACE_PACK | HA_BLOB_PART | HA_VAR_LENGTH_PART))
{
uint length;
get_key_length(length,key);
key+=length;
}
else
key+= keyseg->length;
}
return (uint) (key-start);
}
|
O3
|
c
|
mi_keylength_part:
movq 0x28(%rdi), %rcx
movq %rsi, %rax
cmpq %rdx, %rcx
je 0x88a58
pushq %rbp
movq %rsp, %rbp
movq %rsi, %rax
movzwl 0x12(%rcx), %edi
testb $0x10, %dil
je 0x88a17
cmpb $0x0, (%rax)
leaq 0x1(%rax), %rax
je 0x88a4e
testb $0x29, %dil
je 0x88a31
movzbl (%rax), %edi
cmpq $0xff, %rdi
je 0x88a37
movl $0x1, %r8d
jmp 0x88a48
movzwl 0x14(%rcx), %edi
jmp 0x88a4b
movzwl 0x1(%rax), %edi
rolw $0x8, %di
movzwl %di, %edi
movl $0x3, %r8d
addq %r8, %rax
addq %rdi, %rax
addq $0x20, %rcx
cmpq %rdx, %rcx
jne 0x88a04
popq %rbp
subl %esi, %eax
retq
|
_mi_keylength_part:
mov rcx, [rdi+28h]
mov rax, rsi
cmp rcx, rdx
jz short loc_88A58
push rbp
mov rbp, rsp
mov rax, rsi
loc_88A04:
movzx edi, word ptr [rcx+12h]
test dil, 10h
jz short loc_88A17
cmp byte ptr [rax], 0
lea rax, [rax+1]
jz short loc_88A4E
loc_88A17:
test dil, 29h
jz short loc_88A31
movzx edi, byte ptr [rax]
cmp rdi, 0FFh
jz short loc_88A37
mov r8d, 1
jmp short loc_88A48
loc_88A31:
movzx edi, word ptr [rcx+14h]
jmp short loc_88A4B
loc_88A37:
movzx edi, word ptr [rax+1]
rol di, 8
movzx edi, di
mov r8d, 3
loc_88A48:
add rax, r8
loc_88A4B:
add rax, rdi
loc_88A4E:
add rcx, 20h ; ' '
cmp rcx, rdx
jnz short loc_88A04
pop rbp
loc_88A58:
sub eax, esi
retn
|
long long mi_keylength_part(long long a1, unsigned __int8 *a2, long long a3)
{
long long v3; // rcx
unsigned __int8 *v4; // rax
__int16 v5; // di
bool v6; // zf
long long v7; // rdi
long long v8; // r8
v3 = *(_QWORD *)(a1 + 40);
LODWORD(v4) = (_DWORD)a2;
if ( v3 != a3 )
{
v4 = a2;
do
{
v5 = *(_WORD *)(v3 + 18);
if ( (v5 & 0x10) == 0 || (v6 = *v4 == 0, ++v4, !v6) )
{
if ( (v5 & 0x29) != 0 )
{
v7 = *v4;
if ( v7 == 255 )
{
v7 = (unsigned __int16)__ROL2__(*(_WORD *)(v4 + 1), 8);
v8 = 3LL;
}
else
{
v8 = 1LL;
}
v4 += v8;
}
else
{
v7 = *(unsigned __int16 *)(v3 + 20);
}
v4 += v7;
}
v3 += 32LL;
}
while ( v3 != a3 );
}
return (unsigned int)((_DWORD)v4 - (_DWORD)a2);
}
|
_mi_keylength_part:
MOV RCX,qword ptr [RDI + 0x28]
MOV RAX,RSI
CMP RCX,RDX
JZ 0x00188a58
PUSH RBP
MOV RBP,RSP
MOV RAX,RSI
LAB_00188a04:
MOVZX EDI,word ptr [RCX + 0x12]
TEST DIL,0x10
JZ 0x00188a17
CMP byte ptr [RAX],0x0
LEA RAX,[RAX + 0x1]
JZ 0x00188a4e
LAB_00188a17:
TEST DIL,0x29
JZ 0x00188a31
MOVZX EDI,byte ptr [RAX]
CMP RDI,0xff
JZ 0x00188a37
MOV R8D,0x1
JMP 0x00188a48
LAB_00188a31:
MOVZX EDI,word ptr [RCX + 0x14]
JMP 0x00188a4b
LAB_00188a37:
MOVZX EDI,word ptr [RAX + 0x1]
ROL DI,0x8
MOVZX EDI,DI
MOV R8D,0x3
LAB_00188a48:
ADD RAX,R8
LAB_00188a4b:
ADD RAX,RDI
LAB_00188a4e:
ADD RCX,0x20
CMP RCX,RDX
JNZ 0x00188a04
POP RBP
LAB_00188a58:
SUB EAX,ESI
RET
|
int _mi_keylength_part(long param_1,byte *param_2,long param_3)
{
byte bVar1;
long lVar2;
int iVar3;
ulong uVar4;
long lVar5;
iVar3 = (int)param_2;
for (lVar2 = *(long *)(param_1 + 0x28); lVar2 != param_3; lVar2 = lVar2 + 0x20) {
if (((*(ushort *)(lVar2 + 0x12) & 0x10) == 0) ||
(bVar1 = *param_2, param_2 = param_2 + 1, bVar1 != 0)) {
if ((*(ushort *)(lVar2 + 0x12) & 0x29) == 0) {
uVar4 = (ulong)*(ushort *)(lVar2 + 0x14);
}
else {
uVar4 = (ulong)*param_2;
if (uVar4 == 0xff) {
uVar4 = (ulong)(ushort)(*(ushort *)(param_2 + 1) << 8 | *(ushort *)(param_2 + 1) >> 8);
lVar5 = 3;
}
else {
lVar5 = 1;
}
param_2 = param_2 + lVar5;
}
param_2 = param_2 + uVar4;
}
}
return (int)param_2 - iVar3;
}
|
|
57,448
|
mysql_select_db
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
int STDCALL
mysql_select_db(MYSQL *mysql, const char *db)
{
int error;
if (!db)
return 1;
if ((error=ma_simple_command(mysql, COM_INIT_DB, db,
(uint) strlen(db),0,0)))
return(error);
free(mysql->db);
mysql->db=strdup(db);
return(0);
}
|
O0
|
c
|
mysql_select_db:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x1dc20
movl $0x1, -0x4(%rbp)
jmp 0x1dc95
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
callq 0x131a0
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rdx
movl %eax, %eax
movl %eax, %ecx
movl $0x2, %esi
xorl %r8d, %r8d
xorl %eax, %eax
movl %eax, %r9d
callq 0x17ad0
movl %eax, -0x1c(%rbp)
cmpl $0x0, %eax
je 0x1dc67
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1dc95
movq -0x10(%rbp), %rax
movq 0x2e8(%rax), %rdi
callq 0x13520
movq -0x18(%rbp), %rdi
callq 0x137a0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x2e8(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop
|
mysql_select_db:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
cmp [rbp+var_18], 0
jnz short loc_1DC20
mov [rbp+var_4], 1
jmp short loc_1DC95
loc_1DC20:
mov rax, [rbp+var_10]
mov [rbp+var_30], rax
mov rax, [rbp+var_18]
mov [rbp+var_28], rax
mov rdi, [rbp+var_18]
call _strlen
mov rdi, [rbp+var_30]
mov rdx, [rbp+var_28]
mov eax, eax
mov ecx, eax
mov esi, 2
xor r8d, r8d
xor eax, eax
mov r9d, eax
call ma_simple_command
mov [rbp+var_1C], eax
cmp eax, 0
jz short loc_1DC67
mov eax, [rbp+var_1C]
mov [rbp+var_4], eax
jmp short loc_1DC95
loc_1DC67:
mov rax, [rbp+var_10]
mov rdi, [rax+2E8h]
call _free
mov rdi, [rbp+var_18]
call _strdup
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+2E8h], rcx
mov [rbp+var_4], 0
loc_1DC95:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
long long mysql_select_db(long long a1, long long a2)
{
unsigned int v2; // eax
unsigned int v4; // [rsp+14h] [rbp-1Ch]
if ( a2 )
{
v2 = strlen(a2);
v4 = ma_simple_command(a1, 2u, a2, v2, 0, 0LL);
if ( v4 )
{
return v4;
}
else
{
free(*(_QWORD *)(a1 + 744));
*(_QWORD *)(a1 + 744) = strdup(a2);
return 0;
}
}
else
{
return 1;
}
}
|
mysql_select_db:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
CMP qword ptr [RBP + -0x18],0x0
JNZ 0x0011dc20
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0011dc95
LAB_0011dc20:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001131a0
MOV RDI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x28]
MOV EAX,EAX
MOV ECX,EAX
MOV ESI,0x2
XOR R8D,R8D
XOR EAX,EAX
MOV R9D,EAX
CALL 0x00117ad0
MOV dword ptr [RBP + -0x1c],EAX
CMP EAX,0x0
JZ 0x0011dc67
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0011dc95
LAB_0011dc67:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x2e8]
CALL 0x00113520
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001137a0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x2e8],RCX
MOV dword ptr [RBP + -0x4],0x0
LAB_0011dc95:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int mysql_select_db(long param_1,char *param_2)
{
size_t sVar1;
char *pcVar2;
int4 local_c;
if (param_2 == (char *)0x0) {
local_c = 1;
}
else {
sVar1 = strlen(param_2);
local_c = ma_simple_command(param_1,2,param_2,sVar1 & 0xffffffff,0,0);
if (local_c == 0) {
free(*(void **)(param_1 + 0x2e8));
pcVar2 = strdup(param_2);
*(char **)(param_1 + 0x2e8) = pcVar2;
local_c = 0;
}
}
return local_c;
}
|
|
57,449
|
experiments::init_late()
|
untodesu[P]voxelius/game/client/experiments.cc
|
void experiments::init_late(void)
{
hotbar::slots[0] = game_items::cobblestone;
hotbar::slots[1] = game_items::stone;
hotbar::slots[2] = game_items::dirt;
hotbar::slots[3] = game_items::grass;
hotbar::slots[4] = game_items::oak_leaves;
hotbar::slots[5] = game_items::oak_planks;
hotbar::slots[6] = game_items::oak_log;
hotbar::slots[7] = game_items::glass;
hotbar::slots[8] = game_items::slime;
}
|
O0
|
cpp
|
experiments::init_late():
pushq %rbp
movq %rsp, %rbp
leaq 0x48412d(%rip), %rax # 0x510a08
movl (%rax), %ecx
leaq 0x4819bc(%rip), %rax # 0x50e2a0
movl %ecx, (%rax)
leaq 0x484117(%rip), %rax # 0x510a04
movl (%rax), %ecx
leaq 0x4819aa(%rip), %rax # 0x50e2a0
movl %ecx, 0x4(%rax)
leaq 0x48410c(%rip), %rax # 0x510a0c
movl (%rax), %ecx
leaq 0x481997(%rip), %rax # 0x50e2a0
movl %ecx, 0x8(%rax)
leaq 0x4840fd(%rip), %rax # 0x510a10
movl (%rax), %ecx
leaq 0x481984(%rip), %rax # 0x50e2a0
movl %ecx, 0xc(%rax)
leaq 0x4840ee(%rip), %rax # 0x510a14
movl (%rax), %ecx
leaq 0x481971(%rip), %rax # 0x50e2a0
movl %ecx, 0x10(%rax)
leaq 0x4840df(%rip), %rax # 0x510a18
movl (%rax), %ecx
leaq 0x48195e(%rip), %rax # 0x50e2a0
movl %ecx, 0x14(%rax)
leaq 0x4840d0(%rip), %rax # 0x510a1c
movl (%rax), %ecx
leaq 0x48194b(%rip), %rax # 0x50e2a0
movl %ecx, 0x18(%rax)
leaq 0x4840c1(%rip), %rax # 0x510a20
movl (%rax), %ecx
leaq 0x481938(%rip), %rax # 0x50e2a0
movl %ecx, 0x1c(%rax)
leaq 0x4840b2(%rip), %rax # 0x510a24
movl (%rax), %ecx
leaq 0x481925(%rip), %rax # 0x50e2a0
movl %ecx, 0x20(%rax)
popq %rbp
retq
|
_ZN11experiments9init_lateEv:
push rbp
mov rbp, rsp
lea rax, _ZN10game_items11cobblestoneE; game_items::cobblestone
mov ecx, [rax]
lea rax, _ZN6hotbar5slotsE; hotbar::slots
mov [rax], ecx
lea rax, _ZN10game_items5stoneE; game_items::stone
mov ecx, [rax]
lea rax, _ZN6hotbar5slotsE; hotbar::slots
mov [rax+4], ecx
lea rax, _ZN10game_items4dirtE; game_items::dirt
mov ecx, [rax]
lea rax, _ZN6hotbar5slotsE; hotbar::slots
mov [rax+8], ecx
lea rax, _ZN10game_items5grassE; game_items::grass
mov ecx, [rax]
lea rax, _ZN6hotbar5slotsE; hotbar::slots
mov [rax+0Ch], ecx
lea rax, _ZN10game_items10oak_leavesE; game_items::oak_leaves
mov ecx, [rax]
lea rax, _ZN6hotbar5slotsE; hotbar::slots
mov [rax+10h], ecx
lea rax, _ZN10game_items10oak_planksE; game_items::oak_planks
mov ecx, [rax]
lea rax, _ZN6hotbar5slotsE; hotbar::slots
mov [rax+14h], ecx
lea rax, _ZN10game_items7oak_logE; game_items::oak_log
mov ecx, [rax]
lea rax, _ZN6hotbar5slotsE; hotbar::slots
mov [rax+18h], ecx
lea rax, _ZN10game_items5glassE; game_items::glass
mov ecx, [rax]
lea rax, _ZN6hotbar5slotsE; hotbar::slots
mov [rax+1Ch], ecx
lea rax, _ZN10game_items5slimeE; game_items::slime
mov ecx, [rax]
lea rax, _ZN6hotbar5slotsE; hotbar::slots
mov [rax+20h], ecx
pop rbp
retn
|
_DWORD * experiments::init_late(experiments *this)
{
_DWORD *result; // rax
hotbar::slots[0] = game_items::cobblestone;
hotbar::slots[1] = game_items::stone;
hotbar::slots[2] = game_items::dirt;
hotbar::slots[3] = game_items::grass;
hotbar::slots[4] = game_items::oak_leaves;
hotbar::slots[5] = game_items::oak_planks;
hotbar::slots[6] = game_items::oak_log;
hotbar::slots[7] = game_items::glass;
result = hotbar::slots;
hotbar::slots[8] = game_items::slime;
return result;
}
|
init_late:
PUSH RBP
MOV RBP,RSP
LEA RAX,[0x610a08]
MOV ECX,dword ptr [RAX]
LEA RAX,[0x60e2a0]
MOV dword ptr [RAX],ECX
LEA RAX,[0x610a04]
MOV ECX,dword ptr [RAX]
LEA RAX,[0x60e2a0]
MOV dword ptr [RAX + 0x4],ECX
LEA RAX,[0x610a0c]
MOV ECX,dword ptr [RAX]
LEA RAX,[0x60e2a0]
MOV dword ptr [RAX + 0x8],ECX
LEA RAX,[0x610a10]
MOV ECX,dword ptr [RAX]
LEA RAX,[0x60e2a0]
MOV dword ptr [RAX + 0xc],ECX
LEA RAX,[0x610a14]
MOV ECX,dword ptr [RAX]
LEA RAX,[0x60e2a0]
MOV dword ptr [RAX + 0x10],ECX
LEA RAX,[0x610a18]
MOV ECX,dword ptr [RAX]
LEA RAX,[0x60e2a0]
MOV dword ptr [RAX + 0x14],ECX
LEA RAX,[0x610a1c]
MOV ECX,dword ptr [RAX]
LEA RAX,[0x60e2a0]
MOV dword ptr [RAX + 0x18],ECX
LEA RAX,[0x610a20]
MOV ECX,dword ptr [RAX]
LEA RAX,[0x60e2a0]
MOV dword ptr [RAX + 0x1c],ECX
LEA RAX,[0x610a24]
MOV ECX,dword ptr [RAX]
LEA RAX,[0x60e2a0]
MOV dword ptr [RAX + 0x20],ECX
POP RBP
RET
|
/* experiments::init_late() */
void experiments::init_late(void)
{
hotbar::slots = game_items::cobblestone;
DAT_0060e2a4 = game_items::stone;
DAT_0060e2a8 = game_items::dirt;
DAT_0060e2ac = game_items::grass;
DAT_0060e2b0 = game_items::oak_leaves;
DAT_0060e2b4 = game_items::oak_planks;
DAT_0060e2b8 = game_items::oak_log;
DAT_0060e2bc = game_items::glass;
DAT_0060e2c0 = game_items::slime;
return;
}
|
|
57,450
|
experiments::init_late()
|
untodesu[P]voxelius/game/client/experiments.cc
|
void experiments::init_late(void)
{
hotbar::slots[0] = game_items::cobblestone;
hotbar::slots[1] = game_items::stone;
hotbar::slots[2] = game_items::dirt;
hotbar::slots[3] = game_items::grass;
hotbar::slots[4] = game_items::oak_leaves;
hotbar::slots[5] = game_items::oak_planks;
hotbar::slots[6] = game_items::oak_log;
hotbar::slots[7] = game_items::glass;
hotbar::slots[8] = game_items::slime;
}
|
O3
|
cpp
|
experiments::init_late():
leaq 0x219542(%rip), %rax # 0x25c7d8
movl (%rax), %eax
leaq 0x216dd1(%rip), %rcx # 0x25a070
movl %eax, (%rcx)
leaq 0x21952c(%rip), %rax # 0x25c7d4
movl (%rax), %eax
movl %eax, 0x4(%rcx)
leaq 0x219528(%rip), %rax # 0x25c7dc
movl (%rax), %eax
movl %eax, 0x8(%rcx)
leaq 0x219520(%rip), %rax # 0x25c7e0
movl (%rax), %eax
movl %eax, 0xc(%rcx)
leaq 0x219518(%rip), %rax # 0x25c7e4
movl (%rax), %eax
movl %eax, 0x10(%rcx)
leaq 0x219510(%rip), %rax # 0x25c7e8
movl (%rax), %eax
movl %eax, 0x14(%rcx)
leaq 0x219508(%rip), %rax # 0x25c7ec
movl (%rax), %eax
movl %eax, 0x18(%rcx)
leaq 0x219500(%rip), %rax # 0x25c7f0
movl (%rax), %eax
movl %eax, 0x1c(%rcx)
leaq 0x2194f8(%rip), %rax # 0x25c7f4
movl (%rax), %eax
movl %eax, 0x20(%rcx)
retq
|
_ZN11experiments9init_lateEv:
lea rax, _ZN10game_items11cobblestoneE; game_items::cobblestone
mov eax, [rax]
lea rcx, _ZN6hotbar5slotsE; hotbar::slots
mov [rcx], eax
lea rax, _ZN10game_items5stoneE; game_items::stone
mov eax, [rax]
mov [rcx+4], eax
lea rax, _ZN10game_items4dirtE; game_items::dirt
mov eax, [rax]
mov [rcx+8], eax
lea rax, _ZN10game_items5grassE; game_items::grass
mov eax, [rax]
mov [rcx+0Ch], eax
lea rax, _ZN10game_items10oak_leavesE; game_items::oak_leaves
mov eax, [rax]
mov [rcx+10h], eax
lea rax, _ZN10game_items10oak_planksE; game_items::oak_planks
mov eax, [rax]
mov [rcx+14h], eax
lea rax, _ZN10game_items7oak_logE; game_items::oak_log
mov eax, [rax]
mov [rcx+18h], eax
lea rax, _ZN10game_items5glassE; game_items::glass
mov eax, [rax]
mov [rcx+1Ch], eax
lea rax, _ZN10game_items5slimeE; game_items::slime
mov eax, [rax]
mov [rcx+20h], eax
retn
|
long long experiments::init_late(experiments *this)
{
long long result; // rax
hotbar::slots[0] = game_items::cobblestone;
hotbar::slots[1] = game_items::stone;
hotbar::slots[2] = game_items::dirt;
hotbar::slots[3] = game_items::grass;
hotbar::slots[4] = game_items::oak_leaves;
hotbar::slots[5] = game_items::oak_planks;
hotbar::slots[6] = game_items::oak_log;
hotbar::slots[7] = game_items::glass;
result = (unsigned int)game_items::slime;
hotbar::slots[8] = game_items::slime;
return result;
}
|
init_late:
LEA RAX,[0x35c7d8]
MOV EAX,dword ptr [RAX]
LEA RCX,[0x35a070]
MOV dword ptr [RCX],EAX
LEA RAX,[0x35c7d4]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RCX + 0x4],EAX
LEA RAX,[0x35c7dc]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RCX + 0x8],EAX
LEA RAX,[0x35c7e0]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RCX + 0xc],EAX
LEA RAX,[0x35c7e4]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RCX + 0x10],EAX
LEA RAX,[0x35c7e8]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RCX + 0x14],EAX
LEA RAX,[0x35c7ec]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RCX + 0x18],EAX
LEA RAX,[0x35c7f0]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RCX + 0x1c],EAX
LEA RAX,[0x35c7f4]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RCX + 0x20],EAX
RET
|
/* experiments::init_late() */
void experiments::init_late(void)
{
hotbar::slots = game_items::cobblestone;
DAT_0035a074 = game_items::stone;
DAT_0035a078 = game_items::dirt;
DAT_0035a07c = game_items::grass;
DAT_0035a080 = game_items::oak_leaves;
DAT_0035a084 = game_items::oak_planks;
DAT_0035a088 = game_items::oak_log;
DAT_0035a08c = game_items::glass;
DAT_0035a090 = game_items::slime;
return;
}
|
|
57,451
|
nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t)
|
monkey531[P]llama/common/json.hpp
|
static out_of_range create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("out_of_range", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x668ac(%rip), %rsi # 0xcf19c
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x2b096
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
movl %ebp, %edx
callq 0x6518e
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x65204
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %r14, %rcx
callq 0x65125
leaq 0x10(%rsp), %rdi
callq 0x27998
leaq 0x50(%rsp), %rdi
callq 0x27998
leaq 0x30(%rsp), %rdi
callq 0x27998
movq 0x70(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x69244
leaq 0x70(%rsp), %rdi
callq 0x27998
movq %rbx, %rax
addq $0x90, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
jmp 0x689a9
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x27998
jmp 0x68995
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x27998
jmp 0x689a4
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x27998
jmp 0x689b3
movq %rax, %rbx
movq %rbx, %rdi
callq 0x27660
|
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
push rbp
push r14
push rbx
sub rsp, 90h
mov r14, rdx
mov ebp, esi
mov rbx, rdi
lea rsi, aOutOfRange; "out_of_range"
lea rdi, [rsp+0A8h+var_78]
lea rdx, [rsp+0A8h+var_99]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0A8h+var_58]
lea rsi, [rsp+0A8h+var_78]
mov edx, ebp
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea rdi, [rsp+0A8h+var_98]
xor esi, esi
call _ZN8nlohmann16json_abi_v3_11_36detail9exception11diagnosticsB5cxx11EDn; nlohmann::json_abi_v3_11_3::detail::exception::diagnostics(decltype(nullptr))
lea rdi, [rsp+0A8h+var_38]
lea rsi, [rsp+0A8h+var_58]
lea rdx, [rsp+0A8h+var_98]
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(std::string,std::string,std::string const&)
lea rdi, [rsp+0A8h+var_98]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_58]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdx, [rsp+0A8h+var_38]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_rangeC2EiPKc; nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(int,char const*)
lea rdi, [rsp+0A8h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, rbx
add rsp, 90h
pop rbx
pop r14
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_68]
jmp short loc_689A9
mov rbx, rax
lea rdi, [rsp+arg_8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_68995
mov rbx, rax
loc_68995:
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_689A4
mov rbx, rax
loc_689A4:
lea rdi, [rsp+arg_28]; void *
loc_689A9:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_689B3
mov rbx, rax
loc_689B3:
mov rdi, rbx
call __Unwind_Resume
|
nlohmann::json_abi_v3_11_3::detail::out_of_range * ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
nlohmann::json_abi_v3_11_3::detail::out_of_range *this,
int a2,
long long a3)
{
_QWORD v5[4]; // [rsp+10h] [rbp-98h] BYREF
_QWORD v6[4]; // [rsp+30h] [rbp-78h] BYREF
_BYTE v7[32]; // [rsp+50h] [rbp-58h] BYREF
char *v8[7]; // [rsp+70h] [rbp-38h] BYREF
std::string::basic_string<std::allocator<char>>(v6, (long long)"out_of_range");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v7, (long long)v6, a2);
nlohmann::json_abi_v3_11_3::detail::exception::diagnostics[abi:cxx11](v5);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(
(long long)v8,
(long long)v7,
(long long)v5,
a3);
std::string::~string(v5);
std::string::~string(v7);
std::string::~string(v6);
nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(this, a2, v8[0]);
std::string::~string(v8);
return this;
}
|
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x90
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LAB_001688e9:
LEA RSI,[0x1cf19c]
LEA RDI,[RSP + 0x30]
LEA RDX,[RSP + 0xf]
CALL 0x0012b096
LAB_001688ff:
LEA RDI,[RSP + 0x50]
LEA RSI,[RSP + 0x30]
MOV EDX,EBP
CALL 0x0016518e
LAB_00168910:
LEA RDI,[RSP + 0x10]
XOR ESI,ESI
CALL 0x00165204
LAB_0016891c:
LEA RDI,[RSP + 0x70]
LEA RSI,[RSP + 0x50]
LEA RDX,[RSP + 0x10]
MOV RCX,R14
CALL 0x00165125
LEA RDI,[RSP + 0x10]
CALL 0x00127998
LEA RDI,[RSP + 0x50]
CALL 0x00127998
LEA RDI,[RSP + 0x30]
CALL 0x00127998
MOV RDX,qword ptr [RSP + 0x70]
LAB_00168956:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x00169244
LAB_00168960:
LEA RDI,[RSP + 0x70]
CALL 0x00127998
MOV RAX,RBX
ADD RSP,0x90
POP RBX
POP R14
POP RBP
RET
|
out_of_range *
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(out_of_range *param_1,int param_2,string *param_3)
{
allocator local_99;
string local_98 [32];
string local_78 [32];
exception local_58 [32];
char *local_38 [4];
/* try { // try from 001688e9 to 001688fe has its CatchHandler @ 001689b0 */
std::__cxx11::string::string<std::allocator<char>>(local_78,"out_of_range",&local_99);
/* try { // try from 001688ff to 0016890f has its CatchHandler @ 001689a1 */
nlohmann::json_abi_v3_11_3::detail::exception::name(local_58,local_78,param_2);
/* try { // try from 00168910 to 0016891b has its CatchHandler @ 00168992 */
nlohmann::json_abi_v3_11_3::detail::exception::diagnostics_abi_cxx11_
((_func_decltype_nullptr *)local_98);
/* try { // try from 0016891c to 00168932 has its CatchHandler @ 00168983 */
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,std::__cxx11::string,std::__cxx11::string,std::__cxx11::string_const&>
((detail *)local_38,(string *)local_58,local_98,param_3);
std::__cxx11::string::~string(local_98);
std::__cxx11::string::~string((string *)local_58);
std::__cxx11::string::~string(local_78);
/* try { // try from 00168956 to 0016895f has its CatchHandler @ 00168979 */
nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(param_1,param_2,local_38[0]);
std::__cxx11::string::~string((string *)local_38);
return param_1;
}
|
|
57,452
|
js_typed_array___speciesCreate
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_typed_array___speciesCreate(JSContext *ctx,
JSValue this_val,
int argc, JSValue *argv)
{
JSValue obj;
JSObject *p;
JSValue ctor, ret;
int argc1;
obj = argv[0];
p = get_typed_array(ctx, obj);
if (!p)
return JS_EXCEPTION;
ctor = JS_SpeciesConstructor(ctx, obj, JS_UNDEFINED);
if (JS_IsException(ctor))
return ctor;
argc1 = max_int(argc - 1, 0);
if (JS_IsUndefined(ctor)) {
ret = js_typed_array_constructor(ctx, JS_UNDEFINED, argc1, argv + 1,
p->class_id);
} else {
ret = js_typed_array_create(ctx, ctor, argc1, argv + 1);
JS_FreeValue(ctx, ctor);
}
return ret;
}
|
O0
|
c
|
js_typed_array___speciesCreate:
subq $0xc8, %rsp
movq %rsi, 0xa8(%rsp)
movq %rdx, 0xb0(%rsp)
movq %rdi, 0xa0(%rsp)
movl %ecx, 0x9c(%rsp)
movq %r8, 0x90(%rsp)
movq 0x90(%rsp), %rax
movq (%rax), %rcx
movq %rcx, 0x80(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x88(%rsp)
movq 0xa0(%rsp), %rdi
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
callq 0x57680
movq %rax, 0x78(%rsp)
cmpq $0x0, 0x78(%rsp)
jne 0xcd193
movl $0x0, 0xb8(%rsp)
movq $0x6, 0xc0(%rsp)
jmp 0xcd31b
movq 0xa0(%rsp), %rdi
movl $0x0, 0x30(%rsp)
movq $0x3, 0x38(%rsp)
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %r8
callq 0x73550
movq %rax, 0x40(%rsp)
movq %rdx, 0x48(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x22a00
cmpl $0x0, %eax
je 0xcd21c
movq 0x68(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0xc0(%rsp)
jmp 0xcd31b
movl 0x9c(%rsp), %edi
subl $0x1, %edi
xorl %esi, %esi
callq 0x5c050
movl %eax, 0x54(%rsp)
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x2cfa0
cmpl $0x0, %eax
je 0xcd2a7
movq 0xa0(%rsp), %rdi
movl $0x0, 0x10(%rsp)
movq $0x3, 0x18(%rsp)
movl 0x54(%rsp), %ecx
movq 0x90(%rsp), %r8
addq $0x10, %r8
movq 0x78(%rsp), %rax
movzwl 0x6(%rax), %r9d
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0x56f60
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x60(%rsp)
jmp 0xcd301
movq 0xa0(%rsp), %rdi
movl 0x54(%rsp), %ecx
movq 0x90(%rsp), %r8
addq $0x10, %r8
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
callq 0xcd340
movq %rax, (%rsp)
movq %rdx, 0x8(%rsp)
movq (%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0xa0(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
callq 0x229d0
movq 0x58(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0xb8(%rsp), %rax
movq 0xc0(%rsp), %rdx
addq $0xc8, %rsp
retq
nopw %cs:(%rax,%rax)
|
js_typed_array___speciesCreate:
sub rsp, 0C8h
mov [rsp+0C8h+var_20], rsi
mov [rsp+0C8h+var_18], rdx
mov [rsp+0C8h+var_28], rdi
mov [rsp+0C8h+var_2C], ecx
mov [rsp+0C8h+var_38], r8
mov rax, [rsp+0C8h+var_38]
mov rcx, [rax]
mov [rsp+0C8h+var_48], rcx
mov rax, [rax+8]
mov [rsp+0C8h+var_40], rax
mov rdi, [rsp+0C8h+var_28]
mov rsi, [rsp+0C8h+var_48]
mov rdx, [rsp+0C8h+var_40]
call get_typed_array
mov [rsp+0C8h+var_50], rax
cmp [rsp+0C8h+var_50], 0
jnz short loc_CD193
mov dword ptr [rsp+0C8h+var_10], 0
mov [rsp+0C8h+var_8], 6
jmp loc_CD31B
loc_CD193:
mov rdi, [rsp+0C8h+var_28]
mov dword ptr [rsp+0C8h+var_98], 0
mov [rsp+0C8h+var_90], 3
mov rsi, [rsp+0C8h+var_48]
mov rdx, [rsp+0C8h+var_40]
mov rcx, [rsp+0C8h+var_98]
mov r8, [rsp+0C8h+var_90]
call JS_SpeciesConstructor
mov [rsp+0C8h+var_88], rax
mov [rsp+0C8h+var_80], rdx
mov rax, [rsp+0C8h+var_88]
mov [rsp+0C8h+var_60], rax
mov rax, [rsp+0C8h+var_80]
mov [rsp+0C8h+var_58], rax
mov rdi, [rsp+0C8h+var_60]
mov rsi, [rsp+0C8h+var_58]
call JS_IsException_1
cmp eax, 0
jz short loc_CD21C
mov rax, [rsp+0C8h+var_60]
mov [rsp+0C8h+var_10], rax
mov rax, [rsp+0C8h+var_58]
mov [rsp+0C8h+var_8], rax
jmp loc_CD31B
loc_CD21C:
mov edi, [rsp+0C8h+var_2C]
sub edi, 1
xor esi, esi
call max_int_0
mov [rsp+0C8h+var_74], eax
mov rdi, [rsp+0C8h+var_60]
mov rsi, [rsp+0C8h+var_58]
call JS_IsUndefined_0
cmp eax, 0
jz short loc_CD2A7
mov rdi, [rsp+0C8h+var_28]
mov dword ptr [rsp+0C8h+var_B8], 0
mov [rsp+0C8h+var_B0], 3
mov ecx, [rsp+0C8h+var_74]
mov r8, [rsp+0C8h+var_38]
add r8, 10h
mov rax, [rsp+0C8h+var_50]
movzx r9d, word ptr [rax+6]
mov rsi, [rsp+0C8h+var_B8]
mov rdx, [rsp+0C8h+var_B0]
call js_typed_array_constructor
mov [rsp+0C8h+var_A8], rax
mov [rsp+0C8h+var_A0], rdx
mov rax, [rsp+0C8h+var_A8]
mov [rsp+0C8h+var_70], rax
mov rax, [rsp+0C8h+var_A0]
mov [rsp+0C8h+var_68], rax
jmp short loc_CD301
loc_CD2A7:
mov rdi, [rsp+0C8h+var_28]
mov ecx, [rsp+0C8h+var_74]
mov r8, [rsp+0C8h+var_38]
add r8, 10h
mov rsi, [rsp+0C8h+var_60]
mov rdx, [rsp+0C8h+var_58]
call js_typed_array_create
mov [rsp+0C8h+var_C8], rax
mov [rsp+0C8h+var_C0], rdx
mov rax, [rsp+0C8h+var_C8]
mov [rsp+0C8h+var_70], rax
mov rax, [rsp+0C8h+var_C0]
mov [rsp+0C8h+var_68], rax
mov rdi, [rsp+0C8h+var_28]
mov rsi, [rsp+0C8h+var_60]
mov rdx, [rsp+0C8h+var_58]
call JS_FreeValue
loc_CD301:
mov rax, [rsp+0C8h+var_70]
mov [rsp+0C8h+var_10], rax
mov rax, [rsp+0C8h+var_68]
mov [rsp+0C8h+var_8], rax
loc_CD31B:
mov rax, [rsp+0C8h+var_10]
mov rdx, [rsp+0C8h+var_8]
add rsp, 0C8h
retn
|
long long js_typed_array___speciesCreate(
long long a1,
__m128 a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
long long a10,
long long a11,
int a12,
long long *a13,
long long a14)
{
double v14; // xmm4_8
double v15; // xmm5_8
long long v16; // rdx
double v17; // xmm4_8
double v18; // xmm5_8
long long v20; // [rsp+10h] [rbp-B8h]
_DWORD *v21; // [rsp+30h] [rbp-98h]
_DWORD *v22; // [rsp+40h] [rbp-88h]
unsigned int v23; // [rsp+54h] [rbp-74h]
long long v24; // [rsp+58h] [rbp-70h]
long long v25; // [rsp+70h] [rbp-58h]
long long typed_array; // [rsp+78h] [rbp-50h]
long long v27; // [rsp+80h] [rbp-48h]
long long v28; // [rsp+88h] [rbp-40h]
long long v31; // [rsp+B8h] [rbp-10h]
v27 = *a13;
v28 = a13[1];
typed_array = get_typed_array(a1, *a13, v28, *a13, (long long)a13, a14, a2, a3, a4, a5, a6, a7, a8, a9);
if ( typed_array )
{
LODWORD(v21) = 0;
v22 = JS_SpeciesConstructor(a1, v27, v28, v21, 3u, a2, a3, a4, a5, v14, v15, a8, a9);
v25 = v16;
if ( JS_IsException_1((long long)v22, v16) )
{
return (long long)v22;
}
else
{
v23 = max_int_0(a12 - 1, 0);
if ( JS_IsUndefined_0((long long)v22, v25) )
{
LODWORD(v20) = 0;
return js_typed_array_constructor(
a1,
v20,
3LL,
v23,
a13 + 2,
*(unsigned __int16 *)(typed_array + 6),
a2,
a3,
a4,
a5,
v17,
v18,
a8,
a9);
}
else
{
v24 = js_typed_array_create(a1, v22, v25, v23, a13 + 2);
JS_FreeValue(a1, (long long)v22, v25);
}
return v24;
}
}
else
{
LODWORD(v31) = 0;
}
return v31;
}
|
js_typed_array___speciesCreate:
SUB RSP,0xc8
MOV qword ptr [RSP + 0xa8],RSI
MOV qword ptr [RSP + 0xb0],RDX
MOV qword ptr [RSP + 0xa0],RDI
MOV dword ptr [RSP + 0x9c],ECX
MOV qword ptr [RSP + 0x90],R8
MOV RAX,qword ptr [RSP + 0x90]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP + 0x80],RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x88],RAX
MOV RDI,qword ptr [RSP + 0xa0]
MOV RSI,qword ptr [RSP + 0x80]
MOV RDX,qword ptr [RSP + 0x88]
CALL 0x00157680
MOV qword ptr [RSP + 0x78],RAX
CMP qword ptr [RSP + 0x78],0x0
JNZ 0x001cd193
MOV dword ptr [RSP + 0xb8],0x0
MOV qword ptr [RSP + 0xc0],0x6
JMP 0x001cd31b
LAB_001cd193:
MOV RDI,qword ptr [RSP + 0xa0]
MOV dword ptr [RSP + 0x30],0x0
MOV qword ptr [RSP + 0x38],0x3
MOV RSI,qword ptr [RSP + 0x80]
MOV RDX,qword ptr [RSP + 0x88]
MOV RCX,qword ptr [RSP + 0x30]
MOV R8,qword ptr [RSP + 0x38]
CALL 0x00173550
MOV qword ptr [RSP + 0x40],RAX
MOV qword ptr [RSP + 0x48],RDX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x68],RAX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x70],RAX
MOV RDI,qword ptr [RSP + 0x68]
MOV RSI,qword ptr [RSP + 0x70]
CALL 0x00122a00
CMP EAX,0x0
JZ 0x001cd21c
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0xb8],RAX
MOV RAX,qword ptr [RSP + 0x70]
MOV qword ptr [RSP + 0xc0],RAX
JMP 0x001cd31b
LAB_001cd21c:
MOV EDI,dword ptr [RSP + 0x9c]
SUB EDI,0x1
XOR ESI,ESI
CALL 0x0015c050
MOV dword ptr [RSP + 0x54],EAX
MOV RDI,qword ptr [RSP + 0x68]
MOV RSI,qword ptr [RSP + 0x70]
CALL 0x0012cfa0
CMP EAX,0x0
JZ 0x001cd2a7
MOV RDI,qword ptr [RSP + 0xa0]
MOV dword ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x18],0x3
MOV ECX,dword ptr [RSP + 0x54]
MOV R8,qword ptr [RSP + 0x90]
ADD R8,0x10
MOV RAX,qword ptr [RSP + 0x78]
MOVZX R9D,word ptr [RAX + 0x6]
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x18]
CALL 0x00156f60
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],RDX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x60],RAX
JMP 0x001cd301
LAB_001cd2a7:
MOV RDI,qword ptr [RSP + 0xa0]
MOV ECX,dword ptr [RSP + 0x54]
MOV R8,qword ptr [RSP + 0x90]
ADD R8,0x10
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
CALL 0x001cd340
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x8],RDX
MOV RAX,qword ptr [RSP]
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x60],RAX
MOV RDI,qword ptr [RSP + 0xa0]
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
CALL 0x001229d0
LAB_001cd301:
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0xb8],RAX
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0xc0],RAX
LAB_001cd31b:
MOV RAX,qword ptr [RSP + 0xb8]
MOV RDX,qword ptr [RSP + 0xc0]
ADD RSP,0xc8
RET
|
int1 [16]
js_typed_array___speciesCreate
(int8 param_1,int8 param_2,int8 param_3,int param_4,int8 *param_5)
{
int8 uVar1;
int iVar2;
int4 uVar3;
long lVar4;
int1 auVar6 [16];
uint uStack_b4;
uint uStack_94;
int8 local_68;
int4 local_10;
int4 uStack_c;
int8 local_8;
int8 uVar5;
uVar5 = *param_5;
uVar1 = param_5[1];
lVar4 = get_typed_array(param_1,uVar5,uVar1);
if (lVar4 == 0) {
local_10 = 0;
local_8 = 6;
}
else {
auVar6 = JS_SpeciesConstructor(param_1,uVar5,uVar1,(ulong)uStack_94 << 0x20,3);
local_8 = auVar6._8_8_;
uVar5 = auVar6._0_8_;
iVar2 = JS_IsException(uVar5,local_8);
if (iVar2 == 0) {
uVar3 = max_int(param_4 + -1,0);
iVar2 = JS_IsUndefined(uVar5,local_8);
if (iVar2 == 0) {
auVar6 = js_typed_array_create(param_1,uVar5,local_8,uVar3,param_5 + 2);
JS_FreeValue(param_1,uVar5,local_8);
}
else {
auVar6 = js_typed_array_constructor
(param_1,(ulong)uStack_b4 << 0x20,3,uVar3,param_5 + 2,
*(int2 *)(lVar4 + 6));
}
local_68 = auVar6._8_8_;
local_10 = auVar6._0_4_;
uStack_c = auVar6._4_4_;
local_8 = local_68;
}
else {
local_10 = auVar6._0_4_;
uStack_c = auVar6._4_4_;
}
}
auVar6._4_4_ = uStack_c;
auVar6._0_4_ = local_10;
auVar6._8_8_ = local_8;
return auVar6;
}
|
|
57,453
|
js_typed_array___speciesCreate
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_typed_array___speciesCreate(JSContext *ctx,
JSValue this_val,
int argc, JSValue *argv)
{
JSValue obj;
JSObject *p;
JSValue ctor, ret;
int argc1;
obj = argv[0];
p = get_typed_array(ctx, obj);
if (!p)
return JS_EXCEPTION;
ctor = JS_SpeciesConstructor(ctx, obj, JS_UNDEFINED);
if (JS_IsException(ctor))
return ctor;
argc1 = max_int(argc - 1, 0);
if (JS_IsUndefined(ctor)) {
ret = js_typed_array_constructor(ctx, JS_UNDEFINED, argc1, argv + 1,
p->class_id);
} else {
ret = js_typed_array_create(ctx, ctor, argc1, argv + 1);
JS_FreeValue(ctx, ctor);
}
return ret;
}
|
O3
|
c
|
js_typed_array___speciesCreate:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rdi, %rbx
movq 0x8(%rdx), %rdx
cmpl $-0x1, %edx
jne 0x79e16
movq (%r12), %r13
movzwl 0x6(%r13), %eax
addl $-0x15, %eax
cmpw $0xc, %ax
jae 0x79e16
movl %esi, 0x4(%rsp)
movabsq $-0x100000000, %rbp # imm = 0xFFFFFFFF00000000
movl $0x3, %r8d
movq %rbx, %rdi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0x44fdd
movq %rax, %r14
movq %rdx, %r15
movl %r15d, %eax
cmpq $0x6, %rax
jne 0x79e4a
andq %r14, %rbp
jmp 0x79e32
leaq 0x29ea6(%rip), %rsi # 0xa3cc3
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2214f
movl $0x6, %r15d
xorl %ebp, %ebp
movl %r14d, %eax
orq %rbp, %rax
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addq $0x10, %r12
cmpl $0x3, %eax
jne 0x79e72
movzwl 0x6(%r13), %r9d
movl $0x3, %edx
movq %rbx, %rdi
xorl %esi, %esi
movq %r12, %r8
callq 0x396d8
movq %rax, %r12
movq %rdx, %r13
jmp 0x79ebd
movl 0x4(%rsp), %eax
cmpl $0x2, %eax
movl $0x1, %ecx
cmovgel %eax, %ecx
decl %ecx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %r8
callq 0x79ecb
movq %rax, %r12
movq %rdx, %r13
cmpl $-0x9, %r15d
jb 0x79ebd
movq 0x18(%rbx), %rdi
movl (%r14), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%r14)
cmpl $0x1, %eax
jg 0x79ebd
movq %r14, %rsi
movq %r15, %rdx
callq 0x20d90
andq %r12, %rbp
movq %r12, %r14
movq %r13, %r15
jmp 0x79e32
|
js_typed_array___speciesCreate:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12, rdx
mov rbx, rdi
mov rdx, [rdx+8]
cmp edx, 0FFFFFFFFh
jnz short loc_79E16
mov r13, [r12]
movzx eax, word ptr [r13+6]
add eax, 0FFFFFFEBh
cmp ax, 0Ch
jnb short loc_79E16
mov [rsp+38h+var_34], esi
mov rbp, 0FFFFFFFF00000000h
mov r8d, 3
mov rdi, rbx
mov rsi, r13
xor ecx, ecx
call JS_SpeciesConstructor
mov r14, rax
mov r15, rdx
mov eax, r15d
cmp rax, 6
jnz short loc_79E4A
and rbp, r14
jmp short loc_79E32
loc_79E16:
lea rsi, aNotATypedarray; "not a TypedArray"
xor r14d, r14d
mov rdi, rbx
xor eax, eax
call JS_ThrowTypeError
mov r15d, 6
xor ebp, ebp
loc_79E32:
mov eax, r14d
or rax, rbp
mov rdx, r15
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_79E4A:
add r12, 10h
cmp eax, 3
jnz short loc_79E72
movzx r9d, word ptr [r13+6]
mov edx, 3
mov rdi, rbx
xor esi, esi
mov r8, r12
call js_typed_array_constructor
mov r12, rax
mov r13, rdx
jmp short loc_79EBD
loc_79E72:
mov eax, [rsp+38h+var_34]
cmp eax, 2
mov ecx, 1
cmovge ecx, eax
dec ecx
mov rdi, rbx
mov rsi, r14
mov rdx, r15
mov r8, r12
call js_typed_array_create
mov r12, rax
mov r13, rdx
cmp r15d, 0FFFFFFF7h
jb short loc_79EBD
mov rdi, [rbx+18h]
mov eax, [r14]
lea ecx, [rax-1]
mov [r14], ecx
cmp eax, 1
jg short loc_79EBD
mov rsi, r14
mov rdx, r15
call js_free_value_rt
loc_79EBD:
and rbp, r12
mov r14, r12
mov r15, r13
jmp loc_79E32
|
unsigned long long js_typed_array___speciesCreate(
long long a1,
int a2,
long long *a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
char v14; // al
long long v16; // rdx
long long v17; // r13
long long v18; // rdx
long long v19; // rcx
unsigned long long v20; // r14
double v21; // xmm4_8
double v22; // xmm5_8
long long v23; // r15
unsigned long long v24; // rbp
long long v26; // r12
unsigned long long v27; // r12
int v28; // ecx
long long v29; // r8
long long v30; // r9
long long v31; // rdi
int v32; // eax
long long v33; // rcx
v16 = a3[1];
if ( (_DWORD)v16 == -1 && (v17 = *a3, (unsigned __int16)(*(_WORD *)(*a3 + 6) - 21) < 0xCu) )
{
v20 = (unsigned long long)JS_SpeciesConstructor(a1, v17, v16, 0LL, 3LL, a6, a7, a8, a9, a10, a11, a12, a13, a14);
v23 = v18;
if ( (unsigned int)v18 == 6LL )
{
v24 = v20 & 0xFFFFFFFF00000000LL;
}
else
{
v26 = (long long)(a3 + 2);
if ( (_DWORD)v18 == 3 )
{
v27 = js_typed_array_constructor(
a1,
0LL,
3LL,
a7,
a8,
a9,
a10,
v21,
v22,
a13,
a14,
v19,
v26,
*(unsigned __int16 *)(v17 + 6));
}
else
{
v28 = 1;
if ( a2 >= 2 )
v28 = a2;
v27 = js_typed_array_create(a1, v20, v18, (unsigned int)(v28 - 1), v26);
if ( (unsigned int)v23 >= 0xFFFFFFF7 )
{
v31 = *(_QWORD *)(a1 + 24);
v32 = *(_DWORD *)v20;
v33 = (unsigned int)(*(_DWORD *)v20 - 1);
*(_DWORD *)v20 = v33;
if ( v32 <= 1 )
js_free_value_rt(v31, (_QWORD *)v20, v23, v33, v29, v30);
}
}
v24 = v27 & 0xFFFFFFFF00000000LL;
LODWORD(v20) = v27;
}
}
else
{
LODWORD(v20) = 0;
JS_ThrowTypeError(a1, (long long)"not a TypedArray", v16, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v14);
v24 = 0LL;
}
return v24 | (unsigned int)v20;
}
|
js_typed_array___speciesCreate:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12,RDX
MOV RBX,RDI
MOV RDX,qword ptr [RDX + 0x8]
CMP EDX,-0x1
JNZ 0x00179e16
MOV R13,qword ptr [R12]
MOVZX EAX,word ptr [R13 + 0x6]
ADD EAX,-0x15
CMP AX,0xc
JNC 0x00179e16
MOV dword ptr [RSP + 0x4],ESI
MOV RBP,-0x100000000
MOV R8D,0x3
MOV RDI,RBX
MOV RSI,R13
XOR ECX,ECX
CALL 0x00144fdd
MOV R14,RAX
MOV R15,RDX
MOV EAX,R15D
CMP RAX,0x6
JNZ 0x00179e4a
AND RBP,R14
JMP 0x00179e32
LAB_00179e16:
LEA RSI,[0x1a3cc3]
XOR R14D,R14D
MOV RDI,RBX
XOR EAX,EAX
CALL 0x0012214f
MOV R15D,0x6
XOR EBP,EBP
LAB_00179e32:
MOV EAX,R14D
OR RAX,RBP
MOV RDX,R15
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00179e4a:
ADD R12,0x10
CMP EAX,0x3
JNZ 0x00179e72
MOVZX R9D,word ptr [R13 + 0x6]
MOV EDX,0x3
MOV RDI,RBX
XOR ESI,ESI
MOV R8,R12
CALL 0x001396d8
MOV R12,RAX
MOV R13,RDX
JMP 0x00179ebd
LAB_00179e72:
MOV EAX,dword ptr [RSP + 0x4]
CMP EAX,0x2
MOV ECX,0x1
CMOVGE ECX,EAX
DEC ECX
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
MOV R8,R12
CALL 0x00179ecb
MOV R12,RAX
MOV R13,RDX
CMP R15D,-0x9
JC 0x00179ebd
MOV RDI,qword ptr [RBX + 0x18]
MOV EAX,dword ptr [R14]
LEA ECX,[RAX + -0x1]
MOV dword ptr [R14],ECX
CMP EAX,0x1
JG 0x00179ebd
MOV RSI,R14
MOV RDX,R15
CALL 0x00120d90
LAB_00179ebd:
AND RBP,R12
MOV R14,R12
MOV R15,R13
JMP 0x00179e32
|
int1 [16] js_typed_array___speciesCreate(long param_1,int param_2,long *param_3)
{
int8 uVar1;
int *piVar2;
int iVar3;
ulong uVar4;
uint uVar5;
int1 auVar6 [16];
int1 auVar7 [16];
if (((int)param_3[1] == -1) && ((ushort)(*(short *)(*param_3 + 6) - 0x15U) < 0xc)) {
auVar6 = JS_SpeciesConstructor(param_1,*param_3,param_3[1],0,3);
uVar4 = auVar6._8_8_;
piVar2 = auVar6._0_8_;
uVar5 = auVar6._8_4_;
if ((uVar4 & 0xffffffff) == 6) {
uVar4 = (ulong)piVar2 & 0xffffffff00000000;
}
else {
if (uVar5 == 3) {
auVar6 = js_typed_array_constructor(param_1,0,3);
}
else {
iVar3 = 1;
if (1 < param_2) {
iVar3 = param_2;
}
auVar6 = js_typed_array_create(param_1,piVar2,uVar4,iVar3 + -1,param_3 + 2);
if (0xfffffff6 < uVar5) {
uVar1 = *(int8 *)(param_1 + 0x18);
iVar3 = *piVar2;
*piVar2 = iVar3 + -1;
if (iVar3 < 2) {
js_free_value_rt(uVar1,piVar2,uVar4);
}
}
}
uVar4 = auVar6._0_8_ & 0xffffffff00000000;
}
}
else {
JS_ThrowTypeError(param_1,"not a TypedArray");
auVar6 = ZEXT816(6) << 0x40;
uVar4 = 0;
}
auVar7._0_8_ = auVar6._0_8_ & 0xffffffff | uVar4;
auVar7._8_8_ = auVar6._8_8_;
return auVar7;
}
|
|
57,454
|
ma_end_block_record
|
eloqsql/storage/maria/ma_blockrec.c
|
void _ma_end_block_record(MARIA_HA *info)
{
DBUG_ENTER("_ma_end_block_record");
my_free(info->cur_row.empty_bits);
delete_dynamic(&info->bitmap_blocks);
my_free(info->cur_row.extents);
my_free(info->blob_buff);
/*
The data file is closed, when needed, in ma_once_end_block_record().
The following protects us from doing an extra, not allowed, close
in maria_close()
*/
info->dfile.file= -1;
DBUG_VOID_RETURN;
}
|
O3
|
c
|
ma_end_block_record:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xc8(%rdi), %rdi
callq 0xa72ae
leaq 0x2c0(%rbx), %rdi
callq 0x96cfc
movq 0x90(%rbx), %rdi
callq 0xa72ae
movq 0x3a8(%rbx), %rdi
callq 0xa72ae
movl $0xffffffff, 0x480(%rbx) # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
_ma_end_block_record:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
mov rdi, [rdi+0C8h]
call my_free
lea rdi, [rbx+2C0h]
call delete_dynamic
mov rdi, [rbx+90h]
call my_free
mov rdi, [rbx+3A8h]
call my_free
mov dword ptr [rbx+480h], 0FFFFFFFFh
add rsp, 8
pop rbx
pop rbp
retn
|
long long ma_end_block_record(long long a1)
{
long long result; // rax
my_free(*(_QWORD *)(a1 + 200));
delete_dynamic(a1 + 704);
my_free(*(_QWORD *)(a1 + 144));
result = my_free(*(_QWORD *)(a1 + 936));
*(_DWORD *)(a1 + 1152) = -1;
return result;
}
|
_ma_end_block_record:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0xc8]
CALL 0x001a72ae
LEA RDI,[RBX + 0x2c0]
CALL 0x00196cfc
MOV RDI,qword ptr [RBX + 0x90]
CALL 0x001a72ae
MOV RDI,qword ptr [RBX + 0x3a8]
CALL 0x001a72ae
MOV dword ptr [RBX + 0x480],0xffffffff
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void _ma_end_block_record(long param_1)
{
my_free(*(int8 *)(param_1 + 200));
delete_dynamic(param_1 + 0x2c0);
my_free(*(int8 *)(param_1 + 0x90));
my_free(*(int8 *)(param_1 + 0x3a8));
*(int4 *)(param_1 + 0x480) = 0xffffffff;
return;
}
|
|
57,455
|
init_state_maps
|
eloqsql/mysys/charset.c
|
static my_bool init_state_maps(struct charset_info_st *cs)
{
uint i;
uchar *state_map;
uchar *ident_map;
if (!(cs->state_map= state_map= (uchar*) my_once_alloc(256*2, MYF(MY_WME))))
return 1;
cs->ident_map= ident_map= state_map + 256;
/* Fill state_map with states to get a faster parser */
for (i=0; i < 256 ; i++)
{
if (my_isalpha(cs,i))
state_map[i]=(uchar) MY_LEX_IDENT;
else if (my_isdigit(cs,i))
state_map[i]=(uchar) MY_LEX_NUMBER_IDENT;
else if (is_multi_byte_ident(cs, i))
state_map[i]=(uchar) MY_LEX_IDENT;
else if (my_isspace(cs,i))
state_map[i]=(uchar) MY_LEX_SKIP;
else
state_map[i]=(uchar) MY_LEX_CHAR;
}
state_map[(uchar)'_']=state_map[(uchar)'$']=(uchar) MY_LEX_IDENT;
state_map[(uchar)'\'']=(uchar) MY_LEX_STRING;
state_map[(uchar)'.']=(uchar) MY_LEX_REAL_OR_POINT;
state_map[(uchar)'>']=state_map[(uchar)'=']=state_map[(uchar)'!']= (uchar) MY_LEX_CMP_OP;
state_map[(uchar)'<']= (uchar) MY_LEX_LONG_CMP_OP;
state_map[(uchar)'&']=state_map[(uchar)'|']=(uchar) MY_LEX_BOOL;
state_map[(uchar)'#']=(uchar) MY_LEX_COMMENT;
state_map[(uchar)';']=(uchar) MY_LEX_SEMICOLON;
state_map[(uchar)':']=(uchar) MY_LEX_SET_VAR;
state_map[0]=(uchar) MY_LEX_EOL;
state_map[(uchar)'\\']= (uchar) MY_LEX_ESCAPE;
state_map[(uchar)'/']= (uchar) MY_LEX_LONG_COMMENT;
state_map[(uchar)'*']= (uchar) MY_LEX_END_LONG_COMMENT;
state_map[(uchar)'@']= (uchar) MY_LEX_USER_END;
state_map[(uchar) '`']= (uchar) MY_LEX_USER_VARIABLE_DELIMITER;
state_map[(uchar)'"']= (uchar) MY_LEX_STRING_OR_DELIMITER;
state_map[(uchar)'-']= (uchar) MY_LEX_MINUS_OR_COMMENT;
state_map[(uchar)',']= (uchar) MY_LEX_COMMA;
state_map[(uchar)'?']= (uchar) MY_LEX_PLACEHOLDER;
/*
Create a second map to make it faster to find identifiers
*/
for (i=0; i < 256 ; i++)
{
ident_map[i]= (uchar) (state_map[i] == MY_LEX_IDENT ||
state_map[i] == MY_LEX_NUMBER_IDENT);
}
/* Special handling of hex and binary strings */
state_map[(uchar)'x']= state_map[(uchar)'X']= (uchar) MY_LEX_IDENT_OR_HEX;
state_map[(uchar)'b']= state_map[(uchar)'B']= (uchar) MY_LEX_IDENT_OR_BIN;
state_map[(uchar)'n']= state_map[(uchar)'N']= (uchar) MY_LEX_IDENT_OR_NCHAR;
return 0;
}
|
O0
|
c
|
init_state_maps:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl $0x200, %edi # imm = 0x200
movl $0x10, %esi
callq 0xf3f10
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rcx
movq %rax, 0x80(%rcx)
cmpq $0x0, %rax
jne 0xdcda9
movb $0x1, -0x1(%rbp)
jmp 0xdcfd6
movq -0x20(%rbp), %rcx
addq $0x100, %rcx # imm = 0x100
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rcx, 0x88(%rax)
movl $0x0, -0x14(%rbp)
cmpl $0x100, -0x14(%rbp) # imm = 0x100
jae 0xdce93
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x14(%rbp), %ecx
movzbl %cl, %ecx
movzbl 0x1(%rax,%rcx), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0xdce02
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movb $0x2, (%rax,%rcx)
jmp 0xdce83
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x14(%rbp), %ecx
movzbl %cl, %ecx
movzbl 0x1(%rax,%rcx), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0xdce2a
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movb $0xe, (%rax,%rcx)
jmp 0xdce81
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %eax
movzbl %al, %esi
callq 0xdd0b0
cmpb $0x0, %al
je 0xdce4a
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movb $0x2, (%rax,%rcx)
jmp 0xdce7f
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x14(%rbp), %ecx
movzbl %cl, %ecx
movzbl 0x1(%rax,%rcx), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0xdce72
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movb $0x1a, (%rax,%rcx)
jmp 0xdce7d
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movb $0x1, (%rax,%rcx)
jmp 0xdce7f
jmp 0xdce81
jmp 0xdce83
jmp 0xdce85
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xdcdca
movq -0x20(%rbp), %rax
movb $0x2, 0x24(%rax)
movq -0x20(%rbp), %rax
movb $0x2, 0x5f(%rax)
movq -0x20(%rbp), %rax
movb $0xa, 0x27(%rax)
movq -0x20(%rbp), %rax
movb $0x10, 0x2e(%rax)
movq -0x20(%rbp), %rax
movb $0x8, 0x21(%rax)
movq -0x20(%rbp), %rax
movb $0x8, 0x3d(%rax)
movq -0x20(%rbp), %rax
movb $0x8, 0x3e(%rax)
movq -0x20(%rbp), %rax
movb $0x9, 0x3c(%rax)
movq -0x20(%rbp), %rax
movb $0x11, 0x7c(%rax)
movq -0x20(%rbp), %rax
movb $0x11, 0x26(%rax)
movq -0x20(%rbp), %rax
movb $0xb, 0x23(%rax)
movq -0x20(%rbp), %rax
movb $0x16, 0x3b(%rax)
movq -0x20(%rbp), %rax
movb $0x17, 0x3a(%rax)
movq -0x20(%rbp), %rax
movb $0x12, (%rax)
movq -0x20(%rbp), %rax
movb $0x13, 0x5c(%rax)
movq -0x20(%rbp), %rax
movb $0x14, 0x2f(%rax)
movq -0x20(%rbp), %rax
movb $0x15, 0x2a(%rax)
movq -0x20(%rbp), %rax
movb $0x18, 0x40(%rax)
movq -0x20(%rbp), %rax
movb $0x1b, 0x60(%rax)
movq -0x20(%rbp), %rax
movb $0x21, 0x22(%rax)
movq -0x20(%rbp), %rax
movb $0x22, 0x2d(%rax)
movq -0x20(%rbp), %rax
movb $0x24, 0x2c(%rax)
movq -0x20(%rbp), %rax
movb $0x23, 0x3f(%rax)
movl $0x0, -0x14(%rbp)
cmpl $0x100, -0x14(%rbp) # imm = 0x100
jae 0xdcfa2
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movzbl (%rax,%rcx), %ecx
movb $0x1, %al
cmpl $0x2, %ecx
movb %al, -0x29(%rbp)
je 0xdcf83
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movzbl (%rax,%rcx), %eax
cmpl $0xe, %eax
sete %al
movb %al, -0x29(%rbp)
movb -0x29(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %dl
movq -0x28(%rbp), %rax
movl -0x14(%rbp), %ecx
movb %dl, (%rax,%rcx)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xdcf51
movq -0x20(%rbp), %rax
movb $0x1e, 0x58(%rax)
movq -0x20(%rbp), %rax
movb $0x1e, 0x78(%rax)
movq -0x20(%rbp), %rax
movb $0x1f, 0x42(%rax)
movq -0x20(%rbp), %rax
movb $0x1f, 0x62(%rax)
movq -0x20(%rbp), %rax
movb $0x20, 0x4e(%rax)
movq -0x20(%rbp), %rax
movb $0x20, 0x6e(%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nop
|
init_state_maps:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov edi, 200h
mov esi, 10h
call my_once_alloc
mov [rbp+var_20], rax
mov rcx, [rbp+var_10]
mov [rcx+80h], rax
cmp rax, 0
jnz short loc_DCDA9
mov [rbp+var_1], 1
jmp loc_DCFD6
loc_DCDA9:
mov rcx, [rbp+var_20]
add rcx, 100h
mov [rbp+var_28], rcx
mov rax, [rbp+var_10]
mov [rax+88h], rcx
mov [rbp+var_14], 0
loc_DCDCA:
cmp [rbp+var_14], 100h
jnb loc_DCE93
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov ecx, [rbp+var_14]
movzx ecx, cl
movzx eax, byte ptr [rax+rcx+1]
and eax, 3
cmp eax, 0
jz short loc_DCE02
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
mov byte ptr [rax+rcx], 2
jmp loc_DCE83
loc_DCE02:
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov ecx, [rbp+var_14]
movzx ecx, cl
movzx eax, byte ptr [rax+rcx+1]
and eax, 4
cmp eax, 0
jz short loc_DCE2A
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
mov byte ptr [rax+rcx], 0Eh
jmp short loc_DCE81
loc_DCE2A:
mov rdi, [rbp+var_10]
mov eax, [rbp+var_14]
movzx esi, al
call is_multi_byte_ident
cmp al, 0
jz short loc_DCE4A
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
mov byte ptr [rax+rcx], 2
jmp short loc_DCE7F
loc_DCE4A:
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov ecx, [rbp+var_14]
movzx ecx, cl
movzx eax, byte ptr [rax+rcx+1]
and eax, 8
cmp eax, 0
jz short loc_DCE72
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
mov byte ptr [rax+rcx], 1Ah
jmp short loc_DCE7D
loc_DCE72:
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
mov byte ptr [rax+rcx], 1
loc_DCE7D:
jmp short $+2
loc_DCE7F:
jmp short $+2
loc_DCE81:
jmp short $+2
loc_DCE83:
jmp short $+2
loc_DCE85:
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp loc_DCDCA
loc_DCE93:
mov rax, [rbp+var_20]
mov byte ptr [rax+24h], 2
mov rax, [rbp+var_20]
mov byte ptr [rax+5Fh], 2
mov rax, [rbp+var_20]
mov byte ptr [rax+27h], 0Ah
mov rax, [rbp+var_20]
mov byte ptr [rax+2Eh], 10h
mov rax, [rbp+var_20]
mov byte ptr [rax+21h], 8
mov rax, [rbp+var_20]
mov byte ptr [rax+3Dh], 8
mov rax, [rbp+var_20]
mov byte ptr [rax+3Eh], 8
mov rax, [rbp+var_20]
mov byte ptr [rax+3Ch], 9
mov rax, [rbp+var_20]
mov byte ptr [rax+7Ch], 11h
mov rax, [rbp+var_20]
mov byte ptr [rax+26h], 11h
mov rax, [rbp+var_20]
mov byte ptr [rax+23h], 0Bh
mov rax, [rbp+var_20]
mov byte ptr [rax+3Bh], 16h
mov rax, [rbp+var_20]
mov byte ptr [rax+3Ah], 17h
mov rax, [rbp+var_20]
mov byte ptr [rax], 12h
mov rax, [rbp+var_20]
mov byte ptr [rax+5Ch], 13h
mov rax, [rbp+var_20]
mov byte ptr [rax+2Fh], 14h
mov rax, [rbp+var_20]
mov byte ptr [rax+2Ah], 15h
mov rax, [rbp+var_20]
mov byte ptr [rax+40h], 18h
mov rax, [rbp+var_20]
mov byte ptr [rax+60h], 1Bh
mov rax, [rbp+var_20]
mov byte ptr [rax+22h], 21h ; '!'
mov rax, [rbp+var_20]
mov byte ptr [rax+2Dh], 22h ; '"'
mov rax, [rbp+var_20]
mov byte ptr [rax+2Ch], 24h ; '$'
mov rax, [rbp+var_20]
mov byte ptr [rax+3Fh], 23h ; '#'
mov [rbp+var_14], 0
loc_DCF51:
cmp [rbp+var_14], 100h
jnb short loc_DCFA2
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
movzx ecx, byte ptr [rax+rcx]
mov al, 1
cmp ecx, 2
mov [rbp+var_29], al
jz short loc_DCF83
mov rax, [rbp+var_20]
mov ecx, [rbp+var_14]
movzx eax, byte ptr [rax+rcx]
cmp eax, 0Eh
setz al
mov [rbp+var_29], al
loc_DCF83:
mov al, [rbp+var_29]
and al, 1
movzx eax, al
mov dl, al
mov rax, [rbp+var_28]
mov ecx, [rbp+var_14]
mov [rax+rcx], dl
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp short loc_DCF51
loc_DCFA2:
mov rax, [rbp+var_20]
mov byte ptr [rax+58h], 1Eh
mov rax, [rbp+var_20]
mov byte ptr [rax+78h], 1Eh
mov rax, [rbp+var_20]
mov byte ptr [rax+42h], 1Fh
mov rax, [rbp+var_20]
mov byte ptr [rax+62h], 1Fh
mov rax, [rbp+var_20]
mov byte ptr [rax+4Eh], 20h ; ' '
mov rax, [rbp+var_20]
mov byte ptr [rax+6Eh], 20h ; ' '
mov [rbp+var_1], 0
loc_DCFD6:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
|
char init_state_maps(_QWORD *a1)
{
bool v2; // [rsp+7h] [rbp-29h]
_BYTE *v3; // [rsp+10h] [rbp-20h]
unsigned int i; // [rsp+1Ch] [rbp-14h]
unsigned int j; // [rsp+1Ch] [rbp-14h]
v3 = (_BYTE *)my_once_alloc(512LL, 16LL);
a1[16] = v3;
if ( !v3 )
return 1;
a1[17] = v3 + 256;
for ( i = 0; i < 0x100; ++i )
{
if ( (*(_BYTE *)(a1[8] + (unsigned __int8)i + 1LL) & 3) != 0 )
{
v3[i] = 2;
}
else if ( (*(_BYTE *)(a1[8] + (unsigned __int8)i + 1LL) & 4) != 0 )
{
v3[i] = 14;
}
else if ( (unsigned __int8)is_multi_byte_ident(a1, (unsigned __int8)i) )
{
v3[i] = 2;
}
else if ( (*(_BYTE *)(a1[8] + (unsigned __int8)i + 1LL) & 8) != 0 )
{
v3[i] = 26;
}
else
{
v3[i] = 1;
}
}
v3[36] = 2;
v3[95] = 2;
v3[39] = 10;
v3[46] = 16;
v3[33] = 8;
v3[61] = 8;
v3[62] = 8;
v3[60] = 9;
v3[124] = 17;
v3[38] = 17;
v3[35] = 11;
v3[59] = 22;
v3[58] = 23;
*v3 = 18;
v3[92] = 19;
v3[47] = 20;
v3[42] = 21;
v3[64] = 24;
v3[96] = 27;
v3[34] = 33;
v3[45] = 34;
v3[44] = 36;
v3[63] = 35;
for ( j = 0; j < 0x100; ++j )
{
v2 = 1;
if ( v3[j] != 2 )
v2 = v3[j] == 14;
v3[j + 256] = v2;
}
v3[88] = 30;
v3[120] = 30;
v3[66] = 31;
v3[98] = 31;
v3[78] = 32;
v3[110] = 32;
return 0;
}
|
init_state_maps:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV EDI,0x200
MOV ESI,0x10
CALL 0x001f3f10
MOV qword ptr [RBP + -0x20],RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x80],RAX
CMP RAX,0x0
JNZ 0x001dcda9
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001dcfd6
LAB_001dcda9:
MOV RCX,qword ptr [RBP + -0x20]
ADD RCX,0x100
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x88],RCX
MOV dword ptr [RBP + -0x14],0x0
LAB_001dcdca:
CMP dword ptr [RBP + -0x14],0x100
JNC 0x001dce93
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV ECX,dword ptr [RBP + -0x14]
MOVZX ECX,CL
MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1]
AND EAX,0x3
CMP EAX,0x0
JZ 0x001dce02
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOV byte ptr [RAX + RCX*0x1],0x2
JMP 0x001dce83
LAB_001dce02:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV ECX,dword ptr [RBP + -0x14]
MOVZX ECX,CL
MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1]
AND EAX,0x4
CMP EAX,0x0
JZ 0x001dce2a
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOV byte ptr [RAX + RCX*0x1],0xe
JMP 0x001dce81
LAB_001dce2a:
MOV RDI,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x14]
MOVZX ESI,AL
CALL 0x001dd0b0
CMP AL,0x0
JZ 0x001dce4a
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOV byte ptr [RAX + RCX*0x1],0x2
JMP 0x001dce7f
LAB_001dce4a:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV ECX,dword ptr [RBP + -0x14]
MOVZX ECX,CL
MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1]
AND EAX,0x8
CMP EAX,0x0
JZ 0x001dce72
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOV byte ptr [RAX + RCX*0x1],0x1a
JMP 0x001dce7d
LAB_001dce72:
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOV byte ptr [RAX + RCX*0x1],0x1
LAB_001dce7d:
JMP 0x001dce7f
LAB_001dce7f:
JMP 0x001dce81
LAB_001dce81:
JMP 0x001dce83
LAB_001dce83:
JMP 0x001dce85
LAB_001dce85:
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x001dcdca
LAB_001dce93:
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x24],0x2
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x5f],0x2
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x27],0xa
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x2e],0x10
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x21],0x8
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3d],0x8
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3e],0x8
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3c],0x9
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x7c],0x11
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x26],0x11
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x23],0xb
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3b],0x16
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3a],0x17
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],0x12
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x5c],0x13
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x2f],0x14
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x2a],0x15
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x40],0x18
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x60],0x1b
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x22],0x21
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x2d],0x22
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x2c],0x24
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3f],0x23
MOV dword ptr [RBP + -0x14],0x0
LAB_001dcf51:
CMP dword ptr [RBP + -0x14],0x100
JNC 0x001dcfa2
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOVZX ECX,byte ptr [RAX + RCX*0x1]
MOV AL,0x1
CMP ECX,0x2
MOV byte ptr [RBP + -0x29],AL
JZ 0x001dcf83
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x14]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
CMP EAX,0xe
SETZ AL
MOV byte ptr [RBP + -0x29],AL
LAB_001dcf83:
MOV AL,byte ptr [RBP + -0x29]
AND AL,0x1
MOVZX EAX,AL
MOV DL,AL
MOV RAX,qword ptr [RBP + -0x28]
MOV ECX,dword ptr [RBP + -0x14]
MOV byte ptr [RAX + RCX*0x1],DL
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x001dcf51
LAB_001dcfa2:
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x58],0x1e
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x78],0x1e
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x42],0x1f
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x62],0x1f
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x4e],0x20
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x6e],0x20
MOV byte ptr [RBP + -0x1],0x0
LAB_001dcfd6:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 init_state_maps(long param_1)
{
char cVar1;
int1 *puVar2;
bool local_31;
uint local_1c;
int1 local_9;
puVar2 = (int1 *)my_once_alloc(0x200,0x10);
*(int1 **)(param_1 + 0x80) = puVar2;
if (puVar2 == (int1 *)0x0) {
local_9 = 1;
}
else {
*(int1 **)(param_1 + 0x88) = puVar2 + 0x100;
for (local_1c = 0; local_1c < 0x100; local_1c = local_1c + 1) {
if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)(local_1c & 0xff)) & 3) == 0) {
if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)(local_1c & 0xff)) & 4) == 0) {
cVar1 = is_multi_byte_ident(param_1,local_1c & 0xff);
if (cVar1 == '\0') {
if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)(local_1c & 0xff)) & 8) == 0) {
puVar2[local_1c] = 1;
}
else {
puVar2[local_1c] = 0x1a;
}
}
else {
puVar2[local_1c] = 2;
}
}
else {
puVar2[local_1c] = 0xe;
}
}
else {
puVar2[local_1c] = 2;
}
}
puVar2[0x24] = 2;
puVar2[0x5f] = 2;
puVar2[0x27] = 10;
puVar2[0x2e] = 0x10;
puVar2[0x21] = 8;
puVar2[0x3d] = 8;
puVar2[0x3e] = 8;
puVar2[0x3c] = 9;
puVar2[0x7c] = 0x11;
puVar2[0x26] = 0x11;
puVar2[0x23] = 0xb;
puVar2[0x3b] = 0x16;
puVar2[0x3a] = 0x17;
*puVar2 = 0x12;
puVar2[0x5c] = 0x13;
puVar2[0x2f] = 0x14;
puVar2[0x2a] = 0x15;
puVar2[0x40] = 0x18;
puVar2[0x60] = 0x1b;
puVar2[0x22] = 0x21;
puVar2[0x2d] = 0x22;
puVar2[0x2c] = 0x24;
puVar2[0x3f] = 0x23;
for (local_1c = 0; local_1c < 0x100; local_1c = local_1c + 1) {
local_31 = true;
if (puVar2[local_1c] != '\x02') {
local_31 = puVar2[local_1c] == '\x0e';
}
(puVar2 + 0x100)[local_1c] = local_31;
}
puVar2[0x58] = 0x1e;
puVar2[0x78] = 0x1e;
puVar2[0x42] = 0x1f;
puVar2[0x62] = 0x1f;
puVar2[0x4e] = 0x20;
puVar2[0x6e] = 0x20;
local_9 = 0;
}
return local_9;
}
|
|
57,456
|
bf_const_log2_rec
|
bluesky950520[P]quickjs/libbf.c
|
static void bf_const_log2_rec(bf_t *T, bf_t *P, bf_t *Q, limb_t n1,
limb_t n2, BOOL need_P)
{
bf_context_t *s = T->ctx;
if ((n2 - n1) == 1) {
if (n1 == 0) {
bf_set_ui(P, 3);
} else {
bf_set_ui(P, n1);
P->sign = 1;
}
bf_set_ui(Q, 2 * n1 + 1);
Q->expn += 2;
bf_set(T, P);
} else {
limb_t m;
bf_t T1_s, *T1 = &T1_s;
bf_t P1_s, *P1 = &P1_s;
bf_t Q1_s, *Q1 = &Q1_s;
m = n1 + ((n2 - n1) >> 1);
bf_const_log2_rec(T, P, Q, n1, m, TRUE);
bf_init(s, T1);
bf_init(s, P1);
bf_init(s, Q1);
bf_const_log2_rec(T1, P1, Q1, m, n2, need_P);
bf_mul(T, T, Q1, BF_PREC_INF, BF_RNDZ);
bf_mul(T1, T1, P, BF_PREC_INF, BF_RNDZ);
bf_add(T, T, T1, BF_PREC_INF, BF_RNDZ);
if (need_P)
bf_mul(P, P, P1, BF_PREC_INF, BF_RNDZ);
bf_mul(Q, Q, Q1, BF_PREC_INF, BF_RNDZ);
bf_delete(T1);
bf_delete(P1);
bf_delete(Q1);
}
}
|
O1
|
c
|
bf_const_log2_rec:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %r8, %r13
subq %rcx, %r13
cmpq $0x1, %r13
jne 0x91d92
testq %r12, %r12
je 0x91f2b
movq %r14, %rdi
movq %r12, %rsi
callq 0x84abb
movl $0x1, 0x8(%r14)
jmp 0x91f38
movq %r8, %rbp
movq %r14, 0x10(%rsp)
movq (%r15), %r14
shrq %r13
addq %r12, %r13
movq %r15, %rdi
movq 0x10(%rsp), %rsi
movq %rbx, 0x18(%rsp)
movq %rbx, %rdx
movq %r12, %rcx
movq %r13, %r8
movl %r9d, 0xc(%rsp)
movl $0x1, %r9d
callq 0x91d48
leaq 0x70(%rsp), %r12
movq %r14, (%r12)
xorl %eax, %eax
movl %eax, 0x8(%r12)
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
movq %rcx, 0x10(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r12)
leaq 0x48(%rsp), %rsi
movq %r14, (%rsi)
movl %eax, 0x8(%rsi)
movq %rcx, 0x10(%rsi)
movups %xmm0, 0x18(%rsi)
leaq 0x20(%rsp), %rbx
movq %r14, (%rbx)
movq 0x10(%rsp), %r14
movl %eax, 0x8(%rbx)
movq %rcx, 0x10(%rbx)
movups %xmm0, 0x18(%rbx)
movq %r12, %rdi
movq %rbx, %rdx
movq %r13, %rcx
movq %rbp, %r8
movl 0xc(%rsp), %ebp
movl %ebp, %r9d
callq 0x91d48
movq %r15, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movabsq $0x3fffffffffffffff, %rbx # imm = 0x3FFFFFFFFFFFFFFF
movq %rbx, %rcx
movl $0x1, %r8d
callq 0x86711
movq %r12, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %rbx, %rcx
movl $0x1, %r8d
callq 0x86711
leaq -0xa29f(%rip), %r9 # 0x87bd4
movq %r15, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %rbx, %rcx
movl $0x1, %r8d
callq 0x87b3a
testl %ebp, %ebp
je 0x91ea7
leaq 0x48(%rsp), %rdx
movq %r14, %rdi
movq %r14, %rsi
movq %rbx, %rcx
movl $0x1, %r8d
callq 0x86711
leaq 0x20(%rsp), %rdx
movq 0x18(%rsp), %rdi
movq %rdi, %rsi
movq %rbx, %rcx
movl $0x1, %r8d
callq 0x86711
movq 0x70(%rsp), %rax
testq %rax, %rax
je 0x91ee1
movq 0x90(%rsp), %rsi
testq %rsi, %rsi
je 0x91ee1
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq 0x48(%rsp), %rax
testq %rax, %rax
je 0x91efd
movq 0x68(%rsp), %rsi
testq %rsi, %rsi
je 0x91efd
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x91f19
movq 0x40(%rsp), %rsi
testq %rsi, %rsi
je 0x91f19
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x3, %esi
movq %r14, %rdi
callq 0x84abb
leaq 0x1(,%r12,2), %rsi
movq %rbx, %rdi
callq 0x84abb
addq $0x2, 0x10(%rbx)
movq %r15, %rdi
movq %r14, %rsi
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x84c8d
|
bf_const_log2_rec:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r12, rcx
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov r13, r8
sub r13, rcx
cmp r13, 1
jnz short loc_91D92
test r12, r12
jz loc_91F2B
mov rdi, r14
mov rsi, r12
call bf_set_ui
mov dword ptr [r14+8], 1
jmp loc_91F38
loc_91D92:
mov rbp, r8
mov [rsp+0C8h+var_B8], r14
mov r14, [r15]
shr r13, 1
add r13, r12
mov rdi, r15
mov rsi, [rsp+0C8h+var_B8]
mov [rsp+0C8h+var_B0], rbx
mov rdx, rbx
mov rcx, r12
mov r8, r13
mov [rsp+0C8h+var_BC], r9d
mov r9d, 1
call bf_const_log2_rec
lea r12, [rsp+0C8h+var_58]
mov [r12], r14
xor eax, eax
mov [r12+8], eax
mov rcx, 8000000000000000h
mov [r12+10h], rcx
xorps xmm0, xmm0
movups xmmword ptr [r12+18h], xmm0
lea rsi, [rsp+0C8h+var_80]
mov [rsi], r14
mov [rsi+8], eax
mov [rsi+10h], rcx
movups xmmword ptr [rsi+18h], xmm0
lea rbx, [rsp+0C8h+var_A8]
mov [rbx], r14
mov r14, [rsp+0C8h+var_B8]
mov [rbx+8], eax
mov [rbx+10h], rcx
movups xmmword ptr [rbx+18h], xmm0
mov rdi, r12
mov rdx, rbx
mov rcx, r13
mov r8, rbp
mov ebp, [rsp+0C8h+var_BC]
mov r9d, ebp
call bf_const_log2_rec
mov rdi, r15
mov rsi, r15
mov rdx, rbx
mov rbx, 3FFFFFFFFFFFFFFFh
mov rcx, rbx
mov r8d, 1
call bf_mul
mov rdi, r12
mov rsi, r12
mov rdx, r14
mov rcx, rbx
mov r8d, 1
call bf_mul
lea r9, __bf_add
mov rdi, r15
mov rsi, r15
mov rdx, r12
mov rcx, rbx
mov r8d, 1
call bf_op2
test ebp, ebp
jz short loc_91EA7
lea rdx, [rsp+0C8h+var_80]
mov rdi, r14
mov rsi, r14
mov rcx, rbx
mov r8d, 1
call bf_mul
loc_91EA7:
lea rdx, [rsp+0C8h+var_A8]
mov rdi, [rsp+0C8h+var_B0]
mov rsi, rdi
mov rcx, rbx
mov r8d, 1
call bf_mul
mov rax, [rsp+0C8h+var_58]
test rax, rax
jz short loc_91EE1
mov rsi, [rsp+0C8h+var_38]
test rsi, rsi
jz short loc_91EE1
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
loc_91EE1:
mov rax, [rsp+0C8h+var_80]
test rax, rax
jz short loc_91EFD
mov rsi, [rsp+0C8h+var_60]
test rsi, rsi
jz short loc_91EFD
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
loc_91EFD:
mov rax, [rsp+0C8h+var_A8]
test rax, rax
jz short loc_91F19
mov rsi, [rsp+0C8h+var_88]
test rsi, rsi
jz short loc_91F19
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
loc_91F19:
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_91F2B:
mov esi, 3
mov rdi, r14
call bf_set_ui
loc_91F38:
lea rsi, ds:1[r12*2]
mov rdi, rbx
call bf_set_ui
add qword ptr [rbx+10h], 2
mov rdi, r15
mov rsi, r14
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp bf_set
|
long long bf_const_log2_rec(
__int128 *a1,
long long a2,
long long a3,
unsigned long long a4,
long long a5,
unsigned int a6)
{
long long v9; // r14
unsigned long long v10; // r13
long long result; // rax
long long v14; // [rsp+20h] [rbp-A8h] BYREF
int v15; // [rsp+28h] [rbp-A0h]
unsigned long long v16; // [rsp+30h] [rbp-98h]
__int128 v17; // [rsp+38h] [rbp-90h]
long long v18; // [rsp+48h] [rbp-80h] BYREF
int v19; // [rsp+50h] [rbp-78h]
unsigned long long v20; // [rsp+58h] [rbp-70h]
__int128 v21; // [rsp+60h] [rbp-68h]
__int128 v22; // [rsp+70h] [rbp-58h] BYREF
unsigned long long v23; // [rsp+80h] [rbp-48h]
__int128 v24; // [rsp+88h] [rbp-40h]
if ( a5 - a4 == 1 )
{
if ( a4 )
{
bf_set_ui((_QWORD **)a2, a4);
*(_DWORD *)(a2 + 8) = 1;
}
else
{
bf_set_ui((_QWORD **)a2, 3uLL);
}
bf_set_ui((_QWORD **)a3, 2 * a4 + 1);
*(_QWORD *)(a3 + 16) += 2LL;
return bf_set(a1, a2);
}
else
{
v9 = *(_QWORD *)a1;
v10 = a4 + ((a5 - a4) >> 1);
bf_const_log2_rec(a1, a2, a3, a4, v10, 1LL);
*(_QWORD *)&v22 = v9;
DWORD2(v22) = 0;
v23 = 0x8000000000000000LL;
v24 = 0LL;
v18 = v9;
v19 = 0;
v20 = 0x8000000000000000LL;
v21 = 0LL;
v14 = v9;
v15 = 0;
v16 = 0x8000000000000000LL;
v17 = 0LL;
bf_const_log2_rec(&v22, &v18, &v14, v10, a5, a6);
bf_mul(a1, (long long)a1, (long long)&v14, 0x3FFFFFFFFFFFFFFFLL, 1u);
bf_mul(&v22, (long long)&v22, a2, 0x3FFFFFFFFFFFFFFFLL, 1u);
bf_op2(a1, a1, &v22, 0x3FFFFFFFFFFFFFFFLL, 1LL, (long long ( *)(__int128 *))_bf_add);
if ( a6 )
bf_mul((__int128 *)a2, a2, (long long)&v18, 0x3FFFFFFFFFFFFFFFLL, 1u);
bf_mul((__int128 *)a3, a3, (long long)&v14, 0x3FFFFFFFFFFFFFFFLL, 1u);
if ( (_QWORD)v22 && *((_QWORD *)&v24 + 1) )
(*(void ( **)(_QWORD, _QWORD, _QWORD))(v22 + 8))(*(_QWORD *)v22, *((_QWORD *)&v24 + 1), 0LL);
if ( v18 && *((_QWORD *)&v21 + 1) )
(*(void ( **)(_QWORD, _QWORD, _QWORD))(v18 + 8))(*(_QWORD *)v18, *((_QWORD *)&v21 + 1), 0LL);
result = v14;
if ( v14 && *((_QWORD *)&v17 + 1) )
return (*(long long ( **)(_QWORD, _QWORD, _QWORD))(v14 + 8))(*(_QWORD *)v14, *((_QWORD *)&v17 + 1), 0LL);
}
return result;
}
| |||
57,457
|
bf_const_log2_rec
|
bluesky950520[P]quickjs/libbf.c
|
static void bf_const_log2_rec(bf_t *T, bf_t *P, bf_t *Q, limb_t n1,
limb_t n2, BOOL need_P)
{
bf_context_t *s = T->ctx;
if ((n2 - n1) == 1) {
if (n1 == 0) {
bf_set_ui(P, 3);
} else {
bf_set_ui(P, n1);
P->sign = 1;
}
bf_set_ui(Q, 2 * n1 + 1);
Q->expn += 2;
bf_set(T, P);
} else {
limb_t m;
bf_t T1_s, *T1 = &T1_s;
bf_t P1_s, *P1 = &P1_s;
bf_t Q1_s, *Q1 = &Q1_s;
m = n1 + ((n2 - n1) >> 1);
bf_const_log2_rec(T, P, Q, n1, m, TRUE);
bf_init(s, T1);
bf_init(s, P1);
bf_init(s, Q1);
bf_const_log2_rec(T1, P1, Q1, m, n2, need_P);
bf_mul(T, T, Q1, BF_PREC_INF, BF_RNDZ);
bf_mul(T1, T1, P, BF_PREC_INF, BF_RNDZ);
bf_add(T, T, T1, BF_PREC_INF, BF_RNDZ);
if (need_P)
bf_mul(P, P, P1, BF_PREC_INF, BF_RNDZ);
bf_mul(Q, Q, Q1, BF_PREC_INF, BF_RNDZ);
bf_delete(T1);
bf_delete(P1);
bf_delete(Q1);
}
}
|
O2
|
c
|
bf_const_log2_rec:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rcx, %r13
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %r8, %r12
subq %rcx, %r12
cmpq $0x1, %r12
jne 0x79869
testq %r13, %r13
je 0x799bc
movq %r14, %rdi
movq %r13, %rsi
callq 0x6f556
movl $0x1, 0x8(%r14)
jmp 0x799c7
movq %r8, %rbp
movq %r14, 0x10(%rsp)
movq (%r15), %r14
shrq %r12
addq %r13, %r12
pushq $0x1
popq %rax
movq %r15, %rdi
movq 0x10(%rsp), %rsi
movq %rbx, 0x18(%rsp)
movq %rbx, %rdx
movq %r13, %rcx
movq %r12, %r8
movl %r9d, 0xc(%rsp)
movl %eax, %r9d
callq 0x7981f
leaq 0x70(%rsp), %r13
movq %r14, (%r13)
andl $0x0, 0x8(%r13)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, 0x10(%r13)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r13)
leaq 0x20(%rsp), %rsi
movq %r14, (%rsi)
andl $0x0, 0x8(%rsi)
leaq 0x48(%rsp), %rbx
movq %r14, (%rbx)
movq 0x10(%rsp), %r14
andl $0x0, 0x8(%rbx)
movq %rax, 0x10(%rsi)
movups %xmm0, 0x18(%rsi)
movq %rax, 0x10(%rbx)
movups %xmm0, 0x18(%rbx)
movq %r13, %rdi
movq %rbx, %rdx
movq %r12, %rcx
movq %rbp, %r8
movl 0xc(%rsp), %r12d
movl %r12d, %r9d
callq 0x7981f
movq %r15, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movabsq $0x3fffffffffffffff, %rbx # imm = 0x3FFFFFFFFFFFFFFF
movq %rbx, %rcx
pushq $0x1
popq %rbp
movl %ebp, %r8d
callq 0x70da9
movq %r13, %rdi
movq %r13, %rsi
movq %r14, %rdx
movq %rbx, %rcx
movl %ebp, %r8d
callq 0x70da9
movq %r15, %rdi
movq %r15, %rsi
movq %rbx, %r15
movq %r13, %rdx
movq %rbx, %rcx
movl %ebp, %r8d
callq 0x71c49
testl %r12d, %r12d
je 0x79972
leaq 0x20(%rsp), %rdx
pushq $0x1
popq %r8
movq %r14, %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0x70da9
leaq 0x48(%rsp), %rbx
pushq $0x1
popq %r8
movq 0x18(%rsp), %rdi
movq %rdi, %rsi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x70da9
leaq 0x70(%rsp), %rdi
callq 0x7145e
leaq 0x20(%rsp), %rdi
callq 0x7145e
movq %rbx, %rdi
callq 0x7145e
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x3
popq %rsi
movq %r14, %rdi
callq 0x6f556
leaq 0x1(,%r13,2), %rsi
movq %rbx, %rdi
callq 0x6f556
addq $0x2, 0x10(%rbx)
movq %r15, %rdi
movq %r14, %rsi
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6f666
|
bf_const_log2_rec:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r13, rcx
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov r12, r8
sub r12, rcx
cmp r12, 1
jnz short loc_79869
test r13, r13
jz loc_799BC
mov rdi, r14
mov rsi, r13
call bf_set_ui
mov dword ptr [r14+8], 1
jmp loc_799C7
loc_79869:
mov rbp, r8
mov [rsp+0C8h+var_B8], r14
mov r14, [r15]
shr r12, 1
add r12, r13
push 1
pop rax
mov rdi, r15
mov rsi, [rsp+0C8h+var_B8]
mov [rsp+0C8h+var_B0], rbx
mov rdx, rbx
mov rcx, r13
mov r8, r12
mov [rsp+0C8h+var_BC], r9d
mov r9d, eax
call bf_const_log2_rec
lea r13, [rsp+0C8h+var_58]
mov [r13+0], r14
and dword ptr [r13+8], 0
mov rax, 8000000000000000h
mov [r13+10h], rax
xorps xmm0, xmm0
movups xmmword ptr [r13+18h], xmm0
lea rsi, [rsp+0C8h+var_A8]
mov [rsi], r14
and dword ptr [rsi+8], 0
lea rbx, [rsp+0C8h+var_80]
mov [rbx], r14
mov r14, [rsp+0C8h+var_B8]
and dword ptr [rbx+8], 0
mov [rsi+10h], rax
movups xmmword ptr [rsi+18h], xmm0
mov [rbx+10h], rax
movups xmmword ptr [rbx+18h], xmm0
mov rdi, r13
mov rdx, rbx
mov rcx, r12
mov r8, rbp
mov r12d, [rsp+0C8h+var_BC]
mov r9d, r12d
call bf_const_log2_rec
mov rdi, r15
mov rsi, r15
mov rdx, rbx
mov rbx, 3FFFFFFFFFFFFFFFh
mov rcx, rbx
push 1
pop rbp
mov r8d, ebp
call bf_mul
mov rdi, r13
mov rsi, r13
mov rdx, r14
mov rcx, rbx
mov r8d, ebp
call bf_mul
mov rdi, r15
mov rsi, r15
mov r15, rbx
mov rdx, r13
mov rcx, rbx
mov r8d, ebp
call bf_add
test r12d, r12d
jz short loc_79972
lea rdx, [rsp+0C8h+var_A8]
push 1
pop r8
mov rdi, r14
mov rsi, r14
mov rcx, r15
call bf_mul
loc_79972:
lea rbx, [rsp+0C8h+var_80]
push 1
pop r8
mov rdi, [rsp+0C8h+var_B0]
mov rsi, rdi
mov rdx, rbx
mov rcx, r15
call bf_mul
lea rdi, [rsp+0C8h+var_58]
call bf_delete_0
lea rdi, [rsp+0C8h+var_A8]
call bf_delete_0
mov rdi, rbx
call bf_delete_0
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_799BC:
push 3
pop rsi
mov rdi, r14
call bf_set_ui
loc_799C7:
lea rsi, ds:1[r13*2]
mov rdi, rbx
call bf_set_ui
add qword ptr [rbx+10h], 2
mov rdi, r15
mov rsi, r14
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp bf_set
|
long long bf_const_log2_rec(
long long *a1,
long long a2,
long long *a3,
unsigned long long a4,
long long a5,
unsigned int a6)
{
long long v9; // r14
unsigned long long v10; // r12
long long v14; // [rsp+20h] [rbp-A8h] BYREF
int v15; // [rsp+28h] [rbp-A0h]
unsigned long long v16; // [rsp+30h] [rbp-98h]
__int128 v17; // [rsp+38h] [rbp-90h]
long long v18; // [rsp+48h] [rbp-80h] BYREF
int v19; // [rsp+50h] [rbp-78h]
unsigned long long v20; // [rsp+58h] [rbp-70h]
__int128 v21; // [rsp+60h] [rbp-68h]
long long v22; // [rsp+70h] [rbp-58h] BYREF
int v23; // [rsp+78h] [rbp-50h]
unsigned long long v24; // [rsp+80h] [rbp-48h]
__int128 v25; // [rsp+88h] [rbp-40h]
if ( a5 - a4 == 1 )
{
if ( a4 )
{
bf_set_ui(a2, a4);
*(_DWORD *)(a2 + 8) = 1;
}
else
{
bf_set_ui(a2, 3uLL);
}
bf_set_ui((long long)a3, 2 * a4 + 1);
a3[2] += 2LL;
return bf_set((long long)a1, a2);
}
else
{
v9 = *a1;
v10 = a4 + ((a5 - a4) >> 1);
bf_const_log2_rec(a1, a2, a3, a4, v10, 1LL);
v22 = v9;
v23 = 0;
v24 = 0x8000000000000000LL;
v25 = 0LL;
v14 = v9;
v15 = 0;
v18 = v9;
v19 = 0;
v16 = 0x8000000000000000LL;
v17 = 0LL;
v20 = 0x8000000000000000LL;
v21 = 0LL;
bf_const_log2_rec(&v22, &v14, &v18, v10, a5, a6);
bf_mul(a1, a1, &v18, 0x3FFFFFFFFFFFFFFFLL, 1u);
bf_mul(&v22, &v22, (long long *)a2, 0x3FFFFFFFFFFFFFFFLL, 1u);
bf_add((long long)a1, (long long)a1, (long long)&v22, 0x3FFFFFFFFFFFFFFFLL, 1LL);
if ( a6 )
bf_mul((long long *)a2, (long long *)a2, &v14, 0x3FFFFFFFFFFFFFFFLL, 1u);
bf_mul(a3, a3, &v18, 0x3FFFFFFFFFFFFFFFLL, 1u);
bf_delete_0(&v22);
bf_delete_0(&v14);
return bf_delete_0(&v18);
}
}
|
bf_const_log2_rec:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R13,RCX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOV R12,R8
SUB R12,RCX
CMP R12,0x1
JNZ 0x00179869
TEST R13,R13
JZ 0x001799bc
MOV RDI,R14
MOV RSI,R13
CALL 0x0016f556
MOV dword ptr [R14 + 0x8],0x1
JMP 0x001799c7
LAB_00179869:
MOV RBP,R8
MOV qword ptr [RSP + 0x10],R14
MOV R14,qword ptr [R15]
SHR R12,0x1
ADD R12,R13
PUSH 0x1
POP RAX
MOV RDI,R15
MOV RSI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x18],RBX
MOV RDX,RBX
MOV RCX,R13
MOV R8,R12
MOV dword ptr [RSP + 0xc],R9D
MOV R9D,EAX
CALL 0x0017981f
LEA R13,[RSP + 0x70]
MOV qword ptr [R13],R14
AND dword ptr [R13 + 0x8],0x0
MOV RAX,-0x8000000000000000
MOV qword ptr [R13 + 0x10],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R13 + 0x18],XMM0
LEA RSI,[RSP + 0x20]
MOV qword ptr [RSI],R14
AND dword ptr [RSI + 0x8],0x0
LEA RBX,[RSP + 0x48]
MOV qword ptr [RBX],R14
MOV R14,qword ptr [RSP + 0x10]
AND dword ptr [RBX + 0x8],0x0
MOV qword ptr [RSI + 0x10],RAX
MOVUPS xmmword ptr [RSI + 0x18],XMM0
MOV qword ptr [RBX + 0x10],RAX
MOVUPS xmmword ptr [RBX + 0x18],XMM0
MOV RDI,R13
MOV RDX,RBX
MOV RCX,R12
MOV R8,RBP
MOV R12D,dword ptr [RSP + 0xc]
MOV R9D,R12D
CALL 0x0017981f
MOV RDI,R15
MOV RSI,R15
MOV RDX,RBX
MOV RBX,0x3fffffffffffffff
MOV RCX,RBX
PUSH 0x1
POP RBP
MOV R8D,EBP
CALL 0x00170da9
MOV RDI,R13
MOV RSI,R13
MOV RDX,R14
MOV RCX,RBX
MOV R8D,EBP
CALL 0x00170da9
MOV RDI,R15
MOV RSI,R15
MOV R15,RBX
MOV RDX,R13
MOV RCX,RBX
MOV R8D,EBP
CALL 0x00171c49
TEST R12D,R12D
JZ 0x00179972
LEA RDX,[RSP + 0x20]
PUSH 0x1
POP R8
MOV RDI,R14
MOV RSI,R14
MOV RCX,R15
CALL 0x00170da9
LAB_00179972:
LEA RBX,[RSP + 0x48]
PUSH 0x1
POP R8
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,RDI
MOV RDX,RBX
MOV RCX,R15
CALL 0x00170da9
LEA RDI,[RSP + 0x70]
CALL 0x0017145e
LEA RDI,[RSP + 0x20]
CALL 0x0017145e
MOV RDI,RBX
CALL 0x0017145e
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001799bc:
PUSH 0x3
POP RSI
MOV RDI,R14
CALL 0x0016f556
LAB_001799c7:
LEA RSI,[0x1 + R13*0x2]
MOV RDI,RBX
CALL 0x0016f556
ADD qword ptr [RBX + 0x10],0x2
MOV RDI,R15
MOV RSI,R14
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0016f666
|
void bf_const_log2_rec(int8 *param_1,long param_2,long param_3,long param_4,long param_5,
int param_6)
{
int8 uVar1;
long lVar2;
int8 local_a8;
int4 local_a0;
int8 local_98;
int8 local_90;
int8 uStack_88;
int8 local_80;
int4 local_78;
int8 local_70;
int8 local_68;
int8 uStack_60;
int8 local_58;
int4 local_50;
int8 local_48;
int8 local_40;
int8 uStack_38;
if (param_5 - param_4 == 1) {
if (param_4 == 0) {
bf_set_ui(param_2,3);
}
else {
bf_set_ui(param_2,param_4);
*(int4 *)(param_2 + 8) = 1;
}
bf_set_ui(param_3,param_4 * 2 + 1);
*(long *)(param_3 + 0x10) = *(long *)(param_3 + 0x10) + 2;
bf_set(param_1,param_2);
return;
}
uVar1 = *param_1;
lVar2 = ((ulong)(param_5 - param_4) >> 1) + param_4;
bf_const_log2_rec(param_1,param_2,param_3,param_4,lVar2,1);
local_50 = 0;
local_48 = 0x8000000000000000;
local_40 = 0;
uStack_38 = 0;
local_a0 = 0;
local_78 = 0;
local_98 = 0x8000000000000000;
local_90 = 0;
uStack_88 = 0;
local_70 = 0x8000000000000000;
local_68 = 0;
uStack_60 = 0;
local_a8 = uVar1;
local_80 = uVar1;
local_58 = uVar1;
bf_const_log2_rec(&local_58,&local_a8,&local_80,lVar2,param_5,param_6);
bf_mul(param_1,param_1,&local_80,0x3fffffffffffffff,1);
bf_mul(&local_58,&local_58,param_2,0x3fffffffffffffff,1);
bf_add(param_1,param_1,&local_58,0x3fffffffffffffff,1);
if (param_6 != 0) {
bf_mul(param_2,param_2,&local_a8,0x3fffffffffffffff,1);
}
bf_mul(param_3,param_3,&local_80,0x3fffffffffffffff,1);
bf_delete(&local_58);
bf_delete(&local_a8);
bf_delete(&local_80);
return;
}
|
|
57,458
|
YAML::SingleDocParser::HandleBlockMap(YAML::EventHandler&)
|
aimrt_mujoco_sim/_deps/yaml-cpp-src/src/singledocparser.cpp
|
void SingleDocParser::HandleBlockMap(EventHandler& eventHandler) {
// eat start token
m_scanner.pop();
m_pCollectionStack->PushCollectionType(CollectionType::BlockMap);
while (true) {
if (m_scanner.empty())
throw ParserException(m_scanner.mark(), ErrorMsg::END_OF_MAP);
Token token = m_scanner.peek();
if (token.type != Token::KEY && token.type != Token::VALUE &&
token.type != Token::BLOCK_MAP_END)
throw ParserException(token.mark, ErrorMsg::END_OF_MAP);
if (token.type == Token::BLOCK_MAP_END) {
m_scanner.pop();
break;
}
// grab key (if non-null)
if (token.type == Token::KEY) {
m_scanner.pop();
HandleNode(eventHandler);
} else {
eventHandler.OnNull(token.mark, NullAnchor);
}
// now grab value (optional)
if (!m_scanner.empty() && m_scanner.peek().type == Token::VALUE) {
m_scanner.pop();
HandleNode(eventHandler);
} else {
eventHandler.OnNull(token.mark, NullAnchor);
}
}
m_pCollectionStack->PopCollectionType(CollectionType::BlockMap);
}
|
O0
|
cpp
|
YAML::SingleDocParser::HandleBlockMap(YAML::EventHandler&):
subq $0x138, %rsp # imm = 0x138
movq %rdi, 0x130(%rsp)
movq %rsi, 0x128(%rsp)
movq 0x130(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x8(%rax), %rdi
callq 0x130c20
movq 0x48(%rsp), %rdi
addq $0x18, %rdi
callq 0x143010
movq %rax, %rdi
movl $0x1, %esi
callq 0x143080
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x130b60
testb $0x1, %al
jne 0x141fff
jmp 0x14214b
movb $0x1, 0xd6(%rsp)
movl $0x40, %edi
callq 0x8e630
movq %rax, %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x30(%rsp)
movq 0x8(%rax), %rdi
callq 0x130ca0
movl %edx, 0x3c(%rsp)
movq %rax, 0x40(%rsp)
jmp 0x142032
movl 0x3c(%rsp), %eax
movq 0x40(%rsp), %rcx
movq %rcx, 0xf8(%rsp)
movl %eax, 0x100(%rsp)
movl 0x100(%rsp), %eax
movl %eax, 0x120(%rsp)
movq 0xf8(%rsp), %rax
movq %rax, 0x118(%rsp)
leaq 0xd7(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x94520
movq 0x28(%rsp), %rdx
leaq 0x29fa5f(%rip), %rsi # 0x3e1ae5
leaq 0xd8(%rsp), %rdi
callq 0xe0480
jmp 0x142095
movq 0x30(%rsp), %rdi
leaq 0x118(%rsp), %rsi
leaq 0xd8(%rsp), %rdx
callq 0x12eb30
jmp 0x1420b1
movq 0x30(%rsp), %rdi
movb $0x0, 0xd6(%rsp)
leaq 0x3b8a03(%rip), %rsi # 0x4faac8
leaq -0x1c2cc(%rip), %rdx # 0x125e00
callq 0x90860
jmp 0x1423ca
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x110(%rsp)
movl %eax, 0x10c(%rsp)
jmp 0x142130
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x110(%rsp)
movl %eax, 0x10c(%rsp)
jmp 0x142123
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x110(%rsp)
movl %eax, 0x10c(%rsp)
leaq 0xd8(%rsp), %rdi
callq 0x96fb8
leaq 0xd7(%rsp), %rdi
callq 0x96fa0
testb $0x1, 0xd6(%rsp)
jne 0x14213c
jmp 0x142146
movq 0x30(%rsp), %rdi
callq 0x93710
jmp 0x1423bd
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x130c70
movq %rax, %rsi
leaq 0x78(%rsp), %rdi
callq 0x13e770
cmpl $0xe, 0x7c(%rsp)
je 0x14225d
cmpl $0xf, 0x7c(%rsp)
je 0x14225d
cmpl $0x6, 0x7c(%rsp)
je 0x14225d
movb $0x1, 0x56(%rsp)
movl $0x40, %edi
callq 0x8e630
movq %rax, 0x10(%rsp)
leaq 0x80(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0x57(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x94520
movq 0x20(%rsp), %rdx
leaq 0x29f922(%rip), %rsi # 0x3e1ae5
leaq 0x58(%rsp), %rdi
callq 0xe0480
jmp 0x1421cf
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdi
leaq 0x58(%rsp), %rdx
callq 0x12eb30
jmp 0x1421e5
movq 0x10(%rsp), %rdi
movb $0x0, 0x56(%rsp)
leaq 0x3b88d2(%rip), %rsi # 0x4faac8
leaq -0x1c3fd(%rip), %rdx # 0x125e00
callq 0x90860
jmp 0x1423ca
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x110(%rsp)
movl %eax, 0x10c(%rsp)
jmp 0x14223b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x110(%rsp)
movl %eax, 0x10c(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x96fb8
leaq 0x57(%rsp), %rdi
callq 0x96fa0
testb $0x1, 0x56(%rsp)
jne 0x14224e
jmp 0x142258
movq 0x10(%rsp), %rdi
callq 0x93710
jmp 0x14238e
cmpl $0x6, 0x7c(%rsp)
jne 0x14229a
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x130c20
jmp 0x142274
movl $0x3, 0x50(%rsp)
jmp 0x142373
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x110(%rsp)
movl %eax, 0x10c(%rsp)
jmp 0x14238e
cmpl $0xe, 0x7c(%rsp)
jne 0x1422c7
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x130c20
jmp 0x1422b1
movq 0x48(%rsp), %rdi
movq 0x128(%rsp), %rsi
callq 0x140930
jmp 0x1422c5
jmp 0x1422e8
movq 0x128(%rsp), %rdi
leaq 0x80(%rsp), %rsi
movq (%rdi), %rax
movq 0x20(%rax), %rax
xorl %ecx, %ecx
movl %ecx, %edx
callq *%rax
jmp 0x1422e6
jmp 0x1422e8
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x130b60
movb %al, 0xf(%rsp)
jmp 0x1422fc
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x14234a
jmp 0x142306
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x130c70
movq %rax, (%rsp)
jmp 0x14231a
movq (%rsp), %rax
cmpl $0xf, 0x4(%rax)
jne 0x14234a
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x130c20
jmp 0x142334
movq 0x48(%rsp), %rdi
movq 0x128(%rsp), %rsi
callq 0x140930
jmp 0x142348
jmp 0x14236b
movq 0x128(%rsp), %rdi
leaq 0x80(%rsp), %rsi
movq (%rdi), %rax
movq 0x20(%rax), %rax
xorl %ecx, %ecx
movl %ecx, %edx
callq *%rax
jmp 0x142369
jmp 0x14236b
movl $0x0, 0x50(%rsp)
leaq 0x78(%rsp), %rdi
callq 0x133720
movl 0x50(%rsp), %eax
testl %eax, %eax
je 0x142389
jmp 0x142387
jmp 0x14239a
jmp 0x141fe8
leaq 0x78(%rsp), %rdi
callq 0x133720
jmp 0x1423bd
movq 0x48(%rsp), %rdi
addq $0x18, %rdi
callq 0x143010
movq %rax, %rdi
movl $0x1, %esi
callq 0x1430b0
addq $0x138, %rsp # imm = 0x138
retq
movq 0x110(%rsp), %rdi
callq 0x90db0
nopw (%rax,%rax)
|
_ZN4YAML15SingleDocParser14HandleBlockMapERNS_12EventHandlerE:
sub rsp, 138h
mov [rsp+138h+var_8], rdi
mov [rsp+138h+var_10], rsi
mov rax, [rsp+138h+var_8]
mov [rsp+138h+var_F0], rax
mov rdi, [rax+8]; this
call _ZN4YAML7Scanner3popEv; YAML::Scanner::pop(void)
mov rdi, [rsp+138h+var_F0]
add rdi, 18h
call _ZNKSt10unique_ptrIN4YAML15CollectionStackESt14default_deleteIS1_EEptEv; std::unique_ptr<YAML::CollectionStack>::operator->(void)
mov rdi, rax
mov esi, 1
call _ZN4YAML15CollectionStack18PushCollectionTypeENS_14CollectionType5valueE; YAML::CollectionStack::PushCollectionType(YAML::CollectionType::value)
loc_141FE8:
mov rax, [rsp+138h+var_F0]
mov rdi, [rax+8]; this
call _ZN4YAML7Scanner5emptyEv; YAML::Scanner::empty(void)
test al, 1
jnz short loc_141FFF
jmp loc_14214B
loc_141FFF:
mov [rsp+138h+var_62], 1
mov edi, 40h ; '@'; thrown_size
call ___cxa_allocate_exception
mov rcx, rax
mov rax, [rsp+138h+var_F0]
mov [rsp+138h+var_108], rcx
mov rdi, [rax+8]; this
call _ZNK4YAML7Scanner4markEv; YAML::Scanner::mark(void)
mov [rsp+138h+var_FC], edx
mov [rsp+138h+var_F8], rax
jmp short $+2
loc_142032:
mov eax, [rsp+138h+var_FC]
mov rcx, [rsp+138h+var_F8]
mov [rsp+138h+var_40], rcx
mov [rsp+138h+var_38], eax
mov eax, [rsp+138h+var_38]
mov [rsp+138h+var_18], eax
mov rax, [rsp+138h+var_40]
mov [rsp+138h+var_20], rax
lea rdi, [rsp+138h+var_61]
mov [rsp+138h+var_110], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, [rsp+138h+var_110]
lea rsi, aEndOfMapNotFou; "end of map not found"
lea rdi, [rsp+138h+var_60]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_142095:
mov rdi, [rsp+138h+var_108]
lea rsi, [rsp+138h+var_20]
lea rdx, [rsp+138h+var_60]
call _ZN4YAML15ParserExceptionC2ERKNS_4MarkERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; YAML::ParserException::ParserException(YAML::Mark const&,std::string const&)
jmp short $+2
loc_1420B1:
mov rdi, [rsp+138h+var_108]; void *
mov [rsp+138h+var_62], 0
lea rsi, _ZTIN4YAML15ParserExceptionE; lptinfo
lea rdx, _ZN4YAML15ParserExceptionD2Ev; void (*)(void *)
call ___cxa_throw
jmp loc_1423CA
mov rcx, rax
mov eax, edx
mov [rsp+arg_108], rcx
mov [rsp+arg_104], eax
jmp short loc_142130
mov rcx, rax
mov eax, edx
mov [rsp+arg_108], rcx
mov [rsp+arg_104], eax
jmp short loc_142123
mov rcx, rax
mov eax, edx
mov [rsp+arg_108], rcx
mov [rsp+arg_104], eax
lea rdi, [rsp+arg_D0]; void *
call j__ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_142123:
lea rdi, [rsp+arg_CF]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
loc_142130:
test [rsp+arg_CE], 1
jnz short loc_14213C
jmp short loc_142146
loc_14213C:
mov rdi, [rsp+arg_28]; void *
call ___cxa_free_exception
loc_142146:
jmp loc_1423BD
loc_14214B:
mov rax, [rsp+138h+var_F0]
mov rdi, [rax+8]; this
call _ZN4YAML7Scanner4peekEv; YAML::Scanner::peek(void)
mov rsi, rax; YAML::Token *
lea rdi, [rsp+138h+var_C0]; this
call _ZN4YAML5TokenC2ERKS0_; YAML::Token::Token(YAML::Token const&)
cmp [rsp+138h+var_BC], 0Eh
jz loc_14225D
cmp [rsp+138h+var_BC], 0Fh
jz loc_14225D
cmp [rsp+138h+var_BC], 6
jz loc_14225D
mov [rsp+138h+var_E2], 1
mov edi, 40h ; '@'; thrown_size
call ___cxa_allocate_exception
mov [rsp+138h+var_128], rax
lea rax, [rsp+138h+var_B8]
mov [rsp+138h+var_120], rax
lea rdi, [rsp+138h+var_E1]
mov [rsp+138h+var_118], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, [rsp+138h+var_118]
lea rsi, aEndOfMapNotFou; "end of map not found"
lea rdi, [rsp+138h+var_E0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_1421CF:
mov rsi, [rsp+138h+var_120]
mov rdi, [rsp+138h+var_128]
lea rdx, [rsp+138h+var_E0]
call _ZN4YAML15ParserExceptionC2ERKNS_4MarkERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; YAML::ParserException::ParserException(YAML::Mark const&,std::string const&)
jmp short $+2
loc_1421E5:
mov rdi, [rsp+138h+var_128]; void *
mov [rsp+138h+var_E2], 0
lea rsi, _ZTIN4YAML15ParserExceptionE; lptinfo
lea rdx, _ZN4YAML15ParserExceptionD2Ev; void (*)(void *)
call ___cxa_throw
jmp loc_1423CA
mov rcx, rax
mov eax, edx
mov [rsp+arg_108], rcx
mov [rsp+arg_104], eax
jmp short loc_14223B
mov rcx, rax
mov eax, edx
mov [rsp+arg_108], rcx
mov [rsp+arg_104], eax
lea rdi, [rsp+arg_50]; void *
call j__ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_14223B:
lea rdi, [rsp+arg_4F]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
test [rsp+arg_4E], 1
jnz short loc_14224E
jmp short loc_142258
loc_14224E:
mov rdi, [rsp+arg_8]; void *
call ___cxa_free_exception
loc_142258:
jmp loc_14238E
loc_14225D:
cmp [rsp+138h+var_BC], 6
jnz short loc_14229A
mov rax, [rsp+138h+var_F0]
mov rdi, [rax+8]; this
call _ZN4YAML7Scanner3popEv; YAML::Scanner::pop(void)
jmp short $+2
loc_142274:
mov [rsp+138h+var_E8], 3
jmp loc_142373
mov rcx, rax
mov eax, edx
mov [rsp+arg_108], rcx
mov [rsp+arg_104], eax
jmp loc_14238E
loc_14229A:
cmp [rsp+138h+var_BC], 0Eh
jnz short loc_1422C7
mov rax, [rsp+138h+var_F0]
mov rdi, [rax+8]; this
call _ZN4YAML7Scanner3popEv; YAML::Scanner::pop(void)
jmp short $+2
loc_1422B1:
mov rdi, [rsp+138h+var_F0]; this
mov rsi, [rsp+138h+var_10]; YAML::EventHandler *
call _ZN4YAML15SingleDocParser10HandleNodeERNS_12EventHandlerE; YAML::SingleDocParser::HandleNode(YAML::EventHandler &)
jmp short $+2
loc_1422C5:
jmp short loc_1422E8
loc_1422C7:
mov rdi, [rsp+138h+var_10]
lea rsi, [rsp+138h+var_B8]
mov rax, [rdi]
mov rax, [rax+20h]
xor ecx, ecx
mov edx, ecx
call rax
jmp short $+2
loc_1422E6:
jmp short $+2
loc_1422E8:
mov rax, [rsp+138h+var_F0]
mov rdi, [rax+8]; this
call _ZN4YAML7Scanner5emptyEv; YAML::Scanner::empty(void)
mov [rsp+138h+var_129], al
jmp short $+2
loc_1422FC:
mov al, [rsp+138h+var_129]
test al, 1
jnz short loc_14234A
jmp short $+2
loc_142306:
mov rax, [rsp+138h+var_F0]
mov rdi, [rax+8]; this
call _ZN4YAML7Scanner4peekEv; YAML::Scanner::peek(void)
mov [rsp+138h+var_138], rax
jmp short $+2
loc_14231A:
mov rax, [rsp+138h+var_138]
cmp dword ptr [rax+4], 0Fh
jnz short loc_14234A
mov rax, [rsp+138h+var_F0]
mov rdi, [rax+8]; this
call _ZN4YAML7Scanner3popEv; YAML::Scanner::pop(void)
jmp short $+2
loc_142334:
mov rdi, [rsp+138h+var_F0]; this
mov rsi, [rsp+138h+var_10]; YAML::EventHandler *
call _ZN4YAML15SingleDocParser10HandleNodeERNS_12EventHandlerE; YAML::SingleDocParser::HandleNode(YAML::EventHandler &)
jmp short $+2
loc_142348:
jmp short loc_14236B
loc_14234A:
mov rdi, [rsp+138h+var_10]
lea rsi, [rsp+138h+var_B8]
mov rax, [rdi]
mov rax, [rax+20h]
xor ecx, ecx
mov edx, ecx
call rax
jmp short $+2
loc_142369:
jmp short $+2
loc_14236B:
mov [rsp+138h+var_E8], 0
loc_142373:
lea rdi, [rsp+138h+var_C0]; this
call _ZN4YAML5TokenD2Ev; YAML::Token::~Token()
mov eax, [rsp+138h+var_E8]
test eax, eax
jz short loc_142389
jmp short $+2
loc_142387:
jmp short loc_14239A
loc_142389:
jmp loc_141FE8
loc_14238E:
lea rdi, [rsp+arg_70]; this
call _ZN4YAML5TokenD2Ev; YAML::Token::~Token()
jmp short loc_1423BD
loc_14239A:
mov rdi, [rsp+138h+var_F0]
add rdi, 18h
call _ZNKSt10unique_ptrIN4YAML15CollectionStackESt14default_deleteIS1_EEptEv; std::unique_ptr<YAML::CollectionStack>::operator->(void)
mov rdi, rax
mov esi, 1
call _ZN4YAML15CollectionStack17PopCollectionTypeENS_14CollectionType5valueE; YAML::CollectionStack::PopCollectionType(YAML::CollectionType::value)
add rsp, 138h
retn
loc_1423BD:
mov rdi, [rsp+arg_108]
call __Unwind_Resume
loc_1423CA:
nop word ptr [rax+rax+00h]
|
long long YAML::SingleDocParser::HandleBlockMap(YAML::Scanner **this, YAML::EventHandler *a2)
{
long long v2; // rax
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
const YAML::Token *v7; // rsi
int v8; // ecx
int v9; // r8d
int v10; // r9d
long long v11; // rax
_QWORD *v13; // [rsp+10h] [rbp-128h]
_QWORD *exception; // [rsp+30h] [rbp-108h]
int v15; // [rsp+50h] [rbp-E8h]
char v16; // [rsp+57h] [rbp-E1h] BYREF
_BYTE v17[32]; // [rsp+58h] [rbp-E0h] BYREF
_BYTE v18[4]; // [rsp+78h] [rbp-C0h] BYREF
int v19; // [rsp+7Ch] [rbp-BCh]
_BYTE v20[86]; // [rsp+80h] [rbp-B8h] BYREF
char v21; // [rsp+D6h] [rbp-62h]
char v22; // [rsp+D7h] [rbp-61h] BYREF
_BYTE v23[32]; // [rsp+D8h] [rbp-60h] BYREF
long long v24; // [rsp+F8h] [rbp-40h]
int v25; // [rsp+100h] [rbp-38h]
long long v26; // [rsp+118h] [rbp-20h] BYREF
int v27; // [rsp+120h] [rbp-18h]
YAML::EventHandler *v28; // [rsp+128h] [rbp-10h]
YAML::Scanner **v29; // [rsp+130h] [rbp-8h]
v29 = this;
v28 = a2;
YAML::Scanner::pop(this[1]);
v2 = std::unique_ptr<YAML::CollectionStack>::operator->(this + 3);
YAML::CollectionStack::PushCollectionType(v2, 1LL);
do
{
if ( (YAML::Scanner::empty(this[1]) & 1) != 0 )
{
v21 = 1;
exception = __cxa_allocate_exception(0x40uLL);
v24 = YAML::Scanner::mark(this[1]);
v25 = v3;
v27 = v3;
v26 = v24;
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>((long long)v23, (long long)"end of map not found", (long long)&v22);
YAML::ParserException::ParserException(exception, (long long)&v26, (long long)v23, v4, v5, v6);
v21 = 0;
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'YAML::ParserException,
(void (*)(void *))YAML::ParserException::~ParserException);
}
v7 = (const YAML::Token *)YAML::Scanner::peek(this[1]);
YAML::Token::Token((YAML::Token *)v18, v7);
if ( v19 != 14 && v19 != 15 && v19 != 6 )
{
v13 = __cxa_allocate_exception(0x40uLL);
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>((long long)v17, (long long)"end of map not found", (long long)&v16);
YAML::ParserException::ParserException(v13, (long long)v20, (long long)v17, v8, v9, v10);
__cxa_throw(
v13,
(struct type_info *)&`typeinfo for'YAML::ParserException,
(void (*)(void *))YAML::ParserException::~ParserException);
}
if ( v19 == 6 )
{
YAML::Scanner::pop(this[1]);
v15 = 3;
}
else
{
if ( v19 == 14 )
{
YAML::Scanner::pop(this[1]);
YAML::SingleDocParser::HandleNode(this, v28);
}
else
{
(*(void ( **)(YAML::EventHandler *, _BYTE *, _QWORD))(*(_QWORD *)v28 + 32LL))(v28, v20, 0LL);
}
if ( (YAML::Scanner::empty(this[1]) & 1) != 0 || *(_DWORD *)(YAML::Scanner::peek(this[1]) + 4) != 15 )
{
(*(void ( **)(YAML::EventHandler *, _BYTE *, _QWORD))(*(_QWORD *)v28 + 32LL))(v28, v20, 0LL);
}
else
{
YAML::Scanner::pop(this[1]);
YAML::SingleDocParser::HandleNode(this, v28);
}
v15 = 0;
}
YAML::Token::~Token((YAML::Token *)v18);
}
while ( !v15 );
v11 = std::unique_ptr<YAML::CollectionStack>::operator->(this + 3);
return YAML::CollectionStack::PopCollectionType(v11, 1LL);
}
| |||
57,459
|
YAML::SingleDocParser::HandleBlockMap(YAML::EventHandler&)
|
aimrt_mujoco_sim/_deps/yaml-cpp-src/src/singledocparser.cpp
|
void SingleDocParser::HandleBlockMap(EventHandler& eventHandler) {
// eat start token
m_scanner.pop();
m_pCollectionStack->PushCollectionType(CollectionType::BlockMap);
while (true) {
if (m_scanner.empty())
throw ParserException(m_scanner.mark(), ErrorMsg::END_OF_MAP);
Token token = m_scanner.peek();
if (token.type != Token::KEY && token.type != Token::VALUE &&
token.type != Token::BLOCK_MAP_END)
throw ParserException(token.mark, ErrorMsg::END_OF_MAP);
if (token.type == Token::BLOCK_MAP_END) {
m_scanner.pop();
break;
}
// grab key (if non-null)
if (token.type == Token::KEY) {
m_scanner.pop();
HandleNode(eventHandler);
} else {
eventHandler.OnNull(token.mark, NullAnchor);
}
// now grab value (optional)
if (!m_scanner.empty() && m_scanner.peek().type == Token::VALUE) {
m_scanner.pop();
HandleNode(eventHandler);
} else {
eventHandler.OnNull(token.mark, NullAnchor);
}
}
m_pCollectionStack->PopCollectionType(CollectionType::BlockMap);
}
|
O3
|
cpp
|
YAML::SingleDocParser::HandleBlockMap(YAML::EventHandler&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
callq 0x63c84
movq 0x18(%rbx), %rdi
movl $0x1, (%rsp)
movq 0x30(%rdi), %rax
movq 0x40(%rdi), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x6c0dd
movl $0x1, (%rax)
addq $0x4, %rax
movq %rax, 0x30(%rdi)
jmp 0x6c0e5
movq %rsp, %rsi
callq 0x6cdc2
leaq 0x18(%rsp), %r12
leaq 0x28(%rsp), %r15
leaq 0x38(%rsp), %r13
movq 0x8(%rbx), %rdi
callq 0x63c1a
testb %al, %al
jne 0x6c21c
movq 0x8(%rbx), %rdi
callq 0x63cac
movq %rax, %rbp
movups (%rax), %xmm0
movaps %xmm0, (%rsp)
movl 0x10(%rax), %eax
movl %eax, 0x10(%rsp)
movq %r15, 0x18(%rsp)
movq 0x18(%rbp), %rsi
movq 0x20(%rbp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x2c640
leaq 0x38(%rbp), %rsi
movq %r13, %rdi
callq 0x2da80
movl 0x50(%rbp), %eax
movl %eax, 0x50(%rsp)
movl 0x4(%rsp), %eax
cmpl $0x6, %eax
je 0x6c1d1
cmpl $0xe, %eax
je 0x6c173
cmpl $0xf, %eax
jne 0x6c295
movq (%r14), %rax
movq %r14, %rdi
leaq 0x8(%rsp), %rsi
xorl %edx, %edx
callq *0x20(%rax)
jmp 0x6c187
movq 0x8(%rbx), %rdi
callq 0x63c84
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6b440
movq 0x8(%rbx), %rdi
callq 0x63c1a
testb %al, %al
jne 0x6c1bc
movq 0x8(%rbx), %rdi
callq 0x63cac
cmpl $0xf, 0x4(%rax)
jne 0x6c1bc
movq 0x8(%rbx), %rdi
callq 0x63c84
movb $0x1, %bpl
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6b440
jmp 0x6c1dc
movq (%r14), %rax
movb $0x1, %bpl
movq %r14, %rdi
leaq 0x8(%rsp), %rsi
xorl %edx, %edx
callq *0x20(%rax)
jmp 0x6c1dc
movq 0x8(%rbx), %rdi
callq 0x63c84
xorl %ebp, %ebp
movq %r13, %rdi
callq 0x4f6b4
movq 0x18(%rsp), %rdi
cmpq %r15, %rdi
je 0x6c1fb
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x2d2d0
testb %bpl, %bpl
jne 0x6c0f4
movq 0x18(%rbx), %rdi
callq 0x6cfd6
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x40, %edi
callq 0x2c800
movq %rax, %r14
movq 0x8(%rbx), %rdi
callq 0x63cbe
movq %rax, 0x58(%rsp)
movl %edx, 0x60(%rsp)
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf8c12(%rip), %rsi # 0x164e5d
leaq 0xf8c1f(%rip), %rdx # 0x164e71
movq %rsp, %rdi
callq 0x2c610
movb $0x1, %bpl
leaq 0x58(%rsp), %rsi
movq %rsp, %rdx
movq %r14, %rdi
callq 0x47336
leaq 0x19d27c(%rip), %rax # 0x2094f0
addq $0x10, %rax
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x19d294(%rip), %rsi # 0x209518
leaq -0xbb5f(%rip), %rdx # 0x6072c
movq %r14, %rdi
callq 0x2e0f0
jmp 0x6c2fe
movl $0x40, %edi
callq 0x2c800
movq %rax, %r14
leaq 0x68(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf8bab(%rip), %rsi # 0x164e5d
leaq 0xf8bb8(%rip), %rdx # 0x164e71
leaq 0x58(%rsp), %rdi
callq 0x2c610
movb $0x1, %bpl
leaq 0x58(%rsp), %rdx
movq %r14, %rdi
leaq 0x8(%rsp), %rsi
callq 0x47336
leaq 0x19d211(%rip), %rax # 0x2094f0
addq $0x10, %rax
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x19d229(%rip), %rsi # 0x209518
leaq -0xbbca(%rip), %rdx # 0x6072c
movq %r14, %rdi
callq 0x2e0f0
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x6c318
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x2d2d0
testb %bpl, %bpl
jne 0x6c322
jmp 0x6c37a
movq %rax, %rbx
movq %r14, %rdi
callq 0x2cc80
jmp 0x6c37a
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6c345
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2d2d0
testb %bpl, %bpl
jne 0x6c351
jmp 0x6c382
jmp 0x6c34e
movq %rax, %rbx
movq %r14, %rdi
callq 0x2cc80
jmp 0x6c382
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r15, %rdi
je 0x6c382
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x2d2d0
jmp 0x6c382
movq %rax, %rbx
movq %rsp, %rdi
callq 0x65918
movq %rbx, %rdi
callq 0x2e220
|
_ZN4YAML15SingleDocParser14HandleBlockMapERNS_12EventHandlerE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov r14, rsi
mov rbx, rdi
mov rdi, [rdi+8]; this
call _ZN4YAML7Scanner3popEv; YAML::Scanner::pop(void)
mov rdi, [rbx+18h]
mov dword ptr [rsp+0A8h+var_A8], 1
mov rax, [rdi+30h]
mov rcx, [rdi+40h]
add rcx, 0FFFFFFFFFFFFFFFCh
cmp rax, rcx
jz short loc_6C0DD
mov dword ptr [rax], 1
add rax, 4
mov [rdi+30h], rax
jmp short loc_6C0E5
loc_6C0DD:
mov rsi, rsp
call _ZNSt5dequeIN4YAML14CollectionType5valueESaIS2_EE16_M_push_back_auxIJRKS2_EEEvDpOT_; std::deque<YAML::CollectionType::value>::_M_push_back_aux<YAML::CollectionType::value const&>(YAML::CollectionType::value const&)
loc_6C0E5:
lea r12, [rsp+0A8h+var_90]
lea r15, [rsp+0A8h+var_80]
lea r13, [rsp+0A8h+var_70]
loc_6C0F4:
mov rdi, [rbx+8]; this
call _ZN4YAML7Scanner5emptyEv; YAML::Scanner::empty(void)
test al, al
jnz loc_6C21C
mov rdi, [rbx+8]; this
call _ZN4YAML7Scanner4peekEv; YAML::Scanner::peek(void)
mov rbp, rax
movups xmm0, xmmword ptr [rax]
movaps xmmword ptr [rsp+0A8h+var_A8], xmm0; int
mov eax, [rax+10h]
mov dword ptr [rsp+0A8h+var_98], eax; void *
mov [rsp+0A8h+var_90], r15; int
mov rsi, [rbp+18h]
mov rdx, [rbp+20h]
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)
lea rsi, [rbp+38h]
mov rdi, r13
call __ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&)
mov eax, [rbp+50h]
mov [rsp+0A8h+var_58], eax; int
mov eax, dword ptr [rsp+0A8h+var_A8+4]
cmp eax, 6
jz short loc_6C1D1
cmp eax, 0Eh
jz short loc_6C173
cmp eax, 0Fh
jnz loc_6C295
mov rax, [r14]
mov rdi, r14
lea rsi, [rsp+0A8h+var_A8+8]
xor edx, edx
call qword ptr [rax+20h]
jmp short loc_6C187
loc_6C173:
mov rdi, [rbx+8]; this
call _ZN4YAML7Scanner3popEv; YAML::Scanner::pop(void)
mov rdi, rbx; int
mov rsi, r14; int
call _ZN4YAML15SingleDocParser10HandleNodeERNS_12EventHandlerE; YAML::SingleDocParser::HandleNode(YAML::EventHandler &)
loc_6C187:
mov rdi, [rbx+8]; this
call _ZN4YAML7Scanner5emptyEv; YAML::Scanner::empty(void)
test al, al
jnz short loc_6C1BC
mov rdi, [rbx+8]; this
call _ZN4YAML7Scanner4peekEv; YAML::Scanner::peek(void)
cmp dword ptr [rax+4], 0Fh
jnz short loc_6C1BC
mov rdi, [rbx+8]; this
call _ZN4YAML7Scanner3popEv; YAML::Scanner::pop(void)
mov bpl, 1
mov rdi, rbx; int
mov rsi, r14; int
call _ZN4YAML15SingleDocParser10HandleNodeERNS_12EventHandlerE; YAML::SingleDocParser::HandleNode(YAML::EventHandler &)
jmp short loc_6C1DC
loc_6C1BC:
mov rax, [r14]
mov bpl, 1
mov rdi, r14
lea rsi, [rsp+0A8h+var_A8+8]
xor edx, edx
call qword ptr [rax+20h]
jmp short loc_6C1DC
loc_6C1D1:
mov rdi, [rbx+8]; this
call _ZN4YAML7Scanner3popEv; YAML::Scanner::pop(void)
xor ebp, ebp
loc_6C1DC:
mov rdi, r13
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, [rsp+0A8h+var_90]; void *
cmp rdi, r15
jz short loc_6C1FB
mov rsi, qword ptr [rsp+0A8h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6C1FB:
test bpl, bpl
jnz loc_6C0F4
mov rdi, [rbx+18h]
call _ZNSt5dequeIN4YAML14CollectionType5valueESaIS2_EE8pop_backEv; std::deque<YAML::CollectionType::value>::pop_back(void)
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_6C21C:
mov edi, 40h ; '@'; thrown_size
call ___cxa_allocate_exception
mov r14, rax
mov rdi, [rbx+8]; this
call _ZNK4YAML7Scanner4markEv; YAML::Scanner::mark(void)
mov [rsp+0A8h+var_50], rax
mov [rsp+0A8h+var_48], edx
lea r15, [rsp+0A8h+var_98]
mov [r15-10h], r15
lea rsi, aEndOfMapNotFou; "end of map not found"
lea rdx, aEndOfMapNotFou+14h; ""
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)
mov bpl, 1
lea rsi, [rsp+0A8h+var_50]
mov rdx, rsp
mov rdi, r14
call _ZN4YAML9ExceptionC2ERKNS_4MarkERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; YAML::Exception::Exception(YAML::Mark const&,std::string const&)
lea rax, _ZTVN4YAML15ParserExceptionE; `vtable for'YAML::ParserException
add rax, 10h
mov [r14], rax
xor ebp, ebp
lea rsi, _ZTIN4YAML15ParserExceptionE; lptinfo
lea rdx, _ZN4YAML9ExceptionD2Ev; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp short loc_6C2FE
loc_6C295:
mov edi, 40h ; '@'; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea r15, [rsp+0A8h+var_40]
mov [r15-10h], r15
lea rsi, aEndOfMapNotFou; "end of map not found"
lea rdx, aEndOfMapNotFou+14h; ""
lea rdi, [rsp+0A8h+var_50]
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 bpl, 1
lea rdx, [rsp+0A8h+var_50]
mov rdi, r14
lea rsi, [rsp+0A8h+var_A8+8]
call _ZN4YAML9ExceptionC2ERKNS_4MarkERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; YAML::Exception::Exception(YAML::Mark const&,std::string const&)
lea rax, _ZTVN4YAML15ParserExceptionE; `vtable for'YAML::ParserException
add rax, 10h
mov [r14], rax
xor ebp, ebp
lea rsi, _ZTIN4YAML15ParserExceptionE; lptinfo
lea rdx, _ZN4YAML9ExceptionD2Ev; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_6C2FE:
mov rbx, rax
mov rdi, [rsp+0A8h+var_50]; void *
cmp rdi, r15
jz short loc_6C318
mov rsi, [rsp+0A8h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6C318:
test bpl, bpl
jnz short loc_6C322
jmp short loc_6C37A
mov rbx, rax
loc_6C322:
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_6C37A
mov rbx, rax
mov rdi, [rsp+0A8h+var_A8]; void *
cmp rdi, r15
jz short loc_6C345
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6C345:
test bpl, bpl
jnz short loc_6C351
jmp short loc_6C382
jmp short $+2
loc_6C34E:
mov rbx, rax
loc_6C351:
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_6C382
mov rbx, rax
mov rdi, [rsp+0A8h+var_90]; void *
cmp rdi, r15
jz short loc_6C382
mov rsi, qword ptr [rsp+0A8h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_6C382
mov rbx, rax
loc_6C37A:
mov rdi, rsp; this
call _ZN4YAML5TokenD2Ev; YAML::Token::~Token()
loc_6C382:
mov rdi, rbx
call __Unwind_Resume
|
long long YAML::SingleDocParser::HandleBlockMap(long long a1, long long a2)
{
long long v3; // rdi
_DWORD *v4; // rax
long long v5; // rbp
char v6; // bp
_QWORD *exception; // r14
int v9; // edx
int v10; // ecx
int v11; // r8d
int v12; // r9d
_QWORD *v13; // r14
int v14; // ecx
int v15; // r8d
int v16; // r9d
void *v17[2]; // [rsp+0h] [rbp-A8h] BYREF
void *v18; // [rsp+10h] [rbp-98h] BYREF
void *v19; // [rsp+18h] [rbp-90h] BYREF
int v20[2]; // [rsp+28h] [rbp-80h] BYREF
_BYTE v21[24]; // [rsp+38h] [rbp-70h] BYREF
int v22; // [rsp+50h] [rbp-58h]
void *v23; // [rsp+58h] [rbp-50h] BYREF
int v24; // [rsp+60h] [rbp-48h]
long long v25; // [rsp+68h] [rbp-40h] BYREF
YAML::Scanner::pop(*(YAML::Scanner **)(a1 + 8));
v3 = *(_QWORD *)(a1 + 24);
LODWORD(v17[0]) = 1;
v4 = *(_DWORD **)(v3 + 48);
if ( v4 == (_DWORD *)(*(_QWORD *)(v3 + 64) - 4LL) )
{
std::deque<YAML::CollectionType::value>::_M_push_back_aux<YAML::CollectionType::value const&>(v3, v17);
}
else
{
*v4 = 1;
*(_QWORD *)(v3 + 48) = v4 + 1;
}
do
{
if ( YAML::Scanner::empty(*(YAML::Scanner **)(a1 + 8)) )
{
exception = __cxa_allocate_exception(0x40uLL);
v23 = (void *)YAML::Scanner::mark(*(YAML::Scanner **)(a1 + 8));
v24 = v9;
v17[0] = &v18;
std::string::_M_construct<char const*>(v17, "end of map not found", "");
YAML::Exception::Exception((_DWORD)exception, (unsigned int)&v23, (unsigned int)v17, v10, v11, v12);
*exception = &`vtable for'YAML::ParserException + 2;
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'YAML::ParserException,
(void (*)(void *))YAML::Exception::~Exception);
}
v5 = YAML::Scanner::peek(*(YAML::Scanner **)(a1 + 8));
*(_OWORD *)v17 = *(_OWORD *)v5;
LODWORD(v18) = *(_DWORD *)(v5 + 16);
v19 = v20;
std::string::_M_construct<char *>(&v19, *(_QWORD *)(v5 + 24), *(_QWORD *)(v5 + 24) + *(_QWORD *)(v5 + 32));
std::vector<std::string>::vector(v21, v5 + 56);
v22 = *(_DWORD *)(v5 + 80);
if ( HIDWORD(v17[0]) == 6 )
{
YAML::Scanner::pop(*(YAML::Scanner **)(a1 + 8));
v6 = 0;
}
else
{
if ( HIDWORD(v17[0]) == 14 )
{
YAML::Scanner::pop(*(YAML::Scanner **)(a1 + 8));
YAML::SingleDocParser::HandleNode(a1, a2);
}
else
{
if ( HIDWORD(v17[0]) != 15 )
{
v13 = __cxa_allocate_exception(0x40uLL);
v23 = &v25;
std::string::_M_construct<char const*>(&v23, "end of map not found", "");
YAML::Exception::Exception((_DWORD)v13, (unsigned int)&v17[1], (unsigned int)&v23, v14, v15, v16);
*v13 = &`vtable for'YAML::ParserException + 2;
__cxa_throw(
v13,
(struct type_info *)&`typeinfo for'YAML::ParserException,
(void (*)(void *))YAML::Exception::~Exception);
}
(*(void ( **)(long long, void **, _QWORD))(*(_QWORD *)a2 + 32LL))(a2, &v17[1], 0LL);
}
if ( YAML::Scanner::empty(*(YAML::Scanner **)(a1 + 8))
|| *(_DWORD *)(YAML::Scanner::peek(*(YAML::Scanner **)(a1 + 8)) + 4) != 15 )
{
v6 = 1;
(*(void ( **)(long long, void **, _QWORD))(*(_QWORD *)a2 + 32LL))(a2, &v17[1], 0LL);
}
else
{
YAML::Scanner::pop(*(YAML::Scanner **)(a1 + 8));
v6 = 1;
YAML::SingleDocParser::HandleNode(a1, a2);
}
}
std::vector<std::string>::~vector((long long)v21);
if ( v19 != v20 )
operator delete(v19, *(_QWORD *)v20 + 1LL);
}
while ( v6 );
return std::deque<YAML::CollectionType::value>::pop_back(*(_QWORD *)(a1 + 24));
}
|
HandleBlockMap:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV R14,RSI
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x8]
CALL 0x00163c84
MOV RDI,qword ptr [RBX + 0x18]
MOV dword ptr [RSP],0x1
MOV RAX,qword ptr [RDI + 0x30]
MOV RCX,qword ptr [RDI + 0x40]
ADD RCX,-0x4
CMP RAX,RCX
JZ 0x0016c0dd
MOV dword ptr [RAX],0x1
ADD RAX,0x4
MOV qword ptr [RDI + 0x30],RAX
JMP 0x0016c0e5
LAB_0016c0dd:
MOV RSI,RSP
CALL 0x0016cdc2
LAB_0016c0e5:
LEA R12,[RSP + 0x18]
LEA R15,[RSP + 0x28]
LEA R13,[RSP + 0x38]
LAB_0016c0f4:
MOV RDI,qword ptr [RBX + 0x8]
CALL 0x00163c1a
TEST AL,AL
JNZ 0x0016c21c
MOV RDI,qword ptr [RBX + 0x8]
CALL 0x00163cac
MOV RBP,RAX
MOVUPS XMM0,xmmword ptr [RAX]
MOVAPS xmmword ptr [RSP],XMM0
MOV EAX,dword ptr [RAX + 0x10]
MOV dword ptr [RSP + 0x10],EAX
MOV qword ptr [RSP + 0x18],R15
MOV RSI,qword ptr [RBP + 0x18]
MOV RDX,qword ptr [RBP + 0x20]
ADD RDX,RSI
MOV RDI,R12
CALL 0x0012c640
LEA RSI,[RBP + 0x38]
LAB_0016c13b:
MOV RDI,R13
CALL 0x0012da80
MOV EAX,dword ptr [RBP + 0x50]
MOV dword ptr [RSP + 0x50],EAX
MOV EAX,dword ptr [RSP + 0x4]
CMP EAX,0x6
JZ 0x0016c1d1
CMP EAX,0xe
JZ 0x0016c173
CMP EAX,0xf
JNZ 0x0016c295
MOV RAX,qword ptr [R14]
LAB_0016c164:
MOV RDI,R14
LEA RSI,[RSP + 0x8]
XOR EDX,EDX
CALL qword ptr [RAX + 0x20]
JMP 0x0016c187
LAB_0016c173:
MOV RDI,qword ptr [RBX + 0x8]
CALL 0x00163c84
MOV RDI,RBX
MOV RSI,R14
CALL 0x0016b440
LAB_0016c187:
MOV RDI,qword ptr [RBX + 0x8]
CALL 0x00163c1a
TEST AL,AL
JNZ 0x0016c1bc
MOV RDI,qword ptr [RBX + 0x8]
CALL 0x00163cac
CMP dword ptr [RAX + 0x4],0xf
JNZ 0x0016c1bc
MOV RDI,qword ptr [RBX + 0x8]
CALL 0x00163c84
MOV BPL,0x1
MOV RDI,RBX
MOV RSI,R14
CALL 0x0016b440
JMP 0x0016c1dc
LAB_0016c1bc:
MOV RAX,qword ptr [R14]
MOV BPL,0x1
MOV RDI,R14
LEA RSI,[RSP + 0x8]
XOR EDX,EDX
CALL qword ptr [RAX + 0x20]
JMP 0x0016c1dc
LAB_0016c1d1:
MOV RDI,qword ptr [RBX + 0x8]
CALL 0x00163c84
LAB_0016c1da:
XOR EBP,EBP
LAB_0016c1dc:
MOV RDI,R13
CALL 0x0014f6b4
MOV RDI,qword ptr [RSP + 0x18]
CMP RDI,R15
JZ 0x0016c1fb
MOV RSI,qword ptr [RSP + 0x28]
INC RSI
CALL 0x0012d2d0
LAB_0016c1fb:
TEST BPL,BPL
JNZ 0x0016c0f4
MOV RDI,qword ptr [RBX + 0x18]
CALL 0x0016cfd6
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0016c21c:
MOV EDI,0x40
CALL 0x0012c800
MOV R14,RAX
MOV RDI,qword ptr [RBX + 0x8]
LAB_0016c22d:
CALL 0x00163cbe
MOV qword ptr [RSP + 0x58],RAX
MOV dword ptr [RSP + 0x60],EDX
LEA R15,[RSP + 0x10]
MOV qword ptr [R15 + -0x10],R15
LAB_0016c244:
LEA RSI,[0x264e5d]
LEA RDX,[0x264e71]
MOV RDI,RSP
CALL 0x0012c610
MOV BPL,0x1
LAB_0016c25d:
LEA RSI,[RSP + 0x58]
MOV RDX,RSP
MOV RDI,R14
CALL 0x00147336
LEA RAX,[0x3094f0]
ADD RAX,0x10
MOV qword ptr [R14],RAX
XOR EBP,EBP
LEA RSI,[0x309518]
LEA RDX,[0x16072c]
MOV RDI,R14
CALL 0x0012e0f0
LAB_0016c295:
MOV EDI,0x40
CALL 0x0012c800
MOV R14,RAX
LEA R15,[RSP + 0x68]
MOV qword ptr [R15 + -0x10],R15
LAB_0016c2ab:
LEA RSI,[0x264e5d]
LEA RDX,[0x264e71]
LEA RDI,[RSP + 0x58]
CALL 0x0012c610
MOV BPL,0x1
LAB_0016c2c6:
LEA RDX,[RSP + 0x58]
MOV RDI,R14
LEA RSI,[RSP + 0x8]
CALL 0x00147336
LEA RAX,[0x3094f0]
ADD RAX,0x10
MOV qword ptr [R14],RAX
XOR EBP,EBP
LEA RSI,[0x309518]
LEA RDX,[0x16072c]
MOV RDI,R14
CALL 0x0012e0f0
|
/* YAML::SingleDocParser::HandleBlockMap(YAML::EventHandler&) */
void __thiscall YAML::SingleDocParser::HandleBlockMap(SingleDocParser *this,EventHandler *param_1)
{
deque<YAML::CollectionType::value,std::allocator<YAML::CollectionType::value>> *this_00;
bool bVar1;
char cVar2;
int4 *puVar3;
long lVar4;
Exception *pEVar5;
int8 local_a8;
int4 uStack_a0;
int4 uStack_9c;
int4 local_98 [2];
long *local_90 [2];
long local_80 [2];
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_70 [24];
int4 local_58;
int1 local_50 [12];
int1 local_40 [16];
Scanner::pop(*(Scanner **)(this + 8));
this_00 = *(deque<YAML::CollectionType::value,std::allocator<YAML::CollectionType::value>> **)
(this + 0x18);
local_a8._0_4_ = 1;
puVar3 = *(int4 **)(this_00 + 0x30);
if (puVar3 == (int4 *)(*(long *)(this_00 + 0x40) + -4)) {
std::deque<YAML::CollectionType::value,std::allocator<YAML::CollectionType::value>>::
_M_push_back_aux<YAML::CollectionType::value_const&>(this_00,(value *)&local_a8);
}
else {
*puVar3 = 1;
*(int4 **)(this_00 + 0x30) = puVar3 + 1;
}
do {
cVar2 = Scanner::empty(*(Scanner **)(this + 8));
if (cVar2 != '\0') {
pEVar5 = (Exception *)__cxa_allocate_exception(0x40);
/* try { // try from 0016c22d to 0016c231 has its CatchHandler @ 0016c34e */
local_50 = Scanner::mark(*(Scanner **)(this + 8));
local_a8 = local_98;
/* try { // try from 0016c244 to 0016c259 has its CatchHandler @ 0016c34c */
std::__cxx11::string::_M_construct<char_const*>(&local_a8,"end of map not found","");
/* try { // try from 0016c25d to 0016c292 has its CatchHandler @ 0016c32c */
Exception::Exception(pEVar5,(Mark *)local_50,(string *)&local_a8);
*(int ***)pEVar5 = &PTR__BadInsert_00309500;
/* WARNING: Subroutine does not return */
__cxa_throw(pEVar5,&ParserException::typeinfo,BadInsert::~BadInsert);
}
puVar3 = (int4 *)Scanner::peek(*(Scanner **)(this + 8));
local_a8._0_4_ = *puVar3;
local_a8._4_4_ = puVar3[1];
uStack_a0 = puVar3[2];
uStack_9c = puVar3[3];
local_98[0] = puVar3[4];
local_90[0] = local_80;
std::__cxx11::string::_M_construct<char*>
(local_90,*(long *)(puVar3 + 6),*(long *)(puVar3 + 8) + *(long *)(puVar3 + 6));
/* try { // try from 0016c13b to 0016c142 has its CatchHandler @ 0016c35b */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector
(local_70,(vector *)(puVar3 + 0xe));
local_58 = puVar3[0x14];
if (local_a8._4_4_ == 6) {
Scanner::pop(*(Scanner **)(this + 8));
bVar1 = false;
}
else {
if (local_a8._4_4_ == 0xe) {
Scanner::pop(*(Scanner **)(this + 8));
HandleNode(this,param_1);
}
else {
if (local_a8._4_4_ != 0xf) {
pEVar5 = (Exception *)__cxa_allocate_exception(0x40);
local_50._0_8_ = local_40;
/* try { // try from 0016c2ab to 0016c2c2 has its CatchHandler @ 0016c31f */
std::__cxx11::string::_M_construct<char_const*>(local_50,"end of map not found","");
/* try { // try from 0016c2c6 to 0016c2fd has its CatchHandler @ 0016c2fe */
Exception::Exception(pEVar5,(Mark *)&uStack_a0,(string *)local_50);
*(int ***)pEVar5 = &PTR__BadInsert_00309500;
/* WARNING: Subroutine does not return */
__cxa_throw(pEVar5,&ParserException::typeinfo,BadInsert::~BadInsert);
}
/* try { // try from 0016c164 to 0016c1d9 has its CatchHandler @ 0016c377 */
(**(code **)(*(long *)param_1 + 0x20))(param_1,&uStack_a0,0);
}
cVar2 = Scanner::empty(*(Scanner **)(this + 8));
if (cVar2 == '\0') {
lVar4 = Scanner::peek(*(Scanner **)(this + 8));
if (*(int *)(lVar4 + 4) == 0xf) {
Scanner::pop(*(Scanner **)(this + 8));
bVar1 = true;
HandleNode(this,param_1);
goto LAB_0016c1dc;
}
}
bVar1 = true;
(**(code **)(*(long *)param_1 + 0x20))(param_1,&uStack_a0,0);
}
LAB_0016c1dc:
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_70);
if (local_90[0] != local_80) {
operator_delete(local_90[0],local_80[0] + 1);
}
if (!bVar1) {
std::deque<YAML::CollectionType::value,std::allocator<YAML::CollectionType::value>>::pop_back
(*(deque<YAML::CollectionType::value,std::allocator<YAML::CollectionType::value>> **
)(this + 0x18));
return;
}
} while( true );
}
|
|
57,460
|
js_create_iterator_helper
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_create_iterator_helper(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int magic)
{
JSValue func, obj, method;
int64_t count;
JSIteratorHelperData *it;
if (check_iterator(ctx, this_val) < 0)
return JS_EXCEPTION;
func = JS_UNDEFINED;
count = 0;
switch(magic) {
case JS_ITERATOR_HELPER_KIND_DROP:
case JS_ITERATOR_HELPER_KIND_TAKE:
{
JSValue v;
double dlimit;
v = JS_ToNumber(ctx, argv[0]);
if (JS_IsException(v))
return JS_EXCEPTION;
// Check for Infinity.
if (JS_ToFloat64(ctx, &dlimit, v)) {
JS_FreeValue(ctx, v);
return JS_EXCEPTION;
}
if (isnan(dlimit)) {
JS_FreeValue(ctx, v);
goto fail;
}
if (!isfinite(dlimit)) {
JS_FreeValue(ctx, v);
if (dlimit < 0)
goto fail;
else
count = MAX_SAFE_INTEGER;
} else {
v = JS_ToIntegerFree(ctx, v);
if (JS_IsException(v))
return JS_EXCEPTION;
if (JS_ToInt64Free(ctx, &count, v))
return JS_EXCEPTION;
}
if (count < 0) {
fail:
return JS_ThrowRangeError(ctx, "must be positive");
}
}
break;
case JS_ITERATOR_HELPER_KIND_FILTER:
case JS_ITERATOR_HELPER_KIND_FLAT_MAP:
case JS_ITERATOR_HELPER_KIND_MAP:
{
func = argv[0];
if (check_function(ctx, func))
return JS_EXCEPTION;
}
break;
default:
abort();
break;
}
method = JS_GetProperty(ctx, this_val, JS_ATOM_next);
if (JS_IsException(method))
return JS_EXCEPTION;
obj = JS_NewObjectClass(ctx, JS_CLASS_ITERATOR_HELPER);
if (JS_IsException(obj)) {
JS_FreeValue(ctx, method);
return JS_EXCEPTION;
}
it = js_malloc(ctx, sizeof(*it));
if (!it) {
JS_FreeValue(ctx, obj);
JS_FreeValue(ctx, method);
return JS_EXCEPTION;
}
it->kind = magic;
it->obj = js_dup(this_val);
it->func = js_dup(func);
it->next = method;
it->inner = JS_UNDEFINED;
it->count = count;
it->executing = 0;
it->done = 0;
JS_SetOpaqueInternal(obj, it);
return obj;
}
|
O0
|
c
|
js_create_iterator_helper:
subq $0x138, %rsp # imm = 0x138
movq %rsi, 0x118(%rsp)
movq %rdx, 0x120(%rsp)
movq %rdi, 0x110(%rsp)
movl %ecx, 0x10c(%rsp)
movq %r8, 0x100(%rsp)
movl %r9d, 0xfc(%rsp)
movq 0x110(%rsp), %rdi
movq 0x118(%rsp), %rsi
movq 0x120(%rsp), %rdx
callq 0xc41f0
cmpl $0x0, %eax
jge 0xc1ef4
movl $0x0, 0x128(%rsp)
movq $0x6, 0x130(%rsp)
jmp 0xc255c
movl $0x0, 0xa0(%rsp)
movq $0x3, 0xa8(%rsp)
movups 0xa0(%rsp), %xmm0
movaps %xmm0, 0xe0(%rsp)
movq $0x0, 0xb8(%rsp)
movl 0xfc(%rsp), %eax
movl %eax, 0x14(%rsp)
testl %eax, %eax
je 0xc1f74
jmp 0xc1f38
movl 0x14(%rsp), %eax
subl $0x2, %eax
je 0xc21fa
jmp 0xc1f47
movl 0x14(%rsp), %eax
subl $0x4, %eax
je 0xc21fa
jmp 0xc1f56
movl 0x14(%rsp), %eax
subl $0x6, %eax
je 0xc21fa
jmp 0xc1f65
movl 0x14(%rsp), %eax
subl $0x8, %eax
jne 0xc2259
jmp 0xc1f74
movq 0x110(%rsp), %rdi
movq 0x100(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x605a0
movq %rax, 0x78(%rsp)
movq %rdx, 0x80(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rsi
callq 0x22a00
cmpl $0x0, %eax
je 0xc1ff0
movl $0x0, 0x128(%rsp)
movq $0x6, 0x130(%rsp)
jmp 0xc255c
movq 0x110(%rsp), %rdi
movq 0x90(%rsp), %rdx
movq 0x98(%rsp), %rcx
leaq 0x88(%rsp), %rsi
callq 0x372c0
cmpl $0x0, %eax
je 0xc2053
movq 0x110(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
callq 0x229d0
movl $0x0, 0x128(%rsp)
movq $0x6, 0x130(%rsp)
jmp 0xc255c
movsd 0x88(%rsp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0xc2069
jmp 0xc208b
movq 0x110(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
callq 0x229d0
jmp 0xc21cd
movsd 0x88(%rsp), %xmm0
movq %xmm0, %rax
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
andq %rcx, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
subq %rcx, %rax
setl %al
testb $0x1, %al
jne 0xc2101
movq 0x110(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
callq 0x229d0
xorps %xmm0, %xmm0
ucomisd 0x88(%rsp), %xmm0
jbe 0xc20ea
jmp 0xc21cd
movabsq $0x1fffffffffffff, %rax # imm = 0x1FFFFFFFFFFFFF
movq %rax, 0xb8(%rsp)
jmp 0xc21c0
movq 0x110(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
callq 0xc4250
movq %rax, 0x68(%rsp)
movq %rdx, 0x70(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rsi
callq 0x22a00
cmpl $0x0, %eax
je 0xc2178
movl $0x0, 0x128(%rsp)
movq $0x6, 0x130(%rsp)
jmp 0xc255c
movq 0x110(%rsp), %rdi
movq 0x90(%rsp), %rdx
movq 0x98(%rsp), %rcx
leaq 0xb8(%rsp), %rsi
callq 0x379a0
cmpl $0x0, %eax
je 0xc21be
movl $0x0, 0x128(%rsp)
movq $0x6, 0x130(%rsp)
jmp 0xc255c
jmp 0xc21c0
cmpq $0x0, 0xb8(%rsp)
jge 0xc21f8
jmp 0xc21cd
movq 0x110(%rsp), %rdi
leaq 0x4d32b(%rip), %rsi # 0x10f507
movb $0x0, %al
callq 0x283b0
movq %rax, 0x128(%rsp)
movq %rdx, 0x130(%rsp)
jmp 0xc255c
jmp 0xc225e
movq 0x100(%rsp), %rax
movq (%rax), %rcx
movq %rcx, 0xe0(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0xe8(%rsp)
movq 0x110(%rsp), %rdi
movq 0xe0(%rsp), %rsi
movq 0xe8(%rsp), %rdx
callq 0x6c7c0
cmpl $0x0, %eax
je 0xc2257
movl $0x0, 0x128(%rsp)
movq $0x6, 0x130(%rsp)
jmp 0xc255c
jmp 0xc225e
callq 0xe090
movq 0x110(%rsp), %rdi
movq 0x118(%rsp), %rsi
movq 0x120(%rsp), %rdx
movl $0x6b, %ecx
callq 0x28ac0
movq %rax, 0x58(%rsp)
movq %rdx, 0x60(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq 0xc0(%rsp), %rdi
movq 0xc8(%rsp), %rsi
callq 0x22a00
cmpl $0x0, %eax
je 0xc22da
movl $0x0, 0x128(%rsp)
movq $0x6, 0x130(%rsp)
jmp 0xc255c
movq 0x110(%rsp), %rdi
movl $0x28, %esi
callq 0x291c0
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq 0xd0(%rsp), %rdi
movq 0xd8(%rsp), %rsi
callq 0x22a00
cmpl $0x0, %eax
je 0xc2363
movq 0x110(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movq 0xc8(%rsp), %rdx
callq 0x229d0
movl $0x0, 0x128(%rsp)
movq $0x6, 0x130(%rsp)
jmp 0xc255c
movq 0x110(%rsp), %rdi
movl $0x50, %esi
callq 0x209f0
movq %rax, 0xb0(%rsp)
cmpq $0x0, 0xb0(%rsp)
jne 0xc23de
movq 0x110(%rsp), %rdi
movq 0xd0(%rsp), %rsi
movq 0xd8(%rsp), %rdx
callq 0x229d0
movq 0x110(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movq 0xc8(%rsp), %rdx
callq 0x229d0
movl $0x0, 0x128(%rsp)
movq $0x6, 0x130(%rsp)
jmp 0xc255c
movl 0xfc(%rsp), %ecx
movq 0xb0(%rsp), %rax
movw %cx, %dx
movw 0x48(%rax), %cx
andw $0xff, %dx
andw $0xff00, %cx # imm = 0xFF00
orw %dx, %cx
movw %cx, 0x48(%rax)
movq 0xb0(%rsp), %rax
movq %rax, (%rsp)
movq 0x118(%rsp), %rdi
movq 0x120(%rsp), %rsi
callq 0x20410
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x38(%rsp)
movq %rdx, 0x40(%rsp)
movq 0x38(%rsp), %rcx
movq %rcx, (%rax)
movq 0x40(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq 0xb0(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0xe0(%rsp), %rdi
movq 0xe8(%rsp), %rsi
callq 0x20410
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq 0x28(%rsp), %rcx
movq %rcx, 0x20(%rax)
movq 0x30(%rsp), %rcx
movq %rcx, 0x28(%rax)
movq 0xb0(%rsp), %rax
movq 0xc0(%rsp), %rcx
movq %rcx, 0x10(%rax)
movq 0xc8(%rsp), %rcx
movq %rcx, 0x18(%rax)
movq 0xb0(%rsp), %rax
movl $0x0, 0x18(%rsp)
movq $0x3, 0x20(%rsp)
movq 0x18(%rsp), %rcx
movq %rcx, 0x30(%rax)
movq 0x20(%rsp), %rcx
movq %rcx, 0x38(%rax)
movq 0xb8(%rsp), %rcx
movq 0xb0(%rsp), %rax
movq %rcx, 0x40(%rax)
movq 0xb0(%rsp), %rax
movw 0x48(%rax), %cx
andw $0xfeff, %cx # imm = 0xFEFF
orw $0x0, %cx
movw %cx, 0x48(%rax)
movq 0xb0(%rsp), %rax
movw 0x48(%rax), %cx
andw $0xfdff, %cx # imm = 0xFDFF
orw $0x0, %cx
movw %cx, 0x48(%rax)
movq 0xb0(%rsp), %rdx
movq 0xd0(%rsp), %rdi
movq 0xd8(%rsp), %rsi
callq 0x296e0
movq 0xd0(%rsp), %rax
movq %rax, 0x128(%rsp)
movq 0xd8(%rsp), %rax
movq %rax, 0x130(%rsp)
movq 0x128(%rsp), %rax
movq 0x130(%rsp), %rdx
addq $0x138, %rsp # imm = 0x138
retq
nopw %cs:(%rax,%rax)
|
js_create_iterator_helper:
sub rsp, 138h
mov [rsp+138h+var_20], rsi
mov [rsp+138h+var_18], rdx
mov [rsp+138h+var_28], rdi
mov [rsp+138h+var_2C], ecx
mov [rsp+138h+var_38], r8
mov [rsp+138h+var_3C], r9d
mov rdi, [rsp+138h+var_28]
mov rsi, [rsp+138h+var_20]
mov rdx, [rsp+138h+var_18]
call check_iterator
cmp eax, 0
jge short loc_C1EF4
mov dword ptr [rsp+138h+var_10], 0
mov [rsp+138h+var_8], 6
jmp loc_C255C
loc_C1EF4:
mov dword ptr [rsp+138h+var_98], 0
mov qword ptr [rsp+138h+var_98+8], 3
movups xmm0, [rsp+138h+var_98]
movaps [rsp+138h+var_58], xmm0
mov [rsp+138h+var_80], 0
mov eax, [rsp+138h+var_3C]
mov [rsp+138h+var_124], eax
test eax, eax
jz short loc_C1F74
jmp short $+2
loc_C1F38:
mov eax, [rsp+138h+var_124]
sub eax, 2
jz loc_C21FA
jmp short $+2
loc_C1F47:
mov eax, [rsp+138h+var_124]
sub eax, 4
jz loc_C21FA
jmp short $+2
loc_C1F56:
mov eax, [rsp+138h+var_124]
sub eax, 6
jz loc_C21FA
jmp short $+2
loc_C1F65:
mov eax, [rsp+138h+var_124]
sub eax, 8
jnz loc_C2259
jmp short $+2
loc_C1F74:
mov rdi, [rsp+138h+var_28]
mov rax, [rsp+138h+var_38]
mov rsi, [rax]
mov rdx, [rax+8]
call JS_ToNumber
mov [rsp+138h+var_C0], rax
mov [rsp+138h+var_B8], rdx
mov rax, [rsp+138h+var_C0]
mov [rsp+138h+var_A8], rax
mov rax, [rsp+138h+var_B8]
mov [rsp+138h+var_A0], rax
mov rdi, [rsp+138h+var_A8]
mov rsi, [rsp+138h+var_A0]
call JS_IsException_1
cmp eax, 0
jz short loc_C1FF0
mov dword ptr [rsp+138h+var_10], 0
mov [rsp+138h+var_8], 6
jmp loc_C255C
loc_C1FF0:
mov rdi, [rsp+138h+var_28]
mov rdx, [rsp+138h+var_A8]
mov rcx, [rsp+138h+var_A0]
lea rsi, [rsp+138h+var_B0]
call JS_ToFloat64
cmp eax, 0
jz short loc_C2053
mov rdi, [rsp+138h+var_28]
mov rsi, [rsp+138h+var_A8]
mov rdx, [rsp+138h+var_A0]
call JS_FreeValue
mov dword ptr [rsp+138h+var_10], 0
mov [rsp+138h+var_8], 6
jmp loc_C255C
loc_C2053:
movsd xmm0, [rsp+138h+var_B0]
ucomisd xmm0, xmm0
setp al
test al, 1
jnz short loc_C2069
jmp short loc_C208B
loc_C2069:
mov rdi, [rsp+138h+var_28]
mov rsi, [rsp+138h+var_A8]
mov rdx, [rsp+138h+var_A0]
call JS_FreeValue
jmp loc_C21CD
loc_C208B:
movsd xmm0, [rsp+138h+var_B0]
movq rax, xmm0
mov rcx, 7FFFFFFFFFFFFFFFh
and rax, rcx
mov rcx, 7FF0000000000000h
sub rax, rcx
setl al
test al, 1
jnz short loc_C2101
mov rdi, [rsp+138h+var_28]
mov rsi, [rsp+138h+var_A8]
mov rdx, [rsp+138h+var_A0]
call JS_FreeValue
xorps xmm0, xmm0
ucomisd xmm0, [rsp+138h+var_B0]
jbe short loc_C20EA
jmp loc_C21CD
loc_C20EA:
mov rax, 1FFFFFFFFFFFFFh
mov [rsp+138h+var_80], rax
jmp loc_C21C0
loc_C2101:
mov rdi, [rsp+138h+var_28]
mov rsi, [rsp+138h+var_A8]
mov rdx, [rsp+138h+var_A0]
call JS_ToIntegerFree
mov [rsp+138h+var_D0], rax
mov [rsp+138h+var_C8], rdx
mov rax, [rsp+138h+var_D0]
mov [rsp+138h+var_A8], rax
mov rax, [rsp+138h+var_C8]
mov [rsp+138h+var_A0], rax
mov rdi, [rsp+138h+var_A8]
mov rsi, [rsp+138h+var_A0]
call JS_IsException_1
cmp eax, 0
jz short loc_C2178
mov dword ptr [rsp+138h+var_10], 0
mov [rsp+138h+var_8], 6
jmp loc_C255C
loc_C2178:
mov rdi, [rsp+138h+var_28]
mov rdx, [rsp+138h+var_A8]
mov rcx, [rsp+138h+var_A0]
lea rsi, [rsp+138h+var_80]
call JS_ToInt64Free
cmp eax, 0
jz short loc_C21BE
mov dword ptr [rsp+138h+var_10], 0
mov [rsp+138h+var_8], 6
jmp loc_C255C
loc_C21BE:
jmp short $+2
loc_C21C0:
cmp [rsp+138h+var_80], 0
jge short loc_C21F8
jmp short $+2
loc_C21CD:
mov rdi, [rsp+138h+var_28]
lea rsi, aMustBePositive; "must be positive"
mov al, 0
call JS_ThrowRangeError
mov [rsp+138h+var_10], rax
mov [rsp+138h+var_8], rdx
jmp loc_C255C
loc_C21F8:
jmp short loc_C225E
loc_C21FA:
mov rax, [rsp+138h+var_38]
mov rcx, [rax]
mov qword ptr [rsp+138h+var_58], rcx
mov rax, [rax+8]
mov qword ptr [rsp+138h+var_58+8], rax
mov rdi, [rsp+138h+var_28]
mov rsi, qword ptr [rsp+138h+var_58]
mov rdx, qword ptr [rsp+138h+var_58+8]
call check_function
cmp eax, 0
jz short loc_C2257
mov dword ptr [rsp+138h+var_10], 0
mov [rsp+138h+var_8], 6
jmp loc_C255C
loc_C2257:
jmp short loc_C225E
loc_C2259:
call _abort
loc_C225E:
mov rdi, [rsp+138h+var_28]
mov rsi, [rsp+138h+var_20]
mov rdx, [rsp+138h+var_18]
mov ecx, 6Bh ; 'k'
call JS_GetProperty
mov [rsp+138h+var_E0], rax
mov [rsp+138h+var_D8], rdx
mov rax, [rsp+138h+var_E0]
mov [rsp+138h+var_78], rax
mov rax, [rsp+138h+var_D8]
mov [rsp+138h+var_70], rax
mov rdi, [rsp+138h+var_78]
mov rsi, [rsp+138h+var_70]
call JS_IsException_1
cmp eax, 0
jz short loc_C22DA
mov dword ptr [rsp+138h+var_10], 0
mov [rsp+138h+var_8], 6
jmp loc_C255C
loc_C22DA:
mov rdi, [rsp+138h+var_28]
mov esi, 28h ; '('
call JS_NewObjectClass
mov [rsp+138h+var_F0], rax
mov [rsp+138h+var_E8], rdx
mov rax, [rsp+138h+var_F0]
mov [rsp+138h+var_68], rax
mov rax, [rsp+138h+var_E8]
mov [rsp+138h+var_60], rax
mov rdi, [rsp+138h+var_68]
mov rsi, [rsp+138h+var_60]
call JS_IsException_1
cmp eax, 0
jz short loc_C2363
mov rdi, [rsp+138h+var_28]
mov rsi, [rsp+138h+var_78]
mov rdx, [rsp+138h+var_70]
call JS_FreeValue
mov dword ptr [rsp+138h+var_10], 0
mov [rsp+138h+var_8], 6
jmp loc_C255C
loc_C2363:
mov rdi, [rsp+138h+var_28]
mov esi, 50h ; 'P'
call js_malloc
mov [rsp+138h+var_88], rax
cmp [rsp+138h+var_88], 0
jnz short loc_C23DE
mov rdi, [rsp+138h+var_28]
mov rsi, [rsp+138h+var_68]
mov rdx, [rsp+138h+var_60]
call JS_FreeValue
mov rdi, [rsp+138h+var_28]
mov rsi, [rsp+138h+var_78]
mov rdx, [rsp+138h+var_70]
call JS_FreeValue
mov dword ptr [rsp+138h+var_10], 0
mov [rsp+138h+var_8], 6
jmp loc_C255C
loc_C23DE:
mov ecx, [rsp+138h+var_3C]
mov rax, [rsp+138h+var_88]
mov dx, cx
mov cx, [rax+48h]
and dx, 0FFh
and cx, 0FF00h
or cx, dx
mov [rax+48h], cx
mov rax, [rsp+138h+var_88]
mov [rsp+138h+var_138], rax
mov rdi, [rsp+138h+var_20]
mov rsi, [rsp+138h+var_18]
call js_dup
mov rcx, rax
mov rax, [rsp+138h+var_138]
mov [rsp+138h+var_100], rcx
mov [rsp+138h+var_F8], rdx
mov rcx, [rsp+138h+var_100]
mov [rax], rcx
mov rcx, [rsp+138h+var_F8]
mov [rax+8], rcx
mov rax, [rsp+138h+var_88]
mov [rsp+138h+var_130], rax
mov rdi, qword ptr [rsp+138h+var_58]
mov rsi, qword ptr [rsp+138h+var_58+8]
call js_dup
mov rcx, rax
mov rax, [rsp+138h+var_130]
mov [rsp+138h+var_110], rcx
mov [rsp+138h+var_108], rdx
mov rcx, [rsp+138h+var_110]
mov [rax+20h], rcx
mov rcx, [rsp+138h+var_108]
mov [rax+28h], rcx
mov rax, [rsp+138h+var_88]
mov rcx, [rsp+138h+var_78]
mov [rax+10h], rcx
mov rcx, [rsp+138h+var_70]
mov [rax+18h], rcx
mov rax, [rsp+138h+var_88]
mov dword ptr [rsp+138h+var_120], 0
mov [rsp+138h+var_118], 3
mov rcx, [rsp+138h+var_120]
mov [rax+30h], rcx
mov rcx, [rsp+138h+var_118]
mov [rax+38h], rcx
mov rcx, [rsp+138h+var_80]
mov rax, [rsp+138h+var_88]
mov [rax+40h], rcx
mov rax, [rsp+138h+var_88]
mov cx, [rax+48h]
and cx, 0FEFFh
or cx, 0
mov [rax+48h], cx
mov rax, [rsp+138h+var_88]
mov cx, [rax+48h]
and cx, 0FDFFh
or cx, 0
mov [rax+48h], cx
mov rdx, [rsp+138h+var_88]
mov rdi, [rsp+138h+var_68]
mov rsi, [rsp+138h+var_60]
call JS_SetOpaqueInternal
mov rax, [rsp+138h+var_68]
mov [rsp+138h+var_10], rax
mov rax, [rsp+138h+var_60]
mov [rsp+138h+var_8], rax
loc_C255C:
mov rax, [rsp+138h+var_10]
mov rdx, [rsp+138h+var_8]
add rsp, 138h
retn
|
long long js_create_iterator_helper(
const char *a1,
_DWORD *a2,
long long a3,
int a4,
__m128 *a5,
int a6,
double a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14)
{
double v14; // xmm4_8
double v15; // xmm5_8
long long v16; // rdx
__m128 v17; // xmm0
long long v18; // rdx
long long v19; // rcx
long long v20; // r8
long long v21; // r9
__m128 v22; // xmm4
__m128 v23; // xmm5
long long v24; // rdx
long long v25; // rdx
long long v26; // rdx
long long v27; // rdx
long long v28; // rdx
long long v29; // rdx
long long v30; // rax
long long v31; // rax
char v33; // [rsp+0h] [rbp-138h]
_QWORD *v34; // [rsp+0h] [rbp-138h]
long long v35; // [rsp+8h] [rbp-130h]
long long v36; // [rsp+18h] [rbp-120h]
double v37; // [rsp+88h] [rbp-B0h] BYREF
_DWORD *v38; // [rsp+90h] [rbp-A8h]
long long v39; // [rsp+98h] [rbp-A0h]
__m128 v40; // [rsp+A0h] [rbp-98h]
long long v41; // [rsp+B0h] [rbp-88h]
long long v42; // [rsp+B8h] [rbp-80h] BYREF
long long Property; // [rsp+C0h] [rbp-78h]
long long v44; // [rsp+C8h] [rbp-70h]
long long v45; // [rsp+D0h] [rbp-68h]
long long v46; // [rsp+D8h] [rbp-60h]
__m128 v47; // [rsp+E0h] [rbp-58h]
int v48; // [rsp+FCh] [rbp-3Ch]
__m128 *v49; // [rsp+100h] [rbp-38h]
int v50; // [rsp+10Ch] [rbp-2Ch]
const char *v51; // [rsp+110h] [rbp-28h]
_DWORD *v52; // [rsp+118h] [rbp-20h]
long long v53; // [rsp+120h] [rbp-18h]
long long v54; // [rsp+128h] [rbp-10h]
long long v55; // [rsp+130h] [rbp-8h]
v52 = a2;
v53 = a3;
v51 = a1;
v50 = a4;
v49 = a5;
v48 = a6;
if ( (int)check_iterator(a1, a2, a3) < 0 )
{
LODWORD(v54) = 0;
v55 = 6LL;
return v54;
}
v40.m128_i32[0] = 0;
v40.m128_u64[1] = 3LL;
v47 = v40;
v42 = 0LL;
if ( v48 )
{
if ( v48 == 2 || v48 == 4 || v48 == 6 )
{
v47 = *v49;
if ( (unsigned int)check_function(
(long long)v51,
v47.m128_i64[0],
v47.m128_i32[2],
v40,
a8,
a9,
a10,
v14,
v15,
a13,
a14) )
{
LODWORD(v54) = 0;
v55 = 6LL;
return v54;
}
goto LABEL_26;
}
if ( v48 != 8 )
abort(a1);
}
v38 = (_DWORD *)JS_ToNumber((long long)v51, v49->m128_u64[0], v49->m128_u64[1]);
v39 = v16;
if ( JS_IsException_1((long long)v38, v16) )
{
LODWORD(v54) = 0;
v55 = 6LL;
return v54;
}
if ( (unsigned int)JS_ToFloat64((long long)v51, (long long)&v37, v38, v39) )
{
JS_FreeValue((long long)v51, (long long)v38, v39);
LODWORD(v54) = 0;
v55 = 6LL;
return v54;
}
v17 = (__m128)*(unsigned long long *)&v37;
if ( (*(_QWORD *)&v37 & 0x7FFFFFFFFFFFFFFFuLL) < 0x7FF0000000000000LL )
{
v38 = (_DWORD *)JS_ToIntegerFree(v51, v38, v39);
v39 = v24;
if ( JS_IsException_1((long long)v38, v24) )
{
LODWORD(v54) = 0;
v55 = 6LL;
return v54;
}
if ( (unsigned int)JS_ToInt64Free((long long)v51, &v42, (unsigned long long)v38, v39) )
{
LODWORD(v54) = 0;
v55 = 6LL;
return v54;
}
}
else
{
JS_FreeValue((long long)v51, (long long)v38, v39);
v17 = 0LL;
if ( v37 < 0.0 )
{
LABEL_20:
v54 = JS_ThrowRangeError(
(long long)v51,
(long long)"must be positive",
v18,
v19,
v20,
v21,
v17,
a8,
a9,
a10,
v22,
v23,
a13,
a14,
v33);
v55 = v25;
return v54;
}
v42 = 0x1FFFFFFFFFFFFFLL;
}
if ( v42 < 0 )
goto LABEL_20;
LABEL_26:
Property = JS_GetProperty((int)v51, (int)v52, v53, 107);
v44 = v26;
if ( JS_IsException_1(Property, v26) )
{
LODWORD(v54) = 0;
v55 = 6LL;
}
else
{
v45 = JS_NewObjectClass((long long)v51, 40);
v46 = v27;
if ( JS_IsException_1(v45, v27) )
{
JS_FreeValue((long long)v51, Property, v44);
LODWORD(v54) = 0;
v55 = 6LL;
}
else
{
v41 = js_malloc((long long)v51, 80LL);
if ( v41 )
{
*(_WORD *)(v41 + 72) = (unsigned __int8)v48 | *(_WORD *)(v41 + 72) & 0xFF00;
v34 = (_QWORD *)v41;
*v34 = js_dup(v52, v53);
v34[1] = v28;
v35 = v41;
*(_QWORD *)(v35 + 32) = js_dup(v47.m128_u64[0], v47.m128_u32[2]);
*(_QWORD *)(v35 + 40) = v29;
v30 = v41;
*(_QWORD *)(v41 + 16) = Property;
*(_QWORD *)(v30 + 24) = v44;
v31 = v41;
LODWORD(v36) = 0;
*(_QWORD *)(v41 + 48) = v36;
*(_QWORD *)(v31 + 56) = 3LL;
*(_QWORD *)(v41 + 64) = v42;
*(_WORD *)(v41 + 72) &= ~0x100u;
*(_WORD *)(v41 + 72) &= ~0x200u;
JS_SetOpaqueInternal(v45, v46, v41);
v54 = v45;
v55 = v46;
}
else
{
JS_FreeValue((long long)v51, v45, v46);
JS_FreeValue((long long)v51, Property, v44);
LODWORD(v54) = 0;
v55 = 6LL;
}
}
}
return v54;
}
|
js_create_iterator_helper:
SUB RSP,0x138
MOV qword ptr [RSP + 0x118],RSI
MOV qword ptr [RSP + 0x120],RDX
MOV qword ptr [RSP + 0x110],RDI
MOV dword ptr [RSP + 0x10c],ECX
MOV qword ptr [RSP + 0x100],R8
MOV dword ptr [RSP + 0xfc],R9D
MOV RDI,qword ptr [RSP + 0x110]
MOV RSI,qword ptr [RSP + 0x118]
MOV RDX,qword ptr [RSP + 0x120]
CALL 0x001c41f0
CMP EAX,0x0
JGE 0x001c1ef4
MOV dword ptr [RSP + 0x128],0x0
MOV qword ptr [RSP + 0x130],0x6
JMP 0x001c255c
LAB_001c1ef4:
MOV dword ptr [RSP + 0xa0],0x0
MOV qword ptr [RSP + 0xa8],0x3
MOVUPS XMM0,xmmword ptr [RSP + 0xa0]
MOVAPS xmmword ptr [RSP + 0xe0],XMM0
MOV qword ptr [RSP + 0xb8],0x0
MOV EAX,dword ptr [RSP + 0xfc]
MOV dword ptr [RSP + 0x14],EAX
TEST EAX,EAX
JZ 0x001c1f74
JMP 0x001c1f38
LAB_001c1f38:
MOV EAX,dword ptr [RSP + 0x14]
SUB EAX,0x2
JZ 0x001c21fa
JMP 0x001c1f47
LAB_001c1f47:
MOV EAX,dword ptr [RSP + 0x14]
SUB EAX,0x4
JZ 0x001c21fa
JMP 0x001c1f56
LAB_001c1f56:
MOV EAX,dword ptr [RSP + 0x14]
SUB EAX,0x6
JZ 0x001c21fa
JMP 0x001c1f65
LAB_001c1f65:
MOV EAX,dword ptr [RSP + 0x14]
SUB EAX,0x8
JNZ 0x001c2259
JMP 0x001c1f74
LAB_001c1f74:
MOV RDI,qword ptr [RSP + 0x110]
MOV RAX,qword ptr [RSP + 0x100]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x001605a0
MOV qword ptr [RSP + 0x78],RAX
MOV qword ptr [RSP + 0x80],RDX
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x90],RAX
MOV RAX,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x98],RAX
MOV RDI,qword ptr [RSP + 0x90]
MOV RSI,qword ptr [RSP + 0x98]
CALL 0x00122a00
CMP EAX,0x0
JZ 0x001c1ff0
MOV dword ptr [RSP + 0x128],0x0
MOV qword ptr [RSP + 0x130],0x6
JMP 0x001c255c
LAB_001c1ff0:
MOV RDI,qword ptr [RSP + 0x110]
MOV RDX,qword ptr [RSP + 0x90]
MOV RCX,qword ptr [RSP + 0x98]
LEA RSI,[RSP + 0x88]
CALL 0x001372c0
CMP EAX,0x0
JZ 0x001c2053
MOV RDI,qword ptr [RSP + 0x110]
MOV RSI,qword ptr [RSP + 0x90]
MOV RDX,qword ptr [RSP + 0x98]
CALL 0x001229d0
MOV dword ptr [RSP + 0x128],0x0
MOV qword ptr [RSP + 0x130],0x6
JMP 0x001c255c
LAB_001c2053:
MOVSD XMM0,qword ptr [RSP + 0x88]
UCOMISD XMM0,XMM0
SETP AL
TEST AL,0x1
JNZ 0x001c2069
JMP 0x001c208b
LAB_001c2069:
MOV RDI,qword ptr [RSP + 0x110]
MOV RSI,qword ptr [RSP + 0x90]
MOV RDX,qword ptr [RSP + 0x98]
CALL 0x001229d0
JMP 0x001c21cd
LAB_001c208b:
MOVSD XMM0,qword ptr [RSP + 0x88]
MOVQ RAX,XMM0
MOV RCX,0x7fffffffffffffff
AND RAX,RCX
MOV RCX,0x7ff0000000000000
SUB RAX,RCX
SETL AL
TEST AL,0x1
JNZ 0x001c2101
MOV RDI,qword ptr [RSP + 0x110]
MOV RSI,qword ptr [RSP + 0x90]
MOV RDX,qword ptr [RSP + 0x98]
CALL 0x001229d0
XORPS XMM0,XMM0
UCOMISD XMM0,qword ptr [RSP + 0x88]
JBE 0x001c20ea
JMP 0x001c21cd
LAB_001c20ea:
MOV RAX,0x1fffffffffffff
MOV qword ptr [RSP + 0xb8],RAX
JMP 0x001c21c0
LAB_001c2101:
MOV RDI,qword ptr [RSP + 0x110]
MOV RSI,qword ptr [RSP + 0x90]
MOV RDX,qword ptr [RSP + 0x98]
CALL 0x001c4250
MOV qword ptr [RSP + 0x68],RAX
MOV qword ptr [RSP + 0x70],RDX
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x90],RAX
MOV RAX,qword ptr [RSP + 0x70]
MOV qword ptr [RSP + 0x98],RAX
MOV RDI,qword ptr [RSP + 0x90]
MOV RSI,qword ptr [RSP + 0x98]
CALL 0x00122a00
CMP EAX,0x0
JZ 0x001c2178
MOV dword ptr [RSP + 0x128],0x0
MOV qword ptr [RSP + 0x130],0x6
JMP 0x001c255c
LAB_001c2178:
MOV RDI,qword ptr [RSP + 0x110]
MOV RDX,qword ptr [RSP + 0x90]
MOV RCX,qword ptr [RSP + 0x98]
LEA RSI,[RSP + 0xb8]
CALL 0x001379a0
CMP EAX,0x0
JZ 0x001c21be
MOV dword ptr [RSP + 0x128],0x0
MOV qword ptr [RSP + 0x130],0x6
JMP 0x001c255c
LAB_001c21be:
JMP 0x001c21c0
LAB_001c21c0:
CMP qword ptr [RSP + 0xb8],0x0
JGE 0x001c21f8
JMP 0x001c21cd
LAB_001c21cd:
MOV RDI,qword ptr [RSP + 0x110]
LEA RSI,[0x20f507]
MOV AL,0x0
CALL 0x001283b0
MOV qword ptr [RSP + 0x128],RAX
MOV qword ptr [RSP + 0x130],RDX
JMP 0x001c255c
LAB_001c21f8:
JMP 0x001c225e
LAB_001c21fa:
MOV RAX,qword ptr [RSP + 0x100]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP + 0xe0],RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0xe8],RAX
MOV RDI,qword ptr [RSP + 0x110]
MOV RSI,qword ptr [RSP + 0xe0]
MOV RDX,qword ptr [RSP + 0xe8]
CALL 0x0016c7c0
CMP EAX,0x0
JZ 0x001c2257
MOV dword ptr [RSP + 0x128],0x0
MOV qword ptr [RSP + 0x130],0x6
JMP 0x001c255c
LAB_001c2257:
JMP 0x001c225e
LAB_001c2259:
CALL 0x0010e090
LAB_001c225e:
MOV RDI,qword ptr [RSP + 0x110]
MOV RSI,qword ptr [RSP + 0x118]
MOV RDX,qword ptr [RSP + 0x120]
MOV ECX,0x6b
CALL 0x00128ac0
MOV qword ptr [RSP + 0x58],RAX
MOV qword ptr [RSP + 0x60],RDX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0xc0],RAX
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0xc8],RAX
MOV RDI,qword ptr [RSP + 0xc0]
MOV RSI,qword ptr [RSP + 0xc8]
CALL 0x00122a00
CMP EAX,0x0
JZ 0x001c22da
MOV dword ptr [RSP + 0x128],0x0
MOV qword ptr [RSP + 0x130],0x6
JMP 0x001c255c
LAB_001c22da:
MOV RDI,qword ptr [RSP + 0x110]
MOV ESI,0x28
CALL 0x001291c0
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0xd0],RAX
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0xd8],RAX
MOV RDI,qword ptr [RSP + 0xd0]
MOV RSI,qword ptr [RSP + 0xd8]
CALL 0x00122a00
CMP EAX,0x0
JZ 0x001c2363
MOV RDI,qword ptr [RSP + 0x110]
MOV RSI,qword ptr [RSP + 0xc0]
MOV RDX,qword ptr [RSP + 0xc8]
CALL 0x001229d0
MOV dword ptr [RSP + 0x128],0x0
MOV qword ptr [RSP + 0x130],0x6
JMP 0x001c255c
LAB_001c2363:
MOV RDI,qword ptr [RSP + 0x110]
MOV ESI,0x50
CALL 0x001209f0
MOV qword ptr [RSP + 0xb0],RAX
CMP qword ptr [RSP + 0xb0],0x0
JNZ 0x001c23de
MOV RDI,qword ptr [RSP + 0x110]
MOV RSI,qword ptr [RSP + 0xd0]
MOV RDX,qword ptr [RSP + 0xd8]
CALL 0x001229d0
MOV RDI,qword ptr [RSP + 0x110]
MOV RSI,qword ptr [RSP + 0xc0]
MOV RDX,qword ptr [RSP + 0xc8]
CALL 0x001229d0
MOV dword ptr [RSP + 0x128],0x0
MOV qword ptr [RSP + 0x130],0x6
JMP 0x001c255c
LAB_001c23de:
MOV ECX,dword ptr [RSP + 0xfc]
MOV RAX,qword ptr [RSP + 0xb0]
MOV DX,CX
MOV CX,word ptr [RAX + 0x48]
AND DX,0xff
AND CX,0xff00
OR CX,DX
MOV word ptr [RAX + 0x48],CX
MOV RAX,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP],RAX
MOV RDI,qword ptr [RSP + 0x118]
MOV RSI,qword ptr [RSP + 0x120]
CALL 0x00120410
MOV RCX,RAX
MOV RAX,qword ptr [RSP]
MOV qword ptr [RSP + 0x38],RCX
MOV qword ptr [RSP + 0x40],RDX
MOV RCX,qword ptr [RSP + 0x38]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RSP + 0x40]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0xe0]
MOV RSI,qword ptr [RSP + 0xe8]
CALL 0x00120410
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x28],RCX
MOV qword ptr [RSP + 0x30],RDX
MOV RCX,qword ptr [RSP + 0x28]
MOV qword ptr [RAX + 0x20],RCX
MOV RCX,qword ptr [RSP + 0x30]
MOV qword ptr [RAX + 0x28],RCX
MOV RAX,qword ptr [RSP + 0xb0]
MOV RCX,qword ptr [RSP + 0xc0]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RSP + 0xc8]
MOV qword ptr [RAX + 0x18],RCX
MOV RAX,qword ptr [RSP + 0xb0]
MOV dword ptr [RSP + 0x18],0x0
MOV qword ptr [RSP + 0x20],0x3
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RAX + 0x30],RCX
MOV RCX,qword ptr [RSP + 0x20]
MOV qword ptr [RAX + 0x38],RCX
MOV RCX,qword ptr [RSP + 0xb8]
MOV RAX,qword ptr [RSP + 0xb0]
MOV qword ptr [RAX + 0x40],RCX
MOV RAX,qword ptr [RSP + 0xb0]
MOV CX,word ptr [RAX + 0x48]
AND CX,0xfeff
OR CX,0x0
MOV word ptr [RAX + 0x48],CX
MOV RAX,qword ptr [RSP + 0xb0]
MOV CX,word ptr [RAX + 0x48]
AND CX,0xfdff
OR CX,0x0
MOV word ptr [RAX + 0x48],CX
MOV RDX,qword ptr [RSP + 0xb0]
MOV RDI,qword ptr [RSP + 0xd0]
MOV RSI,qword ptr [RSP + 0xd8]
CALL 0x001296e0
MOV RAX,qword ptr [RSP + 0xd0]
MOV qword ptr [RSP + 0x128],RAX
MOV RAX,qword ptr [RSP + 0xd8]
MOV qword ptr [RSP + 0x130],RAX
LAB_001c255c:
MOV RAX,qword ptr [RSP + 0x128]
MOV RDX,qword ptr [RSP + 0x130]
ADD RSP,0x138
RET
|
int1 [16]
js_create_iterator_helper
(int8 param_1,int8 param_2,int8 param_3,int4 param_4,long *param_5
,int param_6)
{
int1 (*pauVar1) [16];
int iVar2;
int1 (*pauVar3) [16];
int1 auVar4 [16];
uint uStack_11c;
double local_b0;
int1 local_a8 [16];
int4 local_98;
uint uStack_94;
int8 uStack_90;
int1 (*local_88) [16];
long local_80;
int1 local_78 [16];
int1 local_68 [16];
long local_58;
long lStack_50;
int local_3c;
long *local_38;
int4 local_2c;
int8 local_28;
int8 local_20;
int8 local_18;
int4 local_10;
int4 uStack_c;
int8 local_8;
local_3c = param_6;
local_38 = param_5;
local_2c = param_4;
local_28 = param_1;
local_20 = param_2;
local_18 = param_3;
iVar2 = check_iterator(param_1,param_2,param_3);
if (iVar2 < 0) {
local_10 = 0;
local_8 = 6;
goto LAB_001c255c;
}
local_98 = 0;
uStack_90 = 3;
local_58 = (ulong)uStack_94 << 0x20;
lStack_50 = 3;
local_80 = 0;
if (local_3c == 0) {
LAB_001c1f74:
local_a8 = JS_ToNumber(local_28,*local_38,local_38[1]);
iVar2 = JS_IsException(local_a8._0_8_,local_a8._8_8_);
if (iVar2 != 0) {
local_10 = 0;
local_8 = 6;
goto LAB_001c255c;
}
iVar2 = JS_ToFloat64(local_28,&local_b0,local_a8._0_8_,local_a8._8_8_);
if (iVar2 != 0) {
JS_FreeValue(local_28,local_a8._0_8_,local_a8._8_8_);
local_10 = 0;
local_8 = 6;
goto LAB_001c255c;
}
if (NAN(local_b0)) {
JS_FreeValue(local_28,local_a8._0_8_,local_a8._8_8_);
}
else {
if ((ulong)ABS(local_b0) < 0x7ff0000000000000) {
auVar4 = JS_ToIntegerFree(local_28,local_a8._0_8_,local_a8._8_8_);
local_a8 = auVar4;
iVar2 = JS_IsException(auVar4._0_8_,auVar4._8_8_);
if (iVar2 != 0) {
local_10 = 0;
local_8 = 6;
goto LAB_001c255c;
}
iVar2 = JS_ToInt64Free(local_28,&local_80,local_a8._0_8_,local_a8._8_8_);
if (iVar2 != 0) {
local_10 = 0;
local_8 = 6;
goto LAB_001c255c;
}
}
else {
JS_FreeValue(local_28,local_a8._0_8_,local_a8._8_8_);
if (local_b0 < 0.0) goto LAB_001c21cd;
local_80 = 0x1fffffffffffff;
}
if (-1 < local_80) goto LAB_001c225e;
}
LAB_001c21cd:
auVar4 = JS_ThrowRangeError(local_28,"must be positive");
local_8 = auVar4._8_8_;
local_10 = auVar4._0_4_;
uStack_c = auVar4._4_4_;
}
else {
if (((local_3c != 2) && (local_3c != 4)) && (local_3c != 6)) {
if (local_3c != 8) {
/* WARNING: Subroutine does not return */
abort();
}
goto LAB_001c1f74;
}
local_58 = *local_38;
lStack_50 = local_38[1];
iVar2 = check_function(local_28,local_58,lStack_50);
if (iVar2 != 0) {
local_10 = 0;
local_8 = 6;
goto LAB_001c255c;
}
LAB_001c225e:
local_78 = JS_GetProperty(local_28,local_20,local_18,0x6b);
iVar2 = JS_IsException(local_78._0_8_,local_78._8_8_);
if (iVar2 == 0) {
local_68 = JS_NewObjectClass(local_28,0x28);
iVar2 = JS_IsException(local_68._0_8_,local_68._8_8_);
if (iVar2 == 0) {
pauVar3 = (int1 (*) [16])js_malloc(local_28,0x50);
local_88 = pauVar3;
if (pauVar3 == (int1 (*) [16])0x0) {
JS_FreeValue(local_28,local_68._0_8_,local_68._8_8_);
JS_FreeValue(local_28,local_78._0_8_,local_78._8_8_);
local_10 = 0;
local_8 = 6;
}
else {
*(ushort *)(pauVar3[4] + 8) =
*(ushort *)(pauVar3[4] + 8) & 0xff00 | (ushort)local_3c & 0xff;
auVar4 = js_dup(local_20,local_18);
pauVar1 = local_88;
*pauVar3 = auVar4;
auVar4 = js_dup(local_58,lStack_50);
pauVar1[2] = auVar4;
local_88[1] = local_78;
*(ulong *)local_88[3] = (ulong)uStack_11c << 0x20;
*(int8 *)(local_88[3] + 8) = 3;
*(long *)local_88[4] = local_80;
*(ushort *)(local_88[4] + 8) = *(ushort *)(local_88[4] + 8) & 0xfeff;
*(ushort *)(local_88[4] + 8) = *(ushort *)(local_88[4] + 8) & 0xfdff;
JS_SetOpaqueInternal(local_68._0_8_,local_68._8_8_,local_88);
local_10 = local_68._0_4_;
uStack_c = local_68._4_4_;
local_8 = local_68._8_8_;
}
}
else {
JS_FreeValue(local_28,local_78._0_8_,local_78._8_8_);
local_10 = 0;
local_8 = 6;
}
}
else {
local_10 = 0;
local_8 = 6;
}
}
LAB_001c255c:
auVar4._4_4_ = uStack_c;
auVar4._0_4_ = local_10;
auVar4._8_8_ = local_8;
return auVar4;
}
|
|
57,461
|
js_create_iterator_helper
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_create_iterator_helper(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int magic)
{
JSValue func, obj, method;
int64_t count;
JSIteratorHelperData *it;
if (check_iterator(ctx, this_val) < 0)
return JS_EXCEPTION;
func = JS_UNDEFINED;
count = 0;
switch(magic) {
case JS_ITERATOR_HELPER_KIND_DROP:
case JS_ITERATOR_HELPER_KIND_TAKE:
{
JSValue v;
double dlimit;
v = JS_ToNumber(ctx, argv[0]);
if (JS_IsException(v))
return JS_EXCEPTION;
// Check for Infinity.
if (JS_ToFloat64(ctx, &dlimit, v)) {
JS_FreeValue(ctx, v);
return JS_EXCEPTION;
}
if (isnan(dlimit)) {
JS_FreeValue(ctx, v);
goto fail;
}
if (!isfinite(dlimit)) {
JS_FreeValue(ctx, v);
if (dlimit < 0)
goto fail;
else
count = MAX_SAFE_INTEGER;
} else {
v = JS_ToIntegerFree(ctx, v);
if (JS_IsException(v))
return JS_EXCEPTION;
if (JS_ToInt64Free(ctx, &count, v))
return JS_EXCEPTION;
}
if (count < 0) {
fail:
return JS_ThrowRangeError(ctx, "must be positive");
}
}
break;
case JS_ITERATOR_HELPER_KIND_FILTER:
case JS_ITERATOR_HELPER_KIND_FLAT_MAP:
case JS_ITERATOR_HELPER_KIND_MAP:
{
func = argv[0];
if (check_function(ctx, func))
return JS_EXCEPTION;
}
break;
default:
abort();
break;
}
method = JS_GetProperty(ctx, this_val, JS_ATOM_next);
if (JS_IsException(method))
return JS_EXCEPTION;
obj = JS_NewObjectClass(ctx, JS_CLASS_ITERATOR_HELPER);
if (JS_IsException(obj)) {
JS_FreeValue(ctx, method);
return JS_EXCEPTION;
}
it = js_malloc(ctx, sizeof(*it));
if (!it) {
JS_FreeValue(ctx, obj);
JS_FreeValue(ctx, method);
return JS_EXCEPTION;
}
it->kind = magic;
it->obj = js_dup(this_val);
it->func = js_dup(func);
it->next = method;
it->inner = JS_UNDEFINED;
it->count = count;
it->executing = 0;
it->done = 0;
JS_SetOpaqueInternal(obj, it);
return obj;
}
|
O3
|
c
|
js_create_iterator_helper:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r14
cmpl $-0x1, %r14d
jne 0x73a73
movl %r9d, %ebp
movq $0x0, 0x28(%rsp)
cmpl $0x8, %r9d
ja 0x73d0d
movq %rsi, %r13
movl $0x54, %eax
btl %ebp, %eax
jae 0x73a8f
movq %r14, 0x8(%rsp)
movl %ebp, (%rsp)
movq %r13, %r15
movq (%r8), %r14
movq 0x8(%r8), %rbx
movq %r14, %rsi
movq %rbx, %rdx
movq %rdi, %rbp
callq 0x42327
movl $0x6, %r13d
xorl %r12d, %r12d
testl %eax, %eax
jne 0x73bd1
movq %rbx, 0x20(%rsp)
movabsq $-0x100000000, %rbx # imm = 0xFFFFFFFF00000000
andq %r14, %rbx
movq %r15, %r13
movq %rbp, %r9
movl (%rsp), %ebp
movq %r9, %rdi
movq %r13, %rsi
movq 0x8(%rsp), %rdx
movl $0x6b, %ecx
movq %r13, %r8
movq %r9, %r15
movq %rdx, %r9
pushq $0x0
pushq $0x0
callq 0x22c0f
addq $0x10, %rsp
cmpl $0x6, %edx
je 0x73a63
movq %rbx, 0x30(%rsp)
movq %rdx, (%rsp)
movq %rax, 0x10(%rsp)
movq %r13, 0x38(%rsp)
movq 0x40(%r15), %rax
movq 0x280(%rax), %rsi
movq 0x288(%rax), %rdx
movq %r15, %rbx
movq %r15, %rdi
movl $0x28, %ecx
callq 0x20a15
movq %rdx, %r13
cmpl $0x6, %r13d
jne 0x73c0e
movq (%rsp), %rdx
cmpl $-0x9, %edx
jb 0x73a63
movq 0x18(%rbx), %rdi
movq 0x10(%rsp), %rsi
movl (%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%rsi)
cmpl $0x1, %eax
jg 0x73a63
callq 0x20d90
xorl %r12d, %r12d
xorl %eax, %eax
movl $0x6, %r13d
jmp 0x73bd3
leaq 0x2ce73(%rip), %rsi # 0xa08ed
xorl %r12d, %r12d
xorl %eax, %eax
callq 0x2214f
movl $0x6, %r13d
jmp 0x73bd1
movl $0x101, %eax # imm = 0x101
btl %ebp, %eax
jae 0x73d0d
movq (%r8), %rsi
movq 0x8(%r8), %rdx
cmpl $-0x9, %edx
jb 0x73aab
incl (%rsi)
xorl %ecx, %ecx
movq %rdi, %rbx
callq 0x43a59
movq %rdx, %r15
cmpl $0x6, %r15d
je 0x73bc8
movq %rax, %r12
leaq 0x40(%rsp), %rsi
movq %rbx, 0x8(%rsp)
movq %rbx, %rdi
movq %rax, %rdx
movq %r15, %rcx
callq 0x2712e
testl %eax, %eax
je 0x73b18
cmpl $-0x9, %r15d
movq 0x8(%rsp), %rax
jb 0x73bc8
movq 0x18(%rax), %rdi
movl (%r12), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%r12)
cmpl $0x1, %eax
jg 0x73bc8
movq %r12, %rsi
movq %r15, %rdx
callq 0x20d90
jmp 0x73bc8
movsd 0x40(%rsp), %xmm1
ucomisd %xmm1, %xmm1
jp 0x73d12
movq %xmm1, %rax
btrq $0x3f, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
cmpq %rcx, %rax
movq 0x8(%rsp), %r9
jl 0x73b97
cmpl $-0x9, %r15d
jb 0x73b7a
movq 0x18(%r9), %rdi
movl (%r12), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%r12)
cmpl $0x1, %eax
jg 0x73b7a
movq %r12, %rsi
movq %r15, %rdx
movsd %xmm1, (%rsp)
callq 0x20d90
movsd (%rsp), %xmm1
movq 0x8(%rsp), %r9
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x73beb
leaq 0x2f923(%rip), %rsi # 0xa34ae
movq %r9, %rdi
xorl %eax, %eax
callq 0x205f0
jmp 0x73bc8
movq %r9, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r9, %rbx
callq 0x74dda
movq %rdx, %rcx
cmpl $0x6, %ecx
je 0x73bc8
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x2732a
testl %eax, %eax
je 0x73cb1
movl $0x6, %r13d
xorl %r12d, %r12d
xorl %eax, %eax
orq %rax, %r12
movq %r12, %rax
movq %r13, %rdx
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movabsq $0x1fffffffffffff, %r12 # imm = 0x1FFFFFFFFFFFFF
movq %r14, 0x8(%rsp)
movl $0x3, %eax
movq %rax, 0x20(%rsp)
xorl %r14d, %r14d
xorl %ebx, %ebx
jmp 0x739d3
movq %rax, 0x18(%rsp)
movl $0x50, %esi
movq %rbx, %rdi
callq 0xed89
testq %rax, %rax
je 0x73cc7
movzbl 0x49(%rax), %ecx
shll $0x8, %ecx
orl %ebp, %ecx
movw %cx, 0x48(%rax)
movq 0x38(%rsp), %rcx
incl (%rcx)
movq %rcx, (%rax)
movq 0x8(%rsp), %rcx
movq %rcx, 0x8(%rax)
movl %r14d, %ecx
movq 0x30(%rsp), %rdx
orq %rcx, %rdx
movq 0x20(%rsp), %rbx
cmpl $-0x9, %ebx
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rsi
jb 0x73c6a
incl (%rdx)
movq %rdx, 0x20(%rax)
movq %rbx, 0x28(%rax)
movq %rcx, 0x10(%rax)
movq (%rsp), %rcx
movq %rcx, 0x18(%rax)
movl $0x0, 0x30(%rax)
movq $0x3, 0x38(%rax)
movq %r12, 0x40(%rax)
andb $-0x4, 0x49(%rax)
movq %rax, 0x30(%rsi)
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
movq %rsi, %rax
andq %rcx, %rax
movl %esi, %r12d
jmp 0x73bd3
movq 0x28(%rsp), %r12
testq %r12, %r12
movq %rbx, %r9
jns 0x73bf5
jmp 0x73b84
movq 0x18(%rbx), %rdi
cmpl $-0x9, %r13d
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
jb 0x73cfb
movl (%rdx), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%rdx)
cmpl $0x1, %eax
jg 0x73cfb
movq %rdx, %rsi
movq %r13, %rdx
callq 0x20d90
movq 0x10(%rsp), %rsi
movq 0x18(%rbx), %rdi
movq (%rsp), %rdx
cmpl $-0x9, %edx
jae 0x73a52
jmp 0x73a63
callq 0xe090
cmpl $-0x9, %r15d
movq 0x8(%rsp), %r9
jb 0x73b84
movq 0x18(%r9), %rdi
movl (%r12), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%r12)
cmpl $0x1, %eax
jg 0x73b84
movq %r12, %rsi
movq %r15, %rdx
callq 0x20d90
movq 0x8(%rsp), %r9
jmp 0x73b84
|
js_create_iterator_helper:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r14, rdx
cmp r14d, 0FFFFFFFFh
jnz loc_73A73
mov ebp, r9d
mov [rsp+78h+var_50], 0
cmp r9d, 8
ja loc_73D0D
mov r13, rsi
mov eax, 54h ; 'T'
bt eax, ebp
jnb loc_73A8F
mov [rsp+78h+var_70], r14
mov dword ptr [rsp+78h+var_78], ebp
mov r15, r13
mov r14, [r8]
mov rbx, [r8+8]
mov rsi, r14
mov rdx, rbx
mov rbp, rdi
call check_function
mov r13d, 6
xor r12d, r12d
test eax, eax
jnz loc_73BD1
mov [rsp+78h+var_58], rbx
mov rbx, 0FFFFFFFF00000000h
and rbx, r14
mov r13, r15
mov r9, rbp
mov ebp, dword ptr [rsp+78h+var_78]
loc_739D3:
mov rdi, r9
mov rsi, r13
mov rdx, [rsp+78h+var_70]
mov ecx, 6Bh ; 'k'
mov r8, r13
mov r15, r9
mov r9, rdx
push 0
push 0
call JS_GetPropertyInternal2
add rsp, 10h
cmp edx, 6
jz short loc_73A63
mov [rsp+78h+var_48], rbx
mov [rsp+78h+var_78], rdx
mov [rsp+78h+var_68], rax
mov [rsp+78h+var_40], r13
mov rax, [r15+40h]
mov rsi, [rax+280h]
mov rdx, [rax+288h]
mov rbx, r15
mov rdi, r15
mov ecx, 28h ; '('
call JS_NewObjectProtoClass
mov r13, rdx
cmp r13d, 6
jnz loc_73C0E
mov rdx, [rsp+78h+var_78]
cmp edx, 0FFFFFFF7h
jb short loc_73A63
mov rdi, [rbx+18h]
mov rsi, [rsp+78h+var_68]
loc_73A52:
mov eax, [rsi]
lea ecx, [rax-1]
mov [rsi], ecx
cmp eax, 1
jg short loc_73A63
call js_free_value_rt
loc_73A63:
xor r12d, r12d
xor eax, eax
mov r13d, 6
jmp loc_73BD3
loc_73A73:
lea rsi, aOperandPrototy+20h; "not an object"
xor r12d, r12d
xor eax, eax
call JS_ThrowTypeError
mov r13d, 6
jmp loc_73BD1
loc_73A8F:
mov eax, 101h
bt eax, ebp
jnb loc_73D0D
mov rsi, [r8]
mov rdx, [r8+8]
cmp edx, 0FFFFFFF7h
jb short loc_73AAB
inc dword ptr [rsi]
loc_73AAB:
xor ecx, ecx
mov rbx, rdi
call JS_ToNumberHintFree
mov r15, rdx
cmp r15d, 6
jz loc_73BC8
mov r12, rax
lea rsi, [rsp+78h+var_38]
mov [rsp+78h+var_70], rbx
mov rdi, rbx
mov rdx, rax
mov rcx, r15
call JS_ToFloat64
test eax, eax
jz short loc_73B18
cmp r15d, 0FFFFFFF7h
mov rax, [rsp+78h+var_70]
jb loc_73BC8
mov rdi, [rax+18h]
mov eax, [r12]
lea ecx, [rax-1]
mov [r12], ecx
cmp eax, 1
jg loc_73BC8
mov rsi, r12
mov rdx, r15
call js_free_value_rt
jmp loc_73BC8
loc_73B18:
movsd xmm1, [rsp+78h+var_38]
ucomisd xmm1, xmm1
jp loc_73D12
movq rax, xmm1
btr rax, 3Fh ; '?'
mov rcx, 7FF0000000000000h
cmp rax, rcx
mov r9, [rsp+78h+var_70]
jl short loc_73B97
cmp r15d, 0FFFFFFF7h
jb short loc_73B7A
mov rdi, [r9+18h]
mov eax, [r12]
lea ecx, [rax-1]
mov [r12], ecx
cmp eax, 1
jg short loc_73B7A
mov rsi, r12
mov rdx, r15
movsd [rsp+78h+var_78], xmm1
call js_free_value_rt
movsd xmm1, [rsp+78h+var_78]
mov r9, [rsp+78h+var_70]
loc_73B7A:
xorpd xmm0, xmm0
ucomisd xmm0, xmm1
jbe short loc_73BEB
loc_73B84:
lea rsi, aMustBePositive; "must be positive"
mov rdi, r9
xor eax, eax
call JS_ThrowRangeError
jmp short loc_73BC8
loc_73B97:
mov rdi, r9
mov rsi, r12
mov rdx, r15
mov rbx, r9
call JS_ToIntegerFree
mov rcx, rdx
cmp ecx, 6
jz short loc_73BC8
lea rsi, [rsp+78h+var_50]
mov rdi, rbx
mov rdx, rax
call JS_ToInt64Free
test eax, eax
jz loc_73CB1
loc_73BC8:
mov r13d, 6
xor r12d, r12d
loc_73BD1:
xor eax, eax
loc_73BD3:
or r12, rax
mov rax, r12
mov rdx, r13
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_73BEB:
mov r12, 1FFFFFFFFFFFFFh
loc_73BF5:
mov [rsp+78h+var_70], r14
mov eax, 3
mov [rsp+78h+var_58], rax
xor r14d, r14d
xor ebx, ebx
jmp loc_739D3
loc_73C0E:
mov [rsp+78h+var_60], rax
mov esi, 50h ; 'P'
mov rdi, rbx
call js_malloc
test rax, rax
jz loc_73CC7
movzx ecx, byte ptr [rax+49h]
shl ecx, 8
or ecx, ebp
mov [rax+48h], cx
mov rcx, [rsp+78h+var_40]
inc dword ptr [rcx]
mov [rax], rcx
mov rcx, [rsp+78h+var_70]
mov [rax+8], rcx
mov ecx, r14d
mov rdx, [rsp+78h+var_48]
or rdx, rcx
mov rbx, [rsp+78h+var_58]
cmp ebx, 0FFFFFFF7h
mov rcx, [rsp+78h+var_68]
mov rsi, [rsp+78h+var_60]
jb short loc_73C6A
inc dword ptr [rdx]
loc_73C6A:
mov [rax+20h], rdx
mov [rax+28h], rbx
mov [rax+10h], rcx
mov rcx, [rsp+78h+var_78]
mov [rax+18h], rcx
mov dword ptr [rax+30h], 0
mov qword ptr [rax+38h], 3
mov [rax+40h], r12
and byte ptr [rax+49h], 0FCh
mov [rsi+30h], rax
mov rcx, 0FFFFFFFF00000000h
mov rax, rsi
and rax, rcx
mov r12d, esi
jmp loc_73BD3
loc_73CB1:
mov r12, [rsp+78h+var_50]
test r12, r12
mov r9, rbx
jns loc_73BF5
jmp loc_73B84
loc_73CC7:
mov rdi, [rbx+18h]
cmp r13d, 0FFFFFFF7h
mov rsi, [rsp+78h+var_68]
mov rdx, [rsp+78h+var_60]
jb short loc_73CFB
mov eax, [rdx]
lea ecx, [rax-1]
mov [rdx], ecx
cmp eax, 1
jg short loc_73CFB
mov rsi, rdx
mov rdx, r13
call js_free_value_rt
mov rsi, [rsp+78h+var_68]
mov rdi, [rbx+18h]
loc_73CFB:
mov rdx, [rsp+78h+var_78]
cmp edx, 0FFFFFFF7h
jnb loc_73A52
jmp loc_73A63
loc_73D0D:
call _abort
loc_73D12:
cmp r15d, 0FFFFFFF7h
mov r9, [rsp+78h+var_70]
jb loc_73B84
mov rdi, [r9+18h]
mov eax, [r12]
lea ecx, [rax-1]
mov [r12], ecx
cmp eax, 1
jg loc_73B84
mov rsi, r12
mov rdx, r15
call js_free_value_rt
mov r9, [rsp+78h+var_70]
jmp loc_73B84
|
unsigned long long js_create_iterator_helper(
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 v14; // r14
__int16 v15; // bp
long long v16; // r13
int v17; // eax
long long v18; // rbx
long long v19; // r12
unsigned long long v20; // rbx
long long v21; // r9
long long v22; // r15
unsigned long long PropertyInternal2; // rax
long long v24; // rdx
long long v25; // rax
long long v26; // r8
long long v27; // r9
long long v28; // rdx
long long v29; // r13
long long v30; // rdx
long long v31; // rdi
_QWORD *v32; // rsi
int v33; // eax
long long v34; // rcx
unsigned long long v35; // rax
int v36; // eax
int *v37; // rsi
long long v38; // rdx
_DWORD *v39; // rax
long long v40; // rdx
long long v41; // r15
_QWORD *v42; // r12
long long v43; // rdx
long long v44; // r8
long long v45; // r9
__m128 v46; // xmm4
__m128 v47; // xmm5
long long v48; // rdi
int v49; // eax
long long v50; // rcx
__m128 v51; // xmm1
long long v52; // rcx
long long v53; // rdi
int v54; // eax
long long v55; // rax
long long v56; // rdx
long long v58; // rax
_DWORD *v59; // rcx
_DWORD *v60; // rdx
int v61; // eax
long long v62; // rcx
char v63; // [rsp+0h] [rbp-78h]
long long v64; // [rsp+0h] [rbp-78h]
long long v65; // [rsp+8h] [rbp-70h]
_QWORD *v67; // [rsp+10h] [rbp-68h]
long long v68; // [rsp+18h] [rbp-60h]
long long v69; // [rsp+20h] [rbp-58h]
long long v70; // [rsp+28h] [rbp-50h] BYREF
unsigned long long v71; // [rsp+30h] [rbp-48h]
_DWORD *v72; // [rsp+38h] [rbp-40h]
unsigned long long v73[7]; // [rsp+40h] [rbp-38h] BYREF
v14 = a3;
if ( (_DWORD)a3 != -1 )
{
v19 = 0LL;
JS_ThrowTypeError(a1, (long long)"not an object", a3, a4, (long long)a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v63);
goto LABEL_31;
}
v15 = a6;
v70 = 0LL;
if ( (unsigned int)a6 > 8 )
goto LABEL_46;
v16 = a2;
v17 = 84;
if ( _bittest(&v17, a6) )
{
v65 = a3;
v14 = *a5;
v18 = a5[1];
v19 = 0LL;
if ( !(unsigned int)check_function(a1, *a5, v18, a4, (long long)a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) )
{
v69 = v18;
v20 = v14 & 0xFFFFFFFF00000000LL;
v16 = a2;
v21 = a1;
goto LABEL_6;
}
LABEL_31:
v35 = 0LL;
return v35 | v19;
}
v36 = 257;
if ( !_bittest(&v36, a6) )
LABEL_46:
abort((const char *)a1);
v37 = (int *)*a5;
v38 = a5[1];
if ( (unsigned int)v38 >= 0xFFFFFFF7 )
++*v37;
v39 = (_DWORD *)JS_ToNumberHintFree(a1, v37, v38, 0, (long long)a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
v41 = v40;
if ( (_DWORD)v40 == 6 )
{
LABEL_30:
v19 = 0LL;
goto LABEL_31;
}
v42 = v39;
if ( (unsigned int)JS_ToFloat64(a1, (double *)v73, v39, v40) )
{
if ( (unsigned int)v41 >= 0xFFFFFFF7 )
{
v48 = *(_QWORD *)(a1 + 24);
v49 = *(_DWORD *)v42;
v50 = (unsigned int)(*(_DWORD *)v42 - 1);
*(_DWORD *)v42 = v50;
if ( v49 <= 1 )
js_free_value_rt(v48, v42, v41, v50, v44, v45);
}
goto LABEL_30;
}
v51 = (__m128)v73[0];
v52 = 0x7FF0000000000000LL;
v21 = a1;
if ( (v73[0] & 0x7FFFFFFFFFFFFFFFLL) < 0x7FF0000000000000LL )
{
v55 = JS_ToIntegerFree(a1, v42, v41);
if ( (_DWORD)v56 == 6 || (unsigned int)JS_ToInt64Free(a1, &v70, v55, v56) )
goto LABEL_30;
v19 = v70;
v21 = a1;
if ( v70 < 0 )
goto LABEL_27;
}
else
{
if ( (unsigned int)v41 >= 0xFFFFFFF7 )
{
v53 = *(_QWORD *)(a1 + 24);
v54 = *(_DWORD *)v42;
v52 = (unsigned int)(*(_DWORD *)v42 - 1);
*(_DWORD *)v42 = v52;
if ( v54 <= 1 )
{
v63 = v51.m128_i8[0];
js_free_value_rt(v53, v42, v41, v52, v44, a1);
v51 = (__m128)v51.m128_u64[0];
v21 = a1;
}
}
a7 = 0LL;
if ( *(double *)v51.m128_u64 < 0.0 )
{
LABEL_27:
JS_ThrowRangeError(
v21,
(long long)"must be positive",
v43,
v52,
v44,
v21,
a7,
v51,
a9,
a10,
v46,
v47,
a13,
a14,
v63);
goto LABEL_30;
}
v19 = 0x1FFFFFFFFFFFFFLL;
}
v65 = v14;
v69 = 3LL;
LODWORD(v14) = 0;
v20 = 0LL;
LABEL_6:
v22 = v21;
PropertyInternal2 = JS_GetPropertyInternal2(v21, v16, v65, 0x6Bu, v16, v65, 0LL, 0);
if ( (_DWORD)v24 == 6 )
goto LABEL_12;
v71 = v20;
v64 = v24;
v67 = (_QWORD *)PropertyInternal2;
v72 = (_DWORD *)v16;
v25 = JS_NewObjectProtoClass(
v22,
*(_QWORD *)(*(_QWORD *)(v22 + 64) + 640LL),
*(_QWORD *)(*(_QWORD *)(v22 + 64) + 648LL),
0x28u);
v29 = v28;
if ( (_DWORD)v28 == 6 )
{
v30 = v64;
if ( (unsigned int)v64 >= 0xFFFFFFF7 )
{
v31 = *(_QWORD *)(v22 + 24);
v32 = v67;
LABEL_10:
v33 = *(_DWORD *)v32;
v34 = (unsigned int)(*(_DWORD *)v32 - 1);
*(_DWORD *)v32 = v34;
if ( v33 <= 1 )
js_free_value_rt(v31, v32, v30, v34, v26, v27);
}
LABEL_12:
v19 = 0LL;
v35 = 0LL;
return v35 | v19;
}
v68 = v25;
v58 = js_malloc(v22, 80LL);
if ( !v58 )
{
v31 = *(_QWORD *)(v22 + 24);
v32 = v67;
if ( (unsigned int)v29 >= 0xFFFFFFF7 )
{
v61 = *(_DWORD *)v68;
v62 = (unsigned int)(*(_DWORD *)v68 - 1);
*(_DWORD *)v68 = v62;
if ( v61 <= 1 )
{
js_free_value_rt(v31, (_QWORD *)v68, v29, v62, v26, v27);
v32 = v67;
v31 = *(_QWORD *)(v22 + 24);
}
}
v30 = v64;
if ( (unsigned int)v64 < 0xFFFFFFF7 )
goto LABEL_12;
goto LABEL_10;
}
*(_WORD *)(v58 + 72) = v15 | (*(unsigned __int8 *)(v58 + 73) << 8);
v59 = v72;
++*v72;
*(_QWORD *)v58 = v59;
*(_QWORD *)(v58 + 8) = v65;
v60 = (_DWORD *)((unsigned int)v14 | v71);
if ( (unsigned int)v69 >= 0xFFFFFFF7 )
++*v60;
*(_QWORD *)(v58 + 32) = v60;
*(_QWORD *)(v58 + 40) = v69;
*(_QWORD *)(v58 + 16) = v67;
*(_QWORD *)(v58 + 24) = v64;
*(_DWORD *)(v58 + 48) = 0;
*(_QWORD *)(v58 + 56) = 3LL;
*(_QWORD *)(v58 + 64) = v19;
*(_BYTE *)(v58 + 73) &= 0xFCu;
*(_QWORD *)(v68 + 48) = v58;
v35 = v68 & 0xFFFFFFFF00000000LL;
v19 = (unsigned int)v68;
return v35 | v19;
}
|
js_create_iterator_helper:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R14,RDX
CMP R14D,-0x1
JNZ 0x00173a73
MOV EBP,R9D
MOV qword ptr [RSP + 0x28],0x0
CMP R9D,0x8
JA 0x00173d0d
MOV R13,RSI
MOV EAX,0x54
BT EAX,EBP
JNC 0x00173a8f
MOV qword ptr [RSP + 0x8],R14
MOV dword ptr [RSP],EBP
MOV R15,R13
MOV R14,qword ptr [R8]
MOV RBX,qword ptr [R8 + 0x8]
MOV RSI,R14
MOV RDX,RBX
MOV RBP,RDI
CALL 0x00142327
MOV R13D,0x6
XOR R12D,R12D
TEST EAX,EAX
JNZ 0x00173bd1
MOV qword ptr [RSP + 0x20],RBX
MOV RBX,-0x100000000
AND RBX,R14
MOV R13,R15
MOV R9,RBP
MOV EBP,dword ptr [RSP]
LAB_001739d3:
MOV RDI,R9
MOV RSI,R13
MOV RDX,qword ptr [RSP + 0x8]
MOV ECX,0x6b
MOV R8,R13
MOV R15,R9
MOV R9,RDX
PUSH 0x0
PUSH 0x0
CALL 0x00122c0f
ADD RSP,0x10
CMP EDX,0x6
JZ 0x00173a63
MOV qword ptr [RSP + 0x30],RBX
MOV qword ptr [RSP],RDX
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x38],R13
MOV RAX,qword ptr [R15 + 0x40]
MOV RSI,qword ptr [RAX + 0x280]
MOV RDX,qword ptr [RAX + 0x288]
MOV RBX,R15
MOV RDI,R15
MOV ECX,0x28
CALL 0x00120a15
MOV R13,RDX
CMP R13D,0x6
JNZ 0x00173c0e
MOV RDX,qword ptr [RSP]
CMP EDX,-0x9
JC 0x00173a63
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,qword ptr [RSP + 0x10]
LAB_00173a52:
MOV EAX,dword ptr [RSI]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RSI],ECX
CMP EAX,0x1
JG 0x00173a63
CALL 0x00120d90
LAB_00173a63:
XOR R12D,R12D
XOR EAX,EAX
MOV R13D,0x6
JMP 0x00173bd3
LAB_00173a73:
LEA RSI,[0x1a08ed]
XOR R12D,R12D
XOR EAX,EAX
CALL 0x0012214f
MOV R13D,0x6
JMP 0x00173bd1
LAB_00173a8f:
MOV EAX,0x101
BT EAX,EBP
JNC 0x00173d0d
MOV RSI,qword ptr [R8]
MOV RDX,qword ptr [R8 + 0x8]
CMP EDX,-0x9
JC 0x00173aab
INC dword ptr [RSI]
LAB_00173aab:
XOR ECX,ECX
MOV RBX,RDI
CALL 0x00143a59
MOV R15,RDX
CMP R15D,0x6
JZ 0x00173bc8
MOV R12,RAX
LEA RSI,[RSP + 0x40]
MOV qword ptr [RSP + 0x8],RBX
MOV RDI,RBX
MOV RDX,RAX
MOV RCX,R15
CALL 0x0012712e
TEST EAX,EAX
JZ 0x00173b18
CMP R15D,-0x9
MOV RAX,qword ptr [RSP + 0x8]
JC 0x00173bc8
MOV RDI,qword ptr [RAX + 0x18]
MOV EAX,dword ptr [R12]
LEA ECX,[RAX + -0x1]
MOV dword ptr [R12],ECX
CMP EAX,0x1
JG 0x00173bc8
MOV RSI,R12
MOV RDX,R15
CALL 0x00120d90
JMP 0x00173bc8
LAB_00173b18:
MOVSD XMM1,qword ptr [RSP + 0x40]
UCOMISD XMM1,XMM1
JP 0x00173d12
MOVQ RAX,XMM1
BTR RAX,0x3f
MOV RCX,0x7ff0000000000000
CMP RAX,RCX
MOV R9,qword ptr [RSP + 0x8]
JL 0x00173b97
CMP R15D,-0x9
JC 0x00173b7a
MOV RDI,qword ptr [R9 + 0x18]
MOV EAX,dword ptr [R12]
LEA ECX,[RAX + -0x1]
MOV dword ptr [R12],ECX
CMP EAX,0x1
JG 0x00173b7a
MOV RSI,R12
MOV RDX,R15
MOVSD qword ptr [RSP],XMM1
CALL 0x00120d90
MOVSD XMM1,qword ptr [RSP]
MOV R9,qword ptr [RSP + 0x8]
LAB_00173b7a:
XORPD XMM0,XMM0
UCOMISD XMM0,XMM1
JBE 0x00173beb
LAB_00173b84:
LEA RSI,[0x1a34ae]
MOV RDI,R9
XOR EAX,EAX
CALL 0x001205f0
JMP 0x00173bc8
LAB_00173b97:
MOV RDI,R9
MOV RSI,R12
MOV RDX,R15
MOV RBX,R9
CALL 0x00174dda
MOV RCX,RDX
CMP ECX,0x6
JZ 0x00173bc8
LEA RSI,[RSP + 0x28]
MOV RDI,RBX
MOV RDX,RAX
CALL 0x0012732a
TEST EAX,EAX
JZ 0x00173cb1
LAB_00173bc8:
MOV R13D,0x6
XOR R12D,R12D
LAB_00173bd1:
XOR EAX,EAX
LAB_00173bd3:
OR R12,RAX
MOV RAX,R12
MOV RDX,R13
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00173beb:
MOV R12,0x1fffffffffffff
LAB_00173bf5:
MOV qword ptr [RSP + 0x8],R14
MOV EAX,0x3
MOV qword ptr [RSP + 0x20],RAX
XOR R14D,R14D
XOR EBX,EBX
JMP 0x001739d3
LAB_00173c0e:
MOV qword ptr [RSP + 0x18],RAX
MOV ESI,0x50
MOV RDI,RBX
CALL 0x0010ed89
TEST RAX,RAX
JZ 0x00173cc7
MOVZX ECX,byte ptr [RAX + 0x49]
SHL ECX,0x8
OR ECX,EBP
MOV word ptr [RAX + 0x48],CX
MOV RCX,qword ptr [RSP + 0x38]
INC dword ptr [RCX]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV ECX,R14D
MOV RDX,qword ptr [RSP + 0x30]
OR RDX,RCX
MOV RBX,qword ptr [RSP + 0x20]
CMP EBX,-0x9
MOV RCX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x18]
JC 0x00173c6a
INC dword ptr [RDX]
LAB_00173c6a:
MOV qword ptr [RAX + 0x20],RDX
MOV qword ptr [RAX + 0x28],RBX
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RSP]
MOV qword ptr [RAX + 0x18],RCX
MOV dword ptr [RAX + 0x30],0x0
MOV qword ptr [RAX + 0x38],0x3
MOV qword ptr [RAX + 0x40],R12
AND byte ptr [RAX + 0x49],0xfc
MOV qword ptr [RSI + 0x30],RAX
MOV RCX,-0x100000000
MOV RAX,RSI
AND RAX,RCX
MOV R12D,ESI
JMP 0x00173bd3
LAB_00173cb1:
MOV R12,qword ptr [RSP + 0x28]
TEST R12,R12
MOV R9,RBX
JNS 0x00173bf5
JMP 0x00173b84
LAB_00173cc7:
MOV RDI,qword ptr [RBX + 0x18]
CMP R13D,-0x9
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x18]
JC 0x00173cfb
MOV EAX,dword ptr [RDX]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDX],ECX
CMP EAX,0x1
JG 0x00173cfb
MOV RSI,RDX
MOV RDX,R13
CALL 0x00120d90
MOV RSI,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RBX + 0x18]
LAB_00173cfb:
MOV RDX,qword ptr [RSP]
CMP EDX,-0x9
JNC 0x00173a52
JMP 0x00173a63
LAB_00173d0d:
CALL 0x0010e090
LAB_00173d12:
CMP R15D,-0x9
MOV R9,qword ptr [RSP + 0x8]
JC 0x00173b84
MOV RDI,qword ptr [R9 + 0x18]
MOV EAX,dword ptr [R12]
LEA ECX,[RAX + -0x1]
MOV dword ptr [R12],ECX
CMP EAX,0x1
JG 0x00173b84
MOV RSI,R12
MOV RDX,R15
CALL 0x00120d90
MOV R9,qword ptr [RSP + 0x8]
JMP 0x00173b84
|
int1 [16]
js_create_iterator_helper
(long param_1,int *param_2,int8 param_3,int8 param_4,ulong *param_5,
uint param_6)
{
int iVar1;
int *piVar2;
int8 *puVar3;
ulong uVar4;
uint uVar5;
int *piVar6;
ulong uVar7;
int8 uVar8;
long lVar9;
int8 uVar10;
int1 auVar11 [12];
int1 auVar12 [16];
int1 auVar13 [16];
ulong local_58;
long local_50;
ulong local_48;
int *local_40;
double local_38;
if ((int)param_3 == -1) {
local_50 = 0;
if (8 < param_6) {
LAB_00173d0d:
/* WARNING: Subroutine does not return */
abort();
}
if ((0x54U >> (param_6 & 0x1f) & 1) == 0) {
if ((0x101U >> (param_6 & 0x1f) & 1) == 0) goto LAB_00173d0d;
if (0xfffffff6 < (uint)param_5[1]) {
*(int *)*param_5 = *(int *)*param_5 + 1;
}
auVar12 = JS_ToNumberHintFree();
uVar10 = auVar12._8_8_;
piVar2 = auVar12._0_8_;
uVar5 = auVar12._8_4_;
if (uVar5 != 6) {
iVar1 = JS_ToFloat64(param_1,&local_38,piVar2,uVar10);
if (iVar1 == 0) {
if (NAN(local_38)) {
if (0xfffffff6 < uVar5) {
uVar8 = *(int8 *)(param_1 + 0x18);
iVar1 = *piVar2;
*piVar2 = iVar1 + -1;
if (iVar1 < 2) {
js_free_value_rt(uVar8,piVar2,uVar10);
}
}
}
else if ((ulong)ABS(local_38) < 0x7ff0000000000000) {
auVar11 = JS_ToIntegerFree(param_1,piVar2,uVar10);
if ((auVar11._8_4_ == 6) ||
(iVar1 = JS_ToInt64Free(param_1,&local_50,auVar11._0_8_), iVar1 != 0))
goto LAB_00173bd1;
lVar9 = local_50;
if (-1 < local_50) goto LAB_00173bf5;
}
else {
if (0xfffffff6 < uVar5) {
uVar8 = *(int8 *)(param_1 + 0x18);
iVar1 = *piVar2;
*piVar2 = iVar1 + -1;
if (iVar1 < 2) {
js_free_value_rt(uVar8,piVar2,uVar10);
}
}
if (0.0 <= local_38) {
lVar9 = 0x1fffffffffffff;
LAB_00173bf5:
local_58 = 3;
uVar4 = 0;
uVar7 = 0;
goto LAB_001739d3;
}
}
JS_ThrowRangeError(param_1,"must be positive");
}
else if (0xfffffff6 < uVar5) {
uVar8 = *(int8 *)(param_1 + 0x18);
iVar1 = *piVar2;
*piVar2 = iVar1 + -1;
if (iVar1 < 2) {
js_free_value_rt(uVar8,piVar2,uVar10);
}
}
}
}
else {
uVar4 = *param_5;
local_58 = param_5[1];
iVar1 = check_function(param_1,uVar4,local_58);
lVar9 = 0;
if (iVar1 == 0) {
uVar7 = uVar4 & 0xffffffff00000000;
LAB_001739d3:
auVar12 = JS_GetPropertyInternal2(param_1,param_2,param_3,0x6b,param_2,param_3,0,0);
uVar5 = auVar12._8_4_;
if (uVar5 != 6) {
local_48 = uVar7;
local_40 = param_2;
auVar13 = JS_NewObjectProtoClass
(param_1,*(int8 *)(*(long *)(param_1 + 0x40) + 0x280),
*(int8 *)(*(long *)(param_1 + 0x40) + 0x288),0x28);
uVar10 = auVar13._8_8_;
piVar2 = auVar13._0_8_;
if (auVar13._8_4_ == 6) {
if (0xfffffff6 < uVar5) {
uVar8 = *(int8 *)(param_1 + 0x18);
LAB_00173a52:
iVar1 = *auVar12._0_8_;
*auVar12._0_8_ = iVar1 + -1;
if (iVar1 < 2) {
js_free_value_rt(uVar8);
}
}
}
else {
puVar3 = (int8 *)js_malloc(param_1,0x50);
if (puVar3 != (int8 *)0x0) {
*(ushort *)(puVar3 + 9) =
(ushort)*(byte *)((long)puVar3 + 0x49) << 8 | (ushort)param_6;
*local_40 = *local_40 + 1;
*puVar3 = local_40;
puVar3[1] = param_3;
piVar6 = (int *)(local_48 | uVar4 & 0xffffffff);
if (0xfffffff6 < (uint)local_58) {
*piVar6 = *piVar6 + 1;
}
puVar3[4] = piVar6;
puVar3[5] = local_58;
*(int1 (*) [16])(puVar3 + 2) = auVar12;
*(int4 *)(puVar3 + 6) = 0;
puVar3[7] = 3;
puVar3[8] = lVar9;
*(byte *)((long)puVar3 + 0x49) = *(byte *)((long)puVar3 + 0x49) & 0xfc;
*(int8 **)(piVar2 + 0xc) = puVar3;
uVar4 = (ulong)piVar2 & 0xffffffff00000000;
uVar7 = (ulong)piVar2 & 0xffffffff;
goto LAB_00173bd3;
}
uVar8 = *(int8 *)(param_1 + 0x18);
if ((0xfffffff6 < auVar13._8_4_) && (iVar1 = *piVar2, *piVar2 = iVar1 + -1, iVar1 < 2))
{
js_free_value_rt(uVar8,piVar2,uVar10);
uVar8 = *(int8 *)(param_1 + 0x18);
}
if (0xfffffff6 < uVar5) goto LAB_00173a52;
}
}
uVar7 = 0;
uVar4 = 0;
uVar10 = 6;
goto LAB_00173bd3;
}
}
}
else {
JS_ThrowTypeError(param_1,"not an object");
}
LAB_00173bd1:
uVar7 = 0;
uVar10 = 6;
uVar4 = 0;
LAB_00173bd3:
auVar12._8_8_ = uVar10;
auVar12._0_8_ = uVar7 | uVar4;
return auVar12;
}
|
|
57,462
|
inline_mysql_file_open
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline File
inline_mysql_file_open(
#ifdef HAVE_PSI_FILE_INTERFACE
PSI_file_key key, const char *src_file, uint src_line,
#endif
const char *filename, int flags, myf myFlags)
{
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_OPEN, filename,
&locker);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line);
file= my_open(filename, flags, myFlags);
PSI_FILE_CALL(end_file_open_wait_and_bind_to_descriptor)(locker, file);
return file;
}
#endif
file= my_open(filename, flags, myFlags);
return file;
}
|
O0
|
c
|
inline_mysql_file_open:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x1e2720(%rip), %rax # 0x2c1158
movq (%rax), %rax
movq 0x148(%rax), %rax
movl -0x8(%rbp), %esi
movq -0x20(%rbp), %rcx
leaq -0x88(%rbp), %rdi
movl $0x2, %edx
leaq -0x40(%rbp), %r8
callq *%rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xdead2
leaq 0x1e26d2(%rip), %rax # 0x2c1158
movq (%rax), %rax
movq 0x1f0(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
callq *%rax
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x30(%rbp), %rdx
callq 0xf55f0
movl %eax, -0x34(%rbp)
leaq 0x1e26a1(%rip), %rax # 0x2c1158
movq (%rax), %rax
movq 0x200(%rax), %rax
movq -0x40(%rbp), %rdi
movl -0x34(%rbp), %esi
callq *%rax
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xdeaeb
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x30(%rbp), %rdx
callq 0xf55f0
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
inline_mysql_file_open_3:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_8], edi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_20], rcx
mov [rbp+var_24], r8d
mov [rbp+var_30], r9
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+148h]
mov esi, [rbp+var_8]
mov rcx, [rbp+var_20]
lea rdi, [rbp+var_88]
mov edx, 2
lea r8, [rbp+var_40]
call rax
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_DEAD2
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1F0h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_10]
mov edx, [rbp+var_14]
call rax
mov rdi, [rbp+var_20]
mov esi, [rbp+var_24]
mov rdx, [rbp+var_30]
call my_open
mov [rbp+var_34], eax
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+200h]
mov rdi, [rbp+var_40]
mov esi, [rbp+var_34]
call rax
mov eax, [rbp+var_34]
mov [rbp+var_4], eax
jmp short loc_DEAEB
loc_DEAD2:
mov rdi, [rbp+var_20]
mov esi, [rbp+var_24]
mov rdx, [rbp+var_30]
call my_open
mov [rbp+var_34], eax
mov eax, [rbp+var_34]
mov [rbp+var_4], eax
loc_DEAEB:
mov eax, [rbp+var_4]
add rsp, 90h
pop rbp
retn
|
long long inline_mysql_file_open_3(
unsigned int a1,
long long a2,
unsigned int a3,
long long a4,
unsigned int a5,
long long a6)
{
_BYTE v7[72]; // [rsp+8h] [rbp-88h] BYREF
long long v8; // [rsp+50h] [rbp-40h] BYREF
unsigned int v9; // [rsp+5Ch] [rbp-34h]
long long v10; // [rsp+60h] [rbp-30h]
unsigned int v11; // [rsp+6Ch] [rbp-24h]
long long v12; // [rsp+70h] [rbp-20h]
unsigned int v13; // [rsp+7Ch] [rbp-14h]
long long v14; // [rsp+80h] [rbp-10h]
unsigned int v15; // [rsp+88h] [rbp-8h]
v15 = a1;
v14 = a2;
v13 = a3;
v12 = a4;
v11 = a5;
v10 = a6;
v8 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, long long *))PSI_server[41])(v7, a1, 2LL, a4, &v8);
if ( v8 )
{
((void ( *)(long long, long long, _QWORD))PSI_server[62])(v8, v14, v13);
v9 = my_open(v12, v11, v10);
((void ( *)(long long, _QWORD))PSI_server[64])(v8, v9);
}
else
{
return (unsigned int)my_open(v12, v11, v10);
}
return v9;
}
|
inline_mysql_file_open:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
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 dword ptr [RBP + -0x24],R8D
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x3c1158]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x148]
MOV ESI,dword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x88]
MOV EDX,0x2
LEA R8,[RBP + -0x40]
CALL RAX
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001dead2
LEA RAX,[0x3c1158]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1f0]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x14]
CALL RAX
MOV RDI,qword ptr [RBP + -0x20]
MOV ESI,dword ptr [RBP + -0x24]
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x001f55f0
MOV dword ptr [RBP + -0x34],EAX
LEA RAX,[0x3c1158]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x200]
MOV RDI,qword ptr [RBP + -0x40]
MOV ESI,dword ptr [RBP + -0x34]
CALL RAX
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001deaeb
LAB_001dead2:
MOV RDI,qword ptr [RBP + -0x20]
MOV ESI,dword ptr [RBP + -0x24]
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x001f55f0
MOV dword ptr [RBP + -0x34],EAX
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x4],EAX
LAB_001deaeb:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x90
POP RBP
RET
|
int4
inline_mysql_file_open
(int4 param_1,int8 param_2,int4 param_3,int8 param_4,
int4 param_5,int8 param_6)
{
int1 local_90 [72];
long local_48;
int4 local_3c;
int8 local_38;
int4 local_2c;
int8 local_28;
int4 local_1c;
int8 local_18;
int4 local_10;
int4 local_c;
local_38 = param_6;
local_2c = param_5;
local_28 = param_4;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
local_48 = (**(code **)(PSI_server + 0x148))(local_90,param_1,2,param_4,&local_48);
if (local_48 == 0) {
local_c = my_open(local_28,local_2c,local_38);
}
else {
(**(code **)(PSI_server + 0x1f0))(local_48,local_18,local_1c);
local_3c = my_open(local_28,local_2c,local_38);
(**(code **)(PSI_server + 0x200))(local_48,local_3c);
local_c = local_3c;
}
return local_c;
}
|
|
57,463
|
sp_get_linestring_mbr
|
eloqsql/storage/maria/ma_sp_key.c
|
static int sp_get_linestring_mbr(uchar *(*wkb), uchar *end, uint n_dims,
uchar byte_order, double *mbr)
{
uint n_points;
n_points = uint4korr(*wkb);
(*wkb) += 4;
for (; n_points > 0; --n_points)
{
/* Add next point to mbr */
if (sp_add_point_to_mbr(wkb, end, n_dims, byte_order, mbr))
return -1;
}
return 0;
}
|
O3
|
c
|
sp_get_linestring_mbr:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
movl (%rax), %ecx
addq $0x4, %rax
movq %rax, (%rdi)
testl %ecx, %ecx
je 0x73b4a
addq $-0x8, %rsi
movb $0x1, %r8b
xorl %r9d, %r9d
movq (%rdi), %rax
cmpq %rsi, %rax
ja 0x73b43
movsd (%rax), %xmm0
addq $0x8, %rax
movq %rax, (%rdi)
movsd (%rdx,%r9), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x73b16
movsd %xmm0, (%rdx,%r9)
ucomisd 0x8(%rdx,%r9), %xmm0
jbe 0x73b29
orq $0x8, %r9
movsd %xmm0, (%rdx,%r9)
movl $0x10, %r9d
xorl %eax, %eax
testb $0x1, %r8b
movl $0x0, %r8d
jne 0x73af1
decl %ecx
jne 0x73aeb
jmp 0x73b4c
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
jmp 0x73b4c
xorl %eax, %eax
popq %rbp
retq
|
sp_get_linestring_mbr:
push rbp
mov rbp, rsp
mov rax, [rdi]
mov ecx, [rax]
add rax, 4
mov [rdi], rax
test ecx, ecx
jz short loc_73B4A
add rsi, 0FFFFFFFFFFFFFFF8h
loc_73AEB:
mov r8b, 1
xor r9d, r9d
loc_73AF1:
mov rax, [rdi]
cmp rax, rsi
ja short loc_73B43
movsd xmm0, qword ptr [rax]
add rax, 8
mov [rdi], rax
movsd xmm1, qword ptr [rdx+r9]
ucomisd xmm1, xmm0
jbe short loc_73B16
movsd qword ptr [rdx+r9], xmm0
loc_73B16:
ucomisd xmm0, qword ptr [rdx+r9+8]
jbe short loc_73B29
or r9, 8
movsd qword ptr [rdx+r9], xmm0
loc_73B29:
mov r9d, 10h
xor eax, eax
test r8b, 1
mov r8d, 0
jnz short loc_73AF1
dec ecx
jnz short loc_73AEB
jmp short loc_73B4C
loc_73B43:
mov eax, 0FFFFFFFFh
jmp short loc_73B4C
loc_73B4A:
xor eax, eax
loc_73B4C:
pop rbp
retn
|
long long sp_get_linestring_mbr(double **a1, long long a2, long long a3)
{
int v3; // ecx
unsigned long long v4; // rsi
char v5; // r8
long long v6; // r9
double *v7; // rax
double v8; // xmm0_8
long long result; // rax
bool v10; // zf
v3 = *(_DWORD *)*a1;
*a1 = (double *)((char *)*a1 + 4);
if ( !v3 )
return 0LL;
v4 = a2 - 8;
while ( 2 )
{
v5 = 1;
v6 = 0LL;
do
{
v7 = *a1;
if ( (unsigned long long)*a1 > v4 )
return 0xFFFFFFFFLL;
v8 = *v7;
*a1 = v7 + 1;
if ( *(double *)(a3 + v6) > v8 )
*(double *)(a3 + v6) = v8;
if ( v8 > *(double *)(a3 + v6 + 8) )
*(double *)(a3 + (v6 | 8)) = v8;
v6 = 16LL;
result = 0LL;
v10 = (v5 & 1) == 0;
v5 = 0;
}
while ( !v10 );
if ( --v3 )
continue;
break;
}
return result;
}
|
sp_get_linestring_mbr:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RDI]
MOV ECX,dword ptr [RAX]
ADD RAX,0x4
MOV qword ptr [RDI],RAX
TEST ECX,ECX
JZ 0x00173b4a
ADD RSI,-0x8
LAB_00173aeb:
MOV R8B,0x1
XOR R9D,R9D
LAB_00173af1:
MOV RAX,qword ptr [RDI]
CMP RAX,RSI
JA 0x00173b43
MOVSD XMM0,qword ptr [RAX]
ADD RAX,0x8
MOV qword ptr [RDI],RAX
MOVSD XMM1,qword ptr [RDX + R9*0x1]
UCOMISD XMM1,XMM0
JBE 0x00173b16
MOVSD qword ptr [RDX + R9*0x1],XMM0
LAB_00173b16:
UCOMISD XMM0,qword ptr [RDX + R9*0x1 + 0x8]
JBE 0x00173b29
OR R9,0x8
MOVSD qword ptr [RDX + R9*0x1],XMM0
LAB_00173b29:
MOV R9D,0x10
XOR EAX,EAX
TEST R8B,0x1
MOV R8D,0x0
JNZ 0x00173af1
DEC ECX
JNZ 0x00173aeb
JMP 0x00173b4c
LAB_00173b43:
MOV EAX,0xffffffff
JMP 0x00173b4c
LAB_00173b4a:
XOR EAX,EAX
LAB_00173b4c:
POP RBP
RET
|
int8 sp_get_linestring_mbr(int8 *param_1,long param_2,long param_3)
{
double dVar1;
double *pdVar2;
bool bVar3;
int iVar4;
bool bVar5;
ulong uVar6;
iVar4 = *(int *)*param_1;
*param_1 = (int *)*param_1 + 1;
if (iVar4 != 0) {
do {
uVar6 = 0;
bVar3 = true;
do {
bVar5 = bVar3;
pdVar2 = (double *)*param_1;
if ((double *)(param_2 + -8) < pdVar2) {
return 0xffffffff;
}
dVar1 = *pdVar2;
*param_1 = pdVar2 + 1;
if (dVar1 < *(double *)(param_3 + uVar6)) {
*(double *)(param_3 + uVar6) = dVar1;
}
pdVar2 = (double *)(param_3 + 8 + uVar6);
if (*pdVar2 <= dVar1 && dVar1 != *pdVar2) {
*(double *)(param_3 + (uVar6 | 8)) = dVar1;
}
uVar6 = 0x10;
bVar3 = false;
} while (bVar5);
iVar4 = iVar4 + -1;
} while (iVar4 != 0);
}
return 0;
}
|
|
57,464
|
LefDefParser::lefwLayerRoutingMinimumcutConnections(char const*)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
|
int
lefwLayerRoutingMinimumcutConnections(const char *direction)
{
if (!lefwFile)
return LEFW_UNINITIALIZED;
if (!lefwIsRoutingMinCut || lefwIsRoutingMinCutDist)
return LEFW_BAD_ORDER;
// lefwLayerRoutingMinimumcut has not being called or
// lefwLayerRoutingMinimumcutConnections has already called
if (lefwWriteEncrypt)
encPrint(lefwFile, (char*) "\n %s ", direction);
else
fprintf(lefwFile, "\n %s ", direction);
lefwLines++;
prtSemiColon = 1;
lefwIsRoutingMinCutDist = 1;
if (lefwIsRoutingMinCutLen) // both distance & length within has defined
lefwIsRoutingMinCut = 0;
return LEFW_OK;
}
|
O0
|
cpp
|
LefDefParser::lefwLayerRoutingMinimumcutConnections(char const*):
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
leaq 0x225c0(%rip), %rax # 0x32e00
cmpq $0x0, (%rax)
jne 0x10853
movl $0x1, 0x14(%rsp)
jmp 0x1090a
leaq 0x2286e(%rip), %rax # 0x330c8
cmpl $0x0, (%rax)
je 0x1086b
leaq 0x22866(%rip), %rax # 0x330cc
cmpl $0x0, (%rax)
je 0x10878
movl $0x2, 0x14(%rsp)
jmp 0x1090a
cmpl $0x0, 0x2286d(%rip) # 0x330ec
je 0x108a0
leaq 0x22578(%rip), %rax # 0x32e00
movq (%rax), %rdi
movq 0x8(%rsp), %rdx
leaq 0x19bd2(%rip), %rsi # 0x2a469
movb $0x0, %al
callq 0x289b0
jmp 0x108bd
leaq 0x22559(%rip), %rax # 0x32e00
movq (%rax), %rdi
movq 0x8(%rsp), %rdx
leaq 0x19bb3(%rip), %rsi # 0x2a469
movb $0x0, %al
callq 0x1100
leaq 0x22788(%rip), %rax # 0x3304c
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x2277c(%rip), %rax # 0x3304c
movl %ecx, (%rax)
movl $0x1, 0x22818(%rip) # 0x330f4
leaq 0x227e9(%rip), %rax # 0x330cc
movl $0x1, (%rax)
leaq 0x227e0(%rip), %rax # 0x330d0
cmpl $0x0, (%rax)
je 0x10902
leaq 0x227cc(%rip), %rax # 0x330c8
movl $0x0, (%rax)
movl $0x0, 0x14(%rsp)
movl 0x14(%rsp), %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
|
_ZN12LefDefParser37lefwLayerRoutingMinimumcutConnectionsEPKc:
sub rsp, 18h
mov [rsp+18h+var_10], rdi
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
cmp qword ptr [rax], 0
jnz short loc_10853
mov [rsp+18h+var_4], 1
jmp loc_1090A
loc_10853:
lea rax, _ZN12LefDefParser19lefwIsRoutingMinCutE; LefDefParser::lefwIsRoutingMinCut
cmp dword ptr [rax], 0
jz short loc_1086B
lea rax, _ZN12LefDefParser23lefwIsRoutingMinCutDistE; LefDefParser::lefwIsRoutingMinCutDist
cmp dword ptr [rax], 0
jz short loc_10878
loc_1086B:
mov [rsp+18h+var_4], 2
jmp loc_1090A
loc_10878:
cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 0; LefDefParser::lefwWriteEncrypt
jz short loc_108A0
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
mov rdx, [rsp+18h+var_10]
lea rsi, aS; "\n %s "
mov al, 0
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp short loc_108BD
loc_108A0:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
mov rdx, [rsp+18h+var_10]
lea rsi, aS; "\n %s "
mov al, 0
call _fprintf
loc_108BD:
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
mov ecx, [rax]
add ecx, 1
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
mov [rax], ecx
mov cs:_ZN12LefDefParserL12prtSemiColonE, 1; LefDefParser::prtSemiColon
lea rax, _ZN12LefDefParser23lefwIsRoutingMinCutDistE; LefDefParser::lefwIsRoutingMinCutDist
mov dword ptr [rax], 1
lea rax, _ZN12LefDefParser22lefwIsRoutingMinCutLenE; LefDefParser::lefwIsRoutingMinCutLen
cmp dword ptr [rax], 0
jz short loc_10902
lea rax, _ZN12LefDefParser19lefwIsRoutingMinCutE; LefDefParser::lefwIsRoutingMinCut
mov dword ptr [rax], 0
loc_10902:
mov [rsp+18h+var_4], 0
loc_1090A:
mov eax, [rsp+18h+var_4]
add rsp, 18h
retn
|
long long LefDefParser::lefwLayerRoutingMinimumcutConnections(
LefDefParser *this,
const char *a2,
long long a3,
int a4,
int a5,
int a6)
{
if ( *(_QWORD *)&LefDefParser::lefwFile )
{
if ( LefDefParser::lefwIsRoutingMinCut && !LefDefParser::lefwIsRoutingMinCutDist )
{
if ( LefDefParser::lefwWriteEncrypt )
LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"\n %s ", (_DWORD)this, a4, a5, a6);
else
fprintf(*(_QWORD *)&LefDefParser::lefwFile, "\n %s ", (const char *)this);
++LefDefParser::lefwLines;
LefDefParser::prtSemiColon = 1;
LefDefParser::lefwIsRoutingMinCutDist = 1;
if ( LefDefParser::lefwIsRoutingMinCutLen )
LefDefParser::lefwIsRoutingMinCut = 0;
return 0;
}
else
{
return 2;
}
}
else
{
return 1;
}
}
|
lefwLayerRoutingMinimumcutConnections:
SUB RSP,0x18
MOV qword ptr [RSP + 0x8],RDI
LEA RAX,[0x132e00]
CMP qword ptr [RAX],0x0
JNZ 0x00110853
MOV dword ptr [RSP + 0x14],0x1
JMP 0x0011090a
LAB_00110853:
LEA RAX,[0x1330c8]
CMP dword ptr [RAX],0x0
JZ 0x0011086b
LEA RAX,[0x1330cc]
CMP dword ptr [RAX],0x0
JZ 0x00110878
LAB_0011086b:
MOV dword ptr [RSP + 0x14],0x2
JMP 0x0011090a
LAB_00110878:
CMP dword ptr [0x001330ec],0x0
JZ 0x001108a0
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOV RDX,qword ptr [RSP + 0x8]
LEA RSI,[0x12a469]
MOV AL,0x0
CALL 0x001289b0
JMP 0x001108bd
LAB_001108a0:
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOV RDX,qword ptr [RSP + 0x8]
LEA RSI,[0x12a469]
MOV AL,0x0
CALL 0x00101100
LAB_001108bd:
LEA RAX,[0x13304c]
MOV ECX,dword ptr [RAX]
ADD ECX,0x1
LEA RAX,[0x13304c]
MOV dword ptr [RAX],ECX
MOV dword ptr [0x001330f4],0x1
LEA RAX,[0x1330cc]
MOV dword ptr [RAX],0x1
LEA RAX,[0x1330d0]
CMP dword ptr [RAX],0x0
JZ 0x00110902
LEA RAX,[0x1330c8]
MOV dword ptr [RAX],0x0
LAB_00110902:
MOV dword ptr [RSP + 0x14],0x0
LAB_0011090a:
MOV EAX,dword ptr [RSP + 0x14]
ADD RSP,0x18
RET
|
/* LefDefParser::lefwLayerRoutingMinimumcutConnections(char const*) */
int4 LefDefParser::lefwLayerRoutingMinimumcutConnections(char *param_1)
{
int4 local_4;
if (lefwFile == (_IO_FILE *)0x0) {
local_4 = 1;
}
else if ((lefwIsRoutingMinCut == 0) || (lefwIsRoutingMinCutDist != 0)) {
local_4 = 2;
}
else {
if (lefwWriteEncrypt == 0) {
fprintf(lefwFile,"\n %s ",param_1);
}
else {
encPrint(lefwFile,"\n %s ",param_1);
}
lefwLines = lefwLines + 1;
prtSemiColon = 1;
lefwIsRoutingMinCutDist = 1;
if (lefwIsRoutingMinCutLen != 0) {
lefwIsRoutingMinCut = 0;
}
local_4 = 0;
}
return local_4;
}
|
|
57,465
|
LefDefParser::lefiLayer::minstepMinBetLength(int) const
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiLayer.cpp
|
double
lefiLayer::minstepMinBetLength(int index) const
{
char msg[160];
if (index < 0 || index > numMinstep_) {
sprintf(msg, "ERROR (LEFPARS-1302): The index number %d given for the layer MINSTEP is invalid.\nValid index is from 0 to %d", index, numMinstep_);
lefiError(0, 1302, msg);
return 0;
}
return minstepMinBetLength_[index];
}
|
O0
|
cpp
|
LefDefParser::lefiLayer::minstepMinBetLength(int) const:
subq $0xc8, %rsp
movq %rdi, 0xb8(%rsp)
movl %esi, 0xb4(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpl $0x0, 0xb4(%rsp)
jl 0x280a1
movq 0x8(%rsp), %rcx
movl 0xb4(%rsp), %eax
cmpl 0x278(%rcx), %eax
jle 0x280e5
movq 0x8(%rsp), %rax
leaq 0x10(%rsp), %rdi
movl 0xb4(%rsp), %edx
movl 0x278(%rax), %ecx
leaq 0x4feeb(%rip), %rsi # 0x77faa
movb $0x0, %al
callq 0x2050
leaq 0x10(%rsp), %rdx
xorl %edi, %edi
movl $0x516, %esi # imm = 0x516
callq 0x3f4e0
xorps %xmm0, %xmm0
movsd %xmm0, 0xc0(%rsp)
jmp 0x28107
movq 0x8(%rsp), %rax
movq 0x2a8(%rax), %rax
movslq 0xb4(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, 0xc0(%rsp)
movsd 0xc0(%rsp), %xmm0
addq $0xc8, %rsp
retq
nopl (%rax,%rax)
|
_ZNK12LefDefParser9lefiLayer19minstepMinBetLengthEi:
sub rsp, 0C8h
mov [rsp+0C8h+var_10], rdi
mov [rsp+0C8h+var_14], esi
mov rax, [rsp+0C8h+var_10]
mov [rsp+0C8h+var_C0], rax
cmp [rsp+0C8h+var_14], 0
jl short loc_280A1
mov rcx, [rsp+0C8h+var_C0]
mov eax, [rsp+0C8h+var_14]
cmp eax, [rcx+278h]
jle short loc_280E5
loc_280A1:
mov rax, [rsp+0C8h+var_C0]
lea rdi, [rsp+0C8h+var_B8]
mov edx, [rsp+0C8h+var_14]
mov ecx, [rax+278h]
lea rsi, aErrorLefpars13_19; "ERROR (LEFPARS-1302): The index number "...
mov al, 0
call _sprintf
lea rdx, [rsp+0C8h+var_B8]; int
xor edi, edi; this
mov esi, 516h; int
call _ZN12LefDefParser9lefiErrorEiiPKc; LefDefParser::lefiError(int,int,char const*)
xorps xmm0, xmm0
movsd [rsp+0C8h+var_8], xmm0
jmp short loc_28107
loc_280E5:
mov rax, [rsp+0C8h+var_C0]
mov rax, [rax+2A8h]
movsxd rcx, [rsp+0C8h+var_14]
movsd xmm0, qword ptr [rax+rcx*8]
movsd [rsp+0C8h+var_8], xmm0
loc_28107:
movsd xmm0, [rsp+0C8h+var_8]
add rsp, 0C8h
retn
|
double LefDefParser::lefiLayer::minstepMinBetLength(LefDefParser::lefiLayer *this, int a2)
{
const char *v2; // rcx
int v4[41]; // [rsp+10h] [rbp-B8h] BYREF
int v5; // [rsp+B4h] [rbp-14h]
LefDefParser::lefiLayer *v6; // [rsp+B8h] [rbp-10h]
v6 = this;
v5 = a2;
if ( a2 >= 0 && v5 <= *((_DWORD *)this + 158) )
return *(double *)(*((_QWORD *)this + 85) + 8LL * v5);
sprintf(
v4,
"ERROR (LEFPARS-1302): The index number %d given for the layer MINSTEP is invalid.\nValid index is from 0 to %d",
v5,
*((_DWORD *)this + 158));
LefDefParser::lefiError(0LL, 1302, (int)v4, v2);
return 0.0;
}
|
minstepMinBetLength:
SUB RSP,0xc8
MOV qword ptr [RSP + 0xb8],RDI
MOV dword ptr [RSP + 0xb4],ESI
MOV RAX,qword ptr [RSP + 0xb8]
MOV qword ptr [RSP + 0x8],RAX
CMP dword ptr [RSP + 0xb4],0x0
JL 0x001280a1
MOV RCX,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RSP + 0xb4]
CMP EAX,dword ptr [RCX + 0x278]
JLE 0x001280e5
LAB_001280a1:
MOV RAX,qword ptr [RSP + 0x8]
LEA RDI,[RSP + 0x10]
MOV EDX,dword ptr [RSP + 0xb4]
MOV ECX,dword ptr [RAX + 0x278]
LEA RSI,[0x177faa]
MOV AL,0x0
CALL 0x00102050
LEA RDX,[RSP + 0x10]
XOR EDI,EDI
MOV ESI,0x516
CALL 0x0013f4e0
XORPS XMM0,XMM0
MOVSD qword ptr [RSP + 0xc0],XMM0
JMP 0x00128107
LAB_001280e5:
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x2a8]
MOVSXD RCX,dword ptr [RSP + 0xb4]
MOVSD XMM0,qword ptr [RAX + RCX*0x8]
MOVSD qword ptr [RSP + 0xc0],XMM0
LAB_00128107:
MOVSD XMM0,qword ptr [RSP + 0xc0]
ADD RSP,0xc8
RET
|
/* LefDefParser::lefiLayer::minstepMinBetLength(int) const */
int8 __thiscall LefDefParser::lefiLayer::minstepMinBetLength(lefiLayer *this,int param_1)
{
char local_b8 [164];
int local_14;
lefiLayer *local_10;
int8 local_8;
if ((param_1 < 0) || (*(int *)(this + 0x278) < param_1)) {
local_14 = param_1;
local_10 = this;
sprintf(local_b8,
"ERROR (LEFPARS-1302): The index number %d given for the layer MINSTEP is invalid.\nValid index is from 0 to %d"
,(ulong)(uint)param_1,(ulong)*(uint *)(this + 0x278));
lefiError(0,0x516,local_b8);
local_8 = 0;
}
else {
local_8 = *(int8 *)(*(long *)(this + 0x2a8) + (long)param_1 * 8);
}
return local_8;
}
|
|
57,466
|
Settings::setLastResult(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
666mxvbee[P]BattleShip/lib/Settings/Settings.cpp
|
void Settings::setLastResult(const std::string& res) {
std::lock_guard<std::mutex> lock(settings_mutex);
lastResult = res;
}
|
O1
|
cpp
|
Settings::setLastResult(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0x5500
testl %eax, %eax
jne 0x6fc1
leaq 0xd8(%rbx), %rdi
movq %r14, %rsi
callq 0x759a
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x52d0
movl %eax, %edi
callq 0x5260
movq %rax, %r14
movq %rbx, %rdi
callq 0x52d0
movq %r14, %rdi
callq 0x55e0
nop
|
_ZN8Settings13setLastResultERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
call _pthread_mutex_lock
test eax, eax
jnz short loc_6FC1
lea rdi, [rbx+0D8h]
mov rsi, r14
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
mov rdi, rbx
add rsp, 8
pop rbx
pop r14
jmp _pthread_mutex_unlock
loc_6FC1:
mov edi, eax; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
mov r14, rax
mov rdi, rbx
call _pthread_mutex_unlock
mov rdi, r14
call __Unwind_Resume
|
long long Settings::setLastResult(long long a1, long long a2)
{
int v2; // eax
v2 = pthread_mutex_lock(a1);
if ( v2 )
std::__throw_system_error(v2);
std::string::_M_assign(a1 + 216, a2);
return pthread_mutex_unlock(a1);
}
|
setLastResult:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
CALL 0x00105500
TEST EAX,EAX
JNZ 0x00106fc1
LEA RDI,[RBX + 0xd8]
LAB_00106faa:
MOV RSI,R14
CALL 0x0010759a
LAB_00106fb2:
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x001052d0
LAB_00106fc1:
MOV EDI,EAX
CALL 0x00105260
|
/* Settings::setLastResult(std::__cxx11::string const&) */
void __thiscall Settings::setLastResult(Settings *this,string *param_1)
{
int iVar1;
iVar1 = pthread_mutex_lock((pthread_mutex_t *)this);
if (iVar1 == 0) {
/* try { // try from 00106faa to 00106fb1 has its CatchHandler @ 00106fc8 */
std::__cxx11::string::_M_assign((string *)(this + 0xd8),param_1);
pthread_mutex_unlock((pthread_mutex_t *)this);
return;
}
/* WARNING: Subroutine does not return */
std::__throw_system_error(iVar1);
}
|
|
57,467
|
spdlog::details::pid_formatter<spdlog::details::null_scoped_padder>::format(spdlog::details::log_msg const&, tm const&, fmt::v10::basic_memory_buffer<char, 250ul, std::allocator<char>>&)
|
AlayaLite/build_O3/_deps/spdlog-src/include/spdlog/pattern_formatter-inl.h
|
void format(const details::log_msg &, const std::tm &, memory_buf_t &dest) override {
const auto pid = static_cast<uint32_t>(details::os::pid());
auto field_size = ScopedPadder::count_digits(pid);
ScopedPadder p(field_size, padinfo_, dest);
fmt_helper::append_int(pid, dest);
}
|
O3
|
c
|
spdlog::details::pid_formatter<spdlog::details::null_scoped_padder>::format(spdlog::details::log_msg const&, tm const&, fmt::v10::basic_memory_buffer<char, 250ul, std::allocator<char>>&):
pushq %rbx
subq $0x20, %rsp
movq %rcx, %rbx
callq 0x11d90
leaq 0x15(%rsp), %rsi
leaq 0x47e85(%rip), %rcx # 0x81aa2
cmpl $0x64, %eax
jb 0x39c50
movl %eax, %edx
imulq $0x51eb851f, %rdx, %rdx # imm = 0x51EB851F
shrq $0x25, %rdx
imull $0x64, %edx, %edi
movl %eax, %r8d
subl %edi, %r8d
movzwl (%rcx,%r8,2), %edi
movw %di, -0x2(%rsi)
addq $-0x2, %rsi
cmpl $0x270f, %eax # imm = 0x270F
movl %edx, %eax
ja 0x39c22
jmp 0x39c52
movl %eax, %edx
cmpl $0x9, %edx
ja 0x39c62
orb $0x30, %dl
movb %dl, -0x1(%rsi)
decq %rsi
jmp 0x39c70
movl %edx, %eax
movzwl (%rcx,%rax,2), %eax
movw %ax, -0x2(%rsi)
addq $-0x2, %rsi
leaq 0x15(%rsp), %rdx
movq %rsi, 0x3(%rdx)
movq %rbx, %rdi
callq 0x2fac6
addq $0x20, %rsp
popq %rbx
retq
nop
|
_ZN6spdlog7details13pid_formatterINS0_18null_scoped_padderEE6formatERKNS0_7log_msgERK2tmRN3fmt3v1019basic_memory_bufferIcLm250ESaIcEEE:
push rbx
sub rsp, 20h
mov rbx, rcx
call _getpid
lea rsi, [rsp+28h+var_13]
lea rcx, a00010203040506; "000102030405060708091011121314151617181"...
cmp eax, 64h ; 'd'
jb short loc_39C50
loc_39C22:
mov edx, eax
imul rdx, 51EB851Fh
shr rdx, 25h
imul edi, edx, 64h ; 'd'
mov r8d, eax
sub r8d, edi
movzx edi, word ptr [rcx+r8*2]
mov [rsi-2], di
add rsi, 0FFFFFFFFFFFFFFFEh
cmp eax, 270Fh
mov eax, edx
ja short loc_39C22
jmp short loc_39C52
loc_39C50:
mov edx, eax
loc_39C52:
cmp edx, 9
ja short loc_39C62
or dl, 30h
mov [rsi-1], dl
dec rsi
jmp short loc_39C70
loc_39C62:
mov eax, edx
movzx eax, word ptr [rcx+rax*2]
mov [rsi-2], ax
add rsi, 0FFFFFFFFFFFFFFFEh
loc_39C70:
lea rdx, [rsp+28h+var_13]
mov [rdx+3], rsi
mov rdi, rbx
call _ZN3fmt3v106detail6bufferIcE6appendIcEEvPKT_S7_; fmt::v10::detail::buffer<char>::append<char>(char const*,char const*)
add rsp, 20h
pop rbx
retn
|
long long spdlog::details::pid_formatter<spdlog::details::null_scoped_padder>::format(
spdlog::details::os *a1,
long long a2,
long long a3,
long long a4)
{
unsigned int v5; // eax
_BYTE *v6; // rsi
unsigned int v7; // edx
bool v8; // cf
bool v9; // zf
long long v10; // rsi
_BYTE v12[3]; // [rsp+15h] [rbp-13h] BYREF
long long v13; // [rsp+18h] [rbp-10h]
v5 = getpid(a1);
v6 = v12;
if ( v5 < 0x64 )
{
v7 = v5;
}
else
{
do
{
v7 = v5 / 0x64;
*((_WORD *)v6 - 1) = *(_WORD *)&a00010203040506[2 * (v5 % 0x64)];
v6 -= 2;
v8 = v5 < 0x270F;
v9 = v5 == 9999;
v5 /= 0x64u;
}
while ( !v8 && !v9 );
}
if ( v7 > 9 )
{
*((_WORD *)v6 - 1) = *(_WORD *)&a00010203040506[2 * v7];
v10 = (long long)(v6 - 2);
}
else
{
*(v6 - 1) = v7 | 0x30;
v10 = (long long)(v6 - 1);
}
v13 = v10;
return fmt::v10::detail::buffer<char>::append<char>(a4, v10, (long long)v12);
}
|
format:
PUSH RBX
SUB RSP,0x20
MOV RBX,RCX
CALL 0x00111d90
LEA RSI,[RSP + 0x15]
LEA RCX,[0x181aa2]
CMP EAX,0x64
JC 0x00139c50
LAB_00139c22:
MOV EDX,EAX
IMUL RDX,RDX,0x51eb851f
SHR RDX,0x25
IMUL EDI,EDX,0x64
MOV R8D,EAX
SUB R8D,EDI
MOVZX EDI,word ptr [RCX + R8*0x2]
MOV word ptr [RSI + -0x2],DI
ADD RSI,-0x2
CMP EAX,0x270f
MOV EAX,EDX
JA 0x00139c22
JMP 0x00139c52
LAB_00139c50:
MOV EDX,EAX
LAB_00139c52:
CMP EDX,0x9
JA 0x00139c62
OR DL,0x30
MOV byte ptr [RSI + -0x1],DL
DEC RSI
JMP 0x00139c70
LAB_00139c62:
MOV EAX,EDX
MOVZX EAX,word ptr [RCX + RAX*0x2]
MOV word ptr [RSI + -0x2],AX
ADD RSI,-0x2
LAB_00139c70:
LEA RDX,[RSP + 0x15]
MOV qword ptr [RDX + 0x3],RSI
MOV RDI,RBX
CALL 0x0012fac6
ADD RSP,0x20
POP RBX
RET
|
/* spdlog::details::pid_formatter<spdlog::details::null_scoped_padder>::format(spdlog::details::log_msg
const&, tm const&, fmt::v10::basic_memory_buffer<char, 250ul, std::allocator<char> >&) */
void spdlog::details::pid_formatter<spdlog::details::null_scoped_padder>::format
(log_msg *param_1,tm *param_2,basic_memory_buffer *param_3)
{
bool bVar1;
uint uVar2;
uint uVar3;
buffer<char> *in_RCX;
char *pcVar4;
byte abStack_1a [5];
int2 local_15;
char local_13 [3];
char *local_10;
uVar2 = getpid();
pcVar4 = local_13;
uVar3 = uVar2;
if (99 < uVar2) {
do {
uVar2 = uVar3 / 100;
*(int2 *)(pcVar4 + -2) = *(int2 *)(&DAT_00181aa2 + (ulong)(uVar3 % 100) * 2);
pcVar4 = pcVar4 + -2;
bVar1 = 9999 < uVar3;
uVar3 = uVar3 / 100;
} while (bVar1);
}
if (uVar2 < 10) {
pcVar4[-1] = (byte)uVar2 | 0x30;
local_10 = pcVar4 + -1;
}
else {
*(int2 *)(pcVar4 + -2) = *(int2 *)(&DAT_00181aa2 + (ulong)uVar2 * 2);
local_10 = pcVar4 + -2;
}
fmt::v10::detail::buffer<char>::append<char>(in_RCX,local_10,local_13);
return;
}
|
|
57,468
|
test_mdev12965
|
eloqsql/libmariadb/unittest/libmariadb/misc.c
|
static int test_mdev12965(MYSQL *unused __attribute__((unused)))
{
MYSQL *mysql;
my_bool reconnect = 0;
FILE *fp= NULL;
const char *env= getenv("MYSQL_TMP_DIR");
char cnf_file1[FN_REFLEN + 1];
SKIP_SKYSQL;
if (travis_test)
return SKIP;
if (!env)
env= "/tmp";
setenv("HOME", env, 1);
snprintf(cnf_file1, FN_REFLEN, "%s%c.my.cnf", env, FN_LIBCHAR);
diag("Config file: %s", cnf_file1);
FAIL_IF(!access(cnf_file1, R_OK), "access");
mysql= mysql_init(NULL);
fp= fopen(cnf_file1, "w");
FAIL_IF(!fp, "fopen");
fprintf(fp, "[client]\ndefault-character-set=latin2\nreconnect=1\n");
fclose(fp);
mysql_options(mysql, MYSQL_READ_DEFAULT_GROUP, "");
my_test_connect(mysql, hostname, username, password,
schema, port, socketname, 0);
remove(cnf_file1);
FAIL_IF(strcmp(mysql_character_set_name(mysql), "latin2"), "expected charset latin2");
mysql_get_optionv(mysql, MYSQL_OPT_RECONNECT, &reconnect);
FAIL_IF(reconnect != 1, "expected reconnect=1");
mysql_close(mysql);
return OK;
}
|
O3
|
c
|
test_mdev12965:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x228, %rsp # imm = 0x228
movq %fs:0x28, %rax
movq %rax, -0x20(%rbp)
movb $0x0, -0x231(%rbp)
leaq 0x24b07(%rip), %rdi # 0x39a40
callq 0x135b0
movq %rax, %r14
movq 0x3b4e8(%rip), %rdi # 0x50430
testq %rdi, %rdi
je 0x14f76
leaq 0x24afa(%rip), %rsi # 0x39a4e
callq 0x13100
testq %rax, %rax
je 0x14f76
leaq 0x24af7(%rip), %rdi # 0x39a5c
xorl %eax, %eax
callq 0x1970b
movl $0xffffffff, %ebx # imm = 0xFFFFFFFF
jmp 0x15162
movl $0xffffffff, %ebx # imm = 0xFFFFFFFF
cmpb $0x0, 0x3b4ee(%rip) # 0x50470
jne 0x15162
testq %r14, %r14
leaq 0x24ae2(%rip), %r15 # 0x39a74
cmovneq %r14, %r15
leaq 0x288fe(%rip), %rdi # 0x3d89b
movl $0x1, %ebx
movq %r15, %rsi
movl $0x1, %edx
callq 0x136f0
subq $0x8, %rsp
leaq 0x24abf(%rip), %r8 # 0x39a79
leaq -0x230(%rbp), %r14
movl $0x200, %esi # imm = 0x200
movl $0x201, %ecx # imm = 0x201
movq %r14, %rdi
movl $0x1, %edx
movq %r15, %r9
xorl %eax, %eax
pushq $0x2f
callq 0x132d0
addq $0x10, %rsp
leaq 0x24a9b(%rip), %rdi # 0x39a85
movq %r14, %rsi
xorl %eax, %eax
callq 0x1970b
movq %r14, %rdi
movl $0x4, %esi
callq 0x13790
testl %eax, %eax
je 0x150de
xorl %edi, %edi
callq 0x1cb31
movq %rax, %r14
leaq 0x28750(%rip), %rsi # 0x3d76a
leaq -0x230(%rbp), %rdi
callq 0x13530
testq %rax, %rax
je 0x150fa
movq %rax, %r15
leaq 0x24a69(%rip), %rdx # 0x39aa2
movq %rax, %rdi
movl $0x1, %esi
xorl %eax, %eax
callq 0x13770
movq %r15, %rdi
callq 0x13470
leaq 0x251b1(%rip), %rdx # 0x3a208
movq %r14, %rdi
movl $0x5, %esi
callq 0x20d9d
movq 0x3b3c5(%rip), %rsi # 0x50430
movq 0x3b3c6(%rip), %rdx # 0x50438
movq 0x3b3c7(%rip), %rcx # 0x50440
movq 0x3b3c8(%rip), %r8 # 0x50448
movl 0x3b3c9(%rip), %r9d # 0x50450
movq %r14, %rdi
pushq $0x0
pushq 0x3b3c6(%rip) # 0x50458
callq 0x1421d
addq $0x10, %rsp
leaq -0x230(%rbp), %rdi
callq 0x137f0
movq %r14, %rdi
callq 0x20ed4
leaq 0x24a30(%rip), %rsi # 0x39ae6
movq %rax, %rdi
callq 0x13660
testl %eax, %eax
je 0x15116
leaq 0x24057(%rip), %rdi # 0x39120
leaq 0x24a05(%rip), %rsi # 0x39ad5
leaq 0x24897(%rip), %rdx # 0x3996e
movl $0x499, %ecx # imm = 0x499
jmp 0x1515b
leaq 0x2403b(%rip), %rdi # 0x39120
leaq 0x249a9(%rip), %rsi # 0x39a95
leaq 0x2487b(%rip), %rdx # 0x3996e
movl $0x48a, %ecx # imm = 0x48A
jmp 0x1515b
leaq 0x2401f(%rip), %rdi # 0x39120
leaq 0x24994(%rip), %rsi # 0x39a9c
leaq 0x2485f(%rip), %rdx # 0x3996e
movl $0x48e, %ecx # imm = 0x48E
jmp 0x1515b
leaq -0x231(%rbp), %r15
movq %r14, %rdi
movl $0x14, %esi
movq %r15, %rdx
xorl %eax, %eax
callq 0x20762
cmpb $0x1, (%r15)
jne 0x15141
movq %r14, %rdi
callq 0x1e888
xorl %ebx, %ebx
jmp 0x15162
leaq 0x23fd8(%rip), %rdi # 0x39120
leaq 0x2499e(%rip), %rsi # 0x39aed
leaq 0x24818(%rip), %rdx # 0x3996e
movl $0x49b, %ecx # imm = 0x49B
xorl %eax, %eax
callq 0x1970b
movq %fs:0x28, %rax
cmpq -0x20(%rbp), %rax
jne 0x15181
movl %ebx, %eax
addq $0x228, %rsp # imm = 0x228
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x13510
|
test_mdev12965:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 228h
mov rax, fs:28h
mov [rbp+var_20], rax
mov [rbp+var_231], 0
lea rdi, aMysqlTmpDir; "MYSQL_TMP_DIR"
call _getenv
mov r14, rax
mov rdi, cs:hostname
test rdi, rdi
jz short loc_14F76
lea rsi, aDbSkysqlNet; "db.skysql.net"
call _strstr
test rax, rax
jz short loc_14F76
lea rdi, aNotSupportedBy; "Not supported by SkySQL"
xor eax, eax
call diag
mov ebx, 0FFFFFFFFh
jmp loc_15162
loc_14F76:
mov ebx, 0FFFFFFFFh
cmp cs:travis_test, 0
jnz loc_15162
test r14, r14
lea r15, aTmp; "/tmp"
cmovnz r15, r14
lea rdi, aMariadbHome+8; "HOME"
mov ebx, 1
mov rsi, r15
mov edx, 1
call _setenv
sub rsp, 8
lea r8, aSCMyCnf; "%s%c.my.cnf"
lea r14, [rbp+var_230]
mov esi, 200h
mov ecx, 201h
mov rdi, r14
mov edx, 1
mov r9, r15
xor eax, eax
push 2Fh ; '/'
call ___snprintf_chk
add rsp, 10h
lea rdi, aConfigFileS; "Config file: %s"
mov rsi, r14
xor eax, eax
call diag
mov rdi, r14
mov esi, 4
call _access
test eax, eax
jz loc_150DE
xor edi, edi
call mysql_init
mov r14, rax
lea rsi, aHebrew_1+5; "w"
lea rdi, [rbp+var_230]
call _fopen64
test rax, rax
jz loc_150FA
mov r15, rax
lea rdx, aClientDefaultC; "[client]\ndefault-character-set=latin2"...
mov rdi, rax
mov esi, 1
xor eax, eax
call ___fprintf_chk
mov rdi, r15
call _fclose
lea rdx, aDDD+12h; ""
mov rdi, r14
mov esi, 5
call mysql_options
mov rsi, cs:hostname
mov rdx, cs:username
mov rcx, cs:password
mov r8, cs:schema
mov r9d, cs:port
mov rdi, r14
push 0
push cs:socketname
call my_test_connect
add rsp, 10h
lea rdi, [rbp+var_230]
call _remove
mov rdi, r14
call mysql_character_set_name
lea rsi, aExpectedCharse+11h; "latin2"
mov rdi, rax
call _strcmp
test eax, eax
jz short loc_15116
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aExpectedCharse; "expected charset latin2"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 499h
jmp short loc_1515B
loc_150DE:
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aAccess_0; "access"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 48Ah
jmp short loc_1515B
loc_150FA:
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aFopen; "fopen"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 48Eh
jmp short loc_1515B
loc_15116:
lea r15, [rbp+var_231]
mov rdi, r14
mov esi, 14h
mov rdx, r15
xor eax, eax
call mysql_get_optionv
cmp byte ptr [r15], 1
jnz short loc_15141
mov rdi, r14
call mysql_close
xor ebx, ebx
jmp short loc_15162
loc_15141:
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aExpectedReconn; "expected reconnect=1"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 49Bh
loc_1515B:
xor eax, eax
call diag
loc_15162:
mov rax, fs:28h
cmp rax, [rbp+var_20]
jnz short loc_15181
mov eax, ebx
add rsp, 228h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_15181:
call ___stack_chk_fail
|
long long test_mdev12965()
{
long long v0; // r14
int v1; // edx
int v2; // ecx
int v3; // r8d
int v4; // r9d
unsigned int v5; // ebx
const char *v6; // r15
int v7; // edx
int v8; // ecx
int v9; // r8d
int v10; // r9d
int v11; // r8d
int v12; // r9d
long long v13; // r14
long long v14; // rax
long long v15; // r15
long long v16; // rax
int v17; // ecx
const char *v18; // rsi
int v19; // ecx
char v21; // [rsp+Fh] [rbp-231h] BYREF
_BYTE v22[528]; // [rsp+10h] [rbp-230h] BYREF
unsigned long long v23; // [rsp+220h] [rbp-20h]
v23 = __readfsqword(0x28u);
v21 = 0;
v0 = getenv("MYSQL_TMP_DIR");
if ( hostname && strstr(hostname, "db.skysql.net") )
{
diag((unsigned int)"Not supported by SkySQL", (unsigned int)"db.skysql.net", v1, v2, v3, v4);
return (unsigned int)-1;
}
else
{
v5 = -1;
if ( !travis_test )
{
v6 = "/tmp";
if ( v0 )
v6 = (const char *)v0;
v5 = 1;
setenv("HOME", v6, 1LL);
__snprintf_chk(v22, 512LL, 1LL, 513LL, "%s%c.my.cnf", v6, 47LL);
diag((unsigned int)"Config file: %s", (unsigned int)v22, v7, v8, v9, v10);
if ( (unsigned int)access(v22, 4LL) )
{
v13 = mysql_init(0LL);
v14 = fopen64(v22, "w");
if ( v14 )
{
v15 = v14;
__fprintf_chk(v14, 1LL, "[client]\ndefault-character-set=latin2\nreconnect=1\n");
fclose(v15);
mysql_options(v13, 5LL, "");
my_test_connect(v13, hostname, username, password, schema, port, socketname, 0LL);
remove(v22);
v16 = mysql_character_set_name(v13);
if ( !(unsigned int)strcmp(v16, "latin2") )
{
mysql_get_optionv(v13, 20, (unsigned int)&v21, v17, v11, v12);
if ( v21 == 1 )
{
mysql_close(v13);
return 0;
}
v18 = "expected reconnect=1";
v19 = 1179;
}
else
{
v18 = "expected charset latin2";
v19 = 1177;
}
}
else
{
v18 = "fopen";
v19 = 1166;
}
}
else
{
v18 = "access";
v19 = 1162;
}
diag(
(unsigned int)"Error: %s (%s: %d)",
(_DWORD)v18,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c",
v19,
v11,
v12);
}
}
return v5;
}
|
test_mdev12965:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x228
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV byte ptr [RBP + -0x231],0x0
LEA RDI,[0x139a40]
CALL 0x001135b0
MOV R14,RAX
MOV RDI,qword ptr [0x00150430]
TEST RDI,RDI
JZ 0x00114f76
LEA RSI,[0x139a4e]
CALL 0x00113100
TEST RAX,RAX
JZ 0x00114f76
LEA RDI,[0x139a5c]
XOR EAX,EAX
CALL 0x0011970b
MOV EBX,0xffffffff
JMP 0x00115162
LAB_00114f76:
MOV EBX,0xffffffff
CMP byte ptr [0x00150470],0x0
JNZ 0x00115162
TEST R14,R14
LEA R15,[0x139a74]
CMOVNZ R15,R14
LEA RDI,[0x13d89b]
MOV EBX,0x1
MOV RSI,R15
MOV EDX,0x1
CALL 0x001136f0
SUB RSP,0x8
LEA R8,[0x139a79]
LEA R14,[RBP + -0x230]
MOV ESI,0x200
MOV ECX,0x201
MOV RDI,R14
MOV EDX,0x1
MOV R9,R15
XOR EAX,EAX
PUSH 0x2f
CALL 0x001132d0
ADD RSP,0x10
LEA RDI,[0x139a85]
MOV RSI,R14
XOR EAX,EAX
CALL 0x0011970b
MOV RDI,R14
MOV ESI,0x4
CALL 0x00113790
TEST EAX,EAX
JZ 0x001150de
XOR EDI,EDI
CALL 0x0011cb31
MOV R14,RAX
LEA RSI,[0x13d76a]
LEA RDI,[RBP + -0x230]
CALL 0x00113530
TEST RAX,RAX
JZ 0x001150fa
MOV R15,RAX
LEA RDX,[0x139aa2]
MOV RDI,RAX
MOV ESI,0x1
XOR EAX,EAX
CALL 0x00113770
MOV RDI,R15
CALL 0x00113470
LEA RDX,[0x13a208]
MOV RDI,R14
MOV ESI,0x5
CALL 0x00120d9d
MOV RSI,qword ptr [0x00150430]
MOV RDX,qword ptr [0x00150438]
MOV RCX,qword ptr [0x00150440]
MOV R8,qword ptr [0x00150448]
MOV R9D,dword ptr [0x00150450]
MOV RDI,R14
PUSH 0x0
PUSH qword ptr [0x00150458]
CALL 0x0011421d
ADD RSP,0x10
LEA RDI,[RBP + -0x230]
CALL 0x001137f0
MOV RDI,R14
CALL 0x00120ed4
LEA RSI,[0x139ae6]
MOV RDI,RAX
CALL 0x00113660
TEST EAX,EAX
JZ 0x00115116
LEA RDI,[0x139120]
LEA RSI,[0x139ad5]
LEA RDX,[0x13996e]
MOV ECX,0x499
JMP 0x0011515b
LAB_001150de:
LEA RDI,[0x139120]
LEA RSI,[0x139a95]
LEA RDX,[0x13996e]
MOV ECX,0x48a
JMP 0x0011515b
LAB_001150fa:
LEA RDI,[0x139120]
LEA RSI,[0x139a9c]
LEA RDX,[0x13996e]
MOV ECX,0x48e
JMP 0x0011515b
LAB_00115116:
LEA R15,[RBP + -0x231]
MOV RDI,R14
MOV ESI,0x14
MOV RDX,R15
XOR EAX,EAX
CALL 0x00120762
CMP byte ptr [R15],0x1
JNZ 0x00115141
MOV RDI,R14
CALL 0x0011e888
XOR EBX,EBX
JMP 0x00115162
LAB_00115141:
LEA RDI,[0x139120]
LEA RSI,[0x139aed]
LEA RDX,[0x13996e]
MOV ECX,0x49b
LAB_0011515b:
XOR EAX,EAX
CALL 0x0011970b
LAB_00115162:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x20]
JNZ 0x00115181
MOV EAX,EBX
ADD RSP,0x228
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00115181:
CALL 0x00113510
|
int8 test_mdev12965(void)
{
int iVar1;
char *pcVar2;
char *pcVar3;
int8 uVar4;
FILE *__stream;
int8 uVar5;
long in_FS_OFFSET;
char local_239;
char local_238 [528];
long local_28;
local_28 = *(long *)(in_FS_OFFSET + 0x28);
local_239 = '\0';
pcVar2 = getenv("MYSQL_TMP_DIR");
if (hostname != (char *)0x0) {
pcVar3 = strstr(hostname,"db.skysql.net");
if (pcVar3 != (char *)0x0) {
diag("Not supported by SkySQL");
uVar5 = 0xffffffff;
goto LAB_00115162;
}
}
uVar5 = 0xffffffff;
if (travis_test == '\0') {
pcVar3 = "/tmp";
if (pcVar2 != (char *)0x0) {
pcVar3 = pcVar2;
}
uVar5 = 1;
setenv("HOME",pcVar3,1);
__snprintf_chk(local_238,0x200,1,0x201,"%s%c.my.cnf",pcVar3,0x2f);
diag("Config file: %s",local_238);
iVar1 = access(local_238,4);
if (iVar1 == 0) {
pcVar2 = "access";
uVar4 = 0x48a;
}
else {
uVar4 = mysql_init(0);
__stream = fopen64(local_238,"w");
if (__stream == (FILE *)0x0) {
pcVar2 = "fopen";
uVar4 = 0x48e;
}
else {
__fprintf_chk(__stream,1,"[client]\ndefault-character-set=latin2\nreconnect=1\n");
fclose(__stream);
mysql_options(uVar4,5,&DAT_0013a208);
my_test_connect(uVar4,hostname,username,password,schema,port,socketname,0);
remove(local_238);
pcVar2 = (char *)mysql_character_set_name(uVar4);
iVar1 = strcmp(pcVar2,"latin2");
if (iVar1 == 0) {
mysql_get_optionv(uVar4,0x14,&local_239);
if (local_239 == '\x01') {
mysql_close(uVar4);
uVar5 = 0;
goto LAB_00115162;
}
pcVar2 = "expected reconnect=1";
uVar4 = 0x49b;
}
else {
pcVar2 = "expected charset latin2";
uVar4 = 0x499;
}
}
}
diag("Error: %s (%s: %d)",pcVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c",uVar4);
}
LAB_00115162:
if (*(long *)(in_FS_OFFSET + 0x28) == local_28) {
return uVar5;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
57,469
|
_JS_NewAtomInit
|
bluesky950520[P]quickjs/quickjs.c
|
static JSAtom __JS_NewAtomInit(JSRuntime *rt, const char *str, int len,
int atom_type)
{
JSString *p;
p = js_alloc_string_rt(rt, len, 0);
if (!p)
return JS_ATOM_NULL;
memcpy(p->u.str8, str, len);
p->u.str8[len] = '\0';
return __JS_NewAtom(rt, p, atom_type);
}
|
O2
|
c
|
_JS_NewAtomInit:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %r14
movl %edx, %esi
xorl %edx, %edx
callq 0x38615
testq %rax, %rax
je 0x1e6da
movq %rax, %r12
movq %rax, %rdi
addq $0x18, %rdi
movslq %ebp, %r13
movq %r15, %rsi
movq %r13, %rdx
callq 0xe630
movb $0x0, 0x18(%r12,%r13)
movq %r14, %rdi
movq %r12, %rsi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1e0eb
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
__JS_NewAtomInit:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov ebx, ecx
mov ebp, edx
mov r15, rsi
mov r14, rdi
mov esi, edx
xor edx, edx
call js_alloc_string_rt
test rax, rax
jz short loc_1E6DA
mov r12, rax
mov rdi, rax
add rdi, 18h
movsxd r13, ebp
mov rsi, r15
mov rdx, r13
call _memcpy
mov byte ptr [r12+r13+18h], 0
mov rdi, r14
mov rsi, r12
mov edx, ebx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp __JS_NewAtom
loc_1E6DA:
xor eax, eax
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long _JS_NewAtomInit(long long a1, long long a2, unsigned int a3, unsigned int a4)
{
long long v6; // rax
_QWORD *v7; // r12
v6 = js_alloc_string_rt(a1, a3, 0LL);
if ( !v6 )
return 0LL;
v7 = (_QWORD *)v6;
memcpy(v6 + 24, a2, (int)a3);
*((_BYTE *)v7 + (int)a3 + 24) = 0;
return _JS_NewAtom(a1, v7, a4);
}
|
__JS_NewAtomInit:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV EBX,ECX
MOV EBP,EDX
MOV R15,RSI
MOV R14,RDI
MOV ESI,EDX
XOR EDX,EDX
CALL 0x00138615
TEST RAX,RAX
JZ 0x0011e6da
MOV R12,RAX
MOV RDI,RAX
ADD RDI,0x18
MOVSXD R13,EBP
MOV RSI,R15
MOV RDX,R13
CALL 0x0010e630
MOV byte ptr [R12 + R13*0x1 + 0x18],0x0
MOV RDI,R14
MOV RSI,R12
MOV EDX,EBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0011e0eb
LAB_0011e6da:
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 __JS_NewAtomInit(int8 param_1,void *param_2,int param_3,int4 param_4)
{
long lVar1;
int8 uVar2;
lVar1 = js_alloc_string_rt(param_1,param_3,0);
if (lVar1 != 0) {
memcpy((void *)(lVar1 + 0x18),param_2,(long)param_3);
*(int1 *)(lVar1 + 0x18 + (long)param_3) = 0;
uVar2 = __JS_NewAtom(param_1,lVar1,param_4);
return uVar2;
}
return 0;
}
|
|
57,470
|
ma_rec_unpack
|
eloqsql/storage/maria/ma_dynrec.c
|
size_t _ma_rec_unpack(register MARIA_HA *info, register uchar *to, uchar *from,
size_t found_length)
{
uint flag,bit,length,min_pack_length, column_length;
enum en_fieldtype type;
uchar *from_end,*to_end,*packpos;
reg3 MARIA_COLUMNDEF *column, *end_column;
DBUG_ENTER("_ma_rec_unpack");
to_end=to + info->s->base.reclength;
from_end=from+found_length;
flag= (uchar) *from; bit=1; packpos=from;
if (found_length < info->s->base.min_pack_length)
goto err;
from+= info->s->base.pack_bytes;
min_pack_length= info->s->base.min_pack_length - info->s->base.pack_bytes;
if ((length= info->s->base.null_bytes))
{
memcpy(to, from, length);
from+= length;
to+= length;
min_pack_length-= length;
}
for (column= info->s->columndef, end_column= column + info->s->base.fields;
column < end_column ; to+= column_length, column++)
{
column_length= column->length;
if ((type = (enum en_fieldtype) column->type) != FIELD_NORMAL &&
(type != FIELD_CHECK))
{
if (type == FIELD_VARCHAR)
{
uint pack_length= HA_VARCHAR_PACKLENGTH(column_length-1);
if (pack_length == 1)
{
length= (uint) *(uchar*) from;
if (length > column_length-1)
goto err;
*to= *from++;
}
else
{
get_key_length(length, from);
if (length > column_length-2)
goto err;
int2store(to,length);
}
if (from+length > from_end)
goto err;
memcpy(to+pack_length, from, length);
MEM_UNDEFINED(to+pack_length + length,
column_length - length - pack_length);
from+= length;
min_pack_length--;
continue;
}
if (flag & bit)
{
if (type == FIELD_BLOB || type == FIELD_SKIP_ZERO)
bzero(to, column_length);
else if (type == FIELD_SKIP_ENDSPACE ||
type == FIELD_SKIP_PRESPACE)
{
if (column->length > 255 && *from & 128)
{
if (from + 1 >= from_end)
goto err;
length= (*from & 127)+ ((uint) (uchar) *(from+1) << 7); from+=2;
}
else
{
if (from == from_end)
goto err;
length= (uchar) *from++;
}
min_pack_length--;
if (length >= column_length ||
min_pack_length + length > (uint) (from_end - from))
goto err;
if (type == FIELD_SKIP_ENDSPACE)
{
memcpy(to, from, (size_t) length);
bfill(to+length, column_length-length, ' ');
}
else
{
bfill(to, column_length-length, ' ');
memcpy(to+column_length-length, from, (size_t) length);
}
from+=length;
}
}
else if (type == FIELD_BLOB)
{
uint size_length=column_length- portable_sizeof_char_ptr;
ulong blob_length= _ma_calc_blob_length(size_length,from);
ulong from_left= (ulong) (from_end - from);
if (from_left < size_length ||
from_left - size_length < blob_length ||
from_left - size_length - blob_length < min_pack_length)
goto err;
memcpy(to, from, (size_t) size_length);
from+=size_length;
memcpy(to+size_length,(uchar*) &from,sizeof(char*));
from+=blob_length;
}
else
{
if (type == FIELD_SKIP_ENDSPACE || type == FIELD_SKIP_PRESPACE)
min_pack_length--;
if (min_pack_length + column_length > (uint) (from_end - from))
goto err;
memcpy(to, from, (size_t) column_length); from+=column_length;
}
if ((bit= bit << 1) >= 256)
{
flag= (uchar) *++packpos; bit=1;
}
}
else
{
if (min_pack_length > (uint) (from_end - from))
goto err;
min_pack_length-=column_length;
memcpy(to, from, (size_t) column_length);
from+=column_length;
}
}
if (info->s->calc_checksum)
info->cur_row.checksum= (uint) (uchar) *from++;
if (to == to_end && from == from_end && (bit == 1 || !(flag & ~(bit-1))))
DBUG_RETURN(found_length);
err:
_ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD);
DBUG_PRINT("error",("to_end: %p -> %p from_end: %p -> %p",
to, to_end, from, from_end));
DBUG_DUMP("from", info->rec_buff, info->s->base.min_pack_length);
DBUG_RETURN(MY_FILE_ERROR);
}
|
O3
|
c
|
ma_rec_unpack:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, -0x58(%rbp)
movq %rdi, -0x50(%rbp)
movq (%rdi), %rax
movq 0x3a8(%rax), %r12
movq %rcx, -0x68(%rbp)
cmpq %rcx, %r12
jbe 0x49638
movq -0x50(%rbp), %rdi
movl $0x7f, %esi
callq 0x405a4
movq $-0x1, -0x68(%rbp)
movq -0x68(%rbp), %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %r15
movq 0x398(%rax), %r14
addq %rsi, %r14
movq -0x58(%rbp), %rdx
movzbl (%rdx), %ecx
movl %ecx, -0x44(%rbp)
movl 0x3f4(%rax), %r13d
movl 0x3fc(%rax), %ebx
subl %r13d, %r12d
addq %rdx, %r13
testq %rbx, %rbx
je 0x49685
movq %r15, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x29080
addq %rbx, %r13
addq %rbx, %r15
subl %ebx, %r12d
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
movq -0x58(%rbp), %rdx
addq %rdx, %rcx
movq %rcx, -0x38(%rbp)
movl 0x3c8(%rax), %ecx
testq %rcx, %rcx
je 0x4999b
movq %r14, -0x70(%rbp)
movq 0x588(%rax), %rbx
imulq $0x38, %rcx, %rax
addq %rbx, %rax
movq %rax, -0x78(%rbp)
movl $0x1, -0x2c(%rbp)
movzwl 0x8(%rbx), %r14d
movl (%rbx), %eax
testl %eax, %eax
je 0x4970d
cmpl $0x9, %eax
je 0x4970d
cmpl $0x8, %eax
jne 0x49736
leal -0x1(%r14), %edx
cmpl $0x100, %edx # imm = 0x100
movl $0x2, %edi
sbbq $0x0, %rdi
movb (%r13), %cl
movzbl %cl, %eax
cmpl $0xff, %edx
ja 0x49758
cmpl %eax, %edx
jb 0x4960f
incq %r13
movb %cl, (%r15)
movq %r13, %rsi
jmp 0x4984a
movq -0x38(%rbp), %rax
subl %r13d, %eax
cmpl %eax, %r12d
ja 0x4960f
subl %r14d, %r12d
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x29080
addq %r14, %r13
jmp 0x49964
movl -0x2c(%rbp), %ecx
testl %ecx, -0x44(%rbp)
je 0x49769
leal -0x3(%rax), %ecx
cmpl $0x1, %ecx
ja 0x49799
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x292b0
jmp 0x4993a
cmpb $-0x1, %cl
je 0x49825
incq %r13
jmp 0x49835
cmpl $0x4, %eax
jne 0x4986a
leal -0x9(%r14), %eax
cmpl $0x3, %eax
ja 0x498e8
leaq 0x97cd6(%rip), %rcx # 0xe145c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movzbl (%r13), %r8d
jmp 0x498eb
cmpl $0x2, %eax
ja 0x4993a
cmpl $0x100, %r14d # imm = 0x100
jb 0x497b8
movzbl (%r13), %ecx
testb %cl, %cl
js 0x49977
cmpq -0x38(%rbp), %r13
je 0x4960f
movzbl (%r13), %esi
incq %r13
movl %r14d, %r8d
subl %esi, %r8d
jbe 0x4960f
decl %r12d
leal (%rsi,%r12), %ecx
movq -0x38(%rbp), %rdx
subl %r13d, %edx
cmpl %edx, %ecx
ja 0x4960f
cmpl $0x1, %eax
jne 0x4989c
movl %esi, %edx
movq %rdx, -0x40(%rbp)
movq %r15, %rdi
movq %r13, %rsi
movq %r8, -0x60(%rbp)
callq 0x29080
movq -0x40(%rbp), %rax
leaq (%r15,%rax), %rdi
movl $0x20, %esi
movq -0x60(%rbp), %rdx
callq 0x292b0
jmp 0x49936
movzwl 0x1(%r13), %eax
rolw $0x8, %ax
movzwl %ax, %eax
addq $0x3, %r13
movq %r13, %rsi
movl %r14d, %ecx
addl $-0x2, %ecx
cmpl %ecx, %eax
ja 0x4960f
movw %ax, (%r15)
movl %eax, %edx
leaq (%rsi,%rdx), %r13
cmpq -0x38(%rbp), %r13
ja 0x4960f
addq %r15, %rdi
callq 0x29080
decl %r12d
jmp 0x49964
cmpl $0x3, %eax
sbbl $0x0, %r12d
movl %r14d, %eax
addl %r12d, %eax
movq -0x38(%rbp), %rcx
subl %r13d, %ecx
cmpl %ecx, %eax
ja 0x4960f
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x29080
addq %r14, %r13
jmp 0x4993a
movq %r15, %rdi
movq %rsi, -0x40(%rbp)
movl $0x20, %esi
movq %r8, %rdx
callq 0x292b0
leaq (%r15,%r14), %rdi
movl -0x40(%rbp), %edx
subq %rdx, %rdi
movq %r13, %rsi
movq %rdx, -0x40(%rbp)
callq 0x29080
jmp 0x49936
movzwl (%r13), %eax
movzbl 0x2(%r13), %r8d
shll $0x10, %r8d
orq %rax, %r8
jmp 0x498eb
movl (%r13), %r8d
jmp 0x498eb
movzwl (%r13), %r8d
jmp 0x498eb
xorl %r8d, %r8d
movl %r14d, %ecx
addl $-0x8, %ecx
movq -0x38(%rbp), %rax
subq %r13, %rax
movl %ecx, %edx
subq %rdx, %rax
jb 0x4960f
subq %r8, %rax
jb 0x4960f
movl %r12d, %ecx
cmpq %rcx, %rax
jb 0x4960f
movq %r15, %rdi
movq %r13, %rsi
movq %r8, -0x40(%rbp)
movq %rdx, -0x60(%rbp)
callq 0x29080
movq -0x60(%rbp), %rax
addq %rax, %r13
movq %r13, (%r15,%rax)
addq -0x40(%rbp), %r13
movl -0x2c(%rbp), %eax
addl %eax, %eax
cmpl $0x100, %eax # imm = 0x100
jae 0x4994b
movl %eax, -0x2c(%rbp)
jmp 0x49964
movq -0x58(%rbp), %rcx
movzbl 0x1(%rcx), %eax
movl %eax, -0x44(%rbp)
incq %rcx
movq %rcx, -0x58(%rbp)
movl $0x1, -0x2c(%rbp)
addq %r14, %r15
addq $0x38, %rbx
cmpq -0x78(%rbp), %rbx
jb 0x496c0
jmp 0x499a4
leaq 0x1(%r13), %rdx
cmpq -0x38(%rbp), %rdx
jae 0x4960f
andl $0x7f, %ecx
movzbl 0x1(%r13), %esi
shll $0x7, %esi
orl %ecx, %esi
addq $0x2, %r13
jmp 0x497ca
movl $0x1, -0x2c(%rbp)
jmp 0x499af
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq -0x70(%rbp), %r14
cmpq $0x0, 0x6a8(%rax)
je 0x499cb
movzbl (%r13), %eax
incq %r13
movq -0x50(%rbp), %rcx
movl %eax, 0xb0(%rcx)
cmpq %r14, %r15
jne 0x4960f
cmpq -0x38(%rbp), %r13
jne 0x4960f
movl -0x2c(%rbp), %eax
cmpl $0x1, %eax
je 0x49625
negl %eax
testl %eax, -0x44(%rbp)
jne 0x4960f
jmp 0x49625
|
_ma_rec_unpack:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov [rbp+var_58], rdx
mov [rbp+var_50], rdi
mov rax, [rdi]
mov r12, [rax+3A8h]
mov [rbp+var_68], rcx
cmp r12, rcx
jbe short loc_49638
loc_4960F:
mov rdi, [rbp+var_50]
mov esi, 7Fh
call _ma_set_fatal_error
mov [rbp+var_68], 0FFFFFFFFFFFFFFFFh
loc_49625:
mov rax, [rbp+var_68]
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_49638:
mov r15, rsi
mov r14, [rax+398h]
add r14, rsi
mov rdx, [rbp+var_58]
movzx ecx, byte ptr [rdx]
mov [rbp+var_44], ecx
mov r13d, [rax+3F4h]
mov ebx, [rax+3FCh]
sub r12d, r13d
add r13, rdx
test rbx, rbx
jz short loc_49685
mov rdi, r15
mov rsi, r13
mov rdx, rbx
call _memcpy
add r13, rbx
add r15, rbx
sub r12d, ebx
mov rax, [rbp+var_50]
mov rax, [rax]
loc_49685:
mov rcx, [rbp+var_68]
mov rdx, [rbp+var_58]
add rcx, rdx
mov [rbp+var_38], rcx
mov ecx, [rax+3C8h]
test rcx, rcx
jz loc_4999B
mov [rbp+var_70], r14
mov rbx, [rax+588h]
imul rax, rcx, 38h ; '8'
add rax, rbx
mov [rbp+var_78], rax
mov [rbp+var_2C], 1
loc_496C0:
movzx r14d, word ptr [rbx+8]
mov eax, [rbx]
test eax, eax
jz short loc_4970D
cmp eax, 9
jz short loc_4970D
cmp eax, 8
jnz short loc_49736
lea edx, [r14-1]
cmp edx, 100h
mov edi, 2
sbb rdi, 0
mov cl, [r13+0]
movzx eax, cl
cmp edx, 0FFh
ja short loc_49758
cmp edx, eax
jb loc_4960F
inc r13
mov [r15], cl
mov rsi, r13
jmp loc_4984A
loc_4970D:
mov rax, [rbp+var_38]
sub eax, r13d
cmp r12d, eax
ja loc_4960F
sub r12d, r14d
mov rdi, r15
mov rsi, r13
mov rdx, r14
call _memcpy
add r13, r14
jmp loc_49964
loc_49736:
mov ecx, [rbp+var_2C]
test [rbp+var_44], ecx
jz short loc_49769
lea ecx, [rax-3]
cmp ecx, 1
ja short loc_49799
mov rdi, r15
xor esi, esi
mov rdx, r14
call _memset
jmp loc_4993A
loc_49758:
cmp cl, 0FFh
jz loc_49825
inc r13
jmp loc_49835
loc_49769:
cmp eax, 4
jnz loc_4986A
lea eax, [r14-9]; switch 4 cases
cmp eax, 3
ja def_4978D; jumptable 000000000004978D default case
lea rcx, jpt_4978D
movsxd rax, ds:(jpt_4978D - 0E145Ch)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_4978F:
movzx r8d, byte ptr [r13+0]; jumptable 000000000004978D case 9
jmp loc_498EB
loc_49799:
cmp eax, 2
ja loc_4993A
cmp r14d, 100h
jb short loc_497B8
movzx ecx, byte ptr [r13+0]
test cl, cl
js loc_49977
loc_497B8:
cmp r13, [rbp+var_38]
jz loc_4960F
movzx esi, byte ptr [r13+0]
inc r13
loc_497CA:
mov r8d, r14d
sub r8d, esi
jbe loc_4960F
dec r12d
lea ecx, [rsi+r12]
mov rdx, [rbp+var_38]
sub edx, r13d
cmp ecx, edx
ja loc_4960F
cmp eax, 1
jnz loc_4989C
mov edx, esi
mov [rbp+var_40], rdx
mov rdi, r15
mov rsi, r13
mov [rbp+var_60], r8
call _memcpy
mov rax, [rbp+var_40]
lea rdi, [r15+rax]
mov esi, 20h ; ' '
mov rdx, [rbp+var_60]
call _memset
jmp loc_49936
loc_49825:
movzx eax, word ptr [r13+1]
rol ax, 8
movzx eax, ax
add r13, 3
loc_49835:
mov rsi, r13
mov ecx, r14d
add ecx, 0FFFFFFFEh
cmp eax, ecx
ja loc_4960F
mov [r15], ax
loc_4984A:
mov edx, eax
lea r13, [rsi+rdx]
cmp r13, [rbp+var_38]
ja loc_4960F
add rdi, r15
call _memcpy
dec r12d
jmp loc_49964
loc_4986A:
cmp eax, 3
sbb r12d, 0
mov eax, r14d
add eax, r12d
mov rcx, [rbp+var_38]
sub ecx, r13d
cmp eax, ecx
ja loc_4960F
mov rdi, r15
mov rsi, r13
mov rdx, r14
call _memcpy
add r13, r14
jmp loc_4993A
loc_4989C:
mov rdi, r15
mov [rbp+var_40], rsi
mov esi, 20h ; ' '
mov rdx, r8
call _memset
lea rdi, [r15+r14]
mov edx, dword ptr [rbp+var_40]
sub rdi, rdx
mov rsi, r13
mov [rbp+var_40], rdx
call _memcpy
jmp short loc_49936
loc_498C8:
movzx eax, word ptr [r13+0]; jumptable 000000000004978D case 11
movzx r8d, byte ptr [r13+2]
shl r8d, 10h
or r8, rax
jmp short loc_498EB
loc_498DB:
mov r8d, [r13+0]; jumptable 000000000004978D case 12
jmp short loc_498EB
loc_498E1:
movzx r8d, word ptr [r13+0]; jumptable 000000000004978D case 10
jmp short loc_498EB
def_4978D:
xor r8d, r8d; jumptable 000000000004978D default case
loc_498EB:
mov ecx, r14d
add ecx, 0FFFFFFF8h
mov rax, [rbp+var_38]
sub rax, r13
mov edx, ecx
sub rax, rdx
jb loc_4960F
sub rax, r8
jb loc_4960F
mov ecx, r12d
cmp rax, rcx
jb loc_4960F
mov rdi, r15
mov rsi, r13
mov [rbp+var_40], r8
mov [rbp+var_60], rdx
call _memcpy
mov rax, [rbp+var_60]
add r13, rax
mov [r15+rax], r13
loc_49936:
add r13, [rbp+var_40]
loc_4993A:
mov eax, [rbp+var_2C]
add eax, eax
cmp eax, 100h
jnb short loc_4994B
mov [rbp+var_2C], eax
jmp short loc_49964
loc_4994B:
mov rcx, [rbp+var_58]
movzx eax, byte ptr [rcx+1]
mov [rbp+var_44], eax
inc rcx
mov [rbp+var_58], rcx
mov [rbp+var_2C], 1
loc_49964:
add r15, r14
add rbx, 38h ; '8'
cmp rbx, [rbp+var_78]
jb loc_496C0
jmp short loc_499A4
loc_49977:
lea rdx, [r13+1]
cmp rdx, [rbp+var_38]
jnb loc_4960F
and ecx, 7Fh
movzx esi, byte ptr [r13+1]
shl esi, 7
or esi, ecx
add r13, 2
jmp loc_497CA
loc_4999B:
mov [rbp+var_2C], 1
jmp short loc_499AF
loc_499A4:
mov rax, [rbp+var_50]
mov rax, [rax]
mov r14, [rbp+var_70]
loc_499AF:
cmp qword ptr [rax+6A8h], 0
jz short loc_499CB
movzx eax, byte ptr [r13+0]
inc r13
mov rcx, [rbp+var_50]
mov [rcx+0B0h], eax
loc_499CB:
cmp r15, r14
jnz loc_4960F
cmp r13, [rbp+var_38]
jnz loc_4960F
mov eax, [rbp+var_2C]
cmp eax, 1
jz loc_49625
neg eax
test [rbp+var_44], eax
jnz loc_4960F
jmp loc_49625
|
long long ma_rec_unpack(_DWORD *a1, _WORD *a2, long long a3, unsigned long long a4, unsigned long long a5, int a6)
{
long long v6; // rax
unsigned long long v7; // r12
_WORD *v9; // r15
_WORD *v10; // r14
long long v11; // r13
long long v12; // rbx
unsigned int v13; // r12d
unsigned __int8 *v14; // r13
unsigned long long v15; // rbx
long long v16; // r14
unsigned int v17; // eax
long long v18; // rdi
unsigned int v19; // eax
unsigned __int8 *v20; // rsi
unsigned __int8 *v21; // r13
unsigned int v22; // esi
unsigned __int8 *v23; // r13
unsigned long long v24; // rax
bool v25; // cf
unsigned long long v26; // rax
long long v27; // rax
int v28; // eax
unsigned long long v29; // [rsp+8h] [rbp-78h]
_WORD *v30; // [rsp+10h] [rbp-70h]
unsigned long long v31; // [rsp+18h] [rbp-68h]
long long v32; // [rsp+28h] [rbp-58h]
int v34; // [rsp+3Ch] [rbp-44h]
unsigned long long v35; // [rsp+40h] [rbp-40h]
unsigned long long v36; // [rsp+48h] [rbp-38h]
int v37; // [rsp+54h] [rbp-2Ch]
v32 = a3;
v6 = *(_QWORD *)a1;
v7 = *(_QWORD *)(*(_QWORD *)a1 + 936LL);
v31 = a4;
if ( v7 > a4 )
{
LABEL_2:
ma_set_fatal_error(a1, 127, a3, a4, a5, a6);
return -1LL;
}
v9 = a2;
v10 = (_WORD *)((char *)a2 + *(_QWORD *)(v6 + 920));
v34 = *(unsigned __int8 *)a3;
v11 = *(unsigned int *)(v6 + 1012);
v12 = *(unsigned int *)(v6 + 1020);
v13 = v7 - v11;
v14 = (unsigned __int8 *)(a3 + v11);
if ( *(_DWORD *)(v6 + 1020) )
{
memcpy(a2, v14, *(unsigned int *)(v6 + 1020));
v14 += v12;
v9 = (_WORD *)((char *)a2 + v12);
v13 -= v12;
v6 = *(_QWORD *)a1;
}
a3 = v32;
v36 = v32 + v31;
a4 = *(unsigned int *)(v6 + 968);
if ( *(_DWORD *)(v6 + 968) )
{
v30 = v10;
v15 = *(_QWORD *)(v6 + 1416);
v29 = v15 + 56 * a4;
v37 = 1;
while ( 1 )
{
v16 = *(unsigned __int16 *)(v15 + 8);
v17 = *(_DWORD *)v15;
if ( !*(_DWORD *)v15 || v17 == 9 )
{
if ( v13 > (int)v36 - (int)v14 )
goto LABEL_2;
v13 -= v16;
memcpy(v9, v14, *(unsigned __int16 *)(v15 + 8));
v14 += v16;
goto LABEL_53;
}
if ( v17 == 8 )
{
a3 = (unsigned int)(v16 - 1);
v18 = 2LL - ((unsigned int)a3 < 0x100);
LOBYTE(a4) = *v14;
v19 = *v14;
if ( (unsigned int)a3 > 0xFF )
{
if ( (_BYTE)a4 == 0xFF )
{
v19 = (unsigned __int16)__ROL2__(*(_WORD *)(v14 + 1), 8);
v21 = v14 + 3;
}
else
{
v21 = v14 + 1;
}
v20 = v21;
a4 = (unsigned int)(v16 - 2);
if ( v19 > (unsigned int)a4 )
goto LABEL_2;
*v9 = v19;
}
else
{
if ( (unsigned int)a3 < v19 )
goto LABEL_2;
*(_BYTE *)v9 = a4;
v20 = v14 + 1;
}
a3 = v19;
v14 = &v20[v19];
if ( (unsigned long long)v14 > v36 )
goto LABEL_2;
memcpy((char *)v9 + v18, v20, v19);
--v13;
goto LABEL_53;
}
if ( (v37 & v34) == 0 )
break;
a4 = v17 - 3;
if ( (unsigned int)a4 <= 1 )
{
memset(v9, 0LL, *(unsigned __int16 *)(v15 + 8));
goto LABEL_50;
}
if ( v17 <= 2 )
{
if ( (unsigned int)v16 >= 0x100 && (a4 = *v14, (a4 & 0x80u) != 0LL) )
{
a3 = (long long)(v14 + 1);
if ( (unsigned long long)(v14 + 1) >= v36 )
goto LABEL_2;
a4 &= 0x7Fu;
v22 = a4 | (v14[1] << 7);
v23 = v14 + 2;
}
else
{
if ( v14 == (unsigned __int8 *)v36 )
goto LABEL_2;
v22 = *v14;
v23 = v14 + 1;
}
a5 = (unsigned int)v16 - v22;
if ( (unsigned int)v16 <= v22 )
goto LABEL_2;
--v13;
a4 = v22 + v13;
a3 = (unsigned int)(v36 - (_DWORD)v23);
if ( (unsigned int)a4 > (unsigned int)a3 )
goto LABEL_2;
if ( v17 == 1 )
{
v35 = v22;
memcpy(v9, v23, v22);
memset((char *)v9 + v22, 32LL, (unsigned int)v16 - v22);
}
else
{
memset(v9, 32LL, a5);
v35 = v22;
memcpy((char *)v9 + v16 - (unsigned int)v35, v23, (unsigned int)v35);
}
LABEL_49:
v14 = &v23[v35];
}
LABEL_50:
if ( (unsigned int)(2 * v37) >= 0x100 )
{
v34 = *(unsigned __int8 *)(v32 + 1);
a4 = ++v32;
v37 = 1;
}
else
{
v37 *= 2;
}
LABEL_53:
v9 = (_WORD *)((char *)v9 + v16);
v15 += 56LL;
if ( v15 >= v29 )
{
v6 = *(_QWORD *)a1;
v10 = v30;
goto LABEL_58;
}
}
if ( v17 != 4 )
{
v13 = (__PAIR64__(v13, v17) - 3) >> 32;
a4 = (unsigned int)(v36 - (_DWORD)v14);
if ( v13 + (unsigned int)v16 > (unsigned int)a4 )
goto LABEL_2;
memcpy(v9, v14, *(unsigned __int16 *)(v15 + 8));
v14 += v16;
goto LABEL_50;
}
switch ( *(_WORD *)(v15 + 8) )
{
case 9:
a5 = *v14;
break;
case 0xA:
a5 = *(unsigned __int16 *)v14;
break;
case 0xB:
a5 = *(unsigned __int16 *)v14 | (unsigned long long)(v14[2] << 16);
break;
case 0xC:
a5 = *(unsigned int *)v14;
break;
default:
a5 = 0LL;
break;
}
a4 = (unsigned int)(v16 - 8);
a3 = a4;
v24 = v36 - (_QWORD)v14 - a4;
if ( v36 - (unsigned long long)v14 < a4 )
goto LABEL_2;
v25 = v24 < a5;
v26 = v24 - a5;
if ( v25 )
goto LABEL_2;
a4 = v13;
if ( v26 < v13 )
goto LABEL_2;
v35 = a5;
memcpy(v9, v14, a3);
v27 = (unsigned int)(v16 - 8);
v23 = &v14[v27];
*(_QWORD *)((char *)v9 + v27) = v23;
goto LABEL_49;
}
v37 = 1;
LABEL_58:
if ( *(_QWORD *)(v6 + 1704) )
{
v28 = *v14++;
a4 = (unsigned long long)a1;
a1[44] = v28;
}
if ( v9 != v10 || v14 != (unsigned __int8 *)v36 || v37 != 1 && (-v37 & v34) != 0 )
goto LABEL_2;
return v31;
}
|
_ma_rec_unpack:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV qword ptr [RBP + -0x58],RDX
MOV qword ptr [RBP + -0x50],RDI
MOV RAX,qword ptr [RDI]
MOV R12,qword ptr [RAX + 0x3a8]
MOV qword ptr [RBP + -0x68],RCX
CMP R12,RCX
JBE 0x00149638
LAB_0014960f:
MOV RDI,qword ptr [RBP + -0x50]
MOV ESI,0x7f
CALL 0x001405a4
MOV qword ptr [RBP + -0x68],-0x1
LAB_00149625:
MOV RAX,qword ptr [RBP + -0x68]
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00149638:
MOV R15,RSI
MOV R14,qword ptr [RAX + 0x398]
ADD R14,RSI
MOV RDX,qword ptr [RBP + -0x58]
MOVZX ECX,byte ptr [RDX]
MOV dword ptr [RBP + -0x44],ECX
MOV R13D,dword ptr [RAX + 0x3f4]
MOV EBX,dword ptr [RAX + 0x3fc]
SUB R12D,R13D
ADD R13,RDX
TEST RBX,RBX
JZ 0x00149685
MOV RDI,R15
MOV RSI,R13
MOV RDX,RBX
CALL 0x00129080
ADD R13,RBX
ADD R15,RBX
SUB R12D,EBX
MOV RAX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RAX]
LAB_00149685:
MOV RCX,qword ptr [RBP + -0x68]
MOV RDX,qword ptr [RBP + -0x58]
ADD RCX,RDX
MOV qword ptr [RBP + -0x38],RCX
MOV ECX,dword ptr [RAX + 0x3c8]
TEST RCX,RCX
JZ 0x0014999b
MOV qword ptr [RBP + -0x70],R14
MOV RBX,qword ptr [RAX + 0x588]
IMUL RAX,RCX,0x38
ADD RAX,RBX
MOV qword ptr [RBP + -0x78],RAX
MOV dword ptr [RBP + -0x2c],0x1
LAB_001496c0:
MOVZX R14D,word ptr [RBX + 0x8]
MOV EAX,dword ptr [RBX]
TEST EAX,EAX
JZ 0x0014970d
CMP EAX,0x9
JZ 0x0014970d
CMP EAX,0x8
JNZ 0x00149736
LEA EDX,[R14 + -0x1]
CMP EDX,0x100
MOV EDI,0x2
SBB RDI,0x0
MOV CL,byte ptr [R13]
MOVZX EAX,CL
CMP EDX,0xff
JA 0x00149758
CMP EDX,EAX
JC 0x0014960f
INC R13
MOV byte ptr [R15],CL
MOV RSI,R13
JMP 0x0014984a
LAB_0014970d:
MOV RAX,qword ptr [RBP + -0x38]
SUB EAX,R13D
CMP R12D,EAX
JA 0x0014960f
SUB R12D,R14D
MOV RDI,R15
MOV RSI,R13
MOV RDX,R14
CALL 0x00129080
ADD R13,R14
JMP 0x00149964
LAB_00149736:
MOV ECX,dword ptr [RBP + -0x2c]
TEST dword ptr [RBP + -0x44],ECX
JZ 0x00149769
LEA ECX,[RAX + -0x3]
CMP ECX,0x1
JA 0x00149799
MOV RDI,R15
XOR ESI,ESI
MOV RDX,R14
CALL 0x001292b0
JMP 0x0014993a
LAB_00149758:
CMP CL,0xff
JZ 0x00149825
INC R13
JMP 0x00149835
LAB_00149769:
CMP EAX,0x4
JNZ 0x0014986a
LEA EAX,[R14 + -0x9]
CMP EAX,0x3
JA 0x001498e8
LEA RCX,[0x1e145c]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_9:
MOVZX R8D,byte ptr [R13]
JMP 0x001498eb
LAB_00149799:
CMP EAX,0x2
JA 0x0014993a
CMP R14D,0x100
JC 0x001497b8
MOVZX ECX,byte ptr [R13]
TEST CL,CL
JS 0x00149977
LAB_001497b8:
CMP R13,qword ptr [RBP + -0x38]
JZ 0x0014960f
MOVZX ESI,byte ptr [R13]
INC R13
LAB_001497ca:
MOV R8D,R14D
SUB R8D,ESI
JBE 0x0014960f
DEC R12D
LEA ECX,[RSI + R12*0x1]
MOV RDX,qword ptr [RBP + -0x38]
SUB EDX,R13D
CMP ECX,EDX
JA 0x0014960f
CMP EAX,0x1
JNZ 0x0014989c
MOV EDX,ESI
MOV qword ptr [RBP + -0x40],RDX
MOV RDI,R15
MOV RSI,R13
MOV qword ptr [RBP + -0x60],R8
CALL 0x00129080
MOV RAX,qword ptr [RBP + -0x40]
LEA RDI,[R15 + RAX*0x1]
MOV ESI,0x20
MOV RDX,qword ptr [RBP + -0x60]
CALL 0x001292b0
JMP 0x00149936
LAB_00149825:
MOVZX EAX,word ptr [R13 + 0x1]
ROL AX,0x8
MOVZX EAX,AX
ADD R13,0x3
LAB_00149835:
MOV RSI,R13
MOV ECX,R14D
ADD ECX,-0x2
CMP EAX,ECX
JA 0x0014960f
MOV word ptr [R15],AX
LAB_0014984a:
MOV EDX,EAX
LEA R13,[RSI + RDX*0x1]
CMP R13,qword ptr [RBP + -0x38]
JA 0x0014960f
ADD RDI,R15
CALL 0x00129080
DEC R12D
JMP 0x00149964
LAB_0014986a:
CMP EAX,0x3
SBB R12D,0x0
MOV EAX,R14D
ADD EAX,R12D
MOV RCX,qword ptr [RBP + -0x38]
SUB ECX,R13D
CMP EAX,ECX
JA 0x0014960f
MOV RDI,R15
MOV RSI,R13
MOV RDX,R14
CALL 0x00129080
ADD R13,R14
JMP 0x0014993a
LAB_0014989c:
MOV RDI,R15
MOV qword ptr [RBP + -0x40],RSI
MOV ESI,0x20
MOV RDX,R8
CALL 0x001292b0
LEA RDI,[R15 + R14*0x1]
MOV EDX,dword ptr [RBP + -0x40]
SUB RDI,RDX
MOV RSI,R13
MOV qword ptr [RBP + -0x40],RDX
CALL 0x00129080
JMP 0x00149936
caseD_b:
MOVZX EAX,word ptr [R13]
MOVZX R8D,byte ptr [R13 + 0x2]
SHL R8D,0x10
OR R8,RAX
JMP 0x001498eb
caseD_c:
MOV R8D,dword ptr [R13]
JMP 0x001498eb
caseD_a:
MOVZX R8D,word ptr [R13]
JMP 0x001498eb
default:
XOR R8D,R8D
LAB_001498eb:
MOV ECX,R14D
ADD ECX,-0x8
MOV RAX,qword ptr [RBP + -0x38]
SUB RAX,R13
MOV EDX,ECX
SUB RAX,RDX
JC 0x0014960f
SUB RAX,R8
JC 0x0014960f
MOV ECX,R12D
CMP RAX,RCX
JC 0x0014960f
MOV RDI,R15
MOV RSI,R13
MOV qword ptr [RBP + -0x40],R8
MOV qword ptr [RBP + -0x60],RDX
CALL 0x00129080
MOV RAX,qword ptr [RBP + -0x60]
ADD R13,RAX
MOV qword ptr [R15 + RAX*0x1],R13
LAB_00149936:
ADD R13,qword ptr [RBP + -0x40]
LAB_0014993a:
MOV EAX,dword ptr [RBP + -0x2c]
ADD EAX,EAX
CMP EAX,0x100
JNC 0x0014994b
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x00149964
LAB_0014994b:
MOV RCX,qword ptr [RBP + -0x58]
MOVZX EAX,byte ptr [RCX + 0x1]
MOV dword ptr [RBP + -0x44],EAX
INC RCX
MOV qword ptr [RBP + -0x58],RCX
MOV dword ptr [RBP + -0x2c],0x1
LAB_00149964:
ADD R15,R14
ADD RBX,0x38
CMP RBX,qword ptr [RBP + -0x78]
JC 0x001496c0
JMP 0x001499a4
LAB_00149977:
LEA RDX,[R13 + 0x1]
CMP RDX,qword ptr [RBP + -0x38]
JNC 0x0014960f
AND ECX,0x7f
MOVZX ESI,byte ptr [R13 + 0x1]
SHL ESI,0x7
OR ESI,ECX
ADD R13,0x2
JMP 0x001497ca
LAB_0014999b:
MOV dword ptr [RBP + -0x2c],0x1
JMP 0x001499af
LAB_001499a4:
MOV RAX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RAX]
MOV R14,qword ptr [RBP + -0x70]
LAB_001499af:
CMP qword ptr [RAX + 0x6a8],0x0
JZ 0x001499cb
MOVZX EAX,byte ptr [R13]
INC R13
MOV RCX,qword ptr [RBP + -0x50]
MOV dword ptr [RCX + 0xb0],EAX
LAB_001499cb:
CMP R15,R14
JNZ 0x0014960f
CMP R13,qword ptr [RBP + -0x38]
JNZ 0x0014960f
MOV EAX,dword ptr [RBP + -0x2c]
CMP EAX,0x1
JZ 0x00149625
NEG EAX
TEST dword ptr [RBP + -0x44],EAX
JNZ 0x0014960f
JMP 0x00149625
|
ulong _ma_rec_unpack(long *param_1,byte *param_2,byte *param_3,ulong param_4)
{
byte bVar1;
ushort uVar2;
int iVar3;
uint uVar4;
uint *puVar5;
ulong uVar6;
long lVar7;
uint *puVar8;
uint uVar9;
ulong __n;
ulong uVar10;
uint *puVar11;
uint uVar12;
uint uVar13;
uint *__src;
byte *__src_00;
ushort *__src_01;
byte *pbVar14;
byte *local_60;
uint local_4c;
size_t local_48;
uint local_34;
lVar7 = *param_1;
if (*(ulong *)(lVar7 + 0x3a8) <= param_4) {
pbVar14 = param_2 + *(long *)(lVar7 + 0x398);
local_4c = (uint)*param_3;
uVar4 = *(uint *)(lVar7 + 0x3fc);
uVar10 = (ulong)uVar4;
uVar13 = (int)*(ulong *)(lVar7 + 0x3a8) - *(uint *)(lVar7 + 0x3f4);
__src = (uint *)(param_3 + *(uint *)(lVar7 + 0x3f4));
if (uVar10 != 0) {
memcpy(param_2,__src,uVar10);
__src = (uint *)((long)__src + uVar10);
param_2 = param_2 + uVar10;
uVar13 = uVar13 - uVar4;
lVar7 = *param_1;
}
puVar8 = (uint *)(param_3 + param_4);
if ((ulong)*(uint *)(lVar7 + 0x3c8) == 0) {
local_34 = 1;
}
else {
puVar11 = *(uint **)(lVar7 + 0x588);
puVar5 = puVar11 + (ulong)*(uint *)(lVar7 + 0x3c8) * 0xe;
local_34 = 1;
local_60 = param_3;
do {
uVar2 = (ushort)puVar11[2];
uVar10 = (ulong)uVar2;
uVar4 = *puVar11;
iVar3 = (int)puVar8;
if ((uVar4 == 0) || (uVar4 == 9)) {
if ((uint)(iVar3 - (int)__src) < uVar13) goto LAB_0014960f;
uVar13 = uVar13 - uVar2;
memcpy(param_2,__src,uVar10);
__src = (uint *)((long)__src + uVar10);
}
else if (uVar4 == 8) {
uVar9 = uVar2 - 1;
bVar1 = (byte)*__src;
uVar4 = (uint)bVar1;
if (uVar9 < 0x100) {
if (uVar9 < bVar1) goto LAB_0014960f;
__src_00 = (byte *)((long)__src + 1);
*param_2 = bVar1;
}
else {
if (bVar1 == 0xff) {
uVar4 = (uint)(ushort)(*(ushort *)((long)__src + 1) << 8 |
*(ushort *)((long)__src + 1) >> 8);
__src_00 = (byte *)((long)__src + 3);
}
else {
__src_00 = (byte *)((long)__src + 1);
}
if (uVar2 - 2 < uVar4) goto LAB_0014960f;
*(short *)param_2 = (short)uVar4;
}
__src = (uint *)(__src_00 + uVar4);
if (puVar8 < __src) goto LAB_0014960f;
memcpy(param_2 + (2 - (ulong)(uVar9 < 0x100)),__src_00,(ulong)uVar4);
uVar13 = uVar13 - 1;
}
else {
if ((local_4c & local_34) == 0) {
if (uVar4 == 4) {
switch(uVar2) {
case 9:
local_48 = (size_t)(byte)*__src;
break;
case 10:
local_48 = (size_t)(ushort)*__src;
break;
case 0xb:
local_48 = (size_t)(uint3)*__src;
break;
case 0xc:
local_48 = (size_t)*__src;
break;
default:
local_48 = 0;
}
__n = (ulong)(uVar2 - 8);
uVar6 = ((long)puVar8 - (long)__src) - __n;
if ((((ulong)((long)puVar8 - (long)__src) < __n) || (uVar6 < local_48)) ||
(uVar6 - local_48 < (ulong)uVar13)) goto LAB_0014960f;
memcpy(param_2,__src,__n);
__src_01 = (ushort *)((long)__src + __n);
*(ushort **)(param_2 + __n) = __src_01;
LAB_00149936:
__src = (uint *)((long)__src_01 + local_48);
}
else {
uVar13 = uVar13 - (uVar4 < 3);
if ((uint)(iVar3 - (int)__src) < uVar2 + uVar13) goto LAB_0014960f;
memcpy(param_2,__src,uVar10);
__src = (uint *)((long)__src + uVar10);
}
}
else if (uVar4 - 3 < 2) {
memset(param_2,0,uVar10);
}
else if (uVar4 < 3) {
if ((uVar2 < 0x100) || (-1 < (char)(byte)*__src)) {
if (__src == puVar8) goto LAB_0014960f;
local_48 = (size_t)(byte)*__src;
__src_01 = (ushort *)((long)__src + 1);
}
else {
if (puVar8 <= (uint *)((long)__src + 1U)) goto LAB_0014960f;
local_48 = (size_t)((uint)*(byte *)((long)__src + 1) << 7 | (byte)*__src & 0x7f);
__src_01 = (ushort *)((long)__src + 2);
}
uVar9 = (uint)local_48;
uVar12 = uVar2 - uVar9;
if ((uVar9 <= uVar2 && uVar12 != 0) &&
(uVar13 = uVar13 - 1, uVar9 + uVar13 <= (uint)(iVar3 - (int)__src_01))) {
if (uVar4 == 1) {
memcpy(param_2,__src_01,local_48);
memset(param_2 + local_48,0x20,(ulong)uVar12);
}
else {
memset(param_2,0x20,(ulong)uVar12);
memcpy(param_2 + (uVar10 - local_48),__src_01,local_48);
}
goto LAB_00149936;
}
goto LAB_0014960f;
}
local_34 = local_34 * 2;
if (0xff < local_34) {
local_4c = (uint)local_60[1];
local_60 = local_60 + 1;
local_34 = 1;
}
}
param_2 = param_2 + uVar10;
puVar11 = puVar11 + 0xe;
} while (puVar11 < puVar5);
lVar7 = *param_1;
}
if (*(long *)(lVar7 + 0x6a8) != 0) {
uVar4 = *__src;
__src = (uint *)((long)__src + 1);
*(uint *)(param_1 + 0x16) = (uint)(byte)uVar4;
}
if ((param_2 == pbVar14) && (__src == puVar8)) {
if (local_34 == 1) {
return param_4;
}
if ((local_4c & -local_34) == 0) {
return param_4;
}
}
}
LAB_0014960f:
_ma_set_fatal_error(param_1,0x7f);
return 0xffffffffffffffff;
}
|
|
57,471
|
(anonymous namespace)::msgpack23_DoubleTypePacking_Test::~msgpack23_DoubleTypePacking_Test()
|
msgpack23/tests/type_packing_tests.cpp
|
TEST(msgpack23, DoubleTypePacking) {
for (auto i = -5; i < 5; ++i) {
double expected = 5.0 + static_cast<double>(i) * 23456.78 / 3.14;
msgpack23::Packer packer{};
auto data = packer(expected);
msgpack23::Unpacker unpacker{data};
double actual{};
unpacker(actual);
EXPECT_EQ(expected, actual);
}
for (auto i = -5; i < 5; ++i) {
double expected = static_cast<double>(i) * std::pow(0.1, std::abs(i));
msgpack23::Packer packer{};
auto data = packer(expected);
msgpack23::Unpacker unpacker{data};
double actual{};
unpacker(actual);
EXPECT_EQ(expected, actual);
}
}
|
O0
|
cpp
|
(anonymous namespace)::msgpack23_DoubleTypePacking_Test::~msgpack23_DoubleTypePacking_Test():
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x10(%rbp)
callq 0x74580
movq -0x10(%rbp), %rdi
movl $0x10, %esi
callq 0x16580
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
|
_ZN12_GLOBAL__N_132msgpack23_DoubleTypePacking_TestD0Ev:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]; this
mov [rbp+var_10], rdi
call _ZN12_GLOBAL__N_132msgpack23_DoubleTypePacking_TestD2Ev; `anonymous namespace'::msgpack23_DoubleTypePacking_Test::~msgpack23_DoubleTypePacking_Test()
mov rdi, [rbp+var_10]; void *
mov esi, 10h; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
add rsp, 10h
pop rbp
retn
|
void `anonymous namespace'::msgpack23_DoubleTypePacking_Test::~msgpack23_DoubleTypePacking_Test(
_anonymous_namespace_::msgpack23_DoubleTypePacking_Test *this)
{
`anonymous namespace'::msgpack23_DoubleTypePacking_Test::~msgpack23_DoubleTypePacking_Test(this);
operator delete(this, 0x10uLL);
}
|
~msgpack23_DoubleTypePacking_Test:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RDI
CALL 0x00174580
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x10
CALL 0x00116580
ADD RSP,0x10
POP RBP
RET
|
/* (anonymous namespace)::msgpack23_DoubleTypePacking_Test::~msgpack23_DoubleTypePacking_Test() */
void __thiscall
(anonymous_namespace)::msgpack23_DoubleTypePacking_Test::~msgpack23_DoubleTypePacking_Test
(msgpack23_DoubleTypePacking_Test *this)
{
~msgpack23_DoubleTypePacking_Test(this);
operator_delete(this,0x10);
return;
}
|
|
57,472
|
create_tailoring
|
eloqsql/strings/ctype-uca.c
|
static my_bool
create_tailoring(struct charset_info_st *cs,
MY_CHARSET_LOADER *loader)
{
MY_COLL_RULES rules;
MY_UCA_INFO new_uca, *src_uca= NULL;
int rc= 0;
uint i;
*loader->error= '\0';
if (!cs->tailoring)
return 0; /* Ok to add a collation without tailoring */
memset(&rules, 0, sizeof(rules));
rules.loader= loader;
rules.uca= cs->uca ? cs->uca : &my_uca_v400; /* For logical positions, etc */
memset(&new_uca, 0, sizeof(new_uca));
/* Parse ICU Collation Customization expression */
if ((rc= my_coll_rule_parse(&rules,
cs->tailoring,
cs->tailoring + strlen(cs->tailoring))))
goto ex;
if (rules.version == 520) /* Unicode-5.2.0 requested */
{
src_uca= &my_uca_v520;
cs->caseinfo= &my_unicase_unicode520;
}
else if (rules.version == 400) /* Unicode-4.0.0 requested */
{
src_uca= &my_uca_v400;
cs->caseinfo= &my_unicase_default;
}
else /* No Unicode version specified */
{
src_uca= cs->uca ? cs->uca : &my_uca_v400;
if (!cs->caseinfo)
cs->caseinfo= &my_unicase_default;
}
cs->levels_for_order= rules.strength ? rules.strength : 1;
for (i= 0; i != cs->levels_for_order; i++)
{
if ((rc= (src_uca->level[i].maxchar == 0)))
{
my_snprintf(loader->error, sizeof(loader->error) - 1,
"%s: no level #%d data for this Unicode version.",
cs->coll_name.str, i + 1);
goto ex;
}
if ((rc= init_weight_level(loader, &rules,
&new_uca.level[i], &src_uca->level[i])))
goto ex;
}
if (!(cs->uca= (MY_UCA_INFO *) (loader->once_alloc)(sizeof(MY_UCA_INFO))))
{
rc= 1;
goto ex;
}
cs->uca[0]= new_uca;
if (cs->levels_for_order > 1)
cs->coll= (cs->state & MY_CS_NOPAD) ?
&my_uca_collation_handler_nopad_multilevel_generic :
&my_uca_collation_handler_multilevel_generic;
ex:
(loader->free)(rules.rule);
if (rc != 0 && loader->error[0])
loader->reporter(ERROR_LEVEL, "%s", loader->error);
return rc;
}
|
O0
|
c
|
create_tailoring:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp # imm = 0x160
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq $0x0, -0x128(%rbp)
movl $0x0, -0x12c(%rbp)
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x38(%rax)
jne 0x549c3
movb $0x0, -0x1(%rbp)
jmp 0x54d00
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
movl $0x38, %edx
callq 0x24180
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x60(%rax)
je 0x549f7
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x138(%rbp)
jmp 0x54a07
leaq 0x26c662(%rip), %rax # 0x2c1060
movq %rax, -0x138(%rbp)
jmp 0x54a07
movq -0x138(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x120(%rbp), %rdi
xorl %esi, %esi
movl $0xd0, %edx
callq 0x24180
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x140(%rbp)
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x148(%rbp)
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x24120
movq -0x148(%rbp), %rdx
movq -0x140(%rbp), %rsi
addq %rax, %rdx
leaq -0x50(%rbp), %rdi
callq 0x54d10
movl %eax, -0x12c(%rbp)
cmpl $0x0, %eax
je 0x54a7a
jmp 0x54cb5
cmpl $0x208, -0x50(%rbp) # imm = 0x208
jne 0x54aa5
leaq 0x27173e(%rip), %rax # 0x2c61c8
movq %rax, -0x128(%rbp)
movq -0x10(%rbp), %rax
leaq 0x180294(%rip), %rcx # 0x1d4d30
movq %rcx, 0x78(%rax)
jmp 0x54b25
cmpl $0x190, -0x50(%rbp) # imm = 0x190
jne 0x54acd
leaq 0x26c5ab(%rip), %rax # 0x2c1060
movq %rax, -0x128(%rbp)
movq -0x10(%rbp), %rax
leaq 0x180239(%rip), %rcx # 0x1d4d00
movq %rcx, 0x78(%rax)
jmp 0x54b23
movq -0x10(%rbp), %rax
cmpq $0x0, 0x60(%rax)
je 0x54ae9
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x150(%rbp)
jmp 0x54af9
leaq 0x26c570(%rip), %rax # 0x2c1060
movq %rax, -0x150(%rbp)
jmp 0x54af9
movq -0x150(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x78(%rax)
jne 0x54b21
movq -0x10(%rbp), %rax
leaq 0x1801e3(%rip), %rcx # 0x1d4d00
movq %rcx, 0x78(%rax)
jmp 0x54b23
jmp 0x54b25
cmpl $0x0, -0x4c(%rbp)
je 0x54b36
movl -0x4c(%rbp), %eax
movl %eax, -0x154(%rbp)
jmp 0x54b43
movl $0x1, %eax
movl %eax, -0x154(%rbp)
jmp 0x54b43
movl -0x154(%rbp), %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0xb2(%rax)
movl $0x0, -0x130(%rbp)
movl -0x130(%rbp), %eax
movq -0x10(%rbp), %rcx
movzbl 0xb2(%rcx), %ecx
cmpl %ecx, %eax
je 0x54c34
movq -0x128(%rbp), %rax
movl -0x130(%rbp), %ecx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, (%rax)
sete %al
movb %al, %cl
andb $0x1, %cl
movzbl %cl, %ecx
movl %ecx, -0x12c(%rbp)
testb $0x1, %al
jne 0x54ba7
jmp 0x54bd6
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rcx
movl -0x130(%rbp), %r8d
addl $0x1, %r8d
movl $0x7f, %esi
leaq 0x2ec81(%rip), %rdx # 0x8384b
movb $0x0, %al
callq 0x7cfe0
jmp 0x54cb5
movq -0x18(%rbp), %rdi
leaq -0x120(%rbp), %rdx
movl -0x130(%rbp), %eax
imulq $0x38, %rax, %rax
addq %rax, %rdx
movq -0x128(%rbp), %rcx
movl -0x130(%rbp), %eax
imulq $0x38, %rax, %rax
addq %rax, %rcx
leaq -0x50(%rbp), %rsi
callq 0x54df0
movsbl %al, %eax
movl %eax, -0x12c(%rbp)
cmpl $0x0, %eax
je 0x54c1e
jmp 0x54cb5
jmp 0x54c20
movl -0x130(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x130(%rbp)
jmp 0x54b5f
movq -0x18(%rbp), %rax
movl $0xd0, %edi
callq *0x80(%rax)
movq -0x10(%rbp), %rcx
movq %rax, 0x60(%rcx)
cmpq $0x0, %rax
jne 0x54c5d
movl $0x1, -0x12c(%rbp)
jmp 0x54cb5
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rdi
leaq -0x120(%rbp), %rsi
movl $0xd0, %edx
callq 0x24200
movq -0x10(%rbp), %rax
movzbl 0xb2(%rax), %eax
cmpl $0x1, %eax
jle 0x54cb3
movq -0x10(%rbp), %rax
movl 0xc(%rax), %edx
andl $0x20000, %edx # imm = 0x20000
leaq 0x17d5e6(%rip), %rcx # 0x1d2280
leaq 0x17d64f(%rip), %rax # 0x1d22f0
cmpl $0x0, %edx
cmovneq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0xc0(%rax)
jmp 0x54cb5
movq -0x18(%rbp), %rax
movq 0x98(%rax), %rax
movq -0x30(%rbp), %rdi
callq *%rax
cmpl $0x0, -0x12c(%rbp)
je 0x54cf7
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x54cf7
movq -0x18(%rbp), %rax
movq 0xa0(%rax), %rcx
movq -0x18(%rbp), %rdx
xorl %edi, %edi
leaq 0x2f110(%rip), %rsi # 0x83e03
movb $0x0, %al
callq *%rcx
movl -0x12c(%rbp), %eax
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x160, %rsp # imm = 0x160
popq %rbp
retq
nopl (%rax)
|
create_tailoring:
push rbp
mov rbp, rsp
sub rsp, 160h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_128], 0
mov [rbp+var_12C], 0
mov rax, [rbp+var_18]
mov byte ptr [rax], 0
mov rax, [rbp+var_10]
cmp qword ptr [rax+38h], 0
jnz short loc_549C3
mov [rbp+var_1], 0
jmp loc_54D00
loc_549C3:
lea rdi, [rbp+var_50]
xor esi, esi
mov edx, 38h ; '8'
call _memset
mov rax, [rbp+var_18]
mov [rbp+var_28], rax
mov rax, [rbp+var_10]
cmp qword ptr [rax+60h], 0
jz short loc_549F7
mov rax, [rbp+var_10]
mov rax, [rax+60h]
mov [rbp+var_138], rax
jmp short loc_54A07
loc_549F7:
lea rax, my_uca_v400
mov [rbp+var_138], rax
jmp short $+2
loc_54A07:
mov rax, [rbp+var_138]
mov [rbp+var_48], rax
lea rdi, [rbp+var_120]
xor esi, esi
mov edx, 0D0h
call _memset
mov rax, [rbp+var_10]
mov rax, [rax+38h]
mov [rbp+var_140], rax
mov rax, [rbp+var_10]
mov rax, [rax+38h]
mov [rbp+var_148], rax
mov rax, [rbp+var_10]
mov rdi, [rax+38h]
call _strlen
mov rdx, [rbp+var_148]
mov rsi, [rbp+var_140]
add rdx, rax
lea rdi, [rbp+var_50]
call my_coll_rule_parse
mov [rbp+var_12C], eax
cmp eax, 0
jz short loc_54A7A
jmp loc_54CB5
loc_54A7A:
cmp [rbp+var_50], 208h
jnz short loc_54AA5
lea rax, my_uca_v520
mov [rbp+var_128], rax
mov rax, [rbp+var_10]
lea rcx, my_unicase_unicode520
mov [rax+78h], rcx
jmp loc_54B25
loc_54AA5:
cmp [rbp+var_50], 190h
jnz short loc_54ACD
lea rax, my_uca_v400
mov [rbp+var_128], rax
mov rax, [rbp+var_10]
lea rcx, my_unicase_default
mov [rax+78h], rcx
jmp short loc_54B23
loc_54ACD:
mov rax, [rbp+var_10]
cmp qword ptr [rax+60h], 0
jz short loc_54AE9
mov rax, [rbp+var_10]
mov rax, [rax+60h]
mov [rbp+var_150], rax
jmp short loc_54AF9
loc_54AE9:
lea rax, my_uca_v400
mov [rbp+var_150], rax
jmp short $+2
loc_54AF9:
mov rax, [rbp+var_150]
mov [rbp+var_128], rax
mov rax, [rbp+var_10]
cmp qword ptr [rax+78h], 0
jnz short loc_54B21
mov rax, [rbp+var_10]
lea rcx, my_unicase_default
mov [rax+78h], rcx
loc_54B21:
jmp short $+2
loc_54B23:
jmp short $+2
loc_54B25:
cmp [rbp+var_4C], 0
jz short loc_54B36
mov eax, [rbp+var_4C]
mov [rbp+var_154], eax
jmp short loc_54B43
loc_54B36:
mov eax, 1
mov [rbp+var_154], eax
jmp short $+2
loc_54B43:
mov eax, [rbp+var_154]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+0B2h], cl
mov [rbp+var_130], 0
loc_54B5F:
mov eax, [rbp+var_130]
mov rcx, [rbp+var_10]
movzx ecx, byte ptr [rcx+0B2h]
cmp eax, ecx
jz loc_54C34
mov rax, [rbp+var_128]
mov ecx, [rbp+var_130]
imul rcx, 38h ; '8'
add rax, rcx
cmp qword ptr [rax], 0
setz al
mov cl, al
and cl, 1
movzx ecx, cl
mov [rbp+var_12C], ecx
test al, 1
jnz short loc_54BA7
jmp short loc_54BD6
loc_54BA7:
mov rdi, [rbp+var_18]
mov rax, [rbp+var_10]
mov rcx, [rax+20h]
mov r8d, [rbp+var_130]
add r8d, 1
mov esi, 7Fh
lea rdx, aSNoLevelDDataF; "%s: no level #%d data for this Unicode "...
mov al, 0
call my_snprintf
jmp loc_54CB5
loc_54BD6:
mov rdi, [rbp+var_18]
lea rdx, [rbp+var_120]
mov eax, [rbp+var_130]
imul rax, 38h ; '8'
add rdx, rax
mov rcx, [rbp+var_128]
mov eax, [rbp+var_130]
imul rax, 38h ; '8'
add rcx, rax
lea rsi, [rbp+var_50]
call init_weight_level
movsx eax, al
mov [rbp+var_12C], eax
cmp eax, 0
jz short loc_54C1E
jmp loc_54CB5
loc_54C1E:
jmp short $+2
loc_54C20:
mov eax, [rbp+var_130]
add eax, 1
mov [rbp+var_130], eax
jmp loc_54B5F
loc_54C34:
mov rax, [rbp+var_18]
mov edi, 0D0h
call qword ptr [rax+80h]
mov rcx, [rbp+var_10]
mov [rcx+60h], rax
cmp rax, 0
jnz short loc_54C5D
mov [rbp+var_12C], 1
jmp short loc_54CB5
loc_54C5D:
mov rax, [rbp+var_10]
mov rdi, [rax+60h]
lea rsi, [rbp+var_120]
mov edx, 0D0h
call _memcpy
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+0B2h]
cmp eax, 1
jle short loc_54CB3
mov rax, [rbp+var_10]
mov edx, [rax+0Ch]
and edx, 20000h
lea rcx, my_uca_collation_handler_multilevel_generic
lea rax, my_uca_collation_handler_nopad_multilevel_generic
cmp edx, 0
cmovnz rcx, rax
mov rax, [rbp+var_10]
mov [rax+0C0h], rcx
loc_54CB3:
jmp short $+2
loc_54CB5:
mov rax, [rbp+var_18]
mov rax, [rax+98h]
mov rdi, [rbp+var_30]
call rax
cmp [rbp+var_12C], 0
jz short loc_54CF7
mov rax, [rbp+var_18]
movsx eax, byte ptr [rax]
cmp eax, 0
jz short loc_54CF7
mov rax, [rbp+var_18]
mov rcx, [rax+0A0h]
mov rdx, [rbp+var_18]
xor edi, edi
lea rsi, aAtLineDPosDS+13h; "%s"
mov al, 0
call rcx
loc_54CF7:
mov eax, [rbp+var_12C]
mov [rbp+var_1], al
loc_54D00:
mov al, [rbp+var_1]
add rsp, 160h
pop rbp
retn
|
char create_tailoring(long long a1, const char *a2)
{
long long v2; // rax
int v3; // r9d
char inited; // al
long long v5; // rax
long long ( **v6)(); // rcx
char v8; // [rsp+Ch] [rbp-154h]
_UNKNOWN **v9; // [rsp+10h] [rbp-150h]
long long v10; // [rsp+20h] [rbp-140h]
void *v11; // [rsp+28h] [rbp-138h]
unsigned int i; // [rsp+30h] [rbp-130h]
int v13; // [rsp+34h] [rbp-12Ch]
_UNKNOWN **v14; // [rsp+38h] [rbp-128h]
_QWORD v15[26]; // [rsp+40h] [rbp-120h] BYREF
int v16; // [rsp+110h] [rbp-50h] BYREF
int v17; // [rsp+114h] [rbp-4Ch]
void *v18; // [rsp+118h] [rbp-48h]
long long v19; // [rsp+130h] [rbp-30h]
const char *v20; // [rsp+138h] [rbp-28h]
const char *v21; // [rsp+148h] [rbp-18h]
long long v22; // [rsp+150h] [rbp-10h]
v22 = a1;
v21 = a2;
*a2 = 0;
if ( !*(_QWORD *)(v22 + 56) )
return 0;
memset(&v16, 0LL, 56LL);
v20 = v21;
if ( *(_QWORD *)(v22 + 96) )
v11 = *(void **)(v22 + 96);
else
v11 = &my_uca_v400;
v18 = v11;
memset(v15, 0LL, sizeof(v15));
v10 = *(_QWORD *)(v22 + 56);
v2 = strlen(v10);
v13 = my_coll_rule_parse(&v16, v10, v2 + v10);
if ( !v13 )
{
if ( v16 == 520 )
{
v14 = &my_uca_v520;
*(_QWORD *)(v22 + 120) = &my_unicase_unicode520;
}
else if ( v16 == 400 )
{
v14 = (_UNKNOWN **)&my_uca_v400;
*(_QWORD *)(v22 + 120) = &my_unicase_default;
}
else
{
if ( *(_QWORD *)(v22 + 96) )
v9 = *(_UNKNOWN ***)(v22 + 96);
else
v9 = (_UNKNOWN **)&my_uca_v400;
v14 = v9;
if ( !*(_QWORD *)(v22 + 120) )
*(_QWORD *)(v22 + 120) = &my_unicase_default;
}
if ( v17 )
v8 = v17;
else
v8 = 1;
*(_BYTE *)(v22 + 178) = v8;
for ( i = 0; i != *(unsigned __int8 *)(v22 + 178); ++i )
{
v13 = v14[7 * i] == 0LL;
if ( !v14[7 * i] )
{
my_snprintf(
(_DWORD)v21,
127,
(unsigned int)"%s: no level #%d data for this Unicode version.",
*(_QWORD *)(v22 + 32),
i + 1,
v3);
goto LABEL_31;
}
inited = init_weight_level(v21, &v16, &v15[7 * i], &v14[7 * i]);
v13 = inited;
if ( inited )
goto LABEL_31;
}
v5 = (*((long long ( **)(long long))v21 + 16))(208LL);
*(_QWORD *)(v22 + 96) = v5;
if ( v5 )
{
memcpy(*(_QWORD *)(v22 + 96), v15, 208LL);
if ( *(unsigned __int8 *)(v22 + 178) > 1u )
{
v6 = my_uca_collation_handler_multilevel_generic;
if ( (*(_DWORD *)(v22 + 12) & 0x20000) != 0 )
v6 = my_uca_collation_handler_nopad_multilevel_generic;
*(_QWORD *)(v22 + 192) = v6;
}
}
else
{
v13 = 1;
}
}
LABEL_31:
(*((void ( **)(long long))v21 + 19))(v19);
if ( v13 && *v21 )
(*((void (**)(_QWORD, const char *, ...))v21 + 20))(0LL, "%s", v21);
return v13;
}
|
create_tailoring:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x160
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x128],0x0
MOV dword ptr [RBP + -0x12c],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x38],0x0
JNZ 0x001549c3
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00154d00
LAB_001549c3:
LEA RDI,[RBP + -0x50]
XOR ESI,ESI
MOV EDX,0x38
CALL 0x00124180
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x60],0x0
JZ 0x001549f7
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x60]
MOV qword ptr [RBP + -0x138],RAX
JMP 0x00154a07
LAB_001549f7:
LEA RAX,[0x3c1060]
MOV qword ptr [RBP + -0x138],RAX
JMP 0x00154a07
LAB_00154a07:
MOV RAX,qword ptr [RBP + -0x138]
MOV qword ptr [RBP + -0x48],RAX
LEA RDI,[RBP + -0x120]
XOR ESI,ESI
MOV EDX,0xd0
CALL 0x00124180
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x38]
MOV qword ptr [RBP + -0x140],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x38]
MOV qword ptr [RBP + -0x148],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x38]
CALL 0x00124120
MOV RDX,qword ptr [RBP + -0x148]
MOV RSI,qword ptr [RBP + -0x140]
ADD RDX,RAX
LEA RDI,[RBP + -0x50]
CALL 0x00154d10
MOV dword ptr [RBP + -0x12c],EAX
CMP EAX,0x0
JZ 0x00154a7a
JMP 0x00154cb5
LAB_00154a7a:
CMP dword ptr [RBP + -0x50],0x208
JNZ 0x00154aa5
LEA RAX,[0x3c61c8]
MOV qword ptr [RBP + -0x128],RAX
MOV RAX,qword ptr [RBP + -0x10]
LEA RCX,[0x2d4d30]
MOV qword ptr [RAX + 0x78],RCX
JMP 0x00154b25
LAB_00154aa5:
CMP dword ptr [RBP + -0x50],0x190
JNZ 0x00154acd
LEA RAX,[0x3c1060]
MOV qword ptr [RBP + -0x128],RAX
MOV RAX,qword ptr [RBP + -0x10]
LEA RCX,[0x2d4d00]
MOV qword ptr [RAX + 0x78],RCX
JMP 0x00154b23
LAB_00154acd:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x60],0x0
JZ 0x00154ae9
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x60]
MOV qword ptr [RBP + -0x150],RAX
JMP 0x00154af9
LAB_00154ae9:
LEA RAX,[0x3c1060]
MOV qword ptr [RBP + -0x150],RAX
JMP 0x00154af9
LAB_00154af9:
MOV RAX,qword ptr [RBP + -0x150]
MOV qword ptr [RBP + -0x128],RAX
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x78],0x0
JNZ 0x00154b21
MOV RAX,qword ptr [RBP + -0x10]
LEA RCX,[0x2d4d00]
MOV qword ptr [RAX + 0x78],RCX
LAB_00154b21:
JMP 0x00154b23
LAB_00154b23:
JMP 0x00154b25
LAB_00154b25:
CMP dword ptr [RBP + -0x4c],0x0
JZ 0x00154b36
MOV EAX,dword ptr [RBP + -0x4c]
MOV dword ptr [RBP + -0x154],EAX
JMP 0x00154b43
LAB_00154b36:
MOV EAX,0x1
MOV dword ptr [RBP + -0x154],EAX
JMP 0x00154b43
LAB_00154b43:
MOV EAX,dword ptr [RBP + -0x154]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0xb2],CL
MOV dword ptr [RBP + -0x130],0x0
LAB_00154b5f:
MOV EAX,dword ptr [RBP + -0x130]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,byte ptr [RCX + 0xb2]
CMP EAX,ECX
JZ 0x00154c34
MOV RAX,qword ptr [RBP + -0x128]
MOV ECX,dword ptr [RBP + -0x130]
IMUL RCX,RCX,0x38
ADD RAX,RCX
CMP qword ptr [RAX],0x0
SETZ AL
MOV CL,AL
AND CL,0x1
MOVZX ECX,CL
MOV dword ptr [RBP + -0x12c],ECX
TEST AL,0x1
JNZ 0x00154ba7
JMP 0x00154bd6
LAB_00154ba7:
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x20]
MOV R8D,dword ptr [RBP + -0x130]
ADD R8D,0x1
MOV ESI,0x7f
LEA RDX,[0x18384b]
MOV AL,0x0
CALL 0x0017cfe0
JMP 0x00154cb5
LAB_00154bd6:
MOV RDI,qword ptr [RBP + -0x18]
LEA RDX,[RBP + -0x120]
MOV EAX,dword ptr [RBP + -0x130]
IMUL RAX,RAX,0x38
ADD RDX,RAX
MOV RCX,qword ptr [RBP + -0x128]
MOV EAX,dword ptr [RBP + -0x130]
IMUL RAX,RAX,0x38
ADD RCX,RAX
LEA RSI,[RBP + -0x50]
CALL 0x00154df0
MOVSX EAX,AL
MOV dword ptr [RBP + -0x12c],EAX
CMP EAX,0x0
JZ 0x00154c1e
JMP 0x00154cb5
LAB_00154c1e:
JMP 0x00154c20
LAB_00154c20:
MOV EAX,dword ptr [RBP + -0x130]
ADD EAX,0x1
MOV dword ptr [RBP + -0x130],EAX
JMP 0x00154b5f
LAB_00154c34:
MOV RAX,qword ptr [RBP + -0x18]
MOV EDI,0xd0
CALL qword ptr [RAX + 0x80]
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x60],RAX
CMP RAX,0x0
JNZ 0x00154c5d
MOV dword ptr [RBP + -0x12c],0x1
JMP 0x00154cb5
LAB_00154c5d:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x60]
LEA RSI,[RBP + -0x120]
MOV EDX,0xd0
CALL 0x00124200
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0xb2]
CMP EAX,0x1
JLE 0x00154cb3
MOV RAX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RAX + 0xc]
AND EDX,0x20000
LEA RCX,[0x2d2280]
LEA RAX,[0x2d22f0]
CMP EDX,0x0
CMOVNZ RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0xc0],RCX
LAB_00154cb3:
JMP 0x00154cb5
LAB_00154cb5:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x98]
MOV RDI,qword ptr [RBP + -0x30]
CALL RAX
CMP dword ptr [RBP + -0x12c],0x0
JZ 0x00154cf7
MOV RAX,qword ptr [RBP + -0x18]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JZ 0x00154cf7
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RAX + 0xa0]
MOV RDX,qword ptr [RBP + -0x18]
XOR EDI,EDI
LEA RSI,[0x183e03]
MOV AL,0x0
CALL RCX
LAB_00154cf7:
MOV EAX,dword ptr [RBP + -0x12c]
MOV byte ptr [RBP + -0x1],AL
LAB_00154d00:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x160
POP RBP
RET
|
int1 create_tailoring(long param_1,char *param_2)
{
int8 uVar1;
char cVar2;
size_t sVar3;
long lVar4;
int1 *puVar5;
int1 local_15c;
int1 *local_158;
int1 *local_140;
uint local_138;
uint local_134;
int1 *local_130;
int1 local_128 [208];
int local_58;
int local_54;
int1 *local_50;
int8 local_38;
char *local_30;
char *local_20;
long local_18;
int1 local_9;
*param_2 = '\0';
if (*(long *)(param_1 + 0x38) == 0) {
local_9 = 0;
}
else {
local_20 = param_2;
local_18 = param_1;
memset(&local_58,0,0x38);
local_30 = local_20;
if (*(long *)(local_18 + 0x60) == 0) {
local_140 = my_uca_v400;
}
else {
local_140 = *(int1 **)(local_18 + 0x60);
}
local_50 = local_140;
memset(local_128,0,0xd0);
uVar1 = *(int8 *)(local_18 + 0x38);
lVar4 = *(long *)(local_18 + 0x38);
sVar3 = strlen(*(char **)(local_18 + 0x38));
local_134 = my_coll_rule_parse(&local_58,uVar1,lVar4 + sVar3);
if (local_134 == 0) {
if (local_58 == 0x208) {
local_130 = my_uca_v520;
*(int1 **)(local_18 + 0x78) = my_unicase_unicode520;
}
else if (local_58 == 400) {
local_130 = my_uca_v400;
*(int1 **)(local_18 + 0x78) = my_unicase_default;
}
else {
if (*(long *)(local_18 + 0x60) == 0) {
local_158 = my_uca_v400;
}
else {
local_158 = *(int1 **)(local_18 + 0x60);
}
local_130 = local_158;
if (*(long *)(local_18 + 0x78) == 0) {
*(int1 **)(local_18 + 0x78) = my_unicase_default;
}
}
if (local_54 == 0) {
local_15c = 1;
}
else {
local_15c = (int1)local_54;
}
*(int1 *)(local_18 + 0xb2) = local_15c;
for (local_138 = 0; local_138 != *(byte *)(local_18 + 0xb2); local_138 = local_138 + 1) {
local_134 = (uint)(*(long *)(local_130 + (ulong)local_138 * 0x38) == 0);
if (*(long *)(local_130 + (ulong)local_138 * 0x38) == 0) {
my_snprintf(local_20,0x7f,"%s: no level #%d data for this Unicode version.",
*(int8 *)(local_18 + 0x20),local_138 + 1);
goto LAB_00154cb5;
}
cVar2 = init_weight_level(local_20,&local_58,local_128 + (ulong)local_138 * 0x38,
local_130 + (ulong)local_138 * 0x38);
local_134 = (uint)cVar2;
if (local_134 != 0) goto LAB_00154cb5;
}
lVar4 = (**(code **)(local_20 + 0x80))(0xd0);
*(long *)(local_18 + 0x60) = lVar4;
if (lVar4 == 0) {
local_134 = 1;
}
else {
memcpy(*(void **)(local_18 + 0x60),local_128,0xd0);
if (1 < *(byte *)(local_18 + 0xb2)) {
puVar5 = my_uca_collation_handler_multilevel_generic;
if ((*(uint *)(local_18 + 0xc) & 0x20000) != 0) {
puVar5 = my_uca_collation_handler_nopad_multilevel_generic;
}
*(int1 **)(local_18 + 0xc0) = puVar5;
}
}
}
LAB_00154cb5:
(**(code **)(local_20 + 0x98))(local_38);
if ((local_134 != 0) && (*local_20 != '\0')) {
(**(code **)(local_20 + 0xa0))(0,"%s",local_20);
}
local_9 = (int1)local_134;
}
return local_9;
}
|
|
57,473
|
my_like_range_simple
|
eloqsql/strings/ctype-simple.c
|
my_bool my_like_range_simple(CHARSET_INFO *cs,
const char *ptr, size_t ptr_length,
pbool escape, pbool w_one, pbool w_many,
size_t res_length,
char *min_str,char *max_str,
size_t *min_length, size_t *max_length)
{
const char *end= ptr + ptr_length;
char *min_org=min_str;
char *min_end=min_str+res_length;
size_t charlen= res_length / cs->mbmaxlen;
for (; ptr != end && min_str != min_end && charlen > 0 ; ptr++, charlen--)
{
if (*ptr == escape && ptr+1 != end)
{
ptr++; /* Skip escape */
*min_str++= *max_str++ = *ptr;
continue;
}
if (*ptr == w_one) /* '_' in SQL */
{
*min_str++='\0'; /* This should be min char */
*max_str++= (char) cs->max_sort_char;
continue;
}
if (*ptr == w_many) /* '%' in SQL */
{
/* Calculate length of keys */
*min_length= (cs->state & (MY_CS_BINSORT | MY_CS_NOPAD)) ?
(size_t) (min_str - min_org) :
res_length;
*max_length= res_length;
do
{
*min_str++= 0;
*max_str++= (char) cs->max_sort_char;
} while (min_str != min_end);
return 0;
}
*min_str++= *max_str++ = *ptr;
}
*min_length= *max_length = (size_t) (min_str - min_org);
while (min_str != min_end)
*min_str++= *max_str++ = ' '; /* Because if key compression */
return 0;
}
|
O3
|
c
|
my_like_range_simple:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r10
movq 0x30(%rbp), %rdx
movq 0x28(%rbp), %r12
movq 0x20(%rbp), %rbx
movq 0x18(%rbp), %r14
movq 0x10(%rbp), %r11
testq %r10, %r10
je 0x3dfb9
addq %rsi, %r10
movl 0x9c(%rdi), %r15d
xorl %r13d, %r13d
movq %r11, %rax
xorl %edx, %edx
divq %r15
addq $-0x1, %rax
setb %dl
cmpq %r13, %r11
je 0x3dfac
testb %dl, %dl
je 0x3dfac
movb (%rsi), %r15b
cmpb %cl, %r15b
jne 0x3df78
leaq 0x1(%rsi), %rdx
cmpq %r10, %rdx
je 0x3df78
movb (%rdx), %sil
movb %sil, (%rbx,%r13)
movb %sil, (%r14,%r13)
jmp 0x3df9e
cmpb %r8b, %r15b
jne 0x3df8e
movb $0x0, (%r14,%r13)
movb 0xa8(%rdi), %dl
movb %dl, (%rbx,%r13)
jmp 0x3df9b
cmpb %r9b, %r15b
je 0x3dfef
movb %r15b, (%rbx,%r13)
movb %r15b, (%r14,%r13)
movq %rsi, %rdx
incq %rdx
incq %r13
movq %rdx, %rsi
cmpq %r10, %rdx
jne 0x3df4a
leaq (%r14,%r13), %rax
addq %r13, %rbx
movq 0x30(%rbp), %rdx
jmp 0x3dfbc
movq %r14, %rax
addq %r14, %r11
movq %rax, %rcx
subq %r14, %rcx
movq %rcx, (%rdx)
movq %rcx, (%r12)
cmpq %r11, %rax
je 0x3dfe2
movb $0x20, %cl
movb %cl, (%rbx)
incq %rbx
movb %cl, (%rax)
incq %rax
cmpq %r11, %rax
jne 0x3dfd3
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl $0x20010, 0xc(%rdi) # imm = 0x20010
movq %r13, %rax
cmoveq %r11, %rax
movq %rax, (%r12)
movq 0x30(%rbp), %rax
movq %r11, (%rax)
movb $0x0, (%r14,%r13)
movb 0xa8(%rdi), %al
movb %al, (%rbx,%r13)
incq %r13
cmpq %r13, %r11
jne 0x3e008
jmp 0x3dfe2
|
my_like_range_simple:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
mov r10, rdx
mov rdx, [rbp+arg_20]
mov r12, [rbp+arg_18]
mov rbx, [rbp+arg_10]
mov r14, [rbp+arg_8]
mov r11, [rbp+arg_0]
test r10, r10
jz loc_3DFB9
add r10, rsi
mov r15d, [rdi+9Ch]
xor r13d, r13d
mov rax, r11
xor edx, edx
div r15
loc_3DF4A:
add rax, 0FFFFFFFFFFFFFFFFh
setb dl
cmp r11, r13
jz short loc_3DFAC
test dl, dl
jz short loc_3DFAC
mov r15b, [rsi]
cmp r15b, cl
jnz short loc_3DF78
lea rdx, [rsi+1]
cmp rdx, r10
jz short loc_3DF78
mov sil, [rdx]
mov [rbx+r13], sil
mov [r14+r13], sil
jmp short loc_3DF9E
loc_3DF78:
cmp r15b, r8b
jnz short loc_3DF8E
mov byte ptr [r14+r13], 0
mov dl, [rdi+0A8h]
mov [rbx+r13], dl
jmp short loc_3DF9B
loc_3DF8E:
cmp r15b, r9b
jz short loc_3DFEF
mov [rbx+r13], r15b
mov [r14+r13], r15b
loc_3DF9B:
mov rdx, rsi
loc_3DF9E:
inc rdx
inc r13
mov rsi, rdx
cmp rdx, r10
jnz short loc_3DF4A
loc_3DFAC:
lea rax, [r14+r13]
add rbx, r13
mov rdx, [rbp+arg_20]
jmp short loc_3DFBC
loc_3DFB9:
mov rax, r14
loc_3DFBC:
add r11, r14
mov rcx, rax
sub rcx, r14
mov [rdx], rcx
mov [r12], rcx
cmp rax, r11
jz short loc_3DFE2
mov cl, 20h ; ' '
loc_3DFD3:
mov [rbx], cl
inc rbx
mov [rax], cl
inc rax
cmp rax, r11
jnz short loc_3DFD3
loc_3DFE2:
xor eax, eax
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3DFEF:
test dword ptr [rdi+0Ch], 20010h
mov rax, r13
cmovz rax, r11
mov [r12], rax
mov rax, [rbp+arg_20]
mov [rax], r11
loc_3E008:
mov byte ptr [r14+r13], 0
mov al, [rdi+0A8h]
mov [rbx+r13], al
inc r13
cmp r11, r13
jnz short loc_3E008
jmp short loc_3DFE2
|
long long my_like_range_simple(
long long a1,
char *a2,
long long a3,
char a4,
char a5,
char a6,
unsigned long long a7,
long long a8,
_BYTE *a9,
unsigned long long *a10,
_QWORD *a11)
{
_QWORD *v12; // rdx
_BYTE *v13; // rbx
char *v14; // r10
unsigned long long v15; // r13
unsigned long long v16; // rax
bool v17; // cf
char v18; // r15
char *v19; // rdx
char v20; // si
_BYTE *v21; // rax
unsigned long long v23; // rax
v12 = a11;
v13 = a9;
if ( a3 )
{
v14 = &a2[a3];
v15 = 0LL;
v16 = a7 / *(unsigned int *)(a1 + 156);
while ( 1 )
{
v17 = v16-- != 0;
if ( a7 == v15 || !v17 )
{
LABEL_14:
v21 = (_BYTE *)(a8 + v15);
v13 = &a9[v15];
v12 = a11;
goto LABEL_16;
}
v18 = *a2;
if ( *a2 != a4 || (v19 = a2 + 1, a2 + 1 == v14) )
{
if ( v18 == a5 )
{
*(_BYTE *)(a8 + v15) = 0;
a9[v15] = *(_BYTE *)(a1 + 168);
}
else
{
if ( v18 == a6 )
{
v23 = v15;
if ( (*(_DWORD *)(a1 + 12) & 0x20010) == 0 )
v23 = a7;
*a10 = v23;
*a11 = a7;
do
{
*(_BYTE *)(a8 + v15) = 0;
a9[v15++] = *(_BYTE *)(a1 + 168);
}
while ( a7 != v15 );
return 0LL;
}
a9[v15] = v18;
*(_BYTE *)(a8 + v15) = v18;
}
v19 = a2;
}
else
{
v20 = *v19;
a9[v15] = *v19;
*(_BYTE *)(a8 + v15) = v20;
}
++v15;
a2 = v19 + 1;
if ( v19 + 1 == v14 )
goto LABEL_14;
}
}
v21 = (_BYTE *)a8;
LABEL_16:
*v12 = &v21[-a8];
for ( *a10 = (unsigned long long)&v21[-a8]; v21 != (_BYTE *)(a8 + a7); ++v21 )
{
*v13++ = 32;
*v21 = 32;
}
return 0LL;
}
|
my_like_range_simple:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R10,RDX
MOV RDX,qword ptr [RBP + 0x30]
MOV R12,qword ptr [RBP + 0x28]
MOV RBX,qword ptr [RBP + 0x20]
MOV R14,qword ptr [RBP + 0x18]
MOV R11,qword ptr [RBP + 0x10]
TEST R10,R10
JZ 0x0013dfb9
ADD R10,RSI
MOV R15D,dword ptr [RDI + 0x9c]
XOR R13D,R13D
MOV RAX,R11
XOR EDX,EDX
DIV R15
LAB_0013df4a:
ADD RAX,-0x1
SETC DL
CMP R11,R13
JZ 0x0013dfac
TEST DL,DL
JZ 0x0013dfac
MOV R15B,byte ptr [RSI]
CMP R15B,CL
JNZ 0x0013df78
LEA RDX,[RSI + 0x1]
CMP RDX,R10
JZ 0x0013df78
MOV SIL,byte ptr [RDX]
MOV byte ptr [RBX + R13*0x1],SIL
MOV byte ptr [R14 + R13*0x1],SIL
JMP 0x0013df9e
LAB_0013df78:
CMP R15B,R8B
JNZ 0x0013df8e
MOV byte ptr [R14 + R13*0x1],0x0
MOV DL,byte ptr [RDI + 0xa8]
MOV byte ptr [RBX + R13*0x1],DL
JMP 0x0013df9b
LAB_0013df8e:
CMP R15B,R9B
JZ 0x0013dfef
MOV byte ptr [RBX + R13*0x1],R15B
MOV byte ptr [R14 + R13*0x1],R15B
LAB_0013df9b:
MOV RDX,RSI
LAB_0013df9e:
INC RDX
INC R13
MOV RSI,RDX
CMP RDX,R10
JNZ 0x0013df4a
LAB_0013dfac:
LEA RAX,[R14 + R13*0x1]
ADD RBX,R13
MOV RDX,qword ptr [RBP + 0x30]
JMP 0x0013dfbc
LAB_0013dfb9:
MOV RAX,R14
LAB_0013dfbc:
ADD R11,R14
MOV RCX,RAX
SUB RCX,R14
MOV qword ptr [RDX],RCX
MOV qword ptr [R12],RCX
CMP RAX,R11
JZ 0x0013dfe2
MOV CL,0x20
LAB_0013dfd3:
MOV byte ptr [RBX],CL
INC RBX
MOV byte ptr [RAX],CL
INC RAX
CMP RAX,R11
JNZ 0x0013dfd3
LAB_0013dfe2:
XOR EAX,EAX
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013dfef:
TEST dword ptr [RDI + 0xc],0x20010
MOV RAX,R13
CMOVZ RAX,R11
MOV qword ptr [R12],RAX
MOV RAX,qword ptr [RBP + 0x30]
MOV qword ptr [RAX],R11
LAB_0013e008:
MOV byte ptr [R14 + R13*0x1],0x0
MOV AL,byte ptr [RDI + 0xa8]
MOV byte ptr [RBX + R13*0x1],AL
INC R13
CMP R11,R13
JNZ 0x0013e008
JMP 0x0013dfe2
|
int8
my_like_range_simple
(long param_1,char *param_2,long param_3,char param_4,char param_5,char param_6,
ulong param_7,int1 *param_8,int1 *param_9,ulong *param_10,ulong *param_11)
{
char *pcVar1;
char cVar2;
ulong uVar3;
int1 *puVar4;
char *pcVar5;
ulong uVar6;
bool bVar7;
puVar4 = param_8;
if (param_3 != 0) {
pcVar5 = param_2 + param_3;
uVar6 = 0;
uVar3 = param_7 / *(uint *)(param_1 + 0x9c);
do {
bVar7 = uVar3 == 0;
uVar3 = uVar3 - 1;
if ((param_7 == uVar6) || (bVar7)) break;
cVar2 = *param_2;
if ((cVar2 == param_4) && (pcVar1 = param_2 + 1, pcVar1 != pcVar5)) {
cVar2 = *pcVar1;
param_9[uVar6] = cVar2;
param_8[uVar6] = cVar2;
param_2 = pcVar1;
}
else if (cVar2 == param_5) {
param_8[uVar6] = 0;
param_9[uVar6] = *(int1 *)(param_1 + 0xa8);
}
else {
if (cVar2 == param_6) {
uVar3 = uVar6;
if ((*(uint *)(param_1 + 0xc) & 0x20010) == 0) {
uVar3 = param_7;
}
*param_10 = uVar3;
*param_11 = param_7;
do {
param_8[uVar6] = 0;
param_9[uVar6] = *(int1 *)(param_1 + 0xa8);
uVar6 = uVar6 + 1;
} while (param_7 != uVar6);
return 0;
}
param_9[uVar6] = cVar2;
param_8[uVar6] = cVar2;
}
param_2 = param_2 + 1;
uVar6 = uVar6 + 1;
} while (param_2 != pcVar5);
param_9 = param_9 + uVar6;
puVar4 = param_8 + uVar6;
}
*param_11 = (long)puVar4 - (long)param_8;
*param_10 = (long)puVar4 - (long)param_8;
for (; puVar4 != param_8 + param_7; puVar4 = puVar4 + 1) {
*param_9 = 0x20;
param_9 = param_9 + 1;
*puVar4 = 0x20;
}
return 0;
}
|
|
57,474
|
ma_tls_read_async
|
eloqsql/libmariadb/libmariadb/secure/openssl.c
|
ssize_t ma_tls_read_async(MARIADB_PVIO *pvio,
const unsigned char *buffer,
size_t length)
{
int res;
struct mysql_async_context *b= pvio->mysql->options.extension->async_context;
MARIADB_TLS *ctls= pvio->ctls;
for (;;)
{
res= SSL_read((SSL *)ctls->ssl, (void *)buffer, (int)length);
if (ma_tls_async_check_result(res, b, (SSL *)ctls->ssl))
return res;
}
}
|
O3
|
c
|
ma_tls_read_async:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq 0x38(%rdi), %r13
movq 0x40(%rdi), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %r15
movq 0x10(%r13), %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x13070
movl %eax, %r12d
movq 0x10(%r13), %rdx
movl %eax, %edi
movq %r15, %rsi
callq 0x2f29a
testb %al, %al
je 0x2f265
movslq %r12d, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
ma_tls_read_async:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdx
mov r14, rsi
mov r13, [rdi+38h]
mov rax, [rdi+40h]
mov rax, [rax+480h]
mov r15, [rax+28h]
loc_2F265:
mov rdi, [r13+10h]
mov rsi, r14
mov edx, ebx
call _SSL_read
mov r12d, eax
mov rdx, [r13+10h]
mov edi, eax
mov rsi, r15
call ma_tls_async_check_result
test al, al
jz short loc_2F265
movsxd rax, r12d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long ma_tls_read_async(long long a1, long long a2, unsigned int a3)
{
long long v4; // r13
long long v5; // r15
long long v6; // r12
v4 = *(_QWORD *)(a1 + 56);
v5 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 64) + 1152LL) + 40LL);
do
v6 = (unsigned int)SSL_read(*(_QWORD *)(v4 + 16), a2, a3);
while ( !(unsigned __int8)ma_tls_async_check_result(v6, v5, *(_QWORD *)(v4 + 16)) );
return (int)v6;
}
|
ma_tls_read_async:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RSI
MOV R13,qword ptr [RDI + 0x38]
MOV RAX,qword ptr [RDI + 0x40]
MOV RAX,qword ptr [RAX + 0x480]
MOV R15,qword ptr [RAX + 0x28]
LAB_0012f265:
MOV RDI,qword ptr [R13 + 0x10]
MOV RSI,R14
MOV EDX,EBX
CALL 0x00113070
MOV R12D,EAX
MOV RDX,qword ptr [R13 + 0x10]
MOV EDI,EAX
MOV RSI,R15
CALL 0x0012f29a
TEST AL,AL
JZ 0x0012f265
MOVSXD RAX,R12D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long ma_tls_read_async(long param_1,void *param_2,int param_3)
{
long lVar1;
int8 uVar2;
char cVar3;
int iVar4;
lVar1 = *(long *)(param_1 + 0x38);
uVar2 = *(int8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x480) + 0x28);
do {
iVar4 = SSL_read(*(SSL **)(lVar1 + 0x10),param_2,param_3);
cVar3 = ma_tls_async_check_result(iVar4,uVar2,*(int8 *)(lVar1 + 0x10));
} while (cVar3 == '\0');
return (long)iVar4;
}
|
|
57,475
|
el::base::LogFormat::operator=(el::base::LogFormat const&)
|
opengl-water/src/easylogging++.cc
|
LogFormat& LogFormat::operator=(const LogFormat& logFormat) {
if (&logFormat != this) {
m_level = logFormat.m_level;
m_userFormat = logFormat.m_userFormat;
m_dateTimeFormat = logFormat.m_dateTimeFormat;
m_flags = logFormat.m_flags;
m_currentUser = logFormat.m_currentUser;
m_currentHost = logFormat.m_currentHost;
}
return *this;
}
|
O3
|
cpp
|
el::base::LogFormat::operator=(el::base::LogFormat const&):
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq %rdi, %rsi
je 0x2ccdb
movq %rsi, %r14
movl 0x8(%rsi), %eax
movl %eax, 0x8(%rbx)
addq $0x10, %rsi
leaq 0x10(%rbx), %rdi
callq 0x378be
leaq 0x50(%r14), %rsi
leaq 0x50(%rbx), %rdi
callq 0x378be
movl 0x70(%r14), %eax
movl %eax, 0x70(%rbx)
leaq 0x78(%r14), %rsi
leaq 0x78(%rbx), %rdi
callq 0x378be
movl $0x98, %edi
addq %rdi, %r14
addq %rbx, %rdi
movq %r14, %rsi
callq 0x378be
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
nop
|
_ZN2el4base9LogFormataSERKS1_:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
cmp rsi, rdi
jz short loc_2CCDB
mov r14, rsi
mov eax, [rsi+8]
mov [rbx+8], eax
add rsi, 10h
lea rdi, [rbx+10h]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
lea rsi, [r14+50h]
lea rdi, [rbx+50h]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
mov eax, [r14+70h]
mov [rbx+70h], eax
lea rsi, [r14+78h]
lea rdi, [rbx+78h]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
mov edi, 98h
add r14, rdi
add rdi, rbx
mov rsi, r14
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
loc_2CCDB:
mov rax, rbx
pop rbx
pop r14
pop rbp
retn
|
long long el::base::LogFormat::operator=(long long a1, long long a2)
{
if ( a2 != a1 )
{
*(_DWORD *)(a1 + 8) = *(_DWORD *)(a2 + 8);
std::string::_M_assign(a1 + 16, a2 + 16);
std::string::_M_assign(a1 + 80, a2 + 80);
*(_DWORD *)(a1 + 112) = *(_DWORD *)(a2 + 112);
std::string::_M_assign(a1 + 120, a2 + 120);
std::string::_M_assign(a1 + 152, a2 + 152);
}
return a1;
}
|
operator=:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
CMP RSI,RDI
JZ 0x0012ccdb
MOV R14,RSI
MOV EAX,dword ptr [RSI + 0x8]
MOV dword ptr [RBX + 0x8],EAX
ADD RSI,0x10
LEA RDI,[RBX + 0x10]
CALL 0x001378be
LEA RSI,[R14 + 0x50]
LEA RDI,[RBX + 0x50]
CALL 0x001378be
MOV EAX,dword ptr [R14 + 0x70]
MOV dword ptr [RBX + 0x70],EAX
LEA RSI,[R14 + 0x78]
LEA RDI,[RBX + 0x78]
CALL 0x001378be
MOV EDI,0x98
ADD R14,RDI
ADD RDI,RBX
MOV RSI,R14
CALL 0x001378be
LAB_0012ccdb:
MOV RAX,RBX
POP RBX
POP R14
POP RBP
RET
|
/* el::base::LogFormat::TEMPNAMEPLACEHOLDERVALUE(el::base::LogFormat const&) */
LogFormat * __thiscall el::base::LogFormat::operator=(LogFormat *this,LogFormat *param_1)
{
if (param_1 != this) {
*(int4 *)(this + 8) = *(int4 *)(param_1 + 8);
std::__cxx11::string::_M_assign((string *)(this + 0x10),(string *)(param_1 + 0x10));
std::__cxx11::string::_M_assign((string *)(this + 0x50),(string *)(param_1 + 0x50));
*(int4 *)(this + 0x70) = *(int4 *)(param_1 + 0x70);
std::__cxx11::string::_M_assign((string *)(this + 0x78),(string *)(param_1 + 0x78));
std::__cxx11::string::_M_assign((string *)(this + 0x98),(string *)(param_1 + 0x98));
}
return this;
}
|
|
57,476
|
test_file_directory_operations
|
tsotchke[P]eshkol/tests/unit/test_file_io.c
|
static void test_file_directory_operations(void) {
printf("Testing file directory operations...\n");
// Create an arena
Arena* arena = arena_create(1024);
assert(arena != NULL);
// Create a temporary directory
const char* test_dir = "test_dir";
// Check if the directory exists (it shouldn't)
assert(!file_exists(test_dir));
// Create the directory
assert(file_create_directory(test_dir));
// Check if the directory exists (it should)
assert(file_exists(test_dir));
assert(file_is_directory(test_dir));
// Create a file in the directory
const char* test_file = "test_dir/test_file.txt";
// Open the file for writing
File* file = file_open(test_file, FILE_MODE_WRITE);
assert(file != NULL);
// Write to the file
const char* test_data = "Hello, world!";
size_t test_data_len = strlen(test_data);
size_t bytes_written = file_write(file, test_data, test_data_len);
assert(bytes_written == test_data_len);
// Close the file
file_close(file);
// Check if the file exists (it should)
assert(file_exists(test_file));
// Delete the directory (should fail because it's not empty)
assert(!file_delete_directory(test_dir, false));
// Delete the directory recursively (should succeed)
assert(file_delete_directory(test_dir, true));
// Check if the directory exists (it shouldn't)
assert(!file_exists(test_dir));
// Destroy the arena
arena_destroy(arena);
printf("PASS: file_directory_operations\n");
}
|
O0
|
c
|
test_file_directory_operations:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
leaq 0x3d42(%rip), %rdi # 0x7891
movb $0x0, %al
callq 0x2130
movl $0x400, %edi # imm = 0x400
callq 0x3fb0
movq %rax, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x3b6d
jmp 0x3b8c
leaq 0x394c(%rip), %rdi # 0x74c0
leaq 0x34e0(%rip), %rsi # 0x705b
movl $0x1e7, %edx # imm = 0x1E7
leaq 0x3d30(%rip), %rcx # 0x78b7
callq 0x2170
leaq 0x3d4e(%rip), %rax # 0x78e1
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4f40
testb $0x1, %al
jne 0x3ba6
jmp 0x3bc5
leaq 0x3d3d(%rip), %rdi # 0x78ea
leaq 0x34a7(%rip), %rsi # 0x705b
movl $0x1ed, %edx # imm = 0x1ED
leaq 0x3cf7(%rip), %rcx # 0x78b7
callq 0x2170
movq -0x10(%rbp), %rdi
callq 0x5f60
testb $0x1, %al
jne 0x3bd4
jmp 0x3bd6
jmp 0x3bf5
leaq 0x3d24(%rip), %rdi # 0x7901
leaq 0x3477(%rip), %rsi # 0x705b
movl $0x1f0, %edx # imm = 0x1F0
leaq 0x3cc7(%rip), %rcx # 0x78b7
callq 0x2170
movq -0x10(%rbp), %rdi
callq 0x4f40
testb $0x1, %al
jne 0x3c04
jmp 0x3c06
jmp 0x3c25
leaq 0x3cde(%rip), %rdi # 0x78eb
leaq 0x3447(%rip), %rsi # 0x705b
movl $0x1f3, %edx # imm = 0x1F3
leaq 0x3c97(%rip), %rcx # 0x78b7
callq 0x2170
movq -0x10(%rbp), %rdi
callq 0x63c0
testb $0x1, %al
jne 0x3c34
jmp 0x3c36
jmp 0x3c55
leaq 0x3ce4(%rip), %rdi # 0x7921
leaq 0x3417(%rip), %rsi # 0x705b
movl $0x1f4, %edx # imm = 0x1F4
leaq 0x3c67(%rip), %rcx # 0x78b7
callq 0x2170
leaq 0x3ce1(%rip), %rax # 0x793d
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movl $0x1, %esi
callq 0x4780
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x3c7b
jmp 0x3c9a
leaq 0x3dac(%rip), %rdi # 0x7a2e
leaq 0x33d2(%rip), %rsi # 0x705b
movl $0x1fb, %edx # imm = 0x1FB
leaq 0x3c22(%rip), %rcx # 0x78b7
callq 0x2170
leaq 0x349c(%rip), %rax # 0x713d
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x2100
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x4b00
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x30(%rbp), %rax
jne 0x3cd3
jmp 0x3cf2
leaq 0x3471(%rip), %rdi # 0x714b
leaq 0x337a(%rip), %rsi # 0x705b
movl $0x201, %edx # imm = 0x201
leaq 0x3bca(%rip), %rcx # 0x78b7
callq 0x2170
movq -0x20(%rbp), %rdi
callq 0x49c0
movq -0x18(%rbp), %rdi
callq 0x4f40
testb $0x1, %al
jne 0x3d0a
jmp 0x3d0c
jmp 0x3d2b
leaq 0x3601(%rip), %rdi # 0x7314
leaq 0x3341(%rip), %rsi # 0x705b
movl $0x207, %edx # imm = 0x207
leaq 0x3b91(%rip), %rcx # 0x78b7
callq 0x2170
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x61a0
testb $0x1, %al
jne 0x3d3c
jmp 0x3d5b
leaq 0x3c11(%rip), %rdi # 0x7954
leaq 0x3311(%rip), %rsi # 0x705b
movl $0x20a, %edx # imm = 0x20A
leaq 0x3b61(%rip), %rcx # 0x78b7
callq 0x2170
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0x61a0
testb $0x1, %al
jne 0x3d6f
jmp 0x3d71
jmp 0x3d90
leaq 0x3c04(%rip), %rdi # 0x797c
leaq 0x32dc(%rip), %rsi # 0x705b
movl $0x20d, %edx # imm = 0x20D
leaq 0x3b2c(%rip), %rcx # 0x78b7
callq 0x2170
movq -0x10(%rbp), %rdi
callq 0x4f40
testb $0x1, %al
jne 0x3d9f
jmp 0x3dbe
leaq 0x3b44(%rip), %rdi # 0x78ea
leaq 0x32ae(%rip), %rsi # 0x705b
movl $0x210, %edx # imm = 0x210
leaq 0x3afe(%rip), %rcx # 0x78b7
callq 0x2170
movq -0x8(%rbp), %rdi
callq 0x4590
leaq 0x3bd4(%rip), %rdi # 0x79a2
movb $0x0, %al
callq 0x2130
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
test_file_directory_operations:
push rbp
mov rbp, rsp
sub rsp, 40h
lea rdi, aTestingFileDir; "Testing file directory operations...\n"
mov al, 0
call _printf
mov edi, 400h
call arena_create
mov [rbp+var_8], rax
cmp [rbp+var_8], 0
jz short loc_3B6D
jmp short loc_3B8C
loc_3B6D:
lea rdi, aArenaNull; "arena != NULL"
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov edx, 1E7h
lea rcx, aVoidTestFileDi; "void test_file_directory_operations(voi"...
call ___assert_fail
loc_3B8C:
lea rax, aTestDir; "test_dir"
mov [rbp+var_10], rax
mov rdi, [rbp+var_10]
call file_exists
test al, 1
jnz short loc_3BA6
jmp short loc_3BC5
loc_3BA6:
lea rdi, aFileExistsTest_0; "!file_exists(test_dir)"
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov edx, 1EDh
lea rcx, aVoidTestFileDi; "void test_file_directory_operations(voi"...
call ___assert_fail
loc_3BC5:
mov rdi, [rbp+var_10]
call file_create_directory
test al, 1
jnz short loc_3BD4
jmp short loc_3BD6
loc_3BD4:
jmp short loc_3BF5
loc_3BD6:
lea rdi, aFileCreateDire; "file_create_directory(test_dir)"
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov edx, 1F0h
lea rcx, aVoidTestFileDi; "void test_file_directory_operations(voi"...
call ___assert_fail
loc_3BF5:
mov rdi, [rbp+var_10]
call file_exists
test al, 1
jnz short loc_3C04
jmp short loc_3C06
loc_3C04:
jmp short loc_3C25
loc_3C06:
lea rdi, aFileExistsTest_0+1; "file_exists(test_dir)"
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov edx, 1F3h
lea rcx, aVoidTestFileDi; "void test_file_directory_operations(voi"...
call ___assert_fail
loc_3C25:
mov rdi, [rbp+var_10]
call file_is_directory
test al, 1
jnz short loc_3C34
jmp short loc_3C36
loc_3C34:
jmp short loc_3C55
loc_3C36:
lea rdi, aFileIsDirector; "file_is_directory(test_dir)"
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov edx, 1F4h
lea rcx, aVoidTestFileDi; "void test_file_directory_operations(voi"...
call ___assert_fail
loc_3C55:
lea rax, aTestDirTestFil; "test_dir/test_file.txt"
mov [rbp+var_18], rax
mov rdi, [rbp+var_18]
mov esi, 1
call file_open
mov [rbp+var_20], rax
cmp [rbp+var_20], 0
jz short loc_3C7B
jmp short loc_3C9A
loc_3C7B:
lea rdi, aTempFileNull+5; "file != NULL"
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov edx, 1FBh
lea rcx, aVoidTestFileDi; "void test_file_directory_operations(voi"...
call ___assert_fail
loc_3C9A:
lea rax, aHelloWorld; "Hello, world!"
mov [rbp+var_28], rax
mov rdi, [rbp+var_28]
call _strlen
mov [rbp+var_30], rax
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_30]
call file_write
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
cmp rax, [rbp+var_30]
jnz short loc_3CD3
jmp short loc_3CF2
loc_3CD3:
lea rdi, aBytesWrittenTe; "bytes_written == test_data_len"
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov edx, 201h
lea rcx, aVoidTestFileDi; "void test_file_directory_operations(voi"...
call ___assert_fail
loc_3CF2:
mov rdi, [rbp+var_20]
call file_close
mov rdi, [rbp+var_18]
call file_exists
test al, 1
jnz short loc_3D0A
jmp short loc_3D0C
loc_3D0A:
jmp short loc_3D2B
loc_3D0C:
lea rdi, aFileExistsTest+1; "file_exists(test_file)"
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov edx, 207h
lea rcx, aVoidTestFileDi; "void test_file_directory_operations(voi"...
call ___assert_fail
loc_3D2B:
mov rdi, [rbp+var_10]
xor esi, esi
call file_delete_directory
test al, 1
jnz short loc_3D3C
jmp short loc_3D5B
loc_3D3C:
lea rdi, aFileDeleteDire; "!file_delete_directory(test_dir, false)"
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov edx, 20Ah
lea rcx, aVoidTestFileDi; "void test_file_directory_operations(voi"...
call ___assert_fail
loc_3D5B:
mov rdi, [rbp+var_10]
mov esi, 1
call file_delete_directory
test al, 1
jnz short loc_3D6F
jmp short loc_3D71
loc_3D6F:
jmp short loc_3D90
loc_3D71:
lea rdi, aFileDeleteDire_0; "file_delete_directory(test_dir, true)"
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov edx, 20Dh
lea rcx, aVoidTestFileDi; "void test_file_directory_operations(voi"...
call ___assert_fail
loc_3D90:
mov rdi, [rbp+var_10]
call file_exists
test al, 1
jnz short loc_3D9F
jmp short loc_3DBE
loc_3D9F:
lea rdi, aFileExistsTest_0; "!file_exists(test_dir)"
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov edx, 210h
lea rcx, aVoidTestFileDi; "void test_file_directory_operations(voi"...
call ___assert_fail
loc_3DBE:
mov rdi, [rbp+var_8]
call arena_destroy
lea rdi, aPassFileDirect; "PASS: file_directory_operations\n"
mov al, 0
call _printf
add rsp, 40h
pop rbp
retn
|
long long test_file_directory_operations(long long a1, long long a2, long long a3)
{
char v3; // al
char is_directory; // al
long long v5; // rax
char v6; // al
char v7; // al
long long v8; // rdx
long long v10; // [rsp+10h] [rbp-30h]
long long v11; // [rsp+20h] [rbp-20h]
long long v12; // [rsp+38h] [rbp-8h]
printf("Testing file directory operations...\n", a2, a3);
v12 = arena_create(1024LL);
if ( !v12 )
__assert_fail(
"arena != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_file_io.c",
487LL,
"void test_file_directory_operations(void)");
if ( (file_exists("test_dir") & 1) != 0 )
__assert_fail(
"!file_exists(test_dir)",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_file_io.c",
493LL,
"void test_file_directory_operations(void)");
if ( (file_create_directory("test_dir") & 1) == 0 )
__assert_fail(
"file_create_directory(test_dir)",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_file_io.c",
496LL,
"void test_file_directory_operations(void)");
v3 = file_exists("test_dir");
if ( (v3 & 1) == 0 )
__assert_fail(
"file_exists(test_dir)",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_file_io.c",
499LL,
"void test_file_directory_operations(void)");
is_directory = file_is_directory("test_dir");
if ( (is_directory & 1) == 0 )
__assert_fail(
"file_is_directory(test_dir)",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_file_io.c",
500LL,
"void test_file_directory_operations(void)");
v5 = file_open("test_dir/test_file.txt", 1LL);
v11 = v5;
if ( !v5 )
__assert_fail(
"file != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_file_io.c",
507LL,
"void test_file_directory_operations(void)");
v10 = strlen("Hello, world!");
if ( file_write(v11, "Hello, world!", v10) != v10 )
__assert_fail(
"bytes_written == test_data_len",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_file_io.c",
513LL,
"void test_file_directory_operations(void)");
file_close(v11);
if ( (file_exists("test_dir/test_file.txt") & 1) == 0 )
__assert_fail(
"file_exists(test_file)",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_file_io.c",
519LL,
"void test_file_directory_operations(void)");
v6 = file_delete_directory("test_dir", 0LL);
if ( (v6 & 1) != 0 )
__assert_fail(
"!file_delete_directory(test_dir, false)",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_file_io.c",
522LL,
"void test_file_directory_operations(void)");
if ( (file_delete_directory("test_dir", 1LL) & 1) == 0 )
__assert_fail(
"file_delete_directory(test_dir, true)",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_file_io.c",
525LL,
"void test_file_directory_operations(void)");
v7 = file_exists("test_dir");
if ( (v7 & 1) != 0 )
__assert_fail(
"!file_exists(test_dir)",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_file_io.c",
528LL,
"void test_file_directory_operations(void)");
arena_destroy(v12);
return printf("PASS: file_directory_operations\n", 1LL, v8);
}
|
test_file_directory_operations:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
LEA RDI,[0x10787f]
MOV AL,0x0
CALL 0x00102130
MOV EDI,0x400
CALL 0x00103fb0
MOV qword ptr [RBP + -0x8],RAX
CMP qword ptr [RBP + -0x8],0x0
JZ 0x00103b6d
JMP 0x00103b8c
LAB_00103b6d:
LEA RDI,[0x1074ae]
LEA RSI,[0x10705b]
MOV EDX,0x1e7
LEA RCX,[0x1078a5]
CALL 0x00102170
LAB_00103b8c:
LEA RAX,[0x1078cf]
MOV qword ptr [RBP + -0x10],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00104f40
TEST AL,0x1
JNZ 0x00103ba6
JMP 0x00103bc5
LAB_00103ba6:
LEA RDI,[0x1078d8]
LEA RSI,[0x10705b]
MOV EDX,0x1ed
LEA RCX,[0x1078a5]
CALL 0x00102170
LAB_00103bc5:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00105f60
TEST AL,0x1
JNZ 0x00103bd4
JMP 0x00103bd6
LAB_00103bd4:
JMP 0x00103bf5
LAB_00103bd6:
LEA RDI,[0x1078ef]
LEA RSI,[0x10705b]
MOV EDX,0x1f0
LEA RCX,[0x1078a5]
CALL 0x00102170
LAB_00103bf5:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00104f40
TEST AL,0x1
JNZ 0x00103c04
JMP 0x00103c06
LAB_00103c04:
JMP 0x00103c25
LAB_00103c06:
LEA RDI,[0x1078d9]
LEA RSI,[0x10705b]
MOV EDX,0x1f3
LEA RCX,[0x1078a5]
CALL 0x00102170
LAB_00103c25:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001063c0
TEST AL,0x1
JNZ 0x00103c34
JMP 0x00103c36
LAB_00103c34:
JMP 0x00103c55
LAB_00103c36:
LEA RDI,[0x10790f]
LEA RSI,[0x10705b]
MOV EDX,0x1f4
LEA RCX,[0x1078a5]
CALL 0x00102170
LAB_00103c55:
LEA RAX,[0x10792b]
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,0x1
CALL 0x00104780
MOV qword ptr [RBP + -0x20],RAX
CMP qword ptr [RBP + -0x20],0x0
JZ 0x00103c7b
JMP 0x00103c9a
LAB_00103c7b:
LEA RDI,[0x107a1c]
LEA RSI,[0x10705b]
MOV EDX,0x1fb
LEA RCX,[0x1078a5]
CALL 0x00102170
LAB_00103c9a:
LEA RAX,[0x10712b]
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x00102100
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x00104b00
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00103cd3
JMP 0x00103cf2
LAB_00103cd3:
LEA RDI,[0x107139]
LEA RSI,[0x10705b]
MOV EDX,0x201
LEA RCX,[0x1078a5]
CALL 0x00102170
LAB_00103cf2:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001049c0
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00104f40
TEST AL,0x1
JNZ 0x00103d0a
JMP 0x00103d0c
LAB_00103d0a:
JMP 0x00103d2b
LAB_00103d0c:
LEA RDI,[0x107302]
LEA RSI,[0x10705b]
MOV EDX,0x207
LEA RCX,[0x1078a5]
CALL 0x00102170
LAB_00103d2b:
MOV RDI,qword ptr [RBP + -0x10]
XOR ESI,ESI
CALL 0x001061a0
TEST AL,0x1
JNZ 0x00103d3c
JMP 0x00103d5b
LAB_00103d3c:
LEA RDI,[0x107942]
LEA RSI,[0x10705b]
MOV EDX,0x20a
LEA RCX,[0x1078a5]
CALL 0x00102170
LAB_00103d5b:
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x1
CALL 0x001061a0
TEST AL,0x1
JNZ 0x00103d6f
JMP 0x00103d71
LAB_00103d6f:
JMP 0x00103d90
LAB_00103d71:
LEA RDI,[0x10796a]
LEA RSI,[0x10705b]
MOV EDX,0x20d
LEA RCX,[0x1078a5]
CALL 0x00102170
LAB_00103d90:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00104f40
TEST AL,0x1
JNZ 0x00103d9f
JMP 0x00103dbe
LAB_00103d9f:
LEA RDI,[0x1078d8]
LEA RSI,[0x10705b]
MOV EDX,0x210
LEA RCX,[0x1078a5]
CALL 0x00102170
LAB_00103dbe:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00104590
LEA RDI,[0x107990]
MOV AL,0x0
CALL 0x00102130
ADD RSP,0x40
POP RBP
RET
|
void test_file_directory_operations(void)
{
long lVar1;
ulong uVar2;
long lVar3;
size_t sVar4;
size_t sVar5;
printf("Testing file directory operations...\n");
lVar1 = arena_create(0x400);
if (lVar1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("arena != NULL",
"/workspace/llm4binary/github2025/eshkol/tests/unit/test_file_io.c",0x1e7,
"void test_file_directory_operations(void)");
}
uVar2 = file_exists("test_dir");
if ((uVar2 & 1) != 0) {
/* WARNING: Subroutine does not return */
__assert_fail("!file_exists(test_dir)",
"/workspace/llm4binary/github2025/eshkol/tests/unit/test_file_io.c",0x1ed,
"void test_file_directory_operations(void)");
}
uVar2 = file_create_directory("test_dir");
if ((uVar2 & 1) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("file_create_directory(test_dir)",
"/workspace/llm4binary/github2025/eshkol/tests/unit/test_file_io.c",0x1f0,
"void test_file_directory_operations(void)");
}
uVar2 = file_exists("test_dir");
if ((uVar2 & 1) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("file_exists(test_dir)",
"/workspace/llm4binary/github2025/eshkol/tests/unit/test_file_io.c",499,
"void test_file_directory_operations(void)");
}
uVar2 = file_is_directory("test_dir");
if ((uVar2 & 1) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("file_is_directory(test_dir)",
"/workspace/llm4binary/github2025/eshkol/tests/unit/test_file_io.c",500,
"void test_file_directory_operations(void)");
}
lVar3 = file_open("test_dir/test_file.txt",1);
if (lVar3 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("file != NULL","/workspace/llm4binary/github2025/eshkol/tests/unit/test_file_io.c"
,0x1fb,"void test_file_directory_operations(void)");
}
sVar4 = strlen("Hello, world!");
sVar5 = file_write(lVar3,"Hello, world!",sVar4);
if (sVar5 != sVar4) {
/* WARNING: Subroutine does not return */
__assert_fail("bytes_written == test_data_len",
"/workspace/llm4binary/github2025/eshkol/tests/unit/test_file_io.c",0x201,
"void test_file_directory_operations(void)");
}
file_close(lVar3);
uVar2 = file_exists("test_dir/test_file.txt");
if ((uVar2 & 1) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("file_exists(test_file)",
"/workspace/llm4binary/github2025/eshkol/tests/unit/test_file_io.c",0x207,
"void test_file_directory_operations(void)");
}
uVar2 = file_delete_directory("test_dir",0);
if ((uVar2 & 1) != 0) {
/* WARNING: Subroutine does not return */
__assert_fail("!file_delete_directory(test_dir, false)",
"/workspace/llm4binary/github2025/eshkol/tests/unit/test_file_io.c",0x20a,
"void test_file_directory_operations(void)");
}
uVar2 = file_delete_directory("test_dir",1);
if ((uVar2 & 1) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("file_delete_directory(test_dir, true)",
"/workspace/llm4binary/github2025/eshkol/tests/unit/test_file_io.c",0x20d,
"void test_file_directory_operations(void)");
}
uVar2 = file_exists("test_dir");
if ((uVar2 & 1) == 0) {
arena_destroy(lVar1);
printf("PASS: file_directory_operations\n");
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("!file_exists(test_dir)",
"/workspace/llm4binary/github2025/eshkol/tests/unit/test_file_io.c",0x210,
"void test_file_directory_operations(void)");
}
|
|
57,477
|
minja::Value::keys()
|
monkey531[P]llama/common/./minja.hpp
|
std::vector<Value> keys() {
if (!object_) throw std::runtime_error("Value is not an object: " + dump());
std::vector<Value> res;
for (const auto& item : *object_) {
res.push_back(item.first);
}
return res;
}
|
O0
|
cpp
|
minja::Value::keys():
subq $0xf8, %rsp
movq %rdi, 0x10(%rsp)
movq %rdi, %rax
movq %rax, 0x18(%rsp)
movq %rdi, 0xf0(%rsp)
movq %rsi, 0xe8(%rsp)
movq 0xe8(%rsp), %rdi
movq %rdi, 0x20(%rsp)
addq $0x20, %rdi
callq 0x9ffa0
testb $0x1, %al
jne 0xd9930
movb $0x1, 0x9b(%rsp)
movl $0x10, %edi
callq 0x50540
movq 0x20(%rsp), %rsi
movq %rax, 0x8(%rsp)
leaq 0xa8(%rsp), %rdi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x9feb0
jmp 0xd9864
leaq 0xf7dc2(%rip), %rsi # 0x1d162d
leaq 0xc8(%rsp), %rdi
leaq 0xa8(%rsp), %rdx
callq 0x7a6e0
jmp 0xd9882
movq 0x8(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x50390
jmp 0xd9896
movq 0x8(%rsp), %rdi
movb $0x0, 0x9b(%rsp)
movq 0x17a706(%rip), %rsi # 0x253fb0
movq 0x17a6c7(%rip), %rdx # 0x253f78
callq 0x508f0
jmp 0xd9a63
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
jmp 0xd9915
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
jmp 0xd9908
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
leaq 0xc8(%rsp), %rdi
callq 0x510c0
leaq 0xa8(%rsp), %rdi
callq 0x510c0
testb $0x1, 0x9b(%rsp)
jne 0xd9921
jmp 0xd992b
movq 0x8(%rsp), %rdi
callq 0x50c40
jmp 0xd9a56
movq 0x10(%rsp), %rdi
movb $0x0, 0x9a(%rsp)
callq 0xcb0f0
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0xc69f0
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rdi
callq 0xa1ae0
movq %rax, 0x88(%rsp)
movq 0x90(%rsp), %rdi
callq 0xa1b50
movq %rax, 0x80(%rsp)
leaq 0x88(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0xa1b10
testb $0x1, %al
jne 0xd99a0
jmp 0xd9a23
leaq 0x88(%rsp), %rdi
callq 0xca440
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0xc64d0
jmp 0xd99c3
movq 0x10(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xc7180
jmp 0xd99d4
leaq 0x28(%rsp), %rdi
callq 0x9f7a0
leaq 0x88(%rsp), %rdi
callq 0xa1ef0
jmp 0xd9982
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
jmp 0xd9a4c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x9f7a0
jmp 0xd9a4c
movb $0x1, 0x9a(%rsp)
testb $0x1, 0x9a(%rsp)
jne 0xd9a3f
movq 0x10(%rsp), %rdi
callq 0xcb220
movq 0x18(%rsp), %rax
addq $0xf8, %rsp
retq
movq 0x10(%rsp), %rdi
callq 0xcb220
movq 0xa0(%rsp), %rdi
callq 0x50940
nopw %cs:(%rax,%rax)
nopl (%rax)
|
_ZN5minja5Value4keysEv:
sub rsp, 0F8h
mov [rsp+0F8h+var_E8], rdi
mov rax, rdi
mov [rsp+0F8h+var_E0], rax
mov [rsp+0F8h+var_8], rdi
mov [rsp+0F8h+var_10], rsi
mov rdi, [rsp+0F8h+var_10]
mov [rsp+0F8h+var_D8], rdi
add rdi, 20h ; ' '
call _ZNKSt12__shared_ptrIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2>::operator bool(void)
test al, 1
jnz loc_D9930
mov [rsp+0F8h+var_5D], 1
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rsi, [rsp+0F8h+var_D8]
mov [rsp+0F8h+var_F0], rax
lea rdi, [rsp+0F8h+var_50]
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
jmp short $+2
loc_D9864:
lea rsi, aValueIsNotAnOb; "Value is not an object: "
lea rdi, [rsp+0F8h+var_30]
lea rdx, [rsp+0F8h+var_50]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
jmp short $+2
loc_D9882:
mov rdi, [rsp+0F8h+var_F0]
lea rsi, [rsp+0F8h+var_30]
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
jmp short $+2
loc_D9896:
mov rdi, [rsp+0F8h+var_F0]; void *
mov [rsp+0F8h+var_5D], 0
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
jmp loc_D9A63
mov rcx, rax
mov eax, edx
mov [rsp+arg_98], rcx
mov [rsp+arg_94], eax
jmp short loc_D9915
mov rcx, rax
mov eax, edx
mov [rsp+arg_98], rcx
mov [rsp+arg_94], eax
jmp short loc_D9908
mov rcx, rax
mov eax, edx
mov [rsp+arg_98], rcx
mov [rsp+arg_94], eax
lea rdi, [rsp+arg_C0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_D9908:
lea rdi, [rsp+arg_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_D9915:
test [rsp+arg_93], 1
jnz short loc_D9921
jmp short loc_D992B
loc_D9921:
mov rdi, [rsp+arg_0]; void *
call ___cxa_free_exception
loc_D992B:
jmp loc_D9A56
loc_D9930:
mov rdi, [rsp+0F8h+var_E8]
mov [rsp+0F8h+var_5E], 0
call _ZNSt6vectorIN5minja5ValueESaIS1_EEC2Ev; std::vector<minja::Value>::vector(void)
mov rdi, [rsp+0F8h+var_D8]
add rdi, 20h ; ' '
call _ZNKSt19__shared_ptr_accessIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv; std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator*(void)
mov [rsp+0F8h+var_68], rax
mov rdi, [rsp+0F8h+var_68]
call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE5beginEv; 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>>::begin(void)
mov [rsp+0F8h+var_70], rax
mov rdi, [rsp+0F8h+var_68]
call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE3endEv; 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>>::end(void)
mov [rsp+0F8h+var_78], rax
loc_D9982:
lea rdi, [rsp+0F8h+var_70]
lea rsi, [rsp+0F8h+var_78]
call _ZN9__gnu_cxxneIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbRKNS_17__normal_iteratorIT_T0_EEST_; __gnu_cxx::operator!=<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::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>>>(__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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>> const&,__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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>> const&)
test al, 1
jnz short loc_D99A0
jmp loc_D9A23
loc_D99A0:
lea rdi, [rsp+0F8h+var_70]
call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEdeEv; __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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator*(void)
mov [rsp+0F8h+var_80], rax
mov rsi, [rsp+0F8h+var_80]
lea rdi, [rsp+0F8h+var_D0]
call _ZN5minja5ValueC2ERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEE; minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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 $+2
loc_D99C3:
mov rdi, [rsp+0F8h+var_E8]
lea rsi, [rsp+0F8h+var_D0]
call _ZNSt6vectorIN5minja5ValueESaIS1_EE9push_backEOS1_; std::vector<minja::Value>::push_back(minja::Value&&)
jmp short $+2
loc_D99D4:
lea rdi, [rsp+0F8h+var_D0]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
lea rdi, [rsp+0F8h+var_70]
call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEppEv; __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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator++(void)
jmp short loc_D9982
mov rcx, rax
mov eax, edx
mov [rsp+arg_98], rcx
mov [rsp+arg_94], eax
jmp short loc_D9A4C
mov rcx, rax
mov eax, edx
mov [rsp+arg_98], rcx
mov [rsp+arg_94], eax
lea rdi, [rsp+arg_20]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp short loc_D9A4C
loc_D9A23:
mov [rsp+0F8h+var_5E], 1
test [rsp+0F8h+var_5E], 1
jnz short loc_D9A3F
mov rdi, [rsp+0F8h+var_E8]
call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector()
loc_D9A3F:
mov rax, [rsp+0F8h+var_E0]
add rsp, 0F8h
retn
loc_D9A4C:
mov rdi, [rsp+arg_8]
call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector()
loc_D9A56:
mov rdi, [rsp+arg_98]
call __Unwind_Resume
loc_D9A63:
nop word ptr [rax+rax+00000000h]
nop dword ptr [rax]
|
minja::Value * minja::Value::keys(minja::Value *this, long long a2)
{
void *exception; // [rsp+8h] [rbp-F0h]
_BYTE v4[80]; // [rsp+28h] [rbp-D0h] BYREF
_BYTE *v5; // [rsp+78h] [rbp-80h]
long long v6; // [rsp+80h] [rbp-78h] BYREF
long long v7; // [rsp+88h] [rbp-70h] BYREF
long long v8; // [rsp+90h] [rbp-68h]
char v9; // [rsp+9Ah] [rbp-5Eh]
char v10; // [rsp+9Bh] [rbp-5Dh]
_BYTE v11[32]; // [rsp+A8h] [rbp-50h] BYREF
_BYTE v12[32]; // [rsp+C8h] [rbp-30h] BYREF
long long v13; // [rsp+E8h] [rbp-10h]
minja::Value *v14; // [rsp+F0h] [rbp-8h]
v14 = this;
v13 = a2;
if ( !std::__shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2>::operator bool((_QWORD *)(a2 + 32)) )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v11, a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v12, (long long)"Value is not an object: ", (long long)v11);
std::runtime_error::runtime_error(exception, v12);
v10 = 0;
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v9 = 0;
std::vector<minja::Value>::vector((long long)this);
v8 = std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator*(a2 + 32);
v7 = 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>>::begin(v8);
v6 = 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>>::end(v8);
while ( __gnu_cxx::operator!=<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::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>>>(
(long long)&v7,
(long long)&v6) )
{
v5 = (_BYTE *)__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::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::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>>>::operator*((long long)&v7);
minja::Value::Value((long long)v4, v5);
std::vector<minja::Value>::push_back((long long)this, (long long)v4);
minja::Value::~Value((minja::Value *)v4);
__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::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::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>>>::operator++(&v7);
}
return this;
}
|
keys:
SUB RSP,0xf8
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0xf0],RDI
MOV qword ptr [RSP + 0xe8],RSI
MOV RDI,qword ptr [RSP + 0xe8]
MOV qword ptr [RSP + 0x20],RDI
ADD RDI,0x20
CALL 0x0019ffa0
TEST AL,0x1
JNZ 0x001d9930
MOV byte ptr [RSP + 0x9b],0x1
MOV EDI,0x10
CALL 0x00150540
MOV RSI,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x8],RAX
LAB_001d984e:
LEA RDI,[RSP + 0xa8]
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x0019feb0
JMP 0x001d9864
LAB_001d9864:
LEA RSI,[0x2d162d]
LEA RDI,[RSP + 0xc8]
LEA RDX,[RSP + 0xa8]
CALL 0x0017a6e0
JMP 0x001d9882
LAB_001d9882:
MOV RDI,qword ptr [RSP + 0x8]
LEA RSI,[RSP + 0xc8]
CALL 0x00150390
JMP 0x001d9896
LAB_001d9896:
MOV RDI,qword ptr [RSP + 0x8]
MOV byte ptr [RSP + 0x9b],0x0
MOV RSI,qword ptr [0x00353fb0]
MOV RDX,qword ptr [0x00353f78]
CALL 0x001508f0
LAB_001d9930:
MOV RDI,qword ptr [RSP + 0x10]
MOV byte ptr [RSP + 0x9a],0x0
CALL 0x001cb0f0
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x20
CALL 0x001c69f0
MOV qword ptr [RSP + 0x90],RAX
MOV RDI,qword ptr [RSP + 0x90]
CALL 0x001a1ae0
MOV qword ptr [RSP + 0x88],RAX
MOV RDI,qword ptr [RSP + 0x90]
CALL 0x001a1b50
MOV qword ptr [RSP + 0x80],RAX
LAB_001d9982:
LEA RDI,[RSP + 0x88]
LEA RSI,[RSP + 0x80]
CALL 0x001a1b10
TEST AL,0x1
JNZ 0x001d99a0
JMP 0x001d9a23
LAB_001d99a0:
LEA RDI,[RSP + 0x88]
CALL 0x001ca440
MOV qword ptr [RSP + 0x78],RAX
MOV RSI,qword ptr [RSP + 0x78]
LAB_001d99b7:
LEA RDI,[RSP + 0x28]
CALL 0x001c64d0
JMP 0x001d99c3
LAB_001d99c3:
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[RSP + 0x28]
CALL 0x001c7180
LAB_001d99d2:
JMP 0x001d99d4
LAB_001d99d4:
LEA RDI,[RSP + 0x28]
CALL 0x0019f7a0
LEA RDI,[RSP + 0x88]
CALL 0x001a1ef0
JMP 0x001d9982
LAB_001d9a23:
MOV byte ptr [RSP + 0x9a],0x1
TEST byte ptr [RSP + 0x9a],0x1
JNZ 0x001d9a3f
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001cb220
LAB_001d9a3f:
MOV RAX,qword ptr [RSP + 0x18]
ADD RSP,0xf8
RET
|
/* WARNING: Removing unreachable block (ram,0x001d9a35) */
/* minja::Value::keys() */
vector<minja::Value,std::allocator<minja::Value>> * minja::Value::keys(void)
{
bool bVar1;
runtime_error *this;
long in_RSI;
vector<minja::Value,std::allocator<minja::Value>> *in_RDI;
Value local_d0 [80];
basic_json *local_80;
int8 local_78;
int8 local_70;
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>>>
*local_68;
int1 local_5e;
int1 local_5d;
int1 local_50 [32];
string local_30 [48];
bVar1 = std::__shared_ptr::operator_cast_to_bool((__shared_ptr *)(in_RSI + 0x20));
if (bVar1) {
local_5e = 0;
std::vector<minja::Value,std::allocator<minja::Value>>::vector(in_RDI);
local_68 = (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>>>
*)std::
__shared_ptr_access<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>>>,(__gnu_cxx::_Lock_policy)2,false,false>
::operator*((__shared_ptr_access<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>>>,(__gnu_cxx::_Lock_policy)2,false,false>
*)(in_RSI + 0x20));
local_70 = 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>>>
::begin(local_68);
local_78 = 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>>>
::end(local_68);
while (bVar1 = __gnu_cxx::operator!=
((__normal_iterator *)&local_70,(__normal_iterator *)&local_78), bVar1)
{
local_80 = (basic_json *)
__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>>>>
::operator*((__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>>>>
*)&local_70);
/* try { // try from 001d99b7 to 001d99c0 has its CatchHandler @ 001d99ed */
Value(local_d0,local_80);
/* try { // try from 001d99c3 to 001d99d1 has its CatchHandler @ 001d9a03 */
std::vector<minja::Value,std::allocator<minja::Value>>::push_back(in_RDI,local_d0);
~Value(local_d0);
__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>>>>
::operator++((__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>>>>
*)&local_70);
}
return in_RDI;
}
local_5d = 1;
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001d984e to 001d9861 has its CatchHandler @ 001d98bb */
dump_abi_cxx11_((int)local_50,SUB81(in_RSI,0));
/* try { // try from 001d9864 to 001d987f has its CatchHandler @ 001d98d1 */
std::operator+((char *)local_30,(string *)"Value is not an object: ");
/* try { // try from 001d9882 to 001d98b5 has its CatchHandler @ 001d98e7 */
std::runtime_error::runtime_error(this,local_30);
local_5d = 0;
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_00353fb0,PTR__runtime_error_00353f78);
}
|
|
57,478
|
ggml_compute_forward_get_rows_f32
|
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c
|
static void ggml_compute_forward_get_rows_f32(
const struct ggml_compute_params * params,
struct ggml_tensor * dst) {
const struct ggml_tensor * src0 = dst->src[0];
const struct ggml_tensor * src1 = dst->src[1];
GGML_TENSOR_BINARY_OP_LOCALS
const int64_t nc = ne00;
const int64_t nr = ggml_nelements(src1);
assert(ne0 == nc);
assert(ne02 == ne11);
assert(nb00 == sizeof(float));
assert(ggml_nrows(dst) == nr);
const int ith = params->ith;
const int nth = params->nth;
// rows per thread
const int dr = (nr + nth - 1)/nth;
// row range for this thread
const int ir0 = dr*ith;
const int ir1 = MIN(ir0 + dr, nr);
for (int64_t i = ir0; i < ir1; ++i) {
const int64_t i12 = i/(ne11*ne10);
const int64_t i11 = (i - i12*ne11*ne10)/ne10;
const int64_t i10 = (i - i12*ne11*ne10 - i11*ne10);
const int64_t i01 = *(int32_t *) ((char *) src1->data + i10*nb10 + i11*nb11 + i12*nb12);
GGML_ASSERT(i01 >= 0 && i01 < ne01);
ggml_vec_cpy_f32(nc,
(float *) ((char *) dst->data + i10*nb1 + i11*nb2 + i12*nb3),
(float *) ((char *) src0->data + i01*nb01 + i11*nb02 + i12*nb03));
}
}
|
O0
|
c
|
ggml_compute_forward_get_rows_f32:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp # imm = 0x140
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x98(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0xa0(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x70(%rbp)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x80(%rbp)
movq -0x20(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x88(%rbp)
movq -0x20(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x90(%rbp)
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0x98(%rbp)
movq -0x20(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0xa0(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xa8(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0xb0(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0xb8(%rbp)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0xc0(%rbp)
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0xc8(%rbp)
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0xd0(%rbp)
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0xd8(%rbp)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0xe0(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x20(%rbp), %rdi
callq 0xdb10
movq %rax, -0xf0(%rbp)
movq -0xa8(%rbp), %rax
cmpq -0xe8(%rbp), %rax
jne 0x2d642
jmp 0x2d661
leaq 0x479be(%rip), %rdi # 0x75007
leaq 0x46512(%rip), %rsi # 0x73b62
movl $0x20f3, %edx # imm = 0x20F3
leaq 0x47b11(%rip), %rcx # 0x7516d
callq 0xd690
movq -0x38(%rbp), %rax
cmpq -0x70(%rbp), %rax
jne 0x2d66d
jmp 0x2d68c
leaq 0x479fc(%rip), %rdi # 0x75070
leaq 0x464e7(%rip), %rsi # 0x73b62
movl $0x20f4, %edx # imm = 0x20F4
leaq 0x47ae6(%rip), %rcx # 0x7516d
callq 0xd690
cmpq $0x4, -0x48(%rbp)
jne 0x2d695
jmp 0x2d6b4
leaq 0x46c52(%rip), %rdi # 0x742ee
leaq 0x464bf(%rip), %rsi # 0x73b62
movl $0x20f5, %edx # imm = 0x20F5
leaq 0x47abe(%rip), %rcx # 0x7516d
callq 0xd690
movq -0x10(%rbp), %rdi
callq 0xdc20
cmpq -0xf0(%rbp), %rax
jne 0x2d6c8
jmp 0x2d6e7
leaq 0x479ae(%rip), %rdi # 0x7507d
leaq 0x4648c(%rip), %rsi # 0x73b62
movl $0x20f6, %edx # imm = 0x20F6
leaq 0x47a8b(%rip), %rcx # 0x7516d
callq 0xd690
movq -0x8(%rbp), %rax
movl (%rax), %eax
movl %eax, -0xf4(%rbp)
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0xf8(%rbp)
movq -0xf0(%rbp), %rax
movslq -0xf8(%rbp), %rcx
addq %rcx, %rax
subq $0x1, %rax
movslq -0xf8(%rbp), %rcx
cqto
idivq %rcx
movl %eax, -0xfc(%rbp)
movl -0xfc(%rbp), %eax
imull -0xf4(%rbp), %eax
movl %eax, -0x100(%rbp)
movl -0x100(%rbp), %eax
addl -0xfc(%rbp), %eax
cltq
cmpq -0xf0(%rbp), %rax
jge 0x2d768
movl -0x100(%rbp), %eax
addl -0xfc(%rbp), %eax
cltq
movq %rax, -0x138(%rbp)
jmp 0x2d776
movq -0xf0(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x138(%rbp), %rax
movl %eax, -0x104(%rbp)
movslq -0x100(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rax
movslq -0x104(%rbp), %rcx
cmpq %rcx, %rax
jge 0x2d93c
movq -0x110(%rbp), %rax
movq -0x70(%rbp), %rcx
imulq -0x68(%rbp), %rcx
cqto
idivq %rcx
movq %rax, -0x118(%rbp)
movq -0x110(%rbp), %rax
movq -0x118(%rbp), %rcx
imulq -0x70(%rbp), %rcx
imulq -0x68(%rbp), %rcx
subq %rcx, %rax
cqto
idivq -0x68(%rbp)
movq %rax, -0x120(%rbp)
movq -0x110(%rbp), %rax
movq -0x118(%rbp), %rcx
imulq -0x70(%rbp), %rcx
imulq -0x68(%rbp), %rcx
subq %rcx, %rax
movq -0x120(%rbp), %rcx
imulq -0x68(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x128(%rbp)
movq -0x20(%rbp), %rax
movq 0xf8(%rax), %rax
movq -0x128(%rbp), %rcx
imulq -0x88(%rbp), %rcx
addq %rcx, %rax
movq -0x120(%rbp), %rcx
imulq -0x90(%rbp), %rcx
addq %rcx, %rax
movq -0x118(%rbp), %rcx
imulq -0x98(%rbp), %rcx
movslq (%rax,%rcx), %rax
movq %rax, -0x130(%rbp)
cmpq $0x0, -0x130(%rbp)
jl 0x2d87d
movq -0x130(%rbp), %rax
cmpq -0x30(%rbp), %rax
jl 0x2d89e
leaq 0x462de(%rip), %rdi # 0x73b62
movl $0x2108, %esi # imm = 0x2108
leaq 0x46331(%rip), %rdx # 0x73bc1
leaq 0x477fc(%rip), %rcx # 0x75093
movb $0x0, %al
callq 0xe270
movq -0xe8(%rbp), %rax
movl %eax, %edi
movq -0x10(%rbp), %rax
movq 0xf8(%rax), %rsi
movq -0x128(%rbp), %rax
imulq -0xd0(%rbp), %rax
addq %rax, %rsi
movq -0x120(%rbp), %rax
imulq -0xd8(%rbp), %rax
addq %rax, %rsi
movq -0x118(%rbp), %rax
imulq -0xe0(%rbp), %rax
addq %rax, %rsi
movq -0x18(%rbp), %rax
movq 0xf8(%rax), %rdx
movq -0x130(%rbp), %rax
imulq -0x50(%rbp), %rax
addq %rax, %rdx
movq -0x120(%rbp), %rax
imulq -0x58(%rbp), %rax
addq %rax, %rdx
movq -0x118(%rbp), %rax
imulq -0x60(%rbp), %rax
addq %rax, %rdx
callq 0x27660
movq -0x110(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x110(%rbp)
jmp 0x2d791
addq $0x140, %rsp # imm = 0x140
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
ggml_compute_forward_get_rows_f32:
push rbp
mov rbp, rsp
sub rsp, 140h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
mov rax, [rax+98h]
mov [rbp+var_18], rax
mov rax, [rbp+var_10]
mov rax, [rax+0A0h]
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
mov rax, [rax+10h]
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov rax, [rax+18h]
mov [rbp+var_30], rax
mov rax, [rbp+var_18]
mov rax, [rax+20h]
mov [rbp+var_38], rax
mov rax, [rbp+var_18]
mov rax, [rax+28h]
mov [rbp+var_40], rax
mov rax, [rbp+var_18]
mov rax, [rax+30h]
mov [rbp+var_48], rax
mov rax, [rbp+var_18]
mov rax, [rax+38h]
mov [rbp+var_50], rax
mov rax, [rbp+var_18]
mov rax, [rax+40h]
mov [rbp+var_58], rax
mov rax, [rbp+var_18]
mov rax, [rax+48h]
mov [rbp+var_60], rax
mov rax, [rbp+var_20]
mov rax, [rax+10h]
mov [rbp+var_68], rax
mov rax, [rbp+var_20]
mov rax, [rax+18h]
mov [rbp+var_70], rax
mov rax, [rbp+var_20]
mov rax, [rax+20h]
mov [rbp+var_78], rax
mov rax, [rbp+var_20]
mov rax, [rax+28h]
mov [rbp+var_80], rax
mov rax, [rbp+var_20]
mov rax, [rax+30h]
mov [rbp+var_88], rax
mov rax, [rbp+var_20]
mov rax, [rax+38h]
mov [rbp+var_90], rax
mov rax, [rbp+var_20]
mov rax, [rax+40h]
mov [rbp+var_98], rax
mov rax, [rbp+var_20]
mov rax, [rax+48h]
mov [rbp+var_A0], rax
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov [rbp+var_A8], rax
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov [rbp+var_B0], rax
mov rax, [rbp+var_10]
mov rax, [rax+20h]
mov [rbp+var_B8], rax
mov rax, [rbp+var_10]
mov rax, [rax+28h]
mov [rbp+var_C0], rax
mov rax, [rbp+var_10]
mov rax, [rax+30h]
mov [rbp+var_C8], rax
mov rax, [rbp+var_10]
mov rax, [rax+38h]
mov [rbp+var_D0], rax
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov [rbp+var_D8], rax
mov rax, [rbp+var_10]
mov rax, [rax+48h]
mov [rbp+var_E0], rax
mov rax, [rbp+var_28]
mov [rbp+var_E8], rax
mov rdi, [rbp+var_20]
call _ggml_nelements
mov [rbp+var_F0], rax
mov rax, [rbp+var_A8]
cmp rax, [rbp+var_E8]
jnz short loc_2D642
jmp short loc_2D661
loc_2D642:
lea rdi, aNe0Nc; "ne0 == nc"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov edx, 20F3h
lea rcx, aVoidGgmlComput_18; "void ggml_compute_forward_get_rows_f32("...
call ___assert_fail
loc_2D661:
mov rax, [rbp+var_38]
cmp rax, [rbp+var_70]
jnz short loc_2D66D
jmp short loc_2D68C
loc_2D66D:
lea rdi, aNe02Ne11; "ne02 == ne11"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov edx, 20F4h
lea rcx, aVoidGgmlComput_18; "void ggml_compute_forward_get_rows_f32("...
call ___assert_fail
loc_2D68C:
cmp [rbp+var_48], 4
jnz short loc_2D695
jmp short loc_2D6B4
loc_2D695:
lea rdi, aNb00SizeofFloa; "nb00 == sizeof(float)"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov edx, 20F5h
lea rcx, aVoidGgmlComput_18; "void ggml_compute_forward_get_rows_f32("...
call ___assert_fail
loc_2D6B4:
mov rdi, [rbp+var_10]
call _ggml_nrows
cmp rax, [rbp+var_F0]
jnz short loc_2D6C8
jmp short loc_2D6E7
loc_2D6C8:
lea rdi, aGgmlNrowsDstNr; "ggml_nrows(dst) == nr"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov edx, 20F6h
lea rcx, aVoidGgmlComput_18; "void ggml_compute_forward_get_rows_f32("...
call ___assert_fail
loc_2D6E7:
mov rax, [rbp+var_8]
mov eax, [rax]
mov [rbp+var_F4], eax
mov rax, [rbp+var_8]
mov eax, [rax+4]
mov [rbp+var_F8], eax
mov rax, [rbp+var_F0]
movsxd rcx, [rbp+var_F8]
add rax, rcx
sub rax, 1
movsxd rcx, [rbp+var_F8]
cqo
idiv rcx
mov [rbp+var_FC], eax
mov eax, [rbp+var_FC]
imul eax, [rbp+var_F4]
mov [rbp+var_100], eax
mov eax, [rbp+var_100]
add eax, [rbp+var_FC]
cdqe
cmp rax, [rbp+var_F0]
jge short loc_2D768
mov eax, [rbp+var_100]
add eax, [rbp+var_FC]
cdqe
mov [rbp+var_138], rax
jmp short loc_2D776
loc_2D768:
mov rax, [rbp+var_F0]
mov [rbp+var_138], rax
loc_2D776:
mov rax, [rbp+var_138]
mov [rbp+var_104], eax
movsxd rax, [rbp+var_100]
mov [rbp+var_110], rax
loc_2D791:
mov rax, [rbp+var_110]
movsxd rcx, [rbp+var_104]
cmp rax, rcx
jge loc_2D93C
mov rax, [rbp+var_110]
mov rcx, [rbp+var_70]
imul rcx, [rbp+var_68]
cqo
idiv rcx
mov [rbp+var_118], rax
mov rax, [rbp+var_110]
mov rcx, [rbp+var_118]
imul rcx, [rbp+var_70]
imul rcx, [rbp+var_68]
sub rax, rcx
cqo
idiv [rbp+var_68]
mov [rbp+var_120], rax
mov rax, [rbp+var_110]
mov rcx, [rbp+var_118]
imul rcx, [rbp+var_70]
imul rcx, [rbp+var_68]
sub rax, rcx
mov rcx, [rbp+var_120]
imul rcx, [rbp+var_68]
sub rax, rcx
mov [rbp+var_128], rax
mov rax, [rbp+var_20]
mov rax, [rax+0F8h]
mov rcx, [rbp+var_128]
imul rcx, [rbp+var_88]
add rax, rcx
mov rcx, [rbp+var_120]
imul rcx, [rbp+var_90]
add rax, rcx
mov rcx, [rbp+var_118]
imul rcx, [rbp+var_98]
movsxd rax, dword ptr [rax+rcx]
mov [rbp+var_130], rax
cmp [rbp+var_130], 0
jl short loc_2D87D
mov rax, [rbp+var_130]
cmp rax, [rbp+var_30]
jl short loc_2D89E
loc_2D87D:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 2108h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aI010I01Ne01; "i01 >= 0 && i01 < ne01"
mov al, 0
call _ggml_abort
loc_2D89E:
mov rax, [rbp+var_E8]
mov edi, eax
mov rax, [rbp+var_10]
mov rsi, [rax+0F8h]
mov rax, [rbp+var_128]
imul rax, [rbp+var_D0]
add rsi, rax
mov rax, [rbp+var_120]
imul rax, [rbp+var_D8]
add rsi, rax
mov rax, [rbp+var_118]
imul rax, [rbp+var_E0]
add rsi, rax
mov rax, [rbp+var_18]
mov rdx, [rax+0F8h]
mov rax, [rbp+var_130]
imul rax, [rbp+var_50]
add rdx, rax
mov rax, [rbp+var_120]
imul rax, [rbp+var_58]
add rdx, rax
mov rax, [rbp+var_118]
imul rax, [rbp+var_60]
add rdx, rax
call ggml_vec_cpy_f32
mov rax, [rbp+var_110]
add rax, 1
mov [rbp+var_110], rax
jmp loc_2D791
loc_2D93C:
add rsp, 140h
pop rbp
retn
|
long long ggml_compute_forward_get_rows_f32(_DWORD *a1, _QWORD *a2)
{
long long result; // rax
int v3; // [rsp+8h] [rbp-138h]
long long v4; // [rsp+10h] [rbp-130h]
long long v5; // [rsp+20h] [rbp-120h]
long long i; // [rsp+30h] [rbp-110h]
int v7; // [rsp+40h] [rbp-100h]
int v8; // [rsp+44h] [rbp-FCh]
long long v9; // [rsp+50h] [rbp-F0h]
long long v10; // [rsp+58h] [rbp-E8h]
long long v11; // [rsp+60h] [rbp-E0h]
long long v12; // [rsp+68h] [rbp-D8h]
long long v13; // [rsp+70h] [rbp-D0h]
long long v14; // [rsp+98h] [rbp-A8h]
long long v15; // [rsp+A8h] [rbp-98h]
long long v16; // [rsp+B0h] [rbp-90h]
long long v17; // [rsp+B8h] [rbp-88h]
long long v18; // [rsp+D0h] [rbp-70h]
long long v19; // [rsp+D8h] [rbp-68h]
long long v20; // [rsp+E0h] [rbp-60h]
long long v21; // [rsp+E8h] [rbp-58h]
long long v22; // [rsp+F0h] [rbp-50h]
long long v23; // [rsp+F8h] [rbp-48h]
long long v24; // [rsp+108h] [rbp-38h]
long long v25; // [rsp+110h] [rbp-30h]
_QWORD *v26; // [rsp+120h] [rbp-20h]
_QWORD *v27; // [rsp+128h] [rbp-18h]
v27 = (_QWORD *)a2[19];
v26 = (_QWORD *)a2[20];
v25 = v27[3];
v24 = v27[4];
v23 = v27[6];
v22 = v27[7];
v21 = v27[8];
v20 = v27[9];
v19 = v26[2];
v18 = v26[3];
v17 = v26[6];
v16 = v26[7];
v15 = v26[8];
v14 = a2[2];
v13 = a2[7];
v12 = a2[8];
v11 = a2[9];
v10 = v27[2];
v9 = ggml_nelements(v26);
if ( v14 != v10 )
__assert_fail(
"ne0 == nc",
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
8435LL,
"void ggml_compute_forward_get_rows_f32(const struct ggml_compute_params *, struct ggml_tensor *)");
if ( v24 != v18 )
__assert_fail(
"ne02 == ne11",
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
8436LL,
"void ggml_compute_forward_get_rows_f32(const struct ggml_compute_params *, struct ggml_tensor *)");
if ( v23 != 4 )
__assert_fail(
"nb00 == sizeof(float)",
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
8437LL,
"void ggml_compute_forward_get_rows_f32(const struct ggml_compute_params *, struct ggml_tensor *)");
if ( ggml_nrows(a2) != v9 )
__assert_fail(
"ggml_nrows(dst) == nr",
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
8438LL,
"void ggml_compute_forward_get_rows_f32(const struct ggml_compute_params *, struct ggml_tensor *)");
v8 = ((int)a1[1] + v9 - 1) / (int)a1[1];
v7 = *a1 * v8;
if ( v8 + v7 >= v9 )
v3 = v9;
else
v3 = v8 + v7;
for ( i = v7; ; ++i )
{
result = i;
if ( i >= v3 )
break;
v4 = *(int *)(v16 * ((i - v19 * v18 * (i / (v19 * v18))) / v19)
+ v17 * ((i - v19 * v18 * (i / (v19 * v18))) % v19)
+ v26[31]
+ v15 * (i / (v19 * v18)));
if ( v4 < 0 || v4 >= v25 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
8456LL,
"GGML_ASSERT(%s) failed",
"i01 >= 0 && i01 < ne01");
v5 = (i - v19 * v18 * (i / (v19 * v18))) / v19;
ggml_vec_cpy_f32(
v10,
v11 * (i / (v19 * v18)) + v12 * v5 + v13 * ((i - v19 * v18 * (i / (v19 * v18))) % v19) + a2[31],
v20 * (i / (v19 * v18)) + v21 * v5 + v22 * v4 + v27[31]);
}
return result;
}
|
ggml_compute_forward_get_rows_f32:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x140
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x98]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xa0]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x40]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x48]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x70],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x80],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RBP + -0x88],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x38]
MOV qword ptr [RBP + -0x90],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x40]
MOV qword ptr [RBP + -0x98],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x48]
MOV qword ptr [RBP + -0xa0],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0xa8],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0xb0],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0xb8],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0xc0],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RBP + -0xc8],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x38]
MOV qword ptr [RBP + -0xd0],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV qword ptr [RBP + -0xd8],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x48]
MOV qword ptr [RBP + -0xe0],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0xe8],RAX
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0010db10
MOV qword ptr [RBP + -0xf0],RAX
MOV RAX,qword ptr [RBP + -0xa8]
CMP RAX,qword ptr [RBP + -0xe8]
JNZ 0x0012d642
JMP 0x0012d661
LAB_0012d642:
LEA RDI,[0x175007]
LEA RSI,[0x173b62]
MOV EDX,0x20f3
LEA RCX,[0x17516d]
CALL 0x0010d690
LAB_0012d661:
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x70]
JNZ 0x0012d66d
JMP 0x0012d68c
LAB_0012d66d:
LEA RDI,[0x175070]
LEA RSI,[0x173b62]
MOV EDX,0x20f4
LEA RCX,[0x17516d]
CALL 0x0010d690
LAB_0012d68c:
CMP qword ptr [RBP + -0x48],0x4
JNZ 0x0012d695
JMP 0x0012d6b4
LAB_0012d695:
LEA RDI,[0x1742ee]
LEA RSI,[0x173b62]
MOV EDX,0x20f5
LEA RCX,[0x17516d]
CALL 0x0010d690
LAB_0012d6b4:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0010dc20
CMP RAX,qword ptr [RBP + -0xf0]
JNZ 0x0012d6c8
JMP 0x0012d6e7
LAB_0012d6c8:
LEA RDI,[0x17507d]
LEA RSI,[0x173b62]
MOV EDX,0x20f6
LEA RCX,[0x17516d]
CALL 0x0010d690
LAB_0012d6e7:
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0xf4],EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x4]
MOV dword ptr [RBP + -0xf8],EAX
MOV RAX,qword ptr [RBP + -0xf0]
MOVSXD RCX,dword ptr [RBP + -0xf8]
ADD RAX,RCX
SUB RAX,0x1
MOVSXD RCX,dword ptr [RBP + -0xf8]
CQO
IDIV RCX
MOV dword ptr [RBP + -0xfc],EAX
MOV EAX,dword ptr [RBP + -0xfc]
IMUL EAX,dword ptr [RBP + -0xf4]
MOV dword ptr [RBP + -0x100],EAX
MOV EAX,dword ptr [RBP + -0x100]
ADD EAX,dword ptr [RBP + -0xfc]
CDQE
CMP RAX,qword ptr [RBP + -0xf0]
JGE 0x0012d768
MOV EAX,dword ptr [RBP + -0x100]
ADD EAX,dword ptr [RBP + -0xfc]
CDQE
MOV qword ptr [RBP + -0x138],RAX
JMP 0x0012d776
LAB_0012d768:
MOV RAX,qword ptr [RBP + -0xf0]
MOV qword ptr [RBP + -0x138],RAX
LAB_0012d776:
MOV RAX,qword ptr [RBP + -0x138]
MOV dword ptr [RBP + -0x104],EAX
MOVSXD RAX,dword ptr [RBP + -0x100]
MOV qword ptr [RBP + -0x110],RAX
LAB_0012d791:
MOV RAX,qword ptr [RBP + -0x110]
MOVSXD RCX,dword ptr [RBP + -0x104]
CMP RAX,RCX
JGE 0x0012d93c
MOV RAX,qword ptr [RBP + -0x110]
MOV RCX,qword ptr [RBP + -0x70]
IMUL RCX,qword ptr [RBP + -0x68]
CQO
IDIV RCX
MOV qword ptr [RBP + -0x118],RAX
MOV RAX,qword ptr [RBP + -0x110]
MOV RCX,qword ptr [RBP + -0x118]
IMUL RCX,qword ptr [RBP + -0x70]
IMUL RCX,qword ptr [RBP + -0x68]
SUB RAX,RCX
CQO
IDIV qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x120],RAX
MOV RAX,qword ptr [RBP + -0x110]
MOV RCX,qword ptr [RBP + -0x118]
IMUL RCX,qword ptr [RBP + -0x70]
IMUL RCX,qword ptr [RBP + -0x68]
SUB RAX,RCX
MOV RCX,qword ptr [RBP + -0x120]
IMUL RCX,qword ptr [RBP + -0x68]
SUB RAX,RCX
MOV qword ptr [RBP + -0x128],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0xf8]
MOV RCX,qword ptr [RBP + -0x128]
IMUL RCX,qword ptr [RBP + -0x88]
ADD RAX,RCX
MOV RCX,qword ptr [RBP + -0x120]
IMUL RCX,qword ptr [RBP + -0x90]
ADD RAX,RCX
MOV RCX,qword ptr [RBP + -0x118]
IMUL RCX,qword ptr [RBP + -0x98]
MOVSXD RAX,dword ptr [RAX + RCX*0x1]
MOV qword ptr [RBP + -0x130],RAX
CMP qword ptr [RBP + -0x130],0x0
JL 0x0012d87d
MOV RAX,qword ptr [RBP + -0x130]
CMP RAX,qword ptr [RBP + -0x30]
JL 0x0012d89e
LAB_0012d87d:
LEA RDI,[0x173b62]
MOV ESI,0x2108
LEA RDX,[0x173bc1]
LEA RCX,[0x175093]
MOV AL,0x0
CALL 0x0010e270
LAB_0012d89e:
MOV RAX,qword ptr [RBP + -0xe8]
MOV EDI,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0xf8]
MOV RAX,qword ptr [RBP + -0x128]
IMUL RAX,qword ptr [RBP + -0xd0]
ADD RSI,RAX
MOV RAX,qword ptr [RBP + -0x120]
IMUL RAX,qword ptr [RBP + -0xd8]
ADD RSI,RAX
MOV RAX,qword ptr [RBP + -0x118]
IMUL RAX,qword ptr [RBP + -0xe0]
ADD RSI,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RAX + 0xf8]
MOV RAX,qword ptr [RBP + -0x130]
IMUL RAX,qword ptr [RBP + -0x50]
ADD RDX,RAX
MOV RAX,qword ptr [RBP + -0x120]
IMUL RAX,qword ptr [RBP + -0x58]
ADD RDX,RAX
MOV RAX,qword ptr [RBP + -0x118]
IMUL RAX,qword ptr [RBP + -0x60]
ADD RDX,RAX
CALL 0x00127660
MOV RAX,qword ptr [RBP + -0x110]
ADD RAX,0x1
MOV qword ptr [RBP + -0x110],RAX
JMP 0x0012d791
LAB_0012d93c:
ADD RSP,0x140
POP RBP
RET
|
void ggml_compute_forward_get_rows_f32(int *param_1,long param_2)
{
long lVar1;
long lVar2;
ulong uVar3;
long lVar4;
long lVar5;
long lVar6;
long lVar7;
long lVar8;
long lVar9;
long lVar10;
long lVar11;
long lVar12;
ulong uVar13;
long lVar14;
long lVar15;
long lVar16;
int iVar17;
int iVar18;
long lVar19;
long lVar20;
long lVar21;
long lVar22;
long local_140;
long local_118;
lVar1 = *(long *)(param_2 + 0x98);
lVar2 = *(long *)(param_2 + 0xa0);
uVar3 = *(ulong *)(lVar1 + 0x10);
lVar4 = *(long *)(lVar1 + 0x18);
lVar19 = *(long *)(lVar1 + 0x20);
lVar20 = *(long *)(lVar1 + 0x30);
lVar5 = *(long *)(lVar1 + 0x38);
lVar6 = *(long *)(lVar1 + 0x40);
lVar7 = *(long *)(lVar1 + 0x48);
lVar8 = *(long *)(lVar2 + 0x10);
lVar9 = *(long *)(lVar2 + 0x18);
lVar10 = *(long *)(lVar2 + 0x30);
lVar11 = *(long *)(lVar2 + 0x38);
lVar12 = *(long *)(lVar2 + 0x40);
uVar13 = *(ulong *)(param_2 + 0x10);
lVar14 = *(long *)(param_2 + 0x38);
lVar15 = *(long *)(param_2 + 0x40);
lVar16 = *(long *)(param_2 + 0x48);
local_140 = ggml_nelements(lVar2);
if (uVar13 != uVar3) {
/* WARNING: Subroutine does not return */
__assert_fail("ne0 == nc",
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0x20f3,
"void ggml_compute_forward_get_rows_f32(const struct ggml_compute_params *, struct ggml_tensor *)"
);
}
if (lVar19 != lVar9) {
/* WARNING: Subroutine does not return */
__assert_fail("ne02 == ne11",
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0x20f4,
"void ggml_compute_forward_get_rows_f32(const struct ggml_compute_params *, struct ggml_tensor *)"
);
}
if (lVar20 != 4) {
/* WARNING: Subroutine does not return */
__assert_fail("nb00 == sizeof(float)",
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0x20f5,
"void ggml_compute_forward_get_rows_f32(const struct ggml_compute_params *, struct ggml_tensor *)"
);
}
lVar19 = ggml_nrows(param_2);
if (lVar19 != local_140) {
/* WARNING: Subroutine does not return */
__assert_fail("ggml_nrows(dst) == nr",
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0x20f6,
"void ggml_compute_forward_get_rows_f32(const struct ggml_compute_params *, struct ggml_tensor *)"
);
}
iVar17 = (int)((local_140 + param_1[1] + -1) / (long)param_1[1]);
iVar18 = iVar17 * *param_1;
if (iVar18 + iVar17 < local_140) {
local_140 = (long)(iVar18 + iVar17);
}
for (local_118 = (long)iVar18; local_118 < (int)local_140; local_118 = local_118 + 1) {
lVar19 = local_118 / (lVar9 * lVar8);
lVar20 = (local_118 - lVar19 * lVar9 * lVar8) / lVar8;
lVar21 = (local_118 - lVar19 * lVar9 * lVar8) - lVar20 * lVar8;
lVar22 = (long)*(int *)(*(long *)(lVar2 + 0xf8) + lVar21 * lVar10 + lVar20 * lVar11 +
lVar19 * lVar12);
if ((lVar22 < 0) || (lVar4 <= lVar22)) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0x2108,"GGML_ASSERT(%s) failed","i01 >= 0 && i01 < ne01");
}
ggml_vec_cpy_f32(uVar3 & 0xffffffff,
*(long *)(param_2 + 0xf8) + lVar21 * lVar14 + lVar20 * lVar15 + lVar19 * lVar16
,*(long *)(lVar1 + 0xf8) + lVar22 * lVar5 + lVar20 * lVar6 + lVar19 * lVar7);
}
return;
}
|
|
57,479
|
ma_tls_write
|
eloqsql/libmariadb/libmariadb/secure/openssl.c
|
ssize_t ma_tls_write(MARIADB_TLS *ctls, const uchar* buffer, size_t length)
{
int rc;
MARIADB_PVIO *pvio= ctls->pvio;
while ((rc= SSL_write((SSL *)ctls->ssl, (void *)buffer, (int)length)) <= 0)
{
int error= SSL_get_error((SSL *)ctls->ssl, rc);
if (error != SSL_ERROR_WANT_WRITE)
break;
if (pvio->methods->wait_io_or_timeout(pvio, TRUE, pvio->mysql->options.write_timeout) < 1)
break;
}
if (rc <= 0)
{
MYSQL *mysql= SSL_get_app_data(ctls->ssl);
ma_tls_set_error(mysql);
}
return rc;
}
|
O3
|
c
|
ma_tls_write:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
movq 0x8(%rdi), %r13
movq 0x10(%r15), %rdi
movq %r12, %rsi
movl %ebx, %edx
callq 0x3a620
movl %eax, %r14d
testl %eax, %eax
jg 0x6c7ab
movq 0x10(%r15), %rdi
movl %r14d, %esi
callq 0x3adc0
cmpl $0x3, %eax
jne 0x6c798
movq 0x40(%r13), %rax
movq 0x48(%r13), %rcx
movl 0x398(%rax), %edx
movq %r13, %rdi
movl $0x1, %esi
callq *0x30(%rcx)
testl %eax, %eax
jg 0x6c755
movq 0x10(%r15), %rdi
xorl %esi, %esi
callq 0x3a3b0
movq %rax, %rdi
callq 0x6c4a8
movslq %r14d, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
ma_tls_write:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdx
mov r12, rsi
mov r15, rdi
mov r13, [rdi+8]
loc_6C755:
mov rdi, [r15+10h]
mov rsi, r12
mov edx, ebx
call _SSL_write
mov r14d, eax
test eax, eax
jg short loc_6C7AB
mov rdi, [r15+10h]
mov esi, r14d
call _SSL_get_error
cmp eax, 3
jnz short loc_6C798
mov rax, [r13+40h]
mov rcx, [r13+48h]
mov edx, [rax+398h]
mov rdi, r13
mov esi, 1
call qword ptr [rcx+30h]
test eax, eax
jg short loc_6C755
loc_6C798:
mov rdi, [r15+10h]
xor esi, esi
call _SSL_get_ex_data
mov rdi, rax
call ma_tls_set_error
loc_6C7AB:
movsxd rax, r14d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long ma_tls_write(long long a1, long long a2, unsigned int a3)
{
long long v4; // r13
int v5; // eax
int v6; // r14d
long long *v7; // rax
v4 = *(_QWORD *)(a1 + 8);
while ( 1 )
{
v5 = SSL_write(*(_QWORD *)(a1 + 16), a2, a3);
v6 = v5;
if ( v5 > 0 )
break;
if ( (unsigned int)SSL_get_error(*(_QWORD *)(a1 + 16), (unsigned int)v5) != 3
|| (*(int ( **)(long long, long long, _QWORD))(*(_QWORD *)(v4 + 72) + 48LL))(
v4,
1LL,
*(unsigned int *)(*(_QWORD *)(v4 + 64) + 920LL)) <= 0 )
{
v7 = (long long *)SSL_get_ex_data(*(_QWORD *)(a1 + 16), 0LL);
ma_tls_set_error(v7);
return v6;
}
}
return v6;
}
|
ma_tls_write:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R12,RSI
MOV R15,RDI
MOV R13,qword ptr [RDI + 0x8]
LAB_0016c755:
MOV RDI,qword ptr [R15 + 0x10]
MOV RSI,R12
MOV EDX,EBX
CALL 0x0013a620
MOV R14D,EAX
TEST EAX,EAX
JG 0x0016c7ab
MOV RDI,qword ptr [R15 + 0x10]
MOV ESI,R14D
CALL 0x0013adc0
CMP EAX,0x3
JNZ 0x0016c798
MOV RAX,qword ptr [R13 + 0x40]
MOV RCX,qword ptr [R13 + 0x48]
MOV EDX,dword ptr [RAX + 0x398]
MOV RDI,R13
MOV ESI,0x1
CALL qword ptr [RCX + 0x30]
TEST EAX,EAX
JG 0x0016c755
LAB_0016c798:
MOV RDI,qword ptr [R15 + 0x10]
XOR ESI,ESI
CALL 0x0013a3b0
MOV RDI,RAX
CALL 0x0016c4a8
LAB_0016c7ab:
MOVSXD RAX,R14D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long ma_tls_write(long param_1,void *param_2,int param_3)
{
long lVar1;
int ret_code;
int iVar2;
void *pvVar3;
lVar1 = *(long *)(param_1 + 8);
do {
ret_code = SSL_write(*(SSL **)(param_1 + 0x10),param_2,param_3);
if (0 < ret_code) goto LAB_0016c7ab;
iVar2 = SSL_get_error(*(SSL **)(param_1 + 0x10),ret_code);
if (iVar2 != 3) break;
iVar2 = (**(code **)(*(long *)(lVar1 + 0x48) + 0x30))
(lVar1,1,*(int4 *)(*(long *)(lVar1 + 0x40) + 0x398));
} while (0 < iVar2);
pvVar3 = SSL_get_ex_data(*(SSL **)(param_1 + 0x10),0);
ma_tls_set_error(pvVar3);
LAB_0016c7ab:
return (long)ret_code;
}
|
|
57,480
|
get_bool_argument
|
eloqsql/mysys/my_getopt.c
|
static my_bool get_bool_argument(const struct my_option *opts,
const char *argument)
{
DBUG_ENTER("get_bool_argument");
if (!my_strcasecmp(&my_charset_latin1, argument, "true") ||
!my_strcasecmp(&my_charset_latin1, argument, "on") ||
!my_strcasecmp(&my_charset_latin1, argument, "1"))
DBUG_RETURN(1);
else if (!my_strcasecmp(&my_charset_latin1, argument, "false") ||
!my_strcasecmp(&my_charset_latin1, argument, "off") ||
!my_strcasecmp(&my_charset_latin1, argument, "0"))
DBUG_RETURN(0);
my_getopt_error_reporter(WARNING_LEVEL,
"option '%s': boolean value '%s' wasn't recognized. Set to OFF.",
opts->name, argument);
DBUG_RETURN(0);
}
|
O0
|
c
|
get_bool_argument:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
leaq 0x2591e9(%rip), %rax # 0x289dc0
movq 0xc0(%rax), %rax
movq 0x40(%rax), %rax
movq -0x18(%rbp), %rsi
leaq 0x2591d3(%rip), %rdi # 0x289dc0
leaq 0x5a0e4(%rip), %rdx # 0x8acd8
callq *%rax
cmpl $0x0, %eax
je 0x30c51
leaq 0x2591be(%rip), %rax # 0x289dc0
movq 0xc0(%rax), %rax
movq 0x40(%rax), %rax
movq -0x18(%rbp), %rsi
leaq 0x2591a8(%rip), %rdi # 0x289dc0
leaq 0x5d182(%rip), %rdx # 0x8dda1
callq *%rax
cmpl $0x0, %eax
je 0x30c51
leaq 0x259193(%rip), %rax # 0x289dc0
movq 0xc0(%rax), %rax
movq 0x40(%rax), %rax
movq -0x18(%rbp), %rsi
leaq 0x25917d(%rip), %rdi # 0x289dc0
leaq 0x59e19(%rip), %rdx # 0x8aa63
callq *%rax
cmpl $0x0, %eax
jne 0x30c5c
jmp 0x30c53
movb $0x1, -0x1(%rbp)
jmp 0x30d11
leaq 0x25915d(%rip), %rax # 0x289dc0
movq 0xc0(%rax), %rax
movq 0x40(%rax), %rax
movq -0x18(%rbp), %rsi
leaq 0x259147(%rip), %rdi # 0x289dc0
leaq 0x5a05d(%rip), %rdx # 0x8acdd
callq *%rax
cmpl $0x0, %eax
je 0x30cdd
leaq 0x259132(%rip), %rax # 0x289dc0
movq 0xc0(%rax), %rax
movq 0x40(%rax), %rax
movq -0x18(%rbp), %rsi
leaq 0x25911c(%rip), %rdi # 0x289dc0
leaq 0x5a038(%rip), %rdx # 0x8ace3
callq *%rax
cmpl $0x0, %eax
je 0x30cdd
leaq 0x259107(%rip), %rax # 0x289dc0
movq 0xc0(%rax), %rax
movq 0x40(%rax), %rax
movq -0x18(%rbp), %rsi
leaq 0x2590f1(%rip), %rdi # 0x289dc0
leaq 0x59b24(%rip), %rdx # 0x8a7fa
callq *%rax
cmpl $0x0, %eax
jne 0x30ce5
jmp 0x30cdf
movb $0x0, -0x1(%rbp)
jmp 0x30d11
jmp 0x30ce7
leaq 0x1b28e2(%rip), %rax # 0x1e35d0
movq (%rax), %r8
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movq -0x18(%rbp), %rcx
movl $0x1, %edi
leaq 0x5a3fa(%rip), %rsi # 0x8b102
movb $0x0, %al
callq *%r8
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
get_bool_argument:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
lea rax, my_charset_latin1
mov rax, [rax+0C0h]
mov rax, [rax+40h]
mov rsi, [rbp+var_18]
lea rdi, my_charset_latin1
lea rdx, aTrue; "true"
call rax
cmp eax, 0
jz short loc_30C51
lea rax, my_charset_latin1
mov rax, [rax+0C0h]
mov rax, [rax+40h]
mov rsi, [rbp+var_18]
lea rdi, my_charset_latin1
lea rdx, aExpansion+7; "on"
call rax
cmp eax, 0
jz short loc_30C51
lea rax, my_charset_latin1
mov rax, [rax+0C0h]
mov rax, [rax+40h]
mov rsi, [rbp+var_18]
lea rdi, my_charset_latin1
lea rdx, aIso88591_2+9; "1"
call rax
cmp eax, 0
jnz short loc_30C5C
loc_30C51:
jmp short $+2
loc_30C53:
mov [rbp+var_1], 1
jmp loc_30D11
loc_30C5C:
lea rax, my_charset_latin1
mov rax, [rax+0C0h]
mov rax, [rax+40h]
mov rsi, [rbp+var_18]
lea rdi, my_charset_latin1
lea rdx, aFalse; "false"
call rax
cmp eax, 0
jz short loc_30CDD
lea rax, my_charset_latin1
mov rax, [rax+0C0h]
mov rax, [rax+40h]
mov rsi, [rbp+var_18]
lea rdi, my_charset_latin1
lea rdx, aOff; "off"
call rax
cmp eax, 0
jz short loc_30CDD
lea rax, my_charset_latin1
mov rax, [rax+0C0h]
mov rax, [rax+40h]
mov rsi, [rbp+var_18]
lea rdi, my_charset_latin1
lea rdx, a30+2; "0"
call rax
cmp eax, 0
jnz short loc_30CE5
loc_30CDD:
jmp short $+2
loc_30CDF:
mov [rbp+var_1], 0
jmp short loc_30D11
loc_30CE5:
jmp short $+2
loc_30CE7:
lea rax, my_getopt_error_reporter
mov r8, [rax]
mov rax, [rbp+var_10]
mov rdx, [rax]
mov rcx, [rbp+var_18]
mov edi, 1
lea rsi, aOptionSBoolean; "option '%s': boolean value '%s' wasn't "...
mov al, 0
call r8
mov [rbp+var_1], 0
loc_30D11:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
|
char get_bool_argument(const char **a1, const char *a2)
{
if ( !(*(unsigned int ( **)(void *, const char *, const char *))(*((_QWORD *)&my_charset_latin1 + 24) + 64LL))(
&my_charset_latin1,
a2,
"true")
|| !(*(unsigned int ( **)(void *, const char *, char *))(*((_QWORD *)&my_charset_latin1 + 24) + 64LL))(
&my_charset_latin1,
a2,
"on")
|| !(*(unsigned int ( **)(void *, const char *, char *))(*((_QWORD *)&my_charset_latin1 + 24) + 64LL))(
&my_charset_latin1,
a2,
"1") )
{
return 1;
}
if ( !(*(unsigned int ( **)(void *, const char *, const char *))(*((_QWORD *)&my_charset_latin1 + 24) + 64LL))(
&my_charset_latin1,
a2,
"false")
|| !(*(unsigned int ( **)(void *, const char *, const char *))(*((_QWORD *)&my_charset_latin1 + 24) + 64LL))(
&my_charset_latin1,
a2,
"off")
|| !(*(unsigned int ( **)(void *, const char *, char *))(*((_QWORD *)&my_charset_latin1 + 24) + 64LL))(
&my_charset_latin1,
a2,
"0") )
{
return 0;
}
my_getopt_error_reporter(1, (long long)"option '%s': boolean value '%s' wasn't recognized. Set to OFF.", *a1, a2);
return 0;
}
|
get_bool_argument:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
LEA RAX,[0x389dc0]
MOV RAX,qword ptr [RAX + 0xc0]
MOV RAX,qword ptr [RAX + 0x40]
MOV RSI,qword ptr [RBP + -0x18]
LEA RDI,[0x389dc0]
LEA RDX,[0x18acd8]
CALL RAX
CMP EAX,0x0
JZ 0x00130c51
LEA RAX,[0x389dc0]
MOV RAX,qword ptr [RAX + 0xc0]
MOV RAX,qword ptr [RAX + 0x40]
MOV RSI,qword ptr [RBP + -0x18]
LEA RDI,[0x389dc0]
LEA RDX,[0x18dda1]
CALL RAX
CMP EAX,0x0
JZ 0x00130c51
LEA RAX,[0x389dc0]
MOV RAX,qword ptr [RAX + 0xc0]
MOV RAX,qword ptr [RAX + 0x40]
MOV RSI,qword ptr [RBP + -0x18]
LEA RDI,[0x389dc0]
LEA RDX,[0x18aa63]
CALL RAX
CMP EAX,0x0
JNZ 0x00130c5c
LAB_00130c51:
JMP 0x00130c53
LAB_00130c53:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00130d11
LAB_00130c5c:
LEA RAX,[0x389dc0]
MOV RAX,qword ptr [RAX + 0xc0]
MOV RAX,qword ptr [RAX + 0x40]
MOV RSI,qword ptr [RBP + -0x18]
LEA RDI,[0x389dc0]
LEA RDX,[0x18acdd]
CALL RAX
CMP EAX,0x0
JZ 0x00130cdd
LEA RAX,[0x389dc0]
MOV RAX,qword ptr [RAX + 0xc0]
MOV RAX,qword ptr [RAX + 0x40]
MOV RSI,qword ptr [RBP + -0x18]
LEA RDI,[0x389dc0]
LEA RDX,[0x18ace3]
CALL RAX
CMP EAX,0x0
JZ 0x00130cdd
LEA RAX,[0x389dc0]
MOV RAX,qword ptr [RAX + 0xc0]
MOV RAX,qword ptr [RAX + 0x40]
MOV RSI,qword ptr [RBP + -0x18]
LEA RDI,[0x389dc0]
LEA RDX,[0x18a7fa]
CALL RAX
CMP EAX,0x0
JNZ 0x00130ce5
LAB_00130cdd:
JMP 0x00130cdf
LAB_00130cdf:
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00130d11
LAB_00130ce5:
JMP 0x00130ce7
LAB_00130ce7:
LEA RAX,[0x2e35d0]
MOV R8,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
MOV EDI,0x1
LEA RSI,[0x18b102]
MOV AL,0x0
CALL R8
MOV byte ptr [RBP + -0x1],0x0
LAB_00130d11:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 get_bool_argument(int8 *param_1,int8 param_2)
{
int iVar1;
iVar1 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_00389e80 + 0x40))
(&my_charset_latin1,param_2,&DAT_0018acd8);
if (((iVar1 == 0) ||
(iVar1 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_00389e80 + 0x40))
(&my_charset_latin1,param_2,"on"), iVar1 == 0)) ||
(iVar1 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_00389e80 + 0x40))
(&my_charset_latin1,param_2,&DAT_0018aa63), iVar1 == 0)) {
return 1;
}
iVar1 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_00389e80 + 0x40))
(&my_charset_latin1,param_2,"false");
if (((iVar1 != 0) &&
(iVar1 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_00389e80 + 0x40))
(&my_charset_latin1,param_2,&DAT_0018ace3), iVar1 != 0)) &&
(iVar1 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_00389e80 + 0x40))
(&my_charset_latin1,param_2,&DAT_0018a7fa), iVar1 != 0)) {
(*(code *)my_getopt_error_reporter)
(1,"option \'%s\': boolean value \'%s\' wasn\'t recognized. Set to OFF.",*param_1,
param_2);
return 0;
}
return 0;
}
|
|
57,481
|
LefDefParser::defrData::defiError(int, int, char const*)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defrData.cpp
|
void
defrData::defiError(int check, int msgNum, const char* mess)
{
/* check is 1 if the caller function has checked totalMsgLimit, etc. */
if (!check) {
if ((settings->totalDefMsgLimit > 0) && (defMsgPrinted >= settings->totalDefMsgLimit))
return;
if (settings->MsgLimit[msgNum-5000] > 0) {
if (msgLimit[msgNum-5000] >= settings->MsgLimit[msgNum-5000])
return; /*over the limit*/
msgLimit[msgNum-5000] = msgLimit[msgNum-5000] + 1;
}
defMsgPrinted++;
}
if (settings->ContextErrorLogFunction) {
(*(settings->ContextErrorLogFunction))(session->UserData, mess);
} else if (settings->ErrorLogFunction) {
(*(settings->ErrorLogFunction))(mess);
} else {
fprintf(stderr, "%s", mess);
}
}
|
O0
|
cpp
|
LefDefParser::defrData::defiError(int, int, char const*):
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movl %esi, 0x1c(%rsp)
movl %edx, 0x18(%rsp)
movq %rcx, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpl $0x0, 0x1c(%rsp)
jne 0x5112f
movq 0x8(%rsp), %rax
movq 0x9250(%rax), %rax
cmpl $0x0, 0xa0(%rax)
jle 0x5108f
movq 0x8(%rsp), %rcx
movl 0xc4(%rcx), %eax
movq 0x9250(%rcx), %rcx
cmpl 0xa0(%rcx), %eax
jl 0x5108f
jmp 0x511bd
movq 0x8(%rsp), %rax
movq 0x9250(%rax), %rax
movl 0x18(%rsp), %ecx
subl $0x1388, %ecx # imm = 0x1388
movslq %ecx, %rcx
cmpl $0x0, 0x378(%rax,%rcx,4)
jle 0x5111b
movq 0x8(%rsp), %rcx
movl 0x18(%rsp), %eax
subl $0x1388, %eax # imm = 0x1388
cltq
movl 0x1270(%rcx,%rax,4), %eax
movq 0x9250(%rcx), %rcx
movl 0x18(%rsp), %edx
subl $0x1388, %edx # imm = 0x1388
movslq %edx, %rdx
cmpl 0x378(%rcx,%rdx,4), %eax
jl 0x510eb
jmp 0x511bd
movq 0x8(%rsp), %rax
movl 0x18(%rsp), %ecx
subl $0x1388, %ecx # imm = 0x1388
movslq %ecx, %rcx
movl 0x1270(%rax,%rcx,4), %edx
addl $0x1, %edx
movl 0x18(%rsp), %ecx
subl $0x1388, %ecx # imm = 0x1388
movslq %ecx, %rcx
movl %edx, 0x1270(%rax,%rcx,4)
movq 0x8(%rsp), %rax
movl 0xc4(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0xc4(%rax)
movq 0x8(%rsp), %rax
movq 0x9250(%rax), %rax
cmpq $0x0, 0xd0(%rax)
je 0x5116c
movq 0x8(%rsp), %rcx
movq 0x9250(%rcx), %rax
movq 0xd0(%rax), %rax
movq 0x9258(%rcx), %rcx
movq 0x10(%rcx), %rdi
movq 0x10(%rsp), %rsi
callq *%rax
jmp 0x511bd
movq 0x8(%rsp), %rax
movq 0x9250(%rax), %rax
cmpq $0x0, 0xc0(%rax)
je 0x5119e
movq 0x8(%rsp), %rax
movq 0x9250(%rax), %rax
movq 0xc0(%rax), %rax
movq 0x10(%rsp), %rdi
callq *%rax
jmp 0x511bb
movq 0x41e1b(%rip), %rax # 0x92fc0
movq (%rax), %rdi
movq 0x10(%rsp), %rdx
leaq 0x1f73f(%rip), %rsi # 0x708f3
movb $0x0, %al
callq 0x7300
jmp 0x511bd
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
|
_ZN12LefDefParser8defrData9defiErrorEiiPKc:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_C], esi
mov [rsp+28h+var_10], edx
mov [rsp+28h+var_18], rcx
mov rax, [rsp+28h+var_8]
mov [rsp+28h+var_20], rax
cmp [rsp+28h+var_C], 0
jnz loc_5112F
mov rax, [rsp+28h+var_20]
mov rax, [rax+9250h]
cmp dword ptr [rax+0A0h], 0
jle short loc_5108F
mov rcx, [rsp+28h+var_20]
mov eax, [rcx+0C4h]
mov rcx, [rcx+9250h]
cmp eax, [rcx+0A0h]
jl short loc_5108F
jmp loc_511BD
loc_5108F:
mov rax, [rsp+28h+var_20]
mov rax, [rax+9250h]
mov ecx, [rsp+28h+var_10]
sub ecx, 1388h
movsxd rcx, ecx
cmp dword ptr [rax+rcx*4+378h], 0
jle short loc_5111B
mov rcx, [rsp+28h+var_20]
mov eax, [rsp+28h+var_10]
sub eax, 1388h
cdqe
mov eax, [rcx+rax*4+1270h]
mov rcx, [rcx+9250h]
mov edx, [rsp+28h+var_10]
sub edx, 1388h
movsxd rdx, edx
cmp eax, [rcx+rdx*4+378h]
jl short loc_510EB
jmp loc_511BD
loc_510EB:
mov rax, [rsp+28h+var_20]
mov ecx, [rsp+28h+var_10]
sub ecx, 1388h
movsxd rcx, ecx
mov edx, [rax+rcx*4+1270h]
add edx, 1
mov ecx, [rsp+28h+var_10]
sub ecx, 1388h
movsxd rcx, ecx
mov [rax+rcx*4+1270h], edx
loc_5111B:
mov rax, [rsp+28h+var_20]
mov ecx, [rax+0C4h]
add ecx, 1
mov [rax+0C4h], ecx
loc_5112F:
mov rax, [rsp+28h+var_20]
mov rax, [rax+9250h]
cmp qword ptr [rax+0D0h], 0
jz short loc_5116C
mov rcx, [rsp+28h+var_20]
mov rax, [rcx+9250h]
mov rax, [rax+0D0h]
mov rcx, [rcx+9258h]
mov rdi, [rcx+10h]
mov rsi, [rsp+28h+var_18]
call rax
jmp short loc_511BD
loc_5116C:
mov rax, [rsp+28h+var_20]
mov rax, [rax+9250h]
cmp qword ptr [rax+0C0h], 0
jz short loc_5119E
mov rax, [rsp+28h+var_20]
mov rax, [rax+9250h]
mov rax, [rax+0C0h]
mov rdi, [rsp+28h+var_18]
call rax
jmp short loc_511BB
loc_5119E:
mov rax, cs:stderr_ptr
mov rdi, [rax]
mov rdx, [rsp+28h+var_18]
lea rsi, aS_0+4; "%s"
mov al, 0
call _fprintf
loc_511BB:
jmp short $+2
loc_511BD:
add rsp, 28h
retn
|
long long LefDefParser::defrData::defiError(LefDefParser::defrData *this, int a2, int a3, const char *a4)
{
long long result; // rax
if ( a2 )
{
LABEL_8:
if ( *(_QWORD *)(*((_QWORD *)this + 4682) + 208LL) )
return (*(long long ( **)(_QWORD, const char *))(*((_QWORD *)this + 4682) + 208LL))(
*(_QWORD *)(*((_QWORD *)this + 4683) + 16LL),
a4);
if ( *(_QWORD *)(*((_QWORD *)this + 4682) + 192LL) )
return (*(long long ( **)(const char *))(*((_QWORD *)this + 4682) + 192LL))(a4);
return fprintf(stderr, "%s", a4);
}
if ( *(int *)(*((_QWORD *)this + 4682) + 160LL) <= 0
|| (result = *((unsigned int *)this + 49), (int)result < *(_DWORD *)(*((_QWORD *)this + 4682) + 160LL)) )
{
if ( *(int *)(*((_QWORD *)this + 4682) + 4LL * (a3 - 5000) + 888) > 0 )
{
result = *((unsigned int *)this + a3 - 3820);
if ( (int)result >= *(_DWORD *)(*((_QWORD *)this + 4682) + 4LL * (a3 - 5000) + 888) )
return result;
++*((_DWORD *)this + a3 - 3820);
}
++*((_DWORD *)this + 49);
goto LABEL_8;
}
return result;
}
|
defiError:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV dword ptr [RSP + 0x1c],ESI
MOV dword ptr [RSP + 0x18],EDX
MOV qword ptr [RSP + 0x10],RCX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x8],RAX
CMP dword ptr [RSP + 0x1c],0x0
JNZ 0x0015112f
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x9250]
CMP dword ptr [RAX + 0xa0],0x0
JLE 0x0015108f
MOV RCX,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RCX + 0xc4]
MOV RCX,qword ptr [RCX + 0x9250]
CMP EAX,dword ptr [RCX + 0xa0]
JL 0x0015108f
JMP 0x001511bd
LAB_0015108f:
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x9250]
MOV ECX,dword ptr [RSP + 0x18]
SUB ECX,0x1388
MOVSXD RCX,ECX
CMP dword ptr [RAX + RCX*0x4 + 0x378],0x0
JLE 0x0015111b
MOV RCX,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RSP + 0x18]
SUB EAX,0x1388
CDQE
MOV EAX,dword ptr [RCX + RAX*0x4 + 0x1270]
MOV RCX,qword ptr [RCX + 0x9250]
MOV EDX,dword ptr [RSP + 0x18]
SUB EDX,0x1388
MOVSXD RDX,EDX
CMP EAX,dword ptr [RCX + RDX*0x4 + 0x378]
JL 0x001510eb
JMP 0x001511bd
LAB_001510eb:
MOV RAX,qword ptr [RSP + 0x8]
MOV ECX,dword ptr [RSP + 0x18]
SUB ECX,0x1388
MOVSXD RCX,ECX
MOV EDX,dword ptr [RAX + RCX*0x4 + 0x1270]
ADD EDX,0x1
MOV ECX,dword ptr [RSP + 0x18]
SUB ECX,0x1388
MOVSXD RCX,ECX
MOV dword ptr [RAX + RCX*0x4 + 0x1270],EDX
LAB_0015111b:
MOV RAX,qword ptr [RSP + 0x8]
MOV ECX,dword ptr [RAX + 0xc4]
ADD ECX,0x1
MOV dword ptr [RAX + 0xc4],ECX
LAB_0015112f:
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x9250]
CMP qword ptr [RAX + 0xd0],0x0
JZ 0x0015116c
MOV RCX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RCX + 0x9250]
MOV RAX,qword ptr [RAX + 0xd0]
MOV RCX,qword ptr [RCX + 0x9258]
MOV RDI,qword ptr [RCX + 0x10]
MOV RSI,qword ptr [RSP + 0x10]
CALL RAX
JMP 0x001511bd
LAB_0015116c:
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x9250]
CMP qword ptr [RAX + 0xc0],0x0
JZ 0x0015119e
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x9250]
MOV RAX,qword ptr [RAX + 0xc0]
MOV RDI,qword ptr [RSP + 0x10]
CALL RAX
JMP 0x001511bb
LAB_0015119e:
MOV RAX,qword ptr [0x00192fc0]
MOV RDI,qword ptr [RAX]
MOV RDX,qword ptr [RSP + 0x10]
LEA RSI,[0x1708f3]
MOV AL,0x0
CALL 0x00107300
LAB_001511bb:
JMP 0x001511bd
LAB_001511bd:
ADD RSP,0x28
RET
|
/* LefDefParser::defrData::defiError(int, int, char const*) */
void __thiscall
LefDefParser::defrData::defiError(defrData *this,int param_1,int param_2,char *param_3)
{
if (param_1 == 0) {
if ((0 < *(int *)(*(long *)(this + 0x9250) + 0xa0)) &&
(*(int *)(*(long *)(this + 0x9250) + 0xa0) <= *(int *)(this + 0xc4))) {
return;
}
if (0 < *(int *)(*(long *)(this + 0x9250) + 0x378 + (long)(param_2 + -5000) * 4)) {
if (*(int *)(*(long *)(this + 0x9250) + 0x378 + (long)(param_2 + -5000) * 4) <=
*(int *)(this + (long)(param_2 + -5000) * 4 + 0x1270)) {
return;
}
*(int *)(this + (long)(param_2 + -5000) * 4 + 0x1270) =
*(int *)(this + (long)(param_2 + -5000) * 4 + 0x1270) + 1;
}
*(int *)(this + 0xc4) = *(int *)(this + 0xc4) + 1;
}
if (*(long *)(*(long *)(this + 0x9250) + 0xd0) == 0) {
if (*(long *)(*(long *)(this + 0x9250) + 0xc0) == 0) {
fprintf(*(FILE **)PTR_stderr_00192fc0,"%s",param_3);
}
else {
(**(code **)(*(long *)(this + 0x9250) + 0xc0))(param_3);
}
}
else {
(**(code **)(*(long *)(this + 0x9250) + 0xd0))
(*(int8 *)(*(long *)(this + 0x9258) + 0x10),param_3);
}
return;
}
|
|
57,482
|
LefDefParser::defrData::defiError(int, int, char const*)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defrData.cpp
|
void
defrData::defiError(int check, int msgNum, const char* mess)
{
/* check is 1 if the caller function has checked totalMsgLimit, etc. */
if (!check) {
if ((settings->totalDefMsgLimit > 0) && (defMsgPrinted >= settings->totalDefMsgLimit))
return;
if (settings->MsgLimit[msgNum-5000] > 0) {
if (msgLimit[msgNum-5000] >= settings->MsgLimit[msgNum-5000])
return; /*over the limit*/
msgLimit[msgNum-5000] = msgLimit[msgNum-5000] + 1;
}
defMsgPrinted++;
}
if (settings->ContextErrorLogFunction) {
(*(settings->ContextErrorLogFunction))(session->UserData, mess);
} else if (settings->ErrorLogFunction) {
(*(settings->ErrorLogFunction))(mess);
} else {
fprintf(stderr, "%s", mess);
}
}
|
O3
|
cpp
|
LefDefParser::defrData::defiError(int, int, char const*):
movq 0x9250(%rdi), %rax
testl %esi, %esi
je 0x308c9
movq 0xd0(%rax), %rdx
testq %rdx, %rdx
je 0x30929
movq 0x9258(%rdi), %rax
movq 0x10(%rax), %rdi
movq %rcx, %rsi
jmpq *%rdx
movl 0xa0(%rax), %r8d
testl %r8d, %r8d
setle %r9b
movl 0xc4(%rdi), %esi
cmpl %r8d, %esi
setl %r8b
orb %r9b, %r8b
cmpb $0x1, %r8b
jne 0x3093a
movslq %edx, %rdx
movl -0x4aa8(%rax,%rdx,4), %r8d
testl %r8d, %r8d
jle 0x3091f
addq $-0x1388, %rdx # imm = 0xEC78
movl 0x1270(%rdi,%rdx,4), %esi
cmpl %r8d, %esi
jge 0x3093a
incl %esi
movl %esi, 0x1270(%rdi,%rdx,4)
movl 0xc4(%rdi), %esi
incl %esi
movl %esi, 0xc4(%rdi)
jmp 0x308ad
movq 0xc0(%rax), %rax
testq %rax, %rax
je 0x3093b
movq %rcx, %rdi
jmpq *%rax
retq
movq 0x35686(%rip), %rax # 0x65fc8
movq (%rax), %rsi
movq %rcx, %rdi
jmp 0x71e0
nop
|
_ZN12LefDefParser8defrData9defiErrorEiiPKc:
mov rax, [rdi+9250h]
test esi, esi
jz short loc_308C9
loc_308AD:
mov rdx, [rax+0D0h]
test rdx, rdx
jz short loc_30929
mov rax, [rdi+9258h]
mov rdi, [rax+10h]
mov rsi, rcx
jmp rdx
loc_308C9:
mov r8d, [rax+0A0h]
test r8d, r8d
setle r9b
mov esi, [rdi+0C4h]
cmp esi, r8d
setl r8b
or r8b, r9b
cmp r8b, 1
jnz short locret_3093A
movsxd rdx, edx
mov r8d, [rax+rdx*4-4AA8h]
test r8d, r8d
jle short loc_3091F
add rdx, 0FFFFFFFFFFFFEC78h
mov esi, [rdi+rdx*4+1270h]
cmp esi, r8d
jge short locret_3093A
inc esi
mov [rdi+rdx*4+1270h], esi
mov esi, [rdi+0C4h]
loc_3091F:
inc esi
mov [rdi+0C4h], esi
jmp short loc_308AD
loc_30929:
mov rax, [rax+0C0h]
test rax, rax
jz short loc_3093B
mov rdi, rcx
jmp rax
locret_3093A:
retn
loc_3093B:
mov rax, cs:stderr_ptr
mov rsi, [rax]
mov rdi, rcx
jmp _fputs
|
long long LefDefParser::defrData::defiError(LefDefParser::defrData *this, int a2, int a3, const char *a4)
{
long long result; // rax
long long ( *v5)(_QWORD, const char *); // rdx
int v6; // esi
int v7; // r8d
long long v8; // rdx
int v9; // esi
long long ( *v10)(const char *); // rax
result = *((_QWORD *)this + 4682);
if ( !a2 )
{
v6 = *((_DWORD *)this + 49);
if ( *(_DWORD *)(result + 160) > 0 && v6 >= *(_DWORD *)(result + 160) )
return result;
v7 = *(_DWORD *)(result + 4LL * a3 - 19112);
if ( v7 > 0 )
{
v8 = a3 - 5000LL;
v9 = *((_DWORD *)this + v8 + 1180);
if ( v9 >= v7 )
return result;
*((_DWORD *)this + v8 + 1180) = v9 + 1;
v6 = *((_DWORD *)this + 49);
}
*((_DWORD *)this + 49) = v6 + 1;
}
v5 = *(long long ( **)(_QWORD, const char *))(result + 208);
if ( v5 )
return v5(*(_QWORD *)(*((_QWORD *)this + 4683) + 16LL), a4);
v10 = *(long long ( **)(const char *))(result + 192);
if ( v10 )
return v10(a4);
else
return fputs(a4, stderr);
}
|
defiError:
MOV RAX,qword ptr [RDI + 0x9250]
TEST ESI,ESI
JZ 0x001308c9
LAB_001308ad:
MOV RDX,qword ptr [RAX + 0xd0]
TEST RDX,RDX
JZ 0x00130929
MOV RAX,qword ptr [RDI + 0x9258]
MOV RDI,qword ptr [RAX + 0x10]
MOV RSI,RCX
JMP RDX
LAB_001308c9:
MOV R8D,dword ptr [RAX + 0xa0]
TEST R8D,R8D
SETLE R9B
MOV ESI,dword ptr [RDI + 0xc4]
CMP ESI,R8D
SETL R8B
OR R8B,R9B
CMP R8B,0x1
JNZ 0x0013093a
MOVSXD RDX,EDX
MOV R8D,dword ptr [RAX + RDX*0x4 + -0x4aa8]
TEST R8D,R8D
JLE 0x0013091f
ADD RDX,-0x1388
MOV ESI,dword ptr [RDI + RDX*0x4 + 0x1270]
CMP ESI,R8D
JGE 0x0013093a
INC ESI
MOV dword ptr [RDI + RDX*0x4 + 0x1270],ESI
MOV ESI,dword ptr [RDI + 0xc4]
LAB_0013091f:
INC ESI
MOV dword ptr [RDI + 0xc4],ESI
JMP 0x001308ad
LAB_00130929:
MOV RAX,qword ptr [RAX + 0xc0]
TEST RAX,RAX
JZ 0x0013093b
MOV RDI,RCX
JMP RAX
LAB_0013093a:
RET
LAB_0013093b:
MOV RAX,qword ptr [0x00165fc8]
MOV RSI,qword ptr [RAX]
MOV RDI,RCX
JMP 0x001071e0
|
/* LefDefParser::defrData::defiError(int, int, char const*) */
void __thiscall
LefDefParser::defrData::defiError(defrData *this,int param_1,int param_2,char *param_3)
{
int iVar1;
long lVar2;
long lVar3;
int iVar4;
lVar2 = *(long *)(this + 0x9250);
if (param_1 == 0) {
iVar4 = *(int *)(this + 0xc4);
if (*(int *)(lVar2 + 0xa0) <= iVar4 && 0 < *(int *)(lVar2 + 0xa0)) {
return;
}
iVar1 = *(int *)(lVar2 + -0x4aa8 + (long)param_2 * 4);
if (0 < iVar1) {
lVar3 = (long)param_2 + -5000;
if (iVar1 <= *(int *)(this + lVar3 * 4 + 0x1270)) {
return;
}
*(int *)(this + lVar3 * 4 + 0x1270) = *(int *)(this + lVar3 * 4 + 0x1270) + 1;
iVar4 = *(int *)(this + 0xc4);
}
*(int *)(this + 0xc4) = iVar4 + 1;
}
if (*(code **)(lVar2 + 0xd0) == (code *)0x0) {
if (*(code **)(lVar2 + 0xc0) == (code *)0x0) {
fputs(param_3,*(FILE **)PTR_stderr_00165fc8);
return;
}
/* WARNING: Could not recover jumptable at 0x00130938. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(lVar2 + 0xc0))(param_3);
return;
}
/* WARNING: Could not recover jumptable at 0x001308c7. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(lVar2 + 0xd0))(*(int8 *)(*(long *)(this + 0x9258) + 0x10),param_3);
return;
}
|
|
57,483
|
THD::store_slow_query_state(Sub_statement_state*)
|
eloqsql/sql/sql_class.cc
|
void THD::store_slow_query_state(Sub_statement_state *backup)
{
backup->affected_rows= affected_rows;
backup->bytes_sent_old= bytes_sent_old;
backup->examined_row_count= m_examined_row_count;
backup->query_plan_flags= query_plan_flags;
backup->query_plan_fsort_passes= query_plan_fsort_passes;
backup->sent_row_count= m_sent_row_count;
backup->tmp_tables_disk_used= tmp_tables_disk_used;
backup->tmp_tables_size= tmp_tables_size;
backup->tmp_tables_used= tmp_tables_used;
}
|
O0
|
cpp
|
THD::store_slow_query_state(Sub_statement_state*):
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x3e00(%rax), %rdx
movq -0x10(%rbp), %rcx
movq %rdx, 0x98(%rcx)
movq 0x3df8(%rax), %rdx
movq -0x10(%rbp), %rcx
movq %rdx, 0xa0(%rcx)
movq 0x3ae0(%rax), %rdx
movq -0x10(%rbp), %rcx
movq %rdx, 0x90(%rcx)
movq 0x3dd0(%rax), %rdx
movq -0x10(%rbp), %rcx
movq %rdx, 0xc0(%rcx)
movq 0x3dd8(%rax), %rdx
movq -0x10(%rbp), %rcx
movq %rdx, 0xb8(%rcx)
movq 0x3ad8(%rax), %rdx
movq -0x10(%rbp), %rcx
movq %rdx, 0x88(%rcx)
movq 0x3de8(%rax), %rdx
movq -0x10(%rbp), %rcx
movq %rdx, 0xb0(%rcx)
movq 0x3df0(%rax), %rdx
movq -0x10(%rbp), %rcx
movq %rdx, 0x70(%rcx)
movq 0x3de0(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0xa8(%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ZN3THD22store_slow_query_stateEP19Sub_statement_state:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov rdx, [rax+3E00h]
mov rcx, [rbp+var_10]
mov [rcx+98h], rdx
mov rdx, [rax+3DF8h]
mov rcx, [rbp+var_10]
mov [rcx+0A0h], rdx
mov rdx, [rax+3AE0h]
mov rcx, [rbp+var_10]
mov [rcx+90h], rdx
mov rdx, [rax+3DD0h]
mov rcx, [rbp+var_10]
mov [rcx+0C0h], rdx
mov rdx, [rax+3DD8h]
mov rcx, [rbp+var_10]
mov [rcx+0B8h], rdx
mov rdx, [rax+3AD8h]
mov rcx, [rbp+var_10]
mov [rcx+88h], rdx
mov rdx, [rax+3DE8h]
mov rcx, [rbp+var_10]
mov [rcx+0B0h], rdx
mov rdx, [rax+3DF0h]
mov rcx, [rbp+var_10]
mov [rcx+70h], rdx
mov rcx, [rax+3DE0h]
mov rax, [rbp+var_10]
mov [rax+0A8h], rcx
pop rbp
retn
|
Sub_statement_state * THD::store_slow_query_state(THD *this, Sub_statement_state *a2)
{
Sub_statement_state *result; // rax
*((_QWORD *)a2 + 19) = *((_QWORD *)this + 1984);
*((_QWORD *)a2 + 20) = *((_QWORD *)this + 1983);
*((_QWORD *)a2 + 18) = *((_QWORD *)this + 1884);
*((_QWORD *)a2 + 24) = *((_QWORD *)this + 1978);
*((_QWORD *)a2 + 23) = *((_QWORD *)this + 1979);
*((_QWORD *)a2 + 17) = *((_QWORD *)this + 1883);
*((_QWORD *)a2 + 22) = *((_QWORD *)this + 1981);
*((_QWORD *)a2 + 14) = *((_QWORD *)this + 1982);
result = a2;
*((_QWORD *)a2 + 21) = *((_QWORD *)this + 1980);
return result;
}
|
Delete_file_log_event:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV AL,CL
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
AND AL,0x1
MOV byte ptr [RBP + -0x19],AL
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x28],RDI
MOV RSI,qword ptr [RBP + -0x10]
MOV AL,byte ptr [RBP + -0x19]
XOR EDX,EDX
AND AL,0x1
MOVZX ECX,AL
CALL 0x00966ac0
MOV RAX,qword ptr [RBP + -0x28]
LEA RCX,[0x1ae9120]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0x271c]
MOV dword ptr [RAX + 0x6c],ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x70],RCX
ADD RSP,0x30
POP RBP
RET
|
/* Delete_file_log_event::Delete_file_log_event(THD*, char const*, bool) */
void __thiscall
Delete_file_log_event::Delete_file_log_event
(Delete_file_log_event *this,THD *param_1,char *param_2,bool param_3)
{
Log_event::Log_event((Log_event *)this,param_1,0,param_3);
*(int ***)this = &PTR_pack_info_01ae9130;
*(int4 *)(this + 0x6c) = *(int4 *)(param_1 + 0x271c);
*(char **)(this + 0x70) = param_2;
return;
}
|
|
57,484
|
hashcmp
|
eloqsql/mysys/hash.c
|
static int hashcmp(const HASH *hash, HASH_LINK *pos, const uchar *key,
size_t length)
{
size_t rec_keylength;
uchar *rec_key= (uchar*) my_hash_key(hash, pos->data, &rec_keylength, 1);
return ((length && length != rec_keylength) ||
my_strnncoll(hash->charset, (uchar*) rec_key, rec_keylength,
(uchar*) key, rec_keylength));
}
|
O3
|
c
|
hashcmp:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %r15
movq %rdx, %rbx
movq %rdi, %r14
movq 0x50(%rdi), %rax
testq %rax, %rax
je 0x93e04
leaq -0x28(%rbp), %r12
movq %rsi, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq *%rax
movq %rax, %rsi
movq (%r12), %rdx
jmp 0x93e0f
movq 0x8(%r14), %rdx
movq %rdx, -0x28(%rbp)
addq (%r14), %rsi
testq %r15, %r15
sete %al
cmpq %r15, %rdx
sete %cl
orb %al, %cl
movl $0x1, %eax
cmpb $0x1, %cl
jne 0x93e47
movq 0x68(%r14), %rdi
movq 0xc0(%rdi), %rax
movq %rbx, %rcx
movq %rdx, %r8
xorl %r9d, %r9d
callq *0x8(%rax)
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
setne %al
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
hashcmp:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov r15, rcx
mov rbx, rdx
mov r14, rdi
mov rax, [rdi+50h]
test rax, rax
jz short loc_93E04
lea r12, [rbp+var_28]
mov rdi, rsi
mov rsi, r12
mov edx, 1
call rax
mov rsi, rax
mov rdx, [r12]
jmp short loc_93E0F
loc_93E04:
mov rdx, [r14+8]
mov [rbp+var_28], rdx
add rsi, [r14]
loc_93E0F:
test r15, r15
setz al
cmp rdx, r15
setz cl
or cl, al
mov eax, 1
cmp cl, 1
jnz short loc_93E47
mov rdi, [r14+68h]
mov rax, [rdi+0C0h]
mov rcx, rbx
mov r8, rdx
xor r9d, r9d
call qword ptr [rax+8]
mov ecx, eax
xor eax, eax
test ecx, ecx
setnz al
loc_93E47:
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
_BOOL8 hashcmp(_QWORD *a1, long long a2, long long a3, long long a4)
{
long long ( *v6)(long long, _QWORD *, long long); // rax
long long v7; // rsi
long long v8; // rdx
_BOOL8 result; // rax
_QWORD v10[5]; // [rsp+8h] [rbp-28h] BYREF
v6 = (long long ( *)(long long, _QWORD *, long long))a1[10];
if ( v6 )
{
v7 = v6(a2, v10, 1LL);
v8 = v10[0];
}
else
{
v8 = a1[1];
v10[0] = v8;
v7 = *a1 + a2;
}
result = 1LL;
if ( a4 == 0 || v8 == a4 )
return (*(unsigned int ( **)(_QWORD, long long, long long, long long, long long, _QWORD))(*(_QWORD *)(a1[13] + 192LL)
+ 8LL))(
a1[13],
v7,
v8,
a3,
v8,
0LL) != 0;
return result;
}
|
hashcmp:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV R15,RCX
MOV RBX,RDX
MOV R14,RDI
MOV RAX,qword ptr [RDI + 0x50]
TEST RAX,RAX
JZ 0x00193e04
LEA R12,[RBP + -0x28]
MOV RDI,RSI
MOV RSI,R12
MOV EDX,0x1
CALL RAX
MOV RSI,RAX
MOV RDX,qword ptr [R12]
JMP 0x00193e0f
LAB_00193e04:
MOV RDX,qword ptr [R14 + 0x8]
MOV qword ptr [RBP + -0x28],RDX
ADD RSI,qword ptr [R14]
LAB_00193e0f:
TEST R15,R15
SETZ AL
CMP RDX,R15
SETZ CL
OR CL,AL
MOV EAX,0x1
CMP CL,0x1
JNZ 0x00193e47
MOV RDI,qword ptr [R14 + 0x68]
MOV RAX,qword ptr [RDI + 0xc0]
MOV RCX,RBX
MOV R8,RDX
XOR R9D,R9D
CALL qword ptr [RAX + 0x8]
MOV ECX,EAX
XOR EAX,EAX
TEST ECX,ECX
SETNZ AL
LAB_00193e47:
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
bool hashcmp(long *param_1,long param_2,int8 param_3,long param_4)
{
int iVar1;
bool bVar2;
long local_30;
if ((code *)param_1[10] == (code *)0x0) {
local_30 = param_1[1];
param_2 = param_2 + *param_1;
}
else {
param_2 = (*(code *)param_1[10])(param_2,&local_30,1);
}
bVar2 = true;
if (local_30 == param_4 || param_4 == 0) {
iVar1 = (**(code **)(*(long *)(param_1[0xd] + 0xc0) + 8))
(param_1[0xd],param_2,local_30,param_3,local_30,0);
bVar2 = iVar1 != 0;
}
return bVar2;
}
|
|
57,485
|
mju_isModifiedResource
|
aimrt_mujoco_sim/_deps/mujoco-src/src/engine/engine_resource.c
|
int mju_isModifiedResource(const mjResource* resource, const char* timestamp) {
// provider is not OS filesystem
if (resource->provider) {
if (resource->provider->modified) {
return resource->provider->modified(resource, timestamp);
}
return 1; // default (modified)
}
// fallback to OS filesystem
if (mju_isValidBase64(timestamp) != sizeof(time_t)) {
return 1; // error (assume modified)
}
time_t time1, time2;
mju_decodeBase64((uint8_t*) &time1, timestamp);
time2 = ((file_spec*) resource->data)->mtime;
double diff = difftime(time2, time1);
if (diff < 0) return -1;
if (diff > 0) return 1;
return 0;
}
|
O3
|
c
|
mju_isModifiedResource:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x210(%rdi), %rax
testq %rax, %rax
je 0x8ee10
movq 0x28(%rax), %rax
testq %rax, %rax
je 0x8ee61
movq %rbx, %rdi
movq %r14, %rsi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmpq *%rax
movq %r14, %rdi
callq 0x2e1d0
movq %rax, %rcx
movl $0x1, %eax
cmpq $0x8, %rcx
jne 0x8ee66
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x2e1e0
movq 0x8(%rbx), %rax
movq 0x20(%rax), %rdi
movq (%r15), %rsi
callq 0x2e1f0
vxorpd %xmm1, %xmm1, %xmm1
xorl %ecx, %ecx
vucomisd %xmm1, %xmm0
seta %cl
vucomisd %xmm0, %xmm1
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmovbel %ecx, %eax
jmp 0x8ee66
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
|
mju_isModifiedResource:
push r15
push r14
push rbx
sub rsp, 10h
mov r14, rsi
mov rbx, rdi
mov rax, [rdi+210h]
test rax, rax
jz short loc_8EE10
mov rax, [rax+28h]
test rax, rax
jz short loc_8EE61
mov rdi, rbx
mov rsi, r14
add rsp, 10h
pop rbx
pop r14
pop r15
jmp rax
loc_8EE10:
mov rdi, r14
call _mju_isValidBase64
mov rcx, rax
mov eax, 1
cmp rcx, 8
jnz short loc_8EE66
lea r15, [rsp+28h+var_20]
mov rdi, r15
mov rsi, r14
call _mju_decodeBase64
mov rax, [rbx+8]
mov rdi, [rax+20h]
mov rsi, [r15]
call _difftime
vxorpd xmm1, xmm1, xmm1
xor ecx, ecx
vucomisd xmm0, xmm1
setnbe cl
vucomisd xmm1, xmm0
mov eax, 0FFFFFFFFh
cmovbe eax, ecx
jmp short loc_8EE66
loc_8EE61:
mov eax, 1
loc_8EE66:
add rsp, 10h
pop rbx
pop r14
pop r15
retn
|
long long mju_isModifiedResource(long long a1, long long a2, __m128 _XMM0, __m128 _XMM1)
{
long long v4; // rax
long long ( *v5)(long long, long long); // rax
long long result; // rax
long long isValidBase64; // rcx
_QWORD v9[4]; // [rsp+8h] [rbp-20h] BYREF
v4 = *(_QWORD *)(a1 + 528);
if ( v4 )
{
v5 = *(long long ( **)(long long, long long))(v4 + 40);
if ( v5 )
return v5(a1, a2);
else
return 1LL;
}
else
{
isValidBase64 = mju_isValidBase64(a2);
result = 1LL;
if ( isValidBase64 == 8 )
{
mju_decodeBase64(v9, a2);
*(double *)_XMM0.m128_u64 = difftime(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 32LL), v9[0]);
__asm
{
vxorpd xmm1, xmm1, xmm1
vucomisd xmm0, xmm1
vucomisd xmm1, xmm0
}
return 0LL;
}
}
return result;
}
|
mju_isModifiedResource:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x210]
TEST RAX,RAX
JZ 0x0018ee10
MOV RAX,qword ptr [RAX + 0x28]
TEST RAX,RAX
JZ 0x0018ee61
MOV RDI,RBX
MOV RSI,R14
ADD RSP,0x10
POP RBX
POP R14
POP R15
JMP RAX
LAB_0018ee10:
MOV RDI,R14
CALL 0x0012e1d0
MOV RCX,RAX
MOV EAX,0x1
CMP RCX,0x8
JNZ 0x0018ee66
LEA R15,[RSP + 0x8]
MOV RDI,R15
MOV RSI,R14
CALL 0x0012e1e0
MOV RAX,qword ptr [RBX + 0x8]
MOV RDI,qword ptr [RAX + 0x20]
MOV RSI,qword ptr [R15]
CALL 0x0012e1f0
VXORPD XMM1,XMM1,XMM1
XOR ECX,ECX
VUCOMISD XMM0,XMM1
SETA CL
VUCOMISD XMM1,XMM0
MOV EAX,0xffffffff
CMOVBE EAX,ECX
JMP 0x0018ee66
LAB_0018ee61:
MOV EAX,0x1
LAB_0018ee66:
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
ulong mju_isModifiedResource(long param_1,int8 param_2)
{
code *UNRECOVERED_JUMPTABLE;
ulong uVar1;
long lVar2;
double dVar3;
time_t local_20;
if (*(long *)(param_1 + 0x210) == 0) {
lVar2 = mju_isValidBase64(param_2);
uVar1 = 1;
if (lVar2 == 8) {
mju_decodeBase64(&local_20,param_2);
dVar3 = difftime(*(time_t *)(*(long *)(param_1 + 8) + 0x20),local_20);
uVar1 = 0xffffffff;
if (0.0 <= dVar3) {
uVar1 = (ulong)(0.0 < dVar3);
}
}
}
else {
UNRECOVERED_JUMPTABLE = *(code **)(*(long *)(param_1 + 0x210) + 0x28);
if (UNRECOVERED_JUMPTABLE != (code *)0x0) {
/* WARNING: Could not recover jumptable at 0x0018ee0e. Too many branches */
/* WARNING: Treating indirect jump as call */
uVar1 = (*UNRECOVERED_JUMPTABLE)(param_1,param_2);
return uVar1;
}
uVar1 = 1;
}
return uVar1;
}
|
|
57,486
|
my_ftell
|
eloqsql/mysys/my_fstream.c
|
my_off_t my_ftell(FILE *stream, myf MyFlags __attribute__((unused)))
{
long long pos;
DBUG_ENTER("my_ftell");
DBUG_PRINT("my",("stream:%p MyFlags: %lu", stream, MyFlags));
pos=IF_WIN(_ftelli64(stream),ftell(stream));
DBUG_PRINT("exit",("ftell: %lld",pos));
DBUG_RETURN((my_off_t) pos);
}
|
O0
|
c
|
my_ftell:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
jmp 0x79492
movq -0x8(%rbp), %rdi
callq 0x36c30
movq %rax, -0x18(%rbp)
jmp 0x794a1
jmp 0x794a3
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
|
my_ftell:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
jmp short $+2
loc_79492:
mov rdi, [rbp+var_8]
call _ftello64
mov [rbp+var_18], rax
jmp short $+2
loc_794A1:
jmp short $+2
loc_794A3:
mov rax, [rbp+var_18]
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
add rsp, 20h
pop rbp
retn
|
long long my_ftell(long long a1)
{
return ftello64(a1);
}
|
my_ftell:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
JMP 0x00179492
LAB_00179492:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00136c30
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001794a1
LAB_001794a1:
JMP 0x001794a3
LAB_001794a3:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RSP,0x20
POP RBP
RET
|
__off64_t my_ftell(FILE *param_1)
{
__off64_t _Var1;
_Var1 = ftello64(param_1);
return _Var1;
}
|
|
57,487
|
Socket<AuthSession>::AsyncRead()
|
SylCore-WoTLK/src/server/shared/Network/Socket.h
|
void AsyncRead()
{
if (!IsOpen())
{
return;
}
_readBuffer.Normalize();
_readBuffer.EnsureFreeSpace();
_socket.async_read_some(boost::asio::buffer(_readBuffer.GetWritePointer(), _readBuffer.GetRemainingSpace()),
std::bind(&Socket<T>::ReadHandlerInternal, this->shared_from_this(), std::placeholders::_1, std::placeholders::_2));
}
|
O0
|
c
|
Socket<AuthSession>::AsyncRead():
subq $0x98, %rsp
movq %rdi, 0x90(%rsp)
movq 0x90(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x4fda0
testb $0x1, %al
jne 0x8335a
jmp 0x8343c
movq 0x28(%rsp), %rdi
addq $0x90, %rdi
movq %rdi, 0x10(%rsp)
callq 0x51030
movq 0x10(%rsp), %rdi
callq 0x510c0
movq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rax
addq $0x18, %rax
movq %rax, 0x8(%rsp)
callq 0x511a0
movq 0x10(%rsp), %rdi
movq %rax, 0x18(%rsp)
callq 0x511d0
movq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0x51160
movq 0x28(%rsp), %rsi
movq %rax, 0x80(%rsp)
movq %rdx, 0x88(%rsp)
leaq 0xc0e6(%rip), %rax # 0x8f4b0
movq %rax, 0x50(%rsp)
movq $0x0, 0x58(%rsp)
addq $0x8, %rsi
leaq 0x40(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x52a80
movq 0x20(%rsp), %rdx
leaq 0x2a9863(%rip), %rcx # 0x32cc5a
leaq 0x2a985d(%rip), %r8 # 0x32cc5b
leaq 0x60(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x51200
jmp 0x8340f
movq 0x8(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0x51110
jmp 0x83428
leaq 0x60(%rsp), %rdi
callq 0x52ab0
leaq 0x40(%rsp), %rdi
callq 0x372f0
addq $0x98, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
jmp 0x8346c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x52ab0
leaq 0x40(%rsp), %rdi
callq 0x372f0
movq 0x38(%rsp), %rdi
callq 0x21d50
|
_ZN6SocketI11AuthSessionE9AsyncReadEv:
sub rsp, 98h
mov [rsp+98h+var_8], rdi
mov rdi, [rsp+98h+var_8]
mov [rsp+98h+var_70], rdi
call _ZNK6SocketI11AuthSessionE6IsOpenEv; Socket<AuthSession>::IsOpen(void)
test al, 1
jnz short loc_8335A
jmp loc_8343C
loc_8335A:
mov rdi, [rsp+98h+var_70]
add rdi, 90h; this
mov [rsp+98h+var_88], rdi
call _ZN13MessageBuffer9NormalizeEv; MessageBuffer::Normalize(void)
mov rdi, [rsp+98h+var_88]; this
call _ZN13MessageBuffer15EnsureFreeSpaceEv; MessageBuffer::EnsureFreeSpace(void)
mov rdi, [rsp+98h+var_88]; this
mov rax, [rsp+98h+var_70]
add rax, 18h
mov [rsp+98h+var_90], rax
call _ZN13MessageBuffer15GetWritePointerEv; MessageBuffer::GetWritePointer(void)
mov rdi, [rsp+98h+var_88]; this
mov [rsp+98h+var_80], rax
call _ZNK13MessageBuffer17GetRemainingSpaceEv; MessageBuffer::GetRemainingSpace(void)
mov rdi, [rsp+98h+var_80]; this
mov rsi, rax; void *
call _ZN5boost4asio6bufferEPvm; boost::asio::buffer(void *,ulong)
mov rsi, [rsp+98h+var_70]
mov [rsp+98h+var_18], rax
mov [rsp+98h+var_10], rdx
lea rax, _ZN6SocketI11AuthSessionE19ReadHandlerInternalEN5boost6system10error_codeEm; Socket<AuthSession>::ReadHandlerInternal(boost::system::error_code,ulong)
mov [rsp+98h+var_48], rax
mov [rsp+98h+var_40], 0
add rsi, 8
lea rdi, [rsp+98h+var_58]
mov [rsp+98h+var_78], rdi
call _ZNSt23enable_shared_from_thisI11AuthSessionE16shared_from_thisEv; std::enable_shared_from_this<AuthSession>::shared_from_this(void)
mov rdx, [rsp+98h+var_78]
lea rcx, _ZNSt12placeholders2_1E; std::placeholders::_1
lea r8, _ZNSt12placeholders2_2E; std::placeholders::_2
lea rdi, [rsp+98h+var_38]
lea rsi, [rsp+98h+var_48]
call _ZSt4bindIM6SocketI11AuthSessionEFvN5boost6system10error_codeEmEJSt10shared_ptrIS1_ERKSt12_PlaceholderILi1EERKSA_ILi2EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESI_JDpT0_EE4typeEOSI_DpOSJ_
jmp short $+2
loc_8340F:
mov rdi, [rsp+98h+var_90]
lea rsi, [rsp+98h+var_18]
lea rdx, [rsp+98h+var_38]
call _ZN5boost4asio19basic_stream_socketINS0_2ip3tcpENS0_15any_io_executorEE15async_read_someINS0_14mutable_bufferETkNS0_20completion_token_forIFvNS_6system10error_codeEmEEESt5_BindIFM6SocketI11AuthSessionEFvSA_mESt10shared_ptrISE_ESt12_PlaceholderILi1EESK_ILi2EEEEEEDaRKT_OT0_
jmp short $+2
loc_83428:
lea rdi, [rsp+98h+var_38]
call _ZNSt5_BindIFM6SocketI11AuthSessionEFvN5boost6system10error_codeEmESt10shared_ptrIS1_ESt12_PlaceholderILi1EESA_ILi2EEEED2Ev; std::_Bind<void (Socket<AuthSession>::*)(boost::system::error_code,ulong) ()(std::shared_ptr<AuthSession>,std::_Placeholder<1>,std::_Placeholder<2>)>::~_Bind()
lea rdi, [rsp+98h+var_58]
call _ZNSt10shared_ptrI11AuthSessionED2Ev; std::shared_ptr<AuthSession>::~shared_ptr()
loc_8343C:
add rsp, 98h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_30], rcx
mov [rsp+arg_2C], eax
jmp short loc_8346C
mov rcx, rax
mov eax, edx
mov [rsp+arg_30], rcx
mov [rsp+arg_2C], eax
lea rdi, [rsp+arg_58]
call _ZNSt5_BindIFM6SocketI11AuthSessionEFvN5boost6system10error_codeEmESt10shared_ptrIS1_ESt12_PlaceholderILi1EESA_ILi2EEEED2Ev; std::_Bind<void (Socket<AuthSession>::*)(boost::system::error_code,ulong) ()(std::shared_ptr<AuthSession>,std::_Placeholder<1>,std::_Placeholder<2>)>::~_Bind()
loc_8346C:
lea rdi, [rsp+arg_38]
call _ZNSt10shared_ptrI11AuthSessionED2Ev; std::shared_ptr<AuthSession>::~shared_ptr()
mov rdi, [rsp+arg_30]
call __Unwind_Resume
|
char Socket<AuthSession>::AsyncRead(long long a1)
{
char result; // al
unsigned long long RemainingSpace; // rax
long long v3; // rdx
boost::asio *v4; // [rsp+18h] [rbp-80h]
_BYTE v5[16]; // [rsp+40h] [rbp-58h] BYREF
_QWORD v6[2]; // [rsp+50h] [rbp-48h] BYREF
_BYTE v7[32]; // [rsp+60h] [rbp-38h] BYREF
_QWORD v8[3]; // [rsp+80h] [rbp-18h] BYREF
v8[2] = a1;
result = Socket<AuthSession>::IsOpen(a1);
if ( (result & 1) != 0 )
{
MessageBuffer::Normalize((MessageBuffer *)(a1 + 144));
MessageBuffer::EnsureFreeSpace((MessageBuffer *)(a1 + 144));
v4 = (boost::asio *)MessageBuffer::GetWritePointer((MessageBuffer *)(a1 + 144));
RemainingSpace = MessageBuffer::GetRemainingSpace((MessageBuffer *)(a1 + 144));
v8[0] = boost::asio::buffer(v4, RemainingSpace);
v8[1] = v3;
v6[0] = Socket<AuthSession>::ReadHandlerInternal;
v6[1] = 0LL;
std::enable_shared_from_this<AuthSession>::shared_from_this((long long)v5, a1 + 8);
std::bind<void (Socket<AuthSession>::*)(boost::system::error_code,unsigned long),std::shared_ptr<AuthSession>,std::_Placeholder<1> const&,std::_Placeholder const&<2>>(
(long long)v7,
(long long)v6,
(long long)v5,
(long long)&std::placeholders::_1,
(long long)&std::placeholders::_2);
ZN5boost4asio19basic_stream_socketINS0_2ip3tcpENS0_15any_io_executorEE15async_read_someINS0_14mutable_bufferETkNS0_20completion_token_forIFvNS_6system10error_codeEmEEESt5_BindIFM6SocketI11AuthSessionEFvSA_mESt10shared_ptrISE_ESt12_PlaceholderILi1EESK_ILi2EEEEEEDaRKT_OT0_(
a1 + 24,
(long long)v8,
(long long)v7);
std::_Bind<void (Socket<AuthSession>::*)(boost::system::error_code,unsigned long) ()(std::shared_ptr<AuthSession>,std::_Placeholder<1>,std::_Placeholder<2>)>::~_Bind((long long)v7);
return std::shared_ptr<AuthSession>::~shared_ptr((long long)v5);
}
return result;
}
|
AsyncRead:
SUB RSP,0x98
MOV qword ptr [RSP + 0x90],RDI
MOV RDI,qword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0x28],RDI
CALL 0x0014fda0
TEST AL,0x1
JNZ 0x0018335a
JMP 0x0018343c
LAB_0018335a:
MOV RDI,qword ptr [RSP + 0x28]
ADD RDI,0x90
MOV qword ptr [RSP + 0x10],RDI
CALL 0x00151030
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001510c0
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x28]
ADD RAX,0x18
MOV qword ptr [RSP + 0x8],RAX
CALL 0x001511a0
MOV RDI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x18],RAX
CALL 0x001511d0
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,RAX
CALL 0x00151160
MOV RSI,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x80],RAX
MOV qword ptr [RSP + 0x88],RDX
LEA RAX,[0x18f4b0]
MOV qword ptr [RSP + 0x50],RAX
MOV qword ptr [RSP + 0x58],0x0
ADD RSI,0x8
LEA RDI,[RSP + 0x40]
MOV qword ptr [RSP + 0x20],RDI
CALL 0x00152a80
MOV RDX,qword ptr [RSP + 0x20]
LAB_001833f0:
LEA RCX,[0x42cc5a]
LEA R8,[0x42cc5b]
LEA RDI,[RSP + 0x60]
LEA RSI,[RSP + 0x50]
CALL 0x00151200
JMP 0x0018340f
LAB_0018340f:
MOV RDI,qword ptr [RSP + 0x8]
LEA RSI,[RSP + 0x80]
LEA RDX,[RSP + 0x60]
CALL 0x00151110
LAB_00183426:
JMP 0x00183428
LAB_00183428:
LEA RDI,[RSP + 0x60]
CALL 0x00152ab0
LEA RDI,[RSP + 0x40]
CALL 0x001372f0
LAB_0018343c:
ADD RSP,0x98
RET
|
/* Socket<AuthSession>::AsyncRead() */
void __thiscall Socket<AuthSession>::AsyncRead(Socket<AuthSession> *this)
{
ulong uVar1;
void *pvVar2;
MessageBuffer *this_00;
_Placeholder local_58 [16];
code *local_48;
int8 local_40;
_Bind<void(Socket<AuthSession>::*(std::shared_ptr<AuthSession>,std::_Placeholder<1>,std::_Placeholder<2>))(boost::system::error_code,unsigned_long)>
local_38 [32];
int1 local_18 [16];
Socket<AuthSession> *local_8;
local_8 = this;
uVar1 = IsOpen(this);
if ((uVar1 & 1) != 0) {
this_00 = (MessageBuffer *)(this + 0x90);
MessageBuffer::Normalize(this_00);
MessageBuffer::EnsureFreeSpace(this_00);
pvVar2 = (void *)MessageBuffer::GetWritePointer(this_00);
uVar1 = MessageBuffer::GetRemainingSpace(this_00);
local_18 = boost::asio::buffer(pvVar2,uVar1);
local_48 = ReadHandlerInternal;
local_40 = 0;
std::enable_shared_from_this<AuthSession>::shared_from_this();
/* try { // try from 001833f0 to 0018340c has its CatchHandler @ 00183444 */
std::
bind<void(Socket<AuthSession>::*)(boost::system::error_code,unsigned_long),std::shared_ptr<AuthSession>,std::_Placeholder<1>const&,std::_Placeholder<2>const&>
((_func_void_error_code_ulong *)local_38,(shared_ptr *)&local_48,local_58,
(_Placeholder *)&std::placeholders::_1);
/* try { // try from 0018340f to 00183425 has its CatchHandler @ 00183454 */
_ZN5boost4asio19basic_stream_socketINS0_2ip3tcpENS0_15any_io_executorEE15async_read_someINS0_14mutable_bufferETkNS0_20completion_token_forIFvNS_6system10error_codeEmEEESt5_BindIFM6SocketI11AuthSessionEFvSA_mESt10shared_ptrISE_ESt12_PlaceholderILi1EESK_ILi2EEEEEEDaRKT_OT0_
(this + 0x18,local_18,local_38);
std::
_Bind<void(Socket<AuthSession>::*(std::shared_ptr<AuthSession>,std::_Placeholder<1>,std::_Placeholder<2>))(boost::system::error_code,unsigned_long)>
::~_Bind(local_38);
std::shared_ptr<AuthSession>::~shared_ptr((shared_ptr<AuthSession> *)local_58);
}
return;
}
|
|
57,488
|
inline_mysql_file_pread
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline size_t
inline_mysql_file_pread(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, uchar *buffer, size_t count, my_off_t offset, myf flags)
{
size_t result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
size_t bytes_read;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_READ);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line);
result= my_pread(file, buffer, count, offset, flags);
if (flags & (MY_NABP | MY_FNABP))
bytes_read= (result == 0) ? count : 0;
else
bytes_read= (result != MY_FILE_ERROR) ? result : 0;
PSI_FILE_CALL(end_file_wait)(locker, bytes_read);
return result;
}
#endif
result= my_pread(file, buffer, count, offset, flags);
return result;
}
|
O0
|
c
|
inline_mysql_file_pread:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x218ebc(%rip), %rax # 0x2c0238
movq (%rax), %rax
movq 0x158(%rax), %rax
movl -0x18(%rbp), %esi
leaq -0x88(%rbp), %rdi
movl $0x6, %edx
callq *%rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xa748f
leaq 0x218e72(%rip), %rax # 0x2c0238
movq (%rax), %rax
movq 0x210(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x14(%rbp), %ecx
callq *%rax
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq 0x10(%rbp), %r8
callq 0xf4620
movq %rax, -0x38(%rbp)
movq 0x10(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0xa743a
cmpq $0x0, -0x38(%rbp)
jne 0xa741f
movq -0x28(%rbp), %rax
movq %rax, -0x98(%rbp)
jmp 0xa742a
xorl %eax, %eax
movq %rax, -0x98(%rbp)
jmp 0xa742a
movq -0x98(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0xa7467
cmpq $-0x1, -0x38(%rbp)
je 0xa744e
movq -0x38(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0xa7459
xorl %eax, %eax
movq %rax, -0xa0(%rbp)
jmp 0xa7459
movq -0xa0(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x218dca(%rip), %rax # 0x2c0238
movq (%rax), %rax
movq 0x218(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq *%rax
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xa74b3
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq 0x10(%rbp), %r8
callq 0xf4620
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
|
inline_mysql_file_pread_6:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov rax, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+158h]
mov esi, [rbp+var_18]
lea rdi, [rbp+var_88]
mov edx, 6
call rax
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz loc_A748F
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+210h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_10]
mov ecx, [rbp+var_14]
call rax
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
mov r8, [rbp+arg_0]
call my_pread
mov [rbp+var_38], rax
mov rax, [rbp+arg_0]
and rax, 6
cmp rax, 0
jz short loc_A743A
cmp [rbp+var_38], 0
jnz short loc_A741F
mov rax, [rbp+var_28]
mov [rbp+var_98], rax
jmp short loc_A742A
loc_A741F:
xor eax, eax
mov [rbp+var_98], rax
jmp short $+2
loc_A742A:
mov rax, [rbp+var_98]
mov [rbp+var_90], rax
jmp short loc_A7467
loc_A743A:
cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh
jz short loc_A744E
mov rax, [rbp+var_38]
mov [rbp+var_A0], rax
jmp short loc_A7459
loc_A744E:
xor eax, eax
mov [rbp+var_A0], rax
jmp short $+2
loc_A7459:
mov rax, [rbp+var_A0]
mov [rbp+var_90], rax
loc_A7467:
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+218h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_90]
call rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
jmp short loc_A74B3
loc_A748F:
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
mov r8, [rbp+arg_0]
call my_pread
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
loc_A74B3:
mov rax, [rbp+var_8]
add rsp, 0A0h
pop rbp
retn
|
long long inline_mysql_file_pread_6(
long long a1,
unsigned int a2,
unsigned int a3,
long long a4,
long long a5,
long long a6,
long long a7)
{
long long v8; // [rsp+0h] [rbp-A0h]
long long v9; // [rsp+8h] [rbp-98h]
_BYTE v10[72]; // [rsp+18h] [rbp-88h] BYREF
long long v11; // [rsp+60h] [rbp-40h]
long long v12; // [rsp+68h] [rbp-38h]
long long v13; // [rsp+70h] [rbp-30h]
long long v14; // [rsp+78h] [rbp-28h]
long long v15; // [rsp+80h] [rbp-20h]
unsigned int v16; // [rsp+88h] [rbp-18h]
unsigned int v17; // [rsp+8Ch] [rbp-14h]
long long v18; // [rsp+90h] [rbp-10h]
v18 = a1;
v17 = a2;
v16 = a3;
v15 = a4;
v14 = a5;
v13 = a6;
v11 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v10, a3, 6LL);
if ( v11 )
{
((void ( *)(long long, long long, long long, _QWORD))PSI_server[66])(v11, v14, v18, v17);
v12 = my_pread(v16, v15, v14, v13, a7);
if ( (a7 & 6) != 0 )
{
if ( v12 )
v9 = 0LL;
else
v9 = v14;
((void ( *)(long long, long long))PSI_server[67])(v11, v9);
}
else
{
if ( v12 == -1 )
v8 = 0LL;
else
v8 = v12;
((void ( *)(long long, long long))PSI_server[67])(v11, v8);
}
return v12;
}
else
{
return my_pread(v16, v15, v14, v13, a7);
}
}
|
inline_mysql_file_pread:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x3c0238]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x158]
MOV ESI,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x88]
MOV EDX,0x6
CALL RAX
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001a748f
LEA RAX,[0x3c0238]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x210]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
CALL RAX
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
MOV R8,qword ptr [RBP + 0x10]
CALL 0x001f4620
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + 0x10]
AND RAX,0x6
CMP RAX,0x0
JZ 0x001a743a
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x001a741f
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x98],RAX
JMP 0x001a742a
LAB_001a741f:
XOR EAX,EAX
MOV qword ptr [RBP + -0x98],RAX
JMP 0x001a742a
LAB_001a742a:
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0x90],RAX
JMP 0x001a7467
LAB_001a743a:
CMP qword ptr [RBP + -0x38],-0x1
JZ 0x001a744e
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x001a7459
LAB_001a744e:
XOR EAX,EAX
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x001a7459
LAB_001a7459:
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x90],RAX
LAB_001a7467:
LEA RAX,[0x3c0238]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x90]
CALL RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001a74b3
LAB_001a748f:
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
MOV R8,qword ptr [RBP + 0x10]
CALL 0x001f4620
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
LAB_001a74b3:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0xa0
POP RBP
RET
|
long inline_mysql_file_pread
(int8 param_1,int4 param_2,int4 param_3,int8 param_4,
long param_5,int8 param_6,ulong param_7)
{
long local_a8;
long local_a0;
long local_98;
int1 local_90 [72];
long local_48;
long local_40;
int8 local_38;
long local_30;
int8 local_28;
int4 local_20;
int4 local_1c;
int8 local_18;
long local_10;
local_38 = param_6;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,6);
if (local_48 == 0) {
local_10 = my_pread(local_20,local_28,local_30,local_38,param_7);
}
else {
(**(code **)(PSI_server + 0x210))(local_48,local_30,local_18,local_1c);
local_40 = my_pread(local_20,local_28,local_30,local_38,param_7);
if ((param_7 & 6) == 0) {
local_a8 = local_40;
if (local_40 == -1) {
local_a8 = 0;
}
local_98 = local_a8;
}
else {
if (local_40 == 0) {
local_a0 = local_30;
}
else {
local_a0 = 0;
}
local_98 = local_a0;
}
(**(code **)(PSI_server + 0x218))(local_48,local_98);
local_10 = local_40;
}
return local_10;
}
|
|
57,489
|
inline_mysql_file_pread
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline size_t
inline_mysql_file_pread(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, uchar *buffer, size_t count, my_off_t offset, myf flags)
{
size_t result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
size_t bytes_read;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_READ);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line);
result= my_pread(file, buffer, count, offset, flags);
if (flags & (MY_NABP | MY_FNABP))
bytes_read= (result == 0) ? count : 0;
else
bytes_read= (result != MY_FILE_ERROR) ? result : 0;
PSI_FILE_CALL(end_file_wait)(locker, bytes_read);
return result;
}
#endif
result= my_pread(file, buffer, count, offset, flags);
return result;
}
|
O3
|
c
|
inline_mysql_file_pread:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %r15d
leaq 0x3277b8(%rip), %r13 # 0x386010
movq (%r13), %rax
leaq -0x70(%rbp), %rdi
movl %r15d, %esi
movl $0x6, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x5e89e
movl $0x4, %r8d
movl %r15d, %edi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0xa0664
movq %rax, %r14
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
movq (%r13), %rax
leaq 0x7bd19(%rip), %rdx # 0xda5c5
movq %r12, %rdi
movq %rbx, %rsi
movl $0x44b, %ecx # imm = 0x44B
callq *0x210(%rax)
movl $0x4, %r8d
movl %r15d, %edi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0xa0664
movq %rax, %r14
testq %rax, %rax
movl $0x0, %esi
cmoveq %rbx, %rsi
movq (%r13), %rax
movq %r12, %rdi
callq *0x218(%rax)
jmp 0x5e88c
|
inline_mysql_file_pread_0:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov rbx, rdx
mov r14, rsi
mov r15d, edi
lea r13, PSI_server
mov rax, [r13+0]
lea rdi, [rbp+var_70]
mov esi, r15d
mov edx, 6
call qword ptr [rax+158h]
test rax, rax
jnz short loc_5E89E
mov r8d, 4
mov edi, r15d
mov rsi, r14
mov rdx, rbx
xor ecx, ecx
call my_pread
mov r14, rax
loc_5E88C:
mov rax, r14
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_5E89E:
mov r12, rax
mov rax, [r13+0]
lea rdx, aWorkspaceLlm4b_7; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, r12
mov rsi, rbx
mov ecx, 44Bh
call qword ptr [rax+210h]
mov r8d, 4
mov edi, r15d
mov rsi, r14
mov rdx, rbx
xor ecx, ecx
call my_pread
mov r14, rax
test rax, rax
mov esi, 0
cmovz rsi, rbx
mov rax, [r13+0]
mov rdi, r12
call qword ptr [rax+218h]
jmp short loc_5E88C
|
long long inline_mysql_file_pread_0(unsigned int a1, long long a2, long long a3)
{
long long v4; // rax
long long v5; // r14
long long v7; // r12
long long v8; // rsi
_BYTE v9[112]; // [rsp+0h] [rbp-70h] BYREF
v4 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v9, a1, 6LL);
if ( !v4 )
return my_pread(a1, a2, a3, 0LL, 4LL);
v7 = v4;
((void ( *)(long long, long long, const char *, long long))PSI_server[66])(
v4,
a3,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_create.c",
1099LL);
v5 = my_pread(a1, a2, a3, 0LL, 4LL);
v8 = 0LL;
if ( !v5 )
v8 = a3;
((void ( *)(long long, long long))PSI_server[67])(v7, v8);
return v5;
}
|
inline_mysql_file_pread:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV RBX,RDX
MOV R14,RSI
MOV R15D,EDI
LEA R13,[0x486010]
MOV RAX,qword ptr [R13]
LEA RDI,[RBP + -0x70]
MOV ESI,R15D
MOV EDX,0x6
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x0015e89e
MOV R8D,0x4
MOV EDI,R15D
MOV RSI,R14
MOV RDX,RBX
XOR ECX,ECX
CALL 0x001a0664
MOV R14,RAX
LAB_0015e88c:
MOV RAX,R14
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0015e89e:
MOV R12,RAX
MOV RAX,qword ptr [R13]
LEA RDX,[0x1da5c5]
MOV RDI,R12
MOV RSI,RBX
MOV ECX,0x44b
CALL qword ptr [RAX + 0x210]
MOV R8D,0x4
MOV EDI,R15D
MOV RSI,R14
MOV RDX,RBX
XOR ECX,ECX
CALL 0x001a0664
MOV R14,RAX
TEST RAX,RAX
MOV ESI,0x0
CMOVZ RSI,RBX
MOV RAX,qword ptr [R13]
MOV RDI,R12
CALL qword ptr [RAX + 0x218]
JMP 0x0015e88c
|
long inline_mysql_file_pread(int4 param_1,int8 param_2,int8 param_3)
{
long lVar1;
long lVar2;
int8 uVar3;
int1 local_78 [72];
lVar1 = (**(code **)(PSI_server + 0x158))(local_78,param_1,6);
if (lVar1 == 0) {
lVar2 = my_pread(param_1,param_2,param_3,0,4);
}
else {
(**(code **)(PSI_server + 0x210))
(lVar1,param_3,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_create.c",
1099);
lVar2 = my_pread(param_1,param_2,param_3,0,4);
uVar3 = 0;
if (lVar2 == 0) {
uVar3 = param_3;
}
(**(code **)(PSI_server + 0x218))(lVar1,uVar3);
}
return lVar2;
}
|
|
57,490
|
ma_apply_redo_index_free_page
|
eloqsql/storage/maria/ma_key_recover.c
|
uint _ma_apply_redo_index_free_page(MARIA_HA *info,
LSN lsn,
const uchar *header)
{
pgcache_page_no_t page= page_korr(header);
pgcache_page_no_t free_page= page_korr(header + PAGE_STORE_SIZE);
my_off_t old_link;
MARIA_PINNED_PAGE page_link;
MARIA_SHARE *share= info->s;
uchar *buff;
int result;
DBUG_ENTER("_ma_apply_redo_index_free_page");
DBUG_PRINT("enter", ("page: %lu free_page: %lu",
(ulong) page, (ulong) free_page));
share->state.changed|= (STATE_CHANGED | STATE_NOT_OPTIMIZED_KEYS |
STATE_NOT_SORTED_PAGES | STATE_NOT_ZEROFILLED |
STATE_NOT_MOVABLE);
if (cmp_translog_addr(lsn, share->state.is_of_horizon) >= 0)
share->state.key_del= (my_off_t) page * share->block_size;
old_link= ((free_page != IMPOSSIBLE_PAGE_NO) ?
(my_off_t) free_page * share->block_size :
HA_OFFSET_ERROR);
if (!(buff= pagecache_read(share->pagecache, &share->kfile,
page, 0, 0,
PAGECACHE_PLAIN_PAGE, PAGECACHE_LOCK_WRITE,
&page_link.link)))
{
result= (uint) my_errno;
_ma_set_fatal_error(info, my_errno);
goto err;
}
if (lsn_korr(buff) >= lsn)
{
/* Already applied */
check_skipped_lsn(info, lsn_korr(buff), 0, page);
result= 0;
goto err;
}
/* Free page */
bzero(buff + LSN_STORE_SIZE, share->keypage_header - LSN_STORE_SIZE);
_ma_store_keynr(share, buff, (uchar) MARIA_DELETE_KEY_NR);
_ma_store_page_used(share, buff, share->keypage_header + 8);
mi_sizestore(buff + share->keypage_header, old_link);
#ifdef IDENTICAL_PAGES_AFTER_RECOVERY
{
bzero(buff + share->keypage_header + 8,
share->block_size - share->keypage_header - 8 -
KEYPAGE_CHECKSUM_SIZE);
}
#endif
/* Mark page to be unlocked and written at _ma_unpin_all_pages() */
page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK;
page_link.changed= 1;
push_dynamic(&info->pinned_pages, (void*) &page_link);
DBUG_RETURN(0);
err:
pagecache_unlock_by_link(share->pagecache, page_link.link,
PAGECACHE_LOCK_WRITE_UNLOCK,
PAGECACHE_UNPIN, LSN_IMPOSSIBLE,
LSN_IMPOSSIBLE, 0, FALSE);
DBUG_RETURN(result);
}
|
O3
|
c
|
ma_apply_redo_index_free_page:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %r15
movl (%rdx), %eax
movl 0x5(%rdx), %ecx
movzbl 0x4(%rdx), %r12d
shlq $0x20, %r12
orq %rax, %r12
movzbl 0x9(%rdx), %eax
movq (%rdi), %r13
orl $0x1b1, 0x170(%r13) # imm = 0x1B1
shlq $0x20, %rax
orq %rcx, %rax
cmpq %rsi, 0x180(%r13)
jg 0x3e49b
movl 0x7bc(%r13), %ecx
imulq %r12, %rcx
movq %rcx, 0x120(%r13)
movq $-0x1, %rdx
movabsq $0xffffffffff, %rcx # imm = 0xFFFFFFFFFF
cmpq %rcx, %rax
je 0x3e4bf
movl 0x7bc(%r13), %ecx
imulq %rcx, %rax
movq %rax, %rdx
movq %rdx, -0x30(%rbp)
movq 0x600(%r13), %rdi
leaq 0x750(%r13), %rsi
leaq -0x48(%rbp), %rax
movq %r12, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
movl $0x1, %r9d
pushq %rax
pushq $0x4
callq 0x70b16
addq $0x10, %rsp
testq %rax, %rax
je 0x3e5fd
movq %rax, %rbx
movzwl (%rax), %eax
shlq $0x20, %rax
movzbl 0x2(%rbx), %ecx
shlq $0x30, %rcx
orq %rax, %rcx
movl 0x3(%rbx), %esi
orq %rcx, %rsi
cmpq %r14, %rsi
jge 0x3e616
movq %rbx, %rdi
addq $0x7, %rdi
movl 0x744(%r13), %edx
addl $-0x7, %edx
xorl %r14d, %r14d
xorl %esi, %esi
callq 0x2a290
movl 0x744(%r13), %eax
addl $-0x4, %eax
movb $-0x1, (%rbx,%rax)
movl 0x744(%r13), %eax
leal 0x8(%rax), %ecx
movb %cl, -0x1(%rbx,%rax)
movl 0x744(%r13), %eax
movb %ch, -0x2(%rbx,%rax)
movq -0x30(%rbp), %rdx
movq %rdx, %rax
shrq $0x20, %rax
movl 0x744(%r13), %ecx
movb %al, 0x3(%rbx,%rcx)
movq %rdx, %rax
shrq $0x28, %rax
movl 0x744(%r13), %ecx
movb %al, 0x2(%rbx,%rcx)
movq %rdx, %rax
shrq $0x30, %rax
movl 0x744(%r13), %ecx
movb %al, 0x1(%rbx,%rcx)
movq %rdx, %rax
shrq $0x38, %rax
movl 0x744(%r13), %ecx
movb %al, (%rbx,%rcx)
movl 0x744(%r13), %eax
movb %dl, 0x7(%rbx,%rax)
movl 0x744(%r13), %eax
movb %dh, 0x6(%rbx,%rax)
movl %edx, %eax
shrl $0x10, %eax
movl 0x744(%r13), %ecx
movb %al, 0x5(%rbx,%rcx)
shrl $0x18, %edx
movl 0x744(%r13), %eax
movb %dl, 0x4(%rbx,%rax)
leaq -0x48(%rbp), %rsi
movl $0x6, 0x8(%rsi)
movb $0x1, 0x10(%rsi)
addq $0x2e8, %r15 # imm = 0x2E8
movq %r15, %rdi
callq 0x96aa2
jmp 0x3e64e
callq 0xa8ec2
movl (%rax), %r14d
callq 0xa8ec2
movl (%rax), %esi
movq %r15, %rdi
callq 0x39354
jmp 0x3e626
xorl %r14d, %r14d
movq %r15, %rdi
xorl %edx, %edx
movq %r12, %rcx
callq 0x6b725
movq 0x600(%r13), %rdi
movq -0x48(%rbp), %rsi
xorl %eax, %eax
movl $0x6, %edx
movl $0x3, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %rax
pushq %rax
callq 0x70831
addq $0x10, %rsp
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ma_apply_redo_index_free_page:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r14, rsi
mov r15, rdi
mov eax, [rdx]
mov ecx, [rdx+5]
movzx r12d, byte ptr [rdx+4]
shl r12, 20h
or r12, rax
movzx eax, byte ptr [rdx+9]
mov r13, [rdi]
or dword ptr [r13+170h], 1B1h
shl rax, 20h
or rax, rcx
cmp [r13+180h], rsi
jg short loc_3E49B
mov ecx, [r13+7BCh]
imul rcx, r12
mov [r13+120h], rcx
loc_3E49B:
mov rdx, 0FFFFFFFFFFFFFFFFh
mov rcx, 0FFFFFFFFFFh
cmp rax, rcx
jz short loc_3E4BF
mov ecx, [r13+7BCh]
imul rax, rcx
mov rdx, rax
loc_3E4BF:
mov [rbp+var_30], rdx
mov rdi, [r13+600h]
lea rsi, [r13+750h]
lea rax, [rbp+var_48]
mov rdx, r12
xor ecx, ecx
xor r8d, r8d
mov r9d, 1
push rax
push 4
call pagecache_read
add rsp, 10h
test rax, rax
jz loc_3E5FD
mov rbx, rax
movzx eax, word ptr [rax]
shl rax, 20h
movzx ecx, byte ptr [rbx+2]
shl rcx, 30h
or rcx, rax
mov esi, [rbx+3]
or rsi, rcx
cmp rsi, r14
jge loc_3E616
mov rdi, rbx
add rdi, 7
mov edx, [r13+744h]
add edx, 0FFFFFFF9h
xor r14d, r14d
xor esi, esi
call _memset
mov eax, [r13+744h]
add eax, 0FFFFFFFCh
mov byte ptr [rbx+rax], 0FFh
mov eax, [r13+744h]
lea ecx, [rax+8]
mov [rbx+rax-1], cl
mov eax, [r13+744h]
mov [rbx+rax-2], ch
mov rdx, [rbp+var_30]
mov rax, rdx
shr rax, 20h
mov ecx, [r13+744h]
mov [rbx+rcx+3], al
mov rax, rdx
shr rax, 28h
mov ecx, [r13+744h]
mov [rbx+rcx+2], al
mov rax, rdx
shr rax, 30h
mov ecx, [r13+744h]
mov [rbx+rcx+1], al
mov rax, rdx
shr rax, 38h
mov ecx, [r13+744h]
mov [rbx+rcx], al
mov eax, [r13+744h]
mov [rbx+rax+7], dl
mov eax, [r13+744h]
mov [rbx+rax+6], dh
mov eax, edx
shr eax, 10h
mov ecx, [r13+744h]
mov [rbx+rcx+5], al
shr edx, 18h
mov eax, [r13+744h]
mov [rbx+rax+4], dl
lea rsi, [rbp+var_48]
mov dword ptr [rsi+8], 6
mov byte ptr [rsi+10h], 1
add r15, 2E8h
mov rdi, r15
call insert_dynamic
jmp short loc_3E64E
loc_3E5FD:
call _my_thread_var
mov r14d, [rax]
call _my_thread_var
mov esi, [rax]
mov rdi, r15
call _ma_set_fatal_error
jmp short loc_3E626
loc_3E616:
xor r14d, r14d
mov rdi, r15
xor edx, edx
mov rcx, r12
call check_skipped_lsn
loc_3E626:
mov rdi, [r13+600h]
mov rsi, [rbp+var_48]
xor eax, eax
mov edx, 6
mov ecx, 3
xor r8d, r8d
xor r9d, r9d
push rax
push rax
call pagecache_unlock_by_link
add rsp, 10h
loc_3E64E:
mov eax, r14d
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long ma_apply_redo_index_free_page(_DWORD *a1, signed long long a2, unsigned int *a3)
{
long long v5; // rcx
unsigned long long v6; // r12
long long v7; // rax
long long v8; // r13
long long v9; // rax
long long v10; // rdx
long long v11; // rdi
unsigned __int16 *v12; // rax
unsigned __int16 *v13; // rbx
signed long long v14; // rsi
unsigned int v15; // r14d
long long v16; // rax
long long v17; // rdx
int *v18; // rax
long long v19; // rdx
long long v20; // rcx
long long v21; // r8
int v22; // r9d
long long v24; // [rsp+8h] [rbp-48h] BYREF
int v25; // [rsp+10h] [rbp-40h]
char v26; // [rsp+18h] [rbp-38h]
long long v27; // [rsp+20h] [rbp-30h]
v5 = *(unsigned int *)((char *)a3 + 5);
v6 = *a3 | ((unsigned long long)*((unsigned __int8 *)a3 + 4) << 32);
v7 = *((unsigned __int8 *)a3 + 9);
v8 = *(_QWORD *)a1;
*(_DWORD *)(v8 + 368) |= 0x1B1u;
v9 = v5 | (v7 << 32);
if ( *(_QWORD *)(v8 + 384) <= a2 )
*(_QWORD *)(v8 + 288) = v6 * *(unsigned int *)(v8 + 1980);
v10 = -1LL;
if ( v9 != 0xFFFFFFFFFFLL )
v10 = *(unsigned int *)(v8 + 1980) * v9;
v27 = v10;
v11 = *(_QWORD *)(v8 + 1536);
v12 = (unsigned __int16 *)pagecache_read(v11, (int)v8 + 1872, v6, 0, 0, 1, 4, (long long)&v24);
if ( !v12 )
{
v15 = *(_DWORD *)my_thread_var(v11);
v18 = (int *)my_thread_var(v11);
ma_set_fatal_error(a1, *v18, v19, v20, v21, v22);
LABEL_10:
pagecache_unlock_by_link(*(_QWORD *)(v8 + 1536), v24, 6, 3, 0, 0, 0LL, 0LL);
return v15;
}
v13 = v12;
v14 = ((unsigned long long)*v12 << 32) | ((unsigned long long)*((unsigned __int8 *)v12 + 2) << 48) | *(unsigned int *)((char *)v12 + 3);
if ( v14 >= a2 )
{
v15 = 0;
check_skipped_lsn(a1, v14, 0LL, v6);
goto LABEL_10;
}
v15 = 0;
memset((char *)v12 + 7, 0LL, (unsigned int)(*(_DWORD *)(v8 + 1860) - 7));
*((_BYTE *)v13 + (unsigned int)(*(_DWORD *)(v8 + 1860) - 4)) = -1;
v16 = *(unsigned int *)(v8 + 1860);
*((_BYTE *)v13 + v16 - 1) = v16 + 8;
*((_BYTE *)v13 + *(unsigned int *)(v8 + 1860) - 2) = (unsigned __int16)(v16 + 8) >> 8;
v17 = v27;
*((_BYTE *)v13 + *(unsigned int *)(v8 + 1860) + 3) = BYTE4(v27);
*((_BYTE *)v13 + *(unsigned int *)(v8 + 1860) + 2) = BYTE5(v17);
*((_BYTE *)v13 + *(unsigned int *)(v8 + 1860) + 1) = BYTE6(v17);
*((_BYTE *)v13 + *(unsigned int *)(v8 + 1860)) = HIBYTE(v17);
*((_BYTE *)v13 + *(unsigned int *)(v8 + 1860) + 7) = v17;
*((_BYTE *)v13 + *(unsigned int *)(v8 + 1860) + 6) = BYTE1(v17);
*((_BYTE *)v13 + *(unsigned int *)(v8 + 1860) + 5) = BYTE2(v17);
*((_BYTE *)v13 + *(unsigned int *)(v8 + 1860) + 4) = BYTE3(v17);
v25 = 6;
v26 = 1;
insert_dynamic(a1 + 186, &v24);
return v15;
}
|
_ma_apply_redo_index_free_page:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R14,RSI
MOV R15,RDI
MOV EAX,dword ptr [RDX]
MOV ECX,dword ptr [RDX + 0x5]
MOVZX R12D,byte ptr [RDX + 0x4]
SHL R12,0x20
OR R12,RAX
MOVZX EAX,byte ptr [RDX + 0x9]
MOV R13,qword ptr [RDI]
OR dword ptr [R13 + 0x170],0x1b1
SHL RAX,0x20
OR RAX,RCX
CMP qword ptr [R13 + 0x180],RSI
JG 0x0013e49b
MOV ECX,dword ptr [R13 + 0x7bc]
IMUL RCX,R12
MOV qword ptr [R13 + 0x120],RCX
LAB_0013e49b:
MOV RDX,-0x1
MOV RCX,0xffffffffff
CMP RAX,RCX
JZ 0x0013e4bf
MOV ECX,dword ptr [R13 + 0x7bc]
IMUL RAX,RCX
MOV RDX,RAX
LAB_0013e4bf:
MOV qword ptr [RBP + -0x30],RDX
MOV RDI,qword ptr [R13 + 0x600]
LEA RSI,[R13 + 0x750]
LEA RAX,[RBP + -0x48]
MOV RDX,R12
XOR ECX,ECX
XOR R8D,R8D
MOV R9D,0x1
PUSH RAX
PUSH 0x4
CALL 0x00170b16
ADD RSP,0x10
TEST RAX,RAX
JZ 0x0013e5fd
MOV RBX,RAX
MOVZX EAX,word ptr [RAX]
SHL RAX,0x20
MOVZX ECX,byte ptr [RBX + 0x2]
SHL RCX,0x30
OR RCX,RAX
MOV ESI,dword ptr [RBX + 0x3]
OR RSI,RCX
CMP RSI,R14
JGE 0x0013e616
MOV RDI,RBX
ADD RDI,0x7
MOV EDX,dword ptr [R13 + 0x744]
ADD EDX,-0x7
XOR R14D,R14D
XOR ESI,ESI
CALL 0x0012a290
MOV EAX,dword ptr [R13 + 0x744]
ADD EAX,-0x4
MOV byte ptr [RBX + RAX*0x1],0xff
MOV EAX,dword ptr [R13 + 0x744]
LEA ECX,[RAX + 0x8]
MOV byte ptr [RBX + RAX*0x1 + -0x1],CL
MOV EAX,dword ptr [R13 + 0x744]
MOV byte ptr [RBX + RAX*0x1 + -0x2],CH
MOV RDX,qword ptr [RBP + -0x30]
MOV RAX,RDX
SHR RAX,0x20
MOV ECX,dword ptr [R13 + 0x744]
MOV byte ptr [RBX + RCX*0x1 + 0x3],AL
MOV RAX,RDX
SHR RAX,0x28
MOV ECX,dword ptr [R13 + 0x744]
MOV byte ptr [RBX + RCX*0x1 + 0x2],AL
MOV RAX,RDX
SHR RAX,0x30
MOV ECX,dword ptr [R13 + 0x744]
MOV byte ptr [RBX + RCX*0x1 + 0x1],AL
MOV RAX,RDX
SHR RAX,0x38
MOV ECX,dword ptr [R13 + 0x744]
MOV byte ptr [RBX + RCX*0x1],AL
MOV EAX,dword ptr [R13 + 0x744]
MOV byte ptr [RBX + RAX*0x1 + 0x7],DL
MOV EAX,dword ptr [R13 + 0x744]
MOV byte ptr [RBX + RAX*0x1 + 0x6],DH
MOV EAX,EDX
SHR EAX,0x10
MOV ECX,dword ptr [R13 + 0x744]
MOV byte ptr [RBX + RCX*0x1 + 0x5],AL
SHR EDX,0x18
MOV EAX,dword ptr [R13 + 0x744]
MOV byte ptr [RBX + RAX*0x1 + 0x4],DL
LEA RSI,[RBP + -0x48]
MOV dword ptr [RSI + 0x8],0x6
MOV byte ptr [RSI + 0x10],0x1
ADD R15,0x2e8
MOV RDI,R15
CALL 0x00196aa2
JMP 0x0013e64e
LAB_0013e5fd:
CALL 0x001a8ec2
MOV R14D,dword ptr [RAX]
CALL 0x001a8ec2
MOV ESI,dword ptr [RAX]
MOV RDI,R15
CALL 0x00139354
JMP 0x0013e626
LAB_0013e616:
XOR R14D,R14D
MOV RDI,R15
XOR EDX,EDX
MOV RCX,R12
CALL 0x0016b725
LAB_0013e626:
MOV RDI,qword ptr [R13 + 0x600]
MOV RSI,qword ptr [RBP + -0x48]
XOR EAX,EAX
MOV EDX,0x6
MOV ECX,0x3
XOR R8D,R8D
XOR R9D,R9D
PUSH RAX
PUSH RAX
CALL 0x00170831
ADD RSP,0x10
LAB_0013e64e:
MOV EAX,R14D
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int4 _ma_apply_redo_index_free_page(long *param_1,long param_2,uint5 *param_3)
{
long lVar1;
uint5 uVar2;
ushort *puVar3;
int4 *puVar4;
int iVar5;
ulong uVar6;
ulong uVar7;
int4 uVar8;
int8 local_50;
int4 local_48;
int1 local_40;
long local_38;
uVar7 = (ulong)*param_3;
uVar2 = *(uint5 *)((long)param_3 + 5);
lVar1 = *param_1;
*(uint *)(lVar1 + 0x170) = *(uint *)(lVar1 + 0x170) | 0x1b1;
if (*(long *)(lVar1 + 0x180) <= param_2) {
*(ulong *)(lVar1 + 0x120) = *(uint *)(lVar1 + 0x7bc) * uVar7;
}
local_38 = -1;
if ((ulong)uVar2 != 0xffffffffff) {
local_38 = (ulong)uVar2 * (ulong)*(uint *)(lVar1 + 0x7bc);
}
puVar3 = (ushort *)
pagecache_read(*(int8 *)(lVar1 + 0x600),lVar1 + 0x750,uVar7,0,0,1,4,&local_50);
if (puVar3 == (ushort *)0x0) {
puVar4 = (int4 *)_my_thread_var();
uVar8 = *puVar4;
puVar4 = (int4 *)_my_thread_var();
_ma_set_fatal_error(param_1,*puVar4);
}
else {
uVar6 = (ulong)*(uint *)((long)puVar3 + 3) |
(ulong)(byte)puVar3[1] << 0x30 | (ulong)*puVar3 << 0x20;
if ((long)uVar6 < param_2) {
memset((void *)((long)puVar3 + 7),0,(ulong)(*(int *)(lVar1 + 0x744) - 7));
*(int1 *)((long)puVar3 + (ulong)(*(int *)(lVar1 + 0x744) - 4)) = 0xff;
iVar5 = *(uint *)(lVar1 + 0x744) + 8;
*(char *)((long)puVar3 + ((ulong)*(uint *)(lVar1 + 0x744) - 1)) = (char)iVar5;
*(char *)((long)puVar3 + ((ulong)*(uint *)(lVar1 + 0x744) - 2)) = (char)((uint)iVar5 >> 8);
*(char *)((long)puVar3 + (ulong)*(uint *)(lVar1 + 0x744) + 3) =
(char)((ulong)local_38 >> 0x20);
*(char *)((long)puVar3 + (ulong)*(uint *)(lVar1 + 0x744) + 2) =
(char)((ulong)local_38 >> 0x28);
*(char *)((long)puVar3 + (ulong)*(uint *)(lVar1 + 0x744) + 1) =
(char)((ulong)local_38 >> 0x30);
*(char *)((long)puVar3 + (ulong)*(uint *)(lVar1 + 0x744)) = (char)((ulong)local_38 >> 0x38);
*(char *)((long)puVar3 + (ulong)*(uint *)(lVar1 + 0x744) + 7) = (char)local_38;
*(char *)((long)puVar3 + (ulong)*(uint *)(lVar1 + 0x744) + 6) = (char)((ulong)local_38 >> 8);
*(char *)((long)puVar3 + (ulong)*(uint *)(lVar1 + 0x744) + 5) =
(char)((ulong)local_38 >> 0x10);
*(char *)((long)puVar3 + (ulong)*(uint *)(lVar1 + 0x744) + 4) =
(char)((ulong)local_38 >> 0x18);
local_48 = 6;
local_40 = 1;
insert_dynamic(param_1 + 0x5d);
return 0;
}
uVar8 = 0;
check_skipped_lsn(param_1,uVar6,0,uVar7);
}
pagecache_unlock_by_link(*(int8 *)(lVar1 + 0x600),local_50,6,3,0,0,0,0);
return uVar8;
}
|
|
57,491
|
maria_page_crc_set_index
|
eloqsql/storage/maria/ma_pagecrc.c
|
my_bool maria_page_crc_set_index(PAGECACHE_IO_HOOK_ARGS *args)
{
uchar *page= args->page;
pgcache_page_no_t page_no= args->pageno;
MARIA_SHARE *share= (MARIA_SHARE *)args->data;
int data_length= _ma_get_page_used(share, page);
uint32 crc= maria_page_crc((uint32) page_no, page, data_length);
DBUG_ENTER("maria_page_crc_set_index");
DBUG_PRINT("info", ("Page %lu crc: %lu",
(ulong) page_no, (ulong) crc));
DBUG_ASSERT((uint)data_length <= share->block_size - CRC_SIZE);
/* crc is on the stack so it is aligned, pagecache buffer is aligned, too */
int4store_aligned(page + share->block_size - CRC_SIZE, crc);
DBUG_RETURN(0);
}
|
O0
|
c
|
maria_page_crc_set_index:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rcx
movl 0x744(%rcx), %ecx
movzbl -0x1(%rax,%rcx), %eax
movzwl %ax, %eax
movq -0x10(%rbp), %rcx
movq -0x20(%rbp), %rdx
movl 0x744(%rdx), %edx
movzbl -0x2(%rcx,%rdx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzwl %ax, %eax
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rax
movl %eax, %edi
movq -0x10(%rbp), %rsi
movl -0x24(%rbp), %edx
callq 0x431b0
movl %eax, -0x28(%rbp)
jmp 0x432ed
jmp 0x432ef
jmp 0x432f1
jmp 0x432f3
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rcx
movl 0x7bc(%rcx), %ecx
addq %rcx, %rax
addq $-0x4, %rax
movq %rax, -0x30(%rbp)
movl -0x28(%rbp), %ecx
movq -0x30(%rbp), %rax
movl %ecx, (%rax)
jmp 0x43317
jmp 0x43319
xorl %eax, %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
maria_page_crc_set_index:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_10], rax
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rcx, [rbp+var_20]
mov ecx, [rcx+744h]
movzx eax, byte ptr [rax+rcx-1]
movzx eax, ax
mov rcx, [rbp+var_10]
mov rdx, [rbp+var_20]
mov edx, [rdx+744h]
movzx ecx, byte ptr [rcx+rdx-2]
movzx ecx, cx
shl ecx, 8
or eax, ecx
movzx eax, ax
mov [rbp+var_24], eax
mov rax, [rbp+var_18]
mov edi, eax
mov rsi, [rbp+var_10]
mov edx, [rbp+var_24]
call maria_page_crc
mov [rbp+var_28], eax
jmp short $+2
loc_432ED:
jmp short $+2
loc_432EF:
jmp short $+2
loc_432F1:
jmp short $+2
loc_432F3:
mov rax, [rbp+var_10]
mov rcx, [rbp+var_20]
mov ecx, [rcx+7BCh]
add rax, rcx
add rax, 0FFFFFFFFFFFFFFFCh
mov [rbp+var_30], rax
mov ecx, [rbp+var_28]
mov rax, [rbp+var_30]
mov [rax], ecx
jmp short $+2
loc_43317:
jmp short $+2
loc_43319:
xor eax, eax
add rsp, 30h
pop rbp
retn
|
long long maria_page_crc_set_index(long long *a1)
{
long long v2; // [rsp+10h] [rbp-20h]
long long v3; // [rsp+20h] [rbp-10h]
v3 = *a1;
v2 = a1[2];
*(_DWORD *)(*(unsigned int *)(v2 + 1980) + v3 - 4) = maria_page_crc(
a1[1],
*a1,
_byteswap_ushort(*(_WORD *)(*a1
+ *(unsigned int *)(v2 + 1860)
- 2)));
return 0LL;
}
|
maria_page_crc_set_index:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RCX + 0x744]
MOVZX EAX,byte ptr [RAX + RCX*0x1 + -0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RDX + 0x744]
MOVZX ECX,byte ptr [RCX + RDX*0x1 + -0x2]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVZX EAX,AX
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EDI,EAX
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x24]
CALL 0x001431b0
MOV dword ptr [RBP + -0x28],EAX
JMP 0x001432ed
LAB_001432ed:
JMP 0x001432ef
LAB_001432ef:
JMP 0x001432f1
LAB_001432f1:
JMP 0x001432f3
LAB_001432f3:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RCX + 0x7bc]
ADD RAX,RCX
ADD RAX,-0x4
MOV qword ptr [RBP + -0x30],RAX
MOV ECX,dword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX],ECX
JMP 0x00143317
LAB_00143317:
JMP 0x00143319
LAB_00143319:
XOR EAX,EAX
ADD RSP,0x30
POP RBP
RET
|
int8 maria_page_crc_set_index(long *param_1)
{
long lVar1;
long lVar2;
int4 uVar3;
lVar1 = *param_1;
lVar2 = param_1[2];
uVar3 = maria_page_crc(param_1[1] & 0xffffffff,lVar1,
CONCAT11(*(int1 *)(lVar1 + -2 + (ulong)*(uint *)(lVar2 + 0x744)),
*(int1 *)(lVar1 + -1 + (ulong)*(uint *)(lVar2 + 0x744))));
*(int4 *)(lVar1 + (ulong)*(uint *)(lVar2 + 0x7bc) + -4) = uVar3;
return 0;
}
|
|
57,492
|
mi_keyseg_write
|
eloqsql/storage/myisam/mi_open.c
|
int mi_keyseg_write(File file, const HA_KEYSEG *keyseg)
{
uchar buff[HA_KEYSEG_SIZE];
uchar *ptr=buff;
ulong pos;
*ptr++= keyseg->type;
*ptr++= keyseg->language & 0xFF; /* Collation ID, low byte */
*ptr++= keyseg->null_bit;
*ptr++= keyseg->bit_start;
*ptr++= keyseg->language >> 8; /* Collation ID, high byte */
*ptr++= keyseg->bit_length;
mi_int2store(ptr,keyseg->flag); ptr+=2;
mi_int2store(ptr,keyseg->length); ptr+=2;
mi_int4store(ptr,keyseg->start); ptr+=4;
pos= keyseg->null_bit ? keyseg->null_pos : keyseg->bit_pos;
mi_int4store(ptr, pos);
ptr+=4;
return mysql_file_write(file, buff, (size_t) (ptr-buff), MYF(MY_NABP)) != 0;
}
|
O3
|
c
|
mi_keyseg_write:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x70, %rsp
movl %edi, %ebx
movq %fs:0x28, %rax
movq %rax, -0x18(%rbp)
movb 0x18(%rsi), %al
movb %al, -0x30(%rbp)
movzwl 0x16(%rsi), %eax
movb %al, -0x2f(%rbp)
movb 0x19(%rsi), %cl
movb %cl, -0x2e(%rbp)
movb 0x1a(%rsi), %dl
movb %dl, -0x2d(%rbp)
movb %ah, -0x2c(%rbp)
movb 0x1b(%rsi), %al
movb %al, -0x2b(%rbp)
movzwl 0x12(%rsi), %eax
rolw $0x8, %ax
movw %ax, -0x2a(%rbp)
movzwl 0x14(%rsi), %eax
rolw $0x8, %ax
movw %ax, -0x28(%rbp)
movl 0x8(%rsi), %eax
bswapl %eax
movl %eax, -0x26(%rbp)
testb %cl, %cl
je 0x83359
movl 0xc(%rsi), %eax
jmp 0x8335d
movzwl 0x10(%rsi), %eax
bswapl %eax
movl %eax, -0x22(%rbp)
leaq 0x30beef(%rip), %rax # 0x38f258
movq (%rax), %rax
leaq -0x80(%rbp), %rdi
movl %ebx, %esi
movl $0x7, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x833bc
leaq -0x30(%rbp), %rsi
movl $0x12, %edx
movl $0x4, %ecx
movl %ebx, %edi
callq 0x30a78
movq %rax, %rcx
xorl %eax, %eax
testq %rcx, %rcx
setne %cl
movq %fs:0x28, %rdx
cmpq -0x18(%rbp), %rdx
jne 0x833d6
movb %cl, %al
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq -0x30(%rbp), %rdx
leaq -0x38(%rbp), %r14
movq %rax, %rdi
movl %ebx, %esi
movq %r14, %rcx
callq 0x2f343
movq (%r14), %rcx
jmp 0x8339a
callq 0x2a270
|
mi_keyseg_write:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 70h
mov ebx, edi
mov rax, fs:28h
mov [rbp+var_18], rax
mov al, [rsi+18h]
mov [rbp+var_30], al
movzx eax, word ptr [rsi+16h]
mov [rbp+var_2F], al
mov cl, [rsi+19h]
mov [rbp+var_2E], cl
mov dl, [rsi+1Ah]
mov [rbp+var_2D], dl
mov [rbp+var_2C], ah
mov al, [rsi+1Bh]
mov [rbp+var_2B], al
movzx eax, word ptr [rsi+12h]
rol ax, 8
mov [rbp+var_2A], ax
movzx eax, word ptr [rsi+14h]
rol ax, 8
mov [rbp+var_28], ax
mov eax, [rsi+8]
bswap eax
mov [rbp+var_26], eax
test cl, cl
jz short loc_83359
mov eax, [rsi+0Ch]
jmp short loc_8335D
loc_83359:
movzx eax, word ptr [rsi+10h]
loc_8335D:
bswap eax
mov [rbp+var_22], eax
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_80]
mov esi, ebx
mov edx, 7
call qword ptr [rax+158h]
test rax, rax
jnz short loc_833BC
lea rsi, [rbp+var_30]
mov edx, 12h
mov ecx, 4
mov edi, ebx
call my_write
mov rcx, rax
loc_8339A:
xor eax, eax
test rcx, rcx
setnz cl
mov rdx, fs:28h
cmp rdx, [rbp+var_18]
jnz short loc_833D6
mov al, cl
add rsp, 70h
pop rbx
pop r14
pop rbp
retn
loc_833BC:
lea rdx, [rbp+var_30]
lea r14, [rbp+var_38]
mov rdi, rax
mov esi, ebx
mov rcx, r14
call mi_keyseg_write_cold_1
mov rcx, [r14]
jmp short loc_8339A
loc_833D6:
call ___stack_chk_fail
|
bool mi_keyseg_write(unsigned int a1, long long a2)
{
__int16 v2; // ax
unsigned int v3; // eax
long long v4; // rax
long long v5; // rcx
_BYTE v8[72]; // [rsp+0h] [rbp-80h] BYREF
long long v9; // [rsp+48h] [rbp-38h] BYREF
_BYTE v10[2]; // [rsp+50h] [rbp-30h] BYREF
char v11; // [rsp+52h] [rbp-2Eh]
char v12; // [rsp+53h] [rbp-2Dh]
char v13; // [rsp+54h] [rbp-2Ch]
char v14; // [rsp+55h] [rbp-2Bh]
__int16 v15; // [rsp+56h] [rbp-2Ah]
__int16 v16; // [rsp+58h] [rbp-28h]
unsigned __int32 v17; // [rsp+5Ah] [rbp-26h]
unsigned __int32 v18; // [rsp+5Eh] [rbp-22h]
unsigned long long v19; // [rsp+68h] [rbp-18h]
v19 = __readfsqword(0x28u);
v10[0] = *(_BYTE *)(a2 + 24);
v2 = *(_WORD *)(a2 + 22);
v10[1] = v2;
v11 = *(_BYTE *)(a2 + 25);
v12 = *(_BYTE *)(a2 + 26);
v13 = HIBYTE(v2);
v14 = *(_BYTE *)(a2 + 27);
v15 = __ROL2__(*(_WORD *)(a2 + 18), 8);
v16 = __ROL2__(*(_WORD *)(a2 + 20), 8);
v17 = _byteswap_ulong(*(_DWORD *)(a2 + 8));
if ( v11 )
v3 = *(_DWORD *)(a2 + 12);
else
v3 = *(unsigned __int16 *)(a2 + 16);
v18 = _byteswap_ulong(v3);
v4 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v8, a1, 7LL);
if ( v4 )
{
mi_keyseg_write_cold_1(v4, a1, (long long)v10, &v9);
v5 = v9;
}
else
{
v5 = my_write(a1, (long long)v10, 18LL, 4LL);
}
return v5 != 0;
}
|
mi_keyseg_write:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x70
MOV EBX,EDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x18],RAX
MOV AL,byte ptr [RSI + 0x18]
MOV byte ptr [RBP + -0x30],AL
MOVZX EAX,word ptr [RSI + 0x16]
MOV byte ptr [RBP + -0x2f],AL
MOV CL,byte ptr [RSI + 0x19]
MOV byte ptr [RBP + -0x2e],CL
MOV DL,byte ptr [RSI + 0x1a]
MOV byte ptr [RBP + -0x2d],DL
MOV byte ptr [RBP + -0x2c],AH
MOV AL,byte ptr [RSI + 0x1b]
MOV byte ptr [RBP + -0x2b],AL
MOVZX EAX,word ptr [RSI + 0x12]
ROL AX,0x8
MOV word ptr [RBP + -0x2a],AX
MOVZX EAX,word ptr [RSI + 0x14]
ROL AX,0x8
MOV word ptr [RBP + -0x28],AX
MOV EAX,dword ptr [RSI + 0x8]
BSWAP EAX
MOV dword ptr [RBP + -0x26],EAX
TEST CL,CL
JZ 0x00183359
MOV EAX,dword ptr [RSI + 0xc]
JMP 0x0018335d
LAB_00183359:
MOVZX EAX,word ptr [RSI + 0x10]
LAB_0018335d:
BSWAP EAX
MOV dword ptr [RBP + -0x22],EAX
LEA RAX,[0x48f258]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x80]
MOV ESI,EBX
MOV EDX,0x7
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x001833bc
LEA RSI,[RBP + -0x30]
MOV EDX,0x12
MOV ECX,0x4
MOV EDI,EBX
CALL 0x00130a78
MOV RCX,RAX
LAB_0018339a:
XOR EAX,EAX
TEST RCX,RCX
SETNZ CL
MOV RDX,qword ptr FS:[0x28]
CMP RDX,qword ptr [RBP + -0x18]
JNZ 0x001833d6
MOV AL,CL
ADD RSP,0x70
POP RBX
POP R14
POP RBP
RET
LAB_001833bc:
LEA RDX,[RBP + -0x30]
LEA R14,[RBP + -0x38]
MOV RDI,RAX
MOV ESI,EBX
MOV RCX,R14
CALL 0x0012f343
MOV RCX,qword ptr [R14]
JMP 0x0018339a
LAB_001833d6:
CALL 0x0012a270
|
bool mi_keyseg_write(int4 param_1,long param_2)
{
uint uVar1;
long lVar2;
long in_FS_OFFSET;
int1 local_88 [72];
long local_40;
int1 local_38;
int1 local_37;
char local_36;
int1 local_35;
int1 local_34;
int1 local_33;
ushort local_32;
ushort local_30;
uint local_2e;
uint local_2a;
long local_20;
local_20 = *(long *)(in_FS_OFFSET + 0x28);
local_38 = *(int1 *)(param_2 + 0x18);
local_37 = (int1)*(int2 *)(param_2 + 0x16);
local_36 = *(char *)(param_2 + 0x19);
local_35 = *(int1 *)(param_2 + 0x1a);
local_34 = (int1)((ushort)*(int2 *)(param_2 + 0x16) >> 8);
local_33 = *(int1 *)(param_2 + 0x1b);
local_32 = *(ushort *)(param_2 + 0x12) << 8 | *(ushort *)(param_2 + 0x12) >> 8;
local_30 = *(ushort *)(param_2 + 0x14) << 8 | *(ushort *)(param_2 + 0x14) >> 8;
uVar1 = *(uint *)(param_2 + 8);
local_2e = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
if (local_36 == '\0') {
uVar1 = (uint)*(ushort *)(param_2 + 0x10);
}
else {
uVar1 = *(uint *)(param_2 + 0xc);
}
local_2a = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
lVar2 = (**(code **)(PSI_server + 0x158))(local_88,param_1,7);
if (lVar2 == 0) {
local_40 = my_write(param_1,&local_38,0x12,4);
}
else {
mi_keyseg_write_cold_1(lVar2,param_1,&local_38,&local_40);
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_20) {
return local_40 != 0;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
57,493
|
resolve_charset
|
eloqsql/mysys/charset.c
|
my_bool resolve_charset(const char *cs_name,
CHARSET_INFO *default_cs,
CHARSET_INFO **cs,
myf flags)
{
*cs= get_charset_by_csname(cs_name, MY_CS_PRIMARY, flags);
if (*cs == NULL)
{
*cs= default_cs;
return TRUE;
}
return FALSE;
}
|
O3
|
c
|
resolve_charset:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xc0, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %rsi
movq %fs:0x28, %rax
movq %rax, -0x18(%rbp)
leaq -0xc8(%rbp), %rdi
movb $0x0, (%rdi)
leaq -0x12f0(%rip), %rax # 0x59266
movq %rax, 0x80(%rdi)
leaq -0x12ef(%rip), %rax # 0x59275
movq %rax, 0x88(%rdi)
leaq -0x12e2(%rip), %rax # 0x59290
movq %rax, 0x90(%rdi)
leaq 0x6e7e(%rip), %rax # 0x613fe
movq %rax, 0x98(%rdi)
leaq 0x2e19c2(%rip), %rax # 0x33bf50
movq (%rax), %rax
movq %rax, 0xa0(%rdi)
leaq -0x12f1(%rip), %rax # 0x592ae
movq %rax, 0xa8(%rdi)
movl $0x20, %edx
callq 0x5a3a8
movq %rax, %rcx
testq %rax, %rax
sete %al
cmovneq %rcx, %r14
movq %r14, (%rbx)
movq %fs:0x28, %rcx
cmpq -0x18(%rbp), %rcx
jne 0x5a5db
addq $0xc0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x362b0
|
resolve_charset:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 0C0h
mov rbx, rdx
mov r14, rsi
mov rsi, rdi
mov rax, fs:28h
mov [rbp+var_18], rax
lea rdi, [rbp+var_C8]
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
mov edx, 20h ; ' '
call my_charset_get_by_name
mov rcx, rax
test rax, rax
setz al
cmovnz r14, rcx
mov [rbx], r14
mov rcx, fs:28h
cmp rcx, [rbp+var_18]
jnz short loc_5A5DB
add rsp, 0C0h
pop rbx
pop r14
pop rbp
retn
loc_5A5DB:
call ___stack_chk_fail
|
bool resolve_charset(long long a1, long long a2, long long *a3, long long a4)
{
long long v6; // rcx
bool result; // al
char v8[128]; // [rsp+8h] [rbp-C8h] BYREF
long long ( *v9)(long long); // [rsp+88h] [rbp-48h]
long long ( *v10)(long long); // [rsp+90h] [rbp-40h]
long long ( *v11)(long long, long long); // [rsp+98h] [rbp-38h]
long long ( *v12)(_QWORD); // [rsp+A0h] [rbp-30h]
long long ( *v13)(); // [rsp+A8h] [rbp-28h]
long long ( *v14)(unsigned int *); // [rsp+B0h] [rbp-20h]
unsigned long long v15; // [rsp+B8h] [rbp-18h]
v15 = __readfsqword(0x28u);
v8[0] = 0;
v9 = my_once_alloc_c;
v10 = my_malloc_c;
v11 = my_realloc_c;
v12 = my_free;
v13 = my_charset_error_reporter;
v14 = add_collation;
v6 = my_charset_get_by_name((long long)v8, a1, 0x20u, a4);
result = v6 == 0;
if ( v6 )
a2 = v6;
*a3 = a2;
return result;
}
|
resolve_charset:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0xc0
MOV RBX,RDX
MOV R14,RSI
MOV RSI,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x18],RAX
LEA RDI,[RBP + -0xc8]
MOV byte ptr [RDI],0x0
LEA RAX,[0x159266]
MOV qword ptr [RDI + 0x80],RAX
LEA RAX,[0x159275]
MOV qword ptr [RDI + 0x88],RAX
LEA RAX,[0x159290]
MOV qword ptr [RDI + 0x90],RAX
LEA RAX,[0x1613fe]
MOV qword ptr [RDI + 0x98],RAX
LEA RAX,[0x43bf50]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RDI + 0xa0],RAX
LEA RAX,[0x1592ae]
MOV qword ptr [RDI + 0xa8],RAX
MOV EDX,0x20
CALL 0x0015a3a8
MOV RCX,RAX
TEST RAX,RAX
SETZ AL
CMOVNZ R14,RCX
MOV qword ptr [RBX],R14
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x18]
JNZ 0x0015a5db
ADD RSP,0xc0
POP RBX
POP R14
POP RBP
RET
LAB_0015a5db:
CALL 0x001362b0
|
bool resolve_charset(int8 param_1,long param_2,long *param_3)
{
long lVar1;
long in_FS_OFFSET;
int1 local_d0 [128];
code *local_50;
code *local_48;
code *local_40;
code *local_38;
int *local_30;
code *local_28;
long local_20;
local_20 = *(long *)(in_FS_OFFSET + 0x28);
local_d0[0] = 0;
local_50 = my_once_alloc_c;
local_48 = my_malloc_c;
local_40 = my_realloc_c;
local_38 = my_free;
local_30 = my_charset_error_reporter;
local_28 = add_collation;
lVar1 = my_charset_get_by_name(local_d0,param_1,0x20);
if (lVar1 != 0) {
param_2 = lVar1;
}
*param_3 = param_2;
if (*(long *)(in_FS_OFFSET + 0x28) == local_20) {
return lVar1 == 0;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
57,494
|
my_charpos_utf16
|
eloqsql/strings/ctype-ucs2.c
|
static size_t
my_charpos_utf16(CHARSET_INFO *cs,
const char *b, const char *e, size_t pos)
{
const char *b0= b;
uint charlen;
for ( ; pos; b+= charlen, pos--)
{
if (!(charlen= my_ismbchar(cs, b, e)))
return (e + 2 - b0); /* Error, return pos outside the string */
}
return (size_t) (pos ? (e + 2 - b0) : (b - b0));
}
|
O3
|
c
|
my_charpos_utf16:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rsi, %r12
testq %rcx, %rcx
je 0xc3dd9
movq %rcx, %r15
movq %rdx, %r14
movq %rdi, %r13
movq %rbx, %r12
movq 0xb8(%r13), %rax
movq %r13, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq *0xc0(%rax)
cmpl $0x1, %eax
jle 0xc3dd2
movl %eax, %eax
addq %rax, %r12
decq %r15
jne 0xc3dab
jmp 0xc3dd9
addq $0x2, %r14
movq %r14, %r12
subq %rbx, %r12
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_charpos_utf16:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rsi
mov r12, rsi
test rcx, rcx
jz short loc_C3DD9
mov r15, rcx
mov r14, rdx
mov r13, rdi
mov r12, rbx
loc_C3DAB:
mov rax, [r13+0B8h]
mov rdi, r13
mov rsi, r12
mov rdx, r14
call qword ptr [rax+0C0h]
cmp eax, 1
jle short loc_C3DD2
mov eax, eax
add r12, rax
dec r15
jnz short loc_C3DAB
jmp short loc_C3DD9
loc_C3DD2:
add r14, 2
mov r12, r14
loc_C3DD9:
sub r12, rbx
mov rax, r12
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long my_charpos_utf16(long long a1, long long a2, long long a3, long long a4)
{
long long v4; // r12
long long v5; // r15
int v7; // eax
v4 = a2;
if ( a4 )
{
v5 = a4;
v4 = a2;
while ( 1 )
{
v7 = (*(long long ( **)(long long, long long, long long))(*(_QWORD *)(a1 + 184) + 192LL))(a1, v4, a3);
if ( v7 <= 1 )
break;
v4 += (unsigned int)v7;
if ( !--v5 )
return v4 - a2;
}
v4 = a3 + 2;
}
return v4 - a2;
}
|
my_charpos_utf16:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R12,RSI
TEST RCX,RCX
JZ 0x001c3dd9
MOV R15,RCX
MOV R14,RDX
MOV R13,RDI
MOV R12,RBX
LAB_001c3dab:
MOV RAX,qword ptr [R13 + 0xb8]
MOV RDI,R13
MOV RSI,R12
MOV RDX,R14
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x1
JLE 0x001c3dd2
MOV EAX,EAX
ADD R12,RAX
DEC R15
JNZ 0x001c3dab
JMP 0x001c3dd9
LAB_001c3dd2:
ADD R14,0x2
MOV R12,R14
LAB_001c3dd9:
SUB R12,RBX
MOV RAX,R12
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_charpos_utf16(long param_1,long param_2,long param_3,long param_4)
{
uint uVar1;
long lVar2;
lVar2 = param_2;
if (param_4 != 0) {
do {
uVar1 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,lVar2,param_3);
if ((int)uVar1 < 2) {
lVar2 = param_3 + 2;
break;
}
lVar2 = lVar2 + (ulong)uVar1;
param_4 = param_4 + -1;
} while (param_4 != 0);
}
return lVar2 - param_2;
}
|
|
57,495
|
js_function_toString
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_function_toString(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSObject *p;
JSFunctionKindEnum func_kind = JS_FUNC_NORMAL;
if (check_function(ctx, this_val))
return JS_EXCEPTION;
p = JS_VALUE_GET_OBJ(this_val);
if (js_class_has_bytecode(p->class_id)) {
JSFunctionBytecode *b = p->u.func.function_bytecode;
/* `b->source` must be pure ASCII or UTF-8 encoded */
if (b->source)
return JS_NewStringLen(ctx, b->source, b->source_len);
}
{
JSValue name;
const char *pref, *suff;
switch(func_kind) {
default:
case JS_FUNC_NORMAL:
pref = "function ";
break;
case JS_FUNC_GENERATOR:
pref = "function *";
break;
case JS_FUNC_ASYNC:
pref = "async function ";
break;
case JS_FUNC_ASYNC_GENERATOR:
pref = "async function *";
break;
}
suff = "() {\n [native code]\n}";
name = JS_GetProperty(ctx, this_val, JS_ATOM_name);
if (JS_IsUndefined(name))
name = JS_AtomToString(ctx, JS_ATOM_empty_string);
return JS_ConcatString3(ctx, pref, name, suff);
}
}
|
O2
|
c
|
js_function_toString:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0x3949a
testl %eax, %eax
je 0x5fd74
pushq $0x6
popq %rdx
xorl %eax, %eax
xorl %r12d, %r12d
jmp 0x5fdfa
movabsq $-0x100000000, %r12 # imm = 0xFFFFFFFF00000000
movzwl 0x6(%r15), %eax
cmpq $0x38, %rax
ja 0x5fdb7
movabsq $0x110000000012000, %rcx # imm = 0x110000000012000
btq %rax, %rcx
jae 0x5fdb7
movq 0x30(%r15), %rax
movq 0x88(%rax), %rsi
testq %rsi, %rsi
je 0x5fdb7
movslq 0x74(%rax), %rdx
movq %rbx, %rdi
callq 0x1a2ea
jmp 0x5fdf7
pushq $0x37
popq %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1b043
movq %rdx, %rcx
cmpl $0x3, %ecx
jne 0x5fdde
pushq $0x2f
popq %rsi
movq %rbx, %rdi
callq 0x1a990
movq %rdx, %rcx
leaq 0x28c56(%rip), %rsi # 0x88a3b
leaq 0x28c59(%rip), %r8 # 0x88a45
movq %rbx, %rdi
movq %rax, %rdx
callq 0x39c30
andq %rax, %r12
movl %eax, %eax
orq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
|
js_function_toString:
push r15
push r14
push r12
push rbx
push rax
mov r14, rdx
mov r15, rsi
mov rbx, rdi
call check_function
test eax, eax
jz short loc_5FD74
push 6
pop rdx
xor eax, eax
xor r12d, r12d
jmp loc_5FDFA
loc_5FD74:
mov r12, 0FFFFFFFF00000000h
movzx eax, word ptr [r15+6]
cmp rax, 38h ; '8'
ja short loc_5FDB7
mov rcx, 110000000012000h
bt rcx, rax
jnb short loc_5FDB7
mov rax, [r15+30h]
mov rsi, [rax+88h]
test rsi, rsi
jz short loc_5FDB7
movsxd rdx, dword ptr [rax+74h]
mov rdi, rbx
call JS_NewStringLen
jmp short loc_5FDF7
loc_5FDB7:
push 37h ; '7'
pop rcx
mov rdi, rbx
mov rsi, r15
mov rdx, r14
call JS_GetProperty
mov rcx, rdx
cmp ecx, 3
jnz short loc_5FDDE
push 2Fh ; '/'
pop rsi
mov rdi, rbx
call JS_AtomToString
mov rcx, rdx
loc_5FDDE:
lea rsi, aFunction; "function "
lea r8, aNativeCode; "() {\n [native code]\n}"
mov rdi, rbx
mov rdx, rax
call JS_ConcatString3
loc_5FDF7:
and r12, rax
loc_5FDFA:
mov eax, eax
or rax, r12
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
|
unsigned long long js_function_toString(
long long a1,
long long a2,
int a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
int v12; // r15d
long long v13; // rax
unsigned long long v14; // r12
unsigned long long v15; // rax
long long v16; // rcx
long long v17; // rax
char *v18; // rsi
long long Property; // rax
long long v20; // rdx
long long v21; // rcx
long long v22; // rdx
v12 = a2;
if ( (unsigned int)check_function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) )
{
LODWORD(v13) = 0;
v14 = 0LL;
}
else
{
v15 = *(unsigned __int16 *)(a2 + 6);
if ( v15 <= 0x38
&& (v16 = 0x110000000012000LL, _bittest64(&v16, v15))
&& (v17 = *(_QWORD *)(a2 + 48), (v18 = *(char **)(v17 + 136)) != 0LL) )
{
v13 = JS_NewStringLen(a1, v18, *(int *)(v17 + 116));
}
else
{
Property = JS_GetProperty(a1, v12, a3, 55);
v21 = v20;
if ( (_DWORD)v20 == 3 )
{
Property = JS_AtomToString(a1, 47);
v21 = v22;
}
v13 = JS_ConcatString3(a1, (long long)"function ", Property, v21, (long long)"() {\n [native code]\n}");
}
v14 = v13 & 0xFFFFFFFF00000000LL;
}
return v14 | (unsigned int)v13;
}
|
js_function_toString:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
CALL 0x0013949a
TEST EAX,EAX
JZ 0x0015fd74
PUSH 0x6
POP RDX
XOR EAX,EAX
XOR R12D,R12D
JMP 0x0015fdfa
LAB_0015fd74:
MOV R12,-0x100000000
MOVZX EAX,word ptr [R15 + 0x6]
CMP RAX,0x38
JA 0x0015fdb7
MOV RCX,0x110000000012000
BT RCX,RAX
JNC 0x0015fdb7
MOV RAX,qword ptr [R15 + 0x30]
MOV RSI,qword ptr [RAX + 0x88]
TEST RSI,RSI
JZ 0x0015fdb7
MOVSXD RDX,dword ptr [RAX + 0x74]
MOV RDI,RBX
CALL 0x0011a2ea
JMP 0x0015fdf7
LAB_0015fdb7:
PUSH 0x37
POP RCX
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
CALL 0x0011b043
MOV RCX,RDX
CMP ECX,0x3
JNZ 0x0015fdde
PUSH 0x2f
POP RSI
MOV RDI,RBX
CALL 0x0011a990
MOV RCX,RDX
LAB_0015fdde:
LEA RSI,[0x188a3b]
LEA R8,[0x188a45]
MOV RDI,RBX
MOV RDX,RAX
CALL 0x00139c30
LAB_0015fdf7:
AND R12,RAX
LAB_0015fdfa:
MOV EAX,EAX
OR RAX,R12
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
ulong js_function_toString(int8 param_1,long param_2,int8 param_3)
{
long lVar1;
int iVar2;
ulong uVar3;
ulong uVar4;
int1 auVar5 [16];
iVar2 = check_function();
if (iVar2 != 0) {
uVar3 = 0;
uVar4 = 0;
goto LAB_0015fdfa;
}
if (((ulong)*(ushort *)(param_2 + 6) < 0x39) &&
((0x110000000012000U >> ((ulong)*(ushort *)(param_2 + 6) & 0x3f) & 1) != 0)) {
lVar1 = *(long *)(*(long *)(param_2 + 0x30) + 0x88);
if (lVar1 == 0) goto LAB_0015fdb7;
uVar3 = JS_NewStringLen(param_1,lVar1,(long)*(int *)(*(long *)(param_2 + 0x30) + 0x74));
}
else {
LAB_0015fdb7:
auVar5 = JS_GetProperty(param_1,param_2,param_3,0x37);
if (auVar5._8_4_ == 3) {
auVar5 = JS_AtomToString(param_1,0x2f);
}
uVar3 = JS_ConcatString3(param_1,"function ",auVar5._0_8_,auVar5._8_8_,
"() {\n [native code]\n}");
}
uVar4 = uVar3 & 0xffffffff00000000;
LAB_0015fdfa:
return uVar3 & 0xffffffff | uVar4;
}
|
|
57,496
|
my_strnncoll_simple
|
eloqsql/strings/ctype-simple.c
|
int my_strnncoll_simple(CHARSET_INFO * cs, const uchar *s, size_t slen,
const uchar *t, size_t tlen,
my_bool t_is_prefix)
{
size_t len = ( slen > tlen ) ? tlen : slen;
const uchar *map= cs->sort_order;
if (t_is_prefix && slen > tlen)
slen=tlen;
while (len--)
{
if (map[*s++] != map[*t++])
return ((int) map[s[-1]] - (int) map[t[-1]]);
}
/*
We can't use (slen - tlen) here as the result may be outside of the
precision of a signed int
*/
return slen > tlen ? 1 : slen < tlen ? -1 : 0 ;
}
|
O3
|
c
|
my_strnncoll_simple:
pushq %rbp
movq %rsp, %rbp
cmpq %r8, %rdx
movq %r8, %r10
cmovbq %rdx, %r10
movq 0x58(%rdi), %rdi
testb %r9b, %r9b
cmovneq %r10, %rdx
xorl %r9d, %r9d
cmpq %r9, %r10
je 0x6e46e
movzbl (%rsi,%r9), %eax
movzbl (%rdi,%rax), %eax
movzbl (%rcx,%r9), %r11d
movzbl (%rdi,%r11), %r11d
incq %r9
cmpb %r11b, %al
je 0x6e449
subl %r11d, %eax
jmp 0x6e480
xorl %ecx, %ecx
cmpq %r8, %rdx
sbbl %ecx, %ecx
cmpq %r8, %rdx
movl $0x1, %eax
cmovbel %ecx, %eax
popq %rbp
retq
|
my_strnncoll_simple:
push rbp
mov rbp, rsp
cmp rdx, r8
mov r10, r8
cmovb r10, rdx
mov rdi, [rdi+58h]
test r9b, r9b
cmovnz rdx, r10
xor r9d, r9d
loc_6E449:
cmp r10, r9
jz short loc_6E46E
movzx eax, byte ptr [rsi+r9]
movzx eax, byte ptr [rdi+rax]
movzx r11d, byte ptr [rcx+r9]
movzx r11d, byte ptr [rdi+r11]
inc r9
cmp al, r11b
jz short loc_6E449
sub eax, r11d
jmp short loc_6E480
loc_6E46E:
xor ecx, ecx
cmp rdx, r8
sbb ecx, ecx
cmp rdx, r8
mov eax, 1
cmovbe eax, ecx
loc_6E480:
pop rbp
retn
|
long long my_strnncoll_simple(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
char a6)
{
unsigned long long v6; // r10
long long v7; // rdi
long long v8; // r9
int v9; // eax
int v10; // r11d
long long result; // rax
v6 = a5;
if ( a3 < a5 )
v6 = a3;
v7 = *(_QWORD *)(a1 + 88);
if ( a6 )
a3 = v6;
v8 = 0LL;
while ( v6 != v8 )
{
v9 = *(unsigned __int8 *)(v7 + *(unsigned __int8 *)(a2 + v8));
v10 = *(unsigned __int8 *)(v7 + *(unsigned __int8 *)(a4 + v8++));
if ( (_BYTE)v9 != (_BYTE)v10 )
return (unsigned int)(v9 - v10);
}
result = 1LL;
if ( a3 <= a5 )
return (unsigned int)-(a3 < a5);
return result;
}
|
my_strnncoll_simple:
PUSH RBP
MOV RBP,RSP
CMP RDX,R8
MOV R10,R8
CMOVC R10,RDX
MOV RDI,qword ptr [RDI + 0x58]
TEST R9B,R9B
CMOVNZ RDX,R10
XOR R9D,R9D
LAB_0016e449:
CMP R10,R9
JZ 0x0016e46e
MOVZX EAX,byte ptr [RSI + R9*0x1]
MOVZX EAX,byte ptr [RDI + RAX*0x1]
MOVZX R11D,byte ptr [RCX + R9*0x1]
MOVZX R11D,byte ptr [RDI + R11*0x1]
INC R9
CMP AL,R11B
JZ 0x0016e449
SUB EAX,R11D
JMP 0x0016e480
LAB_0016e46e:
XOR ECX,ECX
CMP RDX,R8
SBB ECX,ECX
CMP RDX,R8
MOV EAX,0x1
CMOVBE EAX,ECX
LAB_0016e480:
POP RBP
RET
|
int my_strnncoll_simple(long param_1,long param_2,ulong param_3,long param_4,ulong param_5,
char param_6)
{
byte bVar1;
byte bVar2;
ulong uVar3;
ulong uVar4;
uVar4 = param_5;
if (param_3 < param_5) {
uVar4 = param_3;
}
if (param_6 != '\0') {
param_3 = uVar4;
}
uVar3 = 0;
do {
if (uVar4 == uVar3) {
if (param_5 < param_3) {
return 1;
}
return -(uint)(param_3 < param_5);
}
bVar1 = *(byte *)(*(long *)(param_1 + 0x58) + (ulong)*(byte *)(param_2 + uVar3));
bVar2 = *(byte *)(*(long *)(param_1 + 0x58) + (ulong)*(byte *)(param_4 + uVar3));
uVar3 = uVar3 + 1;
} while (bVar1 == bVar2);
return (uint)bVar1 - (uint)bVar2;
}
|
|
57,497
|
ma_hashtbl_init
|
eloqsql/libmariadb/libmariadb/ma_hashtbl.c
|
my_bool _ma_hashtbl_init(MA_HASHTBL *hash,uint size,uint key_offset,uint key_length,
hash_get_key get_key,
void (*free_element)(void*),uint flags CALLER_INFO_PROTO)
{
hash->records=0;
if (ma_init_dynamic_array_ci(&hash->array,sizeof(MA_HASHTBL_LINK),size,0))
{
hash->free=0; /* Allow call to hash_free */
return(TRUE);
}
hash->key_offset=key_offset;
hash->key_length=key_length;
hash->blength=1;
hash->current_record= NO_RECORD; /* For the future */
hash->get_key=get_key;
hash->free=free_element;
hash->flags=flags;
if (flags & MA_HASHTBL_CASE_INSENSITIVE)
hash->calc_hashnr=calc_hashnr_caseup;
else
hash->calc_hashnr=calc_hashnr;
return(0);
}
|
O3
|
c
|
ma_hashtbl_init:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r14
movq %r8, %r15
movl %ecx, %r12d
movl %edx, %r13d
movl %esi, %edx
movq %rdi, %rbx
movl $0x0, 0x8(%rdi)
addq $0x18, %rdi
movl $0x10, %esi
xorl %ecx, %ecx
callq 0x31294
testb %al, %al
je 0x31f8a
movq $0x0, 0x38(%rbx)
movb $0x1, %al
jmp 0x31fc7
movl 0x10(%rbp), %eax
movl %r13d, (%rbx)
movl %r12d, 0x4(%rbx)
movabsq $-0xffffffff, %rcx # imm = 0xFFFFFFFF00000001
movq %rcx, 0xc(%rbx)
movq %r15, 0x30(%rbx)
movq %r14, 0x38(%rbx)
movl %eax, 0x14(%rbx)
testb $0x1, %al
jne 0x31fba
leaq 0x80(%rip), %rax # 0x32038
jmp 0x31fc1
leaq 0x15(%rip), %rax # 0x31fd6
movq %rax, 0x40(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ma_hashtbl_init:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, r9
mov r15, r8
mov r12d, ecx
mov r13d, edx
mov edx, esi
mov rbx, rdi
mov dword ptr [rdi+8], 0
add rdi, 18h
mov esi, 10h
xor ecx, ecx
call ma_init_dynamic_array
test al, al
jz short loc_31F8A
mov qword ptr [rbx+38h], 0
mov al, 1
jmp short loc_31FC7
loc_31F8A:
mov eax, [rbp+arg_0]
mov [rbx], r13d
mov [rbx+4], r12d
mov rcx, 0FFFFFFFF00000001h
mov [rbx+0Ch], rcx
mov [rbx+30h], r15
mov [rbx+38h], r14
mov [rbx+14h], eax
test al, 1
jnz short loc_31FBA
lea rax, calc_hashnr
jmp short loc_31FC1
loc_31FBA:
lea rax, calc_hashnr_caseup
loc_31FC1:
mov [rbx+40h], rax
xor eax, eax
loc_31FC7:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
char ma_hashtbl_init(long long a1, unsigned int a2, int a3, int a4, long long a5, long long a6, int a7)
{
long long ( *v12)(); // rax
*(_DWORD *)(a1 + 8) = 0;
if ( (unsigned __int8)ma_init_dynamic_array(a1 + 24, 0x10u, a2, 0) )
{
*(_QWORD *)(a1 + 56) = 0LL;
return 1;
}
else
{
*(_DWORD *)a1 = a3;
*(_DWORD *)(a1 + 4) = a4;
*(_QWORD *)(a1 + 12) = 0xFFFFFFFF00000001LL;
*(_QWORD *)(a1 + 48) = a5;
*(_QWORD *)(a1 + 56) = a6;
*(_DWORD *)(a1 + 20) = a7;
if ( (a7 & 1) != 0 )
v12 = calc_hashnr_caseup;
else
v12 = calc_hashnr;
*(_QWORD *)(a1 + 64) = v12;
return 0;
}
}
|
_ma_hashtbl_init:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,R9
MOV R15,R8
MOV R12D,ECX
MOV R13D,EDX
MOV EDX,ESI
MOV RBX,RDI
MOV dword ptr [RDI + 0x8],0x0
ADD RDI,0x18
MOV ESI,0x10
XOR ECX,ECX
CALL 0x00131294
TEST AL,AL
JZ 0x00131f8a
MOV qword ptr [RBX + 0x38],0x0
MOV AL,0x1
JMP 0x00131fc7
LAB_00131f8a:
MOV EAX,dword ptr [RBP + 0x10]
MOV dword ptr [RBX],R13D
MOV dword ptr [RBX + 0x4],R12D
MOV RCX,-0xffffffff
MOV qword ptr [RBX + 0xc],RCX
MOV qword ptr [RBX + 0x30],R15
MOV qword ptr [RBX + 0x38],R14
MOV dword ptr [RBX + 0x14],EAX
TEST AL,0x1
JNZ 0x00131fba
LEA RAX,[0x132038]
JMP 0x00131fc1
LAB_00131fba:
LEA RAX,[0x131fd6]
LAB_00131fc1:
MOV qword ptr [RBX + 0x40],RAX
XOR EAX,EAX
LAB_00131fc7:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
_ma_hashtbl_init(int4 *param_1,int4 param_2,int4 param_3,int4 param_4,
int8 param_5,int8 param_6,uint param_7)
{
char cVar1;
int8 uVar2;
code *pcVar3;
param_1[2] = 0;
cVar1 = ma_init_dynamic_array(param_1 + 6,0x10,param_2,0);
if (cVar1 == '\0') {
*param_1 = param_3;
param_1[1] = param_4;
*(int8 *)(param_1 + 3) = 0xffffffff00000001;
*(int8 *)(param_1 + 0xc) = param_5;
*(int8 *)(param_1 + 0xe) = param_6;
param_1[5] = param_7;
if ((param_7 & 1) == 0) {
pcVar3 = calc_hashnr;
}
else {
pcVar3 = calc_hashnr_caseup;
}
*(code **)(param_1 + 0x10) = pcVar3;
uVar2 = 0;
}
else {
*(int8 *)(param_1 + 0xe) = 0;
uVar2 = 1;
}
return uVar2;
}
|
|
57,498
|
common_sampler_type_to_chr(common_sampler_type)
|
monkey531[P]llama/common/sampling.cpp
|
char common_sampler_type_to_chr(enum common_sampler_type cnstr) {
switch (cnstr) {
case COMMON_SAMPLER_TYPE_DRY: return 'd';
case COMMON_SAMPLER_TYPE_TOP_K: return 'k';
case COMMON_SAMPLER_TYPE_TYPICAL_P: return 'y';
case COMMON_SAMPLER_TYPE_TOP_P: return 'p';
case COMMON_SAMPLER_TYPE_MIN_P: return 'm';
case COMMON_SAMPLER_TYPE_TEMPERATURE: return 't';
case COMMON_SAMPLER_TYPE_XTC: return 'x';
case COMMON_SAMPLER_TYPE_INFILL: return 'i';
case COMMON_SAMPLER_TYPE_PENALTIES: return 'e';
default : return '?';
}
}
|
O0
|
cpp
|
common_sampler_type_to_chr(common_sampler_type):
movl %edi, -0x8(%rsp)
movl -0x8(%rsp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x10(%rsp)
subl $0x9, %eax
ja 0x1c3c6a
movq -0x10(%rsp), %rax
leaq 0x54e66(%rip), %rcx # 0x218a88
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x64, -0x1(%rsp)
jmp 0x1c3c6f
movb $0x6b, -0x1(%rsp)
jmp 0x1c3c6f
movb $0x79, -0x1(%rsp)
jmp 0x1c3c6f
movb $0x70, -0x1(%rsp)
jmp 0x1c3c6f
movb $0x6d, -0x1(%rsp)
jmp 0x1c3c6f
movb $0x74, -0x1(%rsp)
jmp 0x1c3c6f
movb $0x78, -0x1(%rsp)
jmp 0x1c3c6f
movb $0x69, -0x1(%rsp)
jmp 0x1c3c6f
movb $0x65, -0x1(%rsp)
jmp 0x1c3c6f
movb $0x3f, -0x1(%rsp)
movb -0x1(%rsp), %al
retq
nopw %cs:(%rax,%rax)
|
_Z26common_sampler_type_to_chr19common_sampler_type:
mov [rsp+var_8], edi
mov eax, [rsp+var_8]
dec eax; switch 10 cases
mov ecx, eax
mov [rsp+var_10], rcx
sub eax, 9
ja short def_1C3C29; jumptable 00000000001C3C29 default case, case 5
mov rax, [rsp+var_10]
lea rcx, jpt_1C3C29
movsxd rax, ds:(jpt_1C3C29 - 218A88h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_1C3C2B:
mov [rsp+var_1], 64h ; 'd'; jumptable 00000000001C3C29 case 1
jmp short loc_1C3C6F
loc_1C3C32:
mov [rsp+var_1], 6Bh ; 'k'; jumptable 00000000001C3C29 case 2
jmp short loc_1C3C6F
loc_1C3C39:
mov [rsp+var_1], 79h ; 'y'; jumptable 00000000001C3C29 case 6
jmp short loc_1C3C6F
loc_1C3C40:
mov [rsp+var_1], 70h ; 'p'; jumptable 00000000001C3C29 case 3
jmp short loc_1C3C6F
loc_1C3C47:
mov [rsp+var_1], 6Dh ; 'm'; jumptable 00000000001C3C29 case 4
jmp short loc_1C3C6F
loc_1C3C4E:
mov [rsp+var_1], 74h ; 't'; jumptable 00000000001C3C29 case 7
jmp short loc_1C3C6F
loc_1C3C55:
mov [rsp+var_1], 78h ; 'x'; jumptable 00000000001C3C29 case 8
jmp short loc_1C3C6F
loc_1C3C5C:
mov [rsp+var_1], 69h ; 'i'; jumptable 00000000001C3C29 case 9
jmp short loc_1C3C6F
loc_1C3C63:
mov [rsp+var_1], 65h ; 'e'; jumptable 00000000001C3C29 case 10
jmp short loc_1C3C6F
def_1C3C29:
mov [rsp+var_1], 3Fh ; '?'; jumptable 00000000001C3C29 default case, case 5
loc_1C3C6F:
mov al, [rsp+var_1]
retn
|
char common_sampler_type_to_chr(int a1)
{
char v2; // [rsp+Fh] [rbp-1h]
switch ( a1 )
{
case 1:
v2 = 100;
break;
case 2:
v2 = 107;
break;
case 3:
v2 = 112;
break;
case 4:
v2 = 109;
break;
case 6:
v2 = 121;
break;
case 7:
v2 = 116;
break;
case 8:
v2 = 120;
break;
case 9:
v2 = 105;
break;
case 10:
v2 = 101;
break;
default:
v2 = 63;
break;
}
return v2;
}
|
_M_realloc_insert<unsigned_long_const&>:
SUB RSP,0x88
MOV qword ptr [RSP + 0x80],RSI
MOV qword ptr [RSP + 0x78],RDI
MOV qword ptr [RSP + 0x70],RDX
MOV RDI,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x30],RDI
MOV ESI,0x1
LEA RDX,[0x3093c1]
CALL 0x001c3e10
MOV RDI,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x68],RAX
MOV RAX,qword ptr [RDI]
MOV qword ptr [RSP + 0x60],RAX
MOV RAX,qword ptr [RDI + 0x8]
MOV qword ptr [RSP + 0x58],RAX
CALL 0x001c3f40
MOV qword ptr [RSP + 0x48],RAX
LEA RDI,[RSP + 0x80]
LEA RSI,[RSP + 0x48]
CALL 0x001c3f00
MOV RDI,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x50],RAX
MOV RSI,qword ptr [RSP + 0x68]
CALL 0x001c3f70
MOV RDI,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x38],RAX
MOV RSI,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RSP + 0x50]
SHL RAX,0x3
ADD RSI,RAX
MOV RDX,qword ptr [RSP + 0x70]
CALL 0x001c3bd0
MOV qword ptr [RSP + 0x38],0x0
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP],RAX
LEA RDI,[RSP + 0x80]
CALL 0x001c4000
MOV RDI,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x001c2e20
MOV RDI,qword ptr [RSP]
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
MOV RCX,RAX
CALL 0x001c3fc0
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x38]
ADD RAX,0x8
MOV qword ptr [RSP + 0x38],RAX
LEA RDI,[RSP + 0x80]
CALL 0x001c4000
MOV RDI,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x28],RAX
CALL 0x001c2e20
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
MOV RCX,RAX
CALL 0x001c3fc0
MOV RDI,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x38],RAX
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RDI + 0x10]
MOV RAX,qword ptr [RSP + 0x60]
SUB RDX,RAX
SAR RDX,0x3
CALL 0x001c2eb0
MOV RAX,qword ptr [RSP + 0x30]
MOV RCX,qword ptr [RSP + 0x40]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RSP + 0x38]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x68]
SHL RDX,0x3
ADD RCX,RDX
MOV qword ptr [RAX + 0x10],RCX
ADD RSP,0x88
RET
|
/* void std::vector<unsigned long, std::allocator<unsigned long> >::_M_realloc_insert<unsigned long
const&>(__gnu_cxx::__normal_iterator<unsigned long*, std::vector<unsigned long,
std::allocator<unsigned long> > >, unsigned long const&) */
void __thiscall
std::vector<unsigned_long,std::allocator<unsigned_long>>::_M_realloc_insert<unsigned_long_const&>
(vector<unsigned_long,std::allocator<unsigned_long>> *this,int8 param_2,
ulong *param_3)
{
ulong *puVar1;
ulong *puVar2;
ulong *puVar3;
int8 *puVar4;
allocator *paVar5;
long lVar6;
int8 uVar7;
int8 local_40;
long local_38;
ulong *local_30;
ulong *local_28;
ulong local_20;
ulong *local_18;
vector<unsigned_long,std::allocator<unsigned_long>> *local_10;
int8 local_8;
local_18 = param_3;
local_10 = this;
local_8 = param_2;
local_20 = _M_check_len(this,1,"vector::_M_realloc_insert");
local_28 = *(ulong **)this;
local_30 = *(ulong **)(this + 8);
local_40 = begin(this);
local_38 = __gnu_cxx::operator-((__normal_iterator *)&local_8,(__normal_iterator *)&local_40);
puVar3 = (ulong *)_Vector_base<unsigned_long,std::allocator<unsigned_long>>::_M_allocate
((_Vector_base<unsigned_long,std::allocator<unsigned_long>> *)this,
local_20);
allocator_traits<std::allocator<unsigned_long>>::construct<unsigned_long,unsigned_long_const&>
((allocator *)this,puVar3 + local_38,local_18);
puVar2 = local_28;
puVar4 = (int8 *)
__gnu_cxx::
__normal_iterator<unsigned_long*,std::vector<unsigned_long,std::allocator<unsigned_long>>>
::base((__normal_iterator<unsigned_long*,std::vector<unsigned_long,std::allocator<unsigned_long>>>
*)&local_8);
puVar1 = (ulong *)*puVar4;
paVar5 = (allocator *)
_Vector_base<unsigned_long,std::allocator<unsigned_long>>::_M_get_Tp_allocator
((_Vector_base<unsigned_long,std::allocator<unsigned_long>> *)this);
lVar6 = _S_relocate(puVar2,puVar1,puVar3,paVar5);
puVar4 = (int8 *)
__gnu_cxx::
__normal_iterator<unsigned_long*,std::vector<unsigned_long,std::allocator<unsigned_long>>>
::base((__normal_iterator<unsigned_long*,std::vector<unsigned_long,std::allocator<unsigned_long>>>
*)&local_8);
puVar2 = local_30;
puVar1 = (ulong *)*puVar4;
paVar5 = (allocator *)
_Vector_base<unsigned_long,std::allocator<unsigned_long>>::_M_get_Tp_allocator
((_Vector_base<unsigned_long,std::allocator<unsigned_long>> *)this);
uVar7 = _S_relocate(puVar1,puVar2,(ulong *)(lVar6 + 8),paVar5);
_Vector_base<unsigned_long,std::allocator<unsigned_long>>::_M_deallocate
((_Vector_base<unsigned_long,std::allocator<unsigned_long>> *)this,local_28,
*(long *)(this + 0x10) - (long)local_28 >> 3);
*(ulong **)this = puVar3;
*(int8 *)(this + 8) = uVar7;
*(ulong **)(this + 0x10) = puVar3 + local_20;
return;
}
|
|
57,499
|
common_kv_cache_dump_view_seqs(llama_kv_cache_view const&, int)
|
monkey531[P]llama/common/common.cpp
|
void common_kv_cache_dump_view_seqs(const llama_kv_cache_view & view, int row_size) {
static const char slot_chars[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
printf("=== Dumping KV cache. total cells %d, max sequences per cell %d, populated cells %d, total tokens in cache %d, largest empty slot=%d @ %d\n",
view.n_cells, view.n_seq_max, view.used_cells, view.token_count, view.max_contiguous, view.max_contiguous_idx);
std::unordered_map<llama_seq_id, size_t> seqs;
llama_kv_cache_view_cell * c_curr = view.cells;
llama_seq_id * cs_curr = view.cells_sequences;
for (int i = 0; i < view.n_cells; i++, c_curr++, cs_curr += view.n_seq_max) {
for (int j = 0; j < view.n_seq_max; j++) {
if (cs_curr[j] < 0) { continue; }
if (seqs.find(cs_curr[j]) == seqs.end()) {
if (seqs.size() + 1 >= sizeof(slot_chars)) { break; }
const size_t sz = seqs.size();
seqs[cs_curr[j]] = sz;
}
}
if (seqs.size() + 1 >= sizeof(slot_chars)) { break; }
}
printf("=== Sequence legend: ");
for (const auto & it : seqs) {
printf("%zu=%d, ", it.second, it.first);
}
printf("'+'=other sequence ids");
c_curr = view.cells;
cs_curr = view.cells_sequences;
for (int i = 0; i < view.n_cells; i++, c_curr++, cs_curr += view.n_seq_max) {
if (i % row_size == 0) {
printf("\n%5d: ", i);
}
for (int j = 0; j < view.n_seq_max; j++) {
if (cs_curr[j] >= 0) {
const auto & it = seqs.find(cs_curr[j]);
putchar(it != seqs.end() ? int(slot_chars[it->second]) : '+');
} else {
putchar('.');
}
}
putchar(' ');
}
printf("\n=== Done dumping\n");
}
|
O3
|
cpp
|
common_kv_cache_dump_view_seqs(llama_kv_cache_view const&, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %esi, 0x14(%rsp)
movq %rdi, %r14
movl (%rdi), %esi
movl 0x4(%rdi), %edx
movl 0xc(%rdi), %ecx
movl 0x8(%rdi), %r8d
movl 0x10(%rdi), %r9d
movl 0x14(%rdi), %eax
movl %eax, (%rsp)
leaq 0x79b0e(%rip), %rdi # 0x114bb9
movq $0x0, 0x18(%rsp)
xorl %eax, %eax
callq 0x1d080
leaq 0x50(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
cmpl $0x0, (%r14)
jle 0x9b16e
movq 0x20(%r14), %rbp
movl 0x4(%r14), %eax
leaq 0x20(%rsp), %r15
xorl %ebx, %ebx
testl %eax, %eax
jle 0x9b14a
movq %rbp, %r12
xorl %r13d, %r13d
cmpl $0x0, (%r12)
js 0x9b135
movq %r15, %rdi
movq %r12, %rsi
callq 0xde1be
testq %rax, %rax
jne 0x9b135
movq 0x38(%rsp), %rbx
leaq -0x3e(%rbx), %rax
cmpq $-0x3f, %rax
jb 0x9b14a
movq %r15, %rdi
movq %r12, %rsi
callq 0xde21a
movq %rbx, (%rax)
incq %r13
movslq 0x4(%r14), %rax
addq $0x4, %r12
cmpq %rax, %r13
jl 0x9b101
movq 0x38(%rsp), %rbx
leaq -0x3e(%rbx), %rax
cmpq $-0x3f, %rax
jb 0x9b16e
movq 0x18(%rsp), %rcx
incl %ecx
movslq 0x4(%r14), %rax
leaq (%rbp,%rax,4), %rbp
movq %rcx, 0x18(%rsp)
cmpl (%r14), %ecx
jl 0x9b0f7
leaq 0x79acf(%rip), %rdi # 0x114c44
xorl %eax, %eax
callq 0x1d080
movq 0x30(%rsp), %rbx
testq %rbx, %rbx
je 0x9b1a6
leaq 0x79acd(%rip), %r15 # 0x114c5a
movq 0x10(%rbx), %rsi
movl 0x8(%rbx), %edx
movq %r15, %rdi
xorl %eax, %eax
callq 0x1d080
movq (%rbx), %rbx
testq %rbx, %rbx
jne 0x9b18d
leaq 0x79ab6(%rip), %rdi # 0x114c63
xorl %eax, %eax
callq 0x1d080
cmpl $0x0, (%r14)
jle 0x9b256
movq 0x20(%r14), %r15
leaq 0x20(%rsp), %r12
xorl %ebp, %ebp
movl %ebp, %eax
cltd
idivl 0x14(%rsp)
testl %edx, %edx
jne 0x9b1e4
leaq 0x799d7(%rip), %rdi # 0x114bb2
movl %ebp, %esi
xorl %eax, %eax
callq 0x1d080
cmpl $0x0, 0x4(%r14)
jle 0x9b239
movq %r15, %r13
xorl %ebx, %ebx
cmpl $0x0, (%r13)
js 0x9b218
movq %r12, %rdi
movq %r13, %rsi
callq 0xde1be
testq %rax, %rax
je 0x9b21f
movq 0x10(%rax), %rax
leaq 0x7be7e(%rip), %rcx # 0x117090
movsbl (%rax,%rcx), %edi
jmp 0x9b224
movl $0x2e, %edi
jmp 0x9b224
movl $0x2b, %edi
callq 0x1e140
incq %rbx
movslq 0x4(%r14), %rax
addq $0x4, %r13
cmpq %rax, %rbx
jl 0x9b1f0
movl $0x20, %edi
callq 0x1e140
incl %ebp
movslq 0x4(%r14), %rax
leaq (%r15,%rax,4), %r15
cmpl (%r14), %ebp
jl 0x9b1c9
leaq 0x7bddf(%rip), %rdi # 0x11703c
callq 0x1e310
leaq 0x20(%rsp), %rdi
callq 0xdbfc4
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9b27f
jmp 0x9b27f
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xdbfc4
movq %rbx, %rdi
callq 0x1e660
|
_Z30common_kv_cache_dump_view_seqsRK19llama_kv_cache_viewi:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov [rsp+88h+var_74], esi
mov r14, rdi
mov esi, [rdi]
mov edx, [rdi+4]
mov ecx, [rdi+0Ch]
mov r8d, [rdi+8]
mov r9d, [rdi+10h]
mov eax, [rdi+14h]
mov [rsp+88h+var_88], eax
lea rdi, aDumpingKvCache_0; "=== Dumping KV cache. total cells %d, m"...
mov [rsp+88h+var_70], 0
xor eax, eax
call _printf
lea rax, [rsp+88h+var_38]
mov [rax-30h], rax
mov qword ptr [rax-28h], 1
xorps xmm0, xmm0
movups xmmword ptr [rax-20h], xmm0
mov dword ptr [rax-10h], 3F800000h
movups xmmword ptr [rax-8], xmm0
cmp dword ptr [r14], 0
jle loc_9B16E
mov rbp, [r14+20h]
mov eax, [r14+4]
lea r15, [rsp+88h+var_68]
xor ebx, ebx
loc_9B0F7:
test eax, eax
jle short loc_9B14A
mov r12, rbp
xor r13d, r13d
loc_9B101:
cmp dword ptr [r12], 0
js short loc_9B135
mov rdi, r15
mov rsi, r12
call _ZNSt10_HashtableIiSt4pairIKimESaIS2_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE4findERS1_; std::_Hashtable<int,std::pair<int const,ulong>,std::allocator<std::pair<int const,ulong>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(int const&)
test rax, rax
jnz short loc_9B135
mov rbx, [rsp+88h+var_50]
lea rax, [rbx-3Eh]
cmp rax, 0FFFFFFFFFFFFFFC1h
jb short loc_9B14A
mov rdi, r15
mov rsi, r12
call _ZNSt8__detail9_Map_baseIiSt4pairIKimESaIS3_ENS_10_Select1stESt8equal_toIiESt4hashIiENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixERS2_; std::__detail::_Map_base<int,std::pair<int const,ulong>,std::allocator<std::pair<int const,ulong>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](int const&)
mov [rax], rbx
loc_9B135:
inc r13
movsxd rax, dword ptr [r14+4]
add r12, 4
cmp r13, rax
jl short loc_9B101
mov rbx, [rsp+88h+var_50]
loc_9B14A:
lea rax, [rbx-3Eh]
cmp rax, 0FFFFFFFFFFFFFFC1h
jb short loc_9B16E
mov rcx, [rsp+88h+var_70]
inc ecx
movsxd rax, dword ptr [r14+4]
lea rbp, [rbp+rax*4+0]
mov [rsp+88h+var_70], rcx
cmp ecx, [r14]
jl short loc_9B0F7
loc_9B16E:
lea rdi, aSequenceLegend; "=== Sequence legend: "
xor eax, eax
call _printf
mov rbx, [rsp+88h+var_58]
test rbx, rbx
jz short loc_9B1A6
lea r15, aZuD; "%zu=%d, "
loc_9B18D:
mov rsi, [rbx+10h]
mov edx, [rbx+8]
mov rdi, r15
xor eax, eax
call _printf
mov rbx, [rbx]
test rbx, rbx
jnz short loc_9B18D
loc_9B1A6:
lea rdi, aOtherSequenceI; "'+'=other sequence ids"
xor eax, eax
call _printf
cmp dword ptr [r14], 0
jle loc_9B256
mov r15, [r14+20h]
lea r12, [rsp+88h+var_68]
xor ebp, ebp
loc_9B1C9:
mov eax, ebp
cdq
idiv [rsp+88h+var_74]
test edx, edx
jnz short loc_9B1E4
lea rdi, a5d; "\n%5d: "
mov esi, ebp
xor eax, eax
call _printf
loc_9B1E4:
cmp dword ptr [r14+4], 0
jle short loc_9B239
mov r13, r15
xor ebx, ebx
loc_9B1F0:
cmp dword ptr [r13+0], 0
js short loc_9B218
mov rdi, r12
mov rsi, r13
call _ZNSt10_HashtableIiSt4pairIKimESaIS2_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE4findERS1_; std::_Hashtable<int,std::pair<int const,ulong>,std::allocator<std::pair<int const,ulong>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(int const&)
test rax, rax
jz short loc_9B21F
mov rax, [rax+10h]
lea rcx, _ZZ30common_kv_cache_dump_view_seqsRK19llama_kv_cache_viewiE10slot_chars; "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabc"...
movsx edi, byte ptr [rax+rcx]
jmp short loc_9B224
loc_9B218:
mov edi, 2Eh ; '.'
jmp short loc_9B224
loc_9B21F:
mov edi, 2Bh ; '+'
loc_9B224:
call _putchar
inc rbx
movsxd rax, dword ptr [r14+4]
add r13, 4
cmp rbx, rax
jl short loc_9B1F0
loc_9B239:
mov edi, 20h ; ' '
call _putchar
inc ebp
movsxd rax, dword ptr [r14+4]
lea r15, [r15+rax*4]
cmp ebp, [r14]
jl loc_9B1C9
loc_9B256:
lea rdi, aDoneDumping; "\n=== Done dumping"
call _puts
lea rdi, [rsp+88h+var_68]
call _ZNSt10_HashtableIiSt4pairIKimESaIS2_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEED2Ev; std::_Hashtable<int,std::pair<int const,ulong>,std::allocator<std::pair<int const,ulong>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::~_Hashtable()
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_9B27F
jmp short $+2
loc_9B27F:
mov rbx, rax
lea rdi, [rsp+arg_18]
call _ZNSt10_HashtableIiSt4pairIKimESaIS2_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEED2Ev; std::_Hashtable<int,std::pair<int const,ulong>,std::allocator<std::pair<int const,ulong>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::~_Hashtable()
mov rdi, rbx
call __Unwind_Resume
|
long long common_kv_cache_dump_view_seqs(long long a1, int a2)
{
int *v3; // rbp
long long v4; // rax
long long v5; // rbx
int *v6; // r12
long long v7; // r13
long long *i; // rbx
int *v9; // r15
int v10; // ebp
int *v11; // r13
long long v12; // rbx
long long v13; // rax
long long v14; // rdi
int v16; // [rsp+18h] [rbp-70h]
_QWORD v17[2]; // [rsp+20h] [rbp-68h] BYREF
__int128 v18; // [rsp+30h] [rbp-58h]
int v19; // [rsp+40h] [rbp-48h]
__int128 v20; // [rsp+48h] [rbp-40h] BYREF
v16 = 0;
printf(
"=== Dumping KV cache. total cells %d, max sequences per cell %d, populated cells %d, total tokens in cache %d, large"
"st empty slot=%d @ %d\n",
*(_DWORD *)a1,
*(_DWORD *)(a1 + 4),
*(_DWORD *)(a1 + 12),
*(_DWORD *)(a1 + 8),
*(_DWORD *)(a1 + 16),
*(_DWORD *)(a1 + 20));
v17[0] = (char *)&v20 + 8;
v17[1] = 1LL;
v18 = 0LL;
v19 = 1065353216;
v20 = 0LL;
if ( *(int *)a1 > 0 )
{
v3 = *(int **)(a1 + 32);
LODWORD(v4) = *(_DWORD *)(a1 + 4);
v5 = 0LL;
do
{
if ( (int)v4 > 0 )
{
v6 = v3;
v7 = 0LL;
do
{
if ( *v6 >= 0
&& !std::_Hashtable<int,std::pair<int const,unsigned long>,std::allocator<std::pair<int const,unsigned long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(
v17,
v6) )
{
v5 = *((_QWORD *)&v18 + 1);
if ( (unsigned long long)(*((_QWORD *)&v18 + 1) - 62LL) < 0xFFFFFFFFFFFFFFC1LL )
goto LABEL_11;
*(_QWORD *)std::__detail::_Map_base<int,std::pair<int const,unsigned long>,std::allocator<std::pair<int const,unsigned long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](
v17,
v6) = v5;
}
++v7;
++v6;
}
while ( v7 < *(int *)(a1 + 4) );
v5 = *((_QWORD *)&v18 + 1);
}
LABEL_11:
if ( (unsigned long long)(v5 - 62) < 0xFFFFFFFFFFFFFFC1LL )
break;
v4 = *(int *)(a1 + 4);
v3 += v4;
++v16;
}
while ( v16 < *(_DWORD *)a1 );
}
printf("=== Sequence legend: ");
for ( i = (long long *)v18; i; i = (long long *)*i )
printf("%zu=%d, ", i[2], *((_DWORD *)i + 2));
printf("'+'=other sequence ids");
if ( *(int *)a1 > 0 )
{
v9 = *(int **)(a1 + 32);
v10 = 0;
do
{
if ( !(v10 % a2) )
printf("\n%5d: ", v10);
if ( *(int *)(a1 + 4) > 0 )
{
v11 = v9;
v12 = 0LL;
do
{
if ( *v11 < 0 )
{
v14 = 46LL;
}
else
{
v13 = std::_Hashtable<int,std::pair<int const,unsigned long>,std::allocator<std::pair<int const,unsigned long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(
v17,
v11);
if ( v13 )
v14 = (unsigned int)common_kv_cache_dump_view_seqs(llama_kv_cache_view const&,int)::slot_chars[*(_QWORD *)(v13 + 16)];
else
v14 = 43LL;
}
putchar(v14);
++v12;
++v11;
}
while ( v12 < *(int *)(a1 + 4) );
}
putchar(32LL);
++v10;
v9 += *(int *)(a1 + 4);
}
while ( v10 < *(_DWORD *)a1 );
}
puts("\n=== Done dumping");
return std::_Hashtable<int,std::pair<int const,unsigned long>,std::allocator<std::pair<int const,unsigned long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::~_Hashtable(v17);
}
|
common_kv_cache_dump_view_seqs:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV dword ptr [RSP + 0x14],ESI
MOV R14,RDI
MOV ESI,dword ptr [RDI]
MOV EDX,dword ptr [RDI + 0x4]
MOV ECX,dword ptr [RDI + 0xc]
MOV R8D,dword ptr [RDI + 0x8]
MOV R9D,dword ptr [RDI + 0x10]
MOV EAX,dword ptr [RDI + 0x14]
MOV dword ptr [RSP],EAX
LEA RDI,[0x214bb9]
MOV qword ptr [RSP + 0x18],0x0
XOR EAX,EAX
CALL 0x0011d080
LEA RAX,[RSP + 0x50]
MOV qword ptr [RAX + -0x30],RAX
MOV qword ptr [RAX + -0x28],0x1
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + -0x20],XMM0
MOV dword ptr [RAX + -0x10],0x3f800000
MOVUPS xmmword ptr [RAX + -0x8],XMM0
CMP dword ptr [R14],0x0
JLE 0x0019b16e
MOV RBP,qword ptr [R14 + 0x20]
MOV EAX,dword ptr [R14 + 0x4]
LEA R15,[RSP + 0x20]
XOR EBX,EBX
LAB_0019b0f7:
TEST EAX,EAX
JLE 0x0019b14a
MOV R12,RBP
XOR R13D,R13D
LAB_0019b101:
CMP dword ptr [R12],0x0
JS 0x0019b135
LAB_0019b108:
MOV RDI,R15
MOV RSI,R12
CALL 0x001de1be
TEST RAX,RAX
JNZ 0x0019b135
MOV RBX,qword ptr [RSP + 0x38]
LEA RAX,[RBX + -0x3e]
CMP RAX,-0x3f
JC 0x0019b14a
LAB_0019b127:
MOV RDI,R15
MOV RSI,R12
CALL 0x001de21a
MOV qword ptr [RAX],RBX
LAB_0019b135:
INC R13
MOVSXD RAX,dword ptr [R14 + 0x4]
ADD R12,0x4
CMP R13,RAX
JL 0x0019b101
MOV RBX,qword ptr [RSP + 0x38]
LAB_0019b14a:
LEA RAX,[RBX + -0x3e]
CMP RAX,-0x3f
JC 0x0019b16e
MOV RCX,qword ptr [RSP + 0x18]
INC ECX
MOVSXD RAX,dword ptr [R14 + 0x4]
LEA RBP,[RBP + RAX*0x4]
MOV qword ptr [RSP + 0x18],RCX
CMP ECX,dword ptr [R14]
JL 0x0019b0f7
LAB_0019b16e:
LEA RDI,[0x214c44]
XOR EAX,EAX
CALL 0x0011d080
MOV RBX,qword ptr [RSP + 0x30]
TEST RBX,RBX
JZ 0x0019b1a6
LEA R15,[0x214c5a]
LAB_0019b18d:
MOV RSI,qword ptr [RBX + 0x10]
MOV EDX,dword ptr [RBX + 0x8]
MOV RDI,R15
XOR EAX,EAX
CALL 0x0011d080
MOV RBX,qword ptr [RBX]
TEST RBX,RBX
JNZ 0x0019b18d
LAB_0019b1a6:
LEA RDI,[0x214c63]
XOR EAX,EAX
CALL 0x0011d080
CMP dword ptr [R14],0x0
JLE 0x0019b256
MOV R15,qword ptr [R14 + 0x20]
LEA R12,[RSP + 0x20]
XOR EBP,EBP
LAB_0019b1c9:
MOV EAX,EBP
CDQ
IDIV dword ptr [RSP + 0x14]
TEST EDX,EDX
JNZ 0x0019b1e4
LEA RDI,[0x214bb2]
MOV ESI,EBP
XOR EAX,EAX
CALL 0x0011d080
LAB_0019b1e4:
CMP dword ptr [R14 + 0x4],0x0
JLE 0x0019b239
MOV R13,R15
XOR EBX,EBX
LAB_0019b1f0:
CMP dword ptr [R13],0x0
JS 0x0019b218
LAB_0019b1f7:
MOV RDI,R12
MOV RSI,R13
CALL 0x001de1be
LAB_0019b202:
TEST RAX,RAX
JZ 0x0019b21f
MOV RAX,qword ptr [RAX + 0x10]
LEA RCX,[0x217090]
MOVSX EDI,byte ptr [RAX + RCX*0x1]
JMP 0x0019b224
LAB_0019b218:
MOV EDI,0x2e
JMP 0x0019b224
LAB_0019b21f:
MOV EDI,0x2b
LAB_0019b224:
CALL 0x0011e140
INC RBX
MOVSXD RAX,dword ptr [R14 + 0x4]
ADD R13,0x4
CMP RBX,RAX
JL 0x0019b1f0
LAB_0019b239:
MOV EDI,0x20
CALL 0x0011e140
INC EBP
MOVSXD RAX,dword ptr [R14 + 0x4]
LEA R15,[R15 + RAX*0x4]
CMP EBP,dword ptr [R14]
JL 0x0019b1c9
LAB_0019b256:
LEA RDI,[0x21703c]
CALL 0x0011e310
LEA RDI,[RSP + 0x20]
CALL 0x001dbfc4
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* common_kv_cache_dump_view_seqs(llama_kv_cache_view const&, int) */
void common_kv_cache_dump_view_seqs(llama_kv_cache_view *param_1,int param_2)
{
int8 *puVar1;
long lVar2;
long *plVar3;
ulong uVar4;
int iVar5;
long lVar6;
uint uVar7;
int *piVar8;
int *piVar9;
long lVar10;
int8 *local_68;
int8 local_60;
int8 *local_58;
long lStack_50;
int4 local_48;
int8 local_40;
int8 uStack_38;
iVar5 = 0;
printf("=== Dumping KV cache. total cells %d, max sequences per cell %d, populated cells %d, total tokens in cache %d, largest empty slot=%d @ %d\n"
,(ulong)*(uint *)param_1,(ulong)*(uint *)(param_1 + 4),(ulong)*(uint *)(param_1 + 0xc),
(ulong)*(uint *)(param_1 + 8),(ulong)*(uint *)(param_1 + 0x10),
*(int4 *)(param_1 + 0x14));
local_68 = &uStack_38;
local_60 = 1;
local_58 = (int8 *)0x0;
lStack_50 = 0;
local_48 = 0x3f800000;
local_40 = 0;
uStack_38 = 0;
if (0 < *(int *)param_1) {
piVar8 = *(int **)(param_1 + 0x20);
uVar4 = (ulong)*(uint *)(param_1 + 4);
lVar6 = 0;
do {
if (0 < (int)uVar4) {
lVar10 = 0;
piVar9 = piVar8;
do {
/* try { // try from 0019b108 to 0019b112 has its CatchHandler @ 0019b27d */
if ((-1 < *piVar9) &&
(lVar2 = std::
_Hashtable<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>
::find((_Hashtable<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>
*)&local_68,piVar9), lVar6 = lStack_50, lVar2 == 0)) {
if (lStack_50 - 0x3eU < 0xffffffffffffffc1) break;
/* try { // try from 0019b127 to 0019b131 has its CatchHandler @ 0019b27b */
plVar3 = (long *)std::__detail::
_Map_base<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>
::operator[]((_Map_base<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>
*)&local_68,piVar9);
*plVar3 = lVar6;
}
lVar10 = lVar10 + 1;
piVar9 = piVar9 + 1;
lVar6 = lStack_50;
} while (lVar10 < *(int *)(param_1 + 4));
}
if (lVar6 - 0x3eU < 0xffffffffffffffc1) break;
iVar5 = iVar5 + 1;
uVar4 = (ulong)*(int *)(param_1 + 4);
piVar8 = piVar8 + uVar4;
} while (iVar5 < *(int *)param_1);
}
printf("=== Sequence legend: ");
for (puVar1 = local_58; puVar1 != (int8 *)0x0; puVar1 = (int8 *)*puVar1) {
printf("%zu=%d, ",puVar1[2],(ulong)*(uint *)(puVar1 + 1));
}
printf("\'+\'=other sequence ids");
if (0 < *(int *)param_1) {
piVar8 = *(int **)(param_1 + 0x20);
uVar7 = 0;
do {
if ((int)uVar7 % param_2 == 0) {
printf("\n%5d: ",(ulong)uVar7);
}
if (0 < *(int *)(param_1 + 4)) {
lVar6 = 0;
piVar9 = piVar8;
do {
if (*piVar9 < 0) {
iVar5 = 0x2e;
}
else {
/* try { // try from 0019b1f7 to 0019b201 has its CatchHandler @ 0019b27f */
lVar10 = std::
_Hashtable<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>
::find((_Hashtable<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>
*)&local_68,piVar9);
if (lVar10 == 0) {
iVar5 = 0x2b;
}
else {
iVar5 = (int)"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
[*(long *)(lVar10 + 0x10)];
}
}
putchar(iVar5);
lVar6 = lVar6 + 1;
piVar9 = piVar9 + 1;
} while (lVar6 < *(int *)(param_1 + 4));
}
putchar(0x20);
uVar7 = uVar7 + 1;
piVar8 = piVar8 + *(int *)(param_1 + 4);
} while ((int)uVar7 < *(int *)param_1);
}
puts("\n=== Done dumping");
std::
_Hashtable<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>
::~_Hashtable((_Hashtable<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>
*)&local_68);
return;
}
|
Subsets and Splits
C++ Functions Using STL
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ STL Function Queries
Filters C++ code examples that use standard library containers and algorithms, helping identify common programming patterns and library usage in code generation tasks.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.