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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
24,000 | google::protobuf::strings::AlphaNum::AlphaNum(google::protobuf::strings::Hex) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/strutil.cc | AlphaNum::AlphaNum(strings::Hex hex) {
char *const end = &digits[kFastToBufferSize];
char *writer = end;
uint64_t value = hex.value;
uint64_t width = hex.spec;
// We accomplish minimum width by OR'ing in 0x10000 to the user's value,
// where 0x10000 is the smallest hex number that is as wide as the user
// asked for.
uint64_t mask = (static_cast<uint64_t>(1) << ((width - 1) * 4)) | value;
static const char hexdigits[] = "0123456789abcdef";
do {
*--writer = hexdigits[value & 0xF];
value >>= 4;
mask >>= 4;
} while (mask != 0);
piece_data_ = writer;
piece_size_ = end - writer;
} | O0 | cpp | google::protobuf::strings::AlphaNum::AlphaNum(google::protobuf::strings::Hex):
movq %rsi, -0x10(%rsp)
movl %edx, -0x8(%rsp)
movq %rdi, -0x18(%rsp)
movq -0x18(%rsp), %rax
movq %rax, -0x48(%rsp)
addq $0x10, %rax
addq $0x20, %rax
movq %rax, -0x20(%rsp)
movq -0x20(%rsp), %rax
movq %rax, -0x28(%rsp)
movq -0x10(%rsp), %rax
movq %rax, -0x30(%rsp)
movl -0x8(%rsp), %eax
movq %rax, -0x38(%rsp)
movq -0x38(%rsp), %rcx
subq $0x1, %rcx
shlq $0x2, %rcx
movl $0x1, %eax
shlq %cl, %rax
orq -0x30(%rsp), %rax
movq %rax, -0x40(%rsp)
movq -0x30(%rsp), %rcx
andq $0xf, %rcx
leaq 0x1c19bf(%rip), %rax # 0x1ec8b0
movb (%rax,%rcx), %cl
movq -0x28(%rsp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x28(%rsp)
movb %cl, -0x1(%rax)
movq -0x30(%rsp), %rax
shrq $0x4, %rax
movq %rax, -0x30(%rsp)
movq -0x40(%rsp), %rax
shrq $0x4, %rax
movq %rax, -0x40(%rsp)
cmpq $0x0, -0x40(%rsp)
jne 0x2aee1
movq -0x48(%rsp), %rax
movq -0x28(%rsp), %rcx
movq %rcx, (%rax)
movq -0x20(%rsp), %rcx
movq -0x28(%rsp), %rdx
subq %rdx, %rcx
movq %rcx, 0x8(%rax)
retq
nopl (%rax,%rax)
| _ZN6google8protobuf7strings8AlphaNumC2ENS1_3HexE:
mov [rsp+var_10], rsi
mov [rsp+var_8], edx
mov [rsp+var_18], rdi
mov rax, [rsp+var_18]
mov [rsp+var_48], rax
add rax, 10h
add rax, 20h ; ' '
mov [rsp+var_20], rax
mov rax, [rsp+var_20]
mov [rsp+var_28], rax
mov rax, [rsp+var_10]
mov [rsp+var_30], rax
mov eax, [rsp+var_8]
mov [rsp+var_38], rax
mov rcx, [rsp+var_38]
sub rcx, 1
shl rcx, 2
mov eax, 1
shl rax, cl
or rax, [rsp+var_30]
mov [rsp+var_40], rax
loc_2AEE1:
mov rcx, [rsp+var_30]
and rcx, 0Fh
lea rax, _ZZN6google8protobuf7strings8AlphaNumC1ENS1_3HexEE9hexdigits; "0123456789abcdef"
mov cl, [rax+rcx]
mov rax, [rsp+var_28]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rsp+var_28], rdx
mov [rax-1], cl
mov rax, [rsp+var_30]
shr rax, 4
mov [rsp+var_30], rax
mov rax, [rsp+var_40]
shr rax, 4
mov [rsp+var_40], rax
cmp [rsp+var_40], 0
jnz short loc_2AEE1
mov rax, [rsp+var_48]
mov rcx, [rsp+var_28]
mov [rax], rcx
mov rcx, [rsp+var_20]
mov rdx, [rsp+var_28]
sub rcx, rdx
mov [rax+8], rcx
retn
| char ** google::protobuf::strings::AlphaNum::AlphaNum(char **a1, unsigned long long a2, char a3)
{
char *v3; // rax
char **result; // rax
unsigned long long v5; // [rsp+8h] [rbp-40h]
unsigned long long v6; // [rsp+18h] [rbp-30h]
char *v7; // [rsp+20h] [rbp-28h]
v7 = (char *)(a1 + 6);
v6 = a2;
v5 = a2 | (1LL << (4 * (a3 - 1)));
do
{
v3 = v7--;
*(v3 - 1) = google::protobuf::strings::AlphaNum::AlphaNum(google::protobuf::strings::Hex)::hexdigits[v6 & 0xF];
v6 >>= 4;
v5 >>= 4;
}
while ( v5 );
result = a1;
*a1 = v7;
a1[1] = (char *)((char *)(a1 + 6) - v7);
return result;
}
| AlphaNum:
MOV qword ptr [RSP + -0x10],RSI
MOV dword ptr [RSP + -0x8],EDX
MOV qword ptr [RSP + -0x18],RDI
MOV RAX,qword ptr [RSP + -0x18]
MOV qword ptr [RSP + -0x48],RAX
ADD RAX,0x10
ADD RAX,0x20
MOV qword ptr [RSP + -0x20],RAX
MOV RAX,qword ptr [RSP + -0x20]
MOV qword ptr [RSP + -0x28],RAX
MOV RAX,qword ptr [RSP + -0x10]
MOV qword ptr [RSP + -0x30],RAX
MOV EAX,dword ptr [RSP + -0x8]
MOV qword ptr [RSP + -0x38],RAX
MOV RCX,qword ptr [RSP + -0x38]
SUB RCX,0x1
SHL RCX,0x2
MOV EAX,0x1
SHL RAX,CL
OR RAX,qword ptr [RSP + -0x30]
MOV qword ptr [RSP + -0x40],RAX
LAB_0012aee1:
MOV RCX,qword ptr [RSP + -0x30]
AND RCX,0xf
LEA RAX,[0x2ec8b0]
MOV CL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RSP + -0x28]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RSP + -0x28],RDX
MOV byte ptr [RAX + -0x1],CL
MOV RAX,qword ptr [RSP + -0x30]
SHR RAX,0x4
MOV qword ptr [RSP + -0x30],RAX
MOV RAX,qword ptr [RSP + -0x40]
SHR RAX,0x4
MOV qword ptr [RSP + -0x40],RAX
CMP qword ptr [RSP + -0x40],0x0
JNZ 0x0012aee1
MOV RAX,qword ptr [RSP + -0x48]
MOV RCX,qword ptr [RSP + -0x28]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RSP + -0x20]
MOV RDX,qword ptr [RSP + -0x28]
SUB RCX,RDX
MOV qword ptr [RAX + 0x8],RCX
RET
|
/* google::protobuf::strings::AlphaNum::AlphaNum(google::protobuf::strings::Hex) */
void __thiscall
google::protobuf::strings::AlphaNum::AlphaNum(AlphaNum *this,ulong param_2,char param_3)
{
AlphaNum *pAVar1;
ulong local_40;
ulong local_30;
AlphaNum *local_28;
local_40 = 1L << ((param_3 + -1) * '\x04' & 0x3fU) | param_2;
local_30 = param_2;
local_28 = this + 0x30;
do {
pAVar1 = local_28 + -1;
local_28[-1] = *(AlphaNum *)("0123456789abcdef" + (local_30 & 0xf));
local_30 = local_30 >> 4;
local_40 = local_40 >> 4;
local_28 = pAVar1;
} while (local_40 != 0);
*(AlphaNum **)this = pAVar1;
*(long *)(this + 8) = (long)(this + 0x30) - (long)pAVar1;
return;
}
| |
24,001 | mysql_reset_connection_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_reset_connection_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_reset_connection,
(parms->mysql),
parms->mysql,
int,
r_int)
} | O0 | c | mysql_reset_connection_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 0x46930
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| mysql_reset_connection_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_reset_connection
mov [rbp+var_14], eax
mov ecx, [rbp+var_14]
mov rax, [rbp+var_20]
mov [rax+8], ecx
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
add rsp, 20h
pop rbp
retn
| _DWORD * mysql_reset_connection_start_internal(
long long *a1,
long long a2,
long long a3,
long long a4,
int a5,
int a6)
{
_DWORD *result; // rax
_DWORD *v7; // [rsp+0h] [rbp-20h]
v7 = *(_DWORD **)(*(_QWORD *)(*a1 + 1152) + 40LL);
v7[2] = mysql_reset_connection(*a1, a2, a3, a4, a5, a6);
result = v7;
*v7 = 0;
return result;
}
| mysql_reset_connection_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 0x00146930
MOV dword ptr [RBP + -0x14],EAX
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x8],ECX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x0
ADD RSP,0x20
POP RBP
RET
|
void mysql_reset_connection_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_reset_connection(*param_1);
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
| |
24,002 | fmt::v11::basic_memory_buffer<unsigned int, 32ul, fmt::v11::detail::allocator<unsigned int>>::grow(fmt::v11::detail::buffer<unsigned int>&, unsigned long) | zkingston[P]unknot/build_O0/_deps/fmt-src/include/fmt/format.h | static FMT_CONSTEXPR20 void grow(detail::buffer<T>& buf, size_t size) {
detail::abort_fuzzing_if(size > 5000);
auto& self = static_cast<basic_memory_buffer&>(buf);
const size_t max_size =
std::allocator_traits<Allocator>::max_size(self.alloc_);
size_t old_capacity = buf.capacity();
size_t new_capacity = old_capacity + old_capacity / 2;
if (size > new_capacity)
new_capacity = size;
else if (new_capacity > max_size)
new_capacity = max_of(size, max_size);
T* old_data = buf.data();
T* new_data = self.alloc_.allocate(new_capacity);
// Suppress a bogus -Wstringop-overflow in gcc 13.1 (#3481).
detail::assume(buf.size() <= new_capacity);
// The following code doesn't throw, so the raw pointer above doesn't leak.
memcpy(new_data, old_data, buf.size() * sizeof(T));
self.set(new_data, new_capacity);
// deallocate must not throw according to the standard, but even if it does,
// the buffer already uses the new storage and will deallocate it in
// destructor.
if (old_data != self.store_) self.alloc_.deallocate(old_data, old_capacity);
} | O0 | c | fmt::v11::basic_memory_buffer<unsigned int, 32ul, fmt::v11::detail::allocator<unsigned int>>::grow(fmt::v11::detail::buffer<unsigned int>&, unsigned long):
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
cmpq $0x1388, 0x40(%rsp) # imm = 0x1388
seta %al
movzbl %al, %edi
andl $0x1, %edi
callq 0xab5c0
movq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rdi
addq $0xa0, %rdi
callq 0xb8ca0
movq %rax, 0x30(%rsp)
movq 0x48(%rsp), %rdi
callq 0xb8ce0
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq 0x28(%rsp), %rcx
shrq %rcx
addq %rcx, %rax
movq %rax, 0x20(%rsp)
movq 0x40(%rsp), %rax
cmpq 0x20(%rsp), %rax
jbe 0xb8b41
movq 0x40(%rsp), %rax
movq %rax, 0x20(%rsp)
jmp 0xb8b63
movq 0x20(%rsp), %rax
cmpq 0x30(%rsp), %rax
jbe 0xb8b61
movq 0x40(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0xab630
movq %rax, 0x20(%rsp)
jmp 0xb8b63
movq 0x48(%rsp), %rdi
callq 0xb8cf0
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %rdi
addq $0xa0, %rdi
movq 0x20(%rsp), %rsi
callq 0xb8d00
movq %rax, 0x10(%rsp)
movq 0x48(%rsp), %rdi
callq 0xb8da0
cmpq 0x20(%rsp), %rax
setbe %al
andb $0x1, %al
movb %al, 0x57(%rsp)
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x48(%rsp), %rdi
callq 0xb8da0
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %rax, %rdx
shlq $0x2, %rdx
callq 0x129b0
movq 0x38(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0xb8c70
movq 0x18(%rsp), %rax
movq 0x38(%rsp), %rcx
addq $0x20, %rcx
cmpq %rcx, %rax
je 0xb8c19
movq 0x38(%rsp), %rdi
addq $0xa0, %rdi
movq 0x18(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0xb8db0
addq $0x58, %rsp
retq
nop
| _ZN3fmt3v1119basic_memory_bufferIjLm32ENS0_6detail9allocatorIjEEE4growERNS2_6bufferIjEEm:
sub rsp, 58h
mov [rsp+58h+var_10], rdi
mov [rsp+58h+var_18], rsi
cmp [rsp+58h+var_18], 1388h
setnbe al
movzx edi, al
and edi, 1; this
call _ZN3fmt3v116detail16abort_fuzzing_ifEb; fmt::v11::detail::abort_fuzzing_if(bool)
mov rax, [rsp+58h+var_10]
mov [rsp+58h+var_20], rax
mov rdi, [rsp+58h+var_20]
add rdi, 0A0h
call _ZNSt16allocator_traitsIN3fmt3v116detail9allocatorIjEEE8max_sizeERKS4_; std::allocator_traits<fmt::v11::detail::allocator<uint>>::max_size(fmt::v11::detail::allocator<uint> const&)
mov [rsp+58h+var_28], rax
mov rdi, [rsp+58h+var_10]
call _ZNK3fmt3v116detail6bufferIjE8capacityEv; fmt::v11::detail::buffer<uint>::capacity(void)
mov [rsp+58h+var_30], rax
mov rax, [rsp+58h+var_30]
mov rcx, [rsp+58h+var_30]
shr rcx, 1
add rax, rcx
mov [rsp+58h+var_38], rax
mov rax, [rsp+58h+var_18]
cmp rax, [rsp+58h+var_38]
jbe short loc_B8B41
mov rax, [rsp+58h+var_18]
mov [rsp+58h+var_38], rax
jmp short loc_B8B63
loc_B8B41:
mov rax, [rsp+58h+var_38]
cmp rax, [rsp+58h+var_28]
jbe short loc_B8B61
mov rdi, [rsp+58h+var_18]
mov rsi, [rsp+58h+var_28]
call _ZN3fmt3v116max_ofImEET_S2_S2_; fmt::v11::max_of<ulong>(ulong,ulong)
mov [rsp+58h+var_38], rax
loc_B8B61:
jmp short $+2
loc_B8B63:
mov rdi, [rsp+58h+var_10]
call _ZN3fmt3v116detail6bufferIjE4dataEv; fmt::v11::detail::buffer<uint>::data(void)
mov [rsp+58h+var_40], rax
mov rdi, [rsp+58h+var_20]
add rdi, 0A0h
mov rsi, [rsp+58h+var_38]
call _ZN3fmt3v116detail9allocatorIjE8allocateEm; fmt::v11::detail::allocator<uint>::allocate(ulong)
mov [rsp+58h+var_48], rax
mov rdi, [rsp+58h+var_10]
call _ZNK3fmt3v116detail6bufferIjE4sizeEv; fmt::v11::detail::buffer<uint>::size(void)
cmp rax, [rsp+58h+var_38]
setbe al
and al, 1
mov [rsp+58h+var_1], al
mov rax, [rsp+58h+var_48]
mov [rsp+58h+var_58], rax
mov rax, [rsp+58h+var_40]
mov [rsp+58h+var_50], rax
mov rdi, [rsp+58h+var_10]
call _ZNK3fmt3v116detail6bufferIjE4sizeEv; fmt::v11::detail::buffer<uint>::size(void)
mov rdi, [rsp+58h+var_58]
mov rsi, [rsp+58h+var_50]
mov rdx, rax
shl rdx, 2
call _memcpy
mov rdi, [rsp+58h+var_20]
mov rsi, [rsp+58h+var_48]
mov rdx, [rsp+58h+var_38]
call _ZN3fmt3v116detail6bufferIjE3setEPjm; fmt::v11::detail::buffer<uint>::set(uint *,ulong)
mov rax, [rsp+58h+var_40]
mov rcx, [rsp+58h+var_20]
add rcx, 20h ; ' '
cmp rax, rcx
jz short loc_B8C19
mov rdi, [rsp+58h+var_20]
add rdi, 0A0h
mov rsi, [rsp+58h+var_40]
mov rdx, [rsp+58h+var_30]
call _ZN3fmt3v116detail9allocatorIjE10deallocateEPjm; fmt::v11::detail::allocator<uint>::deallocate(uint *,ulong)
loc_B8C19:
add rsp, 58h
retn
| long long fmt::v11::basic_memory_buffer<unsigned int,32ul,fmt::v11::detail::allocator<unsigned int>>::grow(
long long a1,
unsigned long long a2)
{
long long v2; // rax
long long result; // rax
long long v4; // [rsp+10h] [rbp-48h]
long long v5; // [rsp+18h] [rbp-40h]
unsigned long long v6; // [rsp+20h] [rbp-38h]
unsigned long long v7; // [rsp+28h] [rbp-30h]
unsigned long long v8; // [rsp+30h] [rbp-28h]
fmt::v11::detail::abort_fuzzing_if((fmt::v11::detail *)(a2 > 0x1388));
v8 = std::allocator_traits<fmt::v11::detail::allocator<unsigned int>>::max_size(a1 + 160);
v7 = fmt::v11::detail::buffer<unsigned int>::capacity(a1);
v6 = (v7 >> 1) + v7;
if ( a2 <= v6 )
{
if ( v6 > v8 )
v6 = fmt::v11::max_of<unsigned long>(a2, v8);
}
else
{
v6 = a2;
}
v5 = fmt::v11::detail::buffer<unsigned int>::data(a1);
v4 = fmt::v11::detail::allocator<unsigned int>::allocate(a1 + 160, v6);
fmt::v11::detail::buffer<unsigned int>::size(a1, v6);
v2 = fmt::v11::detail::buffer<unsigned int>::size(a1, v6);
memcpy(v4, v5, 4 * v2);
fmt::v11::detail::buffer<unsigned int>::set(a1, v4, v6);
result = v5;
if ( v5 != a1 + 32 )
return fmt::v11::detail::allocator<unsigned int>::deallocate(a1 + 160, v5, v7);
return result;
}
| grow:
SUB RSP,0x58
MOV qword ptr [RSP + 0x48],RDI
MOV qword ptr [RSP + 0x40],RSI
CMP qword ptr [RSP + 0x40],0x1388
SETA AL
MOVZX EDI,AL
AND EDI,0x1
CALL 0x001ab5c0
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x38],RAX
MOV RDI,qword ptr [RSP + 0x38]
ADD RDI,0xa0
CALL 0x001b8ca0
MOV qword ptr [RSP + 0x30],RAX
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x001b8ce0
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV RCX,qword ptr [RSP + 0x28]
SHR RCX,0x1
ADD RAX,RCX
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x40]
CMP RAX,qword ptr [RSP + 0x20]
JBE 0x001b8b41
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x20],RAX
JMP 0x001b8b63
LAB_001b8b41:
MOV RAX,qword ptr [RSP + 0x20]
CMP RAX,qword ptr [RSP + 0x30]
JBE 0x001b8b61
MOV RDI,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP + 0x30]
CALL 0x001ab630
MOV qword ptr [RSP + 0x20],RAX
LAB_001b8b61:
JMP 0x001b8b63
LAB_001b8b63:
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x001b8cf0
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0x38]
ADD RDI,0xa0
MOV RSI,qword ptr [RSP + 0x20]
CALL 0x001b8d00
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x001b8da0
CMP RAX,qword ptr [RSP + 0x20]
SETBE AL
AND AL,0x1
MOV byte ptr [RSP + 0x57],AL
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x001b8da0
MOV RDI,qword ptr [RSP]
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,RAX
SHL RDX,0x2
CALL 0x001129b0
MOV RDI,qword ptr [RSP + 0x38]
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x20]
CALL 0x001b8c70
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x38]
ADD RCX,0x20
CMP RAX,RCX
JZ 0x001b8c19
MOV RDI,qword ptr [RSP + 0x38]
ADD RDI,0xa0
MOV RSI,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x28]
CALL 0x001b8db0
LAB_001b8c19:
ADD RSP,0x58
RET
|
/* fmt::v11::basic_memory_buffer<unsigned int, 32ul, fmt::v11::detail::allocator<unsigned int>
>::grow(fmt::v11::detail::buffer<unsigned int>&, unsigned long) */
void fmt::v11::basic_memory_buffer<unsigned_int,32ul,fmt::v11::detail::allocator<unsigned_int>>::
grow(buffer *param_1,ulong param_2)
{
ulong uVar1;
ulong uVar2;
buffer *__src;
uint *__dest;
long lVar3;
ulong local_38;
detail::abort_fuzzing_if(5000 < param_2);
uVar1 = std::allocator_traits<fmt::v11::detail::allocator<unsigned_int>>::max_size
((allocator *)(param_1 + 0xa0));
uVar2 = detail::buffer<unsigned_int>::capacity((buffer<unsigned_int> *)param_1);
uVar2 = uVar2 + (uVar2 >> 1);
local_38 = param_2;
if ((param_2 <= uVar2) && (local_38 = uVar2, uVar1 < uVar2)) {
local_38 = max_of<unsigned_long>(param_2,uVar1);
}
__src = (buffer *)detail::buffer<unsigned_int>::data((buffer<unsigned_int> *)param_1);
__dest = (uint *)detail::allocator<unsigned_int>::allocate
((allocator<unsigned_int> *)(param_1 + 0xa0),local_38);
detail::buffer<unsigned_int>::size((buffer<unsigned_int> *)param_1);
lVar3 = detail::buffer<unsigned_int>::size((buffer<unsigned_int> *)param_1);
memcpy(__dest,__src,lVar3 << 2);
detail::buffer<unsigned_int>::set((buffer<unsigned_int> *)param_1,__dest,local_38);
if (__src != param_1 + 0x20) {
detail::allocator<unsigned_int>::deallocate((uint *)(param_1 + 0xa0),(ulong)__src);
}
return;
}
| |
24,003 | google::protobuf::compiler::java::ImmutableServiceGenerator::GenerateCallBlockingMethod(google::protobuf::io::Printer*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/service.cc | void ImmutableServiceGenerator::GenerateCallBlockingMethod(
io::Printer* printer) {
printer->Print(
"\n"
"public final com.google.protobuf.Message callBlockingMethod(\n"
" com.google.protobuf.Descriptors.MethodDescriptor method,\n"
" com.google.protobuf.RpcController controller,\n"
" com.google.protobuf.Message request)\n"
" throws com.google.protobuf.ServiceException {\n"
" if (method.getService() != getDescriptor()) {\n"
" throw new java.lang.IllegalArgumentException(\n"
" \"Service.callBlockingMethod() given method descriptor for \" +\n"
" \"wrong service type.\");\n"
" }\n"
" switch(method.getIndex()) {\n");
printer->Indent();
printer->Indent();
for (int i = 0; i < descriptor_->method_count(); i++) {
const MethodDescriptor* method = descriptor_->method(i);
std::map<std::string, std::string> vars;
vars["index"] = StrCat(i);
vars["method"] = UnderscoresToCamelCase(method);
vars["input"] = name_resolver_->GetImmutableClassName(method->input_type());
vars["output"] = GetOutput(method);
printer->Print(vars,
"case $index$:\n"
" return impl.$method$(controller, ($input$)request);\n");
}
printer->Print(
"default:\n"
" throw new java.lang.AssertionError(\"Can't get here.\");\n");
printer->Outdent();
printer->Outdent();
printer->Print(
" }\n"
"}\n"
"\n");
} | O3 | cpp | google::protobuf::compiler::java::ImmutableServiceGenerator::GenerateCallBlockingMethod(google::protobuf::io::Printer*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x10be86(%rip), %rsi # 0x1c3cb4
movq %rbx, %rdi
callq 0x2e40a
movq %rbx, %rdi
callq 0x16d126
movq %rbx, 0x30(%rsp)
movq %rbx, %rdi
callq 0x16d126
movq %r14, 0x28(%rsp)
movq 0x8(%r14), %rax
cmpl $0x0, 0x28(%rax)
jle 0xb8118
leaq 0x48(%rsp), %r15
leaq 0x8(%rsp), %r13
leaq 0x78(%rsp), %r12
leaq 0x98(%rsp), %rbp
xorl %edx, %edx
xorl %edi, %edi
movq %rbp, %r14
movq 0x20(%rax), %rbx
movq %rdx, 0x70(%rsp)
addq %rdx, %rbx
movl $0x0, 0xa0(%rsp)
xorl %ecx, %ecx
movq %rcx, 0xa8(%rsp)
leaq 0xa0(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq %rax, 0xb8(%rsp)
movq %rcx, 0xc0(%rsp)
movq %r15, 0x38(%rsp)
movq %rdi, 0x68(%rsp)
movq %r15, %rsi
callq 0x10a7e0
subq %r15, %rax
movq %rax, 0x40(%rsp)
movq 0x38(%rsp), %rsi
leaq 0x18(%rsp), %rcx
movq %rcx, 0x8(%rsp)
addq %rsi, %rax
movq %r13, %rdi
movq %rax, %rdx
callq 0x250b2
leaq 0x88(%rsp), %rax
movq %rax, 0x78(%rsp)
movq %r12, %rbp
movq %r12, %rdi
leaq 0xf6535(%rip), %rsi # 0x1ae443
leaq 0xf6533(%rip), %rdx # 0x1ae448
callq 0x250b2
movq %r14, %rdi
movq %rbp, %rsi
callq 0x2e310
movq %rax, %rdi
movq %r13, %rsi
callq 0x1f5d0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0xb7f47
callq 0x1f4a0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xb7f5b
callq 0x1f4a0
leaq 0x38(%rsp), %rdi
movq %rbx, %rsi
callq 0x4365a
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %r13, %rbp
movq %r13, %rdi
leaq 0x10b9c9(%rip), %rsi # 0x1c3948
leaq 0x10b9c8(%rip), %rdx # 0x1c394e
callq 0x250b2
movq %r14, %rdi
movq %rbp, %rsi
callq 0x2e310
movq %rax, %rdi
leaq 0x38(%rsp), %rsi
callq 0x1f5d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xb7fb7
callq 0x1f4a0
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
movq %r14, %rbp
je 0xb7fc9
callq 0x1f4a0
movq 0x28(%rsp), %rax
movq 0x18(%rax), %r15
movq %rbx, %rdi
callq 0x11ff78
leaq 0x38(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
movl $0x1, %ecx
callq 0x47ac2
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %r13, %r15
movq %r13, %rdi
leaq 0x101c6a(%rip), %rsi # 0x1b9c73
leaq 0x101c68(%rip), %rdx # 0x1b9c78
callq 0x250b2
movq %rbp, %rdi
movq %r15, %rsi
leaq 0x48(%rsp), %r15
callq 0x2e310
movq %rax, %rdi
movq %r14, %rsi
callq 0x1f5d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xb8044
callq 0x1f4a0
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0xb8053
callq 0x1f4a0
movq 0x28(%rsp), %rax
movq 0x18(%rax), %r15
movq %rbx, %rdi
callq 0x11ff90
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
movl $0x1, %ecx
callq 0x47ac2
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %r13, %rdi
leaq 0xe2c6d(%rip), %rsi # 0x19acf8
leaq 0xe2c6c(%rip), %rdx # 0x19acfe
callq 0x250b2
movq %rbp, %rdi
movq %r13, %rsi
leaq 0x48(%rsp), %r15
callq 0x2e310
movq %rax, %rdi
movq %r14, %rsi
callq 0x1f5d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xb80c6
callq 0x1f4a0
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0xb80d5
callq 0x1f4a0
movq 0x30(%rsp), %rdi
movq %rbp, %rsi
leaq 0x10bdbf(%rip), %rdx # 0x1c3ea3
callq 0x16cd32
movq %rbp, %rdi
callq 0x2e5e0
movq 0x68(%rsp), %rdi
incq %rdi
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rax
movslq 0x28(%rax), %rcx
movq 0x70(%rsp), %rdx
addq $0x40, %rdx
cmpq %rcx, %rdi
jl 0xb7e79
leaq 0x10bb52(%rip), %rsi # 0x1c3c71
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
callq 0x2e40a
movq %rbx, %rdi
callq 0x16d136
movq %rbx, %rdi
callq 0x16d136
leaq 0x106ff9(%rip), %rsi # 0x1bf13c
movq %rbx, %rdi
callq 0x2e40a
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0xb817c
movq %rax, %rbx
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0xb817c
callq 0x1f4a0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
jmp 0xb81b8
jmp 0xb81ca
jmp 0xb8192
jmp 0xb8197
jmp 0xb8192
jmp 0xb8197
movq %rax, %rbx
jmp 0xb81ae
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xb81ae
callq 0x1f4a0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0xb81cd
callq 0x1f4a0
jmp 0xb81cd
jmp 0xb81ca
jmp 0xb81ca
jmp 0xb81ca
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x2e5e0
movq %rbx, %rdi
callq 0x1f860
| _ZN6google8protobuf8compiler4java25ImmutableServiceGenerator26GenerateCallBlockingMethodEPNS0_2io7PrinterE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C8h
mov rbx, rsi
mov r14, rdi
lea rsi, aPublicFinalCom_1; "\npublic final com.google.protobuf.Mess"...
mov rdi, rbx
call _ZN6google8protobuf2io7Printer5PrintIJEEEvPKcDpRKT_
mov rdi, rbx; this
call _ZN6google8protobuf2io7Printer6IndentEv; google::protobuf::io::Printer::Indent(void)
mov [rsp+0F8h+var_C8], rbx; int
mov rdi, rbx; this
call _ZN6google8protobuf2io7Printer6IndentEv; google::protobuf::io::Printer::Indent(void)
mov qword ptr [rsp+0F8h+var_D0], r14; int
mov rax, [r14+8]
cmp dword ptr [rax+28h], 0
jle loc_B8118
lea r15, [rsp+0F8h+var_B0]
lea r13, [rsp+0F8h+var_F0]
lea r12, [rsp+0F8h+var_80]
lea rbp, [rsp+0F8h+var_60]
xor edx, edx; char *
xor edi, edi; this
loc_B7E79:
mov r14, rbp
mov rbx, [rax+20h]
mov [rsp+0F8h+var_88], rdx
add rbx, rdx
mov [rsp+0F8h+var_58], 0
xor ecx, ecx
mov [rsp+0F8h+var_50], rcx
lea rax, [rsp+0F8h+var_58]
mov [rsp+0F8h+var_48], rax
mov [rsp+0F8h+var_40], rax
mov [rsp+0F8h+var_38], rcx
mov [rsp+0F8h+var_C0], r15; int
mov [rsp+0F8h+var_90], rdi
mov rsi, r15; int
call _ZN6google8protobuf21FastInt32ToBufferLeftEiPc; google::protobuf::FastInt32ToBufferLeft(int,char *)
sub rax, r15
mov qword ptr [rsp+0F8h+var_B8], rax; int
mov rsi, [rsp+0F8h+var_C0]
lea rcx, [rsp+0F8h+var_E0]
mov [rsp+0F8h+var_F0], rcx
add rax, rsi
mov rdi, r13
mov rdx, rax
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, [rsp+0F8h+var_70]
mov [rsp+0F8h+var_80], rax
mov rbp, r12
mov rdi, r12
lea rsi, aOneofIndex+6; "index"
lea rdx, aOneofIndex+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)
mov rdi, r14
mov rsi, rbp
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixEOS5_; std::map<std::string,std::string>::operator[](std::string&&)
mov rdi, rax
mov rsi, r13
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [rsp+0F8h+var_80]; void *
lea rax, [rsp+0F8h+var_70]
cmp rdi, rax
jz short loc_B7F47
call __ZdlPv; operator delete(void *)
loc_B7F47:
mov rdi, [rsp+0F8h+var_F0]; void *
lea rax, [rsp+0F8h+var_E0]
cmp rdi, rax
jz short loc_B7F5B
call __ZdlPv; operator delete(void *)
loc_B7F5B:
lea rdi, [rsp+0F8h+var_C0]
mov rsi, rbx
call _ZN6google8protobuf8compiler4java22UnderscoresToCamelCaseB5cxx11EPKNS0_16MethodDescriptorE; google::protobuf::compiler::java::UnderscoresToCamelCase(google::protobuf::MethodDescriptor const*)
lea rax, [rsp+0F8h+var_E0]
mov [rsp+0F8h+var_F0], rax
mov rbp, r13
mov rdi, r13
lea rsi, aMethod; "method"
lea rdx, aMethod+6; ""
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, r14
mov rsi, rbp
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixEOS5_; std::map<std::string,std::string>::operator[](std::string&&)
mov rdi, rax
lea rsi, [rsp+0F8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [rsp+0F8h+var_F0]; void *
lea rax, [rsp+0F8h+var_E0]
cmp rdi, rax
jz short loc_B7FB7
call __ZdlPv; operator delete(void *)
loc_B7FB7:
mov rdi, [rsp+0F8h+var_C0]; void *
cmp rdi, r15
mov rbp, r14
jz short loc_B7FC9
call __ZdlPv; operator delete(void *)
loc_B7FC9:
mov rax, qword ptr [rsp+0F8h+var_D0]
mov r15, [rax+18h]
mov rdi, rbx; this
call _ZNK6google8protobuf16MethodDescriptor10input_typeEv; google::protobuf::MethodDescriptor::input_type(void)
lea r14, [rsp+0F8h+var_C0]
mov rdi, r14
mov rsi, r15
mov rdx, rax
mov ecx, 1
call _ZN6google8protobuf8compiler4java17ClassNameResolver12GetClassNameB5cxx11EPKNS0_10DescriptorEb; google::protobuf::compiler::java::ClassNameResolver::GetClassName(google::protobuf::Descriptor const*,bool)
lea rax, [rsp+0F8h+var_E0]
mov [rsp+0F8h+var_F0], rax
mov r15, r13
mov rdi, r13
lea rsi, aRefInput+4; "input"
lea rdx, aRefInput+9; ""
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, rbp
mov rsi, r15
lea r15, [rsp+0F8h+var_B0]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixEOS5_; std::map<std::string,std::string>::operator[](std::string&&)
mov rdi, rax
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [rsp+0F8h+var_F0]; void *
lea rax, [rsp+0F8h+var_E0]
cmp rdi, rax
jz short loc_B8044
call __ZdlPv; operator delete(void *)
loc_B8044:
mov rdi, [rsp+0F8h+var_C0]; void *
cmp rdi, r15
jz short loc_B8053
call __ZdlPv; operator delete(void *)
loc_B8053:
mov rax, qword ptr [rsp+0F8h+var_D0]
mov r15, [rax+18h]
mov rdi, rbx; this
call _ZNK6google8protobuf16MethodDescriptor11output_typeEv; google::protobuf::MethodDescriptor::output_type(void)
mov rdi, r14
mov rsi, r15
mov rdx, rax
mov ecx, 1
call _ZN6google8protobuf8compiler4java17ClassNameResolver12GetClassNameB5cxx11EPKNS0_10DescriptorEb; google::protobuf::compiler::java::ClassNameResolver::GetClassName(google::protobuf::Descriptor const*,bool)
lea rax, [rsp+0F8h+var_E0]
mov [rsp+0F8h+var_F0], rax; int
mov rdi, r13
lea rsi, aDeterministicO+10h; "output"
lea rdx, aDeterministicO+16h; ""
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, rbp
mov rsi, r13
lea r15, [rsp+0F8h+var_B0]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixEOS5_; std::map<std::string,std::string>::operator[](std::string&&)
mov rdi, rax
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [rsp+0F8h+var_F0]; void *
lea rax, [rsp+0F8h+var_E0]
cmp rdi, rax
jz short loc_B80C6
call __ZdlPv; operator delete(void *)
loc_B80C6:
mov rdi, [rsp+0F8h+var_C0]; void *
cmp rdi, r15
jz short loc_B80D5
call __ZdlPv; operator delete(void *)
loc_B80D5:
mov rdi, [rsp+0F8h+var_C8]; this
mov rsi, rbp
lea rdx, aCaseIndexRetur_0; "case $index$:\n return impl.$method$(c"...
call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
mov rdi, rbp
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree()
mov rdi, [rsp+0F8h+var_90]
inc rdi
mov rax, qword ptr [rsp+0F8h+var_D0]
mov rax, [rax+8]
movsxd rcx, dword ptr [rax+28h]
mov rdx, [rsp+0F8h+var_88]
add rdx, 40h ; '@'
cmp rdi, rcx
jl loc_B7E79
loc_B8118:
lea rsi, aDefaultThrowNe_0; "default:\n throw new java.lang.Asserti"...
mov rbx, [rsp+0F8h+var_C8]
mov rdi, rbx
call _ZN6google8protobuf2io7Printer5PrintIJEEEvPKcDpRKT_
mov rdi, rbx; this
call _ZN6google8protobuf2io7Printer7OutdentEv; google::protobuf::io::Printer::Outdent(void)
mov rdi, rbx; this
call _ZN6google8protobuf2io7Printer7OutdentEv; google::protobuf::io::Printer::Outdent(void)
lea rsi, aKotlinJvmJvmsy_8+0B3h; " }\n}\n\n"
mov rdi, rbx
call _ZN6google8protobuf2io7Printer5PrintIJEEEvPKcDpRKT_
add rsp, 0C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
jmp short loc_B817C
mov rbx, rax
mov rdi, [rsp+arg_70]; void *
lea rax, [rsp+arg_80]
cmp rdi, rax
jz short loc_B817C
call __ZdlPv; operator delete(void *)
loc_B817C:
mov rdi, [rsp+arg_0]
lea rax, [rsp+arg_10]
jmp short loc_B81B8
jmp short loc_B81CA
jmp short loc_B8192
jmp short loc_B8197
jmp short loc_B8192
jmp short loc_B8197
loc_B8192:
mov rbx, rax
jmp short loc_B81AE
loc_B8197:
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
lea rax, [rsp+arg_10]
cmp rdi, rax
jz short loc_B81AE
call __ZdlPv; operator delete(void *)
loc_B81AE:
mov rdi, [rsp+arg_30]; void *
lea rax, [rsp+arg_40]
loc_B81B8:
cmp rdi, rax
jz short loc_B81CD
call __ZdlPv; operator delete(void *)
jmp short loc_B81CD
jmp short loc_B81CA
jmp short loc_B81CA
jmp short $+2
loc_B81CA:
mov rbx, rax
loc_B81CD:
lea rdi, [rsp+arg_90]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree()
mov rdi, rbx
call __Unwind_Resume
| long long google::protobuf::compiler::java::ImmutableServiceGenerator::GenerateCallBlockingMethod(
google::protobuf::compiler::java::ImmutableServiceGenerator *this,
google::protobuf::io::Printer *a2)
{
char *v2; // rdx
long long v3; // rax
google::protobuf *v4; // rdi
long long v5; // rbx
google::protobuf::MethodDescriptor *v6; // rbx
long long v7; // rax
long long v8; // rax
long long v9; // r15
long long v10; // rax
long long v11; // rax
long long v12; // r15
long long v13; // rax
long long v14; // rax
google::protobuf::io::Printer *v15; // rbx
void *v17; // [rsp+0h] [rbp-F8h]
void *v18; // [rsp+8h] [rbp-F0h] BYREF
char v19; // [rsp+10h] [rbp-E8h]
int v20[4]; // [rsp+18h] [rbp-E0h] BYREF
int v21[2]; // [rsp+28h] [rbp-D0h]
google::protobuf::io::Printer *v22; // [rsp+30h] [rbp-C8h]
void *v23; // [rsp+38h] [rbp-C0h] BYREF
int v24[2]; // [rsp+40h] [rbp-B8h]
int v25[4]; // [rsp+48h] [rbp-B0h] BYREF
char v26; // [rsp+58h] [rbp-A0h]
google::protobuf *v27; // [rsp+68h] [rbp-90h]
char *v28; // [rsp+70h] [rbp-88h]
void *v29[2]; // [rsp+78h] [rbp-80h] BYREF
_BYTE v30[16]; // [rsp+88h] [rbp-70h] BYREF
_BYTE v31[8]; // [rsp+98h] [rbp-60h] BYREF
int v32; // [rsp+A0h] [rbp-58h] BYREF
long long v33; // [rsp+A8h] [rbp-50h]
int *v34; // [rsp+B0h] [rbp-48h]
int *v35; // [rsp+B8h] [rbp-40h]
long long v36; // [rsp+C0h] [rbp-38h]
google::protobuf::io::Printer::Print<>(
a2,
"\n"
"public final com.google.protobuf.Message callBlockingMethod(\n"
" com.google.protobuf.Descriptors.MethodDescriptor method,\n"
" com.google.protobuf.RpcController controller,\n"
" com.google.protobuf.Message request)\n"
" throws com.google.protobuf.ServiceException {\n"
" if (method.getService() != getDescriptor()) {\n"
" throw new java.lang.IllegalArgumentException(\n"
" \"Service.callBlockingMethod() given method descriptor for \" +\n"
" \"wrong service type.\");\n"
" }\n"
" switch(method.getIndex()) {\n");
google::protobuf::io::Printer::Indent(a2);
v22 = a2;
google::protobuf::io::Printer::Indent(a2);
*(_QWORD *)v21 = this;
v3 = *((_QWORD *)this + 1);
if ( *(int *)(v3 + 40) > 0 )
{
v2 = 0LL;
v4 = 0LL;
do
{
v5 = *(_QWORD *)(v3 + 32);
v28 = v2;
v6 = (google::protobuf::MethodDescriptor *)&v2[v5];
v32 = 0;
v33 = 0LL;
v34 = &v32;
v35 = &v32;
v36 = 0LL;
v23 = v25;
v27 = v4;
*(_QWORD *)v24 = google::protobuf::FastInt32ToBufferLeft(v4, (int)v25, v2) - (_QWORD)v25;
v18 = v20;
std::string::_M_construct<char const*>((long long)&v18, v23, (long long)v23 + *(_QWORD *)v24);
v29[0] = v30;
std::string::_M_construct<char const*>((long long)v29, "index", (long long)"");
v7 = std::map<std::string,std::string>::operator[]((long long)v31, (long long)v29);
std::string::operator=(v7, &v18);
if ( v29[0] != v30 )
operator delete(v29[0]);
if ( v18 != v20 )
operator delete(v18);
google::protobuf::compiler::java::UnderscoresToCamelCase[abi:cxx11]((long long)&v23, (long long)v6);
v18 = v20;
std::string::_M_construct<char const*>((long long)&v18, "method", (long long)"");
v8 = std::map<std::string,std::string>::operator[]((long long)v31, (long long)&v18);
std::string::operator=(v8, &v23);
if ( v18 != v20 )
operator delete(v18);
if ( v23 != v25 )
operator delete(v23);
v9 = *(_QWORD *)(*(_QWORD *)v21 + 24LL);
v10 = google::protobuf::MethodDescriptor::input_type(v6);
google::protobuf::compiler::java::ClassNameResolver::GetClassName[abi:cxx11](&v23, v9, v10, 1LL);
v18 = v20;
std::string::_M_construct<char const*>((long long)&v18, "input", (long long)"");
v11 = std::map<std::string,std::string>::operator[]((long long)v31, (long long)&v18);
std::string::operator=(v11, &v23);
if ( v18 != v20 )
operator delete(v18);
if ( v23 != v25 )
operator delete(v23);
v12 = *(_QWORD *)(*(_QWORD *)v21 + 24LL);
v13 = google::protobuf::MethodDescriptor::output_type(v6);
google::protobuf::compiler::java::ClassNameResolver::GetClassName[abi:cxx11](&v23, v12, v13, 1LL);
v18 = v20;
std::string::_M_construct<char const*>((long long)&v18, "output", (long long)"");
v14 = std::map<std::string,std::string>::operator[]((long long)v31, (long long)&v18);
std::string::operator=(v14, &v23);
if ( v18 != v20 )
operator delete(v18);
if ( v23 != v25 )
operator delete(v23);
google::protobuf::io::Printer::Print(
v22,
v17,
(int)v18,
v19,
v20[0],
v20[2],
v21[0],
(int)v22,
(int)v23,
v24[0],
*(void **)v25,
v25[2],
v26);
std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree((long long)v31);
v4 = (google::protobuf *)((char *)v27 + 1);
v3 = *(_QWORD *)(*(_QWORD *)v21 + 8LL);
v2 = v28 + 64;
}
while ( (long long)v27 + 1 < *(int *)(v3 + 40) );
}
v15 = v22;
google::protobuf::io::Printer::Print<>(
v22,
"default:\n throw new java.lang.AssertionError(\"Can't get here.\");\n",
v2);
google::protobuf::io::Printer::Outdent(v15);
google::protobuf::io::Printer::Outdent(v15);
return google::protobuf::io::Printer::Print<>(v15, " }\n}\n\n");
}
| GenerateCallBlockingMethod:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc8
MOV RBX,RSI
MOV R14,RDI
LEA RSI,[0x2c3cb4]
MOV RDI,RBX
CALL 0x0012e40a
MOV RDI,RBX
CALL 0x0026d126
MOV qword ptr [RSP + 0x30],RBX
MOV RDI,RBX
CALL 0x0026d126
MOV qword ptr [RSP + 0x28],R14
MOV RAX,qword ptr [R14 + 0x8]
CMP dword ptr [RAX + 0x28],0x0
JLE 0x001b8118
LEA R15,[RSP + 0x48]
LEA R13,[RSP + 0x8]
LEA R12,[RSP + 0x78]
LEA RBP,[RSP + 0x98]
XOR EDX,EDX
XOR EDI,EDI
LAB_001b7e79:
MOV R14,RBP
MOV RBX,qword ptr [RAX + 0x20]
MOV qword ptr [RSP + 0x70],RDX
ADD RBX,RDX
MOV dword ptr [RSP + 0xa0],0x0
XOR ECX,ECX
MOV qword ptr [RSP + 0xa8],RCX
LEA RAX,[RSP + 0xa0]
MOV qword ptr [RSP + 0xb0],RAX
MOV qword ptr [RSP + 0xb8],RAX
MOV qword ptr [RSP + 0xc0],RCX
MOV qword ptr [RSP + 0x38],R15
LAB_001b7ec2:
MOV qword ptr [RSP + 0x68],RDI
MOV RSI,R15
CALL 0x0020a7e0
SUB RAX,R15
MOV qword ptr [RSP + 0x40],RAX
MOV RSI,qword ptr [RSP + 0x38]
LEA RCX,[RSP + 0x18]
MOV qword ptr [RSP + 0x8],RCX
ADD RAX,RSI
MOV RDI,R13
MOV RDX,RAX
CALL 0x001250b2
LEA RAX,[RSP + 0x88]
MOV qword ptr [RSP + 0x78],RAX
LAB_001b7f01:
MOV RBP,R12
MOV RDI,R12
LEA RSI,[0x2ae443]
LEA RDX,[0x2ae448]
CALL 0x001250b2
LAB_001b7f1a:
MOV RDI,R14
MOV RSI,RBP
CALL 0x0012e310
MOV RDI,RAX
MOV RSI,R13
CALL 0x0011f5d0
MOV RDI,qword ptr [RSP + 0x78]
LEA RAX,[RSP + 0x88]
CMP RDI,RAX
JZ 0x001b7f47
CALL 0x0011f4a0
LAB_001b7f47:
MOV RDI,qword ptr [RSP + 0x8]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x001b7f5b
CALL 0x0011f4a0
LAB_001b7f5b:
LEA RDI,[RSP + 0x38]
MOV RSI,RBX
CALL 0x0014365a
LEA RAX,[RSP + 0x18]
MOV qword ptr [RSP + 0x8],RAX
LAB_001b7f72:
MOV RBP,R13
MOV RDI,R13
LEA RSI,[0x2c3948]
LEA RDX,[0x2c394e]
CALL 0x001250b2
LAB_001b7f8b:
MOV RDI,R14
MOV RSI,RBP
CALL 0x0012e310
MOV RDI,RAX
LEA RSI,[RSP + 0x38]
CALL 0x0011f5d0
MOV RDI,qword ptr [RSP + 0x8]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x001b7fb7
CALL 0x0011f4a0
LAB_001b7fb7:
MOV RDI,qword ptr [RSP + 0x38]
CMP RDI,R15
MOV RBP,R14
JZ 0x001b7fc9
CALL 0x0011f4a0
LAB_001b7fc9:
MOV RAX,qword ptr [RSP + 0x28]
MOV R15,qword ptr [RAX + 0x18]
LAB_001b7fd2:
MOV RDI,RBX
CALL 0x0021ff78
LEA R14,[RSP + 0x38]
MOV RDI,R14
MOV RSI,R15
MOV RDX,RAX
MOV ECX,0x1
CALL 0x00147ac2
LEA RAX,[RSP + 0x18]
MOV qword ptr [RSP + 0x8],RAX
LAB_001b7ffc:
MOV R15,R13
MOV RDI,R13
LEA RSI,[0x2b9c73]
LEA RDX,[0x2b9c78]
CALL 0x001250b2
LAB_001b8015:
MOV RDI,RBP
MOV RSI,R15
LEA R15,[RSP + 0x48]
CALL 0x0012e310
MOV RDI,RAX
MOV RSI,R14
CALL 0x0011f5d0
MOV RDI,qword ptr [RSP + 0x8]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x001b8044
CALL 0x0011f4a0
LAB_001b8044:
MOV RDI,qword ptr [RSP + 0x38]
CMP RDI,R15
JZ 0x001b8053
CALL 0x0011f4a0
LAB_001b8053:
MOV RAX,qword ptr [RSP + 0x28]
MOV R15,qword ptr [RAX + 0x18]
LAB_001b805c:
MOV RDI,RBX
CALL 0x0021ff90
MOV RDI,R14
MOV RSI,R15
MOV RDX,RAX
MOV ECX,0x1
CALL 0x00147ac2
LEA RAX,[RSP + 0x18]
MOV qword ptr [RSP + 0x8],RAX
LAB_001b8081:
MOV RDI,R13
LEA RSI,[0x29acf8]
LEA RDX,[0x29acfe]
CALL 0x001250b2
LAB_001b8097:
MOV RDI,RBP
MOV RSI,R13
LEA R15,[RSP + 0x48]
CALL 0x0012e310
MOV RDI,RAX
MOV RSI,R14
CALL 0x0011f5d0
MOV RDI,qword ptr [RSP + 0x8]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x001b80c6
CALL 0x0011f4a0
LAB_001b80c6:
MOV RDI,qword ptr [RSP + 0x38]
CMP RDI,R15
JZ 0x001b80d5
CALL 0x0011f4a0
LAB_001b80d5:
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,RBP
LEA RDX,[0x2c3ea3]
CALL 0x0026cd32
LAB_001b80e9:
MOV RDI,RBP
CALL 0x0012e5e0
MOV RDI,qword ptr [RSP + 0x68]
INC RDI
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOVSXD RCX,dword ptr [RAX + 0x28]
MOV RDX,qword ptr [RSP + 0x70]
ADD RDX,0x40
CMP RDI,RCX
JL 0x001b7e79
LAB_001b8118:
LEA RSI,[0x2c3c71]
MOV RBX,qword ptr [RSP + 0x30]
MOV RDI,RBX
CALL 0x0012e40a
MOV RDI,RBX
CALL 0x0026d136
MOV RDI,RBX
CALL 0x0026d136
LEA RSI,[0x2bf13c]
MOV RDI,RBX
CALL 0x0012e40a
ADD RSP,0xc8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::compiler::java::ImmutableServiceGenerator::GenerateCallBlockingMethod(google::protobuf::io::Printer*)
*/
void __thiscall
google::protobuf::compiler::java::ImmutableServiceGenerator::GenerateCallBlockingMethod
(ImmutableServiceGenerator *this,Printer *param_1)
{
int8 uVar1;
Printer *this_00;
long lVar2;
string *psVar3;
long lVar4;
MethodDescriptor *this_01;
long lVar5;
int1 *local_f0 [2];
int1 local_e0 [16];
ImmutableServiceGenerator *local_d0;
Printer *local_c8;
char *local_c0;
long local_b8;
char local_b0 [32];
long local_90;
long local_88;
int1 *local_80 [2];
int1 local_70 [16];
map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
local_60 [8];
int4 local_58 [2];
int8 local_50;
int4 *local_48;
int4 *local_40;
int8 local_38;
io::Printer::Print<>
(param_1,
"\npublic final com.google.protobuf.Message callBlockingMethod(\n com.google.protobuf.Descriptors.MethodDescriptor method,\n com.google.protobuf.RpcController controller,\n com.google.protobuf.Message request)\n throws com.google.protobuf.ServiceException {\n if (method.getService() != getDescriptor()) {\n throw new java.lang.IllegalArgumentException(\n \"Service.callBlockingMethod() given method descriptor for \" +\n \"wrong service type.\");\n }\n switch(method.getIndex()) {\n"
);
io::Printer::Indent(param_1);
local_c8 = param_1;
io::Printer::Indent(param_1);
lVar2 = *(long *)(this + 8);
local_d0 = this;
if (0 < *(int *)(lVar2 + 0x28)) {
lVar4 = 0;
lVar5 = 0;
do {
this_01 = (MethodDescriptor *)(*(long *)(lVar2 + 0x20) + lVar4);
local_58[0] = 0;
local_50 = 0;
local_48 = local_58;
local_38 = 0;
local_c0 = local_b0;
local_90 = lVar5;
local_88 = lVar4;
local_40 = local_48;
/* try { // try from 001b7ec2 to 001b7ef3 has its CatchHandler @ 001b81c8 */
local_b8 = FastInt32ToBufferLeft((int)lVar5,local_b0);
local_b8 = local_b8 - (long)local_b0;
local_f0[0] = local_e0;
std::__cxx11::string::_M_construct<char_const*>
((string *)local_f0,local_c0,local_c0 + local_b8);
local_80[0] = local_70;
/* try { // try from 001b7f01 to 001b7f19 has its CatchHandler @ 001b815d */
std::__cxx11::string::_M_construct<char_const*>((string *)local_80,"index","");
/* try { // try from 001b7f1a to 001b7f24 has its CatchHandler @ 001b8162 */
psVar3 = (string *)
std::
map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::operator[](local_60,(string *)local_80);
std::__cxx11::string::operator=(psVar3,(string *)local_f0);
if (local_80[0] != local_70) {
operator_delete(local_80[0]);
}
if (local_f0[0] != local_e0) {
operator_delete(local_f0[0]);
}
/* try { // try from 001b7f5b to 001b7f67 has its CatchHandler @ 001b8188 */
UnderscoresToCamelCase_abi_cxx11_((java *)&local_c0,this_01);
local_f0[0] = local_e0;
/* try { // try from 001b7f72 to 001b7f8a has its CatchHandler @ 001b818a */
std::__cxx11::string::_M_construct<char_const*>((string *)local_f0,"method","");
/* try { // try from 001b7f8b to 001b7f95 has its CatchHandler @ 001b818c */
psVar3 = (string *)
std::
map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::operator[](local_60,(string *)local_f0);
std::__cxx11::string::operator=(psVar3,(string *)&local_c0);
if (local_f0[0] != local_e0) {
operator_delete(local_f0[0]);
}
if (local_c0 != local_b0) {
operator_delete(local_c0);
}
uVar1 = *(int8 *)(local_d0 + 0x18);
/* try { // try from 001b7fd2 to 001b7ff1 has its CatchHandler @ 001b81ca */
MethodDescriptor::input_type(this_01);
ClassNameResolver::GetClassName_abi_cxx11_((Descriptor *)&local_c0,SUB81(uVar1,0));
local_f0[0] = local_e0;
/* try { // try from 001b7ffc to 001b8014 has its CatchHandler @ 001b818e */
std::__cxx11::string::_M_construct<char_const*>((string *)local_f0,"input","");
/* try { // try from 001b8015 to 001b8024 has its CatchHandler @ 001b8190 */
psVar3 = (string *)
std::
map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::operator[](local_60,(string *)local_f0);
std::__cxx11::string::operator=(psVar3,(string *)&local_c0);
if (local_f0[0] != local_e0) {
operator_delete(local_f0[0]);
}
if (local_c0 != local_b0) {
operator_delete(local_c0);
}
uVar1 = *(int8 *)(local_d0 + 0x18);
/* try { // try from 001b805c to 001b8076 has its CatchHandler @ 001b81c6 */
MethodDescriptor::output_type(this_01);
ClassNameResolver::GetClassName_abi_cxx11_((Descriptor *)&local_c0,SUB81(uVar1,0));
local_f0[0] = local_e0;
/* try { // try from 001b8081 to 001b8096 has its CatchHandler @ 001b8192 */
std::__cxx11::string::_M_construct<char_const*>((string *)local_f0,"output","");
/* try { // try from 001b8097 to 001b80a6 has its CatchHandler @ 001b8197 */
psVar3 = (string *)
std::
map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::operator[](local_60,(string *)local_f0);
std::__cxx11::string::operator=(psVar3,(string *)&local_c0);
if (local_f0[0] != local_e0) {
operator_delete(local_f0[0]);
}
if (local_c0 != local_b0) {
operator_delete(local_c0);
}
/* try { // try from 001b80d5 to 001b80e8 has its CatchHandler @ 001b81c4 */
io::Printer::Print(local_c8,(map *)local_60,
"case $index$:\n return impl.$method$(controller, ($input$)request);\n");
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::~_Rb_tree((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
*)local_60);
lVar5 = local_90 + 1;
lVar2 = *(long *)(local_d0 + 8);
lVar4 = local_88 + 0x40;
} while (lVar5 < *(int *)(lVar2 + 0x28));
}
this_00 = local_c8;
io::Printer::Print<>
(local_c8,"default:\n throw new java.lang.AssertionError(\"Can\'t get here.\");\n");
io::Printer::Outdent(this_00);
io::Printer::Outdent(this_00);
io::Printer::Print<>(this_00," }\n}\n\n");
return;
}
| |
24,004 | psi_mutex_lock | eloqsql/mysys/my_thr_init.c | ATTRIBUTE_COLD int psi_mutex_lock(mysql_mutex_t *that,
const char *file, uint line)
{
PSI_mutex_locker_state state;
PSI_mutex_locker *locker= PSI_MUTEX_CALL(start_mutex_wait)
(&state, that->m_psi, PSI_MUTEX_LOCK, file, line);
# ifdef SAFE_MUTEX
int result= safe_mutex_lock(&that->m_mutex, FALSE, file, line);
# else
int result= pthread_mutex_lock(&that->m_mutex);
# endif
if (locker)
PSI_MUTEX_CALL(end_mutex_wait)(locker, result);
return result;
} | O0 | c | psi_mutex_lock:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
leaq 0x1a6ece(%rip), %rax # 0x1d8c48
movq (%rax), %rax
movq 0x190(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x40(%rcx), %rsi
movq -0x10(%rbp), %rcx
movl -0x14(%rbp), %r8d
leaq -0x48(%rbp), %rdi
xorl %edx, %edx
callq *%rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
callq 0x24450
movl %eax, -0x54(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x31dcd
leaq 0x1a6e8e(%rip), %rax # 0x1d8c48
movq (%rax), %rax
movq 0x198(%rax), %rax
movq -0x50(%rbp), %rdi
movl -0x54(%rbp), %esi
callq *%rax
movl -0x54(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| psi_mutex_lock:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+190h]
mov rcx, [rbp+var_8]
mov rsi, [rcx+40h]
mov rcx, [rbp+var_10]
mov r8d, [rbp+var_14]
lea rdi, [rbp+var_48]
xor edx, edx
call rax
mov [rbp+var_50], rax
mov rdi, [rbp+var_8]
call _pthread_mutex_lock
mov [rbp+var_54], eax
cmp [rbp+var_50], 0
jz short loc_31DCD
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+198h]
mov rdi, [rbp+var_50]
mov esi, [rbp+var_54]
call rax
loc_31DCD:
mov eax, [rbp+var_54]
add rsp, 60h
pop rbp
retn
| long long psi_mutex_lock(long long a1, long long a2, unsigned int a3)
{
unsigned int v4; // [rsp+Ch] [rbp-54h]
long long v5; // [rsp+10h] [rbp-50h]
_BYTE v6[52]; // [rsp+18h] [rbp-48h] BYREF
unsigned int v7; // [rsp+4Ch] [rbp-14h]
long long v8; // [rsp+50h] [rbp-10h]
long long v9; // [rsp+58h] [rbp-8h]
v9 = a1;
v8 = a2;
v7 = a3;
v5 = (*((long long ( **)(_BYTE *, _QWORD, _QWORD, long long, _QWORD))PSI_server[0] + 50))(
v6,
*(_QWORD *)(a1 + 64),
0LL,
a2,
a3);
v4 = pthread_mutex_lock(v9);
if ( v5 )
(*((void ( **)(long long, _QWORD))PSI_server[0] + 51))(v5, v4);
return v4;
}
| psi_mutex_lock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
LEA RAX,[0x2d8c48]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x190]
MOV RCX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RCX + 0x40]
MOV RCX,qword ptr [RBP + -0x10]
MOV R8D,dword ptr [RBP + -0x14]
LEA RDI,[RBP + -0x48]
XOR EDX,EDX
CALL RAX
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00124450
MOV dword ptr [RBP + -0x54],EAX
CMP qword ptr [RBP + -0x50],0x0
JZ 0x00131dcd
LEA RAX,[0x2d8c48]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x198]
MOV RDI,qword ptr [RBP + -0x50]
MOV ESI,dword ptr [RBP + -0x54]
CALL RAX
LAB_00131dcd:
MOV EAX,dword ptr [RBP + -0x54]
ADD RSP,0x60
POP RBP
RET
|
int psi_mutex_lock(pthread_mutex_t *param_1,int8 param_2,int4 param_3)
{
int iVar1;
long lVar2;
int1 local_50 [52];
int4 local_1c;
int8 local_18;
pthread_mutex_t *local_10;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
lVar2 = (**(code **)(PSI_server + 400))
(local_50,*(int8 *)((long)param_1 + 0x40),0,param_2,param_3);
iVar1 = pthread_mutex_lock(local_10);
if (lVar2 != 0) {
(**(code **)(PSI_server + 0x198))(lVar2,iVar1);
}
return iVar1;
}
| |
24,005 | intx_init | corpus-core[P]colibri-stateless/build_O2/_deps/intx-src/include/intx/intx.hpp | inline void store(uint8_t* dst, const uint256& x) noexcept
{
// Store byte-swapped words in primitive temporaries. This helps with memory aliasing
// and GCC bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107837
// TODO: Use std::byte instead of uint8_t.
const auto v0 = to_big_endian(x[0]);
const auto v1 = to_big_endian(x[1]);
const auto v2 = to_big_endian(x[2]);
const auto v3 = to_big_endian(x[3]);
// Store words in reverse (big-endian) order, write addresses are ascending.
std::memcpy(dst, &v3, sizeof(v3));
std::memcpy(dst + 8, &v2, sizeof(v2));
std::memcpy(dst + 16, &v1, sizeof(v1));
std::memcpy(dst + 24, &v0, sizeof(v0));
} | O2 | cpp | intx_init:
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
retq
| intx_init:
xorps xmm0, xmm0
movups xmmword ptr [rdi+10h], xmm0
movups xmmword ptr [rdi], xmm0
retn
| void intx_init(_OWORD *a1)
{
a1[1] = 0LL;
*a1 = 0LL;
}
| intx_init:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x10],XMM0
MOVUPS xmmword ptr [RDI],XMM0
RET
|
void intx_init(int8 *param_1)
{
param_1[2] = 0;
param_1[3] = 0;
*param_1 = 0;
param_1[1] = 0;
return;
}
| |
24,006 | testing::internal::edit_distance::CalculateOptimalEdits(std::vector<unsigned long, std::allocator<unsigned long>> const&, std::vector<unsigned long, std::allocator<unsigned long>> const&) | giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc | std::vector<EditType> CalculateOptimalEdits(const std::vector<size_t>& left,
const std::vector<size_t>& right) {
std::vector<std::vector<double> > costs(
left.size() + 1, std::vector<double>(right.size() + 1));
std::vector<std::vector<EditType> > best_move(
left.size() + 1, std::vector<EditType>(right.size() + 1));
// Populate for empty right.
for (size_t l_i = 0; l_i < costs.size(); ++l_i) {
costs[l_i][0] = static_cast<double>(l_i);
best_move[l_i][0] = kRemove;
}
// Populate for empty left.
for (size_t r_i = 1; r_i < costs[0].size(); ++r_i) {
costs[0][r_i] = static_cast<double>(r_i);
best_move[0][r_i] = kAdd;
}
for (size_t l_i = 0; l_i < left.size(); ++l_i) {
for (size_t r_i = 0; r_i < right.size(); ++r_i) {
if (left[l_i] == right[r_i]) {
// Found a match. Consume it.
costs[l_i + 1][r_i + 1] = costs[l_i][r_i];
best_move[l_i + 1][r_i + 1] = kMatch;
continue;
}
const double add = costs[l_i + 1][r_i];
const double remove = costs[l_i][r_i + 1];
const double replace = costs[l_i][r_i];
if (add < remove && add < replace) {
costs[l_i + 1][r_i + 1] = add + 1;
best_move[l_i + 1][r_i + 1] = kAdd;
} else if (remove < add && remove < replace) {
costs[l_i + 1][r_i + 1] = remove + 1;
best_move[l_i + 1][r_i + 1] = kRemove;
} else {
// We make replace a little more expensive than add/remove to lower
// their priority.
costs[l_i + 1][r_i + 1] = replace + 1.00001;
best_move[l_i + 1][r_i + 1] = kReplace;
}
}
}
// Reconstruct the best path. We do it in reverse order.
std::vector<EditType> best_path;
for (size_t l_i = left.size(), r_i = right.size(); l_i > 0 || r_i > 0;) {
EditType move = best_move[l_i][r_i];
best_path.push_back(move);
l_i -= move != kAdd;
r_i -= move != kRemove;
}
std::reverse(best_path.begin(), best_path.end());
return best_path;
} | O1 | cpp | testing::internal::edit_distance::CalculateOptimalEdits(std::vector<unsigned long, std::allocator<unsigned long>> const&, std::vector<unsigned long, std::allocator<unsigned long>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %rbx
movq (%rsi), %r14
movq 0x8(%rsi), %r12
movq 0x8(%rdx), %rsi
subq (%rdx), %rsi
sarq $0x3, %rsi
incq %rsi
leaq 0x8(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0x32e5a
subq %r14, %r12
sarq $0x3, %r12
incq %r12
leaq 0x50(%rsp), %rdi
leaq 0x8(%rsp), %rdx
leaq 0x6(%rsp), %rcx
movq %r12, %rsi
callq 0x32ee4
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1d124
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x84e0
movq (%r15), %r14
movq 0x8(%r15), %r12
movq 0x8(%r13), %rsi
subq (%r13), %rsi
sarq $0x3, %rsi
incq %rsi
leaq 0x20(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0x32f7c
subq %r14, %r12
sarq $0x3, %r12
incq %r12
leaq 0x8(%rsp), %rdi
leaq 0x20(%rsp), %rdx
leaq 0x7(%rsp), %rcx
movq %r12, %rsi
callq 0x3300c
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x1d181
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x84e0
movq 0x50(%rsp), %rax
movq 0x58(%rsp), %rdx
subq %rax, %rdx
je 0x1d1fc
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
movq 0x8(%rsp), %rdx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %esi, %esi
movq 0x24c77(%rip), %xmm0 # 0x41e30
movapd 0x24c7f(%rip), %xmm1 # 0x41e40
xorl %edi, %edi
movq %rdi, %xmm2
punpckldq %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
subpd %xmm1, %xmm2
movapd %xmm2, %xmm3
unpckhpd %xmm2, %xmm3 # xmm3 = xmm3[1],xmm2[1]
addsd %xmm2, %xmm3
movq (%rax,%rsi), %r8
movsd %xmm3, (%r8)
movq (%rdx,%rsi), %r8
movl $0x2, (%r8)
incq %rdi
addq $0x18, %rsi
cmpq %rdi, %rcx
jne 0x1d1c3
movq %r13, 0x38(%rsp)
movq (%rax), %rcx
movq 0x8(%rax), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
cmpq $0x2, %rdx
jb 0x1d25f
movq 0x8(%rsp), %rsi
movq (%rsi), %rsi
movl $0x1, %edi
movq 0x24c06(%rip), %xmm0 # 0x41e30
movapd 0x24c0e(%rip), %xmm1 # 0x41e40
movq %rdi, %xmm2
punpckldq %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
subpd %xmm1, %xmm2
movapd %xmm2, %xmm3
unpckhpd %xmm2, %xmm3 # xmm3 = xmm3[1],xmm2[1]
addsd %xmm2, %xmm3
movsd %xmm3, (%rcx,%rdi,8)
movl $0x1, (%rsi,%rdi,4)
incq %rdi
cmpq %rdi, %rdx
jne 0x1d232
movq (%r15), %rdx
movq 0x8(%r15), %rcx
movq %rcx, %r15
subq %rdx, %r15
sarq $0x3, %r15
movq %rcx, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
cmpq %rdx, %rcx
je 0x1d39f
movq 0x38(%rsp), %rcx
movq (%rcx), %rsi
movq 0x8(%rcx), %rdi
movq %rdi, %r8
subq %rsi, %r8
sarq $0x3, %r8
cmpq $0x1, %r8
adcq $0x0, %r8
cmpq $0x1, %r15
movq %r15, %r9
adcq $0x0, %r9
xorl %r10d, %r10d
movsd 0x22da1(%rip), %xmm0 # 0x40058
movsd 0x24c49(%rip), %xmm1 # 0x41f08
cmpq %rsi, %rdi
je 0x1d393
leaq (,%r10,8), %rcx
movq 0x40(%rsp), %rdx
movq (%rdx,%r10,8), %r11
leaq (%rcx,%rcx,2), %r12
leaq (%rax,%r12), %r13
addq $0x18, %r13
leaq (%rcx,%rcx,2), %rbp
addq $0x18, %rbp
addq %rax, %r12
addq 0x8(%rsp), %rbp
xorl %r14d, %r14d
cmpq (%rsi,%r14,8), %r11
jne 0x1d317
movq (%r12), %rcx
movsd (%rcx,%r14,8), %xmm2
movq (%r13), %rcx
movsd %xmm2, 0x8(%rcx,%r14,8)
xorl %ecx, %ecx
jmp 0x1d37e
movq (%r13), %rcx
movsd (%rcx,%r14,8), %xmm4
movq (%r12), %rdx
movsd (%rdx,%r14,8), %xmm2
movsd 0x8(%rdx,%r14,8), %xmm3
ucomisd %xmm4, %xmm3
jbe 0x1d350
ucomisd %xmm4, %xmm2
jbe 0x1d350
addsd %xmm0, %xmm4
movsd %xmm4, 0x8(%rcx,%r14,8)
movl $0x1, %ecx
jmp 0x1d37e
ucomisd %xmm3, %xmm4
jbe 0x1d36e
ucomisd %xmm3, %xmm2
jbe 0x1d36e
addsd %xmm0, %xmm3
movsd %xmm3, 0x8(%rcx,%r14,8)
movl $0x2, %ecx
jmp 0x1d37e
addsd %xmm1, %xmm2
movsd %xmm2, 0x8(%rcx,%r14,8)
movl $0x3, %ecx
movq (%rbp), %rdx
movl %ecx, 0x4(%rdx,%r14,4)
incq %r14
cmpq %r14, %r8
jne 0x1d2f8
incq %r10
cmpq %r9, %r10
jne 0x1d2bf
pxor %xmm0, %xmm0
movdqu %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq 0x38(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %r12
movq 0x48(%rsp), %rdx
xorq 0x40(%rsp), %rdx
movq %r12, %rcx
xorq %rax, %rcx
orq %rdx, %rcx
je 0x1d434
subq %rax, %r12
sarq $0x3, %r12
leaq 0x20(%rsp), %r14
movq 0x8(%rsp), %rax
leaq (%r15,%r15,2), %rcx
movq (%rax,%rcx,8), %rax
movl (%rax,%r12,4), %eax
movl %eax, 0x20(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x1d407
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x1d412
movq %rbx, %rdi
movq %r14, %rdx
callq 0x3ac44
movl 0x20(%rsp), %eax
xorl %ecx, %ecx
cmpl $0x1, %eax
setne %cl
subq %rcx, %r15
xorl %ecx, %ecx
cmpl $0x2, %eax
setne %cl
subq %rcx, %r12
movq %r15, %rax
orq %r12, %rax
jne 0x1d3dc
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpq %rcx, %rax
setne %dl
addq $-0x4, %rcx
cmpq %rax, %rcx
seta %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x1d473
addq $0x4, %rax
movl -0x4(%rax), %edx
movl (%rcx), %esi
movl %esi, -0x4(%rax)
movl %edx, (%rcx)
addq $-0x4, %rcx
leaq 0x4(%rax), %rdx
cmpq %rcx, %rax
movq %rdx, %rax
jb 0x1d459
leaq 0x8(%rsp), %rdi
callq 0x330a4
leaq 0x50(%rsp), %rdi
callq 0x330f2
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x1d4fc
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x84e0
jmp 0x1d4fc
movq %rax, %r14
jmp 0x1d4fc
movq %rax, %r14
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1d506
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x84e0
jmp 0x1d506
movq %rax, %r14
jmp 0x1d506
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x1d4f2
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x84e0
leaq 0x8(%rsp), %rdi
callq 0x330a4
leaq 0x50(%rsp), %rdi
callq 0x330f2
movq %r14, %rdi
callq 0x8990
| _ZN7testing8internal13edit_distance21CalculateOptimalEditsERKSt6vectorImSaImEES6_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov r13, rdx
mov r15, rsi
mov rbx, rdi
mov r14, [rsi]
mov r12, [rsi+8]
mov rsi, [rdx+8]
sub rsi, [rdx]
sar rsi, 3
inc rsi
lea rdi, [rsp+98h+var_90]
lea rdx, [rsp+98h+var_78]
call _ZNSt6vectorIdSaIdEEC2EmRKS0_; std::vector<double>::vector(ulong,std::allocator<double> const&)
sub r12, r14
sar r12, 3
inc r12
lea rdi, [rsp+98h+var_48]
lea rdx, [rsp+98h+var_90]
lea rcx, [rsp+98h+var_92]
mov rsi, r12
call _ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_; std::vector<std::vector<double>>::vector(ulong,std::vector<double> const&,std::allocator<std::vector<double>> const&)
mov rdi, [rsp+98h+var_90]; void *
test rdi, rdi
jz short loc_1D124
mov rsi, [rsp+98h+var_80]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1D124:
mov r14, [r15]
mov r12, [r15+8]
mov rsi, [r13+8]
sub rsi, [r13+0]
sar rsi, 3
inc rsi
lea rdi, [rsp+98h+var_78]
lea rdx, [rsp+98h+var_92]
call _ZNSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EEC2EmRKS4_; std::vector<testing::internal::edit_distance::EditType>::vector(ulong,std::allocator<testing::internal::edit_distance::EditType> const&)
sub r12, r14
sar r12, 3
inc r12
lea rdi, [rsp+98h+var_90]
lea rdx, [rsp+98h+var_78]
lea rcx, [rsp+98h+var_91]
mov rsi, r12
call _ZNSt6vectorIS_IN7testing8internal13edit_distance8EditTypeESaIS3_EESaIS5_EEC2EmRKS5_RKS6_; std::vector<std::vector<testing::internal::edit_distance::EditType>>::vector(ulong,std::vector<testing::internal::edit_distance::EditType> const&,std::allocator<std::vector<testing::internal::edit_distance::EditType>> const&)
mov rdi, [rsp+98h+var_78]; void *
test rdi, rdi
jz short loc_1D181
mov rsi, [rsp+98h+var_68]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1D181:
mov rax, [rsp+98h+var_48]
mov rdx, [rsp+98h+var_40]
sub rdx, rax
jz short loc_1D1FC
sar rdx, 3
mov rcx, 0AAAAAAAAAAAAAAABh
imul rcx, rdx
mov rdx, [rsp+98h+var_90]
cmp rcx, 1
adc rcx, 0
xor esi, esi
movq xmm0, qword ptr cs:xmmword_41E30
movapd xmm1, cs:xmmword_41E40
xor edi, edi
loc_1D1C3:
movq xmm2, rdi
punpckldq xmm2, xmm0
subpd xmm2, xmm1
movapd xmm3, xmm2
unpckhpd xmm3, xmm2
addsd xmm3, xmm2
mov r8, [rax+rsi]
movsd qword ptr [r8], xmm3
mov r8, [rdx+rsi]
mov dword ptr [r8], 2
inc rdi
add rsi, 18h
cmp rcx, rdi
jnz short loc_1D1C3
loc_1D1FC:
mov [rsp+98h+var_60], r13
mov rcx, [rax]
mov rdx, [rax+8]
sub rdx, rcx
sar rdx, 3
cmp rdx, 2
jb short loc_1D25F
mov rsi, [rsp+98h+var_90]
mov rsi, [rsi]
mov edi, 1
movq xmm0, qword ptr cs:xmmword_41E30
movapd xmm1, cs:xmmword_41E40
loc_1D232:
movq xmm2, rdi
punpckldq xmm2, xmm0
subpd xmm2, xmm1
movapd xmm3, xmm2
unpckhpd xmm3, xmm2
addsd xmm3, xmm2
movsd qword ptr [rcx+rdi*8], xmm3
mov dword ptr [rsi+rdi*4], 1
inc rdi
cmp rdx, rdi
jnz short loc_1D232
loc_1D25F:
mov rdx, [r15]
mov rcx, [r15+8]
mov r15, rcx
sub r15, rdx
sar r15, 3
mov [rsp+98h+var_50], rcx
mov [rsp+98h+var_58], rdx
cmp rcx, rdx
jz loc_1D39F
mov rcx, [rsp+98h+var_60]
mov rsi, [rcx]
mov rdi, [rcx+8]
mov r8, rdi
sub r8, rsi
sar r8, 3
cmp r8, 1
adc r8, 0
cmp r15, 1
mov r9, r15
adc r9, 0
xor r10d, r10d
movsd xmm0, cs:qword_40058
movsd xmm1, cs:qword_41F08
loc_1D2BF:
cmp rdi, rsi
jz loc_1D393
lea rcx, ds:0[r10*8]
mov rdx, [rsp+98h+var_58]
mov r11, [rdx+r10*8]
lea r12, [rcx+rcx*2]
lea r13, [rax+r12]
add r13, 18h
lea rbp, [rcx+rcx*2]
add rbp, 18h
add r12, rax
add rbp, [rsp+98h+var_90]
xor r14d, r14d
loc_1D2F8:
cmp r11, [rsi+r14*8]
jnz short loc_1D317
mov rcx, [r12]
movsd xmm2, qword ptr [rcx+r14*8]
mov rcx, [r13+0]
movsd qword ptr [rcx+r14*8+8], xmm2
xor ecx, ecx
jmp short loc_1D37E
loc_1D317:
mov rcx, [r13+0]
movsd xmm4, qword ptr [rcx+r14*8]
mov rdx, [r12]
movsd xmm2, qword ptr [rdx+r14*8]
movsd xmm3, qword ptr [rdx+r14*8+8]
ucomisd xmm3, xmm4
jbe short loc_1D350
ucomisd xmm2, xmm4
jbe short loc_1D350
addsd xmm4, xmm0
movsd qword ptr [rcx+r14*8+8], xmm4
mov ecx, 1
jmp short loc_1D37E
loc_1D350:
ucomisd xmm4, xmm3
jbe short loc_1D36E
ucomisd xmm2, xmm3
jbe short loc_1D36E
addsd xmm3, xmm0
movsd qword ptr [rcx+r14*8+8], xmm3
mov ecx, 2
jmp short loc_1D37E
loc_1D36E:
addsd xmm2, xmm1
movsd qword ptr [rcx+r14*8+8], xmm2
mov ecx, 3
loc_1D37E:
mov rdx, [rbp+0]
mov [rdx+r14*4+4], ecx
inc r14
cmp r8, r14
jnz loc_1D2F8
loc_1D393:
inc r10
cmp r10, r9
jnz loc_1D2BF
loc_1D39F:
pxor xmm0, xmm0
movdqu xmmword ptr [rbx], xmm0
mov qword ptr [rbx+10h], 0
mov rcx, [rsp+98h+var_60]
mov rax, [rcx]
mov r12, [rcx+8]
mov rdx, [rsp+98h+var_50]
xor rdx, [rsp+98h+var_58]
mov rcx, r12
xor rcx, rax
or rcx, rdx
jz short loc_1D434
sub r12, rax
sar r12, 3
lea r14, [rsp+98h+var_78]
loc_1D3DC:
mov rax, [rsp+98h+var_90]
lea rcx, [r15+r15*2]
mov rax, [rax+rcx*8]
mov eax, [rax+r12*4]
mov dword ptr [rsp+98h+var_78], eax
mov rsi, [rbx+8]
cmp rsi, [rbx+10h]
jz short loc_1D407
mov [rsi], eax
add rsi, 4
mov [rbx+8], rsi
jmp short loc_1D412
loc_1D407:
mov rdi, rbx
mov rdx, r14
call _ZNSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EE17_M_realloc_insertIJRKS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_; std::vector<testing::internal::edit_distance::EditType>::_M_realloc_insert<testing::internal::edit_distance::EditType const&>(__gnu_cxx::__normal_iterator<testing::internal::edit_distance::EditType*,std::vector<testing::internal::edit_distance::EditType>>,testing::internal::edit_distance::EditType const&)
loc_1D412:
mov eax, dword ptr [rsp+98h+var_78]
xor ecx, ecx
cmp eax, 1
setnz cl
sub r15, rcx
xor ecx, ecx
cmp eax, 2
setnz cl
sub r12, rcx
mov rax, r15
or rax, r12
jnz short loc_1D3DC
loc_1D434:
mov rax, [rbx]
mov rcx, [rbx+8]
cmp rax, rcx
setnz dl
add rcx, 0FFFFFFFFFFFFFFFCh
cmp rcx, rax
setnbe sil
and sil, dl
cmp sil, 1
jnz short loc_1D473
add rax, 4
loc_1D459:
mov edx, [rax-4]
mov esi, [rcx]
mov [rax-4], esi
mov [rcx], edx
add rcx, 0FFFFFFFFFFFFFFFCh
lea rdx, [rax+4]
cmp rax, rcx
mov rax, rdx
jb short loc_1D459
loc_1D473:
lea rdi, [rsp+98h+var_90]
call _ZNSt6vectorIS_IN7testing8internal13edit_distance8EditTypeESaIS3_EESaIS5_EED2Ev; std::vector<std::vector<testing::internal::edit_distance::EditType>>::~vector()
lea rdi, [rsp+98h+var_48]
call _ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev; std::vector<std::vector<double>>::~vector()
mov rax, rbx
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, [rsp+arg_18]; void *
test rdi, rdi
jz short loc_1D4FC
mov rsi, [rsp+arg_28]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_1D4FC
mov r14, rax
jmp short loc_1D4FC
mov r14, rax
mov rdi, [rsp+arg_0]; void *
test rdi, rdi
jz short loc_1D506
mov rsi, [rsp+arg_10]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_1D506
mov r14, rax
jmp short loc_1D506
mov r14, rax
mov rdi, [rbx]; void *
test rdi, rdi
jz short loc_1D4F2
mov rsi, [rbx+10h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1D4F2:
lea rdi, [rsp+arg_0]
call _ZNSt6vectorIS_IN7testing8internal13edit_distance8EditTypeESaIS3_EESaIS5_EED2Ev; std::vector<std::vector<testing::internal::edit_distance::EditType>>::~vector()
loc_1D4FC:
lea rdi, [rsp+arg_48]
call _ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev; std::vector<std::vector<double>>::~vector()
loc_1D506:
mov rdi, r14
call __Unwind_Resume
| long long testing::internal::edit_distance::CalculateOptimalEdits(long long a1, long long *a2, long long *a3)
{
long long v6; // r14
long long v7; // r12
long long v8; // r14
long long v9; // r12
long long *v10; // rax
char *v11; // rdx
long long v12; // rcx
long long v13; // rsi
__m128i v14; // xmm0
unsigned long long v15; // rdi
__m128d v16; // xmm2
long long v17; // rcx
unsigned long long v18; // rdx
long long v19; // rsi
long long v20; // rdi
__m128i v21; // xmm0
__m128d v22; // xmm2
long long v23; // rdx
long long v24; // rcx
long long v25; // r15
long long v26; // rsi
long long v27; // rdi
long long v28; // r8
long long v29; // r10
long long v30; // r11
long long *v31; // r13
long long *v32; // r12
_QWORD *v33; // rbp
long long v34; // r14
int v35; // ecx
long long v36; // rcx
double v37; // xmm4_8
double v38; // xmm2_8
double v39; // xmm3_8
long long v40; // r12
int v41; // eax
_DWORD *v42; // rsi
long long v43; // rcx
bool v44; // dl
_DWORD *v45; // rcx
unsigned long long v46; // rax
int v47; // edx
bool v48; // cf
char v50; // [rsp+6h] [rbp-92h] BYREF
char v51; // [rsp+7h] [rbp-91h] BYREF
void *v52[3]; // [rsp+8h] [rbp-90h] BYREF
void *v53[3]; // [rsp+20h] [rbp-78h] BYREF
long long *v54; // [rsp+38h] [rbp-60h]
long long v55; // [rsp+40h] [rbp-58h]
long long v56; // [rsp+48h] [rbp-50h]
long long *v57; // [rsp+50h] [rbp-48h] BYREF
_QWORD *v58; // [rsp+58h] [rbp-40h]
v6 = *a2;
v7 = a2[1];
std::vector<double>::vector(v52, ((a3[1] - *a3) >> 3) + 1, v53);
std::vector<std::vector<double>>::vector(&v57, ((v7 - v6) >> 3) + 1, v52, &v50);
if ( v52[0] )
operator delete(v52[0], (char *)v52[2] - (char *)v52[0]);
v8 = *a2;
v9 = a2[1];
std::vector<testing::internal::edit_distance::EditType>::vector(v53, ((a3[1] - *a3) >> 3) + 1, &v50);
std::vector<std::vector<testing::internal::edit_distance::EditType>>::vector(v52, ((v9 - v8) >> 3) + 1, v53, &v51);
if ( v53[0] )
operator delete(v53[0], (char *)v53[2] - (char *)v53[0]);
v10 = v57;
if ( v58 != v57 )
{
v11 = (char *)v52[0];
v12 = (0xAAAAAAAAAAAAAAABLL * (v58 - v57) == 0) - 0x5555555555555555LL * (v58 - v57);
v13 = 0LL;
v14 = _mm_loadl_epi64((const __m128i *)&xmmword_41E30);
v15 = 0LL;
do
{
v16 = _mm_sub_pd((__m128d)_mm_unpacklo_epi32((__m128i)v15, v14), (__m128d)xmmword_41E40);
*(double *)v10[v13] = _mm_unpackhi_pd(v16, v16).m128d_f64[0] + v16.m128d_f64[0];
**(_DWORD **)&v11[v13 * 8] = 2;
++v15;
v13 += 3LL;
}
while ( v12 != v15 );
}
v54 = a3;
v17 = *v10;
v18 = (v10[1] - *v10) >> 3;
if ( v18 >= 2 )
{
v19 = *(_QWORD *)v52[0];
v20 = 1LL;
v21 = _mm_loadl_epi64((const __m128i *)&xmmword_41E30);
do
{
v22 = _mm_sub_pd((__m128d)_mm_unpacklo_epi32((__m128i)(unsigned long long)v20, v21), (__m128d)xmmword_41E40);
*(double *)(v17 + 8 * v20) = _mm_unpackhi_pd(v22, v22).m128d_f64[0] + v22.m128d_f64[0];
*(_DWORD *)(v19 + 4 * v20++) = 1;
}
while ( v18 != v20 );
}
v23 = *a2;
v24 = a2[1];
v25 = (v24 - *a2) >> 3;
v56 = v24;
v55 = v23;
if ( v24 != v23 )
{
v26 = *v54;
v27 = v54[1];
v28 = ((v27 - *v54) >> 3 == 0) + ((v27 - *v54) >> 3);
v29 = 0LL;
do
{
if ( v27 != v26 )
{
v30 = *(_QWORD *)(v55 + 8 * v29);
v31 = &v10[3 * v29 + 3];
v32 = &v10[3 * v29];
v33 = (char *)v52[0] + 24 * v29 + 24;
v34 = 0LL;
do
{
if ( v30 == *(_QWORD *)(v26 + 8 * v34) )
{
*(_QWORD *)(*v31 + 8 * v34 + 8) = *(_QWORD *)(*v32 + 8 * v34);
v35 = 0;
}
else
{
v36 = *v31;
v37 = *(double *)(*v31 + 8 * v34);
v38 = *(double *)(*v32 + 8 * v34);
v39 = *(double *)(*v32 + 8 * v34 + 8);
if ( v39 <= v37 || v38 <= v37 )
{
if ( v37 <= v39 || v38 <= v39 )
{
*(double *)(v36 + 8 * v34 + 8) = v38 + 1.00001;
v35 = 3;
}
else
{
*(double *)(v36 + 8 * v34 + 8) = v39 + 1.0;
v35 = 2;
}
}
else
{
*(double *)(v36 + 8 * v34 + 8) = v37 + 1.0;
v35 = 1;
}
}
*(_DWORD *)(*v33 + 4 * v34++ + 4) = v35;
}
while ( v28 != v34 );
}
++v29;
}
while ( v29 != (v25 == 0) + v25 );
}
*(_OWORD *)a1 = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
if ( v55 ^ v56 | *v54 ^ v54[1] )
{
v40 = (v54[1] - *v54) >> 3;
do
{
v41 = *(_DWORD *)(*((_QWORD *)v52[0] + 3 * v25) + 4 * v40);
LODWORD(v53[0]) = v41;
v42 = *(_DWORD **)(a1 + 8);
if ( v42 == *(_DWORD **)(a1 + 16) )
{
std::vector<testing::internal::edit_distance::EditType>::_M_realloc_insert<testing::internal::edit_distance::EditType const&>(
a1,
v42,
v53);
}
else
{
*v42 = v41;
*(_QWORD *)(a1 + 8) = v42 + 1;
}
v25 -= LODWORD(v53[0]) != 1;
v40 -= LODWORD(v53[0]) != 2;
}
while ( v40 | v25 );
}
v43 = *(_QWORD *)(a1 + 8);
v44 = *(_QWORD *)a1 != v43;
v45 = (_DWORD *)(v43 - 4);
if ( v44 && (unsigned long long)v45 > *(_QWORD *)a1 )
{
v46 = *(_QWORD *)a1 + 4LL;
do
{
v47 = *(_DWORD *)(v46 - 4);
*(_DWORD *)(v46 - 4) = *v45;
*v45-- = v47;
v48 = v46 < (unsigned long long)v45;
v46 += 4LL;
}
while ( v48 );
}
std::vector<std::vector<testing::internal::edit_distance::EditType>>::~vector(v52);
std::vector<std::vector<double>>::~vector(&v57);
return a1;
}
| CalculateOptimalEdits:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R13,RDX
MOV R15,RSI
MOV RBX,RDI
MOV R14,qword ptr [RSI]
MOV R12,qword ptr [RSI + 0x8]
MOV RSI,qword ptr [RDX + 0x8]
SUB RSI,qword ptr [RDX]
SAR RSI,0x3
INC RSI
LAB_0011d0dd:
LEA RDI,[RSP + 0x8]
LEA RDX,[RSP + 0x20]
CALL 0x00132e5a
SUB R12,R14
SAR R12,0x3
INC R12
LAB_0011d0f6:
LEA RDI,[RSP + 0x50]
LEA RDX,[RSP + 0x8]
LEA RCX,[RSP + 0x6]
MOV RSI,R12
CALL 0x00132ee4
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x0011d124
MOV RSI,qword ptr [RSP + 0x18]
SUB RSI,RDI
CALL 0x001084e0
LAB_0011d124:
MOV R14,qword ptr [R15]
MOV R12,qword ptr [R15 + 0x8]
MOV RSI,qword ptr [R13 + 0x8]
SUB RSI,qword ptr [R13]
SAR RSI,0x3
INC RSI
LAB_0011d13a:
LEA RDI,[RSP + 0x20]
LEA RDX,[RSP + 0x6]
CALL 0x00132f7c
SUB R12,R14
SAR R12,0x3
INC R12
LAB_0011d153:
LEA RDI,[RSP + 0x8]
LEA RDX,[RSP + 0x20]
LEA RCX,[RSP + 0x7]
MOV RSI,R12
CALL 0x0013300c
MOV RDI,qword ptr [RSP + 0x20]
TEST RDI,RDI
JZ 0x0011d181
MOV RSI,qword ptr [RSP + 0x30]
SUB RSI,RDI
CALL 0x001084e0
LAB_0011d181:
MOV RAX,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x58]
SUB RDX,RAX
JZ 0x0011d1fc
SAR RDX,0x3
MOV RCX,-0x5555555555555555
IMUL RCX,RDX
MOV RDX,qword ptr [RSP + 0x8]
CMP RCX,0x1
ADC RCX,0x0
XOR ESI,ESI
MOVQ XMM0,qword ptr [0x00141e30]
MOVAPD XMM1,xmmword ptr [0x00141e40]
XOR EDI,EDI
LAB_0011d1c3:
MOVQ XMM2,RDI
PUNPCKLDQ XMM2,XMM0
SUBPD XMM2,XMM1
MOVAPD XMM3,XMM2
UNPCKHPD XMM3,XMM2
ADDSD XMM3,XMM2
MOV R8,qword ptr [RAX + RSI*0x1]
MOVSD qword ptr [R8],XMM3
MOV R8,qword ptr [RDX + RSI*0x1]
MOV dword ptr [R8],0x2
INC RDI
ADD RSI,0x18
CMP RCX,RDI
JNZ 0x0011d1c3
LAB_0011d1fc:
MOV qword ptr [RSP + 0x38],R13
MOV RCX,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
SUB RDX,RCX
SAR RDX,0x3
CMP RDX,0x2
JC 0x0011d25f
MOV RSI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSI]
MOV EDI,0x1
MOVQ XMM0,qword ptr [0x00141e30]
MOVAPD XMM1,xmmword ptr [0x00141e40]
LAB_0011d232:
MOVQ XMM2,RDI
PUNPCKLDQ XMM2,XMM0
SUBPD XMM2,XMM1
MOVAPD XMM3,XMM2
UNPCKHPD XMM3,XMM2
ADDSD XMM3,XMM2
MOVSD qword ptr [RCX + RDI*0x8],XMM3
MOV dword ptr [RSI + RDI*0x4],0x1
INC RDI
CMP RDX,RDI
JNZ 0x0011d232
LAB_0011d25f:
MOV RDX,qword ptr [R15]
MOV RCX,qword ptr [R15 + 0x8]
MOV R15,RCX
SUB R15,RDX
SAR R15,0x3
MOV qword ptr [RSP + 0x48],RCX
MOV qword ptr [RSP + 0x40],RDX
CMP RCX,RDX
JZ 0x0011d39f
MOV RCX,qword ptr [RSP + 0x38]
MOV RSI,qword ptr [RCX]
MOV RDI,qword ptr [RCX + 0x8]
MOV R8,RDI
SUB R8,RSI
SAR R8,0x3
CMP R8,0x1
ADC R8,0x0
CMP R15,0x1
MOV R9,R15
ADC R9,0x0
XOR R10D,R10D
MOVSD XMM0,qword ptr [0x00140058]
MOVSD XMM1,qword ptr [0x00141f08]
LAB_0011d2bf:
CMP RDI,RSI
JZ 0x0011d393
LEA RCX,[R10*0x8]
MOV RDX,qword ptr [RSP + 0x40]
MOV R11,qword ptr [RDX + R10*0x8]
LEA R12,[RCX + RCX*0x2]
LEA R13,[RAX + R12*0x1]
ADD R13,0x18
LEA RBP,[RCX + RCX*0x2]
ADD RBP,0x18
ADD R12,RAX
ADD RBP,qword ptr [RSP + 0x8]
XOR R14D,R14D
LAB_0011d2f8:
CMP R11,qword ptr [RSI + R14*0x8]
JNZ 0x0011d317
MOV RCX,qword ptr [R12]
MOVSD XMM2,qword ptr [RCX + R14*0x8]
MOV RCX,qword ptr [R13]
MOVSD qword ptr [RCX + R14*0x8 + 0x8],XMM2
XOR ECX,ECX
JMP 0x0011d37e
LAB_0011d317:
MOV RCX,qword ptr [R13]
MOVSD XMM4,qword ptr [RCX + R14*0x8]
MOV RDX,qword ptr [R12]
MOVSD XMM2,qword ptr [RDX + R14*0x8]
MOVSD XMM3,qword ptr [RDX + R14*0x8 + 0x8]
UCOMISD XMM3,XMM4
JBE 0x0011d350
UCOMISD XMM2,XMM4
JBE 0x0011d350
ADDSD XMM4,XMM0
MOVSD qword ptr [RCX + R14*0x8 + 0x8],XMM4
MOV ECX,0x1
JMP 0x0011d37e
LAB_0011d350:
UCOMISD XMM4,XMM3
JBE 0x0011d36e
UCOMISD XMM2,XMM3
JBE 0x0011d36e
ADDSD XMM3,XMM0
MOVSD qword ptr [RCX + R14*0x8 + 0x8],XMM3
MOV ECX,0x2
JMP 0x0011d37e
LAB_0011d36e:
ADDSD XMM2,XMM1
MOVSD qword ptr [RCX + R14*0x8 + 0x8],XMM2
MOV ECX,0x3
LAB_0011d37e:
MOV RDX,qword ptr [RBP]
MOV dword ptr [RDX + R14*0x4 + 0x4],ECX
INC R14
CMP R8,R14
JNZ 0x0011d2f8
LAB_0011d393:
INC R10
CMP R10,R9
JNZ 0x0011d2bf
LAB_0011d39f:
PXOR XMM0,XMM0
MOVDQU xmmword ptr [RBX],XMM0
MOV qword ptr [RBX + 0x10],0x0
MOV RCX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RCX]
MOV R12,qword ptr [RCX + 0x8]
MOV RDX,qword ptr [RSP + 0x48]
XOR RDX,qword ptr [RSP + 0x40]
MOV RCX,R12
XOR RCX,RAX
OR RCX,RDX
JZ 0x0011d434
SUB R12,RAX
SAR R12,0x3
LEA R14,[RSP + 0x20]
LAB_0011d3dc:
MOV RAX,qword ptr [RSP + 0x8]
LEA RCX,[R15 + R15*0x2]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV EAX,dword ptr [RAX + R12*0x4]
MOV dword ptr [RSP + 0x20],EAX
MOV RSI,qword ptr [RBX + 0x8]
CMP RSI,qword ptr [RBX + 0x10]
JZ 0x0011d407
MOV dword ptr [RSI],EAX
ADD RSI,0x4
MOV qword ptr [RBX + 0x8],RSI
JMP 0x0011d412
LAB_0011d407:
MOV RDI,RBX
MOV RDX,R14
CALL 0x0013ac44
LAB_0011d412:
MOV EAX,dword ptr [RSP + 0x20]
XOR ECX,ECX
CMP EAX,0x1
SETNZ CL
SUB R15,RCX
XOR ECX,ECX
CMP EAX,0x2
SETNZ CL
SUB R12,RCX
MOV RAX,R15
OR RAX,R12
JNZ 0x0011d3dc
LAB_0011d434:
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RBX + 0x8]
CMP RAX,RCX
SETNZ DL
ADD RCX,-0x4
CMP RCX,RAX
SETA SIL
AND SIL,DL
CMP SIL,0x1
JNZ 0x0011d473
ADD RAX,0x4
LAB_0011d459:
MOV EDX,dword ptr [RAX + -0x4]
MOV ESI,dword ptr [RCX]
MOV dword ptr [RAX + -0x4],ESI
MOV dword ptr [RCX],EDX
ADD RCX,-0x4
LEA RDX,[RAX + 0x4]
CMP RAX,RCX
MOV RAX,RDX
JC 0x0011d459
LAB_0011d473:
LEA RDI,[RSP + 0x8]
CALL 0x001330a4
LEA RDI,[RSP + 0x50]
CALL 0x001330f2
MOV RAX,RBX
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* testing::internal::edit_distance::CalculateOptimalEdits(std::vector<unsigned long,
std::allocator<unsigned long> > const&, std::vector<unsigned long, std::allocator<unsigned long>
> const&) */
edit_distance * __thiscall
testing::internal::edit_distance::CalculateOptimalEdits
(edit_distance *this,vector *param_1,vector *param_2)
{
double dVar1;
double dVar2;
double dVar3;
long lVar4;
long lVar5;
long lVar6;
int *piVar7;
int4 *puVar8;
void *pvVar9;
double dVar10;
int4 uVar11;
double dVar12;
int4 *puVar13;
int4 uVar14;
long lVar15;
int4 *puVar16;
ulong uVar17;
long lVar18;
long lVar19;
ulong uVar20;
long lVar21;
long lVar22;
long lVar23;
int1 auVar24 [16];
int1 auVar25 [16];
long *local_90 [2];
long local_80;
int local_78;
int4 uStack_74;
long local_68;
vector *local_60;
long local_58;
long local_50;
long *local_48;
long local_40;
lVar15 = *(long *)param_1;
lVar18 = *(long *)(param_1 + 8);
/* try { // try from 0011d0dd to 0011d0eb has its CatchHandler @ 0011d4d6 */
std::vector<double,std::allocator<double>>::vector
((ulong)local_90,(allocator *)((*(long *)(param_2 + 8) - *(long *)param_2 >> 3) + 1));
/* try { // try from 0011d0f6 to 0011d10c has its CatchHandler @ 0011d4ba */
std::
vector<std::vector<double,std::allocator<double>>,std::allocator<std::vector<double,std::allocator<double>>>>
::vector((ulong)&local_48,(vector *)((lVar18 - lVar15 >> 3) + 1),(allocator *)local_90);
if (local_90[0] != (long *)0x0) {
operator_delete(local_90[0],local_80 - (long)local_90[0]);
}
lVar15 = *(long *)param_1;
lVar18 = *(long *)(param_1 + 8);
/* try { // try from 0011d13a to 0011d148 has its CatchHandler @ 0011d4b5 */
std::
vector<testing::internal::edit_distance::EditType,std::allocator<testing::internal::edit_distance::EditType>>
::vector((ulong)&local_78,(allocator *)((*(long *)(param_2 + 8) - *(long *)param_2 >> 3) + 1));
/* try { // try from 0011d153 to 0011d169 has its CatchHandler @ 0011d499 */
std::
vector<std::vector<testing::internal::edit_distance::EditType,std::allocator<testing::internal::edit_distance::EditType>>,std::allocator<std::vector<testing::internal::edit_distance::EditType,std::allocator<testing::internal::edit_distance::EditType>>>>
::vector((ulong)local_90,(vector *)((lVar18 - lVar15 >> 3) + 1),(allocator *)&local_78);
pvVar9 = (void *)CONCAT44(uStack_74,local_78);
if (pvVar9 != (void *)0x0) {
operator_delete(pvVar9,local_68 - (long)pvVar9);
}
dVar12 = _UNK_00141e48;
dVar10 = _DAT_00141e40;
uVar11 = DAT_00141e30._4_4_;
uVar14 = (int4)DAT_00141e30;
if (local_40 - (long)local_48 != 0) {
lVar15 = (local_40 - (long)local_48 >> 3) * -0x5555555555555555;
lVar18 = 0;
lVar19 = 0;
do {
auVar24._8_4_ = (int)((ulong)lVar19 >> 0x20);
auVar24._0_8_ = lVar19;
auVar24._12_4_ = uVar11;
**(double **)((long)local_48 + lVar18) =
(auVar24._8_8_ - dVar12) + ((double)CONCAT44(uVar14,(int)lVar19) - dVar10);
**(int4 **)((long)local_90[0] + lVar18) = 2;
lVar19 = lVar19 + 1;
lVar18 = lVar18 + 0x18;
} while (lVar15 + (ulong)(lVar15 == 0) != lVar19);
}
dVar12 = _UNK_00141e48;
dVar10 = _DAT_00141e40;
uVar11 = DAT_00141e30._4_4_;
uVar14 = (int4)DAT_00141e30;
lVar15 = *local_48;
uVar17 = local_48[1] - lVar15 >> 3;
if (1 < uVar17) {
lVar18 = *local_90[0];
uVar20 = 1;
do {
auVar25._8_4_ = (int)(uVar20 >> 0x20);
auVar25._0_8_ = uVar20;
auVar25._12_4_ = uVar11;
*(double *)(lVar15 + uVar20 * 8) =
(auVar25._8_8_ - dVar12) + ((double)CONCAT44(uVar14,(int)uVar20) - dVar10);
*(int4 *)(lVar18 + uVar20 * 4) = 1;
uVar20 = uVar20 + 1;
} while (uVar17 != uVar20);
}
dVar12 = DAT_00141f08;
dVar10 = DAT_00140058;
local_58 = *(long *)param_1;
local_50 = *(long *)(param_1 + 8);
lVar15 = local_50 - local_58 >> 3;
if (local_50 != local_58) {
lVar18 = *(long *)param_2;
lVar19 = *(long *)(param_2 + 8);
lVar21 = lVar19 - lVar18 >> 3;
lVar22 = 0;
do {
if (lVar19 != lVar18) {
lVar4 = *(long *)(local_58 + lVar22 * 8);
lVar23 = 0;
do {
if (lVar4 == *(long *)(lVar18 + lVar23 * 8)) {
*(int8 *)(local_48[lVar22 * 3 + 3] + 8 + lVar23 * 8) =
*(int8 *)(local_48[lVar22 * 3] + lVar23 * 8);
uVar14 = 0;
}
else {
lVar5 = local_48[lVar22 * 3 + 3];
dVar1 = *(double *)(lVar5 + lVar23 * 8);
lVar6 = local_48[lVar22 * 3];
dVar2 = *(double *)(lVar6 + lVar23 * 8);
dVar3 = *(double *)(lVar6 + 8 + lVar23 * 8);
if ((dVar3 <= dVar1) || (dVar2 <= dVar1)) {
if ((dVar1 <= dVar3) || (dVar2 <= dVar3)) {
*(double *)(lVar5 + 8 + lVar23 * 8) = dVar2 + dVar12;
uVar14 = 3;
}
else {
*(double *)(lVar5 + 8 + lVar23 * 8) = dVar3 + dVar10;
uVar14 = 2;
}
}
else {
*(double *)(lVar5 + 8 + lVar23 * 8) = dVar1 + dVar10;
uVar14 = 1;
}
}
*(int4 *)(local_90[0][lVar22 * 3 + 3] + 4 + lVar23 * 4) = uVar14;
lVar23 = lVar23 + 1;
} while (lVar21 + (ulong)(lVar21 == 0) != lVar23);
}
lVar22 = lVar22 + 1;
} while (lVar22 != lVar15 + (ulong)(lVar15 == 0));
}
*(int1 (*) [16])this = (int1 [16])0x0;
*(int8 *)(this + 0x10) = 0;
local_60 = param_2;
if (*(long *)(param_2 + 8) != *(long *)param_2 || local_50 != local_58) {
lVar18 = *(long *)(param_2 + 8) - *(long *)param_2 >> 3;
do {
local_78 = *(int *)(local_90[0][lVar15 * 3] + lVar18 * 4);
piVar7 = *(int **)(this + 8);
if (piVar7 == *(int **)(this + 0x10)) {
/* try { // try from 0011d407 to 0011d411 has its CatchHandler @ 0011d4db */
std::
vector<testing::internal::edit_distance::EditType,std::allocator<testing::internal::edit_distance::EditType>>
::_M_realloc_insert<testing::internal::edit_distance::EditType_const&>
((vector<testing::internal::edit_distance::EditType,std::allocator<testing::internal::edit_distance::EditType>>
*)this,piVar7,&local_78);
}
else {
*piVar7 = local_78;
*(int **)(this + 8) = piVar7 + 1;
}
lVar15 = lVar15 - (ulong)(local_78 != 1);
lVar18 = lVar18 - (ulong)(local_78 != 2);
} while (lVar15 != 0 || lVar18 != 0);
}
puVar8 = *(int4 **)this;
puVar16 = *(int4 **)(this + 8) + -1;
if (puVar8 < puVar16 && puVar8 != *(int4 **)(this + 8)) {
do {
puVar13 = puVar8 + 1;
uVar14 = *puVar8;
*puVar8 = *puVar16;
*puVar16 = uVar14;
puVar16 = puVar16 + -1;
puVar8 = puVar13;
} while (puVar13 < puVar16);
}
std::
vector<std::vector<testing::internal::edit_distance::EditType,std::allocator<testing::internal::edit_distance::EditType>>,std::allocator<std::vector<testing::internal::edit_distance::EditType,std::allocator<testing::internal::edit_distance::EditType>>>>
::~vector((vector<std::vector<testing::internal::edit_distance::EditType,std::allocator<testing::internal::edit_distance::EditType>>,std::allocator<std::vector<testing::internal::edit_distance::EditType,std::allocator<testing::internal::edit_distance::EditType>>>>
*)local_90);
std::
vector<std::vector<double,std::allocator<double>>,std::allocator<std::vector<double,std::allocator<double>>>>
::~vector((vector<std::vector<double,std::allocator<double>>,std::allocator<std::vector<double,std::allocator<double>>>>
*)&local_48);
return this;
}
| |
24,007 | insert_at | eloqsql/mysys/queues.c | static void insert_at(QUEUE *queue, uchar *element, uint idx)
{
uint next_index, offset_to_key= queue->offset_to_key;
uint offset_to_queue_pos= queue->offset_to_queue_pos;
/* max_at_top swaps the comparison if we want to order by desc */
while ((next_index= idx >> 1) > 0 &&
queue->compare(queue->first_cmp_arg,
element + offset_to_key,
queue->root[next_index] + offset_to_key) *
queue->max_at_top < 0)
{
queue->root[idx]= queue->root[next_index];
if (offset_to_queue_pos)
(*(uint*) (queue->root[idx] + offset_to_queue_pos-1))= idx;
idx= next_index;
}
queue->root[idx]= element;
if (offset_to_queue_pos)
(*(uint*) (element + offset_to_queue_pos-1))= idx;
} | O0 | c | insert_at:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x1c(%rbp)
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0x20(%rbp)
movl -0x14(%rbp), %ecx
shrl %ecx
movl %ecx, -0x18(%rbp)
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x21(%rbp)
jbe 0xf727a
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x8(%rcx), %rdi
movq -0x10(%rbp), %rsi
movl -0x1c(%rbp), %ecx
addq %rcx, %rsi
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
movl -0x18(%rbp), %edx
movq (%rcx,%rdx,8), %rdx
movl -0x1c(%rbp), %ecx
addq %rcx, %rdx
callq *%rax
movq -0x8(%rbp), %rcx
imull 0x24(%rcx), %eax
cmpl $0x0, %eax
setl %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
testb $0x1, %al
jne 0xf7283
jmp 0xf72c8
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0x18(%rbp), %ecx
movq (%rax,%rcx,8), %rdx
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0x14(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
cmpl $0x0, -0x20(%rbp)
je 0xf72bd
movl -0x14(%rbp), %edx
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0x14(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl -0x20(%rbp), %ecx
movl %edx, -0x1(%rax,%rcx)
movl -0x18(%rbp), %eax
movl %eax, -0x14(%rbp)
jmp 0xf7227
movq -0x10(%rbp), %rdx
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0x14(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
cmpl $0x0, -0x20(%rbp)
je 0xf72ee
movl -0x14(%rbp), %edx
movq -0x10(%rbp), %rax
movl -0x20(%rbp), %ecx
movl %edx, -0x1(%rax,%rcx)
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| insert_at:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov rax, [rbp+var_8]
mov eax, [rax+18h]
mov [rbp+var_1C], eax
mov rax, [rbp+var_8]
mov eax, [rax+1Ch]
mov [rbp+var_20], eax
loc_F7227:
mov ecx, [rbp+var_14]
shr ecx, 1
mov [rbp+var_18], ecx
xor eax, eax
cmp ecx, 0
mov [rbp+var_21], al
jbe short loc_F727A
mov rax, [rbp+var_8]
mov rax, [rax+28h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+8]
mov rsi, [rbp+var_10]
mov ecx, [rbp+var_1C]
add rsi, rcx
mov rcx, [rbp+var_8]
mov rcx, [rcx]
mov edx, [rbp+var_18]
mov rdx, [rcx+rdx*8]
mov ecx, [rbp+var_1C]
add rdx, rcx
call rax
mov rcx, [rbp+var_8]
imul eax, [rcx+24h]
cmp eax, 0
setl al
mov [rbp+var_21], al
loc_F727A:
mov al, [rbp+var_21]
test al, 1
jnz short loc_F7283
jmp short loc_F72C8
loc_F7283:
mov rax, [rbp+var_8]
mov rax, [rax]
mov ecx, [rbp+var_18]
mov rdx, [rax+rcx*8]
mov rax, [rbp+var_8]
mov rax, [rax]
mov ecx, [rbp+var_14]
mov [rax+rcx*8], rdx
cmp [rbp+var_20], 0
jz short loc_F72BD
mov edx, [rbp+var_14]
mov rax, [rbp+var_8]
mov rax, [rax]
mov ecx, [rbp+var_14]
mov rax, [rax+rcx*8]
mov ecx, [rbp+var_20]
mov [rax+rcx-1], edx
loc_F72BD:
mov eax, [rbp+var_18]
mov [rbp+var_14], eax
jmp loc_F7227
loc_F72C8:
mov rdx, [rbp+var_10]
mov rax, [rbp+var_8]
mov rax, [rax]
mov ecx, [rbp+var_14]
mov [rax+rcx*8], rdx
cmp [rbp+var_20], 0
jz short loc_F72EE
mov edx, [rbp+var_14]
mov rax, [rbp+var_10]
mov ecx, [rbp+var_20]
mov [rax+rcx-1], edx
loc_F72EE:
add rsp, 30h
pop rbp
retn
| long long insert_at(long long *a1, long long a2, unsigned int a3)
{
long long result; // rax
bool v4; // [rsp+Fh] [rbp-21h]
unsigned int v5; // [rsp+10h] [rbp-20h]
unsigned int v6; // [rsp+14h] [rbp-1Ch]
unsigned int v7; // [rsp+18h] [rbp-18h]
v6 = *((_DWORD *)a1 + 6);
v5 = *((_DWORD *)a1 + 7);
while ( 1 )
{
v7 = a3 >> 1;
v4 = 0;
if ( a3 >> 1 )
v4 = (int)(*((_DWORD *)a1 + 9)
* ((long long ( *)(long long, long long, _QWORD))a1[5])(
a1[1],
v6 + a2,
v6 + *(_QWORD *)(*a1 + 8LL * v7))) < 0;
if ( !v4 )
break;
*(_QWORD *)(*a1 + 8LL * a3) = *(_QWORD *)(*a1 + 8LL * v7);
if ( v5 )
*(_DWORD *)(*(_QWORD *)(*a1 + 8LL * a3) + v5 - 1LL) = a3;
a3 >>= 1;
}
result = *a1;
*(_QWORD *)(*a1 + 8LL * a3) = a2;
if ( v5 )
{
result = a2;
*(_DWORD *)(a2 + v5 - 1) = a3;
}
return result;
}
| insert_at:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x18]
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x1c]
MOV dword ptr [RBP + -0x20],EAX
LAB_001f7227:
MOV ECX,dword ptr [RBP + -0x14]
SHR ECX,0x1
MOV dword ptr [RBP + -0x18],ECX
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0x21],AL
JBE 0x001f727a
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x28]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RCX + 0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x1c]
ADD RSI,RCX
MOV RCX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RCX]
MOV EDX,dword ptr [RBP + -0x18]
MOV RDX,qword ptr [RCX + RDX*0x8]
MOV ECX,dword ptr [RBP + -0x1c]
ADD RDX,RCX
CALL RAX
MOV RCX,qword ptr [RBP + -0x8]
IMUL EAX,dword ptr [RCX + 0x24]
CMP EAX,0x0
SETL AL
MOV byte ptr [RBP + -0x21],AL
LAB_001f727a:
MOV AL,byte ptr [RBP + -0x21]
TEST AL,0x1
JNZ 0x001f7283
JMP 0x001f72c8
LAB_001f7283:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RBP + -0x18]
MOV RDX,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RBP + -0x14]
MOV qword ptr [RAX + RCX*0x8],RDX
CMP dword ptr [RBP + -0x20],0x0
JZ 0x001f72bd
MOV EDX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV ECX,dword ptr [RBP + -0x20]
MOV dword ptr [RAX + RCX*0x1 + -0x1],EDX
LAB_001f72bd:
MOV EAX,dword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x14],EAX
JMP 0x001f7227
LAB_001f72c8:
MOV RDX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RBP + -0x14]
MOV qword ptr [RAX + RCX*0x8],RDX
CMP dword ptr [RBP + -0x20],0x0
JZ 0x001f72ee
MOV EDX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x20]
MOV dword ptr [RAX + RCX*0x1 + -0x1],EDX
LAB_001f72ee:
ADD RSP,0x30
POP RBP
RET
|
void insert_at(long *param_1,long param_2,uint param_3)
{
uint uVar1;
uint uVar2;
int iVar3;
uint uVar4;
bool bVar5;
uint local_1c;
uVar1 = *(uint *)(param_1 + 3);
uVar2 = *(uint *)((long)param_1 + 0x1c);
uVar4 = param_3;
while( true ) {
local_1c = uVar4;
uVar4 = local_1c >> 1;
bVar5 = false;
if (uVar4 != 0) {
iVar3 = (*(code *)param_1[5])
(param_1[1],param_2 + (ulong)uVar1,
*(long *)(*param_1 + (ulong)uVar4 * 8) + (ulong)uVar1);
bVar5 = iVar3 * *(int *)((long)param_1 + 0x24) < 0;
}
if (!bVar5) break;
*(int8 *)(*param_1 + (ulong)local_1c * 8) = *(int8 *)(*param_1 + (ulong)uVar4 * 8);
if (uVar2 != 0) {
*(uint *)(*(long *)(*param_1 + (ulong)local_1c * 8) + -1 + (ulong)uVar2) = local_1c;
}
}
*(long *)(*param_1 + (ulong)local_1c * 8) = param_2;
if (uVar2 != 0) {
*(uint *)(param_2 + -1 + (ulong)uVar2) = local_1c;
}
return;
}
| |
24,008 | translog_stop_writing | eloqsql/storage/maria/ma_loghandler.c | void translog_stop_writing()
{
DBUG_ENTER("translog_stop_writing");
DBUG_PRINT("error", ("errno: %d my_errno: %d", errno, my_errno));
translog_status= (translog_status == TRANSLOG_SHUTDOWN ?
TRANSLOG_UNINITED :
TRANSLOG_READONLY);
log_descriptor.is_everything_flushed= 1;
log_descriptor.open_flags= O_BINARY | O_RDONLY;
DBUG_ASSERT(0);
DBUG_VOID_RETURN;
} | O3 | c | translog_stop_writing:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
cmpl $0x3, 0x3b81f9(%rip) # 0x3fbf50
setne %al
addl %eax, %eax
movl %eax, 0x3b81ee(%rip) # 0x3fbf50
movb $0x1, 0xbba2c7(%rip) # 0xbfe030
movl $0x0, 0x3b93f9(%rip) # 0x3fd16c
popq %rbp
retq
| translog_stop_writing:
push rbp
mov rbp, rsp
xor eax, eax
cmp cs:translog_status, 3
setnz al
add eax, eax
mov cs:translog_status, eax
mov byte ptr cs:word_BFE030, 1
mov cs:dword_3FD16C, 0
pop rbp
retn
| long long translog_stop_writing()
{
long long result; // rax
result = 2 * (unsigned int)(translog_status != 3);
translog_status = 2 * (translog_status != 3);
LOBYTE(word_BFE030) = 1;
dword_3FD16C = 0;
return result;
}
| translog_stop_writing:
PUSH RBP
MOV RBP,RSP
XOR EAX,EAX
CMP dword ptr [0x004fbf50],0x3
SETNZ AL
ADD EAX,EAX
MOV dword ptr [0x004fbf50],EAX
MOV byte ptr [0x00cfe030],0x1
MOV dword ptr [0x004fd16c],0x0
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void translog_stop_writing(void)
{
translog_status = (uint)(translog_status != 3) * 2;
DAT_00cfe030 = 1;
_DAT_004fd16c = 0;
return;
}
| |
24,009 | google::protobuf::TextFormat::PrintFieldValueToString(google::protobuf::Message const&, google::protobuf::FieldDescriptor const*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/text_format.cc | void TextFormat::PrintFieldValueToString(
const Message& message, const FieldDescriptor* field, int index,
std::string* output) {
return Printer().PrintFieldValueToString(message, field, index, output);
} | O3 | cpp | google::protobuf::TextFormat::PrintFieldValueToString(google::protobuf::Message const&, google::protobuf::FieldDescriptor const*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x90, %rsp
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0x7d7cc
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebp, %ecx
movq %rbx, %r8
callq 0x7ed5a
leaq 0x58(%rsp), %rdi
callq 0x402b0
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
callq 0x40312
movq -0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x7fe12
movq (%rdi), %rax
callq *0x8(%rax)
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x40280
movq %rbx, %rdi
callq 0xf570
nop
| _ZN6google8protobuf10TextFormat23PrintFieldValueToStringERKNS0_7MessageEPKNS0_15FieldDescriptorEiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 90h
mov rbx, rcx
mov ebp, edx
mov r14, rsi
mov r15, rdi
lea r12, [rsp+0B8h+var_B0]
mov rdi, r12; this
call _ZN6google8protobuf10TextFormat7PrinterC2Ev; google::protobuf::TextFormat::Printer::Printer(void)
mov rdi, r12
mov rsi, r15
mov rdx, r14
mov ecx, ebp
mov r8, rbx
call _ZNK6google8protobuf10TextFormat7Printer23PrintFieldValueToStringERKNS0_7MessageEPKNS0_15FieldDescriptorEiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::TextFormat::Printer::PrintFieldValueToString(google::protobuf::Message const&,google::protobuf::FieldDescriptor const*,int,std::string *)
lea rdi, [rsp+0B8h+var_60]
call _ZNSt8_Rb_treeIPKN6google8protobuf10DescriptorESt4pairIKS4_St10unique_ptrIKNS1_10TextFormat14MessagePrinterESt14default_deleteISA_EEESt10_Select1stISE_ESt4lessIS4_ESaISE_EED2Ev; std::_Rb_tree<google::protobuf::Descriptor const*,std::pair<google::protobuf::Descriptor const* const,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter const>>,std::_Select1st<std::pair<google::protobuf::Descriptor const* const,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter const>>>,std::less<google::protobuf::Descriptor const*>,std::allocator<std::pair<google::protobuf::Descriptor const* const,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter const>>>>::~_Rb_tree()
lea rbx, [rsp+0B8h+var_90]
mov rdi, rbx
call _ZNSt8_Rb_treeIPKN6google8protobuf15FieldDescriptorESt4pairIKS4_St10unique_ptrIKNS1_10TextFormat21FastFieldValuePrinterESt14default_deleteISA_EEESt10_Select1stISE_ESt4lessIS4_ESaISE_EED2Ev; std::_Rb_tree<google::protobuf::FieldDescriptor const*,std::pair<google::protobuf::FieldDescriptor const* const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter const>>,std::_Select1st<std::pair<google::protobuf::FieldDescriptor const* const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter const>>>,std::less<google::protobuf::FieldDescriptor const*>,std::allocator<std::pair<google::protobuf::FieldDescriptor const* const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter const>>>>::~_Rb_tree()
mov rdi, [rbx-8]
test rdi, rdi
jz short loc_7FE12
mov rax, [rdi]
call qword ptr [rax+8]
loc_7FE12:
add rsp, 90h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN6google8protobuf10TextFormat7PrinterD2Ev; google::protobuf::TextFormat::Printer::~Printer()
mov rdi, rbx
call __Unwind_Resume
| void ( ** google::protobuf::TextFormat::PrintFieldValueToString(
google::protobuf::Message *a1,
google::protobuf::FieldDescriptor *a2,
int a3,
long long a4))(google::protobuf::TextFormat::Printer::TextGenerator *__hidden this)
{
void ( **result)(google::protobuf::TextFormat::Printer::TextGenerator *__hidden); // rax
_BYTE v7[24]; // [rsp+8h] [rbp-B0h] BYREF
long long v8; // [rsp+20h] [rbp-98h]
_BYTE v9[48]; // [rsp+28h] [rbp-90h] BYREF
_BYTE v10[96]; // [rsp+58h] [rbp-60h] BYREF
google::protobuf::TextFormat::Printer::Printer((google::protobuf::TextFormat::Printer *)v7);
result = google::protobuf::TextFormat::Printer::PrintFieldValueToString(
(google::protobuf::TextFormat::Printer *)v7,
a1,
a2,
a3,
a4);
std::_Rb_tree<google::protobuf::Descriptor const*,std::pair<google::protobuf::Descriptor const* const,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter const>>,std::_Select1st<std::pair<google::protobuf::Descriptor const* const,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter const>>>,std::less<google::protobuf::Descriptor const*>,std::allocator<std::pair<google::protobuf::Descriptor const* const,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter const>>>>::~_Rb_tree((long long)v10);
std::_Rb_tree<google::protobuf::FieldDescriptor const*,std::pair<google::protobuf::FieldDescriptor const* const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter const>>,std::_Select1st<std::pair<google::protobuf::FieldDescriptor const* const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter const>>>,std::less<google::protobuf::FieldDescriptor const*>,std::allocator<std::pair<google::protobuf::FieldDescriptor const* const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter const>>>>::~_Rb_tree((long long)v9);
if ( v8 )
return (void ( **)(google::protobuf::TextFormat::Printer::TextGenerator *__hidden))(*(long long ( **)(long long))(*(_QWORD *)v8 + 8LL))(v8);
return result;
}
| PrintFieldValueToString:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x90
MOV RBX,RCX
MOV EBP,EDX
MOV R14,RSI
MOV R15,RDI
LEA R12,[RSP + 0x8]
MOV RDI,R12
CALL 0x0017d7cc
LAB_0017fdd9:
MOV RDI,R12
MOV RSI,R15
MOV RDX,R14
MOV ECX,EBP
MOV R8,RBX
CALL 0x0017ed5a
LAB_0017fdec:
LEA RDI,[RSP + 0x58]
CALL 0x001402b0
LEA RBX,[RSP + 0x28]
MOV RDI,RBX
CALL 0x00140312
MOV RDI,qword ptr [RBX + -0x8]
TEST RDI,RDI
JZ 0x0017fe12
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_0017fe12:
ADD RSP,0x90
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::TextFormat::PrintFieldValueToString(google::protobuf::Message const&,
google::protobuf::FieldDescriptor const*, int, std::__cxx11::string*) */
void google::protobuf::TextFormat::PrintFieldValueToString
(Message *param_1,FieldDescriptor *param_2,int param_3,string *param_4)
{
Printer local_b0 [24];
long *local_98;
_Rb_tree<google::protobuf::FieldDescriptor_const*,std::pair<google::protobuf::FieldDescriptor_const*const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter_const,std::default_delete<google::protobuf::TextFormat::FastFieldValuePrinter_const>>>,std::_Select1st<std::pair<google::protobuf::FieldDescriptor_const*const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter_const,std::default_delete<google::protobuf::TextFormat::FastFieldValuePrinter_const>>>>,std::less<google::protobuf::FieldDescriptor_const*>,std::allocator<std::pair<google::protobuf::FieldDescriptor_const*const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter_const,std::default_delete<google::protobuf::TextFormat::FastFieldValuePrinter_const>>>>>
local_90 [48];
_Rb_tree<google::protobuf::Descriptor_const*,std::pair<google::protobuf::Descriptor_const*const,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter_const,std::default_delete<google::protobuf::TextFormat::MessagePrinter_const>>>,std::_Select1st<std::pair<google::protobuf::Descriptor_const*const,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter_const,std::default_delete<google::protobuf::TextFormat::MessagePrinter_const>>>>,std::less<google::protobuf::Descriptor_const*>,std::allocator<std::pair<google::protobuf::Descriptor_const*const,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter_const,std::default_delete<google::protobuf::TextFormat::MessagePrinter_const>>>>>
local_60 [56];
Printer::Printer(local_b0);
/* try { // try from 0017fdd9 to 0017fdeb has its CatchHandler @ 0017fe22 */
Printer::PrintFieldValueToString(local_b0,param_1,param_2,param_3,param_4);
std::
_Rb_tree<google::protobuf::Descriptor_const*,std::pair<google::protobuf::Descriptor_const*const,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter_const,std::default_delete<google::protobuf::TextFormat::MessagePrinter_const>>>,std::_Select1st<std::pair<google::protobuf::Descriptor_const*const,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter_const,std::default_delete<google::protobuf::TextFormat::MessagePrinter_const>>>>,std::less<google::protobuf::Descriptor_const*>,std::allocator<std::pair<google::protobuf::Descriptor_const*const,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter_const,std::default_delete<google::protobuf::TextFormat::MessagePrinter_const>>>>>
::~_Rb_tree(local_60);
std::
_Rb_tree<google::protobuf::FieldDescriptor_const*,std::pair<google::protobuf::FieldDescriptor_const*const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter_const,std::default_delete<google::protobuf::TextFormat::FastFieldValuePrinter_const>>>,std::_Select1st<std::pair<google::protobuf::FieldDescriptor_const*const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter_const,std::default_delete<google::protobuf::TextFormat::FastFieldValuePrinter_const>>>>,std::less<google::protobuf::FieldDescriptor_const*>,std::allocator<std::pair<google::protobuf::FieldDescriptor_const*const,std::unique_ptr<google::protobuf::TextFormat::FastFieldValuePrinter_const,std::default_delete<google::protobuf::TextFormat::FastFieldValuePrinter_const>>>>>
::~_Rb_tree(local_90);
if (local_98 != (long *)0x0) {
(**(code **)(*local_98 + 8))();
}
return;
}
| |
24,010 | DrawTriangleFan | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rshapes.c | void DrawTriangleFan(const Vector2 *points, int pointCount, Color color)
{
if (pointCount >= 3)
{
rlSetTexture(GetShapesTexture().id);
Rectangle shapeRect = GetShapesTextureRectangle();
rlBegin(RL_QUADS);
rlColor4ub(color.r, color.g, color.b, color.a);
for (int i = 1; i < pointCount - 1; i++)
{
rlTexCoord2f(shapeRect.x/texShapes.width, shapeRect.y/texShapes.height);
rlVertex2f(points[0].x, points[0].y);
rlTexCoord2f(shapeRect.x/texShapes.width, (shapeRect.y + shapeRect.height)/texShapes.height);
rlVertex2f(points[i].x, points[i].y);
rlTexCoord2f((shapeRect.x + shapeRect.width)/texShapes.width, (shapeRect.y + shapeRect.height)/texShapes.height);
rlVertex2f(points[i + 1].x, points[i + 1].y);
rlTexCoord2f((shapeRect.x + shapeRect.width)/texShapes.width, shapeRect.y/texShapes.height);
rlVertex2f(points[i + 1].x, points[i + 1].y);
}
rlEnd();
rlSetTexture(0);
}
} | O0 | c | DrawTriangleFan:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edx, -0x4(%rbp)
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
cmpl $0x3, -0x14(%rbp)
jl 0xdc58d
leaq -0x28(%rbp), %rdi
callq 0xd6e70
movl -0x28(%rbp), %edi
callq 0xb22a0
callq 0xd6ea0
movlpd %xmm0, -0x38(%rbp)
movlpd %xmm1, -0x30(%rbp)
movl $0x7, %edi
callq 0xb07c0
movb -0x4(%rbp), %dl
movb -0x3(%rbp), %cl
movb -0x2(%rbp), %al
movzbl %dl, %edi
movzbl %cl, %esi
movzbl %al, %edx
movzbl -0x1(%rbp), %ecx
callq 0xb2160
movl $0x1, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movl -0x14(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0xdc581
movss -0x38(%rbp), %xmm0
cvtsi2ssl 0x137cfe(%rip), %xmm1 # 0x214144
divss %xmm1, %xmm0
movss -0x34(%rbp), %xmm1
cvtsi2ssl 0x137cf1(%rip), %xmm2 # 0x214148
divss %xmm2, %xmm1
callq 0xb1f80
movq -0x10(%rbp), %rax
movss (%rax), %xmm0
movq -0x10(%rbp), %rax
movss 0x4(%rax), %xmm1
callq 0xb1f10
movss -0x38(%rbp), %xmm0
cvtsi2ssl 0x137cc1(%rip), %xmm1 # 0x214144
divss %xmm1, %xmm0
movss -0x34(%rbp), %xmm1
addss -0x2c(%rbp), %xmm1
cvtsi2ssl 0x137caf(%rip), %xmm2 # 0x214148
divss %xmm2, %xmm1
callq 0xb1f80
movq -0x10(%rbp), %rax
movslq -0x3c(%rbp), %rcx
movss (%rax,%rcx,8), %xmm0
movq -0x10(%rbp), %rax
movslq -0x3c(%rbp), %rcx
movss 0x4(%rax,%rcx,8), %xmm1
callq 0xb1f10
movss -0x38(%rbp), %xmm0
addss -0x30(%rbp), %xmm0
cvtsi2ssl 0x137c70(%rip), %xmm1 # 0x214144
divss %xmm1, %xmm0
movss -0x34(%rbp), %xmm1
addss -0x2c(%rbp), %xmm1
cvtsi2ssl 0x137c5e(%rip), %xmm2 # 0x214148
divss %xmm2, %xmm1
callq 0xb1f80
movq -0x10(%rbp), %rax
movl -0x3c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,8), %xmm0
movq -0x10(%rbp), %rax
movl -0x3c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movss 0x4(%rax,%rcx,8), %xmm1
callq 0xb1f10
movss -0x38(%rbp), %xmm0
addss -0x30(%rbp), %xmm0
cvtsi2ssl 0x137c15(%rip), %xmm1 # 0x214144
divss %xmm1, %xmm0
movss -0x34(%rbp), %xmm1
cvtsi2ssl 0x137c08(%rip), %xmm2 # 0x214148
divss %xmm2, %xmm1
callq 0xb1f80
movq -0x10(%rbp), %rax
movl -0x3c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,8), %xmm0
movq -0x10(%rbp), %rax
movl -0x3c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movss 0x4(%rax,%rcx,8), %xmm1
callq 0xb1f10
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xdc428
callq 0xb1990
xorl %edi, %edi
callq 0xb22a0
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| DrawTriangleFan:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_4], edx
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
cmp [rbp+var_14], 3
jl loc_DC58D
lea rdi, [rbp+var_28]
call GetShapesTexture
mov edi, [rbp+var_28]
call rlSetTexture
call GetShapesTextureRectangle
movlpd [rbp+var_38], xmm0
movlpd [rbp+var_30], xmm1
mov edi, 7
call rlBegin
mov dl, byte ptr [rbp+var_4]
mov cl, byte ptr [rbp+var_4+1]
mov al, byte ptr [rbp+var_4+2]
movzx edi, dl
movzx esi, cl
movzx edx, al
movzx ecx, byte ptr [rbp+var_4+3]
call rlColor4ub
mov [rbp+var_3C], 1
loc_DC428:
mov eax, [rbp+var_3C]
mov ecx, [rbp+var_14]
sub ecx, 1
cmp eax, ecx
jge loc_DC581
movss xmm0, dword ptr [rbp+var_38]
cvtsi2ss xmm1, dword ptr cs:texShapes+4
divss xmm0, xmm1
movss xmm1, dword ptr [rbp+var_38+4]
cvtsi2ss xmm2, dword ptr cs:qword_214148
divss xmm1, xmm2
call rlTexCoord2f
mov rax, [rbp+var_10]
movss xmm0, dword ptr [rax]
mov rax, [rbp+var_10]
movss xmm1, dword ptr [rax+4]
call rlVertex2f
movss xmm0, dword ptr [rbp+var_38]
cvtsi2ss xmm1, dword ptr cs:texShapes+4
divss xmm0, xmm1
movss xmm1, dword ptr [rbp+var_38+4]
addss xmm1, dword ptr [rbp+var_30+4]
cvtsi2ss xmm2, dword ptr cs:qword_214148
divss xmm1, xmm2
call rlTexCoord2f
mov rax, [rbp+var_10]
movsxd rcx, [rbp+var_3C]
movss xmm0, dword ptr [rax+rcx*8]
mov rax, [rbp+var_10]
movsxd rcx, [rbp+var_3C]
movss xmm1, dword ptr [rax+rcx*8+4]
call rlVertex2f
movss xmm0, dword ptr [rbp+var_38]
addss xmm0, dword ptr [rbp+var_30]
cvtsi2ss xmm1, dword ptr cs:texShapes+4
divss xmm0, xmm1
movss xmm1, dword ptr [rbp+var_38+4]
addss xmm1, dword ptr [rbp+var_30+4]
cvtsi2ss xmm2, dword ptr cs:qword_214148
divss xmm1, xmm2
call rlTexCoord2f
mov rax, [rbp+var_10]
mov ecx, [rbp+var_3C]
add ecx, 1
movsxd rcx, ecx
movss xmm0, dword ptr [rax+rcx*8]
mov rax, [rbp+var_10]
mov ecx, [rbp+var_3C]
add ecx, 1
movsxd rcx, ecx
movss xmm1, dword ptr [rax+rcx*8+4]
call rlVertex2f
movss xmm0, dword ptr [rbp+var_38]
addss xmm0, dword ptr [rbp+var_30]
cvtsi2ss xmm1, dword ptr cs:texShapes+4
divss xmm0, xmm1
movss xmm1, dword ptr [rbp+var_38+4]
cvtsi2ss xmm2, dword ptr cs:qword_214148
divss xmm1, xmm2
call rlTexCoord2f
mov rax, [rbp+var_10]
mov ecx, [rbp+var_3C]
add ecx, 1
movsxd rcx, ecx
movss xmm0, dword ptr [rax+rcx*8]
mov rax, [rbp+var_10]
mov ecx, [rbp+var_3C]
add ecx, 1
movsxd rcx, ecx
movss xmm1, dword ptr [rax+rcx*8+4]
call rlVertex2f
mov eax, [rbp+var_3C]
add eax, 1
mov [rbp+var_3C], eax
jmp loc_DC428
loc_DC581:
call rlEnd
xor edi, edi
call rlSetTexture
loc_DC58D:
add rsp, 40h
pop rbp
retn
| long long DrawTriangleFan(
float *a1,
int a2,
int a3,
double a4,
double a5,
double a6,
double a7,
double a8,
double a9,
double a10,
double a11)
{
double v11; // xmm4_8
double v12; // xmm5_8
long long v13; // rdi
long long v14; // rsi
long long v15; // rdx
double v16; // xmm0_8
double v17; // xmm4_8
double v18; // xmm5_8
long long result; // rax
int i; // [rsp+4h] [rbp-3Ch]
double ShapesTextureRectangle; // [rsp+8h] [rbp-38h]
double v22; // [rsp+10h] [rbp-30h]
int v23[5]; // [rsp+18h] [rbp-28h] BYREF
int v24; // [rsp+2Ch] [rbp-14h]
float *v25; // [rsp+30h] [rbp-10h]
int v26; // [rsp+3Ch] [rbp-4h]
v26 = a3;
v25 = a1;
v24 = a2;
if ( a2 >= 3 )
{
GetShapesTexture((long long)v23);
rlSetTexture(v23[0], a4, a5, a6, a7, v11, v12, a10, a11);
ShapesTextureRectangle = GetShapesTextureRectangle();
v22 = a5;
rlBegin(7);
v13 = (unsigned __int8)v26;
v14 = BYTE1(v26);
rlColor4ub(v26, SBYTE1(v26), SBYTE2(v26), SHIBYTE(v26));
for ( i = 1; i < v24 - 1; ++i )
{
rlTexCoord2f(
*(float *)&ShapesTextureRectangle / (float)SHIDWORD(texShapes),
*((float *)&ShapesTextureRectangle + 1) / (float)(int)qword_214148);
rlVertex2f(*v25, v25[1]);
rlTexCoord2f(
*(float *)&ShapesTextureRectangle / (float)SHIDWORD(texShapes),
(float)(*((float *)&ShapesTextureRectangle + 1) + *((float *)&v22 + 1)) / (float)(int)qword_214148);
rlVertex2f(v25[2 * i], v25[2 * i + 1]);
rlTexCoord2f(
(float)(*(float *)&ShapesTextureRectangle + *(float *)&v22) / (float)SHIDWORD(texShapes),
(float)(*((float *)&ShapesTextureRectangle + 1) + *((float *)&v22 + 1)) / (float)(int)qword_214148);
rlVertex2f(v25[2 * i + 2], v25[2 * i + 3]);
*(float *)&a6 = (float)(int)qword_214148;
rlTexCoord2f(
(float)(*(float *)&ShapesTextureRectangle + *(float *)&v22) / (float)SHIDWORD(texShapes),
*((float *)&ShapesTextureRectangle + 1) / (float)(int)qword_214148);
*(_QWORD *)&a5 = LODWORD(v25[2 * i + 3]);
rlVertex2f(v25[2 * i + 2], *(float *)&a5);
}
v16 = rlEnd(v13, v14, v15);
return rlSetTexture(0, v16, a5, a6, a7, v17, v18, a10, a11);
}
return result;
}
| DrawTriangleFan:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV dword ptr [RBP + -0x4],EDX
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
CMP dword ptr [RBP + -0x14],0x3
JL 0x001dc58d
LEA RDI,[RBP + -0x28]
CALL 0x001d6e70
MOV EDI,dword ptr [RBP + -0x28]
CALL 0x001b22a0
CALL 0x001d6ea0
MOVLPD qword ptr [RBP + -0x38],XMM0
MOVLPD qword ptr [RBP + -0x30],XMM1
MOV EDI,0x7
CALL 0x001b07c0
MOV DL,byte ptr [RBP + -0x4]
MOV CL,byte ptr [RBP + -0x3]
MOV AL,byte ptr [RBP + -0x2]
MOVZX EDI,DL
MOVZX ESI,CL
MOVZX EDX,AL
MOVZX ECX,byte ptr [RBP + -0x1]
CALL 0x001b2160
MOV dword ptr [RBP + -0x3c],0x1
LAB_001dc428:
MOV EAX,dword ptr [RBP + -0x3c]
MOV ECX,dword ptr [RBP + -0x14]
SUB ECX,0x1
CMP EAX,ECX
JGE 0x001dc581
MOVSS XMM0,dword ptr [RBP + -0x38]
CVTSI2SS XMM1,dword ptr [0x00314144]
DIVSS XMM0,XMM1
MOVSS XMM1,dword ptr [RBP + -0x34]
CVTSI2SS XMM2,dword ptr [0x00314148]
DIVSS XMM1,XMM2
CALL 0x001b1f80
MOV RAX,qword ptr [RBP + -0x10]
MOVSS XMM0,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOVSS XMM1,dword ptr [RAX + 0x4]
CALL 0x001b1f10
MOVSS XMM0,dword ptr [RBP + -0x38]
CVTSI2SS XMM1,dword ptr [0x00314144]
DIVSS XMM0,XMM1
MOVSS XMM1,dword ptr [RBP + -0x34]
ADDSS XMM1,dword ptr [RBP + -0x2c]
CVTSI2SS XMM2,dword ptr [0x00314148]
DIVSS XMM1,XMM2
CALL 0x001b1f80
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,dword ptr [RBP + -0x3c]
MOVSS XMM0,dword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,dword ptr [RBP + -0x3c]
MOVSS XMM1,dword ptr [RAX + RCX*0x8 + 0x4]
CALL 0x001b1f10
MOVSS XMM0,dword ptr [RBP + -0x38]
ADDSS XMM0,dword ptr [RBP + -0x30]
CVTSI2SS XMM1,dword ptr [0x00314144]
DIVSS XMM0,XMM1
MOVSS XMM1,dword ptr [RBP + -0x34]
ADDSS XMM1,dword ptr [RBP + -0x2c]
CVTSI2SS XMM2,dword ptr [0x00314148]
DIVSS XMM1,XMM2
CALL 0x001b1f80
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x3c]
ADD ECX,0x1
MOVSXD RCX,ECX
MOVSS XMM0,dword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x3c]
ADD ECX,0x1
MOVSXD RCX,ECX
MOVSS XMM1,dword ptr [RAX + RCX*0x8 + 0x4]
CALL 0x001b1f10
MOVSS XMM0,dword ptr [RBP + -0x38]
ADDSS XMM0,dword ptr [RBP + -0x30]
CVTSI2SS XMM1,dword ptr [0x00314144]
DIVSS XMM0,XMM1
MOVSS XMM1,dword ptr [RBP + -0x34]
CVTSI2SS XMM2,dword ptr [0x00314148]
DIVSS XMM1,XMM2
CALL 0x001b1f80
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x3c]
ADD ECX,0x1
MOVSXD RCX,ECX
MOVSS XMM0,dword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x3c]
ADD ECX,0x1
MOVSXD RCX,ECX
MOVSS XMM1,dword ptr [RAX + RCX*0x8 + 0x4]
CALL 0x001b1f10
MOV EAX,dword ptr [RBP + -0x3c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x3c],EAX
JMP 0x001dc428
LAB_001dc581:
CALL 0x001b1990
XOR EDI,EDI
CALL 0x001b22a0
LAB_001dc58d:
ADD RSP,0x40
POP RBP
RET
|
void DrawTriangleFan(int8 param_1,int8 param_2,int4 *param_3,int param_4,
int4 param_5)
{
float fVar1;
float fVar3;
float fVar4;
float fVar5;
int local_44;
int4 local_30 [5];
int local_1c;
int4 *local_18;
int4 local_c;
int8 uVar2;
fVar5 = (float)((ulong)param_2 >> 0x20);
fVar4 = (float)param_2;
if (2 < param_4) {
local_1c = param_4;
local_18 = param_3;
local_c = param_5;
GetShapesTexture(local_30);
rlSetTexture(local_30[0]);
uVar2 = GetShapesTextureRectangle();
fVar3 = (float)((ulong)uVar2 >> 0x20);
fVar1 = (float)uVar2;
rlBegin(7);
rlColor4ub((int1)local_c,local_c._1_1_,local_c._2_1_,local_c._3_1_);
for (local_44 = 1; local_44 < local_1c + -1; local_44 = local_44 + 1) {
rlTexCoord2f(fVar1 / (float)texShapes._4_4_,fVar3 / (float)(int)DAT_00314148);
rlVertex2f(*local_18,local_18[1]);
rlTexCoord2f(fVar1 / (float)texShapes._4_4_,(fVar3 + fVar5) / (float)(int)DAT_00314148);
rlVertex2f(local_18[(long)local_44 * 2],local_18[(long)local_44 * 2 + 1]);
rlTexCoord2f((fVar1 + fVar4) / (float)texShapes._4_4_,
(fVar3 + fVar5) / (float)(int)DAT_00314148);
rlVertex2f(local_18[(long)(local_44 + 1) * 2],local_18[(long)(local_44 + 1) * 2 + 1]);
rlTexCoord2f((fVar1 + fVar4) / (float)texShapes._4_4_,fVar3 / (float)(int)DAT_00314148);
rlVertex2f(local_18[(long)(local_44 + 1) * 2],local_18[(long)(local_44 + 1) * 2 + 1]);
}
rlEnd();
rlSetTexture(0);
}
return;
}
| |
24,011 | DrawTriangleFan | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rshapes.c | void DrawTriangleFan(const Vector2 *points, int pointCount, Color color)
{
if (pointCount >= 3)
{
rlSetTexture(GetShapesTexture().id);
Rectangle shapeRect = GetShapesTextureRectangle();
rlBegin(RL_QUADS);
rlColor4ub(color.r, color.g, color.b, color.a);
for (int i = 1; i < pointCount - 1; i++)
{
rlTexCoord2f(shapeRect.x/texShapes.width, shapeRect.y/texShapes.height);
rlVertex2f(points[0].x, points[0].y);
rlTexCoord2f(shapeRect.x/texShapes.width, (shapeRect.y + shapeRect.height)/texShapes.height);
rlVertex2f(points[i].x, points[i].y);
rlTexCoord2f((shapeRect.x + shapeRect.width)/texShapes.width, (shapeRect.y + shapeRect.height)/texShapes.height);
rlVertex2f(points[i + 1].x, points[i + 1].y);
rlTexCoord2f((shapeRect.x + shapeRect.width)/texShapes.width, shapeRect.y/texShapes.height);
rlVertex2f(points[i + 1].x, points[i + 1].y);
}
rlEnd();
rlSetTexture(0);
}
} | O1 | c | DrawTriangleFan:
cmpl $0x3, %esi
jl 0x81017
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %edx, %ebp
movl %esi, %ebx
movq %rdi, %r14
movl %edx, %r15d
shrl $0x18, %r15d
movl %edx, %r12d
shrl $0x10, %r12d
movl %edx, %r13d
shrl $0x8, %r13d
movl 0xbba1f(%rip), %edi # 0x13c8a0
callq 0x64110
movsd 0xbba2a(%rip), %xmm0 # 0x13c8b8
movaps %xmm0, 0x10(%rsp)
movsd 0xbba25(%rip), %xmm0 # 0x13c8c0
movaps %xmm0, (%rsp)
movl $0x7, %edi
callq 0x622e0
movl $0xff, %eax
andl %eax, %ebp
andl %eax, %r13d
andl %eax, %r12d
movl %ebp, %edi
movl %r13d, %esi
movl %r12d, %edx
movl %r15d, %ecx
callq 0x64079
decl %ebx
movaps 0x10(%rsp), %xmm1
movaps %xmm1, %xmm0
shufps $0x55, %xmm1, %xmm0 # xmm0 = xmm0[1,1],xmm1[1,1]
movaps %xmm0, 0x30(%rsp)
movaps (%rsp), %xmm0
addps %xmm1, %xmm0
movaps %xmm0, (%rsp)
shufps $0x55, %xmm0, %xmm0 # xmm0 = xmm0[1,1,1,1]
movaps %xmm0, 0x20(%rsp)
movl $0x1, %r15d
xorps %xmm1, %xmm1
cvtsi2ssl 0xbb9a6(%rip), %xmm1 # 0x13c8a4
xorps %xmm2, %xmm2
cvtsi2ssl 0xbb99f(%rip), %xmm2 # 0x13c8a8
movaps 0x10(%rsp), %xmm0
divss %xmm1, %xmm0
movaps 0x30(%rsp), %xmm1
divss %xmm2, %xmm1
callq 0x63f2f
movss (%r14), %xmm0
movss 0x4(%r14), %xmm1
callq 0x63f05
xorps %xmm1, %xmm1
cvtsi2ssl 0xbb969(%rip), %xmm1 # 0x13c8a4
xorps %xmm2, %xmm2
cvtsi2ssl 0xbb962(%rip), %xmm2 # 0x13c8a8
movaps 0x10(%rsp), %xmm0
divss %xmm1, %xmm0
movaps 0x20(%rsp), %xmm1
divss %xmm2, %xmm1
callq 0x63f2f
movss (%r14,%r15,8), %xmm0
movss 0x4(%r14,%r15,8), %xmm1
callq 0x63f05
xorps %xmm1, %xmm1
cvtsi2ssl 0xbb92a(%rip), %xmm1 # 0x13c8a4
xorps %xmm2, %xmm2
cvtsi2ssl 0xbb923(%rip), %xmm2 # 0x13c8a8
movaps (%rsp), %xmm0
divss %xmm1, %xmm0
movaps 0x20(%rsp), %xmm1
divss %xmm2, %xmm1
callq 0x63f2f
leaq 0x1(%r15), %r12
movss 0x8(%r14,%r15,8), %xmm0
movss 0xc(%r14,%r15,8), %xmm1
callq 0x63f05
xorps %xmm1, %xmm1
cvtsi2ssl 0xbb8e7(%rip), %xmm1 # 0x13c8a4
xorps %xmm2, %xmm2
cvtsi2ssl 0xbb8e0(%rip), %xmm2 # 0x13c8a8
movaps (%rsp), %xmm0
divss %xmm1, %xmm0
movaps 0x30(%rsp), %xmm1
divss %xmm2, %xmm1
callq 0x63f2f
movss 0x8(%r14,%r15,8), %xmm0
movss 0xc(%r14,%r15,8), %xmm1
callq 0x63f05
movq %r12, %r15
cmpq %r12, %rbx
jne 0x80ef3
callq 0x63b64
xorl %edi, %edi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x64110
retq
| DrawTriangleFan:
cmp esi, 3
jl locret_81017
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov ebp, edx
mov ebx, esi
mov r14, rdi
mov r15d, edx
shr r15d, 18h
mov r12d, edx
shr r12d, 10h
mov r13d, edx
shr r13d, 8
mov edi, dword ptr cs:texShapes
call rlSetTexture
movsd xmm0, qword ptr cs:texShapesRec
movaps [rsp+78h+var_68], xmm0
movsd xmm0, qword ptr cs:texShapesRec+8
movaps [rsp+78h+var_78], xmm0
mov edi, 7
call rlBegin
mov eax, 0FFh
and ebp, eax
and r13d, eax
and r12d, eax
mov edi, ebp
mov esi, r13d
mov edx, r12d
mov ecx, r15d
call rlColor4ub
dec ebx
movaps xmm1, [rsp+78h+var_68]
movaps xmm0, xmm1
shufps xmm0, xmm1, 55h ; 'U'
movaps [rsp+78h+var_48], xmm0
movaps xmm0, [rsp+78h+var_78]
addps xmm0, xmm1
movaps [rsp+78h+var_78], xmm0
shufps xmm0, xmm0, 55h ; 'U'
movaps [rsp+78h+var_58], xmm0
mov r15d, 1
loc_80EF3:
xorps xmm1, xmm1
cvtsi2ss xmm1, dword ptr cs:texShapes+4
xorps xmm2, xmm2
cvtsi2ss xmm2, dword ptr cs:texShapes+8
movaps xmm0, [rsp+78h+var_68]
divss xmm0, xmm1
movaps xmm1, [rsp+78h+var_48]
divss xmm1, xmm2
call rlTexCoord2f
movss xmm0, dword ptr [r14]
movss xmm1, dword ptr [r14+4]
call rlVertex2f
xorps xmm1, xmm1
cvtsi2ss xmm1, dword ptr cs:texShapes+4
xorps xmm2, xmm2
cvtsi2ss xmm2, dword ptr cs:texShapes+8
movaps xmm0, [rsp+78h+var_68]
divss xmm0, xmm1
movaps xmm1, [rsp+78h+var_58]
divss xmm1, xmm2
call rlTexCoord2f
movss xmm0, dword ptr [r14+r15*8]
movss xmm1, dword ptr [r14+r15*8+4]
call rlVertex2f
xorps xmm1, xmm1
cvtsi2ss xmm1, dword ptr cs:texShapes+4
xorps xmm2, xmm2
cvtsi2ss xmm2, dword ptr cs:texShapes+8
movaps xmm0, [rsp+78h+var_78]
divss xmm0, xmm1
movaps xmm1, [rsp+78h+var_58]
divss xmm1, xmm2
call rlTexCoord2f
lea r12, [r15+1]
movss xmm0, dword ptr [r14+r15*8+8]
movss xmm1, dword ptr [r14+r15*8+0Ch]
call rlVertex2f
xorps xmm1, xmm1
cvtsi2ss xmm1, dword ptr cs:texShapes+4
xorps xmm2, xmm2
cvtsi2ss xmm2, dword ptr cs:texShapes+8
movaps xmm0, [rsp+78h+var_78]
divss xmm0, xmm1
movaps xmm1, [rsp+78h+var_48]
divss xmm1, xmm2
call rlTexCoord2f
movss xmm0, dword ptr [r14+r15*8+8]
movss xmm1, dword ptr [r14+r15*8+0Ch]
call rlVertex2f
mov r15, r12
cmp rbx, r12
jnz loc_80EF3
call rlEnd
xor edi, edi
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp rlSetTexture
locret_81017:
retn
| long long DrawTriangleFan(float *a1, long long a2, unsigned int a3)
{
char v3; // bp
unsigned int v4; // r15d
unsigned int v5; // r12d
unsigned int v6; // r13d
long long v7; // r15
double v8; // xmm0_8
double v9; // xmm1_8
long long result; // rax
__m128 v11; // [rsp+0h] [rbp-78h]
__m128 v12; // [rsp+0h] [rbp-78h]
__m128 v13; // [rsp+10h] [rbp-68h]
float v14; // [rsp+20h] [rbp-58h]
float v15; // [rsp+30h] [rbp-48h]
if ( (int)a2 >= 3 )
{
v3 = a3;
v4 = HIBYTE(a3);
v5 = HIWORD(a3);
v6 = a3 >> 8;
rlSetTexture(texShapes, a2);
v13 = (__m128)(unsigned long long)texShapesRec;
v11 = (__m128)*((unsigned long long *)&texShapesRec + 1);
rlBegin(7);
rlColor4ub(v3, v6, v5, v4);
LODWORD(v15) = _mm_shuffle_ps(v13, v13, 85).m128_u32[0];
v12 = _mm_add_ps(v11, v13);
LODWORD(v14) = _mm_shuffle_ps(v12, v12, 85).m128_u32[0];
v7 = 1LL;
do
{
rlTexCoord2f(v13.m128_f32[0] / (float)SDWORD1(texShapes), v15 / (float)SDWORD2(texShapes));
rlVertex2f(*a1, a1[1]);
rlTexCoord2f(v13.m128_f32[0] / (float)SDWORD1(texShapes), v14 / (float)SDWORD2(texShapes));
rlVertex2f(a1[2 * v7], a1[2 * v7 + 1]);
rlTexCoord2f(v12.m128_f32[0] / (float)SDWORD1(texShapes), v14 / (float)SDWORD2(texShapes));
rlVertex2f(a1[2 * v7 + 2], a1[2 * v7 + 3]);
rlTexCoord2f(v12.m128_f32[0] / (float)SDWORD1(texShapes), v15 / (float)SDWORD2(texShapes));
*(_QWORD *)&v8 = LODWORD(a1[2 * v7 + 2]);
*(_QWORD *)&v9 = LODWORD(a1[2 * v7 + 3]);
rlVertex2f(*(float *)&v8, *(float *)&v9);
++v7;
}
while ( (_DWORD)a2 - 1 != v7 );
rlEnd(v8, v9);
return rlSetTexture(0, (unsigned __int8)v6);
}
return result;
}
| DrawTriangleFan:
CMP ESI,0x3
JL 0x00181017
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV EBP,EDX
MOV EBX,ESI
MOV R14,RDI
MOV R15D,EDX
SHR R15D,0x18
MOV R12D,EDX
SHR R12D,0x10
MOV R13D,EDX
SHR R13D,0x8
MOV EDI,dword ptr [0x0023c8a0]
CALL 0x00164110
MOVSD XMM0,qword ptr [0x0023c8b8]
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOVSD XMM0,qword ptr [0x0023c8c0]
MOVAPS xmmword ptr [RSP],XMM0
MOV EDI,0x7
CALL 0x001622e0
MOV EAX,0xff
AND EBP,EAX
AND R13D,EAX
AND R12D,EAX
MOV EDI,EBP
MOV ESI,R13D
MOV EDX,R12D
MOV ECX,R15D
CALL 0x00164079
DEC EBX
MOVAPS XMM1,xmmword ptr [RSP + 0x10]
MOVAPS XMM0,XMM1
SHUFPS XMM0,XMM1,0x55
MOVAPS xmmword ptr [RSP + 0x30],XMM0
MOVAPS XMM0,xmmword ptr [RSP]
ADDPS XMM0,XMM1
MOVAPS xmmword ptr [RSP],XMM0
SHUFPS XMM0,XMM0,0x55
MOVAPS xmmword ptr [RSP + 0x20],XMM0
MOV R15D,0x1
LAB_00180ef3:
XORPS XMM1,XMM1
CVTSI2SS XMM1,dword ptr [0x0023c8a4]
XORPS XMM2,XMM2
CVTSI2SS XMM2,dword ptr [0x0023c8a8]
MOVAPS XMM0,xmmword ptr [RSP + 0x10]
DIVSS XMM0,XMM1
MOVAPS XMM1,xmmword ptr [RSP + 0x30]
DIVSS XMM1,XMM2
CALL 0x00163f2f
MOVSS XMM0,dword ptr [R14]
MOVSS XMM1,dword ptr [R14 + 0x4]
CALL 0x00163f05
XORPS XMM1,XMM1
CVTSI2SS XMM1,dword ptr [0x0023c8a4]
XORPS XMM2,XMM2
CVTSI2SS XMM2,dword ptr [0x0023c8a8]
MOVAPS XMM0,xmmword ptr [RSP + 0x10]
DIVSS XMM0,XMM1
MOVAPS XMM1,xmmword ptr [RSP + 0x20]
DIVSS XMM1,XMM2
CALL 0x00163f2f
MOVSS XMM0,dword ptr [R14 + R15*0x8]
MOVSS XMM1,dword ptr [R14 + R15*0x8 + 0x4]
CALL 0x00163f05
XORPS XMM1,XMM1
CVTSI2SS XMM1,dword ptr [0x0023c8a4]
XORPS XMM2,XMM2
CVTSI2SS XMM2,dword ptr [0x0023c8a8]
MOVAPS XMM0,xmmword ptr [RSP]
DIVSS XMM0,XMM1
MOVAPS XMM1,xmmword ptr [RSP + 0x20]
DIVSS XMM1,XMM2
CALL 0x00163f2f
LEA R12,[R15 + 0x1]
MOVSS XMM0,dword ptr [R14 + R15*0x8 + 0x8]
MOVSS XMM1,dword ptr [R14 + R15*0x8 + 0xc]
CALL 0x00163f05
XORPS XMM1,XMM1
CVTSI2SS XMM1,dword ptr [0x0023c8a4]
XORPS XMM2,XMM2
CVTSI2SS XMM2,dword ptr [0x0023c8a8]
MOVAPS XMM0,xmmword ptr [RSP]
DIVSS XMM0,XMM1
MOVAPS XMM1,xmmword ptr [RSP + 0x30]
DIVSS XMM1,XMM2
CALL 0x00163f2f
MOVSS XMM0,dword ptr [R14 + R15*0x8 + 0x8]
MOVSS XMM1,dword ptr [R14 + R15*0x8 + 0xc]
CALL 0x00163f05
MOV R15,R12
CMP RBX,R12
JNZ 0x00180ef3
CALL 0x00163b64
XOR EDI,EDI
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00164110
LAB_00181017:
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void DrawTriangleFan(int4 *param_1,int param_2,ulong param_3)
{
ulong uVar1;
int8 uVar2;
int8 uVar3;
ulong uVar4;
float local_78;
float fStack_74;
float local_68;
float fStack_64;
if (2 < param_2) {
rlSetTexture(texShapes);
uVar3 = DAT_0023c8c0;
uVar2 = texShapesRec;
rlBegin(7);
rlColor4ub((uint)param_3 & 0xff,(uint)(param_3 >> 8) & 0xff,(uint)(param_3 >> 0x10) & 0xff,
param_3 >> 0x18 & 0xff);
local_68 = (float)uVar2;
fStack_64 = (float)((ulong)uVar2 >> 0x20);
local_78 = (float)uVar3;
fStack_74 = (float)((ulong)uVar3 >> 0x20);
uVar4 = 1;
do {
rlTexCoord2f(local_68 / (float)_DAT_0023c8a4,fStack_64 / (float)_DAT_0023c8a8);
rlVertex2f(*param_1,param_1[1]);
rlTexCoord2f(local_68 / (float)_DAT_0023c8a4,(fStack_74 + fStack_64) / (float)_DAT_0023c8a8);
rlVertex2f(param_1[uVar4 * 2],param_1[uVar4 * 2 + 1]);
rlTexCoord2f((local_78 + local_68) / (float)_DAT_0023c8a4,
(fStack_74 + fStack_64) / (float)_DAT_0023c8a8);
uVar1 = uVar4 + 1;
rlVertex2f(param_1[uVar4 * 2 + 2],param_1[uVar4 * 2 + 3]);
rlTexCoord2f((local_78 + local_68) / (float)_DAT_0023c8a4,fStack_64 / (float)_DAT_0023c8a8);
rlVertex2f(param_1[uVar4 * 2 + 2],param_1[uVar4 * 2 + 3]);
uVar4 = uVar1;
} while (param_2 - 1 != uVar1);
rlEnd();
rlSetTexture(0);
return;
}
return;
}
| |
24,012 | 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 0x816ba(%rip), %xmm0 # 0xde5e8
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 0x5cff5
movq -0x30(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
cmpq -0x48(%rbp), %rax
jae 0x5cfe2
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rsi
movl -0x24(%rbp), %edx
callq 0x5d260
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 0x5cfd2
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 0x5cfd4
movq -0x40(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x40(%rbp)
jmp 0x5cf6f
jmp 0x5cfe4
movq -0x30(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x30(%rbp)
jmp 0x5cf55
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| pick_seeds:
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_DE5E8
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_5CF55:
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jnb loc_5CFF5
mov rax, [rbp+var_30]
add rax, 20h ; ' '
mov [rbp+var_40], rax
loc_5CF6F:
mov rax, [rbp+var_40]
cmp rax, [rbp+var_48]
jnb short loc_5CFE2
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
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_5CFD2
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_5CFD2:
jmp short $+2
loc_5CFD4:
mov rax, [rbp+var_40]
add rax, 20h ; ' '
mov [rbp+var_40], rax
jmp short loc_5CF6F
loc_5CFE2:
jmp short $+2
loc_5CFE4:
mov rax, [rbp+var_30]
add rax, 20h ; ' '
mov [rbp+var_30], rax
jmp loc_5CF55
loc_5CFF5:
add rsp, 60h
pop rbp
retn
| unsigned long long pick_seeds(
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(*(_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 [0x001de5e8]
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_0015cf55:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x0015cff5
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x20
MOV qword ptr [RBP + -0x40],RAX
LAB_0015cf6f:
MOV RAX,qword ptr [RBP + -0x40]
CMP RAX,qword ptr [RBP + -0x48]
JNC 0x0015cfe2
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 0x0015d260
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 0x0015cfd2
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_0015cfd2:
JMP 0x0015cfd4
LAB_0015cfd4:
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,0x20
MOV qword ptr [RBP + -0x40],RAX
JMP 0x0015cf6f
LAB_0015cfe2:
JMP 0x0015cfe4
LAB_0015cfe4:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x20
MOV qword ptr [RBP + -0x30],RAX
JMP 0x0015cf55
LAB_0015cff5:
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_001de5e8;
*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;
}
| |
24,013 | nlohmann::json_abi_v3_11_3::detail::serializer<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>>::decode(unsigned char&, unsigned int&, unsigned char) | monkey531[P]llama/common/./json.hpp | static std::uint8_t decode(std::uint8_t& state, std::uint32_t& codep, const std::uint8_t byte) noexcept
{
static const std::array<std::uint8_t, 400> utf8d =
{
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 00..1F
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 20..3F
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 40..5F
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 60..7F
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, // 80..9F
7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // A0..BF
8, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, // C0..DF
0xA, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x4, 0x3, 0x3, // E0..EF
0xB, 0x6, 0x6, 0x6, 0x5, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, // F0..FF
0x0, 0x1, 0x2, 0x3, 0x5, 0x8, 0x7, 0x1, 0x1, 0x1, 0x4, 0x6, 0x1, 0x1, 0x1, 0x1, // s0..s0
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, // s1..s2
1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, // s3..s4
1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, // s5..s6
1, 3, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 // s7..s8
}
};
JSON_ASSERT(byte < utf8d.size());
const std::uint8_t type = utf8d[byte];
codep = (state != UTF8_ACCEPT)
? (byte & 0x3fu) | (codep << 6u)
: (0xFFu >> type) & (byte);
const std::size_t index = 256u + static_cast<size_t>(state) * 16u + static_cast<size_t>(type);
JSON_ASSERT(index < utf8d.size());
state = utf8d[index];
return state;
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::serializer<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>>::decode(unsigned char&, unsigned int&, unsigned char):
movl %edx, %ecx
leaq 0x581df(%rip), %rax # 0xbf192
movzbl (%rcx,%rax), %ecx
cmpb $0x0, (%rdi)
je 0x66fcd
andb $0x3f, %dl
movzbl %dl, %r8d
movl (%rsi), %edx
shll $0x6, %edx
orl %r8d, %edx
jmp 0x66fdc
movl $0xff, %r8d
shrl %cl, %r8d
movzbl %dl, %edx
andl %r8d, %edx
movl %edx, (%rsi)
movzbl (%rdi), %edx
shll $0x4, %edx
movl %ecx, %ecx
addq %rdx, %rcx
addq $0x100, %rcx # imm = 0x100
cmpq $0x190, %rcx # imm = 0x190
jae 0x66fff
movb (%rcx,%rax), %al
movb %al, (%rdi)
retq
pushq %rax
leaq 0x54dd0(%rip), %rdi # 0xbbdd7
leaq 0x4fc98(%rip), %rsi # 0xb6ca6
leaq 0x54ce9(%rip), %rcx # 0xbbcfe
movl $0x49fb, %edx # imm = 0x49FB
callq 0x18470
| _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE6decodeERhRjh:
mov ecx, edx
lea rax, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE6decodeERhRjhE5utf8d; nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::decode(uchar &,uint &,uchar)::utf8d
movzx ecx, byte ptr [rcx+rax]
cmp byte ptr [rdi], 0
jz short loc_66FCD
and dl, 3Fh
movzx r8d, dl
mov edx, [rsi]
shl edx, 6
or edx, r8d
jmp short loc_66FDC
loc_66FCD:
mov r8d, 0FFh
shr r8d, cl
movzx edx, dl
and edx, r8d
loc_66FDC:
mov [rsi], edx
movzx edx, byte ptr [rdi]
shl edx, 4
mov ecx, ecx
add rcx, rdx
add rcx, 100h
cmp rcx, 190h
jnb short loc_66FFF
mov al, [rcx+rax]
mov [rdi], al
retn
loc_66FFF:
push rax
lea rdi, aIndexUtf8dSize; "index < utf8d.size()"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aStaticStdUint8; "static std::uint8_t nlohmann::detail::s"...
mov edx, 49FBh
call ___assert_fail
| unsigned __int8 nlohmann::json_abi_v3_11_3::detail::serializer<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>>::decode(
unsigned __int8 *a1,
unsigned int *a2,
int a3)
{
unsigned int v3; // ecx
unsigned int v4; // edx
unsigned long long v5; // rcx
unsigned __int8 result; // al
v3 = nlohmann::json_abi_v3_11_3::detail::serializer<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>>::decode(unsigned char &,unsigned int &,unsigned char)::utf8d[a3];
if ( *a1 )
v4 = a3 & 0x3F | (*a2 << 6);
else
v4 = (0xFFu >> v3) & (unsigned __int8)a3;
*a2 = v4;
v5 = 16 * (unsigned int)*a1 + (unsigned long long)v3 + 256;
if ( v5 >= 0x190 )
__assert_fail(
"index < utf8d.size()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
"__gmon_start__",
"static std::uint8_t nlohmann::detail::serializer<nlohmann::basic_json<nlohmann::ordered_map>>::decode(std::uint8_t"
" &, std::uint32_t &, const std::uint8_t) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>]");
result = nlohmann::json_abi_v3_11_3::detail::serializer<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>>::decode(unsigned char &,unsigned int &,unsigned char)::utf8d[v5];
*a1 = result;
return result;
}
| decode:
MOV ECX,EDX
LEA RAX,[0x1bf192]
MOVZX ECX,byte ptr [RCX + RAX*0x1]
CMP byte ptr [RDI],0x0
JZ 0x00166fcd
AND DL,0x3f
MOVZX R8D,DL
MOV EDX,dword ptr [RSI]
SHL EDX,0x6
OR EDX,R8D
JMP 0x00166fdc
LAB_00166fcd:
MOV R8D,0xff
SHR R8D,CL
MOVZX EDX,DL
AND EDX,R8D
LAB_00166fdc:
MOV dword ptr [RSI],EDX
MOVZX EDX,byte ptr [RDI]
SHL EDX,0x4
MOV ECX,ECX
ADD RCX,RDX
ADD RCX,0x100
CMP RCX,0x190
JNC 0x00166fff
MOV AL,byte ptr [RCX + RAX*0x1]
MOV byte ptr [RDI],AL
RET
LAB_00166fff:
PUSH RAX
LEA RDI,[0x1bbdd7]
LEA RSI,[0x1b6ca6]
LEA RCX,[0x1bbcfe]
MOV EDX,0x49fb
CALL 0x00118470
|
/* nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::decode(unsigned char&, unsigned int&, unsigned char) */
void nlohmann::json_abi_v3_11_3::detail::
serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::decode(uchar *param_1,uint *param_2,uchar param_3)
{
byte bVar1;
long lVar2;
uint uVar3;
int7 in_register_00000011;
bVar1 = decode(unsigned_char&,unsigned_int&,unsigned_char)::utf8d
[CONCAT71(in_register_00000011,param_3) & 0xffffffff];
if (*param_1 == '\0') {
uVar3 = (uint)param_3 & 0xffU >> (bVar1 & 0x1f);
}
else {
uVar3 = *param_2 << 6 | (uint)(param_3 & 0x3f);
}
*param_2 = uVar3;
lVar2 = (ulong)bVar1 + (ulong)*param_1 * 0x10;
if (lVar2 + 0x100U < 400) {
*param_1 = decode(unsigned_char&,unsigned_int&,unsigned_char)::utf8d[lVar2 + 0x100];
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("index < utf8d.size()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",0x49fb
,
"static std::uint8_t nlohmann::detail::serializer<nlohmann::basic_json<nlohmann::ordered_map>>::decode(std::uint8_t &, std::uint32_t &, const std::uint8_t) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>]"
);
}
| |
24,014 | decltype(auto) coro::sync_wait<coro::detail::when_all_ready_awaitable<std::vector<coro::detail::when_all_task<void>, std::allocator<coro::detail::when_all_task<void>>>>, std::vector<coro::detail::when_all_task<void>, std::allocator<coro::detail::when_all_task<void>>>&&>(coro::detail::when_all_ready_awaitable<std::vector<coro::detail::when_all_task<void>, std::allocator<coro::detail::when_all_task<void>>>>&&) | AlayaLite/build_O3/_deps/libcoro-src/include/coro/sync_wait.hpp | auto sync_wait(awaitable_type&& a) -> decltype(auto)
{
detail::sync_wait_event e{};
auto task = detail::make_sync_wait_task(std::forward<awaitable_type>(a));
task.promise().start(e);
e.wait();
if constexpr (std::is_void_v<return_type>)
{
task.promise().result();
return;
}
else if constexpr (std::is_reference_v<return_type>)
{
return task.promise().result();
}
else if constexpr (std::is_move_assignable_v<return_type>)
{
// issue-242
// For non-trivial types (or possibly types that don't fit in a register)
// the compiler will end up calling the ~return_type() when the promise
// is destructed at the end of sync_wait(). This causes the return_type
// object to also be destructed causing the final return/move from
// sync_wait() to be a 'use after free' bug. To work around this the result
// must be moved off the promise object before the promise is destructed.
// Other solutions could be heap allocating the return_type but that has
// other downsides, for now it is determined that a double move is an
// acceptable solution to work around this bug.
auto result = std::move(task).promise().result();
return result;
}
else
{
return task.promise().result();
}
} | O3 | cpp | decltype(auto) coro::sync_wait<coro::detail::when_all_ready_awaitable<std::vector<coro::detail::when_all_task<void>, std::allocator<coro::detail::when_all_task<void>>>>, std::vector<coro::detail::when_all_task<void>, std::allocator<coro::detail::when_all_task<void>>>&&>(coro::detail::when_all_ready_awaitable<std::vector<coro::detail::when_all_task<void>, std::allocator<coro::detail::when_all_task<void>>>>&&):
pushq %r15
pushq %r14
pushq %rbx
subq $0xb0, %rsp
movq %rdi, %r14
movq %rsp, %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x5428
leaq -0x172(%rip), %rax # 0x42d9
leaq 0x70(%rsp), %rbx
movq %rax, -0x10(%rbx)
leaq -0xb2(%rip), %rax # 0x43a9
movq %rax, -0x8(%rbx)
movq %r14, 0x30(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movq $0x0, 0x18(%rbx)
movb $0x0, 0x38(%rbx)
movq %r15, (%rbx)
leaq 0x60(%rsp), %rdi
callq 0x42d9
movq %rsp, %rdi
callq 0x54ac
movq %rbx, %rdi
callq 0x4d16
movq %rax, %r14
movq %rbx, %rdi
callq 0x4e0e
leaq 0x28(%rsp), %rdi
callq 0x3460
movq %r14, %rax
addq $0xb0, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x4e0e
leaq 0x28(%rsp), %rdi
callq 0x3460
movq %r14, %rdi
callq 0x3430
| _ZN4coro9sync_waitITkNS_8concepts9awaitableENS_6detail24when_all_ready_awaitableISt6vectorINS2_13when_all_taskIvEESaIS6_EEEEOS8_EEDcOT_:
push r15
push r14
push rbx
sub rsp, 0B0h
mov r14, rdi
mov r15, rsp
mov rdi, r15; this
xor esi, esi; bool
call _ZN4coro6detail15sync_wait_eventC2Eb; coro::detail::sync_wait_event::sync_wait_event(bool)
lea rax, _ZN4coro6detailL19make_sync_wait_taskITkNS_8concepts9awaitableENS0_24when_all_ready_awaitableISt6vectorINS0_13when_all_taskIvEESaIS6_EEEEOS8_EENS0_14sync_wait_taskIT0_EEOT__resume
lea rbx, [rsp+0C8h+var_58]
mov [rbx-10h], rax
lea rax, _ZN4coro6detailL19make_sync_wait_taskITkNS_8concepts9awaitableENS0_24when_all_ready_awaitableISt6vectorINS0_13when_all_taskIvEESaIS6_EEEEOS8_EENS0_14sync_wait_taskIT0_EEOT__cleanup
mov [rbx-8], rax
mov [rbx+30h], r14
xorps xmm0, xmm0
movups xmmword ptr [rbx+8], xmm0
mov qword ptr [rbx+18h], 0
mov byte ptr [rbx+38h], 0
mov [rbx], r15
lea rdi, [rsp+0C8h+var_68]
call _ZN4coro6detailL19make_sync_wait_taskITkNS_8concepts9awaitableENS0_24when_all_ready_awaitableISt6vectorINS0_13when_all_taskIvEESaIS6_EEEEOS8_EENS0_14sync_wait_taskIT0_EEOT__resume
mov rdi, rsp; this
call _ZN4coro6detail15sync_wait_event4waitEv; coro::detail::sync_wait_event::wait(void)
mov rdi, rbx
call _ZNR4coro6detail22sync_wait_task_promiseIOSt6vectorINS0_13when_all_taskIvEESaIS4_EEE6resultEv; coro::detail::sync_wait_task_promise<std::vector<coro::detail::when_all_task<void>> &&>::result(void)
mov r14, rax
mov rdi, rbx
call _ZN4coro6detail22sync_wait_task_promiseIOSt6vectorINS0_13when_all_taskIvEESaIS4_EEED2Ev; coro::detail::sync_wait_task_promise<std::vector<coro::detail::when_all_task<void>> &&>::~sync_wait_task_promise()
lea rdi, [rsp+0C8h+var_A0]; this
call __ZNSt18condition_variableD1Ev; std::condition_variable::~condition_variable()
mov rax, r14
add rsp, 0B0h
pop rbx
pop r14
pop r15
retn
mov r14, rax
mov rdi, rbx
call _ZN4coro6detail22sync_wait_task_promiseIOSt6vectorINS0_13when_all_taskIvEESaIS4_EEED2Ev; coro::detail::sync_wait_task_promise<std::vector<coro::detail::when_all_task<void>> &&>::~sync_wait_task_promise()
lea rdi, [rsp+arg_20]; this
call __ZNSt18condition_variableD1Ev; std::condition_variable::~condition_variable()
mov rdi, r14
call __Unwind_Resume
| long long ZN4coro9sync_waitITkNS_8concepts9awaitableENS_6detail24when_all_ready_awaitableISt6vectorINS2_13when_all_taskIvEESaIS6_EEEEOS8_EEDcOT_(
long long a1)
{
long long v1; // r14
_BYTE v3[40]; // [rsp+0h] [rbp-C8h] BYREF
_BYTE v4[56]; // [rsp+28h] [rbp-A0h] BYREF
_QWORD v5[2]; // [rsp+60h] [rbp-68h] BYREF
_BYTE *v6; // [rsp+70h] [rbp-58h] BYREF
__int128 v7; // [rsp+78h] [rbp-50h]
long long v8; // [rsp+88h] [rbp-40h]
long long v9; // [rsp+A0h] [rbp-28h]
char v10; // [rsp+A8h] [rbp-20h]
coro::detail::sync_wait_event::sync_wait_event((coro::detail::sync_wait_event *)v3, 0);
v5[0] = ZN4coro6detailL19make_sync_wait_taskITkNS_8concepts9awaitableENS0_24when_all_ready_awaitableISt6vectorINS0_13when_all_taskIvEESaIS6_EEEEOS8_EENS0_14sync_wait_taskIT0_EEOT__resume;
v5[1] = ZN4coro6detailL19make_sync_wait_taskITkNS_8concepts9awaitableENS0_24when_all_ready_awaitableISt6vectorINS0_13when_all_taskIvEESaIS6_EEEEOS8_EENS0_14sync_wait_taskIT0_EEOT__cleanup;
v9 = a1;
v7 = 0LL;
v8 = 0LL;
v10 = 0;
v6 = v3;
ZN4coro6detailL19make_sync_wait_taskITkNS_8concepts9awaitableENS0_24when_all_ready_awaitableISt6vectorINS0_13when_all_taskIvEESaIS6_EEEEOS8_EENS0_14sync_wait_taskIT0_EEOT__resume((long long)v5);
coro::detail::sync_wait_event::wait((coro::detail::sync_wait_event *)v3);
v1 = coro::detail::sync_wait_task_promise<std::vector<coro::detail::when_all_task<void>> &&>::result(&v6);
coro::detail::sync_wait_task_promise<std::vector<coro::detail::when_all_task<void>> &&>::~sync_wait_task_promise(&v6);
std::condition_variable::~condition_variable((std::condition_variable *)v4);
return v1;
}
| _ZN4coro9sync_waitITkNS_8concepts9awaitableENS_6detail24when_all_ready_awaitableISt6vectorINS2_13when_all_taskIvEESaIS6_EEEEOS8_EEDcOT_:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0xb0
MOV R14,RDI
MOV R15,RSP
MOV RDI,R15
XOR ESI,ESI
CALL 0x00105428
LEA RAX,[0x1042d9]
LEA RBX,[RSP + 0x70]
MOV qword ptr [RBX + -0x10],RAX
LEA RAX,[0x1043a9]
MOV qword ptr [RBX + -0x8],RAX
MOV qword ptr [RBX + 0x30],R14
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x8],XMM0
MOV qword ptr [RBX + 0x18],0x0
MOV byte ptr [RBX + 0x38],0x0
MOV qword ptr [RBX],R15
LAB_00104479:
LEA RDI,[RSP + 0x60]
CALL 0x001042d9
MOV RDI,RSP
CALL 0x001054ac
MOV RDI,RBX
CALL 0x00104d16
LAB_00104493:
MOV R14,RAX
MOV RDI,RBX
CALL 0x00104e0e
LEA RDI,[RSP + 0x28]
CALL 0x00103460
MOV RAX,R14
ADD RSP,0xb0
POP RBX
POP R14
POP R15
RET
|
int8
_ZN4coro9sync_waitITkNS_8concepts9awaitableENS_6detail24when_all_ready_awaitableISt6vectorINS2_13when_all_taskIvEESaIS6_EEEEOS8_EEDcOT_
(int8 param_1)
{
int8 uVar1;
sync_wait_event asStack_c8 [40];
condition_variable local_a0 [56];
code *local_68;
code *local_60;
int1 *local_58;
int8 local_50;
int8 uStack_48;
int8 local_40;
int8 local_28;
int1 local_20;
coro::detail::sync_wait_event::sync_wait_event(asStack_c8,false);
local_68 =
_ZN4coro6detailL19make_sync_wait_taskITkNS_8concepts9awaitableENS0_24when_all_ready_awaitableISt6vectorINS0_13when_all_taskIvEESaIS6_EEEEOS8_EENS0_14sync_wait_taskIT0_EEOT__resume
;
local_60 =
_ZN4coro6detailL19make_sync_wait_taskITkNS_8concepts9awaitableENS0_24when_all_ready_awaitableISt6vectorINS0_13when_all_taskIvEESaIS6_EEEEOS8_EENS0_14sync_wait_taskIT0_EEOT__cleanup
;
local_50 = 0;
uStack_48 = 0;
local_40 = 0;
local_20 = 0;
/* try { // try from 00104479 to 00104492 has its CatchHandler @ 001044b8 */
local_58 = asStack_c8;
local_28 = param_1;
_ZN4coro6detailL19make_sync_wait_taskITkNS_8concepts9awaitableENS0_24when_all_ready_awaitableISt6vectorINS0_13when_all_taskIvEESaIS6_EEEEOS8_EENS0_14sync_wait_taskIT0_EEOT__resume
(&local_68);
coro::detail::sync_wait_event::wait(asStack_c8);
uVar1 = coro::detail::
sync_wait_task_promise<std::vector<coro::detail::when_all_task<void>,std::allocator<coro::detail::when_all_task<void>>>&&>
::result((sync_wait_task_promise<std::vector<coro::detail::when_all_task<void>,std::allocator<coro::detail::when_all_task<void>>>&&>
*)&local_58);
coro::detail::
sync_wait_task_promise<std::vector<coro::detail::when_all_task<void>,std::allocator<coro::detail::when_all_task<void>>>&&>
::~sync_wait_task_promise
((sync_wait_task_promise<std::vector<coro::detail::when_all_task<void>,std::allocator<coro::detail::when_all_task<void>>>&&>
*)&local_58);
std::condition_variable::~condition_variable(local_a0);
return uVar1;
}
| |
24,015 | 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) | hkr04[P]cpp-mcp/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_)
{} | O0 | 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):
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x30(%rsp), %rax
movq %rax, (%rsp)
movups (%rsi), %xmm0
movups 0x10(%rsi), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
movq 0x20(%rsp), %rcx
movq %rcx, 0x20(%rax)
movq $0x0, 0x28(%rax)
addq $0x30, %rax
movq %rax, 0x8(%rsp)
leaq 0x1f(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x6980
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rdx
leaq 0x219c1(%rip), %rsi # 0x4e1d5
callq 0x80f0
jmp 0x2c81b
leaq 0x1f(%rsp), %rdi
callq 0x6640
movq (%rsp), %rdi
addq $0x50, %rdi
callq 0x67c0
addq $0x38, %rsp
retq
movq %rax, %rdi
callq 0x92b0
nop
| _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEC2ESH_m:
sub rsp, 38h
mov [rsp+38h+var_8], rdi
mov [rsp+38h+var_10], rsi
mov [rsp+38h+var_18], rdx
mov rax, [rsp+38h+var_8]
mov [rsp+38h+var_38], rax
movups xmm0, xmmword ptr [rsi]
movups xmm1, xmmword ptr [rsi+10h]
movups xmmword ptr [rax+10h], xmm1
movups xmmword ptr [rax], xmm0
mov rcx, [rsp+38h+var_18]
mov [rax+20h], rcx
mov qword ptr [rax+28h], 0
add rax, 30h ; '0'
mov [rsp+38h+var_30], rax
lea rdi, [rsp+38h+var_19]
mov [rsp+38h+var_28], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rsp+38h+var_30]
mov rdx, [rsp+38h+var_28]
lea rsi, a100+4; "0"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_2C81B:
lea rdi, [rsp+38h+var_19]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
mov rdi, [rsp+38h+var_38]
add rdi, 50h ; 'P'
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void)
add rsp, 38h
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,
_OWORD *a2,
long long a3)
{
__int128 v3; // xmm0
char v5; // [rsp+1Fh] [rbp-19h] BYREF
long long v6; // [rsp+20h] [rbp-18h]
_OWORD *v7; // [rsp+28h] [rbp-10h]
long long v8; // [rsp+30h] [rbp-8h]
v8 = a1;
v7 = a2;
v6 = a3;
v3 = *a2;
*(_OWORD *)(a1 + 16) = a2[1];
*(_OWORD *)a1 = v3;
*(_QWORD *)(a1 + 32) = v6;
*(_QWORD *)(a1 + 40) = 0LL;
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>(a1 + 48, (long long)"0", (long long)&v5);
std::allocator<char>::~allocator(&v5);
return std::string::basic_string(a1 + 80);
}
| iteration_proxy_value:
SUB RSP,0x38
MOV qword ptr [RSP + 0x30],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV qword ptr [RSP + 0x20],RDX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP],RAX
MOVUPS XMM0,xmmword ptr [RSI]
MOVUPS XMM1,xmmword ptr [RSI + 0x10]
MOVUPS xmmword ptr [RAX + 0x10],XMM1
MOVUPS xmmword ptr [RAX],XMM0
MOV RCX,qword ptr [RSP + 0x20]
MOV qword ptr [RAX + 0x20],RCX
MOV qword ptr [RAX + 0x28],0x0
ADD RAX,0x30
MOV qword ptr [RSP + 0x8],RAX
LEA RDI,[RSP + 0x1f]
MOV qword ptr [RSP + 0x10],RDI
CALL 0x00106980
MOV RDI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_0012c80d:
LEA RSI,[0x14e1d5]
CALL 0x001080f0
JMP 0x0012c81b
LAB_0012c81b:
LEA RDI,[RSP + 0x1f]
CALL 0x00106640
MOV RDI,qword ptr [RSP]
ADD RDI,0x50
CALL 0x001067c0
ADD RSP,0x38
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_19;
int8 local_18;
int8 *local_10;
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>>>
*local_8;
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;
local_18 = param_3;
local_10 = param_2;
local_8 = this;
std::allocator<char>::allocator();
/* try { // try from 0012c80d to 0012c818 has its CatchHandler @ 0012c837 */
std::__cxx11::string::string<std::allocator<char>>((string *)(this + 0x30),"0",&local_19);
std::allocator<char>::~allocator((allocator<char> *)&local_19);
std::__cxx11::string::string((string *)(this + 0x50));
return;
}
| |
24,016 | 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) | hkr04[P]cpp-mcp/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 0xb57a(%rip), %rsi # 0x1e149
leaq 0xb574(%rip), %rdx # 0x1e14a
callq 0x78c6
leaq 0x60(%rbx), %rax
movq %rax, 0x50(%rbx)
movq $0x0, 0x58(%rbx)
movb $0x0, 0x60(%rbx)
popq %rbx
retq
movq %rax, %rdi
callq 0x786b
nop
| _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, a100+4; "0"
lea rdx, a100+5; ""
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_00112bc8:
LEA RSI,[0x11e149]
LEA RDX,[0x11e14a]
CALL 0x001078c6
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 00112bc8 to 00112bda has its CatchHandler @ 00112bf1 */
std::__cxx11::string::_M_construct<char_const*>(this + 0x30,&DAT_0011e149,&DAT_0011e14a);
*(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;
}
| |
24,017 | mbedtls_chachapoly_free | msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/chachapoly.c | void mbedtls_chachapoly_free(mbedtls_chachapoly_context *ctx)
{
if (ctx == NULL) {
return;
}
mbedtls_chacha20_free(&ctx->chacha20_ctx);
mbedtls_poly1305_free(&ctx->poly1305_ctx);
ctx->aad_len = 0U;
ctx->ciphertext_len = 0U;
ctx->state = CHACHAPOLY_STATE_INIT;
ctx->mode = MBEDTLS_CHACHAPOLY_ENCRYPT;
} | O3 | c | mbedtls_chachapoly_free:
testq %rdi, %rdi
je 0xa01f4
pushq %rbx
movq %rdi, %rbx
callq 0x9fac9
leaq 0x88(%rbx), %rdi
callq 0xa0742
xorps %xmm0, %xmm0
movups %xmm0, 0xd8(%rbx)
movq $0x0, 0xe8(%rbx)
popq %rbx
retq
| mbedtls_chachapoly_free:
test rdi, rdi
jz short locret_A01F4
push rbx
mov rbx, rdi
call mbedtls_chacha20_free
lea rdi, [rbx+88h]
call mbedtls_poly1305_free
xorps xmm0, xmm0
movups xmmword ptr [rbx+0D8h], xmm0
mov qword ptr [rbx+0E8h], 0
pop rbx
locret_A01F4:
retn
| long long mbedtls_chachapoly_free(long long a1)
{
long long result; // rax
if ( a1 )
{
mbedtls_chacha20_free(a1);
result = mbedtls_poly1305_free(a1 + 136);
*(_OWORD *)(a1 + 216) = 0LL;
*(_QWORD *)(a1 + 232) = 0LL;
}
return result;
}
| mbedtls_chachapoly_free:
TEST RDI,RDI
JZ 0x001a01f4
PUSH RBX
MOV RBX,RDI
CALL 0x0019fac9
LEA RDI,[RBX + 0x88]
CALL 0x001a0742
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0xd8],XMM0
MOV qword ptr [RBX + 0xe8],0x0
POP RBX
LAB_001a01f4:
RET
|
void mbedtls_chachapoly_free(long param_1)
{
if (param_1 != 0) {
mbedtls_chacha20_free();
mbedtls_poly1305_free(param_1 + 0x88);
*(int8 *)(param_1 + 0xd8) = 0;
*(int8 *)(param_1 + 0xe0) = 0;
*(int8 *)(param_1 + 0xe8) = 0;
}
return;
}
| |
24,018 | 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>>>>>::parser(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>>>>&&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool) | llama.cpp/common/json.hpp | explicit parser(InputAdapterType&& adapter,
const parser_callback_t<BasicJsonType> cb = nullptr,
const bool allow_exceptions_ = true,
const bool skip_comments = false)
: callback(cb)
, m_lexer(std::move(adapter), skip_comments)
, allow_exceptions(allow_exceptions_)
{
// read first token
get_token();
} | 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>>>>>::parser(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>>>>&&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r8d, %r15d
movl %ecx, %ebp
movq %rsi, %r12
movq %rdi, %rbx
movq %rdx, %rsi
callq 0x8404c
movl $0x0, 0x20(%rbx)
leaq 0x28(%rbx), %r14
movups (%r12), %xmm0
movups %xmm0, 0x28(%rbx)
movb %r15b, 0x38(%rbx)
movl $0xffffffff, 0x3c(%rbx) # imm = 0xFFFFFFFF
xorl %eax, %eax
movb %al, 0x40(%rbx)
leaq 0x88(%rbx), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%rbx)
movups %xmm0, 0x58(%rbx)
movups %xmm0, 0x68(%rbx)
movq %rcx, 0x78(%rbx)
movq %rax, 0x80(%rbx)
movb %al, 0x88(%rbx)
leaq 0x8daef(%rip), %rcx # 0x112372
movq %rcx, 0x98(%rbx)
movups %xmm0, 0xa0(%rbx)
movq %rax, 0xb0(%rbx)
callq 0x84926
movsbl %al, %eax
movl %eax, 0xb8(%rbx)
movb %bpl, 0xc0(%rbx)
movq %r14, %rdi
callq 0x8496a
movl %eax, 0x20(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq %r14, %rdi
callq 0x848f2
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x848e2
movq %rbx, %rdi
movq %rbx, %rsi
movl $0x3, %edx
callq *%rax
movq %r15, %rdi
callq 0x20ae0
movq %rax, %rdi
callq 0x27e37
| _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEEC2EOSM_St8functionIFbiNS1_13parse_event_tERSF_EEbb:
push rbp
push r15
push r14
push r12
push rbx
mov r15d, r8d
mov ebp, ecx
mov r12, rsi
mov rbx, rdi
mov rsi, rdx
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::function(std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)> const&)
mov dword ptr [rbx+20h], 0
lea r14, [rbx+28h]
movups xmm0, xmmword ptr [r12]
movups xmmword ptr [rbx+28h], xmm0
mov [rbx+38h], r15b
mov dword ptr [rbx+3Ch], 0FFFFFFFFh
xor eax, eax
mov [rbx+40h], al
lea rcx, [rbx+88h]
xorps xmm0, xmm0
movups xmmword ptr [rbx+48h], xmm0
movups xmmword ptr [rbx+58h], xmm0
movups xmmword ptr [rbx+68h], xmm0
mov [rbx+78h], rcx
mov [rbx+80h], rax
mov [rbx+88h], al
lea rcx, aTarget+9; ""
mov [rbx+98h], rcx
movups xmmword ptr [rbx+0A0h], xmm0
mov [rbx+0B0h], rax
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17get_decimal_pointEv; 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_decimal_point(void)
movsx eax, al
mov [rbx+0B8h], eax
mov [rbx+0C0h], bpl
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_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 [rbx+20h], eax
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
mov r15, rax
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~lexer()
mov rax, [rbx+10h]
test rax, rax
jz short loc_848E2
mov rdi, rbx
mov rsi, rbx
mov edx, 3
call rax
loc_848E2:
mov rdi, r15
call __Unwind_Resume
mov rdi, rax
call __clang_call_terminate
| long long 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>>>::parser(
long long a1,
_OWORD *a2,
long long a3,
char a4,
char a5)
{
long long result; // rax
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(
(_OWORD *)a1,
a3);
*(_DWORD *)(a1 + 32) = 0;
*(_OWORD *)(a1 + 40) = *a2;
*(_BYTE *)(a1 + 56) = a5;
*(_DWORD *)(a1 + 60) = -1;
*(_BYTE *)(a1 + 64) = 0;
*(_OWORD *)(a1 + 72) = 0LL;
*(_OWORD *)(a1 + 88) = 0LL;
*(_OWORD *)(a1 + 104) = 0LL;
*(_QWORD *)(a1 + 120) = a1 + 136;
*(_QWORD *)(a1 + 128) = 0LL;
*(_BYTE *)(a1 + 136) = 0;
*(_QWORD *)(a1 + 152) = "";
*(_OWORD *)(a1 + 160) = 0LL;
*(_QWORD *)(a1 + 176) = 0LL;
*(_DWORD *)(a1 + 184) = (char)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_decimal_point();
*(_BYTE *)(a1 + 192) = a4;
result = 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) = result;
return result;
}
| parser:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R15D,R8D
MOV EBP,ECX
MOV R12,RSI
MOV RBX,RDI
MOV RSI,RDX
CALL 0x0018404c
MOV dword ptr [RBX + 0x20],0x0
LEA R14,[RBX + 0x28]
MOVUPS XMM0,xmmword ptr [R12]
MOVUPS xmmword ptr [RBX + 0x28],XMM0
MOV byte ptr [RBX + 0x38],R15B
MOV dword ptr [RBX + 0x3c],0xffffffff
XOR EAX,EAX
MOV byte ptr [RBX + 0x40],AL
LEA RCX,[RBX + 0x88]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x48],XMM0
MOVUPS xmmword ptr [RBX + 0x58],XMM0
MOVUPS xmmword ptr [RBX + 0x68],XMM0
MOV qword ptr [RBX + 0x78],RCX
MOV qword ptr [RBX + 0x80],RAX
MOV byte ptr [RBX + 0x88],AL
LEA RCX,[0x212372]
MOV qword ptr [RBX + 0x98],RCX
MOVUPS xmmword ptr [RBX + 0xa0],XMM0
MOV qword ptr [RBX + 0xb0],RAX
CALL 0x00184926
MOVSX EAX,AL
MOV dword ptr [RBX + 0xb8],EAX
MOV byte ptr [RBX + 0xc0],BPL
LAB_001848ad:
MOV RDI,R14
CALL 0x0018496a
MOV dword ptr [RBX + 0x20],EAX
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 > >
>::parser(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > >&&, std::function<bool (int,
nlohmann::json_abi_v3_11_3::detail::parse_event_t,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&)>, bool, bool) */
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>>>
::parser(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,int8 *param_1,function *param_3,
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>>>
param_4,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>>>
param_5)
{
int8 uVar1;
char cVar2;
int4 uVar3;
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((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,param_3);
*(int4 *)(this + 0x20) = 0;
uVar1 = param_1[1];
*(int8 *)(this + 0x28) = *param_1;
*(int8 *)(this + 0x30) = uVar1;
this[0x38] = param_5;
*(int4 *)(this + 0x3c) = 0xffffffff;
this[0x40] = (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>>>
)0x0;
*(int8 *)(this + 0x48) = 0;
*(int8 *)(this + 0x50) = 0;
*(int8 *)(this + 0x58) = 0;
*(int8 *)(this + 0x60) = 0;
*(int8 *)(this + 0x68) = 0;
*(int8 *)(this + 0x70) = 0;
*(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 + 0x78) = this + 0x88;
*(int8 *)(this + 0x80) = 0;
this[0x88] = (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>>>
)0x0;
*(char **)(this + 0x98) = "";
*(int8 *)(this + 0xa0) = 0;
*(int8 *)(this + 0xa8) = 0;
*(int8 *)(this + 0xb0) = 0;
cVar2 = 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_decimal_point();
*(int *)(this + 0xb8) = (int)cVar2;
this[0xc0] = param_4;
/* try { // try from 001848ad to 001848b4 has its CatchHandler @ 001848c1 */
uVar3 = 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));
*(int4 *)(this + 0x20) = uVar3;
return;
}
| |
24,019 | google::protobuf::compiler::java::ClassNameResolver::GetClassName[abi:cxx11](google::protobuf::ServiceDescriptor const*, bool, bool) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/name_resolver.cc | std::string ClassNameResolver::GetClassName(const ServiceDescriptor* descriptor,
bool immutable, bool kotlin) {
return GetClassFullName(ClassNameWithoutPackage(descriptor, immutable),
descriptor->file(), immutable,
IsOwnFile(descriptor, immutable), kotlin);
} | O0 | cpp | google::protobuf::compiler::java::ClassNameResolver::GetClassName[abi:cxx11](google::protobuf::ServiceDescriptor const*, bool, bool):
subq $0x88, %rsp
movq %rdi, 0x18(%rsp)
movb %r8b, %al
movq %rdi, %r8
movq %r8, 0x20(%rsp)
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
andb $0x1, %cl
movb %cl, 0x6f(%rsp)
andb $0x1, %al
movb %al, 0x6e(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x70(%rsp), %rsi
movzbl 0x6f(%rsp), %edx
andl $0x1, %edx
leaq 0x48(%rsp), %rdi
callq 0x7cf70
movq 0x70(%rsp), %rdi
callq 0x7e020
movq %rax, 0x30(%rsp)
jmp 0x7cec8
movzbl 0x6f(%rsp), %esi
movb %sil, %al
movb %al, 0x16(%rsp)
movq 0x70(%rsp), %rdi
andl $0x1, %esi
callq 0x7e030
movb %al, 0x17(%rsp)
jmp 0x7cee7
movq 0x30(%rsp), %rcx
movq 0x28(%rsp), %rsi
movq 0x18(%rsp), %rdi
movb 0x17(%rsp), %al
movb 0x16(%rsp), %dl
movzbl 0x6e(%rsp), %r9d
andl $0x1, %r9d
movq %rsp, %r8
movl %r9d, (%r8)
movzbl %dl, %r8d
andl $0x1, %r8d
movzbl %al, %r9d
andl $0x1, %r9d
leaq 0x48(%rsp), %rdx
callq 0x7c7f0
jmp 0x7cf2a
leaq 0x48(%rsp), %rdi
callq 0x21cc8
movq 0x20(%rsp), %rax
addq $0x88, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x40(%rsp)
movl %eax, 0x3c(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x21cc8
movq 0x40(%rsp), %rdi
callq 0x21700
nopw %cs:(%rax,%rax)
| _ZN6google8protobuf8compiler4java17ClassNameResolver12GetClassNameB5cxx11EPKNS0_17ServiceDescriptorEbb:
sub rsp, 88h
mov [rsp+88h+var_70], rdi; int
mov al, r8b
mov r8, rdi; int
mov qword ptr [rsp+88h+var_68], r8; int
mov [rsp+88h+var_8], rdi
mov [rsp+88h+var_10], rsi
mov [rsp+88h+var_18], rdx
and cl, 1; int
mov [rsp+88h+var_19], cl
and al, 1
mov [rsp+88h+var_1A], al
mov rax, [rsp+88h+var_10]
mov [rsp+88h+var_60], rax; int
mov rsi, [rsp+88h+var_18]; int
movzx edx, [rsp+88h+var_19]
and edx, 1; int
lea rdi, [rsp+88h+var_40]; int
call _ZN6google8protobuf8compiler4java12_GLOBAL__N_123ClassNameWithoutPackageB5cxx11EPKNS0_17ServiceDescriptorEb; google::protobuf::compiler::java::`anonymous namespace'::ClassNameWithoutPackage(google::protobuf::ServiceDescriptor const*,bool)
mov rdi, [rsp+88h+var_18]; this
call _ZNK6google8protobuf17ServiceDescriptor4fileEv; google::protobuf::ServiceDescriptor::file(void)
mov qword ptr [rsp+88h+var_58], rax; int
jmp short $+2
loc_7CEC8:
movzx esi, [rsp+88h+var_19]
mov al, sil
mov [rsp+88h+var_72], al
mov rdi, [rsp+88h+var_18]
and esi, 1
call _ZN6google8protobuf8compiler4java9IsOwnFileINS0_17ServiceDescriptorEEEbPKT_b; google::protobuf::compiler::java::IsOwnFile<google::protobuf::ServiceDescriptor>(google::protobuf::ServiceDescriptor const*,bool)
mov [rsp+88h+var_71], al
jmp short $+2
loc_7CEE7:
mov rcx, qword ptr [rsp+88h+var_58]
mov rsi, [rsp+88h+var_60]
mov rdi, [rsp+88h+var_70]; int
mov al, [rsp+88h+var_71]
mov dl, [rsp+88h+var_72]
movzx r9d, [rsp+88h+var_1A]
and r9d, 1
mov r8, rsp
mov [r8], r9d
movzx r8d, dl
and r8d, 1
movzx r9d, al
and r9d, 1
lea rdx, [rsp+88h+var_40]
call _ZN6google8protobuf8compiler4java17ClassNameResolver16GetClassFullNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKNS0_14FileDescriptorEbbb; google::protobuf::compiler::java::ClassNameResolver::GetClassFullName(std::string const&,google::protobuf::FileDescriptor const*,bool,bool,bool)
jmp short $+2
loc_7CF2A:
lea rdi, [rsp+88h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rax, qword ptr [rsp+88h+var_68]
add rsp, 88h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_38], rcx
mov [rsp+arg_34], eax
lea rdi, [rsp+arg_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rdi, [rsp+arg_38]
call __Unwind_Resume
| long long google::protobuf::compiler::java::ClassNameResolver::GetClassName[abi:cxx11](
void *a1,
long long a2,
google::protobuf::ServiceDescriptor *a3,
int a4,
char a5,
int a6)
{
int v7; // [rsp+0h] [rbp-88h]
int v8; // [rsp+8h] [rbp-80h]
int v9; // [rsp+10h] [rbp-78h]
char v10; // [rsp+16h] [rbp-72h]
char v11; // [rsp+17h] [rbp-71h]
void *v12; // [rsp+18h] [rbp-70h]
__int16 v13[4]; // [rsp+20h] [rbp-68h]
long long v14; // [rsp+28h] [rbp-60h]
char v15; // [rsp+30h] [rbp-58h]
long long v16; // [rsp+30h] [rbp-58h]
int v17[9]; // [rsp+48h] [rbp-40h] BYREF
char v18; // [rsp+6Eh] [rbp-1Ah]
char v19; // [rsp+6Fh] [rbp-19h]
google::protobuf::ServiceDescriptor *v20; // [rsp+70h] [rbp-18h]
long long v21; // [rsp+78h] [rbp-10h]
void *v22; // [rsp+80h] [rbp-8h]
v22 = a1;
v21 = a2;
v20 = a3;
LOBYTE(a4) = a4 & 1;
v19 = a4;
v18 = a5 & 1;
google::protobuf::compiler::java::`anonymous namespace'::ClassNameWithoutPackage[abi:cxx11](
(int)v17,
(int)a3,
a4 & 1,
a4,
(int)a1,
a6,
v7,
v8,
v9,
a1,
(__int16)a1,
a2,
v15);
v16 = google::protobuf::ServiceDescriptor::file(v20);
v10 = v19;
v11 = google::protobuf::compiler::java::IsOwnFile<google::protobuf::ServiceDescriptor>(v20, v19 & 1);
google::protobuf::compiler::java::ClassNameResolver::GetClassFullName(
(long long)v12,
v14,
(long long)v17,
v16,
v10 & 1,
v11 & 1,
v18 & 1);
std::string::~string(v17);
return *(_QWORD *)v13;
}
| GetClassName[abi:cxx11]:
SUB RSP,0x88
MOV qword ptr [RSP + 0x18],RDI
MOV AL,R8B
MOV R8,RDI
MOV qword ptr [RSP + 0x20],R8
MOV qword ptr [RSP + 0x80],RDI
MOV qword ptr [RSP + 0x78],RSI
MOV qword ptr [RSP + 0x70],RDX
AND CL,0x1
MOV byte ptr [RSP + 0x6f],CL
AND AL,0x1
MOV byte ptr [RSP + 0x6e],AL
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x28],RAX
MOV RSI,qword ptr [RSP + 0x70]
MOVZX EDX,byte ptr [RSP + 0x6f]
AND EDX,0x1
LEA RDI,[RSP + 0x48]
CALL 0x0017cf70
MOV RDI,qword ptr [RSP + 0x70]
LAB_0017cebc:
CALL 0x0017e020
MOV qword ptr [RSP + 0x30],RAX
JMP 0x0017cec8
LAB_0017cec8:
MOVZX ESI,byte ptr [RSP + 0x6f]
MOV AL,SIL
MOV byte ptr [RSP + 0x16],AL
MOV RDI,qword ptr [RSP + 0x70]
AND ESI,0x1
CALL 0x0017e030
MOV byte ptr [RSP + 0x17],AL
JMP 0x0017cee7
LAB_0017cee7:
MOV RCX,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RSP + 0x18]
MOV AL,byte ptr [RSP + 0x17]
MOV DL,byte ptr [RSP + 0x16]
MOVZX R9D,byte ptr [RSP + 0x6e]
AND R9D,0x1
MOV R8,RSP
MOV dword ptr [R8],R9D
MOVZX R8D,DL
AND R8D,0x1
MOVZX R9D,AL
AND R9D,0x1
LEA RDX,[RSP + 0x48]
CALL 0x0017c7f0
LAB_0017cf28:
JMP 0x0017cf2a
LAB_0017cf2a:
LEA RDI,[RSP + 0x48]
CALL 0x00121cc8
MOV RAX,qword ptr [RSP + 0x20]
ADD RSP,0x88
RET
|
/* google::protobuf::compiler::java::ClassNameResolver::GetClassName[abi:cxx11](google::protobuf::ServiceDescriptor
const*, bool, bool) */
ServiceDescriptor *
google::protobuf::compiler::java::ClassNameResolver::GetClassName_abi_cxx11_
(ServiceDescriptor *param_1,bool param_2,bool param_3)
{
byte bVar1;
bool bVar2;
byte in_CL;
int7 in_register_00000011;
int7 in_register_00000031;
byte in_R8B;
_anonymous_namespace_ local_40 [38];
byte local_1a;
byte local_19;
ServiceDescriptor *local_18;
FileDescriptor *local_10;
ServiceDescriptor *local_8;
local_18 = (ServiceDescriptor *)CONCAT71(in_register_00000011,param_3);
local_19 = in_CL & 1;
local_1a = in_R8B & 1;
local_10 = (FileDescriptor *)CONCAT71(in_register_00000031,param_2);
local_8 = param_1;
(anonymous_namespace)::ClassNameWithoutPackage_abi_cxx11_(local_40,local_18,(bool)local_19);
/* try { // try from 0017cebc to 0017cf27 has its CatchHandler @ 0017cf41 */
bVar2 = (bool)ServiceDescriptor::file(local_18);
bVar1 = local_19;
IsOwnFile<google::protobuf::ServiceDescriptor>(local_18,(bool)(local_19 & 1));
GetClassFullName((string *)param_1,(FileDescriptor *)CONCAT71(in_register_00000031,param_2),
SUB81(local_40,0),bVar2,(bool)(bVar1 & 1));
std::__cxx11::string::~string((string *)local_40);
return param_1;
}
| |
24,020 | google::protobuf::compiler::java::ClassNameResolver::GetClassName[abi:cxx11](google::protobuf::ServiceDescriptor const*, bool, bool) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/name_resolver.cc | std::string ClassNameResolver::GetClassName(const ServiceDescriptor* descriptor,
bool immutable, bool kotlin) {
return GetClassFullName(ClassNameWithoutPackage(descriptor, immutable),
descriptor->file(), immutable,
IsOwnFile(descriptor, immutable), kotlin);
} | O3 | cpp | google::protobuf::compiler::java::ClassNameResolver::GetClassName[abi:cxx11](google::protobuf::ServiceDescriptor const*, bool, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %r8d, %r15d
movl %ecx, %ebp
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdx), %rsi
movq 0x10(%rdx), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rdx
addq $0x20, %rsi
leaq 0x10(%rsp), %r13
movq %r13, %rdi
callq 0x48a66
movq %r13, %rdi
movl $0x2e, %esi
xorl %edx, %edx
callq 0x1f610
cmpq $-0x1, %rax
je 0x47e27
leaq 0x15a339(%rip), %rdx # 0x1a2124
leaq 0x30(%rsp), %rdi
movl $0x3, %esi
movl $0x69, %ecx
callq 0x1072ba
leaq 0x15a396(%rip), %rsi # 0x1a219c
leaq 0x30(%rsp), %rdi
callq 0x106db8
leaq 0xf(%rsp), %rdi
movq %rax, %rsi
callq 0x106e92
leaq 0x30(%rsp), %rdi
callq 0x1072d8
movq 0x10(%r12), %rcx
movq 0x78(%rcx), %rax
movzbl 0x98(%rax), %r9d
movzbl %r15b, %eax
movl %eax, (%rsp)
movzbl %bpl, %r8d
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x479ea
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x47e66
callq 0x1f4a0
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x47e7a
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x1072d8
jmp 0x47e8e
jmp 0x47e8b
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x47ea1
callq 0x1f4a0
movq %rbx, %rdi
callq 0x1f860
nop
| _ZN6google8protobuf8compiler4java17ClassNameResolver12GetClassNameB5cxx11EPKNS0_17ServiceDescriptorEbb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov r15d, r8d
mov ebp, ecx
mov r12, rdx
mov r14, rsi
mov rbx, rdi
mov rsi, [rdx+8]
mov rax, [rdx+10h]
mov rax, [rax+10h]
mov rdx, [rax+8]
add rsi, 20h ; ' '
lea r13, [rsp+98h+var_88]
mov rdi, r13
call _ZN6google8protobuf8compiler4java12_GLOBAL__N_116StripPackageNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKNS0_14FileDescriptorE; google::protobuf::compiler::java::`anonymous namespace'::StripPackageName(std::string const&,google::protobuf::FileDescriptor const*)
mov rdi, r13
mov esi, 2Eh ; '.'
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm; std::string::find(char,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_47E27
lea rdx, aWorkspaceLlm4b_8; "/workspace/llm4binary/github2025/aimrt_"...
lea rdi, [rsp+98h+var_68]
mov esi, 3
mov ecx, 69h ; 'i'
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
lea rsi, aCheckFailedFul; "CHECK failed: full_name.find('.') == st"...
lea rdi, [rsp+98h+var_68]
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rdi, [rsp+98h+var_89]
mov rsi, rax
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
lea rdi, [rsp+98h+var_68]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_47E27:
mov rcx, [r12+10h]
mov rax, [rcx+78h]
movzx r9d, byte ptr [rax+98h]
movzx eax, r15b
mov [rsp+98h+var_98], eax
movzx r8d, bpl
lea rdx, [rsp+98h+var_88]
mov rdi, rbx
mov rsi, r14
call _ZN6google8protobuf8compiler4java17ClassNameResolver16GetClassFullNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKNS0_14FileDescriptorEbbb; google::protobuf::compiler::java::ClassNameResolver::GetClassFullName(std::string const&,google::protobuf::FileDescriptor const*,bool,bool,bool)
lea rax, [rsp+98h+var_78]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_47E66
call __ZdlPv; operator delete(void *)
loc_47E66:
mov rax, rbx
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_47E7A:
mov rbx, rax
lea rdi, [rsp+arg_28]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
jmp short loc_47E8E
jmp short $+2
loc_47E8B:
mov rbx, rax
loc_47E8E:
lea rax, [rsp+arg_18]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_47EA1
call __ZdlPv; operator delete(void *)
loc_47EA1:
mov rdi, rbx
call __Unwind_Resume
| long long google::protobuf::compiler::java::ClassNameResolver::GetClassName[abi:cxx11](
long long a1,
long long a2,
long long a3,
char a4,
unsigned __int8 a5)
{
long long v8; // rax
char v10; // [rsp+Fh] [rbp-89h] BYREF
void *v11[2]; // [rsp+10h] [rbp-88h] BYREF
char v12; // [rsp+20h] [rbp-78h] BYREF
_BYTE v13[104]; // [rsp+30h] [rbp-68h] BYREF
google::protobuf::compiler::java::`anonymous namespace'::StripPackageName(
v11,
*(_QWORD *)(a3 + 8) + 32LL,
*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a3 + 16) + 16LL) + 8LL));
if ( std::string::find(v11, 46LL, 0LL) != -1 )
{
google::protobuf::internal::LogMessage::LogMessage(
v13,
3LL,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/name_resolver.cc",
105LL);
v8 = google::protobuf::internal::LogMessage::operator<<(
v13,
"CHECK failed: full_name.find('.') == std::string::npos: ");
google::protobuf::internal::LogFinisher::operator=(&v10, v8);
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v13);
}
google::protobuf::compiler::java::ClassNameResolver::GetClassFullName(
a1,
a2,
v11,
*(_QWORD *)(a3 + 16),
a4,
*(unsigned __int8 *)(*(_QWORD *)(*(_QWORD *)(a3 + 16) + 120LL) + 152LL),
a5);
if ( v11[0] != &v12 )
operator delete(v11[0]);
return a1;
}
| GetClassName[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R15D,R8D
MOV EBP,ECX
MOV R12,RDX
MOV R14,RSI
MOV RBX,RDI
MOV RSI,qword ptr [RDX + 0x8]
MOV RAX,qword ptr [RDX + 0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV RDX,qword ptr [RAX + 0x8]
ADD RSI,0x20
LEA R13,[RSP + 0x10]
MOV RDI,R13
CALL 0x00148a66
MOV RDI,R13
MOV ESI,0x2e
XOR EDX,EDX
CALL 0x0011f610
CMP RAX,-0x1
JZ 0x00147e27
LAB_00147de4:
LEA RDX,[0x2a2124]
LEA RDI,[RSP + 0x30]
MOV ESI,0x3
MOV ECX,0x69
CALL 0x002072ba
LAB_00147dff:
LEA RSI,[0x2a219c]
LEA RDI,[RSP + 0x30]
CALL 0x00206db8
LAB_00147e10:
LEA RDI,[RSP + 0xf]
MOV RSI,RAX
CALL 0x00206e92
LEA RDI,[RSP + 0x30]
CALL 0x002072d8
LAB_00147e27:
MOV RCX,qword ptr [R12 + 0x10]
MOV RAX,qword ptr [RCX + 0x78]
MOVZX R9D,byte ptr [RAX + 0x98]
LAB_00147e38:
MOVZX EAX,R15B
MOV dword ptr [RSP],EAX
MOVZX R8D,BPL
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV RSI,R14
CALL 0x001479ea
LAB_00147e53:
LEA RAX,[RSP + 0x20]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00147e66
CALL 0x0011f4a0
LAB_00147e66:
MOV RAX,RBX
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::compiler::java::ClassNameResolver::GetClassName[abi:cxx11](google::protobuf::ServiceDescriptor
const*, bool, bool) */
ClassNameResolver * __thiscall
google::protobuf::compiler::java::ClassNameResolver::GetClassName_abi_cxx11_
(ClassNameResolver *this,ServiceDescriptor *param_1,bool param_2,bool param_3)
{
long lVar1;
LogMessage *pLVar2;
int7 in_register_00000011;
long lVar3;
LogFinisher local_89;
int1 *local_88 [2];
int1 local_78 [16];
LogMessage local_68 [56];
lVar3 = CONCAT71(in_register_00000011,param_2);
(anonymous_namespace)::StripPackageName
((_anonymous_namespace_ *)local_88,(string *)(*(long *)(lVar3 + 8) + 0x20),
*(FileDescriptor **)(*(long *)(*(long *)(lVar3 + 0x10) + 0x10) + 8));
lVar1 = std::__cxx11::string::find((char)(_anonymous_namespace_ *)local_88,0x2e);
if (lVar1 != -1) {
/* try { // try from 00147de4 to 00147dfe has its CatchHandler @ 00147e89 */
internal::LogMessage::LogMessage
(local_68,3,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/name_resolver.cc"
,0x69);
/* try { // try from 00147dff to 00147e0f has its CatchHandler @ 00147e7a */
pLVar2 = (LogMessage *)
internal::LogMessage::operator<<
(local_68,"CHECK failed: full_name.find(\'.\') == std::string::npos: ");
/* try { // try from 00147e10 to 00147e1c has its CatchHandler @ 00147e78 */
internal::LogFinisher::operator=(&local_89,pLVar2);
internal::LogMessage::~LogMessage(local_68);
}
/* try { // try from 00147e38 to 00147e52 has its CatchHandler @ 00147e8b */
GetClassFullName((string *)this,(FileDescriptor *)param_1,SUB81(local_88,0),
SUB81(*(int8 *)(lVar3 + 0x10),0),param_3);
if (local_88[0] != local_78) {
operator_delete(local_88[0]);
}
return this;
}
| |
24,021 | make_obj_error | bluesky950520[P]quickjs/quickjs-libc.c | static JSValue make_obj_error(JSContext *ctx,
JSValue obj,
int err)
{
JSValue arr;
if (JS_IsException(obj))
return obj;
arr = JS_NewArray(ctx);
if (JS_IsException(arr))
return JS_EXCEPTION;
JS_DefinePropertyValueUint32(ctx, arr, 0, obj,
JS_PROP_C_W_E);
JS_DefinePropertyValueUint32(ctx, arr, 1, JS_NewInt32(ctx, err),
JS_PROP_C_W_E);
return arr;
} | O0 | c | make_obj_error:
subq $0x88, %rsp
movq %rsi, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
movq %rdi, 0x40(%rsp)
movl %ecx, 0x3c(%rsp)
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x10390
cmpl $0x0, %eax
je 0x1cfa7
movq 0x48(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x60(%rsp)
jmp 0x1d098
movq 0x40(%rsp), %rdi
callq 0x2a520
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x10390
cmpl $0x0, %eax
je 0x1cff9
movl $0x0, 0x58(%rsp)
movq $0x6, 0x60(%rsp)
jmp 0x1d098
movq 0x40(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0x48(%rsp), %r8
movq 0x50(%rsp), %r9
movq %rsp, %rax
movl $0x7, (%rax)
xorl %ecx, %ecx
callq 0x37370
movq 0x40(%rsp), %rdi
movl 0x3c(%rsp), %eax
movq %rdi, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
movl 0x6c(%rsp), %eax
movl %eax, 0x78(%rsp)
movq $0x0, 0x80(%rsp)
movq 0x78(%rsp), %rcx
movq 0x80(%rsp), %rax
movq %rcx, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0x8(%rsp), %r8
movq 0x10(%rsp), %r9
movl $0x1, %ecx
movl $0x7, (%rsp)
callq 0x37370
movq 0x28(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x58(%rsp), %rax
movq 0x60(%rsp), %rdx
addq $0x88, %rsp
retq
nopw (%rax,%rax)
| make_obj_error:
sub rsp, 88h
mov [rsp+88h+var_40], rsi
mov [rsp+88h+var_38], rdx
mov [rsp+88h+var_48], rdi
mov [rsp+88h+var_4C], ecx
mov rdi, [rsp+88h+var_40]
mov rsi, [rsp+88h+var_38]
call JS_IsException_0
cmp eax, 0
jz short loc_1CFA7
mov rax, [rsp+88h+var_40]
mov [rsp+88h+var_30], rax
mov rax, [rsp+88h+var_38]
mov [rsp+88h+var_28], rax
jmp loc_1D098
loc_1CFA7:
mov rdi, [rsp+88h+var_48]
call JS_NewArray
mov [rsp+88h+var_70], rax
mov [rsp+88h+var_68], rdx
mov rax, [rsp+88h+var_70]
mov [rsp+88h+var_60], rax
mov rax, [rsp+88h+var_68]
mov [rsp+88h+var_58], rax
mov rdi, [rsp+88h+var_60]
mov rsi, [rsp+88h+var_58]
call JS_IsException_0
cmp eax, 0
jz short loc_1CFF9
mov dword ptr [rsp+88h+var_30], 0
mov [rsp+88h+var_28], 6
jmp loc_1D098
loc_1CFF9:
mov rdi, [rsp+88h+var_48]
mov rsi, [rsp+88h+var_60]
mov rdx, [rsp+88h+var_58]
mov r8, [rsp+88h+var_40]
mov r9, [rsp+88h+var_38]
mov rax, rsp
mov dword ptr [rax], 7
xor ecx, ecx
call JS_DefinePropertyValueUint32
mov rdi, [rsp+88h+var_48]
mov eax, [rsp+88h+var_4C]
mov [rsp+88h+var_18], rdi
mov [rsp+88h+var_1C], eax
mov eax, [rsp+88h+var_1C]
mov dword ptr [rsp+88h+var_10], eax
mov [rsp+88h+var_8], 0
mov rcx, [rsp+88h+var_10]
mov rax, [rsp+88h+var_8]
mov [rsp+88h+var_80], rcx
mov [rsp+88h+var_78], rax
mov rsi, [rsp+88h+var_60]
mov rdx, [rsp+88h+var_58]
mov r8, [rsp+88h+var_80]
mov r9, [rsp+88h+var_78]
mov ecx, 1
mov [rsp+88h+var_88], 7
call JS_DefinePropertyValueUint32
mov rax, [rsp+88h+var_60]
mov [rsp+88h+var_30], rax
mov rax, [rsp+88h+var_58]
mov [rsp+88h+var_28], rax
loc_1D098:
mov rax, [rsp+88h+var_30]
mov rdx, [rsp+88h+var_28]
add rsp, 88h
retn
| long long make_obj_error(long long a1, long long a2, int a3, int a4)
{
int v4; // edx
long long v6; // [rsp+18h] [rbp-70h]
int v7; // [rsp+30h] [rbp-58h]
long long v10; // [rsp+58h] [rbp-30h]
if ( JS_IsException_0(a2, a3) )
return a2;
v6 = JS_NewArray(a1);
v7 = v4;
if ( JS_IsException_0(v6, v4) )
{
LODWORD(v10) = 0;
}
else
{
JS_DefinePropertyValueUint32(a1, v6, v7, 0, a2, a3, 7);
JS_DefinePropertyValueUint32(a1, v6, v7, 1, a4, 0, 7);
return v6;
}
return v10;
}
| make_obj_error:
SUB RSP,0x88
MOV qword ptr [RSP + 0x48],RSI
MOV qword ptr [RSP + 0x50],RDX
MOV qword ptr [RSP + 0x40],RDI
MOV dword ptr [RSP + 0x3c],ECX
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x50]
CALL 0x00110390
CMP EAX,0x0
JZ 0x0011cfa7
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x60],RAX
JMP 0x0011d098
LAB_0011cfa7:
MOV RDI,qword ptr [RSP + 0x40]
CALL 0x0012a520
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],RDX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x30],RAX
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x30]
CALL 0x00110390
CMP EAX,0x0
JZ 0x0011cff9
MOV dword ptr [RSP + 0x58],0x0
MOV qword ptr [RSP + 0x60],0x6
JMP 0x0011d098
LAB_0011cff9:
MOV RDI,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x30]
MOV R8,qword ptr [RSP + 0x48]
MOV R9,qword ptr [RSP + 0x50]
MOV RAX,RSP
MOV dword ptr [RAX],0x7
XOR ECX,ECX
CALL 0x00137370
MOV RDI,qword ptr [RSP + 0x40]
MOV EAX,dword ptr [RSP + 0x3c]
MOV qword ptr [RSP + 0x70],RDI
MOV dword ptr [RSP + 0x6c],EAX
MOV EAX,dword ptr [RSP + 0x6c]
MOV dword ptr [RSP + 0x78],EAX
MOV qword ptr [RSP + 0x80],0x0
MOV RCX,qword ptr [RSP + 0x78]
MOV RAX,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x8],RCX
MOV qword ptr [RSP + 0x10],RAX
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x30]
MOV R8,qword ptr [RSP + 0x8]
MOV R9,qword ptr [RSP + 0x10]
MOV ECX,0x1
MOV dword ptr [RSP],0x7
CALL 0x00137370
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x60],RAX
LAB_0011d098:
MOV RAX,qword ptr [RSP + 0x58]
MOV RDX,qword ptr [RSP + 0x60]
ADD RSP,0x88
RET
|
int1 [16]
make_obj_error(int8 param_1,int8 param_2,int8 param_3,int4 param_4)
{
int iVar1;
int1 auVar2 [16];
int4 local_30;
int4 uStack_2c;
int8 local_28;
int4 uStack_c;
iVar1 = JS_IsException(param_2,param_3);
if (iVar1 == 0) {
auVar2 = JS_NewArray(param_1);
local_28 = auVar2._8_8_;
auVar2._0_8_ = auVar2._0_8_;
iVar1 = JS_IsException(auVar2._0_8_,local_28);
if (iVar1 == 0) {
JS_DefinePropertyValueUint32(param_1,auVar2._0_8_,local_28,0,param_2,param_3,7);
JS_DefinePropertyValueUint32(param_1,auVar2._0_8_,local_28,1,CONCAT44(uStack_c,param_4),0,7);
local_30 = auVar2._0_4_;
uStack_2c = auVar2._4_4_;
}
else {
local_30 = 0;
local_28 = 6;
}
}
else {
local_30 = (int4)param_2;
uStack_2c = (int4)((ulong)param_2 >> 0x20);
local_28 = param_3;
}
auVar2._4_4_ = uStack_2c;
auVar2._0_4_ = local_30;
auVar2._8_8_ = local_28;
return auVar2;
}
| |
24,022 | make_obj_error | bluesky950520[P]quickjs/quickjs-libc.c | static JSValue make_obj_error(JSContext *ctx,
JSValue obj,
int err)
{
JSValue arr;
if (JS_IsException(obj))
return obj;
arr = JS_NewArray(ctx);
if (JS_IsException(arr))
return JS_EXCEPTION;
JS_DefinePropertyValueUint32(ctx, arr, 0, obj,
JS_PROP_C_W_E);
JS_DefinePropertyValueUint32(ctx, arr, 1, JS_NewInt32(ctx, err),
JS_PROP_C_W_E);
return arr;
} | O2 | c | make_obj_error:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
cmpl $0x6, %ebx
jne 0x15800
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %r14, %rcx
jmp 0x1586c
movl %ecx, %ebp
movq %rdi, %r13
callq 0x1b2bb
movq %rdx, %r15
cmpl $0x6, %r15d
jne 0x1581d
pushq $0x6
popq %rbx
xorl %r14d, %r14d
xorl %ecx, %ecx
jmp 0x1586c
movq %rax, %r12
pushq $0x7
popq %rax
movl %eax, (%rsp)
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
movq %r14, %r8
movq %rbx, %r9
callq 0x20972
movl %ebp, %r8d
pushq $0x7
popq %rax
movl %eax, (%rsp)
pushq $0x1
popq %rcx
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
xorl %r9d, %r9d
callq 0x20972
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %r12, %rcx
movq %r12, %r14
movq %r15, %rbx
movl %r14d, %eax
orq %rcx, %rax
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| make_obj_error:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdx
mov r14, rsi
cmp ebx, 6
jnz short loc_15800
mov rcx, 0FFFFFFFF00000000h
and rcx, r14
jmp short loc_1586C
loc_15800:
mov ebp, ecx
mov r13, rdi
call JS_NewArray
mov r15, rdx
cmp r15d, 6
jnz short loc_1581D
push 6
pop rbx
xor r14d, r14d
xor ecx, ecx
jmp short loc_1586C
loc_1581D:
mov r12, rax
push 7
pop rax
mov [rsp+38h+var_38], eax
mov rdi, r13
mov rsi, r12
mov rdx, r15
xor ecx, ecx
mov r8, r14
mov r9, rbx
call JS_DefinePropertyValueUint32
mov r8d, ebp
push 7
pop rax
mov [rsp+38h+var_38], eax
push 1
pop rcx
mov rdi, r13
mov rsi, r12
mov rdx, r15
xor r9d, r9d
call JS_DefinePropertyValueUint32
mov rcx, 0FFFFFFFF00000000h
and rcx, r12
mov r14, r12
mov rbx, r15
loc_1586C:
mov eax, r14d
or rax, rcx
mov rdx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long make_obj_error(long long a1, long long a2, int a3, int a4)
{
unsigned int v5; // r14d
unsigned long long v6; // rcx
long long v8; // rax
int v9; // edx
int v10; // r15d
long long v11; // r12
v5 = a2;
if ( a3 == 6 )
{
v6 = a2 & 0xFFFFFFFF00000000LL;
}
else
{
v8 = JS_NewArray(a1);
v10 = v9;
if ( v9 == 6 )
{
v5 = 0;
v6 = 0LL;
}
else
{
v11 = v8;
JS_DefinePropertyValueUint32(a1, v8, v9, 0, a2, a3, 7);
JS_DefinePropertyValueUint32(a1, v11, v10, 1, a4, 0, 7);
v6 = v11 & 0xFFFFFFFF00000000LL;
v5 = v11;
}
}
return v6 | v5;
}
| make_obj_error:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RSI
CMP EBX,0x6
JNZ 0x00115800
MOV RCX,-0x100000000
AND RCX,R14
JMP 0x0011586c
LAB_00115800:
MOV EBP,ECX
MOV R13,RDI
CALL 0x0011b2bb
MOV R15,RDX
CMP R15D,0x6
JNZ 0x0011581d
PUSH 0x6
POP RBX
XOR R14D,R14D
XOR ECX,ECX
JMP 0x0011586c
LAB_0011581d:
MOV R12,RAX
PUSH 0x7
POP RAX
MOV dword ptr [RSP],EAX
MOV RDI,R13
MOV RSI,R12
MOV RDX,R15
XOR ECX,ECX
MOV R8,R14
MOV R9,RBX
CALL 0x00120972
MOV R8D,EBP
PUSH 0x7
POP RAX
MOV dword ptr [RSP],EAX
PUSH 0x1
POP RCX
MOV RDI,R13
MOV RSI,R12
MOV RDX,R15
XOR R9D,R9D
CALL 0x00120972
MOV RCX,-0x100000000
AND RCX,R12
MOV R14,R12
MOV RBX,R15
LAB_0011586c:
MOV EAX,R14D
OR RAX,RCX
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int1 [16]
make_obj_error(int8 param_1,ulong param_2,int8 param_3,int4 param_4)
{
int8 in_RAX;
int4 uVar2;
int1 auVar3 [16];
int1 auVar4 [16];
ulong uVar1;
auVar3._8_8_ = param_3;
auVar3._0_8_ = param_2;
uVar2 = (int4)((ulong)in_RAX >> 0x20);
if ((int)param_3 == 6) {
param_2 = param_2 & 0xffffffff00000000;
}
else {
auVar3 = JS_NewArray();
uVar1 = auVar3._0_8_;
if (auVar3._8_4_ == 6) {
auVar3 = ZEXT816(6) << 0x40;
param_2 = 0;
}
else {
JS_DefinePropertyValueUint32(param_1,uVar1,auVar3._8_8_,0,param_2,param_3,CONCAT44(uVar2,7));
JS_DefinePropertyValueUint32(param_1,uVar1,auVar3._8_8_,1,param_4,0,7);
param_2 = uVar1 & 0xffffffff00000000;
}
}
auVar4._0_8_ = auVar3._0_8_ & 0xffffffff | param_2;
auVar4._8_8_ = auVar3._8_8_;
return auVar4;
}
| |
24,023 | tr_align | 3fs/build_O3/src/apache-arrow-cpp/cpp/zlib_ep-prefix/src/zlib_ep/trees.c | void ZLIB_INTERNAL _tr_align(s)
deflate_state *s;
{
send_bits(s, STATIC_TREES<<1, 3);
send_code(s, END_BLOCK, static_ltree);
#ifdef ZLIB_DEBUG
s->compressed_len += 10L; /* 3 for block type, 7 for EOB */
#endif
bi_flush(s);
} | O3 | c | tr_align:
movl 0x1734(%rdi), %eax
movl $0x2, %esi
movl $0x2, %edx
movl %eax, %ecx
shll %cl, %edx
orw 0x1730(%rdi), %dx
movw %dx, 0x1730(%rdi)
cmpl $0xe, %eax
jl 0xd0df
movq 0x10(%rdi), %rax
movq 0x28(%rdi), %rcx
leaq 0x1(%rcx), %r8
movq %r8, 0x28(%rdi)
movb %dl, (%rax,%rcx)
movb 0x1731(%rdi), %al
movq 0x10(%rdi), %rcx
movq 0x28(%rdi), %rdx
leaq 0x1(%rdx), %r8
movq %r8, 0x28(%rdi)
movb %al, (%rcx,%rdx)
movl 0x1734(%rdi), %eax
movb $0x10, %cl
subb %al, %cl
shrl %cl, %esi
movw %si, 0x1730(%rdi)
addl $-0xd, %eax
movl %esi, %edx
jmp 0xd0e2
addl $0x3, %eax
movl %eax, 0x1734(%rdi)
cmpl $0xa, %eax
jl 0xd12d
movq 0x10(%rdi), %rax
movq 0x28(%rdi), %rcx
leaq 0x1(%rcx), %rsi
movq %rsi, 0x28(%rdi)
movb %dl, (%rax,%rcx)
movb 0x1731(%rdi), %al
movq 0x10(%rdi), %rcx
movq 0x28(%rdi), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%rdi)
movb %al, (%rcx,%rdx)
movw $0x0, 0x1730(%rdi)
movl 0x1734(%rdi), %eax
addl $-0x9, %eax
jmp 0xd130
addl $0x7, %eax
movl %eax, 0x1734(%rdi)
jmp 0xcfec
| _tr_align:
mov eax, [rdi+1734h]
mov esi, 2
mov edx, 2
mov ecx, eax
shl edx, cl
or dx, [rdi+1730h]
mov [rdi+1730h], dx
cmp eax, 0Eh
jl short loc_D0DF
mov rax, [rdi+10h]
mov rcx, [rdi+28h]
lea r8, [rcx+1]
mov [rdi+28h], r8
mov [rax+rcx], dl
mov al, [rdi+1731h]
mov rcx, [rdi+10h]
mov rdx, [rdi+28h]
lea r8, [rdx+1]
mov [rdi+28h], r8
mov [rcx+rdx], al
mov eax, [rdi+1734h]
mov cl, 10h
sub cl, al
shr esi, cl
mov [rdi+1730h], si
add eax, 0FFFFFFF3h
mov edx, esi
jmp short loc_D0E2
loc_D0DF:
add eax, 3
loc_D0E2:
mov [rdi+1734h], eax
cmp eax, 0Ah
jl short loc_D12D
mov rax, [rdi+10h]
mov rcx, [rdi+28h]
lea rsi, [rcx+1]
mov [rdi+28h], rsi
mov [rax+rcx], dl
mov al, [rdi+1731h]
mov rcx, [rdi+10h]
mov rdx, [rdi+28h]
lea rsi, [rdx+1]
mov [rdi+28h], rsi
mov [rcx+rdx], al
mov word ptr [rdi+1730h], 0
mov eax, [rdi+1734h]
add eax, 0FFFFFFF7h
jmp short loc_D130
loc_D12D:
add eax, 7
loc_D130:
mov [rdi+1734h], eax
jmp bi_flush
| long long tr_align(long long a1)
{
int v1; // eax
long long v2; // rdx
long long v3; // rax
long long v4; // rcx
long long v5; // rcx
unsigned int v6; // esi
int v7; // eax
long long v8; // rax
long long v9; // rcx
long long v10; // rcx
long long v11; // rdx
int v12; // eax
v1 = *(_DWORD *)(a1 + 5940);
LOWORD(v2) = *(_WORD *)(a1 + 5936) | (2 << v1);
*(_WORD *)(a1 + 5936) = v2;
if ( v1 < 14 )
{
v7 = v1 + 3;
}
else
{
v3 = *(_QWORD *)(a1 + 16);
v4 = *(_QWORD *)(a1 + 40);
*(_QWORD *)(a1 + 40) = v4 + 1;
*(_BYTE *)(v3 + v4) = v2;
LOBYTE(v3) = *(_BYTE *)(a1 + 5937);
v5 = *(_QWORD *)(a1 + 16);
v2 = *(_QWORD *)(a1 + 40);
*(_QWORD *)(a1 + 40) = v2 + 1;
*(_BYTE *)(v5 + v2) = v3;
LODWORD(v3) = *(_DWORD *)(a1 + 5940);
v6 = 2u >> (16 - v3);
*(_WORD *)(a1 + 5936) = v6;
v7 = v3 - 13;
LOBYTE(v2) = v6;
}
*(_DWORD *)(a1 + 5940) = v7;
if ( v7 < 10 )
{
v12 = v7 + 7;
}
else
{
v8 = *(_QWORD *)(a1 + 16);
v9 = *(_QWORD *)(a1 + 40);
*(_QWORD *)(a1 + 40) = v9 + 1;
*(_BYTE *)(v8 + v9) = v2;
LOBYTE(v8) = *(_BYTE *)(a1 + 5937);
v10 = *(_QWORD *)(a1 + 16);
v11 = *(_QWORD *)(a1 + 40);
*(_QWORD *)(a1 + 40) = v11 + 1;
*(_BYTE *)(v10 + v11) = v8;
*(_WORD *)(a1 + 5936) = 0;
v12 = *(_DWORD *)(a1 + 5940) - 9;
}
*(_DWORD *)(a1 + 5940) = v12;
return bi_flush(a1);
}
| _tr_align:
MOV EAX,dword ptr [RDI + 0x1734]
MOV ESI,0x2
MOV EDX,0x2
MOV ECX,EAX
SHL EDX,CL
OR DX,word ptr [RDI + 0x1730]
MOV word ptr [RDI + 0x1730],DX
CMP EAX,0xe
JL 0x0010d0df
MOV RAX,qword ptr [RDI + 0x10]
MOV RCX,qword ptr [RDI + 0x28]
LEA R8,[RCX + 0x1]
MOV qword ptr [RDI + 0x28],R8
MOV byte ptr [RAX + RCX*0x1],DL
MOV AL,byte ptr [RDI + 0x1731]
MOV RCX,qword ptr [RDI + 0x10]
MOV RDX,qword ptr [RDI + 0x28]
LEA R8,[RDX + 0x1]
MOV qword ptr [RDI + 0x28],R8
MOV byte ptr [RCX + RDX*0x1],AL
MOV EAX,dword ptr [RDI + 0x1734]
MOV CL,0x10
SUB CL,AL
SHR ESI,CL
MOV word ptr [RDI + 0x1730],SI
ADD EAX,-0xd
MOV EDX,ESI
JMP 0x0010d0e2
LAB_0010d0df:
ADD EAX,0x3
LAB_0010d0e2:
MOV dword ptr [RDI + 0x1734],EAX
CMP EAX,0xa
JL 0x0010d12d
MOV RAX,qword ptr [RDI + 0x10]
MOV RCX,qword ptr [RDI + 0x28]
LEA RSI,[RCX + 0x1]
MOV qword ptr [RDI + 0x28],RSI
MOV byte ptr [RAX + RCX*0x1],DL
MOV AL,byte ptr [RDI + 0x1731]
MOV RCX,qword ptr [RDI + 0x10]
MOV RDX,qword ptr [RDI + 0x28]
LEA RSI,[RDX + 0x1]
MOV qword ptr [RDI + 0x28],RSI
MOV byte ptr [RCX + RDX*0x1],AL
MOV word ptr [RDI + 0x1730],0x0
MOV EAX,dword ptr [RDI + 0x1734]
ADD EAX,-0x9
JMP 0x0010d130
LAB_0010d12d:
ADD EAX,0x7
LAB_0010d130:
MOV dword ptr [RDI + 0x1734],EAX
JMP 0x0010cfec
|
void _tr_align(long param_1)
{
long lVar1;
int iVar2;
ushort uVar3;
uint uVar4;
iVar2 = *(int *)(param_1 + 0x1734);
uVar3 = (ushort)(2 << ((byte)iVar2 & 0x1f)) | *(ushort *)(param_1 + 0x1730);
uVar4 = (uint)uVar3;
*(ushort *)(param_1 + 0x1730) = uVar3;
if (iVar2 < 0xe) {
iVar2 = iVar2 + 3;
}
else {
lVar1 = *(long *)(param_1 + 0x28);
*(long *)(param_1 + 0x28) = lVar1 + 1;
*(char *)(*(long *)(param_1 + 0x10) + lVar1) = (char)uVar3;
lVar1 = *(long *)(param_1 + 0x28);
*(long *)(param_1 + 0x28) = lVar1 + 1;
*(int1 *)(*(long *)(param_1 + 0x10) + lVar1) = *(int1 *)(param_1 + 0x1731);
uVar4 = 2 >> (0x10U - (char)*(int *)(param_1 + 0x1734) & 0x1f);
*(short *)(param_1 + 0x1730) = (short)uVar4;
iVar2 = *(int *)(param_1 + 0x1734) + -0xd;
}
*(int *)(param_1 + 0x1734) = iVar2;
if (iVar2 < 10) {
iVar2 = iVar2 + 7;
}
else {
lVar1 = *(long *)(param_1 + 0x28);
*(long *)(param_1 + 0x28) = lVar1 + 1;
*(char *)(*(long *)(param_1 + 0x10) + lVar1) = (char)uVar4;
lVar1 = *(long *)(param_1 + 0x28);
*(long *)(param_1 + 0x28) = lVar1 + 1;
*(int1 *)(*(long *)(param_1 + 0x10) + lVar1) = *(int1 *)(param_1 + 0x1731);
*(int2 *)(param_1 + 0x1730) = 0;
iVar2 = *(int *)(param_1 + 0x1734) + -9;
}
*(int *)(param_1 + 0x1734) = iVar2;
bi_flush();
return;
}
| |
24,024 | THD::store_globals() | eloqsql/sql/sql_class.cc | void THD::store_globals()
{
/*
Assert that thread_stack is initialized: it's necessary to be able
to track stack overrun.
*/
DBUG_ASSERT(thread_stack);
set_current_thd(this);
/*
mysys_var is concurrently readable by a killer thread.
It is protected by LOCK_thd_kill, it is not needed to lock while the
pointer is changing from NULL not non-NULL. If the kill thread reads
NULL it doesn't refer to anything, but if it is non-NULL we need to
ensure that the thread doesn't proceed to assign another thread to
have the mysys_var reference (which in fact refers to the worker
threads local storage with key THR_KEY_mysys.
*/
mysys_var=my_thread_var;
/*
Let mysqld define the thread id (not mysys)
This allows us to move THD to different threads if needed.
*/
mysys_var->id= thread_id;
/* thread_dbug_id should not change for a THD */
if (!thread_dbug_id)
thread_dbug_id= mysys_var->dbug_id;
else
{
/* This only changes if we are using pool-of-threads */
mysys_var->dbug_id= thread_dbug_id;
}
#ifdef __NR_gettid
os_thread_id= (uint32)syscall(__NR_gettid);
#else
os_thread_id= 0;
#endif
real_id= pthread_self(); // For debugging
mysys_var->stack_ends_here= thread_stack + // for consistency, see libevent_thread_proc
STACK_DIRECTION * (long)my_thread_stack_size;
if (net.vio)
{
net.thd= this;
}
/*
We have to call thr_lock_info_init() again here as THD may have been
created in another thread
*/
thr_lock_info_init(&lock_info, mysys_var);
} | O0 | cpp | THD::store_globals():
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0x881f86
movq -0x10(%rbp), %rdi
callq 0x7cc200
callq 0x12ca030
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x2708(%rax)
movq 0x3e48(%rax), %rdx
movq 0x2708(%rax), %rcx
movq %rdx, 0xd0(%rcx)
cmpq $0x0, 0x3e50(%rax)
jne 0x881fdc
movq -0x10(%rbp), %rax
movq 0x2708(%rax), %rcx
movq 0xd8(%rcx), %rcx
movq %rcx, 0x3e50(%rax)
jmp 0x881ff5
movq -0x10(%rbp), %rax
movq 0x3e50(%rax), %rcx
movq 0x2708(%rax), %rax
movq %rcx, 0xd8(%rax)
movl $0xba, %edi
movb $0x0, %al
callq 0x758370
movq %rax, %rcx
movq -0x10(%rbp), %rax
movl %ecx, 0x3e58(%rax)
callq 0x758a70
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x3e40(%rax)
movq 0x1e98(%rax), %rdx
leaq 0x128b901(%rip), %rcx # 0x1b0d930
movq (%rcx), %rcx
shlq $0x0, %rcx
addq %rcx, %rdx
movq 0x2708(%rax), %rcx
movq %rdx, 0xb8(%rcx)
cmpq $0x0, 0x2c8(%rax)
je 0x88205c
movq -0x10(%rbp), %rax
movq %rax, 0x350(%rax)
movq -0x10(%rbp), %rax
movq %rax, %rdi
addq $0x1cd8, %rdi # imm = 0x1CD8
movq 0x2708(%rax), %rsi
callq 0x12cdce0
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
| _ZN3THD13store_globalsEv:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
jmp short $+2
loc_881F86:
mov rdi, [rbp+var_10]
call _Z15set_current_thdP3THD; set_current_thd(THD *)
call _my_thread_var
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+2708h], rcx
mov rdx, [rax+3E48h]
mov rcx, [rax+2708h]
mov [rcx+0D0h], rdx
cmp qword ptr [rax+3E50h], 0
jnz short loc_881FDC
mov rax, [rbp+var_10]
mov rcx, [rax+2708h]
mov rcx, [rcx+0D8h]
mov [rax+3E50h], rcx
jmp short loc_881FF5
loc_881FDC:
mov rax, [rbp+var_10]
mov rcx, [rax+3E50h]
mov rax, [rax+2708h]
mov [rax+0D8h], rcx
loc_881FF5:
mov edi, 0BAh
mov al, 0
call _syscall
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+3E58h], ecx
call _pthread_self
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+3E40h], rcx
mov rdx, [rax+1E98h]
lea rcx, my_thread_stack_size
mov rcx, [rcx]
shl rcx, 0
add rdx, rcx
mov rcx, [rax+2708h]
mov [rcx+0B8h], rdx
cmp qword ptr [rax+2C8h], 0
jz short loc_88205C
mov rax, [rbp+var_10]
mov [rax+350h], rax
loc_88205C:
mov rax, [rbp+var_10]
mov rdi, rax
add rdi, 1CD8h
mov rsi, [rax+2708h]
call thr_lock_info_init
add rsp, 10h
pop rbp
retn
| long long THD::store_globals(THD *this)
{
set_current_thd(this);
*((_QWORD *)this + 1249) = my_thread_var();
*(_QWORD *)(*((_QWORD *)this + 1249) + 208LL) = *((_QWORD *)this + 1993);
if ( *((_QWORD *)this + 1994) )
*(_QWORD *)(*((_QWORD *)this + 1249) + 216LL) = *((_QWORD *)this + 1994);
else
*((_QWORD *)this + 1994) = *(_QWORD *)(*((_QWORD *)this + 1249) + 216LL);
*((_DWORD *)this + 3990) = syscall(186LL);
*((_QWORD *)this + 1992) = pthread_self();
*(_QWORD *)(*((_QWORD *)this + 1249) + 184LL) = my_thread_stack_size + *((_QWORD *)this + 979);
if ( *((_QWORD *)this + 89) )
*((_QWORD *)this + 106) = this;
return thr_lock_info_init((char *)this + 7384, *((_QWORD *)this + 1249));
}
| __cxx_global_var_init.671:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
LEA RDI,[RBP + -0x8]
MOV ESI,0x1
MOV EDX,0x124
CALL 0x00b74e50
MOV RAX,qword ptr [RBP + -0x8]
LEA RDI,[0x1dea1a8]
LEA RSI,[0x14ac37e]
LEA RDX,[0x14ac390]
MOV ECX,0x400
LEA R8,[0x1dc7f64]
LEA R9,[0x1dc9580]
SUB R8,R9
MOV R9D,0x1
XOR R10D,R10D
XOR R10D,R10D
MOV qword ptr [RSP],RAX
MOV dword ptr [RSP + 0x8],0x0
MOV qword ptr [RSP + 0x10],0x0
MOV dword ptr [RSP + 0x18],0x0
MOV qword ptr [RSP + 0x20],0x0
MOV qword ptr [RSP + 0x28],0x0
MOV qword ptr [RSP + 0x30],0x0
CALL 0x00b74e70
LEA RDI,[0xb75070]
LEA RSI,[0x1dea1a8]
LEA RDX,[0x1bc5008]
CALL 0x00858cf0
ADD RSP,0x40
POP RBP
RET
|
void __cxx_global_var_init_671(void)
{
int8 local_10;
CMD_LINE::CMD_LINE((CMD_LINE *)&local_10,1,0x124);
Sys_var_mybool::Sys_var_mybool
((Sys_var_mybool *)Sys_skip_name_resolve,"skip_name_resolve",
"Don\'t resolve hostnames. All hostnames are IP\'s or \'localhost\'.",0x400,
0xffffffffffffe9e4,1,local_10,0,0,0,0,0,0);
__cxa_atexit(Sys_var_mybool::~Sys_var_mybool,Sys_skip_name_resolve,&__dso_handle);
return;
}
| |
24,025 | coro::shared_mutex<coro::io_scheduler>::unlock() | AlayaLite/build_O3/_deps/libcoro-src/include/coro/shared_mutex.hpp | auto unlock() -> void
{
std::unique_lock lk{m_mutex};
if (m_head_waiter != nullptr)
{
wake_waiters(lk);
}
else
{
m_state = state::unlocked;
}
} | O3 | cpp | coro::shared_mutex<coro::io_scheduler>::unlock():
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
leaq 0x8(%rsp), %r14
movq %rax, (%r14)
movb $0x0, 0x8(%r14)
movq %r14, %rdi
callq 0x2e99c
movb $0x1, 0x8(%r14)
cmpq $0x0, 0x50(%rbx)
je 0x34a96
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x34b36
jmp 0x34a9d
movl $0x0, 0x38(%rbx)
leaq 0x8(%rsp), %rdi
callq 0x2e986
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2e986
movq %rbx, %rdi
callq 0x17740
| _ZN4coro12shared_mutexINS_12io_schedulerEE6unlockEv:
push r14
push rbx
sub rsp, 18h
mov rbx, rdi
lea rax, [rdi+10h]
lea r14, [rsp+28h+var_20]
mov [r14], rax
mov byte ptr [r14+8], 0
mov rdi, r14
call _ZNSt11unique_lockISt5mutexE4lockEv; std::unique_lock<std::mutex>::lock(void)
mov byte ptr [r14+8], 1
cmp qword ptr [rbx+50h], 0
jz short loc_34A96
lea rsi, [rsp+28h+var_20]
mov rdi, rbx
call _ZN4coro12shared_mutexINS_12io_schedulerEE12wake_waitersERSt11unique_lockISt5mutexE; coro::shared_mutex<coro::io_scheduler>::wake_waiters(std::unique_lock<std::mutex> &)
jmp short loc_34A9D
loc_34A96:
mov dword ptr [rbx+38h], 0
loc_34A9D:
lea rdi, [rsp+28h+var_20]
call _ZNSt11unique_lockISt5mutexED2Ev; std::unique_lock<std::mutex>::~unique_lock()
add rsp, 18h
pop rbx
pop r14
retn
mov rbx, rax
lea rdi, [rsp+arg_0]
call _ZNSt11unique_lockISt5mutexED2Ev; std::unique_lock<std::mutex>::~unique_lock()
mov rdi, rbx
call __Unwind_Resume
| long long coro::shared_mutex<coro::io_scheduler>::unlock(long long a1)
{
long long result; // rax
long long v2; // [rsp+8h] [rbp-20h] BYREF
char v3; // [rsp+10h] [rbp-18h]
v2 = a1 + 16;
v3 = 0;
result = std::unique_lock<std::mutex>::lock(&v2);
v3 = 1;
if ( *(_QWORD *)(a1 + 80) )
result = coro::shared_mutex<coro::io_scheduler>::wake_waiters(a1, &v2);
else
*(_DWORD *)(a1 + 56) = 0;
std::unique_lock<std::mutex>::~unique_lock((long long)&v2);
return result;
}
| unlock:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
LEA R14,[RSP + 0x8]
MOV qword ptr [R14],RAX
MOV byte ptr [R14 + 0x8],0x0
MOV RDI,R14
CALL 0x0012e99c
MOV byte ptr [R14 + 0x8],0x1
CMP qword ptr [RBX + 0x50],0x0
JZ 0x00134a96
LAB_00134a87:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x00134b36
LAB_00134a94:
JMP 0x00134a9d
LAB_00134a96:
MOV dword ptr [RBX + 0x38],0x0
LAB_00134a9d:
LEA RDI,[RSP + 0x8]
CALL 0x0012e986
ADD RSP,0x18
POP RBX
POP R14
RET
|
/* coro::shared_mutex<coro::io_scheduler>::unlock() */
void __thiscall
coro::shared_mutex<coro::io_scheduler>::unlock(shared_mutex<coro::io_scheduler> *this)
{
shared_mutex<coro::io_scheduler> *local_20;
int1 local_18;
local_20 = this + 0x10;
local_18 = 0;
std::unique_lock<std::mutex>::lock((unique_lock<std::mutex> *)&local_20);
local_18 = 1;
if (*(long *)(this + 0x50) == 0) {
*(int4 *)(this + 0x38) = 0;
}
else {
/* try { // try from 00134a87 to 00134a93 has its CatchHandler @ 00134aaf */
wake_waiters(this,(unique_lock *)&local_20);
}
std::unique_lock<std::mutex>::~unique_lock((unique_lock<std::mutex> *)&local_20);
return;
}
| |
24,026 | bc_reader_free | bluesky950520[P]quickjs/quickjs.c | static void bc_reader_free(BCReaderState *s)
{
int i;
if (s->idx_to_atom) {
for(i = 0; i < s->idx_to_atom_count; i++) {
JS_FreeAtom(s->ctx, s->idx_to_atom[i]);
}
js_free(s->ctx, s->idx_to_atom);
}
js_free(s->ctx, s->objects);
} | O0 | c | bc_reader_free:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
cmpq $0x0, 0x28(%rax)
je 0x4ca8c
movl $0x0, 0xc(%rsp)
movl 0xc(%rsp), %eax
movq 0x10(%rsp), %rcx
cmpl 0x24(%rcx), %eax
jae 0x4ca76
movq 0x10(%rsp), %rax
movq (%rax), %rdi
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movslq 0xc(%rsp), %rcx
movl (%rax,%rcx,4), %esi
callq 0x29040
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x4ca3d
movq 0x10(%rsp), %rax
movq (%rax), %rdi
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rsi
callq 0x21db0
movq 0x10(%rsp), %rax
movq (%rax), %rdi
movq 0x10(%rsp), %rax
movq 0x38(%rax), %rsi
callq 0x21db0
addq $0x18, %rsp
retq
nopw (%rax,%rax)
| bc_reader_free:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov rax, [rsp+18h+var_8]
cmp qword ptr [rax+28h], 0
jz short loc_4CA8C
mov [rsp+18h+var_C], 0
loc_4CA3D:
mov eax, [rsp+18h+var_C]
mov rcx, [rsp+18h+var_8]
cmp eax, [rcx+24h]
jnb short loc_4CA76
mov rax, [rsp+18h+var_8]
mov rdi, [rax]
mov rax, [rsp+18h+var_8]
mov rax, [rax+28h]
movsxd rcx, [rsp+18h+var_C]
mov esi, [rax+rcx*4]
call JS_FreeAtom
mov eax, [rsp+18h+var_C]
add eax, 1
mov [rsp+18h+var_C], eax
jmp short loc_4CA3D
loc_4CA76:
mov rax, [rsp+18h+var_8]
mov rdi, [rax]
mov rax, [rsp+18h+var_8]
mov rsi, [rax+28h]
call js_free
loc_4CA8C:
mov rax, [rsp+18h+var_8]
mov rdi, [rax]
mov rax, [rsp+18h+var_8]
mov rsi, [rax+38h]
call js_free
add rsp, 18h
retn
| void bc_reader_free(long long a1)
{
unsigned int i; // [rsp+Ch] [rbp-Ch]
if ( *(_QWORD *)(a1 + 40) )
{
for ( i = 0; i < *(_DWORD *)(a1 + 36); ++i )
JS_FreeAtom(*(_QWORD *)a1, *(_DWORD *)(*(_QWORD *)(a1 + 40) + 4LL * (int)i));
js_free(*(_QWORD *)a1, *(_QWORD *)(a1 + 40));
}
js_free(*(_QWORD *)a1, *(_QWORD *)(a1 + 56));
}
| bc_reader_free:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,qword ptr [RSP + 0x10]
CMP qword ptr [RAX + 0x28],0x0
JZ 0x0014ca8c
MOV dword ptr [RSP + 0xc],0x0
LAB_0014ca3d:
MOV EAX,dword ptr [RSP + 0xc]
MOV RCX,qword ptr [RSP + 0x10]
CMP EAX,dword ptr [RCX + 0x24]
JNC 0x0014ca76
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX + 0x28]
MOVSXD RCX,dword ptr [RSP + 0xc]
MOV ESI,dword ptr [RAX + RCX*0x4]
CALL 0x00129040
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,0x1
MOV dword ptr [RSP + 0xc],EAX
JMP 0x0014ca3d
LAB_0014ca76:
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX + 0x28]
CALL 0x00121db0
LAB_0014ca8c:
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX + 0x38]
CALL 0x00121db0
ADD RSP,0x18
RET
|
void bc_reader_free(int8 *param_1)
{
uint local_c;
if (param_1[5] != 0) {
for (local_c = 0; local_c < *(uint *)((long)param_1 + 0x24); local_c = local_c + 1) {
JS_FreeAtom(*param_1,*(int4 *)(param_1[5] + (long)(int)local_c * 4));
}
js_free(*param_1,param_1[5]);
}
js_free(*param_1,param_1[7]);
return;
}
| |
24,027 | pfs_end_file_open_wait_v1 | eloqsql/storage/perfschema/pfs.cc | PSI_file*
pfs_end_file_open_wait_v1(PSI_file_locker *locker,
void *result)
{
PSI_file_locker_state *state= reinterpret_cast<PSI_file_locker_state*> (locker);
assert(state != NULL);
switch (state->m_operation)
{
case PSI_FILE_STAT:
case PSI_FILE_RENAME:
break;
case PSI_FILE_STREAM_OPEN:
case PSI_FILE_CREATE:
case PSI_FILE_OPEN:
if (result != NULL)
{
PFS_file_class *klass= reinterpret_cast<PFS_file_class*> (state->m_class);
PFS_thread *thread= reinterpret_cast<PFS_thread*> (state->m_thread);
const char *name= state->m_name;
uint len= (uint)strlen(name);
PFS_file *pfs_file= find_or_create_file(thread, klass, name, len, true);
state->m_file= reinterpret_cast<PSI_file*> (pfs_file);
}
break;
default:
assert(false);
break;
}
pfs_end_file_wait_v1(locker, 0);
return state->m_file;
} | O0 | cpp | pfs_end_file_open_wait_v1:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x44(%rbp)
testl %eax, %eax
je 0x4cd1b
jmp 0x4ccf8
movl -0x44(%rbp), %eax
addl $-0x2, %eax
subl $0x2, %eax
jb 0x4cd1b
jmp 0x4cd05
movl -0x44(%rbp), %eax
subl $0xb, %eax
je 0x4cd19
jmp 0x4cd0f
movl -0x44(%rbp), %eax
subl $0xf, %eax
jne 0x4cd7e
jmp 0x4cd19
jmp 0x4cd80
cmpq $0x0, -0x10(%rbp)
je 0x4cd7c
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
callq 0x26150
movl %eax, -0x34(%rbp)
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x30(%rbp), %rdx
movl -0x34(%rbp), %ecx
movl $0x1, %r8d
callq 0x3aba0
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0x4cd80
jmp 0x4cd80
movq -0x8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x4cda0
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| pfs_end_file_open_wait_v1:
push rbp
mov rbp, rsp
sub rsp, 50h
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 eax, [rax+4]
mov [rbp+var_44], eax
test eax, eax
jz short loc_4CD1B
jmp short $+2
loc_4CCF8:
mov eax, [rbp+var_44]
add eax, 0FFFFFFFEh
sub eax, 2
jb short loc_4CD1B
jmp short $+2
loc_4CD05:
mov eax, [rbp+var_44]
sub eax, 0Bh
jz short loc_4CD19
jmp short $+2
loc_4CD0F:
mov eax, [rbp+var_44]
sub eax, 0Fh
jnz short loc_4CD7E
jmp short $+2
loc_4CD19:
jmp short loc_4CD80
loc_4CD1B:
cmp [rbp+var_10], 0
jz short loc_4CD7C
mov rax, [rbp+var_18]
mov rax, [rax+18h]
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
mov rax, [rax+20h]
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov rax, [rax+10h]
mov [rbp+var_30], rax
mov rdi, [rbp+var_30]
call _strlen
mov [rbp+var_34], eax
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_30]
mov ecx, [rbp+var_34]
mov r8d, 1
call _Z19find_or_create_fileP10PFS_threadP14PFS_file_classPKcjb; find_or_create_file(PFS_thread *,PFS_file_class *,char const*,uint,bool)
mov [rbp+var_40], rax
mov rcx, [rbp+var_40]
mov rax, [rbp+var_18]
mov [rax+8], rcx
loc_4CD7C:
jmp short loc_4CD80
loc_4CD7E:
jmp short $+2
loc_4CD80:
mov rdi, [rbp+var_8]
xor eax, eax
mov esi, eax
call pfs_end_file_wait_v1
mov rax, [rbp+var_18]
mov rax, [rax+8]
add rsp, 50h
pop rbp
retn
| long long pfs_end_file_open_wait_v1(long long a1, long long a2)
{
int v3; // [rsp+Ch] [rbp-44h]
unsigned int v4; // [rsp+1Ch] [rbp-34h]
_BYTE *v5; // [rsp+20h] [rbp-30h]
PFS_thread *v6; // [rsp+28h] [rbp-28h]
PFS_instr_class *v7; // [rsp+30h] [rbp-20h]
v3 = *(_DWORD *)(a1 + 4);
if ( !v3 || (unsigned int)(v3 - 2) < 2 )
{
if ( a2 )
{
v7 = *(PFS_instr_class **)(a1 + 24);
v6 = *(PFS_thread **)(a1 + 32);
v5 = *(_BYTE **)(a1 + 16);
v4 = strlen(v5);
*(_QWORD *)(a1 + 8) = find_or_create_file(v6, v7, v5, v4, 1);
}
}
pfs_end_file_wait_v1(a1, 0LL);
return *(_QWORD *)(a1 + 8);
}
| pfs_end_file_open_wait_v1:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
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 EAX,dword ptr [RAX + 0x4]
MOV dword ptr [RBP + -0x44],EAX
TEST EAX,EAX
JZ 0x0014cd1b
JMP 0x0014ccf8
LAB_0014ccf8:
MOV EAX,dword ptr [RBP + -0x44]
ADD EAX,-0x2
SUB EAX,0x2
JC 0x0014cd1b
JMP 0x0014cd05
LAB_0014cd05:
MOV EAX,dword ptr [RBP + -0x44]
SUB EAX,0xb
JZ 0x0014cd19
JMP 0x0014cd0f
LAB_0014cd0f:
MOV EAX,dword ptr [RBP + -0x44]
SUB EAX,0xf
JNZ 0x0014cd7e
JMP 0x0014cd19
LAB_0014cd19:
JMP 0x0014cd80
LAB_0014cd1b:
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0014cd7c
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x00126150
MOV dword ptr [RBP + -0x34],EAX
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RBP + -0x34]
MOV R8D,0x1
CALL 0x0013aba0
MOV qword ptr [RBP + -0x40],RAX
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x8],RCX
LAB_0014cd7c:
JMP 0x0014cd80
LAB_0014cd7e:
JMP 0x0014cd80
LAB_0014cd80:
MOV RDI,qword ptr [RBP + -0x8]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x0014cda0
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
ADD RSP,0x50
POP RBP
RET
|
int8 pfs_end_file_open_wait_v1(long param_1,long param_2)
{
PFS_file_class *pPVar1;
PFS_thread *pPVar2;
char *__s;
size_t sVar3;
int8 uVar4;
if (((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 4) - 2U < 2)) && (param_2 != 0)) {
pPVar1 = *(PFS_file_class **)(param_1 + 0x18);
pPVar2 = *(PFS_thread **)(param_1 + 0x20);
__s = *(char **)(param_1 + 0x10);
sVar3 = strlen(__s);
uVar4 = find_or_create_file(pPVar2,pPVar1,__s,(uint)sVar3,true);
*(int8 *)(param_1 + 8) = uVar4;
}
pfs_end_file_wait_v1(param_1,0);
return *(int8 *)(param_1 + 8);
}
| |
24,028 | my_uca_implicit_weight_put | eloqsql/strings/ctype-uca.c | static inline void
my_uca_implicit_weight_put(uint16 *to, my_wc_t code, uint level)
{
switch (level) {
case 1: to[0]= 0x0020; to[1]= 0; break; /* Secondary level */
case 2: to[0]= 0x0002; to[1]= 0; break; /* Tertiary level */
case 3: to[0]= 0x0001; to[1]= 0; break; /* Quaternary level */
default:
DBUG_ASSERT(0);
case 0:
break;
}
/* Primary level */
to[0]= (uint16)(code >> 15) + my_uca_implicit_weight_base(code);
to[1]= (code & 0x7FFF) | 0x8000;
to[2]= 0;
} | O0 | c | my_uca_implicit_weight_put:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq %rax, -0x20(%rbp)
subq $0x3, %rax
ja 0x508b3
movq -0x20(%rbp), %rax
leaq 0xf1461(%rip), %rcx # 0x141ccc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rax
movw $0x20, (%rax)
movq -0x8(%rbp), %rax
movw $0x0, 0x2(%rax)
jmp 0x508bb
movq -0x8(%rbp), %rax
movw $0x2, (%rax)
movq -0x8(%rbp), %rax
movw $0x0, 0x2(%rax)
jmp 0x508bb
movq -0x8(%rbp), %rax
movw $0x1, (%rax)
movq -0x8(%rbp), %rax
movw $0x0, 0x2(%rax)
jmp 0x508bb
jmp 0x508b5
jmp 0x508b7
jmp 0x508b9
jmp 0x508bb
movq -0x10(%rbp), %rax
shrq $0xf, %rax
movzwl %ax, %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rdi
callq 0x50920
movw %ax, %cx
movl -0x24(%rbp), %eax
movzwl %cx, %ecx
addl %ecx, %eax
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, (%rax)
movq -0x10(%rbp), %rax
andq $0x7fff, %rax # imm = 0x7FFF
orq $0x8000, %rax # imm = 0x8000
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, 0x2(%rax)
movq -0x8(%rbp), %rax
movw $0x0, 0x4(%rax)
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_uca_implicit_weight_put:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov eax, [rbp+var_14]
mov [rbp+var_20], rax
sub rax, 3; switch 4 cases
ja short def_50872; jumptable 0000000000050872 default case
mov rax, [rbp+var_20]
lea rcx, jpt_50872
movsxd rax, ds:(jpt_50872 - 141CCCh)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_50874:
mov rax, [rbp+var_8]; jumptable 0000000000050872 case 1
mov word ptr [rax], 20h ; ' '
mov rax, [rbp+var_8]
mov word ptr [rax+2], 0
jmp short loc_508BB
loc_50889:
mov rax, [rbp+var_8]; jumptable 0000000000050872 case 2
mov word ptr [rax], 2
mov rax, [rbp+var_8]
mov word ptr [rax+2], 0
jmp short loc_508BB
loc_5089E:
mov rax, [rbp+var_8]; jumptable 0000000000050872 case 3
mov word ptr [rax], 1
mov rax, [rbp+var_8]
mov word ptr [rax+2], 0
jmp short loc_508BB
def_50872:
jmp short $+2; jumptable 0000000000050872 default case
loc_508B5:
jmp short $+2
loc_508B7:
jmp short $+2; jumptable 0000000000050872 case 0
loc_508B9:
jmp short $+2; jumptable 0000000000050872 case 0
loc_508BB:
mov rax, [rbp+var_10]
shr rax, 0Fh
movzx eax, ax
mov [rbp+var_24], eax
mov rdi, [rbp+var_10]
call my_uca_implicit_weight_base
mov cx, ax
mov eax, [rbp+var_24]
movzx ecx, cx
add eax, ecx
mov cx, ax
mov rax, [rbp+var_8]
mov [rax], cx
mov rax, [rbp+var_10]
and rax, 7FFFh
or rax, 8000h
mov cx, ax
mov rax, [rbp+var_8]
mov [rax+2], cx
mov rax, [rbp+var_8]
mov word ptr [rax+4], 0
add rsp, 30h
pop rbp
retn
| _WORD * my_uca_implicit_weight_put(_WORD *a1, unsigned long long a2, int a3)
{
_WORD *result; // rax
switch ( a3 )
{
case 1:
*a1 = 32;
a1[1] = 0;
break;
case 2:
*a1 = 2;
a1[1] = 0;
break;
case 3:
*a1 = 1;
a1[1] = 0;
break;
default:
break;
}
*a1 = my_uca_implicit_weight_base(a2) + (a2 >> 15);
a1[1] = a2 & 0x7FFF | 0x8000;
result = a1;
a1[2] = 0;
return result;
}
| my_uca_implicit_weight_put:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV EAX,dword ptr [RBP + -0x14]
MOV qword ptr [RBP + -0x20],RAX
SUB RAX,0x3
JA 0x001508b3
MOV RAX,qword ptr [RBP + -0x20]
LEA RCX,[0x241ccc]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
MOV RAX,qword ptr [RBP + -0x8]
MOV word ptr [RAX],0x20
MOV RAX,qword ptr [RBP + -0x8]
MOV word ptr [RAX + 0x2],0x0
JMP 0x001508bb
caseD_2:
MOV RAX,qword ptr [RBP + -0x8]
MOV word ptr [RAX],0x2
MOV RAX,qword ptr [RBP + -0x8]
MOV word ptr [RAX + 0x2],0x0
JMP 0x001508bb
caseD_3:
MOV RAX,qword ptr [RBP + -0x8]
MOV word ptr [RAX],0x1
MOV RAX,qword ptr [RBP + -0x8]
MOV word ptr [RAX + 0x2],0x0
JMP 0x001508bb
LAB_001508b3:
JMP 0x001508b5
LAB_001508b5:
JMP 0x001508b7
LAB_001508b7:
JMP 0x001508b9
caseD_0:
JMP 0x001508bb
LAB_001508bb:
MOV RAX,qword ptr [RBP + -0x10]
SHR RAX,0xf
MOVZX EAX,AX
MOV dword ptr [RBP + -0x24],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00150920
MOV CX,AX
MOV EAX,dword ptr [RBP + -0x24]
MOVZX ECX,CX
ADD EAX,ECX
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x8]
MOV word ptr [RAX],CX
MOV RAX,qword ptr [RBP + -0x10]
AND RAX,0x7fff
OR RAX,0x8000
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x8]
MOV word ptr [RAX + 0x2],CX
MOV RAX,qword ptr [RBP + -0x8]
MOV word ptr [RAX + 0x4],0x0
ADD RSP,0x30
POP RBP
RET
|
void my_uca_implicit_weight_put(short *param_1,ulong param_2,int4 param_3)
{
short sVar1;
switch(param_3) {
default:
break;
case 1:
*param_1 = 0x20;
param_1[1] = 0;
break;
case 2:
*param_1 = 2;
param_1[1] = 0;
break;
case 3:
*param_1 = 1;
param_1[1] = 0;
}
sVar1 = my_uca_implicit_weight_base(param_2);
*param_1 = (short)(param_2 >> 0xf) + sVar1;
param_1[1] = (ushort)param_2 & 0x7fff | 0x8000;
param_1[2] = 0;
return;
}
| |
24,029 | js_map_mark | bluesky950520[P]quickjs/quickjs.c | static void js_map_mark(JSRuntime *rt, JSValue val, JS_MarkFunc *mark_func)
{
JSObject *p = JS_VALUE_GET_OBJ(val);
JSMapState *s;
struct list_head *el;
JSMapRecord *mr;
s = p->u.map_state;
if (s) {
list_for_each(el, &s->records) {
mr = list_entry(el, JSMapRecord, link);
if (!s->is_weak)
JS_MarkValue(rt, mr->key, mark_func);
JS_MarkValue(rt, mr->value, mark_func);
}
}
} | O1 | c | js_map_mark:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x30(%rsi), %r15
testq %r15, %r15
je 0x3af6c
leaq 0x8(%r15), %r12
movq 0x10(%r15), %r13
cmpq %r12, %r13
je 0x3af6c
movq %rcx, %rbx
movq %rdi, %r14
movl $0xfffffffe, %ebp # imm = 0xFFFFFFFE
cmpl $0x0, (%r15)
jne 0x3af44
movsd 0x20(%r13), %xmm0
movl 0x28(%r13), %eax
movsd %xmm0, (%rsp)
andl $-0x2, %eax
cmpl %ebp, %eax
jne 0x3af44
movq (%rsp), %rsi
movq %r14, %rdi
callq *%rbx
movsd 0x30(%r13), %xmm0
movl 0x38(%r13), %eax
movsd %xmm0, (%rsp)
andl $-0x2, %eax
cmpl %ebp, %eax
jne 0x3af63
movq (%rsp), %rsi
movq %r14, %rdi
callq *%rbx
movq 0x8(%r13), %r13
cmpq %r12, %r13
jne 0x3af1f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| js_map_mark:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15, [rsi+30h]
test r15, r15
jz short loc_3AF6C
lea r12, [r15+8]
mov r13, [r15+10h]
cmp r13, r12
jz short loc_3AF6C
mov rbx, rcx
mov r14, rdi
mov ebp, 0FFFFFFFEh
loc_3AF1F:
cmp dword ptr [r15], 0
jnz short loc_3AF44
movsd xmm0, qword ptr [r13+20h]
mov eax, [r13+28h]
movsd [rsp+38h+var_38], xmm0
and eax, 0FFFFFFFEh
cmp eax, ebp
jnz short loc_3AF44
mov rsi, [rsp+38h+var_38]
mov rdi, r14
call rbx
loc_3AF44:
movsd xmm0, qword ptr [r13+30h]
mov eax, [r13+38h]
movsd [rsp+38h+var_38], xmm0
and eax, 0FFFFFFFEh
cmp eax, ebp
jnz short loc_3AF63
mov rsi, [rsp+38h+var_38]
mov rdi, r14
call rbx
loc_3AF63:
mov r13, [r13+8]
cmp r13, r12
jnz short loc_3AF1F
loc_3AF6C:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long js_map_mark(long long a1, long long a2, long long a3, void ( *a4)(long long, _QWORD))
{
long long v4; // r15
long long i; // r13
long long result; // rax
v4 = *(_QWORD *)(a2 + 48);
if ( v4 )
{
for ( i = *(_QWORD *)(v4 + 16); i != v4 + 8; i = *(_QWORD *)(i + 8) )
{
if ( !*(_DWORD *)v4 && (*(_DWORD *)(i + 40) & 0xFFFFFFFE) == 0xFFFFFFFE )
a4(a1, *(_QWORD *)(i + 32));
result = *(_DWORD *)(i + 56) & 0xFFFFFFFE;
if ( (_DWORD)result == -2 )
result = ((long long ( *)(long long, _QWORD))a4)(a1, *(_QWORD *)(i + 48));
}
}
return result;
}
| js_map_mark:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,qword ptr [RSI + 0x30]
TEST R15,R15
JZ 0x0013af6c
LEA R12,[R15 + 0x8]
MOV R13,qword ptr [R15 + 0x10]
CMP R13,R12
JZ 0x0013af6c
MOV RBX,RCX
MOV R14,RDI
MOV EBP,0xfffffffe
LAB_0013af1f:
CMP dword ptr [R15],0x0
JNZ 0x0013af44
MOVSD XMM0,qword ptr [R13 + 0x20]
MOV EAX,dword ptr [R13 + 0x28]
MOVSD qword ptr [RSP],XMM0
AND EAX,0xfffffffe
CMP EAX,EBP
JNZ 0x0013af44
MOV RSI,qword ptr [RSP]
MOV RDI,R14
CALL RBX
LAB_0013af44:
MOVSD XMM0,qword ptr [R13 + 0x30]
MOV EAX,dword ptr [R13 + 0x38]
MOVSD qword ptr [RSP],XMM0
AND EAX,0xfffffffe
CMP EAX,EBP
JNZ 0x0013af63
MOV RSI,qword ptr [RSP]
MOV RDI,R14
CALL RBX
LAB_0013af63:
MOV R13,qword ptr [R13 + 0x8]
CMP R13,R12
JNZ 0x0013af1f
LAB_0013af6c:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void js_map_mark(int8 param_1,long param_2,int8 param_3,code *param_4)
{
int *piVar1;
int *piVar2;
piVar1 = *(int **)(param_2 + 0x30);
if (piVar1 != (int *)0x0) {
for (piVar2 = *(int **)(piVar1 + 4); piVar2 != piVar1 + 2; piVar2 = *(int **)(piVar2 + 2)) {
if ((*piVar1 == 0) && ((piVar2[10] & 0xfffffffeU) == 0xfffffffe)) {
(*param_4)(param_1,*(int8 *)(piVar2 + 8));
}
if ((piVar2[0xe] & 0xfffffffeU) == 0xfffffffe) {
(*param_4)(param_1,*(int8 *)(piVar2 + 0xc));
}
}
}
return;
}
| |
24,030 | js_map_mark | bluesky950520[P]quickjs/quickjs.c | static void js_map_mark(JSRuntime *rt, JSValue val, JS_MarkFunc *mark_func)
{
JSObject *p = JS_VALUE_GET_OBJ(val);
JSMapState *s;
struct list_head *el;
JSMapRecord *mr;
s = p->u.map_state;
if (s) {
list_for_each(el, &s->records) {
mr = list_entry(el, JSMapRecord, link);
if (!s->is_weak)
JS_MarkValue(rt, mr->key, mark_func);
JS_MarkValue(rt, mr->value, mark_func);
}
}
} | O3 | c | js_map_mark:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x30(%rsi), %r15
testq %r15, %r15
je 0x3c507
leaq 0x8(%r15), %r12
movq 0x10(%r15), %r13
cmpq %r12, %r13
je 0x3c507
movq %rcx, %rbx
movq %rdi, %r14
movl $0xfffffffe, %ebp # imm = 0xFFFFFFFE
cmpl $0x0, (%r15)
jne 0x3c4ea
movl 0x28(%r13), %eax
andl $-0x2, %eax
cmpl %ebp, %eax
jne 0x3c4ea
movq 0x20(%r13), %rsi
movq %r14, %rdi
callq *%rbx
movl 0x38(%r13), %eax
andl $-0x2, %eax
cmpl %ebp, %eax
jne 0x3c4fe
movq 0x30(%r13), %rsi
movq %r14, %rdi
callq *%rbx
movq 0x8(%r13), %r13
cmpq %r12, %r13
jne 0x3c4d0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| js_map_mark:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15, [rsi+30h]
test r15, r15
jz short loc_3C507
lea r12, [r15+8]
mov r13, [r15+10h]
cmp r13, r12
jz short loc_3C507
mov rbx, rcx
mov r14, rdi
mov ebp, 0FFFFFFFEh
loc_3C4D0:
cmp dword ptr [r15], 0
jnz short loc_3C4EA
mov eax, [r13+28h]
and eax, 0FFFFFFFEh
cmp eax, ebp
jnz short loc_3C4EA
mov rsi, [r13+20h]
mov rdi, r14
call rbx
loc_3C4EA:
mov eax, [r13+38h]
and eax, 0FFFFFFFEh
cmp eax, ebp
jnz short loc_3C4FE
mov rsi, [r13+30h]
mov rdi, r14
call rbx
loc_3C4FE:
mov r13, [r13+8]
cmp r13, r12
jnz short loc_3C4D0
loc_3C507:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long js_map_mark(long long a1, long long a2, long long a3, void ( *a4)(long long, _QWORD))
{
long long v4; // r15
long long i; // r13
long long result; // rax
v4 = *(_QWORD *)(a2 + 48);
if ( v4 )
{
for ( i = *(_QWORD *)(v4 + 16); i != v4 + 8; i = *(_QWORD *)(i + 8) )
{
if ( !*(_DWORD *)v4 && (*(_DWORD *)(i + 40) & 0xFFFFFFFE) == 0xFFFFFFFE )
a4(a1, *(_QWORD *)(i + 32));
result = *(_DWORD *)(i + 56) & 0xFFFFFFFE;
if ( (_DWORD)result == -2 )
result = ((long long ( *)(long long, _QWORD))a4)(a1, *(_QWORD *)(i + 48));
}
}
return result;
}
| js_map_mark:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,qword ptr [RSI + 0x30]
TEST R15,R15
JZ 0x0013c507
LEA R12,[R15 + 0x8]
MOV R13,qword ptr [R15 + 0x10]
CMP R13,R12
JZ 0x0013c507
MOV RBX,RCX
MOV R14,RDI
MOV EBP,0xfffffffe
LAB_0013c4d0:
CMP dword ptr [R15],0x0
JNZ 0x0013c4ea
MOV EAX,dword ptr [R13 + 0x28]
AND EAX,0xfffffffe
CMP EAX,EBP
JNZ 0x0013c4ea
MOV RSI,qword ptr [R13 + 0x20]
MOV RDI,R14
CALL RBX
LAB_0013c4ea:
MOV EAX,dword ptr [R13 + 0x38]
AND EAX,0xfffffffe
CMP EAX,EBP
JNZ 0x0013c4fe
MOV RSI,qword ptr [R13 + 0x30]
MOV RDI,R14
CALL RBX
LAB_0013c4fe:
MOV R13,qword ptr [R13 + 0x8]
CMP R13,R12
JNZ 0x0013c4d0
LAB_0013c507:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void js_map_mark(int8 param_1,long param_2,int8 param_3,code *param_4)
{
int *piVar1;
int *piVar2;
piVar1 = *(int **)(param_2 + 0x30);
if (piVar1 != (int *)0x0) {
for (piVar2 = *(int **)(piVar1 + 4); piVar2 != piVar1 + 2; piVar2 = *(int **)(piVar2 + 2)) {
if ((*piVar1 == 0) && ((piVar2[10] & 0xfffffffeU) == 0xfffffffe)) {
(*param_4)(param_1,*(int8 *)(piVar2 + 8));
}
if ((piVar2[0xe] & 0xfffffffeU) == 0xfffffffe) {
(*param_4)(param_1,*(int8 *)(piVar2 + 0xc));
}
}
}
return;
}
| |
24,031 | my_xml_scan | eloqsql/strings/xml.c | static int my_xml_scan(MY_XML_PARSER *p,MY_XML_ATTR *a)
{
int lex;
for (; ( p->cur < p->end) && my_xml_is_space(p->cur[0]) ; p->cur++);
if (p->cur >= p->end)
{
a->beg=p->end;
a->end=p->end;
lex=MY_XML_EOF;
goto ret;
}
a->beg=p->cur;
a->end=p->cur;
if (!my_xml_parser_prefix_cmp(p, C_STRING_WITH_LEN("<!--")))
{
for (; p->cur < p->end; p->cur++)
{
if (!my_xml_parser_prefix_cmp(p, C_STRING_WITH_LEN("-->")))
{
p->cur+= 3;
break;
}
}
a->end=p->cur;
lex=MY_XML_COMMENT;
}
else if (!my_xml_parser_prefix_cmp(p, C_STRING_WITH_LEN("<![CDATA[")))
{
p->cur+= 9;
for (; p->cur < p->end - 2 ; p->cur++)
{
if (p->cur[0] == ']' && p->cur[1] == ']' && p->cur[2] == '>')
{
p->cur+= 3;
a->end= p->cur;
break;
}
}
lex= MY_XML_CDATA;
}
else if (strchr("?=/<>!",p->cur[0]))
{
p->cur++;
a->end=p->cur;
lex=a->beg[0];
}
else if ( (p->cur[0] == '"') || (p->cur[0] == '\'') )
{
/*
"string" or 'string' found.
Scan until the closing quote/doublequote, or until the END-OF-INPUT.
*/
p->cur++;
for (; ( p->cur < p->end ) && (p->cur[0] != a->beg[0]); p->cur++)
{}
a->end=p->cur;
if (p->cur < p->end) /* Closing quote or doublequote has been found */
p->cur++;
a->beg++;
if (!(p->flags & MY_XML_FLAG_SKIP_TEXT_NORMALIZATION))
my_xml_norm_text(a);
lex=MY_XML_STRING;
}
else if (my_xml_is_id0(p->cur[0]))
{
p->cur++;
while (p->cur < p->end && my_xml_is_id1(p->cur[0]))
p->cur++;
a->end=p->cur;
my_xml_norm_text(a);
lex=MY_XML_IDENT;
}
else
lex= MY_XML_UNKNOWN;
#if 0
printf("LEX=%s[%d]\n",lex2str(lex),a->end-a->beg);
#endif
ret:
return lex;
} | O3 | c | my_xml_scan:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x130(%rdi), %rax
movq 0x138(%rdi), %rcx
cmpq %rcx, %rax
jae 0x596f2
leaq 0x27d996(%rip), %rbx # 0x2d7070
movzbl (%rax), %edx
testb $0x8, (%rdx,%rbx)
je 0x59718
incq %rax
movq %rax, 0x130(%r14)
cmpq %rcx, %rax
jne 0x596da
movq %rcx, (%rsi)
movq 0x138(%r14), %rax
movq %rax, 0x8(%rsi)
movl $0x45, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, (%rsi)
movq 0x130(%r14), %r13
movq %r13, 0x8(%rsi)
movq 0x138(%r14), %r12
leaq 0x4(%r13), %rax
cmpq %r12, %rax
ja 0x59740
cmpl $0x2d2d213c, (%r13) # imm = 0x2D2D213C
je 0x597a9
leaq 0x9(%r13), %rax
cmpq %r12, %rax
ja 0x59769
movabsq $0x41544144435b213c, %rcx # imm = 0x41544144435B213C
xorq (%r13), %rcx
movzbl 0x8(%r13), %edx
xorq $0x5b, %rdx
orq %rcx, %rdx
je 0x59856
movq %rsi, -0x30(%rbp)
movsbl (%r13), %r15d
leaq 0x5093(%rip), %rdi # 0x5e80c
movl $0x7, %edx
movl %r15d, %esi
callq 0x242d0
testq %rax, %rax
je 0x597e5
incq %r13
movq %r13, 0x130(%r14)
movq -0x30(%rbp), %rax
movq %r13, 0x8(%rax)
movq (%rax), %rax
movsbl (%rax), %r15d
jmp 0x59706
leaq 0x3(%r13), %rax
cmpq %r12, %rax
ja 0x597ce
movzwl (%r13), %ecx
xorl $0x2d2d, %ecx # imm = 0x2D2D
movzbl 0x2(%r13), %edx
xorl $0x3e, %edx
orw %cx, %dx
je 0x598ec
incq %r13
movq %r13, 0x130(%r14)
cmpq %r12, %r13
jne 0x597a9
movq %r12, %rax
jmp 0x598f3
movzbl %r15b, %eax
cmpq $0x27, %rax
movq -0x30(%rbp), %rdi
je 0x597fc
cmpl $0x22, %eax
jne 0x598a9
incq %r13
movq %r13, %rax
movq %r13, 0x130(%r14)
cmpq %r12, %r13
jae 0x5981b
movb (%rax), %cl
movq (%rdi), %rdx
leaq 0x1(%rax), %r13
cmpb (%rdx), %cl
jne 0x597ff
movq %rax, 0x8(%rdi)
movq 0x130(%r14), %rax
cmpq 0x138(%r14), %rax
jae 0x59839
incq %rax
movq %rax, 0x130(%r14)
incq (%rdi)
movl $0x53, %r15d
testb $0x2, (%r14)
jne 0x59706
callq 0x59ce7
jmp 0x59706
leaq -0x2(%r12), %rcx
movq %rax, 0x130(%r14)
movl $0x44, %r15d
cmpq %rcx, %rax
jae 0x59706
subq %r13, %r12
addq $0xc, %r13
addq $-0xb, %r12
cmpb $0x5d, -0x3(%r13)
jne 0x59891
cmpb $0x5d, -0x2(%r13)
jne 0x59891
cmpb $0x3e, -0x1(%r13)
je 0x59902
leaq -0x2(%r13), %rax
movq %rax, 0x130(%r14)
incq %r13
decq %r12
jne 0x5987c
jmp 0x59706
movl $0x55, %r15d
testb $0x1, (%rax,%rbx)
je 0x59706
incq %r13
movq %r13, %rax
movq %r13, 0x130(%r14)
cmpq %r12, %r13
jae 0x598d8
movzbl (%rax), %ecx
leaq 0x1(%rax), %r13
testb $0x2, (%rcx,%rbx)
jne 0x598bc
movq %rax, 0x8(%rdi)
callq 0x59ce7
movl $0x49, %r15d
jmp 0x59706
movq %rax, 0x130(%r14)
movq %rax, 0x8(%rsi)
movl $0x43, %r15d
jmp 0x59706
movq %r13, 0x130(%r14)
movq %r13, 0x8(%rsi)
jmp 0x59706
| my_xml_scan:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rdi
mov rax, [rdi+130h]
mov rcx, [rdi+138h]
cmp rax, rcx
jnb short loc_596F2
lea rbx, my_xml_ctype
loc_596DA:
movzx edx, byte ptr [rax]
test byte ptr [rdx+rbx], 8
jz short loc_59718
inc rax
mov [r14+130h], rax
cmp rax, rcx
jnz short loc_596DA
loc_596F2:
mov [rsi], rcx
mov rax, [r14+138h]
mov [rsi+8], rax
mov r15d, 45h ; 'E'
loc_59706:
mov eax, r15d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_59718:
mov [rsi], rax
mov r13, [r14+130h]
mov [rsi+8], r13
mov r12, [r14+138h]
lea rax, [r13+4]
cmp rax, r12
ja short loc_59740
cmp dword ptr [r13+0], 2D2D213Ch
jz short loc_597A9
loc_59740:
lea rax, [r13+9]
cmp rax, r12
ja short loc_59769
mov rcx, 41544144435B213Ch
xor rcx, [r13+0]
movzx edx, byte ptr [r13+8]
xor rdx, 5Bh
or rdx, rcx
jz loc_59856
loc_59769:
mov [rbp+var_30], rsi
movsx r15d, byte ptr [r13+0]
lea rdi, asc_5E80C; "?=/<>!"
mov edx, 7
mov esi, r15d
call _memchr
test rax, rax
jz short loc_597E5
inc r13
mov [r14+130h], r13
mov rax, [rbp+var_30]
mov [rax+8], r13
mov rax, [rax]
movsx r15d, byte ptr [rax]
jmp loc_59706
loc_597A9:
lea rax, [r13+3]
cmp rax, r12
ja short loc_597CE
movzx ecx, word ptr [r13+0]
xor ecx, 2D2Dh
movzx edx, byte ptr [r13+2]
xor edx, 3Eh
or dx, cx
jz loc_598EC
loc_597CE:
inc r13
mov [r14+130h], r13
cmp r13, r12
jnz short loc_597A9
mov rax, r12
jmp loc_598F3
loc_597E5:
movzx eax, r15b
cmp rax, 27h ; '''
mov rdi, [rbp+var_30]
jz short loc_597FC
cmp eax, 22h ; '"'
jnz loc_598A9
loc_597FC:
inc r13
loc_597FF:
mov rax, r13
mov [r14+130h], r13
cmp r13, r12
jnb short loc_5981B
mov cl, [rax]
mov rdx, [rdi]
lea r13, [rax+1]
cmp cl, [rdx]
jnz short loc_597FF
loc_5981B:
mov [rdi+8], rax
mov rax, [r14+130h]
cmp rax, [r14+138h]
jnb short loc_59839
inc rax
mov [r14+130h], rax
loc_59839:
inc qword ptr [rdi]
mov r15d, 53h ; 'S'
test byte ptr [r14], 2
jnz loc_59706
call my_xml_norm_text
jmp loc_59706
loc_59856:
lea rcx, [r12-2]
mov [r14+130h], rax
mov r15d, 44h ; 'D'
cmp rax, rcx
jnb loc_59706
sub r12, r13
add r13, 0Ch
add r12, 0FFFFFFFFFFFFFFF5h
loc_5987C:
cmp byte ptr [r13-3], 5Dh ; ']'
jnz short loc_59891
cmp byte ptr [r13-2], 5Dh ; ']'
jnz short loc_59891
cmp byte ptr [r13-1], 3Eh ; '>'
jz short loc_59902
loc_59891:
lea rax, [r13-2]
mov [r14+130h], rax
inc r13
dec r12
jnz short loc_5987C
jmp loc_59706
loc_598A9:
mov r15d, 55h ; 'U'
test byte ptr [rax+rbx], 1
jz loc_59706
inc r13
loc_598BC:
mov rax, r13
mov [r14+130h], r13
cmp r13, r12
jnb short loc_598D8
movzx ecx, byte ptr [rax]
lea r13, [rax+1]
test byte ptr [rcx+rbx], 2
jnz short loc_598BC
loc_598D8:
mov [rdi+8], rax
call my_xml_norm_text
mov r15d, 49h ; 'I'
jmp loc_59706
loc_598EC:
mov [r14+130h], rax
loc_598F3:
mov [rsi+8], rax
mov r15d, 43h ; 'C'
jmp loc_59706
loc_59902:
mov [r14+130h], r13
mov [rsi+8], r13
jmp loc_59706
| long long my_xml_scan(long long a1, unsigned __int8 **a2)
{
unsigned __int8 *v2; // rax
unsigned __int8 *v3; // rcx
unsigned int v4; // r15d
char *v6; // r13
unsigned long long v7; // r12
unsigned long long v8; // rax
unsigned __int8 v9; // r15
char *v10; // r13
char *v11; // rax
long long v12; // rax
char *v13; // r13
char *v14; // rax
unsigned long long v15; // rax
unsigned long long v16; // r12
char *v17; // r13
unsigned long long v18; // r12
char *v19; // r13
char *v20; // rax
long long v21; // rcx
v2 = *(unsigned __int8 **)(a1 + 304);
v3 = *(unsigned __int8 **)(a1 + 312);
if ( v2 >= v3 )
{
LABEL_4:
*a2 = v3;
a2[1] = *(unsigned __int8 **)(a1 + 312);
return 69;
}
else
{
while ( (my_xml_ctype[*v2] & 8) != 0 )
{
*(_QWORD *)(a1 + 304) = ++v2;
if ( v2 == v3 )
goto LABEL_4;
}
*a2 = v2;
v6 = *(char **)(a1 + 304);
a2[1] = (unsigned __int8 *)v6;
v7 = *(_QWORD *)(a1 + 312);
if ( (unsigned long long)(v6 + 4) <= v7 && *(_DWORD *)v6 == 757932348 )
{
while ( 1 )
{
v11 = v6 + 3;
if ( (unsigned long long)(v6 + 3) <= v7 && !(*(_WORD *)v6 ^ 0x2D2D | (unsigned __int8)v6[2] ^ 0x3E) )
break;
*(_QWORD *)(a1 + 304) = ++v6;
if ( v6 == (char *)v7 )
{
v11 = (char *)v7;
goto LABEL_38;
}
}
*(_QWORD *)(a1 + 304) = v11;
LABEL_38:
a2[1] = (unsigned __int8 *)v11;
return 67;
}
else
{
v8 = (unsigned long long)(v6 + 9);
if ( (unsigned long long)(v6 + 9) > v7 || *(_QWORD *)v6 ^ 0x41544144435B213CLL | (unsigned __int8)v6[8] ^ 0x5BLL )
{
v9 = *v6;
if ( memchr("?=/<>!", (unsigned int)*v6, 7LL) )
{
v10 = v6 + 1;
*(_QWORD *)(a1 + 304) = v10;
a2[1] = (unsigned __int8 *)v10;
return (unsigned int)(char)**a2;
}
else
{
v12 = v9;
if ( v9 == 39LL || v9 == 34 )
{
v13 = v6 + 1;
do
{
v14 = v13;
*(_QWORD *)(a1 + 304) = v13;
if ( (unsigned long long)v13 >= v7 )
break;
++v13;
}
while ( *v14 != **a2 );
a2[1] = (unsigned __int8 *)v14;
v15 = *(_QWORD *)(a1 + 304);
if ( v15 < *(_QWORD *)(a1 + 312) )
*(_QWORD *)(a1 + 304) = v15 + 1;
++*a2;
v4 = 83;
if ( (*(_BYTE *)a1 & 2) == 0 )
my_xml_norm_text(a2);
}
else
{
v4 = 85;
if ( (my_xml_ctype[v12] & 1) != 0 )
{
v19 = v6 + 1;
do
{
v20 = v19;
*(_QWORD *)(a1 + 304) = v19;
if ( (unsigned long long)v19 >= v7 )
break;
v21 = (unsigned __int8)*v19++;
}
while ( (my_xml_ctype[v21] & 2) != 0 );
a2[1] = (unsigned __int8 *)v20;
my_xml_norm_text(a2);
return 73;
}
}
}
}
else
{
*(_QWORD *)(a1 + 304) = v8;
v4 = 68;
if ( v8 < v7 - 2 )
{
v16 = v7 - (_QWORD)v6;
v17 = v6 + 12;
v18 = v16 - 11;
while ( *(v17 - 3) != 93 || *(v17 - 2) != 93 || *(v17 - 1) != 62 )
{
*(_QWORD *)(a1 + 304) = v17 - 2;
++v17;
if ( !--v18 )
return v4;
}
*(_QWORD *)(a1 + 304) = v17;
a2[1] = (unsigned __int8 *)v17;
}
}
}
}
return v4;
}
| my_xml_scan:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RDI
MOV RAX,qword ptr [RDI + 0x130]
MOV RCX,qword ptr [RDI + 0x138]
CMP RAX,RCX
JNC 0x001596f2
LEA RBX,[0x3d7070]
LAB_001596da:
MOVZX EDX,byte ptr [RAX]
TEST byte ptr [RDX + RBX*0x1],0x8
JZ 0x00159718
INC RAX
MOV qword ptr [R14 + 0x130],RAX
CMP RAX,RCX
JNZ 0x001596da
LAB_001596f2:
MOV qword ptr [RSI],RCX
MOV RAX,qword ptr [R14 + 0x138]
MOV qword ptr [RSI + 0x8],RAX
MOV R15D,0x45
LAB_00159706:
MOV EAX,R15D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00159718:
MOV qword ptr [RSI],RAX
MOV R13,qword ptr [R14 + 0x130]
MOV qword ptr [RSI + 0x8],R13
MOV R12,qword ptr [R14 + 0x138]
LEA RAX,[R13 + 0x4]
CMP RAX,R12
JA 0x00159740
CMP dword ptr [R13],0x2d2d213c
JZ 0x001597a9
LAB_00159740:
LEA RAX,[R13 + 0x9]
CMP RAX,R12
JA 0x00159769
MOV RCX,0x41544144435b213c
XOR RCX,qword ptr [R13]
MOVZX EDX,byte ptr [R13 + 0x8]
XOR RDX,0x5b
OR RDX,RCX
JZ 0x00159856
LAB_00159769:
MOV qword ptr [RBP + -0x30],RSI
MOVSX R15D,byte ptr [R13]
LEA RDI,[0x15e80c]
MOV EDX,0x7
MOV ESI,R15D
CALL 0x001242d0
TEST RAX,RAX
JZ 0x001597e5
INC R13
MOV qword ptr [R14 + 0x130],R13
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX + 0x8],R13
MOV RAX,qword ptr [RAX]
MOVSX R15D,byte ptr [RAX]
JMP 0x00159706
LAB_001597a9:
LEA RAX,[R13 + 0x3]
CMP RAX,R12
JA 0x001597ce
MOVZX ECX,word ptr [R13]
XOR ECX,0x2d2d
MOVZX EDX,byte ptr [R13 + 0x2]
XOR EDX,0x3e
OR DX,CX
JZ 0x001598ec
LAB_001597ce:
INC R13
MOV qword ptr [R14 + 0x130],R13
CMP R13,R12
JNZ 0x001597a9
MOV RAX,R12
JMP 0x001598f3
LAB_001597e5:
MOVZX EAX,R15B
CMP RAX,0x27
MOV RDI,qword ptr [RBP + -0x30]
JZ 0x001597fc
CMP EAX,0x22
JNZ 0x001598a9
LAB_001597fc:
INC R13
LAB_001597ff:
MOV RAX,R13
MOV qword ptr [R14 + 0x130],R13
CMP R13,R12
JNC 0x0015981b
MOV CL,byte ptr [RAX]
MOV RDX,qword ptr [RDI]
LEA R13,[RAX + 0x1]
CMP CL,byte ptr [RDX]
JNZ 0x001597ff
LAB_0015981b:
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [R14 + 0x130]
CMP RAX,qword ptr [R14 + 0x138]
JNC 0x00159839
INC RAX
MOV qword ptr [R14 + 0x130],RAX
LAB_00159839:
INC qword ptr [RDI]
MOV R15D,0x53
TEST byte ptr [R14],0x2
JNZ 0x00159706
CALL 0x00159ce7
JMP 0x00159706
LAB_00159856:
LEA RCX,[R12 + -0x2]
MOV qword ptr [R14 + 0x130],RAX
MOV R15D,0x44
CMP RAX,RCX
JNC 0x00159706
SUB R12,R13
ADD R13,0xc
ADD R12,-0xb
LAB_0015987c:
CMP byte ptr [R13 + -0x3],0x5d
JNZ 0x00159891
CMP byte ptr [R13 + -0x2],0x5d
JNZ 0x00159891
CMP byte ptr [R13 + -0x1],0x3e
JZ 0x00159902
LAB_00159891:
LEA RAX,[R13 + -0x2]
MOV qword ptr [R14 + 0x130],RAX
INC R13
DEC R12
JNZ 0x0015987c
JMP 0x00159706
LAB_001598a9:
MOV R15D,0x55
TEST byte ptr [RAX + RBX*0x1],0x1
JZ 0x00159706
INC R13
LAB_001598bc:
MOV RAX,R13
MOV qword ptr [R14 + 0x130],R13
CMP R13,R12
JNC 0x001598d8
MOVZX ECX,byte ptr [RAX]
LEA R13,[RAX + 0x1]
TEST byte ptr [RCX + RBX*0x1],0x2
JNZ 0x001598bc
LAB_001598d8:
MOV qword ptr [RDI + 0x8],RAX
CALL 0x00159ce7
MOV R15D,0x49
JMP 0x00159706
LAB_001598ec:
MOV qword ptr [R14 + 0x130],RAX
LAB_001598f3:
MOV qword ptr [RSI + 0x8],RAX
MOV R15D,0x43
JMP 0x00159706
LAB_00159902:
MOV qword ptr [R14 + 0x130],R13
MOV qword ptr [RSI + 0x8],R13
JMP 0x00159706
|
int my_xml_scan(byte *param_1,long *param_2)
{
byte bVar1;
uint uVar2;
byte *pbVar3;
void *pvVar4;
byte *pbVar5;
byte *pbVar6;
pbVar3 = *(byte **)(param_1 + 0x130);
pbVar5 = *(byte **)(param_1 + 0x138);
if (pbVar3 < pbVar5) {
do {
if ((my_xml_ctype[*pbVar3] & 8) == 0) {
*param_2 = (long)pbVar3;
pbVar3 = *(byte **)(param_1 + 0x130);
param_2[1] = (long)pbVar3;
pbVar5 = *(byte **)(param_1 + 0x138);
if ((pbVar3 + 4 <= pbVar5) && (*(int *)pbVar3 == 0x2d2d213c)) goto LAB_001597a9;
pbVar6 = pbVar3 + 9;
if ((pbVar6 <= pbVar5) && (pbVar3[8] == 0x5b && *(long *)pbVar3 == 0x41544144435b213c)) {
*(byte **)(param_1 + 0x130) = pbVar6;
if (pbVar5 + -2 <= pbVar6) {
return 0x44;
}
pbVar6 = pbVar3 + 0xc;
pbVar5 = pbVar5 + (-0xb - (long)pbVar3);
while (((pbVar6[-3] != 0x5d || (pbVar6[-2] != 0x5d)) || (pbVar6[-1] != 0x3e))) {
*(byte **)(param_1 + 0x130) = pbVar6 + -2;
pbVar6 = pbVar6 + 1;
pbVar5 = pbVar5 + -1;
if (pbVar5 == (byte *)0x0) {
return 0x44;
}
}
*(byte **)(param_1 + 0x130) = pbVar6;
param_2[1] = (long)pbVar6;
return 0x44;
}
bVar1 = *pbVar3;
pvVar4 = memchr("?=/<>!",(int)(char)bVar1,7);
if (pvVar4 != (void *)0x0) {
*(byte **)(param_1 + 0x130) = pbVar3 + 1;
param_2[1] = (long)(pbVar3 + 1);
return (int)*(char *)*param_2;
}
uVar2 = (uint)bVar1;
if (((ulong)uVar2 == 0x27) || (uVar2 == 0x22)) goto LAB_001597ff;
if ((my_xml_ctype[uVar2] & 1) == 0) {
return 0x55;
}
goto LAB_001598bc;
}
pbVar3 = pbVar3 + 1;
*(byte **)(param_1 + 0x130) = pbVar3;
} while (pbVar3 != pbVar5);
}
*param_2 = (long)pbVar5;
param_2[1] = *(long *)(param_1 + 0x138);
return 0x45;
LAB_001597a9:
pbVar6 = pbVar3 + 3;
if ((pbVar6 <= pbVar5) && (pbVar3[2] == 0x3e && *(short *)pbVar3 == 0x2d2d)) {
*(byte **)(param_1 + 0x130) = pbVar6;
pbVar5 = pbVar6;
goto LAB_001598f3;
}
pbVar3 = pbVar3 + 1;
*(byte **)(param_1 + 0x130) = pbVar3;
if (pbVar3 == pbVar5) {
LAB_001598f3:
param_2[1] = (long)pbVar5;
return 0x43;
}
goto LAB_001597a9;
while (*pbVar3 != *(byte *)*param_2) {
LAB_001597ff:
pbVar3 = pbVar3 + 1;
*(byte **)(param_1 + 0x130) = pbVar3;
if (pbVar5 <= pbVar3) break;
}
param_2[1] = (long)pbVar3;
if (*(ulong *)(param_1 + 0x130) < *(ulong *)(param_1 + 0x138)) {
*(ulong *)(param_1 + 0x130) = *(ulong *)(param_1 + 0x130) + 1;
}
*param_2 = *param_2 + 1;
if ((*param_1 & 2) != 0) {
return 0x53;
}
my_xml_norm_text();
return 0x53;
while ((my_xml_ctype[*pbVar3] & 2) != 0) {
LAB_001598bc:
pbVar3 = pbVar3 + 1;
*(byte **)(param_1 + 0x130) = pbVar3;
if (pbVar5 <= pbVar3) break;
}
param_2[1] = (long)pbVar3;
my_xml_norm_text();
return 0x49;
}
| |
24,032 | wt_end | eloqsql/mysys/waiting_threads.c | void wt_end()
{
DBUG_ENTER("wt_end");
if (!wt_init_done)
DBUG_VOID_RETURN;
DBUG_ASSERT(reshash.count == 0);
lf_hash_destroy(&reshash);
reshash.alloc.constructor= NULL;
wt_init_done= 0;
DBUG_VOID_RETURN;
} | O3 | c | wt_end:
cmpb $0x1, 0xb6abff(%rip) # 0xc31710
jne 0xc6b36
pushq %rbp
movq %rsp, %rbp
leaq 0xb6a8e2(%rip), %rdi # 0xc31400
callq 0xc5d32
movq $0x0, 0xb6a952(%rip) # 0xc31480
movb $0x0, 0xb6abdb(%rip) # 0xc31710
popq %rbp
retq
| wt_end:
cmp cs:wt_init_done, 1
jnz short locret_C6B36
push rbp
mov rbp, rsp
lea rdi, reshash
call lf_hash_destroy
mov cs:qword_C31480, 0
mov cs:wt_init_done, 0
pop rbp
locret_C6B36:
retn
| long long wt_end()
{
long long result; // rax
if ( wt_init_done == 1 )
{
result = lf_hash_destroy((long long)&reshash);
qword_C31480 = 0LL;
wt_init_done = 0;
}
return result;
}
| wt_end:
CMP byte ptr [0x00d31710],0x1
JNZ 0x001c6b36
PUSH RBP
MOV RBP,RSP
LEA RDI,[0xd31400]
CALL 0x001c5d32
MOV qword ptr [0x00d31480],0x0
MOV byte ptr [0x00d31710],0x0
POP RBP
LAB_001c6b36:
RET
|
void wt_end(void)
{
if (wt_init_done == '\x01') {
lf_hash_destroy(reshash);
reshash._128_8_ = 0;
wt_init_done = '\0';
}
return;
}
| |
24,033 | inline_mysql_file_stat | eloqsql/include/mysql/psi/mysql_file.h | static inline MY_STAT *
inline_mysql_file_stat(
#ifdef HAVE_PSI_FILE_INTERFACE
PSI_file_key key, const char *src_file, uint src_line,
#endif
const char *path, MY_STAT *stat_area, myf flags)
{
MY_STAT *result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_name_locker)(&state, key, PSI_FILE_STAT, path, &locker);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line);
result= my_stat(path, stat_area, flags);
PSI_FILE_CALL(end_file_open_wait)(locker, result);
return result;
}
#endif
result= my_stat(path, stat_area, flags);
return result;
} | O0 | c | inline_mysql_file_stat:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movl %edi, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
leaq 0x23c838(%rip), %rax # 0x2cb450
movq (%rax), %rax
movq 0x148(%rax), %rax
movl -0xc(%rbp), %esi
movq -0x28(%rbp), %rcx
leaq -0x90(%rbp), %rdi
movl $0xb, %edx
leaq -0x48(%rbp), %r8
callq *%rax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x8ecb7
leaq 0x23c7ea(%rip), %rax # 0x2cb450
movq (%rax), %rax
movq 0x1f0(%rax), %rax
movq -0x48(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
callq *%rax
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0xf9b70
movq %rax, -0x40(%rbp)
leaq 0x23c7b7(%rip), %rax # 0x2cb450
movq (%rax), %rax
movq 0x1f8(%rax), %rax
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq *%rax
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x8ecd4
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0xf9b70
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| inline_mysql_file_stat:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_C], edi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+148h]
mov esi, [rbp+var_C]
mov rcx, [rbp+var_28]
lea rdi, [rbp+var_90]
mov edx, 0Bh
lea r8, [rbp+var_48]
call rax
mov [rbp+var_48], rax
cmp [rbp+var_48], 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_8ECB7
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1F0h]
mov rdi, [rbp+var_48]
mov rsi, [rbp+var_18]
mov edx, [rbp+var_1C]
call rax
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_38]
call my_stat
mov [rbp+var_40], rax
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1F8h]
mov rdi, [rbp+var_48]
mov rsi, [rbp+var_40]
call rax
mov rax, [rbp+var_40]
mov [rbp+var_8], rax
jmp short loc_8ECD4
loc_8ECB7:
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_38]
call my_stat
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
mov [rbp+var_8], rax
loc_8ECD4:
mov rax, [rbp+var_8]
add rsp, 90h
pop rbp
retn
| long long inline_mysql_file_stat(
unsigned int a1,
long long a2,
unsigned int a3,
long long a4,
long long a5,
long long a6)
{
_BYTE v7[72]; // [rsp+0h] [rbp-90h] BYREF
long long v8; // [rsp+48h] [rbp-48h] BYREF
long long v9; // [rsp+50h] [rbp-40h]
long long v10; // [rsp+58h] [rbp-38h]
long long v11; // [rsp+60h] [rbp-30h]
long long v12; // [rsp+68h] [rbp-28h]
unsigned int v13; // [rsp+74h] [rbp-1Ch]
long long v14; // [rsp+78h] [rbp-18h]
unsigned int v15; // [rsp+84h] [rbp-Ch]
v15 = a1;
v14 = a2;
v13 = a3;
v12 = a4;
v11 = a5;
v10 = a6;
v8 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, long long *))PSI_server[41])(v7, a1, 11LL, a4, &v8);
if ( !v8 )
return my_stat(v12, v11, v10);
((void ( *)(long long, long long, _QWORD))PSI_server[62])(v8, v14, v13);
v9 = my_stat(v12, v11, v10);
((void ( *)(long long, long long))PSI_server[63])(v8, v9);
return v9;
}
| inline_mysql_file_stat:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV dword ptr [RBP + -0xc],EDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
LEA RAX,[0x3cb450]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x148]
MOV ESI,dword ptr [RBP + -0xc]
MOV RCX,qword ptr [RBP + -0x28]
LEA RDI,[RBP + -0x90]
MOV EDX,0xb
LEA R8,[RBP + -0x48]
CALL RAX
MOV qword ptr [RBP + -0x48],RAX
CMP qword ptr [RBP + -0x48],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 0x0018ecb7
LEA RAX,[0x3cb450]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1f0]
MOV RDI,qword ptr [RBP + -0x48]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RBP + -0x1c]
CALL RAX
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x001f9b70
MOV qword ptr [RBP + -0x40],RAX
LEA RAX,[0x3cb450]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1f8]
MOV RDI,qword ptr [RBP + -0x48]
MOV RSI,qword ptr [RBP + -0x40]
CALL RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0018ecd4
LAB_0018ecb7:
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x001f9b70
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x8],RAX
LAB_0018ecd4:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x90
POP RBP
RET
|
int8
inline_mysql_file_stat
(int4 param_1,int8 param_2,int4 param_3,int8 param_4,
int8 param_5,int8 param_6)
{
int1 local_98 [72];
long local_50;
int8 local_48;
int8 local_40;
int8 local_38;
int8 local_30;
int4 local_24;
int8 local_20;
int4 local_14;
int8 local_10;
local_40 = param_6;
local_38 = param_5;
local_30 = param_4;
local_24 = param_3;
local_20 = param_2;
local_14 = param_1;
local_50 = (**(code **)(PSI_server + 0x148))(local_98,param_1,0xb,param_4,&local_50);
if (local_50 == 0) {
local_10 = my_stat(local_30,local_38,local_40);
}
else {
(**(code **)(PSI_server + 0x1f0))(local_50,local_20,local_24);
local_48 = my_stat(local_30,local_38,local_40);
(**(code **)(PSI_server + 0x1f8))(local_50,local_48);
local_10 = local_48;
}
return local_10;
}
| |
24,034 | link_to_changed_list | eloqsql/storage/maria/ma_pagecache.c | static inline void link_to_changed_list(PAGECACHE *pagecache,
PAGECACHE_BLOCK_LINK *block)
{
unlink_changed(block);
link_changed(block,
&pagecache->changed_blocks[FILE_HASH(block->hash_link->file, pagecache)]);
block->status|=PCBLOCK_CHANGED;
pagecache->blocks_changed++;
pagecache->global_blocks_changed++;
} | O0 | c | link_to_changed_list:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x41f10
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x128(%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movl 0x28(%rax), %eax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
subq $0x1, %rcx
andq %rcx, %rax
shlq $0x3, %rax
addq %rax, %rsi
callq 0x42010
movq -0x10(%rbp), %rax
movzwl 0x74(%rax), %ecx
orl $0x20, %ecx
movw %cx, 0x74(%rax)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x58(%rax)
movq -0x8(%rbp), %rax
movq 0x168(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x168(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
| link_to_changed_list:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_10]
call unlink_changed
mov rdi, [rbp+var_10]
mov rax, [rbp+var_8]
mov rsi, [rax+128h]
mov rax, [rbp+var_10]
mov rax, [rax+20h]
mov eax, [rax+28h]
mov rcx, [rbp+var_8]
mov rcx, [rcx+28h]
sub rcx, 1
and rax, rcx
shl rax, 3
add rsi, rax
call link_changed
mov rax, [rbp+var_10]
movzx ecx, word ptr [rax+74h]
or ecx, 20h
mov [rax+74h], cx
mov rax, [rbp+var_8]
mov rcx, [rax+58h]
add rcx, 1
mov [rax+58h], rcx
mov rax, [rbp+var_8]
mov rcx, [rax+168h]
add rcx, 1
mov [rax+168h], rcx
add rsp, 10h
pop rbp
retn
| _QWORD * link_to_changed_list(_QWORD *a1, long long a2)
{
_QWORD *result; // rax
unlink_changed(a2);
link_changed(a2, 8 * ((a1[5] - 1LL) & *(unsigned int *)(*(_QWORD *)(a2 + 32) + 40LL)) + a1[37]);
*(_WORD *)(a2 + 116) |= 0x20u;
++a1[11];
result = a1;
++a1[45];
return result;
}
| link_to_changed_list:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00141f10
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0x128]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV EAX,dword ptr [RAX + 0x28]
MOV RCX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RCX + 0x28]
SUB RCX,0x1
AND RAX,RCX
SHL RAX,0x3
ADD RSI,RAX
CALL 0x00142010
MOV RAX,qword ptr [RBP + -0x10]
MOVZX ECX,word ptr [RAX + 0x74]
OR ECX,0x20
MOV word ptr [RAX + 0x74],CX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x58]
ADD RCX,0x1
MOV qword ptr [RAX + 0x58],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x168]
ADD RCX,0x1
MOV qword ptr [RAX + 0x168],RCX
ADD RSP,0x10
POP RBP
RET
|
void link_to_changed_list(long param_1,long param_2)
{
unlink_changed(param_2);
link_changed(param_2,*(long *)(param_1 + 0x128) +
((ulong)*(uint *)(*(long *)(param_2 + 0x20) + 0x28) &
*(long *)(param_1 + 0x28) - 1U) * 8);
*(ushort *)(param_2 + 0x74) = *(ushort *)(param_2 + 0x74) | 0x20;
*(long *)(param_1 + 0x58) = *(long *)(param_1 + 0x58) + 1;
*(long *)(param_1 + 0x168) = *(long *)(param_1 + 0x168) + 1;
return;
}
| |
24,035 | ESRGAN::load_from_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, ggml_backend*) | 7CodeWizard[P]stablediffusion/esrgan.hpp | bool load_from_file(const std::string& file_path, ggml_backend_t backend) {
LOG_INFO("loading esrgan from '%s'", file_path.c_str());
if (!alloc_params_buffer(backend)) {
return false;
}
std::map<std::string, ggml_tensor*> esrgan_tensors;
// prepare memory for the weights
{
init_params();
map_by_name(esrgan_tensors);
}
ModelLoader model_loader;
if (!model_loader.init_from_file(file_path)) {
LOG_ERROR("init esrgan model loader from file failed: '%s'", file_path.c_str());
return false;
}
bool success = model_loader.load_tensors(esrgan_tensors, backend);
if (!success) {
LOG_ERROR("load esrgan tensors from model loader failed");
return false;
}
LOG_INFO("esrgan model loaded");
return success;
} | O0 | cpp | ESRGAN::load_from_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, ggml_backend*):
subq $0x128, %rsp # imm = 0x128
movq %rdi, 0x118(%rsp)
movq %rsi, 0x110(%rsp)
movq %rdx, 0x108(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x110(%rsp), %rdi
callq 0xb280
movq %rax, %r8
movl $0x1, %edi
leaq 0x94ad3(%rip), %rsi # 0x18587b
movl $0x113, %edx # imm = 0x113
leaq 0x94b18(%rip), %rcx # 0x1858cc
movb $0x0, %al
callq 0xeb5e0
movq 0x28(%rsp), %rdi
movq 0x108(%rsp), %rsi
xorl %edx, %edx
callq 0x52c40
testb $0x1, %al
jne 0xf0de0
movb $0x0, 0x127(%rsp)
jmp 0xf107e
leaq 0xd8(%rsp), %rdi
callq 0x41050
movq 0x28(%rsp), %rdi
callq 0xf10a0
jmp 0xf0df9
movq 0x28(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0xf1330
jmp 0xf0e0d
leaq 0x98(%rsp), %rdi
callq 0x51cf0
movq 0x110(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0x77(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0xbd40
movq 0x20(%rsp), %rdx
leaq 0x9613c(%rip), %rsi # 0x186f7e
leaq 0x78(%rsp), %rdi
callq 0x30260
jmp 0xf0e4e
movq 0x18(%rsp), %rsi
leaq 0x98(%rsp), %rdi
leaq 0x78(%rsp), %rdx
callq 0xbbd40
movb %al, 0x17(%rsp)
jmp 0xf0e6b
movb 0x17(%rsp), %al
xorb $-0x1, %al
movb %al, 0x16(%rsp)
leaq 0x78(%rsp), %rdi
callq 0xbf00
leaq 0x77(%rsp), %rdi
callq 0xb820
movb 0x16(%rsp), %al
testb $0x1, %al
jne 0xf0e96
jmp 0xf0f51
movq 0x110(%rsp), %rdi
callq 0xb280
movq %rax, %r8
leaq 0x949ce(%rip), %rsi # 0x18587b
leaq 0x94a31(%rip), %rcx # 0x1858e5
xorl %eax, %eax
movl $0x3, %edi
movl $0x123, %edx # imm = 0x123
callq 0xeb5e0
jmp 0xf0ec7
movb $0x0, 0x127(%rsp)
movl $0x1, 0x70(%rsp)
jmp 0xf1046
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
jmp 0xf106f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
jmp 0xf0f29
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
leaq 0x78(%rsp), %rdi
callq 0xbf00
leaq 0x77(%rsp), %rdi
callq 0xb820
jmp 0xf1062
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
jmp 0xf1062
movq 0x108(%rsp), %rax
movq %rax, (%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
leaq 0x30(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x55450
movq (%rsp), %rdx
movq 0x8(%rsp), %rcx
leaq 0x98(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0xbf650
movb %al, 0x15(%rsp)
jmp 0xf0fa2
leaq 0x30(%rsp), %rdi
callq 0x55700
movb 0x15(%rsp), %al
andb $0x1, %al
movb %al, 0x6f(%rsp)
testb $0x1, 0x6f(%rsp)
jne 0xf1010
leaq 0x948b7(%rip), %rsi # 0x18587b
leaq 0x9494a(%rip), %rcx # 0x185915
xorl %eax, %eax
movl $0x3, %edi
movl $0x12a, %edx # imm = 0x12A
callq 0xeb5e0
jmp 0xf0fde
movb $0x0, 0x127(%rsp)
movl $0x1, 0x70(%rsp)
jmp 0xf1046
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x55700
jmp 0xf1062
leaq 0x94864(%rip), %rsi # 0x18587b
leaq 0x94924(%rip), %rcx # 0x185942
xorl %eax, %eax
movl $0x1, %edi
movl $0x12e, %edx # imm = 0x12E
callq 0xeb5e0
jmp 0xf1031
movb 0x6f(%rsp), %al
andb $0x1, %al
movb %al, 0x127(%rsp)
movl $0x1, 0x70(%rsp)
leaq 0x98(%rsp), %rdi
callq 0x51480
leaq 0xd8(%rsp), %rdi
callq 0x412d0
jmp 0xf107e
leaq 0x98(%rsp), %rdi
callq 0x51480
leaq 0xd8(%rsp), %rdi
callq 0x412d0
jmp 0xf108f
movb 0x127(%rsp), %al
andb $0x1, %al
addq $0x128, %rsp # imm = 0x128
retq
movq 0xd0(%rsp), %rdi
callq 0xbd30
nopl (%rax)
| _ZN6ESRGAN14load_from_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP12ggml_backend:
sub rsp, 128h
mov [rsp+128h+var_10], rdi
mov [rsp+128h+var_18], rsi
mov [rsp+128h+var_20], rdx
mov rax, [rsp+128h+var_10]
mov [rsp+128h+var_100], rax
mov rdi, [rsp+128h+var_18]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov r8, rax
mov edi, 1
lea rsi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"...
mov edx, 113h
lea rcx, aLoadingEsrganF; "loading esrgan from '%s'"
mov al, 0
call _Z10log_printf14sd_log_level_tPKciS1_z; log_printf(sd_log_level_t,char const*,int,char const*,...)
mov rdi, [rsp+128h+var_100]
mov rsi, [rsp+128h+var_20]
xor edx, edx
call _ZN10GGMLModule19alloc_params_bufferEP12ggml_backend9ggml_type; GGMLModule::alloc_params_buffer(ggml_backend *,ggml_type)
test al, 1
jnz short loc_F0DE0
mov [rsp+128h+var_1], 0
jmp loc_F107E
loc_F0DE0:
lea rdi, [rsp+128h+var_50]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS5_ESaISt4pairIKS5_S7_EEEC2Ev; std::map<std::string,ggml_tensor *>::map(void)
mov rdi, [rsp+128h+var_100]; this
call _ZN6ESRGAN11init_paramsEv; ESRGAN::init_params(void)
jmp short $+2
loc_F0DF9:
mov rdi, [rsp+128h+var_100]
lea rsi, [rsp+128h+var_50]
call _ZN6ESRGAN11map_by_nameERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS6_ESaISt4pairIKS6_S8_EEE; ESRGAN::map_by_name(std::map<std::string,ggml_tensor *> &)
jmp short $+2
loc_F0E0D:
lea rdi, [rsp+128h+var_90]; this
call _ZN11ModelLoaderC2Ev; ModelLoader::ModelLoader(void)
mov rax, [rsp+128h+var_18]
mov [rsp+128h+var_110], rax
lea rdi, [rsp+128h+var_B1]
mov [rsp+128h+var_108], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, [rsp+128h+var_108]
lea rsi, dword_186F7E
lea rdi, [rsp+128h+var_B0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_F0E4E:
mov rsi, [rsp+128h+var_110]
lea rdi, [rsp+128h+var_90]
lea rdx, [rsp+128h+var_B0]
call _ZN11ModelLoader14init_from_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_; ModelLoader::init_from_file(std::string const&,std::string const&)
mov [rsp+128h+var_111], al
jmp short $+2
loc_F0E6B:
mov al, [rsp+128h+var_111]
xor al, 0FFh
mov [rsp+128h+var_112], al
lea rdi, [rsp+128h+var_B0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+128h+var_B1]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
mov al, [rsp+128h+var_112]
test al, 1
jnz short loc_F0E96
jmp loc_F0F51
loc_F0E96:
mov rdi, [rsp+128h+var_18]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov r8, rax
lea rsi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aInitEsrganMode; "init esrgan model loader from file fail"...
xor eax, eax
mov edi, 3
mov edx, 123h
call _Z10log_printf14sd_log_level_tPKciS1_z; log_printf(sd_log_level_t,char const*,int,char const*,...)
jmp short $+2
loc_F0EC7:
mov [rsp+128h+var_1], 0
mov [rsp+128h+var_B8], 1
jmp loc_F1046
mov rcx, rax
mov eax, edx
mov [rsp+arg_C8], rcx
mov [rsp+arg_C4], eax
jmp loc_F106F
mov rcx, rax
mov eax, edx
mov [rsp+arg_C8], rcx
mov [rsp+arg_C4], eax
jmp short loc_F0F29
mov rcx, rax
mov eax, edx
mov [rsp+arg_C8], rcx
mov [rsp+arg_C4], eax
lea rdi, [rsp+arg_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_F0F29:
lea rdi, [rsp+arg_6F]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_F1062
mov rcx, rax
mov eax, edx
mov [rsp+arg_C8], rcx
mov [rsp+arg_C4], eax
jmp loc_F1062
loc_F0F51:
mov rax, [rsp+128h+var_20]
mov [rsp+128h+var_128], rax
xorps xmm0, xmm0
movaps [rsp+128h+var_D8], xmm0
movaps [rsp+128h+var_E8], xmm0
movaps [rsp+128h+var_F8], xmm0
lea rdi, [rsp+128h+var_F8]
mov [rsp+128h+var_120], rdi
call _ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EEC2Ev; std::set<std::string>::set(void)
mov rdx, [rsp+128h+var_128]
mov rcx, [rsp+128h+var_120]
lea rdi, [rsp+128h+var_90]
lea rsi, [rsp+128h+var_50]
call _ZN11ModelLoader12load_tensorsERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS6_ESaISt4pairIKS6_S8_EEEP12ggml_backendSt3setIS6_SA_SaIS6_EE; ModelLoader::load_tensors(std::map<std::string,ggml_tensor *> &,ggml_backend *,std::set<std::string>)
mov [rsp+128h+var_113], al
jmp short $+2
loc_F0FA2:
lea rdi, [rsp+128h+var_F8]
call _ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EED2Ev; std::set<std::string>::~set()
mov al, [rsp+128h+var_113]
and al, 1
mov [rsp+128h+var_B9], al
test [rsp+128h+var_B9], 1
jnz short loc_F1010
lea rsi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aLoadEsrganTens; "load esrgan tensors from model loader f"...
xor eax, eax
mov edi, 3
mov edx, 12Ah
call _Z10log_printf14sd_log_level_tPKciS1_z; log_printf(sd_log_level_t,char const*,int,char const*,...)
jmp short $+2
loc_F0FDE:
mov [rsp+128h+var_1], 0
mov [rsp+128h+var_B8], 1
jmp short loc_F1046
mov rcx, rax
mov eax, edx
mov [rsp+arg_C8], rcx
mov [rsp+arg_C4], eax
lea rdi, [rsp+arg_28]
call _ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EED2Ev; std::set<std::string>::~set()
jmp short loc_F1062
loc_F1010:
lea rsi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aEsrganModelLoa; "esrgan model loaded"
xor eax, eax
mov edi, 1
mov edx, 12Eh
call _Z10log_printf14sd_log_level_tPKciS1_z; log_printf(sd_log_level_t,char const*,int,char const*,...)
jmp short $+2
loc_F1031:
mov al, [rsp+128h+var_B9]
and al, 1
mov [rsp+128h+var_1], al
mov [rsp+128h+var_B8], 1
loc_F1046:
lea rdi, [rsp+128h+var_90]; this
call _ZN11ModelLoaderD2Ev; ModelLoader::~ModelLoader()
lea rdi, [rsp+128h+var_50]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS5_ESaISt4pairIKS5_S7_EEED2Ev; std::map<std::string,ggml_tensor *>::~map()
jmp short loc_F107E
loc_F1062:
lea rdi, [rsp+arg_90]; this
call _ZN11ModelLoaderD2Ev; ModelLoader::~ModelLoader()
loc_F106F:
lea rdi, [rsp+arg_D0]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS5_ESaISt4pairIKS5_S7_EEED2Ev; std::map<std::string,ggml_tensor *>::~map()
jmp short loc_F108F
loc_F107E:
mov al, [rsp+128h+var_1]
and al, 1
add rsp, 128h
retn
loc_F108F:
mov rdi, [rsp+arg_C8]
call __Unwind_Resume
| bool ESRGAN::load_from_file(ESRGAN *a1, long long a2, long long a3)
{
const char *v3; // rax
const char *v4; // rax
long long v6; // [rsp+0h] [rbp-128h]
bool tensors; // [rsp+15h] [rbp-113h]
char v8; // [rsp+16h] [rbp-112h]
long long v9; // [rsp+18h] [rbp-110h]
_OWORD v10[3]; // [rsp+30h] [rbp-F8h] BYREF
bool v11; // [rsp+6Fh] [rbp-B9h]
int v12; // [rsp+70h] [rbp-B8h]
char v13; // [rsp+77h] [rbp-B1h] BYREF
_BYTE v14[32]; // [rsp+78h] [rbp-B0h] BYREF
_QWORD v15[8]; // [rsp+98h] [rbp-90h] BYREF
_BYTE v16[48]; // [rsp+D8h] [rbp-50h] BYREF
long long v17; // [rsp+108h] [rbp-20h]
long long v18; // [rsp+110h] [rbp-18h]
ESRGAN *v19; // [rsp+118h] [rbp-10h]
bool v20; // [rsp+127h] [rbp-1h]
v19 = a1;
v18 = a2;
v17 = a3;
v3 = (const char *)std::string::c_str(a2);
log_printf(
1u,
(long long)"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/esrgan.hpp",
275,
(long long)"loading esrgan from '%s'",
v3);
if ( (GGMLModule::alloc_params_buffer((const __m128i *)a1, v17, 0) & 1) != 0 )
{
std::map<std::string,ggml_tensor *>::map((long long)v16);
ESRGAN::init_params(a1);
ESRGAN::map_by_name(a1, v16);
ModelLoader::ModelLoader((ModelLoader *)v15);
v9 = v18;
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>((long long)v14, (long long)&dword_186F7E, (long long)&v13);
v8 = ~(unsigned __int8)ModelLoader::init_from_file(v15, v9, v14);
std::string::~string(v14);
std::allocator<char>::~allocator(&v13);
if ( (v8 & 1) != 0 )
{
v4 = (const char *)std::string::c_str(v18);
log_printf(
3u,
(long long)"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/esrgan.hpp",
291,
(long long)"init esrgan model loader from file failed: '%s'",
v4);
v20 = 0;
v12 = 1;
}
else
{
v6 = v17;
memset(v10, 0, sizeof(v10));
std::set<std::string>::set((long long)v10);
tensors = ModelLoader::load_tensors(v15, (long long)v16, v6, (long long)v10);
std::set<std::string>::~set((long long)v10);
v11 = tensors;
if ( tensors )
{
log_printf(
1u,
(long long)"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/esrgan.hpp",
302,
(long long)"esrgan model loaded");
v20 = v11;
}
else
{
log_printf(
3u,
(long long)"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/esrgan.hpp",
298,
(long long)"load esrgan tensors from model loader failed");
v20 = 0;
}
v12 = 1;
}
ModelLoader::~ModelLoader((ModelLoader *)v15);
std::map<std::string,ggml_tensor *>::~map((long long)v16);
}
else
{
return 0;
}
return v20;
}
| load_from_file:
SUB RSP,0x128
MOV qword ptr [RSP + 0x118],RDI
MOV qword ptr [RSP + 0x110],RSI
MOV qword ptr [RSP + 0x108],RDX
MOV RAX,qword ptr [RSP + 0x118]
MOV qword ptr [RSP + 0x28],RAX
MOV RDI,qword ptr [RSP + 0x110]
CALL 0x0010b280
MOV R8,RAX
MOV EDI,0x1
LEA RSI,[0x28587b]
MOV EDX,0x113
LEA RCX,[0x2858cc]
MOV AL,0x0
CALL 0x001eb5e0
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x108]
XOR EDX,EDX
CALL 0x00152c40
TEST AL,0x1
JNZ 0x001f0de0
MOV byte ptr [RSP + 0x127],0x0
JMP 0x001f107e
LAB_001f0de0:
LEA RDI,[RSP + 0xd8]
CALL 0x00141050
MOV RDI,qword ptr [RSP + 0x28]
LAB_001f0df2:
CALL 0x001f10a0
JMP 0x001f0df9
LAB_001f0df9:
MOV RDI,qword ptr [RSP + 0x28]
LEA RSI,[RSP + 0xd8]
CALL 0x001f1330
JMP 0x001f0e0d
LAB_001f0e0d:
LEA RDI,[RSP + 0x98]
CALL 0x00151cf0
MOV RAX,qword ptr [RSP + 0x110]
MOV qword ptr [RSP + 0x18],RAX
LEA RDI,[RSP + 0x77]
MOV qword ptr [RSP + 0x20],RDI
CALL 0x0010bd40
MOV RDX,qword ptr [RSP + 0x20]
LAB_001f0e3b:
LEA RSI,[0x286f7e]
LEA RDI,[RSP + 0x78]
CALL 0x00130260
JMP 0x001f0e4e
LAB_001f0e4e:
MOV RSI,qword ptr [RSP + 0x18]
LEA RDI,[RSP + 0x98]
LEA RDX,[RSP + 0x78]
CALL 0x001bbd40
MOV byte ptr [RSP + 0x17],AL
JMP 0x001f0e6b
LAB_001f0e6b:
MOV AL,byte ptr [RSP + 0x17]
XOR AL,0xff
MOV byte ptr [RSP + 0x16],AL
LEA RDI,[RSP + 0x78]
CALL 0x0010bf00
LEA RDI,[RSP + 0x77]
CALL 0x0010b820
MOV AL,byte ptr [RSP + 0x16]
TEST AL,0x1
JNZ 0x001f0e96
JMP 0x001f0f51
LAB_001f0e96:
MOV RDI,qword ptr [RSP + 0x110]
CALL 0x0010b280
MOV R8,RAX
LAB_001f0ea6:
LEA RSI,[0x28587b]
LEA RCX,[0x2858e5]
XOR EAX,EAX
MOV EDI,0x3
MOV EDX,0x123
CALL 0x001eb5e0
JMP 0x001f0ec7
LAB_001f0ec7:
MOV byte ptr [RSP + 0x127],0x0
MOV dword ptr [RSP + 0x70],0x1
JMP 0x001f1046
LAB_001f0f51:
MOV RAX,qword ptr [RSP + 0x108]
MOV qword ptr [RSP],RAX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x50],XMM0
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOVAPS xmmword ptr [RSP + 0x30],XMM0
LEA RDI,[RSP + 0x30]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x00155450
MOV RDX,qword ptr [RSP]
MOV RCX,qword ptr [RSP + 0x8]
LAB_001f0f87:
LEA RDI,[RSP + 0x98]
LEA RSI,[RSP + 0xd8]
CALL 0x001bf650
MOV byte ptr [RSP + 0x15],AL
JMP 0x001f0fa2
LAB_001f0fa2:
LEA RDI,[RSP + 0x30]
CALL 0x00155700
MOV AL,byte ptr [RSP + 0x15]
AND AL,0x1
MOV byte ptr [RSP + 0x6f],AL
TEST byte ptr [RSP + 0x6f],0x1
JNZ 0x001f1010
LAB_001f0fbd:
LEA RSI,[0x28587b]
LEA RCX,[0x285915]
XOR EAX,EAX
MOV EDI,0x3
MOV EDX,0x12a
CALL 0x001eb5e0
JMP 0x001f0fde
LAB_001f0fde:
MOV byte ptr [RSP + 0x127],0x0
MOV dword ptr [RSP + 0x70],0x1
JMP 0x001f1046
LAB_001f1010:
LEA RSI,[0x28587b]
LEA RCX,[0x285942]
XOR EAX,EAX
MOV EDI,0x1
MOV EDX,0x12e
CALL 0x001eb5e0
LAB_001f102f:
JMP 0x001f1031
LAB_001f1031:
MOV AL,byte ptr [RSP + 0x6f]
AND AL,0x1
MOV byte ptr [RSP + 0x127],AL
MOV dword ptr [RSP + 0x70],0x1
LAB_001f1046:
LEA RDI,[RSP + 0x98]
CALL 0x00151480
LEA RDI,[RSP + 0xd8]
CALL 0x001412d0
JMP 0x001f107e
LAB_001f107e:
MOV AL,byte ptr [RSP + 0x127]
AND AL,0x1
ADD RSP,0x128
RET
|
/* ESRGAN::load_from_file(std::__cxx11::string const&, ggml_backend*) */
ulong __thiscall ESRGAN::load_from_file(ESRGAN *this,string *param_1,ggml_backend *param_2)
{
ggml_backend *pgVar1;
string *psVar2;
byte bVar3;
int8 uVar4;
ulong uVar5;
int8 local_f8;
int8 uStack_f0;
int8 local_e8;
int8 uStack_e0;
int8 local_d8;
int8 uStack_d0;
byte local_b9;
int4 local_b8;
allocator local_b1;
string local_b0 [32];
ModelLoader local_90 [64];
map<std::__cxx11::string,ggml_tensor*,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,ggml_tensor*>>>
local_50 [48];
ggml_backend *local_20;
string *local_18;
ESRGAN *local_10;
byte local_1;
local_20 = param_2;
local_18 = param_1;
local_10 = this;
uVar4 = std::__cxx11::string::c_str();
log_printf(1,"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/esrgan.hpp",
0x113,"loading esrgan from \'%s\'",uVar4);
uVar5 = GGMLModule::alloc_params_buffer((GGMLModule *)this,local_20,0);
if ((uVar5 & 1) == 0) {
local_1 = 0;
}
else {
std::
map<std::__cxx11::string,ggml_tensor*,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,ggml_tensor*>>>
::map(local_50);
/* try { // try from 001f0df2 to 001f0e0a has its CatchHandler @ 001f0edc */
init_params(this);
map_by_name(this,(map *)local_50);
ModelLoader::ModelLoader(local_90);
psVar2 = local_18;
std::allocator<char>::allocator();
/* try { // try from 001f0e3b to 001f0e4b has its CatchHandler @ 001f0ef5 */
std::__cxx11::string::string<std::allocator<char>>(local_b0,"",&local_b1);
/* try { // try from 001f0e4e to 001f0e64 has its CatchHandler @ 001f0f0b */
bVar3 = ModelLoader::init_from_file(local_90,psVar2,local_b0);
std::__cxx11::string::~string(local_b0);
std::allocator<char>::~allocator((allocator<char> *)&local_b1);
pgVar1 = local_20;
if (((bVar3 ^ 0xff) & 1) == 0) {
local_d8 = 0;
uStack_d0 = 0;
local_e8 = 0;
uStack_e0 = 0;
local_f8 = 0;
uStack_f0 = 0;
std::
set<std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
::set((set<std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
*)&local_f8);
/* try { // try from 001f0f87 to 001f0f9b has its CatchHandler @ 001f0ff0 */
bVar3 = ModelLoader::load_tensors
(local_90,local_50,pgVar1,
(set<std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
*)&local_f8);
std::
set<std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
::~set((set<std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
*)&local_f8);
local_b9 = bVar3 & 1;
if (local_b9 == 0) {
/* try { // try from 001f0fbd to 001f102e has its CatchHandler @ 001f0f38 */
log_printf(3,
"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/esrgan.hpp"
,0x12a,"load esrgan tensors from model loader failed");
local_1 = 0;
}
else {
log_printf(1,
"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/esrgan.hpp"
,0x12e,"esrgan model loaded");
local_1 = local_b9 & 1;
}
}
else {
uVar4 = std::__cxx11::string::c_str();
/* try { // try from 001f0ea6 to 001f0ec4 has its CatchHandler @ 001f0f38 */
log_printf(3,
"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/esrgan.hpp",
0x123,"init esrgan model loader from file failed: \'%s\'",uVar4);
local_1 = 0;
}
local_b8 = 1;
ModelLoader::~ModelLoader(local_90);
uVar5 = std::
map<std::__cxx11::string,ggml_tensor*,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,ggml_tensor*>>>
::~map(local_50);
}
return CONCAT71((int7)(uVar5 >> 8),local_1) & 0xffffffffffffff01;
}
| |
24,036 | ESRGAN::load_from_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, ggml_backend*) | 7CodeWizard[P]stablediffusion/esrgan.hpp | bool load_from_file(const std::string& file_path, ggml_backend_t backend) {
LOG_INFO("loading esrgan from '%s'", file_path.c_str());
if (!alloc_params_buffer(backend)) {
return false;
}
std::map<std::string, ggml_tensor*> esrgan_tensors;
// prepare memory for the weights
{
init_params();
map_by_name(esrgan_tensors);
}
ModelLoader model_loader;
if (!model_loader.init_from_file(file_path)) {
LOG_ERROR("init esrgan model loader from file failed: '%s'", file_path.c_str());
return false;
}
bool success = model_loader.load_tensors(esrgan_tensors, backend);
if (!success) {
LOG_ERROR("load esrgan tensors from model loader failed");
return false;
}
LOG_INFO("esrgan model loaded");
return success;
} | O1 | cpp | ESRGAN::load_from_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, ggml_backend*):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xb8, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rsi), %r8
leaq 0x46a5d(%rip), %rsi # 0xc3733
leaq 0x46aa7(%rip), %rcx # 0xc3784
xorl %ebp, %ebp
movl $0x1, %edi
movl $0x113, %edx # imm = 0x113
xorl %eax, %eax
callq 0x7a4d6
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3d56a
testb %al, %al
je 0x7ce65
leaq 0x58(%rsp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq %r15, %rdi
callq 0x7ced4
leaq 0x50(%rsp), %rsi
movq %r15, %rdi
callq 0x7d134
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x480d5(%rip), %rdx # 0xc4e2e
movq %rsp, %rdi
movq %rdx, %rsi
callq 0x2fa9c
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
movq %r14, %rsi
callq 0x68b5e
movl %eax, %ebp
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x7cd8c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5e0
testb %bpl, %bpl
je 0x7ce23
leaq 0x88(%rsp), %rax
xorps %xmm0, %xmm0
movaps %xmm0, 0x8(%rax)
movaps %xmm0, 0x18(%rax)
movaps %xmm0, -0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq $0x0, 0x20(%rax)
leaq 0x20(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0x80(%rsp), %rcx
movq %rbx, %rdx
callq 0x6b4e2
movl %eax, %ebp
leaq 0x80(%rsp), %rdi
callq 0x477ea
movzbl %bpl, %eax
movl %ebp, %ecx
xorb $0x1, %cl
movzbl %cl, %ecx
leal 0x1(,%rcx,2), %edi
leal 0x12a(,%rax,4), %edx
leaq 0x469f4(%rip), %rsi # 0xc37fa
leaq 0x469c0(%rip), %rcx # 0xc37cd
testb %al, %al
cmovneq %rsi, %rcx
leaq 0x46919(%rip), %rsi # 0xc3733
xorl %eax, %eax
callq 0x7a4d6
jmp 0x7ce47
movq (%r14), %r8
xorl %ebp, %ebp
leaq 0x46904(%rip), %rsi # 0xc3733
leaq 0x46967(%rip), %rcx # 0xc379d
movl $0x3, %edi
movl $0x123, %edx # imm = 0x123
xorl %eax, %eax
callq 0x7a4d6
leaq 0x38(%rsp), %rdi
callq 0x3c8ac
leaq 0x20(%rsp), %rdi
callq 0x3c908
leaq 0x50(%rsp), %rdi
callq 0x3c9e2
movl %ebp, %eax
addq $0xb8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7cea6
jmp 0x7cea6
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x477ea
jmp 0x7cea9
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x7cea9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5e0
jmp 0x7cea9
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x3c8ac
leaq 0x20(%rsp), %rdi
callq 0x3c908
jmp 0x7cec2
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x3c9e2
movq %rbx, %rdi
callq 0xaae0
| _ZN6ESRGAN14load_from_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP12ggml_backend:
push rbp
push r15
push r14
push rbx
sub rsp, 0B8h
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov r8, [rsi]
lea rsi, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aLoadingEsrganF; "loading esrgan from '%s'"
xor ebp, ebp
mov edi, 1
mov edx, 113h
xor eax, eax
call _Z10log_printf14sd_log_level_tPKciS1_z; log_printf(sd_log_level_t,char const*,int,char const*,...)
mov rdi, r15
mov rsi, rbx
xor edx, edx
call _ZN10GGMLModule19alloc_params_bufferEP12ggml_backend9ggml_type; GGMLModule::alloc_params_buffer(ggml_backend *,ggml_type)
test al, al
jz loc_7CE65
lea rax, [rsp+0D8h+var_80]
mov dword ptr [rax], 0
xor ecx, ecx
mov [rax+8], rcx
mov [rax+10h], rax
mov [rax+18h], rax
mov [rax+20h], rcx
mov rdi, r15; this
call _ZN6ESRGAN11init_paramsEv; ESRGAN::init_params(void)
lea rsi, [rsp+0D8h+var_88]; __int64
mov rdi, r15; int
call _ZN6ESRGAN11map_by_nameERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS6_ESaISt4pairIKS6_S8_EEE; ESRGAN::map_by_name(std::map<std::string,ggml_tensor *> &)
xorps xmm0, xmm0
movaps [rsp+0D8h+var_98], xmm0
movaps [rsp+0D8h+var_A8], xmm0
movaps xmmword ptr [rsp+0D8h+var_B8], xmm0
lea r15, [rsp+0D8h+var_C8]
mov [r15-10h], r15
lea rdx, unk_C4E2E
mov rdi, rsp
mov rsi, rdx
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_B8]; int
mov rdx, rsp
mov rsi, r14
call _ZN11ModelLoader14init_from_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_; ModelLoader::init_from_file(std::string const&,std::string const&)
mov ebp, eax
mov rdi, [rsp+0D8h+var_D8]; void *
cmp rdi, r15
jz short loc_7CD8C
mov rsi, [rsp+0D8h+var_C8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7CD8C:
test bpl, bpl
jz loc_7CE23
lea rax, [rsp+0D8h+var_50]
xorps xmm0, xmm0
movaps xmmword ptr [rax+8], xmm0
movaps xmmword ptr [rax+18h], xmm0
movaps xmmword ptr [rax-8], xmm0
mov [rax+10h], rax
mov [rax+18h], rax
mov qword ptr [rax+20h], 0
lea rdi, [rsp+0D8h+var_B8]; __int64
lea rsi, [rsp+0D8h+var_88]
lea rcx, [rsp+0D8h+var_58]
mov rdx, rbx
call _ZN11ModelLoader12load_tensorsERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS6_ESaISt4pairIKS6_S8_EEEP12ggml_backendSt3setIS6_SA_SaIS6_EE; ModelLoader::load_tensors(std::map<std::string,ggml_tensor *> &,ggml_backend *,std::set<std::string>)
mov ebp, eax
lea rdi, [rsp+0D8h+var_58]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EED2Ev; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::~_Rb_tree()
movzx eax, bpl
mov ecx, ebp
xor cl, 1
movzx ecx, cl
lea edi, ds:1[rcx*2]
lea edx, ds:12Ah[rax*4]
lea rsi, aEsrganModelLoa; "esrgan model loaded"
lea rcx, aLoadEsrganTens; "load esrgan tensors from model loader f"...
test al, al
cmovnz rcx, rsi
lea rsi, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"...
xor eax, eax
call _Z10log_printf14sd_log_level_tPKciS1_z; log_printf(sd_log_level_t,char const*,int,char const*,...)
jmp short loc_7CE47
loc_7CE23:
mov r8, [r14]
xor ebp, ebp
lea rsi, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aInitEsrganMode; "init esrgan model loader from file fail"...
mov edi, 3
mov edx, 123h
xor eax, eax
call _Z10log_printf14sd_log_level_tPKciS1_z; log_printf(sd_log_level_t,char const*,int,char const*,...)
loc_7CE47:
lea rdi, [rsp+0D8h+var_A8+8]
call _ZNSt6vectorI13TensorStorageSaIS0_EED2Ev; std::vector<TensorStorage>::~vector()
lea rdi, [rsp+0D8h+var_B8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+0D8h+var_88]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P11ggml_tensorESt10_Select1stISA_ESt4lessIS5_ESaISA_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ggml_tensor *>,std::_Select1st<std::pair<std::string const,ggml_tensor *>>,std::less<std::string>,std::allocator<std::pair<std::string const,ggml_tensor *>>>::~_Rb_tree()
loc_7CE65:
mov eax, ebp
add rsp, 0B8h
pop rbx
pop r14
pop r15
pop rbp
retn
jmp short loc_7CEA6
jmp short loc_7CEA6
mov rbx, rax
lea rdi, [rsp+arg_78]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EED2Ev; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::~_Rb_tree()
jmp short loc_7CEA9
mov rbx, rax
mov rdi, [rsp+0]; void *
cmp rdi, r15
jz short loc_7CEA9
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_7CEA9
loc_7CEA6:
mov rbx, rax
loc_7CEA9:
lea rdi, [rsp+arg_30]
call _ZNSt6vectorI13TensorStorageSaIS0_EED2Ev; std::vector<TensorStorage>::~vector()
lea rdi, [rsp+arg_18]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_7CEC2
mov rbx, rax
loc_7CEC2:
lea rdi, [rsp+arg_48]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P11ggml_tensorESt10_Select1stISA_ESt4lessIS5_ESaISA_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ggml_tensor *>,std::_Select1st<std::pair<std::string const,ggml_tensor *>>,std::less<std::string>,std::allocator<std::pair<std::string const,ggml_tensor *>>>::~_Rb_tree()
mov rdi, rbx
call __Unwind_Resume
| long long ESRGAN::load_from_file(
ESRGAN *a1,
long long *a2,
long long a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
long long a12,
long long a13,
long long a14)
{
unsigned int tensors; // ebp
long long v16; // rcx
long long v17; // r8
long long v18; // r9
char v19; // bp
long long v20; // r9
__m128 v21; // xmm4
__m128 v22; // xmm5
long long v23; // r8
long long v24; // r9
__m128 v25; // xmm4
__m128 v26; // xmm5
const char *v27; // rcx
void *v29; // [rsp+0h] [rbp-D8h] BYREF
long long v30; // [rsp+8h] [rbp-D0h]
void *v31; // [rsp+10h] [rbp-C8h] BYREF
int v32; // [rsp+18h] [rbp-C0h]
long long v33[2]; // [rsp+20h] [rbp-B8h] BYREF
__int128 v34; // [rsp+30h] [rbp-A8h] BYREF
__int128 v35; // [rsp+40h] [rbp-98h]
long long v36; // [rsp+50h] [rbp-88h] BYREF
long long v37; // [rsp+58h] [rbp-80h] BYREF
long long v38; // [rsp+60h] [rbp-78h]
long long *v39; // [rsp+68h] [rbp-70h]
long long *v40; // [rsp+70h] [rbp-68h]
long long v41; // [rsp+78h] [rbp-60h]
__int128 v42; // [rsp+80h] [rbp-58h] BYREF
long long v43; // [rsp+90h] [rbp-48h]
char *v44; // [rsp+98h] [rbp-40h]
char *v45; // [rsp+A0h] [rbp-38h]
long long v46; // [rsp+A8h] [rbp-30h]
tensors = 0;
log_printf(
1u,
(long long)"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/esrgan.hpp",
275,
(long long)"loading esrgan from '%s'",
*a2,
a14,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
(char)v29);
if ( GGMLModule::alloc_params_buffer((long long)a1, a3, 0) )
{
LODWORD(v37) = 0;
v38 = 0LL;
v39 = &v37;
v40 = &v37;
v41 = 0LL;
ESRGAN::init_params(a1);
ESRGAN::map_by_name(
(int)a1,
(long long)&v36,
(int)v29,
v30,
(int)v31,
v32,
v33[0],
(void *)v33[1],
v34,
*((long long *)&v34 + 1),
v35,
*((void **)&v35 + 1),
v36,
v37);
v35 = 0LL;
v34 = 0LL;
*(_OWORD *)v33 = 0LL;
v29 = &v31;
std::string::_M_construct<char const*>(&v29, &unk_C4E2E, (long long)&unk_C4E2E);
v19 = ModelLoader::init_from_file(
(long long)v33,
a2,
(long long)&v29,
v16,
v17,
v18,
(int)v29,
v30,
v31,
v32,
v33[0],
v33[1],
(void *)v34,
SDWORD2(v34),
v35,
SDWORD2(v35),
v36,
v37,
v38,
(int)v39,
v40,
v41,
v42);
if ( v29 != &v31 )
operator delete(v29, (unsigned long long)v31 + 1);
if ( v19 )
{
v43 = 0LL;
v42 = 0LL;
v44 = (char *)&v42 + 8;
v45 = (char *)&v42 + 8;
v46 = 0LL;
tensors = ModelLoader::load_tensors((long long)v33, (long long)&v36, a3, (long long)&v42);
std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::~_Rb_tree((long long)&v42);
v27 = "load esrgan tensors from model loader failed";
if ( (_BYTE)tensors )
v27 = "esrgan model loaded";
log_printf(
2 * ((unsigned __int8)tensors ^ 1) + 1,
(long long)"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/esrgan.hpp",
4 * (unsigned __int8)tensors + 298,
(long long)v27,
v23,
v24,
(__m128)0LL,
a5,
a6,
a7,
v25,
v26,
a10,
a11,
(char)v29);
}
else
{
tensors = 0;
log_printf(
3u,
(long long)"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/esrgan.hpp",
291,
(long long)"init esrgan model loader from file failed: '%s'",
*a2,
v20,
(__m128)0LL,
a5,
a6,
a7,
v21,
v22,
a10,
a11,
(char)v29);
}
std::vector<TensorStorage>::~vector((_QWORD *)&v34 + 1);
std::vector<std::string>::~vector(v33);
std::_Rb_tree<std::string,std::pair<std::string const,ggml_tensor *>,std::_Select1st<std::pair<std::string const,ggml_tensor *>>,std::less<std::string>,std::allocator<std::pair<std::string const,ggml_tensor *>>>::~_Rb_tree((long long)&v36);
}
return tensors;
}
| |||
24,037 | ESRGAN::load_from_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, ggml_backend*) | 7CodeWizard[P]stablediffusion/esrgan.hpp | bool load_from_file(const std::string& file_path, ggml_backend_t backend) {
LOG_INFO("loading esrgan from '%s'", file_path.c_str());
if (!alloc_params_buffer(backend)) {
return false;
}
std::map<std::string, ggml_tensor*> esrgan_tensors;
// prepare memory for the weights
{
init_params();
map_by_name(esrgan_tensors);
}
ModelLoader model_loader;
if (!model_loader.init_from_file(file_path)) {
LOG_ERROR("init esrgan model loader from file failed: '%s'", file_path.c_str());
return false;
}
bool success = model_loader.load_tensors(esrgan_tensors, backend);
if (!success) {
LOG_ERROR("load esrgan tensors from model loader failed");
return false;
}
LOG_INFO("esrgan model loaded");
return success;
} | O3 | cpp | ESRGAN::load_from_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, ggml_backend*):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xb8, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rsi), %r8
leaq 0x46ad7(%rip), %rsi # 0xc2743
leaq 0x46b21(%rip), %rcx # 0xc2794
xorl %ebp, %ebp
movl $0x1, %edi
movl $0x113, %edx # imm = 0x113
xorl %eax, %eax
callq 0x7947e
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3ca42
testb %al, %al
je 0x7bdfe
leaq 0x58(%rsp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq %r15, %rdi
callq 0x7be6e
leaq 0x50(%rsp), %rsi
movq %r15, %rdi
callq 0x7c0c4
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x4814f(%rip), %rdx # 0xc3e3e
movq %rsp, %rdi
movq %rdx, %rsi
callq 0x2ecd4
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
movq %r14, %rsi
callq 0x67f14
movl %eax, %ebp
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x7bd22
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5d0
testb %bpl, %bpl
je 0x7bd99
leaq 0x88(%rsp), %rax
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq 0x20(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0x80(%rsp), %rcx
movq %rbx, %rdx
callq 0x6a844
movl %eax, %ebx
leaq 0x80(%rsp), %rdi
callq 0x46d4e
testb %bl, %bl
je 0x7bdbf
movb $0x1, %bpl
leaq 0x469c4(%rip), %rsi # 0xc2743
leaq 0x46a84(%rip), %rcx # 0xc280a
movl $0x1, %edi
movl $0x12e, %edx # imm = 0x12E
xorl %eax, %eax
callq 0x7947e
jmp 0x7bde0
movq (%r14), %r8
xorl %ebp, %ebp
leaq 0x4699e(%rip), %rsi # 0xc2743
leaq 0x46a01(%rip), %rcx # 0xc27ad
movl $0x3, %edi
movl $0x123, %edx # imm = 0x123
xorl %eax, %eax
callq 0x7947e
jmp 0x7bde0
xorl %ebp, %ebp
leaq 0x4697b(%rip), %rsi # 0xc2743
leaq 0x46a0e(%rip), %rcx # 0xc27dd
movl $0x3, %edi
movl $0x12a, %edx # imm = 0x12A
xorl %eax, %eax
callq 0x7947e
leaq 0x38(%rsp), %rdi
callq 0x3bd5c
leaq 0x20(%rsp), %rdi
callq 0x3bdba
leaq 0x50(%rsp), %rdi
callq 0x3be96
movl %ebp, %eax
addq $0xb8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7be3f
jmp 0x7be3f
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x46d4e
jmp 0x7be42
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x7be42
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5d0
jmp 0x7be42
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x3bd5c
leaq 0x20(%rsp), %rdi
callq 0x3bdba
jmp 0x7be5b
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x3be96
movq %rbx, %rdi
callq 0xaad0
nop
| _ZN6ESRGAN14load_from_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP12ggml_backend:
push rbp
push r15
push r14
push rbx
sub rsp, 0B8h
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov r8, [rsi]
lea rsi, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aLoadingEsrganF; "loading esrgan from '%s'"
xor ebp, ebp
mov edi, 1
mov edx, 113h
xor eax, eax
call _Z10log_printf14sd_log_level_tPKciS1_z; log_printf(sd_log_level_t,char const*,int,char const*,...)
mov rdi, r15
mov rsi, rbx
xor edx, edx
call _ZN10GGMLModule19alloc_params_bufferEP12ggml_backend9ggml_type; GGMLModule::alloc_params_buffer(ggml_backend *,ggml_type)
test al, al
jz loc_7BDFE
lea rax, [rsp+0D8h+var_80]
mov dword ptr [rax], 0
xor ecx, ecx
mov [rax+8], rcx
mov [rax+10h], rax
mov [rax+18h], rax
mov [rax+20h], rcx
mov rdi, r15; this
call _ZN6ESRGAN11init_paramsEv; ESRGAN::init_params(void)
lea rsi, [rsp+0D8h+var_88]; __int64
mov rdi, r15; int
call _ZN6ESRGAN11map_by_nameERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS6_ESaISt4pairIKS6_S8_EEE; ESRGAN::map_by_name(std::map<std::string,ggml_tensor *> &)
xorps xmm0, xmm0
movaps [rsp+0D8h+var_98], xmm0
movaps [rsp+0D8h+var_A8], xmm0
movaps xmmword ptr [rsp+0D8h+var_B8], xmm0
lea r15, [rsp+0D8h+var_C8]
mov [r15-10h], r15
lea rdx, unk_C3E3E
mov rdi, rsp
mov rsi, rdx
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_B8]; int
mov rdx, rsp
mov rsi, r14
call _ZN11ModelLoader14init_from_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_; ModelLoader::init_from_file(std::string const&,std::string const&)
mov ebp, eax
mov rdi, [rsp+0D8h+var_D8]; void *
cmp rdi, r15
jz short loc_7BD22
mov rsi, [rsp+0D8h+var_C8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7BD22:
test bpl, bpl
jz short loc_7BD99
lea rax, [rsp+0D8h+var_50]
xorps xmm0, xmm0
movaps xmmword ptr [rax-8], xmm0
xor ecx, ecx
mov [rax+8], rcx
mov [rax+10h], rax
mov [rax+18h], rax
mov [rax+20h], rcx
lea rdi, [rsp+0D8h+var_B8]; __int64
lea rsi, [rsp+0D8h+var_88]
lea rcx, [rsp+0D8h+var_58]
mov rdx, rbx
call _ZN11ModelLoader12load_tensorsERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS6_ESaISt4pairIKS6_S8_EEEP12ggml_backendSt3setIS6_SA_SaIS6_EE; ModelLoader::load_tensors(std::map<std::string,ggml_tensor *> &,ggml_backend *,std::set<std::string>)
mov ebx, eax
lea rdi, [rsp+0D8h+var_58]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EED2Ev; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::~_Rb_tree()
test bl, bl
jz short loc_7BDBF
mov bpl, 1
lea rsi, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aEsrganModelLoa; "esrgan model loaded"
mov edi, 1
mov edx, 12Eh
xor eax, eax
call _Z10log_printf14sd_log_level_tPKciS1_z; log_printf(sd_log_level_t,char const*,int,char const*,...)
jmp short loc_7BDE0
loc_7BD99:
mov r8, [r14]
xor ebp, ebp
lea rsi, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aInitEsrganMode; "init esrgan model loader from file fail"...
mov edi, 3
mov edx, 123h
xor eax, eax
call _Z10log_printf14sd_log_level_tPKciS1_z; log_printf(sd_log_level_t,char const*,int,char const*,...)
jmp short loc_7BDE0
loc_7BDBF:
xor ebp, ebp
lea rsi, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aLoadEsrganTens; "load esrgan tensors from model loader f"...
mov edi, 3
mov edx, 12Ah
xor eax, eax
call _Z10log_printf14sd_log_level_tPKciS1_z; log_printf(sd_log_level_t,char const*,int,char const*,...)
loc_7BDE0:
lea rdi, [rsp+0D8h+var_A8+8]
call _ZNSt6vectorI13TensorStorageSaIS0_EED2Ev; std::vector<TensorStorage>::~vector()
lea rdi, [rsp+0D8h+var_B8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
lea rdi, [rsp+0D8h+var_88]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P11ggml_tensorESt10_Select1stISA_ESt4lessIS5_ESaISA_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ggml_tensor *>,std::_Select1st<std::pair<std::string const,ggml_tensor *>>,std::less<std::string>,std::allocator<std::pair<std::string const,ggml_tensor *>>>::~_Rb_tree()
loc_7BDFE:
mov eax, ebp
add rsp, 0B8h
pop rbx
pop r14
pop r15
pop rbp
retn
jmp short loc_7BE3F
jmp short loc_7BE3F
mov rbx, rax
lea rdi, [rsp+arg_78]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EED2Ev; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::~_Rb_tree()
jmp short loc_7BE42
mov rbx, rax
mov rdi, [rsp+0]; void *
cmp rdi, r15
jz short loc_7BE42
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_7BE42
loc_7BE3F:
mov rbx, rax
loc_7BE42:
lea rdi, [rsp+arg_30]
call _ZNSt6vectorI13TensorStorageSaIS0_EED2Ev; std::vector<TensorStorage>::~vector()
lea rdi, [rsp+arg_18]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_7BE5B
mov rbx, rax
loc_7BE5B:
lea rdi, [rsp+arg_48]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P11ggml_tensorESt10_Select1stISA_ESt4lessIS5_ESaISA_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ggml_tensor *>,std::_Select1st<std::pair<std::string const,ggml_tensor *>>,std::less<std::string>,std::allocator<std::pair<std::string const,ggml_tensor *>>>::~_Rb_tree()
mov rdi, rbx
call __Unwind_Resume
| long long ESRGAN::load_from_file(
ESRGAN *a1,
long long *a2,
long long a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
long long a12,
long long a13,
long long a14)
{
unsigned int v15; // ebp
long long v16; // rcx
long long v17; // r8
long long v18; // r9
long long v19; // r9
__m128 v20; // xmm4
__m128 v21; // xmm5
char tensors; // bl
long long v23; // r8
long long v24; // r9
__m128 v25; // xmm4
__m128 v26; // xmm5
void *v28; // [rsp+0h] [rbp-D8h] BYREF
long long v29; // [rsp+8h] [rbp-D0h]
void *v30; // [rsp+10h] [rbp-C8h] BYREF
int v31; // [rsp+18h] [rbp-C0h]
long long v32[2]; // [rsp+20h] [rbp-B8h] BYREF
__int128 v33; // [rsp+30h] [rbp-A8h] BYREF
__int128 v34; // [rsp+40h] [rbp-98h]
long long v35; // [rsp+50h] [rbp-88h] BYREF
long long v36; // [rsp+58h] [rbp-80h] BYREF
long long v37; // [rsp+60h] [rbp-78h]
long long *v38; // [rsp+68h] [rbp-70h]
long long *v39; // [rsp+70h] [rbp-68h]
long long v40; // [rsp+78h] [rbp-60h]
__int128 v41; // [rsp+80h] [rbp-58h] BYREF
long long v42; // [rsp+90h] [rbp-48h]
char *v43; // [rsp+98h] [rbp-40h]
char *v44; // [rsp+A0h] [rbp-38h]
long long v45; // [rsp+A8h] [rbp-30h]
v15 = 0;
log_printf(
1u,
(long long)"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/esrgan.hpp",
275,
(long long)"loading esrgan from '%s'",
*a2,
a14,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
(char)v28);
if ( GGMLModule::alloc_params_buffer((long long)a1, a3, 0) )
{
LODWORD(v36) = 0;
v37 = 0LL;
v38 = &v36;
v39 = &v36;
v40 = 0LL;
ESRGAN::init_params(a1);
ESRGAN::map_by_name(
(int)a1,
(long long)&v35,
(int)v28,
v29,
(int)v30,
v31,
v32[0],
(void *)v32[1],
v33,
*((long long *)&v33 + 1),
v34,
*((void **)&v34 + 1),
v35,
v36);
v34 = 0LL;
v33 = 0LL;
*(_OWORD *)v32 = 0LL;
v28 = &v30;
std::string::_M_construct<char const*>((long long)&v28, &unk_C3E3E, (long long)&unk_C3E3E);
v15 = ModelLoader::init_from_file(
(long long)v32,
a2,
(long long)&v28,
v16,
v17,
v18,
(int)v28,
v29,
v30,
v31,
v32[0],
v32[1],
(void *)v33,
SDWORD2(v33),
v34,
SDWORD2(v34),
v35,
v36,
v37,
(int)v38,
v39,
v40,
v41);
if ( v28 != &v30 )
operator delete(v28, (unsigned long long)v30 + 1);
if ( (_BYTE)v15 )
{
v41 = 0LL;
v42 = 0LL;
v43 = (char *)&v41 + 8;
v44 = (char *)&v41 + 8;
v45 = 0LL;
tensors = ModelLoader::load_tensors((long long)v32, (long long)&v35, a3, (long long)&v41);
std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::~_Rb_tree((long long)&v41);
if ( tensors )
{
LOBYTE(v15) = 1;
log_printf(
1u,
(long long)"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/esrgan.hpp",
302,
(long long)"esrgan model loaded",
v23,
v24,
(__m128)0LL,
a5,
a6,
a7,
v25,
v26,
a10,
a11,
(char)v28);
}
else
{
v15 = 0;
log_printf(
3u,
(long long)"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/esrgan.hpp",
298,
(long long)"load esrgan tensors from model loader failed",
v23,
v24,
(__m128)0LL,
a5,
a6,
a7,
v25,
v26,
a10,
a11,
(char)v28);
}
}
else
{
v15 = 0;
log_printf(
3u,
(long long)"/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/esrgan.hpp",
291,
(long long)"init esrgan model loader from file failed: '%s'",
*a2,
v19,
(__m128)0LL,
a5,
a6,
a7,
v20,
v21,
a10,
a11,
(char)v28);
}
std::vector<TensorStorage>::~vector((long long)&v33 + 8);
std::vector<std::string>::~vector((long long)v32);
std::_Rb_tree<std::string,std::pair<std::string const,ggml_tensor *>,std::_Select1st<std::pair<std::string const,ggml_tensor *>>,std::less<std::string>,std::allocator<std::pair<std::string const,ggml_tensor *>>>::~_Rb_tree((long long)&v35);
}
return v15;
}
| |||
24,038 | maria_status | eloqsql/storage/maria/ma_info.c | int maria_status(MARIA_HA *info, register MARIA_INFO *x, uint flag)
{
MY_STAT state;
MARIA_SHARE *share= info->s;
DBUG_ENTER("maria_status");
DBUG_PRINT("info", ("records: %lld", info->state->records));
x->recpos= info->cur_row.lastpos;
if (flag == HA_STATUS_POS)
DBUG_RETURN(0); /* Compatible with ISAM */
if (!(flag & HA_STATUS_NO_LOCK))
{
mysql_mutex_lock(&share->intern_lock);
_ma_readinfo(info,F_RDLCK,0);
fast_ma_writeinfo(info);
mysql_mutex_unlock(&share->intern_lock);
}
if (flag & HA_STATUS_VARIABLE)
{
/* If table is locked, give versioned number otherwise last commited */
if (info->lock_type == F_UNLCK)
x->records = share->state.state.records;
else
x->records = info->state->records;
x->deleted = share->state.state.del;
x->delete_length = share->state.state.empty;
x->data_file_length = share->state.state.data_file_length;
x->index_file_length= share->state.state.key_file_length;
x->keys = share->state.header.keys;
x->check_time = share->state.check_time;
x->mean_reclength = x->records ?
(ulong) ((x->data_file_length - x->delete_length) /x->records) :
(ulong) share->min_pack_length;
}
if (flag & HA_STATUS_ERRKEY)
{
x->errkey= info->errkey;
x->dup_key_pos= info->dup_key_pos;
}
if (flag & HA_STATUS_CONST)
{
x->reclength = share->base.reclength;
x->max_data_file_length=share->base.max_data_file_length;
x->max_index_file_length=info->s->base.max_key_file_length;
x->filenr = info->dfile.file;
x->options = share->options;
x->create_time=share->state.create_time;
x->reflength= maria_get_pointer_length(share->base.max_data_file_length,
maria_data_pointer_size);
x->record_offset= (info->s->data_file_type == STATIC_RECORD ?
share->base.pack_reclength: 0);
x->sortkey= -1; /* No clustering */
x->rec_per_key = share->state.rec_per_key_part;
x->key_map = share->state.key_map;
x->data_file_name = share->data_file_name.str;
x->index_file_name = share->index_file_name.str;
x->data_file_type = share->data_file_type;
}
if ((flag & HA_STATUS_TIME) && !my_fstat(info->dfile.file, &state, MYF(0)))
x->update_time=state.st_mtime;
else
x->update_time=0;
if (flag & HA_STATUS_AUTO)
{
x->auto_increment= share->state.auto_increment+1;
if (!x->auto_increment) /* This shouldn't happen */
x->auto_increment= ~(ulonglong) 0;
}
DBUG_RETURN(0);
} | O0 | c | maria_status:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xb8(%rbp)
jmp 0x2fee6
movq -0x10(%rbp), %rax
movq 0x98(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
cmpl $0x1, -0x1c(%rbp)
jne 0x2ff0d
jmp 0x2ff01
movl $0x0, -0x4(%rbp)
jmp 0x302c5
movl -0x1c(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
jne 0x2ff72
movq -0xb8(%rbp), %rdi
addq $0x8f0, %rdi # imm = 0x8F0
leaq 0x12a277(%rip), %rsi # 0x15a1a4
movl $0x34, %edx
callq 0x302e0
movq -0x10(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x328a0
movq -0x10(%rbp), %rax
movq (%rax), %rax
cmpl $0x0, 0x7b8(%rax)
jne 0x2ff5f
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x328c0
movq -0xb8(%rbp), %rdi
addq $0x8f0, %rdi # imm = 0x8F0
callq 0x30350
movl -0x1c(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x3007e
movq -0x10(%rbp), %rax
cmpl $0x2, 0x664(%rax)
jne 0x2ffa2
movq -0xb8(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
jmp 0x2ffb4
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq (%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0xb8(%rbp), %rax
movq 0x20(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0xb8(%rbp), %rax
movq 0x28(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x48(%rax)
movq -0xb8(%rbp), %rax
movq 0x40(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0xb8(%rbp), %rax
movq 0x38(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x38(%rax)
movq -0xb8(%rbp), %rax
movzbl 0x12(%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0xac(%rax)
movq -0xb8(%rbp), %rax
movq 0x160(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x68(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, (%rax)
je 0x30057
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
subq 0x48(%rcx), %rax
movq -0x18(%rbp), %rcx
xorl %edx, %edx
divq (%rcx)
movq %rax, -0xc0(%rbp)
jmp 0x3006c
movq -0xb8(%rbp), %rax
movq 0x728(%rax), %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x90(%rax)
movl -0x1c(%rbp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x300b0
movq -0x10(%rbp), %rax
movl 0x660(%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0xb8(%rax)
movq -0x10(%rbp), %rax
movq 0x428(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x20(%rax)
movl -0x1c(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x3023a
movq -0xb8(%rbp), %rax
movq 0x398(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x88(%rax)
movq -0xb8(%rbp), %rax
movq 0x368(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x370(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x10(%rbp), %rax
movl 0x480(%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0xc0(%rax)
movq -0xb8(%rbp), %rax
movq 0x720(%rax), %rax
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0xb0(%rax)
movq -0xb8(%rbp), %rax
movq 0x150(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x60(%rax)
movq -0xb8(%rbp), %rax
movq 0x368(%rax), %rdi
leaq 0x29807b(%rip), %rax # 0x2c81d8
movq (%rax), %rax
movl %eax, %esi
callq 0x46fb0
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0xb4(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
cmpl $0x0, 0x7d0(%rax)
jne 0x3019a
movq -0xb8(%rbp), %rax
movq 0x3a0(%rax), %rax
movq %rax, -0xc8(%rbp)
jmp 0x301a5
xorl %eax, %eax
movq %rax, -0xc8(%rbp)
jmp 0x301a5
movq -0xc8(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x78(%rax)
movq -0x18(%rbp), %rax
movl $0xffffffff, 0xbc(%rax) # imm = 0xFFFFFFFF
movq -0xb8(%rbp), %rax
movq 0x100(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x80(%rax)
movq -0xb8(%rbp), %rax
movq 0x140(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x58(%rax)
movq -0xb8(%rbp), %rax
movq 0x5c0(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x98(%rax)
movq -0xb8(%rbp), %rax
movq 0x5d0(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0xa0(%rax)
movq -0xb8(%rbp), %rax
movl 0x7d0(%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0xa8(%rax)
movl -0x1c(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x30272
movq -0x10(%rbp), %rax
movl 0x480(%rax), %edi
leaq -0xb0(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0xf7ff0
cmpl $0x0, %eax
jne 0x30272
movq -0x58(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x70(%rax)
jmp 0x3027e
movq -0x18(%rbp), %rax
movq $0x0, 0x70(%rax)
movl -0x1c(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x302bc
movq -0xb8(%rbp), %rax
movq 0xd8(%rax), %rcx
addq $0x1, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x50(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x50(%rax)
jne 0x302ba
movq -0x18(%rbp), %rax
movq $-0x1, 0x50(%rax)
jmp 0x302bc
jmp 0x302be
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xd0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| maria_status:
push rbp
mov rbp, rsp
sub rsp, 0D0h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_B8], rax
jmp short $+2
loc_2FEE6:
mov rax, [rbp+var_10]
mov rcx, [rax+98h]
mov rax, [rbp+var_18]
mov [rax+10h], rcx
cmp [rbp+var_1C], 1
jnz short loc_2FF0D
jmp short $+2
loc_2FF01:
mov [rbp+var_4], 0
jmp loc_302C5
loc_2FF0D:
mov eax, [rbp+var_1C]
and eax, 2
cmp eax, 0
jnz short loc_2FF72
mov rdi, [rbp+var_B8]
add rdi, 8F0h
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 34h ; '4'
call inline_mysql_mutex_lock_0
mov rdi, [rbp+var_10]
xor edx, edx
mov esi, edx
call _ma_readinfo
mov rax, [rbp+var_10]
mov rax, [rax]
cmp dword ptr [rax+7B8h], 0
jnz short loc_2FF5F
mov rdi, [rbp+var_10]
xor esi, esi
call _ma_writeinfo
loc_2FF5F:
mov rdi, [rbp+var_B8]
add rdi, 8F0h
call inline_mysql_mutex_unlock_0
loc_2FF72:
mov eax, [rbp+var_1C]
and eax, 10h
cmp eax, 0
jz loc_3007E
mov rax, [rbp+var_10]
cmp dword ptr [rax+664h], 2
jnz short loc_2FFA2
mov rax, [rbp+var_B8]
mov rcx, [rax+18h]
mov rax, [rbp+var_18]
mov [rax], rcx
jmp short loc_2FFB4
loc_2FFA2:
mov rax, [rbp+var_10]
mov rax, [rax+20h]
mov rcx, [rax]
mov rax, [rbp+var_18]
mov [rax], rcx
loc_2FFB4:
mov rax, [rbp+var_B8]
mov rcx, [rax+20h]
mov rax, [rbp+var_18]
mov [rax+8], rcx
mov rax, [rbp+var_B8]
mov rcx, [rax+28h]
mov rax, [rbp+var_18]
mov [rax+48h], rcx
mov rax, [rbp+var_B8]
mov rcx, [rax+40h]
mov rax, [rbp+var_18]
mov [rax+28h], rcx
mov rax, [rbp+var_B8]
mov rcx, [rax+38h]
mov rax, [rbp+var_18]
mov [rax+38h], rcx
mov rax, [rbp+var_B8]
movzx ecx, byte ptr [rax+12h]
mov rax, [rbp+var_18]
mov [rax+0ACh], ecx
mov rax, [rbp+var_B8]
mov rcx, [rax+160h]
mov rax, [rbp+var_18]
mov [rax+68h], rcx
mov rax, [rbp+var_18]
cmp qword ptr [rax], 0
jz short loc_30057
mov rax, [rbp+var_18]
mov rax, [rax+28h]
mov rcx, [rbp+var_18]
sub rax, [rcx+48h]
mov rcx, [rbp+var_18]
xor edx, edx
div qword ptr [rcx]
mov [rbp+var_C0], rax
jmp short loc_3006C
loc_30057:
mov rax, [rbp+var_B8]
mov rax, [rax+728h]
mov [rbp+var_C0], rax
loc_3006C:
mov rcx, [rbp+var_C0]
mov rax, [rbp+var_18]
mov [rax+90h], rcx
loc_3007E:
mov eax, [rbp+var_1C]
and eax, 20h
cmp eax, 0
jz short loc_300B0
mov rax, [rbp+var_10]
mov ecx, [rax+660h]
mov rax, [rbp+var_18]
mov [rax+0B8h], ecx
mov rax, [rbp+var_10]
mov rcx, [rax+428h]
mov rax, [rbp+var_18]
mov [rax+20h], rcx
loc_300B0:
mov eax, [rbp+var_1C]
and eax, 8
cmp eax, 0
jz loc_3023A
mov rax, [rbp+var_B8]
mov rcx, [rax+398h]
mov rax, [rbp+var_18]
mov [rax+88h], rcx
mov rax, [rbp+var_B8]
mov rcx, [rax+368h]
mov rax, [rbp+var_18]
mov [rax+30h], rcx
mov rax, [rbp+var_10]
mov rax, [rax]
mov rcx, [rax+370h]
mov rax, [rbp+var_18]
mov [rax+40h], rcx
mov rax, [rbp+var_10]
mov ecx, [rax+480h]
mov rax, [rbp+var_18]
mov [rax+0C0h], ecx
mov rax, [rbp+var_B8]
mov rax, [rax+720h]
mov ecx, eax
mov rax, [rbp+var_18]
mov [rax+0B0h], ecx
mov rax, [rbp+var_B8]
mov rcx, [rax+150h]
mov rax, [rbp+var_18]
mov [rax+60h], rcx
mov rax, [rbp+var_B8]
mov rdi, [rax+368h]
lea rax, maria_data_pointer_size
mov rax, [rax]
mov esi, eax
call maria_get_pointer_length
mov ecx, eax
mov rax, [rbp+var_18]
mov [rax+0B4h], ecx
mov rax, [rbp+var_10]
mov rax, [rax]
cmp dword ptr [rax+7D0h], 0
jnz short loc_3019A
mov rax, [rbp+var_B8]
mov rax, [rax+3A0h]
mov [rbp+var_C8], rax
jmp short loc_301A5
loc_3019A:
xor eax, eax
mov [rbp+var_C8], rax
jmp short $+2
loc_301A5:
mov rcx, [rbp+var_C8]
mov rax, [rbp+var_18]
mov [rax+78h], rcx
mov rax, [rbp+var_18]
mov dword ptr [rax+0BCh], 0FFFFFFFFh
mov rax, [rbp+var_B8]
mov rcx, [rax+100h]
mov rax, [rbp+var_18]
mov [rax+80h], rcx
mov rax, [rbp+var_B8]
mov rcx, [rax+140h]
mov rax, [rbp+var_18]
mov [rax+58h], rcx
mov rax, [rbp+var_B8]
mov rcx, [rax+5C0h]
mov rax, [rbp+var_18]
mov [rax+98h], rcx
mov rax, [rbp+var_B8]
mov rcx, [rax+5D0h]
mov rax, [rbp+var_18]
mov [rax+0A0h], rcx
mov rax, [rbp+var_B8]
mov ecx, [rax+7D0h]
mov rax, [rbp+var_18]
mov [rax+0A8h], ecx
loc_3023A:
mov eax, [rbp+var_1C]
and eax, 4
cmp eax, 0
jz short loc_30272
mov rax, [rbp+var_10]
mov edi, [rax+480h]
lea rsi, [rbp+var_B0]
xor eax, eax
mov edx, eax
call my_fstat
cmp eax, 0
jnz short loc_30272
mov rcx, [rbp+var_58]
mov rax, [rbp+var_18]
mov [rax+70h], rcx
jmp short loc_3027E
loc_30272:
mov rax, [rbp+var_18]
mov qword ptr [rax+70h], 0
loc_3027E:
mov eax, [rbp+var_1C]
and eax, 40h
cmp eax, 0
jz short loc_302BC
mov rax, [rbp+var_B8]
mov rcx, [rax+0D8h]
add rcx, 1
mov rax, [rbp+var_18]
mov [rax+50h], rcx
mov rax, [rbp+var_18]
cmp qword ptr [rax+50h], 0
jnz short loc_302BA
mov rax, [rbp+var_18]
mov qword ptr [rax+50h], 0FFFFFFFFFFFFFFFFh
loc_302BA:
jmp short $+2
loc_302BC:
jmp short $+2
loc_302BE:
mov [rbp+var_4], 0
loc_302C5:
mov eax, [rbp+var_4]
add rsp, 0D0h
pop rbp
retn
| long long maria_status(_QWORD *a1, long long a2, int a3)
{
long long v3; // rcx
long long v5; // [rsp+8h] [rbp-C8h]
long long v6; // [rsp+10h] [rbp-C0h]
long long v7; // [rsp+18h] [rbp-B8h]
_BYTE v8[88]; // [rsp+20h] [rbp-B0h] BYREF
long long v9; // [rsp+78h] [rbp-58h]
int v10; // [rsp+B4h] [rbp-1Ch]
long long v11; // [rsp+B8h] [rbp-18h]
_DWORD *v12; // [rsp+C0h] [rbp-10h]
v12 = a1;
v11 = a2;
v10 = a3;
v7 = *a1;
*(_QWORD *)(a2 + 16) = a1[19];
if ( v10 == 1 )
{
return 0;
}
else
{
if ( (v10 & 2) == 0 )
{
inline_mysql_mutex_lock_0(v7 + 2288, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_info.c", 52LL);
ma_readinfo(v12, 0LL);
if ( !*(_DWORD *)(*(_QWORD *)v12 + 1976LL) )
ma_writeinfo(v12, 0LL);
inline_mysql_mutex_unlock_0(v7 + 2288);
}
if ( (v10 & 0x10) != 0 )
{
if ( v12[409] == 2 )
v3 = *(_QWORD *)(v7 + 24);
else
v3 = **((_QWORD **)v12 + 4);
*(_QWORD *)v11 = v3;
*(_QWORD *)(v11 + 8) = *(_QWORD *)(v7 + 32);
*(_QWORD *)(v11 + 72) = *(_QWORD *)(v7 + 40);
*(_QWORD *)(v11 + 40) = *(_QWORD *)(v7 + 64);
*(_QWORD *)(v11 + 56) = *(_QWORD *)(v7 + 56);
*(_DWORD *)(v11 + 172) = *(unsigned __int8 *)(v7 + 18);
*(_QWORD *)(v11 + 104) = *(_QWORD *)(v7 + 352);
if ( *(_QWORD *)v11 )
v6 = (*(_QWORD *)(v11 + 40) - *(_QWORD *)(v11 + 72)) / *(_QWORD *)v11;
else
v6 = *(_QWORD *)(v7 + 1832);
*(_QWORD *)(v11 + 144) = v6;
}
if ( (v10 & 0x20) != 0 )
{
*(_DWORD *)(v11 + 184) = v12[408];
*(_QWORD *)(v11 + 32) = *((_QWORD *)v12 + 133);
}
if ( (v10 & 8) != 0 )
{
*(_QWORD *)(v11 + 136) = *(_QWORD *)(v7 + 920);
*(_QWORD *)(v11 + 48) = *(_QWORD *)(v7 + 872);
*(_QWORD *)(v11 + 64) = *(_QWORD *)(*(_QWORD *)v12 + 880LL);
*(_DWORD *)(v11 + 192) = v12[288];
*(_DWORD *)(v11 + 176) = *(_QWORD *)(v7 + 1824);
*(_QWORD *)(v11 + 96) = *(_QWORD *)(v7 + 336);
*(_DWORD *)(v11 + 180) = maria_get_pointer_length(*(_QWORD *)(v7 + 872), (unsigned int)maria_data_pointer_size);
if ( *(_DWORD *)(*(_QWORD *)v12 + 2000LL) )
v5 = 0LL;
else
v5 = *(_QWORD *)(v7 + 928);
*(_QWORD *)(v11 + 120) = v5;
*(_DWORD *)(v11 + 188) = -1;
*(_QWORD *)(v11 + 128) = *(_QWORD *)(v7 + 256);
*(_QWORD *)(v11 + 88) = *(_QWORD *)(v7 + 320);
*(_QWORD *)(v11 + 152) = *(_QWORD *)(v7 + 1472);
*(_QWORD *)(v11 + 160) = *(_QWORD *)(v7 + 1488);
*(_DWORD *)(v11 + 168) = *(_DWORD *)(v7 + 2000);
}
if ( (v10 & 4) == 0 || (unsigned int)my_fstat((unsigned int)v12[288], v8, 0LL) )
*(_QWORD *)(v11 + 112) = 0LL;
else
*(_QWORD *)(v11 + 112) = v9;
if ( (v10 & 0x40) != 0 )
{
*(_QWORD *)(v11 + 80) = *(_QWORD *)(v7 + 216) + 1LL;
if ( !*(_QWORD *)(v11 + 80) )
*(_QWORD *)(v11 + 80) = -1LL;
}
return 0;
}
}
| maria_status:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0xb8],RAX
JMP 0x0012fee6
LAB_0012fee6:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x98]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x10],RCX
CMP dword ptr [RBP + -0x1c],0x1
JNZ 0x0012ff0d
JMP 0x0012ff01
LAB_0012ff01:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001302c5
LAB_0012ff0d:
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x2
CMP EAX,0x0
JNZ 0x0012ff72
MOV RDI,qword ptr [RBP + -0xb8]
ADD RDI,0x8f0
LEA RSI,[0x25a1a4]
MOV EDX,0x34
CALL 0x001302e0
MOV RDI,qword ptr [RBP + -0x10]
XOR EDX,EDX
MOV ESI,EDX
CALL 0x001328a0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0x7b8],0x0
JNZ 0x0012ff5f
MOV RDI,qword ptr [RBP + -0x10]
XOR ESI,ESI
CALL 0x001328c0
LAB_0012ff5f:
MOV RDI,qword ptr [RBP + -0xb8]
ADD RDI,0x8f0
CALL 0x00130350
LAB_0012ff72:
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x10
CMP EAX,0x0
JZ 0x0013007e
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x664],0x2
JNZ 0x0012ffa2
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
JMP 0x0012ffb4
LAB_0012ffa2:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
LAB_0012ffb4:
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0x20]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0x28]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x48],RCX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0x40]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x28],RCX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0x38]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x38],RCX
MOV RAX,qword ptr [RBP + -0xb8]
MOVZX ECX,byte ptr [RAX + 0x12]
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0xac],ECX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0x160]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x68],RCX
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX],0x0
JZ 0x00130057
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x28]
MOV RCX,qword ptr [RBP + -0x18]
SUB RAX,qword ptr [RCX + 0x48]
MOV RCX,qword ptr [RBP + -0x18]
XOR EDX,EDX
DIV qword ptr [RCX]
MOV qword ptr [RBP + -0xc0],RAX
JMP 0x0013006c
LAB_00130057:
MOV RAX,qword ptr [RBP + -0xb8]
MOV RAX,qword ptr [RAX + 0x728]
MOV qword ptr [RBP + -0xc0],RAX
LAB_0013006c:
MOV RCX,qword ptr [RBP + -0xc0]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x90],RCX
LAB_0013007e:
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x20
CMP EAX,0x0
JZ 0x001300b0
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x660]
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0xb8],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x428]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x20],RCX
LAB_001300b0:
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x8
CMP EAX,0x0
JZ 0x0013023a
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0x398]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x88],RCX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0x368]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x30],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RAX + 0x370]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x40],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x480]
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0xc0],ECX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RAX,qword ptr [RAX + 0x720]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0xb0],ECX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0x150]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x60],RCX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RDI,qword ptr [RAX + 0x368]
LEA RAX,[0x3c81d8]
MOV RAX,qword ptr [RAX]
MOV ESI,EAX
CALL 0x00146fb0
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0xb4],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0x7d0],0x0
JNZ 0x0013019a
MOV RAX,qword ptr [RBP + -0xb8]
MOV RAX,qword ptr [RAX + 0x3a0]
MOV qword ptr [RBP + -0xc8],RAX
JMP 0x001301a5
LAB_0013019a:
XOR EAX,EAX
MOV qword ptr [RBP + -0xc8],RAX
JMP 0x001301a5
LAB_001301a5:
MOV RCX,qword ptr [RBP + -0xc8]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x78],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0xbc],0xffffffff
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0x100]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x80],RCX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0x140]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x58],RCX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0x5c0]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x98],RCX
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0x5d0]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0xa0],RCX
MOV RAX,qword ptr [RBP + -0xb8]
MOV ECX,dword ptr [RAX + 0x7d0]
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0xa8],ECX
LAB_0013023a:
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x4
CMP EAX,0x0
JZ 0x00130272
MOV RAX,qword ptr [RBP + -0x10]
MOV EDI,dword ptr [RAX + 0x480]
LEA RSI,[RBP + -0xb0]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001f7ff0
CMP EAX,0x0
JNZ 0x00130272
MOV RCX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x70],RCX
JMP 0x0013027e
LAB_00130272:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x70],0x0
LAB_0013027e:
MOV EAX,dword ptr [RBP + -0x1c]
AND EAX,0x40
CMP EAX,0x0
JZ 0x001302bc
MOV RAX,qword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RAX + 0xd8]
ADD RCX,0x1
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x50],RCX
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x50],0x0
JNZ 0x001302ba
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x50],-0x1
LAB_001302ba:
JMP 0x001302bc
LAB_001302bc:
JMP 0x001302be
LAB_001302be:
MOV dword ptr [RBP + -0x4],0x0
LAB_001302c5:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0xd0
POP RBP
RET
|
int4 maria_status(long *param_1,ulong *param_2,ulong param_3)
{
long lVar1;
int4 uVar2;
int iVar3;
ulong extraout_RDX;
ulong local_d0;
ulong local_c8;
int1 local_b8 [88];
ulong local_60;
uint local_24;
ulong *local_20;
long *local_18;
local_24 = (uint)param_3;
lVar1 = *param_1;
param_2[2] = param_1[0x13];
if (local_24 != 1) {
local_20 = param_2;
local_18 = param_1;
if ((param_3 & 2) == 0) {
inline_mysql_mutex_lock
(lVar1 + 0x8f0,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_info.c",
0x34);
_ma_readinfo(local_18,0);
if (*(int *)(*local_18 + 0x7b8) == 0) {
_ma_writeinfo(local_18,0);
}
inline_mysql_mutex_unlock(lVar1 + 0x8f0);
param_3 = extraout_RDX;
}
if ((local_24 & 0x10) != 0) {
if (*(int *)((long)local_18 + 0x664) == 2) {
*local_20 = *(ulong *)(lVar1 + 0x18);
}
else {
*local_20 = *(ulong *)local_18[4];
}
local_20[1] = *(ulong *)(lVar1 + 0x20);
local_20[9] = *(ulong *)(lVar1 + 0x28);
local_20[5] = *(ulong *)(lVar1 + 0x40);
local_20[7] = *(ulong *)(lVar1 + 0x38);
*(uint *)((long)local_20 + 0xac) = (uint)*(byte *)(lVar1 + 0x12);
local_20[0xd] = *(ulong *)(lVar1 + 0x160);
if (*local_20 == 0) {
local_c8 = *(ulong *)(lVar1 + 0x728);
}
else {
local_c8 = (local_20[5] - local_20[9]) / *local_20;
param_3 = (local_20[5] - local_20[9]) % *local_20;
}
local_20[0x12] = local_c8;
}
if ((local_24 & 0x20) != 0) {
*(int *)(local_20 + 0x17) = (int)local_18[0xcc];
local_20[4] = local_18[0x85];
}
if ((local_24 & 8) != 0) {
local_20[0x11] = *(ulong *)(lVar1 + 0x398);
local_20[6] = *(ulong *)(lVar1 + 0x368);
local_20[8] = *(ulong *)(*local_18 + 0x370);
*(int *)(local_20 + 0x18) = (int)local_18[0x90];
*(int *)(local_20 + 0x16) = (int)*(int8 *)(lVar1 + 0x720);
local_20[0xc] = *(ulong *)(lVar1 + 0x150);
uVar2 = maria_get_pointer_length
(*(int8 *)(lVar1 + 0x368),maria_data_pointer_size & 0xffffffff,param_3
);
*(int4 *)((long)local_20 + 0xb4) = uVar2;
if (*(int *)(*local_18 + 2000) == 0) {
local_d0 = *(ulong *)(lVar1 + 0x3a0);
}
else {
local_d0 = 0;
}
local_20[0xf] = local_d0;
*(int4 *)((long)local_20 + 0xbc) = 0xffffffff;
local_20[0x10] = *(ulong *)(lVar1 + 0x100);
local_20[0xb] = *(ulong *)(lVar1 + 0x140);
local_20[0x13] = *(ulong *)(lVar1 + 0x5c0);
local_20[0x14] = *(ulong *)(lVar1 + 0x5d0);
*(int4 *)(local_20 + 0x15) = *(int4 *)(lVar1 + 2000);
}
if (((local_24 & 4) == 0) || (iVar3 = my_fstat((int)local_18[0x90],local_b8,0), iVar3 != 0)) {
local_20[0xe] = 0;
}
else {
local_20[0xe] = local_60;
}
if (((local_24 & 0x40) != 0) && (local_20[10] = *(long *)(lVar1 + 0xd8) + 1, local_20[10] == 0))
{
local_20[10] = 0xffffffffffffffff;
}
}
return 0;
}
| |
24,039 | nglog::LogMessage::~LogMessage() | ng-log[P]ng-log/src/logging.cc | LogMessage::~LogMessage() noexcept(false) {
Flush();
bool fail = data_->severity_ == NGLOG_FATAL && exit_on_dfatal;
#ifdef NGLOG_THREAD_LOCAL_STORAGE
if (data_ == static_cast<void*>(&thread_msg_data)) {
data_->~LogMessageData();
thread_data_available = true;
} else {
delete allocated_;
}
#else // !defined(NGLOG_THREAD_LOCAL_STORAGE)
delete allocated_;
#endif // defined(NGLOG_THREAD_LOCAL_STORAGE)
//
if (fail) {
const char* message = "*** Check failure stack trace: ***\n";
if (write(fileno(stderr), message, strlen(message)) < 0) {
// Ignore errors.
}
AlsoErrorWrite(NGLOG_FATAL, tools::ProgramInvocationShortName(), message);
#if defined(__cpp_lib_uncaught_exceptions) && \
(__cpp_lib_uncaught_exceptions >= 201411L)
if (std::uncaught_exceptions() == 0)
#else
if (!std::uncaught_exception())
#endif
{
Fail();
}
}
} | O3 | cpp | nglog::LogMessage::~LogMessage():
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
callq 0xb47a
movq (%r14), %rbx
movq 0x8(%r14), %rax
cmpl $0x3, 0x7698(%rax)
sete %bpl
andb 0x251a1(%rip), %bpl # 0x3056c
testq %rbx, %rbx
je 0xb41a
leaq 0x24069(%rip), %rax # 0x2f440
leaq 0x18(%rax), %rcx
movq %rcx, 0x7538(%rbx)
leaq 0x7590(%rbx), %r14
addq $0x40, %rax
movq %rax, 0x7590(%rbx)
movq 0x24b4d(%rip), %rax # 0x2ff48
addq $0x10, %rax
movq %rax, 0x7540(%rbx)
leaq 0x7578(%rbx), %rdi
callq 0x77b0
movq %r14, %rdi
callq 0x7180
movl $0x76f0, %esi # imm = 0x76F0
movq %rbx, %rdi
callq 0x7540
testb %bpl, %bpl
je 0xb46f
movq 0x24b65(%rip), %rax # 0x2ff98
movq (%rax), %rdi
callq 0x7590
leaq 0x183f4(%rip), %rbx # 0x23836
movl $0x23, %edx
movl %eax, %edi
movq %rbx, %rsi
callq 0x7190
callq 0x21a5b
movl $0x3, %edi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x21a3c
callq 0x7680
testl %eax, %eax
je 0xb474
popq %rbx
popq %r14
popq %rbp
retq
callq *0x250f6(%rip) # 0x30570
| _ZN5nglog10LogMessageD2Ev:
push rbp; Alternative name is 'nglog::LogMessage::~LogMessage()'
push r14
push rbx
mov r14, rdi
call _ZN5nglog10LogMessage5FlushEv; nglog::LogMessage::Flush(void)
mov rbx, [r14]
mov rax, [r14+8]
cmp dword ptr [rax+7698h], 3
setz bpl
and bpl, cs:_ZN5nglogL14exit_on_dfatalE; nglog::exit_on_dfatal
test rbx, rbx
jz short loc_B41A
lea rax, _ZTVN5nglog10LogMessage9LogStreamE; `vtable for'nglog::LogMessage::LogStream
lea rcx, [rax+18h]
mov [rbx+7538h], rcx
lea r14, [rbx+7590h]
add rax, 40h ; '@'
mov [rbx+7590h], rax
mov rax, cs:_ZTVSt15basic_streambufIcSt11char_traitsIcEE_ptr
add rax, 10h
mov [rbx+7540h], rax
lea rdi, [rbx+7578h]; this
call __ZNSt6localeD1Ev; std::locale::~locale()
mov rdi, r14; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
loc_B41A:
mov esi, 76F0h; unsigned __int64
mov rdi, rbx; void *
call __ZdlPvm; operator delete(void *,ulong)
test bpl, bpl
jz short loc_B46F
mov rax, cs:stderr_ptr
mov rdi, [rax]
call _fileno
lea rbx, aCheckFailureSt; "*** Check failure stack trace: ***\n"
mov edx, 23h ; '#'
mov edi, eax; this
mov rsi, rbx
call _write
call _ZN5nglog5tools26ProgramInvocationShortNameEv; nglog::tools::ProgramInvocationShortName(void)
mov edi, 3
mov rsi, rax
mov rdx, rbx
call _ZN5nglog5tools14AlsoErrorWriteENS_11LogSeverityEPKcS3_; nglog::tools::AlsoErrorWrite(nglog::LogSeverity,char const*,char const*)
call __ZSt19uncaught_exceptionsv; std::uncaught_exceptions(void)
test eax, eax
jz short loc_B474
loc_B46F:
pop rbx
pop r14
pop rbp
retn
loc_B474:
call cs:_ZN5nglog19g_logging_fail_funcE; nglog::g_logging_fail_func ...
| void nglog::LogMessage::~LogMessage(nglog::LogMessage *this)
{
_QWORD *v1; // rbx
char v2; // bp
nglog::tools *v3; // rdi
long long v4; // rax
nglog::LogMessage::Flush(this);
v1 = *(_QWORD **)this;
v2 = nglog::exit_on_dfatal & (*(_DWORD *)(*((_QWORD *)this + 1) + 30360LL) == 3);
if ( *(_QWORD *)this )
{
v1[3751] = (char *)&`vtable for'nglog::LogMessage::LogStream + 24;
v1[3762] = (char *)&`vtable for'nglog::LogMessage::LogStream + 64;
v1[3752] = (char *)&`vtable for'std::streambuf + 16;
std::locale::~locale((std::locale *)(v1 + 3759));
std::ios_base::~ios_base((std::ios_base *)(v1 + 3762));
}
operator delete(v1, 0x76F0uLL);
if ( v2 )
{
v3 = (nglog::tools *)(unsigned int)fileno(stderr);
write(v3, "*** Check failure stack trace: ***\n", 35LL);
v4 = nglog::tools::ProgramInvocationShortName(v3);
nglog::tools::AlsoErrorWrite(3LL, v4, "*** Check failure stack trace: ***\n");
if ( !(unsigned int)std::uncaught_exceptions() )
nglog::g_logging_fail_func();
}
}
| ~LogMessage:
PUSH RBP
PUSH R14
PUSH RBX
MOV R14,RDI
CALL 0x0010b47a
MOV RBX,qword ptr [R14]
MOV RAX,qword ptr [R14 + 0x8]
CMP dword ptr [RAX + 0x7698],0x3
SETZ BPL
AND BPL,byte ptr [0x0013056c]
TEST RBX,RBX
JZ 0x0010b41a
LEA RAX,[0x12f440]
LEA RCX,[RAX + 0x18]
MOV qword ptr [RBX + 0x7538],RCX
LEA R14,[RBX + 0x7590]
ADD RAX,0x40
MOV qword ptr [RBX + 0x7590],RAX
MOV RAX,qword ptr [0x0012ff48]
ADD RAX,0x10
MOV qword ptr [RBX + 0x7540],RAX
LEA RDI,[RBX + 0x7578]
CALL 0x001077b0
MOV RDI,R14
CALL 0x00107180
LAB_0010b41a:
MOV ESI,0x76f0
MOV RDI,RBX
CALL 0x00107540
TEST BPL,BPL
JZ 0x0010b46f
MOV RAX,qword ptr [0x0012ff98]
MOV RDI,qword ptr [RAX]
CALL 0x00107590
LEA RBX,[0x123836]
MOV EDX,0x23
MOV EDI,EAX
MOV RSI,RBX
CALL 0x00107190
CALL 0x00121a5b
MOV EDI,0x3
MOV RSI,RAX
MOV RDX,RBX
CALL 0x00121a3c
CALL 0x00107680
TEST EAX,EAX
JZ 0x0010b474
LAB_0010b46f:
POP RBX
POP R14
POP RBP
RET
LAB_0010b474:
CALL qword ptr [0x00130570]
|
/* nglog::LogMessage::~LogMessage() */
void __thiscall nglog::LogMessage::~LogMessage(LogMessage *this)
{
void *pvVar1;
int iVar2;
int8 uVar3;
byte bVar4;
Flush(this);
pvVar1 = *(void **)this;
bVar4 = *(int *)(*(long *)(this + 8) + 0x7698) == 3 & exit_on_dfatal;
if (pvVar1 != (void *)0x0) {
*(int ***)((long)pvVar1 + 0x7538) = &PTR__LogStream_0012f458;
*(int ***)((long)pvVar1 + 0x7590) = &PTR__LogStream_0012f480;
*(int **)((long)pvVar1 + 0x7540) = PTR_vtable_0012ff48 + 0x10;
std::locale::~locale((locale *)((long)pvVar1 + 0x7578));
std::ios_base::~ios_base((ios_base *)((long)pvVar1 + 0x7590));
}
operator_delete(pvVar1,0x76f0);
if (bVar4 != 0) {
iVar2 = fileno(*(FILE **)PTR_stderr_0012ff98);
write(iVar2,"*** Check failure stack trace: ***\n",0x23);
uVar3 = tools::ProgramInvocationShortName();
tools::AlsoErrorWrite(3,uVar3,"*** Check failure stack trace: ***\n");
iVar2 = std::uncaught_exceptions();
if (iVar2 == 0) {
(*(code *)g_logging_fail_func)();
return;
}
}
return;
}
| |
24,040 | sort_ft_key_read | eloqsql/storage/myisam/mi_check.c | static int sort_ft_key_read(MI_SORT_PARAM *sort_param, void *key)
{
int error;
MI_SORT_INFO *sort_info=sort_param->sort_info;
MI_INFO *info=sort_info->info;
FT_WORD *wptr=0;
DBUG_ENTER("sort_ft_key_read");
if (!sort_param->wordlist)
{
for (;;)
{
free_root(&sort_param->wordroot, MYF(MY_MARK_BLOCKS_FREE));
if ((error=sort_get_next_record(sort_param)))
DBUG_RETURN(error);
if (!(wptr=_mi_ft_parserecord(info,sort_param->key,sort_param->record,
&sort_param->wordroot)))
DBUG_RETURN(1);
if (wptr->pos)
break;
error=sort_write_record(sort_param);
}
sort_param->wordptr=sort_param->wordlist=wptr;
}
else
{
error=0;
wptr=(FT_WORD*)(sort_param->wordptr);
}
sort_param->real_key_length=(info->s->rec_reflength+
_ft_make_key(info, sort_param->key,
key, wptr++, sort_param->filepos));
#ifdef HAVE_valgrind
if (sort_param->key_length > sort_param->real_key_length)
bzero(key+sort_param->real_key_length,
(sort_param->key_length-sort_param->real_key_length));
#endif
if (!wptr->pos)
{
free_root(&sort_param->wordroot, MYF(MY_MARK_BLOCKS_FREE));
sort_param->wordlist=0;
error=sort_write_record(sort_param);
}
else
sort_param->wordptr=(void*)wptr;
DBUG_RETURN(error);
} | O3 | c | sort_ft_key_read:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x380(%rdi), %rax
movq 0x80(%rax), %r15
cmpq $0x0, 0x3a0(%rdi)
je 0x38263
movq 0x3a8(%rbx), %r13
movq (%r15), %rax
movl 0x338(%rax), %r12d
movl 0x630(%rbx), %esi
movq 0x620(%rbx), %r8
movq %r15, %rdi
movq %r14, %rdx
movq %r13, %rcx
callq 0x5d421
addl %r12d, %eax
movl %eax, 0x638(%rbx)
cmpq $0x0, 0x18(%r13)
je 0x382b3
addq $0x18, %r13
movq %r13, 0x3a8(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3b0(%rbx), %r12
movl $0x2, %esi
movq %r12, %rdi
callq 0x6b2ab
movq %rbx, %rdi
callq 0x34e94
testl %eax, %eax
jne 0x38254
movl 0x630(%rbx), %esi
movq 0x3f0(%rbx), %rdx
movq %r15, %rdi
movq %r12, %rcx
callq 0x5d0cf
testq %rax, %rax
je 0x382e5
movq %rax, %r13
cmpq $0x0, (%rax)
jne 0x382ef
movq %rbx, %rdi
callq 0x35dcc
jmp 0x3826a
leaq 0x3b0(%rbx), %rdi
movl $0x2, %esi
callq 0x6b2ab
movq $0x0, 0x3a0(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x35dcc
movl $0x1, %eax
jmp 0x38254
movq %r13, 0x3a0(%rbx)
movq %r13, 0x3a8(%rbx)
jmp 0x38212
| sort_ft_key_read:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov rax, [rdi+380h]
mov r15, [rax+80h]
cmp qword ptr [rdi+3A0h], 0
jz short loc_38263
mov r13, [rbx+3A8h]
loc_38212:
mov rax, [r15]
mov r12d, [rax+338h]
mov esi, [rbx+630h]
mov r8, [rbx+620h]
mov rdi, r15
mov rdx, r14
mov rcx, r13
call _ft_make_key
add eax, r12d
mov [rbx+638h], eax
cmp qword ptr [r13+18h], 0
jz short loc_382B3
add r13, 18h
mov [rbx+3A8h], r13
xor eax, eax
loc_38254:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_38263:
lea r12, [rbx+3B0h]
loc_3826A:
mov esi, 2
mov rdi, r12
call free_root
mov rdi, rbx
call sort_get_next_record
test eax, eax
jnz short loc_38254
mov esi, [rbx+630h]
mov rdx, [rbx+3F0h]
mov rdi, r15
mov rcx, r12
call _mi_ft_parserecord
test rax, rax
jz short loc_382E5
mov r13, rax
cmp qword ptr [rax], 0
jnz short loc_382EF
mov rdi, rbx
call sort_write_record
jmp short loc_3826A
loc_382B3:
lea rdi, [rbx+3B0h]
mov esi, 2
call free_root
mov qword ptr [rbx+3A0h], 0
mov rdi, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp sort_write_record
loc_382E5:
mov eax, 1
jmp loc_38254
loc_382EF:
mov [rbx+3A0h], r13
mov [rbx+3A8h], r13
jmp loc_38212
| long long sort_ft_key_read(
long long a1,
long long a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
double a7,
double a8,
__m128 a9,
__m128 a10)
{
long long v10; // r15
_QWORD *v11; // r13
int v12; // r12d
long long result; // rax
double v14; // xmm4_8
double v15; // xmm5_8
_QWORD *v16; // rax
v10 = *(_QWORD *)(*(_QWORD *)(a1 + 896) + 128LL);
if ( *(_QWORD *)(a1 + 928) )
{
v11 = *(_QWORD **)(a1 + 936);
LABEL_3:
v12 = *(_DWORD *)(*(_QWORD *)v10 + 824LL);
*(_DWORD *)(a1 + 1592) = v12 + ft_make_key(v10, *(unsigned int *)(a1 + 1584), a2, v11, *(_QWORD *)(a1 + 1568));
if ( v11[3] )
{
*(_QWORD *)(a1 + 936) = v11 + 3;
return 0LL;
}
else
{
free_root(a1 + 944, 2LL);
*(_QWORD *)(a1 + 928) = 0LL;
return sort_write_record(a1);
}
}
else
{
while ( 1 )
{
free_root(a1 + 944, 2LL);
result = sort_get_next_record(a1, a3, a4, a5, a6, v14, v15, a9, a10);
if ( (_DWORD)result )
break;
v16 = (_QWORD *)mi_ft_parserecord(v10, *(unsigned int *)(a1 + 1584), *(_QWORD *)(a1 + 1008), a1 + 944);
if ( !v16 )
return 1LL;
v11 = v16;
if ( *v16 )
{
*(_QWORD *)(a1 + 928) = v16;
*(_QWORD *)(a1 + 936) = v16;
goto LABEL_3;
}
sort_write_record(a1);
}
}
return result;
}
| sort_ft_key_read:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x380]
MOV R15,qword ptr [RAX + 0x80]
CMP qword ptr [RDI + 0x3a0],0x0
JZ 0x00138263
MOV R13,qword ptr [RBX + 0x3a8]
LAB_00138212:
MOV RAX,qword ptr [R15]
MOV R12D,dword ptr [RAX + 0x338]
MOV ESI,dword ptr [RBX + 0x630]
MOV R8,qword ptr [RBX + 0x620]
MOV RDI,R15
MOV RDX,R14
MOV RCX,R13
CALL 0x0015d421
ADD EAX,R12D
MOV dword ptr [RBX + 0x638],EAX
CMP qword ptr [R13 + 0x18],0x0
JZ 0x001382b3
ADD R13,0x18
MOV qword ptr [RBX + 0x3a8],R13
XOR EAX,EAX
LAB_00138254:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00138263:
LEA R12,[RBX + 0x3b0]
LAB_0013826a:
MOV ESI,0x2
MOV RDI,R12
CALL 0x0016b2ab
MOV RDI,RBX
CALL 0x00134e94
TEST EAX,EAX
JNZ 0x00138254
MOV ESI,dword ptr [RBX + 0x630]
MOV RDX,qword ptr [RBX + 0x3f0]
MOV RDI,R15
MOV RCX,R12
CALL 0x0015d0cf
TEST RAX,RAX
JZ 0x001382e5
MOV R13,RAX
CMP qword ptr [RAX],0x0
JNZ 0x001382ef
MOV RDI,RBX
CALL 0x00135dcc
JMP 0x0013826a
LAB_001382b3:
LEA RDI,[RBX + 0x3b0]
MOV ESI,0x2
CALL 0x0016b2ab
MOV qword ptr [RBX + 0x3a0],0x0
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00135dcc
LAB_001382e5:
MOV EAX,0x1
JMP 0x00138254
LAB_001382ef:
MOV qword ptr [RBX + 0x3a0],R13
MOV qword ptr [RBX + 0x3a8],R13
JMP 0x00138212
|
int8 sort_ft_key_read(long param_1,int8 param_2)
{
int iVar1;
long *plVar2;
int iVar3;
long *plVar4;
int8 uVar5;
plVar2 = *(long **)(*(long *)(param_1 + 0x380) + 0x80);
if (*(long *)(param_1 + 0x3a0) == 0) {
while( true ) {
free_root(param_1 + 0x3b0,2);
uVar5 = sort_get_next_record(param_1);
if ((int)uVar5 != 0) break;
plVar4 = (long *)_mi_ft_parserecord(plVar2,*(int4 *)(param_1 + 0x630),
*(int8 *)(param_1 + 0x3f0),param_1 + 0x3b0);
if (plVar4 == (long *)0x0) {
return 1;
}
if (*plVar4 != 0) {
*(long **)(param_1 + 0x3a0) = plVar4;
*(long **)(param_1 + 0x3a8) = plVar4;
goto LAB_00138212;
}
sort_write_record(param_1);
}
}
else {
plVar4 = *(long **)(param_1 + 0x3a8);
LAB_00138212:
iVar1 = *(int *)(*plVar2 + 0x338);
iVar3 = _ft_make_key(plVar2,*(int4 *)(param_1 + 0x630),param_2,plVar4,
*(int8 *)(param_1 + 0x620));
*(int *)(param_1 + 0x638) = iVar3 + iVar1;
if (plVar4[3] == 0) {
free_root(param_1 + 0x3b0,2);
*(int8 *)(param_1 + 0x3a0) = 0;
uVar5 = sort_write_record(param_1);
return uVar5;
}
*(long **)(param_1 + 0x3a8) = plVar4 + 3;
uVar5 = 0;
}
return uVar5;
}
| |
24,041 | my_sync_dir | eloqsql/mysys/my_sync.c | int my_sync_dir(const char *dir_name __attribute__((unused)),
myf my_flags __attribute__((unused)))
{
#ifdef NEED_EXPLICIT_SYNC_DIR
static const char cur_dir_name[]= {FN_CURLIB, 0};
File dir_fd;
int res= 0;
const char *correct_dir_name;
DBUG_ENTER("my_sync_dir");
DBUG_PRINT("my",("Dir: '%s' my_flags: %lu", dir_name, my_flags));
/* Sometimes the path does not contain an explicit directory */
correct_dir_name= (dir_name[0] == 0) ? cur_dir_name : dir_name;
/*
Syncing a dir may give EINVAL on tmpfs on Linux, which is ok.
EIO on the other hand is very important. Hence MY_IGNORE_BADFD.
*/
if ((dir_fd= my_open(correct_dir_name, O_RDONLY, MYF(my_flags))) >= 0)
{
if (my_sync(dir_fd, MYF(my_flags | MY_IGNORE_BADFD)))
res= 2;
if (my_close(dir_fd, MYF(my_flags)))
res= 3;
}
else
res= 1;
DBUG_RETURN(res);
#else
return 0;
#endif
} | O0 | c | my_sync_dir:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x18(%rbp)
jmp 0x30309
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x30322
leaq 0x4d88c(%rip), %rax # 0x7dba8
movq %rax, -0x28(%rbp)
jmp 0x3032a
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rdx
xorl %esi, %esi
callq 0x2f530
movl %eax, -0x14(%rbp)
cmpl $0x0, %eax
jl 0x3037f
movl -0x14(%rbp), %edi
movq -0x10(%rbp), %rsi
orq $0x20, %rsi
callq 0x30160
cmpl $0x0, %eax
je 0x30365
movl $0x2, -0x18(%rbp)
movl -0x14(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x2f7c0
cmpl $0x0, %eax
je 0x3037d
movl $0x3, -0x18(%rbp)
jmp 0x30386
movl $0x1, -0x18(%rbp)
jmp 0x30388
movl -0x18(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| my_sync_dir:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], 0
jmp short $+2
loc_30309:
mov rax, [rbp+var_8]
movsx eax, byte ptr [rax]
cmp eax, 0
jnz short loc_30322
lea rax, my_sync_dir_cur_dir_name
mov [rbp+var_28], rax
jmp short loc_3032A
loc_30322:
mov rax, [rbp+var_8]
mov [rbp+var_28], rax
loc_3032A:
mov rax, [rbp+var_28]
mov [rbp+var_20], rax
mov rdi, [rbp+var_20]
mov rdx, [rbp+var_10]
xor esi, esi
call my_open
mov [rbp+var_14], eax
cmp eax, 0
jl short loc_3037F
mov edi, [rbp+var_14]
mov rsi, [rbp+var_10]
or rsi, 20h
call my_sync
cmp eax, 0
jz short loc_30365
mov [rbp+var_18], 2
loc_30365:
mov edi, [rbp+var_14]
mov rsi, [rbp+var_10]
call my_close
cmp eax, 0
jz short loc_3037D
mov [rbp+var_18], 3
loc_3037D:
jmp short loc_30386
loc_3037F:
mov [rbp+var_18], 1
loc_30386:
jmp short $+2
loc_30388:
mov eax, [rbp+var_18]
mov [rbp+var_2C], eax
mov eax, [rbp+var_2C]
add rsp, 30h
pop rbp
retn
| long long my_sync_dir(_BYTE *a1, long long a2)
{
void *v3; // [rsp+8h] [rbp-28h]
unsigned int v4; // [rsp+18h] [rbp-18h]
signed int v5; // [rsp+1Ch] [rbp-14h]
v4 = 0;
if ( *a1 )
v3 = a1;
else
v3 = &my_sync_dir_cur_dir_name;
v5 = my_open((long long)v3, 0, a2);
if ( v5 < 0 )
{
return 1;
}
else
{
if ( (unsigned int)my_sync(v5, (unsigned int)a2 | 0x20) )
v4 = 2;
if ( (unsigned int)my_close(v5, a2) )
return 3;
}
return v4;
}
| my_sync_dir:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x18],0x0
JMP 0x00130309
LAB_00130309:
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JNZ 0x00130322
LEA RAX,[0x17dba8]
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0013032a
LAB_00130322:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x28],RAX
LAB_0013032a:
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x10]
XOR ESI,ESI
CALL 0x0012f530
MOV dword ptr [RBP + -0x14],EAX
CMP EAX,0x0
JL 0x0013037f
MOV EDI,dword ptr [RBP + -0x14]
MOV RSI,qword ptr [RBP + -0x10]
OR RSI,0x20
CALL 0x00130160
CMP EAX,0x0
JZ 0x00130365
MOV dword ptr [RBP + -0x18],0x2
LAB_00130365:
MOV EDI,dword ptr [RBP + -0x14]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x0012f7c0
CMP EAX,0x0
JZ 0x0013037d
MOV dword ptr [RBP + -0x18],0x3
LAB_0013037d:
JMP 0x00130386
LAB_0013037f:
MOV dword ptr [RBP + -0x18],0x1
LAB_00130386:
JMP 0x00130388
LAB_00130388:
MOV EAX,dword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x2c],EAX
MOV EAX,dword ptr [RBP + -0x2c]
ADD RSP,0x30
POP RBP
RET
|
int4 my_sync_dir(char *param_1,ulong param_2)
{
int iVar1;
int iVar2;
char *local_30;
int4 local_20;
local_20 = 0;
local_30 = param_1;
if (*param_1 == '\0') {
local_30 = ".";
}
iVar1 = my_open(local_30,0,param_2);
if (iVar1 < 0) {
local_20 = 1;
}
else {
iVar2 = my_sync(iVar1,param_2 | 0x20);
if (iVar2 != 0) {
local_20 = 2;
}
iVar1 = my_close(iVar1,param_2);
if (iVar1 != 0) {
local_20 = 3;
}
}
return local_20;
}
| |
24,042 | LefDefParser::defiFill::setVia(char const*) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiFill.cpp | void defiFill::setVia(const char* name) {
int len = strlen(name) + 1;
if (viaNameLength_ < len) {
if (viaName_) free(viaName_);
viaName_ = (char*)malloc(len);
viaNameLength_ = len;
}
strcpy(viaName_, defData->DEFCASE(name));
hasVia_ = 1;
} | O3 | cpp | LefDefParser::defiFill::setVia(char const*):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x70d0
movq %rax, %r12
incl %r12d
movq 0x58(%rbx), %r15
cmpl %r12d, 0x60(%rbx)
jge 0x2ad93
testq %r15, %r15
je 0x2ad7d
movq %r15, %rdi
callq 0x7220
movslq %r12d, %r12
movq %r12, %rdi
callq 0x7270
movq %rax, %r15
movq %rax, 0x58(%rbx)
movl %r12d, 0x60(%rbx)
movq 0x80(%rbx), %rdi
movq %r14, %rsi
callq 0x1b638
movq %r15, %rdi
movq %rax, %rsi
callq 0x7190
movl $0x1, 0x50(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| _ZN12LefDefParser8defiFill6setViaEPKc:
push r15
push r14
push r12
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov rdi, rsi
call _strlen
mov r12, rax
inc r12d
mov r15, [rbx+58h]
cmp [rbx+60h], r12d
jge short loc_2AD93
test r15, r15
jz short loc_2AD7D
mov rdi, r15
call _free
loc_2AD7D:
movsxd r12, r12d
mov rdi, r12
call _malloc
mov r15, rax
mov [rbx+58h], rax
mov [rbx+60h], r12d
loc_2AD93:
mov rdi, [rbx+80h]; this
mov rsi, r14; char *
call _ZN12LefDefParser8defrData7DEFCASEEPKc; LefDefParser::defrData::DEFCASE(char const*)
mov rdi, r15
mov rsi, rax
call _strcpy
mov dword ptr [rbx+50h], 1
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| long long LefDefParser::defiFill::setVia(LefDefParser::defiFill *this, const char *a2)
{
int v2; // r12d
long long v3; // r15
const char *v4; // rax
long long result; // rax
v2 = strlen(a2) + 1;
v3 = *((_QWORD *)this + 11);
if ( *((_DWORD *)this + 24) < v2 )
{
if ( v3 )
free(*((void **)this + 11));
v3 = malloc(v2);
*((_QWORD *)this + 11) = v3;
*((_DWORD *)this + 24) = v2;
}
v4 = LefDefParser::defrData::DEFCASE(*((LefDefParser::defrData **)this + 16), a2);
result = strcpy(v3, v4);
*((_DWORD *)this + 20) = 1;
return result;
}
| setVia:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSI
CALL 0x001070d0
MOV R12,RAX
INC R12D
MOV R15,qword ptr [RBX + 0x58]
CMP dword ptr [RBX + 0x60],R12D
JGE 0x0012ad93
TEST R15,R15
JZ 0x0012ad7d
MOV RDI,R15
CALL 0x00107220
LAB_0012ad7d:
MOVSXD R12,R12D
MOV RDI,R12
CALL 0x00107270
MOV R15,RAX
MOV qword ptr [RBX + 0x58],RAX
MOV dword ptr [RBX + 0x60],R12D
LAB_0012ad93:
MOV RDI,qword ptr [RBX + 0x80]
MOV RSI,R14
CALL 0x0011b638
MOV RDI,R15
MOV RSI,RAX
CALL 0x00107190
MOV dword ptr [RBX + 0x50],0x1
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* LefDefParser::defiFill::setVia(char const*) */
void __thiscall LefDefParser::defiFill::setVia(defiFill *this,char *param_1)
{
size_t sVar1;
char *__dest;
char *__src;
int iVar2;
sVar1 = strlen(param_1);
iVar2 = (int)sVar1 + 1;
__dest = *(char **)(this + 0x58);
if (*(int *)(this + 0x60) < iVar2) {
if (__dest != (char *)0x0) {
free(__dest);
}
__dest = (char *)malloc((long)iVar2);
*(char **)(this + 0x58) = __dest;
*(int *)(this + 0x60) = iVar2;
}
__src = (char *)defrData::DEFCASE(*(defrData **)(this + 0x80),param_1);
strcpy(__dest,__src);
*(int4 *)(this + 0x50) = 1;
return;
}
| |
24,043 | string_from[abi:cxx11](std::vector<int, std::allocator<int>> const&) | monkey531[P]llama/common/common.cpp | std::string string_from(const std::vector<int> & values) {
std::stringstream buf;
buf << "[ ";
bool first = true;
for (auto e : values) {
if (first) {
first = false;
} else {
buf << ", ";
}
buf << std::to_string(e);
}
buf << " ]";
return buf.str();
} | O2 | cpp | string_from[abi:cxx11](std::vector<int, std::allocator<int>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp # imm = 0x1B8
movq %rsi, %r15
movq %rdi, 0x8(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x236c0
leaq 0x40(%rsp), %r14
leaq 0x5f6f7(%rip), %rsi # 0xb6a3b
movq %r14, %rdi
callq 0x23910
movq (%r15), %r13
movq 0x8(%r15), %rbx
movb $0x1, %al
leaq 0x10(%rsp), %r15
leaq 0x60056(%rip), %r12 # 0xb73b7
cmpq %rbx, %r13
je 0x5739e
movl (%r13), %ebp
testb $0x1, %al
jne 0x57379
movq %r14, %rdi
movq %r12, %rsi
callq 0x23910
movq %r15, %rdi
movl %ebp, %esi
callq 0x41433
movq %r14, %rdi
movq %r15, %rsi
callq 0x23830
movq %r15, %rdi
callq 0x24348
addq $0x4, %r13
xorl %eax, %eax
jmp 0x57361
leaq 0x5f699(%rip), %rsi # 0xb6a3e
movq %r14, %rdi
callq 0x23910
movq 0x8(%rsp), %rbx
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0x23ed0
leaq 0x30(%rsp), %rdi
callq 0x23710
movq %rbx, %rax
addq $0x1b8, %rsp # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x573e4
jmp 0x573e4
jmp 0x573e4
movq %rax, %rbx
jmp 0x573f6
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x24348
leaq 0x30(%rsp), %rdi
callq 0x23710
movq %rbx, %rdi
callq 0x240e0
| _Z11string_fromB5cxx11RKSt6vectorIiSaIiEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 1B8h
mov r15, rsi
mov [rsp+1E8h+var_1E0], rdi
lea rdi, [rsp+1E8h+var_1B8]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void)
lea r14, [rsp+1E8h+var_1A8]
lea rsi, asc_B6A3B; "[ "
mov rdi, r14
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov r13, [r15]
mov rbx, [r15+8]
mov al, 1
lea r15, [rsp+1E8h+var_1D8]
lea r12, aZuD+6; ", "
loc_57361:
cmp r13, rbx
jz short loc_5739E
mov ebp, [r13+0]
test al, 1
jnz short loc_57379
mov rdi, r14
mov rsi, r12
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
loc_57379:
mov rdi, r15; this
mov esi, ebp; int
call _ZNSt7__cxx119to_stringEi; std::to_string(int)
mov rdi, r14
mov rsi, r15
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
add r13, 4
xor eax, eax
jmp short loc_57361
loc_5739E:
lea rsi, asc_B6A3E; " ]"
mov rdi, r14
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rbx, [rsp+1E8h+var_1E0]
lea rsi, [rsp+1E8h+var_1A0]
mov rdi, rbx
call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
lea rdi, [rsp+1E8h+var_1B8]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
mov rax, rbx
add rsp, 1B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_573E4
jmp short loc_573E4
jmp short $+2
loc_573E4:
mov rbx, rax
jmp short loc_573F6
mov rbx, rax
lea rdi, [rsp+arg_8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_573F6:
lea rdi, [rsp+arg_28]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
mov rdi, rbx
call __Unwind_Resume
| long long string_from[abi:cxx11](long long a1, int **a2)
{
int *v2; // r13
int *v3; // rbx
char v4; // al
int v5; // ebp
_BYTE v7[32]; // [rsp+10h] [rbp-1D8h] BYREF
_BYTE v8[16]; // [rsp+30h] [rbp-1B8h] BYREF
_BYTE v9[8]; // [rsp+40h] [rbp-1A8h] BYREF
_BYTE v10[416]; // [rsp+48h] [rbp-1A0h] BYREF
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v8);
std::operator<<<std::char_traits<char>>(v9, "[ ");
v2 = *a2;
v3 = a2[1];
v4 = 1;
while ( v2 != v3 )
{
v5 = *v2;
if ( (v4 & 1) == 0 )
std::operator<<<std::char_traits<char>>(v9, ", ");
std::to_string((std::__cxx11 *)v7, v5);
std::operator<<<char>(v9, v7);
std::string::~string(v7);
++v2;
v4 = 0;
}
std::operator<<<std::char_traits<char>>(v9, " ]");
std::stringbuf::str(a1, v10);
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(v8);
return a1;
}
| string_from[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x1b8
MOV R15,RSI
MOV qword ptr [RSP + 0x8],RDI
LEA RDI,[RSP + 0x30]
CALL 0x001236c0
LEA R14,[RSP + 0x40]
LAB_0015733d:
LEA RSI,[0x1b6a3b]
MOV RDI,R14
CALL 0x00123910
MOV R13,qword ptr [R15]
MOV RBX,qword ptr [R15 + 0x8]
MOV AL,0x1
LEA R15,[RSP + 0x10]
LEA R12,[0x1b73b7]
LAB_00157361:
CMP R13,RBX
JZ 0x0015739e
MOV EBP,dword ptr [R13]
TEST AL,0x1
JNZ 0x00157379
LAB_0015736e:
MOV RDI,R14
MOV RSI,R12
CALL 0x00123910
LAB_00157379:
MOV RDI,R15
MOV ESI,EBP
CALL 0x00141433
LAB_00157383:
MOV RDI,R14
MOV RSI,R15
CALL 0x00123830
MOV RDI,R15
CALL 0x00124348
ADD R13,0x4
XOR EAX,EAX
JMP 0x00157361
LAB_0015739e:
LEA RSI,[0x1b6a3e]
MOV RDI,R14
CALL 0x00123910
MOV RBX,qword ptr [RSP + 0x8]
LEA RSI,[RSP + 0x48]
MOV RDI,RBX
CALL 0x00123ed0
LAB_001573bf:
LEA RDI,[RSP + 0x30]
CALL 0x00123710
MOV RAX,RBX
ADD RSP,0x1b8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* string_from[abi:cxx11](std::vector<int, std::allocator<int> > const&) */
vector * string_from_abi_cxx11_(vector *param_1)
{
int iVar1;
int *piVar2;
bool bVar3;
int8 *in_RSI;
int *piVar4;
__cxx11 local_1d8 [32];
stringstream local_1b8 [16];
ostream local_1a8 [376];
std::__cxx11::stringstream::stringstream(local_1b8);
/* try { // try from 0015733d to 0015734b has its CatchHandler @ 001573de */
std::operator<<(local_1a8,"[ ");
piVar2 = (int *)in_RSI[1];
bVar3 = true;
for (piVar4 = (int *)*in_RSI; piVar4 != piVar2; piVar4 = piVar4 + 1) {
iVar1 = *piVar4;
if (!bVar3) {
/* try { // try from 0015736e to 00157378 has its CatchHandler @ 001573e2 */
std::operator<<(local_1a8,", ");
}
/* try { // try from 00157379 to 00157382 has its CatchHandler @ 001573e4 */
std::__cxx11::to_string(local_1d8,iVar1);
/* try { // try from 00157383 to 0015738d has its CatchHandler @ 001573e9 */
std::operator<<(local_1a8,(string *)local_1d8);
std::__cxx11::string::~string((string *)local_1d8);
bVar3 = false;
}
/* try { // try from 0015739e to 001573be has its CatchHandler @ 001573e0 */
std::operator<<(local_1a8," ]");
std::__cxx11::stringbuf::str();
std::__cxx11::stringstream::~stringstream(local_1b8);
return param_1;
}
| |
24,044 | get_dynamic | eloqsql/mysys/array.c | void get_dynamic(DYNAMIC_ARRAY *array, void *element, uint idx)
{
if (idx >= array->elements)
{
DBUG_PRINT("warning",("To big array idx: %d, array size is %d",
idx,array->elements));
bzero(element,array->size_of_element);
return;
}
memcpy(element,array->buffer+idx*array->size_of_element,
(size_t) array->size_of_element);
} | O3 | c | get_dynamic:
pushq %rbp
movq %rsp, %rbp
cmpl %edx, 0x8(%rdi)
jbe 0x34aa2
movl 0x14(%rdi), %eax
imull %eax, %edx
addq (%rdi), %rdx
movq %rsi, %rdi
movq %rdx, %rsi
movq %rax, %rdx
popq %rbp
jmp 0x24210
movl 0x14(%rdi), %edx
movq %rsi, %rdi
xorl %esi, %esi
popq %rbp
jmp 0x24170
| get_dynamic:
push rbp
mov rbp, rsp
cmp [rdi+8], edx
jbe short loc_34AA2
mov eax, [rdi+14h]
imul edx, eax
add rdx, [rdi]
mov rdi, rsi
mov rsi, rdx
mov rdx, rax
pop rbp
jmp _memcpy
loc_34AA2:
mov edx, [rdi+14h]
mov rdi, rsi
xor esi, esi
pop rbp
jmp _memset
| long long get_dynamic(long long a1, long long a2, unsigned int a3)
{
if ( *(_DWORD *)(a1 + 8) <= a3 )
return memset(a2, 0LL, *(unsigned int *)(a1 + 20));
else
return memcpy(a2, *(_QWORD *)a1 + *(_DWORD *)(a1 + 20) * a3, *(unsigned int *)(a1 + 20));
}
| get_dynamic:
PUSH RBP
MOV RBP,RSP
CMP dword ptr [RDI + 0x8],EDX
JBE 0x00134aa2
MOV EAX,dword ptr [RDI + 0x14]
IMUL EDX,EAX
ADD RDX,qword ptr [RDI]
MOV RDI,RSI
MOV RSI,RDX
MOV RDX,RAX
POP RBP
JMP 0x00124210
LAB_00134aa2:
MOV EDX,dword ptr [RDI + 0x14]
MOV RDI,RSI
XOR ESI,ESI
POP RBP
JMP 0x00124170
|
void get_dynamic(long *param_1,void *param_2,uint param_3)
{
if (param_3 < *(uint *)(param_1 + 1)) {
memcpy(param_2,(void *)((ulong)(param_3 * *(uint *)((long)param_1 + 0x14)) + *param_1),
(ulong)*(uint *)((long)param_1 + 0x14));
return;
}
memset(param_2,0,(ulong)*(uint *)((long)param_1 + 0x14));
return;
}
| |
24,045 | w_search | eloqsql/storage/maria/ma_write.c | static int w_search(register MARIA_HA *info, uint32 comp_flag, MARIA_KEY *key,
my_off_t page_pos,
MARIA_PAGE *father_page, uchar *father_keypos,
my_bool insert_last)
{
int error,flag;
uchar *temp_buff,*keypos,*keybuff;
my_bool was_last_key, buff_alloced;
my_off_t next_page, dup_key_pos;
MARIA_SHARE *share= info->s;
MARIA_KEYDEF *keyinfo= key->keyinfo;
MARIA_PAGE page;
DBUG_ENTER("w_search");
DBUG_PRINT("enter", ("page: %lu", (ulong) (page_pos/keyinfo->block_length)));
alloc_on_stack(*info->stack_end_ptr, temp_buff, buff_alloced,
(keyinfo->block_length + keyinfo->max_store_length*3));
if (!temp_buff)
DBUG_RETURN(1);
keybuff= temp_buff + (keyinfo->block_length + keyinfo->max_store_length*2);
if (_ma_fetch_keypage(&page, info, keyinfo, page_pos, PAGECACHE_LOCK_WRITE,
DFLT_INIT_HITS, temp_buff, 0))
goto err;
flag= (*keyinfo->bin_search)(key, &page, comp_flag, &keypos,
keybuff, &was_last_key);
if (flag == 0)
{
MARIA_KEY tmp_key;
/* get position to record with duplicated key */
tmp_key.keyinfo= keyinfo;
tmp_key.data= keybuff;
if ((*keyinfo->get_key)(&tmp_key, page.flag, page.node, &keypos))
dup_key_pos= _ma_row_pos_from_key(&tmp_key);
else
dup_key_pos= HA_OFFSET_ERROR;
if (keyinfo->flag & HA_FULLTEXT)
{
uint off;
int subkeys;
get_key_full_length_rdonly(off, keybuff);
subkeys=ft_sintXkorr(keybuff+off);
comp_flag=SEARCH_SAME;
if (subkeys >= 0)
{
/* normal word, one-level tree structure */
flag=(*keyinfo->bin_search)(key, &page, comp_flag,
&keypos, keybuff, &was_last_key);
}
else
{
/* popular word. two-level tree. going down */
my_off_t root= dup_key_pos;
MARIA_KEY subkey;
get_key_full_length_rdonly(off, key->data);
subkey.keyinfo= keyinfo= &share->ft2_keyinfo;
subkey.data= key->data + off;
subkey.data_length= key->data_length - off;
subkey.ref_length= key->ref_length;
subkey.flag= key->flag;
/* we'll modify key entry 'in vivo' */
keypos-= keyinfo->keylength + page.node;
error= _ma_ck_real_write_btree(info, &subkey, &root, comp_flag);
_ma_dpointer(share, keypos+HA_FT_WLEN, root);
subkeys--; /* should there be underflow protection ? */
DBUG_ASSERT(subkeys < 0);
ft_intXstore(keypos, subkeys);
if (!error)
{
page_mark_changed(info, &page);
if (_ma_write_keypage(&page, PAGECACHE_LOCK_LEFT_WRITELOCKED,
DFLT_INIT_HITS))
goto err;
}
stack_alloc_free(temp_buff, buff_alloced);
DBUG_RETURN(error);
}
}
else /* not HA_FULLTEXT, normal HA_NOSAME key */
{
/*
TODO
When the index will support true versioning - with multiple
identical values in the UNIQUE index, invisible to each other -
the following should be changed to "continue inserting keys, at the
end (of the row or statement) wait". We need to wait on *all*
unique conflicts at once, not one-at-a-time, because we need to
know all blockers in advance, otherwise we'll have incomplete wait-for
graph.
*/
/*
transaction that has inserted the conflicting key may be in progress.
the caller will wait for it to be committed or aborted.
*/
info->dup_key_trid= _ma_trid_from_key(&tmp_key);
info->dup_key_pos= dup_key_pos;
my_errno= HA_ERR_FOUND_DUPP_KEY;
DBUG_PRINT("warning",
("Duplicate key. dup_key_trid: %lu pos %lu visible: %d",
(ulong) info->dup_key_trid,
(ulong) info->dup_key_pos,
info->trn ? trnman_can_read_from(info->trn,
info->dup_key_trid) : 2));
goto err;
}
}
if (flag == MARIA_FOUND_WRONG_KEY)
{
my_errno= HA_ERR_CRASHED;
goto err;
}
if (!was_last_key)
insert_last=0;
next_page= _ma_kpos(page.node, keypos);
if (next_page == HA_OFFSET_ERROR ||
(error= w_search(info, comp_flag, key, next_page,
&page, keypos, insert_last)) > 0)
{
error= _ma_insert(info, key, &page, keypos, keybuff,
father_page, father_keypos, insert_last);
if (error < 0)
goto err;
page_mark_changed(info, &page);
if (_ma_write_keypage(&page, PAGECACHE_LOCK_LEFT_WRITELOCKED,
DFLT_INIT_HITS))
goto err;
}
stack_alloc_free(temp_buff, buff_alloced);
DBUG_RETURN(error);
err:
stack_alloc_free(temp_buff, buff_alloced);
DBUG_PRINT("exit",("Error: %d",my_errno));
DBUG_RETURN(-1);
} | O3 | c | w_search:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %r9, -0x68(%rbp)
movq %r8, -0x60(%rbp)
movq %rcx, %r12
movl %esi, -0x48(%rbp)
movq %rdi, %r14
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq (%rdi), %rax
movq %rax, -0x58(%rbp)
movq %rdx, -0x70(%rbp)
movq 0x8(%rdx), %r13
movzwl 0xa6(%r13), %r15d
movzwl 0xb0(%r13), %ebx
leaq (%rbx,%rbx,2), %rsi
addq %r15, %rsi
leaq -0xb0(%rbp), %rcx
movq %rsi, (%rcx)
movq 0x78(%rdi), %rax
movq (%rax), %rax
subq %rcx, %rax
subq %rsi, %rax
jbe 0x582ad
cmpq $0x10000, %rax # imm = 0x10000
ja 0x58297
cmpl $0x1000, %esi # imm = 0x1000
jb 0x582ad
cmpq $0x8001, %rax # imm = 0x8001
jb 0x582ad
movq %rsp, %rax
addl $0xf, %esi
andl $-0x10, %esi
subq %rsi, %rax
movq %rax, %rsp
movb $0x1, %cl
movl %ecx, -0x44(%rbp)
jmp 0x582d9
movl $0x10010, %edx # imm = 0x10010
xorl %edi, %edi
callq 0xc3acd
testq %rax, %rax
je 0x58363
movzwl 0xa6(%r13), %r15d
movzwl 0xb0(%r13), %ebx
movl $0x0, -0x44(%rbp)
leaq -0xb0(%rbp), %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r12, %rcx
movl $0x4, %r8d
movl $0x3, %r9d
pushq $0x0
movq %rax, -0x50(%rbp)
pushq %rax
callq 0x40df6
addq $0x10, %rsp
testb %al, %al
je 0x58320
movl $0xffffffff, %r13d # imm = 0xFFFFFFFF
cmpb $0x0, -0x44(%rbp)
jne 0x58369
movq -0x50(%rbp), %rdi
callq 0xc3cfa
jmp 0x58369
leaq (%r15,%rbx,2), %r12
addq -0x50(%rbp), %r12
leaq -0xb0(%rbp), %rsi
leaq -0x40(%rbp), %rcx
leaq -0x31(%rbp), %r9
movq -0x70(%rbp), %r15
movq %r15, %rdi
movl -0x48(%rbp), %edx
movq %r12, %r8
callq *0xd8(%r13)
testl %eax, %eax
je 0x5838e
cmpl $0x7fffffff, %eax # imm = 0x7FFFFFFF
jne 0x583cf
callq 0xc5c9a
movl $0x7e, (%rax)
jmp 0x58309
movl $0x1, %r13d
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x58653
movl %r13d, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0xd0(%rbp), %rdi
movq %r13, 0x8(%rdi)
movq %r12, (%rdi)
movl -0x88(%rbp), %edx
movl -0x84(%rbp), %esi
leaq -0x40(%rbp), %rcx
callq *0xe0(%r13)
testl %eax, %eax
je 0x58484
leaq -0xd0(%rbp), %rdi
callq 0x3ef6c
movq %rax, %rbx
jmp 0x5848b
xorl %eax, %eax
cmpb $0x0, -0x31(%rbp)
movzbl 0x10(%rbp), %ebx
cmovel %eax, %ebx
movl -0x88(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x3ee07
movsbl %bl, %ebx
cmpq $-0x1, %rax
je 0x58421
movq -0x40(%rbp), %r9
subq $0x8, %rsp
leaq -0xb0(%rbp), %r8
movq %r14, %rdi
movl -0x48(%rbp), %esi
movq %r15, %rdx
movq %rax, %rcx
pushq %rbx
callq 0x5820e
addq $0x10, %rsp
testl %eax, %eax
jle 0x584d1
movq -0x40(%rbp), %rcx
leaq -0xb0(%rbp), %rdx
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %r8
movq -0x60(%rbp), %r9
pushq %rbx
pushq -0x68(%rbp)
callq 0x5893f
addq $0x10, %rsp
testl %eax, %eax
js 0x58309
movl %eax, %r13d
movq 0x2e8(%r14), %rax
leaq -0xb0(%rbp), %rdi
movl 0x30(%rdi), %ecx
leaq (%rcx,%rcx,2), %rcx
movb $0x1, 0x10(%rax,%rcx,8)
movl $0x2, %esi
movl $0x3, %edx
callq 0x40f35
testb %al, %al
jne 0x58309
jmp 0x584d4
movq $-0x1, %rbx
testb $-0x80, 0xa2(%r13)
jne 0x584bf
leaq -0xd0(%rbp), %rdi
callq 0x3f024
movq %rax, 0x430(%r14)
movq %rbx, 0x428(%r14)
callq 0xc5c9a
movl $0x79, (%rax)
jmp 0x58309
movzbl (%r12), %eax
cmpq $0xff, %rax
je 0x584e7
incq %rax
jmp 0x584f8
movl %eax, %r13d
cmpb $0x0, -0x44(%rbp)
movq -0x50(%rbp), %rdi
je 0x58319
jmp 0x58369
movzwl 0x1(%r12), %eax
rolw $0x8, %ax
movzwl %ax, %eax
addq $0x3, %rax
movzbl (%r12,%rax), %ecx
shll $0x18, %ecx
js 0x5852f
leaq -0xb0(%rbp), %rsi
movl $0x4, -0x48(%rbp)
leaq -0x40(%rbp), %rcx
leaq -0x31(%rbp), %r9
movq %r15, %rdi
movl $0x4, %edx
movq %r12, %r8
callq *0xd8(%r13)
jmp 0x5834f
movzwl 0x2(%r12,%rax), %edx
rolw $0x8, %dx
movzwl %dx, %edx
movzbl 0x1(%r12,%rax), %r13d
shll $0x10, %r13d
orl %edx, %r13d
orl %ecx, %r13d
movq %rbx, -0x78(%rbp)
movq (%r15), %rax
movzbl (%rax), %ecx
cmpl $0xff, %ecx
je 0x58562
incl %ecx
jmp 0x58570
movzwl 0x1(%rax), %ecx
rolw $0x8, %cx
movzwl %cx, %ecx
addl $0x3, %ecx
movq -0x58(%rbp), %rbx
leaq 0x458(%rbx), %rdx
leaq -0xf0(%rbp), %rsi
movq %rdx, 0x8(%rsi)
movl %ecx, %edx
addq %rdx, %rax
movq %rax, (%rsi)
movl 0x10(%r15), %eax
subl %ecx, %eax
movl %eax, 0x10(%rsi)
movq 0x14(%r15), %rax
movq %rax, 0x14(%rsi)
movzwl 0x502(%rbx), %eax
addl -0x88(%rbp), %eax
subq %rax, -0x40(%rbp)
leaq -0x78(%rbp), %r12
movq %r14, %rdi
movq %r12, %rdx
movl $0x4, %ecx
callq 0x581b0
movl %eax, %r15d
movq -0x40(%rbp), %rsi
addq $0x4, %rsi
movq (%r12), %rdx
movq %rbx, %rdi
callq 0x3f150
movl %r13d, %edx
decl %edx
movq -0x40(%rbp), %rax
movb %dl, 0x3(%rax)
movq -0x40(%rbp), %rax
movb %dh, 0x2(%rax)
movl %edx, %eax
shrl $0x10, %eax
movq -0x40(%rbp), %rcx
movb %al, 0x1(%rcx)
shrl $0x18, %edx
movq -0x40(%rbp), %rax
movb %dl, (%rax)
testb %r15b, %r15b
je 0x58620
cmpb $0x0, -0x44(%rbp)
jne 0x58617
movq -0x50(%rbp), %rdi
callq 0xc3cfa
movzbl %r15b, %r13d
jmp 0x58369
movq 0x2e8(%r14), %rax
leaq -0xb0(%rbp), %rdi
movl 0x30(%rdi), %ecx
leaq (%rcx,%rcx,2), %rcx
movb $0x1, 0x10(%rax,%rcx,8)
movl $0x2, %esi
movl $0x3, %edx
callq 0x40f35
testb %al, %al
jne 0x58309
jmp 0x58608
callq 0x2b280
| w_search:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C8h
mov [rbp+var_68], r9
mov [rbp+var_60], r8
mov r12, rcx
mov [rbp+var_48], esi
mov r14, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov rax, [rdi]
mov [rbp+var_58], rax
mov [rbp+var_70], rdx
mov r13, [rdx+8]
movzx r15d, word ptr [r13+0A6h]
movzx ebx, word ptr [r13+0B0h]
lea rsi, [rbx+rbx*2]
add rsi, r15
lea rcx, [rbp+var_B0]
mov [rcx], rsi
mov rax, [rdi+78h]
mov rax, [rax]
sub rax, rcx
sub rax, rsi
jbe short loc_582AD
cmp rax, 10000h
ja short loc_58297
cmp esi, 1000h
jb short loc_582AD
cmp rax, 8001h
jb short loc_582AD
loc_58297:
mov rax, rsp
add esi, 0Fh
and esi, 0FFFFFFF0h
sub rax, rsi
mov rsp, rax
mov cl, 1
mov [rbp+var_44], ecx
jmp short loc_582D9
loc_582AD:
mov edx, offset stru_10010
xor edi, edi
call my_malloc
test rax, rax
jz loc_58363
movzx r15d, word ptr [r13+0A6h]
movzx ebx, word ptr [r13+0B0h]
mov [rbp+var_44], 0
loc_582D9:
lea rdi, [rbp+var_B0]
mov rsi, r14
mov rdx, r13
mov rcx, r12
mov r8d, 4
mov r9d, 3
push 0
mov [rbp+var_50], rax
push rax
call _ma_fetch_keypage
add rsp, 10h
test al, al
jz short loc_58320
loc_58309:
mov r13d, 0FFFFFFFFh
cmp byte ptr [rbp+var_44], 0
jnz short loc_58369
mov rdi, [rbp+var_50]
loc_58319:
call my_free
jmp short loc_58369
loc_58320:
lea r12, [r15+rbx*2]
add r12, [rbp+var_50]
lea rsi, [rbp+var_B0]
lea rcx, [rbp+var_40]
lea r9, [rbp+var_31]
mov r15, [rbp+var_70]
mov rdi, r15
mov edx, [rbp+var_48]
mov r8, r12
call qword ptr [r13+0D8h]
test eax, eax
jz short loc_5838E
loc_5834F:
cmp eax, 7FFFFFFFh
jnz short loc_583CF
call _my_thread_var
mov dword ptr [rax], 7Eh ; '~'
jmp short loc_58309
loc_58363:
mov r13d, 1
loc_58369:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz loc_58653
mov eax, r13d
lea rsp, [rbp-28h]
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_5838E:
lea rdi, [rbp+var_D0]
mov [rdi+8], r13
mov [rdi], r12
mov edx, [rbp+var_88]
mov esi, [rbp+var_84]
lea rcx, [rbp+var_40]
call qword ptr [r13+0E0h]
test eax, eax
jz loc_58484
lea rdi, [rbp+var_D0]
call _ma_row_pos_from_key
mov rbx, rax
jmp loc_5848B
loc_583CF:
xor eax, eax
cmp [rbp+var_31], 0
movzx ebx, [rbp+arg_0]
cmovz ebx, eax
mov edi, [rbp+var_88]
mov rsi, [rbp+var_40]
call _ma_kpos
movsx ebx, bl
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_58421
mov r9, [rbp+var_40]
sub rsp, 8
lea r8, [rbp+var_B0]
mov rdi, r14
mov esi, [rbp+var_48]
mov rdx, r15
mov rcx, rax
push rbx
call w_search
add rsp, 10h
test eax, eax
jle loc_584D1
loc_58421:
mov rcx, [rbp+var_40]
lea rdx, [rbp+var_B0]
mov rdi, r14
mov rsi, r15
mov r8, r12
mov r9, [rbp+var_60]
push rbx
push [rbp+var_68]
call _ma_insert
add rsp, 10h
test eax, eax
js loc_58309
mov r13d, eax
mov rax, [r14+2E8h]
lea rdi, [rbp+var_B0]
mov ecx, [rdi+30h]
lea rcx, [rcx+rcx*2]
mov byte ptr [rax+rcx*8+10h], 1
mov esi, 2
mov edx, 3
call _ma_write_keypage
test al, al
jnz loc_58309
jmp short loc_584D4
loc_58484:
mov rbx, 0FFFFFFFFFFFFFFFFh
loc_5848B:
test byte ptr [r13+0A2h], 80h
jnz short loc_584BF
lea rdi, [rbp+var_D0]
call _ma_trid_from_key
mov [r14+430h], rax
mov [r14+428h], rbx
call _my_thread_var
mov dword ptr [rax], 79h ; 'y'
jmp loc_58309
loc_584BF:
movzx eax, byte ptr [r12]
cmp rax, 0FFh
jz short loc_584E7
inc rax
jmp short loc_584F8
loc_584D1:
mov r13d, eax
loc_584D4:
cmp byte ptr [rbp+var_44], 0
mov rdi, [rbp+var_50]
jz loc_58319
jmp loc_58369
loc_584E7:
movzx eax, word ptr [r12+1]
rol ax, 8
movzx eax, ax
add rax, 3
loc_584F8:
movzx ecx, byte ptr [r12+rax]
shl ecx, 18h
js short loc_5852F
lea rsi, [rbp+var_B0]
mov [rbp+var_48], 4
lea rcx, [rbp+var_40]
lea r9, [rbp+var_31]
mov rdi, r15
mov edx, 4
mov r8, r12
call qword ptr [r13+0D8h]
jmp loc_5834F
loc_5852F:
movzx edx, word ptr [r12+rax+2]
rol dx, 8
movzx edx, dx
movzx r13d, byte ptr [r12+rax+1]
shl r13d, 10h
or r13d, edx
or r13d, ecx
mov [rbp+var_78], rbx
mov rax, [r15]
movzx ecx, byte ptr [rax]
cmp ecx, 0FFh
jz short loc_58562
inc ecx
jmp short loc_58570
loc_58562:
movzx ecx, word ptr [rax+1]
rol cx, 8
movzx ecx, cx
add ecx, 3
loc_58570:
mov rbx, [rbp+var_58]
lea rdx, [rbx+458h]
lea rsi, [rbp+var_F0]
mov [rsi+8], rdx
mov edx, ecx
add rax, rdx
mov [rsi], rax
mov eax, [r15+10h]
sub eax, ecx
mov [rsi+10h], eax
mov rax, [r15+14h]
mov [rsi+14h], rax
movzx eax, word ptr [rbx+502h]
add eax, [rbp+var_88]
sub [rbp+var_40], rax
lea r12, [rbp+var_78]
mov rdi, r14
mov rdx, r12
mov ecx, 4
call _ma_ck_real_write_btree
mov r15d, eax
mov rsi, [rbp+var_40]
add rsi, 4
mov rdx, [r12]
mov rdi, rbx
call _ma_dpointer
mov edx, r13d
dec edx
mov rax, [rbp+var_40]
mov [rax+3], dl
mov rax, [rbp+var_40]
mov [rax+2], dh
mov eax, edx
shr eax, 10h
mov rcx, [rbp+var_40]
mov [rcx+1], al
shr edx, 18h
mov rax, [rbp+var_40]
mov [rax], dl
test r15b, r15b
jz short loc_58620
loc_58608:
cmp byte ptr [rbp+var_44], 0
jnz short loc_58617
mov rdi, [rbp+var_50]
call my_free
loc_58617:
movzx r13d, r15b
jmp loc_58369
loc_58620:
mov rax, [r14+2E8h]
lea rdi, [rbp+var_B0]
mov ecx, [rdi+30h]
lea rcx, [rcx+rcx*2]
mov byte ptr [rax+rcx*8+10h], 1
mov esi, 2
mov edx, 3
call _ma_write_keypage
test al, al
jnz loc_58309
jmp short loc_58608
loc_58653:
call ___stack_chk_fail
| long long w_search(
long long a1,
unsigned int a2,
unsigned __int8 **a3,
unsigned long long a4,
long long a5,
long long a6,
char a7)
{
long long v9; // r13
long long v10; // r15
long long v11; // rbx
long long *v12; // rsi
long long **v13; // rcx
unsigned long long v14; // rax
bool v15; // cc
unsigned long long v16; // rax
char *v17; // rax
unsigned int v18; // r13d
char *v19; // rdi
unsigned __int8 *v20; // r12
unsigned __int8 **v21; // r15
unsigned __int8 **v22; // rdi
int v23; // eax
long long v25; // rbx
long long v27; // rax
int v28; // eax
int v29; // eax
long long v30; // rax
long long v31; // rax
int v32; // r13d
unsigned __int8 *v33; // rax
int v34; // ecx
unsigned int v35; // ecx
long long v36; // rbx
bool v37; // r15
_QWORD v38[2]; // [rsp+0h] [rbp-F0h] BYREF
unsigned int v39; // [rsp+10h] [rbp-E0h]
long long v40; // [rsp+14h] [rbp-DCh]
long long v41[4]; // [rsp+20h] [rbp-D0h] BYREF
long long *v42[5]; // [rsp+40h] [rbp-B0h] BYREF
unsigned int v43; // [rsp+68h] [rbp-88h]
unsigned int v44; // [rsp+6Ch] [rbp-84h]
unsigned int v45; // [rsp+70h] [rbp-80h]
long long v46; // [rsp+78h] [rbp-78h] BYREF
unsigned __int8 **v47; // [rsp+80h] [rbp-70h]
long long v48; // [rsp+88h] [rbp-68h]
long long v49; // [rsp+90h] [rbp-60h]
long long v50; // [rsp+98h] [rbp-58h]
char *v51; // [rsp+A0h] [rbp-50h]
unsigned int v52; // [rsp+A8h] [rbp-48h]
int v53; // [rsp+ACh] [rbp-44h]
_BYTE *v54; // [rsp+B0h] [rbp-40h] BYREF
char v55; // [rsp+BFh] [rbp-31h] BYREF
unsigned long long v56; // [rsp+C0h] [rbp-30h]
v48 = a6;
v49 = a5;
v52 = a2;
v56 = __readfsqword(0x28u);
v50 = *(_QWORD *)a1;
v47 = a3;
v9 = (long long)a3[1];
v10 = *(unsigned __int16 *)(v9 + 166);
v11 = *(unsigned __int16 *)(v9 + 176);
v12 = (long long *)(v10 + 3 * v11);
v13 = v42;
v42[0] = v12;
v14 = **(_QWORD **)(a1 + 120) - (_QWORD)v42;
v15 = v14 <= (unsigned long long)v12;
v16 = v14 - (_QWORD)v12;
if ( v15 || v16 <= 0x10000 && ((unsigned int)v12 < 0x1000 || v16 < 0x8001) )
{
v17 = (char *)my_malloc(0LL, v12, &stru_10010);
if ( !v17 )
return 1;
v10 = *(unsigned __int16 *)(v9 + 166);
v11 = *(unsigned __int16 *)(v9 + 176);
v53 = 0;
}
else
{
v17 = (char *)v38 - (((_DWORD)v12 + 15) & 0xFFFFFFF0);
LOBYTE(v13) = 1;
v53 = (int)v13;
}
v51 = v17;
if ( ma_fetch_keypage((long long)v42, a1, v9, a4, 4, 3, (long long)v17) )
goto LABEL_9;
v20 = (unsigned __int8 *)&v51[2 * v11 + v10];
v21 = v47;
v22 = v47;
v23 = (*(long long ( **)(unsigned __int8 **, long long **, _QWORD, _BYTE **, unsigned __int8 *, char *))(v9 + 216))(
v47,
v42,
v52,
&v54,
v20,
&v55);
if ( v23 )
{
LABEL_13:
if ( v23 == 0x7FFFFFFF )
{
*(_DWORD *)my_thread_var(v22) = 126;
goto LABEL_9;
}
if ( !v55 )
a7 = 0;
v27 = ma_kpos(v43, (long long)v54);
if ( v27 == -1 || (v28 = w_search(a1, v52, (_DWORD)v21, v27, (unsigned int)v42, (_DWORD)v54, a7), v28 > 0) )
{
v29 = ma_insert(a1, (_DWORD)v21, (unsigned int)v42, (_DWORD)v54, (_DWORD)v20, v49, v48, a7);
if ( v29 < 0 )
goto LABEL_9;
v18 = v29;
*(_BYTE *)(*(_QWORD *)(a1 + 744) + 24LL * v45 + 16) = 1;
if ( (unsigned __int8)ma_write_keypage(v42, 2, 3) )
goto LABEL_9;
}
else
{
v18 = v28;
}
v19 = v51;
if ( (_BYTE)v53 )
return v18;
goto LABEL_11;
}
v41[1] = v9;
v41[0] = (long long)v20;
if ( (*(unsigned int ( **)(long long *, _QWORD, _QWORD, _BYTE **))(v9 + 224))(v41, v44, v43, &v54) )
v25 = ma_row_pos_from_key(v41);
else
v25 = -1LL;
if ( *(char *)(v9 + 162) >= 0 )
{
*(_QWORD *)(a1 + 1072) = ma_trid_from_key((long long)v41);
*(_QWORD *)(a1 + 1064) = v25;
*(_DWORD *)my_thread_var(v41) = 121;
goto LABEL_9;
}
v30 = *v20;
if ( v30 == 255 )
v31 = (unsigned __int16)__ROL2__(*(_WORD *)(v20 + 1), 8) + 3LL;
else
v31 = v30 + 1;
if ( (v20[v31] & 0x80) == 0 )
{
v52 = 4;
v22 = v21;
v23 = (*(long long ( **)(unsigned __int8 **, long long **, long long, _BYTE **, unsigned __int8 *, char *))(v9 + 216))(
v21,
v42,
4LL,
&v54,
v20,
&v55);
goto LABEL_13;
}
v32 = (v20[v31] << 24) | (unsigned __int16)__ROL2__(*(_WORD *)&v20[v31 + 2], 8) | (v20[v31 + 1] << 16);
v46 = v25;
v33 = *v21;
v34 = **v21;
if ( v34 == 255 )
v35 = (unsigned __int16)__ROL2__(*(_WORD *)(v33 + 1), 8) + 3;
else
v35 = v34 + 1;
v36 = v50;
v38[1] = v50 + 1112;
v38[0] = &v33[v35];
v39 = *((_DWORD *)v21 + 4) - v35;
v40 = *(long long *)((char *)v21 + 20);
v54 += -v43 - *(unsigned __int16 *)(v50 + 1282);
v37 = ma_ck_real_write_btree(a1, (long long)v38, &v46, 4);
ma_dpointer(v36, (long long)(v54 + 4), v46);
v54[3] = v32 - 1;
v54[2] = (unsigned __int16)(v32 - 1) >> 8;
v54[1] = (unsigned int)(v32 - 1) >> 16;
*v54 = (unsigned int)(v32 - 1) >> 24;
if ( v37 || (*(_BYTE *)(*(_QWORD *)(a1 + 744) + 24LL * v45 + 16) = 1, !(unsigned __int8)ma_write_keypage(v42, 2, 3)) )
{
if ( !(_BYTE)v53 )
my_free(v51);
return v37;
}
LABEL_9:
v18 = -1;
if ( !(_BYTE)v53 )
{
v19 = v51;
LABEL_11:
my_free(v19);
}
return v18;
}
| w_search:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc8
MOV qword ptr [RBP + -0x68],R9
MOV qword ptr [RBP + -0x60],R8
MOV R12,RCX
MOV dword ptr [RBP + -0x48],ESI
MOV R14,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RDI]
MOV qword ptr [RBP + -0x58],RAX
MOV qword ptr [RBP + -0x70],RDX
MOV R13,qword ptr [RDX + 0x8]
MOVZX R15D,word ptr [R13 + 0xa6]
MOVZX EBX,word ptr [R13 + 0xb0]
LEA RSI,[RBX + RBX*0x2]
ADD RSI,R15
LEA RCX,[RBP + -0xb0]
MOV qword ptr [RCX],RSI
MOV RAX,qword ptr [RDI + 0x78]
MOV RAX,qword ptr [RAX]
SUB RAX,RCX
SUB RAX,RSI
JBE 0x001582ad
CMP RAX,0x10000
JA 0x00158297
CMP ESI,0x1000
JC 0x001582ad
CMP RAX,0x8001
JC 0x001582ad
LAB_00158297:
MOV RAX,RSP
ADD ESI,0xf
AND ESI,0xfffffff0
SUB RAX,RSI
MOV RSP,RAX
MOV CL,0x1
MOV dword ptr [RBP + -0x44],ECX
JMP 0x001582d9
LAB_001582ad:
MOV EDX,0x10010
XOR EDI,EDI
CALL 0x001c3acd
TEST RAX,RAX
JZ 0x00158363
MOVZX R15D,word ptr [R13 + 0xa6]
MOVZX EBX,word ptr [R13 + 0xb0]
MOV dword ptr [RBP + -0x44],0x0
LAB_001582d9:
LEA RDI,[RBP + -0xb0]
MOV RSI,R14
MOV RDX,R13
MOV RCX,R12
MOV R8D,0x4
MOV R9D,0x3
PUSH 0x0
MOV qword ptr [RBP + -0x50],RAX
PUSH RAX
CALL 0x00140df6
ADD RSP,0x10
TEST AL,AL
JZ 0x00158320
LAB_00158309:
MOV R13D,0xffffffff
CMP byte ptr [RBP + -0x44],0x0
JNZ 0x00158369
MOV RDI,qword ptr [RBP + -0x50]
LAB_00158319:
CALL 0x001c3cfa
JMP 0x00158369
LAB_00158320:
LEA R12,[R15 + RBX*0x2]
ADD R12,qword ptr [RBP + -0x50]
LEA RSI,[RBP + -0xb0]
LEA RCX,[RBP + -0x40]
LEA R9,[RBP + -0x31]
MOV R15,qword ptr [RBP + -0x70]
MOV RDI,R15
MOV EDX,dword ptr [RBP + -0x48]
MOV R8,R12
CALL qword ptr [R13 + 0xd8]
TEST EAX,EAX
JZ 0x0015838e
LAB_0015834f:
CMP EAX,0x7fffffff
JNZ 0x001583cf
CALL 0x001c5c9a
MOV dword ptr [RAX],0x7e
JMP 0x00158309
LAB_00158363:
MOV R13D,0x1
LAB_00158369:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00158653
MOV EAX,R13D
LEA RSP,[RBP + -0x28]
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0015838e:
LEA RDI,[RBP + -0xd0]
MOV qword ptr [RDI + 0x8],R13
MOV qword ptr [RDI],R12
MOV EDX,dword ptr [RBP + -0x88]
MOV ESI,dword ptr [RBP + -0x84]
LEA RCX,[RBP + -0x40]
CALL qword ptr [R13 + 0xe0]
TEST EAX,EAX
JZ 0x00158484
LEA RDI,[RBP + -0xd0]
CALL 0x0013ef6c
MOV RBX,RAX
JMP 0x0015848b
LAB_001583cf:
XOR EAX,EAX
CMP byte ptr [RBP + -0x31],0x0
MOVZX EBX,byte ptr [RBP + 0x10]
CMOVZ EBX,EAX
MOV EDI,dword ptr [RBP + -0x88]
MOV RSI,qword ptr [RBP + -0x40]
CALL 0x0013ee07
MOVSX EBX,BL
CMP RAX,-0x1
JZ 0x00158421
MOV R9,qword ptr [RBP + -0x40]
SUB RSP,0x8
LEA R8,[RBP + -0xb0]
MOV RDI,R14
MOV ESI,dword ptr [RBP + -0x48]
MOV RDX,R15
MOV RCX,RAX
PUSH RBX
CALL 0x0015820e
ADD RSP,0x10
TEST EAX,EAX
JLE 0x001584d1
LAB_00158421:
MOV RCX,qword ptr [RBP + -0x40]
LEA RDX,[RBP + -0xb0]
MOV RDI,R14
MOV RSI,R15
MOV R8,R12
MOV R9,qword ptr [RBP + -0x60]
PUSH RBX
PUSH qword ptr [RBP + -0x68]
CALL 0x0015893f
ADD RSP,0x10
TEST EAX,EAX
JS 0x00158309
MOV R13D,EAX
MOV RAX,qword ptr [R14 + 0x2e8]
LEA RDI,[RBP + -0xb0]
MOV ECX,dword ptr [RDI + 0x30]
LEA RCX,[RCX + RCX*0x2]
MOV byte ptr [RAX + RCX*0x8 + 0x10],0x1
MOV ESI,0x2
MOV EDX,0x3
CALL 0x00140f35
TEST AL,AL
JNZ 0x00158309
JMP 0x001584d4
LAB_00158484:
MOV RBX,-0x1
LAB_0015848b:
TEST byte ptr [R13 + 0xa2],0x80
JNZ 0x001584bf
LEA RDI,[RBP + -0xd0]
CALL 0x0013f024
MOV qword ptr [R14 + 0x430],RAX
MOV qword ptr [R14 + 0x428],RBX
CALL 0x001c5c9a
MOV dword ptr [RAX],0x79
JMP 0x00158309
LAB_001584bf:
MOVZX EAX,byte ptr [R12]
CMP RAX,0xff
JZ 0x001584e7
INC RAX
JMP 0x001584f8
LAB_001584d1:
MOV R13D,EAX
LAB_001584d4:
CMP byte ptr [RBP + -0x44],0x0
MOV RDI,qword ptr [RBP + -0x50]
JZ 0x00158319
JMP 0x00158369
LAB_001584e7:
MOVZX EAX,word ptr [R12 + 0x1]
ROL AX,0x8
MOVZX EAX,AX
ADD RAX,0x3
LAB_001584f8:
MOVZX ECX,byte ptr [R12 + RAX*0x1]
SHL ECX,0x18
JS 0x0015852f
LEA RSI,[RBP + -0xb0]
MOV dword ptr [RBP + -0x48],0x4
LEA RCX,[RBP + -0x40]
LEA R9,[RBP + -0x31]
MOV RDI,R15
MOV EDX,0x4
MOV R8,R12
CALL qword ptr [R13 + 0xd8]
JMP 0x0015834f
LAB_0015852f:
MOVZX EDX,word ptr [R12 + RAX*0x1 + 0x2]
ROL DX,0x8
MOVZX EDX,DX
MOVZX R13D,byte ptr [R12 + RAX*0x1 + 0x1]
SHL R13D,0x10
OR R13D,EDX
OR R13D,ECX
MOV qword ptr [RBP + -0x78],RBX
MOV RAX,qword ptr [R15]
MOVZX ECX,byte ptr [RAX]
CMP ECX,0xff
JZ 0x00158562
INC ECX
JMP 0x00158570
LAB_00158562:
MOVZX ECX,word ptr [RAX + 0x1]
ROL CX,0x8
MOVZX ECX,CX
ADD ECX,0x3
LAB_00158570:
MOV RBX,qword ptr [RBP + -0x58]
LEA RDX,[RBX + 0x458]
LEA RSI,[RBP + -0xf0]
MOV qword ptr [RSI + 0x8],RDX
MOV EDX,ECX
ADD RAX,RDX
MOV qword ptr [RSI],RAX
MOV EAX,dword ptr [R15 + 0x10]
SUB EAX,ECX
MOV dword ptr [RSI + 0x10],EAX
MOV RAX,qword ptr [R15 + 0x14]
MOV qword ptr [RSI + 0x14],RAX
MOVZX EAX,word ptr [RBX + 0x502]
ADD EAX,dword ptr [RBP + -0x88]
SUB qword ptr [RBP + -0x40],RAX
LEA R12,[RBP + -0x78]
MOV RDI,R14
MOV RDX,R12
MOV ECX,0x4
CALL 0x001581b0
MOV R15D,EAX
MOV RSI,qword ptr [RBP + -0x40]
ADD RSI,0x4
MOV RDX,qword ptr [R12]
MOV RDI,RBX
CALL 0x0013f150
MOV EDX,R13D
DEC EDX
MOV RAX,qword ptr [RBP + -0x40]
MOV byte ptr [RAX + 0x3],DL
MOV RAX,qword ptr [RBP + -0x40]
MOV byte ptr [RAX + 0x2],DH
MOV EAX,EDX
SHR EAX,0x10
MOV RCX,qword ptr [RBP + -0x40]
MOV byte ptr [RCX + 0x1],AL
SHR EDX,0x18
MOV RAX,qword ptr [RBP + -0x40]
MOV byte ptr [RAX],DL
TEST R15B,R15B
JZ 0x00158620
LAB_00158608:
CMP byte ptr [RBP + -0x44],0x0
JNZ 0x00158617
MOV RDI,qword ptr [RBP + -0x50]
CALL 0x001c3cfa
LAB_00158617:
MOVZX R13D,R15B
JMP 0x00158369
LAB_00158620:
MOV RAX,qword ptr [R14 + 0x2e8]
LEA RDI,[RBP + -0xb0]
MOV ECX,dword ptr [RDI + 0x30]
LEA RCX,[RCX + RCX*0x2]
MOV byte ptr [RAX + RCX*0x8 + 0x10],0x1
MOV ESI,0x2
MOV EDX,0x3
CALL 0x00140f35
TEST AL,AL
JNZ 0x00158309
JMP 0x00158608
LAB_00158653:
CALL 0x0012b280
|
uint w_search(long *param_1,int4 param_2,int8 *param_3,int8 param_4,
int8 param_5,int8 param_6,char param_7)
{
byte bVar1;
byte bVar2;
ushort uVar3;
code *pcVar4;
int8 *puVar5;
int8 uVar6;
long lVar7;
int4 uVar8;
char cVar9;
byte bVar10;
int iVar11;
int iVar12;
uint uVar13;
ulong uVar14;
ulong uVar15;
int4 *puVar16;
long lVar17;
long lVar18;
long lVar19;
ulong uVar20;
byte **ppbVar21;
int1 *puVar22;
byte *pbVar23;
ulong uVar24;
long in_FS_OFFSET;
byte *local_f8;
long local_f0;
int local_e8;
int8 local_e4;
byte *local_d8;
long local_d0;
ulong local_b8 [5];
int local_90;
int4 local_8c;
uint local_88;
long local_80;
int8 *local_78;
int8 local_70;
int8 local_68;
long local_60;
int1 *local_58;
int4 local_50;
int4 local_4c;
int1 *local_48;
char local_39;
long local_38;
ppbVar21 = &local_f8;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
local_60 = *param_1;
lVar18 = param_3[1];
uVar24 = (ulong)*(ushort *)(lVar18 + 0xa6);
uVar20 = (ulong)*(ushort *)(lVar18 + 0xb0);
local_b8[0] = uVar20 * 3 + uVar24;
uVar14 = *(long *)param_1[0xf] - (long)local_b8;
uVar15 = uVar14 - local_b8[0];
local_78 = param_3;
local_70 = param_6;
local_68 = param_5;
local_50 = param_2;
if ((local_b8[0] < uVar14) &&
((0x10000 < uVar15 || ((0xfff < (uint)local_b8[0] && (0x8000 < uVar15)))))) {
puVar22 = (int1 *)((long)&local_f8 - (ulong)((uint)local_b8[0] + 0xf & 0xfffffff0));
local_4c = (int4)CONCAT71((int7)((ulong)local_b8 >> 8),1);
ppbVar21 = (byte **)puVar22;
}
else {
puVar22 = (int1 *)my_malloc(0,local_b8[0],0x10010);
if (puVar22 == (int1 *)0x0) {
uVar13 = 1;
goto LAB_00158369;
}
uVar24 = (ulong)*(ushort *)(lVar18 + 0xa6);
uVar20 = (ulong)*(ushort *)(lVar18 + 0xb0);
local_4c = 0;
ppbVar21 = &local_f8;
}
*(int8 *)((long)ppbVar21 + -8) = 0;
local_58 = puVar22;
*(int1 **)((long)ppbVar21 + -0x10) = puVar22;
*(int8 *)((long)ppbVar21 + -0x18) = 0x158301;
cVar9 = _ma_fetch_keypage(local_b8,param_1,lVar18,param_4,4,3);
uVar8 = local_50;
puVar5 = local_78;
if (cVar9 == '\0') {
pbVar23 = local_58 + uVar24 + uVar20 * 2;
pcVar4 = *(code **)(lVar18 + 0xd8);
*(int8 *)((long)ppbVar21 + -8) = 0x15834b;
iVar11 = (*pcVar4)(puVar5,local_b8,uVar8,&local_48,pbVar23,&local_39);
iVar12 = local_90;
if (iVar11 == 0) {
pcVar4 = *(code **)(lVar18 + 0xe0);
local_d8 = pbVar23;
local_d0 = lVar18;
*(int8 *)((long)ppbVar21 + -8) = 0x1583b3;
iVar12 = (*pcVar4)(&local_d8,local_8c,iVar12,&local_48);
if (iVar12 == 0) {
lVar17 = -1;
}
else {
*(int8 *)((long)ppbVar21 + -8) = 0x1583c7;
lVar17 = _ma_row_pos_from_key(&local_d8);
}
lVar7 = local_60;
if ((*(byte *)(lVar18 + 0xa2) & 0x80) == 0) {
*(int8 *)((long)ppbVar21 + -8) = 0x1584a1;
lVar18 = _ma_trid_from_key(&local_d8);
param_1[0x86] = lVar18;
param_1[0x85] = lVar17;
*(int8 *)((long)ppbVar21 + -8) = 0x1584b4;
puVar16 = (int4 *)_my_thread_var();
*puVar16 = 0x79;
goto LAB_00158309;
}
if ((ulong)*pbVar23 == 0xff) {
lVar19 = (ulong)(ushort)(*(ushort *)(pbVar23 + 1) << 8 | *(ushort *)(pbVar23 + 1) >> 8) + 3;
}
else {
lVar19 = (ulong)*pbVar23 + 1;
}
bVar1 = pbVar23[lVar19];
if ((int)((uint)bVar1 << 0x18) < 0) {
uVar3 = *(ushort *)(pbVar23 + lVar19 + 2);
bVar2 = pbVar23[lVar19 + 1];
local_f8 = (byte *)*puVar5;
if (*local_f8 == 0xff) {
uVar13 = (ushort)(*(ushort *)(local_f8 + 1) << 8 | *(ushort *)(local_f8 + 1) >> 8) + 3;
}
else {
uVar13 = *local_f8 + 1;
}
local_f0 = local_60 + 0x458;
local_f8 = local_f8 + uVar13;
local_e8 = *(int *)(puVar5 + 2) - uVar13;
local_e4 = *(int8 *)((long)puVar5 + 0x14);
local_48 = local_48 + -(ulong)((uint)*(ushort *)(local_60 + 0x502) + local_90);
local_80 = lVar17;
*(int8 *)((long)ppbVar21 + -8) = 0x1585c4;
bVar10 = _ma_ck_real_write_btree(param_1,&local_f8,&local_80,4);
lVar18 = local_80;
puVar22 = local_48 + 4;
*(int8 *)((long)ppbVar21 + -8) = 0x1585db;
_ma_dpointer(lVar7,puVar22,lVar18);
iVar12 = CONCAT13(bVar1,CONCAT12(bVar2,uVar3 << 8 | uVar3 >> 8)) + -1;
local_48[3] = (char)iVar12;
local_48[2] = (char)((uint)iVar12 >> 8);
local_48[1] = (char)((uint)iVar12 >> 0x10);
*local_48 = (char)((uint)iVar12 >> 0x18);
if (bVar10 == 0) {
*(int1 *)(param_1[0x5d] + 0x10 + (ulong)local_88 * 0x18) = 1;
*(int8 *)((long)ppbVar21 + -8) = 0x158649;
cVar9 = _ma_write_keypage(local_b8,2,3);
if (cVar9 != '\0') goto LAB_00158309;
}
puVar22 = local_58;
if ((char)local_4c == '\0') {
*(int8 *)((long)ppbVar21 + -8) = 0x158617;
my_free(puVar22);
}
uVar13 = (uint)bVar10;
goto LAB_00158369;
}
local_50 = 4;
pcVar4 = *(code **)(lVar18 + 0xd8);
*(int8 *)((long)ppbVar21 + -8) = 0x15852a;
iVar11 = (*pcVar4)(puVar5,local_b8,4,&local_48,pbVar23,&local_39);
}
puVar22 = local_48;
if (iVar11 == 0x7fffffff) {
*(int8 *)((long)ppbVar21 + -8) = 0x15835b;
puVar16 = (int4 *)_my_thread_var();
*puVar16 = 0x7e;
goto LAB_00158309;
}
if (local_39 == '\0') {
param_7 = '\0';
}
*(int8 *)((long)ppbVar21 + -8) = 0x1583eb;
lVar18 = _ma_kpos(local_90,puVar22);
puVar22 = local_48;
uVar8 = local_50;
if (lVar18 == -1) {
LAB_00158421:
puVar22 = local_48;
uVar6 = local_68;
*(ulong *)((long)ppbVar21 + -8) = (ulong)(uint)(int)param_7;
*(int8 *)((long)ppbVar21 + -0x10) = local_70;
*(int8 *)((long)ppbVar21 + -0x18) = 0x158442;
uVar13 = _ma_insert(param_1,puVar5,local_b8,puVar22,pbVar23,uVar6);
if (-1 < (int)uVar13) {
*(int1 *)(param_1[0x5d] + 0x10 + (ulong)local_88 * 0x18) = 1;
*(int8 *)((long)ppbVar21 + -8) = 0x15847a;
cVar9 = _ma_write_keypage(local_b8,2,3);
if (cVar9 == '\0') goto LAB_001584d4;
}
goto LAB_00158309;
}
*(ulong *)((long)ppbVar21 + -0x10) = (ulong)(uint)(int)param_7;
*(int8 *)((long)ppbVar21 + -0x18) = 0x158415;
uVar13 = w_search(param_1,uVar8,puVar5,lVar18,local_b8,puVar22);
if (0 < (int)uVar13) goto LAB_00158421;
LAB_001584d4:
puVar22 = local_58;
}
else {
LAB_00158309:
uVar13 = 0xffffffff;
puVar22 = local_58;
}
local_58 = puVar22;
if ((char)local_4c == '\0') {
*(int8 *)((long)ppbVar21 + -8) = 0x15831e;
my_free(puVar22);
}
LAB_00158369:
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return uVar13;
}
/* WARNING: Subroutine does not return */
*(code **)((long)ppbVar21 + -8) = _ma_enlarge_root;
__stack_chk_fail();
}
| |
24,046 | ma_retrieve_auto_increment | eloqsql/storage/maria/ma_key.c | ulonglong ma_retrieve_auto_increment(const uchar *key, uint8 key_type)
{
ulonglong value= 0; /* Store unsigned values here */
longlong s_value= 0; /* Store signed values here */
switch (key_type) {
case HA_KEYTYPE_INT8:
s_value= (longlong) *(const signed char*) key;
break;
case HA_KEYTYPE_BINARY:
value=(ulonglong) *key;
break;
case HA_KEYTYPE_SHORT_INT:
s_value= (longlong) sint2korr(key);
break;
case HA_KEYTYPE_USHORT_INT:
value=(ulonglong) uint2korr(key);
break;
case HA_KEYTYPE_LONG_INT:
s_value= (longlong) sint4korr(key);
break;
case HA_KEYTYPE_ULONG_INT:
value=(ulonglong) uint4korr(key);
break;
case HA_KEYTYPE_INT24:
s_value= (longlong) sint3korr(key);
break;
case HA_KEYTYPE_UINT24:
value=(ulonglong) uint3korr(key);
break;
case HA_KEYTYPE_FLOAT: /* This shouldn't be used */
{
float f_1;
float4get(f_1,key);
/* Ignore negative values */
value = (f_1 < (float) 0.0) ? 0 : (ulonglong) f_1;
break;
}
case HA_KEYTYPE_DOUBLE: /* This shouldn't be used */
{
double f_1;
float8get(f_1,key);
/* Ignore negative values */
value = (f_1 < 0.0) ? 0 : (ulonglong) f_1;
break;
}
case HA_KEYTYPE_LONGLONG:
s_value= sint8korr(key);
break;
case HA_KEYTYPE_ULONGLONG:
value= uint8korr(key);
break;
default:
DBUG_ASSERT(0);
value=0; /* Error */
break;
}
/*
The following code works becasue if s_value < 0 then value is 0
and if s_value == 0 then value will contain either s_value or the
correct value.
*/
return (s_value > 0) ? (ulonglong) s_value : value;
} | O3 | c | ma_retrieve_auto_increment:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
addl $-0x2, %esi
cmpl $0xc, %esi
ja 0x3ffc8
leaq 0xaa0fc(%rip), %rcx # 0xe9fd8
movslq (%rcx,%rsi,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
movzbl (%rdi), %eax
jmp 0x3ffc8
movzwl (%rdi), %ecx
movzbl 0x2(%rdi), %eax
shll $0x10, %eax
jmp 0x3ff8b
movslq (%rdi), %rcx
jmp 0x3ffbf
movzwl (%rdi), %eax
jmp 0x3ffc8
movsbq (%rdi), %rcx
jmp 0x3ffbf
movswq (%rdi), %rcx
jmp 0x3ffbf
movl (%rdi), %eax
jmp 0x3ffc8
movq (%rdi), %rcx
jmp 0x3ffbf
movss (%rdi), %xmm0
xorps %xmm1, %xmm1
movaps %xmm0, %xmm2
cmpless %xmm1, %xmm2
andnps %xmm0, %xmm2
cvttss2si %xmm2, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subss 0xa10b1(%rip), %xmm2 # 0xe1004
cvttss2si %xmm2, %rax
jmp 0x3ff88
movsd (%rdi), %xmm0
xorpd %xmm1, %xmm1
movapd %xmm0, %xmm2
cmplesd %xmm1, %xmm2
andnpd %xmm0, %xmm2
cvttsd2si %xmm2, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subsd 0xa9f6d(%rip), %xmm2 # 0xe9ef0
cvttsd2si %xmm2, %rax
andq %rdx, %rax
orq %rcx, %rax
jmp 0x3ffc8
movzbl 0x2(%rdi), %esi
movl %esi, %eax
shll $0x10, %eax
movzbl 0x1(%rdi), %ecx
shll $0x8, %ecx
movzbl (%rdi), %edx
testb %sil, %sil
js 0x3ffb3
orl %edx, %eax
orl %ecx, %eax
jmp 0x3ffbc
movq (%rdi), %rax
jmp 0x3ffc8
orl %edx, %ecx
addl %ecx, %eax
addl $0xff000000, %eax # imm = 0xFF000000
movslq %eax, %rcx
xorl %eax, %eax
testq %rcx, %rcx
cmovgq %rcx, %rax
popq %rbp
retq
nop
| ma_retrieve_auto_increment:
push rbp
mov rbp, rsp
xor eax, eax
add esi, 0FFFFFFFEh; switch 13 cases
cmp esi, 0Ch
ja def_3FEE3; jumptable 000000000003FEE3 default case, case 7
lea rcx, jpt_3FEE3
movsxd rdx, ds:(jpt_3FEE3 - 0E9FD8h)[rcx+rsi*4]
add rdx, rcx
jmp rdx; switch jump
loc_3FEE5:
movzx eax, byte ptr [rdi]; jumptable 000000000003FEE3 case 2
jmp def_3FEE3; jumptable 000000000003FEE3 default case, case 7
loc_3FEED:
movzx ecx, word ptr [rdi]; jumptable 000000000003FEE3 case 13
movzx eax, byte ptr [rdi+2]
shl eax, 10h
jmp loc_3FF8B
loc_3FEFC:
movsxd rcx, dword ptr [rdi]; jumptable 000000000003FEE3 case 4
jmp loc_3FFBF
loc_3FF04:
movzx eax, word ptr [rdi]; jumptable 000000000003FEE3 case 8
jmp def_3FEE3; jumptable 000000000003FEE3 default case, case 7
loc_3FF0C:
movsx rcx, byte ptr [rdi]; jumptable 000000000003FEE3 case 14
jmp loc_3FFBF
loc_3FF15:
movsx rcx, word ptr [rdi]; jumptable 000000000003FEE3 case 3
jmp loc_3FFBF
loc_3FF1E:
mov eax, [rdi]; jumptable 000000000003FEE3 case 9
jmp def_3FEE3; jumptable 000000000003FEE3 default case, case 7
loc_3FF25:
mov rcx, [rdi]; jumptable 000000000003FEE3 case 10
jmp loc_3FFBF
loc_3FF2D:
movss xmm0, dword ptr [rdi]; jumptable 000000000003FEE3 case 5
xorps xmm1, xmm1
movaps xmm2, xmm0
cmpless xmm2, xmm1
andnps xmm2, xmm0
cvttss2si rcx, xmm2
mov rdx, rcx
sar rdx, 3Fh
subss xmm2, cs:dword_E1004
cvttss2si rax, xmm2
jmp short loc_3FF88
loc_3FF5A:
movsd xmm0, qword ptr [rdi]; jumptable 000000000003FEE3 case 6
xorpd xmm1, xmm1
movapd xmm2, xmm0
cmplesd xmm2, xmm1
andnpd xmm2, xmm0
cvttsd2si rcx, xmm2
mov rdx, rcx
sar rdx, 3Fh
subsd xmm2, cs:qword_E9EF0
cvttsd2si rax, xmm2
loc_3FF88:
and rax, rdx
loc_3FF8B:
or rax, rcx
jmp short def_3FEE3; jumptable 000000000003FEE3 default case, case 7
loc_3FF90:
movzx esi, byte ptr [rdi+2]; jumptable 000000000003FEE3 case 12
mov eax, esi
shl eax, 10h
movzx ecx, byte ptr [rdi+1]
shl ecx, 8
movzx edx, byte ptr [rdi]
test sil, sil
js short loc_3FFB3
or eax, edx
or eax, ecx
jmp short loc_3FFBC
loc_3FFAE:
mov rax, [rdi]; jumptable 000000000003FEE3 case 11
jmp short def_3FEE3; jumptable 000000000003FEE3 default case, case 7
loc_3FFB3:
or ecx, edx
add eax, ecx
add eax, 0FF000000h
loc_3FFBC:
movsxd rcx, eax
loc_3FFBF:
xor eax, eax
test rcx, rcx
cmovg rax, rcx
def_3FEE3:
pop rbp; jumptable 000000000003FEE3 default case, case 7
retn
| long long ma_retrieve_auto_increment(unsigned __int8 *a1, int a2)
{
long long result; // rax
long long v3; // rcx
long long v4; // rax
long long v5; // rcx
int v6; // eax
int v7; // ecx
int v8; // edx
int v9; // eax
result = 0LL;
switch ( a2 )
{
case 2:
return *a1;
case 3:
v5 = *(__int16 *)a1;
goto LABEL_19;
case 4:
v5 = *(int *)a1;
goto LABEL_19;
case 5:
v3 = (unsigned int)(int)_mm_andnot_ps(
_mm_cmple_ss((__m128)*(unsigned int *)a1, (__m128)0LL),
(__m128)*(unsigned int *)a1).m128_f32[0];
goto LABEL_12;
case 6:
v3 = (unsigned int)(int)COERCE_DOUBLE(~(unsigned long long)*(_OWORD *)&_mm_cmple_sd(
(__m128d)*(unsigned long long *)a1,
(__m128d)0LL) & *(_QWORD *)a1);
LABEL_12:
v4 = 0LL;
goto LABEL_13;
case 8:
return *(unsigned __int16 *)a1;
case 9:
return *(unsigned int *)a1;
case 10:
v5 = *(_QWORD *)a1;
goto LABEL_19;
case 11:
return *(_QWORD *)a1;
case 12:
v6 = a1[2] << 16;
v7 = a1[1] << 8;
v8 = *a1;
if ( (a1[2] & 0x80u) != 0 )
v9 = (v8 | v7) + v6 - 0x1000000;
else
v9 = v7 | v8 | v6;
v5 = v9;
goto LABEL_19;
case 13:
v3 = *(unsigned __int16 *)a1;
v4 = a1[2] << 16;
LABEL_13:
result = v3 | v4;
break;
case 14:
v5 = (char)*a1;
LABEL_19:
result = 0LL;
if ( v5 > 0 )
result = v5;
break;
default:
return result;
}
return result;
}
| ma_retrieve_auto_increment:
PUSH RBP
MOV RBP,RSP
XOR EAX,EAX
ADD ESI,-0x2
CMP ESI,0xc
JA 0x0013ffc8
LEA RCX,[0x1e9fd8]
MOVSXD RDX,dword ptr [RCX + RSI*0x4]
ADD RDX,RCX
switchD:
JMP RDX
caseD_2:
MOVZX EAX,byte ptr [RDI]
JMP 0x0013ffc8
caseD_d:
MOVZX ECX,word ptr [RDI]
MOVZX EAX,byte ptr [RDI + 0x2]
SHL EAX,0x10
JMP 0x0013ff8b
caseD_4:
MOVSXD RCX,dword ptr [RDI]
JMP 0x0013ffbf
caseD_8:
MOVZX EAX,word ptr [RDI]
JMP 0x0013ffc8
caseD_e:
MOVSX RCX,byte ptr [RDI]
JMP 0x0013ffbf
caseD_3:
MOVSX RCX,word ptr [RDI]
JMP 0x0013ffbf
caseD_9:
MOV EAX,dword ptr [RDI]
JMP 0x0013ffc8
caseD_a:
MOV RCX,qword ptr [RDI]
JMP 0x0013ffbf
caseD_5:
MOVSS XMM0,dword ptr [RDI]
XORPS XMM1,XMM1
MOVAPS XMM2,XMM0
CMPLESS XMM2,XMM1
ANDNPS XMM2,XMM0
CVTTSS2SI RCX,XMM2
MOV RDX,RCX
SAR RDX,0x3f
SUBSS XMM2,dword ptr [0x001e1004]
CVTTSS2SI RAX,XMM2
JMP 0x0013ff88
caseD_6:
MOVSD XMM0,qword ptr [RDI]
XORPD XMM1,XMM1
MOVAPD XMM2,XMM0
CMPLESD XMM2,XMM1
ANDNPD XMM2,XMM0
CVTTSD2SI RCX,XMM2
MOV RDX,RCX
SAR RDX,0x3f
SUBSD XMM2,qword ptr [0x001e9ef0]
CVTTSD2SI RAX,XMM2
LAB_0013ff88:
AND RAX,RDX
LAB_0013ff8b:
OR RAX,RCX
JMP 0x0013ffc8
caseD_c:
MOVZX ESI,byte ptr [RDI + 0x2]
MOV EAX,ESI
SHL EAX,0x10
MOVZX ECX,byte ptr [RDI + 0x1]
SHL ECX,0x8
MOVZX EDX,byte ptr [RDI]
TEST SIL,SIL
JS 0x0013ffb3
OR EAX,EDX
OR EAX,ECX
JMP 0x0013ffbc
caseD_b:
MOV RAX,qword ptr [RDI]
JMP 0x0013ffc8
LAB_0013ffb3:
OR ECX,EDX
ADD EAX,ECX
ADD EAX,0xff000000
LAB_0013ffbc:
MOVSXD RCX,EAX
LAB_0013ffbf:
XOR EAX,EAX
TEST RCX,RCX
CMOVG RAX,RCX
caseD_7:
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
double ma_retrieve_auto_increment(double *param_1,int4 param_2)
{
uint uVar1;
ulong uVar2;
double dVar3;
double dVar4;
ulong uVar5;
float fVar6;
dVar3 = 0.0;
switch(param_2) {
case 2:
dVar3 = (double)(ulong)*(byte *)param_1;
break;
case 3:
dVar4 = (double)(long)*(short *)param_1;
goto LAB_0013ffbf;
case 4:
dVar4 = (double)(long)(int)*(float *)param_1;
goto LAB_0013ffbf;
case 5:
fVar6 = (float)(~-(uint)(*(float *)param_1 <= 0.0) & (uint)*(float *)param_1);
uVar5 = (ulong)fVar6;
uVar2 = (ulong)(fVar6 - _DAT_001e1004);
goto LAB_0013ff88;
case 6:
dVar3 = (double)(~-(ulong)(*param_1 <= 0.0) & (ulong)*param_1);
uVar5 = (ulong)dVar3;
uVar2 = (ulong)(dVar3 - _DAT_001e9ef0);
LAB_0013ff88:
uVar2 = uVar2 & (long)uVar5 >> 0x3f;
LAB_0013ff8b:
dVar3 = (double)(uVar2 | uVar5);
break;
case 8:
dVar3 = (double)(ulong)*(ushort *)param_1;
break;
case 9:
dVar3 = (double)(ulong)(uint)*(float *)param_1;
break;
case 10:
dVar4 = *param_1;
goto LAB_0013ffbf;
case 0xb:
dVar3 = *param_1;
break;
case 0xc:
uVar1 = (uint)*(byte *)((long)param_1 + 2) * 0x10000;
if ((char)*(byte *)((long)param_1 + 2) < '\0') {
uVar1 = (uVar1 + *(ushort *)param_1) - 0x1000000;
}
else {
uVar1 = uVar1 | *(byte *)param_1 | (uint)*(byte *)((long)param_1 + 1) << 8;
}
dVar4 = (double)(long)(int)uVar1;
goto LAB_0013ffbf;
case 0xd:
uVar5 = (ulong)*(ushort *)param_1;
uVar2 = (ulong)*(byte *)((long)param_1 + 2) << 0x10;
goto LAB_0013ff8b;
case 0xe:
dVar4 = (double)(long)*(char *)param_1;
LAB_0013ffbf:
dVar3 = 0.0;
if (0 < (long)dVar4) {
dVar3 = dVar4;
}
}
return dVar3;
}
| |
24,047 | nglog::tools::GetHex(char const*, char const*, unsigned long*) | ng-log[P]ng-log/src/symbolize.cc | static char* GetHex(const char* start, const char* end, uint64_t* hex) {
*hex = 0;
const char* p;
for (p = start; p < end; ++p) {
int ch = *p;
if ((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'F') ||
(ch >= 'a' && ch <= 'f')) {
*hex = (*hex << 4U) |
(ch < 'A' ? static_cast<uint64_t>(ch - '0') : (ch & 0xF) + 9U);
} else { // Encountered the first non-hex character.
break;
}
}
NGLOG_SAFE_ASSERT(p <= end);
return const_cast<char*>(p);
} | O1 | cpp | nglog::tools::GetHex(char const*, char const*, unsigned long*):
pushq %rax
movq $0x0, (%rdx)
cmpq %rsi, %rdi
jae 0x211e1
movabsq $0x3f0000003f, %rax # imm = 0x3F0000003F
movb (%rdi), %cl
leal -0x30(%rcx), %r8d
cmpb $0xa, %r8b
jb 0x211b2
movzbl %cl, %r8d
addl $-0x41, %r8d
cmpl $0x25, %r8d
ja 0x211e1
btq %r8, %rax
jae 0x211e1
movsbl %cl, %r8d
movq (%rdx), %r9
shlq $0x4, %r9
leal -0x30(%r8), %r10d
andl $0xf, %r8d
addl $0x9, %r8d
cmpb $0x41, %cl
movslq %r10d, %rcx
cmovlq %rcx, %r8
orq %r9, %r8
movq %r8, (%rdx)
incq %rdi
cmpq %rsi, %rdi
jne 0x21192
cmpq %rsi, %rdi
ja 0x211eb
movq %rdi, %rax
popq %rcx
retq
callq 0x72b0
| _ZN5nglog5toolsL6GetHexEPKcS2_Pm:
push rax
mov qword ptr [rdx], 0
cmp rdi, rsi
jnb short loc_211E1
mov rax, 3F0000003Fh
loc_21192:
mov cl, [rdi]
lea r8d, [rcx-30h]
cmp r8b, 0Ah
jb short loc_211B2
movzx r8d, cl
add r8d, 0FFFFFFBFh
cmp r8d, 25h ; '%'
ja short loc_211E1
bt rax, r8
jnb short loc_211E1
loc_211B2:
movsx r8d, cl
mov r9, [rdx]
shl r9, 4
lea r10d, [r8-30h]
and r8d, 0Fh
add r8d, 9
cmp cl, 41h ; 'A'
movsxd rcx, r10d
cmovl r8, rcx
or r8, r9
mov [rdx], r8
inc rdi
cmp rdi, rsi
jnz short loc_21192
loc_211E1:
cmp rdi, rsi
ja short loc_211EB
mov rax, rdi
pop rcx
retn
loc_211EB:
call _abort
| nglog::tools * nglog::tools::GetHex(nglog::tools *this, nglog::tools *a2, char *a3, unsigned long long *a4)
{
long long v4; // rax
char v5; // cl
unsigned long long v6; // r8
long long v7; // r8
*(_QWORD *)a3 = 0LL;
if ( this < a2 )
{
v4 = 0x3F0000003FLL;
do
{
v5 = *(_BYTE *)this;
if ( (unsigned __int8)(*(_BYTE *)this - 48) >= 0xAu )
{
v6 = (unsigned int)(unsigned __int8)v5 - 65;
if ( (unsigned int)v6 > 0x25 || !_bittest64(&v4, v6) )
break;
}
v7 = (v5 & 0xFu) + 9;
if ( v5 < 65 )
v7 = v5 - 48;
*(_QWORD *)a3 = (16LL * *(_QWORD *)a3) | v7;
this = (nglog::tools *)((char *)this + 1);
}
while ( this != a2 );
}
if ( this > a2 )
abort(this);
return this;
}
| GetHex:
PUSH RAX
MOV qword ptr [RDX],0x0
CMP RDI,RSI
JNC 0x001211e1
MOV RAX,0x3f0000003f
LAB_00121192:
MOV CL,byte ptr [RDI]
LEA R8D,[RCX + -0x30]
CMP R8B,0xa
JC 0x001211b2
MOVZX R8D,CL
ADD R8D,-0x41
CMP R8D,0x25
JA 0x001211e1
BT RAX,R8
JNC 0x001211e1
LAB_001211b2:
MOVSX R8D,CL
MOV R9,qword ptr [RDX]
SHL R9,0x4
LEA R10D,[R8 + -0x30]
AND R8D,0xf
ADD R8D,0x9
CMP CL,0x41
MOVSXD RCX,R10D
CMOVL R8,RCX
OR R8,R9
MOV qword ptr [RDX],R8
INC RDI
CMP RDI,RSI
JNZ 0x00121192
LAB_001211e1:
CMP RDI,RSI
JA 0x001211eb
MOV RAX,RDI
POP RCX
RET
LAB_001211eb:
CALL 0x001072b0
|
/* nglog::tools::GetHex(char const*, char const*, unsigned long*) */
byte * nglog::tools::GetHex(char *param_1,char *param_2,ulong *param_3)
{
byte bVar1;
ulong uVar2;
*param_3 = 0;
if (param_1 < param_2) {
do {
bVar1 = *param_1;
if ((9 < (byte)(bVar1 - 0x30)) &&
((0x25 < bVar1 - 0x41 || ((0x3f0000003fU >> ((ulong)(bVar1 - 0x41) & 0x3f) & 1) == 0))))
break;
uVar2 = (ulong)(((int)(char)bVar1 & 0xfU) + 9);
if ((char)bVar1 < 'A') {
uVar2 = (long)(int)((int)(char)bVar1 - 0x30);
}
*param_3 = uVar2 | *param_3 << 4;
param_1 = (char *)((byte *)param_1 + 1);
} while (param_1 != param_2);
}
if (param_2 < param_1) {
/* WARNING: Subroutine does not return */
abort();
}
return (byte *)param_1;
}
| |
24,048 | ma_trid_from_key | eloqsql/storage/maria/ma_search.c | TrID _ma_trid_from_key(const MARIA_KEY *key)
{
if (!(key->flag & (SEARCH_PAGE_KEY_HAS_TRANSID |
SEARCH_USER_KEY_HAS_TRANSID)))
return 0;
return transid_get_packed(key->keyinfo->share,
key->data + key->data_length +
key->keyinfo->share->rec_reflength);
} | O0 | c | ma_trid_from_key:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
andl $0x180000, %eax # imm = 0x180000
cmpl $0x0, %eax
jne 0x72537
movq $0x0, -0x8(%rbp)
jmp 0x72570
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
addq %rax, %rsi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movl 0x740(%rax), %eax
addq %rax, %rsi
callq 0x79f20
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| _ma_trid_from_key:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov eax, [rax+18h]
and eax, 180000h
cmp eax, 0
jnz short loc_72537
mov [rbp+var_8], 0
jmp short loc_72570
loc_72537:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rdi, [rax]
mov rax, [rbp+var_10]
mov rsi, [rax]
mov rax, [rbp+var_10]
mov eax, [rax+10h]
add rsi, rax
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rax, [rax]
mov eax, [rax+740h]
add rsi, rax
call transid_get_packed
mov [rbp+var_8], rax
loc_72570:
mov rax, [rbp+var_8]
add rsp, 10h
pop rbp
retn
| long long ma_trid_from_key(long long a1)
{
if ( (*(_DWORD *)(a1 + 24) & 0x180000) != 0 )
return transid_get_packed(
**(_QWORD **)(a1 + 8),
*(unsigned int *)(**(_QWORD **)(a1 + 8) + 1856LL) + *(unsigned int *)(a1 + 16) + *(_QWORD *)a1);
else
return 0LL;
}
| _ma_trid_from_key:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x18]
AND EAX,0x180000
CMP EAX,0x0
JNZ 0x00172537
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00172570
LAB_00172537:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x10]
ADD RSI,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x740]
ADD RSI,RAX
CALL 0x00179f20
MOV qword ptr [RBP + -0x8],RAX
LAB_00172570:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x10
POP RBP
RET
|
int8 _ma_trid_from_key(long *param_1)
{
int8 local_10;
if ((*(uint *)(param_1 + 3) & 0x180000) == 0) {
local_10 = 0;
}
else {
local_10 = transid_get_packed(*(int8 *)param_1[1],
*param_1 + (ulong)*(uint *)(param_1 + 2) +
(ulong)*(uint *)(*(long *)param_1[1] + 0x740));
}
return local_10;
}
| |
24,049 | ma_trid_from_key | eloqsql/storage/maria/ma_search.c | TrID _ma_trid_from_key(const MARIA_KEY *key)
{
if (!(key->flag & (SEARCH_PAGE_KEY_HAS_TRANSID |
SEARCH_USER_KEY_HAS_TRANSID)))
return 0;
return transid_get_packed(key->keyinfo->share,
key->data + key->data_length +
key->keyinfo->share->rec_reflength);
} | O3 | c | ma_trid_from_key:
pushq %rbp
movq %rsp, %rbp
testb $0x18, 0x1a(%rdi)
je 0x5de55
movq 0x8(%rdi), %rax
movq (%rax), %rax
movl 0x10(%rdi), %ecx
addq (%rdi), %rcx
movl 0x740(%rax), %esi
addq %rcx, %rsi
movq %rax, %rdi
popq %rbp
jmp 0x61d01
xorl %eax, %eax
popq %rbp
retq
| _ma_trid_from_key:
push rbp
mov rbp, rsp
test byte ptr [rdi+1Ah], 18h
jz short loc_5DE55
mov rax, [rdi+8]
mov rax, [rax]
mov ecx, [rdi+10h]
add rcx, [rdi]
mov esi, [rax+740h]
add rsi, rcx
mov rdi, rax
pop rbp
jmp transid_get_packed
loc_5DE55:
xor eax, eax
pop rbp
retn
| long long ma_trid_from_key(long long a1)
{
if ( (*(_BYTE *)(a1 + 26) & 0x18) != 0 )
return transid_get_packed(
**(_QWORD **)(a1 + 8),
*(_QWORD *)a1 + *(unsigned int *)(a1 + 16) + *(unsigned int *)(**(_QWORD **)(a1 + 8) + 1856LL));
else
return 0LL;
}
| _ma_trid_from_key:
PUSH RBP
MOV RBP,RSP
TEST byte ptr [RDI + 0x1a],0x18
JZ 0x0015de55
MOV RAX,qword ptr [RDI + 0x8]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RDI + 0x10]
ADD RCX,qword ptr [RDI]
MOV ESI,dword ptr [RAX + 0x740]
ADD RSI,RCX
MOV RDI,RAX
POP RBP
JMP 0x00161d01
LAB_0015de55:
XOR EAX,EAX
POP RBP
RET
|
int8 _ma_trid_from_key(long *param_1)
{
int8 uVar1;
if ((*(byte *)((long)param_1 + 0x1a) & 0x18) != 0) {
uVar1 = transid_get_packed(*(long *)param_1[1],
(ulong)*(uint *)(*(long *)param_1[1] + 0x740) +
(ulong)*(uint *)(param_1 + 2) + *param_1);
return uVar1;
}
return 0;
}
| |
24,050 | mysql_session_track_get_next | eloqsql/libmariadb/libmariadb/mariadb_lib.c | int STDCALL mysql_session_track_get_next(MYSQL *mysql, enum enum_session_state_type type,
const char **data, size_t *length)
{
MYSQL_LEX_STRING *str;
if (!mysql->extension->session_state[type].current)
return 1;
str= (MYSQL_LEX_STRING *)mysql->extension->session_state[type].current->data;
mysql->extension->session_state[type].current= mysql->extension->session_state[type].current->next;
*data= str->str ? str->str : NULL;
*length= str->str ? str->length : 0;
return 0;
} | O3 | c | mysql_session_track_get_next:
pushq %rbp
movq %rsp, %rbp
movq 0x4f0(%rdi), %rax
movl %esi, %esi
shlq $0x4, %rsi
movq 0x10(%rax,%rsi), %rdi
testq %rdi, %rdi
je 0x2210f
addq %rsi, %rax
addq $0x10, %rax
movq 0x8(%rdi), %r8
movq 0x10(%rdi), %rsi
movq %r8, (%rax)
movq (%rsi), %rdi
movq %rdi, (%rdx)
xorl %eax, %eax
testq %rdi, %rdi
je 0x22116
movq 0x8(%rsi), %rdx
jmp 0x22118
movl $0x1, %eax
jmp 0x2211b
xorl %edx, %edx
movq %rdx, (%rcx)
popq %rbp
retq
| mysql_session_track_get_next:
push rbp
mov rbp, rsp
mov rax, [rdi+4F0h]
mov esi, esi
shl rsi, 4
mov rdi, [rax+rsi+10h]
test rdi, rdi
jz short loc_2210F
add rax, rsi
add rax, 10h
mov r8, [rdi+8]
mov rsi, [rdi+10h]
mov [rax], r8
mov rdi, [rsi]
mov [rdx], rdi
xor eax, eax
test rdi, rdi
jz short loc_22116
mov rdx, [rsi+8]
jmp short loc_22118
loc_2210F:
mov eax, 1
jmp short loc_2211B
loc_22116:
xor edx, edx
loc_22118:
mov [rcx], rdx
loc_2211B:
pop rbp
retn
| long long mysql_session_track_get_next(long long a1, unsigned int a2, long long *a3, _QWORD *a4)
{
long long v4; // rax
long long v5; // rsi
long long v6; // rdi
_QWORD *v7; // rax
long long *v8; // rsi
long long v9; // rdi
long long result; // rax
long long v11; // rdx
v4 = *(_QWORD *)(a1 + 1264);
v5 = 16LL * a2;
v6 = *(_QWORD *)(v4 + v5 + 16);
if ( !v6 )
return 1LL;
v7 = (_QWORD *)(v5 + v4 + 16);
v8 = *(long long **)(v6 + 16);
*v7 = *(_QWORD *)(v6 + 8);
v9 = *v8;
*a3 = *v8;
result = 0LL;
if ( v9 )
v11 = v8[1];
else
v11 = 0LL;
*a4 = v11;
return result;
}
| mysql_session_track_get_next:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RDI + 0x4f0]
MOV ESI,ESI
SHL RSI,0x4
MOV RDI,qword ptr [RAX + RSI*0x1 + 0x10]
TEST RDI,RDI
JZ 0x0012210f
ADD RAX,RSI
ADD RAX,0x10
MOV R8,qword ptr [RDI + 0x8]
MOV RSI,qword ptr [RDI + 0x10]
MOV qword ptr [RAX],R8
MOV RDI,qword ptr [RSI]
MOV qword ptr [RDX],RDI
XOR EAX,EAX
TEST RDI,RDI
JZ 0x00122116
MOV RDX,qword ptr [RSI + 0x8]
JMP 0x00122118
LAB_0012210f:
MOV EAX,0x1
JMP 0x0012211b
LAB_00122116:
XOR EDX,EDX
LAB_00122118:
MOV qword ptr [RCX],RDX
LAB_0012211b:
POP RBP
RET
|
int8 mysql_session_track_get_next(long param_1,uint param_2,long *param_3,long *param_4)
{
long *plVar1;
int8 uVar2;
long lVar3;
lVar3 = *(long *)(*(long *)(param_1 + 0x4f0) + 0x10 + (ulong)param_2 * 0x10);
if (lVar3 == 0) {
uVar2 = 1;
}
else {
plVar1 = *(long **)(lVar3 + 0x10);
*(int8 *)(*(long *)(param_1 + 0x4f0) + (ulong)param_2 * 0x10 + 0x10) =
*(int8 *)(lVar3 + 8);
lVar3 = *plVar1;
*param_3 = lVar3;
uVar2 = 0;
if (lVar3 == 0) {
lVar3 = 0;
}
else {
lVar3 = plVar1[1];
}
*param_4 = lVar3;
}
return uVar2;
}
| |
24,051 | ftxui::string_width(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | Andrewchistyakov[P]flashcards_lyc/build_O3/_deps/ftxui-src/src/ftxui/screen/string.cpp | int string_width(const std::string& input) {
int width = 0;
size_t start = 0;
while (start < input.size()) {
uint32_t codepoint = 0;
if (!EatCodePoint(input, start, &start, &codepoint)) {
continue;
}
if (IsControl(codepoint)) {
continue;
}
if (IsCombining(codepoint)) {
continue;
}
if (IsFullWidth(codepoint)) {
width += 2;
continue;
}
width += 1;
}
return width;
} | O3 | cpp | ftxui::string_width(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq $0x0, 0x10(%rsp)
movq 0x8(%rdi), %r13
testq %r13, %r13
je 0x3a949
movq %rdi, %rbx
xorl %esi, %esi
leaq 0x10(%rsp), %r14
leaq 0xc(%rsp), %r15
xorl %ebp, %ebp
movl $0x0, 0xc(%rsp)
movq %rbx, %rdi
movq %r14, %rdx
movq %r15, %rcx
callq 0x3a5b4
testb %al, %al
je 0x3a93d
movl 0xc(%rsp), %r12d
testl %r12d, %r12d
je 0x3a93d
cmpl $0x1f, %r12d
ja 0x3a914
cmpl $0xa, %r12d
je 0x3a91e
jmp 0x3a93d
leal -0x7f(%r12), %eax
cmpl $0x21, %eax
jb 0x3a93d
movl %r12d, %edi
callq 0x3a6d0
testb %al, %al
jne 0x3a93d
movl %r12d, %edi
callq 0x3a728
testb %al, %al
je 0x3a93b
addl $0x2, %ebp
jmp 0x3a93d
incl %ebp
movq 0x10(%rsp), %rsi
cmpq %r13, %rsi
jb 0x3a8e2
jmp 0x3a94b
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZN5ftxui12string_widthERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rsp+48h+var_3C+4], 0
mov r13, [rdi+8]
test r13, r13
jz short loc_3A949
mov rbx, rdi
xor esi, esi; unsigned int
lea r14, [rsp+48h+var_3C+4]
lea r15, [rsp+48h+var_3C]
xor ebp, ebp
loc_3A8E2:
mov dword ptr [rsp+48h+var_3C], 0
mov rdi, rbx
mov rdx, r14
mov rcx, r15
call _ZN5ftxui12EatCodePointERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmPmPj; ftxui::EatCodePoint(std::string const&,ulong,ulong *,uint *)
test al, al
jz short loc_3A93D
mov r12d, dword ptr [rsp+48h+var_3C]
test r12d, r12d
jz short loc_3A93D
cmp r12d, 1Fh
ja short loc_3A914
cmp r12d, 0Ah
jz short loc_3A91E
jmp short loc_3A93D
loc_3A914:
lea eax, [r12-7Fh]
cmp eax, 21h ; '!'
jb short loc_3A93D
loc_3A91E:
mov edi, r12d; this
call _ZN5ftxui11IsCombiningEj; ftxui::IsCombining(uint)
test al, al
jnz short loc_3A93D
mov edi, r12d; this
call _ZN5ftxui11IsFullWidthEj; ftxui::IsFullWidth(uint)
test al, al
jz short loc_3A93B
add ebp, 2
jmp short loc_3A93D
loc_3A93B:
inc ebp
loc_3A93D:
mov rsi, [rsp+48h+var_3C+4]
cmp rsi, r13
jb short loc_3A8E2
jmp short loc_3A94B
loc_3A949:
xor ebp, ebp
loc_3A94B:
mov eax, ebp
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ftxui::string_width(long long *a1)
{
unsigned long long v1; // r13
unsigned long long v2; // rsi
unsigned int v3; // ebp
unsigned int v4; // r12d
unsigned int v6[15]; // [rsp+Ch] [rbp-3Ch] BYREF
*(_QWORD *)&v6[1] = 0LL;
v1 = a1[1];
if ( v1 )
{
v2 = 0LL;
v3 = 0;
while ( 1 )
{
v6[0] = 0;
if ( ftxui::EatCodePoint(a1, v2, &v6[1], (int *)v6) )
{
v4 = v6[0];
if ( v6[0] )
{
if ( v6[0] > 0x1F )
{
if ( v6[0] - 127 >= 0x21 )
{
LABEL_9:
if ( !ftxui::IsCombining((ftxui *)v6[0]) )
{
if ( ftxui::IsFullWidth((ftxui *)v4) )
v3 += 2;
else
++v3;
}
}
}
else if ( v6[0] == 10 )
{
goto LABEL_9;
}
}
}
v2 = *(_QWORD *)&v6[1];
if ( *(_QWORD *)&v6[1] >= v1 )
return v3;
}
}
return 0;
}
| string_width:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],0x0
MOV R13,qword ptr [RDI + 0x8]
TEST R13,R13
JZ 0x0013a949
MOV RBX,RDI
XOR ESI,ESI
LEA R14,[RSP + 0x10]
LEA R15,[RSP + 0xc]
XOR EBP,EBP
LAB_0013a8e2:
MOV dword ptr [RSP + 0xc],0x0
MOV RDI,RBX
MOV RDX,R14
MOV RCX,R15
CALL 0x0013a5b4
TEST AL,AL
JZ 0x0013a93d
MOV R12D,dword ptr [RSP + 0xc]
TEST R12D,R12D
JZ 0x0013a93d
CMP R12D,0x1f
JA 0x0013a914
CMP R12D,0xa
JZ 0x0013a91e
JMP 0x0013a93d
LAB_0013a914:
LEA EAX,[R12 + -0x7f]
CMP EAX,0x21
JC 0x0013a93d
LAB_0013a91e:
MOV EDI,R12D
CALL 0x0013a6d0
TEST AL,AL
JNZ 0x0013a93d
MOV EDI,R12D
CALL 0x0013a728
TEST AL,AL
JZ 0x0013a93b
ADD EBP,0x2
JMP 0x0013a93d
LAB_0013a93b:
INC EBP
LAB_0013a93d:
MOV RSI,qword ptr [RSP + 0x10]
CMP RSI,R13
JC 0x0013a8e2
JMP 0x0013a94b
LAB_0013a949:
XOR EBP,EBP
LAB_0013a94b:
MOV EAX,EBP
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* ftxui::string_width(std::__cxx11::string const&) */
int ftxui::string_width(string *param_1)
{
ulong uVar1;
uint uVar2;
char cVar3;
int iVar4;
uint local_3c;
ulong local_38;
local_38 = 0;
uVar1 = *(ulong *)(param_1 + 8);
if (uVar1 == 0) {
iVar4 = 0;
}
else {
iVar4 = 0;
do {
local_3c = 0;
cVar3 = EatCodePoint(param_1,local_38,&local_38,&local_3c);
uVar2 = local_3c;
if ((cVar3 != '\0') && (local_3c != 0)) {
if (local_3c < 0x20) {
if (local_3c == 10) {
LAB_0013a91e:
cVar3 = IsCombining(local_3c);
if (cVar3 == '\0') {
cVar3 = IsFullWidth(uVar2);
if (cVar3 == '\0') {
iVar4 = iVar4 + 1;
}
else {
iVar4 = iVar4 + 2;
}
}
}
}
else if (0x20 < local_3c - 0x7f) goto LAB_0013a91e;
}
} while (local_38 < uVar1);
}
return iVar4;
}
| |
24,052 | 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);
} | O3 | c | my_wildcmp_8bit_impl:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r12
movq %rcx, %r13
movq %rdx, %rbx
movq %rsi, %r14
movl 0x20(%rbp), %r10d
leaq 0xb54555(%rip), %rax # 0xc0eed8
movq (%rax), %rax
testq %rax, %rax
je 0xba9b6
movq %rbx, -0x30(%rbp)
movq %rdi, %rbx
movl %r10d, %edi
movl %r9d, %r15d
callq *%rax
movl 0x20(%rbp), %r10d
movq %rbx, %rdi
movq -0x30(%rbp), %rbx
movl %r15d, %r9d
movl $0x1, %r15d
testl %eax, %eax
jne 0xbaadc
movl 0x18(%rbp), %r11d
movl 0x10(%rbp), %r8d
movl $0xffffffff, %r15d # imm = 0xFFFFFFFF
cmpq %r12, %r13
je 0xbaad2
movb (%r13), %al
movsbl %al, %ecx
cmpl %r11d, %ecx
sete %sil
cmpl %r8d, %ecx
sete %dl
orb %dl, %sil
je 0xbaa33
testb %dl, %dl
je 0xbaa29
incq %r13
movq %r13, %rax
cmpq %rbx, %r14
je 0xbaadc
movq %r14, %rcx
movq %rax, %r13
cmpq %r12, %rax
jae 0xbaa16
leaq 0x1(%rcx), %r14
movsbl (%r13), %edx
leaq 0x1(%r13), %rax
cmpl %r8d, %edx
je 0xba9f0
incq %rcx
cmpq %r12, %r13
je 0xbaacf
movb (%r13), %al
movq %rcx, %r14
movsbl %al, %eax
cmpl %r11d, %eax
jne 0xba9c4
jmp 0xbaa94
movl $0x1, %r15d
cmpq %rbx, %r14
je 0xbaadc
leaq 0x1(%r13), %rax
cmpq %r12, %rax
cmoveq %r13, %rax
cmpl %r9d, %ecx
cmoveq %rax, %r13
movq 0x58(%rdi), %rax
movzbl (%r13), %ecx
movb (%rax,%rcx), %cl
movzbl (%r14), %edx
cmpb (%rax,%rdx), %cl
jne 0xbaadc
incq %r14
incq %r13
cmpq %r12, %r13
je 0xbaad2
movb (%r13), %al
movsbl %al, %ecx
cmpl %r8d, %ecx
sete %dl
cmpl %r11d, %ecx
je 0xba9e6
cmpl %r8d, %ecx
jne 0xbaa33
jmp 0xba9e6
leaq 0x1(%r13), %rax
xorl %r15d, %r15d
cmpq %r12, %rax
je 0xbaadc
addq $0x2, %r13
movb -0x1(%r13), %al
movsbl %al, %ecx
cmpl %r11d, %ecx
je 0xbaac1
cmpl %r8d, %ecx
jne 0xbaaee
cmpq %rbx, %r14
je 0xbab99
incq %r14
leaq 0x1(%r13), %rax
cmpq %r12, %r13
movq %rax, %r13
jne 0xbaaa4
jmp 0xbaadc
movq %rcx, %r14
xorl %r15d, %r15d
cmpq %rbx, %r14
setne %r15b
movl %r15d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %r15d # imm = 0xFFFFFFFF
cmpq %rbx, %r14
je 0xbaadc
movzbl %al, %ecx
leaq -0x1(%r13), %rdx
cmpl %r9d, %ecx
jne 0xbab11
cmpq %r12, %r13
je 0xbab11
movb (%r13), %al
movq %r13, %rdx
incq %rdx
movq 0x58(%rdi), %rcx
movzbl %al, %eax
movb (%rcx,%rax), %r13b
incl %r10d
cmpq %rbx, %r14
je 0xbaadc
movq 0x58(%rdi), %rax
movzbl (%r14), %ecx
cmpb %r13b, (%rax,%rcx)
je 0xbab3f
incq %r14
cmpq %rbx, %r14
jne 0xbab2b
jmp 0xbaadc
incq %r14
subq $0x8, %rsp
movq %rdi, -0x48(%rbp)
movq %r14, %rsi
movq %rdx, %rcx
movq %rbx, %rdx
movq %rcx, -0x38(%rbp)
movq %r8, %rax
movq %r12, %r8
movl %r9d, -0x30(%rbp)
movq %r10, -0x40(%rbp)
pushq %r10
pushq %r11
pushq %rax
callq 0xba95b
addq $0x20, %rsp
testl %eax, %eax
jle 0xbaba4
cmpq %rbx, %r14
movl -0x30(%rbp), %r9d
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %r10
movl 0x18(%rbp), %r11d
movl 0x10(%rbp), %r8d
movq -0x38(%rbp), %rdx
jne 0xbab22
jmp 0xbaadc
movl $0xffffffff, %r15d # imm = 0xFFFFFFFF
jmp 0xbaadc
movl %eax, %r15d
jmp 0xbaadc
| my_wildcmp_8bit_impl:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r12, r8
mov r13, rcx
mov rbx, rdx
mov r14, rsi
mov r10d, [rbp+arg_10]
lea rax, my_string_stack_guard
mov rax, [rax]
test rax, rax
jz short loc_BA9B6
mov [rbp+var_30], rbx
mov rbx, rdi
mov edi, r10d
mov r15d, r9d
call rax
mov r10d, [rbp+arg_10]
mov rdi, rbx
mov rbx, [rbp+var_30]
mov r9d, r15d
mov r15d, 1
test eax, eax
jnz loc_BAADC
loc_BA9B6:
mov r11d, [rbp+arg_8]
mov r8d, [rbp+arg_0]
mov r15d, 0FFFFFFFFh
loc_BA9C4:
cmp r13, r12
jz loc_BAAD2
mov al, [r13+0]
movsx ecx, al
cmp ecx, r11d
setz sil
cmp ecx, r8d
setz dl
or sil, dl
jz short loc_BAA33
loc_BA9E6:
test dl, dl
jz short loc_BAA29
inc r13
mov rax, r13
loc_BA9F0:
cmp r14, rbx
jz loc_BAADC
mov rcx, r14
mov r13, rax
cmp rax, r12
jnb short loc_BAA16
lea r14, [rcx+1]
movsx edx, byte ptr [r13+0]
lea rax, [r13+1]
cmp edx, r8d
jz short loc_BA9F0
loc_BAA16:
inc rcx
cmp r13, r12
jz loc_BAACF
mov al, [r13+0]
mov r14, rcx
loc_BAA29:
movsx eax, al
cmp eax, r11d
jnz short loc_BA9C4
jmp short loc_BAA94
loc_BAA33:
mov r15d, 1
cmp r14, rbx
jz loc_BAADC
lea rax, [r13+1]
cmp rax, r12
cmovz rax, r13
cmp ecx, r9d
cmovz r13, rax
mov rax, [rdi+58h]
movzx ecx, byte ptr [r13+0]
mov cl, [rax+rcx]
movzx edx, byte ptr [r14]
cmp cl, [rax+rdx]
jnz short loc_BAADC
inc r14
inc r13
cmp r13, r12
jz short loc_BAAD2
mov al, [r13+0]
movsx ecx, al
cmp ecx, r8d
setz dl
cmp ecx, r11d
jz loc_BA9E6
cmp ecx, r8d
jnz short loc_BAA33
jmp loc_BA9E6
loc_BAA94:
lea rax, [r13+1]
xor r15d, r15d
cmp rax, r12
jz short loc_BAADC
add r13, 2
loc_BAAA4:
mov al, [r13-1]
movsx ecx, al
cmp ecx, r11d
jz short loc_BAAC1
cmp ecx, r8d
jnz short loc_BAAEE
cmp r14, rbx
jz loc_BAB99
inc r14
loc_BAAC1:
lea rax, [r13+1]
cmp r13, r12
mov r13, rax
jnz short loc_BAAA4
jmp short loc_BAADC
loc_BAACF:
mov r14, rcx
loc_BAAD2:
xor r15d, r15d
cmp r14, rbx
setnz r15b
loc_BAADC:
mov eax, r15d
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_BAAEE:
mov r15d, 0FFFFFFFFh
cmp r14, rbx
jz short loc_BAADC
movzx ecx, al
lea rdx, [r13-1]
cmp ecx, r9d
jnz short loc_BAB11
cmp r13, r12
jz short loc_BAB11
mov al, [r13+0]
mov rdx, r13
loc_BAB11:
inc rdx
mov rcx, [rdi+58h]
movzx eax, al
mov r13b, [rcx+rax]
inc r10d
loc_BAB22:
cmp r14, rbx
jz short loc_BAADC
mov rax, [rdi+58h]
loc_BAB2B:
movzx ecx, byte ptr [r14]
cmp [rax+rcx], r13b
jz short loc_BAB3F
inc r14
cmp r14, rbx
jnz short loc_BAB2B
jmp short loc_BAADC
loc_BAB3F:
inc r14
sub rsp, 8
mov [rbp+var_48], rdi
mov rsi, r14
mov rcx, rdx
mov rdx, rbx
mov [rbp+var_38], rcx
mov rax, r8
mov r8, r12
mov dword ptr [rbp+var_30], r9d
mov [rbp+var_40], r10
push r10
push r11
push rax
call my_wildcmp_8bit_impl
add rsp, 20h
test eax, eax
jle short loc_BABA4
cmp r14, rbx
mov r9d, dword ptr [rbp+var_30]
mov rdi, [rbp+var_48]
mov r10, [rbp+var_40]
mov r11d, [rbp+arg_8]
mov r8d, [rbp+arg_0]
mov rdx, [rbp+var_38]
jnz short loc_BAB22
jmp loc_BAADC
loc_BAB99:
mov r15d, 0FFFFFFFFh
jmp loc_BAADC
loc_BABA4:
mov r15d, eax
jmp loc_BAADC
| 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)
{
unsigned __int8 *v11; // rbx
unsigned int v13; // r10d
int v14; // r15d
int v15; // eax
unsigned int v16; // r15d
int v17; // r11d
int v18; // r8d
signed __int8 v19; // al
int v20; // ecx
bool v21; // dl
char *v22; // rax
unsigned __int8 *v23; // rcx
int v24; // edx
unsigned __int8 *v25; // rcx
char *v26; // rax
char *v27; // r13
unsigned __int8 v28; // al
char *v31; // rdx
_BYTE *v32; // rdx
char v33; // r13
long long v34; // r10
int v35; // eax
long long v36; // [rsp+10h] [rbp-40h]
_BYTE *v37; // [rsp+18h] [rbp-38h]
int v39; // [rsp+20h] [rbp-30h]
v11 = a3;
v13 = a9;
if ( my_string_stack_guard )
{
v14 = a6;
v15 = my_string_stack_guard(a9);
v13 = a9;
v11 = a3;
a6 = v14;
v16 = 1;
if ( v15 )
return v16;
}
v17 = a8;
v18 = a7;
v16 = -1;
do
{
if ( a4 == a5 )
return a2 != v11;
v19 = *a4;
v20 = *a4;
v21 = v20 == a7;
if ( v20 != a7 && v20 != a8 )
{
do
{
v16 = 1;
if ( a2 == v11 )
return v16;
v26 = a4 + 1;
if ( a4 + 1 == a5 )
v26 = a4;
if ( v20 == a6 )
a4 = v26;
if ( *(_BYTE *)(*(_QWORD *)(a1 + 88) + (unsigned __int8)*a4) != *(_BYTE *)(*(_QWORD *)(a1 + 88) + *a2) )
return v16;
++a2;
if ( ++a4 == a5 )
return a2 != v11;
v19 = *a4;
v20 = *a4;
v21 = v20 == a7;
}
while ( v20 != a8 && v20 != a7 );
}
if ( v21 )
{
v22 = a4 + 1;
do
{
if ( a2 == v11 )
return v16;
v23 = a2;
a4 = v22;
if ( v22 >= a5 )
break;
++a2;
v24 = *v22++;
}
while ( v24 == a7 );
v25 = v23 + 1;
if ( a4 == a5 )
{
a2 = v25;
return a2 != v11;
}
v19 = *a4;
a2 = v25;
}
}
while ( v19 != a8 );
v16 = 0;
if ( a4 + 1 == a5 )
return v16;
v27 = a4 + 2;
while ( 1 )
{
v28 = *(v27 - 1);
if ( (char)v28 == a8 )
goto LABEL_31;
if ( (char)v28 != a7 )
break;
if ( a2 == v11 )
return (unsigned int)-1;
++a2;
LABEL_31:
if ( v27++ == a5 )
return v16;
}
v16 = -1;
if ( a2 != v11 )
{
v31 = v27 - 1;
if ( v28 == a6 && v27 != a5 )
{
v28 = *v27;
v31 = v27;
}
v32 = v31 + 1;
v33 = *(_BYTE *)(*(_QWORD *)(a1 + 88) + v28);
v34 = v13 + 1;
while ( a2 != v11 )
{
while ( *(_BYTE *)(*(_QWORD *)(a1 + 88) + *a2) != v33 )
{
if ( ++a2 == v11 )
return v16;
}
++a2;
v37 = v32;
v39 = a6;
v36 = v34;
v35 = my_wildcmp_8bit_impl(a1, (_DWORD)a2, (_DWORD)v11, (_DWORD)v32, (_DWORD)a5, a6, v18, v17, v34);
if ( v35 <= 0 )
return (unsigned int)v35;
a6 = v39;
v34 = v36;
v17 = a8;
v18 = a7;
v32 = v37;
if ( a2 == v11 )
return v16;
}
}
return v16;
}
| my_wildcmp_8bit_impl:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R12,R8
MOV R13,RCX
MOV RBX,RDX
MOV R14,RSI
MOV R10D,dword ptr [RBP + 0x20]
LEA RAX,[0xd0eed8]
MOV RAX,qword ptr [RAX]
TEST RAX,RAX
JZ 0x001ba9b6
MOV qword ptr [RBP + -0x30],RBX
MOV RBX,RDI
MOV EDI,R10D
MOV R15D,R9D
CALL RAX
MOV R10D,dword ptr [RBP + 0x20]
MOV RDI,RBX
MOV RBX,qword ptr [RBP + -0x30]
MOV R9D,R15D
MOV R15D,0x1
TEST EAX,EAX
JNZ 0x001baadc
LAB_001ba9b6:
MOV R11D,dword ptr [RBP + 0x18]
MOV R8D,dword ptr [RBP + 0x10]
MOV R15D,0xffffffff
LAB_001ba9c4:
CMP R13,R12
JZ 0x001baad2
MOV AL,byte ptr [R13]
MOVSX ECX,AL
CMP ECX,R11D
SETZ SIL
CMP ECX,R8D
SETZ DL
OR SIL,DL
JZ 0x001baa33
LAB_001ba9e6:
TEST DL,DL
JZ 0x001baa29
INC R13
MOV RAX,R13
LAB_001ba9f0:
CMP R14,RBX
JZ 0x001baadc
MOV RCX,R14
MOV R13,RAX
CMP RAX,R12
JNC 0x001baa16
LEA R14,[RCX + 0x1]
MOVSX EDX,byte ptr [R13]
LEA RAX,[R13 + 0x1]
CMP EDX,R8D
JZ 0x001ba9f0
LAB_001baa16:
INC RCX
CMP R13,R12
JZ 0x001baacf
MOV AL,byte ptr [R13]
MOV R14,RCX
LAB_001baa29:
MOVSX EAX,AL
CMP EAX,R11D
JNZ 0x001ba9c4
JMP 0x001baa94
LAB_001baa33:
MOV R15D,0x1
CMP R14,RBX
JZ 0x001baadc
LEA RAX,[R13 + 0x1]
CMP RAX,R12
CMOVZ RAX,R13
CMP ECX,R9D
CMOVZ R13,RAX
MOV RAX,qword ptr [RDI + 0x58]
MOVZX ECX,byte ptr [R13]
MOV CL,byte ptr [RAX + RCX*0x1]
MOVZX EDX,byte ptr [R14]
CMP CL,byte ptr [RAX + RDX*0x1]
JNZ 0x001baadc
INC R14
INC R13
CMP R13,R12
JZ 0x001baad2
MOV AL,byte ptr [R13]
MOVSX ECX,AL
CMP ECX,R8D
SETZ DL
CMP ECX,R11D
JZ 0x001ba9e6
CMP ECX,R8D
JNZ 0x001baa33
JMP 0x001ba9e6
LAB_001baa94:
LEA RAX,[R13 + 0x1]
XOR R15D,R15D
CMP RAX,R12
JZ 0x001baadc
ADD R13,0x2
LAB_001baaa4:
MOV AL,byte ptr [R13 + -0x1]
MOVSX ECX,AL
CMP ECX,R11D
JZ 0x001baac1
CMP ECX,R8D
JNZ 0x001baaee
CMP R14,RBX
JZ 0x001bab99
INC R14
LAB_001baac1:
LEA RAX,[R13 + 0x1]
CMP R13,R12
MOV R13,RAX
JNZ 0x001baaa4
JMP 0x001baadc
LAB_001baacf:
MOV R14,RCX
LAB_001baad2:
XOR R15D,R15D
CMP R14,RBX
SETNZ R15B
LAB_001baadc:
MOV EAX,R15D
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001baaee:
MOV R15D,0xffffffff
CMP R14,RBX
JZ 0x001baadc
MOVZX ECX,AL
LEA RDX,[R13 + -0x1]
CMP ECX,R9D
JNZ 0x001bab11
CMP R13,R12
JZ 0x001bab11
MOV AL,byte ptr [R13]
MOV RDX,R13
LAB_001bab11:
INC RDX
MOV RCX,qword ptr [RDI + 0x58]
MOVZX EAX,AL
MOV R13B,byte ptr [RCX + RAX*0x1]
INC R10D
LAB_001bab22:
CMP R14,RBX
JZ 0x001baadc
MOV RAX,qword ptr [RDI + 0x58]
LAB_001bab2b:
MOVZX ECX,byte ptr [R14]
CMP byte ptr [RAX + RCX*0x1],R13B
JZ 0x001bab3f
INC R14
CMP R14,RBX
JNZ 0x001bab2b
JMP 0x001baadc
LAB_001bab3f:
INC R14
SUB RSP,0x8
MOV qword ptr [RBP + -0x48],RDI
MOV RSI,R14
MOV RCX,RDX
MOV RDX,RBX
MOV qword ptr [RBP + -0x38],RCX
MOV RAX,R8
MOV R8,R12
MOV dword ptr [RBP + -0x30],R9D
MOV qword ptr [RBP + -0x40],R10
PUSH R10
PUSH R11
PUSH RAX
CALL 0x001ba95b
ADD RSP,0x20
TEST EAX,EAX
JLE 0x001baba4
CMP R14,RBX
MOV R9D,dword ptr [RBP + -0x30]
MOV RDI,qword ptr [RBP + -0x48]
MOV R10,qword ptr [RBP + -0x40]
MOV R11D,dword ptr [RBP + 0x18]
MOV R8D,dword ptr [RBP + 0x10]
MOV RDX,qword ptr [RBP + -0x38]
JNZ 0x001bab22
JMP 0x001baadc
LAB_001bab99:
MOV R15D,0xffffffff
JMP 0x001baadc
LAB_001baba4:
MOV R15D,EAX
JMP 0x001baadc
|
uint my_wildcmp_8bit_impl
(long param_1,byte *param_2,byte *param_3,byte *param_4,byte *param_5,ulong param_6,
uint param_7,uint param_8,int param_9)
{
char cVar1;
byte bVar2;
int iVar3;
uint uVar4;
byte *pbVar5;
uint uVar6;
byte *pbVar7;
bool bVar8;
if (my_string_stack_guard != (code *)0x0) {
param_6 = param_6 & 0xffffffff;
iVar3 = (*my_string_stack_guard)(param_9);
if (iVar3 != 0) {
return 1;
}
}
uVar4 = 0xffffffff;
while (param_4 != param_5) {
bVar2 = *param_4;
uVar6 = (uint)(char)bVar2;
bVar8 = uVar6 == param_7;
if (uVar6 != param_8 && !bVar8) {
do {
uVar4 = 1;
if (param_2 == param_3) {
return 1;
}
pbVar5 = param_4 + 1;
if (param_4 + 1 == param_5) {
pbVar5 = param_4;
}
if (uVar6 == (uint)param_6) {
param_4 = pbVar5;
}
if (*(char *)(*(long *)(param_1 + 0x58) + (ulong)*param_4) !=
*(char *)(*(long *)(param_1 + 0x58) + (ulong)*param_2)) {
return 1;
}
param_2 = param_2 + 1;
param_4 = param_4 + 1;
if (param_4 == param_5) goto LAB_001baad2;
bVar2 = *param_4;
uVar6 = (uint)(char)bVar2;
bVar8 = uVar6 == param_7;
} while ((uVar6 != param_8) && (uVar6 != param_7));
}
if (bVar8) {
do {
pbVar5 = param_2;
param_4 = param_4 + 1;
if (pbVar5 == param_3) {
return uVar4;
}
} while ((param_4 < param_5) && (param_2 = pbVar5 + 1, (int)(char)*param_4 == param_7));
param_2 = pbVar5 + 1;
if (param_4 == param_5) break;
bVar2 = *param_4;
}
if ((int)(char)bVar2 == param_8) {
if (param_4 + 1 != param_5) {
pbVar5 = param_4 + 2;
do {
bVar2 = pbVar5[-1];
if ((int)(char)bVar2 != param_8) {
if ((int)(char)bVar2 != param_7) {
if (param_2 == param_3) {
return 0xffffffff;
}
pbVar7 = pbVar5 + -1;
if (((uint)bVar2 == (uint)param_6) && (pbVar5 != param_5)) {
bVar2 = *pbVar5;
pbVar7 = pbVar5;
}
cVar1 = *(char *)(*(long *)(param_1 + 0x58) + (ulong)bVar2);
while( true ) {
if (param_2 == param_3) {
return 0xffffffff;
}
while (*(char *)(*(long *)(param_1 + 0x58) + (ulong)*param_2) != cVar1) {
param_2 = param_2 + 1;
if (param_2 == param_3) {
return 0xffffffff;
}
}
param_2 = param_2 + 1;
uVar4 = my_wildcmp_8bit_impl
(param_1,param_2,param_3,pbVar7 + 1,param_5,param_6,param_7,
param_8,param_9 + 1);
if ((int)uVar4 < 1) break;
param_6 = param_6 & 0xffffffff;
if (param_2 == param_3) {
return 0xffffffff;
}
}
return uVar4;
}
if (param_2 == param_3) {
return 0xffffffff;
}
param_2 = param_2 + 1;
}
bVar8 = pbVar5 != param_5;
pbVar5 = pbVar5 + 1;
} while (bVar8);
}
return 0;
}
}
LAB_001baad2:
return (uint)(param_2 != param_3);
}
| |
24,053 | psi_mutex_lock | eloqsql/mysys/my_thr_init.c | ATTRIBUTE_COLD int psi_mutex_lock(mysql_mutex_t *that,
const char *file, uint line)
{
PSI_mutex_locker_state state;
PSI_mutex_locker *locker= PSI_MUTEX_CALL(start_mutex_wait)
(&state, that->m_psi, PSI_MUTEX_LOCK, file, line);
# ifdef SAFE_MUTEX
int result= safe_mutex_lock(&that->m_mutex, FALSE, file, line);
# else
int result= pthread_mutex_lock(&that->m_mutex);
# endif
if (locker)
PSI_MUTEX_CALL(end_mutex_wait)(locker, result);
return result;
} | O0 | c | psi_mutex_lock:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
leaq 0x1c964e(%rip), %rax # 0x2c1158
movq (%rax), %rax
movq 0x190(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x40(%rcx), %rsi
movq -0x10(%rbp), %rcx
movl -0x14(%rbp), %r8d
leaq -0x48(%rbp), %rdi
xorl %edx, %edx
callq *%rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
callq 0x2a220
movl %eax, -0x54(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0xf7b5d
leaq 0x1c960e(%rip), %rax # 0x2c1158
movq (%rax), %rax
movq 0x198(%rax), %rax
movq -0x50(%rbp), %rdi
movl -0x54(%rbp), %esi
callq *%rax
movl -0x54(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| psi_mutex_lock:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+190h]
mov rcx, [rbp+var_8]
mov rsi, [rcx+40h]
mov rcx, [rbp+var_10]
mov r8d, [rbp+var_14]
lea rdi, [rbp+var_48]
xor edx, edx
call rax
mov [rbp+var_50], rax
mov rdi, [rbp+var_8]
call _pthread_mutex_lock
mov [rbp+var_54], eax
cmp [rbp+var_50], 0
jz short loc_F7B5D
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+198h]
mov rdi, [rbp+var_50]
mov esi, [rbp+var_54]
call rax
loc_F7B5D:
mov eax, [rbp+var_54]
add rsp, 60h
pop rbp
retn
| long long psi_mutex_lock(long long a1, long long a2, unsigned int a3)
{
unsigned int v4; // [rsp+Ch] [rbp-54h]
long long v5; // [rsp+10h] [rbp-50h]
_BYTE v6[52]; // [rsp+18h] [rbp-48h] BYREF
unsigned int v7; // [rsp+4Ch] [rbp-14h]
long long v8; // [rsp+50h] [rbp-10h]
long long v9; // [rsp+58h] [rbp-8h]
v9 = a1;
v8 = a2;
v7 = a3;
v5 = ((long long ( *)(_BYTE *, _QWORD, _QWORD, long long, _QWORD))PSI_server[50])(
v6,
*(_QWORD *)(a1 + 64),
0LL,
a2,
a3);
v4 = pthread_mutex_lock(v9);
if ( v5 )
((void ( *)(long long, _QWORD))PSI_server[51])(v5, v4);
return v4;
}
| psi_mutex_lock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
LEA RAX,[0x3c1158]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x190]
MOV RCX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RCX + 0x40]
MOV RCX,qword ptr [RBP + -0x10]
MOV R8D,dword ptr [RBP + -0x14]
LEA RDI,[RBP + -0x48]
XOR EDX,EDX
CALL RAX
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0012a220
MOV dword ptr [RBP + -0x54],EAX
CMP qword ptr [RBP + -0x50],0x0
JZ 0x001f7b5d
LEA RAX,[0x3c1158]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x198]
MOV RDI,qword ptr [RBP + -0x50]
MOV ESI,dword ptr [RBP + -0x54]
CALL RAX
LAB_001f7b5d:
MOV EAX,dword ptr [RBP + -0x54]
ADD RSP,0x60
POP RBP
RET
|
int psi_mutex_lock(pthread_mutex_t *param_1,int8 param_2,int4 param_3)
{
int iVar1;
long lVar2;
int1 local_50 [52];
int4 local_1c;
int8 local_18;
pthread_mutex_t *local_10;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
lVar2 = (**(code **)(PSI_server + 400))
(local_50,*(int8 *)((long)param_1 + 0x40),0,param_2,param_3);
iVar1 = pthread_mutex_lock(local_10);
if (lVar2 != 0) {
(**(code **)(PSI_server + 0x198))(lVar2,iVar1);
}
return iVar1;
}
| |
24,054 | postprocess_cpu_params(cpu_params&, cpu_params const*) | monkey531[P]llama/common/common.cpp | void postprocess_cpu_params(cpu_params& cpuparams, const cpu_params* role_model) {
int32_t n_set = 0;
if (cpuparams.n_threads < 0) {
// Assuming everything about cpuparams is invalid
if (role_model != nullptr) {
cpuparams = *role_model;
} else {
cpuparams.n_threads = cpu_get_num_math();
}
}
for (int32_t i = 0; i < GGML_MAX_N_THREADS; i++) {
if (cpuparams.cpumask[i]) {
n_set++;
}
}
if (n_set && n_set < cpuparams.n_threads) {
// Not enough set bits, may experience performance issues.
LOG_WRN("Not enough set bits in CPU mask (%d) to satisfy requested thread count: %d\n", n_set, cpuparams.n_threads);
}
} | O1 | cpp | postprocess_cpu_params(cpu_params&, cpu_params const*):
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, (%rdi)
jns 0x7ee0a
testq %rsi, %rsi
je 0x7ee03
movl $0x214, %edx # imm = 0x214
movq %rbx, %rdi
callq 0x1b750
jmp 0x7ee0a
callq 0x7ec14
movl %eax, (%rbx)
pxor %xmm1, %xmm1
movl $0x4, %eax
pxor %xmm0, %xmm0
movd (%rbx,%rax), %xmm2
punpcklbw %xmm1, %xmm2 # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1],xmm2[2],xmm1[2],xmm2[3],xmm1[3],xmm2[4],xmm1[4],xmm2[5],xmm1[5],xmm2[6],xmm1[6],xmm2[7],xmm1[7]
punpcklwd %xmm1, %xmm2 # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1],xmm2[2],xmm1[2],xmm2[3],xmm1[3]
paddd %xmm2, %xmm0
addq $0x4, %rax
cmpq $0x204, %rax # imm = 0x204
jne 0x7ee17
pshufd $0xee, %xmm0, %xmm1 # xmm1 = xmm0[2,3,2,3]
paddd %xmm0, %xmm1
pshufd $0x55, %xmm1, %xmm0 # xmm0 = xmm1[1,1,1,1]
paddd %xmm1, %xmm0
movd %xmm0, %ebp
testl %ebp, %ebp
je 0x7ee84
cmpl (%rbx), %ebp
jge 0x7ee84
leaq 0xbf62f(%rip), %rax # 0x13e488
cmpl $0x0, (%rax)
js 0x7ee84
callq 0xda46f
movl (%rbx), %r8d
leaq 0x7fdda(%rip), %rdx # 0xfec47
movq %rax, %rdi
movl $0x3, %esi
movl %ebp, %ecx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xda50a
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| _Z22postprocess_cpu_paramsR10cpu_paramsPKS_:
push rbp
push rbx
push rax
mov rbx, rdi
cmp dword ptr [rdi], 0
jns short loc_7EE0A
test rsi, rsi
jz short loc_7EE03
mov edx, 214h
mov rdi, rbx
call _memcpy
jmp short loc_7EE0A
loc_7EE03:
call _Z16cpu_get_num_mathv; cpu_get_num_math(void)
mov [rbx], eax
loc_7EE0A:
pxor xmm1, xmm1
mov eax, 4
pxor xmm0, xmm0
loc_7EE17:
movd xmm2, dword ptr [rbx+rax]
punpcklbw xmm2, xmm1
punpcklwd xmm2, xmm1
paddd xmm0, xmm2
add rax, 4
cmp rax, 204h
jnz short loc_7EE17
pshufd xmm1, xmm0, 0EEh
paddd xmm1, xmm0
pshufd xmm0, xmm1, 55h ; 'U'
paddd xmm0, xmm1
movd ebp, xmm0
test ebp, ebp
jz short loc_7EE84
cmp ebp, [rbx]
jge short loc_7EE84
lea rax, common_log_verbosity_thold
cmp dword ptr [rax], 0
js short loc_7EE84
call _Z15common_log_mainv; common_log_main(void)
mov r8d, [rbx]
lea rdx, aNotEnoughSetBi; "Not enough set bits in CPU mask (%d) to"...
mov rdi, rax
mov esi, 3
mov ecx, ebp
xor eax, eax
add rsp, 8
pop rbx
pop rbp
jmp _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...)
loc_7EE84:
add rsp, 8
pop rbx
pop rbp
retn
| int * postprocess_cpu_params(int *a1, long long a2)
{
int *result; // rax
__m128i v3; // xmm0
__m128i v4; // xmm1
int v5; // ebp
int v6; // eax
int v7; // r9d
if ( *a1 < 0 )
{
if ( a2 )
memcpy(a1, a2, 532LL);
else
*a1 = cpu_get_num_math();
}
result = (_DWORD *)&byte_4;
v3 = 0LL;
do
v3 = _mm_add_epi32(
v3,
_mm_unpacklo_epi16(
_mm_unpacklo_epi8(_mm_cvtsi32_si128(*(int *)((char *)result++ + (_QWORD)a1)), (__m128i)0LL),
(__m128i)0LL));
while ( result != &dword_204 );
v4 = _mm_add_epi32(_mm_shuffle_epi32(v3, 238), v3);
v5 = _mm_cvtsi128_si32(_mm_add_epi32(_mm_shuffle_epi32(v4, 85), v4));
if ( v5 && v5 < *a1 )
{
result = (int *)&common_log_verbosity_thold;
if ( common_log_verbosity_thold >= 0 )
{
v6 = common_log_main();
return (int *)common_log_add(
v6,
3,
(unsigned int)"Not enough set bits in CPU mask (%d) to satisfy requested thread count: %d\n",
v5,
*a1,
v7);
}
}
return result;
}
| postprocess_cpu_params:
PUSH RBP
PUSH RBX
PUSH RAX
MOV RBX,RDI
CMP dword ptr [RDI],0x0
JNS 0x0017ee0a
TEST RSI,RSI
JZ 0x0017ee03
MOV EDX,0x214
MOV RDI,RBX
CALL 0x0011b750
JMP 0x0017ee0a
LAB_0017ee03:
CALL 0x0017ec14
MOV dword ptr [RBX],EAX
LAB_0017ee0a:
PXOR XMM1,XMM1
MOV EAX,0x4
PXOR XMM0,XMM0
LAB_0017ee17:
MOVD XMM2,dword ptr [RBX + RAX*0x1]
PUNPCKLBW XMM2,XMM1
PUNPCKLWD XMM2,XMM1
PADDD XMM0,XMM2
ADD RAX,0x4
CMP RAX,0x204
JNZ 0x0017ee17
PSHUFD XMM1,XMM0,0xee
PADDD XMM1,XMM0
PSHUFD XMM0,XMM1,0x55
PADDD XMM0,XMM1
MOVD EBP,XMM0
TEST EBP,EBP
JZ 0x0017ee84
CMP EBP,dword ptr [RBX]
JGE 0x0017ee84
LEA RAX,[0x23e488]
CMP dword ptr [RAX],0x0
JS 0x0017ee84
CALL 0x001da46f
MOV R8D,dword ptr [RBX]
LEA RDX,[0x1fec47]
MOV RDI,RAX
MOV ESI,0x3
MOV ECX,EBP
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x001da50a
LAB_0017ee84:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
/* postprocess_cpu_params(cpu_params&, cpu_params const*) */
void postprocess_cpu_params(cpu_params *param_1,cpu_params *param_2)
{
int1 auVar1 [13];
int1 auVar2 [13];
int1 auVar3 [13];
ulong uVar4;
int1 auVar5 [13];
int4 uVar6;
long lVar7;
int8 uVar8;
int iVar9;
int iVar10;
int iVar11;
int iVar12;
if (*(int *)param_1 < 0) {
if (param_2 == (cpu_params *)0x0) {
uVar6 = cpu_get_num_math();
*(int4 *)param_1 = uVar6;
}
else {
memcpy(param_1,param_2,0x214);
}
}
lVar7 = 4;
iVar9 = 0;
iVar10 = 0;
iVar11 = 0;
iVar12 = 0;
do {
uVar6 = *(int4 *)(param_1 + lVar7);
uVar4 = (ulong)(ushort)uVar6 & 0xffffffffffff00ff;
auVar1._8_4_ = 0;
auVar1._0_8_ = uVar4;
auVar1[0xc] = (char)((uint)uVar6 >> 0x18);
auVar2[8] = (char)((uint)uVar6 >> 0x10);
auVar2._0_8_ = uVar4;
auVar2[9] = 0;
auVar2._10_3_ = auVar1._10_3_;
auVar5._5_8_ = 0;
auVar5._0_5_ = auVar2._8_5_;
auVar3[4] = (char)((uint)uVar6 >> 8);
auVar3._0_4_ = (int)uVar4;
auVar3[5] = 0;
auVar3._6_7_ = SUB137(auVar5 << 0x40,6);
iVar9 = iVar9 + (int)uVar4;
iVar10 = iVar10 + auVar3._4_4_;
iVar11 = iVar11 + auVar2._8_4_;
iVar12 = iVar12 + (uint)(uint3)(auVar1._10_3_ >> 0x10);
lVar7 = lVar7 + 4;
} while (lVar7 != 0x204);
iVar9 = iVar12 + iVar10 + iVar11 + iVar9;
if (((iVar9 != 0) && (iVar9 < *(int *)param_1)) && (-1 < common_log_verbosity_thold)) {
uVar8 = common_log_main();
common_log_add(uVar8,3,
"Not enough set bits in CPU mask (%d) to satisfy requested thread count: %d\n",
iVar9,*(int4 *)param_1);
return;
}
return;
}
| |
24,055 | translog_first_file | eloqsql/storage/maria/ma_loghandler.c | static uint32 translog_first_file(TRANSLOG_ADDRESS horizon, int is_protected)
{
uint min_file= 0, max_file;
DBUG_ENTER("translog_first_file");
if (!is_protected)
mysql_mutex_lock(&log_descriptor.purger_lock);
if (log_descriptor.min_file_number &&
translog_is_file(log_descriptor.min_file_number))
{
DBUG_PRINT("info", ("cached %lu",
(ulong) log_descriptor.min_file_number));
if (!is_protected)
mysql_mutex_unlock(&log_descriptor.purger_lock);
DBUG_RETURN(log_descriptor.min_file_number);
}
max_file= LSN_FILE_NO(horizon);
/* binary search for last file */
while (min_file != max_file && min_file != (max_file - 1))
{
uint test= (min_file + max_file) / 2;
DBUG_PRINT("info", ("min_file: %u test: %u max_file: %u",
min_file, test, max_file));
if (test == max_file)
test--;
if (translog_is_file(test))
max_file= test;
else
min_file= test;
}
log_descriptor.min_file_number= max_file;
if (!is_protected)
mysql_mutex_unlock(&log_descriptor.purger_lock);
DBUG_PRINT("info", ("first file :%lu", (ulong) max_file));
DBUG_ASSERT(max_file >= 1);
DBUG_RETURN(max_file);
} | O3 | c | translog_first_file:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
testl %esi, %esi
jne 0x4a40b
cmpq $0x0, 0xbb5287(%rip) # 0xbff680
jne 0x4a4b7
leaq 0xbb523a(%rip), %rdi # 0xbff640
callq 0x29220
movl 0xbb522b(%rip), %edi # 0xbff63c
testl %edi, %edi
je 0x4a447
callq 0x4d7db
testb %al, %al
je 0x4a447
testl %r14d, %r14d
jne 0x4a43f
movq 0xbb5256(%rip), %rdi # 0xbff680
testq %rdi, %rdi
jne 0x4a4d3
leaq 0xbb5206(%rip), %rdi # 0xbff640
callq 0x291e0
movl 0xbb51f7(%rip), %ebx # 0xbff63c
jmp 0x4a4ac
shrq $0x20, %rbx
testl $0xfffffffe, %ebx # imm = 0xFFFFFFFE
je 0x4a489
xorl %r12d, %r12d
leal (%rbx,%r12), %r15d
shrl %r15d
xorl %eax, %eax
cmpl %ebx, %r15d
sete %al
subl %eax, %r15d
movl %r15d, %edi
callq 0x4d7db
testb %al, %al
je 0x4a479
movl %r15d, %ebx
jmp 0x4a47c
movl %r15d, %r12d
cmpl %ebx, %r12d
je 0x4a489
leal -0x1(%rbx), %eax
cmpl %eax, %r12d
jne 0x4a456
movl %ebx, 0xbb51ad(%rip) # 0xbff63c
testl %r14d, %r14d
jne 0x4a4ac
movq 0xbb51e5(%rip), %rdi # 0xbff680
testq %rdi, %rdi
jne 0x4a4c1
leaq 0xbb5199(%rip), %rdi # 0xbff640
callq 0x291e0
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x2c584
jmp 0x4a40b
leaq 0x33bb48(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x4a4a0
leaq 0x33bb36(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x4a433
| translog_first_file:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r14d, esi
mov rbx, rdi
test esi, esi
jnz short loc_4A40B
cmp cs:qword_BFF680, 0
jnz loc_4A4B7
lea rdi, unk_BFF640
call _pthread_mutex_lock
loc_4A40B:
mov edi, dword ptr cs:qword_BFF638+4
test edi, edi
jz short loc_4A447
call translog_is_file
test al, al
jz short loc_4A447
test r14d, r14d
jnz short loc_4A43F
mov rdi, cs:qword_BFF680
test rdi, rdi
jnz loc_4A4D3
loc_4A433:
lea rdi, unk_BFF640
call _pthread_mutex_unlock
loc_4A43F:
mov ebx, dword ptr cs:qword_BFF638+4
jmp short loc_4A4AC
loc_4A447:
shr rbx, 20h
test ebx, 0FFFFFFFEh
jz short loc_4A489
xor r12d, r12d
loc_4A456:
lea r15d, [rbx+r12]
shr r15d, 1
xor eax, eax
cmp r15d, ebx
setz al
sub r15d, eax
mov edi, r15d
call translog_is_file
test al, al
jz short loc_4A479
mov ebx, r15d
jmp short loc_4A47C
loc_4A479:
mov r12d, r15d
loc_4A47C:
cmp r12d, ebx
jz short loc_4A489
lea eax, [rbx-1]
cmp r12d, eax
jnz short loc_4A456
loc_4A489:
mov dword ptr cs:qword_BFF638+4, ebx
test r14d, r14d
jnz short loc_4A4AC
mov rdi, cs:qword_BFF680
test rdi, rdi
jnz short loc_4A4C1
loc_4A4A0:
lea rdi, unk_BFF640
call _pthread_mutex_unlock
loc_4A4AC:
mov eax, ebx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_4A4B7:
call translog_first_file_cold_1
jmp loc_4A40B
loc_4A4C1:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_4A4A0
loc_4A4D3:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_4A433
| long long translog_first_file(unsigned long long a1, int a2)
{
unsigned long long v2; // rbx
unsigned int v3; // r12d
if ( !a2 )
{
if ( qword_BFF680 )
translog_first_file_cold_1();
else
pthread_mutex_lock(&unk_BFF640);
}
if ( HIDWORD(qword_BFF638) && (unsigned __int8)((long long (*)(void))translog_is_file)() )
{
if ( !a2 )
{
if ( qword_BFF680 )
PSI_server[44]();
pthread_mutex_unlock(&unk_BFF640);
}
LODWORD(v2) = HIDWORD(qword_BFF638);
}
else
{
v2 = HIDWORD(a1);
if ( (a1 & 0xFFFFFFFE00000000LL) != 0 )
{
v3 = 0;
do
{
if ( (unsigned __int8)translog_is_file((((unsigned int)v2 + v3) >> 1) - (((unsigned int)v2 + v3) >> 1 == (_DWORD)v2)) )
LODWORD(v2) = (((unsigned int)v2 + v3) >> 1) - (((unsigned int)v2 + v3) >> 1 == (_DWORD)v2);
else
v3 = (((unsigned int)v2 + v3) >> 1) - (((unsigned int)v2 + v3) >> 1 == (_DWORD)v2);
}
while ( v3 != (_DWORD)v2 && v3 != (_DWORD)v2 - 1 );
}
HIDWORD(qword_BFF638) = v2;
if ( !a2 )
{
if ( qword_BFF680 )
PSI_server[44]();
pthread_mutex_unlock(&unk_BFF640);
}
}
return (unsigned int)v2;
}
| translog_first_file:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R14D,ESI
MOV RBX,RDI
TEST ESI,ESI
JNZ 0x0014a40b
CMP qword ptr [0x00cff680],0x0
JNZ 0x0014a4b7
LEA RDI,[0xcff640]
CALL 0x00129220
LAB_0014a40b:
MOV EDI,dword ptr [0x00cff63c]
TEST EDI,EDI
JZ 0x0014a447
CALL 0x0014d7db
TEST AL,AL
JZ 0x0014a447
TEST R14D,R14D
JNZ 0x0014a43f
MOV RDI,qword ptr [0x00cff680]
TEST RDI,RDI
JNZ 0x0014a4d3
LAB_0014a433:
LEA RDI,[0xcff640]
CALL 0x001291e0
LAB_0014a43f:
MOV EBX,dword ptr [0x00cff63c]
JMP 0x0014a4ac
LAB_0014a447:
SHR RBX,0x20
TEST EBX,0xfffffffe
JZ 0x0014a489
XOR R12D,R12D
LAB_0014a456:
LEA R15D,[RBX + R12*0x1]
SHR R15D,0x1
XOR EAX,EAX
CMP R15D,EBX
SETZ AL
SUB R15D,EAX
MOV EDI,R15D
CALL 0x0014d7db
TEST AL,AL
JZ 0x0014a479
MOV EBX,R15D
JMP 0x0014a47c
LAB_0014a479:
MOV R12D,R15D
LAB_0014a47c:
CMP R12D,EBX
JZ 0x0014a489
LEA EAX,[RBX + -0x1]
CMP R12D,EAX
JNZ 0x0014a456
LAB_0014a489:
MOV dword ptr [0x00cff63c],EBX
TEST R14D,R14D
JNZ 0x0014a4ac
MOV RDI,qword ptr [0x00cff680]
TEST RDI,RDI
JNZ 0x0014a4c1
LAB_0014a4a0:
LEA RDI,[0xcff640]
CALL 0x001291e0
LAB_0014a4ac:
MOV EAX,EBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0014a4b7:
CALL 0x0012c584
JMP 0x0014a40b
LAB_0014a4c1:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0014a4a0
LAB_0014a4d3:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0014a433
|
ulong translog_first_file(ulong param_1,int param_2)
{
char cVar1;
uint uVar2;
uint uVar3;
if (param_2 == 0) {
if (DAT_00cff680 == 0) {
pthread_mutex_lock((pthread_mutex_t *)&DAT_00cff640);
}
else {
translog_first_file_cold_1();
}
}
if ((DAT_00cff63c == 0) || (cVar1 = translog_is_file(), cVar1 == '\0')) {
param_1 = param_1 >> 0x20;
if ((param_1 & 0xfffffffe) != 0) {
uVar2 = 0;
do {
uVar3 = (uint)param_1 + uVar2 >> 1;
uVar3 = uVar3 - (uVar3 == (uint)param_1);
cVar1 = translog_is_file(uVar3);
if (cVar1 != '\0') {
param_1 = (ulong)uVar3;
uVar3 = uVar2;
}
uVar2 = uVar3;
} while ((uVar2 != (uint)param_1) && (uVar2 != (uint)param_1 - 1));
}
DAT_00cff63c = (uint)param_1;
if (param_2 == 0) {
if (DAT_00cff680 != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)&DAT_00cff640);
}
}
else {
if (param_2 == 0) {
if (DAT_00cff680 != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)&DAT_00cff640);
}
param_1 = (ulong)DAT_00cff63c;
}
return param_1;
}
| |
24,056 | stbi__decode_jpeg_image(stbi__jpeg*) | monkey531[P]llama/examples/llava/../../common/stb_image.h | static int stbi__decode_jpeg_image(stbi__jpeg *j)
{
int m;
for (m = 0; m < 4; m++) {
j->img_comp[m].raw_data = NULL;
j->img_comp[m].raw_coeff = NULL;
}
j->restart_interval = 0;
if (!stbi__decode_jpeg_header(j, STBI__SCAN_load)) return 0;
m = stbi__get_marker(j);
while (!stbi__EOI(m)) {
if (stbi__SOS(m)) {
if (!stbi__process_scan_header(j)) return 0;
if (!stbi__parse_entropy_coded_data(j)) return 0;
if (j->marker == STBI__MARKER_none ) {
j->marker = stbi__skip_jpeg_junk_at_end(j);
// if we reach eof without hitting a marker, stbi__get_marker() below will fail and we'll eventually return 0
}
m = stbi__get_marker(j);
if (STBI__RESTART(m))
m = stbi__get_marker(j);
} else if (stbi__DNL(m)) {
int Ld = stbi__get16be(j->s);
stbi__uint32 NL = stbi__get16be(j->s);
if (Ld != 4) return stbi__err("bad DNL len", "Corrupt JPEG");
if (NL != j->s->img_y) return stbi__err("bad DNL height", "Corrupt JPEG");
m = stbi__get_marker(j);
} else {
if (!stbi__process_marker(j, m)) return 1;
m = stbi__get_marker(j);
}
}
if (j->progressive)
stbi__jpeg_finish(j);
return 1;
} | O0 | c | stbi__decode_jpeg_image(stbi__jpeg*):
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movl $0x0, 0x14(%rsp)
cmpl $0x4, 0x14(%rsp)
jge 0x9f0b3
movq 0x18(%rsp), %rax
addq $0x46a0, %rax # imm = 0x46A0
movslq 0x14(%rsp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq $0x0, 0x38(%rax)
movq 0x18(%rsp), %rax
addq $0x46a0, %rax # imm = 0x46A0
movslq 0x14(%rsp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq $0x0, 0x40(%rax)
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x9f061
movq 0x18(%rsp), %rax
movl $0x0, 0x4868(%rax)
movq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x95d00
cmpl $0x0, %eax
jne 0x9f0e0
movl $0x0, 0x24(%rsp)
jmp 0x9f285
movq 0x18(%rsp), %rdi
callq 0x9c830
movzbl %al, %eax
movl %eax, 0x14(%rsp)
cmpl $0xd9, 0x14(%rsp)
sete %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x9f107
jmp 0x9f265
cmpl $0xda, 0x14(%rsp)
jne 0x9f1b2
movq 0x18(%rsp), %rdi
callq 0x9f5d0
cmpl $0x0, %eax
jne 0x9f131
movl $0x0, 0x24(%rsp)
jmp 0x9f285
movq 0x18(%rsp), %rdi
callq 0x9f940
cmpl $0x0, %eax
jne 0x9f14d
movl $0x0, 0x24(%rsp)
jmp 0x9f285
movq 0x18(%rsp), %rax
movzbl 0x4828(%rax), %eax
cmpl $0xff, %eax
jne 0x9f177
movq 0x18(%rsp), %rdi
callq 0xa0600
movb %al, %cl
movq 0x18(%rsp), %rax
movb %cl, 0x4828(%rax)
movq 0x18(%rsp), %rdi
callq 0x9c830
movzbl %al, %eax
movl %eax, 0x14(%rsp)
cmpl $0xd0, 0x14(%rsp)
jl 0x9f1ad
cmpl $0xd7, 0x14(%rsp)
jg 0x9f1ad
movq 0x18(%rsp), %rdi
callq 0x9c830
movzbl %al, %eax
movl %eax, 0x14(%rsp)
jmp 0x9f260
cmpl $0xdc, 0x14(%rsp)
jne 0x9f230
movq 0x18(%rsp), %rax
movq (%rax), %rdi
callq 0x91ac0
movl %eax, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq (%rax), %rdi
callq 0x91ac0
movl %eax, 0xc(%rsp)
cmpl $0x4, 0x10(%rsp)
je 0x9f1fa
leaq 0x1b132c(%rip), %rdi # 0x250518
callq 0x767f0
movl %eax, 0x24(%rsp)
jmp 0x9f285
movl 0xc(%rsp), %eax
movq 0x18(%rsp), %rcx
movq (%rcx), %rcx
cmpl 0x4(%rcx), %eax
je 0x9f21d
leaq 0x1b1312(%rip), %rdi # 0x250524
callq 0x767f0
movl %eax, 0x24(%rsp)
jmp 0x9f285
movq 0x18(%rsp), %rdi
callq 0x9c830
movzbl %al, %eax
movl %eax, 0x14(%rsp)
jmp 0x9f25e
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
callq 0x9c8d0
cmpl $0x0, %eax
jne 0x9f24d
movl $0x1, 0x24(%rsp)
jmp 0x9f285
movq 0x18(%rsp), %rdi
callq 0x9c830
movzbl %al, %eax
movl %eax, 0x14(%rsp)
jmp 0x9f260
jmp 0x9f0f1
movq 0x18(%rsp), %rax
cmpl $0x0, 0x4830(%rax)
je 0x9f27d
movq 0x18(%rsp), %rdi
callq 0xa06a0
movl $0x1, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nop
| _ZL23stbi__decode_jpeg_imageP10stbi__jpeg:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov [rsp+28h+var_14], 0
loc_9F061:
cmp [rsp+28h+var_14], 4
jge short loc_9F0B3
mov rax, [rsp+28h+var_10]
add rax, 46A0h
movsxd rcx, [rsp+28h+var_14]
imul rcx, 60h ; '`'
add rax, rcx
mov qword ptr [rax+38h], 0
mov rax, [rsp+28h+var_10]
add rax, 46A0h
movsxd rcx, [rsp+28h+var_14]
imul rcx, 60h ; '`'
add rax, rcx
mov qword ptr [rax+40h], 0
mov eax, [rsp+28h+var_14]
add eax, 1
mov [rsp+28h+var_14], eax
jmp short loc_9F061
loc_9F0B3:
mov rax, [rsp+28h+var_10]
mov dword ptr [rax+4868h], 0
mov rdi, [rsp+28h+var_10]
xor esi, esi
call _ZL24stbi__decode_jpeg_headerP10stbi__jpegi; stbi__decode_jpeg_header(stbi__jpeg *,int)
cmp eax, 0
jnz short loc_9F0E0
mov [rsp+28h+var_4], 0
jmp loc_9F285
loc_9F0E0:
mov rdi, [rsp+28h+var_10]
call _ZL16stbi__get_markerP10stbi__jpeg; stbi__get_marker(stbi__jpeg *)
movzx eax, al
mov [rsp+28h+var_14], eax
loc_9F0F1:
cmp [rsp+28h+var_14], 0D9h
setz al
xor al, 0FFh
test al, 1
jnz short loc_9F107
jmp loc_9F265
loc_9F107:
cmp [rsp+28h+var_14], 0DAh
jnz loc_9F1B2
mov rdi, [rsp+28h+var_10]
call _ZL25stbi__process_scan_headerP10stbi__jpeg; stbi__process_scan_header(stbi__jpeg *)
cmp eax, 0
jnz short loc_9F131
mov [rsp+28h+var_4], 0
jmp loc_9F285
loc_9F131:
mov rdi, [rsp+28h+var_10]
call _ZL30stbi__parse_entropy_coded_dataP10stbi__jpeg; stbi__parse_entropy_coded_data(stbi__jpeg *)
cmp eax, 0
jnz short loc_9F14D
mov [rsp+28h+var_4], 0
jmp loc_9F285
loc_9F14D:
mov rax, [rsp+28h+var_10]
movzx eax, byte ptr [rax+4828h]
cmp eax, 0FFh
jnz short loc_9F177
mov rdi, [rsp+28h+var_10]
call _ZL27stbi__skip_jpeg_junk_at_endP10stbi__jpeg; stbi__skip_jpeg_junk_at_end(stbi__jpeg *)
mov cl, al
mov rax, [rsp+28h+var_10]
mov [rax+4828h], cl
loc_9F177:
mov rdi, [rsp+28h+var_10]
call _ZL16stbi__get_markerP10stbi__jpeg; stbi__get_marker(stbi__jpeg *)
movzx eax, al
mov [rsp+28h+var_14], eax
cmp [rsp+28h+var_14], 0D0h
jl short loc_9F1AD
cmp [rsp+28h+var_14], 0D7h
jg short loc_9F1AD
mov rdi, [rsp+28h+var_10]
call _ZL16stbi__get_markerP10stbi__jpeg; stbi__get_marker(stbi__jpeg *)
movzx eax, al
mov [rsp+28h+var_14], eax
loc_9F1AD:
jmp loc_9F260
loc_9F1B2:
cmp [rsp+28h+var_14], 0DCh
jnz short loc_9F230
mov rax, [rsp+28h+var_10]
mov rdi, [rax]
call _ZL13stbi__get16beP13stbi__context; stbi__get16be(stbi__context *)
mov [rsp+28h+var_18], eax
mov rax, [rsp+28h+var_10]
mov rdi, [rax]
call _ZL13stbi__get16beP13stbi__context; stbi__get16be(stbi__context *)
mov [rsp+28h+var_1C], eax
cmp [rsp+28h+var_18], 4
jz short loc_9F1FA
lea rdi, aBadDnlLen; "bad DNL len"
call _ZL9stbi__errPKc; stbi__err(char const*)
mov [rsp+28h+var_4], eax
jmp loc_9F285
loc_9F1FA:
mov eax, [rsp+28h+var_1C]
mov rcx, [rsp+28h+var_10]
mov rcx, [rcx]
cmp eax, [rcx+4]
jz short loc_9F21D
lea rdi, aBadDnlHeight; "bad DNL height"
call _ZL9stbi__errPKc; stbi__err(char const*)
mov [rsp+28h+var_4], eax
jmp short loc_9F285
loc_9F21D:
mov rdi, [rsp+28h+var_10]
call _ZL16stbi__get_markerP10stbi__jpeg; stbi__get_marker(stbi__jpeg *)
movzx eax, al
mov [rsp+28h+var_14], eax
jmp short loc_9F25E
loc_9F230:
mov rdi, [rsp+28h+var_10]
mov esi, [rsp+28h+var_14]
call _ZL20stbi__process_markerP10stbi__jpegi; stbi__process_marker(stbi__jpeg *,int)
cmp eax, 0
jnz short loc_9F24D
mov [rsp+28h+var_4], 1
jmp short loc_9F285
loc_9F24D:
mov rdi, [rsp+28h+var_10]
call _ZL16stbi__get_markerP10stbi__jpeg; stbi__get_marker(stbi__jpeg *)
movzx eax, al
mov [rsp+28h+var_14], eax
loc_9F25E:
jmp short $+2
loc_9F260:
jmp loc_9F0F1
loc_9F265:
mov rax, [rsp+28h+var_10]
cmp dword ptr [rax+4830h], 0
jz short loc_9F27D
mov rdi, [rsp+28h+var_10]
call _ZL17stbi__jpeg_finishP10stbi__jpeg; stbi__jpeg_finish(stbi__jpeg *)
loc_9F27D:
mov [rsp+28h+var_4], 1
loc_9F285:
mov eax, [rsp+28h+var_4]
add rsp, 28h
retn
| long long stbi__decode_jpeg_image(long long a1)
{
int v2; // [rsp+Ch] [rbp-1Ch]
int v3; // [rsp+10h] [rbp-18h]
int i; // [rsp+14h] [rbp-14h]
int marker; // [rsp+14h] [rbp-14h]
for ( i = 0; i < 4; ++i )
{
*(_QWORD *)(96LL * i + a1 + 18080 + 56) = 0LL;
*(_QWORD *)(96LL * i + a1 + 18080 + 64) = 0LL;
}
*(_DWORD *)(a1 + 18536) = 0;
if ( (unsigned int)stbi__decode_jpeg_header(a1, 0) )
{
while ( 2 )
{
while ( 1 )
{
marker = (unsigned __int8)stbi__get_marker(a1);
while ( 1 )
{
if ( marker == 217 )
{
if ( *(_DWORD *)(a1 + 18480) )
stbi__jpeg_finish(a1);
return 1;
}
if ( marker != 218 )
break;
if ( !(unsigned int)stbi__process_scan_header(a1) )
return 0;
if ( !(unsigned int)stbi__parse_entropy_coded_data(a1) )
return 0;
if ( *(unsigned __int8 *)(a1 + 18472) == 255 )
*(_BYTE *)(a1 + 18472) = stbi__skip_jpeg_junk_at_end(a1);
marker = (unsigned __int8)stbi__get_marker(a1);
if ( (unsigned int)marker >= 0xD0 && marker <= 215 )
marker = (unsigned __int8)stbi__get_marker(a1);
}
if ( marker != 220 )
break;
v3 = stbi__get16be(*(_QWORD *)a1);
v2 = stbi__get16be(*(_QWORD *)a1);
if ( v3 != 4 )
return (unsigned int)stbi__err("bad DNL len");
if ( v2 != *(_DWORD *)(*(_QWORD *)a1 + 4LL) )
return (unsigned int)stbi__err("bad DNL height");
}
if ( (unsigned int)stbi__process_marker(a1, marker) )
continue;
break;
}
return 1;
}
else
{
return 0;
}
}
| stbi__decode_jpeg_image:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RDI
MOV dword ptr [RSP + 0x14],0x0
LAB_0019f061:
CMP dword ptr [RSP + 0x14],0x4
JGE 0x0019f0b3
MOV RAX,qword ptr [RSP + 0x18]
ADD RAX,0x46a0
MOVSXD RCX,dword ptr [RSP + 0x14]
IMUL RCX,RCX,0x60
ADD RAX,RCX
MOV qword ptr [RAX + 0x38],0x0
MOV RAX,qword ptr [RSP + 0x18]
ADD RAX,0x46a0
MOVSXD RCX,dword ptr [RSP + 0x14]
IMUL RCX,RCX,0x60
ADD RAX,RCX
MOV qword ptr [RAX + 0x40],0x0
MOV EAX,dword ptr [RSP + 0x14]
ADD EAX,0x1
MOV dword ptr [RSP + 0x14],EAX
JMP 0x0019f061
LAB_0019f0b3:
MOV RAX,qword ptr [RSP + 0x18]
MOV dword ptr [RAX + 0x4868],0x0
MOV RDI,qword ptr [RSP + 0x18]
XOR ESI,ESI
CALL 0x00195d00
CMP EAX,0x0
JNZ 0x0019f0e0
MOV dword ptr [RSP + 0x24],0x0
JMP 0x0019f285
LAB_0019f0e0:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0019c830
MOVZX EAX,AL
MOV dword ptr [RSP + 0x14],EAX
LAB_0019f0f1:
CMP dword ptr [RSP + 0x14],0xd9
SETZ AL
XOR AL,0xff
TEST AL,0x1
JNZ 0x0019f107
JMP 0x0019f265
LAB_0019f107:
CMP dword ptr [RSP + 0x14],0xda
JNZ 0x0019f1b2
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0019f5d0
CMP EAX,0x0
JNZ 0x0019f131
MOV dword ptr [RSP + 0x24],0x0
JMP 0x0019f285
LAB_0019f131:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0019f940
CMP EAX,0x0
JNZ 0x0019f14d
MOV dword ptr [RSP + 0x24],0x0
JMP 0x0019f285
LAB_0019f14d:
MOV RAX,qword ptr [RSP + 0x18]
MOVZX EAX,byte ptr [RAX + 0x4828]
CMP EAX,0xff
JNZ 0x0019f177
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001a0600
MOV CL,AL
MOV RAX,qword ptr [RSP + 0x18]
MOV byte ptr [RAX + 0x4828],CL
LAB_0019f177:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0019c830
MOVZX EAX,AL
MOV dword ptr [RSP + 0x14],EAX
CMP dword ptr [RSP + 0x14],0xd0
JL 0x0019f1ad
CMP dword ptr [RSP + 0x14],0xd7
JG 0x0019f1ad
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0019c830
MOVZX EAX,AL
MOV dword ptr [RSP + 0x14],EAX
LAB_0019f1ad:
JMP 0x0019f260
LAB_0019f1b2:
CMP dword ptr [RSP + 0x14],0xdc
JNZ 0x0019f230
MOV RAX,qword ptr [RSP + 0x18]
MOV RDI,qword ptr [RAX]
CALL 0x00191ac0
MOV dword ptr [RSP + 0x10],EAX
MOV RAX,qword ptr [RSP + 0x18]
MOV RDI,qword ptr [RAX]
CALL 0x00191ac0
MOV dword ptr [RSP + 0xc],EAX
CMP dword ptr [RSP + 0x10],0x4
JZ 0x0019f1fa
LEA RDI,[0x350518]
CALL 0x001767f0
MOV dword ptr [RSP + 0x24],EAX
JMP 0x0019f285
LAB_0019f1fa:
MOV EAX,dword ptr [RSP + 0xc]
MOV RCX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RCX]
CMP EAX,dword ptr [RCX + 0x4]
JZ 0x0019f21d
LEA RDI,[0x350524]
CALL 0x001767f0
MOV dword ptr [RSP + 0x24],EAX
JMP 0x0019f285
LAB_0019f21d:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0019c830
MOVZX EAX,AL
MOV dword ptr [RSP + 0x14],EAX
JMP 0x0019f25e
LAB_0019f230:
MOV RDI,qword ptr [RSP + 0x18]
MOV ESI,dword ptr [RSP + 0x14]
CALL 0x0019c8d0
CMP EAX,0x0
JNZ 0x0019f24d
MOV dword ptr [RSP + 0x24],0x1
JMP 0x0019f285
LAB_0019f24d:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0019c830
MOVZX EAX,AL
MOV dword ptr [RSP + 0x14],EAX
LAB_0019f25e:
JMP 0x0019f260
LAB_0019f260:
JMP 0x0019f0f1
LAB_0019f265:
MOV RAX,qword ptr [RSP + 0x18]
CMP dword ptr [RAX + 0x4830],0x0
JZ 0x0019f27d
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001a06a0
LAB_0019f27d:
MOV dword ptr [RSP + 0x24],0x1
LAB_0019f285:
MOV EAX,dword ptr [RSP + 0x24]
ADD RSP,0x28
RET
|
/* stbi__decode_jpeg_image(stbi__jpeg*) */
int4 stbi__decode_jpeg_image(stbi__jpeg *param_1)
{
byte bVar1;
stbi__jpeg sVar2;
int iVar3;
int iVar4;
int4 uVar5;
uint local_14;
int4 local_4;
for (local_14 = 0; (int)local_14 < 4; local_14 = local_14 + 1) {
*(int8 *)(param_1 + (long)(int)local_14 * 0x60 + 0x46d8) = 0;
*(int8 *)(param_1 + (long)(int)local_14 * 0x60 + 0x46e0) = 0;
}
*(int4 *)(param_1 + 0x4868) = 0;
iVar3 = stbi__decode_jpeg_header(param_1,0);
if (iVar3 == 0) {
local_4 = 0;
}
else {
bVar1 = stbi__get_marker(param_1);
local_14 = (uint)bVar1;
while (local_14 != 0xd9) {
if (local_14 == 0xda) {
iVar3 = stbi__process_scan_header(param_1);
if (iVar3 == 0) {
return 0;
}
iVar3 = stbi__parse_entropy_coded_data(param_1);
if (iVar3 == 0) {
return 0;
}
if (param_1[0x4828] == (stbi__jpeg)0xff) {
sVar2 = (stbi__jpeg)stbi__skip_jpeg_junk_at_end(param_1);
param_1[0x4828] = sVar2;
}
bVar1 = stbi__get_marker(param_1);
local_14 = (uint)bVar1;
if ((0xcf < local_14) && (local_14 < 0xd8)) {
bVar1 = stbi__get_marker(param_1);
local_14 = (uint)bVar1;
}
}
else {
if (local_14 == 0xdc) {
iVar3 = stbi__get16be(*(stbi__context **)param_1);
iVar4 = stbi__get16be(*(stbi__context **)param_1);
if (iVar3 != 4) {
uVar5 = stbi__err("bad DNL len");
return uVar5;
}
if (iVar4 != *(int *)(*(long *)param_1 + 4)) {
uVar5 = stbi__err("bad DNL height");
return uVar5;
}
bVar1 = stbi__get_marker(param_1);
}
else {
iVar3 = stbi__process_marker(param_1,local_14);
if (iVar3 == 0) {
return 1;
}
bVar1 = stbi__get_marker(param_1);
}
local_14 = (uint)bVar1;
}
}
if (*(int *)(param_1 + 0x4830) != 0) {
stbi__jpeg_finish(param_1);
}
local_4 = 1;
}
return local_4;
}
| |
24,057 | ModbusClientPort::readDiscreteInputsAsBoolArray(ModbusObject*, unsigned char, unsigned short, unsigned short, bool*) | serhmarch[P]ModbusBridge/modbus/src/ModbusClientPort.cpp | Modbus::StatusCode ModbusClientPort::readDiscreteInputsAsBoolArray(ModbusObject *client, uint8_t unit, uint16_t offset, uint16_t count, bool *values)
{
ModbusClientPortPrivate *d = d_ModbusClientPort(d_ptr);
Modbus::StatusCode r = readDiscreteInputs(client, unit, offset, count, d->buff);
if ((r != Status_Good) || d->isBroadcast())
return r;
for (int i = 0; i < count; ++i)
values[i] = (d->buff[i / 8] & static_cast<uint8_t>(1 << (i % 8))) != 0;
return Status_Good;
} | O0 | cpp | ModbusClientPort::readDiscreteInputsAsBoolArray(ModbusObject*, unsigned char, unsigned short, unsigned short, bool*):
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movw %r8w, %ax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movb %dl, -0x19(%rbp)
movw %cx, -0x1c(%rbp)
movw %ax, -0x1e(%rbp)
movq %r9, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movq 0x8(%rax), %rdi
callq 0x199f0
movq -0x40(%rbp), %rdi
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rsi
movb -0x19(%rbp), %dl
movw -0x1c(%rbp), %cx
movw -0x1e(%rbp), %ax
movq -0x30(%rbp), %r9
addq $0x84, %r9
movzbl %dl, %edx
movzwl %cx, %ecx
movzwl %ax, %r8d
callq 0x14460
movl %eax, -0x34(%rbp)
cmpl $0x0, -0x34(%rbp)
jne 0x1840d
movq -0x30(%rbp), %rdi
callq 0x19b30
testb $0x1, %al
jne 0x1840d
jmp 0x18415
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x18492
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
movzwl -0x1e(%rbp), %ecx
cmpl %ecx, %eax
jge 0x1848b
movq -0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
movl -0x38(%rbp), %eax
movl $0x8, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movq -0x50(%rbp), %rax
movslq %ecx, %rcx
movzbl 0x84(%rax,%rcx), %eax
movl %eax, -0x44(%rbp)
movl -0x38(%rbp), %eax
movl $0x8, %ecx
cltd
idivl %ecx
movl -0x44(%rbp), %eax
movl %edx, %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
movzbl %cl, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
setne %dl
movq -0x28(%rbp), %rax
movslq -0x38(%rbp), %rcx
andb $0x1, %dl
movb %dl, (%rax,%rcx)
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x1841c
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| _ZN16ModbusClientPort29readDiscreteInputsAsBoolArrayEP12ModbusObjecthttPb:
push rbp
mov rbp, rsp
sub rsp, 50h
mov ax, r8w
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_19], dl
mov [rbp+var_1C], cx
mov [rbp+var_1E], ax
mov [rbp+var_28], r9
mov rax, [rbp+var_10]
mov [rbp+var_40], rax
mov rdi, [rax+8]
call _Z18d_ModbusClientPortP19ModbusObjectPrivate; d_ModbusClientPort(ModbusObjectPrivate *)
mov rdi, [rbp+var_40]; this
mov [rbp+var_30], rax
mov rsi, [rbp+var_18]; ModbusObject *
mov dl, [rbp+var_19]
mov cx, [rbp+var_1C]
mov ax, [rbp+var_1E]
mov r9, [rbp+var_30]
add r9, 84h; void *
movzx edx, dl; unsigned __int8
movzx ecx, cx; unsigned __int16
movzx r8d, ax; unsigned __int16
call _ZN16ModbusClientPort18readDiscreteInputsEP12ModbusObjecthttPv; ModbusClientPort::readDiscreteInputs(ModbusObject *,uchar,ushort,ushort,void *)
mov [rbp+var_34], eax
cmp [rbp+var_34], 0
jnz short loc_1840D
mov rdi, [rbp+var_30]; this
call _ZNK23ModbusClientPortPrivate11isBroadcastEv; ModbusClientPortPrivate::isBroadcast(void)
test al, 1
jnz short loc_1840D
jmp short loc_18415
loc_1840D:
mov eax, [rbp+var_34]
mov [rbp+var_4], eax
jmp short loc_18492
loc_18415:
mov [rbp+var_38], 0
loc_1841C:
mov eax, [rbp+var_38]
movzx ecx, [rbp+var_1E]
cmp eax, ecx
jge short loc_1848B
mov rax, [rbp+var_30]
mov [rbp+var_50], rax
mov eax, [rbp+var_38]
mov ecx, 8
cdq
idiv ecx
mov ecx, eax
mov rax, [rbp+var_50]
movsxd rcx, ecx
movzx eax, byte ptr [rax+rcx+84h]
mov [rbp+var_44], eax
mov eax, [rbp+var_38]
mov ecx, 8
cdq
idiv ecx
mov eax, [rbp+var_44]
mov ecx, edx
mov edx, 1
shl edx, cl
mov ecx, edx
movzx ecx, cl
and eax, ecx
cmp eax, 0
setnz dl
mov rax, [rbp+var_28]
movsxd rcx, [rbp+var_38]
and dl, 1
mov [rax+rcx], dl
mov eax, [rbp+var_38]
add eax, 1
mov [rbp+var_38], eax
jmp short loc_1841C
loc_1848B:
mov [rbp+var_4], 0
loc_18492:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
| long long ModbusClientPort::readDiscreteInputsAsBoolArray(
ModbusObjectPrivate **this,
ModbusObject *a2,
unsigned __int8 a3,
unsigned __int16 a4,
unsigned __int16 a5,
bool *a6)
{
int i; // [rsp+18h] [rbp-38h]
unsigned int DiscreteInputs; // [rsp+1Ch] [rbp-34h]
ModbusClientPortPrivate *v9; // [rsp+20h] [rbp-30h]
v9 = (ModbusClientPortPrivate *)d_ModbusClientPort(this[1]);
DiscreteInputs = ModbusClientPort::readDiscreteInputs(this, a2, a3, a4, a5, (char *)v9 + 132);
if ( DiscreteInputs || (ModbusClientPortPrivate::isBroadcast(v9) & 1) != 0 )
{
return DiscreteInputs;
}
else
{
for ( i = 0; i < a5; ++i )
a6[i] = (unsigned __int8)((1 << (i % 8)) & *((_BYTE *)v9 + i / 8 + 132)) != 0;
return 0;
}
}
| readDiscreteInputsAsBoolArray:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV AX,R8W
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV byte ptr [RBP + -0x19],DL
MOV word ptr [RBP + -0x1c],CX
MOV word ptr [RBP + -0x1e],AX
MOV qword ptr [RBP + -0x28],R9
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001199f0
MOV RDI,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x30],RAX
MOV RSI,qword ptr [RBP + -0x18]
MOV DL,byte ptr [RBP + -0x19]
MOV CX,word ptr [RBP + -0x1c]
MOV AX,word ptr [RBP + -0x1e]
MOV R9,qword ptr [RBP + -0x30]
ADD R9,0x84
MOVZX EDX,DL
MOVZX ECX,CX
MOVZX R8D,AX
CALL 0x00114460
MOV dword ptr [RBP + -0x34],EAX
CMP dword ptr [RBP + -0x34],0x0
JNZ 0x0011840d
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x00119b30
TEST AL,0x1
JNZ 0x0011840d
JMP 0x00118415
LAB_0011840d:
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00118492
LAB_00118415:
MOV dword ptr [RBP + -0x38],0x0
LAB_0011841c:
MOV EAX,dword ptr [RBP + -0x38]
MOVZX ECX,word ptr [RBP + -0x1e]
CMP EAX,ECX
JGE 0x0011848b
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x50],RAX
MOV EAX,dword ptr [RBP + -0x38]
MOV ECX,0x8
CDQ
IDIV ECX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x50]
MOVSXD RCX,ECX
MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x84]
MOV dword ptr [RBP + -0x44],EAX
MOV EAX,dword ptr [RBP + -0x38]
MOV ECX,0x8
CDQ
IDIV ECX
MOV EAX,dword ptr [RBP + -0x44]
MOV ECX,EDX
MOV EDX,0x1
SHL EDX,CL
MOV ECX,EDX
MOVZX ECX,CL
AND EAX,ECX
CMP EAX,0x0
SETNZ DL
MOV RAX,qword ptr [RBP + -0x28]
MOVSXD RCX,dword ptr [RBP + -0x38]
AND DL,0x1
MOV byte ptr [RAX + RCX*0x1],DL
MOV EAX,dword ptr [RBP + -0x38]
ADD EAX,0x1
MOV dword ptr [RBP + -0x38],EAX
JMP 0x0011841c
LAB_0011848b:
MOV dword ptr [RBP + -0x4],0x0
LAB_00118492:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
/* ModbusClientPort::readDiscreteInputsAsBoolArray(ModbusObject*, unsigned char, unsigned short,
unsigned short, bool*) */
int __thiscall
ModbusClientPort::readDiscreteInputsAsBoolArray
(ModbusClientPort *this,ModbusObject *param_1,uchar param_2,ushort param_3,ushort param_4,
bool *param_5)
{
ModbusClientPortPrivate *this_00;
ulong uVar1;
int local_40;
int local_c;
this_00 = (ModbusClientPortPrivate *)d_ModbusClientPort(*(ModbusObjectPrivate **)(this + 8));
local_c = readDiscreteInputs(this,param_1,param_2,param_3,param_4,this_00 + 0x84);
if ((local_c == 0) && (uVar1 = ModbusClientPortPrivate::isBroadcast(this_00), (uVar1 & 1) == 0)) {
for (local_40 = 0; local_40 < (int)(uint)param_4; local_40 = local_40 + 1) {
param_5[local_40] =
((uint)(byte)this_00[(long)(local_40 / 8) + 0x84] &
1 << ((byte)((long)local_40 % 8) & 0x1f) & 0xffU) != 0;
}
local_c = 0;
}
return local_c;
}
| |
24,058 | ModbusClientPort::readDiscreteInputsAsBoolArray(ModbusObject*, unsigned char, unsigned short, unsigned short, bool*) | serhmarch[P]ModbusBridge/modbus/src/ModbusClientPort.cpp | Modbus::StatusCode ModbusClientPort::readDiscreteInputsAsBoolArray(ModbusObject *client, uint8_t unit, uint16_t offset, uint16_t count, bool *values)
{
ModbusClientPortPrivate *d = d_ModbusClientPort(d_ptr);
Modbus::StatusCode r = readDiscreteInputs(client, unit, offset, count, d->buff);
if ((r != Status_Good) || d->isBroadcast())
return r;
for (int i = 0; i < count; ++i)
values[i] = (d->buff[i / 8] & static_cast<uint8_t>(1 << (i % 8))) != 0;
return Status_Good;
} | O1 | cpp | ModbusClientPort::readDiscreteInputsAsBoolArray(ModbusObject*, unsigned char, unsigned short, unsigned short, bool*):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %r9, %rbx
movl %r8d, %ebp
movq 0x8(%rdi), %r15
leaq 0x84(%r15), %r14
movq %r14, %r9
callq 0xa82c
testl %eax, %eax
jne 0xcec1
cmpb $0x0, 0x6c(%r15)
jne 0xce93
testb $0x1, 0x1c4(%r15)
jne 0xcec1
testw %bp, %bp
je 0xcebf
movzwl %bp, %ecx
xorl %eax, %eax
xorl %edx, %edx
movl %edx, %esi
shrl $0x3, %esi
movzbl (%r14,%rsi), %esi
movl %edx, %edi
andl $0x7, %edi
btl %edi, %esi
setb (%rbx,%rdx)
incq %rdx
cmpq %rdx, %rcx
jne 0xce9f
jmp 0xcec1
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| _ZN16ModbusClientPort29readDiscreteInputsAsBoolArrayEP12ModbusObjecthttPb:
push rbp
push r15
push r14
push rbx
push rax
mov rbx, r9
mov ebp, r8d
mov r15, [rdi+8]
lea r14, [r15+84h]
mov r9, r14; void *
call _ZN16ModbusClientPort18readDiscreteInputsEP12ModbusObjecthttPv; ModbusClientPort::readDiscreteInputs(ModbusObject *,uchar,ushort,ushort,void *)
test eax, eax
jnz short loc_CEC1
cmp byte ptr [r15+6Ch], 0
jnz short loc_CE93
test byte ptr [r15+1C4h], 1
jnz short loc_CEC1
loc_CE93:
test bp, bp
jz short loc_CEBF
movzx ecx, bp
xor eax, eax
xor edx, edx
loc_CE9F:
mov esi, edx
shr esi, 3
movzx esi, byte ptr [r14+rsi]
mov edi, edx
and edi, 7
bt esi, edi
setb byte ptr [rbx+rdx]
inc rdx
cmp rcx, rdx
jnz short loc_CE9F
jmp short loc_CEC1
loc_CEBF:
xor eax, eax
loc_CEC1:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long ModbusClientPort::readDiscreteInputsAsBoolArray(
ModbusClientPort *this,
ModbusObject *a2,
unsigned __int8 a3,
unsigned __int16 a4,
unsigned __int16 a5,
bool *a6)
{
_BYTE *v8; // r15
long long result; // rax
long long v10; // rdx
int v11; // esi
v8 = (_BYTE *)*((_QWORD *)this + 1);
result = ModbusClientPort::readDiscreteInputs(this, a2, a3, a4, a5, v8 + 132);
if ( !(_DWORD)result && (v8[108] || (v8[452] & 1) == 0) )
{
if ( a5 )
{
result = 0LL;
v10 = 0LL;
do
{
v11 = (unsigned __int8)v8[((unsigned int)v10 >> 3) + 132];
a6[v10] = _bittest(&v11, v10 & 7);
++v10;
}
while ( a5 != v10 );
}
else
{
return 0LL;
}
}
return result;
}
| readDiscreteInputsAsBoolArray:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,R9
MOV EBP,R8D
MOV R15,qword ptr [RDI + 0x8]
LEA R14,[R15 + 0x84]
MOV R9,R14
CALL 0x0010a82c
TEST EAX,EAX
JNZ 0x0010cec1
CMP byte ptr [R15 + 0x6c],0x0
JNZ 0x0010ce93
TEST byte ptr [R15 + 0x1c4],0x1
JNZ 0x0010cec1
LAB_0010ce93:
TEST BP,BP
JZ 0x0010cebf
MOVZX ECX,BP
XOR EAX,EAX
XOR EDX,EDX
LAB_0010ce9f:
MOV ESI,EDX
SHR ESI,0x3
MOVZX ESI,byte ptr [R14 + RSI*0x1]
MOV EDI,EDX
AND EDI,0x7
BT ESI,EDI
SETC byte ptr [RBX + RDX*0x1]
INC RDX
CMP RCX,RDX
JNZ 0x0010ce9f
JMP 0x0010cec1
LAB_0010cebf:
XOR EAX,EAX
LAB_0010cec1:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* ModbusClientPort::readDiscreteInputsAsBoolArray(ModbusObject*, unsigned char, unsigned short,
unsigned short, bool*) */
int8 __thiscall
ModbusClientPort::readDiscreteInputsAsBoolArray
(ModbusClientPort *this,ModbusObject *param_1,uchar param_2,ushort param_3,ushort param_4,
bool *param_5)
{
long lVar1;
int8 uVar2;
ulong uVar3;
lVar1 = *(long *)(this + 8);
uVar2 = readDiscreteInputs(this,param_1,param_2,param_3,param_4,(void *)(lVar1 + 0x84));
if (((int)uVar2 == 0) &&
((*(char *)(lVar1 + 0x6c) != '\0' || ((*(byte *)(lVar1 + 0x1c4) & 1) == 0)))) {
if (param_4 == 0) {
uVar2 = 0;
}
else {
uVar2 = 0;
uVar3 = 0;
do {
param_5[uVar3] =
(*(byte *)(lVar1 + 0x84 + (uVar3 >> 3 & 0x1fffffff)) >> ((uint)uVar3 & 7) & 1) != 0;
uVar3 = uVar3 + 1;
} while (param_4 != uVar3);
}
}
return uVar2;
}
| |
24,059 | ModbusClientPort::readDiscreteInputsAsBoolArray(ModbusObject*, unsigned char, unsigned short, unsigned short, bool*) | serhmarch[P]ModbusBridge/modbus/src/ModbusClientPort.cpp | Modbus::StatusCode ModbusClientPort::readDiscreteInputsAsBoolArray(ModbusObject *client, uint8_t unit, uint16_t offset, uint16_t count, bool *values)
{
ModbusClientPortPrivate *d = d_ModbusClientPort(d_ptr);
Modbus::StatusCode r = readDiscreteInputs(client, unit, offset, count, d->buff);
if ((r != Status_Good) || d->isBroadcast())
return r;
for (int i = 0; i < count; ++i)
values[i] = (d->buff[i / 8] & static_cast<uint8_t>(1 << (i % 8))) != 0;
return Status_Good;
} | O3 | cpp | ModbusClientPort::readDiscreteInputsAsBoolArray(ModbusObject*, unsigned char, unsigned short, unsigned short, bool*):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %r9, %rbx
movl %r8d, %ebp
movq 0x8(%rdi), %r15
leaq 0x84(%r15), %r14
movq %r14, %r9
callq 0xa944
testl %eax, %eax
jne 0xcf20
cmpb $0x0, 0x6c(%r15)
sete %cl
andb 0x1c4(%r15), %cl
testw %bp, %bp
sete %dl
xorl %eax, %eax
orb %cl, %dl
jne 0xcf20
movzwl %bp, %ecx
xorl %eax, %eax
xorl %edx, %edx
movl %edx, %esi
shrl $0x3, %esi
movzbl (%r14,%rsi), %esi
movl %edx, %edi
andl $0x7, %edi
btl %edi, %esi
setb (%rbx,%rdx)
incq %rdx
cmpq %rdx, %rcx
jne 0xcf02
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
| _ZN16ModbusClientPort29readDiscreteInputsAsBoolArrayEP12ModbusObjecthttPb:
push rbp
push r15
push r14
push rbx
push rax
mov rbx, r9
mov ebp, r8d
mov r15, [rdi+8]
lea r14, [r15+84h]
mov r9, r14; void *
call _ZN16ModbusClientPort18readDiscreteInputsEP12ModbusObjecthttPv; ModbusClientPort::readDiscreteInputs(ModbusObject *,uchar,ushort,ushort,void *)
test eax, eax
jnz short loc_CF20
cmp byte ptr [r15+6Ch], 0
setz cl
and cl, [r15+1C4h]
test bp, bp
setz dl
xor eax, eax
or dl, cl
jnz short loc_CF20
movzx ecx, bp
xor eax, eax
xor edx, edx
loc_CF02:
mov esi, edx
shr esi, 3
movzx esi, byte ptr [r14+rsi]
mov edi, edx
and edi, 7
bt esi, edi
setb byte ptr [rbx+rdx]
inc rdx
cmp rcx, rdx
jnz short loc_CF02
loc_CF20:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long ModbusClientPort::readDiscreteInputsAsBoolArray(
ModbusClientPort *this,
ModbusObject *a2,
unsigned __int8 a3,
unsigned __int16 a4,
unsigned __int16 a5,
bool *a6)
{
_BYTE *v8; // r15
long long result; // rax
long long v10; // rdx
int v11; // esi
v8 = (_BYTE *)*((_QWORD *)this + 1);
result = ModbusClientPort::readDiscreteInputs(this, a2, a3, a4, a5, v8 + 132);
if ( !(_DWORD)result )
{
result = 0LL;
if ( !(v8[452] & (v8[108] == 0) | (a5 == 0)) )
{
result = 0LL;
v10 = 0LL;
do
{
v11 = (unsigned __int8)v8[((unsigned int)v10 >> 3) + 132];
a6[v10] = _bittest(&v11, v10 & 7);
++v10;
}
while ( a5 != v10 );
}
}
return result;
}
| readDiscreteInputsAsBoolArray:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,R9
MOV EBP,R8D
MOV R15,qword ptr [RDI + 0x8]
LEA R14,[R15 + 0x84]
MOV R9,R14
CALL 0x0010a944
TEST EAX,EAX
JNZ 0x0010cf20
CMP byte ptr [R15 + 0x6c],0x0
SETZ CL
AND CL,byte ptr [R15 + 0x1c4]
TEST BP,BP
SETZ DL
XOR EAX,EAX
OR DL,CL
JNZ 0x0010cf20
MOVZX ECX,BP
XOR EAX,EAX
XOR EDX,EDX
LAB_0010cf02:
MOV ESI,EDX
SHR ESI,0x3
MOVZX ESI,byte ptr [R14 + RSI*0x1]
MOV EDI,EDX
AND EDI,0x7
BT ESI,EDI
SETC byte ptr [RBX + RDX*0x1]
INC RDX
CMP RCX,RDX
JNZ 0x0010cf02
LAB_0010cf20:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* ModbusClientPort::readDiscreteInputsAsBoolArray(ModbusObject*, unsigned char, unsigned short,
unsigned short, bool*) */
int8 __thiscall
ModbusClientPort::readDiscreteInputsAsBoolArray
(ModbusClientPort *this,ModbusObject *param_1,uchar param_2,ushort param_3,ushort param_4,
bool *param_5)
{
long lVar1;
int8 uVar2;
ulong uVar3;
lVar1 = *(long *)(this + 8);
uVar2 = readDiscreteInputs(this,param_1,param_2,param_3,param_4,(void *)(lVar1 + 0x84));
if (((int)uVar2 == 0) &&
(uVar2 = 0, param_4 != 0 && (*(char *)(lVar1 + 0x6c) == '\0' & *(byte *)(lVar1 + 0x1c4)) == 0))
{
uVar2 = 0;
uVar3 = 0;
do {
param_5[uVar3] =
(*(byte *)(lVar1 + 0x84 + (uVar3 >> 3 & 0x1fffffff)) >> ((uint)uVar3 & 7) & 1) != 0;
uVar3 = uVar3 + 1;
} while (param_4 != uVar3);
}
return uVar2;
}
| |
24,060 | uf_prespace | eloqsql/storage/myisam/mi_packrec.c | static void uf_prespace(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff, uchar *to,
uchar *end)
{
uint spaces;
if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end)
{
bit_buff->error=1;
return;
}
bfill((uchar*) to,spaces,' ');
if (to+spaces != end)
decode_bytes(rec,bit_buff,to+spaces,end);
} | O3 | c | uf_prespace:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
movl 0x4(%rsi), %ecx
movl 0x1c(%rdi), %r13d
cmpl %r13d, %ecx
jae 0x830dc
subl %ecx, %r13d
leaq 0x5d72a(%rip), %rax # 0xe07d0
movq %rbx, -0x30(%rbp)
movl (%rax,%rcx,4), %ebx
andl (%r14), %ebx
movl %r13d, %ecx
shll %cl, %ebx
movq %r14, %rdi
callq 0x81cfd
movl $0x20, %eax
subl %r13d, %eax
movl %eax, 0x4(%r14)
movl (%r14), %eax
negl %r13d
movl %r13d, %ecx
shrl %cl, %eax
addl %ebx, %eax
movq -0x30(%rbp), %rbx
jmp 0x830f6
movl (%r14), %eax
subl %r13d, %ecx
movl %ecx, 0x4(%r14)
shrl %cl, %eax
movl 0x1c(%r15), %ecx
leaq 0x5d6dd(%rip), %rdx # 0xe07d0
andl (%rdx,%rcx,4), %eax
movl %eax, %edx
leaq (%r12,%rdx), %r13
cmpq %rbx, %r13
jbe 0x8310b
movl $0x1, 0x28(%r14)
jmp 0x8313c
movq %r12, %rdi
movl $0x20, %esi
callq 0x292b0
cmpq %rbx, %r13
je 0x8313c
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x825ee
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| uf_prespace_0:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rcx
mov r12, rdx
mov r14, rsi
mov r15, rdi
mov ecx, [rsi+4]
mov r13d, [rdi+1Ch]
cmp ecx, r13d
jnb short loc_830DC
sub r13d, ecx
lea rax, mask_0
mov [rbp+var_30], rbx
mov ebx, [rax+rcx*4]
and ebx, [r14]
mov ecx, r13d
shl ebx, cl
mov rdi, r14
call fill_buffer_0
mov eax, 20h ; ' '
sub eax, r13d
mov [r14+4], eax
mov eax, [r14]
neg r13d
mov ecx, r13d
shr eax, cl
add eax, ebx
mov rbx, [rbp+var_30]
jmp short loc_830F6
loc_830DC:
mov eax, [r14]
sub ecx, r13d
mov [r14+4], ecx
shr eax, cl
mov ecx, [r15+1Ch]
lea rdx, mask_0
and eax, [rdx+rcx*4]
loc_830F6:
mov edx, eax
lea r13, [r12+rdx]
cmp r13, rbx
jbe short loc_8310B
mov dword ptr [r14+28h], 1
jmp short loc_8313C
loc_8310B:
mov rdi, r12
mov esi, 20h ; ' '
call _memset
cmp r13, rbx
jz short loc_8313C
mov rdi, r15
mov rsi, r14
mov rdx, r13
mov rcx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp decode_bytes_0
loc_8313C:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long uf_prespace_0(long long a1, unsigned int *a2, long long a3, _BYTE *a4)
{
long long v6; // rcx
unsigned int v7; // r13d
int v8; // r13d
int v9; // ebx
long long result; // rax
unsigned int v11; // eax
unsigned int v12; // ecx
_BYTE *v13; // r13
_BYTE *v14; // [rsp+0h] [rbp-30h]
v6 = a2[1];
v7 = *(_DWORD *)(a1 + 28);
if ( (unsigned int)v6 >= v7 )
{
v11 = *a2;
v12 = v6 - v7;
a2[1] = v12;
result = mask_0[*(unsigned int *)(a1 + 28)] & (v11 >> v12);
}
else
{
v8 = v7 - v6;
v14 = a4;
v9 = (*a2 & mask_0[v6]) << v8;
fill_buffer_0((long long)a2);
a2[1] = 32 - v8;
result = v9 + (*a2 >> -(char)v8);
a4 = v14;
}
v13 = (_BYTE *)(a3 + (unsigned int)result);
if ( v13 <= a4 )
{
result = memset(a3, 32LL, (unsigned int)result);
if ( v13 != a4 )
return (long long)decode_bytes_0(a1, (long long)a2, v13, a4);
}
else
{
a2[10] = 1;
}
return result;
}
| uf_prespace:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RCX
MOV R12,RDX
MOV R14,RSI
MOV R15,RDI
MOV ECX,dword ptr [RSI + 0x4]
MOV R13D,dword ptr [RDI + 0x1c]
CMP ECX,R13D
JNC 0x001830dc
SUB R13D,ECX
LEA RAX,[0x1e07d0]
MOV qword ptr [RBP + -0x30],RBX
MOV EBX,dword ptr [RAX + RCX*0x4]
AND EBX,dword ptr [R14]
MOV ECX,R13D
SHL EBX,CL
MOV RDI,R14
CALL 0x00181cfd
MOV EAX,0x20
SUB EAX,R13D
MOV dword ptr [R14 + 0x4],EAX
MOV EAX,dword ptr [R14]
NEG R13D
MOV ECX,R13D
SHR EAX,CL
ADD EAX,EBX
MOV RBX,qword ptr [RBP + -0x30]
JMP 0x001830f6
LAB_001830dc:
MOV EAX,dword ptr [R14]
SUB ECX,R13D
MOV dword ptr [R14 + 0x4],ECX
SHR EAX,CL
MOV ECX,dword ptr [R15 + 0x1c]
LEA RDX,[0x1e07d0]
AND EAX,dword ptr [RDX + RCX*0x4]
LAB_001830f6:
MOV EDX,EAX
LEA R13,[R12 + RDX*0x1]
CMP R13,RBX
JBE 0x0018310b
MOV dword ptr [R14 + 0x28],0x1
JMP 0x0018313c
LAB_0018310b:
MOV RDI,R12
MOV ESI,0x20
CALL 0x001292b0
CMP R13,RBX
JZ 0x0018313c
MOV RDI,R15
MOV RSI,R14
MOV RDX,R13
MOV RCX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001825ee
LAB_0018313c:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void uf_prespace(long param_1,uint *param_2,void *param_3,ulong param_4)
{
ulong uVar1;
uint uVar2;
uint uVar3;
uint uVar4;
uint uVar5;
byte bVar6;
uVar5 = param_2[1];
uVar2 = *(uint *)(param_1 + 0x1c);
if (uVar5 < uVar2) {
uVar3 = (&mask)[uVar5];
uVar4 = *param_2;
bVar6 = (byte)(uVar2 - uVar5);
fill_buffer(param_2);
param_2[1] = 0x20 - (uVar2 - uVar5);
uVar5 = (*param_2 >> (-bVar6 & 0x1f)) + ((uVar3 & uVar4) << (bVar6 & 0x1f));
}
else {
param_2[1] = uVar5 - uVar2;
uVar5 = *param_2 >> ((byte)(uVar5 - uVar2) & 0x1f) & (&mask)[*(uint *)(param_1 + 0x1c)];
}
uVar1 = (long)param_3 + (ulong)uVar5;
if (param_4 < uVar1) {
param_2[10] = 1;
}
else {
memset(param_3,0x20,(ulong)uVar5);
if (uVar1 != param_4) {
decode_bytes(param_1,param_2,uVar1,param_4);
return;
}
}
return;
}
| |
24,061 | 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 0x8b70a(%rip), %xmm0 # 0x1630f8
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 0xd7ab5
movq -0x30(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
cmpq -0x48(%rbp), %rax
jae 0xd7aa2
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rsi
movl -0x24(%rbp), %edx
callq 0xd7d20
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 0xd7a92
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 0xd7a94
movq -0x40(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x40(%rbp)
jmp 0xd7a2f
jmp 0xd7aa4
movq -0x30(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x30(%rbp)
jmp 0xd7a15
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_1630F8
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_D7A15:
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jnb loc_D7AB5
mov rax, [rbp+var_30]
add rax, 20h ; ' '
mov [rbp+var_40], rax
loc_D7A2F:
mov rax, [rbp+var_40]
cmp rax, [rbp+var_48]
jnb short loc_D7AA2
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_D7A92
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_D7A92:
jmp short $+2
loc_D7A94:
mov rax, [rbp+var_40]
add rax, 20h ; ' '
mov [rbp+var_40], rax
jmp short loc_D7A2F
loc_D7AA2:
jmp short $+2
loc_D7AA4:
mov rax, [rbp+var_30]
add rax, 20h ; ' '
mov [rbp+var_30], rax
jmp loc_D7A15
loc_D7AB5:
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 [0x002630f8]
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_001d7a15:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x001d7ab5
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x20
MOV qword ptr [RBP + -0x40],RAX
LAB_001d7a2f:
MOV RAX,qword ptr [RBP + -0x40]
CMP RAX,qword ptr [RBP + -0x48]
JNC 0x001d7aa2
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 0x001d7d20
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 0x001d7a92
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_001d7a92:
JMP 0x001d7a94
LAB_001d7a94:
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,0x20
MOV qword ptr [RBP + -0x40],RAX
JMP 0x001d7a2f
LAB_001d7aa2:
JMP 0x001d7aa4
LAB_001d7aa4:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x20
MOV qword ptr [RBP + -0x30],RAX
JMP 0x001d7a15
LAB_001d7ab5:
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_002630f8;
*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;
}
| |
24,062 | get_typed_array | bluesky950520[P]quickjs/quickjs.c | static JSObject *get_typed_array(JSContext *ctx, JSValue this_val)
{
JSObject *p;
if (JS_VALUE_GET_TAG(this_val) != JS_TAG_OBJECT)
goto fail;
p = JS_VALUE_GET_OBJ(this_val);
if (!(p->class_id >= JS_CLASS_UINT8C_ARRAY &&
p->class_id <= JS_CLASS_FLOAT64_ARRAY)) {
fail:
JS_ThrowTypeError(ctx, "not a TypedArray");
return NULL;
}
return p;
} | O0 | c | get_typed_array:
subq $0x38, %rsp
movq %rsi, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq %rdi, 0x18(%rsp)
movq 0x28(%rsp), %rax
cmpl $-0x1, %eax
je 0x5769f
jmp 0x576c7
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movzwl 0x6(%rax), %eax
cmpl $0x15, %eax
jl 0x576c5
movq 0x10(%rsp), %rax
movzwl 0x6(%rax), %eax
cmpl $0x20, %eax
jle 0x576ee
jmp 0x576c7
movq 0x18(%rsp), %rdi
leaq 0xb8649(%rip), %rsi # 0x10fd1c
movb $0x0, %al
callq 0x2c040
movq %rax, (%rsp)
movq %rdx, 0x8(%rsp)
movq $0x0, 0x30(%rsp)
jmp 0x576f8
movq 0x10(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
| get_typed_array:
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_5769F
jmp short loc_576C7
loc_5769F:
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, 15h
jl short loc_576C5
mov rax, [rsp+38h+var_28]
movzx eax, word ptr [rax+6]
cmp eax, 20h ; ' '
jle short loc_576EE
loc_576C5:
jmp short $+2
loc_576C7:
mov rdi, [rsp+38h+var_20]
lea rsi, aNotATypedarray; "not a TypedArray"
mov al, 0
call JS_ThrowTypeError
mov [rsp+38h+var_38], rax
mov [rsp+38h+var_30], rdx
mov [rsp+38h+var_8], 0
jmp short loc_576F8
loc_576EE:
mov rax, [rsp+38h+var_28]
mov [rsp+38h+var_8], rax
loc_576F8:
mov rax, [rsp+38h+var_8]
add rsp, 38h
retn
| long long get_typed_array(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
char v15; // [rsp+0h] [rbp-38h]
if ( (_DWORD)a3 == -1 && *(unsigned __int16 *)(a2 + 6) >= 0x15u && *(unsigned __int16 *)(a2 + 6) <= 0x20u )
return a2;
JS_ThrowTypeError(a1, (long long)"not a TypedArray", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v15);
return 0LL;
}
| get_typed_array:
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 0x0015769f
JMP 0x001576c7
LAB_0015769f:
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,0x15
JL 0x001576c5
MOV RAX,qword ptr [RSP + 0x10]
MOVZX EAX,word ptr [RAX + 0x6]
CMP EAX,0x20
JLE 0x001576ee
LAB_001576c5:
JMP 0x001576c7
LAB_001576c7:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[0x20fd1c]
MOV AL,0x0
CALL 0x0012c040
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x8],RDX
MOV qword ptr [RSP + 0x30],0x0
JMP 0x001576f8
LAB_001576ee:
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x30],RAX
LAB_001576f8:
MOV RAX,qword ptr [RSP + 0x30]
ADD RSP,0x38
RET
|
long get_typed_array(int8 param_1,long param_2,int param_3)
{
long local_8;
if (((param_3 != -1) || (*(ushort *)(param_2 + 6) < 0x15)) ||
(local_8 = param_2, 0x20 < *(ushort *)(param_2 + 6))) {
JS_ThrowTypeError(param_1,"not a TypedArray");
local_8 = 0;
}
return local_8;
}
| |
24,063 | get_typed_array | bluesky950520[P]quickjs/quickjs.c | static JSObject *get_typed_array(JSContext *ctx, JSValue this_val)
{
JSObject *p;
if (JS_VALUE_GET_TAG(this_val) != JS_TAG_OBJECT)
goto fail;
p = JS_VALUE_GET_OBJ(this_val);
if (!(p->class_id >= JS_CLASS_UINT8C_ARRAY &&
p->class_id <= JS_CLASS_FLOAT64_ARRAY)) {
fail:
JS_ThrowTypeError(ctx, "not a TypedArray");
return NULL;
}
return p;
} | O1 | c | get_typed_array:
pushq %rbx
subq $0x10, %rsp
movq %rsi, 0x8(%rsp)
cmpl $-0x1, %edx
jne 0x38a97
movq 0x8(%rsp), %rbx
movzwl 0x6(%rbx), %eax
addl $-0x15, %eax
cmpw $0xc, %ax
jb 0x38aa7
leaq 0x6826b(%rip), %rsi # 0xa0d09
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x21953
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
| get_typed_array:
push rbx
sub rsp, 10h
mov [rsp+18h+var_10], rsi
cmp edx, 0FFFFFFFFh
jnz short loc_38A97
mov rbx, [rsp+18h+var_10]
movzx eax, word ptr [rbx+6]
add eax, 0FFFFFFEBh
cmp ax, 0Ch
jb short loc_38AA7
loc_38A97:
lea rsi, aNotATypedarray; "not a TypedArray"
xor ebx, ebx
xor eax, eax
call JS_ThrowTypeError
loc_38AA7:
mov rax, rbx
add rsp, 10h
pop rbx
retn
| long long get_typed_array(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
long long v14; // rbx
char v16; // [rsp+0h] [rbp-18h]
if ( (_DWORD)a3 != -1 || (v14 = a2, (unsigned __int16)(*(_WORD *)(a2 + 6) - 21) >= 0xCu) )
{
v14 = 0LL;
JS_ThrowTypeError(a1, (long long)"not a TypedArray", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v16);
}
return v14;
}
| get_typed_array:
PUSH RBX
SUB RSP,0x10
MOV qword ptr [RSP + 0x8],RSI
CMP EDX,-0x1
JNZ 0x00138a97
MOV RBX,qword ptr [RSP + 0x8]
MOVZX EAX,word ptr [RBX + 0x6]
ADD EAX,-0x15
CMP AX,0xc
JC 0x00138aa7
LAB_00138a97:
LEA RSI,[0x1a0d09]
XOR EBX,EBX
XOR EAX,EAX
CALL 0x00121953
LAB_00138aa7:
MOV RAX,RBX
ADD RSP,0x10
POP RBX
RET
|
long get_typed_array(int8 param_1,long param_2,int param_3)
{
if ((param_3 != -1) || (0xb < (ushort)(*(short *)(param_2 + 6) - 0x15U))) {
param_2 = 0;
JS_ThrowTypeError(param_1,"not a TypedArray");
}
return param_2;
}
| |
24,064 | get_typed_array | bluesky950520[P]quickjs/quickjs.c | static JSObject *get_typed_array(JSContext *ctx, JSValue this_val)
{
JSObject *p;
if (JS_VALUE_GET_TAG(this_val) != JS_TAG_OBJECT)
goto fail;
p = JS_VALUE_GET_OBJ(this_val);
if (!(p->class_id >= JS_CLASS_UINT8C_ARRAY &&
p->class_id <= JS_CLASS_FLOAT64_ARRAY)) {
fail:
JS_ThrowTypeError(ctx, "not a TypedArray");
return NULL;
}
return p;
} | O3 | c | get_typed_array:
pushq %rbx
cmpl $-0x1, %edx
jne 0x82757
movzwl 0x6(%rsi), %eax
addl $-0x15, %eax
cmpw $0xc, %ax
jae 0x82757
movq 0x30(%rsi), %rax
movq 0x18(%rax), %rbx
incl (%rbx)
movq $-0x1, %rdx
jmp 0x8276c
leaq 0x21565(%rip), %rsi # 0xa3cc3
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x2214f
movl $0x6, %edx
movq %rbx, %rax
popq %rbx
retq
| js_typed_array_get_buffer:
push rbx
cmp edx, 0FFFFFFFFh
jnz short loc_82757
movzx eax, word ptr [rsi+6]
add eax, 0FFFFFFEBh
cmp ax, 0Ch
jnb short loc_82757
mov rax, [rsi+30h]
mov rbx, [rax+18h]
inc dword ptr [rbx]
mov rdx, 0FFFFFFFFFFFFFFFFh
jmp short loc_8276C
loc_82757:
lea rsi, aNotATypedarray; "not a TypedArray"
xor ebx, ebx
xor eax, eax
call JS_ThrowTypeError
mov edx, 6
loc_8276C:
mov rax, rbx
pop rbx
retn
| _DWORD * js_typed_array_get_buffer(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
_DWORD *v14; // rbx
char v16; // [rsp+0h] [rbp-8h]
if ( (_DWORD)a3 == -1 && (unsigned __int16)(*(_WORD *)(a2 + 6) - 21) < 0xCu )
{
v14 = *(_DWORD **)(*(_QWORD *)(a2 + 48) + 24LL);
++*v14;
}
else
{
v14 = 0LL;
JS_ThrowTypeError(a1, (long long)"not a TypedArray", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v16);
}
return v14;
}
| js_typed_array_get_buffer:
PUSH RBX
CMP EDX,-0x1
JNZ 0x00182757
MOVZX EAX,word ptr [RSI + 0x6]
ADD EAX,-0x15
CMP AX,0xc
JNC 0x00182757
MOV RAX,qword ptr [RSI + 0x30]
MOV RBX,qword ptr [RAX + 0x18]
INC dword ptr [RBX]
MOV RDX,-0x1
JMP 0x0018276c
LAB_00182757:
LEA RSI,[0x1a3cc3]
XOR EBX,EBX
XOR EAX,EAX
CALL 0x0012214f
MOV EDX,0x6
LAB_0018276c:
MOV RAX,RBX
POP RBX
RET
|
int1 [16] js_typed_array_get_buffer(int8 param_1,long param_2,int param_3)
{
int8 uVar1;
int *piVar2;
int1 auVar3 [16];
if ((param_3 == -1) && ((ushort)(*(short *)(param_2 + 6) - 0x15U) < 0xc)) {
piVar2 = *(int **)(*(long *)(param_2 + 0x30) + 0x18);
*piVar2 = *piVar2 + 1;
uVar1 = 0xffffffffffffffff;
}
else {
piVar2 = (int *)0x0;
JS_ThrowTypeError(param_1,"not a TypedArray");
uVar1 = 6;
}
auVar3._8_8_ = uVar1;
auVar3._0_8_ = piVar2;
return auVar3;
}
| |
24,065 | OpenSubdiv::v3_6_0::Far::PatchBuilder::getRegularFacePoints(int, int, int*, int) const | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchBuilder.cpp | int
PatchBuilder::getRegularFacePoints(int levelIndex, Index faceIndex,
Index patchPoints[], int fvarChannel) const {
Level const & level = _refiner.getLevel(levelIndex);
ConstIndexArray facePoints = (fvarChannel < 0)
? level.getFaceVertices(faceIndex)
: level.getFaceFVarValues(faceIndex, fvarChannel);
for (int i = 0; i < facePoints.size(); ++i) {
patchPoints[i] = facePoints[i];
}
return facePoints.size();
} | O1 | cpp | OpenSubdiv::v3_6_0::Far::PatchBuilder::getRegularFacePoints(int, int, int*, int) const:
pushq %rbx
movq %rcx, %rbx
movq 0x8(%rdi), %rax
movslq %esi, %rcx
movq 0x30(%rax), %rax
movq (%rax,%rcx,8), %rdi
testl %r8d, %r8d
js 0x6625c
movl %edx, %esi
movl %r8d, %edx
callq 0x3af30
jmp 0x6627f
movl %edx, %ecx
addl %edx, %ecx
leal 0x1(,%rdx,2), %eax
cltq
movq 0x18(%rdi), %rdx
movslq (%rdx,%rax,4), %rax
shlq $0x2, %rax
addq 0x30(%rdi), %rax
movslq %ecx, %rcx
movl (%rdx,%rcx,4), %edx
testl %edx, %edx
jle 0x66295
movl %edx, %ecx
xorl %esi, %esi
movl (%rax,%rsi,4), %edi
movl %edi, (%rbx,%rsi,4)
incq %rsi
cmpq %rsi, %rcx
jne 0x66287
movl %edx, %eax
popq %rbx
retq
nop
| _ZNK10OpenSubdiv6v3_6_03Far12PatchBuilder20getRegularFacePointsEiiPii:
push rbx
mov rbx, rcx
mov rax, [rdi+8]
movsxd rcx, esi
mov rax, [rax+30h]
mov rdi, [rax+rcx*8]; this
test r8d, r8d
js short loc_6625C
mov esi, edx; int
mov edx, r8d; int
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level17getFaceFVarValuesEii; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceFVarValues(int,int)
jmp short loc_6627F
loc_6625C:
mov ecx, edx
add ecx, edx
lea eax, ds:1[rdx*2]
cdqe
mov rdx, [rdi+18h]
movsxd rax, dword ptr [rdx+rax*4]
shl rax, 2
add rax, [rdi+30h]
movsxd rcx, ecx
mov edx, [rdx+rcx*4]
loc_6627F:
test edx, edx
jle short loc_66295
mov ecx, edx
xor esi, esi
loc_66287:
mov edi, [rax+rsi*4]
mov [rbx+rsi*4], edi
inc rsi
cmp rcx, rsi
jnz short loc_66287
loc_66295:
mov eax, edx
pop rbx
retn
| long long OpenSubdiv::v3_6_0::Far::PatchBuilder::getRegularFacePoints(
OpenSubdiv::v3_6_0::Far::PatchBuilder *this,
int a2,
int a3,
int *a4,
int a5)
{
OpenSubdiv::v3_6_0::Vtr::internal::Level *v6; // rdi
long long FaceFVarValues; // rax
int v8; // edx
int v9; // ecx
long long v10; // rax
long long v11; // rdx
long long i; // rsi
v6 = *(OpenSubdiv::v3_6_0::Vtr::internal::Level **)(*(_QWORD *)(*((_QWORD *)this + 1) + 48LL) + 8LL * a2);
if ( a5 < 0 )
{
v9 = 2 * a3;
v10 = 2 * a3 + 1;
v11 = *((_QWORD *)v6 + 3);
FaceFVarValues = *((_QWORD *)v6 + 6) + 4LL * *(int *)(v11 + 4 * v10);
v8 = *(_DWORD *)(v11 + 4LL * v9);
}
else
{
FaceFVarValues = OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceFVarValues(v6, a3, a5);
}
if ( v8 > 0 )
{
for ( i = 0LL; i != v8; ++i )
a4[i] = *(_DWORD *)(FaceFVarValues + 4 * i);
}
return (unsigned int)v8;
}
| getRegularFacePoints:
PUSH RBX
MOV RBX,RCX
MOV RAX,qword ptr [RDI + 0x8]
MOVSXD RCX,ESI
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RAX + RCX*0x8]
TEST R8D,R8D
JS 0x0016625c
MOV ESI,EDX
MOV EDX,R8D
CALL 0x0013af30
JMP 0x0016627f
LAB_0016625c:
MOV ECX,EDX
ADD ECX,EDX
LEA EAX,[0x1 + RDX*0x2]
CDQE
MOV RDX,qword ptr [RDI + 0x18]
MOVSXD RAX,dword ptr [RDX + RAX*0x4]
SHL RAX,0x2
ADD RAX,qword ptr [RDI + 0x30]
MOVSXD RCX,ECX
MOV EDX,dword ptr [RDX + RCX*0x4]
LAB_0016627f:
TEST EDX,EDX
JLE 0x00166295
MOV ECX,EDX
XOR ESI,ESI
LAB_00166287:
MOV EDI,dword ptr [RAX + RSI*0x4]
MOV dword ptr [RBX + RSI*0x4],EDI
INC RSI
CMP RCX,RSI
JNZ 0x00166287
LAB_00166295:
MOV EAX,EDX
POP RBX
RET
|
/* OpenSubdiv::v3_6_0::Far::PatchBuilder::getRegularFacePoints(int, int, int*, int) const */
uint __thiscall
OpenSubdiv::v3_6_0::Far::PatchBuilder::getRegularFacePoints
(PatchBuilder *this,int param_1,int param_2,int *param_3,int param_4)
{
Level *this_00;
uint uVar1;
ulong uVar2;
int1 auVar3 [12];
this_00 = *(Level **)(*(long *)(*(long *)(this + 8) + 0x30) + (long)param_1 * 8);
if (param_4 < 0) {
auVar3._8_4_ = *(int4 *)(*(long *)(this_00 + 0x18) + (long)(param_2 * 2) * 4);
auVar3._0_8_ = (long)*(int *)(*(long *)(this_00 + 0x18) + (long)(param_2 * 2 + 1) * 4) * 4 +
*(long *)(this_00 + 0x30);
}
else {
auVar3 = Vtr::internal::Level::getFaceFVarValues(this_00,param_2,param_4);
}
uVar1 = auVar3._8_4_;
if (0 < (int)uVar1) {
uVar2 = 0;
do {
param_3[uVar2] = *(int *)(auVar3._0_8_ + uVar2 * 4);
uVar2 = uVar2 + 1;
} while (uVar1 != uVar2);
}
return uVar1;
}
| |
24,066 | OpenSubdiv::v3_6_0::Far::PatchBuilder::getRegularFacePoints(int, int, int*, int) const | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchBuilder.cpp | int
PatchBuilder::getRegularFacePoints(int levelIndex, Index faceIndex,
Index patchPoints[], int fvarChannel) const {
Level const & level = _refiner.getLevel(levelIndex);
ConstIndexArray facePoints = (fvarChannel < 0)
? level.getFaceVertices(faceIndex)
: level.getFaceFVarValues(faceIndex, fvarChannel);
for (int i = 0; i < facePoints.size(); ++i) {
patchPoints[i] = facePoints[i];
}
return facePoints.size();
} | O2 | cpp | OpenSubdiv::v3_6_0::Far::PatchBuilder::getRegularFacePoints(int, int, int*, int) const:
pushq %rbx
movq %rcx, %rbx
movq 0x8(%rdi), %rax
movslq %esi, %rcx
movq 0x30(%rax), %rax
movq (%rax,%rcx,8), %rdi
movl %edx, %esi
testl %r8d, %r8d
js 0x79184
movl %r8d, %edx
callq 0x53d20
jmp 0x79189
callq 0x52db0
xorl %ecx, %ecx
testl %edx, %edx
movl %edx, %esi
cmovlel %ecx, %esi
cmpq %rcx, %rsi
je 0x791a2
movl (%rax,%rcx,4), %edi
movl %edi, (%rbx,%rcx,4)
incq %rcx
jmp 0x79192
movl %edx, %eax
popq %rbx
retq
| _ZNK10OpenSubdiv6v3_6_03Far12PatchBuilder20getRegularFacePointsEiiPii:
push rbx
mov rbx, rcx
mov rax, [rdi+8]
movsxd rcx, esi
mov rax, [rax+30h]
mov rdi, [rax+rcx*8]; this
mov esi, edx; int
test r8d, r8d
js short loc_79184
mov edx, r8d; int
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level17getFaceFVarValuesEii; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceFVarValues(int,int)
jmp short loc_79189
loc_79184:
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level15getFaceVerticesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(int)
loc_79189:
xor ecx, ecx
test edx, edx
mov esi, edx
cmovle esi, ecx
loc_79192:
cmp rsi, rcx
jz short loc_791A2
mov edi, [rax+rcx*4]
mov [rbx+rcx*4], edi
inc rcx
jmp short loc_79192
loc_791A2:
mov eax, edx
pop rbx
retn
| long long OpenSubdiv::v3_6_0::Far::PatchBuilder::getRegularFacePoints(
OpenSubdiv::v3_6_0::Far::PatchBuilder *this,
int a2,
int a3,
int *a4,
int a5)
{
OpenSubdiv::v3_6_0::Vtr::internal::Level *v6; // rdi
long long FaceVertices; // rax
int v8; // edx
long long v9; // rcx
long long v10; // rsi
v6 = *(OpenSubdiv::v3_6_0::Vtr::internal::Level **)(*(_QWORD *)(*((_QWORD *)this + 1) + 48LL) + 8LL * a2);
if ( a5 < 0 )
FaceVertices = OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(v6, a3);
else
FaceVertices = OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceFVarValues(v6, a3, a5);
v9 = 0LL;
v10 = (unsigned int)v8;
if ( v8 <= 0 )
v10 = 0LL;
while ( v10 != v9 )
{
a4[v9] = *(_DWORD *)(FaceVertices + 4 * v9);
++v9;
}
return (unsigned int)v8;
}
| getRegularFacePoints:
PUSH RBX
MOV RBX,RCX
MOV RAX,qword ptr [RDI + 0x8]
MOVSXD RCX,ESI
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RAX + RCX*0x8]
MOV ESI,EDX
TEST R8D,R8D
JS 0x00179184
MOV EDX,R8D
CALL 0x00153d20
JMP 0x00179189
LAB_00179184:
CALL 0x00152db0
LAB_00179189:
XOR ECX,ECX
TEST EDX,EDX
MOV ESI,EDX
CMOVLE ESI,ECX
LAB_00179192:
CMP RSI,RCX
JZ 0x001791a2
MOV EDI,dword ptr [RAX + RCX*0x4]
MOV dword ptr [RBX + RCX*0x4],EDI
INC RCX
JMP 0x00179192
LAB_001791a2:
MOV EAX,EDX
POP RBX
RET
|
/* OpenSubdiv::v3_6_0::Far::PatchBuilder::getRegularFacePoints(int, int, int*, int) const */
uint __thiscall
OpenSubdiv::v3_6_0::Far::PatchBuilder::getRegularFacePoints
(PatchBuilder *this,int param_1,int param_2,int *param_3,int param_4)
{
Level *this_00;
ulong uVar1;
uint uVar2;
ulong uVar3;
int1 auVar4 [12];
this_00 = *(Level **)(*(long *)(*(long *)(this + 8) + 0x30) + (long)param_1 * 8);
if (param_4 < 0) {
auVar4 = Vtr::internal::Level::getFaceVertices(this_00,param_2);
}
else {
auVar4 = Vtr::internal::Level::getFaceFVarValues(this_00,param_2,param_4);
}
uVar2 = auVar4._8_4_;
uVar1 = 0;
uVar3 = (ulong)uVar2;
if ((int)uVar2 < 1) {
uVar3 = uVar1;
}
for (; uVar3 != uVar1; uVar1 = uVar1 + 1) {
param_3[uVar1] = *(int *)(auVar4._0_8_ + uVar1 * 4);
}
return uVar2;
}
| |
24,067 | OpenSubdiv::v3_6_0::Far::PatchBuilder::getRegularFacePoints(int, int, int*, int) const | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchBuilder.cpp | int
PatchBuilder::getRegularFacePoints(int levelIndex, Index faceIndex,
Index patchPoints[], int fvarChannel) const {
Level const & level = _refiner.getLevel(levelIndex);
ConstIndexArray facePoints = (fvarChannel < 0)
? level.getFaceVertices(faceIndex)
: level.getFaceFVarValues(faceIndex, fvarChannel);
for (int i = 0; i < facePoints.size(); ++i) {
patchPoints[i] = facePoints[i];
}
return facePoints.size();
} | O3 | cpp | OpenSubdiv::v3_6_0::Far::PatchBuilder::getRegularFacePoints(int, int, int*, int) const:
pushq %rbx
movq %rcx, %rbx
movq 0x8(%rdi), %rax
movslq %esi, %rcx
movq 0x30(%rax), %rax
movq (%rax,%rcx,8), %rdi
testl %r8d, %r8d
js 0x67760
movl %edx, %esi
movl %r8d, %edx
callq 0x3aef0
jmp 0x67783
movl %edx, %ecx
addl %edx, %ecx
leal 0x1(,%rdx,2), %eax
cltq
movq 0x18(%rdi), %rdx
movslq (%rdx,%rax,4), %rax
shlq $0x2, %rax
addq 0x30(%rdi), %rax
movslq %ecx, %rcx
movl (%rdx,%rcx,4), %edx
testl %edx, %edx
jle 0x67799
movl %edx, %ecx
xorl %esi, %esi
movl (%rax,%rsi,4), %edi
movl %edi, (%rbx,%rsi,4)
incq %rsi
cmpq %rsi, %rcx
jne 0x6778b
movl %edx, %eax
popq %rbx
retq
nop
| _ZNK10OpenSubdiv6v3_6_03Far12PatchBuilder20getRegularFacePointsEiiPii:
push rbx
mov rbx, rcx
mov rax, [rdi+8]
movsxd rcx, esi
mov rax, [rax+30h]
mov rdi, [rax+rcx*8]; this
test r8d, r8d
js short loc_67760
mov esi, edx; int
mov edx, r8d; int
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level17getFaceFVarValuesEii; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceFVarValues(int,int)
jmp short loc_67783
loc_67760:
mov ecx, edx
add ecx, edx
lea eax, ds:1[rdx*2]
cdqe
mov rdx, [rdi+18h]
movsxd rax, dword ptr [rdx+rax*4]
shl rax, 2
add rax, [rdi+30h]
movsxd rcx, ecx
mov edx, [rdx+rcx*4]
loc_67783:
test edx, edx
jle short loc_67799
mov ecx, edx
xor esi, esi
loc_6778B:
mov edi, [rax+rsi*4]
mov [rbx+rsi*4], edi
inc rsi
cmp rcx, rsi
jnz short loc_6778B
loc_67799:
mov eax, edx
pop rbx
retn
| long long OpenSubdiv::v3_6_0::Far::PatchBuilder::getRegularFacePoints(
OpenSubdiv::v3_6_0::Far::PatchBuilder *this,
int a2,
int a3,
int *a4,
int a5)
{
OpenSubdiv::v3_6_0::Vtr::internal::Level *v6; // rdi
long long FaceFVarValues; // rax
int v8; // edx
int v9; // ecx
long long v10; // rax
long long v11; // rdx
long long i; // rsi
v6 = *(OpenSubdiv::v3_6_0::Vtr::internal::Level **)(*(_QWORD *)(*((_QWORD *)this + 1) + 48LL) + 8LL * a2);
if ( a5 < 0 )
{
v9 = 2 * a3;
v10 = 2 * a3 + 1;
v11 = *((_QWORD *)v6 + 3);
FaceFVarValues = *((_QWORD *)v6 + 6) + 4LL * *(int *)(v11 + 4 * v10);
v8 = *(_DWORD *)(v11 + 4LL * v9);
}
else
{
FaceFVarValues = OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceFVarValues(v6, a3, a5);
}
if ( v8 > 0 )
{
for ( i = 0LL; i != v8; ++i )
a4[i] = *(_DWORD *)(FaceFVarValues + 4 * i);
}
return (unsigned int)v8;
}
| getRegularFacePoints:
PUSH RBX
MOV RBX,RCX
MOV RAX,qword ptr [RDI + 0x8]
MOVSXD RCX,ESI
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RAX + RCX*0x8]
TEST R8D,R8D
JS 0x00167760
MOV ESI,EDX
MOV EDX,R8D
CALL 0x0013aef0
JMP 0x00167783
LAB_00167760:
MOV ECX,EDX
ADD ECX,EDX
LEA EAX,[0x1 + RDX*0x2]
CDQE
MOV RDX,qword ptr [RDI + 0x18]
MOVSXD RAX,dword ptr [RDX + RAX*0x4]
SHL RAX,0x2
ADD RAX,qword ptr [RDI + 0x30]
MOVSXD RCX,ECX
MOV EDX,dword ptr [RDX + RCX*0x4]
LAB_00167783:
TEST EDX,EDX
JLE 0x00167799
MOV ECX,EDX
XOR ESI,ESI
LAB_0016778b:
MOV EDI,dword ptr [RAX + RSI*0x4]
MOV dword ptr [RBX + RSI*0x4],EDI
INC RSI
CMP RCX,RSI
JNZ 0x0016778b
LAB_00167799:
MOV EAX,EDX
POP RBX
RET
|
/* OpenSubdiv::v3_6_0::Far::PatchBuilder::getRegularFacePoints(int, int, int*, int) const */
uint __thiscall
OpenSubdiv::v3_6_0::Far::PatchBuilder::getRegularFacePoints
(PatchBuilder *this,int param_1,int param_2,int *param_3,int param_4)
{
Level *this_00;
uint uVar1;
ulong uVar2;
int1 auVar3 [12];
this_00 = *(Level **)(*(long *)(*(long *)(this + 8) + 0x30) + (long)param_1 * 8);
if (param_4 < 0) {
auVar3._8_4_ = *(int4 *)(*(long *)(this_00 + 0x18) + (long)(param_2 * 2) * 4);
auVar3._0_8_ = (long)*(int *)(*(long *)(this_00 + 0x18) + (long)(param_2 * 2 + 1) * 4) * 4 +
*(long *)(this_00 + 0x30);
}
else {
auVar3 = Vtr::internal::Level::getFaceFVarValues(this_00,param_2,param_4);
}
uVar1 = auVar3._8_4_;
if (0 < (int)uVar1) {
uVar2 = 0;
do {
param_3[uVar2] = *(int *)(auVar3._0_8_ + uVar2 * 4);
uVar2 = uVar2 + 1;
} while (uVar1 != uVar2);
}
return uVar1;
}
| |
24,068 | unsigned long google::protobuf::internal::(anonymous namespace)::SizeOfUnion<google::protobuf::internal::ExtensionSet::KeyValue*, google::protobuf::internal::ExtensionSet::KeyValue const*>(google::protobuf::internal::ExtensionSet::KeyValue*, google::protobuf::internal::ExtensionSet::KeyValue*, google::protobuf::internal::ExtensionSet::KeyValue const*, google::protobuf::internal::ExtensionSet::KeyValue const*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc | size_t SizeOfUnion(ItX it_dest, ItX end_dest, ItY it_source, ItY end_source) {
size_t result = 0;
while (it_dest != end_dest && it_source != end_source) {
if (it_dest->first < it_source->first) {
++result;
++it_dest;
} else if (it_dest->first == it_source->first) {
++result;
++it_dest;
++it_source;
} else {
if (!it_source->second.is_cleared) {
++result;
}
++it_source;
}
}
result += std::distance(it_dest, end_dest);
for (; it_source != end_source; ++it_source) {
if (!it_source->second.is_cleared) {
++result;
}
}
return result;
} | O0 | cpp | unsigned long google::protobuf::internal::(anonymous namespace)::SizeOfUnion<google::protobuf::internal::ExtensionSet::KeyValue*, google::protobuf::internal::ExtensionSet::KeyValue const*>(google::protobuf::internal::ExtensionSet::KeyValue*, google::protobuf::internal::ExtensionSet::KeyValue*, google::protobuf::internal::ExtensionSet::KeyValue const*, google::protobuf::internal::ExtensionSet::KeyValue const*):
subq $0x38, %rsp
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
movq 0x20(%rsp), %rcx
xorl %eax, %eax
cmpq 0x18(%rsp), %rcx
movb %al, 0xf(%rsp)
je 0x1990e6
leaq 0x30(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x107430
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x1990f3
jmp 0x1991ab
movq 0x20(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x8(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x107450
movq %rax, %rcx
movl 0x8(%rsp), %eax
cmpl (%rcx), %eax
jge 0x199131
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rax
addq $0x20, %rax
movq %rax, 0x20(%rsp)
jmp 0x1991a6
movq 0x20(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x4(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x107450
movq %rax, %rcx
movl 0x4(%rsp), %eax
cmpl (%rcx), %eax
jne 0x199179
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rax
addq $0x20, %rax
movq %rax, 0x20(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x107480
jmp 0x1991a4
leaq 0x30(%rsp), %rdi
callq 0x107450
movb 0x12(%rax), %al
andb $0xf, %al
testb $0x1, %al
jne 0x19919a
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x107480
jmp 0x1991a6
jmp 0x1990c1
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x1a85e0
addq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x30(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x107430
testb $0x1, %al
jne 0x1991d9
jmp 0x199208
leaq 0x30(%rsp), %rdi
callq 0x107450
movb 0x12(%rax), %al
andb $0xf, %al
testb $0x1, %al
jne 0x1991fa
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x1991fc
leaq 0x30(%rsp), %rdi
callq 0x107480
jmp 0x1991c4
movq 0x10(%rsp), %rax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
| _ZN6google8protobuf8internal12_GLOBAL__N_111SizeOfUnionIPNS1_12ExtensionSet8KeyValueESt17_Rb_tree_iteratorISt4pairIKiNS4_9ExtensionEEEEEmT_SD_T0_SE_:
sub rsp, 38h
mov [rsp+38h+var_8], rdx
mov [rsp+38h+var_10], rcx
mov [rsp+38h+var_18], rdi
mov [rsp+38h+var_20], rsi
mov [rsp+38h+var_28], 0
loc_1990C1:
mov rcx, [rsp+38h+var_18]
xor eax, eax
cmp rcx, [rsp+38h+var_20]
mov [rsp+38h+var_29], al
jz short loc_1990E6
lea rdi, [rsp+38h+var_8]
lea rsi, [rsp+38h+var_10]
call _ZStneRKSt17_Rb_tree_iteratorISt4pairIKiN6google8protobuf8internal12ExtensionSet9ExtensionEEESA_; std::operator!=(std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>> const&,std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>> const&)
mov [rsp+38h+var_29], al
loc_1990E6:
mov al, [rsp+38h+var_29]
test al, 1
jnz short loc_1990F3
jmp loc_1991AB
loc_1990F3:
mov rax, [rsp+38h+var_18]
mov eax, [rax]
mov [rsp+38h+var_30], eax
lea rdi, [rsp+38h+var_8]
call _ZNKSt17_Rb_tree_iteratorISt4pairIKiN6google8protobuf8internal12ExtensionSet9ExtensionEEEptEv; std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>>::operator->(void)
mov rcx, rax
mov eax, [rsp+38h+var_30]
cmp eax, [rcx]
jge short loc_199131
mov rax, [rsp+38h+var_28]
add rax, 1
mov [rsp+38h+var_28], rax
mov rax, [rsp+38h+var_18]
add rax, 20h ; ' '
mov [rsp+38h+var_18], rax
jmp short loc_1991A6
loc_199131:
mov rax, [rsp+38h+var_18]
mov eax, [rax]
mov [rsp+38h+var_34], eax
lea rdi, [rsp+38h+var_8]
call _ZNKSt17_Rb_tree_iteratorISt4pairIKiN6google8protobuf8internal12ExtensionSet9ExtensionEEEptEv; std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>>::operator->(void)
mov rcx, rax
mov eax, [rsp+38h+var_34]
cmp eax, [rcx]
jnz short loc_199179
mov rax, [rsp+38h+var_28]
add rax, 1
mov [rsp+38h+var_28], rax
mov rax, [rsp+38h+var_18]
add rax, 20h ; ' '
mov [rsp+38h+var_18], rax
lea rdi, [rsp+38h+var_8]
call _ZNSt17_Rb_tree_iteratorISt4pairIKiN6google8protobuf8internal12ExtensionSet9ExtensionEEEppEv; std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>>::operator++(void)
jmp short loc_1991A4
loc_199179:
lea rdi, [rsp+38h+var_8]
call _ZNKSt17_Rb_tree_iteratorISt4pairIKiN6google8protobuf8internal12ExtensionSet9ExtensionEEEptEv; std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>>::operator->(void)
mov al, [rax+12h]
and al, 0Fh
test al, 1
jnz short loc_19919A
mov rax, [rsp+38h+var_28]
add rax, 1
mov [rsp+38h+var_28], rax
loc_19919A:
lea rdi, [rsp+38h+var_8]
call _ZNSt17_Rb_tree_iteratorISt4pairIKiN6google8protobuf8internal12ExtensionSet9ExtensionEEEppEv; std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>>::operator++(void)
loc_1991A4:
jmp short $+2
loc_1991A6:
jmp loc_1990C1
loc_1991AB:
mov rdi, [rsp+38h+var_18]
mov rsi, [rsp+38h+var_20]
call _ZSt8distanceIPN6google8protobuf8internal12ExtensionSet8KeyValueEENSt15iterator_traitsIT_E15difference_typeES7_S7_; std::distance<google::protobuf::internal::ExtensionSet::KeyValue *>(google::protobuf::internal::ExtensionSet::KeyValue *,google::protobuf::internal::ExtensionSet::KeyValue *)
add rax, [rsp+38h+var_28]
mov [rsp+38h+var_28], rax
loc_1991C4:
lea rdi, [rsp+38h+var_8]
lea rsi, [rsp+38h+var_10]
call _ZStneRKSt17_Rb_tree_iteratorISt4pairIKiN6google8protobuf8internal12ExtensionSet9ExtensionEEESA_; std::operator!=(std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>> const&,std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>> const&)
test al, 1
jnz short loc_1991D9
jmp short loc_199208
loc_1991D9:
lea rdi, [rsp+38h+var_8]
call _ZNKSt17_Rb_tree_iteratorISt4pairIKiN6google8protobuf8internal12ExtensionSet9ExtensionEEEptEv; std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>>::operator->(void)
mov al, [rax+12h]
and al, 0Fh
test al, 1
jnz short loc_1991FA
mov rax, [rsp+38h+var_28]
add rax, 1
mov [rsp+38h+var_28], rax
loc_1991FA:
jmp short $+2
loc_1991FC:
lea rdi, [rsp+38h+var_8]
call _ZNSt17_Rb_tree_iteratorISt4pairIKiN6google8protobuf8internal12ExtensionSet9ExtensionEEEppEv; std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>>::operator++(void)
jmp short loc_1991C4
loc_199208:
mov rax, [rsp+38h+var_28]
add rsp, 38h
retn
| long long google::protobuf::internal::`anonymous namespace'::SizeOfUnion<google::protobuf::internal::ExtensionSet::KeyValue *,std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>>>(
int *a1,
int *a2,
long long a3,
long long a4)
{
int v5; // [rsp+4h] [rbp-34h]
int v6; // [rsp+8h] [rbp-30h]
bool v7; // [rsp+Fh] [rbp-29h]
long long v8; // [rsp+10h] [rbp-28h]
long long v9; // [rsp+10h] [rbp-28h]
long long v11; // [rsp+28h] [rbp-10h] BYREF
long long v12; // [rsp+30h] [rbp-8h] BYREF
v12 = a3;
v11 = a4;
v8 = 0LL;
while ( 1 )
{
v7 = 0;
if ( a1 != a2 )
v7 = std::operator!=(&v12, &v11);
if ( !v7 )
break;
v6 = *a1;
if ( v6 >= *(_DWORD *)std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>>::operator->(&v12) )
{
v5 = *a1;
if ( v5 == *(_DWORD *)std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>>::operator->(&v12) )
{
++v8;
a1 += 8;
std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>>::operator++(&v12);
}
else
{
if ( (*(_BYTE *)(std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>>::operator->(&v12)
+ 18) & 1) == 0 )
++v8;
std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>>::operator++(&v12);
}
}
else
{
++v8;
a1 += 8;
}
}
v9 = v8 + std::distance<google::protobuf::internal::ExtensionSet::KeyValue *>(a1, a2);
while ( std::operator!=(&v12, &v11) )
{
if ( (*(_BYTE *)(std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>>::operator->(&v12)
+ 18) & 1) == 0 )
++v9;
std::_Rb_tree_iterator<std::pair<int const,google::protobuf::internal::ExtensionSet::Extension>>::operator++(&v12);
}
return v9;
}
| max_size:
PUSH RAX
MOV qword ptr [RSP],RDI
MOV RDI,qword ptr [RSP]
CALL 0x001990b0
POP RCX
RET
|
/* __gnu_cxx::new_allocator<int>::max_size() const */
void __gnu_cxx::new_allocator<int>::max_size(void)
{
_M_max_size();
return;
}
| |
24,069 | end_key_cache_internal | eloqsql/mysys/mf_keycache.c | static
void end_key_cache_internal(KEY_CACHE *keycache, my_bool cleanup,
my_bool use_op_lock)
{
if (keycache->key_cache_inited)
{
keycache->interface_funcs->end(keycache->keycache_cb, cleanup);
if (cleanup)
{
if (keycache->keycache_cb)
{
my_free(keycache->keycache_cb);
keycache->keycache_cb= 0;
}
/*
We do not destroy op_lock if we are going to reuse the same key cache.
This happens if we are called from repartition_key_cache_internal().
*/
if (use_op_lock)
pthread_mutex_destroy(&keycache->op_lock);
keycache->key_cache_inited= 0;
}
keycache->can_be_used= 0;
}
} | O0 | c | end_key_cache_internal:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movb %dl, %al
movb %sil, %cl
movq %rdi, -0x8(%rbp)
movb %cl, -0x9(%rbp)
movb %al, -0xa(%rbp)
movq -0x8(%rbp), %rax
cmpb $0x0, 0x48(%rax)
je 0xe4ac8
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x40(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x8(%rcx), %rdi
movsbl -0x9(%rbp), %esi
callq *%rax
cmpb $0x0, -0x9(%rbp)
je 0xe4ac0
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0xe4aa5
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0xf3bb0
movq -0x8(%rbp), %rax
movq $0x0, 0x8(%rax)
cmpb $0x0, -0xa(%rbp)
je 0xe4ab8
movq -0x8(%rbp), %rdi
addq $0x58, %rdi
callq 0x2a0d0
movq -0x8(%rbp), %rax
movb $0x0, 0x48(%rax)
movq -0x8(%rbp), %rax
movb $0x0, 0x49(%rax)
addq $0x10, %rsp
popq %rbp
retq
nop
| end_key_cache_internal:
push rbp
mov rbp, rsp
sub rsp, 10h
mov al, dl
mov cl, sil
mov [rbp+var_8], rdi
mov [rbp+var_9], cl
mov [rbp+var_A], al
mov rax, [rbp+var_8]
cmp byte ptr [rax+48h], 0
jz short loc_E4AC8
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov rax, [rax+40h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+8]
movsx esi, [rbp+var_9]
call rax
cmp [rbp+var_9], 0
jz short loc_E4AC0
mov rax, [rbp+var_8]
cmp qword ptr [rax+8], 0
jz short loc_E4AA5
mov rax, [rbp+var_8]
mov rdi, [rax+8]
call my_free
mov rax, [rbp+var_8]
mov qword ptr [rax+8], 0
loc_E4AA5:
cmp [rbp+var_A], 0
jz short loc_E4AB8
mov rdi, [rbp+var_8]
add rdi, 58h ; 'X'
call _pthread_mutex_destroy
loc_E4AB8:
mov rax, [rbp+var_8]
mov byte ptr [rax+48h], 0
loc_E4AC0:
mov rax, [rbp+var_8]
mov byte ptr [rax+49h], 0
loc_E4AC8:
add rsp, 10h
pop rbp
retn
| long long end_key_cache_internal(long long a1, char a2, char a3)
{
long long result; // rax
result = a1;
if ( *(_BYTE *)(a1 + 72) )
{
(*(void ( **)(_QWORD, _QWORD))(*(_QWORD *)(a1 + 16) + 64LL))(*(_QWORD *)(a1 + 8), (unsigned int)a2);
if ( a2 )
{
if ( *(_QWORD *)(a1 + 8) )
{
my_free(*(_QWORD *)(a1 + 8));
*(_QWORD *)(a1 + 8) = 0LL;
}
if ( a3 )
pthread_mutex_destroy(a1 + 88);
*(_BYTE *)(a1 + 72) = 0;
}
result = a1;
*(_BYTE *)(a1 + 73) = 0;
}
return result;
}
| end_key_cache_internal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV AL,DL
MOV CL,SIL
MOV qword ptr [RBP + -0x8],RDI
MOV byte ptr [RBP + -0x9],CL
MOV byte ptr [RBP + -0xa],AL
MOV RAX,qword ptr [RBP + -0x8]
CMP byte ptr [RAX + 0x48],0x0
JZ 0x001e4ac8
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RCX + 0x8]
MOVSX ESI,byte ptr [RBP + -0x9]
CALL RAX
CMP byte ptr [RBP + -0x9],0x0
JZ 0x001e4ac0
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x001e4aa5
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001f3bb0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x8],0x0
LAB_001e4aa5:
CMP byte ptr [RBP + -0xa],0x0
JZ 0x001e4ab8
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x58
CALL 0x0012a0d0
LAB_001e4ab8:
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x48],0x0
LAB_001e4ac0:
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x49],0x0
LAB_001e4ac8:
ADD RSP,0x10
POP RBP
RET
|
void end_key_cache_internal(long param_1,char param_2,char param_3)
{
if (*(char *)(param_1 + 0x48) != '\0') {
(**(code **)(*(long *)(param_1 + 0x10) + 0x40))(*(int8 *)(param_1 + 8),(int)param_2);
if (param_2 != '\0') {
if (*(long *)(param_1 + 8) != 0) {
my_free(*(int8 *)(param_1 + 8));
*(int8 *)(param_1 + 8) = 0;
}
if (param_3 != '\0') {
pthread_mutex_destroy((pthread_mutex_t *)(param_1 + 0x58));
}
*(int1 *)(param_1 + 0x48) = 0;
}
*(int1 *)(param_1 + 0x49) = 0;
}
return;
}
| |
24,070 | testing::internal::StreamingListener::OnTestPartResult(testing::TestPartResult const&) | AlayaLite/build_O3/_deps/googletest-src/googletest/src/gtest-internal-inl.h | void OnTestPartResult(const TestPartResult& test_part_result) override {
const char* file_name = test_part_result.file_name();
if (file_name == nullptr) file_name = "";
SendLn("event=TestPartResult&file=" + UrlEncode(file_name) +
"&line=" + StreamableToString(test_part_result.line_number()) +
"&message=" + UrlEncode(test_part_result.message()));
} | O3 | c | testing::internal::StreamingListener::OnTestPartResult(testing::TestPartResult const&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x110, %rsp # imm = 0x110
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10(%rsi), %rax
testq %rax, %rax
je 0x79c55
movq 0x8(%r14), %rax
testq %rax, %rax
leaq 0xd8c8(%rip), %rsi # 0x87527
cmovneq %rax, %rsi
leaq 0xf0(%rsp), %r15
movq %r15, %rdi
callq 0x6e614
leaq 0xea0d(%rip), %rcx # 0x88687
movl $0x1a, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1a66c
leaq 0xd8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x79cbc
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
jmp 0x79cc3
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0xc8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe9b9(%rip), %rsi # 0x886a2
callq 0x25290
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x79d16
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x79d1e
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x28(%r14), %eax
leaq 0xec(%rsp), %rsi
movl %eax, (%rsi)
leaq 0xa8(%rsp), %rdi
callq 0x73ab7
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %r8
movq 0xb0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x79d76
movq 0x58(%rsp), %rdi
movq 0xa8(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x79da2
leaq 0xb8(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x79d9d
movq 0xb8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x79dae
leaq 0x48(%rsp), %rdi
callq 0x252d6
jmp 0x79dbf
leaq 0xa8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1a66c
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x79de3
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x79de9
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xe89c(%rip), %rsi # 0x886a9
leaq 0x8(%rsp), %rdi
callq 0x25290
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x79e3e
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x79e46
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x50(%r14), %rsi
leaq 0x88(%rsp), %rdi
callq 0x6e614
movq 0x68(%rsp), %rcx
movq 0x70(%rsp), %r8
movq 0x90(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x79e94
movq 0x78(%rsp), %rdi
movq 0x88(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x79ec0
leaq 0x98(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x79ebb
movq 0x98(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x79ecc
leaq 0x68(%rsp), %rdi
callq 0x252d6
jmp 0x79edd
leaq 0x88(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1a66c
leaq 0x38(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x79f01
movq %rsi, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x79f07
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x8(%rbx), %rdi
leaq 0x28(%rsp), %rsi
callq 0x7afe6
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x79f4d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x11120
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x79f6e
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x11120
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x79f85
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x11120
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x79fa0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x11120
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x79fc1
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x11120
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x79fd8
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x11120
movq 0xc8(%rsp), %rdi
cmpq %r15, %rdi
je 0x79ff5
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x11120
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7a016
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x11120
addq $0x110, %rsp # imm = 0x110
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7a04a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x11120
jmp 0x7a04a
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7a070
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x11120
jmp 0x7a070
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x7a08c
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x11120
jmp 0x7a08c
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7a0ac
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x11120
jmp 0x7a0ac
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7a0d2
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x11120
jmp 0x7a0d2
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x7a0ee
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x11120
jmp 0x7a0ee
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7a110
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x11120
jmp 0x7a110
movq %rax, %rbx
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7a131
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x11120
movq %rbx, %rdi
callq 0x11760
nop
| _ZN7testing8internal17StreamingListener16OnTestPartResultERKNS_14TestPartResultE:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 110h
mov r14, rsi
mov rbx, rdi
mov rax, [rsi+10h]
test rax, rax
jz short loc_79C55
mov rax, [r14+8]
loc_79C55:
test rax, rax
lea rsi, aSFromSSMsTotal+1Ah; ""
cmovnz rsi, rax; int
lea r15, [rsp+138h+var_48]
mov rdi, r15; int
call _ZN7testing8internal17StreamingListener9UrlEncodeB5cxx11EPKc; testing::internal::StreamingListener::UrlEncode(char const*)
lea rcx, aEventTestpartr; "event=TestPartResult&file="
mov r8d, 1Ah
mov rdi, r15
xor esi, esi
xor edx, edx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
lea r15, [rsp+138h+var_60]
mov [r15-10h], r15
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_79CBC
mov [rsp+138h+var_70], rdx
mov rdx, [rcx]
mov [rsp+138h+var_60], rdx
jmp short loc_79CC3
loc_79CBC:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r15], xmm0
loc_79CC3:
mov rdx, [rax+8]
lea rdi, [rsp+138h+var_70]
mov [rdi+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea rsi, aLine_1; "&line="
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea r12, [rsp+138h+var_E0]
mov [r12-10h], r12
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_79D16
mov [rsp+138h+var_F0], rdx
mov rdx, [rcx]
mov [rsp+138h+var_E0], rdx
jmp short loc_79D1E
loc_79D16:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r12], xmm0
loc_79D1E:
mov rdx, [rax+8]
mov [rsp+138h+var_E8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov eax, [r14+28h]
lea rsi, [rsp+138h+var_4C]
mov [rsi], eax
lea rdi, [rsp+138h+var_90]
call _ZN7testing8internal18StreamableToStringIiEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::internal::StreamableToString<int>(int const&)
mov rcx, [rsp+138h+var_F0]
mov r8, [rsp+138h+var_E8]
mov rdx, [rsp+138h+var_88]
lea rax, [rdx+r8]
mov edi, 0Fh
cmp rcx, r12
jz short loc_79D76
mov rdi, [rsp+138h+var_E0]
loc_79D76:
mov rsi, [rsp+138h+var_90]
cmp rax, rdi
jbe short loc_79DA2
lea r9, [rsp+138h+var_80]
mov edi, 0Fh
cmp rsi, r9
jz short loc_79D9D
mov rdi, [rsp+138h+var_80]
loc_79D9D:
cmp rax, rdi
jbe short loc_79DAE
loc_79DA2:
lea rdi, [rsp+138h+var_F0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
jmp short loc_79DBF
loc_79DAE:
lea rdi, [rsp+138h+var_90]
xor esi, esi
xor edx, edx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
loc_79DBF:
lea rdx, [rsp+138h+var_120]
mov [rdx-10h], rdx
mov rsi, [rax]
lea rcx, [rax+10h]
cmp rsi, rcx
jz short loc_79DE3
mov [rsp+138h+var_130], rsi
mov rdx, [rcx]
mov [rsp+138h+var_120], rdx
jmp short loc_79DE9
loc_79DE3:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rdx], xmm0
loc_79DE9:
mov rdx, rax
add rdx, 8
mov rsi, [rax+8]
mov [rsp+138h+var_128], rsi; __int64
mov [rax], rcx
mov qword ptr [rdx], 0
mov byte ptr [rcx], 0
lea rsi, aMessage_0; "&message="
lea rdi, [rsp+138h+var_130]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea r13, [rsp+138h+var_C0]
mov [r13-10h], r13
mov rdx, [rax]
mov rcx, rax
add rcx, 10h; int
cmp rdx, rcx
jz short loc_79E3E
mov [rsp+138h+var_D0], rdx
mov rdx, [rcx]
mov [rsp+138h+var_C0], rdx
jmp short loc_79E46
loc_79E3E:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r13+0], xmm0
loc_79E46:
mov rdx, [rax+8]; int
mov [rsp+138h+var_C8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov rsi, [r14+50h]; int
lea rdi, [rsp+138h+var_B0]; int
call _ZN7testing8internal17StreamingListener9UrlEncodeB5cxx11EPKc; testing::internal::StreamingListener::UrlEncode(char const*)
mov rcx, [rsp+138h+var_D0]
mov r8, [rsp+138h+var_C8]
mov rdx, [rsp+138h+var_A8]
lea rax, [rdx+r8]
mov edi, 0Fh
cmp rcx, r13
jz short loc_79E94
mov rdi, [rsp+138h+var_C0]
loc_79E94:
mov rsi, qword ptr [rsp+138h+var_B0]
cmp rax, rdi
jbe short loc_79EC0
lea r9, [rsp+138h+var_A0]
mov edi, 0Fh
cmp rsi, r9
jz short loc_79EBB
mov rdi, [rsp+138h+var_A0]
loc_79EBB:
cmp rax, rdi
jbe short loc_79ECC
loc_79EC0:
lea rdi, [rsp+138h+var_D0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
jmp short loc_79EDD
loc_79ECC:
lea rdi, [rsp+138h+var_B0]
xor esi, esi
xor edx, edx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
loc_79EDD:
lea rdx, [rsp+138h+var_100]
mov [rdx-10h], rdx
mov rsi, [rax]
lea rcx, [rax+10h]
cmp rsi, rcx
jz short loc_79F01
mov [rsp+138h+var_110], rsi
mov rdx, [rcx]
mov [rsp+138h+var_100], rdx
jmp short loc_79F07
loc_79F01:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rdx], xmm0
loc_79F07:
mov rdx, rax
add rdx, 8
mov rsi, [rax+8]
mov [rsp+138h+var_108], rsi
mov [rax], rcx
mov qword ptr [rdx], 0
mov byte ptr [rcx], 0
mov rdi, [rbx+8]
lea rsi, [rsp+138h+var_110]
call _ZN7testing8internal17StreamingListener20AbstractSocketWriter6SendLnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::StreamingListener::AbstractSocketWriter::SendLn(std::string const&)
lea rax, [rsp+138h+var_100]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_79F4D
mov rsi, [rsp+138h+var_100]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_79F4D:
lea rax, [rsp+138h+var_A0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_79F6E
mov rsi, [rsp+138h+var_A0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_79F6E:
mov rdi, [rsp+138h+var_D0]; void *
cmp rdi, r13
jz short loc_79F85
mov rsi, [rsp+138h+var_C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_79F85:
lea rax, [rsp+138h+var_120]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_79FA0
mov rsi, [rsp+138h+var_120]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_79FA0:
lea rax, [rsp+138h+var_80]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_79FC1
mov rsi, [rsp+138h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_79FC1:
mov rdi, [rsp+138h+var_F0]; void *
cmp rdi, r12
jz short loc_79FD8
mov rsi, [rsp+138h+var_E0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_79FD8:
mov rdi, [rsp+138h+var_70]; void *
cmp rdi, r15
jz short loc_79FF5
mov rsi, [rsp+138h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_79FF5:
lea rax, [rsp+138h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7A016
mov rsi, [rsp+138h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7A016:
add rsp, 110h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov rbx, rax
lea rax, [rsp+arg_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7A04A
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_7A04A
mov rbx, rax
loc_7A04A:
lea rax, [rsp+arg_90]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7A070
mov rsi, [rsp+arg_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_7A070
mov rbx, rax
loc_7A070:
mov rdi, [rsp+arg_60]; void *
cmp rdi, r13
jz short loc_7A08C
mov rsi, [rsp+arg_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_7A08C
mov rbx, rax
loc_7A08C:
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7A0AC
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_7A0AC
mov rbx, rax
loc_7A0AC:
lea rax, [rsp+arg_B0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7A0D2
mov rsi, [rsp+arg_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_7A0D2
mov rbx, rax
loc_7A0D2:
mov rdi, [rsp+arg_40]; void *
cmp rdi, r12
jz short loc_7A0EE
mov rsi, [rsp+arg_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_7A0EE
mov rbx, rax
loc_7A0EE:
mov rdi, [rsp+arg_C0]; void *
cmp rdi, r15
jz short loc_7A110
mov rsi, [rsp+arg_D0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_7A110
mov rbx, rax
loc_7A110:
lea rax, [rsp+arg_F8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_7A131
mov rsi, [rsp+arg_F8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7A131:
mov rdi, rbx
call __Unwind_Resume
| void testing::internal::StreamingListener::OnTestPartResult(
testing::internal::StreamingListener *this,
const testing::TestPartResult *a2)
{
char *v4; // rax
char *v5; // rsi
long long v6; // rax
__int128 *v7; // rcx
long long v8; // rax
__int128 *v9; // rcx
unsigned long long v10; // rax
unsigned long long v11; // rdi
unsigned long long v12; // rdi
void **v13; // rax
__int128 *v14; // rcx
long long v15; // rax
__int128 *v16; // rcx
unsigned long long v17; // rax
unsigned long long v18; // rdi
unsigned long long v19; // rdi
void **v20; // rax
int v21; // r8d
int v22; // r9d
__int128 *v23; // rcx
void *v24[2]; // [rsp+8h] [rbp-130h] BYREF
__int128 v25; // [rsp+18h] [rbp-120h] BYREF
void *v26[2]; // [rsp+28h] [rbp-110h] BYREF
__int128 v27; // [rsp+38h] [rbp-100h] BYREF
void *v28; // [rsp+48h] [rbp-F0h] BYREF
long long v29; // [rsp+50h] [rbp-E8h]
__int128 v30; // [rsp+58h] [rbp-E0h] BYREF
void *v31; // [rsp+68h] [rbp-D0h] BYREF
long long v32; // [rsp+70h] [rbp-C8h]
__int128 v33; // [rsp+78h] [rbp-C0h] BYREF
int v34[2]; // [rsp+88h] [rbp-B0h] BYREF
long long v35; // [rsp+90h] [rbp-A8h]
_QWORD v36[2]; // [rsp+98h] [rbp-A0h] BYREF
_QWORD *v37; // [rsp+A8h] [rbp-90h] BYREF
long long v38; // [rsp+B0h] [rbp-88h]
_QWORD v39[2]; // [rsp+B8h] [rbp-80h] BYREF
void *v40[2]; // [rsp+C8h] [rbp-70h] BYREF
__int128 v41; // [rsp+D8h] [rbp-60h] BYREF
unsigned int v42; // [rsp+ECh] [rbp-4Ch] BYREF
int v43[4]; // [rsp+F0h] [rbp-48h] BYREF
long long v44; // [rsp+100h] [rbp-38h] BYREF
v4 = (char *)*((_QWORD *)a2 + 2);
if ( v4 )
v4 = (char *)*((_QWORD *)a2 + 1);
v5 = "";
if ( v4 )
v5 = v4;
testing::internal::StreamingListener::UrlEncode[abi:cxx11]((long long)v43, v5);
v6 = std::string::replace((long long)v43, 0LL, 0LL);
v40[0] = &v41;
v7 = (__int128 *)(v6 + 16);
if ( *(_QWORD *)v6 == v6 + 16 )
{
v41 = *v7;
}
else
{
v40[0] = *(void **)v6;
*(_QWORD *)&v41 = *(_QWORD *)v7;
}
v40[1] = *(void **)(v6 + 8);
*(_QWORD *)v6 = v7;
*(_QWORD *)(v6 + 8) = 0LL;
*(_BYTE *)(v6 + 16) = 0;
v8 = std::string::append((long long)v40, (long long)"&line=");
v28 = &v30;
v9 = (__int128 *)(v8 + 16);
if ( *(_QWORD *)v8 == v8 + 16 )
{
v30 = *v9;
}
else
{
v28 = *(void **)v8;
*(_QWORD *)&v30 = *(_QWORD *)v9;
}
v29 = *(_QWORD *)(v8 + 8);
*(_QWORD *)v8 = v9;
*(_QWORD *)(v8 + 8) = 0LL;
*(_BYTE *)(v8 + 16) = 0;
v42 = *((_DWORD *)a2 + 10);
testing::internal::StreamableToString<int>((long long)&v37, &v42);
v10 = v38 + v29;
v11 = 15LL;
if ( v28 != &v30 )
v11 = v30;
if ( v10 <= v11 )
goto LABEL_17;
v12 = 15LL;
if ( v37 != v39 )
v12 = v39[0];
if ( v10 <= v12 )
v13 = (void **)std::string::replace((long long)&v37, 0LL, 0LL);
else
LABEL_17:
v13 = (void **)std::string::_M_append(&v28, v37, v38);
v24[0] = &v25;
v14 = (__int128 *)(v13 + 2);
if ( *v13 == v13 + 2 )
{
v25 = *v14;
}
else
{
v24[0] = *v13;
*(_QWORD *)&v25 = *(_QWORD *)v14;
}
v24[1] = v13[1];
*v13 = v14;
v13[1] = 0LL;
*(_BYTE *)v14 = 0;
v15 = std::string::append((long long)v24, (long long)"&message=");
v31 = &v33;
v16 = (__int128 *)(v15 + 16);
if ( *(_QWORD *)v15 == v15 + 16 )
{
v33 = *v16;
}
else
{
v31 = *(void **)v15;
*(_QWORD *)&v33 = *(_QWORD *)v16;
}
v32 = *(_QWORD *)(v15 + 8);
*(_QWORD *)v15 = v16;
*(_QWORD *)(v15 + 8) = 0LL;
*(_BYTE *)(v15 + 16) = 0;
testing::internal::StreamingListener::UrlEncode[abi:cxx11]((long long)v34, *((_BYTE **)a2 + 10));
v17 = v35 + v32;
v18 = 15LL;
if ( v31 != &v33 )
v18 = v33;
if ( v17 <= v18 )
goto LABEL_31;
v19 = 15LL;
if ( *(_QWORD **)v34 != v36 )
v19 = v36[0];
if ( v17 <= v19 )
v20 = (void **)std::string::replace((long long)v34, 0LL, 0LL);
else
LABEL_31:
v20 = (void **)std::string::_M_append(&v31, *(_BYTE **)v34, v35);
v26[0] = &v27;
v23 = (__int128 *)(v20 + 2);
if ( *v20 == v20 + 2 )
{
v27 = *v23;
}
else
{
v26[0] = *v20;
*(_QWORD *)&v27 = *(_QWORD *)v23;
}
v26[1] = v20[1];
*v20 = v23;
v20[1] = 0LL;
*(_BYTE *)v23 = 0;
testing::internal::StreamingListener::AbstractSocketWriter::SendLn(
*((_QWORD *)this + 1),
(unsigned int)v26,
(_DWORD)v20 + 8,
(_DWORD)v23,
v21,
v22);
if ( v26[0] != &v27 )
operator delete(v26[0], v27 + 1);
if ( *(_QWORD **)v34 != v36 )
operator delete(*(void **)v34, v36[0] + 1LL);
if ( v31 != &v33 )
operator delete(v31, v33 + 1);
if ( v24[0] != &v25 )
operator delete(v24[0], v25 + 1);
if ( v37 != v39 )
operator delete(v37, v39[0] + 1LL);
if ( v28 != &v30 )
operator delete(v28, v30 + 1);
if ( v40[0] != &v41 )
operator delete(v40[0], v41 + 1);
if ( *(long long **)v43 != &v44 )
operator delete(*(void **)v43, v44 + 1);
}
| OnTestPartResult:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x110
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x10]
TEST RAX,RAX
JZ 0x00179c55
MOV RAX,qword ptr [R14 + 0x8]
LAB_00179c55:
TEST RAX,RAX
LEA RSI,[0x187527]
CMOVNZ RSI,RAX
LEA R15,[RSP + 0xf0]
MOV RDI,R15
CALL 0x0016e614
LAB_00179c73:
LEA RCX,[0x188687]
MOV R8D,0x1a
MOV RDI,R15
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0011a66c
LEA R15,[RSP + 0xd8]
MOV qword ptr [R15 + -0x10],R15
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x00179cbc
MOV qword ptr [RSP + 0xc8],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0xd8],RDX
JMP 0x00179cc3
LAB_00179cbc:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R15],XMM0
LAB_00179cc3:
MOV RDX,qword ptr [RAX + 0x8]
LEA RDI,[RSP + 0xc8]
MOV qword ptr [RDI + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LAB_00179ce2:
LEA RSI,[0x1886a2]
CALL 0x00125290
LEA R12,[RSP + 0x58]
MOV qword ptr [R12 + -0x10],R12
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x00179d16
MOV qword ptr [RSP + 0x48],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x58],RDX
JMP 0x00179d1e
LAB_00179d16:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R12],XMM0
LAB_00179d1e:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x50],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
MOV EAX,dword ptr [R14 + 0x28]
LEA RSI,[RSP + 0xec]
MOV dword ptr [RSI],EAX
LAB_00179d44:
LEA RDI,[RSP + 0xa8]
CALL 0x00173ab7
MOV RCX,qword ptr [RSP + 0x48]
MOV R8,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0xb0]
LEA RAX,[RDX + R8*0x1]
MOV EDI,0xf
CMP RCX,R12
JZ 0x00179d76
MOV RDI,qword ptr [RSP + 0x58]
LAB_00179d76:
MOV RSI,qword ptr [RSP + 0xa8]
CMP RAX,RDI
JBE 0x00179da2
LEA R9,[RSP + 0xb8]
MOV EDI,0xf
CMP RSI,R9
JZ 0x00179d9d
MOV RDI,qword ptr [RSP + 0xb8]
LAB_00179d9d:
CMP RAX,RDI
JBE 0x00179dae
LAB_00179da2:
LEA RDI,[RSP + 0x48]
CALL 0x001252d6
JMP 0x00179dbf
LAB_00179dae:
LEA RDI,[RSP + 0xa8]
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0011a66c
LAB_00179dbf:
LEA RDX,[RSP + 0x18]
MOV qword ptr [RDX + -0x10],RDX
MOV RSI,qword ptr [RAX]
LEA RCX,[RAX + 0x10]
CMP RSI,RCX
JZ 0x00179de3
MOV qword ptr [RSP + 0x8],RSI
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x18],RDX
JMP 0x00179de9
LAB_00179de3:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RDX],XMM0
LAB_00179de9:
MOV RDX,RAX
ADD RDX,0x8
MOV RSI,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x10],RSI
MOV qword ptr [RAX],RCX
MOV qword ptr [RDX],0x0
MOV byte ptr [RCX],0x0
LAB_00179e06:
LEA RSI,[0x1886a9]
LEA RDI,[RSP + 0x8]
CALL 0x00125290
LEA R13,[RSP + 0x78]
MOV qword ptr [R13 + -0x10],R13
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x00179e3e
MOV qword ptr [RSP + 0x68],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x78],RDX
JMP 0x00179e46
LAB_00179e3e:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R13],XMM0
LAB_00179e46:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x70],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
MOV RSI,qword ptr [R14 + 0x50]
LAB_00179e62:
LEA RDI,[RSP + 0x88]
CALL 0x0016e614
MOV RCX,qword ptr [RSP + 0x68]
MOV R8,qword ptr [RSP + 0x70]
MOV RDX,qword ptr [RSP + 0x90]
LEA RAX,[RDX + R8*0x1]
MOV EDI,0xf
CMP RCX,R13
JZ 0x00179e94
MOV RDI,qword ptr [RSP + 0x78]
LAB_00179e94:
MOV RSI,qword ptr [RSP + 0x88]
CMP RAX,RDI
JBE 0x00179ec0
LEA R9,[RSP + 0x98]
MOV EDI,0xf
CMP RSI,R9
JZ 0x00179ebb
MOV RDI,qword ptr [RSP + 0x98]
LAB_00179ebb:
CMP RAX,RDI
JBE 0x00179ecc
LAB_00179ec0:
LEA RDI,[RSP + 0x68]
CALL 0x001252d6
JMP 0x00179edd
LAB_00179ecc:
LEA RDI,[RSP + 0x88]
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0011a66c
LAB_00179edd:
LEA RDX,[RSP + 0x38]
MOV qword ptr [RDX + -0x10],RDX
MOV RSI,qword ptr [RAX]
LEA RCX,[RAX + 0x10]
CMP RSI,RCX
JZ 0x00179f01
MOV qword ptr [RSP + 0x28],RSI
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x38],RDX
JMP 0x00179f07
LAB_00179f01:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RDX],XMM0
LAB_00179f07:
MOV RDX,RAX
ADD RDX,0x8
MOV RSI,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x30],RSI
MOV qword ptr [RAX],RCX
MOV qword ptr [RDX],0x0
MOV byte ptr [RCX],0x0
MOV RDI,qword ptr [RBX + 0x8]
LAB_00179f28:
LEA RSI,[RSP + 0x28]
CALL 0x0017afe6
LAB_00179f32:
LEA RAX,[RSP + 0x38]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00179f4d
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x00111120
LAB_00179f4d:
LEA RAX,[RSP + 0x98]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00179f6e
MOV RSI,qword ptr [RSP + 0x98]
INC RSI
CALL 0x00111120
LAB_00179f6e:
MOV RDI,qword ptr [RSP + 0x68]
CMP RDI,R13
JZ 0x00179f85
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x00111120
LAB_00179f85:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00179fa0
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x00111120
LAB_00179fa0:
LEA RAX,[RSP + 0xb8]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00179fc1
MOV RSI,qword ptr [RSP + 0xb8]
INC RSI
CALL 0x00111120
LAB_00179fc1:
MOV RDI,qword ptr [RSP + 0x48]
CMP RDI,R12
JZ 0x00179fd8
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x00111120
LAB_00179fd8:
MOV RDI,qword ptr [RSP + 0xc8]
CMP RDI,R15
JZ 0x00179ff5
MOV RSI,qword ptr [RSP + 0xd8]
INC RSI
CALL 0x00111120
LAB_00179ff5:
LEA RAX,[RSP + 0x100]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0017a016
MOV RSI,qword ptr [RSP + 0x100]
INC RSI
CALL 0x00111120
LAB_0017a016:
ADD RSP,0x110
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* testing::internal::StreamingListener::OnTestPartResult(testing::TestPartResult const&) */
void __thiscall
testing::internal::StreamingListener::OnTestPartResult
(StreamingListener *this,TestPartResult *param_1)
{
char *pcVar1;
long *plVar2;
int8 *puVar3;
long *plVar4;
ulong *puVar5;
char *pcVar6;
ulong uVar7;
long *local_130;
int8 local_128;
long local_120;
int8 uStack_118;
long *local_110;
int8 local_108;
long local_100;
int8 uStack_f8;
ulong *local_f0;
ulong local_e8;
ulong local_e0;
long lStack_d8;
ulong *local_d0;
ulong local_c8;
ulong local_c0;
long lStack_b8;
ulong *local_b0;
ulong local_a8;
ulong local_a0 [2];
ulong *local_90;
ulong local_88;
ulong local_80 [2];
long *local_70;
long local_68;
long local_60;
long lStack_58;
int local_4c;
long *local_48 [2];
long local_38 [2];
pcVar1 = *(char **)(param_1 + 0x10);
if (pcVar1 != (char *)0x0) {
pcVar1 = *(char **)(param_1 + 8);
}
pcVar6 = "";
if (pcVar1 != (char *)0x0) {
pcVar6 = pcVar1;
}
UrlEncode_abi_cxx11_((StreamingListener *)local_48,pcVar6);
/* try { // try from 00179c73 to 00179c8b has its CatchHandler @ 0017a10d */
plVar2 = (long *)std::__cxx11::string::replace
((string *)local_48,0,0,"event=TestPartResult&file=",0x1a);
plVar4 = plVar2 + 2;
if ((long *)*plVar2 == plVar4) {
local_60 = *plVar4;
lStack_58 = plVar2[3];
local_70 = &local_60;
}
else {
local_60 = *plVar4;
local_70 = (long *)*plVar2;
}
local_68 = plVar2[1];
*plVar2 = (long)plVar4;
plVar2[1] = 0;
*(int1 *)(plVar2 + 2) = 0;
/* try { // try from 00179ce2 to 00179ced has its CatchHandler @ 0017a0eb */
plVar2 = (long *)std::__cxx11::string::append((string *)&local_70,"&line=");
puVar5 = (ulong *)(plVar2 + 2);
if ((ulong *)*plVar2 == puVar5) {
local_e0 = *puVar5;
lStack_d8 = plVar2[3];
local_f0 = &local_e0;
}
else {
local_e0 = *puVar5;
local_f0 = (ulong *)*plVar2;
}
local_e8 = plVar2[1];
*plVar2 = (long)puVar5;
plVar2[1] = 0;
*(int1 *)(plVar2 + 2) = 0;
local_4c = *(int *)(param_1 + 0x28);
/* try { // try from 00179d44 to 00179d50 has its CatchHandler @ 0017a0cf */
StreamableToString<int>((internal *)&local_90,&local_4c);
uVar7 = 0xf;
if (local_f0 != &local_e0) {
uVar7 = local_e0;
}
if (uVar7 < local_88 + local_e8) {
uVar7 = 0xf;
if (local_90 != local_80) {
uVar7 = local_80[0];
}
if (uVar7 < local_88 + local_e8) goto LAB_00179da2;
puVar3 = (int8 *)
std::__cxx11::string::replace((string *)&local_90,0,0,(char *)local_f0,local_e8);
}
else {
LAB_00179da2:
/* try { // try from 00179da2 to 00179dbe has its CatchHandler @ 0017a0a9 */
puVar3 = (int8 *)
std::__cxx11::string::_M_append((string *)&local_f0,(char *)local_90,local_88);
}
local_130 = &local_120;
plVar2 = puVar3 + 2;
if ((long *)*puVar3 == plVar2) {
local_120 = *plVar2;
uStack_118 = puVar3[3];
}
else {
local_120 = *plVar2;
local_130 = (long *)*puVar3;
}
local_128 = puVar3[1];
*puVar3 = plVar2;
puVar3[1] = 0;
*(int1 *)plVar2 = 0;
/* try { // try from 00179e06 to 00179e16 has its CatchHandler @ 0017a089 */
plVar2 = (long *)std::__cxx11::string::append((string *)&local_130,"&message=");
puVar5 = (ulong *)(plVar2 + 2);
if ((ulong *)*plVar2 == puVar5) {
local_c0 = *puVar5;
lStack_b8 = plVar2[3];
local_d0 = &local_c0;
}
else {
local_c0 = *puVar5;
local_d0 = (ulong *)*plVar2;
}
local_c8 = plVar2[1];
*plVar2 = (long)puVar5;
plVar2[1] = 0;
*(int1 *)(plVar2 + 2) = 0;
/* try { // try from 00179e62 to 00179e6e has its CatchHandler @ 0017a06d */
UrlEncode_abi_cxx11_((StreamingListener *)&local_b0,*(char **)(param_1 + 0x50));
uVar7 = 0xf;
if (local_d0 != &local_c0) {
uVar7 = local_c0;
}
if (uVar7 < local_a8 + local_c8) {
uVar7 = 0xf;
if (local_b0 != local_a0) {
uVar7 = local_a0[0];
}
if (local_a8 + local_c8 <= uVar7) {
puVar3 = (int8 *)
std::__cxx11::string::replace((string *)&local_b0,0,0,(char *)local_d0,local_c8);
goto LAB_00179edd;
}
}
/* try { // try from 00179ec0 to 00179edc has its CatchHandler @ 0017a047 */
puVar3 = (int8 *)
std::__cxx11::string::_M_append((string *)&local_d0,(char *)local_b0,local_a8);
LAB_00179edd:
local_110 = &local_100;
plVar2 = puVar3 + 2;
if ((long *)*puVar3 == plVar2) {
local_100 = *plVar2;
uStack_f8 = puVar3[3];
}
else {
local_100 = *plVar2;
local_110 = (long *)*puVar3;
}
local_108 = puVar3[1];
*puVar3 = plVar2;
puVar3[1] = 0;
*(int1 *)plVar2 = 0;
/* try { // try from 00179f28 to 00179f31 has its CatchHandler @ 0017a027 */
AbstractSocketWriter::SendLn(*(AbstractSocketWriter **)(this + 8),(string *)&local_110);
if (local_110 != &local_100) {
operator_delete(local_110,local_100 + 1);
}
if (local_b0 != local_a0) {
operator_delete(local_b0,local_a0[0] + 1);
}
if (local_d0 != &local_c0) {
operator_delete(local_d0,local_c0 + 1);
}
if (local_130 != &local_120) {
operator_delete(local_130,local_120 + 1);
}
if (local_90 != local_80) {
operator_delete(local_90,local_80[0] + 1);
}
if (local_f0 != &local_e0) {
operator_delete(local_f0,local_e0 + 1);
}
if (local_70 != &local_60) {
operator_delete(local_70,local_60 + 1);
}
if (local_48[0] != local_38) {
operator_delete(local_48[0],local_38[0] + 1);
}
return;
}
| |
24,071 | ma_writeinfo | eloqsql/storage/maria/ma_locking.c | int _ma_writeinfo(register MARIA_HA *info, uint operation)
{
int error,olderror;
MARIA_SHARE *share= info->s;
DBUG_ENTER("_ma_writeinfo");
DBUG_PRINT("info",("operation: %u tot_locks: %u", operation,
share->tot_locks));
error=0;
if (share->tot_locks == 0 && !share->base.born_transactional)
{
/* transactional tables flush their state at Checkpoint */
if (operation)
{ /* Two threads can't be here */
CRASH_IF_S3_TABLE(info->s); /* S3 readonly doesn't come here */
olderror= my_errno; /* Remember last error */
#ifdef MARIA_EXTERNAL_LOCKING
/*
The following only makes sense if we want to be allow two different
processes access the same table at the same time
*/
share->state.process= share->last_process= share->this_process;
share->state.unique= info->last_unique= info->this_unique;
share->state.update_count= info->last_loop= ++info->this_loop;
#endif
if ((error=
_ma_state_info_write_sub(share->kfile.file,
&share->state,
MA_STATE_INFO_WRITE_DONT_MOVE_OFFSET)))
olderror=my_errno;
#ifdef _WIN32
if (maria_flush)
{
_commit(share->kfile.file);
_commit(info->dfile.file);
}
#endif
my_errno=olderror;
}
}
else if (operation)
share->changed= 1; /* Mark keyfile changed */
DBUG_RETURN(error);
} | O0 | c | ma_writeinfo:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0x48e5c
movl $0x0, -0x10(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x7b8(%rax)
jne 0x48ecd
movq -0x20(%rbp), %rax
cmpb $0x0, 0x44c(%rax)
jne 0x48ecd
cmpl $0x0, -0xc(%rbp)
je 0x48ecb
jmp 0x48e85
jmp 0x48e87
callq 0xf6210
movl (%rax), %eax
movl %eax, -0x14(%rbp)
movq -0x20(%rbp), %rax
movl 0x760(%rax), %edi
movq -0x20(%rbp), %rsi
movl $0x1, %edx
callq 0x90130
movl %eax, -0x10(%rbp)
cmpl $0x0, %eax
je 0x48ebb
callq 0xf6210
movl (%rax), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x24(%rbp)
callq 0xf6210
movl -0x24(%rbp), %ecx
movl %ecx, (%rax)
jmp 0x48ee0
cmpl $0x0, -0xc(%rbp)
je 0x48ede
movq -0x20(%rbp), %rax
movb $0x1, 0x7de(%rax)
jmp 0x48ee0
jmp 0x48ee2
movl -0x10(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ma_writeinfo:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_20], rax
jmp short $+2
loc_48E5C:
mov [rbp+var_10], 0
mov rax, [rbp+var_20]
cmp dword ptr [rax+7B8h], 0
jnz short loc_48ECD
mov rax, [rbp+var_20]
cmp byte ptr [rax+44Ch], 0
jnz short loc_48ECD
cmp [rbp+var_C], 0
jz short loc_48ECB
jmp short $+2
loc_48E85:
jmp short $+2
loc_48E87:
call _my_thread_var
mov eax, [rax]
mov [rbp+var_14], eax
mov rax, [rbp+var_20]
mov edi, [rax+760h]
mov rsi, [rbp+var_20]
mov edx, 1
call _ma_state_info_write_sub
mov [rbp+var_10], eax
cmp eax, 0
jz short loc_48EBB
call _my_thread_var
mov eax, [rax]
mov [rbp+var_14], eax
loc_48EBB:
mov eax, [rbp+var_14]
mov [rbp+var_24], eax
call _my_thread_var
mov ecx, [rbp+var_24]
mov [rax], ecx
loc_48ECB:
jmp short loc_48EE0
loc_48ECD:
cmp [rbp+var_C], 0
jz short loc_48EDE
mov rax, [rbp+var_20]
mov byte ptr [rax+7DEh], 1
loc_48EDE:
jmp short $+2
loc_48EE0:
jmp short $+2
loc_48EE2:
mov eax, [rbp+var_10]
mov [rbp+var_28], eax
mov eax, [rbp+var_28]
add rsp, 30h
pop rbp
retn
| long long ma_writeinfo(long long *a1, int a2)
{
long long v3; // [rsp+10h] [rbp-20h]
int v4; // [rsp+1Ch] [rbp-14h]
unsigned int v5; // [rsp+20h] [rbp-10h]
v3 = *a1;
v5 = 0;
if ( *(_DWORD *)(*a1 + 1976) || *(_BYTE *)(v3 + 1100) )
{
if ( a2 )
*(_BYTE *)(v3 + 2014) = 1;
}
else if ( a2 )
{
v4 = *(_DWORD *)my_thread_var();
v5 = ma_state_info_write_sub(*(unsigned int *)(v3 + 1888), v3, 1LL);
if ( v5 )
v4 = *(_DWORD *)my_thread_var();
*(_DWORD *)my_thread_var() = v4;
}
return v5;
}
| _ma_writeinfo:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x00148e5c
LAB_00148e5c:
MOV dword ptr [RBP + -0x10],0x0
MOV RAX,qword ptr [RBP + -0x20]
CMP dword ptr [RAX + 0x7b8],0x0
JNZ 0x00148ecd
MOV RAX,qword ptr [RBP + -0x20]
CMP byte ptr [RAX + 0x44c],0x0
JNZ 0x00148ecd
CMP dword ptr [RBP + -0xc],0x0
JZ 0x00148ecb
JMP 0x00148e85
LAB_00148e85:
JMP 0x00148e87
LAB_00148e87:
CALL 0x001f6210
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x14],EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV EDI,dword ptr [RAX + 0x760]
MOV RSI,qword ptr [RBP + -0x20]
MOV EDX,0x1
CALL 0x00190130
MOV dword ptr [RBP + -0x10],EAX
CMP EAX,0x0
JZ 0x00148ebb
CALL 0x001f6210
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x14],EAX
LAB_00148ebb:
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x24],EAX
CALL 0x001f6210
MOV ECX,dword ptr [RBP + -0x24]
MOV dword ptr [RAX],ECX
LAB_00148ecb:
JMP 0x00148ee0
LAB_00148ecd:
CMP dword ptr [RBP + -0xc],0x0
JZ 0x00148ede
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x7de],0x1
LAB_00148ede:
JMP 0x00148ee0
LAB_00148ee0:
JMP 0x00148ee2
LAB_00148ee2:
MOV EAX,dword ptr [RBP + -0x10]
MOV dword ptr [RBP + -0x28],EAX
MOV EAX,dword ptr [RBP + -0x28]
ADD RSP,0x30
POP RBP
RET
|
int _ma_writeinfo(long *param_1,int param_2)
{
long lVar1;
int4 *puVar2;
int4 local_1c;
int4 local_18;
lVar1 = *param_1;
local_18 = 0;
if ((*(int *)(lVar1 + 0x7b8) == 0) && (*(char *)(lVar1 + 0x44c) == '\0')) {
if (param_2 != 0) {
puVar2 = (int4 *)_my_thread_var();
local_1c = *puVar2;
local_18 = _ma_state_info_write_sub(*(int4 *)(lVar1 + 0x760),lVar1,1);
if (local_18 != 0) {
puVar2 = (int4 *)_my_thread_var();
local_1c = *puVar2;
}
puVar2 = (int4 *)_my_thread_var();
*puVar2 = local_1c;
}
}
else if (param_2 != 0) {
*(int1 *)(lVar1 + 0x7de) = 1;
}
return local_18;
}
| |
24,072 | bfdec_pow_ui | bluesky950520[P]quickjs/libbf.c | int bfdec_pow_ui(bfdec_t *r, const bfdec_t *a, limb_t b)
{
int ret, n_bits, i;
assert(r != a);
if (b == 0)
return bfdec_set_ui(r, 1);
ret = bfdec_set(r, a);
n_bits = LIMB_BITS - clz(b);
for(i = n_bits - 2; i >= 0; i--) {
ret |= bfdec_mul(r, r, r, BF_PREC_INF, BF_RNDZ);
if ((b >> i) & 1)
ret |= bfdec_mul(r, r, a, BF_PREC_INF, BF_RNDZ);
}
return ret;
} | O2 | c | bfdec_pow_ui:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdx, %rdx
je 0x782ac
movq %rdx, %r14
movabsq $0x3fffffffffffffff, %r13 # imm = 0x3FFFFFFFFFFFFFFF
movq %rbx, %rdi
movq %rsi, (%rsp)
callq 0x6f666
movl %eax, %r15d
bsrq %r14, %r12
xorl $-0x40, %r12d
addl $0x3f, %r12d
pushq $0x1
popq %rbp
testl %r12d, %r12d
js 0x7829a
movq %rbx, %rdi
movq %rbx, %rsi
movq %rbx, %rdx
movq %r13, %rcx
movl %ebp, %r8d
callq 0x774a4
movq %r13, %rcx
movl %eax, %r13d
orl %r15d, %r13d
btq %r12, %r14
jae 0x78288
movq %rbx, %rdi
movq %rbx, %rsi
movq (%rsp), %rdx
movl %ebp, %r8d
callq 0x774a4
orl %eax, %r13d
decl %r12d
movl %r13d, %r15d
movabsq $0x3fffffffffffffff, %r13 # imm = 0x3FFFFFFFFFFFFFFF
jmp 0x7824b
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x1
popq %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x773be
| bfdec_pow_ui:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
test rdx, rdx
jz loc_782AC
mov r14, rdx
mov r13, 3FFFFFFFFFFFFFFFh
mov rdi, rbx
mov [rsp+38h+var_38], rsi
call bf_set
mov r15d, eax
bsr r12, r14
xor r12d, 0FFFFFFC0h
add r12d, 3Fh ; '?'
push 1
pop rbp
loc_7824B:
test r12d, r12d
js short loc_7829A
mov rdi, rbx
mov rsi, rbx
mov rdx, rbx
mov rcx, r13
mov r8d, ebp
call bfdec_mul
mov rcx, r13
mov r13d, eax
or r13d, r15d
bt r14, r12
jnb short loc_78288
mov rdi, rbx
mov rsi, rbx
mov rdx, [rsp+38h+var_38]
mov r8d, ebp
call bfdec_mul
or r13d, eax
loc_78288:
dec r12d
mov r15d, r13d
mov r13, 3FFFFFFFFFFFFFFFh
jmp short loc_7824B
loc_7829A:
mov eax, r15d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_782AC:
push 1
pop rsi
mov rdi, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp bfdec_set_ui
| long long bfdec_pow_ui(__int128 *a1, long long a2, unsigned long long a3)
{
unsigned int v4; // r15d
unsigned long long v5; // r12
unsigned long long v6; // r12
unsigned int v7; // r13d
if ( !a3 )
return bfdec_set_ui((long long)a1, 1uLL);
v4 = bf_set((long long)a1, a2);
_BitScanReverse64(&v5, a3);
v6 = ((unsigned int)v5 ^ 0xFFFFFFC0) + 63;
while ( (v6 & 0x80000000) == 0LL )
{
v7 = v4 | bfdec_mul(a1, (long long)a1, (long long)a1, 0x3FFFFFFFFFFFFFFFLL, 1u);
if ( _bittest64((const long long *)&a3, v6) )
v7 |= bfdec_mul(a1, (long long)a1, a2, 0x3FFFFFFFFFFFFFFFLL, 1u);
v6 = (unsigned int)(v6 - 1);
v4 = v7;
}
return v4;
}
| bfdec_pow_ui:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
TEST RDX,RDX
JZ 0x001782ac
MOV R14,RDX
MOV R13,0x3fffffffffffffff
MOV RDI,RBX
MOV qword ptr [RSP],RSI
CALL 0x0016f666
MOV R15D,EAX
BSR R12,R14
XOR R12D,0xffffffc0
ADD R12D,0x3f
PUSH 0x1
POP RBP
LAB_0017824b:
TEST R12D,R12D
JS 0x0017829a
MOV RDI,RBX
MOV RSI,RBX
MOV RDX,RBX
MOV RCX,R13
MOV R8D,EBP
CALL 0x001774a4
MOV RCX,R13
MOV R13D,EAX
OR R13D,R15D
BT R14,R12
JNC 0x00178288
MOV RDI,RBX
MOV RSI,RBX
MOV RDX,qword ptr [RSP]
MOV R8D,EBP
CALL 0x001774a4
OR R13D,EAX
LAB_00178288:
DEC R12D
MOV R15D,R13D
MOV R13,0x3fffffffffffffff
JMP 0x0017824b
LAB_0017829a:
MOV EAX,R15D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001782ac:
PUSH 0x1
POP RSI
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001773be
|
ulong bfdec_pow_ui(int8 param_1,int8 param_2,ulong param_3)
{
long lVar1;
uint uVar2;
uint uVar3;
ulong uVar4;
uint uVar5;
if (param_3 != 0) {
uVar2 = bf_set(param_1);
lVar1 = 0x3f;
if (param_3 != 0) {
for (; param_3 >> lVar1 == 0; lVar1 = lVar1 + -1) {
}
}
uVar5 = ((uint)lVar1 ^ 0xffffffc0) + 0x3f;
while( true ) {
if ((int)uVar5 < 0) break;
uVar3 = bfdec_mul(param_1,param_1,param_1,0x3fffffffffffffff,1);
uVar2 = uVar3 | uVar2;
if ((param_3 >> ((ulong)uVar5 & 0x3f) & 1) != 0) {
uVar3 = bfdec_mul(param_1,param_1,param_2,0x3fffffffffffffff,1);
uVar2 = uVar2 | uVar3;
}
uVar5 = uVar5 - 1;
}
return (ulong)uVar2;
}
uVar4 = bfdec_set_ui(param_1,1);
return uVar4;
}
| |
24,073 | GetCameraForward | csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rcamera.h | Vector3 GetCameraForward(Camera *camera)
{
return Vector3Normalize(Vector3Subtract(camera->target, camera->position));
} | O1 | c | GetCameraForward:
subq $0x38, %rsp
movsd (%rdi), %xmm0
movsd 0xc(%rdi), %xmm2
subps %xmm0, %xmm2
movss 0x14(%rdi), %xmm1
movaps %xmm2, %xmm4
subss 0x8(%rdi), %xmm1
shufps $0x55, %xmm2, %xmm4 # xmm4 = xmm4[1,1],xmm2[1,1]
movaps %xmm4, %xmm0
mulss %xmm4, %xmm0
movaps %xmm2, %xmm3
mulss %xmm2, %xmm3
addss %xmm0, %xmm3
movaps %xmm1, %xmm0
mulss %xmm1, %xmm0
addss %xmm3, %xmm0
xorps %xmm3, %xmm3
ucomiss %xmm3, %xmm0
jb 0x6e085
sqrtss %xmm0, %xmm0
jmp 0x6e0ad
movaps %xmm2, 0x20(%rsp)
movss %xmm1, 0xc(%rsp)
movaps %xmm4, 0x10(%rsp)
callq 0x99f0
xorps %xmm3, %xmm3
movaps 0x10(%rsp), %xmm4
movss 0xc(%rsp), %xmm1
movaps 0x20(%rsp), %xmm2
ucomiss %xmm3, %xmm0
jne 0x6e0b4
jnp 0x6e0cf
movss 0x6b888(%rip), %xmm3 # 0xd9944
divss %xmm0, %xmm3
mulss %xmm3, %xmm2
mulss %xmm3, %xmm4
unpcklps %xmm4, %xmm2 # xmm2 = xmm2[0],xmm4[0],xmm2[1],xmm4[1]
mulss %xmm3, %xmm1
movaps %xmm2, %xmm0
addq $0x38, %rsp
retq
| GetCameraForward:
sub rsp, 38h
movsd xmm0, qword ptr [rdi]
movsd xmm2, qword ptr [rdi+0Ch]
subps xmm2, xmm0
movss xmm1, dword ptr [rdi+14h]
movaps xmm4, xmm2
subss xmm1, dword ptr [rdi+8]
shufps xmm4, xmm2, 55h ; 'U'
movaps xmm0, xmm4
mulss xmm0, xmm4
movaps xmm3, xmm2
mulss xmm3, xmm2
addss xmm3, xmm0
movaps xmm0, xmm1
mulss xmm0, xmm1
addss xmm0, xmm3
xorps xmm3, xmm3
ucomiss xmm0, xmm3
jb short loc_6E085
sqrtss xmm0, xmm0
jmp short loc_6E0AD
loc_6E085:
movaps [rsp+38h+var_18], xmm2
movss [rsp+38h+var_2C], xmm1
movaps [rsp+38h+var_28], xmm4
call _sqrtf
xorps xmm3, xmm3
movaps xmm4, [rsp+38h+var_28]
movss xmm1, [rsp+38h+var_2C]
movaps xmm2, [rsp+38h+var_18]
loc_6E0AD:
ucomiss xmm0, xmm3
jnz short loc_6E0B4
jnp short loc_6E0CF
loc_6E0B4:
movss xmm3, cs:dword_D9944
divss xmm3, xmm0
mulss xmm2, xmm3
mulss xmm4, xmm3
unpcklps xmm2, xmm4
mulss xmm1, xmm3
loc_6E0CF:
movaps xmm0, xmm2
add rsp, 38h
retn
| __m128 GetCameraForward(unsigned long long *a1)
{
__m128 v1; // xmm2
float v2; // xmm1_4
__m128 v3; // xmm4
double v4; // xmm0_8
__m128 v6; // [rsp+10h] [rbp-28h]
v1 = _mm_sub_ps((__m128)*(unsigned long long *)((char *)a1 + 12), (__m128)*a1);
v2 = *((float *)a1 + 5) - *((float *)a1 + 2);
v3 = _mm_shuffle_ps(v1, v1, 85);
HIDWORD(v4) = 0;
*(float *)&v4 = (float)(v2 * v2)
+ (float)((float)(v1.m128_f32[0] * v1.m128_f32[0]) + (float)(v3.m128_f32[0] * v3.m128_f32[0]));
if ( *(float *)&v4 < 0.0 )
{
v6 = v3;
v4 = sqrtf(v4);
v3 = v6;
}
else
{
*(float *)&v4 = fsqrt(*(float *)&v4);
}
if ( *(float *)&v4 != 0.0 )
{
v1.m128_f32[0] = v1.m128_f32[0] * (float)(1.0 / *(float *)&v4);
v3.m128_f32[0] = v3.m128_f32[0] * (float)(1.0 / *(float *)&v4);
return _mm_unpacklo_ps(v1, v3);
}
return v1;
}
| GetCameraForward:
SUB RSP,0x38
MOVSD XMM0,qword ptr [RDI]
MOVSD XMM2,qword ptr [RDI + 0xc]
SUBPS XMM2,XMM0
MOVSS XMM1,dword ptr [RDI + 0x14]
MOVAPS XMM4,XMM2
SUBSS XMM1,dword ptr [RDI + 0x8]
SHUFPS XMM4,XMM2,0x55
MOVAPS XMM0,XMM4
MULSS XMM0,XMM4
MOVAPS XMM3,XMM2
MULSS XMM3,XMM2
ADDSS XMM3,XMM0
MOVAPS XMM0,XMM1
MULSS XMM0,XMM1
ADDSS XMM0,XMM3
XORPS XMM3,XMM3
UCOMISS XMM0,XMM3
JC 0x0016e085
SQRTSS XMM0,XMM0
JMP 0x0016e0ad
LAB_0016e085:
MOVAPS xmmword ptr [RSP + 0x20],XMM2
MOVSS dword ptr [RSP + 0xc],XMM1
MOVAPS xmmword ptr [RSP + 0x10],XMM4
CALL 0x001099f0
XORPS XMM3,XMM3
MOVAPS XMM4,xmmword ptr [RSP + 0x10]
MOVSS XMM1,dword ptr [RSP + 0xc]
MOVAPS XMM2,xmmword ptr [RSP + 0x20]
LAB_0016e0ad:
UCOMISS XMM0,XMM3
JNZ 0x0016e0b4
JNP 0x0016e0cf
LAB_0016e0b4:
MOVSS XMM3,dword ptr [0x001d9944]
DIVSS XMM3,XMM0
MULSS XMM2,XMM3
MULSS XMM4,XMM3
UNPCKLPS XMM2,XMM4
MULSS XMM1,XMM3
LAB_0016e0cf:
MOVAPS XMM0,XMM2
ADD RSP,0x38
RET
|
int8 GetCameraForward(int8 *param_1)
{
float fVar1;
float fVar2;
float fVar3;
fVar2 = (float)*(int8 *)((long)param_1 + 0xc) - (float)*param_1;
fVar3 = (float)((ulong)*(int8 *)((long)param_1 + 0xc) >> 0x20) -
(float)((ulong)*param_1 >> 0x20);
fVar1 = *(float *)((long)param_1 + 0x14) - *(float *)(param_1 + 1);
fVar1 = fVar1 * fVar1 + fVar2 * fVar2 + fVar3 * fVar3;
if (fVar1 < 0.0) {
fVar1 = sqrtf(fVar1);
}
else {
fVar1 = SQRT(fVar1);
}
if ((fVar1 != 0.0) || (NAN(fVar1))) {
fVar2 = fVar2 * (DAT_001d9944 / fVar1);
fVar3 = fVar3 * (DAT_001d9944 / fVar1);
}
return CONCAT44(fVar3,fVar2);
}
| |
24,074 | mi_cmp_buffer | eloqsql/storage/myisam/mi_dynrec.c | static int _mi_cmp_buffer(File file, const uchar *buff, my_off_t filepos,
uint length)
{
uint next_length;
uchar temp_buff[IO_SIZE*2];
DBUG_ENTER("_mi_cmp_buffer");
next_length= IO_SIZE*2 - (uint) (filepos & (IO_SIZE-1));
while (length > IO_SIZE*2)
{
if (mysql_file_pread(file, temp_buff, next_length, filepos, MYF(MY_NABP)) ||
memcmp(buff, temp_buff, next_length))
goto err;
filepos+=next_length;
buff+=next_length;
length-= next_length;
next_length=IO_SIZE*2;
}
if (mysql_file_pread(file, temp_buff, length, filepos, MYF(MY_NABP)))
goto err;
DBUG_RETURN(memcmp(buff,temp_buff,length));
err:
DBUG_RETURN(1);
} | O0 | c | mi_cmp_buffer:
pushq %rbp
movq %rsp, %rbp
subq $0x2040, %rsp # imm = 0x2040
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movl %edi, -0x2018(%rbp)
movq %rsi, -0x2020(%rbp)
movq %rdx, -0x2028(%rbp)
movl %ecx, -0x202c(%rbp)
movq -0x2028(%rbp), %rax
andq $0xfff, %rax # imm = 0xFFF
movl %eax, %ecx
movl $0x2000, %eax # imm = 0x2000
subl %ecx, %eax
movl %eax, -0x2030(%rbp)
cmpl $0x2000, -0x202c(%rbp) # imm = 0x2000
jbe 0xb39df
movl -0x2018(%rbp), %edx
leaq -0x2010(%rbp), %rcx
movl -0x2030(%rbp), %eax
movl %eax, %r8d
movq -0x2028(%rbp), %r9
leaq 0xa806b(%rip), %rdi # 0x15b9bd
movl $0x67e, %esi # imm = 0x67E
movq $0x4, (%rsp)
callq 0xaeef0
cmpq $0x0, %rax
jne 0xb398a
movq -0x2020(%rbp), %rdi
leaq -0x2010(%rbp), %rsi
movl -0x2030(%rbp), %eax
movl %eax, %edx
callq 0x297d0
cmpl $0x0, %eax
je 0xb398f
jmp 0xb3a42
movl -0x2030(%rbp), %eax
addq -0x2028(%rbp), %rax
movq %rax, -0x2028(%rbp)
movl -0x2030(%rbp), %ecx
movq -0x2020(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x2020(%rbp)
movl -0x2030(%rbp), %ecx
movl -0x202c(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x202c(%rbp)
movl $0x2000, -0x2030(%rbp) # imm = 0x2000
jmp 0xb391e
movl -0x2018(%rbp), %edx
leaq -0x2010(%rbp), %rcx
movl -0x202c(%rbp), %eax
movl %eax, %r8d
movq -0x2028(%rbp), %r9
leaq 0xa7fba(%rip), %rdi # 0x15b9bd
movl $0x686, %esi # imm = 0x686
movq $0x4, (%rsp)
callq 0xaeef0
cmpq $0x0, %rax
je 0xb3a1d
jmp 0xb3a42
jmp 0xb3a1f
movq -0x2020(%rbp), %rdi
leaq -0x2010(%rbp), %rsi
movl -0x202c(%rbp), %eax
movl %eax, %edx
callq 0x297d0
movl %eax, -0x2014(%rbp)
jmp 0xb3a4e
jmp 0xb3a44
movl $0x1, -0x2014(%rbp)
movl -0x2014(%rbp), %eax
movl %eax, -0x2034(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xb3a7b
movl -0x2034(%rbp), %eax
addq $0x2040, %rsp # imm = 0x2040
popq %rbp
retq
callq 0x29230
| _mi_cmp_buffer:
push rbp
mov rbp, rsp
sub rsp, 2040h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_2018], edi
mov [rbp+var_2020], rsi
mov [rbp+var_2028], rdx
mov [rbp+var_202C], ecx
mov rax, [rbp+var_2028]
and rax, 0FFFh
mov ecx, eax
mov eax, 2000h
sub eax, ecx
mov [rbp+var_2030], eax
loc_B391E:
cmp [rbp+var_202C], 2000h
jbe loc_B39DF
mov edx, [rbp+var_2018]
lea rcx, [rbp+var_2010]
mov eax, [rbp+var_2030]
mov r8d, eax
mov r9, [rbp+var_2028]
lea rdi, aWorkspaceLlm4b_33; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 67Eh
mov [rsp+2040h+var_2040], 4
call inline_mysql_file_pread_6
cmp rax, 0
jnz short loc_B398A
mov rdi, [rbp+var_2020]
lea rsi, [rbp+var_2010]
mov eax, [rbp+var_2030]
mov edx, eax
call _memcmp
cmp eax, 0
jz short loc_B398F
loc_B398A:
jmp loc_B3A42
loc_B398F:
mov eax, [rbp+var_2030]
add rax, [rbp+var_2028]
mov [rbp+var_2028], rax
mov ecx, [rbp+var_2030]
mov rax, [rbp+var_2020]
mov ecx, ecx
add rax, rcx
mov [rbp+var_2020], rax
mov ecx, [rbp+var_2030]
mov eax, [rbp+var_202C]
sub eax, ecx
mov [rbp+var_202C], eax
mov [rbp+var_2030], 2000h
jmp loc_B391E
loc_B39DF:
mov edx, [rbp+var_2018]
lea rcx, [rbp+var_2010]
mov eax, [rbp+var_202C]
mov r8d, eax
mov r9, [rbp+var_2028]
lea rdi, aWorkspaceLlm4b_33; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 686h
mov [rsp+2040h+var_2040], 4
call inline_mysql_file_pread_6
cmp rax, 0
jz short loc_B3A1D
jmp short loc_B3A42
loc_B3A1D:
jmp short $+2
loc_B3A1F:
mov rdi, [rbp+var_2020]
lea rsi, [rbp+var_2010]
mov eax, [rbp+var_202C]
mov edx, eax
call _memcmp
mov [rbp+var_2014], eax
jmp short loc_B3A4E
loc_B3A42:
jmp short $+2
loc_B3A44:
mov [rbp+var_2014], 1
loc_B3A4E:
mov eax, [rbp+var_2014]
mov [rbp+var_2034], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_B3A7B
mov eax, [rbp+var_2034]
add rsp, 2040h
pop rbp
retn
loc_B3A7B:
call ___stack_chk_fail
| long long mi_cmp_buffer(unsigned int a1, long long a2, long long a3, unsigned int a4)
{
unsigned int v5; // [rsp+10h] [rbp-2030h]
long long v7; // [rsp+18h] [rbp-2028h]
_BYTE v10[8200]; // [rsp+30h] [rbp-2010h] BYREF
unsigned long long v11; // [rsp+2038h] [rbp-8h]
v11 = __readfsqword(0x28u);
v7 = a3;
v5 = 0x2000 - (a3 & 0xFFF);
while ( a4 > 0x2000 )
{
if ( inline_mysql_file_pread_6(
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_dynrec.c",
0x67Eu,
a1,
(long long)v10,
v5,
v7,
4LL)
|| (unsigned int)memcmp(a2, v10, v5) )
{
return 1;
}
v7 += v5;
a2 += v5;
a4 -= v5;
v5 = 0x2000;
}
if ( !inline_mysql_file_pread_6(
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_dynrec.c",
0x686u,
a1,
(long long)v10,
a4,
v7,
4LL) )
return (unsigned int)memcmp(a2, v10, a4);
return 1;
}
| _mi_cmp_buffer:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x2040
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV dword ptr [RBP + -0x2018],EDI
MOV qword ptr [RBP + -0x2020],RSI
MOV qword ptr [RBP + -0x2028],RDX
MOV dword ptr [RBP + -0x202c],ECX
MOV RAX,qword ptr [RBP + -0x2028]
AND RAX,0xfff
MOV ECX,EAX
MOV EAX,0x2000
SUB EAX,ECX
MOV dword ptr [RBP + -0x2030],EAX
LAB_001b391e:
CMP dword ptr [RBP + -0x202c],0x2000
JBE 0x001b39df
MOV EDX,dword ptr [RBP + -0x2018]
LEA RCX,[RBP + -0x2010]
MOV EAX,dword ptr [RBP + -0x2030]
MOV R8D,EAX
MOV R9,qword ptr [RBP + -0x2028]
LEA RDI,[0x25b9bd]
MOV ESI,0x67e
MOV qword ptr [RSP],0x4
CALL 0x001aeef0
CMP RAX,0x0
JNZ 0x001b398a
MOV RDI,qword ptr [RBP + -0x2020]
LEA RSI,[RBP + -0x2010]
MOV EAX,dword ptr [RBP + -0x2030]
MOV EDX,EAX
CALL 0x001297d0
CMP EAX,0x0
JZ 0x001b398f
LAB_001b398a:
JMP 0x001b3a42
LAB_001b398f:
MOV EAX,dword ptr [RBP + -0x2030]
ADD RAX,qword ptr [RBP + -0x2028]
MOV qword ptr [RBP + -0x2028],RAX
MOV ECX,dword ptr [RBP + -0x2030]
MOV RAX,qword ptr [RBP + -0x2020]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x2020],RAX
MOV ECX,dword ptr [RBP + -0x2030]
MOV EAX,dword ptr [RBP + -0x202c]
SUB EAX,ECX
MOV dword ptr [RBP + -0x202c],EAX
MOV dword ptr [RBP + -0x2030],0x2000
JMP 0x001b391e
LAB_001b39df:
MOV EDX,dword ptr [RBP + -0x2018]
LEA RCX,[RBP + -0x2010]
MOV EAX,dword ptr [RBP + -0x202c]
MOV R8D,EAX
MOV R9,qword ptr [RBP + -0x2028]
LEA RDI,[0x25b9bd]
MOV ESI,0x686
MOV qword ptr [RSP],0x4
CALL 0x001aeef0
CMP RAX,0x0
JZ 0x001b3a1d
JMP 0x001b3a42
LAB_001b3a1d:
JMP 0x001b3a1f
LAB_001b3a1f:
MOV RDI,qword ptr [RBP + -0x2020]
LEA RSI,[RBP + -0x2010]
MOV EAX,dword ptr [RBP + -0x202c]
MOV EDX,EAX
CALL 0x001297d0
MOV dword ptr [RBP + -0x2014],EAX
JMP 0x001b3a4e
LAB_001b3a42:
JMP 0x001b3a44
LAB_001b3a44:
MOV dword ptr [RBP + -0x2014],0x1
LAB_001b3a4e:
MOV EAX,dword ptr [RBP + -0x2014]
MOV dword ptr [RBP + -0x2034],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001b3a7b
MOV EAX,dword ptr [RBP + -0x2034]
ADD RSP,0x2040
POP RBP
RET
LAB_001b3a7b:
CALL 0x00129230
|
int _mi_cmp_buffer(int4 param_1,void *param_2,long param_3,uint param_4)
{
int iVar1;
long lVar2;
long in_FS_OFFSET;
uint local_2038;
uint local_2034;
long local_2030;
void *local_2028;
int local_201c;
int1 local_2018 [8200];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_2038 = 0x2000 - ((uint)param_3 & 0xfff);
local_2034 = param_4;
local_2030 = param_3;
local_2028 = param_2;
while (0x2000 < local_2034) {
lVar2 = inline_mysql_file_pread
("/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_dynrec.c",0x67e,
param_1,local_2018,local_2038,local_2030,4);
if ((lVar2 != 0) || (iVar1 = memcmp(local_2028,local_2018,(ulong)local_2038), iVar1 != 0))
goto LAB_001b3a42;
local_2030 = (ulong)local_2038 + local_2030;
local_2028 = (void *)((long)local_2028 + (ulong)local_2038);
local_2034 = local_2034 - local_2038;
local_2038 = 0x2000;
}
lVar2 = inline_mysql_file_pread
("/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_dynrec.c",0x686,
param_1,local_2018,local_2034,local_2030,4);
if (lVar2 == 0) {
local_201c = memcmp(local_2028,local_2018,(ulong)local_2034);
}
else {
LAB_001b3a42:
local_201c = 1;
}
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_201c;
}
| |
24,075 | my_stmt_result | eloqsql/libmariadb/unittest/libmariadb/my_test.h | int my_stmt_result(MYSQL *mysql, const char *buff)
{
MYSQL_STMT *stmt;
int row_count= 0;
int rc;
stmt= mysql_stmt_init(mysql);
rc= mysql_stmt_prepare(stmt, buff, (unsigned long)strlen(buff));
FAIL_IF(rc, mysql_stmt_error(stmt));
rc= mysql_stmt_execute(stmt);
FAIL_IF(rc, mysql_stmt_error(stmt));
while (mysql_stmt_fetch(stmt) != MYSQL_NO_DATA)
row_count++;
mysql_stmt_close(stmt);
return row_count;
} | O0 | c | my_stmt_result:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x10(%rbp), %rdi
callq 0x2b4f0
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rdi
callq 0x131a0
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq %rax, %rdx
callq 0x2bc10
movl %eax, -0x28(%rbp)
cmpl $0x0, -0x28(%rbp)
je 0x13c75
movq -0x20(%rbp), %rdi
callq 0x2ab70
movq %rax, %rsi
leaq 0x3849e(%rip), %rdi # 0x4c0f7
leaq 0x384bf(%rip), %rdx # 0x4c11f
movl $0x156, %ecx # imm = 0x156
movb $0x0, %al
callq 0x167e0
movl $0x1, -0x4(%rbp)
jmp 0x13ce4
jmp 0x13c77
movq -0x20(%rbp), %rdi
callq 0x2d120
movl %eax, -0x28(%rbp)
cmpl $0x0, -0x28(%rbp)
je 0x13cb8
movq -0x20(%rbp), %rdi
callq 0x2ab70
movq %rax, %rsi
leaq 0x3845b(%rip), %rdi # 0x4c0f7
leaq 0x3847c(%rip), %rdx # 0x4c11f
movl $0x159, %ecx # imm = 0x159
movb $0x0, %al
callq 0x167e0
movl $0x1, -0x4(%rbp)
jmp 0x13ce4
jmp 0x13cba
jmp 0x13cbc
movq -0x20(%rbp), %rdi
callq 0x2abc0
cmpl $0x64, %eax
je 0x13cd5
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x13cbc
movq -0x20(%rbp), %rdi
callq 0x2aa50
movl -0x24(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
| my_stmt_result:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_24], 0
mov rdi, [rbp+var_10]
call mysql_stmt_init
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
mov [rbp+var_38], rax
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
mov rdi, [rbp+var_18]
call _strlen
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_30]
mov rdx, rax
call mysql_stmt_prepare
mov [rbp+var_28], eax
cmp [rbp+var_28], 0
jz short loc_13C75
mov rdi, [rbp+var_20]
call mysql_stmt_error
mov rsi, rax
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 156h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp short loc_13CE4
loc_13C75:
jmp short $+2
loc_13C77:
mov rdi, [rbp+var_20]
call mysql_stmt_execute
mov [rbp+var_28], eax
cmp [rbp+var_28], 0
jz short loc_13CB8
mov rdi, [rbp+var_20]
call mysql_stmt_error
mov rsi, rax
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 159h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp short loc_13CE4
loc_13CB8:
jmp short $+2
loc_13CBA:
jmp short $+2
loc_13CBC:
mov rdi, [rbp+var_20]
call mysql_stmt_fetch
cmp eax, 64h ; 'd'
jz short loc_13CD5
mov eax, [rbp+var_24]
add eax, 1
mov [rbp+var_24], eax
jmp short loc_13CBC
loc_13CD5:
mov rdi, [rbp+var_20]
call mysql_stmt_close
mov eax, [rbp+var_24]
mov [rbp+var_4], eax
loc_13CE4:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
| long long my_stmt_result(long long a1, long long a2)
{
long long v2; // rax
int v3; // eax
int v4; // r8d
int v5; // r9d
int v6; // eax
int v7; // r8d
int v8; // r9d
unsigned int v10; // [rsp+1Ch] [rbp-24h]
long long v11; // [rsp+20h] [rbp-20h]
v10 = 0;
v11 = mysql_stmt_init(a1);
v2 = strlen(a2);
if ( (unsigned int)mysql_stmt_prepare(v11, a2, v2) )
{
v3 = mysql_stmt_error(v11);
diag(
(unsigned int)"Error: %s (%s: %d)",
v3,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",
342,
v4,
v5);
return 1;
}
else if ( (unsigned int)mysql_stmt_execute(v11) )
{
v6 = mysql_stmt_error(v11);
diag(
(unsigned int)"Error: %s (%s: %d)",
v6,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",
345,
v7,
v8);
return 1;
}
else
{
while ( (unsigned int)mysql_stmt_fetch(v11) != 100 )
++v10;
mysql_stmt_close(v11);
return v10;
}
}
| my_stmt_result:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x24],0x0
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0012b4f0
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001131a0
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,RAX
CALL 0x0012bc10
MOV dword ptr [RBP + -0x28],EAX
CMP dword ptr [RBP + -0x28],0x0
JZ 0x00113c75
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0012ab70
MOV RSI,RAX
LEA RDI,[0x14c0f7]
LEA RDX,[0x14c11f]
MOV ECX,0x156
MOV AL,0x0
CALL 0x001167e0
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00113ce4
LAB_00113c75:
JMP 0x00113c77
LAB_00113c77:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0012d120
MOV dword ptr [RBP + -0x28],EAX
CMP dword ptr [RBP + -0x28],0x0
JZ 0x00113cb8
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0012ab70
MOV RSI,RAX
LEA RDI,[0x14c0f7]
LEA RDX,[0x14c11f]
MOV ECX,0x159
MOV AL,0x0
CALL 0x001167e0
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00113ce4
LAB_00113cb8:
JMP 0x00113cba
LAB_00113cba:
JMP 0x00113cbc
LAB_00113cbc:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0012abc0
CMP EAX,0x64
JZ 0x00113cd5
MOV EAX,dword ptr [RBP + -0x24]
ADD EAX,0x1
MOV dword ptr [RBP + -0x24],EAX
JMP 0x00113cbc
LAB_00113cd5:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0012aa50
MOV EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x4],EAX
LAB_00113ce4:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
int my_stmt_result(int8 param_1,char *param_2)
{
int iVar1;
int8 uVar2;
size_t sVar3;
int local_2c;
int local_c;
local_2c = 0;
uVar2 = mysql_stmt_init(param_1);
sVar3 = strlen(param_2);
iVar1 = mysql_stmt_prepare(uVar2,param_2,sVar3);
if (iVar1 == 0) {
iVar1 = mysql_stmt_execute(uVar2);
if (iVar1 == 0) {
while (iVar1 = mysql_stmt_fetch(uVar2), iVar1 != 100) {
local_2c = local_2c + 1;
}
mysql_stmt_close(uVar2);
local_c = local_2c;
}
else {
uVar2 = mysql_stmt_error(uVar2);
diag("Error: %s (%s: %d)",uVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",0x159
);
local_c = 1;
}
}
else {
uVar2 = mysql_stmt_error(uVar2);
diag("Error: %s (%s: %d)",uVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",0x156);
local_c = 1;
}
return local_c;
}
| |
24,076 | js_map_write | bluesky950520[P]quickjs/quickjs.c | static int js_map_write(BCWriterState *s, struct JSMapState *map_state,
int magic)
{
struct list_head *el;
JSMapRecord *mr;
bc_put_leb128(s, map_state ? map_state->record_count : 0);
if (map_state) {
list_for_each(el, &map_state->records) {
mr = list_entry(el, JSMapRecord, link);
if (JS_WriteObjectRec(s, mr->key))
return -1;
// mr->value is always JS_UNDEFINED for sets
if (!(magic & MAGIC_SET))
if (JS_WriteObjectRec(s, mr->value))
return -1;
}
}
return 0;
} | O0 | c | js_map_write:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movl %edx, 0x2c(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x30(%rsp)
je 0x78d52
movq 0x30(%rsp), %rax
movl 0x18(%rax), %eax
movl %eax, 0xc(%rsp)
jmp 0x78d5a
xorl %eax, %eax
movl %eax, 0xc(%rsp)
jmp 0x78d5a
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %esi
callq 0x77470
cmpq $0x0, 0x30(%rsp)
je 0x78e14
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
je 0x78e12
movq 0x20(%rsp), %rax
addq $-0x10, %rax
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x30(%rax), %rsi
movq 0x38(%rax), %rdx
callq 0x49fc0
cmpl $0x0, %eax
je 0x78dc9
movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF
jmp 0x78e1c
movl 0x2c(%rsp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x78dfd
movq 0x38(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x40(%rax), %rsi
movq 0x48(%rax), %rdx
callq 0x49fc0
cmpl $0x0, %eax
je 0x78dfb
movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF
jmp 0x78e1c
jmp 0x78dfd
jmp 0x78dff
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x20(%rsp)
jmp 0x78d82
jmp 0x78e14
movl $0x0, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)
| js_map_write:
sub rsp, 48h
mov [rsp+48h+var_10], rdi
mov [rsp+48h+var_18], rsi
mov [rsp+48h+var_1C], edx
mov rax, [rsp+48h+var_10]
mov [rsp+48h+var_38], rax
cmp [rsp+48h+var_18], 0
jz short loc_78D52
mov rax, [rsp+48h+var_18]
mov eax, [rax+18h]
mov [rsp+48h+var_3C], eax
jmp short loc_78D5A
loc_78D52:
xor eax, eax
mov [rsp+48h+var_3C], eax
jmp short $+2
loc_78D5A:
mov rdi, [rsp+48h+var_38]
mov esi, [rsp+48h+var_3C]
call bc_put_leb128
cmp [rsp+48h+var_18], 0
jz loc_78E14
mov rax, [rsp+48h+var_18]
mov rax, [rax+10h]
mov [rsp+48h+var_28], rax
loc_78D82:
mov rax, [rsp+48h+var_28]
mov rcx, [rsp+48h+var_18]
add rcx, 8
cmp rax, rcx
jz short loc_78E12
mov rax, [rsp+48h+var_28]
add rax, 0FFFFFFFFFFFFFFF0h
mov [rsp+48h+var_30], rax
mov rdi, [rsp+48h+var_10]
mov rax, [rsp+48h+var_30]
mov rsi, [rax+30h]
mov rdx, [rax+38h]
call JS_WriteObjectRec
cmp eax, 0
jz short loc_78DC9
mov [rsp+48h+var_4], 0FFFFFFFFh
jmp short loc_78E1C
loc_78DC9:
mov eax, [rsp+48h+var_1C]
and eax, 1
cmp eax, 0
jnz short loc_78DFD
mov rdi, [rsp+48h+var_10]
mov rax, [rsp+48h+var_30]
mov rsi, [rax+40h]
mov rdx, [rax+48h]
call JS_WriteObjectRec
cmp eax, 0
jz short loc_78DFB
mov [rsp+48h+var_4], 0FFFFFFFFh
jmp short loc_78E1C
loc_78DFB:
jmp short $+2
loc_78DFD:
jmp short $+2
loc_78DFF:
mov rax, [rsp+48h+var_28]
mov rax, [rax+8]
mov [rsp+48h+var_28], rax
jmp loc_78D82
loc_78E12:
jmp short $+2
loc_78E14:
mov [rsp+48h+var_4], 0
loc_78E1C:
mov eax, [rsp+48h+var_4]
add rsp, 48h
retn
| long long js_map_write(
long long *a1,
long long a2,
char a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
double v11; // xmm4_8
double v12; // xmm5_8
long long i; // [rsp+20h] [rbp-28h]
if ( a2 )
bc_put_leb128((long long)a1, *(_DWORD *)(a2 + 24));
else
bc_put_leb128((long long)a1, 0);
if ( a2 )
{
for ( i = *(_QWORD *)(a2 + 16); i != a2 + 8; i = *(_QWORD *)(i + 8) )
{
if ( (unsigned int)JS_WriteObjectRec(
a1,
*(_QWORD *)(i - 16 + 48),
*(_QWORD *)(i - 16 + 56),
a4,
a5,
a6,
a7,
v11,
v12,
a10,
a11) )
return (unsigned int)-1;
if ( (a3 & 1) == 0
&& (unsigned int)JS_WriteObjectRec(
a1,
*(_QWORD *)(i - 16 + 64),
*(_QWORD *)(i - 16 + 72),
a4,
a5,
a6,
a7,
v11,
v12,
a10,
a11) )
{
return (unsigned int)-1;
}
}
}
return 0;
}
| js_map_write:
SUB RSP,0x48
MOV qword ptr [RSP + 0x38],RDI
MOV qword ptr [RSP + 0x30],RSI
MOV dword ptr [RSP + 0x2c],EDX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x10],RAX
CMP qword ptr [RSP + 0x30],0x0
JZ 0x00178d52
MOV RAX,qword ptr [RSP + 0x30]
MOV EAX,dword ptr [RAX + 0x18]
MOV dword ptr [RSP + 0xc],EAX
JMP 0x00178d5a
LAB_00178d52:
XOR EAX,EAX
MOV dword ptr [RSP + 0xc],EAX
JMP 0x00178d5a
LAB_00178d5a:
MOV RDI,qword ptr [RSP + 0x10]
MOV ESI,dword ptr [RSP + 0xc]
CALL 0x00177470
CMP qword ptr [RSP + 0x30],0x0
JZ 0x00178e14
MOV RAX,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x20],RAX
LAB_00178d82:
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x30]
ADD RCX,0x8
CMP RAX,RCX
JZ 0x00178e12
MOV RAX,qword ptr [RSP + 0x20]
ADD RAX,-0x10
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RAX + 0x30]
MOV RDX,qword ptr [RAX + 0x38]
CALL 0x00149fc0
CMP EAX,0x0
JZ 0x00178dc9
MOV dword ptr [RSP + 0x44],0xffffffff
JMP 0x00178e1c
LAB_00178dc9:
MOV EAX,dword ptr [RSP + 0x2c]
AND EAX,0x1
CMP EAX,0x0
JNZ 0x00178dfd
MOV RDI,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RAX + 0x40]
MOV RDX,qword ptr [RAX + 0x48]
CALL 0x00149fc0
CMP EAX,0x0
JZ 0x00178dfb
MOV dword ptr [RSP + 0x44],0xffffffff
JMP 0x00178e1c
LAB_00178dfb:
JMP 0x00178dfd
LAB_00178dfd:
JMP 0x00178dff
LAB_00178dff:
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x20],RAX
JMP 0x00178d82
LAB_00178e12:
JMP 0x00178e14
LAB_00178e14:
MOV dword ptr [RSP + 0x44],0x0
LAB_00178e1c:
MOV EAX,dword ptr [RSP + 0x44]
ADD RSP,0x48
RET
|
int4 js_map_write(int8 param_1,long param_2,uint param_3)
{
int iVar1;
int4 local_3c;
long local_28;
if (param_2 == 0) {
local_3c = 0;
}
else {
local_3c = *(int4 *)(param_2 + 0x18);
}
bc_put_leb128(param_1,local_3c);
if (param_2 != 0) {
for (local_28 = *(long *)(param_2 + 0x10); local_28 != param_2 + 8;
local_28 = *(long *)(local_28 + 8)) {
iVar1 = JS_WriteObjectRec(param_1,*(int8 *)(local_28 + 0x20),
*(int8 *)(local_28 + 0x28));
if (iVar1 != 0) {
return 0xffffffff;
}
if (((param_3 & 1) == 0) &&
(iVar1 = JS_WriteObjectRec(param_1,*(int8 *)(local_28 + 0x30),
*(int8 *)(local_28 + 0x38)), iVar1 != 0)) {
return 0xffffffff;
}
}
}
return 0;
}
| |
24,077 | js_map_write | bluesky950520[P]quickjs/quickjs.c | static int js_map_write(BCWriterState *s, struct JSMapState *map_state,
int magic)
{
struct list_head *el;
JSMapRecord *mr;
bc_put_leb128(s, map_state ? map_state->record_count : 0);
if (map_state) {
list_for_each(el, &map_state->records) {
mr = list_entry(el, JSMapRecord, link);
if (JS_WriteObjectRec(s, mr->key))
return -1;
// mr->value is always JS_UNDEFINED for sets
if (!(magic & MAGIC_SET))
if (JS_WriteObjectRec(s, mr->value))
return -1;
}
}
return 0;
} | O1 | c | js_map_write:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
testq %rsi, %rsi
je 0x44e0c
movl %edx, %ebp
movq %rsi, %r14
movl 0x18(%rsi), %esi
leaq 0x8(%rbx), %rdi
callq 0x44c40
movq 0x10(%r14), %r12
addq $0x8, %r14
cmpq %r14, %r12
je 0x44e07
movl $0xffffffff, %r15d # imm = 0xFFFFFFFF
movq 0x20(%r12), %rsi
movq 0x28(%r12), %rdx
movq %rbx, %rdi
callq 0x30e56
testl %eax, %eax
jne 0x44e1d
testb $0x1, %bpl
jne 0x44dfd
movq 0x30(%r12), %rsi
movq 0x38(%r12), %rdx
movq %rbx, %rdi
callq 0x30e56
testl %eax, %eax
jne 0x44e1d
movq 0x8(%r12), %r12
cmpq %r14, %r12
jne 0x44dcb
xorl %r15d, %r15d
jmp 0x44e1d
addq $0x8, %rbx
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1a8bc
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| js_map_write:
push rbp
push r15
push r14
push r12
push rbx
mov rbx, rdi
test rsi, rsi
jz short loc_44E0C
mov ebp, edx
mov r14, rsi
mov esi, [rsi+18h]
lea rdi, [rbx+8]
call dbuf_put_leb128
mov r12, [r14+10h]
add r14, 8
cmp r12, r14
jz short loc_44E07
mov r15d, 0FFFFFFFFh
loc_44DCB:
mov rsi, [r12+20h]
mov rdx, [r12+28h]
mov rdi, rbx
call JS_WriteObjectRec
test eax, eax
jnz short loc_44E1D
test bpl, 1
jnz short loc_44DFD
mov rsi, [r12+30h]
mov rdx, [r12+38h]
mov rdi, rbx
call JS_WriteObjectRec
test eax, eax
jnz short loc_44E1D
loc_44DFD:
mov r12, [r12+8]
cmp r12, r14
jnz short loc_44DCB
loc_44E07:
xor r15d, r15d
jmp short loc_44E1D
loc_44E0C:
add rbx, 8
xor r15d, r15d
mov rdi, rbx
xor esi, esi
call dbuf_putc
loc_44E1D:
mov eax, r15d
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long js_map_write(
long long *a1,
long long a2,
char a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
long long v12; // rcx
long long v13; // r8
long long v14; // r9
__m128 v15; // xmm4
__m128 v16; // xmm5
_QWORD *v17; // r12
unsigned int v18; // r15d
if ( a2 )
{
dbuf_put_leb128(a1 + 1, *(_DWORD *)(a2 + 24));
v17 = *(_QWORD **)(a2 + 16);
if ( v17 == (_QWORD *)(a2 + 8) )
{
return 0;
}
else
{
v18 = -1;
while ( !(unsigned int)JS_WriteObjectRec(a1, v17[4], v17[5], v12, v13, v14, a4, a5, a6, a7, v15, v16, a10, a11)
&& ((a3 & 1) != 0
|| !(unsigned int)JS_WriteObjectRec(a1, v17[6], v17[7], v12, v13, v14, a4, a5, a6, a7, v15, v16, a10, a11)) )
{
v17 = (_QWORD *)v17[1];
if ( v17 == (_QWORD *)(a2 + 8) )
return 0;
}
}
}
else
{
v18 = 0;
dbuf_putc(a1 + 1, 0);
}
return v18;
}
| js_map_write:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RDI
TEST RSI,RSI
JZ 0x00144e0c
MOV EBP,EDX
MOV R14,RSI
MOV ESI,dword ptr [RSI + 0x18]
LEA RDI,[RBX + 0x8]
CALL 0x00144c40
MOV R12,qword ptr [R14 + 0x10]
ADD R14,0x8
CMP R12,R14
JZ 0x00144e07
MOV R15D,0xffffffff
LAB_00144dcb:
MOV RSI,qword ptr [R12 + 0x20]
MOV RDX,qword ptr [R12 + 0x28]
MOV RDI,RBX
CALL 0x00130e56
TEST EAX,EAX
JNZ 0x00144e1d
TEST BPL,0x1
JNZ 0x00144dfd
MOV RSI,qword ptr [R12 + 0x30]
MOV RDX,qword ptr [R12 + 0x38]
MOV RDI,RBX
CALL 0x00130e56
TEST EAX,EAX
JNZ 0x00144e1d
LAB_00144dfd:
MOV R12,qword ptr [R12 + 0x8]
CMP R12,R14
JNZ 0x00144dcb
LAB_00144e07:
XOR R15D,R15D
JMP 0x00144e1d
LAB_00144e0c:
ADD RBX,0x8
XOR R15D,R15D
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0011a8bc
LAB_00144e1d:
MOV EAX,R15D
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int8 js_map_write(long param_1,long param_2,ulong param_3)
{
long lVar1;
int iVar2;
if (param_2 == 0) {
dbuf_putc(param_1 + 8,0);
}
else {
dbuf_put_leb128(param_1 + 8,*(int4 *)(param_2 + 0x18));
for (lVar1 = *(long *)(param_2 + 0x10); lVar1 != param_2 + 8; lVar1 = *(long *)(lVar1 + 8)) {
iVar2 = JS_WriteObjectRec(param_1,*(int8 *)(lVar1 + 0x20),*(int8 *)(lVar1 + 0x28))
;
if (iVar2 != 0) {
return 0xffffffff;
}
if (((param_3 & 1) == 0) &&
(iVar2 = JS_WriteObjectRec(param_1,*(int8 *)(lVar1 + 0x30),
*(int8 *)(lVar1 + 0x38)), iVar2 != 0)) {
return 0xffffffff;
}
}
}
return 0;
}
| |
24,078 | my_hash_reset | eloqsql/mysys/hash.c | void my_hash_reset(HASH *hash)
{
DBUG_ENTER("my_hash_reset");
DBUG_PRINT("enter",("hash:%p", hash));
my_hash_free_elements(hash);
reset_dynamic(&hash->array);
/* Set row pointers so that the hash can be reused at once */
hash->blength= 1;
DBUG_VOID_RETURN;
} | O0 | c | my_hash_reset:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
jmp 0xdda1e
movq -0x8(%rbp), %rdi
callq 0xdd980
movq -0x8(%rbp), %rax
movl $0x0, 0x30(%rax)
movq -0x8(%rbp), %rax
movq $0x1, 0x10(%rax)
jmp 0xdda40
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_hash_reset:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
jmp short $+2
loc_DDA1E:
mov rdi, [rbp+var_8]
call my_hash_free_elements
mov rax, [rbp+var_8]
mov dword ptr [rax+30h], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+10h], 1
jmp short $+2
loc_DDA40:
add rsp, 10h
pop rbp
retn
| unsigned long long my_hash_reset(unsigned long long a1)
{
unsigned long long result; // rax
my_hash_free_elements(a1);
*(_DWORD *)(a1 + 48) = 0;
result = a1;
*(_QWORD *)(a1 + 16) = 1LL;
return result;
}
| my_hash_reset:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
JMP 0x001dda1e
LAB_001dda1e:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001dd980
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x30],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],0x1
JMP 0x001dda40
LAB_001dda40:
ADD RSP,0x10
POP RBP
RET
|
void my_hash_reset(long param_1)
{
my_hash_free_elements(param_1);
*(int4 *)(param_1 + 0x30) = 0;
*(int8 *)(param_1 + 0x10) = 1;
return;
}
| |
24,079 | void gguf_check_reserved_keys<signed char>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, signed char) | ngxson[P]ggml-easy/ggml/src/gguf.cpp | static void gguf_check_reserved_keys(const std::string & key, const T val) {
if (key == GGUF_KEY_GENERAL_ALIGNMENT) {
if constexpr (std::is_same<T, uint32_t>::value) {
GGML_ASSERT(val > 0 && (val & (val - 1)) == 0 && GGUF_KEY_GENERAL_ALIGNMENT " must be power of 2");
} else {
GGML_UNUSED(val);
GGML_ABORT(GGUF_KEY_GENERAL_ALIGNMENT " must be type u32");
}
}
} | O0 | cpp | void gguf_check_reserved_keys<signed char>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, signed char):
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x10(%rsp), %rdi
leaq 0x32844(%rip), %rsi # 0xc3bce
callq 0x47c20
testb $0x1, %al
jne 0x91395
jmp 0x913af
leaq 0x327c5(%rip), %rdi # 0xc3b61
movl $0x3a8, %esi # imm = 0x3A8
leaq 0x32ff0(%rip), %rdx # 0xc4398
movb $0x0, %al
callq 0x46780
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
| _ZL24gguf_check_reserved_keysIPPKcEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET_:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov [rsp+18h+var_10], rsi
mov rdi, [rsp+18h+var_8]
lea rsi, aGeneralAlignme; "general.alignment"
call __ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, 1
jnz short loc_91395
jmp short loc_913AF
loc_91395:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
mov esi, 3A8h
lea rdx, aGeneralAlignme_0; "general.alignment must be type u32"
mov al, 0
call _ggml_abort
loc_913AF:
add rsp, 18h
retn
| long long gguf_check_reserved_keys<char const**>(long long a1)
{
long long result; // rax
result = std::operator==<char>(a1, "general.alignment");
if ( (result & 1) != 0 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/gguf.cpp",
936,
(long long)"general.alignment must be type u32");
return result;
}
| gguf_check_reserved_keys<char_const**>:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV qword ptr [RSP + 0x8],RSI
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[0x1c3bce]
CALL 0x00147c20
TEST AL,0x1
JNZ 0x00191395
JMP 0x001913af
LAB_00191395:
LEA RDI,[0x1c3b61]
MOV ESI,0x3a8
LEA RDX,[0x1c4398]
MOV AL,0x0
CALL 0x00146780
LAB_001913af:
ADD RSP,0x18
RET
|
/* void gguf_check_reserved_keys<char const**>(std::__cxx11::string const&, char const**) */
void gguf_check_reserved_keys<char_const**>(string *param_1,char **param_2)
{
bool bVar1;
bVar1 = std::operator==(param_1,"general.alignment");
if (bVar1) {
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/gguf.cpp",0x3a8,
"general.alignment must be type u32");
}
return;
}
| |
24,080 | httplib::detail::MultipartFormDataParser::buf_append(char const*, unsigned long) | nickolajgrishuk[P]metricz-cpp/build_O1/_deps/httplib-src/httplib.h | void buf_append(const char *data, size_t n) {
auto remaining_size = buf_size();
if (remaining_size > 0 && buf_spos_ > 0) {
for (size_t i = 0; i < remaining_size; i++) {
buf_[i] = buf_[buf_spos_ + i];
}
}
buf_spos_ = 0;
buf_epos_ = remaining_size;
if (remaining_size + n > buf_.size()) { buf_.resize(remaining_size + n); }
for (size_t i = 0; i < n; i++) {
buf_[buf_epos_ + i] = data[i];
}
buf_epos_ += n;
} | O1 | c | httplib::detail::MultipartFormDataParser::buf_append(char const*, unsigned long):
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x170(%rdi), %rax
movq 0x178(%rdi), %rsi
subq %rax, %rsi
sete %cl
testq %rax, %rax
sete %al
orb %cl, %al
jne 0x28438
xorl %eax, %eax
movq 0x150(%r14), %rcx
movq 0x170(%r14), %rdx
leaq (%rcx,%rax), %rdi
movb (%rdx,%rdi), %dl
movb %dl, (%rcx,%rax)
incq %rax
cmpq %rax, %rsi
jne 0x28418
movq $0x0, 0x170(%r14)
movq %rsi, 0x178(%r14)
addq %rbx, %rsi
cmpq 0x158(%r14), %rsi
jbe 0x28464
leaq 0x150(%r14), %rdi
xorl %edx, %edx
callq 0x8150
testq %rbx, %rbx
je 0x28488
xorl %eax, %eax
movq 0x150(%r14), %rcx
addq 0x178(%r14), %rcx
movb (%r15,%rax), %dl
movb %dl, (%rax,%rcx)
incq %rax
cmpq %rax, %rbx
jne 0x2846b
addq %rbx, 0x178(%r14)
popq %rbx
popq %r14
popq %r15
retq
nop
| _ZN7httplib6detail23MultipartFormDataParser10buf_appendEPKcm:
push r15
push r14
push rbx
mov rbx, rdx
mov r15, rsi
mov r14, rdi
mov rax, [rdi+170h]
mov rsi, [rdi+178h]
sub rsi, rax
setz cl
test rax, rax
setz al
or al, cl
jnz short loc_28438
xor eax, eax
loc_28418:
mov rcx, [r14+150h]
mov rdx, [r14+170h]
lea rdi, [rcx+rax]
mov dl, [rdx+rdi]
mov [rcx+rax], dl
inc rax
cmp rsi, rax
jnz short loc_28418
loc_28438:
mov qword ptr [r14+170h], 0
mov [r14+178h], rsi
add rsi, rbx
cmp rsi, [r14+158h]
jbe short loc_28464
lea rdi, [r14+150h]
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char)
loc_28464:
test rbx, rbx
jz short loc_28488
xor eax, eax
loc_2846B:
mov rcx, [r14+150h]
add rcx, [r14+178h]
mov dl, [r15+rax]
mov [rax+rcx], dl
inc rax
cmp rbx, rax
jnz short loc_2846B
loc_28488:
add [r14+178h], rbx
pop rbx
pop r14
pop r15
retn
| char httplib::detail::MultipartFormDataParser::buf_append(
httplib::detail::MultipartFormDataParser *this,
const char *a2,
long long a3)
{
long long v5; // rsi
long long v6; // rax
unsigned long long v7; // rsi
v6 = *((_QWORD *)this + 46);
v5 = *((_QWORD *)this + 47) - v6;
LOBYTE(v6) = *((_QWORD *)this + 47) == v6 || v6 == 0;
if ( !(_BYTE)v6 )
{
v6 = 0LL;
do
{
*(_BYTE *)(*((_QWORD *)this + 42) + v6) = *(_BYTE *)(*((_QWORD *)this + 46) + *((_QWORD *)this + 42) + v6);
++v6;
}
while ( v5 != v6 );
}
*((_QWORD *)this + 46) = 0LL;
*((_QWORD *)this + 47) = v5;
v7 = a3 + v5;
if ( v7 > *((_QWORD *)this + 43) )
LOBYTE(v6) = std::string::resize((char *)this + 336, v7, 0LL);
if ( a3 )
{
v6 = 0LL;
do
{
*(_BYTE *)(v6 + *((_QWORD *)this + 47) + *((_QWORD *)this + 42)) = a2[v6];
++v6;
}
while ( a3 != v6 );
}
*((_QWORD *)this + 47) += a3;
return v6;
}
| buf_append:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RDX
MOV R15,RSI
MOV R14,RDI
MOV RAX,qword ptr [RDI + 0x170]
MOV RSI,qword ptr [RDI + 0x178]
SUB RSI,RAX
SETZ CL
TEST RAX,RAX
SETZ AL
OR AL,CL
JNZ 0x00128438
XOR EAX,EAX
LAB_00128418:
MOV RCX,qword ptr [R14 + 0x150]
MOV RDX,qword ptr [R14 + 0x170]
LEA RDI,[RCX + RAX*0x1]
MOV DL,byte ptr [RDX + RDI*0x1]
MOV byte ptr [RCX + RAX*0x1],DL
INC RAX
CMP RSI,RAX
JNZ 0x00128418
LAB_00128438:
MOV qword ptr [R14 + 0x170],0x0
MOV qword ptr [R14 + 0x178],RSI
ADD RSI,RBX
CMP RSI,qword ptr [R14 + 0x158]
JBE 0x00128464
LEA RDI,[R14 + 0x150]
XOR EDX,EDX
CALL 0x00108150
LAB_00128464:
TEST RBX,RBX
JZ 0x00128488
XOR EAX,EAX
LAB_0012846b:
MOV RCX,qword ptr [R14 + 0x150]
ADD RCX,qword ptr [R14 + 0x178]
MOV DL,byte ptr [R15 + RAX*0x1]
MOV byte ptr [RAX + RCX*0x1],DL
INC RAX
CMP RBX,RAX
JNZ 0x0012846b
LAB_00128488:
ADD qword ptr [R14 + 0x178],RBX
POP RBX
POP R14
POP R15
RET
|
/* httplib::detail::MultipartFormDataParser::buf_append(char const*, unsigned long) */
void __thiscall
httplib::detail::MultipartFormDataParser::buf_append
(MultipartFormDataParser *this,char *param_1,ulong param_2)
{
long lVar1;
ulong uVar2;
long lVar3;
lVar3 = *(long *)(this + 0x178) - *(long *)(this + 0x170);
if (*(long *)(this + 0x170) != 0 && lVar3 != 0) {
lVar1 = 0;
do {
*(int1 *)(*(long *)(this + 0x150) + lVar1) =
*(int1 *)(*(long *)(this + 0x170) + *(long *)(this + 0x150) + lVar1);
lVar1 = lVar1 + 1;
} while (lVar3 != lVar1);
}
*(int8 *)(this + 0x170) = 0;
*(long *)(this + 0x178) = lVar3;
if (*(ulong *)(this + 0x158) < lVar3 + param_2) {
std::__cxx11::string::resize((ulong)(this + 0x150),(char)(lVar3 + param_2));
}
if (param_2 != 0) {
uVar2 = 0;
do {
*(char *)(uVar2 + *(long *)(this + 0x150) + *(long *)(this + 0x178)) = param_1[uVar2];
uVar2 = uVar2 + 1;
} while (param_2 != uVar2);
}
*(ulong *)(this + 0x178) = *(long *)(this + 0x178) + param_2;
return;
}
| |
24,081 | mi_ck_real_write_btree | eloqsql/storage/myisam/mi_write.c | int _mi_ck_real_write_btree(MI_INFO *info, MI_KEYDEF *keyinfo,
uchar *key, uint key_length, my_off_t *root, uint comp_flag)
{
int error;
DBUG_ENTER("_mi_ck_real_write_btree");
/* key_length parameter is used only if comp_flag is SEARCH_FIND */
if (*root == HA_OFFSET_ERROR ||
(error=w_search(info, keyinfo, comp_flag, key, key_length,
*root, (uchar *) 0, (uchar*) 0,
(my_off_t) 0, 1)) > 0)
error=_mi_enlarge_root(info,keyinfo,key,root);
DBUG_RETURN(error);
} | O3 | c | mi_ck_real_write_btree:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %r8, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq (%r8), %rax
cmpq $-0x1, %rax
je 0x883ae
movl %ecx, %r8d
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movl $0x1, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
movq %r12, %rdi
movq %r15, %rsi
movl %r9d, %edx
movq %r14, %rcx
movq %rax, %r9
callq 0x883d8
testl %eax, %eax
jle 0x883cb
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x88794
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| _mi_ck_real_write_btree:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 20h
mov rbx, r8
mov r14, rdx
mov r15, rsi
mov r12, rdi
mov rax, [r8]
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_883AE
mov r8d, ecx
xorps xmm0, xmm0
movups [rsp+40h+var_40], xmm0
mov [rsp+40h+var_28], 1
mov [rsp+40h+var_30], 0
mov rdi, r12
mov rsi, r15
mov edx, r9d
mov rcx, r14
mov r9, rax
call w_search_0
test eax, eax
jle short loc_883CB
loc_883AE:
mov rdi, r12
mov rsi, r15
mov rdx, r14
mov rcx, rbx
add rsp, 20h
pop rbx
pop r12
pop r14
pop r15
pop rbp
jmp _mi_enlarge_root
loc_883CB:
add rsp, 20h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long mi_ck_real_write_btree(long long a1, long long a2, long long a3, int a4, _QWORD *a5, int a6)
{
long long result; // rax
if ( *a5 == -1LL )
return mi_enlarge_root(a1, a2, a3, a5);
result = w_search_0(a1, a2, a6, a3, a4, *a5, 0LL, 0LL, 0LL, 1);
if ( (int)result > 0 )
return mi_enlarge_root(a1, a2, a3, a5);
return result;
}
| _mi_ck_real_write_btree:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x20
MOV RBX,R8
MOV R14,RDX
MOV R15,RSI
MOV R12,RDI
MOV RAX,qword ptr [R8]
CMP RAX,-0x1
JZ 0x001883ae
MOV R8D,ECX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP],XMM0
MOV dword ptr [RSP + 0x18],0x1
MOV qword ptr [RSP + 0x10],0x0
MOV RDI,R12
MOV RSI,R15
MOV EDX,R9D
MOV RCX,R14
MOV R9,RAX
CALL 0x001883d8
TEST EAX,EAX
JLE 0x001883cb
LAB_001883ae:
MOV RDI,R12
MOV RSI,R15
MOV RDX,R14
MOV RCX,RBX
ADD RSP,0x20
POP RBX
POP R12
POP R14
POP R15
POP RBP
JMP 0x00188794
LAB_001883cb:
ADD RSP,0x20
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
void _mi_ck_real_write_btree
(int8 param_1,int8 param_2,int8 param_3,int4 param_4,
long *param_5,int4 param_6)
{
int iVar1;
if (*param_5 != -1) {
iVar1 = w_search(param_1,param_2,param_6,param_3,param_4,*param_5,0,0,0,1);
if (iVar1 < 1) {
return;
}
}
_mi_enlarge_root(param_1,param_2,param_3,param_5);
return;
}
| |
24,082 | mi_dpos | eloqsql/storage/myisam/mi_search.c | my_off_t _mi_dpos(MI_INFO *info, uint nod_flag, uchar *after_key)
{
my_off_t pos;
after_key-=(nod_flag + info->s->rec_reflength);
switch (info->s->rec_reflength) {
#if SIZEOF_OFF_T > 4
case 8: pos= (my_off_t) mi_uint8korr(after_key); break;
case 7: pos= (my_off_t) mi_uint7korr(after_key); break;
case 6: pos= (my_off_t) mi_uint6korr(after_key); break;
case 5: pos= (my_off_t) mi_uint5korr(after_key); break;
#else
case 8: pos= (my_off_t) mi_uint4korr(after_key+4); break;
case 7: pos= (my_off_t) mi_uint4korr(after_key+3); break;
case 6: pos= (my_off_t) mi_uint4korr(after_key+2); break;
case 5: pos= (my_off_t) mi_uint4korr(after_key+1); break;
#endif
case 4: pos= (my_off_t) mi_uint4korr(after_key); break;
case 3: pos= (my_off_t) mi_uint3korr(after_key); break;
case 2: pos= (my_off_t) mi_uint2korr(after_key); break;
default:
pos=0L; /* Shut compiler up */
}
return (info->s->options &
(HA_OPTION_PACK_RECORD | HA_OPTION_COMPRESS_RECORD)) ? pos :
pos*info->s->base.pack_reclength;
} | O3 | c | mi_dpos:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
movl 0x338(%rcx), %edi
leal -0x2(%rdi), %eax
cmpl $0x6, %eax
ja 0x8435f
addl %esi, %edi
negq %rdi
leaq 0x5d672(%rip), %rsi # 0xe1990
movslq (%rsi,%rax,4), %rax
addq %rsi, %rax
jmpq *%rax
movzwl (%rdx,%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %eax
jmp 0x843a3
movl (%rdx,%rdi), %eax
movzwl 0x4(%rdx,%rdi), %edx
shlq $0x30, %rdx
shlq $0x10, %rax
jmp 0x84397
movl (%rdx,%rdi), %eax
bswapl %eax
jmp 0x843a3
movl (%rdx,%rdi), %eax
movzbl 0x4(%rdx,%rdi), %edx
shlq $0x38, %rdx
shlq $0x18, %rax
jmp 0x84397
xorl %eax, %eax
jmp 0x843a3
movzwl 0x1(%rdx,%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %esi
movzbl (%rdx,%rdi), %eax
shll $0x10, %eax
orq %rsi, %rax
jmp 0x843a3
movl (%rdx,%rdi), %eax
movzwl 0x4(%rdx,%rdi), %esi
movzbl 0x6(%rdx,%rdi), %edx
shlq $0x38, %rdx
shlq $0x28, %rsi
shlq $0x8, %rax
orq %rsi, %rax
orq %rdx, %rax
jmp 0x843a0
movq (%rdx,%rdi), %rax
bswapq %rax
testb $0x5, 0x318(%rcx)
jne 0x843b4
imulq 0x148(%rcx), %rax
popq %rbp
retq
| _mi_dpos:
push rbp
mov rbp, rsp
mov rcx, [rdi]
mov edi, [rcx+338h]
lea eax, [rdi-2]; switch 7 cases
cmp eax, 6
ja short def_84325; jumptable 0000000000084325 default case
add edi, esi
neg rdi
lea rsi, jpt_84325
movsxd rax, ds:(jpt_84325 - 0E1990h)[rsi+rax*4]
add rax, rsi
jmp rax; switch jump
loc_84327:
movzx eax, word ptr [rdx+rdi]; jumptable 0000000000084325 case 2
rol ax, 8
movzx eax, ax
jmp short loc_843A3
loc_84334:
mov eax, [rdx+rdi]; jumptable 0000000000084325 case 6
movzx edx, word ptr [rdx+rdi+4]
shl rdx, 30h
shl rax, 10h
jmp short loc_84397
loc_84346:
mov eax, [rdx+rdi]; jumptable 0000000000084325 case 4
bswap eax
jmp short loc_843A3
loc_8434D:
mov eax, [rdx+rdi]; jumptable 0000000000084325 case 5
movzx edx, byte ptr [rdx+rdi+4]
shl rdx, 38h
shl rax, 18h
jmp short loc_84397
def_84325:
xor eax, eax; jumptable 0000000000084325 default case
jmp short loc_843A3
loc_84363:
movzx eax, word ptr [rdx+rdi+1]; jumptable 0000000000084325 case 3
rol ax, 8
movzx esi, ax
movzx eax, byte ptr [rdx+rdi]
shl eax, 10h
or rax, rsi
jmp short loc_843A3
loc_8437B:
mov eax, [rdx+rdi]; jumptable 0000000000084325 case 7
movzx esi, word ptr [rdx+rdi+4]
movzx edx, byte ptr [rdx+rdi+6]
shl rdx, 38h
shl rsi, 28h
shl rax, 8
or rax, rsi
loc_84397:
or rax, rdx
jmp short loc_843A0
loc_8439C:
mov rax, [rdx+rdi]; jumptable 0000000000084325 case 8
loc_843A0:
bswap rax
loc_843A3:
test byte ptr [rcx+318h], 5
jnz short loc_843B4
imul rax, [rcx+148h]
loc_843B4:
pop rbp
retn
| unsigned long long mi_dpos(long long *a1, int a2, long long a3)
{
long long v3; // rcx
int v4; // edi
int v5; // eax
long long v6; // rdi
unsigned long long result; // rax
long long v8; // rax
unsigned long long v9; // rdx
long long v10; // rax
long long v11; // rax
long long v12; // rax
long long v13; // rsi
unsigned long long v14; // rax
v3 = *a1;
v4 = *(_DWORD *)(*a1 + 824);
v5 = v4 - 2;
v6 = -(long long)(unsigned int)(a2 + v4);
switch ( v5 )
{
case 0:
result = (unsigned __int16)__ROL2__(*(_WORD *)(a3 + v6), 8);
break;
case 1:
result = (unsigned __int16)__ROL2__(*(_WORD *)(a3 + v6 + 1), 8) | (unsigned long long)(*(unsigned __int8 *)(a3 + v6) << 16);
break;
case 2:
result = _byteswap_ulong(*(_DWORD *)(a3 + v6));
break;
case 3:
v11 = *(unsigned int *)(a3 + v6);
v9 = (unsigned long long)*(unsigned __int8 *)(a3 + v6 + 4) << 56;
v10 = v11 << 24;
goto LABEL_9;
case 4:
v8 = *(unsigned int *)(a3 + v6);
v9 = (unsigned long long)*(unsigned __int16 *)(a3 + v6 + 4) << 48;
v10 = v8 << 16;
goto LABEL_9;
case 5:
v12 = *(unsigned int *)(a3 + v6);
v13 = *(unsigned __int16 *)(a3 + v6 + 4);
v9 = (unsigned long long)*(unsigned __int8 *)(a3 + v6 + 6) << 56;
v10 = (v13 << 40) | (v12 << 8);
LABEL_9:
v14 = v9 | v10;
goto LABEL_11;
case 6:
v14 = *(_QWORD *)(a3 + v6);
LABEL_11:
result = _byteswap_uint64(v14);
break;
default:
result = 0LL;
break;
}
if ( (*(_BYTE *)(v3 + 792) & 5) == 0 )
result *= *(_QWORD *)(v3 + 328);
return result;
}
| _mi_dpos:
PUSH RBP
MOV RBP,RSP
MOV RCX,qword ptr [RDI]
MOV EDI,dword ptr [RCX + 0x338]
LEA EAX,[RDI + -0x2]
CMP EAX,0x6
JA 0x0018435f
ADD EDI,ESI
NEG RDI
LEA RSI,[0x1e1990]
MOVSXD RAX,dword ptr [RSI + RAX*0x4]
ADD RAX,RSI
switchD:
JMP RAX
caseD_2:
MOVZX EAX,word ptr [RDX + RDI*0x1]
ROL AX,0x8
MOVZX EAX,AX
JMP 0x001843a3
caseD_6:
MOV EAX,dword ptr [RDX + RDI*0x1]
MOVZX EDX,word ptr [RDX + RDI*0x1 + 0x4]
SHL RDX,0x30
SHL RAX,0x10
JMP 0x00184397
caseD_4:
MOV EAX,dword ptr [RDX + RDI*0x1]
BSWAP EAX
JMP 0x001843a3
caseD_5:
MOV EAX,dword ptr [RDX + RDI*0x1]
MOVZX EDX,byte ptr [RDX + RDI*0x1 + 0x4]
SHL RDX,0x38
SHL RAX,0x18
JMP 0x00184397
LAB_0018435f:
XOR EAX,EAX
JMP 0x001843a3
caseD_3:
MOVZX EAX,word ptr [RDX + RDI*0x1 + 0x1]
ROL AX,0x8
MOVZX ESI,AX
MOVZX EAX,byte ptr [RDX + RDI*0x1]
SHL EAX,0x10
OR RAX,RSI
JMP 0x001843a3
caseD_7:
MOV EAX,dword ptr [RDX + RDI*0x1]
MOVZX ESI,word ptr [RDX + RDI*0x1 + 0x4]
MOVZX EDX,byte ptr [RDX + RDI*0x1 + 0x6]
SHL RDX,0x38
SHL RSI,0x28
SHL RAX,0x8
OR RAX,RSI
LAB_00184397:
OR RAX,RDX
JMP 0x001843a0
caseD_8:
MOV RAX,qword ptr [RDX + RDI*0x1]
LAB_001843a0:
BSWAP RAX
LAB_001843a3:
TEST byte ptr [RCX + 0x318],0x5
JNZ 0x001843b4
IMUL RAX,qword ptr [RCX + 0x148]
LAB_001843b4:
POP RBP
RET
|
ulong _mi_dpos(long *param_1,int param_2,long param_3)
{
ushort uVar1;
int iVar2;
uint uVar3;
long lVar4;
ulong uVar5;
ulong uVar6;
long lVar7;
lVar4 = *param_1;
iVar2 = *(int *)(lVar4 + 0x338);
if (6 < iVar2 - 2U) {
uVar5 = 0;
goto LAB_001843a3;
}
lVar7 = -(ulong)(uint)(iVar2 + param_2);
switch(iVar2) {
case 2:
uVar5 = (ulong)(ushort)(*(ushort *)(param_3 + lVar7) << 8 | *(ushort *)(param_3 + lVar7) >> 8);
goto LAB_001843a3;
case 3:
uVar1 = *(ushort *)(param_3 + 1 + lVar7);
uVar5 = (ulong)CONCAT12(*(int1 *)(param_3 + lVar7),uVar1 << 8 | uVar1 >> 8);
goto LAB_001843a3;
case 4:
uVar3 = *(uint *)(param_3 + lVar7);
uVar5 = (ulong)(uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18)
;
goto LAB_001843a3;
case 5:
uVar6 = (ulong)*(byte *)(param_3 + 4 + lVar7) << 0x38;
uVar5 = (ulong)*(uint *)(param_3 + lVar7) << 0x18;
break;
case 6:
uVar6 = (ulong)*(ushort *)(param_3 + 4 + lVar7) << 0x30;
uVar5 = (ulong)*(uint *)(param_3 + lVar7) << 0x10;
break;
case 7:
uVar6 = (ulong)*(byte *)(param_3 + 6 + lVar7) << 0x38;
uVar5 = (ulong)*(uint *)(param_3 + lVar7) << 8 | (ulong)*(ushort *)(param_3 + 4 + lVar7) << 0x28
;
break;
case 8:
uVar5 = *(ulong *)(param_3 + lVar7);
goto LAB_001843a0;
}
uVar5 = uVar5 | uVar6;
LAB_001843a0:
uVar5 = uVar5 >> 0x38 | (uVar5 & 0xff000000000000) >> 0x28 | (uVar5 & 0xff0000000000) >> 0x18 |
(uVar5 & 0xff00000000) >> 8 | (uVar5 & 0xff000000) << 8 | (uVar5 & 0xff0000) << 0x18 |
(uVar5 & 0xff00) << 0x28 | uVar5 << 0x38;
LAB_001843a3:
if ((*(byte *)(lVar4 + 0x318) & 5) == 0) {
uVar5 = uVar5 * *(long *)(lVar4 + 0x148);
}
return uVar5;
}
| |
24,083 | testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity, char const*, int) | giladroyz[P]FindPeaks/build_O0/_deps/googletest-src/googletest/src/gtest-port.cc | GTestLog::GTestLog(GTestLogSeverity severity, const char* file, int line)
: severity_(severity) {
const char* const marker = severity == GTEST_INFO ? "[ INFO ]"
: severity == GTEST_WARNING ? "[WARNING]"
: severity == GTEST_ERROR ? "[ ERROR ]"
: "[ FATAL ]";
GetStream() << ::std::endl
<< marker << " " << FormatFileLocation(file, line).c_str()
<< ": ";
} | O0 | cpp | testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity, char const*, int):
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
movl -0xc(%rbp), %ecx
movl %ecx, (%rax)
cmpl $0x0, -0xc(%rbp)
jne 0x1f4c9
leaq 0x5b5a9(%rip), %rax # 0x7aa6c
movq %rax, -0x68(%rbp)
jmp 0x1f50c
cmpl $0x1, -0xc(%rbp)
jne 0x1f4dc
leaq 0x5b5a0(%rip), %rax # 0x7aa76
movq %rax, -0x70(%rbp)
jmp 0x1f504
cmpl $0x2, -0xc(%rbp)
jne 0x1f4ef
leaq 0x5b597(%rip), %rax # 0x7aa80
movq %rax, -0x78(%rbp)
jmp 0x1f4fc
leaq 0x5b594(%rip), %rax # 0x7aa8a
movq %rax, -0x78(%rbp)
jmp 0x1f4fc
movq -0x78(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rax
movq %rax, -0x28(%rbp)
callq 0x14d40
movq %rax, %rdi
movq 0x8ea81(%rip), %rsi # 0xadfa8
callq 0xa690
movq %rax, %rdi
movq -0x28(%rbp), %rsi
callq 0xa600
movq %rax, %rdi
leaq 0x5bc4b(%rip), %rsi # 0x7b18d
callq 0xa600
movq %rax, -0x88(%rbp)
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
leaq -0x48(%rbp), %rdi
movq %rdi, -0x90(%rbp)
callq 0x1f110
movq -0x90(%rbp), %rdi
callq 0xa260
movq -0x88(%rbp), %rdi
movq %rax, %rsi
callq 0xa600
movq %rax, -0x80(%rbp)
jmp 0x1f586
movq -0x80(%rbp), %rdi
leaq 0x5c76f(%rip), %rsi # 0x7bd00
callq 0xa600
jmp 0x1f598
leaq -0x48(%rbp), %rdi
callq 0xad98
addq $0x90, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x48(%rbp), %rdi
callq 0xad98
movq -0x50(%rbp), %rdi
callq 0xac00
nopl (%rax,%rax)
| _ZN7testing8internal8GTestLogC2ENS0_16GTestLogSeverityEPKci:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
mov rax, [rbp+var_8]
mov [rbp+var_60], rax
mov ecx, [rbp+var_C]
mov [rax], ecx
cmp [rbp+var_C], 0
jnz short loc_1F4C9
lea rax, aInfo; "[ INFO ]"
mov [rbp+var_68], rax
jmp short loc_1F50C
loc_1F4C9:
cmp [rbp+var_C], 1
jnz short loc_1F4DC
lea rax, aWarning; "[WARNING]"
mov [rbp+var_70], rax
jmp short loc_1F504
loc_1F4DC:
cmp [rbp+var_C], 2
jnz short loc_1F4EF
lea rax, aError; "[ ERROR ]"
mov [rbp+var_78], rax
jmp short loc_1F4FC
loc_1F4EF:
lea rax, aFatal; "[ FATAL ]"
mov [rbp+var_78], rax
jmp short $+2
loc_1F4FC:
mov rax, [rbp+var_78]
mov [rbp+var_70], rax
loc_1F504:
mov rax, [rbp+var_70]
mov [rbp+var_68], rax
loc_1F50C:
mov rdi, [rbp+var_60]; this
mov rax, [rbp+var_68]
mov [rbp+var_28], rax
call _ZN7testing8internal8GTestLog9GetStreamEv; testing::internal::GTestLog::GetStream(void)
mov rdi, rax
mov rsi, cs:_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6__ptr
call __ZNSolsEPFRSoS_E; std::ostream::operator<<(std::ostream & (*)(std::ostream &))
mov rdi, rax
mov rsi, [rbp+var_28]
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rdi, rax
lea rsi, asc_7B18B+2; " "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rbp+var_88], rax
mov rsi, [rbp+var_18]
mov edx, [rbp+var_1C]
lea rdi, [rbp+var_48]
mov [rbp+var_90], rdi
call _ZN7testing8internal18FormatFileLocationB5cxx11EPKci; testing::internal::FormatFileLocation(char const*,int)
mov rdi, [rbp+var_90]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov rdi, [rbp+var_88]
mov rsi, rax
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rbp+var_80], rax
jmp short $+2
loc_1F586:
mov rdi, [rbp+var_80]
lea rsi, asc_7BCFF+1; ": "
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short $+2
loc_1F598:
lea rdi, [rbp+var_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
add rsp, 90h
pop rbp
retn
mov rcx, rax
mov eax, edx
mov [rbp+var_50], rcx
mov [rbp+var_54], eax
lea rdi, [rbp+var_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rdi, [rbp+var_50]
call __Unwind_Resume
| void testing::internal::GTestLog::GTestLog(testing::internal::GTestLog *a1, int a2, const char *a3, int a4)
{
void *Stream; // rax
long long v5; // rax
long long v6; // rax
long long v7; // rax
long long v8; // [rsp+8h] [rbp-88h]
long long v9; // [rsp+10h] [rbp-80h]
const char *v10; // [rsp+18h] [rbp-78h]
const char *v11; // [rsp+20h] [rbp-70h]
const char *v12; // [rsp+28h] [rbp-68h]
_BYTE v13[32]; // [rsp+48h] [rbp-48h] BYREF
const char *v14; // [rsp+68h] [rbp-28h]
int v15; // [rsp+74h] [rbp-1Ch]
const char *v16; // [rsp+78h] [rbp-18h]
int v17; // [rsp+84h] [rbp-Ch]
testing::internal::GTestLog *v18; // [rsp+88h] [rbp-8h]
v18 = a1;
v17 = a2;
v16 = a3;
v15 = a4;
*(_DWORD *)a1 = a2;
if ( v17 )
{
if ( v17 == 1 )
{
v11 = "[WARNING]";
}
else
{
if ( v17 == 2 )
v10 = "[ ERROR ]";
else
v10 = "[ FATAL ]";
v11 = v10;
}
v12 = v11;
}
else
{
v12 = "[ INFO ]";
}
v14 = v12;
Stream = testing::internal::GTestLog::GetStream(a1);
v5 = std::ostream::operator<<(Stream, &std::endl<char,std::char_traits<char>>);
v6 = std::operator<<<std::char_traits<char>>(v5, v12);
v8 = std::operator<<<std::char_traits<char>>(v6, " ");
testing::internal::FormatFileLocation[abi:cxx11]((long long)v13, v16, v15);
v7 = std::string::c_str(v13);
v9 = std::operator<<<std::char_traits<char>>(v8, v7);
std::operator<<<std::char_traits<char>>(v9, ": ");
std::string::~string(v13);
}
| GTestLog:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV dword ptr [RBP + -0x1c],ECX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x60],RAX
MOV ECX,dword ptr [RBP + -0xc]
MOV dword ptr [RAX],ECX
CMP dword ptr [RBP + -0xc],0x0
JNZ 0x0011f4c9
LEA RAX,[0x17aa6c]
MOV qword ptr [RBP + -0x68],RAX
JMP 0x0011f50c
LAB_0011f4c9:
CMP dword ptr [RBP + -0xc],0x1
JNZ 0x0011f4dc
LEA RAX,[0x17aa76]
MOV qword ptr [RBP + -0x70],RAX
JMP 0x0011f504
LAB_0011f4dc:
CMP dword ptr [RBP + -0xc],0x2
JNZ 0x0011f4ef
LEA RAX,[0x17aa80]
MOV qword ptr [RBP + -0x78],RAX
JMP 0x0011f4fc
LAB_0011f4ef:
LEA RAX,[0x17aa8a]
MOV qword ptr [RBP + -0x78],RAX
JMP 0x0011f4fc
LAB_0011f4fc:
MOV RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0x70],RAX
LAB_0011f504:
MOV RAX,qword ptr [RBP + -0x70]
MOV qword ptr [RBP + -0x68],RAX
LAB_0011f50c:
MOV RDI,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x28],RAX
CALL 0x00114d40
MOV RDI,RAX
MOV RSI,qword ptr [0x001adfa8]
CALL 0x0010a690
MOV RDI,RAX
MOV RSI,qword ptr [RBP + -0x28]
CALL 0x0010a600
MOV RDI,RAX
LEA RSI,[0x17b18d]
CALL 0x0010a600
MOV qword ptr [RBP + -0x88],RAX
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RBP + -0x1c]
LEA RDI,[RBP + -0x48]
MOV qword ptr [RBP + -0x90],RDI
CALL 0x0011f110
MOV RDI,qword ptr [RBP + -0x90]
CALL 0x0010a260
MOV RDI,qword ptr [RBP + -0x88]
MOV RSI,RAX
LAB_0011f57b:
CALL 0x0010a600
MOV qword ptr [RBP + -0x80],RAX
JMP 0x0011f586
LAB_0011f586:
MOV RDI,qword ptr [RBP + -0x80]
LEA RSI,[0x17bd00]
CALL 0x0010a600
LAB_0011f596:
JMP 0x0011f598
LAB_0011f598:
LEA RDI,[RBP + -0x48]
CALL 0x0010ad98
ADD RSP,0x90
POP RBP
RET
|
/* testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity, char const*, int) */
void __thiscall
testing::internal::GTestLog::GTestLog(GTestLog *this,int param_2,char *param_3,int param_4)
{
ostream *poVar1;
char *pcVar2;
char *local_80;
char *local_78;
char *local_70;
internal local_50 [32];
char *local_30;
int local_24;
char *local_20;
int local_14;
GTestLog *local_10;
*(int *)this = param_2;
if (param_2 == 0) {
local_70 = "[ INFO ]";
}
else {
if (param_2 == 1) {
local_78 = "[WARNING]";
}
else {
if (param_2 == 2) {
local_80 = "[ ERROR ]";
}
else {
local_80 = "[ FATAL ]";
}
local_78 = local_80;
}
local_70 = local_78;
}
local_30 = local_70;
local_24 = param_4;
local_20 = param_3;
local_14 = param_2;
local_10 = this;
poVar1 = (ostream *)GetStream();
poVar1 = (ostream *)
std::ostream::operator<<
(poVar1,(_func_ostream_ptr_ostream_ptr *)
PTR_endl<char,std_char_traits<char>>_001adfa8);
poVar1 = std::operator<<(poVar1,local_30);
poVar1 = std::operator<<(poVar1," ");
FormatFileLocation_abi_cxx11_(local_50,local_20,local_24);
pcVar2 = (char *)std::__cxx11::string::c_str();
/* try { // try from 0011f57b to 0011f595 has its CatchHandler @ 0011f5aa */
poVar1 = std::operator<<(poVar1,pcVar2);
std::operator<<(poVar1,": ");
std::__cxx11::string::~string((string *)local_50);
return;
}
| |
24,084 | ma_apply_redo_insert_row_blobs | eloqsql/storage/maria/ma_blockrec.c | uint _ma_apply_redo_insert_row_blobs(MARIA_HA *info,
LSN lsn, const uchar *header,
LSN redo_lsn,
uint * const number_of_blobs,
uint * const number_of_ranges,
pgcache_page_no_t * const first_page,
pgcache_page_no_t * const last_page)
{
MARIA_SHARE *share= info->s;
const uchar *data;
uint data_size= FULL_PAGE_SIZE(share);
uint blob_count, ranges;
uint16 sid;
pgcache_page_no_t first_page2= ULONGLONG_MAX, last_page2= 0;
DBUG_ENTER("_ma_apply_redo_insert_row_blobs");
share->state.changed|= (STATE_CHANGED | STATE_NOT_ZEROFILLED |
STATE_NOT_MOVABLE);
sid= fileid_korr(header);
header+= FILEID_STORE_SIZE;
*number_of_ranges= ranges= pagerange_korr(header);
header+= PAGERANGE_STORE_SIZE;
*number_of_blobs= blob_count= pagerange_korr(header);
header+= PAGERANGE_STORE_SIZE;
DBUG_ASSERT(ranges >= blob_count);
data= (header + ranges * ROW_EXTENT_SIZE +
blob_count * (SUB_RANGE_SIZE + BLOCK_FILLER_SIZE));
while (blob_count--)
{
uint sub_ranges, empty_space;
sub_ranges= uint2korr(header);
header+= SUB_RANGE_SIZE;
empty_space= uint2korr(header);
header+= BLOCK_FILLER_SIZE;
DBUG_ASSERT(sub_ranges <= ranges && empty_space < data_size);
ranges-= sub_ranges;
while (sub_ranges--)
{
uint i;
uint res;
uint page_range;
pgcache_page_no_t page;
uchar *buff;
uint data_on_page= data_size;
page= page_korr(header);
header+= PAGE_STORE_SIZE;
page_range= pagerange_korr(header);
header+= PAGERANGE_STORE_SIZE;
for (i= page_range; i-- > 0 ; page++, data+= data_on_page)
{
MARIA_PINNED_PAGE page_link;
enum pagecache_page_lock unlock_method;
enum pagecache_page_pin unpin_method;
set_if_smaller(first_page2, page);
set_if_bigger(last_page2, page);
if (i == 0 && sub_ranges == 0)
data_on_page= data_size - empty_space; /* data on last page */
if (_ma_redo_not_needed_for_page(sid, redo_lsn, page, FALSE))
continue;
if (((page + 1) * share->block_size) >
share->state.state.data_file_length)
{
/* New page or half written page at end of file */
DBUG_PRINT("info", ("Enlarging data file from %lu to %lu",
(ulong) share->state.state.data_file_length,
(ulong) ((page + 1 ) * share->block_size)));
share->state.state.data_file_length= (page + 1) * share->block_size;
buff= info->keyread_buff;
info->keyread_buff_used= 1;
make_empty_page(info, buff, BLOB_PAGE, 0);
unlock_method= PAGECACHE_LOCK_LEFT_UNLOCKED;
unpin_method= PAGECACHE_PIN_LEFT_UNPINNED;
}
else
{
share->pagecache->readwrite_flags&= ~MY_WME;
share->silence_encryption_errors= 1;
buff= pagecache_read(share->pagecache,
&info->dfile,
page, 0, 0,
PAGECACHE_PLAIN_PAGE,
PAGECACHE_LOCK_WRITE, &page_link.link);
share->pagecache->readwrite_flags= share->pagecache->
org_readwrite_flags;
share->silence_encryption_errors= 0;
if (!buff)
{
if (my_errno != HA_ERR_FILE_TOO_SHORT &&
my_errno != HA_ERR_WRONG_CRC &&
my_errno != HA_ERR_DECRYPTION_FAILED)
{
/* If not read outside of file */
pagecache_unlock_by_link(share->pagecache, page_link.link,
PAGECACHE_LOCK_WRITE_UNLOCK,
PAGECACHE_UNPIN, LSN_IMPOSSIBLE,
LSN_IMPOSSIBLE, 0, FALSE);
goto err;
}
/*
Physical file was too short, create new page. It can be that
recovery started with a file with N pages, wrote page N+2 into
pagecache (increased data_file_length but not physical file
length), now reads page N+1: the read fails.
*/
buff= pagecache_block_link_to_buffer(page_link.link);
make_empty_page(info, buff, BLOB_PAGE, 0);
}
else
{
#ifdef DBUG_ASSERT_EXISTS
uchar found_page_type= (buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK);
#endif
if (lsn_korr(buff) >= lsn)
{
/* Already applied */
check_skipped_lsn(info, lsn_korr(buff), 1, page);
pagecache_unlock_by_link(share->pagecache, page_link.link,
PAGECACHE_LOCK_WRITE_UNLOCK,
PAGECACHE_UNPIN, LSN_IMPOSSIBLE,
LSN_IMPOSSIBLE, 0, FALSE);
goto fix_bitmap;
}
DBUG_ASSERT((found_page_type == (uchar) BLOB_PAGE) ||
(found_page_type == (uchar) UNALLOCATED_PAGE));
}
unlock_method= PAGECACHE_LOCK_WRITE_UNLOCK;
unpin_method= PAGECACHE_UNPIN;
}
/*
Blob pages are never updated twice in same redo-undo chain, so
it's safe to update lsn for them here
*/
lsn_store(buff, lsn);
buff[PAGE_TYPE_OFFSET]= BLOB_PAGE;
bzero(buff + LSN_SIZE + PAGE_TYPE_SIZE,
FULL_PAGE_HEADER_SIZE(share) - (LSN_SIZE + PAGE_TYPE_SIZE));
if (data_on_page != data_size)
{
/*
Last page may be only partly filled. We zero the rest, like
write_full_pages() does.
*/
bzero(buff + share->block_size - PAGE_SUFFIX_SIZE - empty_space,
empty_space);
}
memcpy(buff + FULL_PAGE_HEADER_SIZE(share), data, data_on_page);
if (pagecache_write(share->pagecache,
&info->dfile, page, 0,
buff, PAGECACHE_PLAIN_PAGE,
unlock_method, unpin_method,
PAGECACHE_WRITE_DELAY, 0, LSN_IMPOSSIBLE))
goto err;
fix_bitmap:
/** @todo leave bitmap lock to the bitmap code... */
mysql_mutex_lock(&share->bitmap.bitmap_lock);
res= _ma_bitmap_set_full_page_bits(info, &share->bitmap, page,
1);
mysql_mutex_unlock(&share->bitmap.bitmap_lock);
if (res)
goto err;
}
}
}
*first_page= first_page2;
*last_page= last_page2;
DBUG_RETURN(0);
err:
_ma_mark_file_crashed(share);
DBUG_ASSERT(!maria_assert_if_crashed_table);
DBUG_RETURN(1);
} | O3 | c | ma_apply_redo_insert_row_blobs:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rcx, %rbx
movq (%rdi), %r12
movl 0x7bc(%r12), %r10d
subl 0xc18(%r12), %r10d
orl $0x181, 0x170(%r12) # imm = 0x181
movzwl (%rdx), %eax
movzwl 0x2(%rdx), %ecx
movl %ecx, (%r9)
movzwl 0x4(%rdx), %r9d
movl %r9d, (%r8)
testl %r9d, %r9d
je 0x61245
addl $-0xc, %r10d
leaq (,%rcx,8), %r8
subq %rcx, %r8
leaq (%rdx,%r8), %rcx
addq $0x6, %rcx
addq $0x6, %rdx
leaq (%rcx,%r9,4), %rcx
movq %rcx, -0x78(%rbp)
leaq 0x470(%rdi), %rcx
movq %rcx, -0x70(%rbp)
movq %rsi, %rcx
shrq $0x20, %rcx
movq %rcx, -0xb0(%rbp)
movq %rsi, %rcx
shrq $0x28, %rcx
movq %rcx, -0xa8(%rbp)
movq %rsi, %rcx
shrq $0x30, %rcx
movq %rcx, -0xa0(%rbp)
leaq 0xa10(%r12), %rcx
movq %rcx, -0xb8(%rbp)
leaq 0xa98(%r12), %rcx
movq %rcx, -0x50(%rbp)
movq $-0x1, %r8
movzwl %ax, %eax
movl %eax, -0x54(%rbp)
xorl %r11d, %r11d
movq %r12, -0x48(%rbp)
movq %rbx, -0xc8(%rbp)
movl %r10d, -0x38(%rbp)
movq %rdi, -0x40(%rbp)
movq %rsi, -0x68(%rbp)
movq %r9, -0x80(%rbp)
movzwl (%rdx), %esi
leaq 0x4(%rdx), %rcx
testl %esi, %esi
je 0x61233
movzwl 0x2(%rdx), %eax
movl %r10d, %edx
subl %eax, %edx
movl %edx, -0x58(%rbp)
movq %rax, -0x98(%rbp)
negq %rax
movq %rax, -0x90(%rbp)
decl %esi
movzwl 0x5(%rcx), %ebx
testl %ebx, %ebx
movq %rcx, -0x88(%rbp)
je 0x6121c
movzbl 0x4(%rcx), %eax
shlq $0x20, %rax
movl (%rcx), %r15d
orq %rax, %r15
decl %ebx
movl %r10d, -0x34(%rbp)
movl %esi, -0x5c(%rbp)
cmpq %r15, %r8
cmovaeq %r15, %r8
movq %r8, -0xd8(%rbp)
cmpq %r15, %r11
cmovbeq %r15, %r11
movq %r11, -0xd0(%rbp)
movl %ebx, %eax
orl %esi, %eax
movl -0x34(%rbp), %r14d
cmovel -0x58(%rbp), %r14d
movl -0x54(%rbp), %edi
movq -0xc8(%rbp), %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x516a7
leaq 0x1(%r15), %rcx
movl %r14d, -0x34(%rbp)
movl %r14d, %r13d
testb %al, %al
jne 0x61184
movl 0x7bc(%r12), %eax
movq %rcx, -0xc0(%rbp)
imulq %rcx, %rax
cmpq 0x40(%r12), %rax
jbe 0x60f20
movq %rax, 0x40(%r12)
movq -0x40(%rbp), %rax
movq 0x380(%rax), %r12
movb $0x1, 0x685(%rax)
movl $0x1, -0x30(%rbp)
movl $0x0, -0x2c(%rbp)
jmp 0x61018
movq 0x600(%r12), %rax
movl $0xffffffef, %ecx # imm = 0xFFFFFFEF
andq %rcx, 0x198(%rax)
movb $0x1, 0x7ec(%r12)
movq 0x600(%r12), %rdi
movq -0x70(%rbp), %rsi
movq %r15, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
movl $0x1, %r9d
leaq -0xf0(%rbp), %rax
pushq %rax
pushq $0x4
callq 0x33516
addq $0x10, %rsp
movq %r12, %rdx
movq %rax, %r12
movq 0x600(%rdx), %rax
movq 0x1a0(%rax), %rcx
movq %rcx, 0x198(%rax)
movb $0x0, 0x7ec(%rdx)
testq %r12, %r12
je 0x60fcc
movzwl (%r12), %eax
shlq $0x20, %rax
movzbl 0x2(%r12), %ecx
shlq $0x30, %rcx
orq %rax, %rcx
movl 0x3(%r12), %esi
orq %rcx, %rsi
movq -0x68(%rbp), %rax
cmpq %rax, %rsi
jge 0x611a7
movl $0x3, -0x30(%rbp)
movl $0x6, -0x2c(%rbp)
jmp 0x61040
callq 0xa29fe
cmpl $0xaf, (%rax)
je 0x60ff7
callq 0xa29fe
cmpl $0xb0, (%rax)
je 0x60ff7
callq 0xa29fe
cmpl $0xc0, (%rax)
jne 0x61261
movq -0xf0(%rbp), %rdi
callq 0x359f9
movq %rax, %r12
movl $0x3, -0x30(%rbp)
movl $0x6, -0x2c(%rbp)
movq -0x40(%rbp), %rax
movq (%rax), %rax
movl 0xc18(%rax), %edx
addl $0xc, %edx
movq %r12, %rdi
xorl %esi, %esi
callq 0x292c0
movw $0x3, 0x7(%r12)
movb $-0x1, 0x9(%r12)
movq -0x68(%rbp), %rax
movq -0xb0(%rbp), %rcx
movb %cl, (%r12)
movq -0xa8(%rbp), %rcx
movb %cl, 0x1(%r12)
movq -0xa0(%rbp), %rcx
movb %cl, 0x2(%r12)
movl %eax, 0x3(%r12)
movb $0x3, 0x7(%r12)
leaq 0x8(%r12), %rdi
movq -0x48(%rbp), %r14
movl 0xc18(%r14), %edx
xorl %esi, %esi
callq 0x292c0
movl -0x34(%rbp), %eax
cmpl -0x38(%rbp), %eax
je 0x610b4
movl 0x7bc(%r14), %eax
addq %r12, %rax
movq -0x90(%rbp), %rcx
leaq (%rcx,%rax), %rdi
addq $-0x4, %rdi
xorl %esi, %esi
movq -0x98(%rbp), %rdx
callq 0x292c0
movl 0xc18(%r14), %edi
addl $0x8, %edi
addq %r12, %rdi
movq -0x78(%rbp), %rsi
movq %r13, %rdx
callq 0x29080
movq 0x600(%r14), %rdi
movl 0x80(%rdi), %eax
subq $0x40, %rsp
movl %eax, 0x30(%rsp)
xorl %eax, %eax
movl %eax, 0x28(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movl %eax, 0x10(%rsp)
movl -0x30(%rbp), %eax
movl %eax, 0x8(%rsp)
movl -0x2c(%rbp), %eax
movl %eax, (%rsp)
movq -0x70(%rbp), %rsi
movq %r15, %rdx
xorl %ecx, %ecx
movq %r12, %r8
movl $0x1, %r9d
callq 0x3497a
addq $0x40, %rsp
testb %al, %al
movq %r14, %r12
jne 0x61291
cmpq $0x0, 0xad8(%r12)
jne 0x611ed
movq -0x50(%rbp), %rdi
callq 0x29220
movq -0x40(%rbp), %rdi
movq -0xb8(%rbp), %rsi
movq %r15, %rdx
movl $0x1, %ecx
callq 0x424a8
movl %eax, %r15d
movq 0xad8(%r12), %rdi
testq %rdi, %rdi
jne 0x61207
movq -0x50(%rbp), %rdi
callq 0x291e0
testb %r15b, %r15b
movq -0xc0(%rbp), %rcx
jne 0x61291
addq %r13, -0x78(%rbp)
movq %rcx, %r15
addl $-0x1, %ebx
movq -0xd8(%rbp), %r8
movq -0xd0(%rbp), %r11
movl -0x5c(%rbp), %esi
jb 0x60e8c
jmp 0x6121c
movq -0x40(%rbp), %rdi
movl $0x1, %edx
movq %r15, %rcx
callq 0x4d6d9
movq -0x48(%rbp), %r12
movq 0x600(%r12), %rdi
movq -0xf0(%rbp), %rsi
movl $0x6, %edx
movl $0x3, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
pushq %rax
pushq %rax
callq 0x33231
addq $0x10, %rsp
jmp 0x61127
movq -0x50(%rbp), %rdi
leaq 0x7acb5(%rip), %rsi # 0xdbead
movl $0x1b5a, %edx # imm = 0x1B5A
callq 0x2eb8f
jmp 0x6113f
leaq 0x326eb2(%rip), %rax # 0x3880c0
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x6116b
movq -0x88(%rbp), %rcx
addq $0x7, %rcx
testl %esi, %esi
movl -0x38(%rbp), %r10d
jne 0x60e60
movq %rcx, %rdx
movq -0x80(%rbp), %r9
decl %r9d
jne 0x60e30
jmp 0x6124f
movq $-0x1, %r8
xorl %r11d, %r11d
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rcx
movq %r8, (%rcx)
movq %r11, (%rax)
xorl %eax, %eax
jmp 0x6129e
movq -0x48(%rbp), %r12
movq 0x600(%r12), %rdi
movq -0xf0(%rbp), %rsi
xorl %eax, %eax
movl $0x6, %edx
movl $0x3, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %rax
pushq %rax
callq 0x33231
addq $0x10, %rsp
movq %r12, %rdi
callq 0x39126
movl $0x1, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ma_apply_redo_insert_row_blobs:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C8h
mov rbx, rcx
mov r12, [rdi]
mov r10d, [r12+7BCh]
sub r10d, [r12+0C18h]
or dword ptr [r12+170h], 181h
movzx eax, word ptr [rdx]
movzx ecx, word ptr [rdx+2]
mov [r9], ecx
movzx r9d, word ptr [rdx+4]
mov [r8], r9d
test r9d, r9d
jz loc_61245
add r10d, 0FFFFFFF4h
lea r8, ds:0[rcx*8]
sub r8, rcx
lea rcx, [rdx+r8]
add rcx, 6
add rdx, 6
lea rcx, [rcx+r9*4]
mov [rbp+var_78], rcx
lea rcx, [rdi+470h]
mov [rbp+var_70], rcx
mov rcx, rsi
shr rcx, 20h
mov [rbp+var_B0], rcx
mov rcx, rsi
shr rcx, 28h
mov [rbp+var_A8], rcx
mov rcx, rsi
shr rcx, 30h
mov [rbp+var_A0], rcx
lea rcx, [r12+0A10h]
mov [rbp+var_B8], rcx
lea rcx, [r12+0A98h]
mov [rbp+var_50], rcx
mov r8, 0FFFFFFFFFFFFFFFFh
movzx eax, ax
mov [rbp+var_54], eax
xor r11d, r11d
mov [rbp+var_48], r12
mov [rbp+var_C8], rbx
mov [rbp+var_38], r10d
mov [rbp+var_40], rdi
mov [rbp+var_68], rsi
loc_60E30:
mov [rbp+var_80], r9
movzx esi, word ptr [rdx]
lea rcx, [rdx+4]
test esi, esi
jz loc_61233
movzx eax, word ptr [rdx+2]
mov edx, r10d
sub edx, eax
mov [rbp+var_58], edx
mov [rbp+var_98], rax
neg rax
mov [rbp+var_90], rax
loc_60E60:
dec esi
movzx ebx, word ptr [rcx+5]
test ebx, ebx
mov [rbp+var_88], rcx
jz loc_6121C
movzx eax, byte ptr [rcx+4]
shl rax, 20h
mov r15d, [rcx]
or r15, rax
dec ebx
mov [rbp+var_34], r10d
mov [rbp+var_5C], esi
loc_60E8C:
cmp r8, r15
cmovnb r8, r15
mov [rbp+var_D8], r8
cmp r11, r15
cmovbe r11, r15
mov [rbp+var_D0], r11
mov eax, ebx
or eax, esi
mov r14d, [rbp+var_34]
cmovz r14d, [rbp+var_58]
mov edi, [rbp+var_54]
mov rsi, [rbp+var_C8]
mov rdx, r15
xor ecx, ecx
call _ma_redo_not_needed_for_page
lea rcx, [r15+1]
mov [rbp+var_34], r14d
mov r13d, r14d
test al, al
jnz loc_61184
mov eax, [r12+7BCh]
mov [rbp+var_C0], rcx
imul rax, rcx
cmp rax, [r12+40h]
jbe short loc_60F20
mov [r12+40h], rax
mov rax, [rbp+var_40]
mov r12, [rax+380h]
mov byte ptr [rax+685h], 1
mov [rbp+var_30], 1
mov [rbp+var_2C], 0
jmp loc_61018
loc_60F20:
mov rax, [r12+600h]
mov ecx, 0FFFFFFEFh
and [rax+198h], rcx
mov byte ptr [r12+7ECh], 1
mov rdi, [r12+600h]
mov rsi, [rbp+var_70]
mov rdx, r15
xor ecx, ecx
xor r8d, r8d
mov r9d, 1
lea rax, [rbp+var_F0]
push rax
push 4
call pagecache_read
add rsp, 10h
mov rdx, r12
mov r12, rax
mov rax, [rdx+600h]
mov rcx, [rax+1A0h]
mov [rax+198h], rcx
mov byte ptr [rdx+7ECh], 0
test r12, r12
jz short loc_60FCC
movzx eax, word ptr [r12]
shl rax, 20h
movzx ecx, byte ptr [r12+2]
shl rcx, 30h
or rcx, rax
mov esi, [r12+3]
or rsi, rcx
mov rax, [rbp+var_68]
cmp rsi, rax
jge loc_611A7
mov [rbp+var_30], 3
mov [rbp+var_2C], 6
jmp short loc_61040
loc_60FCC:
call _my_thread_var
cmp dword ptr [rax], 0AFh
jz short loc_60FF7
call _my_thread_var
cmp dword ptr [rax], 0B0h
jz short loc_60FF7
call _my_thread_var
cmp dword ptr [rax], 0C0h
jnz loc_61261
loc_60FF7:
mov rdi, [rbp+var_F0]
call pagecache_block_link_to_buffer
mov r12, rax
mov [rbp+var_30], 3
mov [rbp+var_2C], 6
mov rax, [rbp+var_40]
loc_61018:
mov rax, [rax]
mov edx, [rax+0C18h]
add edx, 0Ch
mov rdi, r12
xor esi, esi
call _memset
mov word ptr [r12+7], 3
mov byte ptr [r12+9], 0FFh
mov rax, [rbp+var_68]
loc_61040:
mov rcx, [rbp+var_B0]
mov [r12], cl
mov rcx, [rbp+var_A8]
mov [r12+1], cl
mov rcx, [rbp+var_A0]
mov [r12+2], cl
mov [r12+3], eax
mov byte ptr [r12+7], 3
lea rdi, [r12+8]
mov r14, [rbp+var_48]
mov edx, [r14+0C18h]
xor esi, esi
call _memset
mov eax, [rbp+var_34]
cmp eax, [rbp+var_38]
jz short loc_610B4
mov eax, [r14+7BCh]
add rax, r12
mov rcx, [rbp+var_90]
lea rdi, [rcx+rax]
add rdi, 0FFFFFFFFFFFFFFFCh
xor esi, esi
mov rdx, [rbp+var_98]
call _memset
loc_610B4:
mov edi, [r14+0C18h]
add edi, 8
add rdi, r12
mov rsi, [rbp+var_78]
mov rdx, r13
call _memcpy
mov rdi, [r14+600h]
mov eax, [rdi+80h]
sub rsp, 40h
mov [rsp+130h+var_100], eax
xor eax, eax
mov [rsp+130h+var_108], eax
xorps xmm0, xmm0
movups [rsp+130h+var_118], xmm0
mov [rsp+130h+var_120], eax
mov eax, [rbp+var_30]
mov [rsp+130h+var_128], eax
mov eax, [rbp+var_2C]
mov [rsp+130h+var_130], eax
mov rsi, [rbp+var_70]
mov rdx, r15
xor ecx, ecx
mov r8, r12
mov r9d, 1
call pagecache_write_part
add rsp, 40h
test al, al
mov r12, r14
jnz loc_61291
loc_61127:
cmp qword ptr [r12+0AD8h], 0
jnz loc_611ED
mov rdi, [rbp+var_50]
call _pthread_mutex_lock
loc_6113F:
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_B8]
mov rdx, r15
mov ecx, 1
call _ma_bitmap_set_full_page_bits
mov r15d, eax
mov rdi, [r12+0AD8h]
test rdi, rdi
jnz loc_61207
loc_6116B:
mov rdi, [rbp+var_50]
call _pthread_mutex_unlock
test r15b, r15b
mov rcx, [rbp+var_C0]
jnz loc_61291
loc_61184:
add [rbp+var_78], r13
mov r15, rcx
add ebx, 0FFFFFFFFh
mov r8, [rbp+var_D8]
mov r11, [rbp+var_D0]
mov esi, [rbp+var_5C]
jb loc_60E8C
jmp short loc_6121C
loc_611A7:
mov rdi, [rbp+var_40]
mov edx, 1
mov rcx, r15
call check_skipped_lsn
mov r12, [rbp+var_48]
mov rdi, [r12+600h]
mov rsi, [rbp+var_F0]
mov edx, 6
mov ecx, 3
xor r8d, r8d
xor r9d, r9d
xor eax, eax
push rax
push rax
call pagecache_unlock_by_link
add rsp, 10h
jmp loc_61127
loc_611ED:
mov rdi, [rbp+var_50]
lea rsi, aWorkspaceLlm4b_10; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 1B5Ah
call psi_mutex_lock
jmp loc_6113F
loc_61207:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_6116B
loc_6121C:
mov rcx, [rbp+var_88]
add rcx, 7
test esi, esi
mov r10d, [rbp+var_38]
jnz loc_60E60
loc_61233:
mov rdx, rcx
mov r9, [rbp+var_80]
dec r9d
jnz loc_60E30
jmp short loc_6124F
loc_61245:
mov r8, 0FFFFFFFFFFFFFFFFh
xor r11d, r11d
loc_6124F:
mov rax, [rbp+arg_8]
mov rcx, [rbp+arg_0]
mov [rcx], r8
mov [rax], r11
xor eax, eax
jmp short loc_6129E
loc_61261:
mov r12, [rbp+var_48]
mov rdi, [r12+600h]
mov rsi, [rbp+var_F0]
xor eax, eax
mov edx, 6
mov ecx, 3
xor r8d, r8d
xor r9d, r9d
push rax
push rax
call pagecache_unlock_by_link
add rsp, 10h
loc_61291:
mov rdi, r12
call _ma_mark_file_crashed
mov eax, 1
loc_6129E:
add rsp, 0C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ma_apply_redo_insert_row_blobs(
char *a1,
unsigned long long a2,
unsigned __int16 *a3,
long long a4,
_DWORD *a5,
_DWORD *a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14,
unsigned long long *a15,
unsigned long long *a16)
{
long long v17; // r12
int v18; // r10d
unsigned __int16 v19; // ax
long long v20; // rcx
long long v21; // r9
int v22; // r10d
long long v23; // rcx
unsigned __int16 *v24; // rdx
unsigned long long v25; // r8
unsigned long long v26; // r11
int v27; // esi
unsigned __int16 *v28; // rcx
long long v29; // rax
int v30; // ebx
unsigned long long v31; // r15
int v32; // ebx
unsigned int v33; // r14d
char v34; // al
unsigned long long v35; // rcx
long long v36; // r13
long long v37; // rax
unsigned long long v38; // rax
long long *v39; // rax
long long v40; // r12
long long v41; // rdi
const char *v42; // rsi
unsigned __int16 *v43; // rax
long long v44; // rdx
signed long long v45; // rsi
int v46; // eax
long long v47; // r14
char v48; // al
long long v49; // r8
char v50; // r15
bool v51; // cf
long long v53[3]; // [rsp+40h] [rbp-F0h] BYREF
unsigned long long v54; // [rsp+58h] [rbp-D8h]
unsigned long long v55; // [rsp+60h] [rbp-D0h]
long long v56; // [rsp+68h] [rbp-C8h]
unsigned long long v57; // [rsp+70h] [rbp-C0h]
long long v58; // [rsp+78h] [rbp-B8h]
unsigned long long v59; // [rsp+80h] [rbp-B0h]
unsigned long long v60; // [rsp+88h] [rbp-A8h]
unsigned long long v61; // [rsp+90h] [rbp-A0h]
long long v62; // [rsp+98h] [rbp-98h]
long long v63; // [rsp+A0h] [rbp-90h]
unsigned __int16 *v64; // [rsp+A8h] [rbp-88h]
long long v65; // [rsp+B0h] [rbp-80h]
long long v66; // [rsp+B8h] [rbp-78h]
char *v67; // [rsp+C0h] [rbp-70h]
signed long long v68; // [rsp+C8h] [rbp-68h]
int v69; // [rsp+D4h] [rbp-5Ch]
unsigned int v70; // [rsp+D8h] [rbp-58h]
int v71; // [rsp+DCh] [rbp-54h]
long long v72; // [rsp+E0h] [rbp-50h]
long long v73; // [rsp+E8h] [rbp-48h]
long long *v74; // [rsp+F0h] [rbp-40h]
int v75; // [rsp+F8h] [rbp-38h]
int v76; // [rsp+FCh] [rbp-34h]
unsigned int v77; // [rsp+100h] [rbp-30h]
unsigned int v78; // [rsp+104h] [rbp-2Ch]
v17 = *(_QWORD *)a1;
v18 = *(_DWORD *)(*(_QWORD *)a1 + 1980LL) - *(_DWORD *)(*(_QWORD *)a1 + 3096LL);
*(_DWORD *)(*(_QWORD *)a1 + 368LL) |= 0x181u;
v19 = *a3;
v20 = a3[1];
*a6 = v20;
v21 = a3[2];
*a5 = v21;
if ( !(_DWORD)v21 )
{
v25 = -1LL;
v26 = 0LL;
LABEL_40:
*a15 = v25;
*a16 = v26;
return 0LL;
}
v22 = v18 - 12;
v23 = (long long)a3 + 7 * v20 + 6;
v24 = a3 + 3;
v66 = v23 + 4 * v21;
v67 = a1 + 1136;
v59 = HIDWORD(a2);
v60 = a2 >> 40;
v61 = HIWORD(a2);
v58 = v17 + 2576;
v72 = v17 + 2712;
v25 = -1LL;
v71 = v19;
v26 = 0LL;
v73 = v17;
v56 = a4;
v75 = v22;
v74 = (long long *)a1;
v68 = a2;
while ( 1 )
{
v65 = v21;
v27 = *v24;
v28 = v24 + 2;
if ( *v24 )
break;
LABEL_37:
v24 = v28;
v21 = (unsigned int)(v65 - 1);
if ( (_DWORD)v65 == 1 )
goto LABEL_40;
}
v29 = v24[1];
v70 = v22 - v29;
v62 = v29;
v63 = -v29;
while ( 1 )
{
--v27;
v30 = *(unsigned __int16 *)((char *)v28 + 5);
v64 = v28;
if ( v30 )
break;
LABEL_36:
v28 = (unsigned __int16 *)((char *)v64 + 7);
v22 = v75;
if ( !v27 )
goto LABEL_37;
}
v31 = ((unsigned long long)*((unsigned __int8 *)v28 + 4) << 32) | *(unsigned int *)v28;
v32 = v30 - 1;
v76 = v22;
v69 = v27;
while ( 1 )
{
if ( v25 >= v31 )
v25 = v31;
v54 = v25;
if ( v26 <= v31 )
v26 = v31;
v55 = v26;
v33 = v76;
if ( !(v27 | v32) )
v33 = v70;
v34 = ma_redo_not_needed_for_page(v71, v56, v31, 0, a7, a8, a9, a10, a11, a12, a13, a14);
v35 = v31 + 1;
v76 = v33;
v36 = v33;
if ( v34 )
goto LABEL_32;
v37 = *(unsigned int *)(v17 + 1980);
v57 = v31 + 1;
v38 = v35 * v37;
if ( v38 > *(_QWORD *)(v17 + 64) )
{
*(_QWORD *)(v17 + 64) = v38;
v39 = v74;
v40 = v74[112];
*((_BYTE *)v74 + 1669) = 1;
v77 = 1;
v78 = 0;
LABEL_23:
memset(v40, 0LL, (unsigned int)(*(_DWORD *)(*v39 + 3096) + 12));
*(_WORD *)(v40 + 7) = 3;
*(_BYTE *)(v40 + 9) = -1;
v46 = v68;
LABEL_24:
*(_BYTE *)v40 = v59;
*(_BYTE *)(v40 + 1) = v60;
*(_BYTE *)(v40 + 2) = v61;
*(_DWORD *)(v40 + 3) = v46;
*(_BYTE *)(v40 + 7) = 3;
v47 = v73;
memset(v40 + 8, 0LL, *(unsigned int *)(v73 + 3096));
if ( v76 != v75 )
memset(v63 + v40 + *(unsigned int *)(v47 + 1980) - 4, 0LL, v62);
memcpy(v40 + (unsigned int)(*(_DWORD *)(v47 + 3096) + 8), v66, v36);
a7 = 0LL;
v48 = pagecache_write_part(
*(__m128i **)(v47 + 1536),
v67,
v31,
0,
(char *)v40,
1,
v78,
v77,
0,
0LL,
0LL,
0,
*(_DWORD *)(*(_QWORD *)(v47 + 1536) + 128LL));
v17 = v47;
if ( v48 )
goto LABEL_42;
goto LABEL_27;
}
*(_QWORD *)(*(_QWORD *)(v17 + 1536) + 408LL) &= 0xFFFFFFEFuLL;
*(_BYTE *)(v17 + 2028) = 1;
v41 = *(_QWORD *)(v17 + 1536);
v42 = v67;
v43 = (unsigned __int16 *)pagecache_read(v41, (long long)v67, v31, 0, 0LL, 1, 4u, v53);
v44 = v17;
v40 = (long long)v43;
*(_QWORD *)(*(_QWORD *)(v44 + 1536) + 408LL) = *(_QWORD *)(*(_QWORD *)(v44 + 1536) + 416LL);
*(_BYTE *)(v44 + 2028) = 0;
if ( !v43 )
break;
v45 = ((unsigned long long)*v43 << 32) | ((unsigned long long)*((unsigned __int8 *)v43 + 2) << 48) | *(unsigned int *)((char *)v43 + 3);
v46 = v68;
if ( v45 < v68 )
{
v77 = 3;
v78 = 6;
goto LABEL_24;
}
check_skipped_lsn((long long)v74, v45, 1, v31);
v17 = v73;
pagecache_unlock_by_link(*(_QWORD *)(v73 + 1536), v53[0], 6, 3, 0LL, 0LL, 0);
LABEL_27:
if ( *(_QWORD *)(v17 + 2776) )
psi_mutex_lock(v72, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_blockrec.c", 0x1B5Au);
else
pthread_mutex_lock(v72);
v50 = ma_bitmap_set_full_page_bits(v74, v58, v31, 1u, v49);
if ( *(_QWORD *)(v17 + 2776) )
PSI_server[44]();
pthread_mutex_unlock(v72);
v35 = v57;
if ( v50 )
goto LABEL_42;
LABEL_32:
v66 += v36;
v31 = v35;
v51 = v32-- != 0;
v25 = v54;
v26 = v55;
v27 = v69;
if ( !v51 )
goto LABEL_36;
}
if ( *(_DWORD *)my_thread_var(v41, v42) == 175
|| *(_DWORD *)my_thread_var(v41, v42) == 176
|| *(_DWORD *)my_thread_var(v41, v42) == 192 )
{
v40 = pagecache_block_link_to_buffer(v53[0]);
v77 = 3;
v78 = 6;
v39 = v74;
goto LABEL_23;
}
v17 = v73;
pagecache_unlock_by_link(*(_QWORD *)(v73 + 1536), v53[0], 6, 3, 0LL, 0LL, 0);
LABEL_42:
ma_mark_file_crashed(v17);
return 1LL;
}
| _ma_apply_redo_insert_row_blobs:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc8
MOV RBX,RCX
MOV R12,qword ptr [RDI]
MOV R10D,dword ptr [R12 + 0x7bc]
SUB R10D,dword ptr [R12 + 0xc18]
OR dword ptr [R12 + 0x170],0x181
MOVZX EAX,word ptr [RDX]
MOVZX ECX,word ptr [RDX + 0x2]
MOV dword ptr [R9],ECX
MOVZX R9D,word ptr [RDX + 0x4]
MOV dword ptr [R8],R9D
TEST R9D,R9D
JZ 0x00161245
ADD R10D,-0xc
LEA R8,[RCX*0x8]
SUB R8,RCX
LEA RCX,[RDX + R8*0x1]
ADD RCX,0x6
ADD RDX,0x6
LEA RCX,[RCX + R9*0x4]
MOV qword ptr [RBP + -0x78],RCX
LEA RCX,[RDI + 0x470]
MOV qword ptr [RBP + -0x70],RCX
MOV RCX,RSI
SHR RCX,0x20
MOV qword ptr [RBP + -0xb0],RCX
MOV RCX,RSI
SHR RCX,0x28
MOV qword ptr [RBP + -0xa8],RCX
MOV RCX,RSI
SHR RCX,0x30
MOV qword ptr [RBP + -0xa0],RCX
LEA RCX,[R12 + 0xa10]
MOV qword ptr [RBP + -0xb8],RCX
LEA RCX,[R12 + 0xa98]
MOV qword ptr [RBP + -0x50],RCX
MOV R8,-0x1
MOVZX EAX,AX
MOV dword ptr [RBP + -0x54],EAX
XOR R11D,R11D
MOV qword ptr [RBP + -0x48],R12
MOV qword ptr [RBP + -0xc8],RBX
MOV dword ptr [RBP + -0x38],R10D
MOV qword ptr [RBP + -0x40],RDI
MOV qword ptr [RBP + -0x68],RSI
LAB_00160e30:
MOV qword ptr [RBP + -0x80],R9
MOVZX ESI,word ptr [RDX]
LEA RCX,[RDX + 0x4]
TEST ESI,ESI
JZ 0x00161233
MOVZX EAX,word ptr [RDX + 0x2]
MOV EDX,R10D
SUB EDX,EAX
MOV dword ptr [RBP + -0x58],EDX
MOV qword ptr [RBP + -0x98],RAX
NEG RAX
MOV qword ptr [RBP + -0x90],RAX
LAB_00160e60:
DEC ESI
MOVZX EBX,word ptr [RCX + 0x5]
TEST EBX,EBX
MOV qword ptr [RBP + -0x88],RCX
JZ 0x0016121c
MOVZX EAX,byte ptr [RCX + 0x4]
SHL RAX,0x20
MOV R15D,dword ptr [RCX]
OR R15,RAX
DEC EBX
MOV dword ptr [RBP + -0x34],R10D
MOV dword ptr [RBP + -0x5c],ESI
LAB_00160e8c:
CMP R8,R15
CMOVNC R8,R15
MOV qword ptr [RBP + -0xd8],R8
CMP R11,R15
CMOVBE R11,R15
MOV qword ptr [RBP + -0xd0],R11
MOV EAX,EBX
OR EAX,ESI
MOV R14D,dword ptr [RBP + -0x34]
CMOVZ R14D,dword ptr [RBP + -0x58]
MOV EDI,dword ptr [RBP + -0x54]
MOV RSI,qword ptr [RBP + -0xc8]
MOV RDX,R15
XOR ECX,ECX
CALL 0x001516a7
LEA RCX,[R15 + 0x1]
MOV dword ptr [RBP + -0x34],R14D
MOV R13D,R14D
TEST AL,AL
JNZ 0x00161184
MOV EAX,dword ptr [R12 + 0x7bc]
MOV qword ptr [RBP + -0xc0],RCX
IMUL RAX,RCX
CMP RAX,qword ptr [R12 + 0x40]
JBE 0x00160f20
MOV qword ptr [R12 + 0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV R12,qword ptr [RAX + 0x380]
MOV byte ptr [RAX + 0x685],0x1
MOV dword ptr [RBP + -0x30],0x1
MOV dword ptr [RBP + -0x2c],0x0
JMP 0x00161018
LAB_00160f20:
MOV RAX,qword ptr [R12 + 0x600]
MOV ECX,0xffffffef
AND qword ptr [RAX + 0x198],RCX
MOV byte ptr [R12 + 0x7ec],0x1
MOV RDI,qword ptr [R12 + 0x600]
MOV RSI,qword ptr [RBP + -0x70]
MOV RDX,R15
XOR ECX,ECX
XOR R8D,R8D
MOV R9D,0x1
LEA RAX,[RBP + -0xf0]
PUSH RAX
PUSH 0x4
CALL 0x00133516
ADD RSP,0x10
MOV RDX,R12
MOV R12,RAX
MOV RAX,qword ptr [RDX + 0x600]
MOV RCX,qword ptr [RAX + 0x1a0]
MOV qword ptr [RAX + 0x198],RCX
MOV byte ptr [RDX + 0x7ec],0x0
TEST R12,R12
JZ 0x00160fcc
MOVZX EAX,word ptr [R12]
SHL RAX,0x20
MOVZX ECX,byte ptr [R12 + 0x2]
SHL RCX,0x30
OR RCX,RAX
MOV ESI,dword ptr [R12 + 0x3]
OR RSI,RCX
MOV RAX,qword ptr [RBP + -0x68]
CMP RSI,RAX
JGE 0x001611a7
MOV dword ptr [RBP + -0x30],0x3
MOV dword ptr [RBP + -0x2c],0x6
JMP 0x00161040
LAB_00160fcc:
CALL 0x001a29fe
CMP dword ptr [RAX],0xaf
JZ 0x00160ff7
CALL 0x001a29fe
CMP dword ptr [RAX],0xb0
JZ 0x00160ff7
CALL 0x001a29fe
CMP dword ptr [RAX],0xc0
JNZ 0x00161261
LAB_00160ff7:
MOV RDI,qword ptr [RBP + -0xf0]
CALL 0x001359f9
MOV R12,RAX
MOV dword ptr [RBP + -0x30],0x3
MOV dword ptr [RBP + -0x2c],0x6
MOV RAX,qword ptr [RBP + -0x40]
LAB_00161018:
MOV RAX,qword ptr [RAX]
MOV EDX,dword ptr [RAX + 0xc18]
ADD EDX,0xc
MOV RDI,R12
XOR ESI,ESI
CALL 0x001292c0
MOV word ptr [R12 + 0x7],0x3
MOV byte ptr [R12 + 0x9],0xff
MOV RAX,qword ptr [RBP + -0x68]
LAB_00161040:
MOV RCX,qword ptr [RBP + -0xb0]
MOV byte ptr [R12],CL
MOV RCX,qword ptr [RBP + -0xa8]
MOV byte ptr [R12 + 0x1],CL
MOV RCX,qword ptr [RBP + -0xa0]
MOV byte ptr [R12 + 0x2],CL
MOV dword ptr [R12 + 0x3],EAX
MOV byte ptr [R12 + 0x7],0x3
LEA RDI,[R12 + 0x8]
MOV R14,qword ptr [RBP + -0x48]
MOV EDX,dword ptr [R14 + 0xc18]
XOR ESI,ESI
CALL 0x001292c0
MOV EAX,dword ptr [RBP + -0x34]
CMP EAX,dword ptr [RBP + -0x38]
JZ 0x001610b4
MOV EAX,dword ptr [R14 + 0x7bc]
ADD RAX,R12
MOV RCX,qword ptr [RBP + -0x90]
LEA RDI,[RCX + RAX*0x1]
ADD RDI,-0x4
XOR ESI,ESI
MOV RDX,qword ptr [RBP + -0x98]
CALL 0x001292c0
LAB_001610b4:
MOV EDI,dword ptr [R14 + 0xc18]
ADD EDI,0x8
ADD RDI,R12
MOV RSI,qword ptr [RBP + -0x78]
MOV RDX,R13
CALL 0x00129080
MOV RDI,qword ptr [R14 + 0x600]
MOV EAX,dword ptr [RDI + 0x80]
SUB RSP,0x40
MOV dword ptr [RSP + 0x30],EAX
XOR EAX,EAX
MOV dword ptr [RSP + 0x28],EAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x18],XMM0
MOV dword ptr [RSP + 0x10],EAX
MOV EAX,dword ptr [RBP + -0x30]
MOV dword ptr [RSP + 0x8],EAX
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RSP],EAX
MOV RSI,qword ptr [RBP + -0x70]
MOV RDX,R15
XOR ECX,ECX
MOV R8,R12
MOV R9D,0x1
CALL 0x0013497a
ADD RSP,0x40
TEST AL,AL
MOV R12,R14
JNZ 0x00161291
LAB_00161127:
CMP qword ptr [R12 + 0xad8],0x0
JNZ 0x001611ed
MOV RDI,qword ptr [RBP + -0x50]
CALL 0x00129220
LAB_0016113f:
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0xb8]
MOV RDX,R15
MOV ECX,0x1
CALL 0x001424a8
MOV R15D,EAX
MOV RDI,qword ptr [R12 + 0xad8]
TEST RDI,RDI
JNZ 0x00161207
LAB_0016116b:
MOV RDI,qword ptr [RBP + -0x50]
CALL 0x001291e0
TEST R15B,R15B
MOV RCX,qword ptr [RBP + -0xc0]
JNZ 0x00161291
LAB_00161184:
ADD qword ptr [RBP + -0x78],R13
MOV R15,RCX
ADD EBX,-0x1
MOV R8,qword ptr [RBP + -0xd8]
MOV R11,qword ptr [RBP + -0xd0]
MOV ESI,dword ptr [RBP + -0x5c]
JC 0x00160e8c
JMP 0x0016121c
LAB_001611a7:
MOV RDI,qword ptr [RBP + -0x40]
MOV EDX,0x1
MOV RCX,R15
CALL 0x0014d6d9
MOV R12,qword ptr [RBP + -0x48]
MOV RDI,qword ptr [R12 + 0x600]
MOV RSI,qword ptr [RBP + -0xf0]
MOV EDX,0x6
MOV ECX,0x3
XOR R8D,R8D
XOR R9D,R9D
XOR EAX,EAX
PUSH RAX
PUSH RAX
CALL 0x00133231
ADD RSP,0x10
JMP 0x00161127
LAB_001611ed:
MOV RDI,qword ptr [RBP + -0x50]
LEA RSI,[0x1dbead]
MOV EDX,0x1b5a
CALL 0x0012eb8f
JMP 0x0016113f
LAB_00161207:
LEA RAX,[0x4880c0]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0016116b
LAB_0016121c:
MOV RCX,qword ptr [RBP + -0x88]
ADD RCX,0x7
TEST ESI,ESI
MOV R10D,dword ptr [RBP + -0x38]
JNZ 0x00160e60
LAB_00161233:
MOV RDX,RCX
MOV R9,qword ptr [RBP + -0x80]
DEC R9D
JNZ 0x00160e30
JMP 0x0016124f
LAB_00161245:
MOV R8,-0x1
XOR R11D,R11D
LAB_0016124f:
MOV RAX,qword ptr [RBP + 0x18]
MOV RCX,qword ptr [RBP + 0x10]
MOV qword ptr [RCX],R8
MOV qword ptr [RAX],R11
XOR EAX,EAX
JMP 0x0016129e
LAB_00161261:
MOV R12,qword ptr [RBP + -0x48]
MOV RDI,qword ptr [R12 + 0x600]
MOV RSI,qword ptr [RBP + -0xf0]
XOR EAX,EAX
MOV EDX,0x6
MOV ECX,0x3
XOR R8D,R8D
XOR R9D,R9D
PUSH RAX
PUSH RAX
CALL 0x00133231
ADD RSP,0x10
LAB_00161291:
MOV RDI,R12
CALL 0x00139126
MOV EAX,0x1
LAB_0016129e:
ADD RSP,0xc8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
_ma_apply_redo_insert_row_blobs
(long *param_1,ulong param_2,ushort *param_3,int8 param_4,uint *param_5,
uint *param_6,ulong *param_7,ulong *param_8)
{
ulong *puVar1;
ushort uVar2;
ushort uVar3;
ushort uVar4;
int iVar5;
int iVar6;
uint uVar7;
char cVar8;
ulong uVar9;
ushort *__s;
int *piVar10;
uint5 *puVar11;
uint uVar12;
ulong uVar13;
long lVar14;
ulong uVar15;
ulong in_stack_fffffffffffffef0;
int8 local_f8 [3];
ulong local_e0;
ulong local_d8;
int8 local_d0;
ulong local_c8;
long local_c0;
ulong local_b8;
ulong local_b0;
ulong local_a8;
ulong local_a0;
long local_98;
uint5 *local_90;
ulong local_88;
void *local_80;
long *local_78;
ulong local_70;
uint local_64;
uint local_60;
uint local_5c;
pthread_mutex_t *local_58;
long local_50;
long *local_48;
uint local_40;
uint local_3c;
int4 local_38;
int4 local_34;
lVar14 = *param_1;
iVar5 = *(int *)(lVar14 + 0x7bc);
iVar6 = *(int *)(lVar14 + 0xc18);
*(uint *)(lVar14 + 0x170) = *(uint *)(lVar14 + 0x170) | 0x181;
uVar2 = *param_3;
uVar3 = param_3[1];
*param_6 = (uint)uVar3;
uVar4 = param_3[2];
local_88 = (ulong)uVar4;
*param_5 = (uint)uVar4;
if (uVar4 == 0) {
local_e0 = 0xffffffffffffffff;
local_d8 = 0;
}
else {
local_3c = (iVar5 - iVar6) - 0xc;
local_80 = (void *)((long)param_3 + local_88 * 4 + (ulong)uVar3 * 7 + 6);
local_78 = param_1 + 0x8e;
local_b8 = param_2 >> 0x20;
local_b0 = param_2 >> 0x28;
local_a8 = param_2 >> 0x30;
local_c0 = lVar14 + 0xa10;
local_58 = (pthread_mutex_t *)(lVar14 + 0xa98);
local_e0 = 0xffffffffffffffff;
local_5c = (uint)uVar2;
local_d8 = 0;
puVar11 = (uint5 *)(param_3 + 3);
local_d0 = param_4;
local_70 = param_2;
local_50 = lVar14;
local_48 = param_1;
local_40 = local_3c;
do {
local_64 = (uint)(ushort)*puVar11;
local_90 = (uint5 *)((long)puVar11 + 4);
if ((ushort)*puVar11 != 0) {
local_a0 = (ulong)*(ushort *)((long)puVar11 + 2);
local_60 = local_3c - *(ushort *)((long)puVar11 + 2);
local_98 = -local_a0;
do {
local_64 = local_64 - 1;
if (*(ushort *)((long)local_90 + 5) != 0) {
uVar12 = (uint)*(ushort *)((long)local_90 + 5);
uVar15 = (ulong)*local_90;
do {
uVar12 = uVar12 - 1;
if (uVar15 <= local_e0) {
local_e0 = uVar15;
}
if (local_d8 <= uVar15) {
local_d8 = uVar15;
}
uVar7 = local_3c;
if (uVar12 == 0 && local_64 == 0) {
uVar7 = local_60;
}
cVar8 = _ma_redo_not_needed_for_page(local_5c,local_d0,uVar15,0);
uVar13 = uVar15 + 1;
local_3c = uVar7;
if (cVar8 == '\0') {
uVar9 = *(uint *)(lVar14 + 0x7bc) * uVar13;
local_c8 = uVar13;
if (uVar9 < *(ulong *)(lVar14 + 0x40) || uVar9 - *(ulong *)(lVar14 + 0x40) == 0) {
puVar1 = (ulong *)(*(long *)(lVar14 + 0x600) + 0x198);
*puVar1 = *puVar1 & 0xffffffef;
*(int1 *)(lVar14 + 0x7ec) = 1;
in_stack_fffffffffffffef0 = 0;
__s = (ushort *)
pagecache_read(*(int8 *)(lVar14 + 0x600),local_78,uVar15,0,0,1,4,
local_f8);
*(int8 *)(*(long *)(lVar14 + 0x600) + 0x198) =
*(int8 *)(*(long *)(lVar14 + 0x600) + 0x1a0);
*(int1 *)(lVar14 + 0x7ec) = 0;
if (__s == (ushort *)0x0) {
piVar10 = (int *)_my_thread_var();
if (((*piVar10 != 0xaf) && (piVar10 = (int *)_my_thread_var(), *piVar10 != 0xb0)
) && (piVar10 = (int *)_my_thread_var(), lVar14 = local_50, *piVar10 != 0xc0
)) {
pagecache_unlock_by_link
(*(int8 *)(local_50 + 0x600),local_f8[0],6,3,0,0,0,0);
goto LAB_00161291;
}
__s = (ushort *)pagecache_block_link_to_buffer(local_f8[0]);
local_38 = 3;
local_34 = 6;
goto LAB_00161018;
}
uVar13 = (ulong)*(uint *)((long)__s + 3) |
(ulong)(byte)__s[1] << 0x30 | (ulong)*__s << 0x20;
if ((long)uVar13 < (long)local_70) {
local_38 = 3;
local_34 = 6;
goto LAB_00161040;
}
check_skipped_lsn(local_48,uVar13,1,uVar15);
lVar14 = local_50;
in_stack_fffffffffffffef0 = 0;
pagecache_unlock_by_link
(*(int8 *)(local_50 + 0x600),local_f8[0],6,3,0,0,0,0);
}
else {
*(ulong *)(lVar14 + 0x40) = uVar9;
__s = (ushort *)local_48[0x70];
*(int1 *)((long)local_48 + 0x685) = 1;
local_38 = 1;
local_34 = 0;
LAB_00161018:
memset(__s,0,(ulong)(*(int *)(*local_48 + 0xc18) + 0xc));
*(int2 *)((long)__s + 7) = 3;
*(int1 *)((long)__s + 9) = 0xff;
LAB_00161040:
lVar14 = local_50;
*(char *)__s = (char)local_b8;
*(char *)((long)__s + 1) = (char)local_b0;
*(char *)(__s + 1) = (char)local_a8;
*(int *)((long)__s + 3) = (int)local_70;
*(int1 *)((long)__s + 7) = 3;
memset(__s + 4,0,(ulong)*(uint *)(local_50 + 0xc18));
if (local_3c != local_40) {
memset((void *)((long)__s + local_98 + (ulong)*(uint *)(lVar14 + 0x7bc) + -4),0,
local_a0);
}
memcpy((void *)((ulong)(*(int *)(lVar14 + 0xc18) + 8) + (long)__s),local_80,
(ulong)uVar7);
in_stack_fffffffffffffef0 = in_stack_fffffffffffffef0 & 0xffffffff00000000;
cVar8 = pagecache_write_part
(*(long *)(lVar14 + 0x600),local_78,uVar15,0,__s,1,local_34,
local_38,0,0,0,in_stack_fffffffffffffef0,
*(int4 *)(*(long *)(lVar14 + 0x600) + 0x80));
if (cVar8 != '\0') goto LAB_00161291;
}
if (*(long *)(lVar14 + 0xad8) == 0) {
pthread_mutex_lock(local_58);
}
else {
psi_mutex_lock(local_58,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_blockrec.c"
,0x1b5a);
}
cVar8 = _ma_bitmap_set_full_page_bits(local_48,local_c0,uVar15,1);
if (*(long *)(lVar14 + 0xad8) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(local_58);
uVar13 = local_c8;
if (cVar8 != '\0') {
LAB_00161291:
_ma_mark_file_crashed(lVar14);
return 1;
}
}
local_80 = (void *)((long)local_80 + (ulong)uVar7);
uVar15 = uVar13;
} while (uVar12 != 0);
}
local_90 = (uint5 *)((long)local_90 + 7);
local_3c = local_40;
} while (local_64 != 0);
}
uVar12 = (int)local_88 - 1;
local_88 = (ulong)uVar12;
puVar11 = local_90;
} while (uVar12 != 0);
}
*param_7 = local_e0;
*param_8 = local_d8;
return 0;
}
| |
24,085 | Catch::TestCaseTracking::TrackerBase::TrackerBase(Catch::TestCaseTracking::NameAndLocation&&, Catch::TestCaseTracking::TrackerContext&, Catch::TestCaseTracking::ITracker*) | AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.hpp | ITracker( NameAndLocation&& nameAndLoc, ITracker* parent ):
m_nameAndLocation( CATCH_MOVE(nameAndLoc) ),
m_parent( parent )
{} | O3 | cpp | Catch::TestCaseTracking::TrackerBase::TrackerBase(Catch::TestCaseTracking::NameAndLocation&&, Catch::TestCaseTracking::TrackerContext&, Catch::TestCaseTracking::ITracker*):
leaq 0xcb18b(%rip), %rax # 0x12d7a0
addq $0x10, %rax
movq %rax, (%rdi)
leaq 0x18(%rdi), %r8
movq %r8, 0x8(%rdi)
movq (%rsi), %r9
leaq 0x10(%rsi), %rax
cmpq %rax, %r9
je 0x6263d
movq %r9, 0x8(%rdi)
movq (%rax), %r8
movq %r8, 0x18(%rdi)
jmp 0x62644
movups (%rax), %xmm0
movups %xmm0, (%r8)
movq 0x8(%rsi), %r8
movq %r8, 0x10(%rdi)
movq %rax, (%rsi)
movq $0x0, 0x8(%rsi)
movb $0x0, 0x10(%rsi)
movups 0x20(%rsi), %xmm0
movups %xmm0, 0x28(%rdi)
movq %rcx, 0x38(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x4c(%rdi)
movups %xmm0, 0x40(%rdi)
leaq 0xcb16f(%rip), %rax # 0x12d7e8
addq $0x10, %rax
movq %rax, (%rdi)
movq %rdx, 0x60(%rdi)
retq
nop
| _ZN5Catch16TestCaseTracking11TrackerBaseC2EONS0_15NameAndLocationERNS0_14TrackerContextEPNS0_8ITrackerE:
lea rax, _ZTVN5Catch16TestCaseTracking8ITrackerE; Alternative name is 'Catch::TestCaseTracking::TrackerBase::TrackerBase(Catch::TestCaseTracking::NameAndLocation &&, Catch::TestCaseTracking::TrackerContext &, Catch::TestCaseTracking::ITracker *)'
add rax, 10h
mov [rdi], rax
lea r8, [rdi+18h]
mov [rdi+8], r8
mov r9, [rsi]
lea rax, [rsi+10h]
cmp r9, rax
jz short loc_6263D
mov [rdi+8], r9
mov r8, [rax]
mov [rdi+18h], r8
jmp short loc_62644
loc_6263D:
movups xmm0, xmmword ptr [rax]
movups xmmword ptr [r8], xmm0
loc_62644:
mov r8, [rsi+8]
mov [rdi+10h], r8
mov [rsi], rax
mov qword ptr [rsi+8], 0
mov byte ptr [rsi+10h], 0
movups xmm0, xmmword ptr [rsi+20h]
movups xmmword ptr [rdi+28h], xmm0
mov [rdi+38h], rcx
xorps xmm0, xmm0
movups xmmword ptr [rdi+4Ch], xmm0
movups xmmword ptr [rdi+40h], xmm0
lea rax, _ZTVN5Catch16TestCaseTracking11TrackerBaseE; `vtable for'Catch::TestCaseTracking::TrackerBase
add rax, 10h
mov [rdi], rax
mov [rdi+60h], rdx
retn
| long long * Catch::TestCaseTracking::TrackerBase::TrackerBase(long long a1, long long a2, long long a3, long long a4)
{
_OWORD *v4; // rax
long long *result; // rax
*(_QWORD *)a1 = &`vtable for'Catch::TestCaseTracking::ITracker + 2;
*(_QWORD *)(a1 + 8) = a1 + 24;
v4 = (_OWORD *)(a2 + 16);
if ( *(_QWORD *)a2 == a2 + 16 )
{
*(_OWORD *)(a1 + 24) = *v4;
}
else
{
*(_QWORD *)(a1 + 8) = *(_QWORD *)a2;
*(_QWORD *)(a1 + 24) = *(_QWORD *)v4;
}
*(_QWORD *)(a1 + 16) = *(_QWORD *)(a2 + 8);
*(_QWORD *)a2 = v4;
*(_QWORD *)(a2 + 8) = 0LL;
*(_BYTE *)(a2 + 16) = 0;
*(_OWORD *)(a1 + 40) = *(_OWORD *)(a2 + 32);
*(_QWORD *)(a1 + 56) = a4;
*(_OWORD *)(a1 + 76) = 0LL;
*(_OWORD *)(a1 + 64) = 0LL;
result = &`vtable for'Catch::TestCaseTracking::TrackerBase + 2;
*(_QWORD *)a1 = &`vtable for'Catch::TestCaseTracking::TrackerBase + 2;
*(_QWORD *)(a1 + 96) = a3;
return result;
}
| TrackerBase:
LEA RAX,[0x22d7a0]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
LEA R8,[RDI + 0x18]
MOV qword ptr [RDI + 0x8],R8
MOV R9,qword ptr [RSI]
LEA RAX,[RSI + 0x10]
CMP R9,RAX
JZ 0x0016263d
MOV qword ptr [RDI + 0x8],R9
MOV R8,qword ptr [RAX]
MOV qword ptr [RDI + 0x18],R8
JMP 0x00162644
LAB_0016263d:
MOVUPS XMM0,xmmword ptr [RAX]
MOVUPS xmmword ptr [R8],XMM0
LAB_00162644:
MOV R8,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x10],R8
MOV qword ptr [RSI],RAX
MOV qword ptr [RSI + 0x8],0x0
MOV byte ptr [RSI + 0x10],0x0
MOVUPS XMM0,xmmword ptr [RSI + 0x20]
MOVUPS xmmword ptr [RDI + 0x28],XMM0
MOV qword ptr [RDI + 0x38],RCX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x4c],XMM0
MOVUPS xmmword ptr [RDI + 0x40],XMM0
LEA RAX,[0x22d7e8]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV qword ptr [RDI + 0x60],RDX
RET
|
/* Catch::TestCaseTracking::TrackerBase::TrackerBase(Catch::TestCaseTracking::NameAndLocation&&,
Catch::TestCaseTracking::TrackerContext&, Catch::TestCaseTracking::ITracker*) */
void __thiscall
Catch::TestCaseTracking::TrackerBase::TrackerBase
(TrackerBase *this,NameAndLocation *param_1,TrackerContext *param_2,ITracker *param_3)
{
NameAndLocation *pNVar1;
int8 uVar2;
*(int ***)this = &PTR__ITracker_0022d7b0;
*(TrackerBase **)(this + 8) = this + 0x18;
pNVar1 = param_1 + 0x10;
if (*(NameAndLocation **)param_1 == pNVar1) {
uVar2 = *(int8 *)(param_1 + 0x18);
*(int8 *)(this + 0x18) = *(int8 *)pNVar1;
*(int8 *)(this + 0x20) = uVar2;
}
else {
*(NameAndLocation **)(this + 8) = *(NameAndLocation **)param_1;
*(int8 *)(this + 0x18) = *(int8 *)pNVar1;
}
*(int8 *)(this + 0x10) = *(int8 *)(param_1 + 8);
*(NameAndLocation **)param_1 = pNVar1;
*(int8 *)(param_1 + 8) = 0;
param_1[0x10] = (NameAndLocation)0x0;
uVar2 = *(int8 *)(param_1 + 0x28);
*(int8 *)(this + 0x28) = *(int8 *)(param_1 + 0x20);
*(int8 *)(this + 0x30) = uVar2;
*(ITracker **)(this + 0x38) = param_3;
*(int8 *)(this + 0x4c) = 0;
*(int8 *)(this + 0x54) = 0;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
*(int ***)this = &PTR__ITracker_0022d7f8;
*(TrackerContext **)(this + 0x60) = param_2;
return;
}
| |
24,086 | end_slave_io_cache | eloqsql/mysys/mf_iocache.c | void end_slave_io_cache(IO_CACHE *cache)
{
/* Remove the cache from the next_file_user circular linked list. */
if (cache->next_file_user != cache)
{
IO_CACHE *p= cache->next_file_user;
while (p->next_file_user != cache)
p= p->next_file_user;
p->next_file_user= cache->next_file_user;
}
my_free(cache->buffer);
} | O0 | c | end_slave_io_cache:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0xd8(%rax), %rax
cmpq -0x8(%rbp), %rax
je 0x88224
movq -0x8(%rbp), %rax
movq 0xd8(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0xd8(%rax), %rax
cmpq -0x8(%rbp), %rax
je 0x8820e
movq -0x10(%rbp), %rax
movq 0xd8(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x881ec
movq -0x8(%rbp), %rax
movq 0xd8(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0xd8(%rax)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0xa04e0
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| end_slave_io_cache:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov rax, [rax+0D8h]
cmp rax, [rbp+var_8]
jz short loc_88224
mov rax, [rbp+var_8]
mov rax, [rax+0D8h]
mov [rbp+var_10], rax
loc_881EC:
mov rax, [rbp+var_10]
mov rax, [rax+0D8h]
cmp rax, [rbp+var_8]
jz short loc_8820E
mov rax, [rbp+var_10]
mov rax, [rax+0D8h]
mov [rbp+var_10], rax
jmp short loc_881EC
loc_8820E:
mov rax, [rbp+var_8]
mov rcx, [rax+0D8h]
mov rax, [rbp+var_10]
mov [rax+0D8h], rcx
loc_88224:
mov rax, [rbp+var_8]
mov rdi, [rax+20h]
call my_free
add rsp, 10h
pop rbp
retn
| long long end_slave_io_cache(long long a1)
{
long long i; // [rsp+0h] [rbp-10h]
if ( *(_QWORD *)(a1 + 216) != a1 )
{
for ( i = *(_QWORD *)(a1 + 216); *(_QWORD *)(i + 216) != a1; i = *(_QWORD *)(i + 216) )
;
*(_QWORD *)(i + 216) = *(_QWORD *)(a1 + 216);
}
return my_free(*(_QWORD *)(a1 + 32));
}
| end_slave_io_cache:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0xd8]
CMP RAX,qword ptr [RBP + -0x8]
JZ 0x00188224
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0xd8]
MOV qword ptr [RBP + -0x10],RAX
LAB_001881ec:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xd8]
CMP RAX,qword ptr [RBP + -0x8]
JZ 0x0018820e
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xd8]
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001881ec
LAB_0018820e:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0xd8]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0xd8],RCX
LAB_00188224:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x20]
CALL 0x001a04e0
ADD RSP,0x10
POP RBP
RET
|
void end_slave_io_cache(long param_1)
{
int8 local_18;
if (*(long *)(param_1 + 0xd8) != param_1) {
for (local_18 = *(long *)(param_1 + 0xd8); *(long *)(local_18 + 0xd8) != param_1;
local_18 = *(long *)(local_18 + 0xd8)) {
}
*(int8 *)(local_18 + 0xd8) = *(int8 *)(param_1 + 0xd8);
}
my_free(*(int8 *)(param_1 + 0x20));
return;
}
| |
24,087 | output_format_from_str(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, output_formats&) | monkey531[P]llama/examples/llama-bench/llama-bench.cpp | static bool output_format_from_str(const std::string & s, output_formats & format) {
if (s == "none") {
format = NONE;
} else if (s == "csv") {
format = CSV;
} else if (s == "json") {
format = JSON;
} else if (s == "jsonl") {
format = JSONL;
} else if (s == "md") {
format = MARKDOWN;
} else if (s == "sql") {
format = SQL;
} else {
return false;
}
return true;
} | O1 | cpp | output_format_from_str(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, output_formats&):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x976dc(%rip), %rsi # 0xbb4b3
callq 0x1a1b0
testl %eax, %eax
je 0x23e43
leaq 0x97eed(%rip), %rsi # 0xbbcd4
movq %r14, %rdi
callq 0x1a1b0
testl %eax, %eax
je 0x23e47
leaq 0x9d53f(%rip), %rsi # 0xc1339
movq %r14, %rdi
callq 0x1a1b0
testl %eax, %eax
je 0x23e4e
leaq 0x97ecb(%rip), %rsi # 0xbbcd8
movq %r14, %rdi
callq 0x1a1b0
testl %eax, %eax
je 0x23e55
leaq 0x97ebe(%rip), %rsi # 0xbbcde
movq %r14, %rdi
callq 0x1a1b0
testl %eax, %eax
je 0x23e5c
leaq 0x97eae(%rip), %rsi # 0xbbce1
movq %r14, %rdi
callq 0x1a1b0
testl %eax, %eax
je 0x23e63
xorl %eax, %eax
jmp 0x23e6c
xorl %eax, %eax
jmp 0x23e68
movl $0x1, %eax
jmp 0x23e68
movl $0x2, %eax
jmp 0x23e68
movl $0x3, %eax
jmp 0x23e68
movl $0x4, %eax
jmp 0x23e68
movl $0x5, %eax
movl %eax, (%rbx)
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| _ZL22output_format_from_strRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEER14output_formats:
push r14
push rbx
push rax
mov rbx, rsi
mov r14, rdi
lea rsi, aNone; "none"
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_23E43
lea rsi, aCsv; "csv"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_23E47
lea rsi, aTojson+2; "json"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_23E4E
lea rsi, aJsonl; "jsonl"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_23E55
lea rsi, aMd; "md"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_23E5C
lea rsi, aSql; "sql"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_23E63
xor eax, eax
jmp short loc_23E6C
loc_23E43:
xor eax, eax
jmp short loc_23E68
loc_23E47:
mov eax, 1
jmp short loc_23E68
loc_23E4E:
mov eax, 2
jmp short loc_23E68
loc_23E55:
mov eax, 3
jmp short loc_23E68
loc_23E5C:
mov eax, 4
jmp short loc_23E68
loc_23E63:
mov eax, 5
loc_23E68:
mov [rbx], eax
mov al, 1
loc_23E6C:
add rsp, 8
pop rbx
pop r14
retn
| char output_format_from_str(long long a1, int *a2)
{
int v3; // eax
if ( !(unsigned int)std::string::compare(a1, "none") )
{
v3 = 0;
}
else if ( !(unsigned int)std::string::compare(a1, "csv") )
{
v3 = 1;
}
else if ( !(unsigned int)std::string::compare(a1, "json") )
{
v3 = 2;
}
else if ( !(unsigned int)std::string::compare(a1, "jsonl") )
{
v3 = 3;
}
else if ( !(unsigned int)std::string::compare(a1, "md") )
{
v3 = 4;
}
else
{
if ( (unsigned int)std::string::compare(a1, "sql") )
return 0;
v3 = 5;
}
*a2 = v3;
return 1;
}
| output_format_from_str:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
LEA RSI,[0x1bb4b3]
CALL 0x0011a1b0
TEST EAX,EAX
JZ 0x00123e43
LEA RSI,[0x1bbcd4]
MOV RDI,R14
CALL 0x0011a1b0
TEST EAX,EAX
JZ 0x00123e47
LEA RSI,[0x1c1339]
MOV RDI,R14
CALL 0x0011a1b0
TEST EAX,EAX
JZ 0x00123e4e
LEA RSI,[0x1bbcd8]
MOV RDI,R14
CALL 0x0011a1b0
TEST EAX,EAX
JZ 0x00123e55
LEA RSI,[0x1bbcde]
MOV RDI,R14
CALL 0x0011a1b0
TEST EAX,EAX
JZ 0x00123e5c
LEA RSI,[0x1bbce1]
MOV RDI,R14
CALL 0x0011a1b0
TEST EAX,EAX
JZ 0x00123e63
XOR EAX,EAX
JMP 0x00123e6c
LAB_00123e43:
XOR EAX,EAX
JMP 0x00123e68
LAB_00123e47:
MOV EAX,0x1
JMP 0x00123e68
LAB_00123e4e:
MOV EAX,0x2
JMP 0x00123e68
LAB_00123e55:
MOV EAX,0x3
JMP 0x00123e68
LAB_00123e5c:
MOV EAX,0x4
JMP 0x00123e68
LAB_00123e63:
MOV EAX,0x5
LAB_00123e68:
MOV dword ptr [RBX],EAX
MOV AL,0x1
LAB_00123e6c:
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* output_format_from_str(std::__cxx11::string const&, output_formats&) */
int8 output_format_from_str(string *param_1,output_formats *param_2)
{
int iVar1;
int4 uVar2;
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 == 0) {
uVar2 = 0;
}
else {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 == 0) {
uVar2 = 1;
}
else {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 == 0) {
uVar2 = 2;
}
else {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 == 0) {
uVar2 = 3;
}
else {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 == 0) {
uVar2 = 4;
}
else {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 != 0) {
return 0;
}
uVar2 = 5;
}
}
}
}
}
*(int4 *)param_2 = uVar2;
return 1;
}
| |
24,088 | output_format_from_str(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, output_formats&) | monkey531[P]llama/examples/llama-bench/llama-bench.cpp | static bool output_format_from_str(const std::string & s, output_formats & format) {
if (s == "none") {
format = NONE;
} else if (s == "csv") {
format = CSV;
} else if (s == "json") {
format = JSON;
} else if (s == "jsonl") {
format = JSONL;
} else if (s == "md") {
format = MARKDOWN;
} else if (s == "sql") {
format = SQL;
} else {
return false;
}
return true;
} | O2 | cpp | output_format_from_str(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, output_formats&):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x71aaa(%rip), %rsi # 0x9a48b
callq 0x29b97
xorl %ecx, %ecx
testb %al, %al
jne 0x28a5e
leaq 0x722b9(%rip), %rsi # 0x9acac
movq %r14, %rdi
callq 0x29b97
testb %al, %al
je 0x28a03
pushq $0x1
jmp 0x28a5d
leaq 0x778fe(%rip), %rsi # 0xa0308
movq %r14, %rdi
callq 0x29b97
testb %al, %al
je 0x28a1a
pushq $0x2
jmp 0x28a5d
leaq 0x7228f(%rip), %rsi # 0x9acb0
movq %r14, %rdi
callq 0x29b97
testb %al, %al
je 0x28a31
pushq $0x3
jmp 0x28a5d
leaq 0x7227e(%rip), %rsi # 0x9acb6
movq %r14, %rdi
callq 0x29b97
testb %al, %al
je 0x28a48
pushq $0x4
jmp 0x28a5d
leaq 0x7226a(%rip), %rsi # 0x9acb9
movq %r14, %rdi
callq 0x29b97
testb %al, %al
je 0x28a6a
pushq $0x5
popq %rcx
movl %ecx, (%rbx)
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
xorl %eax, %eax
jmp 0x28a62
| _ZL22output_format_from_strRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEER14output_formats:
push r14
push rbx
push rax
mov rbx, rsi
mov r14, rdi
lea rsi, aNone; "none"
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
xor ecx, ecx
test al, al
jnz short loc_28A5E
lea rsi, aCsv; "csv"
mov rdi, r14
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jz short loc_28A03
push 1
jmp short loc_28A5D
loc_28A03:
lea rsi, aTojson+2; "json"
mov rdi, r14
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jz short loc_28A1A
push 2
jmp short loc_28A5D
loc_28A1A:
lea rsi, aJsonl; "jsonl"
mov rdi, r14
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jz short loc_28A31
push 3
jmp short loc_28A5D
loc_28A31:
lea rsi, aMd; "md"
mov rdi, r14
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jz short loc_28A48
push 4
jmp short loc_28A5D
loc_28A48:
lea rsi, aSql; "sql"
mov rdi, r14
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jz short loc_28A6A
push 5
loc_28A5D:
pop rcx
loc_28A5E:
mov [rbx], ecx
mov al, 1
loc_28A62:
add rsp, 8
pop rbx
pop r14
retn
loc_28A6A:
xor eax, eax
jmp short loc_28A62
| char output_format_from_str(long long a1, int *a2)
{
char v2; // al
int v3; // ecx
int v5; // [rsp-10h] [rbp-20h]
v2 = std::operator==<char>(a1, "none");
v3 = 0;
if ( !v2 )
{
if ( (unsigned __int8)std::operator==<char>(a1, "csv") )
{
v5 = 1;
}
else if ( (unsigned __int8)std::operator==<char>(a1, "json") )
{
v5 = 2;
}
else if ( (unsigned __int8)std::operator==<char>(a1, "jsonl") )
{
v5 = 3;
}
else if ( (unsigned __int8)std::operator==<char>(a1, "md") )
{
v5 = 4;
}
else
{
if ( !(unsigned __int8)std::operator==<char>(a1, "sql") )
return 0;
v5 = 5;
}
v3 = v5;
}
*a2 = v3;
return 1;
}
| output_format_from_str:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
LEA RSI,[0x19a48b]
CALL 0x00129b97
XOR ECX,ECX
TEST AL,AL
JNZ 0x00128a5e
LEA RSI,[0x19acac]
MOV RDI,R14
CALL 0x00129b97
TEST AL,AL
JZ 0x00128a03
PUSH 0x1
JMP 0x00128a5d
LAB_00128a03:
LEA RSI,[0x1a0308]
MOV RDI,R14
CALL 0x00129b97
TEST AL,AL
JZ 0x00128a1a
PUSH 0x2
JMP 0x00128a5d
LAB_00128a1a:
LEA RSI,[0x19acb0]
MOV RDI,R14
CALL 0x00129b97
TEST AL,AL
JZ 0x00128a31
PUSH 0x3
JMP 0x00128a5d
LAB_00128a31:
LEA RSI,[0x19acb6]
MOV RDI,R14
CALL 0x00129b97
TEST AL,AL
JZ 0x00128a48
PUSH 0x4
JMP 0x00128a5d
LAB_00128a48:
LEA RSI,[0x19acb9]
MOV RDI,R14
CALL 0x00129b97
TEST AL,AL
JZ 0x00128a6a
PUSH 0x5
LAB_00128a5d:
POP RCX
LAB_00128a5e:
MOV dword ptr [RBX],ECX
MOV AL,0x1
LAB_00128a62:
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_00128a6a:
XOR EAX,EAX
JMP 0x00128a62
|
/* output_format_from_str(std::__cxx11::string const&, output_formats&) */
int8 output_format_from_str(string *param_1,output_formats *param_2)
{
bool bVar1;
int7 extraout_var;
int7 extraout_var_00;
int7 extraout_var_01;
int7 extraout_var_02;
int7 extraout_var_03;
int7 extraout_var_04;
int7 uVar2;
int4 uVar3;
bVar1 = std::operator==(param_1,"none");
uVar3 = 0;
uVar2 = extraout_var;
if (!bVar1) {
bVar1 = std::operator==(param_1,"csv");
if (bVar1) {
uVar3 = 1;
uVar2 = extraout_var_00;
}
else {
bVar1 = std::operator==(param_1,"json");
if (bVar1) {
uVar3 = 2;
uVar2 = extraout_var_01;
}
else {
bVar1 = std::operator==(param_1,"jsonl");
if (bVar1) {
uVar3 = 3;
uVar2 = extraout_var_02;
}
else {
bVar1 = std::operator==(param_1,"md");
if (bVar1) {
uVar3 = 4;
uVar2 = extraout_var_03;
}
else {
bVar1 = std::operator==(param_1,"sql");
if (!bVar1) {
return 0;
}
uVar3 = 5;
uVar2 = extraout_var_04;
}
}
}
}
}
*(int4 *)param_2 = uVar3;
return CONCAT71(uVar2,1);
}
| |
24,089 | output_format_from_str(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, output_formats&) | monkey531[P]llama/examples/llama-bench/llama-bench.cpp | static bool output_format_from_str(const std::string & s, output_formats & format) {
if (s == "none") {
format = NONE;
} else if (s == "csv") {
format = CSV;
} else if (s == "json") {
format = JSON;
} else if (s == "jsonl") {
format = JSONL;
} else if (s == "md") {
format = MARKDOWN;
} else if (s == "sql") {
format = SQL;
} else {
return false;
}
return true;
} | O3 | cpp | output_format_from_str(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, output_formats&):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x9478e(%rip), %rsi # 0xb74b3
callq 0x191b0
testl %eax, %eax
je 0x22d91
leaq 0x94f9f(%rip), %rsi # 0xb7cd4
movq %r14, %rdi
callq 0x191b0
testl %eax, %eax
je 0x22d95
leaq 0x9a5e1(%rip), %rsi # 0xbd329
movq %r14, %rdi
callq 0x191b0
testl %eax, %eax
je 0x22d9c
leaq 0x94f7d(%rip), %rsi # 0xb7cd8
movq %r14, %rdi
callq 0x191b0
testl %eax, %eax
je 0x22da3
leaq 0x94f70(%rip), %rsi # 0xb7cde
movq %r14, %rdi
callq 0x191b0
testl %eax, %eax
je 0x22daa
leaq 0x94f60(%rip), %rsi # 0xb7ce1
movq %r14, %rdi
callq 0x191b0
testl %eax, %eax
je 0x22db1
xorl %eax, %eax
jmp 0x22dba
xorl %eax, %eax
jmp 0x22db6
movl $0x1, %eax
jmp 0x22db6
movl $0x2, %eax
jmp 0x22db6
movl $0x3, %eax
jmp 0x22db6
movl $0x4, %eax
jmp 0x22db6
movl $0x5, %eax
movl %eax, (%rbx)
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| _ZL22output_format_from_strRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEER14output_formats:
push r14
push rbx
push rax
mov rbx, rsi
mov r14, rdi
lea rsi, aNone; "none"
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_22D91
lea rsi, aCsv; "csv"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_22D95
lea rsi, aTojson+2; "json"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_22D9C
lea rsi, aJsonl; "jsonl"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_22DA3
lea rsi, aMd; "md"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_22DAA
lea rsi, aSql; "sql"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_22DB1
xor eax, eax
jmp short loc_22DBA
loc_22D91:
xor eax, eax
jmp short loc_22DB6
loc_22D95:
mov eax, 1
jmp short loc_22DB6
loc_22D9C:
mov eax, 2
jmp short loc_22DB6
loc_22DA3:
mov eax, 3
jmp short loc_22DB6
loc_22DAA:
mov eax, 4
jmp short loc_22DB6
loc_22DB1:
mov eax, 5
loc_22DB6:
mov [rbx], eax
mov al, 1
loc_22DBA:
add rsp, 8
pop rbx
pop r14
retn
| char output_format_from_str(long long a1, int *a2)
{
int v3; // eax
if ( !(unsigned int)std::string::compare(a1, "none") )
{
v3 = 0;
}
else if ( !(unsigned int)std::string::compare(a1, "csv") )
{
v3 = 1;
}
else if ( !(unsigned int)std::string::compare(a1, "json") )
{
v3 = 2;
}
else if ( !(unsigned int)std::string::compare(a1, "jsonl") )
{
v3 = 3;
}
else if ( !(unsigned int)std::string::compare(a1, "md") )
{
v3 = 4;
}
else
{
if ( (unsigned int)std::string::compare(a1, "sql") )
return 0;
v3 = 5;
}
*a2 = v3;
return 1;
}
| output_format_from_str:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
LEA RSI,[0x1b74b3]
CALL 0x001191b0
TEST EAX,EAX
JZ 0x00122d91
LEA RSI,[0x1b7cd4]
MOV RDI,R14
CALL 0x001191b0
TEST EAX,EAX
JZ 0x00122d95
LEA RSI,[0x1bd329]
MOV RDI,R14
CALL 0x001191b0
TEST EAX,EAX
JZ 0x00122d9c
LEA RSI,[0x1b7cd8]
MOV RDI,R14
CALL 0x001191b0
TEST EAX,EAX
JZ 0x00122da3
LEA RSI,[0x1b7cde]
MOV RDI,R14
CALL 0x001191b0
TEST EAX,EAX
JZ 0x00122daa
LEA RSI,[0x1b7ce1]
MOV RDI,R14
CALL 0x001191b0
TEST EAX,EAX
JZ 0x00122db1
XOR EAX,EAX
JMP 0x00122dba
LAB_00122d91:
XOR EAX,EAX
JMP 0x00122db6
LAB_00122d95:
MOV EAX,0x1
JMP 0x00122db6
LAB_00122d9c:
MOV EAX,0x2
JMP 0x00122db6
LAB_00122da3:
MOV EAX,0x3
JMP 0x00122db6
LAB_00122daa:
MOV EAX,0x4
JMP 0x00122db6
LAB_00122db1:
MOV EAX,0x5
LAB_00122db6:
MOV dword ptr [RBX],EAX
MOV AL,0x1
LAB_00122dba:
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* output_format_from_str(std::__cxx11::string const&, output_formats&) */
int8 output_format_from_str(string *param_1,output_formats *param_2)
{
int iVar1;
int4 uVar2;
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 == 0) {
uVar2 = 0;
}
else {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 == 0) {
uVar2 = 1;
}
else {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 == 0) {
uVar2 = 2;
}
else {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 == 0) {
uVar2 = 3;
}
else {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 == 0) {
uVar2 = 4;
}
else {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 != 0) {
return 0;
}
uVar2 = 5;
}
}
}
}
}
*(int4 *)param_2 = uVar2;
return 1;
}
| |
24,090 | my_strxfrm_pad_desc_and_reverse_nopad | eloqsql/strings/ctype-simple.c | size_t
my_strxfrm_pad_desc_and_reverse_nopad(CHARSET_INFO *cs,
uchar *str, uchar *frmend, uchar *strend,
uint nweights, uint flags, uint level)
{
if (nweights && frmend < strend && (flags & MY_STRXFRM_PAD_WITH_SPACE))
{
uint fill_length= MY_MIN((uint) (strend - frmend), nweights * cs->mbminlen);
memset(frmend, 0x00, fill_length);
frmend+= fill_length;
}
my_strxfrm_desc_and_reverse(str, frmend, flags, level);
if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && frmend < strend)
{
size_t fill_length= strend - frmend;
memset(frmend, 0x00, fill_length);
frmend= strend;
}
return frmend - str;
} | O0 | c | my_strxfrm_pad_desc_and_reverse_nopad:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movl %r9d, -0x28(%rbp)
cmpl $0x0, -0x24(%rbp)
je 0x48f42
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x48f42
movl -0x28(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x48f42
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
movl -0x24(%rbp), %ecx
movq -0x8(%rbp), %rdx
imull 0x98(%rdx), %ecx
cmpl %ecx, %eax
jae 0x48f0b
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0x3c(%rbp)
jmp 0x48f1c
movl -0x24(%rbp), %eax
movq -0x8(%rbp), %rcx
imull 0x98(%rcx), %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movl %eax, -0x2c(%rbp)
movq -0x18(%rbp), %rdi
movl -0x2c(%rbp), %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x24190
movl -0x2c(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x28(%rbp), %edx
movl 0x10(%rbp), %ecx
callq 0x4c140
movl -0x28(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x48f92
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x48f92
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rdi
movq -0x38(%rbp), %rdx
xorl %esi, %esi
callq 0x24190
movq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
subq %rcx, %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_strxfrm_pad_desc_and_reverse_nopad:
push rbp
mov rbp, rsp
sub rsp, 40h
mov eax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_24], r8d
mov [rbp+var_28], r9d
cmp [rbp+var_24], 0
jz short loc_48F42
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnb short loc_48F42
mov eax, [rbp+var_28]
and eax, 40h
cmp eax, 0
jz short loc_48F42
mov rax, [rbp+var_20]
mov rcx, [rbp+var_18]
sub rax, rcx
mov ecx, [rbp+var_24]
mov rdx, [rbp+var_8]
imul ecx, [rdx+98h]
cmp eax, ecx
jnb short loc_48F0B
mov rax, [rbp+var_20]
mov rcx, [rbp+var_18]
sub rax, rcx
mov [rbp+var_3C], eax
jmp short loc_48F1C
loc_48F0B:
mov eax, [rbp+var_24]
mov rcx, [rbp+var_8]
imul eax, [rcx+98h]
mov [rbp+var_3C], eax
loc_48F1C:
mov eax, [rbp+var_3C]
mov [rbp+var_2C], eax
mov rdi, [rbp+var_18]
mov eax, [rbp+var_2C]
mov edx, eax
xor esi, esi
call _memset
mov ecx, [rbp+var_2C]
mov rax, [rbp+var_18]
mov ecx, ecx
add rax, rcx
mov [rbp+var_18], rax
loc_48F42:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov edx, [rbp+var_28]
mov ecx, [rbp+arg_0]
call my_strxfrm_desc_and_reverse
mov eax, [rbp+var_28]
and eax, 80h
cmp eax, 0
jz short loc_48F92
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnb short loc_48F92
mov rax, [rbp+var_20]
mov rcx, [rbp+var_18]
sub rax, rcx
mov [rbp+var_38], rax
mov rdi, [rbp+var_18]
mov rdx, [rbp+var_38]
xor esi, esi
call _memset
mov rax, [rbp+var_20]
mov [rbp+var_18], rax
loc_48F92:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
sub rax, rcx
add rsp, 40h
pop rbp
retn
| long long my_strxfrm_pad_desc_and_reverse_nopad(
long long a1,
long long a2,
unsigned long long a3,
unsigned long long a4,
int a5,
unsigned int a6,
unsigned int a7)
{
unsigned int v8; // [rsp+4h] [rbp-3Ch]
unsigned long long v11; // [rsp+28h] [rbp-18h]
v11 = a3;
if ( a5 && a3 < a4 && (a6 & 0x40) != 0 )
{
if ( (int)a4 - (int)a3 >= (unsigned int)(*(_DWORD *)(a1 + 152) * a5) )
v8 = *(_DWORD *)(a1 + 152) * a5;
else
v8 = a4 - a3;
memset(a3, 0LL, v8);
v11 += v8;
}
my_strxfrm_desc_and_reverse(a2, v11, a6, a7);
if ( (a6 & 0x80) != 0 && v11 < a4 )
{
memset(v11, 0LL, a4 - v11);
v11 = a4;
}
return v11 - a2;
}
| my_strxfrm_pad_desc_and_reverse_nopad:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV EAX,dword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV dword ptr [RBP + -0x24],R8D
MOV dword ptr [RBP + -0x28],R9D
CMP dword ptr [RBP + -0x24],0x0
JZ 0x00148f42
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x00148f42
MOV EAX,dword ptr [RBP + -0x28]
AND EAX,0x40
CMP EAX,0x0
JZ 0x00148f42
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x18]
SUB RAX,RCX
MOV ECX,dword ptr [RBP + -0x24]
MOV RDX,qword ptr [RBP + -0x8]
IMUL ECX,dword ptr [RDX + 0x98]
CMP EAX,ECX
JNC 0x00148f0b
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x18]
SUB RAX,RCX
MOV dword ptr [RBP + -0x3c],EAX
JMP 0x00148f1c
LAB_00148f0b:
MOV EAX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x8]
IMUL EAX,dword ptr [RCX + 0x98]
MOV dword ptr [RBP + -0x3c],EAX
LAB_00148f1c:
MOV EAX,dword ptr [RBP + -0x3c]
MOV dword ptr [RBP + -0x2c],EAX
MOV RDI,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x2c]
MOV EDX,EAX
XOR ESI,ESI
CALL 0x00124190
MOV ECX,dword ptr [RBP + -0x2c]
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
LAB_00148f42:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RBP + -0x28]
MOV ECX,dword ptr [RBP + 0x10]
CALL 0x0014c140
MOV EAX,dword ptr [RBP + -0x28]
AND EAX,0x80
CMP EAX,0x0
JZ 0x00148f92
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x00148f92
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x18]
SUB RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x38]
XOR ESI,ESI
CALL 0x00124190
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x18],RAX
LAB_00148f92:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
SUB RAX,RCX
ADD RSP,0x40
POP RBP
RET
|
long my_strxfrm_pad_desc_and_reverse_nopad
(long param_1,long param_2,void *param_3,void *param_4,int param_5,uint param_6,
int4 param_7)
{
int4 local_44;
int8 local_20;
local_20 = param_3;
if (((param_5 != 0) && (param_3 < param_4)) && ((param_6 & 0x40) != 0)) {
if ((uint)((int)param_4 - (int)param_3) < (uint)(param_5 * *(int *)(param_1 + 0x98))) {
local_44 = (int)param_4 - (int)param_3;
}
else {
local_44 = param_5 * *(int *)(param_1 + 0x98);
}
memset(param_3,0,(ulong)local_44);
local_20 = (void *)((long)param_3 + (ulong)local_44);
}
my_strxfrm_desc_and_reverse(param_2,local_20,param_6,param_7);
if (((param_6 & 0x80) != 0) && (local_20 < param_4)) {
memset(local_20,0,(long)param_4 - (long)local_20);
local_20 = param_4;
}
return (long)local_20 - param_2;
}
| |
24,091 | my_numcells_cp932 | eloqsql/strings/ctype-cp932.c | static
size_t my_numcells_cp932(CHARSET_INFO *cs __attribute__((unused)),
const char *str, const char *str_end)
{
size_t clen= 0;
const uchar *b= (const uchar *) str;
const uchar *e= (const uchar *) str_end;
for (clen= 0; b < e; )
{
if (*b >= 0xA1 && *b <= 0xDF)
{
clen++;
b++;
}
else if (*b > 0x7F)
{
clen+= 2;
b+= 2;
}
else
{
clen++;
b++;
}
}
return clen;
} | O0 | c | my_numcells_cp932:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x6bcc5
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xa1, %eax
jl 0x6bc80
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xdf, %eax
jg 0x6bc80
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x6bcc0
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x7f, %eax
jle 0x6bca6
movq -0x20(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
jmp 0x6bcbe
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x6bcc0
jmp 0x6bc40
movq -0x20(%rbp), %rax
popq %rbp
retq
nopl (%rax,%rax)
| my_numcells_cp932:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], 0
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
mov [rbp+var_20], 0
loc_6BC40:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jnb short loc_6BCC5
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
cmp eax, 0A1h
jl short loc_6BC80
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
cmp eax, 0DFh
jg short loc_6BC80
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
jmp short loc_6BCC0
loc_6BC80:
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
cmp eax, 7Fh
jle short loc_6BCA6
mov rax, [rbp+var_20]
add rax, 2
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 2
mov [rbp+var_28], rax
jmp short loc_6BCBE
loc_6BCA6:
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
loc_6BCBE:
jmp short $+2
loc_6BCC0:
jmp loc_6BC40
loc_6BCC5:
mov rax, [rbp+var_20]
pop rbp
retn
| long long my_numcells_cp932(long long a1, unsigned __int8 *a2, unsigned long long a3)
{
long long v5; // [rsp+10h] [rbp-20h]
v5 = 0LL;
while ( (unsigned long long)a2 < a3 )
{
if ( *a2 < 0xA1u || *a2 > 0xDFu )
{
if ( *a2 <= 0x7Fu )
{
++v5;
++a2;
}
else
{
v5 += 2LL;
a2 += 2;
}
}
else
{
++v5;
++a2;
}
}
return v5;
}
| my_numcells_cp932:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV qword ptr [RBP + -0x20],0x0
LAB_0016bc40:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x0016bcc5
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xa1
JL 0x0016bc80
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xdf
JG 0x0016bc80
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0016bcc0
LAB_0016bc80:
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x7f
JLE 0x0016bca6
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x2
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0016bcbe
LAB_0016bca6:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
LAB_0016bcbe:
JMP 0x0016bcc0
LAB_0016bcc0:
JMP 0x0016bc40
LAB_0016bcc5:
MOV RAX,qword ptr [RBP + -0x20]
POP RBP
RET
|
long my_numcells_cp932(int8 param_1,byte *param_2,byte *param_3)
{
byte *local_30;
long local_28;
local_28 = 0;
local_30 = param_2;
while (local_30 < param_3) {
if ((*local_30 < 0xa1) || (0xdf < *local_30)) {
if (*local_30 < 0x80) {
local_28 = local_28 + 1;
local_30 = local_30 + 1;
}
else {
local_28 = local_28 + 2;
local_30 = local_30 + 2;
}
}
else {
local_28 = local_28 + 1;
local_30 = local_30 + 1;
}
}
return local_28;
}
| |
24,092 | udp_init | xtate/src/scan-modules/udp-scan.c | static bool udp_init(const XConf *xconf) {
src_port_start = xconf->nic.src.port.first;
if (strcmp(xconf->generator->name, "blackrock") == 0) {
_targets = &xconf->targets;
} else {
LOG(LEVEL_WARN,
"use non-default generator so that cannot do pre-validation and "
"get ICMP port unreachable results.\n");
}
return true;
} | O3 | c | udp_init:
pushq %rbx
movq %rdi, %rbx
movl 0x114(%rdi), %eax
movl %eax, 0x1691b0(%rip) # 0x1a3f5c
movq 0x500(%rdi), %rax
movq (%rax), %rdi
leaq 0x26365(%rip), %rsi # 0x61122
callq 0x158a0
testl %eax, %eax
je 0x3add8
leaq 0x3464f(%rip), %rsi # 0x6f41c
xorl %edi, %edi
xorl %eax, %eax
callq 0x536da
jmp 0x3ade6
addq $0x188, %rbx # imm = 0x188
movq %rbx, 0x16917a(%rip) # 0x1a3f60
movb $0x1, %al
popq %rbx
retq
| udp_init:
push rbx
mov rbx, rdi
mov eax, [rdi+114h]
mov cs:src_port_start_0, eax
mov rax, [rdi+500h]
mov rdi, [rax]
lea rsi, aNoBlackrock+3; "blackrock"
call _strcmp
test eax, eax
jz short loc_3ADD8
lea rsi, aUseNonDefaultG_0; "use non-default generator so that canno"...
xor edi, edi
xor eax, eax
call LOG
jmp short loc_3ADE6
loc_3ADD8:
add rbx, 188h
mov cs:_targets_1, rbx
loc_3ADE6:
mov al, 1
pop rbx
retn
| char udp_init(long long a1)
{
int v1; // edx
int v2; // ecx
int v3; // r8d
int v4; // r9d
src_port_start_0 = *(_DWORD *)(a1 + 276);
if ( !(unsigned int)strcmp(**(_QWORD **)(a1 + 1280), "blackrock") )
targets_1 = a1 + 392;
else
LOG(
0,
(unsigned int)"use non-default generator so that cannot do pre-validation and get ICMP port unreachable results.\n",
v1,
v2,
v3,
v4);
return 1;
}
| udp_init:
PUSH RBX
MOV RBX,RDI
MOV EAX,dword ptr [RDI + 0x114]
MOV dword ptr [0x002a3f5c],EAX
MOV RAX,qword ptr [RDI + 0x500]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x161122]
CALL 0x001158a0
TEST EAX,EAX
JZ 0x0013add8
LEA RSI,[0x16f41c]
XOR EDI,EDI
XOR EAX,EAX
CALL 0x001536da
JMP 0x0013ade6
LAB_0013add8:
ADD RBX,0x188
MOV qword ptr [0x002a3f60],RBX
LAB_0013ade6:
MOV AL,0x1
POP RBX
RET
|
int8 udp_init(long param_1)
{
int iVar1;
src_port_start = *(int4 *)(param_1 + 0x114);
iVar1 = strcmp((char *)**(int8 **)(param_1 + 0x500),"blackrock");
if (iVar1 == 0) {
_targets = param_1 + 0x188;
}
else {
LOG(0,
"use non-default generator so that cannot do pre-validation and get ICMP port unreachable results.\n"
);
}
return 1;
}
| |
24,093 | spdlog::logger::flush_() | aimrt_mujoco_sim/_deps/spdlog_lib-src/include/spdlog/logger-inl.h | SPDLOG_INLINE void logger::flush_()
{
for (auto &sink : sinks_)
{
SPDLOG_TRY
{
sink->flush();
}
SPDLOG_LOGGER_CATCH()
}
} | O0 | c | spdlog::logger::flush_():
subq $0xb8, %rsp
movq %rdi, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x20(%rsp)
addq $0x28, %rax
movq %rax, 0xa8(%rsp)
movq 0xa8(%rsp), %rdi
callq 0xd2bf0
movq %rax, 0xa0(%rsp)
movq 0xa8(%rsp), %rdi
callq 0xd2c60
movq %rax, 0x98(%rsp)
leaq 0xa0(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0xd2c20
testb $0x1, %al
jne 0xd34f0
jmp 0xd36dc
leaq 0xa0(%rsp), %rdi
callq 0xd2c90
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rdi
callq 0xd2ca0
movq %rax, %rdi
movq (%rdi), %rax
movq 0x18(%rax), %rax
callq *%rax
jmp 0xd3520
jmp 0xd35c1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
movl 0x84(%rsp), %eax
movl $0x2, %ecx
cmpl %ecx, %eax
jne 0xd35d5
movq 0x88(%rsp), %rdi
callq 0x1a020
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rdi
movq (%rdi), %rax
movq 0x10(%rax), %rax
callq *%rax
movq %rax, 0x10(%rsp)
leaq 0x2f(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x19dd0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
leaq 0x30(%rsp), %rdi
callq 0x1c7d0
jmp 0xd3597
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xd3190
jmp 0xd35a8
leaq 0x30(%rsp), %rdi
callq 0x19e70
leaq 0x2f(%rsp), %rdi
callq 0x19de0
callq 0x1a050
jmp 0xd35c3
leaq 0xa0(%rsp), %rdi
callq 0xd2cb0
jmp 0xd34d2
movq 0x88(%rsp), %rdi
callq 0x1a020
leaq 0x5f(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x19dd0
movq 0x8(%rsp), %rdx
leaq 0x3f2c4(%rip), %rsi # 0x1128c1
leaq 0x60(%rsp), %rdi
callq 0x1c7d0
jmp 0xd3609
movq 0x20(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0xd3190
jmp 0xd361a
leaq 0x60(%rsp), %rdi
callq 0x19e70
leaq 0x5f(%rsp), %rdi
callq 0x19de0
callq 0x1a040
jmp 0xd36f9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
jmp 0xd366c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x19e70
leaq 0x5f(%rsp), %rdi
callq 0x19de0
jmp 0xd368c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
callq 0x1a050
jmp 0xd3693
jmp 0xd36e4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
jmp 0xd36c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x19e70
leaq 0x2f(%rsp), %rdi
callq 0x19de0
callq 0x1a050
jmp 0xd36da
jmp 0xd36e4
addq $0xb8, %rsp
retq
movq 0x88(%rsp), %rdi
callq 0x19e80
movq %rax, %rdi
callq 0x1d880
nopl (%rax)
| _ZN6spdlog6logger6flush_Ev:
sub rsp, 0B8h
mov [rsp+0B8h+var_8], rdi
mov rax, [rsp+0B8h+var_8]
mov [rsp+0B8h+var_98], rax
add rax, 28h ; '('
mov [rsp+0B8h+var_10], rax
mov rdi, [rsp+0B8h+var_10]
call _ZNSt6vectorISt10shared_ptrIN6spdlog5sinks4sinkEESaIS4_EE5beginEv; std::vector<std::shared_ptr<spdlog::sinks::sink>>::begin(void)
mov [rsp+0B8h+var_18], rax
mov rdi, [rsp+0B8h+var_10]
call _ZNSt6vectorISt10shared_ptrIN6spdlog5sinks4sinkEESaIS4_EE3endEv; std::vector<std::shared_ptr<spdlog::sinks::sink>>::end(void)
mov [rsp+0B8h+var_20], rax
loc_D34D2:
lea rdi, [rsp+0B8h+var_18]
lea rsi, [rsp+0B8h+var_20]
call _ZN9__gnu_cxxneIPSt10shared_ptrIN6spdlog5sinks4sinkEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_; __gnu_cxx::operator!=<std::shared_ptr<spdlog::sinks::sink> *,std::vector<std::shared_ptr<spdlog::sinks::sink>>>(__gnu_cxx::__normal_iterator<std::shared_ptr<spdlog::sinks::sink> *,std::vector<std::shared_ptr<spdlog::sinks::sink>>> const&,__gnu_cxx::__normal_iterator<std::shared_ptr<spdlog::sinks::sink> *,std::vector<std::shared_ptr<spdlog::sinks::sink>>> const&)
test al, 1
jnz short loc_D34F0
jmp loc_D36DC
loc_D34F0:
lea rdi, [rsp+0B8h+var_18]
call _ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN6spdlog5sinks4sinkEESt6vectorIS5_SaIS5_EEEdeEv; __gnu_cxx::__normal_iterator<std::shared_ptr<spdlog::sinks::sink> *,std::vector<std::shared_ptr<spdlog::sinks::sink>>>::operator*(void)
mov [rsp+0B8h+var_28], rax
mov rdi, [rsp+0B8h+var_28]
call _ZNKSt19__shared_ptr_accessIN6spdlog5sinks4sinkELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<spdlog::sinks::sink,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov rdi, rax
mov rax, [rdi]
mov rax, [rax+18h]
call rax
jmp short $+2
loc_D3520:
jmp loc_D35C1
mov rcx, rax
mov eax, edx
mov [rsp+0B8h+var_30], rcx
mov [rsp+0B8h+var_34], eax
mov eax, [rsp+0B8h+var_34]
mov ecx, 2
cmp eax, ecx
jnz loc_D35D5
mov rdi, [rsp+0B8h+var_30]; void *
call ___cxa_begin_catch
mov [rsp+0B8h+var_68], rax
mov rdi, [rsp+0B8h+var_68]
mov rax, [rdi]
mov rax, [rax+10h]
call rax
mov [rsp+0B8h+var_A8], rax
lea rdi, [rsp+0B8h+var_89]
mov [rsp+0B8h+var_A0], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rsi, [rsp+0B8h+var_A8]
mov rdx, [rsp+0B8h+var_A0]
lea rdi, [rsp+0B8h+var_88]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_D3597:
mov rdi, [rsp+0B8h+var_98]
lea rsi, [rsp+0B8h+var_88]
call _ZN6spdlog6logger12err_handler_ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; spdlog::logger::err_handler_(std::string const&)
jmp short $+2
loc_D35A8:
lea rdi, [rsp+0B8h+var_88]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+0B8h+var_89]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
call ___cxa_end_catch
loc_D35C1:
jmp short $+2
loc_D35C3:
lea rdi, [rsp+0B8h+var_18]
call _ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN6spdlog5sinks4sinkEESt6vectorIS5_SaIS5_EEEppEv; __gnu_cxx::__normal_iterator<std::shared_ptr<spdlog::sinks::sink> *,std::vector<std::shared_ptr<spdlog::sinks::sink>>>::operator++(void)
jmp loc_D34D2
loc_D35D5:
mov rdi, [rsp+0B8h+var_30]; void *
call ___cxa_begin_catch
lea rdi, [rsp+0B8h+var_59]
mov [rsp+0B8h+var_B0], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, [rsp+0B8h+var_B0]
lea rsi, aRethrowingUnkn; "Rethrowing unknown exception in logger"
lea rdi, [rsp+0B8h+var_58]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_D3609:
mov rdi, [rsp+0B8h+var_98]
lea rsi, [rsp+0B8h+var_58]
call _ZN6spdlog6logger12err_handler_ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; spdlog::logger::err_handler_(std::string const&)
jmp short $+2
loc_D361A:
lea rdi, [rsp+0B8h+var_58]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+0B8h+var_59]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
call ___cxa_rethrow
jmp loc_D36F9
mov rcx, rax
mov eax, edx
mov [rsp+arg_80], rcx
mov [rsp+arg_7C], eax
jmp short loc_D366C
mov rcx, rax
mov eax, edx
mov [rsp+arg_80], rcx
mov [rsp+arg_7C], eax
lea rdi, [rsp+arg_58]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_D366C:
lea rdi, [rsp+arg_57]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_D368C
mov rcx, rax
mov eax, edx
mov [rsp+arg_80], rcx
mov [rsp+arg_7C], eax
loc_D368C:
call ___cxa_end_catch
jmp short $+2
loc_D3693:
jmp short loc_D36E4
mov rcx, rax
mov eax, edx
mov [rsp+arg_80], rcx
mov [rsp+arg_7C], eax
jmp short loc_D36C9
mov rcx, rax
mov eax, edx
mov [rsp+arg_80], rcx
mov [rsp+arg_7C], eax
lea rdi, [rsp+arg_28]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_D36C9:
lea rdi, [rsp+arg_27]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
call ___cxa_end_catch
jmp short $+2
loc_D36DA:
jmp short loc_D36E4
loc_D36DC:
add rsp, 0B8h
retn
loc_D36E4:
mov rdi, [rsp+arg_80]
call __Unwind_Resume
mov rdi, rax
call __clang_call_terminate
loc_D36F9:
nop dword ptr [rax+00000000h]
| bool spdlog::logger::flush_(spdlog::logger *this)
{
bool result; // al
long long v2; // rdi
long long v3; // [rsp+90h] [rbp-28h]
long long v4; // [rsp+98h] [rbp-20h] BYREF
_QWORD v5[3]; // [rsp+A0h] [rbp-18h] BYREF
v5[2] = this;
v5[1] = (char *)this + 40;
v5[0] = std::vector<std::shared_ptr<spdlog::sinks::sink>>::begin((long long)this + 40);
v4 = std::vector<std::shared_ptr<spdlog::sinks::sink>>::end((long long)this + 40);
while ( 1 )
{
result = __gnu_cxx::operator!=<std::shared_ptr<spdlog::sinks::sink> *,std::vector<std::shared_ptr<spdlog::sinks::sink>>>(
(long long)v5,
(long long)&v4);
if ( !result )
break;
v3 = __gnu_cxx::__normal_iterator<std::shared_ptr<spdlog::sinks::sink> *,std::vector<std::shared_ptr<spdlog::sinks::sink>>>::operator*((long long)v5);
v2 = std::__shared_ptr_access<spdlog::sinks::sink,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(v3);
(*(void ( **)(long long))(*(_QWORD *)v2 + 24LL))(v2);
__gnu_cxx::__normal_iterator<std::shared_ptr<spdlog::sinks::sink> *,std::vector<std::shared_ptr<spdlog::sinks::sink>>>::operator++(v5);
}
return result;
}
| flush_:
SUB RSP,0xb8
MOV qword ptr [RSP + 0xb0],RDI
MOV RAX,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0x20],RAX
ADD RAX,0x28
MOV qword ptr [RSP + 0xa8],RAX
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x001d2bf0
MOV qword ptr [RSP + 0xa0],RAX
MOV RDI,qword ptr [RSP + 0xa8]
CALL 0x001d2c60
MOV qword ptr [RSP + 0x98],RAX
LAB_001d34d2:
LEA RDI,[RSP + 0xa0]
LEA RSI,[RSP + 0x98]
CALL 0x001d2c20
TEST AL,0x1
JNZ 0x001d34f0
JMP 0x001d36dc
LAB_001d34f0:
LEA RDI,[RSP + 0xa0]
CALL 0x001d2c90
MOV qword ptr [RSP + 0x90],RAX
MOV RDI,qword ptr [RSP + 0x90]
CALL 0x001d2ca0
MOV RDI,RAX
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x18]
LAB_001d351c:
CALL RAX
LAB_001d351e:
JMP 0x001d3520
LAB_001d3520:
JMP 0x001d35c1
LAB_001d35c1:
JMP 0x001d35c3
LAB_001d35c3:
LEA RDI,[RSP + 0xa0]
CALL 0x001d2cb0
JMP 0x001d34d2
LAB_001d36dc:
ADD RSP,0xb8
RET
|
/* spdlog::logger::flush_() */
void __thiscall spdlog::logger::flush_(logger *this)
{
bool bVar1;
__shared_ptr_access<spdlog::sinks::sink,(__gnu_cxx::_Lock_policy)2,false,false> *this_00;
long *plVar2;
int8 local_20;
int8 local_18;
vector<std::shared_ptr<spdlog::sinks::sink>,std::allocator<std::shared_ptr<spdlog::sinks::sink>>>
*local_10;
logger *local_8;
local_10 = (vector<std::shared_ptr<spdlog::sinks::sink>,std::allocator<std::shared_ptr<spdlog::sinks::sink>>>
*)(this + 0x28);
local_8 = this;
local_18 = std::
vector<std::shared_ptr<spdlog::sinks::sink>,std::allocator<std::shared_ptr<spdlog::sinks::sink>>>
::begin(local_10);
local_20 = std::
vector<std::shared_ptr<spdlog::sinks::sink>,std::allocator<std::shared_ptr<spdlog::sinks::sink>>>
::end(local_10);
while( true ) {
bVar1 = __gnu_cxx::operator!=((__normal_iterator *)&local_18,(__normal_iterator *)&local_20);
if (!bVar1) break;
this_00 = (__shared_ptr_access<spdlog::sinks::sink,(__gnu_cxx::_Lock_policy)2,false,false> *)
__gnu_cxx::
__normal_iterator<std::shared_ptr<spdlog::sinks::sink>*,std::vector<std::shared_ptr<spdlog::sinks::sink>,std::allocator<std::shared_ptr<spdlog::sinks::sink>>>>
::operator*((__normal_iterator<std::shared_ptr<spdlog::sinks::sink>*,std::vector<std::shared_ptr<spdlog::sinks::sink>,std::allocator<std::shared_ptr<spdlog::sinks::sink>>>>
*)&local_18);
plVar2 = (long *)std::
__shared_ptr_access<spdlog::sinks::sink,(__gnu_cxx::_Lock_policy)2,false,false>
::operator->(this_00);
/* try { // try from 001d351c to 001d351d has its CatchHandler @ 001d3525 */
(**(code **)(*plVar2 + 0x18))();
__gnu_cxx::
__normal_iterator<std::shared_ptr<spdlog::sinks::sink>*,std::vector<std::shared_ptr<spdlog::sinks::sink>,std::allocator<std::shared_ptr<spdlog::sinks::sink>>>>
::operator++((__normal_iterator<std::shared_ptr<spdlog::sinks::sink>*,std::vector<std::shared_ptr<spdlog::sinks::sink>,std::allocator<std::shared_ptr<spdlog::sinks::sink>>>>
*)&local_18);
}
return;
}
| |
24,094 | c4_eth_set_trusted_blockhashes | corpus-core[P]colibri-stateless/src/chains/eth/verifier/sync_committee_state.c | void c4_eth_set_trusted_blockhashes(chain_id_t chain_id, bytes_t blockhashes) {
if (blockhashes.len == 0 || blockhashes.data == NULL || blockhashes.len % 32 != 0 || chain_id == 0) return;
c4_chain_state_t state = c4_get_chain_state(chain_id);
if (state.len == 0) {
char name[100];
storage_plugin_t storage_conf = {0};
c4_get_storage_config(&storage_conf);
state.blocks = safe_calloc(blockhashes.len / 32, sizeof(c4_trusted_block_t));
state.len = blockhashes.len / 32;
for (int i = 0; i < state.len; i++)
memcpy(state.blocks[i].blockhash, blockhashes.data + i * 32, 32);
sprintf(name, "states_%" PRIu64, (uint64_t) chain_id);
storage_conf.set(name, bytes(state.blocks, state.len * sizeof(c4_trusted_block_t)));
}
#ifndef C4_STATIC_MEMORY
safe_free(state.blocks);
#endif
} | O3 | c | c4_eth_set_trusted_blockhashes:
testl %esi, %esi
sete %al
testq %rdx, %rdx
sete %cl
orb %al, %cl
jne 0x28a62
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x90, %rsp
movl %esi, %r12d
movl %edi, %ebp
testb $0x1f, %r12b
setne %al
testl %edi, %edi
sete %cl
orb %al, %cl
jne 0x28a53
movq %rdx, %rbx
movl %ebp, %edi
callq 0x288e0
testl %edx, %edx
je 0x289cf
movq %rax, %r14
jmp 0x28a4b
xorps %xmm0, %xmm0
movq %rsp, %rdi
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, (%rdi)
callq 0x5506c
movl %r12d, %r15d
shrl $0x5, %r15d
movl $0x30, %esi
movq %r15, %rdi
callq 0x50eef
movq %rax, %r14
shrl %r12d
leaq (%r12,%r12,2), %rax
xorl %ecx, %ecx
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups %xmm1, 0x18(%r14,%rcx)
movups %xmm0, 0x8(%r14,%rcx)
addq $0x30, %rcx
addq $0x20, %rbx
cmpq %rcx, %rax
jne 0x28a01
movl %ebp, %edx
leaq 0x57ac4(%rip), %rsi # 0x804ee
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21080
shll $0x4, %r15d
leal (%r15,%r15,2), %esi
movq %rbx, %rdi
movq %r14, %rdx
callq *0x8(%rsp)
movq %r14, %rdi
callq 0x50f4c
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| c4_eth_set_trusted_blockhashes:
test esi, esi
setz al
test rdx, rdx
setz cl
or cl, al
jnz locret_28A62
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 90h
mov r12d, esi
mov ebp, edi
test r12b, 1Fh
setnz al
test edi, edi
setz cl
or cl, al
jnz loc_28A53
mov rbx, rdx
mov edi, ebp
call c4_get_chain_state
test edx, edx
jz short loc_289CF
mov r14, rax
jmp short loc_28A4B
loc_289CF:
xorps xmm0, xmm0
mov rdi, rsp
movaps xmmword ptr [rdi+10h], xmm0
movaps xmmword ptr [rdi], xmm0
call c4_get_storage_config
mov r15d, r12d
shr r15d, 5
mov esi, 30h ; '0'
mov rdi, r15
call safe_calloc
mov r14, rax
shr r12d, 1
lea rax, [r12+r12*2]
xor ecx, ecx
loc_28A01:
movups xmm0, xmmword ptr [rbx]
movups xmm1, xmmword ptr [rbx+10h]
movups xmmword ptr [r14+rcx+18h], xmm1
movups xmmword ptr [r14+rcx+8], xmm0
add rcx, 30h ; '0'
add rbx, 20h ; ' '
cmp rax, rcx
jnz short loc_28A01
mov edx, ebp
lea rsi, aStatesLu; "states_%lu"
lea rbx, [rsp+0B8h+var_98]
mov rdi, rbx
xor eax, eax
call _sprintf
shl r15d, 4
lea esi, [r15+r15*2]
mov rdi, rbx
mov rdx, r14
call [rsp+0B8h+var_B0]
loc_28A4B:
mov rdi, r14
call safe_free
loc_28A53:
add rsp, 90h
pop rbx
pop r12
pop r14
pop r15
pop rbp
locret_28A62:
retn
| unsigned __int8 c4_eth_set_trusted_blockhashes(unsigned int a1, unsigned int a2, __int128 *a3)
{
unsigned __int8 result; // al
__int128 *v4; // rbx
long long chain_state; // rax
int v6; // edx
long long v7; // r14
long long v8; // rcx
__int128 v9; // xmm0
_QWORD v10[4]; // [rsp-8h] [rbp-B8h] BYREF
_BYTE v11[152]; // [rsp+18h] [rbp-98h] BYREF
result = a2 == 0;
if ( a2 != 0 && a3 != 0LL )
{
result = (a2 & 0x1F) != 0;
if ( !(result | (a1 == 0)) )
{
v4 = a3;
chain_state = c4_get_chain_state(a1);
if ( v6 )
{
v7 = chain_state;
}
else
{
memset(v10, 0, sizeof(v10));
c4_get_storage_config(v10);
v7 = safe_calloc(a2 >> 5, 48LL);
v8 = 0LL;
do
{
v9 = *v4;
*(_OWORD *)(v7 + v8 + 24) = v4[1];
*(_OWORD *)(v7 + v8 + 8) = v9;
v8 += 48LL;
v4 += 2;
}
while ( 3LL * (a2 >> 1) != v8 );
sprintf(v11, "states_%lu", a1);
((void ( *)(_BYTE *, _QWORD, long long))v10[1])(v11, 48 * (a2 >> 5), v7);
}
return safe_free(v7);
}
}
return result;
}
| c4_eth_set_trusted_blockhashes:
TEST ESI,ESI
SETZ AL
TEST RDX,RDX
SETZ CL
OR CL,AL
JNZ 0x00128a62
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x90
MOV R12D,ESI
MOV EBP,EDI
TEST R12B,0x1f
SETNZ AL
TEST EDI,EDI
SETZ CL
OR CL,AL
JNZ 0x00128a53
MOV RBX,RDX
MOV EDI,EBP
CALL 0x001288e0
TEST EDX,EDX
JZ 0x001289cf
MOV R14,RAX
JMP 0x00128a4b
LAB_001289cf:
XORPS XMM0,XMM0
MOV RDI,RSP
MOVAPS xmmword ptr [RDI + 0x10],XMM0
MOVAPS xmmword ptr [RDI],XMM0
CALL 0x0015506c
MOV R15D,R12D
SHR R15D,0x5
MOV ESI,0x30
MOV RDI,R15
CALL 0x00150eef
MOV R14,RAX
SHR R12D,0x1
LEA RAX,[R12 + R12*0x2]
XOR ECX,ECX
LAB_00128a01:
MOVUPS XMM0,xmmword ptr [RBX]
MOVUPS XMM1,xmmword ptr [RBX + 0x10]
MOVUPS xmmword ptr [R14 + RCX*0x1 + 0x18],XMM1
MOVUPS xmmword ptr [R14 + RCX*0x1 + 0x8],XMM0
ADD RCX,0x30
ADD RBX,0x20
CMP RAX,RCX
JNZ 0x00128a01
MOV EDX,EBP
LEA RSI,[0x1804ee]
LEA RBX,[RSP + 0x20]
MOV RDI,RBX
XOR EAX,EAX
CALL 0x00121080
SHL R15D,0x4
LEA ESI,[R15 + R15*0x2]
MOV RDI,RBX
MOV RDX,R14
CALL qword ptr [RSP + 0x8]
LAB_00128a4b:
MOV RDI,R14
CALL 0x00150f4c
LAB_00128a53:
ADD RSP,0x90
POP RBX
POP R12
POP R14
POP R15
POP RBP
LAB_00128a62:
RET
|
void c4_eth_set_trusted_blockhashes(uint param_1,ulong param_2,int4 *param_3)
{
int4 *puVar1;
int4 uVar2;
int4 uVar3;
int4 uVar4;
int4 uVar5;
int4 uVar6;
int4 uVar7;
int4 uVar8;
long lVar9;
long lVar10;
ulong uVar11;
int1 auVar12 [12];
char local_98 [112];
if ((param_3 != (int4 *)0x0 && (uint)param_2 != 0) &&
(param_1 != 0 && (param_2 & 0x1f) == 0)) {
auVar12 = c4_get_chain_state(param_1);
lVar9 = auVar12._0_8_;
if (auVar12._8_4_ == 0) {
c4_get_storage_config();
uVar11 = param_2 >> 5 & 0x7ffffff;
lVar9 = safe_calloc(uVar11,0x30);
lVar10 = 0;
do {
uVar2 = *param_3;
uVar3 = param_3[1];
uVar4 = param_3[2];
uVar5 = param_3[3];
uVar6 = param_3[5];
uVar7 = param_3[6];
uVar8 = param_3[7];
puVar1 = (int4 *)(lVar9 + 0x18 + lVar10);
*puVar1 = param_3[4];
puVar1[1] = uVar6;
puVar1[2] = uVar7;
puVar1[3] = uVar8;
puVar1 = (int4 *)(lVar9 + 8 + lVar10);
*puVar1 = uVar2;
puVar1[1] = uVar3;
puVar1[2] = uVar4;
puVar1[3] = uVar5;
lVar10 = lVar10 + 0x30;
param_3 = param_3 + 8;
} while ((ulong)((uint)param_2 >> 1) * 3 != lVar10);
sprintf(local_98,"states_%lu",(ulong)param_1);
(*(code *)0x0)(local_98,(int)uVar11 * 0x30,lVar9);
}
safe_free(lVar9);
}
return;
}
| |
24,095 | inline_mysql_cond_broadcast | eloqsql/include/mysql/psi/mysql_thread.h | static inline int inline_mysql_cond_broadcast(
mysql_cond_t *that)
{
int result;
#ifdef HAVE_PSI_COND_INTERFACE
if (psi_likely(that->m_psi != NULL))
PSI_COND_CALL(broadcast_cond)(that->m_psi);
#endif
result= pthread_cond_broadcast(&that->m_cond);
return result;
} | O0 | c | inline_mysql_cond_broadcast:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x30(%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 0xe940b
leaq 0x1dec41(%rip), %rax # 0x2c8038
movq (%rax), %rax
movq 0x178(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x30(%rcx), %rdi
callq *%rax
movq -0x8(%rbp), %rdi
callq 0x29650
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
| inline_mysql_cond_broadcast_3:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
cmp qword ptr [rax+30h], 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_E940B
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+178h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+30h]
call rax
loc_E940B:
mov rdi, [rbp+var_8]
call _pthread_cond_broadcast
mov [rbp+var_C], eax
mov eax, [rbp+var_C]
add rsp, 10h
pop rbp
retn
| long long inline_mysql_cond_broadcast_3(long long a1)
{
if ( *(_QWORD *)(a1 + 48) )
((void ( *)(_QWORD))PSI_server[47])(*(_QWORD *)(a1 + 48));
return (unsigned int)pthread_cond_broadcast(a1);
}
| inline_mysql_cond_broadcast:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x30],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 0x001e940b
LEA RAX,[0x3c8038]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x178]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RCX + 0x30]
CALL RAX
LAB_001e940b:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00129650
MOV dword ptr [RBP + -0xc],EAX
MOV EAX,dword ptr [RBP + -0xc]
ADD RSP,0x10
POP RBP
RET
|
int inline_mysql_cond_broadcast(pthread_cond_t *param_1)
{
int iVar1;
if (param_1[1].__align != 0) {
(**(code **)(PSI_server + 0x178))(param_1[1].__align);
}
iVar1 = pthread_cond_broadcast(param_1);
return iVar1;
}
| |
24,096 | JS_ResolveModule | bluesky950520[P]quickjs/quickjs.c | int JS_ResolveModule(JSContext *ctx, JSValue obj)
{
if (JS_VALUE_GET_TAG(obj) == JS_TAG_MODULE) {
JSModuleDef *m = JS_VALUE_GET_PTR(obj);
if (js_resolve_module(ctx, m) < 0) {
js_free_modules(ctx, JS_FREE_MODULE_NOT_RESOLVED);
return -1;
}
}
return 0;
} | O0 | c | JS_ResolveModule:
subq $0x28, %rsp
movq %rsi, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq %rdi, 0x8(%rsp)
movq 0x18(%rsp), %rax
cmpl $-0x3, %eax
jne 0x4adc4
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq 0x8(%rsp), %rdi
movq (%rsp), %rsi
callq 0x4ade0
cmpl $0x0, %eax
jge 0x4adc2
movq 0x8(%rsp), %rdi
movl $0x1, %esi
callq 0x27e00
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x4adcc
jmp 0x4adc4
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
| JS_ResolveModule:
sub rsp, 28h
mov [rsp+28h+var_18], rsi
mov [rsp+28h+var_10], rdx
mov [rsp+28h+var_20], rdi
mov rax, [rsp+28h+var_10]
cmp eax, 0FFFFFFFDh
jnz short loc_4ADC4
mov rax, [rsp+28h+var_18]
mov [rsp+28h+var_28], rax
mov rdi, [rsp+28h+var_20]
mov rsi, [rsp+28h+var_28]
call js_resolve_module
cmp eax, 0
jge short loc_4ADC2
mov rdi, [rsp+28h+var_20]
mov esi, 1
call js_free_modules
mov [rsp+28h+var_4], 0FFFFFFFFh
jmp short loc_4ADCC
loc_4ADC2:
jmp short $+2
loc_4ADC4:
mov [rsp+28h+var_4], 0
loc_4ADCC:
mov eax, [rsp+28h+var_4]
add rsp, 28h
retn
| long long JS_ResolveModule(long long a1, long long a2, int a3)
{
if ( a3 == -3 && (int)js_resolve_module(a1, a2) < 0 )
{
js_free_modules(a1, 1);
return (unsigned int)-1;
}
else
{
return 0;
}
}
| JS_ResolveModule:
SUB RSP,0x28
MOV qword ptr [RSP + 0x10],RSI
MOV qword ptr [RSP + 0x18],RDX
MOV qword ptr [RSP + 0x8],RDI
MOV RAX,qword ptr [RSP + 0x18]
CMP EAX,-0x3
JNZ 0x0014adc4
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP],RAX
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP]
CALL 0x0014ade0
CMP EAX,0x0
JGE 0x0014adc2
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,0x1
CALL 0x00127e00
MOV dword ptr [RSP + 0x24],0xffffffff
JMP 0x0014adcc
LAB_0014adc2:
JMP 0x0014adc4
LAB_0014adc4:
MOV dword ptr [RSP + 0x24],0x0
LAB_0014adcc:
MOV EAX,dword ptr [RSP + 0x24]
ADD RSP,0x28
RET
|
int4 JS_ResolveModule(int8 param_1,int8 param_2,int param_3)
{
int iVar1;
int4 local_4;
if ((param_3 == -3) && (iVar1 = js_resolve_module(param_1,param_2), iVar1 < 0)) {
js_free_modules(param_1,1);
local_4 = 0xffffffff;
}
else {
local_4 = 0;
}
return local_4;
}
| |
24,097 | JS_ResolveModule | bluesky950520[P]quickjs/quickjs.c | int JS_ResolveModule(JSContext *ctx, JSValue obj)
{
if (JS_VALUE_GET_TAG(obj) == JS_TAG_MODULE) {
JSModuleDef *m = JS_VALUE_GET_PTR(obj);
if (js_resolve_module(ctx, m) < 0) {
js_free_modules(ctx, JS_FREE_MODULE_NOT_RESOLVED);
return -1;
}
}
return 0;
} | O1 | c | JS_ResolveModule:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, (%rsp)
xorl %ebx, %ebx
cmpl $-0x3, %edx
jne 0x315bb
movq %rdi, %r14
movq (%rsp), %rsi
callq 0x315c5
testl %eax, %eax
jns 0x315bb
movq %r14, %rdi
movl $0x1, %esi
callq 0x1fd30
movl $0xffffffff, %ebx # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| JS_ResolveModule:
push r14
push rbx
push rax
mov [rsp+18h+var_18], rsi
xor ebx, ebx
cmp edx, 0FFFFFFFDh
jnz short loc_315BB
mov r14, rdi
mov rsi, [rsp+18h+var_18]
call js_resolve_module
test eax, eax
jns short loc_315BB
mov rdi, r14
mov esi, 1
call js_free_modules
mov ebx, 0FFFFFFFFh
loc_315BB:
mov eax, ebx
add rsp, 8
pop rbx
pop r14
retn
| long long JS_ResolveModule(long long a1, long long a2, int a3)
{
unsigned int v3; // ebx
v3 = 0;
if ( a3 == -3 && (int)js_resolve_module(a1, a2) < 0 )
{
js_free_modules(a1, 1);
return (unsigned int)-1;
}
return v3;
}
| JS_ResolveModule:
PUSH R14
PUSH RBX
PUSH RAX
MOV qword ptr [RSP],RSI
XOR EBX,EBX
CMP EDX,-0x3
JNZ 0x001315bb
MOV R14,RDI
MOV RSI,qword ptr [RSP]
CALL 0x001315c5
TEST EAX,EAX
JNS 0x001315bb
MOV RDI,R14
MOV ESI,0x1
CALL 0x0011fd30
MOV EBX,0xffffffff
LAB_001315bb:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R14
RET
|
int8 JS_ResolveModule(int8 param_1,int8 param_2,int param_3)
{
int iVar1;
int8 uVar2;
uVar2 = 0;
if (param_3 == -3) {
iVar1 = js_resolve_module(param_1,param_2);
if (iVar1 < 0) {
js_free_modules(param_1,1);
uVar2 = 0xffffffff;
}
}
return uVar2;
}
| |
24,098 | stmt_set_error | eloqsql/libmariadb/libmariadb/mariadb_stmt.c | void stmt_set_error(MYSQL_STMT *stmt,
unsigned int error_nr,
const char *sqlstate,
const char *format,
...)
{
va_list ap;
const char *error= NULL;
if (error_nr >= CR_MIN_ERROR && error_nr <= CR_MYSQL_LAST_ERROR)
error= ER(error_nr);
else if (error_nr >= CER_MIN_ERROR && error_nr <= CR_MARIADB_LAST_ERROR)
error= CER(error_nr);
stmt->last_errno= error_nr;
ma_strmake(stmt->sqlstate, sqlstate, SQLSTATE_LENGTH);
va_start(ap, format);
vsnprintf(stmt->last_error, MYSQL_ERRMSG_SIZE,
format ? format : error ? error : "", ap);
va_end(ap);
return;
} | O3 | c | stmt_set_error:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xc8, %rsp
movq %rcx, %r14
movq %rdx, %rcx
movq %rdi, %rbx
movq %r8, -0xc0(%rbp)
movq %r9, -0xb8(%rbp)
testb %al, %al
je 0x22bfc
movaps %xmm0, -0xb0(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm2, -0x90(%rbp)
movaps %xmm3, -0x80(%rbp)
movaps %xmm4, -0x70(%rbp)
movaps %xmm5, -0x60(%rbp)
movaps %xmm6, -0x50(%rbp)
movaps %xmm7, -0x40(%rbp)
leal -0x7d0(%rsi), %eax
cmpl $0x3e, %eax
jae 0x22c10
leaq 0x2d402(%rip), %rdx # 0x50010
jmp 0x22c22
leal -0x1388(%rsi), %eax
cmpl $0xf, %eax
ja 0x22c2a
leaq 0x2d5ee(%rip), %rdx # 0x50210
movl %eax, %eax
movq (%rdx,%rax,8), %r15
jmp 0x22c2d
xorl %r15d, %r15d
movl %esi, 0x108(%rbx)
leaq 0x30d(%rbx), %rdi
movl $0x5, %edx
movq %rcx, %rsi
callq 0x299d3
movabsq $0x3000000020, %rax # imm = 0x3000000020
leaq -0x30(%rbp), %r9
movq %rax, (%r9)
leaq 0x10(%rbp), %rax
movq %rax, 0x8(%r9)
leaq -0xe0(%rbp), %rax
movq %rax, 0x10(%r9)
testq %r15, %r15
leaq 0x17593(%rip), %r8 # 0x3a208
cmovneq %r15, %r8
testq %r14, %r14
cmovneq %r14, %r8
addq $0x10c, %rbx # imm = 0x10C
movl $0x200, %esi # imm = 0x200
movq %rbx, %rdi
movl $0x1, %edx
movq $-0x1, %rcx
callq 0x13390
addq $0xc8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| stmt_set_error:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 0C8h
mov r14, rcx
mov rcx, rdx
mov rbx, rdi
mov [rbp+var_C0], r8
mov [rbp+var_B8], r9
test al, al
jz short loc_22BFC
movaps [rbp+var_B0], xmm0
movaps [rbp+var_A0], xmm1
movaps [rbp+var_90], xmm2
movaps [rbp+var_80], xmm3
movaps [rbp+var_70], xmm4
movaps [rbp+var_60], xmm5
movaps [rbp+var_50], xmm6
movaps [rbp+var_40], xmm7
loc_22BFC:
lea eax, [rsi-7D0h]
cmp eax, 3Eh ; '>'
jnb short loc_22C10
lea rdx, client_errors
jmp short loc_22C22
loc_22C10:
lea eax, [rsi-1388h]
cmp eax, 0Fh
ja short loc_22C2A
lea rdx, mariadb_client_errors
loc_22C22:
mov eax, eax
mov r15, [rdx+rax*8]
jmp short loc_22C2D
loc_22C2A:
xor r15d, r15d
loc_22C2D:
mov [rbx+108h], esi
lea rdi, [rbx+30Dh]
mov edx, 5
mov rsi, rcx
call ma_strmake
mov rax, 3000000020h
lea r9, [rbp+var_30]
mov [r9], rax
lea rax, [rbp+arg_0]
mov [r9+8], rax
lea rax, [rbp+var_E0]
mov [r9+10h], rax
test r15, r15
lea r8, aDDD+12h; ""
cmovnz r8, r15
test r14, r14
cmovnz r8, r14
add rbx, 10Ch
mov esi, 200h
mov rdi, rbx
mov edx, 1
mov rcx, 0FFFFFFFFFFFFFFFFh
call ___vsnprintf_chk
add rsp, 0C8h
pop rbx
pop r14
pop r15
pop rbp
retn
| long long stmt_set_error(long long a1, int a2, long long a3, char *a4, ...)
{
int v6; // eax
char **v7; // rdx
char *v8; // r15
char *v9; // r8
va_list va; // [rsp+B0h] [rbp-30h] BYREF
v6 = a2 - 2000;
if ( (unsigned int)(a2 - 2000) < 0x3E )
{
v7 = client_errors;
LABEL_5:
v8 = v7[v6];
goto LABEL_7;
}
v6 = a2 - 5000;
if ( (unsigned int)(a2 - 5000) <= 0xF )
{
v7 = mariadb_client_errors;
goto LABEL_5;
}
v8 = 0LL;
LABEL_7:
*(_DWORD *)(a1 + 264) = a2;
ma_strmake(a1 + 781, a3, 5LL);
va_start(va, a4);
v9 = "";
if ( v8 )
v9 = v8;
if ( a4 )
v9 = a4;
return __vsnprintf_chk(a1 + 268, 512LL, 1LL, -1LL, v9, va);
}
| stmt_set_error:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0xc8
MOV R14,RCX
MOV RCX,RDX
MOV RBX,RDI
MOV qword ptr [RBP + -0xc0],R8
MOV qword ptr [RBP + -0xb8],R9
TEST AL,AL
JZ 0x00122bfc
MOVAPS xmmword ptr [RBP + -0xb0],XMM0
MOVAPS xmmword ptr [RBP + -0xa0],XMM1
MOVAPS xmmword ptr [RBP + -0x90],XMM2
MOVAPS xmmword ptr [RBP + -0x80],XMM3
MOVAPS xmmword ptr [RBP + -0x70],XMM4
MOVAPS xmmword ptr [RBP + -0x60],XMM5
MOVAPS xmmword ptr [RBP + -0x50],XMM6
MOVAPS xmmword ptr [RBP + -0x40],XMM7
LAB_00122bfc:
LEA EAX,[RSI + -0x7d0]
CMP EAX,0x3e
JNC 0x00122c10
LEA RDX,[0x150010]
JMP 0x00122c22
LAB_00122c10:
LEA EAX,[RSI + -0x1388]
CMP EAX,0xf
JA 0x00122c2a
LEA RDX,[0x150210]
LAB_00122c22:
MOV EAX,EAX
MOV R15,qword ptr [RDX + RAX*0x8]
JMP 0x00122c2d
LAB_00122c2a:
XOR R15D,R15D
LAB_00122c2d:
MOV dword ptr [RBX + 0x108],ESI
LEA RDI,[RBX + 0x30d]
MOV EDX,0x5
MOV RSI,RCX
CALL 0x001299d3
MOV RAX,0x3000000020
LEA R9,[RBP + -0x30]
MOV qword ptr [R9],RAX
LEA RAX,[RBP + 0x10]
MOV qword ptr [R9 + 0x8],RAX
LEA RAX,[RBP + -0xe0]
MOV qword ptr [R9 + 0x10],RAX
TEST R15,R15
LEA R8,[0x13a208]
CMOVNZ R8,R15
TEST R14,R14
CMOVNZ R8,R14
ADD RBX,0x10c
MOV ESI,0x200
MOV RDI,RBX
MOV EDX,0x1
MOV RCX,-0x1
CALL 0x00113390
ADD RSP,0xc8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void stmt_set_error(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
long param_9,int param_10,int8 param_11,int *param_12,
int8 param_13,int8 param_14)
{
char in_AL;
uint uVar1;
int **ppuVar2;
int *puVar3;
int *puVar4;
int1 local_e8 [32];
int8 local_c8;
int8 local_c0;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int8 local_48;
int8 local_38;
int1 *local_30;
int1 *local_28;
if (in_AL != '\0') {
local_b8 = param_1;
local_a8 = param_2;
local_98 = param_3;
local_88 = param_4;
local_78 = param_5;
local_68 = param_6;
local_58 = param_7;
local_48 = param_8;
}
uVar1 = param_10 - 2000;
if (uVar1 < 0x3e) {
ppuVar2 = &client_errors;
}
else {
uVar1 = param_10 - 5000;
if (0xf < uVar1) {
puVar4 = (int *)0x0;
goto LAB_00122c2d;
}
ppuVar2 = (int **)mariadb_client_errors;
}
puVar4 = ppuVar2[uVar1];
LAB_00122c2d:
*(int *)(param_9 + 0x108) = param_10;
local_c8 = param_13;
local_c0 = param_14;
ma_strmake(param_9 + 0x30d,param_11,5);
local_38 = 0x3000000020;
local_30 = &stack0x00000008;
local_28 = local_e8;
puVar3 = &DAT_0013a208;
if (puVar4 != (int *)0x0) {
puVar3 = puVar4;
}
if (param_12 != (int *)0x0) {
puVar3 = param_12;
}
__vsnprintf_chk(param_9 + 0x10c,0x200,1,0xffffffffffffffff,puVar3);
return;
}
| |
24,099 | JS_ToUint8ClampFree | bluesky950520[P]quickjs/quickjs.c | static int JS_ToUint8ClampFree(JSContext *ctx, int32_t *pres, JSValue val)
{
uint32_t tag;
int res;
redo:
tag = JS_VALUE_GET_NORM_TAG(val);
switch(tag) {
case JS_TAG_INT:
case JS_TAG_BOOL:
case JS_TAG_NULL:
case JS_TAG_UNDEFINED:
res = JS_VALUE_GET_INT(val);
res = max_int(0, min_int(255, res));
break;
case JS_TAG_FLOAT64:
{
double d = JS_VALUE_GET_FLOAT64(val);
if (isnan(d)) {
res = 0;
} else {
if (d < 0)
res = 0;
else if (d > 255)
res = 255;
else
res = lrint(d);
}
}
break;
default:
val = JS_ToNumberFree(ctx, val);
if (JS_IsException(val)) {
*pres = 0;
return -1;
}
goto redo;
}
*pres = res;
return 0;
} | O0 | c | JS_ToUint8ClampFree:
subq $0x58, %rsp
movq %rdx, 0x40(%rsp)
movq %rcx, 0x48(%rsp)
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movl 0x48(%rsp), %eax
movl %eax, 0x2c(%rsp)
movl 0x2c(%rsp), %eax
movl %eax, 0xc(%rsp)
subl $0x4, %eax
jb 0x6742d
jmp 0x6741f
movl 0xc(%rsp), %eax
subl $0x7, %eax
je 0x67455
jmp 0x674c6
movl 0x40(%rsp), %eax
movl %eax, 0x28(%rsp)
movl 0x28(%rsp), %esi
movl $0xff, %edi
callq 0x56ff0
movl %eax, %esi
xorl %edi, %edi
callq 0x63600
movl %eax, 0x28(%rsp)
jmp 0x67526
movsd 0x40(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x20(%rsp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x67474
jmp 0x6747e
movl $0x0, 0x28(%rsp)
jmp 0x674c4
xorps %xmm0, %xmm0
ucomisd 0x20(%rsp), %xmm0
jbe 0x67493
movl $0x0, 0x28(%rsp)
jmp 0x674c2
movsd 0x20(%rsp), %xmm0
movsd 0xac5ff(%rip), %xmm1 # 0x113aa0
ucomisd %xmm1, %xmm0
jbe 0x674b1
movl $0xff, 0x28(%rsp)
jmp 0x674c0
movsd 0x20(%rsp), %xmm0
callq 0xe2b0
movl %eax, 0x28(%rsp)
jmp 0x674c2
jmp 0x674c4
jmp 0x67526
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
callq 0x56da0
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x29fb0
cmpl $0x0, %eax
je 0x67521
movq 0x30(%rsp), %rax
movl $0x0, (%rax)
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x67539
jmp 0x67408
movl 0x28(%rsp), %ecx
movq 0x30(%rsp), %rax
movl %ecx, (%rax)
movl $0x0, 0x54(%rsp)
movl 0x54(%rsp), %eax
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)
| JS_ToUint8ClampFree:
sub rsp, 58h
mov [rsp+58h+var_18], rdx
mov [rsp+58h+var_10], rcx
mov [rsp+58h+var_20], rdi
mov [rsp+58h+var_28], rsi
loc_67408:
mov eax, dword ptr [rsp+58h+var_10]
mov [rsp+58h+var_2C], eax
mov eax, [rsp+58h+var_2C]
mov [rsp+58h+var_4C], eax
sub eax, 4
jb short loc_6742D
jmp short $+2
loc_6741F:
mov eax, [rsp+58h+var_4C]
sub eax, 7
jz short loc_67455
jmp loc_674C6
loc_6742D:
mov eax, dword ptr [rsp+58h+var_18]
mov [rsp+58h+var_30], eax
mov esi, [rsp+58h+var_30]
mov edi, 0FFh
call min_int_1
mov esi, eax
xor edi, edi
call max_int_1
mov [rsp+58h+var_30], eax
jmp loc_67526
loc_67455:
movsd xmm0, [rsp+58h+var_18]
movsd [rsp+58h+var_38], xmm0
movsd xmm0, [rsp+58h+var_38]
ucomisd xmm0, xmm0
setp al
test al, 1
jnz short loc_67474
jmp short loc_6747E
loc_67474:
mov [rsp+58h+var_30], 0
jmp short loc_674C4
loc_6747E:
xorps xmm0, xmm0
ucomisd xmm0, [rsp+58h+var_38]
jbe short loc_67493
mov [rsp+58h+var_30], 0
jmp short loc_674C2
loc_67493:
movsd xmm0, [rsp+58h+var_38]
movsd xmm1, cs:qword_113AA0
ucomisd xmm0, xmm1
jbe short loc_674B1
mov [rsp+58h+var_30], 0FFh
jmp short loc_674C0
loc_674B1:
movsd xmm0, [rsp+58h+var_38]
call _lrint
mov [rsp+58h+var_30], eax
loc_674C0:
jmp short $+2
loc_674C2:
jmp short $+2
loc_674C4:
jmp short loc_67526
loc_674C6:
mov rdi, [rsp+58h+var_20]
mov rsi, [rsp+58h+var_18]
mov rdx, [rsp+58h+var_10]
call JS_ToNumberFree
mov [rsp+58h+var_48], rax
mov [rsp+58h+var_40], rdx
mov rax, [rsp+58h+var_48]
mov [rsp+58h+var_18], rax
mov rax, [rsp+58h+var_40]
mov [rsp+58h+var_10], rax
mov rdi, [rsp+58h+var_18]
mov rsi, [rsp+58h+var_10]
call JS_IsException_1
cmp eax, 0
jz short loc_67521
mov rax, [rsp+58h+var_28]
mov dword ptr [rax], 0
mov [rsp+58h+var_4], 0FFFFFFFFh
jmp short loc_67539
loc_67521:
jmp loc_67408
loc_67526:
mov ecx, [rsp+58h+var_30]
mov rax, [rsp+58h+var_28]
mov [rax], ecx
mov [rsp+58h+var_4], 0
loc_67539:
mov eax, [rsp+58h+var_4]
add rsp, 58h
retn
| long long JS_ToUint8ClampFree(long long a1, int *a2, long long a3, long long a4, long long a5, long long a6)
{
unsigned int v6; // eax
long long v7; // rdx
int v10; // [rsp+28h] [rbp-30h]
long long v12; // [rsp+48h] [rbp-10h]
v12 = a4;
while ( 1 )
{
if ( (unsigned int)v12 < 4 )
{
v6 = min_int_1(0xFFu, a3);
v10 = max_int_1(0, v6);
goto LABEL_14;
}
if ( (_DWORD)v12 == 7 )
break;
*(double *)&a3 = COERCE_DOUBLE(JS_ToNumberFree(a1, a3, v12, a4, a5, a6));
v12 = v7;
if ( JS_IsException_1(a3, v7) )
{
*a2 = 0;
return (unsigned int)-1;
}
}
if ( *(double *)&a3 >= 0.0 )
{
if ( *(double *)&a3 <= 255.0 )
v10 = lrint(*(double *)&a3);
else
v10 = 255;
}
else
{
v10 = 0;
}
LABEL_14:
*a2 = v10;
return 0;
}
| JS_ToUint8ClampFree:
SUB RSP,0x58
MOV qword ptr [RSP + 0x40],RDX
MOV qword ptr [RSP + 0x48],RCX
MOV qword ptr [RSP + 0x38],RDI
MOV qword ptr [RSP + 0x30],RSI
LAB_00167408:
MOV EAX,dword ptr [RSP + 0x48]
MOV dword ptr [RSP + 0x2c],EAX
MOV EAX,dword ptr [RSP + 0x2c]
MOV dword ptr [RSP + 0xc],EAX
SUB EAX,0x4
JC 0x0016742d
JMP 0x0016741f
LAB_0016741f:
MOV EAX,dword ptr [RSP + 0xc]
SUB EAX,0x7
JZ 0x00167455
JMP 0x001674c6
LAB_0016742d:
MOV EAX,dword ptr [RSP + 0x40]
MOV dword ptr [RSP + 0x28],EAX
MOV ESI,dword ptr [RSP + 0x28]
MOV EDI,0xff
CALL 0x00156ff0
MOV ESI,EAX
XOR EDI,EDI
CALL 0x00163600
MOV dword ptr [RSP + 0x28],EAX
JMP 0x00167526
LAB_00167455:
MOVSD XMM0,qword ptr [RSP + 0x40]
MOVSD qword ptr [RSP + 0x20],XMM0
MOVSD XMM0,qword ptr [RSP + 0x20]
UCOMISD XMM0,XMM0
SETP AL
TEST AL,0x1
JNZ 0x00167474
JMP 0x0016747e
LAB_00167474:
MOV dword ptr [RSP + 0x28],0x0
JMP 0x001674c4
LAB_0016747e:
XORPS XMM0,XMM0
UCOMISD XMM0,qword ptr [RSP + 0x20]
JBE 0x00167493
MOV dword ptr [RSP + 0x28],0x0
JMP 0x001674c2
LAB_00167493:
MOVSD XMM0,qword ptr [RSP + 0x20]
MOVSD XMM1,qword ptr [0x00213aa0]
UCOMISD XMM0,XMM1
JBE 0x001674b1
MOV dword ptr [RSP + 0x28],0xff
JMP 0x001674c0
LAB_001674b1:
MOVSD XMM0,qword ptr [RSP + 0x20]
CALL 0x0010e2b0
MOV dword ptr [RSP + 0x28],EAX
LAB_001674c0:
JMP 0x001674c2
LAB_001674c2:
JMP 0x001674c4
LAB_001674c4:
JMP 0x00167526
LAB_001674c6:
MOV RDI,qword ptr [RSP + 0x38]
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
CALL 0x00156da0
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x48],RAX
MOV RDI,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP + 0x48]
CALL 0x00129fb0
CMP EAX,0x0
JZ 0x00167521
MOV RAX,qword ptr [RSP + 0x30]
MOV dword ptr [RAX],0x0
MOV dword ptr [RSP + 0x54],0xffffffff
JMP 0x00167539
LAB_00167521:
JMP 0x00167408
LAB_00167526:
MOV ECX,dword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x30]
MOV dword ptr [RAX],ECX
MOV dword ptr [RSP + 0x54],0x0
LAB_00167539:
MOV EAX,dword ptr [RSP + 0x54]
ADD RSP,0x58
RET
|
int4
JS_ToUint8ClampFree(int8 param_1,int4 *param_2,int8 param_3,int8 param_4)
{
int8 uVar1;
int4 uVar2;
int iVar3;
long lVar4;
int1 auVar5 [16];
int4 local_30;
double local_18;
int8 local_10;
auVar5._8_8_ = param_4;
auVar5._0_8_ = param_3;
do {
local_10 = auVar5._8_8_;
uVar1 = local_10;
local_18 = auVar5._0_8_;
local_10._0_4_ = auVar5._8_4_;
if ((uint)local_10 < 4) {
uVar2 = min_int(0xff,(ulong)local_18 & 0xffffffff);
local_30 = max_int(0,uVar2);
LAB_00167526:
*param_2 = local_30;
return 0;
}
if ((uint)local_10 == 7) {
if (NAN(local_18)) {
local_30 = 0;
}
else if (0.0 <= local_18) {
if (local_18 <= DAT_00213aa0) {
lVar4 = lrint(local_18);
local_30 = (int4)lVar4;
}
else {
local_30 = 0xff;
}
}
else {
local_30 = 0;
}
goto LAB_00167526;
}
auVar5 = JS_ToNumberFree(param_1,local_18,uVar1);
iVar3 = JS_IsException(auVar5._0_8_,auVar5._8_8_);
if (iVar3 != 0) {
*param_2 = 0;
return 0xffffffff;
}
} while( true );
}
|
Subsets and Splits
C++ Functions Using STL
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ STL Function Queries
Filters C++ code examples that use standard library containers and algorithms, helping identify common programming patterns and library usage in code generation tasks.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.