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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
49,700 | testing::Matcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::Matcher(char const*) | AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-matchers.cc | Matcher<std::string>::Matcher(const char* s) { *this = Eq(std::string(s)); } | O0 | cpp | testing::Matcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::Matcher(char const*):
subq $0x98, %rsp
movq %rdi, 0x90(%rsp)
movq %rsi, 0x88(%rsp)
movq 0x90(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x1249c0
movq (%rsp), %rax
leaq 0xd6935(%rip), %rcx # 0x1cf418
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x88(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x2f(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x15de0
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x30(%rsp), %rdi
callq 0x1bd40
jmp 0xf8b1c
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x124910
jmp 0xf8b2d
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x124a10
jmp 0xf8b3e
movq (%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x124a50
jmp 0xf8b4e
leaq 0x70(%rsp), %rdi
callq 0x124a80
leaq 0x50(%rsp), %rdi
callq 0x1249b0
leaq 0x30(%rsp), %rdi
callq 0x1c160
leaq 0x2f(%rsp), %rdi
callq 0x157f0
addq $0x98, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
jmp 0xf8bda
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
jmp 0xf8bd0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
jmp 0xf8bc6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x124a80
leaq 0x50(%rsp), %rdi
callq 0x1249b0
leaq 0x30(%rsp), %rdi
callq 0x1c160
leaq 0x2f(%rsp), %rdi
callq 0x157f0
movq (%rsp), %rdi
callq 0x13b020
movq 0x20(%rsp), %rdi
callq 0x15dd0
nopw (%rax,%rax)
| _ZN7testing7MatcherINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2EPKc:
sub rsp, 98h
mov [rsp+98h+var_8], rdi
mov [rsp+98h+var_10], rsi
mov rdi, [rsp+98h+var_8]
mov [rsp+98h+var_98], rdi
call _ZN7testing8internal11MatcherBaseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev; testing::internal::MatcherBase<std::string>::MatcherBase(void)
mov rax, [rsp+98h+var_98]
lea rcx, _ZTVN7testing7MatcherINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE; `vtable for'testing::Matcher<std::string>
add rcx, 10h
mov [rax], rcx
mov rax, [rsp+98h+var_10]
mov [rsp+98h+var_90], rax
lea rdi, [rsp+98h+var_69]
mov [rsp+98h+var_88], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rsi, [rsp+98h+var_90]
mov rdx, [rsp+98h+var_88]
lea rdi, [rsp+98h+var_68]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_F8B1C:
lea rdi, [rsp+98h+var_48]
lea rsi, [rsp+98h+var_68]
call _ZN7testing2EqINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS_8internal9EqMatcherIT_EES9_; testing::Eq<std::string>(std::string)
jmp short $+2
loc_F8B2D:
lea rdi, [rsp+98h+var_28]
lea rsi, [rsp+98h+var_48]
call _ZN7testing7MatcherINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2INS_8internal9EqMatcherIS6_EEvEEOT_; testing::Matcher<std::string>::Matcher<testing::internal::EqMatcher<std::string>,void>(testing::internal::EqMatcher<std::string> &&)
jmp short $+2
loc_F8B3E:
mov rdi, [rsp+98h+var_98]
lea rsi, [rsp+98h+var_28]
call _ZN7testing7MatcherINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEaSEOS7_; testing::Matcher<std::string>::operator=(testing::Matcher<std::string>&&)
jmp short $+2
loc_F8B4E:
lea rdi, [rsp+98h+var_28]
call _ZN7testing7MatcherINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::Matcher<std::string>::~Matcher()
lea rdi, [rsp+98h+var_48]
call _ZN7testing8internal9EqMatcherINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::internal::EqMatcher<std::string>::~EqMatcher()
lea rdi, [rsp+98h+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+98h+var_69]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
add rsp, 98h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_18], rcx
mov [rsp+arg_14], eax
jmp short loc_F8BDA
mov rcx, rax
mov eax, edx
mov [rsp+arg_18], rcx
mov [rsp+arg_14], eax
jmp short loc_F8BD0
mov rcx, rax
mov eax, edx
mov [rsp+arg_18], rcx
mov [rsp+arg_14], eax
jmp short loc_F8BC6
mov rcx, rax
mov eax, edx
mov [rsp+arg_18], rcx
mov [rsp+arg_14], eax
lea rdi, [rsp+arg_68]
call _ZN7testing7MatcherINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::Matcher<std::string>::~Matcher()
loc_F8BC6:
lea rdi, [rsp+arg_48]
call _ZN7testing8internal9EqMatcherINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::internal::EqMatcher<std::string>::~EqMatcher()
loc_F8BD0:
lea rdi, [rsp+arg_28]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_F8BDA:
lea rdi, [rsp+arg_27]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
mov rdi, [rsp+0]
call _ZN7testing8internal11MatcherBaseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::internal::MatcherBase<std::string>::~MatcherBase()
mov rdi, [rsp+arg_18]
call __Unwind_Resume
| long long testing::Matcher<std::string>::Matcher(_QWORD *a1, long long a2)
{
long long v2; // rdx
long long v4; // [rsp+8h] [rbp-90h]
char v5; // [rsp+2Fh] [rbp-69h] BYREF
_BYTE v6[32]; // [rsp+30h] [rbp-68h] BYREF
_BYTE v7[32]; // [rsp+50h] [rbp-48h] BYREF
char v8[24]; // [rsp+70h] [rbp-28h] BYREF
long long v9; // [rsp+88h] [rbp-10h]
_QWORD *v10; // [rsp+90h] [rbp-8h]
v10 = a1;
v9 = a2;
testing::internal::MatcherBase<std::string>::MatcherBase();
*a1 = &`vtable for'testing::Matcher<std::string> + 2;
v4 = v9;
std::allocator<char>::allocator(&v5, a2, v2);
std::string::basic_string<std::allocator<char>>((long long)v6, v4, (long long)&v5);
testing::Eq<std::string>(v7, v6);
testing::Matcher<std::string>::Matcher<testing::internal::EqMatcher<std::string>,void>(v8, v7);
testing::Matcher<std::string>::operator=(a1, v8);
testing::Matcher<std::string>::~Matcher(v8);
testing::internal::EqMatcher<std::string>::~EqMatcher(v7);
std::string::~string(v6);
return std::allocator<char>::~allocator(&v5, v8);
}
| Matcher:
SUB RSP,0x98
MOV qword ptr [RSP + 0x90],RDI
MOV qword ptr [RSP + 0x88],RSI
MOV RDI,qword ptr [RSP + 0x90]
MOV qword ptr [RSP],RDI
CALL 0x002249c0
MOV RAX,qword ptr [RSP]
LEA RCX,[0x2cf418]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RSP + 0x88]
MOV qword ptr [RSP + 0x8],RAX
LEA RDI,[RSP + 0x2f]
MOV qword ptr [RSP + 0x10],RDI
CALL 0x00115de0
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_001f8b10:
LEA RDI,[RSP + 0x30]
CALL 0x0011bd40
JMP 0x001f8b1c
LAB_001f8b1c:
LEA RDI,[RSP + 0x50]
LEA RSI,[RSP + 0x30]
CALL 0x00224910
JMP 0x001f8b2d
LAB_001f8b2d:
LEA RDI,[RSP + 0x70]
LEA RSI,[RSP + 0x50]
CALL 0x00224a10
JMP 0x001f8b3e
LAB_001f8b3e:
MOV RDI,qword ptr [RSP]
LEA RSI,[RSP + 0x70]
CALL 0x00224a50
LAB_001f8b4c:
JMP 0x001f8b4e
LAB_001f8b4e:
LEA RDI,[RSP + 0x70]
CALL 0x00224a80
LEA RDI,[RSP + 0x50]
CALL 0x002249b0
LEA RDI,[RSP + 0x30]
CALL 0x0011c160
LEA RDI,[RSP + 0x2f]
CALL 0x001157f0
ADD RSP,0x98
RET
|
/* testing::Matcher<std::__cxx11::string >::Matcher(char const*) */
void __thiscall
testing::Matcher<std::__cxx11::string>::Matcher(Matcher<std::__cxx11::string> *this,char *param_1)
{
char *pcVar1;
allocator local_69;
string local_68 [32];
testing local_48 [32];
Matcher<std::__cxx11::string> local_28 [24];
char *local_10;
Matcher<std::__cxx11::string> *local_8;
local_10 = param_1;
local_8 = this;
internal::MatcherBase<std::__cxx11::string>::MatcherBase
((MatcherBase<std::__cxx11::string> *)this);
pcVar1 = local_10;
*(int ***)this = &PTR__Matcher_002cf428;
std::allocator<char>::allocator();
/* try { // try from 001f8b10 to 001f8b19 has its CatchHandler @ 001f8b7e */
std::__cxx11::string::string<std::allocator<char>>(local_68,pcVar1,&local_69);
/* try { // try from 001f8b1c to 001f8b2a has its CatchHandler @ 001f8b8e */
Eq<std::__cxx11::string>(local_48,local_68);
/* try { // try from 001f8b2d to 001f8b3b has its CatchHandler @ 001f8b9e */
Matcher<testing::internal::EqMatcher<std::__cxx11::string>,void>(local_28,local_48);
/* try { // try from 001f8b3e to 001f8b4b has its CatchHandler @ 001f8bae */
operator=(this,local_28);
~Matcher(local_28);
internal::EqMatcher<std::__cxx11::string>::~EqMatcher((EqMatcher<std::__cxx11::string> *)local_48)
;
std::__cxx11::string::~string(local_68);
std::allocator<char>::~allocator((allocator<char> *)&local_69);
return;
}
| |
49,701 | ma_net_write_buff | eloqsql/libmariadb/libmariadb/ma_net.c | static int ma_net_write_buff(NET *net,const char *packet, size_t len)
{
size_t left_length;
if (!len)
return 0;
if (net->max_packet > MAX_PACKET_LENGTH &&
net->compress)
left_length= (size_t)(MAX_PACKET_LENGTH - (net->write_pos - net->buff));
else
left_length=(size_t) (net->buff_end - net->write_pos);
if (len > left_length)
{
if (net->write_pos != net->buff)
{
memcpy((char*) net->write_pos,packet,left_length);
if (ma_net_real_write(net,(char*) net->buff,
(size_t)(net->write_pos - net->buff) + left_length))
return 1;
packet+=left_length;
len-=left_length;
net->write_pos= net->buff;
}
if (net->compress)
{
/* uncompressed length is stored in 3 bytes,so
packet can't be > 0xFFFFFF */
left_length= MAX_PACKET_LENGTH;
while (len > left_length)
{
if (ma_net_real_write(net, packet, left_length))
return 1;
packet+= left_length;
len-= left_length;
}
}
if (len > net->max_packet)
return(test(ma_net_real_write(net, packet, len)));
}
memcpy((char*) net->write_pos,packet,len);
net->write_pos+=len;
return 0;
} | O0 | c | ma_net_write_buff:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x4a747
movl $0x0, -0x4(%rbp)
jmp 0x4a8f7
movq -0x10(%rbp), %rax
cmpq $0xffffff, 0x50(%rax) # imm = 0xFFFFFF
jbe 0x4a786
movq -0x10(%rbp), %rax
movsbl 0x84(%rax), %eax
cmpl $0x0, %eax
je 0x4a786
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
subq %rax, %rcx
movl $0xffffff, %eax # imm = 0xFFFFFF
subq %rcx, %rax
movq %rax, -0x28(%rbp)
jmp 0x4a79d
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
subq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jbe 0x4a8cb
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x8(%rcx), %rax
je 0x4a836
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x18(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x13370
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
subq %rax, %rdx
addq -0x28(%rbp), %rdx
callq 0x4a250
cmpl $0x0, %eax
je 0x4a80b
movl $0x1, -0x4(%rbp)
jmp 0x4a8f7
movq -0x28(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x28(%rbp), %rcx
movq -0x20(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x84(%rax)
je 0x4a896
movq $0xffffff, -0x28(%rbp) # imm = 0xFFFFFF
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jbe 0x4a894
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x4a250
cmpl $0x0, %eax
je 0x4a877
movl $0x1, -0x4(%rbp)
jmp 0x4a8f7
movq -0x28(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x28(%rbp), %rcx
movq -0x20(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x20(%rbp)
jmp 0x4a84b
jmp 0x4a896
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x50(%rcx), %rax
jbe 0x4a8c9
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x4a250
movl %eax, %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x4a8f7
jmp 0x4a8cb
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x13370
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
addq 0x18(%rax), %rcx
movq %rcx, 0x18(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
| ma_net_write_buff:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
cmp [rbp+var_20], 0
jnz short loc_4A747
mov [rbp+var_4], 0
jmp loc_4A8F7
loc_4A747:
mov rax, [rbp+var_10]
cmp qword ptr [rax+50h], 0FFFFFFh
jbe short loc_4A786
mov rax, [rbp+var_10]
movsx eax, byte ptr [rax+84h]
cmp eax, 0
jz short loc_4A786
mov rax, [rbp+var_10]
mov rcx, [rax+18h]
mov rax, [rbp+var_10]
mov rax, [rax+8]
sub rcx, rax
mov eax, 0FFFFFFh
sub rax, rcx
mov [rbp+var_28], rax
jmp short loc_4A79D
loc_4A786:
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov rcx, [rbp+var_10]
mov rcx, [rcx+18h]
sub rax, rcx
mov [rbp+var_28], rax
loc_4A79D:
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jbe loc_4A8CB
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov rcx, [rbp+var_10]
cmp rax, [rcx+8]
jz short loc_4A836
mov rax, [rbp+var_10]
mov rdi, [rax+18h]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_28]
call _memcpy
mov rdi, [rbp+var_10]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
mov rax, [rbp+var_10]
mov rdx, [rax+18h]
mov rax, [rbp+var_10]
mov rax, [rax+8]
sub rdx, rax
add rdx, [rbp+var_28]
call ma_net_real_write
cmp eax, 0
jz short loc_4A80B
mov [rbp+var_4], 1
jmp loc_4A8F7
loc_4A80B:
mov rax, [rbp+var_28]
add rax, [rbp+var_18]
mov [rbp+var_18], rax
mov rcx, [rbp+var_28]
mov rax, [rbp+var_20]
sub rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rcx, [rax+8]
mov rax, [rbp+var_10]
mov [rax+18h], rcx
loc_4A836:
mov rax, [rbp+var_10]
cmp byte ptr [rax+84h], 0
jz short loc_4A896
mov [rbp+var_28], 0FFFFFFh
loc_4A84B:
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jbe short loc_4A894
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_28]
call ma_net_real_write
cmp eax, 0
jz short loc_4A877
mov [rbp+var_4], 1
jmp loc_4A8F7
loc_4A877:
mov rax, [rbp+var_28]
add rax, [rbp+var_18]
mov [rbp+var_18], rax
mov rcx, [rbp+var_28]
mov rax, [rbp+var_20]
sub rax, rcx
mov [rbp+var_20], rax
jmp short loc_4A84B
loc_4A894:
jmp short $+2
loc_4A896:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
cmp rax, [rcx+50h]
jbe short loc_4A8C9
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call ma_net_real_write
mov edx, eax
xor eax, eax
mov ecx, 1
cmp edx, 0
cmovnz eax, ecx
mov [rbp+var_4], eax
jmp short loc_4A8F7
loc_4A8C9:
jmp short $+2
loc_4A8CB:
mov rax, [rbp+var_10]
mov rdi, [rax+18h]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call _memcpy
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
add rcx, [rax+18h]
mov [rax+18h], rcx
mov [rbp+var_4], 0
loc_4A8F7:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| _BOOL8 ma_net_write_buff(long long a1, long long a2, unsigned long long a3)
{
unsigned long long v4; // [rsp+8h] [rbp-28h]
unsigned long long v5; // [rsp+10h] [rbp-20h]
long long v6; // [rsp+18h] [rbp-18h]
v6 = a2;
v5 = a3;
if ( a3 )
{
if ( *(_QWORD *)(a1 + 80) > 0xFFFFFFuLL && *(_BYTE *)(a1 + 132) )
v4 = 0xFFFFFFLL - (*(_QWORD *)(a1 + 24) - *(_QWORD *)(a1 + 8));
else
v4 = *(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 24);
if ( a3 > v4 )
{
if ( *(_QWORD *)(a1 + 24) != *(_QWORD *)(a1 + 8) )
{
memcpy(*(_QWORD *)(a1 + 24), a2, v4);
if ( (unsigned int)ma_net_real_write(
(_BYTE *)a1,
*(_QWORD *)(a1 + 8),
v4 + *(_QWORD *)(a1 + 24) - *(_QWORD *)(a1 + 8)) )
return 1;
v6 = a2 + v4;
v5 -= v4;
*(_QWORD *)(a1 + 24) = *(_QWORD *)(a1 + 8);
}
if ( *(_BYTE *)(a1 + 132) )
{
while ( v5 > 0xFFFFFF )
{
if ( (unsigned int)ma_net_real_write((_BYTE *)a1, v6, 0xFFFFFFLL) )
return 1;
v6 += 0xFFFFFFLL;
v5 -= 0xFFFFFFLL;
}
}
if ( v5 > *(_QWORD *)(a1 + 80) )
return ma_net_real_write((_BYTE *)a1, v6, v5) != 0;
}
memcpy(*(_QWORD *)(a1 + 24), v6, v5);
*(_QWORD *)(a1 + 24) += v5;
return 0;
}
return 0;
}
| ma_net_write_buff:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
CMP qword ptr [RBP + -0x20],0x0
JNZ 0x0014a747
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0014a8f7
LAB_0014a747:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x50],0xffffff
JBE 0x0014a786
MOV RAX,qword ptr [RBP + -0x10]
MOVSX EAX,byte ptr [RAX + 0x84]
CMP EAX,0x0
JZ 0x0014a786
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
SUB RCX,RAX
MOV EAX,0xffffff
SUB RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0014a79d
LAB_0014a786:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x18]
SUB RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
LAB_0014a79d:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x0014a8cb
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x8]
JZ 0x0014a836
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x18]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x00113370
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
SUB RDX,RAX
ADD RDX,qword ptr [RBP + -0x28]
CALL 0x0014a250
CMP EAX,0x0
JZ 0x0014a80b
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0014a8f7
LAB_0014a80b:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],RCX
LAB_0014a836:
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x84],0x0
JZ 0x0014a896
MOV qword ptr [RBP + -0x28],0xffffff
LAB_0014a84b:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x0014a894
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x0014a250
CMP EAX,0x0
JZ 0x0014a877
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0014a8f7
LAB_0014a877:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0014a84b
LAB_0014a894:
JMP 0x0014a896
LAB_0014a896:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x50]
JBE 0x0014a8c9
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x0014a250
MOV EDX,EAX
XOR EAX,EAX
MOV ECX,0x1
CMP EDX,0x0
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0014a8f7
LAB_0014a8c9:
JMP 0x0014a8cb
LAB_0014a8cb:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x18]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x00113370
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RAX + 0x18]
MOV qword ptr [RAX + 0x18],RCX
MOV dword ptr [RBP + -0x4],0x0
LAB_0014a8f7:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
bool ma_net_write_buff(long param_1,void *param_2,ulong param_3)
{
int iVar1;
ulong local_30;
ulong local_28;
void *local_20;
if (param_3 != 0) {
if ((*(ulong *)(param_1 + 0x50) < 0x1000000) || (*(char *)(param_1 + 0x84) == '\0')) {
local_30 = *(long *)(param_1 + 0x10) - *(long *)(param_1 + 0x18);
}
else {
local_30 = 0xffffff - (*(long *)(param_1 + 0x18) - *(long *)(param_1 + 8));
}
local_28 = param_3;
local_20 = param_2;
if (local_30 < param_3) {
if (*(long *)(param_1 + 0x18) != *(long *)(param_1 + 8)) {
memcpy(*(void **)(param_1 + 0x18),param_2,local_30);
iVar1 = ma_net_real_write(param_1,*(int8 *)(param_1 + 8),
(*(long *)(param_1 + 0x18) - *(long *)(param_1 + 8)) + local_30);
if (iVar1 != 0) {
return true;
}
local_20 = (void *)(local_30 + (long)param_2);
local_28 = param_3 - local_30;
*(int8 *)(param_1 + 0x18) = *(int8 *)(param_1 + 8);
}
if (*(char *)(param_1 + 0x84) != '\0') {
for (; 0xffffff < local_28; local_28 = local_28 - 0xffffff) {
iVar1 = ma_net_real_write(param_1,local_20,0xffffff);
if (iVar1 != 0) {
return true;
}
local_20 = (void *)((long)local_20 + 0xffffff);
}
}
if (*(ulong *)(param_1 + 0x50) < local_28) {
iVar1 = ma_net_real_write(param_1,local_20,local_28);
return iVar1 != 0;
}
}
memcpy(*(void **)(param_1 + 0x18),local_20,local_28);
*(ulong *)(param_1 + 0x18) = local_28 + *(long *)(param_1 + 0x18);
}
return false;
}
| |
49,702 | nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_object() | llama.cpp/common/json.hpp | bool end_object()
{
if (ref_stack.back())
{
if (!callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back()))
{
// discard object
*ref_stack.back() = discarded;
}
else
{
ref_stack.back()->set_parents();
}
}
JSON_ASSERT(!ref_stack.empty());
JSON_ASSERT(!keep_stack.empty());
ref_stack.pop_back();
keep_stack.pop_back();
if (!ref_stack.empty() && ref_stack.back() && ref_stack.back()->is_structured())
{
// remove discarded value
for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it)
{
if (it->is_discarded())
{
ref_stack.back()->erase(it);
break;
}
}
}
return true;
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_object():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rax
movq -0x8(%rax), %rcx
testq %rcx, %rcx
je 0xe9d80
subq 0x8(%rbx), %rax
shrq $0x3, %rax
decl %eax
movl %eax, 0x28(%rsp)
movb $0x1, 0x8(%rsp)
cmpq $0x0, 0x90(%rbx)
je 0xe9f2b
leaq 0x80(%rbx), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq *0x98(%rbx)
testb %al, %al
jne 0xe9d80
leaq 0xa8(%rbx), %rsi
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0xeacbe
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rdi
movq %r14, %rsi
callq 0xe8c42
movq %r14, %rdi
xorl %esi, %esi
callq 0xe6386
movq %r14, %rdi
callq 0xeb19e
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rax
cmpq %rax, %rcx
je 0xe9eee
movq 0x30(%rbx), %rdx
movl 0x38(%rbx), %esi
cmpq %rdx, 0x20(%rbx)
sete %dil
testl %esi, %esi
sete %r8b
andb %dil, %r8b
cmpb $0x1, %r8b
je 0xe9f0a
leaq -0x8(%rax), %rdi
movq %rdi, 0x10(%rbx)
subl $0x1, %esi
movl %esi, 0x38(%rbx)
jae 0xe9dd2
movl $0x3f, 0x38(%rbx)
addq $-0x8, %rdx
movq %rdx, 0x30(%rbx)
cmpq %rdi, %rcx
je 0xe9edd
movq -0x10(%rax), %rax
testq %rax, %rax
je 0xe9edd
movb (%rax), %cl
decb %cl
cmpb $0x1, %cl
ja 0xe9edd
movabsq $-0x8000000000000000, %r12 # imm = 0x8000000000000000
leaq 0x28(%rsp), %r14
movq %rax, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r14)
movq %r12, 0x18(%r14)
movq %r14, %rdi
callq 0xebbb8
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
leaq 0x8(%rsp), %r15
movq %rax, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r15)
movq %r12, 0x18(%r15)
movq %r15, %rdi
callq 0xebf0a
movq %r14, %rdi
movq %r15, %rsi
callq 0xebc2a
testb %al, %al
jne 0xe9edd
leaq 0x30(%rsp), %r13
leaq 0x10(%rsp), %rbp
leaq 0x28(%rsp), %r14
leaq 0x8(%rsp), %r15
movq %r14, %rdi
callq 0xead62
cmpb $0x9, (%rax)
je 0xe9ead
movq %r14, %rdi
callq 0xeb144
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq %rax, 0x8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rbp)
movq %r12, 0x20(%rsp)
movq %r15, %rdi
callq 0xebf0a
movq %r14, %rdi
movq %r15, %rsi
callq 0xebc2a
testb %al, %al
je 0xe9e66
jmp 0xe9edd
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rsi
movq 0x28(%rsp), %rax
leaq 0x58(%rsp), %rdx
movq %rax, (%rdx)
movups (%r13), %xmm0
movups %xmm0, 0x8(%rdx)
movq 0x10(%r13), %rax
movq %rax, 0x18(%rdx)
leaq 0x8(%rsp), %rdi
callq 0xeaeb2
movb $0x1, %al
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x9834f(%rip), %rdi # 0x182244
leaq 0x88f16(%rip), %rdx # 0x172e12
leaq 0x8c4a3(%rip), %rcx # 0x1763a6
movl $0x1bbd, %esi # imm = 0x1BBD
jmp 0xe9f24
leaq 0x98333(%rip), %rdi # 0x182244
leaq 0x88efa(%rip), %rdx # 0x172e12
leaq 0x8c40e(%rip), %rcx # 0x17632d
movl $0x1bbe, %esi # imm = 0x1BBE
xorl %eax, %eax
callq 0x26090
callq 0x265f0
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10end_objectEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov rbx, rdi
mov rax, [rdi+10h]
mov rcx, [rax-8]
test rcx, rcx
jz short loc_E9D80
sub rax, [rbx+8]
shr rax, 3
dec eax
mov dword ptr [rsp+0A8h+var_80], eax
mov byte ptr [rsp+0A8h+var_A0], 1
cmp qword ptr [rbx+90h], 0
jz loc_E9F2B
lea rdi, [rbx+80h]
lea rsi, [rsp+0A8h+var_80]
lea rdx, [rsp+0A8h+var_A0]
call qword ptr [rbx+98h]
test al, al
jnz short loc_E9D80
lea rsi, [rbx+0A8h]
lea r14, [rsp+0A8h+var_60]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov rax, [rbx+10h]
mov rdi, [rax-8]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_E9D80:
mov rcx, [rbx+8]
mov rax, [rbx+10h]
cmp rcx, rax
jz loc_E9EEE
mov rdx, [rbx+30h]
mov esi, [rbx+38h]
cmp [rbx+20h], rdx
setz dil
test esi, esi
setz r8b
and r8b, dil
cmp r8b, 1
jz loc_E9F0A
lea rdi, [rax-8]
mov [rbx+10h], rdi
sub esi, 1
mov [rbx+38h], esi
jnb short loc_E9DD2
mov dword ptr [rbx+38h], 3Fh ; '?'
add rdx, 0FFFFFFFFFFFFFFF8h
mov [rbx+30h], rdx
loc_E9DD2:
cmp rcx, rdi
jz loc_E9EDD
mov rax, [rax-10h]
test rax, rax
jz loc_E9EDD
mov cl, [rax]
dec cl
cmp cl, 1
ja loc_E9EDD
mov r12, 8000000000000000h
lea r14, [rsp+0A8h+var_80]
mov [r14], rax
xorps xmm0, xmm0
movups xmmword ptr [r14+8], xmm0
mov [r14+18h], r12
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9set_beginEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::set_begin(void)
mov rax, [rbx+10h]
mov rax, [rax-8]
lea r15, [rsp+0A8h+var_A0]
mov [r15], rax
xorps xmm0, xmm0
movups xmmword ptr [r15+8], xmm0
mov [r15+18h], r12
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE7set_endEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::set_end(void)
mov rdi, r14
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
test al, al
jnz loc_E9EDD
lea r13, [rsp+0A8h+var_78]
lea rbp, [rsp+0A8h+var_98]
lea r14, [rsp+0A8h+var_80]
lea r15, [rsp+0A8h+var_A0]
loc_E9E66:
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEptEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator->(void)
cmp byte ptr [rax], 9
jz short loc_E9EAD
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator++(void)
mov rax, [rbx+10h]
mov rax, [rax-8]
mov [rsp+0A8h+var_A0], rax
xorps xmm0, xmm0
movups xmmword ptr [rbp+0], xmm0
mov [rsp+0A8h+var_88], r12
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE7set_endEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::set_end(void)
mov rdi, r14
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
test al, al
jz short loc_E9E66
jmp short loc_E9EDD
loc_E9EAD:
mov rax, [rbx+10h]
mov rsi, [rax-8]
mov rax, [rsp+0A8h+var_80]
lea rdx, [rsp+0A8h+var_50]
mov [rdx], rax
movups xmm0, xmmword ptr [r13+0]
movups xmmword ptr [rdx+8], xmm0
mov rax, [r13+10h]
mov [rdx+18h], rax
lea rdi, [rsp+0A8h+var_A0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_
loc_E9EDD:
mov al, 1
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_E9EEE:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRefStackEmpty; "!ref_stack.empty()"
mov esi, 1BBDh
jmp short loc_E9F24
loc_E9F0A:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeepStackEmpty; "!keep_stack.empty()"
mov esi, 1BBEh
loc_E9F24:
xor eax, eax
call _ggml_abort
loc_E9F2B:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
| char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::end_object(
long long a1)
{
long long v1; // rax
long long v2; // rcx
long long v3; // rax
long long v4; // rdx
int v5; // esi
_BYTE *v6; // rax
long long v7; // rsi
long long v9; // [rsp+8h] [rbp-A0h] BYREF
__int128 v10; // [rsp+10h] [rbp-98h]
unsigned long long v11; // [rsp+20h] [rbp-88h]
_BYTE *v12; // [rsp+28h] [rbp-80h] BYREF
__int128 v13; // [rsp+30h] [rbp-78h]
unsigned long long v14; // [rsp+40h] [rbp-68h]
char v15[16]; // [rsp+48h] [rbp-60h] BYREF
_BYTE *v16; // [rsp+58h] [rbp-50h]
__int128 v17; // [rsp+60h] [rbp-48h]
unsigned long long v18; // [rsp+70h] [rbp-38h]
v1 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(v1 - 8) )
{
LODWORD(v12) = ((unsigned long long)(v1 - *(_QWORD *)(a1 + 8)) >> 3) - 1;
LOBYTE(v9) = 1;
if ( !*(_QWORD *)(a1 + 144) )
goto LABEL_20;
if ( !(*(unsigned __int8 ( **)(long long, _BYTE **, long long *))(a1 + 152))(a1 + 128, &v12, &v9) )
{
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v15,
a1 + 168);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL),
(long long)v15);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v15);
nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v15);
}
}
v2 = *(_QWORD *)(a1 + 8);
v3 = *(_QWORD *)(a1 + 16);
if ( v2 == v3 )
{
ggml_abort(
"/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",
7101LL,
"GGML_ASSERT(%s) failed",
"!ref_stack.empty()");
goto LABEL_20;
}
v4 = *(_QWORD *)(a1 + 48);
v5 = *(_DWORD *)(a1 + 56);
if ( *(_QWORD *)(a1 + 32) == v4 && v5 == 0 )
{
ggml_abort(
"/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",
7102LL,
"GGML_ASSERT(%s) failed",
"!keep_stack.empty()");
LABEL_20:
std::__throw_bad_function_call();
}
*(_QWORD *)(a1 + 16) = v3 - 8;
*(_DWORD *)(a1 + 56) = v5 - 1;
if ( !v5 )
{
*(_DWORD *)(a1 + 56) = 63;
*(_QWORD *)(a1 + 48) = v4 - 8;
}
if ( v2 != v3 - 8 )
{
v6 = *(_BYTE **)(v3 - 16);
if ( v6 )
{
if ( (unsigned __int8)(*v6 - 1) <= 1u )
{
v12 = v6;
v13 = 0LL;
v14 = 0x8000000000000000LL;
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::set_begin(&v12);
v9 = *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL);
v10 = 0LL;
v11 = 0x8000000000000000LL;
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::set_end(&v9);
if ( !(unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_(
&v12,
&v9) )
{
while ( *(_BYTE *)nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::operator->(&v12) != 9 )
{
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::operator++(&v12);
v9 = *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL);
v10 = 0LL;
v11 = 0x8000000000000000LL;
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::set_end(&v9);
if ( (unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_(
&v12,
&v9) )
return 1;
}
v7 = *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL);
v16 = v12;
v17 = v13;
v18 = v14;
ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_(
&v9,
v7);
}
}
}
}
return 1;
}
| end_object:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x10]
MOV RCX,qword ptr [RAX + -0x8]
TEST RCX,RCX
JZ 0x001e9d80
SUB RAX,qword ptr [RBX + 0x8]
SHR RAX,0x3
DEC EAX
MOV dword ptr [RSP + 0x28],EAX
MOV byte ptr [RSP + 0x8],0x1
CMP qword ptr [RBX + 0x90],0x0
JZ 0x001e9f2b
LEA RDI,[RBX + 0x80]
LEA RSI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
CALL qword ptr [RBX + 0x98]
TEST AL,AL
JNZ 0x001e9d80
LEA RSI,[RBX + 0xa8]
LEA R14,[RSP + 0x48]
MOV RDI,R14
CALL 0x001eacbe
MOV RAX,qword ptr [RBX + 0x10]
MOV RDI,qword ptr [RAX + -0x8]
MOV RSI,R14
CALL 0x001e8c42
MOV RDI,R14
XOR ESI,ESI
CALL 0x001e6386
MOV RDI,R14
CALL 0x001eb19e
LAB_001e9d80:
MOV RCX,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RBX + 0x10]
CMP RCX,RAX
JZ 0x001e9eee
MOV RDX,qword ptr [RBX + 0x30]
MOV ESI,dword ptr [RBX + 0x38]
CMP qword ptr [RBX + 0x20],RDX
SETZ DIL
TEST ESI,ESI
SETZ R8B
AND R8B,DIL
CMP R8B,0x1
JZ 0x001e9f0a
LEA RDI,[RAX + -0x8]
MOV qword ptr [RBX + 0x10],RDI
SUB ESI,0x1
MOV dword ptr [RBX + 0x38],ESI
JNC 0x001e9dd2
MOV dword ptr [RBX + 0x38],0x3f
ADD RDX,-0x8
MOV qword ptr [RBX + 0x30],RDX
LAB_001e9dd2:
CMP RCX,RDI
JZ 0x001e9edd
MOV RAX,qword ptr [RAX + -0x10]
TEST RAX,RAX
JZ 0x001e9edd
MOV CL,byte ptr [RAX]
DEC CL
CMP CL,0x1
JA 0x001e9edd
MOV R12,-0x8000000000000000
LEA R14,[RSP + 0x28]
MOV qword ptr [R14],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14 + 0x8],XMM0
MOV qword ptr [R14 + 0x18],R12
MOV RDI,R14
CALL 0x001ebbb8
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
LEA R15,[RSP + 0x8]
MOV qword ptr [R15],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R15 + 0x8],XMM0
MOV qword ptr [R15 + 0x18],R12
MOV RDI,R15
CALL 0x001ebf0a
MOV RDI,R14
MOV RSI,R15
CALL 0x001ebc2a
TEST AL,AL
JNZ 0x001e9edd
LEA R13,[RSP + 0x30]
LEA RBP,[RSP + 0x10]
LEA R14,[RSP + 0x28]
LEA R15,[RSP + 0x8]
LAB_001e9e66:
MOV RDI,R14
CALL 0x001ead62
CMP byte ptr [RAX],0x9
JZ 0x001e9ead
MOV RDI,R14
CALL 0x001eb144
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
MOV qword ptr [RSP + 0x8],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBP],XMM0
MOV qword ptr [RSP + 0x20],R12
MOV RDI,R15
CALL 0x001ebf0a
MOV RDI,R14
MOV RSI,R15
CALL 0x001ebc2a
TEST AL,AL
JZ 0x001e9e66
JMP 0x001e9edd
LAB_001e9ead:
MOV RAX,qword ptr [RBX + 0x10]
MOV RSI,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RSP + 0x28]
LEA RDX,[RSP + 0x58]
MOV qword ptr [RDX],RAX
MOVUPS XMM0,xmmword ptr [R13]
MOVUPS xmmword ptr [RDX + 0x8],XMM0
MOV RAX,qword ptr [R13 + 0x10]
MOV qword ptr [RDX + 0x18],RAX
LEA RDI,[RSP + 0x8]
CALL 0x001eaeb2
LAB_001e9edd:
MOV AL,0x1
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001e9eee:
LEA RDI,[0x282244]
LEA RDX,[0x272e12]
LEA RCX,[0x2763a6]
MOV ESI,0x1bbd
JMP 0x001e9f24
LAB_001e9f0a:
LEA RDI,[0x282244]
LEA RDX,[0x272e12]
LEA RCX,[0x27632d]
MOV ESI,0x1bbe
LAB_001e9f24:
XOR EAX,EAX
CALL 0x00126090
LAB_001e9f2b:
CALL 0x001265f0
|
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::end_object() */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::end_object(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this)
{
int iVar1;
long lVar2;
char cVar3;
char *pcVar4;
int8 uVar5;
int8 local_a0;
int8 local_98;
int8 uStack_90;
int8 local_88;
char *local_80;
int8 local_78;
int8 uStack_70;
int8 local_68;
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_60 [16];
char *local_50;
int4 local_48;
int4 uStack_44;
int4 uStack_40;
int4 uStack_3c;
int8 local_38;
if (*(long *)(*(long *)(this + 0x10) + -8) != 0) {
local_80 = (char *)CONCAT44(local_80._4_4_,
(int)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3) +
-1);
local_a0 = CONCAT71(local_a0._1_7_,1);
if (*(long *)(this + 0x90) == 0) {
/* WARNING: Subroutine does not return */
std::__throw_bad_function_call();
}
cVar3 = (**(code **)(this + 0x98))(this + 0x80,&local_80,&local_a0);
if (cVar3 == '\0') {
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_60,(basic_json *)(this + 0xa8));
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(*(long *)(this + 0x10) + -8),local_60);
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_60,0));
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)local_60);
}
}
lVar2 = *(long *)(this + 0x10);
if (*(long *)(this + 8) == lVar2) {
pcVar4 = "!ref_stack.empty()";
uVar5 = 0x1bbd;
}
else {
iVar1 = *(int *)(this + 0x38);
if (iVar1 != 0 || *(long *)(this + 0x20) != *(long *)(this + 0x30)) {
*(long *)(this + 0x10) = lVar2 + -8;
*(int *)(this + 0x38) = iVar1 + -1;
if (iVar1 == 0) {
*(int4 *)(this + 0x38) = 0x3f;
*(long *)(this + 0x30) = *(long *)(this + 0x30) + -8;
}
if (((*(long *)(this + 8) != lVar2 + -8) &&
(local_80 = *(char **)(lVar2 + -0x10), local_80 != (char *)0x0)) &&
((byte)(*local_80 - 1U) < 2)) {
local_78 = 0;
uStack_70 = 0;
local_68 = 0x8000000000000000;
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::set_begin((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_80);
local_a0 = *(int8 *)(*(long *)(this + 0x10) + -8);
local_98 = 0;
uStack_90 = 0;
local_88 = 0x8000000000000000;
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::set_end((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_a0);
cVar3 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_80,
(iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_a0);
if (cVar3 == '\0') {
do {
pcVar4 = (char *)iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::operator->((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_80);
if (*pcVar4 == '\t') {
local_50 = local_80;
local_48 = (int4)local_78;
uStack_44 = local_78._4_4_;
uStack_40 = (int4)uStack_70;
uStack_3c = uStack_70._4_4_;
local_38 = local_68;
_ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_
(&local_a0,*(int8 *)(*(long *)(this + 0x10) + -8));
return 1;
}
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::operator++((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_80);
local_a0 = *(int8 *)(*(long *)(this + 0x10) + -8);
local_98 = 0;
uStack_90 = 0;
local_88 = 0x8000000000000000;
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::set_end((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_a0);
cVar3 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_80,
(iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_a0);
} while (cVar3 == '\0');
}
}
return 1;
}
pcVar4 = "!keep_stack.empty()";
uVar5 = 0x1bbe;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",uVar5,
"GGML_ASSERT(%s) failed",pcVar4);
}
| |
49,703 | nglog::(anonymous namespace)::LogFileObject::FlushUnlocked(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>> const&) | ng-log[P]ng-log/src/logging.cc | void LogFileObject::FlushUnlocked(
const std::chrono::system_clock::time_point& now) {
if (file_ != nullptr) {
fflush(file_.get());
bytes_since_flush_ = 0;
}
// Figure out when we are due for another flush.
next_flush_time_ =
now + std::chrono::duration_cast<std::chrono::system_clock::duration>(
std::chrono::duration<int32>{FLAGS_logbufsecs});
} | O0 | cpp | nglog::(anonymous namespace)::LogFileObject::FlushUnlocked(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>> const&):
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x30(%rbp)
addq $0x98, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x1bc70
testb $0x1, %al
jne 0x1746e
jmp 0x17494
movq -0x30(%rbp), %rdi
addq $0x98, %rdi
callq 0x1b8c0
movq %rax, %rdi
callq 0x9870
movq -0x30(%rbp), %rax
movl $0x0, 0xa4(%rax)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
leaq -0x24(%rbp), %rdi
leaq 0x5b8d1(%rip), %rsi # 0x72d78
callq 0x1bb20
leaq -0x24(%rbp), %rdi
callq 0x1bcf0
movq -0x38(%rbp), %rdi
movq %rax, -0x20(%rbp)
leaq -0x20(%rbp), %rsi
callq 0x1bca0
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, -0x18(%rbp)
movq -0x18(%rbp), %rcx
movq %rcx, 0xb8(%rax)
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZN5nglog12_GLOBAL__N_113LogFileObject13FlushUnlockedERKNSt6chrono10time_pointINS2_3_V212system_clockENS2_8durationIlSt5ratioILl1ELl1000000000EEEEEE:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]
mov [rbp+var_30], rdi
add rdi, 98h
xor eax, eax
mov esi, eax
call _ZStneI8_IO_FILESt14default_deleteIS0_EEbRKSt10unique_ptrIT_T0_EDn; std::operator!=<_IO_FILE,std::default_delete<_IO_FILE>>(std::unique_ptr<_IO_FILE> const&,decltype(nullptr))
test al, 1
jnz short loc_1746E
jmp short loc_17494
loc_1746E:
mov rdi, [rbp+var_30]
add rdi, 98h
call _ZNKSt10unique_ptrI8_IO_FILESt14default_deleteIS0_EE3getEv; std::unique_ptr<_IO_FILE>::get(void)
mov rdi, rax
call _fflush
mov rax, [rbp+var_30]
mov dword ptr [rax+0A4h], 0
loc_17494:
mov rax, [rbp+var_10]
mov [rbp+var_38], rax
lea rdi, [rbp+var_24]
lea rsi, _ZN3fLI16FLAGS_logbufsecsE; fLI::FLAGS_logbufsecs
call _ZNSt6chrono8durationIiSt5ratioILl1ELl1EEEC2IivEERKT_; std::chrono::duration<int,std::ratio<1l,1l>>::duration<int,void>(int const&)
lea rdi, [rbp+var_24]
call _ZNSt6chrono13duration_castINS_8durationIlSt5ratioILl1ELl1000000000EEEEiS2_ILl1ELl1EEEENSt9enable_ifIXsr13__is_durationIT_EE5valueES7_E4typeERKNS1_IT0_T1_EE
mov rdi, [rbp+var_38]
mov [rbp+var_20], rax
lea rsi, [rbp+var_20]
call _ZNSt6chronoplINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEElS5_EENS_10time_pointIT_NSt11common_typeIJT0_NS3_IT1_T2_EEEE4typeEEERKNS7_IS8_SA_EERKSD_; std::chrono::operator+<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>,long,std::ratio<1l,1000000000l>>(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> const&,std::chrono::duration<long,std::ratio<1l,1000000000l>> const&)
mov rcx, rax
mov rax, [rbp+var_30]
mov [rbp+var_18], rcx
mov rcx, [rbp+var_18]
mov [rax+0B8h], rcx
add rsp, 40h
pop rbp
retn
| long long nglog::`anonymous namespace'::LogFileObject::FlushUnlocked(long long a1, long long a2)
{
long long v2; // rax
long long v3; // rcx
long long result; // rax
long long v5; // [rsp+8h] [rbp-38h]
_BYTE v6[4]; // [rsp+1Ch] [rbp-24h] BYREF
long long v7; // [rsp+20h] [rbp-20h] BYREF
long long v8; // [rsp+30h] [rbp-10h]
long long v9; // [rsp+38h] [rbp-8h]
v9 = a1;
v8 = a2;
if ( (std::operator!=<_IO_FILE,std::default_delete<_IO_FILE>>(a1 + 152, 0LL) & 1) != 0 )
{
v2 = std::unique_ptr<_IO_FILE>::get(a1 + 152);
fflush(v2);
*(_DWORD *)(a1 + 164) = 0;
}
v5 = v8;
std::chrono::duration<int,std::ratio<1l,1l>>::duration<int,void>(v6, &fLI::FLAGS_logbufsecs);
v7 = std::chrono::duration_cast<std::chrono::duration<long,std::ratio<1l,1000000000l>>,int,std::ratio<1l,1l>>(v6);
v3 = std::chrono::operator+<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>,long,std::ratio<1l,1000000000l>>(
v5,
&v7);
result = a1;
*(_QWORD *)(a1 + 184) = v3;
return result;
}
| FlushUnlocked:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x30],RDI
ADD RDI,0x98
XOR EAX,EAX
MOV ESI,EAX
CALL 0x0011bc70
TEST AL,0x1
JNZ 0x0011746e
JMP 0x00117494
LAB_0011746e:
MOV RDI,qword ptr [RBP + -0x30]
ADD RDI,0x98
CALL 0x0011b8c0
MOV RDI,RAX
CALL 0x00109870
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0xa4],0x0
LAB_00117494:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x38],RAX
LEA RDI,[RBP + -0x24]
LEA RSI,[0x172d78]
CALL 0x0011bb20
LEA RDI,[RBP + -0x24]
CALL 0x0011bcf0
MOV RDI,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x20],RAX
LEA RSI,[RBP + -0x20]
CALL 0x0011bca0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x18],RCX
MOV RCX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0xb8],RCX
ADD RSP,0x40
POP RBP
RET
|
/* nglog::(anonymous
namespace)::LogFileObject::FlushUnlocked(std::chrono::time_point<std::chrono::_V2::system_clock,
std::chrono::duration<long, std::ratio<1l, 1000000000l> > > const&) */
void __thiscall
nglog::(anonymous_namespace)::LogFileObject::FlushUnlocked(LogFileObject *this,time_point *param_1)
{
time_point *ptVar1;
bool bVar2;
FILE *__stream;
int8 uVar3;
duration<int,std::ratio<1l,1l>> local_2c [4];
int8 local_28 [2];
time_point *local_18;
LogFileObject *local_10;
local_18 = param_1;
local_10 = this;
bVar2 = std::operator!=((unique_ptr *)(this + 0x98),(_func_decltype_nullptr *)0x0);
if (bVar2) {
__stream = (FILE *)std::unique_ptr<_IO_FILE,std::default_delete<_IO_FILE>>::get
((unique_ptr<_IO_FILE,std::default_delete<_IO_FILE>> *)
(this + 0x98));
fflush(__stream);
*(int4 *)(this + 0xa4) = 0;
}
ptVar1 = local_18;
std::chrono::duration<int,std::ratio<1l,1l>>::duration<int,void>(local_2c,&fLI::FLAGS_logbufsecs);
local_28[0] = std::chrono::
duration_cast<std::chrono::duration<long,std::ratio<1l,1000000000l>>,int,std::ratio<1l,1l>>
((duration *)local_2c);
uVar3 = std::chrono::operator+(ptVar1,(duration *)local_28);
*(int8 *)(this + 0xb8) = uVar3;
return;
}
| |
49,704 | 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>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t) | monkey531[P]llama/common/json.hpp | void destroy(value_t t)
{
if (
(t == value_t::object && object == nullptr) ||
(t == value_t::array && array == nullptr) ||
(t == value_t::string && string == nullptr) ||
(t == value_t::binary && binary == nullptr)
)
{
//not initialized (e.g. due to exception in the ctor)
return;
}
if (t == value_t::array || t == value_t::object)
{
// flatten the current json_value to a heap-allocated stack
std::vector<basic_json> stack;
// move the top-level items to stack
if (t == value_t::array)
{
stack.reserve(array->size());
std::move(array->begin(), array->end(), std::back_inserter(stack));
}
else
{
stack.reserve(object->size());
for (auto&& it : *object)
{
stack.push_back(std::move(it.second));
}
}
while (!stack.empty())
{
// move the last item to local variable to be processed
basic_json current_item(std::move(stack.back()));
stack.pop_back();
// if current_item is array/object, move
// its children to the stack to be processed later
if (current_item.is_array())
{
std::move(current_item.m_data.m_value.array->begin(), current_item.m_data.m_value.array->end(), std::back_inserter(stack));
current_item.m_data.m_value.array->clear();
}
else if (current_item.is_object())
{
for (auto&& it : *current_item.m_data.m_value.object)
{
stack.push_back(std::move(it.second));
}
current_item.m_data.m_value.object->clear();
}
// it's now safe that current_item get destructed
// since it doesn't have any children
}
}
switch (t)
{
case value_t::object:
{
AllocatorType<object_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, object);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, object, 1);
break;
}
case value_t::array:
{
AllocatorType<array_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, array);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, array, 1);
break;
}
case value_t::string:
{
AllocatorType<string_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, string);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, string, 1);
break;
}
case value_t::binary:
{
AllocatorType<binary_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, binary);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, binary, 1);
break;
}
case value_t::null:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::discarded:
default:
{
break;
}
}
} | O1 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
cmpl $0x1, %esi
sete %cl
movq (%rdi), %rax
testq %rax, %rax
sete %dl
testb %dl, %cl
jne 0x5d8be
movl %esi, %r14d
testq %rax, %rax
sete %cl
movl %r14d, %edx
andb $-0x2, %dl
cmpb $0x2, %dl
sete %dl
cmpb $0x8, %r14b
sete %sil
orb %dl, %sil
testb %cl, %sil
jne 0x5d8be
movq %rdi, %rbx
leal -0x1(%r14), %ecx
cmpb $0x1, %cl
ja 0x5d83e
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x8(%rax), %rsi
subq (%rax), %rsi
sarq $0x4, %rsi
cmpb $0x2, %r14b
jne 0x5d6ed
movq %rsp, %rdi
callq 0x5d902
movq (%rbx), %rax
movq (%rax), %r15
movq 0x8(%rax), %r13
subq %r15, %r13
sarq $0x4, %r13
testq %r13, %r13
jle 0x5d72e
incq %r13
movq %rsp, %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x5c7a0
addq $0x10, %r15
decq %r13
cmpq $0x1, %r13
jg 0x5d6d3
jmp 0x5d72e
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rax
movq %rsp, %rdi
movq %rax, %rsi
callq 0x5d902
movq (%rbx), %rax
movq (%rax), %r12
movq 0x8(%rax), %r13
cmpq %r13, %r12
je 0x5d72e
movq %rsp, %r15
leaq 0x20(%r12), %rsi
movq %r15, %rdi
callq 0x5c7a0
addq $0x30, %r12
cmpq %r13, %r12
jne 0x5d718
movq 0x8(%rsp), %r13
cmpq %r13, (%rsp)
je 0x5d836
leaq 0x20(%rsp), %r15
movq %rsp, %r12
leaq -0x10(%r13), %rdi
movups -0x10(%r13), %xmm0
movaps %xmm0, 0x20(%rsp)
xorl %esi, %esi
callq 0x5796e
movb $0x0, -0x10(%r13)
movq $0x0, -0x8(%r13)
movq %r15, %rdi
movl $0x1, %esi
callq 0x5796e
movq 0x8(%rsp), %r13
addq $-0x10, %r13
movq %r13, 0x8(%rsp)
movq %r13, %rdi
xorl %esi, %esi
callq 0x5796e
movq %r13, %rdi
callq 0x5d15a
movzbl 0x20(%rsp), %eax
cmpl $0x1, %eax
je 0x5d7e5
cmpl $0x2, %eax
jne 0x5d815
movq 0x28(%rsp), %rax
movq (%rax), %r13
movq 0x8(%rax), %rbp
subq %r13, %rbp
sarq $0x4, %rbp
testq %rbp, %rbp
jle 0x5d7d6
incq %rbp
movq %r12, %rdi
movq %r13, %rsi
callq 0x5c7a0
addq $0x10, %r13
decq %rbp
cmpq $0x1, %rbp
jg 0x5d7be
movq 0x28(%rsp), %rdi
movq (%rdi), %rsi
callq 0x5d9e2
jmp 0x5d815
movq 0x28(%rsp), %rax
movq (%rax), %r13
movq 0x8(%rax), %rbp
cmpq %rbp, %r13
je 0x5d808
leaq 0x20(%r13), %rsi
movq %r12, %rdi
callq 0x5c7a0
addq $0x30, %r13
jmp 0x5d7f1
movq 0x28(%rsp), %rdi
movq (%rdi), %rsi
callq 0x5da28
movq %r15, %rdi
xorl %esi, %esi
callq 0x5796e
movq %r15, %rdi
callq 0x5d15a
movq 0x8(%rsp), %r13
cmpq %r13, (%rsp)
jne 0x5d745
movq %rsp, %rdi
callq 0x5d996
movzbl %r14b, %eax
decl %eax
cmpl $0x7, %eax
ja 0x5d8be
leaq 0x8a308(%rip), %rcx # 0xe7b58
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rbx), %rdi
callq 0x5dae2
movl $0x20, %r14d
jmp 0x5d8b3
movq (%rbx), %rax
movq (%rax), %rdi
addq $0x10, %rax
movl $0x20, %r14d
cmpq %rax, %rdi
je 0x5d8b3
movq (%rax), %rsi
incq %rsi
jmp 0x5d8ae
movq (%rbx), %rdi
callq 0x5d996
movl $0x18, %r14d
jmp 0x5d8b3
movq (%rbx), %rax
movq (%rax), %rdi
movl $0x28, %r14d
testq %rdi, %rdi
je 0x5d8b3
movq 0x10(%rax), %rsi
subq %rdi, %rsi
callq 0x1a8b0
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x1a8b0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5d8d1
jmp 0x5d8d1
movq %rax, %rbx
jmp 0x5d8f2
jmp 0x5d8d8
movq %rax, %rbx
leaq 0x20(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x5796e
movq %r14, %rdi
callq 0x5d15a
movq %rsp, %rdi
callq 0x5d996
movq %rbx, %rdi
callq 0x1af70
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_value7destroyENS0_6detail7value_tE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
cmp esi, 1
setz cl
mov rax, [rdi]
test rax, rax
setz dl
test cl, dl
jnz def_5D857; jumptable 000000000005D857 default case, cases 4-7
mov r14d, esi
test rax, rax
setz cl
mov edx, r14d
and dl, 0FEh
cmp dl, 2
setz dl
cmp r14b, 8
setz sil
or sil, dl
test sil, cl
jnz def_5D857; jumptable 000000000005D857 default case, cases 4-7
mov rbx, rdi
lea ecx, [r14-1]
cmp cl, 1
ja loc_5D83E
xorps xmm0, xmm0
movaps [rsp+68h+var_68], xmm0
mov [rsp+68h+var_58], 0
mov rsi, [rax+8]
sub rsi, [rax]
sar rsi, 4
cmp r14b, 2
jnz short loc_5D6ED
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::reserve(ulong)
mov rax, [rbx]
mov r15, [rax]
mov r13, [rax+8]
sub r13, r15
sar r13, 4
test r13, r13
jle short loc_5D72E
inc r13
mov r12, rsp
loc_5D6D3:
mov rdi, r12
mov rsi, r15
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
add r15, 10h
dec r13
cmp r13, 1
jg short loc_5D6D3
jmp short loc_5D72E
loc_5D6ED:
mov rax, 0AAAAAAAAAAAAAAABh
imul rax, rsi
mov rdi, rsp
mov rsi, rax
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::reserve(ulong)
mov rax, [rbx]
mov r12, [rax]
mov r13, [rax+8]
cmp r12, r13
jz short loc_5D72E
mov r15, rsp
loc_5D718:
lea rsi, [r12+20h]
mov rdi, r15
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
add r12, 30h ; '0'
cmp r12, r13
jnz short loc_5D718
loc_5D72E:
mov r13, qword ptr [rsp+68h+var_68+8]
cmp qword ptr [rsp+68h+var_68], r13
jz loc_5D836
lea r15, [rsp+68h+var_48]
mov r12, rsp
loc_5D745:
lea rdi, [r13-10h]
movups xmm0, xmmword ptr [r13-10h]
movaps [rsp+68h+var_48], xmm0
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov byte ptr [r13-10h], 0
mov qword ptr [r13-8], 0
mov rdi, r15
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov r13, qword ptr [rsp+68h+var_68+8]
add r13, 0FFFFFFFFFFFFFFF0h
mov qword ptr [rsp+68h+var_68+8], r13
mov rdi, r13
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r13
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
movzx eax, byte ptr [rsp+68h+var_48]
cmp eax, 1
jz short loc_5D7E5
cmp eax, 2
jnz short loc_5D815
mov rax, qword ptr [rsp+68h+var_48+8]
mov r13, [rax]
mov rbp, [rax+8]
sub rbp, r13
sar rbp, 4
test rbp, rbp
jle short loc_5D7D6
inc rbp
loc_5D7BE:
mov rdi, r12
mov rsi, r13
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
add r13, 10h
dec rbp
cmp rbp, 1
jg short loc_5D7BE
loc_5D7D6:
mov rdi, qword ptr [rsp+68h+var_48+8]
mov rsi, [rdi]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE15_M_erase_at_endEPSD_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::_M_erase_at_end(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>*)
jmp short loc_5D815
loc_5D7E5:
mov rax, qword ptr [rsp+68h+var_48+8]
mov r13, [rax]
mov rbp, [rax+8]
loc_5D7F1:
cmp r13, rbp
jz short loc_5D808
lea rsi, [r13+20h]
mov rdi, r12
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
add r13, 30h ; '0'
jmp short loc_5D7F1
loc_5D808:
mov rdi, qword ptr [rsp+68h+var_48+8]
mov rsi, [rdi]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE15_M_erase_at_endEPSG_; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::_M_erase_at_end(std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>*)
loc_5D815:
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov r13, qword ptr [rsp+68h+var_68+8]
cmp qword ptr [rsp+68h+var_68], r13
jnz loc_5D745
loc_5D836:
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
loc_5D83E:
movzx eax, r14b
dec eax; switch 8 cases
cmp eax, 7
ja short def_5D857; jumptable 000000000005D857 default case, cases 4-7
lea rcx, jpt_5D857
movsxd rax, ds:(jpt_5D857 - 0E7B58h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_5D859:
mov rdi, [rbx]; jumptable 000000000005D857 case 1
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EED2Ev; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::~vector()
mov r14d, 20h ; ' '
jmp short loc_5D8B3
loc_5D869:
mov rax, [rbx]; jumptable 000000000005D857 case 3
mov rdi, [rax]
add rax, 10h
mov r14d, 20h ; ' '
cmp rdi, rax
jz short loc_5D8B3
mov rsi, [rax]
inc rsi
jmp short loc_5D8AE
loc_5D886:
mov rdi, [rbx]; jumptable 000000000005D857 case 2
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
mov r14d, 18h
jmp short loc_5D8B3
loc_5D896:
mov rax, [rbx]; jumptable 000000000005D857 case 8
mov rdi, [rax]; void *
mov r14d, 28h ; '('
test rdi, rdi
jz short loc_5D8B3
mov rsi, [rax+10h]
sub rsi, rdi; unsigned __int64
loc_5D8AE:
call __ZdlPvm; operator delete(void *,ulong)
loc_5D8B3:
mov rdi, [rbx]; void *
mov rsi, r14; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
def_5D857:
add rsp, 38h; jumptable 000000000005D857 default case, cases 4-7
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_5D8D1
jmp short $+2
loc_5D8D1:
mov rbx, rax
jmp short loc_5D8F2
jmp short $+2
loc_5D8D8:
mov rbx, rax
lea r14, [rsp+arg_18]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_5D8F2:
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
mov rdi, rbx
call __Unwind_Resume
| void nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::json_value::destroy(
long long **a1,
int a2)
{
long long *v2; // rax
char v3; // r14
long long v5; // rsi
long long v6; // r15
long long v7; // r13
long long v8; // r13
long long v9; // r12
long long i; // r13
long long j; // r13
char *v12; // r13
long long v13; // r13
long long v14; // rbp
long long v15; // rbp
long long v16; // r13
long long v17; // rbp
unsigned long long v18; // r14
_BYTE *v19; // rdi
_QWORD *v20; // rax
unsigned long long v21; // rsi
void **v22; // rax
__int128 v23; // [rsp+0h] [rbp-68h] BYREF
long long v24; // [rsp+10h] [rbp-58h]
_OWORD v25[4]; // [rsp+20h] [rbp-48h] BYREF
v2 = *a1;
if ( *a1 != 0LL || a2 != 1 )
{
v3 = a2;
if ( v2 != 0LL || (a2 & 0xFE) != 2 && (_BYTE)a2 != 8 )
{
if ( (unsigned __int8)(a2 - 1) <= 1u )
{
v23 = 0LL;
v24 = 0LL;
v5 = (v2[1] - *v2) >> 4;
if ( v3 == 2 )
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::reserve(
&v23,
v5);
v6 = **a1;
v7 = ((*a1)[1] - v6) >> 4;
if ( v7 > 0 )
{
v8 = v7 + 1;
do
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(long long)&v23,
v6);
v6 += 16LL;
--v8;
}
while ( v8 > 1 );
}
}
else
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::reserve(
&v23,
0xAAAAAAAAAAAAAAABLL * v5);
v9 = **a1;
for ( i = (*a1)[1]; v9 != i; v9 += 48LL )
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(long long)&v23,
v9 + 32);
}
for ( j = *((_QWORD *)&v23 + 1); (_QWORD)v23 != *((_QWORD *)&v23 + 1); j = *((_QWORD *)&v23 + 1) )
{
v25[0] = *(_OWORD *)(j - 16);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(j - 16));
*(_BYTE *)(j - 16) = 0;
*(_QWORD *)(j - 8) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v25);
v12 = (char *)(*((_QWORD *)&v23 + 1) - 16LL);
*((_QWORD *)&v23 + 1) = v12;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v12);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v12);
if ( LOBYTE(v25[0]) == 1 )
{
v16 = **((_QWORD **)&v25[0] + 1);
v17 = *(_QWORD *)(*((_QWORD *)&v25[0] + 1) + 8LL);
while ( v16 != v17 )
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(long long)&v23,
v16 + 32);
v16 += 48LL;
}
std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::_M_erase_at_end(
*((_QWORD *)&v25[0] + 1),
**((_QWORD **)&v25[0] + 1));
}
else if ( LOBYTE(v25[0]) == 2 )
{
v13 = **((_QWORD **)&v25[0] + 1);
v14 = (long long)(*(_QWORD *)(*((_QWORD *)&v25[0] + 1) + 8LL) - **((_QWORD **)&v25[0] + 1)) >> 4;
if ( v14 > 0 )
{
v15 = v14 + 1;
do
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(long long)&v23,
v13);
v13 += 16LL;
--v15;
}
while ( v15 > 1 );
}
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::_M_erase_at_end(
*((_QWORD *)&v25[0] + 1),
**((_QWORD **)&v25[0] + 1));
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v25);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v25);
}
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~vector(&v23);
}
switch ( v3 )
{
case 1:
std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::~vector(*a1);
v18 = 32LL;
goto LABEL_32;
case 2:
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~vector(*a1);
v18 = 24LL;
goto LABEL_32;
case 3:
v19 = (_BYTE *)**a1;
v20 = *a1 + 2;
v18 = 32LL;
if ( v19 == (_BYTE *)v20 )
goto LABEL_32;
v21 = *v20 + 1LL;
break;
case 8:
v22 = (void **)*a1;
v19 = (_BYTE *)**a1;
v18 = 40LL;
if ( !v19 )
goto LABEL_32;
v21 = (_BYTE *)v22[2] - v19;
break;
default:
return;
}
operator delete(v19, v21);
LABEL_32:
operator delete(*a1, v18);
}
}
}
| |||
49,705 | 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>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t) | monkey531[P]llama/common/json.hpp | void destroy(value_t t)
{
if (
(t == value_t::object && object == nullptr) ||
(t == value_t::array && array == nullptr) ||
(t == value_t::string && string == nullptr) ||
(t == value_t::binary && binary == nullptr)
)
{
//not initialized (e.g. due to exception in the ctor)
return;
}
if (t == value_t::array || t == value_t::object)
{
// flatten the current json_value to a heap-allocated stack
std::vector<basic_json> stack;
// move the top-level items to stack
if (t == value_t::array)
{
stack.reserve(array->size());
std::move(array->begin(), array->end(), std::back_inserter(stack));
}
else
{
stack.reserve(object->size());
for (auto&& it : *object)
{
stack.push_back(std::move(it.second));
}
}
while (!stack.empty())
{
// move the last item to local variable to be processed
basic_json current_item(std::move(stack.back()));
stack.pop_back();
// if current_item is array/object, move
// its children to the stack to be processed later
if (current_item.is_array())
{
std::move(current_item.m_data.m_value.array->begin(), current_item.m_data.m_value.array->end(), std::back_inserter(stack));
current_item.m_data.m_value.array->clear();
}
else if (current_item.is_object())
{
for (auto&& it : *current_item.m_data.m_value.object)
{
stack.push_back(std::move(it.second));
}
current_item.m_data.m_value.object->clear();
}
// it's now safe that current_item get destructed
// since it doesn't have any children
}
}
switch (t)
{
case value_t::object:
{
AllocatorType<object_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, object);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, object, 1);
break;
}
case value_t::array:
{
AllocatorType<array_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, array);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, array, 1);
break;
}
case value_t::string:
{
AllocatorType<string_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, string);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, string, 1);
break;
}
case value_t::binary:
{
AllocatorType<binary_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, binary);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, binary, 1);
break;
}
case value_t::null:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::discarded:
default:
{
break;
}
}
} | O2 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpl $0x1, %esi
sete %al
movq (%rdi), %rcx
testq %rcx, %rcx
sete %dl
testb %dl, %al
jne 0x42986
movl %esi, %r14d
testq %rcx, %rcx
sete %al
movl %r14d, %edx
andb $-0x2, %dl
cmpb $0x2, %dl
sete %dl
cmpb $0x8, %r14b
sete %sil
orb %dl, %sil
testb %al, %sil
jne 0x42986
movq %rdi, %rbx
leal -0x1(%r14), %eax
cmpb $0x1, %al
ja 0x428f4
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
movq 0x8(%rcx), %rax
subq (%rcx), %rax
cmpb $0x2, %r14b
jne 0x4291d
sarq $0x4, %rax
movq %rsp, %rdi
movq %rax, %rsi
callq 0x429bc
movq (%rbx), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
movq %rsp, %rdx
callq 0x42a96
leaq 0x18(%rsp), %r15
movq %rsp, %r12
movq 0x8(%rsp), %rsi
cmpq %rsi, (%rsp)
je 0x428ec
addq $-0x10, %rsi
movq %r15, %rdi
callq 0x41876
movq 0x8(%rsp), %rdi
addq $-0x10, %rdi
movq %rdi, 0x8(%rsp)
callq 0x3cfcc
movzbl 0x18(%rsp), %eax
cmpl $0x1, %eax
je 0x428af
cmpl $0x2, %eax
jne 0x428df
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
movq %r12, %rdx
callq 0x42a96
movq 0x20(%rsp), %rdi
callq 0x42a64
jmp 0x428df
movq 0x20(%rsp), %rax
movq (%rax), %r13
movq 0x8(%rax), %rbp
cmpq %rbp, %r13
je 0x428d5
addq $0x20, %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x418aa
addq $0x10, %r13
jmp 0x428bb
movq 0x20(%rsp), %rdi
callq 0x42a6c
movq %r15, %rdi
callq 0x3cfcc
jmp 0x42852
movq %rsp, %rdi
callq 0x42a74
movzbl %r14b, %eax
decl %eax
cmpl $0x7, %eax
ja 0x42986
leaq 0x6719e(%rip), %rcx # 0xa9aa8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rbx), %rdi
callq 0x42b2e
jmp 0x42963
pushq $0x30
popq %rcx
cqto
idivq %rcx
movq %rsp, %rdi
movq %rax, %rsi
callq 0x429bc
movq (%rbx), %rax
movq (%rax), %r15
movq 0x8(%rax), %r13
movq %rsp, %r12
cmpq %r13, %r15
je 0x4284a
addq $0x20, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x418aa
addq $0x10, %r15
jmp 0x4293d
movq (%rbx), %rdi
callq 0x241b8
pushq $0x20
jmp 0x4297d
movq (%rbx), %rdi
callq 0x42a74
pushq $0x18
jmp 0x4297d
movq (%rbx), %rdi
callq 0x42734
pushq $0x28
popq %rsi
movq (%rbx), %rdi
callq 0x238e0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x42999
jmp 0x4299e
movq %rax, %rbx
jmp 0x429ab
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x3cfcc
movq %rsp, %rdi
callq 0x42a74
movq %rbx, %rdi
callq 0x23f80
nop
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_value7destroyENS0_6detail7value_tE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
cmp esi, 1
setz al
mov rcx, [rdi]
test rcx, rcx
setz dl
test al, dl
jnz def_42911; jumptable 0000000000042911 default case, cases 4-7
mov r14d, esi
test rcx, rcx
setz al
mov edx, r14d
and dl, 0FEh
cmp dl, 2
setz dl
cmp r14b, 8
setz sil
or sil, dl
test sil, al
jnz def_42911; jumptable 0000000000042911 default case, cases 4-7
mov rbx, rdi
lea eax, [r14-1]
cmp al, 1
ja loc_428F4
xorps xmm0, xmm0
movaps [rsp+58h+var_58], xmm0
and [rsp+58h+var_48], 0
mov rax, [rcx+8]
sub rax, [rcx]
cmp r14b, 2
jnz loc_4291D
sar rax, 4
mov rdi, rsp
mov rsi, rax
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::reserve(ulong)
mov rax, [rbx]
mov rdi, [rax]
mov rsi, [rax+8]
mov rdx, rsp
call _ZNSt11__copy_moveILb1ELb0ESt26random_access_iterator_tagE8__copy_mIPN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEESt20back_insert_iteratorIS7_ISH_SaISH_EEEEET0_T_SO_SN_; std::__copy_move<true,false,std::random_access_iterator_tag>::__copy_m<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>)
loc_4284A:
lea r15, [rsp+58h+var_40]
mov r12, rsp
loc_42852:
mov rsi, qword ptr [rsp+58h+var_58+8]
cmp qword ptr [rsp+58h+var_58], rsi
jz loc_428EC
add rsi, 0FFFFFFFFFFFFFFF0h
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rdi, qword ptr [rsp+58h+var_58+8]
add rdi, 0FFFFFFFFFFFFFFF0h
mov qword ptr [rsp+58h+var_58+8], rdi
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
movzx eax, [rsp+58h+var_40]
cmp eax, 1
jz short loc_428AF
cmp eax, 2
jnz short loc_428DF
mov rax, [rsp+58h+var_38]
mov rdi, [rax]
mov rsi, [rax+8]
mov rdx, r12
call _ZNSt11__copy_moveILb1ELb0ESt26random_access_iterator_tagE8__copy_mIPN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEESt20back_insert_iteratorIS7_ISH_SaISH_EEEEET0_T_SO_SN_; std::__copy_move<true,false,std::random_access_iterator_tag>::__copy_m<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>)
mov rdi, [rsp+58h+var_38]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5clearEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::clear(void)
jmp short loc_428DF
loc_428AF:
mov rax, [rsp+58h+var_38]
mov r13, [rax]
mov rbp, [rax+8]
loc_428BB:
cmp r13, rbp
jz short loc_428D5
add r13, 20h ; ' '
mov rdi, r12
mov rsi, r13
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
add r13, 10h
jmp short loc_428BB
loc_428D5:
mov rdi, [rsp+58h+var_38]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5clearEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::clear(void)
loc_428DF:
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
jmp loc_42852
loc_428EC:
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
loc_428F4:
movzx eax, r14b
dec eax; switch 8 cases
cmp eax, 7
ja def_42911; jumptable 0000000000042911 default case, cases 4-7
lea rcx, jpt_42911
movsxd rax, ds:(jpt_42911 - 0A9AA8h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_42913:
mov rdi, [rbx]; jumptable 0000000000042911 case 1
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EED2Ev; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::~vector()
jmp short loc_42963
loc_4291D:
push 30h ; '0'
pop rcx
cqo
idiv rcx
mov rdi, rsp
mov rsi, rax
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::reserve(ulong)
mov rax, [rbx]
mov r15, [rax]
mov r13, [rax+8]
mov r12, rsp
loc_4293D:
cmp r15, r13
jz loc_4284A
add r15, 20h ; ' '
mov rdi, r12
mov rsi, r15
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
add r15, 10h
jmp short loc_4293D
loc_4295B:
mov rdi, [rbx]; jumptable 0000000000042911 case 3
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_42963:
push 20h ; ' '
jmp short loc_4297D
loc_42967:
mov rdi, [rbx]; jumptable 0000000000042911 case 2
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
push 18h
jmp short loc_4297D
loc_42973:
mov rdi, [rbx]; jumptable 0000000000042911 case 8
call _ZNSt12_Vector_baseIhSaIhEED2Ev; std::_Vector_base<uchar>::~_Vector_base()
push 28h ; '('
loc_4297D:
pop rsi; unsigned __int64
mov rdi, [rbx]; void *
call __ZdlPvm; operator delete(void *,ulong)
def_42911:
add rsp, 28h; jumptable 0000000000042911 default case, cases 4-7
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_42999
jmp short loc_4299E
loc_42999:
mov rbx, rax
jmp short loc_429AB
loc_4299E:
mov rbx, rax
lea rdi, [rsp+arg_10]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
loc_429AB:
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
mov rdi, rbx
call __Unwind_Resume
| void nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::json_value::destroy(
void **a1,
unsigned int a2)
{
_QWORD *v2; // rcx
long long v3; // rdx
long long v4; // rax
long long v5; // r13
long long v6; // rbp
long long v7; // r15
long long v8; // r13
long long v9; // r15
__int128 v10; // [rsp+0h] [rbp-58h] BYREF
long long v11; // [rsp+10h] [rbp-48h]
char v12[8]; // [rsp+18h] [rbp-40h] BYREF
_QWORD *v13; // [rsp+20h] [rbp-38h]
v2 = *a1;
if ( *a1 != 0LL || a2 != 1 )
{
v3 = a2;
LOBYTE(v3) = (a2 & 0xFE) == 2;
if ( ((v2 == 0LL) & (unsigned __int8)(v3 | ((_BYTE)a2 == 8))) == 0 )
{
if ( (unsigned __int8)(a2 - 1) <= 1u )
{
v10 = 0LL;
v11 = 0LL;
v4 = v2[1] - *v2;
if ( (_BYTE)a2 == 2 )
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::reserve(
&v10,
v4 >> 4,
v3);
std::__copy_move<true,false,std::random_access_iterator_tag>::__copy_m<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>(
*(_QWORD *)*a1,
*((_QWORD *)*a1 + 1),
&v10);
}
else
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::reserve(
&v10,
v4 / 48,
v4 % 48);
v7 = *(_QWORD *)*a1;
v8 = *((_QWORD *)*a1 + 1);
while ( v7 != v8 )
{
v9 = v7 + 32;
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(long long)&v10,
v9);
v7 = v9 + 16;
}
}
while ( (_QWORD)v10 != *((_QWORD *)&v10 + 1) )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v12,
*((_QWORD *)&v10 + 1) - 16LL);
*((_QWORD *)&v10 + 1) -= 16LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json(*((long long *)&v10 + 1));
if ( v12[0] == 1 )
{
v5 = *v13;
v6 = v13[1];
while ( v5 != v6 )
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(long long)&v10,
v5 + 32);
v5 += 48LL;
}
std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::clear(v13);
}
else if ( v12[0] == 2 )
{
std::__copy_move<true,false,std::random_access_iterator_tag>::__copy_m<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>(
*v13,
v13[1],
&v10);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::clear(v13);
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v12);
}
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~vector(&v10);
}
switch ( (char)a2 )
{
case 1:
std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::~vector(*a1);
goto LABEL_22;
case 2:
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~vector(*a1);
operator delete(*a1, 0x18uLL);
break;
case 3:
std::string::~string(*a1);
LABEL_22:
operator delete(*a1, 0x20uLL);
break;
case 8:
std::_Vector_base<unsigned char>::~_Vector_base(*a1);
operator delete(*a1, 0x28uLL);
break;
default:
return;
}
}
}
}
| destroy:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
CMP ESI,0x1
SETZ AL
MOV RCX,qword ptr [RDI]
TEST RCX,RCX
SETZ DL
TEST AL,DL
JNZ 0x00142986
MOV R14D,ESI
TEST RCX,RCX
SETZ AL
MOV EDX,R14D
AND DL,0xfe
CMP DL,0x2
SETZ DL
CMP R14B,0x8
SETZ SIL
OR SIL,DL
TEST SIL,AL
JNZ 0x00142986
MOV RBX,RDI
LEA EAX,[R14 + -0x1]
CMP AL,0x1
JA 0x001428f4
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
AND qword ptr [RSP + 0x10],0x0
MOV RAX,qword ptr [RCX + 0x8]
SUB RAX,qword ptr [RCX]
CMP R14B,0x2
JNZ 0x0014291d
SAR RAX,0x4
LAB_0014282d:
MOV RDI,RSP
MOV RSI,RAX
CALL 0x001429bc
MOV RAX,qword ptr [RBX]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x8]
MOV RDX,RSP
CALL 0x00142a96
LAB_0014284a:
LEA R15,[RSP + 0x18]
MOV R12,RSP
LAB_00142852:
MOV RSI,qword ptr [RSP + 0x8]
CMP qword ptr [RSP],RSI
JZ 0x001428ec
ADD RSI,-0x10
MOV RDI,R15
CALL 0x00141876
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,-0x10
MOV qword ptr [RSP + 0x8],RDI
CALL 0x0013cfcc
MOVZX EAX,byte ptr [RSP + 0x18]
CMP EAX,0x1
JZ 0x001428af
CMP EAX,0x2
JNZ 0x001428df
MOV RAX,qword ptr [RSP + 0x20]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x8]
LAB_0014289b:
MOV RDX,R12
CALL 0x00142a96
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x00142a64
JMP 0x001428df
LAB_001428af:
MOV RAX,qword ptr [RSP + 0x20]
MOV R13,qword ptr [RAX]
MOV RBP,qword ptr [RAX + 0x8]
LAB_001428bb:
CMP R13,RBP
JZ 0x001428d5
ADD R13,0x20
LAB_001428c4:
MOV RDI,R12
MOV RSI,R13
CALL 0x001418aa
ADD R13,0x10
JMP 0x001428bb
LAB_001428d5:
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x00142a6c
LAB_001428df:
MOV RDI,R15
CALL 0x0013cfcc
JMP 0x00142852
LAB_001428ec:
MOV RDI,RSP
CALL 0x00142a74
LAB_001428f4:
MOVZX EAX,R14B
DEC EAX
CMP EAX,0x7
JA 0x00142986
LEA RCX,[0x1a9aa8]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
MOV RDI,qword ptr [RBX]
CALL 0x00142b2e
JMP 0x00142963
LAB_0014291d:
PUSH 0x30
POP RCX
CQO
IDIV RCX
LAB_00142925:
MOV RDI,RSP
MOV RSI,RAX
CALL 0x001429bc
MOV RAX,qword ptr [RBX]
MOV R15,qword ptr [RAX]
MOV R13,qword ptr [RAX + 0x8]
MOV R12,RSP
LAB_0014293d:
CMP R15,R13
JZ 0x0014284a
ADD R15,0x20
LAB_0014294a:
MOV RDI,R12
MOV RSI,R15
CALL 0x001418aa
LAB_00142955:
ADD R15,0x10
JMP 0x0014293d
caseD_3:
MOV RDI,qword ptr [RBX]
CALL 0x001241b8
LAB_00142963:
PUSH 0x20
JMP 0x0014297d
caseD_2:
MOV RDI,qword ptr [RBX]
CALL 0x00142a74
PUSH 0x18
JMP 0x0014297d
caseD_8:
MOV RDI,qword ptr [RBX]
CALL 0x00142734
PUSH 0x28
LAB_0014297d:
POP RSI
MOV RDI,qword ptr [RBX]
CALL 0x001238e0
caseD_4:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t) */
void __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::json_value::destroy(json_value *this,uint param_2)
{
long *plVar1;
long lVar2;
byte bVar3;
long lVar4;
ulong uStack_60;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*local_58;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*pbStack_50;
int8 local_48;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_40 [8];
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*local_38;
plVar1 = *(long **)this;
if (param_2 == 1 && plVar1 == (long *)0x0) {
return;
}
bVar3 = (byte)param_2;
if ((bVar3 == 8 || (bVar3 & 0xfe) == 2) && plVar1 == (long *)0x0) {
return;
}
if ((byte)(bVar3 - 1) < 2) {
local_58 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)0x0;
pbStack_50 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)0x0;
local_48 = 0;
if (bVar3 == 2) {
/* try { // try from 0014282d to 00142849 has its CatchHandler @ 00142995 */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::reserve((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_58,plVar1[1] - *plVar1 >> 4);
std::__copy_move<true,false,std::random_access_iterator_tag>::
__copy_m<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
(**(int8 **)this,(*(int8 **)this)[1],&local_58);
}
else {
/* try { // try from 00142925 to 0014292f has its CatchHandler @ 00142995 */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::reserve((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_58,(plVar1[1] - *plVar1) / 0x30);
lVar2 = (*(long **)this)[1];
for (lVar4 = **(long **)this; lVar4 != lVar2; lVar4 = lVar4 + 0x30) {
/* try { // try from 0014294a to 00142954 has its CatchHandler @ 00142999 */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_58,(basic_json *)(lVar4 + 0x20));
}
}
while (local_58 != pbStack_50) {
basic_json(local_40,pbStack_50 + -0x10);
pbStack_50 = pbStack_50 + -0x10;
~basic_json(pbStack_50);
if (local_40[0] ==
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) {
lVar2 = *(long *)(local_38 + 8);
for (lVar4 = *(long *)local_38; lVar4 != lVar2; lVar4 = lVar4 + 0x30) {
/* try { // try from 001428c4 to 001428ce has its CatchHandler @ 0014299e */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_58,(basic_json *)(lVar4 + 0x20));
}
std::
vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::clear((vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*)local_38);
}
else if (local_40[0] ==
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2) {
/* try { // try from 0014289b to 001428a2 has its CatchHandler @ 00142997 */
std::__copy_move<true,false,std::random_access_iterator_tag>::
__copy_m<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
(*(long *)local_38,*(long *)(local_38 + 8),&local_58);
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::clear(local_38);
}
~basic_json(local_40);
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::~vector((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_58);
}
switch(param_2 & 0xff) {
case 1:
std::
vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::~vector(*(vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
**)this);
goto LAB_00142963;
case 2:
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::~vector(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)this);
uStack_60 = 0x18;
break;
case 3:
std::__cxx11::string::~string(*(string **)this);
LAB_00142963:
uStack_60 = 0x20;
break;
default:
goto switchD_00142911_caseD_4;
case 8:
std::_Vector_base<unsigned_char,std::allocator<unsigned_char>>::~_Vector_base
(*(_Vector_base<unsigned_char,std::allocator<unsigned_char>> **)this);
uStack_60 = 0x28;
}
operator_delete(*(void **)this,uStack_60);
switchD_00142911_caseD_4:
return;
}
| |
49,706 | list_walk | eloqsql/libmariadb/libmariadb/ma_list.c | int list_walk(LIST *list, list_walk_action action, gptr argument)
{
int error=0;
while (list)
{
if ((error = (*action)(list->data,argument)))
return error;
list= list_rest(list);
}
return 0;
} | O0 | c | list_walk:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x22e02
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rdi
movq -0x20(%rbp), %rsi
callq *%rax
movl %eax, -0x24(%rbp)
cmpl $0x0, %eax
je 0x22df4
movl -0x24(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x22e09
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x22dcb
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| list_walk:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_24], 0
loc_22DCB:
cmp [rbp+var_10], 0
jz short loc_22E02
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
mov rdi, [rcx+10h]
mov rsi, [rbp+var_20]
call rax
mov [rbp+var_24], eax
cmp eax, 0
jz short loc_22DF4
mov eax, [rbp+var_24]
mov [rbp+var_4], eax
jmp short loc_22E09
loc_22DF4:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rbp+var_10], rax
jmp short loc_22DCB
loc_22E02:
mov [rbp+var_4], 0
loc_22E09:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long list_walk(long long a1, long long ( *a2)(_QWORD, long long), long long a3)
{
unsigned int v4; // [rsp+Ch] [rbp-24h]
while ( a1 )
{
v4 = a2(*(_QWORD *)(a1 + 16), a3);
if ( v4 )
return v4;
a1 = *(_QWORD *)(a1 + 8);
}
return 0;
}
| list_walk:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],0x0
LAB_00122dcb:
CMP qword ptr [RBP + -0x10],0x0
JZ 0x00122e02
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RCX + 0x10]
MOV RSI,qword ptr [RBP + -0x20]
CALL RAX
MOV dword ptr [RBP + -0x24],EAX
CMP EAX,0x0
JZ 0x00122df4
MOV EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00122e09
LAB_00122df4:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x10],RAX
JMP 0x00122dcb
LAB_00122e02:
MOV dword ptr [RBP + -0x4],0x0
LAB_00122e09:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int list_walk(long param_1,code *param_2,int8 param_3)
{
int iVar1;
long local_18;
local_18 = param_1;
while( true ) {
if (local_18 == 0) {
return 0;
}
iVar1 = (*param_2)(*(int8 *)(local_18 + 0x10),param_3);
if (iVar1 != 0) break;
local_18 = *(long *)(local_18 + 8);
}
return iVar1;
}
| |
49,707 | b2d | eloqsql/strings/dtoa.c | static double b2d(Bigint *a, int *e)
{
ULong *xa, *xa0, w, y, z;
int k;
U d;
#define d0 word0(&d)
#define d1 word1(&d)
xa0= a->p.x;
xa= xa0 + a->wds;
y= *--xa;
k= hi0bits(y);
*e= 32 - k;
if (k < Ebits)
{
d0= Exp_1 | y >> (Ebits - k);
w= xa > xa0 ? *--xa : 0;
d1= y << ((32-Ebits) + k) | w >> (Ebits - k);
goto ret_d;
}
z= xa > xa0 ? *--xa : 0;
if (k-= Ebits)
{
d0= Exp_1 | y << k | z >> (32 - k);
y= xa > xa0 ? *--xa : 0;
d1= z << k | y >> (32 - k);
}
else
{
d0= Exp_1 | y;
d1= z;
}
ret_d:
#undef d0
#undef d1
return dval(&d);
} | O0 | c | b2d:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq 0x14(%rcx), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $-0x4, %rcx
movq %rcx, -0x18(%rbp)
movl -0x4(%rax), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %edi
callq 0x79da0
movl %eax, -0x30(%rbp)
movl $0x20, %ecx
subl -0x30(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
cmpl $0xb, -0x30(%rbp)
jge 0x79f3d
movl -0x28(%rbp), %eax
movl $0xb, %ecx
subl -0x30(%rbp), %ecx
shrl %cl, %eax
orl $0x3ff00000, %eax # imm = 0x3FF00000
movl %eax, -0x34(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jbe 0x79f0c
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $-0x4, %rcx
movq %rcx, -0x18(%rbp)
movl -0x4(%rax), %eax
movl %eax, -0x3c(%rbp)
jmp 0x79f13
xorl %eax, %eax
movl %eax, -0x3c(%rbp)
jmp 0x79f13
movl -0x3c(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x28(%rbp), %eax
movl -0x30(%rbp), %ecx
addl $0x15, %ecx
shll %cl, %eax
movl -0x24(%rbp), %edx
movl $0xb, %ecx
subl -0x30(%rbp), %ecx
shrl %cl, %edx
movl %edx, %ecx
orl %ecx, %eax
movl %eax, -0x38(%rbp)
jmp 0x79ff9
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jbe 0x79f5e
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $-0x4, %rcx
movq %rcx, -0x18(%rbp)
movl -0x4(%rax), %eax
movl %eax, -0x40(%rbp)
jmp 0x79f65
xorl %eax, %eax
movl %eax, -0x40(%rbp)
jmp 0x79f65
movl -0x40(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0x30(%rbp), %eax
subl $0xb, %eax
movl %eax, -0x30(%rbp)
cmpl $0x0, %eax
je 0x79fe6
movl -0x28(%rbp), %eax
movl -0x30(%rbp), %ecx
shll %cl, %eax
orl $0x3ff00000, %eax # imm = 0x3FF00000
movl -0x2c(%rbp), %edx
movl $0x20, %ecx
subl -0x30(%rbp), %ecx
shrl %cl, %edx
movl %edx, %ecx
orl %ecx, %eax
movl %eax, -0x34(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jbe 0x79fbb
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $-0x4, %rcx
movq %rcx, -0x18(%rbp)
movl -0x4(%rax), %eax
movl %eax, -0x44(%rbp)
jmp 0x79fc2
xorl %eax, %eax
movl %eax, -0x44(%rbp)
jmp 0x79fc2
movl -0x44(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x2c(%rbp), %eax
movl -0x30(%rbp), %ecx
shll %cl, %eax
movl -0x28(%rbp), %edx
movl $0x20, %ecx
subl -0x30(%rbp), %ecx
shrl %cl, %edx
movl %edx, %ecx
orl %ecx, %eax
movl %eax, -0x38(%rbp)
jmp 0x79ff7
movl -0x28(%rbp), %eax
orl $0x3ff00000, %eax # imm = 0x3FF00000
movl %eax, -0x34(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x38(%rbp)
jmp 0x79ff9
movsd -0x38(%rbp), %xmm0
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| b2d:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
mov rcx, [rbp+var_8]
movsxd rcx, dword ptr [rcx+14h]
shl rcx, 2
add rax, rcx
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFCh
mov [rbp+var_18], rcx
mov eax, [rax-4]
mov [rbp+var_28], eax
mov edi, [rbp+var_28]
call hi0bits
mov [rbp+var_30], eax
mov ecx, 20h ; ' '
sub ecx, [rbp+var_30]
mov rax, [rbp+var_10]
mov [rax], ecx
cmp [rbp+var_30], 0Bh
jge short loc_79F3D
mov eax, [rbp+var_28]
mov ecx, 0Bh
sub ecx, [rbp+var_30]
shr eax, cl
or eax, 3FF00000h
mov dword ptr [rbp+var_38+4], eax
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jbe short loc_79F0C
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFCh
mov [rbp+var_18], rcx
mov eax, [rax-4]
mov [rbp+var_3C], eax
jmp short loc_79F13
loc_79F0C:
xor eax, eax
mov [rbp+var_3C], eax
jmp short $+2
loc_79F13:
mov eax, [rbp+var_3C]
mov [rbp+var_24], eax
mov eax, [rbp+var_28]
mov ecx, [rbp+var_30]
add ecx, 15h
shl eax, cl
mov edx, [rbp+var_24]
mov ecx, 0Bh
sub ecx, [rbp+var_30]
shr edx, cl
mov ecx, edx
or eax, ecx
mov dword ptr [rbp+var_38], eax
jmp loc_79FF9
loc_79F3D:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jbe short loc_79F5E
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFCh
mov [rbp+var_18], rcx
mov eax, [rax-4]
mov [rbp+var_40], eax
jmp short loc_79F65
loc_79F5E:
xor eax, eax
mov [rbp+var_40], eax
jmp short $+2
loc_79F65:
mov eax, [rbp+var_40]
mov [rbp+var_2C], eax
mov eax, [rbp+var_30]
sub eax, 0Bh
mov [rbp+var_30], eax
cmp eax, 0
jz short loc_79FE6
mov eax, [rbp+var_28]
mov ecx, [rbp+var_30]
shl eax, cl
or eax, 3FF00000h
mov edx, [rbp+var_2C]
mov ecx, 20h ; ' '
sub ecx, [rbp+var_30]
shr edx, cl
mov ecx, edx
or eax, ecx
mov dword ptr [rbp+var_38+4], eax
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jbe short loc_79FBB
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFCh
mov [rbp+var_18], rcx
mov eax, [rax-4]
mov [rbp+var_44], eax
jmp short loc_79FC2
loc_79FBB:
xor eax, eax
mov [rbp+var_44], eax
jmp short $+2
loc_79FC2:
mov eax, [rbp+var_44]
mov [rbp+var_28], eax
mov eax, [rbp+var_2C]
mov ecx, [rbp+var_30]
shl eax, cl
mov edx, [rbp+var_28]
mov ecx, 20h ; ' '
sub ecx, [rbp+var_30]
shr edx, cl
mov ecx, edx
or eax, ecx
mov dword ptr [rbp+var_38], eax
jmp short loc_79FF7
loc_79FE6:
mov eax, [rbp+var_28]
or eax, 3FF00000h
mov dword ptr [rbp+var_38+4], eax
mov eax, [rbp+var_2C]
mov dword ptr [rbp+var_38], eax
loc_79FF7:
jmp short $+2
loc_79FF9:
movsd xmm0, [rbp+var_38]
add rsp, 50h
pop rbp
retn
| double b2d(long long a1, _DWORD *a2)
{
int *v2; // rax
unsigned int v4; // [rsp+Ch] [rbp-44h]
unsigned int v5; // [rsp+10h] [rbp-40h]
unsigned int v6; // [rsp+14h] [rbp-3Ch]
long long v7; // [rsp+18h] [rbp-38h]
int v8; // [rsp+20h] [rbp-30h]
int v9; // [rsp+20h] [rbp-30h]
long long v10; // [rsp+24h] [rbp-2Ch]
unsigned long long v11; // [rsp+30h] [rbp-20h]
int *v12; // [rsp+38h] [rbp-18h]
v11 = *(_QWORD *)a1;
v12 = (int *)(4LL * *(int *)(a1 + 20) + *(_QWORD *)a1 - 4);
HIDWORD(v10) = *v12;
v8 = hi0bits(*v12);
*a2 = 32 - v8;
if ( v8 >= 11 )
{
if ( (unsigned long long)v12 <= v11 )
{
v5 = 0;
}
else
{
v2 = v12--;
v5 = *(v2 - 1);
}
LODWORD(v10) = v5;
v9 = v8 - 11;
if ( v9 )
{
HIDWORD(v7) = (v5 >> (32 - v9)) | (HIDWORD(v10) << v9) | 0x3FF00000;
if ( (unsigned long long)v12 <= v11 )
v4 = 0;
else
v4 = *(v12 - 1);
LODWORD(v7) = (v4 >> (32 - v9)) | (v5 << v9);
}
else
{
v7 = v10 | 0x3FF0000000000000LL;
}
}
else
{
HIDWORD(v7) = (HIDWORD(v10) >> (11 - v8)) | 0x3FF00000;
if ( (unsigned long long)v12 <= v11 )
v6 = 0;
else
v6 = *(v12 - 1);
LODWORD(v7) = (v6 >> (11 - v8)) | (HIDWORD(v10) << (v8 + 21));
}
return *(double *)&v7;
}
| b2d:
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 RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x8]
MOVSXD RCX,dword ptr [RCX + 0x14]
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,-0x4
MOV qword ptr [RBP + -0x18],RCX
MOV EAX,dword ptr [RAX + -0x4]
MOV dword ptr [RBP + -0x28],EAX
MOV EDI,dword ptr [RBP + -0x28]
CALL 0x00179da0
MOV dword ptr [RBP + -0x30],EAX
MOV ECX,0x20
SUB ECX,dword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],ECX
CMP dword ptr [RBP + -0x30],0xb
JGE 0x00179f3d
MOV EAX,dword ptr [RBP + -0x28]
MOV ECX,0xb
SUB ECX,dword ptr [RBP + -0x30]
SHR EAX,CL
OR EAX,0x3ff00000
MOV dword ptr [RBP + -0x34],EAX
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JBE 0x00179f0c
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,-0x4
MOV qword ptr [RBP + -0x18],RCX
MOV EAX,dword ptr [RAX + -0x4]
MOV dword ptr [RBP + -0x3c],EAX
JMP 0x00179f13
LAB_00179f0c:
XOR EAX,EAX
MOV dword ptr [RBP + -0x3c],EAX
JMP 0x00179f13
LAB_00179f13:
MOV EAX,dword ptr [RBP + -0x3c]
MOV dword ptr [RBP + -0x24],EAX
MOV EAX,dword ptr [RBP + -0x28]
MOV ECX,dword ptr [RBP + -0x30]
ADD ECX,0x15
SHL EAX,CL
MOV EDX,dword ptr [RBP + -0x24]
MOV ECX,0xb
SUB ECX,dword ptr [RBP + -0x30]
SHR EDX,CL
MOV ECX,EDX
OR EAX,ECX
MOV dword ptr [RBP + -0x38],EAX
JMP 0x00179ff9
LAB_00179f3d:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JBE 0x00179f5e
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,-0x4
MOV qword ptr [RBP + -0x18],RCX
MOV EAX,dword ptr [RAX + -0x4]
MOV dword ptr [RBP + -0x40],EAX
JMP 0x00179f65
LAB_00179f5e:
XOR EAX,EAX
MOV dword ptr [RBP + -0x40],EAX
JMP 0x00179f65
LAB_00179f65:
MOV EAX,dword ptr [RBP + -0x40]
MOV dword ptr [RBP + -0x2c],EAX
MOV EAX,dword ptr [RBP + -0x30]
SUB EAX,0xb
MOV dword ptr [RBP + -0x30],EAX
CMP EAX,0x0
JZ 0x00179fe6
MOV EAX,dword ptr [RBP + -0x28]
MOV ECX,dword ptr [RBP + -0x30]
SHL EAX,CL
OR EAX,0x3ff00000
MOV EDX,dword ptr [RBP + -0x2c]
MOV ECX,0x20
SUB ECX,dword ptr [RBP + -0x30]
SHR EDX,CL
MOV ECX,EDX
OR EAX,ECX
MOV dword ptr [RBP + -0x34],EAX
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JBE 0x00179fbb
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,-0x4
MOV qword ptr [RBP + -0x18],RCX
MOV EAX,dword ptr [RAX + -0x4]
MOV dword ptr [RBP + -0x44],EAX
JMP 0x00179fc2
LAB_00179fbb:
XOR EAX,EAX
MOV dword ptr [RBP + -0x44],EAX
JMP 0x00179fc2
LAB_00179fc2:
MOV EAX,dword ptr [RBP + -0x44]
MOV dword ptr [RBP + -0x28],EAX
MOV EAX,dword ptr [RBP + -0x2c]
MOV ECX,dword ptr [RBP + -0x30]
SHL EAX,CL
MOV EDX,dword ptr [RBP + -0x28]
MOV ECX,0x20
SUB ECX,dword ptr [RBP + -0x30]
SHR EDX,CL
MOV ECX,EDX
OR EAX,ECX
MOV dword ptr [RBP + -0x38],EAX
JMP 0x00179ff7
LAB_00179fe6:
MOV EAX,dword ptr [RBP + -0x28]
OR EAX,0x3ff00000
MOV dword ptr [RBP + -0x34],EAX
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x38],EAX
LAB_00179ff7:
JMP 0x00179ff9
LAB_00179ff9:
MOVSD XMM0,qword ptr [RBP + -0x38]
ADD RSP,0x50
POP RBP
RET
|
int8 b2d(ulong *param_1,int *param_2)
{
uint uVar1;
ulong uVar2;
char cVar3;
int iVar4;
long lVar5;
byte bVar6;
int4 local_4c;
int4 local_48;
int4 local_44;
int4 local_40;
int4 uStack_3c;
int8 local_20;
uVar2 = *param_1;
lVar5 = uVar2 + (long)*(int *)((long)param_1 + 0x14) * 4;
local_20 = lVar5 - 4;
uVar1 = *(uint *)(lVar5 + -4);
iVar4 = hi0bits(uVar1);
*param_2 = 0x20 - iVar4;
if (iVar4 < 0xb) {
cVar3 = (char)iVar4;
uStack_3c = uVar1 >> (0xbU - cVar3 & 0x1f) | 0x3ff00000;
if (uVar2 < local_20) {
local_44 = *(uint *)(lVar5 + -8);
}
else {
local_44 = 0;
}
local_40 = uVar1 << (cVar3 + 0x15U & 0x1f) | local_44 >> (0xbU - cVar3 & 0x1f);
}
else {
if (uVar2 < local_20) {
local_20 = lVar5 - 8;
local_48 = *(uint *)(lVar5 + -8);
}
else {
local_48 = 0;
}
if (iVar4 + -0xb == 0) {
uStack_3c = uVar1 | 0x3ff00000;
local_40 = local_48;
}
else {
bVar6 = (byte)(iVar4 + -0xb);
uStack_3c = uVar1 << (bVar6 & 0x1f) | 0x3ff00000 | local_48 >> (0x20 - bVar6 & 0x1f);
if (uVar2 < local_20) {
local_4c = *(uint *)(local_20 - 4);
}
else {
local_4c = 0;
}
local_40 = local_48 << (bVar6 & 0x1f) | local_4c >> (0x20 - bVar6 & 0x1f);
}
}
return CONCAT44(uStack_3c,local_40);
}
| |
49,708 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const | llama.cpp/common/json.hpp | const_reference operator[](const typename object_t::key_type& key) const
{
// const operator[] only works for objects
if (JSON_HEDLEY_LIKELY(is_object()))
{
auto it = m_data.m_value.object->find(key);
JSON_ASSERT(it != m_data.m_value.object->end());
return it->second;
}
JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a string argument with ", type_name()), this));
} | O3 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
cmpb $0x1, (%rdi)
jne 0xbf598
movq 0x8(%r14), %rdi
callq 0xbf650
movq 0x8(%r14), %rcx
cmpq 0x8(%rcx), %rax
je 0xbf5f6
addq $0x20, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x20, %edi
callq 0x21700
movq %rax, %rbx
movq %r14, %rdi
callq 0x8dda0
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x63589(%rip), %rsi # 0x122b45
leaq 0x10(%rsp), %rdi
callq 0xbf880
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x131, %esi # imm = 0x131
movq %r14, %rcx
callq 0xbf6a8
xorl %ebp, %ebp
leaq 0xa4a49(%rip), %rsi # 0x164030
leaq -0x45660(%rip), %rdx # 0x79f8e
movq %rbx, %rdi
callq 0x21b50
leaq 0x5d61b(%rip), %rdi # 0x11cc18
leaq 0x55de3(%rip), %rdx # 0x1153e7
leaq 0x63517(%rip), %rcx # 0x122b22
movl $0x53ca, %esi # imm = 0x53CA
xorl %eax, %eax
callq 0x21fe0
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbf635
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x211a0
testb %bpl, %bpl
jne 0xbf63f
jmp 0xbf647
movq %rax, %r14
movq %rbx, %rdi
callq 0x220a0
movq %r14, %rdi
callq 0x21c10
nop
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixERKS9_:
push rbp; void *
push r14; int
push rbx; __int64
sub rsp, 30h
mov r14, rdi
cmp byte ptr [rdi], 1
jnz short loc_BF598
mov rdi, [r14+8]
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findERSH_; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::find(std::string const&)
mov rcx, [r14+8]
cmp rax, [rcx+8]
jz short loc_BF5F6
add rax, 20h ; ' '
add rsp, 30h
pop rbx
pop r14
pop rbp
retn
loc_BF598:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+48h+var_40]
mov [rdx], rax
lea rsi, aCannotUseOpera_0; "cannot use operator[] with a string arg"...
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA51_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[51],char const*>(char const(&)[51],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 131h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_BF5F6:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aItMDataMValueO; "it != m_data.m_value.object->end()"
mov esi, 53CAh
xor eax, eax
call _ggml_abort
mov r14, rax
lea rax, [rsp+48h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_BF635
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_BF635:
test bpl, bpl
jnz short loc_BF63F
jmp short loc_BF647
mov r14, rax
loc_BF63F:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_BF647:
mov rdi, r14
call __Unwind_Resume
| operator[]:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RDI
CMP byte ptr [RDI],0x1
JNZ 0x001bf598
MOV RDI,qword ptr [R14 + 0x8]
CALL 0x001bf650
MOV RCX,qword ptr [R14 + 0x8]
CMP RAX,qword ptr [RCX + 0x8]
JZ 0x001bf5f6
ADD RAX,0x20
ADD RSP,0x30
POP RBX
POP R14
POP RBP
RET
LAB_001bf598:
MOV EDI,0x20
CALL 0x00121700
MOV RBX,RAX
MOV RDI,R14
CALL 0x0018dda0
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_001bf5b5:
LEA RSI,[0x222b45]
LEA RDI,[RSP + 0x10]
CALL 0x001bf880
MOV BPL,0x1
LAB_001bf5c9:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x131
MOV RCX,R14
CALL 0x001bf6a8
XOR EBP,EBP
LEA RSI,[0x264030]
LEA RDX,[0x179f8e]
MOV RDI,RBX
CALL 0x00121b50
LAB_001bf5f6:
LEA RDI,[0x21cc18]
LEA RDX,[0x2153e7]
LEA RCX,[0x222b22]
MOV ESI,0x53ca
XOR EAX,EAX
CALL 0x00121fe0
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::operator[](std::__cxx11::string const&) const */
long __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[](basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this,string *param_1)
{
long lVar1;
int8 uVar2;
char *local_40;
detail local_38 [32];
if (*this != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) {
uVar2 = __cxa_allocate_exception(0x20);
local_40 = (char *)type_name(this);
/* try { // try from 001bf5b5 to 001bf5c5 has its CatchHandler @ 001bf63c */
detail::concat<std::__cxx11::string,char_const(&)[51],char_const*>
(local_38,"cannot use operator[] with a string argument with ",&local_40);
/* try { // try from 001bf5c9 to 001bf5f5 has its CatchHandler @ 001bf617 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar2,0x131,local_38,this);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&detail::type_error::typeinfo,detail::exception::~exception);
}
lVar1 = ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::find(*(ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
**)(this + 8),param_1);
if (lVar1 != *(long *)(*(long *)(this + 8) + 8)) {
return lVar1 + 0x20;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",0x53ca,
"GGML_ASSERT(%s) failed","it != m_data.m_value.object->end()");
}
| ||
49,709 | test_soft_max_back::build_graph(ggml_context*) | monkey531[P]llama/tests/test-backend-ops.cpp | ggml_tensor * build_graph(ggml_context * ctx) override {
ggml_tensor * a = ggml_new_tensor(ctx, type, 4, ne.data());
ggml_set_name(a, "a");
ggml_tensor * b = ggml_new_tensor(ctx, type, 4, ne.data());
ggml_set_name(a, "a");
ggml_tensor * out = ggml_soft_max_ext_back(ctx, a, b, scale, max_bias);
ggml_set_name(out, "out");
return out;
} | O0 | cpp | test_soft_max_back::build_graph(ggml_context*):
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq 0x50(%rsp), %rdi
movq %rdi, 0x28(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x8(%rsp)
movl 0x38(%rdi), %eax
movl %eax, 0x14(%rsp)
addq $0x40, %rdi
callq 0x42410
movq 0x8(%rsp), %rsi
movl 0x14(%rsp), %edx
movq 0x28(%rsp), %rdi
movq %rax, %r8
movl $0x4, %ecx
callq 0x423a0
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rdi
leaq 0x110ec(%rip), %rsi # 0x6bdba
callq 0x19c10
movq 0x28(%rsp), %rdi
movq 0x48(%rsp), %rax
movq %rax, 0x18(%rsp)
movl 0x38(%rdi), %eax
movl %eax, 0x24(%rsp)
addq $0x40, %rdi
callq 0x42410
movq 0x18(%rsp), %rsi
movl 0x24(%rsp), %edx
movq 0x28(%rsp), %rdi
movq %rax, %r8
movl $0x4, %ecx
callq 0x423a0
movq %rax, 0x38(%rsp)
movq 0x40(%rsp), %rdi
leaq 0x1109c(%rip), %rsi # 0x6bdba
callq 0x19c10
movq 0x28(%rsp), %rax
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdx
movss 0x60(%rax), %xmm0
movss 0x64(%rax), %xmm1
callq 0x19cf0
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rdi
leaq 0x1162d(%rip), %rsi # 0x6c384
callq 0x19c10
movq 0x30(%rsp), %rax
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)
| _ZN18test_soft_max_back11build_graphEP12ggml_context:
sub rsp, 58h
mov [rsp+58h+var_8], rdi
mov [rsp+58h+var_10], rsi
mov rdi, [rsp+58h+var_8]
mov [rsp+58h+var_30], rdi
mov rax, [rsp+58h+var_10]
mov [rsp+58h+var_50], rax
mov eax, [rdi+38h]
mov [rsp+58h+var_44], eax
add rdi, 40h ; '@'
call _ZNKSt5arrayIlLm4EE4dataEv; std::array<long,4ul>::data(void)
mov rsi, [rsp+58h+var_50]
mov edx, [rsp+58h+var_44]
mov rdi, [rsp+58h+var_30]
mov r8, rax
mov ecx, 4
call _ZN9test_case15ggml_new_tensorEP12ggml_context9ggml_typeiPKl; test_case::ggml_new_tensor(ggml_context *,ggml_type,int,long const*)
mov [rsp+58h+var_18], rax
mov rdi, [rsp+58h+var_18]
lea rsi, aViewOfA+8; "a"
call _ggml_set_name
mov rdi, [rsp+58h+var_30]
mov rax, [rsp+58h+var_10]
mov [rsp+58h+var_40], rax
mov eax, [rdi+38h]
mov [rsp+58h+var_34], eax
add rdi, 40h ; '@'
call _ZNKSt5arrayIlLm4EE4dataEv; std::array<long,4ul>::data(void)
mov rsi, [rsp+58h+var_40]
mov edx, [rsp+58h+var_34]
mov rdi, [rsp+58h+var_30]
mov r8, rax
mov ecx, 4
call _ZN9test_case15ggml_new_tensorEP12ggml_context9ggml_typeiPKl; test_case::ggml_new_tensor(ggml_context *,ggml_type,int,long const*)
mov [rsp+58h+var_20], rax
mov rdi, [rsp+58h+var_18]
lea rsi, aViewOfA+8; "a"
call _ggml_set_name
mov rax, [rsp+58h+var_30]
mov rdi, [rsp+58h+var_10]
mov rsi, [rsp+58h+var_18]
mov rdx, [rsp+58h+var_20]
movss xmm0, dword ptr [rax+60h]
movss xmm1, dword ptr [rax+64h]
call _ggml_soft_max_ext_back
mov [rsp+58h+var_28], rax
mov rdi, [rsp+58h+var_28]
lea rsi, aSumOfOut+7; "out"
call _ggml_set_name
mov rax, [rsp+58h+var_28]
add rsp, 58h
retn
| long long test_soft_max_back::build_graph(long long a1, long long a2)
{
long long v2; // rax
long long v3; // rax
unsigned int v5; // [rsp+14h] [rbp-44h]
unsigned int v6; // [rsp+24h] [rbp-34h]
long long v7; // [rsp+30h] [rbp-28h]
long long v8; // [rsp+38h] [rbp-20h]
long long v9; // [rsp+40h] [rbp-18h]
v5 = *(_DWORD *)(a1 + 56);
v2 = std::array<long,4ul>::data(a1 + 64);
v9 = test_case::ggml_new_tensor(a1, a2, v5, 4u, v2);
ggml_set_name(v9, "a");
v6 = *(_DWORD *)(a1 + 56);
v3 = std::array<long,4ul>::data(a1 + 64);
v8 = test_case::ggml_new_tensor(a1, a2, v6, 4u, v3);
ggml_set_name(v9, "a");
v7 = ggml_soft_max_ext_back(a2, v9, v8, *(float *)(a1 + 96), *(float *)(a1 + 100));
ggml_set_name(v7, "out");
return v7;
}
| build_graph:
SUB RSP,0x58
MOV qword ptr [RSP + 0x50],RDI
MOV qword ptr [RSP + 0x48],RSI
MOV RDI,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x28],RDI
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x8],RAX
MOV EAX,dword ptr [RDI + 0x38]
MOV dword ptr [RSP + 0x14],EAX
ADD RDI,0x40
CALL 0x00142410
MOV RSI,qword ptr [RSP + 0x8]
MOV EDX,dword ptr [RSP + 0x14]
MOV RDI,qword ptr [RSP + 0x28]
MOV R8,RAX
MOV ECX,0x4
CALL 0x001423a0
MOV qword ptr [RSP + 0x40],RAX
MOV RDI,qword ptr [RSP + 0x40]
LEA RSI,[0x16bdba]
CALL 0x00119c10
MOV RDI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x18],RAX
MOV EAX,dword ptr [RDI + 0x38]
MOV dword ptr [RSP + 0x24],EAX
ADD RDI,0x40
CALL 0x00142410
MOV RSI,qword ptr [RSP + 0x18]
MOV EDX,dword ptr [RSP + 0x24]
MOV RDI,qword ptr [RSP + 0x28]
MOV R8,RAX
MOV ECX,0x4
CALL 0x001423a0
MOV qword ptr [RSP + 0x38],RAX
MOV RDI,qword ptr [RSP + 0x40]
LEA RSI,[0x16bdba]
CALL 0x00119c10
MOV RAX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x38]
MOVSS XMM0,dword ptr [RAX + 0x60]
MOVSS XMM1,dword ptr [RAX + 0x64]
CALL 0x00119cf0
MOV qword ptr [RSP + 0x30],RAX
MOV RDI,qword ptr [RSP + 0x30]
LEA RSI,[0x16c384]
CALL 0x00119c10
MOV RAX,qword ptr [RSP + 0x30]
ADD RSP,0x58
RET
|
/* test_soft_max_back::build_graph(ggml_context*) */
int8 __thiscall
test_soft_max_back::build_graph(test_soft_max_back *this,ggml_context *param_1)
{
int4 uVar1;
int8 uVar2;
int8 uVar3;
uVar1 = *(int4 *)(this + 0x38);
uVar2 = std::array<long,4ul>::data((array<long,4ul> *)(this + 0x40));
uVar2 = test_case::ggml_new_tensor((test_case *)this,param_1,uVar1,4,uVar2);
ggml_set_name(uVar2,"a");
uVar1 = *(int4 *)(this + 0x38);
uVar3 = std::array<long,4ul>::data((array<long,4ul> *)(this + 0x40));
uVar3 = test_case::ggml_new_tensor((test_case *)this,param_1,uVar1,4,uVar3);
ggml_set_name(uVar2,"a");
uVar2 = ggml_soft_max_ext_back
(*(int4 *)(this + 0x60),*(int4 *)(this + 100),param_1,uVar2,uVar3);
ggml_set_name(uVar2,"out");
return uVar2;
}
| |
49,710 | stmt_buffered_fetch | eloqsql/libmariadb/libmariadb/mariadb_stmt.c | static int stmt_buffered_fetch(MYSQL_STMT *stmt, uchar **row)
{
if (!stmt->result_cursor)
{
*row= NULL;
stmt->state= MYSQL_STMT_FETCH_DONE;
return MYSQL_NO_DATA;
}
stmt->state= MYSQL_STMT_USER_FETCHING;
*row= (uchar *)stmt->result_cursor->data;
stmt->result_cursor= stmt->result_cursor->next;
return 0;
} | O0 | c | stmt_buffered_fetch:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0xe0(%rax)
jne 0x2ff79
movq -0x18(%rbp), %rax
movq $0x0, (%rax)
movq -0x10(%rbp), %rax
movl $0x6, 0x50(%rax)
movl $0x64, -0x4(%rbp)
jmp 0x2ffba
movq -0x10(%rbp), %rax
movl $0x5, 0x50(%rax)
movq -0x10(%rbp), %rax
movq 0xe0(%rax), %rax
movq 0x8(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0xe0(%rax), %rax
movq (%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0xe0(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nop
| stmt_buffered_fetch:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
cmp qword ptr [rax+0E0h], 0
jnz short loc_2FF79
mov rax, [rbp+var_18]
mov qword ptr [rax], 0
mov rax, [rbp+var_10]
mov dword ptr [rax+50h], 6
mov [rbp+var_4], 64h ; 'd'
jmp short loc_2FFBA
loc_2FF79:
mov rax, [rbp+var_10]
mov dword ptr [rax+50h], 5
mov rax, [rbp+var_10]
mov rax, [rax+0E0h]
mov rcx, [rax+8]
mov rax, [rbp+var_18]
mov [rax], rcx
mov rax, [rbp+var_10]
mov rax, [rax+0E0h]
mov rcx, [rax]
mov rax, [rbp+var_10]
mov [rax+0E0h], rcx
mov [rbp+var_4], 0
loc_2FFBA:
mov eax, [rbp+var_4]
pop rbp
retn
| long long stmt_buffered_fetch(long long a1, _QWORD *a2)
{
if ( *(_QWORD *)(a1 + 224) )
{
*(_DWORD *)(a1 + 80) = 5;
*a2 = *(_QWORD *)(*(_QWORD *)(a1 + 224) + 8LL);
*(_QWORD *)(a1 + 224) = **(_QWORD **)(a1 + 224);
return 0;
}
else
{
*a2 = 0LL;
*(_DWORD *)(a1 + 80) = 6;
return 100;
}
}
| stmt_buffered_fetch:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0xe0],0x0
JNZ 0x0012ff79
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x50],0x6
MOV dword ptr [RBP + -0x4],0x64
JMP 0x0012ffba
LAB_0012ff79:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x50],0x5
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xe0]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xe0]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0xe0],RCX
MOV dword ptr [RBP + -0x4],0x0
LAB_0012ffba:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 stmt_buffered_fetch(long param_1,int8 *param_2)
{
int4 local_c;
if (*(long *)(param_1 + 0xe0) == 0) {
*param_2 = 0;
*(int4 *)(param_1 + 0x50) = 6;
local_c = 100;
}
else {
*(int4 *)(param_1 + 0x50) = 5;
*param_2 = *(int8 *)(*(long *)(param_1 + 0xe0) + 8);
*(int8 *)(param_1 + 0xe0) = **(int8 **)(param_1 + 0xe0);
local_c = 0;
}
return local_c;
}
| |
49,711 | stmt_buffered_fetch | eloqsql/libmariadb/libmariadb/mariadb_stmt.c | static int stmt_buffered_fetch(MYSQL_STMT *stmt, uchar **row)
{
if (!stmt->result_cursor)
{
*row= NULL;
stmt->state= MYSQL_STMT_FETCH_DONE;
return MYSQL_NO_DATA;
}
stmt->state= MYSQL_STMT_USER_FETCHING;
*row= (uchar *)stmt->result_cursor->data;
stmt->result_cursor= stmt->result_cursor->next;
return 0;
} | O3 | c | stmt_buffered_fetch:
movq 0xe0(%rdi), %rax
testq %rax, %rax
je 0x24087
pushq %rbp
movq %rsp, %rbp
movl $0x5, 0x50(%rdi)
movq 0x8(%rax), %rax
movq %rax, (%rsi)
movq 0xe0(%rdi), %rax
movq (%rax), %rax
movq %rax, 0xe0(%rdi)
xorl %eax, %eax
popq %rbp
retq
movq $0x0, (%rsi)
movl $0x6, 0x50(%rdi)
movl $0x64, %eax
retq
| stmt_buffered_fetch:
mov rax, [rdi+0E0h]
test rax, rax
jz short loc_24087
push rbp
mov rbp, rsp
mov dword ptr [rdi+50h], 5
mov rax, [rax+8]
mov [rsi], rax
mov rax, [rdi+0E0h]
mov rax, [rax]
mov [rdi+0E0h], rax
xor eax, eax
pop rbp
retn
loc_24087:
mov qword ptr [rsi], 0
mov dword ptr [rdi+50h], 6
mov eax, 64h ; 'd'
retn
| long long stmt_buffered_fetch(long long a1, _QWORD *a2)
{
long long v2; // rax
v2 = *(_QWORD *)(a1 + 224);
if ( v2 )
{
*(_DWORD *)(a1 + 80) = 5;
*a2 = *(_QWORD *)(v2 + 8);
*(_QWORD *)(a1 + 224) = **(_QWORD **)(a1 + 224);
return 0LL;
}
else
{
*a2 = 0LL;
*(_DWORD *)(a1 + 80) = 6;
return 100LL;
}
}
| stmt_buffered_fetch:
MOV RAX,qword ptr [RDI + 0xe0]
TEST RAX,RAX
JZ 0x00124087
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RDI + 0x50],0x5
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSI],RAX
MOV RAX,qword ptr [RDI + 0xe0]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RDI + 0xe0],RAX
XOR EAX,EAX
POP RBP
RET
LAB_00124087:
MOV qword ptr [RSI],0x0
MOV dword ptr [RDI + 0x50],0x6
MOV EAX,0x64
RET
|
int8 stmt_buffered_fetch(long param_1,int8 *param_2)
{
if (*(long *)(param_1 + 0xe0) != 0) {
*(int4 *)(param_1 + 0x50) = 5;
*param_2 = *(int8 *)(*(long *)(param_1 + 0xe0) + 8);
*(int8 *)(param_1 + 0xe0) = **(int8 **)(param_1 + 0xe0);
return 0;
}
*param_2 = 0;
*(int4 *)(param_1 + 0x50) = 6;
return 100;
}
| |
49,712 | my_copy_incomplete_char | eloqsql/strings/ctype-ucs2.c | static my_char_copy_status_t
my_copy_incomplete_char(CHARSET_INFO *cs,
char *dst, size_t dst_length,
const char *src, size_t src_length,
size_t nchars, my_bool fix)
{
size_t pad_length;
size_t src_offset= src_length % cs->mbminlen;
if (dst_length < cs->mbminlen || !nchars)
return MY_CHAR_COPY_ERROR;
pad_length= cs->mbminlen - src_offset;
bzero(dst, pad_length);
memmove(dst + pad_length, src, src_offset);
/*
In some cases left zero-padding can create an incorrect character.
For example:
INSERT INTO t1 (utf32_column) VALUES (0x110000);
We'll pad the value to 0x00110000, which is a wrong UTF32 sequence!
The valid characters range is limited to 0x00000000..0x0010FFFF.
Make sure we didn't pad to an incorrect character.
*/
if (my_ci_charlen(cs, (uchar *) dst, (uchar *) dst + cs->mbminlen) ==
(int) cs->mbminlen)
return MY_CHAR_COPY_OK;
if (fix &&
my_ci_wc_mb(cs, '?', (uchar *) dst, (uchar *) dst + cs->mbminlen) ==
(int) cs->mbminlen)
return MY_CHAR_COPY_FIXED;
return MY_CHAR_COPY_ERROR;
} | O0 | c | my_copy_incomplete_char:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movb 0x10(%rbp), %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x98(%rcx), %ecx
xorl %edx, %edx
divq %rcx
movq %rdx, -0x48(%rbp)
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x98(%rcx), %ecx
cmpq %rcx, %rax
jb 0xbb814
cmpq $0x0, -0x38(%rbp)
jne 0xbb820
movl $0x1, -0x4(%rbp)
jmp 0xbb8dd
movq -0x10(%rbp), %rax
movl 0x98(%rax), %eax
subq -0x48(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rdi
movq -0x40(%rbp), %rdx
xorl %esi, %esi
callq 0x281c0
movq -0x18(%rbp), %rdi
addq -0x40(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x285c0
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x10(%rbp), %rax
movl 0x98(%rax), %eax
addq %rax, %rdx
callq 0xbb8f0
movq -0x10(%rbp), %rcx
cmpl 0x98(%rcx), %eax
jne 0xbb889
movl $0x0, -0x4(%rbp)
jmp 0xbb8dd
movsbl 0x10(%rbp), %eax
cmpl $0x0, %eax
je 0xbb8d6
movq -0x10(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x30(%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rsi
movl 0x98(%rsi), %esi
addq %rsi, %rcx
movl $0x3f, %esi
callq *%rax
movq -0x10(%rbp), %rcx
cmpl 0x98(%rcx), %eax
jne 0xbb8d6
movl $0x2, -0x4(%rbp)
jmp 0xbb8dd
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_copy_incomplete_char:
push rbp
mov rbp, rsp
sub rsp, 50h
mov al, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
mov rax, [rbp+var_30]
mov rcx, [rbp+var_10]
mov ecx, [rcx+98h]
xor edx, edx
div rcx
mov [rbp+var_48], rdx
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
mov ecx, [rcx+98h]
cmp rax, rcx
jb short loc_BB814
cmp [rbp+var_38], 0
jnz short loc_BB820
loc_BB814:
mov [rbp+var_4], 1
jmp loc_BB8DD
loc_BB820:
mov rax, [rbp+var_10]
mov eax, [rax+98h]
sub rax, [rbp+var_48]
mov [rbp+var_40], rax
mov rdi, [rbp+var_18]
mov rdx, [rbp+var_40]
xor esi, esi
call _memset
mov rdi, [rbp+var_18]
add rdi, [rbp+var_40]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_48]
call _memmove
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_18]
mov rax, [rbp+var_10]
mov eax, [rax+98h]
add rdx, rax
call my_ci_charlen_3
mov rcx, [rbp+var_10]
cmp eax, [rcx+98h]
jnz short loc_BB889
mov [rbp+var_4], 0
jmp short loc_BB8DD
loc_BB889:
movsx eax, [rbp+arg_0]
cmp eax, 0
jz short loc_BB8D6
mov rax, [rbp+var_10]
mov rax, [rax+0B8h]
mov rax, [rax+30h]
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_18]
mov rsi, [rbp+var_10]
mov esi, [rsi+98h]
add rcx, rsi
mov esi, 3Fh ; '?'
call rax
mov rcx, [rbp+var_10]
cmp eax, [rcx+98h]
jnz short loc_BB8D6
mov [rbp+var_4], 2
jmp short loc_BB8DD
loc_BB8D6:
mov [rbp+var_4], 1
loc_BB8DD:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
| long long my_copy_incomplete_char(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
long long a6,
char a7)
{
unsigned long long v8; // [rsp+8h] [rbp-48h]
unsigned long long v9; // [rsp+10h] [rbp-40h]
v8 = a5 % *(unsigned int *)(a1 + 152);
if ( a3 >= *(unsigned int *)(a1 + 152) && a6 )
{
v9 = *(unsigned int *)(a1 + 152) - v8;
memset(a2, 0LL, v9);
memmove(v9 + a2, a4, v8);
if ( (unsigned int)my_ci_charlen_3(a1, a2, *(unsigned int *)(a1 + 152) + a2) == *(_DWORD *)(a1 + 152) )
{
return 0;
}
else if ( a7
&& (*(unsigned int ( **)(long long, long long, long long, long long))(*(_QWORD *)(a1 + 184) + 48LL))(
a1,
63LL,
a2,
*(unsigned int *)(a1 + 152) + a2) == *(_DWORD *)(a1 + 152) )
{
return 2;
}
else
{
return 1;
}
}
else
{
return 1;
}
}
| my_copy_incomplete_char:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV AL,byte ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0x98]
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0x48],RDX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0x98]
CMP RAX,RCX
JC 0x001bb814
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x001bb820
LAB_001bb814:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001bb8dd
LAB_001bb820:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x98]
SUB RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x40]
XOR ESI,ESI
CALL 0x001281c0
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x48]
CALL 0x001285c0
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x98]
ADD RDX,RAX
CALL 0x001bb8f0
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0x98]
JNZ 0x001bb889
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001bb8dd
LAB_001bb889:
MOVSX EAX,byte ptr [RBP + 0x10]
CMP EAX,0x0
JZ 0x001bb8d6
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RSI + 0x98]
ADD RCX,RSI
MOV ESI,0x3f
CALL RAX
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0x98]
JNZ 0x001bb8d6
MOV dword ptr [RBP + -0x4],0x2
JMP 0x001bb8dd
LAB_001bb8d6:
MOV dword ptr [RBP + -0x4],0x1
LAB_001bb8dd:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
int4
my_copy_incomplete_char
(long param_1,void *param_2,ulong param_3,void *param_4,ulong param_5,long param_6,
char param_7)
{
int iVar1;
size_t __n;
int4 local_c;
param_5 = param_5 % (ulong)*(uint *)(param_1 + 0x98);
if ((param_3 < *(uint *)(param_1 + 0x98)) || (param_6 == 0)) {
local_c = 1;
}
else {
__n = *(uint *)(param_1 + 0x98) - param_5;
memset(param_2,0,__n);
memmove((void *)((long)param_2 + __n),param_4,param_5);
iVar1 = my_ci_charlen(param_1,param_2,(long)param_2 + (ulong)*(uint *)(param_1 + 0x98));
if (iVar1 == *(int *)(param_1 + 0x98)) {
local_c = 0;
}
else {
if ((param_7 != '\0') &&
(iVar1 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30))
(param_1,0x3f,param_2,(long)param_2 + (ulong)*(uint *)(param_1 + 0x98)),
iVar1 == *(int *)(param_1 + 0x98))) {
return 2;
}
local_c = 1;
}
}
return local_c;
}
| |
49,713 | SchemaConverter::_add_rule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/common/json-schema-to-grammar.cpp | std::string _add_rule(const std::string & name, const std::string & rule) {
std::string esc_name = regex_replace(name, INVALID_RULE_CHARS_RE, "-");
if (_rules.find(esc_name) == _rules.end() || _rules[esc_name] == rule) {
_rules[esc_name] = rule;
return esc_name;
} else {
int i = 0;
while (_rules.find(esc_name + std::to_string(i)) != _rules.end() && _rules[esc_name + std::to_string(i)] != rule) {
i++;
}
std::string key = esc_name + std::to_string(i);
_rules[key] = rule;
return key;
}
} | O2 | cpp | SchemaConverter::_add_rule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rcx, 0x10(%rsp)
movq %rsi, %r14
movq %rdi, %r13
leaq 0x7042d(%rip), %rax # 0x1003e0
leaq 0x210df(%rip), %rcx # 0xb1099
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
movq %rdx, %rsi
movq %rax, %rdx
xorl %r8d, %r8d
callq 0x73a50
leaq 0x28(%r14), %rdi
movq %rdi, 0x8(%rsp)
movq %rbx, %rsi
callq 0x90276
addq $0x30, %r14
cmpq %r14, %rax
je 0x9000a
leaq 0x18(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x90210
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x3c1ae
testb %al, %al
je 0x90052
leaq 0x18(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x90210
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x234d0
leaq 0x10(%r13), %rcx
movq %rcx, (%r13)
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdx
cmpq %rax, %rdx
je 0x90108
movq %rdx, (%r13)
movq 0x28(%rsp), %rcx
movq %rcx, 0x10(%r13)
jmp 0x9010e
xorl %esi, %esi
leaq 0x78(%rsp), %rbx
leaq 0x38(%rsp), %r12
movq %rbx, %rdi
movl %esi, 0x4(%rsp)
callq 0x3f6ed
movq %r12, %rdi
leaq 0x18(%rsp), %rsi
movq %rbx, %rdx
callq 0x7c9a8
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x90276
cmpq %r14, %rax
je 0x90129
leaq 0x58(%rsp), %r15
movq %r15, %rdi
movl 0x4(%rsp), %esi
callq 0x3f6ed
leaq 0x98(%rsp), %rbp
movq %rbp, %rdi
leaq 0x18(%rsp), %rsi
movq %r15, %rdx
callq 0x7c9a8
movq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0x8ecae
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x5a136
movl %eax, %r15d
movq %rbp, %rdi
callq 0x242a8
leaq 0x58(%rsp), %rdi
callq 0x242a8
movq %r12, %rdi
callq 0x242a8
movq %rbx, %rdi
callq 0x242a8
testb %r15b, %r15b
je 0x9013d
movl 0x4(%rsp), %esi
incl %esi
jmp 0x9005e
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x20(%rsp), %rcx
movq %rcx, 0x8(%r13)
movq %rax, 0x18(%rsp)
andq $0x0, 0x20(%rsp)
movb $0x0, 0x28(%rsp)
jmp 0x90181
leaq 0x38(%rsp), %rdi
callq 0x242a8
leaq 0x78(%rsp), %rdi
callq 0x242a8
leaq 0x38(%rsp), %rdi
movl 0x4(%rsp), %esi
callq 0x3f6ed
leaq 0x18(%rsp), %rsi
leaq 0x38(%rsp), %rdx
movq %r13, %rdi
callq 0x7c9a8
leaq 0x38(%rsp), %rdi
callq 0x242a8
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0x90210
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x234d0
leaq 0x18(%rsp), %rdi
callq 0x242a8
movq %r13, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
jmp 0x901f9
jmp 0x901ec
movq %rax, %rbx
movq %r13, %rdi
jmp 0x901f9
jmp 0x901ec
jmp 0x901ec
jmp 0x901ec
movq %rax, %rbx
jmp 0x901d1
jmp 0x901dd
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x242a8
leaq 0x58(%rsp), %rdi
callq 0x242a8
jmp 0x901e0
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x242a8
jmp 0x901f4
movq %rax, %rbx
jmp 0x901fe
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x242a8
leaq 0x18(%rsp), %rdi
callq 0x242a8
movq %rbx, %rdi
callq 0x24030
| _ZN15SchemaConverter9_add_ruleERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov [rsp+0E8h+var_D8], rcx
mov r14, rsi
mov r13, rdi
lea rax, _Z21INVALID_RULE_CHARS_REB5cxx11; INVALID_RULE_CHARS_RE
lea rcx, asc_B1098+1; "-"
lea rbx, [rsp+0E8h+var_D0]
mov rdi, rbx
mov rsi, rdx
mov rdx, rax
xor r8d, r8d
call _ZSt13regex_replaceINSt7__cxx1112regex_traitsIcEEcSt11char_traitsIcESaIcEENS0_12basic_stringIT0_T1_T2_EERKSA_RKNS0_11basic_regexIS7_T_EEPKS7_NSt15regex_constants15match_flag_typeE; std::regex_replace<std::regex_traits<char>,char,std::char_traits<char>,std::allocator<char>>(std::string const&,std::basic_regex<char,std::regex_traits<char>> const&,char const*,std::regex_constants::match_flag_type)
lea rdi, [r14+28h]
mov [rsp+0E8h+var_E0], rdi
mov rsi, rbx
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE4findERS7_; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::find(std::string const&)
add r14, 30h ; '0'
cmp rax, r14
jz short loc_9000A
lea rsi, [rsp+0E8h+var_D0]
mov rdi, [rsp+0E8h+var_E0]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_; std::map<std::string,std::string>::operator[](std::string const&)
mov rdi, rax
mov rsi, [rsp+0E8h+var_D8]
call _ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_
test al, al
jz short loc_90052
loc_9000A:
lea rsi, [rsp+0E8h+var_D0]
mov rdi, [rsp+0E8h+var_E0]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_; std::map<std::string,std::string>::operator[](std::string const&)
mov rdi, rax
mov rsi, [rsp+0E8h+var_D8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
lea rcx, [r13+10h]
mov [r13+0], rcx
lea rax, [rsp+0E8h+var_C0]
mov rdx, [rax-10h]
cmp rdx, rax
jz loc_90108
mov [r13+0], rdx
mov rcx, [rsp+0E8h+var_C0]
mov [r13+10h], rcx
jmp loc_9010E
loc_90052:
xor esi, esi; int
lea rbx, [rsp+0E8h+var_70]
lea r12, [rsp+0E8h+var_B0]
loc_9005E:
mov rdi, rbx; this
mov [rsp+0E8h+var_E4], esi
call _ZNSt7__cxx119to_stringEi; std::to_string(int)
mov rdi, r12
lea rsi, [rsp+0E8h+var_D0]
mov rdx, rbx
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_OS8_; std::operator+<char>(std::string const&,std::string&&)
mov rdi, [rsp+0E8h+var_E0]
mov rsi, r12
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE4findERS7_; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::find(std::string const&)
cmp rax, r14
jz loc_90129
lea r15, [rsp+0E8h+var_90]
mov rdi, r15; this
mov esi, [rsp+0E8h+var_E4]; int
call _ZNSt7__cxx119to_stringEi; std::to_string(int)
lea rbp, [rsp+0E8h+var_50]
mov rdi, rbp
lea rsi, [rsp+0E8h+var_D0]
mov rdx, r15
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_OS8_; std::operator+<char>(std::string const&,std::string&&)
mov rdi, [rsp+0E8h+var_E0]
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, [rsp+0E8h+var_D8]
call _ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_; std::operator!=<char>(std::string const&,std::string const&)
mov r15d, eax
mov rdi, rbp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0E8h+var_90]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r12; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test r15b, r15b
jz short loc_9013D
mov esi, [rsp+0E8h+var_E4]
inc esi
jmp loc_9005E
loc_90108:
movups xmm0, xmmword ptr [rax]
movups xmmword ptr [rcx], xmm0
loc_9010E:
mov rcx, [rsp+0E8h+var_C8]
mov [r13+8], rcx
mov [rsp+0E8h+var_D0], rax
and [rsp+0E8h+var_C8], 0
mov byte ptr [rsp+0E8h+var_C0], 0
jmp short loc_90181
loc_90129:
lea rdi, [rsp+0E8h+var_B0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0E8h+var_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_9013D:
lea rdi, [rsp+0E8h+var_B0]; this
mov esi, [rsp+0E8h+var_E4]; int
call _ZNSt7__cxx119to_stringEi; std::to_string(int)
lea rsi, [rsp+0E8h+var_D0]
lea rdx, [rsp+0E8h+var_B0]
mov rdi, r13
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_OS8_; std::operator+<char>(std::string const&,std::string&&)
lea rdi, [rsp+0E8h+var_B0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, [rsp+0E8h+var_E0]
mov rsi, r13
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_; std::map<std::string,std::string>::operator[](std::string const&)
mov rdi, rax
mov rsi, [rsp+0E8h+var_D8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
loc_90181:
lea rdi, [rsp+0E8h+var_D0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, r13
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_30]
jmp short loc_901F9
jmp short loc_901EC
mov rbx, rax
mov rdi, r13
jmp short loc_901F9
jmp short loc_901EC
jmp short loc_901EC
jmp short loc_901EC
mov rbx, rax
jmp short loc_901D1
jmp short loc_901DD
mov rbx, rax
lea rdi, [rsp+arg_90]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_901D1:
lea rdi, [rsp+arg_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_901E0
loc_901DD:
mov rbx, rax
loc_901E0:
lea rdi, [rsp+arg_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_901F4
loc_901EC:
mov rbx, rax
jmp short loc_901FE
mov rbx, rax
loc_901F4:
lea rdi, [rsp+arg_70]; void *
loc_901F9:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_901FE:
lea rdi, [rsp+arg_10]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx
call __Unwind_Resume
| long long SchemaConverter::_add_rule(long long a1, long long a2, _QWORD *a3, _QWORD *a4)
{
long long v4; // r14
_QWORD *v5; // rax
long long v6; // rax
int i; // esi
_QWORD *v8; // rax
bool v9; // r15
long long v10; // rax
long long v12; // [rsp+8h] [rbp-E0h]
__int128 *v14; // [rsp+18h] [rbp-D0h] BYREF
long long v15; // [rsp+20h] [rbp-C8h]
__int128 v16; // [rsp+28h] [rbp-C0h] BYREF
_BYTE v17[32]; // [rsp+38h] [rbp-B0h] BYREF
_BYTE v18[32]; // [rsp+58h] [rbp-90h] BYREF
_BYTE v19[32]; // [rsp+78h] [rbp-70h] BYREF
_BYTE v20[80]; // [rsp+98h] [rbp-50h] BYREF
std::regex_replace<std::regex_traits<char>,char,std::char_traits<char>,std::allocator<char>>(
(long long)&v14,
a3,
(long long)&INVALID_RULE_CHARS_RE[abi:cxx11],
(long long)"-",
0);
v12 = a2 + 40;
v4 = a2 + 48;
if ( std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::find(
a2 + 40,
&v14) == a2 + 48
|| (v5 = (_QWORD *)std::map<std::string,std::string>::operator[](v12, &v14), std::operator==<char>(v5, a4)) )
{
v6 = std::map<std::string,std::string>::operator[](v12, &v14);
std::string::_M_assign(v6, a4);
*(_QWORD *)a1 = a1 + 16;
if ( v14 == &v16 )
{
*(_OWORD *)(a1 + 16) = v16;
}
else
{
*(_QWORD *)a1 = v14;
*(_QWORD *)(a1 + 16) = v16;
}
*(_QWORD *)(a1 + 8) = v15;
v14 = &v16;
v15 = 0LL;
LOBYTE(v16) = 0;
}
else
{
for ( i = 0; ; ++i )
{
std::to_string((std::__cxx11 *)v19, i);
std::operator+<char>((long long)v17, (long long)&v14, (long long)v19);
if ( std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::find(
v12,
v17) == v4 )
break;
std::to_string((std::__cxx11 *)v18, i);
std::operator+<char>((long long)v20, (long long)&v14, (long long)v18);
v8 = (_QWORD *)std::map<std::string,std::string>::operator[](v12, (long long)v20);
v9 = std::operator!=<char>(v8, a4);
std::string::~string(v20);
std::string::~string(v18);
std::string::~string(v17);
std::string::~string(v19);
if ( !v9 )
goto LABEL_12;
}
std::string::~string(v17);
std::string::~string(v19);
LABEL_12:
std::to_string((std::__cxx11 *)v17, i);
std::operator+<char>(a1, (long long)&v14, (long long)v17);
std::string::~string(v17);
v10 = std::map<std::string,std::string>::operator[](v12, a1);
std::string::_M_assign(v10, a4);
}
std::string::~string(&v14);
return a1;
}
| _add_rule:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV qword ptr [RSP + 0x10],RCX
MOV R14,RSI
MOV R13,RDI
LEA RAX,[0x2003e0]
LEA RCX,[0x1b1099]
LEA RBX,[RSP + 0x18]
MOV RDI,RBX
MOV RSI,RDX
MOV RDX,RAX
XOR R8D,R8D
CALL 0x00173a50
LEA RDI,[R14 + 0x28]
LAB_0018ffd4:
MOV qword ptr [RSP + 0x8],RDI
MOV RSI,RBX
CALL 0x00190276
ADD R14,0x30
CMP RAX,R14
JZ 0x0019000a
LAB_0018ffea:
LEA RSI,[RSP + 0x18]
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00190210
MOV RDI,RAX
MOV RSI,qword ptr [RSP + 0x10]
CALL 0x0013c1ae
TEST AL,AL
JZ 0x00190052
LAB_0019000a:
LEA RSI,[RSP + 0x18]
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00190210
MOV RDI,RAX
MOV RSI,qword ptr [RSP + 0x10]
CALL 0x001234d0
LEA RCX,[R13 + 0x10]
MOV qword ptr [R13],RCX
LEA RAX,[RSP + 0x28]
MOV RDX,qword ptr [RAX + -0x10]
CMP RDX,RAX
JZ 0x00190108
MOV qword ptr [R13],RDX
MOV RCX,qword ptr [RSP + 0x28]
MOV qword ptr [R13 + 0x10],RCX
JMP 0x0019010e
LAB_00190052:
XOR ESI,ESI
LEA RBX,[RSP + 0x78]
LEA R12,[RSP + 0x38]
LAB_0019005e:
MOV RDI,RBX
MOV dword ptr [RSP + 0x4],ESI
CALL 0x0013f6ed
LAB_0019006a:
MOV RDI,R12
LEA RSI,[RSP + 0x18]
MOV RDX,RBX
CALL 0x0017c9a8
LAB_0019007a:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,R12
CALL 0x00190276
CMP RAX,R14
JZ 0x00190129
LAB_00190090:
LEA R15,[RSP + 0x58]
MOV RDI,R15
MOV ESI,dword ptr [RSP + 0x4]
CALL 0x0013f6ed
LAB_001900a1:
LEA RBP,[RSP + 0x98]
MOV RDI,RBP
LEA RSI,[RSP + 0x18]
MOV RDX,R15
CALL 0x0017c9a8
LAB_001900b9:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,RBP
CALL 0x0018ecae
MOV RDI,RAX
MOV RSI,qword ptr [RSP + 0x10]
CALL 0x0015a136
MOV R15D,EAX
MOV RDI,RBP
CALL 0x001242a8
LEA RDI,[RSP + 0x58]
CALL 0x001242a8
MOV RDI,R12
CALL 0x001242a8
MOV RDI,RBX
CALL 0x001242a8
TEST R15B,R15B
JZ 0x0019013d
MOV ESI,dword ptr [RSP + 0x4]
INC ESI
JMP 0x0019005e
LAB_00190108:
MOVUPS XMM0,xmmword ptr [RAX]
MOVUPS xmmword ptr [RCX],XMM0
LAB_0019010e:
MOV RCX,qword ptr [RSP + 0x20]
MOV qword ptr [R13 + 0x8],RCX
MOV qword ptr [RSP + 0x18],RAX
AND qword ptr [RSP + 0x20],0x0
MOV byte ptr [RSP + 0x28],0x0
JMP 0x00190181
LAB_00190129:
LEA RDI,[RSP + 0x38]
CALL 0x001242a8
LEA RDI,[RSP + 0x78]
CALL 0x001242a8
LAB_0019013d:
LEA RDI,[RSP + 0x38]
MOV ESI,dword ptr [RSP + 0x4]
CALL 0x0013f6ed
LAB_0019014b:
LEA RSI,[RSP + 0x18]
LEA RDX,[RSP + 0x38]
MOV RDI,R13
CALL 0x0017c9a8
LEA RDI,[RSP + 0x38]
CALL 0x001242a8
LAB_00190167:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,R13
CALL 0x00190210
MOV RDI,RAX
MOV RSI,qword ptr [RSP + 0x10]
CALL 0x001234d0
LAB_00190181:
LEA RDI,[RSP + 0x18]
CALL 0x001242a8
MOV RAX,R13
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* SchemaConverter::_add_rule(std::__cxx11::string const&, std::__cxx11::string const&) */
string * SchemaConverter::_add_rule(string *param_1,string *param_2)
{
_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>>>
*this;
char cVar1;
bool bVar2;
string *psVar3;
string *in_RCX;
int iVar4;
int1 *local_d0;
int8 local_c8;
int1 local_c0;
int7 uStack_bf;
int8 uStack_b8;
string local_b0 [32];
__cxx11 local_90 [32];
__cxx11 local_70 [32];
string local_50 [32];
std::
regex_replace<std::__cxx11::regex_traits<char>,char,std::char_traits<char>,std::allocator<char>>
((string *)&local_d0);
this = (_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>>>
*)(param_2 + 0x28);
/* try { // try from 0018ffd4 to 0018ffe0 has its CatchHandler @ 001901b6 */
psVar3 = (string *)
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::find(this,(string *)&local_d0);
if (psVar3 != param_2 + 0x30) {
/* try { // try from 0018ffea to 0018fff8 has its CatchHandler @ 001901b4 */
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[]((map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
*)this,(string *)&local_d0);
cVar1 = std::operator==(psVar3,in_RCX);
if (cVar1 == '\0') {
iVar4 = 0;
while( true ) {
/* try { // try from 0019005e to 00190069 has its CatchHandler @ 001901ec */
std::__cxx11::to_string(local_70,iVar4);
/* try { // try from 0019006a to 00190079 has its CatchHandler @ 001901f1 */
std::operator+(local_b0,(string *)&local_d0);
/* try { // try from 0019007a to 00190086 has its CatchHandler @ 001901dd */
psVar3 = (string *)
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::find(this,local_b0);
if (psVar3 == param_2 + 0x30) break;
/* try { // try from 00190090 to 001900a0 has its CatchHandler @ 001901bf */
std::__cxx11::to_string(local_90,iVar4);
/* try { // try from 001900a1 to 001900b8 has its CatchHandler @ 001901ba */
std::operator+(local_50,(string *)&local_d0);
/* try { // try from 001900b9 to 001900c5 has its CatchHandler @ 001901c1 */
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[]((map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
*)this,local_50);
bVar2 = std::operator!=(psVar3,in_RCX);
std::__cxx11::string::~string(local_50);
std::__cxx11::string::~string((string *)local_90);
std::__cxx11::string::~string(local_b0);
std::__cxx11::string::~string((string *)local_70);
if (!bVar2) goto LAB_0019013d;
iVar4 = iVar4 + 1;
}
std::__cxx11::string::~string(local_b0);
std::__cxx11::string::~string((string *)local_70);
LAB_0019013d:
/* try { // try from 0019013d to 0019014a has its CatchHandler @ 001901aa */
std::__cxx11::to_string((__cxx11 *)local_b0,iVar4);
/* try { // try from 0019014b to 0019015c has its CatchHandler @ 001901a0 */
std::operator+(param_1,(string *)&local_d0);
std::__cxx11::string::~string(local_b0);
/* try { // try from 00190167 to 00190180 has its CatchHandler @ 001901ac */
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[]((map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
*)this,param_1);
std::__cxx11::string::_M_assign(psVar3);
goto LAB_00190181;
}
}
/* try { // try from 0019000a to 00190025 has its CatchHandler @ 001901b8 */
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[]((map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
*)this,(string *)&local_d0);
std::__cxx11::string::_M_assign(psVar3);
*(string **)param_1 = param_1 + 0x10;
if (local_d0 == &local_c0) {
*(ulong *)(param_1 + 0x10) = CONCAT71(uStack_bf,local_c0);
*(int8 *)(param_1 + 0x18) = uStack_b8;
}
else {
*(int1 **)param_1 = local_d0;
*(ulong *)(param_1 + 0x10) = CONCAT71(uStack_bf,local_c0);
}
*(int8 *)(param_1 + 8) = local_c8;
local_c8 = 0;
local_c0 = 0;
local_d0 = &local_c0;
LAB_00190181:
std::__cxx11::string::~string((string *)&local_d0);
return param_1;
}
| |
49,714 | minja::SliceExpr::SliceExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&) | monkey531[P]llama/common/./minja.hpp | SliceExpr(const Location & location, std::shared_ptr<Expression> && s, std::shared_ptr<Expression> && e)
: Expression(location), start(std::move(s)), end(std::move(e)) {} | O2 | cpp | minja::SliceExpr::SliceExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&):
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
callq 0x3aef0
leaq 0x9559a(%rip), %rax # 0xe06f8
movq %rax, (%r15)
andq $0x0, 0x28(%r15)
movups (%r14), %xmm0
andq $0x0, 0x8(%r14)
movups %xmm0, 0x20(%r15)
andq $0x0, (%r14)
andq $0x0, 0x38(%r15)
movups (%rbx), %xmm0
andq $0x0, 0x8(%rbx)
movups %xmm0, 0x30(%r15)
andq $0x0, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
| _ZN5minja9SliceExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEES7_:
push r15
push r14
push rbx
mov rbx, rcx
mov r14, rdx
mov r15, rdi
call _ZN5minja10ExpressionC2ERKNS_8LocationE; minja::Expression::Expression(minja::Location const&)
lea rax, off_E06F8
mov [r15], rax
and qword ptr [r15+28h], 0
movups xmm0, xmmword ptr [r14]
and qword ptr [r14+8], 0
movups xmmword ptr [r15+20h], xmm0
and qword ptr [r14], 0
and qword ptr [r15+38h], 0
movups xmm0, xmmword ptr [rbx]
and qword ptr [rbx+8], 0
movups xmmword ptr [r15+30h], xmm0
and qword ptr [rbx], 0
pop rbx
pop r14
pop r15
retn
| void ( __noreturn ** minja::SliceExpr::SliceExpr(
long long a1,
_QWORD *a2,
__int128 *a3,
__int128 *a4))()
{
void ( __noreturn **result)(); // rax
__int128 v7; // xmm0
__int128 v8; // xmm0
minja::Expression::Expression((_QWORD *)a1, a2);
result = &off_E06F8;
*(_QWORD *)a1 = &off_E06F8;
*(_QWORD *)(a1 + 40) = 0LL;
v7 = *a3;
*((_QWORD *)a3 + 1) = 0LL;
*(_OWORD *)(a1 + 32) = v7;
*(_QWORD *)a3 = 0LL;
*(_QWORD *)(a1 + 56) = 0LL;
v8 = *a4;
*((_QWORD *)a4 + 1) = 0LL;
*(_OWORD *)(a1 + 48) = v8;
*(_QWORD *)a4 = 0LL;
return result;
}
| SliceExpr:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RCX
MOV R14,RDX
MOV R15,RDI
CALL 0x0013aef0
LEA RAX,[0x1e06f8]
MOV qword ptr [R15],RAX
AND qword ptr [R15 + 0x28],0x0
MOVUPS XMM0,xmmword ptr [R14]
AND qword ptr [R14 + 0x8],0x0
MOVUPS xmmword ptr [R15 + 0x20],XMM0
AND qword ptr [R14],0x0
AND qword ptr [R15 + 0x38],0x0
MOVUPS XMM0,xmmword ptr [RBX]
AND qword ptr [RBX + 0x8],0x0
MOVUPS xmmword ptr [R15 + 0x30],XMM0
AND qword ptr [RBX],0x0
POP RBX
POP R14
POP R15
RET
|
/* minja::SliceExpr::SliceExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&,
std::shared_ptr<minja::Expression>&&) */
void __thiscall
minja::SliceExpr::SliceExpr
(SliceExpr *this,Location *param_1,shared_ptr *param_2,shared_ptr *param_3)
{
int8 uVar1;
Expression::Expression((Expression *)this,param_1);
*(int ***)this = &PTR_do_evaluate_001e06f8;
*(int8 *)(this + 0x28) = 0;
uVar1 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = 0;
*(int8 *)(this + 0x20) = *(int8 *)param_2;
*(int8 *)(this + 0x28) = uVar1;
*(int8 *)param_2 = 0;
*(int8 *)(this + 0x38) = 0;
uVar1 = *(int8 *)(param_3 + 8);
*(int8 *)(param_3 + 8) = 0;
*(int8 *)(this + 0x30) = *(int8 *)param_3;
*(int8 *)(this + 0x38) = uVar1;
*(int8 *)param_3 = 0;
return;
}
| |
49,715 | minja::SliceExpr::SliceExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&) | monkey531[P]llama/common/./minja.hpp | SliceExpr(const Location & location, std::shared_ptr<Expression> && s, std::shared_ptr<Expression> && e)
: Expression(location), start(std::move(s)), end(std::move(e)) {} | O3 | cpp | minja::SliceExpr::SliceExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&):
pushq %rbx
movq %rdi, %rbx
leaq 0x9db71(%rip), %rax # 0xee6f8
movq %rax, (%rdi)
movq 0x38(%rdi), %rdi
testq %rdi, %rdi
je 0x50b98
callq 0x2f80e
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x50ba6
callq 0x2f80e
leaq 0x9d6db(%rip), %rax # 0xee288
movq %rax, (%rbx)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x50bbf
popq %rbx
jmp 0x2f80e
popq %rbx
retq
nop
| _ZN5minja9SliceExprD2Ev:
push rbx
mov rbx, rdi
lea rax, off_EE6F8
mov [rdi], rax
mov rdi, [rdi+38h]
test rdi, rdi
jz short loc_50B98
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_50B98:
mov rdi, [rbx+28h]
test rdi, rdi
jz short loc_50BA6
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_50BA6:
lea rax, off_EE288
mov [rbx], rax
mov rdi, [rbx+10h]
test rdi, rdi
jz short loc_50BBF
pop rbx
jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_50BBF:
pop rbx
retn
| void minja::SliceExpr::~SliceExpr(minja::SliceExpr *this)
{
volatile signed __int32 *v2; // rdi
volatile signed __int32 *v3; // rdi
volatile signed __int32 *v4; // rdi
*(_QWORD *)this = &off_EE6F8;
v2 = (volatile signed __int32 *)*((_QWORD *)this + 7);
if ( v2 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2);
v3 = (volatile signed __int32 *)*((_QWORD *)this + 5);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
*(_QWORD *)this = &off_EE288;
v4 = (volatile signed __int32 *)*((_QWORD *)this + 2);
if ( v4 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v4);
}
| ~SliceExpr:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x1ee6f8]
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x38]
TEST RDI,RDI
JZ 0x00150b98
CALL 0x0012f80e
LAB_00150b98:
MOV RDI,qword ptr [RBX + 0x28]
TEST RDI,RDI
JZ 0x00150ba6
CALL 0x0012f80e
LAB_00150ba6:
LEA RAX,[0x1ee288]
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x10]
TEST RDI,RDI
JZ 0x00150bbf
POP RBX
JMP 0x0012f80e
LAB_00150bbf:
POP RBX
RET
|
/* minja::SliceExpr::~SliceExpr() */
void __thiscall minja::SliceExpr::~SliceExpr(SliceExpr *this)
{
*(int ***)this = &PTR_do_evaluate_001ee6f8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38));
}
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28));
}
*(int ***)this = &PTR___cxa_pure_virtual_001ee288;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10));
return;
}
return;
}
| |
49,716 | google::protobuf::Append4(char*, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/strutil.cc | static char *Append4(char *out, const AlphaNum &x1, const AlphaNum &x2,
const AlphaNum &x3, const AlphaNum &x4) {
if (x1.size() > 0) {
memcpy(out, x1.data(), x1.size());
out += x1.size();
}
if (x2.size() > 0) {
memcpy(out, x2.data(), x2.size());
out += x2.size();
}
if (x3.size() > 0) {
memcpy(out, x3.data(), x3.size());
out += x3.size();
}
if (x4.size() > 0) {
memcpy(out, x4.data(), x4.size());
out += x4.size();
}
return out;
} | O3 | cpp | google::protobuf::Append4(char*, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, %rbx
movq 0x8(%rsi), %rdx
testq %rdx, %rdx
je 0x19aa0
movq %rsi, %r13
movq (%rsi), %rsi
movq %rbx, %rdi
callq 0xf2f0
addq 0x8(%r13), %rbx
movq 0x8(%r12), %rdx
testq %rdx, %rdx
je 0x19abb
movq (%r12), %rsi
movq %rbx, %rdi
callq 0xf2f0
addq 0x8(%r12), %rbx
movq 0x8(%r15), %rdx
testq %rdx, %rdx
je 0x19ad3
movq (%r15), %rsi
movq %rbx, %rdi
callq 0xf2f0
addq 0x8(%r15), %rbx
movq 0x8(%r14), %rdx
testq %rdx, %rdx
je 0x19aeb
movq (%r14), %rsi
movq %rbx, %rdi
callq 0xf2f0
addq 0x8(%r14), %rbx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
| _ZN6google8protobufL7Append4EPcRKNS0_7strings8AlphaNumES5_S5_S5_:
push r15
push r14
push r13
push r12
push rbx
mov r14, r8
mov r15, rcx
mov r12, rdx
mov rbx, rdi
mov rdx, [rsi+8]
test rdx, rdx
jz short loc_19AA0
mov r13, rsi
mov rsi, [rsi]
mov rdi, rbx
call _memcpy
add rbx, [r13+8]
loc_19AA0:
mov rdx, [r12+8]
test rdx, rdx
jz short loc_19ABB
mov rsi, [r12]
mov rdi, rbx
call _memcpy
add rbx, [r12+8]
loc_19ABB:
mov rdx, [r15+8]
test rdx, rdx
jz short loc_19AD3
mov rsi, [r15]
mov rdi, rbx
call _memcpy
add rbx, [r15+8]
loc_19AD3:
mov rdx, [r14+8]
test rdx, rdx
jz short loc_19AEB
mov rsi, [r14]
mov rdi, rbx
call _memcpy
add rbx, [r14+8]
loc_19AEB:
mov rax, rbx
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
| long long google::protobuf::Append4(long long a1, long long a2, long long a3, long long a4, long long a5)
{
long long v8; // rbx
v8 = a1;
if ( *(_QWORD *)(a2 + 8) )
{
memcpy(a1);
v8 = *(_QWORD *)(a2 + 8) + a1;
}
if ( *(_QWORD *)(a3 + 8) )
{
memcpy(v8);
v8 += *(_QWORD *)(a3 + 8);
}
if ( *(_QWORD *)(a4 + 8) )
{
memcpy(v8);
v8 += *(_QWORD *)(a4 + 8);
}
if ( *(_QWORD *)(a5 + 8) )
{
memcpy(v8);
v8 += *(_QWORD *)(a5 + 8);
}
return v8;
}
| Append4:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R14,R8
MOV R15,RCX
MOV R12,RDX
MOV RBX,RDI
MOV RDX,qword ptr [RSI + 0x8]
TEST RDX,RDX
JZ 0x00119aa0
MOV R13,RSI
MOV RSI,qword ptr [RSI]
MOV RDI,RBX
CALL 0x0010f2f0
ADD RBX,qword ptr [R13 + 0x8]
LAB_00119aa0:
MOV RDX,qword ptr [R12 + 0x8]
TEST RDX,RDX
JZ 0x00119abb
MOV RSI,qword ptr [R12]
MOV RDI,RBX
CALL 0x0010f2f0
ADD RBX,qword ptr [R12 + 0x8]
LAB_00119abb:
MOV RDX,qword ptr [R15 + 0x8]
TEST RDX,RDX
JZ 0x00119ad3
MOV RSI,qword ptr [R15]
MOV RDI,RBX
CALL 0x0010f2f0
ADD RBX,qword ptr [R15 + 0x8]
LAB_00119ad3:
MOV RDX,qword ptr [R14 + 0x8]
TEST RDX,RDX
JZ 0x00119aeb
MOV RSI,qword ptr [R14]
MOV RDI,RBX
CALL 0x0010f2f0
ADD RBX,qword ptr [R14 + 0x8]
LAB_00119aeb:
MOV RAX,RBX
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* google::protobuf::Append4(char*, google::protobuf::strings::AlphaNum const&,
google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&,
google::protobuf::strings::AlphaNum const&) */
char * google::protobuf::Append4
(char *param_1,AlphaNum *param_2,AlphaNum *param_3,AlphaNum *param_4,
AlphaNum *param_5)
{
if (*(size_t *)(param_2 + 8) != 0) {
memcpy(param_1,*(void **)param_2,*(size_t *)(param_2 + 8));
param_1 = param_1 + *(long *)(param_2 + 8);
}
if (*(size_t *)(param_3 + 8) != 0) {
memcpy(param_1,*(void **)param_3,*(size_t *)(param_3 + 8));
param_1 = param_1 + *(long *)(param_3 + 8);
}
if (*(size_t *)(param_4 + 8) != 0) {
memcpy(param_1,*(void **)param_4,*(size_t *)(param_4 + 8));
param_1 = param_1 + *(long *)(param_4 + 8);
}
if (*(size_t *)(param_5 + 8) != 0) {
memcpy(param_1,*(void **)param_5,*(size_t *)(param_5 + 8));
param_1 = param_1 + *(long *)(param_5 + 8);
}
return param_1;
}
| |
49,717 | my_wc_to_printable_ex | eloqsql/strings/ctype.c | int
my_wc_to_printable_ex(CHARSET_INFO *cs, my_wc_t wc,
uchar *str, uchar *end,
uint bs, uint bslen, uint diglen)
{
uchar *str0;
uint i, length;
uchar tmp[MY_CS_PRINTABLE_CHAR_LENGTH * MY_CS_MBMAXLEN];
if (my_is_printable(wc))
{
int mblen= my_ci_wc_mb(cs, wc, str, end);
if (mblen > 0)
return mblen;
}
if (str + my_printable_length(bslen, diglen) > end)
return MY_CS_TOOSMALLN(my_printable_length(bslen, diglen));
if ((cs->state & MY_CS_NONASCII) == 0)
return to_printable_8bit(str, wc, bs);
length= to_printable_8bit(tmp, wc, bs);
str0= str;
for (i= 0; i < length; i++)
{
uint expected_length= i == 0 ? bslen : diglen;
if (my_ci_wc_mb(cs, tmp[i], str, end) != (int) expected_length)
{
DBUG_ASSERT(0);
return MY_CS_ILSEQ;
}
str+= expected_length;
}
return (int) (str - str0);
} | O3 | c | my_wc_to_printable_ex:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, -0x60(%rbp)
movl %r8d, -0x58(%rbp)
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %r12
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
leaq -0x20(%rsi), %rax
cmpq $0x5f, %rax
jae 0x54e3b
movq 0xb8(%r12), %rax
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq *0x30(%rax)
movl %eax, %ebx
testl %eax, %eax
jg 0x54f5e
jmp 0x54e6c
cmpq $0x9f, %r13
ja 0x54e5b
cmpb $0xa, %r13b
je 0x54e18
movzbl %r13b, %eax
cmpl $0xd, %eax
je 0x54e18
cmpq $0x9, %r13
je 0x54e18
jmp 0x54e6c
movq %r13, %rax
andq $-0x800, %rax # imm = 0xF800
cmpq $0xd800, %rax # imm = 0xD800
jne 0x54e18
movl 0x10(%rbp), %ecx
movq -0x60(%rbp), %rax
leal (%rax,%rcx,4), %eax
leaq (%r15,%rax), %rcx
cmpq %r14, %rcx
jbe 0x54e8b
movl $0xffffff9c, %ebx # imm = 0xFFFFFF9C
subl %eax, %ebx
jmp 0x54f5e
movl %r13d, %eax
shrl $0xc, %eax
andl $0xf, %eax
movl %r13d, %ecx
shrl $0x8, %ecx
andl $0xf, %ecx
movl %r13d, %edx
shrl $0x4, %edx
andl $0xf, %edx
andl $0xf, %r13d
testb $0x20, 0xd(%r12)
jne 0x54ee3
movl -0x58(%rbp), %esi
movb %sil, (%r15)
leaq 0x2840e1(%rip), %rsi # 0x2d8fa0
movb (%rsi,%rax), %al
movb %al, 0x1(%r15)
movb (%rsi,%rcx), %al
movb %al, 0x2(%r15)
movb (%rsi,%rdx), %al
movb %al, 0x3(%r15)
movb (%rsi,%r13), %al
movb %al, 0x4(%r15)
movl $0x5, %ebx
jmp 0x54f5e
movq %r14, -0x68(%rbp)
movl -0x58(%rbp), %esi
movb %sil, -0x50(%rbp)
leaq 0x2840ab(%rip), %rsi # 0x2d8fa0
movb (%rsi,%rax), %al
movb %al, -0x4f(%rbp)
movb (%rsi,%rcx), %al
movb %al, -0x4e(%rbp)
movb (%rsi,%rdx), %al
movb %al, -0x4d(%rbp)
movb (%rsi,%r13), %al
movb %al, -0x4c(%rbp)
xorl %ebx, %ebx
xorl %r14d, %r14d
movq %r15, -0x58(%rbp)
movq %r15, %r13
testq %r14, %r14
movl 0x10(%rbp), %eax
movl %eax, %r15d
cmovel -0x60(%rbp), %r15d
movq 0xb8(%r12), %rax
movzbl -0x50(%rbp,%r14), %esi
movq %r12, %rdi
movq %r13, %rdx
movq -0x68(%rbp), %rcx
callq *0x30(%rax)
cmpl %r15d, %eax
jne 0x54f5e
movl %r15d, %eax
addq %rax, %r13
incq %r14
cmpq $0x5, %r14
jne 0x54f1a
subl -0x58(%rbp), %r13d
movl %r13d, %ebx
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x54f7e
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x24320
| my_wc_to_printable_ex:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov [rbp+var_60], r9
mov dword ptr [rbp+var_58], r8d
mov r14, rcx
mov r15, rdx
mov r13, rsi
mov r12, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
lea rax, [rsi-20h]
cmp rax, 5Fh ; '_'
jnb short loc_54E3B
loc_54E18:
mov rax, [r12+0B8h]
mov rdi, r12
mov rsi, r13
mov rdx, r15
mov rcx, r14
call qword ptr [rax+30h]
mov ebx, eax
test eax, eax
jg loc_54F5E
jmp short loc_54E6C
loc_54E3B:
cmp r13, 9Fh
ja short loc_54E5B
cmp r13b, 0Ah
jz short loc_54E18
movzx eax, r13b
cmp eax, 0Dh
jz short loc_54E18
cmp r13, 9
jz short loc_54E18
jmp short loc_54E6C
loc_54E5B:
mov rax, r13
and rax, 0FFFFFFFFFFFFF800h
cmp rax, 0D800h
jnz short loc_54E18
loc_54E6C:
mov ecx, [rbp+arg_0]
mov rax, [rbp+var_60]
lea eax, [rax+rcx*4]
lea rcx, [r15+rax]
cmp rcx, r14
jbe short loc_54E8B
mov ebx, 0FFFFFF9Ch
sub ebx, eax
jmp loc_54F5E
loc_54E8B:
mov eax, r13d
shr eax, 0Ch
and eax, 0Fh
mov ecx, r13d
shr ecx, 8
and ecx, 0Fh
mov edx, r13d
shr edx, 4
and edx, 0Fh
and r13d, 0Fh
test byte ptr [r12+0Dh], 20h
jnz short loc_54EE3
mov esi, dword ptr [rbp+var_58]
mov [r15], sil
lea rsi, _dig_vec_upper; "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
mov al, [rsi+rax]
mov [r15+1], al
mov al, [rsi+rcx]
mov [r15+2], al
mov al, [rsi+rdx]
mov [r15+3], al
mov al, [rsi+r13]
mov [r15+4], al
mov ebx, 5
jmp short loc_54F5E
loc_54EE3:
mov [rbp+var_68], r14
mov esi, dword ptr [rbp+var_58]
mov [rbp+var_50], sil
lea rsi, _dig_vec_upper; "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
mov al, [rsi+rax]
mov [rbp+var_4F], al
mov al, [rsi+rcx]
mov [rbp+var_4E], al
mov al, [rsi+rdx]
mov [rbp+var_4D], al
mov al, [rsi+r13]
mov [rbp+var_4C], al
xor ebx, ebx
xor r14d, r14d
mov [rbp+var_58], r15
mov r13, r15
loc_54F1A:
test r14, r14
mov eax, [rbp+arg_0]
mov r15d, eax
cmovz r15d, dword ptr [rbp+var_60]
mov rax, [r12+0B8h]
movzx esi, [rbp+r14+var_50]
mov rdi, r12
mov rdx, r13
mov rcx, [rbp+var_68]
call qword ptr [rax+30h]
cmp eax, r15d
jnz short loc_54F5E
mov eax, r15d
add r13, rax
inc r14
cmp r14, 5
jnz short loc_54F1A
sub r13d, dword ptr [rbp+var_58]
mov ebx, r13d
loc_54F5E:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_54F7E
mov eax, ebx
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_54F7E:
call ___stack_chk_fail
| long long my_wc_to_printable_ex(
long long a1,
unsigned long long a2,
_BYTE *a3,
unsigned long long a4,
char a5,
unsigned int a6,
unsigned int a7)
{
int v9; // ebx
long long v10; // rax
long long v11; // rax
long long v12; // rcx
long long v13; // rdx
unsigned long long v14; // r13
long long v15; // r14
_BYTE *v16; // r13
unsigned int v17; // r15d
unsigned long long v19; // [rsp+8h] [rbp-68h]
int v22; // [rsp+18h] [rbp-58h]
_BYTE v23[32]; // [rsp+20h] [rbp-50h]
unsigned long long v24; // [rsp+40h] [rbp-30h]
v24 = __readfsqword(0x28u);
if ( a2 - 32 < 0x5F )
{
LABEL_2:
v9 = (*(long long ( **)(long long, unsigned long long, _BYTE *, unsigned long long))(*(_QWORD *)(a1 + 184) + 48LL))(
a1,
a2,
a3,
a4);
if ( v9 > 0 )
return (unsigned int)v9;
goto LABEL_10;
}
if ( a2 > 0x9F )
{
if ( (a2 & 0xFFFFFFFFFFFFF800LL) != 0xD800 )
goto LABEL_2;
}
else if ( (_BYTE)a2 == 10 || (unsigned __int8)a2 == 13 || a2 == 9 )
{
goto LABEL_2;
}
LABEL_10:
v10 = a6 + 4 * a7;
if ( (unsigned long long)&a3[v10] <= a4 )
{
v11 = (unsigned __int16)a2 >> 12;
v12 = ((unsigned int)a2 >> 8) & 0xF;
v13 = (unsigned __int8)a2 >> 4;
v14 = a2 & 0xF;
if ( (*(_BYTE *)(a1 + 13) & 0x20) != 0 )
{
v19 = a4;
v23[0] = a5;
v23[1] = dig_vec_upper[v11];
v23[2] = dig_vec_upper[v12];
v23[3] = dig_vec_upper[v13];
v23[4] = dig_vec_upper[v14];
v9 = 0;
v15 = 0LL;
v22 = (int)a3;
v16 = a3;
while ( 1 )
{
v17 = a7;
if ( !v15 )
v17 = a6;
if ( (*(unsigned int ( **)(long long, _QWORD, _BYTE *, unsigned long long))(*(_QWORD *)(a1 + 184) + 48LL))(
a1,
(unsigned __int8)v23[v15],
v16,
v19) != v17 )
break;
v16 += v17;
if ( ++v15 == 5 )
return (unsigned int)((_DWORD)v16 - v22);
}
}
else
{
*a3 = a5;
a3[1] = dig_vec_upper[v11];
a3[2] = dig_vec_upper[v12];
a3[3] = dig_vec_upper[v13];
a3[4] = dig_vec_upper[v14];
return 5;
}
}
else
{
return (unsigned int)(-100 - v10);
}
return (unsigned int)v9;
}
| my_wc_to_printable_ex:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV qword ptr [RBP + -0x60],R9
MOV dword ptr [RBP + -0x58],R8D
MOV R14,RCX
MOV R15,RDX
MOV R13,RSI
MOV R12,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
LEA RAX,[RSI + -0x20]
CMP RAX,0x5f
JNC 0x00154e3b
LAB_00154e18:
MOV RAX,qword ptr [R12 + 0xb8]
MOV RDI,R12
MOV RSI,R13
MOV RDX,R15
MOV RCX,R14
CALL qword ptr [RAX + 0x30]
MOV EBX,EAX
TEST EAX,EAX
JG 0x00154f5e
JMP 0x00154e6c
LAB_00154e3b:
CMP R13,0x9f
JA 0x00154e5b
CMP R13B,0xa
JZ 0x00154e18
MOVZX EAX,R13B
CMP EAX,0xd
JZ 0x00154e18
CMP R13,0x9
JZ 0x00154e18
JMP 0x00154e6c
LAB_00154e5b:
MOV RAX,R13
AND RAX,-0x800
CMP RAX,0xd800
JNZ 0x00154e18
LAB_00154e6c:
MOV ECX,dword ptr [RBP + 0x10]
MOV RAX,qword ptr [RBP + -0x60]
LEA EAX,[RAX + RCX*0x4]
LEA RCX,[R15 + RAX*0x1]
CMP RCX,R14
JBE 0x00154e8b
MOV EBX,0xffffff9c
SUB EBX,EAX
JMP 0x00154f5e
LAB_00154e8b:
MOV EAX,R13D
SHR EAX,0xc
AND EAX,0xf
MOV ECX,R13D
SHR ECX,0x8
AND ECX,0xf
MOV EDX,R13D
SHR EDX,0x4
AND EDX,0xf
AND R13D,0xf
TEST byte ptr [R12 + 0xd],0x20
JNZ 0x00154ee3
MOV ESI,dword ptr [RBP + -0x58]
MOV byte ptr [R15],SIL
LEA RSI,[0x3d8fa0]
MOV AL,byte ptr [RSI + RAX*0x1]
MOV byte ptr [R15 + 0x1],AL
MOV AL,byte ptr [RSI + RCX*0x1]
MOV byte ptr [R15 + 0x2],AL
MOV AL,byte ptr [RSI + RDX*0x1]
MOV byte ptr [R15 + 0x3],AL
MOV AL,byte ptr [RSI + R13*0x1]
MOV byte ptr [R15 + 0x4],AL
MOV EBX,0x5
JMP 0x00154f5e
LAB_00154ee3:
MOV qword ptr [RBP + -0x68],R14
MOV ESI,dword ptr [RBP + -0x58]
MOV byte ptr [RBP + -0x50],SIL
LEA RSI,[0x3d8fa0]
MOV AL,byte ptr [RSI + RAX*0x1]
MOV byte ptr [RBP + -0x4f],AL
MOV AL,byte ptr [RSI + RCX*0x1]
MOV byte ptr [RBP + -0x4e],AL
MOV AL,byte ptr [RSI + RDX*0x1]
MOV byte ptr [RBP + -0x4d],AL
MOV AL,byte ptr [RSI + R13*0x1]
MOV byte ptr [RBP + -0x4c],AL
XOR EBX,EBX
XOR R14D,R14D
MOV qword ptr [RBP + -0x58],R15
MOV R13,R15
LAB_00154f1a:
TEST R14,R14
MOV EAX,dword ptr [RBP + 0x10]
MOV R15D,EAX
CMOVZ R15D,dword ptr [RBP + -0x60]
MOV RAX,qword ptr [R12 + 0xb8]
MOVZX ESI,byte ptr [RBP + R14*0x1 + -0x50]
MOV RDI,R12
MOV RDX,R13
MOV RCX,qword ptr [RBP + -0x68]
CALL qword ptr [RAX + 0x30]
CMP EAX,R15D
JNZ 0x00154f5e
MOV EAX,R15D
ADD R13,RAX
INC R14
CMP R14,0x5
JNZ 0x00154f1a
SUB R13D,dword ptr [RBP + -0x58]
MOV EBX,R13D
LAB_00154f5e:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00154f7e
MOV EAX,EBX
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00154f7e:
CALL 0x00124320
|
int my_wc_to_printable_ex
(long param_1,ulong param_2,char *param_3,char *param_4,char param_5,uint param_6,
uint param_7)
{
uint uVar1;
uint uVar2;
uint uVar3;
uint uVar4;
char *pcVar5;
long lVar6;
long in_FS_OFFSET;
int local_60;
char local_58 [32];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
if (param_2 - 0x20 < 0x5f) {
LAB_00154e18:
local_60 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30))(param_1,param_2,param_3,param_4);
if (0 < local_60) goto LAB_00154f5e;
}
else if (param_2 < 0xa0) {
if ((((char)param_2 == '\n') || (((uint)param_2 & 0xff) == 0xd)) || (param_2 == 9))
goto LAB_00154e18;
}
else if ((param_2 & 0xfffffffffffff800) != 0xd800) goto LAB_00154e18;
uVar1 = param_6 + param_7 * 4;
if (param_4 < param_3 + uVar1) {
local_60 = -100 - uVar1;
}
else {
uVar1 = (uint)(param_2 >> 0xc) & 0xf;
uVar2 = (uint)(param_2 >> 8) & 0xf;
uVar3 = (uint)(param_2 >> 4) & 0xf;
uVar4 = (uint)param_2 & 0xf;
if ((*(byte *)(param_1 + 0xd) & 0x20) == 0) {
*param_3 = param_5;
param_3[1] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"[uVar1];
param_3[2] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"[uVar2];
param_3[3] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"[uVar3];
param_3[4] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"[uVar4];
local_60 = 5;
}
else {
local_58[0] = param_5;
local_58[1] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"[uVar1];
local_58[2] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"[uVar2];
local_58[3] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"[uVar3];
local_58[4] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"[uVar4];
local_60 = 0;
lVar6 = 0;
pcVar5 = param_3;
do {
uVar1 = param_7;
if (lVar6 == 0) {
uVar1 = param_6;
}
uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30))
(param_1,local_58[lVar6],pcVar5,param_4);
if (uVar2 != uVar1) goto LAB_00154f5e;
pcVar5 = pcVar5 + uVar1;
lVar6 = lVar6 + 1;
} while (lVar6 != 5);
local_60 = (int)param_3;
local_60 = (int)pcVar5 - local_60;
}
}
LAB_00154f5e:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_60;
}
| |
49,718 | mysql_rollback_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_rollback_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_rollback,
(parms->mysql),
parms->mysql,
my_bool,
r_my_bool)
} | O3 | c | mysql_rollback_start_internal:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rdi
movq 0x480(%rdi), %rax
movq 0x28(%rax), %rbx
callq 0x1f285
movb %al, 0x8(%rbx)
movl $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| mysql_rollback_start_internal:
push rbp
mov rbp, rsp
push rbx
push rax
mov rdi, [rdi]
mov rax, [rdi+480h]
mov rbx, [rax+28h]
call mysql_rollback
mov [rbx+8], al
mov dword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
retn
| long long mysql_rollback_start_internal(long long *a1)
{
long long v1; // rdi
long long v2; // rbx
long long result; // rax
v1 = *a1;
v2 = *(_QWORD *)(*(_QWORD *)(v1 + 1152) + 40LL);
result = mysql_rollback(v1);
*(_BYTE *)(v2 + 8) = result;
*(_DWORD *)v2 = 0;
return result;
}
| mysql_rollback_start_internal:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RDI,qword ptr [RDI]
MOV RAX,qword ptr [RDI + 0x480]
MOV RBX,qword ptr [RAX + 0x28]
CALL 0x0011f285
MOV byte ptr [RBX + 0x8],AL
MOV dword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mysql_rollback_start_internal(long *param_1)
{
int4 *puVar1;
int1 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_rollback();
*(int1 *)(puVar1 + 2) = uVar2;
*puVar1 = 0;
return;
}
| |
49,719 | my_uca_contraction_find | eloqsql/strings/ctype-uca.c | static inline const MY_CONTRACTION *
my_uca_contraction_find(const MY_CONTRACTIONS *list, my_wc_t *wc, size_t len)
{
MY_CONTRACTION *c, *last;
DBUG_ASSERT(len <= MY_UCA_MAX_CONTRACTION);
for (c= list->item, last= c + list->nitems; c < last; c++)
{
if ((len >= MY_UCA_MAX_CONTRACTION || c->ch[len] == 0) &&
!c->with_context &&
!my_wmemcmp(c->ch, wc, len))
return c;
}
return NULL;
} | O0 | c | my_uca_contraction_find:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
jmp 0xaf2d6
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
imulq $0x58, (%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0xaf34f
cmpq $0x6, -0x20(%rbp)
jae 0xaf315
movq -0x28(%rbp), %rax
movq -0x20(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
jne 0xaf33f
movq -0x28(%rbp), %rax
cmpb $0x0, 0x52(%rax)
jne 0xaf33f
movq -0x28(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0xaf370
cmpl $0x0, %eax
jne 0xaf33f
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xaf357
jmp 0xaf341
movq -0x28(%rbp), %rax
addq $0x58, %rax
movq %rax, -0x28(%rbp)
jmp 0xaf2f5
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_uca_contraction_find:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
jmp short $+2
loc_AF2D6:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov rcx, [rbp+var_10]
imul rcx, [rcx], 58h ; 'X'
add rax, rcx
mov [rbp+var_30], rax
loc_AF2F5:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jnb short loc_AF34F
cmp [rbp+var_20], 6
jnb short loc_AF315
mov rax, [rbp+var_28]
mov rcx, [rbp+var_20]
cmp qword ptr [rax+rcx*8], 0
jnz short loc_AF33F
loc_AF315:
mov rax, [rbp+var_28]
cmp byte ptr [rax+52h], 0
jnz short loc_AF33F
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call my_wmemcmp
cmp eax, 0
jnz short loc_AF33F
mov rax, [rbp+var_28]
mov [rbp+var_8], rax
jmp short loc_AF357
loc_AF33F:
jmp short $+2
loc_AF341:
mov rax, [rbp+var_28]
add rax, 58h ; 'X'
mov [rbp+var_28], rax
jmp short loc_AF2F5
loc_AF34F:
mov [rbp+var_8], 0
loc_AF357:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
| unsigned long long my_uca_contraction_find(_QWORD *a1, long long a2, unsigned long long a3)
{
unsigned long long v4; // [rsp+0h] [rbp-30h]
unsigned long long v5; // [rsp+8h] [rbp-28h]
v5 = a1[1];
v4 = 88LL * *a1 + v5;
while ( v5 < v4 )
{
if ( (a3 >= 6 || !*(_QWORD *)(v5 + 8 * a3)) && !*(_BYTE *)(v5 + 82) && !(unsigned int)my_wmemcmp(v5, a2, a3) )
return v5;
v5 += 88LL;
}
return 0LL;
}
| my_uca_contraction_find:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
JMP 0x001af2d6
LAB_001af2d6:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x10]
IMUL RCX,qword ptr [RCX],0x58
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
LAB_001af2f5:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x001af34f
CMP qword ptr [RBP + -0x20],0x6
JNC 0x001af315
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x20]
CMP qword ptr [RAX + RCX*0x8],0x0
JNZ 0x001af33f
LAB_001af315:
MOV RAX,qword ptr [RBP + -0x28]
CMP byte ptr [RAX + 0x52],0x0
JNZ 0x001af33f
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x001af370
CMP EAX,0x0
JNZ 0x001af33f
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001af357
LAB_001af33f:
JMP 0x001af341
LAB_001af341:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x58
MOV qword ptr [RBP + -0x28],RAX
JMP 0x001af2f5
LAB_001af34f:
MOV qword ptr [RBP + -0x8],0x0
LAB_001af357:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
ulong my_uca_contraction_find(long *param_1,int8 param_2,ulong param_3)
{
int iVar1;
ulong uVar2;
ulong local_30;
local_30 = param_1[1];
uVar2 = local_30 + *param_1 * 0x58;
while( true ) {
if (uVar2 <= local_30) {
return 0;
}
if ((((5 < param_3) || (*(long *)(local_30 + param_3 * 8) == 0)) &&
(*(char *)(local_30 + 0x52) == '\0')) &&
(iVar1 = my_wmemcmp(local_30,param_2,param_3), iVar1 == 0)) break;
local_30 = local_30 + 0x58;
}
return local_30;
}
| |
49,720 | translog_walk_filenames | eloqsql/storage/maria/ma_loghandler.c | my_bool translog_walk_filenames(const char *directory,
my_bool (*callback)(const char *,
const char *))
{
MY_DIR *dirp;
uint i;
my_bool rc= FALSE;
/* Finds and removes transaction log files */
if (!(dirp = my_dir(directory, MYF(MY_DONT_SORT))))
return FALSE;
for (i= 0; i < dirp->number_of_files; i++)
{
char *file= dirp->dir_entry[i].name;
if (strncmp(file, "aria_log.", 10) == 0 &&
file[10] >= '0' && file[10] <= '9' &&
file[11] >= '0' && file[11] <= '9' &&
file[12] >= '0' && file[12] <= '9' &&
file[13] >= '0' && file[13] <= '9' &&
file[14] >= '0' && file[14] <= '9' &&
file[15] >= '0' && file[15] <= '9' &&
file[16] >= '0' && file[16] <= '9' &&
file[17] >= '0' && file[17] <= '9' &&
file[18] == '\0' && (*callback)(directory, file))
{
rc= TRUE;
break;
}
}
my_dirend(dirp);
return rc;
} | O3 | c | translog_walk_filenames:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %r15
xorl %r12d, %r12d
xorl %esi, %esi
callq 0x9f6a9
testq %rax, %rax
je 0x4910d
movq %rax, %rbx
movl 0x8(%rax), %r12d
testl %r12d, %r12d
je 0x49102
movq %r15, -0x30(%rbp)
movq %r14, -0x38(%rbp)
xorl %r14d, %r14d
xorl %r15d, %r15d
movq (%rbx), %rax
movq (%rax,%r14), %r13
movl $0xa, %edx
movq %r13, %rdi
leaq 0x90e11(%rip), %rsi # 0xd9e8e
callq 0x291d0
testl %eax, %eax
jne 0x490ef
movb 0xa(%r13), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x490ef
movb 0xb(%r13), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x490ef
movb 0xc(%r13), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x490ef
movb 0xd(%r13), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x490ef
movb 0xe(%r13), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x490ef
movb 0xf(%r13), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x490ef
movb 0x10(%r13), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x490ef
movb 0x11(%r13), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x490ef
cmpb $0x0, 0x12(%r13)
jne 0x490ef
movq -0x30(%rbp), %rdi
movq %r13, %rsi
callq *-0x38(%rbp)
testb %al, %al
jne 0x4911f
movl 0x8(%rbx), %r12d
incq %r15
movl %r12d, %eax
addq $0x10, %r14
cmpq %rax, %r15
jb 0x49067
xorl %r12d, %r12d
movq %rbx, %rdi
callq 0x9f678
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %r12b
jmp 0x49105
| translog_walk_filenames:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r14, rsi
mov r15, rdi
xor r12d, r12d
xor esi, esi
call my_dir
test rax, rax
jz loc_4910D
mov rbx, rax
mov r12d, [rax+8]
test r12d, r12d
jz loc_49102
mov [rbp+var_30], r15
mov [rbp+var_38], r14
xor r14d, r14d
xor r15d, r15d
loc_49067:
mov rax, [rbx]
mov r13, [rax+r14]
mov edx, 0Ah
mov rdi, r13
lea rsi, aAriaLog; "aria_log."
call _strncmp
test eax, eax
jnz short loc_490EF
mov al, [r13+0Ah]
add al, 0D0h
cmp al, 9
ja short loc_490EF
mov al, [r13+0Bh]
add al, 0D0h
cmp al, 9
ja short loc_490EF
mov al, [r13+0Ch]
add al, 0D0h
cmp al, 9
ja short loc_490EF
mov al, [r13+0Dh]
add al, 0D0h
cmp al, 9
ja short loc_490EF
mov al, [r13+0Eh]
add al, 0D0h
cmp al, 9
ja short loc_490EF
mov al, [r13+0Fh]
add al, 0D0h
cmp al, 9
ja short loc_490EF
mov al, [r13+10h]
add al, 0D0h
cmp al, 9
ja short loc_490EF
mov al, [r13+11h]
add al, 0D0h
cmp al, 9
ja short loc_490EF
cmp byte ptr [r13+12h], 0
jnz short loc_490EF
mov rdi, [rbp+var_30]
mov rsi, r13
call [rbp+var_38]
test al, al
jnz short loc_4911F
mov r12d, [rbx+8]
loc_490EF:
inc r15
mov eax, r12d
add r14, 10h
cmp r15, rax
jb loc_49067
loc_49102:
xor r12d, r12d
loc_49105:
mov rdi, rbx
call my_dirend
loc_4910D:
mov eax, r12d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4911F:
mov r12b, 1
jmp short loc_49105
| long long translog_walk_filenames(long long a1, unsigned __int8 ( *a2)(long long, _BYTE *))
{
unsigned int v2; // r12d
long long v3; // rax
long long v4; // rbx
long long v5; // r14
unsigned long long v6; // r15
_BYTE *v7; // r13
v2 = 0;
v3 = my_dir(a1, 0LL);
if ( !v3 )
return v2;
v4 = v3;
v2 = *(_DWORD *)(v3 + 8);
if ( !v2 )
{
LABEL_17:
v2 = 0;
goto LABEL_18;
}
v5 = 0LL;
v6 = 0LL;
while ( 1 )
{
v7 = *(_BYTE **)(*(_QWORD *)v4 + v5);
if ( (unsigned int)strncmp(v7, "aria_log.", 10LL)
|| (unsigned __int8)(v7[10] - 48) > 9u
|| (unsigned __int8)(v7[11] - 48) > 9u
|| (unsigned __int8)(v7[12] - 48) > 9u
|| (unsigned __int8)(v7[13] - 48) > 9u
|| (unsigned __int8)(v7[14] - 48) > 9u
|| (unsigned __int8)(v7[15] - 48) > 9u
|| (unsigned __int8)(v7[16] - 48) > 9u
|| (unsigned __int8)(v7[17] - 48) > 9u
|| v7[18] )
{
goto LABEL_16;
}
if ( a2(a1, v7) )
break;
v2 = *(_DWORD *)(v4 + 8);
LABEL_16:
++v6;
v5 += 16LL;
if ( v6 >= v2 )
goto LABEL_17;
}
LOBYTE(v2) = 1;
LABEL_18:
my_dirend(v4);
return v2;
}
| translog_walk_filenames:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R14,RSI
MOV R15,RDI
XOR R12D,R12D
XOR ESI,ESI
CALL 0x0019f6a9
TEST RAX,RAX
JZ 0x0014910d
MOV RBX,RAX
MOV R12D,dword ptr [RAX + 0x8]
TEST R12D,R12D
JZ 0x00149102
MOV qword ptr [RBP + -0x30],R15
MOV qword ptr [RBP + -0x38],R14
XOR R14D,R14D
XOR R15D,R15D
LAB_00149067:
MOV RAX,qword ptr [RBX]
MOV R13,qword ptr [RAX + R14*0x1]
MOV EDX,0xa
MOV RDI,R13
LEA RSI,[0x1d9e8e]
CALL 0x001291d0
TEST EAX,EAX
JNZ 0x001490ef
MOV AL,byte ptr [R13 + 0xa]
ADD AL,0xd0
CMP AL,0x9
JA 0x001490ef
MOV AL,byte ptr [R13 + 0xb]
ADD AL,0xd0
CMP AL,0x9
JA 0x001490ef
MOV AL,byte ptr [R13 + 0xc]
ADD AL,0xd0
CMP AL,0x9
JA 0x001490ef
MOV AL,byte ptr [R13 + 0xd]
ADD AL,0xd0
CMP AL,0x9
JA 0x001490ef
MOV AL,byte ptr [R13 + 0xe]
ADD AL,0xd0
CMP AL,0x9
JA 0x001490ef
MOV AL,byte ptr [R13 + 0xf]
ADD AL,0xd0
CMP AL,0x9
JA 0x001490ef
MOV AL,byte ptr [R13 + 0x10]
ADD AL,0xd0
CMP AL,0x9
JA 0x001490ef
MOV AL,byte ptr [R13 + 0x11]
ADD AL,0xd0
CMP AL,0x9
JA 0x001490ef
CMP byte ptr [R13 + 0x12],0x0
JNZ 0x001490ef
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,R13
CALL qword ptr [RBP + -0x38]
TEST AL,AL
JNZ 0x0014911f
MOV R12D,dword ptr [RBX + 0x8]
LAB_001490ef:
INC R15
MOV EAX,R12D
ADD R14,0x10
CMP R15,RAX
JC 0x00149067
LAB_00149102:
XOR R12D,R12D
LAB_00149105:
MOV RDI,RBX
CALL 0x0019f678
LAB_0014910d:
MOV EAX,R12D
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014911f:
MOV R12B,0x1
JMP 0x00149105
|
int8 translog_walk_filenames(int8 param_1,code *param_2)
{
char *__s1;
char cVar1;
int iVar2;
long *plVar3;
ulong uVar4;
int8 uVar5;
long lVar6;
ulong uVar7;
uVar5 = 0;
plVar3 = (long *)my_dir(param_1,0);
if (plVar3 != (long *)0x0) {
uVar4 = (ulong)*(uint *)(plVar3 + 1);
if (*(uint *)(plVar3 + 1) != 0) {
lVar6 = 0;
uVar7 = 0;
do {
__s1 = *(char **)(*plVar3 + lVar6);
iVar2 = strncmp(__s1,"aria_log.",10);
if ((((((iVar2 == 0) && ((byte)(__s1[10] - 0x30U) < 10)) && ((byte)(__s1[0xb] - 0x30U) < 10)
) && (((byte)(__s1[0xc] - 0x30U) < 10 && ((byte)(__s1[0xd] - 0x30U) < 10)))) &&
(((byte)(__s1[0xe] - 0x30U) < 10 &&
(((byte)(__s1[0xf] - 0x30U) < 10 && ((byte)(__s1[0x10] - 0x30U) < 10)))))) &&
(((byte)(__s1[0x11] - 0x30U) < 10 && (__s1[0x12] == '\0')))) {
cVar1 = (*param_2)(param_1,__s1);
if (cVar1 != '\0') {
uVar5 = CONCAT71((int7)(uVar4 >> 8),1);
goto LAB_00149105;
}
uVar4 = (ulong)*(uint *)(plVar3 + 1);
}
uVar7 = uVar7 + 1;
lVar6 = lVar6 + 0x10;
} while (uVar7 < uVar4);
}
uVar5 = 0;
LAB_00149105:
my_dirend(plVar3);
}
return uVar5;
}
| |
49,721 | uf_endspace_selected | eloqsql/storage/myisam/mi_packrec.c | static void uf_endspace_selected(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff,
uchar *to, uchar *end)
{
uint spaces;
if (get_bit(bit_buff))
{
if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end)
{
bit_buff->error=1;
return;
}
if (to+spaces != end)
decode_bytes(rec,bit_buff,to,end-spaces);
bfill((uchar*) end-spaces,spaces,' ');
}
else
decode_bytes(rec,bit_buff,to,end);
} | O0 | c | uf_endspace_selected:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x127ee6a
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rdx)
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
jne 0x127ee92
jmp 0x127ef5f
movq -0x10(%rbp), %rdi
callq 0x127df70
movq -0x10(%rbp), %rax
movl $0x1f, 0x4(%rax)
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0x80000000, %eax # imm = 0x80000000
cmpl $0x0, %eax
je 0x127ef5f
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x1c(%rcx), %eax
jb 0x127eed5
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x8(%rbp), %rcx
movl 0x1c(%rcx), %esi
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
subl %esi, %ecx
movl %ecx, 0x4(%rdx)
shrl %cl, %eax
movq -0x8(%rbp), %rcx
movl 0x1c(%rcx), %ecx
movl %ecx, %edx
leaq 0x88e0c3(%rip), %rcx # 0x1b0cf90
andl (%rcx,%rdx,4), %eax
movl %eax, -0x28(%rbp)
jmp 0x127eee8
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %esi
callq 0x127c720
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %ecx
movl %ecx, -0x24(%rbp)
movq -0x18(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
cmpq -0x20(%rbp), %rax
jbe 0x127ef0a
movq -0x10(%rbp), %rax
movl $0x1, 0x28(%rax)
jmp 0x127ef74
movq -0x18(%rbp), %rax
movl -0x24(%rbp), %ecx
addq %rcx, %rax
cmpq -0x20(%rbp), %rax
je 0x127ef3d
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %eax
movl %eax, %r8d
xorl %eax, %eax
subq %r8, %rax
addq %rax, %rcx
callq 0x127e680
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %eax
movl %eax, %ecx
xorl %eax, %eax
subq %rcx, %rax
addq %rax, %rdi
movl -0x24(%rbp), %eax
movl %eax, %edx
movl $0x20, %esi
callq 0x7584b0
jmp 0x127ef74
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0x127e680
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| uf_endspace_selected_0:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rax, [rbp+var_10]
cmp dword ptr [rax+4], 0
jz short loc_127EE6A
mov rax, [rbp+var_10]
mov eax, [rax]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
add ecx, 0FFFFFFFFh
mov [rdx+4], ecx
mov edx, 1
shl edx, cl
mov ecx, edx
and eax, ecx
cmp eax, 0
jnz short loc_127EE92
jmp loc_127EF5F
loc_127EE6A:
mov rdi, [rbp+var_10]
call fill_buffer_0
mov rax, [rbp+var_10]
mov dword ptr [rax+4], 1Fh
mov rax, [rbp+var_10]
mov eax, [rax]
and eax, 80000000h
cmp eax, 0
jz loc_127EF5F
loc_127EE92:
mov rax, [rbp+var_10]
mov eax, [rax+4]
mov rcx, [rbp+var_8]
cmp eax, [rcx+1Ch]
jb short loc_127EED5
mov rax, [rbp+var_10]
mov eax, [rax]
mov rcx, [rbp+var_8]
mov esi, [rcx+1Ch]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
sub ecx, esi
mov [rdx+4], ecx
shr eax, cl
mov rcx, [rbp+var_8]
mov ecx, [rcx+1Ch]
mov edx, ecx
lea rcx, mask_0
and eax, [rcx+rdx*4]
mov [rbp+var_28], eax
jmp short loc_127EEE8
loc_127EED5:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_8]
mov esi, [rax+1Ch]
call fill_and_get_bits_0
mov [rbp+var_28], eax
loc_127EEE8:
mov ecx, [rbp+var_28]
mov [rbp+var_24], ecx
mov rax, [rbp+var_18]
mov ecx, ecx
add rax, rcx
cmp rax, [rbp+var_20]
jbe short loc_127EF0A
mov rax, [rbp+var_10]
mov dword ptr [rax+28h], 1
jmp short loc_127EF74
loc_127EF0A:
mov rax, [rbp+var_18]
mov ecx, [rbp+var_24]
add rax, rcx
cmp rax, [rbp+var_20]
jz short loc_127EF3D
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
mov eax, [rbp+var_24]
mov r8d, eax
xor eax, eax
sub rax, r8
add rcx, rax
call decode_bytes_0
loc_127EF3D:
mov rdi, [rbp+var_20]
mov eax, [rbp+var_24]
mov ecx, eax
xor eax, eax
sub rax, rcx
add rdi, rax
mov eax, [rbp+var_24]
mov edx, eax
mov esi, 20h ; ' '
call _memset
jmp short loc_127EF74
loc_127EF5F:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call decode_bytes_0
loc_127EF74:
add rsp, 30h
pop rbp
retn
| long long uf_endspace_selected_0(long long a1, int *a2, _BYTE *a3, _BYTE *a4)
{
int v4; // eax
int v5; // ecx
unsigned int v6; // eax
int v7; // ecx
long long result; // rax
int bits_0; // [rsp+8h] [rbp-28h]
if ( a2[1] )
{
v4 = *a2;
v5 = a2[1] - 1;
a2[1] = v5;
if ( ((1 << v5) & v4) == 0 )
return decode_bytes_0(a1, (long long)a2, a3, a4);
}
else
{
fill_buffer_0((long long)a2);
a2[1] = 31;
if ( *a2 >= 0 )
return decode_bytes_0(a1, (long long)a2, a3, a4);
}
if ( (unsigned int)a2[1] < *(_DWORD *)(a1 + 28) )
{
bits_0 = fill_and_get_bits_0(a2, *(_DWORD *)(a1 + 28));
}
else
{
v6 = *a2;
v7 = a2[1] - *(_DWORD *)(a1 + 28);
a2[1] = v7;
bits_0 = mask_0[*(unsigned int *)(a1 + 28)] & (v6 >> v7);
}
if ( &a3[bits_0] <= a4 )
{
if ( &a3[bits_0] != a4 )
decode_bytes_0(a1, (long long)a2, a3, &a4[-bits_0]);
return memset(&a4[-bits_0], 32LL);
}
else
{
result = (long long)a2;
a2[10] = 1;
}
return result;
}
| destroy<std::pair<void_const*const,buf_pool_t::chunk_t*>>:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
XOR EDX,EDX
MOV AL,0x0
CALL 0x0127ee50
ADD RSP,0x10
POP RBP
RET
|
/* void std::allocator_traits<ut_allocator<std::_Rb_tree_node<std::pair<void const* const,
buf_pool_t::chunk_t*> >, true> >::destroy<std::pair<void const* const, buf_pool_t::chunk_t*>
>(ut_allocator<std::_Rb_tree_node<std::pair<void const* const, buf_pool_t::chunk_t*> >, true>&,
std::pair<void const* const, buf_pool_t::chunk_t*>*) */
void std::
allocator_traits<ut_allocator<std::_Rb_tree_node<std::pair<void_const*const,buf_pool_t::chunk_t*>>,true>>
::destroy<std::pair<void_const*const,buf_pool_t::chunk_t*>>
(ut_allocator *param_1,pair *param_2)
{
_S_destroy<ut_allocator<std::_Rb_tree_node<std::pair<void_const*const,buf_pool_t::chunk_t*>>,true>,std::pair<void_const*const,buf_pool_t::chunk_t*>>
(param_1,param_2,0);
return;
}
| |
49,722 | ha_innobase::innobase_get_index(unsigned int) | eloqsql/storage/innobase/handler/ha_innodb.cc | dict_index_t*
ha_innobase::innobase_get_index(
/*============================*/
uint keynr) /*!< in: use this index; MAX_KEY means always
clustered index, even if it was internally
generated by InnoDB */
{
KEY* key = NULL;
dict_table_t* ib_table = m_prebuilt->table;
dict_index_t* index;
DBUG_ENTER("innobase_get_index");
if (keynr != MAX_KEY && table->s->keys > 0) {
key = &table->key_info[keynr];
index = dict_table_get_index_on_name(ib_table, key->name.str);
} else {
index = dict_table_get_first_index(ib_table);
}
if (index == NULL) {
sql_print_error(
"InnoDB could not find key no %u with name %s"
" from dict cache for table %s",
keynr, key ? key->name.str : "NULL",
ib_table->name.m_name);
}
DBUG_RETURN(index);
} | O0 | cpp | ha_innobase::innobase_get_index(unsigned int):
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq $0x0, -0x18(%rbp)
movq 0x7a0(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
cmpl $0x40, -0xc(%rbp)
je 0x10a32ff
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
cmpl $0x0, 0x3a0(%rax)
jbe 0x10a32ff
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movq 0xa8(%rax), %rax
movl -0xc(%rbp), %ecx
imulq $0xc0, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x40(%rax), %rsi
callq 0x103b9b0
movq %rax, -0x28(%rbp)
jmp 0x10a330e
movq -0x20(%rbp), %rax
movq 0x98(%rax), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x10a3366
movl -0xc(%rbp), %eax
movl %eax, -0x34(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x10a3330
movq -0x18(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0x40(%rbp)
jmp 0x10a333d
leaq 0x3f95e0(%rip), %rax # 0x149c917
movq %rax, -0x40(%rbp)
jmp 0x10a333d
movl -0x34(%rbp), %ecx
movq -0x40(%rbp), %r8
movq -0x20(%rbp), %rax
movq 0x10(%rax), %r9
leaq 0x3dd33d(%rip), %rdi # 0x1480690
movl $0x23e6, %esi # imm = 0x23E6
leaq 0x3dd7b3(%rip), %rdx # 0x1480b12
movb $0x0, %al
callq 0x83a410
jmp 0x10a3368
movq -0x28(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZN11ha_innobase18innobase_get_indexEj:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov rax, [rbp+var_8]
mov [rbp+var_30], rax
mov [rbp+var_18], 0
mov rax, [rax+7A0h]
mov rax, [rax+8]
mov [rbp+var_20], rax
cmp [rbp+var_C], 40h ; '@'
jz short loc_10A32FF
mov rax, [rbp+var_30]
mov rax, [rax+10h]
mov rax, [rax]
cmp dword ptr [rax+3A0h], 0
jbe short loc_10A32FF
mov rax, [rbp+var_30]
mov rax, [rax+10h]
mov rax, [rax+0A8h]
mov ecx, [rbp+var_C]
imul rcx, 0C0h
add rax, rcx
mov [rbp+var_18], rax
mov rdi, [rbp+var_20]; dict_table_t *
mov rax, [rbp+var_18]
mov rsi, [rax+40h]; char *
call _Z28dict_table_get_index_on_nameP12dict_table_tPKc; dict_table_get_index_on_name(dict_table_t *,char const*)
mov [rbp+var_28], rax
jmp short loc_10A330E
loc_10A32FF:
mov rax, [rbp+var_20]
mov rax, [rax+98h]
mov [rbp+var_28], rax
loc_10A330E:
cmp [rbp+var_28], 0
jnz short loc_10A3366
mov eax, [rbp+var_C]
mov [rbp+var_34], eax
cmp [rbp+var_18], 0
jz short loc_10A3330
mov rax, [rbp+var_18]
mov rax, [rax+40h]
mov [rbp+var_40], rax
jmp short loc_10A333D
loc_10A3330:
lea rax, aStrchrTableNam+23h; "NULL"
mov [rbp+var_40], rax
jmp short $+2
loc_10A333D:
mov ecx, [rbp+var_34]
mov r8, [rbp+var_40]
mov rax, [rbp+var_20]
mov r9, [rax+10h]
lea rdi, aWorkspaceLlm4b_240; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 23E6h; int
lea rdx, aInnodbCouldNot_0; "InnoDB could not find key no %u with na"...
mov al, 0
call _Z16glog_print_errorPKciS0_z; glog_print_error(char const*,int,char const*,...)
loc_10A3366:
jmp short $+2
loc_10A3368:
mov rax, [rbp+var_28]
add rsp, 40h
pop rbp
retn
| dict_index_t * ha_innobase::innobase_get_index(ha_innobase *this, unsigned int a2)
{
dict_index_t *index_on_name; // [rsp+18h] [rbp-28h]
dict_table_t *v4; // [rsp+20h] [rbp-20h]
long long v5; // [rsp+28h] [rbp-18h]
v5 = 0LL;
v4 = *(dict_table_t **)(*((_QWORD *)this + 244) + 8LL);
if ( a2 == 64 || !*(_DWORD *)(**((_QWORD **)this + 2) + 928LL) )
{
index_on_name = (dict_index_t *)*((_QWORD *)v4 + 19);
}
else
{
v5 = 192LL * a2 + *(_QWORD *)(*((_QWORD *)this + 2) + 168LL);
index_on_name = dict_table_get_index_on_name(v4, *(const char **)(v5 + 64));
}
if ( !index_on_name )
{
if ( v5 )
glog_print_error(
"/workspace/llm4binary/github2025/eloqsql/storage/innobase/handler/ha_innodb.cc",
0x23E6u,
"InnoDB could not find key no %u with name %s from dict cache for table %s",
a2,
*(const char **)(v5 + 64),
*((const char **)v4 + 2));
else
glog_print_error(
"/workspace/llm4binary/github2025/eloqsql/storage/innobase/handler/ha_innodb.cc",
0x23E6u,
"InnoDB could not find key no %u with name %s from dict cache for table %s",
a2,
"NULL",
*((const char **)v4 + 2));
}
return index_on_name;
}
| set_field_object_type:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV EAX,dword ptr [RBP + -0xc]
MOV qword ptr [RBP + -0x18],RAX
SUB RAX,0xb
JA 0x010a33ab
MOV RAX,qword ptr [RBP + -0x18]
LEA RCX,[0x16e3f9c]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x151d8f0]
MOV EDX,0x5
CALL 0x010640c0
JMP 0x010a33bd
caseD_2:
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x14f36a7]
MOV EDX,0x8
CALL 0x010640c0
JMP 0x010a33bd
caseD_3:
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x1544740]
MOV EDX,0x9
CALL 0x010640c0
JMP 0x010a33bd
caseD_4:
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x1589e60]
MOV EDX,0x5
CALL 0x010640c0
JMP 0x010a33bd
caseD_6:
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x1523f44]
MOV EDX,0xf
CALL 0x010640c0
JMP 0x010a33bd
caseD_5:
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x153dbe2]
MOV EDX,0x7
CALL 0x010640c0
JMP 0x010a33bd
caseD_7:
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x14eb885]
MOV EDX,0x6
CALL 0x010640c0
JMP 0x010a33bd
caseD_8:
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x151e2a2]
MOV EDX,0x6
CALL 0x010640c0
JMP 0x010a33bd
caseD_a:
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x152d1e7]
MOV EDX,0xc
CALL 0x010640c0
JMP 0x010a33bd
caseD_b:
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x156402f]
MOV EDX,0xf
CALL 0x010640c0
JMP 0x010a33bd
caseD_0:
JMP 0x010a33ab
caseD_9:
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x1544e53]
XOR EDX,EDX
CALL 0x010640c0
LAB_010a33bd:
ADD RSP,0x20
POP RBP
RET
|
/* set_field_object_type(Field*, enum_object_type) */
void set_field_object_type(Field *param_1,int4 param_2)
{
switch(param_2) {
case 0:
default:
PFS_engine_table::set_field_varchar_utf8(param_1,"",0);
break;
case 1:
PFS_engine_table::set_field_varchar_utf8(param_1,"EVENT",5);
break;
case 2:
PFS_engine_table::set_field_varchar_utf8(param_1,"FUNCTION",8);
break;
case 3:
PFS_engine_table::set_field_varchar_utf8(param_1,"PROCEDURE",9);
break;
case 4:
PFS_engine_table::set_field_varchar_utf8(param_1,"TABLE",5);
break;
case 5:
PFS_engine_table::set_field_varchar_utf8(param_1,"TRIGGER",7);
break;
case 6:
PFS_engine_table::set_field_varchar_utf8(param_1,"TEMPORARY TABLE",0xf);
break;
case 7:
PFS_engine_table::set_field_varchar_utf8(param_1,"BACKUP",6);
break;
case 8:
PFS_engine_table::set_field_varchar_utf8(param_1,"SCHEMA",6);
break;
case 10:
PFS_engine_table::set_field_varchar_utf8(param_1,"PACKAGE BODY",0xc);
break;
case 0xb:
PFS_engine_table::set_field_varchar_utf8(param_1,"USER LEVEL LOCK",0xf);
}
return;
}
| |
49,723 | ha_innobase::innobase_get_index(unsigned int) | eloqsql/storage/innobase/handler/ha_innodb.cc | dict_index_t*
ha_innobase::innobase_get_index(
/*============================*/
uint keynr) /*!< in: use this index; MAX_KEY means always
clustered index, even if it was internally
generated by InnoDB */
{
KEY* key = NULL;
dict_table_t* ib_table = m_prebuilt->table;
dict_index_t* index;
DBUG_ENTER("innobase_get_index");
if (keynr != MAX_KEY && table->s->keys > 0) {
key = &table->key_info[keynr];
index = dict_table_get_index_on_name(ib_table, key->name.str);
} else {
index = dict_table_get_first_index(ib_table);
}
if (index == NULL) {
sql_print_error(
"InnoDB could not find key no %u with name %s"
" from dict cache for table %s",
keynr, key ? key->name.str : "NULL",
ib_table->name.m_name);
}
DBUG_RETURN(index);
} | O3 | cpp | ha_innobase::innobase_get_index(unsigned int):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq 0x7a0(%rdi), %rax
movq 0x8(%rax), %r14
cmpl $0x40, %esi
je 0xb9b917
movq 0x10(%rdi), %rax
movq (%rax), %rcx
cmpl $0x0, 0x3a0(%rcx)
je 0xb9b917
movq 0xa8(%rax), %r12
movl %ebx, %eax
leaq (%rax,%rax,2), %r13
shlq $0x6, %r13
movq 0x40(%r12,%r13), %rsi
movq %r14, %rdi
callq 0xb623b0
movq %rax, %r15
testq %rax, %rax
jne 0xb9b94d
leaq (%r12,%r13), %rax
addq $0x40, %rax
movq (%rax), %r8
jmp 0xb9b92a
movq 0x98(%r14), %r15
testq %r15, %r15
jne 0xb9b94d
leaq 0x281a8f(%rip), %r8 # 0xe1d3b9
movq 0x10(%r14), %r9
leaq 0x265a99(%rip), %rdi # 0xe013ce
leaq 0x265f14(%rip), %rdx # 0xe01850
xorl %r15d, %r15d
movl $0x23e6, %esi # imm = 0x23E6
movl %ebx, %ecx
xorl %eax, %eax
callq 0x6f8444
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
| _ZN11ha_innobase18innobase_get_indexEj:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov ebx, esi
mov rax, [rdi+7A0h]
mov r14, [rax+8]
cmp esi, 40h ; '@'
jz short loc_B9B917
mov rax, [rdi+10h]
mov rcx, [rax]
cmp dword ptr [rcx+3A0h], 0
jz short loc_B9B917
mov r12, [rax+0A8h]
mov eax, ebx
lea r13, [rax+rax*2]
shl r13, 6
mov rsi, [r12+r13+40h]
mov rdi, r14
call _Z28dict_table_get_index_on_nameP12dict_table_tPKc; dict_table_get_index_on_name(dict_table_t *,char const*)
mov r15, rax
test rax, rax
jnz short loc_B9B94D
lea rax, [r12+r13]
add rax, 40h ; '@'
mov r8, [rax]
jmp short loc_B9B92A
loc_B9B917:
mov r15, [r14+98h]
test r15, r15
jnz short loc_B9B94D
lea r8, aStrchrTableNam+23h; "NULL"
loc_B9B92A:
mov r9, [r14+10h]
lea rdi, aWorkspaceLlm4b_129; "/workspace/llm4binary/github2025/eloqsq"...
lea rdx, aInnodbCouldNot_0; "InnoDB could not find key no %u with na"...
xor r15d, r15d
mov esi, 23E6h; int
mov ecx, ebx
xor eax, eax
call _Z16glog_print_errorPKciS0_z; glog_print_error(char const*,int,char const*,...)
loc_B9B94D:
mov rax, r15
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ha_innobase::innobase_get_index(
ha_innobase *this,
unsigned int a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10)
{
char v10; // al
long long v11; // r14
_QWORD *v12; // rax
long long v13; // r12
long long v14; // r13
long long index_on_name; // r15
const char *v16; // r8
char v18; // [rsp-8h] [rbp-30h]
v18 = v10;
v11 = *(_QWORD *)(*((_QWORD *)this + 244) + 8LL);
if ( a2 == 64 || (v12 = (_QWORD *)*((_QWORD *)this + 2), !*(_DWORD *)(*v12 + 928LL)) )
{
index_on_name = *(_QWORD *)(v11 + 152);
if ( !index_on_name )
{
v16 = "NULL";
goto LABEL_7;
}
}
else
{
v13 = v12[21];
v14 = 192LL * a2;
index_on_name = dict_table_get_index_on_name(
*(dict_table_t **)(*((_QWORD *)this + 244) + 8LL),
*(const char **)(v13 + v14 + 64));
if ( !index_on_name )
{
v16 = *(const char **)(v13 + v14 + 64);
LABEL_7:
index_on_name = 0LL;
glog_print_error(
"/workspace/llm4binary/github2025/eloqsql/storage/innobase/handler/ha_innodb.cc",
0x23E6u,
"InnoDB could not find key no %u with name %s from dict cache for table %s",
a2,
(long long)v16,
*(_QWORD *)(v11 + 16),
a3,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
v18);
}
}
return index_on_name;
}
| |||
49,724 | mul_fp12 | corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/fp12_tower.c | static void mul_fp12(vec384fp12 ret, const vec384fp12 a, const vec384fp12 b)
{
vec768fp6 t0, t1, rx;
vec384fp6 t2;
mul_fp6x2(t0, a[0], b[0]);
mul_fp6x2(t1, a[1], b[1]);
/* ret[1] = (a0 + a1)*(b0 + b1) - a0*b0 - a1*b1
= a0*b1 + a1*b0 */
add_fp6(t2, a[0], a[1]);
add_fp6(ret[1], b[0], b[1]);
mul_fp6x2(rx, ret[1], t2);
sub_fp6x2(rx, rx, t0);
sub_fp6x2(rx, rx, t1);
redc_fp6x2(ret[1], rx);
/* ret[0] = a0*b0 + a1*b1*v */
mul_by_u_plus_1_fp2x2(rx[0], t1[2]);
add_fp2x2(rx[0], t0[0], rx[0]);
add_fp2x2(rx[1], t0[1], t1[0]);
add_fp2x2(rx[2], t0[2], t1[1]);
redc_fp6x2(ret[0], rx);
} | O3 | c | mul_fp12:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x858, %rsp # imm = 0x858
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rdi, -0x78(%rbp)
leaq -0x760(%rbp), %rdi
callq 0x65cb7
movl $0x120, %eax # imm = 0x120
leaq (%r15,%rax), %r12
leaq (%r14,%rax), %r13
leaq -0x520(%rbp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x65cb7
leaq -0x880(%rbp), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x65b81
movl $0x120, %eax # imm = 0x120
addq %rax, %rbx
movq %rbx, -0x60(%rbp)
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x65b81
leaq -0x2e0(%rbp), %r15
movq %r15, %rdi
movq %rbx, %rsi
leaq -0x880(%rbp), %rdx
callq 0x65cb7
leaq 0x2d0ec(%rip), %r14 # 0x8a910
movq %r15, %rdi
movq %r15, %rsi
leaq -0x760(%rbp), %rbx
movq %rbx, %rdx
movq %r14, %rcx
callq 0x6eac0
leaq -0x280(%rbp), %rdi
leaq -0x700(%rbp), %rdx
movq %rdi, %rsi
movq %r14, %rcx
callq 0x6eac0
movl $0xc0, %eax
leaq (%r15,%rax), %rdi
movq %rdi, -0x40(%rbp)
leaq (%rbx,%rax), %rdx
movq %rdx, -0x98(%rbp)
movq %rdi, %rsi
movq %r14, %rcx
callq 0x6eac0
movl $0x120, %eax # imm = 0x120
leaq (%r15,%rax), %rdi
movq %rdi, -0x30(%rbp)
leaq (%rbx,%rax), %rdx
movq %rdx, -0x90(%rbp)
movq %rdi, %rsi
movq %r14, %rcx
callq 0x6eac0
movl $0x180, %r12d # imm = 0x180
leaq (%r15,%r12), %rdi
movq %rdi, -0x38(%rbp)
leaq (%rbx,%r12), %rdx
movq %rdx, -0x88(%rbp)
movq %rbx, %r15
movq %rdi, %rsi
movq %r14, %rcx
callq 0x6eac0
movl $0x1e0, %r13d # imm = 0x1E0
leaq -0x2e0(%rbp), %rax
leaq (%rax,%r13), %rbx
leaq (%r15,%r13), %rdx
movq %rdx, -0x80(%rbp)
movq %rbx, %rdi
movq %rbx, %rsi
movq %r14, %rcx
callq 0x6eac0
leaq -0x2e0(%rbp), %rdi
movq %rdi, %rsi
leaq -0x520(%rbp), %r15
movq %r15, %rdx
movq %r14, %rcx
callq 0x6eac0
leaq -0x4c0(%rbp), %rdx
leaq -0x280(%rbp), %rdi
movq %rdi, %rsi
movq %r14, %rcx
callq 0x6eac0
movl $0xc0, %eax
leaq (%r15,%rax), %rdx
movq %rdx, -0x70(%rbp)
movq -0x40(%rbp), %rdi
movq %rdi, %rsi
movq %r14, %rcx
callq 0x6eac0
movl $0x120, %edx # imm = 0x120
addq %r15, %rdx
movq %rdx, -0x68(%rbp)
movq -0x30(%rbp), %rdi
movq %rdi, %rsi
movq %r14, %rcx
callq 0x6eac0
leaq (%r15,%r12), %rdx
movq %rdx, -0x58(%rbp)
movq -0x38(%rbp), %rdi
movq %rdi, %rsi
movq %r14, %rcx
callq 0x6eac0
leaq (%r15,%r13), %rdx
movq %rdx, -0x50(%rbp)
movq %rbx, -0x48(%rbp)
movq %rbx, %rdi
movq %rbx, %rsi
movq %r14, %rcx
callq 0x6eac0
movabsq $-0x760c000300030003, %r15 # imm = 0x89F3FFFCFFFCFFFD
movq -0x60(%rbp), %rdi
leaq -0x2e0(%rbp), %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x72760
movq -0x78(%rbp), %rbx
leaq 0x150(%rbx), %rdi
leaq -0x280(%rbp), %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x72760
addq %rbx, %r12
movq %r12, %rdi
movq -0x40(%rbp), %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x72760
leaq 0x1b0(%rbx), %rdi
movq -0x30(%rbp), %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x72760
addq %rbx, %r13
movq %r13, %rdi
movq -0x38(%rbp), %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x72760
leaq 0x210(%rbx), %rdi
movq -0x48(%rbp), %r12
movq %r12, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x72760
leaq -0x2e0(%rbp), %rdi
movq -0x58(%rbp), %r13
movq %r13, %rsi
movq -0x50(%rbp), %r15
movq %r15, %rdx
movq %r14, %rcx
callq 0x6eac0
leaq -0x280(%rbp), %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x6e9a0
leaq -0x2e0(%rbp), %rdi
leaq -0x760(%rbp), %rsi
movq %rdi, %rdx
movq %r14, %rcx
callq 0x6e9a0
leaq -0x280(%rbp), %rdi
leaq -0x700(%rbp), %rsi
movq %rdi, %rdx
movq %r14, %rcx
callq 0x6e9a0
movq -0x40(%rbp), %r13
movq %r13, %rdi
movq -0x98(%rbp), %rsi
leaq -0x520(%rbp), %rdx
movq %r14, %rcx
callq 0x6e9a0
movq -0x30(%rbp), %rdi
movq -0x90(%rbp), %rsi
leaq -0x4c0(%rbp), %rdx
movq %r14, %rcx
callq 0x6e9a0
movq -0x38(%rbp), %r15
movq %r15, %rdi
movq -0x88(%rbp), %rsi
movq -0x70(%rbp), %rdx
movq %r14, %rcx
callq 0x6e9a0
movq %r12, %rdi
movq -0x80(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq %r14, %rcx
callq 0x6e9a0
movq %rbx, %rdi
leaq -0x2e0(%rbp), %rsi
movq %r14, %rdx
movabsq $-0x760c000300030003, %r12 # imm = 0x89F3FFFCFFFCFFFD
movq %r12, %rcx
callq 0x72760
leaq 0x30(%rbx), %rdi
leaq -0x280(%rbp), %rsi
movq %r14, %rdx
movq %r12, %rcx
callq 0x72760
leaq 0x60(%rbx), %rdi
movq %r13, %rsi
movq %r14, %rdx
movq %r12, %rcx
callq 0x72760
leaq 0x90(%rbx), %rdi
movq -0x30(%rbp), %rsi
movq %r14, %rdx
movq %r12, %rcx
callq 0x72760
movl $0xc0, %edi
addq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r12, %rcx
callq 0x72760
addq $0xf0, %rbx
movq %rbx, %rdi
movq -0x48(%rbp), %rsi
movq %r14, %rdx
movq %r12, %rcx
callq 0x72760
addq $0x858, %rsp # imm = 0x858
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| mul_fp12:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 858h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov [rbp+var_78], rdi
lea rdi, [rbp+var_760]
call mul_fp6x2
mov eax, 120h
lea r12, [r15+rax]
lea r13, [r14+rax]
lea rdi, [rbp+var_520]
mov rsi, r12
mov rdx, r13
call mul_fp6x2
lea rdi, [rbp+var_880]
mov rsi, r15
mov rdx, r12
call add_fp6
mov eax, 120h
add rbx, rax
mov [rbp+var_60], rbx
mov rdi, rbx
mov rsi, r14
mov rdx, r13
call add_fp6
lea r15, [rbp+var_2E0]
mov rdi, r15
mov rsi, rbx
lea rdx, [rbp+var_880]
call mul_fp6x2
lea r14, BLS12_381_P
mov rdi, r15
mov rsi, r15
lea rbx, [rbp+var_760]
mov rdx, rbx
mov rcx, r14
call _sub_mod_384x384
lea rdi, [rbp+var_280]
lea rdx, [rbp+var_700]
mov rsi, rdi
mov rcx, r14
call _sub_mod_384x384
mov eax, 0C0h
lea rdi, [r15+rax]
mov [rbp+var_40], rdi
lea rdx, [rbx+rax]
mov [rbp+var_98], rdx
mov rsi, rdi
mov rcx, r14
call _sub_mod_384x384
mov eax, 120h
lea rdi, [r15+rax]
mov [rbp+var_30], rdi
lea rdx, [rbx+rax]
mov [rbp+var_90], rdx
mov rsi, rdi
mov rcx, r14
call _sub_mod_384x384
mov r12d, 180h
lea rdi, [r15+r12]
mov [rbp+var_38], rdi
lea rdx, [rbx+r12]
mov [rbp+var_88], rdx
mov r15, rbx
mov rsi, rdi
mov rcx, r14
call _sub_mod_384x384
mov r13d, 1E0h
lea rax, [rbp+var_2E0]
lea rbx, [rax+r13]
lea rdx, [r15+r13]
mov [rbp+var_80], rdx
mov rdi, rbx
mov rsi, rbx
mov rcx, r14
call _sub_mod_384x384
lea rdi, [rbp+var_2E0]
mov rsi, rdi
lea r15, [rbp+var_520]
mov rdx, r15
mov rcx, r14
call _sub_mod_384x384
lea rdx, [rbp+var_4C0]
lea rdi, [rbp+var_280]
mov rsi, rdi
mov rcx, r14
call _sub_mod_384x384
mov eax, 0C0h
lea rdx, [r15+rax]
mov [rbp+var_70], rdx
mov rdi, [rbp+var_40]
mov rsi, rdi
mov rcx, r14
call _sub_mod_384x384
mov edx, 120h
add rdx, r15
mov [rbp+var_68], rdx
mov rdi, [rbp+var_30]
mov rsi, rdi
mov rcx, r14
call _sub_mod_384x384
lea rdx, [r15+r12]
mov [rbp+var_58], rdx
mov rdi, [rbp+var_38]
mov rsi, rdi
mov rcx, r14
call _sub_mod_384x384
lea rdx, [r15+r13]
mov [rbp+var_50], rdx
mov [rbp+var_48], rbx
mov rdi, rbx
mov rsi, rbx
mov rcx, r14
call _sub_mod_384x384
mov r15, 89F3FFFCFFFCFFFDh
mov rdi, [rbp+var_60]
lea rsi, [rbp+var_2E0]
mov rdx, r14
mov rcx, r15
call redc_mont_384
mov rbx, [rbp+var_78]
lea rdi, [rbx+150h]
lea rsi, [rbp+var_280]
mov rdx, r14
mov rcx, r15
call redc_mont_384
add r12, rbx
mov rdi, r12
mov rsi, [rbp+var_40]
mov rdx, r14
mov rcx, r15
call redc_mont_384
lea rdi, [rbx+1B0h]
mov rsi, [rbp+var_30]
mov rdx, r14
mov rcx, r15
call redc_mont_384
add r13, rbx
mov rdi, r13
mov rsi, [rbp+var_38]
mov rdx, r14
mov rcx, r15
call redc_mont_384
lea rdi, [rbx+210h]
mov r12, [rbp+var_48]
mov rsi, r12
mov rdx, r14
mov rcx, r15
call redc_mont_384
lea rdi, [rbp+var_2E0]
mov r13, [rbp+var_58]
mov rsi, r13
mov r15, [rbp+var_50]
mov rdx, r15
mov rcx, r14
call _sub_mod_384x384
lea rdi, [rbp+var_280]
mov rsi, r13
mov rdx, r15
mov rcx, r14
call add_mod_384x384
lea rdi, [rbp+var_2E0]
lea rsi, [rbp+var_760]
mov rdx, rdi
mov rcx, r14
call add_mod_384x384
lea rdi, [rbp+var_280]
lea rsi, [rbp+var_700]
mov rdx, rdi
mov rcx, r14
call add_mod_384x384
mov r13, [rbp+var_40]
mov rdi, r13
mov rsi, [rbp+var_98]
lea rdx, [rbp+var_520]
mov rcx, r14
call add_mod_384x384
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_90]
lea rdx, [rbp+var_4C0]
mov rcx, r14
call add_mod_384x384
mov r15, [rbp+var_38]
mov rdi, r15
mov rsi, [rbp+var_88]
mov rdx, [rbp+var_70]
mov rcx, r14
call add_mod_384x384
mov rdi, r12
mov rsi, [rbp+var_80]
mov rdx, [rbp+var_68]
mov rcx, r14
call add_mod_384x384
mov rdi, rbx
lea rsi, [rbp+var_2E0]
mov rdx, r14
mov r12, 89F3FFFCFFFCFFFDh
mov rcx, r12
call redc_mont_384
lea rdi, [rbx+30h]
lea rsi, [rbp+var_280]
mov rdx, r14
mov rcx, r12
call redc_mont_384
lea rdi, [rbx+60h]
mov rsi, r13
mov rdx, r14
mov rcx, r12
call redc_mont_384
lea rdi, [rbx+90h]
mov rsi, [rbp+var_30]
mov rdx, r14
mov rcx, r12
call redc_mont_384
mov edi, 0C0h
add rdi, rbx
mov rsi, r15
mov rdx, r14
mov rcx, r12
call redc_mont_384
add rbx, 0F0h
mov rdi, rbx
mov rsi, [rbp+var_48]
mov rdx, r14
mov rcx, r12
call redc_mont_384
add rsp, 858h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long mul_fp12(long long a1, long long a2, long long a3)
{
long long v4; // rbx
_BYTE *v5; // r12
_BYTE *v6; // r13
_BYTE *v7; // r15
_BYTE *v8; // r13
_BYTE *v9; // r15
_BYTE v11[288]; // [rsp+0h] [rbp-880h] BYREF
_BYTE v12[96]; // [rsp+120h] [rbp-760h] BYREF
_BYTE v13[96]; // [rsp+180h] [rbp-700h] BYREF
_BYTE v14[96]; // [rsp+1E0h] [rbp-6A0h] BYREF
_BYTE v15[96]; // [rsp+240h] [rbp-640h] BYREF
_BYTE v16[96]; // [rsp+2A0h] [rbp-5E0h] BYREF
_BYTE v17[96]; // [rsp+300h] [rbp-580h] BYREF
_BYTE v18[96]; // [rsp+360h] [rbp-520h] BYREF
_BYTE v19[96]; // [rsp+3C0h] [rbp-4C0h] BYREF
_BYTE v20[96]; // [rsp+420h] [rbp-460h] BYREF
_BYTE v21[96]; // [rsp+480h] [rbp-400h] BYREF
_BYTE v22[96]; // [rsp+4E0h] [rbp-3A0h] BYREF
_BYTE v23[96]; // [rsp+540h] [rbp-340h] BYREF
_BYTE v24[96]; // [rsp+5A0h] [rbp-2E0h] BYREF
_BYTE v25[96]; // [rsp+600h] [rbp-280h] BYREF
_BYTE v26[96]; // [rsp+660h] [rbp-220h] BYREF
_BYTE v27[96]; // [rsp+6C0h] [rbp-1C0h] BYREF
_BYTE v28[96]; // [rsp+720h] [rbp-160h] BYREF
_BYTE v29[104]; // [rsp+780h] [rbp-100h] BYREF
_BYTE *v30; // [rsp+7E8h] [rbp-98h]
_BYTE *v31; // [rsp+7F0h] [rbp-90h]
_BYTE *v32; // [rsp+7F8h] [rbp-88h]
_BYTE *v33; // [rsp+800h] [rbp-80h]
long long v34; // [rsp+808h] [rbp-78h]
_BYTE *v35; // [rsp+810h] [rbp-70h]
_BYTE *v36; // [rsp+818h] [rbp-68h]
long long v37; // [rsp+820h] [rbp-60h]
_BYTE *v38; // [rsp+828h] [rbp-58h]
_BYTE *v39; // [rsp+830h] [rbp-50h]
_BYTE *v40; // [rsp+838h] [rbp-48h]
_BYTE *v41; // [rsp+840h] [rbp-40h]
_BYTE *v42; // [rsp+848h] [rbp-38h]
_BYTE *v43; // [rsp+850h] [rbp-30h]
v34 = a1;
mul_fp6x2(v12);
mul_fp6x2(v18);
add_fp6(v11, a2, a2 + 288);
v37 = a1 + 288;
add_fp6(a1 + 288, a3, a3 + 288);
mul_fp6x2(v24);
sub_mod_384x384(v24, v24, v12, &BLS12_381_P);
sub_mod_384x384(v25, v25, v13, &BLS12_381_P);
v41 = v26;
v30 = v14;
sub_mod_384x384(v26, v26, v14, &BLS12_381_P);
v43 = v27;
v31 = v15;
sub_mod_384x384(v27, v27, v15, &BLS12_381_P);
v42 = v28;
v32 = v16;
sub_mod_384x384(v28, v28, v16, &BLS12_381_P);
v33 = v17;
sub_mod_384x384(v29, v29, v17, &BLS12_381_P);
sub_mod_384x384(v24, v24, v18, &BLS12_381_P);
sub_mod_384x384(v25, v25, v19, &BLS12_381_P);
v35 = v20;
sub_mod_384x384(v41, v41, v20, &BLS12_381_P);
v36 = v21;
sub_mod_384x384(v43, v43, v21, &BLS12_381_P);
v38 = v22;
sub_mod_384x384(v42, v42, v22, &BLS12_381_P);
v39 = v23;
v40 = v29;
sub_mod_384x384(v29, v29, v23, &BLS12_381_P);
redc_mont_384(v37, v24, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
v4 = v34;
redc_mont_384(v34 + 336, v25, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
redc_mont_384(v4 + 384, v41, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
redc_mont_384(v4 + 432, v43, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
redc_mont_384(v4 + 480, v42, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
v5 = v40;
redc_mont_384(v4 + 528, v40, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
v6 = v38;
v7 = v39;
sub_mod_384x384(v24, v38, v39, &BLS12_381_P);
add_mod_384x384(v25, v6, v7, &BLS12_381_P);
add_mod_384x384(v24, v12, v24, &BLS12_381_P);
add_mod_384x384(v25, v13, v25, &BLS12_381_P);
v8 = v41;
add_mod_384x384(v41, v30, v18, &BLS12_381_P);
add_mod_384x384(v43, v31, v19, &BLS12_381_P);
v9 = v42;
add_mod_384x384(v42, v32, v35, &BLS12_381_P);
add_mod_384x384(v5, v33, v36, &BLS12_381_P);
redc_mont_384(v4, v24, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
redc_mont_384(v4 + 48, v25, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
redc_mont_384(v4 + 96, v8, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
redc_mont_384(v4 + 144, v43, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
redc_mont_384(v4 + 192, v9, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
return redc_mont_384(v4 + 240, v40, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
}
| mul_fp12:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x858
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV qword ptr [RBP + -0x78],RDI
LEA RDI,[RBP + -0x760]
CALL 0x00165cb7
MOV EAX,0x120
LEA R12,[R15 + RAX*0x1]
LEA R13,[R14 + RAX*0x1]
LEA RDI,[RBP + -0x520]
MOV RSI,R12
MOV RDX,R13
CALL 0x00165cb7
LEA RDI,[RBP + -0x880]
MOV RSI,R15
MOV RDX,R12
CALL 0x00165b81
MOV EAX,0x120
ADD RBX,RAX
MOV qword ptr [RBP + -0x60],RBX
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R13
CALL 0x00165b81
LEA R15,[RBP + -0x2e0]
MOV RDI,R15
MOV RSI,RBX
LEA RDX,[RBP + -0x880]
CALL 0x00165cb7
LEA R14,[0x18a910]
MOV RDI,R15
MOV RSI,R15
LEA RBX,[RBP + -0x760]
MOV RDX,RBX
MOV RCX,R14
CALL 0x0016eac0
LEA RDI,[RBP + -0x280]
LEA RDX,[RBP + -0x700]
MOV RSI,RDI
MOV RCX,R14
CALL 0x0016eac0
MOV EAX,0xc0
LEA RDI,[R15 + RAX*0x1]
MOV qword ptr [RBP + -0x40],RDI
LEA RDX,[RBX + RAX*0x1]
MOV qword ptr [RBP + -0x98],RDX
MOV RSI,RDI
MOV RCX,R14
CALL 0x0016eac0
MOV EAX,0x120
LEA RDI,[R15 + RAX*0x1]
MOV qword ptr [RBP + -0x30],RDI
LEA RDX,[RBX + RAX*0x1]
MOV qword ptr [RBP + -0x90],RDX
MOV RSI,RDI
MOV RCX,R14
CALL 0x0016eac0
MOV R12D,0x180
LEA RDI,[R15 + R12*0x1]
MOV qword ptr [RBP + -0x38],RDI
LEA RDX,[RBX + R12*0x1]
MOV qword ptr [RBP + -0x88],RDX
MOV R15,RBX
MOV RSI,RDI
MOV RCX,R14
CALL 0x0016eac0
MOV R13D,0x1e0
LEA RAX,[RBP + -0x2e0]
LEA RBX,[RAX + R13*0x1]
LEA RDX,[R15 + R13*0x1]
MOV qword ptr [RBP + -0x80],RDX
MOV RDI,RBX
MOV RSI,RBX
MOV RCX,R14
CALL 0x0016eac0
LEA RDI,[RBP + -0x2e0]
MOV RSI,RDI
LEA R15,[RBP + -0x520]
MOV RDX,R15
MOV RCX,R14
CALL 0x0016eac0
LEA RDX,[RBP + -0x4c0]
LEA RDI,[RBP + -0x280]
MOV RSI,RDI
MOV RCX,R14
CALL 0x0016eac0
MOV EAX,0xc0
LEA RDX,[R15 + RAX*0x1]
MOV qword ptr [RBP + -0x70],RDX
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,RDI
MOV RCX,R14
CALL 0x0016eac0
MOV EDX,0x120
ADD RDX,R15
MOV qword ptr [RBP + -0x68],RDX
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,RDI
MOV RCX,R14
CALL 0x0016eac0
LEA RDX,[R15 + R12*0x1]
MOV qword ptr [RBP + -0x58],RDX
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,RDI
MOV RCX,R14
CALL 0x0016eac0
LEA RDX,[R15 + R13*0x1]
MOV qword ptr [RBP + -0x50],RDX
MOV qword ptr [RBP + -0x48],RBX
MOV RDI,RBX
MOV RSI,RBX
MOV RCX,R14
CALL 0x0016eac0
MOV R15,-0x760c000300030003
MOV RDI,qword ptr [RBP + -0x60]
LEA RSI,[RBP + -0x2e0]
MOV RDX,R14
MOV RCX,R15
CALL 0x00172760
MOV RBX,qword ptr [RBP + -0x78]
LEA RDI,[RBX + 0x150]
LEA RSI,[RBP + -0x280]
MOV RDX,R14
MOV RCX,R15
CALL 0x00172760
ADD R12,RBX
MOV RDI,R12
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,R14
MOV RCX,R15
CALL 0x00172760
LEA RDI,[RBX + 0x1b0]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,R14
MOV RCX,R15
CALL 0x00172760
ADD R13,RBX
MOV RDI,R13
MOV RSI,qword ptr [RBP + -0x38]
MOV RDX,R14
MOV RCX,R15
CALL 0x00172760
LEA RDI,[RBX + 0x210]
MOV R12,qword ptr [RBP + -0x48]
MOV RSI,R12
MOV RDX,R14
MOV RCX,R15
CALL 0x00172760
LEA RDI,[RBP + -0x2e0]
MOV R13,qword ptr [RBP + -0x58]
MOV RSI,R13
MOV R15,qword ptr [RBP + -0x50]
MOV RDX,R15
MOV RCX,R14
CALL 0x0016eac0
LEA RDI,[RBP + -0x280]
MOV RSI,R13
MOV RDX,R15
MOV RCX,R14
CALL 0x0016e9a0
LEA RDI,[RBP + -0x2e0]
LEA RSI,[RBP + -0x760]
MOV RDX,RDI
MOV RCX,R14
CALL 0x0016e9a0
LEA RDI,[RBP + -0x280]
LEA RSI,[RBP + -0x700]
MOV RDX,RDI
MOV RCX,R14
CALL 0x0016e9a0
MOV R13,qword ptr [RBP + -0x40]
MOV RDI,R13
MOV RSI,qword ptr [RBP + -0x98]
LEA RDX,[RBP + -0x520]
MOV RCX,R14
CALL 0x0016e9a0
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x90]
LEA RDX,[RBP + -0x4c0]
MOV RCX,R14
CALL 0x0016e9a0
MOV R15,qword ptr [RBP + -0x38]
MOV RDI,R15
MOV RSI,qword ptr [RBP + -0x88]
MOV RDX,qword ptr [RBP + -0x70]
MOV RCX,R14
CALL 0x0016e9a0
MOV RDI,R12
MOV RSI,qword ptr [RBP + -0x80]
MOV RDX,qword ptr [RBP + -0x68]
MOV RCX,R14
CALL 0x0016e9a0
MOV RDI,RBX
LEA RSI,[RBP + -0x2e0]
MOV RDX,R14
MOV R12,-0x760c000300030003
MOV RCX,R12
CALL 0x00172760
LEA RDI,[RBX + 0x30]
LEA RSI,[RBP + -0x280]
MOV RDX,R14
MOV RCX,R12
CALL 0x00172760
LEA RDI,[RBX + 0x60]
MOV RSI,R13
MOV RDX,R14
MOV RCX,R12
CALL 0x00172760
LEA RDI,[RBX + 0x90]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,R14
MOV RCX,R12
CALL 0x00172760
MOV EDI,0xc0
ADD RDI,RBX
MOV RSI,R15
MOV RDX,R14
MOV RCX,R12
CALL 0x00172760
ADD RBX,0xf0
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0x48]
MOV RDX,R14
MOV RCX,R12
CALL 0x00172760
ADD RSP,0x858
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void mul_fp12(long param_1,long param_2,long param_3)
{
long lVar1;
int1 *puVar2;
int1 *puVar3;
int1 *puVar4;
int1 local_888 [288];
int1 local_768 [96];
int1 local_708 [96];
int1 local_6a8 [96];
int1 local_648 [96];
int1 local_5e8 [96];
int1 local_588 [96];
int1 local_528 [96];
int1 local_4c8 [96];
int1 local_468 [96];
int1 auStack_408 [96];
int1 local_3a8 [96];
int1 local_348 [96];
int1 local_2e8 [96];
int1 local_288 [96];
int1 local_228 [96];
int1 local_1c8 [96];
int1 local_168 [96];
int1 local_108 [104];
int1 *local_a0;
int1 *local_98;
int1 *local_90;
int1 *local_88;
long local_80;
int1 *local_78;
int1 *local_70;
long local_68;
int1 *local_60;
int1 *local_58;
int1 *local_50;
int1 *local_48;
int1 *local_40;
int1 *local_38;
local_80 = param_1;
mul_fp6x2(local_768);
mul_fp6x2(local_528,param_2 + 0x120,param_3 + 0x120);
add_fp6(local_888,param_2,param_2 + 0x120);
param_1 = param_1 + 0x120;
local_68 = param_1;
add_fp6(param_1,param_3,param_3 + 0x120);
mul_fp6x2(local_2e8,param_1,local_888);
sub_mod_384x384(local_2e8,local_2e8,local_768,BLS12_381_P);
sub_mod_384x384(local_288,local_288,local_708,BLS12_381_P);
local_48 = local_228;
local_a0 = local_6a8;
sub_mod_384x384(local_48,local_48,local_a0,BLS12_381_P);
local_38 = local_1c8;
local_98 = local_648;
sub_mod_384x384(local_38,local_38,local_98,BLS12_381_P);
local_40 = local_168;
local_90 = local_5e8;
sub_mod_384x384(local_40,local_40,local_90,BLS12_381_P);
local_88 = local_588;
sub_mod_384x384(local_108,local_108,local_88,BLS12_381_P);
sub_mod_384x384(local_2e8,local_2e8,local_528,BLS12_381_P);
sub_mod_384x384(local_288,local_288,local_4c8,BLS12_381_P);
local_78 = local_468;
sub_mod_384x384(local_48,local_48,local_78,BLS12_381_P);
local_70 = auStack_408;
sub_mod_384x384(local_38,local_38,local_70,BLS12_381_P);
local_60 = local_3a8;
sub_mod_384x384(local_40,local_40,local_60,BLS12_381_P);
local_58 = local_348;
local_50 = local_108;
sub_mod_384x384(local_108,local_108,local_58,BLS12_381_P);
redc_mont_384(local_68,local_2e8,BLS12_381_P,0x89f3fffcfffcfffd);
lVar1 = local_80;
redc_mont_384(local_80 + 0x150,local_288,BLS12_381_P,0x89f3fffcfffcfffd);
redc_mont_384(lVar1 + 0x180,local_48,BLS12_381_P,0x89f3fffcfffcfffd);
redc_mont_384(lVar1 + 0x1b0,local_38,BLS12_381_P,0x89f3fffcfffcfffd);
redc_mont_384(lVar1 + 0x1e0,local_40,BLS12_381_P,0x89f3fffcfffcfffd);
puVar4 = local_50;
redc_mont_384(lVar1 + 0x210,local_50,BLS12_381_P,0x89f3fffcfffcfffd);
puVar3 = local_58;
puVar2 = local_60;
sub_mod_384x384(local_2e8,local_60,local_58,BLS12_381_P);
add_mod_384x384(local_288,puVar2,puVar3,BLS12_381_P);
add_mod_384x384(local_2e8,local_768,local_2e8,BLS12_381_P);
add_mod_384x384(local_288,local_708,local_288,BLS12_381_P);
puVar2 = local_48;
add_mod_384x384(local_48,local_a0,local_528,BLS12_381_P);
add_mod_384x384(local_38,local_98,local_4c8,BLS12_381_P);
puVar3 = local_40;
add_mod_384x384(local_40,local_90,local_78,BLS12_381_P);
add_mod_384x384(puVar4,local_88,local_70,BLS12_381_P);
redc_mont_384(lVar1,local_2e8,BLS12_381_P,0x89f3fffcfffcfffd);
redc_mont_384(lVar1 + 0x30,local_288,BLS12_381_P,0x89f3fffcfffcfffd);
redc_mont_384(lVar1 + 0x60,puVar2,BLS12_381_P,0x89f3fffcfffcfffd);
redc_mont_384(lVar1 + 0x90,local_38,BLS12_381_P,0x89f3fffcfffcfffd);
redc_mont_384(lVar1 + 0xc0,puVar3,BLS12_381_P,0x89f3fffcfffcfffd);
redc_mont_384(lVar1 + 0xf0,local_50,BLS12_381_P,0x89f3fffcfffcfffd);
return;
}
| |
49,725 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const | hkr04[P]cpp-mcp/common/json.hpp | const_reference operator[](const typename object_t::key_type& key) const
{
// const operator[] only works for objects
if (JSON_HEDLEY_LIKELY(is_object()))
{
auto it = m_data.m_value.object->find(key);
JSON_ASSERT(it != m_data.m_value.object->end());
return it->second;
}
JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a string argument with ", type_name()), this));
} | O0 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq 0x60(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x6fcd0
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x77d87
jmp 0x77db2
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x58(%rsp), %rsi
callq 0x77e70
movq %rax, 0x50(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x76480
addq $0x20, %rax
addq $0x68, %rsp
retq
movb $0x1, 0x1b(%rsp)
movl $0x20, %edi
callq 0xc440
movq 0x10(%rsp), %rdi
movq %rax, 0x8(%rsp)
callq 0x156d0
movq %rax, 0x28(%rsp)
leaq 0x6d2e0(%rip), %rsi # 0xe50bc
leaq 0x30(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x77c00
jmp 0x77ded
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rdi
movl $0x131, %esi # imm = 0x131
leaq 0x30(%rsp), %rdx
callq 0x15470
jmp 0x77e08
movq 0x8(%rsp), %rdi
movb $0x0, 0x1b(%rsp)
leaq 0xc4cbf(%rip), %rsi # 0x13cad8
leaq -0x626a0(%rip), %rdx # 0x15780
callq 0xcdc0
jmp 0x77e6e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
jmp 0x77e4f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
leaq 0x30(%rsp), %rdi
callq 0xcfd0
testb $0x1, 0x1b(%rsp)
jne 0x77e58
jmp 0x77e62
movq 0x8(%rsp), %rdi
callq 0xc670
jmp 0x77e64
movq 0x20(%rsp), %rdi
callq 0xce40
nop
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixERKS9_:
sub rsp, 68h
mov qword ptr [rsp+68h+var_8], rdi; int
mov qword ptr [rsp+68h+var_10], rsi; int
mov rdi, qword ptr [rsp+68h+var_8]
mov qword ptr [rsp+68h+var_58], rdi; int
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void)
xor al, 0FFh
xor al, 0FFh
test al, 1
jnz short loc_77D87
jmp short loc_77DB2
loc_77D87:
mov rax, qword ptr [rsp+68h+var_58]
mov rdi, [rax+8]
mov rsi, qword ptr [rsp+68h+var_10]
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findERSH_; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::find(std::string const&)
mov [rsp+68h+var_18], rax
lea rdi, [rsp+68h+var_18]
call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator->(void)
add rax, 20h ; ' '
add rsp, 68h
retn
loc_77DB2:
mov [rsp+68h+var_4D], 1
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rdi, qword ptr [rsp+68h+var_58]
mov [rsp+68h+var_60], rax; int
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
mov qword ptr [rsp+68h+var_40], rax; int
lea rsi, aCannotUseOpera_0; "cannot use operator[] with a string arg"...
lea rdi, [rsp+68h+var_38]; int
lea rdx, [rsp+68h+var_40]; int
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA51_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[51],char const*>(char const(&)[51],char const* &&)
jmp short $+2
loc_77DED:
mov rcx, qword ptr [rsp+68h+var_58]
mov rdi, [rsp+68h+var_60]; int
mov esi, 131h
lea rdx, [rsp+68h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
jmp short $+2
loc_77E08:
mov rdi, [rsp+68h+var_60]; void *
mov [rsp+68h+var_4D], 0
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail10type_errorD2Ev; void (*)(void *)
call ___cxa_throw
| long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[](
long long a1,
long long a2)
{
void *exception; // [rsp+8h] [rbp-60h]
int v4[2]; // [rsp+28h] [rbp-40h] BYREF
int v5[8]; // [rsp+30h] [rbp-38h] BYREF
long long v6; // [rsp+50h] [rbp-18h] BYREF
int v7[2]; // [rsp+58h] [rbp-10h]
int v8[2]; // [rsp+60h] [rbp-8h]
*(_QWORD *)v8 = a1;
*(_QWORD *)v7 = a2;
if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object((_BYTE *)a1) )
{
exception = __cxa_allocate_exception(0x20uLL);
*(_QWORD *)v4 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((_BYTE *)a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[51],char const*>(
(long long)v5,
(long long)"cannot use operator[] with a string argument with ",
(nlohmann::json_abi_v3_11_3::detail **)v4);
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
(long long)exception,
305LL,
(long long)v5,
a1);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::type_error::~type_error);
}
v6 = nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::find(
*(_QWORD *)(a1 + 8),
*(_QWORD *)v7);
return __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator->((long long)&v6)
+ 32;
}
| operator[]:
SUB RSP,0x68
MOV qword ptr [RSP + 0x60],RDI
MOV qword ptr [RSP + 0x58],RSI
MOV RDI,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x10],RDI
CALL 0x0016fcd0
XOR AL,0xff
XOR AL,0xff
TEST AL,0x1
JNZ 0x00177d87
JMP 0x00177db2
LAB_00177d87:
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RAX + 0x8]
MOV RSI,qword ptr [RSP + 0x58]
CALL 0x00177e70
MOV qword ptr [RSP + 0x50],RAX
LEA RDI,[RSP + 0x50]
CALL 0x00176480
ADD RAX,0x20
ADD RSP,0x68
RET
LAB_00177db2:
MOV byte ptr [RSP + 0x1b],0x1
MOV EDI,0x20
CALL 0x0010c440
MOV RDI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x8],RAX
CALL 0x001156d0
MOV qword ptr [RSP + 0x28],RAX
LAB_00177dd5:
LEA RSI,[0x1e50bc]
LEA RDI,[RSP + 0x30]
LEA RDX,[RSP + 0x28]
CALL 0x00177c00
JMP 0x00177ded
LAB_00177ded:
MOV RCX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,0x131
LEA RDX,[RSP + 0x30]
CALL 0x00115470
JMP 0x00177e08
LAB_00177e08:
MOV RDI,qword ptr [RSP + 0x8]
MOV byte ptr [RSP + 0x1b],0x0
LEA RSI,[0x23cad8]
LEA RDX,[0x115780]
CALL 0x0010cdc0
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::operator[](std::__cxx11::string const&) const */
long __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[](basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this,string *param_1)
{
byte bVar1;
long lVar2;
int8 uVar3;
char *local_40;
detail local_38 [32];
int8 local_18;
string *local_10;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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;
local_10 = param_1;
local_8 = this;
bVar1 = is_object(this);
if ((bVar1 & 1) == 0) {
uVar3 = __cxa_allocate_exception(0x20);
local_40 = (char *)type_name(this);
/* try { // try from 00177dd5 to 00177dea has its CatchHandler @ 00177e27 */
detail::concat<std::__cxx11::string,char_const(&)[51],char_const*>
(local_38,"cannot use operator[] with a string argument with ",&local_40);
/* try { // try from 00177ded to 00177e24 has its CatchHandler @ 00177e37 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar3,0x131,local_38,this);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar3,&detail::type_error::typeinfo,detail::type_error::~type_error);
}
local_18 = ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::find(*(ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
**)(this + 8),local_10);
lVar2 = __gnu_cxx::
__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
::operator->((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>
*)&local_18);
return lVar2 + 0x20;
}
| |
49,726 | LOGGER::slow_log_print(THD*, char const*, unsigned long, unsigned long long) | eloqsql/sql/log.cc | bool LOGGER::slow_log_print(THD *thd, const char *query, size_t query_length,
ulonglong current_utime)
{
bool error= FALSE;
Log_event_handler **current_handler;
bool is_command= FALSE;
char user_host_buff[MAX_USER_HOST_SIZE + 1];
Security_context *sctx= thd->security_ctx;
uint user_host_len= 0;
ulonglong query_utime, lock_utime;
DBUG_ASSERT(thd->enable_slow_log);
/*
Print the message to the buffer if we have slow log enabled
*/
if (*slow_log_handler_list)
{
/* do not log slow queries from replication threads */
if (!thd->variables.sql_log_slow)
return 0;
lock_shared();
if (!global_system_variables.sql_log_slow)
{
unlock();
return 0;
}
/* fill in user_host value: the format is "%s[%s] @ %s [%s]" */
user_host_len= (uint)(strxnmov(user_host_buff, MAX_USER_HOST_SIZE,
sctx->priv_user, "[",
sctx->user ? sctx->user : (thd->slave_thread ? "SQL_SLAVE" : ""), "] @ ",
sctx->host ? sctx->host : "", " [",
sctx->ip ? sctx->ip : "", "]", NullS) -
user_host_buff);
DBUG_ASSERT(thd->start_utime);
DBUG_ASSERT(thd->start_time);
query_utime= (current_utime - thd->start_utime);
lock_utime= (thd->utime_after_lock - thd->start_utime);
my_hrtime_t current_time= { hrtime_from_time(thd->start_time) +
thd->start_time_sec_part + query_utime };
if (!query || thd->get_command() == COM_STMT_PREPARE)
{
is_command= TRUE;
query= command_name[thd->get_command()].str;
query_length= (uint)command_name[thd->get_command()].length;
}
for (current_handler= slow_log_handler_list; *current_handler ;)
error= (*current_handler++)->log_slow(thd, current_time,
user_host_buff, user_host_len,
query_utime, lock_utime, is_command,
query, query_length) || error;
unlock();
}
return error;
} | O0 | cpp | LOGGER::slow_log_print(THD*, char const*, unsigned long, unsigned long long):
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x300, %rsp # imm = 0x300
movq %fs:0x28, %rax
movq %rax, -0x18(%rbp)
movq %rdi, -0x230(%rbp)
movq %rsi, -0x238(%rbp)
movq %rdx, -0x240(%rbp)
movq %rcx, -0x248(%rbp)
movq %r8, -0x250(%rbp)
movq -0x230(%rbp), %rax
movq %rax, -0x2a0(%rbp)
movb $0x0, -0x251(%rbp)
movb $0x0, -0x261(%rbp)
movq -0x238(%rbp), %rax
movq 0x2570(%rax), %rax
movq %rax, -0x270(%rbp)
movl $0x0, -0x274(%rbp)
jmp 0x9ef41b
movq -0x2a0(%rbp), %rax
cmpq $0x0, 0xd0(%rax)
je 0x9ef7ae
movq -0x238(%rbp), %rax
cmpb $0x0, 0xb25(%rax)
jne 0x9ef44c
movb $0x0, -0x221(%rbp)
jmp 0x9ef7bc
movq -0x2a0(%rbp), %rdi
callq 0x9ebdc0
leaq 0xbcce31(%rip), %rax # 0x15bc290
cmpb $0x0, 0x2e5(%rax)
jne 0x9ef480
movq -0x2a0(%rbp), %rdi
callq 0x745ab0
movb $0x0, -0x221(%rbp)
jmp 0x9ef7bc
leaq -0x220(%rbp), %rax
movq %rax, -0x2b0(%rbp)
movq -0x270(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x2a8(%rbp)
movq -0x270(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x9ef4c2
movq -0x270(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x2b8(%rbp)
jmp 0x9ef4eb
movq -0x238(%rbp), %rax
movb 0x3fb3(%rax), %dl
leaq 0x3dd54f(%rip), %rax # 0xdcca25
leaq 0x3d8704(%rip), %rcx # 0xdc7be1
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, -0x2b8(%rbp)
movq -0x2b8(%rbp), %rax
movq %rax, -0x2c0(%rbp)
movq -0x270(%rbp), %rax
cmpq $0x0, (%rax)
je 0x9ef519
movq -0x270(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x2c8(%rbp)
jmp 0x9ef529
leaq 0x3dd505(%rip), %rax # 0xdcca25
movq %rax, -0x2c8(%rbp)
jmp 0x9ef529
movq -0x2c8(%rbp), %rax
movq %rax, -0x2d0(%rbp)
movq -0x270(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x9ef559
movq -0x270(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x2d8(%rbp)
jmp 0x9ef569
leaq 0x3dd4c5(%rip), %rax # 0xdcca25
movq %rax, -0x2d8(%rbp)
jmp 0x9ef569
movq -0x2d0(%rbp), %rbx
movq -0x2c0(%rbp), %r8
movq -0x2a8(%rbp), %rdx
movq -0x2b0(%rbp), %rdi
movq -0x2d8(%rbp), %r10
movl $0x200, %esi # imm = 0x200
leaq 0x3dd28b(%rip), %rcx # 0xdcc823
leaq 0x38b2ca(%rip), %r9 # 0xd7a869
leaq 0x3dd27c(%rip), %r11 # 0xdcc822
leaq 0x393608(%rip), %rax # 0xd82bb5
xorl %r14d, %r14d
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
movb $0x0, %al
callq 0xc8c1d0
leaq -0x220(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0x274(%rbp)
jmp 0x9ef5e5
jmp 0x9ef5e7
jmp 0x9ef5e9
movq -0x250(%rbp), %rax
movq -0x238(%rbp), %rcx
subq 0x2750(%rcx), %rax
movq %rax, -0x280(%rbp)
movq -0x238(%rbp), %rax
movq 0x2758(%rax), %rax
movq -0x238(%rbp), %rcx
subq 0x2750(%rcx), %rax
movq %rax, -0x288(%rbp)
movq -0x238(%rbp), %rax
imulq $0xf4240, 0x2728(%rax), %rax # imm = 0xF4240
movq -0x238(%rbp), %rcx
addq 0x2730(%rcx), %rax
addq -0x280(%rbp), %rax
movq %rax, -0x290(%rbp)
cmpq $0x0, -0x240(%rbp)
je 0x9ef671
movq -0x238(%rbp), %rdi
callq 0x4b33c0
cmpl $0x16, %eax
jne 0x9ef6cb
movb $0x1, -0x261(%rbp)
movq -0x238(%rbp), %rdi
callq 0x4b33c0
movl %eax, %eax
movl %eax, %ecx
leaq 0x89e761(%rip), %rax # 0x128ddf0
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x240(%rbp)
movq -0x238(%rbp), %rdi
callq 0x4b33c0
movl %eax, %eax
movl %eax, %ecx
leaq 0x89e739(%rip), %rax # 0x128ddf0
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movl %eax, %eax
movq %rax, -0x248(%rbp)
movq -0x2a0(%rbp), %rax
addq $0xd0, %rax
movq %rax, -0x260(%rbp)
movq -0x260(%rbp), %rax
cmpq $0x0, (%rax)
je 0x9ef7a2
movq -0x260(%rbp), %rax
movq %rax, %rcx
addq $0x8, %rcx
movq %rcx, -0x260(%rbp)
movq (%rax), %rdi
movq -0x238(%rbp), %rsi
movq -0x290(%rbp), %rax
movq %rax, -0x298(%rbp)
leaq -0x220(%rbp), %rcx
movl -0x274(%rbp), %eax
movl %eax, %r8d
movq -0x280(%rbp), %r9
movq -0x288(%rbp), %r14
movb -0x261(%rbp), %bl
movq -0x240(%rbp), %r11
movq -0x248(%rbp), %r10
movq -0x298(%rbp), %rdx
movq (%rdi), %rax
andb $0x1, %bl
movq %r14, (%rsp)
movzbl %bl, %ebx
movl %ebx, 0x8(%rsp)
movq %r11, 0x10(%rsp)
movq %r10, 0x18(%rsp)
callq *0x10(%rax)
movb %al, %cl
movb $0x1, %al
testb $0x1, %cl
movb %al, -0x2d9(%rbp)
jne 0x9ef78f
movb -0x251(%rbp), %al
movb %al, -0x2d9(%rbp)
movb -0x2d9(%rbp), %al
andb $0x1, %al
movb %al, -0x251(%rbp)
jmp 0x9ef6df
movq -0x2a0(%rbp), %rdi
callq 0x745ab0
movb -0x251(%rbp), %al
andb $0x1, %al
movb %al, -0x221(%rbp)
movb -0x221(%rbp), %al
movb %al, -0x2da(%rbp)
movq %fs:0x28, %rax
movq -0x18(%rbp), %rcx
cmpq %rcx, %rax
jne 0x9ef7ee
movb -0x2da(%rbp), %al
andb $0x1, %al
addq $0x300, %rsp # imm = 0x300
popq %rbx
popq %r14
popq %rbp
retq
callq 0x433650
nopw %cs:(%rax,%rax)
| _ZN6LOGGER14slow_log_printEP3THDPKcmy:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 300h
mov rax, fs:28h
mov [rbp+var_18], rax
mov [rbp+var_230], rdi
mov [rbp+var_238], rsi
mov [rbp+var_240], rdx
mov [rbp+var_248], rcx
mov [rbp+var_250], r8
mov rax, [rbp+var_230]
mov [rbp+var_2A0], rax
mov [rbp+var_251], 0
mov [rbp+var_261], 0
mov rax, [rbp+var_238]
mov rax, [rax+2570h]
mov [rbp+var_270], rax
mov [rbp+var_274], 0
jmp short $+2
loc_9EF41B:
mov rax, [rbp+var_2A0]
cmp qword ptr [rax+0D0h], 0
jz loc_9EF7AE
mov rax, [rbp+var_238]
cmp byte ptr [rax+0B25h], 0
jnz short loc_9EF44C
mov [rbp+var_221], 0
jmp loc_9EF7BC
loc_9EF44C:
mov rdi, [rbp+var_2A0]; this
call _ZN6LOGGER11lock_sharedEv; LOGGER::lock_shared(void)
lea rax, global_system_variables
cmp byte ptr [rax+2E5h], 0
jnz short loc_9EF480
mov rdi, [rbp+var_2A0]; this
call _ZN6LOGGER6unlockEv; LOGGER::unlock(void)
mov [rbp+var_221], 0
jmp loc_9EF7BC
loc_9EF480:
lea rax, [rbp+var_220]
mov [rbp+var_2B0], rax
mov rax, [rbp+var_270]
add rax, 18h
mov [rbp+var_2A8], rax
mov rax, [rbp+var_270]
cmp qword ptr [rax+8], 0
jz short loc_9EF4C2
mov rax, [rbp+var_270]
mov rax, [rax+8]
mov [rbp+var_2B8], rax
jmp short loc_9EF4EB
loc_9EF4C2:
mov rax, [rbp+var_238]
mov dl, [rax+3FB3h]
lea rax, byte_DCCA25
lea rcx, aSqlSlave; "SQL_SLAVE"
test dl, 1
cmovnz rax, rcx
mov [rbp+var_2B8], rax
loc_9EF4EB:
mov rax, [rbp+var_2B8]
mov [rbp+var_2C0], rax
mov rax, [rbp+var_270]
cmp qword ptr [rax], 0
jz short loc_9EF519
mov rax, [rbp+var_270]
mov rax, [rax]
mov [rbp+var_2C8], rax
jmp short loc_9EF529
loc_9EF519:
lea rax, byte_DCCA25
mov [rbp+var_2C8], rax
jmp short $+2
loc_9EF529:
mov rax, [rbp+var_2C8]
mov [rbp+var_2D0], rax
mov rax, [rbp+var_270]
cmp qword ptr [rax+10h], 0
jz short loc_9EF559
mov rax, [rbp+var_270]
mov rax, [rax+10h]
mov [rbp+var_2D8], rax
jmp short loc_9EF569
loc_9EF559:
lea rax, byte_DCCA25
mov [rbp+var_2D8], rax
jmp short $+2
loc_9EF569:
mov rbx, [rbp+var_2D0]
mov r8, [rbp+var_2C0]
mov rdx, [rbp+var_2A8]
mov rdi, [rbp+var_2B0]
mov r10, [rbp+var_2D8]
mov esi, 200h
lea rcx, asc_DCC820+3; "["
lea r9, asc_D7A869; "] @ "
lea r11, asc_DCC820+2; " ["
lea rax, asc_D82BB4+1; "]"
xor r14d, r14d
mov [rsp+310h+var_310], rbx
mov [rsp+310h+var_308], r11
mov [rsp+310h+var_300], r10
mov [rsp+310h+var_2F8], rax
mov [rsp+310h+var_2F0], 0
mov al, 0
call strxnmov
lea rcx, [rbp+var_220]
sub rax, rcx
mov [rbp+var_274], eax
jmp short $+2
loc_9EF5E5:
jmp short $+2
loc_9EF5E7:
jmp short $+2
loc_9EF5E9:
mov rax, [rbp+var_250]
mov rcx, [rbp+var_238]
sub rax, [rcx+2750h]
mov [rbp+var_280], rax
mov rax, [rbp+var_238]
mov rax, [rax+2758h]
mov rcx, [rbp+var_238]
sub rax, [rcx+2750h]
mov [rbp+var_288], rax
mov rax, [rbp+var_238]
imul rax, [rax+2728h], 0F4240h
mov rcx, [rbp+var_238]
add rax, [rcx+2730h]
add rax, [rbp+var_280]
mov [rbp+var_290], rax
cmp [rbp+var_240], 0
jz short loc_9EF671
mov rdi, [rbp+var_238]; this
call _ZNK3THD11get_commandEv; THD::get_command(void)
cmp eax, 16h
jnz short loc_9EF6CB
loc_9EF671:
mov [rbp+var_261], 1
mov rdi, [rbp+var_238]; this
call _ZNK3THD11get_commandEv; THD::get_command(void)
mov eax, eax
mov ecx, eax
lea rax, command_name
shl rcx, 4
add rax, rcx
mov rax, [rax]
mov [rbp+var_240], rax
mov rdi, [rbp+var_238]; this
call _ZNK3THD11get_commandEv; THD::get_command(void)
mov eax, eax
mov ecx, eax
lea rax, command_name
shl rcx, 4
add rax, rcx
mov rax, [rax+8]
mov eax, eax
mov [rbp+var_248], rax
loc_9EF6CB:
mov rax, [rbp+var_2A0]
add rax, 0D0h
mov [rbp+var_260], rax
loc_9EF6DF:
mov rax, [rbp+var_260]
cmp qword ptr [rax], 0
jz loc_9EF7A2
mov rax, [rbp+var_260]
mov rcx, rax
add rcx, 8
mov [rbp+var_260], rcx
mov rdi, [rax]
mov rsi, [rbp+var_238]
mov rax, [rbp+var_290]
mov [rbp+var_298], rax
lea rcx, [rbp+var_220]
mov eax, [rbp+var_274]
mov r8d, eax
mov r9, [rbp+var_280]
mov r14, [rbp+var_288]
mov bl, [rbp+var_261]
mov r11, [rbp+var_240]
mov r10, [rbp+var_248]
mov rdx, [rbp+var_298]
mov rax, [rdi]
and bl, 1
mov [rsp+310h+var_310], r14
movzx ebx, bl
mov dword ptr [rsp+310h+var_308], ebx
mov [rsp+310h+var_300], r11
mov [rsp+310h+var_2F8], r10
call qword ptr [rax+10h]
mov cl, al
mov al, 1
test cl, 1
mov [rbp+var_2D9], al
jnz short loc_9EF78F
mov al, [rbp+var_251]
mov [rbp+var_2D9], al
loc_9EF78F:
mov al, [rbp+var_2D9]
and al, 1
mov [rbp+var_251], al
jmp loc_9EF6DF
loc_9EF7A2:
mov rdi, [rbp+var_2A0]; this
call _ZN6LOGGER6unlockEv; LOGGER::unlock(void)
loc_9EF7AE:
mov al, [rbp+var_251]
and al, 1
mov [rbp+var_221], al
loc_9EF7BC:
mov al, [rbp+var_221]
mov [rbp+var_2DA], al
mov rax, fs:28h
mov rcx, [rbp+var_18]
cmp rax, rcx
jnz short loc_9EF7EE
mov al, [rbp+var_2DA]
and al, 1
add rsp, 300h
pop rbx
pop r14
pop rbp
retn
loc_9EF7EE:
call ___stack_chk_fail
| char LOGGER::slow_log_print(LOGGER *this, THD *a2, char *a3, long long a4, long long a5)
{
char *v5; // rax
_QWORD *v6; // rax
char v8; // [rsp+37h] [rbp-2D9h]
char *v9; // [rsp+38h] [rbp-2D8h]
char *v10; // [rsp+48h] [rbp-2C8h]
long long v11; // [rsp+58h] [rbp-2B8h]
long long v12; // [rsp+80h] [rbp-290h]
long long v13; // [rsp+88h] [rbp-288h]
long long v14; // [rsp+90h] [rbp-280h]
unsigned int v15; // [rsp+9Ch] [rbp-274h]
long long v16; // [rsp+A0h] [rbp-270h]
char v17; // [rsp+AFh] [rbp-261h]
_QWORD *v18; // [rsp+B0h] [rbp-260h]
char v19; // [rsp+BFh] [rbp-251h]
char *v22; // [rsp+D0h] [rbp-240h]
char v23; // [rsp+EFh] [rbp-221h]
_BYTE v24[520]; // [rsp+F0h] [rbp-220h] BYREF
unsigned long long v25; // [rsp+2F8h] [rbp-18h]
v25 = __readfsqword(0x28u);
v22 = a3;
v19 = 0;
v17 = 0;
v16 = *((_QWORD *)a2 + 1198);
if ( !*((_QWORD *)this + 26) )
goto LABEL_26;
if ( *((_BYTE *)a2 + 2853) )
{
LOGGER::lock_shared(this, (long long)a2, (long long)a3);
if ( !BYTE5(global_system_variables[92]) )
{
LOGGER::unlock(this);
v23 = 0;
return v23 & 1;
}
if ( *(_QWORD *)(v16 + 8) )
{
v11 = *(_QWORD *)(v16 + 8);
}
else
{
v5 = &byte_DCCA25;
if ( (*((_BYTE *)a2 + 16307) & 1) != 0 )
v5 = "SQL_SLAVE";
LODWORD(v11) = (_DWORD)v5;
}
if ( *(_QWORD *)v16 )
v10 = *(char **)v16;
else
v10 = &byte_DCCA25;
if ( *(_QWORD *)(v16 + 16) )
v9 = *(char **)(v16 + 16);
else
v9 = &byte_DCCA25;
v15 = strxnmov(
(unsigned int)v24,
512,
(int)v16 + 24,
(unsigned int)"[",
v11,
(unsigned int)"] @ ",
v10,
" [",
v9,
"]",
0LL)
- (_QWORD)v24;
v14 = a5 - *((_QWORD *)a2 + 1258);
v13 = *((_QWORD *)a2 + 1259) - *((_QWORD *)a2 + 1258);
v12 = v14 + *((_QWORD *)a2 + 1254) + 1000000LL * *((_QWORD *)a2 + 1253);
if ( !v22 || (unsigned int)THD::get_command(a2) == 22 )
{
v17 = 1;
v22 = (&command_name)[2 * (unsigned int)THD::get_command(a2)];
a4 = (unsigned int)(&command_name)[2 * (unsigned int)THD::get_command(a2) + 1];
}
v18 = (_QWORD *)((char *)this + 208);
while ( *v18 )
{
v6 = v18++;
v8 = 1;
if ( ((*(long long ( **)(_QWORD, THD *, long long, _BYTE *, _QWORD, long long, long long, int, char *, long long))(*(_QWORD *)*v6 + 16LL))(
*v6,
a2,
v12,
v24,
v15,
v14,
v13,
v17 & 1,
v22,
a4) & 1) == 0 )
v8 = v19;
v19 = v8;
}
LOGGER::unlock(this);
LABEL_26:
v23 = v19;
return v23 & 1;
}
v23 = 0;
return v23 & 1;
}
| operator|:
PUSH RBP
MOV RBP,RSP
MOV AL,SIL
MOV CL,DIL
MOV byte ptr [RBP + -0x1],CL
MOV byte ptr [RBP + -0x2],AL
MOVZX EAX,byte ptr [RBP + -0x1]
MOVZX ECX,byte ptr [RBP + -0x2]
OR EAX,ECX
POP RBP
RET
|
/* TEMPNAMEPLACEHOLDERVALUE(item_base_t, item_base_t) */
byte operator|(byte param_1,byte param_2)
{
return param_1 | param_2;
}
| |
49,727 | flux::parser::Parser::finishCall(std::unique_ptr<flux::parser::Expr, std::default_delete<flux::parser::Expr>>) | kvthweatt[P]FluxLang/src/parser/parser.cpp | std::unique_ptr<Expr> Parser::finishCall(std::unique_ptr<Expr> callee) {
std::vector<std::unique_ptr<Expr>> arguments;
// Check if there are any arguments
if (!check(lexer::TokenType::RIGHT_PAREN)) {
do {
// Limit number of arguments to prevent excessive recursion
if (arguments.size() >= 255) {
error("Cannot have more than 255 arguments.");
}
arguments.push_back(expression());
} while (match(lexer::TokenType::COMMA));
}
// Consume the closing parenthesis
auto paren = consume(lexer::TokenType::RIGHT_PAREN, "Expected ')' after arguments");
// Create and return the call expression
return std::make_unique<CallExpr>(
std::move(callee),
paren,
std::move(arguments),
makeRange(previous_, paren)
);
} | O2 | cpp | flux::parser::Parser::finishCall(std::unique_ptr<flux::parser::Expr, std::default_delete<flux::parser::Expr>>):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdx, 0x20(%rsp)
movq %rsi, %r15
movq %rdi, 0x18(%rsp)
andq $0x0, 0x10(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
cmpl $0x5e, 0x8(%rsi)
je 0x1ddd8
leaq 0x76e4(%rip), %r12 # 0x2545a
pushq $0x24
popq %r13
leaq 0x30(%rsp), %rbp
movq %rsp, %r14
pushq $0x59
popq %rbx
movq 0x8(%rsp), %rax
subq (%rsp), %rax
cmpq $0x7f1, %rax # imm = 0x7F1
jb 0x1dda4
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x12ca0
movq %rbp, %rdi
movq %r15, %rsi
callq 0x17cf0
movq %r14, %rdi
movq %rbp, %rsi
callq 0x109e8
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1ddca
movq (%rdi), %rax
callq *0x8(%rax)
movq %r15, %rdi
movl %ebx, %esi
callq 0x12eaa
testb %al, %al
jne 0x1dd85
leaq 0x75ff(%rip), %r8 # 0x253de
leaq 0x30(%rsp), %rdi
pushq $0x5e
popq %rdx
pushq $0x1c
popq %rcx
movq %r15, %rsi
callq 0x12f2a
movups 0x80(%r15), %xmm0
leaq 0x90(%rsp), %r8
movaps %xmm0, (%r8)
leaq 0x30(%rsp), %rdx
movups 0x28(%rdx), %xmm0
movaps %xmm0, 0x10(%r8)
leaq 0x28(%rsp), %rdi
movq %rsp, %rcx
movq 0x20(%rsp), %rsi
callq 0x21063
movq 0x28(%rsp), %rax
movq 0x18(%rsp), %rbx
movq %rax, (%rbx)
leaq 0x70(%rsp), %rdi
callq 0x60e0
movq %rsp, %rdi
callq 0xdcc8
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x60e0
jmp 0x1de85
jmp 0x1de82
jmp 0x1de82
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1de85
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x1de85
movq %rax, %rbx
movq %rsp, %rdi
callq 0xdcc8
movq %rbx, %rdi
callq 0x63e0
nop
| _ZN4flux6parser6Parser10finishCallESt10unique_ptrINS0_4ExprESt14default_deleteIS3_EE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov [rsp+0E8h+var_C8], rdx
mov r15, rsi
mov [rsp+0E8h+var_D0], rdi
and [rsp+0E8h+var_D8], 0
xorps xmm0, xmm0
movaps [rsp+0E8h+var_E8], xmm0
cmp dword ptr [rsi+8], 5Eh ; '^'
jz short loc_1DDD8
lea r12, aCannotHaveMore; "Cannot have more than 255 arguments."
push 24h ; '$'
pop r13
lea rbp, [rsp+0E8h+var_B8]
mov r14, rsp
push 59h ; 'Y'
pop rbx
loc_1DD85:
mov rax, qword ptr [rsp+0E8h+var_E8+8]
sub rax, qword ptr [rsp+0E8h+var_E8]
cmp rax, 7F1h
jb short loc_1DDA4
mov rdi, r15
mov rsi, r13
mov rdx, r12
call _ZN4flux6parser6Parser5errorESt17basic_string_viewIcSt11char_traitsIcEE; flux::parser::Parser::error(std::string_view)
loc_1DDA4:
mov rdi, rbp; this
mov rsi, r15
call _ZN4flux6parser6Parser10expressionEv; flux::parser::Parser::expression(void)
mov rdi, r14
mov rsi, rbp
call _ZNSt6vectorISt10unique_ptrIN4flux6parser4ExprESt14default_deleteIS3_EESaIS6_EE12emplace_backIJS6_EEERS6_DpOT_; std::vector<std::unique_ptr<flux::parser::Expr>>::emplace_back<std::unique_ptr<flux::parser::Expr>>(std::unique_ptr<flux::parser::Expr> &&)
mov rdi, [rsp+0E8h+var_B8]
test rdi, rdi
jz short loc_1DDCA
mov rax, [rdi]
call qword ptr [rax+8]
loc_1DDCA:
mov rdi, r15
mov esi, ebx
call _ZN4flux6parser6Parser5matchENS_5lexer9TokenTypeE; flux::parser::Parser::match(flux::lexer::TokenType)
test al, al
jnz short loc_1DD85
loc_1DDD8:
lea r8, aExpectedAfterA_5; "Expected ')' after arguments"
lea rdi, [rsp+0E8h+var_B8]; this
push 5Eh ; '^'
pop rdx
push 1Ch
pop rcx
mov rsi, r15
call _ZN4flux6parser6Parser7consumeENS_5lexer9TokenTypeESt17basic_string_viewIcSt11char_traitsIcEE; flux::parser::Parser::consume(flux::lexer::TokenType,std::string_view)
movups xmm0, xmmword ptr [r15+80h]
lea r8, [rsp+0E8h+var_58]
movaps xmmword ptr [r8], xmm0
lea rdx, [rsp+0E8h+var_B8]
movups xmm0, xmmword ptr [rdx+28h]
movaps xmmword ptr [r8+10h], xmm0
lea rdi, [rsp+0E8h+var_C0]
mov rcx, rsp
mov rsi, [rsp+0E8h+var_C8]
call _ZSt11make_uniqueIN4flux6parser8CallExprEJSt10unique_ptrINS1_4ExprESt14default_deleteIS4_EERNS0_5lexer5TokenESt6vectorIS7_SaIS7_EENS0_6common11SourceRangeEEENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<flux::parser::CallExpr,std::unique_ptr<flux::parser::Expr>,flux::lexer::Token &,std::vector<std::unique_ptr<flux::parser::Expr>>,flux::common::SourceRange>(std::unique_ptr<flux::parser::Expr>,flux::lexer::Token &,std::vector<std::unique_ptr<flux::parser::Expr>>,flux::common::SourceRange &&)
mov rax, [rsp+0E8h+var_C0]
mov rbx, [rsp+0E8h+var_D0]
mov [rbx], rax
lea rdi, [rsp+0E8h+var_78]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rsp
call _ZNSt6vectorISt10unique_ptrIN4flux6parser4ExprESt14default_deleteIS3_EESaIS6_EED2Ev; std::vector<std::unique_ptr<flux::parser::Expr>>::~vector()
mov rax, rbx
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_68]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_1DE85
jmp short loc_1DE82
jmp short loc_1DE82
mov rbx, rax
mov rdi, [rsp+arg_28]
test rdi, rdi
jz short loc_1DE85
mov rax, [rdi]
call qword ptr [rax+8]
jmp short loc_1DE85
loc_1DE82:
mov rbx, rax
loc_1DE85:
mov rdi, rsp
call _ZNSt6vectorISt10unique_ptrIN4flux6parser4ExprESt14default_deleteIS3_EESaIS6_EED2Ev; std::vector<std::unique_ptr<flux::parser::Expr>>::~vector()
mov rdi, rbx
call __Unwind_Resume
| _QWORD * flux::parser::Parser::finishCall(_QWORD *a1, long long a2, long long a3, long long a4, int a5, int a6)
{
int v6; // r9d
_QWORD *v7; // rbx
__int128 v9; // [rsp+0h] [rbp-E8h] BYREF
long long v10; // [rsp+10h] [rbp-D8h]
_QWORD *v11; // [rsp+18h] [rbp-D0h]
long long v12; // [rsp+20h] [rbp-C8h]
long long v13; // [rsp+28h] [rbp-C0h] BYREF
long long v14; // [rsp+30h] [rbp-B8h] BYREF
int v15; // [rsp+38h] [rbp-B0h]
int v16; // [rsp+40h] [rbp-A8h]
char v17; // [rsp+48h] [rbp-A0h]
__int128 v18; // [rsp+58h] [rbp-90h]
char v19[32]; // [rsp+70h] [rbp-78h] BYREF
_OWORD v20[5]; // [rsp+90h] [rbp-58h] BYREF
v12 = a3;
v11 = a1;
v10 = 0LL;
v9 = 0LL;
if ( *(_DWORD *)(a2 + 8) != 94 )
{
do
{
if ( *((_QWORD *)&v9 + 1) - (_QWORD)v9 >= 0x7F1uLL )
flux::parser::Parser::error(
a2,
36,
(int)"Cannot have more than 255 arguments.",
a4,
a5,
a6,
v9,
SDWORD2(v9),
v10,
(int)v11,
v12,
v13,
v14,
v15,
v16,
v17);
flux::parser::Parser::expression((flux::parser::Parser *)&v14);
std::vector<std::unique_ptr<flux::parser::Expr>>::emplace_back<std::unique_ptr<flux::parser::Expr>>(
(long long)&v9,
&v14);
if ( v14 )
(*(void ( **)(long long))(*(_QWORD *)v14 + 8LL))(v14);
}
while ( flux::parser::Parser::match(a2, 89) );
}
flux::parser::Parser::consume((flux::parser::Parser *)&v14, a2, 94, 28LL, (long long)"Expected ')' after arguments");
v20[0] = *(_OWORD *)(a2 + 128);
v20[1] = v18;
std::make_unique<flux::parser::CallExpr,std::unique_ptr<flux::parser::Expr>,flux::lexer::Token &,std::vector<std::unique_ptr<flux::parser::Expr>>,flux::common::SourceRange>(
(unsigned int)&v13,
v12,
(unsigned int)&v14,
(unsigned int)&v9,
(unsigned int)v20,
v6,
v9,
SBYTE8(v9));
v7 = v11;
*v11 = v13;
std::string::~string(v19);
std::vector<std::unique_ptr<flux::parser::Expr>>::~vector(&v9);
return v7;
}
| finishCall:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV qword ptr [RSP + 0x20],RDX
MOV R15,RSI
MOV qword ptr [RSP + 0x18],RDI
AND qword ptr [RSP + 0x10],0x0
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
CMP dword ptr [RSI + 0x8],0x5e
JZ 0x0011ddd8
LEA R12,[0x12545a]
PUSH 0x24
POP R13
LEA RBP,[RSP + 0x30]
MOV R14,RSP
PUSH 0x59
POP RBX
LAB_0011dd85:
MOV RAX,qword ptr [RSP + 0x8]
SUB RAX,qword ptr [RSP]
CMP RAX,0x7f1
JC 0x0011dda4
LAB_0011dd96:
MOV RDI,R15
MOV RSI,R13
MOV RDX,R12
CALL 0x00112ca0
LAB_0011dda4:
MOV RDI,RBP
MOV RSI,R15
CALL 0x00117cf0
LAB_0011ddaf:
MOV RDI,R14
MOV RSI,RBP
CALL 0x001109e8
LAB_0011ddba:
MOV RDI,qword ptr [RSP + 0x30]
TEST RDI,RDI
JZ 0x0011ddca
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_0011ddca:
MOV RDI,R15
MOV ESI,EBX
CALL 0x00112eaa
TEST AL,AL
JNZ 0x0011dd85
LAB_0011ddd8:
LEA R8,[0x1253de]
LEA RDI,[RSP + 0x30]
PUSH 0x5e
POP RDX
PUSH 0x1c
POP RCX
MOV RSI,R15
CALL 0x00112f2a
MOVUPS XMM0,xmmword ptr [R15 + 0x80]
LEA R8,[RSP + 0x90]
MOVAPS xmmword ptr [R8],XMM0
LEA RDX,[RSP + 0x30]
MOVUPS XMM0,xmmword ptr [RDX + 0x28]
MOVAPS xmmword ptr [R8 + 0x10],XMM0
LAB_0011de14:
LEA RDI,[RSP + 0x28]
MOV RCX,RSP
MOV RSI,qword ptr [RSP + 0x20]
CALL 0x00121063
LAB_0011de26:
MOV RAX,qword ptr [RSP + 0x28]
MOV RBX,qword ptr [RSP + 0x18]
MOV qword ptr [RBX],RAX
LEA RDI,[RSP + 0x70]
CALL 0x001060e0
MOV RDI,RSP
CALL 0x0010dcc8
MOV RAX,RBX
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* flux::parser::Parser::finishCall(std::unique_ptr<flux::parser::Expr,
std::default_delete<flux::parser::Expr> >) */
int8 * flux::parser::Parser::finishCall(int8 *param_1,Parser *param_2,Token *param_3)
{
int8 *puVar1;
char cVar2;
long local_e8;
long lStack_e0;
int8 local_d8;
int8 *local_d0;
Token *local_c8;
int8 local_c0;
long *local_b8 [5];
int8 local_90;
int8 uStack_88;
string local_78 [32];
int8 local_58;
int8 uStack_50;
int8 local_48;
int8 uStack_40;
local_d8 = 0;
local_e8 = 0;
lStack_e0 = 0;
local_d0 = param_1;
local_c8 = param_3;
if (*(int *)(param_2 + 8) != 0x5e) {
do {
if (0x7f0 < (ulong)(lStack_e0 - local_e8)) {
/* try { // try from 0011dd96 to 0011dda3 has its CatchHandler @ 0011de82 */
error(param_2,0x24,"Cannot have more than 255 arguments.");
}
/* try { // try from 0011dda4 to 0011ddae has its CatchHandler @ 0011de6b */
expression((Parser *)local_b8);
/* try { // try from 0011ddaf to 0011ddb9 has its CatchHandler @ 0011de6d */
std::
vector<std::unique_ptr<flux::parser::Expr,std::default_delete<flux::parser::Expr>>,std::allocator<std::unique_ptr<flux::parser::Expr,std::default_delete<flux::parser::Expr>>>>
::emplace_back<std::unique_ptr<flux::parser::Expr,std::default_delete<flux::parser::Expr>>>
((vector<std::unique_ptr<flux::parser::Expr,std::default_delete<flux::parser::Expr>>,std::allocator<std::unique_ptr<flux::parser::Expr,std::default_delete<flux::parser::Expr>>>>
*)&local_e8,(unique_ptr *)local_b8);
if (local_b8[0] != (long *)0x0) {
(**(code **)(*local_b8[0] + 8))();
}
/* try { // try from 0011ddca to 0011ddd3 has its CatchHandler @ 0011de82 */
cVar2 = match(param_2,0x59);
} while (cVar2 != '\0');
}
/* try { // try from 0011ddd8 to 0011ddf1 has its CatchHandler @ 0011de69 */
consume(local_b8,param_2,0x5e,0x1c,"Expected \')\' after arguments");
local_58 = *(int8 *)(param_2 + 0x80);
uStack_50 = *(int8 *)(param_2 + 0x88);
local_48 = local_90;
uStack_40 = uStack_88;
/* try { // try from 0011de14 to 0011de25 has its CatchHandler @ 0011de5a */
std::
make_unique<flux::parser::CallExpr,std::unique_ptr<flux::parser::Expr,std::default_delete<flux::parser::Expr>>,flux::lexer::Token&,std::vector<std::unique_ptr<flux::parser::Expr,std::default_delete<flux::parser::Expr>>,std::allocator<std::unique_ptr<flux::parser::Expr,std::default_delete<flux::parser::Expr>>>>,flux::common::SourceRange>
((unique_ptr *)&local_c0,local_c8,(vector *)local_b8,(SourceRange *)&local_e8);
puVar1 = local_d0;
*local_d0 = local_c0;
std::__cxx11::string::~string(local_78);
std::
vector<std::unique_ptr<flux::parser::Expr,std::default_delete<flux::parser::Expr>>,std::allocator<std::unique_ptr<flux::parser::Expr,std::default_delete<flux::parser::Expr>>>>
::~vector((vector<std::unique_ptr<flux::parser::Expr,std::default_delete<flux::parser::Expr>>,std::allocator<std::unique_ptr<flux::parser::Expr,std::default_delete<flux::parser::Expr>>>>
*)&local_e8);
return puVar1;
}
| |
49,728 | minja::TextTemplateToken::TextTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | llama.cpp/common/minja/minja.hpp | TextTemplateToken(const Location & loc, SpaceHandling pre, SpaceHandling post, const std::string& t) : TemplateToken(Type::Text, loc, pre, post), text(t) {} | O3 | cpp | minja::TextTemplateToken::TextTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x727de(%rip), %r12 # 0x161920
addq $0x10, %r12
movq %r12, (%rdi)
movl $0x0, 0x8(%rdi)
movq (%rsi), %rax
movq %rax, 0x10(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x18(%rdi)
testq %rax, %rax
je 0xef179
movq 0x73e2d(%rip), %rdi # 0x162f98
cmpb $0x0, (%rdi)
je 0xef175
incl 0x8(%rax)
jmp 0xef179
lock
incl 0x8(%rax)
leaq 0x18(%rbx), %r14
movq 0x10(%rsi), %rax
movq %rax, 0x20(%rbx)
movl %edx, 0x28(%rbx)
movl %ecx, 0x2c(%rbx)
leaq 0x732a6(%rip), %rax # 0x162438
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x30(%rbx), %rdi
leaq 0x40(%rbx), %rax
movq %rax, 0x30(%rbx)
movq (%r8), %rsi
movq 0x8(%r8), %rdx
addq %rsi, %rdx
callq 0x28d1a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r15
movq %r12, (%rbx)
movq %r14, %rdi
callq 0x70a60
movq %r15, %rdi
callq 0x20af0
| _ZN5minja17TextTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rdi
lea r12, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken
add r12, 10h
mov [rdi], r12
mov dword ptr [rdi+8], 0
mov rax, [rsi]
mov [rdi+10h], rax
mov rax, [rsi+8]
mov [rdi+18h], rax
test rax, rax
jz short loc_EF179
mov rdi, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rdi], 0
jz short loc_EF175
inc dword ptr [rax+8]
jmp short loc_EF179
loc_EF175:
lock inc dword ptr [rax+8]
loc_EF179:
lea r14, [rbx+18h]
mov rax, [rsi+10h]
mov [rbx+20h], rax
mov [rbx+28h], edx
mov [rbx+2Ch], ecx
lea rax, _ZTVN5minja17TextTemplateTokenE; `vtable for'minja::TextTemplateToken
add rax, 10h
mov [rbx], rax
lea rdi, [rbx+30h]
lea rax, [rbx+40h]
mov [rbx+30h], rax
mov rsi, [r8]
mov rdx, [r8+8]
add rdx, rsi
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
mov r15, rax
mov [rbx], r12
mov rdi, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, r15
call __Unwind_Resume
| long long minja::TextTemplateToken::TextTemplateToken(long long a1, _QWORD *a2, int a3, int a4, long long a5)
{
long long v5; // rax
*(_QWORD *)a1 = &`vtable for'minja::TemplateToken + 2;
*(_DWORD *)(a1 + 8) = 0;
*(_QWORD *)(a1 + 16) = *a2;
v5 = a2[1];
*(_QWORD *)(a1 + 24) = v5;
if ( v5 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v5 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v5 + 8));
}
*(_QWORD *)(a1 + 32) = a2[2];
*(_DWORD *)(a1 + 40) = a3;
*(_DWORD *)(a1 + 44) = a4;
*(_QWORD *)a1 = &`vtable for'minja::TextTemplateToken + 2;
*(_QWORD *)(a1 + 48) = a1 + 64;
return std::string::_M_construct<char *>(a1 + 48, *(_BYTE **)a5, *(_QWORD *)a5 + *(_QWORD *)(a5 + 8));
}
| TextTemplateToken:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA R12,[0x261920]
ADD R12,0x10
MOV qword ptr [RDI],R12
MOV dword ptr [RDI + 0x8],0x0
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x10],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x18],RAX
TEST RAX,RAX
JZ 0x001ef179
MOV RDI,qword ptr [0x00262f98]
CMP byte ptr [RDI],0x0
JZ 0x001ef175
INC dword ptr [RAX + 0x8]
JMP 0x001ef179
LAB_001ef175:
INC.LOCK dword ptr [RAX + 0x8]
LAB_001ef179:
LEA R14,[RBX + 0x18]
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RBX + 0x20],RAX
MOV dword ptr [RBX + 0x28],EDX
MOV dword ptr [RBX + 0x2c],ECX
LEA RAX,[0x262438]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
LEA RDI,[RBX + 0x30]
LEA RAX,[RBX + 0x40]
MOV qword ptr [RBX + 0x30],RAX
MOV RSI,qword ptr [R8]
MOV RDX,qword ptr [R8 + 0x8]
ADD RDX,RSI
LAB_001ef1af:
CALL 0x00128d1a
LAB_001ef1b4:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* minja::TextTemplateToken::TextTemplateToken(minja::Location const&, minja::SpaceHandling,
minja::SpaceHandling, std::__cxx11::string const&) */
void __thiscall
minja::TextTemplateToken::TextTemplateToken
(TextTemplateToken *this,int8 *param_1,int4 param_3,int4 param_4,
long *param_5)
{
long lVar1;
*(int ***)this = &PTR__TemplateToken_00261930;
*(int4 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = *param_1;
lVar1 = param_1[1];
*(long *)(this + 0x18) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_00262f98 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x20) = param_1[2];
*(int4 *)(this + 0x28) = param_3;
*(int4 *)(this + 0x2c) = param_4;
*(int ***)this = &PTR__TextTemplateToken_00262448;
*(TextTemplateToken **)(this + 0x30) = this + 0x40;
/* try { // try from 001ef1af to 001ef1b3 has its CatchHandler @ 001ef1c0 */
std::__cxx11::string::_M_construct<char*>(this + 0x30,*param_5,param_5[1] + *param_5);
return;
}
| |
49,729 | minja::Value::empty() const | llama.cpp/common/minja/minja.hpp | bool empty() const {
if (is_null())
throw std::runtime_error("Undefined value or reference");
if (is_string()) return primitive_.empty();
if (is_array()) return array_->empty();
if (is_object()) return object_->empty();
return false;
} | O3 | cpp | minja::Value::empty() const:
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %rdx
movq 0x20(%rdi), %rcx
movb 0x40(%rdi), %sil
testq %rcx, %rcx
jne 0xccafe
testq %rdx, %rdx
jne 0xccafe
testb %sil, %sil
jne 0xccafe
cmpq $0x0, 0x30(%rdi)
je 0xccb2e
movq %rdx, %rax
orq %rcx, %rax
sete %dil
xorl %eax, %eax
cmpb $0x3, %sil
je 0xccb26
testb %dil, %dil
jne 0xccb26
testq %rdx, %rdx
cmovneq %rdx, %rcx
movq (%rcx), %rax
cmpq 0x8(%rcx), %rax
sete %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x10, %edi
callq 0x21690
movq %rax, %rbx
leaq 0x60ef4(%rip), %rsi # 0x12da36
movq %rax, %rdi
callq 0x21450
movq 0xa546f(%rip), %rsi # 0x171fc0
movq 0xa5428(%rip), %rdx # 0x171f80
movq %rbx, %rdi
callq 0x21ad0
movq %rax, %r14
movq %rbx, %rdi
callq 0x21f80
movq %r14, %rdi
callq 0x21b70
| _ZNK5minja5Value5emptyEv:
push r14
push rbx
push rax
mov rdx, [rdi+10h]
mov rcx, [rdi+20h]
mov sil, [rdi+40h]
test rcx, rcx
jnz short loc_CCAFE
test rdx, rdx
jnz short loc_CCAFE
test sil, sil
jnz short loc_CCAFE
cmp qword ptr [rdi+30h], 0
jz short loc_CCB2E
loc_CCAFE:
mov rax, rdx
or rax, rcx
setz dil
xor eax, eax
cmp sil, 3
jz short loc_CCB26
test dil, dil
jnz short loc_CCB26
test rdx, rdx
cmovnz rcx, rdx
mov rax, [rcx]
cmp rax, [rcx+8]
setz al
loc_CCB26:
add rsp, 8
pop rbx
pop r14
retn
loc_CCB2E:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aUndefinedValue; "Undefined value or reference"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
mov rdi, r14
call __Unwind_Resume
| bool minja::Value::empty(minja::Value *this)
{
unsigned long long v1; // rdx
_QWORD *v2; // rcx
char v3; // si
bool result; // al
std::runtime_error *exception; // rbx
v1 = *((_QWORD *)this + 2);
v2 = (_QWORD *)*((_QWORD *)this + 4);
v3 = *((_BYTE *)this + 64);
if ( __PAIR128__((unsigned long long)v2, v1) == 0 && !v3 && !*((_QWORD *)this + 6) )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Undefined value or reference");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
result = 0;
if ( v3 != 3 && __PAIR128__((unsigned long long)v2, v1) != 0 )
{
if ( v1 )
v2 = (_QWORD *)*((_QWORD *)this + 2);
return *v2 == v2[1];
}
return result;
}
| empty:
PUSH R14
PUSH RBX
PUSH RAX
MOV RDX,qword ptr [RDI + 0x10]
MOV RCX,qword ptr [RDI + 0x20]
MOV SIL,byte ptr [RDI + 0x40]
TEST RCX,RCX
JNZ 0x001ccafe
TEST RDX,RDX
JNZ 0x001ccafe
TEST SIL,SIL
JNZ 0x001ccafe
CMP qword ptr [RDI + 0x30],0x0
JZ 0x001ccb2e
LAB_001ccafe:
MOV RAX,RDX
OR RAX,RCX
SETZ DIL
XOR EAX,EAX
CMP SIL,0x3
JZ 0x001ccb26
TEST DIL,DIL
JNZ 0x001ccb26
TEST RDX,RDX
CMOVNZ RCX,RDX
MOV RAX,qword ptr [RCX]
CMP RAX,qword ptr [RCX + 0x8]
SETZ AL
LAB_001ccb26:
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_001ccb2e:
MOV EDI,0x10
CALL 0x00121690
MOV RBX,RAX
LAB_001ccb3b:
LEA RSI,[0x22da36]
MOV RDI,RAX
CALL 0x00121450
LAB_001ccb4a:
MOV RSI,qword ptr [0x00271fc0]
MOV RDX,qword ptr [0x00271f80]
MOV RDI,RBX
CALL 0x00121ad0
|
/* minja::Value::empty() const */
int8 __thiscall minja::Value::empty(Value *this)
{
long *plVar1;
int8 uVar2;
runtime_error *this_00;
long *plVar3;
plVar1 = *(long **)(this + 0x10);
plVar3 = *(long **)(this + 0x20);
if ((((plVar3 == (long *)0x0) && (plVar1 == (long *)0x0)) && (this[0x40] == (Value)0x0)) &&
(*(long *)(this + 0x30) == 0)) {
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001ccb3b to 001ccb49 has its CatchHandler @ 001ccb60 */
std::runtime_error::runtime_error(this_00,"Undefined value or reference");
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_00271fc0,PTR__runtime_error_00271f80);
}
uVar2 = 0;
if ((this[0x40] != (Value)0x3) && (plVar1 != (long *)0x0 || plVar3 != (long *)0x0)) {
if (plVar1 != (long *)0x0) {
plVar3 = plVar1;
}
uVar2 = CONCAT71((int7)((ulong)*plVar3 >> 8),*plVar3 == plVar3[1]);
}
return uVar2;
}
| |
49,730 | translog_buffer_decrease_writers | eloqsql/storage/maria/ma_loghandler.c | static void translog_buffer_decrease_writers(struct st_translog_buffer *buffer)
{
DBUG_ENTER("translog_buffer_decrease_writers");
translog_buffer_lock_assert_owner(buffer);
buffer->copy_to_buffer_in_progress--;
DBUG_PRINT("info",
("copy_to_buffer_in_progress. Buffer #%u %p progress: %d",
(uint) buffer->buffer_no, buffer,
buffer->copy_to_buffer_in_progress));
if (buffer->copy_to_buffer_in_progress == 0)
mysql_cond_broadcast(&buffer->waiting_filling_buffer);
DBUG_VOID_RETURN;
} | O3 | c | translog_buffer_decrease_writers:
decl 0x100078(%rdi)
je 0x50cfc
retq
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x100070(%rdi), %rdi
addq $0x100040, %rbx # imm = 0x100040
testq %rdi, %rdi
jne 0x50d26
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x296f0
leaq 0x337393(%rip), %rax # 0x3880c0
movq (%rax), %rax
callq *0x178(%rax)
jmp 0x50d18
| translog_buffer_decrease_writers:
dec ds:dword_100078[rdi]
jz short loc_50CFC
retn
loc_50CFC:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
mov rdi, ds:qword_100070[rdi]
add rbx, 100040h
test rdi, rdi
jnz short loc_50D26
loc_50D18:
mov rdi, rbx
add rsp, 8
pop rbx
pop rbp
jmp _pthread_cond_broadcast
loc_50D26:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+178h]
jmp short loc_50D18
| long long translog_buffer_decrease_writers(long long a1)
{
long long v3; // rdi
long long v4; // rbx
long long result; // rax
if ( (*(int *)((char *)&dword_100078 + a1))-- == 1 )
{
v3 = *(long long *)((char *)&qword_100070 + a1);
v4 = a1 + 1048640;
if ( v3 )
((void ( *)(long long))PSI_server[47])(v3);
return pthread_cond_broadcast(v4);
}
return result;
}
| translog_buffer_decrease_writers:
DEC dword ptr [RDI + 0x100078]
JZ 0x00150cfc
RET
LAB_00150cfc:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x100070]
ADD RBX,0x100040
TEST RDI,RDI
JNZ 0x00150d26
LAB_00150d18:
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x001296f0
LAB_00150d26:
LEA RAX,[0x4880c0]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x178]
JMP 0x00150d18
|
void translog_buffer_decrease_writers(long param_1)
{
int *piVar1;
piVar1 = (int *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_type + param_1);
*piVar1 = *piVar1 + -1;
if (*piVar1 != 0) {
return;
}
if (*(long *)((long)&Elf64_Phdr_ARRAY_00100040[0].p_align + param_1) != 0) {
(**(code **)(PSI_server + 0x178))();
}
pthread_cond_broadcast((pthread_cond_t *)((long)&Elf64_Phdr_ARRAY_00100040[0].p_type + param_1));
return;
}
| |
49,731 | ftb_find_relevance_add_word | eloqsql/storage/myisam/ft_boolean_search.c | static int ftb_find_relevance_add_word(MYSQL_FTPARSER_PARAM *param,
const char *word, int len,
MYSQL_FTPARSER_BOOLEAN_INFO *boolean_info __attribute__((unused)))
{
MY_FTB_FIND_PARAM *ftb_param= param->mysql_ftparam;
FT_INFO *ftb= ftb_param->ftb;
FTB_WORD *ftbw;
int a, b, c;
/*
Find right-most element in the array of query words matching this
word from a document.
*/
for (a= 0, b= ftb->queue.elements, c= (a+b)/2; b-a>1; c= (a+b)/2)
{
ftbw= ftb->list[c];
if (ha_compare_text(ftb->charset, (uchar*)word, len,
(uchar*)ftbw->word+1, ftbw->len-1,
(my_bool) (ftbw->flags & FTB_FLAG_TRUNC)) < 0)
b= c;
else
a= c;
}
/*
If there were no words with truncation operator, we iterate to the
beginning of an array until array element is equal to the word from
a document. This is done mainly because the same word may be
mentioned twice (or more) in the query.
In case query has words with truncation operator we must iterate
to the beginning of the array. There may be non-matching query words
between matching word with truncation operator and the right-most
matching element. E.g., if we're looking for 'aaa15' in an array of
'aaa1* aaa14 aaa15 aaa16'.
Worse of that there still may be match even if the binary search
above didn't find matching element. E.g., if we're looking for
'aaa15' in an array of 'aaa1* aaa14 aaa16'. The binary search will
stop at 'aaa16'.
*/
for (; c >= 0; c--)
{
ftbw= ftb->list[c];
if (ha_compare_text(ftb->charset, (uchar*)word, len,
(uchar*)ftbw->word + 1,ftbw->len - 1,
(my_bool)(ftbw->flags & FTB_FLAG_TRUNC)))
{
if (ftb->with_scan & FTB_FLAG_TRUNC)
continue;
else
break;
}
if (ftbw->docid[1] == ftb->info->lastpos)
continue;
ftbw->docid[1]= ftb->info->lastpos;
if (unlikely(_ftb_climb_the_tree(ftb, ftbw, ftb_param->ftsi)))
return 1;
}
return(0);
} | O0 | c | ftb_find_relevance_add_word:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movl $0x0, -0x44(%rbp)
movq -0x38(%rbp), %rax
movl 0x80(%rax), %eax
movl %eax, -0x48(%rbp)
movl -0x44(%rbp), %eax
addl -0x48(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0x4c(%rbp)
movl -0x48(%rbp), %eax
subl -0x44(%rbp), %eax
cmpl $0x1, %eax
jle 0x9ee2b
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x4c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x18(%rbp), %rsi
movslq -0x1c(%rbp), %rdx
movq -0x40(%rbp), %rcx
addq $0x4d, %rcx
addq $0x1, %rcx
movq -0x40(%rbp), %rax
movl 0x48(%rax), %eax
subl $0x1, %eax
movl %eax, %eax
movl %eax, %r8d
movq -0x40(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
movsbl %al, %r9d
callq 0xf6640
cmpl $0x0, %eax
jge 0x9ee0d
movl -0x4c(%rbp), %eax
movl %eax, -0x48(%rbp)
jmp 0x9ee13
movl -0x4c(%rbp), %eax
movl %eax, -0x44(%rbp)
jmp 0x9ee15
movl -0x44(%rbp), %eax
addl -0x48(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0x4c(%rbp)
jmp 0x9eda3
jmp 0x9ee2d
cmpl $0x0, -0x4c(%rbp)
jl 0x9ef18
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x4c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x18(%rbp), %rsi
movslq -0x1c(%rbp), %rdx
movq -0x40(%rbp), %rcx
addq $0x4d, %rcx
addq $0x1, %rcx
movq -0x40(%rbp), %rax
movl 0x48(%rax), %eax
subl $0x1, %eax
movl %eax, %eax
movl %eax, %r8d
movq -0x40(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
movsbl %al, %r9d
callq 0xf6640
cmpl $0x0, %eax
je 0x9eea5
movq -0x38(%rbp), %rax
movzbl 0x344(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x9eea3
jmp 0x9ef0a
jmp 0x9ef18
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x38(%rbp), %rcx
movq 0x8(%rcx), %rcx
cmpq 0x170(%rcx), %rax
jne 0x9eec0
jmp 0x9ef0a
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x170(%rax), %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rdx
callq 0x9e550
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x9ef08
movl $0x1, -0x4(%rbp)
jmp 0x9ef1f
jmp 0x9ef0a
movl -0x4c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x9ee2d
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| ftb_find_relevance_add_word:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], rcx
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
mov rax, [rax]
mov [rbp+var_38], rax
mov [rbp+var_44], 0
mov rax, [rbp+var_38]
mov eax, [rax+80h]
mov [rbp+var_48], eax
mov eax, [rbp+var_44]
add eax, [rbp+var_48]
mov ecx, 2
cdq
idiv ecx
mov [rbp+var_4C], eax
loc_9EDA3:
mov eax, [rbp+var_48]
sub eax, [rbp+var_44]
cmp eax, 1
jle short loc_9EE2B
mov rax, [rbp+var_38]
mov rax, [rax+20h]
movsxd rcx, [rbp+var_4C]
mov rax, [rax+rcx*8]
mov [rbp+var_40], rax
mov rax, [rbp+var_38]
mov rdi, [rax+10h]
mov rsi, [rbp+var_18]
movsxd rdx, [rbp+var_1C]
mov rcx, [rbp+var_40]
add rcx, 4Dh ; 'M'
add rcx, 1
mov rax, [rbp+var_40]
mov eax, [rax+48h]
sub eax, 1
mov eax, eax
mov r8d, eax
mov rax, [rbp+var_40]
mov eax, [rax+8]
and eax, 1
movsx r9d, al
call ha_compare_text
cmp eax, 0
jge short loc_9EE0D
mov eax, [rbp+var_4C]
mov [rbp+var_48], eax
jmp short loc_9EE13
loc_9EE0D:
mov eax, [rbp+var_4C]
mov [rbp+var_44], eax
loc_9EE13:
jmp short $+2
loc_9EE15:
mov eax, [rbp+var_44]
add eax, [rbp+var_48]
mov ecx, 2
cdq
idiv ecx
mov [rbp+var_4C], eax
jmp loc_9EDA3
loc_9EE2B:
jmp short $+2
loc_9EE2D:
cmp [rbp+var_4C], 0
jl loc_9EF18
mov rax, [rbp+var_38]
mov rax, [rax+20h]
movsxd rcx, [rbp+var_4C]
mov rax, [rax+rcx*8]
mov [rbp+var_40], rax
mov rax, [rbp+var_38]
mov rdi, [rax+10h]
mov rsi, [rbp+var_18]
movsxd rdx, [rbp+var_1C]
mov rcx, [rbp+var_40]
add rcx, 4Dh ; 'M'
add rcx, 1
mov rax, [rbp+var_40]
mov eax, [rax+48h]
sub eax, 1
mov eax, eax
mov r8d, eax
mov rax, [rbp+var_40]
mov eax, [rax+8]
and eax, 1
movsx r9d, al
call ha_compare_text
cmp eax, 0
jz short loc_9EEA5
mov rax, [rbp+var_38]
movzx eax, byte ptr [rax+344h]
and eax, 1
cmp eax, 0
jz short loc_9EEA3
jmp short loc_9EF0A
loc_9EEA3:
jmp short loc_9EF18
loc_9EEA5:
mov rax, [rbp+var_40]
mov rax, [rax+18h]
mov rcx, [rbp+var_38]
mov rcx, [rcx+8]
cmp rax, [rcx+170h]
jnz short loc_9EEC0
jmp short loc_9EF0A
loc_9EEC0:
mov rax, [rbp+var_38]
mov rax, [rax+8]
mov rcx, [rax+170h]
mov rax, [rbp+var_40]
mov [rax+18h], rcx
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_40]
mov rax, [rbp+var_30]
mov rdx, [rax+8]
call _ftb_climb_the_tree
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_9EF08
mov [rbp+var_4], 1
jmp short loc_9EF1F
loc_9EF08:
jmp short $+2
loc_9EF0A:
mov eax, [rbp+var_4C]
add eax, 0FFFFFFFFh
mov [rbp+var_4C], eax
jmp loc_9EE2D
loc_9EF18:
mov [rbp+var_4], 0
loc_9EF1F:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
| long long ftb_find_relevance_add_word(long long a1, long long a2, int a3)
{
int v4; // [rsp+4h] [rbp-4Ch]
int v5; // [rsp+8h] [rbp-48h]
int v6; // [rsp+Ch] [rbp-44h]
long long v7; // [rsp+10h] [rbp-40h]
long long v8; // [rsp+10h] [rbp-40h]
long long v9; // [rsp+18h] [rbp-38h]
long long *v10; // [rsp+20h] [rbp-30h]
v10 = *(long long **)(a1 + 24);
v9 = *v10;
v6 = 0;
v5 = *(_DWORD *)(*v10 + 128);
v4 = v5 / 2;
while ( v5 - v6 > 1 )
{
v7 = *(_QWORD *)(*(_QWORD *)(v9 + 32) + 8LL * v4);
if ( (int)ha_compare_text(
*(_QWORD *)(v9 + 16),
a2,
a3,
v7 + 78,
(unsigned int)(*(_DWORD *)(v7 + 72) - 1),
*(_BYTE *)(v7 + 8) & 1) >= 0 )
v6 = v4;
else
v5 = v4;
v4 = (v5 + v6) / 2;
}
while ( v4 >= 0 )
{
v8 = *(_QWORD *)(*(_QWORD *)(v9 + 32) + 8LL * v4);
if ( (unsigned int)ha_compare_text(
*(_QWORD *)(v9 + 16),
a2,
a3,
v8 + 78,
(unsigned int)(*(_DWORD *)(v8 + 72) - 1),
*(_BYTE *)(v8 + 8) & 1) )
{
if ( (*(_BYTE *)(v9 + 836) & 1) == 0 )
break;
}
else if ( *(_QWORD *)(v8 + 24) != *(_QWORD *)(*(_QWORD *)(v9 + 8) + 368LL) )
{
*(_QWORD *)(v8 + 24) = *(_QWORD *)(*(_QWORD *)(v9 + 8) + 368LL);
if ( (unsigned int)ftb_climb_the_tree(v9, v8, (_QWORD *)v10[1]) )
return 1;
}
--v4;
}
return 0;
}
| ftb_find_relevance_add_word:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
MOV dword ptr [RBP + -0x44],0x0
MOV RAX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RAX + 0x80]
MOV dword ptr [RBP + -0x48],EAX
MOV EAX,dword ptr [RBP + -0x44]
ADD EAX,dword ptr [RBP + -0x48]
MOV ECX,0x2
CDQ
IDIV ECX
MOV dword ptr [RBP + -0x4c],EAX
LAB_0019eda3:
MOV EAX,dword ptr [RBP + -0x48]
SUB EAX,dword ptr [RBP + -0x44]
CMP EAX,0x1
JLE 0x0019ee2b
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x20]
MOVSXD RCX,dword ptr [RBP + -0x4c]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV RDI,qword ptr [RAX + 0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOVSXD RDX,dword ptr [RBP + -0x1c]
MOV RCX,qword ptr [RBP + -0x40]
ADD RCX,0x4d
ADD RCX,0x1
MOV RAX,qword ptr [RBP + -0x40]
MOV EAX,dword ptr [RAX + 0x48]
SUB EAX,0x1
MOV EAX,EAX
MOV R8D,EAX
MOV RAX,qword ptr [RBP + -0x40]
MOV EAX,dword ptr [RAX + 0x8]
AND EAX,0x1
MOVSX R9D,AL
CALL 0x001f6640
CMP EAX,0x0
JGE 0x0019ee0d
MOV EAX,dword ptr [RBP + -0x4c]
MOV dword ptr [RBP + -0x48],EAX
JMP 0x0019ee13
LAB_0019ee0d:
MOV EAX,dword ptr [RBP + -0x4c]
MOV dword ptr [RBP + -0x44],EAX
LAB_0019ee13:
JMP 0x0019ee15
LAB_0019ee15:
MOV EAX,dword ptr [RBP + -0x44]
ADD EAX,dword ptr [RBP + -0x48]
MOV ECX,0x2
CDQ
IDIV ECX
MOV dword ptr [RBP + -0x4c],EAX
JMP 0x0019eda3
LAB_0019ee2b:
JMP 0x0019ee2d
LAB_0019ee2d:
CMP dword ptr [RBP + -0x4c],0x0
JL 0x0019ef18
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x20]
MOVSXD RCX,dword ptr [RBP + -0x4c]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV RDI,qword ptr [RAX + 0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOVSXD RDX,dword ptr [RBP + -0x1c]
MOV RCX,qword ptr [RBP + -0x40]
ADD RCX,0x4d
ADD RCX,0x1
MOV RAX,qword ptr [RBP + -0x40]
MOV EAX,dword ptr [RAX + 0x48]
SUB EAX,0x1
MOV EAX,EAX
MOV R8D,EAX
MOV RAX,qword ptr [RBP + -0x40]
MOV EAX,dword ptr [RAX + 0x8]
AND EAX,0x1
MOVSX R9D,AL
CALL 0x001f6640
CMP EAX,0x0
JZ 0x0019eea5
MOV RAX,qword ptr [RBP + -0x38]
MOVZX EAX,byte ptr [RAX + 0x344]
AND EAX,0x1
CMP EAX,0x0
JZ 0x0019eea3
JMP 0x0019ef0a
LAB_0019eea3:
JMP 0x0019ef18
LAB_0019eea5:
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RCX + 0x8]
CMP RAX,qword ptr [RCX + 0x170]
JNZ 0x0019eec0
JMP 0x0019ef0a
LAB_0019eec0:
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RAX + 0x170]
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RAX + 0x18],RCX
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x0019e550
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0019ef08
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0019ef1f
LAB_0019ef08:
JMP 0x0019ef0a
LAB_0019ef0a:
MOV EAX,dword ptr [RBP + -0x4c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x4c],EAX
JMP 0x0019ee2d
LAB_0019ef18:
MOV dword ptr [RBP + -0x4],0x0
LAB_0019ef1f:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
int4 ftb_find_relevance_add_word(long param_1,int8 param_2,int param_3)
{
long *plVar1;
long lVar2;
long lVar3;
int iVar4;
int local_54;
int local_50;
int local_4c;
plVar1 = *(long **)(param_1 + 0x18);
lVar2 = *plVar1;
local_4c = 0;
local_50 = *(int *)(lVar2 + 0x80);
local_54 = local_50;
while (local_54 = local_54 / 2, 1 < local_50 - local_4c) {
lVar3 = *(long *)(*(long *)(lVar2 + 0x20) + (long)local_54 * 8);
iVar4 = ha_compare_text(*(int8 *)(lVar2 + 0x10),param_2,(long)param_3,lVar3 + 0x4e,
*(int *)(lVar3 + 0x48) + -1,(byte)*(int4 *)(lVar3 + 8) & 1);
if (iVar4 < 0) {
local_50 = local_54;
}
else {
local_4c = local_54;
}
local_54 = local_4c + local_50;
}
do {
if (local_54 < 0) {
return 0;
}
lVar3 = *(long *)(*(long *)(lVar2 + 0x20) + (long)local_54 * 8);
iVar4 = ha_compare_text(*(int8 *)(lVar2 + 0x10),param_2,(long)param_3,lVar3 + 0x4e,
*(int *)(lVar3 + 0x48) + -1,(byte)*(int4 *)(lVar3 + 8) & 1);
if (iVar4 == 0) {
if (*(long *)(lVar3 + 0x18) != *(long *)(*(long *)(lVar2 + 8) + 0x170)) {
*(int8 *)(lVar3 + 0x18) = *(int8 *)(*(long *)(lVar2 + 8) + 0x170);
iVar4 = _ftb_climb_the_tree(lVar2,lVar3,plVar1[1]);
if (iVar4 != 0) {
return 1;
}
}
}
else if ((*(byte *)(lVar2 + 0x344) & 1) == 0) {
return 0;
}
local_54 = local_54 + -1;
} while( true );
}
| |
49,732 | Catch::(anonymous namespace)::AssertionPrinter::printIssue(char const*) const | AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp | void printIssue(char const* issue) const {
stream << ' ' << issue;
} | O3 | cpp | Catch::(anonymous namespace)::AssertionPrinter::printIssue(char const*) const:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
leaq 0x7(%rsp), %rsi
movb $0x20, (%rsi)
movl $0x1, %edx
callq 0x17be0
movq %rax, %r14
testq %rbx, %rbx
je 0x72ead
movq %rbx, %rdi
callq 0x174a0
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x17be0
jmp 0x72ec7
movq (%r14), %rax
movq -0x18(%rax), %rax
movq %r14, %rdi
addq %rax, %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x17da0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
| _ZNK5Catch12_GLOBAL__N_116AssertionPrinter10printIssueEPKc:
push r14
push rbx
push rax
mov rbx, rsi
lea rsi, [rsp+18h+var_11]
mov byte ptr [rsi], 20h ; ' '
mov edx, 1
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov r14, rax
test rbx, rbx
jz short loc_72EAD
mov rdi, rbx
call _strlen
mov rdi, r14
mov rsi, rbx
mov rdx, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
jmp short loc_72EC7
loc_72EAD:
mov rax, [r14]
mov rax, [rax-18h]
mov rdi, r14
add rdi, rax
mov esi, [r14+rax+20h]
or esi, 1
call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate)
loc_72EC7:
add rsp, 8
pop rbx
pop r14
retn
| void Catch::`anonymous namespace'::AssertionPrinter::printIssue(
Catch::_anonymous_namespace_::AssertionPrinter *this,
const char *a2)
{
_QWORD *v2; // rax
double v3; // xmm0_8
_QWORD *v4; // r14
long long v5; // rax
char v6[17]; // [rsp+1h] [rbp-11h] BYREF
v6[0] = 32;
v3 = std::__ostream_insert<char,std::char_traits<char>>(this, v6, 1LL);
v4 = v2;
if ( a2 )
{
v5 = strlen(a2);
std::__ostream_insert<char,std::char_traits<char>>(v4, a2, v5, v3);
}
else
{
std::ios::clear((char *)v2 + *(_QWORD *)(*v2 - 24LL), *(_DWORD *)((char *)v2 + *(_QWORD *)(*v2 - 24LL) + 32) | 1u);
}
}
| printIssue:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
LEA RSI,[RSP + 0x7]
MOV byte ptr [RSI],0x20
MOV EDX,0x1
CALL 0x00117be0
MOV R14,RAX
TEST RBX,RBX
JZ 0x00172ead
MOV RDI,RBX
CALL 0x001174a0
MOV RDI,R14
MOV RSI,RBX
MOV RDX,RAX
CALL 0x00117be0
JMP 0x00172ec7
LAB_00172ead:
MOV RAX,qword ptr [R14]
MOV RAX,qword ptr [RAX + -0x18]
MOV RDI,R14
ADD RDI,RAX
MOV ESI,dword ptr [R14 + RAX*0x1 + 0x20]
OR ESI,0x1
CALL 0x00117da0
LAB_00172ec7:
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* Catch::(anonymous namespace)::AssertionPrinter::printIssue(char const*) const */
void __thiscall
Catch::(anonymous_namespace)::AssertionPrinter::printIssue(AssertionPrinter *this,char *param_1)
{
ostream *poVar1;
size_t sVar2;
char local_11;
poVar1 = std::__ostream_insert<char,std::char_traits<char>>((ostream *)this,&local_11,1);
if (param_1 == (char *)0x0) {
std::ios::clear(poVar1 + *(long *)(*(long *)poVar1 + -0x18),
*(uint *)(poVar1 + *(long *)(*(long *)poVar1 + -0x18) + 0x20) | 1);
}
else {
sVar2 = strlen(param_1);
std::__ostream_insert<char,std::char_traits<char>>(poVar1,param_1,sVar2);
}
return;
}
| |
49,733 | is_on_curve | corpus-core[P]colibri-stateless/src/chains/eth/precompiles/precompiles_ec.c | static bool is_on_curve(const uint256_t* x, const uint256_t* y, const uint256_t* modulus) {
// Calculate right side: x^3 + 7 (mod p)
uint256_t x_squared, x_cubed, right_side, b;
intx_init(&x_squared);
intx_init(&x_cubed);
intx_init(&right_side);
uint256_from_be_bytes(&b, SECP256K1_B, 32);
// x^2 mod p
intx_mul(&x_squared, x, x);
intx_mod(&x_squared, &x_squared, modulus);
// x^3 mod p
intx_mul(&x_cubed, &x_squared, x);
intx_mod(&x_cubed, &x_cubed, modulus);
// x^3 + 7 mod p
intx_add(&right_side, &x_cubed, &b);
intx_mod(&right_side, &right_side, modulus);
// Calculate left side: y^2 (mod p)
uint256_t y_squared, left_side;
intx_init(&y_squared);
intx_init(&left_side);
// y^2 mod p
intx_mul(&y_squared, y, y);
intx_mod(&left_side, &y_squared, modulus);
// Check if left_side == right_side
return intx_eq(&left_side, &right_side);
} | O0 | c | is_on_curve:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq -0x38(%rbp), %rdi
callq 0xd8540
leaq -0x58(%rbp), %rdi
callq 0xd8540
leaq -0x78(%rbp), %rdi
callq 0xd8540
leaq -0x98(%rbp), %rdi
leaq 0x49b70(%rip), %rsi # 0xe5190
movl $0x20, %edx
callq 0x9b550
movq -0x8(%rbp), %rsi
movq -0x8(%rbp), %rdx
leaq -0x38(%rbp), %rdi
callq 0xd89b0
movq -0x18(%rbp), %rdx
leaq -0x38(%rbp), %rsi
movq %rsi, %rdi
callq 0xd8ac0
movq -0x8(%rbp), %rdx
leaq -0x58(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0xd89b0
movq -0x18(%rbp), %rdx
leaq -0x58(%rbp), %rsi
movq %rsi, %rdi
callq 0xd8ac0
leaq -0x78(%rbp), %rdi
leaq -0x58(%rbp), %rsi
leaq -0x98(%rbp), %rdx
callq 0xd88f0
movq -0x18(%rbp), %rdx
leaq -0x78(%rbp), %rsi
movq %rsi, %rdi
callq 0xd8ac0
leaq -0xb8(%rbp), %rdi
callq 0xd8540
leaq -0xd8(%rbp), %rdi
callq 0xd8540
movq -0x10(%rbp), %rsi
movq -0x10(%rbp), %rdx
leaq -0xb8(%rbp), %rdi
callq 0xd89b0
movq -0x18(%rbp), %rdx
leaq -0xd8(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0xd8ac0
leaq -0xd8(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0xd8d60
cmpl $0x0, %eax
setne %al
andb $0x1, %al
addq $0xe0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| is_on_curve:
push rbp
mov rbp, rsp
sub rsp, 0E0h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
lea rdi, [rbp+var_38]
call intx_init
lea rdi, [rbp+var_58]
call intx_init
lea rdi, [rbp+var_78]
call intx_init
lea rdi, [rbp+var_98]
lea rsi, SECP256K1_B
mov edx, 20h ; ' '
call uint256_from_be_bytes
mov rsi, [rbp+var_8]
mov rdx, [rbp+var_8]
lea rdi, [rbp+var_38]
call intx_mul
mov rdx, [rbp+var_18]
lea rsi, [rbp+var_38]
mov rdi, rsi
call intx_mod
mov rdx, [rbp+var_8]
lea rdi, [rbp+var_58]
lea rsi, [rbp+var_38]
call intx_mul
mov rdx, [rbp+var_18]
lea rsi, [rbp+var_58]
mov rdi, rsi
call intx_mod
lea rdi, [rbp+var_78]
lea rsi, [rbp+var_58]
lea rdx, [rbp+var_98]
call intx_add
mov rdx, [rbp+var_18]
lea rsi, [rbp+var_78]
mov rdi, rsi
call intx_mod
lea rdi, [rbp+var_B8]
call intx_init
lea rdi, [rbp+var_D8]
call intx_init
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_10]
lea rdi, [rbp+var_B8]
call intx_mul
mov rdx, [rbp+var_18]
lea rdi, [rbp+var_D8]
lea rsi, [rbp+var_B8]
call intx_mod
lea rdi, [rbp+var_D8]
lea rsi, [rbp+var_78]
call intx_eq
cmp eax, 0
setnz al
and al, 1
add rsp, 0E0h
pop rbp
retn
| bool is_on_curve(long long a1, long long a2, long long a3)
{
_BYTE v4[32]; // [rsp+8h] [rbp-D8h] BYREF
_BYTE v5[32]; // [rsp+28h] [rbp-B8h] BYREF
_QWORD v6[4]; // [rsp+48h] [rbp-98h] BYREF
_BYTE v7[32]; // [rsp+68h] [rbp-78h] BYREF
_BYTE v8[32]; // [rsp+88h] [rbp-58h] BYREF
_BYTE v9[32]; // [rsp+A8h] [rbp-38h] BYREF
long long v10; // [rsp+C8h] [rbp-18h]
long long v11; // [rsp+D0h] [rbp-10h]
long long v12; // [rsp+D8h] [rbp-8h]
v12 = a1;
v11 = a2;
v10 = a3;
intx_init(v9);
intx_init(v8);
intx_init(v7);
uint256_from_be_bytes(v6, (long long)&SECP256K1_B, 0x20uLL);
intx_mul(v9, v12, v12);
intx_mod(v9, v9, v10);
intx_mul(v8, v9, v12);
intx_mod(v8, v8, v10);
intx_add(v7, v8, v6);
intx_mod(v7, v7, v10);
intx_init(v5);
intx_init(v4);
intx_mul(v5, v11, v11);
intx_mod(v4, v5, v10);
return (unsigned int)intx_eq(v4, v7) != 0;
}
| is_on_curve:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xe0
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
LEA RDI,[RBP + -0x38]
CALL 0x001d8540
LEA RDI,[RBP + -0x58]
CALL 0x001d8540
LEA RDI,[RBP + -0x78]
CALL 0x001d8540
LEA RDI,[RBP + -0x98]
LEA RSI,[0x1e5190]
MOV EDX,0x20
CALL 0x0019b550
MOV RSI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RBP + -0x8]
LEA RDI,[RBP + -0x38]
CALL 0x001d89b0
MOV RDX,qword ptr [RBP + -0x18]
LEA RSI,[RBP + -0x38]
MOV RDI,RSI
CALL 0x001d8ac0
MOV RDX,qword ptr [RBP + -0x8]
LEA RDI,[RBP + -0x58]
LEA RSI,[RBP + -0x38]
CALL 0x001d89b0
MOV RDX,qword ptr [RBP + -0x18]
LEA RSI,[RBP + -0x58]
MOV RDI,RSI
CALL 0x001d8ac0
LEA RDI,[RBP + -0x78]
LEA RSI,[RBP + -0x58]
LEA RDX,[RBP + -0x98]
CALL 0x001d88f0
MOV RDX,qword ptr [RBP + -0x18]
LEA RSI,[RBP + -0x78]
MOV RDI,RSI
CALL 0x001d8ac0
LEA RDI,[RBP + -0xb8]
CALL 0x001d8540
LEA RDI,[RBP + -0xd8]
CALL 0x001d8540
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x10]
LEA RDI,[RBP + -0xb8]
CALL 0x001d89b0
MOV RDX,qword ptr [RBP + -0x18]
LEA RDI,[RBP + -0xd8]
LEA RSI,[RBP + -0xb8]
CALL 0x001d8ac0
LEA RDI,[RBP + -0xd8]
LEA RSI,[RBP + -0x78]
CALL 0x001d8d60
CMP EAX,0x0
SETNZ AL
AND AL,0x1
ADD RSP,0xe0
POP RBP
RET
|
bool is_on_curve(int8 param_1,int8 param_2,int8 param_3)
{
int iVar1;
int1 local_e0 [32];
int1 local_c0 [32];
int1 local_a0 [32];
int1 local_80 [32];
int1 local_60 [32];
int1 local_40 [32];
int8 local_20;
int8 local_18;
int8 local_10;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
intx_init(local_40);
intx_init(local_60);
intx_init(local_80);
uint256_from_be_bytes(local_a0,SECP256K1_B,0x20);
intx_mul(local_40,local_10,local_10);
intx_mod(local_40,local_40,local_20);
intx_mul(local_60,local_40,local_10);
intx_mod(local_60,local_60,local_20);
intx_add(local_80,local_60,local_a0);
intx_mod(local_80,local_80,local_20);
intx_init(local_c0);
intx_init(local_e0);
intx_mul(local_c0,local_18,local_18);
intx_mod(local_e0,local_c0,local_20);
iVar1 = intx_eq(local_e0,local_80);
return iVar1 != 0;
}
| |
49,734 | is_on_curve | corpus-core[P]colibri-stateless/src/chains/eth/precompiles/precompiles_ec.c | static bool is_on_curve(const uint256_t* x, const uint256_t* y, const uint256_t* modulus) {
// Calculate right side: x^3 + 7 (mod p)
uint256_t x_squared, x_cubed, right_side, b;
intx_init(&x_squared);
intx_init(&x_cubed);
intx_init(&right_side);
uint256_from_be_bytes(&b, SECP256K1_B, 32);
// x^2 mod p
intx_mul(&x_squared, x, x);
intx_mod(&x_squared, &x_squared, modulus);
// x^3 mod p
intx_mul(&x_cubed, &x_squared, x);
intx_mod(&x_cubed, &x_cubed, modulus);
// x^3 + 7 mod p
intx_add(&right_side, &x_cubed, &b);
intx_mod(&right_side, &right_side, modulus);
// Calculate left side: y^2 (mod p)
uint256_t y_squared, left_side;
intx_init(&y_squared);
intx_init(&left_side);
// y^2 mod p
intx_mul(&y_squared, y, y);
intx_mod(&left_side, &y_squared, modulus);
// Check if left_side == right_side
return intx_eq(&left_side, &right_side);
} | O3 | c | is_on_curve:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdx, %rbx
movq %rsi, 0x8(%rsp)
movq %rdi, %r13
leaq 0xb8(%rsp), %rbp
movq %rbp, %rdi
callq 0x7c9d0
leaq 0x98(%rsp), %r12
movq %r12, %rdi
callq 0x7c9d0
leaq 0x78(%rsp), %r15
movq %r15, %rdi
callq 0x7c9d0
movaps 0x395a1(%rip), %xmm0 # 0x89c50
leaq 0x10(%rsp), %r14
movaps %xmm0, 0x10(%r14)
movaps 0x39580(%rip), %xmm0 # 0x89c40
movaps %xmm0, (%r14)
movq %rbp, %rdi
movq %r13, %rsi
movq %r13, %rdx
callq 0x7cd93
movq %rbp, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x7d05f
movq %r12, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x7cd93
movq %r12, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x7d05f
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x7cc11
movq %r15, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x7d05f
leaq 0x58(%rsp), %r14
movq %r14, %rdi
callq 0x7c9d0
leaq 0x38(%rsp), %r12
movq %r12, %rdi
callq 0x7c9d0
movq %r14, %rdi
movq 0x8(%rsp), %rdx
movq %rdx, %rsi
callq 0x7cd93
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x7d05f
movq %r12, %rdi
movq %r15, %rsi
callq 0x7d62a
testl %eax, %eax
setne %al
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| is_on_curve:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0D8h
mov rbx, rdx
mov [rsp+108h+var_100], rsi
mov r13, rdi
lea rbp, [rsp+108h+var_50]
mov rdi, rbp
call intx_init
lea r12, [rsp+108h+var_70]
mov rdi, r12
call intx_init
lea r15, [rsp+108h+var_90]
mov rdi, r15
call intx_init
movaps xmm0, cs:xmmword_89C50
lea r14, [rsp+108h+var_F8]
movaps xmmword ptr [r14+10h], xmm0
movaps xmm0, cs:SECP256K1_B
movaps xmmword ptr [r14], xmm0
mov rdi, rbp
mov rsi, r13
mov rdx, r13
call intx_mul
mov rdi, rbp
mov rsi, rbp
mov rdx, rbx
call intx_mod
mov rdi, r12
mov rsi, rbp
mov rdx, r13
call intx_mul
mov rdi, r12
mov rsi, r12
mov rdx, rbx
call intx_mod
mov rdi, r15
mov rsi, r12
mov rdx, r14
call intx_add
mov rdi, r15
mov rsi, r15
mov rdx, rbx
call intx_mod
lea r14, [rsp+108h+var_B0]
mov rdi, r14
call intx_init
lea r12, [rsp+108h+var_D0]
mov rdi, r12
call intx_init
mov rdi, r14
mov rdx, [rsp+108h+var_100]
mov rsi, rdx
call intx_mul
mov rdi, r12
mov rsi, r14
mov rdx, rbx
call intx_mod
mov rdi, r12
mov rsi, r15
call intx_eq
test eax, eax
setnz al
add rsp, 0D8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| bool is_on_curve(long long a1, long long a2, long long a3)
{
_OWORD v5[2]; // [rsp+10h] [rbp-F8h] BYREF
_BYTE v6[32]; // [rsp+38h] [rbp-D0h] BYREF
_BYTE v7[32]; // [rsp+58h] [rbp-B0h] BYREF
_BYTE v8[32]; // [rsp+78h] [rbp-90h] BYREF
_BYTE v9[32]; // [rsp+98h] [rbp-70h] BYREF
_BYTE v10[80]; // [rsp+B8h] [rbp-50h] BYREF
intx_init(v10);
intx_init(v9);
intx_init(v8);
v5[1] = xmmword_89C50;
v5[0] = SECP256K1_B;
intx_mul(v10, a1, a1);
intx_mod(v10, v10, a3);
intx_mul(v9, v10, a1);
intx_mod(v9, v9, a3);
intx_add(v8, v9, v5);
intx_mod(v8, v8, a3);
intx_init(v7);
intx_init(v6);
intx_mul(v7, a2, a2);
intx_mod(v6, v7, a3);
return (unsigned int)intx_eq(v6, v8) != 0;
}
| is_on_curve:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xd8
MOV RBX,RDX
MOV qword ptr [RSP + 0x8],RSI
MOV R13,RDI
LEA RBP,[RSP + 0xb8]
MOV RDI,RBP
CALL 0x0017c9d0
LEA R12,[RSP + 0x98]
MOV RDI,R12
CALL 0x0017c9d0
LEA R15,[RSP + 0x78]
MOV RDI,R15
CALL 0x0017c9d0
MOVAPS XMM0,xmmword ptr [0x00189c50]
LEA R14,[RSP + 0x10]
MOVAPS xmmword ptr [R14 + 0x10],XMM0
MOVAPS XMM0,xmmword ptr [0x00189c40]
MOVAPS xmmword ptr [R14],XMM0
MOV RDI,RBP
MOV RSI,R13
MOV RDX,R13
CALL 0x0017cd93
MOV RDI,RBP
MOV RSI,RBP
MOV RDX,RBX
CALL 0x0017d05f
MOV RDI,R12
MOV RSI,RBP
MOV RDX,R13
CALL 0x0017cd93
MOV RDI,R12
MOV RSI,R12
MOV RDX,RBX
CALL 0x0017d05f
MOV RDI,R15
MOV RSI,R12
MOV RDX,R14
CALL 0x0017cc11
MOV RDI,R15
MOV RSI,R15
MOV RDX,RBX
CALL 0x0017d05f
LEA R14,[RSP + 0x58]
MOV RDI,R14
CALL 0x0017c9d0
LEA R12,[RSP + 0x38]
MOV RDI,R12
CALL 0x0017c9d0
MOV RDI,R14
MOV RDX,qword ptr [RSP + 0x8]
MOV RSI,RDX
CALL 0x0017cd93
MOV RDI,R12
MOV RSI,R14
MOV RDX,RBX
CALL 0x0017d05f
MOV RDI,R12
MOV RSI,R15
CALL 0x0017d62a
TEST EAX,EAX
SETNZ AL
ADD RSP,0xd8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
bool is_on_curve(int8 param_1,int8 param_2,int8 param_3)
{
int iVar1;
int4 local_f8 [10];
int1 local_d0 [32];
int1 local_b0 [32];
int1 local_90 [32];
int1 local_70 [32];
int1 local_50 [32];
intx_init(local_50);
intx_init(local_70);
intx_init(local_90);
local_f8[4] = SECP256K1_B._16_4_;
local_f8[5] = SECP256K1_B._20_4_;
local_f8[6] = SECP256K1_B._24_4_;
local_f8[7] = SECP256K1_B._28_4_;
local_f8[0] = SECP256K1_B._0_4_;
local_f8[1] = SECP256K1_B._4_4_;
local_f8[2] = SECP256K1_B._8_4_;
local_f8[3] = SECP256K1_B._12_4_;
intx_mul(local_50,param_1,param_1);
intx_mod(local_50,local_50,param_3);
intx_mul(local_70,local_50,param_1);
intx_mod(local_70,local_70,param_3);
intx_add(local_90,local_70,local_f8);
intx_mod(local_90,local_90,param_3);
intx_init(local_b0);
intx_init(local_d0);
intx_mul(local_b0,param_2);
intx_mod(local_d0,local_b0,param_3);
iVar1 = intx_eq(local_d0,local_90);
return iVar1 != 0;
}
| |
49,735 | minja::VariableExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const | monkey531[P]llama/common/minja.hpp | Value do_evaluate(const std::shared_ptr<Context> & context) const override {
if (!context->contains(name)) {
return Value();
}
return context->at(name);
} | O2 | cpp | minja::VariableExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdx), %r12
addq $0x20, %r14
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x66988
movq (%r12), %rax
movq %r12, %rdi
movq %r13, %rsi
callq *0x20(%rax)
movl %eax, %ebp
leaq 0x8(%rsp), %rdi
callq 0x639aa
testb %bpl, %bpl
je 0x726e6
movq (%r15), %r15
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x66988
movq (%r15), %rax
movq %r15, %rdi
movq %r12, %rsi
callq *0x18(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x69380
leaq 0x8(%rsp), %rdi
callq 0x639aa
jmp 0x726ee
movq %rbx, %rdi
callq 0x66ce6
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x72702
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x639aa
movq %rbx, %rdi
callq 0x24f80
nop
| _ZNK5minja12VariableExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov r15, rdx
mov r14, rsi
mov rbx, rdi
mov r12, [rdx]
add r14, 20h ; ' '
lea r13, [rsp+88h+var_80]
mov rdi, r13
mov rsi, r14
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
mov rax, [r12]
mov rdi, r12
mov rsi, r13
call qword ptr [rax+20h]
mov ebp, eax
lea rdi, [rsp+88h+var_80]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
test bpl, bpl
jz short loc_726E6
mov r15, [r15]
lea r12, [rsp+88h+var_80]
mov rdi, r12
mov rsi, r14
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
mov rax, [r15]
mov rdi, r15
mov rsi, r12
call qword ptr [rax+18h]
mov rdi, rbx; this
mov rsi, rax; minja::Value *
call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&)
lea rdi, [rsp+88h+var_80]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp short loc_726EE
loc_726E6:
mov rdi, rbx; this
call _ZN5minja5ValueC2Ev; minja::Value::Value(void)
loc_726EE:
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_72702:
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, rbx
call __Unwind_Resume
| minja::Value * minja::VariableExpr::do_evaluate(minja::Value *this, long long a2, long long *a3)
{
long long v4; // r12
char v5; // bp
long long v6; // r15
const minja::Value *v7; // rax
_BYTE v9[128]; // [rsp+8h] [rbp-80h] BYREF
v4 = *a3;
minja::Value::Value((long long)v9, a2 + 32);
v5 = (*(long long ( **)(long long, _BYTE *))(*(_QWORD *)v4 + 32LL))(v4, v9);
minja::Value::~Value((minja::Value *)v9);
if ( v5 )
{
v6 = *a3;
minja::Value::Value((long long)v9, a2 + 32);
v7 = (const minja::Value *)(*(long long ( **)(long long, _BYTE *))(*(_QWORD *)v6 + 24LL))(v6, v9);
minja::Value::Value(this, v7);
minja::Value::~Value((minja::Value *)v9);
}
else
{
minja::Value::Value(this);
}
return this;
}
| do_evaluate:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
MOV R12,qword ptr [RDX]
ADD R14,0x20
LEA R13,[RSP + 0x8]
MOV RDI,R13
MOV RSI,R14
CALL 0x00166988
MOV RAX,qword ptr [R12]
LAB_00172696:
MOV RDI,R12
MOV RSI,R13
CALL qword ptr [RAX + 0x20]
LAB_0017269f:
MOV EBP,EAX
LEA RDI,[RSP + 0x8]
CALL 0x001639aa
TEST BPL,BPL
JZ 0x001726e6
MOV R15,qword ptr [R15]
LEA R12,[RSP + 0x8]
MOV RDI,R12
MOV RSI,R14
CALL 0x00166988
MOV RAX,qword ptr [R15]
LAB_001726c6:
MOV RDI,R15
MOV RSI,R12
CALL qword ptr [RAX + 0x18]
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00169380
LAB_001726da:
LEA RDI,[RSP + 0x8]
CALL 0x001639aa
JMP 0x001726ee
LAB_001726e6:
MOV RDI,RBX
CALL 0x00166ce6
LAB_001726ee:
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* minja::VariableExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */
shared_ptr * minja::VariableExpr::do_evaluate(shared_ptr *param_1)
{
long *plVar1;
char cVar2;
Value *pVVar3;
int8 *in_RDX;
long in_RSI;
Value local_80 [80];
plVar1 = (long *)*in_RDX;
Value::Value(local_80,(string *)(in_RSI + 0x20));
/* try { // try from 00172696 to 0017269e has its CatchHandler @ 00172702 */
cVar2 = (**(code **)(*plVar1 + 0x20))(plVar1,local_80);
Value::~Value(local_80);
if (cVar2 == '\0') {
Value::Value((Value *)param_1);
}
else {
plVar1 = (long *)*in_RDX;
Value::Value(local_80,(string *)(in_RSI + 0x20));
/* try { // try from 001726c6 to 001726d9 has its CatchHandler @ 00172700 */
pVVar3 = (Value *)(**(code **)(*plVar1 + 0x18))(plVar1,local_80);
Value::Value((Value *)param_1,pVVar3);
Value::~Value(local_80);
}
return param_1;
}
| |
49,736 | link_block | eloqsql/mysys/mf_keycache.c | static void link_block(SIMPLE_KEY_CACHE_CB *keycache, BLOCK_LINK *block,
my_bool hot, my_bool at_end)
{
BLOCK_LINK *ins;
BLOCK_LINK **pins;
DBUG_ASSERT((block->status & ~BLOCK_CHANGED) == (BLOCK_READ | BLOCK_IN_USE));
DBUG_ASSERT(block->hash_link); /*backptr to block NULL from free_block()*/
DBUG_ASSERT(!block->requests);
DBUG_ASSERT(block->prev_changed && *block->prev_changed == block);
DBUG_ASSERT(!block->next_used);
DBUG_ASSERT(!block->prev_used);
if (!hot && keycache->waiting_for_block.last_thread)
{
/* Signal that in the LRU warm sub-chain an available block has appeared */
struct st_my_thread_var *last_thread=
keycache->waiting_for_block.last_thread;
struct st_my_thread_var *first_thread= last_thread->next;
struct st_my_thread_var *next_thread= first_thread;
HASH_LINK *hash_link= (HASH_LINK *) first_thread->keycache_link;
struct st_my_thread_var *thread;
do
{
thread= next_thread;
next_thread= thread->next;
/*
We notify about the event all threads that ask
for the same page as the first thread in the queue
*/
if ((HASH_LINK *) thread->keycache_link == hash_link)
{
KEYCACHE_DBUG_PRINT("link_block: signal",
("thread %ld", (ulong) thread->id));
keycache_pthread_cond_signal(&thread->suspend);
unlink_from_queue(&keycache->waiting_for_block, thread);
block->requests++;
}
}
while (thread != last_thread);
hash_link->block= block;
/*
NOTE: We assigned the block to the hash_link and signalled the
requesting thread(s). But it is possible that other threads runs
first. These threads see the hash_link assigned to a block which
is assigned to another hash_link and not marked BLOCK_IN_SWITCH.
This can be a problem for functions that do not select the block
via its hash_link: flush and free. They do only see a block which
is in a "normal" state and don't know that it will be evicted soon.
We cannot set BLOCK_IN_SWITCH here because only one of the
requesting threads must handle the eviction. All others must wait
for it to complete. If we set the flag here, the threads would not
know who is in charge of the eviction. Without the flag, the first
thread takes the stick and sets the flag.
But we need to note in the block that is has been selected for
eviction. It must not be freed. The evicting thread will not
expect the block in the free list. Before freeing we could also
check if block->requests > 1. But I think including another flag
in the check of block->status is slightly more efficient and
probably easier to read.
*/
block->status|= BLOCK_IN_EVICTION;
KEYCACHE_THREAD_TRACE("link_block: after signaling");
#if defined(KEYCACHE_DEBUG)
KEYCACHE_DBUG_PRINT("link_block",
("linked,unlinked block %u status=%x #requests=%u #available=%u",
BLOCK_NUMBER(block), block->status,
block->requests, keycache->blocks_available));
#endif
return;
}
pins= hot ? &keycache->used_ins : &keycache->used_last;
ins= *pins;
if (ins)
{
ins->next_used->prev_used= &block->next_used;
block->next_used= ins->next_used;
block->prev_used= &ins->next_used;
ins->next_used= block;
if (at_end)
*pins= block;
}
else
{
/* The LRU ring is empty. Let the block point to itself. */
keycache->used_last= keycache->used_ins= block->next_used= block;
block->prev_used= &block->next_used;
}
KEYCACHE_THREAD_TRACE("link_block");
#if defined(KEYCACHE_DEBUG)
keycache->blocks_available++;
KEYCACHE_DBUG_PRINT("link_block",
("linked block %u:%1u status=%x #requests=%u #available=%u",
BLOCK_NUMBER(block), at_end, block->status,
block->requests, keycache->blocks_available));
KEYCACHE_DBUG_ASSERT((ulong) keycache->blocks_available <=
keycache->blocks_used);
#endif
} | O0 | c | link_block:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movb %cl, %al
movb %dl, %cl
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb %cl, -0x11(%rbp)
movb %al, -0x12(%rbp)
jmp 0xe717c
jmp 0xe717e
jmp 0xe7180
jmp 0xe7182
jmp 0xe7184
jmp 0xe7186
jmp 0xe7188
jmp 0xe718a
jmp 0xe718c
jmp 0xe718e
jmp 0xe7190
cmpb $0x0, -0x11(%rbp)
jne 0xe7268
movq -0x8(%rbp), %rax
cmpq $0x0, 0x120(%rax)
je 0xe7268
movq -0x8(%rbp), %rax
movq 0x120(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq 0x88(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
movq 0xa8(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq 0x88(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x50(%rbp), %rax
movq 0xa8(%rax), %rax
cmpq -0x48(%rbp), %rax
jne 0xe723b
jmp 0xe720b
jmp 0xe720d
movq -0x50(%rbp), %rdi
addq $0x8, %rdi
callq 0xe6f30
movq -0x8(%rbp), %rdi
addq $0x120, %rdi # imm = 0x120
movq -0x50(%rbp), %rsi
callq 0xe6f90
movq -0x10(%rbp), %rax
movl 0x38(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x38(%rax)
jmp 0xe723d
movq -0x50(%rbp), %rax
cmpq -0x30(%rbp), %rax
jne 0xe71e1
movq -0x10(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movl 0x50(%rax), %ecx
orl $0x80, %ecx
movl %ecx, 0x50(%rax)
jmp 0xe731d
movsbl -0x11(%rbp), %eax
cmpl $0x0, %eax
je 0xe7281
movq -0x8(%rbp), %rax
addq $0xb8, %rax
movq %rax, -0x58(%rbp)
jmp 0xe728f
movq -0x8(%rbp), %rax
addq $0xb0, %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0xe72f0
movq -0x10(%rbp), %rcx
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rcx, 0x8(%rax)
movq -0x20(%rbp), %rax
movq (%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
cmpb $0x0, -0x12(%rbp)
je 0xe72ee
movq -0x10(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
jmp 0xe731d
movq -0x10(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movq %rcx, 0xb8(%rax)
movq -0x8(%rbp), %rax
movq %rcx, 0xb0(%rax)
movq -0x10(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| link_block_0:
push rbp
mov rbp, rsp
sub rsp, 60h
mov al, cl
mov cl, dl
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_11], cl
mov [rbp+var_12], al
jmp short $+2
loc_E717C:
jmp short $+2
loc_E717E:
jmp short $+2
loc_E7180:
jmp short $+2
loc_E7182:
jmp short $+2
loc_E7184:
jmp short $+2
loc_E7186:
jmp short $+2
loc_E7188:
jmp short $+2
loc_E718A:
jmp short $+2
loc_E718C:
jmp short $+2
loc_E718E:
jmp short $+2
loc_E7190:
cmp [rbp+var_11], 0
jnz loc_E7268
mov rax, [rbp+var_8]
cmp qword ptr [rax+120h], 0
jz loc_E7268
mov rax, [rbp+var_8]
mov rax, [rax+120h]
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
mov rax, [rax+88h]
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov [rbp+var_40], rax
mov rax, [rbp+var_38]
mov rax, [rax+0A8h]
mov [rbp+var_48], rax
loc_E71E1:
mov rax, [rbp+var_40]
mov [rbp+var_50], rax
mov rax, [rbp+var_50]
mov rax, [rax+88h]
mov [rbp+var_40], rax
mov rax, [rbp+var_50]
mov rax, [rax+0A8h]
cmp rax, [rbp+var_48]
jnz short loc_E723B
jmp short $+2
loc_E720B:
jmp short $+2
loc_E720D:
mov rdi, [rbp+var_50]
add rdi, 8
call inline_mysql_cond_signal_2
mov rdi, [rbp+var_8]
add rdi, 120h
mov rsi, [rbp+var_50]
call unlink_from_queue
mov rax, [rbp+var_10]
mov ecx, [rax+38h]
add ecx, 1
mov [rax+38h], ecx
loc_E723B:
jmp short $+2
loc_E723D:
mov rax, [rbp+var_50]
cmp rax, [rbp+var_30]
jnz short loc_E71E1
mov rcx, [rbp+var_10]
mov rax, [rbp+var_48]
mov [rax+10h], rcx
mov rax, [rbp+var_10]
mov ecx, [rax+50h]
or ecx, 80h
mov [rax+50h], ecx
jmp loc_E731D
loc_E7268:
movsx eax, [rbp+var_11]
cmp eax, 0
jz short loc_E7281
mov rax, [rbp+var_8]
add rax, 0B8h
mov [rbp+var_58], rax
jmp short loc_E728F
loc_E7281:
mov rax, [rbp+var_8]
add rax, 0B0h
mov [rbp+var_58], rax
loc_E728F:
mov rax, [rbp+var_58]
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov rax, [rax]
mov [rbp+var_20], rax
cmp [rbp+var_20], 0
jz short loc_E72F0
mov rcx, [rbp+var_10]
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rax+8], rcx
mov rax, [rbp+var_20]
mov rcx, [rax]
mov rax, [rbp+var_10]
mov [rax], rcx
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov rcx, [rbp+var_10]
mov rax, [rbp+var_20]
mov [rax], rcx
cmp [rbp+var_12], 0
jz short loc_E72EE
mov rcx, [rbp+var_10]
mov rax, [rbp+var_28]
mov [rax], rcx
loc_E72EE:
jmp short loc_E731D
loc_E72F0:
mov rcx, [rbp+var_10]
mov rax, [rbp+var_10]
mov [rax], rcx
mov rax, [rbp+var_8]
mov [rax+0B8h], rcx
mov rax, [rbp+var_8]
mov [rax+0B0h], rcx
mov rcx, [rbp+var_10]
mov rax, [rbp+var_10]
mov [rax+8], rcx
loc_E731D:
add rsp, 60h
pop rbp
retn
| _QWORD * link_block_0(_QWORD *a1, long long a2, char a3, char a4)
{
_QWORD *result; // rax
_QWORD *v5; // [rsp+8h] [rbp-58h]
long long v6; // [rsp+10h] [rbp-50h]
long long v7; // [rsp+18h] [rbp-48h]
long long v8; // [rsp+20h] [rbp-40h]
long long v9; // [rsp+30h] [rbp-30h]
_QWORD *v10; // [rsp+40h] [rbp-20h]
if ( a3 || !a1[36] )
{
if ( a3 )
v5 = a1 + 23;
else
v5 = a1 + 22;
v10 = (_QWORD *)*v5;
if ( *v5 )
{
*(_QWORD *)(*v10 + 8LL) = a2;
*(_QWORD *)a2 = *v10;
*(_QWORD *)(a2 + 8) = v10;
result = v10;
*v10 = a2;
if ( a4 )
{
result = v5;
*v5 = a2;
}
}
else
{
*(_QWORD *)a2 = a2;
a1[23] = a2;
a1[22] = a2;
result = (_QWORD *)a2;
*(_QWORD *)(a2 + 8) = a2;
}
}
else
{
v9 = a1[36];
v8 = *(_QWORD *)(v9 + 136);
v7 = *(_QWORD *)(v8 + 168);
do
{
v6 = v8;
v8 = *(_QWORD *)(v8 + 136);
if ( *(_QWORD *)(v6 + 168) == v7 )
{
inline_mysql_cond_signal_2(v6 + 8);
unlink_from_queue(a1 + 36, v6);
++*(_DWORD *)(a2 + 56);
}
}
while ( v6 != v9 );
*(_QWORD *)(v7 + 16) = a2;
result = (_QWORD *)a2;
*(_DWORD *)(a2 + 80) |= 0x80u;
}
return result;
}
| link_block:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV AL,CL
MOV CL,DL
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV byte ptr [RBP + -0x11],CL
MOV byte ptr [RBP + -0x12],AL
JMP 0x001e717c
LAB_001e717c:
JMP 0x001e717e
LAB_001e717e:
JMP 0x001e7180
LAB_001e7180:
JMP 0x001e7182
LAB_001e7182:
JMP 0x001e7184
LAB_001e7184:
JMP 0x001e7186
LAB_001e7186:
JMP 0x001e7188
LAB_001e7188:
JMP 0x001e718a
LAB_001e718a:
JMP 0x001e718c
LAB_001e718c:
JMP 0x001e718e
LAB_001e718e:
JMP 0x001e7190
LAB_001e7190:
CMP byte ptr [RBP + -0x11],0x0
JNZ 0x001e7268
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x120],0x0
JZ 0x001e7268
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x120]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX + 0x88]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0xa8]
MOV qword ptr [RBP + -0x48],RAX
LAB_001e71e1:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RAX + 0x88]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RAX + 0xa8]
CMP RAX,qword ptr [RBP + -0x48]
JNZ 0x001e723b
JMP 0x001e720b
LAB_001e720b:
JMP 0x001e720d
LAB_001e720d:
MOV RDI,qword ptr [RBP + -0x50]
ADD RDI,0x8
CALL 0x001e6f30
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x120
MOV RSI,qword ptr [RBP + -0x50]
CALL 0x001e6f90
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x38]
ADD ECX,0x1
MOV dword ptr [RAX + 0x38],ECX
LAB_001e723b:
JMP 0x001e723d
LAB_001e723d:
MOV RAX,qword ptr [RBP + -0x50]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x001e71e1
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x50]
OR ECX,0x80
MOV dword ptr [RAX + 0x50],ECX
JMP 0x001e731d
LAB_001e7268:
MOVSX EAX,byte ptr [RBP + -0x11]
CMP EAX,0x0
JZ 0x001e7281
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0xb8
MOV qword ptr [RBP + -0x58],RAX
JMP 0x001e728f
LAB_001e7281:
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0xb0
MOV qword ptr [RBP + -0x58],RAX
LAB_001e728f:
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
CMP qword ptr [RBP + -0x20],0x0
JZ 0x001e72f0
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX],RCX
CMP byte ptr [RBP + -0x12],0x0
JZ 0x001e72ee
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
LAB_001e72ee:
JMP 0x001e731d
LAB_001e72f0:
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xb8],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xb0],RCX
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
LAB_001e731d:
ADD RSP,0x60
POP RBP
RET
|
void link_block(long param_1,long *param_2,char param_3,char param_4)
{
long lVar1;
long lVar2;
long lVar3;
long *plVar4;
bool bVar5;
long *local_60;
long local_48;
if ((param_3 == '\0') && (*(long *)(param_1 + 0x120) != 0)) {
lVar1 = *(long *)(param_1 + 0x120);
local_48 = *(long *)(lVar1 + 0x88);
lVar2 = *(long *)(local_48 + 0xa8);
do {
lVar3 = *(long *)(local_48 + 0x88);
if (*(long *)(local_48 + 0xa8) == lVar2) {
inline_mysql_cond_signal(local_48 + 8);
unlink_from_queue(param_1 + 0x120,local_48);
*(int *)(param_2 + 7) = (int)param_2[7] + 1;
}
bVar5 = local_48 != lVar1;
local_48 = lVar3;
} while (bVar5);
*(long **)(lVar2 + 0x10) = param_2;
*(uint *)(param_2 + 10) = *(uint *)(param_2 + 10) | 0x80;
}
else {
if (param_3 == '\0') {
local_60 = (long *)(param_1 + 0xb0);
}
else {
local_60 = (long *)(param_1 + 0xb8);
}
plVar4 = (long *)*local_60;
if (plVar4 == (long *)0x0) {
*param_2 = (long)param_2;
*(long **)(param_1 + 0xb8) = param_2;
*(long **)(param_1 + 0xb0) = param_2;
param_2[1] = (long)param_2;
}
else {
*(long **)(*plVar4 + 8) = param_2;
*param_2 = *plVar4;
param_2[1] = (long)plVar4;
*plVar4 = (long)param_2;
if (param_4 != '\0') {
*local_60 = (long)param_2;
}
}
}
return;
}
| |
49,737 | testing::internal::CmpHelperSTRCASEEQ(char const*, char const*, char const*, char const*) | giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc | AssertionResult CmpHelperSTRCASEEQ(const char* lhs_expression,
const char* rhs_expression, const char* lhs,
const char* rhs) {
if (String::CaseInsensitiveCStringEquals(lhs, rhs)) {
return AssertionSuccess();
}
return EqFailure(lhs_expression, rhs_expression, PrintToString(lhs),
PrintToString(rhs), true);
} | O1 | cpp | testing::internal::CmpHelperSTRCASEEQ(char const*, char const*, char const*, char const*):
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rcx, 0x8(%rsp)
movq %r8, (%rsp)
testq %r8, %r8
sete %al
testq %rcx, %rcx
je 0x1e74b
testq %r8, %r8
je 0x1e75c
movq %rcx, %rdi
movq %r8, %rsi
callq 0x8550
testl %eax, %eax
sete %al
testb %al, %al
je 0x1e75c
movb $0x1, (%rbx)
movq $0x0, 0x8(%rbx)
jmp 0x1e7cc
leaq 0x30(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x33c38
leaq 0x10(%rsp), %rdi
movq %rsp, %rsi
callq 0x33c38
leaq 0x30(%rsp), %rcx
leaq 0x10(%rsp), %r8
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl $0x1, %r9d
callq 0x1dd98
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e7b1
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x84e0
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e7cc
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x84e0
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e7fc
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x84e0
jmp 0x1e7fc
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e817
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x84e0
movq %rbx, %rdi
callq 0x8990
nop
| _ZN7testing8internal18CmpHelperSTRCASEEQEPKcS2_S2_S2_:
push r15
push r14
push rbx
sub rsp, 50h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov [rsp+68h+var_60], rcx
mov [rsp+68h+var_68], r8
test r8, r8
setz al
test rcx, rcx
jz short loc_1E74B
test r8, r8
jz short loc_1E75C
mov rdi, rcx
mov rsi, r8
call _strcasecmp
test eax, eax
setz al
loc_1E74B:
test al, al
jz short loc_1E75C
mov byte ptr [rbx], 1
mov qword ptr [rbx+8], 0
jmp short loc_1E7CC
loc_1E75C:
lea rdi, [rsp+68h+var_38]
lea rsi, [rsp+68h+var_60]
call _ZN7testing13PrintToStringIPKcEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::PrintToString<char const*>(char const* const&)
lea rdi, [rsp+68h+var_58]
mov rsi, rsp
call _ZN7testing13PrintToStringIPKcEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::PrintToString<char const*>(char const* const&)
lea rcx, [rsp+68h+var_38]
lea r8, [rsp+68h+var_58]
mov rdi, rbx
mov rsi, r15
mov rdx, r14
mov r9d, 1
call _ZN7testing8internal9EqFailureEPKcS2_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_b; testing::internal::EqFailure(char const*,char const*,std::string const&,std::string const&,bool)
lea rax, [rsp+68h+var_48]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1E7B1
mov rsi, [rsp+68h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1E7B1:
lea rax, [rsp+68h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1E7CC
mov rsi, [rsp+68h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1E7CC:
mov rax, rbx
add rsp, 50h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
lea rax, [rsp+arg_18]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1E7FC
mov rsi, [rsp+arg_18]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_1E7FC
mov rbx, rax
loc_1E7FC:
lea rax, [rsp+arg_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1E817
mov rsi, [rsp+arg_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1E817:
mov rdi, rbx
call __Unwind_Resume
| CmpHelperSTRCASEEQ:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV qword ptr [RSP + 0x8],RCX
MOV qword ptr [RSP],R8
TEST R8,R8
SETZ AL
TEST RCX,RCX
JZ 0x0011e74b
TEST R8,R8
JZ 0x0011e75c
MOV RDI,RCX
MOV RSI,R8
CALL 0x00108550
TEST EAX,EAX
SETZ AL
LAB_0011e74b:
TEST AL,AL
JZ 0x0011e75c
MOV byte ptr [RBX],0x1
MOV qword ptr [RBX + 0x8],0x0
JMP 0x0011e7cc
LAB_0011e75c:
LEA RDI,[RSP + 0x30]
LEA RSI,[RSP + 0x8]
CALL 0x00133c38
LAB_0011e76b:
LEA RDI,[RSP + 0x10]
MOV RSI,RSP
CALL 0x00133c38
LAB_0011e778:
LEA RCX,[RSP + 0x30]
LEA R8,[RSP + 0x10]
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
MOV R9D,0x1
CALL 0x0011dd98
LAB_0011e796:
LEA RAX,[RSP + 0x20]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0011e7b1
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x001084e0
LAB_0011e7b1:
LEA RAX,[RSP + 0x40]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0011e7cc
MOV RSI,qword ptr [RSP + 0x40]
INC RSI
CALL 0x001084e0
LAB_0011e7cc:
MOV RAX,RBX
ADD RSP,0x50
POP RBX
POP R14
POP R15
RET
|
/* testing::internal::CmpHelperSTRCASEEQ(char const*, char const*, char const*, char const*) */
internal * __thiscall
testing::internal::CmpHelperSTRCASEEQ
(internal *this,char *param_1,char *param_2,char *param_3,char *param_4)
{
int iVar1;
bool bVar2;
char *local_68;
char *local_60;
long *local_58 [2];
long local_48 [2];
long *local_38 [2];
long local_28 [2];
bVar2 = param_4 == (char *)0x0;
local_68 = param_4;
local_60 = param_3;
if (param_3 != (char *)0x0) {
if (param_4 == (char *)0x0) goto LAB_0011e75c;
iVar1 = strcasecmp(param_3,param_4);
bVar2 = iVar1 == 0;
}
if (bVar2) {
*this = (internal)0x1;
*(int8 *)(this + 8) = 0;
return this;
}
LAB_0011e75c:
PrintToString<char_const*>((testing *)local_38,&local_60);
/* try { // try from 0011e76b to 0011e777 has its CatchHandler @ 0011e7f9 */
PrintToString<char_const*>((testing *)local_58,&local_68);
/* try { // try from 0011e778 to 0011e795 has its CatchHandler @ 0011e7d9 */
EqFailure(this,param_1,param_2,(string *)local_38,(string *)local_58,true);
if (local_58[0] != local_48) {
operator_delete(local_58[0],local_48[0] + 1);
}
if (local_38[0] != local_28) {
operator_delete(local_38[0],local_28[0] + 1);
}
return this;
}
| ||
49,738 | js_symbol_get_description | bluesky950520[P]quickjs/quickjs.c | static JSValue js_symbol_get_description(JSContext *ctx, JSValue this_val)
{
JSValue val, ret;
JSAtomStruct *p;
val = js_thisSymbolValue(ctx, this_val);
if (JS_IsException(val))
return val;
p = JS_VALUE_GET_PTR(val);
if (p->len == 0 && p->is_wide_char != 0) {
ret = JS_UNDEFINED;
} else {
ret = JS_AtomToString(ctx, js_get_atom_index(ctx->rt, p));
}
JS_FreeValue(ctx, val);
return ret;
} | O0 | c | js_symbol_get_description:
subq $0x88, %rsp
movq %rsi, 0x68(%rsp)
movq %rdx, 0x70(%rsp)
movq %rdi, 0x60(%rsp)
movq 0x60(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
callq 0xd9da0
movq %rax, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x50(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0xd9cb8
movq 0x50(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0xd9d86
movq 0x50(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq 0x4(%rax), %rax
andq $0x7fffffff, %rax # imm = 0x7FFFFFFF
cmpl $0x0, %eax
jne 0xd9d16
movq 0x38(%rsp), %rax
movq 0x4(%rax), %rax
shrq $0x1f, %rax
andq $0x1, %rax
movzbl %al, %eax
cmpl $0x0, %eax
je 0xd9d16
movl $0x0, 0x18(%rsp)
movq $0x3, 0x20(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x48(%rsp)
jmp 0xd9d5b
movq 0x60(%rsp), %rax
movq %rax, (%rsp)
movq 0x60(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x38(%rsp), %rsi
callq 0x31320
movq (%rsp), %rdi
movl %eax, %esi
callq 0x29000
movq %rax, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x60(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
callq 0x23c90
movq 0x40(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x78(%rsp), %rax
movq 0x80(%rsp), %rdx
addq $0x88, %rsp
retq
nopl (%rax,%rax)
| js_symbol_get_description:
sub rsp, 88h
mov [rsp+88h+var_20], rsi
mov [rsp+88h+var_18], rdx
mov [rsp+88h+var_28], rdi
mov rdi, [rsp+88h+var_28]
mov rsi, [rsp+88h+var_20]
mov rdx, [rsp+88h+var_18]
call js_thisSymbolValue
mov [rsp+88h+var_60], rax
mov [rsp+88h+var_58], rdx
mov rax, [rsp+88h+var_60]
mov [rsp+88h+var_38], rax
mov rax, [rsp+88h+var_58]
mov [rsp+88h+var_30], rax
mov rdi, [rsp+88h+var_38]
mov rsi, [rsp+88h+var_30]
call JS_IsException_1
cmp eax, 0
jz short loc_D9CB8
mov rax, [rsp+88h+var_38]
mov [rsp+88h+var_10], rax
mov rax, [rsp+88h+var_30]
mov [rsp+88h+var_8], rax
jmp loc_D9D86
loc_D9CB8:
mov rax, [rsp+88h+var_38]
mov [rsp+88h+var_50], rax
mov rax, [rsp+88h+var_50]
mov rax, [rax+4]
and rax, 7FFFFFFFh
cmp eax, 0
jnz short loc_D9D16
mov rax, [rsp+88h+var_50]
mov rax, [rax+4]
shr rax, 1Fh
and rax, 1
movzx eax, al
cmp eax, 0
jz short loc_D9D16
mov dword ptr [rsp+88h+var_70], 0
mov [rsp+88h+var_68], 3
mov rax, [rsp+88h+var_70]
mov [rsp+88h+var_48], rax
mov rax, [rsp+88h+var_68]
mov [rsp+88h+var_40], rax
jmp short loc_D9D5B
loc_D9D16:
mov rax, [rsp+88h+var_28]
mov [rsp+88h+var_88], rax
mov rax, [rsp+88h+var_28]
mov rdi, [rax+18h]
mov rsi, [rsp+88h+var_50]
call js_get_atom_index
mov rdi, [rsp+88h+var_88]
mov esi, eax
call JS_AtomToString
mov [rsp+88h+var_80], rax
mov [rsp+88h+var_78], rdx
mov rax, [rsp+88h+var_80]
mov [rsp+88h+var_48], rax
mov rax, [rsp+88h+var_78]
mov [rsp+88h+var_40], rax
loc_D9D5B:
mov rdi, [rsp+88h+var_28]
mov rsi, [rsp+88h+var_38]
mov rdx, [rsp+88h+var_30]
call JS_FreeValue
mov rax, [rsp+88h+var_48]
mov [rsp+88h+var_10], rax
mov rax, [rsp+88h+var_40]
mov [rsp+88h+var_8], rax
loc_D9D86:
mov rax, [rsp+88h+var_10]
mov rdx, [rsp+88h+var_8]
add rsp, 88h
retn
| long long js_symbol_get_description(long long a1, long long a2, long long a3)
{
long long v3; // rdx
unsigned int atom_index; // eax
long long v6; // [rsp+18h] [rbp-70h]
long long v7; // [rsp+28h] [rbp-60h]
long long v8; // [rsp+40h] [rbp-48h]
long long v9; // [rsp+58h] [rbp-30h]
v7 = js_thisSymbolValue(a1, a2, a3);
v9 = v3;
if ( JS_IsException_1(v7, v3) )
return v7;
if ( (*(_DWORD *)(v7 + 4) & 0x7FFFFFFF) != 0 || (*(_QWORD *)(v7 + 4) & 0x80000000LL) == 0 )
{
atom_index = js_get_atom_index(*(_QWORD *)(a1 + 24), v7);
v8 = JS_AtomToString(a1, atom_index);
}
else
{
LODWORD(v6) = 0;
v8 = v6;
}
JS_FreeValue(a1, v7, v9);
return v8;
}
| js_symbol_get_description:
SUB RSP,0x88
MOV qword ptr [RSP + 0x68],RSI
MOV qword ptr [RSP + 0x70],RDX
MOV qword ptr [RSP + 0x60],RDI
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
CALL 0x001d9da0
MOV qword ptr [RSP + 0x28],RAX
MOV qword ptr [RSP + 0x30],RDX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x58],RAX
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x58]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x001d9cb8
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x78],RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x80],RAX
JMP 0x001d9d86
LAB_001d9cb8:
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RAX + 0x4]
AND RAX,0x7fffffff
CMP EAX,0x0
JNZ 0x001d9d16
MOV RAX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RAX + 0x4]
SHR RAX,0x1f
AND RAX,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x001d9d16
MOV dword ptr [RSP + 0x18],0x0
MOV qword ptr [RSP + 0x20],0x3
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x48],RAX
JMP 0x001d9d5b
LAB_001d9d16:
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP],RAX
MOV RAX,qword ptr [RSP + 0x60]
MOV RDI,qword ptr [RAX + 0x18]
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x00131320
MOV RDI,qword ptr [RSP]
MOV ESI,EAX
CALL 0x00129000
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x10],RDX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x48],RAX
LAB_001d9d5b:
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x58]
CALL 0x00123c90
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x78],RAX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x80],RAX
LAB_001d9d86:
MOV RAX,qword ptr [RSP + 0x78]
MOV RDX,qword ptr [RSP + 0x80]
ADD RSP,0x88
RET
|
int1 [16] js_symbol_get_description(long param_1,int8 param_2,int8 param_3)
{
int iVar1;
int4 uVar2;
int1 auVar5 [16];
uint uStack_6c;
long lVar3;
int8 uVar4;
auVar5 = js_thisSymbolValue(param_1,param_2,param_3);
uVar4 = auVar5._8_8_;
lVar3 = auVar5._0_8_;
iVar1 = JS_IsException(lVar3,uVar4);
if (iVar1 == 0) {
if (((*(ulong *)(lVar3 + 4) & 0x7fffffff) == 0) && ((*(ulong *)(lVar3 + 4) >> 0x1f & 1) != 0)) {
auVar5._8_8_ = 3;
auVar5._0_8_ = (ulong)uStack_6c << 0x20;
}
else {
uVar2 = js_get_atom_index(*(int8 *)(param_1 + 0x18),lVar3);
auVar5 = JS_AtomToString(param_1,uVar2);
}
JS_FreeValue(param_1,lVar3,uVar4);
}
return auVar5;
}
| |
49,739 | js_symbol_get_description | bluesky950520[P]quickjs/quickjs.c | static JSValue js_symbol_get_description(JSContext *ctx, JSValue this_val)
{
JSValue val, ret;
JSAtomStruct *p;
val = js_thisSymbolValue(ctx, this_val);
if (JS_IsException(val))
return val;
p = JS_VALUE_GET_PTR(val);
if (p->len == 0 && p->is_wide_char != 0) {
ret = JS_UNDEFINED;
} else {
ret = JS_AtomToString(ctx, js_get_atom_index(ctx->rt, p));
}
JS_FreeValue(ctx, val);
return ret;
} | O1 | c | js_symbol_get_description:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x7e762
movq %rdx, %rbx
movq %rax, (%rsp)
cmpl $0x6, %ebx
jne 0x7e6c5
movq %rax, %r15
jmp 0x7e750
movq (%rsp), %rax
movq 0x4(%rax), %rcx
movl %ecx, %edx
negl %edx
jno 0x7e6e0
movl $0x3, %r12d
xorl %r15d, %r15d
xorl %ecx, %ecx
jmp 0x7e73a
movq %rcx, %rdx
shrq $0x3e, %rdx
cmpl $0x2, %edx
jbe 0x7e6f1
movl 0xc(%rax), %esi
jmp 0x7e71a
movq 0x18(%r14), %rsi
shrq $0x20, %rcx
movl 0x50(%rsi), %edx
decl %edx
andl %ecx, %edx
shll $0x2, %edx
addq 0x60(%rsi), %rdx
movq 0x68(%rsi), %rcx
movl (%rdx), %esi
movq (%rcx,%rsi,8), %rdi
leaq 0xc(%rdi), %rdx
cmpq %rax, %rdi
jne 0x7e70b
movq %r14, %rdi
movl $0x1, %edx
callq 0x2075a
movq %rdx, %r12
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %rax, %rcx
movl %eax, %r15d
orq %rcx, %r15
movq (%rsp), %rsi
movq 0x18(%r14), %rdi
movq %rbx, %rdx
callq 0x1d8c6
movq %r12, %rbx
movq %r15, %rax
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| js_symbol_get_description:
push r15
push r14
push r12
push rbx
push rax
mov r14, rdi
call js_thisSymbolValue
mov rbx, rdx
mov [rsp+28h+var_28], rax
cmp ebx, 6
jnz short loc_7E6C5
mov r15, rax
jmp loc_7E750
loc_7E6C5:
mov rax, [rsp+28h+var_28]
mov rcx, [rax+4]
mov edx, ecx
neg edx
jno short loc_7E6E0
mov r12d, 3
xor r15d, r15d
xor ecx, ecx
jmp short loc_7E73A
loc_7E6E0:
mov rdx, rcx
shr rdx, 3Eh
cmp edx, 2
jbe short loc_7E6F1
mov esi, [rax+0Ch]
jmp short loc_7E71A
loc_7E6F1:
mov rsi, [r14+18h]
shr rcx, 20h
mov edx, [rsi+50h]
dec edx
and edx, ecx
shl edx, 2
add rdx, [rsi+60h]
mov rcx, [rsi+68h]
loc_7E70B:
mov esi, [rdx]
mov rdi, [rcx+rsi*8]
lea rdx, [rdi+0Ch]
cmp rdi, rax
jnz short loc_7E70B
loc_7E71A:
mov rdi, r14
mov edx, 1
call __JS_AtomToValue
mov r12, rdx
mov rcx, 0FFFFFFFF00000000h
and rcx, rax
mov r15d, eax
loc_7E73A:
or r15, rcx
mov rsi, [rsp+28h+var_28]
mov rdi, [r14+18h]
mov rdx, rbx
call JS_FreeValueRT
mov rbx, r12
loc_7E750:
mov rax, r15
mov rdx, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| long long js_symbol_get_description(long long a1)
{
long long v2; // rax
long long v3; // rdx
long long v4; // rbx
unsigned long long v5; // r15
unsigned long long v6; // rcx
long long v7; // r15
unsigned long long v8; // rcx
long long v9; // rsi
long long v10; // rsi
unsigned int *v11; // rdx
long long v12; // rcx
long long v13; // rdi
long long v14; // rax
_DWORD *v16; // [rsp+0h] [rbp-28h]
v2 = js_thisSymbolValue(a1);
v4 = v3;
v16 = (_DWORD *)v2;
if ( (_DWORD)v3 == 6 )
return v2;
v6 = *(_QWORD *)(v2 + 4);
if ( __OFSUB__(-(int)v6, 1) )
{
v7 = 0LL;
v8 = 0LL;
}
else
{
if ( (unsigned int)(v6 >> 62) <= 2 )
{
v10 = *(_QWORD *)(a1 + 24);
v11 = (unsigned int *)(*(_QWORD *)(v10 + 96) + 4 * (HIDWORD(v6) & (unsigned int)(*(_DWORD *)(v10 + 80) - 1)));
v12 = *(_QWORD *)(v10 + 104);
do
{
v9 = *v11;
v13 = *(_QWORD *)(v12 + 8 * v9);
v11 = (unsigned int *)(v13 + 12);
}
while ( v13 != v2 );
}
else
{
LODWORD(v9) = *(_DWORD *)(v2 + 12);
}
v14 = _JS_AtomToValue(a1, v9, 1);
v8 = v14 & 0xFFFFFFFF00000000LL;
v7 = (unsigned int)v14;
}
v5 = v8 | v7;
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v16, v4);
return v5;
}
| |||
49,740 | llama_vocab::impl::token_to_piece_for_cache[abi:cxx11](int, bool) const | monkey531[P]llama/src/llama-vocab.cpp | std::string llama_vocab::impl::token_to_piece_for_cache(llama_token token, bool special) const {
std::string piece;
piece.resize(piece.capacity()); // using string internal cache
const int n_chars = vocab.token_to_piece(token, &piece[0], piece.size(), 0, special);
if (n_chars < 0) {
piece.resize(-n_chars);
int check = vocab.token_to_piece(token, &piece[0], piece.size(), 0, special);
GGML_ASSERT(check == -n_chars);
}
else {
piece.resize(n_chars);
}
return piece;
} | O1 | cpp | llama_vocab::impl::token_to_piece_for_cache[abi:cxx11](int, bool) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r15d
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r13
movq %r13, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movl $0xf, %esi
xorl %edx, %edx
callq 0x65f20
movq 0x160(%r14), %rax
movq (%rbx), %rdx
movl 0x8(%rbx), %ecx
movq (%rax), %rdi
movzbl %r15b, %r15d
movl %ebp, %esi
xorl %r8d, %r8d
movl %r15d, %r9d
callq 0x69d60
movl %eax, %r12d
testl %eax, %eax
js 0xeb2ec
movl %r12d, %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x65f20
jmp 0xeb31e
negl %r12d
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x65f20
movq 0x160(%r14), %rax
movq (%rbx), %rdx
movl 0x8(%rbx), %ecx
movq (%rax), %rdi
movl %ebp, %esi
xorl %r8d, %r8d
movl %r15d, %r9d
callq 0x69d60
cmpl %r12d, %eax
jne 0xeb330
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x33861(%rip), %rdi # 0x11eb98
leaq 0x29086(%rip), %rdx # 0x1143c4
leaq 0x33d89(%rip), %rcx # 0x11f0ce
movl $0x8e5, %esi # imm = 0x8E5
xorl %eax, %eax
callq 0x6bfd0
jmp 0xeb355
jmp 0xeb355
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0xeb36c
movq (%r13), %rsi
incq %rsi
callq 0x69220
movq %r14, %rdi
callq 0x6c640
| _ZNK11llama_vocab4impl24token_to_piece_for_cacheB5cxx11Eib:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15d, ecx
mov ebp, edx
mov r14, rsi
mov rbx, rdi
lea r13, [rdi+10h]
mov [rdi], r13
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov esi, 0Fh
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char)
mov rax, [r14+160h]
mov rdx, [rbx]; char *
mov ecx, [rbx+8]; int
mov rdi, [rax]; this
movzx r15d, r15b
mov esi, ebp; int
xor r8d, r8d; int
mov r9d, r15d; bool
call __ZNK11llama_vocab4impl14token_to_pieceEiPciib; llama_vocab::impl::token_to_piece(int,char *,int,int,bool)
mov r12d, eax
test eax, eax
js short loc_EB2EC
mov esi, r12d
mov rdi, rbx
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char)
jmp short loc_EB31E
loc_EB2EC:
neg r12d
mov rdi, rbx
mov rsi, r12
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char)
mov rax, [r14+160h]
mov rdx, [rbx]; char *
mov ecx, [rbx+8]; int
mov rdi, [rax]; this
mov esi, ebp; int
xor r8d, r8d; int
mov r9d, r15d; bool
call __ZNK11llama_vocab4impl14token_to_pieceEiPciib; llama_vocab::impl::token_to_piece(int,char *,int,int,bool)
cmp eax, r12d
jnz short loc_EB330
loc_EB31E:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_EB330:
lea rdi, aWorkspaceLlm4b_13; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCheckNChars; "check == -n_chars"
mov esi, 8E5h
xor eax, eax
call _ggml_abort
jmp short loc_EB355
jmp short $+2
loc_EB355:
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, r13
jz short loc_EB36C
mov rsi, [r13+0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_EB36C:
mov rdi, r14
call __Unwind_Resume
| long long llama_vocab::impl::token_to_piece_for_cache[abi:cxx11](long long a1, long long a2, int a3, bool a4)
{
_QWORD *v6; // r13
int v7; // eax
long long v8; // r12
long long v10; // rax
long long v11; // r14
v6 = (_QWORD *)(a1 + 16);
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
std::string::resize(a1, 15LL, 0LL);
v7 = llama_vocab::impl::token_to_piece(
**(llama_vocab::impl ***)(a2 + 352),
a3,
*(char **)a1,
*(_DWORD *)(a1 + 8),
0,
a4);
if ( v7 < 0 )
{
v8 = (unsigned int)-v7;
std::string::resize(a1, v8, 0LL);
if ( (unsigned int)llama_vocab::impl::token_to_piece(
**(llama_vocab::impl ***)(a2 + 352),
a3,
*(char **)a1,
*(_DWORD *)(a1 + 8),
0,
a4) != (_DWORD)v8 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/src/llama-vocab.cpp",
2277LL,
"GGML_ASSERT(%s) failed",
"check == -n_chars");
v11 = v10;
if ( *(_QWORD **)a1 != v6 )
operator delete(*(void **)a1, *v6 + 1LL);
_Unwind_Resume(v11);
}
}
else
{
std::string::resize(a1, (unsigned int)v7, 0LL);
}
return a1;
}
| token_to_piece_for_cache[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R15D,ECX
MOV EBP,EDX
MOV R14,RSI
MOV RBX,RDI
LEA R13,[RDI + 0x10]
MOV qword ptr [RDI],R13
MOV qword ptr [RDI + 0x8],0x0
MOV byte ptr [RDI + 0x10],0x0
LAB_001eb2a9:
MOV ESI,0xf
XOR EDX,EDX
CALL 0x00165f20
MOV RAX,qword ptr [R14 + 0x160]
MOV RDX,qword ptr [RBX]
MOV ECX,dword ptr [RBX + 0x8]
MOV RDI,qword ptr [RAX]
LAB_001eb2c5:
MOVZX R15D,R15B
MOV ESI,EBP
XOR R8D,R8D
MOV R9D,R15D
CALL 0x00169d60
MOV R12D,EAX
TEST EAX,EAX
JS 0x001eb2ec
MOV ESI,R12D
MOV RDI,RBX
XOR EDX,EDX
CALL 0x00165f20
JMP 0x001eb31e
LAB_001eb2ec:
NEG R12D
MOV RDI,RBX
MOV RSI,R12
XOR EDX,EDX
CALL 0x00165f20
MOV RAX,qword ptr [R14 + 0x160]
MOV RDX,qword ptr [RBX]
MOV ECX,dword ptr [RBX + 0x8]
MOV RDI,qword ptr [RAX]
LAB_001eb30c:
MOV ESI,EBP
XOR R8D,R8D
MOV R9D,R15D
CALL 0x00169d60
CMP EAX,R12D
JNZ 0x001eb330
LAB_001eb31e:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001eb330:
LEA RDI,[0x21eb98]
LEA RDX,[0x2143c4]
LEA RCX,[0x21f0ce]
MOV ESI,0x8e5
XOR EAX,EAX
CALL 0x0016bfd0
|
/* llama_vocab::impl::token_to_piece_for_cache[abi:cxx11](int, bool) const */
long * llama_vocab::impl::token_to_piece_for_cache_abi_cxx11_(int param_1,bool param_2)
{
int iVar1;
int iVar2;
bool in_CL;
int in_EDX;
int7 in_register_00000031;
int4 in_register_0000003c;
long *plVar3;
plVar3 = (long *)CONCAT44(in_register_0000003c,param_1);
*plVar3 = (long)(plVar3 + 2);
plVar3[1] = 0;
*(int1 *)(plVar3 + 2) = 0;
/* try { // try from 001eb2a9 to 001eb2b4 has its CatchHandler @ 001eb353 */
std::__cxx11::string::resize((ulong)plVar3,'\x0f');
/* try { // try from 001eb2c5 to 001eb2fb has its CatchHandler @ 001eb355 */
iVar1 = token_to_piece((impl *)**(int8 **)(CONCAT71(in_register_00000031,param_2) + 0x160),
in_EDX,(char *)*plVar3,(int)plVar3[1],0,in_CL);
if (iVar1 < 0) {
std::__cxx11::string::resize((ulong)plVar3,(char)-iVar1);
/* try { // try from 001eb30c to 001eb350 has its CatchHandler @ 001eb351 */
iVar2 = token_to_piece((impl *)**(int8 **)(CONCAT71(in_register_00000031,param_2) + 0x160)
,in_EDX,(char *)*plVar3,(int)plVar3[1],0,in_CL);
if (iVar2 != -iVar1) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/src/llama-vocab.cpp",
0x8e5,"GGML_ASSERT(%s) failed","check == -n_chars");
}
}
else {
std::__cxx11::string::resize((ulong)plVar3,(char)iVar1);
}
return plVar3;
}
| |
49,741 | ma_stmt_execute_generate_request | eloqsql/libmariadb/libmariadb/mariadb_stmt.c | unsigned char* ma_stmt_execute_generate_request(MYSQL_STMT *stmt, size_t *request_len, my_bool internal)
{
unsigned char *buf;
if (stmt->request_buffer)
{
*request_len= stmt->request_length;
buf= stmt->request_buffer;
/* store actual stmt id */
int4store(buf, stmt->stmt_id);
/* clear buffer, memory will be freed in execute */
stmt->request_buffer= NULL;
stmt->request_length= 0;
return buf;
}
if (stmt->array_size > 0)
buf= ma_stmt_execute_generate_bulk_request(stmt, request_len);
else
buf= ma_stmt_execute_generate_simple_request(stmt, request_len);
if (internal)
{
if (stmt->request_buffer)
free(stmt->request_buffer);
stmt->request_buffer= buf;
stmt->request_length= *request_len;
}
return buf;
} | O0 | c | ma_stmt_execute_generate_request:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %dl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movb %al, -0x19(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x360(%rax)
je 0x4f00f
movq -0x10(%rbp), %rax
movq 0x398(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0x360(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movb %al, %cl
movq -0x28(%rbp), %rax
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x28(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
shrq $0x10, %rax
movb %al, %cl
movq -0x28(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
shrq $0x18, %rax
movb %al, %cl
movq -0x28(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x360(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x398(%rax)
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x4f08d
movq -0x10(%rbp), %rax
cmpl $0x0, 0x368(%rax)
jbe 0x4f02f
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x4e840
movq %rax, -0x28(%rbp)
jmp 0x4f040
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x4e170
movq %rax, -0x28(%rbp)
cmpb $0x0, -0x19(%rbp)
je 0x4f085
movq -0x10(%rbp), %rax
cmpq $0x0, 0x360(%rax)
je 0x4f064
movq -0x10(%rbp), %rax
movq 0x360(%rax), %rdi
callq 0x371c0
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x360(%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x398(%rax)
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| ma_stmt_execute_generate_request:
push rbp
mov rbp, rsp
sub rsp, 30h
mov al, dl
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_19], al
mov rax, [rbp+var_10]
cmp qword ptr [rax+360h], 0
jz loc_4F00F
mov rax, [rbp+var_10]
mov rcx, [rax+398h]
mov rax, [rbp+var_18]
mov [rax], rcx
mov rax, [rbp+var_10]
mov rax, [rax+360h]
mov [rbp+var_28], rax
mov rax, [rbp+var_10]
mov rax, [rax+40h]
mov cl, al
mov rax, [rbp+var_28]
mov [rax], cl
mov rax, [rbp+var_10]
mov rax, [rax+40h]
shr rax, 8
mov cl, al
mov rax, [rbp+var_28]
mov [rax+1], cl
mov rax, [rbp+var_10]
mov rax, [rax+40h]
shr rax, 10h
mov cl, al
mov rax, [rbp+var_28]
mov [rax+2], cl
mov rax, [rbp+var_10]
mov rax, [rax+40h]
shr rax, 18h
mov cl, al
mov rax, [rbp+var_28]
mov [rax+3], cl
mov rax, [rbp+var_10]
mov qword ptr [rax+360h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+398h], 0
mov rax, [rbp+var_28]
mov [rbp+var_8], rax
jmp short loc_4F08D
loc_4F00F:
mov rax, [rbp+var_10]
cmp dword ptr [rax+368h], 0
jbe short loc_4F02F
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call ma_stmt_execute_generate_bulk_request
mov [rbp+var_28], rax
jmp short loc_4F040
loc_4F02F:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call ma_stmt_execute_generate_simple_request
mov [rbp+var_28], rax
loc_4F040:
cmp [rbp+var_19], 0
jz short loc_4F085
mov rax, [rbp+var_10]
cmp qword ptr [rax+360h], 0
jz short loc_4F064
mov rax, [rbp+var_10]
mov rdi, [rax+360h]
call _free
loc_4F064:
mov rcx, [rbp+var_28]
mov rax, [rbp+var_10]
mov [rax+360h], rcx
mov rax, [rbp+var_18]
mov rcx, [rax]
mov rax, [rbp+var_10]
mov [rax+398h], rcx
loc_4F085:
mov rax, [rbp+var_28]
mov [rbp+var_8], rax
loc_4F08D:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
| char * ma_stmt_execute_generate_request(long long a1, _QWORD *a2, char a3)
{
long long v4; // [rsp+8h] [rbp-28h]
char *bulk_request; // [rsp+8h] [rbp-28h]
if ( *(_QWORD *)(a1 + 864) )
{
*a2 = *(_QWORD *)(a1 + 920);
v4 = *(_QWORD *)(a1 + 864);
*(_WORD *)v4 = *(_QWORD *)(a1 + 64);
*(_BYTE *)(v4 + 2) = BYTE2(*(_QWORD *)(a1 + 64));
*(_BYTE *)(v4 + 3) = BYTE3(*(_QWORD *)(a1 + 64));
*(_QWORD *)(a1 + 864) = 0LL;
*(_QWORD *)(a1 + 920) = 0LL;
return (char *)v4;
}
else
{
if ( *(_DWORD *)(a1 + 872) )
bulk_request = ma_stmt_execute_generate_bulk_request((_QWORD *)a1, a2);
else
bulk_request = ma_stmt_execute_generate_simple_request((_QWORD *)a1, a2);
if ( a3 )
{
if ( *(_QWORD *)(a1 + 864) )
free(*(_QWORD *)(a1 + 864));
*(_QWORD *)(a1 + 864) = bulk_request;
*(_QWORD *)(a1 + 920) = *a2;
}
return bulk_request;
}
}
| ma_stmt_execute_generate_request:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV AL,DL
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV byte ptr [RBP + -0x19],AL
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x360],0x0
JZ 0x0014f00f
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x398]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x360]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
SHR RAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x40]
SHR RAX,0x18
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x3],CL
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x360],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x398],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0014f08d
LAB_0014f00f:
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x368],0x0
JBE 0x0014f02f
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0014e840
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0014f040
LAB_0014f02f:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0014e170
MOV qword ptr [RBP + -0x28],RAX
LAB_0014f040:
CMP byte ptr [RBP + -0x19],0x0
JZ 0x0014f085
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x360],0x0
JZ 0x0014f064
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x360]
CALL 0x001371c0
LAB_0014f064:
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x360],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x398],RCX
LAB_0014f085:
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x8],RAX
LAB_0014f08d:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
int1 * ma_stmt_execute_generate_request(long param_1,int8 *param_2,char param_3)
{
int1 *local_30;
int1 *local_10;
if (*(long *)(param_1 + 0x360) == 0) {
if (*(int *)(param_1 + 0x368) == 0) {
local_30 = (int1 *)ma_stmt_execute_generate_simple_request(param_1,param_2);
}
else {
local_30 = (int1 *)ma_stmt_execute_generate_bulk_request(param_1,param_2);
}
if (param_3 != '\0') {
if (*(long *)(param_1 + 0x360) != 0) {
free(*(void **)(param_1 + 0x360));
}
*(int1 **)(param_1 + 0x360) = local_30;
*(int8 *)(param_1 + 0x398) = *param_2;
}
local_10 = local_30;
}
else {
*param_2 = *(int8 *)(param_1 + 0x398);
local_10 = *(int1 **)(param_1 + 0x360);
*local_10 = (char)*(int8 *)(param_1 + 0x40);
local_10[1] = (char)((ulong)*(int8 *)(param_1 + 0x40) >> 8);
local_10[2] = (char)((ulong)*(int8 *)(param_1 + 0x40) >> 0x10);
local_10[3] = (char)((ulong)*(int8 *)(param_1 + 0x40) >> 0x18);
*(int8 *)(param_1 + 0x360) = 0;
*(int8 *)(param_1 + 0x398) = 0;
}
return local_10;
}
| |
49,742 | propDefCB(LefDefParser::lefrCallbackType_e, LefDefParser::lefiProp*, void*) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lefrw/lefrw.cpp | int propDefCB(lefrCallbackType_e c, lefiProp* prop, lefiUserData) {
checkType(c);
// if ((long)ud != userData) dataError();
fprintf(fout, " %s %s", prop->lefiProp::propType(),
prop->lefiProp::propName());
switch(prop->lefiProp::dataType()) {
case 'I':
fprintf(fout, " INTEGER");
break;
case 'R':
fprintf(fout, " REAL");
break;
case 'S':
fprintf(fout, " STRING");
break;
}
if (prop->lefiProp::hasNumber())
fprintf(fout, " %g", prop->lefiProp::number());
if (prop->lefiProp::hasRange())
fprintf(fout, " RANGE %g %g", prop->lefiProp::left(),
prop->lefiProp::right());
if (prop->lefiProp::hasString())
fprintf(fout, " %s", prop->lefiProp::string());
fprintf(fout, "\n");
return 0;
} | O3 | cpp | propDefCB(LefDefParser::lefrCallbackType_e, LefDefParser::lefiProp*, void*):
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
cmpl $0x39, %edi
jb 0x8e46
movq 0x84290(%rip), %rcx # 0x8d0c0
leaq 0x4f364(%rip), %rdi # 0x5819b
movl $0x27, %esi
movl $0x1, %edx
callq 0x23d0
movq 0x84273(%rip), %r14 # 0x8d0c0
movq %rbx, %rdi
callq 0x39348
movq %rax, %r15
movq %rbx, %rdi
callq 0x39382
leaq 0x53b3a(%rip), %rsi # 0x5c9a1
movq %r14, %rdi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x22e0
movq %rbx, %rdi
callq 0x39388
cmpb $0x53, %al
je 0x8eba
movzbl %al, %eax
cmpl $0x52, %eax
je 0x8ea5
cmpl $0x49, %eax
jne 0x8ed7
movq 0x84229(%rip), %rcx # 0x8d0c0
leaq 0x5057b(%rip), %rdi # 0x59419
movl $0x8, %esi
jmp 0x8ecd
movq 0x84214(%rip), %rcx # 0x8d0c0
leaq 0x5056f(%rip), %rdi # 0x59422
movl $0x5, %esi
jmp 0x8ecd
movq 0x841ff(%rip), %rcx # 0x8d0c0
leaq 0x50560(%rip), %rdi # 0x59428
movl $0x7, %esi
movl $0x1, %edx
callq 0x23d0
movq %rbx, %rdi
callq 0x3934c
testl %eax, %eax
je 0x8f03
movq 0x841d6(%rip), %r14 # 0x8d0c0
movq %rbx, %rdi
callq 0x39358
leaq 0x4ff18(%rip), %rsi # 0x58e11
movq %r14, %rdi
movb $0x1, %al
callq 0x22e0
movq %rbx, %rdi
callq 0x39352
testl %eax, %eax
je 0x8f46
movq 0x841aa(%rip), %r14 # 0x8d0c0
movq %rbx, %rdi
callq 0x3935e
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x39364
movaps %xmm0, %xmm1
leaq 0x504fa(%rip), %rsi # 0x59430
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
movb $0x2, %al
callq 0x22e0
movq %rbx, %rdi
callq 0x3936a
testl %eax, %eax
je 0x8f75
movq 0x84167(%rip), %r14 # 0x8d0c0
movq %rbx, %rdi
callq 0x39342
leaq 0x5e5f2(%rip), %rsi # 0x6755a
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x22e0
movq 0x84144(%rip), %rsi # 0x8d0c0
movl $0xa, %edi
callq 0x2290
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
| _Z9propDefCBN12LefDefParser18lefrCallbackType_eEPNS_8lefiPropEPv:
push r15
push r14
push rbx
sub rsp, 10h
mov rbx, rsi
cmp edi, 39h ; '9'
jb short loc_8E46
mov rcx, cs:fout
lea rdi, aErrorCallbackT; "ERROR: callback type is out of bounds!"...
mov esi, 27h ; '''
mov edx, 1
call _fwrite
loc_8E46:
mov r14, cs:fout
mov rdi, rbx; this
call _ZNK12LefDefParser8lefiProp8propTypeEv; LefDefParser::lefiProp::propType(void)
mov r15, rax
mov rdi, rbx; this
call _ZNK12LefDefParser8lefiProp8propNameEv; LefDefParser::lefiProp::propName(void)
lea rsi, aSS_0+5; " %s %s"
mov rdi, r14
mov rdx, r15
mov rcx, rax
xor eax, eax
call _fprintf
mov rdi, rbx; this
call _ZNK12LefDefParser8lefiProp8dataTypeEv; LefDefParser::lefiProp::dataType(void)
cmp al, 53h ; 'S'
jz short loc_8EBA
movzx eax, al
cmp eax, 52h ; 'R'
jz short loc_8EA5
cmp eax, 49h ; 'I'
jnz short loc_8ED7
mov rcx, cs:fout
lea rdi, aInteger_0; " INTEGER"
mov esi, 8
jmp short loc_8ECD
loc_8EA5:
mov rcx, cs:fout
lea rdi, aReal_0; " REAL"
mov esi, 5
jmp short loc_8ECD
loc_8EBA:
mov rcx, cs:fout
lea rdi, aString_0; " STRING"
mov esi, 7
loc_8ECD:
mov edx, 1
call _fwrite
loc_8ED7:
mov rdi, rbx; this
call _ZNK12LefDefParser8lefiProp9hasNumberEv; LefDefParser::lefiProp::hasNumber(void)
test eax, eax
jz short loc_8F03
mov r14, cs:fout
mov rdi, rbx; this
call _ZNK12LefDefParser8lefiProp6numberEv; LefDefParser::lefiProp::number(void)
lea rsi, aG+5; " %g"
mov rdi, r14
mov al, 1
call _fprintf
loc_8F03:
mov rdi, rbx; this
call _ZNK12LefDefParser8lefiProp8hasRangeEv; LefDefParser::lefiProp::hasRange(void)
test eax, eax
jz short loc_8F46
mov r14, cs:fout
mov rdi, rbx; this
call _ZNK12LefDefParser8lefiProp4leftEv; LefDefParser::lefiProp::left(void)
movsd [rsp+28h+var_20], xmm0
mov rdi, rbx; this
call _ZNK12LefDefParser8lefiProp5rightEv; LefDefParser::lefiProp::right(void)
movaps xmm1, xmm0
lea rsi, aRangeGG_0; " RANGE %g %g"
mov rdi, r14
movsd xmm0, [rsp+28h+var_20]
mov al, 2
call _fprintf
loc_8F46:
mov rdi, rbx; this
call _ZNK12LefDefParser8lefiProp9hasStringEv; LefDefParser::lefiProp::hasString(void)
test eax, eax
jz short loc_8F75
mov r14, cs:fout
mov rdi, rbx; this
call _ZNK12LefDefParser8lefiProp6stringEv; LefDefParser::lefiProp::string(void)
lea rsi, aPadS+3; " %s"
mov rdi, r14
mov rdx, rax
xor eax, eax
call _fprintf
loc_8F75:
mov rsi, cs:fout
mov edi, 0Ah
call _fputc
xor eax, eax
add rsp, 10h
pop rbx
pop r14
pop r15
retn
| long long propDefCB(unsigned int a1, LefDefParser::lefiProp *a2, double a3)
{
LefDefParser *v4; // r14
const char *v5; // r15
const char *v6; // rax
char v7; // al
LefDefParser *v8; // rcx
const char *v9; // rdi
long long v10; // rsi
LefDefParser *v11; // r14
LefDefParser *v12; // r14
LefDefParser *v13; // r14
const char *v14; // rax
if ( a1 >= 0x39 )
fwrite("ERROR: callback type is out of bounds!\n", 39LL, 1LL, fout);
v4 = fout;
v5 = (const char *)LefDefParser::lefiProp::propType(a2);
v6 = (const char *)LefDefParser::lefiProp::propName(a2);
fprintf(v4, " %s %s", v5, v6);
v7 = LefDefParser::lefiProp::dataType(a2);
switch ( v7 )
{
case 'S':
v8 = fout;
v9 = " STRING";
v10 = 7LL;
break;
case 'R':
v8 = fout;
v9 = " REAL";
v10 = 5LL;
break;
case 'I':
v8 = fout;
v9 = " INTEGER";
v10 = 8LL;
break;
default:
goto LABEL_10;
}
fwrite(v9, v10, 1LL, v8);
LABEL_10:
if ( (unsigned int)LefDefParser::lefiProp::hasNumber(a2) )
{
v11 = fout;
LefDefParser::lefiProp::number(a2);
fprintf(v11, " %g", a3);
}
if ( (unsigned int)LefDefParser::lefiProp::hasRange(a2) )
{
v12 = fout;
LefDefParser::lefiProp::left(a2);
LefDefParser::lefiProp::right(a2);
fprintf(v12, " RANGE %g %g", a3, a3);
}
if ( (unsigned int)LefDefParser::lefiProp::hasString(a2) )
{
v13 = fout;
v14 = (const char *)LefDefParser::lefiProp::string(a2);
fprintf(v13, " %s", v14);
}
fputc(10LL, fout);
return 0LL;
}
| propDefCB:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV RBX,RSI
CMP EDI,0x39
JC 0x00108e46
MOV RCX,qword ptr [0x0018d0c0]
LEA RDI,[0x15819b]
MOV ESI,0x27
MOV EDX,0x1
CALL 0x001023d0
LAB_00108e46:
MOV R14,qword ptr [0x0018d0c0]
MOV RDI,RBX
CALL 0x00139348
MOV R15,RAX
MOV RDI,RBX
CALL 0x00139382
LEA RSI,[0x15c9a1]
MOV RDI,R14
MOV RDX,R15
MOV RCX,RAX
XOR EAX,EAX
CALL 0x001022e0
MOV RDI,RBX
CALL 0x00139388
CMP AL,0x53
JZ 0x00108eba
MOVZX EAX,AL
CMP EAX,0x52
JZ 0x00108ea5
CMP EAX,0x49
JNZ 0x00108ed7
MOV RCX,qword ptr [0x0018d0c0]
LEA RDI,[0x159419]
MOV ESI,0x8
JMP 0x00108ecd
LAB_00108ea5:
MOV RCX,qword ptr [0x0018d0c0]
LEA RDI,[0x159422]
MOV ESI,0x5
JMP 0x00108ecd
LAB_00108eba:
MOV RCX,qword ptr [0x0018d0c0]
LEA RDI,[0x159428]
MOV ESI,0x7
LAB_00108ecd:
MOV EDX,0x1
CALL 0x001023d0
LAB_00108ed7:
MOV RDI,RBX
CALL 0x0013934c
TEST EAX,EAX
JZ 0x00108f03
MOV R14,qword ptr [0x0018d0c0]
MOV RDI,RBX
CALL 0x00139358
LEA RSI,[0x158e11]
MOV RDI,R14
MOV AL,0x1
CALL 0x001022e0
LAB_00108f03:
MOV RDI,RBX
CALL 0x00139352
TEST EAX,EAX
JZ 0x00108f46
MOV R14,qword ptr [0x0018d0c0]
MOV RDI,RBX
CALL 0x0013935e
MOVSD qword ptr [RSP + 0x8],XMM0
MOV RDI,RBX
CALL 0x00139364
MOVAPS XMM1,XMM0
LEA RSI,[0x159430]
MOV RDI,R14
MOVSD XMM0,qword ptr [RSP + 0x8]
MOV AL,0x2
CALL 0x001022e0
LAB_00108f46:
MOV RDI,RBX
CALL 0x0013936a
TEST EAX,EAX
JZ 0x00108f75
MOV R14,qword ptr [0x0018d0c0]
MOV RDI,RBX
CALL 0x00139342
LEA RSI,[0x16755a]
MOV RDI,R14
MOV RDX,RAX
XOR EAX,EAX
CALL 0x001022e0
LAB_00108f75:
MOV RSI,qword ptr [0x0018d0c0]
MOV EDI,0xa
CALL 0x00102290
XOR EAX,EAX
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
/* propDefCB(LefDefParser::lefrCallbackType_e, LefDefParser::lefiProp*, void*) */
int8 propDefCB(uint param_1,lefiProp *param_2)
{
FILE *pFVar1;
char cVar2;
int iVar3;
int8 uVar4;
int8 uVar5;
size_t __size;
char *__ptr;
int4 uVar6;
if (0x38 < param_1) {
fwrite("ERROR: callback type is out of bounds!\n",0x27,1,fout);
}
pFVar1 = fout;
uVar4 = LefDefParser::lefiProp::propType(param_2);
uVar5 = LefDefParser::lefiProp::propName(param_2);
fprintf(pFVar1," %s %s",uVar4,uVar5);
cVar2 = LefDefParser::lefiProp::dataType(param_2);
if (cVar2 == 'S') {
__ptr = " STRING";
__size = 7;
}
else if (cVar2 == 'R') {
__ptr = " REAL";
__size = 5;
}
else {
if (cVar2 != 'I') goto LAB_00108ed7;
__ptr = " INTEGER";
__size = 8;
}
fwrite(__ptr,__size,1,fout);
LAB_00108ed7:
iVar3 = LefDefParser::lefiProp::hasNumber(param_2);
pFVar1 = fout;
if (iVar3 != 0) {
LefDefParser::lefiProp::number(param_2);
fprintf(pFVar1," %g");
}
iVar3 = LefDefParser::lefiProp::hasRange(param_2);
pFVar1 = fout;
if (iVar3 != 0) {
uVar4 = LefDefParser::lefiProp::left(param_2);
uVar6 = LefDefParser::lefiProp::right(param_2);
fprintf(pFVar1," RANGE %g %g",uVar4,uVar6);
}
iVar3 = LefDefParser::lefiProp::hasString(param_2);
pFVar1 = fout;
if (iVar3 != 0) {
uVar4 = LefDefParser::lefiProp::string(param_2);
fprintf(pFVar1," %s",uVar4);
}
fputc(10,fout);
return 0;
}
| |
49,743 | register_thread_class(char const*, unsigned int, int) | eloqsql/storage/perfschema/pfs_instr_class.cc | PFS_thread_key register_thread_class(const char *name, uint name_length,
int flags)
{
/* See comments in register_mutex_class */
uint32 index;
PFS_thread_class *entry;
for (index= 0; index < thread_class_max; index++)
{
entry= &thread_class_array[index];
if ((entry->m_name_length == name_length) &&
(strncmp(entry->m_name, name, name_length) == 0))
return (index + 1);
}
index= PFS_atomic::add_u32(&thread_class_dirty_count, 1);
if (index < thread_class_max)
{
entry= &thread_class_array[index];
assert(name_length <= PFS_MAX_INFO_NAME_LENGTH);
strncpy(entry->m_name, name, name_length);
entry->m_name_length= name_length;
entry->m_enabled= true;
PFS_atomic::add_u32(&thread_class_allocated_count, 1);
return (index + 1);
}
if (pfs_enabled)
thread_class_lost++;
return 0;
} | O3 | cpp | register_thread_class(char const*, unsigned int, int):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, -0x30(%rbp)
movq 0x397727(%rip), %r13 # 0x3cd0b0
movl %esi, %r15d
testq %r13, %r13
je 0x359d4
movq 0x397fb0(%rip), %r14 # 0x3cd948
movl $0x1, %r12d
xorl %eax, %eax
leaq (%rax,%rax,2), %rdi
shlq $0x6, %rdi
cmpl %ebx, 0x90(%r14,%rdi)
jne 0x359c9
addq %r14, %rdi
addq $0x10, %rdi
movq -0x30(%rbp), %rsi
movq %r15, %rdx
callq 0x26170
testl %eax, %eax
je 0x35a40
movl %r12d, %eax
incl %r12d
cmpq %rax, %r13
ja 0x359a0
movl $0x1, %r14d
lock
xaddl %r14d, 0x397f61(%rip) # 0x3cd944
cmpq %r14, 0x3976c6(%rip) # 0x3cd0b0
jbe 0x35a2d
movq 0x397f55(%rip), %rax # 0x3cd948
leaq (%r14,%r14,2), %rcx
shlq $0x6, %rcx
leaq (%rax,%rcx), %r12
addq $0x10, %r12
movq %r12, %rdi
movq -0x30(%rbp), %rsi
movq %r15, %rdx
callq 0x261a0
movl %ebx, 0x80(%r12)
movb $0x1, -0x10(%r12)
lock
incl 0x397f19(%rip) # 0x3cd940
leal 0x1(%r14), %r12d
jmp 0x35a40
xorl %r12d, %r12d
cmpb $0x0, 0x2e15e9(%rip) # 0x317020
je 0x35a40
incq 0x397678(%rip) # 0x3cd0b8
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _Z21register_thread_classPKcji:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov ebx, esi
mov [rbp+var_30], rdi
mov r13, cs:thread_class_max
mov r15d, esi
test r13, r13
jz short loc_359D4
mov r14, cs:_ZL18thread_class_array; thread_class_array
mov r12d, 1
xor eax, eax
loc_359A0:
lea rdi, [rax+rax*2]
shl rdi, 6
cmp [r14+rdi+90h], ebx
jnz short loc_359C9
add rdi, r14
add rdi, 10h
mov rsi, [rbp+var_30]
mov rdx, r15
call _strncmp
test eax, eax
jz short loc_35A40
loc_359C9:
mov eax, r12d
inc r12d
cmp r13, rax
ja short loc_359A0
loc_359D4:
mov r14d, 1
lock xadd cs:_ZL24thread_class_dirty_count, r14d; thread_class_dirty_count
cmp cs:thread_class_max, r14
jbe short loc_35A2D
mov rax, cs:_ZL18thread_class_array; thread_class_array
lea rcx, [r14+r14*2]
shl rcx, 6
lea r12, [rax+rcx]
add r12, 10h
mov rdi, r12
mov rsi, [rbp+var_30]
mov rdx, r15
call _strncpy
mov [r12+80h], ebx
mov byte ptr [r12-10h], 1
lock inc cs:_ZL28thread_class_allocated_count; thread_class_allocated_count
lea r12d, [r14+1]
jmp short loc_35A40
loc_35A2D:
xor r12d, r12d
cmp cs:pfs_enabled, 0
jz short loc_35A40
inc cs:thread_class_lost
loc_35A40:
mov eax, r12d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long register_thread_class(const char *a1, unsigned int a2)
{
unsigned long long v2; // r13
long long v3; // r14
unsigned int v4; // r12d
unsigned long long v5; // rax
unsigned long long v6; // r14
long long v7; // r12
v2 = thread_class_max;
if ( thread_class_max )
{
v3 = thread_class_array;
v4 = 1;
v5 = 0LL;
while ( *(_DWORD *)(v3 + 192 * v5 + 144) != a2 || (unsigned int)strncmp(v3 + 192 * v5 + 16, a1, a2) )
{
v5 = v4++;
if ( v2 <= v5 )
goto LABEL_6;
}
}
else
{
LABEL_6:
v6 = (unsigned int)_InterlockedExchangeAdd(&thread_class_dirty_count, 1u);
if ( thread_class_max <= v6 )
{
v4 = 0;
if ( pfs_enabled )
++thread_class_lost;
}
else
{
v7 = thread_class_array + 192 * v6 + 16;
strncpy(v7, a1, a2);
*(_DWORD *)(v7 + 128) = a2;
*(_BYTE *)(v7 - 16) = 1;
_InterlockedIncrement(&thread_class_allocated_count);
return (unsigned int)(v6 + 1);
}
}
return v4;
}
| register_thread_class:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV EBX,ESI
MOV qword ptr [RBP + -0x30],RDI
MOV R13,qword ptr [0x004cd0b0]
MOV R15D,ESI
TEST R13,R13
JZ 0x001359d4
MOV R14,qword ptr [0x004cd948]
MOV R12D,0x1
XOR EAX,EAX
LAB_001359a0:
LEA RDI,[RAX + RAX*0x2]
SHL RDI,0x6
CMP dword ptr [R14 + RDI*0x1 + 0x90],EBX
JNZ 0x001359c9
ADD RDI,R14
ADD RDI,0x10
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,R15
CALL 0x00126170
TEST EAX,EAX
JZ 0x00135a40
LAB_001359c9:
MOV EAX,R12D
INC R12D
CMP R13,RAX
JA 0x001359a0
LAB_001359d4:
MOV R14D,0x1
XADD.LOCK dword ptr [0x004cd944],R14D
CMP qword ptr [0x004cd0b0],R14
JBE 0x00135a2d
MOV RAX,qword ptr [0x004cd948]
LEA RCX,[R14 + R14*0x2]
SHL RCX,0x6
LEA R12,[RAX + RCX*0x1]
ADD R12,0x10
MOV RDI,R12
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,R15
CALL 0x001261a0
MOV dword ptr [R12 + 0x80],EBX
MOV byte ptr [R12 + -0x10],0x1
INC.LOCK dword ptr [0x004cd940]
LEA R12D,[R14 + 0x1]
JMP 0x00135a40
LAB_00135a2d:
XOR R12D,R12D
CMP byte ptr [0x00417020],0x0
JZ 0x00135a40
INC qword ptr [0x004cd0b8]
LAB_00135a40:
MOV EAX,R12D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* register_thread_class(char const*, unsigned int, int) */
ulong register_thread_class(char *param_1,uint param_2,int param_3)
{
int1 *puVar1;
bool bVar2;
uint uVar3;
long lVar4;
int iVar5;
ulong uVar6;
ulong uVar7;
ulong uVar8;
lVar4 = thread_class_array;
uVar8 = thread_class_max;
if (thread_class_max != 0) {
uVar6 = 0;
uVar7 = 1;
do {
if ((*(uint *)(lVar4 + 0x90 + uVar6 * 0xc0) == param_2) &&
(iVar5 = strncmp((char *)(uVar6 * 0xc0 + lVar4 + 0x10),param_1,(ulong)param_2), iVar5 == 0)
) {
return uVar7;
}
bVar2 = uVar7 < uVar8;
uVar6 = uVar7;
uVar7 = (ulong)((int)uVar7 + 1);
} while (bVar2);
}
uVar3 = thread_class_dirty_count;
LOCK();
iVar5 = thread_class_dirty_count + 1;
UNLOCK();
if (thread_class_dirty_count < thread_class_max) {
puVar1 = (int1 *)(thread_class_array + (ulong)thread_class_dirty_count * 0xc0);
thread_class_dirty_count = iVar5;
strncpy(puVar1 + 0x10,param_1,(ulong)param_2);
*(uint *)(puVar1 + 0x90) = param_2;
*puVar1 = 1;
LOCK();
thread_class_allocated_count = thread_class_allocated_count + 1;
UNLOCK();
uVar8 = (ulong)(uVar3 + 1);
}
else {
uVar8 = 0;
thread_class_dirty_count = iVar5;
if (pfs_enabled != '\0') {
thread_class_lost = thread_class_lost + 1;
}
}
return uVar8;
}
| |
49,744 | my_mb_wc_filename | eloqsql/strings/ctype-utf8.c | static int
my_mb_wc_filename(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s, const uchar *e)
{
int byte1, byte2;
if (s >= e)
return MY_CS_TOOSMALL;
if (*s < 128 && filename_safe_char[*s])
{
*pwc= *s;
return 1;
}
if (*s != MY_FILENAME_ESCAPE)
return MY_CS_ILSEQ;
if (s + 3 > e)
return MY_CS_TOOSMALL3;
byte1= s[1];
if (byte1 == 0)
return MY_CS_ILSEQ; /* avoid possible out-of-bounds read */
byte2= s[2];
if (byte1 >= 0x30 && byte1 <= 0x7F &&
byte2 >= 0x30 && byte2 <= 0x7F)
{
int code= (byte1 - 0x30) * 80 + byte2 - 0x30;
if (code < 5994 && touni[code])
{
*pwc= touni[code];
return 3;
}
if (byte1 == '@' && byte2 == '@')
{
*pwc= 0;
return 3;
}
}
if (s + 4 > e)
return MY_CS_TOOSMALL4;
if ((byte1= hexlo(byte1)) >= 0 &&
(byte2= hexlo(byte2)) >= 0)
{
int byte3= hexlo(s[3]);
int byte4= hexlo(s[3] ? s[4] : 0);
if (byte3 >=0 && byte4 >=0)
{
*pwc= (byte1 << 12) + (byte2 << 8) + (byte3 << 4) + byte4;
return 5;
}
}
return MY_CS_ILSEQ;
} | O3 | c | my_mb_wc_filename:
pushq %rbp
movq %rsp, %rbp
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x8a096
movsbq (%rdx), %r8
testq %r8, %r8
js 0x8a094
leaq 0x286732(%rip), %rdi # 0x3106d0
movl $0x1, %eax
cmpb $0x0, (%r8,%rdi)
je 0x89fb2
movq %r8, (%rsi)
jmp 0x8a096
cmpb $0x40, %r8b
jne 0x8a094
leaq 0x3(%rdx), %rdi
movl $0xffffff99, %eax # imm = 0xFFFFFF99
cmpq %rcx, %rdi
ja 0x8a096
movzbl 0x1(%rdx), %r10d
testl %r10d, %r10d
je 0x8a094
movb 0x2(%rdx), %al
movzbl %al, %r9d
cmpb $0x30, %r10b
setge %al
cmpb $0x30, %r9b
setge %r8b
andb %al, %r8b
cmpb $0x1, %r8b
jne 0x8a04d
leal (%r10,%r10,4), %eax
shll $0x4, %eax
addl %r9d, %eax
addl $0xfffff100, %eax # imm = 0xFFFFF100
cmpl $0x1799, %eax # imm = 0x1799
jg 0x8a02f
addl $-0x30, %eax
leaq 0x286735(%rip), %r8 # 0x310750
movzwl (%r8,%rax,2), %r8d
testq %r8, %r8
je 0x8a02f
movl $0x3, %eax
jmp 0x89faa
movl %r10d, %eax
xorb $0x40, %al
movl %r9d, %r8d
xorb $0x40, %r8b
orb %al, %r8b
jne 0x8a04d
movl $0x3, %eax
xorl %r8d, %r8d
jmp 0x89faa
addq $0x4, %rdx
movl $0xffffff98, %eax # imm = 0xFFFFFF98
cmpq %rcx, %rdx
ja 0x8a096
movl %r10d, %eax
leaq 0x2895cb(%rip), %r10 # 0x313630
movzbl (%rax,%r10), %ecx
testb %cl, %cl
js 0x8a094
movl %r9d, %eax
movzbl (%rax,%r10), %r9d
movl $0x0, %eax
testb %r9b, %r9b
js 0x8a096
movzbl (%rdi), %edi
xorl %eax, %eax
movzbl (%rdi,%r10), %r8d
testq %rdi, %rdi
je 0x8a098
movzbl (%rdx), %edx
jmp 0x8a09a
xorl %eax, %eax
popq %rbp
retq
xorl %edx, %edx
testb %r8b, %r8b
js 0x8a096
movb (%rdx,%r10), %dl
testb %dl, %dl
js 0x8a096
movzbl %dl, %eax
shll $0xc, %ecx
shll $0x8, %r9d
shll $0x4, %r8d
addq %rcx, %r8
addq %r9, %r8
addq %rax, %r8
movl $0x5, %eax
jmp 0x89faa
| my_mb_wc_filename:
push rbp
mov rbp, rsp
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb loc_8A096
movsx r8, byte ptr [rdx]
test r8, r8
js loc_8A094
lea rdi, filename_safe_char
mov eax, 1
cmp byte ptr [r8+rdi], 0
jz short loc_89FB2
loc_89FAA:
mov [rsi], r8
jmp loc_8A096
loc_89FB2:
cmp r8b, 40h ; '@'
jnz loc_8A094
lea rdi, [rdx+3]
mov eax, 0FFFFFF99h
cmp rdi, rcx
ja loc_8A096
movzx r10d, byte ptr [rdx+1]
test r10d, r10d
jz loc_8A094
mov al, [rdx+2]
movzx r9d, al
cmp r10b, 30h ; '0'
setnl al
cmp r9b, 30h ; '0'
setnl r8b
and r8b, al
cmp r8b, 1
jnz short loc_8A04D
lea eax, [r10+r10*4]
shl eax, 4
add eax, r9d
add eax, 0FFFFF100h
cmp eax, 1799h
jg short loc_8A02F
add eax, 0FFFFFFD0h
lea r8, touni
movzx r8d, word ptr [r8+rax*2]
test r8, r8
jz short loc_8A02F
mov eax, 3
jmp loc_89FAA
loc_8A02F:
mov eax, r10d
xor al, 40h
mov r8d, r9d
xor r8b, 40h
or r8b, al
jnz short loc_8A04D
mov eax, 3
xor r8d, r8d
jmp loc_89FAA
loc_8A04D:
add rdx, 4
mov eax, 0FFFFFF98h
cmp rdx, rcx
ja short loc_8A096
mov eax, r10d
lea r10, hexlo_hex_lo_digit
movzx ecx, byte ptr [rax+r10]
test cl, cl
js short loc_8A094
mov eax, r9d
movzx r9d, byte ptr [rax+r10]
mov eax, 0
test r9b, r9b
js short loc_8A096
movzx edi, byte ptr [rdi]
xor eax, eax
movzx r8d, byte ptr [rdi+r10]
test rdi, rdi
jz short loc_8A098
movzx edx, byte ptr [rdx]
jmp short loc_8A09A
loc_8A094:
xor eax, eax
loc_8A096:
pop rbp
retn
loc_8A098:
xor edx, edx
loc_8A09A:
test r8b, r8b
js short loc_8A096
mov dl, [rdx+r10]
test dl, dl
js short loc_8A096
movzx eax, dl
shl ecx, 0Ch
shl r9d, 8
shl r8d, 4
add r8, rcx
add r8, r9
add r8, rax
mov eax, 5
jmp loc_89FAA
| long long my_mb_wc_filename(long long a1, signed long long *a2, char *a3, unsigned long long a4)
{
long long result; // rax
signed long long v5; // r8
unsigned __int8 *v6; // rdi
int v7; // r10d
int v8; // r9d
long long v9; // rax
unsigned __int8 *v10; // rdx
int v11; // ecx
int v12; // r9d
long long v13; // rdi
int v14; // r8d
long long v15; // rdx
char v16; // dl
result = 4294967195LL;
if ( (unsigned long long)a3 >= a4 )
return result;
v5 = *a3;
if ( v5 < 0 )
return 0LL;
result = 1LL;
if ( filename_safe_char[v5] )
{
LABEL_4:
*a2 = v5;
return result;
}
if ( (_BYTE)v5 != 64 )
return 0LL;
v6 = (unsigned __int8 *)(a3 + 3);
result = 4294967193LL;
if ( (unsigned long long)(a3 + 3) > a4 )
return result;
v7 = (unsigned __int8)a3[1];
if ( !a3[1] )
return 0LL;
v8 = (unsigned __int8)a3[2];
if ( (char)v7 >= 48 && (char)v8 >= 48 )
{
if ( v8 + 80 * v7 - 3840 <= 6041 )
{
v9 = (unsigned int)(v8 + 80 * v7 - 3888);
v5 = touni[v9];
if ( touni[v9] )
{
result = 3LL;
goto LABEL_4;
}
}
if ( !((unsigned __int8)v7 ^ 0x40 | (unsigned __int8)v8 ^ 0x40) )
{
result = 3LL;
v5 = 0LL;
goto LABEL_4;
}
}
v10 = (unsigned __int8 *)(a3 + 4);
result = 4294967192LL;
if ( (unsigned long long)v10 <= a4 )
{
v11 = hexlo_hex_lo_digit[v7];
if ( (v11 & 0x80u) == 0 )
{
v12 = hexlo_hex_lo_digit[v8];
result = 0LL;
if ( (v12 & 0x80u) == 0 )
{
v13 = *v6;
result = 0LL;
v14 = hexlo_hex_lo_digit[v13];
v15 = v13 ? *v10 : 0LL;
if ( (v14 & 0x80u) == 0 )
{
v16 = hexlo_hex_lo_digit[v15];
if ( v16 >= 0 )
{
v5 = (unsigned __int8)v16
+ (unsigned int)(v12 << 8)
+ (unsigned int)(v11 << 12)
+ (unsigned long long)(unsigned int)(16 * v14);
result = 5LL;
goto LABEL_4;
}
}
}
return result;
}
return 0LL;
}
return result;
}
| my_mb_wc_filename:
PUSH RBP
MOV RBP,RSP
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x0018a096
MOVSX R8,byte ptr [RDX]
TEST R8,R8
JS 0x0018a094
LEA RDI,[0x4106d0]
MOV EAX,0x1
CMP byte ptr [R8 + RDI*0x1],0x0
JZ 0x00189fb2
LAB_00189faa:
MOV qword ptr [RSI],R8
JMP 0x0018a096
LAB_00189fb2:
CMP R8B,0x40
JNZ 0x0018a094
LEA RDI,[RDX + 0x3]
MOV EAX,0xffffff99
CMP RDI,RCX
JA 0x0018a096
MOVZX R10D,byte ptr [RDX + 0x1]
TEST R10D,R10D
JZ 0x0018a094
MOV AL,byte ptr [RDX + 0x2]
MOVZX R9D,AL
CMP R10B,0x30
SETGE AL
CMP R9B,0x30
SETGE R8B
AND R8B,AL
CMP R8B,0x1
JNZ 0x0018a04d
LEA EAX,[R10 + R10*0x4]
SHL EAX,0x4
ADD EAX,R9D
ADD EAX,0xfffff100
CMP EAX,0x1799
JG 0x0018a02f
ADD EAX,-0x30
LEA R8,[0x410750]
MOVZX R8D,word ptr [R8 + RAX*0x2]
TEST R8,R8
JZ 0x0018a02f
MOV EAX,0x3
JMP 0x00189faa
LAB_0018a02f:
MOV EAX,R10D
XOR AL,0x40
MOV R8D,R9D
XOR R8B,0x40
OR R8B,AL
JNZ 0x0018a04d
MOV EAX,0x3
XOR R8D,R8D
JMP 0x00189faa
LAB_0018a04d:
ADD RDX,0x4
MOV EAX,0xffffff98
CMP RDX,RCX
JA 0x0018a096
MOV EAX,R10D
LEA R10,[0x413630]
MOVZX ECX,byte ptr [RAX + R10*0x1]
TEST CL,CL
JS 0x0018a094
MOV EAX,R9D
MOVZX R9D,byte ptr [RAX + R10*0x1]
MOV EAX,0x0
TEST R9B,R9B
JS 0x0018a096
MOVZX EDI,byte ptr [RDI]
XOR EAX,EAX
MOVZX R8D,byte ptr [RDI + R10*0x1]
TEST RDI,RDI
JZ 0x0018a098
MOVZX EDX,byte ptr [RDX]
JMP 0x0018a09a
LAB_0018a094:
XOR EAX,EAX
LAB_0018a096:
POP RBP
RET
LAB_0018a098:
XOR EDX,EDX
LAB_0018a09a:
TEST R8B,R8B
JS 0x0018a096
MOV DL,byte ptr [RDX + R10*0x1]
TEST DL,DL
JS 0x0018a096
MOVZX EAX,DL
SHL ECX,0xc
SHL R9D,0x8
SHL R8D,0x4
ADD R8,RCX
ADD R8,R9
ADD R8,RAX
MOV EAX,0x5
JMP 0x00189faa
|
int8 my_mb_wc_filename(int8 param_1,ulong *param_2,byte *param_3,byte *param_4)
{
byte bVar1;
byte bVar2;
int iVar3;
int8 uVar4;
ulong uVar5;
ulong uVar6;
if (param_4 <= param_3) {
return 0xffffff9b;
}
uVar6 = (ulong)(char)*param_3;
if ((long)uVar6 < 0) {
return 0;
}
uVar4 = 1;
if (filename_safe_char[uVar6] != '\0') goto LAB_00189faa;
if (*param_3 == 0x40) {
if (param_4 < param_3 + 3) {
return 0xffffff99;
}
bVar2 = param_3[1];
if (bVar2 == 0) {
return 0;
}
bVar1 = param_3[2];
if ('/' < (char)bVar1 && '/' < (char)bVar2) {
iVar3 = ((uint)bVar2 + (uint)bVar2 * 4) * 0x10 + (uint)bVar1;
if ((iVar3 + -0xf00 < 0x179a) &&
(uVar6 = (ulong)*(ushort *)(touni + (ulong)(iVar3 - 0xf30) * 2), uVar6 != 0)) {
uVar4 = 3;
goto LAB_00189faa;
}
if (bVar1 == 0x40 && bVar2 == 0x40) {
uVar4 = 3;
uVar6 = 0;
goto LAB_00189faa;
}
}
if (param_4 < param_3 + 4) {
return 0xffffff98;
}
if (-1 < (char)hexlo_hex_lo_digit[bVar2]) {
if ((char)hexlo_hex_lo_digit[bVar1] < '\0') {
return 0;
}
uVar6 = (ulong)param_3[3];
if (uVar6 == 0) {
uVar5 = 0;
}
else {
uVar5 = (ulong)param_3[4];
}
if ((char)hexlo_hex_lo_digit[uVar6] < '\0') {
return 0;
}
if ((char)hexlo_hex_lo_digit[uVar5] < '\0') {
return 0;
}
uVar6 = (ulong)(byte)hexlo_hex_lo_digit[uVar6] * 0x10 +
(ulong)(byte)hexlo_hex_lo_digit[bVar2] * 0x1000 +
(ulong)(byte)hexlo_hex_lo_digit[bVar1] * 0x100 +
(ulong)(byte)hexlo_hex_lo_digit[uVar5];
uVar4 = 5;
LAB_00189faa:
*param_2 = uVar6;
return uVar4;
}
}
return 0;
}
| |
49,745 | dirname(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | ami-iit[P]serial_cpp/src/impl/list_ports/list_ports_linux.cc | string
dirname(const string& path)
{
size_t pos = path.rfind("/");
if(pos == std::string::npos)
return path;
else if(pos == 0)
return "/";
return string(path, 0, pos);
} | O0 | cpp | dirname(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x40(%rbp)
movq %rdi, %rax
movq %rax, -0x38(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x2a86(%rip), %rsi # 0x109cc
movq $-0x1, %rdx
callq 0x35a0
movq %rax, -0x18(%rbp)
cmpq $-0x1, -0x18(%rbp)
jne 0xdf6c
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x3160
jmp 0xdfcf
cmpq $0x0, -0x18(%rbp)
jne 0xdfb8
leaq -0x19(%rbp), %rdi
movq %rdi, -0x48(%rbp)
callq 0x35e0
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rdx
leaq 0x2a3d(%rip), %rsi # 0x109cc
callq 0x4680
jmp 0xdf96
leaq -0x19(%rbp), %rdi
callq 0x3380
jmp 0xdfcf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x19(%rbp), %rdi
callq 0x3380
jmp 0xdfd9
jmp 0xdfba
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rcx
xorl %eax, %eax
movl %eax, %edx
callq 0x34a0
movq -0x38(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0x35d0
nopw %cs:(%rax,%rax)
| _ZL7dirnameRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_40], rdi
mov rax, rdi
mov [rbp+var_38], rax
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_10]
lea rsi, asc_109CC; "/"
mov rdx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5rfindEPKcm; std::string::rfind(char const*,ulong)
mov [rbp+var_18], rax
cmp [rbp+var_18], 0FFFFFFFFFFFFFFFFh
jnz short loc_DF6C
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_10]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&)
jmp short loc_DFCF
loc_DF6C:
cmp [rbp+var_18], 0
jnz short loc_DFB8
lea rdi, [rbp+var_19]
mov [rbp+var_48], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rbp+var_40]
mov rdx, [rbp+var_48]
lea rsi, asc_109CC; "/"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_DF96:
lea rdi, [rbp+var_19]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_DFCF
mov rcx, rax
mov eax, edx
mov [rbp+var_28], rcx
mov [rbp+var_2C], eax
lea rdi, [rbp+var_19]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_DFD9
loc_DFB8:
jmp short $+2
loc_DFBA:
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_10]
mov rcx, [rbp+var_18]
xor eax, eax
mov edx, eax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_mm; std::string::basic_string(std::string const&,ulong,ulong)
loc_DFCF:
mov rax, [rbp+var_38]
add rsp, 50h
pop rbp
retn
loc_DFD9:
mov rdi, [rbp+var_28]
call __Unwind_Resume
| long long dirname(long long a1, long long a2)
{
char v3; // [rsp+37h] [rbp-19h] BYREF
long long v4; // [rsp+38h] [rbp-18h]
long long v5; // [rsp+40h] [rbp-10h]
long long v6; // [rsp+48h] [rbp-8h]
v6 = a1;
v5 = a2;
v4 = std::string::rfind(a2, "/", -1LL);
if ( v4 == -1 )
{
std::string::basic_string(a1, v5);
}
else if ( v4 )
{
std::string::basic_string(a1, v5, 0LL, v4);
}
else
{
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>(a1, (long long)"/", (long long)&v3);
std::allocator<char>::~allocator(&v3);
}
return a1;
}
| dirname:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x40],RDI
MOV RAX,RDI
MOV qword ptr [RBP + -0x38],RAX
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1109cc]
MOV RDX,-0x1
CALL 0x001035a0
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],-0x1
JNZ 0x0010df6c
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x00103160
JMP 0x0010dfcf
LAB_0010df6c:
CMP qword ptr [RBP + -0x18],0x0
JNZ 0x0010dfb8
LEA RDI,[RBP + -0x19]
MOV qword ptr [RBP + -0x48],RDI
CALL 0x001035e0
MOV RDI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x48]
LAB_0010df88:
LEA RSI,[0x1109cc]
CALL 0x00104680
LAB_0010df94:
JMP 0x0010df96
LAB_0010df96:
LEA RDI,[RBP + -0x19]
CALL 0x00103380
JMP 0x0010dfcf
LAB_0010dfb8:
JMP 0x0010dfba
LAB_0010dfba:
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x18]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001034a0
LAB_0010dfcf:
MOV RAX,qword ptr [RBP + -0x38]
ADD RSP,0x50
POP RBP
RET
|
/* dirname(std::__cxx11::string const&) */
string * dirname(string *param_1)
{
string *in_RSI;
allocator local_21;
ulong local_20;
string *local_18;
string *local_10;
local_18 = in_RSI;
local_10 = param_1;
local_20 = std::__cxx11::string::rfind((char *)in_RSI,0x1109cc);
if (local_20 == 0xffffffffffffffff) {
std::__cxx11::string::string(param_1,local_18);
}
else if (local_20 == 0) {
std::allocator<char>::allocator();
/* try { // try from 0010df88 to 0010df93 has its CatchHandler @ 0010dfa1 */
std::__cxx11::string::string<std::allocator<char>>(param_1,"/",&local_21);
std::allocator<char>::~allocator((allocator<char> *)&local_21);
}
else {
std::__cxx11::string::string(param_1,local_18,0,local_20);
}
return param_1;
}
| |
49,746 | dirname(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | ami-iit[P]serial_cpp/src/impl/list_ports/list_ports_linux.cc | string
dirname(const string& path)
{
size_t pos = path.rfind("/");
if(pos == std::string::npos)
return path;
else if(pos == 0)
return "/";
return string(path, 0, pos);
} | O2 | cpp | dirname(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1ab8(%rip), %rsi # 0x9a46
pushq $-0x1
popq %rdx
movq %r14, %rdi
callq 0x3490
testq %rax, %rax
je 0x7fb1
movq %rbx, %rdi
movq %r14, %rsi
cmpq $-0x1, %rax
jne 0x7fc7
callq 0x33b0
jmp 0x7fd1
leaq 0x1a8e(%rip), %rsi # 0x9a46
leaq 0x7(%rsp), %rdx
movq %rbx, %rdi
callq 0x3dfe
jmp 0x7fd1
xorl %edx, %edx
movq %rax, %rcx
callq 0x3090
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| _ZL7dirnameRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
lea rsi, asc_9A46; "/"
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5rfindEPKcm; std::string::rfind(char const*,ulong)
test rax, rax
jz short loc_7FB1
mov rdi, rbx
mov rsi, r14
cmp rax, 0FFFFFFFFFFFFFFFFh
jnz short loc_7FC7
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
jmp short loc_7FD1
loc_7FB1:
lea rsi, asc_9A46; "/"
lea rdx, [rsp+18h+var_11]
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short loc_7FD1
loc_7FC7:
xor edx, edx
mov rcx, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_mm; std::string::basic_string(std::string const&,ulong,ulong)
loc_7FD1:
mov rax, rbx
add rsp, 8
pop rbx
pop r14
retn
| _QWORD * dirname(_QWORD *a1, long long a2)
{
long long v2; // rax
v2 = std::string::rfind(a2, "/", -1LL);
if ( v2 )
{
if ( v2 == -1 )
std::string::basic_string(a1, a2);
else
std::string::basic_string(a1, a2, 0LL, v2);
}
else
{
std::string::basic_string<std::allocator<char>>(a1, (long long)"/");
}
return a1;
}
| dirname:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
LEA RSI,[0x109a46]
PUSH -0x1
POP RDX
MOV RDI,R14
CALL 0x00103490
TEST RAX,RAX
JZ 0x00107fb1
MOV RDI,RBX
MOV RSI,R14
CMP RAX,-0x1
JNZ 0x00107fc7
CALL 0x001033b0
JMP 0x00107fd1
LAB_00107fb1:
LEA RSI,[0x109a46]
LEA RDX,[RSP + 0x7]
MOV RDI,RBX
CALL 0x00103dfe
JMP 0x00107fd1
LAB_00107fc7:
XOR EDX,EDX
MOV RCX,RAX
CALL 0x00103090
LAB_00107fd1:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* dirname(std::__cxx11::string const&) */
string * dirname(string *param_1)
{
ulong uVar1;
string *in_RSI;
allocator local_11;
uVar1 = std::__cxx11::string::rfind((char *)in_RSI,0x109a46);
if (uVar1 == 0) {
std::__cxx11::string::string<std::allocator<char>>(param_1,"/",&local_11);
}
else if (uVar1 == 0xffffffffffffffff) {
std::__cxx11::string::string(param_1,in_RSI);
}
else {
std::__cxx11::string::string(param_1,in_RSI,0,uVar1);
}
return param_1;
}
| |
49,747 | llava_eval_image_embed | llama.cpp/examples/llava/llava.cpp | bool llava_eval_image_embed(llama_context * ctx_llama, const struct llava_image_embed * image_embed, int n_batch, int * n_past) {
int n_embd = llama_model_n_embd(llama_get_model(ctx_llama));
for (int i = 0; i < image_embed->n_image_pos; i += n_batch) {
int n_eval = image_embed->n_image_pos - i;
if (n_eval > n_batch) {
n_eval = n_batch;
}
float * embd = image_embed->embed+i*n_embd;
llava_embd_batch llava_batch = llava_embd_batch(embd, n_eval, *n_past, 0);
if (llama_decode(ctx_llama, llava_batch.batch)) {
LOG_ERR("%s : failed to eval\n", __func__);
return false;
}
*n_past += n_eval;
}
return true;
} | O3 | cpp | llava_eval_image_embed:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp # imm = 0x118
movq %rcx, 0x48(%rsp)
movl %edx, %ebp
movq %rsi, %r12
movq %rdi, 0x60(%rsp)
callq 0x1d190
movq %rax, %rdi
callq 0x1c470
movl 0x8(%r12), %r15d
testl %r15d, %r15d
jle 0x201bf
movslq %ebp, %rcx
cltq
movq %rcx, 0x58(%rsp)
imulq %rcx, %rax
shlq $0x2, %rax
movq %rax, 0x50(%rsp)
xorl %ebx, %ebx
xorl %r14d, %r14d
xorl %r13d, %r13d
movl %ebp, 0x44(%rsp)
addl %ebx, %r15d
cmpl %ebp, %r15d
cmovgel %ebp, %r15d
movq %r12, %rbp
movq (%r12), %rsi
addq %r14, %rsi
movq 0x48(%rsp), %rax
movl (%rax), %ecx
leaq 0x68(%rsp), %rdi
movl %r15d, %edx
xorl %r8d, %r8d
callq 0x1d1b0
leaq 0xe0(%rsp), %rcx
movq 0x30(%rcx), %rax
movq %rax, 0x30(%rsp)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups 0x20(%rcx), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq 0x60(%rsp), %rdi
callq 0x1e1e0
movl %eax, %r12d
testl %eax, %eax
sete 0x43(%rsp)
jne 0x201b5
movq 0x48(%rsp), %rax
addl %r15d, (%rax)
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x20120
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d4e0
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x2013d
movq 0xc0(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d4e0
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x2015a
movq 0xa8(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d4e0
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x20177
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d4e0
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x2018e
movq 0x78(%rsp), %rsi
subq %rdi, %rsi
callq 0x1d4e0
testl %r12d, %r12d
jne 0x201c4
addq 0x58(%rsp), %r13
movq %rbp, %r12
movslq 0x8(%rbp), %r15
addq 0x50(%rsp), %r14
movl 0x44(%rsp), %ebp
subl %ebp, %ebx
cmpq %r15, %r13
jl 0x2008c
jmp 0x201c4
callq 0x1eb3c
jmp 0x20103
movb $0x1, 0x43(%rsp)
movb 0x43(%rsp), %al
addq $0x118, %rsp # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x1c7f0
movq %rbx, %rdi
callq 0x1e5a0
| llava_eval_image_embed:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 118h
mov [rsp+148h+var_100], rcx
mov ebp, edx
mov r12, rsi
mov [rsp+148h+var_E8], rdi
call _llama_get_model
mov rdi, rax
call _llama_model_n_embd
mov r15d, [r12+8]
test r15d, r15d
jle loc_201BF
movsxd rcx, ebp
cdqe
mov [rsp+148h+var_F0], rcx
imul rax, rcx
shl rax, 2
mov [rsp+148h+var_F8], rax
xor ebx, ebx
xor r14d, r14d
xor r13d, r13d
mov [rsp+148h+var_104], ebp
loc_2008C:
add r15d, ebx
cmp r15d, ebp
cmovge r15d, ebp
mov rbp, r12
mov rsi, [r12]
add rsi, r14; float *
mov rax, [rsp+148h+var_100]
mov ecx, [rax]; int
lea rdi, [rsp+148h+var_E0]; this
mov edx, r15d; int
xor r8d, r8d; int
call __ZN16llava_embd_batchC2EPfiii; llava_embd_batch::llava_embd_batch(float *,int,int,int)
lea rcx, [rsp+148h+var_68]
mov rax, [rcx+30h]
mov [rsp+148h+var_118], rax
movups xmm0, xmmword ptr [rcx]
movups xmm1, xmmword ptr [rcx+10h]
movups xmm2, xmmword ptr [rcx+20h]
movups [rsp+148h+var_128], xmm2
movups [rsp+148h+var_138], xmm1
movups [rsp+148h+var_148], xmm0
mov rdi, [rsp+148h+var_E8]
call _llama_decode
mov r12d, eax
test eax, eax
setz [rsp+148h+var_105]
jnz loc_201B5
mov rax, [rsp+148h+var_100]
add [rax], r15d
loc_20103:
mov rdi, [rsp+148h+var_80]; void *
test rdi, rdi
jz short loc_20120
mov rsi, [rsp+148h+var_70]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_20120:
mov rdi, [rsp+148h+var_98]; void *
test rdi, rdi
jz short loc_2013D
mov rsi, [rsp+148h+var_88]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2013D:
mov rdi, [rsp+148h+var_B0]; void *
test rdi, rdi
jz short loc_2015A
mov rsi, [rsp+148h+var_A0]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2015A:
mov rdi, [rsp+148h+var_C8]; void *
test rdi, rdi
jz short loc_20177
mov rsi, [rsp+148h+var_B8]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_20177:
mov rdi, [rsp+148h+var_E0]; void *
test rdi, rdi
jz short loc_2018E
mov rsi, [rsp+148h+var_D0]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2018E:
test r12d, r12d
jnz short loc_201C4
add r13, [rsp+148h+var_F0]
mov r12, rbp
movsxd r15, dword ptr [rbp+8]
add r14, [rsp+148h+var_F8]
mov ebp, [rsp+148h+var_104]
sub ebx, ebp
cmp r13, r15
jl loc_2008C
jmp short loc_201C4
loc_201B5:
call llava_eval_image_embed_cold_1
jmp loc_20103
loc_201BF:
mov [rsp+148h+var_105], 1
loc_201C4:
mov al, [rsp+148h+var_105]
add rsp, 118h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_60]; this
call __ZN16llava_embd_batchD2Ev; llava_embd_batch::~llava_embd_batch()
mov rdi, rbx
call __Unwind_Resume
| char llava_eval_image_embed(long long a1, long long a2, int a3, int *a4)
{
_QWORD *v5; // r12
long long model; // rax
int v7; // eax
long long v8; // r15
int v9; // ebx
long long v10; // r14
long long v11; // r13
int v12; // r15d
_QWORD *v13; // rbp
float *v14; // rsi
long long v15; // rdx
long long v16; // r8
long long v17; // r9
int v18; // r12d
bool v20; // [rsp+43h] [rbp-105h]
int v21; // [rsp+44h] [rbp-104h]
long long v23; // [rsp+50h] [rbp-F8h]
long long v24; // [rsp+58h] [rbp-F0h]
void *v25[3]; // [rsp+68h] [rbp-E0h] BYREF
void *v26; // [rsp+80h] [rbp-C8h]
long long v27; // [rsp+90h] [rbp-B8h]
void *v28; // [rsp+98h] [rbp-B0h]
long long v29; // [rsp+A8h] [rbp-A0h]
void *v30; // [rsp+B0h] [rbp-98h]
long long v31; // [rsp+C0h] [rbp-88h]
void *v32; // [rsp+C8h] [rbp-80h]
long long v33; // [rsp+D8h] [rbp-70h]
_QWORD v34[13]; // [rsp+E0h] [rbp-68h] BYREF
v5 = (_QWORD *)a2;
model = llama_get_model();
v7 = llama_model_n_embd(model);
LODWORD(v8) = *(_DWORD *)(a2 + 8);
if ( (int)v8 <= 0 )
return 1;
v24 = a3;
v23 = 4 * a3 * (long long)v7;
v9 = 0;
v10 = 0LL;
v11 = 0LL;
v21 = a3;
do
{
v12 = v9 + v8;
if ( v12 >= a3 )
v12 = a3;
v13 = v5;
v14 = (float *)(v10 + *v5);
llava_embd_batch::llava_embd_batch((llava_embd_batch *)v25, v14, v12, *a4, 0);
v18 = llama_decode(a1, v14, v15, v34, v16, v17, v34[0], v34[1], v34[2], v34[3], v34[4], v34[5], v34[6]);
v20 = v18 == 0;
if ( v18 )
llava_eval_image_embed_cold_1();
else
*a4 += v12;
if ( v32 )
operator delete(v32, v33 - (_QWORD)v32);
if ( v30 )
operator delete(v30, v31 - (_QWORD)v30);
if ( v28 )
operator delete(v28, v29 - (_QWORD)v28);
if ( v26 )
operator delete(v26, v27 - (_QWORD)v26);
if ( v25[0] )
operator delete(v25[0], (char *)v25[2] - (char *)v25[0]);
if ( v18 )
break;
v11 += v24;
v5 = v13;
v8 = *((int *)v13 + 2);
v10 += v23;
a3 = v21;
v9 -= v21;
}
while ( v11 < v8 );
return v20;
}
| llava_eval_image_embed:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x118
MOV qword ptr [RSP + 0x48],RCX
MOV EBP,EDX
MOV R12,RSI
MOV qword ptr [RSP + 0x60],RDI
CALL 0x0011d190
MOV RDI,RAX
CALL 0x0011c470
MOV R15D,dword ptr [R12 + 0x8]
TEST R15D,R15D
JLE 0x001201bf
MOVSXD RCX,EBP
CDQE
MOV qword ptr [RSP + 0x58],RCX
IMUL RAX,RCX
SHL RAX,0x2
MOV qword ptr [RSP + 0x50],RAX
XOR EBX,EBX
XOR R14D,R14D
XOR R13D,R13D
MOV dword ptr [RSP + 0x44],EBP
LAB_0012008c:
ADD R15D,EBX
CMP R15D,EBP
CMOVGE R15D,EBP
MOV RBP,R12
MOV RSI,qword ptr [R12]
ADD RSI,R14
MOV RAX,qword ptr [RSP + 0x48]
MOV ECX,dword ptr [RAX]
LEA RDI,[RSP + 0x68]
MOV EDX,R15D
XOR R8D,R8D
CALL 0x0011d1b0
LAB_001200b7:
LEA RCX,[RSP + 0xe0]
MOV RAX,qword ptr [RCX + 0x30]
MOV qword ptr [RSP + 0x30],RAX
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS XMM1,xmmword ptr [RCX + 0x10]
MOVUPS XMM2,xmmword ptr [RCX + 0x20]
MOVUPS xmmword ptr [RSP + 0x20],XMM2
MOVUPS xmmword ptr [RSP + 0x10],XMM1
MOVUPS xmmword ptr [RSP],XMM0
MOV RDI,qword ptr [RSP + 0x60]
CALL 0x0011e1e0
LAB_001200eb:
MOV R12D,EAX
TEST EAX,EAX
SETZ byte ptr [RSP + 0x43]
JNZ 0x001201b5
MOV RAX,qword ptr [RSP + 0x48]
ADD dword ptr [RAX],R15D
LAB_00120103:
MOV RDI,qword ptr [RSP + 0xc8]
TEST RDI,RDI
JZ 0x00120120
MOV RSI,qword ptr [RSP + 0xd8]
SUB RSI,RDI
CALL 0x0011d4e0
LAB_00120120:
MOV RDI,qword ptr [RSP + 0xb0]
TEST RDI,RDI
JZ 0x0012013d
MOV RSI,qword ptr [RSP + 0xc0]
SUB RSI,RDI
CALL 0x0011d4e0
LAB_0012013d:
MOV RDI,qword ptr [RSP + 0x98]
TEST RDI,RDI
JZ 0x0012015a
MOV RSI,qword ptr [RSP + 0xa8]
SUB RSI,RDI
CALL 0x0011d4e0
LAB_0012015a:
MOV RDI,qword ptr [RSP + 0x80]
TEST RDI,RDI
JZ 0x00120177
MOV RSI,qword ptr [RSP + 0x90]
SUB RSI,RDI
CALL 0x0011d4e0
LAB_00120177:
MOV RDI,qword ptr [RSP + 0x68]
TEST RDI,RDI
JZ 0x0012018e
MOV RSI,qword ptr [RSP + 0x78]
SUB RSI,RDI
CALL 0x0011d4e0
LAB_0012018e:
TEST R12D,R12D
JNZ 0x001201c4
ADD R13,qword ptr [RSP + 0x58]
MOV R12,RBP
MOVSXD R15,dword ptr [RBP + 0x8]
ADD R14,qword ptr [RSP + 0x50]
MOV EBP,dword ptr [RSP + 0x44]
SUB EBX,EBP
CMP R13,R15
JL 0x0012008c
JMP 0x001201c4
LAB_001201b5:
CALL 0x0011eb3c
JMP 0x00120103
LAB_001201bf:
MOV byte ptr [RSP + 0x43],0x1
LAB_001201c4:
MOV AL,byte ptr [RSP + 0x43]
ADD RSP,0x118
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
bool llava_eval_image_embed(int8 param_1,long *param_2,int param_3,int *param_4)
{
int iVar1;
int iVar2;
int8 uVar3;
int iVar4;
long lVar5;
long lVar6;
int iVar7;
ulong uVar8;
bool local_105;
void *local_e0 [2];
long local_d0;
void *local_c8;
long local_b8;
void *local_b0;
long local_a0;
void *local_98;
long local_88;
void *local_80;
long local_70;
uVar3 = llama_get_model();
iVar1 = llama_model_n_embd(uVar3);
uVar8 = (ulong)*(uint *)(param_2 + 1);
if ((int)*(uint *)(param_2 + 1) < 1) {
local_105 = true;
}
else {
iVar4 = 0;
lVar6 = 0;
lVar5 = 0;
do {
iVar7 = (int)uVar8 + iVar4;
if (param_3 <= iVar7) {
iVar7 = param_3;
}
llava_embd_batch::llava_embd_batch
((llava_embd_batch *)local_e0,(float *)(*param_2 + lVar6),iVar7,*param_4,0);
/* try { // try from 001200b7 to 001200ea has its CatchHandler @ 001201da */
iVar2 = llama_decode(param_1);
local_105 = iVar2 == 0;
if (local_105) {
*param_4 = *param_4 + iVar7;
}
else {
llava_eval_image_embed_cold_1();
}
if (local_80 != (void *)0x0) {
operator_delete(local_80,local_70 - (long)local_80);
}
if (local_98 != (void *)0x0) {
operator_delete(local_98,local_88 - (long)local_98);
}
if (local_b0 != (void *)0x0) {
operator_delete(local_b0,local_a0 - (long)local_b0);
}
if (local_c8 != (void *)0x0) {
operator_delete(local_c8,local_b8 - (long)local_c8);
}
if (local_e0[0] != (void *)0x0) {
operator_delete(local_e0[0],local_d0 - (long)local_e0[0]);
}
if (iVar2 != 0) {
return local_105;
}
lVar5 = lVar5 + param_3;
uVar8 = (ulong)(int)param_2[1];
lVar6 = lVar6 + (long)iVar1 * (long)param_3 * 4;
iVar4 = iVar4 - param_3;
} while (lVar5 < (long)uVar8);
}
return local_105;
}
| |
49,748 | find_blob | eloqsql/storage/maria/ma_bitmap.c | static my_bool find_blob(MARIA_HA *info, ulong length)
{
MARIA_FILE_BITMAP *bitmap= &info->s->bitmap;
uint full_page_size= FULL_PAGE_SIZE(info->s);
ulong pages;
uint rest_length, used;
uint UNINIT_VAR(first_block_pos);
MARIA_BITMAP_BLOCK *first_block= 0;
DBUG_ENTER("find_blob");
DBUG_PRINT("enter", ("length: %lu", length));
pages= length / full_page_size;
rest_length= (uint) (length - pages * full_page_size);
if (rest_length >= MAX_TAIL_SIZE(info->s->block_size))
{
pages++;
rest_length= 0;
}
first_block_pos= info->bitmap_blocks.elements;
if (pages)
{
MARIA_BITMAP_BLOCK *block;
if (allocate_dynamic(&info->bitmap_blocks,
info->bitmap_blocks.elements +
pages / BLOB_SEGMENT_MIN_SIZE + 2))
DBUG_RETURN(1);
block= dynamic_element(&info->bitmap_blocks, info->bitmap_blocks.elements,
MARIA_BITMAP_BLOCK*);
do
{
/*
We use 0x3fff here as the two upmost bits are reserved for
TAIL_BIT and START_EXTENT_BIT
*/
used= allocate_full_pages(bitmap,
(pages >= 0x3fff ? 0x3fff : (uint) pages),
block, 0);
if (!used)
{
if (move_to_next_bitmap(info, bitmap))
DBUG_RETURN(1);
}
else
{
pages-= used;
info->bitmap_blocks.elements++;
block++;
}
} while (pages != 0);
}
if (rest_length && find_tail(info, rest_length,
info->bitmap_blocks.elements++))
DBUG_RETURN(1);
first_block= dynamic_element(&info->bitmap_blocks, first_block_pos,
MARIA_BITMAP_BLOCK*);
first_block->sub_blocks= info->bitmap_blocks.elements - first_block_pos;
DBUG_RETURN(0);
} | O0 | c | find_blob:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
addq $0xa10, %rax # imm = 0xA10
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x7bc(%rax), %eax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
movl 0xc18(%rcx), %ecx
addl $0x8, %ecx
subl %ecx, %eax
subl $0x4, %eax
movl %eax, -0x24(%rbp)
movl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movq $0x0, -0x48(%rbp)
jmp 0x67606
movq -0x18(%rbp), %rax
movl -0x24(%rbp), %ecx
xorl %edx, %edx
divq %rcx
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq -0x30(%rbp), %rcx
movl -0x24(%rbp), %edx
imulq %rdx, %rcx
subq %rcx, %rax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
imull $0x3, 0x7bc(%rcx), %ecx
shrl $0x2, %ecx
cmpl %ecx, %eax
jb 0x67656
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq -0x10(%rbp), %rax
movl 0x2c8(%rax), %eax
movl %eax, -0x3c(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x67766
movq -0x10(%rbp), %rdi
addq $0x2c0, %rdi # imm = 0x2C0
movq -0x10(%rbp), %rax
movl 0x2c8(%rax), %eax
movq -0x30(%rbp), %rcx
shrq $0x7, %rcx
addq %rcx, %rax
addq $0x2, %rax
movl %eax, %esi
callq 0xdc9c0
cmpb $0x0, %al
je 0x676a8
jmp 0x6769f
movb $0x1, -0x1(%rbp)
jmp 0x677ce
movq -0x10(%rbp), %rax
movq 0x2c0(%rax), %rax
movq -0x10(%rbp), %rcx
movl 0x2c8(%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x58(%rbp)
cmpq $0x3fff, -0x30(%rbp) # imm = 0x3FFF
jb 0x676e4
movl $0x3fff, %eax # imm = 0x3FFF
movl %eax, -0x5c(%rbp)
jmp 0x676eb
movq -0x30(%rbp), %rax
movl %eax, -0x5c(%rbp)
movq -0x58(%rbp), %rdi
movl -0x5c(%rbp), %eax
movl %eax, %eax
movl %eax, %esi
movq -0x50(%rbp), %rdx
xorl %ecx, %ecx
callq 0x677e0
movl %eax, -0x38(%rbp)
cmpl $0x0, -0x38(%rbp)
jne 0x67728
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x67360
cmpb $0x0, %al
je 0x67726
jmp 0x6771d
movb $0x1, -0x1(%rbp)
jmp 0x677ce
jmp 0x67757
movl -0x38(%rbp), %eax
movl %eax, %ecx
movq -0x30(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movl 0x2c8(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x2c8(%rax)
movq -0x50(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x50(%rbp)
jmp 0x67759
cmpq $0x0, -0x30(%rbp)
jne 0x676c8
jmp 0x67766
cmpl $0x0, -0x34(%rbp)
je 0x6779d
movq -0x10(%rbp), %rdi
movl -0x34(%rbp), %esi
movq -0x10(%rbp), %rax
movl 0x2c8(%rax), %edx
movl %edx, %ecx
addl $0x1, %ecx
movl %ecx, 0x2c8(%rax)
callq 0x67d30
movsbl %al, %eax
cmpl $0x0, %eax
je 0x6779d
jmp 0x67797
movb $0x1, -0x1(%rbp)
jmp 0x677ce
movq -0x10(%rbp), %rax
movq 0x2c0(%rax), %rax
movl -0x3c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movl 0x2c8(%rax), %ecx
subl -0x3c(%rbp), %ecx
movq -0x48(%rbp), %rax
movl %ecx, 0x10(%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x60, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| find_blob:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov rax, [rax]
add rax, 0A10h
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov eax, [rax+7BCh]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
mov ecx, [rcx+0C18h]
add ecx, 8
sub eax, ecx
sub eax, 4
mov [rbp+var_24], eax
mov eax, [rbp+var_3C]
mov [rbp+var_3C], eax
mov [rbp+var_48], 0
jmp short $+2
loc_67606:
mov rax, [rbp+var_18]
mov ecx, [rbp+var_24]
xor edx, edx
div rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_18]
mov rcx, [rbp+var_30]
mov edx, [rbp+var_24]
imul rcx, rdx
sub rax, rcx
mov [rbp+var_34], eax
mov eax, [rbp+var_34]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
imul ecx, [rcx+7BCh], 3
shr ecx, 2
cmp eax, ecx
jb short loc_67656
mov rax, [rbp+var_30]
add rax, 1
mov [rbp+var_30], rax
mov [rbp+var_34], 0
loc_67656:
mov rax, [rbp+var_10]
mov eax, [rax+2C8h]
mov [rbp+var_3C], eax
cmp [rbp+var_30], 0
jz loc_67766
mov rdi, [rbp+var_10]
add rdi, 2C0h
mov rax, [rbp+var_10]
mov eax, [rax+2C8h]
mov rcx, [rbp+var_30]
shr rcx, 7
add rax, rcx
add rax, 2
mov esi, eax
call allocate_dynamic
cmp al, 0
jz short loc_676A8
jmp short $+2
loc_6769F:
mov [rbp+var_1], 1
jmp loc_677CE
loc_676A8:
mov rax, [rbp+var_10]
mov rax, [rax+2C0h]
mov rcx, [rbp+var_10]
mov ecx, [rcx+2C8h]
imul rcx, 18h
add rax, rcx
mov [rbp+var_50], rax
loc_676C8:
mov rax, [rbp+var_20]
mov [rbp+var_58], rax
cmp [rbp+var_30], 3FFFh
jb short loc_676E4
mov eax, 3FFFh
mov [rbp+var_5C], eax
jmp short loc_676EB
loc_676E4:
mov rax, [rbp+var_30]
mov [rbp+var_5C], eax
loc_676EB:
mov rdi, [rbp+var_58]
mov eax, [rbp+var_5C]
mov eax, eax
mov esi, eax
mov rdx, [rbp+var_50]
xor ecx, ecx
call allocate_full_pages
mov [rbp+var_38], eax
cmp [rbp+var_38], 0
jnz short loc_67728
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
call move_to_next_bitmap
cmp al, 0
jz short loc_67726
jmp short $+2
loc_6771D:
mov [rbp+var_1], 1
jmp loc_677CE
loc_67726:
jmp short loc_67757
loc_67728:
mov eax, [rbp+var_38]
mov ecx, eax
mov rax, [rbp+var_30]
sub rax, rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
mov ecx, [rax+2C8h]
add ecx, 1
mov [rax+2C8h], ecx
mov rax, [rbp+var_50]
add rax, 18h
mov [rbp+var_50], rax
loc_67757:
jmp short $+2
loc_67759:
cmp [rbp+var_30], 0
jnz loc_676C8
jmp short $+2
loc_67766:
cmp [rbp+var_34], 0
jz short loc_6779D
mov rdi, [rbp+var_10]
mov esi, [rbp+var_34]
mov rax, [rbp+var_10]
mov edx, [rax+2C8h]
mov ecx, edx
add ecx, 1
mov [rax+2C8h], ecx
call find_tail
movsx eax, al
cmp eax, 0
jz short loc_6779D
jmp short $+2
loc_67797:
mov [rbp+var_1], 1
jmp short loc_677CE
loc_6779D:
mov rax, [rbp+var_10]
mov rax, [rax+2C0h]
mov ecx, [rbp+var_3C]
imul rcx, 18h
add rax, rcx
mov [rbp+var_48], rax
mov rax, [rbp+var_10]
mov ecx, [rax+2C8h]
sub ecx, [rbp+var_3C]
mov rax, [rbp+var_48]
mov [rax+10h], ecx
mov [rbp+var_1], 0
loc_677CE:
mov al, [rbp+var_1]
add rsp, 60h
pop rbp
retn
| char find_blob(long long a1, unsigned long long a2)
{
long long v2; // rdx
unsigned int v4; // [rsp+4h] [rbp-5Ch]
long long v5; // [rsp+10h] [rbp-50h]
unsigned int v6; // [rsp+24h] [rbp-3Ch]
unsigned int full_pages; // [rsp+28h] [rbp-38h]
unsigned int v8; // [rsp+2Ch] [rbp-34h]
unsigned long long v9; // [rsp+30h] [rbp-30h]
unsigned int v10; // [rsp+3Ch] [rbp-24h]
long long v11; // [rsp+40h] [rbp-20h]
v11 = *(_QWORD *)a1 + 2576LL;
v10 = *(_DWORD *)(*(_QWORD *)a1 + 1980LL) - (*(_DWORD *)(*(_QWORD *)a1 + 3096LL) + 8) - 4;
v9 = a2 / v10;
v8 = a2 % v10;
if ( v8 >= (unsigned int)(3 * *(_DWORD *)(*(_QWORD *)a1 + 1980LL)) >> 2 )
{
++v9;
v8 = 0;
}
v6 = *(_DWORD *)(a1 + 712);
if ( v9 )
{
if ( !(unsigned __int8)allocate_dynamic(a1 + 704, (unsigned int)(v9 >> 7) + *(_DWORD *)(a1 + 712) + 2) )
{
v5 = 24LL * *(unsigned int *)(a1 + 712) + *(_QWORD *)(a1 + 704);
while ( 1 )
{
if ( v9 < 0x3FFF )
v4 = v9;
else
v4 = 0x3FFF;
full_pages = allocate_full_pages(v11, v4, v5, 0LL);
if ( full_pages )
{
v9 -= full_pages;
++*(_DWORD *)(a1 + 712);
v5 += 24LL;
}
else if ( move_to_next_bitmap((long long *)a1, v11) )
{
return 1;
}
if ( !v9 )
goto LABEL_16;
}
}
return 1;
}
else
{
LABEL_16:
if ( v8 && (v2 = *(unsigned int *)(a1 + 712), ++*(_DWORD *)(a1 + 712), (unsigned __int8)find_tail(a1, v8, v2)) )
{
return 1;
}
else
{
*(_DWORD *)(24LL * v6 + *(_QWORD *)(a1 + 704) + 16) = *(_DWORD *)(a1 + 712) - v6;
return 0;
}
}
}
| find_blob:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
ADD RAX,0xa10
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x7bc]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
MOV ECX,dword ptr [RCX + 0xc18]
ADD ECX,0x8
SUB EAX,ECX
SUB EAX,0x4
MOV dword ptr [RBP + -0x24],EAX
MOV EAX,dword ptr [RBP + -0x3c]
MOV dword ptr [RBP + -0x3c],EAX
MOV qword ptr [RBP + -0x48],0x0
JMP 0x00167606
LAB_00167606:
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x24]
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x30]
MOV EDX,dword ptr [RBP + -0x24]
IMUL RCX,RDX
SUB RAX,RCX
MOV dword ptr [RBP + -0x34],EAX
MOV EAX,dword ptr [RBP + -0x34]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
IMUL ECX,dword ptr [RCX + 0x7bc],0x3
SHR ECX,0x2
CMP EAX,ECX
JC 0x00167656
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x1
MOV qword ptr [RBP + -0x30],RAX
MOV dword ptr [RBP + -0x34],0x0
LAB_00167656:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x2c8]
MOV dword ptr [RBP + -0x3c],EAX
CMP qword ptr [RBP + -0x30],0x0
JZ 0x00167766
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x2c0
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x2c8]
MOV RCX,qword ptr [RBP + -0x30]
SHR RCX,0x7
ADD RAX,RCX
ADD RAX,0x2
MOV ESI,EAX
CALL 0x001dc9c0
CMP AL,0x0
JZ 0x001676a8
JMP 0x0016769f
LAB_0016769f:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001677ce
LAB_001676a8:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x2c0]
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0x2c8]
IMUL RCX,RCX,0x18
ADD RAX,RCX
MOV qword ptr [RBP + -0x50],RAX
LAB_001676c8:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x58],RAX
CMP qword ptr [RBP + -0x30],0x3fff
JC 0x001676e4
MOV EAX,0x3fff
MOV dword ptr [RBP + -0x5c],EAX
JMP 0x001676eb
LAB_001676e4:
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x5c],EAX
LAB_001676eb:
MOV RDI,qword ptr [RBP + -0x58]
MOV EAX,dword ptr [RBP + -0x5c]
MOV EAX,EAX
MOV ESI,EAX
MOV RDX,qword ptr [RBP + -0x50]
XOR ECX,ECX
CALL 0x001677e0
MOV dword ptr [RBP + -0x38],EAX
CMP dword ptr [RBP + -0x38],0x0
JNZ 0x00167728
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x00167360
CMP AL,0x0
JZ 0x00167726
JMP 0x0016771d
LAB_0016771d:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001677ce
LAB_00167726:
JMP 0x00167757
LAB_00167728:
MOV EAX,dword ptr [RBP + -0x38]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
SUB RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x2c8]
ADD ECX,0x1
MOV dword ptr [RAX + 0x2c8],ECX
MOV RAX,qword ptr [RBP + -0x50]
ADD RAX,0x18
MOV qword ptr [RBP + -0x50],RAX
LAB_00167757:
JMP 0x00167759
LAB_00167759:
CMP qword ptr [RBP + -0x30],0x0
JNZ 0x001676c8
JMP 0x00167766
LAB_00167766:
CMP dword ptr [RBP + -0x34],0x0
JZ 0x0016779d
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RAX + 0x2c8]
MOV ECX,EDX
ADD ECX,0x1
MOV dword ptr [RAX + 0x2c8],ECX
CALL 0x00167d30
MOVSX EAX,AL
CMP EAX,0x0
JZ 0x0016779d
JMP 0x00167797
LAB_00167797:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001677ce
LAB_0016779d:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x2c0]
MOV ECX,dword ptr [RBP + -0x3c]
IMUL RCX,RCX,0x18
ADD RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x2c8]
SUB ECX,dword ptr [RBP + -0x3c]
MOV RAX,qword ptr [RBP + -0x48]
MOV dword ptr [RAX + 0x10],ECX
MOV byte ptr [RBP + -0x1],0x0
LAB_001677ce:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x60
POP RBP
RET
|
int1 find_blob(long *param_1,ulong param_2)
{
long lVar1;
char cVar2;
uint uVar3;
uint uVar4;
int4 local_64;
long local_58;
uint local_3c;
ulong local_38;
lVar1 = *param_1;
uVar3 = (*(int *)(*param_1 + 0x7bc) - (*(int *)(*param_1 + 0xc18) + 8)) - 4;
local_38 = param_2 / uVar3;
local_3c = (int)param_2 - (int)local_38 * uVar3;
if ((uint)(*(int *)(*param_1 + 0x7bc) * 3) >> 2 <= local_3c) {
local_38 = local_38 + 1;
local_3c = 0;
}
uVar3 = *(uint *)(param_1 + 0x59);
if (local_38 != 0) {
cVar2 = allocate_dynamic(param_1 + 0x58,(int)param_1[0x59] + (int)(local_38 >> 7) + 2);
if (cVar2 != '\0') {
return 1;
}
local_58 = param_1[0x58] + (ulong)*(uint *)(param_1 + 0x59) * 0x18;
do {
if (local_38 < 0x3fff) {
local_64 = (int4)local_38;
}
else {
local_64 = 0x3fff;
}
uVar4 = allocate_full_pages(lVar1 + 0xa10,local_64,local_58,0);
if (uVar4 == 0) {
cVar2 = move_to_next_bitmap(param_1,lVar1 + 0xa10);
if (cVar2 != '\0') {
return 1;
}
}
else {
local_38 = local_38 - uVar4;
*(int *)(param_1 + 0x59) = (int)param_1[0x59] + 1;
local_58 = local_58 + 0x18;
}
} while (local_38 != 0);
}
if (local_3c != 0) {
*(int *)(param_1 + 0x59) = (int)param_1[0x59] + 1;
cVar2 = find_tail(param_1,local_3c);
if (cVar2 != '\0') {
return 1;
}
}
*(uint *)(param_1[0x58] + (ulong)uVar3 * 0x18 + 0x10) = (int)param_1[0x59] - uVar3;
return 0;
}
| |
49,749 | my_mutex_init | eloqsql/mysys/thr_mutex.c | void my_mutex_init()
{
/* Initialize mutex attributes */
#ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
/*
Set mutex type to "fast" a.k.a "adaptive"
In this case the thread may steal the mutex from some other thread
that is waiting for the same mutex. This will save us some
context switches but may cause a thread to 'starve forever' while
waiting for the mutex (not likely if the code within the mutex is
short).
*/
pthread_mutexattr_init(&my_fast_mutexattr);
pthread_mutexattr_settype(&my_fast_mutexattr,
PTHREAD_MUTEX_ADAPTIVE_NP);
#endif
#ifdef PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP
/*
Set mutex type to "errorcheck"
*/
pthread_mutexattr_init(&my_errorcheck_mutexattr);
pthread_mutexattr_settype(&my_errorcheck_mutexattr,
PTHREAD_MUTEX_ERRORCHECK);
#endif
#if defined(SAFE_MUTEX_DEFINED)
safe_mutex_global_init();
#endif
} | O0 | c | my_mutex_init:
pushq %rbp
movq %rsp, %rbp
leaq 0xb897f5(%rip), %rdi # 0xc83630
callq 0x2a780
leaq 0xb897e9(%rip), %rdi # 0xc83630
movl $0x3, %esi
callq 0x2a430
leaq 0xb897dc(%rip), %rdi # 0xc83634
callq 0x2a780
leaq 0xb897d0(%rip), %rdi # 0xc83634
movl $0x2, %esi
callq 0x2a430
popq %rbp
retq
| my_mutex_init:
push rbp
mov rbp, rsp
lea rdi, my_fast_mutexattr
call _pthread_mutexattr_init
lea rdi, my_fast_mutexattr
mov esi, 3
call _pthread_mutexattr_settype
lea rdi, my_errorcheck_mutexattr
call _pthread_mutexattr_init
lea rdi, my_errorcheck_mutexattr
mov esi, 2
call _pthread_mutexattr_settype
pop rbp
retn
| long long my_mutex_init()
{
pthread_mutexattr_init(&my_fast_mutexattr);
pthread_mutexattr_settype(&my_fast_mutexattr, 3LL);
pthread_mutexattr_init(&my_errorcheck_mutexattr);
return pthread_mutexattr_settype(&my_errorcheck_mutexattr, 2LL);
}
| my_mutex_init:
PUSH RBP
MOV RBP,RSP
LEA RDI,[0xd83630]
CALL 0x0012a780
LEA RDI,[0xd83630]
MOV ESI,0x3
CALL 0x0012a430
LEA RDI,[0xd83634]
CALL 0x0012a780
LEA RDI,[0xd83634]
MOV ESI,0x2
CALL 0x0012a430
POP RBP
RET
|
void my_mutex_init(void)
{
pthread_mutexattr_init((pthread_mutexattr_t *)&my_fast_mutexattr);
pthread_mutexattr_settype((pthread_mutexattr_t *)&my_fast_mutexattr,3);
pthread_mutexattr_init((pthread_mutexattr_t *)&my_errorcheck_mutexattr);
pthread_mutexattr_settype((pthread_mutexattr_t *)&my_errorcheck_mutexattr,2);
return;
}
| |
49,750 | my_once_alloc | eloqsql/mysys/my_once.c | void* my_once_alloc(size_t Size, myf MyFlags)
{
size_t get_size, max_left;
uchar* point;
reg1 USED_MEM *next;
reg2 USED_MEM **prev;
Size= ALIGN_SIZE(Size);
prev= &my_once_root_block;
max_left=0;
for (next=my_once_root_block ; next && next->left < Size ; next= next->next)
{
if (next->left > max_left)
max_left=next->left;
prev= &next->next;
}
if (! next)
{ /* Time to alloc new block */
get_size= Size+ALIGN_SIZE(sizeof(USED_MEM));
if (max_left*4 < my_once_extra && get_size < my_once_extra)
get_size=my_once_extra; /* Normal alloc */
if ((next = (USED_MEM*) malloc(get_size)) == 0)
{
my_errno=errno;
if (MyFlags & (MY_FAE+MY_WME))
my_error(EE_OUTOFMEMORY, MYF(ME_BELL+ME_FATAL), get_size);
return((uchar*) 0);
}
DBUG_PRINT("test",("my_once_malloc %lu byte malloced", (ulong) get_size));
next->next= 0;
next->size= get_size;
next->left= get_size-ALIGN_SIZE(sizeof(USED_MEM));
*prev=next;
}
point= (uchar*) ((char*) next+ (next->size-next->left));
next->left-= Size;
if (MyFlags & MY_ZEROFILL)
bzero(point, Size);
return((void*) point);
} | O0 | c | my_once_alloc:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
addq $0x8, %rax
subq $0x1, %rax
andq $-0x8, %rax
movq %rax, -0x10(%rbp)
leaq 0x373d35(%rip), %rax # 0x3a66b0
movq %rax, -0x40(%rbp)
movq $0x0, -0x28(%rbp)
leaq 0x373d22(%rip), %rax # 0x3a66b0
movq (%rax), %rax
movq %rax, -0x38(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x38(%rbp)
movb %al, -0x41(%rbp)
je 0x329b3
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
cmpq -0x10(%rbp), %rax
setb %al
movb %al, -0x41(%rbp)
movb -0x41(%rbp), %al
testb $0x1, %al
jne 0x329bc
jmp 0x329eb
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
cmpq -0x28(%rbp), %rax
jbe 0x329d6
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x32995
cmpq $0x0, -0x38(%rbp)
jne 0x32ac4
movq -0x10(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
shlq $0x2, %rax
leaq 0x1b0f8f(%rip), %rcx # 0x1e39a0
movl (%rcx), %ecx
cmpq %rcx, %rax
jae 0x32a37
movq -0x20(%rbp), %rax
leaq 0x1b0f7d(%rip), %rcx # 0x1e39a0
movl (%rcx), %ecx
cmpq %rcx, %rax
jae 0x32a37
leaq 0x1b0f6f(%rip), %rax # 0x1e39a0
movl (%rax), %eax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x25420
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
jne 0x32a8e
callq 0x25050
movl (%rax), %eax
movl %eax, -0x48(%rbp)
callq 0x33e30
movl -0x48(%rbp), %ecx
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
andq $0x18, %rax
cmpq $0x0, %rax
je 0x32a81
movq -0x20(%rbp), %rdx
movl $0x5, %edi
movl $0x1004, %esi # imm = 0x1004
movb $0x0, %al
callq 0x2ca80
movq $0x0, -0x8(%rbp)
jmp 0x32b17
jmp 0x32a90
jmp 0x32a92
movq -0x38(%rbp), %rax
movq $0x0, (%rax)
movq -0x20(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rcx
subq $0x18, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
movq -0x38(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x38(%rbp), %rdx
subq 0x8(%rdx), %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdx
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rcx
subq %rdx, %rcx
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
andq $0x20, %rax
cmpq $0x0, %rax
je 0x32b0f
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rdx
xorl %esi, %esi
callq 0x251a0
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_once_alloc:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
add rax, 8
sub rax, 1
and rax, 0FFFFFFFFFFFFFFF8h
mov [rbp+var_10], rax
lea rax, my_once_root_block
mov [rbp+var_40], rax
mov [rbp+var_28], 0
lea rax, my_once_root_block
mov rax, [rax]
mov [rbp+var_38], rax
loc_32995:
xor eax, eax
cmp [rbp+var_38], 0
mov [rbp+var_41], al
jz short loc_329B3
mov rax, [rbp+var_38]
mov rax, [rax+8]
cmp rax, [rbp+var_10]
setb al
mov [rbp+var_41], al
loc_329B3:
mov al, [rbp+var_41]
test al, 1
jnz short loc_329BC
jmp short loc_329EB
loc_329BC:
mov rax, [rbp+var_38]
mov rax, [rax+8]
cmp rax, [rbp+var_28]
jbe short loc_329D6
mov rax, [rbp+var_38]
mov rax, [rax+8]
mov [rbp+var_28], rax
loc_329D6:
mov rax, [rbp+var_38]
mov [rbp+var_40], rax
mov rax, [rbp+var_38]
mov rax, [rax]
mov [rbp+var_38], rax
jmp short loc_32995
loc_329EB:
cmp [rbp+var_38], 0
jnz loc_32AC4
mov rax, [rbp+var_10]
add rax, 18h
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
shl rax, 2
lea rcx, my_once_extra
mov ecx, [rcx]
cmp rax, rcx
jnb short loc_32A37
mov rax, [rbp+var_20]
lea rcx, my_once_extra
mov ecx, [rcx]
cmp rax, rcx
jnb short loc_32A37
lea rax, my_once_extra
mov eax, [rax]
mov [rbp+var_20], rax
loc_32A37:
mov rdi, [rbp+var_20]
call _malloc
mov [rbp+var_38], rax
cmp rax, 0
jnz short loc_32A8E
call ___errno_location
mov eax, [rax]
mov [rbp+var_48], eax
call _my_thread_var
mov ecx, [rbp+var_48]
mov [rax], ecx
mov rax, [rbp+var_18]
and rax, 18h
cmp rax, 0
jz short loc_32A81
mov rdx, [rbp+var_20]
mov edi, 5
mov esi, 1004h
mov al, 0
call my_error
loc_32A81:
mov [rbp+var_8], 0
jmp loc_32B17
loc_32A8E:
jmp short $+2
loc_32A90:
jmp short $+2
loc_32A92:
mov rax, [rbp+var_38]
mov qword ptr [rax], 0
mov rcx, [rbp+var_20]
mov rax, [rbp+var_38]
mov [rax+10h], rcx
mov rcx, [rbp+var_20]
sub rcx, 18h
mov rax, [rbp+var_38]
mov [rax+8], rcx
mov rcx, [rbp+var_38]
mov rax, [rbp+var_40]
mov [rax], rcx
loc_32AC4:
mov rax, [rbp+var_38]
mov rcx, [rbp+var_38]
mov rcx, [rcx+10h]
mov rdx, [rbp+var_38]
sub rcx, [rdx+8]
add rax, rcx
mov [rbp+var_30], rax
mov rdx, [rbp+var_10]
mov rax, [rbp+var_38]
mov rcx, [rax+8]
sub rcx, rdx
mov [rax+8], rcx
mov rax, [rbp+var_18]
and rax, 20h
cmp rax, 0
jz short loc_32B0F
mov rdi, [rbp+var_30]
mov rdx, [rbp+var_10]
xor esi, esi
call _memset
loc_32B0F:
mov rax, [rbp+var_30]
mov [rbp+var_8], rax
loc_32B17:
mov rax, [rbp+var_8]
add rsp, 50h
pop rbp
retn
| char * my_once_alloc(long long a1, char a2)
{
int v3; // [rsp+8h] [rbp-48h]
bool v4; // [rsp+Fh] [rbp-41h]
_QWORD *v5; // [rsp+10h] [rbp-40h]
_QWORD *i; // [rsp+18h] [rbp-38h]
char *v7; // [rsp+20h] [rbp-30h]
unsigned long long v8; // [rsp+28h] [rbp-28h]
unsigned long long v9; // [rsp+30h] [rbp-20h]
unsigned long long v10; // [rsp+40h] [rbp-10h]
v10 = (a1 + 7) & 0xFFFFFFFFFFFFFFF8LL;
v5 = &my_once_root_block;
v8 = 0LL;
for ( i = (_QWORD *)my_once_root_block; ; i = (_QWORD *)*i )
{
v4 = 0;
if ( i )
v4 = i[1] < v10;
if ( !v4 )
break;
if ( i[1] > v8 )
v8 = i[1];
v5 = i;
}
if ( !i )
{
v9 = v10 + 24;
if ( 4 * v8 < my_once_extra && v9 < my_once_extra )
v9 = my_once_extra;
i = (_QWORD *)malloc(v9);
if ( !i )
{
v3 = *(_DWORD *)__errno_location();
*(_DWORD *)my_thread_var() = v3;
if ( (a2 & 0x18) != 0 )
my_error(5u, 4100LL, v9);
return 0LL;
}
*i = 0LL;
i[2] = v9;
i[1] = v9 - 24;
*v5 = i;
}
v7 = (char *)i + i[2] - i[1];
i[1] -= v10;
if ( (a2 & 0x20) != 0 )
memset(v7, 0LL, v10);
return v7;
}
| my_once_alloc:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x8
SUB RAX,0x1
AND RAX,-0x8
MOV qword ptr [RBP + -0x10],RAX
LEA RAX,[0x4a66b0]
MOV qword ptr [RBP + -0x40],RAX
MOV qword ptr [RBP + -0x28],0x0
LEA RAX,[0x4a66b0]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
LAB_00132995:
XOR EAX,EAX
CMP qword ptr [RBP + -0x38],0x0
MOV byte ptr [RBP + -0x41],AL
JZ 0x001329b3
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x8]
CMP RAX,qword ptr [RBP + -0x10]
SETC AL
MOV byte ptr [RBP + -0x41],AL
LAB_001329b3:
MOV AL,byte ptr [RBP + -0x41]
TEST AL,0x1
JNZ 0x001329bc
JMP 0x001329eb
LAB_001329bc:
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x8]
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x001329d6
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x28],RAX
LAB_001329d6:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
JMP 0x00132995
LAB_001329eb:
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x00132ac4
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x18
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
SHL RAX,0x2
LEA RCX,[0x2e39a0]
MOV ECX,dword ptr [RCX]
CMP RAX,RCX
JNC 0x00132a37
MOV RAX,qword ptr [RBP + -0x20]
LEA RCX,[0x2e39a0]
MOV ECX,dword ptr [RCX]
CMP RAX,RCX
JNC 0x00132a37
LEA RAX,[0x2e39a0]
MOV EAX,dword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
LAB_00132a37:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00125420
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JNZ 0x00132a8e
CALL 0x00125050
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x48],EAX
CALL 0x00133e30
MOV ECX,dword ptr [RBP + -0x48]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x18
CMP RAX,0x0
JZ 0x00132a81
MOV RDX,qword ptr [RBP + -0x20]
MOV EDI,0x5
MOV ESI,0x1004
MOV AL,0x0
CALL 0x0012ca80
LAB_00132a81:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00132b17
LAB_00132a8e:
JMP 0x00132a90
LAB_00132a90:
JMP 0x00132a92
LAB_00132a92:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX],0x0
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RBP + -0x20]
SUB RCX,0x18
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RAX],RCX
LAB_00132ac4:
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RCX + 0x10]
MOV RDX,qword ptr [RBP + -0x38]
SUB RCX,qword ptr [RDX + 0x8]
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RDX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RAX + 0x8]
SUB RCX,RDX
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x20
CMP RAX,0x0
JZ 0x00132b0f
MOV RDI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x10]
XOR ESI,ESI
CALL 0x001251a0
LAB_00132b0f:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x8],RAX
LAB_00132b17:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x50
POP RBP
RET
|
void * my_once_alloc(long param_1,ulong param_2)
{
int iVar1;
ulong __n;
int *piVar2;
void *__s;
bool bVar3;
int8 *local_48;
int8 *local_40;
ulong local_30;
size_t local_28;
__n = param_1 + 7U & 0xfffffffffffffff8;
local_48 = &my_once_root_block;
local_30 = 0;
local_40 = my_once_root_block;
while( true ) {
bVar3 = false;
if (local_40 != (int8 *)0x0) {
bVar3 = (ulong)local_40[1] < __n;
}
if (!bVar3) break;
if (local_30 < (ulong)local_40[1]) {
local_30 = local_40[1];
}
local_48 = local_40;
local_40 = (int8 *)*local_40;
}
if (local_40 == (int8 *)0x0) {
local_28 = __n + 0x18;
if ((local_30 << 2 < (ulong)my_once_extra) && (local_28 < my_once_extra)) {
local_28 = (size_t)my_once_extra;
}
local_40 = (int8 *)malloc(local_28);
if (local_40 == (int8 *)0x0) {
piVar2 = __errno_location();
iVar1 = *piVar2;
piVar2 = (int *)_my_thread_var();
*piVar2 = iVar1;
if ((param_2 & 0x18) != 0) {
my_error(5,0x1004,local_28);
}
return (void *)0x0;
}
*local_40 = 0;
local_40[2] = local_28;
local_40[1] = local_28 - 0x18;
*local_48 = local_40;
}
__s = (void *)((long)local_40 + (local_40[2] - local_40[1]));
local_40[1] = local_40[1] - __n;
if ((param_2 & 0x20) != 0) {
memset(__s,0,__n);
}
return __s;
}
| |
49,751 | nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp) | monkey531[P]llama/common/json.hpp | static diyfp normalize(diyfp x) noexcept
{
JSON_ASSERT(x.f != 0);
while ((x.f >> 63u) == 0)
{
x.f <<= 1u;
x.e--;
}
return x;
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp):
pushq %rax
testq %rdi, %rdi
je 0xdbde9
js 0xdbde2
addq %rdi, %rdi
decl %esi
testq %rdi, %rdi
jns 0xdbdd8
movq %rdi, %rax
movl %esi, %edx
popq %rcx
retq
leaq 0x365ac(%rip), %rdi # 0x11239c
leaq 0x2ec7c(%rip), %rdx # 0x10aa73
leaq 0x3ad7d(%rip), %rcx # 0x116b7b
movl $0x42a1, %esi # imm = 0x42A1
xorl %eax, %eax
callq 0x1e500
movq %rax, %rdi
callq 0x26531
| _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp9normalizeES3_:
push rax
test rdi, rdi
jz short loc_DBDE9
js short loc_DBDE2
loc_DBDD8:
add rdi, rdi
dec esi
test rdi, rdi
jns short loc_DBDD8
loc_DBDE2:
mov rax, rdi
mov edx, esi
pop rcx
retn
loc_DBDE9:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aXF0; "x.f != 0"
mov esi, 42A1h
xor eax, eax
call _ggml_abort
mov rdi, rax
call __clang_call_terminate
| long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(long long a1, int a2)
{
void *v3; // rax
if ( !a1 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17057LL,
"GGML_ASSERT(%s) failed",
"x.f != 0");
_clang_call_terminate(v3);
}
for ( ; a1 >= 0; --a2 )
a1 *= 2LL;
return a1;
}
| normalize:
PUSH RAX
TEST RDI,RDI
JZ 0x001dbde9
JS 0x001dbde2
LAB_001dbdd8:
ADD RDI,RDI
DEC ESI
TEST RDI,RDI
JNS 0x001dbdd8
LAB_001dbde2:
MOV RAX,RDI
MOV EDX,ESI
POP RCX
RET
LAB_001dbde9:
LEA RDI,[0x21239c]
LEA RDX,[0x20aa73]
LEA RCX,[0x216b7b]
MOV ESI,0x42a1
XOR EAX,EAX
CALL 0x0011e500
|
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
*/
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(diyfp *this,int param_2)
{
int1 auVar1 [16];
if (this != (diyfp *)0x0) {
if (-1 < (long)this) {
do {
this = (diyfp *)((long)this * 2);
param_2 = param_2 + -1;
} while (-1 < (long)this);
}
auVar1._8_4_ = param_2;
auVar1._0_8_ = this;
auVar1._12_4_ = 0;
return auVar1;
}
/* try { // try from 001dbde9 to 001dbe09 has its CatchHandler @ 001dbe0a */
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x42a1,
"GGML_ASSERT(%s) failed","x.f != 0");
}
| |
49,752 | bf_set_ui | bluesky950520[P]quickjs/libbf.c | int bf_set_ui(bf_t *r, uint64_t a)
{
r->sign = 0;
if (a == 0) {
r->expn = BF_EXP_ZERO;
bf_resize(r, 0); /* cannot fail */
}
#if LIMB_BITS == 32
else if (a <= 0xffffffff)
#else
else
#endif
{
int shift;
if (bf_resize(r, 1))
goto fail;
shift = clz(a);
r->tab[0] = a << shift;
r->expn = LIMB_BITS - shift;
}
#if LIMB_BITS == 32
else {
uint32_t a1, a0;
int shift;
if (bf_resize(r, 2))
goto fail;
a0 = a;
a1 = a >> 32;
shift = clz(a1);
r->tab[0] = a0 << shift;
r->tab[1] = shld(a1, a0, shift);
r->expn = 2 * LIMB_BITS - shift;
}
#endif
return 0;
fail:
bf_set_nan(r);
return BF_ST_MEM_ERROR;
} | O2 | c | bf_set_ui:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
andl $0x0, 0x8(%rdi)
testq %rsi, %rsi
je 0x6f586
movq %rsi, %r14
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x6f50f
testl %eax, %eax
je 0x6f5a3
movq %rbx, %rdi
callq 0x6f5cd
pushq $0x20
popq %r14
jmp 0x6f5c2
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, 0x10(%rbx)
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x6f50f
jmp 0x6f5c2
bsrq %r14, %rcx
xorq $0x3f, %rcx
shlq %cl, %r14
movq 0x20(%rbx), %rax
movq %r14, (%rax)
pushq $0x40
popq %rax
subq %rcx, %rax
movq %rax, 0x10(%rbx)
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| bf_set_ui:
push r14
push rbx
push rax
mov rbx, rdi
and dword ptr [rdi+8], 0
test rsi, rsi
jz short loc_6F586
mov r14, rsi
push 1
pop rsi
mov rdi, rbx
call bf_resize
test eax, eax
jz short loc_6F5A3
mov rdi, rbx
call bf_set_nan
push 20h ; ' '
pop r14
jmp short loc_6F5C2
loc_6F586:
mov rax, 8000000000000000h
mov [rbx+10h], rax
xor r14d, r14d
mov rdi, rbx
xor esi, esi
call bf_resize
jmp short loc_6F5C2
loc_6F5A3:
bsr rcx, r14
xor rcx, 3Fh
shl r14, cl
mov rax, [rbx+20h]
mov [rax], r14
push 40h ; '@'
pop rax
sub rax, rcx
mov [rbx+10h], rax
xor r14d, r14d
loc_6F5C2:
mov eax, r14d
add rsp, 8
pop rbx
pop r14
retn
| long long bf_set_ui(long long a1, unsigned long long a2)
{
unsigned int v2; // r14d
unsigned long long v3; // rcx
*(_DWORD *)(a1 + 8) = 0;
if ( a2 )
{
if ( (unsigned int)bf_resize(a1, 1LL) )
{
bf_set_nan(a1);
return 32;
}
else
{
_BitScanReverse64(&v3, a2);
v3 ^= 0x3FuLL;
**(_QWORD **)(a1 + 32) = a2 << v3;
*(_QWORD *)(a1 + 16) = 64 - v3;
return 0;
}
}
else
{
*(_QWORD *)(a1 + 16) = 0x8000000000000000LL;
v2 = 0;
bf_resize(a1, 0LL);
}
return v2;
}
| bf_set_ui:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
AND dword ptr [RDI + 0x8],0x0
TEST RSI,RSI
JZ 0x0016f586
MOV R14,RSI
PUSH 0x1
POP RSI
MOV RDI,RBX
CALL 0x0016f50f
TEST EAX,EAX
JZ 0x0016f5a3
MOV RDI,RBX
CALL 0x0016f5cd
PUSH 0x20
POP R14
JMP 0x0016f5c2
LAB_0016f586:
MOV RAX,-0x8000000000000000
MOV qword ptr [RBX + 0x10],RAX
XOR R14D,R14D
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0016f50f
JMP 0x0016f5c2
LAB_0016f5a3:
BSR RCX,R14
XOR RCX,0x3f
SHL R14,CL
MOV RAX,qword ptr [RBX + 0x20]
MOV qword ptr [RAX],R14
PUSH 0x40
POP RAX
SUB RAX,RCX
MOV qword ptr [RBX + 0x10],RAX
XOR R14D,R14D
LAB_0016f5c2:
MOV EAX,R14D
ADD RSP,0x8
POP RBX
POP R14
RET
|
int8 bf_set_ui(long param_1,ulong param_2)
{
ulong uVar1;
int iVar2;
int8 uVar3;
*(int4 *)(param_1 + 8) = 0;
if (param_2 == 0) {
*(int8 *)(param_1 + 0x10) = 0x8000000000000000;
uVar3 = 0;
bf_resize(param_1,0);
}
else {
iVar2 = bf_resize(param_1,1);
if (iVar2 == 0) {
uVar1 = 0x3f;
if (param_2 != 0) {
for (; param_2 >> uVar1 == 0; uVar1 = uVar1 - 1) {
}
}
**(long **)(param_1 + 0x20) = param_2 << ((byte)(uVar1 ^ 0x3f) & 0x3f);
*(ulong *)(param_1 + 0x10) = 0x40 - (uVar1 ^ 0x3f);
uVar3 = 0;
}
else {
bf_set_nan(param_1);
uVar3 = 0x20;
}
}
return uVar3;
}
| |
49,753 | common_arg::get_value_from_env(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) | monkey531[P]llama/common/arg.cpp | bool common_arg::get_value_from_env(std::string & output) {
if (env == nullptr) return false;
char * value = std::getenv(env);
if (value) {
output = value;
return true;
}
return false;
} | O0 | cpp | common_arg::get_value_from_env(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&):
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
cmpq $0x0, 0x88(%rax)
jne 0x6ed08
movb $0x0, 0x27(%rsp)
jmp 0x6ed40
movq (%rsp), %rax
movq 0x88(%rax), %rdi
callq 0x5ad60
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
je 0x6ed3b
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdi
callq 0x5a6d0
movb $0x1, 0x27(%rsp)
jmp 0x6ed40
movb $0x0, 0x27(%rsp)
movb 0x27(%rsp), %al
andb $0x1, %al
addq $0x28, %rsp
retq
nopl (%rax,%rax)
| _ZN10common_arg18get_value_from_envERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov [rsp+28h+var_18], rsi
mov rax, [rsp+28h+var_10]
mov [rsp+28h+var_28], rax
cmp qword ptr [rax+88h], 0
jnz short loc_6ED08
mov [rsp+28h+var_1], 0
jmp short loc_6ED40
loc_6ED08:
mov rax, [rsp+28h+var_28]
mov rdi, [rax+88h]
call _getenv
mov [rsp+28h+var_20], rax
cmp [rsp+28h+var_20], 0
jz short loc_6ED3B
mov rsi, [rsp+28h+var_20]
mov rdi, [rsp+28h+var_18]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc; std::string::operator=(char const*)
mov [rsp+28h+var_1], 1
jmp short loc_6ED40
loc_6ED3B:
mov [rsp+28h+var_1], 0
loc_6ED40:
mov al, [rsp+28h+var_1]
and al, 1
add rsp, 28h
retn
| char common_arg::get_value_from_env(long long a1, long long a2)
{
long long v3; // [rsp+8h] [rbp-20h]
if ( !*(_QWORD *)(a1 + 136) )
return 0;
v3 = getenv(*(_QWORD *)(a1 + 136));
if ( !v3 )
return 0;
std::string::operator=(a2, v3);
return 1;
}
| get_value_from_env:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RDI
MOV qword ptr [RSP + 0x10],RSI
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP],RAX
CMP qword ptr [RAX + 0x88],0x0
JNZ 0x0016ed08
MOV byte ptr [RSP + 0x27],0x0
JMP 0x0016ed40
LAB_0016ed08:
MOV RAX,qword ptr [RSP]
MOV RDI,qword ptr [RAX + 0x88]
CALL 0x0015ad60
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RSP + 0x8],0x0
JZ 0x0016ed3b
MOV RSI,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x0015a6d0
MOV byte ptr [RSP + 0x27],0x1
JMP 0x0016ed40
LAB_0016ed3b:
MOV byte ptr [RSP + 0x27],0x0
LAB_0016ed40:
MOV AL,byte ptr [RSP + 0x27]
AND AL,0x1
ADD RSP,0x28
RET
|
/* common_arg::get_value_from_env(std::__cxx11::string&) */
int1 __thiscall common_arg::get_value_from_env(common_arg *this,string *param_1)
{
char *pcVar1;
int1 local_1;
if (*(long *)(this + 0x88) == 0) {
local_1 = 0;
}
else {
pcVar1 = getenv(*(char **)(this + 0x88));
if (pcVar1 == (char *)0x0) {
local_1 = 0;
}
else {
std::__cxx11::string::operator=(param_1,pcVar1);
local_1 = 1;
}
}
return local_1;
}
| |
49,754 | resize_shape_hash | bluesky950520[P]quickjs/quickjs.c | static int resize_shape_hash(JSRuntime *rt, int new_shape_hash_bits)
{
int new_shape_hash_size, i;
uint32_t h;
JSShape **new_shape_hash, *sh, *sh_next;
new_shape_hash_size = 1 << new_shape_hash_bits;
new_shape_hash = js_mallocz_rt(rt, sizeof(rt->shape_hash[0]) *
new_shape_hash_size);
if (!new_shape_hash)
return -1;
for(i = 0; i < rt->shape_hash_size; i++) {
for(sh = rt->shape_hash[i]; sh != NULL; sh = sh_next) {
sh_next = sh->shape_hash_next;
h = get_shape_hash(sh->hash, new_shape_hash_bits);
sh->shape_hash_next = new_shape_hash[h];
new_shape_hash[h] = sh;
}
}
js_free_rt(rt, rt->shape_hash);
rt->shape_hash_bits = new_shape_hash_bits;
rt->shape_hash_size = new_shape_hash_size;
rt->shape_hash = new_shape_hash;
return 0;
} | O0 | c | resize_shape_hash:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movl %esi, 0x24(%rsp)
movl 0x24(%rsp), %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, 0x20(%rsp)
movq 0x28(%rsp), %rdi
movslq 0x20(%rsp), %rsi
shlq $0x3, %rsi
callq 0x208a0
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
jne 0x5c869
movl $0xffffffff, 0x34(%rsp) # imm = 0xFFFFFFFF
jmp 0x5c95c
movl $0x0, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
movq 0x28(%rsp), %rcx
cmpl 0x188(%rcx), %eax
jge 0x5c90f
movq 0x28(%rsp), %rax
movq 0x190(%rax), %rax
movslq 0x1c(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
je 0x5c8fd
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, (%rsp)
movq 0x8(%rsp), %rax
movl 0x1c(%rax), %edi
movl 0x24(%rsp), %esi
callq 0x5c5d0
movl %eax, 0x18(%rsp)
movq 0x10(%rsp), %rax
movl 0x18(%rsp), %ecx
movq (%rax,%rcx,8), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x30(%rax)
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rax
movl 0x18(%rsp), %ecx
movq %rdx, (%rax,%rcx,8)
movq (%rsp), %rax
movq %rax, 0x8(%rsp)
jmp 0x5c8a0
jmp 0x5c8ff
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x5c871
movq 0x28(%rsp), %rdi
movq 0x28(%rsp), %rax
movq 0x190(%rax), %rsi
callq 0x206a0
movl 0x24(%rsp), %ecx
movq 0x28(%rsp), %rax
movl %ecx, 0x184(%rax)
movl 0x20(%rsp), %ecx
movq 0x28(%rsp), %rax
movl %ecx, 0x188(%rax)
movq 0x10(%rsp), %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x190(%rax)
movl $0x0, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
| resize_shape_hash:
sub rsp, 38h
mov [rsp+38h+var_10], rdi
mov [rsp+38h+var_14], esi
mov ecx, [rsp+38h+var_14]
mov eax, 1
shl eax, cl
mov [rsp+38h+var_18], eax
mov rdi, [rsp+38h+var_10]
movsxd rsi, [rsp+38h+var_18]
shl rsi, 3
call js_mallocz_rt
mov [rsp+38h+var_28], rax
cmp [rsp+38h+var_28], 0
jnz short loc_5C869
mov [rsp+38h+var_4], 0FFFFFFFFh
jmp loc_5C95C
loc_5C869:
mov [rsp+38h+var_1C], 0
loc_5C871:
mov eax, [rsp+38h+var_1C]
mov rcx, [rsp+38h+var_10]
cmp eax, [rcx+188h]
jge loc_5C90F
mov rax, [rsp+38h+var_10]
mov rax, [rax+190h]
movsxd rcx, [rsp+38h+var_1C]
mov rax, [rax+rcx*8]
mov [rsp+38h+var_30], rax
loc_5C8A0:
cmp [rsp+38h+var_30], 0
jz short loc_5C8FD
mov rax, [rsp+38h+var_30]
mov rax, [rax+30h]
mov [rsp+38h+var_38], rax
mov rax, [rsp+38h+var_30]
mov edi, [rax+1Ch]
mov esi, [rsp+38h+var_14]
call get_shape_hash
mov [rsp+38h+var_20], eax
mov rax, [rsp+38h+var_28]
mov ecx, [rsp+38h+var_20]
mov rcx, [rax+rcx*8]
mov rax, [rsp+38h+var_30]
mov [rax+30h], rcx
mov rdx, [rsp+38h+var_30]
mov rax, [rsp+38h+var_28]
mov ecx, [rsp+38h+var_20]
mov [rax+rcx*8], rdx
mov rax, [rsp+38h+var_38]
mov [rsp+38h+var_30], rax
jmp short loc_5C8A0
loc_5C8FD:
jmp short $+2
loc_5C8FF:
mov eax, [rsp+38h+var_1C]
add eax, 1
mov [rsp+38h+var_1C], eax
jmp loc_5C871
loc_5C90F:
mov rdi, [rsp+38h+var_10]
mov rax, [rsp+38h+var_10]
mov rsi, [rax+190h]
call js_free_rt
mov ecx, [rsp+38h+var_14]
mov rax, [rsp+38h+var_10]
mov [rax+184h], ecx
mov ecx, [rsp+38h+var_18]
mov rax, [rsp+38h+var_10]
mov [rax+188h], ecx
mov rcx, [rsp+38h+var_28]
mov rax, [rsp+38h+var_10]
mov [rax+190h], rcx
mov [rsp+38h+var_4], 0
loc_5C95C:
mov eax, [rsp+38h+var_4]
add rsp, 38h
retn
| long long resize_shape_hash(long long a1, int a2)
{
long long v3; // [rsp+0h] [rbp-38h]
long long j; // [rsp+8h] [rbp-30h]
long long v5; // [rsp+10h] [rbp-28h]
unsigned int shape_hash; // [rsp+18h] [rbp-20h]
int i; // [rsp+1Ch] [rbp-1Ch]
v5 = js_mallocz_rt(a1, 8LL * (1 << a2));
if ( v5 )
{
for ( i = 0; i < *(_DWORD *)(a1 + 392); ++i )
{
for ( j = *(_QWORD *)(*(_QWORD *)(a1 + 400) + 8LL * i); j; j = v3 )
{
v3 = *(_QWORD *)(j + 48);
shape_hash = get_shape_hash(*(_DWORD *)(j + 28), a2);
*(_QWORD *)(j + 48) = *(_QWORD *)(v5 + 8LL * shape_hash);
*(_QWORD *)(v5 + 8LL * shape_hash) = j;
}
}
js_free_rt(a1, *(_QWORD *)(a1 + 400));
*(_DWORD *)(a1 + 388) = a2;
*(_DWORD *)(a1 + 392) = 1 << a2;
*(_QWORD *)(a1 + 400) = v5;
return 0;
}
else
{
return (unsigned int)-1;
}
}
| resize_shape_hash:
SUB RSP,0x38
MOV qword ptr [RSP + 0x28],RDI
MOV dword ptr [RSP + 0x24],ESI
MOV ECX,dword ptr [RSP + 0x24]
MOV EAX,0x1
SHL EAX,CL
MOV dword ptr [RSP + 0x20],EAX
MOV RDI,qword ptr [RSP + 0x28]
MOVSXD RSI,dword ptr [RSP + 0x20]
SHL RSI,0x3
CALL 0x001208a0
MOV qword ptr [RSP + 0x10],RAX
CMP qword ptr [RSP + 0x10],0x0
JNZ 0x0015c869
MOV dword ptr [RSP + 0x34],0xffffffff
JMP 0x0015c95c
LAB_0015c869:
MOV dword ptr [RSP + 0x1c],0x0
LAB_0015c871:
MOV EAX,dword ptr [RSP + 0x1c]
MOV RCX,qword ptr [RSP + 0x28]
CMP EAX,dword ptr [RCX + 0x188]
JGE 0x0015c90f
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX + 0x190]
MOVSXD RCX,dword ptr [RSP + 0x1c]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RSP + 0x8],RAX
LAB_0015c8a0:
CMP qword ptr [RSP + 0x8],0x0
JZ 0x0015c8fd
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RSP],RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV EDI,dword ptr [RAX + 0x1c]
MOV ESI,dword ptr [RSP + 0x24]
CALL 0x0015c5d0
MOV dword ptr [RSP + 0x18],EAX
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RSP + 0x18]
MOV RCX,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x30],RCX
MOV RDX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RSP + 0x18]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV RAX,qword ptr [RSP]
MOV qword ptr [RSP + 0x8],RAX
JMP 0x0015c8a0
LAB_0015c8fd:
JMP 0x0015c8ff
LAB_0015c8ff:
MOV EAX,dword ptr [RSP + 0x1c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x1c],EAX
JMP 0x0015c871
LAB_0015c90f:
MOV RDI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RAX + 0x190]
CALL 0x001206a0
MOV ECX,dword ptr [RSP + 0x24]
MOV RAX,qword ptr [RSP + 0x28]
MOV dword ptr [RAX + 0x184],ECX
MOV ECX,dword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x28]
MOV dword ptr [RAX + 0x188],ECX
MOV RCX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RAX + 0x190],RCX
MOV dword ptr [RSP + 0x34],0x0
LAB_0015c95c:
MOV EAX,dword ptr [RSP + 0x34]
ADD RSP,0x38
RET
|
int4 resize_shape_hash(long param_1,int4 param_2)
{
long lVar1;
int iVar2;
uint uVar3;
long lVar4;
int8 local_30;
int4 local_1c;
int4 local_4;
iVar2 = 1 << ((byte)param_2 & 0x1f);
lVar4 = js_mallocz_rt(param_1,(long)iVar2 << 3);
if (lVar4 == 0) {
local_4 = 0xffffffff;
}
else {
for (local_1c = 0; local_1c < *(int *)(param_1 + 0x188); local_1c = local_1c + 1) {
local_30 = *(long *)(*(long *)(param_1 + 400) + (long)local_1c * 8);
while (local_30 != 0) {
lVar1 = *(long *)(local_30 + 0x30);
uVar3 = get_shape_hash(*(int4 *)(local_30 + 0x1c),param_2);
*(int8 *)(local_30 + 0x30) = *(int8 *)(lVar4 + (ulong)uVar3 * 8);
*(long *)(lVar4 + (ulong)uVar3 * 8) = local_30;
local_30 = lVar1;
}
}
js_free_rt(param_1,*(int8 *)(param_1 + 400));
*(int4 *)(param_1 + 0x184) = param_2;
*(int *)(param_1 + 0x188) = iVar2;
*(long *)(param_1 + 400) = lVar4;
local_4 = 0;
}
return local_4;
}
| |
49,755 | exec_UNDO_LOGREC_UNDO_BULK_INSERT | eloqsql/storage/maria/ma_recovery.c | prototype_undo_exec_hook(UNDO_BULK_INSERT)
{
my_bool error;
MARIA_HA *info= get_MARIA_HA_from_UNDO_record(rec);
LSN previous_undo_lsn= lsn_korr(rec->header);
MARIA_SHARE *share;
/* Here we don't check for crashed as we can undo the bulk insert */
if (info == NULL)
{
skip_undo_record(previous_undo_lsn, trn);
return 0;
}
share= info->s;
share->state.changed|= (STATE_CHANGED | STATE_NOT_ANALYZED |
STATE_NOT_ZEROFILLED | STATE_NOT_MOVABLE);
info->trn= trn;
error= _ma_apply_undo_bulk_insert(info, previous_undo_lsn);
info->trn= 0;
/* trn->undo_lsn is updated in an inwrite_hook when writing the CLR_END */
tprint(tracef, " undo_lsn now LSN " LSN_FMT "\n",
LSN_IN_PARTS(trn->undo_lsn));
return error;
} | O3 | c | exec_UNDO_LOGREC_UNDO_BULK_INSERT:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
callq 0x5596f
movq %rax, %r14
movzwl 0x18(%r15), %eax
shlq $0x20, %rax
movzbl 0x1a(%r15), %ecx
shlq $0x30, %rcx
orq %rax, %rcx
movl 0x1b(%r15), %esi
orq %rcx, %rsi
testq %r14, %r14
je 0x54b1b
movq (%r14), %rax
orl $0x189, 0x170(%rax) # imm = 0x189
movq %rbx, 0x8(%r14)
movq %r14, %rdi
callq 0x3b721
movl %eax, %r15d
movq $0x0, 0x8(%r14)
leaq 0xbd32aa(%rip), %rax # 0xc27da0
movq (%rax), %rdi
movq 0x98(%rbx), %rcx
movq %rcx, %rdx
shrq $0x20, %rdx
leaq 0xa66c1(%rip), %rsi # 0xfb1cf
xorl %eax, %eax
callq 0x55d08
movsbl %r15b, %eax
jmp 0x54b42
movq %rsi, 0x98(%rbx)
testq %rsi, %rsi
jne 0x54b39
movzbl 0xa7(%rbx), %eax
shlq $0x38, %rax
movq %rax, 0xa0(%rbx)
incq 0xbd3120(%rip) # 0xc27c60
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| exec_UNDO_LOGREC_UNDO_BULK_INSERT:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rsi
mov r15, rdi
call get_MARIA_HA_from_UNDO_record
mov r14, rax
movzx eax, word ptr [r15+18h]
shl rax, 20h
movzx ecx, byte ptr [r15+1Ah]
shl rcx, 30h
or rcx, rax
mov esi, [r15+1Bh]
or rsi, rcx
test r14, r14
jz short loc_54B1B
mov rax, [r14]
or dword ptr [rax+170h], 189h
mov [r14+8], rbx
mov rdi, r14
call _ma_apply_undo_bulk_insert
mov r15d, eax
mov qword ptr [r14+8], 0
lea rax, tracef
mov rdi, [rax]
mov rcx, [rbx+98h]
mov rdx, rcx
shr rdx, 20h
lea rsi, aRowCountLuUndo+12h; " undo_lsn now LSN (%u,0x%x)\n"
xor eax, eax
call tprint
movsx eax, r15b
jmp short loc_54B42
loc_54B1B:
mov [rbx+98h], rsi
test rsi, rsi
jnz short loc_54B39
movzx eax, byte ptr [rbx+0A7h]
shl rax, 38h
mov [rbx+0A0h], rax
loc_54B39:
inc cs:skipped_undo_phase
xor eax, eax
loc_54B42:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long exec_UNDO_LOGREC_UNDO_BULK_INSERT(long long a1, long long a2)
{
_QWORD *MARIA_HA_from_UNDO_record; // r14
unsigned long long v4; // rsi
char v5; // r15
int v6; // r8d
int v7; // r9d
MARIA_HA_from_UNDO_record = (_QWORD *)get_MARIA_HA_from_UNDO_record(a1);
v4 = ((unsigned long long)*(unsigned __int16 *)(a1 + 24) << 32) | ((unsigned long long)*(unsigned __int8 *)(a1 + 26) << 48) | *(unsigned int *)(a1 + 27);
if ( MARIA_HA_from_UNDO_record )
{
*(_DWORD *)(*MARIA_HA_from_UNDO_record + 368LL) |= 0x189u;
MARIA_HA_from_UNDO_record[1] = a2;
v5 = ma_apply_undo_bulk_insert(MARIA_HA_from_UNDO_record, v4);
MARIA_HA_from_UNDO_record[1] = 0LL;
tprint(
tracef,
(unsigned int)" undo_lsn now LSN (%u,0x%x)\n",
HIDWORD(*(_QWORD *)(a2 + 152)),
*(_QWORD *)(a2 + 152),
v6,
v7);
return (unsigned int)v5;
}
else
{
*(_QWORD *)(a2 + 152) = v4;
if ( !v4 )
*(_QWORD *)(a2 + 160) = (unsigned long long)*(unsigned __int8 *)(a2 + 167) << 56;
++skipped_undo_phase;
return 0LL;
}
}
| exec_UNDO_LOGREC_UNDO_BULK_INSERT:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R15,RDI
CALL 0x0015596f
MOV R14,RAX
MOVZX EAX,word ptr [R15 + 0x18]
SHL RAX,0x20
MOVZX ECX,byte ptr [R15 + 0x1a]
SHL RCX,0x30
OR RCX,RAX
MOV ESI,dword ptr [R15 + 0x1b]
OR RSI,RCX
TEST R14,R14
JZ 0x00154b1b
MOV RAX,qword ptr [R14]
OR dword ptr [RAX + 0x170],0x189
MOV qword ptr [R14 + 0x8],RBX
MOV RDI,R14
CALL 0x0013b721
MOV R15D,EAX
MOV qword ptr [R14 + 0x8],0x0
LEA RAX,[0xd27da0]
MOV RDI,qword ptr [RAX]
MOV RCX,qword ptr [RBX + 0x98]
MOV RDX,RCX
SHR RDX,0x20
LEA RSI,[0x1fb1cf]
XOR EAX,EAX
CALL 0x00155d08
MOVSX EAX,R15B
JMP 0x00154b42
LAB_00154b1b:
MOV qword ptr [RBX + 0x98],RSI
TEST RSI,RSI
JNZ 0x00154b39
MOVZX EAX,byte ptr [RBX + 0xa7]
SHL RAX,0x38
MOV qword ptr [RBX + 0xa0],RAX
LAB_00154b39:
INC qword ptr [0x00d27c60]
XOR EAX,EAX
LAB_00154b42:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int exec_UNDO_LOGREC_UNDO_BULK_INSERT(long param_1,long param_2)
{
char cVar1;
int iVar2;
long *plVar3;
ulong uVar4;
plVar3 = (long *)get_MARIA_HA_from_UNDO_record();
uVar4 = (ulong)*(uint *)(param_1 + 0x1b) |
(ulong)*(byte *)(param_1 + 0x1a) << 0x30 | (ulong)*(ushort *)(param_1 + 0x18) << 0x20;
if (plVar3 == (long *)0x0) {
*(ulong *)(param_2 + 0x98) = uVar4;
if (uVar4 == 0) {
*(ulong *)(param_2 + 0xa0) = (ulong)*(byte *)(param_2 + 0xa7) << 0x38;
}
skipped_undo_phase = skipped_undo_phase + 1;
iVar2 = 0;
}
else {
*(uint *)(*plVar3 + 0x170) = *(uint *)(*plVar3 + 0x170) | 0x189;
plVar3[1] = param_2;
cVar1 = _ma_apply_undo_bulk_insert(plVar3);
plVar3[1] = 0;
tprint(tracef," undo_lsn now LSN (%u,0x%x)\n",*(ulong *)(param_2 + 0x98) >> 0x20);
iVar2 = (int)cVar1;
}
return iVar2;
}
| |
49,756 | batch_decode(llama_context*, llama_batch&, float*, int, int, int) | monkey531[P]llama/examples/embedding/embedding.cpp | static void batch_decode(llama_context * ctx, llama_batch & batch, float * output, int n_seq, int n_embd, int embd_norm) {
const enum llama_pooling_type pooling_type = llama_pooling_type(ctx);
const struct llama_model * model = llama_get_model(ctx);
// clear previous kv_cache values (irrelevant for embeddings)
llama_kv_cache_clear(ctx);
// run model
LOG_INF("%s: n_tokens = %d, n_seq = %d\n", __func__, batch.n_tokens, n_seq);
if (llama_model_has_encoder(model) && !llama_model_has_decoder(model)) {
// encoder-only model
if (llama_encode(ctx, batch) < 0) {
LOG_ERR("%s : failed to encode\n", __func__);
}
} else if (!llama_model_has_encoder(model) && llama_model_has_decoder(model)) {
// decoder-only model
if (llama_decode(ctx, batch) < 0) {
LOG_ERR("%s : failed to decode\n", __func__);
}
}
for (int i = 0; i < batch.n_tokens; i++) {
if (!batch.logits[i]) {
continue;
}
const float * embd = nullptr;
int embd_pos = 0;
if (pooling_type == LLAMA_POOLING_TYPE_NONE) {
// try to get token embeddings
embd = llama_get_embeddings_ith(ctx, i);
embd_pos = i;
GGML_ASSERT(embd != NULL && "failed to get token embeddings");
} else {
// try to get sequence embeddings - supported only when pooling_type is not NONE
embd = llama_get_embeddings_seq(ctx, batch.seq_id[i][0]);
embd_pos = batch.seq_id[i][0];
GGML_ASSERT(embd != NULL && "failed to get sequence embeddings");
}
float * out = output + embd_pos * n_embd;
common_embd_normalize(embd, out, n_embd, embd_norm);
}
} | O0 | cpp | batch_decode(llama_context*, llama_batch&, float*, int, int, int):
subq $0x108, %rsp # imm = 0x108
movq %rdi, 0x100(%rsp)
movq %rsi, 0xf8(%rsp)
movq %rdx, 0xf0(%rsp)
movl %ecx, 0xec(%rsp)
movl %r8d, 0xe8(%rsp)
movl %r9d, 0xe4(%rsp)
movq 0x100(%rsp), %rdi
callq 0x5acc0
movl %eax, 0xe0(%rsp)
movq 0x100(%rsp), %rdi
callq 0x5adc0
movq %rax, 0xd8(%rsp)
movq 0x100(%rsp), %rdi
callq 0x5b4b0
xorl %eax, %eax
leaq 0x244693(%rip), %rcx # 0x2a55f8
cmpl (%rcx), %eax
jg 0x60f9e
callq 0x1c0120
movq %rax, %rdi
movq 0xf8(%rsp), %rax
movl (%rax), %r8d
movl 0xec(%rsp), %r9d
movl $0x2, %esi
leaq 0x1a7518(%rip), %rdx # 0x2084a8
leaq 0x1a7530(%rip), %rcx # 0x2084c7
movb $0x0, %al
callq 0x1c0210
jmp 0x60fa0
movq 0xd8(%rsp), %rdi
callq 0x5b070
testb $0x1, %al
jne 0x60fb6
jmp 0x6106d
movq 0xd8(%rsp), %rdi
callq 0x5ac10
testb $0x1, %al
jne 0x6106d
movq 0x100(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0xf8(%rsp), %rsi
leaq 0xa0(%rsp), %rdi
movl $0x38, %edx
callq 0x5a120
movq 0x40(%rsp), %rdi
movq 0xd0(%rsp), %rcx
movq %rsp, %rax
movq %rcx, 0x30(%rax)
movups 0xa0(%rsp), %xmm0
movups 0xb0(%rsp), %xmm1
movups 0xc0(%rsp), %xmm2
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x5a1f0
cmpl $0x0, %eax
jge 0x61068
jmp 0x61035
xorl %eax, %eax
leaq 0x2445ba(%rip), %rcx # 0x2a55f8
cmpl (%rcx), %eax
jg 0x61064
callq 0x1c0120
movq %rax, %rdi
movl $0x4, %esi
leaq 0x1a747e(%rip), %rdx # 0x2084d4
leaq 0x1a746a(%rip), %rcx # 0x2084c7
movb $0x0, %al
callq 0x1c0210
jmp 0x61066
jmp 0x61068
jmp 0x61130
movq 0xd8(%rsp), %rdi
callq 0x5b070
testb $0x1, %al
jne 0x6112e
movq 0xd8(%rsp), %rdi
callq 0x5ac10
testb $0x1, %al
jne 0x61098
jmp 0x6112e
movq 0x100(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0xf8(%rsp), %rsi
leaq 0x68(%rsp), %rdi
movl $0x38, %edx
callq 0x5a120
movq 0x38(%rsp), %rdi
movq 0x98(%rsp), %rcx
movq %rsp, %rax
movq %rcx, 0x30(%rax)
movups 0x68(%rsp), %xmm0
movups 0x78(%rsp), %xmm1
movups 0x88(%rsp), %xmm2
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x5a600
cmpl $0x0, %eax
jge 0x6112c
jmp 0x610f9
xorl %eax, %eax
leaq 0x2444f6(%rip), %rcx # 0x2a55f8
cmpl (%rcx), %eax
jg 0x61128
callq 0x1c0120
movq %rax, %rdi
movl $0x4, %esi
leaq 0x1a73d1(%rip), %rdx # 0x2084eb
leaq 0x1a73a6(%rip), %rcx # 0x2084c7
movb $0x0, %al
callq 0x1c0210
jmp 0x6112a
jmp 0x6112c
jmp 0x6112e
jmp 0x61130
movl $0x0, 0x64(%rsp)
movl 0x64(%rsp), %eax
movq 0xf8(%rsp), %rcx
cmpl (%rcx), %eax
jge 0x6128b
movq 0xf8(%rsp), %rax
movq 0x30(%rax), %rax
movslq 0x64(%rsp), %rcx
cmpb $0x0, (%rax,%rcx)
jne 0x61168
jmp 0x6127b
movq $0x0, 0x58(%rsp)
movl $0x0, 0x54(%rsp)
cmpl $0x0, 0xe0(%rsp)
jne 0x611cc
movq 0x100(%rsp), %rdi
movl 0x64(%rsp), %esi
callq 0x5a0f0
movq %rax, 0x58(%rsp)
movl 0x64(%rsp), %eax
movl %eax, 0x54(%rsp)
cmpq $0x0, 0x58(%rsp)
jne 0x611ca
leaq 0x1a6f11(%rip), %rdi # 0x2080c1
movl $0x44, %esi
leaq 0x1a6f60(%rip), %rdx # 0x20811c
leaq 0x1a733f(%rip), %rcx # 0x208502
movb $0x0, %al
callq 0x5aed0
jmp 0x6123b
movq 0x100(%rsp), %rdi
movq 0xf8(%rsp), %rax
movq 0x28(%rax), %rax
movslq 0x64(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movl (%rax), %esi
callq 0x5b2e0
movq %rax, 0x58(%rsp)
movq 0xf8(%rsp), %rax
movq 0x28(%rax), %rax
movslq 0x64(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movl (%rax), %eax
movl %eax, 0x54(%rsp)
cmpq $0x0, 0x58(%rsp)
jne 0x61239
leaq 0x1a6ea2(%rip), %rdi # 0x2080c1
movl $0x49, %esi
leaq 0x1a6ef1(%rip), %rdx # 0x20811c
leaq 0x1a7301(%rip), %rcx # 0x208533
movb $0x0, %al
callq 0x5aed0
jmp 0x6123b
movq 0xf0(%rsp), %rax
movl 0x54(%rsp), %ecx
imull 0xe8(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, 0x48(%rsp)
movq 0x58(%rsp), %rdi
movq 0x48(%rsp), %rsi
movl 0xe8(%rsp), %edx
movl 0xe4(%rsp), %ecx
callq 0xf6650
movl 0x64(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x64(%rsp)
jmp 0x61138
addq $0x108, %rsp # imm = 0x108
retq
nopw %cs:(%rax,%rax)
| _ZL12batch_decodeP13llama_contextR11llama_batchPfiii:
sub rsp, 108h
mov [rsp+108h+var_8], rdi
mov [rsp+108h+var_10], rsi
mov [rsp+108h+var_18], rdx
mov [rsp+108h+var_1C], ecx
mov [rsp+108h+var_20], r8d
mov [rsp+108h+var_24], r9d
mov rdi, [rsp+108h+var_8]
call _llama_pooling_type
mov [rsp+108h+var_28], eax
mov rdi, [rsp+108h+var_8]
call _llama_get_model
mov [rsp+108h+var_30], rax
mov rdi, [rsp+108h+var_8]
call _llama_kv_cache_clear
xor eax, eax
lea rcx, common_log_verbosity_thold
cmp eax, [rcx]
jg short loc_60F9E
call _Z15common_log_mainv; common_log_main(void)
mov rdi, rax
mov rax, [rsp+108h+var_10]
mov r8d, [rax]
mov r9d, [rsp+108h+var_1C]
mov esi, 2
lea rdx, aSNTokensDNSeqD; "%s: n_tokens = %d, n_seq = %d\n"
lea rcx, aBatchDecode; "batch_decode"
mov al, 0
call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...)
loc_60F9E:
jmp short $+2
loc_60FA0:
mov rdi, [rsp+108h+var_30]
call _llama_model_has_encoder
test al, 1
jnz short loc_60FB6
jmp loc_6106D
loc_60FB6:
mov rdi, [rsp+108h+var_30]
call _llama_model_has_decoder
test al, 1
jnz loc_6106D
mov rax, [rsp+108h+var_8]
mov [rsp+108h+var_C8], rax
mov rsi, [rsp+108h+var_10]
lea rdi, [rsp+108h+var_68]
mov edx, 38h ; '8'
call _memcpy
mov rdi, [rsp+108h+var_C8]
mov rcx, [rsp+108h+var_38]
mov rax, rsp
mov [rax+30h], rcx
movups xmm0, [rsp+108h+var_68]
movups xmm1, [rsp+108h+var_58]
movups xmm2, [rsp+108h+var_48]
movups xmmword ptr [rax+20h], xmm2
movups xmmword ptr [rax+10h], xmm1
movups xmmword ptr [rax], xmm0
call _llama_encode
cmp eax, 0
jge short loc_61068
jmp short $+2
loc_61035:
xor eax, eax
lea rcx, common_log_verbosity_thold
cmp eax, [rcx]
jg short loc_61064
call _Z15common_log_mainv; common_log_main(void)
mov rdi, rax
mov esi, 4
lea rdx, aSFailedToEncod; "%s : failed to encode\n"
lea rcx, aBatchDecode; "batch_decode"
mov al, 0
call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...)
loc_61064:
jmp short $+2
loc_61066:
jmp short $+2
loc_61068:
jmp loc_61130
loc_6106D:
mov rdi, [rsp+108h+var_30]
call _llama_model_has_encoder
test al, 1
jnz loc_6112E
mov rdi, [rsp+108h+var_30]
call _llama_model_has_decoder
test al, 1
jnz short loc_61098
jmp loc_6112E
loc_61098:
mov rax, [rsp+108h+var_8]
mov [rsp+108h+var_D0], rax
mov rsi, [rsp+108h+var_10]
lea rdi, [rsp+108h+var_A0]
mov edx, 38h ; '8'
call _memcpy
mov rdi, [rsp+108h+var_D0]
mov rcx, [rsp+108h+var_70]
mov rax, rsp
mov [rax+30h], rcx
movups xmm0, [rsp+108h+var_A0]
movups xmm1, [rsp+108h+var_90]
movups xmm2, [rsp+108h+var_80]
movups xmmword ptr [rax+20h], xmm2
movups xmmword ptr [rax+10h], xmm1
movups xmmword ptr [rax], xmm0
call _llama_decode
cmp eax, 0
jge short loc_6112C
jmp short $+2
loc_610F9:
xor eax, eax
lea rcx, common_log_verbosity_thold
cmp eax, [rcx]
jg short loc_61128
call _Z15common_log_mainv; common_log_main(void)
mov rdi, rax
mov esi, 4
lea rdx, aSFailedToDecod; "%s : failed to decode\n"
lea rcx, aBatchDecode; "batch_decode"
mov al, 0
call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...)
loc_61128:
jmp short $+2
loc_6112A:
jmp short $+2
loc_6112C:
jmp short $+2
loc_6112E:
jmp short $+2
loc_61130:
mov [rsp+108h+var_A4], 0
loc_61138:
mov eax, [rsp+108h+var_A4]
mov rcx, [rsp+108h+var_10]
cmp eax, [rcx]
jge loc_6128B
mov rax, [rsp+108h+var_10]
mov rax, [rax+30h]
movsxd rcx, [rsp+108h+var_A4]
cmp byte ptr [rax+rcx], 0
jnz short loc_61168
jmp loc_6127B
loc_61168:
mov [rsp+108h+var_B0], 0
mov [rsp+108h+var_B4], 0
cmp [rsp+108h+var_28], 0
jnz short loc_611CC
mov rdi, [rsp+108h+var_8]
mov esi, [rsp+108h+var_A4]
call _llama_get_embeddings_ith
mov [rsp+108h+var_B0], rax
mov eax, [rsp+108h+var_A4]
mov [rsp+108h+var_B4], eax
cmp [rsp+108h+var_B0], 0
jnz short loc_611CA
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 44h ; 'D'
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aEmbdNullFailed; "embd != NULL && \"failed to get token e"...
mov al, 0
call _ggml_abort
loc_611CA:
jmp short loc_6123B
loc_611CC:
mov rdi, [rsp+108h+var_8]
mov rax, [rsp+108h+var_10]
mov rax, [rax+28h]
movsxd rcx, [rsp+108h+var_A4]
mov rax, [rax+rcx*8]
mov esi, [rax]
call _llama_get_embeddings_seq
mov [rsp+108h+var_B0], rax
mov rax, [rsp+108h+var_10]
mov rax, [rax+28h]
movsxd rcx, [rsp+108h+var_A4]
mov rax, [rax+rcx*8]
mov eax, [rax]
mov [rsp+108h+var_B4], eax
cmp [rsp+108h+var_B0], 0
jnz short loc_61239
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 49h ; 'I'
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aEmbdNullFailed_0; "embd != NULL && \"failed to get sequenc"...
mov al, 0
call _ggml_abort
loc_61239:
jmp short $+2
loc_6123B:
mov rax, [rsp+108h+var_18]
mov ecx, [rsp+108h+var_B4]
imul ecx, [rsp+108h+var_20]
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
mov [rsp+108h+var_C0], rax
mov rdi, [rsp+108h+var_B0]; float *
mov rsi, [rsp+108h+var_C0]; float *
mov edx, [rsp+108h+var_20]; int
mov ecx, [rsp+108h+var_24]; int
call _Z21common_embd_normalizePKfPfii; common_embd_normalize(float const*,float *,int,int)
loc_6127B:
mov eax, [rsp+108h+var_A4]
add eax, 1
mov [rsp+108h+var_A4], eax
jmp loc_61138
loc_6128B:
add rsp, 108h
retn
| long long batch_decode(long long a1, long long a2, long long a3, int a4, int a5, int a6)
{
int v6; // eax
long long v7; // rsi
long long v8; // rdx
long long v9; // r8
long long v10; // r9
int v11; // eax
int v12; // r8d
int v13; // r9d
long long v14; // rsi
long long v15; // rdx
long long v16; // r8
long long v17; // r9
int v18; // eax
int v19; // r8d
int v20; // r9d
long long result; // rax
long long v22; // [rsp+38h] [rbp-D0h]
long long v23; // [rsp+40h] [rbp-C8h]
unsigned int v24; // [rsp+54h] [rbp-B4h]
float *embeddings_seq; // [rsp+58h] [rbp-B0h]
unsigned int i; // [rsp+64h] [rbp-A4h]
_QWORD v27[6]; // [rsp+68h] [rbp-A0h] BYREF
long long v28; // [rsp+98h] [rbp-70h]
_QWORD v29[6]; // [rsp+A0h] [rbp-68h] BYREF
long long v30; // [rsp+D0h] [rbp-38h]
long long model; // [rsp+D8h] [rbp-30h]
int v32; // [rsp+E0h] [rbp-28h]
int v33; // [rsp+E4h] [rbp-24h]
int v34; // [rsp+E8h] [rbp-20h]
int v35; // [rsp+ECh] [rbp-1Ch]
long long v36; // [rsp+F0h] [rbp-18h]
long long v37; // [rsp+F8h] [rbp-10h]
long long v38; // [rsp+100h] [rbp-8h]
v38 = a1;
v37 = a2;
v36 = a3;
v35 = a4;
v34 = a5;
v33 = a6;
v32 = llama_pooling_type(a1);
model = llama_get_model(a1);
llama_kv_cache_clear(a1);
if ( common_log_verbosity_thold >= 0 )
{
v6 = common_log_main();
common_log_add(
v6,
2,
(unsigned int)"%s: n_tokens = %d, n_seq = %d\n",
(unsigned int)"batch_decode",
*(_DWORD *)v37,
v35);
}
if ( (llama_model_has_encoder(model) & 1) == 0 || (llama_model_has_decoder(model) & 1) != 0 )
{
if ( (llama_model_has_encoder(model) & 1) == 0 && (llama_model_has_decoder(model) & 1) != 0 )
{
v22 = v38;
v14 = v37;
memcpy(v27, v37, 56LL);
if ( (int)llama_decode(v22, v14, v15, v28, v16, v17, v27[0], v27[1], v27[2], v27[3], v27[4], v27[5], v28) < 0
&& common_log_verbosity_thold >= 0 )
{
v18 = common_log_main();
common_log_add(v18, 4, (unsigned int)"%s : failed to decode\n", (unsigned int)"batch_decode", v19, v20);
}
}
}
else
{
v23 = v38;
v7 = v37;
memcpy(v29, v37, 56LL);
if ( (int)llama_encode(v23, v7, v8, v30, v9, v10, v29[0], v29[1], v29[2], v29[3], v29[4], v29[5], v30) < 0
&& common_log_verbosity_thold >= 0 )
{
v11 = common_log_main();
common_log_add(v11, 4, (unsigned int)"%s : failed to encode\n", (unsigned int)"batch_decode", v12, v13);
}
}
for ( i = 0; ; ++i )
{
result = i;
if ( (signed int)i >= *(_DWORD *)v37 )
break;
if ( *(_BYTE *)(*(_QWORD *)(v37 + 48) + (int)i) )
{
if ( v32 )
{
embeddings_seq = (float *)llama_get_embeddings_seq(
v38,
**(unsigned int **)(*(_QWORD *)(v37 + 40) + 8LL * (int)i));
v24 = **(_DWORD **)(*(_QWORD *)(v37 + 40) + 8LL * (int)i);
if ( !embeddings_seq )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/examples/embedding/embedding.cpp",
73LL,
"GGML_ASSERT(%s) failed",
"embd != NULL && \"failed to get sequence embeddings\"");
}
else
{
embeddings_seq = (float *)llama_get_embeddings_ith(v38, i);
v24 = i;
if ( !embeddings_seq )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/examples/embedding/embedding.cpp",
68LL,
"GGML_ASSERT(%s) failed",
"embd != NULL && \"failed to get token embeddings\"");
}
common_embd_normalize(embeddings_seq, (float *)(4LL * (int)(v34 * v24) + v36), v34, v33);
}
}
return result;
}
| batch_decode:
SUB RSP,0x108
MOV qword ptr [RSP + 0x100],RDI
MOV qword ptr [RSP + 0xf8],RSI
MOV qword ptr [RSP + 0xf0],RDX
MOV dword ptr [RSP + 0xec],ECX
MOV dword ptr [RSP + 0xe8],R8D
MOV dword ptr [RSP + 0xe4],R9D
MOV RDI,qword ptr [RSP + 0x100]
CALL 0x0015acc0
MOV dword ptr [RSP + 0xe0],EAX
MOV RDI,qword ptr [RSP + 0x100]
CALL 0x0015adc0
MOV qword ptr [RSP + 0xd8],RAX
MOV RDI,qword ptr [RSP + 0x100]
CALL 0x0015b4b0
XOR EAX,EAX
LEA RCX,[0x3a55f8]
CMP EAX,dword ptr [RCX]
JG 0x00160f9e
CALL 0x002c0120
MOV RDI,RAX
MOV RAX,qword ptr [RSP + 0xf8]
MOV R8D,dword ptr [RAX]
MOV R9D,dword ptr [RSP + 0xec]
MOV ESI,0x2
LEA RDX,[0x3084a8]
LEA RCX,[0x3084c7]
MOV AL,0x0
CALL 0x002c0210
LAB_00160f9e:
JMP 0x00160fa0
LAB_00160fa0:
MOV RDI,qword ptr [RSP + 0xd8]
CALL 0x0015b070
TEST AL,0x1
JNZ 0x00160fb6
JMP 0x0016106d
LAB_00160fb6:
MOV RDI,qword ptr [RSP + 0xd8]
CALL 0x0015ac10
TEST AL,0x1
JNZ 0x0016106d
MOV RAX,qword ptr [RSP + 0x100]
MOV qword ptr [RSP + 0x40],RAX
MOV RSI,qword ptr [RSP + 0xf8]
LEA RDI,[RSP + 0xa0]
MOV EDX,0x38
CALL 0x0015a120
MOV RDI,qword ptr [RSP + 0x40]
MOV RCX,qword ptr [RSP + 0xd0]
MOV RAX,RSP
MOV qword ptr [RAX + 0x30],RCX
MOVUPS XMM0,xmmword ptr [RSP + 0xa0]
MOVUPS XMM1,xmmword ptr [RSP + 0xb0]
MOVUPS XMM2,xmmword ptr [RSP + 0xc0]
MOVUPS xmmword ptr [RAX + 0x20],XMM2
MOVUPS xmmword ptr [RAX + 0x10],XMM1
MOVUPS xmmword ptr [RAX],XMM0
CALL 0x0015a1f0
CMP EAX,0x0
JGE 0x00161068
JMP 0x00161035
LAB_00161035:
XOR EAX,EAX
LEA RCX,[0x3a55f8]
CMP EAX,dword ptr [RCX]
JG 0x00161064
CALL 0x002c0120
MOV RDI,RAX
MOV ESI,0x4
LEA RDX,[0x3084d4]
LEA RCX,[0x3084c7]
MOV AL,0x0
CALL 0x002c0210
LAB_00161064:
JMP 0x00161066
LAB_00161066:
JMP 0x00161068
LAB_00161068:
JMP 0x00161130
LAB_0016106d:
MOV RDI,qword ptr [RSP + 0xd8]
CALL 0x0015b070
TEST AL,0x1
JNZ 0x0016112e
MOV RDI,qword ptr [RSP + 0xd8]
CALL 0x0015ac10
TEST AL,0x1
JNZ 0x00161098
JMP 0x0016112e
LAB_00161098:
MOV RAX,qword ptr [RSP + 0x100]
MOV qword ptr [RSP + 0x38],RAX
MOV RSI,qword ptr [RSP + 0xf8]
LEA RDI,[RSP + 0x68]
MOV EDX,0x38
CALL 0x0015a120
MOV RDI,qword ptr [RSP + 0x38]
MOV RCX,qword ptr [RSP + 0x98]
MOV RAX,RSP
MOV qword ptr [RAX + 0x30],RCX
MOVUPS XMM0,xmmword ptr [RSP + 0x68]
MOVUPS XMM1,xmmword ptr [RSP + 0x78]
MOVUPS XMM2,xmmword ptr [RSP + 0x88]
MOVUPS xmmword ptr [RAX + 0x20],XMM2
MOVUPS xmmword ptr [RAX + 0x10],XMM1
MOVUPS xmmword ptr [RAX],XMM0
CALL 0x0015a600
CMP EAX,0x0
JGE 0x0016112c
JMP 0x001610f9
LAB_001610f9:
XOR EAX,EAX
LEA RCX,[0x3a55f8]
CMP EAX,dword ptr [RCX]
JG 0x00161128
CALL 0x002c0120
MOV RDI,RAX
MOV ESI,0x4
LEA RDX,[0x3084eb]
LEA RCX,[0x3084c7]
MOV AL,0x0
CALL 0x002c0210
LAB_00161128:
JMP 0x0016112a
LAB_0016112a:
JMP 0x0016112c
LAB_0016112c:
JMP 0x0016112e
LAB_0016112e:
JMP 0x00161130
LAB_00161130:
MOV dword ptr [RSP + 0x64],0x0
LAB_00161138:
MOV EAX,dword ptr [RSP + 0x64]
MOV RCX,qword ptr [RSP + 0xf8]
CMP EAX,dword ptr [RCX]
JGE 0x0016128b
MOV RAX,qword ptr [RSP + 0xf8]
MOV RAX,qword ptr [RAX + 0x30]
MOVSXD RCX,dword ptr [RSP + 0x64]
CMP byte ptr [RAX + RCX*0x1],0x0
JNZ 0x00161168
JMP 0x0016127b
LAB_00161168:
MOV qword ptr [RSP + 0x58],0x0
MOV dword ptr [RSP + 0x54],0x0
CMP dword ptr [RSP + 0xe0],0x0
JNZ 0x001611cc
MOV RDI,qword ptr [RSP + 0x100]
MOV ESI,dword ptr [RSP + 0x64]
CALL 0x0015a0f0
MOV qword ptr [RSP + 0x58],RAX
MOV EAX,dword ptr [RSP + 0x64]
MOV dword ptr [RSP + 0x54],EAX
CMP qword ptr [RSP + 0x58],0x0
JNZ 0x001611ca
LEA RDI,[0x3080c1]
MOV ESI,0x44
LEA RDX,[0x30811c]
LEA RCX,[0x308502]
MOV AL,0x0
CALL 0x0015aed0
LAB_001611ca:
JMP 0x0016123b
LAB_001611cc:
MOV RDI,qword ptr [RSP + 0x100]
MOV RAX,qword ptr [RSP + 0xf8]
MOV RAX,qword ptr [RAX + 0x28]
MOVSXD RCX,dword ptr [RSP + 0x64]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV ESI,dword ptr [RAX]
CALL 0x0015b2e0
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0xf8]
MOV RAX,qword ptr [RAX + 0x28]
MOVSXD RCX,dword ptr [RSP + 0x64]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0x54],EAX
CMP qword ptr [RSP + 0x58],0x0
JNZ 0x00161239
LEA RDI,[0x3080c1]
MOV ESI,0x49
LEA RDX,[0x30811c]
LEA RCX,[0x308533]
MOV AL,0x0
CALL 0x0015aed0
LAB_00161239:
JMP 0x0016123b
LAB_0016123b:
MOV RAX,qword ptr [RSP + 0xf0]
MOV ECX,dword ptr [RSP + 0x54]
IMUL ECX,dword ptr [RSP + 0xe8]
MOVSXD RCX,ECX
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RSP + 0x48],RAX
MOV RDI,qword ptr [RSP + 0x58]
MOV RSI,qword ptr [RSP + 0x48]
MOV EDX,dword ptr [RSP + 0xe8]
MOV ECX,dword ptr [RSP + 0xe4]
CALL 0x001f6650
LAB_0016127b:
MOV EAX,dword ptr [RSP + 0x64]
ADD EAX,0x1
MOV dword ptr [RSP + 0x64],EAX
JMP 0x00161138
LAB_0016128b:
ADD RSP,0x108
RET
|
/* batch_decode(llama_context*, llama_batch&, float*, int, int, int) */
void batch_decode(llama_context *param_1,llama_batch *param_2,float *param_3,int param_4,int param_5
,int param_6)
{
llama_context *plVar1;
int iVar2;
int8 uVar3;
ulong uVar4;
int local_b4;
float *local_b0;
int local_a4;
int1 local_a0 [56];
int1 local_68 [56];
int8 local_30;
int local_28;
int local_24;
int local_20;
int local_1c;
float *local_18;
llama_batch *local_10;
llama_context *local_8;
local_24 = param_6;
local_20 = param_5;
local_1c = param_4;
local_18 = param_3;
local_10 = param_2;
local_8 = param_1;
local_28 = llama_pooling_type(param_1);
local_30 = llama_get_model(local_8);
llama_kv_cache_clear(local_8);
if (-1 < common_log_verbosity_thold) {
uVar3 = common_log_main();
common_log_add(uVar3,2,"%s: n_tokens = %d, n_seq = %d\n","batch_decode",*(int *)local_10,
local_1c);
}
uVar4 = llama_model_has_encoder(local_30);
if (((uVar4 & 1) == 0) ||
(uVar4 = llama_model_has_decoder(local_30), plVar1 = local_8, (uVar4 & 1) != 0)) {
uVar4 = llama_model_has_encoder(local_30);
if (((uVar4 & 1) == 0) &&
(uVar4 = llama_model_has_decoder(local_30), plVar1 = local_8, (uVar4 & 1) != 0)) {
memcpy(local_a0,local_10,0x38);
iVar2 = llama_decode(plVar1);
if ((iVar2 < 0) && (-1 < common_log_verbosity_thold)) {
uVar3 = common_log_main();
common_log_add(uVar3,4,"%s : failed to decode\n","batch_decode");
}
}
}
else {
memcpy(local_68,local_10,0x38);
iVar2 = llama_encode(plVar1);
if ((iVar2 < 0) && (-1 < common_log_verbosity_thold)) {
uVar3 = common_log_main();
common_log_add(uVar3,4,"%s : failed to encode\n","batch_decode");
}
}
for (local_a4 = 0; local_a4 < *(int *)local_10; local_a4 = local_a4 + 1) {
if (*(char *)(*(long *)(local_10 + 0x30) + (long)local_a4) != '\0') {
if (local_28 == 0) {
local_b0 = (float *)llama_get_embeddings_ith(local_8,local_a4);
local_b4 = local_a4;
if (local_b0 == (float *)0x0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/examples/embedding/embedding.cpp"
,0x44,"GGML_ASSERT(%s) failed",
"embd != NULL && \"failed to get token embeddings\"");
}
}
else {
local_b0 = (float *)llama_get_embeddings_seq
(local_8,**(int4 **)
(*(long *)(local_10 + 0x28) + (long)local_a4 * 8));
local_b4 = **(int **)(*(long *)(local_10 + 0x28) + (long)local_a4 * 8);
if (local_b0 == (float *)0x0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/examples/embedding/embedding.cpp"
,0x49,"GGML_ASSERT(%s) failed",
"embd != NULL && \"failed to get sequence embeddings\"");
}
}
common_embd_normalize(local_b0,local_18 + local_b4 * local_20,local_20,local_24);
}
}
return;
}
| |
49,757 | init_alloc_root | eloqsql/mysys/my_alloc.c | void init_alloc_root(PSI_memory_key key, MEM_ROOT *mem_root, size_t block_size,
size_t pre_alloc_size __attribute__((unused)),
myf my_flags)
{
DBUG_ENTER("init_alloc_root");
DBUG_PRINT("enter",("root: %p prealloc: %zu", mem_root, pre_alloc_size));
mem_root->free= mem_root->used= mem_root->pre_alloc= 0;
mem_root->min_malloc= 32;
mem_root->block_size= (block_size - ALLOC_ROOT_MIN_BLOCK_SIZE) & ~1;
if (my_flags & MY_THREAD_SPECIFIC)
mem_root->block_size|= 1;
mem_root->error_handler= 0;
mem_root->block_num= 4; /* We shift this with >>2 */
mem_root->first_block_usage= 0;
mem_root->m_psi_key= key;
#if !(defined(HAVE_valgrind) && defined(EXTRA_DEBUG))
if (pre_alloc_size)
{
size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM));
if ((mem_root->free= mem_root->pre_alloc=
(USED_MEM*) my_malloc(key, size, MYF(my_flags))))
{
mem_root->free->size= size;
mem_root->free->left= pre_alloc_size;
mem_root->free->next= 0;
TRASH_MEM(mem_root->free);
}
}
#endif
DBUG_VOID_RETURN;
} | O0 | c | init_alloc_root:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
jmp 0xf21cd
movq -0x10(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x10(%rbp), %rax
movq $0x0, (%rax)
movq -0x10(%rbp), %rax
movq $0x20, 0x18(%rax)
movq -0x18(%rbp), %rcx
subq $0x28, %rcx
andq $-0x2, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x28(%rbp), %rax
andq $0x10000, %rax # imm = 0x10000
cmpq $0x0, %rax
je 0xf2230
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rcx
orq $0x1, %rcx
movq %rcx, 0x20(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x30(%rax)
movq -0x10(%rbp), %rax
movl $0x4, 0x28(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x2c(%rax)
movl -0x4(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x38(%rax)
cmpq $0x0, -0x20(%rbp)
je 0xf22ca
movq -0x20(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x30(%rbp)
movl -0x4(%rbp), %edi
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0xfc090
movq -0x10(%rbp), %rcx
movq %rax, 0x10(%rcx)
movq -0x10(%rbp), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
je 0xf22c8
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq $0x0, (%rax)
jmp 0xf22c2
jmp 0xf22c4
jmp 0xf22c6
jmp 0xf22c8
jmp 0xf22ca
jmp 0xf22cc
jmp 0xf22ce
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| init_alloc_root:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
jmp short $+2
loc_F21CD:
mov rax, [rbp+var_10]
mov qword ptr [rax+10h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+8], 0
mov rax, [rbp+var_10]
mov qword ptr [rax], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+18h], 20h ; ' '
mov rcx, [rbp+var_18]
sub rcx, 28h ; '('
and rcx, 0FFFFFFFFFFFFFFFEh
mov rax, [rbp+var_10]
mov [rax+20h], rcx
mov rax, [rbp+var_28]
and rax, 10000h
cmp rax, 0
jz short loc_F2230
mov rax, [rbp+var_10]
mov rcx, [rax+20h]
or rcx, 1
mov [rax+20h], rcx
loc_F2230:
mov rax, [rbp+var_10]
mov qword ptr [rax+30h], 0
mov rax, [rbp+var_10]
mov dword ptr [rax+28h], 4
mov rax, [rbp+var_10]
mov dword ptr [rax+2Ch], 0
mov ecx, [rbp+var_4]
mov rax, [rbp+var_10]
mov [rax+38h], ecx
cmp [rbp+var_20], 0
jz short loc_F22CA
mov rax, [rbp+var_20]
add rax, 18h
mov [rbp+var_30], rax
mov edi, [rbp+var_4]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_28]
call my_malloc
mov rcx, [rbp+var_10]
mov [rcx+10h], rax
mov rcx, [rbp+var_10]
mov [rcx], rax
cmp rax, 0
jz short loc_F22C8
mov rcx, [rbp+var_30]
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rax+10h], rcx
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rax+8], rcx
mov rax, [rbp+var_10]
mov rax, [rax]
mov qword ptr [rax], 0
jmp short $+2
loc_F22C2:
jmp short $+2
loc_F22C4:
jmp short $+2
loc_F22C6:
jmp short $+2
loc_F22C8:
jmp short $+2
loc_F22CA:
jmp short $+2
loc_F22CC:
jmp short $+2
loc_F22CE:
add rsp, 30h
pop rbp
retn
| long long init_alloc_root(unsigned int a1, long long *a2, long long a3, long long a4, long long a5)
{
long long result; // rax
a2[2] = 0LL;
a2[1] = 0LL;
*a2 = 0LL;
a2[3] = 32LL;
a2[4] = (a3 - 40) & 0xFFFFFFFFFFFFFFFELL;
if ( (a5 & 0x10000) != 0 )
a2[4] |= 1uLL;
a2[6] = 0LL;
*((_DWORD *)a2 + 10) = 4;
*((_DWORD *)a2 + 11) = 0;
result = (long long)a2;
*((_DWORD *)a2 + 14) = a1;
if ( a4 )
{
result = my_malloc(a1, a4 + 24, a5);
a2[2] = result;
*a2 = result;
if ( result )
{
*(_QWORD *)(*a2 + 16) = a4 + 24;
*(_QWORD *)(*a2 + 8) = a4;
result = *a2;
*(_QWORD *)*a2 = 0LL;
}
}
return result;
}
| init_alloc_root:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
JMP 0x001f21cd
LAB_001f21cd:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],0x20
MOV RCX,qword ptr [RBP + -0x18]
SUB RCX,0x28
AND RCX,-0x2
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],RCX
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x10000
CMP RAX,0x0
JZ 0x001f2230
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x20]
OR RCX,0x1
MOV qword ptr [RAX + 0x20],RCX
LAB_001f2230:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x30],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x28],0x4
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x2c],0x0
MOV ECX,dword ptr [RBP + -0x4]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x38],ECX
CMP qword ptr [RBP + -0x20],0x0
JZ 0x001f22ca
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x18
MOV qword ptr [RBP + -0x30],RAX
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x001fc090
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x10],RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX],RAX
CMP RAX,0x0
JZ 0x001f22c8
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX],0x0
JMP 0x001f22c2
LAB_001f22c2:
JMP 0x001f22c4
LAB_001f22c4:
JMP 0x001f22c6
LAB_001f22c6:
JMP 0x001f22c8
LAB_001f22c8:
JMP 0x001f22ca
LAB_001f22ca:
JMP 0x001f22cc
LAB_001f22cc:
JMP 0x001f22ce
LAB_001f22ce:
ADD RSP,0x30
POP RBP
RET
|
void init_alloc_root(int4 param_1,long *param_2,long param_3,long param_4,ulong param_5)
{
long lVar1;
param_2[2] = 0;
param_2[1] = 0;
*param_2 = 0;
param_2[3] = 0x20;
param_2[4] = param_3 - 0x28U & 0xfffffffffffffffe;
if ((param_5 & 0x10000) != 0) {
param_2[4] = param_2[4] | 1;
}
param_2[6] = 0;
*(int4 *)(param_2 + 5) = 4;
*(int4 *)((long)param_2 + 0x2c) = 0;
*(int4 *)(param_2 + 7) = param_1;
if (param_4 != 0) {
lVar1 = my_malloc(param_1,param_4 + 0x18,param_5);
param_2[2] = lVar1;
*param_2 = lVar1;
if (lVar1 != 0) {
*(long *)(*param_2 + 0x10) = param_4 + 0x18;
*(long *)(*param_2 + 8) = param_4;
*(int8 *)*param_2 = 0;
}
}
return;
}
| |
49,758 | my_strnxfrm_latin1_de | eloqsql/strings/ctype-latin1.c | static size_t
my_strnxfrm_latin1_de(CHARSET_INFO *cs,
uchar *dst, size_t dstlen, uint nweights,
const uchar* src, size_t srclen, uint flags)
{
uchar *de= dst + dstlen;
const uchar *se= src + srclen;
uchar *d0= dst;
for ( ; src < se && dst < de && nweights; src++, nweights--)
{
uchar chr= combo1map[*src];
*dst++= chr;
if ((chr= combo2map[*src]) && dst < de && nweights > 1)
{
*dst++= chr;
nweights--;
}
}
return my_strxfrm_pad_desc_and_reverse(cs, d0, dst, de, nweights, flags, 0);
} | O0 | c | my_strnxfrm_latin1_de:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rcx
xorl %eax, %eax
cmpq -0x40(%rbp), %rcx
movb %al, -0x4a(%rbp)
jae 0x8ea4a
movq -0x10(%rbp), %rcx
xorl %eax, %eax
cmpq -0x38(%rbp), %rcx
movb %al, -0x4a(%rbp)
jae 0x8ea4a
cmpl $0x0, -0x1c(%rbp)
setne %al
movb %al, -0x4a(%rbp)
movb -0x4a(%rbp), %al
testb $0x1, %al
jne 0x8ea56
jmp 0x8eae7
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x102aba(%rip), %rax # 0x191520
movb (%rax,%rcx), %al
movb %al, -0x49(%rbp)
movb -0x49(%rbp), %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x102b90(%rip), %rax # 0x191620
movb (%rax,%rcx), %al
movb %al, -0x49(%rbp)
movzbl %al, %eax
cmpl $0x0, %eax
je 0x8eacb
movq -0x10(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0x8eacb
cmpl $0x1, -0x1c(%rbp)
jbe 0x8eacb
movb -0x49(%rbp), %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x1c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x8eacd
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movl -0x1c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x8ea22
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x38(%rbp), %rcx
movl -0x1c(%rbp), %r8d
movl 0x10(%rbp), %r9d
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x91af0
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| my_strnxfrm_latin1_de:
push rbp
mov rbp, rsp
sub rsp, 60h
mov eax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_38], rax
mov rax, [rbp+var_28]
add rax, [rbp+var_30]
mov [rbp+var_40], rax
mov rax, [rbp+var_10]
mov [rbp+var_48], rax
loc_8EA22:
mov rcx, [rbp+var_28]
xor eax, eax
cmp rcx, [rbp+var_40]
mov [rbp+var_4A], al
jnb short loc_8EA4A
mov rcx, [rbp+var_10]
xor eax, eax
cmp rcx, [rbp+var_38]
mov [rbp+var_4A], al
jnb short loc_8EA4A
cmp [rbp+var_1C], 0
setnz al
mov [rbp+var_4A], al
loc_8EA4A:
mov al, [rbp+var_4A]
test al, 1
jnz short loc_8EA56
jmp loc_8EAE7
loc_8EA56:
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, combo1map
mov al, [rax+rcx]
mov [rbp+var_49], al
mov cl, [rbp+var_49]
mov rax, [rbp+var_10]
mov rdx, rax
add rdx, 1
mov [rbp+var_10], rdx
mov [rax], cl
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, combo2map
mov al, [rax+rcx]
mov [rbp+var_49], al
movzx eax, al
cmp eax, 0
jz short loc_8EACB
mov rax, [rbp+var_10]
cmp rax, [rbp+var_38]
jnb short loc_8EACB
cmp [rbp+var_1C], 1
jbe short loc_8EACB
mov cl, [rbp+var_49]
mov rax, [rbp+var_10]
mov rdx, rax
add rdx, 1
mov [rbp+var_10], rdx
mov [rax], cl
mov eax, [rbp+var_1C]
add eax, 0FFFFFFFFh
mov [rbp+var_1C], eax
loc_8EACB:
jmp short $+2
loc_8EACD:
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
mov eax, [rbp+var_1C]
add eax, 0FFFFFFFFh
mov [rbp+var_1C], eax
jmp loc_8EA22
loc_8EAE7:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_48]
mov rdx, [rbp+var_10]
mov rcx, [rbp+var_38]
mov r8d, [rbp+var_1C]
mov r9d, [rbp+arg_0]
xor eax, eax
mov [rsp+60h+var_60], 0
call my_strxfrm_pad_desc_and_reverse
add rsp, 60h
pop rbp
retn
| long long my_strnxfrm_latin1_de(
int a1,
unsigned __int8 *a2,
long long a3,
unsigned int a4,
unsigned __int8 *a5,
long long a6,
int a7)
{
unsigned __int8 *v7; // rax
unsigned __int8 *v8; // rax
bool v10; // [rsp+16h] [rbp-4Ah]
unsigned __int8 v11; // [rsp+17h] [rbp-49h]
unsigned long long v12; // [rsp+28h] [rbp-38h]
unsigned __int8 *v13; // [rsp+38h] [rbp-28h]
unsigned __int8 *v15; // [rsp+50h] [rbp-10h]
v15 = a2;
v13 = a5;
v12 = (unsigned long long)&a2[a3];
while ( 1 )
{
v10 = 0;
if ( v13 < &a5[a6] )
{
v10 = 0;
if ( (unsigned long long)v15 < v12 )
v10 = a4 != 0;
}
if ( !v10 )
break;
v7 = v15++;
*v7 = combo1map[*v13];
v11 = combo2map[*v13];
if ( v11 && (unsigned long long)v15 < v12 && a4 > 1 )
{
v8 = v15++;
*v8 = v11;
--a4;
}
++v13;
--a4;
}
return my_strxfrm_pad_desc_and_reverse(a1, (_DWORD)a2, (_DWORD)v15, v12, a4, a7, 0);
}
| my_strnxfrm_latin1_de:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV EAX,dword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV dword ptr [RBP + -0x1c],ECX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x48],RAX
LAB_0018ea22:
MOV RCX,qword ptr [RBP + -0x28]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x40]
MOV byte ptr [RBP + -0x4a],AL
JNC 0x0018ea4a
MOV RCX,qword ptr [RBP + -0x10]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x38]
MOV byte ptr [RBP + -0x4a],AL
JNC 0x0018ea4a
CMP dword ptr [RBP + -0x1c],0x0
SETNZ AL
MOV byte ptr [RBP + -0x4a],AL
LAB_0018ea4a:
MOV AL,byte ptr [RBP + -0x4a]
TEST AL,0x1
JNZ 0x0018ea56
JMP 0x0018eae7
LAB_0018ea56:
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x291520]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x49],AL
MOV CL,byte ptr [RBP + -0x49]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x291620]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x49],AL
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x0018eacb
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x0018eacb
CMP dword ptr [RBP + -0x1c],0x1
JBE 0x0018eacb
MOV CL,byte ptr [RBP + -0x49]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x1c],EAX
LAB_0018eacb:
JMP 0x0018eacd
LAB_0018eacd:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x0018ea22
LAB_0018eae7:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x38]
MOV R8D,dword ptr [RBP + -0x1c]
MOV R9D,dword ptr [RBP + 0x10]
XOR EAX,EAX
MOV dword ptr [RSP],0x0
CALL 0x00191af0
ADD RSP,0x60
POP RBP
RET
|
void my_strnxfrm_latin1_de
(int8 param_1,char *param_2,long param_3,uint param_4,byte *param_5,
long param_6,int4 param_7)
{
char *pcVar1;
char *pcVar2;
bool bVar3;
byte *local_30;
uint local_24;
char *local_18;
pcVar1 = param_2 + param_3;
local_30 = param_5;
local_24 = param_4;
local_18 = param_2;
while( true ) {
bVar3 = false;
if ((local_30 < param_5 + param_6) && (bVar3 = false, local_18 < pcVar1)) {
bVar3 = local_24 != 0;
}
if (!bVar3) break;
pcVar2 = local_18 + 1;
*local_18 = combo1map[*local_30];
if (((combo2map[*local_30] != '\0') && (pcVar2 < pcVar1)) && (1 < local_24)) {
*pcVar2 = combo2map[*local_30];
local_24 = local_24 - 1;
pcVar2 = local_18 + 2;
}
local_18 = pcVar2;
local_30 = local_30 + 1;
local_24 = local_24 - 1;
}
my_strxfrm_pad_desc_and_reverse(param_1,param_2,local_18,pcVar1,local_24,param_7,0);
return;
}
| |
49,759 | reset_simple_key_cache_counters | eloqsql/mysys/mf_keycache.c | static
int reset_simple_key_cache_counters(const char *name __attribute__((unused)),
SIMPLE_KEY_CACHE_CB *keycache)
{
DBUG_ENTER("reset_simple_key_cache_counters");
if (!keycache->key_cache_inited)
{
DBUG_PRINT("info", ("Key cache %s not initialized.", name));
DBUG_RETURN(0);
}
DBUG_PRINT("info", ("Resetting counters for key cache %s.", name));
keycache->global_blocks_changed= 0; /* Key_blocks_not_flushed */
keycache->global_cache_r_requests= 0; /* Key_read_requests */
keycache->global_cache_read= 0; /* Key_reads */
keycache->global_cache_w_requests= 0; /* Key_write_requests */
keycache->global_cache_write= 0; /* Key_writes */
DBUG_RETURN(0);
} | O3 | c | reset_simple_key_cache_counters:
pushq %rbp
movq %rsp, %rbp
cmpb $0x0, (%rsi)
je 0x57a8e
xorps %xmm0, %xmm0
movups %xmm0, 0x148(%rsi)
movups %xmm0, 0x138(%rsi)
movq $0x0, 0x158(%rsi)
xorl %eax, %eax
popq %rbp
retq
| reset_simple_key_cache_counters:
push rbp
mov rbp, rsp
cmp byte ptr [rsi], 0
jz short loc_57A8E
xorps xmm0, xmm0
movups xmmword ptr [rsi+148h], xmm0
movups xmmword ptr [rsi+138h], xmm0
mov qword ptr [rsi+158h], 0
loc_57A8E:
xor eax, eax
pop rbp
retn
| long long reset_simple_key_cache_counters(long long a1, long long a2)
{
if ( *(_BYTE *)a2 )
{
*(_OWORD *)(a2 + 328) = 0LL;
*(_OWORD *)(a2 + 312) = 0LL;
*(_QWORD *)(a2 + 344) = 0LL;
}
return 0LL;
}
| reset_simple_key_cache_counters:
PUSH RBP
MOV RBP,RSP
CMP byte ptr [RSI],0x0
JZ 0x00157a8e
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSI + 0x148],XMM0
MOVUPS xmmword ptr [RSI + 0x138],XMM0
MOV qword ptr [RSI + 0x158],0x0
LAB_00157a8e:
XOR EAX,EAX
POP RBP
RET
|
int8 reset_simple_key_cache_counters(int8 param_1,char *param_2)
{
if (*param_2 != '\0') {
param_2[0x148] = '\0';
param_2[0x149] = '\0';
param_2[0x14a] = '\0';
param_2[0x14b] = '\0';
param_2[0x14c] = '\0';
param_2[0x14d] = '\0';
param_2[0x14e] = '\0';
param_2[0x14f] = '\0';
param_2[0x150] = '\0';
param_2[0x151] = '\0';
param_2[0x152] = '\0';
param_2[0x153] = '\0';
param_2[0x154] = '\0';
param_2[0x155] = '\0';
param_2[0x156] = '\0';
param_2[0x157] = '\0';
param_2[0x138] = '\0';
param_2[0x139] = '\0';
param_2[0x13a] = '\0';
param_2[0x13b] = '\0';
param_2[0x13c] = '\0';
param_2[0x13d] = '\0';
param_2[0x13e] = '\0';
param_2[0x13f] = '\0';
param_2[0x140] = '\0';
param_2[0x141] = '\0';
param_2[0x142] = '\0';
param_2[0x143] = '\0';
param_2[0x144] = '\0';
param_2[0x145] = '\0';
param_2[0x146] = '\0';
param_2[0x147] = '\0';
param_2[0x158] = '\0';
param_2[0x159] = '\0';
param_2[0x15a] = '\0';
param_2[0x15b] = '\0';
param_2[0x15c] = '\0';
param_2[0x15d] = '\0';
param_2[0x15e] = '\0';
param_2[0x15f] = '\0';
}
return 0;
}
| |
49,760 | ggml_get_f32_nd | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c | float ggml_get_f32_nd(const struct ggml_tensor * tensor, int i0, int i1, int i2, int i3) {
void * data = (char *) tensor->data + i0*tensor->nb[0] + i1*tensor->nb[1] + i2*tensor->nb[2] + i3*tensor->nb[3];
switch (tensor->type) {
case GGML_TYPE_I8:
return ((int8_t *) data)[0];
case GGML_TYPE_I16:
return ((int16_t *) data)[0];
case GGML_TYPE_I32:
return ((int32_t *) data)[0];
case GGML_TYPE_F16:
return GGML_FP16_TO_FP32(((ggml_fp16_t *) data)[0]);
case GGML_TYPE_BF16:
return GGML_BF16_TO_FP32(((ggml_bf16_t *) data)[0]);
case GGML_TYPE_F32:
return ((float *) data)[0];
default:
GGML_ABORT("fatal error");
}
} | O2 | c | ggml_get_f32_nd:
movslq %esi, %rsi
imulq 0x30(%rdi), %rsi
addq 0xf8(%rdi), %rsi
movslq %edx, %rdx
imulq 0x38(%rdi), %rdx
movslq %ecx, %rax
imulq 0x40(%rdi), %rax
addq %rdx, %rax
addq %rsi, %rax
movslq %r8d, %rcx
imulq 0x48(%rdi), %rcx
movl (%rdi), %edx
leal -0x18(%rdx), %esi
cmpl $0x6, %esi
ja 0xa03f
leaq 0x29094(%rip), %rdx # 0x330c4
movslq (%rdx,%rsi,4), %rsi
addq %rdx, %rsi
jmpq *%rsi
movsbl (%rax,%rcx), %eax
jmp 0xa05d
testl %edx, %edx
je 0xa074
cmpl $0x1, %edx
jne 0xa07a
movzwl (%rax,%rcx), %eax
movq 0x3bf15(%rip), %rcx # 0x45f68
vmovss (%rcx,%rax,4), %xmm0
retq
movswl (%rax,%rcx), %eax
vcvtsi2ss %eax, %xmm0, %xmm0
retq
vcvtsi2ssl (%rax,%rcx), %xmm0, %xmm0
retq
movzwl (%rax,%rcx), %eax
shll $0x10, %eax
vmovd %eax, %xmm0
retq
vmovss (%rax,%rcx), %xmm0
retq
pushq %rax
leaq 0x296d8(%rip), %rdi # 0x3375a
leaq 0x2992c(%rip), %rdx # 0x339b5
movl $0xb08, %esi # imm = 0xB08
xorl %eax, %eax
callq 0x8b10
| ggml_get_f32_nd:
movsxd rsi, esi
imul rsi, [rdi+30h]
add rsi, [rdi+0F8h]
movsxd rdx, edx
imul rdx, [rdi+38h]
movsxd rax, ecx
imul rax, [rdi+40h]
add rax, rdx
add rax, rsi
movsxd rcx, r8d
imul rcx, [rdi+48h]
mov edx, [rdi]
lea esi, [rdx-18h]; switch 7 cases
cmp esi, 6
ja short def_A037; jumptable 000000000000A037 default case
lea rdx, jpt_A037
movsxd rsi, ds:(jpt_A037 - 330C4h)[rdx+rsi*4]
add rsi, rdx
jmp rsi; switch jump
loc_A039:
movsx eax, byte ptr [rax+rcx]; jumptable 000000000000A037 case 24
jmp short loc_A05D
def_A037:
test edx, edx; jumptable 000000000000A037 default case
jz short loc_A074
cmp edx, 1
jnz short loc_A07A; jumptable 000000000000A037 cases 27-29
movzx eax, word ptr [rax+rcx]
mov rcx, cs:ggml_table_f32_f16_ptr
vmovss xmm0, dword ptr [rcx+rax*4]
retn
loc_A059:
movsx eax, word ptr [rax+rcx]; jumptable 000000000000A037 case 25
loc_A05D:
vcvtsi2ss xmm0, xmm0, eax
retn
loc_A062:
vcvtsi2ss xmm0, xmm0, dword ptr [rax+rcx]; jumptable 000000000000A037 case 26
retn
loc_A068:
movzx eax, word ptr [rax+rcx]; jumptable 000000000000A037 case 30
shl eax, 10h
vmovd xmm0, eax
retn
loc_A074:
vmovss xmm0, dword ptr [rax+rcx]
retn
loc_A07A:
push rax; jumptable 000000000000A037 cases 27-29
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aFatalError; "fatal error"
mov esi, 0B08h
xor eax, eax
call _ggml_abort
| long long ggml_get_f32_nd(int *a1, int a2, int a3, int a4, int a5, __m128 _XMM0)
{
long long result; // rax
int v8; // edx
result = *((_QWORD *)a1 + 31) + *((_QWORD *)a1 + 6) * a2 + *((_QWORD *)a1 + 7) * a3 + *((_QWORD *)a1 + 8) * a4;
_RCX = *((_QWORD *)a1 + 9) * a5;
v8 = *a1;
switch ( *a1 )
{
case 24:
result = (unsigned int)*(char *)(result + _RCX);
goto LABEL_7;
case 25:
result = (unsigned int)*(__int16 *)(result + _RCX);
LABEL_7:
__asm { vcvtsi2ss xmm0, xmm0, eax }
return result;
case 26:
__asm { vcvtsi2ss xmm0, xmm0, dword ptr [rax+rcx]; jumptable 000000000000A037 case 26 }
return result;
case 27:
case 28:
case 29:
goto LABEL_11;
case 30:
result = *(unsigned __int16 *)(result + _RCX) << 16;
__asm { vmovd xmm0, eax }
return result;
default:
if ( v8 )
{
if ( v8 == 1 )
{
result = *(unsigned __int16 *)(result + _RCX);
_RCX = &ggml_table_f32_f16;
__asm { vmovss xmm0, dword ptr [rcx+rax*4] }
}
else
{
LABEL_11:
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
2824LL,
"fatal error",
_RCX);
return ggml_set_f32_1d();
}
}
else
{
__asm { vmovss xmm0, dword ptr [rax+rcx] }
}
return result;
}
}
| ggml_get_f32_nd:
MOVSXD RSI,ESI
IMUL RSI,qword ptr [RDI + 0x30]
ADD RSI,qword ptr [RDI + 0xf8]
MOVSXD RDX,EDX
IMUL RDX,qword ptr [RDI + 0x38]
MOVSXD RAX,ECX
IMUL RAX,qword ptr [RDI + 0x40]
ADD RAX,RDX
ADD RAX,RSI
MOVSXD RCX,R8D
IMUL RCX,qword ptr [RDI + 0x48]
MOV EDX,dword ptr [RDI]
LEA ESI,[RDX + -0x18]
CMP ESI,0x6
JA 0x0010a03f
LEA RDX,[0x1330c4]
MOVSXD RSI,dword ptr [RDX + RSI*0x4]
ADD RSI,RDX
switchD:
JMP RSI
caseD_18:
MOVSX EAX,byte ptr [RAX + RCX*0x1]
JMP 0x0010a05d
default:
TEST EDX,EDX
JZ 0x0010a074
CMP EDX,0x1
JNZ 0x0010a07a
MOVZX EAX,word ptr [RAX + RCX*0x1]
MOV RCX,qword ptr [0x00145f68]
VMOVSS XMM0,dword ptr [RCX + RAX*0x4]
RET
caseD_19:
MOVSX EAX,word ptr [RAX + RCX*0x1]
LAB_0010a05d:
VCVTSI2SS XMM0,XMM0,EAX
RET
caseD_1a:
VCVTSI2SS XMM0,XMM0,dword ptr [RAX + RCX*0x1]
RET
caseD_1e:
MOVZX EAX,word ptr [RAX + RCX*0x1]
SHL EAX,0x10
VMOVD XMM0,EAX
RET
LAB_0010a074:
VMOVSS XMM0,dword ptr [RAX + RCX*0x1]
RET
caseD_1b:
PUSH RAX
LEA RDI,[0x13375a]
LEA RDX,[0x1339b5]
MOV ESI,0xb08
XOR EAX,EAX
CALL 0x00108b10
|
ulong ggml_get_f32_nd(int *param_1,int param_2,int param_3,int param_4,int param_5)
{
int iVar1;
long lVar2;
long lVar3;
int1 auVar4 [16];
int1 auVar5 [16];
int1 in_ZMM0 [64];
lVar2 = (long)param_4 * *(long *)(param_1 + 0x10) + (long)param_3 * *(long *)(param_1 + 0xe) +
(long)param_2 * *(long *)(param_1 + 0xc) + *(long *)(param_1 + 0x3e);
lVar3 = (long)param_5 * *(long *)(param_1 + 0x12);
iVar1 = *param_1;
auVar4._4_12_ = in_ZMM0._4_12_;
switch(iVar1) {
case 0x18:
iVar1 = (int)*(char *)(lVar2 + lVar3);
break;
case 0x19:
iVar1 = (int)*(short *)(lVar2 + lVar3);
break;
case 0x1a:
auVar5._0_4_ = (float)*(int *)(lVar2 + lVar3);
auVar5._4_12_ = auVar4._4_12_;
return auVar5._0_8_;
case 0x1e:
return (ulong)*(ushort *)(lVar2 + lVar3) << 0x10;
default:
if (iVar1 == 0) {
return (ulong)*(uint *)(lVar2 + lVar3);
}
if (iVar1 == 1) {
return (ulong)*(uint *)(PTR_ggml_table_f32_f16_00145f68 +
(ulong)*(ushort *)(lVar2 + lVar3) * 4);
}
case 0x1b:
case 0x1c:
case 0x1d:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0xb08,"fatal error");
}
auVar4._0_4_ = (float)iVar1;
return auVar4._0_8_;
}
| |
49,761 | ggml_get_f32_nd | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c | float ggml_get_f32_nd(const struct ggml_tensor * tensor, int i0, int i1, int i2, int i3) {
void * data = (char *) tensor->data + i0*tensor->nb[0] + i1*tensor->nb[1] + i2*tensor->nb[2] + i3*tensor->nb[3];
switch (tensor->type) {
case GGML_TYPE_I8:
return ((int8_t *) data)[0];
case GGML_TYPE_I16:
return ((int16_t *) data)[0];
case GGML_TYPE_I32:
return ((int32_t *) data)[0];
case GGML_TYPE_F16:
return GGML_FP16_TO_FP32(((ggml_fp16_t *) data)[0]);
case GGML_TYPE_BF16:
return GGML_BF16_TO_FP32(((ggml_bf16_t *) data)[0]);
case GGML_TYPE_F32:
return ((float *) data)[0];
default:
GGML_ABORT("fatal error");
}
} | O3 | c | ggml_get_f32_nd:
movslq %esi, %rsi
imulq 0x30(%rdi), %rsi
addq 0xf8(%rdi), %rsi
movslq %edx, %rdx
imulq 0x38(%rdi), %rdx
movslq %ecx, %rax
imulq 0x40(%rdi), %rax
addq %rdx, %rax
addq %rsi, %rax
movslq %r8d, %rcx
imulq 0x48(%rdi), %rcx
movl (%rdi), %edx
leal -0x18(%rdx), %esi
cmpl $0x6, %esi
ja 0xa5ff
leaq 0x2bc54(%rip), %rdx # 0x36244
movslq (%rdx,%rsi,4), %rsi
addq %rdx, %rsi
jmpq *%rsi
movsbl (%rax,%rcx), %eax
jmp 0xa61d
testl %edx, %edx
je 0xa634
cmpl $0x1, %edx
jne 0xa63a
movzwl (%rax,%rcx), %eax
movq 0x3e955(%rip), %rcx # 0x48f68
vmovss (%rcx,%rax,4), %xmm0
retq
movswl (%rax,%rcx), %eax
vcvtsi2ss %eax, %xmm0, %xmm0
retq
vcvtsi2ssl (%rax,%rcx), %xmm0, %xmm0
retq
movzwl (%rax,%rcx), %eax
shll $0x10, %eax
vmovd %eax, %xmm0
retq
vmovss (%rax,%rcx), %xmm0
retq
pushq %rax
leaq 0x2c228(%rip), %rdi # 0x3686a
leaq 0x2c47c(%rip), %rdx # 0x36ac5
movl $0xb08, %esi # imm = 0xB08
xorl %eax, %eax
callq 0x89c0
| ggml_get_f32_nd:
movsxd rsi, esi
imul rsi, [rdi+30h]
add rsi, [rdi+0F8h]
movsxd rdx, edx
imul rdx, [rdi+38h]
movsxd rax, ecx
imul rax, [rdi+40h]
add rax, rdx
add rax, rsi
movsxd rcx, r8d
imul rcx, [rdi+48h]
mov edx, [rdi]
lea esi, [rdx-18h]; switch 7 cases
cmp esi, 6
ja short def_A5F7; jumptable 000000000000A5F7 default case
lea rdx, jpt_A5F7
movsxd rsi, ds:(jpt_A5F7 - 36244h)[rdx+rsi*4]
add rsi, rdx
jmp rsi; switch jump
loc_A5F9:
movsx eax, byte ptr [rax+rcx]; jumptable 000000000000A5F7 case 24
jmp short loc_A61D
def_A5F7:
test edx, edx; jumptable 000000000000A5F7 default case
jz short loc_A634
cmp edx, 1
jnz short loc_A63A; jumptable 000000000000A5F7 cases 27-29
movzx eax, word ptr [rax+rcx]
mov rcx, cs:ggml_table_f32_f16_ptr
vmovss xmm0, dword ptr [rcx+rax*4]
retn
loc_A619:
movsx eax, word ptr [rax+rcx]; jumptable 000000000000A5F7 case 25
loc_A61D:
vcvtsi2ss xmm0, xmm0, eax
retn
loc_A622:
vcvtsi2ss xmm0, xmm0, dword ptr [rax+rcx]; jumptable 000000000000A5F7 case 26
retn
loc_A628:
movzx eax, word ptr [rax+rcx]; jumptable 000000000000A5F7 case 30
shl eax, 10h
vmovd xmm0, eax
retn
loc_A634:
vmovss xmm0, dword ptr [rax+rcx]
retn
loc_A63A:
push rax; jumptable 000000000000A5F7 cases 27-29
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aFatalError; "fatal error"
mov esi, 0B08h
xor eax, eax
call _ggml_abort
| long long ggml_get_f32_nd(int *a1, int a2, int a3, int a4, int a5, __m128 _XMM0)
{
long long result; // rax
int v8; // edx
result = *((_QWORD *)a1 + 31) + *((_QWORD *)a1 + 6) * a2 + *((_QWORD *)a1 + 7) * a3 + *((_QWORD *)a1 + 8) * a4;
_RCX = *((_QWORD *)a1 + 9) * a5;
v8 = *a1;
switch ( *a1 )
{
case 24:
result = (unsigned int)*(char *)(result + _RCX);
goto LABEL_7;
case 25:
result = (unsigned int)*(__int16 *)(result + _RCX);
LABEL_7:
__asm { vcvtsi2ss xmm0, xmm0, eax }
return result;
case 26:
__asm { vcvtsi2ss xmm0, xmm0, dword ptr [rax+rcx]; jumptable 000000000000A5F7 case 26 }
return result;
case 27:
case 28:
case 29:
goto LABEL_11;
case 30:
result = *(unsigned __int16 *)(result + _RCX) << 16;
__asm { vmovd xmm0, eax }
return result;
default:
if ( v8 )
{
if ( v8 == 1 )
{
result = *(unsigned __int16 *)(result + _RCX);
_RCX = &ggml_table_f32_f16;
__asm { vmovss xmm0, dword ptr [rcx+rax*4] }
}
else
{
LABEL_11:
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
2824LL,
"fatal error",
_RCX);
return ggml_set_f32_1d();
}
}
else
{
__asm { vmovss xmm0, dword ptr [rax+rcx] }
}
return result;
}
}
| ggml_get_f32_nd:
MOVSXD RSI,ESI
IMUL RSI,qword ptr [RDI + 0x30]
ADD RSI,qword ptr [RDI + 0xf8]
MOVSXD RDX,EDX
IMUL RDX,qword ptr [RDI + 0x38]
MOVSXD RAX,ECX
IMUL RAX,qword ptr [RDI + 0x40]
ADD RAX,RDX
ADD RAX,RSI
MOVSXD RCX,R8D
IMUL RCX,qword ptr [RDI + 0x48]
MOV EDX,dword ptr [RDI]
LEA ESI,[RDX + -0x18]
CMP ESI,0x6
JA 0x0010a5ff
LEA RDX,[0x136244]
MOVSXD RSI,dword ptr [RDX + RSI*0x4]
ADD RSI,RDX
switchD:
JMP RSI
caseD_18:
MOVSX EAX,byte ptr [RAX + RCX*0x1]
JMP 0x0010a61d
default:
TEST EDX,EDX
JZ 0x0010a634
CMP EDX,0x1
JNZ 0x0010a63a
MOVZX EAX,word ptr [RAX + RCX*0x1]
MOV RCX,qword ptr [0x00148f68]
VMOVSS XMM0,dword ptr [RCX + RAX*0x4]
RET
caseD_19:
MOVSX EAX,word ptr [RAX + RCX*0x1]
LAB_0010a61d:
VCVTSI2SS XMM0,XMM0,EAX
RET
caseD_1a:
VCVTSI2SS XMM0,XMM0,dword ptr [RAX + RCX*0x1]
RET
caseD_1e:
MOVZX EAX,word ptr [RAX + RCX*0x1]
SHL EAX,0x10
VMOVD XMM0,EAX
RET
LAB_0010a634:
VMOVSS XMM0,dword ptr [RAX + RCX*0x1]
RET
caseD_1b:
PUSH RAX
LEA RDI,[0x13686a]
LEA RDX,[0x136ac5]
MOV ESI,0xb08
XOR EAX,EAX
CALL 0x001089c0
|
ulong ggml_get_f32_nd(int *param_1,int param_2,int param_3,int param_4,int param_5)
{
int iVar1;
long lVar2;
long lVar3;
int1 auVar4 [16];
int1 auVar5 [16];
int1 in_ZMM0 [64];
lVar2 = (long)param_4 * *(long *)(param_1 + 0x10) + (long)param_3 * *(long *)(param_1 + 0xe) +
(long)param_2 * *(long *)(param_1 + 0xc) + *(long *)(param_1 + 0x3e);
lVar3 = (long)param_5 * *(long *)(param_1 + 0x12);
iVar1 = *param_1;
auVar4._4_12_ = in_ZMM0._4_12_;
switch(iVar1) {
case 0x18:
iVar1 = (int)*(char *)(lVar2 + lVar3);
break;
case 0x19:
iVar1 = (int)*(short *)(lVar2 + lVar3);
break;
case 0x1a:
auVar5._0_4_ = (float)*(int *)(lVar2 + lVar3);
auVar5._4_12_ = auVar4._4_12_;
return auVar5._0_8_;
case 0x1e:
return (ulong)*(ushort *)(lVar2 + lVar3) << 0x10;
default:
if (iVar1 == 0) {
return (ulong)*(uint *)(lVar2 + lVar3);
}
if (iVar1 == 1) {
return (ulong)*(uint *)(PTR_ggml_table_f32_f16_00148f68 +
(ulong)*(ushort *)(lVar2 + lVar3) * 4);
}
case 0x1b:
case 0x1c:
case 0x1d:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0xb08,"fatal error");
}
auVar4._0_4_ = (float)iVar1;
return auVar4._0_8_;
}
| |
49,762 | minja::Parser::parseIfExpression() | monkey531[P]llama/common/./minja.hpp | std::pair<std::shared_ptr<Expression>, std::shared_ptr<Expression>> parseIfExpression() {
auto condition = parseLogicalOr();
if (!condition) throw std::runtime_error("Expected condition expression");
static std::regex else_tok(R"(else\b)");
std::shared_ptr<Expression> else_expr;
if (!consumeToken(else_tok).empty()) {
else_expr = parseExpression();
if (!else_expr) throw std::runtime_error("Expected 'else' expression");
}
return std::pair(std::move(condition), std::move(else_expr));
} | O2 | cpp | minja::Parser::parseIfExpression():
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x39e4e
cmpq $0x0, (%r15)
je 0x3a164
movb 0xa8f06(%rip), %al # 0xe2f80
testb %al, %al
je 0x3a194
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
leaq 0xa8ed0(%rip), %rdx # 0xe2f60
leaq 0x20(%rsp), %rdi
pushq $0x1
popq %rcx
movq %r14, %rsi
callq 0x2f3f2
leaq 0x20(%rsp), %rdi
movq 0x8(%rdi), %r15
callq 0x20d78
testq %r15, %r15
je 0x3a117
leaq 0x20(%rsp), %rdi
pushq $0x1
popq %rdx
movq %r14, %rsi
callq 0x2f20e
movq %rsp, %r14
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x524c4
leaq 0x28(%rsp), %rdi
callq 0x2eeb2
movq (%r14), %rax
testq %rax, %rax
jne 0x3a11b
pushq $0x10
popq %rdi
callq 0x20390
movq %rax, %r14
leaq 0x6474a(%rip), %rsi # 0x9e841
movq %rax, %rdi
callq 0x20280
movq 0xa7ee2(%rip), %rsi # 0xe1fe8
movq 0xa7e63(%rip), %rdx # 0xe1f70
movq %r14, %rdi
callq 0x20b30
jmp 0x3a194
movq (%rsp), %rax
leaq 0x18(%rsp), %r14
movaps -0x8(%r14), %xmm0
andq $0x0, (%r14)
andq $0x0, -0x8(%r14)
movups %xmm0, (%rbx)
movq %rax, 0x10(%rbx)
leaq 0x8(%rsp), %rdi
movq (%rdi), %rax
andq $0x0, (%rdi)
movq %rax, 0x18(%rbx)
andq $0x0, -0x8(%rdi)
callq 0x2eeb2
movq %r14, %rdi
callq 0x2eeb2
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
pushq $0x10
popq %rdi
callq 0x20390
movq %rax, %r14
leaq 0x646a6(%rip), %rsi # 0x9e81c
movq %rax, %rdi
callq 0x20280
movq 0xa7e63(%rip), %rsi # 0xe1fe8
movq 0xa7de4(%rip), %rdx # 0xe1f70
movq %r14, %rdi
callq 0x20b30
leaq 0xa8de5(%rip), %rdi # 0xe2f80
callq 0x20bf0
testl %eax, %eax
je 0x3a082
leaq 0xa8db1(%rip), %rdi # 0xe2f60
leaq 0x64684(%rip), %rsi # 0x9e83a
pushq $0x10
popq %rdx
callq 0x2ef2e
leaq -0xb231(%rip), %rdi # 0x2ef94
leaq 0xa8d94(%rip), %rsi # 0xe2f60
leaq 0xa84f5(%rip), %rdx # 0xe26c8
callq 0x205f0
leaq 0xa8da1(%rip), %rdi # 0xe2f80
callq 0x20480
jmp 0x3a082
movq %rax, %rbx
leaq 0xa8d8d(%rip), %rdi # 0xe2f80
callq 0x20470
jmp 0x3a22a
jmp 0x3a21d
movq %rax, %rbx
movq %r14, %rdi
callq 0x20520
jmp 0x3a220
movq %rax, %rbx
jmp 0x3a22a
movq %rax, %rbx
movq %r14, %rdi
callq 0x20520
jmp 0x3a22a
jmp 0x3a21d
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2eeb2
leaq 0x18(%rsp), %rdi
callq 0x2eeb2
movq %rbx, %rdi
callq 0x20b90
| _ZN5minja6Parser17parseIfExpressionEv:
push r15
push r14
push rbx
sub rsp, 40h
mov r14, rsi
mov rbx, rdi
lea r15, [rsp+58h+var_48]
mov rdi, r15; this
call _ZN5minja6Parser14parseLogicalOrEv; minja::Parser::parseLogicalOr(void)
cmp qword ptr [r15], 0
jz loc_3A164
mov al, cs:_ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; `guard variable for'minja::Parser::parseIfExpression(void)::else_tok
test al, al
jz loc_3A194
loc_3A082:
xorps xmm0, xmm0
movaps [rsp+58h+var_58], xmm0
lea rdx, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; minja::Parser::parseIfExpression(void)::else_tok
lea rdi, [rsp+58h+var_38]
push 1
pop rcx
mov rsi, r14
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling)
lea rdi, [rsp+58h+var_38]; void *
mov r15, [rdi+8]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test r15, r15
jz short loc_3A117
lea rdi, [rsp+58h+var_38]; this
push 1
pop rdx
mov rsi, r14; bool
call _ZN5minja6Parser15parseExpressionEb; minja::Parser::parseExpression(bool)
mov r14, rsp
lea rsi, [rsp+58h+var_38]
mov rdi, r14
call _ZNSt12__shared_ptrIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2EEaSEOS4_; std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>&&)
lea rdi, [rsp+58h+var_30]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rax, [r14]
test rax, rax
jnz short loc_3A11B
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedElseEx; "Expected 'else' expression"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp short loc_3A194
loc_3A117:
mov rax, qword ptr [rsp+58h+var_58]
loc_3A11B:
lea r14, [rsp+58h+var_40]
movaps xmm0, xmmword ptr [r14-8]
and qword ptr [r14], 0
and qword ptr [r14-8], 0
movups xmmword ptr [rbx], xmm0
mov [rbx+10h], rax
lea rdi, [rsp+58h+var_58+8]
mov rax, [rdi]
and qword ptr [rdi], 0
mov [rbx+18h], rax
and qword ptr [rdi-8], 0
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rax, rbx
add rsp, 40h
pop rbx
pop r14
pop r15
retn
loc_3A164:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedCondit_1; "Expected condition expression"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_3A194:
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_3A082
lea rdi, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; minja::Parser::parseIfExpression(void)::else_tok
lea rsi, aElseB; "else\\b"
push 10h
pop rdx
call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type)
lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc
lea rsi, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_3A082
mov rbx, rax
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_3A22A
jmp short loc_3A21D
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_3A220
mov rbx, rax
jmp short loc_3A22A
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_3A22A
jmp short $+2
loc_3A21D:
mov rbx, rax
loc_3A220:
lea rdi, [rsp+arg_0]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
loc_3A22A:
lea rdi, [rsp+arg_10]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, rbx
call __Unwind_Resume
| minja::Parser * minja::Parser::parseIfExpression(minja::Parser *this, _QWORD *a2)
{
long long v2; // r15
long long v3; // rax
std::runtime_error *v4; // r14
__int128 v5; // xmm0
long long v6; // rax
std::runtime_error *exception; // r14
__int128 v9; // [rsp+0h] [rbp-58h] BYREF
__int128 v10; // [rsp+10h] [rbp-48h] BYREF
long long v11; // [rsp+20h] [rbp-38h] BYREF
_QWORD v12[6]; // [rsp+28h] [rbp-30h] BYREF
minja::Parser::parseLogicalOr((minja::Parser *)&v10, a2);
if ( !(_QWORD)v10 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected condition expression");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( !(_BYTE)`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11],
"else\\b",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]);
}
v9 = 0LL;
minja::Parser::consumeToken(&v11, (long long)a2, (int)&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11], 1u);
v2 = v12[0];
std::string::~string(&v11);
if ( v2 )
{
minja::Parser::parseExpression((minja::Parser *)&v11, a2, 1);
std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator=(&v9, &v11);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v12);
v3 = v9;
if ( !(_QWORD)v9 )
{
v4 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v4, "Expected 'else' expression");
__cxa_throw(
v4,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
}
else
{
v3 = v9;
}
v5 = v10;
v10 = 0uLL;
*(_OWORD *)this = v5;
*((_QWORD *)this + 2) = v3;
v6 = *((_QWORD *)&v9 + 1);
*((_QWORD *)&v9 + 1) = 0LL;
*((_QWORD *)this + 3) = v6;
*(_QWORD *)&v9 = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v9 + 1);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v10 + 1);
return this;
}
| |||
49,763 | minja::Parser::parseIfExpression() | monkey531[P]llama/common/./minja.hpp | std::pair<std::shared_ptr<Expression>, std::shared_ptr<Expression>> parseIfExpression() {
auto condition = parseLogicalOr();
if (!condition) throw std::runtime_error("Expected condition expression");
static std::regex else_tok(R"(else\b)");
std::shared_ptr<Expression> else_expr;
if (!consumeToken(else_tok).empty()) {
else_expr = parseExpression();
if (!else_expr) throw std::runtime_error("Expected 'else' expression");
}
return std::pair(std::move(condition), std::move(else_expr));
} | O3 | cpp | minja::Parser::parseIfExpression():
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %r15
movq %r15, %rdi
callq 0x3c238
cmpq $0x0, (%r15)
je 0x3c5a5
movb 0xb4a66(%rip), %al # 0xf0f50
testb %al, %al
je 0x3c5d7
leaq 0xb4a37(%rip), %rdx # 0xf0f30
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %ecx
callq 0x2fd6a
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
movq -0x8(%rax), %r15
cmpq %rax, %rdi
je 0x3c52a
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x186a0
testq %r15, %r15
je 0x3c584
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x2fb5e
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %r14
testq %rax, %rax
jne 0x3c589
movl $0x10, %edi
callq 0x18360
movq %rax, %r15
leaq 0x7ef67(%rip), %rsi # 0xbb4cb
movq %rax, %rdi
callq 0x18270
movq 0xb3a7d(%rip), %rsi # 0xefff0
movq 0xb3a06(%rip), %rdx # 0xeff80
movq %r15, %rdi
callq 0x18b30
jmp 0x3c5d7
xorl %eax, %eax
xorl %r14d, %r14d
movaps (%rsp), %xmm0
movups %xmm0, (%rbx)
movq %rax, 0x10(%rbx)
movq %r14, 0x18(%rbx)
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movl $0x10, %edi
callq 0x18360
movq %rax, %r14
leaq 0x7eeed(%rip), %rsi # 0xbb4a6
movq %rax, %rdi
callq 0x18270
movq 0xb3a28(%rip), %rsi # 0xefff0
movq 0xb39b1(%rip), %rdx # 0xeff80
movq %r14, %rdi
callq 0x18b30
leaq 0xb4972(%rip), %rdi # 0xf0f50
callq 0x18be0
testl %eax, %eax
je 0x3c4f2
leaq 0xb493e(%rip), %rdi # 0xf0f30
leaq 0x7eecb(%rip), %rsi # 0xbb4c4
movl $0x10, %edx
callq 0x2f87e
leaq -0xcd24(%rip), %rdi # 0x2f8e6
leaq 0xb491f(%rip), %rsi # 0xf0f30
leaq 0xb4080(%rip), %rdx # 0xf0698
callq 0x185d0
leaq 0xb492c(%rip), %rdi # 0xf0f50
callq 0x18450
jmp 0x3c4f2
movq %rax, %rbx
leaq 0xb4918(%rip), %rdi # 0xf0f50
callq 0x18440
jmp 0x3c672
movq %rax, %rbx
jmp 0x3c64f
movq %rax, %rbx
movq %r15, %rdi
callq 0x18500
testq %r14, %r14
je 0x3c672
movq %r14, %rdi
callq 0x2f80e
jmp 0x3c672
jmp 0x3c66f
movq %rax, %rbx
movq %r14, %rdi
callq 0x18500
jmp 0x3c672
jmp 0x3c66f
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3c681
callq 0x2f80e
movq %rbx, %rdi
callq 0x18b90
nop
| _ZN5minja6Parser17parseIfExpressionEv:
push r15
push r14
push rbx
sub rsp, 30h
mov r14, rsi
mov rbx, rdi
mov r15, rsp
mov rdi, r15; this
call _ZN5minja6Parser14parseLogicalOrEv; minja::Parser::parseLogicalOr(void)
cmp qword ptr [r15], 0
jz loc_3C5A5
mov al, cs:_ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; `guard variable for'minja::Parser::parseIfExpression(void)::else_tok
test al, al
jz loc_3C5D7
loc_3C4F2:
lea rdx, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; minja::Parser::parseIfExpression(void)::else_tok
lea rdi, [rsp+48h+var_38]
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling)
lea rax, [rsp+48h+var_28]
mov rdi, [rax-10h]; void *
mov r15, [rax-8]
cmp rdi, rax
jz short loc_3C52A
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3C52A:
test r15, r15
jz short loc_3C584
lea rdi, [rsp+48h+var_38]; this
mov rsi, r14; bool
mov edx, 1
call _ZN5minja6Parser15parseExpressionEb; minja::Parser::parseExpression(bool)
mov rax, [rsp+48h+var_38]
mov r14, [rsp+48h+var_30]
test rax, rax
jnz short loc_3C589
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aExpectedElseEx; "Expected 'else' expression"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
jmp short loc_3C5D7
loc_3C584:
xor eax, eax
xor r14d, r14d
loc_3C589:
movaps xmm0, [rsp+48h+var_48]
movups xmmword ptr [rbx], xmm0
mov [rbx+10h], rax
mov [rbx+18h], r14
mov rax, rbx
add rsp, 30h
pop rbx
pop r14
pop r15
retn
loc_3C5A5:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedCondit_1; "Expected condition expression"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_3C5D7:
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_3C4F2
lea rdi, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; minja::Parser::parseIfExpression(void)::else_tok
lea rsi, aElseB; "else\\b"
mov edx, 10h
call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type)
lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc
lea rsi, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_3C4F2
mov rbx, rax
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_3C672
mov rbx, rax
jmp short loc_3C64F
mov rbx, rax
mov rdi, r15; void *
call ___cxa_free_exception
loc_3C64F:
test r14, r14
jz short loc_3C672
mov rdi, r14
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
jmp short loc_3C672
jmp short loc_3C66F
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_3C672
jmp short $+2
loc_3C66F:
mov rbx, rax
loc_3C672:
mov rdi, [rsp+arg_0]
test rdi, rdi
jz short loc_3C681
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_3C681:
mov rdi, rbx
call __Unwind_Resume
| minja::Parser * minja::Parser::parseIfExpression(minja::Parser *this, long long *a2)
{
long long v2; // r15
long long *v3; // rax
long long v4; // r14
std::runtime_error *v5; // r15
std::runtime_error *exception; // r14
__int128 v8; // [rsp+0h] [rbp-48h] BYREF
long long *v9; // [rsp+10h] [rbp-38h] BYREF
long long v10; // [rsp+18h] [rbp-30h]
long long v11; // [rsp+20h] [rbp-28h] BYREF
minja::Parser::parseLogicalOr((volatile signed __int32 **)&v8, a2);
if ( !(_QWORD)v8 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected condition expression");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( !(_BYTE)`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11],
"else\\b",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]);
}
minja::Parser::consumeToken(
(long long)&v9,
(long long)a2,
(long long)&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11],
1u);
v2 = v10;
if ( v9 != &v11 )
operator delete(v9, v11 + 1);
if ( v2 )
{
minja::Parser::parseExpression((minja::Parser *)&v9, a2, 1);
v3 = v9;
v4 = v10;
if ( !v9 )
{
v5 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v5, "Expected 'else' expression");
__cxa_throw(
v5,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
}
else
{
v3 = 0LL;
v4 = 0LL;
}
*(_OWORD *)this = v8;
*((_QWORD *)this + 2) = v3;
*((_QWORD *)this + 3) = v4;
return this;
}
| parseIfExpression:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RSI
MOV RBX,RDI
MOV R15,RSP
MOV RDI,R15
CALL 0x0013c238
CMP qword ptr [R15],0x0
JZ 0x0013c5a5
MOV AL,byte ptr [0x001f0f50]
TEST AL,AL
JZ 0x0013c5d7
LAB_0013c4f2:
LEA RDX,[0x1f0f30]
LEA RDI,[RSP + 0x10]
MOV RSI,R14
MOV ECX,0x1
CALL 0x0012fd6a
LEA RAX,[RSP + 0x20]
MOV RDI,qword ptr [RAX + -0x10]
MOV R15,qword ptr [RAX + -0x8]
CMP RDI,RAX
JZ 0x0013c52a
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x001186a0
LAB_0013c52a:
TEST R15,R15
JZ 0x0013c584
LAB_0013c52f:
LEA RDI,[RSP + 0x10]
MOV RSI,R14
MOV EDX,0x1
CALL 0x0012fb5e
LAB_0013c541:
MOV RAX,qword ptr [RSP + 0x10]
MOV R14,qword ptr [RSP + 0x18]
TEST RAX,RAX
JNZ 0x0013c589
MOV EDI,0x10
CALL 0x00118360
MOV R15,RAX
LAB_0013c55d:
LEA RSI,[0x1bb4cb]
MOV RDI,RAX
CALL 0x00118270
LAB_0013c56c:
MOV RSI,qword ptr [0x001efff0]
MOV RDX,qword ptr [0x001eff80]
MOV RDI,R15
CALL 0x00118b30
LAB_0013c584:
XOR EAX,EAX
XOR R14D,R14D
LAB_0013c589:
MOVAPS XMM0,xmmword ptr [RSP]
MOVUPS xmmword ptr [RBX],XMM0
MOV qword ptr [RBX + 0x10],RAX
MOV qword ptr [RBX + 0x18],R14
MOV RAX,RBX
ADD RSP,0x30
POP RBX
POP R14
POP R15
RET
LAB_0013c5a5:
MOV EDI,0x10
CALL 0x00118360
MOV R14,RAX
LAB_0013c5b2:
LEA RSI,[0x1bb4a6]
MOV RDI,RAX
CALL 0x00118270
LAB_0013c5c1:
MOV RSI,qword ptr [0x001efff0]
MOV RDX,qword ptr [0x001eff80]
MOV RDI,R14
CALL 0x00118b30
LAB_0013c5d7:
LEA RDI,[0x1f0f50]
CALL 0x00118be0
TEST EAX,EAX
JZ 0x0013c4f2
LAB_0013c5eb:
LEA RDI,[0x1f0f30]
LEA RSI,[0x1bb4c4]
MOV EDX,0x10
CALL 0x0012f87e
LAB_0013c603:
LEA RDI,[0x12f8e6]
LEA RSI,[0x1f0f30]
LEA RDX,[0x1f0698]
CALL 0x001185d0
LEA RDI,[0x1f0f50]
CALL 0x00118450
JMP 0x0013c4f2
|
/* minja::Parser::parseIfExpression() */
void minja::Parser::parseIfExpression(void)
{
long lVar1;
int iVar2;
runtime_error *prVar3;
long *in_RDI;
long local_48;
long lStack_40;
long *local_38;
long local_30;
long local_28 [2];
parseLogicalOr();
if (local_48 == 0) {
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0013c5b2 to 0013c5c0 has its CatchHandler @ 0013c660 */
std::runtime_error::runtime_error(prVar3,"Expected condition expression");
/* try { // try from 0013c5c1 to 0013c5d6 has its CatchHandler @ 0013c65e */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar3,PTR_typeinfo_001efff0,PTR__runtime_error_001eff80);
}
if (parseIfExpression()::else_tok_abi_cxx11_ == '\0') {
iVar2 = __cxa_guard_acquire(&parseIfExpression()::else_tok_abi_cxx11_);
if (iVar2 != 0) {
/* try { // try from 0013c5eb to 0013c602 has its CatchHandler @ 0013c62e */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseIfExpression()::else_tok_abi_cxx11_,"else\\b",0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseIfExpression()::else_tok_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseIfExpression()::else_tok_abi_cxx11_);
}
}
/* try { // try from 0013c4f2 to 0013c50a has its CatchHandler @ 0013c66f */
consumeToken(&local_38);
lVar1 = local_30;
if (local_38 != local_28) {
operator_delete(local_38,local_28[0] + 1);
}
if (lVar1 == 0) {
local_38 = (long *)0x0;
local_30 = 0;
}
else {
/* try { // try from 0013c52f to 0013c540 has its CatchHandler @ 0013c66d */
parseExpression(SUB81(&local_38,0));
if (local_38 == (long *)0x0) {
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0013c55d to 0013c56b has its CatchHandler @ 0013c644 */
std::runtime_error::runtime_error(prVar3,"Expected \'else\' expression");
/* try { // try from 0013c56c to 0013c581 has its CatchHandler @ 0013c63f */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar3,PTR_typeinfo_001efff0,PTR__runtime_error_001eff80);
}
}
*in_RDI = local_48;
in_RDI[1] = lStack_40;
in_RDI[2] = (long)local_38;
in_RDI[3] = local_30;
return;
}
| |
49,764 | uf_varchar2 | eloqsql/storage/maria/ma_packrec.c | static void uf_varchar2(MARIA_COLUMNDEF *rec, MARIA_BIT_BUFF *bit_buff,
uchar *to, uchar *end __attribute__((unused)))
{
if (get_bit(bit_buff))
to[0]=to[1]=0; /* Zero lengths */
else
{
ulong length=get_bits(bit_buff,rec->space_length_bits);
int2store(to,length);
decode_bytes(rec,bit_buff,to+2,to+2+length);
}
} | O3 | c | uf_varchar2:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl 0x4(%rsi), %eax
testl %eax, %eax
je 0x44e96
movl (%r14), %r13d
decl %eax
movl %eax, 0x4(%r14)
btl %eax, %r13d
jae 0x44eb3
movw $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x43e6c
movl $0x1f, 0x4(%r14)
movl (%r14), %r13d
movl $0x1f, %eax
testl %r13d, %r13d
js 0x44e82
movl 0x24(%r15), %r12d
movl %eax, %ecx
subl %r12d, %ecx
jae 0x44ef8
subl %eax, %r12d
movl %eax, %eax
leaq 0xa1f16(%rip), %rcx # 0xe6de0
andl (%rcx,%rax,4), %r13d
movl %r12d, %ecx
shll %cl, %r13d
movq %r14, %rdi
callq 0x43e6c
movl $0x20, %eax
subl %r12d, %eax
movl %eax, 0x4(%r14)
movl (%r14), %eax
negl %r12d
movl %r12d, %ecx
shrl %cl, %eax
addl %eax, %r13d
jmp 0x44f0e
movl %ecx, 0x4(%r14)
shrl %cl, %r13d
movl 0x24(%r15), %eax
leaq 0xa1ed6(%rip), %rcx # 0xe6de0
andl (%rcx,%rax,4), %r13d
movl %r13d, %eax
movw %r13w, (%rbx)
leaq (%rbx,%rax), %rcx
addq $0x2, %rcx
addq $0x2, %rbx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x44029
| uf_varchar2:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov eax, [rsi+4]
test eax, eax
jz short loc_44E96
mov r13d, [r14]
dec eax
mov [r14+4], eax
bt r13d, eax
jnb short loc_44EB3
loc_44E82:
mov word ptr [rbx], 0
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_44E96:
mov rdi, r14
call fill_buffer
mov dword ptr [r14+4], 1Fh
mov r13d, [r14]
mov eax, 1Fh
test r13d, r13d
js short loc_44E82
loc_44EB3:
mov r12d, [r15+24h]
mov ecx, eax
sub ecx, r12d
jnb short loc_44EF8
sub r12d, eax
mov eax, eax
lea rcx, mask
and r13d, [rcx+rax*4]
mov ecx, r12d
shl r13d, cl
mov rdi, r14
call fill_buffer
mov eax, 20h ; ' '
sub eax, r12d
mov [r14+4], eax
mov eax, [r14]
neg r12d
mov ecx, r12d
shr eax, cl
add r13d, eax
jmp short loc_44F0E
loc_44EF8:
mov [r14+4], ecx
shr r13d, cl
mov eax, [r15+24h]
lea rcx, mask
and r13d, [rcx+rax*4]
loc_44F0E:
mov eax, r13d
mov [rbx], r13w
lea rcx, [rbx+rax]
add rcx, 2
add rbx, 2
mov rdi, r15
mov rsi, r14
mov rdx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp decode_bytes
| long long uf_varchar2(long long a1, unsigned int *a2, long long a3)
{
unsigned int v4; // eax
unsigned int v5; // r13d
long long result; // rax
unsigned int v7; // r12d
unsigned int v8; // ecx
int v9; // r12d
int v10; // r13d
unsigned int v11; // r13d
v4 = a2[1];
if ( v4 )
{
v5 = *a2;
result = v4 - 1;
a2[1] = result;
if ( _bittest((const int *)&v5, result) )
{
LABEL_3:
*(_WORD *)a3 = 0;
return result;
}
}
else
{
fill_buffer((long long)a2);
a2[1] = 31;
v5 = *a2;
result = 31LL;
if ( (*a2 & 0x80000000) != 0 )
goto LABEL_3;
}
v7 = *(_DWORD *)(a1 + 36);
v8 = result - v7;
if ( (unsigned int)result >= v7 )
{
a2[1] = v8;
v11 = mask[*(unsigned int *)(a1 + 36)] & (v5 >> v8);
}
else
{
v9 = v7 - result;
v10 = (mask[(unsigned int)result] & v5) << v9;
fill_buffer((long long)a2);
a2[1] = 32 - v9;
v11 = (*a2 >> -(char)v9) + v10;
}
*(_WORD *)a3 = v11;
return (long long)decode_bytes(a1, (long long)a2, (_BYTE *)(a3 + 2), (_BYTE *)(a3 + v11 + 2));
}
| uf_varchar2:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOV EAX,dword ptr [RSI + 0x4]
TEST EAX,EAX
JZ 0x00144e96
MOV R13D,dword ptr [R14]
DEC EAX
MOV dword ptr [R14 + 0x4],EAX
BT R13D,EAX
JNC 0x00144eb3
LAB_00144e82:
MOV word ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00144e96:
MOV RDI,R14
CALL 0x00143e6c
MOV dword ptr [R14 + 0x4],0x1f
MOV R13D,dword ptr [R14]
MOV EAX,0x1f
TEST R13D,R13D
JS 0x00144e82
LAB_00144eb3:
MOV R12D,dword ptr [R15 + 0x24]
MOV ECX,EAX
SUB ECX,R12D
JNC 0x00144ef8
SUB R12D,EAX
MOV EAX,EAX
LEA RCX,[0x1e6de0]
AND R13D,dword ptr [RCX + RAX*0x4]
MOV ECX,R12D
SHL R13D,CL
MOV RDI,R14
CALL 0x00143e6c
MOV EAX,0x20
SUB EAX,R12D
MOV dword ptr [R14 + 0x4],EAX
MOV EAX,dword ptr [R14]
NEG R12D
MOV ECX,R12D
SHR EAX,CL
ADD R13D,EAX
JMP 0x00144f0e
LAB_00144ef8:
MOV dword ptr [R14 + 0x4],ECX
SHR R13D,CL
MOV EAX,dword ptr [R15 + 0x24]
LEA RCX,[0x1e6de0]
AND R13D,dword ptr [RCX + RAX*0x4]
LAB_00144f0e:
MOV EAX,R13D
MOV word ptr [RBX],R13W
LEA RCX,[RBX + RAX*0x1]
ADD RCX,0x2
ADD RBX,0x2
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00144029
|
void uf_varchar2(long param_1,uint *param_2,int2 *param_3)
{
uint uVar1;
uint uVar2;
uint uVar3;
byte bVar4;
uint uVar5;
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar5 = *param_2;
uVar3 = 0x1f;
if (-1 < (int)uVar5) goto LAB_00144eb3;
}
else {
uVar5 = *param_2;
uVar3 = param_2[1] - 1;
param_2[1] = uVar3;
if ((uVar5 >> (uVar3 & 0x1f) & 1) == 0) {
LAB_00144eb3:
uVar1 = *(uint *)(param_1 + 0x24);
if (uVar3 < uVar1) {
uVar2 = (&mask)[uVar3];
bVar4 = (byte)(uVar1 - uVar3);
fill_buffer(param_2);
param_2[1] = 0x20 - (uVar1 - uVar3);
uVar5 = ((uVar5 & uVar2) << (bVar4 & 0x1f)) + (*param_2 >> (-bVar4 & 0x1f));
}
else {
param_2[1] = uVar3 - uVar1;
uVar5 = uVar5 >> ((byte)(uVar3 - uVar1) & 0x1f) & (&mask)[*(uint *)(param_1 + 0x24)];
}
*param_3 = (short)uVar5;
decode_bytes(param_1,param_2,param_3 + 1,(long)param_3 + (ulong)uVar5 + 2);
return;
}
}
*param_3 = 0;
return;
}
| |
49,765 | stbi__shiftsigned(unsigned int, int, int) | 7CodeWizard[P]stablediffusion/thirdparty/stb_image.h | static int stbi__shiftsigned(unsigned int v, int shift, int bits)
{
static unsigned int mul_table[9] = {
0,
0xff/*0b11111111*/, 0x55/*0b01010101*/, 0x49/*0b01001001*/, 0x11/*0b00010001*/,
0x21/*0b00100001*/, 0x41/*0b01000001*/, 0x81/*0b10000001*/, 0x01/*0b00000001*/,
};
static unsigned int shift_table[9] = {
0, 0,0,1,0,2,4,6,0,
};
if (shift < 0)
v <<= -shift;
else
v >>= shift;
STBI_ASSERT(v < 256);
v >>= (8-bits);
STBI_ASSERT(bits >= 0 && bits <= 8);
return (int) ((unsigned) v * mul_table[bits]) >> shift_table[bits];
} | O2 | c | stbi__shiftsigned(unsigned int, int, int):
movl %esi, %ecx
negb %cl
movl %edi, %eax
shll %cl, %eax
movl %esi, %ecx
shrl %cl, %edi
testl %esi, %esi
cmovnsl %edi, %eax
movb $0x8, %cl
subb %dl, %cl
shrl %cl, %eax
movslq %edx, %rcx
leaq 0x80a63(%rip), %rdx # 0x97380
imull (%rdx,%rcx,4), %eax
leaq 0x80a88(%rip), %rdx # 0x973b0
movb (%rdx,%rcx,4), %cl
sarl %cl, %eax
retq
| _ZL17stbi__shiftsignedjii:
mov ecx, esi
neg cl
mov eax, edi
shl eax, cl
mov ecx, esi
shr edi, cl
test esi, esi
cmovns eax, edi
mov cl, 8
sub cl, dl
shr eax, cl
movsxd rcx, edx
lea rdx, _ZZL17stbi__shiftsignedjiiE9mul_table; stbi__shiftsigned(uint,int,int)::mul_table
imul eax, [rdx+rcx*4]
lea rdx, _ZZL17stbi__shiftsignedjiiE11shift_table; stbi__shiftsigned(uint,int,int)::shift_table
mov cl, [rdx+rcx*4]
sar eax, cl
retn
| long long stbi__shiftsigned(unsigned int a1, int a2, int a3)
{
unsigned int v3; // eax
unsigned int v4; // edi
v3 = a1 << -(char)a2;
v4 = a1 >> a2;
if ( a2 >= 0 )
v3 = v4;
return (unsigned int)((int)(stbi__shiftsigned(unsigned int,int,int)::mul_table[a3] * (v3 >> (8 - a3))) >> stbi__shiftsigned(unsigned int,int,int)::shift_table[4 * a3]);
}
| stbi__shiftsigned:
MOV ECX,ESI
NEG CL
MOV EAX,EDI
SHL EAX,CL
MOV ECX,ESI
SHR EDI,CL
TEST ESI,ESI
CMOVNS EAX,EDI
MOV CL,0x8
SUB CL,DL
SHR EAX,CL
MOVSXD RCX,EDX
LEA RDX,[0x197380]
IMUL EAX,dword ptr [RDX + RCX*0x4]
LEA RDX,[0x1973b0]
MOV CL,byte ptr [RDX + RCX*0x4]
SAR EAX,CL
RET
|
/* stbi__shiftsigned(unsigned int, int, int) */
int stbi__shiftsigned(uint param_1,int param_2,int param_3)
{
uint uVar1;
uVar1 = param_1 << (-(byte)param_2 & 0x1f);
if (-1 < param_2) {
uVar1 = param_1 >> ((byte)param_2 & 0x1f);
}
return (int)((uVar1 >> (8U - (char)param_3 & 0x1f)) *
*(int *)(stbi__shiftsigned(unsigned_int,int,int)::mul_table + (long)param_3 * 4)) >>
(stbi__shiftsigned(unsigned_int,int,int)::shift_table[(long)param_3 * 4] & 0x1f);
}
| |
49,766 | r3d_shader_load_screen_lighting | r3d/src/r3d_state.c | void r3d_shader_load_screen_lighting(void)
{
R3D.shader.screen.lighting.id = rlLoadShaderCode(VS_COMMON_SCREEN, FS_SCREEN_LIGHTING);
r3d_shader_screen_lighting_t* shader = &R3D.shader.screen.lighting;
r3d_shader_get_location(screen.lighting, uTexAlbedo);
r3d_shader_get_location(screen.lighting, uTexNormal);
r3d_shader_get_location(screen.lighting, uTexDepth);
r3d_shader_get_location(screen.lighting, uTexORM);
r3d_shader_get_location(screen.lighting, uTexNoise);
r3d_shader_get_location(screen.lighting, uViewPosition);
r3d_shader_get_location(screen.lighting, uMatInvProj);
r3d_shader_get_location(screen.lighting, uMatInvView);
r3d_shader_get_location(screen.lighting, uLight.matVP);
r3d_shader_get_location(screen.lighting, uLight.shadowMap);
r3d_shader_get_location(screen.lighting, uLight.shadowCubemap);
r3d_shader_get_location(screen.lighting, uLight.color);
r3d_shader_get_location(screen.lighting, uLight.position);
r3d_shader_get_location(screen.lighting, uLight.direction);
r3d_shader_get_location(screen.lighting, uLight.specular);
r3d_shader_get_location(screen.lighting, uLight.energy);
r3d_shader_get_location(screen.lighting, uLight.range);
r3d_shader_get_location(screen.lighting, uLight.size);
r3d_shader_get_location(screen.lighting, uLight.near);
r3d_shader_get_location(screen.lighting, uLight.far);
r3d_shader_get_location(screen.lighting, uLight.attenuation);
r3d_shader_get_location(screen.lighting, uLight.innerCutOff);
r3d_shader_get_location(screen.lighting, uLight.outerCutOff);
r3d_shader_get_location(screen.lighting, uLight.shadowMapTxlSz);
r3d_shader_get_location(screen.lighting, uLight.shadowBias);
r3d_shader_get_location(screen.lighting, uLight.type);
r3d_shader_get_location(screen.lighting, uLight.shadow);
r3d_shader_enable(screen.lighting);
r3d_shader_set_sampler2D_slot(screen.lighting, uTexAlbedo, 0);
r3d_shader_set_sampler2D_slot(screen.lighting, uTexNormal, 1);
r3d_shader_set_sampler2D_slot(screen.lighting, uTexDepth, 2);
r3d_shader_set_sampler2D_slot(screen.lighting, uTexORM, 3);
r3d_shader_set_sampler2D_slot(screen.lighting, uTexNoise, 4);
r3d_shader_set_sampler2D_slot(screen.lighting, uLight.shadowMap, 5);
r3d_shader_set_samplerCube_slot(screen.lighting, uLight.shadowCubemap, 6);
r3d_shader_disable();
} | O3 | c | r3d_shader_load_screen_lighting:
pushq %rbp
movq %rsp, %rbp
leaq 0x56ccc(%rip), %rdi # 0x119da0
leaq 0x5d2f5(%rip), %rsi # 0x1203d0
callq 0x1e505
movl %eax, 0xeddfa(%rip) # 0x1b0ee0
leaq 0x4edd4(%rip), %rsi # 0x111ec1
movl %eax, %edi
callq 0x1e95e
movl %eax, 0xede9a(%rip) # 0x1b0f94
movl 0xedde0(%rip), %edi # 0x1b0ee0
leaq 0x4edc5(%rip), %rsi # 0x111ecc
callq 0x1e95e
movl %eax, 0xede8a(%rip) # 0x1b0f9c
movl 0xeddc8(%rip), %edi # 0x1b0ee0
leaq 0x4f0aa(%rip), %rsi # 0x1121c9
callq 0x1e95e
movl %eax, 0xede7a(%rip) # 0x1b0fa4
movl 0xeddb0(%rip), %edi # 0x1b0ee0
leaq 0x4f0e8(%rip), %rsi # 0x11221f
callq 0x1e95e
movl %eax, 0xede6a(%rip) # 0x1b0fac
movl 0xedd98(%rip), %edi # 0x1b0ee0
leaq 0x4ee30(%rip), %rsi # 0x111f7f
callq 0x1e95e
movl %eax, 0xede5a(%rip) # 0x1b0fb4
movl 0xedd80(%rip), %edi # 0x1b0ee0
leaq 0x4ee9a(%rip), %rsi # 0x112001
callq 0x1e95e
movl %eax, 0xede52(%rip) # 0x1b0fc4
movl 0xedd68(%rip), %edi # 0x1b0ee0
leaq 0x4f05f(%rip), %rsi # 0x1121de
callq 0x1e95e
movl %eax, 0xede3e(%rip) # 0x1b0fc8
movl 0xedd50(%rip), %edi # 0x1b0ee0
leaq 0x4edc6(%rip), %rsi # 0x111f5d
callq 0x1e95e
movl %eax, 0xede2a(%rip) # 0x1b0fcc
movl 0xedd38(%rip), %edi # 0x1b0ee0
leaq 0x4f07f(%rip), %rsi # 0x11222e
callq 0x1e95e
movl %eax, 0xedd2a(%rip) # 0x1b0ee4
movl 0xedd20(%rip), %edi # 0x1b0ee0
leaq 0x4f074(%rip), %rsi # 0x11223b
callq 0x1e95e
movl %eax, 0xedd1a(%rip) # 0x1b0eec
movl 0xedd08(%rip), %edi # 0x1b0ee0
leaq 0x4f06d(%rip), %rsi # 0x11224c
callq 0x1e95e
movl %eax, 0xedd0a(%rip) # 0x1b0ef4
movl 0xedcf0(%rip), %edi # 0x1b0ee0
leaq 0x4f06a(%rip), %rsi # 0x112261
callq 0x1e95e
movl %eax, 0xedd02(%rip) # 0x1b0f04
movl 0xedcd8(%rip), %edi # 0x1b0ee0
leaq 0x4f05f(%rip), %rsi # 0x11226e
callq 0x1e95e
movl %eax, 0xedcfa(%rip) # 0x1b0f14
movl 0xedcc0(%rip), %edi # 0x1b0ee0
leaq 0x4f057(%rip), %rsi # 0x11227e
callq 0x1e95e
movl %eax, 0xedcf2(%rip) # 0x1b0f24
movl 0xedca8(%rip), %edi # 0x1b0ee0
leaq 0x4f050(%rip), %rsi # 0x11228f
callq 0x1e95e
movl %eax, 0xedce2(%rip) # 0x1b0f2c
movl 0xedc90(%rip), %edi # 0x1b0ee0
leaq 0x4f048(%rip), %rsi # 0x11229f
callq 0x1e95e
movl %eax, 0xedcd2(%rip) # 0x1b0f34
movl 0xedc78(%rip), %edi # 0x1b0ee0
leaq 0x4f03e(%rip), %rsi # 0x1122ad
callq 0x1e95e
movl %eax, 0xedcc2(%rip) # 0x1b0f3c
movl 0xedc60(%rip), %edi # 0x1b0ee0
leaq 0x4f033(%rip), %rsi # 0x1122ba
callq 0x1e95e
movl %eax, 0xedcb2(%rip) # 0x1b0f44
movl 0xedc48(%rip), %edi # 0x1b0ee0
leaq 0x4f027(%rip), %rsi # 0x1122c6
callq 0x1e95e
movl %eax, 0xedca2(%rip) # 0x1b0f4c
movl 0xedc30(%rip), %edi # 0x1b0ee0
leaq 0x4f01b(%rip), %rsi # 0x1122d2
callq 0x1e95e
movl %eax, 0xedc92(%rip) # 0x1b0f54
movl 0xedc18(%rip), %edi # 0x1b0ee0
leaq 0x4f00e(%rip), %rsi # 0x1122dd
callq 0x1e95e
movl %eax, 0xedc82(%rip) # 0x1b0f5c
movl 0xedc00(%rip), %edi # 0x1b0ee0
leaq 0x4f009(%rip), %rsi # 0x1122f0
callq 0x1e95e
movl %eax, 0xedc72(%rip) # 0x1b0f64
movl 0xedbe8(%rip), %edi # 0x1b0ee0
leaq 0x4f004(%rip), %rsi # 0x112303
callq 0x1e95e
movl %eax, 0xedc62(%rip) # 0x1b0f6c
movl 0xedbd0(%rip), %edi # 0x1b0ee0
leaq 0x4efff(%rip), %rsi # 0x112316
callq 0x1e95e
movl %eax, 0xedc52(%rip) # 0x1b0f74
movl 0xedbb8(%rip), %edi # 0x1b0ee0
leaq 0x4effd(%rip), %rsi # 0x11232c
callq 0x1e95e
movl %eax, 0xedc42(%rip) # 0x1b0f7c
movl 0xedba0(%rip), %edi # 0x1b0ee0
leaq 0x4eff7(%rip), %rsi # 0x11233e
callq 0x1e95e
movl %eax, 0xedc32(%rip) # 0x1b0f84
movl 0xedb88(%rip), %edi # 0x1b0ee0
leaq 0x4efeb(%rip), %rsi # 0x11234a
callq 0x1e95e
movl %eax, 0xedc22(%rip) # 0x1b0f8c
movl 0xedb70(%rip), %edi # 0x1b0ee0
callq 0x1bd8a
cmpl $0x0, 0xedc14(%rip) # 0x1b0f90
je 0xc33a4
movl $0x0, 0xedc08(%rip) # 0x1b0f90
leaq 0xedc01(%rip), %rsi # 0x1b0f90
movl 0xedbff(%rip), %edi # 0x1b0f94
movl $0x4, %edx
movl $0x1, %ecx
callq 0x1e97a
cmpl $0x1, 0xedbed(%rip) # 0x1b0f98
je 0xc33d3
movl $0x1, 0xedbe1(%rip) # 0x1b0f98
leaq 0xedbda(%rip), %rsi # 0x1b0f98
movl 0xedbd8(%rip), %edi # 0x1b0f9c
movl $0x4, %edx
movl $0x1, %ecx
callq 0x1e97a
cmpl $0x2, 0xedbc6(%rip) # 0x1b0fa0
je 0xc3402
movl $0x2, 0xedbba(%rip) # 0x1b0fa0
leaq 0xedbb3(%rip), %rsi # 0x1b0fa0
movl 0xedbb1(%rip), %edi # 0x1b0fa4
movl $0x4, %edx
movl $0x1, %ecx
callq 0x1e97a
cmpl $0x3, 0xedb9f(%rip) # 0x1b0fa8
je 0xc3431
movl $0x3, 0xedb93(%rip) # 0x1b0fa8
leaq 0xedb8c(%rip), %rsi # 0x1b0fa8
movl 0xedb8a(%rip), %edi # 0x1b0fac
movl $0x4, %edx
movl $0x1, %ecx
callq 0x1e97a
cmpl $0x4, 0xedb78(%rip) # 0x1b0fb0
je 0xc3460
movl $0x4, 0xedb6c(%rip) # 0x1b0fb0
leaq 0xedb65(%rip), %rsi # 0x1b0fb0
movl 0xedb63(%rip), %edi # 0x1b0fb4
movl $0x4, %edx
movl $0x1, %ecx
callq 0x1e97a
cmpl $0x5, 0xeda81(%rip) # 0x1b0ee8
je 0xc348f
movl $0x5, 0xeda75(%rip) # 0x1b0ee8
leaq 0xeda6e(%rip), %rsi # 0x1b0ee8
movl 0xeda6c(%rip), %edi # 0x1b0eec
movl $0x4, %edx
movl $0x1, %ecx
callq 0x1e97a
cmpl $0x6, 0xeda5a(%rip) # 0x1b0ef0
je 0xc34be
movl $0x6, 0xeda4e(%rip) # 0x1b0ef0
leaq 0xeda47(%rip), %rsi # 0x1b0ef0
movl 0xeda45(%rip), %edi # 0x1b0ef4
movl $0x4, %edx
movl $0x1, %ecx
callq 0x1e97a
popq %rbp
jmp 0x1bd95
| r3d_shader_load_screen_lighting:
push rbp
mov rbp, rsp
lea rdi, VS_COMMON_SCREEN; "#version 330 core\nconst vec2 a[3]=vec2"...
lea rsi, FS_SCREEN_LIGHTING; "#version 330 core\n#define PI 3.1415926"...
call rlLoadShaderCode
mov cs:dword_1B0EE0, eax
lea rsi, aUtexalbedo; "uTexAlbedo"
mov edi, eax
call rlGetLocationUniform
mov cs:dword_1B0F94, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUtexnormal; "uTexNormal"
call rlGetLocationUniform
mov cs:dword_1B0F9C, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUtexdepth; "uTexDepth"
call rlGetLocationUniform
mov cs:dword_1B0FA4, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUtexorm; "uTexORM"
call rlGetLocationUniform
mov cs:dword_1B0FAC, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUtexnoise; "uTexNoise"
call rlGetLocationUniform
mov cs:dword_1B0FB4, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUviewposition; "uViewPosition"
call rlGetLocationUniform
mov cs:dword_1B0FC4, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUmatinvproj; "uMatInvProj"
call rlGetLocationUniform
mov cs:dword_1B0FC8, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUmatinvview; "uMatInvView"
call rlGetLocationUniform
mov cs:dword_1B0FCC, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUlightMatvp; "uLight.matVP"
call rlGetLocationUniform
mov cs:dword_1B0EE4, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUlightShadowma; "uLight.shadowMap"
call rlGetLocationUniform
mov cs:dword_1B0EEC, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUlightShadowcu; "uLight.shadowCubemap"
call rlGetLocationUniform
mov cs:dword_1B0EF4, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUlightColor; "uLight.color"
call rlGetLocationUniform
mov cs:dword_1B0F04, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUlightPosition; "uLight.position"
call rlGetLocationUniform
mov cs:dword_1B0F14, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUlightDirectio; "uLight.direction"
call rlGetLocationUniform
mov cs:dword_1B0F24, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUlightSpecular; "uLight.specular"
call rlGetLocationUniform
mov cs:dword_1B0F2C, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUlightEnergy; "uLight.energy"
call rlGetLocationUniform
mov cs:dword_1B0F34, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUlightRange; "uLight.range"
call rlGetLocationUniform
mov cs:dword_1B0F3C, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUlightSize; "uLight.size"
call rlGetLocationUniform
mov cs:dword_1B0F44, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUlightNear; "uLight.near"
call rlGetLocationUniform
mov cs:dword_1B0F4C, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUlightFar; "uLight.far"
call rlGetLocationUniform
mov cs:dword_1B0F54, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUlightAttenuat; "uLight.attenuation"
call rlGetLocationUniform
mov cs:dword_1B0F5C, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUlightInnercut; "uLight.innerCutOff"
call rlGetLocationUniform
mov cs:dword_1B0F64, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUlightOutercut; "uLight.outerCutOff"
call rlGetLocationUniform
mov cs:dword_1B0F6C, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUlightShadowma_0; "uLight.shadowMapTxlSz"
call rlGetLocationUniform
mov cs:dword_1B0F74, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUlightShadowbi; "uLight.shadowBias"
call rlGetLocationUniform
mov cs:dword_1B0F7C, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUlightType; "uLight.type"
call rlGetLocationUniform
mov cs:dword_1B0F84, eax
mov edi, cs:dword_1B0EE0
lea rsi, aUlightShadow; "uLight.shadow"
call rlGetLocationUniform
mov cs:dword_1B0F8C, eax
mov edi, cs:dword_1B0EE0
call rlEnableShader
cmp cs:dword_1B0F90, 0
jz short loc_C33A4
mov cs:dword_1B0F90, 0
lea rsi, dword_1B0F90
mov edi, cs:dword_1B0F94
mov edx, 4
mov ecx, 1
call rlSetUniform
loc_C33A4:
cmp cs:dword_1B0F98, 1
jz short loc_C33D3
mov cs:dword_1B0F98, 1
lea rsi, dword_1B0F98
mov edi, cs:dword_1B0F9C
mov edx, 4
mov ecx, 1
call rlSetUniform
loc_C33D3:
cmp cs:dword_1B0FA0, 2
jz short loc_C3402
mov cs:dword_1B0FA0, 2
lea rsi, dword_1B0FA0
mov edi, cs:dword_1B0FA4
mov edx, 4
mov ecx, 1
call rlSetUniform
loc_C3402:
cmp cs:dword_1B0FA8, 3
jz short loc_C3431
mov cs:dword_1B0FA8, 3
lea rsi, dword_1B0FA8
mov edi, cs:dword_1B0FAC
mov edx, 4
mov ecx, 1
call rlSetUniform
loc_C3431:
cmp cs:dword_1B0FB0, 4
jz short loc_C3460
mov cs:dword_1B0FB0, 4
lea rsi, dword_1B0FB0
mov edi, cs:dword_1B0FB4
mov edx, 4
mov ecx, 1
call rlSetUniform
loc_C3460:
cmp cs:dword_1B0EE8, 5
jz short loc_C348F
mov cs:dword_1B0EE8, 5
lea rsi, dword_1B0EE8
mov edi, cs:dword_1B0EEC
mov edx, 4
mov ecx, 1
call rlSetUniform
loc_C348F:
cmp cs:dword_1B0EF0, 6
jz short loc_C34BE
mov cs:dword_1B0EF0, 6
lea rsi, dword_1B0EF0
mov edi, cs:dword_1B0EF4
mov edx, 4
mov ecx, 1
call rlSetUniform
loc_C34BE:
pop rbp
jmp rlDisableShader
| long long r3d_shader_load_screen_lighting()
{
int v0; // r8d
int v1; // r9d
dword_1B0EE0 = rlLoadShaderCode(
(long long)"#version 330 core\n"
"const vec2 a[3]=vec2[](vec2(-1.0,-1.0),vec2(3.0,-1.0),vec2(-1.0,3.0));noperspective out vec2"
" vTexCoord;void main(){gl_Position=vec4(a[gl_VertexID],0.0,1.0);vTexCoord=(gl_Position.xy*0.5)+0.5;}",
(long long)FS_SCREEN_LIGHTING);
dword_1B0F94 = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uTexAlbedo");
dword_1B0F9C = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uTexNormal");
dword_1B0FA4 = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uTexDepth");
dword_1B0FAC = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uTexORM");
dword_1B0FB4 = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uTexNoise");
dword_1B0FC4 = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uViewPosition");
dword_1B0FC8 = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uMatInvProj");
dword_1B0FCC = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uMatInvView");
dword_1B0EE4 = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uLight.matVP");
dword_1B0EEC = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uLight.shadowMap");
dword_1B0EF4 = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uLight.shadowCubemap");
dword_1B0F04 = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uLight.color");
dword_1B0F14 = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uLight.position");
dword_1B0F24 = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uLight.direction");
dword_1B0F2C = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uLight.specular");
dword_1B0F34 = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uLight.energy");
dword_1B0F3C = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uLight.range");
dword_1B0F44 = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uLight.size");
dword_1B0F4C = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uLight.near");
dword_1B0F54 = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uLight.far");
dword_1B0F5C = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uLight.attenuation");
dword_1B0F64 = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uLight.innerCutOff");
dword_1B0F6C = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uLight.outerCutOff");
dword_1B0F74 = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uLight.shadowMapTxlSz");
dword_1B0F7C = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uLight.shadowBias");
dword_1B0F84 = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uLight.type");
dword_1B0F8C = rlGetLocationUniform((unsigned int)dword_1B0EE0, (long long)"uLight.shadow");
rlEnableShader((unsigned int)dword_1B0EE0);
if ( dword_1B0F90 )
{
dword_1B0F90 = 0;
rlSetUniform((unsigned int)dword_1B0F94, (long long)&dword_1B0F90, 4, 1u, v0, v1);
}
if ( dword_1B0F98 != 1 )
{
dword_1B0F98 = 1;
rlSetUniform((unsigned int)dword_1B0F9C, (long long)&dword_1B0F98, 4, 1u, v0, v1);
}
if ( dword_1B0FA0 != 2 )
{
dword_1B0FA0 = 2;
rlSetUniform((unsigned int)dword_1B0FA4, (long long)&dword_1B0FA0, 4, 1u, v0, v1);
}
if ( dword_1B0FA8 != 3 )
{
dword_1B0FA8 = 3;
rlSetUniform((unsigned int)dword_1B0FAC, (long long)&dword_1B0FA8, 4, 1u, v0, v1);
}
if ( dword_1B0FB0 != 4 )
{
dword_1B0FB0 = 4;
rlSetUniform((unsigned int)dword_1B0FB4, (long long)&dword_1B0FB0, 4, 1u, v0, v1);
}
if ( dword_1B0EE8 != 5 )
{
dword_1B0EE8 = 5;
rlSetUniform((unsigned int)dword_1B0EEC, (long long)&dword_1B0EE8, 4, 1u, v0, v1);
}
if ( dword_1B0EF0 != 6 )
{
dword_1B0EF0 = 6;
rlSetUniform((unsigned int)dword_1B0EF4, (long long)&dword_1B0EF0, 4, 1u, v0, v1);
}
return rlDisableShader();
}
| r3d_shader_load_screen_lighting:
PUSH RBP
MOV RBP,RSP
LEA RDI,[0x219da0]
LEA RSI,[0x2203d0]
CALL 0x0011e505
MOV dword ptr [0x002b0ee0],EAX
LEA RSI,[0x211ec1]
MOV EDI,EAX
CALL 0x0011e95e
MOV dword ptr [0x002b0f94],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x211ecc]
CALL 0x0011e95e
MOV dword ptr [0x002b0f9c],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x2121c9]
CALL 0x0011e95e
MOV dword ptr [0x002b0fa4],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x21221f]
CALL 0x0011e95e
MOV dword ptr [0x002b0fac],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x211f7f]
CALL 0x0011e95e
MOV dword ptr [0x002b0fb4],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x212001]
CALL 0x0011e95e
MOV dword ptr [0x002b0fc4],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x2121de]
CALL 0x0011e95e
MOV dword ptr [0x002b0fc8],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x211f5d]
CALL 0x0011e95e
MOV dword ptr [0x002b0fcc],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x21222e]
CALL 0x0011e95e
MOV dword ptr [0x002b0ee4],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x21223b]
CALL 0x0011e95e
MOV dword ptr [0x002b0eec],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x21224c]
CALL 0x0011e95e
MOV dword ptr [0x002b0ef4],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x212261]
CALL 0x0011e95e
MOV dword ptr [0x002b0f04],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x21226e]
CALL 0x0011e95e
MOV dword ptr [0x002b0f14],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x21227e]
CALL 0x0011e95e
MOV dword ptr [0x002b0f24],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x21228f]
CALL 0x0011e95e
MOV dword ptr [0x002b0f2c],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x21229f]
CALL 0x0011e95e
MOV dword ptr [0x002b0f34],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x2122ad]
CALL 0x0011e95e
MOV dword ptr [0x002b0f3c],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x2122ba]
CALL 0x0011e95e
MOV dword ptr [0x002b0f44],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x2122c6]
CALL 0x0011e95e
MOV dword ptr [0x002b0f4c],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x2122d2]
CALL 0x0011e95e
MOV dword ptr [0x002b0f54],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x2122dd]
CALL 0x0011e95e
MOV dword ptr [0x002b0f5c],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x2122f0]
CALL 0x0011e95e
MOV dword ptr [0x002b0f64],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x212303]
CALL 0x0011e95e
MOV dword ptr [0x002b0f6c],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x212316]
CALL 0x0011e95e
MOV dword ptr [0x002b0f74],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x21232c]
CALL 0x0011e95e
MOV dword ptr [0x002b0f7c],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x21233e]
CALL 0x0011e95e
MOV dword ptr [0x002b0f84],EAX
MOV EDI,dword ptr [0x002b0ee0]
LEA RSI,[0x21234a]
CALL 0x0011e95e
MOV dword ptr [0x002b0f8c],EAX
MOV EDI,dword ptr [0x002b0ee0]
CALL 0x0011bd8a
CMP dword ptr [0x002b0f90],0x0
JZ 0x001c33a4
MOV dword ptr [0x002b0f90],0x0
LEA RSI,[0x2b0f90]
MOV EDI,dword ptr [0x002b0f94]
MOV EDX,0x4
MOV ECX,0x1
CALL 0x0011e97a
LAB_001c33a4:
CMP dword ptr [0x002b0f98],0x1
JZ 0x001c33d3
MOV dword ptr [0x002b0f98],0x1
LEA RSI,[0x2b0f98]
MOV EDI,dword ptr [0x002b0f9c]
MOV EDX,0x4
MOV ECX,0x1
CALL 0x0011e97a
LAB_001c33d3:
CMP dword ptr [0x002b0fa0],0x2
JZ 0x001c3402
MOV dword ptr [0x002b0fa0],0x2
LEA RSI,[0x2b0fa0]
MOV EDI,dword ptr [0x002b0fa4]
MOV EDX,0x4
MOV ECX,0x1
CALL 0x0011e97a
LAB_001c3402:
CMP dword ptr [0x002b0fa8],0x3
JZ 0x001c3431
MOV dword ptr [0x002b0fa8],0x3
LEA RSI,[0x2b0fa8]
MOV EDI,dword ptr [0x002b0fac]
MOV EDX,0x4
MOV ECX,0x1
CALL 0x0011e97a
LAB_001c3431:
CMP dword ptr [0x002b0fb0],0x4
JZ 0x001c3460
MOV dword ptr [0x002b0fb0],0x4
LEA RSI,[0x2b0fb0]
MOV EDI,dword ptr [0x002b0fb4]
MOV EDX,0x4
MOV ECX,0x1
CALL 0x0011e97a
LAB_001c3460:
CMP dword ptr [0x002b0ee8],0x5
JZ 0x001c348f
MOV dword ptr [0x002b0ee8],0x5
LEA RSI,[0x2b0ee8]
MOV EDI,dword ptr [0x002b0eec]
MOV EDX,0x4
MOV ECX,0x1
CALL 0x0011e97a
LAB_001c348f:
CMP dword ptr [0x002b0ef0],0x6
JZ 0x001c34be
MOV dword ptr [0x002b0ef0],0x6
LEA RSI,[0x2b0ef0]
MOV EDI,dword ptr [0x002b0ef4]
MOV EDX,0x4
MOV ECX,0x1
CALL 0x0011e97a
LAB_001c34be:
POP RBP
JMP 0x0011bd95
|
void r3d_shader_load_screen_lighting(void)
{
DAT_002b0ee0 = rlLoadShaderCode("#version 330 core\nconst vec2 a[3]=vec2[](vec2(-1.0,-1.0),vec2(3.0,-1.0),vec2(-1.0,3.0));noperspective out vec2 vTexCoord;void main(){gl_Position=vec4(a[gl_VertexID],0.0,1.0);vTexCoord=(gl_Position.xy*0.5)+0.5;}"
,
"#version 330 core\n#define PI 3.1415926535897932384626433832795028\n#define DIRLIGHT 0\n#define SPOTLIGHT 1\n#define OMNILIGHT 2\nstruct Light{mat4 matVP;sampler2D shadowMap;samplerCube shadowCubemap;vec3 color;vec3 position;vec3 direction;float specular;float energy;float range;float size;float near;float far;float attenuation;float innerCutOff;float outerCutOff;float shadowMapTxlSz;float shadowBias;lowp int type;bool shadow;};noperspective in vec2 vTexCoord;uniform sampler2D uTexAlbedo;uniform sampler2D uTexNormal;uniform sampler2D uTexDepth;uniform sampler2D uTexORM;uniform sampler2D uTexNoise;uniform Light uLight;uniform vec3 uViewPosition;uniform mat4 uMatInvProj;uniform mat4 uMatInvView;layout(location=0)out vec4 d;layout(location=1)out vec4 e;const vec2 POISSON_DISK[16]=vec2[](vec2(-0.94201624,-0.39906216),vec2(0.94558609,-0.76890725),vec2(-0.094184101,-0.92938870),vec2(0.34495938,0.29387760),vec2(-0.91588581,0.45771432),vec2(-0.81544232,-0.87912464),vec2(-0.38277543,0.27676845),vec2(0.97484398,0.75648379),vec2(0.44323325,-0.97511554),vec2(0.53742981,-0.47373420),vec2(-0.26496911,-0.41893023),vec2(0.79197514,0.19090188),vec2(-0.24188840,0.99706507),vec2(-0.81409955,0.91437590),vec2(0.19984126,0.78641367),vec2(0.14383161,-0.14100790));float DistributionGGX(float v,float l){float j=v*l;float ah=l/(1.0-v*v+j*j);return ah*ah*(1.0/PI);}float GeometryGGX(float h,float i,float be){return 0.5/mix(2.0*h*i,h+i,be);}float SchlickFresnel(float bp){float ak=1.0-bp;float al=ak*ak;return al*al*ak;}vec3 ComputeF0(float am,float specular,vec3 k){float y=0.16*specular*specular;return mix(vec3(y),k,vec3(am));}float ShadowOmni(vec3 position,float cNdotL){vec3 aj=position-uLight.position;float w=length(aj);vec3 direction=normalize(aj);float p=max(uLight.shadowBias*(1.0-cNdotL),0.05);w=w-p;const int BLOCKER_SEARCH_NUM_SAMPLES=16;const int PCF_NUM_SAMPLES=16;const float MIN_PENUMBRA_SIZE=0.002;const float MAX_PENUMBRA_SIZE=0.02;vec4 ap=texture(uTexNoise,fract(gl_FragCoord.xy/vec2(16.0)));float bc=ap.r*2.0*PI;float bd=ap.g*2.0*..." /* TRUNCATED STRING LITERAL */
);
DAT_002b0f94 = rlGetLocationUniform(DAT_002b0ee0,"uTexAlbedo");
DAT_002b0f9c = rlGetLocationUniform(DAT_002b0ee0,"uTexNormal");
DAT_002b0fa4 = rlGetLocationUniform(DAT_002b0ee0,"uTexDepth");
DAT_002b0fac = rlGetLocationUniform(DAT_002b0ee0,"uTexORM");
DAT_002b0fb4 = rlGetLocationUniform(DAT_002b0ee0,"uTexNoise");
DAT_002b0fc4 = rlGetLocationUniform(DAT_002b0ee0,"uViewPosition");
DAT_002b0fc8 = rlGetLocationUniform(DAT_002b0ee0,"uMatInvProj");
DAT_002b0fcc = rlGetLocationUniform(DAT_002b0ee0,"uMatInvView");
DAT_002b0ee4 = rlGetLocationUniform(DAT_002b0ee0,"uLight.matVP");
DAT_002b0eec = rlGetLocationUniform(DAT_002b0ee0,"uLight.shadowMap");
DAT_002b0ef4 = rlGetLocationUniform(DAT_002b0ee0,"uLight.shadowCubemap");
DAT_002b0f04 = rlGetLocationUniform(DAT_002b0ee0,"uLight.color");
DAT_002b0f14 = rlGetLocationUniform(DAT_002b0ee0,"uLight.position");
DAT_002b0f24 = rlGetLocationUniform(DAT_002b0ee0,"uLight.direction");
DAT_002b0f2c = rlGetLocationUniform(DAT_002b0ee0,"uLight.specular");
DAT_002b0f34 = rlGetLocationUniform(DAT_002b0ee0,"uLight.energy");
DAT_002b0f3c = rlGetLocationUniform(DAT_002b0ee0,"uLight.range");
DAT_002b0f44 = rlGetLocationUniform(DAT_002b0ee0,"uLight.size");
DAT_002b0f4c = rlGetLocationUniform(DAT_002b0ee0,"uLight.near");
DAT_002b0f54 = rlGetLocationUniform(DAT_002b0ee0,"uLight.far");
DAT_002b0f5c = rlGetLocationUniform(DAT_002b0ee0,"uLight.attenuation");
DAT_002b0f64 = rlGetLocationUniform(DAT_002b0ee0,"uLight.innerCutOff");
DAT_002b0f6c = rlGetLocationUniform(DAT_002b0ee0,"uLight.outerCutOff");
DAT_002b0f74 = rlGetLocationUniform(DAT_002b0ee0,"uLight.shadowMapTxlSz");
DAT_002b0f7c = rlGetLocationUniform(DAT_002b0ee0,"uLight.shadowBias");
DAT_002b0f84 = rlGetLocationUniform(DAT_002b0ee0,"uLight.type");
DAT_002b0f8c = rlGetLocationUniform(DAT_002b0ee0,"uLight.shadow");
rlEnableShader(DAT_002b0ee0);
if (DAT_002b0f90 != 0) {
DAT_002b0f90 = 0;
rlSetUniform(DAT_002b0f94,&DAT_002b0f90,4,1);
}
if (DAT_002b0f98 != 1) {
DAT_002b0f98 = 1;
rlSetUniform(DAT_002b0f9c,&DAT_002b0f98,4,1);
}
if (DAT_002b0fa0 != 2) {
DAT_002b0fa0 = 2;
rlSetUniform(DAT_002b0fa4,&DAT_002b0fa0,4,1);
}
if (DAT_002b0fa8 != 3) {
DAT_002b0fa8 = 3;
rlSetUniform(DAT_002b0fac,&DAT_002b0fa8,4,1);
}
if (DAT_002b0fb0 != 4) {
DAT_002b0fb0 = 4;
rlSetUniform(DAT_002b0fb4,&DAT_002b0fb0,4,1);
}
if (DAT_002b0ee8 != 5) {
DAT_002b0ee8 = 5;
rlSetUniform(DAT_002b0eec,&DAT_002b0ee8,4,1);
}
if (DAT_002b0ef0 != 6) {
DAT_002b0ef0 = 6;
rlSetUniform(DAT_002b0ef4,&DAT_002b0ef0,4,1);
}
rlDisableShader();
return;
}
| |
49,767 | TrySend(void const*, unsigned long, sockaddr_in6*, bool) | Dolphin-anty/Source/Core/Common/TraversalServer.cpp | static void TrySend(const void* buffer, size_t size, sockaddr_in6* addr, bool fromAlt)
{
#if DEBUG
const auto* packet = static_cast<const Common::TraversalPacket*>(buffer);
fmt::print("{}-> {} {} {}\n", fromAlt ? "alt " : "", static_cast<int>(packet->type),
static_cast<long long>(packet->requestId), SenderName(addr));
#endif
if ((size_t)sendto(fromAlt ? sockAlt : sock, buffer, size, 0, (sockaddr*)addr, sizeof(*addr)) !=
size)
{
perror("sendto");
}
} | O0 | cpp | TrySend(void const*, unsigned long, sockaddr_in6*, bool):
subq $0x28, %rsp
movb %cl, %al
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
andb $0x1, %al
movb %al, 0xf(%rsp)
testb $0x1, 0xf(%rsp)
je 0xbbae
movl 0xbabbc(%rip), %eax # 0xc6764
movl %eax, 0x8(%rsp)
jmp 0xbbb8
movl 0xbabac(%rip), %eax # 0xc6760
movl %eax, 0x8(%rsp)
movl 0x8(%rsp), %edi
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %r8
xorl %ecx, %ecx
movl $0x1c, %r9d
callq 0x9800
cmpq 0x18(%rsp), %rax
je 0xbbeb
leaq 0x9254a(%rip), %rdi # 0x9e130
callq 0x9a60
addq $0x28, %rsp
retq
| _ZL7TrySendPKvmP12sockaddr_in6b:
sub rsp, 28h
mov al, cl
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov [rsp+28h+var_18], rdx
and al, 1
mov [rsp+28h+var_19], al
test [rsp+28h+var_19], 1
jz short loc_BBAE
mov eax, cs:_ZL7sockAlt; sockAlt
mov [rsp+28h+var_20], eax
jmp short loc_BBB8
loc_BBAE:
mov eax, cs:_ZL4sock; sock
mov [rsp+28h+var_20], eax
loc_BBB8:
mov edi, [rsp+28h+var_20]
mov rsi, [rsp+28h+var_8]
mov rdx, [rsp+28h+var_10]
mov r8, [rsp+28h+var_18]
xor ecx, ecx
mov r9d, 1Ch
call _sendto
cmp rax, [rsp+28h+var_10]
jz short loc_BBEB
lea rdi, aSendto_0; "sendto"
call _perror
loc_BBEB:
add rsp, 28h
retn
| long long TrySend(long long a1, long long a2, long long a3, char a4)
{
long long result; // rax
unsigned int v5; // [rsp+8h] [rbp-20h]
if ( (a4 & 1) != 0 )
v5 = sockAlt;
else
v5 = sock;
result = sendto(v5, a1, a2, 0LL, a3, 28LL);
if ( result != a2 )
return perror("sendto");
return result;
}
| TrySend:
SUB RSP,0x28
MOV AL,CL
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV qword ptr [RSP + 0x10],RDX
AND AL,0x1
MOV byte ptr [RSP + 0xf],AL
TEST byte ptr [RSP + 0xf],0x1
JZ 0x0010bbae
MOV EAX,dword ptr [0x001c6764]
MOV dword ptr [RSP + 0x8],EAX
JMP 0x0010bbb8
LAB_0010bbae:
MOV EAX,dword ptr [0x001c6760]
MOV dword ptr [RSP + 0x8],EAX
LAB_0010bbb8:
MOV EDI,dword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x18]
MOV R8,qword ptr [RSP + 0x10]
XOR ECX,ECX
MOV R9D,0x1c
CALL 0x00109800
CMP RAX,qword ptr [RSP + 0x18]
JZ 0x0010bbeb
LEA RDI,[0x19e130]
CALL 0x00109a60
LAB_0010bbeb:
ADD RSP,0x28
RET
|
/* TrySend(void const*, unsigned long, sockaddr_in6*, bool) */
void TrySend(void *param_1,ulong param_2,sockaddr_in6 *param_3,bool param_4)
{
ulong uVar1;
int local_20;
if (param_4) {
local_20 = sockAlt;
}
else {
local_20 = sock;
}
uVar1 = sendto(local_20,param_1,param_2,0,(sockaddr *)param_3,0x1c);
if (uVar1 != param_2) {
perror("sendto");
}
return;
}
| |
49,768 | testing::internal::GetTimeInMillis() | AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc | TimeInMillis GetTimeInMillis() {
return std::chrono::duration_cast<std::chrono::milliseconds>(
std::chrono::system_clock::now() -
std::chrono::system_clock::from_time_t(0))
.count();
} | O0 | cpp | testing::internal::GetTimeInMillis():
subq $0x28, %rsp
callq 0xb070
movq %rax, 0x10(%rsp)
xorl %eax, %eax
movl %eax, %edi
callq 0x485a0
movq %rax, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x48550
movq %rax, 0x18(%rsp)
leaq 0x18(%rsp), %rdi
callq 0x48520
movq %rax, 0x20(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x48600
addq $0x28, %rsp
retq
nop
| _ZN7testing8internal15GetTimeInMillisEv:
sub rsp, 28h
call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void)
mov [rsp+28h+var_18], rax
xor eax, eax
mov edi, eax; this
call _ZNSt6chrono3_V212system_clock11from_time_tEl; std::chrono::_V2::system_clock::from_time_t(long)
mov [rsp+28h+var_20], rax
lea rdi, [rsp+28h+var_18]
lea rsi, [rsp+28h+var_20]
call _ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE; std::chrono::operator-<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>,std::chrono::duration<long,std::ratio<1l,1000000000l>>>(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> const&,std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> const&)
mov [rsp+28h+var_10], rax
lea rdi, [rsp+28h+var_10]
call _ZNSt6chrono13duration_castINS_8durationIlSt5ratioILl1ELl1000EEEElS2_ILl1ELl1000000000EEEENSt9enable_ifIXsr13__is_durationIT_EE5valueES7_E4typeERKNS1_IT0_T1_EE
mov [rsp+28h+var_8], rax
lea rdi, [rsp+28h+var_8]
call _ZNKSt6chrono8durationIlSt5ratioILl1ELl1000EEE5countEv; std::chrono::duration<long,std::ratio<1l,1000l>>::count(void)
add rsp, 28h
retn
| long long testing::internal::GetTimeInMillis(testing::internal *this, long long a2)
{
long long v3; // [rsp+8h] [rbp-20h] BYREF
long long v4; // [rsp+10h] [rbp-18h] BYREF
long long v5; // [rsp+18h] [rbp-10h] BYREF
long long v6; // [rsp+20h] [rbp-8h] BYREF
v4 = std::chrono::_V2::system_clock::now(this);
v3 = std::chrono::_V2::system_clock::from_time_t(0LL, a2);
v5 = std::chrono::operator-<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>,std::chrono::duration<long,std::ratio<1l,1000000000l>>>(
&v4,
&v3);
v6 = std::chrono::duration_cast<std::chrono::duration<long,std::ratio<1l,1000l>>,long,std::ratio<1l,1000000000l>>(&v5);
return std::chrono::duration<long,std::ratio<1l,1000l>>::count(&v6);
}
| GetTimeInMillis:
SUB RSP,0x28
CALL 0x0010b070
MOV qword ptr [RSP + 0x10],RAX
XOR EAX,EAX
MOV EDI,EAX
CALL 0x001485a0
MOV qword ptr [RSP + 0x8],RAX
LEA RDI,[RSP + 0x10]
LEA RSI,[RSP + 0x8]
CALL 0x00148550
MOV qword ptr [RSP + 0x18],RAX
LEA RDI,[RSP + 0x18]
CALL 0x00148520
MOV qword ptr [RSP + 0x20],RAX
LEA RDI,[RSP + 0x20]
CALL 0x00148600
ADD RSP,0x28
RET
|
/* testing::internal::GetTimeInMillis() */
void testing::internal::GetTimeInMillis(void)
{
int8 local_20;
int8 local_18;
int8 local_10;
int8 local_8;
local_18 = std::chrono::_V2::system_clock::now();
local_20 = std::chrono::_V2::system_clock::from_time_t(0);
local_10 = std::chrono::operator-((time_point *)&local_18,(time_point *)&local_20);
local_8 = std::chrono::
duration_cast<std::chrono::duration<long,std::ratio<1l,1000l>>,long,std::ratio<1l,1000000000l>>
((duration *)&local_10);
std::chrono::duration<long,std::ratio<1l,1000l>>::count
((duration<long,std::ratio<1l,1000l>> *)&local_8);
return;
}
| |
49,769 | common_init() | monkey531[P]llama/common/common.cpp | void common_init() {
llama_log_set([](ggml_log_level level, const char * text, void * /*user_data*/) {
if (LOG_DEFAULT_LLAMA <= common_log_verbosity_thold) {
common_log_add(common_log_main(), level, "%s", text);
}
}, NULL);
#ifdef NDEBUG
const char * build_type = "";
#else
const char * build_type = " (debug)";
#endif
LOG_INF("build: %d (%s) with %s for %s%s\n", LLAMA_BUILD_NUMBER, LLAMA_COMMIT, LLAMA_COMPILER, LLAMA_BUILD_TARGET, build_type);
} | O0 | cpp | common_init():
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movl %esi, 0x1c(%rsp)
movq %rdx, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
xorl %eax, %eax
leaq 0x1b0ff8(%rip), %rcx # 0x2a6618
cmpl (%rcx), %eax
jg 0xf5643
callq 0x1be7b0
movq %rax, %rdi
movl 0x1c(%rsp), %esi
movq 0x10(%rsp), %rcx
leaq 0x118ba8(%rip), %rdx # 0x20e1e4
movb $0x0, %al
callq 0x1be8a0
addq $0x28, %rsp
retq
nopl (%rax,%rax)
| _ZZ11common_initvENK3$_0clE14ggml_log_levelPKcPv:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_C], esi
mov [rsp+28h+var_18], rdx
mov [rsp+28h+var_20], rcx
xor eax, eax
lea rcx, common_log_verbosity_thold
cmp eax, [rcx]
jg short loc_F5643
call _Z15common_log_mainv; common_log_main(void)
mov rdi, rax
mov esi, [rsp+28h+var_C]
mov rcx, [rsp+28h+var_18]
lea rdx, aSetCustomJinja_0+0FEh; "%s"
mov al, 0
call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...)
loc_F5643:
add rsp, 28h
retn
| long long common_init(void)::$_0::operator()(long long a1, int a2, int a3)
{
long long result; // rax
int v4; // eax
int v5; // r8d
int v6; // r9d
result = 0LL;
if ( common_log_verbosity_thold >= 0 )
{
v4 = common_log_main();
return common_log_add(v4, a2, (unsigned int)"%s", a3, v5, v6);
}
return result;
}
| _M_word_boundary:
SUB RSP,0x48
MOV qword ptr [RSP + 0x38],RDI
MOV RSI,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x8],RSI
MOV RDI,RSI
ADD RDI,0x18
ADD RSI,0x20
CALL 0x001f3460
TEST AL,0x1
JNZ 0x001f5629
JMP 0x001f564d
LAB_001f5629:
MOV RAX,qword ptr [RSP + 0x8]
MOV EDI,dword ptr [RAX + 0x88]
MOV ESI,0x4
CALL 0x001f20c0
CMP EAX,0x0
JZ 0x001f564d
MOV byte ptr [RSP + 0x47],0x0
JMP 0x001f577f
LAB_001f564d:
MOV RSI,qword ptr [RSP + 0x8]
MOV RDI,RSI
ADD RDI,0x18
ADD RSI,0x28
CALL 0x001f3460
TEST AL,0x1
JNZ 0x001f5668
JMP 0x001f568c
LAB_001f5668:
MOV RAX,qword ptr [RSP + 0x8]
MOV EDI,dword ptr [RAX + 0x88]
MOV ESI,0x8
CALL 0x001f20c0
CMP EAX,0x0
JZ 0x001f568c
MOV byte ptr [RSP + 0x47],0x0
JMP 0x001f577f
LAB_001f568c:
MOV RSI,qword ptr [RSP + 0x8]
MOV byte ptr [RSP + 0x37],0x0
MOV RDI,RSI
ADD RDI,0x18
ADD RSI,0x20
CALL 0x001b7390
TEST AL,0x1
JNZ 0x001f56c4
MOV RAX,qword ptr [RSP + 0x8]
MOV EDI,dword ptr [RAX + 0x88]
MOV ESI,0x80
CALL 0x001f20c0
CMP EAX,0x0
JZ 0x001f5714
LAB_001f56c4:
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0x18]
MOV ESI,0x1
CALL 0x001f54d0
MOV qword ptr [RSP + 0x20],RAX
LEA RDI,[RSP + 0x20]
CALL 0x001b73e0
MOV RDI,qword ptr [RSP + 0x8]
MOVSX ESI,byte ptr [RAX]
CALL 0x001f5790
TEST AL,0x1
JNZ 0x001f570d
JMP 0x001f5712
LAB_001f570d:
MOV byte ptr [RSP + 0x37],0x1
LAB_001f5712:
JMP 0x001f5714
LAB_001f5714:
MOV RSI,qword ptr [RSP + 0x8]
MOV RDI,RSI
ADD RDI,0x18
ADD RSI,0x28
CALL 0x001b7390
MOV CL,AL
XOR EAX,EAX
TEST CL,0x1
MOV byte ptr [RSP + 0x7],AL
JNZ 0x001f5738
JMP 0x001f5757
LAB_001f5738:
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x18
CALL 0x001b73e0
MOV RDI,qword ptr [RSP + 0x8]
MOVSX ESI,byte ptr [RAX]
CALL 0x001f5790
MOV byte ptr [RSP + 0x7],AL
LAB_001f5757:
MOV AL,byte ptr [RSP + 0x7]
AND AL,0x1
MOV byte ptr [RSP + 0x17],AL
MOV AL,byte ptr [RSP + 0x37]
AND AL,0x1
MOVZX EAX,AL
MOV CL,byte ptr [RSP + 0x17]
AND CL,0x1
MOVZX ECX,CL
CMP EAX,ECX
SETNZ AL
AND AL,0x1
MOV byte ptr [RSP + 0x47],AL
LAB_001f577f:
MOV AL,byte ptr [RSP + 0x47]
AND AL,0x1
ADD RSP,0x48
RET
|
/* std::__detail::_Executor<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string >,
std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char const*,
std::__cxx11::string > > >, std::__cxx11::regex_traits<char>, false>::_M_word_boundary() const */
bool __thiscall
std::__detail::
_Executor<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>,std::__cxx11::regex_traits<char>,false>
::_M_word_boundary(_Executor<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>,std::__cxx11::regex_traits<char>,false>
*this)
{
bool bVar1;
int iVar2;
char *pcVar3;
ulong uVar4;
byte local_41;
int8 local_28;
int8 local_20;
byte local_11;
_Executor<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>,std::__cxx11::regex_traits<char>,false>
*local_10;
bool local_1;
local_10 = this;
bVar1 = __gnu_cxx::operator==
((__normal_iterator *)(this + 0x18),(__normal_iterator *)(this + 0x20));
if ((bVar1) && (iVar2 = regex_constants::operator&(*(int4 *)(this + 0x88),4), iVar2 != 0)) {
local_1 = false;
}
else {
bVar1 = __gnu_cxx::operator==
((__normal_iterator *)(this + 0x18),(__normal_iterator *)(this + 0x28));
if ((bVar1) && (iVar2 = regex_constants::operator&(*(int4 *)(this + 0x88),8), iVar2 != 0))
{
local_1 = false;
}
else {
local_11 = 0;
bVar1 = __gnu_cxx::operator!=
((__normal_iterator *)(this + 0x18),(__normal_iterator *)(this + 0x20));
if ((bVar1) ||
(iVar2 = regex_constants::operator&(*(int4 *)(this + 0x88),0x80), iVar2 != 0)) {
local_20 = *(int8 *)(this + 0x18);
local_28 = prev<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>(local_20,1);
pcVar3 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator*
((__normal_iterator<char_const*,std::__cxx11::string> *)&local_28
);
uVar4 = _M_is_word(this,*pcVar3);
if ((uVar4 & 1) != 0) {
local_11 = 1;
}
}
bVar1 = __gnu_cxx::operator!=
((__normal_iterator *)(this + 0x18),(__normal_iterator *)(this + 0x28));
local_41 = 0;
if (bVar1) {
pcVar3 = (char *)__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator*
((__normal_iterator<char_const*,std::__cxx11::string> *)
(this + 0x18));
local_41 = _M_is_word(this,*pcVar3);
}
local_1 = (local_11 & 1) != (local_41 & 1);
}
}
return local_1;
}
| |
49,770 | common_init() | monkey531[P]llama/common/common.cpp | void common_init() {
llama_log_set([](ggml_log_level level, const char * text, void * /*user_data*/) {
if (LOG_DEFAULT_LLAMA <= common_log_verbosity_thold) {
common_log_add(common_log_main(), level, "%s", text);
}
}, NULL);
#ifdef NDEBUG
const char * build_type = "";
#else
const char * build_type = " (debug)";
#endif
LOG_INF("build: %d (%s) with %s for %s%s\n", LLAMA_BUILD_NUMBER, LLAMA_COMMIT, LLAMA_COMPILER, LLAMA_BUILD_TARGET, build_type);
} | O3 | cpp | common_init():
leaq 0xb5e97(%rip), %rax # 0x12d438
cmpl $0x0, (%rax)
js 0x775cf
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
callq 0xcb8a7
leaq 0x73716(%rip), %rdx # 0xeacd0
movq %rax, %rdi
movl %ebp, %esi
movq %rbx, %rcx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xcb944
retq
| _ZZ11common_initvEN3$_08__invokeE14ggml_log_levelPKcPv:
lea rax, common_log_verbosity_thold
cmp dword ptr [rax], 0
js short locret_775CF
push rbp
push rbx
push rax
mov rbx, rsi
mov ebp, edi
call _Z15common_log_mainv; common_log_main(void)
lea rdx, aSetCustomJinja_0+0FEh; "%s"
mov rdi, rax
mov esi, ebp
mov rcx, rbx
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*,...)
locret_775CF:
retn
| void * common_init(void)::$_0::__invoke(int a1, int a2)
{
void *result; // rax
int v3; // eax
int v4; // r8d
int v5; // r9d
result = &common_log_verbosity_thold;
if ( common_log_verbosity_thold >= 0 )
{
v3 = common_log_main();
return (void *)common_log_add(v3, a1, (unsigned int)"%s", a2, v4, v5);
}
return result;
}
| |||
49,771 | my_xml_enter | eloqsql/strings/xml.c | static int my_xml_enter(MY_XML_PARSER *st, const char *str, size_t len)
{
if (my_xml_attr_ensure_space(st, len + 1 /* the separator char */))
return MY_XML_ERROR;
if (st->attr.end > st->attr.start)
{
st->attr.end[0]= '/';
st->attr.end++;
}
memcpy(st->attr.end, str, len);
st->attr.end+= len;
st->attr.end[0]= '\0';
if (st->flags & MY_XML_FLAG_RELATIVE_NAMES)
return st->enter ? st->enter(st, str, len) : MY_XML_OK;
else
return st->enter ?
st->enter(st, st->attr.start, st->attr.end - st->attr.start) : MY_XML_OK;
} | O0 | c | my_xml_enter:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
addq $0x1, %rsi
callq 0x14efa0
cmpl $0x0, %eax
je 0x14ead6
movl $0x1, -0x4(%rbp)
jmp 0x14ebec
movq -0x10(%rbp), %rax
movq 0x120(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x118(%rcx), %rax
jbe 0x14eb12
movq -0x10(%rbp), %rax
movq 0x120(%rax), %rax
movb $0x2f, (%rax)
movq -0x10(%rbp), %rax
movq 0x120(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x120(%rax)
movq -0x10(%rbp), %rax
movq 0x120(%rax), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x2a090
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
addq 0x120(%rax), %rcx
movq %rcx, 0x120(%rax)
movq -0x10(%rbp), %rax
movq 0x120(%rax), %rax
movb $0x0, (%rax)
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x14eb97
movq -0x10(%rbp), %rax
cmpq $0x0, 0x148(%rax)
je 0x14eb88
movq -0x10(%rbp), %rax
movq 0x148(%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq *%rax
movl %eax, -0x24(%rbp)
jmp 0x14eb8f
xorl %eax, %eax
movl %eax, -0x24(%rbp)
jmp 0x14eb8f
movl -0x24(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x14ebec
movq -0x10(%rbp), %rax
cmpq $0x0, 0x148(%rax)
je 0x14ebdf
movq -0x10(%rbp), %rax
movq 0x148(%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rcx
movq 0x118(%rcx), %rsi
movq -0x10(%rbp), %rcx
movq 0x120(%rcx), %rdx
movq -0x10(%rbp), %rcx
movq 0x118(%rcx), %rcx
subq %rcx, %rdx
callq *%rax
movl %eax, -0x28(%rbp)
jmp 0x14ebe6
xorl %eax, %eax
movl %eax, -0x28(%rbp)
jmp 0x14ebe6
movl -0x28(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_xml_enter:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
add rsi, 1
call my_xml_attr_ensure_space
cmp eax, 0
jz short loc_14EAD6
mov [rbp+var_4], 1
jmp loc_14EBEC
loc_14EAD6:
mov rax, [rbp+var_10]
mov rax, [rax+120h]
mov rcx, [rbp+var_10]
cmp rax, [rcx+118h]
jbe short loc_14EB12
mov rax, [rbp+var_10]
mov rax, [rax+120h]
mov byte ptr [rax], 2Fh ; '/'
mov rax, [rbp+var_10]
mov rcx, [rax+120h]
add rcx, 1
mov [rax+120h], rcx
loc_14EB12:
mov rax, [rbp+var_10]
mov rdi, [rax+120h]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call _memcpy
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
add rcx, [rax+120h]
mov [rax+120h], rcx
mov rax, [rbp+var_10]
mov rax, [rax+120h]
mov byte ptr [rax], 0
mov rax, [rbp+var_10]
mov eax, [rax]
and eax, 1
cmp eax, 0
jz short loc_14EB97
mov rax, [rbp+var_10]
cmp qword ptr [rax+148h], 0
jz short loc_14EB88
mov rax, [rbp+var_10]
mov rax, [rax+148h]
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call rax
mov [rbp+var_24], eax
jmp short loc_14EB8F
loc_14EB88:
xor eax, eax
mov [rbp+var_24], eax
jmp short $+2
loc_14EB8F:
mov eax, [rbp+var_24]
mov [rbp+var_4], eax
jmp short loc_14EBEC
loc_14EB97:
mov rax, [rbp+var_10]
cmp qword ptr [rax+148h], 0
jz short loc_14EBDF
mov rax, [rbp+var_10]
mov rax, [rax+148h]
mov rdi, [rbp+var_10]
mov rcx, [rbp+var_10]
mov rsi, [rcx+118h]
mov rcx, [rbp+var_10]
mov rdx, [rcx+120h]
mov rcx, [rbp+var_10]
mov rcx, [rcx+118h]
sub rdx, rcx
call rax
mov [rbp+var_28], eax
jmp short loc_14EBE6
loc_14EBDF:
xor eax, eax
mov [rbp+var_28], eax
jmp short $+2
loc_14EBE6:
mov eax, [rbp+var_28]
mov [rbp+var_4], eax
loc_14EBEC:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long my_xml_enter(long long a1, long long a2, long long a3)
{
if ( (unsigned int)my_xml_attr_ensure_space(a1, a3 + 1) )
{
return 1;
}
else
{
if ( *(_QWORD *)(a1 + 288) > *(_QWORD *)(a1 + 280) )
*(_BYTE *)(*(_QWORD *)(a1 + 288))++ = 47;
memcpy(*(_QWORD *)(a1 + 288), a2, a3);
*(_QWORD *)(a1 + 288) += a3;
**(_BYTE **)(a1 + 288) = 0;
if ( (*(_DWORD *)a1 & 1) != 0 )
{
if ( *(_QWORD *)(a1 + 328) )
return (unsigned int)(*(long long ( **)(long long, long long, long long))(a1 + 328))(a1, a2, a3);
else
return 0;
}
else if ( *(_QWORD *)(a1 + 328) )
{
return (unsigned int)(*(long long ( **)(long long, _QWORD, _QWORD))(a1 + 328))(
a1,
*(_QWORD *)(a1 + 280),
*(_QWORD *)(a1 + 288) - *(_QWORD *)(a1 + 280));
}
else
{
return 0;
}
}
}
| |||
49,772 | my_xml_enter | eloqsql/strings/xml.c | static int my_xml_enter(MY_XML_PARSER *st, const char *str, size_t len)
{
if (my_xml_attr_ensure_space(st, len + 1 /* the separator char */))
return MY_XML_ERROR;
if (st->attr.end > st->attr.start)
{
st->attr.end[0]= '/';
st->attr.end++;
}
memcpy(st->attr.end, str, len);
st->attr.end+= len;
st->attr.end[0]= '\0';
if (st->flags & MY_XML_FLAG_RELATIVE_NAMES)
return st->enter ? st->enter(st, str, len) : MY_XML_OK;
else
return st->enter ?
st->enter(st, st->attr.start, st->attr.end - st->attr.start) : MY_XML_OK;
} | O3 | c | my_xml_enter:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq 0x120(%rdi), %rdi
movq 0x110(%rbx), %rcx
movq 0x118(%rbx), %rax
movq %rdi, %r12
subq %rax, %r12
addq %r12, %rdx
addq $0x2, %rdx
cmpq %rcx, %rdx
jbe 0xd78c9
leaq 0x2(%r14), %rax
movq $-0x3, %rdx
subq %r14, %rdx
shrq %rdx
cmpq %rcx, %rdx
leaq (%rax,%rcx,2), %rax
movq $-0x1, %rdx
cmovaq %rax, %rdx
movq %rdx, 0x110(%rbx)
movq 0x108(%rbx), %rsi
xorl %edi, %edi
testq %rsi, %rsi
je 0xd7877
xorl %ecx, %ecx
callq 0x9fa24
movq %rax, 0x108(%rbx)
jmp 0xd78ac
movq %rdx, %rsi
xorl %edx, %edx
callq 0x9f901
movq %rax, 0x108(%rbx)
testq %rax, %rax
je 0xd7947
leaq 0x88(%rbx), %rsi
leaq 0x1(%r12), %rdx
movq %rax, %rdi
callq 0x29080
movq 0x108(%rbx), %rax
movq %rax, 0x118(%rbx)
addq %rax, %r12
movq %r12, 0x120(%rbx)
movq %r12, %rdi
testq %rax, %rax
je 0xd7959
cmpq %rax, %rdi
jbe 0xd78e2
movb $0x2f, (%rdi)
movq 0x120(%rbx), %rdi
incq %rdi
movq %rdi, 0x120(%rbx)
movq %r15, %rsi
movq %r14, %rdx
callq 0x29080
movq 0x120(%rbx), %rax
leaq (%rax,%r14), %rcx
movq %rcx, 0x120(%rbx)
movb $0x0, (%rax,%r14)
testb $0x1, (%rbx)
movq 0x148(%rbx), %rax
jne 0xd792b
testq %rax, %rax
je 0xd7943
movq 0x118(%rbx), %rsi
movq 0x120(%rbx), %rdx
subq %rsi, %rdx
movq %rbx, %rdi
jmp 0xd7939
testq %rax, %rax
je 0xd7943
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmpq *%rax
xorl %eax, %eax
jmp 0xd795e
movq $0x0, 0x118(%rbx)
movq %r12, 0x120(%rbx)
movl $0x1, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| my_xml_enter:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov rdi, [rdi+120h]
mov rcx, [rbx+110h]
mov rax, [rbx+118h]
mov r12, rdi
sub r12, rax
add rdx, r12
add rdx, 2
cmp rdx, rcx
jbe loc_D78C9
lea rax, [r14+2]
mov rdx, 0FFFFFFFFFFFFFFFDh
sub rdx, r14
shr rdx, 1
cmp rdx, rcx
lea rax, [rax+rcx*2]
mov rdx, 0FFFFFFFFFFFFFFFFh
cmova rdx, rax
mov [rbx+110h], rdx
mov rsi, [rbx+108h]
xor edi, edi
test rsi, rsi
jz short loc_D7877
xor ecx, ecx
call my_realloc
mov [rbx+108h], rax
jmp short loc_D78AC
loc_D7877:
mov rsi, rdx
xor edx, edx
call my_malloc
mov [rbx+108h], rax
test rax, rax
jz loc_D7947
lea rsi, [rbx+88h]
lea rdx, [r12+1]
mov rdi, rax
call _memcpy
mov rax, [rbx+108h]
loc_D78AC:
mov [rbx+118h], rax
add r12, rax
mov [rbx+120h], r12
mov rdi, r12
test rax, rax
jz loc_D7959
loc_D78C9:
cmp rdi, rax
jbe short loc_D78E2
mov byte ptr [rdi], 2Fh ; '/'
mov rdi, [rbx+120h]
inc rdi
mov [rbx+120h], rdi
loc_D78E2:
mov rsi, r15
mov rdx, r14
call _memcpy
mov rax, [rbx+120h]
lea rcx, [rax+r14]
mov [rbx+120h], rcx
mov byte ptr [rax+r14], 0
test byte ptr [rbx], 1
mov rax, [rbx+148h]
jnz short loc_D792B
test rax, rax
jz short loc_D7943
mov rsi, [rbx+118h]
mov rdx, [rbx+120h]
sub rdx, rsi
mov rdi, rbx
jmp short loc_D7939
loc_D792B:
test rax, rax
jz short loc_D7943
mov rdi, rbx
mov rsi, r15
mov rdx, r14
loc_D7939:
pop rbx
pop r12
pop r14
pop r15
pop rbp
jmp rax
loc_D7943:
xor eax, eax
jmp short loc_D795E
loc_D7947:
mov qword ptr [rbx+118h], 0
mov [rbx+120h], r12
loc_D7959:
mov eax, 1
loc_D795E:
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long my_xml_enter(long long a1, long long a2, long long a3)
{
_BYTE *v6; // rdi
unsigned long long v7; // rcx
unsigned long long v8; // rax
_BYTE *v9; // r12
bool v10; // cc
long long v11; // rdx
long long v12; // rsi
long long v13; // rax
_BYTE *v14; // r12
_BYTE *v15; // rcx
long long ( *v16)(long long, long long, long long); // rax
long long v17; // rsi
long long v18; // rdx
long long v19; // rdi
v6 = *(_BYTE **)(a1 + 288);
v7 = *(_QWORD *)(a1 + 272);
v8 = *(_QWORD *)(a1 + 280);
v9 = &v6[-v8];
if ( (unsigned long long)&v6[a3 - v8 + 2] > v7 )
{
v10 = (unsigned long long)(-3 - a3) >> 1 <= v7;
v11 = -1LL;
if ( !v10 )
v11 = a3 + 2 + 2 * v7;
*(_QWORD *)(a1 + 272) = v11;
v12 = *(_QWORD *)(a1 + 264);
if ( v12 )
{
v8 = my_realloc(0, v12, (const char *)v11, 0);
*(_QWORD *)(a1 + 264) = v8;
}
else
{
v13 = my_malloc(0, (const char *)v11, 0);
*(_QWORD *)(a1 + 264) = v13;
if ( !v13 )
{
*(_QWORD *)(a1 + 280) = 0LL;
*(_QWORD *)(a1 + 288) = v9;
return 1LL;
}
memcpy(v13, a1 + 136, v9 + 1);
v8 = *(_QWORD *)(a1 + 264);
}
*(_QWORD *)(a1 + 280) = v8;
v14 = &v9[v8];
*(_QWORD *)(a1 + 288) = v14;
v6 = v14;
if ( v8 )
goto LABEL_9;
return 1LL;
}
LABEL_9:
if ( (unsigned long long)v6 > v8 )
{
*v6 = 47;
v6 = (_BYTE *)(*(_QWORD *)(a1 + 288) + 1LL);
*(_QWORD *)(a1 + 288) = v6;
}
memcpy(v6, a2, a3);
v15 = (_BYTE *)(*(_QWORD *)(a1 + 288) + a3);
*(_QWORD *)(a1 + 288) = v15;
*v15 = 0;
v16 = *(long long ( **)(long long, long long, long long))(a1 + 328);
if ( (*(_BYTE *)a1 & 1) != 0 )
{
if ( v16 )
{
v19 = a1;
v17 = a2;
v18 = a3;
return v16(v19, v17, v18);
}
}
else if ( v16 )
{
v17 = *(_QWORD *)(a1 + 280);
v18 = *(_QWORD *)(a1 + 288) - v17;
v19 = a1;
return v16(v19, v17, v18);
}
return 0LL;
}
| my_xml_enter:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x120]
MOV RCX,qword ptr [RBX + 0x110]
MOV RAX,qword ptr [RBX + 0x118]
MOV R12,RDI
SUB R12,RAX
ADD RDX,R12
ADD RDX,0x2
CMP RDX,RCX
JBE 0x001d78c9
LEA RAX,[R14 + 0x2]
MOV RDX,-0x3
SUB RDX,R14
SHR RDX,0x1
CMP RDX,RCX
LEA RAX,[RAX + RCX*0x2]
MOV RDX,-0x1
CMOVA RDX,RAX
MOV qword ptr [RBX + 0x110],RDX
MOV RSI,qword ptr [RBX + 0x108]
XOR EDI,EDI
TEST RSI,RSI
JZ 0x001d7877
XOR ECX,ECX
CALL 0x0019fa24
MOV qword ptr [RBX + 0x108],RAX
JMP 0x001d78ac
LAB_001d7877:
MOV RSI,RDX
XOR EDX,EDX
CALL 0x0019f901
MOV qword ptr [RBX + 0x108],RAX
TEST RAX,RAX
JZ 0x001d7947
LEA RSI,[RBX + 0x88]
LEA RDX,[R12 + 0x1]
MOV RDI,RAX
CALL 0x00129080
MOV RAX,qword ptr [RBX + 0x108]
LAB_001d78ac:
MOV qword ptr [RBX + 0x118],RAX
ADD R12,RAX
MOV qword ptr [RBX + 0x120],R12
MOV RDI,R12
TEST RAX,RAX
JZ 0x001d7959
LAB_001d78c9:
CMP RDI,RAX
JBE 0x001d78e2
MOV byte ptr [RDI],0x2f
MOV RDI,qword ptr [RBX + 0x120]
INC RDI
MOV qword ptr [RBX + 0x120],RDI
LAB_001d78e2:
MOV RSI,R15
MOV RDX,R14
CALL 0x00129080
MOV RAX,qword ptr [RBX + 0x120]
LEA RCX,[RAX + R14*0x1]
MOV qword ptr [RBX + 0x120],RCX
MOV byte ptr [RAX + R14*0x1],0x0
TEST byte ptr [RBX],0x1
MOV RAX,qword ptr [RBX + 0x148]
JNZ 0x001d792b
TEST RAX,RAX
JZ 0x001d7943
MOV RSI,qword ptr [RBX + 0x118]
MOV RDX,qword ptr [RBX + 0x120]
SUB RDX,RSI
MOV RDI,RBX
JMP 0x001d7939
LAB_001d792b:
TEST RAX,RAX
JZ 0x001d7943
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
LAB_001d7939:
POP RBX
POP R12
POP R14
POP R15
POP RBP
JMP RAX
LAB_001d7943:
XOR EAX,EAX
JMP 0x001d795e
LAB_001d7947:
MOV qword ptr [RBX + 0x118],0x0
MOV qword ptr [RBX + 0x120],R12
LAB_001d7959:
MOV EAX,0x1
LAB_001d795e:
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int8 my_xml_enter(byte *param_1,void *param_2,size_t param_3)
{
ulong uVar1;
code *UNRECOVERED_JUMPTABLE;
int1 *puVar2;
void *__dest;
int8 uVar3;
long lVar4;
long lVar5;
int1 *__dest_00;
__dest_00 = *(int1 **)(param_1 + 0x120);
uVar1 = *(ulong *)(param_1 + 0x110);
puVar2 = *(int1 **)(param_1 + 0x118);
lVar5 = (long)__dest_00 - (long)puVar2;
if (uVar1 < param_3 + lVar5 + 2) {
lVar4 = -1;
if (uVar1 < -param_3 - 3 >> 1) {
lVar4 = param_3 + 2 + uVar1 * 2;
}
*(long *)(param_1 + 0x110) = lVar4;
if (*(long *)(param_1 + 0x108) == 0) {
__dest = (void *)my_malloc(0,lVar4,0);
*(void **)(param_1 + 0x108) = __dest;
if (__dest != (void *)0x0) {
memcpy(__dest,param_1 + 0x88,lVar5 + 1);
puVar2 = *(int1 **)(param_1 + 0x108);
goto LAB_001d78ac;
}
param_1[0x118] = 0;
param_1[0x119] = 0;
param_1[0x11a] = 0;
param_1[0x11b] = 0;
param_1[0x11c] = 0;
param_1[0x11d] = 0;
param_1[0x11e] = 0;
param_1[0x11f] = 0;
*(long *)(param_1 + 0x120) = lVar5;
}
else {
puVar2 = (int1 *)my_realloc();
*(int1 **)(param_1 + 0x108) = puVar2;
LAB_001d78ac:
*(int1 **)(param_1 + 0x118) = puVar2;
__dest_00 = puVar2 + lVar5;
*(int1 **)(param_1 + 0x120) = __dest_00;
if (puVar2 != (int1 *)0x0) goto LAB_001d78c9;
}
uVar3 = 1;
}
else {
LAB_001d78c9:
if (puVar2 < __dest_00) {
*__dest_00 = 0x2f;
__dest_00 = (int1 *)(*(long *)(param_1 + 0x120) + 1);
*(int1 **)(param_1 + 0x120) = __dest_00;
}
memcpy(__dest_00,param_2,param_3);
lVar5 = *(long *)(param_1 + 0x120);
*(size_t *)(param_1 + 0x120) = lVar5 + param_3;
*(int1 *)(lVar5 + param_3) = 0;
UNRECOVERED_JUMPTABLE = *(code **)(param_1 + 0x148);
if ((*param_1 & 1) == 0) {
if (UNRECOVERED_JUMPTABLE != (code *)0x0) {
param_2 = *(void **)(param_1 + 0x118);
param_3 = *(long *)(param_1 + 0x120) - (long)param_2;
LAB_001d7939:
/* WARNING: Could not recover jumptable at 0x001d7941. Too many branches */
/* WARNING: Treating indirect jump as call */
uVar3 = (*UNRECOVERED_JUMPTABLE)(param_1,param_2,param_3);
return uVar3;
}
}
else if (UNRECOVERED_JUMPTABLE != (code *)0x0) goto LAB_001d7939;
uVar3 = 0;
}
return uVar3;
}
| |
49,773 | get_collation_number | eloqsql/mysys/charset.c | uint get_collation_number(const char *name, myf flags)
{
uint id;
char alias[64];
my_pthread_once(&charsets_initialized, init_available_charsets);
if ((id= get_collation_number_internal(name)))
return id;
if ((name= get_collation_name_alias(name, alias, sizeof(alias),flags)))
return get_collation_number_internal(name);
return 0;
} | O3 | c | get_collation_number:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x18(%rbp)
leaq 0xb82e98(%rip), %rdi # 0xc30020
leaq 0x80(%rip), %rsi # 0xad20f
callq 0x2a250
movq %rbx, %rdi
callq 0xad38f
testl %eax, %eax
jne 0xad1f2
leaq 0x52258(%rip), %rsi # 0xff3ff
movl $0x5, %edx
movq %rbx, %rdi
callq 0x2a850
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
jne 0xad1f2
btl $0xa, %r14d
movl $0x33, %ecx
sbbl $-0x1, %ecx
addq $0x5, %rbx
leaq 0x52231(%rip), %rdx # 0xff405
leaq -0x60(%rbp), %r14
movl $0x40, %esi
movq %r14, %rdi
movq %rbx, %r8
xorl %eax, %eax
callq 0xf6a62
movq %r14, %rdi
callq 0xad38f
movq %fs:0x28, %rcx
cmpq -0x18(%rbp), %rcx
jne 0xad20a
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x2a280
| get_collation_number:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 50h
mov r14, rsi
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_18], rax
lea rdi, charsets_initialized
lea rsi, init_available_charsets
call _pthread_once
mov rdi, rbx
call get_collation_number_internal
test eax, eax
jnz short loc_AD1F2
lea rsi, aUtf8_0; "utf8_"
mov edx, 5
mov rdi, rbx
call _strncasecmp
mov ecx, eax
xor eax, eax
test ecx, ecx
jnz short loc_AD1F2
bt r14d, 0Ah
mov ecx, 33h ; '3'
sbb ecx, 0FFFFFFFFh
add rbx, 5
lea rdx, aUtf8mbCS; "utf8mb%c_%s"
lea r14, [rbp+var_60]
mov esi, 40h ; '@'
mov rdi, r14
mov r8, rbx
xor eax, eax
call my_snprintf
mov rdi, r14
call get_collation_number_internal
loc_AD1F2:
mov rcx, fs:28h
cmp rcx, [rbp+var_18]
jnz short loc_AD20A
add rsp, 50h
pop rbx
pop r14
pop rbp
retn
loc_AD20A:
call ___stack_chk_fail
| long long get_collation_number(long long a1, __int16 a2)
{
long long result; // rax
int v3; // ecx
int v4; // r9d
char v5[72]; // [rsp+0h] [rbp-60h] BYREF
unsigned long long v6; // [rsp+48h] [rbp-18h]
v6 = __readfsqword(0x28u);
pthread_once(&charsets_initialized, init_available_charsets);
result = get_collation_number_internal(a1);
if ( !(_DWORD)result )
{
v3 = strncasecmp(a1, "utf8_", 5LL);
result = 0LL;
if ( !v3 )
{
my_snprintf((unsigned int)v5, 64, (unsigned int)"utf8mb%c_%s", 51 - (((a2 & 0x400) != 0) - 1), a1 + 5, v4, v5[0]);
return get_collation_number_internal(v5);
}
}
return result;
}
| get_collation_number:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x18],RAX
LEA RDI,[0xd30020]
LEA RSI,[0x1ad20f]
CALL 0x0012a250
MOV RDI,RBX
CALL 0x001ad38f
TEST EAX,EAX
JNZ 0x001ad1f2
LEA RSI,[0x1ff3ff]
MOV EDX,0x5
MOV RDI,RBX
CALL 0x0012a850
MOV ECX,EAX
XOR EAX,EAX
TEST ECX,ECX
JNZ 0x001ad1f2
BT R14D,0xa
MOV ECX,0x33
SBB ECX,-0x1
ADD RBX,0x5
LEA RDX,[0x1ff405]
LEA R14,[RBP + -0x60]
MOV ESI,0x40
MOV RDI,R14
MOV R8,RBX
XOR EAX,EAX
CALL 0x001f6a62
MOV RDI,R14
CALL 0x001ad38f
LAB_001ad1f2:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x18]
JNZ 0x001ad20a
ADD RSP,0x50
POP RBX
POP R14
POP RBP
RET
LAB_001ad20a:
CALL 0x0012a280
|
int8 get_collation_number(char *param_1,uint param_2)
{
int iVar1;
int8 uVar2;
long in_FS_OFFSET;
int1 local_68 [72];
long local_20;
local_20 = *(long *)(in_FS_OFFSET + 0x28);
pthread_once(&charsets_initialized,init_available_charsets);
uVar2 = get_collation_number_internal(param_1);
if ((int)uVar2 == 0) {
iVar1 = strncasecmp(param_1,"utf8_",5);
uVar2 = 0;
if (iVar1 == 0) {
my_snprintf(local_68,0x40,"utf8mb%c_%s",0x34 - (uint)((param_2 >> 10 & 1) != 0),param_1 + 5);
uVar2 = get_collation_number_internal(local_68);
}
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_20) {
return uVar2;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
49,774 | JS_AtomIsNumericIndex | bluesky950520[P]quickjs/quickjs.c | static int JS_AtomIsNumericIndex(JSContext *ctx, JSAtom atom)
{
JSValue num;
num = JS_AtomIsNumericIndex1(ctx, atom);
if (likely(JS_IsUndefined(num)))
return FALSE;
if (JS_IsException(num))
return -1;
JS_FreeValue(ctx, num);
return TRUE;
} | O0 | c | JS_AtomIsNumericIndex:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movl %esi, 0x24(%rsp)
movq 0x28(%rsp), %rdi
movl 0x24(%rsp), %esi
callq 0x362a0
movq %rax, (%rsp)
movq %rdx, 0x8(%rsp)
movq (%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x2e260
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x311b7
movl $0x0, 0x34(%rsp)
jmp 0x311f1
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x311d5
movl $0xffffffff, 0x34(%rsp) # imm = 0xFFFFFFFF
jmp 0x311f1
movq 0x28(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0x23c90
movl $0x1, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopw (%rax,%rax)
| JS_AtomIsNumericIndex:
sub rsp, 38h
mov [rsp+38h+var_10], rdi
mov [rsp+38h+var_14], esi
mov rdi, [rsp+38h+var_10]
mov esi, [rsp+38h+var_14]
call JS_AtomIsNumericIndex1
mov [rsp+38h+var_38], rax
mov [rsp+38h+var_30], rdx
mov rax, [rsp+38h+var_38]
mov [rsp+38h+var_28], rax
mov rax, [rsp+38h+var_30]
mov [rsp+38h+var_20], rax
mov rdi, [rsp+38h+var_28]
mov rsi, [rsp+38h+var_20]
call JS_IsUndefined_0
cmp eax, 0
setnz al
xor al, 0FFh
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_311B7
mov [rsp+38h+var_4], 0
jmp short loc_311F1
loc_311B7:
mov rdi, [rsp+38h+var_28]
mov rsi, [rsp+38h+var_20]
call JS_IsException_1
cmp eax, 0
jz short loc_311D5
mov [rsp+38h+var_4], 0FFFFFFFFh
jmp short loc_311F1
loc_311D5:
mov rdi, [rsp+38h+var_10]
mov rsi, [rsp+38h+var_28]
mov rdx, [rsp+38h+var_20]
call JS_FreeValue
mov [rsp+38h+var_4], 1
loc_311F1:
mov eax, [rsp+38h+var_4]
add rsp, 38h
retn
| long long JS_AtomIsNumericIndex(long long a1, unsigned int a2)
{
long long v2; // rdx
long long IsNumericIndex1; // [rsp+0h] [rbp-38h]
long long v5; // [rsp+18h] [rbp-20h]
IsNumericIndex1 = JS_AtomIsNumericIndex1(a1, a2);
v5 = v2;
if ( JS_IsUndefined_0(IsNumericIndex1, v2) )
{
return 0;
}
else if ( JS_IsException_1(IsNumericIndex1, v5) )
{
return (unsigned int)-1;
}
else
{
JS_FreeValue(a1, IsNumericIndex1, v5);
return 1;
}
}
| JS_HasException:
PUSH RAX
MOV qword ptr [RSP],RDI
MOV RAX,qword ptr [RSP]
MOV RAX,qword ptr [RAX + 0x18]
MOV RDI,qword ptr [RAX + 0xf0]
MOV RSI,qword ptr [RAX + 0xf8]
CALL 0x00131180
CMP EAX,0x0
SETNZ AL
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
POP RCX
RET
|
byte JS_HasException(long param_1)
{
int iVar1;
iVar1 = JS_IsUninitialized(*(int8 *)(*(long *)(param_1 + 0x18) + 0xf0),
*(int8 *)(*(long *)(param_1 + 0x18) + 0xf8));
return (iVar1 != 0 ^ 0xffU) & 1;
}
| |
49,775 | JS_AtomIsNumericIndex | bluesky950520[P]quickjs/quickjs.c | static int JS_AtomIsNumericIndex(JSContext *ctx, JSAtom atom)
{
JSValue num;
num = JS_AtomIsNumericIndex1(ctx, atom);
if (likely(JS_IsUndefined(num)))
return FALSE;
if (JS_IsException(num))
return -1;
JS_FreeValue(ctx, num);
return TRUE;
} | O1 | c | JS_AtomIsNumericIndex:
pushq %rbx
movq %rdi, %rbx
callq 0x26855
xorl %ecx, %ecx
cmpl $0x3, %edx
jne 0x24074
movl %ecx, %eax
popq %rbx
retq
cmpl $0x6, %edx
jne 0x24080
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
jmp 0x24070
movq 0x18(%rbx), %rdi
movq %rax, %rsi
callq 0x1d8c6
movl $0x1, %ecx
jmp 0x24070
| JS_AtomIsNumericIndex:
push rbx
mov rbx, rdi
call JS_AtomIsNumericIndex1
xor ecx, ecx
cmp edx, 3
jnz short loc_24074
loc_24070:
mov eax, ecx
pop rbx
retn
loc_24074:
cmp edx, 6
jnz short loc_24080
mov ecx, 0FFFFFFFFh
jmp short loc_24070
loc_24080:
mov rdi, [rbx+18h]
mov rsi, rax
call JS_FreeValueRT
mov ecx, 1
jmp short loc_24070
| long long JS_AtomIsNumericIndex(long long a1)
{
_DWORD *IsNumericIndex1; // rax
long long v2; // rdx
unsigned int v3; // ecx
IsNumericIndex1 = (_DWORD *)JS_AtomIsNumericIndex1();
v3 = 0;
if ( (_DWORD)v2 != 3 )
{
if ( (_DWORD)v2 == 6 )
{
return (unsigned int)-1;
}
else
{
JS_FreeValueRT(*(_QWORD *)(a1 + 24), IsNumericIndex1, v2);
return 1;
}
}
return v3;
}
| |||
49,776 | JS_AtomIsNumericIndex | bluesky950520[P]quickjs/quickjs.c | static int JS_AtomIsNumericIndex(JSContext *ctx, JSAtom atom)
{
JSValue num;
num = JS_AtomIsNumericIndex1(ctx, atom);
if (likely(JS_IsUndefined(num)))
return FALSE;
if (JS_IsException(num))
return -1;
JS_FreeValue(ctx, num);
return TRUE;
} | O2 | c | JS_AtomIsNumericIndex:
pushq %rbx
movq %rdi, %rbx
callq 0x202e2
xorl %ecx, %ecx
cmpl $0x3, %edx
jne 0x1e0a3
movl %ecx, %eax
popq %rbx
retq
cmpl $0x6, %edx
jne 0x1e0ac
pushq $-0x1
jmp 0x1e0b9
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1801e
pushq $0x1
popq %rcx
jmp 0x1e09f
| JS_AtomIsNumericIndex:
push rbx
mov rbx, rdi
call JS_AtomIsNumericIndex1
xor ecx, ecx
cmp edx, 3
jnz short loc_1E0A3
loc_1E09F:
mov eax, ecx
pop rbx
retn
loc_1E0A3:
cmp edx, 6
jnz short loc_1E0AC
push 0FFFFFFFFFFFFFFFFh
jmp short loc_1E0B9
loc_1E0AC:
mov rdi, rbx
mov rsi, rax
call JS_FreeValue
push 1
loc_1E0B9:
pop rcx
jmp short loc_1E09F
| long long JS_AtomIsNumericIndex(long long a1)
{
long long IsNumericIndex1; // rax
long long v2; // rdx
unsigned int v3; // ecx
IsNumericIndex1 = JS_AtomIsNumericIndex1();
v3 = 0;
if ( (_DWORD)v2 != 3 )
{
if ( (_DWORD)v2 == 6 )
{
return (unsigned int)-1;
}
else
{
JS_FreeValue(a1, IsNumericIndex1, v2);
return 1;
}
}
return v3;
}
| JS_AtomIsNumericIndex:
PUSH RBX
MOV RBX,RDI
CALL 0x001202e2
XOR ECX,ECX
CMP EDX,0x3
JNZ 0x0011e0a3
LAB_0011e09f:
MOV EAX,ECX
POP RBX
RET
LAB_0011e0a3:
CMP EDX,0x6
JNZ 0x0011e0ac
PUSH -0x1
JMP 0x0011e0b9
LAB_0011e0ac:
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0011801e
PUSH 0x1
LAB_0011e0b9:
POP RCX
JMP 0x0011e09f
|
int4 JS_AtomIsNumericIndex(int8 param_1)
{
int4 uVar1;
int1 auVar2 [12];
auVar2 = JS_AtomIsNumericIndex1();
uVar1 = 0;
if (auVar2._8_4_ != 3) {
if (auVar2._8_4_ == 6) {
uVar1 = 0xffffffff;
}
else {
JS_FreeValue(param_1,auVar2._0_8_);
uVar1 = 1;
}
}
return uVar1;
}
| |
49,777 | release_rdlock | eloqsql/storage/maria/ma_pagecache.c | static void release_rdlock(PAGECACHE_BLOCK_LINK *block)
{
DBUG_ENTER("release_wrlock");
PCBLOCK_INFO(block);
if (block->wlocks)
{
DBUG_ASSERT(pthread_equal(block->write_locker, pthread_self()));
DBUG_ASSERT(block->rlocks == 0);
DBUG_ASSERT(block->rlocks_queue > 0);
block->rlocks_queue--;
DBUG_PRINT("info", ("RD lock queue decreased, block %p", block));
DBUG_VOID_RETURN;
}
DBUG_ASSERT(block->rlocks > 0);
DBUG_ASSERT(block->rlocks_queue == 0);
block->rlocks--;
DBUG_PRINT("info", ("RD lock decreased, block %p", block));
if (block->rlocks > 0)
DBUG_VOID_RETURN; /* Multiple write locked */
DBUG_PRINT("info", ("RD lock reset, block %p", block));
/* release all threads waiting for read lock or one waiting for write */
if (block->wqueue[COND_FOR_WRLOCK].last_thread)
wqueue_release_one_locktype_from_queue(&block->wqueue[COND_FOR_WRLOCK]);
PCBLOCK_INFO(block);
DBUG_VOID_RETURN;
} | O0 | c | release_rdlock:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
jmp 0x9cc7e
movq -0x8(%rbp), %rax
cmpl $0x0, 0x68(%rax)
je 0x9cca7
jmp 0x9cc8a
jmp 0x9cc8c
jmp 0x9cc8e
jmp 0x9cc90
jmp 0x9cc92
jmp 0x9cc94
movq -0x8(%rbp), %rax
movl 0x70(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x70(%rax)
jmp 0x9cca3
jmp 0x9cca5
jmp 0x9ccf4
jmp 0x9cca9
jmp 0x9ccab
jmp 0x9ccad
jmp 0x9ccaf
movq -0x8(%rbp), %rax
movl 0x6c(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x6c(%rax)
jmp 0x9ccbe
movq -0x8(%rbp), %rax
cmpl $0x0, 0x6c(%rax)
jbe 0x9cccc
jmp 0x9ccca
jmp 0x9ccf4
jmp 0x9ccce
jmp 0x9ccd0
movq -0x8(%rbp), %rax
cmpq $0x0, 0x58(%rax)
je 0x9ccec
movq -0x8(%rbp), %rdi
addq $0x48, %rdi
addq $0x10, %rdi
callq 0x108a50
jmp 0x9ccee
jmp 0x9ccf0
jmp 0x9ccf2
jmp 0x9ccf4
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| release_rdlock:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
jmp short $+2
loc_9CC7E:
mov rax, [rbp+var_8]
cmp dword ptr [rax+68h], 0
jz short loc_9CCA7
jmp short $+2
loc_9CC8A:
jmp short $+2
loc_9CC8C:
jmp short $+2
loc_9CC8E:
jmp short $+2
loc_9CC90:
jmp short $+2
loc_9CC92:
jmp short $+2
loc_9CC94:
mov rax, [rbp+var_8]
mov ecx, [rax+70h]
add ecx, 0FFFFFFFFh
mov [rax+70h], ecx
jmp short $+2
loc_9CCA3:
jmp short $+2
loc_9CCA5:
jmp short loc_9CCF4
loc_9CCA7:
jmp short $+2
loc_9CCA9:
jmp short $+2
loc_9CCAB:
jmp short $+2
loc_9CCAD:
jmp short $+2
loc_9CCAF:
mov rax, [rbp+var_8]
mov ecx, [rax+6Ch]
add ecx, 0FFFFFFFFh
mov [rax+6Ch], ecx
jmp short $+2
loc_9CCBE:
mov rax, [rbp+var_8]
cmp dword ptr [rax+6Ch], 0
jbe short loc_9CCCC
jmp short $+2
loc_9CCCA:
jmp short loc_9CCF4
loc_9CCCC:
jmp short $+2
loc_9CCCE:
jmp short $+2
loc_9CCD0:
mov rax, [rbp+var_8]
cmp qword ptr [rax+58h], 0
jz short loc_9CCEC
mov rdi, [rbp+var_8]
add rdi, 48h ; 'H'
add rdi, 10h
call wqueue_release_one_locktype_from_queue
loc_9CCEC:
jmp short $+2
loc_9CCEE:
jmp short $+2
loc_9CCF0:
jmp short $+2
loc_9CCF2:
jmp short $+2
loc_9CCF4:
add rsp, 10h
pop rbp
retn
| long long release_rdlock(long long a1)
{
long long result; // rax
if ( *(_DWORD *)(a1 + 104) )
{
result = a1;
--*(_DWORD *)(a1 + 112);
}
else
{
--*(_DWORD *)(a1 + 108);
result = a1;
if ( !*(_DWORD *)(a1 + 108) )
{
result = a1;
if ( *(_QWORD *)(a1 + 88) )
return wqueue_release_one_locktype_from_queue(a1 + 88);
}
}
return result;
}
| release_rdlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
JMP 0x0019cc7e
LAB_0019cc7e:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x68],0x0
JZ 0x0019cca7
JMP 0x0019cc8a
LAB_0019cc8a:
JMP 0x0019cc8c
LAB_0019cc8c:
JMP 0x0019cc8e
LAB_0019cc8e:
JMP 0x0019cc90
LAB_0019cc90:
JMP 0x0019cc92
LAB_0019cc92:
JMP 0x0019cc94
LAB_0019cc94:
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x70]
ADD ECX,-0x1
MOV dword ptr [RAX + 0x70],ECX
JMP 0x0019cca3
LAB_0019cca3:
JMP 0x0019cca5
LAB_0019cca5:
JMP 0x0019ccf4
LAB_0019cca7:
JMP 0x0019cca9
LAB_0019cca9:
JMP 0x0019ccab
LAB_0019ccab:
JMP 0x0019ccad
LAB_0019ccad:
JMP 0x0019ccaf
LAB_0019ccaf:
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x6c]
ADD ECX,-0x1
MOV dword ptr [RAX + 0x6c],ECX
JMP 0x0019ccbe
LAB_0019ccbe:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x6c],0x0
JBE 0x0019cccc
JMP 0x0019ccca
LAB_0019ccca:
JMP 0x0019ccf4
LAB_0019cccc:
JMP 0x0019ccce
LAB_0019ccce:
JMP 0x0019ccd0
LAB_0019ccd0:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x58],0x0
JZ 0x0019ccec
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x48
ADD RDI,0x10
CALL 0x00208a50
LAB_0019ccec:
JMP 0x0019ccee
LAB_0019ccee:
JMP 0x0019ccf0
LAB_0019ccf0:
JMP 0x0019ccf2
LAB_0019ccf2:
JMP 0x0019ccf4
LAB_0019ccf4:
ADD RSP,0x10
POP RBP
RET
|
void release_rdlock(long param_1)
{
if (*(int *)(param_1 + 0x68) == 0) {
*(int *)(param_1 + 0x6c) = *(int *)(param_1 + 0x6c) + -1;
if ((*(int *)(param_1 + 0x6c) == 0) && (*(long *)(param_1 + 0x58) != 0)) {
wqueue_release_one_locktype_from_queue(param_1 + 0x58);
}
}
else {
*(int *)(param_1 + 0x70) = *(int *)(param_1 + 0x70) + -1;
}
return;
}
| |
49,778 | plutovg_path_line_to | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-path.c | void plutovg_path_line_to(plutovg_path_t* path, float x, float y)
{
if(path->elements.size == 0)
plutovg_path_move_to(path, 0, 0);
plutovg_path_element_t* elements = plutovg_path_add_command(path, PLUTOVG_PATH_COMMAND_LINE_TO, 1);
elements[0].point = PLUTOVG_MAKE_POINT(x, y);
} | O1 | c | plutovg_path_line_to:
pushq %r14
pushq %rbx
pushq %rax
movss %xmm1, 0x4(%rsp)
movss %xmm0, (%rsp)
movq %rdi, %rbx
cmpl $0x0, 0x20(%rdi)
jne 0x2a37d
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x2a2d3
movq %r14, (%rax)
movq %r14, 0x10(%rbx)
incl 0x8(%rbx)
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0x2a2d3
movss (%rsp), %xmm0
movss %xmm0, (%rax)
movss 0x4(%rsp), %xmm0
movss %xmm0, 0x4(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| plutovg_path_line_to:
push r14
push rbx
push rax
movss [rsp+18h+var_14], xmm1
movss [rsp+18h+var_18], xmm0
mov rbx, rdi
cmp dword ptr [rdi+20h], 0
jnz short loc_2A37D
xor r14d, r14d
mov rdi, rbx
xor esi, esi
mov edx, 1
call plutovg_path_add_command
mov [rax], r14
mov [rbx+10h], r14
inc dword ptr [rbx+8]
loc_2A37D:
mov rdi, rbx
mov esi, 1
mov edx, 1
call plutovg_path_add_command
movss xmm0, [rsp+18h+var_18]
movss dword ptr [rax], xmm0
movss xmm0, [rsp+18h+var_14]
movss dword ptr [rax+4], xmm0
add rsp, 8
pop rbx
pop r14
retn
| float * plutovg_path_line_to(long long a1, float a2, float a3)
{
float *result; // rax
if ( !*(_DWORD *)(a1 + 32) )
{
*(_QWORD *)plutovg_path_add_command(a1, 0, 1) = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
++*(_DWORD *)(a1 + 8);
}
result = (float *)plutovg_path_add_command(a1, 1, 1);
*result = a2;
result[1] = a3;
return result;
}
| plutovg_path_line_to:
PUSH R14
PUSH RBX
PUSH RAX
MOVSS dword ptr [RSP + 0x4],XMM1
MOVSS dword ptr [RSP],XMM0
MOV RBX,RDI
CMP dword ptr [RDI + 0x20],0x0
JNZ 0x0012a37d
XOR R14D,R14D
MOV RDI,RBX
XOR ESI,ESI
MOV EDX,0x1
CALL 0x0012a2d3
MOV qword ptr [RAX],R14
MOV qword ptr [RBX + 0x10],R14
INC dword ptr [RBX + 0x8]
LAB_0012a37d:
MOV RDI,RBX
MOV ESI,0x1
MOV EDX,0x1
CALL 0x0012a2d3
MOVSS XMM0,dword ptr [RSP]
MOVSS dword ptr [RAX],XMM0
MOVSS XMM0,dword ptr [RSP + 0x4]
MOVSS dword ptr [RAX + 0x4],XMM0
ADD RSP,0x8
POP RBX
POP R14
RET
|
void plutovg_path_line_to(int4 param_1,int4 param_2,long param_3)
{
int8 *puVar1;
int4 *puVar2;
if (*(int *)(param_3 + 0x20) == 0) {
puVar1 = (int8 *)plutovg_path_add_command(param_3,0,1);
*puVar1 = 0;
*(int8 *)(param_3 + 0x10) = 0;
*(int *)(param_3 + 8) = *(int *)(param_3 + 8) + 1;
}
puVar2 = (int4 *)plutovg_path_add_command(param_3,1,1);
*puVar2 = param_1;
puVar2[1] = param_2;
return;
}
| |
49,779 | plutovg_path_line_to | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-path.c | void plutovg_path_line_to(plutovg_path_t* path, float x, float y)
{
if(path->elements.size == 0)
plutovg_path_move_to(path, 0, 0);
plutovg_path_element_t* elements = plutovg_path_add_command(path, PLUTOVG_PATH_COMMAND_LINE_TO, 1);
elements[0].point = PLUTOVG_MAKE_POINT(x, y);
} | O3 | c | plutovg_path_line_to:
pushq %r14
pushq %rbx
pushq %rax
movss %xmm1, 0x4(%rsp)
movss %xmm0, (%rsp)
movq %rdi, %rbx
cmpl $0x0, 0x20(%rdi)
jne 0x29dc9
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x29d18
movq %r14, (%rax)
movq %r14, 0x10(%rbx)
incl 0x8(%rbx)
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0x29d18
movss (%rsp), %xmm0
movss %xmm0, (%rax)
movss 0x4(%rsp), %xmm0
movss %xmm0, 0x4(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| plutovg_path_line_to:
push r14
push rbx
push rax
movss [rsp+18h+var_14], xmm1
movss [rsp+18h+var_18], xmm0
mov rbx, rdi
cmp dword ptr [rdi+20h], 0
jnz short loc_29DC9
xor r14d, r14d
mov rdi, rbx
xor esi, esi
mov edx, 1
call plutovg_path_add_command
mov [rax], r14
mov [rbx+10h], r14
inc dword ptr [rbx+8]
loc_29DC9:
mov rdi, rbx
mov esi, 1
mov edx, 1
call plutovg_path_add_command
movss xmm0, [rsp+18h+var_18]
movss dword ptr [rax], xmm0
movss xmm0, [rsp+18h+var_14]
movss dword ptr [rax+4], xmm0
add rsp, 8
pop rbx
pop r14
retn
| float * plutovg_path_line_to(long long a1, float a2, float a3)
{
float *result; // rax
if ( !*(_DWORD *)(a1 + 32) )
{
*(_QWORD *)plutovg_path_add_command(a1, 0, 1) = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
++*(_DWORD *)(a1 + 8);
}
result = (float *)plutovg_path_add_command(a1, 1, 1);
*result = a2;
result[1] = a3;
return result;
}
| plutovg_path_line_to:
PUSH R14
PUSH RBX
PUSH RAX
MOVSS dword ptr [RSP + 0x4],XMM1
MOVSS dword ptr [RSP],XMM0
MOV RBX,RDI
CMP dword ptr [RDI + 0x20],0x0
JNZ 0x00129dc9
XOR R14D,R14D
MOV RDI,RBX
XOR ESI,ESI
MOV EDX,0x1
CALL 0x00129d18
MOV qword ptr [RAX],R14
MOV qword ptr [RBX + 0x10],R14
INC dword ptr [RBX + 0x8]
LAB_00129dc9:
MOV RDI,RBX
MOV ESI,0x1
MOV EDX,0x1
CALL 0x00129d18
MOVSS XMM0,dword ptr [RSP]
MOVSS dword ptr [RAX],XMM0
MOVSS XMM0,dword ptr [RSP + 0x4]
MOVSS dword ptr [RAX + 0x4],XMM0
ADD RSP,0x8
POP RBX
POP R14
RET
|
void plutovg_path_line_to(int4 param_1,int4 param_2,long param_3)
{
int8 *puVar1;
int4 *puVar2;
if (*(int *)(param_3 + 0x20) == 0) {
puVar1 = (int8 *)plutovg_path_add_command(param_3,0,1);
*puVar1 = 0;
*(int8 *)(param_3 + 0x10) = 0;
*(int *)(param_3 + 8) = *(int *)(param_3 + 8) + 1;
}
puVar2 = (int4 *)plutovg_path_add_command(param_3,1,1);
*puVar2 = param_1;
puVar2[1] = param_2;
return;
}
| |
49,780 | maria_delete_table_files | eloqsql/storage/maria/ma_delete_table.c | int maria_delete_table_files(const char *name, my_bool temporary, myf flags)
{
int error= 0;
DBUG_ENTER("maria_delete_table_files");
if (mysql_file_delete_with_symlink(key_file_kfile, name, MARIA_NAME_IEXT,
flags))
error= my_errno;
if (mysql_file_delete_with_symlink(key_file_dfile, name, MARIA_NAME_DEXT,
flags))
error= my_errno;
if (!temporary)
{
/* This is delete a possible temporary aria_chk file */
mysql_file_delete_with_symlink(key_file_dfile, name, DATA_TMP_EXT, MYF(0));
#ifdef SUPPORT_ARIA_PACK
/* This is delete a possible temporary aria_pack file */
mysql_file_delete_with_symlink(key_file_dfile, name, ".OLD", MYF(0));
#endif
}
DBUG_RETURN(error);
} | O3 | c | maria_delete_table_files:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp # imm = 0x268
movq %rdx, %r12
movl %esi, -0x23c(%rbp)
movq %rdi, %rsi
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
leaq 0x8d6e22(%rip), %rax # 0x1116328
movl (%rax), %r13d
leaq 0x174f43(%rip), %rdx # 0x9b4453
leaq 0x176a9f(%rip), %rcx # 0x9b5fb6
leaq -0x230(%rbp), %rdi
movq %rsi, -0x248(%rbp)
movl $0x104, %r8d # imm = 0x104
callq 0x8925d8
movq %rax, %r15
leaq 0x826ffe(%rip), %rax # 0x1066538
movq (%rax), %rax
leaq -0x290(%rbp), %rdi
leaq -0x238(%rbp), %r14
movl %r13d, %esi
movl $0xe, %edx
movq %r15, %rcx
movq %r14, %r8
callq *0x148(%rax)
movq %rax, (%r14)
testq %rax, %rax
jne 0x83f6b3
movq %r15, %rdi
movq %r12, %rsi
callq 0x8a3eda
movl %eax, %r15d
testl %r15d, %r15d
je 0x83f587
callq 0x8a4622
movl (%rax), %ebx
jmp 0x83f589
xorl %ebx, %ebx
leaq 0x8d6d9c(%rip), %rax # 0x111632c
movl (%rax), %r14d
leaq 0x174eb9(%rip), %rdx # 0x9b4453
leaq 0x176a66(%rip), %rcx # 0x9b6007
leaq -0x230(%rbp), %rdi
movq -0x248(%rbp), %rsi
movl $0x104, %r8d # imm = 0x104
callq 0x8925d8
movq %rax, %r13
leaq 0x826f74(%rip), %rax # 0x1066538
movq (%rax), %rax
leaq -0x290(%rbp), %rdi
leaq -0x238(%rbp), %r15
movl %r14d, %esi
movl $0xe, %edx
movq %r13, %rcx
movq %r15, %r8
callq *0x148(%rax)
movq %rax, (%r15)
testq %rax, %rax
jne 0x83f6f8
movq %r13, %rdi
movq %r12, %rsi
callq 0x8a3eda
movl %eax, %r12d
testl %r12d, %r12d
movl %ebx, %r12d
je 0x83f613
callq 0x8a4622
movl (%rax), %r12d
cmpb $0x0, -0x23c(%rbp)
jne 0x83f68b
leaq 0x8d6d09(%rip), %rax # 0x111632c
movl (%rax), %r14d
leaq 0x174e26(%rip), %rdx # 0x9b4453
leaq 0x17af5e(%rip), %rcx # 0x9ba592
leaq -0x230(%rbp), %rdi
movq -0x248(%rbp), %rsi
movl $0x104, %r8d # imm = 0x104
callq 0x8925d8
movq %rax, %rbx
leaq 0x826ee1(%rip), %rax # 0x1066538
movq (%rax), %rax
leaq -0x290(%rbp), %rdi
movl %r14d, %esi
movl $0xe, %edx
movq %rbx, %rcx
movq %r15, %r8
callq *0x148(%rax)
movq %rax, (%r15)
testq %rax, %rax
jne 0x83f73d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x8a3eda
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x83f754
movl %r12d, %eax
addq $0x268, %rsp # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x826e7e(%rip), %r14 # 0x1066538
movq (%r14), %rcx
leaq 0x17ae85(%rip), %rsi # 0x9ba549
movq %rax, %rdi
movl $0x65, %edx
callq *0x220(%rcx)
movq %r15, %rdi
movq %r12, %rsi
callq 0x8a3eda
movl %eax, %r15d
movq (%r14), %rax
movq -0x238(%rbp), %rdi
movl %r15d, %esi
callq *0x228(%rax)
jmp 0x83f579
leaq 0x826e39(%rip), %r14 # 0x1066538
movq (%r14), %rcx
leaq 0x17ae40(%rip), %rsi # 0x9ba549
movq %rax, %rdi
movl $0x68, %edx
callq *0x220(%rcx)
movq %r13, %rdi
movq %r12, %rsi
callq 0x8a3eda
movl %eax, %r12d
movq (%r14), %rax
movq -0x238(%rbp), %rdi
movl %r12d, %esi
callq *0x228(%rax)
jmp 0x83f603
leaq -0x238(%rbp), %rdx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x438150
jmp 0x83f68b
callq 0x400560
nopl (%rax)
| maria_delete_table_files:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 268h
mov r12, rdx
mov [rbp+var_23C], esi
mov rsi, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
lea rax, key_file_kfile
mov r13d, [rax]
lea rdx, byte_9B4453
lea rcx, aMai; ".MAI"
lea rdi, [rbp+var_230]
mov [rbp+var_248], rsi
mov r8d, 104h
call fn_format
mov r15, rax
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_290]
lea r14, [rbp+var_238]
mov esi, r13d
mov edx, 0Eh
mov rcx, r15
mov r8, r14
call qword ptr [rax+148h]
mov [r14], rax
test rax, rax
jnz loc_83F6B3
mov rdi, r15
mov rsi, r12
call my_handler_delete_with_symlink
mov r15d, eax
loc_83F579:
test r15d, r15d
jz short loc_83F587
call _my_thread_var
mov ebx, [rax]
jmp short loc_83F589
loc_83F587:
xor ebx, ebx
loc_83F589:
lea rax, key_file_dfile
mov r14d, [rax]
lea rdx, byte_9B4453
lea rcx, aMad; ".MAD"
lea rdi, [rbp+var_230]
mov rsi, [rbp+var_248]
mov r8d, 104h
call fn_format
mov r13, rax
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_290]
lea r15, [rbp+var_238]
mov esi, r14d
mov edx, 0Eh
mov rcx, r13
mov r8, r15
call qword ptr [rax+148h]
mov [r15], rax
test rax, rax
jnz loc_83F6F8
mov rdi, r13
mov rsi, r12
call my_handler_delete_with_symlink
mov r12d, eax
loc_83F603:
test r12d, r12d
mov r12d, ebx
jz short loc_83F613
call _my_thread_var
mov r12d, [rax]
loc_83F613:
cmp byte ptr [rbp+var_23C], 0
jnz short loc_83F68B
lea rax, key_file_dfile
mov r14d, [rax]
lea rdx, byte_9B4453
lea rcx, aTmd; ".TMD"
lea rdi, [rbp+var_230]
mov rsi, [rbp+var_248]
mov r8d, 104h
call fn_format
mov rbx, rax
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_290]
mov esi, r14d
mov edx, 0Eh
mov rcx, rbx
mov r8, r15
call qword ptr [rax+148h]
mov [r15], rax
test rax, rax
jnz loc_83F73D
mov rdi, rbx
xor esi, esi
call my_handler_delete_with_symlink
loc_83F68B:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz loc_83F754
mov eax, r12d
add rsp, 268h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_83F6B3:
lea r14, PSI_server
mov rcx, [r14]
lea rsi, aWorkspaceLlm4b_73; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, rax
mov edx, 65h ; 'e'
call qword ptr [rcx+220h]
mov rdi, r15
mov rsi, r12
call my_handler_delete_with_symlink
mov r15d, eax
mov rax, [r14]
mov rdi, [rbp+var_238]
mov esi, r15d
call qword ptr [rax+228h]
jmp loc_83F579
loc_83F6F8:
lea r14, PSI_server
mov rcx, [r14]
lea rsi, aWorkspaceLlm4b_73; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, rax
mov edx, 68h ; 'h'
call qword ptr [rcx+220h]
mov rdi, r13
mov rsi, r12
call my_handler_delete_with_symlink
mov r12d, eax
mov rax, [r14]
mov rdi, [rbp+var_238]
mov esi, r12d
call qword ptr [rax+228h]
jmp loc_83F603
loc_83F73D:
lea rdx, [rbp+var_238]
mov rdi, rax
mov rsi, rbx
call maria_delete_table_files_cold_1
jmp loc_83F68B
loc_83F754:
call ___stack_chk_fail
| long long maria_delete_table_files(long long a1, int a2, long long a3)
{
unsigned int v4; // r13d
long long v5; // r15
long long v6; // rax
long long v7; // rdi
unsigned int v8; // ebx
unsigned int v9; // r14d
long long v10; // r13
long long v11; // rax
long long v12; // rdi
bool v13; // zf
unsigned int v14; // r12d
unsigned int v15; // r14d
long long v16; // rbx
long long v17; // rax
_BYTE v19[72]; // [rsp+0h] [rbp-290h] BYREF
long long v20; // [rsp+48h] [rbp-248h]
int v21; // [rsp+54h] [rbp-23Ch]
long long v22; // [rsp+58h] [rbp-238h] BYREF
_BYTE v23[512]; // [rsp+60h] [rbp-230h] BYREF
unsigned long long v24; // [rsp+260h] [rbp-30h]
v21 = a2;
v24 = __readfsqword(0x28u);
v4 = key_file_kfile;
v20 = a1;
v5 = fn_format(v23, a1, &byte_9B4453, ".MAI", 260LL);
v6 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, long long *))PSI_server[41])(v19, v4, 14LL, v5, &v22);
v22 = v6;
if ( v6 )
{
((void ( *)(long long, const char *, long long))PSI_server[68])(
v6,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_delete_table.c",
101LL);
v5 = (unsigned int)my_handler_delete_with_symlink(v5, a3);
v7 = v22;
((void ( *)(long long, long long))PSI_server[69])(v22, v5);
}
else
{
v7 = v5;
LODWORD(v5) = my_handler_delete_with_symlink(v5, a3);
}
if ( (_DWORD)v5 )
v8 = *(_DWORD *)my_thread_var(v7);
else
v8 = 0;
v9 = key_file_dfile;
v10 = fn_format(v23, v20, &byte_9B4453, ".MAD", 260LL);
v11 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, long long *))PSI_server[41])(v19, v9, 14LL, v10, &v22);
v22 = v11;
if ( v11 )
{
((void ( *)(long long, const char *, long long))PSI_server[68])(
v11,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_delete_table.c",
104LL);
a3 = (unsigned int)my_handler_delete_with_symlink(v10, a3);
v12 = v22;
((void ( *)(long long, long long))PSI_server[69])(v22, a3);
}
else
{
v12 = v10;
LODWORD(a3) = my_handler_delete_with_symlink(v10, a3);
}
v13 = (_DWORD)a3 == 0;
v14 = v8;
if ( !v13 )
v14 = *(_DWORD *)my_thread_var(v12);
if ( !(_BYTE)v21 )
{
v15 = key_file_dfile;
v16 = fn_format(v23, v20, &byte_9B4453, ".TMD", 260LL);
v17 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, long long *))PSI_server[41])(
v19,
v15,
14LL,
v16,
&v22);
v22 = v17;
if ( v17 )
maria_delete_table_files_cold_1(v17, v16, &v22);
else
my_handler_delete_with_symlink(v16, 0LL);
}
return v14;
}
| close:
PUSH RBP
MOV RBP,RSP
POP RBP
RET
|
/* Item_iterator_row::close() */
void Item_iterator_row::close(void)
{
return;
}
| |
49,781 | ImPlot3D::BustItemCache() | zkingston[P]unknot/build_O1/_deps/implot3d-src/implot3d_items.cpp | void BustItemCache() {
ImPlot3DContext& gp = *GImPlot3D;
for (int p = 0; p < gp.Plots.GetBufSize(); ++p) {
ImPlot3DPlot& plot = *gp.Plots.GetByIndex(p);
plot.Items.Reset();
}
} | O1 | cpp | ImPlot3D::BustItemCache():
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
leaq 0x2dff92(%rip), %rax # 0x336c98
movq (%rax), %rbx
cmpl $0x0, (%rbx)
jle 0x56d48
movl $0x1f8, %r14d # imm = 0x1F8
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x8(%rbx), %r13
leaq (%r14,%r13), %rdi
callq 0x56706
movl %r15d, 0x38(%r13,%r14)
movl %r15d, 0x48(%r13,%r14)
movl %r15d, 0x70(%r13,%r14)
incq %r12
movslq (%rbx), %rax
addq $0x2e0, %r14 # imm = 0x2E0
cmpq %rax, %r12
jl 0x56d1a
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
| _ZN8ImPlot3D13BustItemCacheEv:
push r15
push r14
push r13
push r12
push rbx
lea rax, _ZN8ImPlot3D9GImPlot3DE; ImPlot3D::GImPlot3D
mov rbx, [rax]
cmp dword ptr [rbx], 0
jle short loc_56D48
mov r14d, 1F8h
xor r15d, r15d
xor r12d, r12d
loc_56D1A:
mov r13, [rbx+8]
lea rdi, [r14+r13]
call _ZN6ImPoolI12ImPlot3DItemE5ClearEv; ImPool<ImPlot3DItem>::Clear(void)
mov [r13+r14+38h], r15d
mov [r13+r14+48h], r15d
mov [r13+r14+70h], r15d
inc r12
movsxd rax, dword ptr [rbx]
add r14, 2E0h
cmp r12, rax
jl short loc_56D1A
loc_56D48:
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
| ImGui ** ImPlot3D::BustItemCache(ImPlot3D *this, char *a2)
{
ImGui **result; // rax
ImGui *v3; // rbx
long long v4; // r14
ImGui **v5; // r12
long long v6; // r13
result = &ImPlot3D::GImPlot3D;
v3 = ImPlot3D::GImPlot3D;
if ( *(int *)ImPlot3D::GImPlot3D > 0 )
{
v4 = 504LL;
v5 = 0LL;
do
{
v6 = *((_QWORD *)v3 + 1);
ImPool<ImPlot3DItem>::Clear(v4 + v6, a2);
*(_DWORD *)(v6 + v4 + 56) = 0;
*(_DWORD *)(v6 + v4 + 72) = 0;
*(_DWORD *)(v6 + v4 + 112) = 0;
v5 = (ImGui **)((char *)v5 + 1);
result = (ImGui **)*(int *)v3;
v4 += 736LL;
}
while ( (long long)v5 < (long long)result );
}
return result;
}
| BustItemCache:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
LEA RAX,[0x436c98]
MOV RBX,qword ptr [RAX]
CMP dword ptr [RBX],0x0
JLE 0x00156d48
MOV R14D,0x1f8
XOR R15D,R15D
XOR R12D,R12D
LAB_00156d1a:
MOV R13,qword ptr [RBX + 0x8]
LEA RDI,[R14 + R13*0x1]
CALL 0x00156706
MOV dword ptr [R13 + R14*0x1 + 0x38],R15D
MOV dword ptr [R13 + R14*0x1 + 0x48],R15D
MOV dword ptr [R13 + R14*0x1 + 0x70],R15D
INC R12
MOVSXD RAX,dword ptr [RBX]
ADD R14,0x2e0
CMP R12,RAX
JL 0x00156d1a
LAB_00156d48:
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* ImPlot3D::BustItemCache() */
void ImPlot3D::BustItemCache(void)
{
long lVar1;
int *piVar2;
long lVar3;
long lVar4;
piVar2 = GImPlot3D;
if (0 < *GImPlot3D) {
lVar4 = 0x1f8;
lVar3 = 0;
do {
lVar1 = *(long *)(piVar2 + 2);
ImPool<ImPlot3DItem>::Clear((ImPool<ImPlot3DItem> *)(lVar4 + lVar1));
*(int4 *)(lVar1 + 0x38 + lVar4) = 0;
*(int4 *)(lVar1 + 0x48 + lVar4) = 0;
*(int4 *)(lVar1 + 0x70 + lVar4) = 0;
lVar3 = lVar3 + 1;
lVar4 = lVar4 + 0x2e0;
} while (lVar3 < *piVar2);
}
return;
}
| |
49,782 | sel_node_free_private(sel_node_t*) | eloqsql/storage/innobase/row/row0sel.cc | void
sel_node_free_private(
/*==================*/
sel_node_t* node) /*!< in: select node struct */
{
ulint i;
plan_t* plan;
if (node->plans != NULL) {
for (i = 0; i < node->n_tables; i++) {
plan = sel_node_get_nth_plan(node, i);
btr_pcur_close(&(plan->pcur));
btr_pcur_close(&(plan->clust_pcur));
if (plan->old_vers_heap) {
mem_heap_free(plan->old_vers_heap);
}
}
}
} | O0 | cpp | sel_node_free_private(sel_node_t*):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x80(%rax)
je 0x10e1dfe
movq $0x0, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x70(%rcx), %rax
jae 0x10e1dfc
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x10e1e10
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
addq $0x10, %rdi
callq 0x10e1e40
movq -0x18(%rbp), %rdi
addq $0x1e0, %rdi # imm = 0x1E0
callq 0x10e1e40
movq -0x18(%rbp), %rax
cmpq $0x0, 0x2d0(%rax)
je 0x10e1dec
movq -0x18(%rbp), %rax
movq 0x2d0(%rax), %rdi
callq 0x10e1f30
jmp 0x10e1dee
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x10e1d92
jmp 0x10e1dfe
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _Z21sel_node_free_privateP10sel_node_t:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
cmp qword ptr [rax+80h], 0
jz short loc_10E1DFE
mov [rbp+var_10], 0
loc_10E1D92:
mov rax, [rbp+var_10]
mov rcx, [rbp+var_8]
cmp rax, [rcx+70h]
jnb short loc_10E1DFC
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
call _ZL21sel_node_get_nth_planP10sel_node_tm_0; sel_node_get_nth_plan(sel_node_t *,ulong)
mov [rbp+var_18], rax
mov rdi, [rbp+var_18]
add rdi, 10h; btr_pcur_t *
call _ZL14btr_pcur_closeP10btr_pcur_t_2; btr_pcur_close(btr_pcur_t *)
mov rdi, [rbp+var_18]
add rdi, 1E0h; btr_pcur_t *
call _ZL14btr_pcur_closeP10btr_pcur_t_2; btr_pcur_close(btr_pcur_t *)
mov rax, [rbp+var_18]
cmp qword ptr [rax+2D0h], 0
jz short loc_10E1DEC
mov rax, [rbp+var_18]
mov rdi, [rax+2D0h]
call _ZL13mem_heap_freeP16mem_block_info_t_17; mem_heap_free(mem_block_info_t *)
loc_10E1DEC:
jmp short $+2
loc_10E1DEE:
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
jmp short loc_10E1D92
loc_10E1DFC:
jmp short $+2
loc_10E1DFE:
add rsp, 20h
pop rbp
retn
| unsigned long long sel_node_free_private(unsigned long long a1)
{
unsigned long long result; // rax
_QWORD *nth_plan; // [rsp+8h] [rbp-18h]
unsigned long long i; // [rsp+10h] [rbp-10h]
result = a1;
if ( *(_QWORD *)(a1 + 128) )
{
for ( i = 0LL; ; ++i )
{
result = i;
if ( i >= *(_QWORD *)(a1 + 112) )
break;
nth_plan = (_QWORD *)sel_node_get_nth_plan(a1, i);
btr_pcur_close((btr_pcur_t *)(nth_plan + 2));
btr_pcur_close((btr_pcur_t *)(nth_plan + 60));
if ( nth_plan[90] )
mem_heap_free(nth_plan[90]);
}
}
return result;
}
| btr_pcur_open_at_index_side:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV AL,R8B
MOV R8,qword ptr [RBP + 0x10]
AND DIL,0x1
MOV byte ptr [RBP + -0x1],DIL
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
AND AL,0x1
MOV byte ptr [RBP + -0x21],AL
MOV qword ptr [RBP + -0x30],R9
MOV dword ptr [RBP + -0x34],0x0
MOV RCX,0xffff043f
AND RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x98],RCX
MOV DL,byte ptr [RBP + -0x1]
MOV ECX,0x3
MOV EAX,0x1
TEST DL,0x1
CMOVNZ ECX,EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0xd4],ECX
TEST byte ptr [RBP + -0x21],0x1
JZ 0x010e1de8
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x010e1fd0
LAB_010e1de8:
MOV AL,byte ptr [RBP + -0x1]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
MOV R8,qword ptr [RBP + -0x30]
MOV R9,qword ptr [RBP + 0x10]
AND AL,0x1
MOVZX EDI,AL
CALL 0x0125bc90
MOV dword ptr [RBP + -0x34],EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0xd0],0x3
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0xa0],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0xd8],0x0
MOV EAX,dword ptr [RBP + -0x34]
ADD RSP,0x40
POP RBP
RET
|
/* btr_pcur_open_at_index_side(bool, dict_index_t*, unsigned long, btr_pcur_t*, bool, unsigned long,
mtr_t*) */
int4
btr_pcur_open_at_index_side
(bool param_1,dict_index_t *param_2,ulong param_3,btr_pcur_t *param_4,bool param_5,
ulong param_6,mtr_t *param_7)
{
int4 uVar1;
*(ulong *)(param_4 + 0x98) = param_3 & 0xffff043f;
uVar1 = 3;
if (param_1) {
uVar1 = 1;
}
*(int4 *)(param_4 + 0xd4) = uVar1;
if (param_5) {
btr_pcur_init(param_4);
}
uVar1 = btr_cur_open_at_index_side(param_1,param_2,param_3,(btr_cur_t *)param_4,param_6,param_7);
*(int4 *)(param_4 + 0xd0) = 3;
param_4[0xa0] = (btr_pcur_t)0x0;
*(int8 *)(param_4 + 0xd8) = 0;
return uVar1;
}
| |
49,783 | sel_node_free_private(sel_node_t*) | eloqsql/storage/innobase/row/row0sel.cc | void
sel_node_free_private(
/*==================*/
sel_node_t* node) /*!< in: select node struct */
{
ulint i;
plan_t* plan;
if (node->plans != NULL) {
for (i = 0; i < node->n_tables; i++) {
plan = sel_node_get_nth_plan(node, i);
btr_pcur_close(&(plan->pcur));
btr_pcur_close(&(plan->clust_pcur));
if (plan->old_vers_heap) {
mem_heap_free(plan->old_vers_heap);
}
}
}
} | O3 | cpp | sel_node_free_private(sel_node_t*):
cmpq $0x0, 0x80(%rdi)
je 0xbb8e83
cmpq $0x0, 0x70(%rdi)
je 0xbb8e83
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
xorl %r12d, %r12d
xorl %r13d, %r13d
movq %rdi, -0x30(%rbp)
movq 0x80(%rdi), %r15
imulq $0x2d8, %r13, %rbx # imm = 0x2D8
movq 0xf0(%r15,%rbx), %rax
testq %rax, %rax
je 0xbb8d3b
leaq -0x18(%rax), %r14
leaq 0x924829(%rip), %rcx # 0x14dd548
movq (%rcx), %rcx
movl -0x18(%rax), %edi
movq -0x8(%rax), %rsi
movq -0x10(%rax), %rdx
callq *0x3f8(%rcx)
movq %r14, %rdi
callq 0x61d378
addq %rbx, %r15
movq 0xa0(%r15), %rdi
testq %rdi, %rdi
je 0xbb8d5f
movl $0x1, %esi
callq 0xc6a6a3
movq $0x0, 0xa0(%r15)
movq %r12, 0x20(%r15)
movq %r12, 0x30(%r15)
movq %r12, 0xb8(%r15)
movb $0x0, 0xb0(%r15)
movq $0x8, 0xa8(%r15)
movl $0x0, 0xe0(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0xe8(%r15)
movq 0x2c0(%r15), %rax
testq %rax, %rax
je 0xbb8dca
leaq -0x18(%rax), %r14
leaq 0x92479a(%rip), %rcx # 0x14dd548
movq (%rcx), %rcx
movl -0x18(%rax), %edi
movq -0x8(%rax), %rsi
movq -0x10(%rax), %rdx
callq *0x3f8(%rcx)
movq %r14, %rdi
callq 0x61d378
movq 0x270(%r15), %rdi
testq %rdi, %rdi
je 0xbb8deb
movl $0x1, %esi
callq 0xc6a6a3
movq $0x0, 0x270(%r15)
movq %r12, 0x1f0(%r15)
movq %r12, 0x200(%r15)
movq %r12, 0x288(%r15)
movb $0x0, 0x280(%r15)
movq $0x8, 0x278(%r15)
movl $0x0, 0x2b0(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x2b8(%r15)
movq 0x2d0(%r15), %r14
testq %r14, %r14
je 0xbb8e64
movq 0x10(%r14), %r15
cmpq $0x0, 0x58(%r14)
je 0xbb8e48
movq %r14, %rdi
callq 0xb6d824
testq %r15, %r15
je 0xbb8e64
movq 0x20(%r15), %rbx
movq %r14, %rdi
movq %r15, %rsi
callq 0xb6d6f8
movq %rbx, %r15
testq %rbx, %rbx
jne 0xbb8e4d
incq %r13
movq -0x30(%rbp), %rdi
cmpq 0x70(%rdi), %r13
jb 0xbb8cf9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _Z21sel_node_free_privateP10sel_node_t:
cmp qword ptr [rdi+80h], 0
jz locret_BB8E83
cmp qword ptr [rdi+70h], 0
jz locret_BB8E83
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
xor r12d, r12d
xor r13d, r13d
mov [rbp-30h], rdi
loc_BB8CF9:
mov r15, [rdi+80h]
imul rbx, r13, 2D8h
mov rax, [r15+rbx+0F0h]
test rax, rax
jz short loc_BB8D3B
lea r14, [rax-18h]
lea rcx, PSI_server
mov rcx, [rcx]
mov edi, [rax-18h]
mov rsi, [rax-8]
mov rdx, [rax-10h]
call qword ptr [rcx+3F8h]
mov rdi, r14
call free
loc_BB8D3B:
add r15, rbx
mov rdi, [r15+0A0h]
test rdi, rdi
jz short loc_BB8D5F
mov esi, 1
call _Z18rtr_clean_rtr_infoP8rtr_infob; rtr_clean_rtr_info(rtr_info *,bool)
mov qword ptr [r15+0A0h], 0
loc_BB8D5F:
mov [r15+20h], r12
mov [r15+30h], r12
mov [r15+0B8h], r12
mov byte ptr [r15+0B0h], 0
mov qword ptr [r15+0A8h], 8
mov dword ptr [r15+0E0h], 0
xorps xmm0, xmm0
movups xmmword ptr [r15+0E8h], xmm0
mov rax, [r15+2C0h]
test rax, rax
jz short loc_BB8DCA
lea r14, [rax-18h]
lea rcx, PSI_server
mov rcx, [rcx]
mov edi, [rax-18h]
mov rsi, [rax-8]
mov rdx, [rax-10h]
call qword ptr [rcx+3F8h]
mov rdi, r14
call free
loc_BB8DCA:
mov rdi, [r15+270h]
test rdi, rdi
jz short loc_BB8DEB
mov esi, 1
call _Z18rtr_clean_rtr_infoP8rtr_infob; rtr_clean_rtr_info(rtr_info *,bool)
mov qword ptr [r15+270h], 0
loc_BB8DEB:
mov [r15+1F0h], r12
mov [r15+200h], r12
mov [r15+288h], r12
mov byte ptr [r15+280h], 0
mov qword ptr [r15+278h], 8
mov dword ptr [r15+2B0h], 0
xorps xmm0, xmm0
movups xmmword ptr [r15+2B8h], xmm0
mov r14, [r15+2D0h]
test r14, r14
jz short loc_BB8E64
mov r15, [r14+10h]
cmp qword ptr [r14+58h], 0
jz short loc_BB8E48
mov rdi, r14
call _Z24mem_heap_free_block_freeP16mem_block_info_t; mem_heap_free_block_free(mem_block_info_t *)
loc_BB8E48:
test r15, r15
jz short loc_BB8E64
loc_BB8E4D:
mov rbx, [r15+20h]
mov rdi, r14
mov rsi, r15
call _Z19mem_heap_block_freeP16mem_block_info_tS0_; mem_heap_block_free(mem_block_info_t *,mem_block_info_t *)
mov r15, rbx
test rbx, rbx
jnz short loc_BB8E4D
loc_BB8E64:
inc r13
mov rdi, [rbp-30h]
cmp r13, [rdi+70h]
jb loc_BB8CF9
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
locret_BB8E83:
retn
| void sel_node_free_private(long long a1)
{
unsigned long long v1; // r13
long long v2; // r15
long long v3; // rax
long long v4; // r14
long long v5; // r15
long long v6; // rdi
long long v7; // rax
long long v8; // r14
long long v9; // rdi
_QWORD *v10; // r14
long long v11; // r15
long long v12; // rbx
long long v13; // [rsp-38h] [rbp-38h]
if ( *(_QWORD *)(a1 + 128) && *(_QWORD *)(a1 + 112) )
{
v1 = 0LL;
v13 = a1;
do
{
v2 = *(_QWORD *)(a1 + 128);
v3 = *(_QWORD *)(v2 + 728 * v1 + 240);
if ( v3 )
{
v4 = v3 - 24;
((void ( *)(_QWORD, _QWORD, _QWORD))PSI_server[127])(
*(unsigned int *)(v3 - 24),
*(_QWORD *)(v3 - 8),
*(_QWORD *)(v3 - 16));
free(v4);
}
v5 = 728 * v1 + v2;
v6 = *(_QWORD *)(v5 + 160);
if ( v6 )
{
rtr_clean_rtr_info(v6, 1LL);
*(_QWORD *)(v5 + 160) = 0LL;
}
*(_QWORD *)(v5 + 32) = 0LL;
*(_QWORD *)(v5 + 48) = 0LL;
*(_QWORD *)(v5 + 184) = 0LL;
*(_BYTE *)(v5 + 176) = 0;
*(_QWORD *)(v5 + 168) = 8LL;
*(_DWORD *)(v5 + 224) = 0;
*(_OWORD *)(v5 + 232) = 0LL;
v7 = *(_QWORD *)(v5 + 704);
if ( v7 )
{
v8 = v7 - 24;
((void ( *)(_QWORD, _QWORD, _QWORD))PSI_server[127])(
*(unsigned int *)(v7 - 24),
*(_QWORD *)(v7 - 8),
*(_QWORD *)(v7 - 16));
free(v8);
}
v9 = *(_QWORD *)(v5 + 624);
if ( v9 )
{
rtr_clean_rtr_info(v9, 1LL);
*(_QWORD *)(v5 + 624) = 0LL;
}
*(_QWORD *)(v5 + 496) = 0LL;
*(_QWORD *)(v5 + 512) = 0LL;
*(_QWORD *)(v5 + 648) = 0LL;
*(_BYTE *)(v5 + 640) = 0;
*(_QWORD *)(v5 + 632) = 8LL;
*(_DWORD *)(v5 + 688) = 0;
*(_OWORD *)(v5 + 696) = 0LL;
v10 = *(_QWORD **)(v5 + 720);
if ( v10 )
{
v11 = v10[2];
if ( v10[11] )
mem_heap_free_block_free((long long)v10);
if ( v11 )
{
do
{
v12 = *(_QWORD *)(v11 + 32);
mem_heap_block_free(v10, v11);
v11 = v12;
}
while ( v12 );
}
}
++v1;
a1 = v13;
}
while ( v1 < *(_QWORD *)(v13 + 112) );
}
}
| |||
49,784 | minja::Parser::parseIdentifier() | monkey531[P]llama/common/minja.hpp | std::shared_ptr<VariableExpr> parseIdentifier() {
static std::regex ident_regex(R"((?!(?:not|is|and|or|del)\b)[a-zA-Z_]\w*)");
auto location = get_location();
auto ident = consumeToken(ident_regex);
if (ident.empty())
return nullptr;
return std::make_shared<VariableExpr>(location, ident);
} | O3 | cpp | minja::Parser::parseIdentifier():
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xa9006(%rip), %rax # 0x12d1f8
movb (%rax), %al
testb %al, %al
je 0x842b4
movq (%r14), %rax
movq %rax, 0x10(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x84227
movq 0xa7d6f(%rip), %rcx # 0x12bf88
cmpb $0x0, (%rcx)
je 0x84223
incl 0x8(%rax)
jmp 0x84227
lock
incl 0x8(%rax)
movq 0x20(%r14), %rax
subq 0x10(%r14), %rax
movq %rax, 0x20(%rsp)
leaq 0xa8f9d(%rip), %rdx # 0x12d1d8
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %ecx
callq 0x83b86
cmpq $0x0, 0x30(%rsp)
je 0x84279
movq $0x0, (%rbx)
leaq 0x8(%rbx), %rdi
leaq 0xf(%rsp), %rdx
leaq 0x10(%rsp), %rcx
leaq 0x28(%rsp), %r8
movq %rbx, %rsi
callq 0x98654
jmp 0x8427f
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8429a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a8f0
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x842a9
callq 0x6d9b6
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
retq
leaq 0xa8f3d(%rip), %rdi # 0x12d1f8
callq 0x1b010
testl %eax, %eax
je 0x841fc
leaq 0xa8f09(%rip), %rdi # 0x12d1d8
leaq 0x6ce80(%rip), %rsi # 0xf1156
movl $0x10, %edx
callq 0x62944
leaq -0x2169f(%rip), %rdi # 0x62c48
leaq 0xa8eea(%rip), %rsi # 0x12d1d8
leaq 0xa85e3(%rip), %rdx # 0x12c8d8
callq 0x1a7c0
leaq 0xa8ef7(%rip), %rdi # 0x12d1f8
callq 0x1a5c0
jmp 0x841fc
movq %rax, %rbx
leaq 0xa8ee3(%rip), %rdi # 0x12d1f8
callq 0x1a5b0
jmp 0x8434e
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8433f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a8f0
jmp 0x8433f
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x8434e
callq 0x6d9b6
movq %rbx, %rdi
callq 0x1afb0
| _ZN5minja6Parser15parseIdentifierEv:
push r14
push rbx
sub rsp, 48h
mov r14, rsi
mov rbx, rdi
lea rax, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; `guard variable for'minja::Parser::parseIdentifier(void)::ident_regex
mov al, [rax]
test al, al
jz loc_842B4
loc_841FC:
mov rax, [r14]
mov [rsp+58h+var_48], rax
mov rax, [r14+8]
mov [rsp+58h+var_40], rax
test rax, rax
jz short loc_84227
mov rcx, cs:__libc_single_threaded_ptr
cmp byte ptr [rcx], 0
jz short loc_84223
inc dword ptr [rax+8]
jmp short loc_84227
loc_84223:
lock inc dword ptr [rax+8]
loc_84227:
mov rax, [r14+20h]
sub rax, [r14+10h]
mov [rsp+58h+var_38], rax
lea rdx, _ZZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; minja::Parser::parseIdentifier(void)::ident_regex
lea rdi, [rsp+58h+var_30]
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling)
cmp [rsp+58h+var_28], 0
jz short loc_84279
mov qword ptr [rbx], 0
lea rdi, [rbx+8]
lea rdx, [rsp+58h+var_49]
lea rcx, [rsp+58h+var_48]
lea r8, [rsp+58h+var_30]
mov rsi, rbx
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2IN5minja12VariableExprESaIS5_EJRNS4_8LocationERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::VariableExpr,std::allocator<minja::VariableExpr>,minja::Location &,std::string &>(minja::VariableExpr *&,std::_Sp_alloc_shared_tag<std::allocator<minja::VariableExpr>>,minja::Location &,std::string &)
jmp short loc_8427F
loc_84279:
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
loc_8427F:
lea rax, [rsp+58h+var_20]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_8429A
mov rsi, [rsp+58h+var_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8429A:
mov rdi, [rsp+58h+var_40]
test rdi, rdi
jz short loc_842A9
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_842A9:
mov rax, rbx
add rsp, 48h
pop rbx
pop r14
retn
loc_842B4:
lea rdi, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_841FC
lea rdi, _ZZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; minja::Parser::parseIdentifier(void)::ident_regex
lea rsi, aNotIsAndOrDelB; "(?!(?:not|is|and|or|del)\\b)[a-zA-Z_]\\"...
mov edx, 10h
call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type)
lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc
lea rsi, _ZZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_841FC
mov rbx, rax
lea rdi, _ZGVZN5minja6Parser15parseIdentifierEvE11ident_regexB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_8434E
mov rbx, rax
lea rax, [rsp+arg_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_8433F
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_8433F
mov rbx, rax
loc_8433F:
mov rdi, [rsp+arg_10]
test rdi, rdi
jz short loc_8434E
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8434E:
mov rdi, rbx
call __Unwind_Resume
| minja::Parser * minja::Parser::parseIdentifier(minja::Parser *this, long long *a2)
{
volatile signed __int32 *v2; // rax
char v4; // [rsp+Fh] [rbp-49h] BYREF
long long v5; // [rsp+10h] [rbp-48h] BYREF
volatile signed __int32 *v6; // [rsp+18h] [rbp-40h]
long long v7; // [rsp+20h] [rbp-38h]
void *v8[2]; // [rsp+28h] [rbp-30h] BYREF
long long v9; // [rsp+38h] [rbp-20h] BYREF
if ( !(_BYTE)`guard variable for'minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11],
(long long)"(?!(?:not|is|and|or|del)\\b)[a-zA-Z_]\\w*",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11]);
}
v5 = *a2;
v2 = (volatile signed __int32 *)a2[1];
v6 = v2;
if ( v2 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v2 + 2);
else
_InterlockedIncrement(v2 + 2);
}
v7 = a2[4] - a2[2];
minja::Parser::consumeToken(
(long long)v8,
(long long)a2,
(long long)&minja::Parser::parseIdentifier(void)::ident_regex[abi:cxx11],
1u);
if ( v8[1] )
{
*(_QWORD *)this = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::VariableExpr,std::allocator<minja::VariableExpr>,minja::Location &,std::string &>(
(char *)this + 8,
this,
&v4,
&v5,
v8);
}
else
{
*(_OWORD *)this = 0LL;
}
if ( v8[0] != &v9 )
operator delete(v8[0], v9 + 1);
if ( v6 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v6);
return this;
}
| parseIdentifier:
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV R14,RSI
MOV RBX,RDI
LEA RAX,[0x22d1f8]
MOV AL,byte ptr [RAX]
TEST AL,AL
JZ 0x001842b4
LAB_001841fc:
MOV RAX,qword ptr [R14]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [R14 + 0x8]
MOV qword ptr [RSP + 0x18],RAX
TEST RAX,RAX
JZ 0x00184227
MOV RCX,qword ptr [0x0022bf88]
CMP byte ptr [RCX],0x0
JZ 0x00184223
INC dword ptr [RAX + 0x8]
JMP 0x00184227
LAB_00184223:
INC.LOCK dword ptr [RAX + 0x8]
LAB_00184227:
MOV RAX,qword ptr [R14 + 0x20]
SUB RAX,qword ptr [R14 + 0x10]
MOV qword ptr [RSP + 0x20],RAX
LAB_00184234:
LEA RDX,[0x22d1d8]
LEA RDI,[RSP + 0x28]
MOV RSI,R14
MOV ECX,0x1
CALL 0x00183b86
CMP qword ptr [RSP + 0x30],0x0
JZ 0x00184279
MOV qword ptr [RBX],0x0
LEA RDI,[RBX + 0x8]
LAB_00184260:
LEA RDX,[RSP + 0xf]
LEA RCX,[RSP + 0x10]
LEA R8,[RSP + 0x28]
MOV RSI,RBX
CALL 0x00198654
JMP 0x0018427f
LAB_00184279:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
LAB_0018427f:
LEA RAX,[RSP + 0x38]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0018429a
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011a8f0
LAB_0018429a:
MOV RDI,qword ptr [RSP + 0x18]
TEST RDI,RDI
JZ 0x001842a9
CALL 0x0016d9b6
LAB_001842a9:
MOV RAX,RBX
ADD RSP,0x48
POP RBX
POP R14
RET
LAB_001842b4:
LEA RDI,[0x22d1f8]
CALL 0x0011b010
TEST EAX,EAX
JZ 0x001841fc
LAB_001842c8:
LEA RDI,[0x22d1d8]
LEA RSI,[0x1f1156]
MOV EDX,0x10
CALL 0x00162944
LAB_001842e0:
LEA RDI,[0x162c48]
LEA RSI,[0x22d1d8]
LEA RDX,[0x22c8d8]
CALL 0x0011a7c0
LEA RDI,[0x22d1f8]
CALL 0x0011a5c0
JMP 0x001841fc
|
/* minja::Parser::parseIdentifier() */
void minja::Parser::parseIdentifier(void)
{
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this;
int iVar1;
long in_RSI;
int8 *in_RDI;
long *local_30;
long local_28;
long local_20 [2];
if (parseIdentifier()::ident_regex_abi_cxx11_ == '\0') {
iVar1 = __cxa_guard_acquire(&parseIdentifier()::ident_regex_abi_cxx11_);
if (iVar1 != 0) {
/* try { // try from 001842c8 to 001842df has its CatchHandler @ 0018430b */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseIdentifier()::ident_regex_abi_cxx11_,
"(?!(?:not|is|and|or|del)\\b)[a-zA-Z_]\\w*",0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseIdentifier()::ident_regex_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseIdentifier()::ident_regex_abi_cxx11_);
}
}
this = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(in_RSI + 8);
if (this != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*PTR___libc_single_threaded_0022bf88 == '\0') {
LOCK();
*(int *)(this + 8) = *(int *)(this + 8) + 1;
UNLOCK();
}
else {
*(int *)(this + 8) = *(int *)(this + 8) + 1;
}
}
/* try { // try from 00184234 to 0018424c has its CatchHandler @ 0018433c */
consumeToken(&local_30);
if (local_28 == 0) {
*in_RDI = 0;
in_RDI[1] = 0;
}
else {
*in_RDI = 0;
/* try { // try from 00184260 to 00184276 has its CatchHandler @ 0018431c */
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::
__shared_count<minja::VariableExpr,std::allocator<minja::VariableExpr>,minja::Location&,std::__cxx11::string&>
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(in_RDI + 1));
}
if (local_30 != local_20) {
operator_delete(local_30,local_20[0] + 1);
}
if (this != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this);
}
return;
}
| |
49,785 | ma_pack_rec_unpack | eloqsql/storage/maria/ma_packrec.c | int _ma_pack_rec_unpack(register MARIA_HA *info, MARIA_BIT_BUFF *bit_buff,
register uchar *to, uchar *from, ulong reclength)
{
uchar *end_field;
reg3 MARIA_COLUMNDEF *end;
MARIA_COLUMNDEF *current_field;
MARIA_SHARE *share= info->s;
DBUG_ENTER("_ma_pack_rec_unpack");
if (info->s->base.null_bytes)
{
memcpy(to, from, info->s->base.null_bytes);
to+= info->s->base.null_bytes;
from+= info->s->base.null_bytes;
reclength-= info->s->base.null_bytes;
}
init_bit_buffer(bit_buff, from, reclength);
for (current_field=share->columndef, end=current_field+share->base.fields ;
current_field < end ;
current_field++,to=end_field)
{
end_field=to+current_field->length;
(*current_field->unpack)(current_field, bit_buff, to, end_field);
}
if (!bit_buff->error &&
bit_buff->pos - bit_buff->bits / 8 == bit_buff->end)
DBUG_RETURN(0);
info->update&= ~HA_STATE_AKTIV;
_ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD);
DBUG_RETURN(HA_ERR_WRONG_IN_RECORD);
} | O3 | c | ma_pack_rec_unpack:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r13
movq %rcx, %r12
movq %rdx, %r15
movq %rsi, %r14
movq (%rdi), %rbx
movl 0x3fc(%rbx), %edx
testq %rdx, %rdx
movq %rdi, -0x30(%rbp)
je 0x65056
movq %r15, %rdi
movq %r12, %rsi
callq 0x2a0b0
movq -0x30(%rbp), %rdi
movq (%rdi), %rax
movl 0x3fc(%rax), %eax
addq %rax, %r15
addq %rax, %r12
subq %rax, %r13
movq %r12, 0x8(%r14)
movl %r13d, %eax
addq %r12, %rax
movq %rax, 0x10(%r14)
movl $0x0, 0x28(%r14)
movq $0x0, (%r14)
movl 0x3c8(%rbx), %eax
testq %rax, %rax
je 0x650bd
movq 0x588(%rbx), %r12
imulq $0x38, %rax, %rbx
addq %r12, %rbx
movzwl 0x8(%r12), %r13d
addq %r15, %r13
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq *0x18(%r12)
addq $0x38, %r12
movq %r13, %r15
cmpq %rbx, %r12
jb 0x6508c
cmpl $0x0, 0x28(%r14)
movq -0x30(%rbp), %rdi
jne 0x650d1
movq 0x8(%r14), %rax
movl 0x4(%r14), %ecx
shrl $0x3, %ecx
subq %rcx, %rax
cmpq 0x10(%r14), %rax
je 0x650ea
andb $-0x3, 0x624(%rdi)
movl $0x7f, %r14d
movl $0x7f, %esi
callq 0x5cab0
jmp 0x650ed
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ma_pack_rec_unpack:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r13, r8
mov r12, rcx
mov r15, rdx
mov r14, rsi
mov rbx, [rdi]
mov edx, [rbx+3FCh]
test rdx, rdx
mov [rbp+var_30], rdi
jz short loc_65056
mov rdi, r15
mov rsi, r12
call _memcpy
mov rdi, [rbp+var_30]
mov rax, [rdi]
mov eax, [rax+3FCh]
add r15, rax
add r12, rax
sub r13, rax
loc_65056:
mov [r14+8], r12
mov eax, r13d
add rax, r12
mov [r14+10h], rax
mov dword ptr [r14+28h], 0
mov qword ptr [r14], 0
mov eax, [rbx+3C8h]
test rax, rax
jz short loc_650BD
mov r12, [rbx+588h]
imul rbx, rax, 38h ; '8'
add rbx, r12
loc_6508C:
movzx r13d, word ptr [r12+8]
add r13, r15
mov rdi, r12
mov rsi, r14
mov rdx, r15
mov rcx, r13
call qword ptr [r12+18h]
add r12, 38h ; '8'
mov r15, r13
cmp r12, rbx
jb short loc_6508C
cmp dword ptr [r14+28h], 0
mov rdi, [rbp+var_30]
jnz short loc_650D1
loc_650BD:
mov rax, [r14+8]
mov ecx, [r14+4]
shr ecx, 3
sub rax, rcx
cmp rax, [r14+10h]
jz short loc_650EA
loc_650D1:
and byte ptr [rdi+624h], 0FDh
mov r14d, 7Fh
mov esi, 7Fh
call _ma_set_fatal_error
jmp short loc_650ED
loc_650EA:
xor r14d, r14d
loc_650ED:
mov eax, r14d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ma_pack_rec_unpack(_BYTE *a1, long long a2, long long a3, long long a4, long long a5, int a6)
{
unsigned int v6; // r13d
long long v7; // r12
long long v9; // rbx
long long v10; // rdx
long long v11; // rax
unsigned long long v12; // r12
unsigned long long v13; // rbx
long long v14; // r13
long long v15; // rcx
unsigned int v16; // r14d
v6 = a5;
v7 = a4;
v9 = *(_QWORD *)a1;
v10 = *(unsigned int *)(*(_QWORD *)a1 + 1020LL);
if ( *(_DWORD *)(*(_QWORD *)a1 + 1020LL) )
{
memcpy(a3, a4, v10);
v11 = *(unsigned int *)(*(_QWORD *)a1 + 1020LL);
a3 += v11;
v7 += v11;
v6 -= v11;
}
*(_QWORD *)(a2 + 8) = v7;
*(_QWORD *)(a2 + 16) = v7 + v6;
*(_DWORD *)(a2 + 40) = 0;
*(_QWORD *)a2 = 0LL;
if ( *(_DWORD *)(v9 + 968) )
{
v12 = *(_QWORD *)(v9 + 1416);
v13 = v12 + 56LL * *(unsigned int *)(v9 + 968);
do
{
v14 = a3 + *(unsigned __int16 *)(v12 + 8);
(*(void ( **)(unsigned long long, long long, long long, long long))(v12 + 24))(v12, a2, a3, v14);
v12 += 56LL;
a3 = v14;
}
while ( v12 < v13 );
if ( *(_DWORD *)(a2 + 40) )
goto LABEL_8;
}
v15 = *(_DWORD *)(a2 + 4) >> 3;
if ( *(_QWORD *)(a2 + 8) - v15 != *(_QWORD *)(a2 + 16) )
{
LABEL_8:
a1[1572] &= ~2u;
v16 = 127;
ma_set_fatal_error(a1, 127, v10, v15, a5, a6);
}
else
{
return 0;
}
return v16;
}
| _ma_pack_rec_unpack:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R13,R8
MOV R12,RCX
MOV R15,RDX
MOV R14,RSI
MOV RBX,qword ptr [RDI]
MOV EDX,dword ptr [RBX + 0x3fc]
TEST RDX,RDX
MOV qword ptr [RBP + -0x30],RDI
JZ 0x00165056
MOV RDI,R15
MOV RSI,R12
CALL 0x0012a0b0
MOV RDI,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RDI]
MOV EAX,dword ptr [RAX + 0x3fc]
ADD R15,RAX
ADD R12,RAX
SUB R13,RAX
LAB_00165056:
MOV qword ptr [R14 + 0x8],R12
MOV EAX,R13D
ADD RAX,R12
MOV qword ptr [R14 + 0x10],RAX
MOV dword ptr [R14 + 0x28],0x0
MOV qword ptr [R14],0x0
MOV EAX,dword ptr [RBX + 0x3c8]
TEST RAX,RAX
JZ 0x001650bd
MOV R12,qword ptr [RBX + 0x588]
IMUL RBX,RAX,0x38
ADD RBX,R12
LAB_0016508c:
MOVZX R13D,word ptr [R12 + 0x8]
ADD R13,R15
MOV RDI,R12
MOV RSI,R14
MOV RDX,R15
MOV RCX,R13
CALL qword ptr [R12 + 0x18]
ADD R12,0x38
MOV R15,R13
CMP R12,RBX
JC 0x0016508c
CMP dword ptr [R14 + 0x28],0x0
MOV RDI,qword ptr [RBP + -0x30]
JNZ 0x001650d1
LAB_001650bd:
MOV RAX,qword ptr [R14 + 0x8]
MOV ECX,dword ptr [R14 + 0x4]
SHR ECX,0x3
SUB RAX,RCX
CMP RAX,qword ptr [R14 + 0x10]
JZ 0x001650ea
LAB_001650d1:
AND byte ptr [RDI + 0x624],0xfd
MOV R14D,0x7f
MOV ESI,0x7f
CALL 0x0015cab0
JMP 0x001650ed
LAB_001650ea:
XOR R14D,R14D
LAB_001650ed:
MOV EAX,R14D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
_ma_pack_rec_unpack(long *param_1,int8 *param_2,void *param_3,void *param_4,ulong param_5)
{
long lVar1;
ulong uVar2;
ulong uVar3;
void *pvVar4;
lVar1 = *param_1;
if ((ulong)*(uint *)(lVar1 + 0x3fc) != 0) {
memcpy(param_3,param_4,(ulong)*(uint *)(lVar1 + 0x3fc));
uVar3 = (ulong)*(uint *)(*param_1 + 0x3fc);
param_3 = (void *)((long)param_3 + uVar3);
param_4 = (void *)((long)param_4 + uVar3);
param_5 = param_5 - uVar3;
}
param_2[1] = param_4;
param_2[2] = (param_5 & 0xffffffff) + (long)param_4;
*(int4 *)(param_2 + 5) = 0;
*param_2 = 0;
if ((ulong)*(uint *)(lVar1 + 0x3c8) != 0) {
uVar3 = *(ulong *)(lVar1 + 0x588);
uVar2 = (ulong)*(uint *)(lVar1 + 0x3c8) * 0x38 + uVar3;
do {
pvVar4 = (void *)((ulong)*(ushort *)(uVar3 + 8) + (long)param_3);
(**(code **)(uVar3 + 0x18))(uVar3,param_2,param_3,pvVar4);
uVar3 = uVar3 + 0x38;
param_3 = pvVar4;
} while (uVar3 < uVar2);
if (*(int *)(param_2 + 5) != 0) goto LAB_001650d1;
}
if (param_2[1] - (ulong)(*(uint *)((long)param_2 + 4) >> 3) == param_2[2]) {
return 0;
}
LAB_001650d1:
*(byte *)((long)param_1 + 0x624) = *(byte *)((long)param_1 + 0x624) & 0xfd;
_ma_set_fatal_error(param_1,0x7f);
return 0x7f;
}
| |
49,786 | get_collation_number_internal | eloqsql/mysys/charset.c | static uint
get_collation_number_internal(const char *name)
{
CHARSET_INFO **cs;
for (cs= all_charsets;
cs < all_charsets + array_elements(all_charsets);
cs++)
{
if (cs[0] && cs[0]->coll_name.str &&
!my_strcasecmp(&my_charset_latin1, cs[0]->coll_name.str, name))
return cs[0]->number;
}
return 0;
} | O3 | c | get_collation_number_internal:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq $-0x8, %r15
leaq 0xb6cdd1(%rip), %r12 # 0xbff600
leaq 0x3196ea(%rip), %r14 # 0x3abf20
movq 0x8(%r12,%r15), %rax
testq %rax, %rax
je 0x9285d
movq 0x20(%rax), %rsi
testq %rsi, %rsi
je 0x9285d
movq 0xc0(%r14), %rax
movq %r14, %rdi
movq %rbx, %rdx
callq *0x40(%rax)
testl %eax, %eax
je 0x9286e
addq $0x8, %r15
cmpq $0x3ff8, %r15 # imm = 0x3FF8
jb 0x92836
xorl %eax, %eax
jmp 0x92875
movq 0x8(%r12,%r15), %rax
movl (%rax), %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| get_collation_number_internal:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov rbx, rdi
mov r15, 0FFFFFFFFFFFFFFF8h
lea r12, all_charsets
lea r14, my_charset_latin1
loc_92836:
mov rax, [r12+r15+8]
test rax, rax
jz short loc_9285D
mov rsi, [rax+20h]
test rsi, rsi
jz short loc_9285D
mov rax, [r14+0C0h]
mov rdi, r14
mov rdx, rbx
call qword ptr [rax+40h]
test eax, eax
jz short loc_9286E
loc_9285D:
add r15, 8
cmp r15, 3FF8h
jb short loc_92836
xor eax, eax
jmp short loc_92875
loc_9286E:
mov rax, [r12+r15+8]
mov eax, [rax]
loc_92875:
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long get_collation_number_internal(long long a1)
{
long long v1; // r15
long long v2; // rax
long long v3; // rsi
v1 = 0x1FFFFFFFFFFFFFFFLL;
while ( 1 )
{
v2 = all_charsets[v1 + 1];
if ( v2 )
{
v3 = *(_QWORD *)(v2 + 32);
if ( v3 )
{
if ( !(*(unsigned int ( **)(void *, long long, long long))(*((_QWORD *)&my_charset_latin1 + 24) + 64LL))(
&my_charset_latin1,
v3,
a1) )
break;
}
}
if ( (unsigned long long)++v1 >= 2047 )
return 0LL;
}
return *(unsigned int *)all_charsets[v1 + 1];
}
| get_collation_number_internal:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RDI
MOV R15,-0x8
LEA R12,[0xcff600]
LEA R14,[0x4abf20]
LAB_00192836:
MOV RAX,qword ptr [R12 + R15*0x1 + 0x8]
TEST RAX,RAX
JZ 0x0019285d
MOV RSI,qword ptr [RAX + 0x20]
TEST RSI,RSI
JZ 0x0019285d
MOV RAX,qword ptr [R14 + 0xc0]
MOV RDI,R14
MOV RDX,RBX
CALL qword ptr [RAX + 0x40]
TEST EAX,EAX
JZ 0x0019286e
LAB_0019285d:
ADD R15,0x8
CMP R15,0x3ff8
JC 0x00192836
XOR EAX,EAX
JMP 0x00192875
LAB_0019286e:
MOV RAX,qword ptr [R12 + R15*0x1 + 0x8]
MOV EAX,dword ptr [RAX]
LAB_00192875:
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int4 get_collation_number_internal(int8 param_1)
{
long lVar1;
int iVar2;
ulong uVar3;
uVar3 = 0xfffffffffffffff8;
while (((*(long *)((long)&DAT_00cff608 + uVar3) == 0 ||
(lVar1 = *(long *)(*(long *)((long)&DAT_00cff608 + uVar3) + 0x20), lVar1 == 0)) ||
(iVar2 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_004abfe0 + 0x40))
(&my_charset_latin1,lVar1,param_1), iVar2 != 0))) {
uVar3 = uVar3 + 8;
if (0x3ff7 < uVar3) {
return 0;
}
}
return **(int4 **)((long)&DAT_00cff608 + uVar3);
}
| |
49,787 | minja::Value::get(minja::Value const&) | monkey531[P]llama/common/minja.hpp | Value get(const Value& key) {
if (array_) {
if (!key.is_number_integer()) {
return Value();
}
auto index = key.get<int>();
return array_->at(index < 0 ? array_->size() + index : index);
} else if (object_) {
if (!key.is_hashable()) throw std::runtime_error("Unashable type: " + dump());
auto it = object_->find(key.primitive_);
if (it == object_->end()) return Value();
return it->second;
}
return Value();
} | O3 | cpp | minja::Value::get(minja::Value const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, 0x10(%rsi)
je 0x92d88
movb 0x40(%r15), %al
addb $-0x5, %al
cmpb $0x2, %al
jae 0x92e36
movq %r15, %rdi
callq 0x9303a
movq 0x10(%r14), %rcx
testl %eax, %eax
js 0x92de5
movl %eax, %eax
movq (%rcx), %rsi
movq 0x8(%rcx), %rcx
subq %rsi, %rcx
sarq $0x4, %rcx
movabsq $-0x3333333333333333, %rdx # imm = 0xCCCCCCCCCCCCCCCD
imulq %rcx, %rdx
jmp 0x92e06
movq 0x20(%r14), %r13
testq %r13, %r13
je 0x92e36
cmpq $0x0, 0x10(%r15)
jne 0x92e95
cmpq $0x0, 0x20(%r15)
jne 0x92e95
cmpq $0x0, 0x30(%r15)
jne 0x92e95
movq (%r13), %r12
movq 0x8(%r13), %rsi
cmpq %rsi, %r12
je 0x92e23
addq $0x40, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x8f982
testb %al, %al
jne 0x92e18
addq $0x60, %r12
movq 0x8(%r13), %rsi
cmpq %rsi, %r12
jne 0x92dc7
jmp 0x92e1b
movq (%rcx), %rsi
movq 0x8(%rcx), %rcx
subq %rsi, %rcx
sarq $0x4, %rcx
movabsq $-0x3333333333333333, %rdx # imm = 0xCCCCCCCCCCCCCCCD
imulq %rcx, %rdx
cltq
addq %rdx, %rax
cmpq %rax, %rdx
jbe 0x92e84
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
addq %rax, %rsi
jmp 0x92e2c
movq %r12, %rsi
movq 0x20(%r14), %rax
movq 0x8(%rax), %r12
cmpq %r12, %rsi
je 0x92e36
addq $0x10, %rsi
movq %rbx, %rdi
callq 0x90040
jmp 0x92e72
leaq 0x40(%rbx), %r14
movq $0x0, 0x48(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x30(%rbx)
movb $0x0, 0x40(%rbx)
movq %r14, %rdi
movl $0x1, %esi
callq 0x5b2d4
movq %r14, %rdi
movl $0x1, %esi
callq 0x5b2d4
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5fbad(%rip), %rdi # 0xf2a38
movq %rax, %rsi
xorl %eax, %eax
callq 0x1bd80
movl $0x10, %edi
callq 0x1b450
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x88cb6
leaq 0x5fa0d(%rip), %rsi # 0xf28ca
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x7b47d
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x1beb0
xorl %ebp, %ebp
movq 0x9b103(%rip), %rsi # 0x12dfe8
movq 0x9b064(%rip), %rdx # 0x12df50
movq %rbx, %rdi
callq 0x1bfb0
movq %rax, %r14
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x92f12
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1b8e0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x92f2d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b8e0
testb %bpl, %bpl
jne 0x92f57
jmp 0x92f5f
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x92f57
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b8e0
jmp 0x92f57
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b670
movq %r14, %rdi
callq 0x1c030
nop
| _ZN5minja5Value3getERKS0_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r15, rdx
mov r14, rsi
mov rbx, rdi
cmp qword ptr [rsi+10h], 0
jz short loc_92D88
mov al, [r15+40h]
add al, 0FBh
cmp al, 2
jnb loc_92E36
mov rdi, r15
call _ZNK5minja5Value3getIiEET_v; minja::Value::get<int>(void)
mov rcx, [r14+10h]
test eax, eax
js short loc_92DE5
mov eax, eax
mov rsi, [rcx]
mov rcx, [rcx+8]
sub rcx, rsi
sar rcx, 4
mov rdx, 0CCCCCCCCCCCCCCCDh
imul rdx, rcx
jmp short loc_92E06
loc_92D88:
mov r13, [r14+20h]
test r13, r13
jz loc_92E36
cmp qword ptr [r15+10h], 0
jnz loc_92E95
cmp qword ptr [r15+20h], 0
jnz loc_92E95
cmp qword ptr [r15+30h], 0
jnz loc_92E95
mov r12, [r13+0]
mov rsi, [r13+8]
cmp r12, rsi
jz short loc_92E23
add r15, 40h ; '@'
loc_92DC7:
mov rdi, r12
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_; nlohmann::json_abi_v3_11_3::operator==(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,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&)
test al, al
jnz short loc_92E18
add r12, 60h ; '`'
mov rsi, [r13+8]
cmp r12, rsi
jnz short loc_92DC7
jmp short loc_92E1B
loc_92DE5:
mov rsi, [rcx]
mov rcx, [rcx+8]
sub rcx, rsi
sar rcx, 4
mov rdx, 0CCCCCCCCCCCCCCCDh
imul rdx, rcx
cdqe
add rax, rdx
loc_92E06:
cmp rdx, rax
jbe short loc_92E84
lea rax, [rax+rax*4]
shl rax, 4
add rsi, rax
jmp short loc_92E2C
loc_92E18:
mov rsi, r12
loc_92E1B:
mov rax, [r14+20h]
mov r12, [rax+8]
loc_92E23:
cmp rsi, r12
jz short loc_92E36
add rsi, 10h; minja::Value *
loc_92E2C:
mov rdi, rbx; this
call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&)
jmp short loc_92E72
loc_92E36:
lea r14, [rbx+40h]
mov qword ptr [rbx+48h], 0
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
movups xmmword ptr [rbx+10h], xmm0
movups xmmword ptr [rbx+20h], xmm0
movups xmmword ptr [rbx+30h], xmm0
mov byte ptr [rbx+40h], 0
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
loc_92E72:
mov rax, rbx
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_92E84:
lea rdi, aVectorMRangeCh; "vector::_M_range_check: __n (which is %"...
mov rsi, rax
xor eax, eax
call __ZSt24__throw_out_of_range_fmtPKcz; std::__throw_out_of_range_fmt(char const*,...)
loc_92E95:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+78h+var_70]
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aUnashableType; "Unashable type: "
lea rdi, [rsp+78h+var_50]
lea rdx, [rsp+78h+var_70]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+78h+var_50]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+78h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_92F12
mov rsi, [rsp+78h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_92F12:
lea rax, [rsp+78h+var_60]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_92F2D
mov rsi, [rsp+78h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_92F2D:
test bpl, bpl
jnz short loc_92F57
jmp short loc_92F5F
mov r14, rax
lea rax, [rsp+78h+var_60]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_92F57
mov rsi, [rsp+78h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_92F57
mov r14, rax
loc_92F57:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_92F5F:
mov rdi, r14
call __Unwind_Resume
| minja::Value * minja::Value::get(minja::Value *this, const minja::Value *a2, long long a3, __m128d a4)
{
unsigned long long v5; // rax
long long *v6; // rcx
long long v7; // rsi
unsigned long long v8; // rdx
unsigned __int8 **v9; // r13
unsigned __int8 *v10; // r12
unsigned __int8 *v11; // rsi
unsigned __int8 *v12; // r15
const minja::Value *v13; // rsi
void *exception; // rbx
_BYTE v16[16]; // [rsp+8h] [rbp-70h] BYREF
_BYTE v17[16]; // [rsp+28h] [rbp-50h] BYREF
if ( *((_QWORD *)a2 + 2) )
{
if ( (unsigned __int8)(*(_BYTE *)(a3 + 64) - 5) < 2u )
{
LODWORD(v5) = minja::Value::get<int>(a3);
v6 = (long long *)*((_QWORD *)a2 + 2);
if ( (v5 & 0x80000000) != 0LL )
{
v7 = *v6;
v8 = 0xCCCCCCCCCCCCCCCDLL * ((v6[1] - *v6) >> 4);
v5 = v8 + (int)v5;
}
else
{
v5 = (unsigned int)v5;
v7 = *v6;
v8 = 0xCCCCCCCCCCCCCCCDLL * ((v6[1] - *v6) >> 4);
}
if ( v8 <= v5 )
std::__throw_out_of_range_fmt(
"vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)",
v5,
v8);
v13 = (const minja::Value *)(80 * v5 + v7);
goto LABEL_21;
}
LABEL_22:
*((_QWORD *)this + 9) = 0LL;
*(_OWORD *)this = 0LL;
*((_OWORD *)this + 1) = 0LL;
*((_OWORD *)this + 2) = 0LL;
*((_OWORD *)this + 3) = 0LL;
*((_BYTE *)this + 64) = 0;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)this + 64);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)this + 64);
return this;
}
v9 = (unsigned __int8 **)*((_QWORD *)a2 + 4);
if ( !v9 )
goto LABEL_22;
if ( *(_QWORD *)(a3 + 16) || *(_QWORD *)(a3 + 32) || *(_QWORD *)(a3 + 48) )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v16, (long long)a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v17, (long long)"Unashable type: ", (long long)v16);
std::runtime_error::runtime_error(exception, v17);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v10 = *v9;
v11 = v9[1];
if ( *v9 != v11 )
{
v12 = (unsigned __int8 *)(a3 + 64);
while ( !(unsigned __int8)nlohmann::json_abi_v3_11_3::operator==(v10, v12, a4) )
{
v10 += 96;
v11 = v9[1];
if ( v10 == v11 )
goto LABEL_18;
}
v11 = v10;
LABEL_18:
v10 = *(unsigned __int8 **)(*((_QWORD *)a2 + 4) + 8LL);
}
if ( v11 == v10 )
goto LABEL_22;
v13 = (const minja::Value *)(v11 + 16);
LABEL_21:
minja::Value::Value(this, v13);
return this;
}
| get:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
CMP qword ptr [RSI + 0x10],0x0
JZ 0x00192d88
MOV AL,byte ptr [R15 + 0x40]
ADD AL,0xfb
CMP AL,0x2
JNC 0x00192e36
MOV RDI,R15
CALL 0x0019303a
MOV RCX,qword ptr [R14 + 0x10]
TEST EAX,EAX
JS 0x00192de5
MOV EAX,EAX
MOV RSI,qword ptr [RCX]
MOV RCX,qword ptr [RCX + 0x8]
SUB RCX,RSI
SAR RCX,0x4
MOV RDX,-0x3333333333333333
IMUL RDX,RCX
JMP 0x00192e06
LAB_00192d88:
MOV R13,qword ptr [R14 + 0x20]
TEST R13,R13
JZ 0x00192e36
CMP qword ptr [R15 + 0x10],0x0
JNZ 0x00192e95
CMP qword ptr [R15 + 0x20],0x0
JNZ 0x00192e95
CMP qword ptr [R15 + 0x30],0x0
JNZ 0x00192e95
MOV R12,qword ptr [R13]
MOV RSI,qword ptr [R13 + 0x8]
CMP R12,RSI
JZ 0x00192e23
ADD R15,0x40
LAB_00192dc7:
MOV RDI,R12
MOV RSI,R15
CALL 0x0018f982
TEST AL,AL
JNZ 0x00192e18
ADD R12,0x60
MOV RSI,qword ptr [R13 + 0x8]
CMP R12,RSI
JNZ 0x00192dc7
JMP 0x00192e1b
LAB_00192de5:
MOV RSI,qword ptr [RCX]
MOV RCX,qword ptr [RCX + 0x8]
SUB RCX,RSI
SAR RCX,0x4
MOV RDX,-0x3333333333333333
IMUL RDX,RCX
CDQE
ADD RAX,RDX
LAB_00192e06:
CMP RDX,RAX
JBE 0x00192e84
LEA RAX,[RAX + RAX*0x4]
SHL RAX,0x4
ADD RSI,RAX
JMP 0x00192e2c
LAB_00192e18:
MOV RSI,R12
LAB_00192e1b:
MOV RAX,qword ptr [R14 + 0x20]
MOV R12,qword ptr [RAX + 0x8]
LAB_00192e23:
CMP RSI,R12
JZ 0x00192e36
ADD RSI,0x10
LAB_00192e2c:
MOV RDI,RBX
CALL 0x00190040
JMP 0x00192e72
LAB_00192e36:
LEA R14,[RBX + 0x40]
MOV qword ptr [RBX + 0x48],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOVUPS xmmword ptr [RBX + 0x20],XMM0
MOVUPS xmmword ptr [RBX + 0x30],XMM0
MOV byte ptr [RBX + 0x40],0x0
MOV RDI,R14
MOV ESI,0x1
CALL 0x0015b2d4
MOV RDI,R14
MOV ESI,0x1
CALL 0x0015b2d4
LAB_00192e72:
MOV RAX,RBX
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00192e84:
LEA RDI,[0x1f2a38]
MOV RSI,RAX
XOR EAX,EAX
CALL 0x0011bd80
LAB_00192e95:
MOV EDI,0x10
CALL 0x0011b450
MOV RBX,RAX
LAB_00192ea2:
LEA RDI,[RSP + 0x8]
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x00188cb6
LAB_00192eb6:
LEA RSI,[0x1f28ca]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
CALL 0x0017b47d
MOV BPL,0x1
LAB_00192ecf:
LEA RSI,[RSP + 0x28]
MOV RDI,RBX
CALL 0x0011beb0
XOR EBP,EBP
MOV RSI,qword ptr [0x0022dfe8]
MOV RDX,qword ptr [0x0022df50]
MOV RDI,RBX
CALL 0x0011bfb0
|
/* minja::Value::get(minja::Value const&) */
Value * minja::Value::get(Value *param_1)
{
long *plVar1;
char cVar2;
uint uVar3;
ulong uVar4;
runtime_error *this;
Value *in_RDX;
ulong uVar5;
long in_RSI;
long lVar6;
Value *pVVar7;
basic_json *pbVar8;
bool bVar9;
basic_json *pbVar10;
int1 local_70 [32];
string local_50 [32];
if (*(long *)(in_RSI + 0x10) == 0) {
plVar1 = *(long **)(in_RSI + 0x20);
if (plVar1 != (long *)0x0) {
if (((*(long *)(in_RDX + 0x10) != 0) || (*(long *)(in_RDX + 0x20) != 0)) ||
(*(long *)(in_RDX + 0x30) != 0)) goto LAB_00192e95;
pbVar10 = (basic_json *)*plVar1;
pbVar8 = (basic_json *)plVar1[1];
if (pbVar10 != pbVar8) {
do {
pbVar8 = pbVar10;
cVar2 = nlohmann::json_abi_v3_11_3::operator==(pbVar8,(basic_json *)(in_RDX + 0x40));
if (cVar2 != '\0') break;
pbVar10 = pbVar8 + 0x60;
pbVar8 = (basic_json *)plVar1[1];
} while (pbVar10 != pbVar8);
pbVar10 = *(basic_json **)(*(long *)(in_RSI + 0x20) + 8);
}
if (pbVar8 != pbVar10) {
pVVar7 = (Value *)(pbVar8 + 0x10);
goto LAB_00192e2c;
}
}
}
else if ((byte)((char)in_RDX[0x40] - 5U) < 2) {
uVar3 = get<int>(in_RDX);
plVar1 = *(long **)(in_RSI + 0x10);
if ((int)uVar3 < 0) {
lVar6 = *plVar1;
uVar5 = (plVar1[1] - lVar6 >> 4) * -0x3333333333333333;
uVar4 = (long)(int)uVar3 + uVar5;
}
else {
uVar4 = (ulong)uVar3;
lVar6 = *plVar1;
uVar5 = (plVar1[1] - lVar6 >> 4) * -0x3333333333333333;
}
if (uVar4 < uVar5) {
pVVar7 = (Value *)(lVar6 + uVar4 * 0x50);
LAB_00192e2c:
Value(param_1,pVVar7);
return param_1;
}
std::__throw_out_of_range_fmt
("vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)",uVar4);
LAB_00192e95:
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00192ea2 to 00192eb5 has its CatchHandler @ 00192f54 */
dump_abi_cxx11_((int)local_70,SUB81(in_RSI,0));
/* try { // try from 00192eb6 to 00192ecb has its CatchHandler @ 00192f34 */
std::operator+((char *)local_50,(string *)"Unashable type: ");
/* try { // try from 00192ecf to 00192ef3 has its CatchHandler @ 00192ef4 */
std::runtime_error::runtime_error(this,local_50);
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_0022dfe8,PTR__runtime_error_0022df50);
}
bVar9 = (bool)((char)param_1 + '@');
*(int8 *)(param_1 + 0x48) = 0;
*(int8 *)param_1 = 0;
*(int8 *)(param_1 + 8) = 0;
*(int8 *)(param_1 + 0x10) = 0;
*(int8 *)(param_1 + 0x18) = 0;
*(int8 *)(param_1 + 0x20) = 0;
*(int8 *)(param_1 + 0x28) = 0;
*(int8 *)(param_1 + 0x30) = 0;
*(int8 *)(param_1 + 0x38) = 0;
param_1[0x40] = (Value)0x0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar9);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar9);
return param_1;
}
| |
49,788 | ma_decrypt | eloqsql/storage/maria/ma_crypt.c | static int ma_decrypt(MARIA_SHARE *share, MARIA_CRYPT_DATA *crypt_data,
const uchar *src, uchar *dst, uint size,
uint pageno, LSN lsn,
uint key_version)
{
int rc;
uint32 dstlen= 0; /* Must be set because of error message */
rc= encryption_scheme_decrypt(src, size, dst, &dstlen,
&crypt_data->scheme, key_version,
crypt_data->space, pageno, lsn);
DBUG_ASSERT(!my_assert_on_error || rc == MY_AES_OK);
DBUG_ASSERT(!my_assert_on_error || dstlen == size);
if (! (rc == MY_AES_OK && dstlen == size))
{
my_errno= HA_ERR_DECRYPTION_FAILED;
if (!share->silence_encryption_errors)
my_printf_error(HA_ERR_DECRYPTION_FAILED,
"failed to decrypt '%s' rc: %d dstlen: %u size: %u\n",
MYF(ME_FATAL|ME_ERROR_LOG),
share->open_file_name.str, rc, dstlen, size);
return 1;
}
return 0;
} | O0 | c | ma_decrypt:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl 0x18(%rbp), %eax
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movl %r9d, -0x30(%rbp)
movl $0x0, -0x38(%rbp)
movq -0x20(%rbp), %rdi
movl -0x2c(%rbp), %esi
movq -0x28(%rbp), %rdx
movq -0x18(%rbp), %r8
movl 0x18(%rbp), %r9d
movq -0x18(%rbp), %rax
movl 0x60(%rax), %r11d
movl -0x30(%rbp), %r10d
movq 0x10(%rbp), %rax
leaq -0x38(%rbp), %rcx
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x2c130
movl %eax, -0x34(%rbp)
jmp 0xa125d
jmp 0xa125f
jmp 0xa1261
cmpl $0x0, -0x34(%rbp)
jne 0xa126f
movl -0x38(%rbp), %eax
cmpl -0x2c(%rbp), %eax
je 0xa12c1
callq 0xfea30
movl $0xc0, (%rax)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x7ec(%rax)
jne 0xa12b8
movq -0x10(%rbp), %rax
movq 0x5e0(%rax), %rcx
movl -0x34(%rbp), %r8d
movl -0x38(%rbp), %r9d
movl -0x2c(%rbp), %eax
movl $0xc0, %edi
leaq 0xbcfa2(%rip), %rsi # 0x15e24b
movl $0x1040, %edx # imm = 0x1040
movl %eax, (%rsp)
movb $0x0, %al
callq 0xf4cd0
movl $0x1, -0x4(%rbp)
jmp 0xa12c8
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ma_decrypt:
push rbp
mov rbp, rsp
sub rsp, 50h
mov eax, [rbp+arg_8]
mov rax, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_2C], r8d
mov [rbp+var_30], r9d
mov [rbp+var_38], 0
mov rdi, [rbp+var_20]
mov esi, [rbp+var_2C]
mov rdx, [rbp+var_28]
mov r8, [rbp+var_18]
mov r9d, [rbp+arg_8]
mov rax, [rbp+var_18]
mov r11d, [rax+60h]
mov r10d, [rbp+var_30]
mov rax, [rbp+arg_0]
lea rcx, [rbp+var_38]
mov [rsp+50h+var_50], r11d
mov [rsp+50h+var_48], r10d
mov [rsp+50h+var_40], rax
call encryption_scheme_decrypt
mov [rbp+var_34], eax
jmp short $+2
loc_A125D:
jmp short $+2
loc_A125F:
jmp short $+2
loc_A1261:
cmp [rbp+var_34], 0
jnz short loc_A126F
mov eax, [rbp+var_38]
cmp eax, [rbp+var_2C]
jz short loc_A12C1
loc_A126F:
call _my_thread_var
mov dword ptr [rax], 0C0h
mov rax, [rbp+var_10]
cmp byte ptr [rax+7ECh], 0
jnz short loc_A12B8
mov rax, [rbp+var_10]
mov rcx, [rax+5E0h]
mov r8d, [rbp+var_34]
mov r9d, [rbp+var_38]
mov eax, [rbp+var_2C]
mov edi, 0C0h
lea rsi, aFailedToDecryp; "failed to decrypt '%s' rc: %d dstlen:"...
mov edx, 1040h
mov [rsp+50h+var_50], eax
mov al, 0
call my_printf_error
loc_A12B8:
mov [rbp+var_4], 1
jmp short loc_A12C8
loc_A12C1:
mov [rbp+var_4], 0
loc_A12C8:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
| long long ma_decrypt(long long a1, long long a2, long long a3, long long a4, unsigned int a5, int a6, long long a7)
{
const char *v8; // rsi
long long v9; // rdx
long long v10; // rcx
long long v11; // r8
long long v12; // r9
int v14; // [rsp+0h] [rbp-50h]
int v16; // [rsp+1Ch] [rbp-34h]
v8 = (const char *)a5;
v14 = *(_DWORD *)(a2 + 96);
v16 = encryption_scheme_decrypt();
if ( v16 || a5 )
{
*(_DWORD *)my_thread_var(a3, v8, v9, v10, v11, v12, v14, a6, a7) = 192;
if ( !*(_BYTE *)(a1 + 2028) )
my_printf_error(
192,
(unsigned int)"failed to decrypt '%s' rc: %d dstlen: %u size: %u\n",
4160,
*(_QWORD *)(a1 + 1504),
v16,
0);
return 1;
}
else
{
return 0;
}
}
| ma_decrypt:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV EAX,dword ptr [RBP + 0x18]
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV dword ptr [RBP + -0x2c],R8D
MOV dword ptr [RBP + -0x30],R9D
MOV dword ptr [RBP + -0x38],0x0
MOV RDI,qword ptr [RBP + -0x20]
MOV ESI,dword ptr [RBP + -0x2c]
MOV RDX,qword ptr [RBP + -0x28]
MOV R8,qword ptr [RBP + -0x18]
MOV R9D,dword ptr [RBP + 0x18]
MOV RAX,qword ptr [RBP + -0x18]
MOV R11D,dword ptr [RAX + 0x60]
MOV R10D,dword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + 0x10]
LEA RCX,[RBP + -0x38]
MOV dword ptr [RSP],R11D
MOV dword ptr [RSP + 0x8],R10D
MOV qword ptr [RSP + 0x10],RAX
CALL 0x0012c130
MOV dword ptr [RBP + -0x34],EAX
JMP 0x001a125d
LAB_001a125d:
JMP 0x001a125f
LAB_001a125f:
JMP 0x001a1261
LAB_001a1261:
CMP dword ptr [RBP + -0x34],0x0
JNZ 0x001a126f
MOV EAX,dword ptr [RBP + -0x38]
CMP EAX,dword ptr [RBP + -0x2c]
JZ 0x001a12c1
LAB_001a126f:
CALL 0x001fea30
MOV dword ptr [RAX],0xc0
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x7ec],0x0
JNZ 0x001a12b8
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x5e0]
MOV R8D,dword ptr [RBP + -0x34]
MOV R9D,dword ptr [RBP + -0x38]
MOV EAX,dword ptr [RBP + -0x2c]
MOV EDI,0xc0
LEA RSI,[0x25e24b]
MOV EDX,0x1040
MOV dword ptr [RSP],EAX
MOV AL,0x0
CALL 0x001f4cd0
LAB_001a12b8:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001a12c8
LAB_001a12c1:
MOV dword ptr [RBP + -0x4],0x0
LAB_001a12c8:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
int4
ma_decrypt(long param_1,long param_2,int8 param_3,int8 param_4,int param_5,
int4 param_6,int8 param_7,int4 param_8)
{
int4 *puVar1;
int local_40;
int local_3c;
int4 local_38;
int local_34;
int8 local_30;
int8 local_28;
long local_20;
long local_18;
int4 local_c;
local_40 = 0;
local_38 = param_6;
local_34 = param_5;
local_30 = param_4;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
local_3c = encryption_scheme_decrypt
(param_3,param_5,param_4,&local_40,param_2,param_8,
*(int4 *)(param_2 + 0x60),param_6,param_7);
if ((local_3c == 0) && (local_40 == local_34)) {
local_c = 0;
}
else {
puVar1 = (int4 *)_my_thread_var();
*puVar1 = 0xc0;
if (*(char *)(local_18 + 0x7ec) == '\0') {
my_printf_error(0xc0,"failed to decrypt \'%s\' rc: %d dstlen: %u size: %u\n",0x1040,
*(int8 *)(local_18 + 0x5e0),local_3c,local_40,local_34);
}
local_c = 1;
}
return local_c;
}
| |
49,789 | glfwSwapBuffers | untodesu[P]riteg/build_O2/_deps/glfw-src/src/context.c | GLFWAPI void glfwSwapBuffers(GLFWwindow* handle)
{
_GLFWwindow* window = (_GLFWwindow*) handle;
assert(window != NULL);
_GLFW_REQUIRE_INIT();
if (window->context.client == GLFW_NO_API)
{
_glfwInputError(GLFW_NO_WINDOW_CONTEXT,
"Cannot swap buffers of a window that has no OpenGL or OpenGL ES context");
return;
}
window->context.swapBuffers(window);
} | O2 | c | glfwSwapBuffers:
testq %rdi, %rdi
je 0x1534f
leaq 0x86329(%rip), %rax # 0x9b648
cmpl $0x0, (%rax)
je 0x15333
cmpl $0x0, 0x1f8(%rdi)
je 0x1533c
jmpq *0x248(%rdi)
movl $0x10001, %edi # imm = 0x10001
xorl %esi, %esi
jmp 0x15348
leaq 0x41364(%rip), %rsi # 0x566a7
movl $0x1000a, %edi # imm = 0x1000A
xorl %eax, %eax
jmp 0x1547b
pushq %rax
leaq 0x412bf(%rip), %rdi # 0x56616
leaq 0x412c7(%rip), %rsi # 0x56625
leaq 0x4131f(%rip), %rcx # 0x56684
movl $0x284, %edx # imm = 0x284
callq 0xb510
| glfwSwapBuffers:
test rdi, rdi
jz short loc_1534F
lea rax, _glfw
cmp dword ptr [rax], 0
jz short loc_15333
cmp dword ptr [rdi+1F8h], 0
jz short loc_1533C
jmp qword ptr [rdi+248h]
loc_15333:
mov edi, 10001h
xor esi, esi
jmp short loc_15348
loc_1533C:
lea rsi, aCannotSwapBuff; "Cannot swap buffers of a window that ha"...
mov edi, 1000Ah
loc_15348:
xor eax, eax
jmp _glfwInputError
loc_1534F:
push rax
lea rdi, aWindowNull; "window != NULL"
lea rsi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidGlfwswapbu; "void glfwSwapBuffers(GLFWwindow *)"
mov edx, 284h
call ___assert_fail
| long long glfwSwapBuffers(long long a1, long long a2, int a3, int a4, int a5, int a6)
{
int v7; // edi
const char *v8; // rsi
if ( !a1 )
__assert_fail(
"window != NULL",
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O2/_deps/glfw-src/src/context.c",
644LL,
"void glfwSwapBuffers(GLFWwindow *)");
if ( glfw[0] )
{
if ( *(_DWORD *)(a1 + 504) )
return (*(long long (**)(void))(a1 + 584))();
v8 = "Cannot swap buffers of a window that has no OpenGL or OpenGL ES context";
v7 = 65546;
}
else
{
v7 = 65537;
LODWORD(v8) = 0;
}
return glfwInputError(v7, (_DWORD)v8, a3, a4, a5, a6);
}
| glfwSwapBuffers:
TEST RDI,RDI
JZ 0x0011534f
LEA RAX,[0x19b648]
CMP dword ptr [RAX],0x0
JZ 0x00115333
CMP dword ptr [RDI + 0x1f8],0x0
JZ 0x0011533c
JMP qword ptr [RDI + 0x248]
LAB_00115333:
MOV EDI,0x10001
XOR ESI,ESI
JMP 0x00115348
LAB_0011533c:
LEA RSI,[0x1566a7]
MOV EDI,0x1000a
LAB_00115348:
XOR EAX,EAX
JMP 0x0011547b
LAB_0011534f:
PUSH RAX
LEA RDI,[0x156616]
LEA RSI,[0x156625]
LEA RCX,[0x156684]
MOV EDX,0x284
CALL 0x0010b510
|
void glfwSwapBuffers(long param_1)
{
char *pcVar1;
int8 uVar2;
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("window != NULL",
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O2/_deps/glfw-src/src/context.c"
,0x284,"void glfwSwapBuffers(GLFWwindow *)");
}
if (_glfw == 0) {
uVar2 = 0x10001;
pcVar1 = (char *)0x0;
}
else {
if (*(int *)(param_1 + 0x1f8) != 0) {
/* WARNING: Could not recover jumptable at 0x0011532d. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(param_1 + 0x248))();
return;
}
pcVar1 = "Cannot swap buffers of a window that has no OpenGL or OpenGL ES context";
uVar2 = 0x1000a;
}
_glfwInputError(uVar2,pcVar1);
return;
}
| |
49,790 | my_strnncollsp_nchars_generic | eloqsql/strings/ctype.c | int my_strnncollsp_nchars_generic(CHARSET_INFO *cs,
const uchar *str1, size_t len1,
const uchar *str2, size_t len2,
size_t nchars)
{
int error;
len1= my_well_formed_length(cs, (const char *) str1,
(const char *) str1 + len1,
nchars, &error);
len2= my_well_formed_length(cs, (const char *) str2,
(const char *) str2 + len2,
nchars, &error);
DBUG_ASSERT((cs->state & MY_CS_NOPAD) == 0);
return cs->coll->strnncollsp(cs, str1, len1, str2, len2);
} | O3 | c | my_strnncollsp_nchars_generic:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, -0x30(%rbp)
movq %r8, %r13
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, %r15
addq %rsi, %rdx
movq 0xb8(%rdi), %rax
leaq -0x40(%rbp), %r12
movq %r9, %rcx
movq %r12, %r8
callq *0xc8(%rax)
movq (%r12), %r12
subq %r14, %r12
addq %rbx, %r13
movq 0xb8(%r15), %rax
leaq -0x40(%rbp), %r8
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq -0x30(%rbp), %rcx
movq %r8, %r13
callq *0xc8(%rax)
movq (%r13), %r8
subq %rbx, %r8
movq 0xc0(%r15), %rax
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq *0x10(%rax)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_strnncollsp_nchars_generic:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rbp+var_30], r9
mov r13, r8
mov rbx, rcx
mov r14, rsi
mov r15, rdi
add rdx, rsi
mov rax, [rdi+0B8h]
lea r12, [rbp+var_40]
mov rcx, r9
mov r8, r12
call qword ptr [rax+0C8h]
mov r12, [r12]
sub r12, r14
add r13, rbx
mov rax, [r15+0B8h]
lea r8, [rbp+var_40]
mov rdi, r15
mov rsi, rbx
mov rdx, r13
mov rcx, [rbp+var_30]
mov r13, r8
call qword ptr [rax+0C8h]
mov r8, [r13+0]
sub r8, rbx
mov rax, [r15+0C0h]
mov rdi, r15
mov rsi, r14
mov rdx, r12
mov rcx, rbx
call qword ptr [rax+10h]
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_strnncollsp_nchars_generic(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6)
{
long long v8; // r12
long long v10; // [rsp+0h] [rbp-40h] BYREF
long long v11; // [rsp+10h] [rbp-30h]
v11 = a6;
(*(void ( **)(long long, long long, long long, long long, long long *))(*(_QWORD *)(a1 + 184) + 200LL))(
a1,
a2,
a2 + a3,
a6,
&v10);
v8 = v10 - a2;
(*(void ( **)(long long, long long, long long, long long))(*(_QWORD *)(a1 + 184) + 200LL))(a1, a4, a4 + a5, v11);
return (*(long long ( **)(long long, long long, long long, long long, long long))(*(_QWORD *)(a1 + 192) + 16LL))(
a1,
a2,
v8,
a4,
v10 - a4);
}
| my_strnncollsp_nchars_generic:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RBP + -0x30],R9
MOV R13,R8
MOV RBX,RCX
MOV R14,RSI
MOV R15,RDI
ADD RDX,RSI
MOV RAX,qword ptr [RDI + 0xb8]
LEA R12,[RBP + -0x40]
MOV RCX,R9
MOV R8,R12
CALL qword ptr [RAX + 0xc8]
MOV R12,qword ptr [R12]
SUB R12,R14
ADD R13,RBX
MOV RAX,qword ptr [R15 + 0xb8]
LEA R8,[RBP + -0x40]
MOV RDI,R15
MOV RSI,RBX
MOV RDX,R13
MOV RCX,qword ptr [RBP + -0x30]
MOV R13,R8
CALL qword ptr [RAX + 0xc8]
MOV R8,qword ptr [R13]
SUB R8,RBX
MOV RAX,qword ptr [R15 + 0xc0]
MOV RDI,R15
MOV RSI,R14
MOV RDX,R12
MOV RCX,RBX
CALL qword ptr [RAX + 0x10]
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void my_strnncollsp_nchars_generic
(long param_1,long param_2,long param_3,long param_4,long param_5,int8 param_6)
{
long lVar1;
long local_48 [2];
int8 local_38;
local_38 = param_6;
(**(code **)(*(long *)(param_1 + 0xb8) + 200))(param_1,param_2,param_3 + param_2,param_6,local_48)
;
lVar1 = local_48[0] - param_2;
(**(code **)(*(long *)(param_1 + 0xb8) + 200))(param_1,param_4,param_5 + param_4,local_38);
(**(code **)(*(long *)(param_1 + 0xc0) + 0x10))
(param_1,param_2,lVar1,param_4,local_48[0] - param_4);
return;
}
| |
49,791 | string_get_sortable_timestamp[abi:cxx11]() | monkey531[P]llama/common/common.cpp | std::string string_get_sortable_timestamp() {
using clock = std::chrono::system_clock;
const clock::time_point current_time = clock::now();
const time_t as_time_t = clock::to_time_t(current_time);
char timestamp_no_ns[100];
std::strftime(timestamp_no_ns, 100, "%Y_%m_%d-%H_%M_%S", std::localtime(&as_time_t));
const int64_t ns = std::chrono::duration_cast<std::chrono::nanoseconds>(
current_time.time_since_epoch() % 1000000000).count();
char timestamp_ns[11];
snprintf(timestamp_ns, 11, "%09" PRId64, ns);
return std::string(timestamp_no_ns) + "." + std::string(timestamp_ns);
} | O2 | cpp | string_get_sortable_timestamp[abi:cxx11]():
pushq %r15
pushq %r14
pushq %rbx
subq $0xf0, %rsp
movq %rdi, %rbx
callq 0x23080
movl $0x3b9aca00, %ecx # imm = 0x3B9ACA00
cqto
idivq %rcx
movq %rdx, %r14
leaq 0x58(%rsp), %rdi
movq %rax, (%rdi)
callq 0x23700
leaq 0x5faff(%rip), %rdx # 0xb6a23
leaq 0x80(%rsp), %r15
pushq $0x64
popq %rsi
movq %r15, %rdi
movq %rax, %rcx
callq 0x23790
leaq 0x5faf4(%rip), %rdx # 0xb6a35
leaq 0xd(%rsp), %rdi
pushq $0xb
popq %rsi
movq %r14, %rcx
xorl %eax, %eax
callq 0x23f10
leaq 0x60(%rsp), %r14
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x29c20
leaq 0x5b102(%rip), %rdx # 0xb2071
leaq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x3bbb4
leaq 0x18(%rsp), %rdi
leaq 0xd(%rsp), %rsi
leaq 0xb(%rsp), %rdx
callq 0x29c20
leaq 0x38(%rsp), %rsi
leaq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x3cc43
leaq 0x18(%rsp), %rdi
callq 0x24348
leaq 0x38(%rsp), %rdi
callq 0x24348
leaq 0x60(%rsp), %rdi
callq 0x24348
movq %rbx, %rax
addq $0xf0, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x24348
jmp 0x56fe2
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x24348
jmp 0x56ff1
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x24348
movq %rbx, %rdi
callq 0x240e0
| _Z29string_get_sortable_timestampB5cxx11v:
push r15
push r14
push rbx
sub rsp, 0F0h
mov rbx, rdi
call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void)
mov ecx, 3B9ACA00h
cqo
idiv rcx
mov r14, rdx
lea rdi, [rsp+108h+var_B0]
mov [rdi], rax
call _localtime
lea rdx, aYMDHMS; "%Y_%m_%d-%H_%M_%S"
lea r15, [rsp+108h+var_88]
push 64h ; 'd'
pop rsi
mov rdi, r15
mov rcx, rax
call _strftime
lea rdx, a09ld; "%09ld"
lea rdi, [rsp+108h+var_FB]
push 0Bh
pop rsi
mov rcx, r14
xor eax, eax
call _snprintf
lea r14, [rsp+108h+var_A8]
lea rdx, [rsp+108h+var_FC]
mov rdi, r14
mov rsi, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdx, aN0N1+8; "."
lea rdi, [rsp+108h+var_D0]
mov rsi, r14
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
lea rdi, [rsp+108h+var_F0]
lea rsi, [rsp+108h+var_FB]
lea rdx, [rsp+108h+var_FD]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, [rsp+108h+var_D0]
lea rdx, [rsp+108h+var_F0]
mov rdi, rbx
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
lea rdi, [rsp+108h+var_F0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+108h+var_D0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+108h+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, rbx
add rsp, 0F0h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
lea rdi, [rsp+arg_10]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_56FE2
mov rbx, rax
loc_56FE2:
lea rdi, [rsp+arg_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_56FF1
mov rbx, rax
loc_56FF1:
lea rdi, [rsp+arg_58]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx
call __Unwind_Resume
| std::chrono::_V2::system_clock * string_get_sortable_timestamp[abi:cxx11](std::chrono::_V2::system_clock *a1)
{
long long v1; // rax
long long v2; // r14
long long v3; // rax
_BYTE v5[11]; // [rsp+Dh] [rbp-FBh] BYREF
_QWORD v6[4]; // [rsp+18h] [rbp-F0h] BYREF
_QWORD v7[5]; // [rsp+38h] [rbp-D0h] BYREF
_QWORD v8[4]; // [rsp+60h] [rbp-A8h] BYREF
_BYTE v9[136]; // [rsp+80h] [rbp-88h] BYREF
v1 = std::chrono::_V2::system_clock::now(a1);
v2 = v1 % 1000000000;
v7[4] = v1 / 1000000000;
v3 = localtime();
strftime(v9, 100LL, "%Y_%m_%d-%H_%M_%S", v3);
snprintf(v5, 11LL, "%09ld", v2);
std::string::basic_string<std::allocator<char>>(v8, (long long)v9);
std::operator+<char>((long long)v7, (long long)v8, (long long)".");
std::string::basic_string<std::allocator<char>>(v6, (long long)v5);
std::operator+<char>((long long)a1, v7, v6);
std::string::~string(v6);
std::string::~string(v7);
std::string::~string(v8);
return a1;
}
| string_get_sortable_timestamp[abi:cxx11]:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0xf0
MOV RBX,RDI
CALL 0x00123080
MOV ECX,0x3b9aca00
CQO
IDIV RCX
MOV R14,RDX
LEA RDI,[RSP + 0x58]
MOV qword ptr [RDI],RAX
CALL 0x00123700
LEA RDX,[0x1b6a23]
LEA R15,[RSP + 0x80]
PUSH 0x64
POP RSI
MOV RDI,R15
MOV RCX,RAX
CALL 0x00123790
LEA RDX,[0x1b6a35]
LEA RDI,[RSP + 0xd]
PUSH 0xb
POP RSI
MOV RCX,R14
XOR EAX,EAX
CALL 0x00123f10
LEA R14,[RSP + 0x60]
LEA RDX,[RSP + 0xc]
MOV RDI,R14
MOV RSI,R15
CALL 0x00129c20
LAB_00156f68:
LEA RDX,[0x1b2071]
LEA RDI,[RSP + 0x38]
MOV RSI,R14
CALL 0x0013bbb4
LAB_00156f7c:
LEA RDI,[RSP + 0x18]
LEA RSI,[RSP + 0xd]
LEA RDX,[RSP + 0xb]
CALL 0x00129c20
LAB_00156f90:
LEA RSI,[RSP + 0x38]
LEA RDX,[RSP + 0x18]
MOV RDI,RBX
CALL 0x0013cc43
LAB_00156fa2:
LEA RDI,[RSP + 0x18]
CALL 0x00124348
LEA RDI,[RSP + 0x38]
CALL 0x00124348
LEA RDI,[RSP + 0x60]
CALL 0x00124348
MOV RAX,RBX
ADD RSP,0xf0
POP RBX
POP R14
POP R15
RET
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* string_get_sortable_timestamp[abi:cxx11]() */
void string_get_sortable_timestamp_abi_cxx11_(void)
{
long lVar1;
tm *__tp;
string *in_RDI;
allocator local_fd;
allocator local_fc;
char local_fb [11];
string local_f0 [32];
string local_d0 [32];
long local_b0;
string local_a8 [32];
char local_88 [112];
lVar1 = std::chrono::_V2::system_clock::now();
local_b0 = lVar1 / 1000000000;
__tp = localtime(&local_b0);
strftime(local_88,100,"%Y_%m_%d-%H_%M_%S",__tp);
snprintf(local_fb,0xb,"%09ld",lVar1 % 1000000000);
std::__cxx11::string::string<std::allocator<char>>(local_a8,local_88,&local_fc);
/* try { // try from 00156f68 to 00156f7b has its CatchHandler @ 00156fee */
std::operator+(local_d0,(char *)local_a8);
/* try { // try from 00156f7c to 00156f8f has its CatchHandler @ 00156fdf */
std::__cxx11::string::string<std::allocator<char>>(local_f0,local_fb,&local_fd);
/* try { // try from 00156f90 to 00156fa1 has its CatchHandler @ 00156fd0 */
std::operator+(in_RDI,local_d0);
std::__cxx11::string::~string(local_f0);
std::__cxx11::string::~string(local_d0);
std::__cxx11::string::~string(local_a8);
return;
}
| |
49,792 | ma_update_blob_record | eloqsql/storage/maria/ma_dynrec.c | my_bool _ma_update_blob_record(MARIA_HA *info, MARIA_RECORD_POS pos,
const uchar *oldrec __attribute__ ((unused)),
const uchar *record)
{
uchar *rec_buff;
int error;
ulong reclength,reclength2,extra;
my_bool buff_alloced;
extra= (ALIGN_SIZE(MARIA_MAX_DYN_BLOCK_HEADER)+MARIA_SPLIT_LENGTH+
MARIA_DYN_DELETE_BLOCK_HEADER);
reclength= (info->s->base.pack_reclength+
_ma_calc_total_blob_length(info,record)+ extra);
#ifdef NOT_USED /* We now support big rows */
if (reclength > MARIA_DYN_MAX_ROW_LENGTH)
{
my_errno=HA_ERR_TO_BIG_ROW;
return 1;
}
#endif
alloc_on_stack(*info->stack_end_ptr, rec_buff, buff_alloced, reclength);
if (!rec_buff)
{
my_errno= HA_ERR_OUT_OF_MEM; /* purecov: inspected */
return(1);
}
reclength2= _ma_rec_pack(info, rec_buff+
ALIGN_SIZE(MARIA_MAX_DYN_BLOCK_HEADER),
record);
if (!reclength2)
{
error= 1;
goto err;
}
DBUG_ASSERT(reclength2 <= reclength);
error=update_dynamic_record(info,pos,
rec_buff+ALIGN_SIZE(MARIA_MAX_DYN_BLOCK_HEADER),
reclength2);
err:
stack_alloc_free(rec_buff, buff_alloced);
return(error != 0);
} | O3 | c | ma_update_blob_record:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq (%rdi), %rax
movq 0x3a0(%rax), %r12
movq %rcx, %rsi
callq 0x3cac2
leaq (%r12,%rax), %rsi
addq $0x5c, %rsi
leaq -0x40(%rbp), %rcx
movq %rsi, (%rcx)
movq 0x78(%r14), %rax
movq (%rax), %rax
subq %rcx, %rax
subq %rsi, %rax
jbe 0x3cbd4
cmpq $0x10000, %rax # imm = 0x10000
ja 0x3cbbc
cmpq $0x1000, %rsi # imm = 0x1000
jb 0x3cbd4
cmpq $0x8001, %rax # imm = 0x8001
jb 0x3cbd4
movq %rsp, %r12
addq $0xf, %rsi
andq $-0x10, %rsi
subq %rsi, %r12
movq %r12, %rsp
movb $0x1, %al
movl %eax, -0x34(%rbp)
jmp 0x3cbef
movl $0x10010, %edx # imm = 0x10010
xorl %edi, %edi
callq 0x9f901
testq %rax, %rax
je 0x3cc2f
movq %rax, %r12
movl $0x0, -0x34(%rbp)
leaq 0x18(%r12), %r13
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x3c135
testl %eax, %eax
je 0x3cc1d
movl %eax, %ecx
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x3c5ca
testb %al, %al
setne %bl
jmp 0x3cc1f
movb $0x1, %bl
cmpb $0x0, -0x34(%rbp)
jne 0x3cc3c
movq %r12, %rdi
callq 0x9fb2e
jmp 0x3cc3c
callq 0xa1672
movl $0x80, (%rax)
movb $0x1, %bl
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x3cc5c
movl %ebx, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x29270
| _ma_update_blob_record:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r15, rcx
mov rbx, rsi
mov r14, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov rax, [rdi]
mov r12, [rax+3A0h]
mov rsi, rcx
call _ma_calc_total_blob_length
lea rsi, [r12+rax]
add rsi, 5Ch ; '\'
lea rcx, [rbp+var_40]
mov [rcx], rsi
mov rax, [r14+78h]
mov rax, [rax]
sub rax, rcx
sub rax, rsi
jbe short loc_3CBD4
cmp rax, offset stru_10000
ja short loc_3CBBC
cmp rsi, 1000h
jb short loc_3CBD4
cmp rax, 8001h
jb short loc_3CBD4
loc_3CBBC:
mov r12, rsp
add rsi, 0Fh
and rsi, 0FFFFFFFFFFFFFFF0h
sub r12, rsi
mov rsp, r12
mov al, 1
mov [rbp+var_34], eax
jmp short loc_3CBEF
loc_3CBD4:
mov edx, 10010h
xor edi, edi
call my_malloc
test rax, rax
jz short loc_3CC2F
mov r12, rax
mov [rbp+var_34], 0
loc_3CBEF:
lea r13, [r12+18h]
mov rdi, r14
mov rsi, r13
mov rdx, r15
call _ma_rec_pack
test eax, eax
jz short loc_3CC1D
mov ecx, eax
mov rdi, r14
mov rsi, rbx
mov rdx, r13
call update_dynamic_record
test al, al
setnz bl
jmp short loc_3CC1F
loc_3CC1D:
mov bl, 1
loc_3CC1F:
cmp byte ptr [rbp+var_34], 0
jnz short loc_3CC3C
mov rdi, r12
call my_free
jmp short loc_3CC3C
loc_3CC2F:
call _my_thread_var
mov dword ptr [rax], 80h
mov bl, 1
loc_3CC3C:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_3CC5C
mov eax, ebx
lea rsp, [rbp-28h]
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3CC5C:
call ___stack_chk_fail
| long long ma_update_blob_record(long long a1, long long a2, long long a3, unsigned __int8 *a4)
{
long long v6; // r12
unsigned long long v7; // rsi
unsigned long long v8; // rax
bool v9; // cc
unsigned long long v10; // rax
unsigned __int8 *v11; // r12
long long v12; // rax
long long v13; // rdx
long long v14; // rcx
long long v15; // r8
unsigned int v16; // eax
long long v17; // r8
unsigned long long v19; // [rsp+0h] [rbp-40h] BYREF
int v20; // [rsp+Ch] [rbp-34h]
unsigned long long v21; // [rsp+10h] [rbp-30h]
v21 = __readfsqword(0x28u);
v6 = *(_QWORD *)(*(_QWORD *)a1 + 928LL);
v7 = v6 + ma_calc_total_blob_length((_QWORD *)a1, (long long)a4) + 92;
v19 = v7;
v8 = **(_QWORD **)(a1 + 120) - (_QWORD)&v19;
v9 = v8 <= v7;
v10 = v8 - v7;
if ( v9 || v10 <= (unsigned long long)&stru_10000 && (v7 < 0x1000 || v10 < 0x8001) )
{
v12 = my_malloc(0LL, v7, 65552LL);
if ( !v12 )
{
*(_DWORD *)my_thread_var(0LL, v7, v13, v14, v15) = 128;
LOBYTE(a2) = 1;
return (unsigned int)a2;
}
v11 = (unsigned __int8 *)v12;
v20 = 0;
}
else
{
v11 = (unsigned __int8 *)&v19 - ((v7 + 15) & 0xFFFFFFFFFFFFFFF0LL);
LOBYTE(v10) = 1;
v20 = v10;
}
v16 = ma_rec_pack((unsigned __int8 *)a1, v11 + 24, a4);
if ( v16 )
LOBYTE(a2) = update_dynamic_record((_QWORD *)a1, a2, (long long)(v11 + 24), v16, v17);
else
LOBYTE(a2) = 1;
if ( !(_BYTE)v20 )
my_free(v11);
return (unsigned int)a2;
}
| _ma_update_blob_record:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R15,RCX
MOV RBX,RSI
MOV R14,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RDI]
MOV R12,qword ptr [RAX + 0x3a0]
MOV RSI,RCX
CALL 0x0013cac2
LEA RSI,[R12 + RAX*0x1]
ADD RSI,0x5c
LEA RCX,[RBP + -0x40]
MOV qword ptr [RCX],RSI
MOV RAX,qword ptr [R14 + 0x78]
MOV RAX,qword ptr [RAX]
SUB RAX,RCX
SUB RAX,RSI
JBE 0x0013cbd4
CMP RAX,0x10000
JA 0x0013cbbc
CMP RSI,0x1000
JC 0x0013cbd4
CMP RAX,0x8001
JC 0x0013cbd4
LAB_0013cbbc:
MOV R12,RSP
ADD RSI,0xf
AND RSI,-0x10
SUB R12,RSI
MOV RSP,R12
MOV AL,0x1
MOV dword ptr [RBP + -0x34],EAX
JMP 0x0013cbef
LAB_0013cbd4:
MOV EDX,0x10010
XOR EDI,EDI
CALL 0x0019f901
TEST RAX,RAX
JZ 0x0013cc2f
MOV R12,RAX
MOV dword ptr [RBP + -0x34],0x0
LAB_0013cbef:
LEA R13,[R12 + 0x18]
MOV RDI,R14
MOV RSI,R13
MOV RDX,R15
CALL 0x0013c135
TEST EAX,EAX
JZ 0x0013cc1d
MOV ECX,EAX
MOV RDI,R14
MOV RSI,RBX
MOV RDX,R13
CALL 0x0013c5ca
TEST AL,AL
SETNZ BL
JMP 0x0013cc1f
LAB_0013cc1d:
MOV BL,0x1
LAB_0013cc1f:
CMP byte ptr [RBP + -0x34],0x0
JNZ 0x0013cc3c
MOV RDI,R12
CALL 0x0019fb2e
JMP 0x0013cc3c
LAB_0013cc2f:
CALL 0x001a1672
MOV dword ptr [RAX],0x80
MOV BL,0x1
LAB_0013cc3c:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0013cc5c
MOV EAX,EBX
LEA RSP,[RBP + -0x28]
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013cc5c:
CALL 0x00129270
|
ulong _ma_update_blob_record(long *param_1,int8 param_2,int8 param_3,int8 param_4)
{
long lVar1;
char cVar2;
int iVar3;
long lVar4;
ulong uVar5;
int1 *puVar6;
int4 *puVar7;
int7 uVar8;
ulong *puVar9;
long in_FS_OFFSET;
ulong local_48;
int4 local_3c;
long local_38;
puVar9 = &local_48;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
lVar1 = *(long *)(*param_1 + 0x3a0);
lVar4 = _ma_calc_total_blob_length(param_1,param_4);
lVar1 = lVar1 + lVar4;
local_48 = lVar1 + 0x5c;
uVar5 = (*(long *)param_1[0xf] - (long)&local_48) - local_48;
uVar8 = (int7)((ulong)param_2 >> 8);
if (((ulong)(*(long *)param_1[0xf] - (long)&local_48) < local_48 || uVar5 == 0) ||
((uVar5 < 0x10001 && ((local_48 < 0x1000 || (uVar5 < 0x8001)))))) {
puVar6 = (int1 *)my_malloc(0,local_48,0x10010);
if (puVar6 == (int1 *)0x0) {
puVar7 = (int4 *)_my_thread_var();
*puVar7 = 0x80;
uVar5 = CONCAT71(uVar8,1);
goto LAB_0013cc3c;
}
local_3c = 0;
puVar9 = &local_48;
}
else {
puVar6 = (int1 *)((long)&local_48 - (lVar1 + 0x6bU & 0xfffffffffffffff0));
local_3c = (int4)CONCAT71((int7)(uVar5 >> 8),1);
puVar9 = (ulong *)puVar6;
}
*(int8 *)((long)puVar9 + -8) = 0x13cc02;
iVar3 = _ma_rec_pack(param_1,puVar6 + 0x18,param_4);
if (iVar3 == 0) {
uVar5 = CONCAT71(uVar8,1);
}
else {
*(int8 *)((long)puVar9 + -8) = 0x13cc16;
cVar2 = update_dynamic_record(param_1,param_2,puVar6 + 0x18,iVar3);
uVar5 = CONCAT71(uVar8,cVar2 != '\0');
}
if ((char)local_3c == '\0') {
*(int8 *)((long)puVar9 + -8) = 0x13cc2d;
my_free(puVar6);
}
LAB_0013cc3c:
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return uVar5 & 0xffffffff;
}
/* WARNING: Subroutine does not return */
*(code **)((long)puVar9 + -8) = _ma_delete_dynamic_record;
__stack_chk_fail();
}
| |
49,793 | ggml_compute_forward_neg_f32 | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c | static void ggml_compute_forward_neg_f32(
const struct ggml_compute_params * params,
struct ggml_tensor * dst) {
const struct ggml_tensor * src0 = dst->src[0];
if (params->ith != 0) {
return;
}
assert(ggml_is_contiguous_1(src0));
assert(ggml_is_contiguous_1(dst));
assert(ggml_are_same_shape(src0, dst));
const int n = ggml_nrows(src0);
const int nc = src0->ne[0];
for (int i = 0; i < n; i++) {
ggml_vec_neg_f32(nc,
(float *) ((char *) dst->data + i*( dst->nb[1])),
(float *) ((char *) src0->data + i*(src0->nb[1])));
}
} | O0 | c | ggml_compute_forward_neg_f32:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x98(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, (%rax)
je 0x394dd
jmp 0x395e0
movq -0x18(%rbp), %rdi
callq 0xd030
testb $0x1, %al
jne 0x394ec
jmp 0x394ee
jmp 0x3950d
leaq 0x3b734(%rip), %rdi # 0x74c29
leaq 0x3a666(%rip), %rsi # 0x73b62
movl $0x1842, %edx # imm = 0x1842
leaq 0x3c7a7(%rip), %rcx # 0x75caf
callq 0xd690
movq -0x10(%rbp), %rdi
callq 0xd030
testb $0x1, %al
jne 0x3951c
jmp 0x3951e
jmp 0x3953d
leaq 0x3b71f(%rip), %rdi # 0x74c44
leaq 0x3a636(%rip), %rsi # 0x73b62
movl $0x1843, %edx # imm = 0x1843
leaq 0x3c777(%rip), %rcx # 0x75caf
callq 0xd690
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0xe260
testb $0x1, %al
jne 0x39550
jmp 0x39552
jmp 0x39571
leaq 0x3ad61(%rip), %rdi # 0x742ba
leaq 0x3a602(%rip), %rsi # 0x73b62
movl $0x1844, %edx # imm = 0x1844
leaq 0x3c743(%rip), %rcx # 0x75caf
callq 0xd690
movq -0x18(%rbp), %rdi
callq 0xdc20
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movl %eax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x395e0
movl -0x20(%rbp), %edi
movq -0x10(%rbp), %rax
movq 0xf8(%rax), %rsi
movslq -0x24(%rbp), %rax
movq -0x10(%rbp), %rcx
imulq 0x38(%rcx), %rax
addq %rax, %rsi
movq -0x18(%rbp), %rax
movq 0xf8(%rax), %rdx
movslq -0x24(%rbp), %rax
movq -0x18(%rbp), %rcx
imulq 0x38(%rcx), %rax
addq %rax, %rdx
callq 0x395f0
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x3958f
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ggml_compute_forward_neg_f32:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
mov rax, [rax+98h]
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
cmp dword ptr [rax], 0
jz short loc_394DD
jmp loc_395E0
loc_394DD:
mov rdi, [rbp+var_18]
call _ggml_is_contiguous_1
test al, 1
jnz short loc_394EC
jmp short loc_394EE
loc_394EC:
jmp short loc_3950D
loc_394EE:
lea rdi, aGgmlIsContiguo_3; "ggml_is_contiguous_1(src0)"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov edx, 1842h
lea rcx, aVoidGgmlComput_28; "void ggml_compute_forward_neg_f32(const"...
call ___assert_fail
loc_3950D:
mov rdi, [rbp+var_10]
call _ggml_is_contiguous_1
test al, 1
jnz short loc_3951C
jmp short loc_3951E
loc_3951C:
jmp short loc_3953D
loc_3951E:
lea rdi, aGgmlIsContiguo_4; "ggml_is_contiguous_1(dst)"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov edx, 1843h
lea rcx, aVoidGgmlComput_28; "void ggml_compute_forward_neg_f32(const"...
call ___assert_fail
loc_3953D:
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_10]
call _ggml_are_same_shape
test al, 1
jnz short loc_39550
jmp short loc_39552
loc_39550:
jmp short loc_39571
loc_39552:
lea rdi, aGgmlCanRepeatS+1Fh; "ggml_are_same_shape(src0, dst)"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov edx, 1844h
lea rcx, aVoidGgmlComput_28; "void ggml_compute_forward_neg_f32(const"...
call ___assert_fail
loc_39571:
mov rdi, [rbp+var_18]
call _ggml_nrows
mov [rbp+var_1C], eax
mov rax, [rbp+var_18]
mov rax, [rax+10h]
mov [rbp+var_20], eax
mov [rbp+var_24], 0
loc_3958F:
mov eax, [rbp+var_24]
cmp eax, [rbp+var_1C]
jge short loc_395E0
mov edi, [rbp+var_20]
mov rax, [rbp+var_10]
mov rsi, [rax+0F8h]
movsxd rax, [rbp+var_24]
mov rcx, [rbp+var_10]
imul rax, [rcx+38h]
add rsi, rax
mov rax, [rbp+var_18]
mov rdx, [rax+0F8h]
movsxd rax, [rbp+var_24]
mov rcx, [rbp+var_18]
imul rax, [rcx+38h]
add rdx, rax
call ggml_vec_neg_f32
mov eax, [rbp+var_24]
add eax, 1
mov [rbp+var_24], eax
jmp short loc_3958F
loc_395E0:
add rsp, 30h
pop rbp
retn
| unsigned long long ggml_compute_forward_neg_f32(_DWORD *a1, _QWORD *a2)
{
unsigned long long result; // rax
unsigned int i; // [rsp+Ch] [rbp-24h]
unsigned int v4; // [rsp+10h] [rbp-20h]
int v5; // [rsp+14h] [rbp-1Ch]
_QWORD *v6; // [rsp+18h] [rbp-18h]
v6 = (_QWORD *)a2[19];
result = (unsigned long long)a1;
if ( !*a1 )
{
if ( (ggml_is_contiguous_1(v6) & 1) == 0 )
__assert_fail(
"ggml_is_contiguous_1(src0)",
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
6210LL,
"void ggml_compute_forward_neg_f32(const struct ggml_compute_params *, struct ggml_tensor *)");
if ( (ggml_is_contiguous_1(a2) & 1) == 0 )
__assert_fail(
"ggml_is_contiguous_1(dst)",
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
6211LL,
"void ggml_compute_forward_neg_f32(const struct ggml_compute_params *, struct ggml_tensor *)");
if ( (ggml_are_same_shape(v6, a2) & 1) == 0 )
__assert_fail(
"ggml_are_same_shape(src0, dst)",
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
6212LL,
"void ggml_compute_forward_neg_f32(const struct ggml_compute_params *, struct ggml_tensor *)");
v5 = ggml_nrows(v6);
v4 = v6[2];
for ( i = 0; ; ++i )
{
result = i;
if ( (int)i >= v5 )
break;
ggml_vec_neg_f32(v4, a2[7] * (int)i + a2[31], v6[7] * (int)i + v6[31]);
}
}
return result;
}
| ggml_compute_forward_neg_f32:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x98]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX],0x0
JZ 0x001394dd
JMP 0x001395e0
LAB_001394dd:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0010d030
TEST AL,0x1
JNZ 0x001394ec
JMP 0x001394ee
LAB_001394ec:
JMP 0x0013950d
LAB_001394ee:
LEA RDI,[0x174c29]
LEA RSI,[0x173b62]
MOV EDX,0x1842
LEA RCX,[0x175caf]
CALL 0x0010d690
LAB_0013950d:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0010d030
TEST AL,0x1
JNZ 0x0013951c
JMP 0x0013951e
LAB_0013951c:
JMP 0x0013953d
LAB_0013951e:
LEA RDI,[0x174c44]
LEA RSI,[0x173b62]
MOV EDX,0x1843
LEA RCX,[0x175caf]
CALL 0x0010d690
LAB_0013953d:
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x0010e260
TEST AL,0x1
JNZ 0x00139550
JMP 0x00139552
LAB_00139550:
JMP 0x00139571
LAB_00139552:
LEA RDI,[0x1742ba]
LEA RSI,[0x173b62]
MOV EDX,0x1844
LEA RCX,[0x175caf]
CALL 0x0010d690
LAB_00139571:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0010dc20
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOV dword ptr [RBP + -0x20],EAX
MOV dword ptr [RBP + -0x24],0x0
LAB_0013958f:
MOV EAX,dword ptr [RBP + -0x24]
CMP EAX,dword ptr [RBP + -0x1c]
JGE 0x001395e0
MOV EDI,dword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0xf8]
MOVSXD RAX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x10]
IMUL RAX,qword ptr [RCX + 0x38]
ADD RSI,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RAX + 0xf8]
MOVSXD RAX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x18]
IMUL RAX,qword ptr [RCX + 0x38]
ADD RDX,RAX
CALL 0x001395f0
MOV EAX,dword ptr [RBP + -0x24]
ADD EAX,0x1
MOV dword ptr [RBP + -0x24],EAX
JMP 0x0013958f
LAB_001395e0:
ADD RSP,0x30
POP RBP
RET
|
void ggml_compute_forward_neg_f32(int *param_1,long param_2)
{
long lVar1;
int8 uVar2;
int iVar3;
ulong uVar4;
int local_2c;
lVar1 = *(long *)(param_2 + 0x98);
if (*param_1 == 0) {
uVar4 = ggml_is_contiguous_1(lVar1);
if ((uVar4 & 1) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("ggml_is_contiguous_1(src0)",
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0x1842,
"void ggml_compute_forward_neg_f32(const struct ggml_compute_params *, struct ggml_tensor *)"
);
}
uVar4 = ggml_is_contiguous_1(param_2);
if ((uVar4 & 1) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("ggml_is_contiguous_1(dst)",
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0x1843,
"void ggml_compute_forward_neg_f32(const struct ggml_compute_params *, struct ggml_tensor *)"
);
}
uVar4 = ggml_are_same_shape(lVar1,param_2);
if ((uVar4 & 1) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("ggml_are_same_shape(src0, dst)",
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0x1844,
"void ggml_compute_forward_neg_f32(const struct ggml_compute_params *, struct ggml_tensor *)"
);
}
iVar3 = ggml_nrows(lVar1);
uVar2 = *(int8 *)(lVar1 + 0x10);
for (local_2c = 0; local_2c < iVar3; local_2c = local_2c + 1) {
ggml_vec_neg_f32((int)uVar2,
*(long *)(param_2 + 0xf8) + (long)local_2c * *(long *)(param_2 + 0x38),
*(long *)(lVar1 + 0xf8) + (long)local_2c * *(long *)(lVar1 + 0x38));
}
}
return;
}
| |
49,794 | nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get_codepoint() | llama.cpp/common/json.hpp | int get_codepoint()
{
// this function only makes sense after reading `\u`
JSON_ASSERT(current == 'u');
int codepoint = 0;
const auto factors = { 12u, 8u, 4u, 0u };
for (const auto factor : factors)
{
get();
if (current >= '0' && current <= '9')
{
codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x30u) << factor);
}
else if (current >= 'A' && current <= 'F')
{
codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x37u) << factor);
}
else if (current >= 'a' && current <= 'f')
{
codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x57u) << factor);
}
else
{
return -1;
}
}
JSON_ASSERT(0x0000 <= codepoint && codepoint <= 0xFFFF);
return codepoint;
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get_codepoint():
pushq %rbx
subq $0x10, %rsp
cmpl $0x75, 0x14(%rdi)
jne 0xe7926
leaq 0x14(%rdi), %rsi
leaq 0xc(%rsp), %rbx
movq %rbx, %rdx
callq 0x2760a
movl (%rbx), %eax
addq $0x10, %rsp
popq %rbx
retq
leaq 0x9a917(%rip), %rdi # 0x182244
leaq 0x8b4de(%rip), %rdx # 0x172e12
leaq 0x8e7a5(%rip), %rcx # 0x1760e0
movl $0x1d79, %esi # imm = 0x1D79
xorl %eax, %eax
callq 0x26090
nop
| _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE13get_codepointEv:
push rbx
sub rsp, 10h
cmp dword ptr [rdi+14h], 75h ; 'u'
jnz short loc_E7926
lea rsi, [rdi+14h]
lea rbx, [rsp+18h+var_C]
mov rdx, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE13get_codepointEv_cold_1; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get_codepoint(void) [clone]
mov eax, [rbx]
add rsp, 10h
pop rbx
retn
loc_E7926:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCurrentU; "current == 'u'"
mov esi, 1D79h
xor eax, eax
call _ggml_abort
nop
| long long nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get_codepoint(
__m128i *a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
long long a7,
long long a8,
long long a9)
{
long long v10; // rdx
long long v11; // rcx
long long v12; // r8
long long v13; // r9
unsigned int v14[3]; // [rsp+Ch] [rbp-Ch] BYREF
if ( a1[1].m128i_i32[1] == 117 )
{
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get_codepoint(
a1,
&a1[1].m128i_u32[1],
v14);
return v14[0];
}
else
{
ggml_abort(
"/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",
7545LL,
"GGML_ASSERT(%s) failed",
"current == 'u'");
return nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::next_byte_in_range(
"/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",
7545LL,
v10,
v11,
v12,
v13,
a7,
a8,
a9);
}
}
| get_codepoint:
PUSH RBX
SUB RSP,0x10
CMP dword ptr [RDI + 0x14],0x75
JNZ 0x001e7926
LEA RSI,[RDI + 0x14]
LEA RBX,[RSP + 0xc]
MOV RDX,RBX
CALL 0x0012760a
MOV EAX,dword ptr [RBX]
ADD RSP,0x10
POP RBX
RET
LAB_001e7926:
LEA RDI,[0x282244]
LEA RDX,[0x272e12]
LEA RCX,[0x2760e0]
MOV ESI,0x1d79
XOR EAX,EAX
CALL 0x00126090
|
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get_codepoint() */
int4 __thiscall
nlohmann::json_abi_v3_11_3::detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>
::get_codepoint(lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>
*this)
{
int4 local_c;
if (*(int *)(this + 0x14) == 0x75) {
get_codepoint();
return local_c;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",0x1d79,
"GGML_ASSERT(%s) failed","current == \'u\'");
}
| |
49,795 | mi_read_mempack_record | eloqsql/storage/myisam/mi_packrec.c | static int _mi_read_mempack_record(MI_INFO *info, my_off_t filepos, uchar *buf)
{
MI_BLOCK_INFO block_info;
MYISAM_SHARE *share=info->s;
uchar *pos;
DBUG_ENTER("mi_read_mempack_record");
if (filepos == HA_OFFSET_ERROR)
DBUG_RETURN(-1); /* _search() didn't find record */
if (!(pos= (uchar*) _mi_mempack_get_block_info(info, &info->bit_buff,
&block_info, &info->rec_buff,
(uchar*) share->file_map+
filepos)))
DBUG_RETURN(-1);
/* No need to end-zero pos here for valgrind as data is memory mapped */
DBUG_RETURN(_mi_pack_rec_unpack(info, &info->bit_buff, buf,
pos, block_info.rec_len));
} | O0 | c | mi_read_mempack_record:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x70(%rbp)
movq %rsi, -0x78(%rbp)
movq %rdx, -0x80(%rbp)
movq -0x70(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x88(%rbp)
cmpq $-0x1, -0x78(%rbp)
jne 0xbd824
jmp 0xbd81b
movl $0xffffffff, -0x64(%rbp) # imm = 0xFFFFFFFF
jmp 0xbd893
movq -0x70(%rbp), %rdi
movq -0x70(%rbp), %rsi
addq $0x50, %rsi
movq -0x70(%rbp), %rcx
addq $0x120, %rcx # imm = 0x120
movq -0x88(%rbp), %rax
movq 0x270(%rax), %r8
addq -0x78(%rbp), %r8
leaq -0x60(%rbp), %rdx
callq 0xbf7d0
movq %rax, -0x90(%rbp)
cmpq $0x0, %rax
jne 0xbd86e
jmp 0xbd865
movl $0xffffffff, -0x64(%rbp) # imm = 0xFFFFFFFF
jmp 0xbd893
jmp 0xbd870
movq -0x70(%rbp), %rdi
movq -0x70(%rbp), %rsi
addq $0x50, %rsi
movq -0x80(%rbp), %rdx
movq -0x90(%rbp), %rcx
movq -0x48(%rbp), %r8
callq 0xbcf60
movl %eax, -0x64(%rbp)
movl -0x64(%rbp), %eax
movl %eax, -0x94(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xbd8bd
movl -0x94(%rbp), %eax
addq $0xa0, %rsp
popq %rbp
retq
callq 0x29230
nopw %cs:(%rax,%rax)
| _mi_read_mempack_record:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_70], rdi
mov [rbp+var_78], rsi
mov [rbp+var_80], rdx
mov rax, [rbp+var_70]
mov rax, [rax]
mov [rbp+var_88], rax
cmp [rbp+var_78], 0FFFFFFFFFFFFFFFFh
jnz short loc_BD824
jmp short $+2
loc_BD81B:
mov [rbp+var_64], 0FFFFFFFFh
jmp short loc_BD893
loc_BD824:
mov rdi, [rbp+var_70]
mov rsi, [rbp+var_70]
add rsi, 50h ; 'P'
mov rcx, [rbp+var_70]
add rcx, 120h
mov rax, [rbp+var_88]
mov r8, [rax+270h]
add r8, [rbp+var_78]
lea rdx, [rbp+var_60]
call _mi_mempack_get_block_info
mov [rbp+var_90], rax
cmp rax, 0
jnz short loc_BD86E
jmp short $+2
loc_BD865:
mov [rbp+var_64], 0FFFFFFFFh
jmp short loc_BD893
loc_BD86E:
jmp short $+2
loc_BD870:
mov rdi, [rbp+var_70]
mov rsi, [rbp+var_70]
add rsi, 50h ; 'P'
mov rdx, [rbp+var_80]
mov rcx, [rbp+var_90]
mov r8, [rbp+var_48]
call _mi_pack_rec_unpack
mov [rbp+var_64], eax
loc_BD893:
mov eax, [rbp+var_64]
mov [rbp+var_94], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_BD8BD
mov eax, [rbp+var_94]
add rsp, 0A0h
pop rbp
retn
loc_BD8BD:
call ___stack_chk_fail
| long long mi_read_mempack_record(long long *a1, long long a2, long long a3)
{
long long block_info; // [rsp+10h] [rbp-90h]
_BYTE v7[24]; // [rsp+40h] [rbp-60h] BYREF
long long v8; // [rsp+58h] [rbp-48h]
unsigned long long v9; // [rsp+98h] [rbp-8h]
v9 = __readfsqword(0x28u);
if ( a2 == -1 )
{
return (unsigned int)-1;
}
else
{
block_info = mi_mempack_get_block_info(a1, a1 + 10, v7, a1 + 36, a2 + *(_QWORD *)(*a1 + 624));
if ( block_info )
return (unsigned int)mi_pack_rec_unpack(a1, (long long)(a1 + 10), a3, block_info, v8);
else
return (unsigned int)-1;
}
}
| _mi_read_mempack_record:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x70],RDI
MOV qword ptr [RBP + -0x78],RSI
MOV qword ptr [RBP + -0x80],RDX
MOV RAX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x88],RAX
CMP qword ptr [RBP + -0x78],-0x1
JNZ 0x001bd824
JMP 0x001bd81b
LAB_001bd81b:
MOV dword ptr [RBP + -0x64],0xffffffff
JMP 0x001bd893
LAB_001bd824:
MOV RDI,qword ptr [RBP + -0x70]
MOV RSI,qword ptr [RBP + -0x70]
ADD RSI,0x50
MOV RCX,qword ptr [RBP + -0x70]
ADD RCX,0x120
MOV RAX,qword ptr [RBP + -0x88]
MOV R8,qword ptr [RAX + 0x270]
ADD R8,qword ptr [RBP + -0x78]
LEA RDX,[RBP + -0x60]
CALL 0x001bf7d0
MOV qword ptr [RBP + -0x90],RAX
CMP RAX,0x0
JNZ 0x001bd86e
JMP 0x001bd865
LAB_001bd865:
MOV dword ptr [RBP + -0x64],0xffffffff
JMP 0x001bd893
LAB_001bd86e:
JMP 0x001bd870
LAB_001bd870:
MOV RDI,qword ptr [RBP + -0x70]
MOV RSI,qword ptr [RBP + -0x70]
ADD RSI,0x50
MOV RDX,qword ptr [RBP + -0x80]
MOV RCX,qword ptr [RBP + -0x90]
MOV R8,qword ptr [RBP + -0x48]
CALL 0x001bcf60
MOV dword ptr [RBP + -0x64],EAX
LAB_001bd893:
MOV EAX,dword ptr [RBP + -0x64]
MOV dword ptr [RBP + -0x94],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001bd8bd
MOV EAX,dword ptr [RBP + -0x94]
ADD RSP,0xa0
POP RBP
RET
LAB_001bd8bd:
CALL 0x00129230
|
int4 _mi_read_mempack_record(long *param_1,long param_2,int8 param_3)
{
long lVar1;
long in_FS_OFFSET;
int4 local_6c;
int1 local_68 [24];
int8 local_50;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
if (param_2 == -1) {
local_6c = 0xffffffff;
}
else {
lVar1 = _mi_mempack_get_block_info
(param_1,param_1 + 10,local_68,param_1 + 0x24,
*(long *)(*param_1 + 0x270) + param_2);
if (lVar1 == 0) {
local_6c = 0xffffffff;
}
else {
local_6c = _mi_pack_rec_unpack(param_1,param_1 + 10,param_3,lVar1,local_50);
}
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_6c;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
49,796 | ftb_climb_the_tree | eloqsql/storage/myisam/ft_boolean_search.c | static int _ftb_climb_the_tree(FTB *ftb, FTB_WORD *ftbw, FT_SEG_ITERATOR *ftsi_orig)
{
FT_SEG_ITERATOR ftsi;
FTB_EXPR *ftbe;
float weight=ftbw->weight;
int yn_flag= ftbw->flags, ythresh, mode=(ftsi_orig != 0);
my_off_t curdoc=ftbw->docid[mode];
struct st_mysql_ftparser *parser= ftb->keynr == NO_SUCH_KEY ?
&ft_default_parser :
ftb->info->s->keyinfo[ftb->keynr].parser;
for (ftbe=ftbw->up; ftbe; ftbe=ftbe->up)
{
ythresh = ftbe->ythresh - (mode ? 0 : ftbe->yweaks);
if (ftbe->docid[mode] != curdoc)
{
ftbe->cur_weight=0;
ftbe->yesses=ftbe->nos=0;
ftbe->docid[mode]=curdoc;
}
if (ftbe->nos)
break;
if (yn_flag & FTB_FLAG_YES)
{
weight /= ftbe->ythresh;
ftbe->cur_weight += weight;
if ((int) ++ftbe->yesses == ythresh)
{
yn_flag=ftbe->flags;
weight=ftbe->cur_weight*ftbe->weight;
if (mode && ftbe->phrase)
{
int found= 0;
memcpy(&ftsi, ftsi_orig, sizeof(ftsi));
while (_mi_ft_segiterator(&ftsi) && !found)
{
if (!ftsi.pos)
continue;
found= _ftb_check_phrase(ftb, ftsi.pos, ftsi.len, ftbe, parser);
if (unlikely(found < 0))
return 1;
}
if (!found)
break;
} /* ftbe->quot */
}
else
break;
}
else
if (yn_flag & FTB_FLAG_NO)
{
/*
NOTE: special sort function of queue assures that all
(yn_flag & FTB_FLAG_NO) != 0
events for every particular subexpression will
"auto-magically" happen BEFORE all the
(yn_flag & FTB_FLAG_YES) != 0 events. So no
already matched expression can become not-matched again.
*/
++ftbe->nos;
break;
}
else
{
if (ftbe->ythresh)
weight/=3;
ftbe->cur_weight += weight;
if ((int) ftbe->yesses < ythresh)
break;
if (!(yn_flag & FTB_FLAG_WONLY))
yn_flag= ((int) ftbe->yesses++ == ythresh) ? ftbe->flags : FTB_FLAG_WONLY ;
weight*= ftbe->weight;
}
}
return 0;
} | O3 | c | ftb_climb_the_tree:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r15
movq %rdi, %r14
xorl %r12d, %r12d
testq %rdx, %rdx
setne %al
movl 0x340(%rdi), %ecx
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
cmpq %rdx, %rcx
je 0x71ead
movq 0x8(%r14), %rdx
movq (%rdx), %rdx
movq 0x218(%rdx), %rdx
imulq $0x70, %rcx, %rcx
movq 0x38(%rdx,%rcx), %rcx
jmp 0x71eb4
leaq 0x31344c(%rip), %rcx # 0x385300
movq %rcx, -0x38(%rbp)
movq (%rsi), %rbx
testq %rbx, %rbx
je 0x72108
movb %al, %r12b
movss 0x40(%rsi), %xmm1
movl 0x8(%rsi), %edi
movq 0x10(%rsi,%r12,8), %rsi
movss 0x67130(%rip), %xmm2 # 0xd900c
movq %r15, -0x50(%rbp)
movq %r12, -0x48(%rbp)
movq %rsi, -0x40(%rbp)
xorl %edx, %edx
testq %r15, %r15
jne 0x71ef2
movl 0x4c(%rbx), %edx
movl 0x48(%rbx), %ecx
cmpq %rsi, 0x10(%rbx,%r12,8)
jne 0x71f07
cmpl $0x0, 0x44(%rbx)
je 0x71f1b
jmp 0x72108
movl $0x0, 0x2c(%rbx)
movq $0x0, 0x40(%rbx)
movq %rsi, 0x10(%rbx,%r12,8)
movl %ecx, %r8d
subl %edx, %r8d
testb $0x2, %dil
jne 0x71f6d
testb $0x4, %dil
jne 0x72101
movaps %xmm1, %xmm0
divss %xmm2, %xmm0
testl %ecx, %ecx
je 0x71f3f
movaps %xmm0, %xmm1
movss 0x2c(%rbx), %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x2c(%rbx)
movl 0x40(%rbx), %ecx
cmpl %r8d, %ecx
jl 0x72108
testb $0x8, %dil
je 0x720e5
mulss 0x28(%rbx), %xmm1
jmp 0x720d7
movl %ecx, %ecx
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
divss %xmm0, %xmm1
addss 0x2c(%rbx), %xmm1
movss %xmm1, 0x2c(%rbx)
movl 0x40(%rbx), %ecx
incl %ecx
movl %ecx, 0x40(%rbx)
xorl %eax, %eax
cmpl %r8d, %ecx
jne 0x7210a
movl 0x8(%rbx), %edi
mulss 0x28(%rbx), %xmm1
testq %r15, %r15
je 0x720d7
cmpq $0x0, 0x30(%rbx)
je 0x720d7
movl %edi, -0x2c(%rbp)
movss %xmm1, -0x30(%rbp)
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movaps %xmm1, -0x60(%rbp)
movaps %xmm0, -0x70(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x740ba
testl %eax, %eax
je 0x72108
movq -0x58(%rbp), %r12
testq %r12, %r12
je 0x71fcd
movl -0x6c(%rbp), %r15d
movq 0x8(%r14), %rdi
movl 0x340(%r14), %esi
movl $0x1, %edx
callq 0x73ef5
testq %rax, %rax
je 0x72098
movq %rax, %r13
movq 0x30(%rbx), %rdi
movq %rdi, -0x98(%rbp)
movq 0x38(%rbx), %rax
movq %rax, -0x90(%rbp)
movq 0x10(%r14), %rax
movq %rax, -0x88(%rbp)
callq 0x94879
movl %eax, -0x80(%rbp)
movq $0x1, -0x7c(%rbp)
leaq 0xaaf(%rip), %rax # 0x72af3
movq %rax, (%r13)
leaq 0xb0d(%rip), %rax # 0x72b5c
movq %rax, 0x8(%r13)
leaq -0x98(%rbp), %rax
movq %rax, 0x18(%r13)
movq 0x10(%r14), %rax
movq %rax, 0x20(%r13)
movq %r12, 0x28(%r13)
movl %r15d, 0x30(%r13)
movabsq $0x100000000, %rax # imm = 0x100000000
movq %rax, 0x34(%r13)
movq %r13, %rdi
movq -0x38(%rbp), %rax
callq *0x8(%rax)
testl %eax, %eax
jne 0x72119
cmpl $0x0, -0x78(%rbp)
sete %r15b
jmp 0x7209b
movb $0x1, %r15b
leaq -0x70(%rbp), %rdi
callq 0x740ba
testl %eax, %eax
je 0x720b1
testb %r15b, %r15b
jne 0x71fde
testb %r15b, %r15b
movq -0x50(%rbp), %r15
movq -0x48(%rbp), %r12
movss -0x30(%rbp), %xmm1
movq -0x40(%rbp), %rsi
movss 0x66f3f(%rip), %xmm2 # 0xd900c
movl -0x2c(%rbp), %edi
movl $0x0, %eax
jne 0x7210a
movq (%rbx), %rbx
testq %rbx, %rbx
jne 0x71ee8
jmp 0x72108
leal 0x1(%rcx), %edx
movl %edx, 0x40(%rbx)
movl $0x8, %edi
cmpl %r8d, %ecx
jne 0x71f63
movl 0x8(%rbx), %edi
jmp 0x71f63
movl $0x1, 0x44(%rbx)
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %eax
jmp 0x7210a
| _ftb_climb_the_tree:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov r15, rdx
mov r14, rdi
xor r12d, r12d
test rdx, rdx
setnz al
mov ecx, [rdi+340h]
mov edx, 0FFFFFFFFh
cmp rcx, rdx
jz short loc_71EAD
mov rdx, [r14+8]
mov rdx, [rdx]
mov rdx, [rdx+218h]
imul rcx, 70h ; 'p'
mov rcx, [rdx+rcx+38h]
jmp short loc_71EB4
loc_71EAD:
lea rcx, ft_default_parser
loc_71EB4:
mov [rbp+var_38], rcx
mov rbx, [rsi]
test rbx, rbx
jz loc_72108
mov r12b, al
movss xmm1, dword ptr [rsi+40h]
mov edi, [rsi+8]
mov rsi, [rsi+r12*8+10h]
movss xmm2, cs:dword_D900C
mov [rbp+var_50], r15
mov [rbp+var_48], r12
mov [rbp+var_40], rsi
loc_71EE8:
xor edx, edx
test r15, r15
jnz short loc_71EF2
mov edx, [rbx+4Ch]
loc_71EF2:
mov ecx, [rbx+48h]
cmp [rbx+r12*8+10h], rsi
jnz short loc_71F07
cmp dword ptr [rbx+44h], 0
jz short loc_71F1B
jmp loc_72108
loc_71F07:
mov dword ptr [rbx+2Ch], 0
mov qword ptr [rbx+40h], 0
mov [rbx+r12*8+10h], rsi
loc_71F1B:
mov r8d, ecx
sub r8d, edx
test dil, 2
jnz short loc_71F6D
test dil, 4
jnz loc_72101
movaps xmm0, xmm1
divss xmm0, xmm2
test ecx, ecx
jz short loc_71F3F
movaps xmm1, xmm0
loc_71F3F:
movss xmm0, dword ptr [rbx+2Ch]
addss xmm0, xmm1
movss dword ptr [rbx+2Ch], xmm0
mov ecx, [rbx+40h]
cmp ecx, r8d
jl loc_72108
test dil, 8
jz loc_720E5
loc_71F63:
mulss xmm1, dword ptr [rbx+28h]
jmp loc_720D7
loc_71F6D:
mov ecx, ecx
xorps xmm0, xmm0
cvtsi2ss xmm0, rcx
divss xmm1, xmm0
addss xmm1, dword ptr [rbx+2Ch]
movss dword ptr [rbx+2Ch], xmm1
mov ecx, [rbx+40h]
inc ecx
mov [rbx+40h], ecx
xor eax, eax
cmp ecx, r8d
jnz loc_7210A
mov edi, [rbx+8]
mulss xmm1, dword ptr [rbx+28h]
test r15, r15
jz loc_720D7
cmp qword ptr [rbx+30h], 0
jz loc_720D7
mov [rbp+var_2C], edi
movss [rbp+var_30], xmm1
movups xmm0, xmmword ptr [r15]
movups xmm1, xmmword ptr [r15+10h]
movaps [rbp+var_60], xmm1
movaps [rbp+var_70], xmm0
loc_71FCD:
lea rdi, [rbp+var_70]
call _mi_ft_segiterator
test eax, eax
jz loc_72108
loc_71FDE:
mov r12, qword ptr [rbp+var_60+8]
test r12, r12
jz short loc_71FCD
mov r15d, dword ptr [rbp+var_70+4]
mov rdi, [r14+8]
mov esi, [r14+340h]
mov edx, 1
call ftparser_call_initializer
test rax, rax
jz loc_72098
mov r13, rax
mov rdi, [rbx+30h]
mov [rbp+var_98], rdi
mov rax, [rbx+38h]
mov [rbp+var_90], rax
mov rax, [r14+10h]
mov [rbp+var_88], rax
call list_length
mov [rbp+var_80], eax
mov [rbp+var_7C], 1
lea rax, ftb_check_phrase_internal
mov [r13+0], rax
lea rax, ftb_phrase_add_word
mov [r13+8], rax
lea rax, [rbp+var_98]
mov [r13+18h], rax
mov rax, [r14+10h]
mov [r13+20h], rax
mov [r13+28h], r12
mov [r13+30h], r15d
mov rax, 100000000h
mov [r13+34h], rax
mov rdi, r13
mov rax, [rbp+var_38]
call qword ptr [rax+8]
test eax, eax
jnz loc_72119
cmp dword ptr [rbp+var_7C+4], 0
setz r15b
jmp short loc_7209B
loc_72098:
mov r15b, 1
loc_7209B:
lea rdi, [rbp+var_70]
call _mi_ft_segiterator
test eax, eax
jz short loc_720B1
test r15b, r15b
jnz loc_71FDE
loc_720B1:
test r15b, r15b
mov r15, [rbp+var_50]
mov r12, [rbp+var_48]
movss xmm1, [rbp+var_30]
mov rsi, [rbp+var_40]
movss xmm2, cs:dword_D900C
mov edi, [rbp+var_2C]
mov eax, 0
jnz short loc_7210A
loc_720D7:
mov rbx, [rbx]
test rbx, rbx
jnz loc_71EE8
jmp short loc_72108
loc_720E5:
lea edx, [rcx+1]
mov [rbx+40h], edx
mov edi, 8
cmp ecx, r8d
jnz loc_71F63
mov edi, [rbx+8]
jmp loc_71F63
loc_72101:
mov dword ptr [rbx+44h], 1
loc_72108:
xor eax, eax
loc_7210A:
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_72119:
mov eax, 1
jmp short loc_7210A
| long long ftb_climb_the_tree(long long a1, long long **a2, __int128 *a3, long long a4, long long a5, long long a6)
{
__int128 *v6; // r15
long long v8; // r12
long long v9; // rcx
unsigned int ( **v10)(long long); // rcx
long long *v11; // rbx
__int128 v12; // xmm1
int v13; // edi
long long v14; // rsi
long long v15; // rdx
int v16; // ecx
long long v17; // r8
__int128 v18; // xmm0
int v19; // ecx
float v20; // xmm1_4
long long v21; // rcx
long long result; // rax
__int128 v23; // xmm0
__int128 v24; // xmm1
long long v25; // r12
int v26; // r15d
long long v27; // rax
long long v28; // rdx
long long v29; // rcx
long long v30; // r8
long long v31; // r9
long long v32; // r13
bool v33; // r15
bool v34; // zf
_QWORD v35[3]; // [rsp+8h] [rbp-98h] BYREF
int v36; // [rsp+20h] [rbp-80h]
long long v37; // [rsp+24h] [rbp-7Ch]
__int128 v38; // [rsp+30h] [rbp-70h] BYREF
__int128 v39; // [rsp+40h] [rbp-60h]
__int128 *v40; // [rsp+50h] [rbp-50h]
long long v41; // [rsp+58h] [rbp-48h]
long long v42; // [rsp+60h] [rbp-40h]
unsigned int ( **v43)(long long); // [rsp+68h] [rbp-38h]
unsigned int v44; // [rsp+70h] [rbp-30h]
int v45; // [rsp+74h] [rbp-2Ch]
v6 = a3;
v8 = 0LL;
v9 = *(unsigned int *)(a1 + 832);
if ( v9 == 0xFFFFFFFFLL )
v10 = (unsigned int ( **)(long long))&ft_default_parser;
else
v10 = *(unsigned int ( ***)(long long))(*(_QWORD *)(**(_QWORD **)(a1 + 8) + 536LL) + 112 * v9 + 56);
v43 = v10;
v11 = *a2;
if ( *a2 )
{
LOBYTE(v8) = a3 != 0LL;
v12 = *((unsigned int *)a2 + 16);
v13 = *((_DWORD *)a2 + 2);
v14 = (long long)a2[v8 + 2];
v40 = a3;
v41 = v8;
v42 = v14;
do
{
v15 = 0LL;
if ( !v6 )
v15 = *((unsigned int *)v11 + 19);
v16 = *((_DWORD *)v11 + 18);
if ( v11[v8 + 2] == v14 )
{
if ( *((_DWORD *)v11 + 17) )
return 0LL;
}
else
{
*((_DWORD *)v11 + 11) = 0;
v11[8] = 0LL;
v11[v8 + 2] = v14;
}
v17 = (unsigned int)(v16 - v15);
if ( (v13 & 2) != 0 )
{
v20 = (float)(*(float *)&v12 / (float)v16) + *((float *)v11 + 11);
*((float *)v11 + 11) = v20;
v21 = (unsigned int)(*((_DWORD *)v11 + 16) + 1);
*((_DWORD *)v11 + 16) = v21;
result = 0LL;
if ( (_DWORD)v21 != (_DWORD)v17 )
return result;
v13 = *((_DWORD *)v11 + 2);
*(float *)&v12 = v20 * *((float *)v11 + 10);
if ( v6 && v11[6] )
{
v45 = *((_DWORD *)v11 + 2);
v44 = v12;
v23 = *v6;
v24 = v6[1];
v39 = v24;
v38 = v23;
while ( (unsigned int)mi_ft_segiterator(&v38, v14, v15, v21, v17, a6) )
{
while ( 1 )
{
v25 = *((_QWORD *)&v39 + 1);
if ( !*((_QWORD *)&v39 + 1) )
break;
v26 = DWORD1(v38);
v14 = *(unsigned int *)(a1 + 832);
v27 = ftparser_call_initializer(*(_QWORD *)(a1 + 8), v14, 1LL, *(double *)&v23);
if ( v27 )
{
v32 = v27;
v35[0] = v11[6];
v35[1] = v11[7];
v35[2] = *(_QWORD *)(a1 + 16);
v36 = list_length(*(double *)&v23, *(double *)&v24, COERCE_DOUBLE(1077936128LL));
v37 = 1LL;
*(_QWORD *)v32 = ftb_check_phrase_internal;
*(_QWORD *)(v32 + 8) = ftb_phrase_add_word;
*(_QWORD *)(v32 + 24) = v35;
*(_QWORD *)(v32 + 32) = *(_QWORD *)(a1 + 16);
*(_QWORD *)(v32 + 40) = v25;
*(_DWORD *)(v32 + 48) = v26;
*(_QWORD *)(v32 + 52) = 0x100000000LL;
if ( v43[1](v32) )
return 1LL;
v33 = HIDWORD(v37) == 0;
}
else
{
v33 = 1;
}
if ( !(unsigned int)mi_ft_segiterator(&v38, v14, v28, v29, v30, v31) || !v33 )
{
v34 = !v33;
v6 = v40;
v8 = v41;
v12 = v44;
v14 = v42;
LOBYTE(v13) = v45;
result = 0LL;
if ( !v34 )
return result;
goto LABEL_32;
}
}
}
return 0LL;
}
}
else
{
if ( (v13 & 4) != 0 )
{
*((_DWORD *)v11 + 17) = 1;
return 0LL;
}
v18 = v12;
if ( v16 )
{
*(float *)&v18 = *(float *)&v12 / 3.0;
v12 = v18;
}
*((float *)v11 + 11) = *((float *)v11 + 11) + *(float *)&v12;
v19 = *((_DWORD *)v11 + 16);
if ( v19 < (int)v17 )
return 0LL;
if ( (v13 & 8) == 0 )
{
*((_DWORD *)v11 + 16) = v19 + 1;
LOBYTE(v13) = 8;
if ( v19 == (_DWORD)v17 )
v13 = *((_DWORD *)v11 + 2);
}
*(float *)&v12 = *(float *)&v12 * *((float *)v11 + 10);
}
LABEL_32:
v11 = (long long *)*v11;
}
while ( v11 );
}
return 0LL;
}
| _ftb_climb_the_tree:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV R15,RDX
MOV R14,RDI
XOR R12D,R12D
TEST RDX,RDX
SETNZ AL
MOV ECX,dword ptr [RDI + 0x340]
MOV EDX,0xffffffff
CMP RCX,RDX
JZ 0x00171ead
MOV RDX,qword ptr [R14 + 0x8]
MOV RDX,qword ptr [RDX]
MOV RDX,qword ptr [RDX + 0x218]
IMUL RCX,RCX,0x70
MOV RCX,qword ptr [RDX + RCX*0x1 + 0x38]
JMP 0x00171eb4
LAB_00171ead:
LEA RCX,[0x485300]
LAB_00171eb4:
MOV qword ptr [RBP + -0x38],RCX
MOV RBX,qword ptr [RSI]
TEST RBX,RBX
JZ 0x00172108
MOV R12B,AL
MOVSS XMM1,dword ptr [RSI + 0x40]
MOV EDI,dword ptr [RSI + 0x8]
MOV RSI,qword ptr [RSI + R12*0x8 + 0x10]
MOVSS XMM2,dword ptr [0x001d900c]
MOV qword ptr [RBP + -0x50],R15
MOV qword ptr [RBP + -0x48],R12
MOV qword ptr [RBP + -0x40],RSI
LAB_00171ee8:
XOR EDX,EDX
TEST R15,R15
JNZ 0x00171ef2
MOV EDX,dword ptr [RBX + 0x4c]
LAB_00171ef2:
MOV ECX,dword ptr [RBX + 0x48]
CMP qword ptr [RBX + R12*0x8 + 0x10],RSI
JNZ 0x00171f07
CMP dword ptr [RBX + 0x44],0x0
JZ 0x00171f1b
JMP 0x00172108
LAB_00171f07:
MOV dword ptr [RBX + 0x2c],0x0
MOV qword ptr [RBX + 0x40],0x0
MOV qword ptr [RBX + R12*0x8 + 0x10],RSI
LAB_00171f1b:
MOV R8D,ECX
SUB R8D,EDX
TEST DIL,0x2
JNZ 0x00171f6d
TEST DIL,0x4
JNZ 0x00172101
MOVAPS XMM0,XMM1
DIVSS XMM0,XMM2
TEST ECX,ECX
JZ 0x00171f3f
MOVAPS XMM1,XMM0
LAB_00171f3f:
MOVSS XMM0,dword ptr [RBX + 0x2c]
ADDSS XMM0,XMM1
MOVSS dword ptr [RBX + 0x2c],XMM0
MOV ECX,dword ptr [RBX + 0x40]
CMP ECX,R8D
JL 0x00172108
TEST DIL,0x8
JZ 0x001720e5
LAB_00171f63:
MULSS XMM1,dword ptr [RBX + 0x28]
JMP 0x001720d7
LAB_00171f6d:
MOV ECX,ECX
XORPS XMM0,XMM0
CVTSI2SS XMM0,RCX
DIVSS XMM1,XMM0
ADDSS XMM1,dword ptr [RBX + 0x2c]
MOVSS dword ptr [RBX + 0x2c],XMM1
MOV ECX,dword ptr [RBX + 0x40]
INC ECX
MOV dword ptr [RBX + 0x40],ECX
XOR EAX,EAX
CMP ECX,R8D
JNZ 0x0017210a
MOV EDI,dword ptr [RBX + 0x8]
MULSS XMM1,dword ptr [RBX + 0x28]
TEST R15,R15
JZ 0x001720d7
CMP qword ptr [RBX + 0x30],0x0
JZ 0x001720d7
MOV dword ptr [RBP + -0x2c],EDI
MOVSS dword ptr [RBP + -0x30],XMM1
MOVUPS XMM0,xmmword ptr [R15]
MOVUPS XMM1,xmmword ptr [R15 + 0x10]
MOVAPS xmmword ptr [RBP + -0x60],XMM1
MOVAPS xmmword ptr [RBP + -0x70],XMM0
LAB_00171fcd:
LEA RDI,[RBP + -0x70]
CALL 0x001740ba
TEST EAX,EAX
JZ 0x00172108
LAB_00171fde:
MOV R12,qword ptr [RBP + -0x58]
TEST R12,R12
JZ 0x00171fcd
MOV R15D,dword ptr [RBP + -0x6c]
MOV RDI,qword ptr [R14 + 0x8]
MOV ESI,dword ptr [R14 + 0x340]
MOV EDX,0x1
CALL 0x00173ef5
TEST RAX,RAX
JZ 0x00172098
MOV R13,RAX
MOV RDI,qword ptr [RBX + 0x30]
MOV qword ptr [RBP + -0x98],RDI
MOV RAX,qword ptr [RBX + 0x38]
MOV qword ptr [RBP + -0x90],RAX
MOV RAX,qword ptr [R14 + 0x10]
MOV qword ptr [RBP + -0x88],RAX
CALL 0x00194879
MOV dword ptr [RBP + -0x80],EAX
MOV qword ptr [RBP + -0x7c],0x1
LEA RAX,[0x172af3]
MOV qword ptr [R13],RAX
LEA RAX,[0x172b5c]
MOV qword ptr [R13 + 0x8],RAX
LEA RAX,[RBP + -0x98]
MOV qword ptr [R13 + 0x18],RAX
MOV RAX,qword ptr [R14 + 0x10]
MOV qword ptr [R13 + 0x20],RAX
MOV qword ptr [R13 + 0x28],R12
MOV dword ptr [R13 + 0x30],R15D
MOV RAX,0x100000000
MOV qword ptr [R13 + 0x34],RAX
MOV RDI,R13
MOV RAX,qword ptr [RBP + -0x38]
CALL qword ptr [RAX + 0x8]
TEST EAX,EAX
JNZ 0x00172119
CMP dword ptr [RBP + -0x78],0x0
SETZ R15B
JMP 0x0017209b
LAB_00172098:
MOV R15B,0x1
LAB_0017209b:
LEA RDI,[RBP + -0x70]
CALL 0x001740ba
TEST EAX,EAX
JZ 0x001720b1
TEST R15B,R15B
JNZ 0x00171fde
LAB_001720b1:
TEST R15B,R15B
MOV R15,qword ptr [RBP + -0x50]
MOV R12,qword ptr [RBP + -0x48]
MOVSS XMM1,dword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x40]
MOVSS XMM2,dword ptr [0x001d900c]
MOV EDI,dword ptr [RBP + -0x2c]
MOV EAX,0x0
JNZ 0x0017210a
LAB_001720d7:
MOV RBX,qword ptr [RBX]
TEST RBX,RBX
JNZ 0x00171ee8
JMP 0x00172108
LAB_001720e5:
LEA EDX,[RCX + 0x1]
MOV dword ptr [RBX + 0x40],EDX
MOV EDI,0x8
CMP ECX,R8D
JNZ 0x00171f63
MOV EDI,dword ptr [RBX + 0x8]
JMP 0x00171f63
LAB_00172101:
MOV dword ptr [RBX + 0x44],0x1
LAB_00172108:
XOR EAX,EAX
LAB_0017210a:
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00172119:
MOV EAX,0x1
JMP 0x0017210a
|
int8 _ftb_climb_the_tree(long param_1,long *param_2,int4 *param_3)
{
uint uVar1;
int4 uVar2;
int8 *puVar3;
int iVar4;
long *plVar5;
long lVar6;
int iVar7;
ulong uVar8;
bool bVar9;
float fVar10;
long local_a0;
long local_98;
int8 local_90;
int4 local_88;
int8 local_84;
int4 local_78;
int4 uStack_74;
int4 uStack_70;
int4 uStack_6c;
int8 local_68;
long lStack_60;
int4 *local_58;
ulong local_50;
long local_48;
int1 *local_40;
float local_38;
uint local_34;
if ((ulong)*(uint *)(param_1 + 0x340) == 0xffffffff) {
local_40 = ft_default_parser;
}
else {
local_40 = *(int1 **)
(*(long *)(**(long **)(param_1 + 8) + 0x218) + 0x38 +
(ulong)*(uint *)(param_1 + 0x340) * 0x70);
}
plVar5 = (long *)*param_2;
if (plVar5 != (long *)0x0) {
uVar8 = (ulong)(param_3 != (int4 *)0x0);
local_38 = *(float *)(param_2 + 8);
local_34 = *(uint *)(param_2 + 1);
lVar6 = param_2[uVar8 + 2];
fVar10 = DAT_001d900c;
local_58 = param_3;
local_50 = uVar8;
local_48 = lVar6;
do {
iVar7 = 0;
if (param_3 == (int4 *)0x0) {
iVar7 = *(int *)((long)plVar5 + 0x4c);
}
uVar1 = *(uint *)(plVar5 + 9);
if (plVar5[uVar8 + 2] == lVar6) {
if (*(int *)((long)plVar5 + 0x44) != 0) {
return 0;
}
}
else {
*(int4 *)((long)plVar5 + 0x2c) = 0;
plVar5[8] = 0;
plVar5[uVar8 + 2] = lVar6;
}
iVar7 = uVar1 - iVar7;
if ((local_34 & 2) == 0) {
if ((local_34 & 4) != 0) {
*(int4 *)((long)plVar5 + 0x44) = 1;
return 0;
}
if (uVar1 != 0) {
local_38 = local_38 / fVar10;
}
*(float *)((long)plVar5 + 0x2c) = *(float *)((long)plVar5 + 0x2c) + local_38;
iVar4 = (int)plVar5[8];
if (iVar4 < iVar7) {
return 0;
}
if ((local_34 & 8) == 0) {
*(int *)(plVar5 + 8) = iVar4 + 1;
local_34 = 8;
if (iVar4 == iVar7) {
local_34 = *(uint *)(plVar5 + 1);
}
}
local_38 = local_38 * *(float *)(plVar5 + 5);
}
else {
local_38 = local_38 / (float)uVar1 + *(float *)((long)plVar5 + 0x2c);
*(float *)((long)plVar5 + 0x2c) = local_38;
iVar4 = (int)plVar5[8] + 1;
*(int *)(plVar5 + 8) = iVar4;
if (iVar4 != iVar7) {
return 0;
}
local_34 = *(uint *)(plVar5 + 1);
local_38 = local_38 * *(float *)(plVar5 + 5);
if ((param_3 != (int4 *)0x0) && (plVar5[6] != 0)) {
local_78 = *param_3;
uStack_74 = param_3[1];
uStack_70 = param_3[2];
uStack_6c = param_3[3];
local_68 = *(int8 *)(param_3 + 4);
lStack_60 = *(long *)(param_3 + 6);
do {
iVar7 = _mi_ft_segiterator(&local_78);
if (iVar7 == 0) {
return 0;
}
while (lVar6 = lStack_60, uVar2 = uStack_74, lStack_60 != 0) {
puVar3 = (int8 *)
ftparser_call_initializer
(*(int8 *)(param_1 + 8),*(int4 *)(param_1 + 0x340),1);
if (puVar3 == (int8 *)0x0) {
bVar9 = true;
}
else {
local_a0 = plVar5[6];
local_98 = plVar5[7];
local_90 = *(int8 *)(param_1 + 0x10);
local_88 = list_length();
local_84 = 1;
*puVar3 = ftb_check_phrase_internal;
puVar3[1] = ftb_phrase_add_word;
puVar3[3] = &local_a0;
puVar3[4] = *(int8 *)(param_1 + 0x10);
puVar3[5] = lVar6;
*(int4 *)(puVar3 + 6) = uVar2;
*(int8 *)((long)puVar3 + 0x34) = 0x100000000;
iVar7 = (**(code **)(local_40 + 8))(puVar3);
if (iVar7 != 0) {
return 1;
}
bVar9 = local_84._4_4_ == 0;
}
iVar7 = _mi_ft_segiterator(&local_78);
if ((iVar7 == 0) || (!bVar9)) {
lVar6 = local_48;
uVar8 = local_50;
param_3 = local_58;
fVar10 = DAT_001d900c;
if (bVar9) {
return 0;
}
goto LAB_001720d7;
}
}
} while( true );
}
}
LAB_001720d7:
plVar5 = (long *)*plVar5;
} while (plVar5 != (long *)0x0);
}
return 0;
}
| |
49,797 | testing::internal::FilePath::FileOrDirectoryExists() const | seiftnesse[P]memoryallocator/build_O0/_deps/googletest-src/googletest/src/gtest-filepath.cc | bool FilePath::FileOrDirectoryExists() const {
#if GTEST_OS_WINDOWS_MOBILE
LPCWSTR unicode = String::AnsiToUtf16(pathname_.c_str());
const DWORD attributes = GetFileAttributes(unicode);
delete[] unicode;
return attributes != kInvalidFileAttributes;
#else
posix::StatStruct file_stat{};
return posix::Stat(pathname_.c_str(), &file_stat) == 0;
#endif // GTEST_OS_WINDOWS_MOBILE
} | O0 | cpp | testing::internal::FilePath::FileOrDirectoryExists() const:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xa0(%rbp)
leaq -0x98(%rbp), %rdi
xorl %esi, %esi
movl $0x90, %edx
callq 0xb370
movq -0xa0(%rbp), %rdi
callq 0xb280
movq %rax, %rdi
leaq -0x98(%rbp), %rsi
callq 0x4b980
cmpl $0x0, %eax
sete %al
andb $0x1, %al
addq $0xa0, %rsp
popq %rbp
retq
nopl (%rax)
| _ZNK7testing8internal8FilePath21FileOrDirectoryExistsEv:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_A0], rax
lea rdi, [rbp+var_98]
xor esi, esi
mov edx, 90h
call _memset
mov rdi, [rbp+var_A0]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov rdi, rax
lea rsi, [rbp+var_98]
call _ZN7testing8internal5posix4StatEPKcP4stat; testing::internal::posix::Stat(char const*,stat *)
cmp eax, 0
setz al
and al, 1
add rsp, 0A0h
pop rbp
retn
| bool testing::internal::FilePath::FileOrDirectoryExists(testing::internal::FilePath *this)
{
long long v1; // rax
_BYTE v3[144]; // [rsp+8h] [rbp-98h] BYREF
testing::internal::FilePath *v4; // [rsp+98h] [rbp-8h]
v4 = this;
memset(v3, 0LL, sizeof(v3));
v1 = std::string::c_str(this);
return (unsigned int)testing::internal::posix::Stat(v1, v3) == 0;
}
| FileOrDirectoryExists:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0xa0],RAX
LEA RDI,[RBP + -0x98]
XOR ESI,ESI
MOV EDX,0x90
CALL 0x0010b370
MOV RDI,qword ptr [RBP + -0xa0]
CALL 0x0010b280
MOV RDI,RAX
LEA RSI,[RBP + -0x98]
CALL 0x0014b980
CMP EAX,0x0
SETZ AL
AND AL,0x1
ADD RSP,0xa0
POP RBP
RET
|
/* testing::internal::FilePath::FileOrDirectoryExists() const */
bool __thiscall testing::internal::FilePath::FileOrDirectoryExists(FilePath *this)
{
int iVar1;
char *pcVar2;
stat local_a0;
FilePath *local_10;
local_10 = this;
memset(&local_a0,0,0x90);
pcVar2 = (char *)std::__cxx11::string::c_str();
iVar1 = posix::Stat(pcVar2,&local_a0);
return iVar1 == 0;
}
| |
49,798 | JS_SetUncatchableError | bluesky950520[P]quickjs/quickjs.c | void JS_SetUncatchableError(JSContext *ctx, JSValue val, BOOL flag)
{
JSObject *p;
if (JS_VALUE_GET_TAG(val) != JS_TAG_OBJECT)
return;
p = JS_VALUE_GET_OBJ(val);
if (p->class_id == JS_CLASS_ERROR)
p->is_uncatchable_error = flag;
} | O0 | c | JS_SetUncatchableError:
movq %rsi, -0x10(%rsp)
movq %rdx, -0x8(%rsp)
movq %rdi, -0x18(%rsp)
movl %ecx, -0x1c(%rsp)
movq -0x8(%rsp), %rax
cmpl $-0x1, %eax
je 0x3e56f
jmp 0x3e5a3
movq -0x10(%rsp), %rax
movq %rax, -0x28(%rsp)
movq -0x28(%rsp), %rax
movzwl 0x6(%rax), %eax
cmpl $0x3, %eax
jne 0x3e5a3
movl -0x1c(%rsp), %eax
movb %al, %dl
movq -0x28(%rsp), %rax
movb 0x5(%rax), %cl
andb $0x1, %dl
shlb $0x5, %dl
andb $-0x21, %cl
orb %dl, %cl
movb %cl, 0x5(%rax)
retq
nopw %cs:(%rax,%rax)
| JS_SetUncatchableError:
mov [rsp+var_10], rsi
mov [rsp+var_8], rdx
mov [rsp+var_18], rdi
mov [rsp+var_1C], ecx
mov rax, [rsp+var_8]
cmp eax, 0FFFFFFFFh
jz short loc_3E56F
jmp short locret_3E5A3
loc_3E56F:
mov rax, [rsp+var_10]
mov [rsp+var_28], rax
mov rax, [rsp+var_28]
movzx eax, word ptr [rax+6]
cmp eax, 3
jnz short locret_3E5A3
mov eax, [rsp+var_1C]
mov dl, al
mov rax, [rsp+var_28]
mov cl, [rax+5]
and dl, 1
shl dl, 5
and cl, 0DFh
or cl, dl
mov [rax+5], cl
locret_3E5A3:
retn
| long long JS_SetUncatchableError(long long a1, long long a2, long long a3, char a4)
{
long long result; // rax
result = a3;
if ( (_DWORD)a3 == -1 )
{
result = *(unsigned __int16 *)(a2 + 6);
if ( (_DWORD)result == 3 )
{
result = a2;
*(_BYTE *)(a2 + 5) = (32 * (a4 & 1)) | *(_BYTE *)(a2 + 5) & 0xDF;
}
}
return result;
}
| JS_SetUncatchableError:
MOV qword ptr [RSP + -0x10],RSI
MOV qword ptr [RSP + -0x8],RDX
MOV qword ptr [RSP + -0x18],RDI
MOV dword ptr [RSP + -0x1c],ECX
MOV RAX,qword ptr [RSP + -0x8]
CMP EAX,-0x1
JZ 0x0013e56f
JMP 0x0013e5a3
LAB_0013e56f:
MOV RAX,qword ptr [RSP + -0x10]
MOV qword ptr [RSP + -0x28],RAX
MOV RAX,qword ptr [RSP + -0x28]
MOVZX EAX,word ptr [RAX + 0x6]
CMP EAX,0x3
JNZ 0x0013e5a3
MOV EAX,dword ptr [RSP + -0x1c]
MOV DL,AL
MOV RAX,qword ptr [RSP + -0x28]
MOV CL,byte ptr [RAX + 0x5]
AND DL,0x1
SHL DL,0x5
AND CL,0xdf
OR CL,DL
MOV byte ptr [RAX + 0x5],CL
LAB_0013e5a3:
RET
|
void JS_SetUncatchableError(int8 param_1,long param_2,int param_3,byte param_4)
{
if ((param_3 == -1) && (*(short *)(param_2 + 6) == 3)) {
*(byte *)(param_2 + 5) = *(byte *)(param_2 + 5) & 0xdf | (param_4 & 1) << 5;
}
return;
}
| |
49,799 | JS_SetUncatchableError | bluesky950520[P]quickjs/quickjs.c | void JS_SetUncatchableError(JSContext *ctx, JSValue val, BOOL flag)
{
JSObject *p;
if (JS_VALUE_GET_TAG(val) != JS_TAG_OBJECT)
return;
p = JS_VALUE_GET_OBJ(val);
if (p->class_id == JS_CLASS_ERROR)
p->is_uncatchable_error = flag;
} | O1 | c | JS_SetUncatchableError:
movq %rsi, -0x8(%rsp)
cmpl $-0x1, %edx
jne 0x2b5a1
movq -0x8(%rsp), %rax
cmpw $0x3, 0x6(%rax)
jne 0x2b5a1
movb 0x5(%rax), %dl
shlb $0x5, %cl
andb $0x20, %cl
andb $-0x21, %dl
orb %cl, %dl
movb %dl, 0x5(%rax)
retq
| JS_SetUncatchableError:
mov [rsp+var_8], rsi
cmp edx, 0FFFFFFFFh
jnz short locret_2B5A1
mov rax, [rsp+var_8]
cmp word ptr [rax+6], 3
jnz short locret_2B5A1
mov dl, [rax+5]
shl cl, 5
and cl, 20h
and dl, 0DFh
or dl, cl
mov [rax+5], dl
locret_2B5A1:
retn
| long long JS_SetUncatchableError(long long a1, long long a2, int a3, char a4)
{
long long result; // rax
if ( a3 == -1 )
{
result = a2;
if ( *(_WORD *)(a2 + 6) == 3 )
*(_BYTE *)(a2 + 5) = (32 * a4) & 0x20 | *(_BYTE *)(a2 + 5) & 0xDF;
}
return result;
}
| JS_SetUncatchableError:
MOV qword ptr [RSP + -0x8],RSI
CMP EDX,-0x1
JNZ 0x0012b5a1
MOV RAX,qword ptr [RSP + -0x8]
CMP word ptr [RAX + 0x6],0x3
JNZ 0x0012b5a1
MOV DL,byte ptr [RAX + 0x5]
SHL CL,0x5
AND CL,0x20
AND DL,0xdf
OR DL,CL
MOV byte ptr [RAX + 0x5],DL
LAB_0012b5a1:
RET
|
void JS_SetUncatchableError(int8 param_1,long param_2,int param_3,byte param_4)
{
if ((param_3 == -1) && (*(short *)(param_2 + 6) == 3)) {
*(byte *)(param_2 + 5) = *(byte *)(param_2 + 5) & 0xdf | (param_4 & 1) << 5;
}
return;
}
|
Subsets and Splits
C++ Functions With Standard Library Dependencies
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ Standard Library Function Analysis
Filters C++ code examples that use standard library containers and types, providing useful insights into common programming patterns and data structures in the dataset.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.