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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
35,100 | google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::~MemoryOutputStream() | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/command_line_interface.cc | CommandLineInterface::MemoryOutputStream::~MemoryOutputStream() {
// Make sure all data has been written.
inner_.reset();
// Insert into the directory.
auto pair = directory_->files_.insert({filename_, ""});
auto it = pair.first;
bool already_present = !pair.second;
if (insertion_point_.empty()) {
// This was just a regular Open().
if (already_present) {
if (append_mode_) {
it->second.append(data_);
} else {
std::cerr << filename_ << ": Tried to write the same file twice."
<< std::endl;
directory_->had_error_ = true;
}
return;
}
it->second.swap(data_);
} else {
// This was an OpenForInsert().
// If the data doesn't end with a clean line break, add one.
if (!data_.empty() && data_[data_.size() - 1] != '\n') {
data_.push_back('\n');
}
// Find the file we are going to insert into.
if (!already_present) {
std::cerr << filename_
<< ": Tried to insert into file that doesn't exist."
<< std::endl;
directory_->had_error_ = true;
return;
}
std::string* target = &it->second;
// Find the insertion point.
std::string magic_string =
strings::Substitute("@@protoc_insertion_point($0)", insertion_point_);
std::string::size_type pos = target->find(magic_string);
if (pos == std::string::npos) {
std::cerr << filename_ << ": insertion point \"" << insertion_point_
<< "\" not found." << std::endl;
directory_->had_error_ = true;
return;
}
if ((pos > 3) && (target->substr(pos - 3, 2) == "/*")) {
// Support for inline "/* @@protoc_insertion_point() */"
pos = pos - 3;
} else {
// Seek backwards to the beginning of the line, which is where we will
// insert the data. Note that this has the effect of pushing the
// insertion point down, so the data is inserted before it. This is
// intentional because it means that multiple insertions at the same point
// will end up in the expected order in the final output.
pos = target->find_last_of('\n', pos);
if (pos == std::string::npos) {
// Insertion point is on the first line.
pos = 0;
} else {
// Advance to character after '\n'.
++pos;
}
}
// Extract indent.
std::string indent_(*target, pos,
target->find_first_not_of(" \t", pos) - pos);
if (indent_.empty()) {
// No indent. This makes things easier.
target->insert(pos, data_);
UpdateMetadata(data_, pos, data_.size(), 0);
} else {
// Calculate how much space we need.
int indent_size = 0;
for (int i = 0; i < data_.size(); i++) {
if (data_[i] == '\n') indent_size += indent_.size();
}
// Make a hole for it.
target->insert(pos, data_.size() + indent_size, '\0');
// Now copy in the data.
std::string::size_type data_pos = 0;
char* target_ptr = ::google::protobuf::string_as_array(target) + pos;
while (data_pos < data_.size()) {
// Copy indent.
memcpy(target_ptr, indent_.data(), indent_.size());
target_ptr += indent_.size();
// Copy line from data_.
// We already guaranteed that data_ ends with a newline (above), so this
// search can't fail.
std::string::size_type line_length =
data_.find_first_of('\n', data_pos) + 1 - data_pos;
memcpy(target_ptr, data_.data() + data_pos, line_length);
target_ptr += line_length;
data_pos += line_length;
}
UpdateMetadata(data_, pos, data_.size() + indent_size, indent_.size());
GOOGLE_CHECK_EQ(target_ptr,
::google::protobuf::string_as_array(target) + pos + data_.size() + indent_size);
}
}
} | O0 | cpp | google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::~MemoryOutputStream():
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x2ba90
movq 0x8(%rsp), %rdi
callq 0x21620
addq $0x18, %rsp
retq
nopw (%rax,%rax)
| _ZN6google8protobuf8compiler20CommandLineInterface18MemoryOutputStreamD0Ev:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov rdi, [rsp+18h+var_8]; this
mov [rsp+18h+var_10], rdi
call _ZN6google8protobuf8compiler20CommandLineInterface18MemoryOutputStreamD2Ev; google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::~MemoryOutputStream()
mov rdi, [rsp+18h+var_10]; void *
call __ZdlPv; operator delete(void *)
add rsp, 18h
retn
| void google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::~MemoryOutputStream(
google::protobuf::compiler::CommandLineInterface::MemoryOutputStream *this)
{
google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::~MemoryOutputStream(this);
operator delete(this);
}
| ~MemoryOutputStream:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV RDI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x0012ba90
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00121620
ADD RSP,0x18
RET
|
/* google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::~MemoryOutputStream() */
void __thiscall
google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::~MemoryOutputStream
(MemoryOutputStream *this)
{
~MemoryOutputStream(this);
operator_delete(this);
return;
}
| |
35,101 | google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::~MemoryOutputStream() | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/command_line_interface.cc | CommandLineInterface::MemoryOutputStream::~MemoryOutputStream() {
// Make sure all data has been written.
inner_.reset();
// Insert into the directory.
auto pair = directory_->files_.insert({filename_, ""});
auto it = pair.first;
bool already_present = !pair.second;
if (insertion_point_.empty()) {
// This was just a regular Open().
if (already_present) {
if (append_mode_) {
it->second.append(data_);
} else {
std::cerr << filename_ << ": Tried to write the same file twice."
<< std::endl;
directory_->had_error_ = true;
}
return;
}
it->second.swap(data_);
} else {
// This was an OpenForInsert().
// If the data doesn't end with a clean line break, add one.
if (!data_.empty() && data_[data_.size() - 1] != '\n') {
data_.push_back('\n');
}
// Find the file we are going to insert into.
if (!already_present) {
std::cerr << filename_
<< ": Tried to insert into file that doesn't exist."
<< std::endl;
directory_->had_error_ = true;
return;
}
std::string* target = &it->second;
// Find the insertion point.
std::string magic_string =
strings::Substitute("@@protoc_insertion_point($0)", insertion_point_);
std::string::size_type pos = target->find(magic_string);
if (pos == std::string::npos) {
std::cerr << filename_ << ": insertion point \"" << insertion_point_
<< "\" not found." << std::endl;
directory_->had_error_ = true;
return;
}
if ((pos > 3) && (target->substr(pos - 3, 2) == "/*")) {
// Support for inline "/* @@protoc_insertion_point() */"
pos = pos - 3;
} else {
// Seek backwards to the beginning of the line, which is where we will
// insert the data. Note that this has the effect of pushing the
// insertion point down, so the data is inserted before it. This is
// intentional because it means that multiple insertions at the same point
// will end up in the expected order in the final output.
pos = target->find_last_of('\n', pos);
if (pos == std::string::npos) {
// Insertion point is on the first line.
pos = 0;
} else {
// Advance to character after '\n'.
++pos;
}
}
// Extract indent.
std::string indent_(*target, pos,
target->find_first_not_of(" \t", pos) - pos);
if (indent_.empty()) {
// No indent. This makes things easier.
target->insert(pos, data_);
UpdateMetadata(data_, pos, data_.size(), 0);
} else {
// Calculate how much space we need.
int indent_size = 0;
for (int i = 0; i < data_.size(); i++) {
if (data_[i] == '\n') indent_size += indent_.size();
}
// Make a hole for it.
target->insert(pos, data_.size() + indent_size, '\0');
// Now copy in the data.
std::string::size_type data_pos = 0;
char* target_ptr = ::google::protobuf::string_as_array(target) + pos;
while (data_pos < data_.size()) {
// Copy indent.
memcpy(target_ptr, indent_.data(), indent_.size());
target_ptr += indent_.size();
// Copy line from data_.
// We already guaranteed that data_ ends with a newline (above), so this
// search can't fail.
std::string::size_type line_length =
data_.find_first_of('\n', data_pos) + 1 - data_pos;
memcpy(target_ptr, data_.data() + data_pos, line_length);
target_ptr += line_length;
data_pos += line_length;
}
UpdateMetadata(data_, pos, data_.size() + indent_size, indent_.size());
GOOGLE_CHECK_EQ(target_ptr,
::google::protobuf::string_as_array(target) + pos + data_.size() + indent_size);
}
}
} | O3 | cpp | google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::~MemoryOutputStream():
pushq %rbx
movq %rdi, %rbx
callq 0x26dfc
movq %rbx, %rdi
popq %rbx
jmp 0x1f4a0
| _ZN6google8protobuf8compiler20CommandLineInterface18MemoryOutputStreamD0Ev:
push rbx
mov rbx, rdi
call _ZN6google8protobuf8compiler20CommandLineInterface18MemoryOutputStreamD2Ev; google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::~MemoryOutputStream()
mov rdi, rbx; void *
pop rbx
jmp __ZdlPv; operator delete(void *)
| void google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::~MemoryOutputStream(
google::protobuf::compiler::CommandLineInterface::MemoryOutputStream *this)
{
google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::~MemoryOutputStream(this);
operator delete(this);
}
| ~MemoryOutputStream:
PUSH RBX
MOV RBX,RDI
CALL 0x00126dfc
MOV RDI,RBX
POP RBX
JMP 0x0011f4a0
|
/* google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::~MemoryOutputStream() */
void __thiscall
google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::~MemoryOutputStream
(MemoryOutputStream *this)
{
~MemoryOutputStream(this);
operator_delete(this);
return;
}
| |
35,102 | blst_p1_mult | corpus-core[P]colibri-stateless/build_O1/_deps/blst-src/src/e1.c | void blst_p1_mult(POINTonE1 *out, const POINTonE1 *a,
const byte *scalar, size_t nbits)
{
if (nbits < 176) {
if (nbits)
POINTonE1_mult_w4(out, a, scalar, nbits);
else
vec_zero(out, sizeof(*out));
} else if (nbits <= 256) {
union { vec256 l; pow256 s; } val;
size_t i, j, top, mask = (size_t)0 - 1;
/* this is not about constant-time-ness, but branch optimization */
for (top = (nbits + 7)/8, i=0, j=0; i<sizeof(val.s);) {
val.s[i++] = scalar[j] & mask;
mask = 0 - ((i - top) >> (8*sizeof(top)-1));
j += 1 & mask;
}
if (check_mod_256(val.s, BLS12_381_r)) /* z^4 is the formal limit */
POINTonE1_mult_glv(out, a, val.s);
else /* should never be the case, added for formal completeness */
POINTonE1_mult_w5(out, a, scalar, nbits);
vec_zero(val.l, sizeof(val));
} else { /* should never be the case, added for formal completeness */
POINTonE1_mult_w5(out, a, scalar, nbits);
}
} | O1 | c | blst_p1_mult:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
cmpq $0xaf, %rcx
ja 0x1b01f
testq %r14, %r14
je 0x1b09e
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1b0e9
cmpq $0x100, %r14 # imm = 0x100
ja 0x1b081
leaq 0x7(%r14), %rax
shrq $0x3, %rax
movb $-0x1, %sil
movl $0x1, %ecx
xorl %edx, %edx
andb (%r12,%rdx), %sil
movb %sil, -0x41(%rbp,%rcx)
xorl %esi, %esi
cmpq %rax, %rcx
setb %sil
addq %rsi, %rdx
negb %sil
incq %rcx
cmpq $0x21, %rcx
jne 0x1b03a
leaq 0x2485e(%rip), %rsi # 0x3f8c0
leaq -0x40(%rbp), %rdi
callq 0x367c0
testq %rax, %rax
je 0x1b0b3
leaq -0x40(%rbp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1b32d
jmp 0x1b0c4
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1b770
xorl %eax, %eax
movq $0x0, (%rbx,%rax,8)
incq %rax
cmpq $0x12, %rax
jne 0x1b0a0
jmp 0x1b0dc
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x1b770
xorl %eax, %eax
movq $0x0, -0x40(%rbp,%rax,8)
incq %rax
cmpq $0x4, %rax
jne 0x1b0c6
leaq -0x40(%rbp), %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| blst_p1_mult:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 20h
mov r14, rcx
mov r12, rdx
mov r15, rsi
mov rbx, rdi
cmp rcx, 0AFh
ja short loc_1B01F
test r14, r14
jz loc_1B09E
mov rdi, rbx
mov rsi, r15
mov rdx, r12
mov rcx, r14
add rsp, 20h
pop rbx
pop r12
pop r14
pop r15
pop rbp
jmp POINTonE1_mult_w4
loc_1B01F:
cmp r14, 100h
ja short loc_1B081
lea rax, [r14+7]
shr rax, 3
mov sil, 0FFh
mov ecx, 1
xor edx, edx
loc_1B03A:
and sil, [r12+rdx]
mov [rbp+rcx+var_41], sil
xor esi, esi
cmp rcx, rax
setb sil
add rdx, rsi
neg sil
inc rcx
cmp rcx, 21h ; '!'
jnz short loc_1B03A
lea rsi, BLS12_381_r
lea rdi, [rbp+var_40]
call check_mod_256
test rax, rax
jz short loc_1B0B3
lea rdx, [rbp+var_40]
mov rdi, rbx
mov rsi, r15
call POINTonE1_mult_glv
jmp short loc_1B0C4
loc_1B081:
mov rdi, rbx
mov rsi, r15
mov rdx, r12
mov rcx, r14
add rsp, 20h
pop rbx
pop r12
pop r14
pop r15
pop rbp
jmp POINTonE1_mult_w5
loc_1B09E:
xor eax, eax
loc_1B0A0:
mov qword ptr [rbx+rax*8], 0
inc rax
cmp rax, 12h
jnz short loc_1B0A0
jmp short loc_1B0DC
loc_1B0B3:
mov rdi, rbx
mov rsi, r15
mov rdx, r12
mov rcx, r14
call POINTonE1_mult_w5
loc_1B0C4:
xor eax, eax
loc_1B0C6:
mov [rbp+rax*8+var_40], 0
inc rax
cmp rax, 4
jnz short loc_1B0C6
lea rax, [rbp+var_40]
loc_1B0DC:
add rsp, 20h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long blst_p1_mult(long long a1, long long a2, long long a3, unsigned long long a4)
{
long long result; // rax
unsigned long long v8; // rax
char v9; // si
unsigned long long v10; // rcx
long long v11; // rdx
long long v12; // rsi
long long i; // rax
char v14; // [rsp+1h] [rbp-41h]
_QWORD v15[8]; // [rsp+2h] [rbp-40h] BYREF
if ( a4 > 0xAF )
{
if ( a4 > 0x100 )
{
return POINTonE1_mult_w5(a1, a2, a3, a4);
}
else
{
v8 = (a4 + 7) >> 3;
v9 = -1;
v10 = 1LL;
v11 = 0LL;
do
{
*(&v14 + v10) = *(_BYTE *)(a3 + v11) & v9;
v12 = v10 < v8;
v11 += v12;
v9 = -(char)v12;
++v10;
}
while ( v10 != 33 );
if ( check_mod_256(v15, &BLS12_381_r, v11) )
POINTonE1_mult_glv(a1, a2, v15);
else
POINTonE1_mult_w5(a1, a2, a3, a4);
for ( i = 0LL; i != 4; ++i )
v15[i] = 0LL;
return (long long)v15;
}
}
else if ( a4 )
{
return POINTonE1_mult_w4(a1, a2, a3, a4);
}
else
{
for ( result = 0LL; result != 18; ++result )
*(_QWORD *)(a1 + 8 * result) = 0LL;
}
return result;
}
| blst_p1_mult:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x20
MOV R14,RCX
MOV R12,RDX
MOV R15,RSI
MOV RBX,RDI
CMP RCX,0xaf
JA 0x0011b01f
TEST R14,R14
JZ 0x0011b09e
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R12
MOV RCX,R14
ADD RSP,0x20
POP RBX
POP R12
POP R14
POP R15
POP RBP
JMP 0x0011b0e9
LAB_0011b01f:
CMP R14,0x100
JA 0x0011b081
LEA RAX,[R14 + 0x7]
SHR RAX,0x3
MOV SIL,0xff
MOV ECX,0x1
XOR EDX,EDX
LAB_0011b03a:
AND SIL,byte ptr [R12 + RDX*0x1]
MOV byte ptr [RBP + RCX*0x1 + -0x41],SIL
XOR ESI,ESI
CMP RCX,RAX
SETC SIL
ADD RDX,RSI
NEG SIL
INC RCX
CMP RCX,0x21
JNZ 0x0011b03a
LEA RSI,[0x13f8c0]
LEA RDI,[RBP + -0x40]
CALL 0x001367c0
TEST RAX,RAX
JZ 0x0011b0b3
LEA RDX,[RBP + -0x40]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011b32d
JMP 0x0011b0c4
LAB_0011b081:
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R12
MOV RCX,R14
ADD RSP,0x20
POP RBX
POP R12
POP R14
POP R15
POP RBP
JMP 0x0011b770
LAB_0011b09e:
XOR EAX,EAX
LAB_0011b0a0:
MOV qword ptr [RBX + RAX*0x8],0x0
INC RAX
CMP RAX,0x12
JNZ 0x0011b0a0
JMP 0x0011b0dc
LAB_0011b0b3:
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R12
MOV RCX,R14
CALL 0x0011b770
LAB_0011b0c4:
XOR EAX,EAX
LAB_0011b0c6:
MOV qword ptr [RBP + RAX*0x8 + -0x40],0x0
INC RAX
CMP RAX,0x4
JNZ 0x0011b0c6
LEA RAX,[RBP + -0x40]
LAB_0011b0dc:
ADD RSP,0x20
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
byte * blst_p1_mult(long param_1,int8 param_2,long param_3,ulong param_4)
{
byte *pbVar1;
long lVar2;
ulong uVar3;
byte bVar4;
bool bVar5;
int8 uStack_50;
byte local_48 [32];
if (param_4 < 0xb0) {
if (param_4 != 0) {
pbVar1 = (byte *)POINTonE1_mult_w4(param_1,param_2,param_3,param_4);
return pbVar1;
}
lVar2 = 0;
do {
*(int8 *)(param_1 + lVar2 * 8) = 0;
lVar2 = lVar2 + 1;
} while (lVar2 != 0x12);
pbVar1 = (byte *)0x12;
}
else {
if (0x100 < param_4) {
pbVar1 = (byte *)POINTonE1_mult_w5(param_1,param_2,param_3,param_4);
return pbVar1;
}
bVar4 = 0xff;
uVar3 = 1;
lVar2 = 0;
do {
local_48[uVar3 - 1] = bVar4 & *(byte *)(param_3 + lVar2);
bVar5 = uVar3 < param_4 + 7 >> 3;
lVar2 = lVar2 + (ulong)bVar5;
bVar4 = -bVar5;
uVar3 = uVar3 + 1;
} while (uVar3 != 0x21);
uStack_50 = 0x11b06b;
lVar2 = check_mod_256(local_48,BLS12_381_r);
if (lVar2 == 0) {
uStack_50 = 0x11b0c4;
POINTonE1_mult_w5(param_1,param_2,param_3,param_4);
}
else {
uStack_50 = 0x11b07f;
POINTonE1_mult_glv(param_1,param_2,local_48);
}
lVar2 = 0;
do {
pbVar1 = local_48 + lVar2 * 8;
pbVar1[0] = 0;
pbVar1[1] = 0;
pbVar1[2] = 0;
pbVar1[3] = 0;
pbVar1[4] = 0;
pbVar1[5] = 0;
pbVar1[6] = 0;
pbVar1[7] = 0;
lVar2 = lVar2 + 1;
} while (lVar2 != 4);
pbVar1 = local_48;
}
return pbVar1;
}
| |
35,103 | void nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, unsigned int, 0>(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, unsigned int&) | msxemulator/build_O3/_deps/picotool-src/lib/nlohmann_json/single_include/nlohmann/json.hpp | inline void from_json(const BasicJsonType& j, ArithmeticType& val)
{
switch (static_cast<value_t>(j))
{
case value_t::number_unsigned:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>());
break;
}
case value_t::number_integer:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
break;
}
case value_t::number_float:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
break;
}
case value_t::boolean:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::boolean_t*>());
break;
}
case value_t::null:
case value_t::object:
case value_t::array:
case value_t::string:
case value_t::binary:
case value_t::discarded:
default:
JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j));
}
} | O3 | cpp | void nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, unsigned int, 0>(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, unsigned int&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
movzbl (%rdi), %eax
addl $-0x4, %eax
cmpl $0x3, %eax
ja 0x70cc6
leaq 0x33319(%rip), %rcx # 0xa3fb8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x8(%r14), %eax
jmp 0x70cbb
movzbl 0x8(%r14), %eax
jmp 0x70cbb
cvttsd2si 0x8(%r14), %rax
movl %eax, (%rsi)
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x20, %edi
callq 0xf260
movq %rax, %rbx
movq %r14, %rdi
callq 0x56892
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x35450(%rip), %rsi # 0xa613a
leaq 0x10(%rsp), %rdi
callq 0x56809
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x12e, %esi # imm = 0x12E
movq %r14, %rcx
callq 0x5663e
xorl %ebp, %ebp
leaq 0x6fcfb(%rip), %rsi # 0xe0a10
leaq -0x9d60(%rip), %rdx # 0x66fbc
movq %rbx, %rdi
callq 0xf790
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x70d42
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xf470
testb %bpl, %bpl
jne 0x70d4c
jmp 0x70d54
movq %rax, %r14
movq %rbx, %rdi
callq 0xf360
movq %r14, %rdi
callq 0xf7d0
| _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEjTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_:
push rbp; char
push r14; int
push rbx; __int64
sub rsp, 30h
mov r14, rdi
movzx eax, byte ptr [rdi]
add eax, 0FFFFFFFCh; switch 4 cases
cmp eax, 3
ja short def_70CA6; jumptable 0000000000070CA6 default case
lea rcx, jpt_70CA6
movsxd rax, ds:(jpt_70CA6 - 0A3FB8h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_70CA8:
mov eax, [r14+8]; jumptable 0000000000070CA6 cases 5,6
jmp short loc_70CBB
loc_70CAE:
movzx eax, byte ptr [r14+8]; jumptable 0000000000070CA6 case 4
jmp short loc_70CBB
loc_70CB5:
cvttsd2si rax, qword ptr [r14+8]; jumptable 0000000000070CA6 case 7
loc_70CBB:
mov [rsi], eax
add rsp, 30h
pop rbx
pop r14
pop rbp
retn
def_70CA6:
mov edi, 20h ; ' '; jumptable 0000000000070CA6 default case
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+48h+var_40]
mov [rdx], rax
lea rsi, aTypeMustBeNumb; "type must be number, but is "
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 12Eh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+48h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_70D42
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_70D42:
test bpl, bpl
jnz short loc_70D4C
jmp short loc_70D54
mov r14, rax
loc_70D4C:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_70D54:
mov rdi, r14
call __Unwind_Resume
| long long ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEjTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_(
unsigned __int8 *a1,
_DWORD *a2)
{
long long result; // rax
nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx
long long v4; // rcx
long long v5; // r8
long long v6; // r9
char *v7; // [rsp+8h] [rbp-40h] BYREF
_QWORD v8[2]; // [rsp+10h] [rbp-38h] BYREF
switch ( *a1 )
{
case 4u:
result = a1[8];
break;
case 5u:
case 6u:
result = *((unsigned int *)a1 + 2);
break;
case 7u:
result = (unsigned int)(int)*((double *)a1 + 1);
break;
default:
exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
v7 = nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name(a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(
(long long)v8,
(long long)"type must be number, but is ",
&v7,
v4,
v5,
v6);
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
exception,
302,
v8);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
*a2 = result;
return result;
}
| _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEjTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RDI
MOVZX EAX,byte ptr [RDI]
ADD EAX,-0x4
CMP EAX,0x3
JA 0x00170cc6
LEA RCX,[0x1a3fb8]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_5:
MOV EAX,dword ptr [R14 + 0x8]
JMP 0x00170cbb
caseD_4:
MOVZX EAX,byte ptr [R14 + 0x8]
JMP 0x00170cbb
caseD_7:
CVTTSD2SI RAX,qword ptr [R14 + 0x8]
LAB_00170cbb:
MOV dword ptr [RSI],EAX
ADD RSP,0x30
POP RBX
POP R14
POP RBP
RET
default:
MOV EDI,0x20
CALL 0x0010f260
MOV RBX,RAX
MOV RDI,R14
CALL 0x00156892
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_00170ce3:
LEA RSI,[0x1a613a]
LEA RDI,[RSP + 0x10]
CALL 0x00156809
MOV BPL,0x1
LAB_00170cf7:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x12e
MOV RCX,R14
CALL 0x0015663e
XOR EBP,EBP
LEA RSI,[0x1e0a10]
LEA RDX,[0x166fbc]
MOV RDI,RBX
CALL 0x0010f790
|
void _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEjTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_
(basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_1,uint *param_2)
{
uint uVar1;
int8 uVar2;
char *local_40;
detail local_38 [32];
switch(*param_1) {
case (basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x4:
uVar1 = (uint)(byte)param_1[8];
break;
case (basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x5:
case (basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x6:
uVar1 = *(uint *)(param_1 + 8);
break;
case (basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x7:
uVar1 = (uint)(long)*(double *)(param_1 + 8);
break;
default:
uVar2 = __cxa_allocate_exception(0x20);
local_40 = (char *)nlohmann::json_abi_v3_11_3::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name(param_1);
/* try { // try from 00170ce3 to 00170cf3 has its CatchHandler @ 00170d49 */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[29],char_const*>
(local_38,"type must be number, but is ",&local_40);
/* try { // try from 00170cf7 to 00170d23 has its CatchHandler @ 00170d24 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar2,0x12e,local_38,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
*param_2 = uVar1;
return;
}
| |
35,104 | js_typed_array_fill | bluesky950520[P]quickjs/quickjs.c | static JSValue js_typed_array_fill(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSObject *p;
int len, k, final, shift;
uint64_t v64;
p = get_typed_array(ctx, this_val);
if (!p)
return JS_EXCEPTION;
if (typed_array_is_oob(p))
return JS_ThrowTypeErrorArrayBufferOOB(ctx);
len = p->u.array.count;
if (p->class_id == JS_CLASS_UINT8C_ARRAY) {
int32_t v;
if (JS_ToUint8ClampFree(ctx, &v, js_dup(argv[0])))
return JS_EXCEPTION;
v64 = v;
} else if (p->class_id <= JS_CLASS_UINT32_ARRAY) {
uint32_t v;
if (JS_ToUint32(ctx, &v, argv[0]))
return JS_EXCEPTION;
v64 = v;
} else
if (p->class_id <= JS_CLASS_BIG_UINT64_ARRAY) {
if (JS_ToBigInt64(ctx, (int64_t *)&v64, argv[0]))
return JS_EXCEPTION;
} else {
double d;
if (JS_ToFloat64(ctx, &d, argv[0]))
return JS_EXCEPTION;
if (p->class_id == JS_CLASS_FLOAT16_ARRAY) {
v64 = tofp16(d);
} else if (p->class_id == JS_CLASS_FLOAT32_ARRAY) {
union {
float f;
uint32_t u32;
} u;
u.f = d;
v64 = u.u32;
} else {
JSFloat64Union u;
u.d = d;
v64 = u.u64;
}
}
k = 0;
if (argc > 1) {
if (JS_ToInt32Clamp(ctx, &k, argv[1], 0, len, len))
return JS_EXCEPTION;
}
final = len;
if (argc > 2 && !JS_IsUndefined(argv[2])) {
if (JS_ToInt32Clamp(ctx, &final, argv[2], 0, len, len))
return JS_EXCEPTION;
}
if (typed_array_is_oob(p))
return JS_ThrowTypeErrorArrayBufferOOB(ctx);
// RAB may have been resized by evil .valueOf method
final = min_int(final, p->u.array.count);
shift = typed_array_size_log2(p->class_id);
switch(shift) {
case 0:
if (k < final) {
memset(p->u.array.u.uint8_ptr + k, v64, final - k);
}
break;
case 1:
for(; k < final; k++) {
p->u.array.u.uint16_ptr[k] = v64;
}
break;
case 2:
for(; k < final; k++) {
p->u.array.u.uint32_ptr[k] = v64;
}
break;
case 3:
for(; k < final; k++) {
p->u.array.u.uint64_ptr[k] = v64;
}
break;
default:
abort();
}
return js_dup(this_val);
} | O0 | c | js_typed_array_fill:
subq $0xa8, %rsp
movq %rsi, 0x88(%rsp)
movq %rdx, 0x90(%rsp)
movq %rdi, 0x80(%rsp)
movl %ecx, 0x7c(%rsp)
movq %r8, 0x70(%rsp)
movq 0x80(%rsp), %rdi
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
callq 0x5ec30
movq %rax, 0x68(%rsp)
cmpq $0x0, 0x68(%rsp)
jne 0xe59ae
movl $0x0, 0x98(%rsp)
movq $0x6, 0xa0(%rsp)
jmp 0xe5e1a
movq 0x68(%rsp), %rdi
callq 0x5ecc0
cmpl $0x0, %eax
je 0xe59df
movq 0x80(%rsp), %rdi
callq 0x5edd0
movq %rax, 0x98(%rsp)
movq %rdx, 0xa0(%rsp)
jmp 0xe5e1a
movq 0x68(%rsp), %rax
movl 0x40(%rax), %eax
movl %eax, 0x64(%rsp)
movq 0x68(%rsp), %rax
movzwl 0x6(%rax), %eax
cmpl $0x15, %eax
jne 0xe5a6a
movq 0x80(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x70(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
callq 0x279c0
movq 0x10(%rsp), %rdi
movq %rax, 0x38(%rsp)
movq %rdx, 0x40(%rsp)
movq 0x38(%rsp), %rdx
movq 0x40(%rsp), %rcx
leaq 0x4c(%rsp), %rsi
callq 0x673f0
cmpl $0x0, %eax
je 0xe5a5b
movl $0x0, 0x98(%rsp)
movq $0x6, 0xa0(%rsp)
jmp 0xe5e1a
movslq 0x4c(%rsp), %rax
movq %rax, 0x50(%rsp)
jmp 0xe5bc0
movq 0x68(%rsp), %rax
movzwl 0x6(%rax), %eax
cmpl $0x1b, %eax
jg 0xe5ac5
movq 0x80(%rsp), %rdi
movq 0x70(%rsp), %rax
movq (%rax), %rdx
movq 0x8(%rax), %rcx
leaq 0x34(%rsp), %rsi
callq 0x53c30
cmpl $0x0, %eax
je 0xe5ab7
movl $0x0, 0x98(%rsp)
movq $0x6, 0xa0(%rsp)
jmp 0xe5e1a
movl 0x34(%rsp), %eax
movq %rax, 0x50(%rsp)
jmp 0xe5bbe
movq 0x68(%rsp), %rax
movzwl 0x6(%rax), %eax
cmpl $0x1d, %eax
jg 0xe5b17
movq 0x80(%rsp), %rdi
movq 0x70(%rsp), %rax
movq (%rax), %rdx
movq 0x8(%rax), %rcx
leaq 0x50(%rsp), %rsi
callq 0x3f1a0
cmpl $0x0, %eax
je 0xe5b12
movl $0x0, 0x98(%rsp)
movq $0x6, 0xa0(%rsp)
jmp 0xe5e1a
jmp 0xe5bbc
movq 0x80(%rsp), %rdi
movq 0x70(%rsp), %rax
movq (%rax), %rdx
movq 0x8(%rax), %rcx
leaq 0x28(%rsp), %rsi
callq 0x3e870
cmpl $0x0, %eax
je 0xe5b56
movl $0x0, 0x98(%rsp)
movq $0x6, 0xa0(%rsp)
jmp 0xe5e1a
movq 0x68(%rsp), %rax
movzwl 0x6(%rax), %eax
cmpl $0x1e, %eax
jne 0xe5b79
movsd 0x28(%rsp), %xmm0
callq 0x67550
movzwl %ax, %eax
movq %rax, 0x50(%rsp)
jmp 0xe5bba
movq 0x68(%rsp), %rax
movzwl 0x6(%rax), %eax
cmpl $0x1f, %eax
jne 0xe5ba2
movsd 0x28(%rsp), %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x24(%rsp)
movl 0x24(%rsp), %eax
movq %rax, 0x50(%rsp)
jmp 0xe5bb8
movsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x50(%rsp)
jmp 0xe5bba
jmp 0xe5bbc
jmp 0xe5bbe
jmp 0xe5bc0
movl $0x0, 0x60(%rsp)
cmpl $0x1, 0x7c(%rsp)
jle 0xe5c20
movq 0x80(%rsp), %rdi
movq 0x70(%rsp), %rcx
movl 0x64(%rsp), %r9d
movl 0x64(%rsp), %eax
movq 0x10(%rcx), %rdx
movq 0x18(%rcx), %rcx
leaq 0x60(%rsp), %rsi
xorl %r8d, %r8d
movl %eax, (%rsp)
callq 0x3eb40
cmpl $0x0, %eax
je 0xe5c1e
movl $0x0, 0x98(%rsp)
movq $0x6, 0xa0(%rsp)
jmp 0xe5e1a
jmp 0xe5c20
movl 0x64(%rsp), %eax
movl %eax, 0x5c(%rsp)
cmpl $0x2, 0x7c(%rsp)
jle 0xe5c97
movq 0x70(%rsp), %rax
movq 0x20(%rax), %rdi
movq 0x28(%rax), %rsi
callq 0x34550
cmpl $0x0, %eax
jne 0xe5c97
movq 0x80(%rsp), %rdi
movq 0x70(%rsp), %rcx
movl 0x64(%rsp), %r9d
movl 0x64(%rsp), %eax
movq 0x20(%rcx), %rdx
movq 0x28(%rcx), %rcx
leaq 0x5c(%rsp), %rsi
xorl %r8d, %r8d
movl %eax, (%rsp)
callq 0x3eb40
cmpl $0x0, %eax
je 0xe5c95
movl $0x0, 0x98(%rsp)
movq $0x6, 0xa0(%rsp)
jmp 0xe5e1a
jmp 0xe5c97
movq 0x68(%rsp), %rdi
callq 0x5ecc0
cmpl $0x0, %eax
je 0xe5cc8
movq 0x80(%rsp), %rdi
callq 0x5edd0
movq %rax, 0x98(%rsp)
movq %rdx, 0xa0(%rsp)
jmp 0xe5e1a
movl 0x5c(%rsp), %edi
movq 0x68(%rsp), %rax
movl 0x40(%rax), %esi
callq 0x56ff0
movl %eax, 0x5c(%rsp)
movq 0x68(%rsp), %rax
movzwl 0x6(%rax), %eax
leaq 0x2cf02(%rip), %rcx # 0x112bef
movzbl -0x15(%rax,%rcx), %eax
movl %eax, 0x58(%rsp)
movl 0x58(%rsp), %eax
movq %rax, 0x8(%rsp)
subq $0x3, %rax
ja 0xe5df0
movq 0x8(%rsp), %rax
leaq 0x2cd53(%rip), %rcx # 0x112a68
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x60(%rsp), %eax
cmpl 0x5c(%rsp), %eax
jge 0xe5d51
movq 0x68(%rsp), %rax
movq 0x38(%rax), %rdi
movslq 0x60(%rsp), %rax
addq %rax, %rdi
movq 0x50(%rsp), %rax
movl 0x5c(%rsp), %ecx
subl 0x60(%rsp), %ecx
movslq %ecx, %rdx
movzbl %al, %esi
callq 0xe370
jmp 0xe5df5
jmp 0xe5d58
movl 0x60(%rsp), %eax
cmpl 0x5c(%rsp), %eax
jge 0xe5d89
movq 0x50(%rsp), %rax
movw %ax, %dx
movq 0x68(%rsp), %rax
movq 0x38(%rax), %rax
movslq 0x60(%rsp), %rcx
movw %dx, (%rax,%rcx,2)
movl 0x60(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x60(%rsp)
jmp 0xe5d58
jmp 0xe5df5
jmp 0xe5d8d
movl 0x60(%rsp), %eax
cmpl 0x5c(%rsp), %eax
jge 0xe5dbc
movq 0x50(%rsp), %rax
movl %eax, %edx
movq 0x68(%rsp), %rax
movq 0x38(%rax), %rax
movslq 0x60(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl 0x60(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x60(%rsp)
jmp 0xe5d8d
jmp 0xe5df5
jmp 0xe5dc0
movl 0x60(%rsp), %eax
cmpl 0x5c(%rsp), %eax
jge 0xe5dee
movq 0x50(%rsp), %rdx
movq 0x68(%rsp), %rax
movq 0x38(%rax), %rax
movslq 0x60(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movl 0x60(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x60(%rsp)
jmp 0xe5dc0
jmp 0xe5df5
callq 0xe090
movq 0x88(%rsp), %rdi
movq 0x90(%rsp), %rsi
callq 0x279c0
movq %rax, 0x98(%rsp)
movq %rdx, 0xa0(%rsp)
movq 0x98(%rsp), %rax
movq 0xa0(%rsp), %rdx
addq $0xa8, %rsp
retq
nopw %cs:(%rax,%rax)
| js_typed_array_fill:
sub rsp, 0A8h
mov [rsp+0A8h+var_20], rsi
mov [rsp+0A8h+var_18], rdx
mov [rsp+0A8h+var_28], rdi
mov [rsp+0A8h+var_2C], ecx
mov [rsp+0A8h+var_38], r8
mov rdi, [rsp+0A8h+var_28]
mov rsi, [rsp+0A8h+var_20]
mov rdx, [rsp+0A8h+var_18]
call get_typed_array
mov [rsp+0A8h+var_40], rax
cmp [rsp+0A8h+var_40], 0
jnz short loc_E59AE
mov dword ptr [rsp+0A8h+var_10], 0
mov [rsp+0A8h+var_8], 6
jmp loc_E5E1A
loc_E59AE:
mov rdi, [rsp+0A8h+var_40]
call typed_array_is_oob
cmp eax, 0
jz short loc_E59DF
mov rdi, [rsp+0A8h+var_28]
call JS_ThrowTypeErrorArrayBufferOOB
mov [rsp+0A8h+var_10], rax
mov [rsp+0A8h+var_8], rdx
jmp loc_E5E1A
loc_E59DF:
mov rax, [rsp+0A8h+var_40]
mov eax, [rax+40h]
mov [rsp+0A8h+var_44], eax
mov rax, [rsp+0A8h+var_40]
movzx eax, word ptr [rax+6]
cmp eax, 15h
jnz short loc_E5A6A
mov rax, [rsp+0A8h+var_28]
mov [rsp+0A8h+var_98], rax
mov rax, [rsp+0A8h+var_38]
mov rdi, [rax]
mov rsi, [rax+8]
call js_dup
mov rdi, [rsp+0A8h+var_98]
mov [rsp+0A8h+var_70], rax
mov [rsp+0A8h+var_68], rdx
mov rdx, [rsp+0A8h+var_70]
mov rcx, [rsp+0A8h+var_68]
lea rsi, [rsp+0A8h+var_5C]
call JS_ToUint8ClampFree
cmp eax, 0
jz short loc_E5A5B
mov dword ptr [rsp+0A8h+var_10], 0
mov [rsp+0A8h+var_8], 6
jmp loc_E5E1A
loc_E5A5B:
movsxd rax, [rsp+0A8h+var_5C]
mov [rsp+0A8h+var_58], rax
jmp loc_E5BC0
loc_E5A6A:
mov rax, [rsp+0A8h+var_40]
movzx eax, word ptr [rax+6]
cmp eax, 1Bh
jg short loc_E5AC5
mov rdi, [rsp+0A8h+var_28]
mov rax, [rsp+0A8h+var_38]
mov rdx, [rax]
mov rcx, [rax+8]
lea rsi, [rsp+0A8h+var_74]
call JS_ToUint32_1
cmp eax, 0
jz short loc_E5AB7
mov dword ptr [rsp+0A8h+var_10], 0
mov [rsp+0A8h+var_8], 6
jmp loc_E5E1A
loc_E5AB7:
mov eax, [rsp+0A8h+var_74]
mov [rsp+0A8h+var_58], rax
jmp loc_E5BBE
loc_E5AC5:
mov rax, [rsp+0A8h+var_40]
movzx eax, word ptr [rax+6]
cmp eax, 1Dh
jg short loc_E5B17
mov rdi, [rsp+0A8h+var_28]
mov rax, [rsp+0A8h+var_38]
mov rdx, [rax]
mov rcx, [rax+8]
lea rsi, [rsp+0A8h+var_58]
call JS_ToBigInt64
cmp eax, 0
jz short loc_E5B12
mov dword ptr [rsp+0A8h+var_10], 0
mov [rsp+0A8h+var_8], 6
jmp loc_E5E1A
loc_E5B12:
jmp loc_E5BBC
loc_E5B17:
mov rdi, [rsp+0A8h+var_28]
mov rax, [rsp+0A8h+var_38]
mov rdx, [rax]
mov rcx, [rax+8]
lea rsi, [rsp+0A8h+var_80]
call JS_ToFloat64
cmp eax, 0
jz short loc_E5B56
mov dword ptr [rsp+0A8h+var_10], 0
mov [rsp+0A8h+var_8], 6
jmp loc_E5E1A
loc_E5B56:
mov rax, [rsp+0A8h+var_40]
movzx eax, word ptr [rax+6]
cmp eax, 1Eh
jnz short loc_E5B79
movsd xmm0, [rsp+0A8h+var_80]
call tofp16
movzx eax, ax
mov [rsp+0A8h+var_58], rax
jmp short loc_E5BBA
loc_E5B79:
mov rax, [rsp+0A8h+var_40]
movzx eax, word ptr [rax+6]
cmp eax, 1Fh
jnz short loc_E5BA2
movsd xmm0, [rsp+0A8h+var_80]
cvtsd2ss xmm0, xmm0
movss [rsp+0A8h+var_84], xmm0
mov eax, [rsp+0A8h+var_84]
mov [rsp+0A8h+var_58], rax
jmp short loc_E5BB8
loc_E5BA2:
movsd xmm0, [rsp+0A8h+var_80]
movsd [rsp+0A8h+var_90], xmm0
mov rax, [rsp+0A8h+var_90]
mov [rsp+0A8h+var_58], rax
loc_E5BB8:
jmp short $+2
loc_E5BBA:
jmp short $+2
loc_E5BBC:
jmp short $+2
loc_E5BBE:
jmp short $+2
loc_E5BC0:
mov [rsp+0A8h+var_48], 0
cmp [rsp+0A8h+var_2C], 1
jle short loc_E5C20
mov rdi, [rsp+0A8h+var_28]
mov rcx, [rsp+0A8h+var_38]
mov r9d, [rsp+0A8h+var_44]
mov eax, [rsp+0A8h+var_44]
mov rdx, [rcx+10h]
mov rcx, [rcx+18h]
lea rsi, [rsp+0A8h+var_48]
xor r8d, r8d
mov [rsp+0A8h+var_A8], eax
call JS_ToInt32Clamp
cmp eax, 0
jz short loc_E5C1E
mov dword ptr [rsp+0A8h+var_10], 0
mov [rsp+0A8h+var_8], 6
jmp loc_E5E1A
loc_E5C1E:
jmp short $+2
loc_E5C20:
mov eax, [rsp+0A8h+var_44]
mov [rsp+0A8h+var_4C], eax
cmp [rsp+0A8h+var_2C], 2
jle short loc_E5C97
mov rax, [rsp+0A8h+var_38]
mov rdi, [rax+20h]
mov rsi, [rax+28h]
call JS_IsUndefined_1
cmp eax, 0
jnz short loc_E5C97
mov rdi, [rsp+0A8h+var_28]
mov rcx, [rsp+0A8h+var_38]
mov r9d, [rsp+0A8h+var_44]
mov eax, [rsp+0A8h+var_44]
mov rdx, [rcx+20h]
mov rcx, [rcx+28h]
lea rsi, [rsp+0A8h+var_4C]
xor r8d, r8d
mov [rsp+0A8h+var_A8], eax
call JS_ToInt32Clamp
cmp eax, 0
jz short loc_E5C95
mov dword ptr [rsp+0A8h+var_10], 0
mov [rsp+0A8h+var_8], 6
jmp loc_E5E1A
loc_E5C95:
jmp short $+2
loc_E5C97:
mov rdi, [rsp+0A8h+var_40]
call typed_array_is_oob
cmp eax, 0
jz short loc_E5CC8
mov rdi, [rsp+0A8h+var_28]
call JS_ThrowTypeErrorArrayBufferOOB
mov [rsp+0A8h+var_10], rax
mov [rsp+0A8h+var_8], rdx
jmp loc_E5E1A
loc_E5CC8:
mov edi, [rsp+0A8h+var_4C]
mov rax, [rsp+0A8h+var_40]
mov esi, [rax+40h]
call min_int_1
mov [rsp+0A8h+var_4C], eax
mov rax, [rsp+0A8h+var_40]
movzx eax, word ptr [rax+6]
lea rcx, typed_array_size_log2
movzx eax, byte ptr [rax+rcx-15h]
mov [rsp+0A8h+var_50], eax
mov eax, [rsp+0A8h+var_50]
mov [rsp+0A8h+var_A0], rax
sub rax, 3; switch 4 cases
ja def_E5D1C; jumptable 00000000000E5D1C default case
mov rax, [rsp+0A8h+var_A0]
lea rcx, jpt_E5D1C
movsxd rax, ds:(jpt_E5D1C - 112A68h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_E5D1E:
mov eax, [rsp+0A8h+var_48]; jumptable 00000000000E5D1C case 0
cmp eax, [rsp+0A8h+var_4C]
jge short loc_E5D51
mov rax, [rsp+0A8h+var_40]
mov rdi, [rax+38h]
movsxd rax, [rsp+0A8h+var_48]
add rdi, rax
mov rax, [rsp+0A8h+var_58]
mov ecx, [rsp+0A8h+var_4C]
sub ecx, [rsp+0A8h+var_48]
movsxd rdx, ecx
movzx esi, al
call _memset
loc_E5D51:
jmp loc_E5DF5
loc_E5D56:
jmp short $+2; jumptable 00000000000E5D1C case 1
loc_E5D58:
mov eax, [rsp+0A8h+var_48]
cmp eax, [rsp+0A8h+var_4C]
jge short loc_E5D89
mov rax, [rsp+0A8h+var_58]
mov dx, ax
mov rax, [rsp+0A8h+var_40]
mov rax, [rax+38h]
movsxd rcx, [rsp+0A8h+var_48]
mov [rax+rcx*2], dx
mov eax, [rsp+0A8h+var_48]
add eax, 1
mov [rsp+0A8h+var_48], eax
jmp short loc_E5D58
loc_E5D89:
jmp short loc_E5DF5
loc_E5D8B:
jmp short $+2; jumptable 00000000000E5D1C case 2
loc_E5D8D:
mov eax, [rsp+0A8h+var_48]
cmp eax, [rsp+0A8h+var_4C]
jge short loc_E5DBC
mov rax, [rsp+0A8h+var_58]
mov edx, eax
mov rax, [rsp+0A8h+var_40]
mov rax, [rax+38h]
movsxd rcx, [rsp+0A8h+var_48]
mov [rax+rcx*4], edx
mov eax, [rsp+0A8h+var_48]
add eax, 1
mov [rsp+0A8h+var_48], eax
jmp short loc_E5D8D
loc_E5DBC:
jmp short loc_E5DF5
loc_E5DBE:
jmp short $+2; jumptable 00000000000E5D1C case 3
loc_E5DC0:
mov eax, [rsp+0A8h+var_48]
cmp eax, [rsp+0A8h+var_4C]
jge short loc_E5DEE
mov rdx, [rsp+0A8h+var_58]
mov rax, [rsp+0A8h+var_40]
mov rax, [rax+38h]
movsxd rcx, [rsp+0A8h+var_48]
mov [rax+rcx*8], rdx
mov eax, [rsp+0A8h+var_48]
add eax, 1
mov [rsp+0A8h+var_48], eax
jmp short loc_E5DC0
loc_E5DEE:
jmp short loc_E5DF5
def_E5D1C:
call _abort; jumptable 00000000000E5D1C default case
loc_E5DF5:
mov rdi, [rsp+0A8h+var_20]
mov rsi, [rsp+0A8h+var_18]
call js_dup
mov [rsp+0A8h+var_10], rax
mov [rsp+0A8h+var_8], rdx
loc_E5E1A:
mov rax, [rsp+0A8h+var_10]
mov rdx, [rsp+0A8h+var_8]
add rsp, 0A8h
retn
| long long js_typed_array_fill(
long long a1,
_DWORD *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; // rdx
long long v15; // rcx
long long v16; // r8
long long v17; // r9
__m128 v18; // xmm4
__m128 v19; // xmm5
long long v20; // rdx
long long v21; // rdx
int *v22; // rsi
long long v23; // r8
long long v24; // r9
long long v25; // rdx
long long v26; // rcx
long long v27; // r8
long long v28; // r9
__m128 v29; // xmm4
__m128 v30; // xmm5
long long v31; // rdx
const char *v32; // rdi
long long v33; // rdx
double v35; // [rsp+28h] [rbp-80h] BYREF
unsigned int v36; // [rsp+34h] [rbp-74h] BYREF
_DWORD *v37; // [rsp+38h] [rbp-70h]
long long v38; // [rsp+40h] [rbp-68h]
int v39; // [rsp+4Ch] [rbp-5Ch] BYREF
double v40; // [rsp+50h] [rbp-58h] BYREF
int v41; // [rsp+58h] [rbp-50h]
int v42; // [rsp+5Ch] [rbp-4Ch] BYREF
int v43; // [rsp+60h] [rbp-48h] BYREF
int v44; // [rsp+64h] [rbp-44h]
long long typed_array; // [rsp+68h] [rbp-40h]
_DWORD **v46; // [rsp+70h] [rbp-38h]
int v47; // [rsp+7Ch] [rbp-2Ch]
long long v48; // [rsp+80h] [rbp-28h]
_DWORD *v49; // [rsp+88h] [rbp-20h]
long long v50; // [rsp+90h] [rbp-18h]
long long v51; // [rsp+98h] [rbp-10h]
long long v52; // [rsp+A0h] [rbp-8h]
v49 = a2;
v50 = a3;
v48 = a1;
v47 = a4;
v46 = (_DWORD **)a5;
typed_array = get_typed_array(a1, (long long)a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
if ( typed_array )
{
if ( typed_array_is_oob(typed_array) )
{
v51 = JS_ThrowTypeErrorArrayBufferOOB(v48, a7, a8, a9, a10, v18, v19, a13, a14, (long long)a2, v14, v15, v16, v17);
v52 = v20;
}
else
{
v44 = *(_DWORD *)(typed_array + 64);
if ( *(_WORD *)(typed_array + 6) == 21 )
{
v37 = js_dup(*v46, (unsigned int)v46[1]);
v38 = v21;
v22 = &v39;
if ( (unsigned int)JS_ToUint8ClampFree(v48, &v39, (long long)v37, v21, v23, v24) )
{
LODWORD(v51) = 0;
v52 = 6LL;
return v51;
}
*(_QWORD *)&v40 = v39;
}
else if ( *(unsigned __int16 *)(typed_array + 6) > 0x1Bu )
{
if ( *(unsigned __int16 *)(typed_array + 6) > 0x1Du )
{
v22 = (int *)&v35;
if ( (unsigned int)JS_ToFloat64(v48, (long long)&v35, *v46, (unsigned int)v46[1]) )
{
LODWORD(v51) = 0;
v52 = 6LL;
return v51;
}
if ( *(_WORD *)(typed_array + 6) == 30 )
{
a7 = (__m128)*(unsigned long long *)&v35;
*(_QWORD *)&v40 = (unsigned __int16)tofp16(v35);
}
else
{
a7 = (__m128)*(unsigned long long *)&v35;
if ( *(_WORD *)(typed_array + 6) == 31 )
{
a7.m128_f32[0] = v35;
*(_QWORD *)&v40 = a7.m128_u32[0];
}
else
{
v40 = v35;
}
}
}
else
{
v22 = (int *)&v40;
if ( (unsigned int)JS_ToBigInt64(v48, (long long)&v40, *v46, (unsigned int)v46[1]) )
{
LODWORD(v51) = 0;
v52 = 6LL;
return v51;
}
}
}
else
{
v22 = (int *)&v36;
if ( (unsigned int)JS_ToUint32_1(v48, (long long)&v36, *v46, (unsigned int)v46[1]) )
{
LODWORD(v51) = 0;
v52 = 6LL;
return v51;
}
*(_QWORD *)&v40 = v36;
}
v43 = 0;
if ( v47 > 1 && (v22 = &v43, (unsigned int)JS_ToInt32Clamp(v48, &v43, v46[2], (unsigned int)v46[3], 0, v44, v44)) )
{
LODWORD(v51) = 0;
v52 = 6LL;
}
else
{
v42 = v44;
if ( v47 <= 2
|| (v22 = v46[5], JS_IsUndefined_1((long long)v46[4], (int)v22))
|| (v22 = &v42, !(unsigned int)JS_ToInt32Clamp(v48, &v42, v46[4], (unsigned int)v46[5], 0, v44, v44)) )
{
if ( typed_array_is_oob(typed_array) )
{
v51 = JS_ThrowTypeErrorArrayBufferOOB(
v48,
a7,
a8,
a9,
a10,
v29,
v30,
a13,
a14,
(long long)v22,
v25,
v26,
v27,
v28);
v52 = v31;
}
else
{
v32 = (const char *)(unsigned int)v42;
v42 = min_int_1(v42, *(_DWORD *)(typed_array + 64));
v41 = (unsigned __int8)typed_array_size_log2[*(unsigned __int16 *)(typed_array + 6) - 21];
switch ( v41 )
{
case 0:
if ( v43 < v42 )
memset(v43 + *(_QWORD *)(typed_array + 56), LOBYTE(v40), v42 - v43);
break;
case 1:
while ( v43 < v42 )
*(_WORD *)(*(_QWORD *)(typed_array + 56) + 2LL * v43++) = LOWORD(v40);
break;
case 2:
while ( v43 < v42 )
*(_DWORD *)(*(_QWORD *)(typed_array + 56) + 4LL * v43++) = LODWORD(v40);
break;
case 3:
while ( v43 < v42 )
*(double *)(*(_QWORD *)(typed_array + 56) + 8LL * v43++) = v40;
break;
default:
abort(v32);
}
v51 = (long long)js_dup(v49, v50);
v52 = v33;
}
}
else
{
LODWORD(v51) = 0;
v52 = 6LL;
}
}
}
}
else
{
LODWORD(v51) = 0;
v52 = 6LL;
}
return v51;
}
| js_typed_array_fill:
SUB RSP,0xa8
MOV qword ptr [RSP + 0x88],RSI
MOV qword ptr [RSP + 0x90],RDX
MOV qword ptr [RSP + 0x80],RDI
MOV dword ptr [RSP + 0x7c],ECX
MOV qword ptr [RSP + 0x70],R8
MOV RDI,qword ptr [RSP + 0x80]
MOV RSI,qword ptr [RSP + 0x88]
MOV RDX,qword ptr [RSP + 0x90]
CALL 0x0015ec30
MOV qword ptr [RSP + 0x68],RAX
CMP qword ptr [RSP + 0x68],0x0
JNZ 0x001e59ae
MOV dword ptr [RSP + 0x98],0x0
MOV qword ptr [RSP + 0xa0],0x6
JMP 0x001e5e1a
LAB_001e59ae:
MOV RDI,qword ptr [RSP + 0x68]
CALL 0x0015ecc0
CMP EAX,0x0
JZ 0x001e59df
MOV RDI,qword ptr [RSP + 0x80]
CALL 0x0015edd0
MOV qword ptr [RSP + 0x98],RAX
MOV qword ptr [RSP + 0xa0],RDX
JMP 0x001e5e1a
LAB_001e59df:
MOV RAX,qword ptr [RSP + 0x68]
MOV EAX,dword ptr [RAX + 0x40]
MOV dword ptr [RSP + 0x64],EAX
MOV RAX,qword ptr [RSP + 0x68]
MOVZX EAX,word ptr [RAX + 0x6]
CMP EAX,0x15
JNZ 0x001e5a6a
MOV RAX,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x70]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x001279c0
MOV RDI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x38],RAX
MOV qword ptr [RSP + 0x40],RDX
MOV RDX,qword ptr [RSP + 0x38]
MOV RCX,qword ptr [RSP + 0x40]
LEA RSI,[RSP + 0x4c]
CALL 0x001673f0
CMP EAX,0x0
JZ 0x001e5a5b
MOV dword ptr [RSP + 0x98],0x0
MOV qword ptr [RSP + 0xa0],0x6
JMP 0x001e5e1a
LAB_001e5a5b:
MOVSXD RAX,dword ptr [RSP + 0x4c]
MOV qword ptr [RSP + 0x50],RAX
JMP 0x001e5bc0
LAB_001e5a6a:
MOV RAX,qword ptr [RSP + 0x68]
MOVZX EAX,word ptr [RAX + 0x6]
CMP EAX,0x1b
JG 0x001e5ac5
MOV RDI,qword ptr [RSP + 0x80]
MOV RAX,qword ptr [RSP + 0x70]
MOV RDX,qword ptr [RAX]
MOV RCX,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0x34]
CALL 0x00153c30
CMP EAX,0x0
JZ 0x001e5ab7
MOV dword ptr [RSP + 0x98],0x0
MOV qword ptr [RSP + 0xa0],0x6
JMP 0x001e5e1a
LAB_001e5ab7:
MOV EAX,dword ptr [RSP + 0x34]
MOV qword ptr [RSP + 0x50],RAX
JMP 0x001e5bbe
LAB_001e5ac5:
MOV RAX,qword ptr [RSP + 0x68]
MOVZX EAX,word ptr [RAX + 0x6]
CMP EAX,0x1d
JG 0x001e5b17
MOV RDI,qword ptr [RSP + 0x80]
MOV RAX,qword ptr [RSP + 0x70]
MOV RDX,qword ptr [RAX]
MOV RCX,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0x50]
CALL 0x0013f1a0
CMP EAX,0x0
JZ 0x001e5b12
MOV dword ptr [RSP + 0x98],0x0
MOV qword ptr [RSP + 0xa0],0x6
JMP 0x001e5e1a
LAB_001e5b12:
JMP 0x001e5bbc
LAB_001e5b17:
MOV RDI,qword ptr [RSP + 0x80]
MOV RAX,qword ptr [RSP + 0x70]
MOV RDX,qword ptr [RAX]
MOV RCX,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0x28]
CALL 0x0013e870
CMP EAX,0x0
JZ 0x001e5b56
MOV dword ptr [RSP + 0x98],0x0
MOV qword ptr [RSP + 0xa0],0x6
JMP 0x001e5e1a
LAB_001e5b56:
MOV RAX,qword ptr [RSP + 0x68]
MOVZX EAX,word ptr [RAX + 0x6]
CMP EAX,0x1e
JNZ 0x001e5b79
MOVSD XMM0,qword ptr [RSP + 0x28]
CALL 0x00167550
MOVZX EAX,AX
MOV qword ptr [RSP + 0x50],RAX
JMP 0x001e5bba
LAB_001e5b79:
MOV RAX,qword ptr [RSP + 0x68]
MOVZX EAX,word ptr [RAX + 0x6]
CMP EAX,0x1f
JNZ 0x001e5ba2
MOVSD XMM0,qword ptr [RSP + 0x28]
CVTSD2SS XMM0,XMM0
MOVSS dword ptr [RSP + 0x24],XMM0
MOV EAX,dword ptr [RSP + 0x24]
MOV qword ptr [RSP + 0x50],RAX
JMP 0x001e5bb8
LAB_001e5ba2:
MOVSD XMM0,qword ptr [RSP + 0x28]
MOVSD qword ptr [RSP + 0x18],XMM0
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x50],RAX
LAB_001e5bb8:
JMP 0x001e5bba
LAB_001e5bba:
JMP 0x001e5bbc
LAB_001e5bbc:
JMP 0x001e5bbe
LAB_001e5bbe:
JMP 0x001e5bc0
LAB_001e5bc0:
MOV dword ptr [RSP + 0x60],0x0
CMP dword ptr [RSP + 0x7c],0x1
JLE 0x001e5c20
MOV RDI,qword ptr [RSP + 0x80]
MOV RCX,qword ptr [RSP + 0x70]
MOV R9D,dword ptr [RSP + 0x64]
MOV EAX,dword ptr [RSP + 0x64]
MOV RDX,qword ptr [RCX + 0x10]
MOV RCX,qword ptr [RCX + 0x18]
LEA RSI,[RSP + 0x60]
XOR R8D,R8D
MOV dword ptr [RSP],EAX
CALL 0x0013eb40
CMP EAX,0x0
JZ 0x001e5c1e
MOV dword ptr [RSP + 0x98],0x0
MOV qword ptr [RSP + 0xa0],0x6
JMP 0x001e5e1a
LAB_001e5c1e:
JMP 0x001e5c20
LAB_001e5c20:
MOV EAX,dword ptr [RSP + 0x64]
MOV dword ptr [RSP + 0x5c],EAX
CMP dword ptr [RSP + 0x7c],0x2
JLE 0x001e5c97
MOV RAX,qword ptr [RSP + 0x70]
MOV RDI,qword ptr [RAX + 0x20]
MOV RSI,qword ptr [RAX + 0x28]
CALL 0x00134550
CMP EAX,0x0
JNZ 0x001e5c97
MOV RDI,qword ptr [RSP + 0x80]
MOV RCX,qword ptr [RSP + 0x70]
MOV R9D,dword ptr [RSP + 0x64]
MOV EAX,dword ptr [RSP + 0x64]
MOV RDX,qword ptr [RCX + 0x20]
MOV RCX,qword ptr [RCX + 0x28]
LEA RSI,[RSP + 0x5c]
XOR R8D,R8D
MOV dword ptr [RSP],EAX
CALL 0x0013eb40
CMP EAX,0x0
JZ 0x001e5c95
MOV dword ptr [RSP + 0x98],0x0
MOV qword ptr [RSP + 0xa0],0x6
JMP 0x001e5e1a
LAB_001e5c95:
JMP 0x001e5c97
LAB_001e5c97:
MOV RDI,qword ptr [RSP + 0x68]
CALL 0x0015ecc0
CMP EAX,0x0
JZ 0x001e5cc8
MOV RDI,qword ptr [RSP + 0x80]
CALL 0x0015edd0
MOV qword ptr [RSP + 0x98],RAX
MOV qword ptr [RSP + 0xa0],RDX
JMP 0x001e5e1a
LAB_001e5cc8:
MOV EDI,dword ptr [RSP + 0x5c]
MOV RAX,qword ptr [RSP + 0x68]
MOV ESI,dword ptr [RAX + 0x40]
CALL 0x00156ff0
MOV dword ptr [RSP + 0x5c],EAX
MOV RAX,qword ptr [RSP + 0x68]
MOVZX EAX,word ptr [RAX + 0x6]
LEA RCX,[0x212bef]
MOVZX EAX,byte ptr [RAX + RCX*0x1 + -0x15]
MOV dword ptr [RSP + 0x58],EAX
MOV EAX,dword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x8],RAX
SUB RAX,0x3
JA 0x001e5df0
MOV RAX,qword ptr [RSP + 0x8]
LEA RCX,[0x212a68]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_0:
MOV EAX,dword ptr [RSP + 0x60]
CMP EAX,dword ptr [RSP + 0x5c]
JGE 0x001e5d51
MOV RAX,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RAX + 0x38]
MOVSXD RAX,dword ptr [RSP + 0x60]
ADD RDI,RAX
MOV RAX,qword ptr [RSP + 0x50]
MOV ECX,dword ptr [RSP + 0x5c]
SUB ECX,dword ptr [RSP + 0x60]
MOVSXD RDX,ECX
MOVZX ESI,AL
CALL 0x0010e370
LAB_001e5d51:
JMP 0x001e5df5
caseD_1:
JMP 0x001e5d58
LAB_001e5d58:
MOV EAX,dword ptr [RSP + 0x60]
CMP EAX,dword ptr [RSP + 0x5c]
JGE 0x001e5d89
MOV RAX,qword ptr [RSP + 0x50]
MOV DX,AX
MOV RAX,qword ptr [RSP + 0x68]
MOV RAX,qword ptr [RAX + 0x38]
MOVSXD RCX,dword ptr [RSP + 0x60]
MOV word ptr [RAX + RCX*0x2],DX
MOV EAX,dword ptr [RSP + 0x60]
ADD EAX,0x1
MOV dword ptr [RSP + 0x60],EAX
JMP 0x001e5d58
LAB_001e5d89:
JMP 0x001e5df5
caseD_2:
JMP 0x001e5d8d
LAB_001e5d8d:
MOV EAX,dword ptr [RSP + 0x60]
CMP EAX,dword ptr [RSP + 0x5c]
JGE 0x001e5dbc
MOV RAX,qword ptr [RSP + 0x50]
MOV EDX,EAX
MOV RAX,qword ptr [RSP + 0x68]
MOV RAX,qword ptr [RAX + 0x38]
MOVSXD RCX,dword ptr [RSP + 0x60]
MOV dword ptr [RAX + RCX*0x4],EDX
MOV EAX,dword ptr [RSP + 0x60]
ADD EAX,0x1
MOV dword ptr [RSP + 0x60],EAX
JMP 0x001e5d8d
LAB_001e5dbc:
JMP 0x001e5df5
caseD_3:
JMP 0x001e5dc0
LAB_001e5dc0:
MOV EAX,dword ptr [RSP + 0x60]
CMP EAX,dword ptr [RSP + 0x5c]
JGE 0x001e5dee
MOV RDX,qword ptr [RSP + 0x50]
MOV RAX,qword ptr [RSP + 0x68]
MOV RAX,qword ptr [RAX + 0x38]
MOVSXD RCX,dword ptr [RSP + 0x60]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV EAX,dword ptr [RSP + 0x60]
ADD EAX,0x1
MOV dword ptr [RSP + 0x60],EAX
JMP 0x001e5dc0
LAB_001e5dee:
JMP 0x001e5df5
default:
CALL 0x0010e090
LAB_001e5df5:
MOV RDI,qword ptr [RSP + 0x88]
MOV RSI,qword ptr [RSP + 0x90]
CALL 0x001279c0
MOV qword ptr [RSP + 0x98],RAX
MOV qword ptr [RSP + 0xa0],RDX
LAB_001e5e1a:
MOV RAX,qword ptr [RSP + 0x98]
MOV RDX,qword ptr [RSP + 0xa0]
ADD RSP,0xa8
RET
|
int1 [16]
js_typed_array_fill(int8 param_1,int8 param_2,int8 param_3,int param_4,
int8 *param_5)
{
int1 auVar1 [16];
int8 uVar2;
ushort uVar3;
int iVar4;
int1 auVar5 [16];
double local_80;
uint local_74;
int1 local_70 [16];
int local_5c;
double local_58;
uint local_50;
int local_4c;
int local_48;
int local_44;
long local_40;
int8 *local_38;
int local_2c;
int8 local_28;
int8 local_20;
int8 local_18;
int4 local_10;
int4 uStack_c;
int8 local_8;
local_38 = param_5;
local_2c = param_4;
local_28 = param_1;
local_20 = param_2;
local_18 = param_3;
local_40 = get_typed_array(param_1,param_2,param_3);
if (local_40 == 0) {
local_10 = 0;
local_8 = 6;
}
else {
iVar4 = typed_array_is_oob(local_40);
uVar2 = local_28;
if (iVar4 == 0) {
local_44 = *(int *)(local_40 + 0x40);
if (*(short *)(local_40 + 6) == 0x15) {
local_70 = js_dup(*local_38,local_38[1]);
iVar4 = JS_ToUint8ClampFree(uVar2,&local_5c,local_70._0_8_,local_70._8_8_);
if (iVar4 != 0) {
local_10 = 0;
local_8 = 6;
goto LAB_001e5e1a;
}
local_58 = (double)(long)local_5c;
}
else if (*(ushort *)(local_40 + 6) < 0x1c) {
iVar4 = JS_ToUint32(local_28,&local_74,*local_38,local_38[1]);
if (iVar4 != 0) {
local_10 = 0;
local_8 = 6;
goto LAB_001e5e1a;
}
local_58 = (double)(ulong)local_74;
}
else if (*(ushort *)(local_40 + 6) < 0x1e) {
iVar4 = JS_ToBigInt64(local_28,&local_58,*local_38,local_38[1]);
if (iVar4 != 0) {
local_10 = 0;
local_8 = 6;
goto LAB_001e5e1a;
}
}
else {
iVar4 = JS_ToFloat64(local_28,&local_80,*local_38,local_38[1]);
auVar5._8_8_ = local_70._8_8_;
auVar5._0_8_ = local_70._0_8_;
if (iVar4 != 0) {
local_10 = 0;
local_8 = 6;
goto LAB_001e5e1a;
}
if (*(short *)(local_40 + 6) == 0x1e) {
uVar3 = tofp16(local_80);
local_58 = (double)(ulong)uVar3;
}
else if (*(short *)(local_40 + 6) == 0x1f) {
local_58 = (double)(ulong)(uint)(float)local_80;
local_70 = auVar5;
}
else {
local_58 = local_80;
}
}
local_48 = 0;
if (1 < local_2c) {
iVar4 = JS_ToInt32Clamp(local_28,&local_48,local_38[2],local_38[3],0,local_44,local_44);
if (iVar4 != 0) {
local_10 = 0;
local_8 = 6;
goto LAB_001e5e1a;
}
}
local_4c = local_44;
if (2 < local_2c) {
iVar4 = JS_IsUndefined(local_38[4],local_38[5]);
if (iVar4 == 0) {
iVar4 = JS_ToInt32Clamp(local_28,&local_4c,local_38[4],local_38[5],0,local_44,local_44);
if (iVar4 != 0) {
local_10 = 0;
local_8 = 6;
goto LAB_001e5e1a;
}
}
}
iVar4 = typed_array_is_oob(local_40);
if (iVar4 == 0) {
local_4c = min_int(local_4c,*(int4 *)(local_40 + 0x40));
local_50 = (uint)(byte)"toSorted"[(ulong)*(ushort *)(local_40 + 6) + 6];
switch(local_50) {
case 0:
if (local_48 < local_4c) {
memset((void *)(*(long *)(local_40 + 0x38) + (long)local_48),SUB84(local_58,0) & 0xff,
(long)(local_4c - local_48));
}
break;
case 1:
for (; local_48 < local_4c; local_48 = local_48 + 1) {
*(short *)(*(long *)(local_40 + 0x38) + (long)local_48 * 2) = SUB82(local_58,0);
}
break;
case 2:
for (; local_48 < local_4c; local_48 = local_48 + 1) {
*(uint *)(*(long *)(local_40 + 0x38) + (long)local_48 * 4) = SUB84(local_58,0);
}
break;
case 3:
for (; local_48 < local_4c; local_48 = local_48 + 1) {
*(double *)(*(long *)(local_40 + 0x38) + (long)local_48 * 8) = local_58;
}
break;
default:
/* WARNING: Subroutine does not return */
abort();
}
auVar5 = js_dup(local_20,local_18);
local_8 = auVar5._8_8_;
local_10 = auVar5._0_4_;
uStack_c = auVar5._4_4_;
}
else {
auVar5 = JS_ThrowTypeErrorArrayBufferOOB(local_28);
local_8 = auVar5._8_8_;
local_10 = auVar5._0_4_;
uStack_c = auVar5._4_4_;
}
}
else {
auVar5 = JS_ThrowTypeErrorArrayBufferOOB(local_28);
local_8 = auVar5._8_8_;
local_10 = auVar5._0_4_;
uStack_c = auVar5._4_4_;
}
}
LAB_001e5e1a:
auVar1._4_4_ = uStack_c;
auVar1._0_4_ = local_10;
auVar1._8_8_ = local_8;
return auVar1;
}
| |
35,105 | div_by_z | corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/vect.c | static void div_by_z(limb_t val[])
{
static const limb_t z[] = { TO_LIMB_T(0xd201000000010000) };
size_t loop, z_len = sizeof(z)/sizeof(z[0]);
limb_t d_lo, d_hi;
d_lo = (sizeof(z) == sizeof(limb_t)) ? 0 : z[z_len - 2];
d_hi = z[z_len - 1];
for (loop = z_len, z_len--; loop--;) {
limb_t q = div_3_limbs(val + loop + z_len, d_lo, d_hi);
(void)quot_rem_64(val + loop, z, q);
}
/* remainder is in low half of val[], quotient is in high */
} | O0 | c | div_by_z:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq $0x1, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x18(%rbp), %rcx
subq $0x1, %rcx
leaq 0x2d465(%rip), %rax # 0xe93a0
movq (%rax,%rcx,8), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x10(%rbp)
cmpq $0x0, %rax
je 0xbbfb8
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x18(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0xce160
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x30(%rbp), %rdx
leaq 0x2d3ef(%rip), %rsi # 0xe93a0
callq 0xce220
jmp 0xbbf57
addq $0x30, %rsp
popq %rbp
retq
nop
| div_by_z:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_18], 1
mov [rbp+var_20], 0
mov rcx, [rbp+var_18]
sub rcx, 1
lea rax, div_by_z_z
mov rax, [rax+rcx*8]
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov [rbp+var_10], rax
mov rax, [rbp+var_18]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_18], rax
loc_BBF57:
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_10], rcx
cmp rax, 0
jz short loc_BBFB8
mov rdi, [rbp+var_8]
mov rax, [rbp+var_10]
shl rax, 3
add rdi, rax
mov rax, [rbp+var_18]
shl rax, 3
add rdi, rax
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
call div_3_limbs
mov [rbp+var_30], rax
mov rdi, [rbp+var_8]
mov rax, [rbp+var_10]
shl rax, 3
add rdi, rax
mov rdx, [rbp+var_30]
lea rsi, div_by_z_z
call quot_rem_64
jmp short loc_BBF57
loc_BBFB8:
add rsp, 30h
pop rbp
retn
| long long div_by_z(long long a1)
{
long long result; // rax
long long v2; // [rsp+0h] [rbp-30h]
long long i; // [rsp+20h] [rbp-10h]
for ( i = 1LL; ; quot_rem_64(8 * i + a1, div_by_z_z, v2) )
{
result = i--;
if ( !result )
break;
v2 = div_3_limbs(8 * i + a1, 0LL, div_by_z_z[0]);
}
return result;
}
| div_by_z:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x18],0x1
MOV qword ptr [RBP + -0x20],0x0
MOV RCX,qword ptr [RBP + -0x18]
SUB RCX,0x1
LEA RAX,[0x1e93a0]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x18],RAX
LAB_001bbf57:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,-0x1
MOV qword ptr [RBP + -0x10],RCX
CMP RAX,0x0
JZ 0x001bbfb8
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
SHL RAX,0x3
ADD RDI,RAX
MOV RAX,qword ptr [RBP + -0x18]
SHL RAX,0x3
ADD RDI,RAX
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x001ce160
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
SHL RAX,0x3
ADD RDI,RAX
MOV RDX,qword ptr [RBP + -0x30]
LEA RSI,[0x1e93a0]
CALL 0x001ce220
JMP 0x001bbf57
LAB_001bbfb8:
ADD RSP,0x30
POP RBP
RET
|
void div_by_z(long param_1)
{
int8 uVar1;
int8 uVar2;
long lVar3;
long local_18;
uVar1 = div_by_z_z;
local_18 = 1;
while( true ) {
lVar3 = local_18 + -1;
if (local_18 == 0) break;
uVar2 = div_3_limbs(param_1 + lVar3 * 8,0,uVar1);
quot_rem_64(param_1 + lVar3 * 8,&div_by_z_z,uVar2);
local_18 = lVar3;
}
return;
}
| |
35,106 | nglog::tools::Demangle(char const*, char*, unsigned long) | ng-log[P]ng-log/src/demangle.cc | bool Demangle(const char* mangled, char* out, size_t out_size) {
#if defined(NGLOG_OS_WINDOWS)
# if defined(HAVE_DBGHELP)
// When built with incremental linking, the Windows debugger
// library provides a more complicated `Symbol->Name` with the
// Incremental Linking Table offset, which looks like
// `@ILT+1105(?func@Foo@@SAXH@Z)`. However, the demangler expects
// only the mangled symbol, `?func@Foo@@SAXH@Z`. Fortunately, the
// mangled symbol is guaranteed not to have parentheses,
// so we search for `(` and extract up to `)`.
//
// Since we may be in a signal handler here, we cannot use `std::string`.
char buffer[1024]; // Big enough for a sane symbol.
const char* lparen = strchr(mangled, '(');
if (lparen) {
// Extract the string `(?...)`
const char* rparen = strchr(lparen, ')');
size_t length = static_cast<size_t>(rparen - lparen) - 1;
strncpy(buffer, lparen + 1, length);
buffer[length] = '\0';
mangled = buffer;
} // Else the symbol wasn't inside a set of parentheses
// We use the ANSI version to ensure the string type is always `char *`.
return UnDecorateSymbolName(mangled, out, out_size, UNDNAME_COMPLETE);
# else
(void)mangled;
(void)out;
(void)out_size;
return false;
# endif
#elif defined(HAVE___CXA_DEMANGLE)
int status = -1;
std::size_t n = 0;
std::unique_ptr<char, decltype(&std::free)> unmangled{
abi::__cxa_demangle(mangled, nullptr, &n, &status), &std::free};
if (!unmangled) {
return false;
}
std::copy_n(unmangled.get(), std::min(n, out_size), out);
return status == 0;
#else
State state;
InitState(&state, mangled, out, out_size);
return ParseTopLevelMangledName(&state) && !state.overflowed;
#endif
} | O1 | cpp | nglog::tools::Demangle(char const*, char*, unsigned long):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, %r15
leaq 0xc(%rsp), %rcx
movl $0xffffffff, (%rcx) # imm = 0xFFFFFFFF
leaq 0x10(%rsp), %rdx
movq $0x0, (%rdx)
xorl %r12d, %r12d
xorl %esi, %esi
callq 0x7430
movq %rax, %rbx
testq %rax, %rax
je 0x93ae
movq 0x10(%rsp), %rax
cmpq %r14, %rax
cmovbq %rax, %r14
testq %r14, %r14
je 0x93a5
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x78d0
cmpl $0x0, 0xc(%rsp)
sete %r12b
testq %rbx, %rbx
je 0x93bb
movq %rbx, %rdi
callq 0x7670
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
| _ZN5nglog5tools8DemangleEPKcPcm:
push r15
push r14
push r12
push rbx
sub rsp, 18h
mov r14, rdx
mov r15, rsi
lea rcx, [rsp+38h+status]; lpstatus
mov dword ptr [rcx], 0FFFFFFFFh
lea rdx, [rsp+38h+outlen]; lpoutlen
mov qword ptr [rdx], 0
xor r12d, r12d
xor esi, esi; lpout
call ___cxa_demangle
mov rbx, rax
test rax, rax
jz short loc_93AE
mov rax, [rsp+38h+outlen]
cmp rax, r14
cmovb r14, rax
test r14, r14
jz short loc_93A5
mov rdi, r15
mov rsi, rbx
mov rdx, r14
call _memmove
loc_93A5:
cmp [rsp+38h+status], 0
setz r12b
loc_93AE:
test rbx, rbx
jz short loc_93BB
mov rdi, rbx
call _free
loc_93BB:
mov eax, r12d
add rsp, 18h
pop rbx
pop r12
pop r14
pop r15
retn
| long long nglog::tools::Demangle(nglog::tools *this, const char *a2, char *a3)
{
unsigned int v4; // r12d
char *v5; // rbx
int status; // [rsp+Ch] [rbp-2Ch] BYREF
size_t outlen[5]; // [rsp+10h] [rbp-28h] BYREF
status = -1;
outlen[0] = 0LL;
v4 = 0;
v5 = __cxa_demangle((const char *)this, 0LL, outlen, &status);
if ( v5 )
{
if ( outlen[0] < (unsigned long long)a3 )
a3 = (char *)outlen[0];
if ( a3 )
memmove(a2, v5, a3);
LOBYTE(v4) = status == 0;
}
if ( v5 )
free(v5);
return v4;
}
| Demangle:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R14,RDX
MOV R15,RSI
LEA RCX,[RSP + 0xc]
MOV dword ptr [RCX],0xffffffff
LEA RDX,[RSP + 0x10]
MOV qword ptr [RDX],0x0
XOR R12D,R12D
XOR ESI,ESI
CALL 0x00107430
MOV RBX,RAX
TEST RAX,RAX
JZ 0x001093ae
MOV RAX,qword ptr [RSP + 0x10]
CMP RAX,R14
CMOVC R14,RAX
TEST R14,R14
JZ 0x001093a5
MOV RDI,R15
MOV RSI,RBX
MOV RDX,R14
CALL 0x001078d0
LAB_001093a5:
CMP dword ptr [RSP + 0xc],0x0
SETZ R12B
LAB_001093ae:
TEST RBX,RBX
JZ 0x001093bb
MOV RDI,RBX
CALL 0x00107670
LAB_001093bb:
MOV EAX,R12D
ADD RSP,0x18
POP RBX
POP R12
POP R14
POP R15
RET
|
/* nglog::tools::Demangle(char const*, char*, unsigned long) */
int8 nglog::tools::Demangle(char *param_1,char *param_2,ulong param_3)
{
void *__src;
__src = (void *)__cxa_demangle(param_1,0);
if (__src != (void *)0x0) {
if (param_3 != 0) {
param_3 = 0;
}
if (param_3 != 0) {
memmove(param_2,__src,param_3);
}
}
if (__src != (void *)0x0) {
free(__src);
}
return 0;
}
| |
35,107 | nglog::tools::Demangle(char const*, char*, unsigned long) | ng-log[P]ng-log/src/demangle.cc | bool Demangle(const char* mangled, char* out, size_t out_size) {
#if defined(NGLOG_OS_WINDOWS)
# if defined(HAVE_DBGHELP)
// When built with incremental linking, the Windows debugger
// library provides a more complicated `Symbol->Name` with the
// Incremental Linking Table offset, which looks like
// `@ILT+1105(?func@Foo@@SAXH@Z)`. However, the demangler expects
// only the mangled symbol, `?func@Foo@@SAXH@Z`. Fortunately, the
// mangled symbol is guaranteed not to have parentheses,
// so we search for `(` and extract up to `)`.
//
// Since we may be in a signal handler here, we cannot use `std::string`.
char buffer[1024]; // Big enough for a sane symbol.
const char* lparen = strchr(mangled, '(');
if (lparen) {
// Extract the string `(?...)`
const char* rparen = strchr(lparen, ')');
size_t length = static_cast<size_t>(rparen - lparen) - 1;
strncpy(buffer, lparen + 1, length);
buffer[length] = '\0';
mangled = buffer;
} // Else the symbol wasn't inside a set of parentheses
// We use the ANSI version to ensure the string type is always `char *`.
return UnDecorateSymbolName(mangled, out, out_size, UNDNAME_COMPLETE);
# else
(void)mangled;
(void)out;
(void)out_size;
return false;
# endif
#elif defined(HAVE___CXA_DEMANGLE)
int status = -1;
std::size_t n = 0;
std::unique_ptr<char, decltype(&std::free)> unmangled{
abi::__cxa_demangle(mangled, nullptr, &n, &status), &std::free};
if (!unmangled) {
return false;
}
std::copy_n(unmangled.get(), std::min(n, out_size), out);
return status == 0;
#else
State state;
InitState(&state, mangled, out, out_size);
return ParseTopLevelMangledName(&state) && !state.overflowed;
#endif
} | O2 | cpp | nglog::tools::Demangle(char const*, char*, unsigned long):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r14
leaq 0xc(%rsp), %rcx
orl $-0x1, (%rcx)
leaq 0x10(%rsp), %rdx
andq $0x0, (%rdx)
xorl %r12d, %r12d
xorl %esi, %esi
callq 0x74a0
testq %rax, %rax
je 0x8de4
movq %rax, %r15
movq 0x10(%rsp), %rax
cmpq %rbx, %rax
cmovbq %rax, %rbx
testq %rbx, %rbx
je 0x8dd3
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x7960
cmpl $0x0, 0xc(%rsp)
sete %r12b
movq %r15, %rdi
callq 0x76d0
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
| _ZN5nglog5tools8DemangleEPKcPcm:
push r15
push r14
push r12
push rbx
sub rsp, 18h
mov rbx, rdx
mov r14, rsi
lea rcx, [rsp+38h+status]; lpstatus
or dword ptr [rcx], 0FFFFFFFFh
lea rdx, [rsp+38h+outlen]; lpoutlen
and qword ptr [rdx], 0
xor r12d, r12d
xor esi, esi; lpout
call ___cxa_demangle
test rax, rax
jz short loc_8DE4
mov r15, rax
mov rax, [rsp+38h+outlen]
cmp rax, rbx
cmovb rbx, rax
test rbx, rbx
jz short loc_8DD3
mov rdi, r14
mov rsi, r15
mov rdx, rbx
call _memmove
loc_8DD3:
cmp [rsp+38h+status], 0
setz r12b
mov rdi, r15
call _free
loc_8DE4:
mov eax, r12d
add rsp, 18h
pop rbx
pop r12
pop r14
pop r15
retn
| long long nglog::tools::Demangle(nglog::tools *this, const char *a2, char *a3)
{
unsigned int v4; // r12d
char *v5; // rax
char *v6; // r15
int status; // [rsp+Ch] [rbp-2Ch] BYREF
size_t outlen[5]; // [rsp+10h] [rbp-28h] BYREF
status = -1;
outlen[0] = 0LL;
v4 = 0;
v5 = __cxa_demangle((const char *)this, 0LL, outlen, &status);
if ( v5 )
{
v6 = v5;
if ( outlen[0] < (unsigned long long)a3 )
a3 = (char *)outlen[0];
if ( a3 )
memmove(a2, v5, a3);
LOBYTE(v4) = status == 0;
free(v6);
}
return v4;
}
| Demangle:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RDX
MOV R14,RSI
LEA RCX,[RSP + 0xc]
OR dword ptr [RCX],0xffffffff
LEA RDX,[RSP + 0x10]
AND qword ptr [RDX],0x0
XOR R12D,R12D
XOR ESI,ESI
CALL 0x001074a0
TEST RAX,RAX
JZ 0x00108de4
MOV R15,RAX
MOV RAX,qword ptr [RSP + 0x10]
CMP RAX,RBX
CMOVC RBX,RAX
TEST RBX,RBX
JZ 0x00108dd3
MOV RDI,R14
MOV RSI,R15
MOV RDX,RBX
CALL 0x00107960
LAB_00108dd3:
CMP dword ptr [RSP + 0xc],0x0
SETZ R12B
MOV RDI,R15
CALL 0x001076d0
LAB_00108de4:
MOV EAX,R12D
ADD RSP,0x18
POP RBX
POP R12
POP R14
POP R15
RET
|
/* nglog::tools::Demangle(char const*, char*, unsigned long) */
int8 nglog::tools::Demangle(char *param_1,char *param_2,ulong param_3)
{
void *__src;
__src = (void *)__cxa_demangle(param_1,0);
if (__src != (void *)0x0) {
if (param_3 != 0) {
param_3 = 0;
}
if (param_3 != 0) {
memmove(param_2,__src,param_3);
}
free(__src);
}
return 0;
}
| |
35,108 | minja::ArrayExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const | monkey531[P]llama/common/minja.hpp | Value do_evaluate(const std::shared_ptr<Context> & context) const override {
auto result = Value::array();
for (const auto& e : elements) {
if (!e) throw std::runtime_error("Array element is null");
result.push_back(e->evaluate(context));
}
return result;
} | O1 | cpp | minja::ArrayExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
callq 0x5537a
movq %rsp, %rdi
callq 0x54b62
movq 0x20(%r15), %r13
movq 0x28(%r15), %rbp
cmpq %rbp, %r13
je 0x55277
leaq 0x58(%rsp), %r15
leaq 0x18(%rsp), %r12
cmpq $0x0, (%r13)
je 0x55289
movq (%r13), %rsi
movq %r12, %rdi
movq %r14, %rdx
callq 0x42eec
movq %rbx, %rdi
movq %r12, %rsi
callq 0x55430
movq %r15, %rdi
xorl %esi, %esi
callq 0x4326e
movq %r15, %rdi
callq 0x501da
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x55216
callq 0x35448
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x55225
callq 0x35448
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x55234
callq 0x35448
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x5526a
movq 0x90d53(%rip), %rax # 0xe5f98
cmpb $0x0, (%rax)
je 0x55255
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x5525f
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x5526a
movq (%rdi), %rax
callq *0x18(%rax)
addq $0x10, %r13
cmpq %rbp, %r13
jne 0x551d0
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x1a390
movq %rax, %r15
leaq 0x5eaa1(%rip), %rsi # 0xb3d3e
movq %rax, %rdi
callq 0x1a290
movq 0x90d44(%rip), %rsi # 0xe5ff0
movq 0x90cbd(%rip), %rdx # 0xe5f70
movq %r15, %rdi
callq 0x1acd0
movq %rax, %r14
movq %rsp, %rdi
callq 0x54b62
jmp 0x552f1
jmp 0x552d7
movq %rax, %r14
movq %r15, %rdi
callq 0x1a530
jmp 0x552e9
movq %rax, %r14
jmp 0x552e9
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x431e2
movq %rbx, %rdi
callq 0x431e2
movq %r14, %rdi
callq 0x1ad30
nop
| _ZNK5minja9ArrayExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
xorps xmm0, xmm0
mov rsi, rsp
movaps xmmword ptr [rsi], xmm0
mov qword ptr [rsi+10h], 0
call _ZN5minja5Value5arrayESt6vectorIS0_SaIS0_EE; minja::Value::array(std::vector<minja::Value>)
mov rdi, rsp
call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector()
mov r13, [r15+20h]
mov rbp, [r15+28h]
cmp r13, rbp
jz loc_55277
lea r15, [rsp+98h+var_40]
lea r12, [rsp+98h+var_80]
loc_551D0:
cmp qword ptr [r13+0], 0
jz loc_55289
mov rsi, [r13+0]
mov rdi, r12
mov rdx, r14
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
mov rdi, rbx; this
mov rsi, r12; minja::Value *
call _ZN5minja5Value9push_backERKS0_; minja::Value::push_back(minja::Value const&)
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rsp+98h+var_48]
test rdi, rdi
jz short loc_55216
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_55216:
mov rdi, [rsp+98h+var_58]
test rdi, rdi
jz short loc_55225
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_55225:
mov rdi, [rsp+98h+var_68]
test rdi, rdi
jz short loc_55234
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_55234:
mov rdi, [rsp+98h+var_78]
test rdi, rdi
jz short loc_5526A
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_55255
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_5525F
loc_55255:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_5525F:
cmp eax, 1
jnz short loc_5526A
mov rax, [rdi]
call qword ptr [rax+18h]
loc_5526A:
add r13, 10h
cmp r13, rbp
jnz loc_551D0
loc_55277:
mov rax, rbx
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_55289:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aArrayElementIs; "Array element is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
mov r14, rax
mov rdi, rsp
call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector()
jmp short loc_552F1
jmp short loc_552D7
mov r14, rax
mov rdi, r15; void *
call ___cxa_free_exception
jmp short loc_552E9
loc_552D7:
mov r14, rax
jmp short loc_552E9
mov r14, rax
lea rdi, [rsp+98h+var_80]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_552E9:
mov rdi, rbx; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_552F1:
mov rdi, r14
call __Unwind_Resume
| minja::Value * minja::ArrayExpr::do_evaluate(minja::Value *this, long long a2, int a3, int a4, int a5, int a6)
{
void (****v7)(void); // r13
void (****i)(void); // rbp
long long v9; // rdi
signed __int32 v10; // eax
std::runtime_error *exception; // r15
__int128 v13; // [rsp+0h] [rbp-98h] BYREF
long long v14; // [rsp+10h] [rbp-88h]
_BYTE v15[8]; // [rsp+18h] [rbp-80h] BYREF
long long v16; // [rsp+20h] [rbp-78h]
volatile signed __int32 *v17; // [rsp+30h] [rbp-68h]
volatile signed __int32 *v18; // [rsp+40h] [rbp-58h]
volatile signed __int32 *v19; // [rsp+50h] [rbp-48h]
void *v20[8]; // [rsp+58h] [rbp-40h] BYREF
v13 = 0LL;
v14 = 0LL;
minja::Value::array((_DWORD)this, (unsigned int)&v13, a3, a4, a5, a6, 0LL);
std::vector<minja::Value>::~vector(&v13);
v7 = *(void (*****)(void))(a2 + 32);
for ( i = *(void (*****)(void))(a2 + 40); v7 != i; v7 += 2 )
{
if ( !*v7 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Array element is null");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Expression::evaluate((long long)v15, *v7);
minja::Value::push_back(this, (const minja::Value *)v15);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v20);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v20);
if ( v19 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v19);
if ( v18 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v18);
if ( v17 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v17);
v9 = v16;
if ( v16 )
{
if ( _libc_single_threaded )
{
v10 = *(_DWORD *)(v16 + 12);
*(_DWORD *)(v16 + 12) = v10 - 1;
}
else
{
v10 = _InterlockedExchangeAdd((volatile signed __int32 *)(v16 + 12), 0xFFFFFFFF);
}
if ( v10 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v9 + 24LL))(v9, 0LL);
}
}
return this;
}
| do_evaluate:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
XORPS XMM0,XMM0
MOV RSI,RSP
MOVAPS xmmword ptr [RSI],XMM0
MOV qword ptr [RSI + 0x10],0x0
LAB_001551a8:
CALL 0x0015537a
MOV RDI,RSP
CALL 0x00154b62
MOV R13,qword ptr [R15 + 0x20]
MOV RBP,qword ptr [R15 + 0x28]
CMP R13,RBP
JZ 0x00155277
LEA R15,[RSP + 0x58]
LEA R12,[RSP + 0x18]
LAB_001551d0:
CMP qword ptr [R13],0x0
JZ 0x00155289
MOV RSI,qword ptr [R13]
LAB_001551df:
MOV RDI,R12
MOV RDX,R14
CALL 0x00142eec
LAB_001551ea:
MOV RDI,RBX
MOV RSI,R12
CALL 0x00155430
LAB_001551f5:
MOV RDI,R15
XOR ESI,ESI
CALL 0x0014326e
MOV RDI,R15
CALL 0x001501da
MOV RDI,qword ptr [RSP + 0x50]
TEST RDI,RDI
JZ 0x00155216
CALL 0x00135448
LAB_00155216:
MOV RDI,qword ptr [RSP + 0x40]
TEST RDI,RDI
JZ 0x00155225
CALL 0x00135448
LAB_00155225:
MOV RDI,qword ptr [RSP + 0x30]
TEST RDI,RDI
JZ 0x00155234
CALL 0x00135448
LAB_00155234:
MOV RDI,qword ptr [RSP + 0x20]
TEST RDI,RDI
JZ 0x0015526a
MOV RAX,qword ptr [0x001e5f98]
CMP byte ptr [RAX],0x0
JZ 0x00155255
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x0015525f
LAB_00155255:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_0015525f:
CMP EAX,0x1
JNZ 0x0015526a
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_0015526a:
ADD R13,0x10
CMP R13,RBP
JNZ 0x001551d0
LAB_00155277:
MOV RAX,RBX
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00155289:
MOV EDI,0x10
CALL 0x0011a390
MOV R15,RAX
LAB_00155296:
LEA RSI,[0x1b3d3e]
MOV RDI,RAX
CALL 0x0011a290
LAB_001552a5:
MOV RSI,qword ptr [0x001e5ff0]
MOV RDX,qword ptr [0x001e5f70]
MOV RDI,R15
CALL 0x0011acd0
|
/* minja::ArrayExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */
ArrayExpr * __thiscall minja::ArrayExpr::do_evaluate(ArrayExpr *this,shared_ptr *param_1)
{
int *piVar1;
long *plVar2;
int iVar3;
runtime_error *this_00;
long *plVar4;
int8 local_98;
int8 uStack_90;
int8 local_88;
Expression local_80 [8];
long *local_78;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_68;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_58;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_48;
data local_40 [16];
local_98 = 0;
uStack_90 = 0;
local_88 = 0;
/* try { // try from 001551a8 to 001551ac has its CatchHandler @ 001552bb */
Value::array();
std::vector<minja::Value,std::allocator<minja::Value>>::~vector
((vector<minja::Value,std::allocator<minja::Value>> *)&local_98);
plVar4 = *(long **)(param_1 + 0x20);
plVar2 = *(long **)(param_1 + 0x28);
if (plVar4 != plVar2) {
do {
if (*plVar4 == 0) {
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00155296 to 001552a4 has its CatchHandler @ 001552ca */
std::runtime_error::runtime_error(this_00,"Array element is null");
/* try { // try from 001552a5 to 001552ba has its CatchHandler @ 001552c8 */
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_001e5ff0,PTR__runtime_error_001e5f70);
}
/* try { // try from 001551df to 001551e9 has its CatchHandler @ 001552d7 */
Expression::evaluate(local_80,(shared_ptr *)*plVar4);
/* try { // try from 001551ea to 001551f4 has its CatchHandler @ 001552dc */
Value::push_back((Value *)this,(Value *)local_80);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_40,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_40);
if (local_48 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_48);
}
if (local_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_58);
}
if (local_68 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_68);
}
if (local_78 != (long *)0x0) {
if (*PTR___libc_single_threaded_001e5f98 == '\0') {
LOCK();
piVar1 = (int *)((long)local_78 + 0xc);
iVar3 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar3 = *(int *)((long)local_78 + 0xc);
*(int *)((long)local_78 + 0xc) = iVar3 + -1;
}
if (iVar3 == 1) {
(**(code **)(*local_78 + 0x18))();
}
}
plVar4 = plVar4 + 2;
} while (plVar4 != plVar2);
}
return this;
}
| |
35,109 | nglog::LogDestination::MaybeLogToEmail(nglog::LogSeverity, char const*, unsigned long) | ng-log[P]ng-log/src/logging.cc | inline void LogDestination::MaybeLogToEmail(LogSeverity severity,
const char* message, size_t len) {
if (severity >= email_logging_severity_ || severity >= FLAGS_logemaillevel) {
string to(FLAGS_alsologtoemail);
if (!addresses_.empty()) {
if (!to.empty()) {
to += ",";
}
to += addresses_;
}
const string subject(string("[LOG] ") + LogSeverityNames[severity] + ": " +
tools::ProgramInvocationShortName());
string body(hostname());
body += "\n\n";
body.append(message, len);
// should NOT use SendEmail(). The caller of this function holds the
// log_mutex and SendEmail() calls LOG/VLOG which will block trying to
// acquire the log_mutex object. Use SendEmailInternal() and set
// use_logging to false.
SendEmailInternal(to.c_str(), subject.c_str(), body.c_str(), false);
}
} | O2 | cpp | nglog::LogDestination::MaybeLogToEmail(nglog::LogSeverity, char const*, unsigned long):
pushq %rbp
pushq %r14
pushq %rbx
subq $0xb0, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
cmpl %edi, 0x2160b(%rip) # 0x305a0
jbe 0xefa6
leaq 0x23b82(%rip), %rax # 0x32b20
cmpl %ebp, (%rax)
jg 0xf0df
leaq 0x205c3(%rip), %rax # 0x2f570
movq (%rax), %rsi
leaq 0x30(%rsp), %rdi
callq 0x77a0
cmpq $0x0, 0x23c96(%rip) # 0x32c58
je 0xefee
cmpq $0x0, 0x38(%rsp)
je 0xefdd
leaq 0x10fed(%rip), %rsi # 0x1ffc0
leaq 0x30(%rsp), %rdi
callq 0x7a50
leaq 0x23c6c(%rip), %rsi # 0x32c50
leaq 0x30(%rsp), %rdi
callq 0x7a80
leaq 0x10fcd(%rip), %rsi # 0x1ffc2
leaq 0x50(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x990e
movl %ebp, %eax
leaq 0x205a3(%rip), %rcx # 0x2f5b0
movq (%rcx,%rax,8), %rdx
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xf84f
leaq 0x10e4d(%rip), %rdx # 0x1fe74
leaq 0x10(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0xf84f
callq 0x1d7f5
leaq 0x90(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movq %rax, %rdx
callq 0xf84f
leaq 0x10(%rsp), %rdi
callq 0x7b08
leaq 0x70(%rsp), %rdi
callq 0x7b08
leaq 0x50(%rsp), %rdi
callq 0x7b08
callq 0xa000
leaq 0x23bf6(%rip), %rsi # 0x32c70
leaq 0x10(%rsp), %rdi
callq 0x77a0
leaq 0x10f3e(%rip), %rsi # 0x1ffc9
leaq 0x10(%rsp), %rdi
callq 0x7a50
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x70b0
movq 0x30(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x10(%rsp), %rdx
xorl %ecx, %ecx
callq 0xb931
leaq 0x10(%rsp), %rdi
callq 0x7b08
leaq 0x90(%rsp), %rdi
callq 0x7b08
leaq 0x30(%rsp), %rdi
callq 0x7b08
addq $0xb0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
jmp 0xf10e
movq %rax, %rbx
jmp 0xf118
jmp 0xf0f7
movq %rax, %rbx
jmp 0xf139
movq %rax, %rbx
jmp 0xf12c
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x7b08
leaq 0x70(%rsp), %rdi
callq 0x7b08
leaq 0x50(%rsp), %rdi
jmp 0xf134
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x7b08
leaq 0x90(%rsp), %rdi
callq 0x7b08
leaq 0x30(%rsp), %rdi
callq 0x7b08
movq %rbx, %rdi
callq 0x79c0
nop
| _ZN5nglog14LogDestination15MaybeLogToEmailENS_11LogSeverityEPKcm:
push rbp
push r14
push rbx
sub rsp, 0B0h
mov rbx, rdx
mov r14, rsi
mov ebp, edi
cmp cs:_ZN5nglog14LogDestination23email_logging_severity_E, edi; nglog::LogDestination::email_logging_severity_
jbe short loc_EFA6
lea rax, _ZN3fLI19FLAGS_logemaillevelE; fLI::FLAGS_logemaillevel
cmp [rax], ebp
jg loc_F0DF
loc_EFA6:
lea rax, _ZN3fLS20FLAGS_alsologtoemailB5cxx11E; fLS::FLAGS_alsologtoemail
mov rsi, [rax]
lea rdi, [rsp+0C8h+var_98]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
cmp cs:qword_32C58, 0
jz short loc_EFEE
cmp [rsp+0C8h+var_90], 0
jz short loc_EFDD
lea rsi, asc_1FFC0; ","
lea rdi, [rsp+0C8h+var_98]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
loc_EFDD:
lea rsi, _ZN5nglog14LogDestination10addresses_B5cxx11E; nglog::LogDestination::addresses_
lea rdi, [rsp+0C8h+var_98]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
loc_EFEE:
lea rsi, aLog_0; "[LOG] "
lea rdi, [rsp+0C8h+var_78]
lea rdx, [rsp+0C8h+var_B9]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov eax, ebp
lea rcx, _ZN5nglogL16LogSeverityNamesE; nglog::LogSeverityNames
mov rdx, [rcx+rax*8]
lea rdi, [rsp+0C8h+var_58]
lea rsi, [rsp+0C8h+var_78]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
lea rdx, aRunningDuratio+1Ah; ": "
lea rdi, [rsp+0C8h+var_B8]; this
lea rsi, [rsp+0C8h+var_58]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
call _ZN5nglog5tools26ProgramInvocationShortNameEv; nglog::tools::ProgramInvocationShortName(void)
lea rdi, [rsp+0C8h+var_38]
lea rsi, [rsp+0C8h+var_B8]
mov rdx, rax
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
lea rdi, [rsp+0C8h+var_B8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0C8h+var_58]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0C8h+var_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
call _ZN5nglog14LogDestination8hostnameB5cxx11Ev; nglog::LogDestination::hostname(void)
lea rsi, _ZN5nglog14LogDestination9hostname_B5cxx11E; nglog::LogDestination::hostname_
lea rdi, [rsp+0C8h+var_B8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
lea rsi, asc_1FFC9; "\n\n"
lea rdi, [rsp+0C8h+var_B8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rdi, [rsp+0C8h+var_B8]
mov rsi, r14
mov rdx, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong)
mov rdi, [rsp+0C8h+var_98]; this
mov rsi, [rsp+0C8h+var_38]; char *
mov rdx, [rsp+0C8h+var_B8]; char *
xor ecx, ecx; char *
call _ZN5nglogL17SendEmailInternalEPKcS1_S1_b; nglog::SendEmailInternal(char const*,char const*,char const*,bool)
lea rdi, [rsp+0C8h+var_B8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0C8h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0C8h+var_98]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_F0DF:
add rsp, 0B0h
pop rbx
pop r14
pop rbp
retn
mov rbx, rax
jmp short loc_F10E
mov rbx, rax
jmp short loc_F118
jmp short $+2
loc_F0F7:
mov rbx, rax
jmp short loc_F139
mov rbx, rax
jmp short loc_F12C
mov rbx, rax
lea rdi, [rsp+arg_8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_F10E:
lea rdi, [rsp+arg_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_F118:
lea rdi, [rsp+arg_48]
jmp short loc_F134
mov rbx, rax
lea rdi, [rsp+arg_8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_F12C:
lea rdi, [rsp+arg_88]; void *
loc_F134:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_F139:
lea rdi, [rsp+arg_28]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx
call __Unwind_Resume
| void nglog::LogDestination::MaybeLogToEmail(unsigned int a1, long long a2, long long a3)
{
long long v4; // rdx
long long v5; // rcx
long long v6; // r8
long long v7; // r9
long long v8; // rax
long long v9; // rdx
long long v10; // rcx
long long v11; // r8
long long v12; // r9
char *v13[4]; // [rsp+10h] [rbp-B8h] BYREF
nglog *v14[4]; // [rsp+30h] [rbp-98h] BYREF
_QWORD v15[4]; // [rsp+50h] [rbp-78h] BYREF
_BYTE v16[32]; // [rsp+70h] [rbp-58h] BYREF
char *v17[7]; // [rsp+90h] [rbp-38h] BYREF
if ( nglog::LogDestination::email_logging_severity_ <= a1 || fLI::FLAGS_logemaillevel <= (int)a1 )
{
std::string::basic_string(v14);
if ( qword_32C58 )
{
if ( v14[1] )
std::string::append(v14, ",", v4, v5, v6, v7);
std::string::append(v14, &nglog::LogDestination::addresses_[abi:cxx11]);
}
std::string::basic_string<std::allocator<char>>(v15, (long long)"[LOG] ");
std::operator+<char>(v16, v15, nglog::LogSeverityNames[a1]);
std::operator+<char>(v13, v16, ": ");
v8 = nglog::tools::ProgramInvocationShortName((nglog::tools *)v13);
std::operator+<char>(v17, v13, v8);
std::string::~string(v13);
std::string::~string(v16);
std::string::~string(v15);
nglog::LogDestination::hostname[abi:cxx11]();
std::string::basic_string(v13);
std::string::append(v13, "\n\n", v9, v10, v11, v12);
std::string::append(v13, a2, a3);
nglog::SendEmailInternal(v14[0], v17[0], (long long)v13[0], 0LL);
std::string::~string(v13);
std::string::~string(v17);
std::string::~string(v14);
}
}
| MaybeLogToEmail:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0xb0
MOV RBX,RDX
MOV R14,RSI
MOV EBP,EDI
CMP dword ptr [0x001305a0],EDI
JBE 0x0010efa6
LEA RAX,[0x132b20]
CMP dword ptr [RAX],EBP
JG 0x0010f0df
LAB_0010efa6:
LEA RAX,[0x12f570]
MOV RSI,qword ptr [RAX]
LEA RDI,[RSP + 0x30]
CALL 0x001077a0
CMP qword ptr [0x00132c58],0x0
JZ 0x0010efee
CMP qword ptr [RSP + 0x38],0x0
JZ 0x0010efdd
LAB_0010efcc:
LEA RSI,[0x11ffc0]
LEA RDI,[RSP + 0x30]
CALL 0x00107a50
LAB_0010efdd:
LEA RSI,[0x132c50]
LEA RDI,[RSP + 0x30]
CALL 0x00107a80
LAB_0010efee:
LEA RSI,[0x11ffc2]
LEA RDI,[RSP + 0x50]
LEA RDX,[RSP + 0xf]
CALL 0x0010990e
MOV EAX,EBP
LEA RCX,[0x12f5b0]
MOV RDX,qword ptr [RCX + RAX*0x8]
LAB_0010f011:
LEA RDI,[RSP + 0x70]
LEA RSI,[RSP + 0x50]
CALL 0x0010f84f
LAB_0010f020:
LEA RDX,[0x11fe74]
LEA RDI,[RSP + 0x10]
LEA RSI,[RSP + 0x70]
CALL 0x0010f84f
LAB_0010f036:
CALL 0x0011d7f5
LEA RDI,[RSP + 0x90]
LEA RSI,[RSP + 0x10]
MOV RDX,RAX
CALL 0x0010f84f
LEA RDI,[RSP + 0x10]
CALL 0x00107b08
LEA RDI,[RSP + 0x70]
CALL 0x00107b08
LEA RDI,[RSP + 0x50]
CALL 0x00107b08
LAB_0010f06e:
CALL 0x0010a000
LEA RSI,[0x132c70]
LEA RDI,[RSP + 0x10]
CALL 0x001077a0
LAB_0010f084:
LEA RSI,[0x11ffc9]
LEA RDI,[RSP + 0x10]
CALL 0x00107a50
LEA RDI,[RSP + 0x10]
MOV RSI,R14
MOV RDX,RBX
CALL 0x001070b0
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x90]
MOV RDX,qword ptr [RSP + 0x10]
XOR ECX,ECX
CALL 0x0010b931
LAB_0010f0be:
LEA RDI,[RSP + 0x10]
CALL 0x00107b08
LEA RDI,[RSP + 0x90]
CALL 0x00107b08
LEA RDI,[RSP + 0x30]
CALL 0x00107b08
LAB_0010f0df:
ADD RSP,0xb0
POP RBX
POP R14
POP RBP
RET
|
/* nglog::LogDestination::MaybeLogToEmail(nglog::LogSeverity, char const*, unsigned long) */
void nglog::LogDestination::MaybeLogToEmail(uint param_1,ulong param_2)
{
allocator local_b9;
char *local_b8 [4];
char *local_98;
long local_90;
string local_78 [32];
string local_58 [32];
char *local_38 [4];
if ((email_logging_severity_ <= param_1) || (fLI::FLAGS_logemaillevel <= (int)param_1)) {
std::__cxx11::string::string((string *)&local_98,(string *)fLS::FLAGS_alsologtoemail_abi_cxx11_)
;
if (addresses__abi_cxx11_._8_8_ != 0) {
if (local_90 != 0) {
/* try { // try from 0010efcc to 0010efed has its CatchHandler @ 0010f0f7 */
std::__cxx11::string::append((char *)&local_98);
}
std::__cxx11::string::append((string *)&local_98);
}
/* try { // try from 0010efee to 0010f003 has its CatchHandler @ 0010f0f5 */
std::__cxx11::string::string<std::allocator<char>>(local_78,"[LOG] ",&local_b9);
/* try { // try from 0010f011 to 0010f01f has its CatchHandler @ 0010f0f0 */
std::operator+(local_58,(char *)local_78);
/* try { // try from 0010f020 to 0010f035 has its CatchHandler @ 0010f0eb */
std::operator+((string *)local_b8,(char *)local_58);
/* try { // try from 0010f036 to 0010f04f has its CatchHandler @ 0010f101 */
tools::ProgramInvocationShortName();
std::operator+((string *)local_38,(char *)local_b8);
std::__cxx11::string::~string((string *)local_b8);
std::__cxx11::string::~string(local_58);
std::__cxx11::string::~string(local_78);
/* try { // try from 0010f06e to 0010f083 has its CatchHandler @ 0010f0fc */
hostname_abi_cxx11_();
std::__cxx11::string::string((string *)local_b8,(string *)hostname__abi_cxx11_);
/* try { // try from 0010f084 to 0010f0bd has its CatchHandler @ 0010f11f */
std::__cxx11::string::append((char *)local_b8);
std::__cxx11::string::append((char *)local_b8,param_2);
SendEmailInternal(local_98,local_38[0],local_b8[0],false);
std::__cxx11::string::~string((string *)local_b8);
std::__cxx11::string::~string((string *)local_38);
std::__cxx11::string::~string((string *)&local_98);
}
return;
}
| |
35,110 | buffer_append | corpus-core[P]colibri-stateless/src/util/bytes.c | uint32_t buffer_append(buffer_t* buffer, bytes_t data) {
if (buffer->allocated < 0 && buffer->data.len + data.len > (uint32_t) (0 - buffer->allocated))
data.len = ((uint32_t) (0 - buffer->allocated)) - buffer->data.len;
if (!data.len) return 0;
buffer_grow(buffer, buffer->data.len + data.len);
if (data.data)
memcpy(buffer->data.data + buffer->data.len, data.data, data.len);
else
memset(buffer->data.data + buffer->data.len, 0, data.len);
buffer->data.len += data.len;
return data.len;
} | O0 | c | buffer_append:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %esi, -0x18(%rbp)
movq %rdx, -0x10(%rbp)
movq %rdi, -0x20(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x10(%rax)
jge 0x9ca75
movq -0x20(%rbp), %rax
movl (%rax), %eax
addl -0x18(%rbp), %eax
movq -0x20(%rbp), %rdx
xorl %ecx, %ecx
subl 0x10(%rdx), %ecx
cmpl %ecx, %eax
jbe 0x9ca75
movq -0x20(%rbp), %rcx
xorl %eax, %eax
subl 0x10(%rcx), %eax
movq -0x20(%rbp), %rcx
subl (%rcx), %eax
movl %eax, -0x18(%rbp)
cmpl $0x0, -0x18(%rbp)
jne 0x9ca84
movl $0x0, -0x4(%rbp)
jmp 0x9caf0
movq -0x20(%rbp), %rdi
movq -0x20(%rbp), %rax
movl (%rax), %eax
addl -0x18(%rbp), %eax
movl %eax, %eax
movl %eax, %esi
callq 0x9c950
cmpq $0x0, -0x10(%rbp)
je 0x9cac2
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x20(%rbp), %rax
movl (%rax), %eax
addq %rax, %rdi
movq -0x10(%rbp), %rsi
movl -0x18(%rbp), %eax
movl %eax, %edx
callq 0x231c0
jmp 0x9cadf
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x20(%rbp), %rax
movl (%rax), %eax
addq %rax, %rdi
movl -0x18(%rbp), %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x23140
movl -0x18(%rbp), %ecx
movq -0x20(%rbp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
movl -0x18(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
| buffer_append:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_18], esi
mov [rbp+var_10], rdx
mov [rbp+var_20], rdi
mov rax, [rbp+var_20]
cmp dword ptr [rax+10h], 0
jge short loc_9CA75
mov rax, [rbp+var_20]
mov eax, [rax]
add eax, [rbp+var_18]
mov rdx, [rbp+var_20]
xor ecx, ecx
sub ecx, [rdx+10h]
cmp eax, ecx
jbe short loc_9CA75
mov rcx, [rbp+var_20]
xor eax, eax
sub eax, [rcx+10h]
mov rcx, [rbp+var_20]
sub eax, [rcx]
mov [rbp+var_18], eax
loc_9CA75:
cmp [rbp+var_18], 0
jnz short loc_9CA84
mov [rbp+var_4], 0
jmp short loc_9CAF0
loc_9CA84:
mov rdi, [rbp+var_20]
mov rax, [rbp+var_20]
mov eax, [rax]
add eax, [rbp+var_18]
mov eax, eax
mov esi, eax
call buffer_grow
cmp [rbp+var_10], 0
jz short loc_9CAC2
mov rax, [rbp+var_20]
mov rdi, [rax+8]
mov rax, [rbp+var_20]
mov eax, [rax]
add rdi, rax
mov rsi, [rbp+var_10]
mov eax, [rbp+var_18]
mov edx, eax
call _memcpy
jmp short loc_9CADF
loc_9CAC2:
mov rax, [rbp+var_20]
mov rdi, [rax+8]
mov rax, [rbp+var_20]
mov eax, [rax]
add rdi, rax
mov eax, [rbp+var_18]
mov edx, eax
xor esi, esi
call _memset
loc_9CADF:
mov ecx, [rbp+var_18]
mov rax, [rbp+var_20]
add ecx, [rax]
mov [rax], ecx
mov eax, [rbp+var_18]
mov [rbp+var_4], eax
loc_9CAF0:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long buffer_append(unsigned int *a1, unsigned int a2, long long a3)
{
unsigned int v4; // [rsp+8h] [rbp-18h]
v4 = a2;
if ( (a1[4] & 0x80000000) != 0 && a2 + *a1 > -a1[4] )
v4 = -a1[4] - *a1;
if ( v4 )
{
buffer_grow((unsigned long long)a1, v4 + *a1);
if ( a3 )
memcpy(*a1 + *((_QWORD *)a1 + 1), a3, v4);
else
memset(*a1 + *((_QWORD *)a1 + 1), 0LL, v4);
*a1 += v4;
return v4;
}
else
{
return 0;
}
}
| buffer_append:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x18],ESI
MOV qword ptr [RBP + -0x10],RDX
MOV qword ptr [RBP + -0x20],RDI
MOV RAX,qword ptr [RBP + -0x20]
CMP dword ptr [RAX + 0x10],0x0
JGE 0x0019ca75
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX]
ADD EAX,dword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
XOR ECX,ECX
SUB ECX,dword ptr [RDX + 0x10]
CMP EAX,ECX
JBE 0x0019ca75
MOV RCX,qword ptr [RBP + -0x20]
XOR EAX,EAX
SUB EAX,dword ptr [RCX + 0x10]
MOV RCX,qword ptr [RBP + -0x20]
SUB EAX,dword ptr [RCX]
MOV dword ptr [RBP + -0x18],EAX
LAB_0019ca75:
CMP dword ptr [RBP + -0x18],0x0
JNZ 0x0019ca84
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0019caf0
LAB_0019ca84:
MOV RDI,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX]
ADD EAX,dword ptr [RBP + -0x18]
MOV EAX,EAX
MOV ESI,EAX
CALL 0x0019c950
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0019cac2
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX]
ADD RDI,RAX
MOV RSI,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x18]
MOV EDX,EAX
CALL 0x001231c0
JMP 0x0019cadf
LAB_0019cac2:
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX]
ADD RDI,RAX
MOV EAX,dword ptr [RBP + -0x18]
MOV EDX,EAX
XOR ESI,ESI
CALL 0x00123140
LAB_0019cadf:
MOV ECX,dword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x20]
ADD ECX,dword ptr [RAX]
MOV dword ptr [RAX],ECX
MOV EAX,dword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x4],EAX
LAB_0019caf0:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
uint buffer_append(uint *param_1,uint param_2,void *param_3)
{
uint local_20;
uint local_c;
local_20 = param_2;
if ((int)param_1[4] < 0) {
if (-param_1[4] < *param_1 + param_2) {
local_20 = -*param_1 - param_1[4];
}
}
if (local_20 == 0) {
local_c = 0;
}
else {
buffer_grow(param_1);
if (param_3 == (void *)0x0) {
memset((void *)(*(long *)(param_1 + 2) + (ulong)*param_1),0,(ulong)local_20);
}
else {
memcpy((void *)(*(long *)(param_1 + 2) + (ulong)*param_1),param_3,(ulong)local_20);
}
*param_1 = local_20 + *param_1;
local_c = local_20;
}
return local_c;
}
| |
35,111 | buffer_append | corpus-core[P]colibri-stateless/src/util/bytes.c | uint32_t buffer_append(buffer_t* buffer, bytes_t data) {
if (buffer->allocated < 0 && buffer->data.len + data.len > (uint32_t) (0 - buffer->allocated))
data.len = ((uint32_t) (0 - buffer->allocated)) - buffer->data.len;
if (!data.len) return 0;
buffer_grow(buffer, buffer->data.len + data.len);
if (data.data)
memcpy(buffer->data.data + buffer->data.len, data.data, data.len);
else
memset(buffer->data.data + buffer->data.len, 0, data.len);
buffer->data.len += data.len;
return data.len;
} | O3 | c | buffer_append:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movl %esi, %ebx
movq %rdi, %r14
movl 0x10(%rdi), %eax
testl %eax, %eax
jns 0x51001
movl (%r14), %ecx
negl %eax
movl %eax, %edx
subl %ecx, %edx
addl %ebx, %ecx
cmpl %eax, %ecx
cmoval %edx, %ebx
testl %ebx, %ebx
je 0x51034
movl (%r14), %esi
addl %ebx, %esi
movq %r14, %rdi
callq 0x50f71
movl (%r14), %edi
addq 0x8(%r14), %rdi
movl %ebx, %edx
testq %r15, %r15
je 0x5102a
movq %r15, %rsi
callq 0x211a0
jmp 0x51031
xorl %esi, %esi
callq 0x21120
addl %ebx, (%r14)
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
| buffer_append:
push r15
push r14
push rbx
mov r15, rdx
mov ebx, esi
mov r14, rdi
mov eax, [rdi+10h]
test eax, eax
jns short loc_51001
mov ecx, [r14]
neg eax
mov edx, eax
sub edx, ecx
add ecx, ebx
cmp ecx, eax
cmova ebx, edx
loc_51001:
test ebx, ebx
jz short loc_51034
mov esi, [r14]
add esi, ebx
mov rdi, r14
call buffer_grow
mov edi, [r14]
add rdi, [r14+8]
mov edx, ebx
test r15, r15
jz short loc_5102A
mov rsi, r15
call _memcpy
jmp short loc_51031
loc_5102A:
xor esi, esi
call _memset
loc_51031:
add [r14], ebx
loc_51034:
mov eax, ebx
pop rbx
pop r14
pop r15
retn
| long long buffer_append(unsigned int *a1, unsigned int a2, long long a3)
{
unsigned int v4; // ebx
int v6; // eax
unsigned int v7; // eax
long long v8; // rdi
v4 = a2;
v6 = a1[4];
if ( v6 < 0 )
{
v7 = -v6;
if ( a2 + *a1 > v7 )
v4 = v7 - *a1;
}
if ( v4 )
{
buffer_grow((long long)a1, v4 + *a1);
v8 = *((_QWORD *)a1 + 1) + *a1;
if ( a3 )
memcpy(v8);
else
memset(v8, 0LL, v4);
*a1 += v4;
}
return v4;
}
| buffer_append:
PUSH R15
PUSH R14
PUSH RBX
MOV R15,RDX
MOV EBX,ESI
MOV R14,RDI
MOV EAX,dword ptr [RDI + 0x10]
TEST EAX,EAX
JNS 0x00151001
MOV ECX,dword ptr [R14]
NEG EAX
MOV EDX,EAX
SUB EDX,ECX
ADD ECX,EBX
CMP ECX,EAX
CMOVA EBX,EDX
LAB_00151001:
TEST EBX,EBX
JZ 0x00151034
MOV ESI,dword ptr [R14]
ADD ESI,EBX
MOV RDI,R14
CALL 0x00150f71
MOV EDI,dword ptr [R14]
ADD RDI,qword ptr [R14 + 0x8]
MOV EDX,EBX
TEST R15,R15
JZ 0x0015102a
MOV RSI,R15
CALL 0x001211a0
JMP 0x00151031
LAB_0015102a:
XOR ESI,ESI
CALL 0x00121120
LAB_00151031:
ADD dword ptr [R14],EBX
LAB_00151034:
MOV EAX,EBX
POP RBX
POP R14
POP R15
RET
|
uint buffer_append(uint *param_1,uint param_2,void *param_3)
{
uint uVar1;
if ((int)param_1[4] < 0) {
uVar1 = -param_1[4];
if (uVar1 < *param_1 + param_2) {
param_2 = uVar1 - *param_1;
}
}
if (param_2 != 0) {
buffer_grow(param_1);
if (param_3 == (void *)0x0) {
memset((void *)((ulong)*param_1 + *(long *)(param_1 + 2)),0,(ulong)param_2);
}
else {
memcpy((void *)((ulong)*param_1 + *(long *)(param_1 + 2)),param_3,(ulong)param_2);
}
*param_1 = *param_1 + param_2;
}
return param_2;
}
| |
35,112 | Catch::ConsoleReporter::testRunEnded(Catch::TestRunStats const&) | AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp | void ConsoleReporter::testRunEnded(TestRunStats const& _testRunStats) {
printTotalsDivider(_testRunStats.totals);
printTestRunTotals( m_stream, *m_colour, _testRunStats.totals );
m_stream << '\n' << std::flush;
StreamingReporterBase::testRunEnded(_testRunStats);
} | O3 | cpp | Catch::ConsoleReporter::testRunEnded(Catch::TestRunStats const&):
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rsi), %r14
movq %r14, %rsi
callq 0x69e86
movq 0x20(%rbx), %rdi
movq 0x28(%rbx), %rsi
movq %r14, %rdx
callq 0x67a91
movq 0x20(%rbx), %rdi
leaq 0x7(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
callq 0x17be0
movq %rax, %rdi
callq 0x17590
movq $0x0, 0x70(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
| _ZN5Catch15ConsoleReporter12testRunEndedERKNS_12TestRunStatsE:
push r14; char
push rbx; int
push rax; int
mov rbx, rdi
lea r14, [rsi+10h]
mov rsi, r14; int
call _ZN5Catch15ConsoleReporter18printTotalsDividerERKNS_6TotalsE; Catch::ConsoleReporter::printTotalsDivider(Catch::Totals const&)
mov rdi, [rbx+20h]; this
mov rsi, [rbx+28h]
mov rdx, r14
call _ZN5Catch18printTestRunTotalsERSoRNS_10ColourImplERKNS_6TotalsE; Catch::printTestRunTotals(std::ostream &,Catch::ColourImpl &,Catch::Totals const&)
mov rdi, [rbx+20h]
lea rsi, [rsp+18h+var_11]
mov byte ptr [rsi], 0Ah
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)
mov rdi, rax; this
call __ZNSo5flushEv; std::ostream::flush(void)
mov qword ptr [rbx+70h], 0
add rsp, 8
pop rbx
pop r14
retn
| testRunEnded:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA R14,[RSI + 0x10]
MOV RSI,R14
CALL 0x00169e86
MOV RDI,qword ptr [RBX + 0x20]
MOV RSI,qword ptr [RBX + 0x28]
MOV RDX,R14
CALL 0x00167a91
MOV RDI,qword ptr [RBX + 0x20]
LEA RSI,[RSP + 0x7]
MOV byte ptr [RSI],0xa
MOV EDX,0x1
CALL 0x00117be0
MOV RDI,RAX
CALL 0x00117590
MOV qword ptr [RBX + 0x70],0x0
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* Catch::ConsoleReporter::testRunEnded(Catch::TestRunStats const&) */
void __thiscall Catch::ConsoleReporter::testRunEnded(ConsoleReporter *this,TestRunStats *param_1)
{
int8 in_RAX;
int8 uStack_18;
uStack_18 = in_RAX;
printTotalsDivider(this,(Totals *)(param_1 + 0x10));
printTestRunTotals(*(ostream **)(this + 0x20),*(ColourImpl **)(this + 0x28),
(Totals *)(param_1 + 0x10));
uStack_18 = CONCAT17(10,(int7)uStack_18);
std::__ostream_insert<char,std::char_traits<char>>
(*(ostream **)(this + 0x20),(char *)((long)&uStack_18 + 7),1);
std::ostream::flush();
*(int8 *)(this + 0x70) = 0;
return;
}
| ||
35,113 | stbi__create_png_alpha_expand8(unsigned char*, unsigned char*, unsigned int, int) | monkey531[P]llama/examples/llava/../../common/stb_image.h | static void stbi__create_png_alpha_expand8(stbi_uc *dest, stbi_uc *src, stbi__uint32 x, int img_n)
{
int i;
// must process data backwards since we allow dest==src
if (img_n == 1) {
for (i=x-1; i >= 0; --i) {
dest[i*2+1] = 255;
dest[i*2+0] = src[i];
}
} else {
STBI_ASSERT(img_n == 3);
for (i=x-1; i >= 0; --i) {
dest[i*4+3] = 255;
dest[i*4+2] = src[i*3+2];
dest[i*4+1] = src[i*3+1];
dest[i*4+0] = src[i*3+0];
}
}
} | O3 | c | stbi__create_png_alpha_expand8(unsigned char*, unsigned char*, unsigned int, int):
decl %edx
cmpl $0x1, %ecx
jne 0x3e8f0
testl %edx, %edx
js 0x3e923
movl %edx, %eax
movb $-0x1, 0x1(%rdi,%rax,2)
movb (%rsi,%rax), %cl
movb %cl, (%rdi,%rax,2)
addq $-0x1, %rax
jb 0x3e8dd
jmp 0x3e923
testl %edx, %edx
js 0x3e923
movl %edx, %eax
leaq (%rax,%rax,2), %rcx
addq %rsi, %rcx
addq $0x2, %rcx
movb $-0x1, 0x3(%rdi,%rax,4)
movb (%rcx), %dl
movb %dl, 0x2(%rdi,%rax,4)
movb -0x1(%rcx), %dl
movb %dl, 0x1(%rdi,%rax,4)
movb -0x2(%rcx), %dl
movb %dl, (%rdi,%rax,4)
addq $-0x3, %rcx
addq $-0x1, %rax
jb 0x3e901
retq
| _ZL30stbi__create_png_alpha_expand8PhS_ji:
dec edx
cmp ecx, 1
jnz short loc_3E8F0
test edx, edx
js short locret_3E923
mov eax, edx
loc_3E8DD:
mov byte ptr [rdi+rax*2+1], 0FFh
mov cl, [rsi+rax]
mov [rdi+rax*2], cl
add rax, 0FFFFFFFFFFFFFFFFh
jb short loc_3E8DD
jmp short locret_3E923
loc_3E8F0:
test edx, edx
js short locret_3E923
mov eax, edx
lea rcx, [rax+rax*2]
add rcx, rsi
add rcx, 2
loc_3E901:
mov byte ptr [rdi+rax*4+3], 0FFh
mov dl, [rcx]
mov [rdi+rax*4+2], dl
mov dl, [rcx-1]
mov [rdi+rax*4+1], dl
mov dl, [rcx-2]
mov [rdi+rax*4], dl
add rcx, 0FFFFFFFFFFFFFFFDh
add rax, 0FFFFFFFFFFFFFFFFh
jb short loc_3E901
locret_3E923:
retn
| void stbi__create_png_alpha_expand8(unsigned __int8 *a1, unsigned __int8 *a2, int a3, int a4)
{
int v4; // edx
long long v5; // rax
bool v6; // cf
long long v7; // rax
unsigned __int8 *v8; // rcx
v4 = a3 - 1;
if ( a4 == 1 )
{
if ( v4 >= 0 )
{
v5 = (unsigned int)v4;
do
{
a1[2 * v5 + 1] = -1;
a1[2 * v5] = a2[v5];
v6 = v5-- != 0;
}
while ( v6 );
}
}
else if ( v4 >= 0 )
{
v7 = (unsigned int)v4;
v8 = &a2[3 * v4 + 2];
do
{
a1[4 * v7 + 3] = -1;
a1[4 * v7 + 2] = *v8;
a1[4 * v7 + 1] = *(v8 - 1);
a1[4 * v7] = *(v8 - 2);
v8 -= 3;
v6 = v7-- != 0;
}
while ( v6 );
}
}
| stbi__create_png_alpha_expand8:
DEC EDX
CMP ECX,0x1
JNZ 0x0013e8f0
TEST EDX,EDX
JS 0x0013e923
MOV EAX,EDX
LAB_0013e8dd:
MOV byte ptr [RDI + RAX*0x2 + 0x1],0xff
MOV CL,byte ptr [RSI + RAX*0x1]
MOV byte ptr [RDI + RAX*0x2],CL
ADD RAX,-0x1
JC 0x0013e8dd
JMP 0x0013e923
LAB_0013e8f0:
TEST EDX,EDX
JS 0x0013e923
MOV EAX,EDX
LEA RCX,[RAX + RAX*0x2]
ADD RCX,RSI
ADD RCX,0x2
LAB_0013e901:
MOV byte ptr [RDI + RAX*0x4 + 0x3],0xff
MOV DL,byte ptr [RCX]
MOV byte ptr [RDI + RAX*0x4 + 0x2],DL
MOV DL,byte ptr [RCX + -0x1]
MOV byte ptr [RDI + RAX*0x4 + 0x1],DL
MOV DL,byte ptr [RCX + -0x2]
MOV byte ptr [RDI + RAX*0x4],DL
ADD RCX,-0x3
ADD RAX,-0x1
JC 0x0013e901
LAB_0013e923:
RET
|
/* stbi__create_png_alpha_expand8(unsigned char*, unsigned char*, unsigned int, int) */
void stbi__create_png_alpha_expand8(uchar *param_1,uchar *param_2,uint param_3,int param_4)
{
ulong uVar1;
uchar *puVar2;
uint uVar3;
bool bVar4;
uVar3 = param_3 - 1;
if (param_4 == 1) {
if (-1 < (int)uVar3) {
uVar1 = (ulong)uVar3;
do {
param_1[uVar1 * 2 + 1] = 0xff;
param_1[uVar1 * 2] = param_2[uVar1];
bVar4 = uVar1 != 0;
uVar1 = uVar1 - 1;
} while (bVar4);
}
}
else if (-1 < (int)uVar3) {
uVar1 = (ulong)uVar3;
puVar2 = param_2 + uVar1 * 3 + 2;
do {
param_1[uVar1 * 4 + 3] = 0xff;
param_1[uVar1 * 4 + 2] = *puVar2;
param_1[uVar1 * 4 + 1] = puVar2[-1];
param_1[uVar1 * 4] = puVar2[-2];
puVar2 = puVar2 + -3;
bVar4 = uVar1 != 0;
uVar1 = uVar1 - 1;
} while (bVar4);
}
return;
}
| |
35,114 | plutovg_canvas_fill_preserve | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-canvas.c | void plutovg_canvas_fill_preserve(plutovg_canvas_t* canvas)
{
plutovg_rasterize(&canvas->fill_spans, canvas->path, &canvas->state->matrix, &canvas->clip_rect, NULL, canvas->state->winding);
if(canvas->state->clipping) {
plutovg_span_buffer_intersect(&canvas->clip_spans, &canvas->fill_spans, &canvas->state->clip_spans);
plutovg_blend(canvas, &canvas->clip_spans);
} else {
plutovg_blend(canvas, &canvas->fill_spans);
}
} | O0 | c | plutovg_canvas_fill_preserve:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
addq $0x58, %rdi
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdx
addq $0x20, %rdx
movq -0x8(%rbp), %rcx
addq $0x28, %rcx
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movl 0x80(%rax), %r9d
xorl %eax, %eax
movl %eax, %r8d
callq 0x13660
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
testb $0x1, 0x90(%rax)
je 0x513e
movq -0x8(%rbp), %rdi
addq $0x38, %rdi
movq -0x8(%rbp), %rsi
addq $0x58, %rsi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdx
addq $0x60, %rdx
callq 0x132c0
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0x38, %rsi
callq 0x365b0
jmp 0x514f
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0x58, %rsi
callq 0x365b0
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| plutovg_canvas_fill_preserve:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
add rdi, 58h ; 'X'
mov rax, [rbp+var_8]
mov rsi, [rax+10h]
mov rax, [rbp+var_8]
mov rdx, [rax+18h]
add rdx, 20h ; ' '
mov rcx, [rbp+var_8]
add rcx, 28h ; '('
mov rax, [rbp+var_8]
mov rax, [rax+18h]
mov r9d, [rax+80h]
xor eax, eax
mov r8d, eax
call plutovg_rasterize
mov rax, [rbp+var_8]
mov rax, [rax+18h]
test byte ptr [rax+90h], 1
jz short loc_513E
mov rdi, [rbp+var_8]
add rdi, 38h ; '8'
mov rsi, [rbp+var_8]
add rsi, 58h ; 'X'
mov rax, [rbp+var_8]
mov rdx, [rax+18h]
add rdx, 60h ; '`'
call plutovg_span_buffer_intersect
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_8]
add rsi, 38h ; '8'
call plutovg_blend
jmp short loc_514F
loc_513E:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_8]
add rsi, 58h ; 'X'
call plutovg_blend
loc_514F:
add rsp, 10h
pop rbp
retn
| long long plutovg_canvas_fill_preserve(long long a1)
{
plutovg_rasterize(
a1 + 88,
*(_QWORD *)(a1 + 16),
*(_QWORD *)(a1 + 24) + 32LL,
a1 + 40,
0LL,
*(unsigned int *)(*(_QWORD *)(a1 + 24) + 128LL));
if ( (*(_BYTE *)(*(_QWORD *)(a1 + 24) + 144LL) & 1) == 0 )
return plutovg_blend(a1, a1 + 88);
plutovg_span_buffer_intersect(a1 + 56, a1 + 88, *(_QWORD *)(a1 + 24) + 96LL);
return plutovg_blend(a1, a1 + 56);
}
| plutovg_canvas_fill_preserve:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x58
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RAX + 0x18]
ADD RDX,0x20
MOV RCX,qword ptr [RBP + -0x8]
ADD RCX,0x28
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x18]
MOV R9D,dword ptr [RAX + 0x80]
XOR EAX,EAX
MOV R8D,EAX
CALL 0x00113660
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x18]
TEST byte ptr [RAX + 0x90],0x1
JZ 0x0010513e
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x38
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0x58
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RAX + 0x18]
ADD RDX,0x60
CALL 0x001132c0
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0x38
CALL 0x001365b0
JMP 0x0010514f
LAB_0010513e:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0x58
CALL 0x001365b0
LAB_0010514f:
ADD RSP,0x10
POP RBP
RET
|
void plutovg_canvas_fill_preserve(long param_1)
{
plutovg_rasterize(param_1 + 0x58,*(int8 *)(param_1 + 0x10),*(long *)(param_1 + 0x18) + 0x20,
param_1 + 0x28,0,*(int4 *)(*(long *)(param_1 + 0x18) + 0x80));
if ((*(byte *)(*(long *)(param_1 + 0x18) + 0x90) & 1) == 0) {
plutovg_blend(param_1,param_1 + 0x58);
}
else {
plutovg_span_buffer_intersect(param_1 + 0x38,param_1 + 0x58,*(long *)(param_1 + 0x18) + 0x60);
plutovg_blend(param_1,param_1 + 0x38);
}
return;
}
| |
35,115 | plutovg_canvas_fill_preserve | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-canvas.c | void plutovg_canvas_fill_preserve(plutovg_canvas_t* canvas)
{
plutovg_rasterize(&canvas->fill_spans, canvas->path, &canvas->state->matrix, &canvas->clip_rect, NULL, canvas->state->winding);
if(canvas->state->clipping) {
plutovg_span_buffer_intersect(&canvas->clip_spans, &canvas->fill_spans, &canvas->state->clip_spans);
plutovg_blend(canvas, &canvas->clip_spans);
} else {
plutovg_blend(canvas, &canvas->fill_spans);
}
} | O1 | c | plutovg_canvas_fill_preserve:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x58(%rdi), %r14
movq 0x10(%rdi), %rsi
movq 0x18(%rdi), %rdx
leaq 0x28(%rdi), %rcx
movl 0x80(%rdx), %r9d
addq $0x20, %rdx
movq %r14, %rdi
xorl %r8d, %r8d
callq 0xd141
movq 0x18(%rbx), %rdx
cmpb $0x1, 0x90(%rdx)
jne 0x3f86
leaq 0x38(%rbx), %r15
addq $0x60, %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0xcf5c
movq %r15, %r14
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x1f418
| plutovg_canvas_fill_preserve:
push r15
push r14
push rbx
mov rbx, rdi
lea r14, [rdi+58h]
mov rsi, [rdi+10h]
mov rdx, [rdi+18h]
lea rcx, [rdi+28h]
mov r9d, [rdx+80h]
add rdx, 20h ; ' '
mov rdi, r14
xor r8d, r8d
call plutovg_rasterize
mov rdx, [rbx+18h]
cmp byte ptr [rdx+90h], 1
jnz short loc_3F86
lea r15, [rbx+38h]
add rdx, 60h ; '`'
mov rdi, r15
mov rsi, r14
call plutovg_span_buffer_intersect
mov r14, r15
loc_3F86:
mov rdi, rbx
mov rsi, r14
pop rbx
pop r14
pop r15
jmp plutovg_blend
| long long plutovg_canvas_fill_preserve(long long a1)
{
long long v1; // r14
long long v2; // rdx
v1 = a1 + 88;
plutovg_rasterize(
a1 + 88,
*(_QWORD *)(a1 + 16),
*(_QWORD *)(a1 + 24) + 32LL,
a1 + 40,
0LL,
*(unsigned int *)(*(_QWORD *)(a1 + 24) + 128LL));
v2 = *(_QWORD *)(a1 + 24);
if ( *(_BYTE *)(v2 + 144) == 1 )
{
plutovg_span_buffer_intersect(a1 + 56, v1, v2 + 96);
v1 = a1 + 56;
}
return plutovg_blend(a1, v1);
}
| plutovg_canvas_fill_preserve:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RDI
LEA R14,[RDI + 0x58]
MOV RSI,qword ptr [RDI + 0x10]
MOV RDX,qword ptr [RDI + 0x18]
LEA RCX,[RDI + 0x28]
MOV R9D,dword ptr [RDX + 0x80]
ADD RDX,0x20
MOV RDI,R14
XOR R8D,R8D
CALL 0x0010d141
MOV RDX,qword ptr [RBX + 0x18]
CMP byte ptr [RDX + 0x90],0x1
JNZ 0x00103f86
LEA R15,[RBX + 0x38]
ADD RDX,0x60
MOV RDI,R15
MOV RSI,R14
CALL 0x0010cf5c
MOV R14,R15
LAB_00103f86:
MOV RDI,RBX
MOV RSI,R14
POP RBX
POP R14
POP R15
JMP 0x0011f418
|
void plutovg_canvas_fill_preserve(long param_1)
{
long lVar1;
long lVar2;
lVar1 = param_1 + 0x58;
plutovg_rasterize(lVar1,*(int8 *)(param_1 + 0x10),*(long *)(param_1 + 0x18) + 0x20,
param_1 + 0x28,0,*(int4 *)(*(long *)(param_1 + 0x18) + 0x80));
lVar2 = lVar1;
if (*(char *)(*(long *)(param_1 + 0x18) + 0x90) == '\x01') {
lVar2 = param_1 + 0x38;
plutovg_span_buffer_intersect(lVar2,lVar1,*(long *)(param_1 + 0x18) + 0x60);
}
plutovg_blend(param_1,lVar2);
return;
}
| |
35,116 | Adc::RunCycles(int) | sp1187[P]veesem/src/core/spg200/adc.cc | void Adc::RunCycles(int cycles) {
if (active_channel_ >= 0) {
if (adc_clock_.Tick(cycles) && adc_clock_.GetDividedTick(ctrl_.clock)) {
switch (active_channel_) {
case 0:
data_.data = io_.GetAdc0();
break;
case 1:
data_.data = io_.GetAdc1();
break;
case 2:
data_.data = io_.GetAdc2();
break;
case 3:
data_.data = io_.GetAdc3();
break;
}
data_.ready = true;
status_.irq = true;
active_channel_ = -1;
if (ctrl_.int_enable) {
irq_.SetAdcIrq(true);
}
}
}
} | O2 | cpp | Adc::RunCycles(int):
pushq %rbx
cmpl $0x0, 0x10(%rdi)
js 0xb9c0
movq %rdi, %rbx
addq $0x8, %rdi
callq 0xba76
testb %al, %al
je 0xb9c0
movb (%rbx), %cl
shrb $0x2, %cl
andb $0x3, %cl
pushq $-0x1
popq %rax
shll %cl, %eax
notl %eax
testl %eax, 0xc(%rbx)
jne 0xb9c0
movl 0x10(%rbx), %eax
cmpq $0x3, %rax
ja 0xb9cf
leaq 0x7667d(%rip), %rcx # 0x81fe0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x20(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
jmp 0xb99a
movq 0x20(%rbx), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
jmp 0xb99a
movq 0x20(%rbx), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
jmp 0xb99a
movq 0x20(%rbx), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movl $0xfffffc00, %ecx # imm = 0xFFFFFC00
andl 0x4(%rbx), %ecx
andl $0x3ff, %eax # imm = 0x3FF
orl %ecx, %eax
orl $0x8000, %eax # imm = 0x8000
movw %ax, 0x4(%rbx)
orb $0x20, 0x3(%rbx)
orl $-0x1, 0x10(%rbx)
testb $0x2, 0x1(%rbx)
jne 0xb9c2
popq %rbx
retq
movq 0x18(%rbx), %rdi
pushq $0x1
popq %rsi
popq %rbx
jmp 0xd356
movzwl 0x4(%rbx), %eax
jmp 0xb9a9
nop
| _ZN3Adc9RunCyclesEi:
push rbx
cmp dword ptr [rdi+10h], 0
js loc_B9C0
mov rbx, rdi
add rdi, 8
call _ZN14DivisibleClockILi16ELi1EE4TickEi; DivisibleClock<16,1>::Tick(int)
test al, al
jz loc_B9C0
mov cl, [rbx]
shr cl, 2
and cl, 3
push 0FFFFFFFFFFFFFFFFh
pop rax
shl eax, cl
not eax
test [rbx+0Ch], eax
jnz short loc_B9C0
mov eax, [rbx+10h]
cmp rax, 3; switch 4 cases
ja short def_B96A; jumptable 000000000000B96A default case
lea rcx, jpt_B96A
movsxd rax, ds:(jpt_B96A - 81FE0h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_B96C:
mov rdi, [rbx+20h]; jumptable 000000000000B96A case 0
mov rax, [rdi]
call qword ptr [rax+18h]
jmp short loc_B99A
loc_B978:
mov rdi, [rbx+20h]; jumptable 000000000000B96A case 2
mov rax, [rdi]
call qword ptr [rax+28h]
jmp short loc_B99A
loc_B984:
mov rdi, [rbx+20h]; jumptable 000000000000B96A case 3
mov rax, [rdi]
call qword ptr [rax+30h]
jmp short loc_B99A
loc_B990:
mov rdi, [rbx+20h]; jumptable 000000000000B96A case 1
mov rax, [rdi]
call qword ptr [rax+20h]
loc_B99A:
mov ecx, 0FFFFFC00h
and ecx, [rbx+4]
and eax, 3FFh
or eax, ecx
loc_B9A9:
or eax, 8000h
mov [rbx+4], ax
or byte ptr [rbx+3], 20h
or dword ptr [rbx+10h], 0FFFFFFFFh
test byte ptr [rbx+1], 2
jnz short loc_B9C2
loc_B9C0:
pop rbx
retn
loc_B9C2:
mov rdi, [rbx+18h]; this
push 1
pop rsi; bool
pop rbx
jmp _ZN3Irq9SetAdcIrqEb; Irq::SetAdcIrq(bool)
def_B96A:
movzx eax, word ptr [rbx+4]; jumptable 000000000000B96A default case
jmp short loc_B9A9
| void Adc::RunCycles(Adc *this)
{
__int16 v1; // ax
unsigned int v2; // eax
if ( *((int *)this + 4) >= 0
&& (unsigned __int8)DivisibleClock<16,1>::Tick((char *)this + 8)
&& (~(-1 << ((*(_BYTE *)this >> 2) & 3)) & *((_DWORD *)this + 3)) == 0 )
{
switch ( *((_DWORD *)this + 4) )
{
case 0:
v1 = (*(long long ( **)(_QWORD))(**((_QWORD **)this + 4) + 24LL))(*((_QWORD *)this + 4));
goto LABEL_9;
case 1:
v1 = (*(long long ( **)(_QWORD))(**((_QWORD **)this + 4) + 32LL))(*((_QWORD *)this + 4));
goto LABEL_9;
case 2:
v1 = (*(long long ( **)(_QWORD))(**((_QWORD **)this + 4) + 40LL))(*((_QWORD *)this + 4));
goto LABEL_9;
case 3:
v1 = (*(long long ( **)(_QWORD))(**((_QWORD **)this + 4) + 48LL))(*((_QWORD *)this + 4));
LABEL_9:
v2 = *((_DWORD *)this + 1) & 0xFFFFFC00 | v1 & 0x3FF;
break;
default:
LOWORD(v2) = *((_WORD *)this + 2);
break;
}
*((_WORD *)this + 2) = v2 | 0x8000;
*((_BYTE *)this + 3) |= 0x20u;
*((_DWORD *)this + 4) = -1;
if ( (*((_BYTE *)this + 1) & 2) != 0 )
Irq::SetAdcIrq(*((Irq **)this + 3), 1);
}
}
| RunCycles:
PUSH RBX
CMP dword ptr [RDI + 0x10],0x0
JS 0x0010b9c0
MOV RBX,RDI
ADD RDI,0x8
CALL 0x0010ba76
TEST AL,AL
JZ 0x0010b9c0
MOV CL,byte ptr [RBX]
SHR CL,0x2
AND CL,0x3
PUSH -0x1
POP RAX
SHL EAX,CL
NOT EAX
TEST dword ptr [RBX + 0xc],EAX
JNZ 0x0010b9c0
MOV EAX,dword ptr [RBX + 0x10]
CMP RAX,0x3
JA 0x0010b9cf
LEA RCX,[0x181fe0]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_0:
MOV RDI,qword ptr [RBX + 0x20]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
JMP 0x0010b99a
caseD_2:
MOV RDI,qword ptr [RBX + 0x20]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x28]
JMP 0x0010b99a
caseD_3:
MOV RDI,qword ptr [RBX + 0x20]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x30]
JMP 0x0010b99a
caseD_1:
MOV RDI,qword ptr [RBX + 0x20]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x20]
LAB_0010b99a:
MOV ECX,0xfffffc00
AND ECX,dword ptr [RBX + 0x4]
AND EAX,0x3ff
OR EAX,ECX
LAB_0010b9a9:
OR EAX,0x8000
MOV word ptr [RBX + 0x4],AX
OR byte ptr [RBX + 0x3],0x20
OR dword ptr [RBX + 0x10],0xffffffff
TEST byte ptr [RBX + 0x1],0x2
JNZ 0x0010b9c2
LAB_0010b9c0:
POP RBX
RET
LAB_0010b9c2:
MOV RDI,qword ptr [RBX + 0x18]
PUSH 0x1
POP RSI
POP RBX
JMP 0x0010d356
default:
MOVZX EAX,word ptr [RBX + 0x4]
JMP 0x0010b9a9
|
/* Adc::RunCycles(int) */
void __thiscall Adc::RunCycles(Adc *this,int param_1)
{
char cVar1;
ushort uVar2;
if (*(int *)(this + 0x10) < 0) {
return;
}
cVar1 = DivisibleClock<16,1>::Tick((DivisibleClock<16,1> *)(this + 8),param_1);
if (cVar1 == '\0') {
return;
}
if ((*(uint *)(this + 0xc) & ~(-1 << ((byte)*this >> 2 & 3))) != 0) {
return;
}
switch(*(int4 *)(this + 0x10)) {
case 0:
uVar2 = (**(code **)(**(long **)(this + 0x20) + 0x18))();
break;
case 1:
uVar2 = (**(code **)(**(long **)(this + 0x20) + 0x20))();
break;
case 2:
uVar2 = (**(code **)(**(long **)(this + 0x20) + 0x28))();
break;
case 3:
uVar2 = (**(code **)(**(long **)(this + 0x20) + 0x30))();
break;
default:
uVar2 = *(ushort *)(this + 4);
goto LAB_0010b9a9;
}
uVar2 = uVar2 & 0x3ff | (ushort)*(int4 *)(this + 4) & 0xfc00;
LAB_0010b9a9:
*(ushort *)(this + 4) = uVar2 | 0x8000;
this[3] = (Adc)((byte)this[3] | 0x20);
*(int4 *)(this + 0x10) = 0xffffffff;
if (((byte)this[1] & 2) == 0) {
return;
}
Irq::SetAdcIrq(*(Irq **)(this + 0x18),true);
return;
}
| |
35,117 | minja::TextNode::~TextNode() | monkey531[P]llama/common/minja.hpp | TextNode(const Location & location, const std::string& t) : TemplateNode(location), text(t) {} | O3 | cpp | minja::TextNode::~TextNode():
pushq %rbx
movq %rdi, %rbx
leaq 0x8d099(%rip), %rax # 0x12b228
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x20(%rdi), %rdi
leaq 0x30(%rbx), %rax
cmpq %rax, %rdi
je 0x9e1ae
movq (%rax), %rsi
incq %rsi
callq 0x1a8e0
leaq 0x8ce23(%rip), %rax # 0x12afd8
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x9e1cb
popq %rbx
jmp 0x6de32
popq %rbx
retq
nop
| _ZN5minja8TextNodeD2Ev:
push rbx
mov rbx, rdi
lea rax, _ZTVN5minja8TextNodeE; `vtable for'minja::TextNode
add rax, 10h
mov [rdi], rax
mov rdi, [rdi+20h]; void *
lea rax, [rbx+30h]
cmp rdi, rax
jz short loc_9E1AE
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_9E1AE:
lea rax, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode
add rax, 10h
mov [rbx], rax
mov rdi, [rbx+10h]
test rdi, rdi
jz short loc_9E1CB
pop rbx
jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9E1CB:
pop rbx
retn
| void minja::TextNode::~TextNode(minja::TextNode *this)
{
char *v2; // rdi
volatile signed __int32 *v3; // rdi
*(_QWORD *)this = &`vtable for'minja::TextNode + 2;
v2 = (char *)*((_QWORD *)this + 4);
if ( v2 != (char *)this + 48 )
operator delete(v2, *((_QWORD *)this + 6) + 1LL);
*(_QWORD *)this = &`vtable for'minja::TemplateNode + 2;
v3 = (volatile signed __int32 *)*((_QWORD *)this + 2);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
}
| ~TextNode:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x22b228]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x20]
LEA RAX,[RBX + 0x30]
CMP RDI,RAX
JZ 0x0019e1ae
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x0011a8e0
LAB_0019e1ae:
LEA RAX,[0x22afd8]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x10]
TEST RDI,RDI
JZ 0x0019e1cb
POP RBX
JMP 0x0016de32
LAB_0019e1cb:
POP RBX
RET
|
/* minja::TextNode::~TextNode() */
void __thiscall minja::TextNode::~TextNode(TextNode *this)
{
*(int ***)this = &PTR_do_render_0022b238;
if (*(TextNode **)(this + 0x20) != this + 0x30) {
operator_delete(*(TextNode **)(this + 0x20),*(long *)(this + 0x30) + 1);
}
*(int ***)this = &PTR___cxa_pure_virtual_0022afe8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10));
return;
}
return;
}
| |
35,118 | std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<bool&>(bool&, bool) | monkey531[P]llama/common/./json.hpp | std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
{
JSON_ASSERT(!keep_stack.empty());
// do not handle this value if we know it would be added to a discarded
// container
if (!keep_stack.back())
{
return {false, nullptr};
}
// create value
auto value = BasicJsonType(std::forward<Value>(v));
// check callback
const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
// do not handle this value if we just learnt it shall be discarded
if (!keep)
{
return {false, nullptr};
}
if (ref_stack.empty())
{
root = std::move(value);
return {true, & root};
}
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (!ref_stack.back())
{
return {false, nullptr};
}
// we now only expect arrays and objects
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
// array
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value));
return {true, & (ref_stack.back()->m_data.m_value.array->back())};
}
// object
JSON_ASSERT(ref_stack.back()->is_object());
// check if we should store an element for the current key
JSON_ASSERT(!key_keep_stack.empty());
const bool store_element = key_keep_stack.back();
key_keep_stack.pop_back();
if (!store_element)
{
return {false, nullptr};
}
JSON_ASSERT(object_element);
*object_element = std::move(value);
return {true, object_element};
} | O0 | cpp | std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<bool&>(bool&, bool):
subq $0x148, %rsp # imm = 0x148
movb %dl, %al
movq %rdi, 0x130(%rsp)
movq %rsi, 0x128(%rsp)
andb $0x1, %al
movb %al, 0x127(%rsp)
movq 0x130(%rsp), %rdi
movq %rdi, 0x40(%rsp)
addq $0x20, %rdi
callq 0x701e0
movq %rax, 0x110(%rsp)
movq %rdx, 0x118(%rsp)
leaq 0x110(%rsp), %rdi
callq 0x6e2b0
xorb $-0x1, %al
testb $0x1, %al
jne 0xaf75d
jmp 0xaf793
movb $0x0, 0x10f(%rsp)
movq $0x0, 0x100(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x10f(%rsp), %rsi
leaq 0x100(%rsp), %rdx
callq 0xad230
jmp 0xafaff
movq 0x128(%rsp), %rsi
leaq 0xf0(%rsp), %rdi
callq 0xafb30
movb $0x1, %al
testb $0x1, 0x127(%rsp)
movb %al, 0x3f(%rsp)
jne 0xaf7fb
movq 0x40(%rsp), %rdi
movq %rdi, %rax
subq $-0x80, %rax
movq %rax, 0x30(%rsp)
addq $0x8, %rdi
callq 0xaccb0
movq 0x30(%rsp), %rdi
movl %eax, %esi
movl $0x5, %edx
leaq 0xf0(%rsp), %rcx
callq 0xacc50
movb %al, 0x3e(%rsp)
jmp 0xaf7f1
movb 0x3e(%rsp), %al
movb %al, 0x3f(%rsp)
jmp 0xaf7fb
movb 0x3f(%rsp), %al
andb $0x1, %al
movb %al, 0xef(%rsp)
testb $0x1, 0xef(%rsp)
jne 0xaf87b
movb $0x0, 0xdb(%rsp)
movq $0x0, 0xd0(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xdb(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0xad230
jmp 0xaf845
movl $0x1, 0xcc(%rsp)
jmp 0xafaf2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xe0(%rsp)
movl %eax, 0xdc(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x870b0
jmp 0xafb16
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xad260
testb $0x1, %al
jne 0xaf88f
jmp 0xaf90c
leaq 0xb8(%rsp), %rdi
movq %rdi, 0x28(%rsp)
leaq 0xf0(%rsp), %rsi
callq 0x89d20
movq 0x28(%rsp), %rsi
movq 0x40(%rsp), %rax
movq (%rax), %rdi
callq 0x90fe0
movq 0x28(%rsp), %rdi
callq 0x870b0
movq 0x40(%rsp), %rax
movb $0x1, 0xb7(%rsp)
movq (%rax), %rax
movq %rax, 0xa8(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xb7(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xad2b0
jmp 0xaf8fc
movl $0x1, 0xcc(%rsp)
jmp 0xafaf2
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xad170
cmpq $0x0, (%rax)
jne 0xaf963
movb $0x0, 0xa7(%rsp)
movq $0x0, 0x98(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xa7(%rsp), %rsi
leaq 0x98(%rsp), %rdx
callq 0xad230
jmp 0xaf953
movl $0x1, 0xcc(%rsp)
jmp 0xafaf2
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xad170
movq (%rax), %rdi
callq 0x87f80
testb $0x1, %al
jne 0xaf97f
jmp 0xaf9fc
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xad170
movq (%rax), %rax
movq 0x8(%rax), %rdi
leaq 0xf0(%rsp), %rsi
callq 0x8e940
jmp 0xaf9a3
movq 0x40(%rsp), %rdi
movb $0x1, 0x97(%rsp)
addq $0x8, %rdi
callq 0xad170
movq (%rax), %rax
movq 0x8(%rax), %rdi
callq 0x8e260
movq %rax, 0x88(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x97(%rsp), %rsi
leaq 0x88(%rsp), %rdx
callq 0xad2b0
jmp 0xaf9ec
movl $0x1, 0xcc(%rsp)
jmp 0xafaf2
movq 0x40(%rsp), %rdi
addq $0x48, %rdi
callq 0x701e0
movq %rdx, 0x18(%rsp)
movq %rax, 0x20(%rsp)
jmp 0xafa16
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x70(%rsp)
movq %rax, 0x78(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x6e2b0
movq 0x40(%rsp), %rdi
movb %al, 0x87(%rsp)
addq $0x48, %rdi
callq 0x70260
jmp 0xafa4b
testb $0x1, 0x87(%rsp)
jne 0xafa89
movb $0x0, 0x6f(%rsp)
movq $0x0, 0x60(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x6f(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0xad230
jmp 0xafa7c
movl $0x1, 0xcc(%rsp)
jmp 0xafaf2
leaq 0x50(%rsp), %rdi
movq %rdi, 0x8(%rsp)
leaq 0xf0(%rsp), %rsi
callq 0x89d20
movq 0x40(%rsp), %rax
movq 0x8(%rsp), %rsi
movq %rax, %rcx
addq $0x70, %rcx
movq %rcx, 0x10(%rsp)
movq 0x70(%rax), %rdi
callq 0x90fe0
movq 0x8(%rsp), %rdi
callq 0x870b0
movq 0x10(%rsp), %rdx
movb $0x1, 0x4f(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x4f(%rsp), %rsi
callq 0xad2e0
jmp 0xafae7
movl $0x1, 0xcc(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x870b0
movb 0x138(%rsp), %al
movq 0x140(%rsp), %rdx
addq $0x148, %rsp # imm = 0x148
retq
movq 0xe0(%rsp), %rdi
callq 0x52ae0
nopw %cs:(%rax,%rax)
nopl (%rax)
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRbEESt4pairIbPSF_EOT_b:
sub rsp, 148h
mov al, dl
mov [rsp+148h+var_18], rdi
mov [rsp+148h+var_20], rsi
and al, 1
mov [rsp+148h+var_21], al
mov rdi, [rsp+148h+var_18]
mov [rsp+148h+var_108], rdi
add rdi, 20h ; ' '
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
mov [rsp+148h+var_38], rax
mov [rsp+148h+var_30], rdx
lea rdi, [rsp+148h+var_38]
call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void)
xor al, 0FFh
test al, 1
jnz short loc_AF75D
jmp short loc_AF793
loc_AF75D:
mov [rsp+148h+var_39], 0
mov [rsp+148h+var_48], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_39]
lea rdx, [rsp+148h+var_48]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp loc_AFAFF
loc_AF793:
mov rsi, [rsp+148h+var_20]
lea rdi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
mov al, 1
test [rsp+148h+var_21], 1
mov [rsp+148h+var_109], al
jnz short loc_AF7FB
mov rdi, [rsp+148h+var_108]
mov rax, rdi
sub rax, 0FFFFFFFFFFFFFF80h
mov [rsp+148h+var_118], rax
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::size(void)
mov rdi, [rsp+148h+var_118]
mov esi, eax
mov edx, 5
lea rcx, [rsp+148h+var_58]
call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)
mov [rsp+148h+var_10A], al
jmp short $+2
loc_AF7F1:
mov al, [rsp+148h+var_10A]
mov [rsp+148h+var_109], al
jmp short $+2
loc_AF7FB:
mov al, [rsp+148h+var_109]
and al, 1
mov [rsp+148h+var_59], al
test [rsp+148h+var_59], 1
jnz short loc_AF87B
mov [rsp+148h+var_6D], 0
mov [rsp+148h+var_78], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_6D]
lea rdx, [rsp+148h+var_78]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_AF845:
mov [rsp+148h+var_7C], 1
jmp loc_AFAF2
mov rcx, rax
mov eax, edx
mov [rsp+arg_D8], rcx
mov [rsp+arg_D4], eax
lea rdi, [rsp+arg_E8]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
jmp loc_AFB16
loc_AF87B:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::empty(void)
test al, 1
jnz short loc_AF88F
jmp short loc_AF90C
loc_AF88F:
lea rdi, [rsp+148h+var_90]
mov [rsp+148h+var_120], rdi
lea rsi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rsi, [rsp+148h+var_120]
mov rax, [rsp+148h+var_108]
mov rdi, [rax]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+148h+var_120]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rax, [rsp+148h+var_108]
mov [rsp+148h+var_91], 1
mov rax, [rax]
mov [rsp+148h+var_A0], rax
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_91]
lea rdx, [rsp+148h+var_A0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_AF8FC:
mov [rsp+148h+var_7C], 1
jmp loc_AFAF2
loc_AF90C:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
cmp qword ptr [rax], 0
jnz short loc_AF963
mov [rsp+148h+var_A1], 0
mov [rsp+148h+var_B0], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_A1]
lea rdx, [rsp+148h+var_B0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_AF953:
mov [rsp+148h+var_7C], 1
jmp loc_AFAF2
loc_AF963:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void)
test al, 1
jnz short loc_AF97F
jmp short loc_AF9FC
loc_AF97F:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rax, [rax]
mov rdi, [rax+8]
lea rsi, [rsp+148h+var_58]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
jmp short $+2
loc_AF9A3:
mov rdi, [rsp+148h+var_108]
mov [rsp+148h+var_B1], 1
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rax, [rax]
mov rdi, [rax+8]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::back(void)
mov [rsp+148h+var_C0], rax
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_B1]
lea rdx, [rsp+148h+var_C0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_AF9EC:
mov [rsp+148h+var_7C], 1
jmp loc_AFAF2
loc_AF9FC:
mov rdi, [rsp+148h+var_108]
add rdi, 48h ; 'H'
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
mov [rsp+148h+var_130], rdx
mov [rsp+148h+var_128], rax
jmp short $+2
loc_AFA16:
mov rax, [rsp+148h+var_130]
mov rcx, [rsp+148h+var_128]
mov [rsp+148h+var_D8], rcx
mov [rsp+148h+var_D0], rax
lea rdi, [rsp+148h+var_D8]
call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void)
mov rdi, [rsp+148h+var_108]
mov [rsp+148h+var_C1], al
add rdi, 48h ; 'H'
call _ZNSt6vectorIbSaIbEE8pop_backEv; std::vector<bool>::pop_back(void)
jmp short $+2
loc_AFA4B:
test [rsp+148h+var_C1], 1
jnz short loc_AFA89
mov [rsp+148h+var_D9], 0
mov [rsp+148h+var_E8], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_D9]
lea rdx, [rsp+148h+var_E8]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_AFA7C:
mov [rsp+148h+var_7C], 1
jmp short loc_AFAF2
loc_AFA89:
lea rdi, [rsp+148h+var_F8]
mov [rsp+148h+var_140], rdi
lea rsi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rax, [rsp+148h+var_108]
mov rsi, [rsp+148h+var_140]
mov rcx, rax
add rcx, 70h ; 'p'
mov [rsp+148h+var_138], rcx
mov rdi, [rax+70h]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+148h+var_140]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rdx, [rsp+148h+var_138]
mov [rsp+148h+var_F9], 1
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_F9]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_
jmp short $+2
loc_AFAE7:
mov [rsp+148h+var_7C], 1
loc_AFAF2:
lea rdi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
loc_AFAFF:
mov al, [rsp+148h+var_10]
mov rdx, [rsp+148h+var_8]
add rsp, 148h
retn
loc_AFB16:
mov rdi, [rsp+arg_D8]
call __Unwind_Resume
| char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<bool &>(
long long a1,
long long a2,
char a3)
{
long long v3; // rdx
int v4; // eax
_BYTE **v5; // rax
long long v6; // rax
long long v7; // rdx
long long v8; // rcx
long long v9; // r8
long long v10; // r9
long long v11; // rax
long long v12; // rdx
char v14; // [rsp+3Fh] [rbp-109h]
char v15; // [rsp+4Fh] [rbp-F9h] BYREF
__int128 v16; // [rsp+50h] [rbp-F8h] BYREF
long long v17; // [rsp+60h] [rbp-E8h]
char v18; // [rsp+6Fh] [rbp-D9h] BYREF
_QWORD v19[2]; // [rsp+70h] [rbp-D8h] BYREF
bool v20; // [rsp+87h] [rbp-C1h]
long long v21; // [rsp+88h] [rbp-C0h] BYREF
char v22; // [rsp+97h] [rbp-B1h] BYREF
long long v23; // [rsp+98h] [rbp-B0h]
char v24; // [rsp+A7h] [rbp-A1h] BYREF
char *v25; // [rsp+A8h] [rbp-A0h] BYREF
char v26; // [rsp+B7h] [rbp-91h] BYREF
char v27[20]; // [rsp+B8h] [rbp-90h] BYREF
int v28; // [rsp+CCh] [rbp-7Ch]
long long v29; // [rsp+D0h] [rbp-78h]
_BYTE v30[21]; // [rsp+DBh] [rbp-6Dh] BYREF
_BYTE v31[16]; // [rsp+F0h] [rbp-58h] BYREF
long long v32; // [rsp+100h] [rbp-48h]
char v33; // [rsp+10Fh] [rbp-39h] BYREF
_QWORD v34[2]; // [rsp+110h] [rbp-38h] BYREF
char v35; // [rsp+127h] [rbp-21h]
long long v36; // [rsp+128h] [rbp-20h]
long long v37; // [rsp+130h] [rbp-18h]
_BYTE v38[8]; // [rsp+138h] [rbp-10h] BYREF
v37 = a1;
v36 = a2;
v35 = a3 & 1;
v34[0] = std::vector<bool>::back(a1 + 32);
v34[1] = v3;
if ( std::_Bit_reference::operator bool((long long)v34) )
{
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_(
v31,
v36);
v14 = 1;
if ( (v35 & 1) == 0 )
{
v4 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::size((_QWORD *)(a1 + 8));
v14 = std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()(
(std::_Function_base *)(a1 + 128),
v4,
5,
(long long)v31);
}
v30[20] = v14 & 1;
if ( (v14 & 1) != 0 )
{
if ( (std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::empty(a1 + 8) & 1) != 0 )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v27,
(long long)v31);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(char **)a1,
v27);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v27);
v26 = 1;
v25 = *(char **)a1;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v38,
&v26,
&v25);
v28 = 1;
}
else if ( *(_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8) )
{
v5 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v5) )
{
v6 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
*(_QWORD *)(*(_QWORD *)v6 + 8LL),
(long long)v31,
v7,
v8,
v9,
v10);
v22 = 1;
v11 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
v21 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::back(*(_QWORD *)(*(_QWORD *)v11 + 8LL));
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v38,
&v22,
&v21);
v28 = 1;
}
else
{
v19[0] = std::vector<bool>::back(a1 + 72);
v19[1] = v12;
v20 = std::_Bit_reference::operator bool((long long)v19);
std::vector<bool>::pop_back(a1 + 72);
if ( v20 )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
&v16,
(long long)v31);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(char **)(a1 + 112),
(char *)&v16);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v16);
v15 = 1;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_(
(long long)v38,
&v15,
(_QWORD *)(a1 + 112));
}
else
{
v18 = 0;
v17 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v38,
&v18);
}
v28 = 1;
}
}
else
{
v24 = 0;
v23 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v38,
&v24);
v28 = 1;
}
}
else
{
v30[0] = 0;
v29 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v38,
v30);
v28 = 1;
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v31);
}
else
{
v33 = 0;
v32 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v38,
&v33);
}
return v38[0];
}
| handle_value<bool&>:
SUB RSP,0x148
MOV AL,DL
MOV qword ptr [RSP + 0x130],RDI
MOV qword ptr [RSP + 0x128],RSI
AND AL,0x1
MOV byte ptr [RSP + 0x127],AL
MOV RDI,qword ptr [RSP + 0x130]
MOV qword ptr [RSP + 0x40],RDI
ADD RDI,0x20
CALL 0x001701e0
MOV qword ptr [RSP + 0x110],RAX
MOV qword ptr [RSP + 0x118],RDX
LEA RDI,[RSP + 0x110]
CALL 0x0016e2b0
XOR AL,0xff
TEST AL,0x1
JNZ 0x001af75d
JMP 0x001af793
LAB_001af75d:
MOV byte ptr [RSP + 0x10f],0x0
MOV qword ptr [RSP + 0x100],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x10f]
LEA RDX,[RSP + 0x100]
CALL 0x001ad230
JMP 0x001afaff
LAB_001af793:
MOV RSI,qword ptr [RSP + 0x128]
LEA RDI,[RSP + 0xf0]
CALL 0x001afb30
MOV AL,0x1
TEST byte ptr [RSP + 0x127],0x1
MOV byte ptr [RSP + 0x3f],AL
JNZ 0x001af7fb
MOV RDI,qword ptr [RSP + 0x40]
MOV RAX,RDI
SUB RAX,-0x80
MOV qword ptr [RSP + 0x30],RAX
ADD RDI,0x8
CALL 0x001accb0
MOV RDI,qword ptr [RSP + 0x30]
MOV ESI,EAX
LAB_001af7d9:
MOV EDX,0x5
LEA RCX,[RSP + 0xf0]
CALL 0x001acc50
MOV byte ptr [RSP + 0x3e],AL
JMP 0x001af7f1
LAB_001af7f1:
MOV AL,byte ptr [RSP + 0x3e]
MOV byte ptr [RSP + 0x3f],AL
JMP 0x001af7fb
LAB_001af7fb:
MOV AL,byte ptr [RSP + 0x3f]
AND AL,0x1
MOV byte ptr [RSP + 0xef],AL
TEST byte ptr [RSP + 0xef],0x1
JNZ 0x001af87b
MOV byte ptr [RSP + 0xdb],0x0
MOV qword ptr [RSP + 0xd0],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xdb]
LEA RDX,[RSP + 0xd0]
CALL 0x001ad230
JMP 0x001af845
LAB_001af845:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001afaf2
LAB_001af87b:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001ad260
TEST AL,0x1
JNZ 0x001af88f
JMP 0x001af90c
LAB_001af88f:
LEA RDI,[RSP + 0xb8]
MOV qword ptr [RSP + 0x28],RDI
LEA RSI,[RSP + 0xf0]
CALL 0x00189d20
MOV RSI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x40]
MOV RDI,qword ptr [RAX]
CALL 0x00190fe0
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x001870b0
MOV RAX,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0xb7],0x1
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0xa8],RAX
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xb7]
LEA RDX,[RSP + 0xa8]
CALL 0x001ad2b0
JMP 0x001af8fc
LAB_001af8fc:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001afaf2
LAB_001af90c:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001ad170
CMP qword ptr [RAX],0x0
JNZ 0x001af963
MOV byte ptr [RSP + 0xa7],0x0
MOV qword ptr [RSP + 0x98],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xa7]
LEA RDX,[RSP + 0x98]
CALL 0x001ad230
JMP 0x001af953
LAB_001af953:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001afaf2
LAB_001af963:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001ad170
MOV RDI,qword ptr [RAX]
CALL 0x00187f80
TEST AL,0x1
JNZ 0x001af97f
JMP 0x001af9fc
LAB_001af97f:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001ad170
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0xf0]
CALL 0x0018e940
JMP 0x001af9a3
LAB_001af9a3:
MOV RDI,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0x97],0x1
ADD RDI,0x8
CALL 0x001ad170
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x0018e260
MOV qword ptr [RSP + 0x88],RAX
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x97]
LEA RDX,[RSP + 0x88]
CALL 0x001ad2b0
JMP 0x001af9ec
LAB_001af9ec:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001afaf2
LAB_001af9fc:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x48
CALL 0x001701e0
MOV qword ptr [RSP + 0x18],RDX
MOV qword ptr [RSP + 0x20],RAX
JMP 0x001afa16
LAB_001afa16:
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x70],RCX
MOV qword ptr [RSP + 0x78],RAX
LEA RDI,[RSP + 0x70]
CALL 0x0016e2b0
MOV RDI,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0x87],AL
ADD RDI,0x48
CALL 0x00170260
JMP 0x001afa4b
LAB_001afa4b:
TEST byte ptr [RSP + 0x87],0x1
JNZ 0x001afa89
MOV byte ptr [RSP + 0x6f],0x0
MOV qword ptr [RSP + 0x60],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x6f]
LEA RDX,[RSP + 0x60]
CALL 0x001ad230
JMP 0x001afa7c
LAB_001afa7c:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001afaf2
LAB_001afa89:
LEA RDI,[RSP + 0x50]
MOV qword ptr [RSP + 0x8],RDI
LEA RSI,[RSP + 0xf0]
CALL 0x00189d20
MOV RAX,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP + 0x8]
MOV RCX,RAX
ADD RCX,0x70
MOV qword ptr [RSP + 0x10],RCX
MOV RDI,qword ptr [RAX + 0x70]
CALL 0x00190fe0
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001870b0
MOV RDX,qword ptr [RSP + 0x10]
MOV byte ptr [RSP + 0x4f],0x1
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x4f]
CALL 0x001ad2e0
LAB_001afae5:
JMP 0x001afae7
LAB_001afae7:
MOV dword ptr [RSP + 0xcc],0x1
LAB_001afaf2:
LEA RDI,[RSP + 0xf0]
CALL 0x001870b0
LAB_001afaff:
MOV AL,byte ptr [RSP + 0x138]
MOV RDX,qword ptr [RSP + 0x140]
ADD RSP,0x148
RET
|
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, 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::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::handle_value<bool&>(bool&, bool) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::handle_value<bool&>
(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this,bool *param_1,bool param_2)
{
bool bVar1;
int4 uVar2;
ulong uVar3;
long *plVar4;
int8 *puVar5;
int8 uVar6;
int1 auVar7 [16];
byte local_109;
int1 local_f9;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_f8 [16];
int8 local_e8;
int1 local_d9;
int1 local_d8 [16];
byte local_c1;
int8 local_c0;
int1 local_b1;
int8 local_b0;
int1 local_a1;
int8 local_a0;
int1 local_91;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_90 [20];
int4 local_7c;
int8 local_78;
int1 local_6d [20];
byte local_59;
basic_json local_58 [16];
int8 local_48;
int1 local_39;
_Bit_reference local_38 [23];
byte local_21;
bool *local_20;
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*local_18;
int1 local_10 [8];
int8 local_8;
local_21 = param_2;
local_20 = param_1;
local_18 = this;
local_38._0_16_ =
std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x20));
bVar1 = std::_Bit_reference::operator_cast_to_bool(local_38);
if (((bVar1 ^ 0xffU) & 1) == 0) {
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
(local_58,local_20);
local_109 = 1;
if ((local_21 & 1) == 0) {
uVar2 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::size((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
/* try { // try from 001af7d9 to 001afae4 has its CatchHandler @ 001af855 */
local_109 = std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::operator()((function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
*)(this + 0x80),uVar2,5,local_58);
}
local_59 = local_109 & 1;
if (local_59 == 0) {
local_6d[0] = 0;
local_78 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,local_6d,&local_78);
}
else {
uVar3 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::empty((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if ((uVar3 & 1) == 0) {
plVar4 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if (*plVar4 == 0) {
local_a1 = 0;
local_b0 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_a1,&local_b0);
}
else {
puVar5 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_array((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar5);
if ((uVar3 & 1) == 0) {
local_d8 = std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x48));
local_c1 = std::_Bit_reference::operator_cast_to_bool((_Bit_reference *)local_d8);
std::vector<bool,std::allocator<bool>>::pop_back
((vector<bool,std::allocator<bool>> *)(this + 0x48));
if ((local_c1 & 1) == 0) {
local_d9 = 0;
local_e8 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_d9,&local_e8);
}
else {
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_f8,local_58);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(this + 0x70),local_f8);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_f8);
local_f9 = 1;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_
(local_10,&local_f9,this + 0x70);
}
}
else {
plVar4 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(*plVar4 + 8),local_58);
local_b1 = 1;
plVar4 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
local_c0 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::back(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(*plVar4 + 8));
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_b1,&local_c0);
}
}
}
else {
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_90,local_58);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)this,local_90);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_90);
local_91 = 1;
local_a0 = *(int8 *)this;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_91,&local_a0);
}
}
local_7c = 1;
uVar6 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)local_58);
}
else {
local_39 = 0;
local_48 = 0;
uVar6 = _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_39,&local_48);
}
auVar7._1_7_ = (int7)((ulong)uVar6 >> 8);
auVar7[0] = local_10[0];
auVar7._8_8_ = local_8;
return auVar7;
}
| |
35,119 | std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<bool&>(bool&, bool) | monkey531[P]llama/common/./json.hpp | std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
{
JSON_ASSERT(!keep_stack.empty());
// do not handle this value if we know it would be added to a discarded
// container
if (!keep_stack.back())
{
return {false, nullptr};
}
// create value
auto value = BasicJsonType(std::forward<Value>(v));
// check callback
const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
// do not handle this value if we just learnt it shall be discarded
if (!keep)
{
return {false, nullptr};
}
if (ref_stack.empty())
{
root = std::move(value);
return {true, & root};
}
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (!ref_stack.back())
{
return {false, nullptr};
}
// we now only expect arrays and objects
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
// array
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value));
return {true, & (ref_stack.back()->m_data.m_value.array->back())};
}
// object
JSON_ASSERT(ref_stack.back()->is_object());
// check if we should store an element for the current key
JSON_ASSERT(!key_keep_stack.empty());
const bool store_element = key_keep_stack.back();
key_keep_stack.pop_back();
if (!store_element)
{
return {false, nullptr};
}
JSON_ASSERT(object_element);
*object_element = std::move(value);
return {true, object_element};
} | O3 | cpp | std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<bool&>(bool&, bool):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movl %edx, %ebp
movq %rdi, %rbx
movabsq $-0x8000000000000000, %r14 # imm = 0x8000000000000000
movl 0x38(%rdi), %eax
leaq -0x1(%rax), %rcx
addq $0x3e, %rax
testq %rcx, %rcx
cmovnsq %rcx, %rax
sarq $0x6, %rax
shlq $0x3, %rax
addq 0x30(%rdi), %rax
leaq 0x3f(%r14), %rdx
andq %rcx, %rdx
xorl %edi, %edi
cmpq %r14, %rdx
setbe %dil
movq -0x8(%rax,%rdi,8), %rax
btq %rcx, %rax
jae 0x38e22
movzbl (%rsi), %esi
leaq 0x10(%rsp), %rdi
movb %sil, -0x8(%rdi)
callq 0x2928a
testb %bpl, %bpl
jne 0x38ddf
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
shrq $0x3, %rax
movl %eax, 0x1c(%rsp)
movb $0x5, 0x7(%rsp)
cmpq $0x0, 0x90(%rbx)
je 0x38f2b
leaq 0x80(%rbx), %rdi
leaq 0x1c(%rsp), %rsi
leaq 0x7(%rsp), %rdx
leaq 0x8(%rsp), %rcx
callq *0x98(%rbx)
testb %al, %al
je 0x38f0e
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x38e2c
movq -0x8(%rax), %rax
testq %rax, %rax
je 0x38f0e
cmpb $0x2, (%rax)
jne 0x38e6f
movq 0x8(%rax), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2a6ea
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %r14
addq $-0x10, %r14
jmp 0x38f0a
xorl %ebx, %ebx
xorl %r14d, %r14d
jmp 0x38f1d
movups 0x8(%rsp), %xmm0
leaq 0x30(%rsp), %rdi
movaps %xmm0, (%rdi)
movb $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq (%rbx), %rax
movb (%rax), %cl
movb (%rdi), %dl
movb %dl, (%rax)
movb %cl, (%rdi)
movq 0x8(%rax), %rcx
movq 0x8(%rdi), %rdx
movq %rdx, 0x8(%rax)
movq %rcx, 0x8(%rdi)
callq 0x293d4
movq (%rbx), %r14
jmp 0x38f0a
movq 0x58(%rbx), %rax
movl 0x60(%rbx), %esi
leaq -0x1(%rsi), %rcx
movq %rsi, %rdx
addq $0x3e, %rdx
testq %rcx, %rcx
cmovnsq %rcx, %rdx
sarq $0x6, %rdx
leaq (%rax,%rdx,8), %rdi
leaq 0x3f(%r14), %rdx
andq %rcx, %rdx
xorl %r8d, %r8d
cmpq %r14, %rdx
setbe %r8b
movl $0x1, %edx
shlq %cl, %rdx
andq -0x8(%rdi,%r8,8), %rdx
subl $0x1, %esi
movl %esi, 0x60(%rbx)
jae 0x38ec5
movl $0x3f, 0x60(%rbx)
addq $-0x8, %rax
movq %rax, 0x58(%rbx)
testq %rdx, %rdx
je 0x38f0e
movups 0x8(%rsp), %xmm0
leaq 0x20(%rsp), %rdi
movaps %xmm0, (%rdi)
movb $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq 0x70(%rbx), %rax
movb (%rax), %cl
movb (%rdi), %dl
movb %dl, (%rax)
movb %cl, (%rdi)
movq 0x8(%rax), %rcx
movq 0x8(%rdi), %rdx
movq %rdx, 0x8(%rax)
movq %rcx, 0x8(%rdi)
callq 0x293d4
movq 0x70(%rbx), %r14
movb $0x1, %bl
jmp 0x38f13
xorl %ebx, %ebx
xorl %r14d, %r14d
leaq 0x8(%rsp), %rdi
callq 0x293d4
movl %ebx, %eax
movq %r14, %rdx
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x192a0
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x293d4
movq %rbx, %rdi
callq 0x19e10
nop
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueINS1_7value_tEEESt4pairIbPSF_EOT_b:
push rbp
push r14
push rbx
sub rsp, 40h
mov ebp, edx
mov rbx, rdi
mov r14, 8000000000000000h
mov eax, [rdi+38h]
lea rcx, [rax-1]
add rax, 3Eh ; '>'
test rcx, rcx
cmovns rax, rcx
sar rax, 6
shl rax, 3
add rax, [rdi+30h]
lea rdx, [r14+3Fh]
and rdx, rcx
xor edi, edi
cmp rdx, r14
setbe dil
mov rax, [rax+rdi*8-8]
bt rax, rcx
jnb loc_38E22
movzx esi, byte ptr [rsi]
lea rdi, [rsp+58h+var_50+8]
mov [rdi-8], sil
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_valueC2ENS0_6detail7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t)
test bpl, bpl
jnz short loc_38DDF
mov rax, [rbx+10h]
sub rax, [rbx+8]
shr rax, 3
mov [rsp+58h+var_3C], eax
mov [rsp+58h+var_51], 5
cmp qword ptr [rbx+90h], 0
jz loc_38F2B
lea rdi, [rbx+80h]
lea rsi, [rsp+58h+var_3C]
lea rdx, [rsp+58h+var_51]
lea rcx, [rsp+58h+var_50]
call qword ptr [rbx+98h]
test al, al
jz loc_38F0E
loc_38DDF:
mov rax, [rbx+10h]
cmp [rbx+8], rax
jz short loc_38E2C
mov rax, [rax-8]
test rax, rax
jz loc_38F0E
cmp byte ptr [rax], 2
jnz short loc_38E6F
mov rdi, [rax+8]
lea rsi, [rsp+58h+var_50]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
mov rax, [rbx+10h]
mov rax, [rax-8]
mov rax, [rax+8]
mov r14, [rax+8]
add r14, 0FFFFFFFFFFFFFFF0h
jmp loc_38F0A
loc_38E22:
xor ebx, ebx
xor r14d, r14d
jmp loc_38F1D
loc_38E2C:
movups xmm0, [rsp+58h+var_50]
lea rdi, [rsp+58h+var_28]
movaps xmmword ptr [rdi], xmm0
mov byte ptr [rsp+58h+var_50], 0
mov qword ptr [rsp+58h+var_50+8], 0
mov rax, [rbx]
mov cl, [rax]
mov dl, [rdi]
mov [rax], dl
mov [rdi], cl
mov rcx, [rax+8]
mov rdx, [rdi+8]
mov [rax+8], rdx
mov [rdi+8], rcx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov r14, [rbx]
jmp loc_38F0A
loc_38E6F:
mov rax, [rbx+58h]
mov esi, [rbx+60h]
lea rcx, [rsi-1]
mov rdx, rsi
add rdx, 3Eh ; '>'
test rcx, rcx
cmovns rdx, rcx
sar rdx, 6
lea rdi, [rax+rdx*8]
lea rdx, [r14+3Fh]
and rdx, rcx
xor r8d, r8d
cmp rdx, r14
setbe r8b
mov edx, 1
shl rdx, cl
and rdx, [rdi+r8*8-8]
sub esi, 1
mov [rbx+60h], esi
jnb short loc_38EC5
mov dword ptr [rbx+60h], 3Fh ; '?'
add rax, 0FFFFFFFFFFFFFFF8h
mov [rbx+58h], rax
loc_38EC5:
test rdx, rdx
jz short loc_38F0E
movups xmm0, [rsp+58h+var_50]
lea rdi, [rsp+58h+var_38]
movaps xmmword ptr [rdi], xmm0
mov byte ptr [rsp+58h+var_50], 0
mov qword ptr [rsp+58h+var_50+8], 0
mov rax, [rbx+70h]
mov cl, [rax]
mov dl, [rdi]
mov [rax], dl
mov [rdi], cl
mov rcx, [rax+8]
mov rdx, [rdi+8]
mov [rax+8], rdx
mov [rdi+8], rcx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov r14, [rbx+70h]
loc_38F0A:
mov bl, 1
jmp short loc_38F13
loc_38F0E:
xor ebx, ebx
xor r14d, r14d
loc_38F13:
lea rdi, [rsp+58h+var_50]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_38F1D:
mov eax, ebx
mov rdx, r14
add rsp, 40h
pop rbx
pop r14
pop rbp
retn
loc_38F2B:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
mov rbx, rax
lea rdi, [rsp+58h+var_50]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, rbx
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(
char **a1,
unsigned __int8 *a2,
char a3)
{
unsigned int v4; // ebx
long long v5; // rax
signed long long v6; // rcx
long long v7; // rax
long long v8; // rax
unsigned int v9; // esi
char *v10; // rax
long long v11; // rax
char *v12; // rax
char v13; // cl
long long v14; // rcx
char *v15; // rax
long long v16; // rsi
long long v17; // rdx
long long v18; // rdx
char *v19; // rax
char v20; // cl
long long v21; // rcx
char v23; // [rsp+7h] [rbp-51h] BYREF
__int128 v24; // [rsp+8h] [rbp-50h] BYREF
int v25; // [rsp+1Ch] [rbp-3Ch] BYREF
__int128 v26; // [rsp+20h] [rbp-38h] BYREF
__int128 v27; // [rsp+30h] [rbp-28h] BYREF
v4 = (unsigned int)a1;
v5 = *((unsigned int *)a1 + 14);
v6 = v5 - 1;
v7 = v5 + 62;
if ( v6 >= 0 )
v7 = v6;
v8 = *(_QWORD *)&a1[6][8 * (v7 >> 6) - 8 + 8 * ((v6 & 0x800000000000003FLL) <= 0x8000000000000000LL)];
if ( _bittest64(&v8, v6) )
{
v9 = *a2;
LOBYTE(v24) = v9;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::json_value::json_value(
(_BYTE *)&v24 + 8,
v9);
if ( a3 )
goto LABEL_7;
v25 = (unsigned long long)(a1[2] - a1[1]) >> 3;
v23 = 5;
if ( !a1[18] )
std::__throw_bad_function_call();
if ( ((unsigned __int8 ( *)(char **, int *, char *, __int128 *))a1[19])(a1 + 16, &v25, &v23, &v24) )
{
LABEL_7:
v10 = a1[2];
if ( a1[1] == v10 )
{
v27 = v24;
LOBYTE(v24) = 0;
*((_QWORD *)&v24 + 1) = 0LL;
v12 = *a1;
v13 = **a1;
*v12 = v27;
LOBYTE(v27) = v13;
v14 = *((_QWORD *)v12 + 1);
*((_QWORD *)v12 + 1) = *((_QWORD *)&v27 + 1);
*((_QWORD *)&v27 + 1) = v14;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v27);
goto LABEL_19;
}
v11 = *((_QWORD *)v10 - 1);
if ( v11 )
{
if ( *(_BYTE *)v11 == 2 )
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
*(_QWORD *)(v11 + 8),
(long long)&v24);
LABEL_19:
LOBYTE(v4) = 1;
LABEL_21:
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v24);
return v4;
}
v15 = a1[11];
v16 = *((unsigned int *)a1 + 24);
v17 = v16 + 62;
if ( v16 - 1 >= 0 )
v17 = v16 - 1;
v18 = *(_QWORD *)&v15[8 * (v17 >> 6) - 8 + 8 * (((v16 - 1) & 0x800000000000003FLL) <= 0x8000000000000000LL)] & (1LL << ((unsigned __int8)v16 - 1));
*((_DWORD *)a1 + 24) = v16 - 1;
if ( !(_DWORD)v16 )
{
*((_DWORD *)a1 + 24) = 63;
a1[11] = v15 - 8;
}
if ( v18 )
{
v26 = v24;
LOBYTE(v24) = 0;
*((_QWORD *)&v24 + 1) = 0LL;
v19 = a1[14];
v20 = *v19;
*v19 = v26;
LOBYTE(v26) = v20;
v21 = *((_QWORD *)v19 + 1);
*((_QWORD *)v19 + 1) = *((_QWORD *)&v26 + 1);
*((_QWORD *)&v26 + 1) = v21;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v26);
goto LABEL_19;
}
}
}
v4 = 0;
goto LABEL_21;
}
return 0;
}
| handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV EBP,EDX
MOV RBX,RDI
MOV R14,-0x8000000000000000
MOV EAX,dword ptr [RDI + 0x38]
LEA RCX,[RAX + -0x1]
ADD RAX,0x3e
TEST RCX,RCX
CMOVNS RAX,RCX
SAR RAX,0x6
SHL RAX,0x3
ADD RAX,qword ptr [RDI + 0x30]
LEA RDX,[R14 + 0x3f]
AND RDX,RCX
XOR EDI,EDI
CMP RDX,R14
SETBE DIL
MOV RAX,qword ptr [RAX + RDI*0x8 + -0x8]
BT RAX,RCX
JNC 0x00138e22
MOVZX ESI,byte ptr [RSI]
LEA RDI,[RSP + 0x10]
MOV byte ptr [RDI + -0x8],SIL
CALL 0x0012928a
TEST BPL,BPL
JNZ 0x00138ddf
MOV RAX,qword ptr [RBX + 0x10]
SUB RAX,qword ptr [RBX + 0x8]
SHR RAX,0x3
MOV dword ptr [RSP + 0x1c],EAX
MOV byte ptr [RSP + 0x7],0x5
CMP qword ptr [RBX + 0x90],0x0
JZ 0x00138f2b
LEA RDI,[RBX + 0x80]
LAB_00138dc2:
LEA RSI,[RSP + 0x1c]
LEA RDX,[RSP + 0x7]
LEA RCX,[RSP + 0x8]
CALL qword ptr [RBX + 0x98]
TEST AL,AL
JZ 0x00138f0e
LAB_00138ddf:
MOV RAX,qword ptr [RBX + 0x10]
CMP qword ptr [RBX + 0x8],RAX
JZ 0x00138e2c
MOV RAX,qword ptr [RAX + -0x8]
TEST RAX,RAX
JZ 0x00138f0e
CMP byte ptr [RAX],0x2
JNZ 0x00138e6f
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0x8]
CALL 0x0012a6ea
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV R14,qword ptr [RAX + 0x8]
ADD R14,-0x10
JMP 0x00138f0a
LAB_00138e22:
XOR EBX,EBX
XOR R14D,R14D
JMP 0x00138f1d
LAB_00138e2c:
MOVUPS XMM0,xmmword ptr [RSP + 0x8]
LEA RDI,[RSP + 0x30]
MOVAPS xmmword ptr [RDI],XMM0
MOV byte ptr [RSP + 0x8],0x0
MOV qword ptr [RSP + 0x10],0x0
MOV RAX,qword ptr [RBX]
MOV CL,byte ptr [RAX]
MOV DL,byte ptr [RDI]
MOV byte ptr [RAX],DL
MOV byte ptr [RDI],CL
MOV RCX,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [RDI + 0x8]
MOV qword ptr [RAX + 0x8],RDX
MOV qword ptr [RDI + 0x8],RCX
CALL 0x001293d4
MOV R14,qword ptr [RBX]
JMP 0x00138f0a
LAB_00138e6f:
MOV RAX,qword ptr [RBX + 0x58]
MOV ESI,dword ptr [RBX + 0x60]
LEA RCX,[RSI + -0x1]
MOV RDX,RSI
ADD RDX,0x3e
TEST RCX,RCX
CMOVNS RDX,RCX
SAR RDX,0x6
LEA RDI,[RAX + RDX*0x8]
LEA RDX,[R14 + 0x3f]
AND RDX,RCX
XOR R8D,R8D
CMP RDX,R14
SETBE R8B
MOV EDX,0x1
SHL RDX,CL
AND RDX,qword ptr [RDI + R8*0x8 + -0x8]
SUB ESI,0x1
MOV dword ptr [RBX + 0x60],ESI
JNC 0x00138ec5
MOV dword ptr [RBX + 0x60],0x3f
ADD RAX,-0x8
MOV qword ptr [RBX + 0x58],RAX
LAB_00138ec5:
TEST RDX,RDX
JZ 0x00138f0e
MOVUPS XMM0,xmmword ptr [RSP + 0x8]
LEA RDI,[RSP + 0x20]
MOVAPS xmmword ptr [RDI],XMM0
MOV byte ptr [RSP + 0x8],0x0
MOV qword ptr [RSP + 0x10],0x0
MOV RAX,qword ptr [RBX + 0x70]
MOV CL,byte ptr [RAX]
MOV DL,byte ptr [RDI]
MOV byte ptr [RAX],DL
MOV byte ptr [RDI],CL
MOV RCX,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [RDI + 0x8]
MOV qword ptr [RAX + 0x8],RDX
MOV qword ptr [RDI + 0x8],RCX
CALL 0x001293d4
MOV R14,qword ptr [RBX + 0x70]
LAB_00138f0a:
MOV BL,0x1
JMP 0x00138f13
LAB_00138f0e:
XOR EBX,EBX
XOR R14D,R14D
LAB_00138f13:
LEA RDI,[RSP + 0x8]
CALL 0x001293d4
LAB_00138f1d:
MOV EAX,EBX
MOV RDX,R14
ADD RSP,0x40
POP RBX
POP R14
POP RBP
RET
LAB_00138f2b:
CALL 0x001192a0
|
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, 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::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>
>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t&&,
bool) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>
(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this,value_t *param_1,bool param_2)
{
basic_json bVar1;
uint uVar2;
char *pcVar3;
basic_json *pbVar4;
basic_json bVar5;
int8 uVar6;
char cVar7;
ulong uVar8;
ulong uVar9;
long lVar10;
int1 auVar11 [16];
int1 local_51;
basic_json local_50;
int7 uStack_4f;
int8 uStack_48;
int4 local_3c;
basic_json local_38;
int7 uStack_37;
int8 uStack_30;
basic_json local_28;
int7 uStack_27;
int8 uStack_20;
uVar9 = (ulong)*(uint *)(this + 0x38) - 1;
uVar8 = (ulong)*(uint *)(this + 0x38) + 0x3e;
if (-1 < (long)uVar9) {
uVar8 = uVar9;
}
if ((*(ulong *)(((long)uVar8 >> 6) * 8 + *(long *)(this + 0x30) + -8 +
(ulong)((uVar9 & 0x800000000000003f) < 0x8000000000000001) * 8) >> (uVar9 & 0x3f) &
1) == 0) {
uVar9 = 0;
lVar10 = 0;
goto LAB_00138f1d;
}
local_50 = (basic_json)*param_1;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::json_value::json_value();
if (param_2) {
LAB_00138ddf:
uVar6 = uStack_48;
bVar5 = local_50;
if (*(long *)(this + 8) == *(long *)(this + 0x10)) {
local_50 = (basic_json)0x0;
uStack_48 = 0;
pbVar4 = *(basic_json **)this;
bVar1 = *pbVar4;
*pbVar4 = bVar5;
_local_28 = CONCAT71(uStack_4f,bVar1);
uStack_20 = *(int8 *)(pbVar4 + 8);
*(int8 *)(pbVar4 + 8) = uVar6;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_28);
lVar10 = *(long *)this;
}
else {
pcVar3 = *(char **)(*(long *)(this + 0x10) + -8);
if (pcVar3 == (char *)0x0) goto LAB_00138f0e;
if (*pcVar3 == '\x02') {
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(pcVar3 + 8),&local_50);
lVar10 = *(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10;
}
else {
uVar2 = *(uint *)(this + 0x60);
uVar9 = (ulong)uVar2 - 1;
uVar8 = (ulong)uVar2 + 0x3e;
if (-1 < (long)uVar9) {
uVar8 = uVar9;
}
uVar8 = *(ulong *)(*(long *)(this + 0x58) + ((long)uVar8 >> 6) * 8 + -8 +
(ulong)((uVar9 & 0x800000000000003f) < 0x8000000000000001) * 8);
*(uint *)(this + 0x60) = uVar2 - 1;
if (uVar2 == 0) {
*(int4 *)(this + 0x60) = 0x3f;
*(long *)(this + 0x58) = *(long *)(this + 0x58) + -8;
}
if ((1L << ((byte)uVar9 & 0x3f) & uVar8) == 0) goto LAB_00138f0e;
local_50 = (basic_json)0x0;
uStack_48 = 0;
pbVar4 = *(basic_json **)(this + 0x70);
bVar1 = *pbVar4;
*pbVar4 = bVar5;
_local_38 = CONCAT71(uStack_4f,bVar1);
uStack_30 = *(int8 *)(pbVar4 + 8);
*(int8 *)(pbVar4 + 8) = uVar6;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_38);
lVar10 = *(long *)(this + 0x70);
}
}
uVar9 = CONCAT71((int7)((ulong)this >> 8),1);
}
else {
local_3c = (int4)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3);
local_51 = 5;
if (*(long *)(this + 0x90) == 0) {
/* WARNING: Subroutine does not return */
std::__throw_bad_function_call();
}
/* try { // try from 00138dc2 to 00138f2f has its CatchHandler @ 00138f30 */
cVar7 = (**(code **)(this + 0x98))(this + 0x80,&local_3c,&local_51,&local_50);
if (cVar7 != '\0') goto LAB_00138ddf;
LAB_00138f0e:
uVar9 = 0;
lVar10 = 0;
}
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_50);
LAB_00138f1d:
auVar11._0_8_ = uVar9 & 0xffffffff;
auVar11._8_8_ = lVar10;
return auVar11;
}
| |
35,120 | ggml_im2col_back | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c | struct ggml_tensor * ggml_im2col_back(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * b,
int64_t * ne,
int s0,
int s1,
int p0,
int p1,
int d0,
int d1,
bool is_2D) {
struct ggml_tensor * result = ggml_new_tensor(ctx, GGML_TYPE_F32, 4, ne);
int32_t params[] = { s0, s1, p0, p1, d0, d1, (is_2D ? 1 : 0) };
ggml_set_op_params(result, params, sizeof(params));
result->op = GGML_OP_IM2COL_BACK;
result->src[0] = a;
result->src[1] = b;
return result;
} | O1 | c | ggml_im2col_back:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %r9d, %ebp
movl %r8d, %r15d
movq %rdx, %rbx
movq %rsi, %r14
xorl %esi, %esi
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x1b871
testq %rax, %rax
je 0x1ef4e
movl 0x48(%rsp), %ecx
movl 0x40(%rsp), %edx
movl 0x38(%rsp), %esi
movl 0x30(%rsp), %edi
movzbl 0x50(%rsp), %r8d
movl %r15d, 0x54(%rax)
movl %ebp, 0x58(%rax)
movl %edi, 0x5c(%rax)
movl %esi, 0x60(%rax)
movl %edx, 0x64(%rax)
movl %ecx, 0x68(%rax)
movl %r8d, 0x6c(%rax)
movl $0x31, 0x50(%rax)
movq %r14, 0x98(%rax)
movq %rbx, 0xa0(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2f770(%rip), %rdi # 0x4e6c5
leaq 0x2d665(%rip), %rdx # 0x4c5c1
leaq 0x2f88f(%rip), %rcx # 0x4e7f2
movl $0x70, %esi
xorl %eax, %eax
callq 0x18ce0
| ggml_im2col_back:
push rbp
push r15
push r14
push rbx
push rax
mov ebp, r9d
mov r15d, r8d
mov rbx, rdx
mov r14, rsi
xor esi, esi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
test rax, rax
jz short loc_1EF4E
mov ecx, [rsp+28h+arg_18]
mov edx, [rsp+28h+arg_10]
mov esi, [rsp+28h+arg_8]
mov edi, [rsp+28h+arg_0]
movzx r8d, [rsp+28h+arg_20]
mov [rax+54h], r15d
mov [rax+58h], ebp
mov [rax+5Ch], edi
mov [rax+60h], esi
mov [rax+64h], edx
mov [rax+68h], ecx
mov [rax+6Ch], r8d
mov dword ptr [rax+50h], 31h ; '1'
mov [rax+98h], r14
mov [rax+0A0h], rbx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_1EF4E:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNull; "tensor != NULL"
mov esi, 70h ; 'p'
xor eax, eax
call _ggml_abort
| long long ggml_im2col_back(
long long a1,
long long a2,
long long a3,
long long *a4,
int a5,
int a6,
double a7,
int a8,
int a9,
int a10,
int a11,
unsigned __int8 a12)
{
long long result; // rax
int v16; // r8d
int v17; // r9d
result = ggml_new_tensor_impl(a1, 0, 4, a4, 0LL, 0LL, a7);
if ( !result )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h",
112,
(unsigned int)"GGML_ASSERT(%s) failed",
(unsigned int)"tensor != NULL",
v16,
v17);
*(_DWORD *)(result + 84) = a5;
*(_DWORD *)(result + 88) = a6;
*(_DWORD *)(result + 92) = a8;
*(_DWORD *)(result + 96) = a9;
*(_DWORD *)(result + 100) = a10;
*(_DWORD *)(result + 104) = a11;
*(_DWORD *)(result + 108) = a12;
*(_DWORD *)(result + 80) = 49;
*(_QWORD *)(result + 152) = a2;
*(_QWORD *)(result + 160) = a3;
return result;
}
| ggml_im2col_back:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EBP,R9D
MOV R15D,R8D
MOV RBX,RDX
MOV R14,RSI
XOR ESI,ESI
MOV EDX,0x4
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0011b871
TEST RAX,RAX
JZ 0x0011ef4e
MOV ECX,dword ptr [RSP + 0x48]
MOV EDX,dword ptr [RSP + 0x40]
MOV ESI,dword ptr [RSP + 0x38]
MOV EDI,dword ptr [RSP + 0x30]
MOVZX R8D,byte ptr [RSP + 0x50]
MOV dword ptr [RAX + 0x54],R15D
MOV dword ptr [RAX + 0x58],EBP
MOV dword ptr [RAX + 0x5c],EDI
MOV dword ptr [RAX + 0x60],ESI
MOV dword ptr [RAX + 0x64],EDX
MOV dword ptr [RAX + 0x68],ECX
MOV dword ptr [RAX + 0x6c],R8D
MOV dword ptr [RAX + 0x50],0x31
MOV qword ptr [RAX + 0x98],R14
MOV qword ptr [RAX + 0xa0],RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0011ef4e:
LEA RDI,[0x14e6c5]
LEA RDX,[0x14c5c1]
LEA RCX,[0x14e7f2]
MOV ESI,0x70
XOR EAX,EAX
CALL 0x00118ce0
|
void ggml_im2col_back(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int4 param_5,int4 param_6,int4 param_7,int4 param_8,
int4 param_9,int4 param_10,byte param_11)
{
long lVar1;
lVar1 = ggml_new_tensor_impl(param_1,0,4,param_4,0,0);
if (lVar1 != 0) {
*(int4 *)(lVar1 + 0x54) = param_5;
*(int4 *)(lVar1 + 0x58) = param_6;
*(int4 *)(lVar1 + 0x5c) = param_7;
*(int4 *)(lVar1 + 0x60) = param_8;
*(int4 *)(lVar1 + 100) = param_9;
*(int4 *)(lVar1 + 0x68) = param_10;
*(uint *)(lVar1 + 0x6c) = (uint)param_11;
*(int4 *)(lVar1 + 0x50) = 0x31;
*(int8 *)(lVar1 + 0x98) = param_2;
*(int8 *)(lVar1 + 0xa0) = param_3;
return;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h"
,0x70,"GGML_ASSERT(%s) failed","tensor != NULL");
}
| |
35,121 | ggml_im2col_back | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c | struct ggml_tensor * ggml_im2col_back(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * b,
int64_t * ne,
int s0,
int s1,
int p0,
int p1,
int d0,
int d1,
bool is_2D) {
struct ggml_tensor * result = ggml_new_tensor(ctx, GGML_TYPE_F32, 4, ne);
int32_t params[] = { s0, s1, p0, p1, d0, d1, (is_2D ? 1 : 0) };
ggml_set_op_params(result, params, sizeof(params));
result->op = GGML_OP_IM2COL_BACK;
result->src[0] = a;
result->src[1] = b;
return result;
} | O3 | c | ggml_im2col_back:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %r9d, %ebp
movl %r8d, %r15d
movq %rdx, %rbx
movq %rsi, %r14
xorl %esi, %esi
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x1a57f
testq %rax, %rax
je 0x1dc2e
movl 0x48(%rsp), %ecx
movl 0x40(%rsp), %edx
movl 0x38(%rsp), %esi
movl 0x30(%rsp), %edi
movzbl 0x50(%rsp), %r8d
movl %r15d, 0x54(%rax)
movl %ebp, 0x58(%rax)
movl %edi, 0x5c(%rax)
movl %esi, 0x60(%rax)
movl %edx, 0x64(%rax)
movl %ecx, 0x68(%rax)
movl %r8d, 0x6c(%rax)
movl $0x31, 0x50(%rax)
movq %r14, 0x98(%rax)
movq %rbx, 0xa0(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x30b34(%rip), %rdi # 0x4e769
leaq 0x2ea29(%rip), %rdx # 0x4c665
leaq 0x30c53(%rip), %rcx # 0x4e896
movl $0x70, %esi
xorl %eax, %eax
callq 0x17cd0
| ggml_im2col_back:
push rbp
push r15
push r14
push rbx
push rax
mov ebp, r9d
mov r15d, r8d
mov rbx, rdx
mov r14, rsi
xor esi, esi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
test rax, rax
jz short loc_1DC2E
mov ecx, [rsp+28h+arg_18]
mov edx, [rsp+28h+arg_10]
mov esi, [rsp+28h+arg_8]
mov edi, [rsp+28h+arg_0]
movzx r8d, [rsp+28h+arg_20]
mov [rax+54h], r15d
mov [rax+58h], ebp
mov [rax+5Ch], edi
mov [rax+60h], esi
mov [rax+64h], edx
mov [rax+68h], ecx
mov [rax+6Ch], r8d
mov dword ptr [rax+50h], 31h ; '1'
mov [rax+98h], r14
mov [rax+0A0h], rbx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_1DC2E:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNull; "tensor != NULL"
mov esi, 70h ; 'p'
xor eax, eax
call _ggml_abort
| long long ggml_im2col_back(
long long a1,
long long a2,
long long a3,
long long *a4,
int a5,
int a6,
double a7,
int a8,
int a9,
int a10,
int a11,
unsigned __int8 a12)
{
long long result; // rax
int v16; // r8d
int v17; // r9d
result = ggml_new_tensor_impl(a1, 0, 4u, a4, 0LL, 0LL, a7);
if ( !result )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h",
112,
(unsigned int)"GGML_ASSERT(%s) failed",
(unsigned int)"tensor != NULL",
v16,
v17);
*(_DWORD *)(result + 84) = a5;
*(_DWORD *)(result + 88) = a6;
*(_DWORD *)(result + 92) = a8;
*(_DWORD *)(result + 96) = a9;
*(_DWORD *)(result + 100) = a10;
*(_DWORD *)(result + 104) = a11;
*(_DWORD *)(result + 108) = a12;
*(_DWORD *)(result + 80) = 49;
*(_QWORD *)(result + 152) = a2;
*(_QWORD *)(result + 160) = a3;
return result;
}
| ggml_im2col_back:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EBP,R9D
MOV R15D,R8D
MOV RBX,RDX
MOV R14,RSI
XOR ESI,ESI
MOV EDX,0x4
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0011a57f
TEST RAX,RAX
JZ 0x0011dc2e
MOV ECX,dword ptr [RSP + 0x48]
MOV EDX,dword ptr [RSP + 0x40]
MOV ESI,dword ptr [RSP + 0x38]
MOV EDI,dword ptr [RSP + 0x30]
MOVZX R8D,byte ptr [RSP + 0x50]
MOV dword ptr [RAX + 0x54],R15D
MOV dword ptr [RAX + 0x58],EBP
MOV dword ptr [RAX + 0x5c],EDI
MOV dword ptr [RAX + 0x60],ESI
MOV dword ptr [RAX + 0x64],EDX
MOV dword ptr [RAX + 0x68],ECX
MOV dword ptr [RAX + 0x6c],R8D
MOV dword ptr [RAX + 0x50],0x31
MOV qword ptr [RAX + 0x98],R14
MOV qword ptr [RAX + 0xa0],RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0011dc2e:
LEA RDI,[0x14e769]
LEA RDX,[0x14c665]
LEA RCX,[0x14e896]
MOV ESI,0x70
XOR EAX,EAX
CALL 0x00117cd0
|
void ggml_im2col_back(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int4 param_5,int4 param_6,int4 param_7,int4 param_8,
int4 param_9,int4 param_10,byte param_11)
{
long lVar1;
lVar1 = ggml_new_tensor_impl(param_1,0,4,param_4,0,0);
if (lVar1 != 0) {
*(int4 *)(lVar1 + 0x54) = param_5;
*(int4 *)(lVar1 + 0x58) = param_6;
*(int4 *)(lVar1 + 0x5c) = param_7;
*(int4 *)(lVar1 + 0x60) = param_8;
*(int4 *)(lVar1 + 100) = param_9;
*(int4 *)(lVar1 + 0x68) = param_10;
*(uint *)(lVar1 + 0x6c) = (uint)param_11;
*(int4 *)(lVar1 + 0x50) = 0x31;
*(int8 *)(lVar1 + 0x98) = param_2;
*(int8 *)(lVar1 + 0xa0) = param_3;
return;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h"
,0x70,"GGML_ASSERT(%s) failed","tensor != NULL");
}
| |
35,122 | lshift | eloqsql/libmariadb/libmariadb/ma_dtoa.c | static Bigint *lshift(Bigint *b, int k, Stack_alloc *alloc)
{
int i, k1, n, n1;
Bigint *b1;
ULong *x, *x1, *xe, z;
n= k >> 5;
k1= b->k;
n1= n + b->wds + 1;
for (i= b->maxwds; n1 > i; i<<= 1)
k1++;
b1= Balloc(k1, alloc);
x1= b1->p.x;
for (i= 0; i < n; i++)
*x1++= 0;
x= b->p.x;
xe= x + b->wds;
if (k&= 0x1f)
{
k1= 32 - k;
z= 0;
do
{
*x1++= *x << k | z;
z= *x++ >> k1;
}
while (x < xe);
if ((*x1= z))
++n1;
}
else
do
*x1++= *x++;
while (x < xe);
b1->wds= n1 - 1;
Bfree(b, alloc);
return b1;
} | O3 | c | lshift:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %r15d
movq %rdi, %r14
movl %esi, %r12d
shrl $0x5, %r12d
movl 0x8(%rdi), %edi
movl 0xc(%r14), %eax
movl 0x14(%r14), %ebx
addl %r12d, %ebx
cmpl %eax, %ebx
jl 0x29d9e
incl %edi
addl %eax, %eax
jmp 0x29d94
movq %rdx, -0x38(%rbp)
movq %rdx, %rsi
callq 0x29f07
movq (%rax), %r13
cmpl $0x20, %r15d
jb 0x29dd5
decl %r12d
leaq 0x4(,%r12,4), %rdx
movq %r13, %rdi
xorl %esi, %esi
movq %rax, -0x30(%rbp)
callq 0x13270
movq -0x30(%rbp), %rax
leaq 0x4(%r13,%r12,4), %r13
movq (%r14), %rdx
movslq 0x14(%r14), %rcx
leaq (%rdx,%rcx,4), %rsi
andl $0x1f, %r15d
je 0x29e21
movl $0x20, %r9d
subl %r15d, %r9d
xorl %edi, %edi
movl (%rdx), %r8d
movl %r15d, %ecx
shll %cl, %r8d
orl %edi, %r8d
movl %r8d, (%r13)
addq $0x4, %r13
movl (%rdx), %edi
addq $0x4, %rdx
movl %r9d, %ecx
shrl %cl, %edi
cmpq %rsi, %rdx
jb 0x29df1
movl %edi, (%r13)
cmpl $0x1, %edi
sbbl $-0x1, %ebx
jmp 0x29e34
movl (%rdx), %ecx
addq $0x4, %rdx
movl %ecx, (%r13)
addq $0x4, %r13
cmpq %rsi, %rdx
jb 0x29e21
movl %ebx, 0x14(%rax)
movq %r14, %rdi
movq -0x38(%rbp), %rsi
movq %rax, %rbx
callq 0x29cce
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| lshift:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r15d, esi
mov r14, rdi
mov r12d, esi
shr r12d, 5
mov edi, [rdi+8]
mov eax, [r14+0Ch]
mov ebx, [r14+14h]
add ebx, r12d
loc_29D94:
cmp ebx, eax
jl short loc_29D9E
inc edi
add eax, eax
jmp short loc_29D94
loc_29D9E:
mov [rbp+var_38], rdx
mov rsi, rdx
call Balloc
mov r13, [rax]
cmp r15d, 20h ; ' '
jb short loc_29DD5
dec r12d
lea rdx, ds:4[r12*4]
mov rdi, r13
xor esi, esi
mov [rbp+var_30], rax
call _memset
mov rax, [rbp+var_30]
lea r13, [r13+r12*4+4]
loc_29DD5:
mov rdx, [r14]
movsxd rcx, dword ptr [r14+14h]
lea rsi, [rdx+rcx*4]
and r15d, 1Fh
jz short loc_29E21
mov r9d, 20h ; ' '
sub r9d, r15d
xor edi, edi
loc_29DF1:
mov r8d, [rdx]
mov ecx, r15d
shl r8d, cl
or r8d, edi
mov [r13+0], r8d
add r13, 4
mov edi, [rdx]
add rdx, 4
mov ecx, r9d
shr edi, cl
cmp rdx, rsi
jb short loc_29DF1
mov [r13+0], edi
cmp edi, 1
sbb ebx, 0FFFFFFFFh
jmp short loc_29E34
loc_29E21:
mov ecx, [rdx]
add rdx, 4
mov [r13+0], ecx
add r13, 4
cmp rdx, rsi
jb short loc_29E21
loc_29E34:
mov [rax+14h], ebx
mov rdi, r14
mov rsi, [rbp+var_38]
mov rbx, rax
call Bfree
mov rax, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long lshift(unsigned long long a1, unsigned int a2, unsigned long long *a3, long long a4)
{
char v4; // r15
long long v6; // rdi
int v7; // eax
int v8; // ebx
long long v9; // rax
int *v10; // r13
long long v11; // r12
int *v12; // rdx
unsigned long long v13; // rsi
int v14; // r15d
int v15; // edi
unsigned int v16; // edi
int v17; // ecx
long long v18; // rbx
long long v21; // [rsp+10h] [rbp-30h]
v4 = a2;
v6 = *(unsigned int *)(a1 + 8);
v7 = *(_DWORD *)(a1 + 12);
v8 = (a2 >> 5) + *(_DWORD *)(a1 + 20);
while ( v8 >= v7 )
{
v6 = (unsigned int)(v6 + 1);
v7 *= 2;
}
v9 = Balloc(v6, a3, a3, a4);
v10 = *(int **)v9;
if ( a2 >= 0x20 )
{
v11 = (a2 >> 5) - 1;
v21 = v9;
memset(*(_QWORD *)v9, 0LL, 4 * v11 + 4);
v9 = v21;
v10 += v11 + 1;
}
v12 = *(int **)a1;
v13 = *(_QWORD *)a1 + 4LL * *(int *)(a1 + 20);
v14 = v4 & 0x1F;
if ( v14 )
{
v15 = 0;
do
{
*v10++ = v15 | (*v12 << v14);
v16 = *v12++;
v15 = v16 >> (32 - v14);
}
while ( (unsigned long long)v12 < v13 );
*v10 = v15;
v8 -= (v15 == 0) - 1;
}
else
{
do
{
v17 = *v12++;
*v10++ = v17;
}
while ( (unsigned long long)v12 < v13 );
}
*(_DWORD *)(v9 + 20) = v8;
v18 = v9;
Bfree(a1, a3);
return v18;
}
| lshift:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R15D,ESI
MOV R14,RDI
MOV R12D,ESI
SHR R12D,0x5
MOV EDI,dword ptr [RDI + 0x8]
MOV EAX,dword ptr [R14 + 0xc]
MOV EBX,dword ptr [R14 + 0x14]
ADD EBX,R12D
LAB_00129d94:
CMP EBX,EAX
JL 0x00129d9e
INC EDI
ADD EAX,EAX
JMP 0x00129d94
LAB_00129d9e:
MOV qword ptr [RBP + -0x38],RDX
MOV RSI,RDX
CALL 0x00129f07
MOV R13,qword ptr [RAX]
CMP R15D,0x20
JC 0x00129dd5
DEC R12D
LEA RDX,[0x4 + R12*0x4]
MOV RDI,R13
XOR ESI,ESI
MOV qword ptr [RBP + -0x30],RAX
CALL 0x00113270
MOV RAX,qword ptr [RBP + -0x30]
LEA R13,[R13 + R12*0x4 + 0x4]
LAB_00129dd5:
MOV RDX,qword ptr [R14]
MOVSXD RCX,dword ptr [R14 + 0x14]
LEA RSI,[RDX + RCX*0x4]
AND R15D,0x1f
JZ 0x00129e21
MOV R9D,0x20
SUB R9D,R15D
XOR EDI,EDI
LAB_00129df1:
MOV R8D,dword ptr [RDX]
MOV ECX,R15D
SHL R8D,CL
OR R8D,EDI
MOV dword ptr [R13],R8D
ADD R13,0x4
MOV EDI,dword ptr [RDX]
ADD RDX,0x4
MOV ECX,R9D
SHR EDI,CL
CMP RDX,RSI
JC 0x00129df1
MOV dword ptr [R13],EDI
CMP EDI,0x1
SBB EBX,-0x1
JMP 0x00129e34
LAB_00129e21:
MOV ECX,dword ptr [RDX]
ADD RDX,0x4
MOV dword ptr [R13],ECX
ADD R13,0x4
CMP RDX,RSI
JC 0x00129e21
LAB_00129e34:
MOV dword ptr [RAX + 0x14],EBX
MOV RDI,R14
MOV RSI,qword ptr [RBP + -0x38]
MOV RBX,RAX
CALL 0x00129cce
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 * lshift(int8 *param_1,uint param_2,int8 param_3)
{
uint *puVar1;
sbyte sVar2;
int iVar3;
int8 *puVar4;
uint *puVar5;
int iVar6;
uint uVar7;
ulong uVar8;
uint *__s;
iVar6 = *(int *)((long)param_1 + 0x14) + (param_2 >> 5);
for (iVar3 = *(int *)((long)param_1 + 0xc); iVar3 <= iVar6; iVar3 = iVar3 * 2) {
}
puVar4 = (int8 *)Balloc();
__s = (uint *)*puVar4;
if (0x1f < param_2) {
uVar8 = (ulong)((param_2 >> 5) - 1);
memset(__s,0,uVar8 * 4 + 4);
__s = __s + uVar8 + 1;
}
puVar5 = (uint *)*param_1;
puVar1 = puVar5 + *(int *)((long)param_1 + 0x14);
if ((param_2 & 0x1f) == 0) {
do {
uVar7 = *puVar5;
puVar5 = puVar5 + 1;
*__s = uVar7;
__s = __s + 1;
} while (puVar5 < puVar1);
}
else {
sVar2 = (sbyte)(param_2 & 0x1f);
uVar7 = 0;
do {
*__s = *puVar5 << sVar2 | uVar7;
__s = __s + 1;
uVar7 = *puVar5;
puVar5 = puVar5 + 1;
uVar7 = uVar7 >> (0x20U - sVar2 & 0x1f);
} while (puVar5 < puVar1);
*__s = uVar7;
iVar6 = (iVar6 + 1) - (uint)(uVar7 == 0);
}
*(int *)((long)puVar4 + 0x14) = iVar6;
Bfree(param_1,param_3);
return puVar4;
}
| |
35,123 | nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, unsigned long) | monkey531[P]llama/common/json.hpp | explicit iteration_proxy_value(IteratorType it, std::size_t array_index_ = 0)
noexcept(std::is_nothrow_move_constructible<IteratorType>::value
&& std::is_nothrow_default_constructible<string_type>::value)
: anchor(std::move(it))
, array_index(array_index_)
{} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, unsigned long):
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movups (%rsi), %xmm0
movups 0x10(%rsi), %xmm1
movups %xmm1, 0x10(%rdi)
movups %xmm0, (%rdi)
movq %rdx, 0x20(%rdi)
andq $0x0, 0x28(%rdi)
addq $0x30, %rdi
leaq 0x2dc46(%rip), %rsi # 0x972fe
leaq 0xf(%rsp), %rdx
callq 0x26838
leaq 0x60(%rbx), %rax
movq %rax, 0x50(%rbx)
andq $0x0, 0x58(%rbx)
movb $0x0, 0x60(%rbx)
addq $0x10, %rsp
popq %rbx
retq
movq %rax, %rdi
callq 0x26895
| _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEC2ESH_m:
push rbx
sub rsp, 10h
mov rbx, rdi
movups xmm0, xmmword ptr [rsi]
movups xmm1, xmmword ptr [rsi+10h]
movups xmmword ptr [rdi+10h], xmm1
movups xmmword ptr [rdi], xmm0
mov [rdi+20h], rdx
and qword ptr [rdi+28h], 0
add rdi, 30h ; '0'
lea rsi, aMinExp0+0Ah; "0"
lea rdx, [rsp+18h+var_9]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rax, [rbx+60h]
mov [rbx+50h], rax
and qword ptr [rbx+58h], 0
mov byte ptr [rbx+60h], 0
add rsp, 10h
pop rbx
retn
mov rdi, rax
call __clang_call_terminate
| long long nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::iteration_proxy_value(
long long a1,
__int128 *a2,
long long a3)
{
__int128 v3; // xmm0
long long result; // rax
v3 = *a2;
*(_OWORD *)(a1 + 16) = a2[1];
*(_OWORD *)a1 = v3;
*(_QWORD *)(a1 + 32) = a3;
*(_QWORD *)(a1 + 40) = 0LL;
std::string::basic_string<std::allocator<char>>((_QWORD *)(a1 + 48), (long long)"0");
result = a1 + 96;
*(_QWORD *)(a1 + 80) = a1 + 96;
*(_QWORD *)(a1 + 88) = 0LL;
*(_BYTE *)(a1 + 96) = 0;
return result;
}
| iteration_proxy_value:
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
MOVUPS XMM0,xmmword ptr [RSI]
MOVUPS XMM1,xmmword ptr [RSI + 0x10]
MOVUPS xmmword ptr [RDI + 0x10],XMM1
MOVUPS xmmword ptr [RDI],XMM0
MOV qword ptr [RDI + 0x20],RDX
AND qword ptr [RDI + 0x28],0x0
ADD RDI,0x30
LAB_001696b1:
LEA RSI,[0x1972fe]
LEA RDX,[RSP + 0xf]
CALL 0x00126838
LEA RAX,[RBX + 0x60]
MOV qword ptr [RBX + 0x50],RAX
AND qword ptr [RBX + 0x58],0x0
MOV byte ptr [RBX + 0x60],0x0
ADD RSP,0x10
POP RBX
RET
|
/* nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >
>::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >, unsigned long) */
void __thiscall
nlohmann::json_abi_v3_11_3::detail::
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::iteration_proxy_value
(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*this,int8 *param_2,int8 param_3)
{
int8 uVar1;
int8 uVar2;
int8 uVar3;
allocator local_9;
uVar1 = *param_2;
uVar2 = param_2[1];
uVar3 = param_2[3];
*(int8 *)(this + 0x10) = param_2[2];
*(int8 *)(this + 0x18) = uVar3;
*(int8 *)this = uVar1;
*(int8 *)(this + 8) = uVar2;
*(int8 *)(this + 0x20) = param_3;
*(int8 *)(this + 0x28) = 0;
/* try { // try from 001696b1 to 001696c1 has its CatchHandler @ 001696d9 */
std::__cxx11::string::string<std::allocator<char>>((string *)(this + 0x30),"0",&local_9);
*(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(this + 0x50) = this + 0x60;
*(int8 *)(this + 0x58) = 0;
this[0x60] = (iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
)0x0;
return;
}
| |
35,124 | nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, unsigned long) | monkey531[P]llama/common/json.hpp | explicit iteration_proxy_value(IteratorType it, std::size_t array_index_ = 0)
noexcept(std::is_nothrow_move_constructible<IteratorType>::value
&& std::is_nothrow_default_constructible<string_type>::value)
: anchor(std::move(it))
, array_index(array_index_)
{} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, unsigned long):
pushq %rbx
movq %rdi, %rbx
movups (%rsi), %xmm0
movups 0x10(%rsi), %xmm1
movups %xmm1, 0x10(%rdi)
movups %xmm0, (%rdi)
movq %rdx, 0x20(%rdi)
movq $0x0, 0x28(%rdi)
addq $0x30, %rdi
leaq 0x40(%rbx), %rax
movq %rax, 0x30(%rbx)
leaq 0x3c5d2(%rip), %rsi # 0xb22c3
leaq 0x3c5cc(%rip), %rdx # 0xb22c4
callq 0x20d82
leaq 0x60(%rbx), %rax
movq %rax, 0x50(%rbx)
movq $0x0, 0x58(%rbx)
movb $0x0, 0x60(%rbx)
popq %rbx
retq
movq %rax, %rdi
callq 0x20d77
| _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEC2ESH_m:
push rbx
mov rbx, rdi
movups xmm0, xmmword ptr [rsi]
movups xmm1, xmmword ptr [rsi+10h]
movups xmmword ptr [rdi+10h], xmm1
movups xmmword ptr [rdi], xmm0
mov [rdi+20h], rdx
mov qword ptr [rdi+28h], 0
add rdi, 30h ; '0'
lea rax, [rbx+40h]
mov [rbx+30h], rax
lea rsi, aMinExp0+0Ah; "0"
lea rdx, aMinExp0+0Bh; ""
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 rax, [rbx+60h]
mov [rbx+50h], rax
mov qword ptr [rbx+58h], 0
mov byte ptr [rbx+60h], 0
pop rbx
retn
mov rdi, rax
call __clang_call_terminate
| long long nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::iteration_proxy_value(
long long a1,
__int128 *a2,
long long a3)
{
__int128 v3; // xmm0
long long result; // rax
v3 = *a2;
*(_OWORD *)(a1 + 16) = a2[1];
*(_OWORD *)a1 = v3;
*(_QWORD *)(a1 + 32) = a3;
*(_QWORD *)(a1 + 40) = 0LL;
*(_QWORD *)(a1 + 48) = a1 + 64;
std::string::_M_construct<char const*>(a1 + 48, "0", (long long)"");
result = a1 + 96;
*(_QWORD *)(a1 + 80) = a1 + 96;
*(_QWORD *)(a1 + 88) = 0LL;
*(_BYTE *)(a1 + 96) = 0;
return result;
}
| iteration_proxy_value:
PUSH RBX
MOV RBX,RDI
MOVUPS XMM0,xmmword ptr [RSI]
MOVUPS XMM1,xmmword ptr [RSI + 0x10]
MOVUPS xmmword ptr [RDI + 0x10],XMM1
MOVUPS xmmword ptr [RDI],XMM0
MOV qword ptr [RDI + 0x20],RDX
MOV qword ptr [RDI + 0x28],0x0
ADD RDI,0x30
LEA RAX,[RBX + 0x40]
MOV qword ptr [RBX + 0x30],RAX
LAB_00175cea:
LEA RSI,[0x1b22c3]
LEA RDX,[0x1b22c4]
CALL 0x00120d82
LEA RAX,[RBX + 0x60]
MOV qword ptr [RBX + 0x50],RAX
MOV qword ptr [RBX + 0x58],0x0
MOV byte ptr [RBX + 0x60],0x0
POP RBX
RET
|
/* nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >
>::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >, unsigned long) */
void __thiscall
nlohmann::json_abi_v3_11_3::detail::
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::iteration_proxy_value
(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*this,int4 *param_2,int8 param_3)
{
int4 uVar1;
int4 uVar2;
int4 uVar3;
int4 uVar4;
int4 uVar5;
int4 uVar6;
int4 uVar7;
uVar1 = *param_2;
uVar2 = param_2[1];
uVar3 = param_2[2];
uVar4 = param_2[3];
uVar5 = param_2[5];
uVar6 = param_2[6];
uVar7 = param_2[7];
*(int4 *)(this + 0x10) = param_2[4];
*(int4 *)(this + 0x14) = uVar5;
*(int4 *)(this + 0x18) = uVar6;
*(int4 *)(this + 0x1c) = uVar7;
*(int4 *)this = uVar1;
*(int4 *)(this + 4) = uVar2;
*(int4 *)(this + 8) = uVar3;
*(int4 *)(this + 0xc) = uVar4;
*(int8 *)(this + 0x20) = param_3;
*(int8 *)(this + 0x28) = 0;
*(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(this + 0x30) = this + 0x40;
/* try { // try from 00175cea to 00175cfc has its CatchHandler @ 00175d13 */
std::__cxx11::string::_M_construct<char_const*>(this + 0x30,"0","");
*(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(this + 0x50) = this + 0x60;
*(int8 *)(this + 0x58) = 0;
this[0x60] = (iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
)0x0;
return;
}
| |
35,125 | common_chat_format_name[abi:cxx11](common_chat_format) | monkey531[P]llama/common/chat.cpp | std::string common_chat_format_name(common_chat_format format) {
switch (format) {
case COMMON_CHAT_FORMAT_CONTENT_ONLY: return "Content-only";
case COMMON_CHAT_FORMAT_GENERIC: return "Generic";
case COMMON_CHAT_FORMAT_MISTRAL_NEMO: return "Mistral Nemo";
case COMMON_CHAT_FORMAT_LLAMA_3_X: return "Llama 3.x";
case COMMON_CHAT_FORMAT_LLAMA_3_X_WITH_BUILTIN_TOOLS: return "Llama 3.x with builtin tools";
case COMMON_CHAT_FORMAT_DEEPSEEK_R1: return "DeepSeek R1";
case COMMON_CHAT_FORMAT_FIREFUNCTION_V2: return "FireFunction v2";
case COMMON_CHAT_FORMAT_FUNCTIONARY_V3_2: return "Functionary v3.2";
case COMMON_CHAT_FORMAT_FUNCTIONARY_V3_1_LLAMA_3_1: return "Functionary v3.1 Llama 3.1";
case COMMON_CHAT_FORMAT_HERMES_2_PRO: return "Hermes 2 Pro";
case COMMON_CHAT_FORMAT_COMMAND_R7B: return "Command R7B";
default:
throw std::runtime_error("Unknown chat format");
}
} | O0 | cpp | common_chat_format_name[abi:cxx11](common_chat_format):
subq $0xa8, %rsp
movq %rdi, 0x68(%rsp)
movq %rdi, %rax
movq %rax, 0x70(%rsp)
movq %rdi, 0xa0(%rsp)
movl %esi, 0x9c(%rsp)
movl 0x9c(%rsp), %eax
movq %rax, 0x78(%rsp)
subq $0xa, %rax
ja 0x15676e
movq 0x78(%rsp), %rax
leaq 0x676ab(%rip), %rcx # 0x1bd9e0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x9b(%rsp), %rdi
movq %rdi, 0x60(%rsp)
callq 0x4fd90
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rdx
leaq 0x69e7b(%rip), %rsi # 0x1c01dc
callq 0x55120
jmp 0x156368
leaq 0x9b(%rsp), %rdi
callq 0x500e0
jmp 0x1567c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0x9b(%rsp), %rdi
callq 0x500e0
jmp 0x1567d6
leaq 0x8b(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0x4fd90
movq 0x68(%rsp), %rdi
movq 0x58(%rsp), %rdx
leaq 0x69e26(%rip), %rsi # 0x1c01e9
callq 0x55120
jmp 0x1563ca
leaq 0x8b(%rsp), %rdi
callq 0x500e0
jmp 0x1567c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0x8b(%rsp), %rdi
callq 0x500e0
jmp 0x1567d6
leaq 0x8a(%rsp), %rdi
movq %rdi, 0x50(%rsp)
callq 0x4fd90
movq 0x68(%rsp), %rdi
movq 0x50(%rsp), %rdx
leaq 0x69dcc(%rip), %rsi # 0x1c01f1
callq 0x55120
jmp 0x15642c
leaq 0x8a(%rsp), %rdi
callq 0x500e0
jmp 0x1567c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0x8a(%rsp), %rdi
callq 0x500e0
jmp 0x1567d6
leaq 0x89(%rsp), %rdi
movq %rdi, 0x48(%rsp)
callq 0x4fd90
movq 0x68(%rsp), %rdi
movq 0x48(%rsp), %rdx
leaq 0x69d77(%rip), %rsi # 0x1c01fe
callq 0x55120
jmp 0x15648e
leaq 0x89(%rsp), %rdi
callq 0x500e0
jmp 0x1567c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0x89(%rsp), %rdi
callq 0x500e0
jmp 0x1567d6
leaq 0x88(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0x4fd90
movq 0x68(%rsp), %rdi
movq 0x40(%rsp), %rdx
leaq 0x69d1f(%rip), %rsi # 0x1c0208
callq 0x55120
jmp 0x1564f0
leaq 0x88(%rsp), %rdi
callq 0x500e0
jmp 0x1567c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0x88(%rsp), %rdi
callq 0x500e0
jmp 0x1567d6
leaq 0x87(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0x4fd90
movq 0x68(%rsp), %rdi
movq 0x38(%rsp), %rdx
leaq 0x69cda(%rip), %rsi # 0x1c0225
callq 0x55120
jmp 0x156552
leaq 0x87(%rsp), %rdi
callq 0x500e0
jmp 0x1567c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0x87(%rsp), %rdi
callq 0x500e0
jmp 0x1567d6
leaq 0x86(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0x4fd90
movq 0x68(%rsp), %rdi
movq 0x30(%rsp), %rdx
leaq 0x69c84(%rip), %rsi # 0x1c0231
callq 0x55120
jmp 0x1565b4
leaq 0x86(%rsp), %rdi
callq 0x500e0
jmp 0x1567c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0x86(%rsp), %rdi
callq 0x500e0
jmp 0x1567d6
leaq 0x85(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x4fd90
movq 0x68(%rsp), %rdi
movq 0x28(%rsp), %rdx
leaq 0x69c32(%rip), %rsi # 0x1c0241
callq 0x55120
jmp 0x156616
leaq 0x85(%rsp), %rdi
callq 0x500e0
jmp 0x1567c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0x85(%rsp), %rdi
callq 0x500e0
jmp 0x1567d6
leaq 0x84(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x4fd90
movq 0x68(%rsp), %rdi
movq 0x20(%rsp), %rdx
leaq 0x69be1(%rip), %rsi # 0x1c0252
callq 0x55120
jmp 0x156678
leaq 0x84(%rsp), %rdi
callq 0x500e0
jmp 0x1567c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0x84(%rsp), %rdi
callq 0x500e0
jmp 0x1567d6
leaq 0x83(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x4fd90
movq 0x68(%rsp), %rdi
movq 0x18(%rsp), %rdx
leaq 0x69b9a(%rip), %rsi # 0x1c026d
callq 0x55120
jmp 0x1566da
leaq 0x83(%rsp), %rdi
callq 0x500e0
jmp 0x1567c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0x83(%rsp), %rdi
callq 0x500e0
jmp 0x1567d6
leaq 0x82(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x4fd90
movq 0x68(%rsp), %rdi
movq 0x10(%rsp), %rdx
leaq 0x69b45(%rip), %rsi # 0x1c027a
callq 0x55120
jmp 0x15673c
leaq 0x82(%rsp), %rdi
callq 0x500e0
jmp 0x1567c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0x82(%rsp), %rdi
callq 0x500e0
jmp 0x1567d6
movl $0x10, %edi
callq 0x4f580
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x8(%rsp)
leaq 0x69afc(%rip), %rsi # 0x1c0286
callq 0x4f380
jmp 0x156791
movq 0x8(%rsp), %rdi
movq 0xdf80b(%rip), %rsi # 0x235fa8
movq 0xdf7c4(%rip), %rdx # 0x235f68
callq 0x4f940
movq 0x8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
callq 0x4fc70
jmp 0x1567d6
movq 0x70(%rsp), %rax
addq $0xa8, %rsp
retq
movq 0x90(%rsp), %rdi
callq 0x4f990
nopw %cs:(%rax,%rax)
| _Z23common_chat_format_nameB5cxx1118common_chat_format:
sub rsp, 0A8h
mov [rsp+0A8h+var_40], rdi
mov rax, rdi
mov [rsp+0A8h+var_38], rax
mov [rsp+0A8h+var_8], rdi
mov [rsp+0A8h+var_C], esi
mov eax, [rsp+0A8h+var_C]
mov [rsp+0A8h+var_30], rax
sub rax, 0Ah; switch 11 cases
ja def_15633C; jumptable 000000000015633C default case
mov rax, [rsp+0A8h+var_30]
lea rcx, jpt_15633C
movsxd rax, ds:(jpt_15633C - 1BD9E0h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_15633E:
lea rdi, [rsp+0A8h+var_D]; jumptable 000000000015633C case 0
mov [rsp+0A8h+var_48], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rsp+0A8h+var_40]
mov rdx, [rsp+0A8h+var_48]
lea rsi, aContentOnly; "Content-only"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_156368:
lea rdi, [rsp+0A8h+var_D]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567C9
mov rcx, rax
mov eax, edx
mov [rsp+0A8h+var_18], rcx
mov [rsp+0A8h+var_1C], eax
lea rdi, [rsp+0A8h+var_D]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567D6
loc_1563A0:
lea rdi, [rsp+0A8h+var_1D]; jumptable 000000000015633C case 1
mov [rsp+0A8h+var_50], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rsp+0A8h+var_40]
mov rdx, [rsp+0A8h+var_50]
lea rsi, aGeneric; "Generic"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_1563CA:
lea rdi, [rsp+0A8h+var_1D]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567C9
mov rcx, rax
mov eax, edx
mov [rsp+0A8h+var_18], rcx
mov [rsp+0A8h+var_1C], eax
lea rdi, [rsp+0A8h+var_1D]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567D6
loc_156402:
lea rdi, [rsp+0A8h+var_1E]; jumptable 000000000015633C case 2
mov [rsp+0A8h+var_58], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rsp+0A8h+var_40]
mov rdx, [rsp+0A8h+var_58]
lea rsi, aMistralNemo; "Mistral Nemo"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_15642C:
lea rdi, [rsp+0A8h+var_1E]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567C9
mov rcx, rax
mov eax, edx
mov [rsp+0A8h+var_18], rcx
mov [rsp+0A8h+var_1C], eax
lea rdi, [rsp+0A8h+var_1E]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567D6
loc_156464:
lea rdi, [rsp+0A8h+var_1F]; jumptable 000000000015633C case 3
mov [rsp+0A8h+var_60], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rsp+0A8h+var_40]
mov rdx, [rsp+0A8h+var_60]
lea rsi, aLlama3X; "Llama 3.x"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_15648E:
lea rdi, [rsp+0A8h+var_1F]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567C9
mov rcx, rax
mov eax, edx
mov [rsp+0A8h+var_18], rcx
mov [rsp+0A8h+var_1C], eax
lea rdi, [rsp+0A8h+var_1F]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567D6
loc_1564C6:
lea rdi, [rsp+0A8h+var_20]; jumptable 000000000015633C case 4
mov [rsp+0A8h+var_68], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rsp+0A8h+var_40]
mov rdx, [rsp+0A8h+var_68]
lea rsi, aLlama3XWithBui; "Llama 3.x with builtin tools"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_1564F0:
lea rdi, [rsp+0A8h+var_20]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567C9
mov rcx, rax
mov eax, edx
mov [rsp+0A8h+var_18], rcx
mov [rsp+0A8h+var_1C], eax
lea rdi, [rsp+0A8h+var_20]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567D6
loc_156528:
lea rdi, [rsp+0A8h+var_21]; jumptable 000000000015633C case 5
mov [rsp+0A8h+var_70], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rsp+0A8h+var_40]
mov rdx, [rsp+0A8h+var_70]
lea rsi, aDeepseekR1; "DeepSeek R1"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_156552:
lea rdi, [rsp+0A8h+var_21]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567C9
mov rcx, rax
mov eax, edx
mov [rsp+0A8h+var_18], rcx
mov [rsp+0A8h+var_1C], eax
lea rdi, [rsp+0A8h+var_21]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567D6
loc_15658A:
lea rdi, [rsp+0A8h+var_22]; jumptable 000000000015633C case 6
mov [rsp+0A8h+var_78], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rsp+0A8h+var_40]
mov rdx, [rsp+0A8h+var_78]
lea rsi, aFirefunctionV2; "FireFunction v2"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_1565B4:
lea rdi, [rsp+0A8h+var_22]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567C9
mov rcx, rax
mov eax, edx
mov [rsp+0A8h+var_18], rcx
mov [rsp+0A8h+var_1C], eax
lea rdi, [rsp+0A8h+var_22]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567D6
loc_1565EC:
lea rdi, [rsp+0A8h+var_23]; jumptable 000000000015633C case 7
mov [rsp+0A8h+var_80], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rsp+0A8h+var_40]
mov rdx, [rsp+0A8h+var_80]
lea rsi, aFunctionaryV32; "Functionary v3.2"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_156616:
lea rdi, [rsp+0A8h+var_23]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567C9
mov rcx, rax
mov eax, edx
mov [rsp+0A8h+var_18], rcx
mov [rsp+0A8h+var_1C], eax
lea rdi, [rsp+0A8h+var_23]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567D6
loc_15664E:
lea rdi, [rsp+0A8h+var_24]; jumptable 000000000015633C case 8
mov [rsp+0A8h+var_88], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rsp+0A8h+var_40]
mov rdx, [rsp+0A8h+var_88]
lea rsi, aFunctionaryV31; "Functionary v3.1 Llama 3.1"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_156678:
lea rdi, [rsp+0A8h+var_24]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567C9
mov rcx, rax
mov eax, edx
mov [rsp+0A8h+var_18], rcx
mov [rsp+0A8h+var_1C], eax
lea rdi, [rsp+0A8h+var_24]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567D6
loc_1566B0:
lea rdi, [rsp+0A8h+var_25]; jumptable 000000000015633C case 9
mov [rsp+0A8h+var_90], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rsp+0A8h+var_40]
mov rdx, [rsp+0A8h+var_90]
lea rsi, aHermes2Pro; "Hermes 2 Pro"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_1566DA:
lea rdi, [rsp+0A8h+var_25]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567C9
mov rcx, rax
mov eax, edx
mov [rsp+0A8h+var_18], rcx
mov [rsp+0A8h+var_1C], eax
lea rdi, [rsp+0A8h+var_25]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_1567D6
loc_156712:
lea rdi, [rsp+0A8h+var_26]; jumptable 000000000015633C case 10
mov [rsp+0A8h+var_98], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rsp+0A8h+var_40]
mov rdx, [rsp+0A8h+var_98]
lea rsi, aCommandR7b; "Command R7B"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_15673C:
lea rdi, [rsp+0A8h+var_26]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_1567C9
mov rcx, rax
mov eax, edx
mov [rsp+0A8h+var_18], rcx
mov [rsp+0A8h+var_1C], eax
lea rdi, [rsp+0A8h+var_26]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_1567D6
def_15633C:
mov edi, 10h; jumptable 000000000015633C default case
call ___cxa_allocate_exception
mov rdi, rax; this
mov rax, rdi
mov [rsp+0A8h+var_A0], rax
lea rsi, aUnknownChatFor; "Unknown chat format"
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short $+2
loc_156791:
mov rdi, [rsp+0A8h+var_A0]; void *
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
mov rdi, [rsp+0A8h+var_A0]; void *
mov rcx, rax
mov eax, edx
mov [rsp+0A8h+var_18], rcx
mov [rsp+0A8h+var_1C], eax
call ___cxa_free_exception
jmp short loc_1567D6
loc_1567C9:
mov rax, [rsp+0A8h+var_38]
add rsp, 0A8h
retn
loc_1567D6:
mov rdi, [rsp+0A8h+var_18]
call __Unwind_Resume
| long long common_chat_format_name[abi:cxx11](long long a1, long long a2)
{
std::runtime_error *exception; // [rsp+8h] [rbp-A0h]
char v4; // [rsp+82h] [rbp-26h] BYREF
char v5; // [rsp+83h] [rbp-25h] BYREF
char v6; // [rsp+84h] [rbp-24h] BYREF
char v7; // [rsp+85h] [rbp-23h] BYREF
char v8; // [rsp+86h] [rbp-22h] BYREF
char v9; // [rsp+87h] [rbp-21h] BYREF
char v10; // [rsp+88h] [rbp-20h] BYREF
char v11; // [rsp+89h] [rbp-1Fh] BYREF
char v12; // [rsp+8Ah] [rbp-1Eh] BYREF
char v13; // [rsp+8Bh] [rbp-1Dh] BYREF
char v14; // [rsp+9Bh] [rbp-Dh] BYREF
int v15; // [rsp+9Ch] [rbp-Ch]
long long v16; // [rsp+A0h] [rbp-8h]
v16 = a1;
v15 = a2;
switch ( (int)a2 )
{
case 0:
std::allocator<char>::allocator(&v14, a2);
std::string::basic_string<std::allocator<char>>(a1, (long long)"Content-only", (long long)&v14);
std::allocator<char>::~allocator(&v14);
break;
case 1:
std::allocator<char>::allocator(&v13, a2);
std::string::basic_string<std::allocator<char>>(a1, (long long)"Generic", (long long)&v13);
std::allocator<char>::~allocator(&v13);
break;
case 2:
std::allocator<char>::allocator(&v12, a2);
std::string::basic_string<std::allocator<char>>(a1, (long long)"Mistral Nemo", (long long)&v12);
std::allocator<char>::~allocator(&v12);
break;
case 3:
std::allocator<char>::allocator(&v11, a2);
std::string::basic_string<std::allocator<char>>(a1, (long long)"Llama 3.x", (long long)&v11);
std::allocator<char>::~allocator(&v11);
break;
case 4:
std::allocator<char>::allocator(&v10, a2);
std::string::basic_string<std::allocator<char>>(a1, (long long)"Llama 3.x with builtin tools", (long long)&v10);
std::allocator<char>::~allocator(&v10);
break;
case 5:
std::allocator<char>::allocator(&v9, a2);
std::string::basic_string<std::allocator<char>>(a1, (long long)"DeepSeek R1", (long long)&v9);
std::allocator<char>::~allocator(&v9);
break;
case 6:
std::allocator<char>::allocator(&v8, a2);
std::string::basic_string<std::allocator<char>>(a1, (long long)"FireFunction v2", (long long)&v8);
std::allocator<char>::~allocator(&v8);
break;
case 7:
std::allocator<char>::allocator(&v7, a2);
std::string::basic_string<std::allocator<char>>(a1, (long long)"Functionary v3.2", (long long)&v7);
std::allocator<char>::~allocator(&v7);
break;
case 8:
std::allocator<char>::allocator(&v6, a2);
std::string::basic_string<std::allocator<char>>(a1, (long long)"Functionary v3.1 Llama 3.1", (long long)&v6);
std::allocator<char>::~allocator(&v6);
break;
case 9:
std::allocator<char>::allocator(&v5, a2);
std::string::basic_string<std::allocator<char>>(a1, (long long)"Hermes 2 Pro", (long long)&v5);
std::allocator<char>::~allocator(&v5);
break;
case 10:
std::allocator<char>::allocator(&v4, a2);
std::string::basic_string<std::allocator<char>>(a1, (long long)"Command R7B", (long long)&v4);
std::allocator<char>::~allocator(&v4);
break;
default:
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Unknown chat format");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
return a1;
}
| ~allocator:
PUSH RAX
MOV qword ptr [RSP],RDI
MOV RDI,qword ptr [RSP]
CALL 0x001561d0
POP RAX
RET
|
/* std::allocator<int>::~allocator() */
allocator<int> * __thiscall std::allocator<int>::~allocator(allocator<int> *this)
{
__gnu_cxx::new_allocator<int>::~new_allocator((new_allocator<int> *)this);
return this;
}
| |
35,126 | void ImPlot3D::PlotQuadEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned char>, ImPlot3D::IndexerIdx<unsigned char>, ImPlot3D::IndexerIdx<unsigned char>>>(char const*, ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned char>, ImPlot3D::IndexerIdx<unsigned char>, ImPlot3D::IndexerIdx<unsigned char>> const&, int) | zkingston[P]unknot/build_O0/_deps/implot3d-src/implot3d_items.cpp | void PlotQuadEx(const char* label_id, const _Getter& getter, ImPlot3DQuadFlags flags) {
if (BeginItemEx(label_id, getter, flags, ImPlot3DCol_Fill)) {
const ImPlot3DNextItemData& n = GetItemData();
// Render fill
if (getter.Count >= 4 && n.RenderFill) {
const ImU32 col_fill = ImGui::GetColorU32(n.Colors[ImPlot3DCol_Fill]);
RenderPrimitives<RendererQuadFill>(getter, col_fill);
}
// Render lines
if (getter.Count >= 2 && n.RenderLine) {
const ImU32 col_line = ImGui::GetColorU32(n.Colors[ImPlot3DCol_Line]);
RenderPrimitives<RendererLineSegments>(GetterQuadLines<_Getter>(getter), col_line, n.LineWeight);
}
// Render markers
if (n.Marker != ImPlot3DMarker_None) {
const ImU32 col_line = ImGui::GetColorU32(n.Colors[ImPlot3DCol_MarkerOutline]);
const ImU32 col_fill = ImGui::GetColorU32(n.Colors[ImPlot3DCol_MarkerFill]);
RenderMarkers<_Getter>(getter, n.Marker, n.MarkerSize, n.RenderMarkerFill, col_fill, n.RenderMarkerLine, col_line, n.MarkerWeight);
}
EndItem();
}
} | O0 | cpp | void ImPlot3D::PlotQuadEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned char>, ImPlot3D::IndexerIdx<unsigned char>, ImPlot3D::IndexerIdx<unsigned char>>>(char const*, ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<unsigned char>, ImPlot3D::IndexerIdx<unsigned char>, ImPlot3D::IndexerIdx<unsigned char>> const&, int):
subq $0x128, %rsp # imm = 0x128
movq %rdi, 0x120(%rsp)
movq %rsi, 0x118(%rsp)
movl %edx, 0x114(%rsp)
movq 0x120(%rsp), %rdi
movq 0x118(%rsp), %rsi
movl 0x114(%rsp), %edx
movl $0x1, %ecx
callq 0xfee80
testb $0x1, %al
jne 0xe6c98
jmp 0xe6e3e
callq 0xd7150
movq %rax, 0x108(%rsp)
movq 0x118(%rsp), %rax
cmpl $0x4, 0x48(%rax)
jl 0xe6ced
movq 0x108(%rsp), %rax
testb $0x1, 0x55(%rax)
je 0xe6ced
movq 0x108(%rsp), %rdi
addq $0x10, %rdi
callq 0x4f6eb0
movl %eax, 0x104(%rsp)
movq 0x118(%rsp), %rdi
movl 0x104(%rsp), %esi
callq 0x1897a0
movq 0x118(%rsp), %rax
cmpl $0x2, 0x48(%rax)
jl 0xe6d9f
movq 0x108(%rsp), %rax
testb $0x1, 0x54(%rax)
je 0xe6d9f
movq 0x108(%rsp), %rdi
callq 0x4f6eb0
movl %eax, 0x100(%rsp)
movq 0x118(%rsp), %rsi
leaq 0x58(%rsp), %rdi
movl $0x50, %edx
callq 0x129b0
movups 0x98(%rsp), %xmm0
movq %rsp, %rax
movups %xmm0, 0x40(%rax)
movups 0x58(%rsp), %xmm0
movups 0x68(%rsp), %xmm1
movups 0x78(%rsp), %xmm2
movups 0x88(%rsp), %xmm3
movups %xmm3, 0x30(%rax)
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
leaq 0xa8(%rsp), %rdi
callq 0x18cf80
movl 0x100(%rsp), %esi
movq 0x108(%rsp), %rax
movss 0x40(%rax), %xmm0
leaq 0xa8(%rsp), %rdi
callq 0x18b8a0
movq 0x108(%rsp), %rax
cmpl $-0x1, 0x44(%rax)
je 0xe6e39
movq 0x108(%rsp), %rdi
addq $0x20, %rdi
callq 0x4f6eb0
movl %eax, 0x54(%rsp)
movq 0x108(%rsp), %rdi
addq $0x30, %rdi
callq 0x4f6eb0
movl %eax, 0x50(%rsp)
movq 0x118(%rsp), %rdi
movq 0x108(%rsp), %rax
movl 0x44(%rax), %esi
movq 0x108(%rsp), %rax
movss 0x48(%rax), %xmm0
movq 0x108(%rsp), %rax
movb 0x57(%rax), %dl
movl 0x50(%rsp), %ecx
movq 0x108(%rsp), %rax
movb 0x56(%rax), %al
movl 0x54(%rsp), %r9d
movq 0x108(%rsp), %r8
movss 0x4c(%r8), %xmm1
andb $0x1, %dl
andb $0x1, %al
movzbl %dl, %edx
movzbl %al, %r8d
callq 0xff510
callq 0xdda10
addq $0x128, %rsp # imm = 0x128
retq
nopw %cs:(%rax,%rax)
| _ZN8ImPlot3D10PlotQuadExINS_9GetterXYZINS_10IndexerIdxIfEES3_S3_EEEEvPKcRKT_i:
sub rsp, 128h
mov [rsp+128h+var_8], rdi
mov [rsp+128h+var_10], rsi
mov [rsp+128h+var_14], edx
mov rdi, [rsp+128h+var_8]; this
mov rsi, [rsp+128h+var_10]; ImVec4 *
mov edx, [rsp+128h+var_14]
mov ecx, 1
call _ZN8ImPlot3D11BeginItemExINS_9GetterXYZINS_10IndexerIdxIfEES3_S3_EEEEbPKcRKT_ii; ImPlot3D::BeginItemEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>>(char const*,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>> const&,int,int)
test al, 1
jnz short loc_E6C98
jmp loc_E6E3E
loc_E6C98:
call _ZN8ImPlot3D11GetItemDataEv; ImPlot3D::GetItemData(void)
mov [rsp+108h], rax
mov rax, [rsp+128h+var_10]
cmp dword ptr [rax+48h], 4
jl short loc_E6CED
mov rax, [rsp+108h]
test byte ptr [rax+55h], 1
jz short loc_E6CED
mov rdi, [rsp+108h]
add rdi, 10h; this
call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&)
mov dword ptr [rsp+128h+var_28+4], eax
mov rdi, [rsp+128h+var_10]
mov esi, dword ptr [rsp+128h+var_28+4]; ImVec4 *
call _ZN8ImPlot3D16RenderPrimitivesINS_16RendererQuadFillENS_9GetterXYZINS_10IndexerIdxIfEES4_S4_EEJjEEEvRKT0_DpT1_; ImPlot3D::RenderPrimitives<ImPlot3D::RendererQuadFill,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>,uint>(ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>> const&,uint)
loc_E6CED:
mov rax, [rsp+128h+var_10]
cmp dword ptr [rax+48h], 2
jl loc_E6D9F
mov rax, [rsp+108h]
test byte ptr [rax+54h], 1
jz loc_E6D9F
mov rdi, [rsp+108h]; this
call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&)
mov dword ptr [rsp+128h+var_28], eax
mov rsi, [rsp+128h+var_10]
lea rdi, [rsp+128h+var_D0]
mov edx, 50h ; 'P'
call _memcpy
movups xmm0, [rsp+128h+var_90]
mov rax, rsp
movups xmmword ptr [rax+40h], xmm0
movups xmm0, [rsp+128h+var_D0]
movups xmm1, [rsp+128h+var_C0]
movups xmm2, [rsp+128h+var_B0]
movups xmm3, [rsp+128h+var_A0]
movups xmmword ptr [rax+30h], xmm3
movups xmmword ptr [rax+20h], xmm2
movups xmmword ptr [rax+10h], xmm1
movups xmmword ptr [rax], xmm0
lea rdi, [rsp+128h+var_80]
call _ZN8ImPlot3D15GetterQuadLinesINS_9GetterXYZINS_10IndexerIdxIfEES3_S3_EEEC2ES4_; ImPlot3D::GetterQuadLines<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>>::GetterQuadLines(ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>)
mov esi, dword ptr [rsp+128h+var_28]; ImVec4 *
mov rax, [rsp+108h]
movss xmm0, dword ptr [rax+40h]
lea rdi, [rsp+128h+var_80]
call _ZN8ImPlot3D16RenderPrimitivesINS_20RendererLineSegmentsENS_15GetterQuadLinesINS_9GetterXYZINS_10IndexerIdxIfEES5_S5_EEEEJjfEEEvRKT0_DpT1_; ImPlot3D::RenderPrimitives<ImPlot3D::RendererLineSegments,ImPlot3D::GetterQuadLines<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>>,uint,float>(ImPlot3D::GetterQuadLines<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>> const&,uint,float)
loc_E6D9F:
mov rax, [rsp+108h]
cmp dword ptr [rax+44h], 0FFFFFFFFh
jz loc_E6E39
mov rdi, [rsp+108h]
add rdi, 20h ; ' '; this
call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&)
mov [rsp+128h+var_D4], eax
mov rdi, [rsp+108h]
add rdi, 30h ; '0'; this
call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&)
mov [rsp+128h+var_D8], eax
mov rdi, [rsp+128h+var_10]; this
mov rax, [rsp+108h]
mov esi, [rax+44h]
mov rax, [rsp+108h]
movss xmm0, dword ptr [rax+48h]
mov rax, [rsp+108h]
mov dl, [rax+57h]
mov ecx, [rsp+128h+var_D8]
mov rax, [rsp+108h]
mov al, [rax+56h]
mov r9d, [rsp+128h+var_D4]
mov r8, [rsp+108h]
movss xmm1, dword ptr [r8+4Ch]
and dl, 1
and al, 1
movzx edx, dl
movzx r8d, al
call _ZN8ImPlot3D13RenderMarkersINS_9GetterXYZINS_10IndexerIdxIfEES3_S3_EEEEvRKT_ifbjbjf; ImPlot3D::RenderMarkers<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>>(ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>> const&,int,float,bool,uint,bool,uint,float)
loc_E6E39:
call _ZN8ImPlot3D7EndItemEv; ImPlot3D::EndItem(void)
loc_E6E3E:
add rsp, 128h
retn
| long long ImPlot3D::PlotQuadEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>>(
ImPlot3D *a1,
unsigned long long a2,
unsigned int a3)
{
long long result; // rax
int v4; // esi
int v5; // edx
int v6; // ecx
int v7; // r8d
int v8; // r9d
unsigned int v9; // [rsp+50h] [rbp-D8h]
unsigned int v10; // [rsp+54h] [rbp-D4h]
_OWORD v11[5]; // [rsp+58h] [rbp-D0h] BYREF
_BYTE v12[88]; // [rsp+A8h] [rbp-80h] BYREF
unsigned int v13; // [rsp+100h] [rbp-28h]
unsigned int ColorU32; // [rsp+104h] [rbp-24h]
ImGui *ItemData; // [rsp+108h] [rbp-20h]
unsigned int v16; // [rsp+114h] [rbp-14h]
ImPlot3D *v17; // [rsp+118h] [rbp-10h]
ImPlot3D *v18; // [rsp+120h] [rbp-8h]
v18 = a1;
v17 = (ImPlot3D *)a2;
v16 = a3;
result = ImPlot3D::BeginItemEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>>(
a1,
a2,
a3,
1LL);
if ( (result & 1) != 0 )
{
ItemData = (ImGui *)ImPlot3D::GetItemData(a1);
if ( *((int *)v17 + 18) >= 4 && (*((_BYTE *)ItemData + 85) & 1) != 0 )
{
ColorU32 = ImGui::GetColorU32((ImGui *)((char *)ItemData + 16), (const ImVec4 *)a2);
a1 = v17;
a2 = ColorU32;
ImPlot3D::RenderPrimitives<ImPlot3D::RendererQuadFill,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>,unsigned int>(
v17,
ColorU32);
}
if ( *((int *)v17 + 18) >= 2 && (*((_BYTE *)ItemData + 84) & 1) != 0 )
{
v13 = ImGui::GetColorU32(ItemData, (const ImVec4 *)a2);
v4 = (int)v17;
memcpy(v11, v17, sizeof(v11));
ImPlot3D::GetterQuadLines<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>>::GetterQuadLines(
(unsigned int)v12,
v4,
v5,
v6,
v7,
v8,
v11[0],
v11[1],
v11[2],
v11[3],
v11[4]);
a2 = v13;
a1 = (ImPlot3D *)v12;
ImPlot3D::RenderPrimitives<ImPlot3D::RendererLineSegments,ImPlot3D::GetterQuadLines<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>>,unsigned int,float>(
v12,
v13,
*((float *)ItemData + 16));
}
if ( *((_DWORD *)ItemData + 17) != -1 )
{
v10 = ImGui::GetColorU32((ImGui *)((char *)ItemData + 32), (const ImVec4 *)a2);
v9 = ImGui::GetColorU32((ImGui *)((char *)ItemData + 48), (const ImVec4 *)a2);
a1 = v17;
ImPlot3D::RenderMarkers<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>>(
v17,
*((unsigned int *)ItemData + 17),
*((_BYTE *)ItemData + 87) & 1,
v9,
*((_BYTE *)ItemData + 86) & 1,
v10,
*((float *)ItemData + 18),
*((float *)ItemData + 19));
}
return ImPlot3D::EndItem(a1);
}
return result;
}
| PlotQuadEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>>:
SUB RSP,0x128
MOV qword ptr [RSP + 0x120],RDI
MOV qword ptr [RSP + 0x118],RSI
MOV dword ptr [RSP + 0x114],EDX
MOV RDI,qword ptr [RSP + 0x120]
MOV RSI,qword ptr [RSP + 0x118]
MOV EDX,dword ptr [RSP + 0x114]
MOV ECX,0x1
CALL 0x001fee80
TEST AL,0x1
JNZ 0x001e6c98
JMP 0x001e6e3e
LAB_001e6c98:
CALL 0x001d7150
MOV qword ptr [RSP + 0x108],RAX
MOV RAX,qword ptr [RSP + 0x118]
CMP dword ptr [RAX + 0x48],0x4
JL 0x001e6ced
MOV RAX,qword ptr [RSP + 0x108]
TEST byte ptr [RAX + 0x55],0x1
JZ 0x001e6ced
MOV RDI,qword ptr [RSP + 0x108]
ADD RDI,0x10
CALL 0x005f6eb0
MOV dword ptr [RSP + 0x104],EAX
MOV RDI,qword ptr [RSP + 0x118]
MOV ESI,dword ptr [RSP + 0x104]
CALL 0x002897a0
LAB_001e6ced:
MOV RAX,qword ptr [RSP + 0x118]
CMP dword ptr [RAX + 0x48],0x2
JL 0x001e6d9f
MOV RAX,qword ptr [RSP + 0x108]
TEST byte ptr [RAX + 0x54],0x1
JZ 0x001e6d9f
MOV RDI,qword ptr [RSP + 0x108]
CALL 0x005f6eb0
MOV dword ptr [RSP + 0x100],EAX
MOV RSI,qword ptr [RSP + 0x118]
LEA RDI,[RSP + 0x58]
MOV EDX,0x50
CALL 0x001129b0
MOVUPS XMM0,xmmword ptr [RSP + 0x98]
MOV RAX,RSP
MOVUPS xmmword ptr [RAX + 0x40],XMM0
MOVUPS XMM0,xmmword ptr [RSP + 0x58]
MOVUPS XMM1,xmmword ptr [RSP + 0x68]
MOVUPS XMM2,xmmword ptr [RSP + 0x78]
MOVUPS XMM3,xmmword ptr [RSP + 0x88]
MOVUPS xmmword ptr [RAX + 0x30],XMM3
MOVUPS xmmword ptr [RAX + 0x20],XMM2
MOVUPS xmmword ptr [RAX + 0x10],XMM1
MOVUPS xmmword ptr [RAX],XMM0
LEA RDI,[RSP + 0xa8]
CALL 0x0028cf80
MOV ESI,dword ptr [RSP + 0x100]
MOV RAX,qword ptr [RSP + 0x108]
MOVSS XMM0,dword ptr [RAX + 0x40]
LEA RDI,[RSP + 0xa8]
CALL 0x0028b8a0
LAB_001e6d9f:
MOV RAX,qword ptr [RSP + 0x108]
CMP dword ptr [RAX + 0x44],-0x1
JZ 0x001e6e39
MOV RDI,qword ptr [RSP + 0x108]
ADD RDI,0x20
CALL 0x005f6eb0
MOV dword ptr [RSP + 0x54],EAX
MOV RDI,qword ptr [RSP + 0x108]
ADD RDI,0x30
CALL 0x005f6eb0
MOV dword ptr [RSP + 0x50],EAX
MOV RDI,qword ptr [RSP + 0x118]
MOV RAX,qword ptr [RSP + 0x108]
MOV ESI,dword ptr [RAX + 0x44]
MOV RAX,qword ptr [RSP + 0x108]
MOVSS XMM0,dword ptr [RAX + 0x48]
MOV RAX,qword ptr [RSP + 0x108]
MOV DL,byte ptr [RAX + 0x57]
MOV ECX,dword ptr [RSP + 0x50]
MOV RAX,qword ptr [RSP + 0x108]
MOV AL,byte ptr [RAX + 0x56]
MOV R9D,dword ptr [RSP + 0x54]
MOV R8,qword ptr [RSP + 0x108]
MOVSS XMM1,dword ptr [R8 + 0x4c]
AND DL,0x1
AND AL,0x1
MOVZX EDX,DL
MOVZX R8D,AL
CALL 0x001ff510
LAB_001e6e39:
CALL 0x001dda10
LAB_001e6e3e:
ADD RSP,0x128
RET
|
/* void ImPlot3D::PlotQuadEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,
ImPlot3D::IndexerIdx<float>, ImPlot3D::IndexerIdx<float> > >(char const*,
ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>, ImPlot3D::IndexerIdx<float>,
ImPlot3D::IndexerIdx<float> > const&, int) */
void ImPlot3D::
PlotQuadEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>>
(char *param_1,GetterXYZ *param_2,int param_3)
{
bool bVar1;
uint uVar2;
uint uVar3;
uint extraout_EDX;
int1 local_d0 [80];
ImPlot3D local_80 [88];
uint local_28;
uint local_24;
ImVec4 *local_20;
int local_14;
GetterXYZ *local_10;
char *local_8;
local_14 = param_3;
local_10 = param_2;
local_8 = param_1;
bVar1 = BeginItemEx<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>>
(param_1,param_2,param_3,1);
if (bVar1) {
local_20 = (ImVec4 *)GetItemData();
if ((3 < *(int *)(local_10 + 0x48)) && (((byte)local_20[0x55] & 1) != 0)) {
local_24 = ImGui::GetColorU32(local_20 + 0x10);
RenderPrimitives<ImPlot3D::RendererQuadFill,ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>,unsigned_int>
(local_10,local_24);
}
if ((1 < *(int *)(local_10 + 0x48)) && (((byte)local_20[0x54] & 1) != 0)) {
local_28 = ImGui::GetColorU32(local_20);
memcpy(local_d0,local_10,0x50);
GetterQuadLines<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>>
::GetterQuadLines(local_80);
RenderPrimitives<ImPlot3D::RendererLineSegments,ImPlot3D::GetterQuadLines<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>>,unsigned_int,float>
(local_80,(GetterQuadLines *)(ulong)local_28,extraout_EDX,
*(float *)(local_20 + 0x40));
}
if (*(int *)(local_20 + 0x44) != -1) {
uVar2 = ImGui::GetColorU32(local_20 + 0x20);
uVar3 = ImGui::GetColorU32(local_20 + 0x30);
RenderMarkers<ImPlot3D::GetterXYZ<ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>,ImPlot3D::IndexerIdx<float>>>
(local_10,*(int *)(local_20 + 0x44),*(float *)(local_20 + 0x48),
(bool)((byte)local_20[0x57] & 1),uVar3,(bool)((byte)local_20[0x56] & 1),uVar2,
*(float *)(local_20 + 0x4c));
}
EndItem();
}
return;
}
| |
35,127 | translog_get_last_page_addr | eloqsql/storage/maria/ma_loghandler.c | static my_bool translog_get_last_page_addr(TRANSLOG_ADDRESS *addr,
my_bool *last_page_ok,
my_bool no_errors)
{
char path[FN_REFLEN];
uint32 rec_offset;
my_off_t file_size;
uint32 file_no= LSN_FILE_NO(*addr);
TRANSLOG_FILE *file;
#ifndef DBUG_OFF
char buff[21];
#endif
DBUG_ENTER("translog_get_last_page_addr");
if (likely((file= get_logfile_by_number(file_no)) != NULL))
{
/*
This function used only during initialization of loghandler or in
scanner (which mean we need read that part of the log), so the
requested log file have to be opened and can't be freed after
returning pointer on it (file_size).
*/
file_size= mysql_file_seek(file->handler.file, 0, SEEK_END, MYF(0));
}
else
{
/*
This branch is used only during very early initialization
when files are not opened.
*/
File fd;
if ((fd= mysql_file_open(key_file_translog,
translog_filename_by_fileno(file_no, path),
O_RDONLY | O_CLOEXEC, (no_errors ? MYF(0) : MYF(MY_WME)))) < 0)
{
my_errno= errno;
DBUG_PRINT("error", ("Error %d during opening file #%d",
errno, file_no));
DBUG_RETURN(1);
}
file_size= mysql_file_seek(fd, 0, SEEK_END, MYF(0));
mysql_file_close(fd, MYF(0));
}
DBUG_PRINT("info", ("File size: %s", llstr(file_size, buff)));
if (file_size == MY_FILEPOS_ERROR)
DBUG_RETURN(1);
DBUG_ASSERT(file_size < 0xffffffffULL);
if (((uint32)file_size) > TRANSLOG_PAGE_SIZE)
{
rec_offset= (((((uint32)file_size) / TRANSLOG_PAGE_SIZE) - 1) *
TRANSLOG_PAGE_SIZE);
*last_page_ok= (((uint32)file_size) == rec_offset + TRANSLOG_PAGE_SIZE);
}
else
{
*last_page_ok= 0;
rec_offset= 0;
}
*addr= MAKE_LSN(file_no, rec_offset);
DBUG_PRINT("info", ("Last page: 0x%lx ok: %d", (ulong) rec_offset,
*last_page_ok));
DBUG_RETURN(0);
} | O0 | c | translog_get_last_page_addr:
pushq %rbp
movq %rsp, %rbp
subq $0x260, %rsp # imm = 0x260
movb %dl, %al
movq %fs:0x28, %rcx
movq %rcx, -0x8(%rbp)
movq %rdi, -0x220(%rbp)
movq %rsi, -0x228(%rbp)
movb %al, -0x229(%rbp)
movq -0x220(%rbp), %rax
movq (%rax), %rax
sarq $0x20, %rax
movl %eax, -0x23c(%rbp)
movl -0x23c(%rbp), %edi
callq 0x58990
movq %rax, -0x248(%rbp)
cmpq $0x0, %rax
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x51d08
movq -0x248(%rbp), %rax
movl 0x18(%rax), %edx
leaq 0xfffea(%rip), %rdi # 0x151cce
movl $0xcd4, %esi # imm = 0xCD4
xorl %eax, %eax
movl %eax, %r9d
movl $0x2, %r8d
movq %r9, %rcx
callq 0x52000
movq %rax, -0x238(%rbp)
jmp 0x51ddb
leaq 0x426005(%rip), %rax # 0x477d14
movl (%rax), %eax
movl %eax, -0x250(%rbp)
movl -0x23c(%rbp), %edi
leaq -0x210(%rbp), %rsi
callq 0x4f7f0
movl -0x250(%rbp), %edi
movq %rax, %rcx
movsbl -0x229(%rbp), %edx
movl $0x10, %r9d
xorl %eax, %eax
cmpl $0x0, %edx
cmovneq %rax, %r9
leaq 0xfff7f(%rip), %rsi # 0x151cce
movl $0xcdf, %edx # imm = 0xCDF
movl $0x80000, %r8d # imm = 0x80000
callq 0x58820
movl %eax, -0x24c(%rbp)
cmpl $0x0, %eax
jge 0x51d94
callq 0x2a760
movl (%rax), %eax
movl %eax, -0x254(%rbp)
callq 0xf6090
movl -0x254(%rbp), %ecx
movl %ecx, (%rax)
jmp 0x51d86
jmp 0x51d88
movb $0x1, -0x211(%rbp)
jmp 0x51e87
movl -0x24c(%rbp), %edx
leaq 0xfff2d(%rip), %rdi # 0x151cce
movl $0xce6, %esi # imm = 0xCE6
xorl %eax, %eax
movl %eax, %r9d
movl $0x2, %r8d
movq %r9, %rcx
callq 0x52000
movq %rax, -0x238(%rbp)
movl -0x24c(%rbp), %edx
leaq 0xfff01(%rip), %rdi # 0x151cce
movl $0xce7, %esi # imm = 0xCE7
xorl %eax, %eax
movl %eax, %ecx
callq 0x4fe90
jmp 0x51ddd
jmp 0x51ddf
cmpq $-0x1, -0x238(%rbp)
jne 0x51df7
jmp 0x51deb
movb $0x1, -0x211(%rbp)
jmp 0x51e87
jmp 0x51df9
jmp 0x51dfb
movq -0x238(%rbp), %rax
cmpl $0x2000, %eax # imm = 0x2000
jbe 0x51e49
movq -0x238(%rbp), %rax
shrl $0xd, %eax
subl $0x1, %eax
shll $0xd, %eax
movl %eax, -0x230(%rbp)
movq -0x238(%rbp), %rax
movl -0x230(%rbp), %ecx
addl $0x2000, %ecx # imm = 0x2000
cmpl %ecx, %eax
sete %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %cl
movq -0x228(%rbp), %rax
movb %cl, (%rax)
jmp 0x51e5d
movq -0x228(%rbp), %rax
movb $0x0, (%rax)
movl $0x0, -0x230(%rbp)
movl -0x23c(%rbp), %eax
movl %eax, %ecx
shlq $0x20, %rcx
movl -0x230(%rbp), %eax
orq %rax, %rcx
movq -0x220(%rbp), %rax
movq %rcx, (%rax)
jmp 0x51e7e
jmp 0x51e80
movb $0x0, -0x211(%rbp)
movb -0x211(%rbp), %al
movb %al, -0x255(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x51eb4
movb -0x255(%rbp), %al
addq $0x260, %rsp # imm = 0x260
popq %rbp
retq
callq 0x2a270
nopl (%rax)
| translog_get_last_page_addr:
push rbp
mov rbp, rsp
sub rsp, 260h
mov al, dl
mov rcx, fs:28h
mov [rbp+var_8], rcx
mov [rbp+var_220], rdi
mov [rbp+var_228], rsi
mov [rbp+var_229], al
mov rax, [rbp+var_220]
mov rax, [rax]
sar rax, 20h
mov [rbp+var_23C], eax
mov edi, [rbp+var_23C]
call get_logfile_by_number
mov [rbp+var_248], rax
cmp rax, 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_51D08
mov rax, [rbp+var_248]
mov edx, [rax+18h]
lea rdi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 0CD4h
xor eax, eax
mov r9d, eax
mov r8d, 2
mov rcx, r9
call inline_mysql_file_seek_2
mov [rbp+var_238], rax
jmp loc_51DDB
loc_51D08:
lea rax, key_file_translog
mov eax, [rax]
mov [rbp+var_250], eax
mov edi, [rbp+var_23C]
lea rsi, [rbp+var_210]
call translog_filename_by_fileno
mov edi, [rbp+var_250]
mov rcx, rax
movsx edx, [rbp+var_229]
mov r9d, 10h
xor eax, eax
cmp edx, 0
cmovnz r9, rax
lea rsi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 0CDFh
mov r8d, offset loc_80000
call inline_mysql_file_open_0
mov [rbp+var_24C], eax
cmp eax, 0
jge short loc_51D94
call ___errno_location
mov eax, [rax]
mov [rbp+var_254], eax
call _my_thread_var
mov ecx, [rbp+var_254]
mov [rax], ecx
jmp short $+2
loc_51D86:
jmp short $+2
loc_51D88:
mov [rbp+var_211], 1
jmp loc_51E87
loc_51D94:
mov edx, [rbp+var_24C]
lea rdi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 0CE6h
xor eax, eax
mov r9d, eax
mov r8d, 2
mov rcx, r9
call inline_mysql_file_seek_2
mov [rbp+var_238], rax
mov edx, [rbp+var_24C]
lea rdi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 0CE7h
xor eax, eax
mov ecx, eax
call inline_mysql_file_close_2
loc_51DDB:
jmp short $+2
loc_51DDD:
jmp short $+2
loc_51DDF:
cmp [rbp+var_238], 0FFFFFFFFFFFFFFFFh
jnz short loc_51DF7
jmp short $+2
loc_51DEB:
mov [rbp+var_211], 1
jmp loc_51E87
loc_51DF7:
jmp short $+2
loc_51DF9:
jmp short $+2
loc_51DFB:
mov rax, [rbp+var_238]
cmp eax, 2000h
jbe short loc_51E49
mov rax, [rbp+var_238]
shr eax, 0Dh
sub eax, 1
shl eax, 0Dh
mov [rbp+var_230], eax
mov rax, [rbp+var_238]
mov ecx, [rbp+var_230]
add ecx, 2000h
cmp eax, ecx
setz al
and al, 1
movzx eax, al
mov cl, al
mov rax, [rbp+var_228]
mov [rax], cl
jmp short loc_51E5D
loc_51E49:
mov rax, [rbp+var_228]
mov byte ptr [rax], 0
mov [rbp+var_230], 0
loc_51E5D:
mov eax, [rbp+var_23C]
mov ecx, eax
shl rcx, 20h
mov eax, [rbp+var_230]
or rcx, rax
mov rax, [rbp+var_220]
mov [rax], rcx
jmp short $+2
loc_51E7E:
jmp short $+2
loc_51E80:
mov [rbp+var_211], 0
loc_51E87:
mov al, [rbp+var_211]
mov [rbp+var_255], al
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_51EB4
mov al, [rbp+var_255]
add rsp, 260h
pop rbp
retn
loc_51EB4:
call ___stack_chk_fail
| char translog_get_last_page_addr(unsigned long long *a1, bool *a2, char a3)
{
long long v3; // rdx
long long v4; // rcx
int v5; // r8d
int v6; // r9d
long long v7; // rdi
long long v8; // rcx
long long v9; // r9
int v11; // [rsp+Ch] [rbp-254h]
signed int v12; // [rsp+14h] [rbp-24Ch]
long long logfile_by_number; // [rsp+18h] [rbp-248h]
unsigned int v14; // [rsp+24h] [rbp-23Ch]
long long v15; // [rsp+28h] [rbp-238h]
unsigned int v16; // [rsp+30h] [rbp-230h]
_BYTE v20[520]; // [rsp+50h] [rbp-210h] BYREF
unsigned long long v21; // [rsp+258h] [rbp-8h]
v21 = __readfsqword(0x28u);
v14 = HIDWORD(*a1);
logfile_by_number = get_logfile_by_number(v14);
if ( logfile_by_number )
{
v15 = inline_mysql_file_seek_2(
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
3284LL,
*(unsigned int *)(logfile_by_number + 24),
0LL,
2LL);
}
else
{
v7 = key_file_translog;
v8 = translog_filename_by_fileno(v14, (long long)v20, v3, v4, v5, v6);
v9 = 16LL;
if ( a3 )
v9 = 0LL;
v12 = inline_mysql_file_open_0(
v7,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
3295LL,
v8,
&loc_80000,
v9);
if ( v12 < 0 )
{
v11 = *(_DWORD *)__errno_location();
*(_DWORD *)my_thread_var(v7, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c") = v11;
return 1;
}
v15 = inline_mysql_file_seek_2(
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
3302LL,
(unsigned int)v12,
0LL,
2LL);
inline_mysql_file_close_2(
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0xCE7u,
v12,
0LL);
}
if ( v15 == -1 )
return 1;
if ( (unsigned int)v15 <= 0x2000 )
{
*a2 = 0;
v16 = 0;
}
else
{
v16 = (((unsigned int)v15 >> 13) - 1) << 13;
*a2 = (_DWORD)v15 == v16 + 0x2000;
}
*a1 = v16 | ((unsigned long long)v14 << 32);
return 0;
}
| translog_get_last_page_addr:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x260
MOV AL,DL
MOV RCX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RCX
MOV qword ptr [RBP + -0x220],RDI
MOV qword ptr [RBP + -0x228],RSI
MOV byte ptr [RBP + -0x229],AL
MOV RAX,qword ptr [RBP + -0x220]
MOV RAX,qword ptr [RAX]
SAR RAX,0x20
MOV dword ptr [RBP + -0x23c],EAX
MOV EDI,dword ptr [RBP + -0x23c]
CALL 0x00158990
MOV qword ptr [RBP + -0x248],RAX
CMP RAX,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 0x00151d08
MOV RAX,qword ptr [RBP + -0x248]
MOV EDX,dword ptr [RAX + 0x18]
LEA RDI,[0x251cce]
MOV ESI,0xcd4
XOR EAX,EAX
MOV R9D,EAX
MOV R8D,0x2
MOV RCX,R9
CALL 0x00152000
MOV qword ptr [RBP + -0x238],RAX
JMP 0x00151ddb
LAB_00151d08:
LEA RAX,[0x577d14]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x250],EAX
MOV EDI,dword ptr [RBP + -0x23c]
LEA RSI,[RBP + -0x210]
CALL 0x0014f7f0
MOV EDI,dword ptr [RBP + -0x250]
MOV RCX,RAX
MOVSX EDX,byte ptr [RBP + -0x229]
MOV R9D,0x10
XOR EAX,EAX
CMP EDX,0x0
CMOVNZ R9,RAX
LEA RSI,[0x251cce]
MOV EDX,0xcdf
MOV R8D,0x80000
CALL 0x00158820
MOV dword ptr [RBP + -0x24c],EAX
CMP EAX,0x0
JGE 0x00151d94
CALL 0x0012a760
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x254],EAX
CALL 0x001f6090
MOV ECX,dword ptr [RBP + -0x254]
MOV dword ptr [RAX],ECX
JMP 0x00151d86
LAB_00151d86:
JMP 0x00151d88
LAB_00151d88:
MOV byte ptr [RBP + -0x211],0x1
JMP 0x00151e87
LAB_00151d94:
MOV EDX,dword ptr [RBP + -0x24c]
LEA RDI,[0x251cce]
MOV ESI,0xce6
XOR EAX,EAX
MOV R9D,EAX
MOV R8D,0x2
MOV RCX,R9
CALL 0x00152000
MOV qword ptr [RBP + -0x238],RAX
MOV EDX,dword ptr [RBP + -0x24c]
LEA RDI,[0x251cce]
MOV ESI,0xce7
XOR EAX,EAX
MOV ECX,EAX
CALL 0x0014fe90
LAB_00151ddb:
JMP 0x00151ddd
LAB_00151ddd:
JMP 0x00151ddf
LAB_00151ddf:
CMP qword ptr [RBP + -0x238],-0x1
JNZ 0x00151df7
JMP 0x00151deb
LAB_00151deb:
MOV byte ptr [RBP + -0x211],0x1
JMP 0x00151e87
LAB_00151df7:
JMP 0x00151df9
LAB_00151df9:
JMP 0x00151dfb
LAB_00151dfb:
MOV RAX,qword ptr [RBP + -0x238]
CMP EAX,0x2000
JBE 0x00151e49
MOV RAX,qword ptr [RBP + -0x238]
SHR EAX,0xd
SUB EAX,0x1
SHL EAX,0xd
MOV dword ptr [RBP + -0x230],EAX
MOV RAX,qword ptr [RBP + -0x238]
MOV ECX,dword ptr [RBP + -0x230]
ADD ECX,0x2000
CMP EAX,ECX
SETZ AL
AND AL,0x1
MOVZX EAX,AL
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x228]
MOV byte ptr [RAX],CL
JMP 0x00151e5d
LAB_00151e49:
MOV RAX,qword ptr [RBP + -0x228]
MOV byte ptr [RAX],0x0
MOV dword ptr [RBP + -0x230],0x0
LAB_00151e5d:
MOV EAX,dword ptr [RBP + -0x23c]
MOV ECX,EAX
SHL RCX,0x20
MOV EAX,dword ptr [RBP + -0x230]
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x220]
MOV qword ptr [RAX],RCX
JMP 0x00151e7e
LAB_00151e7e:
JMP 0x00151e80
LAB_00151e80:
MOV byte ptr [RBP + -0x211],0x0
LAB_00151e87:
MOV AL,byte ptr [RBP + -0x211]
MOV byte ptr [RBP + -0x255],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00151eb4
MOV AL,byte ptr [RBP + -0x255]
ADD RSP,0x260
POP RBP
RET
LAB_00151eb4:
CALL 0x0012a270
|
int8 translog_get_last_page_addr(int8 *param_1,int1 *param_2,char param_3)
{
int4 uVar1;
int4 uVar2;
int iVar3;
long lVar4;
int8 uVar5;
int *piVar6;
int8 uVar7;
long in_FS_OFFSET;
ulong local_240;
int local_238;
int1 local_219;
int1 local_218 [520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
uVar2 = (int4)((ulong)*param_1 >> 0x20);
lVar4 = get_logfile_by_number(uVar2);
uVar1 = key_file_translog;
if (lVar4 == 0) {
uVar5 = translog_filename_by_fileno(uVar2,local_218);
uVar7 = 0x10;
if (param_3 != '\0') {
uVar7 = 0;
}
iVar3 = inline_mysql_file_open
(uVar1,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0xcdf,uVar5,0x80000,uVar7);
if (iVar3 < 0) {
piVar6 = __errno_location();
iVar3 = *piVar6;
piVar6 = (int *)_my_thread_var();
*piVar6 = iVar3;
local_219 = 1;
goto LAB_00151e87;
}
local_240 = inline_mysql_file_seek
("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0xce6,iVar3,0,2);
inline_mysql_file_close
("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",0xce7,iVar3,
0);
}
else {
local_240 = inline_mysql_file_seek
("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0xcd4,*(int4 *)(lVar4 + 0x18),0,2);
}
if (local_240 == 0xffffffffffffffff) {
local_219 = 1;
}
else {
if ((uint)local_240 < 0x2001) {
*param_2 = 0;
local_238 = 0;
}
else {
local_238 = (((uint)(local_240 >> 0xd) & 0x7ffff) - 1) * 0x2000;
*param_2 = (uint)local_240 == local_238 + 0x2000U;
}
*param_1 = CONCAT44(uVar2,local_238);
local_219 = 0;
}
LAB_00151e87:
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_219);
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
35,128 | ma_apply_redo_bitmap_new_page | eloqsql/storage/maria/ma_bitmap.c | my_bool _ma_apply_redo_bitmap_new_page(MARIA_HA *info,
LSN lsn __attribute__ ((unused)),
const uchar *header)
{
MARIA_SHARE *share= info->s;
MARIA_FILE_BITMAP *bitmap= &share->bitmap;
my_bool error;
pgcache_page_no_t from, to, min_from;
DBUG_ENTER("_ma_apply_redo_bitmap_new_page");
from= page_korr(header);
to= page_korr(header + PAGE_STORE_SIZE);
DBUG_PRINT("info", ("from: %lu to: %lu", (ulong)from, (ulong)to));
if ((from > to) ||
(from % bitmap->pages_covered) != 0 ||
(to % bitmap->pages_covered) != 0)
{
error= TRUE; /* corrupted log record */
goto err;
}
min_from= (share->state.state.data_file_length / bitmap->block_size - 1) /
bitmap->pages_covered + 1;
min_from*= bitmap->pages_covered;
if (from < min_from)
{
DBUG_PRINT("info", ("overwrite bitmap pages from %lu", (ulong)min_from));
/*
We have to overwrite. It could be that there was a bitmap page in
memory, covering a data page which went to disk, then crash: the
bitmap page is now full of zeros and is ==min_from, we have to overwrite
it with correct checksum.
*/
}
share->state.changed|= STATE_CHANGED;
bzero(info->buff, bitmap->block_size);
if (!(error=
_ma_bitmap_create_missing_into_pagecache(share, bitmap, from, to,
info->buff)))
share->state.state.data_file_length= (to + 1) * bitmap->block_size;
err:
DBUG_RETURN(error);
} | O3 | c | ma_apply_redo_bitmap_new_page:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl (%rdx), %eax
movl 0x5(%rdx), %ecx
movzbl 0x4(%rdx), %r12d
shlq $0x20, %r12
orq %rax, %r12
movzbl 0x9(%rdx), %r14d
shlq $0x20, %r14
orq %rcx, %r14
movb $0x1, %bl
cmpq %r14, %r12
ja 0x56dd5
movq %rdi, %r13
movq (%rdi), %r15
movq 0xb48(%r15), %rcx
movq %r12, %rax
xorl %edx, %edx
divq %rcx
testq %rdx, %rdx
jne 0x56dd5
movq %r14, %rax
xorl %edx, %edx
divq %rcx
testq %rdx, %rdx
jne 0x56dd5
orb $0x1, 0x170(%r15)
leaq 0xa10(%r15), %rax
movq %rax, -0x30(%rbp)
movq 0x378(%r13), %rdi
movl 0xb44(%r15), %edx
xorl %esi, %esi
callq 0x2b2f0
movq 0x378(%r13), %r8
movq %r15, %rdi
movq -0x30(%rbp), %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x56de6
testb %al, %al
jne 0x56dd5
incq %r14
movl 0xb44(%r15), %eax
imulq %r14, %rax
movq %rax, 0x40(%r15)
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ma_apply_redo_bitmap_new_page:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov eax, [rdx]
mov ecx, [rdx+5]
movzx r12d, byte ptr [rdx+4]
shl r12, 20h
or r12, rax
movzx r14d, byte ptr [rdx+9]
shl r14, 20h
or r14, rcx
mov bl, 1
cmp r12, r14
ja loc_56DD5
mov r13, rdi
mov r15, [rdi]
mov rcx, [r15+0B48h]
mov rax, r12
xor edx, edx
div rcx
test rdx, rdx
jnz short loc_56DD5
mov rax, r14
xor edx, edx
div rcx
test rdx, rdx
jnz short loc_56DD5
or byte ptr [r15+170h], 1
lea rax, [r15+0A10h]
mov [rbp+var_30], rax
mov rdi, [r13+378h]
mov edx, [r15+0B44h]
xor esi, esi
call _memset
mov r8, [r13+378h]
mov rdi, r15
mov rsi, [rbp+var_30]
mov rdx, r12
mov rcx, r14
call _ma_bitmap_create_missing_into_pagecache
test al, al
jnz short loc_56DD5
inc r14
mov eax, [r15+0B44h]
imul rax, r14
mov [r15+40h], rax
xor ebx, ebx
loc_56DD5:
mov eax, ebx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ma_apply_redo_bitmap_new_page(_QWORD *a1, long long a2, unsigned int *a3)
{
unsigned int v3; // ebx
unsigned long long v4; // r12
unsigned long long v5; // r14
long long v6; // r15
unsigned long long v7; // rcx
v4 = *a3 | ((unsigned long long)*((unsigned __int8 *)a3 + 4) << 32);
v5 = *(unsigned int *)((char *)a3 + 5) | ((unsigned long long)*((unsigned __int8 *)a3 + 9) << 32);
LOBYTE(v3) = 1;
if ( v4 <= v5 )
{
v6 = *a1;
v7 = *(_QWORD *)(*a1 + 2888LL);
if ( !(v4 % v7) && !(v5 % v7) )
{
*(_BYTE *)(v6 + 368) |= 1u;
memset(a1[111], 0LL, *(unsigned int *)(v6 + 2884));
if ( !(unsigned __int8)ma_bitmap_create_missing_into_pagecache(v6, v6 + 2576, v4, v5, a1[111]) )
{
*(_QWORD *)(v6 + 64) = (v5 + 1) * *(unsigned int *)(v6 + 2884);
return 0;
}
}
}
return v3;
}
| _ma_apply_redo_bitmap_new_page:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV EAX,dword ptr [RDX]
MOV ECX,dword ptr [RDX + 0x5]
MOVZX R12D,byte ptr [RDX + 0x4]
SHL R12,0x20
OR R12,RAX
MOVZX R14D,byte ptr [RDX + 0x9]
SHL R14,0x20
OR R14,RCX
MOV BL,0x1
CMP R12,R14
JA 0x00156dd5
MOV R13,RDI
MOV R15,qword ptr [RDI]
MOV RCX,qword ptr [R15 + 0xb48]
MOV RAX,R12
XOR EDX,EDX
DIV RCX
TEST RDX,RDX
JNZ 0x00156dd5
MOV RAX,R14
XOR EDX,EDX
DIV RCX
TEST RDX,RDX
JNZ 0x00156dd5
OR byte ptr [R15 + 0x170],0x1
LEA RAX,[R15 + 0xa10]
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [R13 + 0x378]
MOV EDX,dword ptr [R15 + 0xb44]
XOR ESI,ESI
CALL 0x0012b2f0
MOV R8,qword ptr [R13 + 0x378]
MOV RDI,R15
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,R12
MOV RCX,R14
CALL 0x00156de6
TEST AL,AL
JNZ 0x00156dd5
INC R14
MOV EAX,dword ptr [R15 + 0xb44]
IMUL RAX,R14
MOV qword ptr [R15 + 0x40],RAX
XOR EBX,EBX
LAB_00156dd5:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong _ma_apply_redo_bitmap_new_page(long *param_1,int8 param_2,uint5 *param_3)
{
long lVar1;
char cVar2;
int8 unaff_RBX;
ulong uVar3;
ulong uVar4;
ulong uVar5;
uVar4 = (ulong)*param_3;
uVar5 = (ulong)*(uint5 *)((long)param_3 + 5);
uVar3 = CONCAT71((int7)((ulong)unaff_RBX >> 8),1);
if (uVar4 <= uVar5) {
lVar1 = *param_1;
if ((uVar4 % *(ulong *)(lVar1 + 0xb48) == 0) && (uVar5 % *(ulong *)(lVar1 + 0xb48) == 0)) {
*(byte *)(lVar1 + 0x170) = *(byte *)(lVar1 + 0x170) | 1;
memset((void *)param_1[0x6f],0,(ulong)*(uint *)(lVar1 + 0xb44));
cVar2 = _ma_bitmap_create_missing_into_pagecache
(lVar1,lVar1 + 0xa10,uVar4,uVar5,param_1[0x6f]);
if (cVar2 == '\0') {
*(ulong *)(lVar1 + 0x40) = (ulong)*(uint *)(lVar1 + 0xb44) * (uVar5 + 1);
uVar3 = 0;
}
}
}
return uVar3 & 0xffffffff;
}
| |
35,129 | cleanup_dirname | eloqsql/mysys/mf_pack.c | size_t cleanup_dirname(register char *to, const char *from)
{
reg5 size_t length;
reg2 char * pos;
reg3 char * from_ptr;
reg4 char * start;
char parent[5], /* for "FN_PARENTDIR" */
buff[FN_REFLEN + 1],*end_parentdir;
#ifdef BACKSLASH_MBTAIL
CHARSET_INFO *fs= fs_character_set();
#endif
DBUG_ENTER("cleanup_dirname");
DBUG_PRINT("enter",("from: '%s'",from));
start=buff;
from_ptr=(char *) from;
#ifdef FN_DEVCHAR
if ((pos=strrchr(from_ptr,FN_DEVCHAR)) != 0)
{ /* Skip device part */
length=(size_t) (pos-from_ptr)+1;
start=strnmov(buff,from_ptr,length); from_ptr+=length;
}
#endif
parent[0]=FN_LIBCHAR;
length=(size_t) (strmov(parent+1,FN_PARENTDIR)-parent);
for (pos=start ; (*pos= *from_ptr++) != 0 ; pos++)
{
#ifdef BACKSLASH_MBTAIL
uint l;
if (my_ci_use_mb(fs) && (l= my_ismbchar(fs, from_ptr - 1, from_ptr + 2)))
{
for (l-- ; l ; *++pos= *from_ptr++, l--);
start= pos + 1; /* Don't look inside multi-byte char */
continue;
}
#endif
if (*pos == '/')
*pos = FN_LIBCHAR;
if (*pos == FN_LIBCHAR)
{
if ((size_t) (pos-start) > length && memcmp(pos-length,parent,length) == 0)
{ /* If .../../; skip prev */
pos-=length;
if (pos != start)
{ /* not /../ */
pos--;
if (*pos == FN_HOMELIB && (pos == start || pos[-1] == FN_LIBCHAR))
{
if (!home_dir)
{
pos+=length+1; /* Don't unpack ~/.. */
continue;
}
pos=strmov(buff,home_dir)-1; /* Unpacks ~/.. */
if (*pos == FN_LIBCHAR)
pos--; /* home ended with '/' */
}
if (*pos == FN_CURLIB && (pos == start || pos[-1] == FN_LIBCHAR))
{
if (my_getwd(curr_dir,FN_REFLEN,MYF(0)))
{
pos+=length+1; /* Don't unpack ./.. */
continue;
}
pos=strmov(buff,curr_dir)-1; /* Unpacks ./.. */
if (*pos == FN_LIBCHAR)
pos--; /* home ended with '/' */
}
end_parentdir=pos;
while (pos >= start && *pos != FN_LIBCHAR) /* remove prev dir */
pos--;
if (pos[1] == FN_HOMELIB ||
(pos >= start && memcmp(pos, parent, length) == 0))
{ /* Don't remove ~user/ */
pos=strmov(end_parentdir+1,parent);
*pos=FN_LIBCHAR;
continue;
}
}
}
else if ((size_t) (pos-start) == length-1 &&
!memcmp(start,parent+1,length-1))
start=pos; /* Starts with "../" */
else if (pos-start > 0 && pos[-1] == FN_LIBCHAR)
{
#ifdef FN_NETWORK_DRIVES
if (pos-start != 1)
#endif
pos--; /* Remove dupplicate '/' */
}
else if (pos-start > 1 && pos[-1] == FN_CURLIB && pos[-2] == FN_LIBCHAR)
pos-=2; /* Skip /./ */
}
}
(void) strmov(to,buff);
DBUG_PRINT("exit",("to: '%s'",to));
DBUG_RETURN((size_t) (pos-buff));
} | O3 | c | cleanup_dirname:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp # imm = 0x228
movq %rsi, %r14
movq %rdi, -0x248(%rbp)
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
leaq -0x35(%rbp), %r15
movb $0x2f, (%r15)
movw $0x2e2e, 0x1(%r15) # imm = 0x2E2E
movb $0x0, 0x3(%r15)
leaq -0x240(%rbp), %r12
movq %r12, %r13
movzbl (%r14), %eax
movb %al, (%r12)
cmpl $0x2f, %eax
je 0x9c156
testl %eax, %eax
jne 0x9c30e
jmp 0x9c319
movb $0x2f, (%r12)
movq %r12, %rax
subq %r13, %rax
cmpq $0x4, %rax
jb 0x9c22d
movzwl -0x3(%r12), %ecx
xorw -0x35(%rbp), %cx
movb -0x1(%r12), %dl
xorb -0x33(%rbp), %dl
movzbl %dl, %edx
orw %cx, %dx
jne 0x9c24a
leaq -0x3(%r12), %rax
cmpq %r13, %rax
je 0x9c291
leaq -0x4(%r12), %rbx
movb -0x4(%r12), %al
cmpb $0x7e, %al
jne 0x9c1f0
cmpq %r13, %rbx
je 0x9c1b6
cmpb $0x2f, -0x5(%r12)
jne 0x9c2b5
leaq 0xb6de8b(%rip), %rax # 0xc0a048
movq (%rax), %rsi
testq %rsi, %rsi
je 0x9c30e
leaq -0x240(%rbp), %rdi
callq 0x29780
leaq -0x1(%rax), %rbx
leaq -0x2(%rax), %rcx
xorl %edx, %edx
cmpb $0x2f, -0x1(%rax)
sete %dl
notq %rdx
cmoveq %rcx, %rbx
movb (%rax,%rdx), %al
cmpb $0x2e, %al
jne 0x9c2b5
cmpq %r13, %rbx
leaq 0xb6de5e(%rip), %r12 # 0xc0a060
je 0x9c20e
cmpb $0x2f, -0x1(%rbx)
jne 0x9c2b5
movl $0x200, %esi # imm = 0x200
movq %r12, %rdi
xorl %edx, %edx
callq 0x9f54c
testl %eax, %eax
je 0x9c296
addq $0x4, %rbx
movq %rbx, %r12
jmp 0x9c30e
cmpq $0x2, %rax
jne 0x9c24a
movzwl (%r13), %eax
cmpw -0x34(%rbp), %ax
je 0x9c28c
movb -0x1(%r12), %cl
cmpb $0x2f, %cl
je 0x9c25d
jmp 0x9c26f
testq %rax, %rax
jle 0x9c30e
movb -0x1(%r12), %cl
cmpb $0x2f, %cl
jne 0x9c265
decq %r12
jmp 0x9c30e
cmpq $0x1, %rax
je 0x9c30e
cmpb $0x2e, %cl
jne 0x9c30e
leaq -0x2(%r12), %rax
cmpb $0x2f, -0x2(%r12)
cmoveq %rax, %r12
jmp 0x9c30e
movq %r12, %r13
jmp 0x9c30e
movq %rax, %r12
jmp 0x9c30e
leaq -0x240(%rbp), %rdi
movq %r12, %rsi
callq 0x29780
leaq -0x1(%rax), %rbx
leaq -0x2(%rax), %rcx
cmpb $0x2f, -0x1(%rax)
cmoveq %rcx, %rbx
movq %rbx, %r12
cmpq %r13, %rbx
jb 0x9c2cf
movq %rbx, %r12
cmpb $0x2f, (%r12)
je 0x9c2d9
decq %r12
cmpq %r13, %r12
jae 0x9c2c0
cmpb $0x7e, 0x1(%r12)
je 0x9c2fa
jmp 0x9c30e
cmpb $0x7e, 0x1(%r12)
je 0x9c2fa
movzwl (%r12), %eax
xorw -0x35(%rbp), %ax
movb 0x2(%r12), %cl
xorb -0x33(%rbp), %cl
movzbl %cl, %ecx
orw %ax, %cx
jne 0x9c30e
incq %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x29780
movq %rax, %r12
movb $0x2f, (%rax)
incq %r14
incq %r12
jmp 0x9c13c
leaq -0x240(%rbp), %rbx
movq -0x248(%rbp), %rdi
movq %rbx, %rsi
callq 0x29360
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x9c356
subq %rbx, %r12
movq %r12, %rax
addq $0x228, %rsp # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x29270
| cleanup_dirname:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 228h
mov r14, rsi
mov [rbp+var_248], rdi
mov rax, fs:28h
mov [rbp+var_30], rax
lea r15, [rbp+var_35]
mov byte ptr [r15], 2Fh ; '/'
mov word ptr [r15+1], 2E2Eh
mov byte ptr [r15+3], 0
lea r12, [rbp+var_240]
mov r13, r12
loc_9C13C:
movzx eax, byte ptr [r14]
mov [r12], al
cmp eax, 2Fh ; '/'
jz short loc_9C156
test eax, eax
jnz loc_9C30E
jmp loc_9C319
loc_9C156:
mov byte ptr [r12], 2Fh ; '/'
mov rax, r12
sub rax, r13
cmp rax, 4
jb loc_9C22D
movzx ecx, word ptr [r12-3]
xor cx, [rbp+var_35]
mov dl, [r12-1]
xor dl, [rbp+var_33]
movzx edx, dl
or dx, cx
jnz loc_9C24A
lea rax, [r12-3]
cmp rax, r13
jz loc_9C291
lea rbx, [r12-4]
mov al, [r12-4]
cmp al, 7Eh ; '~'
jnz short loc_9C1F0
cmp rbx, r13
jz short loc_9C1B6
cmp byte ptr [r12-5], 2Fh ; '/'
jnz loc_9C2B5
loc_9C1B6:
lea rax, home_dir
mov rsi, [rax]
test rsi, rsi
jz loc_9C30E
lea rdi, [rbp+var_240]
call _stpcpy
lea rbx, [rax-1]
lea rcx, [rax-2]
xor edx, edx
cmp byte ptr [rax-1], 2Fh ; '/'
setz dl
not rdx
cmovz rbx, rcx
mov al, [rax+rdx]
loc_9C1F0:
cmp al, 2Eh ; '.'
jnz loc_9C2B5
cmp rbx, r13
lea r12, curr_dir
jz short loc_9C20E
cmp byte ptr [rbx-1], 2Fh ; '/'
jnz loc_9C2B5
loc_9C20E:
mov esi, 200h
mov rdi, r12
xor edx, edx
call my_getwd
test eax, eax
jz short loc_9C296
add rbx, 4
mov r12, rbx
jmp loc_9C30E
loc_9C22D:
cmp rax, 2
jnz short loc_9C24A
movzx eax, word ptr [r13+0]
cmp ax, [rbp+var_35+1]
jz short loc_9C28C
mov cl, [r12-1]
cmp cl, 2Fh ; '/'
jz short loc_9C25D
jmp short loc_9C26F
loc_9C24A:
test rax, rax
jle loc_9C30E
mov cl, [r12-1]
cmp cl, 2Fh ; '/'
jnz short loc_9C265
loc_9C25D:
dec r12
jmp loc_9C30E
loc_9C265:
cmp rax, 1
jz loc_9C30E
loc_9C26F:
cmp cl, 2Eh ; '.'
jnz loc_9C30E
lea rax, [r12-2]
cmp byte ptr [r12-2], 2Fh ; '/'
cmovz r12, rax
jmp loc_9C30E
loc_9C28C:
mov r13, r12
jmp short loc_9C30E
loc_9C291:
mov r12, rax
jmp short loc_9C30E
loc_9C296:
lea rdi, [rbp+var_240]
mov rsi, r12
call _stpcpy
lea rbx, [rax-1]
lea rcx, [rax-2]
cmp byte ptr [rax-1], 2Fh ; '/'
cmovz rbx, rcx
loc_9C2B5:
mov r12, rbx
cmp rbx, r13
jb short loc_9C2CF
mov r12, rbx
loc_9C2C0:
cmp byte ptr [r12], 2Fh ; '/'
jz short loc_9C2D9
dec r12
cmp r12, r13
jnb short loc_9C2C0
loc_9C2CF:
cmp byte ptr [r12+1], 7Eh ; '~'
jz short loc_9C2FA
jmp short loc_9C30E
loc_9C2D9:
cmp byte ptr [r12+1], 7Eh ; '~'
jz short loc_9C2FA
movzx eax, word ptr [r12]
xor ax, [rbp+var_35]
mov cl, [r12+2]
xor cl, [rbp+var_33]
movzx ecx, cl
or cx, ax
jnz short loc_9C30E
loc_9C2FA:
inc rbx
mov rdi, rbx
mov rsi, r15
call _stpcpy
mov r12, rax
mov byte ptr [rax], 2Fh ; '/'
loc_9C30E:
inc r14
inc r12
jmp loc_9C13C
loc_9C319:
lea rbx, [rbp+var_240]
mov rdi, [rbp+var_248]
mov rsi, rbx
call _strcpy
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_9C356
sub r12, rbx
mov rax, r12
add rsp, 228h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_9C356:
call ___stack_chk_fail
| long long cleanup_dirname(long long a1, unsigned __int8 *a2)
{
_BYTE *v3; // r12
_WORD *v4; // r13
int v5; // eax
long long v6; // rax
_BYTE *v7; // rbx
char v8; // al
long long v9; // rax
char v10; // cl
long long v11; // rax
long long v13; // [rsp+8h] [rbp-248h]
_BYTE v14[523]; // [rsp+10h] [rbp-240h] BYREF
char v15[5]; // [rsp+21Bh] [rbp-35h] BYREF
unsigned long long v16; // [rsp+220h] [rbp-30h]
v13 = a1;
v16 = __readfsqword(0x28u);
strcpy(v15, "/..");
v3 = v14;
v4 = v14;
while ( 1 )
{
v5 = *a2;
*v3 = v5;
if ( v5 != 47 )
break;
*v3 = 47;
v6 = v3 - (_BYTE *)v4;
if ( (unsigned long long)(v3 - (_BYTE *)v4) < 4 )
{
if ( v6 == 2 )
{
if ( *v4 == *(_WORD *)&v15[1] )
{
v4 = v3;
goto LABEL_45;
}
v10 = *(v3 - 1);
if ( v10 == 47 )
goto LABEL_26;
LABEL_28:
if ( v10 == 46 && *(v3 - 2) == 47 )
v3 -= 2;
goto LABEL_45;
}
}
else if ( !((unsigned __int16)(*(_WORD *)v15 ^ *(_WORD *)(v3 - 3)) | (unsigned __int8)(v15[2] ^ *(v3 - 1))) )
{
if ( v3 - 3 == (_BYTE *)v4 )
{
v3 -= 3;
goto LABEL_45;
}
v7 = v3 - 4;
v8 = *(v3 - 4);
if ( v8 == 126 )
{
if ( v7 == (_BYTE *)v4 || *(v3 - 5) == 47 )
{
if ( !home_dir )
goto LABEL_45;
v9 = stpcpy(v14, home_dir);
v7 = (_BYTE *)(v9 - 1);
if ( *(_BYTE *)(v9 - 1) == 47 )
v7 = (_BYTE *)(v9 - 2);
v8 = *(_BYTE *)(v9 + ~(unsigned long long)(*(_BYTE *)(v9 - 1) == 47));
goto LABEL_15;
}
}
else
{
LABEL_15:
if ( v8 == 46 && (v7 == (_BYTE *)v4 || *(v7 - 1) == 47) )
{
if ( (unsigned int)my_getwd(&curr_dir, 512LL, 0LL) )
{
v3 = v7 + 4;
goto LABEL_45;
}
v11 = stpcpy(v14, &curr_dir);
v7 = (_BYTE *)(v11 - 1);
if ( *(_BYTE *)(v11 - 1) == 47 )
v7 = (_BYTE *)(v11 - 2);
}
}
v3 = v7;
if ( v7 < (_BYTE *)v4 )
{
LABEL_40:
if ( v3[1] == 126 )
goto LABEL_44;
}
else
{
v3 = v7;
while ( *v3 != 47 )
{
if ( --v3 < (_BYTE *)v4 )
goto LABEL_40;
}
if ( v3[1] == 126 || !((unsigned __int16)(*(_WORD *)v15 ^ *(_WORD *)v3) | (unsigned __int8)(v15[2] ^ v3[2])) )
{
LABEL_44:
v3 = (_BYTE *)stpcpy(v7 + 1, v15);
*v3 = 47;
goto LABEL_45;
}
}
goto LABEL_45;
}
if ( v6 <= 0 )
goto LABEL_45;
v10 = *(v3 - 1);
if ( v10 == 47 )
{
LABEL_26:
--v3;
goto LABEL_45;
}
if ( v6 != 1 )
goto LABEL_28;
LABEL_45:
++a2;
++v3;
}
if ( v5 )
goto LABEL_45;
strcpy(v13, v14);
return v3 - v14;
}
| cleanup_dirname:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x228
MOV R14,RSI
MOV qword ptr [RBP + -0x248],RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
LEA R15,[RBP + -0x35]
MOV byte ptr [R15],0x2f
MOV word ptr [R15 + 0x1],0x2e2e
MOV byte ptr [R15 + 0x3],0x0
LEA R12,[RBP + -0x240]
MOV R13,R12
LAB_0019c13c:
MOVZX EAX,byte ptr [R14]
MOV byte ptr [R12],AL
CMP EAX,0x2f
JZ 0x0019c156
TEST EAX,EAX
JNZ 0x0019c30e
JMP 0x0019c319
LAB_0019c156:
MOV byte ptr [R12],0x2f
MOV RAX,R12
SUB RAX,R13
CMP RAX,0x4
JC 0x0019c22d
MOVZX ECX,word ptr [R12 + -0x3]
XOR CX,word ptr [RBP + -0x35]
MOV DL,byte ptr [R12 + -0x1]
XOR DL,byte ptr [RBP + -0x33]
MOVZX EDX,DL
OR DX,CX
JNZ 0x0019c24a
LEA RAX,[R12 + -0x3]
CMP RAX,R13
JZ 0x0019c291
LEA RBX,[R12 + -0x4]
MOV AL,byte ptr [R12 + -0x4]
CMP AL,0x7e
JNZ 0x0019c1f0
CMP RBX,R13
JZ 0x0019c1b6
CMP byte ptr [R12 + -0x5],0x2f
JNZ 0x0019c2b5
LAB_0019c1b6:
LEA RAX,[0xd0a048]
MOV RSI,qword ptr [RAX]
TEST RSI,RSI
JZ 0x0019c30e
LEA RDI,[RBP + -0x240]
CALL 0x00129780
LEA RBX,[RAX + -0x1]
LEA RCX,[RAX + -0x2]
XOR EDX,EDX
CMP byte ptr [RAX + -0x1],0x2f
SETZ DL
NOT RDX
CMOVZ RBX,RCX
MOV AL,byte ptr [RAX + RDX*0x1]
LAB_0019c1f0:
CMP AL,0x2e
JNZ 0x0019c2b5
CMP RBX,R13
LEA R12,[0xd0a060]
JZ 0x0019c20e
CMP byte ptr [RBX + -0x1],0x2f
JNZ 0x0019c2b5
LAB_0019c20e:
MOV ESI,0x200
MOV RDI,R12
XOR EDX,EDX
CALL 0x0019f54c
TEST EAX,EAX
JZ 0x0019c296
ADD RBX,0x4
MOV R12,RBX
JMP 0x0019c30e
LAB_0019c22d:
CMP RAX,0x2
JNZ 0x0019c24a
MOVZX EAX,word ptr [R13]
CMP AX,word ptr [RBP + -0x34]
JZ 0x0019c28c
MOV CL,byte ptr [R12 + -0x1]
CMP CL,0x2f
JZ 0x0019c25d
JMP 0x0019c26f
LAB_0019c24a:
TEST RAX,RAX
JLE 0x0019c30e
MOV CL,byte ptr [R12 + -0x1]
CMP CL,0x2f
JNZ 0x0019c265
LAB_0019c25d:
DEC R12
JMP 0x0019c30e
LAB_0019c265:
CMP RAX,0x1
JZ 0x0019c30e
LAB_0019c26f:
CMP CL,0x2e
JNZ 0x0019c30e
LEA RAX,[R12 + -0x2]
CMP byte ptr [R12 + -0x2],0x2f
CMOVZ R12,RAX
JMP 0x0019c30e
LAB_0019c28c:
MOV R13,R12
JMP 0x0019c30e
LAB_0019c291:
MOV R12,RAX
JMP 0x0019c30e
LAB_0019c296:
LEA RDI,[RBP + -0x240]
MOV RSI,R12
CALL 0x00129780
LEA RBX,[RAX + -0x1]
LEA RCX,[RAX + -0x2]
CMP byte ptr [RAX + -0x1],0x2f
CMOVZ RBX,RCX
LAB_0019c2b5:
MOV R12,RBX
CMP RBX,R13
JC 0x0019c2cf
MOV R12,RBX
LAB_0019c2c0:
CMP byte ptr [R12],0x2f
JZ 0x0019c2d9
DEC R12
CMP R12,R13
JNC 0x0019c2c0
LAB_0019c2cf:
CMP byte ptr [R12 + 0x1],0x7e
JZ 0x0019c2fa
JMP 0x0019c30e
LAB_0019c2d9:
CMP byte ptr [R12 + 0x1],0x7e
JZ 0x0019c2fa
MOVZX EAX,word ptr [R12]
XOR AX,word ptr [RBP + -0x35]
MOV CL,byte ptr [R12 + 0x2]
XOR CL,byte ptr [RBP + -0x33]
MOVZX ECX,CL
OR CX,AX
JNZ 0x0019c30e
LAB_0019c2fa:
INC RBX
MOV RDI,RBX
MOV RSI,R15
CALL 0x00129780
MOV R12,RAX
MOV byte ptr [RAX],0x2f
LAB_0019c30e:
INC R14
INC R12
JMP 0x0019c13c
LAB_0019c319:
LEA RBX,[RBP + -0x240]
MOV RDI,qword ptr [RBP + -0x248]
MOV RSI,RBX
CALL 0x00129360
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0019c356
SUB R12,RBX
MOV RAX,R12
ADD RSP,0x228
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0019c356:
CALL 0x00129270
|
long cleanup_dirname(char *param_1,char *param_2)
{
char cVar1;
int iVar2;
ulong uVar3;
char *pcVar4;
short *psVar5;
short *psVar6;
short *psVar7;
short *psVar8;
short *psVar9;
long in_FS_OFFSET;
short local_248 [261];
int1 local_3d [2];
char cStack_3b;
int1 local_3a;
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
_local_3d = 0x2e2e2f;
local_3a = 0;
psVar7 = local_248;
psVar8 = psVar7;
do {
cVar1 = *param_2;
*(char *)psVar7 = cVar1;
psVar5 = psVar7;
psVar9 = psVar8;
if (cVar1 == '/') {
*(char *)psVar7 = '/';
uVar3 = (long)psVar7 - (long)psVar8;
if (uVar3 < 4) {
if (uVar3 != 2) goto LAB_0019c24a;
psVar9 = psVar7;
if (*psVar8 == stack0xffffffffffffffc4) goto LAB_0019c30e;
cVar1 = *(char *)((long)psVar7 + -1);
if (cVar1 == '/') goto LAB_0019c25d;
LAB_0019c26f:
psVar9 = psVar8;
if ((cVar1 == '.') && ((char)psVar7[-1] == '/')) {
psVar5 = psVar7 + -1;
}
}
else if (*(char *)((long)psVar7 + -1) == cStack_3b &&
(int1 [2])*(short *)((long)psVar7 + -3) == local_3d) {
psVar5 = (short *)((long)psVar7 + -3);
if (psVar5 == psVar8) goto LAB_0019c30e;
psVar5 = psVar7 + -2;
cVar1 = (char)psVar7[-2];
if (cVar1 == '~') {
if ((psVar5 == psVar8) || (psVar6 = psVar5, *(char *)((long)psVar7 + -5) == '/')) {
psVar5 = psVar7;
if (home_dir == (char *)0x0) goto LAB_0019c30e;
pcVar4 = stpcpy((char *)local_248,home_dir);
psVar5 = (short *)(pcVar4 + -1);
if (pcVar4[-1] == '/') {
psVar5 = (short *)(pcVar4 + -2);
}
cVar1 = pcVar4[~(ulong)(pcVar4[-1] == '/')];
goto LAB_0019c1f0;
}
}
else {
LAB_0019c1f0:
psVar6 = psVar5;
if ((cVar1 == '.') && ((psVar5 == psVar8 || (*(char *)((long)psVar5 + -1) == '/')))) {
iVar2 = my_getwd(&curr_dir,0x200,0);
if (iVar2 != 0) {
psVar5 = psVar5 + 2;
goto LAB_0019c30e;
}
pcVar4 = stpcpy((char *)local_248,&curr_dir);
psVar5 = (short *)(pcVar4 + -1);
psVar6 = (short *)(pcVar4 + -1);
if (pcVar4[-1] == '/') {
psVar5 = (short *)(pcVar4 + -2);
psVar6 = (short *)(pcVar4 + -2);
}
}
}
for (; psVar8 <= psVar5; psVar5 = (short *)((long)psVar5 + -1)) {
if ((char)*psVar5 == '/') {
if (*(char *)((long)psVar5 + 1) == '~') goto LAB_0019c2fa;
if ((char)psVar5[1] != cStack_3b || (int1 [2])*psVar5 != local_3d)
goto LAB_0019c30e;
goto LAB_0019c2fa;
}
}
if (*(char *)((long)psVar5 + 1) == '~') {
LAB_0019c2fa:
psVar5 = (short *)stpcpy((char *)((long)psVar6 + 1),local_3d);
*(int1 *)psVar5 = 0x2f;
}
}
else {
LAB_0019c24a:
if (0 < (long)uVar3) {
cVar1 = *(char *)((long)psVar7 + -1);
if (cVar1 == '/') {
LAB_0019c25d:
psVar5 = (short *)((long)psVar7 + -1);
psVar9 = psVar8;
}
else if (uVar3 != 1) goto LAB_0019c26f;
}
}
}
else if (cVar1 == '\0') {
strcpy(param_1,(char *)local_248);
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return (long)psVar7 - (long)local_248;
}
LAB_0019c30e:
param_2 = param_2 + 1;
psVar7 = (short *)((long)psVar5 + 1);
psVar8 = psVar9;
} while( true );
}
| |
35,130 | ma_crypt_data_post_read_hook | eloqsql/storage/maria/ma_crypt.c | static my_bool ma_crypt_data_post_read_hook(int res,
PAGECACHE_IO_HOOK_ARGS *args)
{
MARIA_SHARE *share= (MARIA_SHARE*) args->data;
const uint size= share->block_size;
const uchar page_type= args->page[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK;
const uint32 key_version_offset= (page_type <= TAIL_PAGE) ?
KEY_VERSION_OFFSET : FULL_PAGE_KEY_VERSION_OFFSET;
if (res == 0)
{
const uchar *src= args->page;
uchar* dst= args->crypt_buf;
uint pageno= (uint)args->pageno;
LSN lsn= lsn_korr(src);
const uint head= (page_type <= TAIL_PAGE) ?
PAGE_HEADER_SIZE(share) : FULL_PAGE_HEADER_SIZE(share);
const uint tail= CRC_SIZE;
const uint32 key_version= uint4korr(src + key_version_offset);
/* 1 - copy head */
memcpy(dst, src, head);
/* 2 - decrypt page */
res= ma_decrypt(share, share->crypt_data,
src + head, dst + head, size - (head + tail), pageno, lsn,
key_version);
/* 3 - copy tail */
memcpy(dst + size - tail, src + size - tail, tail);
/* 4 clear key version to get correct crc */
int4store(dst + key_version_offset, 0);
}
if (args->crypt_buf != NULL)
{
uchar *tmp= args->page;
args->page= args->crypt_buf;
args->crypt_buf= NULL;
my_free(tmp);
}
return maria_page_crc_check_data(res, args);
} | O0 | c | ma_crypt_data_post_read_hook:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl 0x7bc(%rax), %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movzbl 0x7(%rax), %eax
andl $0x7, %eax
movb %al, -0x1d(%rbp)
movzbl -0x1d(%rbp), %edx
movl $0x8, %eax
movl $0xc, %ecx
cmpl $0x2, %edx
cmovlel %ecx, %eax
movl %eax, -0x24(%rbp)
cmpl $0x0, -0x4(%rbp)
jne 0x8ae96
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movl %eax, -0x3c(%rbp)
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
movq -0x30(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x30(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movl %eax, %eax
shlq $0x20, %rax
movq -0x30(%rbp), %rcx
movl 0x3(%rcx), %ecx
orq %rcx, %rax
movq %rax, -0x48(%rbp)
movzbl -0x1d(%rbp), %eax
cmpl $0x2, %eax
jg 0x8addf
movq -0x18(%rbp), %rax
movl 0xc18(%rax), %eax
addl $0xc, %eax
movl %eax, -0x6c(%rbp)
jmp 0x8adef
movq -0x18(%rbp), %rax
movl 0xc18(%rax), %eax
addl $0x8, %eax
movl %eax, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
movl %eax, -0x4c(%rbp)
movl $0x4, -0x50(%rbp)
movq -0x30(%rbp), %rax
movl -0x24(%rbp), %ecx
movl (%rax,%rcx), %eax
movl %eax, -0x54(%rbp)
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl -0x4c(%rbp), %eax
movl %eax, %edx
callq 0x2a090
movq -0x18(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0xc20(%rax), %rsi
movq -0x30(%rbp), %rdx
movl -0x4c(%rbp), %eax
addq %rax, %rdx
movq -0x38(%rbp), %rcx
movl -0x4c(%rbp), %eax
addq %rax, %rcx
movl -0x1c(%rbp), %r8d
movl -0x4c(%rbp), %eax
addl $0x4, %eax
subl %eax, %r8d
movl -0x3c(%rbp), %r9d
movq -0x48(%rbp), %r10
movl -0x54(%rbp), %eax
movq %r10, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x8b670
movl %eax, -0x4(%rbp)
movq -0x38(%rbp), %rax
movl -0x1c(%rbp), %ecx
movq -0x30(%rbp), %rdx
movl -0x1c(%rbp), %esi
movl -0x4(%rdx,%rsi), %edx
movl %edx, -0x4(%rax,%rcx)
movq -0x38(%rbp), %rax
movl -0x24(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movl $0x0, (%rax)
jmp 0x8ae96
movq -0x10(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0x8aed0
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x18(%rax)
movq -0x68(%rbp), %rdi
callq 0xf5590
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x42cf0
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ma_crypt_data_post_read_hook:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov eax, [rax+7BCh]
mov [rbp+var_1C], eax
mov rax, [rbp+var_10]
mov rax, [rax]
movzx eax, byte ptr [rax+7]
and eax, 7
mov [rbp+var_1D], al
movzx edx, [rbp+var_1D]
mov eax, 8
mov ecx, 0Ch
cmp edx, 2
cmovle eax, ecx
mov [rbp+var_24], eax
cmp [rbp+var_4], 0
jnz loc_8AE96
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov [rbp+var_38], rax
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rbp+var_3C], eax
mov rax, [rbp+var_30]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_30]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_30]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
or eax, ecx
mov eax, eax
shl rax, 20h
mov rcx, [rbp+var_30]
mov ecx, [rcx+3]
or rax, rcx
mov [rbp+var_48], rax
movzx eax, [rbp+var_1D]
cmp eax, 2
jg short loc_8ADDF
mov rax, [rbp+var_18]
mov eax, [rax+0C18h]
add eax, 0Ch
mov [rbp+var_6C], eax
jmp short loc_8ADEF
loc_8ADDF:
mov rax, [rbp+var_18]
mov eax, [rax+0C18h]
add eax, 8
mov [rbp+var_6C], eax
loc_8ADEF:
mov eax, [rbp+var_6C]
mov [rbp+var_4C], eax
mov [rbp+var_50], 4
mov rax, [rbp+var_30]
mov ecx, [rbp+var_24]
mov eax, [rax+rcx]
mov [rbp+var_54], eax
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_30]
mov eax, [rbp+var_4C]
mov edx, eax
call _memcpy
mov rdi, [rbp+var_18]
mov rax, [rbp+var_18]
mov rsi, [rax+0C20h]
mov rdx, [rbp+var_30]
mov eax, [rbp+var_4C]
add rdx, rax
mov rcx, [rbp+var_38]
mov eax, [rbp+var_4C]
add rcx, rax
mov r8d, [rbp+var_1C]
mov eax, [rbp+var_4C]
add eax, 4
sub r8d, eax
mov r9d, [rbp+var_3C]
mov r10, [rbp+var_48]
mov eax, [rbp+var_54]
mov [rsp+80h+var_80], r10
mov [rsp+80h+var_78], eax
call ma_decrypt
mov [rbp+var_4], eax
mov rax, [rbp+var_38]
mov ecx, [rbp+var_1C]
mov rdx, [rbp+var_30]
mov esi, [rbp+var_1C]
mov edx, [rdx+rsi-4]
mov [rax+rcx-4], edx
mov rax, [rbp+var_38]
mov ecx, [rbp+var_24]
add rax, rcx
mov [rbp+var_60], rax
mov rax, [rbp+var_60]
mov dword ptr [rax], 0
jmp short $+2
loc_8AE96:
mov rax, [rbp+var_10]
cmp qword ptr [rax+18h], 0
jz short loc_8AED0
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_68], rax
mov rax, [rbp+var_10]
mov rcx, [rax+18h]
mov rax, [rbp+var_10]
mov [rax], rcx
mov rax, [rbp+var_10]
mov qword ptr [rax+18h], 0
mov rdi, [rbp+var_68]
call my_free
loc_8AED0:
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
call maria_page_crc_check_data
add rsp, 80h
pop rbp
retn
| char ma_crypt_data_post_read_hook(int a1, long long *a2)
{
int v2; // eax
unsigned int v3; // eax
long long v5; // [rsp+18h] [rbp-68h]
int v6; // [rsp+2Ch] [rbp-54h]
unsigned int v7; // [rsp+34h] [rbp-4Ch]
unsigned long long v8; // [rsp+38h] [rbp-48h]
int v9; // [rsp+44h] [rbp-3Ch]
long long v10; // [rsp+48h] [rbp-38h]
unsigned __int16 *v11; // [rsp+50h] [rbp-30h]
unsigned int v12; // [rsp+5Ch] [rbp-24h]
unsigned __int8 v13; // [rsp+63h] [rbp-1Dh]
unsigned int v14; // [rsp+64h] [rbp-1Ch]
long long v15; // [rsp+68h] [rbp-18h]
int v16; // [rsp+7Ch] [rbp-4h]
v16 = a1;
v15 = a2[2];
v14 = *(_DWORD *)(v15 + 1980);
v13 = *(_BYTE *)(*a2 + 7) & 7;
v2 = 8;
if ( v13 <= 2u )
v2 = 12;
v12 = v2;
if ( !a1 )
{
v11 = (unsigned __int16 *)*a2;
v10 = a2[3];
v9 = a2[1];
v8 = *(unsigned int *)((char *)v11 + 3) | ((unsigned long long)((*((unsigned __int8 *)v11 + 2) << 16) | (unsigned int)*v11) << 32);
if ( v13 > 2u )
v3 = *(_DWORD *)(v15 + 3096) + 8;
else
v3 = *(_DWORD *)(v15 + 3096) + 12;
v7 = v3;
v6 = *(_DWORD *)((char *)v11 + v12);
memcpy(v10, v11, v3);
v16 = ma_decrypt(
v15,
*(_QWORD *)(v15 + 3104),
v7 + (unsigned int)v11,
v7 + (unsigned int)v10,
v14 - (v7 + 4),
v9,
v8,
v6);
*(_DWORD *)(v10 + v14 - 4) = *(_DWORD *)((char *)v11 + v14 - 4);
*(_DWORD *)(v12 + v10) = 0;
}
if ( a2[3] )
{
v5 = *a2;
*a2 = a2[3];
a2[3] = 0LL;
my_free(v5);
}
return maria_page_crc_check_data(v16, a2);
}
| ma_crypt_data_post_read_hook:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x7bc]
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOVZX EAX,byte ptr [RAX + 0x7]
AND EAX,0x7
MOV byte ptr [RBP + -0x1d],AL
MOVZX EDX,byte ptr [RBP + -0x1d]
MOV EAX,0x8
MOV ECX,0xc
CMP EDX,0x2
CMOVLE EAX,ECX
MOV dword ptr [RBP + -0x24],EAX
CMP dword ptr [RBP + -0x4],0x0
JNZ 0x0018ae96
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x3c],EAX
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
OR EAX,ECX
MOV EAX,EAX
SHL RAX,0x20
MOV RCX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RCX + 0x3]
OR RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOVZX EAX,byte ptr [RBP + -0x1d]
CMP EAX,0x2
JG 0x0018addf
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0xc18]
ADD EAX,0xc
MOV dword ptr [RBP + -0x6c],EAX
JMP 0x0018adef
LAB_0018addf:
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0xc18]
ADD EAX,0x8
MOV dword ptr [RBP + -0x6c],EAX
LAB_0018adef:
MOV EAX,dword ptr [RBP + -0x6c]
MOV dword ptr [RBP + -0x4c],EAX
MOV dword ptr [RBP + -0x50],0x4
MOV RAX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RBP + -0x24]
MOV EAX,dword ptr [RAX + RCX*0x1]
MOV dword ptr [RBP + -0x54],EAX
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RBP + -0x4c]
MOV EDX,EAX
CALL 0x0012a090
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RAX + 0xc20]
MOV RDX,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RBP + -0x4c]
ADD RDX,RAX
MOV RCX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RBP + -0x4c]
ADD RCX,RAX
MOV R8D,dword ptr [RBP + -0x1c]
MOV EAX,dword ptr [RBP + -0x4c]
ADD EAX,0x4
SUB R8D,EAX
MOV R9D,dword ptr [RBP + -0x3c]
MOV R10,qword ptr [RBP + -0x48]
MOV EAX,dword ptr [RBP + -0x54]
MOV qword ptr [RSP],R10
MOV dword ptr [RSP + 0x8],EAX
CALL 0x0018b670
MOV dword ptr [RBP + -0x4],EAX
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RBP + -0x1c]
MOV RDX,qword ptr [RBP + -0x30]
MOV ESI,dword ptr [RBP + -0x1c]
MOV EDX,dword ptr [RDX + RSI*0x1 + -0x4]
MOV dword ptr [RAX + RCX*0x1 + -0x4],EDX
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RBP + -0x24]
ADD RAX,RCX
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX],0x0
JMP 0x0018ae96
LAB_0018ae96:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x18],0x0
JZ 0x0018aed0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],0x0
MOV RDI,qword ptr [RBP + -0x68]
CALL 0x001f5590
LAB_0018aed0:
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x00142cf0
ADD RSP,0x80
POP RBP
RET
|
void ma_crypt_data_post_read_hook(int param_1,long *param_2)
{
uint uVar1;
int4 uVar2;
int4 uVar3;
long lVar4;
int3 *__src;
void *__dest;
ulong uVar5;
int3 uVar6;
byte bVar7;
uint uVar8;
uint local_74;
int local_c;
lVar4 = param_2[2];
uVar1 = *(uint *)(lVar4 + 0x7bc);
bVar7 = *(byte *)(*param_2 + 7) & 7;
uVar8 = 8;
if (bVar7 < 3) {
uVar8 = 0xc;
}
local_c = param_1;
if (param_1 == 0) {
__src = (int3 *)*param_2;
__dest = (void *)param_2[3];
uVar5 = param_2[1];
uVar6 = *__src;
uVar2 = *(int4 *)((long)__src + 3);
if (bVar7 < 3) {
local_74 = *(int *)(lVar4 + 0xc18) + 0xc;
}
else {
local_74 = *(int *)(lVar4 + 0xc18) + 8;
}
uVar3 = *(int4 *)((long)__src + (ulong)uVar8);
memcpy(__dest,__src,(ulong)local_74);
local_c = ma_decrypt(lVar4,*(int8 *)(lVar4 + 0xc20),(long)__src + (ulong)local_74,
(long)__dest + (ulong)local_74,uVar1 - (local_74 + 4),uVar5 & 0xffffffff,
(ulong)CONCAT34(uVar6,uVar2),uVar3);
*(int4 *)((long)__dest + ((ulong)uVar1 - 4)) =
*(int4 *)((long)__src + ((ulong)uVar1 - 4));
*(int4 *)((long)__dest + (ulong)uVar8) = 0;
}
if (param_2[3] != 0) {
lVar4 = *param_2;
*param_2 = param_2[3];
param_2[3] = 0;
my_free(lVar4);
}
maria_page_crc_check_data(local_c,param_2);
return;
}
| |
35,131 | mysql_commit_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_commit_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_commit,
(parms->mysql),
parms->mysql,
my_bool,
r_my_bool)
} | O0 | c | mysql_commit_start_internal:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x53740
movb %al, -0x11(%rbp)
movb -0x11(%rbp), %cl
movq -0x20(%rbp), %rax
movb %cl, 0x8(%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| mysql_commit_start_internal:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rdi, [rax]
call mysql_commit
mov [rbp+var_11], al
mov cl, [rbp+var_11]
mov rax, [rbp+var_20]
mov [rax+8], cl
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
add rsp, 20h
pop rbp
retn
| long long mysql_commit_start_internal(long long *a1)
{
long long result; // rax
long long v2; // [rsp+0h] [rbp-20h]
v2 = *(_QWORD *)(*(_QWORD *)(*a1 + 1152) + 40LL);
*(_BYTE *)(v2 + 8) = mysql_commit(*a1);
result = v2;
*(_DWORD *)v2 = 0;
return result;
}
| mysql_commit_start_internal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
CALL 0x00153740
MOV byte ptr [RBP + -0x11],AL
MOV CL,byte ptr [RBP + -0x11]
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x8],CL
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x0
ADD RSP,0x20
POP RBP
RET
|
void mysql_commit_start_internal(long *param_1)
{
int4 *puVar1;
int1 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_commit(*param_1);
*(int1 *)(puVar1 + 2) = uVar2;
*puVar1 = 0;
return;
}
| |
35,132 | getimpedance | aimrt_mujoco_sim/_deps/mujoco-src/src/engine/engine_core_constraint.c | static void getimpedance(const mjtNum* solimp, mjtNum pos, mjtNum margin,
mjtNum* imp, mjtNum* impP) {
// flat function
if (solimp[0] == solimp[1] || solimp[2] <= mjMINVAL) {
*imp = 0.5*(solimp[0] + solimp[1]);
*impP = 0;
return;
}
// x = abs((pos-margin) / width)
mjtNum x = (pos-margin) / solimp[2];
mjtNum sgn = 1;
if (x < 0) {
x = -x;
sgn = -1;
}
// fully saturated
if (x >= 1 || x <= 0) {
*imp = (x >= 1 ? solimp[1] : solimp[0]);
*impP = 0;
return;
}
// linear
mjtNum y, yP;
if (solimp[4] == 1) {
y = x;
yP = 1;
}
// y(x) = a*x^p if x<=midpoint
else if (x <= solimp[3]) {
mjtNum a = 1/power(solimp[3], solimp[4]-1);
y = a*power(x, solimp[4]);
yP = solimp[4] * a*power(x, solimp[4]-1);
}
// y(x) = 1-b*(1-x)^p is x>midpoint
else {
mjtNum b = 1/power(1-solimp[3], solimp[4]-1);
y = 1-b*power(1-x, solimp[4]);
yP = solimp[4] * b*power(1-x, solimp[4]-1);
}
// scale
*imp = solimp[0] + y*(solimp[1]-solimp[0]);
*impP = yP * sgn * (solimp[1]-solimp[0]) / solimp[2];
} | O0 | c | getimpedance:
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
vmovsd %xmm0, 0x78(%rsp)
vmovsd %xmm1, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdx, 0x60(%rsp)
movq 0x80(%rsp), %rax
vmovsd (%rax), %xmm0
movq 0x80(%rsp), %rax
vucomisd 0x8(%rax), %xmm0
jne 0x75224
jp 0x75224
jmp 0x7523b
movq 0x80(%rsp), %rax
vmovsd 0x4a28fc(%rip), %xmm0 # 0x517b30
vucomisd 0x10(%rax), %xmm0
jb 0x7527b
movq 0x80(%rsp), %rax
vmovsd (%rax), %xmm0
movq 0x80(%rsp), %rax
vaddsd 0x8(%rax), %xmm0, %xmm1
vmovsd 0x4a28dc(%rip), %xmm0 # 0x517b38
vmulsd %xmm1, %xmm0, %xmm0
movq 0x68(%rsp), %rax
vmovsd %xmm0, (%rax)
movq 0x60(%rsp), %rax
vxorps %xmm0, %xmm0, %xmm0
vmovsd %xmm0, (%rax)
jmp 0x7560b
vmovsd 0x78(%rsp), %xmm0
vsubsd 0x70(%rsp), %xmm0, %xmm0
movq 0x80(%rsp), %rax
vdivsd 0x10(%rax), %xmm0, %xmm0
vmovsd %xmm0, 0x58(%rsp)
vmovsd 0x4a28b6(%rip), %xmm0 # 0x517b58
vmovsd %xmm0, 0x50(%rsp)
vxorps %xmm0, %xmm0, %xmm0
vucomisd 0x58(%rsp), %xmm0
jbe 0x752e5
vmovsd 0x58(%rsp), %xmm0
vmovq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
vmovq %rax, %xmm0
vmovsd %xmm0, 0x58(%rsp)
vmovsd 0x4a2871(%rip), %xmm0 # 0x517b50
vmovsd %xmm0, 0x50(%rsp)
vmovsd 0x58(%rsp), %xmm0
vmovsd 0x4a2865(%rip), %xmm1 # 0x517b58
vucomisd %xmm1, %xmm0
jae 0x75305
vxorps %xmm0, %xmm0, %xmm0
vucomisd 0x58(%rsp), %xmm0
jb 0x75361
vmovsd 0x58(%rsp), %xmm0
vmovsd 0x4a2845(%rip), %xmm1 # 0x517b58
vucomisd %xmm1, %xmm0
jb 0x7532e
movq 0x80(%rsp), %rax
vmovsd 0x8(%rax), %xmm0
vmovsd %xmm0, 0x28(%rsp)
jmp 0x75340
movq 0x80(%rsp), %rax
vmovsd (%rax), %xmm0
vmovsd %xmm0, 0x28(%rsp)
vmovsd 0x28(%rsp), %xmm0
movq 0x68(%rsp), %rax
vmovsd %xmm0, (%rax)
movq 0x60(%rsp), %rax
vxorps %xmm0, %xmm0, %xmm0
vmovsd %xmm0, (%rax)
jmp 0x7560b
movq 0x80(%rsp), %rax
vmovsd 0x20(%rax), %xmm0
vmovsd 0x4a27e2(%rip), %xmm1 # 0x517b58
vucomisd %xmm1, %xmm0
jne 0x7539d
jp 0x7539d
vmovsd 0x58(%rsp), %xmm0
vmovsd %xmm0, 0x48(%rsp)
vmovsd 0x4a27c6(%rip), %xmm0 # 0x517b58
vmovsd %xmm0, 0x40(%rsp)
jmp 0x75590
vmovsd 0x58(%rsp), %xmm1
movq 0x80(%rsp), %rax
vmovsd 0x18(%rax), %xmm0
vucomisd %xmm1, %xmm0
jb 0x75489
movq 0x80(%rsp), %rax
vmovsd 0x18(%rax), %xmm0
movq 0x80(%rsp), %rax
vmovsd 0x20(%rax), %xmm1
vmovsd 0x4a277c(%rip), %xmm2 # 0x517b58
vsubsd %xmm2, %xmm1, %xmm1
callq 0x79fc0
vmovaps %xmm0, %xmm1
vmovsd 0x4a2767(%rip), %xmm0 # 0x517b58
vdivsd %xmm1, %xmm0, %xmm0
vmovsd %xmm0, 0x38(%rsp)
vmovsd 0x38(%rsp), %xmm0
vmovsd %xmm0, 0x18(%rsp)
vmovsd 0x58(%rsp), %xmm0
movq 0x80(%rsp), %rax
vmovsd 0x20(%rax), %xmm1
callq 0x79fc0
vmovaps %xmm0, %xmm1
vmovsd 0x18(%rsp), %xmm0
vmulsd %xmm1, %xmm0, %xmm0
vmovsd %xmm0, 0x48(%rsp)
movq 0x80(%rsp), %rax
vmovsd 0x20(%rax), %xmm0
vmulsd 0x38(%rsp), %xmm0, %xmm0
vmovsd %xmm0, 0x20(%rsp)
vmovsd 0x58(%rsp), %xmm0
movq 0x80(%rsp), %rax
vmovsd 0x20(%rax), %xmm1
vmovsd 0x4a26f1(%rip), %xmm2 # 0x517b58
vsubsd %xmm2, %xmm1, %xmm1
callq 0x79fc0
vmovaps %xmm0, %xmm1
vmovsd 0x20(%rsp), %xmm0
vmulsd %xmm1, %xmm0, %xmm0
vmovsd %xmm0, 0x40(%rsp)
jmp 0x7558e
movq 0x80(%rsp), %rax
vmovsd 0x4a26bf(%rip), %xmm0 # 0x517b58
vsubsd 0x18(%rax), %xmm0, %xmm0
movq 0x80(%rsp), %rax
vmovsd 0x20(%rax), %xmm1
vmovsd 0x4a26a5(%rip), %xmm2 # 0x517b58
vsubsd %xmm2, %xmm1, %xmm1
callq 0x79fc0
vmovaps %xmm0, %xmm1
vmovsd 0x4a2690(%rip), %xmm0 # 0x517b58
vdivsd %xmm1, %xmm0, %xmm0
vmovsd %xmm0, 0x30(%rsp)
vmovsd 0x30(%rsp), %xmm0
vmovsd %xmm0, 0x8(%rsp)
vmovsd 0x4a2672(%rip), %xmm0 # 0x517b58
vsubsd 0x58(%rsp), %xmm0, %xmm0
movq 0x80(%rsp), %rax
vmovsd 0x20(%rax), %xmm1
callq 0x79fc0
vmovaps %xmm0, %xmm1
vmovsd 0x8(%rsp), %xmm0
vmovq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
vmovq %rax, %xmm0
vmulsd %xmm1, %xmm0, %xmm0
vmovsd 0x4a262d(%rip), %xmm1 # 0x517b58
vaddsd %xmm1, %xmm0, %xmm0
vmovsd %xmm0, 0x48(%rsp)
movq 0x80(%rsp), %rax
vmovsd 0x20(%rax), %xmm0
vmulsd 0x30(%rsp), %xmm0, %xmm0
vmovsd %xmm0, 0x10(%rsp)
vmovsd 0x4a2602(%rip), %xmm0 # 0x517b58
vsubsd 0x58(%rsp), %xmm0, %xmm0
movq 0x80(%rsp), %rax
vmovsd 0x20(%rax), %xmm1
vmovsd 0x4a25e7(%rip), %xmm2 # 0x517b58
vsubsd %xmm2, %xmm1, %xmm1
callq 0x79fc0
vmovaps %xmm0, %xmm1
vmovsd 0x10(%rsp), %xmm0
vmulsd %xmm1, %xmm0, %xmm0
vmovsd %xmm0, 0x40(%rsp)
jmp 0x75590
movq 0x80(%rsp), %rax
vmovsd (%rax), %xmm1
vmovsd 0x48(%rsp), %xmm0
movq 0x80(%rsp), %rax
vmovsd 0x8(%rax), %xmm2
movq 0x80(%rsp), %rax
vsubsd (%rax), %xmm2, %xmm2
vmulsd %xmm2, %xmm0, %xmm0
vaddsd %xmm1, %xmm0, %xmm0
movq 0x68(%rsp), %rax
vmovsd %xmm0, (%rax)
vmovsd 0x40(%rsp), %xmm0
vmulsd 0x50(%rsp), %xmm0, %xmm0
movq 0x80(%rsp), %rax
vmovsd 0x8(%rax), %xmm1
movq 0x80(%rsp), %rax
vsubsd (%rax), %xmm1, %xmm1
vmulsd %xmm1, %xmm0, %xmm0
movq 0x80(%rsp), %rax
vdivsd 0x10(%rax), %xmm0, %xmm0
movq 0x60(%rsp), %rax
vmovsd %xmm0, (%rax)
addq $0x88, %rsp
retq
nopw %cs:(%rax,%rax)
| getimpedance:
sub rsp, 88h
mov [rsp+88h+var_8], rdi
vmovsd [rsp+88h+var_10], xmm0
vmovsd [rsp+88h+var_18], xmm1
mov [rsp+88h+var_20], rsi
mov [rsp+88h+var_28], rdx
mov rax, [rsp+88h+var_8]
vmovsd xmm0, qword ptr [rax]
mov rax, [rsp+88h+var_8]
vucomisd xmm0, qword ptr [rax+8]
jnz short loc_75224
jp short loc_75224
jmp short loc_7523B
loc_75224:
mov rax, [rsp+88h+var_8]
vmovsd xmm0, cs:qword_517B30
vucomisd xmm0, qword ptr [rax+10h]
jb short loc_7527B
loc_7523B:
mov rax, [rsp+88h+var_8]
vmovsd xmm0, qword ptr [rax]
mov rax, [rsp+88h+var_8]
vaddsd xmm1, xmm0, qword ptr [rax+8]
vmovsd xmm0, cs:qword_517B38
vmulsd xmm0, xmm0, xmm1
mov rax, [rsp+88h+var_20]
vmovsd qword ptr [rax], xmm0
mov rax, [rsp+88h+var_28]
vxorps xmm0, xmm0, xmm0
vmovsd qword ptr [rax], xmm0
jmp loc_7560B
loc_7527B:
vmovsd xmm0, [rsp+88h+var_10]
vsubsd xmm0, xmm0, [rsp+88h+var_18]
mov rax, [rsp+88h+var_8]
vdivsd xmm0, xmm0, qword ptr [rax+10h]
vmovsd [rsp+88h+var_30], xmm0
vmovsd xmm0, cs:qword_517B58
vmovsd [rsp+88h+var_38], xmm0
vxorps xmm0, xmm0, xmm0
vucomisd xmm0, [rsp+88h+var_30]
jbe short loc_752E5
vmovsd xmm0, [rsp+88h+var_30]
vmovq rax, xmm0
mov rcx, 8000000000000000h
xor rax, rcx
vmovq xmm0, rax
vmovsd [rsp+88h+var_30], xmm0
vmovsd xmm0, cs:qword_517B50
vmovsd [rsp+88h+var_38], xmm0
loc_752E5:
vmovsd xmm0, [rsp+88h+var_30]
vmovsd xmm1, cs:qword_517B58
vucomisd xmm0, xmm1
jnb short loc_75305
vxorps xmm0, xmm0, xmm0
vucomisd xmm0, [rsp+88h+var_30]
jb short loc_75361
loc_75305:
vmovsd xmm0, [rsp+88h+var_30]
vmovsd xmm1, cs:qword_517B58
vucomisd xmm0, xmm1
jb short loc_7532E
mov rax, [rsp+88h+var_8]
vmovsd xmm0, qword ptr [rax+8]
vmovsd [rsp+88h+var_60], xmm0
jmp short loc_75340
loc_7532E:
mov rax, [rsp+88h+var_8]
vmovsd xmm0, qword ptr [rax]
vmovsd [rsp+88h+var_60], xmm0
loc_75340:
vmovsd xmm0, [rsp+88h+var_60]
mov rax, [rsp+88h+var_20]
vmovsd qword ptr [rax], xmm0
mov rax, [rsp+88h+var_28]
vxorps xmm0, xmm0, xmm0
vmovsd qword ptr [rax], xmm0
jmp loc_7560B
loc_75361:
mov rax, [rsp+88h+var_8]
vmovsd xmm0, qword ptr [rax+20h]
vmovsd xmm1, cs:qword_517B58
vucomisd xmm0, xmm1
jnz short loc_7539D
jp short loc_7539D
vmovsd xmm0, [rsp+88h+var_30]
vmovsd [rsp+88h+var_40], xmm0
vmovsd xmm0, cs:qword_517B58
vmovsd [rsp+88h+var_48], xmm0
jmp loc_75590
loc_7539D:
vmovsd xmm1, [rsp+88h+var_30]
mov rax, [rsp+88h+var_8]
vmovsd xmm0, qword ptr [rax+18h]
vucomisd xmm0, xmm1
jb loc_75489
mov rax, [rsp+88h+var_8]
vmovsd xmm0, qword ptr [rax+18h]
mov rax, [rsp+88h+var_8]
vmovsd xmm1, qword ptr [rax+20h]
vmovsd xmm2, cs:qword_517B58
vsubsd xmm1, xmm1, xmm2
call power
vmovaps xmm1, xmm0
vmovsd xmm0, cs:qword_517B58
vdivsd xmm0, xmm0, xmm1
vmovsd [rsp+88h+var_50], xmm0
vmovsd xmm0, [rsp+88h+var_50]
vmovsd [rsp+88h+var_70], xmm0
vmovsd xmm0, [rsp+88h+var_30]
mov rax, [rsp+88h+var_8]
vmovsd xmm1, qword ptr [rax+20h]
call power
vmovaps xmm1, xmm0
vmovsd xmm0, [rsp+88h+var_70]
vmulsd xmm0, xmm0, xmm1
vmovsd [rsp+88h+var_40], xmm0
mov rax, [rsp+88h+var_8]
vmovsd xmm0, qword ptr [rax+20h]
vmulsd xmm0, xmm0, [rsp+88h+var_50]
vmovsd [rsp+88h+var_68], xmm0
vmovsd xmm0, [rsp+88h+var_30]
mov rax, [rsp+88h+var_8]
vmovsd xmm1, qword ptr [rax+20h]
vmovsd xmm2, cs:qword_517B58
vsubsd xmm1, xmm1, xmm2
call power
vmovaps xmm1, xmm0
vmovsd xmm0, [rsp+88h+var_68]
vmulsd xmm0, xmm0, xmm1
vmovsd [rsp+88h+var_48], xmm0
jmp loc_7558E
loc_75489:
mov rax, [rsp+88h+var_8]
vmovsd xmm0, cs:qword_517B58
vsubsd xmm0, xmm0, qword ptr [rax+18h]
mov rax, [rsp+88h+var_8]
vmovsd xmm1, qword ptr [rax+20h]
vmovsd xmm2, cs:qword_517B58
vsubsd xmm1, xmm1, xmm2
call power
vmovaps xmm1, xmm0
vmovsd xmm0, cs:qword_517B58
vdivsd xmm0, xmm0, xmm1
vmovsd [rsp+88h+var_58], xmm0
vmovsd xmm0, [rsp+88h+var_58]
vmovsd [rsp+88h+var_80], xmm0
vmovsd xmm0, cs:qword_517B58
vsubsd xmm0, xmm0, [rsp+88h+var_30]
mov rax, [rsp+88h+var_8]
vmovsd xmm1, qword ptr [rax+20h]
call power
vmovaps xmm1, xmm0
vmovsd xmm0, [rsp+88h+var_80]
vmovq rax, xmm0
mov rcx, 8000000000000000h
xor rax, rcx
vmovq xmm0, rax
vmulsd xmm0, xmm0, xmm1
vmovsd xmm1, cs:qword_517B58
vaddsd xmm0, xmm0, xmm1
vmovsd [rsp+88h+var_40], xmm0
mov rax, [rsp+88h+var_8]
vmovsd xmm0, qword ptr [rax+20h]
vmulsd xmm0, xmm0, [rsp+88h+var_58]
vmovsd [rsp+88h+var_78], xmm0
vmovsd xmm0, cs:qword_517B58
vsubsd xmm0, xmm0, [rsp+88h+var_30]
mov rax, [rsp+88h+var_8]
vmovsd xmm1, qword ptr [rax+20h]
vmovsd xmm2, cs:qword_517B58
vsubsd xmm1, xmm1, xmm2
call power
vmovaps xmm1, xmm0
vmovsd xmm0, [rsp+88h+var_78]
vmulsd xmm0, xmm0, xmm1
vmovsd [rsp+88h+var_48], xmm0
loc_7558E:
jmp short $+2
loc_75590:
mov rax, [rsp+88h+var_8]
vmovsd xmm1, qword ptr [rax]
vmovsd xmm0, [rsp+88h+var_40]
mov rax, [rsp+88h+var_8]
vmovsd xmm2, qword ptr [rax+8]
mov rax, [rsp+88h+var_8]
vsubsd xmm2, xmm2, qword ptr [rax]
vmulsd xmm0, xmm0, xmm2
vaddsd xmm0, xmm0, xmm1
mov rax, [rsp+88h+var_20]
vmovsd qword ptr [rax], xmm0
vmovsd xmm0, [rsp+88h+var_48]
vmulsd xmm0, xmm0, [rsp+88h+var_38]
mov rax, [rsp+88h+var_8]
vmovsd xmm1, qword ptr [rax+8]
mov rax, [rsp+88h+var_8]
vsubsd xmm1, xmm1, qword ptr [rax]
vmulsd xmm0, xmm0, xmm1
mov rax, [rsp+88h+var_8]
vdivsd xmm0, xmm0, qword ptr [rax+10h]
mov rax, [rsp+88h+var_28]
vmovsd qword ptr [rax], xmm0
loc_7560B:
add rsp, 88h
retn
| long long getimpedance(long long a1, long long a2, long long a3, __m128 _XMM0, __m128 _XMM1)
{
long long result; // rax
__asm
{
vmovsd [rsp+88h+var_10], xmm0
vmovsd [rsp+88h+var_18], xmm1
}
_RAX = a1;
__asm { vmovsd xmm0, qword ptr [rax] }
_RAX = a1;
__asm { vucomisd xmm0, qword ptr [rax+8] }
_RAX = a1;
__asm
{
vmovsd xmm0, cs:qword_517B30
vucomisd xmm0, qword ptr [rax+10h]
vmovsd xmm0, qword ptr [rax]
vaddsd xmm1, xmm0, qword ptr [rax+8]
vmovsd xmm0, cs:qword_517B38
vmulsd xmm0, xmm0, xmm1
}
_RAX = a2;
__asm { vmovsd qword ptr [rax], xmm0 }
result = a3;
__asm
{
vxorps xmm0, xmm0, xmm0
vmovsd qword ptr [rax], xmm0
}
return result;
}
| getimpedance:
SUB RSP,0x88
MOV qword ptr [RSP + 0x80],RDI
VMOVSD qword ptr [RSP + 0x78],XMM0
VMOVSD qword ptr [RSP + 0x70],XMM1
MOV qword ptr [RSP + 0x68],RSI
MOV qword ptr [RSP + 0x60],RDX
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM0,qword ptr [RAX]
MOV RAX,qword ptr [RSP + 0x80]
VUCOMISD XMM0,qword ptr [RAX + 0x8]
JNZ 0x00175224
JP 0x00175224
JMP 0x0017523b
LAB_00175224:
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM0,qword ptr [0x00617b30]
VUCOMISD XMM0,qword ptr [RAX + 0x10]
JC 0x0017527b
LAB_0017523b:
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM0,qword ptr [RAX]
MOV RAX,qword ptr [RSP + 0x80]
VADDSD XMM1,XMM0,qword ptr [RAX + 0x8]
VMOVSD XMM0,qword ptr [0x00617b38]
VMULSD XMM0,XMM0,XMM1
MOV RAX,qword ptr [RSP + 0x68]
VMOVSD qword ptr [RAX],XMM0
MOV RAX,qword ptr [RSP + 0x60]
VXORPS XMM0,XMM0,XMM0
VMOVSD qword ptr [RAX],XMM0
JMP 0x0017560b
LAB_0017527b:
VMOVSD XMM0,qword ptr [RSP + 0x78]
VSUBSD XMM0,XMM0,qword ptr [RSP + 0x70]
MOV RAX,qword ptr [RSP + 0x80]
VDIVSD XMM0,XMM0,qword ptr [RAX + 0x10]
VMOVSD qword ptr [RSP + 0x58],XMM0
VMOVSD XMM0,qword ptr [0x00617b58]
VMOVSD qword ptr [RSP + 0x50],XMM0
VXORPS XMM0,XMM0,XMM0
VUCOMISD XMM0,qword ptr [RSP + 0x58]
JBE 0x001752e5
VMOVSD XMM0,qword ptr [RSP + 0x58]
VMOVQ RAX,XMM0
MOV RCX,-0x8000000000000000
XOR RAX,RCX
VMOVQ XMM0,RAX
VMOVSD qword ptr [RSP + 0x58],XMM0
VMOVSD XMM0,qword ptr [0x00617b50]
VMOVSD qword ptr [RSP + 0x50],XMM0
LAB_001752e5:
VMOVSD XMM0,qword ptr [RSP + 0x58]
VMOVSD XMM1,qword ptr [0x00617b58]
VUCOMISD XMM0,XMM1
JNC 0x00175305
VXORPS XMM0,XMM0,XMM0
VUCOMISD XMM0,qword ptr [RSP + 0x58]
JC 0x00175361
LAB_00175305:
VMOVSD XMM0,qword ptr [RSP + 0x58]
VMOVSD XMM1,qword ptr [0x00617b58]
VUCOMISD XMM0,XMM1
JC 0x0017532e
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM0,qword ptr [RAX + 0x8]
VMOVSD qword ptr [RSP + 0x28],XMM0
JMP 0x00175340
LAB_0017532e:
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM0,qword ptr [RAX]
VMOVSD qword ptr [RSP + 0x28],XMM0
LAB_00175340:
VMOVSD XMM0,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x68]
VMOVSD qword ptr [RAX],XMM0
MOV RAX,qword ptr [RSP + 0x60]
VXORPS XMM0,XMM0,XMM0
VMOVSD qword ptr [RAX],XMM0
JMP 0x0017560b
LAB_00175361:
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM0,qword ptr [RAX + 0x20]
VMOVSD XMM1,qword ptr [0x00617b58]
VUCOMISD XMM0,XMM1
JNZ 0x0017539d
JP 0x0017539d
VMOVSD XMM0,qword ptr [RSP + 0x58]
VMOVSD qword ptr [RSP + 0x48],XMM0
VMOVSD XMM0,qword ptr [0x00617b58]
VMOVSD qword ptr [RSP + 0x40],XMM0
JMP 0x00175590
LAB_0017539d:
VMOVSD XMM1,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM0,qword ptr [RAX + 0x18]
VUCOMISD XMM0,XMM1
JC 0x00175489
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM0,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM1,qword ptr [RAX + 0x20]
VMOVSD XMM2,qword ptr [0x00617b58]
VSUBSD XMM1,XMM1,XMM2
CALL 0x00179fc0
VMOVAPS XMM1,XMM0
VMOVSD XMM0,qword ptr [0x00617b58]
VDIVSD XMM0,XMM0,XMM1
VMOVSD qword ptr [RSP + 0x38],XMM0
VMOVSD XMM0,qword ptr [RSP + 0x38]
VMOVSD qword ptr [RSP + 0x18],XMM0
VMOVSD XMM0,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM1,qword ptr [RAX + 0x20]
CALL 0x00179fc0
VMOVAPS XMM1,XMM0
VMOVSD XMM0,qword ptr [RSP + 0x18]
VMULSD XMM0,XMM0,XMM1
VMOVSD qword ptr [RSP + 0x48],XMM0
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM0,qword ptr [RAX + 0x20]
VMULSD XMM0,XMM0,qword ptr [RSP + 0x38]
VMOVSD qword ptr [RSP + 0x20],XMM0
VMOVSD XMM0,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM1,qword ptr [RAX + 0x20]
VMOVSD XMM2,qword ptr [0x00617b58]
VSUBSD XMM1,XMM1,XMM2
CALL 0x00179fc0
VMOVAPS XMM1,XMM0
VMOVSD XMM0,qword ptr [RSP + 0x20]
VMULSD XMM0,XMM0,XMM1
VMOVSD qword ptr [RSP + 0x40],XMM0
JMP 0x0017558e
LAB_00175489:
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM0,qword ptr [0x00617b58]
VSUBSD XMM0,XMM0,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM1,qword ptr [RAX + 0x20]
VMOVSD XMM2,qword ptr [0x00617b58]
VSUBSD XMM1,XMM1,XMM2
CALL 0x00179fc0
VMOVAPS XMM1,XMM0
VMOVSD XMM0,qword ptr [0x00617b58]
VDIVSD XMM0,XMM0,XMM1
VMOVSD qword ptr [RSP + 0x30],XMM0
VMOVSD XMM0,qword ptr [RSP + 0x30]
VMOVSD qword ptr [RSP + 0x8],XMM0
VMOVSD XMM0,qword ptr [0x00617b58]
VSUBSD XMM0,XMM0,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM1,qword ptr [RAX + 0x20]
CALL 0x00179fc0
VMOVAPS XMM1,XMM0
VMOVSD XMM0,qword ptr [RSP + 0x8]
VMOVQ RAX,XMM0
MOV RCX,-0x8000000000000000
XOR RAX,RCX
VMOVQ XMM0,RAX
VMULSD XMM0,XMM0,XMM1
VMOVSD XMM1,qword ptr [0x00617b58]
VADDSD XMM0,XMM0,XMM1
VMOVSD qword ptr [RSP + 0x48],XMM0
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM0,qword ptr [RAX + 0x20]
VMULSD XMM0,XMM0,qword ptr [RSP + 0x30]
VMOVSD qword ptr [RSP + 0x10],XMM0
VMOVSD XMM0,qword ptr [0x00617b58]
VSUBSD XMM0,XMM0,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM1,qword ptr [RAX + 0x20]
VMOVSD XMM2,qword ptr [0x00617b58]
VSUBSD XMM1,XMM1,XMM2
CALL 0x00179fc0
VMOVAPS XMM1,XMM0
VMOVSD XMM0,qword ptr [RSP + 0x10]
VMULSD XMM0,XMM0,XMM1
VMOVSD qword ptr [RSP + 0x40],XMM0
LAB_0017558e:
JMP 0x00175590
LAB_00175590:
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM1,qword ptr [RAX]
VMOVSD XMM0,qword ptr [RSP + 0x48]
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM2,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RSP + 0x80]
VSUBSD XMM2,XMM2,qword ptr [RAX]
VMULSD XMM0,XMM0,XMM2
VADDSD XMM0,XMM0,XMM1
MOV RAX,qword ptr [RSP + 0x68]
VMOVSD qword ptr [RAX],XMM0
VMOVSD XMM0,qword ptr [RSP + 0x40]
VMULSD XMM0,XMM0,qword ptr [RSP + 0x50]
MOV RAX,qword ptr [RSP + 0x80]
VMOVSD XMM1,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RSP + 0x80]
VSUBSD XMM1,XMM1,qword ptr [RAX]
VMULSD XMM0,XMM0,XMM1
MOV RAX,qword ptr [RSP + 0x80]
VDIVSD XMM0,XMM0,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RSP + 0x60]
VMOVSD qword ptr [RAX],XMM0
LAB_0017560b:
ADD RSP,0x88
RET
|
void getimpedance(double param_1,double param_2,double *param_3,double *param_4,double *param_5)
{
double dVar1;
double dVar2;
double local_60;
double local_48;
double local_40;
double local_38;
double local_30;
if (((*param_3 == param_3[1]) && (!NAN(*param_3) && !NAN(param_3[1]))) ||
(param_3[2] <= DAT_00617b30)) {
*param_4 = DAT_00617b38 * (*param_3 + param_3[1]);
*param_5 = 0.0;
}
else {
local_30 = (param_1 - param_2) / param_3[2];
local_38 = DAT_00617b58;
if (local_30 < 0.0) {
local_30 = -local_30;
local_38 = DAT_00617b50;
}
if ((DAT_00617b58 <= local_30) || (local_30 <= 0.0)) {
if (local_30 < DAT_00617b58) {
local_60 = *param_3;
}
else {
local_60 = param_3[1];
}
*param_4 = local_60;
*param_5 = 0.0;
}
else {
if ((param_3[4] != DAT_00617b58) || (NAN(param_3[4]) || NAN(DAT_00617b58))) {
if (param_3[3] < local_30) {
dVar1 = (double)power(DAT_00617b58 - param_3[3],param_3[4] - DAT_00617b58);
dVar1 = DAT_00617b58 / dVar1;
dVar2 = (double)power(DAT_00617b58 - local_30,param_3[4]);
local_40 = -dVar1 * dVar2 + DAT_00617b58;
dVar2 = param_3[4];
local_48 = (double)power(DAT_00617b58 - local_30,param_3[4] - DAT_00617b58);
local_48 = dVar2 * dVar1 * local_48;
}
else {
dVar1 = (double)power(param_3[3],param_3[4] - DAT_00617b58);
dVar1 = DAT_00617b58 / dVar1;
local_40 = (double)power(local_30,param_3[4]);
local_40 = dVar1 * local_40;
dVar2 = param_3[4];
local_48 = (double)power(local_30,param_3[4] - DAT_00617b58);
local_48 = dVar2 * dVar1 * local_48;
}
}
else {
local_40 = local_30;
local_48 = DAT_00617b58;
}
*param_4 = local_40 * (param_3[1] - *param_3) + *param_3;
*param_5 = (local_48 * local_38 * (param_3[1] - *param_3)) / param_3[2];
}
}
return;
}
| |
35,133 | my_hash_iterate | eloqsql/mysys/hash.c | my_bool my_hash_iterate(HASH *hash, my_hash_walk_action action, void *argument)
{
uint records, i;
records= hash->records;
for (i= 0 ; i < records ; i++)
{
if ((*action)(dynamic_element(&hash->array, i, HASH_LINK *)->data,
argument))
return 1;
}
return 0;
} | O0 | c | my_hash_iterate:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movl %eax, -0x24(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x24(%rbp), %eax
jae 0xdf095
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x28(%rbp), %edx
shlq $0x4, %rdx
addq %rdx, %rcx
movq 0x8(%rcx), %rdi
movq -0x20(%rbp), %rsi
callq *%rax
cmpb $0x0, %al
je 0xdf088
movb $0x1, -0x1(%rbp)
jmp 0xdf099
jmp 0xdf08a
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xdf056
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| my_hash_iterate:
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_10]
mov rax, [rax+18h]
mov [rbp+var_24], eax
mov [rbp+var_28], 0
loc_DF056:
mov eax, [rbp+var_28]
cmp eax, [rbp+var_24]
jnb short loc_DF095
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
mov rcx, [rcx+28h]
mov edx, [rbp+var_28]
shl rdx, 4
add rcx, rdx
mov rdi, [rcx+8]
mov rsi, [rbp+var_20]
call rax
cmp al, 0
jz short loc_DF088
mov [rbp+var_1], 1
jmp short loc_DF099
loc_DF088:
jmp short $+2
loc_DF08A:
mov eax, [rbp+var_28]
add eax, 1
mov [rbp+var_28], eax
jmp short loc_DF056
loc_DF095:
mov [rbp+var_1], 0
loc_DF099:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
| char my_hash_iterate(long long a1, unsigned __int8 ( *a2)(_QWORD, long long), long long a3)
{
unsigned int i; // [rsp+8h] [rbp-28h]
unsigned int v5; // [rsp+Ch] [rbp-24h]
v5 = *(_QWORD *)(a1 + 24);
for ( i = 0; i < v5; ++i )
{
if ( a2(*(_QWORD *)(16LL * i + *(_QWORD *)(a1 + 40) + 8), a3) )
return 1;
}
return 0;
}
| my_hash_iterate:
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 + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV dword ptr [RBP + -0x24],EAX
MOV dword ptr [RBP + -0x28],0x0
LAB_001df056:
MOV EAX,dword ptr [RBP + -0x28]
CMP EAX,dword ptr [RBP + -0x24]
JNC 0x001df095
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x28]
MOV EDX,dword ptr [RBP + -0x28]
SHL RDX,0x4
ADD RCX,RDX
MOV RDI,qword ptr [RCX + 0x8]
MOV RSI,qword ptr [RBP + -0x20]
CALL RAX
CMP AL,0x0
JZ 0x001df088
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001df099
LAB_001df088:
JMP 0x001df08a
LAB_001df08a:
MOV EAX,dword ptr [RBP + -0x28]
ADD EAX,0x1
MOV dword ptr [RBP + -0x28],EAX
JMP 0x001df056
LAB_001df095:
MOV byte ptr [RBP + -0x1],0x0
LAB_001df099:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 my_hash_iterate(long param_1,code *param_2,int8 param_3)
{
int8 uVar1;
char cVar2;
uint local_30;
uVar1 = *(int8 *)(param_1 + 0x18);
local_30 = 0;
while( true ) {
if ((uint)uVar1 <= local_30) {
return 0;
}
cVar2 = (*param_2)(*(int8 *)(*(long *)(param_1 + 0x28) + (ulong)local_30 * 0x10 + 8),
param_3);
if (cVar2 != '\0') break;
local_30 = local_30 + 1;
}
return 1;
}
| |
35,134 | 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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::parse(bool, 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>&) | llama.cpp/common/./json.hpp | void parse(const bool strict, BasicJsonType& result)
{
if (callback)
{
json_sax_dom_callback_parser<BasicJsonType> sdp(result, callback, allow_exceptions);
sax_parse_internal(&sdp);
// in strict mode, input must be completely read
if (strict && (get_token() != token_type::end_of_input))
{
sdp.parse_error(m_lexer.get_position(),
m_lexer.get_token_string(),
parse_error::create(101, m_lexer.get_position(),
exception_message(token_type::end_of_input, "value"), nullptr));
}
// in case of an error, return discarded value
if (sdp.is_errored())
{
result = value_t::discarded;
return;
}
// set top-level value to null if it was discarded by the callback
// function
if (result.is_discarded())
{
result = nullptr;
}
}
else
{
json_sax_dom_parser<BasicJsonType> sdp(result, allow_exceptions);
sax_parse_internal(&sdp);
// in strict mode, input must be completely read
if (strict && (get_token() != token_type::end_of_input))
{
sdp.parse_error(m_lexer.get_position(),
m_lexer.get_token_string(),
parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr));
}
// in case of an error, return discarded value
if (sdp.is_errored())
{
result = value_t::discarded;
return;
}
}
result.assert_invariant();
} | O3 | cpp | 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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::parse(bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1b0, %rsp # imm = 0x1B0
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
cmpq $0x0, 0x10(%rdi)
je 0x2b45d
leaq 0xa8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x2b232
movzbl 0xc0(%r14), %ecx
leaq 0xc8(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2c41e
movq 0xb8(%rsp), %rax
testq %rax, %rax
je 0x2b2ff
leaq 0xa8(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0xc8(%rsp), %rsi
movq %r14, %rdi
callq 0x2c500
testb %bpl, %bpl
je 0x2b43b
leaq 0x28(%r14), %r12
movq %r12, %rdi
callq 0x2bcd6
movl %eax, 0x20(%r14)
cmpl $0xf, %eax
je 0x2b43b
movq 0x48(%r14), %r15
leaq 0x48(%rsp), %rdi
movq %r12, %rsi
callq 0x2d258
leaq 0x48(%r14), %rax
movq 0x10(%rax), %rcx
movq %rcx, 0xa0(%rsp)
movups (%rax), %xmm0
movaps %xmm0, 0x90(%rsp)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xa3662(%rip), %rsi # 0xce9d0
leaq 0xa3660(%rip), %rdx # 0xce9d5
leaq 0x8(%rsp), %rdi
callq 0x3fe82
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %r14, %rsi
movl $0xf, %edx
callq 0x2d510
leaq 0x68(%rsp), %rdi
leaq 0x90(%rsp), %rdx
leaq 0x28(%rsp), %rcx
movl $0x65, %esi
xorl %r8d, %r8d
callq 0x2d312
leaq 0xc8(%rsp), %rdi
leaq 0x48(%rsp), %rdx
leaq 0x68(%rsp), %rcx
movq %r15, %rsi
callq 0x2d212
leaq 0xd2a72(%rip), %rax # 0xfde48
leaq 0x78(%rsp), %rdi
movq %rax, -0x10(%rdi)
callq 0x1ce30
leaq 0x68(%rsp), %rdi
callq 0x1c0a0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b409
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1c110
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2b420
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1c110
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b43b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x1c110
cmpb $0x0, 0x140(%rsp)
je 0x2b602
movb (%rbx), %al
movb $0x9, (%rbx)
leaq 0x1a0(%rsp), %rdi
movb %al, (%rdi)
jmp 0x2b615
movb 0xc0(%r14), %al
leaq 0xc8(%rsp), %rsi
movq %rbx, (%rsi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsi)
movups %xmm0, 0x18(%rsi)
movb $0x0, 0x28(%rsi)
movb %al, 0x29(%rsi)
movq %r14, %rdi
callq 0x2d88a
testb %bpl, %bpl
je 0x2b5b5
leaq 0x28(%r14), %r12
movq %r12, %rdi
callq 0x2bcd6
movl %eax, 0x20(%r14)
cmpl $0xf, %eax
je 0x2b5b5
movq 0x48(%r14), %r15
leaq 0x48(%rsp), %rdi
movq %r12, %rsi
callq 0x2d258
leaq 0x48(%r14), %rax
movq 0x10(%rax), %rcx
movq %rcx, 0xa0(%rsp)
movups (%rax), %xmm0
movaps %xmm0, 0x90(%rsp)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xa34e8(%rip), %rsi # 0xce9d0
leaq 0xa34e6(%rip), %rdx # 0xce9d5
leaq 0x8(%rsp), %rdi
callq 0x3fe82
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %r14, %rsi
movl $0xf, %edx
callq 0x2d510
leaq 0x68(%rsp), %rdi
leaq 0x90(%rsp), %rdx
leaq 0x28(%rsp), %rcx
movl $0x65, %esi
xorl %r8d, %r8d
callq 0x2d312
leaq 0xc8(%rsp), %rdi
leaq 0x48(%rsp), %rdx
leaq 0x68(%rsp), %rcx
movq %r15, %rsi
callq 0x2e57e
leaq 0xd28f8(%rip), %rax # 0xfde48
leaq 0x78(%rsp), %rdi
movq %rax, -0x10(%rdi)
callq 0x1ce30
leaq 0x68(%rsp), %rdi
callq 0x1c0a0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b583
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1c110
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2b59a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1c110
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b5b5
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x1c110
cmpb $0x1, 0xf0(%rsp)
jne 0x2b5e3
movb (%rbx), %al
movb $0x9, (%rbx)
leaq 0x180(%rsp), %rdi
movb %al, (%rdi)
movq 0x8(%rbx), %rax
movq $0x0, 0x8(%rbx)
movq %rax, 0x8(%rdi)
callq 0x300e0
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x2b637
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x1c110
jmp 0x2b637
cmpb $0x9, (%rbx)
jne 0x2b62a
movb $0x0, (%rbx)
leaq 0x190(%rsp), %rdi
movb $0x9, (%rdi)
movq 0x8(%rbx), %rax
movq $0x0, 0x8(%rbx)
movq %rax, 0x8(%rdi)
callq 0x300e0
leaq 0xc8(%rsp), %rdi
callq 0x2d826
addq $0x1b0, %rsp # imm = 0x1B0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xd27f7(%rip), %rax # 0xfde48
leaq 0x78(%rsp), %rdi
movq %rax, -0x10(%rdi)
callq 0x1ce30
leaq 0x68(%rsp), %rdi
callq 0x1c0a0
jmp 0x2b66e
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b68e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1c110
jmp 0x2b68e
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2b6aa
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1c110
jmp 0x2b6aa
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b75a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x1c110
jmp 0x2b75a
jmp 0x2b757
movq %rax, %rbx
leaq 0xd276b(%rip), %rax # 0xfde48
leaq 0x78(%rsp), %rdi
movq %rax, -0x10(%rdi)
callq 0x1ce30
leaq 0x68(%rsp), %rdi
callq 0x1c0a0
jmp 0x2b6fa
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b71a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1c110
jmp 0x2b71a
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2b736
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1c110
jmp 0x2b736
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b7a8
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x1c110
jmp 0x2b7a8
jmp 0x2b7a5
jmp 0x2b79d
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x2b7b5
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x1c110
jmp 0x2b7b5
movq %rax, %rbx
movq 0xb8(%rsp), %rax
testq %rax, %rax
je 0x2b7b5
leaq 0xa8(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x2b7b5
movq %rax, %rdi
callq 0x2a81a
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x2d826
movq %rbx, %rdi
callq 0x1c7d0
nop
| _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 1B0h
mov rbx, rdx
mov ebp, esi
mov r14, rdi
cmp qword ptr [rdi+10h], 0
jz loc_2B45D
lea r15, [rsp+1D8h+var_130]
mov rdi, r15
mov rsi, r14
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&)
movzx ecx, byte ptr [r14+0C0h]
lea rdi, [rsp+1D8h+var_110]
mov rsi, rbx
mov rdx, r15
call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERSF_St8functionIFbiNS1_13parse_event_tESH_EEb; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_sax_dom_callback_parser(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&,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)
mov rax, [rsp+1D8h+var_120]
test rax, rax
jz short loc_2B2FF
lea rdi, [rsp+1D8h+var_130]
mov rsi, rdi
mov edx, 3
call rax
loc_2B2FF:
lea rsi, [rsp+1D8h+var_110]
mov rdi, r14; int
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_28json_sax_dom_callback_parserISF_EEEEbPT_; 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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *)
test bpl, bpl
jz loc_2B43B
lea r12, [r14+28h]
mov rdi, r12
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE4scanEv; 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>>>::scan(void)
mov [r14+20h], eax
cmp eax, 0Fh
jz loc_2B43B
mov r15, [r14+48h]
lea rdi, [rsp+1D8h+var_190]
mov rsi, r12
call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void)
lea rax, [r14+48h]
mov rcx, [rax+10h]
mov [rsp+1D8h+var_138], rcx
movups xmm0, xmmword ptr [rax]
movaps xmmword ptr [rsp+1D8h+var_148], xmm0; __int64
lea r12, [rsp+1D8h+var_1C0]
mov [r12-10h], r12
lea rsi, aNamespacedSetN+32h; "value"
lea rdx, aNamespacedSetN+37h; ""
lea rdi, [rsp+1D8h+var_1D0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+1D8h+var_1B0]; int
lea rcx, [rsp+1D8h+var_1D0]; int
mov rsi, r14; int
mov edx, 0Fh; int
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_; 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>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&)
lea rdi, [rsp+1D8h+var_170]; this
lea rdx, [rsp+1D8h+var_148]; int
lea rcx, [rsp+1D8h+var_1B0]
mov esi, 65h ; 'e'; int
xor r8d, r8d
call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
lea rdi, [rsp+1D8h+var_110]
lea rdx, [rsp+1D8h+var_190]
lea rcx, [rsp+1D8h+var_170]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&)
lea rax, off_FDE48
lea rdi, [rsp+1D8h+var_160]; this
mov [rdi-10h], rax
call _ZNSt13runtime_errorD1Ev; std::runtime_error::~runtime_error()
lea rdi, [rsp+1D8h+var_170]; this
call __ZNSt9exceptionD2Ev; std::exception::~exception()
lea rax, [rsp+1D8h+var_1A0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_2B409
mov rsi, [rsp+1D8h+var_1A0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2B409:
mov rdi, [rsp+1D8h+var_1D0]; void *
cmp rdi, r12
jz short loc_2B420
mov rsi, [rsp+1D8h+var_1C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2B420:
lea rax, [rsp+1D8h+var_180]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_2B43B
mov rsi, [rsp+1D8h+var_180]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2B43B:
cmp [rsp+1D8h+var_98], 0
jz loc_2B602
mov al, [rbx]
mov byte ptr [rbx], 9
lea rdi, [rsp+1D8h+var_38]
mov [rdi], al
jmp loc_2B615
loc_2B45D:
mov al, [r14+0C0h]
lea rsi, [rsp+1D8h+var_110]
mov [rsi], rbx
xorps xmm0, xmm0
movups xmmword ptr [rsi+8], xmm0
movups xmmword ptr [rsi+18h], xmm0
mov byte ptr [rsi+28h], 0
mov [rsi+29h], al
mov rdi, r14; int
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_19json_sax_dom_parserISF_EEEEbPT_; 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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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::json_sax_dom_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>> *)
test bpl, bpl
jz loc_2B5B5
lea r12, [r14+28h]
mov rdi, r12
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE4scanEv; 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>>>::scan(void)
mov [r14+20h], eax
cmp eax, 0Fh
jz loc_2B5B5
mov r15, [r14+48h]
lea rdi, [rsp+1D8h+var_190]
mov rsi, r12
call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void)
lea rax, [r14+48h]
mov rcx, [rax+10h]
mov [rsp+1D8h+var_138], rcx
movups xmm0, xmmword ptr [rax]
movaps xmmword ptr [rsp+1D8h+var_148], xmm0; __int64
lea r12, [rsp+1D8h+var_1C0]
mov [r12-10h], r12
lea rsi, aNamespacedSetN+32h; "value"
lea rdx, aNamespacedSetN+37h; ""
lea rdi, [rsp+1D8h+var_1D0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+1D8h+var_1B0]; int
lea rcx, [rsp+1D8h+var_1D0]; int
mov rsi, r14; int
mov edx, 0Fh; int
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_; 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>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&)
lea rdi, [rsp+1D8h+var_170]; this
lea rdx, [rsp+1D8h+var_148]; int
lea rcx, [rsp+1D8h+var_1B0]
mov esi, 65h ; 'e'; int
xor r8d, r8d
call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
lea rdi, [rsp+1D8h+var_110]
lea rdx, [rsp+1D8h+var_190]
lea rcx, [rsp+1D8h+var_170]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&)
lea rax, off_FDE48
lea rdi, [rsp+1D8h+var_160]; this
mov [rdi-10h], rax
call _ZNSt13runtime_errorD1Ev; std::runtime_error::~runtime_error()
lea rdi, [rsp+1D8h+var_170]; this
call __ZNSt9exceptionD2Ev; std::exception::~exception()
lea rax, [rsp+1D8h+var_1A0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_2B583
mov rsi, [rsp+1D8h+var_1A0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2B583:
mov rdi, [rsp+1D8h+var_1D0]; void *
cmp rdi, r12
jz short loc_2B59A
mov rsi, [rsp+1D8h+var_1C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2B59A:
lea rax, [rsp+1D8h+var_180]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_2B5B5
mov rsi, [rsp+1D8h+var_180]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2B5B5:
cmp [rsp+1D8h+var_E8], 1
jnz short loc_2B5E3
mov al, [rbx]
mov byte ptr [rbx], 9
lea rdi, [rsp+1D8h+var_58]
mov [rdi], al
mov rax, [rbx+8]
mov qword ptr [rbx+8], 0
mov [rdi+8], rax
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_2B5E3:
mov rdi, [rsp+1D8h+var_108]; void *
test rdi, rdi
jz short loc_2B637
mov rsi, [rsp+1D8h+var_F8]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_2B637
loc_2B602:
cmp byte ptr [rbx], 9
jnz short loc_2B62A
mov byte ptr [rbx], 0
lea rdi, [rsp+1D8h+var_48]
mov byte ptr [rdi], 9
loc_2B615:
mov rax, [rbx+8]
mov qword ptr [rbx+8], 0
mov [rdi+8], rax
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_2B62A:
lea rdi, [rsp+1D8h+var_110]
call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~json_sax_dom_callback_parser()
loc_2B637:
add rsp, 1B0h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rax, off_FDE48
lea rdi, [rsp+1D8h+var_160]; this
mov [rdi-10h], rax
call _ZNSt13runtime_errorD1Ev; std::runtime_error::~runtime_error()
lea rdi, [rsp+1D8h+var_170]; this
call __ZNSt9exceptionD2Ev; std::exception::~exception()
jmp short loc_2B66E
mov rbx, rax
loc_2B66E:
lea rax, [rsp+1D8h+var_1A0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_2B68E
mov rsi, [rsp+1D8h+var_1A0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_2B68E
mov rbx, rax
loc_2B68E:
mov rdi, [rsp+1D8h+var_1D0]; void *
cmp rdi, r12
jz short loc_2B6AA
mov rsi, [rsp+1D8h+var_1C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_2B6AA
mov rbx, rax
loc_2B6AA:
lea rax, [rsp+1D8h+var_180]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz loc_2B75A
mov rsi, [rsp+1D8h+var_180]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp loc_2B75A
jmp loc_2B757
mov rbx, rax
lea rax, off_FDE48
lea rdi, [rsp+1D8h+var_160]; this
mov [rdi-10h], rax
call _ZNSt13runtime_errorD1Ev; std::runtime_error::~runtime_error()
lea rdi, [rsp+1D8h+var_170]; this
call __ZNSt9exceptionD2Ev; std::exception::~exception()
jmp short loc_2B6FA
mov rbx, rax
loc_2B6FA:
lea rax, [rsp+1D8h+var_1A0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_2B71A
mov rsi, [rsp+1D8h+var_1A0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_2B71A
mov rbx, rax
loc_2B71A:
mov rdi, [rsp+1D8h+var_1D0]; void *
cmp rdi, r12
jz short loc_2B736
mov rsi, [rsp+1D8h+var_1C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_2B736
mov rbx, rax
loc_2B736:
lea rax, [rsp+1D8h+var_180]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_2B7A8
mov rsi, [rsp+1D8h+var_180]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_2B7A8
jmp short loc_2B7A5
jmp short loc_2B79D
loc_2B757:
mov rbx, rax
loc_2B75A:
mov rdi, [rsp+1D8h+var_108]; void *
test rdi, rdi
jz short loc_2B7B5
mov rsi, [rsp+1D8h+var_F8]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_2B7B5
mov rbx, rax
mov rax, [rsp+1D8h+var_120]
test rax, rax
jz short loc_2B7B5
lea rdi, [rsp+1D8h+var_130]
mov rsi, rdi
mov edx, 3
call rax
jmp short loc_2B7B5
loc_2B79D:
mov rdi, rax
call __clang_call_terminate
loc_2B7A5:
mov rbx, rax
loc_2B7A8:
lea rdi, [rsp+1D8h+var_110]
call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~json_sax_dom_callback_parser()
loc_2B7B5:
mov rdi, rbx
call __Unwind_Resume
| void 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(
long long a1,
char a2,
char *a3)
{
long long *v5; // rsi
int v6; // eax
long long *v7; // r15
int v8; // r8d
int v9; // r9d
char v10; // al
char *v11; // rdi
char v12; // al
int v13; // eax
long long v14; // r15
int v15; // r8d
int v16; // r9d
char v17; // al
long long v18; // rax
long long v19; // rax
int v20; // [rsp+0h] [rbp-1D8h]
void *v21; // [rsp+0h] [rbp-1D8h]
void *v22; // [rsp+0h] [rbp-1D8h]
void *v23; // [rsp+0h] [rbp-1D8h]
void *v24; // [rsp+0h] [rbp-1D8h]
void *v25; // [rsp+8h] [rbp-1D0h] BYREF
long long v26; // [rsp+10h] [rbp-1C8h]
long long v27; // [rsp+18h] [rbp-1C0h] BYREF
void *v28; // [rsp+20h] [rbp-1B8h]
long long *v29; // [rsp+28h] [rbp-1B0h] BYREF
long long v30; // [rsp+30h] [rbp-1A8h]
long long v31; // [rsp+38h] [rbp-1A0h] BYREF
long long v32; // [rsp+40h] [rbp-198h]
long long *v33; // [rsp+48h] [rbp-190h] BYREF
long long v34; // [rsp+50h] [rbp-188h]
long long v35; // [rsp+58h] [rbp-180h] BYREF
int v36; // [rsp+60h] [rbp-178h]
void ( **v37)(nlohmann::json_abi_v3_11_3::detail::exception *__hidden); // [rsp+68h] [rbp-170h] BYREF
long long v38; // [rsp+70h] [rbp-168h]
int v39; // [rsp+78h] [rbp-160h] BYREF
int v40; // [rsp+80h] [rbp-158h]
int v41; // [rsp+88h] [rbp-150h]
long long v42[2]; // [rsp+90h] [rbp-148h] BYREF
long long v43; // [rsp+A0h] [rbp-138h]
__int128 v44; // [rsp+A8h] [rbp-130h] BYREF
void ( *v45)(__int128 *, __int128 *, long long); // [rsp+B8h] [rbp-120h]
int v46; // [rsp+C0h] [rbp-118h]
long long v47; // [rsp+C8h] [rbp-110h] BYREF
__int128 v48; // [rsp+D0h] [rbp-108h]
__int128 v49; // [rsp+E0h] [rbp-F8h]
char v50; // [rsp+F0h] [rbp-E8h]
char v51; // [rsp+F1h] [rbp-E7h]
char v52; // [rsp+140h] [rbp-98h]
_BYTE v53[8]; // [rsp+180h] [rbp-58h] BYREF
long long v54; // [rsp+188h] [rbp-50h]
char v55; // [rsp+190h] [rbp-48h] BYREF
char v56; // [rsp+1A0h] [rbp-38h] BYREF
if ( *(_QWORD *)(a1 + 16) )
{
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(
&v44,
a1);
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_sax_dom_callback_parser(
&v47,
a3,
&v44,
*(unsigned __int8 *)(a1 + 192));
if ( v45 )
v45(&v44, &v44, 3LL);
v5 = &v47;
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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>(
a1,
v20,
(long long)v25,
v26,
v27,
(long long)v28,
(int)v29,
v30,
v31,
v32,
(int)v33,
v34,
v35,
v36,
(int)v37,
v38,
v39,
v40,
v41,
v42[0],
v42[1],
v43,
(void *)v44,
SDWORD2(v44),
(int)v45,
v46,
v47);
if ( a2 )
{
v6 = 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>>>::scan(a1 + 40);
*(_DWORD *)(a1 + 32) = v6;
if ( v6 != 15 )
{
v7 = *(long long **)(a1 + 72);
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(
&v33,
a1 + 40);
v43 = *(_QWORD *)(a1 + 88);
*(_OWORD *)v42 = *(_OWORD *)(a1 + 72);
v25 = &v27;
std::string::_M_construct<char const*>(&v25, "value", "");
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>>>::exception_message(
(int)&v29,
a1,
15,
(int)&v25,
v8,
v9,
v21,
(int)v25,
v26,
v27,
(int)v28,
(int)v29,
v30,
v31,
v32);
ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
(nlohmann::json_abi_v3_11_3::detail::exception *)&v37,
101,
(int)v42,
v22,
(int)v25,
v26,
v27,
v28,
(int)v29,
v30,
v31,
v32,
(int)v33,
v34,
v35,
v36,
(int)v37,
v38,
v39,
v40,
v41,
v42[0]);
v5 = v7;
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(
&v47,
v7,
&v33,
&v37);
v37 = off_FDE48;
std::runtime_error::~runtime_error((std::runtime_error *)&v39);
std::exception::~exception((std::exception *)&v37);
if ( v29 != &v31 )
{
v5 = (long long *)(v31 + 1);
operator delete(v29, v31 + 1);
}
if ( v25 != &v27 )
{
v5 = (long long *)(v27 + 1);
operator delete(v25, v27 + 1);
}
if ( v33 != &v35 )
{
v5 = (long long *)(v35 + 1);
operator delete(v33, v35 + 1);
}
}
}
if ( v52 )
{
v10 = *a3;
*a3 = 9;
v11 = &v56;
v56 = v10;
}
else
{
if ( *a3 != 9 )
{
LABEL_29:
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~json_sax_dom_callback_parser(
&v47,
v5);
return;
}
*a3 = 0;
v11 = &v55;
v55 = 9;
}
v19 = *((_QWORD *)a3 + 1);
*((_QWORD *)a3 + 1) = 0LL;
*((_QWORD *)v11 + 1) = v19;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v11);
goto LABEL_29;
}
v12 = *(_BYTE *)(a1 + 192);
v48 = 0LL;
v49 = 0LL;
v50 = 0;
v51 = v12;
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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>>(
a1,
v20,
(long long)v25,
v26,
v27,
(char)v28,
(int)v29,
v30,
v31,
v32,
(int)v33,
v34,
v35,
v36,
(int)v37,
v38,
v39,
v40,
v41,
v42[0],
v42[1],
v43,
v44,
*((void **)&v44 + 1),
(int)v45,
v46,
(int)a3,
0LL);
if ( a2 )
{
v13 = 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>>>::scan(a1 + 40);
*(_DWORD *)(a1 + 32) = v13;
if ( v13 != 15 )
{
v14 = *(_QWORD *)(a1 + 72);
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(
&v33,
a1 + 40);
v43 = *(_QWORD *)(a1 + 88);
*(_OWORD *)v42 = *(_OWORD *)(a1 + 72);
v25 = &v27;
std::string::_M_construct<char const*>(&v25, "value", "");
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>>>::exception_message(
(int)&v29,
a1,
15,
(int)&v25,
v15,
v16,
v23,
(int)v25,
v26,
v27,
(int)v28,
(int)v29,
v30,
v31,
v32);
ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
(nlohmann::json_abi_v3_11_3::detail::exception *)&v37,
101,
(int)v42,
v24,
(int)v25,
v26,
v27,
v28,
(int)v29,
v30,
v31,
v32,
(int)v33,
v34,
v35,
v36,
(int)v37,
v38,
v39,
v40,
v41,
v42[0]);
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(
&v47,
v14,
&v33,
&v37);
v37 = off_FDE48;
std::runtime_error::~runtime_error((std::runtime_error *)&v39);
std::exception::~exception((std::exception *)&v37);
if ( v29 != &v31 )
operator delete(v29, v31 + 1);
if ( v25 != &v27 )
operator delete(v25, v27 + 1);
if ( v33 != &v35 )
operator delete(v33, v35 + 1);
}
}
if ( v50 == 1 )
{
v17 = *a3;
*a3 = 9;
v53[0] = v17;
v18 = *((_QWORD *)a3 + 1);
*((_QWORD *)a3 + 1) = 0LL;
v54 = v18;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v53);
}
if ( (_QWORD)v48 )
operator delete((void *)v48, v49 - v48);
}
| parse:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x1b0
MOV RBX,RDX
MOV EBP,ESI
MOV R14,RDI
CMP qword ptr [RDI + 0x10],0x0
JZ 0x0012b45d
LEA R15,[RSP + 0xa8]
MOV RDI,R15
MOV RSI,R14
CALL 0x0012b232
MOVZX ECX,byte ptr [R14 + 0xc0]
LAB_0012b2cd:
LEA RDI,[RSP + 0xc8]
MOV RSI,RBX
MOV RDX,R15
CALL 0x0012c41e
MOV RAX,qword ptr [RSP + 0xb8]
TEST RAX,RAX
JZ 0x0012b2ff
LAB_0012b2ed:
LEA RDI,[RSP + 0xa8]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_0012b2ff:
LEA RSI,[RSP + 0xc8]
MOV RDI,R14
CALL 0x0012c500
TEST BPL,BPL
JZ 0x0012b43b
LEA R12,[R14 + 0x28]
MOV RDI,R12
CALL 0x0012bcd6
MOV dword ptr [R14 + 0x20],EAX
CMP EAX,0xf
JZ 0x0012b43b
MOV R15,qword ptr [R14 + 0x48]
LAB_0012b335:
LEA RDI,[RSP + 0x48]
MOV RSI,R12
CALL 0x0012d258
LEA RAX,[R14 + 0x48]
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0xa0],RCX
MOVUPS XMM0,xmmword ptr [RAX]
MOVAPS xmmword ptr [RSP + 0x90],XMM0
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
LAB_0012b367:
LEA RSI,[0x1ce9d0]
LEA RDX,[0x1ce9d5]
LEA RDI,[RSP + 0x8]
CALL 0x0013fe82
LAB_0012b37f:
LEA RDI,[RSP + 0x28]
LEA RCX,[RSP + 0x8]
MOV RSI,R14
MOV EDX,0xf
CALL 0x0012d510
LAB_0012b396:
LEA RDI,[RSP + 0x68]
LEA RDX,[RSP + 0x90]
LEA RCX,[RSP + 0x28]
MOV ESI,0x65
XOR R8D,R8D
CALL 0x0012d312
LAB_0012b3b5:
LEA RDI,[RSP + 0xc8]
LEA RDX,[RSP + 0x48]
LEA RCX,[RSP + 0x68]
MOV RSI,R15
CALL 0x0012d212
LEA RAX,[0x1fde48]
LEA RDI,[RSP + 0x78]
MOV qword ptr [RDI + -0x10],RAX
CALL 0x0011ce30
LEA RDI,[RSP + 0x68]
CALL 0x0011c0a0
LEA RAX,[RSP + 0x38]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0012b409
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011c110
LAB_0012b409:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x0012b420
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011c110
LAB_0012b420:
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0012b43b
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x0011c110
LAB_0012b43b:
CMP byte ptr [RSP + 0x140],0x0
JZ 0x0012b602
MOV AL,byte ptr [RBX]
MOV byte ptr [RBX],0x9
LEA RDI,[RSP + 0x1a0]
MOV byte ptr [RDI],AL
JMP 0x0012b615
LAB_0012b45d:
MOV AL,byte ptr [R14 + 0xc0]
LEA RSI,[RSP + 0xc8]
MOV qword ptr [RSI],RBX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSI + 0x8],XMM0
MOVUPS xmmword ptr [RSI + 0x18],XMM0
MOV byte ptr [RSI + 0x28],0x0
MOV byte ptr [RSI + 0x29],AL
LAB_0012b481:
MOV RDI,R14
CALL 0x0012d88a
TEST BPL,BPL
JZ 0x0012b5b5
LEA R12,[R14 + 0x28]
MOV RDI,R12
CALL 0x0012bcd6
MOV dword ptr [R14 + 0x20],EAX
CMP EAX,0xf
JZ 0x0012b5b5
MOV R15,qword ptr [R14 + 0x48]
LAB_0012b4af:
LEA RDI,[RSP + 0x48]
MOV RSI,R12
CALL 0x0012d258
LEA RAX,[R14 + 0x48]
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0xa0],RCX
MOVUPS XMM0,xmmword ptr [RAX]
MOVAPS xmmword ptr [RSP + 0x90],XMM0
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
LAB_0012b4e1:
LEA RSI,[0x1ce9d0]
LEA RDX,[0x1ce9d5]
LEA RDI,[RSP + 0x8]
CALL 0x0013fe82
LAB_0012b4f9:
LEA RDI,[RSP + 0x28]
LEA RCX,[RSP + 0x8]
MOV RSI,R14
MOV EDX,0xf
CALL 0x0012d510
LAB_0012b510:
LEA RDI,[RSP + 0x68]
LEA RDX,[RSP + 0x90]
LEA RCX,[RSP + 0x28]
MOV ESI,0x65
XOR R8D,R8D
CALL 0x0012d312
LAB_0012b52f:
LEA RDI,[RSP + 0xc8]
LEA RDX,[RSP + 0x48]
LEA RCX,[RSP + 0x68]
MOV RSI,R15
CALL 0x0012e57e
LEA RAX,[0x1fde48]
LEA RDI,[RSP + 0x78]
MOV qword ptr [RDI + -0x10],RAX
CALL 0x0011ce30
LEA RDI,[RSP + 0x68]
CALL 0x0011c0a0
LEA RAX,[RSP + 0x38]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0012b583
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011c110
LAB_0012b583:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x0012b59a
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011c110
LAB_0012b59a:
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0012b5b5
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x0011c110
LAB_0012b5b5:
CMP byte ptr [RSP + 0xf0],0x1
JNZ 0x0012b5e3
MOV AL,byte ptr [RBX]
MOV byte ptr [RBX],0x9
LEA RDI,[RSP + 0x180]
MOV byte ptr [RDI],AL
MOV RAX,qword ptr [RBX + 0x8]
MOV qword ptr [RBX + 0x8],0x0
MOV qword ptr [RDI + 0x8],RAX
CALL 0x001300e0
LAB_0012b5e3:
MOV RDI,qword ptr [RSP + 0xd0]
TEST RDI,RDI
JZ 0x0012b637
MOV RSI,qword ptr [RSP + 0xe0]
SUB RSI,RDI
CALL 0x0011c110
JMP 0x0012b637
LAB_0012b602:
CMP byte ptr [RBX],0x9
JNZ 0x0012b62a
MOV byte ptr [RBX],0x0
LEA RDI,[RSP + 0x190]
MOV byte ptr [RDI],0x9
LAB_0012b615:
MOV RAX,qword ptr [RBX + 0x8]
MOV qword ptr [RBX + 0x8],0x0
MOV qword ptr [RDI + 0x8],RAX
CALL 0x001300e0
LAB_0012b62a:
LEA RDI,[RSP + 0xc8]
CALL 0x0012d826
LAB_0012b637:
ADD RSP,0x1b0
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* 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::__cxx11::string, 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(bool,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&) */
void __thiscall
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::__cxx11::string,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(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>>>
*this,bool param_1,basic_json *param_2)
{
ulong uVar1;
int8 uVar2;
int iVar3;
basic_json *this_00;
long *local_1d0 [2];
long local_1c0 [2];
long *local_1b0 [2];
long local_1a0 [2];
long *local_190 [2];
long local_180 [2];
int **local_170 [2];
runtime_error local_160 [24];
int4 local_148;
int4 uStack_144;
int4 uStack_140;
int4 uStack_13c;
int8 local_138;
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_130 [16];
code *local_120;
basic_json *local_110;
void *local_108;
int8 uStack_100;
long local_f8;
int8 uStack_f0;
char local_e8;
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_e7;
char local_98;
basic_json local_58 [8];
int8 local_50;
data local_48 [16];
basic_json local_38 [16];
if (*(long *)(this + 0x10) == 0) {
local_e7 = this[0xc0];
local_108 = (void *)0x0;
uStack_100 = 0;
local_f8 = 0;
uStack_f0 = 0;
local_e8 = '\0';
local_110 = param_2;
/* try { // try from 0012b481 to 0012b49d has its CatchHandler @ 0012b757 */
sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
(this,(json_sax_dom_parser *)&local_110);
if (param_1) {
iVar3 = 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>>>
::scan((lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*)(this + 0x28));
*(int *)(this + 0x20) = iVar3;
if (iVar3 != 0xf) {
uVar1 = *(ulong *)(this + 0x48);
/* try { // try from 0012b4af to 0012b4bb has its CatchHandler @ 0012b6ce */
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>>>
::get_token_string();
local_138 = *(int8 *)(this + 0x58);
local_148 = *(int4 *)(this + 0x48);
uStack_144 = *(int4 *)(this + 0x4c);
uStack_140 = *(int4 *)(this + 0x50);
uStack_13c = *(int4 *)(this + 0x54);
/* try { // try from 0012b4e1 to 0012b4f8 has its CatchHandler @ 0012b6a7 */
local_1d0[0] = local_1c0;
std::__cxx11::string::_M_construct<char_const*>(local_1d0,"value","");
/* try { // try from 0012b4f9 to 0012b50f has its CatchHandler @ 0012b68b */
exception_message(local_1b0,this,0xf,local_1d0);
/* try { // try from 0012b510 to 0012b52e has its CatchHandler @ 0012b66b */
_ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(local_170,0x65,&local_148,local_1b0,0);
/* try { // try from 0012b52f to 0012b548 has its CatchHandler @ 0012b647 */
json_sax_dom_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>>
::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>
((json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_110,uVar1,(string *)local_190,(parse_error *)local_170);
local_170[0] = &PTR__exception_001fde48;
std::runtime_error::~runtime_error(local_160);
std::exception::~exception((exception *)local_170);
if (local_1b0[0] != local_1a0) {
operator_delete(local_1b0[0],local_1a0[0] + 1);
}
if (local_1d0[0] != local_1c0) {
operator_delete(local_1d0[0],local_1c0[0] + 1);
}
if (local_190[0] != local_180) {
operator_delete(local_190[0],local_180[0] + 1);
}
}
}
if (local_e8 == '\x01') {
local_58[0] = *param_2;
*param_2 = (basic_json)0x9;
local_50 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = 0;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)local_58);
}
if (local_108 == (void *)0x0) {
return;
}
operator_delete(local_108,local_f8 - (long)local_108);
return;
}
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_130,this);
/* try { // try from 0012b2cd to 0012b2df has its CatchHandler @ 0012b779 */
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::json_sax_dom_callback_parser
((json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_110,param_2,local_130,this[0xc0]);
if (local_120 != (code *)0x0) {
/* try { // try from 0012b2ed to 0012b2fe has its CatchHandler @ 0012b755 */
(*local_120)(local_130,local_130,3);
}
/* try { // try from 0012b2ff to 0012b323 has its CatchHandler @ 0012b7a5 */
sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
(this,(json_sax_dom_callback_parser *)&local_110);
if (param_1) {
iVar3 = 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>>>
::scan((lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*)(this + 0x28));
*(int *)(this + 0x20) = iVar3;
if (iVar3 != 0xf) {
uVar1 = *(ulong *)(this + 0x48);
/* try { // try from 0012b335 to 0012b341 has its CatchHandler @ 0012b753 */
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>>>
::get_token_string();
local_138 = *(int8 *)(this + 0x58);
local_148 = *(int4 *)(this + 0x48);
uStack_144 = *(int4 *)(this + 0x4c);
uStack_140 = *(int4 *)(this + 0x50);
uStack_13c = *(int4 *)(this + 0x54);
/* try { // try from 0012b367 to 0012b37e has its CatchHandler @ 0012b733 */
local_1d0[0] = local_1c0;
std::__cxx11::string::_M_construct<char_const*>(local_1d0,"value","");
/* try { // try from 0012b37f to 0012b395 has its CatchHandler @ 0012b717 */
exception_message(local_1b0,this,0xf,local_1d0);
/* try { // try from 0012b396 to 0012b3b4 has its CatchHandler @ 0012b6f7 */
_ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(local_170,0x65,&local_148,local_1b0,0);
/* try { // try from 0012b3b5 to 0012b3ce has its CatchHandler @ 0012b6d3 */
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>
((json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_110,uVar1,(string *)local_190,(parse_error *)local_170);
local_170[0] = &PTR__exception_001fde48;
std::runtime_error::~runtime_error(local_160);
std::exception::~exception((exception *)local_170);
if (local_1b0[0] != local_1a0) {
operator_delete(local_1b0[0],local_1a0[0] + 1);
}
if (local_1d0[0] != local_1c0) {
operator_delete(local_1d0[0],local_1c0[0] + 1);
}
if (local_190[0] != local_180) {
operator_delete(local_190[0],local_180[0] + 1);
}
}
}
if (local_98 == '\0') {
if (*param_2 != (basic_json)0x9) goto LAB_0012b62a;
*param_2 = (basic_json)0x0;
this_00 = (basic_json *)local_48;
local_48[0] = (data)0x9;
}
else {
local_38[0] = *param_2;
*param_2 = (basic_json)0x9;
this_00 = local_38;
}
uVar2 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = 0;
*(int8 *)((data *)this_00 + 8) = uVar2;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)this_00);
LAB_0012b62a:
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::~json_sax_dom_callback_parser
((json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_110);
return;
}
| |
35,135 | nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&) | monkey531[P]llama/common/json.hpp | iterator insert_iterator(const_iterator pos, Args&& ... args)
{
iterator result(this);
JSON_ASSERT(m_data.m_value.array != nullptr);
auto insert_pos = std::distance(m_data.m_value.array->begin(), pos.m_it.array_iterator);
m_data.m_value.array->insert(pos.m_it.array_iterator, std::forward<Args>(args)...);
result.m_it.array_iterator = m_data.m_value.array->begin() + insert_pos;
// This could have been written as:
// result.m_it.array_iterator = m_data.m_value.array->insert(pos.m_it.array_iterator, cnt, val);
// but the return value of insert is missing in GCC 4.8, so it is written this way instead.
set_parents();
return result;
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&):
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq %rsi, (%rdi)
movq $0x0, 0x8(%rdi)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, 0x18(%rdi)
movq 0x8(%rsi), %rdi
testq %rdi, %rdi
je 0xceff9
movq %rsi, %r14
movq 0x10(%rdx), %rsi
movq %rsi, %r15
subq (%rdi), %r15
movq %rcx, %rdx
callq 0xcf0a2
movq 0x8(%r14), %rax
addq (%rax), %r15
movq %r15, 0x10(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x4339c(%rip), %rdi # 0x11239c
leaq 0x3ba6c(%rip), %rdx # 0x10aa73
leaq 0x43451(%rip), %rcx # 0x11245f
movl $0x582c, %esi # imm = 0x582C
xorl %eax, %eax
callq 0x1e500
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE15insert_iteratorIJRKSD_EEENS0_6detail9iter_implISD_EENSI_ISF_EEDpOT_:
push r15
push r14
push rbx
mov rbx, rdi
mov [rdi], rsi
mov qword ptr [rdi+8], 0
mov rax, 8000000000000000h
mov [rdi+18h], rax
mov rdi, [rsi+8]
test rdi, rdi
jz short loc_CEFF9
mov r14, rsi
mov rsi, [rdx+10h]
mov r15, rsi
sub r15, [rdi]
mov rdx, rcx
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE6insertEN9__gnu_cxx17__normal_iteratorIPKSD_SF_EERSI_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::insert(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov rax, [r14+8]
add r15, [rax]
mov [rbx+10h], r15
mov rax, rbx
pop rbx
pop r14
pop r15
retn
loc_CEFF9:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aMDataMTypeValu_0+23h; "m_data.m_value.array != nullptr"
mov esi, 582Ch
xor eax, eax
call _ggml_abort
| 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>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const&>(
_QWORD *a1,
long long a2,
long long a3,
long long a4)
{
_QWORD *v5; // rdi
long long v6; // r15
*a1 = a2;
a1[1] = 0LL;
a1[3] = 0x8000000000000000LL;
v5 = *(_QWORD **)(a2 + 8);
if ( v5 )
{
v6 = *(_QWORD *)(a3 + 16) - *v5;
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::insert(
v5,
*(_QWORD *)(a3 + 16),
a4);
a1[2] = **(_QWORD **)(a2 + 8) + v6;
return (long long)a1;
}
else
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
22572LL,
"GGML_ASSERT(%s) failed",
"m_data.m_value.array != nullptr");
return nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[26],char const*>(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
22572LL);
}
}
| insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const&>:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RDI
MOV qword ptr [RDI],RSI
MOV qword ptr [RDI + 0x8],0x0
MOV RAX,-0x8000000000000000
MOV qword ptr [RDI + 0x18],RAX
MOV RDI,qword ptr [RSI + 0x8]
TEST RDI,RDI
JZ 0x001ceff9
MOV R14,RSI
MOV RSI,qword ptr [RDX + 0x10]
MOV R15,RSI
SUB R15,qword ptr [RDI]
MOV RDX,RCX
CALL 0x001cf0a2
MOV RAX,qword ptr [R14 + 0x8]
ADD R15,qword ptr [RAX]
MOV qword ptr [RBX + 0x10],R15
MOV RAX,RBX
POP RBX
POP R14
POP R15
RET
LAB_001ceff9:
LEA RDI,[0x21239c]
LEA RDX,[0x20aa73]
LEA RCX,[0x21245f]
MOV ESI,0x582c
XOR EAX,EAX
CALL 0x0011e500
|
/* nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> > nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >,
void>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>
const&>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const>,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const&) */
long * nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::
insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const&>
(long *param_1,long param_2,long param_3,int8 param_4)
{
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*pvVar1;
long lVar2;
long lVar3;
*param_1 = param_2;
param_1[1] = 0;
param_1[3] = -0x8000000000000000;
pvVar1 = *(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(param_2 + 8);
if (pvVar1 != (vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)0x0) {
lVar2 = *(long *)(param_3 + 0x10);
lVar3 = *(long *)pvVar1;
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::insert(pvVar1,lVar2,param_4);
param_1[2] = (lVar2 - lVar3) + **(long **)(param_2 + 8);
return param_1;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x582c,
"GGML_ASSERT(%s) failed","m_data.m_value.array != nullptr");
}
| |
35,136 | ToggleFullscreen | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/platforms/rcore_desktop_glfw.c | void ToggleFullscreen(void)
{
if (!CORE.Window.fullscreen)
{
// Store previous window position (in case we exit fullscreen)
CORE.Window.previousPosition = CORE.Window.position;
int monitorCount = 0;
int monitorIndex = GetCurrentMonitor();
GLFWmonitor **monitors = glfwGetMonitors(&monitorCount);
// Use current monitor, so we correctly get the display the window is on
GLFWmonitor *monitor = (monitorIndex < monitorCount)? monitors[monitorIndex] : NULL;
if (monitor == NULL)
{
TRACELOG(LOG_WARNING, "GLFW: Failed to get monitor");
CORE.Window.fullscreen = false;
CORE.Window.flags &= ~FLAG_FULLSCREEN_MODE;
glfwSetWindowMonitor(platform.handle, NULL, 0, 0, CORE.Window.screen.width, CORE.Window.screen.height, GLFW_DONT_CARE);
}
else
{
CORE.Window.fullscreen = true;
CORE.Window.flags |= FLAG_FULLSCREEN_MODE;
glfwSetWindowMonitor(platform.handle, monitor, 0, 0, CORE.Window.screen.width, CORE.Window.screen.height, GLFW_DONT_CARE);
}
}
else
{
CORE.Window.fullscreen = false;
CORE.Window.flags &= ~FLAG_FULLSCREEN_MODE;
glfwSetWindowMonitor(platform.handle, NULL, CORE.Window.previousPosition.x, CORE.Window.previousPosition.y, CORE.Window.screen.width, CORE.Window.screen.height, GLFW_DONT_CARE);
// we update the window position right away
CORE.Window.position.x = CORE.Window.previousPosition.x;
CORE.Window.position.y = CORE.Window.previousPosition.y;
}
// Try to enable GPU V-Sync, so frames are limited to screen refresh rate (60Hz -> 60 FPS)
// NOTE: V-Sync can be enabled by graphic driver configuration
if (CORE.Window.flags & FLAG_VSYNC_HINT) glfwSwapInterval(1);
} | O0 | c | ToggleFullscreen:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
testb $0x1, 0x151ffe(%rip) # 0x21ac8d
jne 0xc8d85
movq 0x151ff8(%rip), %rax # 0x21ac94
movq %rax, 0x151ff9(%rip) # 0x21ac9c
movl $0x0, -0x4(%rbp)
callq 0xc8e10
movl %eax, -0x8(%rbp)
leaq -0x4(%rbp), %rdi
callq 0x18ab10
movq %rax, -0x10(%rbp)
movl -0x8(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0xc8cd9
movq -0x10(%rbp), %rax
movslq -0x8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
jmp 0xc8ce1
xorl %eax, %eax
movq %rax, -0x20(%rbp)
jmp 0xc8ce1
movq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0xc8d44
movl $0x4, %edi
leaq 0xec615(%rip), %rsi # 0x1b5311
movb $0x0, %al
callq 0x182c40
movb $0x0, 0x151f83(%rip) # 0x21ac8d
movl 0x151f78(%rip), %eax # 0x21ac88
andl $-0x3, %eax
movl %eax, 0x151f6f(%rip) # 0x21ac88
movq 0x152a48(%rip), %rdi # 0x21b768
movl 0x151f85(%rip), %r8d # 0x21acac
movl 0x151f82(%rip), %r9d # 0x21acb0
xorl %eax, %eax
movl %eax, %esi
xorl %ecx, %ecx
movl %ecx, %edx
movl $0xffffffff, (%rsp) # imm = 0xFFFFFFFF
callq 0x18f240
jmp 0xc8d83
movb $0x1, 0x151f42(%rip) # 0x21ac8d
movl 0x151f37(%rip), %eax # 0x21ac88
orl $0x2, %eax
movl %eax, 0x151f2e(%rip) # 0x21ac88
movq 0x152a07(%rip), %rdi # 0x21b768
movq -0x18(%rbp), %rsi
movl 0x151f40(%rip), %r8d # 0x21acac
movl 0x151f3d(%rip), %r9d # 0x21acb0
xorl %ecx, %ecx
movl %ecx, %edx
movl $0xffffffff, (%rsp) # imm = 0xFFFFFFFF
callq 0x18f240
jmp 0xc8de4
movb $0x0, 0x151f01(%rip) # 0x21ac8d
movl 0x151ef6(%rip), %eax # 0x21ac88
andl $-0x3, %eax
movl %eax, 0x151eed(%rip) # 0x21ac88
movq 0x1529c6(%rip), %rdi # 0x21b768
movl 0x151ef4(%rip), %edx # 0x21ac9c
movl 0x151ef2(%rip), %ecx # 0x21aca0
movl 0x151ef7(%rip), %r8d # 0x21acac
movl 0x151ef4(%rip), %r9d # 0x21acb0
xorl %eax, %eax
movl %eax, %esi
movl $0xffffffff, (%rsp) # imm = 0xFFFFFFFF
callq 0x18f240
movl 0x151eca(%rip), %eax # 0x21ac9c
movl %eax, 0x151ebc(%rip) # 0x21ac94
movl 0x151ec2(%rip), %eax # 0x21aca0
movl %eax, 0x151eb4(%rip) # 0x21ac98
movl 0x151e9e(%rip), %eax # 0x21ac88
andl $0x40, %eax
cmpl $0x0, %eax
je 0xc8dfc
movl $0x1, %edi
callq 0x184ba0
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ToggleFullscreen:
push rbp
mov rbp, rsp
sub rsp, 30h
test cs:byte_21AC8D, 1
jnz loc_C8D85
mov rax, cs:qword_21AC94
mov cs:qword_21AC9C, rax
mov [rbp+var_4], 0
call GetCurrentMonitor
mov [rbp+var_8], eax
lea rdi, [rbp+var_4]
call glfwGetMonitors
mov [rbp+var_10], rax
mov eax, [rbp+var_8]
cmp eax, [rbp+var_4]
jge short loc_C8CD9
mov rax, [rbp+var_10]
movsxd rcx, [rbp+var_8]
mov rax, [rax+rcx*8]
mov [rbp+var_20], rax
jmp short loc_C8CE1
loc_C8CD9:
xor eax, eax
mov [rbp+var_20], rax
jmp short $+2
loc_C8CE1:
mov rax, [rbp+var_20]
mov [rbp+var_18], rax
cmp [rbp+var_18], 0
jnz short loc_C8D44
mov edi, 4
lea rsi, aGlfwFailedToGe; "GLFW: Failed to get monitor"
mov al, 0
call TraceLog
mov cs:byte_21AC8D, 0
mov eax, cs:dword_21AC88
and eax, 0FFFFFFFDh
mov cs:dword_21AC88, eax
mov rdi, cs:platform
mov r8d, dword ptr cs:qword_21ACAC
mov r9d, dword ptr cs:qword_21ACAC+4
xor eax, eax
mov esi, eax
xor ecx, ecx
mov edx, ecx
mov [rsp+30h+var_30], 0FFFFFFFFh
call glfwSetWindowMonitor
jmp short loc_C8D83
loc_C8D44:
mov cs:byte_21AC8D, 1
mov eax, cs:dword_21AC88
or eax, 2
mov cs:dword_21AC88, eax
mov rdi, cs:platform
mov rsi, [rbp+var_18]
mov r8d, dword ptr cs:qword_21ACAC
mov r9d, dword ptr cs:qword_21ACAC+4
xor ecx, ecx
mov edx, ecx
mov [rsp+30h+var_30], 0FFFFFFFFh
call glfwSetWindowMonitor
loc_C8D83:
jmp short loc_C8DE4
loc_C8D85:
mov cs:byte_21AC8D, 0
mov eax, cs:dword_21AC88
and eax, 0FFFFFFFDh
mov cs:dword_21AC88, eax
mov rdi, cs:platform
mov edx, dword ptr cs:qword_21AC9C
mov ecx, dword ptr cs:qword_21AC9C+4
mov r8d, dword ptr cs:qword_21ACAC
mov r9d, dword ptr cs:qword_21ACAC+4
xor eax, eax
mov esi, eax
mov [rsp+30h+var_30], 0FFFFFFFFh
call glfwSetWindowMonitor
mov eax, dword ptr cs:qword_21AC9C
mov dword ptr cs:qword_21AC94, eax
mov eax, dword ptr cs:qword_21AC9C+4
mov dword ptr cs:qword_21AC94+4, eax
loc_C8DE4:
mov eax, cs:dword_21AC88
and eax, 40h
cmp eax, 0
jz short loc_C8DFC
mov edi, 1
call glfwSwapInterval
loc_C8DFC:
add rsp, 30h
pop rbp
retn
| long long ToggleFullscreen()
{
int v0; // edx
int v1; // ecx
int v2; // r8d
int v3; // r9d
long long result; // rax
long long v5; // [rsp+10h] [rbp-20h]
long long Monitors; // [rsp+20h] [rbp-10h]
int CurrentMonitor; // [rsp+28h] [rbp-8h]
int v8; // [rsp+2Ch] [rbp-4h] BYREF
if ( (byte_21AC8D & 1) != 0 )
{
byte_21AC8D = 0;
dword_21AC88 &= ~2u;
glfwSetWindowMonitor(platform, 0, qword_21AC9C, HIDWORD(qword_21AC9C), qword_21ACAC, HIDWORD(qword_21ACAC), -1);
qword_21AC94 = qword_21AC9C;
}
else
{
qword_21AC9C = qword_21AC94;
v8 = 0;
CurrentMonitor = GetCurrentMonitor();
Monitors = glfwGetMonitors(&v8);
if ( CurrentMonitor >= v8 )
{
v5 = 0LL;
}
else
{
v1 = CurrentMonitor;
v5 = *(_QWORD *)(Monitors + 8LL * CurrentMonitor);
}
if ( v5 )
{
byte_21AC8D = 1;
dword_21AC88 |= 2u;
glfwSetWindowMonitor(platform, v5, 0, 0, qword_21ACAC, HIDWORD(qword_21ACAC), -1);
}
else
{
TraceLog(4, (unsigned int)"GLFW: Failed to get monitor", v0, v1, v2, v3);
byte_21AC8D = 0;
dword_21AC88 &= ~2u;
glfwSetWindowMonitor(platform, 0, 0, 0, qword_21ACAC, HIDWORD(qword_21ACAC), -1);
}
}
result = dword_21AC88 & 0x40;
if ( (dword_21AC88 & 0x40) != 0 )
return glfwSwapInterval(1LL);
return result;
}
| ToggleFullscreen:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
TEST byte ptr [0x0031ac8d],0x1
JNZ 0x001c8d85
MOV RAX,qword ptr [0x0031ac94]
MOV qword ptr [0x0031ac9c],RAX
MOV dword ptr [RBP + -0x4],0x0
CALL 0x001c8e10
MOV dword ptr [RBP + -0x8],EAX
LEA RDI,[RBP + -0x4]
CALL 0x0028ab10
MOV qword ptr [RBP + -0x10],RAX
MOV EAX,dword ptr [RBP + -0x8]
CMP EAX,dword ptr [RBP + -0x4]
JGE 0x001c8cd9
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,dword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001c8ce1
LAB_001c8cd9:
XOR EAX,EAX
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001c8ce1
LAB_001c8ce1:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0x0
JNZ 0x001c8d44
MOV EDI,0x4
LEA RSI,[0x2b5311]
MOV AL,0x0
CALL 0x00282c40
MOV byte ptr [0x0031ac8d],0x0
MOV EAX,dword ptr [0x0031ac88]
AND EAX,0xfffffffd
MOV dword ptr [0x0031ac88],EAX
MOV RDI,qword ptr [0x0031b768]
MOV R8D,dword ptr [0x0031acac]
MOV R9D,dword ptr [0x0031acb0]
XOR EAX,EAX
MOV ESI,EAX
XOR ECX,ECX
MOV EDX,ECX
MOV dword ptr [RSP],0xffffffff
CALL 0x0028f240
JMP 0x001c8d83
LAB_001c8d44:
MOV byte ptr [0x0031ac8d],0x1
MOV EAX,dword ptr [0x0031ac88]
OR EAX,0x2
MOV dword ptr [0x0031ac88],EAX
MOV RDI,qword ptr [0x0031b768]
MOV RSI,qword ptr [RBP + -0x18]
MOV R8D,dword ptr [0x0031acac]
MOV R9D,dword ptr [0x0031acb0]
XOR ECX,ECX
MOV EDX,ECX
MOV dword ptr [RSP],0xffffffff
CALL 0x0028f240
LAB_001c8d83:
JMP 0x001c8de4
LAB_001c8d85:
MOV byte ptr [0x0031ac8d],0x0
MOV EAX,dword ptr [0x0031ac88]
AND EAX,0xfffffffd
MOV dword ptr [0x0031ac88],EAX
MOV RDI,qword ptr [0x0031b768]
MOV EDX,dword ptr [0x0031ac9c]
MOV ECX,dword ptr [0x0031aca0]
MOV R8D,dword ptr [0x0031acac]
MOV R9D,dword ptr [0x0031acb0]
XOR EAX,EAX
MOV ESI,EAX
MOV dword ptr [RSP],0xffffffff
CALL 0x0028f240
MOV EAX,dword ptr [0x0031ac9c]
MOV dword ptr [0x0031ac94],EAX
MOV EAX,dword ptr [0x0031aca0]
MOV dword ptr [0x0031ac98],EAX
LAB_001c8de4:
MOV EAX,dword ptr [0x0031ac88]
AND EAX,0x40
CMP EAX,0x0
JZ 0x001c8dfc
MOV EDI,0x1
CALL 0x00284ba0
LAB_001c8dfc:
ADD RSP,0x30
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void ToggleFullscreen(void)
{
int iVar1;
long lVar2;
long local_28;
int local_c;
if ((DAT_0031ac8d & 1) == 0) {
_DAT_0031ac9c = CONCAT44(DAT_0031ac94._4_4_,(int4)DAT_0031ac94);
local_c = 0;
iVar1 = GetCurrentMonitor();
lVar2 = glfwGetMonitors(&local_c);
if (iVar1 < local_c) {
local_28 = *(long *)(lVar2 + (long)iVar1 * 8);
}
else {
local_28 = 0;
}
if (local_28 == 0) {
TraceLog(4,"GLFW: Failed to get monitor");
DAT_0031ac8d = 0;
DAT_0031ac88 = DAT_0031ac88 & 0xfffffffd;
glfwSetWindowMonitor(platform,0,0,0,DAT_0031acac,DAT_0031acb0,0xffffffff);
}
else {
DAT_0031ac8d = 1;
DAT_0031ac88 = DAT_0031ac88 | 2;
glfwSetWindowMonitor(platform,local_28,0,0,DAT_0031acac,DAT_0031acb0,0xffffffff);
}
}
else {
DAT_0031ac8d = 0;
DAT_0031ac88 = DAT_0031ac88 & 0xfffffffd;
glfwSetWindowMonitor
(platform,0,_DAT_0031ac9c & 0xffffffff,DAT_0031aca0,DAT_0031acac,DAT_0031acb0,
0xffffffff);
DAT_0031ac94._0_4_ = DAT_0031ac9c;
DAT_0031ac94._4_4_ = DAT_0031aca0;
}
if ((DAT_0031ac88 & 0x40) != 0) {
glfwSwapInterval(1);
}
return;
}
| |
35,137 | ToggleFullscreen | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/platforms/rcore_desktop_glfw.c | void ToggleFullscreen(void)
{
if (!CORE.Window.fullscreen)
{
// Store previous window position (in case we exit fullscreen)
CORE.Window.previousPosition = CORE.Window.position;
int monitorCount = 0;
int monitorIndex = GetCurrentMonitor();
GLFWmonitor **monitors = glfwGetMonitors(&monitorCount);
// Use current monitor, so we correctly get the display the window is on
GLFWmonitor *monitor = (monitorIndex < monitorCount)? monitors[monitorIndex] : NULL;
if (monitor == NULL)
{
TRACELOG(LOG_WARNING, "GLFW: Failed to get monitor");
CORE.Window.fullscreen = false;
CORE.Window.flags &= ~FLAG_FULLSCREEN_MODE;
glfwSetWindowMonitor(platform.handle, NULL, 0, 0, CORE.Window.screen.width, CORE.Window.screen.height, GLFW_DONT_CARE);
}
else
{
CORE.Window.fullscreen = true;
CORE.Window.flags |= FLAG_FULLSCREEN_MODE;
glfwSetWindowMonitor(platform.handle, monitor, 0, 0, CORE.Window.screen.width, CORE.Window.screen.height, GLFW_DONT_CARE);
}
}
else
{
CORE.Window.fullscreen = false;
CORE.Window.flags &= ~FLAG_FULLSCREEN_MODE;
glfwSetWindowMonitor(platform.handle, NULL, CORE.Window.previousPosition.x, CORE.Window.previousPosition.y, CORE.Window.screen.width, CORE.Window.screen.height, GLFW_DONT_CARE);
// we update the window position right away
CORE.Window.position.x = CORE.Window.previousPosition.x;
CORE.Window.position.y = CORE.Window.previousPosition.y;
}
// Try to enable GPU V-Sync, so frames are limited to screen refresh rate (60Hz -> 60 FPS)
// NOTE: V-Sync can be enabled by graphic driver configuration
if (CORE.Window.flags & FLAG_VSYNC_HINT) glfwSwapInterval(1);
} | O2 | c | ToggleFullscreen:
pushq %r14
pushq %rbx
subq $0x18, %rsp
cmpb $0x0, 0xc9c71(%rip) # 0x127bed
je 0x5dfcb
movb $0x0, 0xc9c68(%rip) # 0x127bed
andb $-0x3, 0xc9c5c(%rip) # 0x127be8
movq 0xca735(%rip), %rdi # 0x1286c8
movl 0xc9c63(%rip), %edx # 0x127bfc
movl 0xc9c61(%rip), %ecx # 0x127c00
movl 0xc9c66(%rip), %r8d # 0x127c0c
movl 0xc9c63(%rip), %r9d # 0x127c10
orl $-0x1, (%rsp)
xorl %esi, %esi
callq 0xa879e
movq 0xc9c3d(%rip), %rax # 0x127bfc
movq %rax, 0xc9c2e(%rip) # 0x127bf4
jmp 0x5e06e
movq 0xc9c22(%rip), %rax # 0x127bf4
movq %rax, 0xc9c23(%rip) # 0x127bfc
leaq 0x14(%rsp), %r14
andl $0x0, (%r14)
callq 0x5e087
movl %eax, %ebx
movq %r14, %rdi
callq 0xa6017
cmpl (%r14), %ebx
jge 0x5e02b
movslq %ebx, %rcx
movq (%rax,%rcx,8), %rsi
testq %rsi, %rsi
je 0x5e02b
movb $0x1, 0xc9be4(%rip) # 0x127bed
orb $0x2, 0xc9bd8(%rip) # 0x127be8
movq 0xca6b1(%rip), %rdi # 0x1286c8
movl 0xc9bee(%rip), %r8d # 0x127c0c
movl 0xc9beb(%rip), %r9d # 0x127c10
orl $-0x1, (%rsp)
jmp 0x5e065
leaq 0x67a07(%rip), %rsi # 0xc5a39
pushq $0x4
popq %rdi
xorl %eax, %eax
callq 0xa128b
movb $0x0, 0xc9baa(%rip) # 0x127bed
andb $-0x3, 0xc9b9e(%rip) # 0x127be8
movq 0xca677(%rip), %rdi # 0x1286c8
movl 0xc9bb4(%rip), %r8d # 0x127c0c
movl 0xc9bb1(%rip), %r9d # 0x127c10
orl $-0x1, (%rsp)
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xa879e
testb $0x40, 0xc9b73(%rip) # 0x127be8
je 0x5e07f
pushq $0x1
popq %rdi
callq 0xa2554
addq $0x18, %rsp
popq %rbx
popq %r14
retq
| ToggleFullscreen:
push r14
push rbx
sub rsp, 18h
cmp cs:byte_127BED, 0
jz short loc_5DFCB
mov cs:byte_127BED, 0
and byte ptr cs:dword_127BE8, 0FDh
mov rdi, cs:platform_0
mov edx, dword ptr cs:qword_127BFC
mov ecx, dword ptr cs:qword_127BFC+4
mov r8d, dword ptr cs:qword_127C0C
mov r9d, dword ptr cs:qword_127C0C+4
or [rsp+28h+var_28], 0FFFFFFFFh
xor esi, esi
call glfwSetWindowMonitor
mov rax, cs:qword_127BFC
mov cs:qword_127BF4, rax
jmp loc_5E06E
loc_5DFCB:
mov rax, cs:qword_127BF4
mov cs:qword_127BFC, rax
lea r14, [rsp+28h+var_14]
and dword ptr [r14], 0
call GetCurrentMonitor
mov ebx, eax
mov rdi, r14
call glfwGetMonitors
cmp ebx, [r14]
jge short loc_5E02B
movsxd rcx, ebx
mov rsi, [rax+rcx*8]
test rsi, rsi
jz short loc_5E02B
mov cs:byte_127BED, 1
or byte ptr cs:dword_127BE8, 2
mov rdi, cs:platform_0
mov r8d, dword ptr cs:qword_127C0C
mov r9d, dword ptr cs:qword_127C0C+4
or [rsp+28h+var_28], 0FFFFFFFFh
jmp short loc_5E065
loc_5E02B:
lea rsi, aGlfwFailedToGe; "GLFW: Failed to get monitor"
push 4
pop rdi
xor eax, eax
call TraceLog
mov cs:byte_127BED, 0
and byte ptr cs:dword_127BE8, 0FDh
mov rdi, cs:platform_0
mov r8d, dword ptr cs:qword_127C0C
mov r9d, dword ptr cs:qword_127C0C+4
or [rsp+28h+var_28], 0FFFFFFFFh
xor esi, esi
loc_5E065:
xor edx, edx
xor ecx, ecx
call glfwSetWindowMonitor
loc_5E06E:
test byte ptr cs:dword_127BE8, 40h
jz short loc_5E07F
push 1
pop rdi
call glfwSwapInterval
loc_5E07F:
add rsp, 18h
pop rbx
pop r14
retn
| long long ToggleFullscreen()
{
long long result; // rax
int CurrentMonitor; // ebx
long long Monitors; // rax
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
long long v7; // rsi
_DWORD v8[5]; // [rsp+14h] [rbp-14h] BYREF
if ( byte_127BED )
{
byte_127BED = 0;
LOBYTE(dword_127BE8) = dword_127BE8 & 0xFD;
glfwSetWindowMonitor(platform_0, 0, qword_127BFC, HIDWORD(qword_127BFC), qword_127C0C, HIDWORD(qword_127C0C), -1);
result = qword_127BFC;
qword_127BF4 = qword_127BFC;
}
else
{
qword_127BFC = qword_127BF4;
v8[0] = 0;
CurrentMonitor = GetCurrentMonitor();
Monitors = glfwGetMonitors(v8);
if ( CurrentMonitor < v8[0] && (v4 = CurrentMonitor, (v7 = *(_QWORD *)(Monitors + 8LL * CurrentMonitor)) != 0) )
{
byte_127BED = 1;
LOBYTE(dword_127BE8) = dword_127BE8 | 2;
result = glfwSetWindowMonitor(platform_0, v7, 0, 0, qword_127C0C, HIDWORD(qword_127C0C), -1);
}
else
{
TraceLog(4, (unsigned int)"GLFW: Failed to get monitor", v3, v4, v5, v6);
byte_127BED = 0;
LOBYTE(dword_127BE8) = dword_127BE8 & 0xFD;
result = glfwSetWindowMonitor(platform_0, 0, 0, 0, qword_127C0C, HIDWORD(qword_127C0C), -1);
}
}
if ( (dword_127BE8 & 0x40) != 0 )
return glfwSwapInterval(1LL);
return result;
}
| ToggleFullscreen:
PUSH R14
PUSH RBX
SUB RSP,0x18
CMP byte ptr [0x00227bed],0x0
JZ 0x0015dfcb
MOV byte ptr [0x00227bed],0x0
AND byte ptr [0x00227be8],0xfd
MOV RDI,qword ptr [0x002286c8]
MOV EDX,dword ptr [0x00227bfc]
MOV ECX,dword ptr [0x00227c00]
MOV R8D,dword ptr [0x00227c0c]
MOV R9D,dword ptr [0x00227c10]
OR dword ptr [RSP],0xffffffff
XOR ESI,ESI
CALL 0x001a879e
MOV RAX,qword ptr [0x00227bfc]
MOV qword ptr [0x00227bf4],RAX
JMP 0x0015e06e
LAB_0015dfcb:
MOV RAX,qword ptr [0x00227bf4]
MOV qword ptr [0x00227bfc],RAX
LEA R14,[RSP + 0x14]
AND dword ptr [R14],0x0
CALL 0x0015e087
MOV EBX,EAX
MOV RDI,R14
CALL 0x001a6017
CMP EBX,dword ptr [R14]
JGE 0x0015e02b
MOVSXD RCX,EBX
MOV RSI,qword ptr [RAX + RCX*0x8]
TEST RSI,RSI
JZ 0x0015e02b
MOV byte ptr [0x00227bed],0x1
OR byte ptr [0x00227be8],0x2
MOV RDI,qword ptr [0x002286c8]
MOV R8D,dword ptr [0x00227c0c]
MOV R9D,dword ptr [0x00227c10]
OR dword ptr [RSP],0xffffffff
JMP 0x0015e065
LAB_0015e02b:
LEA RSI,[0x1c5a39]
PUSH 0x4
POP RDI
XOR EAX,EAX
CALL 0x001a128b
MOV byte ptr [0x00227bed],0x0
AND byte ptr [0x00227be8],0xfd
MOV RDI,qword ptr [0x002286c8]
MOV R8D,dword ptr [0x00227c0c]
MOV R9D,dword ptr [0x00227c10]
OR dword ptr [RSP],0xffffffff
XOR ESI,ESI
LAB_0015e065:
XOR EDX,EDX
XOR ECX,ECX
CALL 0x001a879e
LAB_0015e06e:
TEST byte ptr [0x00227be8],0x40
JZ 0x0015e07f
PUSH 0x1
POP RDI
CALL 0x001a2554
LAB_0015e07f:
ADD RSP,0x18
POP RBX
POP R14
RET
|
void ToggleFullscreen(void)
{
int iVar1;
long lVar2;
int local_14;
if (DAT_00227bed == '\0') {
DAT_00227bfc = DAT_00227bf4;
local_14 = 0;
iVar1 = GetCurrentMonitor();
lVar2 = glfwGetMonitors(&local_14);
if ((iVar1 < local_14) && (lVar2 = *(long *)(lVar2 + (long)iVar1 * 8), lVar2 != 0)) {
DAT_00227bed = 1;
DAT_00227be8 = DAT_00227be8 | 2;
}
else {
TraceLog(4,"GLFW: Failed to get monitor");
DAT_00227bed = 0;
DAT_00227be8 = DAT_00227be8 & 0xfd;
lVar2 = 0;
}
glfwSetWindowMonitor(platform_0,lVar2,0,0,DAT_00227c0c,DAT_00227c10,0xffffffff);
}
else {
DAT_00227bed = 0;
DAT_00227be8 = DAT_00227be8 & 0xfd;
glfwSetWindowMonitor
(platform_0,0,DAT_00227bfc & 0xffffffff,DAT_00227bfc._4_4_,DAT_00227c0c,DAT_00227c10,
0xffffffff);
DAT_00227bf4 = DAT_00227bfc;
}
if ((DAT_00227be8 & 0x40) != 0) {
glfwSwapInterval(1);
}
return;
}
| |
35,138 | my_hash_sort_bin | eloqsql/strings/ctype-bin.c | void my_hash_sort_bin(CHARSET_INFO *cs __attribute__((unused)),
const uchar *key, size_t len,ulong *nr1, ulong *nr2)
{
const uchar *end = key + len;
ulong tmp1= *nr1;
ulong tmp2= *nr2;
for (; key < end ; key++)
{
MY_HASH_ADD(tmp1, tmp2, (uint) *key);
}
*nr1= tmp1;
*nr2= tmp2;
} | O0 | c | my_hash_sort_bin:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x456fe
jmp 0x456b6
movq -0x38(%rbp), %rax
andq $0x3f, %rax
addq -0x40(%rbp), %rax
movq -0x10(%rbp), %rcx
movzbl (%rcx), %ecx
movl %ecx, %ecx
imulq %rcx, %rax
movq -0x38(%rbp), %rcx
shlq $0x8, %rcx
addq %rcx, %rax
xorq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x40(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x40(%rbp)
jmp 0x456f0
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x456aa
movq -0x38(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_hash_sort_bin:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_30], rax
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rbp+var_38], rax
mov rax, [rbp+var_28]
mov rax, [rax]
mov [rbp+var_40], rax
loc_456AA:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_30]
jnb short loc_456FE
jmp short $+2
loc_456B6:
mov rax, [rbp+var_38]
and rax, 3Fh
add rax, [rbp+var_40]
mov rcx, [rbp+var_10]
movzx ecx, byte ptr [rcx]
mov ecx, ecx
imul rax, rcx
mov rcx, [rbp+var_38]
shl rcx, 8
add rax, rcx
xor rax, [rbp+var_38]
mov [rbp+var_38], rax
mov rax, [rbp+var_40]
add rax, 3
mov [rbp+var_40], rax
jmp short $+2
loc_456F0:
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
jmp short loc_456AA
loc_456FE:
mov rcx, [rbp+var_38]
mov rax, [rbp+var_20]
mov [rax], rcx
mov rcx, [rbp+var_40]
mov rax, [rbp+var_28]
mov [rax], rcx
pop rbp
retn
| _QWORD * my_hash_sort_bin(long long a1, unsigned __int8 *a2, long long a3, long long *a4, _QWORD *a5)
{
_QWORD *result; // rax
long long v6; // [rsp+0h] [rbp-40h]
long long v7; // [rsp+8h] [rbp-38h]
unsigned __int8 *v8; // [rsp+30h] [rbp-10h]
v8 = a2;
v7 = *a4;
v6 = *a5;
while ( v8 < &a2[a3] )
{
v7 ^= (v7 << 8) + *v8 * (v6 + (v7 & 0x3F));
v6 += 3LL;
++v8;
}
*a4 = v7;
result = a5;
*a5 = v6;
return result;
}
| my_hash_sort_bin:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x40],RAX
LAB_001456aa:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x001456fe
JMP 0x001456b6
LAB_001456b6:
MOV RAX,qword ptr [RBP + -0x38]
AND RAX,0x3f
ADD RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,byte ptr [RCX]
MOV ECX,ECX
IMUL RAX,RCX
MOV RCX,qword ptr [RBP + -0x38]
SHL RCX,0x8
ADD RAX,RCX
XOR RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,0x3
MOV qword ptr [RBP + -0x40],RAX
JMP 0x001456f0
LAB_001456f0:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001456aa
LAB_001456fe:
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
POP RBP
RET
|
void my_hash_sort_bin(int8 param_1,byte *param_2,long param_3,ulong *param_4,long *param_5)
{
long local_48;
ulong local_40;
byte *local_18;
local_40 = *param_4;
local_48 = *param_5;
for (local_18 = param_2; local_18 < param_2 + param_3; local_18 = local_18 + 1) {
local_40 = ((local_40 & 0x3f) + local_48) * (ulong)*local_18 + local_40 * 0x100 ^ local_40;
local_48 = local_48 + 3;
}
*param_4 = local_40;
*param_5 = local_48;
return;
}
| |
35,139 | thr_lock_data_init | eloqsql/mysys/thr_lock.c | void thr_lock_data_init(THR_LOCK *lock,THR_LOCK_DATA *data, void *param)
{
data->lock=lock;
data->type=TL_UNLOCK;
data->owner= 0; /* no owner yet */
data->status_param=param;
data->cond=0;
data->priority= 0;
data->debug_print_param= 0;
} | O0 | c | thr_lock_data_init:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x40(%rax)
movq -0x10(%rbp), %rax
movq $0x0, (%rax)
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x20(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x48(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x30(%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)
| thr_lock_data_init:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rcx, [rbp+var_8]
mov rax, [rbp+var_10]
mov [rax+18h], rcx
mov rax, [rbp+var_10]
mov dword ptr [rax+40h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax], 0
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax+28h], rcx
mov rax, [rbp+var_10]
mov qword ptr [rax+20h], 0
mov rax, [rbp+var_10]
mov dword ptr [rax+48h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+30h], 0
pop rbp
retn
| long long thr_lock_data_init(long long a1, long long a2, long long a3)
{
long long result; // rax
*(_QWORD *)(a2 + 24) = a1;
*(_DWORD *)(a2 + 64) = 0;
*(_QWORD *)a2 = 0LL;
*(_QWORD *)(a2 + 40) = a3;
*(_QWORD *)(a2 + 32) = 0LL;
*(_DWORD *)(a2 + 72) = 0;
result = a2;
*(_QWORD *)(a2 + 48) = 0LL;
return result;
}
| thr_lock_data_init:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RCX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x40],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],0x0
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x28],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x48],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x30],0x0
POP RBP
RET
|
void thr_lock_data_init(int8 param_1,int8 *param_2,int8 param_3)
{
param_2[3] = param_1;
*(int4 *)(param_2 + 8) = 0;
*param_2 = 0;
param_2[5] = param_3;
param_2[4] = 0;
*(int4 *)(param_2 + 9) = 0;
param_2[6] = 0;
return;
}
| |
35,140 | my_thread_destroy_common_mutex | eloqsql/mysys/my_thr_init.c | void my_thread_destroy_common_mutex(void)
{
mysql_mutex_destroy(&THR_LOCK_open);
mysql_mutex_destroy(&THR_LOCK_lock);
mysql_mutex_destroy(&THR_LOCK_myisam);
mysql_mutex_destroy(&THR_LOCK_myisam_mmap);
mysql_mutex_destroy(&THR_LOCK_heap);
mysql_mutex_destroy(&THR_LOCK_net);
mysql_mutex_destroy(&THR_LOCK_charset);
#if !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R)
mysql_mutex_destroy(&LOCK_localtime_r);
#endif
} | O0 | c | my_thread_destroy_common_mutex:
pushq %rbp
movq %rsp, %rbp
leaq 0xb8d495(%rip), %rdi # 0xc84140
callq 0xf6d00
leaq 0xb8d4d1(%rip), %rdi # 0xc84188
callq 0xf6d00
leaq 0xb8d50d(%rip), %rdi # 0xc841d0
callq 0xf6d00
leaq 0xb8d549(%rip), %rdi # 0xc84218
callq 0xf6d00
leaq 0xb8d585(%rip), %rdi # 0xc84260
callq 0xf6d00
leaq 0xb8d5c1(%rip), %rdi # 0xc842a8
callq 0xf6d00
leaq 0xb8d5fd(%rip), %rdi # 0xc842f0
callq 0xf6d00
popq %rbp
retq
nopw (%rax,%rax)
| my_thread_destroy_common_mutex:
push rbp
mov rbp, rsp
lea rdi, THR_LOCK_open
call inline_mysql_mutex_destroy_9
lea rdi, THR_LOCK_lock
call inline_mysql_mutex_destroy_9
lea rdi, THR_LOCK_myisam
call inline_mysql_mutex_destroy_9
lea rdi, THR_LOCK_myisam_mmap
call inline_mysql_mutex_destroy_9
lea rdi, THR_LOCK_heap
call inline_mysql_mutex_destroy_9
lea rdi, THR_LOCK_net
call inline_mysql_mutex_destroy_9
lea rdi, THR_LOCK_charset
call inline_mysql_mutex_destroy_9
pop rbp
retn
| long long my_thread_destroy_common_mutex()
{
inline_mysql_mutex_destroy_9(&THR_LOCK_open);
inline_mysql_mutex_destroy_9(&THR_LOCK_lock);
inline_mysql_mutex_destroy_9(&THR_LOCK_myisam);
inline_mysql_mutex_destroy_9(&THR_LOCK_myisam_mmap);
inline_mysql_mutex_destroy_9(&THR_LOCK_heap);
inline_mysql_mutex_destroy_9(&THR_LOCK_net);
return inline_mysql_mutex_destroy_9(&THR_LOCK_charset);
}
| my_thread_destroy_common_mutex:
PUSH RBP
MOV RBP,RSP
LEA RDI,[0xd84140]
CALL 0x001f6d00
LEA RDI,[0xd84188]
CALL 0x001f6d00
LEA RDI,[0xd841d0]
CALL 0x001f6d00
LEA RDI,[0xd84218]
CALL 0x001f6d00
LEA RDI,[0xd84260]
CALL 0x001f6d00
LEA RDI,[0xd842a8]
CALL 0x001f6d00
LEA RDI,[0xd842f0]
CALL 0x001f6d00
POP RBP
RET
|
void my_thread_destroy_common_mutex(void)
{
inline_mysql_mutex_destroy(THR_LOCK_open);
inline_mysql_mutex_destroy(THR_LOCK_lock);
inline_mysql_mutex_destroy(THR_LOCK_myisam);
inline_mysql_mutex_destroy(THR_LOCK_myisam_mmap);
inline_mysql_mutex_destroy(THR_LOCK_heap);
inline_mysql_mutex_destroy(THR_LOCK_net);
inline_mysql_mutex_destroy(THR_LOCK_charset);
return;
}
| |
35,141 | nlohmann::json_abi_v3_11_3::detail::parse_error nlohmann::json_abi_v3_11_3::detail::parse_error::create<std::nullptr_t, 0>(int, nlohmann::json_abi_v3_11_3::detail::position_t const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t) | monkey531[P]llama/common/json.hpp | static parse_error create(int id_, const position_t& pos, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("parse_error", id_), "parse error",
position_string(pos), ": ", exception::diagnostics(context), what_arg);
return {id_, pos.chars_read_total, w.c_str()};
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::parse_error nlohmann::json_abi_v3_11_3::detail::parse_error::create<std::nullptr_t, 0>(int, nlohmann::json_abi_v3_11_3::detail::position_t const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x925ec(%rip), %rsi # 0xecf5f
leaq 0x925f0(%rip), %rdx # 0xecf6a
leaq 0x8(%rsp), %rdi
callq 0x21cae
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movl %ebp, %edx
callq 0x5882c
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x60c00
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
movq %r15, (%rsp)
leaq 0x925a8(%rip), %rdx # 0xecf6b
leaq 0x969d5(%rip), %r8 # 0xf139f
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0x48(%rsp), %rcx
leaq 0x28(%rsp), %r9
callq 0x60af7
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x5a9fd
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a8d0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5aa18
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x1a8d0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5aa33
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x1a8d0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5aa4a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8d0
movq (%r14), %r14
movq 0x88(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x58a9a
leaq 0xcf54a(%rip), %rax # 0x129fb0
addq $0x10, %rax
movq %rax, (%rbx)
movq %r14, 0x20(%rbx)
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5aa92
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x1a8d0
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5ab3f
movq 0x98(%rsp), %rsi
jmp 0x5ab32
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x5aae3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a8d0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5ab03
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x1a8d0
jmp 0x5ab03
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5ab23
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x1a8d0
jmp 0x5ab23
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5ab3f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8d0
jmp 0x5ab3f
movq %rax, %rbx
movq %rbx, %rdi
callq 0x1afc0
nop
| _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A8h
mov r15, rcx
mov r14, rdx
mov ebp, esi
mov rbx, rdi
lea r12, [rsp+0D8h+var_C0]
mov [r12-10h], r12
lea rsi, aParseError; "parse_error"
lea rdx, aParseError+0Bh; ""
lea rdi, [rsp+0D8h+var_D0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+0D8h+var_70]; int
lea rsi, [rsp+0D8h+var_D0]; int
mov edx, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea rdi, [rsp+0D8h+var_90]; int
mov rsi, r14; int
call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error15position_stringB5cxx11ERKNS1_10position_tE; nlohmann::json_abi_v3_11_3::detail::parse_error::position_string(nlohmann::json_abi_v3_11_3::detail::position_t const&)
lea r13, [rsp+0D8h+var_A0]
mov [r13-10h], r13
mov qword ptr [r13-8], 0
mov byte ptr [r13+0], 0
mov [rsp+0D8h+var_D8], r15
lea rdx, aParseError_0; "parse error"
lea r8, aSubtype+9; ": "
lea rdi, [rsp+0D8h+var_50]
lea rsi, [rsp+0D8h+var_70]
lea rcx, [rsp+0D8h+var_90]
lea r9, [rsp+0D8h+var_B0]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_RA12_KcS8_RA3_S9_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&>(std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&)
mov rdi, [rsp+0D8h+var_B0]; void *
cmp rdi, r13
jz short loc_5A9FD
mov rsi, [rsp+0D8h+var_A0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5A9FD:
lea rax, [rsp+0D8h+var_80]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5AA18
mov rsi, [rsp+0D8h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5AA18:
lea rax, [rsp+0D8h+var_60]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5AA33
mov rsi, [rsp+0D8h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5AA33:
mov rdi, [rsp+0D8h+var_D0]; void *
cmp rdi, r12
jz short loc_5AA4A
mov rsi, [rsp+0D8h+var_C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5AA4A:
mov r14, [r14]
mov rdx, [rsp+0D8h+var_50]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*)
lea rax, _ZTVN8nlohmann16json_abi_v3_11_36detail11parse_errorE; `vtable for'nlohmann::json_abi_v3_11_3::detail::parse_error
add rax, 10h
mov [rbx], rax
mov [rbx+20h], r14
lea rax, [rsp+0D8h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5AA92
mov rsi, [rsp+0D8h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5AA92:
mov rax, rbx
add rsp, 0A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rax, [rsp+arg_90]
mov rdi, [rax-10h]
cmp rdi, rax
jz loc_5AB3F
mov rsi, [rsp+arg_90]
jmp short loc_5AB32
mov rbx, rax
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_5AAE3
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5AAE3:
lea rax, [rsp+arg_50]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5AB03
mov rsi, [rsp+arg_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5AB03
mov rbx, rax
loc_5AB03:
lea rax, [rsp+arg_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5AB23
mov rsi, [rsp+arg_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5AB23
mov rbx, rax
loc_5AB23:
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_5AB3F
mov rsi, [rsp+arg_10]
loc_5AB32:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5AB3F
mov rbx, rax
loc_5AB3F:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
nlohmann::json_abi_v3_11_3::detail::exception *this,
int a2,
long long *a3,
long long a4)
{
int v6; // edx
int v7; // ecx
int v8; // r8d
int v9; // r9d
long long v10; // r14
void *v12; // [rsp+0h] [rbp-D8h]
void *v13[2]; // [rsp+8h] [rbp-D0h] BYREF
_QWORD v14[2]; // [rsp+18h] [rbp-C0h] BYREF
void *v15; // [rsp+28h] [rbp-B0h] BYREF
long long v16; // [rsp+30h] [rbp-A8h]
_QWORD v17[2]; // [rsp+38h] [rbp-A0h] BYREF
int v18[4]; // [rsp+48h] [rbp-90h] BYREF
long long v19; // [rsp+58h] [rbp-80h] BYREF
int v20[4]; // [rsp+68h] [rbp-70h] BYREF
long long v21; // [rsp+78h] [rbp-60h] BYREF
char *v22; // [rsp+88h] [rbp-50h] BYREF
long long v23; // [rsp+98h] [rbp-40h] BYREF
v13[0] = v14;
std::string::_M_construct<char const*>((long long)v13, "parse_error", (long long)"");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v20, (long long)v13, a2);
nlohmann::json_abi_v3_11_3::detail::parse_error::position_string[abi:cxx11](
(int)v18,
(int)a3,
v6,
v7,
v8,
v9,
v12,
(int)v13[0],
(long long)v13[1],
v14[0],
(void *)v14[1],
(int)v15,
v16);
v15 = v17;
v16 = 0LL;
LOBYTE(v17[0]) = 0;
nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&>(
(unsigned int)&v22,
(unsigned int)v20,
(unsigned int)"parse error",
(unsigned int)v18,
(unsigned int)": ",
(unsigned int)&v15,
a4);
if ( v15 != v17 )
operator delete(v15, v17[0] + 1LL);
if ( *(long long **)v18 != &v19 )
operator delete(*(void **)v18, v19 + 1);
if ( *(long long **)v20 != &v21 )
operator delete(*(void **)v20, v21 + 1);
if ( v13[0] != v14 )
operator delete(v13[0], v14[0] + 1LL);
v10 = *a3;
nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v22);
*(_QWORD *)this = &`vtable for'nlohmann::json_abi_v3_11_3::detail::parse_error + 2;
*((_QWORD *)this + 4) = v10;
if ( v22 != (char *)&v23 )
operator delete(v22, v23 + 1);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa8
MOV R15,RCX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
LAB_0015a96c:
LEA RSI,[0x1ecf5f]
LEA RDX,[0x1ecf6a]
LEA RDI,[RSP + 0x8]
CALL 0x00121cae
LAB_0015a984:
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0x8]
MOV EDX,EBP
CALL 0x0015882c
LAB_0015a995:
LEA RDI,[RSP + 0x48]
MOV RSI,R14
CALL 0x00160c00
LEA R13,[RSP + 0x38]
MOV qword ptr [R13 + -0x10],R13
MOV qword ptr [R13 + -0x8],0x0
MOV byte ptr [R13],0x0
LAB_0015a9b8:
MOV qword ptr [RSP],R15
LEA RDX,[0x1ecf6b]
LEA R8,[0x1f139f]
LEA RDI,[RSP + 0x88]
LEA RSI,[RSP + 0x68]
LEA RCX,[RSP + 0x48]
LEA R9,[RSP + 0x28]
CALL 0x00160af7
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R13
JZ 0x0015a9fd
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011a8d0
LAB_0015a9fd:
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0015aa18
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x0011a8d0
LAB_0015aa18:
LEA RAX,[RSP + 0x78]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0015aa33
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x0011a8d0
LAB_0015aa33:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x0015aa4a
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011a8d0
LAB_0015aa4a:
MOV R14,qword ptr [R14]
MOV RDX,qword ptr [RSP + 0x88]
LAB_0015aa55:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x00158a9a
LAB_0015aa5f:
LEA RAX,[0x229fb0]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV qword ptr [RBX + 0x20],R14
LEA RAX,[RSP + 0x98]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0015aa92
MOV RSI,qword ptr [RSP + 0x98]
INC RSI
CALL 0x0011a8d0
LAB_0015aa92:
MOV RAX,RBX
ADD RSP,0xa8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
exception *
_ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(exception *param_1,int param_2,position_t *param_3,string *param_4)
{
int8 uVar1;
long *local_d0 [2];
long local_c0 [2];
int1 *local_b0;
int8 local_a8;
int1 local_a0;
int7 uStack_9f;
long *local_90 [2];
long local_80 [2];
long *local_70 [2];
long local_60 [2];
long *local_50 [2];
long local_40 [2];
/* try { // try from 0015a96c to 0015a983 has its CatchHandler @ 0015ab3c */
local_d0[0] = local_c0;
std::__cxx11::string::_M_construct<char_const*>(local_d0,"parse_error","");
/* try { // try from 0015a984 to 0015a994 has its CatchHandler @ 0015ab20 */
nlohmann::json_abi_v3_11_3::detail::exception::name
((exception *)local_70,(string *)local_d0,param_2);
/* try { // try from 0015a995 to 0015a9a1 has its CatchHandler @ 0015ab00 */
nlohmann::json_abi_v3_11_3::detail::parse_error::position_string_abi_cxx11_
((parse_error *)local_90,param_3);
local_a8 = 0;
local_a0 = 0;
/* try { // try from 0015a9b8 to 0015a9e5 has its CatchHandler @ 0015aac9 */
local_b0 = &local_a0;
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,std::__cxx11::string,char_const(&)[12],std::__cxx11::string,char_const(&)[3],std::__cxx11::string,std::__cxx11::string_const&>
((detail *)local_50,(string *)local_70,"parse error",(string *)local_90,": ",
(string *)&local_b0,param_4);
if (local_b0 != &local_a0) {
operator_delete(local_b0,CONCAT71(uStack_9f,local_a0) + 1);
}
if (local_90[0] != local_80) {
operator_delete(local_90[0],local_80[0] + 1);
}
if (local_70[0] != local_60) {
operator_delete(local_70[0],local_60[0] + 1);
}
if (local_d0[0] != local_c0) {
operator_delete(local_d0[0],local_c0[0] + 1);
}
uVar1 = *(int8 *)param_3;
/* try { // try from 0015aa55 to 0015aa5e has its CatchHandler @ 0015aaa7 */
nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,(char *)local_50[0]);
*(int ***)param_1 = &PTR__exception_00229fc0;
*(int8 *)(param_1 + 0x20) = uVar1;
if (local_50[0] != local_40) {
operator_delete(local_50[0],local_40[0] + 1);
}
return param_1;
}
| |
35,142 | aimrt_mujoco_sim::mujoco_sim_module::MujocoSimModule::Start() | aimrt_mujoco_sim/src/module/mujoco_sim_module/mujoco_sim_module.cc | bool MujocoSimModule::Start() {
AIMRT_INFO("Start succeeded.");
scope_.spawn(aimrt::co::On(aimrt::co::InlineScheduler(), GuiLoop()));
scope_.spawn(aimrt::co::On(aimrt::co::InlineScheduler(), SimLoop()));
for (auto& itr : subscriber_map_) {
itr.second->Start();
}
for (auto& itr : publisher_map_) {
itr.second->Start();
}
return true;
} | O3 | cpp | aimrt_mujoco_sim::mujoco_sim_module::MujocoSimModule::Start():
pushq %r15
pushq %r14
pushq %rbx
subq $0x260, %rsp # imm = 0x260
movq %rdi, %rbx
callq 0x60724
leaq 0x28(%rsp), %rdi
movq %rax, (%rdi)
callq 0x3400e
cmpl $0x2, %eax
ja 0x44825
leaq 0x68(%rsp), %r15
movq $0x0, -0x10(%r15)
leaq 0x1c402e(%rip), %rax # 0x2087a8
movq %rax, -0x20(%r15)
movq %r15, -0x18(%r15)
movq $0x1f4, -0x8(%r15) # imm = 0x1F4
leaq 0x11e5ff(%rip), %rsi # 0x162d90
leaq 0x48(%rsp), %rdi
leaq 0x30(%rsp), %r8
movl $0x10, %edx
xorl %ecx, %ecx
xorl %r9d, %r9d
callq 0x3429c
movq 0x50(%rsp), %rsi
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x2c610
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x447de
movq 0x60(%rsp), %rsi
callq 0x2d2d0
movq 0x8(%rsp), %r9
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
leaq 0x11e44b(%rip), %rcx # 0x162c3e
leaq 0x11e5a7(%rip), %r8 # 0x162da1
leaq 0x28(%rsp), %rdi
movl $0x2, %esi
movl $0xad, %edx
callq 0x340ee
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x44825
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2d2d0
leaq 0x100(%rbx), %r14
movl $0x190, %edi # imm = 0x190
callq 0x2d270
leaq 0x617(%rip), %rcx # 0x44e54
movq %rcx, (%rax)
leaq 0x983(%rip), %rcx # 0x451ca
movq %rcx, 0x8(%rax)
movq %rbx, 0x120(%rax)
xorl %ecx, %ecx
movq %rcx, 0x10(%rax)
leaq 0x1c4159(%rip), %r15 # 0x2089b8
movq %r15, 0x18(%rax)
movq %rcx, 0x20(%rax)
movl $0x0, 0x28(%rax)
movb $0x0, 0x184(%rax)
leaq 0x48(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0x4616e
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x44892
callq *0x8(%rdi)
movl $0xa0, %edi
callq 0x2d270
leaq 0xb25(%rip), %rcx # 0x453c8
movq %rcx, (%rax)
leaq 0x10a1(%rip), %rcx # 0x4594e
movq %rcx, 0x8(%rax)
movq %rbx, 0x68(%rax)
xorl %ecx, %ecx
movq %rcx, 0x10(%rax)
movq %r15, 0x18(%rax)
movq %rcx, 0x20(%rax)
movl $0x0, 0x28(%rax)
movb $0x0, 0x98(%rax)
leaq 0x48(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0x4616e
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x448ee
callq *0x8(%rdi)
movq 0x1b0(%rbx), %r14
testq %r14, %r14
je 0x44909
movq 0x28(%r14), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movq (%r14), %r14
jmp 0x448f5
movq 0x1e8(%rbx), %rbx
testq %rbx, %rbx
je 0x44924
movq 0x28(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movq (%rbx), %rbx
jmp 0x44910
movb $0x1, %al
addq $0x260, %rsp # imm = 0x260
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x44993
movq 0x18(%rsp), %rsi
incq %rsi
jmp 0x4498e
jmp 0x44974
jmp 0x44974
movq %rax, %rbx
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x44993
callq *0x8(%rdi)
jmp 0x44993
jmp 0x44974
movq %rax, %rbx
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x44993
callq *0x8(%rdi)
jmp 0x44993
movq %rax, %rdi
callq 0x33bfc
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x44993
movq 0x60(%rsp), %rsi
callq 0x2d2d0
movq %rbx, %rdi
callq 0x2e220
nop
| _ZN16aimrt_mujoco_sim17mujoco_sim_module15MujocoSimModule5StartEv:
push r15
push r14
push rbx
sub rsp, 260h
mov rbx, rdi
call _ZN16aimrt_mujoco_sim17mujoco_sim_module9GetLoggerEv; aimrt_mujoco_sim::mujoco_sim_module::GetLogger(void)
lea rdi, [rsp+278h+var_250]; this
mov [rdi], rax
call _ZNK5aimrt6logger9LoggerRef11GetLogLevelEv; aimrt::logger::LoggerRef::GetLogLevel(void)
cmp eax, 2
ja loc_44825
lea r15, [rsp+278h+var_210]
mov qword ptr [r15-10h], 0
lea rax, off_2087A8
mov [r15-20h], rax
mov [r15-18h], r15
mov qword ptr [r15-8], 1F4h
lea rsi, aStartSucceeded; "Start succeeded."
lea rdi, [rsp+278h+var_230]; int
lea r8, [rsp+278h+var_248]
mov edx, 10h
xor ecx, ecx
xor r9d, r9d
call _ZN3fmt3v106detail10vformat_toIcEEvRNS1_6bufferIT_EENS0_17basic_string_viewIS4_EENS1_12vformat_argsIS4_E4typeENS1_10locale_refE; fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char> &,fmt::v10::basic_string_view<char>,fmt::v10::detail::vformat_args<char>::type,fmt::v10::detail::locale_ref)
mov rsi, [rsp+278h+var_228]
lea r14, [rsp+278h+var_260]
mov [r14-10h], r14
mov rdx, [rsp+278h+var_220]
add rdx, rsi
lea rdi, [rsp+278h+var_270]
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 rdi, [rsp+278h+var_228]; void *
cmp rdi, r15
jz short loc_447DE
mov rsi, [rsp+278h+var_218]; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_447DE:
mov r9, [rsp+278h+var_270]; char *
mov rax, [rsp+278h+var_268]
mov [rsp+278h+var_278], rax; unsigned __int64
lea rcx, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/aimrt_"...
lea r8, aStart; "Start"
lea rdi, [rsp+278h+var_250]; this
mov esi, 2; unsigned int
mov edx, 0ADh; unsigned int
call _ZNK5aimrt6logger9LoggerRef3LogEjjPKcS3_S3_m; aimrt::logger::LoggerRef::Log(uint,uint,char const*,char const*,char const*,ulong)
mov rdi, [rsp+278h+var_270]; void *
cmp rdi, r14
jz short loc_44825
mov rsi, [rsp+278h+var_260]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_44825:
lea r14, [rbx+100h]
mov edi, 190h; unsigned __int64
call __Znwm; operator new(ulong)
lea rcx, _ZN16aimrt_mujoco_sim17mujoco_sim_module15MujocoSimModule7GuiLoopEv_resume; aimrt_mujoco_sim::mujoco_sim_module::MujocoSimModule::GuiLoop(void) [clone]
mov [rax], rcx
lea rcx, _ZN16aimrt_mujoco_sim17mujoco_sim_module15MujocoSimModule7GuiLoopEv_destroy; aimrt_mujoco_sim::mujoco_sim_module::MujocoSimModule::GuiLoop(void) [clone]
mov [rax+8], rcx
mov [rax+120h], rbx
xor ecx, ecx
mov [rax+10h], rcx
lea r15, _ZN6unifex3_ch19continuation_handleIvE15default_vtable_E; unifex::_ch::continuation_handle<void>::default_vtable_
mov [rax+18h], r15
mov [rax+20h], rcx
mov dword ptr [rax+28h], 0
mov byte ptr [rax+184h], 0
lea rsi, [rsp+278h+var_230]
mov [rsi], rax
mov rdi, r14
call _ZN6unifex12_async_scope11async_scope5spawnINS_4_seq7_senderINS_13_inline_sched9scheduler13schedule_taskENS_17_with_query_value7_senderINS_14_get_scheduler3_fnES6_NS_5_task5_taskIvE4typeEE4typeEE4typeEQ9sender_toIT_NS0_9_receiverISK_E4typeEEEEvOSK_
mov rdi, qword ptr [rsp+278h+var_230]
test rdi, rdi
jz short loc_44892
call qword ptr [rdi+8]
loc_44892:
mov edi, 0A0h; unsigned __int64
call __Znwm; operator new(ulong)
lea rcx, _ZN16aimrt_mujoco_sim17mujoco_sim_module15MujocoSimModule7SimLoopEv_resume; aimrt_mujoco_sim::mujoco_sim_module::MujocoSimModule::SimLoop(void) [clone]
mov [rax], rcx
lea rcx, _ZN16aimrt_mujoco_sim17mujoco_sim_module15MujocoSimModule7SimLoopEv_destroy; aimrt_mujoco_sim::mujoco_sim_module::MujocoSimModule::SimLoop(void) [clone]
mov [rax+8], rcx
mov [rax+68h], rbx
xor ecx, ecx
mov [rax+10h], rcx
mov [rax+18h], r15
mov [rax+20h], rcx
mov dword ptr [rax+28h], 0
mov byte ptr [rax+98h], 0
lea rsi, [rsp+278h+var_230]
mov [rsi], rax
mov rdi, r14
call _ZN6unifex12_async_scope11async_scope5spawnINS_4_seq7_senderINS_13_inline_sched9scheduler13schedule_taskENS_17_with_query_value7_senderINS_14_get_scheduler3_fnES6_NS_5_task5_taskIvE4typeEE4typeEE4typeEQ9sender_toIT_NS0_9_receiverISK_E4typeEEEEvOSK_
mov rdi, qword ptr [rsp+278h+var_230]
test rdi, rdi
jz short loc_448EE
call qword ptr [rdi+8]
loc_448EE:
mov r14, [rbx+1B0h]
loc_448F5:
test r14, r14
jz short loc_44909
mov rdi, [r14+28h]
mov rax, [rdi]
call qword ptr [rax+18h]
mov r14, [r14]
jmp short loc_448F5
loc_44909:
mov rbx, [rbx+1E8h]
loc_44910:
test rbx, rbx
jz short loc_44924
mov rdi, [rbx+28h]
mov rax, [rdi]
call qword ptr [rax+18h]
mov rbx, [rbx]
jmp short loc_44910
loc_44924:
mov al, 1
add rsp, 260h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rdi, [rsp+278h+var_270]
cmp rdi, r14
jz short loc_44993
mov rsi, [rsp+278h+var_260]
inc rsi
jmp short loc_4498E
jmp short loc_44974
jmp short loc_44974
mov rbx, rax
mov rdi, qword ptr [rsp+278h+var_230]
test rdi, rdi
jz short loc_44993
call qword ptr [rdi+8]
jmp short loc_44993
jmp short loc_44974
mov rbx, rax
mov rdi, qword ptr [rsp+278h+var_230]
test rdi, rdi
jz short loc_44993
call qword ptr [rdi+8]
jmp short loc_44993
loc_44974:
mov rdi, rax
call __clang_call_terminate
mov rbx, rax
mov rdi, [rsp+278h+var_228]; void *
cmp rdi, r15
jz short loc_44993
mov rsi, [rsp+278h+var_218]; unsigned __int64
loc_4498E:
call __ZdlPvm; operator delete(void *,ulong)
loc_44993:
mov rdi, rbx
call __Unwind_Resume
| char aimrt_mujoco_sim::mujoco_sim_module::MujocoSimModule::Start(long long ***this)
{
long long v1; // rax
long long v2; // rax
long long **i; // r14
long long **j; // rbx
char *v6[2]; // [rsp+8h] [rbp-270h] BYREF
_QWORD v7[2]; // [rsp+18h] [rbp-260h] BYREF
long long Logger; // [rsp+28h] [rbp-250h] BYREF
_BYTE v9[24]; // [rsp+30h] [rbp-248h] BYREF
int v10[2]; // [rsp+48h] [rbp-230h] BYREF
void *v11; // [rsp+50h] [rbp-228h]
long long v12; // [rsp+58h] [rbp-220h]
unsigned long long v13; // [rsp+60h] [rbp-218h]
_BYTE v14[528]; // [rsp+68h] [rbp-210h] BYREF
Logger = aimrt_mujoco_sim::mujoco_sim_module::GetLogger((aimrt_mujoco_sim::mujoco_sim_module *)this);
if ( (unsigned int)aimrt::logger::LoggerRef::GetLogLevel((aimrt::logger::LoggerRef *)&Logger) <= 2 )
{
v12 = 0LL;
*(_QWORD *)v10 = &off_2087A8;
v11 = v14;
v13 = 500LL;
fmt::v10::detail::vformat_to<char>((long long)v10, "Start succeeded.", 16LL, 0LL, (long long)v9, 0LL);
v6[0] = (char *)v7;
std::string::_M_construct<char const*>(v6, v11, (char *)v11 + v12);
if ( v11 != v14 )
operator delete(v11, v13);
aimrt::logger::LoggerRef::Log(
(aimrt::logger::LoggerRef *)&Logger,
2LL,
173LL,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/src/module/mujoco_sim_module/mujoco_sim_module.cc",
"Start",
v6[0],
(unsigned long long)v6[1]);
if ( (_QWORD *)v6[0] != v7 )
operator delete(v6[0], v7[0] + 1LL);
}
v1 = operator new(0x190uLL);
*(_QWORD *)v1 = aimrt_mujoco_sim::mujoco_sim_module::MujocoSimModule::GuiLoop;
*(_QWORD *)(v1 + 8) = aimrt_mujoco_sim::mujoco_sim_module::MujocoSimModule::GuiLoop;
*(_QWORD *)(v1 + 288) = this;
*(_QWORD *)(v1 + 16) = 0LL;
*(_QWORD *)(v1 + 24) = &unifex::_ch::continuation_handle<void>::default_vtable_;
*(_QWORD *)(v1 + 32) = 0LL;
*(_DWORD *)(v1 + 40) = 0;
*(_BYTE *)(v1 + 388) = 0;
*(_QWORD *)v10 = v1;
ZN6unifex12_async_scope11async_scope5spawnINS_4_seq7_senderINS_13_inline_sched9scheduler13schedule_taskENS_17_with_query_value7_senderINS_14_get_scheduler3_fnES6_NS_5_task5_taskIvE4typeEE4typeEE4typeEQ9sender_toIT_NS0_9_receiverISK_E4typeEEEEvOSK_(this + 32);
if ( *(_QWORD *)v10 )
(*(void (**)(void))(*(_QWORD *)v10 + 8LL))();
v2 = operator new(0xA0uLL);
*(_QWORD *)v2 = aimrt_mujoco_sim::mujoco_sim_module::MujocoSimModule::SimLoop;
*(_QWORD *)(v2 + 8) = aimrt_mujoco_sim::mujoco_sim_module::MujocoSimModule::SimLoop;
*(_QWORD *)(v2 + 104) = this;
*(_QWORD *)(v2 + 16) = 0LL;
*(_QWORD *)(v2 + 24) = &unifex::_ch::continuation_handle<void>::default_vtable_;
*(_QWORD *)(v2 + 32) = 0LL;
*(_DWORD *)(v2 + 40) = 0;
*(_BYTE *)(v2 + 152) = 0;
*(_QWORD *)v10 = v2;
ZN6unifex12_async_scope11async_scope5spawnINS_4_seq7_senderINS_13_inline_sched9scheduler13schedule_taskENS_17_with_query_value7_senderINS_14_get_scheduler3_fnES6_NS_5_task5_taskIvE4typeEE4typeEE4typeEQ9sender_toIT_NS0_9_receiverISK_E4typeEEEEvOSK_(this + 32);
if ( *(_QWORD *)v10 )
(*(void (**)(void))(*(_QWORD *)v10 + 8LL))();
for ( i = this[54]; i; i = (long long **)*i )
(*(void ( **)(long long *))(*i[5] + 24))(i[5]);
for ( j = this[61]; j; j = (long long **)*j )
(*(void ( **)(long long *))(*j[5] + 24))(j[5]);
return 1;
}
| Start:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x260
MOV RBX,RDI
CALL 0x00160724
LEA RDI,[RSP + 0x28]
MOV qword ptr [RDI],RAX
CALL 0x0013400e
CMP EAX,0x2
JA 0x00144825
LEA R15,[RSP + 0x68]
MOV qword ptr [R15 + -0x10],0x0
LEA RAX,[0x3087a8]
MOV qword ptr [R15 + -0x20],RAX
MOV qword ptr [R15 + -0x18],R15
MOV qword ptr [R15 + -0x8],0x1f4
LAB_0014478a:
LEA RSI,[0x262d90]
LEA RDI,[RSP + 0x48]
LEA R8,[RSP + 0x30]
MOV EDX,0x10
XOR ECX,ECX
XOR R9D,R9D
CALL 0x0013429c
MOV RSI,qword ptr [RSP + 0x50]
LEA R14,[RSP + 0x18]
MOV qword ptr [R14 + -0x10],R14
MOV RDX,qword ptr [RSP + 0x58]
ADD RDX,RSI
LEA RDI,[RSP + 0x8]
CALL 0x0012c610
MOV RDI,qword ptr [RSP + 0x50]
CMP RDI,R15
JZ 0x001447de
MOV RSI,qword ptr [RSP + 0x60]
CALL 0x0012d2d0
LAB_001447de:
MOV R9,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RSP + 0x10]
LAB_001447e8:
MOV qword ptr [RSP],RAX
LEA RCX,[0x262c3e]
LEA R8,[0x262da1]
LEA RDI,[RSP + 0x28]
MOV ESI,0x2
MOV EDX,0xad
CALL 0x001340ee
LAB_0014480e:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R14
JZ 0x00144825
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0012d2d0
LAB_00144825:
LEA R14,[RBX + 0x100]
MOV EDI,0x190
CALL 0x0012d270
LEA RCX,[0x144e54]
MOV qword ptr [RAX],RCX
LEA RCX,[0x1451ca]
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [RAX + 0x120],RBX
XOR ECX,ECX
MOV qword ptr [RAX + 0x10],RCX
LEA R15,[0x3089b8]
MOV qword ptr [RAX + 0x18],R15
MOV qword ptr [RAX + 0x20],RCX
MOV dword ptr [RAX + 0x28],0x0
MOV byte ptr [RAX + 0x184],0x0
LEA RSI,[RSP + 0x48]
MOV qword ptr [RSI],RAX
LAB_0014487d:
MOV RDI,R14
CALL 0x0014616e
MOV RDI,qword ptr [RSP + 0x48]
TEST RDI,RDI
JZ 0x00144892
LAB_0014488f:
CALL qword ptr [RDI + 0x8]
LAB_00144892:
MOV EDI,0xa0
CALL 0x0012d270
LEA RCX,[0x1453c8]
MOV qword ptr [RAX],RCX
LEA RCX,[0x14594e]
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [RAX + 0x68],RBX
XOR ECX,ECX
MOV qword ptr [RAX + 0x10],RCX
MOV qword ptr [RAX + 0x18],R15
MOV qword ptr [RAX + 0x20],RCX
MOV dword ptr [RAX + 0x28],0x0
MOV byte ptr [RAX + 0x98],0x0
LEA RSI,[RSP + 0x48]
MOV qword ptr [RSI],RAX
LAB_001448d9:
MOV RDI,R14
CALL 0x0014616e
MOV RDI,qword ptr [RSP + 0x48]
TEST RDI,RDI
JZ 0x001448ee
LAB_001448eb:
CALL qword ptr [RDI + 0x8]
LAB_001448ee:
MOV R14,qword ptr [RBX + 0x1b0]
LAB_001448f5:
TEST R14,R14
JZ 0x00144909
MOV RDI,qword ptr [R14 + 0x28]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
MOV R14,qword ptr [R14]
JMP 0x001448f5
LAB_00144909:
MOV RBX,qword ptr [RBX + 0x1e8]
LAB_00144910:
TEST RBX,RBX
JZ 0x00144924
MOV RDI,qword ptr [RBX + 0x28]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
MOV RBX,qword ptr [RBX]
JMP 0x00144910
LAB_00144924:
MOV AL,0x1
ADD RSP,0x260
POP RBX
POP R14
POP R15
RET
|
/* aimrt_mujoco_sim::mujoco_sim_module::MujocoSimModule::Start() */
int8 __thiscall
aimrt_mujoco_sim::mujoco_sim_module::MujocoSimModule::Start(MujocoSimModule *this)
{
uint uVar1;
int8 *puVar2;
long *local_270 [2];
long local_260 [2];
int8 local_250;
int1 local_248 [24];
int **local_230;
int1 *local_228;
long local_220;
ulong local_218;
int1 local_210 [504];
local_250 = GetLogger();
uVar1 = aimrt::logger::LoggerRef::GetLogLevel((LoggerRef *)&local_250);
if (uVar1 < 3) {
local_220 = 0;
local_230 = &PTR_grow_003087a8;
local_218 = 500;
/* try { // try from 0014478a to 001447c9 has its CatchHandler @ 0014497c */
local_228 = local_210;
fmt::v10::detail::vformat_to<char>(&local_230,"Start succeeded.",0x10,0,local_248,0);
local_270[0] = local_260;
std::__cxx11::string::_M_construct<char_const*>(local_270,local_228,local_228 + local_220);
if (local_228 != local_210) {
operator_delete(local_228,local_218);
}
/* try { // try from 001447e8 to 0014480d has its CatchHandler @ 00144933 */
aimrt::logger::LoggerRef::Log
((uint)&local_250,2,(char *)0xad,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/src/module/mujoco_sim_module/mujoco_sim_module.cc"
,"Start",(ulong)local_270[0]);
if (local_270[0] != local_260) {
operator_delete(local_270[0],local_260[0] + 1);
}
}
local_230 = (int **)operator_new(400);
*local_230 = GuiLoop;
local_230[1] = GuiLoop;
local_230[0x24] = this;
local_230[2] = (int *)0x0;
local_230[3] = unifex::_ch::continuation_handle<void>::default_vtable_;
local_230[4] = (int *)0x0;
*(int4 *)(local_230 + 5) = 0;
*(int1 *)((long)local_230 + 0x184) = 0;
/* try { // try from 0014487d to 00144884 has its CatchHandler @ 00144962 */
_ZN6unifex12_async_scope11async_scope5spawnINS_4_seq7_senderINS_13_inline_sched9scheduler13schedule_taskENS_17_with_query_value7_senderINS_14_get_scheduler3_fnES6_NS_5_task5_taskIvE4typeEE4typeEE4typeEQ9sender_toIT_NS0_9_receiverISK_E4typeEEEEvOSK_
(this + 0x100);
if (local_230 != (int **)0x0) {
/* try { // try from 0014488f to 00144891 has its CatchHandler @ 0014494c */
(*(code *)local_230[1])();
}
local_230 = (int **)operator_new(0xa0);
*local_230 = SimLoop;
local_230[1] = SimLoop;
local_230[0xd] = this;
local_230[2] = (int *)0x0;
local_230[3] = unifex::_ch::continuation_handle<void>::default_vtable_;
local_230[4] = (int *)0x0;
*(int4 *)(local_230 + 5) = 0;
*(int1 *)(local_230 + 0x13) = 0;
/* try { // try from 001448d9 to 001448e0 has its CatchHandler @ 0014494e */
_ZN6unifex12_async_scope11async_scope5spawnINS_4_seq7_senderINS_13_inline_sched9scheduler13schedule_taskENS_17_with_query_value7_senderINS_14_get_scheduler3_fnES6_NS_5_task5_taskIvE4typeEE4typeEE4typeEQ9sender_toIT_NS0_9_receiverISK_E4typeEEEEvOSK_
(this + 0x100);
if (local_230 != (int **)0x0) {
/* try { // try from 001448eb to 001448ed has its CatchHandler @ 0014494a */
(*(code *)local_230[1])();
}
for (puVar2 = *(int8 **)(this + 0x1b0); puVar2 != (int8 *)0x0;
puVar2 = (int8 *)*puVar2) {
(**(code **)(*(long *)puVar2[5] + 0x18))();
}
for (puVar2 = *(int8 **)(this + 0x1e8); puVar2 != (int8 *)0x0;
puVar2 = (int8 *)*puVar2) {
(**(code **)(*(long *)puVar2[5] + 0x18))();
}
return 1;
}
| |
35,143 | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::get_ref_impl<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&) | monkey531[P]llama/common/json.hpp | static ReferenceType get_ref_impl(ThisType& obj)
{
// delegate the call to get_ptr<>()
auto* ptr = obj.template get_ptr<typename std::add_pointer<ReferenceType>::type>();
if (JSON_HEDLEY_LIKELY(ptr != nullptr))
{
return *ptr;
}
JSON_THROW(type_error::create(303, detail::concat("incompatible ReferenceType for get_ref, actual type is ", obj.type_name()), &obj));
} | O2 | cpp | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::get_ref_impl<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
cmpb $0x3, (%rdi)
jne 0x88ec4
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x88ec4
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x23470
movq %rax, %rbx
movq %r14, %rdi
callq 0x4334a
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x2c29e(%rip), %rsi # 0xb5184
leaq 0x10(%rsp), %rdi
callq 0x830e9
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x12f, %esi # imm = 0x12F
movq %r14, %rcx
callq 0x431fe
xorl %ebp, %ebp
leaq 0x73037(%rip), %rsi # 0xfbf48
leaq -0x48fc4(%rip), %rdx # 0x3ff54
movq %rbx, %rdi
callq 0x23f40
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x241f8
testb %bpl, %bpl
jne 0x88f37
jmp 0x88f3f
movq %rax, %r14
movq %rbx, %rdi
callq 0x236a0
movq %r14, %rdi
callq 0x23fc0
nop
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE12get_ref_implIRS9_SD_EET_RT0_:
push rbp; char
push r14; int
push rbx; int
sub rsp, 30h
mov r14, rdi
cmp byte ptr [rdi], 3
jnz short loc_88EC4
mov rax, [r14+8]
test rax, rax
jz short loc_88EC4
add rsp, 30h
pop rbx
pop r14
pop rbp
retn
loc_88EC4:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+48h+var_40]
mov [rdx], rax
lea rsi, aIncompatibleRe; "incompatible ReferenceType for get_ref,"...
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA56_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[56],char const*>(char const(&)[56],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 12Fh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rdi, [rsp+48h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_88F37
jmp short loc_88F3F
mov r14, rax
loc_88F37:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_88F3F:
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>::get_ref_impl<std::string&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
long long a1)
{
long long result; // rax
nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx
const char *v3; // [rsp+8h] [rbp-40h] BYREF
_BYTE v4[56]; // [rsp+10h] [rbp-38h] BYREF
if ( *(_BYTE *)a1 != 3 || (result = *(_QWORD *)(a1 + 8)) == 0 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL);
v3 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[56],char const*>(
(long long)v4,
(long long)"incompatible ReferenceType for get_ref, actual type is ",
&v3);
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
exception,
303,
(long long)v4);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
return result;
}
| get_ref_impl<std::__cxx11::string&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RDI
CMP byte ptr [RDI],0x3
JNZ 0x00188ec4
MOV RAX,qword ptr [R14 + 0x8]
TEST RAX,RAX
JZ 0x00188ec4
ADD RSP,0x30
POP RBX
POP R14
POP RBP
RET
LAB_00188ec4:
PUSH 0x20
POP RDI
CALL 0x00123470
MOV RBX,RAX
MOV RDI,R14
CALL 0x0014334a
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_00188edf:
LEA RSI,[0x1b5184]
LEA RDI,[RSP + 0x10]
CALL 0x001830e9
MOV BPL,0x1
LAB_00188ef3:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x12f
MOV RCX,R14
CALL 0x001431fe
XOR EBP,EBP
LEA RSI,[0x1fbf48]
LEA RDX,[0x13ff54]
MOV RDI,RBX
CALL 0x00123f40
|
/* std::__cxx11::string&
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::get_ref_impl<std::__cxx11::string&,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&) */
string * nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::
get_ref_impl<std::__cxx11::string&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(basic_json *param_1)
{
int8 uVar1;
char *local_40;
detail local_38 [32];
if ((*param_1 == '\x03') && (*(string **)(param_1 + 8) != (string *)0x0)) {
return *(string **)(param_1 + 8);
}
uVar1 = __cxa_allocate_exception(0x20);
local_40 = (char *)type_name((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)param_1);
/* try { // try from 00188edf to 00188eef has its CatchHandler @ 00188f34 */
detail::concat<std::__cxx11::string,char_const(&)[56],char_const*>
(local_38,"incompatible ReferenceType for get_ref, actual type is ",&local_40);
/* try { // try from 00188ef3 to 00188f1f has its CatchHandler @ 00188f20 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar1,0x12f,local_38,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar1,&detail::type_error::typeinfo,detail::exception::~exception);
}
| |
35,144 | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::get_ref_impl<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&) | monkey531[P]llama/common/json.hpp | static ReferenceType get_ref_impl(ThisType& obj)
{
// delegate the call to get_ptr<>()
auto* ptr = obj.template get_ptr<typename std::add_pointer<ReferenceType>::type>();
if (JSON_HEDLEY_LIKELY(ptr != nullptr))
{
return *ptr;
}
JSON_THROW(type_error::create(303, detail::concat("incompatible ReferenceType for get_ref, actual type is ", obj.type_name()), &obj));
} | O3 | cpp | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::get_ref_impl<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
cmpb $0x3, (%rdi)
jne 0xb89f2
movq 0x8(%r14), %rax
testq %rax, %rax
je 0xb89f2
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x20, %edi
callq 0x1a450
movq %rax, %rbx
movq %r14, %rdi
callq 0x5ebd0
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x3877e(%rip), %rsi # 0xf1194
leaq 0x10(%rsp), %rdi
callq 0xb1e64
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x12f, %esi # imm = 0x12F
movq %r14, %rcx
callq 0x5e978
xorl %ebp, %ebp
leaq 0x71517(%rip), %rsi # 0x129f58
leaq -0x5dc0a(%rip), %rdx # 0x5ae3e
movq %rbx, %rdi
callq 0x1af40
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb8a6e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x1a8d0
testb %bpl, %bpl
jne 0xb8a78
jmp 0xb8a80
movq %rax, %r14
movq %rbx, %rdi
callq 0x1a680
movq %r14, %rdi
callq 0x1afc0
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE12get_ref_implIRS9_SD_EET_RT0_:
push rbp; char
push r14; int
push rbx; __int64
sub rsp, 30h
mov r14, rdi
cmp byte ptr [rdi], 3
jnz short loc_B89F2
mov rax, [r14+8]
test rax, rax
jz short loc_B89F2
add rsp, 30h
pop rbx
pop r14
pop rbp
retn
loc_B89F2:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+48h+var_40]
mov [rdx], rax
lea rsi, aIncompatibleRe; "incompatible ReferenceType for get_ref,"...
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA56_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[56],char const*>(char const(&)[56],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 12Fh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+48h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B8A6E
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B8A6E:
test bpl, bpl
jnz short loc_B8A78
jmp short loc_B8A80
mov r14, rax
loc_B8A78:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_B8A80:
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>::get_ref_impl<std::string&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
long long a1)
{
long long result; // rax
nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx
const char *v3; // [rsp+8h] [rbp-40h] BYREF
_QWORD v4[2]; // [rsp+10h] [rbp-38h] BYREF
if ( *(_BYTE *)a1 != 3 || (result = *(_QWORD *)(a1 + 8)) == 0 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
v3 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[56],char const*>(
(long long)v4,
(long long)"incompatible ReferenceType for get_ref, actual type is ",
&v3);
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
exception,
303,
v4);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
return result;
}
| get_ref_impl<std::__cxx11::string&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RDI
CMP byte ptr [RDI],0x3
JNZ 0x001b89f2
MOV RAX,qword ptr [R14 + 0x8]
TEST RAX,RAX
JZ 0x001b89f2
ADD RSP,0x30
POP RBX
POP R14
POP RBP
RET
LAB_001b89f2:
MOV EDI,0x20
CALL 0x0011a450
MOV RBX,RAX
MOV RDI,R14
CALL 0x0015ebd0
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_001b8a0f:
LEA RSI,[0x1f1194]
LEA RDI,[RSP + 0x10]
CALL 0x001b1e64
MOV BPL,0x1
LAB_001b8a23:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x12f
MOV RCX,R14
CALL 0x0015e978
XOR EBP,EBP
LEA RSI,[0x229f58]
LEA RDX,[0x15ae3e]
MOV RDI,RBX
CALL 0x0011af40
|
/* std::__cxx11::string&
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::get_ref_impl<std::__cxx11::string&,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&) */
string * nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::
get_ref_impl<std::__cxx11::string&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(basic_json *param_1)
{
int8 uVar1;
char *local_40;
detail local_38 [32];
if ((*param_1 == (basic_json)0x3) && (*(string **)(param_1 + 8) != (string *)0x0)) {
return *(string **)(param_1 + 8);
}
uVar1 = __cxa_allocate_exception(0x20);
local_40 = (char *)type_name((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)param_1);
/* try { // try from 001b8a0f to 001b8a1f has its CatchHandler @ 001b8a75 */
detail::concat<std::__cxx11::string,char_const(&)[56],char_const*>
(local_38,"incompatible ReferenceType for get_ref, actual type is ",&local_40);
/* try { // try from 001b8a23 to 001b8a4f has its CatchHandler @ 001b8a50 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar1,0x12f,local_38,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar1,&detail::type_error::typeinfo,detail::exception::~exception);
}
| |
35,145 | my_uni_utf8mb3 | eloqsql/strings/ctype-utf8.c | static int my_uni_utf8mb3(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *r, uchar *e)
{
if (wc < 0x80)
{
if (r >= e)
return MY_CS_TOOSMALL;
*r= (uchar) wc;
return 1;
}
if (wc < 0x800)
{
if (r + 2 > e)
return MY_CS_TOOSMALLN(2);
/* U+0080..U+07FF: 00000xxx.xxyyyyyy -> 110xxxxx 10yyyyyy */
*r++= (uchar) (0xC0 | (wc >> 6));
*r= (uchar) (0x80 | (wc & 0x3F));
return 2;
}
if (wc < 0x10000)
{
if (r + 3 > e)
return MY_CS_TOOSMALLN(3);
/* U+0800..U+FFFF: xxxxyyyy.yyzzzzzz -> 1110xxxx 10yyyyyy 10zzzzzz */
*r++= (uchar) (0xE0 | (wc >> 12));
*r++= (uchar) (0x80 | ((wc >> 6) & 0x3f));
*r= (uchar) (0x80 | (wc & 0x3f));
return 3;
}
return MY_CS_ILUNI;
} | O3 | c | my_uni_utf8mb3:
pushq %rbp
movq %rsp, %rbp
cmpq $0x7f, %rsi
ja 0x5354e
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x535c0
movb %sil, (%rdx)
movl $0x1, %eax
jmp 0x535c0
cmpq $0x7ff, %rsi # imm = 0x7FF
ja 0x53581
leaq 0x2(%rdx), %rdi
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %rdi
ja 0x535c0
movl %esi, %eax
shrl $0x6, %eax
orb $-0x40, %al
movb %al, (%rdx)
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x1(%rdx)
movl $0x2, %eax
jmp 0x535c0
xorl %eax, %eax
cmpq $0xffff, %rsi # imm = 0xFFFF
ja 0x535c0
leaq 0x3(%rdx), %rdi
movl $0xffffff99, %eax # imm = 0xFFFFFF99
cmpq %rcx, %rdi
ja 0x535c0
movl %esi, %eax
shrl $0xc, %eax
orb $-0x20, %al
movb %al, (%rdx)
movl %esi, %eax
shrl $0x6, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x1(%rdx)
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x2(%rdx)
movl $0x3, %eax
popq %rbp
retq
| my_uni_utf8mb3:
push rbp
mov rbp, rsp
cmp rsi, 7Fh
ja short loc_5354E
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short loc_535C0
mov [rdx], sil
mov eax, 1
jmp short loc_535C0
loc_5354E:
cmp rsi, 7FFh
ja short loc_53581
lea rdi, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp rdi, rcx
ja short loc_535C0
mov eax, esi
shr eax, 6
or al, 0C0h
mov [rdx], al
and sil, 3Fh
or sil, 80h
mov [rdx+1], sil
mov eax, 2
jmp short loc_535C0
loc_53581:
xor eax, eax
cmp rsi, 0FFFFh
ja short loc_535C0
lea rdi, [rdx+3]
mov eax, 0FFFFFF99h
cmp rdi, rcx
ja short loc_535C0
mov eax, esi
shr eax, 0Ch
or al, 0E0h
mov [rdx], al
mov eax, esi
shr eax, 6
and al, 3Fh
or al, 80h
mov [rdx+1], al
and sil, 3Fh
or sil, 80h
mov [rdx+2], sil
mov eax, 3
loc_535C0:
pop rbp
retn
| long long my_uni_utf8mb3(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
long long result; // rax
if ( a2 > 0x7F )
{
if ( a2 > 0x7FF )
{
result = 0LL;
if ( a2 <= 0xFFFF )
{
result = 4294967193LL;
if ( (unsigned long long)(a3 + 3) <= a4 )
{
*a3 = ((unsigned int)a2 >> 12) | 0xE0;
a3[1] = ((unsigned int)a2 >> 6) & 0x3F | 0x80;
a3[2] = a2 & 0x3F | 0x80;
return 3LL;
}
}
}
else
{
result = 4294967194LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
*a3 = ((unsigned int)a2 >> 6) | 0xC0;
a3[1] = a2 & 0x3F | 0x80;
return 2LL;
}
}
}
else
{
result = 4294967195LL;
if ( (unsigned long long)a3 < a4 )
{
*a3 = a2;
return 1LL;
}
}
return result;
}
| my_uni_utf8mb3:
PUSH RBP
MOV RBP,RSP
CMP RSI,0x7f
JA 0x0015354e
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x001535c0
MOV byte ptr [RDX],SIL
MOV EAX,0x1
JMP 0x001535c0
LAB_0015354e:
CMP RSI,0x7ff
JA 0x00153581
LEA RDI,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP RDI,RCX
JA 0x001535c0
MOV EAX,ESI
SHR EAX,0x6
OR AL,0xc0
MOV byte ptr [RDX],AL
AND SIL,0x3f
OR SIL,0x80
MOV byte ptr [RDX + 0x1],SIL
MOV EAX,0x2
JMP 0x001535c0
LAB_00153581:
XOR EAX,EAX
CMP RSI,0xffff
JA 0x001535c0
LEA RDI,[RDX + 0x3]
MOV EAX,0xffffff99
CMP RDI,RCX
JA 0x001535c0
MOV EAX,ESI
SHR EAX,0xc
OR AL,0xe0
MOV byte ptr [RDX],AL
MOV EAX,ESI
SHR EAX,0x6
AND AL,0x3f
OR AL,0x80
MOV byte ptr [RDX + 0x1],AL
AND SIL,0x3f
OR SIL,0x80
MOV byte ptr [RDX + 0x2],SIL
MOV EAX,0x3
LAB_001535c0:
POP RBP
RET
|
int8 my_uni_utf8mb3(int8 param_1,ulong param_2,byte *param_3,byte *param_4)
{
int8 uVar1;
byte bVar2;
uint uVar3;
uVar3 = (uint)param_2;
bVar2 = (byte)param_2;
if (param_2 < 0x80) {
uVar1 = 0xffffff9b;
if (param_3 < param_4) {
*param_3 = bVar2;
uVar1 = 1;
}
}
else if (param_2 < 0x800) {
uVar1 = 0xffffff9a;
if (param_3 + 2 <= param_4) {
*param_3 = (byte)(uVar3 >> 6) | 0xc0;
param_3[1] = bVar2 & 0x3f | 0x80;
uVar1 = 2;
}
}
else {
uVar1 = 0;
if ((param_2 < 0x10000) && (uVar1 = 0xffffff99, param_3 + 3 <= param_4)) {
*param_3 = (byte)(uVar3 >> 0xc) | 0xe0;
param_3[1] = (byte)(uVar3 >> 6) & 0x3f | 0x80;
param_3[2] = bVar2 & 0x3f | 0x80;
uVar1 = 3;
}
}
return uVar1;
}
| |
35,146 | testing::internal::FlagToEnvVar[abi:cxx11](char const*) | giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest-port.cc | static std::string FlagToEnvVar(const char* flag) {
const std::string full_flag =
(Message() << GTEST_FLAG_PREFIX_ << flag).GetString();
Message env_var;
for (size_t i = 0; i != full_flag.length(); i++) {
env_var << ToUpper(full_flag.c_str()[i]);
}
return env_var.GetString();
} | O3 | cpp | testing::internal::FlagToEnvVar[abi:cxx11](char const*):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x1c968
movq (%r14), %r14
leaq 0x10(%r14), %r12
leaq 0x2b0e7(%rip), %rsi # 0x42345
movl $0x6, %r13d
movl $0x6, %edx
movq %r12, %rdi
callq 0x85b0
testq %r15, %r15
je 0x17283
movq %r15, %rdi
callq 0x8200
movq %rax, %r13
jmp 0x1728a
leaq 0x293cf(%rip), %r15 # 0x40659
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x85b0
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x1cbbf
testq %r14, %r14
je 0x172b3
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
leaq 0x8(%rsp), %rdi
callq 0x1c968
cmpq $0x0, 0x18(%rsp)
movq 0x8(%rsp), %r14
je 0x17303
leaq 0x10(%r14), %r15
xorl %r13d, %r13d
leaq 0x7(%rsp), %r12
movq 0x10(%rsp), %rax
movzbl (%rax,%r13), %edi
callq 0x8a00
movb %al, 0x7(%rsp)
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x85b0
incq %r13
cmpq 0x18(%rsp), %r13
jne 0x172d6
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1cbbf
testq %r14, %r14
je 0x1731c
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x17337
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x84e0
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x1735f
movq %rax, %rbx
jmp 0x17370
movq %rax, %rbx
testq %r14, %r14
je 0x1738b
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
jmp 0x1738b
movq %rax, %rbx
testq %r14, %r14
je 0x17370
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1738b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x84e0
movq %rbx, %rdi
callq 0x8990
| _ZN7testing8internalL12FlagToEnvVarB5cxx11EPKc:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 30h
mov r15, rsi
mov rbx, rdi
lea r14, [rsp+58h+var_50]
mov rdi, r14; this
call _ZN7testing7MessageC2Ev; testing::Message::Message(void)
mov r14, [r14]
lea r12, [r14+10h]
lea rsi, aGtest; "gtest_"
mov r13d, 6
mov edx, 6
mov rdi, r12
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
test r15, r15
jz short loc_17283
mov rdi, r15
call _strlen
mov r13, rax
jmp short loc_1728A
loc_17283:
lea r15, aNull; "(null)"
loc_1728A:
mov rdi, r12
mov rsi, r15
mov rdx, r13
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rdi, [rsp+58h+var_48]
mov rsi, r14
call _ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE; testing::internal::StringStreamToString(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>> *)
test r14, r14
jz short loc_172B3
mov rax, [r14]
mov rdi, r14
call qword ptr [rax+8]
loc_172B3:
lea rdi, [rsp+58h+var_50]; this
call _ZN7testing7MessageC2Ev; testing::Message::Message(void)
cmp [rsp+58h+var_40], 0
mov r14, [rsp+58h+var_50]
jz short loc_17303
lea r15, [r14+10h]
xor r13d, r13d
lea r12, [rsp+58h+var_51]
loc_172D6:
mov rax, [rsp+58h+var_48]
movzx edi, byte ptr [rax+r13]
call _toupper
mov [rsp+58h+var_51], al
mov edx, 1
mov rdi, r15
mov rsi, r12
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
inc r13
cmp r13, [rsp+58h+var_40]
jnz short loc_172D6
loc_17303:
mov rdi, rbx
mov rsi, r14
call _ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE; testing::internal::StringStreamToString(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>> *)
test r14, r14
jz short loc_1731C
mov rax, [r14]
mov rdi, r14
call qword ptr [rax+8]
loc_1731C:
lea rax, [rsp+58h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_17337
mov rsi, [rsp+58h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_17337:
add rsp, 30h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
jmp short loc_1735F
mov rbx, rax
jmp short loc_17370
mov rbx, rax
test r14, r14
jz short loc_1738B
mov rax, [r14]
mov rdi, r14
call qword ptr [rax+8]
jmp short loc_1738B
loc_1735F:
mov rbx, rax
test r14, r14
jz short loc_17370
mov rax, [r14]
mov rdi, r14
call qword ptr [rax+8]
loc_17370:
lea rax, [rsp+arg_18]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1738B
mov rsi, [rsp+arg_18]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1738B:
mov rdi, rbx
call __Unwind_Resume
| void testing::internal::FlagToEnvVar[abi:cxx11](int a1, const char *a2)
{
const char *v2; // r15
long long v3; // r14
long long v4; // r13
int v5; // edx
int v6; // ecx
int v7; // r8d
int v8; // r9d
int v9; // edx
int v10; // ecx
int v11; // r8d
int v12; // r9d
long long v13; // r14
long long i; // r13
char v15; // [rsp+7h] [rbp-51h] BYREF
long long v16; // [rsp+8h] [rbp-50h] BYREF
unsigned __int8 *v17; // [rsp+10h] [rbp-48h] BYREF
long long v18; // [rsp+18h] [rbp-40h]
long long v19; // [rsp+20h] [rbp-38h] BYREF
v2 = a2;
testing::Message::Message((testing::Message *)&v16);
v3 = v16;
v4 = 6LL;
std::__ostream_insert<char,std::char_traits<char>>(v16 + 16, "gtest_", 6LL);
if ( a2 )
v4 = strlen(a2);
else
v2 = "(null)";
std::__ostream_insert<char,std::char_traits<char>>(v3 + 16, v2, v4);
testing::internal::StringStreamToString((unsigned int)&v17, v3, v5, v6, v7, v8);
if ( v3 )
(*(void ( **)(long long))(*(_QWORD *)v3 + 8LL))(v3);
testing::Message::Message((testing::Message *)&v16);
v13 = v16;
if ( v18 )
{
for ( i = 0LL; i != v18; ++i )
{
v15 = toupper(v17[i]);
std::__ostream_insert<char,std::char_traits<char>>(v13 + 16, &v15, 1LL);
}
}
testing::internal::StringStreamToString(a1, v13, v9, v10, v11, v12);
if ( v13 )
(*(void ( **)(long long))(*(_QWORD *)v13 + 8LL))(v13);
if ( v17 != (unsigned __int8 *)&v19 )
operator delete(v17, v19 + 1);
}
| FlagToEnvVar[abi:cxx11]:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x30
MOV R15,RSI
MOV RBX,RDI
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x0011c968
MOV R14,qword ptr [R14]
LEA R12,[R14 + 0x10]
LAB_00117257:
LEA RSI,[0x142345]
MOV R13D,0x6
MOV EDX,0x6
MOV RDI,R12
CALL 0x001085b0
TEST R15,R15
JZ 0x00117283
MOV RDI,R15
CALL 0x00108200
MOV R13,RAX
JMP 0x0011728a
LAB_00117283:
LEA R15,[0x140659]
LAB_0011728a:
MOV RDI,R12
MOV RSI,R15
MOV RDX,R13
CALL 0x001085b0
LEA RDI,[RSP + 0x10]
MOV RSI,R14
CALL 0x0011cbbf
LAB_001172a5:
TEST R14,R14
JZ 0x001172b3
MOV RAX,qword ptr [R14]
MOV RDI,R14
CALL qword ptr [RAX + 0x8]
LAB_001172b3:
LEA RDI,[RSP + 0x8]
CALL 0x0011c968
CMP qword ptr [RSP + 0x18],0x0
MOV R14,qword ptr [RSP + 0x8]
JZ 0x00117303
LEA R15,[R14 + 0x10]
XOR R13D,R13D
LEA R12,[RSP + 0x7]
LAB_001172d6:
MOV RAX,qword ptr [RSP + 0x10]
MOVZX EDI,byte ptr [RAX + R13*0x1]
CALL 0x00108a00
MOV byte ptr [RSP + 0x7],AL
LAB_001172e9:
MOV EDX,0x1
MOV RDI,R15
MOV RSI,R12
CALL 0x001085b0
INC R13
CMP R13,qword ptr [RSP + 0x18]
JNZ 0x001172d6
LAB_00117303:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0011cbbf
LAB_0011730e:
TEST R14,R14
JZ 0x0011731c
MOV RAX,qword ptr [R14]
MOV RDI,R14
CALL qword ptr [RAX + 0x8]
LAB_0011731c:
LEA RAX,[RSP + 0x20]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00117337
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x001084e0
LAB_00117337:
ADD RSP,0x30
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* testing::internal::FlagToEnvVar[abi:cxx11](char const*) */
void __thiscall testing::internal::FlagToEnvVar_abi_cxx11_(internal *this,char *param_1)
{
ostream *poVar1;
long *plVar2;
int iVar3;
size_t sVar4;
long lVar5;
char local_51;
long *local_50;
long *local_48;
long local_40;
long local_38 [2];
Message::Message((Message *)&local_50);
plVar2 = local_50;
poVar1 = (ostream *)(local_50 + 2);
/* try { // try from 00117257 to 001172a4 has its CatchHandler @ 0011734c */
sVar4 = 6;
std::__ostream_insert<char,std::char_traits<char>>(poVar1,"gtest_",6);
if (param_1 == (char *)0x0) {
param_1 = "(null)";
}
else {
sVar4 = strlen(param_1);
}
std::__ostream_insert<char,std::char_traits<char>>(poVar1,param_1,sVar4);
StringStreamToString((stringstream *)&local_48);
if (plVar2 != (long *)0x0) {
(**(code **)(*plVar2 + 8))(plVar2);
}
/* try { // try from 001172b3 to 001172bc has its CatchHandler @ 00117347 */
Message::Message((Message *)&local_50);
if (local_40 != 0) {
lVar5 = 0;
do {
iVar3 = toupper((uint)*(byte *)((long)local_48 + lVar5));
local_51 = (char)iVar3;
/* try { // try from 001172e9 to 001172f8 has its CatchHandler @ 0011735f */
std::__ostream_insert<char,std::char_traits<char>>((ostream *)(local_50 + 2),&local_51,1);
lVar5 = lVar5 + 1;
} while (lVar5 != local_40);
}
/* try { // try from 00117303 to 0011730d has its CatchHandler @ 00117345 */
StringStreamToString((stringstream *)this);
if (local_50 != (long *)0x0) {
(**(code **)(*local_50 + 8))(local_50);
}
if (local_48 != local_38) {
operator_delete(local_48,local_38[0] + 1);
}
return;
}
| |
35,147 | my_uca_contraction_find | eloqsql/strings/ctype-uca.c | static inline const MY_CONTRACTION *
my_uca_contraction_find(const MY_CONTRACTIONS *list, my_wc_t *wc, size_t len)
{
MY_CONTRACTION *c, *last;
DBUG_ASSERT(len <= MY_UCA_MAX_CONTRACTION);
for (c= list->item, last= c + list->nitems; c < last; c++)
{
if ((len >= MY_UCA_MAX_CONTRACTION || c->ch[len] == 0) &&
!c->with_context &&
!my_wmemcmp(c->ch, wc, len))
return c;
}
return NULL;
} | O0 | c | my_uca_contraction_find:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
jmp 0x48a06
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
imulq $0x58, (%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x48a7f
cmpq $0x6, -0x20(%rbp)
jae 0x48a45
movq -0x28(%rbp), %rax
movq -0x20(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
jne 0x48a6f
movq -0x28(%rbp), %rax
cmpb $0x0, 0x52(%rax)
jne 0x48a6f
movq -0x28(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x48aa0
cmpl $0x0, %eax
jne 0x48a6f
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x48a87
jmp 0x48a71
movq -0x28(%rbp), %rax
addq $0x58, %rax
movq %rax, -0x28(%rbp)
jmp 0x48a25
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_uca_contraction_find:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
jmp short $+2
loc_48A06:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov rcx, [rbp+var_10]
imul rcx, [rcx], 58h ; 'X'
add rax, rcx
mov [rbp+var_30], rax
loc_48A25:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jnb short loc_48A7F
cmp [rbp+var_20], 6
jnb short loc_48A45
mov rax, [rbp+var_28]
mov rcx, [rbp+var_20]
cmp qword ptr [rax+rcx*8], 0
jnz short loc_48A6F
loc_48A45:
mov rax, [rbp+var_28]
cmp byte ptr [rax+52h], 0
jnz short loc_48A6F
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call my_wmemcmp
cmp eax, 0
jnz short loc_48A6F
mov rax, [rbp+var_28]
mov [rbp+var_8], rax
jmp short loc_48A87
loc_48A6F:
jmp short $+2
loc_48A71:
mov rax, [rbp+var_28]
add rax, 58h ; 'X'
mov [rbp+var_28], rax
jmp short loc_48A25
loc_48A7F:
mov [rbp+var_8], 0
loc_48A87:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
| unsigned long long my_uca_contraction_find(_QWORD *a1, long long a2, unsigned long long a3)
{
unsigned long long v4; // [rsp+0h] [rbp-30h]
unsigned long long v5; // [rsp+8h] [rbp-28h]
v5 = a1[1];
v4 = 88LL * *a1 + v5;
while ( v5 < v4 )
{
if ( (a3 >= 6 || !*(_QWORD *)(v5 + 8 * a3)) && !*(_BYTE *)(v5 + 82) && !(unsigned int)my_wmemcmp(v5, a2, a3) )
return v5;
v5 += 88LL;
}
return 0LL;
}
| my_uca_contraction_find:
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
JMP 0x00148a06
LAB_00148a06:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x10]
IMUL RCX,qword ptr [RCX],0x58
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
LAB_00148a25:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x00148a7f
CMP qword ptr [RBP + -0x20],0x6
JNC 0x00148a45
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x20]
CMP qword ptr [RAX + RCX*0x8],0x0
JNZ 0x00148a6f
LAB_00148a45:
MOV RAX,qword ptr [RBP + -0x28]
CMP byte ptr [RAX + 0x52],0x0
JNZ 0x00148a6f
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x00148aa0
CMP EAX,0x0
JNZ 0x00148a6f
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00148a87
LAB_00148a6f:
JMP 0x00148a71
LAB_00148a71:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x58
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00148a25
LAB_00148a7f:
MOV qword ptr [RBP + -0x8],0x0
LAB_00148a87:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
ulong my_uca_contraction_find(long *param_1,int8 param_2,ulong param_3)
{
int iVar1;
ulong uVar2;
ulong local_30;
local_30 = param_1[1];
uVar2 = local_30 + *param_1 * 0x58;
while( true ) {
if (uVar2 <= local_30) {
return 0;
}
if ((((5 < param_3) || (*(long *)(local_30 + param_3 * 8) == 0)) &&
(*(char *)(local_30 + 0x52) == '\0')) &&
(iVar1 = my_wmemcmp(local_30,param_2,param_3), iVar1 == 0)) break;
local_30 = local_30 + 0x58;
}
return local_30;
}
| |
35,148 | ma_read_dynamic_record | eloqsql/storage/maria/ma_dynrec.c | int _ma_read_dynamic_record(MARIA_HA *info, uchar *buf,
MARIA_RECORD_POS filepos)
{
int block_of_record;
uint b_type;
MARIA_BLOCK_INFO block_info;
File file;
uchar *UNINIT_VAR(to);
uint UNINIT_VAR(left_length);
MARIA_SHARE *share= info->s;
myf flag= MY_WME | (share->temporary ? MY_THREAD_SPECIFIC : 0);
DBUG_ENTER("_ma_read_dynamic_record");
if (filepos == HA_OFFSET_ERROR)
goto err;
file= info->dfile.file;
block_of_record= 0; /* First block of record is numbered as zero. */
block_info.second_read= 0;
do
{
/* A corrupted table can have wrong pointers. (Bug# 19835) */
if (filepos == HA_OFFSET_ERROR)
goto panic;
if (info->opt_flag & WRITE_CACHE_USED &&
(info->rec_cache.pos_in_file < filepos +
MARIA_BLOCK_INFO_HEADER_LENGTH) &&
flush_io_cache(&info->rec_cache))
goto err;
info->rec_cache.seek_not_done=1;
if ((b_type= _ma_get_block_info(info, &block_info, file, filepos)) &
(BLOCK_DELETED | BLOCK_ERROR | BLOCK_SYNC_ERROR |
BLOCK_FATAL_ERROR))
{
if (b_type & (BLOCK_SYNC_ERROR | BLOCK_DELETED))
my_errno=HA_ERR_RECORD_DELETED;
goto err;
}
if (block_of_record++ == 0) /* First block */
{
info->cur_row.total_length= block_info.rec_len;
if (block_info.rec_len > (uint) share->base.max_pack_length)
goto panic;
if (share->base.blobs)
{
if (_ma_alloc_buffer(&info->rec_buff, &info->rec_buff_size,
block_info.rec_len +
share->base.extra_rec_buff_size, flag))
goto err;
}
to= info->rec_buff;
left_length=block_info.rec_len;
}
if (left_length < block_info.data_len || ! block_info.data_len)
goto panic; /* Wrong linked record */
/* copy information that is already read */
{
uint offset= (uint) (block_info.filepos - filepos);
uint prefetch_len= (sizeof(block_info.header) - offset);
filepos+= sizeof(block_info.header);
if (prefetch_len > block_info.data_len)
prefetch_len= block_info.data_len;
if (prefetch_len)
{
memcpy(to, block_info.header + offset, prefetch_len);
block_info.data_len-= prefetch_len;
left_length-= prefetch_len;
to+= prefetch_len;
}
}
/* read rest of record from file */
if (block_info.data_len)
{
if (info->opt_flag & WRITE_CACHE_USED &&
info->rec_cache.pos_in_file < filepos + block_info.data_len &&
flush_io_cache(&info->rec_cache))
goto err;
/*
What a pity that this method is not called 'file_pread' and that
there is no equivalent without seeking. We are at the right
position already. :(
*/
if (share->file_read(info, to, block_info.data_len,
filepos, MYF(MY_NABP)))
goto panic;
left_length-=block_info.data_len;
to+=block_info.data_len;
}
filepos= block_info.next_filepos;
} while (left_length);
info->update|= HA_STATE_AKTIV; /* We have a aktive record */
fast_ma_writeinfo(info);
DBUG_RETURN(_ma_rec_unpack(info,buf,info->rec_buff,block_info.rec_len) !=
MY_FILE_ERROR ? 0 : my_errno);
err:
fast_ma_writeinfo(info);
DBUG_RETURN(my_errno);
panic:
_ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD);
goto err;
} | O3 | c | ma_read_dynamic_record:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, -0xb8(%rbp)
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq (%rdi), %r15
cmpb $0x0, 0x7d9(%r15)
setne %al
cmpq $-0x1, %rdx
je 0x493ba
movq %rdx, %r12
xorl %ecx, %ecx
movb %al, %cl
shll $0x10, %ecx
orq $0x10, %rcx
movq %rcx, -0xc8(%rbp)
movl 0x480(%rbx), %eax
movl %eax, -0xa4(%rbp)
leaq -0x88(%rbp), %rax
movl $0x0, 0x50(%rax)
leaq 0x4b8(%rbx), %rax
movq %rax, -0x98(%rbp)
leaq 0x3a0(%rbx), %rax
movq %rax, -0xb0(%rbp)
leaq 0x460(%rbx), %rax
movq %rax, -0xc0(%rbp)
xorl %r14d, %r14d
movq %rbx, -0xd8(%rbp)
movq %r15, -0xd0(%rbp)
cmpq $-0x1, %r12
je 0x493ad
testb $0x10, 0x61c(%rbx)
je 0x491c9
leaq 0x14(%r12), %rax
movq -0x98(%rbp), %rcx
cmpq %rax, (%rcx)
jae 0x491c9
movq -0x98(%rbp), %rdi
movl $0x1, %esi
callq 0x9535d
testl %eax, %eax
jne 0x493ba
movl $0x1, 0x598(%rbx)
movq %rbx, %rdi
leaq -0x88(%rbp), %rsi
movl -0xa4(%rbp), %edx
movq %r12, %rcx
callq 0x48398
cmpl $0x4, %eax
jae 0x493f8
subl $0x1, %r14d
jae 0x49263
movq -0x70(%rbp), %r13
movq %r13, 0x110(%rbx)
movl 0x3b0(%r15), %eax
cmpq %rax, %r13
ja 0x493ad
cmpl $0x0, 0x3f0(%r15)
je 0x49252
movl 0x424(%r15), %eax
addq %rax, %r13
movq -0xb0(%rbp), %rdi
movq -0xc0(%rbp), %rsi
movq %r13, %rdx
movq -0xc8(%rbp), %rcx
callq 0x6b10b
testb %al, %al
jne 0x493ba
movq -0x70(%rbp), %r13
movq -0xb0(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xa0(%rbp)
movl %r13d, %eax
movq -0x68(%rbp), %rdx
leaq -0x1(%rdx), %rcx
cmpq %rax, %rcx
jae 0x493ad
movl %r14d, -0x8c(%rbp)
movq -0x50(%rbp), %rax
subq %r12, %rax
movl $0x14, %ecx
subl %eax, %ecx
cmpq %rcx, %rdx
movl %edx, %r14d
cmovael %ecx, %r14d
testl %r14d, %r14d
je 0x492ee
movl %eax, %eax
leaq (%rax,%rbp), %rsi
addq $-0x88, %rsi
movl %r14d, %r15d
movq -0xa0(%rbp), %rbx
movq %rbx, %rdi
movq %r15, %rdx
callq 0x29080
movq -0x68(%rbp), %rdx
subl %r14d, %r13d
addq %r15, %rbx
movq %rbx, -0xa0(%rbp)
subq %r15, %rdx
movq -0xd0(%rbp), %r15
movq -0xd8(%rbp), %rbx
movq %rdx, -0x68(%rbp)
movl -0x8c(%rbp), %r14d
jne 0x492f5
jmp 0x4935c
movl -0x8c(%rbp), %r14d
addq $0x14, %r12
testb $0x10, 0x61c(%rbx)
je 0x4932f
leaq (%rdx,%r12), %rax
movq -0x98(%rbp), %rcx
cmpq %rax, (%rcx)
jae 0x4932f
movq -0x98(%rbp), %rdi
movl $0x1, %esi
callq 0x9535d
testl %eax, %eax
jne 0x493ba
movq -0x68(%rbp), %rdx
movl $0x4, %r8d
movq %rbx, %rdi
movq -0xa0(%rbp), %rsi
movq %r12, %rcx
callq *0x6e0(%r15)
testq %rax, %rax
jne 0x493ad
movq -0x68(%rbp), %rax
subl %eax, %r13d
addq %rax, -0xa0(%rbp)
movq -0x48(%rbp), %r12
testl %r13d, %r13d
jne 0x4918c
orb $0x2, 0x624(%rbx)
movq (%rbx), %rax
cmpl $0x0, 0x7b8(%rax)
jne 0x49386
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4276e
movq 0x3a0(%rbx), %rdx
movq -0x70(%rbp), %rcx
movq %rbx, %rdi
movq -0xb8(%rbp), %rsi
callq 0x48c93
movq %rax, %rcx
xorl %eax, %eax
cmpq $-0x1, %rcx
jne 0x493d7
jmp 0x493d0
movq %rbx, %rdi
movl $0x7f, %esi
callq 0x3fc54
movq (%rbx), %rax
cmpl $0x0, 0x7b8(%rax)
jne 0x493d0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4276e
callq 0xa1ac2
movl (%rax), %eax
movq %fs:0x28, %rcx
cmpq -0x30(%rbp), %rcx
jne 0x49409
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb $0x14, %al
je 0x493ba
callq 0xa1ac2
movl $0x86, (%rax)
jmp 0x493ba
callq 0x29250
| _ma_read_dynamic_record:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov [rbp+var_B8], rsi
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov r15, [rdi]
cmp byte ptr [r15+7D9h], 0
setnz al
cmp rdx, 0FFFFFFFFFFFFFFFFh
jz loc_493BA
mov r12, rdx
xor ecx, ecx
mov cl, al
shl ecx, 10h
or rcx, 10h
mov [rbp+var_C8], rcx
mov eax, [rbx+480h]
mov [rbp+var_A4], eax
lea rax, [rbp+var_88]
mov dword ptr [rax+50h], 0
lea rax, [rbx+4B8h]
mov [rbp+var_98], rax
lea rax, [rbx+3A0h]
mov [rbp+var_B0], rax
lea rax, [rbx+460h]
mov [rbp+var_C0], rax
xor r14d, r14d
mov [rbp+var_D8], rbx
mov [rbp+var_D0], r15
loc_4918C:
cmp r12, 0FFFFFFFFFFFFFFFFh
jz loc_493AD
test byte ptr [rbx+61Ch], 10h
jz short loc_491C9
lea rax, [r12+14h]
mov rcx, [rbp+var_98]
cmp [rcx], rax
jnb short loc_491C9
mov rdi, [rbp+var_98]
mov esi, 1
call my_b_flush_io_cache
test eax, eax
jnz loc_493BA
loc_491C9:
mov dword ptr [rbx+598h], 1
mov rdi, rbx
lea rsi, [rbp+var_88]
mov edx, [rbp+var_A4]
mov rcx, r12
call _ma_get_block_info
cmp eax, 4
jnb loc_493F8
sub r14d, 1
jnb short loc_49263
mov r13, [rbp+var_70]
mov [rbx+110h], r13
mov eax, [r15+3B0h]
cmp r13, rax
ja loc_493AD
cmp dword ptr [r15+3F0h], 0
jz short loc_49252
mov eax, [r15+424h]
add r13, rax
mov rdi, [rbp+var_B0]
mov rsi, [rbp+var_C0]
mov rdx, r13
mov rcx, [rbp+var_C8]
call _ma_alloc_buffer
test al, al
jnz loc_493BA
mov r13, [rbp+var_70]
loc_49252:
mov rax, [rbp+var_B0]
mov rax, [rax]
mov [rbp+var_A0], rax
loc_49263:
mov eax, r13d
mov rdx, [rbp+var_68]
lea rcx, [rdx-1]
cmp rcx, rax
jnb loc_493AD
mov [rbp+var_8C], r14d
mov rax, [rbp+var_50]
sub rax, r12
mov ecx, 14h
sub ecx, eax
cmp rdx, rcx
mov r14d, edx
cmovnb r14d, ecx
test r14d, r14d
jz short loc_492EE
mov eax, eax
lea rsi, [rax+rbp]
add rsi, 0FFFFFFFFFFFFFF78h
mov r15d, r14d
mov rbx, [rbp+var_A0]
mov rdi, rbx
mov rdx, r15
call _memcpy
mov rdx, [rbp+var_68]
sub r13d, r14d
add rbx, r15
mov [rbp+var_A0], rbx
sub rdx, r15
mov r15, [rbp+var_D0]
mov rbx, [rbp+var_D8]
mov [rbp+var_68], rdx
mov r14d, [rbp+var_8C]
jnz short loc_492F5
jmp short loc_4935C
loc_492EE:
mov r14d, [rbp+var_8C]
loc_492F5:
add r12, 14h
test byte ptr [rbx+61Ch], 10h
jz short loc_4932F
lea rax, [rdx+r12]
mov rcx, [rbp+var_98]
cmp [rcx], rax
jnb short loc_4932F
mov rdi, [rbp+var_98]
mov esi, 1
call my_b_flush_io_cache
test eax, eax
jnz loc_493BA
mov rdx, [rbp+var_68]
loc_4932F:
mov r8d, 4
mov rdi, rbx
mov rsi, [rbp+var_A0]
mov rcx, r12
call qword ptr [r15+6E0h]
test rax, rax
jnz short loc_493AD
mov rax, [rbp+var_68]
sub r13d, eax
add [rbp+var_A0], rax
loc_4935C:
mov r12, [rbp+var_48]
test r13d, r13d
jnz loc_4918C
or byte ptr [rbx+624h], 2
mov rax, [rbx]
cmp dword ptr [rax+7B8h], 0
jnz short loc_49386
mov rdi, rbx
xor esi, esi
call _ma_writeinfo
loc_49386:
mov rdx, [rbx+3A0h]
mov rcx, [rbp+var_70]
mov rdi, rbx
mov rsi, [rbp+var_B8]
call _ma_rec_unpack
mov rcx, rax
xor eax, eax
cmp rcx, 0FFFFFFFFFFFFFFFFh
jnz short loc_493D7
jmp short loc_493D0
loc_493AD:
mov rdi, rbx
mov esi, 7Fh
call _ma_set_fatal_error
loc_493BA:
mov rax, [rbx]
cmp dword ptr [rax+7B8h], 0
jnz short loc_493D0
mov rdi, rbx
xor esi, esi
call _ma_writeinfo
loc_493D0:
call _my_thread_var
mov eax, [rax]
loc_493D7:
mov rcx, fs:28h
cmp rcx, [rbp+var_30]
jnz short loc_49409
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_493F8:
test al, 14h
jz short loc_493BA
call _my_thread_var
mov dword ptr [rax], 86h
jmp short loc_493BA
loc_49409:
call ___stack_chk_fail
| long long ma_read_dynamic_record(_DWORD *a1, _WORD *a2, long long a3, long long a4, unsigned long long a5, int a6)
{
unsigned long long v6; // r13
long long v7; // rbx
long long v8; // r15
long long v9; // r12
long long v10; // rcx
int v11; // r14d
unsigned int block_info; // eax
bool v13; // cf
int v14; // r14d
unsigned int v15; // r14d
bool v16; // zf
long long v17; // r12
long long v18; // rcx
long long result; // rax
_DWORD *v20; // [rsp+8h] [rbp-D8h]
long long v21; // [rsp+10h] [rbp-D0h]
long long v22; // [rsp+18h] [rbp-C8h]
_DWORD *v23; // [rsp+20h] [rbp-C0h]
_QWORD *v24; // [rsp+30h] [rbp-B0h]
unsigned int v25; // [rsp+3Ch] [rbp-A4h]
long long v26; // [rsp+40h] [rbp-A0h]
_QWORD *v27; // [rsp+48h] [rbp-98h]
int v28; // [rsp+54h] [rbp-8Ch]
unsigned __int8 v29[24]; // [rsp+58h] [rbp-88h] BYREF
unsigned long long v30; // [rsp+70h] [rbp-70h]
unsigned long long v31; // [rsp+78h] [rbp-68h]
long long v32; // [rsp+90h] [rbp-50h]
long long v33; // [rsp+98h] [rbp-48h]
int v34; // [rsp+A8h] [rbp-38h]
unsigned long long v35; // [rsp+B0h] [rbp-30h]
v7 = (long long)a1;
v35 = __readfsqword(0x28u);
v8 = *(_QWORD *)a1;
if ( a3 != -1 )
{
v9 = a3;
v10 = ((unsigned __int8)(*(_BYTE *)(*(_QWORD *)a1 + 2009LL) != 0) << 16) | 0x10LL;
v22 = v10;
v25 = a1[288];
v34 = 0;
v27 = a1 + 302;
v24 = a1 + 232;
v23 = a1 + 280;
v11 = 0;
v20 = a1;
v21 = v8;
while ( 1 )
{
if ( v9 == -1 )
{
LABEL_32:
a1 = (_DWORD *)v7;
ma_set_fatal_error((_DWORD *)v7, 127, a3, v10, a5, a6);
goto LABEL_33;
}
if ( (*(_BYTE *)(v7 + 1564) & 0x10) != 0 && *v27 < (unsigned long long)(v9 + 20) )
{
a1 = v27;
if ( (unsigned int)my_b_flush_io_cache(v27, 1LL) )
goto LABEL_33;
}
*(_DWORD *)(v7 + 1432) = 1;
a1 = (_DWORD *)v7;
block_info = ma_get_block_info(v7, v29, v25, v9, a5, a6);
if ( block_info >= 4 )
{
if ( (block_info & 0x14) != 0 )
*(_DWORD *)my_thread_var(v7) = 134;
goto LABEL_33;
}
v13 = v11 == 0;
v14 = v11 - 1;
if ( v13 )
{
v6 = v30;
*(_QWORD *)(v7 + 272) = v30;
if ( v6 > *(unsigned int *)(v8 + 944) )
goto LABEL_32;
if ( *(_DWORD *)(v8 + 1008) )
{
a1 = v24;
if ( (unsigned __int8)ma_alloc_buffer(v24, v23, *(unsigned int *)(v8 + 1060) + v6, v22) )
goto LABEL_33;
LODWORD(v6) = v30;
}
v26 = *v24;
}
a3 = v31;
v10 = v31 - 1;
if ( v31 - 1 >= (unsigned int)v6 )
goto LABEL_32;
v28 = v14;
v15 = v31;
if ( v31 >= (unsigned int)(20 - (v32 - v9)) )
v15 = 20 - (v32 - v9);
if ( !v15 )
break;
memcpy(v26, &v29[(unsigned int)(v32 - v9)], v15);
LODWORD(v6) = v6 - v15;
v26 += v15;
a3 = v31 - v15;
v16 = v31 == v15;
v8 = v21;
v7 = (long long)v20;
v31 = a3;
v11 = v28;
if ( !v16 )
goto LABEL_21;
LABEL_27:
v9 = v33;
if ( !(_DWORD)v6 )
{
*(_BYTE *)(v7 + 1572) |= 2u;
if ( !*(_DWORD *)(*(_QWORD *)v7 + 1976LL) )
ma_writeinfo((long long *)v7, 0);
a1 = (_DWORD *)v7;
v18 = ma_rec_unpack((_DWORD *)v7, a2, *(_QWORD *)(v7 + 928), v30, a5, a6);
result = 0LL;
if ( v18 != -1 )
return result;
return *(unsigned int *)my_thread_var(a1);
}
}
v11 = v28;
LABEL_21:
v17 = v9 + 20;
if ( (*(_BYTE *)(v7 + 1564) & 0x10) != 0 && *v27 < (unsigned long long)(a3 + v17) )
{
a1 = v27;
if ( (unsigned int)my_b_flush_io_cache(v27, 1LL) )
goto LABEL_33;
a3 = v31;
}
if ( (*(long long ( **)(long long, long long, long long, long long, long long))(v8 + 1760))(v7, v26, a3, v17, 4LL) )
goto LABEL_32;
LODWORD(v6) = v6 - v31;
v26 += v31;
goto LABEL_27;
}
LABEL_33:
if ( !*(_DWORD *)(*(_QWORD *)v7 + 1976LL) )
{
a1 = (_DWORD *)v7;
ma_writeinfo((long long *)v7, 0);
}
return *(unsigned int *)my_thread_var(a1);
}
| _ma_read_dynamic_record:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV qword ptr [RBP + -0xb8],RSI
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV R15,qword ptr [RDI]
CMP byte ptr [R15 + 0x7d9],0x0
SETNZ AL
CMP RDX,-0x1
JZ 0x001493ba
MOV R12,RDX
XOR ECX,ECX
MOV CL,AL
SHL ECX,0x10
OR RCX,0x10
MOV qword ptr [RBP + -0xc8],RCX
MOV EAX,dword ptr [RBX + 0x480]
MOV dword ptr [RBP + -0xa4],EAX
LEA RAX,[RBP + -0x88]
MOV dword ptr [RAX + 0x50],0x0
LEA RAX,[RBX + 0x4b8]
MOV qword ptr [RBP + -0x98],RAX
LEA RAX,[RBX + 0x3a0]
MOV qword ptr [RBP + -0xb0],RAX
LEA RAX,[RBX + 0x460]
MOV qword ptr [RBP + -0xc0],RAX
XOR R14D,R14D
MOV qword ptr [RBP + -0xd8],RBX
MOV qword ptr [RBP + -0xd0],R15
LAB_0014918c:
CMP R12,-0x1
JZ 0x001493ad
TEST byte ptr [RBX + 0x61c],0x10
JZ 0x001491c9
LEA RAX,[R12 + 0x14]
MOV RCX,qword ptr [RBP + -0x98]
CMP qword ptr [RCX],RAX
JNC 0x001491c9
MOV RDI,qword ptr [RBP + -0x98]
MOV ESI,0x1
CALL 0x0019535d
TEST EAX,EAX
JNZ 0x001493ba
LAB_001491c9:
MOV dword ptr [RBX + 0x598],0x1
MOV RDI,RBX
LEA RSI,[RBP + -0x88]
MOV EDX,dword ptr [RBP + -0xa4]
MOV RCX,R12
CALL 0x00148398
CMP EAX,0x4
JNC 0x001493f8
SUB R14D,0x1
JNC 0x00149263
MOV R13,qword ptr [RBP + -0x70]
MOV qword ptr [RBX + 0x110],R13
MOV EAX,dword ptr [R15 + 0x3b0]
CMP R13,RAX
JA 0x001493ad
CMP dword ptr [R15 + 0x3f0],0x0
JZ 0x00149252
MOV EAX,dword ptr [R15 + 0x424]
ADD R13,RAX
MOV RDI,qword ptr [RBP + -0xb0]
MOV RSI,qword ptr [RBP + -0xc0]
MOV RDX,R13
MOV RCX,qword ptr [RBP + -0xc8]
CALL 0x0016b10b
TEST AL,AL
JNZ 0x001493ba
MOV R13,qword ptr [RBP + -0x70]
LAB_00149252:
MOV RAX,qword ptr [RBP + -0xb0]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0xa0],RAX
LAB_00149263:
MOV EAX,R13D
MOV RDX,qword ptr [RBP + -0x68]
LEA RCX,[RDX + -0x1]
CMP RCX,RAX
JNC 0x001493ad
MOV dword ptr [RBP + -0x8c],R14D
MOV RAX,qword ptr [RBP + -0x50]
SUB RAX,R12
MOV ECX,0x14
SUB ECX,EAX
CMP RDX,RCX
MOV R14D,EDX
CMOVNC R14D,ECX
TEST R14D,R14D
JZ 0x001492ee
MOV EAX,EAX
LEA RSI,[RAX + RBP*0x1]
ADD RSI,-0x88
MOV R15D,R14D
MOV RBX,qword ptr [RBP + -0xa0]
MOV RDI,RBX
MOV RDX,R15
CALL 0x00129080
MOV RDX,qword ptr [RBP + -0x68]
SUB R13D,R14D
ADD RBX,R15
MOV qword ptr [RBP + -0xa0],RBX
SUB RDX,R15
MOV R15,qword ptr [RBP + -0xd0]
MOV RBX,qword ptr [RBP + -0xd8]
MOV qword ptr [RBP + -0x68],RDX
MOV R14D,dword ptr [RBP + -0x8c]
JNZ 0x001492f5
JMP 0x0014935c
LAB_001492ee:
MOV R14D,dword ptr [RBP + -0x8c]
LAB_001492f5:
ADD R12,0x14
TEST byte ptr [RBX + 0x61c],0x10
JZ 0x0014932f
LEA RAX,[RDX + R12*0x1]
MOV RCX,qword ptr [RBP + -0x98]
CMP qword ptr [RCX],RAX
JNC 0x0014932f
MOV RDI,qword ptr [RBP + -0x98]
MOV ESI,0x1
CALL 0x0019535d
TEST EAX,EAX
JNZ 0x001493ba
MOV RDX,qword ptr [RBP + -0x68]
LAB_0014932f:
MOV R8D,0x4
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0xa0]
MOV RCX,R12
CALL qword ptr [R15 + 0x6e0]
TEST RAX,RAX
JNZ 0x001493ad
MOV RAX,qword ptr [RBP + -0x68]
SUB R13D,EAX
ADD qword ptr [RBP + -0xa0],RAX
LAB_0014935c:
MOV R12,qword ptr [RBP + -0x48]
TEST R13D,R13D
JNZ 0x0014918c
OR byte ptr [RBX + 0x624],0x2
MOV RAX,qword ptr [RBX]
CMP dword ptr [RAX + 0x7b8],0x0
JNZ 0x00149386
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0014276e
LAB_00149386:
MOV RDX,qword ptr [RBX + 0x3a0]
MOV RCX,qword ptr [RBP + -0x70]
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0xb8]
CALL 0x00148c93
MOV RCX,RAX
XOR EAX,EAX
CMP RCX,-0x1
JNZ 0x001493d7
JMP 0x001493d0
LAB_001493ad:
MOV RDI,RBX
MOV ESI,0x7f
CALL 0x0013fc54
LAB_001493ba:
MOV RAX,qword ptr [RBX]
CMP dword ptr [RAX + 0x7b8],0x0
JNZ 0x001493d0
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0014276e
LAB_001493d0:
CALL 0x001a1ac2
MOV EAX,dword ptr [RAX]
LAB_001493d7:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x30]
JNZ 0x00149409
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001493f8:
TEST AL,0x14
JZ 0x001493ba
CALL 0x001a1ac2
MOV dword ptr [RAX],0x86
JMP 0x001493ba
LAB_00149409:
CALL 0x00129250
|
int4 _ma_read_dynamic_record(long *param_1,int8 param_2,long param_3)
{
ulong *puVar1;
char cVar2;
long lVar3;
char cVar4;
int iVar5;
uint uVar6;
uint uVar7;
int4 uVar8;
long lVar9;
long lVar10;
int4 *puVar11;
uint uVar12;
ulong unaff_R13;
int iVar13;
uint uVar14;
ulong __n;
long in_FS_OFFSET;
bool bVar15;
void *local_a8;
int1 local_90 [24];
ulong local_78;
ulong local_70;
int8 local_58;
long local_50;
int4 local_40;
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
lVar10 = *param_1;
cVar2 = *(char *)(lVar10 + 0x7d9);
if (param_3 == -1) {
LAB_001493ba:
if (*(int *)(*param_1 + 0x7b8) == 0) {
_ma_writeinfo(param_1,0);
}
}
else {
lVar3 = param_1[0x90];
local_40 = 0;
puVar1 = (ulong *)(param_1 + 0x97);
iVar13 = 0;
do {
if (param_3 == -1) {
LAB_001493ad:
_ma_set_fatal_error(param_1,0x7f);
goto LAB_001493ba;
}
if ((((*(byte *)((long)param_1 + 0x61c) & 0x10) != 0) && (*puVar1 < param_3 + 0x14U)) &&
(iVar5 = my_b_flush_io_cache(puVar1,1), iVar5 != 0)) goto LAB_001493ba;
*(int4 *)(param_1 + 0xb3) = 1;
uVar6 = _ma_get_block_info(param_1,local_90,(int)lVar3,param_3);
if (3 < uVar6) {
if ((uVar6 & 0x14) != 0) {
puVar11 = (int4 *)_my_thread_var();
*puVar11 = 0x86;
}
goto LAB_001493ba;
}
bVar15 = iVar13 == 0;
iVar13 = iVar13 + -1;
if (bVar15) {
param_1[0x22] = local_78;
if (*(uint *)(lVar10 + 0x3b0) < local_78) goto LAB_001493ad;
if ((*(int *)(lVar10 + 0x3f0) != 0) &&
(cVar4 = _ma_alloc_buffer(param_1 + 0x74,param_1 + 0x8c,
local_78 + *(uint *)(lVar10 + 0x424),
(ulong)(cVar2 != '\0') << 0x10 | 0x10), cVar4 != '\0'))
goto LAB_001493ba;
local_a8 = (void *)param_1[0x74];
unaff_R13 = local_78;
}
uVar6 = (uint)unaff_R13;
if ((unaff_R13 & 0xffffffff) <= local_70 - 1) goto LAB_001493ad;
uVar7 = (int)local_58 - (int)param_3;
uVar12 = 0x14 - uVar7;
uVar14 = (uint)local_70;
if (uVar12 <= local_70) {
uVar14 = uVar12;
}
if (uVar14 == 0) {
LAB_001492f5:
if ((((*(byte *)((long)param_1 + 0x61c) & 0x10) != 0) &&
(*puVar1 < local_70 + param_3 + 0x14)) &&
(iVar5 = my_b_flush_io_cache(puVar1,1), iVar5 != 0)) goto LAB_001493ba;
lVar9 = (**(code **)(lVar10 + 0x6e0))(param_1,local_a8,local_70,param_3 + 0x14,4);
if (lVar9 != 0) goto LAB_001493ad;
uVar6 = uVar6 - (int)local_70;
local_a8 = (void *)((long)local_a8 + local_70);
}
else {
__n = (ulong)uVar14;
memcpy(local_a8,local_90 + uVar7,__n);
uVar6 = uVar6 - uVar14;
local_a8 = (void *)((long)local_a8 + __n);
local_70 = local_70 - __n;
if (local_70 != 0) goto LAB_001492f5;
}
unaff_R13 = (ulong)uVar6;
param_3 = local_50;
} while (uVar6 != 0);
*(byte *)((long)param_1 + 0x624) = *(byte *)((long)param_1 + 0x624) | 2;
if (*(int *)(*param_1 + 0x7b8) == 0) {
_ma_writeinfo(param_1,0);
}
lVar10 = _ma_rec_unpack(param_1,param_2,param_1[0x74],local_78);
uVar8 = 0;
if (lVar10 != -1) goto LAB_001493d7;
}
puVar11 = (int4 *)_my_thread_var();
uVar8 = *puVar11;
LAB_001493d7:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return uVar8;
}
| |
35,149 | glfwGetWindowSize | untodesu[P]riteg/build_O1/_deps/glfw-src/src/window.c | GLFWAPI void glfwGetWindowSize(GLFWwindow* handle, int* width, int* height)
{
_GLFWwindow* window = (_GLFWwindow*) handle;
assert(window != NULL);
if (width)
*width = 0;
if (height)
*height = 0;
_GLFW_REQUIRE_INIT();
_glfwPlatformGetWindowSize(window, width, height);
} | O1 | c | glfwGetWindowSize:
testq %rdi, %rdi
je 0x1d5ac
testq %rsi, %rsi
je 0x1d582
movl $0x0, (%rsi)
testq %rdx, %rdx
je 0x1d58d
movl $0x0, (%rdx)
leaq 0x870a4(%rip), %rax # 0xa4638
cmpl $0x0, (%rax)
je 0x1d59e
jmp 0x22dbf
movl $0x10001, %edi # imm = 0x10001
xorl %esi, %esi
xorl %eax, %eax
jmp 0x19081
pushq %rax
leaq 0x4604a(%rip), %rdi # 0x635fe
leaq 0x62c87(%rip), %rsi # 0x80242
leaq 0x62f2b(%rip), %rcx # 0x804ed
movl $0x21e, %edx # imm = 0x21E
callq 0xc540
| glfwGetWindowSize:
test rdi, rdi
jz short loc_1D5AC
test rsi, rsi
jz short loc_1D582
mov dword ptr [rsi], 0
loc_1D582:
test rdx, rdx
jz short loc_1D58D
mov dword ptr [rdx], 0
loc_1D58D:
lea rax, _glfw
cmp dword ptr [rax], 0
jz short loc_1D59E
jmp _glfwPlatformGetWindowSize
loc_1D59E:
mov edi, 10001h
xor esi, esi
xor eax, eax
jmp _glfwInputError
loc_1D5AC:
push rax
lea rdi, aWindowNull; "window != NULL"
lea rsi, aWorkspaceLlm4b_15; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidGlfwgetwin_0; "void glfwGetWindowSize(GLFWwindow *, in"...
mov edx, 21Eh
call ___assert_fail
| long long ( * glfwGetWindowSize(long long a1, _DWORD *a2, _DWORD *a3))(_QWORD, _QWORD)
{
if ( !a1 )
__assert_fail(
"window != NULL",
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O1/_deps/glfw-src/src/window.c",
542LL,
"void glfwGetWindowSize(GLFWwindow *, int *, int *)");
if ( a2 )
*a2 = 0;
if ( a3 )
*a3 = 0;
if ( glfw[0] )
return (long long ( *)(_QWORD, _QWORD))glfwPlatformGetWindowSize(a1, a2, a3);
else
return glfwInputError(0x10001u, 0LL);
}
| glfwGetWindowSize:
TEST RDI,RDI
JZ 0x0011d5ac
TEST RSI,RSI
JZ 0x0011d582
MOV dword ptr [RSI],0x0
LAB_0011d582:
TEST RDX,RDX
JZ 0x0011d58d
MOV dword ptr [RDX],0x0
LAB_0011d58d:
LEA RAX,[0x1a4638]
CMP dword ptr [RAX],0x0
JZ 0x0011d59e
JMP 0x00122dbf
LAB_0011d59e:
MOV EDI,0x10001
XOR ESI,ESI
XOR EAX,EAX
JMP 0x00119081
LAB_0011d5ac:
PUSH RAX
LEA RDI,[0x1635fe]
LEA RSI,[0x180242]
LEA RCX,[0x1804ed]
MOV EDX,0x21e
CALL 0x0010c540
|
void glfwGetWindowSize(long param_1,int4 *param_2,int4 *param_3)
{
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("window != NULL",
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O1/_deps/glfw-src/src/window.c"
,0x21e,"void glfwGetWindowSize(GLFWwindow *, int *, int *)");
}
if (param_2 != (int4 *)0x0) {
*param_2 = 0;
}
if (param_3 != (int4 *)0x0) {
*param_3 = 0;
}
if (_glfw != 0) {
_glfwPlatformGetWindowSize();
return;
}
_glfwInputError(0x10001,0);
return;
}
| |
35,150 | test_connect | eloqsql/libmariadb/unittest/libmariadb/my_test.h | MYSQL *test_connect(struct my_tests_st *test)
{
MYSQL *mysql;
int i= 0, rc;
int timeout= 10;
my_bool truncation_report= 1;
if (!(mysql = mysql_init(NULL))) {
BAIL_OUT("Not enough memory available - mysql_init failed");
}
mysql_options(mysql, MYSQL_REPORT_DATA_TRUNCATION, &truncation_report);
mysql_options(mysql, MYSQL_OPT_CONNECT_TIMEOUT, &timeout);
if (plugindir)
mysql_options(mysql, MYSQL_PLUGIN_DIR, plugindir);
/* option handling */
if (test && test->options) {
while (test->options[i].option)
{
if (mysql_options(mysql, test->options[i].option, test->options[i].value)) {
diag("Couldn't set option %d. Error (%d) %s", test->options[i].option,
mysql_errno(mysql), mysql_error(mysql));
mysql_close(mysql);
return(NULL);
}
i++;
}
}
if (!(my_test_connect(mysql, hostname, username, password,
schema, port, socketname, (test) ? test->connect_flags:0)))
{
diag("Couldn't establish connection to server %s. Error (%d): %s",
hostname, mysql_errno(mysql), mysql_error(mysql));
mysql_close(mysql);
return(NULL);
}
/* Clear sql_mode when establishing a new connection. */
rc= mysql_query(mysql, "SET sql_mode=''");
if (rc)
{
diag("Error (%d): %s (%d) in %s line %d", rc, mysql_error(mysql),
mysql_errno(mysql), __FILE__, __LINE__);
return(NULL);
}
return(mysql);
} | O0 | c | test_connect:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x10(%rbp)
movl $0x0, -0x1c(%rbp)
movl $0xa, -0x24(%rbp)
movb $0x1, -0x25(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x1aa40
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
jne 0x14292
leaq 0x37061(%rip), %rdi # 0x4b2ec
movb $0x0, %al
callq 0x15490
movq -0x18(%rbp), %rdi
movl $0x13, %esi
leaq -0x25(%rbp), %rdx
callq 0x21a90
movq -0x18(%rbp), %rdi
xorl %esi, %esi
leaq -0x24(%rbp), %rdx
callq 0x21a90
cmpq $0x0, 0x4c0ed(%rip) # 0x603a8
je 0x142d2
movq -0x18(%rbp), %rdi
movq 0x4c0e0(%rip), %rdx # 0x603a8
movl $0x16, %esi
callq 0x21a90
cmpq $0x0, -0x10(%rbp)
je 0x143ae
movq -0x10(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x143ae
jmp 0x142ee
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x1c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpl $0x0, (%rax)
je 0x143ac
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x1c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %esi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x1c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rdx
callq 0x21a90
cmpl $0x0, %eax
je 0x1439e
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x1c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %eax
movl %eax, -0x30(%rbp)
movq -0x18(%rbp), %rdi
callq 0x21ce0
movl %eax, -0x2c(%rbp)
movq -0x18(%rbp), %rdi
callq 0x21d10
movl -0x30(%rbp), %esi
movl -0x2c(%rbp), %edx
movq %rax, %rcx
leaq 0x36f9b(%rip), %rdi # 0x4b31c
movb $0x0, %al
callq 0x15560
movq -0x18(%rbp), %rdi
callq 0x1db10
movq $0x0, -0x8(%rbp)
jmp 0x14509
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x142ee
jmp 0x143ae
movq -0x18(%rbp), %rax
movq %rax, -0x68(%rbp)
movq 0x4bfb3(%rip), %rax # 0x60370
movq %rax, -0x60(%rbp)
movq 0x4bfb0(%rip), %rax # 0x60378
movq %rax, -0x58(%rbp)
movq 0x4bfad(%rip), %rax # 0x60380
movq %rax, -0x50(%rbp)
movq 0x4bfaa(%rip), %rax # 0x60388
movq %rax, -0x48(%rbp)
movl 0x4bfa8(%rip), %eax # 0x60390
movl %eax, -0x3c(%rbp)
movq 0x4bfa6(%rip), %rax # 0x60398
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x1440b
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x70(%rbp)
jmp 0x14413
xorl %eax, %eax
movq %rax, -0x70(%rbp)
jmp 0x14413
movq -0x38(%rbp), %r10
movl -0x3c(%rbp), %r9d
movq -0x48(%rbp), %r8
movq -0x50(%rbp), %rcx
movq -0x58(%rbp), %rdx
movq -0x60(%rbp), %rsi
movq -0x68(%rbp), %rdi
movq -0x70(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x14520
cmpq $0x0, %rax
jne 0x14492
movq 0x4bf22(%rip), %rax # 0x60370
movq %rax, -0x80(%rbp)
movq -0x18(%rbp), %rdi
callq 0x21ce0
movl %eax, -0x74(%rbp)
movq -0x18(%rbp), %rdi
callq 0x21d10
movq -0x80(%rbp), %rsi
movl -0x74(%rbp), %edx
movq %rax, %rcx
leaq 0x36eca(%rip), %rdi # 0x4b342
movb $0x0, %al
callq 0x15560
movq -0x18(%rbp), %rdi
callq 0x1db10
movq $0x0, -0x8(%rbp)
jmp 0x14509
movq -0x18(%rbp), %rdi
leaq 0x36ee0(%rip), %rsi # 0x4b37d
callq 0x1e390
movl %eax, -0x20(%rbp)
cmpl $0x0, -0x20(%rbp)
je 0x14501
movl -0x20(%rbp), %eax
movl %eax, -0x8c(%rbp)
movq -0x18(%rbp), %rdi
callq 0x21d10
movq %rax, -0x88(%rbp)
movq -0x18(%rbp), %rdi
callq 0x21ce0
movl -0x8c(%rbp), %esi
movq -0x88(%rbp), %rdx
movl %eax, %ecx
leaq 0x36d46(%rip), %rdi # 0x4b229
leaq 0x36c22(%rip), %r8 # 0x4b10c
movl $0x22a, %r9d # imm = 0x22A
movb $0x0, %al
callq 0x15560
movq $0x0, -0x8(%rbp)
jmp 0x14509
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| test_connect:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov [rbp+var_10], rdi
mov [rbp+var_1C], 0
mov [rbp+var_24], 0Ah
mov [rbp+var_25], 1
xor eax, eax
mov edi, eax
call mysql_init
mov [rbp+var_18], rax
cmp rax, 0
jnz short loc_14292
lea rdi, aNotEnoughMemor; "Not enough memory available - mysql_ini"...
mov al, 0
call BAIL_OUT
loc_14292:
mov rdi, [rbp+var_18]
mov esi, 13h
lea rdx, [rbp+var_25]
call mysql_options
mov rdi, [rbp+var_18]
xor esi, esi
lea rdx, [rbp+var_24]
call mysql_options
cmp cs:plugindir, 0
jz short loc_142D2
mov rdi, [rbp+var_18]
mov rdx, cs:plugindir
mov esi, 16h
call mysql_options
loc_142D2:
cmp [rbp+var_10], 0
jz loc_143AE
mov rax, [rbp+var_10]
cmp qword ptr [rax+20h], 0
jz loc_143AE
jmp short $+2
loc_142EE:
mov rax, [rbp+var_10]
mov rax, [rax+20h]
movsxd rcx, [rbp+var_1C]
shl rcx, 4
add rax, rcx
cmp dword ptr [rax], 0
jz loc_143AC
mov rdi, [rbp+var_18]
mov rax, [rbp+var_10]
mov rax, [rax+20h]
movsxd rcx, [rbp+var_1C]
shl rcx, 4
add rax, rcx
mov esi, [rax]
mov rax, [rbp+var_10]
mov rax, [rax+20h]
movsxd rcx, [rbp+var_1C]
shl rcx, 4
add rax, rcx
mov rdx, [rax+8]
call mysql_options
cmp eax, 0
jz short loc_1439E
mov rax, [rbp+var_10]
mov rax, [rax+20h]
movsxd rcx, [rbp+var_1C]
shl rcx, 4
add rax, rcx
mov eax, [rax]
mov [rbp+var_30], eax
mov rdi, [rbp+var_18]
call mysql_errno
mov [rbp+var_2C], eax
mov rdi, [rbp+var_18]
call mysql_error
mov esi, [rbp+var_30]
mov edx, [rbp+var_2C]
mov rcx, rax
lea rdi, aCouldnTSetOpti; "Couldn't set option %d. Error (%d) %s"
mov al, 0
call diag
mov rdi, [rbp+var_18]
call mysql_close
mov [rbp+var_8], 0
jmp loc_14509
loc_1439E:
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
jmp loc_142EE
loc_143AC:
jmp short $+2
loc_143AE:
mov rax, [rbp+var_18]
mov [rbp+var_68], rax
mov rax, cs:hostname
mov [rbp+var_60], rax
mov rax, cs:username
mov [rbp+var_58], rax
mov rax, cs:password
mov [rbp+var_50], rax
mov rax, cs:schema
mov [rbp+var_48], rax
mov eax, cs:port
mov [rbp+var_3C], eax
mov rax, cs:socketname
mov [rbp+var_38], rax
cmp [rbp+var_10], 0
jz short loc_1440B
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov [rbp+var_70], rax
jmp short loc_14413
loc_1440B:
xor eax, eax
mov [rbp+var_70], rax
jmp short $+2
loc_14413:
mov r10, [rbp+var_38]
mov r9d, [rbp+var_3C]
mov r8, [rbp+var_48]
mov rcx, [rbp+var_50]
mov rdx, [rbp+var_58]
mov rsi, [rbp+var_60]
mov rdi, [rbp+var_68]
mov rax, [rbp+var_70]
mov [rsp+0A0h+var_A0], r10
mov [rsp+0A0h+var_98], rax
call my_test_connect
cmp rax, 0
jnz short loc_14492
mov rax, cs:hostname
mov [rbp+var_80], rax
mov rdi, [rbp+var_18]
call mysql_errno
mov [rbp+var_74], eax
mov rdi, [rbp+var_18]
call mysql_error
mov rsi, [rbp+var_80]
mov edx, [rbp+var_74]
mov rcx, rax
lea rdi, aCouldnTEstabli; "Couldn't establish connection to server"...
mov al, 0
call diag
mov rdi, [rbp+var_18]
call mysql_close
mov [rbp+var_8], 0
jmp short loc_14509
loc_14492:
mov rdi, [rbp+var_18]
lea rsi, aSetSqlMode; "SET sql_mode=''"
call mysql_query
mov [rbp+var_20], eax
cmp [rbp+var_20], 0
jz short loc_14501
mov eax, [rbp+var_20]
mov [rbp+var_8C], eax
mov rdi, [rbp+var_18]
call mysql_error
mov [rbp+var_88], rax
mov rdi, [rbp+var_18]
call mysql_errno
mov esi, [rbp+var_8C]
mov rdx, [rbp+var_88]
mov ecx, eax
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 22Ah
mov al, 0
call diag
mov [rbp+var_8], 0
jmp short loc_14509
loc_14501:
mov rax, [rbp+var_18]
mov [rbp+var_8], rax
loc_14509:
mov rax, [rbp+var_8]
add rsp, 0A0h
pop rbp
retn
| long long test_connect(long long a1, int a2)
{
int v2; // edx
int v3; // ecx
int v4; // r8d
int v5; // r9d
int v6; // eax
int v7; // r8d
int v8; // r9d
long long v9; // rax
int v10; // eax
int v11; // r8d
int v12; // r9d
int v13; // eax
int v15; // [rsp+14h] [rbp-8Ch]
int v16; // [rsp+18h] [rbp-88h]
int v17; // [rsp+20h] [rbp-80h]
int v18; // [rsp+2Ch] [rbp-74h]
int v19; // [rsp+70h] [rbp-30h]
int v20; // [rsp+74h] [rbp-2Ch]
char v21; // [rsp+7Bh] [rbp-25h] BYREF
int v22; // [rsp+7Ch] [rbp-24h] BYREF
int v23; // [rsp+80h] [rbp-20h]
int v24; // [rsp+84h] [rbp-1Ch]
long long v25; // [rsp+88h] [rbp-18h]
long long v26; // [rsp+90h] [rbp-10h]
v26 = a1;
v24 = 0;
v22 = 10;
v21 = 1;
v25 = mysql_init(0LL);
if ( !v25 )
BAIL_OUT((unsigned int)"Not enough memory available - mysql_init failed", a2, v2, v3, v4, v5);
mysql_options(v25, 19LL, &v21);
mysql_options(v25, 0LL, &v22);
if ( plugindir )
mysql_options(v25, 22LL, plugindir);
if ( v26 && *(_QWORD *)(v26 + 32) )
{
while ( *(_DWORD *)(16LL * v24 + *(_QWORD *)(v26 + 32)) )
{
if ( (unsigned int)mysql_options(
v25,
*(unsigned int *)(16LL * v24 + *(_QWORD *)(v26 + 32)),
*(_QWORD *)(16LL * v24 + *(_QWORD *)(v26 + 32) + 8)) )
{
v19 = *(_DWORD *)(16LL * v24 + *(_QWORD *)(v26 + 32));
v20 = mysql_errno(v25);
v6 = mysql_error(v25);
diag((unsigned int)"Couldn't set option %d. Error (%d) %s", v19, v20, v6, v7, v8);
mysql_close(v25);
return 0LL;
}
++v24;
}
}
if ( v26 )
v9 = my_test_connect(v25, hostname, username, password, schema, port, socketname, *(_QWORD *)(v26 + 24));
else
v9 = my_test_connect(v25, hostname, username, password, schema, port, socketname, 0LL);
if ( v9 )
{
v23 = mysql_query(v25, "SET sql_mode=''");
if ( v23 )
{
v15 = v23;
v16 = mysql_error(v25);
v13 = mysql_errno(v25);
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v15,
v16,
v13,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",
554);
return 0LL;
}
else
{
return v25;
}
}
else
{
v17 = hostname;
v18 = mysql_errno(v25);
v10 = mysql_error(v25);
diag((unsigned int)"Couldn't establish connection to server %s. Error (%d): %s", v17, v18, v10, v11, v12);
mysql_close(v25);
return 0LL;
}
}
| test_connect:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x1c],0x0
MOV dword ptr [RBP + -0x24],0xa
MOV byte ptr [RBP + -0x25],0x1
XOR EAX,EAX
MOV EDI,EAX
CALL 0x0011aa40
MOV qword ptr [RBP + -0x18],RAX
CMP RAX,0x0
JNZ 0x00114292
LEA RDI,[0x14b2ec]
MOV AL,0x0
CALL 0x00115490
LAB_00114292:
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,0x13
LEA RDX,[RBP + -0x25]
CALL 0x00121a90
MOV RDI,qword ptr [RBP + -0x18]
XOR ESI,ESI
LEA RDX,[RBP + -0x24]
CALL 0x00121a90
CMP qword ptr [0x001603a8],0x0
JZ 0x001142d2
MOV RDI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [0x001603a8]
MOV ESI,0x16
CALL 0x00121a90
LAB_001142d2:
CMP qword ptr [RBP + -0x10],0x0
JZ 0x001143ae
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x20],0x0
JZ 0x001143ae
JMP 0x001142ee
LAB_001142ee:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOVSXD RCX,dword ptr [RBP + -0x1c]
SHL RCX,0x4
ADD RAX,RCX
CMP dword ptr [RAX],0x0
JZ 0x001143ac
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOVSXD RCX,dword ptr [RBP + -0x1c]
SHL RCX,0x4
ADD RAX,RCX
MOV ESI,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOVSXD RCX,dword ptr [RBP + -0x1c]
SHL RCX,0x4
ADD RAX,RCX
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x00121a90
CMP EAX,0x0
JZ 0x0011439e
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOVSXD RCX,dword ptr [RBP + -0x1c]
SHL RCX,0x4
ADD RAX,RCX
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x30],EAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00121ce0
MOV dword ptr [RBP + -0x2c],EAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00121d10
MOV ESI,dword ptr [RBP + -0x30]
MOV EDX,dword ptr [RBP + -0x2c]
MOV RCX,RAX
LEA RDI,[0x14b31c]
MOV AL,0x0
CALL 0x00115560
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0011db10
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00114509
LAB_0011439e:
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x001142ee
LAB_001143ac:
JMP 0x001143ae
LAB_001143ae:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [0x00160370]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [0x00160378]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [0x00160380]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [0x00160388]
MOV qword ptr [RBP + -0x48],RAX
MOV EAX,dword ptr [0x00160390]
MOV dword ptr [RBP + -0x3c],EAX
MOV RAX,qword ptr [0x00160398]
MOV qword ptr [RBP + -0x38],RAX
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0011440b
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x70],RAX
JMP 0x00114413
LAB_0011440b:
XOR EAX,EAX
MOV qword ptr [RBP + -0x70],RAX
JMP 0x00114413
LAB_00114413:
MOV R10,qword ptr [RBP + -0x38]
MOV R9D,dword ptr [RBP + -0x3c]
MOV R8,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x58]
MOV RSI,qword ptr [RBP + -0x60]
MOV RDI,qword ptr [RBP + -0x68]
MOV RAX,qword ptr [RBP + -0x70]
MOV qword ptr [RSP],R10
MOV qword ptr [RSP + 0x8],RAX
CALL 0x00114520
CMP RAX,0x0
JNZ 0x00114492
MOV RAX,qword ptr [0x00160370]
MOV qword ptr [RBP + -0x80],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00121ce0
MOV dword ptr [RBP + -0x74],EAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00121d10
MOV RSI,qword ptr [RBP + -0x80]
MOV EDX,dword ptr [RBP + -0x74]
MOV RCX,RAX
LEA RDI,[0x14b342]
MOV AL,0x0
CALL 0x00115560
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0011db10
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00114509
LAB_00114492:
MOV RDI,qword ptr [RBP + -0x18]
LEA RSI,[0x14b37d]
CALL 0x0011e390
MOV dword ptr [RBP + -0x20],EAX
CMP dword ptr [RBP + -0x20],0x0
JZ 0x00114501
MOV EAX,dword ptr [RBP + -0x20]
MOV dword ptr [RBP + -0x8c],EAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00121d10
MOV qword ptr [RBP + -0x88],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00121ce0
MOV ESI,dword ptr [RBP + -0x8c]
MOV RDX,qword ptr [RBP + -0x88]
MOV ECX,EAX
LEA RDI,[0x14b229]
LEA R8,[0x14b10c]
MOV R9D,0x22a
MOV AL,0x0
CALL 0x00115560
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00114509
LAB_00114501:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x8],RAX
LAB_00114509:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0xa0
POP RBP
RET
|
long test_connect(long param_1)
{
int iVar1;
int4 uVar2;
int4 uVar3;
int8 uVar4;
long lVar5;
int8 uVar6;
int8 local_78;
int1 local_2d;
int4 local_2c;
int local_28;
int local_24;
long local_20;
long local_18;
long local_10;
local_24 = 0;
local_2c = 10;
local_2d = 1;
local_18 = param_1;
local_20 = mysql_init(0);
if (local_20 == 0) {
BAIL_OUT("Not enough memory available - mysql_init failed");
}
mysql_options(local_20,0x13,&local_2d);
mysql_options(local_20,0,&local_2c);
if (plugindir != 0) {
mysql_options(local_20,0x16,plugindir);
}
if ((local_18 != 0) && (*(long *)(local_18 + 0x20) != 0)) {
while (*(int *)(*(long *)(local_18 + 0x20) + (long)local_24 * 0x10) != 0) {
iVar1 = mysql_options(local_20,*(int4 *)
(*(long *)(local_18 + 0x20) + (long)local_24 * 0x10),
*(int8 *)(*(long *)(local_18 + 0x20) + (long)local_24 * 0x10 + 8))
;
if (iVar1 != 0) {
uVar3 = *(int4 *)(*(long *)(local_18 + 0x20) + (long)local_24 * 0x10);
uVar2 = mysql_errno(local_20);
uVar4 = mysql_error(local_20);
diag("Couldn\'t set option %d. Error (%d) %s",uVar3,uVar2,uVar4);
mysql_close(local_20);
return 0;
}
local_24 = local_24 + 1;
}
}
if (local_18 == 0) {
local_78 = 0;
}
else {
local_78 = *(int8 *)(local_18 + 0x18);
}
lVar5 = my_test_connect(local_20,hostname,username,password,schema,port,socketname,local_78);
uVar4 = hostname;
if (lVar5 == 0) {
uVar3 = mysql_errno(local_20);
uVar6 = mysql_error(local_20);
diag("Couldn\'t establish connection to server %s. Error (%d): %s",uVar4,uVar3,uVar6);
mysql_close(local_20);
local_10 = 0;
}
else {
iVar1 = mysql_query(local_20,"SET sql_mode=\'\'");
if (iVar1 == 0) {
local_10 = local_20;
}
else {
local_28 = iVar1;
uVar4 = mysql_error(local_20);
uVar3 = mysql_errno(local_20);
diag("Error (%d): %s (%d) in %s line %d",iVar1,uVar4,uVar3,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",0x22a
);
local_10 = 0;
}
}
return local_10;
}
| |
35,151 | test_connect | eloqsql/libmariadb/unittest/libmariadb/my_test.h | MYSQL *test_connect(struct my_tests_st *test)
{
MYSQL *mysql;
int i= 0, rc;
int timeout= 10;
my_bool truncation_report= 1;
if (!(mysql = mysql_init(NULL))) {
BAIL_OUT("Not enough memory available - mysql_init failed");
}
mysql_options(mysql, MYSQL_REPORT_DATA_TRUNCATION, &truncation_report);
mysql_options(mysql, MYSQL_OPT_CONNECT_TIMEOUT, &timeout);
if (plugindir)
mysql_options(mysql, MYSQL_PLUGIN_DIR, plugindir);
/* option handling */
if (test && test->options) {
while (test->options[i].option)
{
if (mysql_options(mysql, test->options[i].option, test->options[i].value)) {
diag("Couldn't set option %d. Error (%d) %s", test->options[i].option,
mysql_errno(mysql), mysql_error(mysql));
mysql_close(mysql);
return(NULL);
}
i++;
}
}
if (!(my_test_connect(mysql, hostname, username, password,
schema, port, socketname, (test) ? test->connect_flags:0)))
{
diag("Couldn't establish connection to server %s. Error (%d): %s",
hostname, mysql_errno(mysql), mysql_error(mysql));
mysql_close(mysql);
return(NULL);
}
/* Clear sql_mode when establishing a new connection. */
rc= mysql_query(mysql, "SET sql_mode=''");
if (rc)
{
diag("Error (%d): %s (%d) in %s line %d", rc, mysql_error(mysql),
mysql_errno(mysql), __FILE__, __LINE__);
return(NULL);
}
return(mysql);
} | O3 | c | test_connect:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0xa, -0x20(%rbp)
movb $0x1, -0x19(%rbp)
xorl %edi, %edi
callq 0x18219
testq %rax, %rax
je 0x141cf
movq %rax, %rbx
leaq -0x19(%rbp), %rdx
movq %rax, %rdi
movl $0x13, %esi
callq 0x1c485
leaq -0x20(%rbp), %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1c485
movq 0x34e61(%rip), %rdx # 0x48ec8
testq %rdx, %rdx
je 0x14079
movq %rbx, %rdi
movl $0x16, %esi
callq 0x1c485
testq %r14, %r14
je 0x140c0
movq 0x20(%r14), %rax
testq %rax, %rax
je 0x140ba
movl (%rax), %esi
testl %esi, %esi
je 0x140ba
movl $0x10, %r15d
movq 0x8(%rax), %rdx
movq %rbx, %rdi
callq 0x1c485
testl %eax, %eax
jne 0x14184
movq 0x20(%r14), %rax
movl (%rax,%r15), %esi
addq %r15, %rax
addq $0x10, %r15
testl %esi, %esi
jne 0x14093
movq 0x18(%r14), %rax
jmp 0x140c2
xorl %eax, %eax
movq 0x34dc7(%rip), %rsi # 0x48e90
movq 0x34dc8(%rip), %rdx # 0x48e98
movq 0x34dc9(%rip), %rcx # 0x48ea0
movq 0x34dca(%rip), %r8 # 0x48ea8
movl 0x34dcb(%rip), %r9d # 0x48eb0
movq %rbx, %rdi
pushq %rax
pushq 0x34dc9(%rip) # 0x48eb8
callq 0x141dd
addq $0x10, %rsp
testq %rax, %rax
je 0x14151
leaq 0x2019d(%rip), %rsi # 0x342a1
movq %rbx, %rdi
callq 0x1a4fd
testl %eax, %eax
je 0x141c1
movl %eax, %r14d
movq %rbx, %rdi
callq 0x1c576
movq %rax, %r15
movq %rbx, %rdi
callq 0x1c561
leaq 0x2001c(%rip), %rdi # 0x3414d
leaq 0x1fef8(%rip), %r8 # 0x34030
xorl %ebx, %ebx
movl %r14d, %esi
movq %r15, %rdx
movl %eax, %ecx
movl $0x22a, %r9d # imm = 0x22A
xorl %eax, %eax
callq 0x14df3
jmp 0x141c1
movq 0x34d38(%rip), %r14 # 0x48e90
movq %rbx, %rdi
callq 0x1c561
movl %eax, %r15d
movq %rbx, %rdi
callq 0x1c576
leaq 0x200f4(%rip), %rdi # 0x34266
movq %r14, %rsi
movl %r15d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x14df3
jmp 0x141b7
movq 0x20(%r14), %rax
movl -0x10(%rax,%r15), %r14d
movq %rbx, %rdi
callq 0x1c561
movl %eax, %r15d
movq %rbx, %rdi
callq 0x1c576
leaq 0x20099(%rip), %rdi # 0x34240
movl %r14d, %esi
movl %r15d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x14df3
movq %rbx, %rdi
callq 0x19f70
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2003a(%rip), %rdi # 0x34210
xorl %eax, %eax
callq 0x14d3c
| test_connect:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rdi
mov [rbp+var_20], 0Ah
mov [rbp+var_19], 1
xor edi, edi
call mysql_init
test rax, rax
jz loc_141CF
mov rbx, rax
lea rdx, [rbp+var_19]
mov rdi, rax
mov esi, 13h
call mysql_options
lea rdx, [rbp+var_20]
mov rdi, rbx
xor esi, esi
call mysql_options
mov rdx, cs:plugindir
test rdx, rdx
jz short loc_14079
mov rdi, rbx
mov esi, 16h
call mysql_options
loc_14079:
test r14, r14
jz short loc_140C0
mov rax, [r14+20h]
test rax, rax
jz short loc_140BA
mov esi, [rax]
test esi, esi
jz short loc_140BA
mov r15d, 10h
loc_14093:
mov rdx, [rax+8]
mov rdi, rbx
call mysql_options
test eax, eax
jnz loc_14184
mov rax, [r14+20h]
mov esi, [rax+r15]
add rax, r15
add r15, 10h
test esi, esi
jnz short loc_14093
loc_140BA:
mov rax, [r14+18h]
jmp short loc_140C2
loc_140C0:
xor eax, eax
loc_140C2:
mov rsi, cs:hostname
mov rdx, cs:username
mov rcx, cs:password
mov r8, cs:schema
mov r9d, cs:port
mov rdi, rbx
push rax
push cs:socketname
call my_test_connect
add rsp, 10h
test rax, rax
jz short loc_14151
lea rsi, aSetSqlMode; "SET sql_mode=''"
mov rdi, rbx
call mysql_query
test eax, eax
jz loc_141C1
mov r14d, eax
mov rdi, rbx
call mysql_error
mov r15, rax
mov rdi, rbx
call mysql_errno
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
xor ebx, ebx
mov esi, r14d
mov rdx, r15
mov ecx, eax
mov r9d, 22Ah
xor eax, eax
call diag
jmp short loc_141C1
loc_14151:
mov r14, cs:hostname
mov rdi, rbx
call mysql_errno
mov r15d, eax
mov rdi, rbx
call mysql_error
lea rdi, aCouldnTEstabli; "Couldn't establish connection to server"...
mov rsi, r14
mov edx, r15d
mov rcx, rax
xor eax, eax
call diag
jmp short loc_141B7
loc_14184:
mov rax, [r14+20h]
mov r14d, [rax+r15-10h]
mov rdi, rbx
call mysql_errno
mov r15d, eax
mov rdi, rbx
call mysql_error
lea rdi, aCouldnTSetOpti; "Couldn't set option %d. Error (%d) %s"
mov esi, r14d
mov edx, r15d
mov rcx, rax
xor eax, eax
call diag
loc_141B7:
mov rdi, rbx
call mysql_close
xor ebx, ebx
loc_141C1:
mov rax, rbx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_141CF:
lea rdi, aNotEnoughMemor; "Not enough memory available - mysql_ini"...
xor eax, eax
call BAIL_OUT
| long long test_connect(long long a1, int a2)
{
long long v2; // rax
long long v3; // rax
int v4; // edx
int v5; // ecx
int v6; // r8d
int v7; // r9d
long long v8; // rbx
unsigned int *v9; // rax
long long v10; // rsi
long long v11; // r15
long long v12; // rax
long long v13; // rax
int v14; // eax
int v15; // r14d
int v16; // r15d
int v17; // eax
int v18; // r14d
int v19; // r15d
int v20; // eax
int v21; // r8d
int v22; // r9d
int v23; // r14d
int v24; // r15d
int v25; // eax
int v26; // r8d
int v27; // r9d
int v29; // [rsp+0h] [rbp-20h] BYREF
int v30; // [rsp+4h] [rbp-1Ch] BYREF
v30 = HIDWORD(v2);
v29 = 10;
HIBYTE(v30) = 1;
v3 = mysql_init(0LL);
if ( !v3 )
BAIL_OUT((unsigned int)"Not enough memory available - mysql_init failed", a2, v4, v5, v6, v7, v29);
v8 = v3;
mysql_options(v3, 19LL, (char *)&v30 + 3);
mysql_options(v8, 0LL, &v29);
if ( plugindir )
mysql_options(v8, 22LL, plugindir);
if ( a1 )
{
v9 = *(unsigned int **)(a1 + 32);
if ( v9 )
{
v10 = *v9;
if ( (_DWORD)v10 )
{
v11 = 16LL;
while ( !(unsigned int)mysql_options(v8, v10, *((_QWORD *)v9 + 1)) )
{
v12 = *(_QWORD *)(a1 + 32);
v10 = *(unsigned int *)(v12 + v11);
v9 = (unsigned int *)(v11 + v12);
v11 += 16LL;
if ( !(_DWORD)v10 )
goto LABEL_10;
}
v23 = *(_DWORD *)(*(_QWORD *)(a1 + 32) + v11 - 16);
v24 = mysql_errno(v8);
v25 = mysql_error(v8);
diag((unsigned int)"Couldn't set option %d. Error (%d) %s", v23, v24, v25, v26, v27);
goto LABEL_17;
}
}
LABEL_10:
v13 = *(_QWORD *)(a1 + 24);
}
else
{
v13 = 0LL;
}
if ( !my_test_connect(v8, hostname, username, password, schema, port, socketname, v13) )
{
v18 = hostname;
v19 = mysql_errno(v8);
v20 = mysql_error(v8);
diag((unsigned int)"Couldn't establish connection to server %s. Error (%d): %s", v18, v19, v20, v21, v22);
LABEL_17:
mysql_close(v8);
return 0LL;
}
v14 = mysql_query(v8, "SET sql_mode=''");
if ( v14 )
{
v15 = v14;
v16 = mysql_error(v8);
v17 = mysql_errno(v8);
v8 = 0LL;
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v15,
v16,
v17,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",
554);
}
return v8;
}
| test_connect:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDI
MOV dword ptr [RBP + -0x20],0xa
MOV byte ptr [RBP + -0x19],0x1
XOR EDI,EDI
CALL 0x00118219
TEST RAX,RAX
JZ 0x001141cf
MOV RBX,RAX
LEA RDX,[RBP + -0x19]
MOV RDI,RAX
MOV ESI,0x13
CALL 0x0011c485
LEA RDX,[RBP + -0x20]
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0011c485
MOV RDX,qword ptr [0x00148ec8]
TEST RDX,RDX
JZ 0x00114079
MOV RDI,RBX
MOV ESI,0x16
CALL 0x0011c485
LAB_00114079:
TEST R14,R14
JZ 0x001140c0
MOV RAX,qword ptr [R14 + 0x20]
TEST RAX,RAX
JZ 0x001140ba
MOV ESI,dword ptr [RAX]
TEST ESI,ESI
JZ 0x001140ba
MOV R15D,0x10
LAB_00114093:
MOV RDX,qword ptr [RAX + 0x8]
MOV RDI,RBX
CALL 0x0011c485
TEST EAX,EAX
JNZ 0x00114184
MOV RAX,qword ptr [R14 + 0x20]
MOV ESI,dword ptr [RAX + R15*0x1]
ADD RAX,R15
ADD R15,0x10
TEST ESI,ESI
JNZ 0x00114093
LAB_001140ba:
MOV RAX,qword ptr [R14 + 0x18]
JMP 0x001140c2
LAB_001140c0:
XOR EAX,EAX
LAB_001140c2:
MOV RSI,qword ptr [0x00148e90]
MOV RDX,qword ptr [0x00148e98]
MOV RCX,qword ptr [0x00148ea0]
MOV R8,qword ptr [0x00148ea8]
MOV R9D,dword ptr [0x00148eb0]
MOV RDI,RBX
PUSH RAX
PUSH qword ptr [0x00148eb8]
CALL 0x001141dd
ADD RSP,0x10
TEST RAX,RAX
JZ 0x00114151
LEA RSI,[0x1342a1]
MOV RDI,RBX
CALL 0x0011a4fd
TEST EAX,EAX
JZ 0x001141c1
MOV R14D,EAX
MOV RDI,RBX
CALL 0x0011c576
MOV R15,RAX
MOV RDI,RBX
CALL 0x0011c561
LEA RDI,[0x13414d]
LEA R8,[0x134030]
XOR EBX,EBX
MOV ESI,R14D
MOV RDX,R15
MOV ECX,EAX
MOV R9D,0x22a
XOR EAX,EAX
CALL 0x00114df3
JMP 0x001141c1
LAB_00114151:
MOV R14,qword ptr [0x00148e90]
MOV RDI,RBX
CALL 0x0011c561
MOV R15D,EAX
MOV RDI,RBX
CALL 0x0011c576
LEA RDI,[0x134266]
MOV RSI,R14
MOV EDX,R15D
MOV RCX,RAX
XOR EAX,EAX
CALL 0x00114df3
JMP 0x001141b7
LAB_00114184:
MOV RAX,qword ptr [R14 + 0x20]
MOV R14D,dword ptr [RAX + R15*0x1 + -0x10]
MOV RDI,RBX
CALL 0x0011c561
MOV R15D,EAX
MOV RDI,RBX
CALL 0x0011c576
LEA RDI,[0x134240]
MOV ESI,R14D
MOV EDX,R15D
MOV RCX,RAX
XOR EAX,EAX
CALL 0x00114df3
LAB_001141b7:
MOV RDI,RBX
CALL 0x00119f70
XOR EBX,EBX
LAB_001141c1:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001141cf:
LEA RDI,[0x134210]
XOR EAX,EAX
CALL 0x00114d3c
|
long test_connect(long param_1)
{
int iVar1;
int4 uVar2;
int4 uVar3;
int8 in_RAX;
long lVar4;
int *piVar5;
int8 uVar6;
int8 uVar7;
long lVar8;
int4 local_28;
int4 uStack_24;
_local_28 = CONCAT44((int)((ulong)in_RAX >> 0x20),10);
_local_28 = CONCAT17(1,_local_28);
lVar4 = mysql_init(0);
if (lVar4 == 0) {
/* WARNING: Subroutine does not return */
BAIL_OUT("Not enough memory available - mysql_init failed");
}
mysql_options(lVar4,0x13,(long)&uStack_24 + 3);
mysql_options(lVar4,0,&local_28);
if (plugindir != 0) {
mysql_options(lVar4,0x16);
}
if (param_1 == 0) {
uVar6 = 0;
}
else {
piVar5 = *(int **)(param_1 + 0x20);
if ((piVar5 != (int *)0x0) && (iVar1 = *piVar5, iVar1 != 0)) {
lVar8 = 0x10;
do {
iVar1 = mysql_options(lVar4,iVar1,*(int8 *)(piVar5 + 2));
if (iVar1 != 0) {
uVar2 = *(int4 *)(*(long *)(param_1 + 0x20) + -0x10 + lVar8);
uVar3 = mysql_errno(lVar4);
uVar6 = mysql_error(lVar4);
diag("Couldn\'t set option %d. Error (%d) %s",uVar2,uVar3,uVar6);
goto LAB_001141b7;
}
iVar1 = *(int *)(*(long *)(param_1 + 0x20) + lVar8);
piVar5 = (int *)(*(long *)(param_1 + 0x20) + lVar8);
lVar8 = lVar8 + 0x10;
} while (iVar1 != 0);
}
uVar6 = *(int8 *)(param_1 + 0x18);
}
lVar8 = my_test_connect(lVar4,hostname,username,password,schema,port,socketname,uVar6);
uVar6 = hostname;
if (lVar8 == 0) {
uVar2 = mysql_errno(lVar4);
uVar7 = mysql_error(lVar4);
diag("Couldn\'t establish connection to server %s. Error (%d): %s",uVar6,uVar2,uVar7);
LAB_001141b7:
mysql_close(lVar4);
lVar4 = 0;
}
else {
iVar1 = mysql_query(lVar4,"SET sql_mode=\'\'");
if (iVar1 != 0) {
uVar6 = mysql_error(lVar4);
uVar2 = mysql_errno(lVar4);
lVar4 = 0;
diag("Error (%d): %s (%d) in %s line %d",iVar1,uVar6,uVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",0x22a
);
}
}
return lVar4;
}
| |
35,152 | minja::MacroNode::MacroNode(minja::Location const&, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&, std::shared_ptr<minja::TemplateNode>&&) | monkey531[P]llama/common/minja.hpp | MacroNode(const Location & location, std::shared_ptr<VariableExpr> && n, Expression::Parameters && p, std::shared_ptr<TemplateNode> && b)
: TemplateNode(location), name(std::move(n)), params(std::move(p)), body(std::move(b)) {
for (size_t i = 0; i < params.size(); ++i) {
const auto & name = params[i].first;
if (!name.empty()) {
named_param_positions[name] = i;
}
}
} | O0 | cpp | minja::MacroNode::MacroNode(minja::Location const&, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&, std::shared_ptr<minja::TemplateNode>&&):
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movq %rcx, 0x68(%rsp)
movq %r8, 0x60(%rsp)
movq 0x80(%rsp), %rdi
movq %rdi, 0x30(%rsp)
movq 0x78(%rsp), %rsi
callq 0x1498f0
movq 0x30(%rsp), %rdi
leaq 0x14c262(%rip), %rax # 0x2a12e8
addq $0x10, %rax
movq %rax, (%rdi)
addq $0x20, %rdi
movq %rdi, 0x18(%rsp)
movq 0x70(%rsp), %rsi
callq 0x12d300
movq 0x30(%rsp), %rdi
addq $0x30, %rdi
movq %rdi, 0x20(%rsp)
movq 0x68(%rsp), %rsi
callq 0x12f750
movq 0x30(%rsp), %rdi
addq $0x48, %rdi
movq %rdi, 0x28(%rsp)
movq 0x60(%rsp), %rsi
callq 0x146c40
movq 0x30(%rsp), %rdi
addq $0x58, %rdi
movq %rdi, 0x38(%rsp)
callq 0x1551e0
movq $0x0, 0x58(%rsp)
movq 0x30(%rsp), %rdi
movq 0x58(%rsp), %rax
movq %rax, 0x10(%rsp)
addq $0x30, %rdi
callq 0x12c4d0
movq %rax, %rcx
movq 0x10(%rsp), %rax
cmpq %rcx, %rax
jae 0x1551c3
movq 0x30(%rsp), %rdi
addq $0x30, %rdi
movq 0x58(%rsp), %rsi
callq 0x1551f0
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rdi
callq 0x5a4f0
testb $0x1, %al
jne 0x1551ae
movq 0x30(%rsp), %rdi
movq 0x58(%rsp), %rax
movq %rax, (%rsp)
addq $0x58, %rdi
movq 0x50(%rsp), %rsi
callq 0x155210
movq %rax, 0x8(%rsp)
jmp 0x15515e
movq 0x8(%rsp), %rax
movq (%rsp), %rcx
movq %rcx, (%rax)
jmp 0x1551ae
movq 0x38(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x48(%rsp)
movl %eax, 0x44(%rsp)
callq 0x155240
movq 0x28(%rsp), %rdi
callq 0x103000
movq 0x20(%rsp), %rdi
callq 0x10dc60
movq 0x18(%rsp), %rdi
callq 0x10dcc0
movq 0x30(%rsp), %rdi
callq 0x149bb0
jmp 0x1551cb
jmp 0x1551b0
movq 0x58(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x58(%rsp)
jmp 0x1550ec
addq $0x88, %rsp
retq
movq 0x48(%rsp), %rdi
callq 0x5abc0
nopw %cs:(%rax,%rax)
nop
| _ZN5minja9MacroNodeC2ERKNS_8LocationEOSt10shared_ptrINS_12VariableExprEEOSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES4_INS_10ExpressionEEESaISI_EEOS4_INS_12TemplateNodeEE:
sub rsp, 88h
mov [rsp+88h+var_8], rdi
mov [rsp+88h+var_10], rsi
mov [rsp+88h+var_18], rdx
mov [rsp+88h+var_20], rcx
mov [rsp+88h+var_28], r8
mov rdi, [rsp+88h+var_8]; this
mov [rsp+88h+var_58], rdi
mov rsi, [rsp+88h+var_10]; minja::Location *
call _ZN5minja12TemplateNodeC2ERKNS_8LocationE; minja::TemplateNode::TemplateNode(minja::Location const&)
mov rdi, [rsp+88h+var_58]
lea rax, _ZTVN5minja9MacroNodeE; `vtable for'minja::MacroNode
add rax, 10h
mov [rdi], rax
add rdi, 20h ; ' '
mov [rsp+88h+var_70], rdi
mov rsi, [rsp+88h+var_18]
call _ZNSt10shared_ptrIN5minja12VariableExprEEC2EOS2_; std::shared_ptr<minja::VariableExpr>::shared_ptr(std::shared_ptr<minja::VariableExpr>&&)
mov rdi, [rsp+88h+var_58]
add rdi, 30h ; '0'
mov [rsp+88h+var_68], rdi
mov rsi, [rsp+88h+var_20]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EEC2EOSD_; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::vector(std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>&&)
mov rdi, [rsp+88h+var_58]
add rdi, 48h ; 'H'
mov [rsp+88h+var_60], rdi
mov rsi, [rsp+88h+var_28]
call _ZNSt10shared_ptrIN5minja12TemplateNodeEEC2EOS2_; std::shared_ptr<minja::TemplateNode>::shared_ptr(std::shared_ptr<minja::TemplateNode>&&)
mov rdi, [rsp+88h+var_58]
add rdi, 58h ; 'X'
mov [rsp+88h+var_50], rdi
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_mEEEC2Ev; std::unordered_map<std::string,ulong>::unordered_map(void)
mov [rsp+88h+var_30], 0
loc_1550EC:
mov rdi, [rsp+88h+var_58]
mov rax, [rsp+88h+var_30]
mov [rsp+88h+var_78], rax
add rdi, 30h ; '0'
call _ZNKSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EE4sizeEv; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::size(void)
mov rcx, rax
mov rax, [rsp+88h+var_78]
cmp rax, rcx
jnb loc_1551C3
mov rdi, [rsp+88h+var_58]
add rdi, 30h ; '0'
mov rsi, [rsp+88h+var_30]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EEixEm; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::operator[](ulong)
mov [rsp+88h+var_38], rax
mov rdi, [rsp+88h+var_38]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_1551AE
mov rdi, [rsp+88h+var_58]
mov rax, [rsp+88h+var_30]
mov [rsp+88h+var_88], rax
add rdi, 58h ; 'X'
mov rsi, [rsp+88h+var_38]
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_mEEEixERSB_; std::unordered_map<std::string,ulong>::operator[](std::string const&)
mov [rsp+88h+var_80], rax
jmp short $+2
loc_15515E:
mov rax, [rsp+88h+var_80]
mov rcx, [rsp+88h+var_88]
mov [rax], rcx
jmp short loc_1551AE
mov rdi, [rsp+arg_30]
mov rcx, rax
mov eax, edx
mov [rsp+arg_40], rcx
mov [rsp+arg_3C], eax
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_mEEED2Ev; std::unordered_map<std::string,ulong>::~unordered_map()
mov rdi, [rsp+arg_20]
call _ZNSt10shared_ptrIN5minja12TemplateNodeEED2Ev; std::shared_ptr<minja::TemplateNode>::~shared_ptr()
mov rdi, [rsp+arg_18]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EED2Ev; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::~vector()
mov rdi, [rsp+arg_10]
call _ZNSt10shared_ptrIN5minja12VariableExprEED2Ev; std::shared_ptr<minja::VariableExpr>::~shared_ptr()
mov rdi, [rsp+arg_28]; this
call _ZN5minja12TemplateNodeD2Ev; minja::TemplateNode::~TemplateNode()
jmp short loc_1551CB
loc_1551AE:
jmp short $+2
loc_1551B0:
mov rax, [rsp+88h+var_30]
add rax, 1
mov [rsp+88h+var_30], rax
jmp loc_1550EC
loc_1551C3:
add rsp, 88h
retn
loc_1551CB:
mov rdi, [rsp+arg_40]
call __Unwind_Resume
| unsigned long long minja::MacroNode::MacroNode(
minja::TemplateNode *a1,
const minja::Location *a2,
long long a3,
long long a4,
long long a5)
{
unsigned long long v5; // rcx
unsigned long long result; // rax
long long v7; // [rsp+50h] [rbp-38h]
unsigned long long i; // [rsp+58h] [rbp-30h]
minja::TemplateNode::TemplateNode(a1, a2);
*(_QWORD *)a1 = &`vtable for'minja::MacroNode + 2;
std::shared_ptr<minja::VariableExpr>::shared_ptr((long long)a1 + 32, a3);
std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::vector((long long)a1 + 48, a4);
std::shared_ptr<minja::TemplateNode>::shared_ptr((long long)a1 + 72, a5);
std::unordered_map<std::string,unsigned long>::unordered_map();
for ( i = 0LL; ; ++i )
{
v5 = std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::size((_QWORD *)a1 + 6);
result = i;
if ( i >= v5 )
break;
v7 = std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::operator[]((char *)a1 + 48, i);
if ( (std::string::empty(v7) & 1) == 0 )
*(_QWORD *)std::unordered_map<std::string,unsigned long>::operator[]((char *)a1 + 88, v7) = i;
}
return result;
}
| |||
35,153 | minja::MacroNode::MacroNode(minja::Location const&, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&, std::shared_ptr<minja::TemplateNode>&&) | monkey531[P]llama/common/minja.hpp | MacroNode(const Location & location, std::shared_ptr<VariableExpr> && n, Expression::Parameters && p, std::shared_ptr<TemplateNode> && b)
: TemplateNode(location), name(std::move(n)), params(std::move(p)), body(std::move(b)) {
for (size_t i = 0; i < params.size(); ++i) {
const auto & name = params[i].first;
if (!name.empty()) {
named_param_positions[name] = i;
}
}
} | O1 | cpp | minja::MacroNode::MacroNode(minja::Location const&, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&, std::shared_ptr<minja::TemplateNode>&&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x8d354(%rip), %rax # 0x12cfd8
addq $0x10, %rax
movq %rax, (%rdi)
movq (%rsi), %rax
movq %rax, 0x8(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x10(%rdi)
testq %rax, %rax
je 0x9fcb4
movq 0x8e2e2(%rip), %rdi # 0x12df88
cmpb $0x0, (%rdi)
je 0x9fcb0
incl 0x8(%rax)
jmp 0x9fcb4
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x18(%rbx)
leaq 0x8d7a5(%rip), %rax # 0x12d468
addq $0x10, %rax
movq %rax, (%rbx)
xorl %eax, %eax
movq %rax, 0x28(%rbx)
movups (%rdx), %xmm0
movq %rax, 0x8(%rdx)
movups %xmm0, 0x20(%rbx)
movq %rax, (%rdx)
movups (%rcx), %xmm0
movups %xmm0, 0x30(%rbx)
movq 0x10(%rcx), %rdx
movq %rdx, 0x40(%rbx)
movq %rax, 0x10(%rcx)
xorps %xmm0, %xmm0
movups %xmm0, (%rcx)
movq %rax, 0x50(%rbx)
movups (%r8), %xmm1
movq %rax, 0x8(%r8)
movups %xmm1, 0x48(%rbx)
movq %rax, (%r8)
leaq 0x88(%rbx), %rax
movq %rax, 0x58(%rbx)
movq $0x1, 0x60(%rbx)
movups %xmm0, 0x68(%rbx)
movl $0x3f800000, 0x78(%rbx) # imm = 0x3F800000
movups %xmm0, 0x80(%rbx)
movq 0x30(%rbx), %rsi
cmpq %rsi, 0x38(%rbx)
je 0x9fd97
leaq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x28(%rbx), %rax
movq %rax, 0x8(%rsp)
leaq 0x30(%rbx), %r12
leaq 0x58(%rbx), %r13
xorl %ebp, %ebp
movabsq $-0x5555555555555555, %r14 # imm = 0xAAAAAAAAAAAAAAAB
xorl %r15d, %r15d
cmpq $0x0, 0x8(%rsi,%rbp)
je 0x9fd78
addq %rbp, %rsi
movq %r13, %rdi
callq 0xa0144
movq %r15, (%rax)
incq %r15
movq 0x30(%rbx), %rsi
movq 0x38(%rbx), %rax
subq %rsi, %rax
sarq $0x4, %rax
imulq %r14, %rax
addq $0x30, %rbp
cmpq %rax, %r15
jb 0x9fd62
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbp
movq %r13, %rdi
callq 0xa0570
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
je 0x9fdbf
callq 0x6d4ee
movq %r12, %rdi
movq 0x8(%rsp), %rsi
movq %rbx, %rdx
movq 0x10(%rsp), %rcx
callq 0x1ce86
movq %rbp, %rdi
callq 0x1bfa0
| _ZN5minja9MacroNodeC2ERKNS_8LocationEOSt10shared_ptrINS_12VariableExprEEOSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES4_INS_10ExpressionEEESaISI_EEOS4_INS_12TemplateNodeEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rdi
lea rax, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode
add rax, 10h
mov [rdi], rax
mov rax, [rsi]
mov [rdi+8], rax
mov rax, [rsi+8]
mov [rdi+10h], rax
test rax, rax
jz short loc_9FCB4
mov rdi, cs:__libc_single_threaded_ptr
cmp byte ptr [rdi], 0
jz short loc_9FCB0
inc dword ptr [rax+8]
jmp short loc_9FCB4
loc_9FCB0:
lock inc dword ptr [rax+8]
loc_9FCB4:
mov rax, [rsi+10h]
mov [rbx+18h], rax
lea rax, _ZTVN5minja9MacroNodeE; `vtable for'minja::MacroNode
add rax, 10h
mov [rbx], rax
xor eax, eax
mov [rbx+28h], rax
movups xmm0, xmmword ptr [rdx]
mov [rdx+8], rax
movups xmmword ptr [rbx+20h], xmm0
mov [rdx], rax
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rbx+30h], xmm0
mov rdx, [rcx+10h]
mov [rbx+40h], rdx
mov [rcx+10h], rax
xorps xmm0, xmm0
movups xmmword ptr [rcx], xmm0
mov [rbx+50h], rax
movups xmm1, xmmword ptr [r8]
mov [r8+8], rax
movups xmmword ptr [rbx+48h], xmm1
mov [r8], rax
lea rax, [rbx+88h]
mov [rbx+58h], rax
mov qword ptr [rbx+60h], 1
movups xmmword ptr [rbx+68h], xmm0
mov dword ptr [rbx+78h], 3F800000h
movups xmmword ptr [rbx+80h], xmm0
mov rsi, [rbx+30h]
cmp [rbx+38h], rsi
jz short loc_9FD97
lea rax, [rbx+10h]
mov [rsp+48h+var_38], rax
lea rax, [rbx+28h]
mov [rsp+48h+var_40], rax
lea r12, [rbx+30h]
lea r13, [rbx+58h]
xor ebp, ebp
mov r14, 0AAAAAAAAAAAAAAABh
xor r15d, r15d
loc_9FD62:
cmp qword ptr [rsi+rbp+8], 0
jz short loc_9FD78
add rsi, rbp
mov rdi, r13
call _ZNSt8__detail9_Map_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS6_mESaIS9_ENS_10_Select1stESt8equal_toIS6_ESt4hashIS6_ENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb1ELb0ELb1EEELb1EEixERS8_; std::__detail::_Map_base<std::string,std::pair<std::string const,ulong>,std::allocator<std::pair<std::string const,ulong>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true>::operator[](std::string const&)
mov [rax], r15
loc_9FD78:
inc r15
mov rsi, [rbx+30h]
mov rax, [rbx+38h]
sub rax, rsi
sar rax, 4
imul rax, r14
add rbp, 30h ; '0'
cmp r15, rax
jb short loc_9FD62
loc_9FD97:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbp, rax
mov rdi, r13
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEED2Ev; std::_Hashtable<std::string,std::pair<std::string const,ulong>,std::allocator<std::pair<std::string const,ulong>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::~_Hashtable()
mov rdi, [rbx+50h]
test rdi, rdi
jz short loc_9FDBF
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9FDBF:
mov rdi, r12
mov rsi, [rsp+arg_0]
mov rdx, rbx
mov rcx, [rsp+arg_8]
call _ZN5minja9MacroNodeC2ERKNS_8LocationEOSt10shared_ptrINS_12VariableExprEEOSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES4_INS_10ExpressionEEESaISI_EEOS4_INS_12TemplateNodeEE_cold_1; minja::MacroNode::MacroNode(minja::Location const&,std::shared_ptr<minja::VariableExpr> &&,std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>> &&,std::shared_ptr&&<minja::TemplateNode>) [clone]
mov rdi, rbp
call __Unwind_Resume
| unsigned long long minja::MacroNode::MacroNode(
long long a1,
_QWORD *a2,
__int128 *a3,
long long a4,
__int128 *a5,
int a6)
{
long long v6; // rax
__int128 v7; // xmm0
long long v8; // rdx
__int128 v9; // xmm1
unsigned long long result; // rax
long long v11; // rsi
long long v12; // rbp
unsigned long long v13; // r15
char v14; // [rsp+0h] [rbp-48h]
*(_QWORD *)a1 = &`vtable for'minja::TemplateNode + 2;
*(_QWORD *)(a1 + 8) = *a2;
v6 = a2[1];
*(_QWORD *)(a1 + 16) = v6;
if ( v6 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v6 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v6 + 8));
}
*(_QWORD *)(a1 + 24) = a2[2];
*(_QWORD *)a1 = &`vtable for'minja::MacroNode + 2;
*(_QWORD *)(a1 + 40) = 0LL;
v7 = *a3;
*((_QWORD *)a3 + 1) = 0LL;
*(_OWORD *)(a1 + 32) = v7;
*(_QWORD *)a3 = 0LL;
*(_OWORD *)(a1 + 48) = *(_OWORD *)a4;
v8 = *(_QWORD *)(a4 + 16);
*(_QWORD *)(a1 + 64) = v8;
*(_QWORD *)(a4 + 16) = 0LL;
*(_OWORD *)a4 = 0LL;
*(_QWORD *)(a1 + 80) = 0LL;
v9 = *a5;
*((_QWORD *)a5 + 1) = 0LL;
*(_OWORD *)(a1 + 72) = v9;
*(_QWORD *)a5 = 0LL;
result = a1 + 136;
*(_QWORD *)(a1 + 88) = a1 + 136;
*(_QWORD *)(a1 + 96) = 1LL;
*(_OWORD *)(a1 + 104) = 0LL;
*(_DWORD *)(a1 + 120) = 1065353216;
*(_OWORD *)(a1 + 128) = 0LL;
v11 = *(_QWORD *)(a1 + 48);
if ( *(_QWORD *)(a1 + 56) != v11 )
{
v12 = 0LL;
v13 = 0LL;
do
{
if ( *(_QWORD *)(v11 + v12 + 8) )
*(_QWORD *)std::__detail::_Map_base<std::string,std::pair<std::string const,unsigned long>,std::allocator<std::pair<std::string const,unsigned long>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true>::operator[](
(int)a1 + 88,
(int)v12 + (int)v11,
v8,
a4,
(_DWORD)a5,
a6,
v14) = v13;
++v13;
v11 = *(_QWORD *)(a1 + 48);
result = 0xAAAAAAAAAAAAAAABLL * ((*(_QWORD *)(a1 + 56) - v11) >> 4);
v12 += 48LL;
}
while ( v13 < result );
}
return result;
}
| MacroNode:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
LEA RAX,[0x22cfd8]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x10],RAX
TEST RAX,RAX
JZ 0x0019fcb4
MOV RDI,qword ptr [0x0022df88]
CMP byte ptr [RDI],0x0
JZ 0x0019fcb0
INC dword ptr [RAX + 0x8]
JMP 0x0019fcb4
LAB_0019fcb0:
INC.LOCK dword ptr [RAX + 0x8]
LAB_0019fcb4:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RBX + 0x18],RAX
LEA RAX,[0x22d468]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
XOR EAX,EAX
MOV qword ptr [RBX + 0x28],RAX
MOVUPS XMM0,xmmword ptr [RDX]
MOV qword ptr [RDX + 0x8],RAX
MOVUPS xmmword ptr [RBX + 0x20],XMM0
MOV qword ptr [RDX],RAX
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RBX + 0x30],XMM0
MOV RDX,qword ptr [RCX + 0x10]
MOV qword ptr [RBX + 0x40],RDX
MOV qword ptr [RCX + 0x10],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RCX],XMM0
MOV qword ptr [RBX + 0x50],RAX
MOVUPS XMM1,xmmword ptr [R8]
MOV qword ptr [R8 + 0x8],RAX
MOVUPS xmmword ptr [RBX + 0x48],XMM1
MOV qword ptr [R8],RAX
LEA RAX,[RBX + 0x88]
MOV qword ptr [RBX + 0x58],RAX
MOV qword ptr [RBX + 0x60],0x1
MOVUPS xmmword ptr [RBX + 0x68],XMM0
MOV dword ptr [RBX + 0x78],0x3f800000
MOVUPS xmmword ptr [RBX + 0x80],XMM0
MOV RSI,qword ptr [RBX + 0x30]
CMP qword ptr [RBX + 0x38],RSI
JZ 0x0019fd97
LEA RAX,[RBX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
LEA RAX,[RBX + 0x28]
MOV qword ptr [RSP + 0x8],RAX
LEA R12,[RBX + 0x30]
LEA R13,[RBX + 0x58]
XOR EBP,EBP
MOV R14,-0x5555555555555555
XOR R15D,R15D
LAB_0019fd62:
CMP qword ptr [RSI + RBP*0x1 + 0x8],0x0
JZ 0x0019fd78
ADD RSI,RBP
LAB_0019fd6d:
MOV RDI,R13
CALL 0x001a0144
LAB_0019fd75:
MOV qword ptr [RAX],R15
LAB_0019fd78:
INC R15
MOV RSI,qword ptr [RBX + 0x30]
MOV RAX,qword ptr [RBX + 0x38]
SUB RAX,RSI
SAR RAX,0x4
IMUL RAX,R14
ADD RBP,0x30
CMP R15,RAX
JC 0x0019fd62
LAB_0019fd97:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* minja::MacroNode::MacroNode(minja::Location const&, std::shared_ptr<minja::VariableExpr>&&,
std::vector<std::pair<std::__cxx11::string, std::shared_ptr<minja::Expression> >,
std::allocator<std::pair<std::__cxx11::string, std::shared_ptr<minja::Expression> > > >&&,
std::shared_ptr<minja::TemplateNode>&&) */
void __thiscall
minja::MacroNode::MacroNode
(MacroNode *this,Location *param_1,shared_ptr *param_2,vector *param_3,shared_ptr *param_4
)
{
int8 uVar1;
ulong *puVar2;
long lVar3;
long lVar4;
ulong uVar5;
*(int ***)this = &PTR___cxa_pure_virtual_0022cfe8;
*(int8 *)(this + 8) = *(int8 *)param_1;
lVar4 = *(long *)(param_1 + 8);
*(long *)(this + 0x10) = lVar4;
if (lVar4 != 0) {
if (*PTR___libc_single_threaded_0022df88 == '\0') {
LOCK();
*(int *)(lVar4 + 8) = *(int *)(lVar4 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar4 + 8) = *(int *)(lVar4 + 8) + 1;
}
}
*(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10);
*(int ***)this = &PTR_do_render_0022d478;
*(int8 *)(this + 0x28) = 0;
uVar1 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = 0;
*(int8 *)(this + 0x20) = *(int8 *)param_2;
*(int8 *)(this + 0x28) = uVar1;
*(int8 *)param_2 = 0;
uVar1 = *(int8 *)(param_3 + 8);
*(int8 *)(this + 0x30) = *(int8 *)param_3;
*(int8 *)(this + 0x38) = uVar1;
*(int8 *)(this + 0x40) = *(int8 *)(param_3 + 0x10);
*(int8 *)(param_3 + 0x10) = 0;
*(int8 *)param_3 = 0;
*(int8 *)(param_3 + 8) = 0;
*(int8 *)(this + 0x50) = 0;
uVar1 = *(int8 *)(param_4 + 8);
*(int8 *)(param_4 + 8) = 0;
*(int8 *)(this + 0x48) = *(int8 *)param_4;
*(int8 *)(this + 0x50) = uVar1;
*(int8 *)param_4 = 0;
*(MacroNode **)(this + 0x58) = this + 0x88;
*(int8 *)(this + 0x60) = 1;
*(int8 *)(this + 0x68) = 0;
*(int8 *)(this + 0x70) = 0;
*(int4 *)(this + 0x78) = 0x3f800000;
*(int8 *)(this + 0x80) = 0;
*(int8 *)(this + 0x88) = 0;
lVar4 = *(long *)(this + 0x30);
if (*(long *)(this + 0x38) != lVar4) {
lVar3 = 0;
uVar5 = 0;
do {
if (*(long *)(lVar4 + 8 + lVar3) != 0) {
/* try { // try from 0019fd6d to 0019fd74 has its CatchHandler @ 0019fda6 */
puVar2 = (ulong *)std::__detail::
_Map_base<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true>
::operator[]((_Map_base<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true>
*)(this + 0x58),(string *)(lVar4 + lVar3));
*puVar2 = uVar5;
}
uVar5 = uVar5 + 1;
lVar4 = *(long *)(this + 0x30);
lVar3 = lVar3 + 0x30;
} while (uVar5 < (ulong)((*(long *)(this + 0x38) - lVar4 >> 4) * -0x5555555555555555));
}
return;
}
| |
35,154 | minja::MacroNode::MacroNode(minja::Location const&, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&, std::shared_ptr<minja::TemplateNode>&&) | monkey531[P]llama/common/minja.hpp | MacroNode(const Location & location, std::shared_ptr<VariableExpr> && n, Expression::Parameters && p, std::shared_ptr<TemplateNode> && b)
: TemplateNode(location), name(std::move(n)), params(std::move(p)), body(std::move(b)) {
for (size_t i = 0; i < params.size(); ++i) {
const auto & name = params[i].first;
if (!name.empty()) {
named_param_positions[name] = i;
}
}
} | O3 | cpp | minja::MacroNode::MacroNode(minja::Location const&, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&, std::shared_ptr<minja::TemplateNode>&&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x18(%rdi), %r15
movq 0x20(%rdi), %r12
cmpq %r12, %r15
je 0xb33b1
movq (%rsi), %rbx
movq 0x8(%rsi), %r14
cmpq %r14, 0x8(%r15)
jne 0xb33a8
movb $0x1, %bpl
testq %r14, %r14
je 0xb33b3
movq (%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x1a920
testl %eax, %eax
je 0xb33b3
addq $0x70, %r15
cmpq %r12, %r15
jne 0xb3388
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| _ZN5minja14ArgumentsValue9has_namedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r12
push rbx
mov r15, [rdi+18h]
mov r12, [rdi+20h]
cmp r15, r12
jz short loc_B33B1
mov rbx, [rsi]
mov r14, [rsi+8]
loc_B3388:
cmp [r15+8], r14
jnz short loc_B33A8
mov bpl, 1
test r14, r14
jz short loc_B33B3
mov rdi, [r15]
mov rsi, rbx
mov rdx, r14
call _bcmp
test eax, eax
jz short loc_B33B3
loc_B33A8:
add r15, 70h ; 'p'
cmp r15, r12
jnz short loc_B3388
loc_B33B1:
xor ebp, ebp
loc_B33B3:
mov eax, ebp
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long minja::ArgumentsValue::has_named(long long a1, long long *a2)
{
unsigned int v2; // ebp
_QWORD *v3; // r15
_QWORD *v4; // r12
long long v5; // rbx
long long v6; // r14
v3 = *(_QWORD **)(a1 + 24);
v4 = *(_QWORD **)(a1 + 32);
if ( v3 == v4 )
{
return 0;
}
else
{
v5 = *a2;
v6 = a2[1];
while ( 1 )
{
if ( v3[1] == v6 )
{
LOBYTE(v2) = 1;
if ( !v6 || !(unsigned int)bcmp(*v3, v5) )
break;
}
v3 += 14;
if ( v3 == v4 )
return 0;
}
}
return v2;
}
| has_named:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R15,qword ptr [RDI + 0x18]
MOV R12,qword ptr [RDI + 0x20]
CMP R15,R12
JZ 0x001b33b1
MOV RBX,qword ptr [RSI]
MOV R14,qword ptr [RSI + 0x8]
LAB_001b3388:
CMP qword ptr [R15 + 0x8],R14
JNZ 0x001b33a8
MOV BPL,0x1
TEST R14,R14
JZ 0x001b33b3
MOV RDI,qword ptr [R15]
MOV RSI,RBX
MOV RDX,R14
CALL 0x0011a920
TEST EAX,EAX
JZ 0x001b33b3
LAB_001b33a8:
ADD R15,0x70
CMP R15,R12
JNZ 0x001b3388
LAB_001b33b1:
XOR EBP,EBP
LAB_001b33b3:
MOV EAX,EBP
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* minja::ArgumentsValue::has_named(std::__cxx11::string const&) */
ulong __thiscall minja::ArgumentsValue::has_named(ArgumentsValue *this,string *param_1)
{
int8 *puVar1;
void *__s2;
size_t __n;
int iVar2;
ulong unaff_RBP;
int8 *puVar3;
puVar3 = *(int8 **)(this + 0x18);
puVar1 = *(int8 **)(this + 0x20);
if (puVar3 != puVar1) {
__s2 = *(void **)param_1;
__n = *(size_t *)(param_1 + 8);
do {
if (puVar3[1] == __n) {
unaff_RBP = CONCAT71((int7)(unaff_RBP >> 8),1);
if (__n == 0) goto LAB_001b33b3;
iVar2 = bcmp((void *)*puVar3,__s2,__n);
if (iVar2 == 0) goto LAB_001b33b3;
}
puVar3 = puVar3 + 0xe;
} while (puVar3 != puVar1);
}
unaff_RBP = 0;
LAB_001b33b3:
return unaff_RBP & 0xffffffff;
}
| |
35,155 | google::protobuf::compiler::objectivec::ClassNameWorker[abi:cxx11](google::protobuf::Descriptor const*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc | std::string ClassNameWorker(const Descriptor* descriptor) {
std::string name;
if (descriptor->containing_type() != NULL) {
name = ClassNameWorker(descriptor->containing_type());
name += "_";
}
return name + descriptor->name();
} | O0 | cpp | google::protobuf::compiler::objectivec::ClassNameWorker[abi:cxx11](google::protobuf::Descriptor const*):
subq $0x98, %rsp
movq %rdi, 0x20(%rsp)
movq %rdi, %rax
movq %rax, 0x28(%rsp)
movq %rdi, 0x90(%rsp)
movq %rsi, 0x88(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x21390
movq 0x88(%rsp), %rdi
callq 0x58130
movq %rax, 0x30(%rsp)
jmp 0x83a02
movq 0x30(%rsp), %rax
cmpq $0x0, %rax
je 0x83a84
movq 0x88(%rsp), %rdi
callq 0x58130
movq %rax, 0x18(%rsp)
jmp 0x83a21
movq 0x18(%rsp), %rsi
leaq 0x38(%rsp), %rdi
callq 0x839c0
jmp 0x83a32
leaq 0x68(%rsp), %rdi
movq %rdi, 0x10(%rsp)
leaq 0x38(%rsp), %rsi
movq %rsi, 0x8(%rsp)
callq 0x215e0
movq 0x8(%rsp), %rdi
callq 0x21cc8
movq 0x10(%rsp), %rdi
leaq 0x3345ce(%rip), %rsi # 0x3b802f
callq 0x21190
jmp 0x83a68
jmp 0x83a84
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x21cc8
jmp 0x83ac3
movq 0x88(%rsp), %rdi
callq 0x58140
movq %rax, (%rsp)
jmp 0x83a97
movq (%rsp), %rdx
movq 0x20(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x369d0
jmp 0x83aac
leaq 0x68(%rsp), %rdi
callq 0x21cc8
movq 0x28(%rsp), %rax
addq $0x98, %rsp
retq
movq 0x60(%rsp), %rdi
callq 0x21700
nopl (%rax)
| _ZN6google8protobuf8compiler10objectivec15ClassNameWorkerB5cxx11EPKNS0_10DescriptorE:
sub rsp, 98h
mov qword ptr [rsp+98h+var_78], rdi
mov rax, rdi
mov [rsp+98h+var_70], rax
mov [rsp+98h+var_8], rdi
mov [rsp+98h+var_10], rsi
lea rdi, [rsp+98h+var_30]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void)
mov rdi, [rsp+98h+var_10]; this
call _ZNK6google8protobuf10Descriptor15containing_typeEv; google::protobuf::Descriptor::containing_type(void)
mov [rsp+98h+var_68], rax
jmp short $+2
loc_83A02:
mov rax, [rsp+98h+var_68]
cmp rax, 0
jz short loc_83A84
mov rdi, [rsp+98h+var_10]; this
call _ZNK6google8protobuf10Descriptor15containing_typeEv; google::protobuf::Descriptor::containing_type(void)
mov [rsp+98h+var_80], rax; __int64
jmp short $+2
loc_83A21:
mov rsi, [rsp+98h+var_80]
lea rdi, [rsp+98h+var_60]
call _ZN6google8protobuf8compiler10objectivec15ClassNameWorkerB5cxx11EPKNS0_10DescriptorE; google::protobuf::compiler::objectivec::ClassNameWorker(google::protobuf::Descriptor const*)
jmp short $+2
loc_83A32:
lea rdi, [rsp+98h+var_30]
mov [rsp+98h+var_88], rdi
lea rsi, [rsp+98h+var_60]
mov [rsp+98h+var_90], rsi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [rsp+98h+var_90]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rdi, [rsp+98h+var_88]
lea rsi, aPb_0+2; "_"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc; std::string::operator+=(char const*)
jmp short $+2
loc_83A68:
jmp short loc_83A84
mov rcx, rax
mov eax, edx
mov [rsp+arg_58], rcx
mov [rsp+arg_54], eax
lea rdi, [rsp+arg_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_83AC3
loc_83A84:
mov rdi, [rsp+98h+var_10]
call _ZNK6google8protobuf10Descriptor4nameB5cxx11Ev; google::protobuf::Descriptor::name(void)
mov qword ptr [rsp+98h+var_98], rax; int
jmp short $+2
loc_83A97:
mov rdx, qword ptr [rsp+98h+var_98]; int
mov rdi, qword ptr [rsp+98h+var_78]; int
lea rsi, [rsp+98h+var_30]; int
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_; std::operator+<char>(std::string const&,std::string const&)
jmp short $+2
loc_83AAC:
lea rdi, [rsp+98h+var_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rax, [rsp+98h+var_70]
add rsp, 98h
retn
loc_83AC3:
mov rdi, [rsp+arg_58]
call __Unwind_Resume
| long long google::protobuf::compiler::objectivec::ClassNameWorker[abi:cxx11](
long long a1,
google::protobuf::Descriptor *a2)
{
int v2; // edx
int v3; // ecx
int v4; // r8d
int v5; // r9d
long long v7; // [rsp+0h] [rbp-98h]
int v8; // [rsp+18h] [rbp-80h]
_BYTE v9[48]; // [rsp+38h] [rbp-60h] BYREF
int v10[8]; // [rsp+68h] [rbp-30h] BYREF
google::protobuf::Descriptor *v11; // [rsp+88h] [rbp-10h]
long long v12; // [rsp+90h] [rbp-8h]
v12 = a1;
v11 = a2;
std::string::basic_string(v10);
if ( google::protobuf::Descriptor::containing_type(v11) )
{
v8 = google::protobuf::Descriptor::containing_type(v11);
google::protobuf::compiler::objectivec::ClassNameWorker[abi:cxx11]((unsigned int)v9, v8, v2, v3, v4, v5);
std::string::operator=(v10, v9);
std::string::~string(v9);
std::string::operator+=(v10, "_");
}
v7 = google::protobuf::Descriptor::name[abi:cxx11]((long long)v11);
std::operator+<char>(a1, (long long)v10, v7);
std::string::~string(v10);
return a1;
}
| ClassNameWorker[abi:cxx11]:
SUB RSP,0x98
MOV qword ptr [RSP + 0x20],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x28],RAX
MOV qword ptr [RSP + 0x90],RDI
MOV qword ptr [RSP + 0x88],RSI
LEA RDI,[RSP + 0x68]
CALL 0x00121390
MOV RDI,qword ptr [RSP + 0x88]
LAB_001839f6:
CALL 0x00158130
MOV qword ptr [RSP + 0x30],RAX
JMP 0x00183a02
LAB_00183a02:
MOV RAX,qword ptr [RSP + 0x30]
CMP RAX,0x0
JZ 0x00183a84
MOV RDI,qword ptr [RSP + 0x88]
CALL 0x00158130
MOV qword ptr [RSP + 0x18],RAX
JMP 0x00183a21
LAB_00183a21:
MOV RSI,qword ptr [RSP + 0x18]
LEA RDI,[RSP + 0x38]
CALL 0x001839c0
JMP 0x00183a32
LAB_00183a32:
LEA RDI,[RSP + 0x68]
MOV qword ptr [RSP + 0x10],RDI
LEA RSI,[RSP + 0x38]
MOV qword ptr [RSP + 0x8],RSI
CALL 0x001215e0
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00121cc8
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[0x4b802f]
CALL 0x00121190
JMP 0x00183a68
LAB_00183a68:
JMP 0x00183a84
LAB_00183a84:
MOV RDI,qword ptr [RSP + 0x88]
CALL 0x00158140
MOV qword ptr [RSP],RAX
JMP 0x00183a97
LAB_00183a97:
MOV RDX,qword ptr [RSP]
MOV RDI,qword ptr [RSP + 0x20]
LEA RSI,[RSP + 0x68]
CALL 0x001369d0
LAB_00183aaa:
JMP 0x00183aac
LAB_00183aac:
LEA RDI,[RSP + 0x68]
CALL 0x00121cc8
MOV RAX,qword ptr [RSP + 0x28]
ADD RSP,0x98
RET
|
/* google::protobuf::compiler::objectivec::ClassNameWorker[abi:cxx11](google::protobuf::Descriptor
const*) */
objectivec * __thiscall
google::protobuf::compiler::objectivec::ClassNameWorker_abi_cxx11_
(objectivec *this,Descriptor *param_1)
{
long lVar1;
Descriptor *pDVar2;
objectivec local_60 [48];
string local_30 [32];
Descriptor *local_10;
objectivec *local_8;
local_10 = param_1;
local_8 = this;
std::__cxx11::string::string(local_30);
/* try { // try from 001839f6 to 00183aa9 has its CatchHandler @ 00183a6a */
lVar1 = Descriptor::containing_type(local_10);
if (lVar1 != 0) {
pDVar2 = (Descriptor *)Descriptor::containing_type(local_10);
ClassNameWorker_abi_cxx11_(local_60,pDVar2);
std::__cxx11::string::operator=(local_30,(string *)local_60);
std::__cxx11::string::~string((string *)local_60);
std::__cxx11::string::operator+=(local_30,"_");
}
Descriptor::name_abi_cxx11_(local_10);
std::operator+((string *)this,local_30);
std::__cxx11::string::~string(local_30);
return this;
}
| |
35,156 | ssux_lock_impl<false>::rd_wait() | eloqsql/storage/innobase/sync/srw_lock.cc | void ssux_lock_impl<spinloop>::rd_wait()
{
for (;;)
{
writer.wr_lock();
bool acquired= rd_lock_try();
writer.wr_unlock();
if (acquired)
break;
}
} | O3 | cpp | ssux_lock_impl<false>::rd_wait():
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x80000001, %r14d # imm = 0x80000001
xorl %eax, %eax
lock
cmpxchgl %r14d, (%rbx)
je 0x25a36
movq %rbx, %rdi
callq 0x257f2
xorl %eax, %eax
leal 0x1(%rax), %ecx
lock
cmpxchgl %ecx, 0x4(%rbx)
sete %r15b
je 0x25a4a
testl %eax, %eax
jns 0x25a38
lock
subl $0x80000001, (%rbx) # imm = 0x80000001
je 0x25a79
movl $0x0, (%rsp)
movl $0xca, %edi
movq %rbx, %rsi
movl $0x81, %edx
movl $0x1, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x24090
testb %r15b, %r15b
je 0x25a25
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
| _ZN14ssux_lock_implILb0EE7rd_waitEv:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdi
mov r14d, 80000001h
loc_25A25:
xor eax, eax
lock cmpxchg [rbx], r14d
jz short loc_25A36
mov rdi, rbx
call _ZN14srw_mutex_implILb0EE13wait_and_lockEv; srw_mutex_impl<false>::wait_and_lock(void)
loc_25A36:
xor eax, eax
loc_25A38:
lea ecx, [rax+1]
lock cmpxchg [rbx+4], ecx
setz r15b
jz short loc_25A4A
test eax, eax
jns short loc_25A38
loc_25A4A:
lock sub dword ptr [rbx], 80000001h
jz short loc_25A79
mov [rsp+20h+var_20], 0
mov edi, 0CAh
mov rsi, rbx
mov edx, 81h
mov ecx, 1
xor r8d, r8d
xor r9d, r9d
xor eax, eax
call _syscall
loc_25A79:
test r15b, r15b
jz short loc_25A25
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long ssux_lock_impl<false>::rd_wait(volatile signed __int32 *a1)
{
long long result; // rax
int v2; // ett
bool v3; // r15
do
{
if ( _InterlockedCompareExchange(a1, -2147483647, 0) )
srw_mutex_impl<false>::wait_and_lock(a1);
LODWORD(result) = 0;
do
{
v2 = result;
result = (unsigned int)_InterlockedCompareExchange(a1 + 1, result + 1, result);
v3 = v2 == (_DWORD)result;
}
while ( v2 != (_DWORD)result && (int)result >= 0 );
if ( _InterlockedSub(a1, 0x80000001) )
result = syscall(202LL, a1, 129LL, 1LL, 0LL, 0LL, 0);
}
while ( !v3 );
return result;
}
| rd_wait:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV R14D,0x80000001
LAB_00125a25:
XOR EAX,EAX
CMPXCHG.LOCK dword ptr [RBX],R14D
JZ 0x00125a36
MOV RDI,RBX
CALL 0x001257f2
LAB_00125a36:
XOR EAX,EAX
LAB_00125a38:
LEA ECX,[RAX + 0x1]
CMPXCHG.LOCK dword ptr [RBX + 0x4],ECX
SETZ R15B
JZ 0x00125a4a
TEST EAX,EAX
JNS 0x00125a38
LAB_00125a4a:
SUB.LOCK dword ptr [RBX],0x80000001
JZ 0x00125a79
MOV dword ptr [RSP],0x0
MOV EDI,0xca
MOV RSI,RBX
MOV EDX,0x81
MOV ECX,0x1
XOR R8D,R8D
XOR R9D,R9D
XOR EAX,EAX
CALL 0x00124090
LAB_00125a79:
TEST R15B,R15B
JZ 0x00125a25
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* ssux_lock_impl<false>::rd_wait() */
void __thiscall ssux_lock_impl<false>::rd_wait(ssux_lock_impl<false> *this)
{
int iVar1;
int iVar2;
ulong in_RAX;
bool bVar3;
do {
LOCK();
iVar2 = *(int *)this;
if (iVar2 == 0) {
*(int4 *)this = 0x80000001;
}
UNLOCK();
if (iVar2 != 0) {
srw_mutex_impl<false>::wait_and_lock((srw_mutex_impl<false> *)this);
}
iVar2 = 0;
do {
LOCK();
iVar1 = *(int *)(this + 4);
bVar3 = iVar2 == iVar1;
if (bVar3) {
*(int *)(this + 4) = iVar2 + 1;
iVar1 = iVar2;
}
iVar2 = iVar1;
UNLOCK();
} while ((!bVar3) && (-1 < iVar2));
LOCK();
*(int *)this = *(int *)this + 0x7fffffff;
UNLOCK();
if (*(int *)this != 0) {
in_RAX = in_RAX & 0xffffffff00000000;
syscall(0xca,this,0x81,1,0,0,in_RAX);
}
} while (!bVar3);
return;
}
| |
35,157 | fromfp16 | bluesky950520[P]quickjs/cutils.h | static inline double fromfp16(uint16_t v) {
double d, s;
int e;
if ((v & 0x7C00) == 0x7C00) {
d = (v & 0x3FF) ? NAN : INFINITY;
} else {
d = (v & 0x3FF) / 1024.;
e = (v & 0x7C00) >> 10;
if (e == 0) {
e = -14;
} else {
d += 1;
e -= 15;
}
d = scalbn(d, e);
}
s = (v & 0x8000) ? -1.0 : 1.0;
return d * s;
} | O0 | c | fromfp16:
subq $0x38, %rsp
movw %di, %ax
movw %ax, 0x36(%rsp)
movzwl 0x36(%rsp), %eax
andl $0x7c00, %eax # imm = 0x7C00
cmpl $0x7c00, %eax # imm = 0x7C00
jne 0x60b66
movzwl 0x36(%rsp), %eax
andl $0x3ff, %eax # imm = 0x3FF
movss 0xace91(%rip), %xmm0 # 0x10d9c0
movss 0xace8d(%rip), %xmm1 # 0x10d9c4
movss %xmm1, 0x14(%rsp)
cmpl $0x0, %eax
movss %xmm0, 0x18(%rsp)
jne 0x60b54
movss 0x14(%rsp), %xmm0
movss %xmm0, 0x18(%rsp)
movss 0x18(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x28(%rsp)
jmp 0x60bdc
movzwl 0x36(%rsp), %eax
andl $0x3ff, %eax # imm = 0x3FF
cvtsi2sd %eax, %xmm0
movsd 0xacd1c(%rip), %xmm1 # 0x10d898
divsd %xmm1, %xmm0
movsd %xmm0, 0x28(%rsp)
movzwl 0x36(%rsp), %eax
andl $0x7c00, %eax # imm = 0x7C00
sarl $0xa, %eax
movl %eax, 0x1c(%rsp)
cmpl $0x0, 0x1c(%rsp)
jne 0x60ba8
movl $0xfffffff2, 0x1c(%rsp) # imm = 0xFFFFFFF2
jmp 0x60bc7
movsd 0xacc80(%rip), %xmm0 # 0x10d830
addsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
movl 0x1c(%rsp), %eax
subl $0xf, %eax
movl %eax, 0x1c(%rsp)
movsd 0x28(%rsp), %xmm0
movl 0x1c(%rsp), %edi
callq 0xe670
movsd %xmm0, 0x28(%rsp)
movzwl 0x36(%rsp), %eax
andl $0x8000, %eax # imm = 0x8000
movsd 0xaccb2(%rip), %xmm0 # 0x10d8a0
movsd 0xacc3a(%rip), %xmm1 # 0x10d830
movsd %xmm1, (%rsp)
cmpl $0x0, %eax
movsd %xmm0, 0x8(%rsp)
jne 0x60c11
movsd (%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x28(%rsp), %xmm0
mulsd 0x20(%rsp), %xmm0
addq $0x38, %rsp
retq
nop
| fromfp16:
sub rsp, 38h
mov ax, di
mov [rsp+38h+var_2], ax
movzx eax, [rsp+38h+var_2]
and eax, 7C00h
cmp eax, 7C00h
jnz short loc_60B66
movzx eax, [rsp+38h+var_2]
and eax, 3FFh
movss xmm0, cs:dword_10D9C0
movss xmm1, cs:dword_10D9C4
movss [rsp+38h+var_24], xmm1
cmp eax, 0
movss [rsp+38h+var_20], xmm0
jnz short loc_60B54
movss xmm0, [rsp+38h+var_24]
movss [rsp+38h+var_20], xmm0
loc_60B54:
movss xmm0, [rsp+38h+var_20]
cvtss2sd xmm0, xmm0
movsd [rsp+38h+var_10], xmm0
jmp short loc_60BDC
loc_60B66:
movzx eax, [rsp+38h+var_2]
and eax, 3FFh
cvtsi2sd xmm0, eax
movsd xmm1, cs:qword_10D898
divsd xmm0, xmm1
movsd [rsp+38h+var_10], xmm0
movzx eax, [rsp+38h+var_2]
and eax, 7C00h
sar eax, 0Ah
mov [rsp+38h+var_1C], eax
cmp [rsp+38h+var_1C], 0
jnz short loc_60BA8
mov [rsp+38h+var_1C], 0FFFFFFF2h
jmp short loc_60BC7
loc_60BA8:
movsd xmm0, cs:qword_10D830
addsd xmm0, [rsp+38h+var_10]
movsd [rsp+38h+var_10], xmm0
mov eax, [rsp+38h+var_1C]
sub eax, 0Fh
mov [rsp+38h+var_1C], eax
loc_60BC7:
movsd xmm0, [rsp+38h+var_10]
mov edi, [rsp+38h+var_1C]
call _scalbn
movsd [rsp+38h+var_10], xmm0
loc_60BDC:
movzx eax, [rsp+38h+var_2]
and eax, 8000h
movsd xmm0, cs:qword_10D8A0
movsd xmm1, cs:qword_10D830
movsd [rsp+38h+var_38], xmm1
cmp eax, 0
movsd [rsp+38h+var_30], xmm0
jnz short loc_60C11
movsd xmm0, [rsp+38h+var_38]
movsd [rsp+38h+var_30], xmm0
loc_60C11:
movsd xmm0, [rsp+38h+var_30]
movsd [rsp+38h+var_18], xmm0
movsd xmm0, [rsp+38h+var_10]
mulsd xmm0, [rsp+38h+var_18]
add rsp, 38h
retn
| double fromfp16(__int16 a1)
{
double v2; // [rsp+8h] [rbp-30h]
float v3; // [rsp+18h] [rbp-20h]
int v4; // [rsp+1Ch] [rbp-1Ch]
unsigned int v5; // [rsp+1Ch] [rbp-1Ch]
double v6; // [rsp+28h] [rbp-10h]
double v7; // [rsp+28h] [rbp-10h]
if ( (a1 & 0x7C00) == 0x7C00 )
{
v3 = NAN;
if ( (a1 & 0x3FF) == 0 )
v3 = INFINITY;
v6 = v3;
}
else
{
v7 = (double)(a1 & 0x3FF) / 1024.0;
v4 = (a1 & 0x7C00) >> 10;
if ( v4 )
{
v7 = v7 + 1.0;
v5 = v4 - 15;
}
else
{
v5 = -14;
}
v6 = scalbn(v5, v7);
}
v2 = -1.0;
if ( (a1 & 0x8000) == 0 )
v2 = 1.0;
return v6 * v2;
}
| fromfp16:
SUB RSP,0x38
MOV AX,DI
MOV word ptr [RSP + 0x36],AX
MOVZX EAX,word ptr [RSP + 0x36]
AND EAX,0x7c00
CMP EAX,0x7c00
JNZ 0x00160b66
MOVZX EAX,word ptr [RSP + 0x36]
AND EAX,0x3ff
MOVSS XMM0,dword ptr [0x0020d9c0]
MOVSS XMM1,dword ptr [0x0020d9c4]
MOVSS dword ptr [RSP + 0x14],XMM1
CMP EAX,0x0
MOVSS dword ptr [RSP + 0x18],XMM0
JNZ 0x00160b54
MOVSS XMM0,dword ptr [RSP + 0x14]
MOVSS dword ptr [RSP + 0x18],XMM0
LAB_00160b54:
MOVSS XMM0,dword ptr [RSP + 0x18]
CVTSS2SD XMM0,XMM0
MOVSD qword ptr [RSP + 0x28],XMM0
JMP 0x00160bdc
LAB_00160b66:
MOVZX EAX,word ptr [RSP + 0x36]
AND EAX,0x3ff
CVTSI2SD XMM0,EAX
MOVSD XMM1,qword ptr [0x0020d898]
DIVSD XMM0,XMM1
MOVSD qword ptr [RSP + 0x28],XMM0
MOVZX EAX,word ptr [RSP + 0x36]
AND EAX,0x7c00
SAR EAX,0xa
MOV dword ptr [RSP + 0x1c],EAX
CMP dword ptr [RSP + 0x1c],0x0
JNZ 0x00160ba8
MOV dword ptr [RSP + 0x1c],0xfffffff2
JMP 0x00160bc7
LAB_00160ba8:
MOVSD XMM0,qword ptr [0x0020d830]
ADDSD XMM0,qword ptr [RSP + 0x28]
MOVSD qword ptr [RSP + 0x28],XMM0
MOV EAX,dword ptr [RSP + 0x1c]
SUB EAX,0xf
MOV dword ptr [RSP + 0x1c],EAX
LAB_00160bc7:
MOVSD XMM0,qword ptr [RSP + 0x28]
MOV EDI,dword ptr [RSP + 0x1c]
CALL 0x0010e670
MOVSD qword ptr [RSP + 0x28],XMM0
LAB_00160bdc:
MOVZX EAX,word ptr [RSP + 0x36]
AND EAX,0x8000
MOVSD XMM0,qword ptr [0x0020d8a0]
MOVSD XMM1,qword ptr [0x0020d830]
MOVSD qword ptr [RSP],XMM1
CMP EAX,0x0
MOVSD qword ptr [RSP + 0x8],XMM0
JNZ 0x00160c11
MOVSD XMM0,qword ptr [RSP]
MOVSD qword ptr [RSP + 0x8],XMM0
LAB_00160c11:
MOVSD XMM0,qword ptr [RSP + 0x8]
MOVSD qword ptr [RSP + 0x20],XMM0
MOVSD XMM0,qword ptr [RSP + 0x28]
MULSD XMM0,qword ptr [RSP + 0x20]
ADD RSP,0x38
RET
|
double fromfp16(ushort param_1)
{
int8 local_30;
int4 local_20;
int4 local_1c;
int8 local_10;
if ((param_1 & 0x7c00) == 0x7c00) {
local_20 = DAT_0020d9c0;
if ((param_1 & 0x3ff) == 0) {
local_20 = DAT_0020d9c4;
}
local_10 = (double)local_20;
}
else {
local_10 = (double)(param_1 & 0x3ff) / DAT_0020d898;
local_1c = (int)(param_1 & 0x7c00) >> 10;
if (local_1c == 0) {
local_1c = -0xe;
}
else {
local_10 = DAT_0020d830 + local_10;
local_1c = local_1c + -0xf;
}
local_10 = scalbn(local_10,local_1c);
}
local_30 = DAT_0020d8a0;
if ((param_1 & 0x8000) == 0) {
local_30 = DAT_0020d830;
}
return local_10 * local_30;
}
| |
35,158 | fromfp16 | bluesky950520[P]quickjs/cutils.h | static inline double fromfp16(uint16_t v) {
double d, s;
int e;
if ((v & 0x7C00) == 0x7C00) {
d = (v & 0x3FF) ? NAN : INFINITY;
} else {
d = (v & 0x3FF) / 1024.;
e = (v & 0x7C00) >> 10;
if (e == 0) {
e = -14;
} else {
d += 1;
e -= 15;
}
d = scalbn(d, e);
}
s = (v & 0x8000) ? -1.0 : 1.0;
return d * s;
} | O1 | c | fromfp16:
pushq %rbx
movl %edi, %ebx
movl $0x7c00, %edx # imm = 0x7C00
movl %edi, %eax
andl %edx, %eax
movl %edi, %ecx
andl $0x3ff, %ecx # imm = 0x3FF
cmpl %edx, %eax
jne 0x3d982
xorl %eax, %eax
testl %ecx, %ecx
sete %al
leaq 0x60dd5(%rip), %rcx # 0x9e750
movsd (%rcx,%rax,8), %xmm0
jmp 0x3d9af
cvtsi2sd %ecx, %xmm0
mulsd 0x60ef2(%rip), %xmm0 # 0x9e880
movl %eax, %edi
shrl $0xa, %edi
addl $-0xf, %edi
testl %eax, %eax
je 0x3d9a2
addsd 0x60ec6(%rip), %xmm0 # 0x9e868
movl $0xfffffff2, %eax # imm = 0xFFFFFFF2
cmovel %eax, %edi
callq 0xe670
testw %bx, %bx
jns 0x3d9bc
xorpd 0x60da4(%rip), %xmm0 # 0x9e760
popq %rbx
retq
| fromfp16:
push rbx
mov ebx, edi
mov edx, 7C00h
mov eax, edi
and eax, edx
mov ecx, edi
and ecx, 3FFh
cmp eax, edx
jnz short loc_3D982
xor eax, eax
test ecx, ecx
setz al
lea rcx, dbl_9E750
movsd xmm0, qword ptr [rcx+rax*8]
jmp short loc_3D9AF
loc_3D982:
cvtsi2sd xmm0, ecx
mulsd xmm0, cs:qword_9E880
mov edi, eax
shr edi, 0Ah
add edi, 0FFFFFFF1h
test eax, eax
jz short loc_3D9A2
addsd xmm0, cs:qword_9E868
loc_3D9A2:
mov eax, 0FFFFFFF2h
cmovz edi, eax
call _scalbn
loc_3D9AF:
test bx, bx
jns short loc_3D9BC
xorpd xmm0, cs:xmmword_9E760
loc_3D9BC:
pop rbx
retn
| long long fromfp16(__int16 a1)
{
unsigned int v1; // eax
int v2; // ecx
double v4; // xmm0_8
long long v5; // rdi
v1 = a1 & 0x7C00;
v2 = a1 & 0x3FF;
if ( v1 == 31744 )
return v2 == 0;
v4 = (double)v2 * 0.0009765625;
v5 = (v1 >> 10) - 15;
if ( v1 )
v4 = v4 + 1.0;
else
v5 = 4294967282LL;
return scalbn(v5, v4);
}
| fromfp16:
PUSH RBX
MOV EBX,EDI
MOV EDX,0x7c00
MOV EAX,EDI
AND EAX,EDX
MOV ECX,EDI
AND ECX,0x3ff
CMP EAX,EDX
JNZ 0x0013d982
XOR EAX,EAX
TEST ECX,ECX
SETZ AL
LEA RCX,[0x19e750]
MOVSD XMM0,qword ptr [RCX + RAX*0x8]
JMP 0x0013d9af
LAB_0013d982:
CVTSI2SD XMM0,ECX
MULSD XMM0,qword ptr [0x0019e880]
MOV EDI,EAX
SHR EDI,0xa
ADD EDI,-0xf
TEST EAX,EAX
JZ 0x0013d9a2
ADDSD XMM0,qword ptr [0x0019e868]
LAB_0013d9a2:
MOV EAX,0xfffffff2
CMOVZ EDI,EAX
CALL 0x0010e670
LAB_0013d9af:
TEST BX,BX
JNS 0x0013d9bc
XORPD XMM0,xmmword ptr [0x0019e760]
LAB_0013d9bc:
POP RBX
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
double fromfp16(uint param_1)
{
uint uVar1;
int __n;
double dVar2;
uVar1 = param_1 & 0x7c00;
if (uVar1 == 0x7c00) {
dVar2 = *(double *)(&DAT_0019e750 + (ulong)((param_1 & 0x3ff) == 0) * 8);
}
else {
dVar2 = (double)(param_1 & 0x3ff) * _DAT_0019e880;
__n = (uVar1 >> 10) - 0xf;
if (uVar1 == 0) {
__n = -0xe;
}
else {
dVar2 = dVar2 + DAT_0019e868;
}
dVar2 = scalbn(dVar2,__n);
}
if ((short)param_1 < 0) {
dVar2 = (double)((ulong)dVar2 ^ _DAT_0019e760);
}
return dVar2;
}
| |
35,159 | fromfp16 | bluesky950520[P]quickjs/cutils.h | static inline double fromfp16(uint16_t v) {
double d, s;
int e;
if ((v & 0x7C00) == 0x7C00) {
d = (v & 0x3FF) ? NAN : INFINITY;
} else {
d = (v & 0x3FF) / 1024.;
e = (v & 0x7C00) >> 10;
if (e == 0) {
e = -14;
} else {
d += 1;
e -= 15;
}
d = scalbn(d, e);
}
s = (v & 0x8000) ? -1.0 : 1.0;
return d * s;
} | O2 | c | fromfp16:
pushq %rbx
movl %edi, %ebx
movl $0x7c00, %edx # imm = 0x7C00
movl %edi, %eax
andl %edx, %eax
movl %edi, %ecx
andl $0x3ff, %ecx # imm = 0x3FF
cmpl %edx, %eax
jne 0x361a4
xorl %eax, %eax
testl %ecx, %ecx
sete %al
leaq 0x4f573(%rip), %rcx # 0x85710
movsd (%rcx,%rax,8), %xmm0
jmp 0x361cf
cvtsi2sd %ecx, %xmm0
mulsd 0x4f690(%rip), %xmm0 # 0x85840
movl %eax, %edi
shrl $0xa, %edi
addl $-0xf, %edi
testl %eax, %eax
je 0x361c4
addsd 0x4f5ec(%rip), %xmm0 # 0x857b0
pushq $-0xe
popq %rax
cmovel %eax, %edi
callq 0xe690
testw %bx, %bx
jns 0x361dc
xorpd 0x4f544(%rip), %xmm0 # 0x85720
popq %rbx
retq
| fromfp16:
push rbx
mov ebx, edi
mov edx, 7C00h
mov eax, edi
and eax, edx
mov ecx, edi
and ecx, 3FFh
cmp eax, edx
jnz short loc_361A4
xor eax, eax
test ecx, ecx
setz al
lea rcx, unk_85710
movsd xmm0, qword ptr [rcx+rax*8]
jmp short loc_361CF
loc_361A4:
cvtsi2sd xmm0, ecx
mulsd xmm0, cs:qword_85840
mov edi, eax
shr edi, 0Ah
add edi, 0FFFFFFF1h
test eax, eax
jz short loc_361C4
addsd xmm0, cs:qword_857B0
loc_361C4:
push 0FFFFFFFFFFFFFFF2h
pop rax
cmovz edi, eax
call _scalbn
loc_361CF:
test bx, bx
jns short loc_361DC
xorpd xmm0, cs:xmmword_85720
loc_361DC:
pop rbx
retn
| long long fromfp16(__int16 a1)
{
unsigned int v1; // eax
int v2; // ecx
double v4; // xmm0_8
long long v5; // rdi
v1 = a1 & 0x7C00;
v2 = a1 & 0x3FF;
if ( v1 == 31744 )
return v2 == 0;
v4 = (double)v2 * 0.0009765625;
v5 = (v1 >> 10) - 15;
if ( v1 )
v4 = v4 + 1.0;
else
v5 = 4294967282LL;
return scalbn(v5, v4);
}
| fromfp16:
PUSH RBX
MOV EBX,EDI
MOV EDX,0x7c00
MOV EAX,EDI
AND EAX,EDX
MOV ECX,EDI
AND ECX,0x3ff
CMP EAX,EDX
JNZ 0x001361a4
XOR EAX,EAX
TEST ECX,ECX
SETZ AL
LEA RCX,[0x185710]
MOVSD XMM0,qword ptr [RCX + RAX*0x8]
JMP 0x001361cf
LAB_001361a4:
CVTSI2SD XMM0,ECX
MULSD XMM0,qword ptr [0x00185840]
MOV EDI,EAX
SHR EDI,0xa
ADD EDI,-0xf
TEST EAX,EAX
JZ 0x001361c4
ADDSD XMM0,qword ptr [0x001857b0]
LAB_001361c4:
PUSH -0xe
POP RAX
CMOVZ EDI,EAX
CALL 0x0010e690
LAB_001361cf:
TEST BX,BX
JNS 0x001361dc
XORPD XMM0,xmmword ptr [0x00185720]
LAB_001361dc:
POP RBX
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
double fromfp16(uint param_1)
{
uint uVar1;
int __n;
double dVar2;
uVar1 = param_1 & 0x7c00;
if (uVar1 == 0x7c00) {
dVar2 = *(double *)(&DAT_00185710 + (ulong)((param_1 & 0x3ff) == 0) * 8);
}
else {
dVar2 = (double)(param_1 & 0x3ff) * _DAT_00185840;
__n = (uVar1 >> 10) - 0xf;
if (uVar1 == 0) {
__n = -0xe;
}
else {
dVar2 = dVar2 + DAT_001857b0;
}
dVar2 = scalbn(dVar2,__n);
}
if ((short)param_1 < 0) {
dVar2 = (double)((ulong)dVar2 ^ _DAT_00185720);
}
return dVar2;
}
| |
35,160 | get_first_weak_ref | bluesky950520[P]quickjs/quickjs.c | static JSWeakRefRecord **get_first_weak_ref(JSValue key)
{
switch (JS_VALUE_GET_TAG(key)) {
case JS_TAG_OBJECT:
{
JSObject *p = JS_VALUE_GET_OBJ(key);
return &p->first_weak_ref;
}
break;
case JS_TAG_SYMBOL:
{
JSAtomStruct *p = JS_VALUE_GET_PTR(key);
return &p->first_weak_ref;
}
break;
default:
abort();
}
return NULL; // pacify compiler
} | O0 | c | get_first_weak_ref:
subq $0x38, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x28(%rsp)
movl 0x28(%rsp), %eax
movl %eax, 0xc(%rsp)
subl $-0x8, %eax
je 0x5c152
jmp 0x5c12d
movl 0xc(%rsp), %eax
subl $-0x1, %eax
jne 0x5c16c
jmp 0x5c138
movq 0x20(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
addq $0x28, %rax
movq %rax, 0x30(%rsp)
jmp 0x5c171
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
addq $0x10, %rax
movq %rax, 0x30(%rsp)
jmp 0x5c171
callq 0xe090
movq 0x30(%rsp), %rax
addq $0x38, %rsp
retq
nopl (%rax,%rax)
| get_first_weak_ref:
sub rsp, 38h
mov [rsp+38h+var_18], rdi
mov [rsp+38h+var_10], rsi
mov eax, dword ptr [rsp+38h+var_10]
mov [rsp+38h+var_2C], eax
sub eax, 0FFFFFFF8h
jz short loc_5C152
jmp short $+2
loc_5C12D:
mov eax, [rsp+38h+var_2C]
sub eax, 0FFFFFFFFh
jnz short loc_5C16C
jmp short $+2
loc_5C138:
mov rax, [rsp+38h+var_18]
mov [rsp+38h+var_20], rax
mov rax, [rsp+38h+var_20]
add rax, 28h ; '('
mov [rsp+38h+var_8], rax
jmp short loc_5C171
loc_5C152:
mov rax, [rsp+38h+var_18]
mov [rsp+38h+var_28], rax
mov rax, [rsp+38h+var_28]
add rax, 10h
mov [rsp+38h+var_8], rax
jmp short loc_5C171
loc_5C16C:
call _abort
loc_5C171:
mov rax, [rsp+38h+var_8]
add rsp, 38h
retn
| const char * get_first_weak_ref(const char *a1, int a2)
{
if ( a2 == -8 )
return a1 + 16;
if ( a2 != -1 )
abort(a1);
return a1 + 40;
}
| get_first_weak_ref:
SUB RSP,0x38
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV EAX,dword ptr [RSP + 0x28]
MOV dword ptr [RSP + 0xc],EAX
SUB EAX,-0x8
JZ 0x0015c152
JMP 0x0015c12d
LAB_0015c12d:
MOV EAX,dword ptr [RSP + 0xc]
SUB EAX,-0x1
JNZ 0x0015c16c
JMP 0x0015c138
LAB_0015c138:
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0x18]
ADD RAX,0x28
MOV qword ptr [RSP + 0x30],RAX
JMP 0x0015c171
LAB_0015c152:
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,0x10
MOV qword ptr [RSP + 0x30],RAX
JMP 0x0015c171
LAB_0015c16c:
CALL 0x0010e090
LAB_0015c171:
MOV RAX,qword ptr [RSP + 0x30]
ADD RSP,0x38
RET
|
long get_first_weak_ref(long param_1,int param_2)
{
int8 local_8;
if (param_2 == -8) {
local_8 = param_1 + 0x10;
}
else {
if (param_2 != -1) {
/* WARNING: Subroutine does not return */
abort();
}
local_8 = param_1 + 0x28;
}
return local_8;
}
| |
35,161 | my_open | eloqsql/mysys/my_open.c | File my_open(const char *FileName, int Flags, myf MyFlags)
/* Path-name of file */
/* Read | write .. */
/* Special flags */
{
File fd;
DBUG_ENTER("my_open");
DBUG_PRINT("my",("Name: '%s' Flags: %d MyFlags: %lu",
FileName, Flags, MyFlags));
if (!(MyFlags & (MY_WME | MY_FAE | MY_FFNF)))
MyFlags|= my_global_flags;
#if defined(_WIN32)
fd= my_win_open(FileName, Flags);
#else
if (MyFlags & MY_NOSYMLINKS)
fd = open_nosymlinks(FileName, Flags | O_CLOEXEC, my_umask);
else
fd = open(FileName, Flags | O_CLOEXEC, my_umask);
#endif
fd= my_register_filename(fd, FileName, FILE_BY_OPEN,
EE_FILENOTFOUND, MyFlags);
DBUG_RETURN(fd);
} | O3 | c | my_open:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %esi, %r15d
movq %rdi, %rbx
testb $0x19, %dl
jne 0xbf976
leaq 0xb71187(%rip), %rax # 0xc30af8
movq (%rax), %r14
jmp 0xbf979
xorl %r14d, %r14d
orq %rdx, %r14
btl $0x9, %r14d
jb 0xbf9a5
orl $0x80000, %r15d # imm = 0x80000
leaq 0x2eeb37(%rip), %rax # 0x3ae4c8
movl (%rax), %edx
movq %rbx, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x2aab0
movl %eax, %r15d
jmp 0xbf9f1
leaq 0x2eeb1c(%rip), %rax # 0x3ae4c8
movl (%rax), %r12d
leaq -0x24(%rbp), %rsi
movq %rbx, %rdi
callq 0xc08b4
testq %rax, %rax
je 0xbf9eb
movl -0x24(%rbp), %edi
orl $0xa0000, %r15d # imm = 0xA0000
movq %rax, %rsi
movl %r15d, %edx
movl %r12d, %ecx
xorl %eax, %eax
callq 0x2a5e0
movl %eax, %r15d
movl -0x24(%rbp), %edi
testl %edi, %edi
js 0xbf9f1
callq 0x2a1c0
jmp 0xbf9f1
movl $0xffffffff, %r15d # imm = 0xFFFFFFFF
movl %r15d, %edi
movq %rbx, %rsi
movl $0x1, %edx
movl $0x1d, %ecx
movq %r14, %r8
callq 0xbfa16
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| my_open:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov r15d, esi
mov rbx, rdi
test dl, 19h
jnz short loc_BF976
lea rax, my_global_flags
mov r14, [rax]
jmp short loc_BF979
loc_BF976:
xor r14d, r14d
loc_BF979:
or r14, rdx
bt r14d, 9
jb short loc_BF9A5
or r15d, 80000h
lea rax, my_umask
mov edx, [rax]
mov rdi, rbx
mov esi, r15d
xor eax, eax
call _open64
mov r15d, eax
jmp short loc_BF9F1
loc_BF9A5:
lea rax, my_umask
mov r12d, [rax]
lea rsi, [rbp+var_24]
mov rdi, rbx
call my_open_parent_dir_nosymlinks
test rax, rax
jz short loc_BF9EB
mov edi, [rbp+var_24]
or r15d, 0A0000h
mov rsi, rax
mov edx, r15d
mov ecx, r12d
xor eax, eax
call _openat64
mov r15d, eax
mov edi, [rbp+var_24]
test edi, edi
js short loc_BF9F1
call _close
jmp short loc_BF9F1
loc_BF9EB:
mov r15d, 0FFFFFFFFh
loc_BF9F1:
mov edi, r15d
mov rsi, rbx
mov edx, 1
mov ecx, 1Dh
mov r8, r14
call my_register_filename
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long my_open(long long a1, int a2, long long a3)
{
long long v3; // r14
long long v4; // r14
unsigned int v5; // r15d
unsigned int v6; // r12d
long long v7; // rax
int v9[9]; // [rsp+Ch] [rbp-24h] BYREF
if ( (a3 & 0x19) != 0 )
v3 = 0LL;
else
v3 = my_global_flags;
v4 = a3 | v3;
if ( (v4 & 0x200) != 0 )
{
v6 = my_umask;
v7 = my_open_parent_dir_nosymlinks(a1, v9);
if ( v7 )
{
v5 = openat64((unsigned int)v9[0], v7, a2 | 0xA0000u, v6);
if ( v9[0] >= 0 )
close((unsigned int)v9[0]);
}
else
{
v5 = -1;
}
}
else
{
v5 = open64(a1, a2 | 0x80000u, my_umask);
}
return my_register_filename(v5, a1, 1LL, 29LL, v4);
}
| my_open:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV R15D,ESI
MOV RBX,RDI
TEST DL,0x19
JNZ 0x001bf976
LEA RAX,[0xd30af8]
MOV R14,qword ptr [RAX]
JMP 0x001bf979
LAB_001bf976:
XOR R14D,R14D
LAB_001bf979:
OR R14,RDX
BT R14D,0x9
JC 0x001bf9a5
OR R15D,0x80000
LEA RAX,[0x4ae4c8]
MOV EDX,dword ptr [RAX]
MOV RDI,RBX
MOV ESI,R15D
XOR EAX,EAX
CALL 0x0012aab0
MOV R15D,EAX
JMP 0x001bf9f1
LAB_001bf9a5:
LEA RAX,[0x4ae4c8]
MOV R12D,dword ptr [RAX]
LEA RSI,[RBP + -0x24]
MOV RDI,RBX
CALL 0x001c08b4
TEST RAX,RAX
JZ 0x001bf9eb
MOV EDI,dword ptr [RBP + -0x24]
OR R15D,0xa0000
MOV RSI,RAX
MOV EDX,R15D
MOV ECX,R12D
XOR EAX,EAX
CALL 0x0012a5e0
MOV R15D,EAX
MOV EDI,dword ptr [RBP + -0x24]
TEST EDI,EDI
JS 0x001bf9f1
CALL 0x0012a1c0
JMP 0x001bf9f1
LAB_001bf9eb:
MOV R15D,0xffffffff
LAB_001bf9f1:
MOV EDI,R15D
MOV RSI,RBX
MOV EDX,0x1
MOV ECX,0x1d
MOV R8,R14
CALL 0x001bfa16
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
void my_open(char *param_1,uint param_2,ulong param_3)
{
uint uVar1;
int iVar2;
char *__file;
ulong uVar3;
int local_2c;
uVar1 = my_umask;
uVar3 = my_global_flags;
if ((param_3 & 0x19) != 0) {
uVar3 = 0;
}
if (((uint)(uVar3 | param_3) >> 9 & 1) == 0) {
iVar2 = open64(param_1,param_2 | 0x80000,(ulong)my_umask);
}
else {
__file = (char *)my_open_parent_dir_nosymlinks(param_1,&local_2c);
if (__file == (char *)0x0) {
iVar2 = -1;
}
else {
iVar2 = openat64(local_2c,__file,param_2 | 0xa0000,(ulong)uVar1);
if (-1 < local_2c) {
close(local_2c);
}
}
}
my_register_filename(iVar2,param_1,1,0x1d,uVar3 | param_3);
return;
}
| |
35,162 | JS_NewAtomStr | bluesky950520[P]quickjs/quickjs.c | static JSAtom JS_NewAtomStr(JSContext *ctx, JSString *p)
{
JSRuntime *rt = ctx->rt;
uint32_t n;
if (is_num_string(&n, p)) {
if (n <= JS_ATOM_MAX_INT) {
js_free_string(rt, p);
return __JS_AtomFromUInt32(n);
}
}
/* XXX: should generate an exception */
return __JS_NewAtom(rt, p, JS_ATOM_TYPE_STRING);
} | O0 | c | JS_NewAtomStr:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rsi
leaq 0x4(%rsp), %rdi
callq 0x5ca30
cmpl $0x0, %eax
je 0x2849a
cmpl $0x7fffffff, 0x4(%rsp) # imm = 0x7FFFFFFF
ja 0x28498
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x5cb70
movl 0x4(%rsp), %edi
callq 0x285b0
movl %eax, 0x24(%rsp)
jmp 0x284b2
jmp 0x2849a
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movl $0x1, %edx
callq 0x28650
movl %eax, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopl (%rax,%rax)
| JS_NewAtomStr:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov [rsp+28h+var_18], rsi
mov rax, [rsp+28h+var_10]
mov rax, [rax+18h]
mov [rsp+28h+var_20], rax
mov rsi, [rsp+28h+var_18]
lea rdi, [rsp+28h+var_24]
call is_num_string
cmp eax, 0
jz short loc_2849A
cmp [rsp+28h+var_24], 7FFFFFFFh
ja short loc_28498
mov rdi, [rsp+28h+var_20]
mov rsi, [rsp+28h+var_18]
call js_free_string
mov edi, [rsp+28h+var_24]
call __JS_AtomFromUInt32
mov [rsp+28h+var_4], eax
jmp short loc_284B2
loc_28498:
jmp short $+2
loc_2849A:
mov rdi, [rsp+28h+var_20]
mov rsi, [rsp+28h+var_18]
mov edx, 1
call __JS_NewAtom
mov [rsp+28h+var_4], eax
loc_284B2:
mov eax, [rsp+28h+var_4]
add rsp, 28h
retn
| long long JS_NewAtomStr(long long a1, long long a2)
{
unsigned int v3; // [rsp+4h] [rbp-24h] BYREF
long long v4; // [rsp+8h] [rbp-20h]
long long v5; // [rsp+10h] [rbp-18h]
long long v6; // [rsp+18h] [rbp-10h]
v6 = a1;
v5 = a2;
v4 = *(_QWORD *)(a1 + 24);
if ( (unsigned int)is_num_string(&v3, a2) && v3 <= 0x7FFFFFFF )
{
js_free_string(v4, v5);
return (unsigned int)_JS_AtomFromUInt32(v3);
}
else
{
return (unsigned int)_JS_NewAtom(v4, v5, 1LL);
}
}
| JS_NewAtomStr:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RDI
MOV qword ptr [RSP + 0x10],RSI
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x8],RAX
MOV RSI,qword ptr [RSP + 0x10]
LEA RDI,[RSP + 0x4]
CALL 0x0015ca30
CMP EAX,0x0
JZ 0x0012849a
CMP dword ptr [RSP + 0x4],0x7fffffff
JA 0x00128498
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x10]
CALL 0x0015cb70
MOV EDI,dword ptr [RSP + 0x4]
CALL 0x001285b0
MOV dword ptr [RSP + 0x24],EAX
JMP 0x001284b2
LAB_00128498:
JMP 0x0012849a
LAB_0012849a:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x10]
MOV EDX,0x1
CALL 0x00128650
MOV dword ptr [RSP + 0x24],EAX
LAB_001284b2:
MOV EAX,dword ptr [RSP + 0x24]
ADD RSP,0x28
RET
|
int4 JS_NewAtomStr(long param_1,int8 param_2)
{
int iVar1;
uint local_24;
int8 local_20;
int8 local_18;
long local_10;
int4 local_4;
local_20 = *(int8 *)(param_1 + 0x18);
local_18 = param_2;
local_10 = param_1;
iVar1 = is_num_string(&local_24,param_2);
if ((iVar1 == 0) || (0x7fffffff < local_24)) {
local_4 = __JS_NewAtom(local_20,local_18,1);
}
else {
js_free_string(local_20,local_18);
local_4 = __JS_AtomFromUInt32(local_24);
}
return local_4;
}
| |
35,163 | JS_NewAtomStr | bluesky950520[P]quickjs/quickjs.c | static JSAtom JS_NewAtomStr(JSContext *ctx, JSString *p)
{
JSRuntime *rt = ctx->rt;
uint32_t n;
if (is_num_string(&n, p)) {
if (n <= JS_ATOM_MAX_INT) {
js_free_string(rt, p);
return __JS_AtomFromUInt32(n);
}
}
/* XXX: should generate an exception */
return __JS_NewAtom(rt, p, JS_ATOM_TYPE_STRING);
} | O1 | c | JS_NewAtomStr:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq 0x4(%rsi), %rax
movl %eax, %edx
andl $0x7fffffff, %edx # imm = 0x7FFFFFFF
leal -0xb(%rdx), %ecx
cmpl $-0xa, %ecx
jb 0x2006c
testl %eax, %eax
js 0x2005e
movzbl 0x18(%rbx), %ecx
jmp 0x20062
movzwl 0x18(%rbx), %ecx
leal -0x30(%rcx), %r14d
cmpl $0x9, %r14d
jbe 0x200d4
xorl %ecx, %ecx
movq 0x18(%rdi), %r15
testb %cl, %cl
je 0x200bf
testl %r14d, %r14d
js 0x200bf
movl (%rbx), %ecx
leal -0x1(%rcx), %edx
movl %edx, (%rbx)
cmpl $0x1, %ecx
jg 0x2014b
shrq $0x3e, %rax
jne 0x20140
decq 0x28(%r15)
movq %rbx, %rdi
callq *0x20(%r15)
movq 0x30(%r15), %rcx
movq 0x40(%r15), %rdi
subq %rax, %rcx
addq $-0x8, %rcx
movq %rcx, 0x30(%r15)
movq %rbx, %rsi
callq *0x10(%r15)
jmp 0x2014b
movq %r15, %rdi
movq %rbx, %rsi
movl $0x1, %edx
popq %rbx
popq %r14
popq %r15
jmp 0x2023d
cmpl $0x30, %ecx
jne 0x200e4
cmpl $0x1, %edx
sete %cl
xorl %r14d, %r14d
jmp 0x2006e
movb $0x1, %cl
cmpl $0x2, %edx
jb 0x2006e
movl %eax, %edx
andl $0x7fffffff, %edx # imm = 0x7FFFFFFF
decq %rdx
xorl %esi, %esi
testl %eax, %eax
js 0x20104
movzbl 0x19(%rbx,%rsi), %r8d
jmp 0x2010a
movzwl 0x1a(%rbx,%rsi,2), %r8d
addl $-0x30, %r8d
cmpl $0x9, %r8d
ja 0x2006c
movl %r14d, %r9d
leaq (%r9,%r9,4), %r9
movl %r8d, %r8d
leaq (%r8,%r9,2), %r14
movq %r14, %r8
shrq $0x20, %r8
jne 0x2006c
incq %rsi
cmpq %rsi, %rdx
jne 0x200f8
jmp 0x2006e
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3b863
orl $0x80000000, %r14d # imm = 0x80000000
movl %r14d, %eax
popq %rbx
popq %r14
popq %r15
retq
| JS_NewAtomStr:
push r15
push r14
push rbx
mov rbx, rsi
mov rax, [rsi+4]
mov edx, eax
and edx, 7FFFFFFFh
lea ecx, [rdx-0Bh]
cmp ecx, 0FFFFFFF6h
jb short loc_2006C
test eax, eax
js short loc_2005E
movzx ecx, byte ptr [rbx+18h]
jmp short loc_20062
loc_2005E:
movzx ecx, word ptr [rbx+18h]
loc_20062:
lea r14d, [rcx-30h]
cmp r14d, 9
jbe short loc_200D4
loc_2006C:
xor ecx, ecx
loc_2006E:
mov r15, [rdi+18h]
test cl, cl
jz short loc_200BF
test r14d, r14d
js short loc_200BF
mov ecx, [rbx]
lea edx, [rcx-1]
mov [rbx], edx
cmp ecx, 1
jg loc_2014B
shr rax, 3Eh
jnz loc_20140
dec qword ptr [r15+28h]
mov rdi, rbx
call qword ptr [r15+20h]
mov rcx, [r15+30h]
mov rdi, [r15+40h]
sub rcx, rax
add rcx, 0FFFFFFFFFFFFFFF8h
mov [r15+30h], rcx
mov rsi, rbx
call qword ptr [r15+10h]
jmp loc_2014B
loc_200BF:
mov rdi, r15
mov rsi, rbx
mov edx, 1
pop rbx
pop r14
pop r15
jmp __JS_NewAtom
loc_200D4:
cmp ecx, 30h ; '0'
jnz short loc_200E4
cmp edx, 1
setz cl
xor r14d, r14d
jmp short loc_2006E
loc_200E4:
mov cl, 1
cmp edx, 2
jb short loc_2006E
mov edx, eax
and edx, 7FFFFFFFh
dec rdx
xor esi, esi
loc_200F8:
test eax, eax
js short loc_20104
movzx r8d, byte ptr [rbx+rsi+19h]
jmp short loc_2010A
loc_20104:
movzx r8d, word ptr [rbx+rsi*2+1Ah]
loc_2010A:
add r8d, 0FFFFFFD0h
cmp r8d, 9
ja loc_2006C
mov r9d, r14d
lea r9, [r9+r9*4]
mov r8d, r8d
lea r14, [r8+r9*2]
mov r8, r14
shr r8, 20h
jnz loc_2006C
inc rsi
cmp rdx, rsi
jnz short loc_200F8
jmp loc_2006E
loc_20140:
mov rdi, r15
mov rsi, rbx
call JS_FreeAtomStruct
loc_2014B:
or r14d, 80000000h
mov eax, r14d
pop rbx
pop r14
pop r15
retn
| long long JS_NewAtomStr(long long a1, long long a2)
{
unsigned long long v2; // r14
unsigned long long v4; // rax
unsigned int v5; // edx
int v6; // ecx
bool v7; // cl
long long v8; // r15
int v9; // ecx
long long v10; // rax
long long v11; // rdi
long long v13; // rsi
int v14; // r8d
unsigned int v15; // r8d
v4 = *(_QWORD *)(a2 + 4);
v5 = v4 & 0x7FFFFFFF;
if ( (v4 & 0x7FFFFFFF) - 11 >= 0xFFFFFFF6 )
{
v6 = (v4 & 0x80000000) != 0LL ? *(unsigned __int16 *)(a2 + 24) : *(unsigned __int8 *)(a2 + 24);
LODWORD(v2) = v6 - 48;
if ( (unsigned int)(v6 - 48) <= 9 )
{
if ( v6 == 48 )
{
v7 = v5 == 1;
LODWORD(v2) = 0;
goto LABEL_7;
}
v7 = 1;
if ( v5 < 2 )
goto LABEL_7;
v13 = 0LL;
while ( 1 )
{
v14 = (v4 & 0x80000000) != 0LL ? *(unsigned __int16 *)(a2 + 2 * v13 + 26) : *(unsigned __int8 *)(a2 + v13 + 25);
v15 = v14 - 48;
if ( v15 > 9 )
break;
v2 = v15 + 10LL * (unsigned int)v2;
if ( HIDWORD(v2) )
break;
if ( (v4 & 0x7FFFFFFF) - 1 == ++v13 )
goto LABEL_7;
}
}
}
v7 = 0;
LABEL_7:
v8 = *(_QWORD *)(a1 + 24);
if ( !v7 || (v2 & 0x80000000) != 0LL )
return _JS_NewAtom(*(_QWORD *)(a1 + 24), a2, 1LL);
v9 = (*(_DWORD *)a2)--;
if ( v9 <= 1 )
{
if ( v4 >> 62 )
{
JS_FreeAtomStruct(v8);
}
else
{
--*(_QWORD *)(v8 + 40);
v10 = (*(long long ( **)(long long))(v8 + 32))(a2);
v11 = *(_QWORD *)(v8 + 64);
*(_QWORD *)(v8 + 48) = *(_QWORD *)(v8 + 48) - v10 - 8;
(*(void ( **)(long long, long long))(v8 + 16))(v11, a2);
}
}
return (unsigned int)v2 | 0x80000000;
}
| |||
35,164 | JS_NewAtomStr | bluesky950520[P]quickjs/quickjs.c | static JSAtom JS_NewAtomStr(JSContext *ctx, JSString *p)
{
JSRuntime *rt = ctx->rt;
uint32_t n;
if (is_num_string(&n, p)) {
if (n <= JS_ATOM_MAX_INT) {
js_free_string(rt, p);
return __JS_AtomFromUInt32(n);
}
}
/* XXX: should generate an exception */
return __JS_NewAtom(rt, p, JS_ATOM_TYPE_STRING);
} | O2 | c | JS_NewAtomStr:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x18(%rdi), %r14
leaq 0x4(%rsp), %r15
movq %r15, %rdi
callq 0x3464c
testl %eax, %eax
setne %al
movl (%r15), %ebp
testl %ebp, %ebp
setns %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x1a459
movq %r14, %rdi
movq %rbx, %rsi
callq 0x346e4
orl $0x80000000, %ebp # imm = 0x80000000
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x1
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1a53b
| JS_NewAtomStr:
push rbp
push r15
push r14
push rbx
push rax
mov rbx, rsi
mov r14, [rdi+18h]
lea r15, [rsp+28h+var_24]
mov rdi, r15
call is_num_string
test eax, eax
setnz al
mov ebp, [r15]
test ebp, ebp
setns cl
and cl, al
cmp cl, 1
jnz short loc_1A459
mov rdi, r14
mov rsi, rbx
call js_free_string
or ebp, 80000000h
mov eax, ebp
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_1A459:
push 1
pop rdx
mov rdi, r14
mov rsi, rbx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp __JS_NewAtom
| long long JS_NewAtomStr(long long a1, long long a2)
{
long long v2; // rax
long long v3; // r14
int v4; // eax
int v5; // ebp
_DWORD v7[9]; // [rsp+0h] [rbp-24h] BYREF
v7[0] = HIDWORD(v2);
v3 = *(_QWORD *)(a1 + 24);
v4 = is_num_string(v7);
v5 = v7[0];
if ( v4 == 0 || v7[0] < 0 )
return _JS_NewAtom(v3, a2, 1LL);
js_free_string(v3, a2);
return v5 | 0x80000000;
}
| JS_NewAtomStr:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,qword ptr [RDI + 0x18]
LEA R15,[RSP + 0x4]
MOV RDI,R15
CALL 0x0013464c
TEST EAX,EAX
SETNZ AL
MOV EBP,dword ptr [R15]
TEST EBP,EBP
SETNS CL
AND CL,AL
CMP CL,0x1
JNZ 0x0011a459
MOV RDI,R14
MOV RSI,RBX
CALL 0x001346e4
OR EBP,0x80000000
MOV EAX,EBP
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0011a459:
PUSH 0x1
POP RDX
MOV RDI,R14
MOV RSI,RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0011a53b
|
ulong JS_NewAtomStr(long param_1,int8 param_2)
{
int8 uVar1;
int iVar2;
int8 in_RAX;
ulong uVar3;
uint local_24;
local_24 = (uint)((ulong)in_RAX >> 0x20);
uVar1 = *(int8 *)(param_1 + 0x18);
iVar2 = is_num_string(&local_24);
if (-1 < (int)local_24 && iVar2 != 0) {
js_free_string(uVar1,param_2);
return (ulong)(local_24 | 0x80000000);
}
uVar3 = __JS_NewAtom(uVar1,param_2,1);
return uVar3;
}
| |
35,165 | multi_alloc_root | eloqsql/mysys/my_alloc.c | void *multi_alloc_root(MEM_ROOT *root, ...)
{
va_list args;
char **ptr, *start, *res;
size_t tot_length, length;
DBUG_ENTER("multi_alloc_root");
/*
We don't need to do DBUG_PRINT here as it will be done when alloc_root
is called
*/
va_start(args, root);
tot_length= 0;
while ((ptr= va_arg(args, char **)))
{
length= va_arg(args, uint);
tot_length+= ALIGN_SIZE(length);
}
va_end(args);
if (!(start= (char*) alloc_root(root, tot_length)))
DBUG_RETURN(0); /* purecov: inspected */
va_start(args, root);
res= start;
while ((ptr= va_arg(args, char **)))
{
*ptr= res;
length= va_arg(args, uint);
res+= ALIGN_SIZE(length);
}
va_end(args);
DBUG_RETURN((void*) start);
} | O0 | c | multi_alloc_root:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp # imm = 0x170
testb %al, %al
je 0x68581
movaps %xmm0, -0xe0(%rbp)
movaps %xmm1, -0xd0(%rbp)
movaps %xmm2, -0xc0(%rbp)
movaps %xmm3, -0xb0(%rbp)
movaps %xmm4, -0xa0(%rbp)
movaps %xmm5, -0x90(%rbp)
movaps %xmm6, -0x80(%rbp)
movaps %xmm7, -0x70(%rbp)
movq %r9, -0xe8(%rbp)
movq %r8, -0xf0(%rbp)
movq %rcx, -0xf8(%rbp)
movq %rdx, -0x100(%rbp)
movq %rsi, -0x108(%rbp)
movq %rdi, -0x10(%rbp)
leaq -0x30(%rbp), %rax
leaq -0x110(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x8, (%rax)
movq $0x0, -0x50(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x120(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x114(%rbp)
cmpl $0x28, %eax
ja 0x6860f
movq -0x120(%rbp), %rcx
movl -0x114(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x128(%rbp)
jmp 0x6862c
movq -0x120(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0x686c6
leaq -0x30(%rbp), %rax
movq %rax, -0x138(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x12c(%rbp)
cmpl $0x28, %eax
ja 0x6867f
movq -0x138(%rbp), %rcx
movl -0x12c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x140(%rbp)
jmp 0x6869c
movq -0x138(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x140(%rbp)
movq -0x140(%rbp), %rax
movl (%rax), %eax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
addq $0x8, %rax
subq $0x1, %rax
andq $-0x8, %rax
addq -0x50(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x685d4
leaq -0x30(%rbp), %rax
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x68290
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
jne 0x686f0
jmp 0x686e3
movq $0x0, -0x8(%rbp)
jmp 0x68825
leaq -0x30(%rbp), %rax
leaq -0x110(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x8, (%rax)
movq -0x40(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x150(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x144(%rbp)
cmpl $0x28, %eax
ja 0x68757
movq -0x150(%rbp), %rcx
movl -0x144(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x158(%rbp)
jmp 0x68774
movq -0x150(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x158(%rbp)
movq -0x158(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0x68819
movq -0x48(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
leaq -0x30(%rbp), %rax
movq %rax, -0x168(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x15c(%rbp)
cmpl $0x28, %eax
ja 0x687d2
movq -0x168(%rbp), %rcx
movl -0x15c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x170(%rbp)
jmp 0x687ef
movq -0x168(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x170(%rbp)
movq -0x170(%rbp), %rax
movl (%rax), %eax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
addq $0x8, %rax
subq $0x1, %rax
andq $-0x8, %rax
addq -0x48(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x6871c
leaq -0x30(%rbp), %rax
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x170, %rsp # imm = 0x170
popq %rbp
retq
nopw %cs:(%rax,%rax)
| multi_alloc_root:
push rbp
mov rbp, rsp
sub rsp, 170h
test al, al
jz short loc_68581
movaps [rbp+var_E0], xmm0
movaps [rbp+var_D0], xmm1
movaps [rbp+var_C0], xmm2
movaps [rbp+var_B0], xmm3
movaps [rbp+var_A0], xmm4
movaps [rbp+var_90], xmm5
movaps [rbp+var_80], xmm6
movaps [rbp+var_70], xmm7
loc_68581:
mov [rbp+var_E8], r9
mov [rbp+var_F0], r8
mov [rbp+var_F8], rcx
mov [rbp+var_100], rdx
mov [rbp+var_108], rsi
mov [rbp+var_10], rdi
lea rax, [rbp+var_30]
lea rcx, [rbp+var_110]
mov [rax+10h], rcx
lea rcx, [rbp+arg_0]
mov [rax+8], rcx
mov dword ptr [rax+4], 30h ; '0'
mov dword ptr [rax], 8
mov [rbp+var_50], 0
loc_685D4:
lea rax, [rbp+var_30]
mov [rbp+var_120], rax
mov eax, [rbp+var_30]
mov [rbp+var_114], eax
cmp eax, 28h ; '('
ja short loc_6860F
mov rcx, [rbp+var_120]
mov edx, [rbp+var_114]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_128], rax
jmp short loc_6862C
loc_6860F:
mov rcx, [rbp+var_120]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_128], rax
loc_6862C:
mov rax, [rbp+var_128]
mov rax, [rax]
mov [rbp+var_38], rax
cmp rax, 0
jz loc_686C6
lea rax, [rbp+var_30]
mov [rbp+var_138], rax
mov eax, [rbp+var_30]
mov [rbp+var_12C], eax
cmp eax, 28h ; '('
ja short loc_6867F
mov rcx, [rbp+var_138]
mov edx, [rbp+var_12C]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_140], rax
jmp short loc_6869C
loc_6867F:
mov rcx, [rbp+var_138]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_140], rax
loc_6869C:
mov rax, [rbp+var_140]
mov eax, [rax]
mov [rbp+var_58], rax
mov rax, [rbp+var_58]
add rax, 8
sub rax, 1
and rax, 0FFFFFFFFFFFFFFF8h
add rax, [rbp+var_50]
mov [rbp+var_50], rax
jmp loc_685D4
loc_686C6:
lea rax, [rbp+var_30]
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_50]
call alloc_root
mov [rbp+var_40], rax
cmp rax, 0
jnz short loc_686F0
jmp short $+2
loc_686E3:
mov [rbp+var_8], 0
jmp loc_68825
loc_686F0:
lea rax, [rbp+var_30]
lea rcx, [rbp+var_110]
mov [rax+10h], rcx
lea rcx, [rbp+arg_0]
mov [rax+8], rcx
mov dword ptr [rax+4], 30h ; '0'
mov dword ptr [rax], 8
mov rax, [rbp+var_40]
mov [rbp+var_48], rax
loc_6871C:
lea rax, [rbp+var_30]
mov [rbp+var_150], rax
mov eax, [rbp+var_30]
mov [rbp+var_144], eax
cmp eax, 28h ; '('
ja short loc_68757
mov rcx, [rbp+var_150]
mov edx, [rbp+var_144]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_158], rax
jmp short loc_68774
loc_68757:
mov rcx, [rbp+var_150]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_158], rax
loc_68774:
mov rax, [rbp+var_158]
mov rax, [rax]
mov [rbp+var_38], rax
cmp rax, 0
jz loc_68819
mov rcx, [rbp+var_48]
mov rax, [rbp+var_38]
mov [rax], rcx
lea rax, [rbp+var_30]
mov [rbp+var_168], rax
mov eax, [rbp+var_30]
mov [rbp+var_15C], eax
cmp eax, 28h ; '('
ja short loc_687D2
mov rcx, [rbp+var_168]
mov edx, [rbp+var_15C]
movsxd rax, edx
add rax, [rcx+10h]
add edx, 8
mov [rcx], edx
mov [rbp+var_170], rax
jmp short loc_687EF
loc_687D2:
mov rcx, [rbp+var_168]
mov rax, [rcx+8]
mov rdx, rax
add rdx, 8
mov [rcx+8], rdx
mov [rbp+var_170], rax
loc_687EF:
mov rax, [rbp+var_170]
mov eax, [rax]
mov [rbp+var_58], rax
mov rax, [rbp+var_58]
add rax, 8
sub rax, 1
and rax, 0FFFFFFFFFFFFFFF8h
add rax, [rbp+var_48]
mov [rbp+var_48], rax
jmp loc_6871C
loc_68819:
lea rax, [rbp+var_30]
mov rax, [rbp+var_40]
mov [rbp+var_8], rax
loc_68825:
mov rax, [rbp+var_8]
add rsp, 170h
pop rbp
retn
| char * multi_alloc_root(
_QWORD **a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
char a15)
{
char *v15; // rax
char *v16; // rax
char *v17; // rax
char *v18; // rax
char v20; // [rsp+60h] [rbp-110h] BYREF
long long v21; // [rsp+68h] [rbp-108h]
long long v22; // [rsp+70h] [rbp-100h]
long long v23; // [rsp+78h] [rbp-F8h]
long long v24; // [rsp+80h] [rbp-F0h]
long long v25; // [rsp+88h] [rbp-E8h]
__m128 v26; // [rsp+90h] [rbp-E0h]
__m128 v27; // [rsp+A0h] [rbp-D0h]
__m128 v28; // [rsp+B0h] [rbp-C0h]
__m128 v29; // [rsp+C0h] [rbp-B0h]
__m128 v30; // [rsp+D0h] [rbp-A0h]
__m128 v31; // [rsp+E0h] [rbp-90h]
__m128 v32; // [rsp+F0h] [rbp-80h]
__m128 v33; // [rsp+100h] [rbp-70h]
long long v34; // [rsp+118h] [rbp-58h]
long long i; // [rsp+120h] [rbp-50h]
char *j; // [rsp+128h] [rbp-48h]
char *v37; // [rsp+130h] [rbp-40h]
char **v38; // [rsp+138h] [rbp-38h]
int v39; // [rsp+140h] [rbp-30h]
int v40; // [rsp+144h] [rbp-2Ch]
char *v41; // [rsp+148h] [rbp-28h]
char *v42; // [rsp+150h] [rbp-20h]
_QWORD **v43; // [rsp+160h] [rbp-10h]
v26 = a7;
v27 = a8;
v28 = a9;
v29 = a10;
v30 = a11;
v31 = a12;
v32 = a13;
v33 = a14;
v25 = a6;
v24 = a5;
v23 = a4;
v22 = a3;
v21 = a2;
v43 = a1;
v42 = &v20;
v41 = &a15;
v40 = 48;
v39 = 8;
for ( i = 0LL; ; i += (v34 + 7) & 0xFFFFFFFFFFFFFFF8LL )
{
if ( (unsigned int)v39 > 0x28 )
{
v15 = v41;
v41 += 8;
}
else
{
v15 = &v42[v39];
v39 += 8;
}
v38 = *(char ***)v15;
if ( !v38 )
break;
if ( (unsigned int)v39 > 0x28 )
{
v16 = v41;
v41 += 8;
}
else
{
v16 = &v42[v39];
v39 += 8;
}
v34 = *(unsigned int *)v16;
}
v37 = alloc_root(v43, i);
if ( !v37 )
return 0LL;
v42 = &v20;
v41 = &a15;
v40 = 48;
v39 = 8;
for ( j = v37; ; j += (v34 + 7) & 0xFFFFFFFFFFFFFFF8LL )
{
if ( (unsigned int)v39 > 0x28 )
{
v17 = v41;
v41 += 8;
}
else
{
v17 = &v42[v39];
v39 += 8;
}
v38 = *(char ***)v17;
if ( !v38 )
break;
*v38 = j;
if ( (unsigned int)v39 > 0x28 )
{
v18 = v41;
v41 += 8;
}
else
{
v18 = &v42[v39];
v39 += 8;
}
v34 = *(unsigned int *)v18;
}
return v37;
}
| multi_alloc_root:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x170
TEST AL,AL
JZ 0x00168581
MOVAPS xmmword ptr [RBP + -0xe0],XMM0
MOVAPS xmmword ptr [RBP + -0xd0],XMM1
MOVAPS xmmword ptr [RBP + -0xc0],XMM2
MOVAPS xmmword ptr [RBP + -0xb0],XMM3
MOVAPS xmmword ptr [RBP + -0xa0],XMM4
MOVAPS xmmword ptr [RBP + -0x90],XMM5
MOVAPS xmmword ptr [RBP + -0x80],XMM6
MOVAPS xmmword ptr [RBP + -0x70],XMM7
LAB_00168581:
MOV qword ptr [RBP + -0xe8],R9
MOV qword ptr [RBP + -0xf0],R8
MOV qword ptr [RBP + -0xf8],RCX
MOV qword ptr [RBP + -0x100],RDX
MOV qword ptr [RBP + -0x108],RSI
MOV qword ptr [RBP + -0x10],RDI
LEA RAX,[RBP + -0x30]
LEA RCX,[RBP + -0x110]
MOV qword ptr [RAX + 0x10],RCX
LEA RCX,[RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RAX + 0x4],0x30
MOV dword ptr [RAX],0x8
MOV qword ptr [RBP + -0x50],0x0
LAB_001685d4:
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x120],RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x114],EAX
CMP EAX,0x28
JA 0x0016860f
MOV RCX,qword ptr [RBP + -0x120]
MOV EDX,dword ptr [RBP + -0x114]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x128],RAX
JMP 0x0016862c
LAB_0016860f:
MOV RCX,qword ptr [RBP + -0x120]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x128],RAX
LAB_0016862c:
MOV RAX,qword ptr [RBP + -0x128]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JZ 0x001686c6
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x138],RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x12c],EAX
CMP EAX,0x28
JA 0x0016867f
MOV RCX,qword ptr [RBP + -0x138]
MOV EDX,dword ptr [RBP + -0x12c]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x140],RAX
JMP 0x0016869c
LAB_0016867f:
MOV RCX,qword ptr [RBP + -0x138]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x140],RAX
LAB_0016869c:
MOV RAX,qword ptr [RBP + -0x140]
MOV EAX,dword ptr [RAX]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,0x8
SUB RAX,0x1
AND RAX,-0x8
ADD RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x001685d4
LAB_001686c6:
LEA RAX,[RBP + -0x30]
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x50]
CALL 0x00168290
MOV qword ptr [RBP + -0x40],RAX
CMP RAX,0x0
JNZ 0x001686f0
JMP 0x001686e3
LAB_001686e3:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00168825
LAB_001686f0:
LEA RAX,[RBP + -0x30]
LEA RCX,[RBP + -0x110]
MOV qword ptr [RAX + 0x10],RCX
LEA RCX,[RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RAX + 0x4],0x30
MOV dword ptr [RAX],0x8
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x48],RAX
LAB_0016871c:
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x150],RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x144],EAX
CMP EAX,0x28
JA 0x00168757
MOV RCX,qword ptr [RBP + -0x150]
MOV EDX,dword ptr [RBP + -0x144]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x158],RAX
JMP 0x00168774
LAB_00168757:
MOV RCX,qword ptr [RBP + -0x150]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x158],RAX
LAB_00168774:
MOV RAX,qword ptr [RBP + -0x158]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JZ 0x00168819
MOV RCX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX],RCX
LEA RAX,[RBP + -0x30]
MOV qword ptr [RBP + -0x168],RAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x15c],EAX
CMP EAX,0x28
JA 0x001687d2
MOV RCX,qword ptr [RBP + -0x168]
MOV EDX,dword ptr [RBP + -0x15c]
MOVSXD RAX,EDX
ADD RAX,qword ptr [RCX + 0x10]
ADD EDX,0x8
MOV dword ptr [RCX],EDX
MOV qword ptr [RBP + -0x170],RAX
JMP 0x001687ef
LAB_001687d2:
MOV RCX,qword ptr [RBP + -0x168]
MOV RAX,qword ptr [RCX + 0x8]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RBP + -0x170],RAX
LAB_001687ef:
MOV RAX,qword ptr [RBP + -0x170]
MOV EAX,dword ptr [RAX]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,0x8
SUB RAX,0x1
AND RAX,-0x8
ADD RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x48],RAX
JMP 0x0016871c
LAB_00168819:
LEA RAX,[RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x8],RAX
LAB_00168825:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x170
POP RBP
RET
|
/* WARNING: Restarted to delay deadcode elimination for space: stack */
long multi_alloc_root(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
int8 param_9,int8 param_10,int8 param_11,int8 param_12,
int8 param_13,int8 param_14)
{
char in_AL;
uint *local_178;
uint *local_160;
uint *local_148;
uint *local_130;
uint local_118 [2];
int8 local_110;
int8 local_108;
int8 local_100;
int8 local_f8;
int8 local_f0;
int8 local_e8;
int8 local_d8;
int8 local_c8;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
ulong local_60;
long local_58;
long local_50;
long local_40;
uint local_38;
int4 local_34;
uint *local_30;
uint *local_28;
int8 local_18;
long local_10;
if (in_AL != '\0') {
local_e8 = param_1;
local_d8 = param_2;
local_c8 = param_3;
local_b8 = param_4;
local_a8 = param_5;
local_98 = param_6;
local_88 = param_7;
local_78 = param_8;
}
local_28 = local_118;
local_30 = (uint *)&stack0x00000008;
local_34 = 0x30;
local_38 = 8;
local_58 = 0;
while( true ) {
if (local_38 < 0x29) {
local_130 = (uint *)((long)local_28 + (long)(int)local_38);
local_38 = local_38 + 8;
}
else {
local_130 = local_30;
local_30 = local_30 + 2;
}
local_40 = *(long *)local_130;
if (local_40 == 0) break;
if (local_38 < 0x29) {
local_148 = (uint *)((long)local_28 + (long)(int)local_38);
local_38 = local_38 + 8;
}
else {
local_148 = local_30;
local_30 = local_30 + 2;
}
local_60 = (ulong)*local_148;
local_58 = (local_60 + 7 & 0xfffffffffffffff8) + local_58;
}
local_110 = param_10;
local_108 = param_11;
local_100 = param_12;
local_f8 = param_13;
local_f0 = param_14;
local_18 = param_9;
local_10 = alloc_root(param_9,local_58);
if (local_10 == 0) {
local_10 = 0;
}
else {
local_30 = (uint *)&stack0x00000008;
local_38 = 8;
local_50 = local_10;
while( true ) {
if (local_38 < 0x29) {
local_160 = (uint *)((long)local_118 + (long)(int)local_38);
local_38 = local_38 + 8;
}
else {
local_160 = local_30;
local_30 = local_30 + 2;
}
if (*(long **)local_160 == (long *)0x0) break;
**(long **)local_160 = local_50;
if (local_38 < 0x29) {
local_178 = (uint *)((long)local_118 + (long)(int)local_38);
local_38 = local_38 + 8;
}
else {
local_178 = local_30;
local_30 = local_30 + 2;
}
local_50 = ((ulong)*local_178 + 7 & 0xfffffffffffffff8) + local_50;
}
}
return local_10;
}
| |
35,166 | BioNj::Best_pair(float**, int, int*, int*, int) | iqtree3/utils/bionj.cpp | void Best_pair(float **delta, int r, int *a, int *b, int n)
{
float Qmin; /* current minimun of the criterion */
Qmin=1.0e300;
float* rowQmin = new float[n+1]; //JB2020-06-16 Row minima found in parallel
int* rowMinColumn = new int[n+1]; //JB2020-06-16 And which columns they were in
int step = (n<240) ? 1 : (n / 120);//JB2020-06-17 Blocks of adjacent rows
#ifdef NJ_OMP
#pragma omp parallel for
#endif
for (int w=2; w<=n; w+=step) { //JB2020-06-17
int w2 = (w+step <= n) ? (w+step) : n; //JB2020-06-17
for (int x=w; x <= w2; ++x) //JB2020-06-17
{
float rowMin = Qmin;
int bestY = 0;
if(!Emptied(x,delta))
{
for(int y=1; y < x; ++y)
{
if(!Emptied(y,delta))
{
float Qxy=Agglomerative_criterion(x,y,delta,r);
if(Qxy < rowMin-0.000001)
{
rowMin=Qxy;
bestY = y;
}
}
}
}
rowQmin[x] = rowMin;
rowMinColumn[x] = bestY;
}
}
//JB2020-06-16 Begin
for (int x=2; x<=n; ++x) //JB2020-06-18 Can start at 2
{
if (0<rowMinColumn[x]) {
if (rowQmin[x] < Qmin - 0.000001) {
Qmin = rowQmin[x];
*a=x;
*b=rowMinColumn[x];
}
}
}
delete [] rowMinColumn;
delete [] rowQmin;
//JB2020-06-16 Finish
} | O0 | cpp | BioNj::Best_pair(float**, int, int*, int*, int):
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movl %edx, 0x74(%rsp)
movq %rcx, 0x68(%rsp)
movq %r8, 0x60(%rsp)
movl %r9d, 0x5c(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x18(%rsp)
movss 0x2c4b4(%rip), %xmm0 # 0x694d0
movss %xmm0, 0x58(%rsp)
movl 0x5c(%rsp), %eax
addl $0x1, %eax
cltq
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x37030
movq %rax, 0x50(%rsp)
movl 0x5c(%rsp), %eax
addl $0x1, %eax
cltq
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x37030
movq %rax, 0x48(%rsp)
cmpl $0xf0, 0x5c(%rsp)
jge 0x3d095
movl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x3d0a5
movl 0x5c(%rsp), %eax
movl $0x78, %ecx
cltd
idivl %ecx
movl %eax, 0x14(%rsp)
movl 0x14(%rsp), %eax
movl %eax, 0x44(%rsp)
movl $0x2, 0x40(%rsp)
movl 0x40(%rsp), %eax
cmpl 0x5c(%rsp), %eax
jg 0x3d21e
movl 0x40(%rsp), %eax
addl 0x44(%rsp), %eax
cmpl 0x5c(%rsp), %eax
jg 0x3d0df
movl 0x40(%rsp), %eax
addl 0x44(%rsp), %eax
movl %eax, 0x10(%rsp)
jmp 0x3d0e7
movl 0x5c(%rsp), %eax
movl %eax, 0x10(%rsp)
movl 0x10(%rsp), %eax
movl %eax, 0x3c(%rsp)
movl 0x40(%rsp), %eax
movl %eax, 0x38(%rsp)
movl 0x38(%rsp), %eax
cmpl 0x3c(%rsp), %eax
jg 0x3d20b
movq 0x18(%rsp), %rdi
movss 0x58(%rsp), %xmm0
movss %xmm0, 0x34(%rsp)
movl $0x0, 0x30(%rsp)
movl 0x38(%rsp), %esi
movq 0x78(%rsp), %rdx
callq 0x3d5d0
cmpl $0x0, %eax
jne 0x3d1d5
movl $0x1, 0x2c(%rsp)
movl 0x2c(%rsp), %eax
cmpl 0x38(%rsp), %eax
jge 0x3d1d3
movq 0x18(%rsp), %rdi
movl 0x2c(%rsp), %esi
movq 0x78(%rsp), %rdx
callq 0x3d5d0
cmpl $0x0, %eax
jne 0x3d1c1
movq 0x18(%rsp), %rdi
movl 0x38(%rsp), %esi
movl 0x2c(%rsp), %edx
movq 0x78(%rsp), %rcx
movl 0x74(%rsp), %r8d
callq 0x3dbe0
movss %xmm0, 0x28(%rsp)
movss 0x28(%rsp), %xmm0
cvtss2sd %xmm0, %xmm1
movss 0x34(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x2c337(%rip), %xmm2 # 0x694d8
subsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x3d1bf
movss 0x28(%rsp), %xmm0
movss %xmm0, 0x34(%rsp)
movl 0x2c(%rsp), %eax
movl %eax, 0x30(%rsp)
jmp 0x3d1c1
jmp 0x3d1c3
movl 0x2c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2c(%rsp)
jmp 0x3d13d
jmp 0x3d1d5
movss 0x34(%rsp), %xmm0
movq 0x50(%rsp), %rax
movslq 0x38(%rsp), %rcx
movss %xmm0, (%rax,%rcx,4)
movl 0x30(%rsp), %edx
movq 0x48(%rsp), %rax
movslq 0x38(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl 0x38(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x38(%rsp)
jmp 0x3d0f7
jmp 0x3d20d
movl 0x44(%rsp), %eax
addl 0x40(%rsp), %eax
movl %eax, 0x40(%rsp)
jmp 0x3d0b5
movl $0x2, 0x24(%rsp)
movl 0x24(%rsp), %eax
cmpl 0x5c(%rsp), %eax
jg 0x3d2bc
movq 0x48(%rsp), %rcx
movslq 0x24(%rsp), %rdx
xorl %eax, %eax
cmpl (%rcx,%rdx,4), %eax
jge 0x3d2aa
movq 0x50(%rsp), %rax
movslq 0x24(%rsp), %rcx
movss (%rax,%rcx,4), %xmm0
cvtss2sd %xmm0, %xmm1
movss 0x58(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x2c26e(%rip), %xmm2 # 0x694d8
subsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x3d2a8
movq 0x50(%rsp), %rax
movslq 0x24(%rsp), %rcx
movss (%rax,%rcx,4), %xmm0
movss %xmm0, 0x58(%rsp)
movl 0x24(%rsp), %ecx
movq 0x68(%rsp), %rax
movl %ecx, (%rax)
movq 0x48(%rsp), %rax
movslq 0x24(%rsp), %rcx
movl (%rax,%rcx,4), %ecx
movq 0x60(%rsp), %rax
movl %ecx, (%rax)
jmp 0x3d2aa
jmp 0x3d2ac
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x3d226
movq 0x48(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, %rax
je 0x3d2d6
movq 0x8(%rsp), %rdi
callq 0x37570
movq 0x50(%rsp), %rax
movq %rax, (%rsp)
cmpq $0x0, %rax
je 0x3d2ee
movq (%rsp), %rdi
callq 0x37570
addq $0x88, %rsp
retq
nopw %cs:(%rax,%rax)
| _ZN5BioNj9Best_pairEPPfiPiS2_i:
sub rsp, 88h
mov [rsp+88h+var_8], rdi
mov [rsp+88h+var_10], rsi
mov [rsp+88h+var_14], edx
mov [rsp+88h+var_20], rcx
mov [rsp+88h+var_28], r8
mov [rsp+88h+var_2C], r9d
mov rax, [rsp+88h+var_8]
mov [rsp+88h+var_70], rax
movss xmm0, cs:dword_694D0
movss [rsp+88h+var_30], xmm0
mov eax, [rsp+88h+var_2C]
add eax, 1
cdqe
mov ecx, 4
mul rcx
mov rdi, rax
seto cl
mov rax, 0FFFFFFFFFFFFFFFFh
test cl, 1
cmovnz rdi, rax; unsigned __int64
call __Znam; operator new[](ulong)
mov [rsp+88h+var_38], rax
mov eax, [rsp+88h+var_2C]
add eax, 1
cdqe
mov ecx, 4
mul rcx
mov rdi, rax
seto cl
mov rax, 0FFFFFFFFFFFFFFFFh
test cl, 1
cmovnz rdi, rax; unsigned __int64
call __Znam; operator new[](ulong)
mov [rsp+88h+var_40], rax
cmp [rsp+88h+var_2C], 0F0h
jge short loc_3D095
mov eax, 1
mov [rsp+88h+var_74], eax
jmp short loc_3D0A5
loc_3D095:
mov eax, [rsp+88h+var_2C]
mov ecx, 78h ; 'x'
cdq
idiv ecx
mov [rsp+88h+var_74], eax
loc_3D0A5:
mov eax, [rsp+88h+var_74]
mov [rsp+88h+var_44], eax
mov [rsp+88h+var_48], 2
loc_3D0B5:
mov eax, [rsp+88h+var_48]
cmp eax, [rsp+88h+var_2C]
jg loc_3D21E
mov eax, [rsp+88h+var_48]
add eax, [rsp+88h+var_44]
cmp eax, [rsp+88h+var_2C]
jg short loc_3D0DF
mov eax, [rsp+88h+var_48]
add eax, [rsp+88h+var_44]
mov [rsp+88h+var_78], eax
jmp short loc_3D0E7
loc_3D0DF:
mov eax, [rsp+88h+var_2C]
mov [rsp+88h+var_78], eax
loc_3D0E7:
mov eax, [rsp+88h+var_78]
mov [rsp+88h+var_4C], eax
mov eax, [rsp+88h+var_48]
mov [rsp+88h+var_50], eax
loc_3D0F7:
mov eax, [rsp+88h+var_50]
cmp eax, [rsp+88h+var_4C]
jg loc_3D20B
mov rdi, [rsp+88h+var_70]; this
movss xmm0, [rsp+88h+var_30]
movss [rsp+88h+var_54], xmm0
mov [rsp+88h+var_58], 0
mov esi, [rsp+88h+var_50]; int
mov rdx, [rsp+88h+var_10]; float **
call _ZN5BioNj7EmptiedEiPPf; BioNj::Emptied(int,float **)
cmp eax, 0
jnz loc_3D1D5
mov [rsp+88h+var_5C], 1
loc_3D13D:
mov eax, [rsp+88h+var_5C]
cmp eax, [rsp+88h+var_50]
jge loc_3D1D3
mov rdi, [rsp+88h+var_70]; this
mov esi, [rsp+88h+var_5C]; int
mov rdx, [rsp+88h+var_10]; float **
call _ZN5BioNj7EmptiedEiPPf; BioNj::Emptied(int,float **)
cmp eax, 0
jnz short loc_3D1C1
mov rdi, [rsp+88h+var_70]; this
mov esi, [rsp+88h+var_50]; int
mov edx, [rsp+88h+var_5C]; int
mov rcx, [rsp+88h+var_10]; float **
mov r8d, [rsp+88h+var_14]; int
call _ZN5BioNj23Agglomerative_criterionEiiPPfi; BioNj::Agglomerative_criterion(int,int,float **,int)
movss [rsp+88h+var_60], xmm0
movss xmm0, [rsp+88h+var_60]
cvtss2sd xmm1, xmm0
movss xmm0, [rsp+88h+var_54]
cvtss2sd xmm0, xmm0
movsd xmm2, cs:qword_694D8
subsd xmm0, xmm2
ucomisd xmm0, xmm1
jbe short loc_3D1BF
movss xmm0, [rsp+88h+var_60]
movss [rsp+88h+var_54], xmm0
mov eax, [rsp+88h+var_5C]
mov [rsp+88h+var_58], eax
loc_3D1BF:
jmp short $+2
loc_3D1C1:
jmp short $+2
loc_3D1C3:
mov eax, [rsp+88h+var_5C]
add eax, 1
mov [rsp+88h+var_5C], eax
jmp loc_3D13D
loc_3D1D3:
jmp short $+2
loc_3D1D5:
movss xmm0, [rsp+88h+var_54]
mov rax, [rsp+88h+var_38]
movsxd rcx, [rsp+88h+var_50]
movss dword ptr [rax+rcx*4], xmm0
mov edx, [rsp+88h+var_58]
mov rax, [rsp+88h+var_40]
movsxd rcx, [rsp+88h+var_50]
mov [rax+rcx*4], edx
mov eax, [rsp+88h+var_50]
add eax, 1
mov [rsp+88h+var_50], eax
jmp loc_3D0F7
loc_3D20B:
jmp short $+2
loc_3D20D:
mov eax, [rsp+88h+var_44]
add eax, [rsp+88h+var_48]
mov [rsp+88h+var_48], eax
jmp loc_3D0B5
loc_3D21E:
mov [rsp+88h+var_64], 2
loc_3D226:
mov eax, [rsp+88h+var_64]
cmp eax, [rsp+88h+var_2C]
jg loc_3D2BC
mov rcx, [rsp+88h+var_40]
movsxd rdx, [rsp+88h+var_64]
xor eax, eax
cmp eax, [rcx+rdx*4]
jge short loc_3D2AA
mov rax, [rsp+88h+var_38]
movsxd rcx, [rsp+88h+var_64]
movss xmm0, dword ptr [rax+rcx*4]
cvtss2sd xmm1, xmm0
movss xmm0, [rsp+88h+var_30]
cvtss2sd xmm0, xmm0
movsd xmm2, cs:qword_694D8
subsd xmm0, xmm2
ucomisd xmm0, xmm1
jbe short loc_3D2A8
mov rax, [rsp+88h+var_38]
movsxd rcx, [rsp+88h+var_64]
movss xmm0, dword ptr [rax+rcx*4]
movss [rsp+88h+var_30], xmm0
mov ecx, [rsp+88h+var_64]
mov rax, [rsp+88h+var_20]
mov [rax], ecx
mov rax, [rsp+88h+var_40]
movsxd rcx, [rsp+88h+var_64]
mov ecx, [rax+rcx*4]
mov rax, [rsp+88h+var_28]
mov [rax], ecx
loc_3D2A8:
jmp short $+2
loc_3D2AA:
jmp short $+2
loc_3D2AC:
mov eax, [rsp+88h+var_64]
add eax, 1
mov [rsp+88h+var_64], eax
jmp loc_3D226
loc_3D2BC:
mov rax, [rsp+88h+var_40]
mov [rsp+88h+var_80], rax
cmp rax, 0
jz short loc_3D2D6
mov rdi, [rsp+88h+var_80]; void *
call __ZdaPv; operator delete[](void *)
loc_3D2D6:
mov rax, [rsp+88h+var_38]
mov [rsp+88h+var_88], rax
cmp rax, 0
jz short loc_3D2EE
mov rdi, [rsp+88h+var_88]; void *
call __ZdaPv; operator delete[](void *)
loc_3D2EE:
add rsp, 88h
retn
| void BioNj::Best_pair(BioNj *this, float **a2, int a3, int *a4, int *a5, int a6)
{
double v6; // xmm0_8
double v7; // xmm1_8
int v8; // [rsp+10h] [rbp-78h]
int v9; // [rsp+14h] [rbp-74h]
int m; // [rsp+24h] [rbp-64h]
float v11; // [rsp+28h] [rbp-60h]
int k; // [rsp+2Ch] [rbp-5Ch]
int v13; // [rsp+30h] [rbp-58h]
float v14; // [rsp+34h] [rbp-54h]
int j; // [rsp+38h] [rbp-50h]
int i; // [rsp+40h] [rbp-48h]
_DWORD *v17; // [rsp+48h] [rbp-40h]
float *v18; // [rsp+50h] [rbp-38h]
float v19; // [rsp+58h] [rbp-30h]
v19 = INFINITY;
v18 = (float *)operator new[](saturated_mul(4uLL, a6 + 1));
v17 = (_DWORD *)operator new[](saturated_mul(4uLL, a6 + 1));
if ( a6 >= 240 )
v9 = a6 / 120;
else
v9 = 1;
for ( i = 2; i <= a6; i += v9 )
{
if ( v9 + i > a6 )
v8 = a6;
else
v8 = v9 + i;
for ( j = i; j <= v8; ++j )
{
LODWORD(v6) = 2139095040;
v14 = INFINITY;
v13 = 0;
if ( !(unsigned int)BioNj::Emptied(this, j, a2) )
{
for ( k = 1; k < j; ++k )
{
if ( !(unsigned int)BioNj::Emptied(this, k, a2) )
{
BioNj::Agglomerative_criterion(this, j, k, a2, a3);
v11 = *(float *)&v6;
v7 = *(float *)&v6;
v6 = v14 - 0.000001;
if ( v6 > v7 )
{
*(float *)&v6 = v11;
v14 = v11;
v13 = k;
}
}
}
}
v18[j] = v14;
v17[j] = v13;
}
}
for ( m = 2; m <= a6; ++m )
{
if ( (int)v17[m] > 0 && v19 - 0.000001 > v18[m] )
{
v19 = v18[m];
*a4 = m;
*a5 = v17[m];
}
}
if ( v17 )
operator delete[](v17);
if ( v18 )
operator delete[](v18);
}
| Best_pair:
SUB RSP,0x88
MOV qword ptr [RSP + 0x80],RDI
MOV qword ptr [RSP + 0x78],RSI
MOV dword ptr [RSP + 0x74],EDX
MOV qword ptr [RSP + 0x68],RCX
MOV qword ptr [RSP + 0x60],R8
MOV dword ptr [RSP + 0x5c],R9D
MOV RAX,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x18],RAX
MOVSS XMM0,dword ptr [0x001694d0]
MOVSS dword ptr [RSP + 0x58],XMM0
MOV EAX,dword ptr [RSP + 0x5c]
ADD EAX,0x1
CDQE
MOV ECX,0x4
MUL RCX
MOV RDI,RAX
SETO CL
MOV RAX,-0x1
TEST CL,0x1
CMOVNZ RDI,RAX
CALL 0x00137030
MOV qword ptr [RSP + 0x50],RAX
MOV EAX,dword ptr [RSP + 0x5c]
ADD EAX,0x1
CDQE
MOV ECX,0x4
MUL RCX
MOV RDI,RAX
SETO CL
MOV RAX,-0x1
TEST CL,0x1
CMOVNZ RDI,RAX
CALL 0x00137030
MOV qword ptr [RSP + 0x48],RAX
CMP dword ptr [RSP + 0x5c],0xf0
JGE 0x0013d095
MOV EAX,0x1
MOV dword ptr [RSP + 0x14],EAX
JMP 0x0013d0a5
LAB_0013d095:
MOV EAX,dword ptr [RSP + 0x5c]
MOV ECX,0x78
CDQ
IDIV ECX
MOV dword ptr [RSP + 0x14],EAX
LAB_0013d0a5:
MOV EAX,dword ptr [RSP + 0x14]
MOV dword ptr [RSP + 0x44],EAX
MOV dword ptr [RSP + 0x40],0x2
LAB_0013d0b5:
MOV EAX,dword ptr [RSP + 0x40]
CMP EAX,dword ptr [RSP + 0x5c]
JG 0x0013d21e
MOV EAX,dword ptr [RSP + 0x40]
ADD EAX,dword ptr [RSP + 0x44]
CMP EAX,dword ptr [RSP + 0x5c]
JG 0x0013d0df
MOV EAX,dword ptr [RSP + 0x40]
ADD EAX,dword ptr [RSP + 0x44]
MOV dword ptr [RSP + 0x10],EAX
JMP 0x0013d0e7
LAB_0013d0df:
MOV EAX,dword ptr [RSP + 0x5c]
MOV dword ptr [RSP + 0x10],EAX
LAB_0013d0e7:
MOV EAX,dword ptr [RSP + 0x10]
MOV dword ptr [RSP + 0x3c],EAX
MOV EAX,dword ptr [RSP + 0x40]
MOV dword ptr [RSP + 0x38],EAX
LAB_0013d0f7:
MOV EAX,dword ptr [RSP + 0x38]
CMP EAX,dword ptr [RSP + 0x3c]
JG 0x0013d20b
MOV RDI,qword ptr [RSP + 0x18]
MOVSS XMM0,dword ptr [RSP + 0x58]
MOVSS dword ptr [RSP + 0x34],XMM0
MOV dword ptr [RSP + 0x30],0x0
MOV ESI,dword ptr [RSP + 0x38]
MOV RDX,qword ptr [RSP + 0x78]
CALL 0x0013d5d0
CMP EAX,0x0
JNZ 0x0013d1d5
MOV dword ptr [RSP + 0x2c],0x1
LAB_0013d13d:
MOV EAX,dword ptr [RSP + 0x2c]
CMP EAX,dword ptr [RSP + 0x38]
JGE 0x0013d1d3
MOV RDI,qword ptr [RSP + 0x18]
MOV ESI,dword ptr [RSP + 0x2c]
MOV RDX,qword ptr [RSP + 0x78]
CALL 0x0013d5d0
CMP EAX,0x0
JNZ 0x0013d1c1
MOV RDI,qword ptr [RSP + 0x18]
MOV ESI,dword ptr [RSP + 0x38]
MOV EDX,dword ptr [RSP + 0x2c]
MOV RCX,qword ptr [RSP + 0x78]
MOV R8D,dword ptr [RSP + 0x74]
CALL 0x0013dbe0
MOVSS dword ptr [RSP + 0x28],XMM0
MOVSS XMM0,dword ptr [RSP + 0x28]
CVTSS2SD XMM1,XMM0
MOVSS XMM0,dword ptr [RSP + 0x34]
CVTSS2SD XMM0,XMM0
MOVSD XMM2,qword ptr [0x001694d8]
SUBSD XMM0,XMM2
UCOMISD XMM0,XMM1
JBE 0x0013d1bf
MOVSS XMM0,dword ptr [RSP + 0x28]
MOVSS dword ptr [RSP + 0x34],XMM0
MOV EAX,dword ptr [RSP + 0x2c]
MOV dword ptr [RSP + 0x30],EAX
LAB_0013d1bf:
JMP 0x0013d1c1
LAB_0013d1c1:
JMP 0x0013d1c3
LAB_0013d1c3:
MOV EAX,dword ptr [RSP + 0x2c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x2c],EAX
JMP 0x0013d13d
LAB_0013d1d3:
JMP 0x0013d1d5
LAB_0013d1d5:
MOVSS XMM0,dword ptr [RSP + 0x34]
MOV RAX,qword ptr [RSP + 0x50]
MOVSXD RCX,dword ptr [RSP + 0x38]
MOVSS dword ptr [RAX + RCX*0x4],XMM0
MOV EDX,dword ptr [RSP + 0x30]
MOV RAX,qword ptr [RSP + 0x48]
MOVSXD RCX,dword ptr [RSP + 0x38]
MOV dword ptr [RAX + RCX*0x4],EDX
MOV EAX,dword ptr [RSP + 0x38]
ADD EAX,0x1
MOV dword ptr [RSP + 0x38],EAX
JMP 0x0013d0f7
LAB_0013d20b:
JMP 0x0013d20d
LAB_0013d20d:
MOV EAX,dword ptr [RSP + 0x44]
ADD EAX,dword ptr [RSP + 0x40]
MOV dword ptr [RSP + 0x40],EAX
JMP 0x0013d0b5
LAB_0013d21e:
MOV dword ptr [RSP + 0x24],0x2
LAB_0013d226:
MOV EAX,dword ptr [RSP + 0x24]
CMP EAX,dword ptr [RSP + 0x5c]
JG 0x0013d2bc
MOV RCX,qword ptr [RSP + 0x48]
MOVSXD RDX,dword ptr [RSP + 0x24]
XOR EAX,EAX
CMP EAX,dword ptr [RCX + RDX*0x4]
JGE 0x0013d2aa
MOV RAX,qword ptr [RSP + 0x50]
MOVSXD RCX,dword ptr [RSP + 0x24]
MOVSS XMM0,dword ptr [RAX + RCX*0x4]
CVTSS2SD XMM1,XMM0
MOVSS XMM0,dword ptr [RSP + 0x58]
CVTSS2SD XMM0,XMM0
MOVSD XMM2,qword ptr [0x001694d8]
SUBSD XMM0,XMM2
UCOMISD XMM0,XMM1
JBE 0x0013d2a8
MOV RAX,qword ptr [RSP + 0x50]
MOVSXD RCX,dword ptr [RSP + 0x24]
MOVSS XMM0,dword ptr [RAX + RCX*0x4]
MOVSS dword ptr [RSP + 0x58],XMM0
MOV ECX,dword ptr [RSP + 0x24]
MOV RAX,qword ptr [RSP + 0x68]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RSP + 0x48]
MOVSXD RCX,dword ptr [RSP + 0x24]
MOV ECX,dword ptr [RAX + RCX*0x4]
MOV RAX,qword ptr [RSP + 0x60]
MOV dword ptr [RAX],ECX
LAB_0013d2a8:
JMP 0x0013d2aa
LAB_0013d2aa:
JMP 0x0013d2ac
LAB_0013d2ac:
MOV EAX,dword ptr [RSP + 0x24]
ADD EAX,0x1
MOV dword ptr [RSP + 0x24],EAX
JMP 0x0013d226
LAB_0013d2bc:
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x8],RAX
CMP RAX,0x0
JZ 0x0013d2d6
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00137570
LAB_0013d2d6:
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP],RAX
CMP RAX,0x0
JZ 0x0013d2ee
MOV RDI,qword ptr [RSP]
CALL 0x00137570
LAB_0013d2ee:
ADD RSP,0x88
RET
|
/* BioNj::Best_pair(float**, int, int*, int*, int) */
void __thiscall
BioNj::Best_pair(BioNj *this,float **param_1,int param_2,int *param_3,int *param_4,int param_5)
{
int1 auVar1 [16];
int1 auVar2 [16];
float fVar3;
int iVar4;
ulong uVar5;
void *pvVar6;
void *pvVar7;
float fVar8;
int local_78;
int local_74;
int local_64;
int local_5c;
int local_58;
float local_54;
int local_50;
int local_48;
float local_30;
fVar3 = DAT_001694d0;
local_30 = DAT_001694d0;
auVar1._8_8_ = 0;
auVar1._0_8_ = (long)(param_5 + 1);
uVar5 = SUB168(auVar1 * ZEXT816(4),0);
if (SUB168(auVar1 * ZEXT816(4),8) != 0) {
uVar5 = 0xffffffffffffffff;
}
pvVar6 = operator_new__(uVar5);
auVar2._8_8_ = 0;
auVar2._0_8_ = (long)(param_5 + 1);
uVar5 = SUB168(auVar2 * ZEXT816(4),0);
if (SUB168(auVar2 * ZEXT816(4),8) != 0) {
uVar5 = 0xffffffffffffffff;
}
pvVar7 = operator_new__(uVar5);
if (param_5 < 0xf0) {
local_74 = 1;
}
else {
local_74 = param_5 / 0x78;
}
for (local_48 = 2; local_48 <= param_5; local_48 = local_74 + local_48) {
local_78 = param_5;
if (local_48 + local_74 <= param_5) {
local_78 = local_48 + local_74;
}
for (local_50 = local_48; local_50 <= local_78; local_50 = local_50 + 1) {
local_54 = fVar3;
local_58 = 0;
iVar4 = Emptied(this,local_50,param_1);
if (iVar4 == 0) {
for (local_5c = 1; local_5c < local_50; local_5c = local_5c + 1) {
iVar4 = Emptied(this,local_5c,param_1);
if ((iVar4 == 0) &&
(fVar8 = (float)Agglomerative_criterion(this,local_50,local_5c,param_1,param_2),
(double)fVar8 < (double)local_54 - DAT_001694d8)) {
local_58 = local_5c;
local_54 = fVar8;
}
}
}
*(float *)((long)pvVar6 + (long)local_50 * 4) = local_54;
*(int *)((long)pvVar7 + (long)local_50 * 4) = local_58;
}
}
for (local_64 = 2; local_64 <= param_5; local_64 = local_64 + 1) {
if ((0 < *(int *)((long)pvVar7 + (long)local_64 * 4)) &&
((double)*(float *)((long)pvVar6 + (long)local_64 * 4) < (double)local_30 - DAT_001694d8)) {
local_30 = *(float *)((long)pvVar6 + (long)local_64 * 4);
*param_3 = local_64;
*param_4 = *(int *)((long)pvVar7 + (long)local_64 * 4);
}
}
if (pvVar7 != (void *)0x0) {
operator_delete__(pvVar7);
}
if (pvVar6 != (void *)0x0) {
operator_delete__(pvVar6);
}
return;
}
| |
35,167 | pfs_end_file_rename_wait_v1 | eloqsql/storage/perfschema/pfs.cc | void pfs_end_file_rename_wait_v1(PSI_file_locker *locker, const char *old_name,
const char *new_name, int rc)
{
PSI_file_locker_state *state= reinterpret_cast<PSI_file_locker_state*> (locker);
assert(state != NULL);
assert(state->m_operation == PSI_FILE_RENAME);
if (rc == 0)
{
PFS_thread *thread= reinterpret_cast<PFS_thread *> (state->m_thread);
uint old_len= (uint)strlen(old_name);
uint new_len= (uint)strlen(new_name);
find_and_rename_file(thread, old_name, old_len, new_name, new_len);
}
pfs_end_file_wait_v1(locker, 0);
return;
} | O3 | cpp | pfs_end_file_rename_wait_v1:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
testl %ecx, %ecx
jne 0x42fc2
movq %rdx, %r14
movq %rsi, %r15
movq 0x20(%rbx), %r12
movq %rsi, %rdi
callq 0x26150
movq %rax, %r13
movq %r14, %rdi
callq 0x26150
movq %r12, %rdi
movq %r15, %rsi
movl %r13d, %edx
movq %r14, %rcx
movl %eax, %r8d
callq 0x36653
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x42c00
| pfs_end_file_rename_wait_v1:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
test ecx, ecx
jnz short loc_42FC2
mov r14, rdx
mov r15, rsi
mov r12, [rbx+20h]
mov rdi, rsi
call _strlen
mov r13, rax
mov rdi, r14
call _strlen
mov rdi, r12; PFS_thread *
mov rsi, r15; char *
mov edx, r13d; unsigned int
mov rcx, r14; char *
mov r8d, eax; unsigned int
call _Z20find_and_rename_fileP10PFS_threadPKcjS2_j; find_and_rename_file(PFS_thread *,char const*,uint,char const*,uint)
loc_42FC2:
mov rdi, rbx
xor esi, esi
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp pfs_end_file_wait_v1
| long long pfs_end_file_rename_wait_v1(long long a1, const char *a2, const char *a3, int a4)
{
PFS_thread *v5; // r12
unsigned int v6; // r13d
unsigned int v7; // eax
if ( !a4 )
{
v5 = *(PFS_thread **)(a1 + 32);
v6 = strlen(a2);
v7 = strlen(a3);
find_and_rename_file(v5, a2, v6, a3, v7);
}
return pfs_end_file_wait_v1((int *)a1, 0LL);
}
| pfs_end_file_rename_wait_v1:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
TEST ECX,ECX
JNZ 0x00142fc2
MOV R14,RDX
MOV R15,RSI
MOV R12,qword ptr [RBX + 0x20]
MOV RDI,RSI
CALL 0x00126150
MOV R13,RAX
MOV RDI,R14
CALL 0x00126150
MOV RDI,R12
MOV RSI,R15
MOV EDX,R13D
MOV RCX,R14
MOV R8D,EAX
CALL 0x00136653
LAB_00142fc2:
MOV RDI,RBX
XOR ESI,ESI
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00142c00
|
void pfs_end_file_rename_wait_v1(long param_1,char *param_2,char *param_3,int param_4)
{
PFS_thread *pPVar1;
size_t sVar2;
size_t sVar3;
if (param_4 == 0) {
pPVar1 = *(PFS_thread **)(param_1 + 0x20);
sVar2 = strlen(param_2);
sVar3 = strlen(param_3);
find_and_rename_file(pPVar1,param_2,(uint)sVar2,param_3,(uint)sVar3);
}
pfs_end_file_wait_v1(param_1,0);
return;
}
| |
35,168 | coro::detail::sync_wait_task_promise_base::unhandled_exception() | AlayaLite/build_O3/_deps/libcoro-src/include/coro/sync_wait.hpp | auto unhandled_exception() -> void { m_exception = std::current_exception(); } | O3 | cpp | coro::detail::sync_wait_task_promise_base::unhandled_exception():
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x2190
movq (%r14), %rax
movq $0x0, (%r14)
movq 0x8(%rbx), %rcx
movq %rcx, 0x10(%rsp)
movq %rax, 0x8(%rbx)
testq %rcx, %rcx
je 0x2e87
leaq 0x10(%rsp), %rdi
callq 0x2130
cmpq $0x0, 0x8(%rsp)
je 0x2e87
leaq 0x8(%rsp), %rdi
callq 0x2130
addq $0x18, %rsp
popq %rbx
popq %r14
retq
nop
| _ZN4coro6detail27sync_wait_task_promise_base19unhandled_exceptionEv:
push r14
push rbx
sub rsp, 18h
mov rbx, rdi
lea r14, [rsp+28h+var_20]
mov rdi, r14
call __ZSt17current_exceptionv; std::current_exception(void)
mov rax, [r14]
mov qword ptr [r14], 0
mov rcx, [rbx+8]
mov [rsp+28h+var_18], rcx
mov [rbx+8], rax
test rcx, rcx
jz short loc_2E87
lea rdi, [rsp+28h+var_18]; this
call __ZNSt15__exception_ptr13exception_ptr10_M_releaseEv; std::__exception_ptr::exception_ptr::_M_release(void)
cmp [rsp+28h+var_20], 0
jz short loc_2E87
lea rdi, [rsp+28h+var_20]; this
call __ZNSt15__exception_ptr13exception_ptr10_M_releaseEv; std::__exception_ptr::exception_ptr::_M_release(void)
loc_2E87:
add rsp, 18h
pop rbx
pop r14
retn
| long long coro::detail::sync_wait_task_promise_base::unhandled_exception(
coro::detail::sync_wait_task_promise_base *this)
{
long long result; // rax
long long v2; // rcx
long long v3; // [rsp+8h] [rbp-20h] BYREF
_QWORD v4[3]; // [rsp+10h] [rbp-18h] BYREF
std::current_exception();
result = v3;
v3 = 0LL;
v4[0] = *((_QWORD *)this + 1);
v2 = v4[0];
*((_QWORD *)this + 1) = result;
if ( v2 )
{
result = std::__exception_ptr::exception_ptr::_M_release((std::__exception_ptr::exception_ptr *)v4);
if ( v3 )
return std::__exception_ptr::exception_ptr::_M_release((std::__exception_ptr::exception_ptr *)&v3);
}
return result;
}
| unhandled_exception:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x00102190
MOV RAX,qword ptr [R14]
MOV qword ptr [R14],0x0
MOV RCX,qword ptr [RBX + 0x8]
MOV qword ptr [RSP + 0x10],RCX
MOV qword ptr [RBX + 0x8],RAX
TEST RCX,RCX
JZ 0x00102e87
LEA RDI,[RSP + 0x10]
CALL 0x00102130
CMP qword ptr [RSP + 0x8],0x0
JZ 0x00102e87
LEA RDI,[RSP + 0x8]
CALL 0x00102130
LAB_00102e87:
ADD RSP,0x18
POP RBX
POP R14
RET
|
/* WARNING: Removing unreachable block (ram,0x00102e7d) */
/* coro::detail::sync_wait_task_promise_base::unhandled_exception() */
void __thiscall
coro::detail::sync_wait_task_promise_base::unhandled_exception(sync_wait_task_promise_base *this)
{
long lVar1;
int8 local_20;
std::current_exception();
lVar1 = *(long *)(this + 8);
*(int8 *)(this + 8) = local_20;
if (lVar1 != 0) {
std::__exception_ptr::exception_ptr::_M_release();
}
return;
}
| |
35,169 | mcp::sse_client::init_client(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int) | hkr04[P]cpp-mcp/src/mcp_sse_client.cpp | void sse_client::init_client(const std::string& host, int port) {
http_client_ = std::make_unique<httplib::Client>(host.c_str(), port);
sse_client_ = std::make_unique<httplib::Client>(host.c_str(), port);
http_client_->set_connection_timeout(timeout_seconds_, 0);
http_client_->set_read_timeout(timeout_seconds_, 0);
http_client_->set_write_timeout(timeout_seconds_, 0);
sse_client_->set_connection_timeout(timeout_seconds_ * 2, 0);
sse_client_->set_write_timeout(timeout_seconds_, 0);
} | O0 | cpp | mcp::sse_client::init_client(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int):
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movl %edx, 0x34(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x38(%rsp), %rdi
callq 0xb2c0
movq %rax, 0x20(%rsp)
leaq 0x28(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x34(%rsp), %rdx
callq 0x85bc0
movq 0x8(%rsp), %rdi
addq $0x90, %rdi
leaq 0x28(%rsp), %rsi
callq 0x85cd0
leaq 0x28(%rsp), %rdi
callq 0x85b60
movq 0x38(%rsp), %rdi
callq 0xb2c0
movq %rax, 0x10(%rsp)
leaq 0x18(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x34(%rsp), %rdx
callq 0x85bc0
movq 0x8(%rsp), %rdi
addq $0x98, %rdi
leaq 0x18(%rsp), %rsi
callq 0x85cd0
leaq 0x18(%rsp), %rdi
callq 0x85b60
movq 0x8(%rsp), %rdi
addq $0x90, %rdi
callq 0x85d00
movq %rax, %rdi
movq 0x8(%rsp), %rax
movslq 0x100(%rax), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x85d10
movq 0x8(%rsp), %rdi
addq $0x90, %rdi
callq 0x85d00
movq %rax, %rdi
movq 0x8(%rsp), %rax
movslq 0x100(%rax), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x85d50
movq 0x8(%rsp), %rdi
addq $0x90, %rdi
callq 0x85d00
movq %rax, %rdi
movq 0x8(%rsp), %rax
movslq 0x100(%rax), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x85d90
movq 0x8(%rsp), %rdi
addq $0x98, %rdi
callq 0x85d00
movq %rax, %rdi
movq 0x8(%rsp), %rax
movl 0x100(%rax), %eax
shll %eax
movslq %eax, %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x85d10
movq 0x8(%rsp), %rdi
addq $0x98, %rdi
callq 0x85d00
movq %rax, %rdi
movq 0x8(%rsp), %rax
movslq 0x100(%rax), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x85d90
addq $0x48, %rsp
retq
nopl (%rax,%rax)
| _ZN3mcp10sse_client11init_clientERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi:
sub rsp, 48h
mov [rsp+48h+var_8], rdi
mov qword ptr [rsp+48h+var_10], rsi; char
mov [rsp+48h+var_14], edx
mov rax, [rsp+48h+var_8]
mov [rsp+48h+var_40], rax; void *
mov rdi, qword ptr [rsp+48h+var_10]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov qword ptr [rsp+48h+var_28], rax; __int16
lea rdi, [rsp+48h+var_20]; int
lea rsi, [rsp+48h+var_28]; int
lea rdx, [rsp+48h+var_14]; int
call _ZSt11make_uniqueIN7httplib6ClientEJPKcRiEENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<httplib::Client,char const*,int &>(char const*,int &)
mov rdi, [rsp+48h+var_40]
add rdi, 90h
lea rsi, [rsp+48h+var_20]
call _ZNSt10unique_ptrIN7httplib6ClientESt14default_deleteIS1_EEaSEOS4_; std::unique_ptr<httplib::Client>::operator=(std::unique_ptr<httplib::Client>&&)
lea rdi, [rsp+48h+var_20]
call _ZNSt10unique_ptrIN7httplib6ClientESt14default_deleteIS1_EED2Ev; std::unique_ptr<httplib::Client>::~unique_ptr()
mov rdi, qword ptr [rsp+48h+var_10]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov qword ptr [rsp+48h+var_38], rax; int
lea rdi, [rsp+48h+var_30]; int
lea rsi, [rsp+48h+var_38]; int
lea rdx, [rsp+48h+var_14]; int
call _ZSt11make_uniqueIN7httplib6ClientEJPKcRiEENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<httplib::Client,char const*,int &>(char const*,int &)
mov rdi, [rsp+48h+var_40]
add rdi, 98h
lea rsi, [rsp+48h+var_30]
call _ZNSt10unique_ptrIN7httplib6ClientESt14default_deleteIS1_EEaSEOS4_; std::unique_ptr<httplib::Client>::operator=(std::unique_ptr<httplib::Client>&&)
lea rdi, [rsp+48h+var_30]
call _ZNSt10unique_ptrIN7httplib6ClientESt14default_deleteIS1_EED2Ev; std::unique_ptr<httplib::Client>::~unique_ptr()
mov rdi, [rsp+48h+var_40]
add rdi, 90h
call _ZNKSt10unique_ptrIN7httplib6ClientESt14default_deleteIS1_EEptEv; std::unique_ptr<httplib::Client>::operator->(void)
mov rdi, rax; this
mov rax, [rsp+48h+var_40]
movsxd rsi, dword ptr [rax+100h]; __int64
xor eax, eax
mov edx, eax; __int64
call _ZN7httplib6Client22set_connection_timeoutEll; httplib::Client::set_connection_timeout(long,long)
mov rdi, [rsp+48h+var_40]
add rdi, 90h
call _ZNKSt10unique_ptrIN7httplib6ClientESt14default_deleteIS1_EEptEv; std::unique_ptr<httplib::Client>::operator->(void)
mov rdi, rax; this
mov rax, [rsp+48h+var_40]
movsxd rsi, dword ptr [rax+100h]; __int64
xor eax, eax
mov edx, eax; __int64
call _ZN7httplib6Client16set_read_timeoutEll; httplib::Client::set_read_timeout(long,long)
mov rdi, [rsp+48h+var_40]
add rdi, 90h
call _ZNKSt10unique_ptrIN7httplib6ClientESt14default_deleteIS1_EEptEv; std::unique_ptr<httplib::Client>::operator->(void)
mov rdi, rax; this
mov rax, [rsp+48h+var_40]
movsxd rsi, dword ptr [rax+100h]; __int64
xor eax, eax
mov edx, eax; __int64
call _ZN7httplib6Client17set_write_timeoutEll; httplib::Client::set_write_timeout(long,long)
mov rdi, [rsp+48h+var_40]
add rdi, 98h
call _ZNKSt10unique_ptrIN7httplib6ClientESt14default_deleteIS1_EEptEv; std::unique_ptr<httplib::Client>::operator->(void)
mov rdi, rax; this
mov rax, [rsp+48h+var_40]
mov eax, [rax+100h]
shl eax, 1
movsxd rsi, eax; __int64
xor eax, eax
mov edx, eax; __int64
call _ZN7httplib6Client22set_connection_timeoutEll; httplib::Client::set_connection_timeout(long,long)
mov rdi, [rsp+48h+var_40]
add rdi, 98h
call _ZNKSt10unique_ptrIN7httplib6ClientESt14default_deleteIS1_EEptEv; std::unique_ptr<httplib::Client>::operator->(void)
mov rdi, rax; this
mov rax, [rsp+48h+var_40]
movsxd rsi, dword ptr [rax+100h]; __int64
xor eax, eax
mov edx, eax; __int64
call _ZN7httplib6Client17set_write_timeoutEll; httplib::Client::set_write_timeout(long,long)
add rsp, 48h
retn
| long long mcp::sse_client::init_client(void *a1, long long a2)
{
__int16 v2; // ax
int v3; // ecx
int v4; // r8d
int v5; // r9d
int v6; // eax
int v7; // ecx
int v8; // r8d
int v9; // r9d
httplib::Client *v10; // rax
httplib::Client *v11; // rax
httplib::Client *v12; // rax
httplib::Client *v13; // rax
httplib::Client *v14; // rax
int v16; // [rsp+0h] [rbp-48h]
int v17; // [rsp+0h] [rbp-48h]
char *v18; // [rsp+8h] [rbp-40h]
_DWORD *v19; // [rsp+8h] [rbp-40h]
int v20[2]; // [rsp+10h] [rbp-38h] BYREF
int v21; // [rsp+18h] [rbp-30h] BYREF
__int16 v22[4]; // [rsp+20h] [rbp-28h] BYREF
long long v23; // [rsp+28h] [rbp-20h] BYREF
int v24; // [rsp+30h] [rbp-18h]
int v25; // [rsp+34h] [rbp-14h] BYREF
char v26[8]; // [rsp+38h] [rbp-10h]
void *v27; // [rsp+40h] [rbp-8h]
v27 = a1;
v2 = std::string::c_str(a2);
std::make_unique<httplib::Client,char const*,int &>(
(int)&v23,
(int)v22,
(int)&v25,
v3,
v4,
v5,
v16,
a1,
v20[0],
v21,
v2,
v23,
v24,
a2);
std::unique_ptr<httplib::Client>::operator=(v18 + 144, &v23);
std::unique_ptr<httplib::Client>::~unique_ptr(&v23);
v6 = std::string::c_str(*(_QWORD *)v26);
std::make_unique<httplib::Client,char const*,int &>(
(int)&v21,
(int)v20,
(int)&v25,
v7,
v8,
v9,
v17,
v18,
v6,
v21,
v22[0],
v23,
v24,
v26[0]);
std::unique_ptr<httplib::Client>::operator=(v19 + 38, &v21);
std::unique_ptr<httplib::Client>::~unique_ptr(&v21);
v10 = (httplib::Client *)std::unique_ptr<httplib::Client>::operator->(v19 + 36);
httplib::Client::set_connection_timeout(v10, (int)v19[64], 0LL);
v11 = (httplib::Client *)std::unique_ptr<httplib::Client>::operator->(v19 + 36);
httplib::Client::set_read_timeout(v11, (int)v19[64], 0LL);
v12 = (httplib::Client *)std::unique_ptr<httplib::Client>::operator->(v19 + 36);
httplib::Client::set_write_timeout(v12, (int)v19[64], 0LL);
v13 = (httplib::Client *)std::unique_ptr<httplib::Client>::operator->(v19 + 38);
httplib::Client::set_connection_timeout(v13, 2 * v19[64], 0LL);
v14 = (httplib::Client *)std::unique_ptr<httplib::Client>::operator->(v19 + 38);
return httplib::Client::set_write_timeout(v14, (int)v19[64], 0LL);
}
| init_client:
SUB RSP,0x48
MOV qword ptr [RSP + 0x40],RDI
MOV qword ptr [RSP + 0x38],RSI
MOV dword ptr [RSP + 0x34],EDX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x38]
CALL 0x0010b2c0
MOV qword ptr [RSP + 0x20],RAX
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0x20]
LEA RDX,[RSP + 0x34]
CALL 0x00185bc0
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x90
LEA RSI,[RSP + 0x28]
CALL 0x00185cd0
LEA RDI,[RSP + 0x28]
CALL 0x00185b60
MOV RDI,qword ptr [RSP + 0x38]
CALL 0x0010b2c0
MOV qword ptr [RSP + 0x10],RAX
LEA RDI,[RSP + 0x18]
LEA RSI,[RSP + 0x10]
LEA RDX,[RSP + 0x34]
CALL 0x00185bc0
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x98
LEA RSI,[RSP + 0x18]
CALL 0x00185cd0
LEA RDI,[RSP + 0x18]
CALL 0x00185b60
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x90
CALL 0x00185d00
MOV RDI,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOVSXD RSI,dword ptr [RAX + 0x100]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x00185d10
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x90
CALL 0x00185d00
MOV RDI,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOVSXD RSI,dword ptr [RAX + 0x100]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x00185d50
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x90
CALL 0x00185d00
MOV RDI,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOVSXD RSI,dword ptr [RAX + 0x100]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x00185d90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x98
CALL 0x00185d00
MOV RDI,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RAX + 0x100]
SHL EAX,0x1
MOVSXD RSI,EAX
XOR EAX,EAX
MOV EDX,EAX
CALL 0x00185d10
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x98
CALL 0x00185d00
MOV RDI,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOVSXD RSI,dword ptr [RAX + 0x100]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x00185d90
ADD RSP,0x48
RET
|
/* mcp::sse_client::init_client(std::__cxx11::string const&, int) */
void __thiscall mcp::sse_client::init_client(sse_client *this,string *param_1,int param_2)
{
Client *pCVar1;
int8 local_38;
unique_ptr local_30 [8];
int8 local_28;
unique_ptr local_20 [12];
int local_14;
string *local_10;
sse_client *local_8;
local_14 = param_2;
local_10 = param_1;
local_8 = this;
local_28 = std::__cxx11::string::c_str();
std::make_unique<httplib::Client,char_const*,int&>((char **)local_20,(int *)&local_28);
std::unique_ptr<httplib::Client,std::default_delete<httplib::Client>>::operator=
((unique_ptr<httplib::Client,std::default_delete<httplib::Client>> *)(this + 0x90),
local_20);
std::unique_ptr<httplib::Client,std::default_delete<httplib::Client>>::~unique_ptr
((unique_ptr<httplib::Client,std::default_delete<httplib::Client>> *)local_20);
local_38 = std::__cxx11::string::c_str();
std::make_unique<httplib::Client,char_const*,int&>((char **)local_30,(int *)&local_38);
std::unique_ptr<httplib::Client,std::default_delete<httplib::Client>>::operator=
((unique_ptr<httplib::Client,std::default_delete<httplib::Client>> *)(this + 0x98),
local_30);
std::unique_ptr<httplib::Client,std::default_delete<httplib::Client>>::~unique_ptr
((unique_ptr<httplib::Client,std::default_delete<httplib::Client>> *)local_30);
pCVar1 = (Client *)
std::unique_ptr<httplib::Client,std::default_delete<httplib::Client>>::operator->
((unique_ptr<httplib::Client,std::default_delete<httplib::Client>> *)
(this + 0x90));
httplib::Client::set_connection_timeout(pCVar1,(long)*(int *)(this + 0x100),0);
pCVar1 = (Client *)
std::unique_ptr<httplib::Client,std::default_delete<httplib::Client>>::operator->
((unique_ptr<httplib::Client,std::default_delete<httplib::Client>> *)
(this + 0x90));
httplib::Client::set_read_timeout(pCVar1,(long)*(int *)(this + 0x100),0);
pCVar1 = (Client *)
std::unique_ptr<httplib::Client,std::default_delete<httplib::Client>>::operator->
((unique_ptr<httplib::Client,std::default_delete<httplib::Client>> *)
(this + 0x90));
httplib::Client::set_write_timeout(pCVar1,(long)*(int *)(this + 0x100),0);
pCVar1 = (Client *)
std::unique_ptr<httplib::Client,std::default_delete<httplib::Client>>::operator->
((unique_ptr<httplib::Client,std::default_delete<httplib::Client>> *)
(this + 0x98));
httplib::Client::set_connection_timeout(pCVar1,(long)(*(int *)(this + 0x100) << 1),0);
pCVar1 = (Client *)
std::unique_ptr<httplib::Client,std::default_delete<httplib::Client>>::operator->
((unique_ptr<httplib::Client,std::default_delete<httplib::Client>> *)
(this + 0x98));
httplib::Client::set_write_timeout(pCVar1,(long)*(int *)(this + 0x100),0);
return;
}
| |
35,170 | PFS_buffer_default_allocator<PFS_table_share_index>::alloc_array(PFS_buffer_default_array<PFS_table_share_index>*) | eloqsql/storage/perfschema/pfs_buffer_container.h | int alloc_array(array_type *array)
{
array->m_ptr= NULL;
array->m_full= true;
array->m_monotonic.m_u32= 0;
if (array->m_max > 0)
{
array->m_ptr= PFS_MALLOC_ARRAY(m_builtin_class,
array->m_max, sizeof(T), T, MYF(MY_ZEROFILL));
if (array->m_ptr == NULL)
return 1;
array->m_full= false;
}
return 0;
} | O0 | c | PFS_buffer_default_allocator<PFS_table_share_index>::alloc_array(PFS_buffer_default_array<PFS_table_share_index>*):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq $0x0, 0x48(%rax)
movq -0x18(%rbp), %rax
movb $0x1, (%rax)
movq -0x18(%rbp), %rax
movl $0x0, 0x4(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x50(%rax)
jbe 0x3e415
movq -0x20(%rbp), %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x50(%rax), %rsi
movl $0x160, %edx # imm = 0x160
movl $0x20, %ecx
callq 0x29b10
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x48(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x48(%rax)
jne 0x3e40e
movl $0x1, -0x4(%rbp)
jmp 0x3e41c
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
| _ZN28PFS_buffer_default_allocatorI21PFS_table_share_indexE11alloc_arrayEP24PFS_buffer_default_arrayIS0_E:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
mov qword ptr [rax+48h], 0
mov rax, [rbp+var_18]
mov byte ptr [rax], 1
mov rax, [rbp+var_18]
mov dword ptr [rax+4], 0
mov rax, [rbp+var_18]
cmp qword ptr [rax+50h], 0
jbe short loc_3E415
mov rax, [rbp+var_20]
mov rdi, [rax]; PFS_builtin_memory_class *
mov rax, [rbp+var_18]
mov rsi, [rax+50h]; unsigned __int64
mov edx, 160h; unsigned __int64
mov ecx, 20h ; ' '; unsigned __int64
call _Z16pfs_malloc_arrayP24PFS_builtin_memory_classmmm; pfs_malloc_array(PFS_builtin_memory_class *,ulong,ulong,ulong)
mov rcx, rax
mov rax, [rbp+var_18]
mov [rax+48h], rcx
mov rax, [rbp+var_18]
cmp qword ptr [rax+48h], 0
jnz short loc_3E40E
mov [rbp+var_4], 1
jmp short loc_3E41C
loc_3E40E:
mov rax, [rbp+var_18]
mov byte ptr [rax], 0
loc_3E415:
mov [rbp+var_4], 0
loc_3E41C:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long PFS_buffer_default_allocator<PFS_table_share_index>::alloc_array(
PFS_builtin_memory_class **a1,
long long a2)
{
*(_QWORD *)(a2 + 72) = 0LL;
*(_BYTE *)a2 = 1;
*(_DWORD *)(a2 + 4) = 0;
if ( !*(_QWORD *)(a2 + 80) )
return 0;
*(_QWORD *)(a2 + 72) = pfs_malloc_array(*a1, *(_QWORD *)(a2 + 80), 0x160uLL);
if ( *(_QWORD *)(a2 + 72) )
{
*(_BYTE *)a2 = 0;
return 0;
}
return 1;
}
| alloc_array:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x48],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX],0x1
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x4],0x0
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x50],0x0
JBE 0x0013e415
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RAX + 0x50]
MOV EDX,0x160
MOV ECX,0x20
CALL 0x00129b10
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x48],RCX
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x48],0x0
JNZ 0x0013e40e
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0013e41c
LAB_0013e40e:
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX],0x0
LAB_0013e415:
MOV dword ptr [RBP + -0x4],0x0
LAB_0013e41c:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
/* PFS_buffer_default_allocator<PFS_table_share_index>::alloc_array(PFS_buffer_default_array<PFS_table_share_index>*)
*/
int4 __thiscall
PFS_buffer_default_allocator<PFS_table_share_index>::alloc_array
(PFS_buffer_default_allocator<PFS_table_share_index> *this,
PFS_buffer_default_array *param_1)
{
int8 uVar1;
*(int8 *)(param_1 + 0x48) = 0;
*param_1 = (PFS_buffer_default_array)0x1;
*(int4 *)(param_1 + 4) = 0;
if (*(long *)(param_1 + 0x50) != 0) {
uVar1 = pfs_malloc_array(*(PFS_builtin_memory_class **)this,*(ulong *)(param_1 + 0x50),0x160,
0x20);
*(int8 *)(param_1 + 0x48) = uVar1;
if (*(long *)(param_1 + 0x48) == 0) {
return 1;
}
*param_1 = (PFS_buffer_default_array)0x0;
}
return 0;
}
| |
35,171 | PFS_buffer_default_allocator<PFS_table_share_index>::alloc_array(PFS_buffer_default_array<PFS_table_share_index>*) | eloqsql/storage/perfschema/pfs_buffer_container.h | int alloc_array(array_type *array)
{
array->m_ptr= NULL;
array->m_full= true;
array->m_monotonic.m_u32= 0;
if (array->m_max > 0)
{
array->m_ptr= PFS_MALLOC_ARRAY(m_builtin_class,
array->m_max, sizeof(T), T, MYF(MY_ZEROFILL));
if (array->m_ptr == NULL)
return 1;
array->m_full= false;
}
return 0;
} | O3 | c | PFS_buffer_default_allocator<PFS_table_share_index>::alloc_array(PFS_buffer_default_array<PFS_table_share_index>*):
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq $0x0, 0x48(%rsi)
movb $0x1, (%rsi)
movl $0x0, 0x4(%rsi)
movq 0x50(%rsi), %rsi
xorl %ebx, %ebx
testq %rsi, %rsi
je 0x34453
movq (%rdi), %rdi
movl $0x80, %edx
movl $0x20, %ecx
callq 0x2cd6c
movq %rax, 0x48(%r14)
testq %rax, %rax
je 0x3444e
movb $0x0, (%r14)
jmp 0x34453
movl $0x1, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
| _ZN28PFS_buffer_default_allocatorI9PFS_mutexE11alloc_arrayEP24PFS_buffer_default_arrayIS0_E:
push rbp
mov rbp, rsp
push r14
push rbx
mov r14, rsi
mov qword ptr [rsi+48h], 0
mov byte ptr [rsi], 1
mov dword ptr [rsi+4], 0
mov rsi, [rsi+50h]
xor ebx, ebx
test rsi, rsi
jz short loc_34453
mov rdi, [rdi]
mov edx, 80h
mov ecx, 20h ; ' '
call _Z16pfs_malloc_arrayP24PFS_builtin_memory_classmmm; pfs_malloc_array(PFS_builtin_memory_class *,ulong,ulong,ulong)
mov [r14+48h], rax
test rax, rax
jz short loc_3444E
mov byte ptr [r14], 0
jmp short loc_34453
loc_3444E:
mov ebx, 1
loc_34453:
mov eax, ebx
pop rbx
pop r14
pop rbp
retn
| long long PFS_buffer_default_allocator<PFS_mutex>::alloc_array(long long *a1, long long a2)
{
unsigned long long v3; // rsi
unsigned int v4; // ebx
long long v5; // rax
*(_QWORD *)(a2 + 72) = 0LL;
*(_BYTE *)a2 = 1;
*(_DWORD *)(a2 + 4) = 0;
v3 = *(_QWORD *)(a2 + 80);
v4 = 0;
if ( v3 )
{
v5 = pfs_malloc_array(*a1, v3, 0x80uLL);
*(_QWORD *)(a2 + 72) = v5;
if ( v5 )
*(_BYTE *)a2 = 0;
else
return 1;
}
return v4;
}
| alloc_array:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV R14,RSI
MOV qword ptr [RSI + 0x48],0x0
MOV byte ptr [RSI],0x1
MOV dword ptr [RSI + 0x4],0x0
MOV RSI,qword ptr [RSI + 0x50]
XOR EBX,EBX
TEST RSI,RSI
JZ 0x00134453
MOV RDI,qword ptr [RDI]
MOV EDX,0x80
MOV ECX,0x20
CALL 0x0012cd6c
MOV qword ptr [R14 + 0x48],RAX
TEST RAX,RAX
JZ 0x0013444e
MOV byte ptr [R14],0x0
JMP 0x00134453
LAB_0013444e:
MOV EBX,0x1
LAB_00134453:
MOV EAX,EBX
POP RBX
POP R14
POP RBP
RET
|
/* PFS_buffer_default_allocator<PFS_mutex>::alloc_array(PFS_buffer_default_array<PFS_mutex>*) */
int8 __thiscall
PFS_buffer_default_allocator<PFS_mutex>::alloc_array
(PFS_buffer_default_allocator<PFS_mutex> *this,PFS_buffer_default_array *param_1)
{
long lVar1;
int8 uVar2;
*(int8 *)(param_1 + 0x48) = 0;
*param_1 = (PFS_buffer_default_array)0x1;
*(int4 *)(param_1 + 4) = 0;
uVar2 = 0;
if (*(ulong *)(param_1 + 0x50) != 0) {
lVar1 = pfs_malloc_array(*(PFS_builtin_memory_class **)this,*(ulong *)(param_1 + 0x50),0x80,0x20
);
*(long *)(param_1 + 0x48) = lVar1;
if (lVar1 == 0) {
uVar2 = 1;
}
else {
*param_1 = (PFS_buffer_default_array)0x0;
}
}
return uVar2;
}
| |
35,172 | my_hash_next | eloqsql/mysys/hash.c | uchar* my_hash_next(const HASH *hash, const uchar *key, size_t length,
HASH_SEARCH_STATE *current_record)
{
HASH_LINK *pos;
uint idx;
if (*current_record != NO_RECORD)
{
HASH_LINK *data=dynamic_element(&hash->array,0,HASH_LINK*);
for (idx=data[*current_record].next; idx != NO_RECORD ; idx=pos->next)
{
pos=data+idx;
if (!hashcmp(hash,pos,key,length))
{
*current_record= idx;
return pos->data;
}
}
*current_record= NO_RECORD;
}
return 0;
} | O0 | c | my_hash_next:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x28(%rbp), %rax
cmpl $-0x1, (%rax)
je 0xde447
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq -0x28(%rbp), %rcx
movl (%rcx), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %eax
movl %eax, -0x34(%rbp)
cmpl $-0x1, -0x34(%rbp)
je 0xde43d
movq -0x40(%rbp), %rax
movl -0x34(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0xde2d0
cmpl $0x0, %eax
jne 0xde430
movl -0x34(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0xde44f
jmp 0xde432
movq -0x30(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x34(%rbp)
jmp 0xde3e7
movq -0x28(%rbp), %rax
movl $0xffffffff, (%rax) # imm = 0xFFFFFFFF
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
| my_hash_next:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_28]
cmp dword ptr [rax], 0FFFFFFFFh
jz loc_DE447
mov rax, [rbp+var_10]
mov rax, [rax+28h]
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
mov rcx, [rbp+var_28]
mov ecx, [rcx]
shl rcx, 4
add rax, rcx
mov eax, [rax]
mov [rbp+var_34], eax
loc_DE3E7:
cmp [rbp+var_34], 0FFFFFFFFh
jz short loc_DE43D
mov rax, [rbp+var_40]
mov ecx, [rbp+var_34]
shl rcx, 4
add rax, rcx
mov [rbp+var_30], rax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call hashcmp
cmp eax, 0
jnz short loc_DE430
mov ecx, [rbp+var_34]
mov rax, [rbp+var_28]
mov [rax], ecx
mov rax, [rbp+var_30]
mov rax, [rax+8]
mov [rbp+var_8], rax
jmp short loc_DE44F
loc_DE430:
jmp short $+2
loc_DE432:
mov rax, [rbp+var_30]
mov eax, [rax]
mov [rbp+var_34], eax
jmp short loc_DE3E7
loc_DE43D:
mov rax, [rbp+var_28]
mov dword ptr [rax], 0FFFFFFFFh
loc_DE447:
mov [rbp+var_8], 0
loc_DE44F:
mov rax, [rbp+var_8]
add rsp, 40h
pop rbp
retn
| long long my_hash_next(long long a1, long long a2, long long a3, unsigned int *a4)
{
long long v5; // [rsp+0h] [rbp-40h]
unsigned int i; // [rsp+Ch] [rbp-34h]
long long v7; // [rsp+10h] [rbp-30h]
if ( *a4 != -1 )
{
v5 = *(_QWORD *)(a1 + 40);
for ( i = *(_DWORD *)(16LL * *a4 + v5); i != -1; i = *(_DWORD *)v7 )
{
v7 = 16LL * i + v5;
if ( !hashcmp(a1, v7, a2, a3) )
{
*a4 = i;
return *(_QWORD *)(v7 + 8);
}
}
*a4 = -1;
}
return 0LL;
}
| my_hash_next:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x28]
CMP dword ptr [RAX],-0x1
JZ 0x001de447
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x28]
MOV ECX,dword ptr [RCX]
SHL RCX,0x4
ADD RAX,RCX
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x34],EAX
LAB_001de3e7:
CMP dword ptr [RBP + -0x34],-0x1
JZ 0x001de43d
MOV RAX,qword ptr [RBP + -0x40]
MOV ECX,dword ptr [RBP + -0x34]
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
CALL 0x001de2d0
CMP EAX,0x0
JNZ 0x001de430
MOV ECX,dword ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001de44f
LAB_001de430:
JMP 0x001de432
LAB_001de432:
MOV RAX,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x34],EAX
JMP 0x001de3e7
LAB_001de43d:
MOV RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RAX],0xffffffff
LAB_001de447:
MOV qword ptr [RBP + -0x8],0x0
LAB_001de44f:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x40
POP RBP
RET
|
int8 my_hash_next(long param_1,int8 param_2,int8 param_3,uint *param_4)
{
long lVar1;
int iVar2;
uint *puVar3;
uint local_3c;
if (*param_4 != 0xffffffff) {
lVar1 = *(long *)(param_1 + 0x28);
local_3c = *(uint *)(lVar1 + (ulong)*param_4 * 0x10);
while (local_3c != 0xffffffff) {
puVar3 = (uint *)(lVar1 + (ulong)local_3c * 0x10);
iVar2 = hashcmp(param_1,puVar3,param_2,param_3);
if (iVar2 == 0) {
*param_4 = local_3c;
return *(int8 *)(puVar3 + 2);
}
local_3c = *puVar3;
}
*param_4 = 0xffffffff;
}
return 0;
}
| |
35,173 | gguf_writer::write(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const | llama.cpp/ggml/src/gguf.cpp | void write(const std::string & val) const {
{
const uint64_t n = val.length();
write(n);
}
for (size_t i = 0; i < val.length(); ++i) {
buf.push_back(reinterpret_cast<const int8_t *>(val.data())[i]);
}
} | O3 | cpp | gguf_writer::write(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rsi), %rax
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
callq 0x16590
cmpq $0x0, 0x8(%rbx)
je 0x41889
xorl %r15d, %r15d
movq (%r14), %rdi
movq (%rbx), %rdx
addq %r15, %rdx
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x4187b
movb (%rdx), %al
movb %al, (%rsi)
incq 0x8(%rdi)
jmp 0x41880
callq 0x17820
incq %r15
cmpq 0x8(%rbx), %r15
jb 0x4185e
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
| _ZNK11gguf_writer5writeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push rbx
sub rsp, 10h
mov rbx, rsi
mov r14, rdi
mov rax, [rsi+8]
lea rsi, [rsp+28h+var_20]
mov [rsi], rax
call __ZNK11gguf_writer5writeImEEvRKT_; gguf_writer::write<ulong>(ulong const&)
cmp qword ptr [rbx+8], 0
jz short loc_41889
xor r15d, r15d
loc_4185E:
mov rdi, [r14]
mov rdx, [rbx]
add rdx, r15
mov rsi, [rdi+8]
cmp rsi, [rdi+10h]
jz short loc_4187B
mov al, [rdx]
mov [rsi], al
inc qword ptr [rdi+8]
jmp short loc_41880
loc_4187B:
call __ZNSt6vectorIaSaIaEE17_M_realloc_insertIJRKaEEEvN9__gnu_cxx17__normal_iteratorIPaS1_EEDpOT_; std::vector<signed char>::_M_realloc_insert<signed char const&>(__gnu_cxx::__normal_iterator<signed char *,std::vector<signed char>>,signed char const&)
loc_41880:
inc r15
cmp r15, [rbx+8]
jb short loc_4185E
loc_41889:
add rsp, 10h
pop rbx
pop r14
pop r15
retn
| char gguf_writer::write(long long *a1, _QWORD *a2)
{
char result; // al
unsigned long long v5; // r15
long long v6; // rdi
char *v7; // rdx
char *v8; // rsi
_QWORD v9[4]; // [rsp+8h] [rbp-20h] BYREF
v9[0] = a2[1];
result = gguf_writer::write<unsigned long>(a1, v9);
if ( a2[1] )
{
v5 = 0LL;
do
{
v6 = *a1;
v7 = (char *)(v5 + *a2);
v8 = *(char **)(*a1 + 8);
if ( v8 == *(char **)(*a1 + 16) )
{
result = std::vector<signed char>::_M_realloc_insert<signed char const&>(v6, v8, v7);
}
else
{
result = *v7;
*v8 = *v7;
++*(_QWORD *)(v6 + 8);
}
++v5;
}
while ( v5 < a2[1] );
}
return result;
}
| write:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV RBX,RSI
MOV R14,RDI
MOV RAX,qword ptr [RSI + 0x8]
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],RAX
CALL 0x00116590
CMP qword ptr [RBX + 0x8],0x0
JZ 0x00141889
XOR R15D,R15D
LAB_0014185e:
MOV RDI,qword ptr [R14]
MOV RDX,qword ptr [RBX]
ADD RDX,R15
MOV RSI,qword ptr [RDI + 0x8]
CMP RSI,qword ptr [RDI + 0x10]
JZ 0x0014187b
MOV AL,byte ptr [RDX]
MOV byte ptr [RSI],AL
INC qword ptr [RDI + 0x8]
JMP 0x00141880
LAB_0014187b:
CALL 0x00117820
LAB_00141880:
INC R15
CMP R15,qword ptr [RBX + 0x8]
JC 0x0014185e
LAB_00141889:
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
/* gguf_writer::write(std::__cxx11::string const&) const */
void __thiscall gguf_writer::write(gguf_writer *this,string *param_1)
{
long lVar1;
ulong uVar2;
ulong local_20;
local_20 = *(ulong *)(param_1 + 8);
write<unsigned_long>(this,&local_20);
if (*(long *)(param_1 + 8) != 0) {
uVar2 = 0;
do {
lVar1 = *(long *)this;
if (*(int1 **)(lVar1 + 8) == *(int1 **)(lVar1 + 0x10)) {
std::vector<signed_char,std::allocator<signed_char>>::_M_realloc_insert<signed_char_const&>
();
}
else {
**(int1 **)(lVar1 + 8) = *(int1 *)(*(long *)param_1 + uVar2);
*(long *)(lVar1 + 8) = *(long *)(lVar1 + 8) + 1;
}
uVar2 = uVar2 + 1;
} while (uVar2 < *(ulong *)(param_1 + 8));
}
return;
}
| |
35,174 | codegen_generate_character_literal | tsotchke[P]eshkol/src/backend/codegen/literals.c | bool codegen_generate_character_literal(CodegenContext* context, const AstNode* node) {
assert(context != NULL);
assert(node != NULL);
assert(node->type == AST_LITERAL_CHARACTER);
// Get output file
FILE* output = codegen_context_get_output(context);
// Generate code
fprintf(output, "'%c'", node->as.character.value);
return true;
} | O0 | c | codegen_generate_character_literal:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x19359
jmp 0x19378
leaq 0xda3b(%rip), %rdi # 0x26d9b
leaq 0x142d3(%rip), %rsi # 0x2d63a
movl $0x34, %edx
leaq 0x143b3(%rip), %rcx # 0x2d726
callq 0x2160
cmpq $0x0, -0x10(%rbp)
je 0x19381
jmp 0x193a0
leaq 0xf6c2(%rip), %rdi # 0x28a4a
leaq 0x142ab(%rip), %rsi # 0x2d63a
movl $0x35, %edx
leaq 0x1438b(%rip), %rcx # 0x2d726
callq 0x2160
movq -0x10(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x193ab
jmp 0x193ca
leaq 0xfd7c(%rip), %rdi # 0x2912e
leaq 0x14281(%rip), %rsi # 0x2d63a
movl $0x36, %edx
leaq 0x14361(%rip), %rcx # 0x2d726
callq 0x2160
movq -0x8(%rbp), %rdi
callq 0x11730
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movsbl 0x48(%rax), %edx
leaq 0xe231(%rip), %rsi # 0x2761b
movb $0x0, %al
callq 0x21d0
movb $0x1, %al
andb $0x1, %al
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| codegen_generate_character_literal:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
cmp [rbp+var_8], 0
jz short loc_19359
jmp short loc_19378
loc_19359:
lea rdi, aContextNull; "context != NULL"
lea rsi, aWorkspaceLlm4b_16; "/workspace/llm4binary/github/2025_star3"...
mov edx, 34h ; '4'
lea rcx, aBoolCodegenGen_9; "_Bool codegen_generate_character_litera"...
call ___assert_fail
loc_19378:
cmp [rbp+var_10], 0
jz short loc_19381
jmp short loc_193A0
loc_19381:
lea rdi, aNodeNull; "node != NULL"
lea rsi, aWorkspaceLlm4b_16; "/workspace/llm4binary/github/2025_star3"...
mov edx, 35h ; '5'
lea rcx, aBoolCodegenGen_9; "_Bool codegen_generate_character_litera"...
call ___assert_fail
loc_193A0:
mov rax, [rbp+var_10]
cmp dword ptr [rax], 2
jnz short loc_193AB
jmp short loc_193CA
loc_193AB:
lea rdi, aNodeTypeAstLit_1; "node->type == AST_LITERAL_CHARACTER"
lea rsi, aWorkspaceLlm4b_16; "/workspace/llm4binary/github/2025_star3"...
mov edx, 36h ; '6'
lea rcx, aBoolCodegenGen_9; "_Bool codegen_generate_character_litera"...
call ___assert_fail
loc_193CA:
mov rdi, [rbp+var_8]
call codegen_context_get_output
mov [rbp+var_18], rax
mov rdi, [rbp+var_18]
mov rax, [rbp+var_10]
movsx edx, byte ptr [rax+48h]
lea rsi, aC+1; "'%c'"
mov al, 0
call _fprintf
mov al, 1
and al, 1
add rsp, 20h
pop rbp
retn
| char codegen_generate_character_literal(long long a1, long long a2)
{
long long output; // [rsp+8h] [rbp-18h]
if ( !a1 )
__assert_fail(
"context != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/literals.c",
52LL,
"_Bool codegen_generate_character_literal(CodegenContext *, const AstNode *)");
if ( !a2 )
__assert_fail(
"node != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/literals.c",
53LL,
"_Bool codegen_generate_character_literal(CodegenContext *, const AstNode *)");
if ( *(_DWORD *)a2 != 2 )
__assert_fail(
"node->type == AST_LITERAL_CHARACTER",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/literals.c",
54LL,
"_Bool codegen_generate_character_literal(CodegenContext *, const AstNode *)");
output = codegen_context_get_output(a1);
fprintf(output, "'%c'", (unsigned int)*(char *)(a2 + 72));
return 1;
}
| codegen_generate_character_literal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
CMP qword ptr [RBP + -0x8],0x0
JZ 0x00119359
JMP 0x00119378
LAB_00119359:
LEA RDI,[0x126d9b]
LEA RSI,[0x12d63a]
MOV EDX,0x34
LEA RCX,[0x12d726]
CALL 0x00102160
LAB_00119378:
CMP qword ptr [RBP + -0x10],0x0
JZ 0x00119381
JMP 0x001193a0
LAB_00119381:
LEA RDI,[0x128a4a]
LEA RSI,[0x12d63a]
MOV EDX,0x35
LEA RCX,[0x12d726]
CALL 0x00102160
LAB_001193a0:
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX],0x2
JNZ 0x001193ab
JMP 0x001193ca
LAB_001193ab:
LEA RDI,[0x12912e]
LEA RSI,[0x12d63a]
MOV EDX,0x36
LEA RCX,[0x12d726]
CALL 0x00102160
LAB_001193ca:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00111730
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOVSX EDX,byte ptr [RAX + 0x48]
LEA RSI,[0x12761b]
MOV AL,0x0
CALL 0x001021d0
MOV AL,0x1
AND AL,0x1
ADD RSP,0x20
POP RBP
RET
|
int8 codegen_generate_character_literal(long param_1,int *param_2)
{
int iVar1;
FILE *__stream;
int4 extraout_var;
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("context != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/literals.c"
,0x34,
"_Bool codegen_generate_character_literal(CodegenContext *, const AstNode *)");
}
if (param_2 != (int *)0x0) {
if (*param_2 == 2) {
__stream = (FILE *)codegen_context_get_output(param_1);
iVar1 = fprintf(__stream,"\'%c\'",(ulong)(uint)(int)(char)param_2[0x12]);
return CONCAT71((int7)(CONCAT44(extraout_var,iVar1) >> 8),1);
}
/* WARNING: Subroutine does not return */
__assert_fail("node->type == AST_LITERAL_CHARACTER",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/literals.c"
,0x36,
"_Bool codegen_generate_character_literal(CodegenContext *, const AstNode *)");
}
/* WARNING: Subroutine does not return */
__assert_fail("node != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/literals.c"
,0x35,"_Bool codegen_generate_character_literal(CodegenContext *, const AstNode *)")
;
}
| |
35,175 | pick_seeds | eloqsql/storage/myisam/rt_split.c | static void pick_seeds(SplitStruct *node, int n_entries,
SplitStruct **seed_a, SplitStruct **seed_b, int n_dim)
{
SplitStruct *cur1;
SplitStruct *lim1 = node + (n_entries - 1);
SplitStruct *cur2;
SplitStruct *lim2 = node + n_entries;
double max_d = -DBL_MAX;
double d;
*seed_a = node;
*seed_b = node + 1;
for (cur1 = node; cur1 < lim1; ++cur1)
{
for (cur2=cur1 + 1; cur2 < lim2; ++cur2)
{
d = mbr_join_square(cur1->coords, cur2->coords, n_dim) - cur1->square -
cur2->square;
if (d > max_d)
{
max_d = d;
*seed_a = cur1;
*seed_b = cur2;
}
}
}
} | O0 | c | pick_seeds:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movsd 0x8307a(%rip), %xmm0 # 0x158c88
movsd %xmm0, -0x50(%rbp)
movq -0x8(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rcx
addq $0x20, %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0xd5cd5
movq -0x30(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
cmpq -0x48(%rbp), %rax
jae 0xd5cc2
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rsi
movl -0x24(%rbp), %edx
callq 0xd5f40
movq -0x30(%rbp), %rax
subsd (%rax), %xmm0
movq -0x40(%rbp), %rax
subsd (%rax), %xmm0
movsd %xmm0, -0x58(%rbp)
movsd -0x58(%rbp), %xmm0
ucomisd -0x50(%rbp), %xmm0
jbe 0xd5cb2
movsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x50(%rbp)
movq -0x30(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
jmp 0xd5cb4
movq -0x40(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x40(%rbp)
jmp 0xd5c4f
jmp 0xd5cc4
movq -0x30(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x30(%rbp)
jmp 0xd5c35
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| pick_seeds_0:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_24], r8d
mov rax, [rbp+var_8]
mov ecx, [rbp+var_C]
sub ecx, 1
movsxd rcx, ecx
shl rcx, 5
add rax, rcx
mov [rbp+var_38], rax
mov rax, [rbp+var_8]
movsxd rcx, [rbp+var_C]
shl rcx, 5
add rax, rcx
mov [rbp+var_48], rax
movsd xmm0, cs:qword_158C88
movsd [rbp+var_50], xmm0
mov rcx, [rbp+var_8]
mov rax, [rbp+var_18]
mov [rax], rcx
mov rcx, [rbp+var_8]
add rcx, 20h ; ' '
mov rax, [rbp+var_20]
mov [rax], rcx
mov rax, [rbp+var_8]
mov [rbp+var_30], rax
loc_D5C35:
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jnb loc_D5CD5
mov rax, [rbp+var_30]
add rax, 20h ; ' '
mov [rbp+var_40], rax
loc_D5C4F:
mov rax, [rbp+var_40]
cmp rax, [rbp+var_48]
jnb short loc_D5CC2
mov rax, [rbp+var_30]
mov rdi, [rax+18h]
mov rax, [rbp+var_40]
mov rsi, [rax+18h]
mov edx, [rbp+var_24]
call mbr_join_square_0
mov rax, [rbp+var_30]
subsd xmm0, qword ptr [rax]
mov rax, [rbp+var_40]
subsd xmm0, qword ptr [rax]
movsd [rbp+var_58], xmm0
movsd xmm0, [rbp+var_58]
ucomisd xmm0, [rbp+var_50]
jbe short loc_D5CB2
movsd xmm0, [rbp+var_58]
movsd [rbp+var_50], xmm0
mov rcx, [rbp+var_30]
mov rax, [rbp+var_18]
mov [rax], rcx
mov rcx, [rbp+var_40]
mov rax, [rbp+var_20]
mov [rax], rcx
loc_D5CB2:
jmp short $+2
loc_D5CB4:
mov rax, [rbp+var_40]
add rax, 20h ; ' '
mov [rbp+var_40], rax
jmp short loc_D5C4F
loc_D5CC2:
jmp short $+2
loc_D5CC4:
mov rax, [rbp+var_30]
add rax, 20h ; ' '
mov [rbp+var_30], rax
jmp loc_D5C35
loc_D5CD5:
add rsp, 60h
pop rbp
retn
| unsigned long long pick_seeds_0(
unsigned long long a1,
int a2,
unsigned long long *a3,
unsigned long long *a4,
unsigned int a5)
{
unsigned long long result; // rax
double v6; // [rsp+8h] [rbp-58h]
double v7; // [rsp+10h] [rbp-50h]
unsigned long long j; // [rsp+20h] [rbp-40h]
unsigned long long i; // [rsp+30h] [rbp-30h]
v7 = -1.797693134862316e308;
*a3 = a1;
*a4 = a1 + 32;
for ( i = a1; ; i += 32LL )
{
result = i;
if ( i >= 32LL * (a2 - 1) + a1 )
break;
for ( j = i + 32; j < 32LL * a2 + a1; j += 32LL )
{
v6 = mbr_join_square_0(*(_QWORD *)(i + 24), *(_QWORD *)(j + 24), a5) - *(double *)i - *(double *)j;
if ( v6 > v7 )
{
v7 = v6;
*a3 = i;
*a4 = j;
}
}
}
return result;
}
| pick_seeds:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV dword ptr [RBP + -0x24],R8D
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0xc]
SUB ECX,0x1
MOVSXD RCX,ECX
SHL RCX,0x5
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVSXD RCX,dword ptr [RBP + -0xc]
SHL RCX,0x5
ADD RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOVSD XMM0,qword ptr [0x00258c88]
MOVSD qword ptr [RBP + -0x50],XMM0
MOV RCX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x8]
ADD RCX,0x20
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x30],RAX
LAB_001d5c35:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x001d5cd5
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x20
MOV qword ptr [RBP + -0x40],RAX
LAB_001d5c4f:
MOV RAX,qword ptr [RBP + -0x40]
CMP RAX,qword ptr [RBP + -0x48]
JNC 0x001d5cc2
MOV RAX,qword ptr [RBP + -0x30]
MOV RDI,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RAX + 0x18]
MOV EDX,dword ptr [RBP + -0x24]
CALL 0x001d5f40
MOV RAX,qword ptr [RBP + -0x30]
SUBSD XMM0,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x40]
SUBSD XMM0,qword ptr [RAX]
MOVSD qword ptr [RBP + -0x58],XMM0
MOVSD XMM0,qword ptr [RBP + -0x58]
UCOMISD XMM0,qword ptr [RBP + -0x50]
JBE 0x001d5cb2
MOVSD XMM0,qword ptr [RBP + -0x58]
MOVSD qword ptr [RBP + -0x50],XMM0
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX],RCX
LAB_001d5cb2:
JMP 0x001d5cb4
LAB_001d5cb4:
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,0x20
MOV qword ptr [RBP + -0x40],RAX
JMP 0x001d5c4f
LAB_001d5cc2:
JMP 0x001d5cc4
LAB_001d5cc4:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x20
MOV qword ptr [RBP + -0x30],RAX
JMP 0x001d5c35
LAB_001d5cd5:
ADD RSP,0x60
POP RBP
RET
|
void pick_seeds(double *param_1,int param_2,int8 *param_3,int8 *param_4,
int4 param_5)
{
double *pdVar1;
double dVar2;
double local_58;
double *local_48;
double *local_38;
local_58 = DAT_00258c88;
*param_3 = param_1;
*param_4 = param_1 + 4;
for (local_38 = param_1; pdVar1 = local_38, local_38 < param_1 + (long)(param_2 + -1) * 4;
local_38 = local_38 + 4) {
while (local_48 = pdVar1 + 4, local_48 < param_1 + (long)param_2 * 4) {
dVar2 = (double)mbr_join_square(local_38[3],pdVar1[7],param_5);
dVar2 = (dVar2 - *local_38) - *local_48;
pdVar1 = local_48;
if (local_58 < dVar2) {
*param_3 = local_38;
*param_4 = local_48;
local_58 = dVar2;
}
}
}
return;
}
| |
35,176 | wait_for_flush | eloqsql/storage/maria/ma_pagecache.c | static void wait_for_flush(PAGECACHE *pagecache
__attribute__((unused)),
PAGECACHE_BLOCK_LINK *block
__attribute__((unused)))
{
struct st_my_thread_var *thread= my_thread_var;
DBUG_ENTER("wait_for_flush");
wqueue_add_to_queue(&block->wqueue[COND_FOR_SAVED], thread);
do
{
DBUG_PRINT("wait",
("suspend thread %s %ld", thread->name, (ulong) thread->id));
pagecache_pthread_cond_wait(&thread->suspend,
&pagecache->cache_lock);
}
while(thread->next);
DBUG_VOID_RETURN;
} | O0 | c | wait_for_flush:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
callq 0xf7b30
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
addq $0x48, %rdi
addq $0x8, %rdi
movq -0x18(%rbp), %rsi
callq 0x100ff0
jmp 0x99040
jmp 0x99042
movq -0x18(%rbp), %rdi
addq $0x8, %rdi
movq -0x8(%rbp), %rsi
addq $0xc8, %rsi
leaq 0xba716(%rip), %rdx # 0x153772
movl $0x665, %ecx # imm = 0x665
callq 0x98830
movq -0x18(%rbp), %rax
cmpq $0x0, 0x88(%rax)
jne 0x9903e
jmp 0x99076
jmp 0x99078
addq $0x20, %rsp
popq %rbp
retq
nop
| wait_for_flush:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
call _my_thread_var
mov [rbp+var_18], rax
mov rdi, [rbp+var_10]
add rdi, 48h ; 'H'
add rdi, 8
mov rsi, [rbp+var_18]
call wqueue_add_to_queue
loc_9903E:
jmp short $+2
loc_99040:
jmp short $+2
loc_99042:
mov rdi, [rbp+var_18]
add rdi, 8
mov rsi, [rbp+var_8]
add rsi, 0C8h
lea rdx, aWorkspaceLlm4b_18; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 665h
call inline_mysql_cond_wait_2
mov rax, [rbp+var_18]
cmp qword ptr [rax+88h], 0
jnz short loc_9903E
jmp short $+2
loc_99076:
jmp short $+2
loc_99078:
add rsp, 20h
pop rbp
retn
| long long wait_for_flush(long long a1, const char *a2)
{
long long result; // rax
long long v3; // [rsp+8h] [rbp-18h]
v3 = my_thread_var(a1, a2);
wqueue_add_to_queue(a2 + 80, v3);
do
{
inline_mysql_cond_wait_2(
v3 + 8,
a1 + 200,
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",
0x665u);
result = v3;
}
while ( *(_QWORD *)(v3 + 136) );
return result;
}
| wait_for_flush:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
CALL 0x001f7b30
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x48
ADD RDI,0x8
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00200ff0
LAB_0019903e:
JMP 0x00199040
LAB_00199040:
JMP 0x00199042
LAB_00199042:
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x8
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0xc8
LEA RDX,[0x253772]
MOV ECX,0x665
CALL 0x00198830
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x88],0x0
JNZ 0x0019903e
JMP 0x00199076
LAB_00199076:
JMP 0x00199078
LAB_00199078:
ADD RSP,0x20
POP RBP
RET
|
void wait_for_flush(long param_1,long param_2)
{
long lVar1;
lVar1 = _my_thread_var();
wqueue_add_to_queue(param_2 + 0x50,lVar1);
do {
inline_mysql_cond_wait
(lVar1 + 8,param_1 + 200,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",0x665);
} while (*(long *)(lVar1 + 0x88) != 0);
return;
}
| |
35,177 | wait_for_flush | eloqsql/storage/maria/ma_pagecache.c | static void wait_for_flush(PAGECACHE *pagecache
__attribute__((unused)),
PAGECACHE_BLOCK_LINK *block
__attribute__((unused)))
{
struct st_my_thread_var *thread= my_thread_var;
DBUG_ENTER("wait_for_flush");
wqueue_add_to_queue(&block->wqueue[COND_FOR_SAVED], thread);
do
{
DBUG_PRINT("wait",
("suspend thread %s %ld", thread->name, (ulong) thread->id));
pagecache_pthread_cond_wait(&thread->suspend,
&pagecache->cache_lock);
}
while(thread->next);
DBUG_VOID_RETURN;
} | O3 | c | wait_for_flush:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
callq 0xa319a
movq %rax, %r14
addq $0x50, %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0xa7cdb
movq %r14, %r15
addq $0x8, %r15
addq $0xc8, %rbx
leaq 0x6bd63(%rip), %r12 # 0xdb751
cmpq $0x0, 0x38(%r14)
jne 0x6fa0c
movq %r15, %rdi
movq %rbx, %rsi
callq 0x293d0
cmpq $0x0, 0x88(%r14)
jne 0x6f9ee
jmp 0x6fa21
movq %r15, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movl $0x665, %ecx # imm = 0x665
callq 0x2f180
jmp 0x6fa00
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| wait_for_flush:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r15, rsi
mov rbx, rdi
call _my_thread_var
mov r14, rax
add r15, 50h ; 'P'
mov rdi, r15
mov rsi, rax
call wqueue_add_to_queue
mov r15, r14
add r15, 8
add rbx, 0C8h
lea r12, aWorkspaceLlm4b_33; "/workspace/llm4binary/github2025/eloqsq"...
loc_6F9EE:
cmp qword ptr [r14+38h], 0
jnz short loc_6FA0C
mov rdi, r15
mov rsi, rbx
call _pthread_cond_wait
loc_6FA00:
cmp qword ptr [r14+88h], 0
jnz short loc_6F9EE
jmp short loc_6FA21
loc_6FA0C:
mov rdi, r15
mov rsi, rbx
mov rdx, r12
mov ecx, 665h
call psi_cond_wait
jmp short loc_6FA00
loc_6FA21:
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long wait_for_flush(long long a1, long long a2)
{
long long v2; // r14
long long v3; // rbx
long long result; // rax
v2 = my_thread_var(a1);
wqueue_add_to_queue(a2 + 80, v2);
v3 = a1 + 200;
do
{
if ( *(_QWORD *)(v2 + 56) )
result = psi_cond_wait(
v2 + 8,
v3,
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",
0x665u);
else
result = pthread_cond_wait(v2 + 8, v3);
}
while ( *(_QWORD *)(v2 + 136) );
return result;
}
| wait_for_flush:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R15,RSI
MOV RBX,RDI
CALL 0x001a319a
MOV R14,RAX
ADD R15,0x50
MOV RDI,R15
MOV RSI,RAX
CALL 0x001a7cdb
MOV R15,R14
ADD R15,0x8
ADD RBX,0xc8
LEA R12,[0x1db751]
LAB_0016f9ee:
CMP qword ptr [R14 + 0x38],0x0
JNZ 0x0016fa0c
MOV RDI,R15
MOV RSI,RBX
CALL 0x001293d0
LAB_0016fa00:
CMP qword ptr [R14 + 0x88],0x0
JNZ 0x0016f9ee
JMP 0x0016fa21
LAB_0016fa0c:
MOV RDI,R15
MOV RSI,RBX
MOV RDX,R12
MOV ECX,0x665
CALL 0x0012f180
JMP 0x0016fa00
LAB_0016fa21:
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
void wait_for_flush(long param_1,long param_2)
{
long lVar1;
lVar1 = _my_thread_var();
wqueue_add_to_queue(param_2 + 0x50,lVar1);
do {
if (*(long *)(lVar1 + 0x38) == 0) {
pthread_cond_wait((pthread_cond_t *)(lVar1 + 8),(pthread_mutex_t *)(param_1 + 200));
}
else {
psi_cond_wait((pthread_cond_t *)(lVar1 + 8),(pthread_mutex_t *)(param_1 + 200),
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",0x665);
}
} while (*(long *)(lVar1 + 0x88) != 0);
return;
}
| |
35,178 | detail::lineOrientationToString[abi:cxx11](line_orientation_e) | 11AgReS1SoR11[P]Graph/Common/Figures/Line.cpp | std::string lineOrientationToString(line_orientation_e orientation)
{
switch (orientation)
{
case line_orientation_e::Undirected: return "Undirected";
case line_orientation_e::Directed: return "Directed";
case line_orientation_e::DoubleDirected: return "DoubleDirected";
}
return {};
} | O0 | cpp | detail::lineOrientationToString[abi:cxx11](line_orientation_e):
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x30(%rbp)
movw %si, %ax
movq %rdi, %rcx
movq %rcx, -0x28(%rbp)
movq %rdi, -0x8(%rbp)
movw %ax, -0xa(%rbp)
movw -0xa(%rbp), %ax
movw %ax, -0x20(%rbp)
testw %ax, %ax
je 0xad4c
jmp 0xad2d
movw -0x20(%rbp), %ax
subw $0x1, %ax
je 0xad97
jmp 0xad39
movw -0x20(%rbp), %ax
subw $0x2, %ax
je 0xaddc
jmp 0xae21
leaq -0xb(%rbp), %rdi
movq %rdi, -0x38(%rbp)
callq 0x9ac0
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rdx
leaq 0x44a7(%rip), %rsi # 0xf20f
callq 0x9a80
jmp 0xad6f
leaq -0xb(%rbp), %rdi
callq 0x9670
jmp 0xae2a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0xb(%rbp), %rdi
callq 0x9670
jmp 0xae34
leaq -0x1d(%rbp), %rdi
movq %rdi, -0x40(%rbp)
callq 0x9ac0
movq -0x30(%rbp), %rdi
movq -0x40(%rbp), %rdx
leaq 0x446d(%rip), %rsi # 0xf220
callq 0x9a80
jmp 0xadba
leaq -0x1d(%rbp), %rdi
callq 0x9670
jmp 0xae2a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0x1d(%rbp), %rdi
callq 0x9670
jmp 0xae34
leaq -0x1e(%rbp), %rdi
movq %rdi, -0x48(%rbp)
callq 0x9ac0
movq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rdx
leaq 0x4422(%rip), %rsi # 0xf21a
callq 0x9a80
jmp 0xadff
leaq -0x1e(%rbp), %rdi
callq 0x9670
jmp 0xae2a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0x1e(%rbp), %rdi
callq 0x9670
jmp 0xae34
movq -0x30(%rbp), %rdi
callq 0x9850
movq -0x28(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
movq -0x18(%rbp), %rdi
callq 0x9ab0
nopl (%rax)
| _ZN6detail23lineOrientationToStringB5cxx11E18line_orientation_e:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_30], rdi
mov ax, si
mov rcx, rdi
mov [rbp+var_28], rcx
mov [rbp+var_8], rdi
mov [rbp+var_A], ax
mov ax, [rbp+var_A]
mov [rbp+var_20], ax
test ax, ax
jz short loc_AD4C
jmp short $+2
loc_AD2D:
mov ax, [rbp+var_20]
sub ax, 1
jz short loc_AD97
jmp short $+2
loc_AD39:
mov ax, [rbp+var_20]
sub ax, 2
jz loc_ADDC
jmp loc_AE21
loc_AD4C:
lea rdi, [rbp+var_B]
mov [rbp+var_38], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rbp+var_30]
mov rdx, [rbp+var_38]
lea rsi, aUndirected; "Undirected"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_AD6F:
lea rdi, [rbp+var_B]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_AE2A
mov rcx, rax
mov eax, edx
mov [rbp+var_18], rcx
mov [rbp+var_1C], eax
lea rdi, [rbp+var_B]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_AE34
loc_AD97:
lea rdi, [rbp+var_1D]
mov [rbp+var_40], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rbp+var_30]
mov rdx, [rbp+var_40]
lea rsi, aDoubledirected+6; "Directed"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_ADBA:
lea rdi, [rbp+var_1D]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_AE2A
mov rcx, rax
mov eax, edx
mov [rbp+var_18], rcx
mov [rbp+var_1C], eax
lea rdi, [rbp+var_1D]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_AE34
loc_ADDC:
lea rdi, [rbp+var_1E]
mov [rbp+var_48], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rbp+var_30]
mov rdx, [rbp+var_48]
lea rsi, aDoubledirected; "DoubleDirected"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_ADFF:
lea rdi, [rbp+var_1E]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_AE2A
mov rcx, rax
mov eax, edx
mov [rbp+var_18], rcx
mov [rbp+var_1C], eax
lea rdi, [rbp+var_1E]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_AE34
loc_AE21:
mov rdi, [rbp+var_30]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void)
loc_AE2A:
mov rax, [rbp+var_28]
add rsp, 50h
pop rbp
retn
loc_AE34:
mov rdi, [rbp+var_18]
call __Unwind_Resume
| long long detail::lineOrientationToString[abi:cxx11](long long a1, __int16 a2)
{
char v3; // [rsp+32h] [rbp-1Eh] BYREF
char v4; // [rsp+33h] [rbp-1Dh] BYREF
char v5; // [rsp+45h] [rbp-Bh] BYREF
__int16 v6; // [rsp+46h] [rbp-Ah]
long long v7; // [rsp+48h] [rbp-8h]
v7 = a1;
v6 = a2;
if ( a2 )
{
if ( a2 == 1 )
{
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>(a1, "Directed", &v4);
std::allocator<char>::~allocator(&v4);
}
else if ( a2 == 2 )
{
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>(a1, "DoubleDirected", &v3);
std::allocator<char>::~allocator(&v3);
}
else
{
std::string::basic_string(a1);
}
}
else
{
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>(a1, "Undirected", &v5);
std::allocator<char>::~allocator(&v5);
}
return a1;
}
| lineOrientationToString[abi:cxx11]:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x30],RDI
MOV AX,SI
MOV RCX,RDI
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x8],RDI
MOV word ptr [RBP + -0xa],AX
MOV AX,word ptr [RBP + -0xa]
MOV word ptr [RBP + -0x20],AX
TEST AX,AX
JZ 0x0010ad4c
JMP 0x0010ad2d
LAB_0010ad2d:
MOV AX,word ptr [RBP + -0x20]
SUB AX,0x1
JZ 0x0010ad97
JMP 0x0010ad39
LAB_0010ad39:
MOV AX,word ptr [RBP + -0x20]
SUB AX,0x2
JZ 0x0010addc
JMP 0x0010ae21
LAB_0010ad4c:
LEA RDI,[RBP + -0xb]
MOV qword ptr [RBP + -0x38],RDI
CALL 0x00109ac0
MOV RDI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x38]
LAB_0010ad61:
LEA RSI,[0x10f20f]
CALL 0x00109a80
JMP 0x0010ad6f
LAB_0010ad6f:
LEA RDI,[RBP + -0xb]
CALL 0x00109670
JMP 0x0010ae2a
LAB_0010ad97:
LEA RDI,[RBP + -0x1d]
MOV qword ptr [RBP + -0x40],RDI
CALL 0x00109ac0
MOV RDI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x40]
LAB_0010adac:
LEA RSI,[0x10f220]
CALL 0x00109a80
JMP 0x0010adba
LAB_0010adba:
LEA RDI,[RBP + -0x1d]
CALL 0x00109670
JMP 0x0010ae2a
LAB_0010addc:
LEA RDI,[RBP + -0x1e]
MOV qword ptr [RBP + -0x48],RDI
CALL 0x00109ac0
MOV RDI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x48]
LAB_0010adf1:
LEA RSI,[0x10f21a]
CALL 0x00109a80
LAB_0010adfd:
JMP 0x0010adff
LAB_0010adff:
LEA RDI,[RBP + -0x1e]
CALL 0x00109670
JMP 0x0010ae2a
LAB_0010ae21:
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x00109850
LAB_0010ae2a:
MOV RAX,qword ptr [RBP + -0x28]
ADD RSP,0x50
POP RBP
RET
|
/* detail::lineOrientationToString[abi:cxx11](line_orientation_e) */
detail * __thiscall detail::lineOrientationToString_abi_cxx11_(detail *this,short param_2)
{
allocator local_26;
allocator local_25 [18];
allocator local_13;
short local_12;
detail *local_10;
local_12 = param_2;
local_10 = this;
if (param_2 == 0) {
std::allocator<char>::allocator();
/* try { // try from 0010ad61 to 0010ad6c has its CatchHandler @ 0010ad7d */
std::__cxx11::string::string<std::allocator<char>>((string *)this,"Undirected",&local_13);
std::allocator<char>::~allocator((allocator<char> *)&local_13);
}
else if (param_2 == 1) {
std::allocator<char>::allocator();
/* try { // try from 0010adac to 0010adb7 has its CatchHandler @ 0010adc5 */
std::__cxx11::string::string<std::allocator<char>>((string *)this,"Directed",local_25);
std::allocator<char>::~allocator((allocator<char> *)local_25);
}
else if (param_2 == 2) {
std::allocator<char>::allocator();
/* try { // try from 0010adf1 to 0010adfc has its CatchHandler @ 0010ae0a */
std::__cxx11::string::string<std::allocator<char>>((string *)this,"DoubleDirected",&local_26);
std::allocator<char>::~allocator((allocator<char> *)&local_26);
}
else {
std::__cxx11::string::string((string *)this);
}
return this;
}
| |
35,179 | mysql_stmt_execute_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_stmt_execute_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_stmt_execute,
(parms->stmt),
parms->stmt->mysql,
int,
r_int)
} | O3 | c | mysql_stmt_execute_start_internal:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rdi
movq 0x38(%rdi), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rbx
callq 0x21d49
movl %eax, 0x8(%rbx)
movl $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| mysql_stmt_execute_start_internal:
push rbp
mov rbp, rsp
push rbx
push rax
mov rdi, [rdi]
mov rax, [rdi+38h]
mov rax, [rax+480h]
mov rbx, [rax+28h]
call mysql_stmt_execute
mov [rbx+8], eax
mov dword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
retn
| long long mysql_stmt_execute_start_internal(long long *a1)
{
long long v1; // rdi
_DWORD *v2; // rbx
long long result; // rax
v1 = *a1;
v2 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(v1 + 56) + 1152LL) + 40LL);
result = mysql_stmt_execute(v1);
v2[2] = result;
*v2 = 0;
return result;
}
| mysql_stmt_execute_start_internal:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RDI,qword ptr [RDI]
MOV RAX,qword ptr [RDI + 0x38]
MOV RAX,qword ptr [RAX + 0x480]
MOV RBX,qword ptr [RAX + 0x28]
CALL 0x00121d49
MOV dword ptr [RBX + 0x8],EAX
MOV dword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mysql_stmt_execute_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x38) + 0x480) + 0x28);
uVar2 = mysql_stmt_execute();
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
| |
35,180 | testing::internal::UniversalTersePrinter<char const*>::Print(char const*, std::ostream*) | seiftnesse[P]memoryallocator/build_O0/_deps/googletest-src/googletest/include/gtest/gtest-printers.h | static void Print(const char* str, ::std::ostream* os) {
if (str == nullptr) {
*os << "NULL";
} else {
UniversalPrint(std::string(str), os);
}
} | O0 | c | testing::internal::UniversalTersePrinter<char const*>::Print(char const*, std::ostream*):
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x60df9
movq -0x10(%rbp), %rdi
leaq 0x1097a(%rip), %rsi # 0x7176c
callq 0xb640
jmp 0x60e72
movq -0x8(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq -0x31(%rbp), %rdi
movq %rdi, -0x50(%rbp)
callq 0xbce0
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
leaq -0x30(%rbp), %rdi
callq 0x13a30
jmp 0x60e21
movq -0x10(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0x60e90
jmp 0x60e30
leaq -0x30(%rbp), %rdi
callq 0xbe58
leaq -0x31(%rbp), %rdi
callq 0xb730
jmp 0x60e72
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x60e67
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x30(%rbp), %rdi
callq 0xbe58
leaq -0x31(%rbp), %rdi
callq 0xb730
jmp 0x60e78
addq $0x60, %rsp
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0xbcd0
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
| _ZN7testing8internal21UniversalTersePrinterIPKcE5PrintES3_PSo:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
cmp [rbp+var_8], 0
jnz short loc_60DF9
mov rdi, [rbp+var_10]
lea rsi, aNull_0; "NULL"
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short loc_60E72
loc_60DF9:
mov rax, [rbp+var_8]
mov [rbp+var_58], rax
lea rdi, [rbp+var_31]
mov [rbp+var_50], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rsi, [rbp+var_58]
mov rdx, [rbp+var_50]
lea rdi, [rbp+var_30]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_60E21:
mov rsi, [rbp+var_10]
lea rdi, [rbp+var_30]
call _ZN7testing8internal14UniversalPrintINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRKT_PSo; testing::internal::UniversalPrint<std::string>(std::string const&,std::ostream *)
jmp short $+2
loc_60E30:
lea rdi, [rbp+var_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_31]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_60E72
mov rcx, rax
mov eax, edx
mov [rbp+var_40], rcx
mov [rbp+var_44], eax
jmp short loc_60E67
mov rcx, rax
mov eax, edx
mov [rbp+var_40], rcx
mov [rbp+var_44], eax
lea rdi, [rbp+var_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_60E67:
lea rdi, [rbp+var_31]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_60E78
loc_60E72:
add rsp, 60h
pop rbp
retn
loc_60E78:
mov rdi, [rbp+var_40]
call __Unwind_Resume
| long long testing::internal::UniversalTersePrinter<char const*>::Print(long long a1, long long a2)
{
long long v3; // [rsp+8h] [rbp-58h]
char v4; // [rsp+2Fh] [rbp-31h] BYREF
_BYTE v5[32]; // [rsp+30h] [rbp-30h] BYREF
long long v6; // [rsp+50h] [rbp-10h]
long long v7; // [rsp+58h] [rbp-8h]
v7 = a1;
v6 = a2;
if ( !a1 )
return std::operator<<<std::char_traits<char>>(v6, "NULL");
v3 = v7;
std::allocator<char>::allocator(&v4, a2);
std::string::basic_string<std::allocator<char>>((long long)v5, v3, (long long)&v4);
testing::internal::UniversalPrint<std::string>(v5, v6);
std::string::~string(v5);
return std::allocator<char>::~allocator(&v4);
}
| Print:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
CMP qword ptr [RBP + -0x8],0x0
JNZ 0x00160df9
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x17176c]
CALL 0x0010b640
JMP 0x00160e72
LAB_00160df9:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x58],RAX
LEA RDI,[RBP + -0x31]
MOV qword ptr [RBP + -0x50],RDI
CALL 0x0010bce0
MOV RSI,qword ptr [RBP + -0x58]
MOV RDX,qword ptr [RBP + -0x50]
LAB_00160e16:
LEA RDI,[RBP + -0x30]
CALL 0x00113a30
JMP 0x00160e21
LAB_00160e21:
MOV RSI,qword ptr [RBP + -0x10]
LAB_00160e25:
LEA RDI,[RBP + -0x30]
CALL 0x00160e90
LAB_00160e2e:
JMP 0x00160e30
LAB_00160e30:
LEA RDI,[RBP + -0x30]
CALL 0x0010be58
LEA RDI,[RBP + -0x31]
CALL 0x0010b730
JMP 0x00160e72
LAB_00160e72:
ADD RSP,0x60
POP RBP
RET
|
/* testing::internal::UniversalTersePrinter<char const*>::Print(char const*, std::ostream*) */
void testing::internal::UniversalTersePrinter<char_const*>::Print(char *param_1,ostream *param_2)
{
allocator local_39;
string local_38 [32];
ostream *local_18;
char *local_10;
local_18 = param_2;
local_10 = param_1;
if (param_1 == (char *)0x0) {
std::operator<<(param_2,"NULL");
}
else {
std::allocator<char>::allocator();
/* try { // try from 00160e16 to 00160e1e has its CatchHandler @ 00160e44 */
std::__cxx11::string::string<std::allocator<char>>(local_38,param_1,&local_39);
/* try { // try from 00160e25 to 00160e2d has its CatchHandler @ 00160e52 */
UniversalPrint<std::__cxx11::string>(local_38,local_18);
std::__cxx11::string::~string(local_38);
std::allocator<char>::~allocator((allocator<char> *)&local_39);
}
return;
}
| |
35,181 | char* fmt::v10::detail::format_uint<4u, char, unsigned __int128>(char*, unsigned __int128, int, bool) | AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h | FMT_CONSTEXPR auto format_uint(Char* buffer, UInt value, int num_digits,
bool upper = false) -> Char* {
buffer += num_digits;
Char* end = buffer;
do {
const char* digits = upper ? "0123456789ABCDEF" : "0123456789abcdef";
unsigned digit = static_cast<unsigned>(value & ((1 << BASE_BITS) - 1));
*--buffer = static_cast<Char>(BASE_BITS < 4 ? static_cast<char>('0' + digit)
: digits[digit]);
} while ((value >>= BASE_BITS) != 0);
return end;
} | O0 | c | char* fmt::v10::detail::format_uint<4u, char, unsigned __int128>(char*, unsigned __int128, int, bool):
movb %r8b, %al
movq %rsi, -0x18(%rsp)
movq %rdx, -0x10(%rsp)
movq -0x18(%rsp), %rdx
movq -0x10(%rsp), %rsi
movq %rdi, -0x20(%rsp)
movq %rsi, -0x30(%rsp)
movq %rdx, -0x38(%rsp)
movl %ecx, -0x3c(%rsp)
andb $0x1, %al
movb %al, -0x3d(%rsp)
movl -0x3c(%rsp), %ecx
movq -0x20(%rsp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rsp)
movq -0x20(%rsp), %rax
movq %rax, -0x48(%rsp)
testb $0x1, -0x3d(%rsp)
je 0xe89b3
leaq 0x69b6a(%rip), %rax # 0x152516
movq %rax, -0x60(%rsp)
jmp 0xe89c1
leaq 0x69b6d(%rip), %rax # 0x152527
movq %rax, -0x60(%rsp)
jmp 0xe89c1
movq -0x60(%rsp), %rax
movq %rax, -0x50(%rsp)
movl -0x38(%rsp), %eax
andl $0x7, %eax
movl %eax, -0x54(%rsp)
movl -0x54(%rsp), %eax
addl $0x30, %eax
movb %al, %cl
movq -0x20(%rsp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x20(%rsp)
movb %cl, -0x1(%rax)
movq -0x38(%rsp), %rdx
movq -0x30(%rsp), %rcx
movq %rcx, %rax
shldq $0x3d, %rdx, %rax
shrq $0x3, %rcx
movq %rcx, -0x30(%rsp)
movq %rax, -0x38(%rsp)
orq %rcx, %rax
jne 0xe899e
jmp 0xe8a1a
movq -0x48(%rsp), %rax
retq
| _ZN3fmt3v106detail11format_uintILj3EcoEEPT0_S4_T1_ib:
mov al, r8b
mov [rsp+var_18], rsi
mov [rsp+var_10], rdx
mov rdx, [rsp+var_18]
mov rsi, [rsp+var_10]
mov [rsp+var_20], rdi
mov [rsp+var_30], rsi
mov [rsp+var_38], rdx
mov [rsp+var_3C], ecx
and al, 1
mov [rsp+var_3D], al
mov ecx, [rsp+var_3C]
mov rax, [rsp+var_20]
movsxd rcx, ecx
add rax, rcx
mov [rsp+var_20], rax
mov rax, [rsp+var_20]
mov [rsp+var_48], rax
loc_E899E:
test [rsp+var_3D], 1
jz short loc_E89B3
lea rax, a0123456789abcd; "0123456789ABCDEF"
mov [rsp+var_60], rax
jmp short loc_E89C1
loc_E89B3:
lea rax, a0123456789abcd_0; "0123456789abcdef"
mov [rsp+var_60], rax
jmp short $+2
loc_E89C1:
mov rax, [rsp+var_60]
mov [rsp+var_50], rax
mov eax, dword ptr [rsp+var_38]
and eax, 7
mov [rsp+var_54], eax
mov eax, [rsp+var_54]
add eax, 30h ; '0'
mov cl, al
mov rax, [rsp+var_20]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rsp+var_20], rdx
mov [rax-1], cl
mov rdx, [rsp+var_38]
mov rcx, [rsp+var_30]
mov rax, rcx
shld rax, rdx, 3Dh
shr rcx, 3
mov [rsp+var_30], rcx
mov [rsp+var_38], rax
or rax, rcx
jnz short loc_E899E
jmp short $+2
loc_E8A1A:
mov rax, [rsp+var_48]
retn
| long long fmt::v10::detail::format_uint<3u,char,unsigned __int128>(long long a1, long long a2, long long a3, int a4)
{
long long v4; // rax
unsigned __int128 v6; // [rsp+28h] [rbp-38h]
long long v7; // [rsp+40h] [rbp-20h]
*((_QWORD *)&v6 + 1) = a3;
*(_QWORD *)&v6 = a2;
v7 = a4 + a1;
do
{
v4 = v7--;
*(_BYTE *)(v4 - 1) = (v6 & 7) + 48;
v6 >>= 3;
}
while ( v6 != 0 );
return a4 + a1;
}
| format_uint<3u,char,unsigned__int128>:
MOV AL,R8B
MOV qword ptr [RSP + -0x18],RSI
MOV qword ptr [RSP + -0x10],RDX
MOV RDX,qword ptr [RSP + -0x18]
MOV RSI,qword ptr [RSP + -0x10]
MOV qword ptr [RSP + -0x20],RDI
MOV qword ptr [RSP + -0x30],RSI
MOV qword ptr [RSP + -0x38],RDX
MOV dword ptr [RSP + -0x3c],ECX
AND AL,0x1
MOV byte ptr [RSP + -0x3d],AL
MOV ECX,dword ptr [RSP + -0x3c]
MOV RAX,qword ptr [RSP + -0x20]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RSP + -0x20],RAX
MOV RAX,qword ptr [RSP + -0x20]
MOV qword ptr [RSP + -0x48],RAX
LAB_001e899e:
TEST byte ptr [RSP + -0x3d],0x1
JZ 0x001e89b3
LEA RAX,[0x252516]
MOV qword ptr [RSP + -0x60],RAX
JMP 0x001e89c1
LAB_001e89b3:
LEA RAX,[0x252527]
MOV qword ptr [RSP + -0x60],RAX
JMP 0x001e89c1
LAB_001e89c1:
MOV RAX,qword ptr [RSP + -0x60]
MOV qword ptr [RSP + -0x50],RAX
MOV EAX,dword ptr [RSP + -0x38]
AND EAX,0x7
MOV dword ptr [RSP + -0x54],EAX
MOV EAX,dword ptr [RSP + -0x54]
ADD EAX,0x30
MOV CL,AL
MOV RAX,qword ptr [RSP + -0x20]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RSP + -0x20],RDX
MOV byte ptr [RAX + -0x1],CL
MOV RDX,qword ptr [RSP + -0x38]
MOV RCX,qword ptr [RSP + -0x30]
MOV RAX,RCX
SHLD RAX,RDX,0x3d
SHR RCX,0x3
MOV qword ptr [RSP + -0x30],RCX
MOV qword ptr [RSP + -0x38],RAX
OR RAX,RCX
JNZ 0x001e899e
JMP 0x001e8a1a
LAB_001e8a1a:
MOV RAX,qword ptr [RSP + -0x48]
RET
|
/* char* fmt::v10::detail::format_uint<3u, char, unsigned __int128>(char*, unsigned __int128, int,
bool) */
char * fmt::v10::detail::format_uint<3u,char,unsigned__int128>
(char *param_1,uint param_2,int param_3,bool param_4)
{
int7 in_register_00000009;
int4 in_register_00000014;
int4 in_register_00000034;
ulong local_38;
ulong local_30;
char *local_20;
local_38 = CONCAT44(in_register_00000034,param_2);
local_30 = CONCAT44(in_register_00000014,param_3);
local_20 = param_1 + (int)CONCAT71(in_register_00000009,param_4);
do {
local_20[-1] = ((byte)local_38 & 7) + 0x30;
local_38 = local_30 << 0x3d | local_38 >> 3;
local_30 = local_30 >> 3;
local_20 = local_20 + -1;
} while (local_38 != 0 || local_30 != 0);
return param_1 + (int)CONCAT71(in_register_00000009,param_4);
}
| |
35,182 | ImageAlphaMask | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rtextures.c | void ImageAlphaMask(Image *image, Image alphaMask)
{
if ((image->width != alphaMask.width) || (image->height != alphaMask.height))
{
TRACELOG(LOG_WARNING, "IMAGE: Alpha mask must be same size as image");
}
else if (image->format >= PIXELFORMAT_COMPRESSED_DXT1_RGB)
{
TRACELOG(LOG_WARNING, "IMAGE: Alpha mask can not be applied to compressed data formats");
}
else
{
// Force mask to be Grayscale
Image mask = ImageCopy(alphaMask);
if (mask.format != PIXELFORMAT_UNCOMPRESSED_GRAYSCALE) ImageFormat(&mask, PIXELFORMAT_UNCOMPRESSED_GRAYSCALE);
// In case image is only grayscale, we just add alpha channel
if (image->format == PIXELFORMAT_UNCOMPRESSED_GRAYSCALE)
{
unsigned char *data = (unsigned char *)RL_MALLOC(image->width*image->height*2);
// Apply alpha mask to alpha channel
for (int i = 0, k = 0; (i < mask.width*mask.height) || (i < image->width*image->height); i++, k += 2)
{
data[k] = ((unsigned char *)image->data)[i];
data[k + 1] = ((unsigned char *)mask.data)[i];
}
RL_FREE(image->data);
image->data = data;
image->format = PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA;
}
else
{
// Convert image to RGBA
if (image->format != PIXELFORMAT_UNCOMPRESSED_R8G8B8A8) ImageFormat(image, PIXELFORMAT_UNCOMPRESSED_R8G8B8A8);
// Apply alpha mask to alpha channel
for (int i = 0, k = 3; (i < mask.width*mask.height) || (i < image->width*image->height); i++, k += 4)
{
((unsigned char *)image->data)[k] = ((unsigned char *)mask.data)[i];
}
}
UnloadImage(mask);
}
} | O2 | c | ImageAlphaMask:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movl 0x8(%rdi), %eax
cmpl 0x58(%rsp), %eax
jne 0x82838
movq %rdi, %rbx
leaq 0x50(%rsp), %rax
movl 0xc(%rdi), %ecx
cmpl 0xc(%rax), %ecx
jne 0x82838
cmpl $0xe, 0x14(%rbx)
jl 0x82852
leaq 0x50b11(%rip), %rsi # 0xd3347
jmp 0x8283f
leaq 0x50adb(%rip), %rsi # 0xd331a
pushq $0x4
popq %rdi
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xa128b
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rsp)
movups (%rax), %xmm0
movups %xmm0, (%rsp)
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x7f921
cmpl $0x1, 0x14(%r14)
je 0x82883
leaq 0x18(%rsp), %rdi
pushq $0x1
popq %rsi
callq 0x7fcdb
movl 0x14(%rbx), %eax
cmpl $0x7, %eax
je 0x82916
cmpl $0x1, %eax
jne 0x8290b
movslq 0x8(%rbx), %rax
movslq 0xc(%rbx), %r15
imulq %rax, %r15
movq %r15, %rdi
addq %r15, %rdi
callq 0x96e0
movq %rax, %r14
movl 0x24(%rsp), %eax
imull 0x20(%rsp), %eax
movq 0x18(%rsp), %rcx
cmpl %r15d, %eax
cmovlel %r15d, %eax
xorl %edx, %edx
testl %eax, %eax
cmovlel %edx, %eax
movq (%rbx), %rdi
cmpq %rdx, %rax
je 0x828e8
movb (%rdi,%rdx), %sil
movb %sil, (%r14,%rdx,2)
movb (%rcx,%rdx), %sil
movb %sil, 0x1(%r14,%rdx,2)
incq %rdx
jmp 0x828cd
callq 0x9640
movq %r14, (%rbx)
movl $0x2, 0x14(%rbx)
movq 0x18(%rsp), %rdi
callq 0x9640
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
pushq $0x7
popq %rsi
movq %rbx, %rdi
callq 0x7fcdb
xorl %eax, %eax
movslq 0x20(%rsp), %rcx
movslq 0x24(%rsp), %rdx
imulq %rcx, %rdx
cmpq %rdx, %rax
jl 0x8293c
movslq 0x8(%rbx), %rcx
movslq 0xc(%rbx), %rdx
imulq %rcx, %rdx
cmpq %rdx, %rax
jge 0x828f7
movq 0x18(%rsp), %rcx
movb (%rcx,%rax), %cl
movq (%rbx), %rdx
movb %cl, 0x3(%rdx,%rax,4)
incq %rax
jmp 0x82918
| ImageAlphaMask:
push r15
push r14
push rbx
sub rsp, 30h
mov eax, [rdi+8]
cmp eax, [rsp+48h+arg_8]
jnz short loc_82838
mov rbx, rdi
lea rax, [rsp+48h+arg_0]
mov ecx, [rdi+0Ch]
cmp ecx, [rax+0Ch]
jnz short loc_82838
cmp dword ptr [rbx+14h], 0Eh
jl short loc_82852
lea rsi, aImageAlphaMask; "IMAGE: Alpha mask can not be applied to"...
jmp short loc_8283F
loc_82838:
lea rsi, aImageAlphaMask_0; "IMAGE: Alpha mask must be same size as "...
loc_8283F:
push 4
pop rdi
xor eax, eax
add rsp, 30h
pop rbx
pop r14
pop r15
jmp TraceLog
loc_82852:
mov rcx, [rax+10h]
mov [rsp+48h+var_38], rcx
movups xmm0, xmmword ptr [rax]
movups [rsp+48h+var_48], xmm0
lea r14, [rsp+48h+var_30]
mov rdi, r14
call ImageCopy
cmp dword ptr [r14+14h], 1
jz short loc_82883
lea rdi, [rsp+48h+var_30]
push 1
pop rsi
call ImageFormat
loc_82883:
mov eax, [rbx+14h]
cmp eax, 7
jz loc_82916
cmp eax, 1
jnz short loc_8290B
movsxd rax, dword ptr [rbx+8]
movsxd r15, dword ptr [rbx+0Ch]
imul r15, rax
mov rdi, r15
add rdi, r15
call _malloc
mov r14, rax
mov eax, [rsp+48h+var_24]
imul eax, [rsp+48h+var_28]
mov rcx, [rsp+48h+var_30]
cmp eax, r15d
cmovle eax, r15d
xor edx, edx
test eax, eax
cmovle eax, edx
mov rdi, [rbx]
loc_828CD:
cmp rax, rdx
jz short loc_828E8
mov sil, [rdi+rdx]
mov [r14+rdx*2], sil
mov sil, [rcx+rdx]
mov [r14+rdx*2+1], sil
inc rdx
jmp short loc_828CD
loc_828E8:
call _free
mov [rbx], r14
mov dword ptr [rbx+14h], 2
loc_828F7:
mov rdi, [rsp+48h+var_30]
call _free
add rsp, 30h
pop rbx
pop r14
pop r15
retn
loc_8290B:
push 7
pop rsi
mov rdi, rbx
call ImageFormat
loc_82916:
xor eax, eax
loc_82918:
movsxd rcx, [rsp+48h+var_28]
movsxd rdx, [rsp+48h+var_24]
imul rdx, rcx
cmp rax, rdx
jl short loc_8293C
movsxd rcx, dword ptr [rbx+8]
movsxd rdx, dword ptr [rbx+0Ch]
imul rdx, rcx
cmp rax, rdx
jge short loc_828F7
loc_8293C:
mov rcx, [rsp+48h+var_30]
mov cl, [rcx+rax]
mov rdx, [rbx]
mov [rdx+rax*4+3], cl
inc rax
jmp short loc_82918
| double ImageAlphaMask(
long long a1,
long long a2,
long long a3,
int a4,
long long a5,
long long a6,
double a7,
__m128 a8,
long long a9,
long long a10,
long long a11)
{
const char *v12; // rsi
long long v13; // rdx
long long v14; // rcx
long long v15; // r8
int v16; // r9d
int v17; // eax
long long v18; // r15
long long v19; // r14
long long v20; // rax
long long v21; // rcx
long long v22; // rdx
long long v23; // rdi
double result; // xmm0_8
long long i; // rax
long long v26; // [rsp+18h] [rbp-30h] BYREF
int v27; // [rsp+20h] [rbp-28h]
int v28; // [rsp+24h] [rbp-24h]
int v29; // [rsp+2Ch] [rbp-1Ch]
if ( *(_DWORD *)(a1 + 8) != (_DWORD)a10 || (a4 = *(_DWORD *)(a1 + 12), a4 != HIDWORD(a10)) )
{
v12 = "IMAGE: Alpha mask must be same size as image";
goto LABEL_6;
}
if ( *(int *)(a1 + 20) >= 14 )
{
v12 = "IMAGE: Alpha mask can not be applied to compressed data formats";
LABEL_6:
TraceLog(4, (_DWORD)v12, a3, a4, a5, a6);
return result;
}
ImageCopy((long long)&v26, a2, a3, a11, a5, a6, a9, a10, a11);
if ( v29 != 1 )
ImageFormat(&v26, 1, *(float *)&a9, a8, v13, v14, v15, v16);
v17 = *(_DWORD *)(a1 + 20);
if ( v17 != 7 )
{
if ( v17 == 1 )
{
v18 = *(int *)(a1 + 8) * (long long)*(int *)(a1 + 12);
v19 = malloc(2 * v18);
v20 = (unsigned int)(v27 * v28);
v21 = v26;
if ( (int)v20 <= (int)v18 )
v20 = (unsigned int)v18;
v22 = 0LL;
if ( (int)v20 <= 0 )
v20 = 0LL;
v23 = *(_QWORD *)a1;
while ( v20 != v22 )
{
*(_BYTE *)(v19 + 2 * v22) = *(_BYTE *)(v23 + v22);
*(_BYTE *)(v19 + 2 * v22 + 1) = *(_BYTE *)(v21 + v22);
++v22;
}
free(v23);
*(_QWORD *)a1 = v19;
*(_DWORD *)(a1 + 20) = 2;
return free(v26);
}
ImageFormat((long long *)a1, 7, *(float *)&a9, a8, v13, v14, v15, v16);
}
for ( i = 0LL; i < v27 * (long long)v28 || i < *(int *)(a1 + 8) * (long long)*(int *)(a1 + 12); ++i )
*(_BYTE *)(*(_QWORD *)a1 + 4 * i + 3) = *(_BYTE *)(v26 + i);
return free(v26);
}
| ImageAlphaMask:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV EAX,dword ptr [RDI + 0x8]
CMP EAX,dword ptr [RSP + 0x58]
JNZ 0x00182838
MOV RBX,RDI
LEA RAX,[RSP + 0x50]
MOV ECX,dword ptr [RDI + 0xc]
CMP ECX,dword ptr [RAX + 0xc]
JNZ 0x00182838
CMP dword ptr [RBX + 0x14],0xe
JL 0x00182852
LEA RSI,[0x1d3347]
JMP 0x0018283f
LAB_00182838:
LEA RSI,[0x1d331a]
LAB_0018283f:
PUSH 0x4
POP RDI
XOR EAX,EAX
ADD RSP,0x30
POP RBX
POP R14
POP R15
JMP 0x001a128b
LAB_00182852:
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RCX
MOVUPS XMM0,xmmword ptr [RAX]
MOVUPS xmmword ptr [RSP],XMM0
LEA R14,[RSP + 0x18]
MOV RDI,R14
CALL 0x0017f921
CMP dword ptr [R14 + 0x14],0x1
JZ 0x00182883
LEA RDI,[RSP + 0x18]
PUSH 0x1
POP RSI
CALL 0x0017fcdb
LAB_00182883:
MOV EAX,dword ptr [RBX + 0x14]
CMP EAX,0x7
JZ 0x00182916
CMP EAX,0x1
JNZ 0x0018290b
MOVSXD RAX,dword ptr [RBX + 0x8]
MOVSXD R15,dword ptr [RBX + 0xc]
IMUL R15,RAX
MOV RDI,R15
ADD RDI,R15
CALL 0x001096e0
MOV R14,RAX
MOV EAX,dword ptr [RSP + 0x24]
IMUL EAX,dword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x18]
CMP EAX,R15D
CMOVLE EAX,R15D
XOR EDX,EDX
TEST EAX,EAX
CMOVLE EAX,EDX
MOV RDI,qword ptr [RBX]
LAB_001828cd:
CMP RAX,RDX
JZ 0x001828e8
MOV SIL,byte ptr [RDI + RDX*0x1]
MOV byte ptr [R14 + RDX*0x2],SIL
MOV SIL,byte ptr [RCX + RDX*0x1]
MOV byte ptr [R14 + RDX*0x2 + 0x1],SIL
INC RDX
JMP 0x001828cd
LAB_001828e8:
CALL 0x00109640
MOV qword ptr [RBX],R14
MOV dword ptr [RBX + 0x14],0x2
LAB_001828f7:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00109640
ADD RSP,0x30
POP RBX
POP R14
POP R15
RET
LAB_0018290b:
PUSH 0x7
POP RSI
MOV RDI,RBX
CALL 0x0017fcdb
LAB_00182916:
XOR EAX,EAX
LAB_00182918:
MOVSXD RCX,dword ptr [RSP + 0x20]
MOVSXD RDX,dword ptr [RSP + 0x24]
IMUL RDX,RCX
CMP RAX,RDX
JL 0x0018293c
MOVSXD RCX,dword ptr [RBX + 0x8]
MOVSXD RDX,dword ptr [RBX + 0xc]
IMUL RDX,RCX
CMP RAX,RDX
JGE 0x001828f7
LAB_0018293c:
MOV RCX,qword ptr [RSP + 0x18]
MOV CL,byte ptr [RCX + RAX*0x1]
MOV RDX,qword ptr [RBX]
MOV byte ptr [RDX + RAX*0x4 + 0x3],CL
INC RAX
JMP 0x00182918
|
void ImageAlphaMask(long *param_1)
{
void *__ptr;
uint uVar1;
void *pvVar2;
ulong uVar3;
ulong uVar4;
char *pcVar5;
uint uVar6;
long lVar7;
int iStack0000000000000010;
int iStack0000000000000014;
void *local_30;
int local_28;
int local_24;
int local_1c;
if ((int)param_1[1] == iStack0000000000000010) {
if (*(int *)((long)param_1 + 0xc) == iStack0000000000000014) {
if (*(int *)((long)param_1 + 0x14) < 0xe) {
ImageCopy(&local_30);
if (local_1c != 1) {
ImageFormat(&local_30,1);
}
if (*(int *)((long)param_1 + 0x14) != 7) {
if (*(int *)((long)param_1 + 0x14) == 1) {
lVar7 = (long)*(int *)((long)param_1 + 0xc) * (long)(int)param_1[1];
pvVar2 = malloc(lVar7 * 2);
uVar6 = (uint)lVar7;
uVar1 = local_24 * local_28;
if (local_24 * local_28 <= (int)uVar6) {
uVar1 = uVar6;
}
uVar4 = 0;
uVar3 = (ulong)uVar1;
if ((int)uVar1 < 1) {
uVar3 = uVar4;
}
__ptr = (void *)*param_1;
for (; uVar3 != uVar4; uVar4 = uVar4 + 1) {
*(int1 *)((long)pvVar2 + uVar4 * 2) = *(int1 *)((long)__ptr + uVar4);
*(int1 *)((long)pvVar2 + uVar4 * 2 + 1) =
*(int1 *)((long)local_30 + uVar4);
}
free(__ptr);
*param_1 = (long)pvVar2;
*(int4 *)((long)param_1 + 0x14) = 2;
goto LAB_001828f7;
}
ImageFormat(param_1,7);
}
for (lVar7 = 0;
(lVar7 < (long)local_24 * (long)local_28 ||
(lVar7 < (long)*(int *)((long)param_1 + 0xc) * (long)(int)param_1[1]));
lVar7 = lVar7 + 1) {
*(int1 *)(*param_1 + 3 + lVar7 * 4) = *(int1 *)((long)local_30 + lVar7);
}
LAB_001828f7:
free(local_30);
return;
}
pcVar5 = "IMAGE: Alpha mask can not be applied to compressed data formats";
goto LAB_0018283f;
}
}
pcVar5 = "IMAGE: Alpha mask must be same size as image";
LAB_0018283f:
TraceLog(4,pcVar5);
return;
}
| |
35,183 | testing::TestSuite::~TestSuite() | giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc | TestSuite::~TestSuite() {
// Deletes every Test in the collection.
ForEach(test_info_list_, internal::Delete<TestInfo>);
} | O1 | cpp | testing::TestSuite::~TestSuite():
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x3668e(%rip), %rax # 0x58048
movq %rax, (%rdi)
movq 0x30(%rdi), %r15
movq 0x38(%rdi), %r12
cmpq %r12, %r15
je 0x219ed
movq (%r15), %r14
testq %r14, %r14
je 0x219e7
movq %r14, %rdi
callq 0x20fcc
movl $0x110, %esi # imm = 0x110
movq %r14, %rdi
callq 0x84e0
addq $0x8, %r15
jmp 0x219c5
leaq 0x88(%rbx), %r14
leaq 0xd8(%rbx), %rdi
callq 0x33ed2
leaq 0xc0(%rbx), %rdi
callq 0x33f02
movq %r14, %rdi
callq 0x33f32
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0x21a29
movq 0x58(%rbx), %rsi
subq %rdi, %rsi
callq 0x84e0
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x21a3e
movq 0x40(%rbx), %rsi
subq %rdi, %rsi
callq 0x84e0
movq 0x28(%rbx), %rsi
testq %rsi, %rsi
je 0x21a50
leaq 0x28(%rbx), %rdi
callq 0x3b7c6
movq $0x0, 0x28(%rbx)
movq 0x8(%rbx), %rdi
addq $0x18, %rbx
cmpq %rbx, %rdi
je 0x21a7b
movq (%rbx), %rsi
incq %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x84e0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
| _ZN7testing9TestSuiteD2Ev:
push r15; Alternative name is 'testing::TestSuite::~TestSuite()'
push r14
push r12
push rbx
push rax
mov rbx, rdi
lea rax, off_58048
mov [rdi], rax
mov r15, [rdi+30h]
mov r12, [rdi+38h]
loc_219C5:
cmp r15, r12
jz short loc_219ED
mov r14, [r15]
test r14, r14
jz short loc_219E7
mov rdi, r14; this
call _ZN7testing8TestInfoD2Ev; testing::TestInfo::~TestInfo()
mov esi, 110h; unsigned __int64
mov rdi, r14; void *
call __ZdlPvm; operator delete(void *,ulong)
loc_219E7:
add r15, 8
jmp short loc_219C5
loc_219ED:
lea r14, [rbx+88h]
lea rdi, [rbx+0D8h]
call _ZNSt6vectorIN7testing12TestPropertyESaIS1_EED2Ev; std::vector<testing::TestProperty>::~vector()
lea rdi, [rbx+0C0h]
call _ZNSt6vectorIN7testing14TestPartResultESaIS1_EED2Ev; std::vector<testing::TestPartResult>::~vector()
mov rdi, r14; this
call _ZN7testing8internal5MutexD2Ev; testing::internal::Mutex::~Mutex()
mov rdi, [rbx+48h]; void *
test rdi, rdi
jz short loc_21A29
mov rsi, [rbx+58h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_21A29:
mov rdi, [rbx+30h]; void *
test rdi, rdi
jz short loc_21A3E
mov rsi, [rbx+40h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_21A3E:
mov rsi, [rbx+28h]
test rsi, rsi
jz short loc_21A50
lea rdi, [rbx+28h]
call _ZNKSt14default_deleteIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS6_; std::default_delete<std::string const>::operator()(std::string const*)
loc_21A50:
mov qword ptr [rbx+28h], 0
mov rdi, [rbx+8]; void *
add rbx, 18h
cmp rdi, rbx
jz short loc_21A7B
mov rsi, [rbx]
inc rsi; unsigned __int64
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
jmp __ZdlPvm; operator delete(void *,ulong)
loc_21A7B:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| void testing::TestSuite::~TestSuite(testing::TestSuite *this)
{
testing::TestInfo **v2; // r15
testing::TestInfo **v3; // r12
testing::TestInfo *v4; // r14
void *v5; // rdi
void *v6; // rdi
_QWORD *v7; // rdi
_QWORD *v8; // rbx
*(_QWORD *)this = off_58048;
v2 = (testing::TestInfo **)*((_QWORD *)this + 6);
v3 = (testing::TestInfo **)*((_QWORD *)this + 7);
while ( v2 != v3 )
{
v4 = *v2;
if ( *v2 )
{
testing::TestInfo::~TestInfo(*v2);
operator delete(v4, 0x110uLL);
}
++v2;
}
std::vector<testing::TestProperty>::~vector((char *)this + 216);
std::vector<testing::TestPartResult>::~vector((char *)this + 192);
testing::internal::Mutex::~Mutex((testing::TestSuite *)((char *)this + 136));
v5 = (void *)*((_QWORD *)this + 9);
if ( v5 )
operator delete(v5, *((_QWORD *)this + 11) - (_QWORD)v5);
v6 = (void *)*((_QWORD *)this + 6);
if ( v6 )
operator delete(v6, *((_QWORD *)this + 8) - (_QWORD)v6);
if ( *((_QWORD *)this + 5) )
std::default_delete<std::string const>::operator()((char *)this + 40);
*((_QWORD *)this + 5) = 0LL;
v7 = (_QWORD *)*((_QWORD *)this + 1);
v8 = (_QWORD *)((char *)this + 24);
if ( v7 != v8 )
operator delete(v7, *v8 + 1LL);
}
| ~TestSuite:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA RAX,[0x158048]
MOV qword ptr [RDI],RAX
MOV R15,qword ptr [RDI + 0x30]
MOV R12,qword ptr [RDI + 0x38]
LAB_001219c5:
CMP R15,R12
JZ 0x001219ed
MOV R14,qword ptr [R15]
TEST R14,R14
JZ 0x001219e7
MOV RDI,R14
CALL 0x00120fcc
MOV ESI,0x110
MOV RDI,R14
CALL 0x001084e0
LAB_001219e7:
ADD R15,0x8
JMP 0x001219c5
LAB_001219ed:
LEA R14,[RBX + 0x88]
LEA RDI,[RBX + 0xd8]
CALL 0x00133ed2
LEA RDI,[RBX + 0xc0]
CALL 0x00133f02
MOV RDI,R14
CALL 0x00133f32
MOV RDI,qword ptr [RBX + 0x48]
TEST RDI,RDI
JZ 0x00121a29
MOV RSI,qword ptr [RBX + 0x58]
SUB RSI,RDI
CALL 0x001084e0
LAB_00121a29:
MOV RDI,qword ptr [RBX + 0x30]
TEST RDI,RDI
JZ 0x00121a3e
MOV RSI,qword ptr [RBX + 0x40]
SUB RSI,RDI
CALL 0x001084e0
LAB_00121a3e:
MOV RSI,qword ptr [RBX + 0x28]
TEST RSI,RSI
JZ 0x00121a50
LEA RDI,[RBX + 0x28]
CALL 0x0013b7c6
LAB_00121a50:
MOV qword ptr [RBX + 0x28],0x0
MOV RDI,qword ptr [RBX + 0x8]
ADD RBX,0x18
CMP RDI,RBX
JZ 0x00121a7b
MOV RSI,qword ptr [RBX]
INC RSI
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
JMP 0x001084e0
LAB_00121a7b:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* testing::TestSuite::~TestSuite() */
void __thiscall testing::TestSuite::~TestSuite(TestSuite *this)
{
int8 *puVar1;
TestInfo *this_00;
void *pvVar2;
int8 *puVar3;
*(int ***)this = &PTR__TestSuite_00158048;
puVar1 = *(int8 **)(this + 0x38);
for (puVar3 = *(int8 **)(this + 0x30); puVar3 != puVar1; puVar3 = puVar3 + 1) {
this_00 = (TestInfo *)*puVar3;
if (this_00 != (TestInfo *)0x0) {
TestInfo::~TestInfo(this_00);
operator_delete(this_00,0x110);
}
}
std::vector<testing::TestProperty,std::allocator<testing::TestProperty>>::~vector
((vector<testing::TestProperty,std::allocator<testing::TestProperty>> *)(this + 0xd8));
std::vector<testing::TestPartResult,std::allocator<testing::TestPartResult>>::~vector
((vector<testing::TestPartResult,std::allocator<testing::TestPartResult>> *)
(this + 0xc0));
internal::Mutex::~Mutex((Mutex *)(this + 0x88));
pvVar2 = *(void **)(this + 0x48);
if (pvVar2 != (void *)0x0) {
operator_delete(pvVar2,*(long *)(this + 0x58) - (long)pvVar2);
}
pvVar2 = *(void **)(this + 0x30);
if (pvVar2 != (void *)0x0) {
operator_delete(pvVar2,*(long *)(this + 0x40) - (long)pvVar2);
}
if (*(string **)(this + 0x28) != (string *)0x0) {
std::default_delete<std::__cxx11::string_const>::operator()
((default_delete<std::__cxx11::string_const> *)(this + 0x28),*(string **)(this + 0x28)
);
}
*(int8 *)(this + 0x28) = 0;
if (*(TestSuite **)(this + 8) != this + 0x18) {
operator_delete(*(TestSuite **)(this + 8),*(long *)(this + 0x18) + 1);
return;
}
return;
}
| |
35,184 | js_object_defineProperties | bluesky950520[P]quickjs/quickjs.c | static JSValue js_object_defineProperties(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
// defineProperties(obj, properties)
JSValue obj = argv[0];
if (JS_ObjectDefineProperties(ctx, obj, argv[1]))
return JS_EXCEPTION;
else
return js_dup(obj);
} | O1 | c | js_object_defineProperties:
pushq %r14
pushq %rbx
pushq %rax
movq (%r8), %r14
movq 0x8(%r8), %rbx
movq 0x10(%r8), %rcx
movq 0x18(%r8), %r8
movq %r14, %rsi
movq %rbx, %rdx
callq 0x704dd
testl %eax, %eax
je 0x6f395
movl $0x6, %ebx
xorl %r14d, %r14d
jmp 0x6f3a4
movq %r14, (%rsp)
cmpl $-0x9, %ebx
jb 0x6f3a4
movq (%rsp), %rax
incl (%rax)
movq %r14, %rax
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| js_object_defineProperties:
push r14
push rbx
push rax
mov r14, [r8]
mov rbx, [r8+8]
mov rcx, [r8+10h]
mov r8, [r8+18h]
mov rsi, r14
mov rdx, rbx
call JS_ObjectDefineProperties
test eax, eax
jz short loc_6F395
mov ebx, 6
xor r14d, r14d
jmp short loc_6F3A4
loc_6F395:
mov [rsp+18h+var_18], r14
cmp ebx, 0FFFFFFF7h
jb short loc_6F3A4
mov rax, [rsp+18h+var_18]
inc dword ptr [rax]
loc_6F3A4:
mov rax, r14
mov rdx, rbx
add rsp, 8
pop rbx
pop r14
retn
| _DWORD * js_object_defineProperties(long long a1, long long a2, long long a3, long long a4, _QWORD *a5)
{
_DWORD *v5; // r14
long long v6; // rbx
v5 = (_DWORD *)*a5;
v6 = a5[1];
if ( (unsigned int)JS_ObjectDefineProperties(a1, *a5, v6, a5[2]) )
return 0LL;
if ( (unsigned int)v6 >= 0xFFFFFFF7 )
++*v5;
return v5;
}
| js_object_defineProperties:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,qword ptr [R8]
MOV RBX,qword ptr [R8 + 0x8]
MOV RCX,qword ptr [R8 + 0x10]
MOV R8,qword ptr [R8 + 0x18]
MOV RSI,R14
MOV RDX,RBX
CALL 0x001704dd
TEST EAX,EAX
JZ 0x0016f395
MOV EBX,0x6
XOR R14D,R14D
JMP 0x0016f3a4
LAB_0016f395:
MOV qword ptr [RSP],R14
CMP EBX,-0x9
JC 0x0016f3a4
MOV RAX,qword ptr [RSP]
INC dword ptr [RAX]
LAB_0016f3a4:
MOV RAX,R14
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R14
RET
|
int1 [16] js_object_defineProperties(int8 param_1)
{
int iVar1;
int8 uVar2;
int8 *in_R8;
int *piVar3;
int1 auVar4 [16];
piVar3 = (int *)*in_R8;
uVar2 = in_R8[1];
iVar1 = JS_ObjectDefineProperties(param_1,piVar3,uVar2,in_R8[2],in_R8[3]);
if (iVar1 == 0) {
if (0xfffffff6 < (uint)uVar2) {
*piVar3 = *piVar3 + 1;
}
}
else {
uVar2 = 6;
piVar3 = (int *)0x0;
}
auVar4._8_8_ = uVar2;
auVar4._0_8_ = piVar3;
return auVar4;
}
| |
35,185 | js_object_defineProperties | bluesky950520[P]quickjs/quickjs.c | static JSValue js_object_defineProperties(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
// defineProperties(obj, properties)
JSValue obj = argv[0];
if (JS_ObjectDefineProperties(ctx, obj, argv[1]))
return JS_EXCEPTION;
else
return js_dup(obj);
} | O3 | c | js_object_defineProperties:
pushq %r14
pushq %rbx
pushq %rax
movq (%r8), %r14
movq 0x8(%r8), %rbx
movq 0x10(%r8), %rcx
movq 0x18(%r8), %r8
movq %r14, %rsi
movq %rbx, %rdx
callq 0x729d8
testl %eax, %eax
je 0x7161c
movl $0x6, %ebx
xorl %r14d, %r14d
jmp 0x71624
cmpl $-0x9, %ebx
jb 0x71624
incl (%r14)
movq %r14, %rax
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| js_object_defineProperties:
push r14
push rbx
push rax
mov r14, [r8]
mov rbx, [r8+8]
mov rcx, [r8+10h]
mov r8, [r8+18h]
mov rsi, r14
mov rdx, rbx
call JS_ObjectDefineProperties
test eax, eax
jz short loc_7161C
mov ebx, 6
xor r14d, r14d
jmp short loc_71624
loc_7161C:
cmp ebx, 0FFFFFFF7h
jb short loc_71624
inc dword ptr [r14]
loc_71624:
mov rax, r14
mov rdx, rbx
add rsp, 8
pop rbx
pop r14
retn
| _DWORD * js_object_defineProperties(long long a1, long long a2, long long a3, long long a4, _QWORD *a5)
{
_DWORD *v5; // r14
long long v6; // rbx
v5 = (_DWORD *)*a5;
v6 = a5[1];
if ( (unsigned int)JS_ObjectDefineProperties(a1, *a5, v6, a5[2]) )
return 0LL;
if ( (unsigned int)v6 >= 0xFFFFFFF7 )
++*v5;
return v5;
}
| js_object_defineProperties:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,qword ptr [R8]
MOV RBX,qword ptr [R8 + 0x8]
MOV RCX,qword ptr [R8 + 0x10]
MOV R8,qword ptr [R8 + 0x18]
MOV RSI,R14
MOV RDX,RBX
CALL 0x001729d8
TEST EAX,EAX
JZ 0x0017161c
MOV EBX,0x6
XOR R14D,R14D
JMP 0x00171624
LAB_0017161c:
CMP EBX,-0x9
JC 0x00171624
INC dword ptr [R14]
LAB_00171624:
MOV RAX,R14
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R14
RET
|
int1 [16] js_object_defineProperties(int8 param_1)
{
int iVar1;
int8 uVar2;
int8 *in_R8;
int *piVar3;
int1 auVar4 [16];
piVar3 = (int *)*in_R8;
uVar2 = in_R8[1];
iVar1 = JS_ObjectDefineProperties(param_1,piVar3,uVar2,in_R8[2],in_R8[3]);
if (iVar1 == 0) {
if (0xfffffff6 < (uint)uVar2) {
*piVar3 = *piVar3 + 1;
}
}
else {
uVar2 = 6;
piVar3 = (int *)0x0;
}
auVar4._8_8_ = uVar2;
auVar4._0_8_ = piVar3;
return auVar4;
}
| |
35,186 | my_realpath | eloqsql/mysys/my_symlink.c | int my_realpath(char *to, const char *filename, myf MyFlags)
{
#if defined(HAVE_REALPATH) && !defined(HAVE_BROKEN_REALPATH)
int result=0;
char buff[BUFF_LEN];
char *ptr;
DBUG_ENTER("my_realpath");
DBUG_PRINT("info",("executing realpath"));
if ((ptr=realpath(filename,buff)))
strmake(to, ptr, FN_REFLEN-1);
else
{
/*
Realpath didn't work; Use my_load_path() which is a poor substitute
original name but will at least be able to resolve paths that starts
with '.'.
*/
if (MyFlags)
DBUG_PRINT("error",("realpath failed with errno: %d", errno));
my_errno=errno;
if (MyFlags & MY_WME)
my_error(EE_REALPATH, MYF(0), filename, my_errno);
my_load_path(to, filename, NullS);
if (my_errno == ENOENT)
result= 1;
else
result= -1;
}
DBUG_RETURN(result);
#elif defined(_WIN32)
int ret= GetFullPathName(filename,FN_REFLEN, to, NULL);
if (ret == 0 || ret > FN_REFLEN)
{
my_errno= (ret > FN_REFLEN) ? ENAMETOOLONG : GetLastError();
if (MyFlags & MY_WME)
my_error(EE_REALPATH, MYF(0), filename, my_errno);
/*
GetFullPathName didn't work : use my_load_path() which is a poor
substitute original name but will at least be able to resolve
paths that starts with '.'.
*/
my_load_path(to, filename, NullS);
return -1;
}
#else
my_load_path(to, filename, NullS);
#endif
return 0;
} | O0 | c | my_realpath:
pushq %rbp
movq %rsp, %rbp
subq $0x1060, %rsp # imm = 0x1060
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x1020(%rbp)
movq %rsi, -0x1028(%rbp)
movq %rdx, -0x1030(%rbp)
movl $0x0, -0x1034(%rbp)
jmp 0xfd879
movq -0x1028(%rbp), %rdi
leaq -0x1010(%rbp), %rsi
callq 0x2a4d0
movq %rax, -0x1040(%rbp)
cmpq $0x0, %rax
je 0xfd8b6
movq -0x1020(%rbp), %rdi
movq -0x1040(%rbp), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x156f60
jmp 0xfd956
cmpq $0x0, -0x1030(%rbp)
je 0xfd8c6
jmp 0xfd8c2
jmp 0xfd8c4
jmp 0xfd8c6
callq 0x2a7d0
movl (%rax), %eax
movl %eax, -0x1044(%rbp)
callq 0xfe880
movl -0x1044(%rbp), %ecx
movl %ecx, (%rax)
movq -0x1030(%rbp), %rax
andq $0x10, %rax
cmpq $0x0, %rax
je 0xfd91d
movq -0x1028(%rbp), %rax
movq %rax, -0x1050(%rbp)
callq 0xfe880
movq -0x1050(%rbp), %rdx
movl (%rax), %ecx
movl $0x1a, %edi
xorl %eax, %eax
movl %eax, %esi
movb $0x0, %al
callq 0xf3f50
movq -0x1020(%rbp), %rdi
movq -0x1028(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x10c080
callq 0xfe880
cmpl $0x2, (%rax)
jne 0xfd94a
movl $0x1, -0x1034(%rbp)
jmp 0xfd954
movl $0xffffffff, -0x1034(%rbp) # imm = 0xFFFFFFFF
jmp 0xfd956
jmp 0xfd958
movl -0x1034(%rbp), %eax
movl %eax, -0x1014(%rbp)
movl -0x1014(%rbp), %eax
movl %eax, -0x1054(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xfd991
movl -0x1054(%rbp), %eax
addq $0x1060, %rsp # imm = 0x1060
popq %rbp
retq
callq 0x2a270
nopw %cs:(%rax,%rax)
| my_realpath:
push rbp
mov rbp, rsp
sub rsp, 1060h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_1020], rdi
mov [rbp+var_1028], rsi
mov [rbp+var_1030], rdx
mov [rbp+var_1034], 0
jmp short $+2
loc_FD879:
mov rdi, [rbp+var_1028]
lea rsi, [rbp+var_1010]
call _realpath
mov [rbp+var_1040], rax
cmp rax, 0
jz short loc_FD8B6
mov rdi, [rbp+var_1020]
mov rsi, [rbp+var_1040]
mov edx, 1FFh
call strmake
jmp loc_FD956
loc_FD8B6:
cmp [rbp+var_1030], 0
jz short loc_FD8C6
jmp short $+2
loc_FD8C2:
jmp short $+2
loc_FD8C4:
jmp short $+2
loc_FD8C6:
call ___errno_location
mov eax, [rax]
mov [rbp+var_1044], eax
call _my_thread_var
mov ecx, [rbp+var_1044]
mov [rax], ecx
mov rax, [rbp+var_1030]
and rax, 10h
cmp rax, 0
jz short loc_FD91D
mov rax, [rbp+var_1028]
mov [rbp+var_1050], rax
call _my_thread_var
mov rdx, [rbp+var_1050]
mov ecx, [rax]
mov edi, 1Ah
xor eax, eax
mov esi, eax
mov al, 0
call my_error
loc_FD91D:
mov rdi, [rbp+var_1020]
mov rsi, [rbp+var_1028]
xor eax, eax
mov edx, eax
call my_load_path
call _my_thread_var
cmp dword ptr [rax], 2
jnz short loc_FD94A
mov [rbp+var_1034], 1
jmp short loc_FD954
loc_FD94A:
mov [rbp+var_1034], 0FFFFFFFFh
loc_FD954:
jmp short $+2
loc_FD956:
jmp short $+2
loc_FD958:
mov eax, [rbp+var_1034]
mov [rbp+var_1014], eax
mov eax, [rbp+var_1014]
mov [rbp+var_1054], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_FD991
mov eax, [rbp+var_1054]
add rsp, 1060h
pop rbp
retn
loc_FD991:
call ___stack_chk_fail
| long long my_realpath(long long a1, const char *a2, char a3)
{
unsigned int *v3; // rax
long long v5; // [rsp+1Ch] [rbp-1044h]
long long v6; // [rsp+20h] [rbp-1040h]
unsigned int v7; // [rsp+2Ch] [rbp-1034h]
char v9[4104]; // [rsp+50h] [rbp-1010h] BYREF
unsigned long long v10; // [rsp+1058h] [rbp-8h]
v10 = __readfsqword(0x28u);
v7 = 0;
v6 = realpath(a2, v9);
if ( v6 )
{
strmake(a1, v6, 511LL);
}
else
{
v5 = *(unsigned int *)__errno_location();
*(_DWORD *)my_thread_var(a2, v9) = v5;
if ( (a3 & 0x10) != 0 )
{
v3 = (unsigned int *)my_thread_var(a2, v9);
my_error(0x1Au, 0LL, a2, *v3);
}
my_load_path(a1, a2, 0LL);
if ( *(_DWORD *)my_thread_var(a1, a2) == 2 )
return 1;
else
return (unsigned int)-1;
}
return v7;
}
| my_realpath:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x1060
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x1020],RDI
MOV qword ptr [RBP + -0x1028],RSI
MOV qword ptr [RBP + -0x1030],RDX
MOV dword ptr [RBP + -0x1034],0x0
JMP 0x001fd879
LAB_001fd879:
MOV RDI,qword ptr [RBP + -0x1028]
LEA RSI,[RBP + -0x1010]
CALL 0x0012a4d0
MOV qword ptr [RBP + -0x1040],RAX
CMP RAX,0x0
JZ 0x001fd8b6
MOV RDI,qword ptr [RBP + -0x1020]
MOV RSI,qword ptr [RBP + -0x1040]
MOV EDX,0x1ff
CALL 0x00256f60
JMP 0x001fd956
LAB_001fd8b6:
CMP qword ptr [RBP + -0x1030],0x0
JZ 0x001fd8c6
JMP 0x001fd8c2
LAB_001fd8c2:
JMP 0x001fd8c4
LAB_001fd8c4:
JMP 0x001fd8c6
LAB_001fd8c6:
CALL 0x0012a7d0
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x1044],EAX
CALL 0x001fe880
MOV ECX,dword ptr [RBP + -0x1044]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x1030]
AND RAX,0x10
CMP RAX,0x0
JZ 0x001fd91d
MOV RAX,qword ptr [RBP + -0x1028]
MOV qword ptr [RBP + -0x1050],RAX
CALL 0x001fe880
MOV RDX,qword ptr [RBP + -0x1050]
MOV ECX,dword ptr [RAX]
MOV EDI,0x1a
XOR EAX,EAX
MOV ESI,EAX
MOV AL,0x0
CALL 0x001f3f50
LAB_001fd91d:
MOV RDI,qword ptr [RBP + -0x1020]
MOV RSI,qword ptr [RBP + -0x1028]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x0020c080
CALL 0x001fe880
CMP dword ptr [RAX],0x2
JNZ 0x001fd94a
MOV dword ptr [RBP + -0x1034],0x1
JMP 0x001fd954
LAB_001fd94a:
MOV dword ptr [RBP + -0x1034],0xffffffff
LAB_001fd954:
JMP 0x001fd956
LAB_001fd956:
JMP 0x001fd958
LAB_001fd958:
MOV EAX,dword ptr [RBP + -0x1034]
MOV dword ptr [RBP + -0x1014],EAX
MOV EAX,dword ptr [RBP + -0x1014]
MOV dword ptr [RBP + -0x1054],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001fd991
MOV EAX,dword ptr [RBP + -0x1054]
ADD RSP,0x1060
POP RBP
RET
LAB_001fd991:
CALL 0x0012a270
|
int4 my_realpath(int8 param_1,char *param_2,ulong param_3)
{
int iVar1;
char *pcVar2;
int *piVar3;
int4 *puVar4;
long in_FS_OFFSET;
int4 local_103c;
char local_1018 [4104];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_103c = 0;
pcVar2 = realpath(param_2,local_1018);
if (pcVar2 == (char *)0x0) {
piVar3 = __errno_location();
iVar1 = *piVar3;
piVar3 = (int *)_my_thread_var();
*piVar3 = iVar1;
if ((param_3 & 0x10) != 0) {
puVar4 = (int4 *)_my_thread_var();
my_error(0x1a,0,param_2,*puVar4);
}
my_load_path(param_1,param_2,0);
piVar3 = (int *)_my_thread_var();
if (*piVar3 == 2) {
local_103c = 1;
}
else {
local_103c = 0xffffffff;
}
}
else {
strmake(param_1,pcVar2,0x1ff);
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_103c;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
35,187 | my_wildcmp_8bit_impl | eloqsql/strings/ctype-simple.c | static
int my_wildcmp_8bit_impl(CHARSET_INFO *cs,
const char *str,const char *str_end,
const char *wildstr,const char *wildend,
int escape, int w_one, int w_many, int recurse_level)
{
int result= -1; /* Not found, using wildcards */
if (my_string_stack_guard && my_string_stack_guard(recurse_level))
return 1;
while (wildstr != wildend)
{
while (*wildstr != w_many && *wildstr != w_one)
{
if (*wildstr == escape && wildstr+1 != wildend)
wildstr++;
if (str == str_end || likeconv(cs,*wildstr++) != likeconv(cs,*str++))
return(1); /* No match */
if (wildstr == wildend)
return(str != str_end); /* Match if both are at end */
result=1; /* Found an anchor char */
}
if (*wildstr == w_one)
{
do
{
if (str == str_end) /* Skip one char if possible */
return(result);
INC_PTR(cs,str,str_end);
} while (++wildstr < wildend && *wildstr == w_one);
if (wildstr == wildend)
break;
}
if (*wildstr == w_many)
{ /* Found w_many */
uchar cmp;
wildstr++;
/* Remove any '%' and '_' from the wild search string */
for (; wildstr != wildend ; wildstr++)
{
if (*wildstr == w_many)
continue;
if (*wildstr == w_one)
{
if (str == str_end)
return(-1);
INC_PTR(cs,str,str_end);
continue;
}
break; /* Not a wild character */
}
if (wildstr == wildend)
return(0); /* Ok if w_many is last */
if (str == str_end)
return(-1);
if ((cmp= *wildstr) == escape && wildstr+1 != wildend)
cmp= *++wildstr;
INC_PTR(cs,wildstr,wildend); /* This is compared trough cmp */
cmp=likeconv(cs,cmp);
do
{
/*
Find the next character in the subject string equal to 'cmp', then
check recursively my_wildcmp_8bit_impl() for the pattern remainder.
*/
while (str != str_end && (uchar) likeconv(cs,*str) != cmp)
str++;
if (str++ == str_end)
return(-1); /* 'cmp' was not found in the subject string */
{
int tmp=my_wildcmp_8bit_impl(cs,str,str_end,
wildstr,wildend,escape,w_one,
w_many, recurse_level+1);
if (tmp <= 0)
return(tmp);
}
/*
The recursion call did not match. But it returned 1, which means
the pattern remainder has some non-special characters.
Continue, there is a chance that we'll find another 'cmp'
at a different position in the subject string.
*/
} while (str != str_end);
return(-1);
}
}
return(str != str_end ? 1 : 0);
} | O0 | c | my_wildcmp_8bit_impl:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl 0x20(%rbp), %eax
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movl %r9d, -0x34(%rbp)
movl $0xffffffff, -0x38(%rbp) # imm = 0xFFFFFFFF
leaq 0x3b07b1(%rip), %rax # 0x446468
cmpq $0x0, (%rax)
je 0x95cdd
leaq 0x3b07a4(%rip), %rax # 0x446468
movq (%rax), %rax
movl 0x20(%rbp), %edi
callq *%rax
cmpl $0x0, %eax
je 0x95cdd
movl $0x1, -0x4(%rbp)
jmp 0x9600a
jmp 0x95cdf
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
je 0x95ff2
jmp 0x95cef
movq -0x28(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl 0x18(%rbp), %ecx
movb %al, -0x41(%rbp)
je 0x95d10
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl 0x10(%rbp), %eax
setne %al
movb %al, -0x41(%rbp)
movb -0x41(%rbp), %al
testb $0x1, %al
jne 0x95d1c
jmp 0x95dc6
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl -0x34(%rbp), %eax
jne 0x95d42
movq -0x28(%rbp), %rax
addq $0x1, %rax
cmpq -0x30(%rbp), %rax
je 0x95d42
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
je 0x95d8c
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rax
movq -0x28(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x28(%rbp)
movzbl (%rcx), %ecx
movzbl (%rax,%rcx), %eax
movq -0x10(%rbp), %rcx
movq 0x58(%rcx), %rcx
movq -0x18(%rbp), %rdx
movq %rdx, %rsi
addq $0x1, %rsi
movq %rsi, -0x18(%rbp)
movzbl (%rdx), %edx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
je 0x95d98
movl $0x1, -0x4(%rbp)
jmp 0x9600a
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jne 0x95dba
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x4(%rbp)
jmp 0x9600a
movl $0x1, -0x38(%rbp)
jmp 0x95cef
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl 0x10(%rbp), %eax
jne 0x95e34
jmp 0x95dd4
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jne 0x95de9
movl -0x38(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x9600a
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
movq -0x28(%rbp), %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
xorl %eax, %eax
cmpq -0x30(%rbp), %rcx
movb %al, -0x42(%rbp)
jae 0x95e1c
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl 0x10(%rbp), %eax
sete %al
movb %al, -0x42(%rbp)
movb -0x42(%rbp), %al
testb $0x1, %al
jne 0x95dd4
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jne 0x95e32
jmp 0x95ff2
jmp 0x95e34
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl 0x18(%rbp), %eax
jne 0x95fed
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
je 0x95ea8
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl 0x18(%rbp), %eax
jne 0x95e68
jmp 0x95e9a
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl 0x10(%rbp), %eax
jne 0x95e98
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jne 0x95e8a
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9600a
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x95e9a
jmp 0x95ea8
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x95e50
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jne 0x95ebe
movl $0x0, -0x4(%rbp)
jmp 0x9600a
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jne 0x95ed4
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9600a
movq -0x28(%rbp), %rax
movb (%rax), %al
movb %al, -0x39(%rbp)
movzbl %al, %eax
cmpl -0x34(%rbp), %eax
jne 0x95f08
movq -0x28(%rbp), %rax
addq $0x1, %rax
cmpq -0x30(%rbp), %rax
je 0x95f08
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movb 0x1(%rax), %al
movb %al, -0x39(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rax
movzbl -0x39(%rbp), %ecx
movb (%rax,%rcx), %al
movb %al, -0x39(%rbp)
jmp 0x95f28
movq -0x18(%rbp), %rcx
xorl %eax, %eax
cmpq -0x20(%rbp), %rcx
movb %al, -0x43(%rbp)
je 0x95f56
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rax
movq -0x18(%rbp), %rcx
movzbl (%rcx), %ecx
movzbl (%rax,%rcx), %eax
movzbl -0x39(%rbp), %ecx
cmpl %ecx, %eax
setne %al
movb %al, -0x43(%rbp)
movb -0x43(%rbp), %al
testb $0x1, %al
jne 0x95f5f
jmp 0x95f6d
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x95f28
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
cmpq -0x20(%rbp), %rax
jne 0x95f8b
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9600a
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
movl -0x34(%rbp), %r9d
movl 0x10(%rbp), %r11d
movl 0x18(%rbp), %r10d
movl 0x20(%rbp), %eax
addl $0x1, %eax
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0x95c80
movl %eax, -0x40(%rbp)
cmpl $0x0, -0x40(%rbp)
jg 0x95fd4
movl -0x40(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x9600a
jmp 0x95fd6
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jne 0x95f26
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9600a
jmp 0x95cdf
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rsi
xorl %eax, %eax
movl $0x1, %ecx
cmpq %rsi, %rdx
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_wildcmp_8bit_impl:
push rbp
mov rbp, rsp
sub rsp, 60h
mov eax, [rbp+arg_10]
mov eax, [rbp+arg_8]
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_34], r9d
mov [rbp+var_38], 0FFFFFFFFh
lea rax, my_string_stack_guard
cmp qword ptr [rax], 0
jz short loc_95CDD
lea rax, my_string_stack_guard
mov rax, [rax]
mov edi, [rbp+arg_10]
call rax
cmp eax, 0
jz short loc_95CDD
mov [rbp+var_4], 1
jmp loc_9600A
loc_95CDD:
jmp short $+2
loc_95CDF:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jz loc_95FF2
jmp short $+2
loc_95CEF:
mov rax, [rbp+var_28]
movsx ecx, byte ptr [rax]
xor eax, eax
cmp ecx, [rbp+arg_8]
mov [rbp+var_41], al
jz short loc_95D10
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, [rbp+arg_0]
setnz al
mov [rbp+var_41], al
loc_95D10:
mov al, [rbp+var_41]
test al, 1
jnz short loc_95D1C
jmp loc_95DC6
loc_95D1C:
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, [rbp+var_34]
jnz short loc_95D42
mov rax, [rbp+var_28]
add rax, 1
cmp rax, [rbp+var_30]
jz short loc_95D42
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
loc_95D42:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jz short loc_95D8C
mov rax, [rbp+var_10]
mov rax, [rax+58h]
mov rcx, [rbp+var_28]
mov rdx, rcx
add rdx, 1
mov [rbp+var_28], 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_18]
mov rsi, rdx
add rsi, 1
mov [rbp+var_18], rsi
movzx edx, byte ptr [rdx]
movzx ecx, byte ptr [rcx+rdx]
cmp eax, ecx
jz short loc_95D98
loc_95D8C:
mov [rbp+var_4], 1
jmp loc_9600A
loc_95D98:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jnz short loc_95DBA
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
setnz al
and al, 1
movzx eax, al
mov [rbp+var_4], eax
jmp loc_9600A
loc_95DBA:
mov [rbp+var_38], 1
jmp loc_95CEF
loc_95DC6:
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, [rbp+arg_0]
jnz short loc_95E34
jmp short $+2
loc_95DD4:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnz short loc_95DE9
mov eax, [rbp+var_38]
mov [rbp+var_4], eax
jmp loc_9600A
loc_95DE9:
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
mov rcx, [rbp+var_28]
add rcx, 1
mov [rbp+var_28], rcx
xor eax, eax
cmp rcx, [rbp+var_30]
mov [rbp+var_42], al
jnb short loc_95E1C
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, [rbp+arg_0]
setz al
mov [rbp+var_42], al
loc_95E1C:
mov al, [rbp+var_42]
test al, 1
jnz short loc_95DD4
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jnz short loc_95E32
jmp loc_95FF2
loc_95E32:
jmp short $+2
loc_95E34:
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, [rbp+arg_8]
jnz loc_95FED
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
loc_95E50:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jz short loc_95EA8
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, [rbp+arg_8]
jnz short loc_95E68
jmp short loc_95E9A
loc_95E68:
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, [rbp+arg_0]
jnz short loc_95E98
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnz short loc_95E8A
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_9600A
loc_95E8A:
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
jmp short loc_95E9A
loc_95E98:
jmp short loc_95EA8
loc_95E9A:
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
jmp short loc_95E50
loc_95EA8:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jnz short loc_95EBE
mov [rbp+var_4], 0
jmp loc_9600A
loc_95EBE:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnz short loc_95ED4
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_9600A
loc_95ED4:
mov rax, [rbp+var_28]
mov al, [rax]
mov [rbp+var_39], al
movzx eax, al
cmp eax, [rbp+var_34]
jnz short loc_95F08
mov rax, [rbp+var_28]
add rax, 1
cmp rax, [rbp+var_30]
jz short loc_95F08
mov rax, [rbp+var_28]
mov rcx, rax
add rcx, 1
mov [rbp+var_28], rcx
mov al, [rax+1]
mov [rbp+var_39], al
loc_95F08:
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
mov rax, [rbp+var_10]
mov rax, [rax+58h]
movzx ecx, [rbp+var_39]
mov al, [rax+rcx]
mov [rbp+var_39], al
loc_95F26:
jmp short $+2
loc_95F28:
mov rcx, [rbp+var_18]
xor eax, eax
cmp rcx, [rbp+var_20]
mov [rbp+var_43], al
jz short loc_95F56
mov rax, [rbp+var_10]
mov rax, [rax+58h]
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx]
movzx eax, byte ptr [rax+rcx]
movzx ecx, [rbp+var_39]
cmp eax, ecx
setnz al
mov [rbp+var_43], al
loc_95F56:
mov al, [rbp+var_43]
test al, 1
jnz short loc_95F5F
jmp short loc_95F6D
loc_95F5F:
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
jmp short loc_95F28
loc_95F6D:
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
cmp rax, [rbp+var_20]
jnz short loc_95F8B
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_9600A
loc_95F8B:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_28]
mov r8, [rbp+var_30]
mov r9d, [rbp+var_34]
mov r11d, [rbp+arg_0]
mov r10d, [rbp+arg_8]
mov eax, [rbp+arg_10]
add eax, 1
mov [rsp+60h+var_60], r11d
mov [rsp+60h+var_58], r10d
mov [rsp+60h+var_50], eax
call my_wildcmp_8bit_impl
mov [rbp+var_40], eax
cmp [rbp+var_40], 0
jg short loc_95FD4
mov eax, [rbp+var_40]
mov [rbp+var_4], eax
jmp short loc_9600A
loc_95FD4:
jmp short $+2
loc_95FD6:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnz loc_95F26
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_9600A
loc_95FED:
jmp loc_95CDF
loc_95FF2:
mov rdx, [rbp+var_18]
mov rsi, [rbp+var_20]
xor eax, eax
mov ecx, 1
cmp rdx, rsi
cmovnz eax, ecx
mov [rbp+var_4], eax
loc_9600A:
mov eax, [rbp+var_4]
add rsp, 60h
pop rbp
retn
| long long my_wildcmp_8bit_impl(
long long a1,
unsigned __int8 *a2,
unsigned __int8 *a3,
char *a4,
char *a5,
int a6,
int a7,
int a8,
unsigned int a9)
{
char *v9; // rcx
unsigned __int8 *v10; // rdx
char *v11; // rax
unsigned __int8 *v12; // rax
bool v14; // [rsp+1Dh] [rbp-43h]
bool v15; // [rsp+1Eh] [rbp-42h]
bool v16; // [rsp+1Fh] [rbp-41h]
int v17; // [rsp+20h] [rbp-40h]
unsigned __int8 v18; // [rsp+27h] [rbp-39h]
unsigned __int8 v19; // [rsp+27h] [rbp-39h]
unsigned int v20; // [rsp+28h] [rbp-38h]
char *i; // [rsp+38h] [rbp-28h]
int v25; // [rsp+38h] [rbp-28h]
v20 = -1;
if ( my_string_stack_guard && (unsigned int)my_string_stack_guard(a9) )
{
return 1;
}
else
{
do
{
if ( a4 != a5 )
{
while ( 1 )
{
v16 = 0;
if ( *a4 != a8 )
v16 = *a4 != a7;
if ( !v16 )
break;
if ( *a4 == a6 && a4 + 1 != a5 )
++a4;
if ( a2 == a3 )
return 1;
v9 = a4++;
v10 = a2++;
if ( *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + (unsigned __int8)*v9) != *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + *v10) )
return 1;
if ( a4 == a5 )
return a2 != a3;
v20 = 1;
}
if ( *a4 != a7 )
continue;
do
{
if ( a2 == a3 )
return v20;
++a2;
++a4;
v15 = 0;
if ( a4 < a5 )
v15 = *a4 == a7;
}
while ( v15 );
if ( a4 != a5 )
continue;
}
return a2 != a3;
}
while ( *a4 != a8 );
for ( i = a4 + 1; i != a5; ++i )
{
if ( *i != a8 )
{
if ( *i != a7 )
break;
if ( a2 == a3 )
return (unsigned int)-1;
++a2;
}
}
if ( i == a5 )
{
return 0;
}
else if ( a2 == a3 )
{
return (unsigned int)-1;
}
else
{
v18 = *i;
if ( (unsigned __int8)*i == a6 && i + 1 != a5 )
{
v11 = i;
LODWORD(i) = (_DWORD)i + 1;
v18 = v11[1];
}
v25 = (_DWORD)i + 1;
v19 = *(_BYTE *)(*(_QWORD *)(a1 + 88) + v18);
do
{
while ( 1 )
{
v14 = 0;
if ( a2 != a3 )
v14 = *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + *a2) != v19;
if ( !v14 )
break;
++a2;
}
v12 = a2++;
if ( v12 == a3 )
return (unsigned int)-1;
v17 = my_wildcmp_8bit_impl(a1, (_DWORD)a2, (_DWORD)a3, v25, (_DWORD)a5, a6, a7, a8, a9 + 1);
if ( v17 <= 0 )
return (unsigned int)v17;
}
while ( a2 != a3 );
return (unsigned int)-1;
}
}
}
| my_wildcmp_8bit_impl:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV EAX,dword ptr [RBP + 0x20]
MOV EAX,dword ptr [RBP + 0x18]
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 dword ptr [RBP + -0x34],R9D
MOV dword ptr [RBP + -0x38],0xffffffff
LEA RAX,[0x546468]
CMP qword ptr [RAX],0x0
JZ 0x00195cdd
LEA RAX,[0x546468]
MOV RAX,qword ptr [RAX]
MOV EDI,dword ptr [RBP + 0x20]
CALL RAX
CMP EAX,0x0
JZ 0x00195cdd
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0019600a
LAB_00195cdd:
JMP 0x00195cdf
LAB_00195cdf:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JZ 0x00195ff2
JMP 0x00195cef
LAB_00195cef:
MOV RAX,qword ptr [RBP + -0x28]
MOVSX ECX,byte ptr [RAX]
XOR EAX,EAX
CMP ECX,dword ptr [RBP + 0x18]
MOV byte ptr [RBP + -0x41],AL
JZ 0x00195d10
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,dword ptr [RBP + 0x10]
SETNZ AL
MOV byte ptr [RBP + -0x41],AL
LAB_00195d10:
MOV AL,byte ptr [RBP + -0x41]
TEST AL,0x1
JNZ 0x00195d1c
JMP 0x00195dc6
LAB_00195d1c:
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,dword ptr [RBP + -0x34]
JNZ 0x00195d42
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
CMP RAX,qword ptr [RBP + -0x30]
JZ 0x00195d42
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
LAB_00195d42:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x00195d8c
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x58]
MOV RCX,qword ptr [RBP + -0x28]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x28],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 + -0x18]
MOV RSI,RDX
ADD RSI,0x1
MOV qword ptr [RBP + -0x18],RSI
MOVZX EDX,byte ptr [RDX]
MOVZX ECX,byte ptr [RCX + RDX*0x1]
CMP EAX,ECX
JZ 0x00195d98
LAB_00195d8c:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0019600a
LAB_00195d98:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00195dba
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0019600a
LAB_00195dba:
MOV dword ptr [RBP + -0x38],0x1
JMP 0x00195cef
LAB_00195dc6:
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,dword ptr [RBP + 0x10]
JNZ 0x00195e34
JMP 0x00195dd4
LAB_00195dd4:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNZ 0x00195de9
MOV EAX,dword ptr [RBP + -0x38]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0019600a
LAB_00195de9:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x28]
ADD RCX,0x1
MOV qword ptr [RBP + -0x28],RCX
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x30]
MOV byte ptr [RBP + -0x42],AL
JNC 0x00195e1c
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,dword ptr [RBP + 0x10]
SETZ AL
MOV byte ptr [RBP + -0x42],AL
LAB_00195e1c:
MOV AL,byte ptr [RBP + -0x42]
TEST AL,0x1
JNZ 0x00195dd4
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00195e32
JMP 0x00195ff2
LAB_00195e32:
JMP 0x00195e34
LAB_00195e34:
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,dword ptr [RBP + 0x18]
JNZ 0x00195fed
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
LAB_00195e50:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JZ 0x00195ea8
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,dword ptr [RBP + 0x18]
JNZ 0x00195e68
JMP 0x00195e9a
LAB_00195e68:
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,dword ptr [RBP + 0x10]
JNZ 0x00195e98
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNZ 0x00195e8a
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0019600a
LAB_00195e8a:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00195e9a
LAB_00195e98:
JMP 0x00195ea8
LAB_00195e9a:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00195e50
LAB_00195ea8:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00195ebe
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0019600a
LAB_00195ebe:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNZ 0x00195ed4
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0019600a
LAB_00195ed4:
MOV RAX,qword ptr [RBP + -0x28]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x39],AL
MOVZX EAX,AL
CMP EAX,dword ptr [RBP + -0x34]
JNZ 0x00195f08
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
CMP RAX,qword ptr [RBP + -0x30]
JZ 0x00195f08
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x28],RCX
MOV AL,byte ptr [RAX + 0x1]
MOV byte ptr [RBP + -0x39],AL
LAB_00195f08:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x58]
MOVZX ECX,byte ptr [RBP + -0x39]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x39],AL
LAB_00195f26:
JMP 0x00195f28
LAB_00195f28:
MOV RCX,qword ptr [RBP + -0x18]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x20]
MOV byte ptr [RBP + -0x43],AL
JZ 0x00195f56
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x58]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOVZX ECX,byte ptr [RBP + -0x39]
CMP EAX,ECX
SETNZ AL
MOV byte ptr [RBP + -0x43],AL
LAB_00195f56:
MOV AL,byte ptr [RBP + -0x43]
TEST AL,0x1
JNZ 0x00195f5f
JMP 0x00195f6d
LAB_00195f5f:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00195f28
LAB_00195f6d:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x18],RCX
CMP RAX,qword ptr [RBP + -0x20]
JNZ 0x00195f8b
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0019600a
LAB_00195f8b:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
MOV R8,qword ptr [RBP + -0x30]
MOV R9D,dword ptr [RBP + -0x34]
MOV R11D,dword ptr [RBP + 0x10]
MOV R10D,dword ptr [RBP + 0x18]
MOV EAX,dword ptr [RBP + 0x20]
ADD EAX,0x1
MOV dword ptr [RSP],R11D
MOV dword ptr [RSP + 0x8],R10D
MOV dword ptr [RSP + 0x10],EAX
CALL 0x00195c80
MOV dword ptr [RBP + -0x40],EAX
CMP dword ptr [RBP + -0x40],0x0
JG 0x00195fd4
MOV EAX,dword ptr [RBP + -0x40]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0019600a
LAB_00195fd4:
JMP 0x00195fd6
LAB_00195fd6:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNZ 0x00195f26
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0019600a
LAB_00195fed:
JMP 0x00195cdf
LAB_00195ff2:
MOV RDX,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
XOR EAX,EAX
MOV ECX,0x1
CMP RDX,RSI
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x4],EAX
LAB_0019600a:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x60
POP RBP
RET
|
uint my_wildcmp_8bit_impl
(long param_1,byte *param_2,byte *param_3,byte *param_4,byte *param_5,uint param_6,
int param_7,int param_8,int param_9)
{
char cVar1;
int iVar2;
uint uVar3;
byte *pbVar4;
bool bVar5;
byte local_41;
uint local_40;
byte *local_30;
byte *local_20;
uint local_c;
local_40 = 0xffffffff;
local_30 = param_4;
local_20 = param_2;
if ((my_string_stack_guard == (code *)0x0) ||
(iVar2 = (*my_string_stack_guard)(param_9), iVar2 == 0)) {
do {
if (local_30 == param_5) {
LAB_00195ff2:
return (uint)(local_20 != param_3);
}
while( true ) {
bVar5 = false;
if ((char)*local_30 != param_8) {
bVar5 = (char)*local_30 != param_7;
}
if (!bVar5) break;
if (((int)(char)*local_30 == param_6) && (local_30 + 1 != param_5)) {
local_30 = local_30 + 1;
}
if (local_20 == param_3) {
return 1;
}
if (*(char *)(*(long *)(param_1 + 0x58) + (ulong)*local_30) !=
*(char *)(*(long *)(param_1 + 0x58) + (ulong)*local_20)) {
return 1;
}
if (local_30 + 1 == param_5) {
return (uint)(local_20 + 1 != param_3);
}
local_40 = 1;
local_30 = local_30 + 1;
local_20 = local_20 + 1;
}
if ((char)*local_30 == param_7) {
do {
if (local_20 == param_3) {
return local_40;
}
local_20 = local_20 + 1;
local_30 = local_30 + 1;
bVar5 = false;
if (local_30 < param_5) {
bVar5 = (char)*local_30 == param_7;
}
} while (bVar5);
if (local_30 == param_5) goto LAB_00195ff2;
}
} while ((char)*local_30 != param_8);
while (pbVar4 = local_30, local_30 = pbVar4 + 1, local_30 != param_5) {
if ((char)*local_30 != param_8) {
if ((char)*local_30 != param_7) break;
if (local_20 == param_3) {
return 0xffffffff;
}
local_20 = local_20 + 1;
}
}
if (local_30 == param_5) {
local_c = 0;
}
else if (local_20 == param_3) {
local_c = 0xffffffff;
}
else {
local_41 = *local_30;
if ((local_41 == param_6) && (pbVar4 + 2 != param_5)) {
local_30 = pbVar4 + 2;
local_41 = pbVar4[2];
}
cVar1 = *(char *)(*(long *)(param_1 + 0x58) + (ulong)local_41);
do {
while( true ) {
bVar5 = false;
if (local_20 != param_3) {
bVar5 = *(char *)(*(long *)(param_1 + 0x58) + (ulong)*local_20) != cVar1;
}
if (!bVar5) break;
local_20 = local_20 + 1;
}
pbVar4 = local_20 + 1;
if (local_20 == param_3) {
return 0xffffffff;
}
uVar3 = my_wildcmp_8bit_impl
(param_1,pbVar4,param_3,local_30 + 1,param_5,param_6,param_7,param_8,
param_9 + 1);
if ((int)uVar3 < 1) {
return uVar3;
}
local_20 = pbVar4;
} while (pbVar4 != param_3);
local_c = 0xffffffff;
}
}
else {
local_c = 1;
}
return local_c;
}
| |
35,188 | check_mb_utf8mb3_sequence | eloqsql/libmariadb/libmariadb/ma_charset.c | static unsigned int check_mb_utf8mb3_sequence(const char *start, const char *end)
{
uchar c;
if (start >= end) {
return 0;
}
c = (uchar) start[0];
if (c < 0x80) {
return 1; /* single byte character */
}
if (c < 0xC2) {
return 0; /* invalid mb character */
}
if (c < 0xE0) {
if (start + 2 > end) {
return 0; /* too small */
}
if (!(((uchar)start[1] ^ 0x80) < 0x40)) {
return 0;
}
return 2;
}
if (c < 0xF0) {
if (start + 3 > end) {
return 0; /* too small */
}
if (!(((uchar)start[1] ^ 0x80) < 0x40 && ((uchar)start[2] ^ 0x80) < 0x40 &&
(c >= 0xE1 || (uchar)start[1] >= 0xA0))) {
return 0; /* invalid utf8 character */
}
return 3;
}
return 0;
} | O0 | c | check_mb_utf8mb3_sequence:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x18(%rbp), %rax
jb 0x9f212
movl $0x0, -0x4(%rbp)
jmp 0x9f30e
movq -0x10(%rbp), %rax
movb (%rax), %al
movb %al, -0x19(%rbp)
movzbl -0x19(%rbp), %eax
cmpl $0x80, %eax
jge 0x9f232
movl $0x1, -0x4(%rbp)
jmp 0x9f30e
movzbl -0x19(%rbp), %eax
cmpl $0xc2, %eax
jge 0x9f249
movl $0x0, -0x4(%rbp)
jmp 0x9f30e
movzbl -0x19(%rbp), %eax
cmpl $0xe0, %eax
jge 0x9f295
movq -0x10(%rbp), %rax
addq $0x2, %rax
cmpq -0x18(%rbp), %rax
jbe 0x9f26e
movl $0x0, -0x4(%rbp)
jmp 0x9f30e
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cmpl $0x40, %eax
jl 0x9f28c
movl $0x0, -0x4(%rbp)
jmp 0x9f30e
movl $0x2, -0x4(%rbp)
jmp 0x9f30e
movzbl -0x19(%rbp), %eax
cmpl $0xf0, %eax
jge 0x9f307
movq -0x10(%rbp), %rax
addq $0x3, %rax
cmpq -0x18(%rbp), %rax
jbe 0x9f2b7
movl $0x0, -0x4(%rbp)
jmp 0x9f30e
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cmpl $0x40, %eax
jge 0x9f2f5
movq -0x10(%rbp), %rax
movzbl 0x2(%rax), %eax
xorl $0x80, %eax
cmpl $0x40, %eax
jge 0x9f2f5
movzbl -0x19(%rbp), %eax
cmpl $0xe1, %eax
jge 0x9f2fe
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0xa0, %eax
jge 0x9f2fe
movl $0x0, -0x4(%rbp)
jmp 0x9f30e
movl $0x3, -0x4(%rbp)
jmp 0x9f30e
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| check_mb_utf8mb3_sequence:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
cmp rax, [rbp+var_18]
jb short loc_9F212
mov [rbp+var_4], 0
jmp loc_9F30E
loc_9F212:
mov rax, [rbp+var_10]
mov al, [rax]
mov [rbp+var_19], al
movzx eax, [rbp+var_19]
cmp eax, 80h
jge short loc_9F232
mov [rbp+var_4], 1
jmp loc_9F30E
loc_9F232:
movzx eax, [rbp+var_19]
cmp eax, 0C2h
jge short loc_9F249
mov [rbp+var_4], 0
jmp loc_9F30E
loc_9F249:
movzx eax, [rbp+var_19]
cmp eax, 0E0h
jge short loc_9F295
mov rax, [rbp+var_10]
add rax, 2
cmp rax, [rbp+var_18]
jbe short loc_9F26E
mov [rbp+var_4], 0
jmp loc_9F30E
loc_9F26E:
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cmp eax, 40h ; '@'
jl short loc_9F28C
mov [rbp+var_4], 0
jmp loc_9F30E
loc_9F28C:
mov [rbp+var_4], 2
jmp short loc_9F30E
loc_9F295:
movzx eax, [rbp+var_19]
cmp eax, 0F0h
jge short loc_9F307
mov rax, [rbp+var_10]
add rax, 3
cmp rax, [rbp+var_18]
jbe short loc_9F2B7
mov [rbp+var_4], 0
jmp short loc_9F30E
loc_9F2B7:
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cmp eax, 40h ; '@'
jge short loc_9F2F5
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+2]
xor eax, 80h
cmp eax, 40h ; '@'
jge short loc_9F2F5
movzx eax, [rbp+var_19]
cmp eax, 0E1h
jge short loc_9F2FE
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+1]
cmp eax, 0A0h
jge short loc_9F2FE
loc_9F2F5:
mov [rbp+var_4], 0
jmp short loc_9F30E
loc_9F2FE:
mov [rbp+var_4], 3
jmp short loc_9F30E
loc_9F307:
mov [rbp+var_4], 0
loc_9F30E:
mov eax, [rbp+var_4]
pop rbp
retn
| long long check_mb_utf8mb3_sequence(unsigned __int8 *a1, unsigned long long a2)
{
unsigned __int8 v3; // [rsp+1h] [rbp-19h]
if ( (unsigned long long)a1 < a2 )
{
v3 = *a1;
if ( *a1 >= 0x80u )
{
if ( v3 >= 0xC2u )
{
if ( v3 >= 0xE0u )
{
if ( v3 >= 0xF0u )
{
return 0;
}
else if ( (unsigned long long)(a1 + 3) <= a2 )
{
if ( (a1[1] ^ 0x80) < 64 && (a1[2] ^ 0x80) < 64 && (v3 >= 0xE1u || a1[1] >= 0xA0u) )
return 3;
else
return 0;
}
else
{
return 0;
}
}
else if ( (unsigned long long)(a1 + 2) <= a2 )
{
if ( (a1[1] ^ 0x80) < 64 )
return 2;
else
return 0;
}
else
{
return 0;
}
}
else
{
return 0;
}
}
else
{
return 1;
}
}
else
{
return 0;
}
}
| check_mb_utf8mb3_sequence:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x18]
JC 0x0019f212
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0019f30e
LAB_0019f212:
MOV RAX,qword ptr [RBP + -0x10]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x19],AL
MOVZX EAX,byte ptr [RBP + -0x19]
CMP EAX,0x80
JGE 0x0019f232
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0019f30e
LAB_0019f232:
MOVZX EAX,byte ptr [RBP + -0x19]
CMP EAX,0xc2
JGE 0x0019f249
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0019f30e
LAB_0019f249:
MOVZX EAX,byte ptr [RBP + -0x19]
CMP EAX,0xe0
JGE 0x0019f295
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x2
CMP RAX,qword ptr [RBP + -0x18]
JBE 0x0019f26e
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0019f30e
LAB_0019f26e:
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CMP EAX,0x40
JL 0x0019f28c
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0019f30e
LAB_0019f28c:
MOV dword ptr [RBP + -0x4],0x2
JMP 0x0019f30e
LAB_0019f295:
MOVZX EAX,byte ptr [RBP + -0x19]
CMP EAX,0xf0
JGE 0x0019f307
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x3
CMP RAX,qword ptr [RBP + -0x18]
JBE 0x0019f2b7
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0019f30e
LAB_0019f2b7:
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CMP EAX,0x40
JGE 0x0019f2f5
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0x2]
XOR EAX,0x80
CMP EAX,0x40
JGE 0x0019f2f5
MOVZX EAX,byte ptr [RBP + -0x19]
CMP EAX,0xe1
JGE 0x0019f2fe
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0xa0
JGE 0x0019f2fe
LAB_0019f2f5:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0019f30e
LAB_0019f2fe:
MOV dword ptr [RBP + -0x4],0x3
JMP 0x0019f30e
LAB_0019f307:
MOV dword ptr [RBP + -0x4],0x0
LAB_0019f30e:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 check_mb_utf8mb3_sequence(byte *param_1,byte *param_2)
{
byte bVar1;
int4 local_c;
if (param_1 < param_2) {
bVar1 = *param_1;
if (bVar1 < 0x80) {
local_c = 1;
}
else if (bVar1 < 0xc2) {
local_c = 0;
}
else if (bVar1 < 0xe0) {
if (param_2 < param_1 + 2) {
local_c = 0;
}
else if ((param_1[1] ^ 0x80) < 0x40) {
local_c = 2;
}
else {
local_c = 0;
}
}
else if (bVar1 < 0xf0) {
if (param_2 < param_1 + 3) {
local_c = 0;
}
else if ((((param_1[1] ^ 0x80) < 0x40) && ((param_1[2] ^ 0x80) < 0x40)) &&
((0xe0 < bVar1 || (0x9f < param_1[1])))) {
local_c = 3;
}
else {
local_c = 0;
}
}
else {
local_c = 0;
}
}
else {
local_c = 0;
}
return local_c;
}
| |
35,189 | OpenSubdiv::v3_6_0::Bfr::qsub::getInteriorRingFacets(int, int, int, bool, OpenSubdiv::v3_6_0::Bfr::(anonymous namespace)::FacetArray) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp | int
qsub::getInteriorRingFacets(int N, int edgeRes, int coord0, bool triangulate,
FacetArray facets) {
//
// Deal with trivial cases with no inner vertices:
//
if (edgeRes < 1) return 0;
if (edgeRes == 1) {
return getCenterFacets(N, coord0, facets);
}
//
// Generate facets for the N quad-strips for each edge:
//
int outerRes = edgeRes;
int outerRing = coord0;
int innerRes = outerRes - 2;
int innerRing = outerRing + N * outerRes;
int nFacets = 0;
FacetStrip qStrip;
qStrip.quadTopology = true;
qStrip.quadTriangulate = triangulate;
qStrip.outerEdges = outerRes;
qStrip.innerEdges = innerRes;
qStrip.innerReversed = false;
qStrip.splitFirstFace = false;
qStrip.splitLastFace = false;
for (int edge = 0; edge < N; ++edge) {
qStrip.outerFirst = outerRing + edge * outerRes;
qStrip.innerFirst = innerRing + edge * innerRes;
qStrip.outerPrev = (edge ? qStrip.outerFirst : innerRing) - 1;
if (edge < N-1) {
qStrip.outerLast = qStrip.outerFirst + outerRes;
qStrip.innerLast = qStrip.innerFirst + innerRes;
} else {
qStrip.outerLast = outerRing;
qStrip.innerLast = innerRing;
}
nFacets += qStrip.connectUniformQuads(facets + nFacets);
}
return nFacets;
} | O3 | cpp | OpenSubdiv::v3_6_0::Bfr::qsub::getInteriorRingFacets(int, int, int, bool, OpenSubdiv::v3_6_0::Bfr::(anonymous namespace)::FacetArray):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r8, 0x40(%rsp)
movq %rdx, 0x8(%rsp)
testl %esi, %esi
jle 0xa406f
movl %esi, %r14d
cmpl $0x1, %esi
jne 0xa3f75
movq 0x40(%rsp), %rax
movups (%rax), %xmm0
leaq 0x60(%rsp), %rdx
movaps %xmm0, (%rdx)
movq 0x8(%rsp), %rsi
callq 0xa3e9c
jmp 0xa4071
leal -0x2(%r14), %eax
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movl $0x0, 0x30(%rsp)
addb %cl, %cl
incb %cl
movl %r14d, 0x24(%rsp)
movl %eax, 0x1c(%rsp)
movl %eax, 0x28(%rsp)
movb %cl, 0x20(%rsp)
testl %edi, %edi
jle 0xa406f
movl %r14d, %ecx
imull %edi, %ecx
movq 0x8(%rsp), %rbp
addl %ebp, %ecx
leal -0x1(%rdi), %eax
movl %eax, 0x14(%rsp)
leal 0x1(%rdi), %eax
imull %r14d, %eax
leal (%rax,%rbp), %ebx
addl $-0x2, %ebx
xorl %r15d, %r15d
movl %ecx, %r12d
xorl %r13d, %r13d
movq %rdi, 0x48(%rsp)
movl %ecx, 0x18(%rsp)
movl %ebp, 0x2c(%rsp)
testl %r15d, %r15d
movl %ebp, %eax
cmovel %ecx, %eax
movl %r12d, 0x38(%rsp)
decl %eax
movl %eax, 0x34(%rsp)
cmpl 0x14(%rsp), %r15d
jge 0xa4003
leal (%r14,%rbp), %eax
movl %eax, 0x30(%rsp)
movl %ebx, %eax
jmp 0xa400e
movq 0x8(%rsp), %rax
movl %eax, 0x30(%rsp)
movl %ecx, %eax
movl %eax, 0x3c(%rsp)
movq 0x40(%rsp), %rdx
movl 0xc(%rdx), %eax
movl %eax, %ecx
imull %r13d, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq (%rdx), %rcx
movl 0x8(%rdx), %edx
movq %rcx, 0x50(%rsp)
movl %edx, 0x58(%rsp)
movl %eax, 0x5c(%rsp)
leaq 0x20(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xa33de
addl %r13d, %eax
incl %r15d
movl 0x1c(%rsp), %ecx
addl %ecx, %ebx
addl %ecx, %r12d
addl %r14d, %ebp
movl %eax, %r13d
cmpl %r15d, 0x48(%rsp)
movl 0x18(%rsp), %ecx
jne 0xa3fd9
jmp 0xa4071
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZN10OpenSubdiv6v3_6_03Bfr4qsub21getInteriorRingFacetsEiiibNS1_12_GLOBAL__N_110FacetArrayE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov [rsp+0A8h+var_68], r8
mov [rsp+0A8h+var_A0], rdx
test esi, esi
jle loc_A406F
mov r14d, esi
cmp esi, 1
jnz short loc_A3F75
mov rax, [rsp+0A8h+var_68]
movups xmm0, xmmword ptr [rax]
lea rdx, [rsp+0A8h+var_48]
movaps xmmword ptr [rdx], xmm0
mov rsi, [rsp+0A8h+var_A0]
call _ZN10OpenSubdiv6v3_6_03Bfr4qsub15getCenterFacetsEiiNS1_12_GLOBAL__N_110FacetArrayE; OpenSubdiv::v3_6_0::Bfr::qsub::getCenterFacets(int,int,OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::FacetArray)
jmp loc_A4071
loc_A3F75:
lea eax, [r14-2]
xorps xmm0, xmm0
movaps [rsp+0A8h+var_88], xmm0
mov [rsp+0A8h+var_78], 0
add cl, cl
inc cl
mov dword ptr [rsp+0A8h+var_88+4], r14d
mov [rsp+0A8h+var_8C], eax
mov dword ptr [rsp+0A8h+var_88+8], eax
mov byte ptr [rsp+0A8h+var_88], cl
test edi, edi
jle loc_A406F
mov ecx, r14d
imul ecx, edi
mov rbp, [rsp+0A8h+var_A0]
add ecx, ebp
lea eax, [rdi-1]
mov [rsp+0A8h+var_94], eax
lea eax, [rdi+1]
imul eax, r14d
lea ebx, [rax+rbp]
add ebx, 0FFFFFFFEh
xor r15d, r15d
mov r12d, ecx
xor r13d, r13d
mov [rsp+0A8h+var_60], rdi
mov [rsp+0A8h+var_90], ecx
loc_A3FD9:
mov dword ptr [rsp+0A8h+var_88+0Ch], ebp
test r15d, r15d
mov eax, ebp
cmovz eax, ecx
mov [rsp+0A8h+var_70], r12d
dec eax
mov [rsp+0A8h+var_74], eax
cmp r15d, [rsp+0A8h+var_94]
jge short loc_A4003
lea eax, [r14+rbp]
mov [rsp+0A8h+var_78], eax
mov eax, ebx
jmp short loc_A400E
loc_A4003:
mov rax, [rsp+0A8h+var_A0]
mov [rsp+0A8h+var_78], eax
mov eax, ecx
loc_A400E:
mov [rsp+0A8h+var_6C], eax
mov rdx, [rsp+0A8h+var_68]
mov eax, [rdx+0Ch]
mov ecx, eax
imul ecx, r13d
movsxd rcx, ecx
shl rcx, 2
add rcx, [rdx]
mov edx, [rdx+8]
mov [rsp+0A8h+var_58], rcx
mov [rsp+0A8h+var_50], edx
mov [rsp+0A8h+var_4C], eax
lea rdi, [rsp+0A8h+var_88]
lea rsi, [rsp+0A8h+var_58]
call _ZNK10OpenSubdiv6v3_6_03Bfr12_GLOBAL__N_110FacetStrip19connectUniformQuadsENS2_10FacetArrayE; OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::FacetStrip::connectUniformQuads(OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::FacetArray)
add eax, r13d
inc r15d
mov ecx, [rsp+0A8h+var_8C]
add ebx, ecx
add r12d, ecx
add ebp, r14d
mov r13d, eax
cmp dword ptr [rsp+0A8h+var_60], r15d
mov ecx, [rsp+0A8h+var_90]
jnz loc_A3FD9
jmp short loc_A4071
loc_A406F:
xor eax, eax
loc_A4071:
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long OpenSubdiv::v3_6_0::Bfr::qsub::getInteriorRingFacets(
long long a1,
int a2,
int a3,
char a4,
__int128 *a5)
{
long long result; // rax
int v6; // ebp
int v7; // ecx
int v8; // ebx
int v9; // r15d
int v10; // r12d
int v11; // r13d
int v12; // eax
int v13; // eax
int v14; // eax
int v15; // edx
int v17; // [rsp+18h] [rbp-90h]
int v18; // [rsp+1Ch] [rbp-8Ch]
__int128 v19; // [rsp+20h] [rbp-88h] BYREF
int v20; // [rsp+30h] [rbp-78h]
int v21; // [rsp+34h] [rbp-74h]
int v22; // [rsp+38h] [rbp-70h]
int v23; // [rsp+3Ch] [rbp-6Ch]
__int128 *v24; // [rsp+40h] [rbp-68h]
long long v25; // [rsp+48h] [rbp-60h]
long long v26; // [rsp+50h] [rbp-58h] BYREF
int v27; // [rsp+58h] [rbp-50h]
int v28; // [rsp+5Ch] [rbp-4Ch]
__int128 v29[4]; // [rsp+60h] [rbp-48h] BYREF
v24 = a5;
if ( a2 <= 0 )
return 0LL;
if ( a2 == 1 )
{
v29[0] = *v24;
return OpenSubdiv::v3_6_0::Bfr::qsub::getCenterFacets(a1, a3, (long long)v29);
}
v19 = 0LL;
v20 = 0;
DWORD1(v19) = a2;
v18 = a2 - 2;
DWORD2(v19) = a2 - 2;
LOBYTE(v19) = 2 * a4 + 1;
if ( (int)a1 <= 0 )
return 0LL;
v6 = a3;
v7 = a3 + a1 * a2;
v8 = a2 * (a1 + 1) + a3 - 2;
v9 = 0;
v10 = v7;
v11 = 0;
v25 = a1;
v17 = v7;
do
{
HIDWORD(v19) = v6;
v12 = v6;
if ( !v9 )
v12 = v7;
v22 = v10;
v21 = v12 - 1;
if ( v9 >= (int)a1 - 1 )
{
v20 = a3;
v13 = v7;
}
else
{
v20 = a2 + v6;
v13 = v8;
}
v23 = v13;
v14 = *((_DWORD *)v24 + 3);
v15 = *((_DWORD *)v24 + 2);
v26 = *(_QWORD *)v24 + 4LL * v11 * v14;
v27 = v15;
v28 = v14;
result = v11
+ (unsigned int)OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::FacetStrip::connectUniformQuads(
(char *)&v19,
(long long)&v26);
++v9;
v8 += v18;
v10 += v18;
v6 += a2;
v11 = result;
v7 = v17;
}
while ( (_DWORD)v25 != v9 );
return result;
}
| getInteriorRingFacets:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV qword ptr [RSP + 0x40],R8
MOV qword ptr [RSP + 0x8],RDX
TEST ESI,ESI
JLE 0x001a406f
MOV R14D,ESI
CMP ESI,0x1
JNZ 0x001a3f75
MOV RAX,qword ptr [RSP + 0x40]
MOVUPS XMM0,xmmword ptr [RAX]
LEA RDX,[RSP + 0x60]
MOVAPS xmmword ptr [RDX],XMM0
MOV RSI,qword ptr [RSP + 0x8]
CALL 0x001a3e9c
JMP 0x001a4071
LAB_001a3f75:
LEA EAX,[R14 + -0x2]
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x20],XMM0
MOV dword ptr [RSP + 0x30],0x0
ADD CL,CL
INC CL
MOV dword ptr [RSP + 0x24],R14D
MOV dword ptr [RSP + 0x1c],EAX
MOV dword ptr [RSP + 0x28],EAX
MOV byte ptr [RSP + 0x20],CL
TEST EDI,EDI
JLE 0x001a406f
MOV ECX,R14D
IMUL ECX,EDI
MOV RBP,qword ptr [RSP + 0x8]
ADD ECX,EBP
LEA EAX,[RDI + -0x1]
MOV dword ptr [RSP + 0x14],EAX
LEA EAX,[RDI + 0x1]
IMUL EAX,R14D
LEA EBX,[RAX + RBP*0x1]
ADD EBX,-0x2
XOR R15D,R15D
MOV R12D,ECX
XOR R13D,R13D
MOV qword ptr [RSP + 0x48],RDI
MOV dword ptr [RSP + 0x18],ECX
LAB_001a3fd9:
MOV dword ptr [RSP + 0x2c],EBP
TEST R15D,R15D
MOV EAX,EBP
CMOVZ EAX,ECX
MOV dword ptr [RSP + 0x38],R12D
DEC EAX
MOV dword ptr [RSP + 0x34],EAX
CMP R15D,dword ptr [RSP + 0x14]
JGE 0x001a4003
LEA EAX,[R14 + RBP*0x1]
MOV dword ptr [RSP + 0x30],EAX
MOV EAX,EBX
JMP 0x001a400e
LAB_001a4003:
MOV RAX,qword ptr [RSP + 0x8]
MOV dword ptr [RSP + 0x30],EAX
MOV EAX,ECX
LAB_001a400e:
MOV dword ptr [RSP + 0x3c],EAX
MOV RDX,qword ptr [RSP + 0x40]
MOV EAX,dword ptr [RDX + 0xc]
MOV ECX,EAX
IMUL ECX,R13D
MOVSXD RCX,ECX
SHL RCX,0x2
ADD RCX,qword ptr [RDX]
MOV EDX,dword ptr [RDX + 0x8]
MOV qword ptr [RSP + 0x50],RCX
MOV dword ptr [RSP + 0x58],EDX
MOV dword ptr [RSP + 0x5c],EAX
LEA RDI,[RSP + 0x20]
LEA RSI,[RSP + 0x50]
CALL 0x001a33de
ADD EAX,R13D
INC R15D
MOV ECX,dword ptr [RSP + 0x1c]
ADD EBX,ECX
ADD R12D,ECX
ADD EBP,R14D
MOV R13D,EAX
CMP dword ptr [RSP + 0x48],R15D
MOV ECX,dword ptr [RSP + 0x18]
JNZ 0x001a3fd9
JMP 0x001a4071
LAB_001a406f:
XOR EAX,EAX
LAB_001a4071:
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Bfr::qsub::getInteriorRingFacets(int, int, int, bool,
OpenSubdiv::v3_6_0::Bfr::(anonymous namespace)::FacetArray) */
ulong OpenSubdiv::v3_6_0::Bfr::qsub::getInteriorRingFacets
(int8 param_1,uint param_2,ulong param_3,char param_4,long *param_5)
{
uint uVar1;
int iVar2;
uint uVar3;
ulong uVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
int iVar11;
long local_88;
int8 uStack_80;
int local_78;
int local_74;
int local_70;
int local_6c;
long *local_68;
int8 local_60;
long local_58;
int4 local_50;
int local_4c;
int4 local_48;
int4 uStack_44;
int4 uStack_40;
int4 uStack_3c;
if (0 < (int)param_2) {
local_68 = param_5;
if (param_2 == 1) {
local_48 = (int4)*param_5;
uStack_44 = *(int4 *)((long)param_5 + 4);
uStack_40 = (int4)param_5[1];
uStack_3c = *(int4 *)((long)param_5 + 0xc);
uVar4 = getCenterFacets(param_1,param_3);
return uVar4;
}
uVar1 = param_2 - 2;
local_88 = (ulong)param_2 << 0x20;
uStack_80 = (ulong)uVar1;
local_88 = CONCAT71(local_88._1_7_,param_4 * '\x02' + '\x01');
iVar9 = (int)param_1;
if (0 < iVar9) {
iVar7 = (int)param_3;
iVar5 = param_2 * iVar9 + iVar7;
iVar6 = (iVar9 + 1) * param_2 + iVar7 + -2;
iVar11 = 0;
uVar3 = 0;
iVar10 = iVar5;
local_60 = param_1;
do {
iVar8 = (int)param_3;
uStack_80 = CONCAT44(iVar8,(int4)uStack_80);
local_74 = iVar8;
if (iVar11 == 0) {
local_74 = iVar5;
}
local_74 = local_74 + -1;
local_6c = iVar5;
local_78 = iVar7;
if (iVar11 < iVar9 + -1) {
local_6c = iVar6;
local_78 = param_2 + iVar8;
}
local_4c = *(int *)((long)local_68 + 0xc);
local_58 = (long)(int)(local_4c * uVar3) * 4 + *local_68;
local_50 = (int4)local_68[1];
local_70 = iVar10;
iVar2 = (anonymous_namespace)::FacetStrip::connectUniformQuads
((FacetStrip *)&local_88,&local_58);
uVar3 = iVar2 + uVar3;
iVar11 = iVar11 + 1;
iVar6 = iVar6 + uVar1;
iVar10 = iVar10 + uVar1;
param_3 = (ulong)(iVar8 + param_2);
} while ((int)local_60 != iVar11);
return (ulong)uVar3;
}
}
return 0;
}
| |
35,190 | rlCubemapParameters | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rlgl.h | void rlCubemapParameters(unsigned int id, int param, int value)
{
#if !defined(GRAPHICS_API_OPENGL_11)
glBindTexture(GL_TEXTURE_CUBE_MAP, id);
// Reset anisotropy filter, in case it was set
glTexParameterf(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MAX_ANISOTROPY_EXT, 1.0f);
switch (param)
{
case RL_TEXTURE_WRAP_S:
case RL_TEXTURE_WRAP_T:
{
if (value == RL_TEXTURE_WRAP_MIRROR_CLAMP)
{
if (RLGL.ExtSupported.texMirrorClamp) glTexParameteri(GL_TEXTURE_CUBE_MAP, param, value);
else TRACELOG(RL_LOG_WARNING, "GL: Clamp mirror wrap mode not supported (GL_MIRROR_CLAMP_EXT)");
}
else glTexParameteri(GL_TEXTURE_CUBE_MAP, param, value);
} break;
case RL_TEXTURE_MAG_FILTER:
case RL_TEXTURE_MIN_FILTER: glTexParameteri(GL_TEXTURE_CUBE_MAP, param, value); break;
case RL_TEXTURE_FILTER_ANISOTROPIC:
{
if (value <= RLGL.ExtSupported.maxAnisotropyLevel) glTexParameterf(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MAX_ANISOTROPY_EXT, (float)value);
else if (RLGL.ExtSupported.maxAnisotropyLevel > 0.0f)
{
TRACELOG(RL_LOG_WARNING, "GL: Maximum anisotropic filter level supported is %iX", id, (int)RLGL.ExtSupported.maxAnisotropyLevel);
glTexParameterf(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MAX_ANISOTROPY_EXT, (float)value);
}
else TRACELOG(RL_LOG_WARNING, "GL: Anisotropic filtering not supported");
} break;
#if defined(GRAPHICS_API_OPENGL_33)
case RL_TEXTURE_MIPMAP_BIAS_RATIO: glTexParameterf(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_LOD_BIAS, value/100.0f);
#endif
default: break;
}
glBindTexture(GL_TEXTURE_CUBE_MAP, 0);
#endif
} | O0 | c | rlCubemapParameters:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl %edx, -0xc(%rbp)
movq 0x165ab8(%rip), %rax # 0x218360
movl -0x4(%rbp), %esi
movl $0x8513, %edi # imm = 0x8513
movl %edi, -0x14(%rbp)
callq *%rax
movl -0x14(%rbp), %edi
movq 0x1670b1(%rip), %rax # 0x219970
movl $0x84fe, %esi # imm = 0x84FE
movss 0xf1828(%rip), %xmm0 # 0x1a40f4
callq *%rax
movl -0x8(%rbp), %eax
movl %eax, -0x10(%rbp)
addl $0xffffd800, %eax # imm = 0xFFFFD800
subl $0x2, %eax
jb 0xb296c
jmp 0xb28e4
movl -0x10(%rbp), %eax
addl $0xffffd7fe, %eax # imm = 0xFFFFD7FE
subl $0x2, %eax
jb 0xb2916
jmp 0xb28f3
movl -0x10(%rbp), %eax
subl $0x3000, %eax # imm = 0x3000
je 0xb2985
jmp 0xb2903
movl -0x10(%rbp), %eax
subl $0x4000, %eax # imm = 0x4000
je 0xb2a10
jmp 0xb2a34
cmpl $0x8742, -0xc(%rbp) # imm = 0x8742
jne 0xb2953
testb $0x1, 0x168346(%rip) # 0x21ac6c
je 0xb293e
movq 0x167051(%rip), %rax # 0x219980
movl -0x8(%rbp), %esi
movl -0xc(%rbp), %edx
movl $0x8513, %edi # imm = 0x8513
callq *%rax
jmp 0xb2951
movl $0x4, %edi
leaq 0x101a19(%rip), %rsi # 0x1b4363
movb $0x0, %al
callq 0x182c40
jmp 0xb2967
movq 0x167026(%rip), %rax # 0x219980
movl -0x8(%rbp), %esi
movl -0xc(%rbp), %edx
movl $0x8513, %edi # imm = 0x8513
callq *%rax
jmp 0xb2a36
movq 0x16700d(%rip), %rax # 0x219980
movl -0x8(%rbp), %esi
movl -0xc(%rbp), %edx
movl $0x8513, %edi # imm = 0x8513
callq *%rax
jmp 0xb2a36
cvtsi2ssl -0xc(%rbp), %xmm1
movss 0x1682de(%rip), %xmm0 # 0x21ac70
ucomiss %xmm1, %xmm0
jb 0xb29b1
movq 0x166fd2(%rip), %rax # 0x219970
cvtsi2ssl -0xc(%rbp), %xmm0
movl $0x8513, %edi # imm = 0x8513
movl $0x84fe, %esi # imm = 0x84FE
callq *%rax
jmp 0xb2a0e
movss 0x1682b7(%rip), %xmm0 # 0x21ac70
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0xb29f9
movl -0x4(%rbp), %edx
cvttss2si 0x1682a4(%rip), %ecx # 0x21ac70
movl $0x4, %edi
leaq 0x1019ca(%rip), %rsi # 0x1b43a2
movb $0x0, %al
callq 0x182c40
movq 0x166f8a(%rip), %rax # 0x219970
cvtsi2ssl -0xc(%rbp), %xmm0
movl $0x8513, %edi # imm = 0x8513
movl $0x84fe, %esi # imm = 0x84FE
callq *%rax
jmp 0xb2a0c
movl $0x4, %edi
leaq 0x1019d3(%rip), %rsi # 0x1b43d8
movb $0x0, %al
callq 0x182c40
jmp 0xb2a0e
jmp 0xb2a36
movq 0x166f59(%rip), %rax # 0x219970
cvtsi2ssl -0xc(%rbp), %xmm0
movss 0x100914(%rip), %xmm1 # 0x1b3338
divss %xmm1, %xmm0
movl $0x8513, %edi # imm = 0x8513
movl $0x8501, %esi # imm = 0x8501
callq *%rax
jmp 0xb2a36
movl $0x8513, %edi # imm = 0x8513
xorl %esi, %esi
callq *0x16591d(%rip) # 0x218360
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
| rlCubemapParameters:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
mov [rbp+var_8], esi
mov [rbp+var_C], edx
mov rax, cs:glad_glBindTexture
mov esi, [rbp+var_4]
mov edi, 8513h
mov [rbp+var_14], edi
call rax ; glad_glBindTexture
mov edi, [rbp+var_14]
mov rax, cs:glad_glTexParameterf
mov esi, 84FEh
movss xmm0, cs:dword_1A40F4
call rax ; glad_glTexParameterf
mov eax, [rbp+var_8]
mov [rbp+var_10], eax
add eax, 0FFFFD800h
sub eax, 2
jb loc_B296C
jmp short $+2
loc_B28E4:
mov eax, [rbp+var_10]
add eax, 0FFFFD7FEh
sub eax, 2
jb short loc_B2916
jmp short $+2
loc_B28F3:
mov eax, [rbp+var_10]
sub eax, 3000h
jz loc_B2985
jmp short $+2
loc_B2903:
mov eax, [rbp+var_10]
sub eax, 4000h
jz loc_B2A10
jmp loc_B2A34
loc_B2916:
cmp [rbp+var_C], 8742h
jnz short loc_B2953
test cs:byte_21AC6C, 1
jz short loc_B293E
mov rax, cs:glad_glTexParameteri
mov esi, [rbp+var_8]
mov edx, [rbp+var_C]
mov edi, 8513h
call rax ; glad_glTexParameteri
jmp short loc_B2951
loc_B293E:
mov edi, 4
lea rsi, aGlClampMirrorW; "GL: Clamp mirror wrap mode not supporte"...
mov al, 0
call TraceLog
loc_B2951:
jmp short loc_B2967
loc_B2953:
mov rax, cs:glad_glTexParameteri
mov esi, [rbp+var_8]
mov edx, [rbp+var_C]
mov edi, 8513h
call rax ; glad_glTexParameteri
loc_B2967:
jmp loc_B2A36
loc_B296C:
mov rax, cs:glad_glTexParameteri
mov esi, [rbp+var_8]
mov edx, [rbp+var_C]
mov edi, 8513h
call rax ; glad_glTexParameteri
jmp loc_B2A36
loc_B2985:
cvtsi2ss xmm1, [rbp+var_C]
movss xmm0, cs:dword_21AC70
ucomiss xmm0, xmm1
jb short loc_B29B1
mov rax, cs:glad_glTexParameterf
cvtsi2ss xmm0, [rbp+var_C]
mov edi, 8513h
mov esi, 84FEh
call rax ; glad_glTexParameterf
jmp short loc_B2A0E
loc_B29B1:
movss xmm0, cs:dword_21AC70
xorps xmm1, xmm1
ucomiss xmm0, xmm1
jbe short loc_B29F9
mov edx, [rbp+var_4]
cvttss2si ecx, cs:dword_21AC70
mov edi, 4
lea rsi, aGlMaximumAniso; "GL: Maximum anisotropic filter level su"...
mov al, 0
call TraceLog
mov rax, cs:glad_glTexParameterf
cvtsi2ss xmm0, [rbp+var_C]
mov edi, 8513h
mov esi, 84FEh
call rax ; glad_glTexParameterf
jmp short loc_B2A0C
loc_B29F9:
mov edi, 4
lea rsi, aGlAnisotropicF; "GL: Anisotropic filtering not supported"
mov al, 0
call TraceLog
loc_B2A0C:
jmp short $+2
loc_B2A0E:
jmp short loc_B2A36
loc_B2A10:
mov rax, cs:glad_glTexParameterf
cvtsi2ss xmm0, [rbp+var_C]
movss xmm1, cs:dword_1B3338
divss xmm0, xmm1
mov edi, 8513h
mov esi, 8501h
call rax ; glad_glTexParameterf
loc_B2A34:
jmp short $+2
loc_B2A36:
mov edi, 8513h
xor esi, esi
call cs:glad_glBindTexture
add rsp, 20h
pop rbp
retn
| long long rlCubemapParameters(unsigned int a1, unsigned int a2, int a3)
{
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
glad_glBindTexture(34067LL, a1);
glad_glTexParameterf(34067LL, 34046LL, 1.0);
if ( a2 - 10240 < 2 )
{
LABEL_8:
glad_glTexParameteri(34067LL, a2, (unsigned int)a3);
return glad_glBindTexture(34067LL, 0LL);
}
if ( a2 - 10242 < 2 )
{
if ( a3 == 34626 && (byte_21AC6C & 1) == 0 )
{
TraceLog(4, (unsigned int)"GL: Clamp mirror wrap mode not supported (GL_MIRROR_CLAMP_EXT)", v3, v4, v5, v6);
return glad_glBindTexture(34067LL, 0LL);
}
goto LABEL_8;
}
if ( a2 == 12288 )
{
if ( *(float *)&dword_21AC70 < (float)a3 )
{
if ( *(float *)&dword_21AC70 <= 0.0 )
{
TraceLog(4, (unsigned int)"GL: Anisotropic filtering not supported", v3, v4, v5, v6);
}
else
{
TraceLog(
4,
(unsigned int)"GL: Maximum anisotropic filter level supported is %iX",
a1,
(int)*(float *)&dword_21AC70,
v5,
v6);
glad_glTexParameterf(34067LL, 34046LL, (float)a3);
}
}
else
{
glad_glTexParameterf(34067LL, 34046LL, (float)a3);
}
}
else if ( a2 == 0x4000 )
{
glad_glTexParameterf(34067LL, 34049LL, (float)a3 / 100.0);
}
return glad_glBindTexture(34067LL, 0LL);
}
| rlCubemapParameters:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
MOV dword ptr [RBP + -0x8],ESI
MOV dword ptr [RBP + -0xc],EDX
MOV RAX,qword ptr [0x00318360]
MOV ESI,dword ptr [RBP + -0x4]
MOV EDI,0x8513
MOV dword ptr [RBP + -0x14],EDI
CALL RAX
MOV EDI,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [0x00319970]
MOV ESI,0x84fe
MOVSS XMM0,dword ptr [0x002a40f4]
CALL RAX
MOV EAX,dword ptr [RBP + -0x8]
MOV dword ptr [RBP + -0x10],EAX
ADD EAX,0xffffd800
SUB EAX,0x2
JC 0x001b296c
JMP 0x001b28e4
LAB_001b28e4:
MOV EAX,dword ptr [RBP + -0x10]
ADD EAX,0xffffd7fe
SUB EAX,0x2
JC 0x001b2916
JMP 0x001b28f3
LAB_001b28f3:
MOV EAX,dword ptr [RBP + -0x10]
SUB EAX,0x3000
JZ 0x001b2985
JMP 0x001b2903
LAB_001b2903:
MOV EAX,dword ptr [RBP + -0x10]
SUB EAX,0x4000
JZ 0x001b2a10
JMP 0x001b2a34
LAB_001b2916:
CMP dword ptr [RBP + -0xc],0x8742
JNZ 0x001b2953
TEST byte ptr [0x0031ac6c],0x1
JZ 0x001b293e
MOV RAX,qword ptr [0x00319980]
MOV ESI,dword ptr [RBP + -0x8]
MOV EDX,dword ptr [RBP + -0xc]
MOV EDI,0x8513
CALL RAX
JMP 0x001b2951
LAB_001b293e:
MOV EDI,0x4
LEA RSI,[0x2b4363]
MOV AL,0x0
CALL 0x00282c40
LAB_001b2951:
JMP 0x001b2967
LAB_001b2953:
MOV RAX,qword ptr [0x00319980]
MOV ESI,dword ptr [RBP + -0x8]
MOV EDX,dword ptr [RBP + -0xc]
MOV EDI,0x8513
CALL RAX
LAB_001b2967:
JMP 0x001b2a36
LAB_001b296c:
MOV RAX,qword ptr [0x00319980]
MOV ESI,dword ptr [RBP + -0x8]
MOV EDX,dword ptr [RBP + -0xc]
MOV EDI,0x8513
CALL RAX
JMP 0x001b2a36
LAB_001b2985:
CVTSI2SS XMM1,dword ptr [RBP + -0xc]
MOVSS XMM0,dword ptr [0x0031ac70]
UCOMISS XMM0,XMM1
JC 0x001b29b1
MOV RAX,qword ptr [0x00319970]
CVTSI2SS XMM0,dword ptr [RBP + -0xc]
MOV EDI,0x8513
MOV ESI,0x84fe
CALL RAX
JMP 0x001b2a0e
LAB_001b29b1:
MOVSS XMM0,dword ptr [0x0031ac70]
XORPS XMM1,XMM1
UCOMISS XMM0,XMM1
JBE 0x001b29f9
MOV EDX,dword ptr [RBP + -0x4]
CVTTSS2SI ECX,dword ptr [0x0031ac70]
MOV EDI,0x4
LEA RSI,[0x2b43a2]
MOV AL,0x0
CALL 0x00282c40
MOV RAX,qword ptr [0x00319970]
CVTSI2SS XMM0,dword ptr [RBP + -0xc]
MOV EDI,0x8513
MOV ESI,0x84fe
CALL RAX
JMP 0x001b2a0c
LAB_001b29f9:
MOV EDI,0x4
LEA RSI,[0x2b43d8]
MOV AL,0x0
CALL 0x00282c40
LAB_001b2a0c:
JMP 0x001b2a0e
LAB_001b2a0e:
JMP 0x001b2a36
LAB_001b2a10:
MOV RAX,qword ptr [0x00319970]
CVTSI2SS XMM0,dword ptr [RBP + -0xc]
MOVSS XMM1,dword ptr [0x002b3338]
DIVSS XMM0,XMM1
MOV EDI,0x8513
MOV ESI,0x8501
CALL RAX
LAB_001b2a34:
JMP 0x001b2a36
LAB_001b2a36:
MOV EDI,0x8513
XOR ESI,ESI
CALL qword ptr [0x00318360]
ADD RSP,0x20
POP RBP
RET
|
void rlCubemapParameters(int4 param_1,int param_2,int param_3)
{
(*glad_glBindTexture)(0x8513,param_1);
(*glad_glTexParameterf)(DAT_002a40f4,0x8513,0x84fe);
if (param_2 - 0x2800U < 2) {
(*glad_glTexParameteri)(0x8513,param_2,param_3);
}
else if (param_2 - 0x2802U < 2) {
if (param_3 == 0x8742) {
if ((DAT_0031ac6c & 1) == 0) {
TraceLog(4,"GL: Clamp mirror wrap mode not supported (GL_MIRROR_CLAMP_EXT)");
}
else {
(*glad_glTexParameteri)(0x8513,param_2,0x8742);
}
}
else {
(*glad_glTexParameteri)(0x8513,param_2,param_3);
}
}
else if (param_2 == 0x3000) {
if (DAT_0031ac70 < (float)param_3) {
if (DAT_0031ac70 <= 0.0) {
TraceLog(4,"GL: Anisotropic filtering not supported");
}
else {
TraceLog(4,"GL: Maximum anisotropic filter level supported is %iX",param_1,(int)DAT_0031ac70
);
(*glad_glTexParameterf)((float)param_3,0x8513,0x84fe);
}
}
else {
(*glad_glTexParameterf)((float)param_3,0x8513,0x84fe);
}
}
else if (param_2 == 0x4000) {
(*glad_glTexParameterf)((float)param_3 / DAT_002b3338,0x8513,0x8501);
}
(*glad_glBindTexture)(0x8513,0);
return;
}
| |
35,191 | rlCubemapParameters | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rlgl.h | void rlCubemapParameters(unsigned int id, int param, int value)
{
#if !defined(GRAPHICS_API_OPENGL_11)
glBindTexture(GL_TEXTURE_CUBE_MAP, id);
// Reset anisotropy filter, in case it was set
glTexParameterf(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MAX_ANISOTROPY_EXT, 1.0f);
switch (param)
{
case RL_TEXTURE_WRAP_S:
case RL_TEXTURE_WRAP_T:
{
if (value == RL_TEXTURE_WRAP_MIRROR_CLAMP)
{
if (RLGL.ExtSupported.texMirrorClamp) glTexParameteri(GL_TEXTURE_CUBE_MAP, param, value);
else TRACELOG(RL_LOG_WARNING, "GL: Clamp mirror wrap mode not supported (GL_MIRROR_CLAMP_EXT)");
}
else glTexParameteri(GL_TEXTURE_CUBE_MAP, param, value);
} break;
case RL_TEXTURE_MAG_FILTER:
case RL_TEXTURE_MIN_FILTER: glTexParameteri(GL_TEXTURE_CUBE_MAP, param, value); break;
case RL_TEXTURE_FILTER_ANISOTROPIC:
{
if (value <= RLGL.ExtSupported.maxAnisotropyLevel) glTexParameterf(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MAX_ANISOTROPY_EXT, (float)value);
else if (RLGL.ExtSupported.maxAnisotropyLevel > 0.0f)
{
TRACELOG(RL_LOG_WARNING, "GL: Maximum anisotropic filter level supported is %iX", id, (int)RLGL.ExtSupported.maxAnisotropyLevel);
glTexParameterf(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MAX_ANISOTROPY_EXT, (float)value);
}
else TRACELOG(RL_LOG_WARNING, "GL: Anisotropic filtering not supported");
} break;
#if defined(GRAPHICS_API_OPENGL_33)
case RL_TEXTURE_MIPMAP_BIAS_RATIO: glTexParameterf(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_LOD_BIAS, value/100.0f);
#endif
default: break;
}
glBindTexture(GL_TEXTURE_CUBE_MAP, 0);
#endif
} | O3 | c | rlCubemapParameters:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebx
movl %esi, %r14d
movl %edi, %ebp
movl $0x8513, %edi # imm = 0x8513
movl %ebp, %esi
callq *0xd6695(%rip) # 0x1392a0
movss 0x70f09(%rip), %xmm0 # 0xd3b1c
movl $0x8513, %edi # imm = 0x8513
movl $0x84fe, %esi # imm = 0x84FE
callq *0xd7c8d(%rip) # 0x13a8b0
cmpl $0x2fff, %r14d # imm = 0x2FFF
jg 0x62c81
leal -0x2800(%r14), %eax
cmpl $0x2, %eax
jb 0x62c6c
leal -0x2802(%r14), %eax
cmpl $0x2, %eax
jae 0x62d2d
cmpl $0x8742, %ebx # imm = 0x8742
jne 0x62c6c
cmpb $0x1, 0xd8f55(%rip) # 0x13bbac
jne 0x62d11
movl $0x8513, %edi # imm = 0x8513
movl %r14d, %esi
movl $0x8742, %edx # imm = 0x8742
jmp 0x62c76
movl $0x8513, %edi # imm = 0x8513
movl %r14d, %esi
movl %ebx, %edx
callq *0xd7c44(%rip) # 0x13a8c0
jmp 0x62d2d
cmpl $0x3000, %r14d # imm = 0x3000
je 0x62cb2
cmpl $0x4000, %r14d # imm = 0x4000
jne 0x62d2d
xorps %xmm0, %xmm0
cvtsi2ss %ebx, %xmm0
divss 0x7a636(%rip), %xmm0 # 0xdd2dc
movl $0x8513, %edi # imm = 0x8513
movl $0x8501, %esi # imm = 0x8501
jmp 0x62d09
xorps %xmm0, %xmm0
cvtsi2ss %ebx, %xmm0
movss 0xd8eef(%rip), %xmm2 # 0x13bbb0
ucomiss %xmm0, %xmm2
jae 0x62cff
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm2
jbe 0x62d1a
cvttss2si %xmm2, %ecx
leaq 0x7bc69(%rip), %rsi # 0xde942
movl $0x4, %edi
movl %ebp, %edx
xorl %eax, %eax
movss %xmm0, 0xc(%rsp)
callq 0xb9db7
movl $0x8513, %edi # imm = 0x8513
movl $0x84fe, %esi # imm = 0x84FE
movss 0xc(%rsp), %xmm0
jmp 0x62d09
movl $0x8513, %edi # imm = 0x8513
movl $0x84fe, %esi # imm = 0x84FE
callq *0xd7ba1(%rip) # 0x13a8b0
jmp 0x62d2d
leaq 0x7bbeb(%rip), %rsi # 0xde903
jmp 0x62d21
leaq 0x7bc57(%rip), %rsi # 0xde978
movl $0x4, %edi
xorl %eax, %eax
callq 0xb9db7
movq 0xd656c(%rip), %rax # 0x1392a0
movl $0x8513, %edi # imm = 0x8513
xorl %esi, %esi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmpq *%rax
| rlCubemapParameters:
push rbp
push r14
push rbx
sub rsp, 10h
mov ebx, edx
mov r14d, esi
mov ebp, edi
mov edi, 8513h
mov esi, ebp
call cs:glad_glBindTexture
movss xmm0, cs:dword_D3B1C
mov edi, 8513h
mov esi, 84FEh
call cs:glad_glTexParameterf
cmp r14d, 2FFFh
jg short loc_62C81
lea eax, [r14-2800h]
cmp eax, 2
jb short loc_62C6C
lea eax, [r14-2802h]
cmp eax, 2
jnb loc_62D2D
cmp ebx, 8742h
jnz short loc_62C6C
cmp byte ptr cs:word_13BBAC, 1
jnz loc_62D11
mov edi, 8513h
mov esi, r14d
mov edx, 8742h
jmp short loc_62C76
loc_62C6C:
mov edi, 8513h
mov esi, r14d
mov edx, ebx
loc_62C76:
call cs:glad_glTexParameteri
jmp loc_62D2D
loc_62C81:
cmp r14d, 3000h
jz short loc_62CB2
cmp r14d, 4000h
jnz loc_62D2D
xorps xmm0, xmm0
cvtsi2ss xmm0, ebx
divss xmm0, cs:dword_DD2DC
mov edi, 8513h
mov esi, 8501h
jmp short loc_62D09
loc_62CB2:
xorps xmm0, xmm0
cvtsi2ss xmm0, ebx
movss xmm2, cs:dword_13BBB0
ucomiss xmm2, xmm0
jnb short loc_62CFF
xorps xmm1, xmm1
ucomiss xmm2, xmm1
jbe short loc_62D1A
cvttss2si ecx, xmm2
lea rsi, aGlMaximumAniso; "GL: Maximum anisotropic filter level su"...
mov edi, 4
mov edx, ebp
xor eax, eax
movss [rsp+28h+var_1C], xmm0
call TraceLog
mov edi, 8513h
mov esi, 84FEh
movss xmm0, [rsp+28h+var_1C]
jmp short loc_62D09
loc_62CFF:
mov edi, 8513h
mov esi, 84FEh
loc_62D09:
call cs:glad_glTexParameterf
jmp short loc_62D2D
loc_62D11:
lea rsi, aGlClampMirrorW; "GL: Clamp mirror wrap mode not supporte"...
jmp short loc_62D21
loc_62D1A:
lea rsi, aGlAnisotropicF; "GL: Anisotropic filtering not supported"
loc_62D21:
mov edi, 4
xor eax, eax
call TraceLog
loc_62D2D:
mov rax, cs:glad_glBindTexture
mov edi, 8513h
xor esi, esi
add rsp, 10h
pop rbx
pop r14
pop rbp
jmp rax
| long long rlCubemapParameters(unsigned int a1, long long a2, int a3)
{
int v4; // edx
int v5; // ecx
int v6; // r8d
int v7; // r9d
long long v8; // rdx
float v9; // xmm0_4
long long v10; // rsi
const char *v11; // rsi
glad_glBindTexture(34067LL, a1);
glad_glTexParameterf(34067LL, 34046LL, 1.0);
if ( (int)a2 > 12287 )
{
if ( (_DWORD)a2 == 12288 )
{
v9 = (float)a3;
if ( *(float *)&dword_13BBB0 >= (float)a3 )
{
v10 = 34046LL;
}
else
{
if ( *(float *)&dword_13BBB0 <= 0.0 )
{
v11 = "GL: Anisotropic filtering not supported";
goto LABEL_19;
}
TraceLog(
4,
(unsigned int)"GL: Maximum anisotropic filter level supported is %iX",
a1,
(int)*(float *)&dword_13BBB0,
v6,
v7);
v10 = 34046LL;
v9 = (float)a3;
}
}
else
{
if ( (_DWORD)a2 != 0x4000 )
return glad_glBindTexture(34067LL, 0LL);
v9 = (float)a3 / 100.0;
v10 = 34049LL;
}
glad_glTexParameterf(34067LL, v10, v9);
return glad_glBindTexture(34067LL, 0LL);
}
if ( (unsigned int)(a2 - 10240) < 2 )
{
LABEL_7:
a2 = (unsigned int)a2;
v8 = (unsigned int)a3;
goto LABEL_8;
}
if ( (unsigned int)(a2 - 10242) < 2 )
{
if ( a3 == 34626 )
{
if ( (_BYTE)word_13BBAC == 1 )
{
a2 = (unsigned int)a2;
v8 = 34626LL;
LABEL_8:
glad_glTexParameteri(34067LL, a2, v8);
return glad_glBindTexture(34067LL, 0LL);
}
v11 = "GL: Clamp mirror wrap mode not supported (GL_MIRROR_CLAMP_EXT)";
LABEL_19:
TraceLog(4, (_DWORD)v11, v4, v5, v6, v7);
return glad_glBindTexture(34067LL, 0LL);
}
goto LABEL_7;
}
return glad_glBindTexture(34067LL, 0LL);
}
| rlCubemapParameters:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV EBX,EDX
MOV R14D,ESI
MOV EBP,EDI
MOV EDI,0x8513
MOV ESI,EBP
CALL qword ptr [0x002392a0]
MOVSS XMM0,dword ptr [0x001d3b1c]
MOV EDI,0x8513
MOV ESI,0x84fe
CALL qword ptr [0x0023a8b0]
CMP R14D,0x2fff
JG 0x00162c81
LEA EAX,[R14 + -0x2800]
CMP EAX,0x2
JC 0x00162c6c
LEA EAX,[R14 + -0x2802]
CMP EAX,0x2
JNC 0x00162d2d
CMP EBX,0x8742
JNZ 0x00162c6c
CMP byte ptr [0x0023bbac],0x1
JNZ 0x00162d11
MOV EDI,0x8513
MOV ESI,R14D
MOV EDX,0x8742
JMP 0x00162c76
LAB_00162c6c:
MOV EDI,0x8513
MOV ESI,R14D
MOV EDX,EBX
LAB_00162c76:
CALL qword ptr [0x0023a8c0]
JMP 0x00162d2d
LAB_00162c81:
CMP R14D,0x3000
JZ 0x00162cb2
CMP R14D,0x4000
JNZ 0x00162d2d
XORPS XMM0,XMM0
CVTSI2SS XMM0,EBX
DIVSS XMM0,dword ptr [0x001dd2dc]
MOV EDI,0x8513
MOV ESI,0x8501
JMP 0x00162d09
LAB_00162cb2:
XORPS XMM0,XMM0
CVTSI2SS XMM0,EBX
MOVSS XMM2,dword ptr [0x0023bbb0]
UCOMISS XMM2,XMM0
JNC 0x00162cff
XORPS XMM1,XMM1
UCOMISS XMM2,XMM1
JBE 0x00162d1a
CVTTSS2SI ECX,XMM2
LEA RSI,[0x1de942]
MOV EDI,0x4
MOV EDX,EBP
XOR EAX,EAX
MOVSS dword ptr [RSP + 0xc],XMM0
CALL 0x001b9db7
MOV EDI,0x8513
MOV ESI,0x84fe
MOVSS XMM0,dword ptr [RSP + 0xc]
JMP 0x00162d09
LAB_00162cff:
MOV EDI,0x8513
MOV ESI,0x84fe
LAB_00162d09:
CALL qword ptr [0x0023a8b0]
JMP 0x00162d2d
LAB_00162d11:
LEA RSI,[0x1de903]
JMP 0x00162d21
LAB_00162d1a:
LEA RSI,[0x1de978]
LAB_00162d21:
MOV EDI,0x4
XOR EAX,EAX
CALL 0x001b9db7
LAB_00162d2d:
MOV RAX,qword ptr [0x002392a0]
MOV EDI,0x8513
XOR ESI,ESI
ADD RSP,0x10
POP RBX
POP R14
POP RBP
JMP RAX
|
void rlCubemapParameters(int4 param_1,int param_2,int param_3)
{
int8 uVar1;
char *pcVar2;
float fVar3;
(*glad_glBindTexture)(0x8513,param_1);
(*glad_glTexParameterf)(DAT_001d3b1c,0x8513,0x84fe);
if (param_2 < 0x3000) {
if (1 < param_2 - 0x2800U) {
if (1 < param_2 - 0x2802U) goto LAB_00162d2d;
if (param_3 == 0x8742) {
if (DAT_0023bbac != '\x01') {
pcVar2 = "GL: Clamp mirror wrap mode not supported (GL_MIRROR_CLAMP_EXT)";
goto LAB_00162d21;
}
param_3 = 0x8742;
}
}
(*glad_glTexParameteri)(0x8513,param_2,param_3);
}
else {
if (param_2 == 0x3000) {
fVar3 = (float)param_3;
if (fVar3 <= DAT_0023bbb0) {
uVar1 = 0x84fe;
}
else {
if (DAT_0023bbb0 <= 0.0) {
pcVar2 = "GL: Anisotropic filtering not supported";
LAB_00162d21:
TraceLog(4,pcVar2);
goto LAB_00162d2d;
}
TraceLog(4,"GL: Maximum anisotropic filter level supported is %iX",param_1,(int)DAT_0023bbb0
);
uVar1 = 0x84fe;
}
}
else {
if (param_2 != 0x4000) goto LAB_00162d2d;
fVar3 = (float)param_3 / DAT_001dd2dc;
uVar1 = 0x8501;
}
(*glad_glTexParameterf)(fVar3,0x8513,uVar1);
}
LAB_00162d2d:
/* WARNING: Could not recover jumptable at 0x00162d43. Too many branches */
/* WARNING: Treating indirect jump as call */
(*glad_glBindTexture)(0x8513,0);
return;
}
| |
35,192 | my_wc_to_printable_8bit | eloqsql/strings/ctype.c | int
my_wc_to_printable_8bit(CHARSET_INFO *cs, my_wc_t wc,
uchar *str, uchar *end)
{
/*
Special case: swe7 does not have the backslash character.
Use dot instead of backslash for escaping.
*/
uint bs= cs->tab_to_uni && cs->tab_to_uni['\\'] != '\\' ? '.' : '\\';
DBUG_ASSERT(cs->mbminlen == 1);
/*
Additionally, if the original swe7 string contains backslashes,
replace them to dots, so this error message:
Invalid swe7 character string: '\xEF\xBC\xB4'
is displayed as:
Invalid swe7 character string: '.xEF.xBC.xB4'
which is more readable than what would happen without '\'-to-dot mapping:
Invalid swe7 character string: '.005CxEF.005CxBC.005CxB4'
*/
if (bs == '.' && wc == '\\')
wc= '.';
return my_wc_to_printable_ex(cs, wc, str, end, bs, 1, 1);
} | O3 | c | my_wc_to_printable_8bit:
movq 0x68(%rdi), %rax
testq %rax, %rax
je 0x58895
cmpw $0x5c, 0xb8(%rax)
setne %al
movl $0x2e, %r9d
movl $0x5c, %r8d
cmovnel %r9d, %r8d
jmp 0x5889d
movl $0x5c, %r8d
xorl %eax, %eax
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
testb %al, %al
movl $0x2e, %eax
cmoveq %rsi, %rax
cmpq $0x5c, %rsi
cmovneq %rsi, %rax
movl $0x1, (%rsp)
movq %rax, %rsi
movl $0x1, %r9d
callq 0x586c8
addq $0x10, %rsp
popq %rbp
retq
| my_wc_to_printable_8bit:
mov rax, [rdi+68h]
test rax, rax
jz short loc_58895
cmp word ptr [rax+0B8h], 5Ch ; '\'
setnz al
mov r9d, 2Eh ; '.'
mov r8d, 5Ch ; '\'
cmovnz r8d, r9d
jmp short loc_5889D
loc_58895:
mov r8d, 5Ch ; '\'
xor eax, eax
loc_5889D:
push rbp
mov rbp, rsp
sub rsp, 10h
test al, al
mov eax, 2Eh ; '.'
cmovz rax, rsi
cmp rsi, 5Ch ; '\'
cmovnz rax, rsi
mov [rsp+18h+var_18], 1
mov rsi, rax
mov r9d, 1
call my_wc_to_printable_ex
add rsp, 10h
pop rbp
retn
| long long my_wc_to_printable_8bit(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
long long v4; // rax
bool v5; // zf
bool v6; // al
char v7; // r8
unsigned long long v8; // rax
v4 = *(_QWORD *)(a1 + 104);
if ( v4 )
{
v5 = *(_WORD *)(v4 + 184) == 92;
v6 = *(_WORD *)(v4 + 184) != 92;
v7 = 92;
if ( !v5 )
v7 = 46;
}
else
{
v7 = 92;
v6 = 0;
}
v5 = !v6;
v8 = 46LL;
if ( v5 )
v8 = a2;
if ( a2 != 92 )
v8 = a2;
return my_wc_to_printable_ex(a1, v8, a3, a4, v7, 1u, 1u);
}
| my_wc_to_printable_8bit:
MOV RAX,qword ptr [RDI + 0x68]
TEST RAX,RAX
JZ 0x00158895
CMP word ptr [RAX + 0xb8],0x5c
SETNZ AL
MOV R9D,0x2e
MOV R8D,0x5c
CMOVNZ R8D,R9D
JMP 0x0015889d
LAB_00158895:
MOV R8D,0x5c
XOR EAX,EAX
LAB_0015889d:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
TEST AL,AL
MOV EAX,0x2e
CMOVZ RAX,RSI
CMP RSI,0x5c
CMOVNZ RAX,RSI
MOV dword ptr [RSP],0x1
MOV RSI,RAX
MOV R9D,0x1
CALL 0x001586c8
ADD RSP,0x10
POP RBP
RET
|
void my_wc_to_printable_8bit(long param_1,long param_2,int8 param_3,int8 param_4)
{
long lVar1;
int8 uVar2;
bool bVar3;
if (*(long *)(param_1 + 0x68) == 0) {
uVar2 = 0x5c;
bVar3 = false;
}
else {
bVar3 = *(short *)(*(long *)(param_1 + 0x68) + 0xb8) != 0x5c;
uVar2 = 0x5c;
if (bVar3) {
uVar2 = 0x2e;
}
}
lVar1 = 0x2e;
if (!bVar3) {
lVar1 = param_2;
}
if (param_2 != 0x5c) {
lVar1 = param_2;
}
my_wc_to_printable_ex(param_1,lVar1,param_3,param_4,uVar2,1,1);
return;
}
| |
35,193 | js_get_array_buffer | bluesky950520[P]quickjs/quickjs.c | static JSArrayBuffer *js_get_array_buffer(JSContext *ctx, JSValue obj)
{
JSObject *p;
if (JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT)
goto fail;
p = JS_VALUE_GET_OBJ(obj);
if (p->class_id != JS_CLASS_ARRAY_BUFFER &&
p->class_id != JS_CLASS_SHARED_ARRAY_BUFFER) {
fail:
JS_ThrowTypeErrorInvalidClass(ctx, JS_CLASS_ARRAY_BUFFER);
return NULL;
}
return p->u.array_buffer;
} | O0 | c | js_get_array_buffer:
subq $0x38, %rsp
movq %rsi, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq %rdi, 0x18(%rsp)
movq 0x28(%rsp), %rax
cmpl $-0x1, %eax
je 0x56e0f
jmp 0x56e37
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movzwl 0x6(%rax), %eax
cmpl $0x13, %eax
je 0x56e5a
movq 0x10(%rsp), %rax
movzwl 0x6(%rax), %eax
cmpl $0x14, %eax
je 0x56e5a
jmp 0x56e37
movq 0x18(%rsp), %rdi
movl $0x13, %esi
callq 0x37160
movq %rax, (%rsp)
movq %rdx, 0x8(%rsp)
movq $0x0, 0x30(%rsp)
jmp 0x56e68
movq 0x10(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
| js_get_array_buffer:
sub rsp, 38h
mov [rsp+38h+var_18], rsi
mov [rsp+38h+var_10], rdx
mov [rsp+38h+var_20], rdi
mov rax, [rsp+38h+var_10]
cmp eax, 0FFFFFFFFh
jz short loc_56E0F
jmp short loc_56E37
loc_56E0F:
mov rax, [rsp+38h+var_18]
mov [rsp+38h+var_28], rax
mov rax, [rsp+38h+var_28]
movzx eax, word ptr [rax+6]
cmp eax, 13h
jz short loc_56E5A
mov rax, [rsp+38h+var_28]
movzx eax, word ptr [rax+6]
cmp eax, 14h
jz short loc_56E5A
jmp short $+2
loc_56E37:
mov rdi, [rsp+38h+var_20]
mov esi, 13h
call JS_ThrowTypeErrorInvalidClass
mov [rsp+38h+var_38], rax
mov [rsp+38h+var_30], rdx
mov [rsp+38h+var_8], 0
jmp short loc_56E68
loc_56E5A:
mov rax, [rsp+38h+var_28]
mov rax, [rax+30h]
mov [rsp+38h+var_8], rax
loc_56E68:
mov rax, [rsp+38h+var_8]
add rsp, 38h
retn
| long long js_get_array_buffer(long long a1, long long a2, int a3)
{
if ( a3 == -1 && (*(_WORD *)(a2 + 6) == 19 || *(_WORD *)(a2 + 6) == 20) )
return *(_QWORD *)(a2 + 48);
JS_ThrowTypeErrorInvalidClass(a1, 19);
return 0LL;
}
| js_get_array_buffer:
SUB RSP,0x38
MOV qword ptr [RSP + 0x20],RSI
MOV qword ptr [RSP + 0x28],RDX
MOV qword ptr [RSP + 0x18],RDI
MOV RAX,qword ptr [RSP + 0x28]
CMP EAX,-0x1
JZ 0x00156e0f
JMP 0x00156e37
LAB_00156e0f:
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x10]
MOVZX EAX,word ptr [RAX + 0x6]
CMP EAX,0x13
JZ 0x00156e5a
MOV RAX,qword ptr [RSP + 0x10]
MOVZX EAX,word ptr [RAX + 0x6]
CMP EAX,0x14
JZ 0x00156e5a
JMP 0x00156e37
LAB_00156e37:
MOV RDI,qword ptr [RSP + 0x18]
MOV ESI,0x13
CALL 0x00137160
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x8],RDX
MOV qword ptr [RSP + 0x30],0x0
JMP 0x00156e68
LAB_00156e5a:
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RSP + 0x30],RAX
LAB_00156e68:
MOV RAX,qword ptr [RSP + 0x30]
ADD RSP,0x38
RET
|
int8 js_get_array_buffer(int8 param_1,long param_2,int param_3)
{
int8 local_8;
if ((param_3 == -1) && ((*(short *)(param_2 + 6) == 0x13 || (*(short *)(param_2 + 6) == 0x14)))) {
local_8 = *(int8 *)(param_2 + 0x30);
}
else {
JS_ThrowTypeErrorInvalidClass(param_1,0x13);
local_8 = 0;
}
return local_8;
}
| |
35,194 | js_get_array_buffer | bluesky950520[P]quickjs/quickjs.c | static JSArrayBuffer *js_get_array_buffer(JSContext *ctx, JSValue obj)
{
JSObject *p;
if (JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT)
goto fail;
p = JS_VALUE_GET_OBJ(obj);
if (p->class_id != JS_CLASS_ARRAY_BUFFER &&
p->class_id != JS_CLASS_SHARED_ARRAY_BUFFER) {
fail:
JS_ThrowTypeErrorInvalidClass(ctx, JS_CLASS_ARRAY_BUFFER);
return NULL;
}
return p->u.array_buffer;
} | O1 | c | js_get_array_buffer:
pushq %rax
movq %rsi, (%rsp)
cmpl $-0x1, %edx
jne 0x383dc
movq (%rsp), %rax
movzwl 0x6(%rax), %ecx
addl $-0x13, %ecx
cmpw $0x2, %cx
jae 0x383dc
movq 0x30(%rax), %rax
jmp 0x383e8
movl $0x13, %esi
callq 0x269dc
xorl %eax, %eax
popq %rcx
retq
| js_get_array_buffer:
push rax
mov [rsp+8+var_8], rsi
cmp edx, 0FFFFFFFFh
jnz short loc_383DC
mov rax, [rsp+8+var_8]
movzx ecx, word ptr [rax+6]
add ecx, 0FFFFFFEDh
cmp cx, 2
jnb short loc_383DC
mov rax, [rax+30h]
jmp short loc_383E8
loc_383DC:
mov esi, 13h
call JS_ThrowTypeErrorInvalidClass
xor eax, eax
loc_383E8:
pop rcx
retn
| long long js_get_array_buffer(
long long a1,
long long a2,
int a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
if ( a3 == -1 && (unsigned __int16)(*(_WORD *)(a2 + 6) - 19) < 2u )
return *(_QWORD *)(a2 + 48);
JS_ThrowTypeErrorInvalidClass(a1, 19, a4, a5, a6, a7, a8, a9, a10, a11);
return 0LL;
}
| js_get_array_buffer:
PUSH RAX
MOV qword ptr [RSP],RSI
CMP EDX,-0x1
JNZ 0x001383dc
MOV RAX,qword ptr [RSP]
MOVZX ECX,word ptr [RAX + 0x6]
ADD ECX,-0x13
CMP CX,0x2
JNC 0x001383dc
MOV RAX,qword ptr [RAX + 0x30]
JMP 0x001383e8
LAB_001383dc:
MOV ESI,0x13
CALL 0x001269dc
XOR EAX,EAX
LAB_001383e8:
POP RCX
RET
|
int8 js_get_array_buffer(int8 param_1,long param_2,int param_3)
{
if ((param_3 == -1) && ((ushort)(*(short *)(param_2 + 6) - 0x13U) < 2)) {
return *(int8 *)(param_2 + 0x30);
}
JS_ThrowTypeErrorInvalidClass(param_1,0x13);
return 0;
}
| |
35,195 | Bfree | eloqsql/strings/dtoa.c | static void Bfree(Bigint *v, Stack_alloc *alloc)
{
char *gptr= (char*) v; /* generic pointer */
if (gptr < alloc->begin || gptr >= alloc->end)
free(gptr);
else if (v->k <= Kmax)
{
/*
Maintain free lists only for stack objects: this way we don't
have to bother with freeing lists in the end of dtoa;
heap should not be used normally anyway.
*/
v->p.next= alloc->freelist[v->k];
alloc->freelist[v->k]= v;
}
} | O0 | c | Bfree:
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 -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq (%rcx), %rax
jb 0xd4bd3
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jb 0xd4bde
movq -0x18(%rbp), %rdi
callq 0x28430
jmp 0xd4c17
movq -0x8(%rbp), %rax
cmpl $0xf, 0x8(%rax)
jg 0xd4c15
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq 0x8(%rcx), %rcx
movq 0x18(%rax,%rcx,8), %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rdx
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq 0x8(%rcx), %rcx
movq %rdx, 0x18(%rax,%rcx,8)
jmp 0xd4c17
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
| Bfree:
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_18]
mov rcx, [rbp+var_10]
cmp rax, [rcx]
jb short loc_D4BD3
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
cmp rax, [rcx+10h]
jb short loc_D4BDE
loc_D4BD3:
mov rdi, [rbp+var_18]
call _free
jmp short loc_D4C17
loc_D4BDE:
mov rax, [rbp+var_8]
cmp dword ptr [rax+8], 0Fh
jg short loc_D4C15
mov rax, [rbp+var_10]
mov rcx, [rbp+var_8]
movsxd rcx, dword ptr [rcx+8]
mov rcx, [rax+rcx*8+18h]
mov rax, [rbp+var_8]
mov [rax], rcx
mov rdx, [rbp+var_8]
mov rax, [rbp+var_10]
mov rcx, [rbp+var_8]
movsxd rcx, dword ptr [rcx+8]
mov [rax+rcx*8+18h], rdx
loc_D4C15:
jmp short $+2
loc_D4C17:
add rsp, 20h
pop rbp
retn
| long long Bfree(unsigned long long a1, unsigned long long *a2)
{
long long result; // rax
if ( a1 < *a2 || a1 >= a2[2] )
return free(a1);
result = a1;
if ( *(int *)(a1 + 8) <= 15 )
{
*(_QWORD *)a1 = a2[*(int *)(a1 + 8) + 3];
result = (long long)a2;
a2[*(int *)(a1 + 8) + 3] = a1;
}
return result;
}
| Bfree:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX]
JC 0x001d4bd3
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x10]
JC 0x001d4bde
LAB_001d4bd3:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00128430
JMP 0x001d4c17
LAB_001d4bde:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x8],0xf
JG 0x001d4c15
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x8]
MOVSXD RCX,dword ptr [RCX + 0x8]
MOV RCX,qword ptr [RAX + RCX*0x8 + 0x18]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX],RCX
MOV RDX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x8]
MOVSXD RCX,dword ptr [RCX + 0x8]
MOV qword ptr [RAX + RCX*0x8 + 0x18],RDX
LAB_001d4c15:
JMP 0x001d4c17
LAB_001d4c17:
ADD RSP,0x20
POP RBP
RET
|
void Bfree(ulong *param_1,ulong *param_2)
{
if ((param_1 < (ulong *)*param_2) || ((ulong *)param_2[2] <= param_1)) {
free(param_1);
}
else if ((int)param_1[1] < 0x10) {
*param_1 = param_2[(long)(int)param_1[1] + 3];
param_2[(long)(int)param_1[1] + 3] = (ulong)param_1;
}
return;
}
| |
35,196 | minja::CallExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const | monkey531[P]llama/common/minja.hpp | Value do_evaluate(const std::shared_ptr<Context> & context) const override {
if (!object) throw std::runtime_error("CallExpr.object is null");
auto obj = object->evaluate(context);
if (!obj.is_callable()) {
throw std::runtime_error("Object is not callable: " + obj.dump(2));
}
auto vargs = args.evaluate(context);
return obj.call(context, vargs);
} | O3 | cpp | minja::CallExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xa0, %rsp
movq %rsi, %r15
movq 0x20(%rsi), %rsi
testq %rsi, %rsi
je 0x7866e
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x50(%rsp), %r12
movq %r12, %rdi
callq 0x6a5f2
cmpq $0x0, 0x30(%r12)
je 0x786a0
addq $0x30, %r15
movq %rsp, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x75c12
leaq 0x50(%rsp), %rsi
movq %rsp, %rcx
movq %rbx, %rdi
movq %r14, %rdx
callq 0x76f92
leaq 0x18(%rsp), %rdi
callq 0x782da
movq %rsp, %rdi
callq 0x71246
leaq 0x90(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x284e2
movq %r14, %rdi
callq 0x2d98e
movq -0x8(%r14), %rdi
testq %rdi, %rdi
je 0x78607
callq 0x4200c
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x78616
callq 0x4200c
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x78625
callq 0x4200c
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x7865b
movq 0x7395a(%rip), %rax # 0xebf90
cmpb $0x0, (%rax)
je 0x78646
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x78650
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x7865b
movq (%rdi), %rax
callq *0x18(%rax)
movq %rbx, %rax
addq $0xa0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x19370
movq %rax, %rbx
leaq 0x430ca(%rip), %rsi # 0xbb74c
movq %rax, %rdi
callq 0x19270
movq 0x73957(%rip), %rsi # 0xebfe8
movq 0x738d0(%rip), %rdx # 0xebf68
movq %rbx, %rdi
callq 0x19b70
movl $0x10, %edi
callq 0x19370
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
leaq 0x50(%rsp), %rsi
movl $0x2, %edx
xorl %ecx, %ecx
callq 0x6ac06
leaq 0x43317(%rip), %rsi # 0xbb9e1
movq %rsp, %rdi
leaq 0x30(%rsp), %rdx
callq 0x36a3b
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x19ac0
xorl %ebp, %ebp
movq 0x738fa(%rip), %rsi # 0xebfe8
movq 0x73873(%rip), %rdx # 0xebf68
movq %rbx, %rdi
callq 0x19b70
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7871b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x196b0
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x78736
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x196b0
testb %bpl, %bpl
jne 0x78760
jmp 0x78791
movq %rax, %r14
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x78760
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x196b0
jmp 0x78760
movq %rax, %r14
movq %rbx, %rdi
callq 0x19510
jmp 0x78791
movq %rax, %r14
movq %rbx, %rdi
callq 0x19510
jmp 0x7879b
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x782da
movq %rsp, %rdi
callq 0x71246
jmp 0x78791
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x6a8e4
movq %r14, %rdi
callq 0x19be0
nop
| _ZNK5minja8CallExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 0A0h
mov r15, rsi
mov rsi, [rsi+20h]
test rsi, rsi
jz loc_7866E
mov r14, rdx
mov rbx, rdi
lea r12, [rsp+0C8h+var_78]
mov rdi, r12
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
cmp qword ptr [r12+30h], 0
jz loc_786A0
add r15, 30h ; '0'
mov rdi, rsp
mov rsi, r15
mov rdx, r14
call _ZNK5minja19ArgumentsExpression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::ArgumentsExpression::evaluate(std::shared_ptr<minja::Context> const&)
lea rsi, [rsp+0C8h+var_78]
mov rcx, rsp
mov rdi, rbx
mov rdx, r14
call _ZNK5minja5Value4callERKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueE; minja::Value::call(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)
lea rdi, [rsp+0C8h+var_B0]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5minja5ValueEESaIS9_EED2Ev; std::vector<std::pair<std::string,minja::Value>>::~vector()
mov rdi, rsp
call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector()
lea r14, [rsp+0C8h+var_38]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [r14-8]
test rdi, rdi
jz short loc_78607
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_78607:
mov rdi, [rsp+0C8h+var_50]
test rdi, rdi
jz short loc_78616
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_78616:
mov rdi, [rsp+0C8h+var_60]
test rdi, rdi
jz short loc_78625
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_78625:
mov rdi, [rsp+0C8h+var_70]
test rdi, rdi
jz short loc_7865B
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_78646
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_78650
loc_78646:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_78650:
cmp eax, 1
jnz short loc_7865B
mov rax, [rdi]
call qword ptr [rax+18h]
loc_7865B:
mov rax, rbx
add rsp, 0A0h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_7866E:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aMethodcallexpr+6; char *
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_786A0:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+0C8h+var_98]
lea rsi, [rsp+0C8h+var_78]
mov edx, 2
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aObjectIsNotCal; "Object is not callable: "
mov rdi, rsp
lea rdx, [rsp+0C8h+var_98]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
mov rsi, rsp
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+0C8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7871B
mov rsi, [rsp+0C8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7871B:
lea rax, [rsp+0C8h+var_88]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_78736
mov rsi, [rsp+0C8h+var_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_78736:
test bpl, bpl
jnz short loc_78760
jmp short loc_78791
mov r14, rax
lea rax, [rsp+0C8h+var_88]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_78760
mov rsi, [rsp+0C8h+var_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_78760
mov r14, rax
loc_78760:
mov rdi, rbx; void *
call ___cxa_free_exception
jmp short loc_78791
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
jmp short loc_7879B
mov r14, rax
lea rdi, [rsp+0C8h+var_B0]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5minja5ValueEESaIS9_EED2Ev; std::vector<std::pair<std::string,minja::Value>>::~vector()
mov rdi, rsp
call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector()
jmp short loc_78791
mov r14, rax
loc_78791:
lea rdi, [rsp+0C8h+var_78]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_7879B:
mov rdi, r14
call __Unwind_Resume
| long long minja::CallExpr::do_evaluate(long long a1, long long a2, long long a3)
{
void (***v4)(void); // rsi
long long v7; // rdi
signed __int32 v8; // eax
std::runtime_error *exception; // rbx
void *v11; // rbx
__int128 v12; // [rsp+0h] [rbp-C8h] BYREF
char *v13; // [rsp+18h] [rbp-B0h] BYREF
_BYTE v14[16]; // [rsp+30h] [rbp-98h] BYREF
_BYTE v15[8]; // [rsp+50h] [rbp-78h] BYREF
long long v16; // [rsp+58h] [rbp-70h]
volatile signed __int32 *v17; // [rsp+68h] [rbp-60h]
volatile signed __int32 *v18; // [rsp+78h] [rbp-50h]
long long v19; // [rsp+80h] [rbp-48h]
volatile signed __int32 *v20; // [rsp+88h] [rbp-40h]
char v21[56]; // [rsp+90h] [rbp-38h] BYREF
v4 = *(void (****)(void))(a2 + 32);
if ( !v4 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "CallExpr.object is null");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Expression::evaluate((long long)v15, v4);
if ( !v19 )
{
v11 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v14, (long long)v15, 2u, 0);
std::operator+<char>((long long)&v12, (long long)"Object is not callable: ", (long long)v14);
std::runtime_error::runtime_error(v11, &v12);
__cxa_throw(
v11,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::ArgumentsExpression::evaluate(&v12, (_QWORD *)(a2 + 48), a3);
minja::Value::call(a1, (long long)v15);
std::vector<std::pair<std::string,minja::Value>>::~vector(&v13);
std::vector<minja::Value>::~vector(&v12);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v21);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v21);
if ( v20 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v20);
if ( v18 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v18);
if ( v17 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v17);
v7 = v16;
if ( v16 )
{
if ( _libc_single_threaded )
{
v8 = *(_DWORD *)(v16 + 12);
*(_DWORD *)(v16 + 12) = v8 - 1;
}
else
{
v8 = _InterlockedExchangeAdd((volatile signed __int32 *)(v16 + 12), 0xFFFFFFFF);
}
if ( v8 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v7 + 24LL))(v7, 0LL);
}
return a1;
}
| do_evaluate:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0xa0
MOV R15,RSI
MOV RSI,qword ptr [RSI + 0x20]
TEST RSI,RSI
JZ 0x0017866e
MOV R14,RDX
MOV RBX,RDI
LEA R12,[RSP + 0x50]
MOV RDI,R12
CALL 0x0016a5f2
CMP qword ptr [R12 + 0x30],0x0
JZ 0x001786a0
ADD R15,0x30
LAB_001785ac:
MOV RDI,RSP
MOV RSI,R15
MOV RDX,R14
CALL 0x00175c12
LAB_001785ba:
LEA RSI,[RSP + 0x50]
MOV RCX,RSP
MOV RDI,RBX
MOV RDX,R14
CALL 0x00176f92
LAB_001785cd:
LEA RDI,[RSP + 0x18]
CALL 0x001782da
MOV RDI,RSP
CALL 0x00171246
LEA R14,[RSP + 0x90]
MOV RDI,R14
XOR ESI,ESI
CALL 0x001284e2
MOV RDI,R14
CALL 0x0012d98e
MOV RDI,qword ptr [R14 + -0x8]
TEST RDI,RDI
JZ 0x00178607
CALL 0x0014200c
LAB_00178607:
MOV RDI,qword ptr [RSP + 0x78]
TEST RDI,RDI
JZ 0x00178616
CALL 0x0014200c
LAB_00178616:
MOV RDI,qword ptr [RSP + 0x68]
TEST RDI,RDI
JZ 0x00178625
CALL 0x0014200c
LAB_00178625:
MOV RDI,qword ptr [RSP + 0x58]
TEST RDI,RDI
JZ 0x0017865b
MOV RAX,qword ptr [0x001ebf90]
CMP byte ptr [RAX],0x0
JZ 0x00178646
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x00178650
LAB_00178646:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_00178650:
CMP EAX,0x1
JNZ 0x0017865b
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_0017865b:
MOV RAX,RBX
ADD RSP,0xa0
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0017866e:
MOV EDI,0x10
CALL 0x00119370
MOV RBX,RAX
LAB_0017867b:
LEA RSI,[0x1bb74c]
MOV RDI,RAX
CALL 0x00119270
LAB_0017868a:
MOV RSI,qword ptr [0x001ebfe8]
MOV RDX,qword ptr [0x001ebf68]
MOV RDI,RBX
CALL 0x00119b70
LAB_001786a0:
MOV EDI,0x10
CALL 0x00119370
MOV RBX,RAX
LAB_001786ad:
LEA RDI,[RSP + 0x30]
LEA RSI,[RSP + 0x50]
MOV EDX,0x2
XOR ECX,ECX
CALL 0x0016ac06
LAB_001786c3:
LEA RSI,[0x1bb9e1]
MOV RDI,RSP
LEA RDX,[RSP + 0x30]
CALL 0x00136a3b
MOV BPL,0x1
LAB_001786da:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x00119ac0
XOR EBP,EBP
MOV RSI,qword ptr [0x001ebfe8]
MOV RDX,qword ptr [0x001ebf68]
MOV RDI,RBX
CALL 0x00119b70
|
/* minja::CallExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */
CallExpr * __thiscall minja::CallExpr::do_evaluate(CallExpr *this,shared_ptr *param_1)
{
int *piVar1;
int iVar2;
runtime_error *prVar3;
shared_ptr asStack_c8 [24];
vector<std::pair<std::__cxx11::string,minja::Value>,std::allocator<std::pair<std::__cxx11::string,minja::Value>>>
local_b0 [24];
int1 local_98 [32];
Expression local_78 [8];
long *local_70;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_60;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_50;
long local_48;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_40;
data local_38 [16];
if (*(shared_ptr **)(param_1 + 0x20) == (shared_ptr *)0x0) {
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0017867b to 00178689 has its CatchHandler @ 0017876a */
std::runtime_error::runtime_error(prVar3,"CallExpr.object is null");
/* WARNING: Subroutine does not return */
__cxa_throw(prVar3,PTR_typeinfo_001ebfe8,PTR__runtime_error_001ebf68);
}
Expression::evaluate(local_78,*(shared_ptr **)(param_1 + 0x20));
if (local_48 != 0) {
/* try { // try from 001785ac to 001785b9 has its CatchHandler @ 0017878e */
ArgumentsExpression::evaluate(asStack_c8);
/* try { // try from 001785ba to 001785cc has its CatchHandler @ 00178777 */
Value::call((shared_ptr *)this,(ArgumentsValue *)local_78);
std::
vector<std::pair<std::__cxx11::string,minja::Value>,std::allocator<std::pair<std::__cxx11::string,minja::Value>>>
::~vector(local_b0);
std::vector<minja::Value,std::allocator<minja::Value>>::~vector
((vector<minja::Value,std::allocator<minja::Value>> *)asStack_c8);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_38,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_38);
if (local_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_40);
}
if (local_50 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_50);
}
if (local_60 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_60);
}
if (local_70 != (long *)0x0) {
if (*PTR___libc_single_threaded_001ebf90 == '\0') {
LOCK();
piVar1 = (int *)((long)local_70 + 0xc);
iVar2 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar2 = *(int *)((long)local_70 + 0xc);
*(int *)((long)local_70 + 0xc) = iVar2 + -1;
}
if (iVar2 == 1) {
(**(code **)(*local_70 + 0x18))();
}
}
return this;
}
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001786ad to 001786c2 has its CatchHandler @ 0017875d */
Value::dump_abi_cxx11_((int)local_98,SUB81(local_78,0));
/* try { // try from 001786c3 to 001786d6 has its CatchHandler @ 0017873d */
std::operator+((char *)asStack_c8,(string *)"Object is not callable: ");
/* try { // try from 001786da to 001786fc has its CatchHandler @ 001786fd */
std::runtime_error::runtime_error(prVar3,(string *)asStack_c8);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar3,PTR_typeinfo_001ebfe8,PTR__runtime_error_001ebf68);
}
| |
35,197 | mi_get_binary_pack_key | eloqsql/storage/myisam/mi_search.c | uint _mi_get_binary_pack_key(register MI_KEYDEF *keyinfo, uint nod_flag,
register uchar **page_pos, register uchar *key)
{
reg1 HA_KEYSEG *keyseg;
uchar *start_key,*page,*page_end,*from,*from_end;
uint length,tmp;
DBUG_ENTER("_mi_get_binary_pack_key");
page= *page_pos;
page_end=page+HA_MAX_KEY_BUFF+1;
start_key=key;
/*
Keys are compressed the following way:
prefix length Packed length of prefix common with prev key (1 or 3 bytes)
for each key segment:
[is null] Null indicator if can be null (1 byte, zero means null)
[length] Packed length if varlength (1 or 3 bytes)
key segment 'length' bytes of key segment value
pointer Reference to the data file (last_keyseg->length).
get_key_length() is a macro. It gets the prefix length from 'page'
and puts it into 'length'. It increments 'page' by 1 or 3, depending
on the packed length of the prefix length.
*/
get_key_length(length,page);
if (length)
{
if (length > keyinfo->maxlength)
{
DBUG_PRINT("error",
("Found too long binary packed key: %u of %u at %p",
length, keyinfo->maxlength, *page_pos));
DBUG_DUMP("key", *page_pos, 16);
goto crashed; /* Wrong key */
}
/* Key is packed against prev key, take prefix from prev key. */
from= key;
from_end= key + length;
}
else
{
/* Key is not packed against prev key, take all from page buffer. */
from= page;
from_end= page_end;
}
/*
The trouble is that key can be split in two parts:
The first part (prefix) is in from .. from_end - 1.
The second part starts at page.
The split can be at every byte position. So we need to check for
the end of the first part before using every byte.
*/
for (keyseg=keyinfo->seg ; keyseg->type ;keyseg++)
{
if (keyseg->flag & HA_NULL_PART)
{
/* If prefix is used up, switch to rest. */
if (from == from_end) { from=page; from_end=page_end; }
if (!(*key++ = *from++))
continue; /* Null part */
}
if (keyseg->flag & (HA_VAR_LENGTH_PART | HA_BLOB_PART | HA_SPACE_PACK))
{
/* If prefix is used up, switch to rest. */
if (from == from_end) { from=page; from_end=page_end; }
/* Get length of dynamic length key part */
if ((length= (*key++ = *from++)) == 255)
{
/* If prefix is used up, switch to rest. */
if (from == from_end) { from=page; from_end=page_end; }
length= (uint) ((*key++ = *from++)) << 8;
/* If prefix is used up, switch to rest. */
if (from == from_end) { from=page; from_end=page_end; }
length+= (uint) ((*key++ = *from++));
}
if (length > keyseg->length)
goto crashed;
}
else
length=keyseg->length;
if ((tmp=(uint) (from_end-from)) <= length)
{
key+=tmp; /* Use old key */
length-=tmp;
from=page; from_end=page_end;
}
DBUG_PRINT("info",("key: %p from: %p length: %u",
key, from, length));
memmove((uchar*) key, (uchar*) from, (size_t) length);
key+=length;
from+=length;
}
/*
Last segment (type == 0) contains length of data pointer.
If we have mixed key blocks with data pointer and key block pointer,
we have to copy both.
*/
length=keyseg->length+nod_flag;
if ((tmp=(uint) (from_end-from)) <= length)
{
/* Remaining length is less or equal max possible length. */
memcpy(key+tmp,page,length-tmp); /* Get last part of key */
*page_pos= page+length-tmp;
}
else
{
/*
Remaining length is greater than max possible length.
This can happen only if we switched to the new key bytes already.
'page_end' is calculated with MI_MAX_KEY_BUFF. So it can be far
behind the real end of the key.
*/
if (from_end != page_end)
{
DBUG_PRINT("error",("Error when unpacking key"));
goto crashed; /* Error */
}
/* Copy data pointer and, if appropriate, key block pointer. */
memcpy((uchar*) key,(uchar*) from,(size_t) length);
*page_pos= from+length;
}
DBUG_RETURN((uint) (key-start_key)+keyseg->length);
crashed:
mi_print_error(keyinfo->share, HA_ERR_CRASHED);
my_errno= HA_ERR_CRASHED;
DBUG_RETURN(0);
} | O3 | c | mi_get_binary_pack_key:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %esi, -0x2c(%rbp)
movq %rdx, -0x50(%rbp)
movq (%rdx), %rax
movzbl (%rax), %r8d
cmpl $0xff, %r8d
je 0x8565d
movl $0x1, %esi
jmp 0x8566e
movzwl 0x1(%rax), %edx
rolw $0x8, %dx
movzwl %dx, %r8d
movl $0x3, %esi
leaq 0x4b9(%rax), %r9
addq %rax, %rsi
movq %rsi, %r12
movq %r9, %rax
testl %r8d, %r8d
movq %rcx, -0x38(%rbp)
movq %rdi, -0x40(%rbp)
je 0x856a9
movzwl 0x16(%rdi), %eax
cmpl %eax, %r8d
ja 0x857f1
movl %r8d, %eax
movq -0x38(%rbp), %rcx
addq %rcx, %rax
movq %rcx, %r12
movq -0x40(%rbp), %rdi
movq 0x28(%rdi), %r15
cmpb $0x0, 0x18(%r15)
movq %rsi, -0x48(%rbp)
je 0x857cd
movq %rcx, %rbx
movq %r9, -0x58(%rbp)
movzwl 0x12(%r15), %ecx
testb $0x10, %cl
jne 0x856d2
movq %rax, %r14
jmp 0x856fd
movq %rsi, %rcx
movq %r9, %r14
cmpq %rax, %r12
je 0x856e3
movq %r12, %rcx
movq %rax, %r14
movb (%rcx), %al
movq %rcx, %r12
incq %r12
movb %al, (%rbx)
incq %rbx
testb %al, %al
je 0x857b6
movzwl 0x12(%r15), %ecx
testb $0x29, %cl
je 0x85727
movq %rsi, %rcx
movq %r9, %rdx
cmpq %r14, %r12
je 0x85713
movq %r12, %rcx
movq %r14, %rdx
movzbl (%rcx), %eax
incq %rcx
movb %al, (%rbx)
cmpl $0xff, %eax
je 0x8572e
incq %rbx
jmp 0x8576d
movzwl 0x14(%r15), %eax
jmp 0x8577c
movq %rsi, %r8
movq %r9, %rdi
cmpq %rdx, %rcx
je 0x8573f
movq %rcx, %r8
movq %rdx, %rdi
movzbl (%r8), %eax
incq %r8
movb %al, 0x1(%rbx)
movq %rsi, %rcx
movq %r9, %rdx
cmpq %rdi, %r8
je 0x8575a
movq %r8, %rcx
movq %rdi, %rdx
shll $0x8, %eax
movzbl (%rcx), %edi
incq %rcx
movb %dil, 0x2(%rbx)
addq $0x3, %rbx
orl %edi, %eax
movzwl 0x14(%r15), %edi
movq %rcx, %r12
movq %rdx, %r14
cmpl %edi, %eax
ja 0x857f1
movq %r14, %rdx
subq %r12, %rdx
movl %eax, %ecx
subl %edx, %ecx
jae 0x8578c
movl %eax, %ecx
jmp 0x85797
movl %edx, %eax
addq %rax, %rbx
movq %rsi, %r12
movq %r9, %r14
movl %ecx, %r13d
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x29110
addq %r13, %rbx
addq %r13, %r12
movq -0x48(%rbp), %rsi
movq -0x58(%rbp), %r9
leaq 0x20(%r15), %r13
cmpb $0x0, 0x38(%r15)
movq %r14, %rax
movq %r13, %r15
jne 0x856c3
jmp 0x857d6
movq %r15, %r13
movq %rcx, %rbx
movq %rax, %r14
movzwl 0x14(%r13), %r15d
addl -0x2c(%rbp), %r15d
movq %r14, %rax
subq %r12, %rax
movl %r15d, %edx
subl %eax, %edx
jae 0x85818
cmpq %r9, %r14
je 0x85830
movq -0x40(%rbp), %rax
movq (%rax), %rax
movq 0x268(%rax), %rsi
movl $0x7e, %edi
callq 0x7ad3a
callq 0xa1ab2
movl $0x7e, (%rax)
xorl %eax, %eax
jmp 0x85855
movl %eax, %r14d
leaq (%rbx,%r14), %rdi
callq 0x29080
movl %r15d, %r12d
addq -0x48(%rbp), %r12
subq %r14, %r12
jmp 0x85844
movl %r15d, %r14d
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x29080
addq %r14, %r12
movq -0x50(%rbp), %rax
movq %r12, (%rax)
subl -0x38(%rbp), %ebx
movzwl 0x14(%r13), %eax
addl %ebx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _mi_get_binary_pack_key:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov [rbp+var_2C], esi
mov [rbp+var_50], rdx
mov rax, [rdx]
movzx r8d, byte ptr [rax]
cmp r8d, 0FFh
jz short loc_8565D
mov esi, 1
jmp short loc_8566E
loc_8565D:
movzx edx, word ptr [rax+1]
rol dx, 8
movzx r8d, dx
mov esi, 3
loc_8566E:
lea r9, [rax+4B9h]
add rsi, rax
mov r12, rsi
mov rax, r9
test r8d, r8d
mov [rbp+var_38], rcx
mov [rbp+var_40], rdi
jz short loc_856A9
movzx eax, word ptr [rdi+16h]
cmp r8d, eax
ja loc_857F1
mov eax, r8d
mov rcx, [rbp+var_38]
add rax, rcx
mov r12, rcx
mov rdi, [rbp+var_40]
loc_856A9:
mov r15, [rdi+28h]
cmp byte ptr [r15+18h], 0
mov [rbp+var_48], rsi
jz loc_857CD
mov rbx, rcx
mov [rbp+var_58], r9
loc_856C3:
movzx ecx, word ptr [r15+12h]
test cl, 10h
jnz short loc_856D2
mov r14, rax
jmp short loc_856FD
loc_856D2:
mov rcx, rsi
mov r14, r9
cmp r12, rax
jz short loc_856E3
mov rcx, r12
mov r14, rax
loc_856E3:
mov al, [rcx]
mov r12, rcx
inc r12
mov [rbx], al
inc rbx
test al, al
jz loc_857B6
movzx ecx, word ptr [r15+12h]
loc_856FD:
test cl, 29h
jz short loc_85727
mov rcx, rsi
mov rdx, r9
cmp r12, r14
jz short loc_85713
mov rcx, r12
mov rdx, r14
loc_85713:
movzx eax, byte ptr [rcx]
inc rcx
mov [rbx], al
cmp eax, 0FFh
jz short loc_8572E
inc rbx
jmp short loc_8576D
loc_85727:
movzx eax, word ptr [r15+14h]
jmp short loc_8577C
loc_8572E:
mov r8, rsi
mov rdi, r9
cmp rcx, rdx
jz short loc_8573F
mov r8, rcx
mov rdi, rdx
loc_8573F:
movzx eax, byte ptr [r8]
inc r8
mov [rbx+1], al
mov rcx, rsi
mov rdx, r9
cmp r8, rdi
jz short loc_8575A
mov rcx, r8
mov rdx, rdi
loc_8575A:
shl eax, 8
movzx edi, byte ptr [rcx]
inc rcx
mov [rbx+2], dil
add rbx, 3
or eax, edi
loc_8576D:
movzx edi, word ptr [r15+14h]
mov r12, rcx
mov r14, rdx
cmp eax, edi
ja short loc_857F1
loc_8577C:
mov rdx, r14
sub rdx, r12
mov ecx, eax
sub ecx, edx
jnb short loc_8578C
mov ecx, eax
jmp short loc_85797
loc_8578C:
mov eax, edx
add rbx, rax
mov r12, rsi
mov r14, r9
loc_85797:
mov r13d, ecx
mov rdi, rbx
mov rsi, r12
mov rdx, r13
call _memmove
add rbx, r13
add r12, r13
mov rsi, [rbp+var_48]
mov r9, [rbp+var_58]
loc_857B6:
lea r13, [r15+20h]
cmp byte ptr [r15+38h], 0
mov rax, r14
mov r15, r13
jnz loc_856C3
jmp short loc_857D6
loc_857CD:
mov r13, r15
mov rbx, rcx
mov r14, rax
loc_857D6:
movzx r15d, word ptr [r13+14h]
add r15d, [rbp+var_2C]
mov rax, r14
sub rax, r12
mov edx, r15d
sub edx, eax
jnb short loc_85818
cmp r14, r9
jz short loc_85830
loc_857F1:
mov rax, [rbp+var_40]
mov rax, [rax]
mov rsi, [rax+268h]
mov edi, 7Eh ; '~'
call mi_report_error
call _my_thread_var
mov dword ptr [rax], 7Eh ; '~'
xor eax, eax
jmp short loc_85855
loc_85818:
mov r14d, eax
lea rdi, [rbx+r14]
call _memcpy
mov r12d, r15d
add r12, [rbp+var_48]
sub r12, r14
jmp short loc_85844
loc_85830:
mov r14d, r15d
mov rdi, rbx
mov rsi, r12
mov rdx, r14
call _memcpy
add r12, r14
loc_85844:
mov rax, [rbp+var_50]
mov [rax], r12
sub ebx, dword ptr [rbp+var_38]
movzx eax, word ptr [r13+14h]
add eax, ebx
loc_85855:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long mi_get_binary_pack_key(long long a1, int a2, unsigned __int8 **a3, unsigned __int8 *a4)
{
long long v4; // rax
unsigned int v5; // r8d
long long v6; // rsi
unsigned __int8 *v7; // r9
unsigned __int8 *v8; // rsi
unsigned __int8 *v9; // r12
unsigned __int8 *v10; // rax
long long v11; // r15
unsigned __int8 *v12; // rbx
__int16 v13; // cx
unsigned __int8 *v14; // r14
unsigned __int8 *v15; // rcx
unsigned __int8 v16; // al
unsigned __int8 *v17; // rcx
unsigned __int8 *v18; // rdx
unsigned int v19; // eax
unsigned __int8 *v20; // rcx
unsigned __int8 *v21; // r8
unsigned __int8 *v22; // rdi
int v23; // eax
unsigned __int8 *v24; // r8
unsigned __int8 *v25; // rcx
int v26; // edi
unsigned int v27; // ecx
long long v28; // r13
long long v29; // r13
bool v30; // zf
unsigned int v31; // r15d
unsigned int v32; // eax
long long v33; // rdx
long long v35; // r14
unsigned __int8 *v36; // r12
unsigned __int8 *v37; // [rsp+8h] [rbp-58h]
unsigned __int8 *v39; // [rsp+18h] [rbp-48h]
int v41; // [rsp+28h] [rbp-38h]
v4 = (long long)*a3;
v5 = **a3;
if ( v5 == 255 )
{
v5 = (unsigned __int16)__ROL2__(*(_WORD *)(v4 + 1), 8);
v6 = 3LL;
}
else
{
v6 = 1LL;
}
v7 = (unsigned __int8 *)(v4 + 1209);
v8 = (unsigned __int8 *)(v4 + v6);
v9 = v8;
v10 = (unsigned __int8 *)(v4 + 1209);
v41 = (int)a4;
if ( v5 )
{
if ( v5 > *(unsigned __int16 *)(a1 + 22) )
{
LABEL_36:
mi_report_error(126, *(_QWORD *)(*(_QWORD *)a1 + 616LL));
*(_DWORD *)my_thread_var(126LL) = 126;
return 0LL;
}
v10 = &a4[v5];
v9 = a4;
}
v11 = *(_QWORD *)(a1 + 40);
v39 = v8;
if ( *(_BYTE *)(v11 + 24) )
{
v12 = a4;
v37 = v7;
while ( 1 )
{
v13 = *(_WORD *)(v11 + 18);
if ( (v13 & 0x10) != 0 )
{
v15 = v8;
v14 = v7;
if ( v9 != v10 )
{
v15 = v9;
v14 = v10;
}
v16 = *v15;
v9 = v15 + 1;
*v12++ = *v15;
if ( !v16 )
goto LABEL_31;
v13 = *(_WORD *)(v11 + 18);
}
else
{
v14 = v10;
}
if ( (v13 & 0x29) != 0 )
{
v17 = v8;
v18 = v7;
if ( v9 != v14 )
{
v17 = v9;
v18 = v14;
}
v19 = *v17;
v20 = v17 + 1;
*v12 = v19;
if ( v19 == 255 )
{
v21 = v8;
v22 = v7;
if ( v20 != v18 )
{
v21 = v20;
v22 = v18;
}
v23 = *v21;
v24 = v21 + 1;
v12[1] = v23;
v25 = v8;
v18 = v7;
if ( v24 != v22 )
{
v25 = v24;
v18 = v22;
}
v26 = *v25;
v20 = v25 + 1;
v12[2] = v26;
v12 += 3;
v19 = v26 | (v23 << 8);
}
else
{
++v12;
}
v9 = v20;
v14 = v18;
if ( v19 > *(unsigned __int16 *)(v11 + 20) )
goto LABEL_36;
}
else
{
v19 = *(unsigned __int16 *)(v11 + 20);
}
v27 = v19 - ((_DWORD)v14 - (_DWORD)v9);
if ( v19 >= (int)v14 - (int)v9 )
{
v12 += (unsigned int)((_DWORD)v14 - (_DWORD)v9);
v9 = v8;
v14 = v7;
}
else
{
v27 = v19;
}
v28 = v27;
memmove(v12, v9, v27);
v12 += v28;
v9 += v28;
v8 = v39;
v7 = v37;
LABEL_31:
v29 = v11 + 32;
v30 = *(_BYTE *)(v11 + 56) == 0;
v10 = v14;
v11 += 32LL;
if ( v30 )
goto LABEL_34;
}
}
v29 = *(_QWORD *)(a1 + 40);
v12 = a4;
v14 = v10;
LABEL_34:
v31 = a2 + *(unsigned __int16 *)(v29 + 20);
v32 = (_DWORD)v14 - (_DWORD)v9;
v33 = v31 - ((_DWORD)v14 - (_DWORD)v9);
if ( v31 >= (int)v14 - (int)v9 )
{
v35 = v32;
memcpy(&v12[v32], v8, v33);
v36 = &v39[v31 - v35];
}
else
{
if ( v14 != v7 )
goto LABEL_36;
memcpy(v12, v9, v31);
v36 = &v9[v31];
}
*a3 = v36;
return (_DWORD)v12 - v41 + (unsigned int)*(unsigned __int16 *)(v29 + 20);
}
| _mi_get_binary_pack_key:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV dword ptr [RBP + -0x2c],ESI
MOV qword ptr [RBP + -0x50],RDX
MOV RAX,qword ptr [RDX]
MOVZX R8D,byte ptr [RAX]
CMP R8D,0xff
JZ 0x0018565d
MOV ESI,0x1
JMP 0x0018566e
LAB_0018565d:
MOVZX EDX,word ptr [RAX + 0x1]
ROL DX,0x8
MOVZX R8D,DX
MOV ESI,0x3
LAB_0018566e:
LEA R9,[RAX + 0x4b9]
ADD RSI,RAX
MOV R12,RSI
MOV RAX,R9
TEST R8D,R8D
MOV qword ptr [RBP + -0x38],RCX
MOV qword ptr [RBP + -0x40],RDI
JZ 0x001856a9
MOVZX EAX,word ptr [RDI + 0x16]
CMP R8D,EAX
JA 0x001857f1
MOV EAX,R8D
MOV RCX,qword ptr [RBP + -0x38]
ADD RAX,RCX
MOV R12,RCX
MOV RDI,qword ptr [RBP + -0x40]
LAB_001856a9:
MOV R15,qword ptr [RDI + 0x28]
CMP byte ptr [R15 + 0x18],0x0
MOV qword ptr [RBP + -0x48],RSI
JZ 0x001857cd
MOV RBX,RCX
MOV qword ptr [RBP + -0x58],R9
LAB_001856c3:
MOVZX ECX,word ptr [R15 + 0x12]
TEST CL,0x10
JNZ 0x001856d2
MOV R14,RAX
JMP 0x001856fd
LAB_001856d2:
MOV RCX,RSI
MOV R14,R9
CMP R12,RAX
JZ 0x001856e3
MOV RCX,R12
MOV R14,RAX
LAB_001856e3:
MOV AL,byte ptr [RCX]
MOV R12,RCX
INC R12
MOV byte ptr [RBX],AL
INC RBX
TEST AL,AL
JZ 0x001857b6
MOVZX ECX,word ptr [R15 + 0x12]
LAB_001856fd:
TEST CL,0x29
JZ 0x00185727
MOV RCX,RSI
MOV RDX,R9
CMP R12,R14
JZ 0x00185713
MOV RCX,R12
MOV RDX,R14
LAB_00185713:
MOVZX EAX,byte ptr [RCX]
INC RCX
MOV byte ptr [RBX],AL
CMP EAX,0xff
JZ 0x0018572e
INC RBX
JMP 0x0018576d
LAB_00185727:
MOVZX EAX,word ptr [R15 + 0x14]
JMP 0x0018577c
LAB_0018572e:
MOV R8,RSI
MOV RDI,R9
CMP RCX,RDX
JZ 0x0018573f
MOV R8,RCX
MOV RDI,RDX
LAB_0018573f:
MOVZX EAX,byte ptr [R8]
INC R8
MOV byte ptr [RBX + 0x1],AL
MOV RCX,RSI
MOV RDX,R9
CMP R8,RDI
JZ 0x0018575a
MOV RCX,R8
MOV RDX,RDI
LAB_0018575a:
SHL EAX,0x8
MOVZX EDI,byte ptr [RCX]
INC RCX
MOV byte ptr [RBX + 0x2],DIL
ADD RBX,0x3
OR EAX,EDI
LAB_0018576d:
MOVZX EDI,word ptr [R15 + 0x14]
MOV R12,RCX
MOV R14,RDX
CMP EAX,EDI
JA 0x001857f1
LAB_0018577c:
MOV RDX,R14
SUB RDX,R12
MOV ECX,EAX
SUB ECX,EDX
JNC 0x0018578c
MOV ECX,EAX
JMP 0x00185797
LAB_0018578c:
MOV EAX,EDX
ADD RBX,RAX
MOV R12,RSI
MOV R14,R9
LAB_00185797:
MOV R13D,ECX
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R13
CALL 0x00129110
ADD RBX,R13
ADD R12,R13
MOV RSI,qword ptr [RBP + -0x48]
MOV R9,qword ptr [RBP + -0x58]
LAB_001857b6:
LEA R13,[R15 + 0x20]
CMP byte ptr [R15 + 0x38],0x0
MOV RAX,R14
MOV R15,R13
JNZ 0x001856c3
JMP 0x001857d6
LAB_001857cd:
MOV R13,R15
MOV RBX,RCX
MOV R14,RAX
LAB_001857d6:
MOVZX R15D,word ptr [R13 + 0x14]
ADD R15D,dword ptr [RBP + -0x2c]
MOV RAX,R14
SUB RAX,R12
MOV EDX,R15D
SUB EDX,EAX
JNC 0x00185818
CMP R14,R9
JZ 0x00185830
LAB_001857f1:
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x268]
MOV EDI,0x7e
CALL 0x0017ad3a
CALL 0x001a1ab2
MOV dword ptr [RAX],0x7e
XOR EAX,EAX
JMP 0x00185855
LAB_00185818:
MOV R14D,EAX
LEA RDI,[RBX + R14*0x1]
CALL 0x00129080
MOV R12D,R15D
ADD R12,qword ptr [RBP + -0x48]
SUB R12,R14
JMP 0x00185844
LAB_00185830:
MOV R14D,R15D
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R14
CALL 0x00129080
ADD R12,R14
LAB_00185844:
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RAX],R12
SUB EBX,dword ptr [RBP + -0x38]
MOVZX EAX,word ptr [R13 + 0x14]
ADD EAX,EBX
LAB_00185855:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int _mi_get_binary_pack_key(long *param_1,int param_2,int8 *param_3,byte *param_4)
{
byte *pbVar1;
char cVar2;
byte bVar3;
byte bVar4;
uint uVar5;
int iVar6;
byte *pbVar7;
int4 *puVar8;
ushort uVar9;
byte *pbVar10;
byte *pbVar11;
byte *__dest;
long lVar12;
byte *pbVar13;
byte *pbVar14;
ulong uVar15;
uint uVar16;
int local_40;
pbVar13 = (byte *)*param_3;
uVar5 = (uint)*pbVar13;
if (*pbVar13 == 0xff) {
uVar5 = (uint)(ushort)(*(ushort *)(pbVar13 + 1) << 8 | *(ushort *)(pbVar13 + 1) >> 8);
lVar12 = 3;
}
else {
lVar12 = 1;
}
pbVar1 = pbVar13 + 0x4b9;
pbVar13 = pbVar13 + lVar12;
pbVar7 = pbVar1;
pbVar11 = pbVar13;
if (uVar5 == 0) {
LAB_001856a9:
cVar2 = *(char *)(param_1[5] + 0x18);
lVar12 = param_1[5];
__dest = param_4;
while (cVar2 != '\0') {
uVar9 = *(ushort *)(lVar12 + 0x12);
pbVar14 = pbVar7;
if ((uVar9 & 0x10) == 0) {
LAB_001856fd:
if ((uVar9 & 0x29) == 0) {
uVar5 = (uint)*(ushort *)(lVar12 + 0x14);
}
else {
pbVar7 = pbVar13;
pbVar10 = pbVar1;
if (pbVar11 != pbVar14) {
pbVar7 = pbVar11;
pbVar10 = pbVar14;
}
bVar3 = *pbVar7;
uVar5 = (uint)bVar3;
pbVar11 = pbVar7 + 1;
*__dest = bVar3;
if (bVar3 == 0xff) {
pbVar7 = pbVar1;
pbVar14 = pbVar13;
if (pbVar11 != pbVar10) {
pbVar7 = pbVar10;
pbVar14 = pbVar11;
}
bVar3 = *pbVar14;
__dest[1] = bVar3;
pbVar11 = pbVar13;
pbVar10 = pbVar1;
if (pbVar14 + 1 != pbVar7) {
pbVar11 = pbVar14 + 1;
pbVar10 = pbVar7;
}
bVar4 = *pbVar11;
pbVar11 = pbVar11 + 1;
__dest[2] = bVar4;
__dest = __dest + 3;
uVar5 = (uint)CONCAT11(bVar3,bVar4);
}
else {
__dest = __dest + 1;
}
pbVar14 = pbVar10;
if (*(ushort *)(lVar12 + 0x14) < uVar5) goto LAB_001857f1;
}
uVar16 = (uint)((long)pbVar14 - (long)pbVar11);
if (uVar16 <= uVar5) {
__dest = __dest + ((long)pbVar14 - (long)pbVar11 & 0xffffffff);
pbVar11 = pbVar13;
pbVar14 = pbVar1;
uVar5 = uVar5 - uVar16;
}
uVar15 = (ulong)uVar5;
memmove(__dest,pbVar11,uVar15);
__dest = __dest + uVar15;
pbVar11 = pbVar11 + uVar15;
}
else {
pbVar10 = pbVar13;
pbVar14 = pbVar1;
if (pbVar11 != pbVar7) {
pbVar10 = pbVar11;
pbVar14 = pbVar7;
}
bVar3 = *pbVar10;
pbVar11 = pbVar10 + 1;
*__dest = bVar3;
__dest = __dest + 1;
if (bVar3 != 0) {
uVar9 = *(ushort *)(lVar12 + 0x12);
goto LAB_001856fd;
}
}
cVar2 = *(char *)(lVar12 + 0x38);
lVar12 = lVar12 + 0x20;
pbVar7 = pbVar14;
}
uVar16 = (uint)*(ushort *)(lVar12 + 0x14) + param_2;
uVar5 = (uint)((long)pbVar7 - (long)pbVar11);
if (uVar16 < uVar5) {
if (pbVar7 != pbVar1) goto LAB_001857f1;
memcpy(__dest,pbVar11,(ulong)uVar16);
pbVar11 = pbVar11 + uVar16;
}
else {
uVar15 = (long)pbVar7 - (long)pbVar11 & 0xffffffff;
memcpy(__dest + uVar15,pbVar13,(ulong)(uVar16 - uVar5));
pbVar11 = pbVar13 + (uVar16 - uVar15);
}
*param_3 = pbVar11;
local_40 = (int)param_4;
iVar6 = (uint)*(ushort *)(lVar12 + 0x14) + ((int)__dest - local_40);
}
else {
if (uVar5 <= *(ushort *)((long)param_1 + 0x16)) {
pbVar7 = param_4 + uVar5;
pbVar11 = param_4;
goto LAB_001856a9;
}
LAB_001857f1:
mi_report_error(0x7e,*(int8 *)(*param_1 + 0x268));
puVar8 = (int4 *)_my_thread_var();
*puVar8 = 0x7e;
iVar6 = 0;
}
return iVar6;
}
| |
35,198 | string_view::operator[](unsigned long) const | monkey531[P]llama/common/json-schema-to-grammar.cpp | char operator[](size_t pos) const {
auto index = _start + pos;
if (index >= _end) {
throw std::out_of_range("string_view index out of range");
}
return _str[_start + pos];
} | O3 | cpp | string_view::operator[](unsigned long) const:
pushq %r14
pushq %rbx
pushq %rax
addq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
jae 0x4d5eb
movq (%rdi), %rax
movq (%rax), %rax
movb (%rax,%rsi), %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x10, %edi
callq 0x19370
movq %rax, %rbx
leaq 0x6a666(%rip), %rsi # 0xb7c65
movq %rax, %rdi
callq 0x19100
movq 0x9d9b2(%rip), %rsi # 0xeafc0
movq 0x9d993(%rip), %rdx # 0xeafa8
movq %rbx, %rdi
callq 0x19ba0
movq %rax, %r14
movq %rbx, %rdi
callq 0x19510
movq %r14, %rdi
callq 0x19c00
| _ZNK11string_viewixEm:
push r14
push rbx
push rax
add rsi, [rdi+8]
cmp rsi, [rdi+10h]
jnb short loc_4D5EB
mov rax, [rdi]
mov rax, [rax]
mov al, [rax+rsi]
add rsp, 8
pop rbx
pop r14
retn
loc_4D5EB:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aStringViewInde; "string_view index out of range"
mov rdi, rax; this
call __ZNSt12out_of_rangeC1EPKc; std::out_of_range::out_of_range(char const*)
mov rsi, cs:_ZTISt12out_of_range_ptr; lptinfo
mov rdx, cs:_ZNSt12out_of_rangeD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
mov rdi, r14
call __Unwind_Resume
| char string_view::operator[](long long a1, long long a2)
{
unsigned long long v2; // rsi
std::out_of_range *exception; // rbx
v2 = *(_QWORD *)(a1 + 8) + a2;
if ( v2 >= *(_QWORD *)(a1 + 16) )
{
exception = (std::out_of_range *)__cxa_allocate_exception(0x10uLL);
std::out_of_range::out_of_range(exception, "string_view index out of range");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::out_of_range,
(void (*)(void *))&std::out_of_range::~out_of_range);
}
return *(_BYTE *)(**(_QWORD **)a1 + v2);
}
| operator[]:
PUSH R14
PUSH RBX
PUSH RAX
ADD RSI,qword ptr [RDI + 0x8]
CMP RSI,qword ptr [RDI + 0x10]
JNC 0x0014d5eb
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX]
MOV AL,byte ptr [RAX + RSI*0x1]
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_0014d5eb:
MOV EDI,0x10
CALL 0x00119370
MOV RBX,RAX
LAB_0014d5f8:
LEA RSI,[0x1b7c65]
MOV RDI,RAX
CALL 0x00119100
LAB_0014d607:
MOV RSI,qword ptr [0x001eafc0]
MOV RDX,qword ptr [0x001eafa8]
MOV RDI,RBX
CALL 0x00119ba0
|
/* string_view::operator[](unsigned long) const */
int8 __thiscall string_view::operator[](string_view *this,ulong param_1)
{
out_of_range *this_00;
if (param_1 + *(long *)(this + 8) < *(ulong *)(this + 0x10)) {
return CONCAT71((int7)((ulong)**(long **)this >> 8),
*(int1 *)(**(long **)this + param_1 + *(long *)(this + 8)));
}
this_00 = (out_of_range *)__cxa_allocate_exception(0x10);
/* try { // try from 0014d5f8 to 0014d606 has its CatchHandler @ 0014d61d */
std::out_of_range::out_of_range(this_00,"string_view index out of range");
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_001eafc0,PTR__out_of_range_001eafa8);
}
| |
35,199 | minja::TextTemplateToken::~TextTemplateToken() | monkey531[P]llama/common/minja.hpp | TextTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, const std::string& t) : TemplateToken(Type::Text, location, pre, post), text(t) {} | O3 | cpp | minja::TextTemplateToken::~TextTemplateToken():
pushq %rbx
movq %rdi, %rbx
leaq 0x7f43f(%rip), %rax # 0xdaf10
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x30(%rdi), %rdi
leaq 0x40(%rbx), %rax
cmpq %rax, %rdi
je 0x5baf0
movq (%rax), %rsi
incq %rsi
callq 0x186a0
leaq 0x7e6d1(%rip), %rax # 0xda1c8
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x5bb0c
callq 0x2ef66
movl $0x50, %esi
movq %rbx, %rdi
popq %rbx
jmp 0x186a0
| _ZN5minja17TextTemplateTokenD0Ev:
push rbx
mov rbx, rdi
lea rax, _ZTVN5minja17TextTemplateTokenE; `vtable for'minja::TextTemplateToken
add rax, 10h
mov [rdi], rax
mov rdi, [rdi+30h]; void *
lea rax, [rbx+40h]
cmp rdi, rax
jz short loc_5BAF0
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5BAF0:
lea rax, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken
add rax, 10h
mov [rbx], rax
mov rdi, [rbx+18h]
test rdi, rdi
jz short loc_5BB0C
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_5BB0C:
mov esi, 50h ; 'P'; unsigned __int64
mov rdi, rbx; void *
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
| void minja::TextTemplateToken::~TextTemplateToken(minja::TextTemplateToken *this)
{
char *v2; // rdi
volatile signed __int32 *v3; // rdi
*(_QWORD *)this = &`vtable for'minja::TextTemplateToken + 2;
v2 = (char *)*((_QWORD *)this + 6);
if ( v2 != (char *)this + 64 )
operator delete(v2, *((_QWORD *)this + 8) + 1LL);
*(_QWORD *)this = &`vtable for'minja::TemplateToken + 2;
v3 = (volatile signed __int32 *)*((_QWORD *)this + 3);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
operator delete(this, 0x50uLL);
}
| ~TextTemplateToken:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x1daf10]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x30]
LEA RAX,[RBX + 0x40]
CMP RDI,RAX
JZ 0x0015baf0
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x001186a0
LAB_0015baf0:
LEA RAX,[0x1da1c8]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x18]
TEST RDI,RDI
JZ 0x0015bb0c
CALL 0x0012ef66
LAB_0015bb0c:
MOV ESI,0x50
MOV RDI,RBX
POP RBX
JMP 0x001186a0
|
/* minja::TextTemplateToken::~TextTemplateToken() */
void __thiscall minja::TextTemplateToken::~TextTemplateToken(TextTemplateToken *this)
{
*(int ***)this = &PTR__TextTemplateToken_001daf20;
if (*(TextTemplateToken **)(this + 0x30) != this + 0x40) {
operator_delete(*(TextTemplateToken **)(this + 0x30),*(long *)(this + 0x40) + 1);
}
*(int ***)this = &PTR__TemplateToken_001da1d8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18));
}
operator_delete(this,0x50);
return;
}
|
Subsets and Splits
C++ Functions With Standard Library Dependencies
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ Standard Library Function Analysis
Filters C++ code examples that use standard library containers and types, providing useful insights into common programming patterns and data structures in the dataset.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.