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
|
|---|---|---|---|---|---|---|---|---|---|---|---|
59,500
|
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char>(char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char&&)
|
monkey531[P]llama/common/json.hpp
|
inline OutStringType concat(Args && ... args)
{
OutStringType str;
str.reserve(concat_length(args...));
concat_into(str, std::forward<Args>(args)...);
return str;
}
|
O3
|
cpp
|
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char>(char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char&&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %r13
movq %r13, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsi, %rdi
callq 0x1b3e0
movq %rax, %r12
movq (%r14), %rdi
callq 0x1b3e0
addq %rax, %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1bd60
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1c0d0
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x1c0d0
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0xc5ebd
movq (%r13), %rsi
incq %rsi
callq 0x1b8b0
movq %r14, %rdi
callq 0x1bf70
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA28_KcPS9_EEET_DpOT0_:
push r15
push r14
push r13
push r12
push rbx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
lea r13, [rdi+10h]
mov [rdi], r13
mov qword ptr [rdi+8], 0
mov byte ptr [rdi+10h], 0
mov rdi, rsi
call _strlen
mov r12, rax
mov rdi, [r14]
call _strlen
add r12, rax
mov rdi, rbx
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r14]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rax, rbx
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, r13
jz short loc_C5EBD
mov rsi, [r13+0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C5EBD:
mov rdi, r14
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[28],char const*>(
long long a1,
long long a2,
_QWORD *a3)
{
long long v4; // r12
long long v5; // rax
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
v4 = strlen(a2);
v5 = strlen(*a3);
std::string::reserve(a1, v5 + v4);
std::string::append(a1, a2);
std::string::append(a1, *a3);
return a1;
}
|
concat<std::__cxx11::string,char_const(&)[28],char_const*>:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R14,RDX
MOV R15,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
MOV RDI,RSI
CALL 0x0011b3e0
MOV R12,RAX
MOV RDI,qword ptr [R14]
CALL 0x0011b3e0
ADD R12,RAX
LAB_001c5e78:
MOV RDI,RBX
MOV RSI,R12
CALL 0x0011bd60
MOV RDI,RBX
MOV RSI,R15
CALL 0x0011c0d0
MOV RSI,qword ptr [R14]
MOV RDI,RBX
CALL 0x0011c0d0
LAB_001c5e99:
MOV RAX,RBX
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const
(&) [28], char const*>(char const (&) [28], char const*&&) */
detail * __thiscall
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[28],char_const*>
(detail *this,char *param_1,char **param_2)
{
*(detail **)this = this + 0x10;
*(int8 *)(this + 8) = 0;
this[0x10] = (detail)0x0;
strlen(param_1);
strlen(*param_2);
/* try { // try from 001c5e78 to 001c5e98 has its CatchHandler @ 001c5ea6 */
std::__cxx11::string::reserve((ulong)this);
std::__cxx11::string::append((char *)this);
std::__cxx11::string::append((char *)this);
return this;
}
|
|
59,501
|
hi0bits
|
eloqsql/strings/dtoa.c
|
static int hi0bits(register ULong x)
{
register int k= 0;
if (!(x & 0xffff0000))
{
k= 16;
x<<= 16;
}
if (!(x & 0xff000000))
{
k+= 8;
x<<= 8;
}
if (!(x & 0xf0000000))
{
k+= 4;
x<<= 4;
}
if (!(x & 0xc0000000))
{
k+= 2;
x<<= 2;
}
if (!(x & 0x80000000))
{
k++;
if (!(x & 0x40000000))
return 32;
}
return k;
}
|
O3
|
c
|
hi0bits:
pushq %rbp
movq %rsp, %rbp
movl %edi, %eax
shll $0x10, %eax
xorl %ecx, %ecx
cmpl $0x10000, %edi # imm = 0x10000
setb %cl
cmovael %edi, %eax
shll $0x4, %ecx
movl %eax, %edx
shll $0x8, %edx
cmpl $0x1000000, %eax # imm = 0x1000000
cmovael %eax, %edx
leal 0x8(%rcx), %eax
cmovael %ecx, %eax
movl %edx, %ecx
shll $0x4, %ecx
cmpl $0x10000000, %edx # imm = 0x10000000
cmovael %edx, %ecx
leal 0x4(%rax), %edx
cmovael %eax, %edx
leal (,%rcx,4), %esi
movl $0x40000000, %eax # imm = 0x40000000
cmpl %eax, %ecx
cmovael %ecx, %esi
leal 0x2(%rdx), %ecx
cmovael %edx, %ecx
leal 0x1(%rcx), %edx
cmpl %eax, %esi
movl $0x20, %eax
cmovael %edx, %eax
testl %esi, %esi
cmovsl %ecx, %eax
popq %rbp
retq
|
hi0bits:
push rbp
mov rbp, rsp
mov eax, edi
shl eax, 10h
xor ecx, ecx
cmp edi, offset stru_10000
setb cl
cmovnb eax, edi
shl ecx, 4
mov edx, eax
shl edx, 8
cmp eax, 1000000h
cmovnb edx, eax
lea eax, [rcx+8]
cmovnb eax, ecx
mov ecx, edx
shl ecx, 4
cmp edx, 10000000h
cmovnb ecx, edx
lea edx, [rax+4]
cmovnb edx, eax
lea esi, ds:0[rcx*4]
mov eax, 40000000h
cmp ecx, eax
cmovnb esi, ecx
lea ecx, [rdx+2]
cmovnb ecx, edx
lea edx, [rcx+1]
cmp esi, eax
mov eax, 20h ; ' '
cmovnb eax, edx
test esi, esi
cmovs eax, ecx
pop rbp
retn
|
long long hi0bits(unsigned int a1)
{
unsigned int v1; // eax
unsigned int v2; // edx
bool v3; // cf
int v4; // eax
unsigned int v5; // ecx
bool v6; // cf
int v7; // edx
int v8; // esi
bool v9; // cf
unsigned int v10; // ecx
long long result; // rax
v1 = a1 << 16;
if ( a1 >= (unsigned int)&stru_10000 )
v1 = a1;
v2 = v1 << 8;
v3 = v1 < 0x1000000;
if ( v1 >= 0x1000000 )
v2 = v1;
v4 = 16 * (a1 < (unsigned int)&stru_10000) + 8;
if ( !v3 )
v4 = 16 * (a1 < (unsigned int)&stru_10000);
v5 = 16 * v2;
v6 = v2 < 0x10000000;
if ( v2 >= 0x10000000 )
v5 = v2;
v7 = v4 + 4;
if ( !v6 )
v7 = v4;
v8 = 4 * v5;
v9 = v5 < 0x40000000;
if ( v5 >= 0x40000000 )
v8 = v5;
v10 = v7 + 2;
if ( !v9 )
v10 = v7;
result = 32LL;
if ( (unsigned int)v8 >= 0x40000000 )
result = v10 + 1;
if ( v8 < 0 )
return v10;
return result;
}
|
hi0bits:
PUSH RBP
MOV RBP,RSP
MOV EAX,EDI
SHL EAX,0x10
XOR ECX,ECX
CMP EDI,0x10000
SETC CL
CMOVNC EAX,EDI
SHL ECX,0x4
MOV EDX,EAX
SHL EDX,0x8
CMP EAX,0x1000000
CMOVNC EDX,EAX
LEA EAX,[RCX + 0x8]
CMOVNC EAX,ECX
MOV ECX,EDX
SHL ECX,0x4
CMP EDX,0x10000000
CMOVNC ECX,EDX
LEA EDX,[RAX + 0x4]
CMOVNC EDX,EAX
LEA ESI,[RCX*0x4]
MOV EAX,0x40000000
CMP ECX,EAX
CMOVNC ESI,ECX
LEA ECX,[RDX + 0x2]
CMOVNC ECX,EDX
LEA EDX,[RCX + 0x1]
CMP ESI,EAX
MOV EAX,0x20
CMOVNC EAX,EDX
TEST ESI,ESI
CMOVS EAX,ECX
POP RBP
RET
|
int hi0bits(uint param_1)
{
uint uVar1;
uint uVar2;
int iVar3;
int iVar4;
uVar2 = param_1 << 0x10;
if (param_1 >= 0x10000) {
uVar2 = param_1;
}
iVar4 = (uint)(param_1 < 0x10000) * 0x10;
uVar1 = uVar2 << 8;
if (0xffffff < uVar2) {
uVar1 = uVar2;
}
iVar3 = iVar4 + 8;
if (0xffffff < uVar2) {
iVar3 = iVar4;
}
uVar2 = uVar1 << 4;
if (0xfffffff < uVar1) {
uVar2 = uVar1;
}
iVar4 = iVar3 + 4;
if (0xfffffff < uVar1) {
iVar4 = iVar3;
}
uVar1 = uVar2 * 4;
if (0x3fffffff < uVar2) {
uVar1 = uVar2;
}
iVar3 = iVar4 + 2;
if (0x3fffffff < uVar2) {
iVar3 = iVar4;
}
iVar4 = 0x20;
if (0x3fffffff < uVar1) {
iVar4 = iVar3 + 1;
}
if ((int)uVar1 < 0) {
iVar4 = iVar3;
}
return iVar4;
}
|
|
59,502
|
my_write
|
eloqsql/mysys/my_write.c
|
size_t my_write(File Filedes, const uchar *Buffer, size_t Count, myf MyFlags)
{
size_t writtenbytes, written;
uint errors;
DBUG_ENTER("my_write");
DBUG_PRINT("my",("fd: %d Buffer: %p Count: %lu MyFlags: %lu",
Filedes, Buffer, (ulong) Count, MyFlags));
errors= 0; written= 0;
if (!(MyFlags & (MY_WME | MY_FAE | MY_FNABP)))
MyFlags|= my_global_flags;
/* The behavior of write(fd, buf, 0) is not portable */
if (unlikely(!Count))
DBUG_RETURN(0);
for (;;)
{
#ifdef _WIN32
if(Filedes < 0)
{
my_errno= errno= EBADF;
DBUG_RETURN((size_t)-1);
}
writtenbytes= my_win_write(Filedes, Buffer, Count);
#else
writtenbytes= write(Filedes, Buffer, Count);
#endif
/**
To simulate the write error set the errno = error code
and the number pf written bytes to -1.
*/
DBUG_EXECUTE_IF ("simulate_file_write_error",
if (!errors) {
errno= ENOSPC;
writtenbytes= (size_t) -1;
});
if (writtenbytes == Count)
break;
if (writtenbytes != (size_t) -1)
{ /* Safeguard */
written+= writtenbytes;
Buffer+= writtenbytes;
Count-= writtenbytes;
}
my_errno= errno;
DBUG_PRINT("error",("Write only %ld bytes, error: %d",
(long) writtenbytes, my_errno));
#ifndef NO_BACKGROUND
if (my_thread_var->abort)
MyFlags&= ~ MY_WAIT_IF_FULL; /* End if aborted by user */
if ((my_errno == ENOSPC || my_errno == EDQUOT) &&
(MyFlags & MY_WAIT_IF_FULL))
{
wait_for_free_space(my_filename(Filedes), errors);
errors++;
continue;
}
if ((writtenbytes == 0 || writtenbytes == (size_t) -1))
{
if (my_errno == EINTR)
{
DBUG_PRINT("debug", ("my_write() was interrupted and returned %ld",
(long) writtenbytes));
continue; /* Interrupted */
}
if (!writtenbytes && !errors++) /* Retry once */
{
/* We may come here if the file quota is exeeded */
errno= EFBIG; /* Assume this is the error */
continue;
}
}
else
continue; /* Retry */
#endif
/* Don't give a warning if it's ok that we only write part of the data */
if (MyFlags & (MY_NABP | MY_FNABP))
{
if (MyFlags & (MY_WME | MY_FAE | MY_FNABP))
{
my_error(EE_WRITE, MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))),
my_filename(Filedes),my_errno);
}
DBUG_RETURN(MY_FILE_ERROR); /* Error on read */
}
break; /* Return bytes written */
}
if (MyFlags & (MY_NABP | MY_FNABP))
DBUG_RETURN(0); /* Want only errors */
DBUG_RETURN(writtenbytes+written);
}
|
O3
|
c
|
my_write:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movl %edi, %r12d
xorl %ebx, %ebx
movl $0x0, %r13d
testb $0x1a, %cl
jne 0x2f032
leaq 0xbd9199(%rip), %rax # 0xc081c8
movq (%rax), %r13
testq %r15, %r15
je 0x2f176
orq %rcx, %r13
movl %r12d, %edi
movq %rsi, -0x40(%rbp)
movq %r15, %rdx
callq 0x29800
cmpq %r15, %rax
jne 0x2f068
movq %r15, %rcx
xorl %ebx, %ebx
testb $0x6, %r13b
je 0x2f173
xorl %ebx, %ebx
jmp 0x2f176
movq %rax, %r14
movq $0x0, -0x38(%rbp)
callq 0x297b0
movq %r15, %rcx
movq %rax, -0x48(%rbp)
xorl %ebx, %ebx
movq -0x40(%rbp), %r15
movl %r12d, -0x2c(%rbp)
movq %r13, %r12
movq %rbx, %rax
cmpq $-0x1, %r14
movl $0x0, %ebx
cmovneq %r14, %rbx
addq %rbx, %r15
subq %rbx, %rcx
movq %rcx, -0x40(%rbp)
addq %rax, %rbx
movq -0x48(%rbp), %rax
movl (%rax), %r13d
callq 0xa1a06
movl %r13d, (%rax)
callq 0xa1a06
movl %r12d, %r13d
andl $-0x21, %r13d
cmpl $0x0, 0xe0(%rax)
cmoveq %r12, %r13
callq 0xa1a06
cmpl $0x1c, (%rax)
jne 0x2f0e5
testb $0x20, %r13b
movl -0x2c(%rbp), %r12d
je 0x2f0fb
jmp 0x2f135
callq 0xa1a06
cmpl $0x7a, (%rax)
movl -0x2c(%rbp), %r12d
jne 0x2f0fb
movl %r13d, %eax
andl $0x20, %eax
jne 0x2f135
leaq 0x1(%r14), %rax
cmpq $0x1, %rax
ja 0x2f10f
callq 0xa1a06
cmpl $0x4, (%rax)
jne 0x2f155
movl %r12d, %edi
movq %r15, %rsi
movq -0x40(%rbp), %r14
movq %r14, %rdx
callq 0x29800
movq %r14, %rcx
movq %rax, %r14
cmpq %rcx, %rax
jne 0x2f089
jmp 0x2f057
movl %r12d, %edi
callq 0xa8ee4
movq %rax, %rdi
movq -0x38(%rbp), %r14
movl %r14d, %esi
callq 0xa8952
incl %r14d
movq %r14, -0x38(%rbp)
jmp 0x2f10f
testq %r14, %r14
jne 0x2f188
cmpl $0x0, -0x38(%rbp)
jne 0x2f188
movq -0x48(%rbp), %rax
movl $0x1b, (%rax)
pushq $0x1
popq %rax
movq %rax, -0x38(%rbp)
jmp 0x2f10f
addq %rcx, %rbx
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb $0x6, %r13b
je 0x2f1c6
pushq $-0x1
popq %rbx
testb $0x1a, %r13b
je 0x2f176
andl $0x440, %r13d # imm = 0x440
orq $0x4, %r13
movl %r12d, %edi
callq 0xa8ee4
movq %rax, %r14
callq 0xa1a06
movl (%rax), %ecx
pushq $0x3
popq %rdi
movq %r13, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x9e0bb
jmp 0x2f176
movq %r14, %rcx
jmp 0x2f057
|
my_write:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r15, rdx
mov r12d, edi
xor ebx, ebx
mov r13d, 0
test cl, 1Ah
jnz short loc_2F032
lea rax, my_global_flags
mov r13, [rax]
loc_2F032:
test r15, r15
jz loc_2F176
or r13, rcx
mov edi, r12d
mov [rbp+var_40], rsi
mov rdx, r15
call _write
cmp rax, r15
jnz short loc_2F068
mov rcx, r15
xor ebx, ebx
loc_2F057:
test r13b, 6
jz loc_2F173
xor ebx, ebx
jmp loc_2F176
loc_2F068:
mov r14, rax
mov [rbp+var_38], 0
call ___errno_location
mov rcx, r15
mov [rbp+var_48], rax
xor ebx, ebx
mov r15, [rbp+var_40]
mov [rbp+var_2C], r12d
loc_2F089:
mov r12, r13
mov rax, rbx
cmp r14, 0FFFFFFFFFFFFFFFFh
mov ebx, 0
cmovnz rbx, r14
add r15, rbx
sub rcx, rbx
mov [rbp+var_40], rcx
add rbx, rax
mov rax, [rbp+var_48]
mov r13d, [rax]
call _my_thread_var
mov [rax], r13d
call _my_thread_var
mov r13d, r12d
and r13d, 0FFFFFFDFh
cmp dword ptr [rax+0E0h], 0
cmovz r13, r12
call _my_thread_var
cmp dword ptr [rax], 1Ch
jnz short loc_2F0E5
test r13b, 20h
mov r12d, [rbp+var_2C]
jz short loc_2F0FB
jmp short loc_2F135
loc_2F0E5:
call _my_thread_var
cmp dword ptr [rax], 7Ah ; 'z'
mov r12d, [rbp+var_2C]
jnz short loc_2F0FB
mov eax, r13d
and eax, 20h
jnz short loc_2F135
loc_2F0FB:
lea rax, [r14+1]
cmp rax, 1
ja short loc_2F10F
call _my_thread_var
cmp dword ptr [rax], 4
jnz short loc_2F155
loc_2F10F:
mov edi, r12d
mov rsi, r15
mov r14, [rbp+var_40]
mov rdx, r14
call _write
mov rcx, r14
mov r14, rax
cmp rax, rcx
jnz loc_2F089
jmp loc_2F057
loc_2F135:
mov edi, r12d
call my_filename
mov rdi, rax
mov r14, [rbp+var_38]
mov esi, r14d
call wait_for_free_space
inc r14d
mov [rbp+var_38], r14
jmp short loc_2F10F
loc_2F155:
test r14, r14
jnz short loc_2F188
cmp dword ptr [rbp+var_38], 0
jnz short loc_2F188
mov rax, [rbp+var_48]
mov dword ptr [rax], 1Bh
push 1
pop rax
mov [rbp+var_38], rax
jmp short loc_2F10F
loc_2F173:
add rbx, rcx
loc_2F176:
mov rax, rbx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_2F188:
test r13b, 6
jz short loc_2F1C6
push 0FFFFFFFFFFFFFFFFh
pop rbx
test r13b, 1Ah
jz short loc_2F176
and r13d, 440h
or r13, 4
mov edi, r12d
call my_filename
mov r14, rax
call _my_thread_var
mov ecx, [rax]
push 3
pop rdi
mov rsi, r13
mov rdx, r14
xor eax, eax
call my_error
jmp short loc_2F176
loc_2F1C6:
mov rcx, r14
jmp loc_2F057
|
long long my_write(unsigned int a1, long long a2, long long a3, long long a4)
{
long long v5; // rbx
long long v6; // r13
long long v7; // r13
long long v8; // rax
long long v9; // rcx
long long v10; // rbx
long long v11; // r14
long long v12; // rax
long long v13; // r15
long long v14; // r12
long long v15; // rax
long long v16; // rbx
int v17; // r13d
unsigned int v18; // r12d
long long v19; // rax
long long v20; // rax
int v22; // r14d
_DWORD *v23; // rax
int v24; // r8d
int v25; // r9d
int *v26; // [rsp+8h] [rbp-48h]
long long v27; // [rsp+10h] [rbp-40h]
unsigned int v28; // [rsp+18h] [rbp-38h]
v5 = 0LL;
v6 = 0LL;
if ( (a4 & 0x1A) == 0 )
v6 = my_global_flags;
if ( a3 )
{
v7 = a4 | v6;
v8 = write(a1, a2, a3);
if ( v8 == a3 )
{
v9 = a3;
v10 = 0LL;
goto LABEL_6;
}
v11 = v8;
v28 = 0;
v12 = __errno_location(a1);
v9 = a3;
v26 = (int *)v12;
v10 = 0LL;
v13 = a2;
while ( 1 )
{
v14 = v7;
v15 = v10;
v16 = 0LL;
if ( v11 != -1 )
v16 = v11;
v13 += v16;
v27 = v9 - v16;
v10 = v15 + v16;
v17 = *v26;
*(_DWORD *)my_thread_var() = v17;
v7 = (unsigned int)v14 & 0xFFFFFFDF;
if ( !*(_DWORD *)(my_thread_var() + 224) )
v7 = v14;
if ( *(_DWORD *)my_thread_var() == 28 )
{
v18 = a1;
if ( (v7 & 0x20) != 0 )
goto LABEL_22;
}
else
{
v18 = a1;
if ( *(_DWORD *)my_thread_var() == 122 && (v7 & 0x20) != 0 )
{
LABEL_22:
v20 = my_filename(v18);
wait_for_free_space(v20, v28++);
goto LABEL_20;
}
}
if ( (unsigned long long)(v11 + 1) <= 1 && *(_DWORD *)my_thread_var() != 4 )
{
if ( v11 || v28 )
{
if ( (v7 & 6) != 0 )
{
v5 = -1LL;
if ( (v7 & 0x1A) != 0 )
{
v22 = my_filename(v18);
v23 = (_DWORD *)my_thread_var();
my_error(3, v7 & 0x440 | 4, v22, *v23, v24, v25);
}
return v5;
}
v9 = v11;
LABEL_6:
if ( (v7 & 6) != 0 )
return 0LL;
else
return v9 + v10;
}
*v26 = 27;
v28 = 1;
}
LABEL_20:
v19 = write(v18, v13, v27);
v9 = v27;
v11 = v19;
if ( v19 == v27 )
goto LABEL_6;
}
}
return v5;
}
|
my_write:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R15,RDX
MOV R12D,EDI
XOR EBX,EBX
MOV R13D,0x0
TEST CL,0x1a
JNZ 0x0012f032
LEA RAX,[0xd081c8]
MOV R13,qword ptr [RAX]
LAB_0012f032:
TEST R15,R15
JZ 0x0012f176
OR R13,RCX
MOV EDI,R12D
MOV qword ptr [RBP + -0x40],RSI
MOV RDX,R15
CALL 0x00129800
CMP RAX,R15
JNZ 0x0012f068
MOV RCX,R15
XOR EBX,EBX
LAB_0012f057:
TEST R13B,0x6
JZ 0x0012f173
XOR EBX,EBX
JMP 0x0012f176
LAB_0012f068:
MOV R14,RAX
MOV qword ptr [RBP + -0x38],0x0
CALL 0x001297b0
MOV RCX,R15
MOV qword ptr [RBP + -0x48],RAX
XOR EBX,EBX
MOV R15,qword ptr [RBP + -0x40]
MOV dword ptr [RBP + -0x2c],R12D
LAB_0012f089:
MOV R12,R13
MOV RAX,RBX
CMP R14,-0x1
MOV EBX,0x0
CMOVNZ RBX,R14
ADD R15,RBX
SUB RCX,RBX
MOV qword ptr [RBP + -0x40],RCX
ADD RBX,RAX
MOV RAX,qword ptr [RBP + -0x48]
MOV R13D,dword ptr [RAX]
CALL 0x001a1a06
MOV dword ptr [RAX],R13D
CALL 0x001a1a06
MOV R13D,R12D
AND R13D,0xffffffdf
CMP dword ptr [RAX + 0xe0],0x0
CMOVZ R13,R12
CALL 0x001a1a06
CMP dword ptr [RAX],0x1c
JNZ 0x0012f0e5
TEST R13B,0x20
MOV R12D,dword ptr [RBP + -0x2c]
JZ 0x0012f0fb
JMP 0x0012f135
LAB_0012f0e5:
CALL 0x001a1a06
CMP dword ptr [RAX],0x7a
MOV R12D,dword ptr [RBP + -0x2c]
JNZ 0x0012f0fb
MOV EAX,R13D
AND EAX,0x20
JNZ 0x0012f135
LAB_0012f0fb:
LEA RAX,[R14 + 0x1]
CMP RAX,0x1
JA 0x0012f10f
CALL 0x001a1a06
CMP dword ptr [RAX],0x4
JNZ 0x0012f155
LAB_0012f10f:
MOV EDI,R12D
MOV RSI,R15
MOV R14,qword ptr [RBP + -0x40]
MOV RDX,R14
CALL 0x00129800
MOV RCX,R14
MOV R14,RAX
CMP RAX,RCX
JNZ 0x0012f089
JMP 0x0012f057
LAB_0012f135:
MOV EDI,R12D
CALL 0x001a8ee4
MOV RDI,RAX
MOV R14,qword ptr [RBP + -0x38]
MOV ESI,R14D
CALL 0x001a8952
INC R14D
MOV qword ptr [RBP + -0x38],R14
JMP 0x0012f10f
LAB_0012f155:
TEST R14,R14
JNZ 0x0012f188
CMP dword ptr [RBP + -0x38],0x0
JNZ 0x0012f188
MOV RAX,qword ptr [RBP + -0x48]
MOV dword ptr [RAX],0x1b
PUSH 0x1
POP RAX
MOV qword ptr [RBP + -0x38],RAX
JMP 0x0012f10f
LAB_0012f173:
ADD RBX,RCX
LAB_0012f176:
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0012f188:
TEST R13B,0x6
JZ 0x0012f1c6
PUSH -0x1
POP RBX
TEST R13B,0x1a
JZ 0x0012f176
AND R13D,0x440
OR R13,0x4
MOV EDI,R12D
CALL 0x001a8ee4
MOV R14,RAX
CALL 0x001a1a06
MOV ECX,dword ptr [RAX]
PUSH 0x3
POP RDI
MOV RSI,R13
MOV RDX,R14
XOR EAX,EAX
CALL 0x0019e0bb
JMP 0x0012f176
LAB_0012f1c6:
MOV RCX,R14
JMP 0x0012f057
|
long my_write(int param_1,void *param_2,size_t param_3,ulong param_4)
{
int iVar1;
size_t sVar2;
int *piVar3;
int *piVar4;
long lVar5;
int8 uVar6;
int4 *puVar7;
size_t sVar8;
long lVar9;
ulong uVar10;
ulong uVar11;
int iVar12;
lVar9 = 0;
uVar10 = 0;
if ((param_4 & 0x1a) == 0) {
uVar10 = my_global_flags;
}
if (param_3 != 0) {
uVar10 = uVar10 | param_4;
sVar2 = write(param_1,param_2,param_3);
if (sVar2 == param_3) {
lVar9 = 0;
}
else {
iVar12 = 0;
piVar3 = __errno_location();
lVar9 = 0;
uVar11 = uVar10;
do {
sVar8 = 0;
if (sVar2 != 0xffffffffffffffff) {
sVar8 = sVar2;
}
param_2 = (void *)((long)param_2 + sVar8);
param_3 = param_3 - sVar8;
lVar9 = sVar8 + lVar9;
iVar1 = *piVar3;
piVar4 = (int *)_my_thread_var();
*piVar4 = iVar1;
lVar5 = _my_thread_var();
uVar10 = (ulong)((uint)uVar11 & 0xffffffdf);
if (*(int *)(lVar5 + 0xe0) == 0) {
uVar10 = uVar11;
}
piVar4 = (int *)_my_thread_var();
if (*piVar4 == 0x1c) {
if ((uVar10 & 0x20) != 0) goto LAB_0012f135;
LAB_0012f0fb:
if ((sVar2 + 1 < 2) && (piVar4 = (int *)_my_thread_var(), *piVar4 != 4)) {
if ((sVar2 != 0) || (iVar12 != 0)) {
param_3 = sVar2;
if ((uVar10 & 6) != 0) {
if ((uVar10 & 0x1a) == 0) {
return -1;
}
uVar6 = my_filename(param_1);
puVar7 = (int4 *)_my_thread_var();
my_error(3,(uint)uVar10 & 0x440 | 4,uVar6,*puVar7);
return -1;
}
break;
}
*piVar3 = 0x1b;
iVar12 = 1;
}
}
else {
piVar4 = (int *)_my_thread_var();
if ((*piVar4 != 0x7a) || ((uVar10 & 0x20) == 0)) goto LAB_0012f0fb;
LAB_0012f135:
uVar6 = my_filename(param_1);
wait_for_free_space(uVar6,iVar12);
iVar12 = iVar12 + 1;
}
sVar2 = write(param_1,param_2,param_3);
uVar11 = uVar10;
} while (sVar2 != param_3);
}
if ((uVar10 & 6) == 0) {
lVar9 = lVar9 + param_3;
}
else {
lVar9 = 0;
}
}
return lVar9;
}
|
|
59,503
|
minja::Value::operator-(minja::Value const&) const
|
monkey531[P]llama/common/minja.hpp
|
Value operator-(const Value& rhs) const {
if (is_number_integer() && rhs.is_number_integer())
return get<int64_t>() - rhs.get<int64_t>();
else
return get<double>() - rhs.get<double>();
}
|
O3
|
cpp
|
minja::Value::operator-(minja::Value const&) const:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rdi, %rbx
movb 0x40(%rsi), %al
addb $-0x5, %al
cmpb $0x1, %al
ja 0x977fd
movb 0x40(%r14), %al
addb $-0x5, %al
cmpb $0x1, %al
ja 0x977fd
movq %rsi, %rdi
callq 0x86a8c
movq %rax, %r15
movq %r14, %rdi
callq 0x86a8c
subq %rax, %r15
leaq 0x40(%rbx), %r14
xorpd %xmm0, %xmm0
movupd %xmm0, (%rbx)
movupd %xmm0, 0x10(%rbx)
movupd %xmm0, 0x20(%rbx)
movupd %xmm0, 0x30(%rbx)
movupd %xmm0, 0x40(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x60ea6
jmp 0x97849
movq %rsi, %rdi
callq 0x86bd6
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
callq 0x86bd6
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
leaq 0x40(%rbx), %r14
xorpd %xmm0, %xmm0
movupd %xmm0, (%rbx)
movupd %xmm0, 0x10(%rbx)
movupd %xmm0, 0x20(%rbx)
movupd %xmm0, 0x30(%rbx)
movupd %xmm0, 0x40(%rbx)
movq %r14, %rdi
movapd %xmm1, %xmm0
callq 0x6046e
movq %r14, %rdi
movl $0x1, %esi
callq 0x59184
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
|
_ZNK5minja5ValuemiERKS0_:
push r15
push r14
push rbx
sub rsp, 10h
mov r14, rdx
mov rbx, rdi
mov al, [rsi+40h]
add al, 0FBh
cmp al, 1
ja short loc_977FD
mov al, [r14+40h]
add al, 0FBh
cmp al, 1
ja short loc_977FD
mov rdi, rsi
call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void)
mov r15, rax
mov rdi, r14
call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void)
sub r15, rax
lea r14, [rbx+40h]
xorpd xmm0, xmm0
movupd xmmword ptr [rbx], xmm0
movupd xmmword ptr [rbx+10h], xmm0
movupd xmmword ptr [rbx+20h], xmm0
movupd xmmword ptr [rbx+30h], xmm0
movupd xmmword ptr [rbx+40h], xmm0
mov rdi, r14
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<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>::number_integer_t)
jmp short loc_97849
loc_977FD:
mov rdi, rsi
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
movsd [rsp+28h+var_20], xmm0
mov rdi, r14
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
movsd xmm1, [rsp+28h+var_20]
subsd xmm1, xmm0
lea r14, [rbx+40h]
xorpd xmm0, xmm0
movupd xmmword ptr [rbx], xmm0
movupd xmmword ptr [rbx+10h], xmm0
movupd xmmword ptr [rbx+20h], xmm0
movupd xmmword ptr [rbx+30h], xmm0
movupd xmmword ptr [rbx+40h], xmm0
mov rdi, r14
movapd xmm0, xmm1
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<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>::number_float_t)
loc_97849:
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 rax, rbx
add rsp, 10h
pop rbx
pop r14
pop r15
retn
|
long long minja::Value::operator-(long long a1, long long a2, long long a3)
{
long long v4; // r15
long long v5; // rax
char *v6; // r14
double v7; // xmm1_8
double v9; // [rsp+8h] [rbp-20h]
if ( (unsigned __int8)(*(_BYTE *)(a2 + 64) - 5) > 1u || (unsigned __int8)(*(_BYTE *)(a3 + 64) - 5) > 1u )
{
v9 = minja::Value::get<double>(a2);
v7 = v9 - minja::Value::get<double>(a3);
v6 = (char *)(a1 + 64);
*(_OWORD *)a1 = 0LL;
*(_OWORD *)(a1 + 16) = 0LL;
*(_OWORD *)(a1 + 32) = 0LL;
*(_OWORD *)(a1 + 48) = 0LL;
*(_OWORD *)(a1 + 64) = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<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>>(
(unsigned __int8 *)(a1 + 64),
v7);
}
else
{
v4 = minja::Value::get<long>(a2);
v5 = minja::Value::get<long>(a3);
v6 = (char *)(a1 + 64);
*(_OWORD *)a1 = 0LL;
*(_OWORD *)(a1 + 16) = 0LL;
*(_OWORD *)(a1 + 32) = 0LL;
*(_OWORD *)(a1 + 48) = 0LL;
*(_OWORD *)(a1 + 64) = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<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>>(
(unsigned __int8 *)(a1 + 64),
v4 - v5);
}
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(v6);
return a1;
}
|
operator-:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV R14,RDX
MOV RBX,RDI
MOV AL,byte ptr [RSI + 0x40]
ADD AL,0xfb
CMP AL,0x1
JA 0x001977fd
MOV AL,byte ptr [R14 + 0x40]
ADD AL,0xfb
CMP AL,0x1
JA 0x001977fd
MOV RDI,RSI
CALL 0x00186a8c
MOV R15,RAX
MOV RDI,R14
CALL 0x00186a8c
SUB R15,RAX
LEA R14,[RBX + 0x40]
XORPD XMM0,XMM0
MOVUPD xmmword ptr [RBX],XMM0
MOVUPD xmmword ptr [RBX + 0x10],XMM0
MOVUPD xmmword ptr [RBX + 0x20],XMM0
MOVUPD xmmword ptr [RBX + 0x30],XMM0
MOVUPD xmmword ptr [RBX + 0x40],XMM0
MOV RDI,R14
MOV RSI,R15
CALL 0x00160ea6
JMP 0x00197849
LAB_001977fd:
MOV RDI,RSI
CALL 0x00186bd6
MOVSD qword ptr [RSP + 0x8],XMM0
MOV RDI,R14
CALL 0x00186bd6
MOVSD XMM1,qword ptr [RSP + 0x8]
SUBSD XMM1,XMM0
LEA R14,[RBX + 0x40]
XORPD XMM0,XMM0
MOVUPD xmmword ptr [RBX],XMM0
MOVUPD xmmword ptr [RBX + 0x10],XMM0
MOVUPD xmmword ptr [RBX + 0x20],XMM0
MOVUPD xmmword ptr [RBX + 0x30],XMM0
MOVUPD xmmword ptr [RBX + 0x40],XMM0
MOV RDI,R14
MOVAPD XMM0,XMM1
CALL 0x0016046e
LAB_00197849:
MOV RDI,R14
MOV ESI,0x1
CALL 0x00159184
MOV RAX,RBX
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */
Value * __thiscall minja::Value::operator-(Value *this,Value *param_1)
{
long lVar1;
long lVar2;
Value *in_RDX;
double dVar3;
double dVar4;
if (((byte)((char)param_1[0x40] - 5U) < 2) && ((byte)((char)in_RDX[0x40] - 5U) < 2)) {
lVar1 = get<long>(param_1);
lVar2 = get<long>(in_RDX);
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
nlohmann::json_abi_v3_11_3::detail::
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 + 0x40,lVar1 - lVar2);
}
else {
dVar3 = get<double>(param_1);
dVar4 = get<double>(in_RDX);
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
nlohmann::json_abi_v3_11_3::detail::
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(dVar3 - dVar4,this + 0x40);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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((bool)((char)this + '@'));
return this;
}
|
|
59,504
|
ok
|
eloqsql/unittest/mytap/tap.c
|
void
ok(int pass, char const *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
if (!pass && *g_test.todo == '\0')
++g_test.failed;
vemit_tap(pass, fmt, ap);
va_end(ap);
if (*g_test.todo != '\0')
emit_dir("todo", g_test.todo);
emit_endl();
}
|
O0
|
c
|
ok:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
testb %al, %al
je 0x26038
movaps %xmm0, -0xb0(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm2, -0x90(%rbp)
movaps %xmm3, -0x80(%rbp)
movaps %xmm4, -0x70(%rbp)
movaps %xmm5, -0x60(%rbp)
movaps %xmm6, -0x50(%rbp)
movaps %xmm7, -0x40(%rbp)
movq %r9, -0xb8(%rbp)
movq %r8, -0xc0(%rbp)
movq %rcx, -0xc8(%rbp)
movq %rdx, -0xd0(%rbp)
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x30(%rbp), %rax
leaq -0xe0(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x10, (%rax)
cmpl $0x0, -0x4(%rbp)
jne 0x260a0
movsbl 0x364af8(%rip), %eax # 0x38ab84
cmpl $0x0, %eax
jne 0x260a0
movl 0x364ae9(%rip), %eax # 0x38ab80
addl $0x1, %eax
movl %eax, 0x364ae0(%rip) # 0x38ab80
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x260f0
leaq -0x30(%rbp), %rax
movsbl 0x364ac9(%rip), %eax # 0x38ab84
cmpl $0x0, %eax
je 0x260d7
leaq 0x57130(%rip), %rdi # 0x7d1f7
leaq 0x364aaa(%rip), %rsi # 0x38ab78
addq $0xc, %rsi
callq 0x261d0
callq 0x26630
addq $0xe0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
ok:
push rbp
mov rbp, rsp
sub rsp, 0E0h
test al, al
jz short loc_26038
movaps [rbp+var_B0], xmm0
movaps [rbp+var_A0], xmm1
movaps [rbp+var_90], xmm2
movaps [rbp+var_80], xmm3
movaps [rbp+var_70], xmm4
movaps [rbp+var_60], xmm5
movaps [rbp+var_50], xmm6
movaps [rbp+var_40], xmm7
loc_26038:
mov [rbp+var_B8], r9
mov [rbp+var_C0], r8
mov [rbp+var_C8], rcx
mov [rbp+var_D0], rdx
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
lea rax, [rbp+var_30]
lea rcx, [rbp+var_E0]
mov [rax+10h], rcx
lea rcx, [rbp+arg_0]
mov [rax+8], rcx
mov dword ptr [rax+4], 30h ; '0'
mov dword ptr [rax], 10h
cmp [rbp+var_4], 0
jnz short loc_260A0
movsx eax, cs:byte_38AB84
cmp eax, 0
jnz short loc_260A0
mov eax, cs:dword_38AB80
add eax, 1
mov cs:dword_38AB80, eax
loc_260A0:
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
lea rdx, [rbp+var_30]
call vemit_tap
lea rax, [rbp+var_30]
movsx eax, cs:byte_38AB84
cmp eax, 0
jz short loc_260D7
lea rdi, aTodo; "todo"
lea rsi, g_test
add rsi, 0Ch
call emit_dir
loc_260D7:
call emit_endl
add rsp, 0E0h
pop rbp
retn
|
long long ok(unsigned int a1, long long a2, ...)
{
va_list va; // [rsp+B0h] [rbp-30h] BYREF
long long v4; // [rsp+D0h] [rbp-10h]
unsigned int v5; // [rsp+DCh] [rbp-4h]
va_start(va, a2);
v5 = a1;
v4 = a2;
if ( !a1 && !byte_38AB84 )
++dword_38AB80;
vemit_tap(v5, v4, va);
if ( byte_38AB84 )
emit_dir("todo", &g_test + 3);
return emit_endl();
}
|
ok:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xe0
TEST AL,AL
JZ 0x00126038
MOVAPS xmmword ptr [RBP + -0xb0],XMM0
MOVAPS xmmword ptr [RBP + -0xa0],XMM1
MOVAPS xmmword ptr [RBP + -0x90],XMM2
MOVAPS xmmword ptr [RBP + -0x80],XMM3
MOVAPS xmmword ptr [RBP + -0x70],XMM4
MOVAPS xmmword ptr [RBP + -0x60],XMM5
MOVAPS xmmword ptr [RBP + -0x50],XMM6
MOVAPS xmmword ptr [RBP + -0x40],XMM7
LAB_00126038:
MOV qword ptr [RBP + -0xb8],R9
MOV qword ptr [RBP + -0xc0],R8
MOV qword ptr [RBP + -0xc8],RCX
MOV qword ptr [RBP + -0xd0],RDX
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
LEA RAX,[RBP + -0x30]
LEA RCX,[RBP + -0xe0]
MOV qword ptr [RAX + 0x10],RCX
LEA RCX,[RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RAX + 0x4],0x30
MOV dword ptr [RAX],0x10
CMP dword ptr [RBP + -0x4],0x0
JNZ 0x001260a0
MOVSX EAX,byte ptr [0x0048ab84]
CMP EAX,0x0
JNZ 0x001260a0
MOV EAX,dword ptr [0x0048ab80]
ADD EAX,0x1
MOV dword ptr [0x0048ab80],EAX
LAB_001260a0:
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
LEA RDX,[RBP + -0x30]
CALL 0x001260f0
LEA RAX,[RBP + -0x30]
MOVSX EAX,byte ptr [0x0048ab84]
CMP EAX,0x0
JZ 0x001260d7
LEA RDI,[0x17d1f7]
LEA RSI,[0x48ab78]
ADD RSI,0xc
CALL 0x001261d0
LAB_001260d7:
CALL 0x00126630
ADD RSP,0xe0
POP RBP
RET
|
void ok(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,int param_9,
int8 param_10,int8 param_11,int8 param_12,int8 param_13,
int8 param_14)
{
char in_AL;
int1 local_e8 [16];
int8 local_d8;
int8 local_d0;
int8 local_c8;
int8 local_c0;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int8 local_48;
int4 local_38;
int4 local_34;
int1 *local_30;
int1 *local_28;
int8 local_18;
int local_c;
if (in_AL != '\0') {
local_b8 = param_1;
local_a8 = param_2;
local_98 = param_3;
local_88 = param_4;
local_78 = param_5;
local_68 = param_6;
local_58 = param_7;
local_48 = param_8;
}
local_28 = local_e8;
local_30 = &stack0x00000008;
local_34 = 0x30;
local_38 = 0x10;
if ((param_9 == 0) && (DAT_0048ab84 == '\0')) {
DAT_0048ab80 = DAT_0048ab80 + 1;
}
local_d8 = param_11;
local_d0 = param_12;
local_c8 = param_13;
local_c0 = param_14;
local_18 = param_10;
local_c = param_9;
vemit_tap(param_9,param_10,&local_38);
if (DAT_0048ab84 != '\0') {
emit_dir(&DAT_0017d1f7,&DAT_0048ab84);
}
emit_endl();
return;
}
|
|
59,505
|
ok
|
eloqsql/unittest/mytap/tap.c
|
void
ok(int pass, char const *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
if (!pass && *g_test.todo == '\0')
++g_test.failed;
vemit_tap(pass, fmt, ap);
va_end(ap);
if (*g_test.todo != '\0')
emit_dir("todo", g_test.todo);
emit_endl();
}
|
O3
|
c
|
ok:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0xc8, %rsp
leaq -0xd0(%rbp), %r10
movq %rdx, 0x10(%r10)
movq %rcx, 0x18(%r10)
movq %r8, 0x20(%r10)
movq %r9, 0x28(%r10)
testb %al, %al
je 0x26448
movaps %xmm0, -0xa0(%rbp)
movaps %xmm1, -0x90(%rbp)
movaps %xmm2, -0x80(%rbp)
movaps %xmm3, -0x70(%rbp)
movaps %xmm4, -0x60(%rbp)
movaps %xmm5, -0x50(%rbp)
movaps %xmm6, -0x40(%rbp)
movaps %xmm7, -0x30(%rbp)
movq %r10, -0x10(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movabsq $0x3000000010, %rax # imm = 0x3000000010
movq %rax, -0x20(%rbp)
testl %edi, %edi
jne 0x26475
cmpb $0x0, 0x343767(%rip) # 0x369bd4
jne 0x26475
incl 0x34375b(%rip) # 0x369bd0
leaq -0x20(%rbp), %rdx
callq 0x264e9
cmpb $0x0, 0x34374f(%rip) # 0x369bd4
je 0x264ba
movq 0x2ccb1a(%rip), %rbx # 0x2f2fa8
movq (%rbx), %rdi
leaq 0x37dd0(%rip), %rdx # 0x5e268
leaq 0x37d58(%rip), %rcx # 0x5e1f7
leaq 0x34372e(%rip), %r8 # 0x369bd4
movl $0x1, %esi
xorl %eax, %eax
callq 0x25530
movq (%rbx), %rdi
callq 0x25360
movq 0x2ccae7(%rip), %rbx # 0x2f2fa8
movq (%rbx), %rdi
leaq 0x38d28(%rip), %rdx # 0x5f1f3
movl $0x1, %esi
xorl %eax, %eax
callq 0x25530
movq (%rbx), %rdi
callq 0x25360
addq $0xc8, %rsp
popq %rbx
popq %rbp
retq
|
ok:
push rbp
mov rbp, rsp
push rbx
sub rsp, 0C8h
lea r10, [rbp+var_D0]
mov [r10+10h], rdx
mov [r10+18h], rcx
mov [r10+20h], r8
mov [r10+28h], r9
test al, al
jz short loc_26448
movaps [rbp+var_A0], xmm0
movaps [rbp+var_90], xmm1
movaps [rbp+var_80], xmm2
movaps [rbp+var_70], xmm3
movaps [rbp+var_60], xmm4
movaps [rbp+var_50], xmm5
movaps [rbp+var_40], xmm6
movaps [rbp+var_30], xmm7
loc_26448:
mov [rbp+var_10], r10
lea rax, [rbp+arg_0]
mov [rbp+var_18], rax
mov rax, 3000000010h
mov [rbp+var_20], rax
test edi, edi
jnz short loc_26475
cmp cs:byte_369BD4, 0
jnz short loc_26475
inc cs:dword_369BD0
loc_26475:
lea rdx, [rbp+var_20]
call vemit_tap
cmp cs:byte_369BD4, 0
jz short loc_264BA
mov rbx, cs:stdout_ptr
mov rdi, [rbx]
lea rdx, aSS; " # %s %s"
lea rcx, aTodo; "todo"
lea r8, byte_369BD4
mov esi, 1
xor eax, eax
call ___fprintf_chk
mov rdi, [rbx]
call _fflush
loc_264BA:
mov rbx, cs:stdout_ptr
mov rdi, [rbx]
lea rdx, asc_5F1F0+3; "\n"
mov esi, 1
xor eax, eax
call ___fprintf_chk
mov rdi, [rbx]
call _fflush
add rsp, 0C8h
pop rbx
pop rbp
retn
|
long long ok(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
char a15)
{
char v16; // [rsp+0h] [rbp-D0h] BYREF
long long v17; // [rsp+10h] [rbp-C0h]
long long v18; // [rsp+18h] [rbp-B8h]
long long v19; // [rsp+20h] [rbp-B0h]
long long v20; // [rsp+28h] [rbp-A8h]
__m128 v21; // [rsp+30h] [rbp-A0h]
__m128 v22; // [rsp+40h] [rbp-90h]
__m128 v23; // [rsp+50h] [rbp-80h]
__m128 v24; // [rsp+60h] [rbp-70h]
__m128 v25; // [rsp+70h] [rbp-60h]
__m128 v26; // [rsp+80h] [rbp-50h]
__m128 v27; // [rsp+90h] [rbp-40h]
__m128 v28; // [rsp+A0h] [rbp-30h]
_QWORD v29[4]; // [rsp+B0h] [rbp-20h] BYREF
v21 = a7;
v22 = a8;
v23 = a9;
v24 = a10;
v25 = a11;
v26 = a12;
v27 = a13;
v28 = a14;
v17 = a3;
v18 = a4;
v19 = a5;
v20 = a6;
v29[2] = &v16;
v29[1] = &a15;
v29[0] = 0x3000000010LL;
if ( !(_DWORD)a1 && !byte_369BD4 )
++dword_369BD0;
vemit_tap(a1, a2, v29);
if ( byte_369BD4 )
{
__fprintf_chk(stdout, 1LL, " # %s %s", "todo", &byte_369BD4);
fflush(stdout);
}
__fprintf_chk(stdout, 1LL, "\n");
return fflush(stdout);
}
|
ok:
PUSH RBP
MOV RBP,RSP
PUSH RBX
SUB RSP,0xc8
LEA R10,[RBP + -0xd0]
MOV qword ptr [R10 + 0x10],RDX
MOV qword ptr [R10 + 0x18],RCX
MOV qword ptr [R10 + 0x20],R8
MOV qword ptr [R10 + 0x28],R9
TEST AL,AL
JZ 0x00126448
MOVAPS xmmword ptr [RBP + -0xa0],XMM0
MOVAPS xmmword ptr [RBP + -0x90],XMM1
MOVAPS xmmword ptr [RBP + -0x80],XMM2
MOVAPS xmmword ptr [RBP + -0x70],XMM3
MOVAPS xmmword ptr [RBP + -0x60],XMM4
MOVAPS xmmword ptr [RBP + -0x50],XMM5
MOVAPS xmmword ptr [RBP + -0x40],XMM6
MOVAPS xmmword ptr [RBP + -0x30],XMM7
LAB_00126448:
MOV qword ptr [RBP + -0x10],R10
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,0x3000000010
MOV qword ptr [RBP + -0x20],RAX
TEST EDI,EDI
JNZ 0x00126475
CMP byte ptr [0x00469bd4],0x0
JNZ 0x00126475
INC dword ptr [0x00469bd0]
LAB_00126475:
LEA RDX,[RBP + -0x20]
CALL 0x001264e9
CMP byte ptr [0x00469bd4],0x0
JZ 0x001264ba
MOV RBX,qword ptr [0x003f2fa8]
MOV RDI,qword ptr [RBX]
LEA RDX,[0x15e268]
LEA RCX,[0x15e1f7]
LEA R8,[0x469bd4]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x00125530
MOV RDI,qword ptr [RBX]
CALL 0x00125360
LAB_001264ba:
MOV RBX,qword ptr [0x003f2fa8]
MOV RDI,qword ptr [RBX]
LEA RDX,[0x15f1f3]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x00125530
MOV RDI,qword ptr [RBX]
CALL 0x00125360
ADD RSP,0xc8
POP RBX
POP RBP
RET
|
void ok(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
int8 param_9,int8 param_10,int8 param_11,int8 param_12,
int8 param_13,int8 param_14)
{
int *puVar1;
char in_AL;
int1 local_d8 [16];
int8 local_c8;
int8 local_c0;
int8 local_b8;
int8 local_b0;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int8 local_48;
int8 local_38;
int8 local_28;
int1 *local_20;
int1 *local_18;
local_18 = local_d8;
if (in_AL != '\0') {
local_a8 = param_1;
local_98 = param_2;
local_88 = param_3;
local_78 = param_4;
local_68 = param_5;
local_58 = param_6;
local_48 = param_7;
local_38 = param_8;
}
local_20 = &stack0x00000008;
local_28 = 0x3000000010;
if (((int)param_9 == 0) && (DAT_00469bd4 == '\0')) {
DAT_00469bd0 = DAT_00469bd0 + 1;
}
local_c8 = param_11;
local_c0 = param_12;
local_b8 = param_13;
local_b0 = param_14;
vemit_tap(param_9,param_10,&local_28);
puVar1 = PTR_stdout_003f2fa8;
if (DAT_00469bd4 != '\0') {
__fprintf_chk(*(int8 *)PTR_stdout_003f2fa8,1," # %s %s",&DAT_0015e1f7,&DAT_00469bd4);
fflush(*(FILE **)puVar1);
}
puVar1 = PTR_stdout_003f2fa8;
__fprintf_chk(*(int8 *)PTR_stdout_003f2fa8,1,&DAT_0015f1f3);
fflush(*(FILE **)puVar1);
return;
}
|
|
59,506
|
lf_alloc_init
|
eloqsql/mysys/lf_alloc-pin.c
|
void lf_alloc_init(LF_ALLOCATOR *allocator, uint size, uint free_ptr_offset)
{
lf_pinbox_init(&allocator->pinbox, free_ptr_offset,
(lf_pinbox_free_func *)alloc_free, allocator);
allocator->top= 0;
allocator->mallocs= 0;
allocator->element_size= size;
allocator->constructor= 0;
allocator->destructor= 0;
DBUG_ASSERT(size >= sizeof(void*) + free_ptr_offset);
}
|
O3
|
c
|
lf_alloc_init:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %r14d
movq %rdi, %r15
movl $0x78, %esi
callq 0xa5608
xorl %eax, %eax
movl %eax, 0x3c(%r15)
movl %eax, 0x40(%r15)
movl %ebx, 0x38(%r15)
leaq 0x2b(%rip), %rcx # 0xa5416
movq %rcx, 0x28(%r15)
movq %r15, 0x30(%r15)
movq $0x0, 0x48(%r15)
movl %eax, 0x54(%r15)
movl %r14d, 0x50(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x58(%r15)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
lf_alloc_init:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov ebx, edx
mov r14d, esi
mov r15, rdi
mov esi, 78h ; 'x'
call lf_dynarray_init
xor eax, eax
mov [r15+3Ch], eax
mov [r15+40h], eax
mov [r15+38h], ebx
lea rcx, alloc_free
mov [r15+28h], rcx
mov [r15+30h], r15
mov qword ptr [r15+48h], 0
mov [r15+54h], eax
mov [r15+50h], r14d
xorps xmm0, xmm0
movups xmmword ptr [r15+58h], xmm0
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long lf_alloc_init(long long a1, int a2, int a3)
{
long long result; // rax
lf_dynarray_init(a1, 120LL);
result = 0LL;
*(_DWORD *)(a1 + 60) = 0;
*(_DWORD *)(a1 + 64) = 0;
*(_DWORD *)(a1 + 56) = a3;
*(_QWORD *)(a1 + 40) = alloc_free;
*(_QWORD *)(a1 + 48) = a1;
*(_QWORD *)(a1 + 72) = 0LL;
*(_DWORD *)(a1 + 84) = 0;
*(_DWORD *)(a1 + 80) = a2;
*(_OWORD *)(a1 + 88) = 0LL;
return result;
}
|
lf_alloc_init:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EBX,EDX
MOV R14D,ESI
MOV R15,RDI
MOV ESI,0x78
CALL 0x001a5608
XOR EAX,EAX
MOV dword ptr [R15 + 0x3c],EAX
MOV dword ptr [R15 + 0x40],EAX
MOV dword ptr [R15 + 0x38],EBX
LEA RCX,[0x1a5416]
MOV qword ptr [R15 + 0x28],RCX
MOV qword ptr [R15 + 0x30],R15
MOV qword ptr [R15 + 0x48],0x0
MOV dword ptr [R15 + 0x54],EAX
MOV dword ptr [R15 + 0x50],R14D
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R15 + 0x58],XMM0
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void lf_alloc_init(long param_1,int4 param_2,int4 param_3)
{
lf_dynarray_init(param_1,0x78);
*(int4 *)(param_1 + 0x3c) = 0;
*(int4 *)(param_1 + 0x40) = 0;
*(int4 *)(param_1 + 0x38) = param_3;
*(code **)(param_1 + 0x28) = alloc_free;
*(long *)(param_1 + 0x30) = param_1;
*(int8 *)(param_1 + 0x48) = 0;
*(int4 *)(param_1 + 0x54) = 0;
*(int4 *)(param_1 + 0x50) = param_2;
*(int8 *)(param_1 + 0x58) = 0;
*(int8 *)(param_1 + 0x60) = 0;
return;
}
|
|
59,507
|
ma_tls_verify_server_cert
|
eloqsql/libmariadb/libmariadb/secure/openssl.c
|
int ma_tls_verify_server_cert(MARIADB_TLS *ctls)
{
X509 *cert;
MYSQL *mysql;
SSL *ssl;
MARIADB_PVIO *pvio;
#if !defined(HAVE_OPENSSL_CHECK_HOST)
X509_NAME *x509sn;
int cn_pos;
X509_NAME_ENTRY *cn_entry;
ASN1_STRING *cn_asn1;
const char *cn_str;
#endif
if (!ctls || !ctls->ssl)
return 1;
ssl= (SSL *)ctls->ssl;
mysql= (MYSQL *)SSL_get_app_data(ssl);
pvio= mysql->net.pvio;
if (!mysql->host)
{
pvio->set_error(mysql, CR_SSL_CONNECTION_ERROR, SQLSTATE_UNKNOWN,
ER(CR_SSL_CONNECTION_ERROR), "Invalid (empty) hostname");
return 1;
}
if (!(cert= SSL_get_peer_certificate(ssl)))
{
pvio->set_error(mysql, CR_SSL_CONNECTION_ERROR, SQLSTATE_UNKNOWN,
ER(CR_SSL_CONNECTION_ERROR), "Unable to get server certificate");
return 1;
}
#ifdef HAVE_OPENSSL_CHECK_HOST
if (X509_check_host(cert, mysql->host, 0, 0, 0) != 1
&& X509_check_ip_asc(cert, mysql->host, 0) != 1)
goto error;
#else
x509sn= X509_get_subject_name(cert);
if ((cn_pos= X509_NAME_get_index_by_NID(x509sn, NID_commonName, -1)) < 0)
goto error;
if (!(cn_entry= X509_NAME_get_entry(x509sn, cn_pos)))
goto error;
if (!(cn_asn1 = X509_NAME_ENTRY_get_data(cn_entry)))
goto error;
cn_str = (char *)ASN1_STRING_data(cn_asn1);
/* Make sure there is no embedded \0 in the CN */
if ((size_t)ASN1_STRING_length(cn_asn1) != strlen(cn_str))
goto error;
if (strcmp(cn_str, mysql->host))
goto error;
#endif
X509_free(cert);
return 0;
error:
X509_free(cert);
pvio->set_error(mysql, CR_SSL_CONNECTION_ERROR, SQLSTATE_UNKNOWN,
ER(CR_SSL_CONNECTION_ERROR), "Validation of SSL server certificate failed");
return 1;
}
|
O0
|
c
|
ma_tls_verify_server_cert:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x39a5e
movq -0x10(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x39a6a
movl $0x1, -0x4(%rbp)
jmp 0x39bca
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
xorl %esi, %esi
callq 0x13150
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
cmpq $0x0, 0x2b0(%rax)
jne 0x39adf
movq -0x30(%rbp), %rax
movq 0x50(%rax), %r9
movq -0x20(%rbp), %rdi
leaq 0x2851f(%rip), %rax # 0x61fd0
movq (%rax), %rdx
leaq 0x28525(%rip), %rax # 0x61fe0
movq 0xd0(%rax), %rcx
movl $0x7ea, %esi # imm = 0x7EA
leaq 0x14a92(%rip), %r8 # 0x4e560
movb $0x0, %al
callq *%r9
movl $0x1, -0x4(%rbp)
jmp 0x39bca
movq -0x28(%rbp), %rdi
callq 0x137c0
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
jne 0x39b33
movq -0x30(%rbp), %rax
movq 0x50(%rax), %r9
movq -0x20(%rbp), %rdi
leaq 0x284cb(%rip), %rax # 0x61fd0
movq (%rax), %rdx
leaq 0x284d1(%rip), %rax # 0x61fe0
movq 0xd0(%rax), %rcx
movl $0x7ea, %esi # imm = 0x7EA
leaq 0x14a57(%rip), %r8 # 0x4e579
movb $0x0, %al
callq *%r9
movl $0x1, -0x4(%rbp)
jmp 0x39bca
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x2b0(%rax), %rsi
xorl %eax, %eax
movl %eax, %r8d
xorl %ecx, %ecx
movq %r8, %rdx
callq 0x13840
cmpl $0x1, %eax
je 0x39b73
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x2b0(%rax), %rsi
xorl %edx, %edx
callq 0x13320
cmpl $0x1, %eax
je 0x39b73
jmp 0x39b85
movq -0x18(%rbp), %rdi
callq 0x13230
movl $0x0, -0x4(%rbp)
jmp 0x39bca
movq -0x18(%rbp), %rdi
callq 0x13230
movq -0x30(%rbp), %rax
movq 0x50(%rax), %r9
movq -0x20(%rbp), %rdi
leaq 0x2842f(%rip), %rax # 0x61fd0
movq (%rax), %rdx
leaq 0x28435(%rip), %rax # 0x61fe0
movq 0xd0(%rax), %rcx
movl $0x7ea, %esi # imm = 0x7EA
leaq 0x149dc(%rip), %r8 # 0x4e59a
movb $0x0, %al
callq *%r9
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
ma_tls_verify_server_cert:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
cmp [rbp+var_10], 0
jz short loc_39A5E
mov rax, [rbp+var_10]
cmp qword ptr [rax+10h], 0
jnz short loc_39A6A
loc_39A5E:
mov [rbp+var_4], 1
jmp loc_39BCA
loc_39A6A:
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov [rbp+var_28], rax
mov rdi, [rbp+var_28]
xor esi, esi
call _SSL_get_ex_data
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rbp+var_30], rax
mov rax, [rbp+var_20]
cmp qword ptr [rax+2B0h], 0
jnz short loc_39ADF
mov rax, [rbp+var_30]
mov r9, [rax+50h]
mov rdi, [rbp+var_20]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
lea rax, client_errors
mov rcx, [rax+0D0h]
mov esi, 7EAh
lea r8, aInvalidEmptyHo; "Invalid (empty) hostname"
mov al, 0
call r9
mov [rbp+var_4], 1
jmp loc_39BCA
loc_39ADF:
mov rdi, [rbp+var_28]
call _SSL_get1_peer_certificate
mov [rbp+var_18], rax
cmp rax, 0
jnz short loc_39B33
mov rax, [rbp+var_30]
mov r9, [rax+50h]
mov rdi, [rbp+var_20]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
lea rax, client_errors
mov rcx, [rax+0D0h]
mov esi, 7EAh
lea r8, aUnableToGetSer; "Unable to get server certificate"
mov al, 0
call r9
mov [rbp+var_4], 1
jmp loc_39BCA
loc_39B33:
mov rdi, [rbp+var_18]
mov rax, [rbp+var_20]
mov rsi, [rax+2B0h]
xor eax, eax
mov r8d, eax
xor ecx, ecx
mov rdx, r8
call _X509_check_host
cmp eax, 1
jz short loc_39B73
mov rdi, [rbp+var_18]
mov rax, [rbp+var_20]
mov rsi, [rax+2B0h]
xor edx, edx
call _X509_check_ip_asc
cmp eax, 1
jz short loc_39B73
jmp short loc_39B85
loc_39B73:
mov rdi, [rbp+var_18]
call _X509_free
mov [rbp+var_4], 0
jmp short loc_39BCA
loc_39B85:
mov rdi, [rbp+var_18]
call _X509_free
mov rax, [rbp+var_30]
mov r9, [rax+50h]
mov rdi, [rbp+var_20]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
lea rax, client_errors
mov rcx, [rax+0D0h]
mov esi, 7EAh
lea r8, aValidationOfSs; "Validation of SSL server certificate fa"...
mov al, 0
call r9
mov [rbp+var_4], 1
loc_39BCA:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
long long ma_tls_verify_server_cert(long long a1)
{
long long v2; // [rsp+0h] [rbp-30h]
long long v3; // [rsp+8h] [rbp-28h]
long long *v4; // [rsp+10h] [rbp-20h]
long long v5; // [rsp+18h] [rbp-18h]
if ( a1 && *(_QWORD *)(a1 + 16) )
{
v3 = *(_QWORD *)(a1 + 16);
v4 = (long long *)SSL_get_ex_data(v3, 0LL);
v2 = *v4;
if ( v4[86] )
{
v5 = SSL_get1_peer_certificate(v3);
if ( v5 )
{
if ( (unsigned int)X509_check_host(v5, v4[86], 0LL, 0LL) == 1
|| (unsigned int)X509_check_ip_asc(v5, v4[86], 0LL) == 1 )
{
X509_free(v5);
return 0;
}
else
{
X509_free(v5);
(*(void ( **)(long long *, long long, char *, char *, const char *))(v2 + 80))(
v4,
2026LL,
SQLSTATE_UNKNOWN,
client_errors[26],
"Validation of SSL server certificate failed");
return 1;
}
}
else
{
(*(void ( **)(long long *, long long, char *, char *, const char *))(v2 + 80))(
v4,
2026LL,
SQLSTATE_UNKNOWN,
client_errors[26],
"Unable to get server certificate");
return 1;
}
}
else
{
(*(void ( **)(long long *, long long, char *, char *, const char *))(v2 + 80))(
v4,
2026LL,
SQLSTATE_UNKNOWN,
client_errors[26],
"Invalid (empty) hostname");
return 1;
}
}
else
{
return 1;
}
}
|
ma_tls_verify_server_cert:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
CMP qword ptr [RBP + -0x10],0x0
JZ 0x00139a5e
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x10],0x0
JNZ 0x00139a6a
LAB_00139a5e:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00139bca
LAB_00139a6a:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x28]
XOR ESI,ESI
CALL 0x00113150
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x20]
CMP qword ptr [RAX + 0x2b0],0x0
JNZ 0x00139adf
MOV RAX,qword ptr [RBP + -0x30]
MOV R9,qword ptr [RAX + 0x50]
MOV RDI,qword ptr [RBP + -0x20]
LEA RAX,[0x161fd0]
MOV RDX,qword ptr [RAX]
LEA RAX,[0x161fe0]
MOV RCX,qword ptr [RAX + 0xd0]
MOV ESI,0x7ea
LEA R8,[0x14e560]
MOV AL,0x0
CALL R9
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00139bca
LAB_00139adf:
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x001137c0
MOV qword ptr [RBP + -0x18],RAX
CMP RAX,0x0
JNZ 0x00139b33
MOV RAX,qword ptr [RBP + -0x30]
MOV R9,qword ptr [RAX + 0x50]
MOV RDI,qword ptr [RBP + -0x20]
LEA RAX,[0x161fd0]
MOV RDX,qword ptr [RAX]
LEA RAX,[0x161fe0]
MOV RCX,qword ptr [RAX + 0xd0]
MOV ESI,0x7ea
LEA R8,[0x14e579]
MOV AL,0x0
CALL R9
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00139bca
LAB_00139b33:
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RAX + 0x2b0]
XOR EAX,EAX
MOV R8D,EAX
XOR ECX,ECX
MOV RDX,R8
CALL 0x00113840
CMP EAX,0x1
JZ 0x00139b73
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RAX + 0x2b0]
XOR EDX,EDX
CALL 0x00113320
CMP EAX,0x1
JZ 0x00139b73
JMP 0x00139b85
LAB_00139b73:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00113230
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00139bca
LAB_00139b85:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00113230
MOV RAX,qword ptr [RBP + -0x30]
MOV R9,qword ptr [RAX + 0x50]
MOV RDI,qword ptr [RBP + -0x20]
LEA RAX,[0x161fd0]
MOV RDX,qword ptr [RAX]
LEA RAX,[0x161fe0]
MOV RCX,qword ptr [RAX + 0xd0]
MOV ESI,0x7ea
LEA R8,[0x14e59a]
MOV AL,0x0
CALL R9
MOV dword ptr [RBP + -0x4],0x1
LAB_00139bca:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 ma_tls_verify_server_cert(long param_1)
{
SSL *ssl;
long lVar1;
int iVar2;
long *plVar3;
X509 *a;
int4 local_c;
if ((param_1 == 0) || (*(long *)(param_1 + 0x10) == 0)) {
local_c = 1;
}
else {
ssl = *(SSL **)(param_1 + 0x10);
plVar3 = (long *)SSL_get_ex_data(ssl,0);
lVar1 = *plVar3;
if (plVar3[0x56] == 0) {
(**(code **)(lVar1 + 0x50))
(plVar3,0x7ea,SQLSTATE_UNKNOWN,PTR_s_TLS_SSL_error_____100s_001620b0,
"Invalid (empty) hostname");
local_c = 1;
}
else {
a = (X509 *)SSL_get1_peer_certificate(ssl);
if (a == (X509 *)0x0) {
(**(code **)(lVar1 + 0x50))
(plVar3,0x7ea,SQLSTATE_UNKNOWN,PTR_s_TLS_SSL_error_____100s_001620b0,
"Unable to get server certificate");
local_c = 1;
}
else {
iVar2 = X509_check_host(a,plVar3[0x56],0,0);
if ((iVar2 != 1) && (iVar2 = X509_check_ip_asc(a,plVar3[0x56],0), iVar2 != 1)) {
X509_free(a);
(**(code **)(lVar1 + 0x50))
(plVar3,0x7ea,SQLSTATE_UNKNOWN,PTR_s_TLS_SSL_error_____100s_001620b0,
"Validation of SSL server certificate failed");
return 1;
}
X509_free(a);
local_c = 0;
}
}
}
return local_c;
}
|
|
59,508
|
nglog::LogMessage::SaveOrSendToLog()
|
ng-log[P]ng-log/src/logging.cc
|
EXCLUSIVE_LOCKS_REQUIRED(log_mutex) {
if (data_->outvec_ != nullptr) {
RAW_DCHECK(data_->num_chars_to_log_ > 0 &&
data_->message_text_[data_->num_chars_to_log_ - 1] == '\n',
"");
// Omit prefix of message and trailing newline when recording in outvec_.
const char* start = data_->message_text_ + data_->num_prefix_chars_;
size_t len = data_->num_chars_to_log_ - data_->num_prefix_chars_ - 1;
data_->outvec_->push_back(string(start, len));
} else {
SendToLog();
}
}
|
O3
|
cpp
|
nglog::LogMessage::SaveOrSendToLog():
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %r14
movq 0x8(%rdi), %rax
movq 0x76b0(%rax), %rbx
testq %rbx, %rbx
je 0xb739
movq 0x76c0(%rax), %rcx
testq %rcx, %rcx
je 0xb69b
cmpb $0xa, 0x3(%rcx,%rax)
je 0xb6da
leaq 0x18338(%rip), %rsi # 0x239da
leaq 0x18378(%rip), %rcx # 0x23a21
leaq 0x18385(%rip), %r8 # 0x23a35
leaq 0x18894(%rip), %r9 # 0x23f4b
movl $0x3, %edi
movl $0x77e, %edx # imm = 0x77E
xorl %eax, %eax
callq 0x20070
movq 0x8(%r14), %rax
movq 0x76b0(%rax), %rbx
movq 0x76c0(%rax), %rcx
movq 0x76b8(%rax), %rdi
leaq (%rax,%rdi), %rsi
addq $0x4, %rsi
addq %rdi, %rax
notq %rdi
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq (%rcx,%rax), %rdx
addq $0x4, %rdx
addq %rdi, %rdx
movq %rsp, %r14
movq %r14, %rdi
callq 0xa400
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1fde2
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xb72f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x932c
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %r14, %rdi
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xaf8e
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xb763
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x932c
movq %rbx, %rdi
callq 0x7950
nop
|
_ZN5nglog10LogMessage15SaveOrSendToLogEv:
push r15
push r14
push rbx
sub rsp, 20h
mov r14, rdi
mov rax, [rdi+8]
mov rbx, [rax+76B0h]
test rbx, rbx
jz loc_B739
mov rcx, [rax+76C0h]
test rcx, rcx
jz short loc_B69B
cmp byte ptr [rcx+rax+3], 0Ah
jz short loc_B6DA
loc_B69B:
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aCheckSFailedS; "Check %s failed: %s"
lea r8, aDataNumCharsTo; "data_->num_chars_to_log_ > 0 && data_->"...
lea r9, asc_23F49+2; ""
mov edi, 3
mov edx, 77Eh
xor eax, eax
call _ZN5nglog6RawLogENS_11LogSeverityEPKciS2_z; nglog::RawLog(nglog::LogSeverity,char const*,int,char const*,...)
mov rax, [r14+8]
mov rbx, [rax+76B0h]
mov rcx, [rax+76C0h]
loc_B6DA:
mov rdi, [rax+76B8h]
lea rsi, [rax+rdi]
add rsi, 4
add rax, rdi
not rdi
lea r15, [rsp+38h+var_28]
mov [r15-10h], r15
lea rdx, [rcx+rax]
add rdx, 4
add rdx, rdi
mov r14, rsp
mov rdi, r14
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rdi, rbx
mov rsi, r14
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&)
mov rdi, [rsp+38h+var_38]; void *
cmp rdi, r15
jz short loc_B72F
mov rsi, [rsp+38h+var_28]
inc rsi; unsigned __int64
call _ZdlPvm; operator delete(void *,ulong)
loc_B72F:
add rsp, 20h
pop rbx
pop r14
pop r15
retn
loc_B739:
mov rdi, r14; this
add rsp, 20h
pop rbx
pop r14
pop r15
jmp _ZN5nglog10LogMessage9SendToLogEv; nglog::LogMessage::SendToLog(void)
mov rbx, rax
mov rdi, [rsp+0]; void *
cmp rdi, r15
jz short loc_B763
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call _ZdlPvm; operator delete(void *,ulong)
loc_B763:
mov rdi, rbx
call __Unwind_Resume
|
void nglog::LogMessage::SaveOrSendToLog(nglog::LogMessage *this)
{
_QWORD *v1; // rax
long long v2; // rbx
long long v3; // rcx
long long v4; // rdi
void *v5[2]; // [rsp+0h] [rbp-38h] BYREF
_QWORD v6[5]; // [rsp+10h] [rbp-28h] BYREF
v1 = (_QWORD *)*((_QWORD *)this + 1);
v2 = v1[3798];
if ( v2 )
{
v3 = v1[3800];
if ( !v3 || *((_BYTE *)v1 + v3 + 3) != 10 )
{
nglog::RawLog(
3,
(unsigned int)"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc",
1918,
(unsigned int)"Check %s failed: %s",
(unsigned int)"data_->num_chars_to_log_ > 0 && data_->message_text_[data_->num_chars_to_log_ - 1] == '\\n'",
(unsigned int)"");
v1 = (_QWORD *)*((_QWORD *)this + 1);
v2 = v1[3798];
v3 = v1[3800];
}
v4 = v1[3799];
v5[0] = v6;
std::string::_M_construct<char const*>((long long)v5, (_BYTE *)v1 + v4 + 4, (long long)v1 + v4 + v3 + ~v4 + 4);
std::vector<std::string>::emplace_back<std::string>(v2, v5);
if ( v5[0] != v6 )
operator delete(v5[0]);
}
else
{
nglog::LogMessage::SendToLog(this);
}
}
|
SaveOrSendToLog:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x20
MOV R14,RDI
MOV RAX,qword ptr [RDI + 0x8]
MOV RBX,qword ptr [RAX + 0x76b0]
TEST RBX,RBX
JZ 0x0010b739
MOV RCX,qword ptr [RAX + 0x76c0]
TEST RCX,RCX
JZ 0x0010b69b
CMP byte ptr [RCX + RAX*0x1 + 0x3],0xa
JZ 0x0010b6da
LAB_0010b69b:
LEA RSI,[0x1239da]
LEA RCX,[0x123a21]
LEA R8,[0x123a35]
LEA R9,[0x123f4b]
MOV EDI,0x3
MOV EDX,0x77e
XOR EAX,EAX
CALL 0x00120070
MOV RAX,qword ptr [R14 + 0x8]
MOV RBX,qword ptr [RAX + 0x76b0]
MOV RCX,qword ptr [RAX + 0x76c0]
LAB_0010b6da:
MOV RDI,qword ptr [RAX + 0x76b8]
LEA RSI,[RAX + RDI*0x1]
ADD RSI,0x4
ADD RAX,RDI
NOT RDI
LEA R15,[RSP + 0x10]
MOV qword ptr [R15 + -0x10],R15
LEA RDX,[RCX + RAX*0x1]
ADD RDX,0x4
ADD RDX,RDI
MOV R14,RSP
MOV RDI,R14
CALL 0x0010a400
LAB_0010b70e:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0011fde2
LAB_0010b719:
MOV RDI,qword ptr [RSP]
CMP RDI,R15
JZ 0x0010b72f
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0010932c
LAB_0010b72f:
ADD RSP,0x20
POP RBX
POP R14
POP R15
RET
LAB_0010b739:
MOV RDI,R14
ADD RSP,0x20
POP RBX
POP R14
POP R15
JMP 0x0010af8e
|
/* nglog::LogMessage::SaveOrSendToLog() */
void __thiscall nglog::LogMessage::SaveOrSendToLog(LogMessage *this)
{
ulong uVar1;
long lVar2;
long lVar3;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *this_00;
long *local_38 [2];
long local_28 [2];
lVar2 = *(long *)(this + 8);
this_00 = *(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(lVar2 + 0x76b0);
if (this_00 != (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)0x0) {
lVar3 = *(long *)(lVar2 + 0x76c0);
if ((lVar3 == 0) || (*(char *)(lVar3 + 3 + lVar2) != '\n')) {
RawLog(3,"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc",0x77e,
"Check %s failed: %s",
"data_->num_chars_to_log_ > 0 && data_->message_text_[data_->num_chars_to_log_ - 1] == \'\\n\'"
,&DAT_00123f4b);
lVar2 = *(long *)(this + 8);
this_00 = *(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)
(lVar2 + 0x76b0);
lVar3 = *(long *)(lVar2 + 0x76c0);
}
uVar1 = *(ulong *)(lVar2 + 0x76b8);
local_38[0] = local_28;
std::__cxx11::string::_M_construct<char_const*>
(local_38,lVar2 + uVar1 + 4,lVar3 + lVar2 + uVar1 + 4 + ~uVar1);
/* try { // try from 0010b70e to 0010b718 has its CatchHandler @ 0010b74a */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::
emplace_back<std::__cxx11::string>(this_00,(string *)local_38);
if (local_38[0] != local_28) {
operator_delete(local_38[0],local_28[0] + 1);
}
return;
}
SendToLog(this);
return;
}
|
|
59,509
|
facebook::yoga::StyleValuePool::getSize(facebook::yoga::StyleValueHandle) const
|
yoga-mod/yoga/../yoga/style/StyleValuePool.h
|
StyleSizeLength getSize(StyleValueHandle handle) const {
if (handle.isUndefined()) {
return StyleSizeLength::undefined();
} else if (handle.isAuto()) {
return StyleSizeLength::ofAuto();
} else if (handle.isKeyword(StyleValueHandle::Keyword::MaxContent)) {
return StyleSizeLength::ofMaxContent();
} else if (handle.isKeyword(StyleValueHandle::Keyword::FitContent)) {
return StyleSizeLength::ofFitContent();
} else if (handle.isKeyword(StyleValueHandle::Keyword::Stretch)) {
return StyleSizeLength::ofStretch();
} else {
assert(
handle.type() == StyleValueHandle::Type::Point ||
handle.type() == StyleValueHandle::Type::Percent);
float value = (handle.isValueIndexed())
? std::bit_cast<float>(buffer_.get32(handle.value()))
: unpackInlineInteger(handle.value());
return handle.type() == StyleValueHandle::Type::Point
? StyleSizeLength::points(value)
: StyleSizeLength::percent(value);
}
}
|
O3
|
c
|
facebook::yoga::StyleValuePool::getSize(facebook::yoga::StyleValueHandle) const:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %esi, %ebx
andw $0x7, %bx
je 0x7b3df
movl %esi, %eax
andl $0x7, %eax
cmpl $0x4, %eax
jne 0x7b3e9
movabsq $0x37fc00000, %rax # imm = 0x37FC00000
jmp 0x7b4b7
movl $0x7fc00000, %eax # imm = 0x7FC00000
jmp 0x7b4b7
movl %esi, %eax
andl $0xfff7, %eax # imm = 0xFFF7
cmpw $0x5, %ax
jne 0x7b405
movabsq $0x47fc00000, %rax # imm = 0x47FC00000
jmp 0x7b4b7
movzwl %si, %eax
shrl $0x4, %eax
movzwl %bx, %ecx
xorl $0x5, %ecx
movzwl %ax, %eax
movl %eax, %edx
xorl $0x1, %edx
orw %cx, %dx
jne 0x7b42d
movabsq $0x57fc00000, %rax # imm = 0x57FC00000
jmp 0x7b4b7
movl %eax, %edx
xorl $0x2, %edx
orw %cx, %dx
jne 0x7b443
movabsq $0x67fc00000, %rax # imm = 0x67FC00000
jmp 0x7b4b7
testb $0x8, %sil
jne 0x7b45e
andl $0x7ff, %eax # imm = 0x7FF
movl %eax, %ecx
negl %ecx
testw %si, %si
cmovnsl %eax, %ecx
cvtsi2ss %ecx, %xmm0
jmp 0x7b469
movl %eax, %esi
callq 0x75c44
movd %eax, %xmm0
movd %xmm0, %eax
andl $0x7fffffff, %eax # imm = 0x7FFFFFFF
xorl %ecx, %ecx
cmpw $0x1, %bx
jne 0x7b498
cmpl $0x7f800000, %eax # imm = 0x7F800000
setl %dl
jl 0x7b48c
movd 0x31db7c(%rip), %xmm0 # 0x399008
movd %xmm0, %eax
movb %dl, %cl
shlq $0x20, %rcx
jmp 0x7b4b4
cmpl $0x7f800000, %eax # imm = 0x7F800000
setl %dl
jl 0x7b4aa
movd 0x31db5e(%rip), %xmm0 # 0x399008
movd %xmm0, %eax
movb %dl, %cl
shlq $0x21, %rcx
orq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
_ZNK8facebook4yoga14StyleValuePool7getSizeENS0_16StyleValueHandleE:
push rbp
mov rbp, rsp
push rbx
push rax
mov ebx, esi
and bx, 7
jz short loc_7B3DF
mov eax, esi
and eax, 7
cmp eax, 4
jnz short loc_7B3E9
mov rax, 37FC00000h
jmp loc_7B4B7
loc_7B3DF:
mov eax, 7FC00000h
jmp loc_7B4B7
loc_7B3E9:
mov eax, esi
and eax, 0FFF7h
cmp ax, 5
jnz short loc_7B405
mov rax, 47FC00000h
jmp loc_7B4B7
loc_7B405:
movzx eax, si
shr eax, 4
movzx ecx, bx
xor ecx, 5
movzx eax, ax
mov edx, eax
xor edx, 1
or dx, cx
jnz short loc_7B42D
mov rax, 57FC00000h
jmp loc_7B4B7
loc_7B42D:
mov edx, eax
xor edx, 2
or dx, cx
jnz short loc_7B443
mov rax, 67FC00000h
jmp short loc_7B4B7
loc_7B443:
test sil, 8
jnz short loc_7B45E
and eax, 7FFh
mov ecx, eax
neg ecx
test si, si
cmovns ecx, eax
cvtsi2ss xmm0, ecx
jmp short loc_7B469
loc_7B45E:
mov esi, eax
call _ZNK8facebook4yoga16SmallValueBufferILm4EE5get32Et; facebook::yoga::SmallValueBuffer<4ul>::get32(ushort)
movd xmm0, eax
loc_7B469:
movd eax, xmm0
and eax, 7FFFFFFFh
xor ecx, ecx
cmp bx, 1
jnz short loc_7B498
cmp eax, 7F800000h
setl dl
jl short loc_7B48C
movd xmm0, cs:dword_399008
loc_7B48C:
movd eax, xmm0
mov cl, dl
shl rcx, 20h
jmp short loc_7B4B4
loc_7B498:
cmp eax, 7F800000h
setl dl
jl short loc_7B4AA
movd xmm0, cs:dword_399008
loc_7B4AA:
movd eax, xmm0
mov cl, dl
shl rcx, 21h
loc_7B4B4:
or rax, rcx
loc_7B4B7:
add rsp, 8
pop rbx
pop rbp
retn
|
long long facebook::yoga::StyleValuePool::getSize(long long a1, unsigned __int16 a2, __m128i a3)
{
unsigned __int16 v3; // bx
unsigned __int16 v5; // ax
int v6; // eax
int v7; // ecx
int v8; // eax
long long v9; // rcx
bool v10; // dl
long long v11; // rax
long long v12; // rcx
bool v13; // dl
v3 = a2 & 7;
if ( (a2 & 7) == 0 )
return 2143289344LL;
if ( (a2 & 7) == 4 )
return 0x37FC00000LL;
if ( (a2 & 0xFFF7) == 5 )
return 0x47FC00000LL;
v5 = a2 >> 4;
if ( !(v3 ^ 5 | (a2 >> 4) ^ 1) )
return 0x57FC00000LL;
if ( !(v3 ^ 5 | v5 ^ 2) )
return 0x67FC00000LL;
if ( (a2 & 8) != 0 )
{
a3 = _mm_cvtsi32_si128(facebook::yoga::SmallValueBuffer<4ul>::get32(a1, a2 >> 4));
}
else
{
v6 = v5 & 0x7FF;
v7 = -v6;
if ( (a2 & 0x8000u) == 0 )
v7 = v6;
*(float *)a3.m128i_i32 = (float)v7;
}
v8 = _mm_cvtsi128_si32(a3) & 0x7FFFFFFF;
v9 = 0LL;
if ( v3 == 1 )
{
v10 = v8 < 2139095040;
if ( v8 >= 2139095040 )
a3 = _mm_cvtsi32_si128(0x7FC00000u);
v11 = (unsigned int)_mm_cvtsi128_si32(a3);
LOBYTE(v9) = v10;
v12 = v9 << 32;
}
else
{
v13 = v8 < 2139095040;
if ( v8 >= 2139095040 )
a3 = _mm_cvtsi32_si128(0x7FC00000u);
v11 = (unsigned int)_mm_cvtsi128_si32(a3);
LOBYTE(v9) = v13;
v12 = v9 << 33;
}
return v12 | v11;
}
|
getSize:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV EBX,ESI
AND BX,0x7
JZ 0x0017b3df
MOV EAX,ESI
AND EAX,0x7
CMP EAX,0x4
JNZ 0x0017b3e9
MOV RAX,0x37fc00000
JMP 0x0017b4b7
LAB_0017b3df:
MOV EAX,0x7fc00000
JMP 0x0017b4b7
LAB_0017b3e9:
MOV EAX,ESI
AND EAX,0xfff7
CMP AX,0x5
JNZ 0x0017b405
MOV RAX,0x47fc00000
JMP 0x0017b4b7
LAB_0017b405:
MOVZX EAX,SI
SHR EAX,0x4
MOVZX ECX,BX
XOR ECX,0x5
MOVZX EAX,AX
MOV EDX,EAX
XOR EDX,0x1
OR DX,CX
JNZ 0x0017b42d
MOV RAX,0x57fc00000
JMP 0x0017b4b7
LAB_0017b42d:
MOV EDX,EAX
XOR EDX,0x2
OR DX,CX
JNZ 0x0017b443
MOV RAX,0x67fc00000
JMP 0x0017b4b7
LAB_0017b443:
TEST SIL,0x8
JNZ 0x0017b45e
AND EAX,0x7ff
MOV ECX,EAX
NEG ECX
TEST SI,SI
CMOVNS ECX,EAX
CVTSI2SS XMM0,ECX
JMP 0x0017b469
LAB_0017b45e:
MOV ESI,EAX
CALL 0x00175c44
MOVD XMM0,EAX
LAB_0017b469:
MOVD EAX,XMM0
AND EAX,0x7fffffff
XOR ECX,ECX
CMP BX,0x1
JNZ 0x0017b498
CMP EAX,0x7f800000
SETL DL
JL 0x0017b48c
MOVD XMM0,dword ptr [0x00499008]
LAB_0017b48c:
MOVD EAX,XMM0
MOV CL,DL
SHL RCX,0x20
JMP 0x0017b4b4
LAB_0017b498:
CMP EAX,0x7f800000
SETL DL
JL 0x0017b4aa
MOVD XMM0,dword ptr [0x00499008]
LAB_0017b4aa:
MOVD EAX,XMM0
MOV CL,DL
SHL RCX,0x21
LAB_0017b4b4:
OR RAX,RCX
LAB_0017b4b7:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
/* facebook::yoga::StyleValuePool::getSize(facebook::yoga::StyleValueHandle) const */
ulong __thiscall facebook::yoga::StyleValuePool::getSize(StyleValuePool *this,ushort param_2)
{
uint uVar1;
ushort uVar2;
float fVar3;
ulong uVar4;
ushort uVar5;
float fVar6;
if ((param_2 & 7) == 0) {
uVar4 = 0x7fc00000;
}
else if ((param_2 & 7) == 4) {
uVar4 = 0x37fc00000;
}
else if ((param_2 & 0xfff7) == 5) {
uVar4 = 0x47fc00000;
}
else {
uVar2 = param_2 >> 4;
uVar5 = param_2 & 7 ^ 5;
if (uVar2 == 1 && uVar5 == 0) {
uVar4 = 0x57fc00000;
}
else if (uVar2 == 2 && uVar5 == 0) {
uVar4 = 0x67fc00000;
}
else {
if ((param_2 & 8) == 0) {
uVar1 = -(uVar2 & 0x7ff);
if (-1 < (short)param_2) {
uVar1 = uVar2 & 0x7ff;
}
fVar6 = (float)(int)uVar1;
}
else {
fVar6 = (float)SmallValueBuffer<4ul>::get32((SmallValueBuffer<4ul> *)this,uVar2);
}
fVar3 = ABS(fVar6);
if ((param_2 & 7) == 1) {
if (0x7f7fffff < (uint)fVar3) {
fVar6 = DAT_00499008;
}
uVar4 = (ulong)((uint)fVar3 < 0x7f800000) << 0x20;
}
else {
if (0x7f7fffff < (uint)fVar3) {
fVar6 = DAT_00499008;
}
uVar4 = (ulong)((uint)fVar3 < 0x7f800000) << 0x21;
}
uVar4 = (uint)fVar6 | uVar4;
}
}
return uVar4;
}
|
|
59,510
|
mysql_find_charset_name
|
eloqsql/libmariadb/libmariadb/ma_charset.c
|
MARIADB_CHARSET_INFO * mysql_find_charset_name(const char *name)
{
MARIADB_CHARSET_INFO *c = (MARIADB_CHARSET_INFO *)mariadb_compiled_charsets;
const char *csname;
if (!strcasecmp(name, MADB_AUTODETECT_CHARSET_NAME))
csname= madb_get_os_character_set();
else
csname= (char *)name;
if (!strcasecmp("utf8",csname))
csname= "utf8mb3";
do {
if (!strcasecmp(c->csname, csname)) {
return(c);
}
++c;
} while (c[0].nr != 0);
return(NULL);
}
|
O0
|
c
|
mysql_find_charset_name:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
leaq 0x1884d(%rip), %rax # 0x76fa0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
leaq 0xead5(%rip), %rsi # 0x6d237
callq 0x14490
cmpl $0x0, %eax
jne 0x5e777
callq 0x5e7f0
movq %rax, -0x20(%rbp)
jmp 0x5e77f
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rsi
leaq 0xeab2(%rip), %rdi # 0x6d23c
callq 0x14490
cmpl $0x0, %eax
jne 0x5e79f
leaq 0xd04a(%rip), %rax # 0x6b7e5
movq %rax, -0x20(%rbp)
jmp 0x5e7a1
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x20(%rbp), %rsi
callq 0x14490
cmpl $0x0, %eax
jne 0x5e7c1
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x5e7de
movq -0x18(%rbp), %rax
addq $0x48, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x5e7a1
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
mysql_find_charset_name:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
lea rax, mariadb_compiled_charsets
mov [rbp+var_18], rax
mov rdi, [rbp+var_10]
lea rsi, aAuto; "auto"
call _strcasecmp
cmp eax, 0
jnz short loc_5E777
call madb_get_os_character_set
mov [rbp+var_20], rax
jmp short loc_5E77F
loc_5E777:
mov rax, [rbp+var_10]
mov [rbp+var_20], rax
loc_5E77F:
mov rsi, [rbp+var_20]
lea rdi, aUtf8; "utf8"
call _strcasecmp
cmp eax, 0
jnz short loc_5E79F
lea rax, aUtf8mb3; "utf8mb3"
mov [rbp+var_20], rax
loc_5E79F:
jmp short $+2
loc_5E7A1:
mov rax, [rbp+var_18]
mov rdi, [rax+8]
mov rsi, [rbp+var_20]
call _strcasecmp
cmp eax, 0
jnz short loc_5E7C1
mov rax, [rbp+var_18]
mov [rbp+var_8], rax
jmp short loc_5E7DE
loc_5E7C1:
mov rax, [rbp+var_18]
add rax, 48h ; 'H'
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
cmp dword ptr [rax], 0
jnz short loc_5E7A1
mov [rbp+var_8], 0
loc_5E7DE:
mov rax, [rbp+var_8]
add rsp, 20h
pop rbp
retn
|
_QWORD * mysql_find_charset_name(const char *a1)
{
int v1; // eax
const char *os_character_set; // [rsp+0h] [rbp-20h]
_QWORD *v4; // [rsp+8h] [rbp-18h]
v4 = &mariadb_compiled_charsets;
if ( !(unsigned int)strcasecmp(a1, "auto") )
{
os_character_set = (const char *)madb_get_os_character_set();
v1 = strcasecmp("utf8", os_character_set);
}
else
{
os_character_set = a1;
v1 = strcasecmp("utf8", a1);
}
if ( !v1 )
os_character_set = "utf8mb3";
do
{
if ( !(unsigned int)strcasecmp(v4[1], os_character_set) )
return v4;
v4 += 9;
}
while ( *(_DWORD *)v4 );
return 0LL;
}
|
mysql_find_charset_name:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
LEA RAX,[0x176fa0]
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x16d237]
CALL 0x00114490
CMP EAX,0x0
JNZ 0x0015e777
CALL 0x0015e7f0
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0015e77f
LAB_0015e777:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x20],RAX
LAB_0015e77f:
MOV RSI,qword ptr [RBP + -0x20]
LEA RDI,[0x16d23c]
CALL 0x00114490
CMP EAX,0x0
JNZ 0x0015e79f
LEA RAX,[0x16b7e5]
MOV qword ptr [RBP + -0x20],RAX
LAB_0015e79f:
JMP 0x0015e7a1
LAB_0015e7a1:
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x8]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x00114490
CMP EAX,0x0
JNZ 0x0015e7c1
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0015e7de
LAB_0015e7c1:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x48
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX],0x0
JNZ 0x0015e7a1
MOV qword ptr [RBP + -0x8],0x0
LAB_0015e7de:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x20
POP RBP
RET
|
int * mysql_find_charset_name(char *param_1)
{
int iVar1;
char *local_28;
int *local_20;
local_20 = &mariadb_compiled_charsets;
iVar1 = strcasecmp(param_1,"auto");
local_28 = param_1;
if (iVar1 == 0) {
local_28 = (char *)madb_get_os_character_set();
}
iVar1 = strcasecmp("utf8",local_28);
if (iVar1 == 0) {
local_28 = "utf8mb3";
}
do {
iVar1 = strcasecmp(*(char **)(local_20 + 2),local_28);
if (iVar1 == 0) {
return local_20;
}
local_20 = local_20 + 0x12;
} while (*local_20 != 0);
return (int *)0x0;
}
|
|
59,511
|
getopt_double
|
eloqsql/mysys/my_getopt.c
|
static double getopt_double(char *arg, const struct my_option *optp, int *err)
{
double num;
int error;
char *end= arg + 1000; /* Big enough as *arg is \0 terminated */
num= my_strtod(arg, &end, &error);
if (end[0] != 0 || error)
{
my_getopt_error_reporter(ERROR_LEVEL,
"Invalid decimal value for option '%s'\n", optp->name);
*err= EXIT_ARGUMENT_INVALID;
return 0.0;
}
return getopt_double_limit_value(num, optp, NULL);
}
|
O0
|
c
|
getopt_double:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
addq $0x3e8, %rax # imm = 0x3E8
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x38(%rbp), %rsi
leaq -0x2c(%rbp), %rdx
callq 0xc3ef0
movsd %xmm0, -0x28(%rbp)
movq -0x38(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x7e57a
cmpl $0x0, -0x2c(%rbp)
je 0x7e5ac
leaq 0x1b952f(%rip), %rax # 0x237ab0
movq (%rax), %rcx
movq -0x18(%rbp), %rax
movq (%rax), %rdx
xorl %edi, %edi
leaq 0x545ad(%rip), %rsi # 0xd2b41
movb $0x0, %al
callq *%rcx
movq -0x20(%rbp), %rax
movl $0xd, (%rax)
xorps %xmm0, %xmm0
movsd %xmm0, -0x8(%rbp)
jmp 0x7e5c3
movsd -0x28(%rbp), %xmm0
movq -0x18(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x7d450
movsd %xmm0, -0x8(%rbp)
movsd -0x8(%rbp), %xmm0
addq $0x40, %rsp
popq %rbp
retq
nop
|
getopt_double:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
add rax, 3E8h
mov [rbp+var_38], rax
mov rdi, [rbp+var_10]
lea rsi, [rbp+var_38]
lea rdx, [rbp+var_2C]
call my_strtod
movsd [rbp+var_28], xmm0
mov rax, [rbp+var_38]
movsx eax, byte ptr [rax]
cmp eax, 0
jnz short loc_7E57A
cmp [rbp+var_2C], 0
jz short loc_7E5AC
loc_7E57A:
lea rax, my_getopt_error_reporter
mov rcx, [rax]
mov rax, [rbp+var_18]
mov rdx, [rax]
xor edi, edi
lea rsi, aInvalidDecimal; "Invalid decimal value for option '%s'\n"
mov al, 0
call rcx
mov rax, [rbp+var_20]
mov dword ptr [rax], 0Dh
xorps xmm0, xmm0
movsd [rbp+var_8], xmm0
jmp short loc_7E5C3
loc_7E5AC:
movsd xmm0, [rbp+var_28]
mov rdi, [rbp+var_18]
xor eax, eax
mov esi, eax
call getopt_double_limit_value
movsd [rbp+var_8], xmm0
loc_7E5C3:
movsd xmm0, [rbp+var_8]
add rsp, 40h
pop rbp
retn
|
double getopt_double(long long a1, const char **a2, _DWORD *a3)
{
_BYTE *v4; // [rsp+8h] [rbp-38h] BYREF
int v5; // [rsp+14h] [rbp-2Ch] BYREF
double v6; // [rsp+18h] [rbp-28h]
_DWORD *v7; // [rsp+20h] [rbp-20h]
const char **v8; // [rsp+28h] [rbp-18h]
long long v9; // [rsp+30h] [rbp-10h]
v9 = a1;
v8 = a2;
v7 = a3;
v4 = (_BYTE *)(a1 + 1000);
v6 = my_strtod(a1, &v4, &v5);
if ( !*v4 && !v5 )
return getopt_double_limit_value(v8, 0LL, v6);
my_getopt_error_reporter(0, (long long)"Invalid decimal value for option '%s'\n", *v8);
*v7 = 13;
return 0.0;
}
|
getopt_double:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x3e8
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[RBP + -0x38]
LEA RDX,[RBP + -0x2c]
CALL 0x001c3ef0
MOVSD qword ptr [RBP + -0x28],XMM0
MOV RAX,qword ptr [RBP + -0x38]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JNZ 0x0017e57a
CMP dword ptr [RBP + -0x2c],0x0
JZ 0x0017e5ac
LAB_0017e57a:
LEA RAX,[0x337ab0]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RAX]
XOR EDI,EDI
LEA RSI,[0x1d2b41]
MOV AL,0x0
CALL RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0xd
XORPS XMM0,XMM0
MOVSD qword ptr [RBP + -0x8],XMM0
JMP 0x0017e5c3
LAB_0017e5ac:
MOVSD XMM0,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RBP + -0x18]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x0017d450
MOVSD qword ptr [RBP + -0x8],XMM0
LAB_0017e5c3:
MOVSD XMM0,qword ptr [RBP + -0x8]
ADD RSP,0x40
POP RBP
RET
|
int8 getopt_double(long param_1,int8 *param_2,int4 *param_3)
{
char *local_40;
int local_34;
int8 local_30;
int4 *local_28;
int8 *local_20;
long local_18;
int8 local_10;
local_40 = (char *)(param_1 + 1000);
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
local_30 = my_strtod(param_1,&local_40,&local_34);
if ((*local_40 == '\0') && (local_34 == 0)) {
local_10 = getopt_double_limit_value(local_30,local_20,0);
}
else {
(*(code *)my_getopt_error_reporter)(0,"Invalid decimal value for option \'%s\'\n",*local_20);
*local_28 = 0xd;
local_10 = 0;
}
return local_10;
}
|
|
59,512
|
maria_enable_indexes
|
eloqsql/storage/maria/ma_open.c
|
int maria_enable_indexes(MARIA_HA *info)
{
int error= 0;
MARIA_SHARE *share= info->s;
DBUG_ENTER("maria_enable_indexes");
if ((share->state.state.data_file_length !=
(share->data_file_type == BLOCK_RECORD ? share->block_size : 0)) ||
(share->state.state.key_file_length != share->base.keystart))
{
DBUG_PRINT("error", ("data_file_length: %lu key_file_length: %lu",
(ulong) share->state.state.data_file_length,
(ulong) share->state.state.key_file_length));
_ma_set_fatal_error(info, HA_ERR_CRASHED);
error= HA_ERR_CRASHED;
}
else
maria_set_all_keys_active(share->state.key_map, share->base.keys);
DBUG_RETURN(error);
}
|
O0
|
c
|
maria_enable_indexes:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x3, 0x7d0(%rax)
jne 0x68466
movq -0x18(%rbp), %rax
movl 0x7bc(%rax), %eax
movl %eax, -0x24(%rbp)
jmp 0x6846d
xorl %eax, %eax
movl %eax, -0x24(%rbp)
jmp 0x6846d
movq -0x20(%rbp), %rax
movl -0x24(%rbp), %ecx
movl %ecx, %ecx
cmpq %rcx, %rax
jne 0x68490
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x360(%rcx), %rax
je 0x684ab
jmp 0x68492
jmp 0x68494
movq -0x8(%rbp), %rdi
movl $0x7e, %esi
callq 0x2e940
movl $0x7e, -0xc(%rbp)
jmp 0x684f2
movq -0x18(%rbp), %rax
cmpl $0x40, 0x3e8(%rax)
jae 0x684d6
movq -0x18(%rbp), %rax
movl 0x3e8(%rax), %eax
movl %eax, %ecx
movl $0x1, %eax
shlq %cl, %rax
subq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x684e3
movq $-0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x684e3
movq -0x30(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x140(%rax)
jmp 0x684f4
movl -0xc(%rbp), %eax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
maria_enable_indexes:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_C], 0
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov rax, [rax+40h]
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
cmp dword ptr [rax+7D0h], 3
jnz short loc_68466
mov rax, [rbp+var_18]
mov eax, [rax+7BCh]
mov [rbp+var_24], eax
jmp short loc_6846D
loc_68466:
xor eax, eax
mov [rbp+var_24], eax
jmp short $+2
loc_6846D:
mov rax, [rbp+var_20]
mov ecx, [rbp+var_24]
mov ecx, ecx
cmp rax, rcx
jnz short loc_68490
mov rax, [rbp+var_18]
mov rax, [rax+38h]
mov rcx, [rbp+var_18]
cmp rax, [rcx+360h]
jz short loc_684AB
loc_68490:
jmp short $+2
loc_68492:
jmp short $+2
loc_68494:
mov rdi, [rbp+var_8]
mov esi, 7Eh ; '~'
call _ma_set_fatal_error
mov [rbp+var_C], 7Eh ; '~'
jmp short loc_684F2
loc_684AB:
mov rax, [rbp+var_18]
cmp dword ptr [rax+3E8h], 40h ; '@'
jnb short loc_684D6
mov rax, [rbp+var_18]
mov eax, [rax+3E8h]
mov ecx, eax
mov eax, 1
shl rax, cl
sub rax, 1
mov [rbp+var_30], rax
jmp short loc_684E3
loc_684D6:
mov rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_30], rax
jmp short $+2
loc_684E3:
mov rcx, [rbp+var_30]
mov rax, [rbp+var_18]
mov [rax+140h], rcx
loc_684F2:
jmp short $+2
loc_684F4:
mov eax, [rbp+var_C]
mov [rbp+var_34], eax
mov eax, [rbp+var_34]
add rsp, 40h
pop rbp
retn
|
long long maria_enable_indexes(_DWORD *a1, long long a2, long long a3, long long a4, long long a5, int a6)
{
long long v6; // rcx
long long v8; // [rsp+10h] [rbp-30h]
unsigned int v9; // [rsp+1Ch] [rbp-24h]
long long v10; // [rsp+28h] [rbp-18h]
unsigned int v11; // [rsp+34h] [rbp-Ch]
v11 = 0;
v10 = *(_QWORD *)a1;
if ( *(_DWORD *)(*(_QWORD *)a1 + 2000LL) == 3 )
v9 = *(_DWORD *)(v10 + 1980);
else
v9 = 0;
v6 = v9;
if ( *(_QWORD *)(*(_QWORD *)a1 + 64LL) == v9 && (v6 = *(_QWORD *)a1, *(_QWORD *)(v10 + 56) == *(_QWORD *)(v10 + 864)) )
{
if ( *(_DWORD *)(v10 + 1000) >= 0x40u )
v8 = -1LL;
else
v8 = (1LL << *(_DWORD *)(v10 + 1000)) - 1;
*(_QWORD *)(v10 + 320) = v8;
}
else
{
ma_set_fatal_error(a1, 126, a3, v6, a5, a6);
return 126;
}
return v11;
}
|
maria_enable_indexes:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x40]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX + 0x7d0],0x3
JNZ 0x00168466
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x7bc]
MOV dword ptr [RBP + -0x24],EAX
JMP 0x0016846d
LAB_00168466:
XOR EAX,EAX
MOV dword ptr [RBP + -0x24],EAX
JMP 0x0016846d
LAB_0016846d:
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x24]
MOV ECX,ECX
CMP RAX,RCX
JNZ 0x00168490
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RCX + 0x360]
JZ 0x001684ab
LAB_00168490:
JMP 0x00168492
LAB_00168492:
JMP 0x00168494
LAB_00168494:
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x7e
CALL 0x0012e940
MOV dword ptr [RBP + -0xc],0x7e
JMP 0x001684f2
LAB_001684ab:
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX + 0x3e8],0x40
JNC 0x001684d6
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x3e8]
MOV ECX,EAX
MOV EAX,0x1
SHL RAX,CL
SUB RAX,0x1
MOV qword ptr [RBP + -0x30],RAX
JMP 0x001684e3
LAB_001684d6:
MOV RAX,-0x1
MOV qword ptr [RBP + -0x30],RAX
JMP 0x001684e3
LAB_001684e3:
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x140],RCX
LAB_001684f2:
JMP 0x001684f4
LAB_001684f4:
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x34],EAX
MOV EAX,dword ptr [RBP + -0x34]
ADD RSP,0x40
POP RBP
RET
|
int4 maria_enable_indexes(long *param_1)
{
long lVar1;
int8 local_38;
int4 local_2c;
int4 local_14;
local_14 = 0;
lVar1 = *param_1;
if (*(int *)(lVar1 + 2000) == 3) {
local_2c = *(uint *)(lVar1 + 0x7bc);
}
else {
local_2c = 0;
}
if ((*(ulong *)(lVar1 + 0x40) == (ulong)local_2c) &&
(*(long *)(lVar1 + 0x38) == *(long *)(lVar1 + 0x360))) {
if (*(uint *)(lVar1 + 1000) < 0x40) {
local_38 = (1L << ((byte)*(int4 *)(lVar1 + 1000) & 0x3f)) + -1;
}
else {
local_38 = -1;
}
*(long *)(lVar1 + 0x140) = local_38;
}
else {
_ma_set_fatal_error(param_1,0x7e);
local_14 = 0x7e;
}
return local_14;
}
|
|
59,513
|
js__pstrcpy
|
bluesky950520[P]quickjs/cutils.c
|
void js__pstrcpy(char *buf, int buf_size, const char *str)
{
int c;
char *q = buf;
if (buf_size <= 0)
return;
for(;;) {
c = *str++;
if (c == 0 || q >= buf + buf_size - 1)
break;
*q++ = c;
}
*q = '\0';
}
|
O0
|
c
|
js__pstrcpy:
movq %rdi, -0x8(%rsp)
movl %esi, -0xc(%rsp)
movq %rdx, -0x18(%rsp)
movq -0x8(%rsp), %rax
movq %rax, -0x28(%rsp)
cmpl $0x0, -0xc(%rsp)
jg 0x1cea1
jmp 0x1cf02
jmp 0x1cea3
movq -0x18(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rsp)
movzbl (%rax), %eax
movl %eax, -0x1c(%rsp)
cmpl $0x0, -0x1c(%rsp)
je 0x1cedd
movq -0x28(%rsp), %rax
movq -0x8(%rsp), %rcx
movslq -0xc(%rsp), %rdx
addq %rdx, %rcx
addq $-0x1, %rcx
cmpq %rcx, %rax
jb 0x1cedf
jmp 0x1cefa
movl -0x1c(%rsp), %eax
movb %al, %cl
movq -0x28(%rsp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x28(%rsp)
movb %cl, (%rax)
jmp 0x1cea3
movq -0x28(%rsp), %rax
movb $0x0, (%rax)
retq
nopw %cs:(%rax,%rax)
|
js__pstrcpy:
mov [rsp+var_8], rdi
mov [rsp+var_C], esi
mov [rsp+var_18], rdx
mov rax, [rsp+var_8]
mov [rsp+var_28], rax
cmp [rsp+var_C], 0
jg short loc_1CEA1
jmp short locret_1CF02
loc_1CEA1:
jmp short $+2
loc_1CEA3:
mov rax, [rsp+var_18]
mov rcx, rax
add rcx, 1
mov [rsp+var_18], rcx
movzx eax, byte ptr [rax]
mov [rsp+var_1C], eax
cmp [rsp+var_1C], 0
jz short loc_1CEDD
mov rax, [rsp+var_28]
mov rcx, [rsp+var_8]
movsxd rdx, [rsp+var_C]
add rcx, rdx
add rcx, 0FFFFFFFFFFFFFFFFh
cmp rax, rcx
jb short loc_1CEDF
loc_1CEDD:
jmp short loc_1CEFA
loc_1CEDF:
mov eax, [rsp+var_1C]
mov cl, al
mov rax, [rsp+var_28]
mov rdx, rax
add rdx, 1
mov [rsp+var_28], rdx
mov [rax], cl
jmp short loc_1CEA3
loc_1CEFA:
mov rax, [rsp+var_28]
mov byte ptr [rax], 0
locret_1CF02:
retn
|
_BYTE * js__pstrcpy(_BYTE *a1, int a2, char *a3)
{
_BYTE *result; // rax
char *v4; // rax
_BYTE *v5; // rax
_BYTE *v6; // [rsp+0h] [rbp-28h]
char v7; // [rsp+Ch] [rbp-1Ch]
result = a1;
v6 = a1;
if ( a2 > 0 )
{
while ( 1 )
{
v4 = a3++;
v7 = *v4;
if ( !*v4 || v6 >= &a1[a2 - 1] )
break;
v5 = v6++;
*v5 = v7;
}
result = v6;
*v6 = 0;
}
return result;
}
|
js__pstrcpy:
MOV qword ptr [RSP + -0x8],RDI
MOV dword ptr [RSP + -0xc],ESI
MOV qword ptr [RSP + -0x18],RDX
MOV RAX,qword ptr [RSP + -0x8]
MOV qword ptr [RSP + -0x28],RAX
CMP dword ptr [RSP + -0xc],0x0
JG 0x0011cea1
JMP 0x0011cf02
LAB_0011cea1:
JMP 0x0011cea3
LAB_0011cea3:
MOV RAX,qword ptr [RSP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RSP + -0x18],RCX
MOVZX EAX,byte ptr [RAX]
MOV dword ptr [RSP + -0x1c],EAX
CMP dword ptr [RSP + -0x1c],0x0
JZ 0x0011cedd
MOV RAX,qword ptr [RSP + -0x28]
MOV RCX,qword ptr [RSP + -0x8]
MOVSXD RDX,dword ptr [RSP + -0xc]
ADD RCX,RDX
ADD RCX,-0x1
CMP RAX,RCX
JC 0x0011cedf
LAB_0011cedd:
JMP 0x0011cefa
LAB_0011cedf:
MOV EAX,dword ptr [RSP + -0x1c]
MOV CL,AL
MOV RAX,qword ptr [RSP + -0x28]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RSP + -0x28],RDX
MOV byte ptr [RAX],CL
JMP 0x0011cea3
LAB_0011cefa:
MOV RAX,qword ptr [RSP + -0x28]
MOV byte ptr [RAX],0x0
LAB_0011cf02:
RET
|
void js__pstrcpy(char *param_1,int param_2,char *param_3)
{
char *local_28;
char *local_18;
local_28 = param_1;
local_18 = param_3;
if (0 < param_2) {
while( true ) {
if ((*local_18 == '\0') || (param_1 + (long)param_2 + -1 <= local_28)) break;
*local_28 = *local_18;
local_28 = local_28 + 1;
local_18 = local_18 + 1;
}
*local_28 = '\0';
}
return;
}
|
|
59,514
|
js__pstrcpy
|
bluesky950520[P]quickjs/cutils.c
|
void js__pstrcpy(char *buf, int buf_size, const char *str)
{
int c;
char *q = buf;
if (buf_size <= 0)
return;
for(;;) {
c = *str++;
if (c == 0 || q >= buf + buf_size - 1)
break;
*q++ = c;
}
*q = '\0';
}
|
O3
|
c
|
js__pstrcpy:
testl %esi, %esi
jle 0x1af5d
movl %esi, %eax
addq %rdi, %rax
decq %rax
movb (%rdx), %cl
testb %cl, %cl
setne %sil
cmpq %rdi, %rax
seta %r8b
andb %sil, %r8b
cmpb $0x1, %r8b
jne 0x1af5a
incq %rdx
movb %cl, (%rdi)
incq %rdi
movb (%rdx), %cl
testb %cl, %cl
je 0x1af5a
incq %rdx
cmpq %rax, %rdi
jb 0x1af47
movb $0x0, (%rdi)
retq
|
js__pstrcpy:
test esi, esi
jle short locret_1AF5D
mov eax, esi
add rax, rdi
dec rax
mov cl, [rdx]
test cl, cl
setnz sil
cmp rax, rdi
setnbe r8b
and r8b, sil
cmp r8b, 1
jnz short loc_1AF5A
inc rdx
loc_1AF47:
mov [rdi], cl
inc rdi
mov cl, [rdx]
test cl, cl
jz short loc_1AF5A
inc rdx
cmp rdi, rax
jb short loc_1AF47
loc_1AF5A:
mov byte ptr [rdi], 0
locret_1AF5D:
retn
|
void js__pstrcpy(_BYTE *a1, int a2, char *a3)
{
unsigned long long v3; // rax
char v4; // cl
char *v5; // rdx
if ( a2 > 0 )
{
v3 = (unsigned long long)&a1[a2 - 1];
v4 = *a3;
if ( *a3 != 0 && v3 > (unsigned long long)a1 )
{
v5 = a3 + 1;
do
{
*a1++ = v4;
v4 = *v5;
if ( !*v5 )
break;
++v5;
}
while ( (unsigned long long)a1 < v3 );
}
*a1 = 0;
}
}
|
js__pstrcpy:
TEST ESI,ESI
JLE 0x0011af5d
MOV EAX,ESI
ADD RAX,RDI
DEC RAX
MOV CL,byte ptr [RDX]
TEST CL,CL
SETNZ SIL
CMP RAX,RDI
SETA R8B
AND R8B,SIL
CMP R8B,0x1
JNZ 0x0011af5a
INC RDX
LAB_0011af47:
MOV byte ptr [RDI],CL
INC RDI
MOV CL,byte ptr [RDX]
TEST CL,CL
JZ 0x0011af5a
INC RDX
CMP RDI,RAX
JC 0x0011af47
LAB_0011af5a:
MOV byte ptr [RDI],0x0
LAB_0011af5d:
RET
|
void js__pstrcpy(char *param_1,uint param_2,char *param_3)
{
char *pcVar1;
char cVar2;
if (0 < (int)param_2) {
pcVar1 = param_1 + ((ulong)param_2 - 1);
cVar2 = *param_3;
if (param_1 < pcVar1 && cVar2 != '\0') {
param_3 = param_3 + 1;
do {
*param_1 = cVar2;
param_1 = param_1 + 1;
cVar2 = *param_3;
if (cVar2 == '\0') break;
param_3 = param_3 + 1;
} while (param_1 < pcVar1);
}
*param_1 = '\0';
}
return;
}
|
|
59,515
|
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::next_byte_in_range(std::initializer_list<int>)
|
monkey531[P]llama/common/json.hpp
|
bool next_byte_in_range(std::initializer_list<char_int_type> ranges)
{
JSON_ASSERT(ranges.size() == 2 || ranges.size() == 4 || ranges.size() == 6);
add(current);
for (auto range = ranges.begin(); range != ranges.end(); ++range)
{
get();
if (JSON_HEDLEY_LIKELY(*range <= current && current <= *(++range))) // NOLINT(bugprone-inc-dec-in-conditions)
{
add(current);
}
else
{
error_message = "invalid string: ill-formed UTF-8 byte";
return false;
}
}
return true;
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::next_byte_in_range(std::initializer_list<int>):
pushq %rbx
subq $0x10, %rsp
cmpq $0x6, %rdx
ja 0x8a98d
movl $0x54, %eax
btq %rdx, %rax
jae 0x8a98d
leaq 0xf(%rsp), %rbx
movq %rbx, %rcx
callq 0x1f258
movb (%rbx), %al
andb $0x1, %al
addq $0x10, %rsp
popq %rbx
retq
leaq 0x87a08(%rip), %rdi # 0x11239c
leaq 0x800d8(%rip), %rdx # 0x10aa73
leaq 0x8874c(%rip), %rcx # 0x1130ee
movl $0x1da8, %esi # imm = 0x1DA8
xorl %eax, %eax
callq 0x1e500
|
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18next_byte_in_rangeESt16initializer_listIiE:
push rbx
sub rsp, 10h
cmp rdx, 6
ja short loc_8A98D
mov eax, 54h ; 'T'
bt rax, rdx
jnb short loc_8A98D
lea rbx, [rsp+18h+var_9]
mov rcx, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18next_byte_in_rangeESt16initializer_listIiE_cold_1; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::next_byte_in_range(std::initializer_list<int>) [clone]
mov al, [rbx]
and al, 1
add rsp, 10h
pop rbx
retn
loc_8A98D:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRangesSize2Ran; "ranges.size() == 2 || ranges.size() == "...
mov esi, 1DA8h
xor eax, eax
call _ggml_abort
|
char nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::next_byte_in_range(
__m128i *a1,
__int32 *a2,
unsigned long long a3)
{
long long v3; // rax
long long v5; // rdx
long long v6; // rcx
char v7[9]; // [rsp+Fh] [rbp-9h] BYREF
if ( a3 <= 6 && (v3 = 84LL, _bittest64(&v3, a3)) )
{
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::next_byte_in_range(
a1,
a2,
a3,
v7);
return v7[0] & 1;
}
else
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7592LL,
"GGML_ASSERT(%s) failed",
"ranges.size() == 2 || ranges.size() == 4 || ranges.size() == 6");
return nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_sax_dom_callback_parser(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7592LL,
v5,
v6);
}
}
|
next_byte_in_range:
PUSH RBX
SUB RSP,0x10
CMP RDX,0x6
JA 0x0018a98d
MOV EAX,0x54
BT RAX,RDX
JNC 0x0018a98d
LEA RBX,[RSP + 0xf]
MOV RCX,RBX
CALL 0x0011f258
MOV AL,byte ptr [RBX]
AND AL,0x1
ADD RSP,0x10
POP RBX
RET
LAB_0018a98d:
LEA RDI,[0x21239c]
LEA RDX,[0x20aa73]
LEA RCX,[0x2130ee]
MOV ESI,0x1da8
XOR EAX,EAX
CALL 0x0011e500
|
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::next_byte_in_range(std::initializer_list<int>) */
ulong nlohmann::json_abi_v3_11_3::detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::next_byte_in_range(int8 param_1,int8 param_2,ulong param_3)
{
int8 uVar1;
int1 local_9;
if ((param_3 < 7) && ((0x54UL >> (param_3 & 0x3f) & 1) != 0)) {
uVar1 = next_byte_in_range();
return CONCAT71((int7)((ulong)uVar1 >> 8),local_9) & 0xffffffffffffff01;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1da8,
"GGML_ASSERT(%s) failed",
"ranges.size() == 2 || ranges.size() == 4 || ranges.size() == 6");
}
|
|
59,516
|
vsort
|
davidesantangelo[P]vsort/vsort.c
|
VSORT_API void vsort(int arr[], int n)
{
vsort_init(); // Ensure library is initialized
if (!arr || n <= 1)
return;
vsort_log_debug("Starting vsort (int) for %d elements.", n);
// Choose strategy based on size and platform capabilities
if (n < thresholds.parallel_threshold)
{
vsort_sequential_int(arr, n);
}
else
{
#if defined(VSORT_APPLE) && defined(__arm64__)
vsort_parallel_int(arr, n);
#else
vsort_log_info("Parallel sort not available on this platform, using sequential.");
vsort_sequential_int(arr, n);
#endif
}
vsort_log_debug("vsort (int) completed for %d elements.", n);
}
|
O0
|
c
|
vsort:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl %esi, 0xc(%rsp)
callq 0x1550
cmpq $0x0, 0x10(%rsp)
je 0x1691
cmpl $0x1, 0xc(%rsp)
jg 0x1693
jmp 0x16ef
movl 0xc(%rsp), %esi
leaq 0x3af8(%rip), %rdi # 0x5196
movb $0x0, %al
callq 0x4240
movl 0xc(%rsp), %eax
cmpl 0x6a29(%rip), %eax # 0x80d8
jge 0x16c1
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %esi
callq 0x1700
jmp 0x16dd
leaq 0x3af4(%rip), %rdi # 0x51bc
movb $0x0, %al
callq 0x4190
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %esi
callq 0x1700
movl 0xc(%rsp), %esi
leaq 0x3b14(%rip), %rdi # 0x51fc
movb $0x0, %al
callq 0x4240
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
|
vsort:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov [rsp+18h+var_C], esi
call vsort_init
cmp [rsp+18h+var_8], 0
jz short loc_1691
cmp [rsp+18h+var_C], 1
jg short loc_1693
loc_1691:
jmp short loc_16EF
loc_1693:
mov esi, [rsp+18h+var_C]
lea rdi, aStartingVsortI; "Starting vsort (int) for %d elements."
mov al, 0
call vsort_log_debug
mov eax, [rsp+18h+var_C]
cmp eax, cs:dword_80D8
jge short loc_16C1
mov rdi, [rsp+18h+var_8]
mov esi, [rsp+18h+var_C]
call vsort_sequential_int
jmp short loc_16DD
loc_16C1:
lea rdi, aParallelSortNo; "Parallel sort not available on this pla"...
mov al, 0
call vsort_log_info
mov rdi, [rsp+18h+var_8]
mov esi, [rsp+18h+var_C]
call vsort_sequential_int
loc_16DD:
mov esi, [rsp+18h+var_C]
lea rdi, aVsortIntComple; "vsort (int) completed for %d elements."
mov al, 0
call vsort_log_debug
loc_16EF:
add rsp, 18h
retn
|
long long vsort(long long a1, int a2)
{
int v2; // edx
int v3; // ecx
int v4; // r8d
int v5; // r9d
int v6; // edx
int v7; // ecx
int v8; // r8d
int v9; // r9d
int v10; // edx
int v11; // ecx
int v12; // r8d
int v13; // r9d
long long result; // rax
vsort_init();
if ( a1 && a2 > 1 )
{
vsort_log_debug((unsigned int)"Starting vsort (int) for %d elements.", a2, v2, v3, v4, v5);
if ( a2 >= dword_80D8 )
vsort_log_info(
(unsigned int)"Parallel sort not available on this platform, using sequential.",
a2,
v6,
v7,
v8,
v9);
vsort_sequential_int(a1, (unsigned int)a2);
return vsort_log_debug((unsigned int)"vsort (int) completed for %d elements.", a2, v10, v11, v12, v13);
}
return result;
}
|
vsort:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV dword ptr [RSP + 0xc],ESI
CALL 0x00101550
CMP qword ptr [RSP + 0x10],0x0
JZ 0x00101691
CMP dword ptr [RSP + 0xc],0x1
JG 0x00101693
LAB_00101691:
JMP 0x001016ef
LAB_00101693:
MOV ESI,dword ptr [RSP + 0xc]
LEA RDI,[0x104196]
MOV AL,0x0
CALL 0x00103a10
MOV EAX,dword ptr [RSP + 0xc]
CMP EAX,dword ptr [0x001060c8]
JGE 0x001016c1
MOV RDI,qword ptr [RSP + 0x10]
MOV ESI,dword ptr [RSP + 0xc]
CALL 0x00101700
JMP 0x001016dd
LAB_001016c1:
LEA RDI,[0x1041bc]
MOV AL,0x0
CALL 0x00103960
MOV RDI,qword ptr [RSP + 0x10]
MOV ESI,dword ptr [RSP + 0xc]
CALL 0x00101700
LAB_001016dd:
MOV ESI,dword ptr [RSP + 0xc]
LEA RDI,[0x1041fc]
MOV AL,0x0
CALL 0x00103a10
LAB_001016ef:
ADD RSP,0x18
RET
|
void vsort(long param_1,int param_2)
{
vsort_init();
if ((param_1 != 0) && (1 < param_2)) {
vsort_log_debug("Starting vsort (int) for %d elements.",param_2);
if (param_2 < DAT_001060c8) {
vsort_sequential_int(param_1,param_2);
}
else {
vsort_log_info("Parallel sort not available on this platform, using sequential.");
vsort_sequential_int(param_1,param_2);
}
vsort_log_debug("vsort (int) completed for %d elements.",param_2);
}
return;
}
|
|
59,517
|
vsort
|
davidesantangelo[P]vsort/vsort.c
|
VSORT_API void vsort(int arr[], int n)
{
vsort_init(); // Ensure library is initialized
if (!arr || n <= 1)
return;
vsort_log_debug("Starting vsort (int) for %d elements.", n);
// Choose strategy based on size and platform capabilities
if (n < thresholds.parallel_threshold)
{
vsort_sequential_int(arr, n);
}
else
{
#if defined(VSORT_APPLE) && defined(__arm64__)
vsort_parallel_int(arr, n);
#else
vsort_log_info("Parallel sort not available on this platform, using sequential.");
vsort_sequential_int(arr, n);
#endif
}
vsort_log_debug("vsort (int) completed for %d elements.", n);
}
|
O3
|
c
|
vsort:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
callq 0x1588
testq %r14, %r14
sete %al
cmpl $0x2, %ebx
setl %cl
orb %al, %cl
je 0x11c6
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x1fc6(%rip), %rdi # 0x3193
movl %ebx, %esi
xorl %eax, %eax
callq 0x2976
cmpl %ebx, 0x4f04(%rip) # 0x60e0
jg 0x11ec
leaq 0x1fd4(%rip), %rdi # 0x31b9
xorl %eax, %eax
callq 0x28e3
movq %r14, %rdi
movl %ebx, %esi
callq 0x1c51
leaq 0x1ffc(%rip), %rdi # 0x31f9
movl %ebx, %esi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2976
|
vsort:
push r14
push rbx
push rax
mov ebx, esi
mov r14, rdi
call vsort_init
test r14, r14
setz al
cmp ebx, 2
setl cl
or cl, al
jz short loc_11C6
add rsp, 8
pop rbx
pop r14
retn
loc_11C6:
lea rdi, aStartingVsortI; "Starting vsort (int) for %d elements."
mov esi, ebx
xor eax, eax
call vsort_log_debug
cmp cs:thresholds_2, ebx
jg short loc_11EC
lea rdi, aParallelSortNo; "Parallel sort not available on this pla"...
xor eax, eax
call vsort_log_info
loc_11EC:
mov rdi, r14
mov esi, ebx
call vsort_sequential_int
lea rdi, aVsortIntComple; "vsort (int) completed for %d elements."
mov esi, ebx
xor eax, eax
add rsp, 8
pop rbx
pop r14
jmp vsort_log_debug
|
char vsort(long long a1, int a2, long long a3, long long a4, long long a5, long long a6, char a7)
{
char v7; // al
int v8; // edx
int v9; // r8d
int v10; // r9d
char result; // al
int v12; // ecx
int v13; // edx
int v14; // ecx
int v15; // r8d
int v16; // r9d
int v17; // edx
int v18; // ecx
int v19; // r8d
int v20; // r9d
char v21; // [rsp-8h] [rbp-18h]
char v22; // [rsp-8h] [rbp-18h]
v21 = v7;
vsort_init();
result = a1 == 0;
LOBYTE(v12) = a1 == 0 || a2 < 2;
if ( !(_BYTE)v12 )
{
vsort_log_debug((unsigned int)"Starting vsort (int) for %d elements.", a2, v8, v12, v9, v10, v21);
if ( thresholds_2 <= a2 )
vsort_log_info(
(unsigned int)"Parallel sort not available on this platform, using sequential.",
a2,
v13,
v14,
v15,
v16,
v22);
vsort_sequential_int(a1, (unsigned int)a2);
return vsort_log_debug((unsigned int)"vsort (int) completed for %d elements.", a2, v17, v18, v19, v20, a7);
}
return result;
}
|
_start:
ENDBR64
XOR EBP,EBP
MOV R9,RDX
POP RSI
MOV RDX,RSP
AND RSP,-0x10
PUSH RAX
PUSH RSP
XOR R8D,R8D
XOR ECX,ECX
LEA RDI,[0x1012a2]
CALL qword ptr [0x00105fd0]
HLT
|
void processEntry _start(int8 param_1,int8 param_2)
{
int1 auStack_8 [8];
(*(code *)PTR___libc_start_main_00105fd0)(main,param_2,&stack0x00000008,0,0,param_1,auStack_8);
do {
/* WARNING: Do nothing block with infinite loop */
} while( true );
}
|
|
59,518
|
mysql_stmt_send_long_data_start
|
eloqsql/libmariadb/libmariadb/mariadb_async.c
|
int STDCALL
mysql_stmt_send_long_data_start(my_bool *ret, MYSQL_STMT *stmt,
unsigned int param_number,
const char *data, unsigned long length)
{
MK_ASYNC_START_BODY(
mysql_stmt_send_long_data,
stmt->mysql,
{
WIN_SET_NONBLOCKING(stmt->mysql)
parms.stmt= stmt;
parms.param_number= param_number;
parms.data= data;
parms.length= length;
},
TRUE,
r_my_bool,
/* If stmt->mysql==NULL then we will not block so can call directly. */
if (!stmt->mysql)
{
*ret= mysql_stmt_send_long_data(stmt, param_number, data, length);
return 0;
})
}
|
O0
|
c
|
mysql_stmt_send_long_data_start:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x38(%rax)
jne 0x5887e
movq -0x18(%rbp), %rdi
movl -0x1c(%rbp), %esi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
callq 0x46c50
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movl $0x0, -0x4(%rbp)
jmp 0x589a2
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x60(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rax
movb $0x1, 0x14(%rax)
movq -0x40(%rbp), %rdi
addq $0x38, %rdi
leaq 0xe6(%rip), %rsi # 0x589b0
leaq -0x60(%rbp), %rdx
callq 0x59b10
movl %eax, -0x34(%rbp)
movq -0x40(%rbp), %rax
movb $0x0, 0x15(%rax)
movq -0x40(%rbp), %rax
movb $0x0, 0x14(%rax)
cmpl $0x0, -0x34(%rbp)
jle 0x58902
movq -0x40(%rbp), %rax
movb $0x1, 0x15(%rax)
movq -0x40(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x589a2
cmpl $0x0, -0x34(%rbp)
jge 0x5898e
jmp 0x5890e
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movl $0x7d8, 0x90(%rax) # imm = 0x7D8
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rdi
addq $0x297, %rdi # imm = 0x297
leaq 0x2856a(%rip), %rax # 0x80ea0
movq (%rax), %rsi
movl $0x5, %edx
callq 0x14220
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movb $0x0, 0x29c(%rax)
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rdi
addq $0x97, %rdi
leaq 0x28548(%rip), %rax # 0x80eb0
movq 0x40(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x14220
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movb $0x0, 0x296(%rax)
movq -0x10(%rbp), %rax
movb $0x1, (%rax)
jmp 0x5899b
movq -0x40(%rbp), %rax
movb 0x8(%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
mysql_stmt_send_long_data_start:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov rax, [rbp+var_18]
cmp qword ptr [rax+38h], 0
jnz short loc_5887E
mov rdi, [rbp+var_18]
mov esi, [rbp+var_1C]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
call mysql_stmt_send_long_data
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
mov [rbp+var_4], 0
jmp loc_589A2
loc_5887E:
mov rax, [rbp+var_18]
mov rax, [rax+38h]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_40], rax
mov rax, [rbp+var_18]
mov [rbp+var_60], rax
mov eax, [rbp+var_1C]
mov [rbp+var_58], eax
mov rax, [rbp+var_28]
mov [rbp+var_50], rax
mov rax, [rbp+var_30]
mov [rbp+var_48], rax
mov rax, [rbp+var_40]
mov byte ptr [rax+14h], 1
mov rdi, [rbp+var_40]
add rdi, 38h ; '8'
lea rsi, mysql_stmt_send_long_data_start_internal
lea rdx, [rbp+var_60]
call my_context_spawn
mov [rbp+var_34], eax
mov rax, [rbp+var_40]
mov byte ptr [rax+15h], 0
mov rax, [rbp+var_40]
mov byte ptr [rax+14h], 0
cmp [rbp+var_34], 0
jle short loc_58902
mov rax, [rbp+var_40]
mov byte ptr [rax+15h], 1
mov rax, [rbp+var_40]
mov eax, [rax]
mov [rbp+var_4], eax
jmp loc_589A2
loc_58902:
cmp [rbp+var_34], 0
jge loc_5898E
jmp short $+2
loc_5890E:
mov rax, [rbp+var_18]
mov rax, [rax+38h]
mov dword ptr [rax+90h], 7D8h
mov rax, [rbp+var_18]
mov rdi, [rax+38h]
add rdi, 297h
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [rbp+var_18]
mov rax, [rax+38h]
mov byte ptr [rax+29Ch], 0
mov rax, [rbp+var_18]
mov rdi, [rax+38h]
add rdi, 97h
lea rax, client_errors
mov rsi, [rax+40h]
mov edx, 1FFh
call _strncpy
mov rax, [rbp+var_18]
mov rax, [rax+38h]
mov byte ptr [rax+296h], 0
mov rax, [rbp+var_10]
mov byte ptr [rax], 1
jmp short loc_5899B
loc_5898E:
mov rax, [rbp+var_40]
mov cl, [rax+8]
mov rax, [rbp+var_10]
mov [rax], cl
loc_5899B:
mov [rbp+var_4], 0
loc_589A2:
mov eax, [rbp+var_4]
add rsp, 60h
pop rbp
retn
|
long long mysql_stmt_send_long_data_start(char *a1, long long a2, unsigned int a3, long long a4, long long a5)
{
long long v6; // [rsp+0h] [rbp-60h] BYREF
unsigned int v7; // [rsp+8h] [rbp-58h]
long long v8; // [rsp+10h] [rbp-50h]
long long v9; // [rsp+18h] [rbp-48h]
_BYTE *v10; // [rsp+20h] [rbp-40h]
int v11; // [rsp+2Ch] [rbp-34h]
long long v12; // [rsp+30h] [rbp-30h]
long long v13; // [rsp+38h] [rbp-28h]
unsigned int v14; // [rsp+44h] [rbp-1Ch]
long long v15; // [rsp+48h] [rbp-18h]
char *v16; // [rsp+50h] [rbp-10h]
v16 = a1;
v15 = a2;
v14 = a3;
v13 = a4;
v12 = a5;
if ( *(_QWORD *)(a2 + 56) )
{
v10 = *(_BYTE **)(*(_QWORD *)(*(_QWORD *)(v15 + 56) + 1152LL) + 40LL);
v6 = v15;
v7 = v14;
v8 = v13;
v9 = v12;
v10[20] = 1;
v11 = my_context_spawn(v10 + 56, mysql_stmt_send_long_data_start_internal, &v6);
v10[21] = 0;
v10[20] = 0;
if ( v11 <= 0 )
{
if ( v11 >= 0 )
{
*v16 = v10[8];
}
else
{
*(_DWORD *)(*(_QWORD *)(v15 + 56) + 144LL) = 2008;
strncpy(*(_QWORD *)(v15 + 56) + 663LL, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(*(_QWORD *)(v15 + 56) + 668LL) = 0;
strncpy(*(_QWORD *)(v15 + 56) + 151LL, client_errors[8], 511LL);
*(_BYTE *)(*(_QWORD *)(v15 + 56) + 662LL) = 0;
*v16 = 1;
}
return 0;
}
else
{
v10[21] = 1;
return *(unsigned int *)v10;
}
}
else
{
*v16 = mysql_stmt_send_long_data(v15, v14, v13, v12);
return 0;
}
}
|
mysql_stmt_send_long_data_start:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
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 qword ptr [RBP + -0x30],R8
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x38],0x0
JNZ 0x0015887e
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,dword ptr [RBP + -0x1c]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x00146c50
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001589a2
LAB_0015887e:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x60],RAX
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x58],EAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV byte ptr [RAX + 0x14],0x1
MOV RDI,qword ptr [RBP + -0x40]
ADD RDI,0x38
LEA RSI,[0x1589b0]
LEA RDX,[RBP + -0x60]
CALL 0x00159b10
MOV dword ptr [RBP + -0x34],EAX
MOV RAX,qword ptr [RBP + -0x40]
MOV byte ptr [RAX + 0x15],0x0
MOV RAX,qword ptr [RBP + -0x40]
MOV byte ptr [RAX + 0x14],0x0
CMP dword ptr [RBP + -0x34],0x0
JLE 0x00158902
MOV RAX,qword ptr [RBP + -0x40]
MOV byte ptr [RAX + 0x15],0x1
MOV RAX,qword ptr [RBP + -0x40]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001589a2
LAB_00158902:
CMP dword ptr [RBP + -0x34],0x0
JGE 0x0015898e
JMP 0x0015890e
LAB_0015890e:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV dword ptr [RAX + 0x90],0x7d8
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x38]
ADD RDI,0x297
LEA RAX,[0x180ea0]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00114220
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV byte ptr [RAX + 0x29c],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x38]
ADD RDI,0x97
LEA RAX,[0x180eb0]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1ff
CALL 0x00114220
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV byte ptr [RAX + 0x296],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],0x1
JMP 0x0015899b
LAB_0015898e:
MOV RAX,qword ptr [RBP + -0x40]
MOV CL,byte ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
LAB_0015899b:
MOV dword ptr [RBP + -0x4],0x0
LAB_001589a2:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x60
POP RBP
RET
|
int4
mysql_stmt_send_long_data_start
(int1 *param_1,long param_2,int4 param_3,int8 param_4,int8 param_5
)
{
int1 uVar1;
long local_68;
int4 local_60;
int8 local_58;
int8 local_50;
int4 *local_48;
int local_3c;
int8 local_38;
int8 local_30;
int4 local_24;
long local_20;
int1 *local_18;
int4 local_c;
local_38 = param_5;
local_30 = param_4;
local_24 = param_3;
local_20 = param_2;
local_18 = param_1;
if (*(long *)(param_2 + 0x38) == 0) {
uVar1 = mysql_stmt_send_long_data(param_2,param_3,param_4,param_5);
*local_18 = uVar1;
local_c = 0;
}
else {
local_48 = *(int4 **)(*(long *)(*(long *)(param_2 + 0x38) + 0x480) + 0x28);
*(int1 *)(local_48 + 5) = 1;
local_68 = param_2;
local_60 = param_3;
local_58 = param_4;
local_50 = param_5;
local_3c = my_context_spawn(local_48 + 0xe,mysql_stmt_send_long_data_start_internal,&local_68);
*(int1 *)((long)local_48 + 0x15) = 0;
*(int1 *)(local_48 + 5) = 0;
if (local_3c < 1) {
if (local_3c < 0) {
*(int4 *)(*(long *)(local_20 + 0x38) + 0x90) = 0x7d8;
strncpy((char *)(*(long *)(local_20 + 0x38) + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)(*(long *)(local_20 + 0x38) + 0x29c) = 0;
strncpy((char *)(*(long *)(local_20 + 0x38) + 0x97),PTR_s_Client_run_out_of_memory_00180ef0,
0x1ff);
*(int1 *)(*(long *)(local_20 + 0x38) + 0x296) = 0;
*local_18 = 1;
}
else {
*local_18 = *(int1 *)(local_48 + 2);
}
local_c = 0;
}
else {
*(int1 *)((long)local_48 + 0x15) = 1;
local_c = *local_48;
}
}
return local_c;
}
|
|
59,519
|
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::emplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&&)
|
monkey531[P]llama/common/./json.hpp
|
std::pair<iterator, bool> emplace(const key_type& key, T&& t)
{
for (auto it = this->begin(); it != this->end(); ++it)
{
if (m_compare(it->first, key))
{
return {it, false};
}
}
Container::emplace_back(key, std::forward<T>(t));
return {std::prev(this->end()), true};
}
|
O0
|
cpp
|
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::emplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&&):
subq $0x68, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq 0x50(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0xa2a90
movq %rax, 0x38(%rsp)
movq 0x8(%rsp), %rdi
callq 0xa2ac0
movq %rax, 0x30(%rsp)
leaq 0x38(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xa2af0
testb $0x1, %al
jne 0xbdb4b
jmp 0xbdba2
movq 0x8(%rsp), %rax
addq $0x18, %rax
movq %rax, (%rsp)
leaq 0x38(%rsp), %rdi
callq 0xbbbe0
movq (%rsp), %rdi
movq %rax, %rsi
movq 0x48(%rsp), %rdx
callq 0xbdc00
testb $0x1, %al
jne 0xbdb79
jmp 0xbdb94
movb $0x0, 0x2f(%rsp)
leaq 0x58(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x2f(%rsp), %rdx
callq 0xbdc30
jmp 0xbdbf2
jmp 0xbdb96
leaq 0x38(%rsp), %rdi
callq 0xa2b70
jmp 0xbdb27
movq 0x8(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0xbdc60
movq 0x8(%rsp), %rdi
callq 0xa2ac0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
movl $0x1, %esi
callq 0xbdcf0
movq %rax, 0x20(%rsp)
movb $0x1, 0x17(%rsp)
leaq 0x58(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x17(%rsp), %rdx
callq 0xbdd30
movq 0x58(%rsp), %rax
movb 0x60(%rsp), %dl
addq $0x68, %rsp
retq
|
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE7emplaceERSH_OSD_:
sub rsp, 68h
mov [rsp+68h+var_18], rdi
mov [rsp+68h+var_20], rsi
mov [rsp+68h+var_28], rdx
mov rdi, [rsp+68h+var_18]
mov [rsp+68h+var_60], rdi
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5beginEv; 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>>>::begin(void)
mov [rsp+68h+var_30], rax
loc_BDB27:
mov rdi, [rsp+68h+var_60]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; 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>>>::end(void)
mov [rsp+68h+var_38], rax
lea rdi, [rsp+68h+var_30]
lea rsi, [rsp+68h+var_38]
call _ZN9__gnu_cxxneIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator!=<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>>>>(__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>>>> const&,__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>>>> const&)
test al, 1
jnz short loc_BDB4B
jmp short loc_BDBA2
loc_BDB4B:
mov rax, [rsp+68h+var_60]
add rax, 18h
mov [rsp+68h+var_68], rax
lea rdi, [rsp+68h+var_30]
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)
mov rdi, [rsp+68h+var_68]
mov rsi, rax
mov rdx, [rsp+68h+var_20]
call _ZNKSt8equal_toIvEclIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_EEDTeqclsr3stdE7forwardIT_Efp_Eclsr3stdE7forwardIT0_Efp0_EEOSA_OSB_
test al, 1
jnz short loc_BDB79
jmp short loc_BDB94
loc_BDB79:
mov [rsp+68h+var_39], 0
lea rdi, [rsp+68h+var_10]
lea rsi, [rsp+68h+var_30]
lea rdx, [rsp+68h+var_39]
call _ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbEC2IRSM_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISR_SS_EEEbE4typeELb1EEEOSR_OSS_
jmp short loc_BDBF2
loc_BDB94:
jmp short $+2
loc_BDB96:
lea rdi, [rsp+68h+var_30]
call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEppEv; __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)
jmp short loc_BDB27
loc_BDBA2:
mov rdi, [rsp+68h+var_60]
mov rsi, [rsp+68h+var_20]
mov rdx, [rsp+68h+var_28]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE12emplace_backIJRS7_SF_EEERSG_DpOT_; 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>>>::emplace_back<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::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> &&)
mov rdi, [rsp+68h+var_60]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; 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>>>::end(void)
mov [rsp+68h+var_50], rax
mov rdi, [rsp+68h+var_50]
mov esi, 1
call _ZSt4prevIN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSB_11ordered_mapESt6vectorS8_blmdSaNSB_14adl_serializerESE_IhSaIhEEvEEESE_ISJ_SaISJ_EEEEET_SO_NSt15iterator_traitsISO_E15difference_typeE; std::prev<__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>>>>>(__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>>>>,std::iterator_traits<__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>>>>>::difference_type)
mov [rsp+68h+var_48], rax
mov [rsp+68h+var_51], 1
lea rdi, [rsp+68h+var_10]
lea rsi, [rsp+68h+var_48]
lea rdx, [rsp+68h+var_51]
call _ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbEC2ISM_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISQ_SR_EEEbE4typeELb1EEEOSQ_OSR_
loc_BDBF2:
mov rax, [rsp+68h+var_10]
mov dl, [rsp+68h+var_8]
add rsp, 68h
retn
|
long long 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>>>>::emplace(
long long a1,
long long a2,
long long a3)
{
long long v3; // rax
char v5; // [rsp+17h] [rbp-51h] BYREF
long long v6; // [rsp+18h] [rbp-50h]
long long v7; // [rsp+20h] [rbp-48h] BYREF
char v8; // [rsp+2Fh] [rbp-39h] BYREF
long long v9; // [rsp+30h] [rbp-38h] BYREF
long long i; // [rsp+38h] [rbp-30h] BYREF
long long v11; // [rsp+40h] [rbp-28h]
long long v12; // [rsp+48h] [rbp-20h]
long long v13; // [rsp+50h] [rbp-18h]
long long v14; // [rsp+58h] [rbp-10h] BYREF
v13 = a1;
v12 = a2;
v11 = a3;
for ( i = 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>>>::begin(a1);
;
__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++(&i) )
{
v9 = 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>>>::end(a1);
if ( !__gnu_cxx::operator!=<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>>>>(
(long long)&i,
(long long)&v9) )
break;
v3 = __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)&i);
if ( (std::equal_to<void>::operator()<std::string const&,std::string const&>(a1 + 24, v3, v12) & 1) != 0 )
{
v8 = 0;
ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbEC2IRSM_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISR_SS_EEEbE4typeELb1EEEOSR_OSS_(
&v14,
&i,
&v8);
return v14;
}
}
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>>>::emplace_back<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>>(
a1,
v12,
v11);
v6 = 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>>>::end(a1);
v7 = std::prev<__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>>>>>(
v6,
1LL);
v5 = 1;
ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbEC2ISM_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISQ_SR_EEEbE4typeELb1EEEOSQ_OSR_(
&v14,
&v7,
&v5);
return v14;
}
|
emplace:
SUB RSP,0x68
MOV qword ptr [RSP + 0x50],RDI
MOV qword ptr [RSP + 0x48],RSI
MOV qword ptr [RSP + 0x40],RDX
MOV RDI,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x001a2a90
MOV qword ptr [RSP + 0x38],RAX
LAB_001bdb27:
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001a2ac0
MOV qword ptr [RSP + 0x30],RAX
LEA RDI,[RSP + 0x38]
LEA RSI,[RSP + 0x30]
CALL 0x001a2af0
TEST AL,0x1
JNZ 0x001bdb4b
JMP 0x001bdba2
LAB_001bdb4b:
MOV RAX,qword ptr [RSP + 0x8]
ADD RAX,0x18
MOV qword ptr [RSP],RAX
LEA RDI,[RSP + 0x38]
CALL 0x001bbbe0
MOV RDI,qword ptr [RSP]
MOV RSI,RAX
MOV RDX,qword ptr [RSP + 0x48]
CALL 0x001bdc00
TEST AL,0x1
JNZ 0x001bdb79
JMP 0x001bdb94
LAB_001bdb79:
MOV byte ptr [RSP + 0x2f],0x0
LEA RDI,[RSP + 0x58]
LEA RSI,[RSP + 0x38]
LEA RDX,[RSP + 0x2f]
CALL 0x001bdc30
JMP 0x001bdbf2
LAB_001bdb94:
JMP 0x001bdb96
LAB_001bdb96:
LEA RDI,[RSP + 0x38]
CALL 0x001a2b70
JMP 0x001bdb27
LAB_001bdba2:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x40]
CALL 0x001bdc60
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001a2ac0
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0x18]
MOV ESI,0x1
CALL 0x001bdcf0
MOV qword ptr [RSP + 0x20],RAX
MOV byte ptr [RSP + 0x17],0x1
LEA RDI,[RSP + 0x58]
LEA RSI,[RSP + 0x20]
LEA RDX,[RSP + 0x17]
CALL 0x001bdd30
LAB_001bdbf2:
MOV RAX,qword ptr [RSP + 0x58]
MOV DL,byte ptr [RSP + 0x60]
ADD RSP,0x68
RET
|
/* nlohmann::json_abi_v3_11_3::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> > > >::emplace(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>&&) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::
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>>>>
::emplace(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,string *param_1,basic_json *param_2)
{
bool bVar1;
string *psVar2;
ulong uVar3;
int8 extraout_RDX;
int8 extraout_RDX_00;
int8 uVar4;
int1 auVar5 [16];
int1 local_51;
int8 local_50;
int8 local_48;
int1 local_39;
int8 local_38;
int8 local_30;
basic_json *local_28;
string *local_20;
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>>>>
*local_18;
int8 local_10;
int1 local_8;
local_28 = param_2;
local_20 = param_1;
local_18 = this;
local_30 = 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>>>>
::begin((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);
do {
local_38 = 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>>>>
::end((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);
bVar1 = __gnu_cxx::operator!=((__normal_iterator *)&local_30,(__normal_iterator *)&local_38);
if (!bVar1) {
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>>>>
::
emplace_back<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<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,local_20,local_28);
local_50 = 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>>>>
::end((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);
local_48 = std::
prev<__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>>>>>>
(local_50,1);
local_51 = 1;
_ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbEC2ISM_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISQ_SR_EEEbE4typeELb1EEEOSQ_OSR_
(&local_10,&local_48,&local_51);
uVar4 = extraout_RDX_00;
LAB_001bdbf2:
auVar5._9_7_ = (int7)((ulong)uVar4 >> 8);
auVar5[8] = local_8;
auVar5._0_8_ = local_10;
return auVar5;
}
psVar2 = (string *)
__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_30);
uVar3 = std::equal_to<void>::operator()((equal_to<void> *)(this + 0x18),psVar2,local_20);
if ((uVar3 & 1) != 0) {
local_39 = 0;
_ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbEC2IRSM_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISR_SS_EEEbE4typeELb1EEEOSR_OSS_
(&local_10,&local_30,&local_39);
uVar4 = extraout_RDX;
goto LAB_001bdbf2;
}
__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_30);
} while( true );
}
|
|
59,520
|
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::emplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&&)
|
monkey531[P]llama/common/./json.hpp
|
std::pair<iterator, bool> emplace(const key_type& key, T&& t)
{
for (auto it = this->begin(); it != this->end(); ++it)
{
if (m_compare(it->first, key))
{
return {it, false};
}
}
Container::emplace_back(key, std::forward<T>(t));
return {std::prev(this->end()), true};
}
|
O1
|
cpp
|
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::emplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movq (%rdi), %rbx
cmpq 0x8(%rdi), %rbx
sete %bpl
je 0x51dda
movq %rbx, %rdi
movq %r12, %rsi
callq 0x50121
testb %al, %al
jne 0x51dd5
addq $0x60, %rbx
cmpq 0x8(%r14), %rbx
jmp 0x51db6
testb %bpl, %bpl
je 0x51df4
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x51e02
movq 0x8(%r14), %rbx
addq $-0x60, %rbx
movb $0x1, %dl
jmp 0x51df6
xorl %edx, %edx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceERSJ_OSF_:
push rbp
push r15
push r14
push r12
push rbx
mov r15, rdx
mov r12, rsi
mov r14, rdi
mov rbx, [rdi]
cmp rbx, [rdi+8]
loc_51DB6:
setz bpl
jz short loc_51DDA
mov rdi, rbx
mov rsi, r12
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_51DD5
add rbx, 60h ; '`'
cmp rbx, [r14+8]
jmp short loc_51DB6
loc_51DD5:
test bpl, bpl
jz short loc_51DF4
loc_51DDA:
mov rdi, r14
mov rsi, r12
mov rdx, r15
call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE12emplace_backIJRSF_SH_EEERSI_DpOT_; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::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> const&,minja::Value>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,minja::Value &&)
mov rbx, [r14+8]
add rbx, 0FFFFFFFFFFFFFFA0h
mov dl, 1
jmp short loc_51DF6
loc_51DF4:
xor edx, edx
loc_51DF6:
mov rax, rbx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
long long nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::emplace(
long long a1,
unsigned __int8 *a2,
long long a3,
__m128d a4)
{
unsigned __int8 *v5; // rbx
bool i; // zf
bool v7; // bp
v5 = *(unsigned __int8 **)a1;
for ( i = *(_QWORD *)a1 == *(_QWORD *)(a1 + 8); ; i = v5 == *(unsigned __int8 **)(a1 + 8) )
{
v7 = i;
if ( i )
break;
if ( (unsigned __int8)nlohmann::json_abi_v3_11_3::operator==(v5, a2, a4) )
{
if ( !v7 )
return (long long)v5;
break;
}
v5 += 96;
}
std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::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> const&,minja::Value>(
a1,
a2,
a3);
return *(_QWORD *)(a1 + 8) - 96LL;
}
|
emplace:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R15,RDX
MOV R12,RSI
MOV R14,RDI
MOV RBX,qword ptr [RDI]
CMP RBX,qword ptr [RDI + 0x8]
LAB_00151db6:
SETZ BPL
JZ 0x00151dda
MOV RDI,RBX
MOV RSI,R12
CALL 0x00150121
TEST AL,AL
JNZ 0x00151dd5
ADD RBX,0x60
CMP RBX,qword ptr [R14 + 0x8]
JMP 0x00151db6
LAB_00151dd5:
TEST BPL,BPL
JZ 0x00151df4
LAB_00151dda:
MOV RDI,R14
MOV RSI,R12
MOV RDX,R15
CALL 0x00151e02
MOV RBX,qword ptr [R14 + 0x8]
ADD RBX,-0x60
MOV DL,0x1
JMP 0x00151df6
LAB_00151df4:
XOR EDX,EDX
LAB_00151df6:
MOV RAX,RBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>, minja::Value,
std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >,
std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const, minja::Value> >
>::emplace(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const&, minja::Value&&) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::
ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
::emplace(ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
*this,basic_json *param_1,Value *param_2)
{
char cVar1;
int8 extraout_RDX;
int8 uVar2;
basic_json *pbVar3;
bool bVar4;
int1 auVar5 [16];
pbVar3 = *(basic_json **)this;
bVar4 = pbVar3 == *(basic_json **)(this + 8);
do {
if (bVar4) {
LAB_00151dda:
std::
vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
::
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>const&,minja::Value>
((vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>
*)this,param_1,param_2);
pbVar3 = (basic_json *)(*(long *)(this + 8) + -0x60);
uVar2 = CONCAT71((int7)((ulong)extraout_RDX >> 8),1);
LAB_00151df6:
auVar5._8_8_ = uVar2;
auVar5._0_8_ = pbVar3;
return auVar5;
}
cVar1 = operator==(pbVar3,param_1);
if (cVar1 != '\0') {
if (!bVar4) {
uVar2 = 0;
goto LAB_00151df6;
}
goto LAB_00151dda;
}
pbVar3 = pbVar3 + 0x60;
bVar4 = pbVar3 == *(basic_json **)(this + 8);
} while( true );
}
|
|
59,521
|
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::emplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&&)
|
monkey531[P]llama/common/./json.hpp
|
std::pair<iterator, bool> emplace(const key_type& key, T&& t)
{
for (auto it = this->begin(); it != this->end(); ++it)
{
if (m_compare(it->first, key))
{
return {it, false};
}
}
Container::emplace_back(key, std::forward<T>(t));
return {std::prev(this->end()), true};
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::emplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movq (%rdi), %rbx
cmpq 0x8(%r14), %rbx
je 0x45735
movq %rbx, %rdi
movq %r12, %rsi
callq 0x263d8
testb %al, %al
jne 0x4574f
addq $0x30, %rbx
jmp 0x4571a
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x45760
movq 0x8(%r14), %rbx
addq $-0x30, %rbx
movb $0x1, %dl
jmp 0x45751
xorl %edx, %edx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
|
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE7emplaceERSH_OSD_:
push r15
push r14
push r12
push rbx
push rax
mov r15, rdx
mov r12, rsi
mov r14, rdi
mov rbx, [rdi]
loc_4571A:
cmp rbx, [r14+8]
jz short loc_45735
mov rdi, rbx
mov rsi, r12
call _ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_
test al, al
jnz short loc_4574F
add rbx, 30h ; '0'
jmp short loc_4571A
loc_45735:
mov rdi, r14
mov rsi, r12
mov rdx, r15
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE12emplace_backIJRS7_SF_EEERSG_DpOT_; 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>>>::emplace_back<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::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> &&)
mov rbx, [r14+8]
add rbx, 0FFFFFFFFFFFFFFD0h
mov dl, 1
jmp short loc_45751
loc_4574F:
xor edx, edx
loc_45751:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
|
long long 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>>>>::emplace(
_QWORD **a1,
_QWORD *a2,
long long a3)
{
_QWORD *i; // rbx
for ( i = *a1; i != a1[1]; i += 6 )
{
if ( std::operator==<char>(i, a2) )
return (long long)i;
}
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>>>::emplace_back<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>>(
a1,
a2,
a3);
return (long long)(a1[1] - 6);
}
| |||
59,522
|
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::emplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&&)
|
monkey531[P]llama/common/./json.hpp
|
std::pair<iterator, bool> emplace(const key_type& key, T&& t)
{
for (auto it = this->begin(); it != this->end(); ++it)
{
if (m_compare(it->first, key))
{
return {it, false};
}
}
Container::emplace_back(key, std::forward<T>(t));
return {std::prev(this->end()), true};
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::emplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, (%rsp)
movq %rsi, %r12
movq %rdi, %r14
movq (%rdi), %rbx
movq 0x8(%rdi), %r15
cmpq %r15, %rbx
je 0x4a6b4
movq (%r12), %r13
movq 0x8(%r12), %rbp
cmpq %rbp, 0x8(%rbx)
jne 0x4a6ab
testq %rbp, %rbp
je 0x4a6cf
movq (%rbx), %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x186e0
testl %eax, %eax
je 0x4a6cf
addq $0x30, %rbx
cmpq %r15, %rbx
jne 0x4a68e
movq %r14, %rdi
movq %r12, %rsi
movq (%rsp), %rdx
callq 0x4a6e4
movq 0x8(%r14), %rbx
addq $-0x30, %rbx
movb $0x1, %dl
jmp 0x4a6d1
xorl %edx, %edx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
|
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE7emplaceERSH_OSD_:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov [rsp+38h+var_38], rdx
mov r12, rsi
mov r14, rdi
mov rbx, [rdi]
mov r15, [rdi+8]
cmp rbx, r15
jz short loc_4A6B4
mov r13, [r12]
mov rbp, [r12+8]
loc_4A68E:
cmp [rbx+8], rbp
jnz short loc_4A6AB
test rbp, rbp
jz short loc_4A6CF
mov rdi, [rbx]
mov rsi, r13
mov rdx, rbp
call _bcmp
test eax, eax
jz short loc_4A6CF
loc_4A6AB:
add rbx, 30h ; '0'
cmp rbx, r15
jnz short loc_4A68E
loc_4A6B4:
mov rdi, r14
mov rsi, r12
mov rdx, [rsp+38h+var_38]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE12emplace_backIJRS7_SF_EEERSG_DpOT_; 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>>>::emplace_back<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::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> &&)
mov rbx, [r14+8]
add rbx, 0FFFFFFFFFFFFFFD0h
mov dl, 1
jmp short loc_4A6D1
loc_4A6CF:
xor edx, edx
loc_4A6D1:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long nlohmann::json_abi_v3_11_3::ordered_map<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>>>>::emplace(
_QWORD *a1,
long long *a2,
long long a3)
{
_QWORD *v3; // rbx
_QWORD *v4; // r15
long long v5; // r13
long long v6; // rbp
v3 = (_QWORD *)*a1;
v4 = (_QWORD *)a1[1];
if ( (_QWORD *)*a1 == v4 )
{
LABEL_7:
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>>>::emplace_back<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>>(
a1,
a2,
a3);
return a1[1] - 48LL;
}
else
{
v5 = *a2;
v6 = a2[1];
while ( v3[1] != v6 || v6 && (unsigned int)bcmp(*v3, v5) )
{
v3 += 6;
if ( v3 == v4 )
goto LABEL_7;
}
}
return (long long)v3;
}
|
emplace:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV qword ptr [RSP],RDX
MOV R12,RSI
MOV R14,RDI
MOV RBX,qword ptr [RDI]
MOV R15,qword ptr [RDI + 0x8]
CMP RBX,R15
JZ 0x0014a6b4
MOV R13,qword ptr [R12]
MOV RBP,qword ptr [R12 + 0x8]
LAB_0014a68e:
CMP qword ptr [RBX + 0x8],RBP
JNZ 0x0014a6ab
TEST RBP,RBP
JZ 0x0014a6cf
MOV RDI,qword ptr [RBX]
MOV RSI,R13
MOV RDX,RBP
CALL 0x001186e0
TEST EAX,EAX
JZ 0x0014a6cf
LAB_0014a6ab:
ADD RBX,0x30
CMP RBX,R15
JNZ 0x0014a68e
LAB_0014a6b4:
MOV RDI,R14
MOV RSI,R12
MOV RDX,qword ptr [RSP]
CALL 0x0014a6e4
MOV RBX,qword ptr [R14 + 0x8]
ADD RBX,-0x30
MOV DL,0x1
JMP 0x0014a6d1
LAB_0014a6cf:
XOR EDX,EDX
LAB_0014a6d1:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::ordered_map<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> > > >::emplace(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>&&) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::
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>>>>
::emplace(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,string *param_1,basic_json *param_2)
{
int8 *puVar1;
void *__s2;
size_t __n;
int iVar2;
int8 extraout_RDX;
int8 uVar3;
int8 *puVar4;
int1 auVar5 [16];
puVar4 = *(int8 **)this;
puVar1 = *(int8 **)(this + 8);
if (puVar4 != puVar1) {
__s2 = *(void **)param_1;
__n = *(size_t *)(param_1 + 8);
do {
if (puVar4[1] == __n) {
if (__n != 0) {
iVar2 = bcmp((void *)*puVar4,__s2,__n);
if (iVar2 != 0) goto LAB_0014a6ab;
}
uVar3 = 0;
goto LAB_0014a6d1;
}
LAB_0014a6ab:
puVar4 = puVar4 + 6;
} while (puVar4 != puVar1);
}
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>>>>
::
emplace_back<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<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,param_1,param_2);
puVar4 = (int8 *)(*(long *)(this + 8) + -0x30);
uVar3 = CONCAT71((int7)((ulong)extraout_RDX >> 8),1);
LAB_0014a6d1:
auVar5._8_8_ = uVar3;
auVar5._0_8_ = puVar4;
return auVar5;
}
|
|
59,523
|
lunasvg::SVGElement::SVGElement(lunasvg::Document*, lunasvg::ElementID)
|
dmazzella[P]pylunasvg/lunasvg/source/svgelement.cpp
|
SVGElement::SVGElement(Document* document, ElementID id)
: SVGNode(document)
, m_id(id)
{
}
|
O0
|
cpp
|
lunasvg::SVGElement::SVGElement(lunasvg::Document*, lunasvg::ElementID):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb %al, -0x11(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x20(%rbp)
movq -0x10(%rbp), %rsi
callq 0x1dbc0
movq -0x20(%rbp), %rdi
leaq 0xa9067(%rip), %rax # 0xc18c8
addq $0x10, %rax
movq %rax, (%rdi)
leaq 0x738f9(%rip), %rax # 0x8c168
movq (%rax), %rcx
movq %rcx, 0x18(%rdi)
movq 0x8(%rax), %rax
movq %rax, 0x20(%rdi)
movq $0x0, 0x28(%rdi)
movq $0x0, 0x30(%rdi)
movss 0x73832(%rip), %xmm0 # 0x8c0c8
movss %xmm0, 0x38(%rdi)
movss 0x73b21(%rip), %xmm0 # 0x8c3c4
movss %xmm0, 0x3c(%rdi)
movb $0x0, 0x40(%rdi)
movb $0x0, 0x41(%rdi)
movb $0x0, 0x42(%rdi)
movb -0x11(%rbp), %al
movb %al, 0x43(%rdi)
addq $0x48, %rdi
callq 0x1f7b0
movq -0x20(%rbp), %rdi
addq $0x50, %rdi
callq 0x1f7d0
movq -0x20(%rbp), %rdi
addq $0x58, %rdi
callq 0x1f7f0
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ZN7lunasvg10SVGElementC2EPNS_8DocumentENS_9ElementIDE:
push rbp; Alternative name is 'lunasvg::SVGElement::SVGElement(lunasvg::Document *, lunasvg::ElementID)'
mov rbp, rsp
sub rsp, 20h
mov al, dl
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_11], al
mov rdi, [rbp+var_8]
mov [rbp+var_20], rdi
mov rsi, [rbp+var_10]
call _ZN7lunasvg7SVGNodeC2EPNS_8DocumentE; lunasvg::SVGNode::SVGNode(lunasvg::Document *)
mov rdi, [rbp+var_20]
lea rax, _ZTVN7lunasvg10SVGElementE; `vtable for'lunasvg::SVGElement
add rax, 10h
mov [rdi], rax
lea rax, _ZN7lunasvg4Rect7InvalidE; lunasvg::Rect::Invalid
mov rcx, [rax]
mov [rdi+18h], rcx
mov rax, [rax+8]
mov [rdi+20h], rax
mov qword ptr [rdi+28h], 0
mov qword ptr [rdi+30h], 0
movss xmm0, cs:flt_8C0C8
movss dword ptr [rdi+38h], xmm0
movss xmm0, cs:dword_8C3C4
movss dword ptr [rdi+3Ch], xmm0
mov byte ptr [rdi+40h], 0
mov byte ptr [rdi+41h], 0
mov byte ptr [rdi+42h], 0
mov al, [rbp+var_11]
mov [rdi+43h], al
add rdi, 48h ; 'H'
call _ZNSt12forward_listIN7lunasvg9AttributeESaIS1_EEC2Ev; std::forward_list<lunasvg::Attribute>::forward_list(void)
mov rdi, [rbp+var_20]
add rdi, 50h ; 'P'
call _ZNSt12forward_listIPN7lunasvg11SVGPropertyESaIS2_EEC2Ev; std::forward_list<lunasvg::SVGProperty *>::forward_list(void)
mov rdi, [rbp+var_20]
add rdi, 58h ; 'X'
call _ZNSt7__cxx114listISt10unique_ptrIN7lunasvg7SVGNodeESt14default_deleteIS3_EESaIS6_EEC2Ev; std::list<std::unique_ptr<lunasvg::SVGNode>>::list(void)
add rsp, 20h
pop rbp
retn
|
long long lunasvg::SVGElement::SVGElement(long long a1, lunasvg::Document *a2, char a3)
{
lunasvg::SVGNode::SVGNode((lunasvg::SVGNode *)a1, a2);
*(_QWORD *)a1 = &`vtable for'lunasvg::SVGElement + 2;
*(_QWORD *)(a1 + 24) = lunasvg::Rect::Invalid;
*(_QWORD *)(a1 + 32) = *(&lunasvg::Rect::Invalid + 1);
*(_QWORD *)(a1 + 40) = 0LL;
*(_QWORD *)(a1 + 48) = 0LL;
*(_DWORD *)(a1 + 56) = 1065353216;
*(_DWORD *)(a1 + 60) = 1094713344;
*(_BYTE *)(a1 + 64) = 0;
*(_BYTE *)(a1 + 65) = 0;
*(_BYTE *)(a1 + 66) = 0;
*(_BYTE *)(a1 + 67) = a3;
std::forward_list<lunasvg::Attribute>::forward_list(a1 + 72);
std::forward_list<lunasvg::SVGProperty *>::forward_list(a1 + 80);
return std::list<std::unique_ptr<lunasvg::SVGNode>>::list(a1 + 88);
}
|
SVGElement:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV AL,DL
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV byte ptr [RBP + -0x11],AL
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RDI
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x0011dbc0
MOV RDI,qword ptr [RBP + -0x20]
LEA RAX,[0x1c18c8]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
LEA RAX,[0x18c168]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RDI + 0x18],RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RDI + 0x20],RAX
MOV qword ptr [RDI + 0x28],0x0
MOV qword ptr [RDI + 0x30],0x0
MOVSS XMM0,dword ptr [0x0018c0c8]
MOVSS dword ptr [RDI + 0x38],XMM0
MOVSS XMM0,dword ptr [0x0018c3c4]
MOVSS dword ptr [RDI + 0x3c],XMM0
MOV byte ptr [RDI + 0x40],0x0
MOV byte ptr [RDI + 0x41],0x0
MOV byte ptr [RDI + 0x42],0x0
MOV AL,byte ptr [RBP + -0x11]
MOV byte ptr [RDI + 0x43],AL
ADD RDI,0x48
CALL 0x0011f7b0
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x50
CALL 0x0011f7d0
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x58
CALL 0x0011f7f0
ADD RSP,0x20
POP RBP
RET
|
/* lunasvg::SVGElement::SVGElement(lunasvg::Document*, lunasvg::ElementID) */
void __thiscall
lunasvg::SVGElement::SVGElement(SVGElement *this,Document *param_1,SVGElement param_3)
{
SVGNode::SVGNode((SVGNode *)this,param_1);
*(int ***)this = &PTR__SVGElement_001c18d8;
*(int8 *)(this + 0x18) = Rect::Invalid;
*(int8 *)(this + 0x20) = DAT_0018c170;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int4 *)(this + 0x38) = DAT_0018c0c8;
*(int4 *)(this + 0x3c) = DAT_0018c3c4;
this[0x40] = (SVGElement)0x0;
this[0x41] = (SVGElement)0x0;
this[0x42] = (SVGElement)0x0;
this[0x43] = param_3;
std::forward_list<lunasvg::Attribute,std::allocator<lunasvg::Attribute>>::forward_list
((forward_list<lunasvg::Attribute,std::allocator<lunasvg::Attribute>> *)(this + 0x48));
std::forward_list<lunasvg::SVGProperty*,std::allocator<lunasvg::SVGProperty*>>::forward_list
((forward_list<lunasvg::SVGProperty*,std::allocator<lunasvg::SVGProperty*>> *)
(this + 0x50));
std::__cxx11::
list<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>,std::allocator<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>>>
::list((list<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>,std::allocator<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>>>
*)(this + 0x58));
return;
}
|
|
59,524
|
mysql_stmt_close_start_internal
|
eloqsql/libmariadb/libmariadb/mariadb_async.c
|
static void
mysql_stmt_close_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_stmt_close,
(parms->stmt),
parms->stmt->mysql,
my_bool,
r_my_bool)
}
|
O0
|
c
|
mysql_stmt_close_start_internal:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x38(%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x2dd30
movb %al, -0x11(%rbp)
movb -0x11(%rbp), %cl
movq -0x20(%rbp), %rax
movb %cl, 0x8(%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
mysql_stmt_close_start_internal:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+38h]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rdi, [rax]
call mysql_stmt_close
mov [rbp+var_11], al
mov cl, [rbp+var_11]
mov rax, [rbp+var_20]
mov [rax+8], cl
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
add rsp, 20h
pop rbp
retn
|
long long mysql_stmt_close_start_internal(long long *a1)
{
long long result; // rax
long long v2; // [rsp+0h] [rbp-20h]
v2 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*a1 + 56) + 1152LL) + 40LL);
*(_BYTE *)(v2 + 8) = mysql_stmt_close(*a1);
result = v2;
*(_DWORD *)v2 = 0;
return result;
}
|
mysql_stmt_close_start_internal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x38]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
CALL 0x0012dd30
MOV byte ptr [RBP + -0x11],AL
MOV CL,byte ptr [RBP + -0x11]
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x8],CL
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x0
ADD RSP,0x20
POP RBP
RET
|
void mysql_stmt_close_start_internal(long *param_1)
{
int4 *puVar1;
int1 uVar2;
puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x38) + 0x480) + 0x28);
uVar2 = mysql_stmt_close(*param_1);
*(int1 *)(puVar1 + 2) = uVar2;
*puVar1 = 0;
return;
}
|
|
59,525
|
ggml_backend_sched_backend_id_from_cur(ggml_backend_sched*, ggml_tensor*)
|
ngxson[P]ggml-easy/ggml/src/ggml-backend.cpp
|
static int ggml_backend_sched_backend_id_from_cur(ggml_backend_sched_t sched, struct ggml_tensor * tensor) {
// assign pre-allocated nodes to their backend
int cur_backend_id = ggml_backend_sched_backend_from_buffer(sched, tensor, tensor);
if (cur_backend_id != -1) {
SET_CAUSE(tensor, "1.dst");
return cur_backend_id;
}
// view_src
if (tensor->view_src != NULL) {
cur_backend_id = ggml_backend_sched_backend_from_buffer(sched, tensor->view_src, tensor);
if (cur_backend_id != -1) {
SET_CAUSE(tensor, "1.vsrc");
return cur_backend_id;
}
}
if (tensor->buffer || (tensor->view_src && tensor->view_src->buffer)) {
// since the tensor is pre-allocated, it cannot be moved to another backend
ggml_backend_buffer_t buffer = tensor->view_src ? tensor->view_src->buffer : tensor->buffer;
GGML_ABORT("pre-allocated tensor (%s) in a buffer (%s) that cannot run the operation (%s)", tensor->name, ggml_backend_buffer_name(buffer), ggml_op_name(tensor->op));
}
// graph input
if (tensor->flags & GGML_TENSOR_FLAG_INPUT) {
cur_backend_id = sched->n_backends - 1; // last backend (assumed CPU)
SET_CAUSE(tensor, "1.inp");
return cur_backend_id;
}
// operations with weights are preferably run on the same backend as the weights
for (int i = 0; i < GGML_MAX_SRC; i++) {
const struct ggml_tensor * src = tensor->src[i];
if (src == NULL) {
continue;
}
// skip ROPE since the rope freqs tensor is too small to choose a backend based on it
// not an ideal solution
if (tensor->op != GGML_OP_ROPE && src->buffer != NULL && src->buffer->usage == GGML_BACKEND_BUFFER_USAGE_WEIGHTS) {
int src_backend_id = ggml_backend_sched_backend_from_buffer(sched, src, tensor);
// check if a backend with higher prio wants to offload the op
if (src_backend_id == sched->n_backends - 1 && ggml_backend_buffer_is_host(src->buffer)) {
for (int b = 0; b < src_backend_id; b++) {
if (ggml_backend_supports_op(sched->backends[b], tensor) && ggml_backend_offload_op(sched->backends[b], tensor)) {
SET_CAUSE(tensor, "1.off");
return b;
}
}
}
SET_CAUSE(tensor, "1.wgt%d", i);
return src_backend_id;
}
}
return -1;
}
|
O1
|
cpp
|
ggml_backend_sched_backend_id_from_cur(ggml_backend_sched*, ggml_tensor*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdx
callq 0x28e87
cmpl $-0x1, %eax
je 0x28bf9
movl %eax, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xe8(%rbx), %rsi
testq %rsi, %rsi
je 0x28c15
movq %r14, %rdi
movq %rbx, %rdx
callq 0x28e87
cmpl $-0x1, %eax
jne 0x28be6
cmpq $0x0, 0x8(%rbx)
jne 0x28d82
movq 0xe8(%rbx), %rax
testq %rax, %rax
je 0x28c37
cmpq $0x0, 0x8(%rax)
jne 0x28d82
testb $0x1, 0x94(%rbx)
jne 0x28d6d
xorl %r13d, %r13d
movq 0x98(%rbx,%r13,8), %r12
testq %r12, %r12
je 0x28d2c
xorl %r15d, %r15d
cmpl $0x2d, 0x50(%rbx)
je 0x28d32
movq 0x8(%r12), %rax
testq %rax, %rax
je 0x28d32
cmpl $0x1, 0x60(%rax)
jne 0x28d32
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x28e87
movl %eax, %ecx
movl 0x4(%r14), %eax
decl %eax
cmpl %eax, %ecx
jne 0x28d63
movq 0x8(%r12), %rax
movq 0x48(%rax), %rdi
movq 0x28(%rdi), %rax
testq %rax, %rax
je 0x28d63
movl %ecx, 0x4(%rsp)
callq *%rax
movl 0x4(%rsp), %ecx
testb %al, %al
je 0x28d63
movl $0x5, %r15d
testl %ecx, %ecx
setg %r12b
jle 0x28d5d
movq %r14, 0x8(%rsp)
movl %ecx, %eax
movq %rax, 0x10(%rsp)
xorl %r14d, %r14d
movq 0x8(%rsp), %rax
movq 0x8(%rax,%r14,8), %rax
movq 0x70(%rax), %rdi
movq %rbx, %rsi
callq *0x48(%rdi)
testb %al, %al
je 0x28d1c
movq 0x8(%rsp), %rax
movq 0x8(%rax,%r14,8), %rax
movq 0x70(%rax), %rdi
movq 0x58(%rdi), %rax
testq %rax, %rax
je 0x28d1c
movq %rbx, %rsi
callq *%rax
testb %al, %al
jne 0x28d4b
incq %r14
cmpq 0x10(%rsp), %r14
setb %r12b
jne 0x28ce4
jmp 0x28d54
movl $0x4, %r15d
testb $0x3, %r15b
jne 0x28be8
incq %r13
cmpq $0xa, %r13
jne 0x28c47
jmp 0x28d78
movl $0x1, %r15d
movl %r14d, %ebp
movq 0x8(%rsp), %r14
movl 0x4(%rsp), %ecx
testb $0x1, %r12b
jne 0x28d32
movl $0x1, %r15d
movl %ecx, %ebp
jmp 0x28d32
movl 0x4(%r14), %ebp
decl %ebp
jmp 0x28be8
movl $0xffffffff, %ebp # imm = 0xFFFFFFFF
jmp 0x28be8
movq 0xe8(%rbx), %rax
testq %rax, %rax
cmoveq %rbx, %rax
movq 0x8(%rax), %rax
leaq 0x100(%rbx), %r14
movq 0x48(%rax), %rdi
callq *(%rdi)
movq %rax, %r15
movl 0x50(%rbx), %edi
callq 0x172d0
leaq 0x245af(%rip), %rdi # 0x4d362
leaq 0x24daf(%rip), %rdx # 0x4db69
movl $0x2ec, %esi # imm = 0x2EC
movq %r14, %rcx
movq %r15, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0x17c70
|
_ZL38ggml_backend_sched_backend_id_from_curP18ggml_backend_schedP11ggml_tensor:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rsi
mov r14, rdi
mov rdx, rsi
call _ZL38ggml_backend_sched_backend_from_bufferP18ggml_backend_schedPK11ggml_tensorS3_; ggml_backend_sched_backend_from_buffer(ggml_backend_sched *,ggml_tensor const*,ggml_tensor const*)
cmp eax, 0FFFFFFFFh
jz short loc_28BF9
loc_28BE6:
mov ebp, eax
loc_28BE8:
mov eax, ebp
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_28BF9:
mov rsi, [rbx+0E8h]
test rsi, rsi
jz short loc_28C15
mov rdi, r14
mov rdx, rbx
call _ZL38ggml_backend_sched_backend_from_bufferP18ggml_backend_schedPK11ggml_tensorS3_; ggml_backend_sched_backend_from_buffer(ggml_backend_sched *,ggml_tensor const*,ggml_tensor const*)
cmp eax, 0FFFFFFFFh
jnz short loc_28BE6
loc_28C15:
cmp qword ptr [rbx+8], 0
jnz loc_28D82
mov rax, [rbx+0E8h]
test rax, rax
jz short loc_28C37
cmp qword ptr [rax+8], 0
jnz loc_28D82
loc_28C37:
test byte ptr [rbx+94h], 1
jnz loc_28D6D
xor r13d, r13d
loc_28C47:
mov r12, [rbx+r13*8+98h]
test r12, r12
jz loc_28D2C
xor r15d, r15d
cmp dword ptr [rbx+50h], 2Dh ; '-'
jz loc_28D32
mov rax, [r12+8]
test rax, rax
jz loc_28D32
cmp dword ptr [rax+60h], 1
jnz loc_28D32
mov rdi, r14
mov rsi, r12
mov rdx, rbx
call _ZL38ggml_backend_sched_backend_from_bufferP18ggml_backend_schedPK11ggml_tensorS3_; ggml_backend_sched_backend_from_buffer(ggml_backend_sched *,ggml_tensor const*,ggml_tensor const*)
mov ecx, eax
mov eax, [r14+4]
dec eax
cmp ecx, eax
jnz loc_28D63
mov rax, [r12+8]
mov rdi, [rax+48h]
mov rax, [rdi+28h]
test rax, rax
jz loc_28D63
mov [rsp+48h+var_44], ecx
call rax
mov ecx, [rsp+48h+var_44]
test al, al
jz loc_28D63
mov r15d, 5
test ecx, ecx
setnle r12b
jle loc_28D5D
mov [rsp+48h+var_40], r14
mov eax, ecx
mov [rsp+48h+var_38], rax
xor r14d, r14d
loc_28CE4:
mov rax, [rsp+48h+var_40]
mov rax, [rax+r14*8+8]
mov rdi, [rax+70h]
mov rsi, rbx
call qword ptr [rdi+48h]
test al, al
jz short loc_28D1C
mov rax, [rsp+48h+var_40]
mov rax, [rax+r14*8+8]
mov rdi, [rax+70h]
mov rax, [rdi+58h]
test rax, rax
jz short loc_28D1C
mov rsi, rbx
call rax
test al, al
jnz short loc_28D4B
loc_28D1C:
inc r14
cmp r14, [rsp+48h+var_38]
setb r12b
jnz short loc_28CE4
jmp short loc_28D54
loc_28D2C:
mov r15d, 4
loc_28D32:
test r15b, 3
jnz loc_28BE8
inc r13
cmp r13, 0Ah
jnz loc_28C47
jmp short loc_28D78
loc_28D4B:
mov r15d, 1
mov ebp, r14d
loc_28D54:
mov r14, [rsp+48h+var_40]
mov ecx, [rsp+48h+var_44]
loc_28D5D:
test r12b, 1
jnz short loc_28D32
loc_28D63:
mov r15d, 1
mov ebp, ecx
jmp short loc_28D32
loc_28D6D:
mov ebp, [r14+4]
dec ebp
jmp loc_28BE8
loc_28D78:
mov ebp, 0FFFFFFFFh
jmp loc_28BE8
loc_28D82:
mov rax, [rbx+0E8h]
test rax, rax
cmovz rax, rbx
mov rax, [rax+8]
lea r14, [rbx+100h]
mov rdi, [rax+48h]
call qword ptr [rdi]
mov r15, rax
mov edi, [rbx+50h]
call _ggml_op_name
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aPreAllocatedTe; "pre-allocated tensor (%s) in a buffer ("...
mov esi, 2ECh
mov rcx, r14
mov r8, r15
mov r9, rax
xor eax, eax
call _ggml_abort
|
long long ggml_backend_sched_backend_id_from_cur(long long a1, long long a2)
{
unsigned int v2; // ebp
long long v4; // r14
unsigned int v5; // eax
long long v7; // rsi
long long v8; // rax
long long v9; // r13
long long v10; // r12
char v11; // r15
long long v12; // rax
int v13; // ecx
long long (*v14)(void); // rax
char v15; // al
bool v16; // r12
long long v17; // r14
long long v18; // rdi
long long v19; // rdi
unsigned __int8 ( *v20)(long long, long long); // rax
long long v21; // rax
int v22; // r15d
unsigned int v23; // eax
int v24; // [rsp+4h] [rbp-44h]
long long v25; // [rsp+8h] [rbp-40h]
v4 = a1;
v5 = ggml_backend_sched_backend_from_buffer(a1, a2, a2);
if ( v5 == -1
&& ((v7 = *(_QWORD *)(a2 + 232)) == 0 || (v5 = ggml_backend_sched_backend_from_buffer(a1, v7, a2), v5 == -1)) )
{
if ( *(_QWORD *)(a2 + 8) || (v8 = *(_QWORD *)(a2 + 232)) != 0 && *(_QWORD *)(v8 + 8) )
{
v21 = *(_QWORD *)(a2 + 232);
if ( !v21 )
v21 = a2;
v22 = (**(long long (***)(void))(*(_QWORD *)(v21 + 8) + 72LL))();
v23 = (unsigned int)ggml_op_name(*(_DWORD *)(a2 + 80));
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-backend.cpp",
748,
(unsigned int)"pre-allocated tensor (%s) in a buffer (%s) that cannot run the operation (%s)",
a2 + 256,
v22,
v23);
}
if ( (*(_BYTE *)(a2 + 148) & 1) != 0 )
{
return (unsigned int)(*(_DWORD *)(a1 + 4) - 1);
}
else
{
v9 = 0LL;
while ( 1 )
{
v10 = *(_QWORD *)(a2 + 8 * v9 + 152);
if ( v10 )
{
v11 = 0;
if ( *(_DWORD *)(a2 + 80) != 45 )
{
v12 = *(_QWORD *)(v10 + 8);
if ( v12 )
{
if ( *(_DWORD *)(v12 + 96) == 1 )
{
v13 = ggml_backend_sched_backend_from_buffer(v4, *(_QWORD *)(a2 + 8 * v9 + 152), a2);
if ( v13 != *(_DWORD *)(v4 + 4) - 1 )
goto LABEL_32;
v14 = *(long long (**)(void))(*(_QWORD *)(*(_QWORD *)(v10 + 8) + 72LL) + 40LL);
if ( !v14 )
goto LABEL_32;
v24 = v13;
v15 = v14();
v13 = v24;
if ( !v15 )
goto LABEL_32;
v11 = 5;
v16 = v24 > 0;
if ( v24 > 0 )
{
v25 = v4;
v17 = 0LL;
while ( 1 )
{
v18 = *(_QWORD *)(*(_QWORD *)(v25 + 8 * v17 + 8) + 112LL);
if ( (*(unsigned __int8 ( **)(long long, long long))(v18 + 72))(v18, a2) )
{
v19 = *(_QWORD *)(*(_QWORD *)(v25 + 8 * v17 + 8) + 112LL);
v20 = *(unsigned __int8 ( **)(long long, long long))(v19 + 88);
if ( v20 )
{
if ( v20(v19, a2) )
break;
}
}
v16 = ++v17 < (unsigned long long)(unsigned int)v24;
if ( v17 == v24 )
goto LABEL_30;
}
v11 = 1;
v2 = v17;
LABEL_30:
v4 = v25;
v13 = v24;
}
if ( !v16 )
{
LABEL_32:
v11 = 1;
v2 = v13;
}
}
}
}
}
else
{
v11 = 4;
}
if ( (v11 & 3) != 0 )
break;
if ( ++v9 == 10 )
return (unsigned int)-1;
}
}
}
else
{
return v5;
}
return v2;
}
|
ggml_backend_sched_backend_id_from_cur:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RSI
MOV R14,RDI
MOV RDX,RSI
CALL 0x00128e87
CMP EAX,-0x1
JZ 0x00128bf9
LAB_00128be6:
MOV EBP,EAX
LAB_00128be8:
MOV EAX,EBP
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00128bf9:
MOV RSI,qword ptr [RBX + 0xe8]
TEST RSI,RSI
JZ 0x00128c15
MOV RDI,R14
MOV RDX,RBX
CALL 0x00128e87
CMP EAX,-0x1
JNZ 0x00128be6
LAB_00128c15:
CMP qword ptr [RBX + 0x8],0x0
JNZ 0x00128d82
MOV RAX,qword ptr [RBX + 0xe8]
TEST RAX,RAX
JZ 0x00128c37
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x00128d82
LAB_00128c37:
TEST byte ptr [RBX + 0x94],0x1
JNZ 0x00128d6d
XOR R13D,R13D
LAB_00128c47:
MOV R12,qword ptr [RBX + R13*0x8 + 0x98]
TEST R12,R12
JZ 0x00128d2c
XOR R15D,R15D
CMP dword ptr [RBX + 0x50],0x2d
JZ 0x00128d32
MOV RAX,qword ptr [R12 + 0x8]
TEST RAX,RAX
JZ 0x00128d32
CMP dword ptr [RAX + 0x60],0x1
JNZ 0x00128d32
MOV RDI,R14
MOV RSI,R12
MOV RDX,RBX
CALL 0x00128e87
MOV ECX,EAX
MOV EAX,dword ptr [R14 + 0x4]
DEC EAX
CMP ECX,EAX
JNZ 0x00128d63
MOV RAX,qword ptr [R12 + 0x8]
MOV RDI,qword ptr [RAX + 0x48]
MOV RAX,qword ptr [RDI + 0x28]
TEST RAX,RAX
JZ 0x00128d63
MOV dword ptr [RSP + 0x4],ECX
CALL RAX
MOV ECX,dword ptr [RSP + 0x4]
TEST AL,AL
JZ 0x00128d63
MOV R15D,0x5
TEST ECX,ECX
SETG R12B
JLE 0x00128d5d
MOV qword ptr [RSP + 0x8],R14
MOV EAX,ECX
MOV qword ptr [RSP + 0x10],RAX
XOR R14D,R14D
LAB_00128ce4:
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + R14*0x8 + 0x8]
MOV RDI,qword ptr [RAX + 0x70]
MOV RSI,RBX
CALL qword ptr [RDI + 0x48]
TEST AL,AL
JZ 0x00128d1c
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + R14*0x8 + 0x8]
MOV RDI,qword ptr [RAX + 0x70]
MOV RAX,qword ptr [RDI + 0x58]
TEST RAX,RAX
JZ 0x00128d1c
MOV RSI,RBX
CALL RAX
TEST AL,AL
JNZ 0x00128d4b
LAB_00128d1c:
INC R14
CMP R14,qword ptr [RSP + 0x10]
SETC R12B
JNZ 0x00128ce4
JMP 0x00128d54
LAB_00128d2c:
MOV R15D,0x4
LAB_00128d32:
TEST R15B,0x3
JNZ 0x00128be8
INC R13
CMP R13,0xa
JNZ 0x00128c47
JMP 0x00128d78
LAB_00128d4b:
MOV R15D,0x1
MOV EBP,R14D
LAB_00128d54:
MOV R14,qword ptr [RSP + 0x8]
MOV ECX,dword ptr [RSP + 0x4]
LAB_00128d5d:
TEST R12B,0x1
JNZ 0x00128d32
LAB_00128d63:
MOV R15D,0x1
MOV EBP,ECX
JMP 0x00128d32
LAB_00128d6d:
MOV EBP,dword ptr [R14 + 0x4]
DEC EBP
JMP 0x00128be8
LAB_00128d78:
MOV EBP,0xffffffff
JMP 0x00128be8
LAB_00128d82:
MOV RAX,qword ptr [RBX + 0xe8]
TEST RAX,RAX
CMOVZ RAX,RBX
MOV RAX,qword ptr [RAX + 0x8]
LEA R14,[RBX + 0x100]
MOV RDI,qword ptr [RAX + 0x48]
CALL qword ptr [RDI]
MOV R15,RAX
MOV EDI,dword ptr [RBX + 0x50]
CALL 0x001172d0
LEA RDI,[0x14d362]
LEA RDX,[0x14db69]
MOV ESI,0x2ec
MOV RCX,R14
MOV R8,R15
MOV R9,RAX
XOR EAX,EAX
CALL 0x00117c70
|
/* ggml_backend_sched_backend_id_from_cur(ggml_backend_sched*, ggml_tensor*) */
ulong ggml_backend_sched_backend_id_from_cur(ggml_backend_sched *param_1,ggml_tensor *param_2)
{
code *pcVar1;
bool bVar2;
char cVar3;
uint uVar4;
ggml_tensor *pgVar5;
int8 uVar6;
int8 uVar7;
ulong unaff_RBP;
long lVar8;
ulong uVar9;
bool bVar10;
uVar4 = ggml_backend_sched_backend_from_buffer(param_1,param_2,param_2);
if ((uVar4 == 0xffffffff) &&
((*(ggml_tensor **)(param_2 + 0xe8) == (ggml_tensor *)0x0 ||
(uVar4 = ggml_backend_sched_backend_from_buffer
(param_1,*(ggml_tensor **)(param_2 + 0xe8),param_2), uVar4 == 0xffffffff)))
) {
if ((*(long *)(param_2 + 8) != 0) ||
((*(long *)(param_2 + 0xe8) != 0 && (*(long *)(*(long *)(param_2 + 0xe8) + 8) != 0)))) {
pgVar5 = *(ggml_tensor **)(param_2 + 0xe8);
if (*(ggml_tensor **)(param_2 + 0xe8) == (ggml_tensor *)0x0) {
pgVar5 = param_2;
}
uVar6 = (*(code *)**(int8 **)(*(long *)(pgVar5 + 8) + 0x48))();
uVar7 = ggml_op_name(*(int4 *)(param_2 + 0x50));
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-backend.cpp"
,0x2ec,
"pre-allocated tensor (%s) in a buffer (%s) that cannot run the operation (%s)",
param_2 + 0x100,uVar6,uVar7);
}
if (((byte)param_2[0x94] & 1) == 0) {
lVar8 = 0;
do {
pgVar5 = *(ggml_tensor **)(param_2 + lVar8 * 8 + 0x98);
if (pgVar5 == (ggml_tensor *)0x0) {
bVar2 = false;
}
else {
bVar2 = false;
if (((*(int *)(param_2 + 0x50) != 0x2d) && (*(long *)(pgVar5 + 8) != 0)) &&
(*(int *)(*(long *)(pgVar5 + 8) + 0x60) == 1)) {
uVar4 = ggml_backend_sched_backend_from_buffer(param_1,pgVar5,param_2);
if ((uVar4 == *(int *)(param_1 + 4) - 1U) &&
(pcVar1 = *(code **)(*(long *)(*(long *)(pgVar5 + 8) + 0x48) + 0x28),
pcVar1 != (code *)0x0)) {
cVar3 = (*pcVar1)();
if (cVar3 != '\0') {
bVar10 = 0 < (int)uVar4;
if (0 < (int)uVar4) {
uVar9 = 0;
do {
cVar3 = (**(code **)(*(long *)(*(long *)(param_1 + uVar9 * 8 + 8) + 0x70) + 0x48
))(*(long *)(*(long *)(param_1 + uVar9 * 8 + 8) + 0x70),
param_2);
if (cVar3 != '\0') {
pcVar1 = *(code **)(*(long *)(*(long *)(param_1 + uVar9 * 8 + 8) + 0x70) +
0x58);
if ((pcVar1 != (code *)0x0) &&
(cVar3 = (*pcVar1)(*(long *)(*(long *)(param_1 + uVar9 * 8 + 8) + 0x70),
param_2), cVar3 != '\0')) {
unaff_RBP = uVar9 & 0xffffffff;
break;
}
}
uVar9 = uVar9 + 1;
bVar10 = uVar9 < uVar4;
} while (uVar9 != uVar4);
}
bVar2 = true;
if (bVar10) goto LAB_00128d32;
}
}
unaff_RBP = (ulong)uVar4;
bVar2 = true;
}
}
LAB_00128d32:
if (bVar2) goto LAB_00128be8;
lVar8 = lVar8 + 1;
} while (lVar8 != 10);
unaff_RBP = 0xffffffff;
}
else {
unaff_RBP = (ulong)(*(int *)(param_1 + 4) - 1);
}
}
else {
unaff_RBP = (ulong)uVar4;
}
LAB_00128be8:
return unaff_RBP & 0xffffffff;
}
|
|
59,526
|
ggml_backend_sched_backend_id_from_cur(ggml_backend_sched*, ggml_tensor*)
|
ngxson[P]ggml-easy/ggml/src/ggml-backend.cpp
|
static int ggml_backend_sched_backend_id_from_cur(ggml_backend_sched_t sched, struct ggml_tensor * tensor) {
// assign pre-allocated nodes to their backend
int cur_backend_id = ggml_backend_sched_backend_from_buffer(sched, tensor, tensor);
if (cur_backend_id != -1) {
SET_CAUSE(tensor, "1.dst");
return cur_backend_id;
}
// view_src
if (tensor->view_src != NULL) {
cur_backend_id = ggml_backend_sched_backend_from_buffer(sched, tensor->view_src, tensor);
if (cur_backend_id != -1) {
SET_CAUSE(tensor, "1.vsrc");
return cur_backend_id;
}
}
if (tensor->buffer || (tensor->view_src && tensor->view_src->buffer)) {
// since the tensor is pre-allocated, it cannot be moved to another backend
ggml_backend_buffer_t buffer = tensor->view_src ? tensor->view_src->buffer : tensor->buffer;
GGML_ABORT("pre-allocated tensor (%s) in a buffer (%s) that cannot run the operation (%s)", tensor->name, ggml_backend_buffer_name(buffer), ggml_op_name(tensor->op));
}
// graph input
if (tensor->flags & GGML_TENSOR_FLAG_INPUT) {
cur_backend_id = sched->n_backends - 1; // last backend (assumed CPU)
SET_CAUSE(tensor, "1.inp");
return cur_backend_id;
}
// operations with weights are preferably run on the same backend as the weights
for (int i = 0; i < GGML_MAX_SRC; i++) {
const struct ggml_tensor * src = tensor->src[i];
if (src == NULL) {
continue;
}
// skip ROPE since the rope freqs tensor is too small to choose a backend based on it
// not an ideal solution
if (tensor->op != GGML_OP_ROPE && src->buffer != NULL && src->buffer->usage == GGML_BACKEND_BUFFER_USAGE_WEIGHTS) {
int src_backend_id = ggml_backend_sched_backend_from_buffer(sched, src, tensor);
// check if a backend with higher prio wants to offload the op
if (src_backend_id == sched->n_backends - 1 && ggml_backend_buffer_is_host(src->buffer)) {
for (int b = 0; b < src_backend_id; b++) {
if (ggml_backend_supports_op(sched->backends[b], tensor) && ggml_backend_offload_op(sched->backends[b], tensor)) {
SET_CAUSE(tensor, "1.off");
return b;
}
}
}
SET_CAUSE(tensor, "1.wgt%d", i);
return src_backend_id;
}
}
return -1;
}
|
O2
|
cpp
|
ggml_backend_sched_backend_id_from_cur(ggml_backend_sched*, ggml_tensor*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdx
callq 0x2d95b
cmpl $-0x1, %eax
je 0x2d72b
movl %eax, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0xe8(%rbx), %rsi
testq %rsi, %rsi
je 0x2d76a
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2d95b
cmpl $-0x1, %eax
jne 0x2d71e
movq 0xe8(%rbx), %rax
cmpq $0x0, 0x8(%rbx)
jne 0x2d847
testq %rax, %rax
je 0x2d775
cmpq $0x0, 0x8(%rax)
je 0x2d775
jmp 0x2d847
cmpq $0x0, 0x8(%rbx)
jne 0x2d845
testb $0x1, 0x94(%rbx)
jne 0x2d7ad
pushq $0x13
popq %rax
pushq $-0x1
popq %rbp
cmpq $0x1d, %rax
je 0x2d720
movq (%rbx,%rax,8), %r15
testq %r15, %r15
je 0x2d7a8
cmpl $0x2d, 0x50(%rbx)
je 0x2d7a8
movq 0x8(%r15), %rcx
testq %rcx, %rcx
je 0x2d7a8
cmpl $0x1, 0x60(%rcx)
je 0x2d7b8
incq %rax
jmp 0x2d784
movl 0x4(%r14), %ebp
decl %ebp
jmp 0x2d720
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2d95b
movl %eax, %ebp
movl 0x4(%r14), %eax
decl %eax
cmpl %eax, %ebp
jne 0x2d720
movq 0x8(%r15), %rax
movq 0x48(%rax), %rdi
movq 0x28(%rdi), %rax
testq %rax, %rax
je 0x2d720
callq *%rax
testb %al, %al
je 0x2d720
xorl %r15d, %r15d
testl %ebp, %ebp
movl %ebp, %r12d
cmovlel %r15d, %r12d
cmpq %r15, %r12
je 0x2d720
movq 0x8(%r14,%r15,8), %rax
movq 0x70(%rax), %rdi
movq %rbx, %rsi
callq *0x48(%rdi)
testb %al, %al
je 0x2d838
movq 0x8(%r14,%r15,8), %rax
movq 0x70(%rax), %rdi
movq 0x58(%rdi), %rax
testq %rax, %rax
je 0x2d838
movq %rbx, %rsi
callq *%rax
testb %al, %al
jne 0x2d83d
incq %r15
jmp 0x2d801
movl %r15d, %ebp
jmp 0x2d720
xorl %eax, %eax
testq %rax, %rax
cmoveq %rbx, %rax
movq 0x8(%rax), %rax
leaq 0x100(%rbx), %r14
movq 0x48(%rax), %rdi
callq *(%rdi)
movq %rax, %r15
movl 0x50(%rbx), %edi
callq 0x1d9c0
leaq 0x20a61(%rip), %rdi # 0x4e2d2
leaq 0x21261(%rip), %rdx # 0x4ead9
movl $0x2ec, %esi # imm = 0x2EC
movq %r14, %rcx
movq %r15, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0x1e770
|
_ZL38ggml_backend_sched_backend_id_from_curP18ggml_backend_schedP11ggml_tensor:
push rbp
push r15
push r14
push r12
push rbx
mov rbx, rsi
mov r14, rdi
mov rdx, rsi
call _ZL38ggml_backend_sched_backend_from_bufferP18ggml_backend_schedPK11ggml_tensorS3_; ggml_backend_sched_backend_from_buffer(ggml_backend_sched *,ggml_tensor const*,ggml_tensor const*)
cmp eax, 0FFFFFFFFh
jz short loc_2D72B
loc_2D71E:
mov ebp, eax
loc_2D720:
mov eax, ebp
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_2D72B:
mov rsi, [rbx+0E8h]
test rsi, rsi
jz short loc_2D76A
mov rdi, r14
mov rdx, rbx
call _ZL38ggml_backend_sched_backend_from_bufferP18ggml_backend_schedPK11ggml_tensorS3_; ggml_backend_sched_backend_from_buffer(ggml_backend_sched *,ggml_tensor const*,ggml_tensor const*)
cmp eax, 0FFFFFFFFh
jnz short loc_2D71E
mov rax, [rbx+0E8h]
cmp qword ptr [rbx+8], 0
jnz loc_2D847
test rax, rax
jz short loc_2D775
cmp qword ptr [rax+8], 0
jz short loc_2D775
jmp loc_2D847
loc_2D76A:
cmp qword ptr [rbx+8], 0
jnz loc_2D845
loc_2D775:
test byte ptr [rbx+94h], 1
jnz short loc_2D7AD
push 13h
pop rax
push 0FFFFFFFFFFFFFFFFh
pop rbp
loc_2D784:
cmp rax, 1Dh
jz short loc_2D720
mov r15, [rbx+rax*8]
test r15, r15
jz short loc_2D7A8
cmp dword ptr [rbx+50h], 2Dh ; '-'
jz short loc_2D7A8
mov rcx, [r15+8]
test rcx, rcx
jz short loc_2D7A8
cmp dword ptr [rcx+60h], 1
jz short loc_2D7B8
loc_2D7A8:
inc rax
jmp short loc_2D784
loc_2D7AD:
mov ebp, [r14+4]
dec ebp
jmp loc_2D720
loc_2D7B8:
mov rdi, r14
mov rsi, r15
mov rdx, rbx
call _ZL38ggml_backend_sched_backend_from_bufferP18ggml_backend_schedPK11ggml_tensorS3_; ggml_backend_sched_backend_from_buffer(ggml_backend_sched *,ggml_tensor const*,ggml_tensor const*)
mov ebp, eax
mov eax, [r14+4]
dec eax
cmp ebp, eax
jnz loc_2D720
mov rax, [r15+8]
mov rdi, [rax+48h]
mov rax, [rdi+28h]
test rax, rax
jz loc_2D720
call rax
test al, al
jz loc_2D720
xor r15d, r15d
test ebp, ebp
mov r12d, ebp
cmovle r12d, r15d
loc_2D801:
cmp r12, r15
jz loc_2D720
mov rax, [r14+r15*8+8]
mov rdi, [rax+70h]
mov rsi, rbx
call qword ptr [rdi+48h]
test al, al
jz short loc_2D838
mov rax, [r14+r15*8+8]
mov rdi, [rax+70h]
mov rax, [rdi+58h]
test rax, rax
jz short loc_2D838
mov rsi, rbx
call rax
test al, al
jnz short loc_2D83D
loc_2D838:
inc r15
jmp short loc_2D801
loc_2D83D:
mov ebp, r15d
jmp loc_2D720
loc_2D845:
xor eax, eax
loc_2D847:
test rax, rax
cmovz rax, rbx
mov rax, [rax+8]
lea r14, [rbx+100h]
mov rdi, [rax+48h]
call qword ptr [rdi]
mov r15, rax
mov edi, [rbx+50h]
call _ggml_op_name
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aPreAllocatedTe; "pre-allocated tensor (%s) in a buffer ("...
mov esi, 2ECh
mov rcx, r14
mov r8, r15
mov r9, rax
xor eax, eax
call _ggml_abort
|
long long ggml_backend_sched_backend_id_from_cur(
long long a1,
long long a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
double a7,
double a8,
__m128 a9,
__m128 a10)
{
unsigned int v12; // eax
unsigned int v13; // ebp
long long v15; // rsi
long long v16; // rax
long long v17; // rax
long long v18; // r15
long long v19; // rcx
unsigned __int8 (*v20)(void); // rax
long long v21; // r15
long long v22; // r12
long long v23; // rdi
long long v24; // rdi
unsigned __int8 ( *v25)(long long, long long); // rax
long long v26; // r15
char *v27; // rax
__m128 v28; // xmm4
__m128 v29; // xmm5
char v30; // [rsp+0h] [rbp-28h]
v12 = ggml_backend_sched_backend_from_buffer(a1, a2, a2);
if ( v12 != -1 )
return v12;
v15 = *(_QWORD *)(a2 + 232);
if ( v15 )
{
v12 = ggml_backend_sched_backend_from_buffer(a1, v15, a2);
if ( v12 != -1 )
return v12;
v16 = *(_QWORD *)(a2 + 232);
if ( *(_QWORD *)(a2 + 8) || v16 && *(_QWORD *)(v16 + 8) )
{
LABEL_32:
if ( !v16 )
v16 = a2;
v26 = (**(long long (***)(void))(*(_QWORD *)(v16 + 8) + 72LL))();
v27 = ggml_op_name(*(_DWORD *)(a2 + 80));
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-backend.cpp",
748,
(long long)"pre-allocated tensor (%s) in a buffer (%s) that cannot run the operation (%s)",
a2 + 256,
v26,
(long long)v27,
a3,
a4,
a5,
a6,
v28,
v29,
a9,
a10,
v30);
}
}
else if ( *(_QWORD *)(a2 + 8) )
{
v16 = 0LL;
goto LABEL_32;
}
if ( (*(_BYTE *)(a2 + 148) & 1) != 0 )
{
return (unsigned int)(*(_DWORD *)(a1 + 4) - 1);
}
else
{
v17 = 19LL;
v13 = -1;
while ( v17 != 29 )
{
v18 = *(_QWORD *)(a2 + 8 * v17);
if ( v18 )
{
if ( *(_DWORD *)(a2 + 80) != 45 )
{
v19 = *(_QWORD *)(v18 + 8);
if ( v19 )
{
if ( *(_DWORD *)(v19 + 96) == 1 )
{
v13 = ggml_backend_sched_backend_from_buffer(a1, *(_QWORD *)(a2 + 8 * v17), a2);
if ( v13 == *(_DWORD *)(a1 + 4) - 1 )
{
v20 = *(unsigned __int8 (**)(void))(*(_QWORD *)(*(_QWORD *)(v18 + 8) + 72LL) + 40LL);
if ( v20 )
{
if ( v20() )
{
v21 = 0LL;
v22 = v13;
if ( (int)v13 <= 0 )
v22 = 0LL;
while ( v22 != v21 )
{
v23 = *(_QWORD *)(*(_QWORD *)(a1 + 8 * v21 + 8) + 112LL);
if ( (*(unsigned __int8 ( **)(long long, long long))(v23 + 72))(v23, a2) )
{
v24 = *(_QWORD *)(*(_QWORD *)(a1 + 8 * v21 + 8) + 112LL);
v25 = *(unsigned __int8 ( **)(long long, long long))(v24 + 88);
if ( v25 )
{
if ( v25(v24, a2) )
return (unsigned int)v21;
}
}
++v21;
}
}
}
}
return v13;
}
}
}
}
++v17;
}
}
return v13;
}
|
ggml_backend_sched_backend_id_from_cur:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
MOV RDX,RSI
CALL 0x0012d95b
CMP EAX,-0x1
JZ 0x0012d72b
LAB_0012d71e:
MOV EBP,EAX
LAB_0012d720:
MOV EAX,EBP
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0012d72b:
MOV RSI,qword ptr [RBX + 0xe8]
TEST RSI,RSI
JZ 0x0012d76a
MOV RDI,R14
MOV RDX,RBX
CALL 0x0012d95b
CMP EAX,-0x1
JNZ 0x0012d71e
MOV RAX,qword ptr [RBX + 0xe8]
CMP qword ptr [RBX + 0x8],0x0
JNZ 0x0012d847
TEST RAX,RAX
JZ 0x0012d775
CMP qword ptr [RAX + 0x8],0x0
JZ 0x0012d775
JMP 0x0012d847
LAB_0012d76a:
CMP qword ptr [RBX + 0x8],0x0
JNZ 0x0012d845
LAB_0012d775:
TEST byte ptr [RBX + 0x94],0x1
JNZ 0x0012d7ad
PUSH 0x13
POP RAX
PUSH -0x1
POP RBP
LAB_0012d784:
CMP RAX,0x1d
JZ 0x0012d720
MOV R15,qword ptr [RBX + RAX*0x8]
TEST R15,R15
JZ 0x0012d7a8
CMP dword ptr [RBX + 0x50],0x2d
JZ 0x0012d7a8
MOV RCX,qword ptr [R15 + 0x8]
TEST RCX,RCX
JZ 0x0012d7a8
CMP dword ptr [RCX + 0x60],0x1
JZ 0x0012d7b8
LAB_0012d7a8:
INC RAX
JMP 0x0012d784
LAB_0012d7ad:
MOV EBP,dword ptr [R14 + 0x4]
DEC EBP
JMP 0x0012d720
LAB_0012d7b8:
MOV RDI,R14
MOV RSI,R15
MOV RDX,RBX
CALL 0x0012d95b
MOV EBP,EAX
MOV EAX,dword ptr [R14 + 0x4]
DEC EAX
CMP EBP,EAX
JNZ 0x0012d720
MOV RAX,qword ptr [R15 + 0x8]
MOV RDI,qword ptr [RAX + 0x48]
MOV RAX,qword ptr [RDI + 0x28]
TEST RAX,RAX
JZ 0x0012d720
CALL RAX
TEST AL,AL
JZ 0x0012d720
XOR R15D,R15D
TEST EBP,EBP
MOV R12D,EBP
CMOVLE R12D,R15D
LAB_0012d801:
CMP R12,R15
JZ 0x0012d720
MOV RAX,qword ptr [R14 + R15*0x8 + 0x8]
MOV RDI,qword ptr [RAX + 0x70]
MOV RSI,RBX
CALL qword ptr [RDI + 0x48]
TEST AL,AL
JZ 0x0012d838
MOV RAX,qword ptr [R14 + R15*0x8 + 0x8]
MOV RDI,qword ptr [RAX + 0x70]
MOV RAX,qword ptr [RDI + 0x58]
TEST RAX,RAX
JZ 0x0012d838
MOV RSI,RBX
CALL RAX
TEST AL,AL
JNZ 0x0012d83d
LAB_0012d838:
INC R15
JMP 0x0012d801
LAB_0012d83d:
MOV EBP,R15D
JMP 0x0012d720
LAB_0012d845:
XOR EAX,EAX
LAB_0012d847:
TEST RAX,RAX
CMOVZ RAX,RBX
MOV RAX,qword ptr [RAX + 0x8]
LEA R14,[RBX + 0x100]
MOV RDI,qword ptr [RAX + 0x48]
CALL qword ptr [RDI]
MOV R15,RAX
MOV EDI,dword ptr [RBX + 0x50]
CALL 0x0011d9c0
LEA RDI,[0x14e2d2]
LEA RDX,[0x14ead9]
MOV ESI,0x2ec
MOV RCX,R14
MOV R8,R15
MOV R9,RAX
XOR EAX,EAX
CALL 0x0011e770
|
/* ggml_backend_sched_backend_id_from_cur(ggml_backend_sched*, ggml_tensor*) */
ulong ggml_backend_sched_backend_id_from_cur(ggml_backend_sched *param_1,ggml_tensor *param_2)
{
code *pcVar1;
char cVar2;
uint uVar3;
long lVar4;
ggml_tensor *pgVar5;
int8 uVar6;
int8 uVar7;
ulong uVar8;
ulong uVar9;
ulong uStack_30;
uVar3 = ggml_backend_sched_backend_from_buffer(param_1,param_2,param_2);
if (uVar3 == 0xffffffff) {
if (*(ggml_tensor **)(param_2 + 0xe8) == (ggml_tensor *)0x0) {
if (*(long *)(param_2 + 8) != 0) {
pgVar5 = (ggml_tensor *)0x0;
LAB_0012d847:
if (pgVar5 == (ggml_tensor *)0x0) {
pgVar5 = param_2;
}
uVar6 = (*(code *)**(int8 **)(*(long *)(pgVar5 + 8) + 0x48))();
uVar7 = ggml_op_name(*(int4 *)(param_2 + 0x50));
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-backend.cpp"
,0x2ec,
"pre-allocated tensor (%s) in a buffer (%s) that cannot run the operation (%s)",
param_2 + 0x100,uVar6,uVar7);
}
}
else {
uVar3 = ggml_backend_sched_backend_from_buffer
(param_1,*(ggml_tensor **)(param_2 + 0xe8),param_2);
if (uVar3 != 0xffffffff) goto LAB_0012d71e;
pgVar5 = *(ggml_tensor **)(param_2 + 0xe8);
if ((*(long *)(param_2 + 8) != 0) ||
((pgVar5 != (ggml_tensor *)0x0 && (*(long *)(pgVar5 + 8) != 0)))) goto LAB_0012d847;
}
if (((byte)param_2[0x94] & 1) == 0) {
uStack_30 = 0xffffffffffffffff;
for (lVar4 = 0x13; lVar4 != 0x1d; lVar4 = lVar4 + 1) {
pgVar5 = *(ggml_tensor **)(param_2 + lVar4 * 8);
if ((((pgVar5 != (ggml_tensor *)0x0) && (*(int *)(param_2 + 0x50) != 0x2d)) &&
(*(long *)(pgVar5 + 8) != 0)) && (*(int *)(*(long *)(pgVar5 + 8) + 0x60) == 1)) {
uVar3 = ggml_backend_sched_backend_from_buffer(param_1,pgVar5,param_2);
uStack_30 = (ulong)uVar3;
if (((uVar3 == *(int *)(param_1 + 4) - 1U) &&
(pcVar1 = *(code **)(*(long *)(*(long *)(pgVar5 + 8) + 0x48) + 0x28),
pcVar1 != (code *)0x0)) && (cVar2 = (*pcVar1)(), cVar2 != '\0')) {
uVar9 = 0;
uVar8 = (ulong)uVar3;
if ((int)uVar3 < 1) {
uVar8 = uVar9;
}
goto LAB_0012d801;
}
break;
}
}
}
else {
uStack_30 = (ulong)(*(int *)(param_1 + 4) - 1);
}
}
else {
LAB_0012d71e:
uStack_30 = (ulong)uVar3;
}
LAB_0012d720:
return uStack_30 & 0xffffffff;
LAB_0012d801:
if (uVar8 == uVar9) goto LAB_0012d720;
cVar2 = (**(code **)(*(long *)(*(long *)(param_1 + uVar9 * 8 + 8) + 0x70) + 0x48))
(*(long *)(*(long *)(param_1 + uVar9 * 8 + 8) + 0x70),param_2);
if (cVar2 != '\0') {
pcVar1 = *(code **)(*(long *)(*(long *)(param_1 + uVar9 * 8 + 8) + 0x70) + 0x58);
if ((pcVar1 != (code *)0x0) &&
(cVar2 = (*pcVar1)(*(long *)(*(long *)(param_1 + uVar9 * 8 + 8) + 0x70),param_2),
cVar2 != '\0')) {
uStack_30 = uVar9 & 0xffffffff;
goto LAB_0012d720;
}
}
uVar9 = uVar9 + 1;
goto LAB_0012d801;
}
|
|
59,527
|
my_like_range_simple
|
eloqsql/strings/ctype-simple.c
|
my_bool my_like_range_simple(CHARSET_INFO *cs,
const char *ptr, size_t ptr_length,
pbool escape, pbool w_one, pbool w_many,
size_t res_length,
char *min_str,char *max_str,
size_t *min_length, size_t *max_length)
{
const char *end= ptr + ptr_length;
char *min_org=min_str;
char *min_end=min_str+res_length;
size_t charlen= res_length / cs->mbmaxlen;
for (; ptr != end && min_str != min_end && charlen > 0 ; ptr++, charlen--)
{
if (*ptr == escape && ptr+1 != end)
{
ptr++; /* Skip escape */
*min_str++= *max_str++ = *ptr;
continue;
}
if (*ptr == w_one) /* '_' in SQL */
{
*min_str++='\0'; /* This should be min char */
*max_str++= (char) cs->max_sort_char;
continue;
}
if (*ptr == w_many) /* '%' in SQL */
{
/* Calculate length of keys */
*min_length= (cs->state & (MY_CS_BINSORT | MY_CS_NOPAD)) ?
(size_t) (min_str - min_org) :
res_length;
*max_length= res_length;
do
{
*min_str++= 0;
*max_str++= (char) cs->max_sort_char;
} while (min_str != min_end);
return 0;
}
*min_str++= *max_str++ = *ptr;
}
*min_length= *max_length = (size_t) (min_str - min_org);
while (min_str != min_end)
*min_str++= *max_str++ = ' '; /* Because if key compression */
return 0;
}
|
O3
|
c
|
my_like_range_simple:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r10
movq 0x30(%rbp), %rdx
movq 0x28(%rbp), %r12
movq 0x20(%rbp), %rbx
movq 0x18(%rbp), %r14
movq 0x10(%rbp), %r11
testq %r10, %r10
je 0x70ffd
addq %rsi, %r10
movl 0x9c(%rdi), %r15d
xorl %r13d, %r13d
movq %r11, %rax
xorl %edx, %edx
divq %r15
addq $-0x1, %rax
setb %dl
cmpq %r13, %r11
je 0x70ff0
testb %dl, %dl
je 0x70ff0
movb (%rsi), %r15b
cmpb %cl, %r15b
jne 0x70fbc
leaq 0x1(%rsi), %rdx
cmpq %r10, %rdx
je 0x70fbc
movb (%rdx), %sil
movb %sil, (%rbx,%r13)
movb %sil, (%r14,%r13)
jmp 0x70fe2
cmpb %r8b, %r15b
jne 0x70fd2
movb $0x0, (%r14,%r13)
movb 0xa8(%rdi), %dl
movb %dl, (%rbx,%r13)
jmp 0x70fdf
cmpb %r9b, %r15b
je 0x71033
movb %r15b, (%rbx,%r13)
movb %r15b, (%r14,%r13)
movq %rsi, %rdx
incq %rdx
incq %r13
movq %rdx, %rsi
cmpq %r10, %rdx
jne 0x70f8e
leaq (%r14,%r13), %rax
addq %r13, %rbx
movq 0x30(%rbp), %rdx
jmp 0x71000
movq %r14, %rax
addq %r14, %r11
movq %rax, %rcx
subq %r14, %rcx
movq %rcx, (%rdx)
movq %rcx, (%r12)
cmpq %r11, %rax
je 0x71026
movb $0x20, %cl
movb %cl, (%rbx)
incq %rbx
movb %cl, (%rax)
incq %rax
cmpq %r11, %rax
jne 0x71017
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl $0x20010, 0xc(%rdi) # imm = 0x20010
movq %r13, %rax
cmoveq %r11, %rax
movq %rax, (%r12)
movq 0x30(%rbp), %rax
movq %r11, (%rax)
movb $0x0, (%r14,%r13)
movb 0xa8(%rdi), %al
movb %al, (%rbx,%r13)
incq %r13
cmpq %r13, %r11
jne 0x7104c
jmp 0x71026
|
my_like_range_simple:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
mov r10, rdx
mov rdx, [rbp+arg_20]
mov r12, [rbp+arg_18]
mov rbx, [rbp+arg_10]
mov r14, [rbp+arg_8]
mov r11, [rbp+arg_0]
test r10, r10
jz loc_70FFD
add r10, rsi
mov r15d, [rdi+9Ch]
xor r13d, r13d
mov rax, r11
xor edx, edx
div r15
loc_70F8E:
add rax, 0FFFFFFFFFFFFFFFFh
setb dl
cmp r11, r13
jz short loc_70FF0
test dl, dl
jz short loc_70FF0
mov r15b, [rsi]
cmp r15b, cl
jnz short loc_70FBC
lea rdx, [rsi+1]
cmp rdx, r10
jz short loc_70FBC
mov sil, [rdx]
mov [rbx+r13], sil
mov [r14+r13], sil
jmp short loc_70FE2
loc_70FBC:
cmp r15b, r8b
jnz short loc_70FD2
mov byte ptr [r14+r13], 0
mov dl, [rdi+0A8h]
mov [rbx+r13], dl
jmp short loc_70FDF
loc_70FD2:
cmp r15b, r9b
jz short loc_71033
mov [rbx+r13], r15b
mov [r14+r13], r15b
loc_70FDF:
mov rdx, rsi
loc_70FE2:
inc rdx
inc r13
mov rsi, rdx
cmp rdx, r10
jnz short loc_70F8E
loc_70FF0:
lea rax, [r14+r13]
add rbx, r13
mov rdx, [rbp+arg_20]
jmp short loc_71000
loc_70FFD:
mov rax, r14
loc_71000:
add r11, r14
mov rcx, rax
sub rcx, r14
mov [rdx], rcx
mov [r12], rcx
cmp rax, r11
jz short loc_71026
mov cl, 20h ; ' '
loc_71017:
mov [rbx], cl
inc rbx
mov [rax], cl
inc rax
cmp rax, r11
jnz short loc_71017
loc_71026:
xor eax, eax
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_71033:
test dword ptr [rdi+0Ch], 20010h
mov rax, r13
cmovz rax, r11
mov [r12], rax
mov rax, [rbp+arg_20]
mov [rax], r11
loc_7104C:
mov byte ptr [r14+r13], 0
mov al, [rdi+0A8h]
mov [rbx+r13], al
inc r13
cmp r11, r13
jnz short loc_7104C
jmp short loc_71026
|
long long my_like_range_simple(
long long a1,
char *a2,
long long a3,
char a4,
char a5,
char a6,
unsigned long long a7,
long long a8,
_BYTE *a9,
unsigned long long *a10,
_QWORD *a11)
{
_QWORD *v12; // rdx
_BYTE *v13; // rbx
char *v14; // r10
unsigned long long v15; // r13
unsigned long long v16; // rax
bool v17; // cf
char v18; // r15
char *v19; // rdx
char v20; // si
_BYTE *v21; // rax
unsigned long long v23; // rax
v12 = a11;
v13 = a9;
if ( a3 )
{
v14 = &a2[a3];
v15 = 0LL;
v16 = a7 / *(unsigned int *)(a1 + 156);
while ( 1 )
{
v17 = v16-- != 0;
if ( a7 == v15 || !v17 )
{
LABEL_14:
v21 = (_BYTE *)(a8 + v15);
v13 = &a9[v15];
v12 = a11;
goto LABEL_16;
}
v18 = *a2;
if ( *a2 != a4 || (v19 = a2 + 1, a2 + 1 == v14) )
{
if ( v18 == a5 )
{
*(_BYTE *)(a8 + v15) = 0;
a9[v15] = *(_BYTE *)(a1 + 168);
}
else
{
if ( v18 == a6 )
{
v23 = v15;
if ( (*(_DWORD *)(a1 + 12) & 0x20010) == 0 )
v23 = a7;
*a10 = v23;
*a11 = a7;
do
{
*(_BYTE *)(a8 + v15) = 0;
a9[v15++] = *(_BYTE *)(a1 + 168);
}
while ( a7 != v15 );
return 0LL;
}
a9[v15] = v18;
*(_BYTE *)(a8 + v15) = v18;
}
v19 = a2;
}
else
{
v20 = *v19;
a9[v15] = *v19;
*(_BYTE *)(a8 + v15) = v20;
}
++v15;
a2 = v19 + 1;
if ( v19 + 1 == v14 )
goto LABEL_14;
}
}
v21 = (_BYTE *)a8;
LABEL_16:
*v12 = &v21[-a8];
for ( *a10 = (unsigned long long)&v21[-a8]; v21 != (_BYTE *)(a8 + a7); ++v21 )
{
*v13++ = 32;
*v21 = 32;
}
return 0LL;
}
|
my_like_range_simple:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R10,RDX
MOV RDX,qword ptr [RBP + 0x30]
MOV R12,qword ptr [RBP + 0x28]
MOV RBX,qword ptr [RBP + 0x20]
MOV R14,qword ptr [RBP + 0x18]
MOV R11,qword ptr [RBP + 0x10]
TEST R10,R10
JZ 0x00170ffd
ADD R10,RSI
MOV R15D,dword ptr [RDI + 0x9c]
XOR R13D,R13D
MOV RAX,R11
XOR EDX,EDX
DIV R15
LAB_00170f8e:
ADD RAX,-0x1
SETC DL
CMP R11,R13
JZ 0x00170ff0
TEST DL,DL
JZ 0x00170ff0
MOV R15B,byte ptr [RSI]
CMP R15B,CL
JNZ 0x00170fbc
LEA RDX,[RSI + 0x1]
CMP RDX,R10
JZ 0x00170fbc
MOV SIL,byte ptr [RDX]
MOV byte ptr [RBX + R13*0x1],SIL
MOV byte ptr [R14 + R13*0x1],SIL
JMP 0x00170fe2
LAB_00170fbc:
CMP R15B,R8B
JNZ 0x00170fd2
MOV byte ptr [R14 + R13*0x1],0x0
MOV DL,byte ptr [RDI + 0xa8]
MOV byte ptr [RBX + R13*0x1],DL
JMP 0x00170fdf
LAB_00170fd2:
CMP R15B,R9B
JZ 0x00171033
MOV byte ptr [RBX + R13*0x1],R15B
MOV byte ptr [R14 + R13*0x1],R15B
LAB_00170fdf:
MOV RDX,RSI
LAB_00170fe2:
INC RDX
INC R13
MOV RSI,RDX
CMP RDX,R10
JNZ 0x00170f8e
LAB_00170ff0:
LEA RAX,[R14 + R13*0x1]
ADD RBX,R13
MOV RDX,qword ptr [RBP + 0x30]
JMP 0x00171000
LAB_00170ffd:
MOV RAX,R14
LAB_00171000:
ADD R11,R14
MOV RCX,RAX
SUB RCX,R14
MOV qword ptr [RDX],RCX
MOV qword ptr [R12],RCX
CMP RAX,R11
JZ 0x00171026
MOV CL,0x20
LAB_00171017:
MOV byte ptr [RBX],CL
INC RBX
MOV byte ptr [RAX],CL
INC RAX
CMP RAX,R11
JNZ 0x00171017
LAB_00171026:
XOR EAX,EAX
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00171033:
TEST dword ptr [RDI + 0xc],0x20010
MOV RAX,R13
CMOVZ RAX,R11
MOV qword ptr [R12],RAX
MOV RAX,qword ptr [RBP + 0x30]
MOV qword ptr [RAX],R11
LAB_0017104c:
MOV byte ptr [R14 + R13*0x1],0x0
MOV AL,byte ptr [RDI + 0xa8]
MOV byte ptr [RBX + R13*0x1],AL
INC R13
CMP R11,R13
JNZ 0x0017104c
JMP 0x00171026
|
int8
my_like_range_simple
(long param_1,char *param_2,long param_3,char param_4,char param_5,char param_6,
ulong param_7,int1 *param_8,int1 *param_9,ulong *param_10,ulong *param_11)
{
char *pcVar1;
char cVar2;
ulong uVar3;
int1 *puVar4;
char *pcVar5;
ulong uVar6;
bool bVar7;
puVar4 = param_8;
if (param_3 != 0) {
pcVar5 = param_2 + param_3;
uVar6 = 0;
uVar3 = param_7 / *(uint *)(param_1 + 0x9c);
do {
bVar7 = uVar3 == 0;
uVar3 = uVar3 - 1;
if ((param_7 == uVar6) || (bVar7)) break;
cVar2 = *param_2;
if ((cVar2 == param_4) && (pcVar1 = param_2 + 1, pcVar1 != pcVar5)) {
cVar2 = *pcVar1;
param_9[uVar6] = cVar2;
param_8[uVar6] = cVar2;
param_2 = pcVar1;
}
else if (cVar2 == param_5) {
param_8[uVar6] = 0;
param_9[uVar6] = *(int1 *)(param_1 + 0xa8);
}
else {
if (cVar2 == param_6) {
uVar3 = uVar6;
if ((*(uint *)(param_1 + 0xc) & 0x20010) == 0) {
uVar3 = param_7;
}
*param_10 = uVar3;
*param_11 = param_7;
do {
param_8[uVar6] = 0;
param_9[uVar6] = *(int1 *)(param_1 + 0xa8);
uVar6 = uVar6 + 1;
} while (param_7 != uVar6);
return 0;
}
param_9[uVar6] = cVar2;
param_8[uVar6] = cVar2;
}
param_2 = param_2 + 1;
uVar6 = uVar6 + 1;
} while (param_2 != pcVar5);
param_9 = param_9 + uVar6;
puVar4 = param_8 + uVar6;
}
*param_11 = (long)puVar4 - (long)param_8;
*param_10 = (long)puVar4 - (long)param_8;
for (; puVar4 != param_8 + param_7; puVar4 = puVar4 + 1) {
*param_9 = 0x20;
param_9 = param_9 + 1;
*puVar4 = 0x20;
}
return 0;
}
|
|
59,528
|
my_charset_get_by_name
|
eloqsql/mysys/charset.c
|
CHARSET_INFO *
my_charset_get_by_name(MY_CHARSET_LOADER *loader,
const char *cs_name, uint cs_flags, myf flags)
{
uint cs_number;
CHARSET_INFO *cs;
DBUG_ENTER("get_charset_by_csname");
DBUG_PRINT("enter",("name: '%s'", cs_name));
my_pthread_once(&charsets_initialized, init_available_charsets);
cs_number= get_charset_number(cs_name, cs_flags, flags);
cs= cs_number ? get_internal_charset(loader, cs_number, flags) : NULL;
if (!cs && (flags & MY_WME))
{
char index_file[FN_REFLEN + sizeof(MY_CHARSET_INDEX)];
strmov(get_charsets_dir(index_file),MY_CHARSET_INDEX);
my_error(EE_UNKNOWN_CHARSET, MYF(ME_BELL), cs_name, index_file);
}
DBUG_RETURN(cs);
}
|
O3
|
c
|
my_charset_get_by_name:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x220, %rsp # imm = 0x220
movq %rcx, %r15
movl %edx, %r12d
movq %rsi, %rbx
movq %rdi, %r14
movq %fs:0x28, %rax
movq %rax, -0x28(%rbp)
leaq 0x3618be(%rip), %rdi # 0x3b0470
leaq -0x9ae(%rip), %rsi # 0x4e20b
callq 0x28350
movq %rbx, %rdi
movl %r12d, %esi
movq %r15, %rdx
callq 0x4e3f6
testl %eax, %eax
je 0x4ebe2
movq %r14, %rdi
movl %eax, %esi
movq %r15, %rdx
callq 0x4e69a
movq %rax, %r14
jmp 0x4ebe5
xorl %r14d, %r14d
testq %r14, %r14
setne %al
testb $0x10, %r15b
sete %cl
orb %al, %cl
jne 0x4ec2f
leaq -0x240(%rbp), %r15
movq %r15, %rdi
callq 0x4dfcb
movabsq $0x6d782e7865646e49, %rcx # imm = 0x6D782E7865646E49
movq %rcx, (%rax)
movw $0x6c, 0x8(%rax)
movl $0x4, %esi
movl $0x16, %edi
movq %rbx, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x5907f
movq %fs:0x28, %rax
cmpq -0x28(%rbp), %rax
jne 0x4ec51
movq %r14, %rax
addq $0x220, %rsp # imm = 0x220
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x28430
|
my_charset_get_by_name:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 220h
mov r15, rcx
mov r12d, edx
mov rbx, rsi
mov r14, rdi
mov rax, fs:28h
mov [rbp+var_28], rax
lea rdi, charsets_initialized
lea rsi, init_available_charsets
call _pthread_once
mov rdi, rbx
mov esi, r12d
mov rdx, r15
call get_charset_number
test eax, eax
jz short loc_4EBE2
mov rdi, r14
mov esi, eax
mov rdx, r15
call get_internal_charset
mov r14, rax
jmp short loc_4EBE5
loc_4EBE2:
xor r14d, r14d
loc_4EBE5:
test r14, r14
setnz al
test r15b, 10h
setz cl
or cl, al
jnz short loc_4EC2F
lea r15, [rbp+var_240]
mov rdi, r15
call get_charsets_dir
mov rcx, 6D782E7865646E49h
mov [rax], rcx
mov word ptr [rax+8], 6Ch ; 'l'
mov esi, 4
mov edi, 16h
mov rdx, rbx
mov rcx, r15
xor eax, eax
call my_error
loc_4EC2F:
mov rax, fs:28h
cmp rax, [rbp+var_28]
jnz short loc_4EC51
mov rax, r14
add rsp, 220h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_4EC51:
call ___stack_chk_fail
|
long long my_charset_get_by_name(long long a1, long long a2, unsigned int a3, long long a4)
{
unsigned int charset_number; // eax
long long internal_charset; // r14
int v8; // r8d
int v9; // r9d
_BYTE v11[536]; // [rsp+0h] [rbp-240h] BYREF
unsigned long long v12; // [rsp+218h] [rbp-28h]
v12 = __readfsqword(0x28u);
pthread_once(&charsets_initialized, init_available_charsets);
charset_number = get_charset_number(a2, a3, a4);
if ( charset_number )
internal_charset = get_internal_charset(a1, charset_number, a4);
else
internal_charset = 0LL;
if ( internal_charset == 0 && (a4 & 0x10) != 0 )
{
strcpy((char *)get_charsets_dir((long long)v11), "Index.xml");
my_error(22, 4, a2, (unsigned int)v11, v8, v9);
}
return internal_charset;
}
|
my_charset_get_by_name:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x220
MOV R15,RCX
MOV R12D,EDX
MOV RBX,RSI
MOV R14,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
LEA RDI,[0x4b0470]
LEA RSI,[0x14e20b]
CALL 0x00128350
MOV RDI,RBX
MOV ESI,R12D
MOV RDX,R15
CALL 0x0014e3f6
TEST EAX,EAX
JZ 0x0014ebe2
MOV RDI,R14
MOV ESI,EAX
MOV RDX,R15
CALL 0x0014e69a
MOV R14,RAX
JMP 0x0014ebe5
LAB_0014ebe2:
XOR R14D,R14D
LAB_0014ebe5:
TEST R14,R14
SETNZ AL
TEST R15B,0x10
SETZ CL
OR CL,AL
JNZ 0x0014ec2f
LEA R15,[RBP + -0x240]
MOV RDI,R15
CALL 0x0014dfcb
MOV RCX,0x6d782e7865646e49
MOV qword ptr [RAX],RCX
MOV word ptr [RAX + 0x8],0x6c
MOV ESI,0x4
MOV EDI,0x16
MOV RDX,RBX
MOV RCX,R15
XOR EAX,EAX
CALL 0x0015907f
LAB_0014ec2f:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x28]
JNZ 0x0014ec51
MOV RAX,R14
ADD RSP,0x220
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0014ec51:
CALL 0x00128430
|
long my_charset_get_by_name(int8 param_1,int8 param_2,int4 param_3,ulong param_4)
{
int iVar1;
long lVar2;
int8 *puVar3;
long in_FS_OFFSET;
int1 local_248 [536];
long local_30;
local_30 = *(long *)(in_FS_OFFSET + 0x28);
pthread_once(&charsets_initialized,init_available_charsets);
iVar1 = get_charset_number(param_2,param_3,param_4);
if (iVar1 == 0) {
lVar2 = 0;
}
else {
lVar2 = get_internal_charset(param_1,iVar1,param_4);
}
if ((param_4 & 0x10) != 0 && lVar2 == 0) {
puVar3 = (int8 *)get_charsets_dir(local_248);
*puVar3 = 0x6d782e7865646e49;
*(int2 *)(puVar3 + 1) = 0x6c;
my_error(0x16,4,param_2,local_248);
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_30) {
return lVar2;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
59,529
|
ma_ft_parserecord
|
eloqsql/storage/maria/ma_ft_update.c
|
FT_WORD * _ma_ft_parserecord(MARIA_HA *info, uint keynr, const uchar *record,
MEM_ROOT *mem_root)
{
TREE ptree;
MYSQL_FTPARSER_PARAM *param;
DBUG_ENTER("_ma_ft_parserecord");
if (! (param= maria_ftparser_call_initializer(info, keynr, 0)))
DBUG_RETURN(NULL);
bzero((char*) &ptree, sizeof(ptree));
param->flags= 0;
if (_ma_ft_parse(&ptree, info, keynr, record, param, mem_root))
DBUG_RETURN(NULL);
DBUG_RETURN(maria_ft_linearize(&ptree, mem_root));
}
|
O3
|
c
|
ma_ft_parserecord:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2a8, %rsp # imm = 0x2A8
movq %rcx, -0x30(%rbp)
movq %rdx, %r15
movl %esi, %r12d
movq %rdi, %r13
xorl %r14d, %r14d
xorl %edx, %edx
callq 0x467b1
testq %rax, %rax
je 0x6a649
movq %rax, %rbx
leaq -0x2c8(%rbp), %rdi
xorl %r14d, %r14d
movl $0x298, %edx # imm = 0x298
xorl %esi, %esi
callq 0x292c0
movl $0x0, 0x34(%rbx)
leaq -0x2c8(%rbp), %rdi
movq %r13, %rsi
movl %r12d, %edx
movq %r15, %rcx
movq %rbx, %r8
movq -0x30(%rbp), %rbx
movq %rbx, %r9
callq 0x6a4eb
testl %eax, %eax
jne 0x6a649
leaq -0x2c8(%rbp), %rdi
movq %rbx, %rsi
callq 0x46024
movq %rax, %r14
movq %r14, %rax
addq $0x2a8, %rsp # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ma_ft_parserecord:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 2A8h
mov [rbp+var_30], rcx
mov r15, rdx
mov r12d, esi
mov r13, rdi
xor r14d, r14d
xor edx, edx
call maria_ftparser_call_initializer
test rax, rax
jz short loc_6A649
mov rbx, rax
lea rdi, [rbp+var_2C8]
xor r14d, r14d
mov edx, 298h
xor esi, esi
call _memset
mov dword ptr [rbx+34h], 0
lea rdi, [rbp+var_2C8]
mov rsi, r13
mov edx, r12d
mov rcx, r15
mov r8, rbx
mov rbx, [rbp+var_30]
mov r9, rbx
call _ma_ft_parse
test eax, eax
jnz short loc_6A649
lea rdi, [rbp+var_2C8]
mov rsi, rbx
call maria_ft_linearize
mov r14, rax
loc_6A649:
mov rax, r14
add rsp, 2A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
_QWORD * ma_ft_parserecord(_QWORD *a1, unsigned int a2, long long a3, long long a4)
{
long long v5; // r14
long long v6; // rax
long long v7; // rbx
long long v8; // r8
long long v9; // rbx
_QWORD v11[83]; // [rsp+8h] [rbp-2C8h] BYREF
long long v12; // [rsp+2A0h] [rbp-30h]
v12 = a4;
v5 = 0LL;
v6 = maria_ftparser_call_initializer(a1, a2, 0);
if ( v6 )
{
v7 = v6;
v5 = 0LL;
memset(v11, 0LL, sizeof(v11));
*(_DWORD *)(v7 + 52) = 0;
v8 = v7;
v9 = v12;
if ( !(unsigned int)ma_ft_parse(v11, (long long)a1, a2, a3, v8, v12) )
return maria_ft_linearize((long long)v11, v9);
}
return (_QWORD *)v5;
}
|
_ma_ft_parserecord:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x2a8
MOV qword ptr [RBP + -0x30],RCX
MOV R15,RDX
MOV R12D,ESI
MOV R13,RDI
XOR R14D,R14D
XOR EDX,EDX
CALL 0x001467b1
TEST RAX,RAX
JZ 0x0016a649
MOV RBX,RAX
LEA RDI,[RBP + -0x2c8]
XOR R14D,R14D
MOV EDX,0x298
XOR ESI,ESI
CALL 0x001292c0
MOV dword ptr [RBX + 0x34],0x0
LEA RDI,[RBP + -0x2c8]
MOV RSI,R13
MOV EDX,R12D
MOV RCX,R15
MOV R8,RBX
MOV RBX,qword ptr [RBP + -0x30]
MOV R9,RBX
CALL 0x0016a4eb
TEST EAX,EAX
JNZ 0x0016a649
LEA RDI,[RBP + -0x2c8]
MOV RSI,RBX
CALL 0x00146024
MOV R14,RAX
LAB_0016a649:
MOV RAX,R14
ADD RSP,0x2a8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
_ma_ft_parserecord(int8 param_1,ulong param_2,int8 param_3,int8 param_4)
{
int8 uVar1;
int iVar2;
long lVar3;
int8 uVar4;
int1 local_2d0 [664];
int8 local_38;
uVar4 = 0;
local_38 = param_4;
lVar3 = maria_ftparser_call_initializer(param_1,param_2,0);
if (lVar3 != 0) {
uVar4 = 0;
memset(local_2d0,0,0x298);
uVar1 = local_38;
*(int4 *)(lVar3 + 0x34) = 0;
iVar2 = _ma_ft_parse(local_2d0,param_1,param_2 & 0xffffffff,param_3,lVar3,local_38);
if (iVar2 == 0) {
uVar4 = maria_ft_linearize(local_2d0,uVar1);
}
}
return uVar4;
}
|
|
59,530
|
mysql_reset_connection
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
int STDCALL mysql_reset_connection(MYSQL *mysql)
{
int rc;
/* check if connection handler is active */
if (IS_CONNHDLR_ACTIVE(mysql))
{
if (mysql->extension->conn_hdlr->plugin && mysql->extension->conn_hdlr->plugin->reset)
return(mysql->extension->conn_hdlr->plugin->reset(mysql));
}
/* skip result sets */
if (mysql->status == MYSQL_STATUS_USE_RESULT ||
mysql->status == MYSQL_STATUS_GET_RESULT ||
mysql->status & SERVER_MORE_RESULTS_EXIST)
{
mthd_my_skip_result(mysql);
mysql->status= MYSQL_STATUS_READY;
}
rc= ma_simple_command(mysql, COM_RESET_CONNECTION, 0, 0, 0, 0);
if (rc && mysql->options.reconnect)
{
/* There is no big sense in resetting but we need reconnect */
rc= ma_simple_command(mysql, COM_RESET_CONNECTION,0,0,0,0);
}
if (rc)
return 1;
/* reset the connection in all active statements */
ma_invalidate_stmts(mysql, "mysql_reset_connection()");
free_old_query(mysql);
mysql->status= MYSQL_STATUS_READY;
mysql->affected_rows= ~(my_ulonglong)0;
mysql->insert_id= 0;
return 0;
}
|
O0
|
c
|
mysql_reset_connection:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x4f0(%rax)
je 0xab112
movq -0x10(%rbp), %rax
movq 0x4f0(%rax), %rax
cmpq $0x0, (%rax)
je 0xab112
movq -0x10(%rbp), %rax
movq 0x4f0(%rax), %rax
movq (%rax), %rax
cmpq $0x0, (%rax)
je 0xab110
movq -0x10(%rbp), %rax
movq 0x4f0(%rax), %rax
movq (%rax), %rax
movq (%rax), %rax
cmpq $0x0, 0x80(%rax)
je 0xab110
movq -0x10(%rbp), %rax
movq 0x4f0(%rax), %rax
movq (%rax), %rax
movq (%rax), %rax
movq 0x80(%rax), %rax
movq -0x10(%rbp), %rdi
callq *%rax
movl %eax, -0x4(%rbp)
jmp 0xab204
jmp 0xab112
movq -0x10(%rbp), %rax
cmpl $0x2, 0x488(%rax)
je 0xab13e
movq -0x10(%rbp), %rax
cmpl $0x1, 0x488(%rax)
je 0xab13e
movq -0x10(%rbp), %rax
movl 0x488(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0xab155
movq -0x10(%rbp), %rdi
callq 0x9f6e0
movq -0x10(%rbp), %rax
movl $0x0, 0x488(%rax)
movq -0x10(%rbp), %rdi
movl $0x1f, %esi
xorl %eax, %eax
movl %eax, %r9d
xorl %r8d, %r8d
movq %r9, %rdx
movq %r9, %rcx
callq 0x9f460
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0xab1a9
movq -0x10(%rbp), %rax
movsbl 0x43b(%rax), %eax
cmpl $0x0, %eax
je 0xab1a9
movq -0x10(%rbp), %rdi
movl $0x1f, %esi
xorl %eax, %eax
movl %eax, %r9d
xorl %r8d, %r8d
movq %r9, %rdx
movq %r9, %rcx
callq 0x9f460
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0xab1b8
movl $0x1, -0x4(%rbp)
jmp 0xab204
movq -0x10(%rbp), %rdi
leaq 0x9ba9b(%rip), %rsi # 0x146c5e
callq 0xa6210
movq -0x10(%rbp), %rdi
callq 0xa67b0
movq -0x10(%rbp), %rax
movl $0x0, 0x488(%rax)
movq -0x10(%rbp), %rax
movq $-0x1, 0x338(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x340(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
|
mysql_reset_connection:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
cmp qword ptr [rax+4F0h], 0
jz short loc_AB112
mov rax, [rbp+var_10]
mov rax, [rax+4F0h]
cmp qword ptr [rax], 0
jz short loc_AB112
mov rax, [rbp+var_10]
mov rax, [rax+4F0h]
mov rax, [rax]
cmp qword ptr [rax], 0
jz short loc_AB110
mov rax, [rbp+var_10]
mov rax, [rax+4F0h]
mov rax, [rax]
mov rax, [rax]
cmp qword ptr [rax+80h], 0
jz short loc_AB110
mov rax, [rbp+var_10]
mov rax, [rax+4F0h]
mov rax, [rax]
mov rax, [rax]
mov rax, [rax+80h]
mov rdi, [rbp+var_10]
call rax
mov [rbp+var_4], eax
jmp loc_AB204
loc_AB110:
jmp short $+2
loc_AB112:
mov rax, [rbp+var_10]
cmp dword ptr [rax+488h], 2
jz short loc_AB13E
mov rax, [rbp+var_10]
cmp dword ptr [rax+488h], 1
jz short loc_AB13E
mov rax, [rbp+var_10]
mov eax, [rax+488h]
and eax, 8
cmp eax, 0
jz short loc_AB155
loc_AB13E:
mov rdi, [rbp+var_10]
call mthd_my_skip_result
mov rax, [rbp+var_10]
mov dword ptr [rax+488h], 0
loc_AB155:
mov rdi, [rbp+var_10]
mov esi, 1Fh
xor eax, eax
mov r9d, eax
xor r8d, r8d
mov rdx, r9
mov rcx, r9
call ma_simple_command
mov [rbp+var_14], eax
cmp [rbp+var_14], 0
jz short loc_AB1A9
mov rax, [rbp+var_10]
movsx eax, byte ptr [rax+43Bh]
cmp eax, 0
jz short loc_AB1A9
mov rdi, [rbp+var_10]
mov esi, 1Fh
xor eax, eax
mov r9d, eax
xor r8d, r8d
mov rdx, r9
mov rcx, r9
call ma_simple_command
mov [rbp+var_14], eax
loc_AB1A9:
cmp [rbp+var_14], 0
jz short loc_AB1B8
mov [rbp+var_4], 1
jmp short loc_AB204
loc_AB1B8:
mov rdi, [rbp+var_10]
lea rsi, aMysqlResetConn; "mysql_reset_connection()"
call ma_invalidate_stmts
mov rdi, [rbp+var_10]
call free_old_query
mov rax, [rbp+var_10]
mov dword ptr [rax+488h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+338h], 0FFFFFFFFFFFFFFFFh
mov rax, [rbp+var_10]
mov qword ptr [rax+340h], 0
mov [rbp+var_4], 0
loc_AB204:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
|
long long mysql_reset_connection(long long a1, long long a2, long long a3, long long a4, int a5, int a6)
{
int v7; // [rsp+Ch] [rbp-14h]
if ( *(_QWORD *)(a1 + 1264)
&& **(_QWORD **)(a1 + 1264)
&& ***(_QWORD ***)(a1 + 1264)
&& *(_QWORD *)(***(_QWORD ***)(a1 + 1264) + 128LL) )
{
return (unsigned int)(*(long long ( **)(long long))(***(_QWORD ***)(a1 + 1264) + 128LL))(a1);
}
else
{
if ( *(_DWORD *)(a1 + 1160) == 2 || *(_DWORD *)(a1 + 1160) == 1 || (*(_DWORD *)(a1 + 1160) & 8) != 0 )
{
mthd_my_skip_result(a1, a2, a3, a4, a5, a6);
*(_DWORD *)(a1 + 1160) = 0;
}
v7 = ma_simple_command(a1, 0x1Fu, 0LL, 0LL, 0, 0LL);
if ( v7 && *(_BYTE *)(a1 + 1083) )
v7 = ma_simple_command(a1, 0x1Fu, 0LL, 0LL, 0, 0LL);
if ( v7 )
{
return 1;
}
else
{
ma_invalidate_stmts(a1, (long long)"mysql_reset_connection()");
free_old_query(a1);
*(_DWORD *)(a1 + 1160) = 0;
*(_QWORD *)(a1 + 824) = -1LL;
*(_QWORD *)(a1 + 832) = 0LL;
return 0;
}
}
}
|
mysql_reset_connection:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x4f0],0x0
JZ 0x001ab112
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x4f0]
CMP qword ptr [RAX],0x0
JZ 0x001ab112
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x4f0]
MOV RAX,qword ptr [RAX]
CMP qword ptr [RAX],0x0
JZ 0x001ab110
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x4f0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX]
CMP qword ptr [RAX + 0x80],0x0
JZ 0x001ab110
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x4f0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x80]
MOV RDI,qword ptr [RBP + -0x10]
CALL RAX
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001ab204
LAB_001ab110:
JMP 0x001ab112
LAB_001ab112:
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x488],0x2
JZ 0x001ab13e
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x488],0x1
JZ 0x001ab13e
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x488]
AND EAX,0x8
CMP EAX,0x0
JZ 0x001ab155
LAB_001ab13e:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0019f6e0
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x488],0x0
LAB_001ab155:
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x1f
XOR EAX,EAX
MOV R9D,EAX
XOR R8D,R8D
MOV RDX,R9
MOV RCX,R9
CALL 0x0019f460
MOV dword ptr [RBP + -0x14],EAX
CMP dword ptr [RBP + -0x14],0x0
JZ 0x001ab1a9
MOV RAX,qword ptr [RBP + -0x10]
MOVSX EAX,byte ptr [RAX + 0x43b]
CMP EAX,0x0
JZ 0x001ab1a9
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x1f
XOR EAX,EAX
MOV R9D,EAX
XOR R8D,R8D
MOV RDX,R9
MOV RCX,R9
CALL 0x0019f460
MOV dword ptr [RBP + -0x14],EAX
LAB_001ab1a9:
CMP dword ptr [RBP + -0x14],0x0
JZ 0x001ab1b8
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001ab204
LAB_001ab1b8:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x246c5e]
CALL 0x001a6210
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001a67b0
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x488],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x338],-0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x340],0x0
MOV dword ptr [RBP + -0x4],0x0
LAB_001ab204:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 mysql_reset_connection(long param_1)
{
int local_1c;
int4 local_c;
if ((((*(long *)(param_1 + 0x4f0) == 0) || (**(long **)(param_1 + 0x4f0) == 0)) ||
(*(long *)**(int8 **)(param_1 + 0x4f0) == 0)) ||
(*(long *)(*(long *)**(int8 **)(param_1 + 0x4f0) + 0x80) == 0)) {
if (((*(int *)(param_1 + 0x488) == 2) || (*(int *)(param_1 + 0x488) == 1)) ||
((*(uint *)(param_1 + 0x488) & 8) != 0)) {
mthd_my_skip_result(param_1);
*(int4 *)(param_1 + 0x488) = 0;
}
local_1c = ma_simple_command(param_1,0x1f,0,0,0);
if ((local_1c != 0) && (*(char *)(param_1 + 0x43b) != '\0')) {
local_1c = ma_simple_command(param_1,0x1f,0,0,0);
}
if (local_1c == 0) {
ma_invalidate_stmts(param_1,"mysql_reset_connection()");
free_old_query(param_1);
*(int4 *)(param_1 + 0x488) = 0;
*(int8 *)(param_1 + 0x338) = 0xffffffffffffffff;
*(int8 *)(param_1 + 0x340) = 0;
local_c = 0;
}
else {
local_c = 1;
}
}
else {
local_c = (**(code **)(*(long *)**(int8 **)(param_1 + 0x4f0) + 0x80))(param_1);
}
return local_c;
}
|
|
59,531
|
mysql_reset_connection
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
int STDCALL mysql_reset_connection(MYSQL *mysql)
{
int rc;
/* check if connection handler is active */
if (IS_CONNHDLR_ACTIVE(mysql))
{
if (mysql->extension->conn_hdlr->plugin && mysql->extension->conn_hdlr->plugin->reset)
return(mysql->extension->conn_hdlr->plugin->reset(mysql));
}
/* skip result sets */
if (mysql->status == MYSQL_STATUS_USE_RESULT ||
mysql->status == MYSQL_STATUS_GET_RESULT ||
mysql->status & SERVER_MORE_RESULTS_EXIST)
{
mthd_my_skip_result(mysql);
mysql->status= MYSQL_STATUS_READY;
}
rc= ma_simple_command(mysql, COM_RESET_CONNECTION, 0, 0, 0, 0);
if (rc && mysql->options.reconnect)
{
/* There is no big sense in resetting but we need reconnect */
rc= ma_simple_command(mysql, COM_RESET_CONNECTION,0,0,0,0);
}
if (rc)
return 1;
/* reset the connection in all active statements */
ma_invalidate_stmts(mysql, "mysql_reset_connection()");
free_old_query(mysql);
mysql->status= MYSQL_STATUS_READY;
mysql->affected_rows= ~(my_ulonglong)0;
mysql->insert_id= 0;
return 0;
}
|
O3
|
c
|
mysql_reset_connection:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x4f0(%rdi), %rax
testq %rax, %rax
je 0x8da51
movq (%rax), %rax
testq %rax, %rax
je 0x8da51
movq (%rax), %rax
testq %rax, %rax
je 0x8da51
movq 0x80(%rax), %rax
testq %rax, %rax
je 0x8da51
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmpq *%rax
movl 0x488(%rbx), %eax
leal -0x3(%rax), %ecx
cmpl $-0x2, %ecx
setb %cl
testb $0x8, %al
sete %al
testb %al, %cl
jne 0x8da7b
movq %rbx, %rdi
callq 0x86ed2
movl $0x0, 0x488(%rbx)
movq 0x4d0(%rbx), %rax
movq %rbx, %rdi
movl $0x1f, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq *0x10(%rax)
testl %eax, %eax
je 0x8daca
movl $0x1, %r14d
cmpb $0x0, 0x43b(%rbx)
je 0x8db04
movq 0x4d0(%rbx), %rax
movq %rbx, %rdi
movl $0x1f, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq *0x10(%rax)
testl %eax, %eax
jne 0x8db04
leaq 0x6a2d1(%rip), %rsi # 0xf7da2
movq %rbx, %rdi
callq 0x8adea
movq %rbx, %rdi
callq 0x8b1a6
movl $0x0, 0x488(%rbx)
movq $-0x1, 0x338(%rbx)
movq $0x0, 0x340(%rbx)
xorl %r14d, %r14d
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
|
mysql_reset_connection:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
mov rax, [rdi+4F0h]
test rax, rax
jz short loc_8DA51
mov rax, [rax]
test rax, rax
jz short loc_8DA51
mov rax, [rax]
test rax, rax
jz short loc_8DA51
mov rax, [rax+80h]
test rax, rax
jz short loc_8DA51
mov rdi, rbx
pop rbx
pop r14
pop rbp
jmp rax
loc_8DA51:
mov eax, [rbx+488h]
lea ecx, [rax-3]
cmp ecx, 0FFFFFFFEh
setb cl
test al, 8
setz al
test cl, al
jnz short loc_8DA7B
mov rdi, rbx
call mthd_my_skip_result
mov dword ptr [rbx+488h], 0
loc_8DA7B:
mov rax, [rbx+4D0h]
mov rdi, rbx
mov esi, 1Fh
xor edx, edx
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call qword ptr [rax+10h]
test eax, eax
jz short loc_8DACA
mov r14d, 1
cmp byte ptr [rbx+43Bh], 0
jz short loc_8DB04
mov rax, [rbx+4D0h]
mov rdi, rbx
mov esi, 1Fh
xor edx, edx
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call qword ptr [rax+10h]
test eax, eax
jnz short loc_8DB04
loc_8DACA:
lea rsi, aMysqlResetConn; "mysql_reset_connection()"
mov rdi, rbx
call ma_invalidate_stmts
mov rdi, rbx
call free_old_query
mov dword ptr [rbx+488h], 0
mov qword ptr [rbx+338h], 0FFFFFFFFFFFFFFFFh
mov qword ptr [rbx+340h], 0
xor r14d, r14d
loc_8DB04:
mov eax, r14d
pop rbx
pop r14
pop rbp
retn
|
long long mysql_reset_connection(long long a1, long long a2, long long a3, long long a4, unsigned long long a5, int a6)
{
long long **v6; // rax
long long *v7; // rax
long long v8; // rax
long long ( *v9)(long long); // rax
int v11; // eax
long long v12; // rcx
unsigned int v13; // r14d
v6 = *(long long ***)(a1 + 1264);
if ( v6 )
{
v7 = *v6;
if ( v7 )
{
v8 = *v7;
if ( v8 )
{
v9 = *(long long ( **)(long long))(v8 + 128);
if ( v9 )
return v9(a1);
}
}
}
v11 = *(_DWORD *)(a1 + 1160);
v12 = (unsigned int)(v11 - 3);
LOBYTE(v12) = (unsigned int)v12 < 0xFFFFFFFE;
if ( (((v11 & 8) == 0) & (unsigned __int8)v12) == 0 )
{
mthd_my_skip_result(a1, a2, a3, v12, a5, a6);
*(_DWORD *)(a1 + 1160) = 0;
}
if ( !(*(unsigned int ( **)(long long, long long, _QWORD, _QWORD, _QWORD, _QWORD))(*(_QWORD *)(a1 + 1232) + 16LL))(
a1,
31LL,
0LL,
0LL,
0LL,
0LL)
|| (v13 = 1, *(_BYTE *)(a1 + 1083))
&& !(*(unsigned int ( **)(long long, long long, _QWORD, _QWORD, _QWORD, _QWORD))(*(_QWORD *)(a1 + 1232) + 16LL))(
a1,
31LL,
0LL,
0LL,
0LL,
0LL) )
{
ma_invalidate_stmts(a1, "mysql_reset_connection()");
free_old_query(a1);
*(_DWORD *)(a1 + 1160) = 0;
*(_QWORD *)(a1 + 824) = -1LL;
*(_QWORD *)(a1 + 832) = 0LL;
return 0;
}
return v13;
}
|
mysql_reset_connection:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x4f0]
TEST RAX,RAX
JZ 0x0018da51
MOV RAX,qword ptr [RAX]
TEST RAX,RAX
JZ 0x0018da51
MOV RAX,qword ptr [RAX]
TEST RAX,RAX
JZ 0x0018da51
MOV RAX,qword ptr [RAX + 0x80]
TEST RAX,RAX
JZ 0x0018da51
MOV RDI,RBX
POP RBX
POP R14
POP RBP
JMP RAX
LAB_0018da51:
MOV EAX,dword ptr [RBX + 0x488]
LEA ECX,[RAX + -0x3]
CMP ECX,-0x2
SETC CL
TEST AL,0x8
SETZ AL
TEST CL,AL
JNZ 0x0018da7b
MOV RDI,RBX
CALL 0x00186ed2
MOV dword ptr [RBX + 0x488],0x0
LAB_0018da7b:
MOV RAX,qword ptr [RBX + 0x4d0]
MOV RDI,RBX
MOV ESI,0x1f
XOR EDX,EDX
XOR ECX,ECX
XOR R8D,R8D
XOR R9D,R9D
CALL qword ptr [RAX + 0x10]
TEST EAX,EAX
JZ 0x0018daca
MOV R14D,0x1
CMP byte ptr [RBX + 0x43b],0x0
JZ 0x0018db04
MOV RAX,qword ptr [RBX + 0x4d0]
MOV RDI,RBX
MOV ESI,0x1f
XOR EDX,EDX
XOR ECX,ECX
XOR R8D,R8D
XOR R9D,R9D
CALL qword ptr [RAX + 0x10]
TEST EAX,EAX
JNZ 0x0018db04
LAB_0018daca:
LEA RSI,[0x1f7da2]
MOV RDI,RBX
CALL 0x0018adea
MOV RDI,RBX
CALL 0x0018b1a6
MOV dword ptr [RBX + 0x488],0x0
MOV qword ptr [RBX + 0x338],-0x1
MOV qword ptr [RBX + 0x340],0x0
XOR R14D,R14D
LAB_0018db04:
MOV EAX,R14D
POP RBX
POP R14
POP RBP
RET
|
int8 mysql_reset_connection(long param_1)
{
long *plVar1;
long lVar2;
code *UNRECOVERED_JUMPTABLE;
int iVar3;
int8 uVar4;
if ((((*(long **)(param_1 + 0x4f0) != (long *)0x0) &&
(plVar1 = (long *)**(long **)(param_1 + 0x4f0), plVar1 != (long *)0x0)) &&
(lVar2 = *plVar1, lVar2 != 0)) &&
(UNRECOVERED_JUMPTABLE = *(code **)(lVar2 + 0x80), UNRECOVERED_JUMPTABLE != (code *)0x0)) {
/* WARNING: Could not recover jumptable at 0x0018da4f. Too many branches */
/* WARNING: Treating indirect jump as call */
uVar4 = (*UNRECOVERED_JUMPTABLE)(param_1);
return uVar4;
}
if (0xfffffffd < *(uint *)(param_1 + 0x488) - 3 || (*(uint *)(param_1 + 0x488) & 8) != 0) {
mthd_my_skip_result(param_1);
*(int4 *)(param_1 + 0x488) = 0;
}
iVar3 = (**(code **)(*(long *)(param_1 + 0x4d0) + 0x10))(param_1,0x1f,0,0,0,0);
if (iVar3 != 0) {
if (*(char *)(param_1 + 0x43b) == '\0') {
return 1;
}
iVar3 = (**(code **)(*(long *)(param_1 + 0x4d0) + 0x10))(param_1,0x1f,0,0,0,0);
if (iVar3 != 0) {
return 1;
}
}
ma_invalidate_stmts(param_1,"mysql_reset_connection()");
free_old_query(param_1);
*(int4 *)(param_1 + 0x488) = 0;
*(int8 *)(param_1 + 0x338) = 0xffffffffffffffff;
*(int8 *)(param_1 + 0x340) = 0;
return 0;
}
|
|
59,532
|
thr_multi_unlock
|
eloqsql/mysys/thr_lock.c
|
void thr_multi_unlock(THR_LOCK_DATA **data,uint count, uint unlock_flags)
{
THR_LOCK_DATA **pos,**end;
DBUG_ENTER("thr_multi_unlock");
DBUG_PRINT("lock",("data: %p count: %d flags: %u", data, count,
unlock_flags));
for (pos=data,end=data+count; pos < end ; pos++)
{
#ifdef MAIN
printf("Thread: %s Rel lock: %p type: %d\n",
my_thread_name(), pos[0]->lock, pos[0]->type);
fflush(stdout);
#endif
if ((*pos)->type != TL_UNLOCK)
thr_unlock(*pos, unlock_flags);
else
{
DBUG_PRINT("lock",("Free lock: data: %p thread:%lu lock: %p",
*pos, (ulong) (*pos)->owner->thread_id,
(*pos)->lock));
}
}
DBUG_VOID_RETURN;
}
|
O0
|
c
|
thr_multi_unlock:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
jmp 0xf8a94
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0xf8aec
movq -0x18(%rbp), %rax
movq (%rax), %rax
cmpl $0x0, 0x40(%rax)
je 0xf8ad6
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movl -0x10(%rbp), %esi
callq 0xf7b50
jmp 0xf8adc
jmp 0xf8ad8
jmp 0xf8ada
jmp 0xf8adc
jmp 0xf8ade
movq -0x18(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
jmp 0xf8aae
jmp 0xf8aee
jmp 0xf8af0
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
thr_multi_unlock:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
jmp short $+2
loc_F8A94:
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
mov ecx, [rbp+var_C]
shl rcx, 3
add rax, rcx
mov [rbp+var_20], rax
loc_F8AAE:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnb short loc_F8AEC
mov rax, [rbp+var_18]
mov rax, [rax]
cmp dword ptr [rax+40h], 0
jz short loc_F8AD6
mov rax, [rbp+var_18]
mov rdi, [rax]
mov esi, [rbp+var_10]
call thr_unlock
jmp short loc_F8ADC
loc_F8AD6:
jmp short $+2
loc_F8AD8:
jmp short $+2
loc_F8ADA:
jmp short $+2
loc_F8ADC:
jmp short $+2
loc_F8ADE:
mov rax, [rbp+var_18]
add rax, 8
mov [rbp+var_18], rax
jmp short loc_F8AAE
loc_F8AEC:
jmp short $+2
loc_F8AEE:
jmp short $+2
loc_F8AF0:
add rsp, 20h
pop rbp
retn
|
long long * thr_multi_unlock(long long *a1, int a2, char a3)
{
long long *result; // rax
long long *i; // [rsp+8h] [rbp-18h]
for ( i = a1; ; ++i )
{
result = i;
if ( i >= &a1[a2] )
break;
if ( *(_DWORD *)(*i + 64) )
thr_unlock(*i, a3);
}
return result;
}
|
thr_multi_unlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
JMP 0x001f8a94
LAB_001f8a94:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0xc]
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
LAB_001f8aae:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x001f8aec
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0x40],0x0
JZ 0x001f8ad6
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX]
MOV ESI,dword ptr [RBP + -0x10]
CALL 0x001f7b50
JMP 0x001f8adc
LAB_001f8ad6:
JMP 0x001f8ad8
LAB_001f8ad8:
JMP 0x001f8ada
LAB_001f8ada:
JMP 0x001f8adc
LAB_001f8adc:
JMP 0x001f8ade
LAB_001f8ade:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x8
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001f8aae
LAB_001f8aec:
JMP 0x001f8aee
LAB_001f8aee:
JMP 0x001f8af0
LAB_001f8af0:
ADD RSP,0x20
POP RBP
RET
|
void thr_multi_unlock(long *param_1,uint param_2,int4 param_3)
{
long *local_20;
for (local_20 = param_1; local_20 < param_1 + param_2; local_20 = local_20 + 1) {
if (*(int *)(*local_20 + 0x40) != 0) {
thr_unlock(*local_20,param_3);
}
}
return;
}
|
|
59,533
|
mi_find_half_pos
|
eloqsql/storage/myisam/mi_write.c
|
uchar *_mi_find_half_pos(uint nod_flag, MI_KEYDEF *keyinfo, uchar *page,
uchar *key, uint *return_key_length,
uchar **after_key)
{
uint keys,length,key_ref_length;
uchar *end,*lastpos;
DBUG_ENTER("_mi_find_half_pos");
key_ref_length=2+nod_flag;
length=mi_getint(page)-key_ref_length;
page+=key_ref_length;
if (!(keyinfo->flag &
(HA_PACK_KEY | HA_SPACE_PACK_USED | HA_VAR_LENGTH_KEY |
HA_BINARY_PACK_KEY)))
{
key_ref_length=keyinfo->keylength+nod_flag;
keys=length/(key_ref_length*2);
*return_key_length=keyinfo->keylength;
end=page+keys*key_ref_length;
*after_key=end+key_ref_length;
memcpy(key,end,key_ref_length);
DBUG_RETURN(end);
}
end=page+length/2-key_ref_length; /* This is aprox. half */
*key='\0';
do
{
lastpos=page;
if (!(length=(*keyinfo->get_key)(keyinfo,nod_flag,&page,key)))
DBUG_RETURN(0);
} while (page < end);
*return_key_length=length;
*after_key=page;
DBUG_PRINT("exit",("returns: %p page: %p half: %p",
lastpos, page, end));
DBUG_RETURN(lastpos);
}
|
O0
|
c
|
mi_find_half_pos:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl %edi, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movl -0xc(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x44(%rbp)
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x20(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzwl %ax, %eax
andl $0x7fff, %eax # imm = 0x7FFF
subl -0x44(%rbp), %eax
movl %eax, -0x40(%rbp)
movl -0x44(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movzwl 0xa(%rax), %eax
andl $0x2e, %eax
cmpl $0x0, %eax
jne 0xccfcf
movq -0x18(%rbp), %rax
movzwl 0x12(%rax), %eax
addl -0xc(%rbp), %eax
movl %eax, -0x44(%rbp)
movl -0x40(%rbp), %eax
movl -0x44(%rbp), %ecx
shll %ecx
xorl %edx, %edx
divl %ecx
movl %eax, -0x3c(%rbp)
movq -0x18(%rbp), %rax
movzwl 0x12(%rax), %ecx
movq -0x30(%rbp), %rax
movl %ecx, (%rax)
movq -0x20(%rbp), %rax
movl -0x3c(%rbp), %ecx
imull -0x44(%rbp), %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rcx
movl -0x44(%rbp), %eax
addq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rdi
movq -0x50(%rbp), %rsi
movl -0x44(%rbp), %eax
movl %eax, %edx
callq 0x2a0b0
movq -0x50(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xcd056
movq -0x20(%rbp), %rax
movl -0x40(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
addq %rcx, %rax
movl -0x44(%rbp), %ecx
movl %ecx, %edx
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x28(%rbp), %rax
movb $0x0, (%rax)
movq -0x20(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x18(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x28(%rbp), %rcx
leaq -0x20(%rbp), %rdx
callq *%rax
movl %eax, -0x40(%rbp)
cmpl $0x0, %eax
jne 0xcd02a
jmp 0xcd020
movq $0x0, -0x8(%rbp)
jmp 0xcd056
jmp 0xcd02c
movq -0x20(%rbp), %rax
cmpq -0x50(%rbp), %rax
jb 0xccff5
movl -0x40(%rbp), %ecx
movq -0x30(%rbp), %rax
movl %ecx, (%rax)
movq -0x20(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
jmp 0xcd04c
jmp 0xcd04e
movq -0x58(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
|
_mi_find_half_pos:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_C], edi
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 eax, [rbp+var_C]
add eax, 2
mov [rbp+var_44], eax
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_20]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
movzx eax, ax
and eax, 7FFFh
sub eax, [rbp+var_44]
mov [rbp+var_40], eax
mov ecx, [rbp+var_44]
mov rax, [rbp+var_20]
mov ecx, ecx
add rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
movzx eax, word ptr [rax+0Ah]
and eax, 2Eh
cmp eax, 0
jnz short loc_CCFCF
mov rax, [rbp+var_18]
movzx eax, word ptr [rax+12h]
add eax, [rbp+var_C]
mov [rbp+var_44], eax
mov eax, [rbp+var_40]
mov ecx, [rbp+var_44]
shl ecx, 1
xor edx, edx
div ecx
mov [rbp+var_3C], eax
mov rax, [rbp+var_18]
movzx ecx, word ptr [rax+12h]
mov rax, [rbp+var_30]
mov [rax], ecx
mov rax, [rbp+var_20]
mov ecx, [rbp+var_3C]
imul ecx, [rbp+var_44]
mov ecx, ecx
add rax, rcx
mov [rbp+var_50], rax
mov rcx, [rbp+var_50]
mov eax, [rbp+var_44]
add rcx, rax
mov rax, [rbp+var_38]
mov [rax], rcx
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_50]
mov eax, [rbp+var_44]
mov edx, eax
call _memcpy
mov rax, [rbp+var_50]
mov [rbp+var_8], rax
jmp loc_CD056
loc_CCFCF:
mov rax, [rbp+var_20]
mov ecx, [rbp+var_40]
shr ecx, 1
mov ecx, ecx
add rax, rcx
mov ecx, [rbp+var_44]
mov edx, ecx
xor ecx, ecx
sub rcx, rdx
add rax, rcx
mov [rbp+var_50], rax
mov rax, [rbp+var_28]
mov byte ptr [rax], 0
loc_CCFF5:
mov rax, [rbp+var_20]
mov [rbp+var_58], rax
mov rax, [rbp+var_18]
mov rax, [rax+48h]
mov rdi, [rbp+var_18]
mov esi, [rbp+var_C]
mov rcx, [rbp+var_28]
lea rdx, [rbp+var_20]
call rax
mov [rbp+var_40], eax
cmp eax, 0
jnz short loc_CD02A
jmp short $+2
loc_CD020:
mov [rbp+var_8], 0
jmp short loc_CD056
loc_CD02A:
jmp short $+2
loc_CD02C:
mov rax, [rbp+var_20]
cmp rax, [rbp+var_50]
jb short loc_CCFF5
mov ecx, [rbp+var_40]
mov rax, [rbp+var_30]
mov [rax], ecx
mov rcx, [rbp+var_20]
mov rax, [rbp+var_38]
mov [rax], rcx
jmp short $+2
loc_CD04C:
jmp short $+2
loc_CD04E:
mov rax, [rbp+var_58]
mov [rbp+var_8], rax
loc_CD056:
mov rax, [rbp+var_8]
add rsp, 60h
pop rbp
retn
|
unsigned __int16 * mi_find_half_pos(
unsigned int a1,
long long a2,
unsigned __int16 *a3,
_BYTE *a4,
_DWORD *a5,
unsigned __int16 **a6)
{
unsigned __int16 *v7; // [rsp+8h] [rbp-58h]
char *v8; // [rsp+10h] [rbp-50h]
unsigned __int16 *v9; // [rsp+10h] [rbp-50h]
unsigned int v10; // [rsp+1Ch] [rbp-44h]
unsigned int v11; // [rsp+20h] [rbp-40h]
int v12; // [rsp+20h] [rbp-40h]
unsigned __int16 *v16; // [rsp+40h] [rbp-20h] BYREF
long long v17; // [rsp+48h] [rbp-18h]
unsigned int v18; // [rsp+54h] [rbp-Ch]
v18 = a1;
v17 = a2;
v16 = a3;
v11 = (_byteswap_ushort(*a3) & 0x7FFF) - (a1 + 2);
v16 = (unsigned __int16 *)((char *)a3 + a1 + 2);
if ( (*(_WORD *)(a2 + 10) & 0x2E) != 0 )
{
v9 = (unsigned __int16 *)((char *)v16 + (v11 >> 1) - a1 - 2);
*a4 = 0;
do
{
v7 = v16;
v12 = (*(long long ( **)(long long, _QWORD, unsigned __int16 **, _BYTE *))(v17 + 72))(v17, v18, &v16, a4);
if ( !v12 )
return 0LL;
}
while ( v16 < v9 );
*a5 = v12;
*a6 = v16;
return v7;
}
else
{
v10 = v18 + *(unsigned __int16 *)(v17 + 18);
*a5 = *(unsigned __int16 *)(v17 + 18);
v8 = (char *)v16 + v10 * (v11 / (2 * v10));
*a6 = (unsigned __int16 *)&v8[v10];
memcpy(a4, v8, v10);
return (unsigned __int16 *)v8;
}
}
|
_mi_find_half_pos:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV dword ptr [RBP + -0xc],EDI
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 EAX,dword ptr [RBP + -0xc]
ADD EAX,0x2
MOV dword ptr [RBP + -0x44],EAX
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x20]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVZX EAX,AX
AND EAX,0x7fff
SUB EAX,dword ptr [RBP + -0x44]
MOV dword ptr [RBP + -0x40],EAX
MOV ECX,dword ptr [RBP + -0x44]
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX + 0xa]
AND EAX,0x2e
CMP EAX,0x0
JNZ 0x001ccfcf
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX + 0x12]
ADD EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x44],EAX
MOV EAX,dword ptr [RBP + -0x40]
MOV ECX,dword ptr [RBP + -0x44]
SHL ECX,0x1
XOR EDX,EDX
DIV ECX
MOV dword ptr [RBP + -0x3c],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX ECX,word ptr [RAX + 0x12]
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x3c]
IMUL ECX,dword ptr [RBP + -0x44]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x50],RAX
MOV RCX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RBP + -0x44]
ADD RCX,RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX],RCX
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RBP + -0x44]
MOV EDX,EAX
CALL 0x0012a0b0
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001cd056
LAB_001ccfcf:
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x40]
SHR ECX,0x1
MOV ECX,ECX
ADD RAX,RCX
MOV ECX,dword ptr [RBP + -0x44]
MOV EDX,ECX
XOR ECX,ECX
SUB RCX,RDX
ADD RAX,RCX
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX],0x0
LAB_001ccff5:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x48]
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,dword ptr [RBP + -0xc]
MOV RCX,qword ptr [RBP + -0x28]
LEA RDX,[RBP + -0x20]
CALL RAX
MOV dword ptr [RBP + -0x40],EAX
CMP EAX,0x0
JNZ 0x001cd02a
JMP 0x001cd020
LAB_001cd020:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001cd056
LAB_001cd02a:
JMP 0x001cd02c
LAB_001cd02c:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x50]
JC 0x001ccff5
MOV ECX,dword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX],ECX
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX],RCX
JMP 0x001cd04c
LAB_001cd04c:
JMP 0x001cd04e
LAB_001cd04e:
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x8],RAX
LAB_001cd056:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x60
POP RBP
RET
|
byte * _mi_find_half_pos(int param_1,long param_2,byte *param_3,int1 *param_4,uint *param_5,
int8 *param_6)
{
byte *pbVar1;
uint uVar2;
uint uVar3;
byte *pbVar4;
byte *local_28;
long local_20;
int local_14;
byte *local_10;
uVar2 = param_1 + 2;
uVar3 = ((uint)param_3[1] | (*param_3 & 0x7f) << 8) - uVar2;
local_28 = param_3 + uVar2;
local_20 = param_2;
local_14 = param_1;
if ((*(ushort *)(param_2 + 10) & 0x2e) == 0) {
uVar2 = (uint)*(ushort *)(param_2 + 0x12) + param_1;
*param_5 = (uint)*(ushort *)(param_2 + 0x12);
pbVar4 = local_28 + (uVar3 / (uVar2 * 2)) * uVar2;
*param_6 = pbVar4 + uVar2;
memcpy(param_4,pbVar4,(ulong)uVar2);
local_10 = pbVar4;
}
else {
pbVar4 = local_28 + ((ulong)(uVar3 >> 1) - (ulong)uVar2);
*param_4 = 0;
do {
pbVar1 = local_28;
uVar2 = (**(code **)(local_20 + 0x48))(local_20,local_14,&local_28,param_4);
if (uVar2 == 0) {
return (byte *)0x0;
}
} while (local_28 < pbVar4);
*param_5 = uVar2;
*param_6 = local_28;
local_10 = pbVar1;
}
return local_10;
}
|
|
59,534
|
minja::Value::dump_string(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, char)
|
monkey531[P]llama/common/minja.hpp
|
static void dump_string(const json & primitive, std::ostringstream & out, char string_quote = '\'') {
if (!primitive.is_string()) throw std::runtime_error("Value is not a string: " + primitive.dump());
auto s = primitive.dump();
if (string_quote == '"' || s.find('\'') != std::string::npos) {
out << s;
return;
}
// Reuse json dump, just changing string quotes
out << string_quote;
for (size_t i = 1, n = s.size() - 1; i < n; ++i) {
if (s[i] == '\\' && s[i + 1] == '"') {
out << '"';
i++;
} else if (s[i] == string_quote) {
out << '\\' << string_quote;
} else {
out << s[i];
}
}
out << string_quote;
}
|
O3
|
cpp
|
minja::Value::dump_string(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, char):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
cmpb $0x3, (%rdi)
jne 0x8abd9
movl %edx, %ebp
movq %rsi, %rbx
movq %rsp, %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x834ee
cmpb $0x22, %bpl
je 0x8aad9
movq %rsp, %rdi
movl $0x27, %esi
xorl %edx, %edx
callq 0x1bd20
cmpq $-0x1, %rax
je 0x8ab12
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x1bbc0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8ab05
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1ba60
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20(%rsp), %rsi
movb %bpl, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x1bbc0
movq 0x8(%rsp), %r15
decq %r15
cmpq $0x2, %r15
jb 0x8abbf
movl $0x1, %r12d
leaq 0x20(%rsp), %r14
movq (%rsp), %rcx
movb (%rcx,%r12), %al
cmpb $0x5c, %al
jne 0x8ab72
cmpb $0x22, 0x1(%rcx,%r12)
jne 0x8ab72
movb $0x22, 0x20(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1bbc0
incq %r12
jmp 0x8abb7
cmpb %bpl, %al
jne 0x8aba3
movb $0x5c, 0x20(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1bbc0
movb %bpl, 0x20(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x1bbc0
jmp 0x8abb7
movb %al, 0x20(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1bbc0
incq %r12
cmpq %r15, %r12
jb 0x8ab44
leaq 0x20(%rsp), %rsi
movb %bpl, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x1bbc0
jmp 0x8aaea
movl $0x10, %edi
callq 0x1b4d0
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x834ee
leaq 0x68486(%rip), %rsi # 0xf3090
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x7c85d
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x1c0a0
xorl %ebp, %ebp
movq 0xa53ba(%rip), %rsi # 0x12ffe8
movq 0xa531b(%rip), %rdx # 0x12ff50
movq %rbx, %rdi
callq 0x1c1c0
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8ac5b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1ba60
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8ac76
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1ba60
testb %bpl, %bpl
jne 0x8aca0
jmp 0x8acca
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8aca0
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1ba60
jmp 0x8aca0
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b760
jmp 0x8acca
jmp 0x8acac
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8acca
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1ba60
movq %r14, %rdi
callq 0x1c250
|
_ZN5minja5Value11dump_stringERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEERNS6_19basic_ostringstreamIcS9_SA_EEc:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 40h
mov r14, rdi
cmp byte ptr [rdi], 3
jnz loc_8ABD9
mov ebp, edx
mov rbx, rsi
mov rdi, rsp
mov rsi, r14
mov edx, 0FFFFFFFFh
mov ecx, 20h ; ' '
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
cmp bpl, 22h ; '"'
jz short loc_8AAD9
mov rdi, rsp
mov esi, 27h ; '''
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm; std::string::find(char,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_8AB12
loc_8AAD9:
mov rsi, [rsp+68h+var_68]
mov rdx, [rsp+68h+var_60]
mov rdi, rbx
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
loc_8AAEA:
lea rax, [rsp+68h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_8AB05
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8AB05:
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_8AB12:
lea rsi, [rsp+68h+var_48]
mov [rsi], bpl
mov edx, 1
mov rdi, rbx
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov r15, [rsp+68h+var_60]
dec r15
cmp r15, 2
jb loc_8ABBF
mov r12d, 1
lea r14, [rsp+68h+var_48]
loc_8AB44:
mov rcx, [rsp+68h+var_68]
mov al, [rcx+r12]
cmp al, 5Ch ; '\'
jnz short loc_8AB72
cmp byte ptr [rcx+r12+1], 22h ; '"'
jnz short loc_8AB72
mov [rsp+68h+var_48], 22h ; '"'
mov edx, 1
mov rdi, rbx
mov rsi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
inc r12
jmp short loc_8ABB7
loc_8AB72:
cmp al, bpl
jnz short loc_8ABA3
mov [rsp+68h+var_48], 5Ch ; '\'
mov edx, 1
mov rdi, rbx
mov rsi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov [rsp+68h+var_48], bpl
mov edx, 1
mov rdi, rax
mov rsi, r14
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_8ABB7
loc_8ABA3:
mov [rsp+68h+var_48], al
mov edx, 1
mov rdi, rbx
mov rsi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
loc_8ABB7:
inc r12
cmp r12, r15
jb short loc_8AB44
loc_8ABBF:
lea rsi, [rsp+68h+var_48]
mov [rsi], bpl
mov edx, 1
mov rdi, rbx
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
jmp loc_8AAEA
loc_8ABD9:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+68h+var_48]
mov rsi, r14
mov edx, 0FFFFFFFFh
mov ecx, 20h ; ' '
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
lea rsi, aValueIsNotAStr; "Value is not a string: "
mov rdi, rsp
lea rdx, [rsp+68h+var_48]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
mov rsi, rsp
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_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+68h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_8AC5B
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8AC5B:
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_8AC76
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8AC76:
test bpl, bpl
jnz short loc_8ACA0
jmp short loc_8ACCA
mov r14, rax
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_8ACA0
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_8ACA0
mov r14, rax
loc_8ACA0:
mov rdi, rbx; void *
call ___cxa_free_exception
jmp short loc_8ACCA
jmp short $+2
loc_8ACAC:
mov r14, rax
lea rax, [rsp+68h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_8ACCA
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8ACCA:
mov rdi, r14
call __Unwind_Resume
|
void minja::Value::dump_string(_BYTE *a1, long long a2, char a3)
{
unsigned long long v4; // r15
unsigned long long v5; // r12
char v6; // al
long long v7; // rax
void *exception; // rbx
long long *v9; // [rsp+0h] [rbp-68h] BYREF
long long v10; // [rsp+8h] [rbp-60h]
long long v11; // [rsp+10h] [rbp-58h] BYREF
_BYTE v12[16]; // [rsp+20h] [rbp-48h] BYREF
if ( *a1 != 3 )
{
exception = __cxa_allocate_exception(0x10uLL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
(long long)v12,
(long long)a1,
-1,
32,
0,
0);
std::operator+<char>((long long)&v9, (long long)"Value is not a string: ", (long long)v12);
std::runtime_error::runtime_error(exception, &v9);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
(long long)&v9,
(long long)a1,
-1,
32,
0,
0);
if ( a3 != 34 && std::string::find(&v9, 39LL, 0LL) == -1 )
{
v12[0] = a3;
std::__ostream_insert<char,std::char_traits<char>>(a2, v12, 1LL);
v4 = v10 - 1;
if ( (unsigned long long)(v10 - 1) >= 2 )
{
v5 = 1LL;
do
{
v6 = *((_BYTE *)v9 + v5);
if ( v6 == 92 && *((_BYTE *)v9 + v5 + 1) == 34 )
{
v12[0] = 34;
std::__ostream_insert<char,std::char_traits<char>>(a2, v12, 1LL);
++v5;
}
else if ( v6 == a3 )
{
v12[0] = 92;
v7 = std::__ostream_insert<char,std::char_traits<char>>(a2, v12, 1LL);
v12[0] = a3;
std::__ostream_insert<char,std::char_traits<char>>(v7, v12, 1LL);
}
else
{
v12[0] = *((_BYTE *)v9 + v5);
std::__ostream_insert<char,std::char_traits<char>>(a2, v12, 1LL);
}
++v5;
}
while ( v5 < v4 );
}
v12[0] = a3;
std::__ostream_insert<char,std::char_traits<char>>(a2, v12, 1LL);
}
else
{
std::__ostream_insert<char,std::char_traits<char>>(a2, v9, v10);
}
if ( v9 != &v11 )
operator delete(v9, v11 + 1);
}
|
dump_string:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV R14,RDI
CMP byte ptr [RDI],0x3
JNZ 0x0018abd9
MOV EBP,EDX
MOV RBX,RSI
MOV RDI,RSP
MOV RSI,R14
MOV EDX,0xffffffff
MOV ECX,0x20
XOR R8D,R8D
XOR R9D,R9D
CALL 0x001834ee
CMP BPL,0x22
JZ 0x0018aad9
MOV RDI,RSP
MOV ESI,0x27
XOR EDX,EDX
CALL 0x0011bd20
CMP RAX,-0x1
JZ 0x0018ab12
LAB_0018aad9:
MOV RSI,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x8]
LAB_0018aae2:
MOV RDI,RBX
CALL 0x0011bbc0
LAB_0018aaea:
LEA RAX,[RSP + 0x10]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0018ab05
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0011ba60
LAB_0018ab05:
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0018ab12:
LEA RSI,[RSP + 0x20]
MOV byte ptr [RSI],BPL
MOV EDX,0x1
MOV RDI,RBX
CALL 0x0011bbc0
MOV R15,qword ptr [RSP + 0x8]
DEC R15
CMP R15,0x2
JC 0x0018abbf
MOV R12D,0x1
LEA R14,[RSP + 0x20]
LAB_0018ab44:
MOV RCX,qword ptr [RSP]
MOV AL,byte ptr [RCX + R12*0x1]
CMP AL,0x5c
JNZ 0x0018ab72
CMP byte ptr [RCX + R12*0x1 + 0x1],0x22
JNZ 0x0018ab72
MOV byte ptr [RSP + 0x20],0x22
LAB_0018ab5d:
MOV EDX,0x1
MOV RDI,RBX
MOV RSI,R14
CALL 0x0011bbc0
INC R12
JMP 0x0018abb7
LAB_0018ab72:
CMP AL,BPL
JNZ 0x0018aba3
MOV byte ptr [RSP + 0x20],0x5c
MOV EDX,0x1
MOV RDI,RBX
MOV RSI,R14
CALL 0x0011bbc0
MOV byte ptr [RSP + 0x20],BPL
MOV EDX,0x1
MOV RDI,RAX
MOV RSI,R14
CALL 0x0011bbc0
JMP 0x0018abb7
LAB_0018aba3:
MOV byte ptr [RSP + 0x20],AL
MOV EDX,0x1
MOV RDI,RBX
MOV RSI,R14
CALL 0x0011bbc0
LAB_0018abb7:
INC R12
CMP R12,R15
JC 0x0018ab44
LAB_0018abbf:
LEA RSI,[RSP + 0x20]
MOV byte ptr [RSI],BPL
LAB_0018abc7:
MOV EDX,0x1
MOV RDI,RBX
CALL 0x0011bbc0
LAB_0018abd4:
JMP 0x0018aaea
LAB_0018abd9:
MOV EDI,0x10
CALL 0x0011b4d0
MOV RBX,RAX
LAB_0018abe6:
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV EDX,0xffffffff
MOV ECX,0x20
XOR R8D,R8D
XOR R9D,R9D
CALL 0x001834ee
LAB_0018ac03:
LEA RSI,[0x1f3090]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x0017c85d
MOV BPL,0x1
LAB_0018ac1a:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0011c0a0
XOR EBP,EBP
MOV RSI,qword ptr [0x0022ffe8]
MOV RDX,qword ptr [0x0022ff50]
MOV RDI,RBX
CALL 0x0011c1c0
|
/* minja::Value::dump_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> const&, std::__cxx11::ostringstream&, char) */
void minja::Value::dump_string(basic_json *param_1,ostringstream *param_2,char param_3)
{
long lVar1;
ostream *poVar2;
runtime_error *this;
ulong uVar3;
long *local_68;
long local_60;
long local_58 [2];
char local_48 [32];
if (*param_1 != (basic_json)0x3) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0018abe6 to 0018ac02 has its CatchHandler @ 0018ac9d */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::dump(local_48,param_1,0xffffffff,0x20,0,0);
/* try { // try from 0018ac03 to 0018ac16 has its CatchHandler @ 0018ac7d */
std::operator+((char *)&local_68,(string *)"Value is not a string: ");
/* try { // try from 0018ac1a to 0018ac3c has its CatchHandler @ 0018ac3d */
std::runtime_error::runtime_error(this,(string *)&local_68);
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_0022ffe8,PTR__runtime_error_0022ff50);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::dump(&local_68,param_1,0xffffffff,0x20,0,0);
if (param_3 != '\"') {
lVar1 = std::__cxx11::string::find((char)&local_68,0x27);
if (lVar1 == -1) {
local_48[0] = param_3;
std::__ostream_insert<char,std::char_traits<char>>((ostream *)param_2,local_48,1);
if (1 < local_60 - 1U) {
uVar3 = 1;
do {
local_48[0] = *(char *)((long)local_68 + uVar3);
if ((local_48[0] == '\\') && (*(char *)((long)local_68 + uVar3 + 1) == '\"')) {
local_48[0] = '\"';
/* try { // try from 0018ab5d to 0018abb6 has its CatchHandler @ 0018acac */
std::__ostream_insert<char,std::char_traits<char>>((ostream *)param_2,local_48,1);
uVar3 = uVar3 + 1;
}
else if (local_48[0] == param_3) {
local_48[0] = '\\';
poVar2 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)param_2,local_48,1);
local_48[0] = param_3;
std::__ostream_insert<char,std::char_traits<char>>(poVar2,local_48,1);
}
else {
std::__ostream_insert<char,std::char_traits<char>>((ostream *)param_2,local_48,1);
}
uVar3 = uVar3 + 1;
} while (uVar3 < local_60 - 1U);
}
local_48[0] = param_3;
/* try { // try from 0018abc7 to 0018abd3 has its CatchHandler @ 0018acaa */
std::__ostream_insert<char,std::char_traits<char>>((ostream *)param_2,local_48,1);
goto LAB_0018aaea;
}
}
/* try { // try from 0018aae2 to 0018ab26 has its CatchHandler @ 0018acaa */
std::__ostream_insert<char,std::char_traits<char>>((ostream *)param_2,(char *)local_68,local_60);
LAB_0018aaea:
if (local_68 != local_58) {
operator_delete(local_68,local_58[0] + 1);
}
return;
}
|
|
59,535
|
common_sampler_type_to_str[abi:cxx11](common_sampler_type)
|
monkey531[P]llama/common/sampling.cpp
|
std::string common_sampler_type_to_str(enum common_sampler_type cnstr) {
switch (cnstr) {
case COMMON_SAMPLER_TYPE_DRY: return "dry";
case COMMON_SAMPLER_TYPE_TOP_K: return "top_k";
case COMMON_SAMPLER_TYPE_TYPICAL_P: return "typ_p";
case COMMON_SAMPLER_TYPE_TOP_P: return "top_p";
case COMMON_SAMPLER_TYPE_MIN_P: return "min_p";
case COMMON_SAMPLER_TYPE_TEMPERATURE: return "temperature";
case COMMON_SAMPLER_TYPE_XTC: return "xtc";
case COMMON_SAMPLER_TYPE_INFILL: return "infill";
case COMMON_SAMPLER_TYPE_PENALTIES: return "penalties";
default : return "";
}
}
|
O2
|
cpp
|
common_sampler_type_to_str[abi:cxx11](common_sampler_type):
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
decl %esi
cmpl $0x9, %esi
ja 0x98c01
leaq 0x206ca(%rip), %rax # 0xb9244
movslq (%rax,%rsi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x20a91(%rip), %rsi # 0xb961b
leaq 0xf(%rsp), %rdx
jmp 0x98c0d
leaq 0x20a93(%rip), %rsi # 0xb962b
leaq 0xc(%rsp), %rdx
jmp 0x98c0d
leaq 0x20a91(%rip), %rsi # 0xb9637
leaq 0xa(%rsp), %rdx
jmp 0x98c0d
leaq 0x20a6b(%rip), %rsi # 0xb961f
leaq 0xe(%rsp), %rdx
jmp 0x98c0d
leaq 0x20a81(%rip), %rsi # 0xb9643
leaq 0x9(%rsp), %rdx
jmp 0x98c0d
leaq 0x13069(%rip), %rsi # 0xabc39
leaq 0x8(%rsp), %rdx
jmp 0x98c0d
leaq 0x20a53(%rip), %rsi # 0xb9631
leaq 0xb(%rsp), %rdx
jmp 0x98c0d
leaq 0x20a39(%rip), %rsi # 0xb9625
leaq 0xd(%rsp), %rdx
jmp 0x98c0d
leaq 0x20a4d(%rip), %rsi # 0xb9647
leaq 0x7(%rsp), %rdx
jmp 0x98c0d
leaq 0x11795(%rip), %rsi # 0xaa39d
leaq 0x6(%rsp), %rdx
movq %rbx, %rdi
callq 0x27c76
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
|
_Z26common_sampler_type_to_strB5cxx1119common_sampler_type:
push rbx
sub rsp, 10h
mov rbx, rdi
dec esi; switch 10 cases
cmp esi, 9
ja def_98B81; jumptable 0000000000098B81 default case, case 5
lea rax, jpt_98B81
movsxd rcx, ds:(jpt_98B81 - 0B9244h)[rax+rsi*4]
add rcx, rax
jmp rcx; switch jump
loc_98B83:
lea rsi, aDry; jumptable 0000000000098B81 case 1
lea rdx, [rsp+18h+var_9]
jmp short loc_98C0D
loc_98B91:
lea rsi, aTopP_0; jumptable 0000000000098B81 case 3
lea rdx, [rsp+18h+var_C]
jmp short loc_98C0D
loc_98B9F:
lea rsi, aTemperature; jumptable 0000000000098B81 case 7
lea rdx, [rsp+18h+var_E]
jmp short loc_98C0D
loc_98BAD:
lea rsi, aTopK_0; jumptable 0000000000098B81 case 2
lea rdx, [rsp+18h+var_A]
jmp short loc_98C0D
loc_98BBB:
lea rsi, aXtc; jumptable 0000000000098B81 case 8
lea rdx, [rsp+18h+var_F]
jmp short loc_98C0D
loc_98BC9:
lea rsi, aSpmInfill+6; jumptable 0000000000098B81 case 9
lea rdx, [rsp+18h+var_10]
jmp short loc_98C0D
loc_98BD7:
lea rsi, aMinP_0; jumptable 0000000000098B81 case 4
lea rdx, [rsp+18h+var_D]
jmp short loc_98C0D
loc_98BE5:
lea rsi, aTypP; jumptable 0000000000098B81 case 6
lea rdx, [rsp+18h+var_B]
jmp short loc_98C0D
loc_98BF3:
lea rsi, aPenalties; jumptable 0000000000098B81 case 10
lea rdx, [rsp+18h+var_11]
jmp short loc_98C0D
def_98B81:
lea rsi, aCosineSimilari+1Bh; jumptable 0000000000098B81 default case, case 5
lea rdx, [rsp+18h+var_12]
loc_98C0D:
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rax, rbx
add rsp, 10h
pop rbx
retn
|
_QWORD * common_sampler_type_to_str[abi:cxx11](_QWORD *a1, int a2)
{
char *v2; // rsi
switch ( a2 )
{
case 1:
v2 = "dry";
break;
case 2:
v2 = "top_k";
break;
case 3:
v2 = "top_p";
break;
case 4:
v2 = "min_p";
break;
case 6:
v2 = "typ_p";
break;
case 7:
v2 = "temperature";
break;
case 8:
v2 = "xtc";
break;
case 9:
v2 = "infill";
break;
case 10:
v2 = "penalties";
break;
default:
v2 = "";
break;
}
std::string::basic_string<std::allocator<char>>(a1, (long long)v2);
return a1;
}
|
common_sampler_type_to_str[abi:cxx11]:
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
DEC ESI
CMP ESI,0x9
JA 0x00198c01
LEA RAX,[0x1b9244]
MOVSXD RCX,dword ptr [RAX + RSI*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_1:
LEA RSI,[0x1b961b]
LEA RDX,[RSP + 0xf]
JMP 0x00198c0d
caseD_3:
LEA RSI,[0x1b962b]
LEA RDX,[RSP + 0xc]
JMP 0x00198c0d
caseD_7:
LEA RSI,[0x1b9637]
LEA RDX,[RSP + 0xa]
JMP 0x00198c0d
caseD_2:
LEA RSI,[0x1b961f]
LEA RDX,[RSP + 0xe]
JMP 0x00198c0d
caseD_8:
LEA RSI,[0x1b9643]
LEA RDX,[RSP + 0x9]
JMP 0x00198c0d
caseD_9:
LEA RSI,[0x1abc39]
LEA RDX,[RSP + 0x8]
JMP 0x00198c0d
caseD_4:
LEA RSI,[0x1b9631]
LEA RDX,[RSP + 0xb]
JMP 0x00198c0d
caseD_6:
LEA RSI,[0x1b9625]
LEA RDX,[RSP + 0xd]
JMP 0x00198c0d
caseD_a:
LEA RSI,[0x1b9647]
LEA RDX,[RSP + 0x7]
JMP 0x00198c0d
caseD_5:
LEA RSI,[0x1aa39d]
LEA RDX,[RSP + 0x6]
LAB_00198c0d:
MOV RDI,RBX
CALL 0x00127c76
MOV RAX,RBX
ADD RSP,0x10
POP RBX
RET
|
/* common_sampler_type_to_str[abi:cxx11](common_sampler_type) */
string * common_sampler_type_to_str_abi_cxx11_(string *param_1,int4 param_2)
{
allocator *paVar1;
char *pcVar2;
allocator local_12;
allocator local_11;
allocator local_10;
allocator local_f;
allocator local_e;
allocator local_d;
allocator local_c;
allocator local_b;
allocator local_a;
allocator local_9;
switch(param_2) {
case 1:
pcVar2 = "dry";
paVar1 = &local_9;
break;
case 2:
pcVar2 = "top_k";
paVar1 = &local_a;
break;
case 3:
pcVar2 = "top_p";
paVar1 = &local_c;
break;
case 4:
pcVar2 = "min_p";
paVar1 = &local_d;
break;
default:
pcVar2 = "";
paVar1 = &local_12;
break;
case 6:
pcVar2 = "typ_p";
paVar1 = &local_b;
break;
case 7:
pcVar2 = "temperature";
paVar1 = &local_e;
break;
case 8:
pcVar2 = "xtc";
paVar1 = &local_f;
break;
case 9:
pcVar2 = "infill";
paVar1 = &local_10;
break;
case 10:
pcVar2 = "penalties";
paVar1 = &local_11;
}
std::__cxx11::string::string<std::allocator<char>>(param_1,pcVar2,paVar1);
return param_1;
}
|
|
59,536
|
spell_kelthuzad_detonate_mana_aura::Register()
|
SylCore-WoTLK/src/server/scripts/Northrend/Naxxramas/boss_kelthuzad.cpp
|
void Register() override
{
OnEffectPeriodic += AuraEffectPeriodicFn(spell_kelthuzad_detonate_mana_aura::HandleScript, EFFECT_0, SPELL_AURA_PERIODIC_TRIGGER_SPELL);
}
|
O3
|
cpp
|
spell_kelthuzad_detonate_mana_aura::Register():
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x7e(%rip), %rsi # 0x6bf582
movq %rsp, %r14
movq %r14, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x17, %r8d
callq 0xee58e0
leaq 0x11079d0(%rip), %rax # 0x17c6ef0
movq %rax, (%r14)
movzwl 0xa(%r14), %ebp
movb 0x8(%r14), %r12b
leaq 0x130(%rbx), %r15
movl $0x30, %edi
callq 0x10a2258
movw %bp, 0x1a(%rax)
movb %r12b, 0x18(%rax)
leaq 0x1063e84(%rip), %rcx # 0x17233d0
movq %rcx, 0x10(%rax)
movups 0x10(%r14), %xmm0
movups %xmm0, 0x20(%rax)
movq %rax, %rdi
movq %r15, %rsi
callq 0x45c2d0
incq 0x140(%rbx)
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
_ZN34spell_kelthuzad_detonate_mana_aura8RegisterEv:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 20h
mov rbx, rdi
lea rsi, _ZN34spell_kelthuzad_detonate_mana_aura12HandleScriptEPK10AuraEffect; spell_kelthuzad_detonate_mana_aura::HandleScript(AuraEffect const*)
mov r14, rsp
mov rdi, r14
xor edx, edx
xor ecx, ecx
mov r8d, 17h
call _ZN10AuraScript21EffectPeriodicHandlerC2EMS_FvPK10AuraEffectEht; AuraScript::EffectPeriodicHandler::EffectPeriodicHandler(void (AuraScript::*)(AuraEffect const*),uchar,ushort)
lea rax, off_17C6EF0
mov [r14], rax
movzx ebp, word ptr [r14+0Ah]
mov r12b, [r14+8]
lea r15, [rbx+130h]
mov edi, 30h ; '0'; unsigned __int64
call _Znwm; operator new(ulong)
mov [rax+1Ah], bp
mov [rax+18h], r12b
lea rcx, off_17233D0
mov [rax+10h], rcx
movups xmm0, xmmword ptr [r14+10h]
movups xmmword ptr [rax+20h], xmm0
mov rdi, rax; this
mov rsi, r15; std::__detail::_List_node_base *
call __ZNSt8__detail15_List_node_base7_M_hookEPS0_; std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)
inc qword ptr [rbx+140h]
add rsp, 20h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
long long spell_kelthuzad_detonate_mana_aura::Register(spell_kelthuzad_detonate_mana_aura *this)
{
__int16 v1; // bp
char v2; // r12
long long v3; // rax
long long result; // rax
void ( **v5)(_SpellScript::EffectHook *__hidden); // [rsp+0h] [rbp-48h] BYREF
char v6; // [rsp+8h] [rbp-40h]
__int16 v7; // [rsp+Ah] [rbp-3Eh]
__int128 v8; // [rsp+10h] [rbp-38h]
AuraScript::EffectPeriodicHandler::EffectPeriodicHandler(
&v5,
spell_kelthuzad_detonate_mana_aura::HandleScript,
0LL,
0LL,
23LL);
v5 = off_17C6EF0;
v1 = v7;
v2 = v6;
v3 = operator new(0x30uLL);
*(_WORD *)(v3 + 26) = v1;
*(_BYTE *)(v3 + 24) = v2;
*(_QWORD *)(v3 + 16) = off_17233D0;
*(_OWORD *)(v3 + 32) = v8;
result = std::__detail::_List_node_base::_M_hook(
(std::__detail::_List_node_base *)v3,
(spell_kelthuzad_detonate_mana_aura *)((char *)this + 304));
++*((_QWORD *)this + 40);
return result;
}
|
_M_invoke:
JMP 0x006bf519
|
/* std::_Function_handler<void (TaskContext),
go_sand_trap::Reset()::{lambda(TaskContext)#1}>::_M_invoke(std::_Any_data const&, TaskContext&&)
*/
void std::_Function_handler<void(TaskContext),go_sand_trap::Reset()::{lambda(TaskContext)#1}>::
_M_invoke(_Any_data *param_1,TaskContext *param_2)
{
int *piVar1;
long lVar2;
int iVar3;
InstanceScript *this;
Unit *pUVar4;
int8 uStack_30;
int8 uStack_28;
long *plStack_20;
int8 uStack_18;
int8 uStack_10;
uStack_30 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = 0;
*(int8 *)param_2 = 0;
uStack_28 = *(int8 *)(param_2 + 0x10);
plStack_20 = *(long **)(param_2 + 0x18);
*(int8 *)(param_2 + 0x10) = 0;
*(int8 *)(param_2 + 0x18) = 0;
uStack_18 = *(int8 *)(param_2 + 0x20);
uStack_10 = *(int8 *)(param_2 + 0x28);
*(int8 *)(param_2 + 0x28) = 0;
*(int8 *)(param_2 + 0x20) = 0;
lVar2 = *(long *)param_1;
this = (InstanceScript *)WorldObject::GetInstanceScript(*(WorldObject **)(lVar2 + 8));
if (this != (InstanceScript *)0x0) {
pUVar4 = (Unit *)InstanceScript::GetCreature(this,0);
if (pUVar4 != (Unit *)0x0) {
GameObject::Use(*(GameObject **)(lVar2 + 8),pUVar4);
}
}
__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&uStack_10);
if (plStack_20 != (long *)0x0) {
if (*PTR___libc_single_threaded_01991e10 == '\0') {
LOCK();
piVar1 = (int *)((long)plStack_20 + 0xc);
iVar3 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar3 = *(int *)((long)plStack_20 + 0xc);
*(int *)((long)plStack_20 + 0xc) = iVar3 + -1;
}
if (iVar3 == 1) {
(**(code **)(*plStack_20 + 0x18))();
}
}
__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&uStack_30);
return;
}
|
|
59,537
|
evmone::advanced::(anonymous namespace)::opx_beginblock(evmone::advanced::Instruction const*, evmone::advanced::AdvancedExecutionState&)
|
corpus-core[P]colibri-stateless/build_O0/_deps/evmone_external-src/lib/evmone/advanced_instructions.cpp
|
const Instruction* opx_beginblock(const Instruction* instr, AdvancedExecutionState& state) noexcept
{
auto& block = instr->arg.block;
if ((state.gas_left -= block.gas_cost) < 0)
return state.exit(EVMC_OUT_OF_GAS);
if (const auto stack_size = state.stack_size(); stack_size < block.stack_req)
return state.exit(EVMC_STACK_UNDERFLOW);
else if (stack_size + block.stack_max_growth > StackSpace::limit)
return state.exit(EVMC_STACK_OVERFLOW);
state.current_block_cost = block.gas_cost;
return ++instr;
}
|
O0
|
cpp
|
evmone::advanced::(anonymous namespace)::opx_beginblock(evmone::advanced::Instruction const*, evmone::advanced::AdvancedExecutionState&):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movl (%rax), %eax
movl %eax, %edx
movq -0x18(%rbp), %rcx
movq 0x220(%rcx), %rax
subq %rdx, %rax
movq %rax, 0x220(%rcx)
cmpq $0x0, %rax
jge 0x927a3
movq -0x18(%rbp), %rdi
movl $0x3, %esi
callq 0x93930
movq %rax, -0x8(%rbp)
jmp 0x9281c
movq -0x18(%rbp), %rdi
callq 0x93fd0
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movq -0x20(%rbp), %rcx
movswl 0x4(%rcx), %ecx
cmpl %ecx, %eax
jge 0x927d2
movq -0x18(%rbp), %rdi
movl $0x7, %esi
callq 0x93930
movq %rax, -0x8(%rbp)
jmp 0x9281c
movl -0x24(%rbp), %eax
movq -0x20(%rbp), %rcx
movswl 0x6(%rcx), %ecx
addl %ecx, %eax
cmpl $0x400, %eax # imm = 0x400
jle 0x927fa
movq -0x18(%rbp), %rdi
movl $0x6, %esi
callq 0x93930
movq %rax, -0x8(%rbp)
jmp 0x9281c
jmp 0x927fc
movq -0x20(%rbp), %rax
movl (%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x230(%rax)
movq -0x10(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x10(%rbp)
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ZN6evmone8advanced12_GLOBAL__N_114opx_beginblockEPKNS0_11InstructionERNS0_22AdvancedExecutionStateE:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
add rax, 8
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
mov eax, [rax]
mov edx, eax
mov rcx, [rbp+var_18]
mov rax, [rcx+220h]
sub rax, rdx
mov [rcx+220h], rax
cmp rax, 0
jge short loc_927A3
mov rdi, [rbp+var_18]
mov esi, 3
call _ZN6evmone8advanced22AdvancedExecutionState4exitE16evmc_status_code; evmone::advanced::AdvancedExecutionState::exit(evmc_status_code)
mov [rbp+var_8], rax
jmp short loc_9281C
loc_927A3:
mov rdi, [rbp+var_18]; this
call _ZN6evmone8advanced22AdvancedExecutionState10stack_sizeEv; evmone::advanced::AdvancedExecutionState::stack_size(void)
mov [rbp+var_24], eax
mov eax, [rbp+var_24]
mov rcx, [rbp+var_20]
movsx ecx, word ptr [rcx+4]
cmp eax, ecx
jge short loc_927D2
mov rdi, [rbp+var_18]
mov esi, 7
call _ZN6evmone8advanced22AdvancedExecutionState4exitE16evmc_status_code; evmone::advanced::AdvancedExecutionState::exit(evmc_status_code)
mov [rbp+var_8], rax
jmp short loc_9281C
loc_927D2:
mov eax, [rbp+var_24]
mov rcx, [rbp+var_20]
movsx ecx, word ptr [rcx+6]
add eax, ecx
cmp eax, 400h
jle short loc_927FA
mov rdi, [rbp+var_18]
mov esi, 6
call _ZN6evmone8advanced22AdvancedExecutionState4exitE16evmc_status_code; evmone::advanced::AdvancedExecutionState::exit(evmc_status_code)
mov [rbp+var_8], rax
jmp short loc_9281C
loc_927FA:
jmp short $+2
loc_927FC:
mov rax, [rbp+var_20]
mov ecx, [rax]
mov rax, [rbp+var_18]
mov [rax+230h], ecx
mov rax, [rbp+var_10]
add rax, 10h
mov [rbp+var_10], rax
mov [rbp+var_8], rax
loc_9281C:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
|
long long evmone::advanced::`anonymous namespace'::opx_beginblock(long long a1, long long a2)
{
long long v2; // rax
int v4; // [rsp+Ch] [rbp-24h]
v2 = *(_QWORD *)(a2 + 544) - *(unsigned int *)(a1 + 8);
*(_QWORD *)(a2 + 544) = v2;
if ( v2 < 0 )
return evmone::advanced::AdvancedExecutionState::exit(a2, 3LL);
v4 = evmone::advanced::AdvancedExecutionState::stack_size((evmone::advanced::AdvancedExecutionState *)a2);
if ( v4 < *(__int16 *)(a1 + 12) )
return evmone::advanced::AdvancedExecutionState::exit(a2, 7LL);
if ( *(__int16 *)(a1 + 14) + v4 > 1024 )
return evmone::advanced::AdvancedExecutionState::exit(a2, 6LL);
*(_DWORD *)(a2 + 560) = *(_DWORD *)(a1 + 8);
return a1 + 16;
}
|
opx_beginblock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x8
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX]
MOV EDX,EAX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RCX + 0x220]
SUB RAX,RDX
MOV qword ptr [RCX + 0x220],RAX
CMP RAX,0x0
JGE 0x001927a3
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,0x3
CALL 0x00193930
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0019281c
LAB_001927a3:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00193fd0
MOV dword ptr [RBP + -0x24],EAX
MOV EAX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x20]
MOVSX ECX,word ptr [RCX + 0x4]
CMP EAX,ECX
JGE 0x001927d2
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,0x7
CALL 0x00193930
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0019281c
LAB_001927d2:
MOV EAX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x20]
MOVSX ECX,word ptr [RCX + 0x6]
ADD EAX,ECX
CMP EAX,0x400
JLE 0x001927fa
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,0x6
CALL 0x00193930
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0019281c
LAB_001927fa:
JMP 0x001927fc
LAB_001927fc:
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x230],ECX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x10
MOV qword ptr [RBP + -0x10],RAX
MOV qword ptr [RBP + -0x8],RAX
LAB_0019281c:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
/* evmone::advanced::(anonymous namespace)::opx_beginblock(evmone::advanced::Instruction const*,
evmone::advanced::AdvancedExecutionState&) */
Instruction *
evmone::advanced::(anonymous_namespace)::opx_beginblock
(Instruction *param_1,AdvancedExecutionState *param_2)
{
int iVar1;
long lVar2;
Instruction *local_10;
lVar2 = *(long *)(param_2 + 0x220) - (ulong)*(uint *)(param_1 + 8);
*(long *)(param_2 + 0x220) = lVar2;
if (lVar2 < 0) {
local_10 = (Instruction *)AdvancedExecutionState::exit(param_2,3);
}
else {
iVar1 = AdvancedExecutionState::stack_size(param_2);
if (iVar1 < *(short *)(param_1 + 0xc)) {
local_10 = (Instruction *)AdvancedExecutionState::exit(param_2,7);
}
else if (iVar1 + *(short *)(param_1 + 0xe) < 0x401) {
*(uint *)(param_2 + 0x230) = *(uint *)(param_1 + 8);
local_10 = param_1 + 0x10;
}
else {
local_10 = (Instruction *)AdvancedExecutionState::exit(param_2,6);
}
}
return local_10;
}
|
|
59,538
|
flux::lexer::Tokenizer::error(flux::common::ErrorCode, std::basic_string_view<char, std::char_traits<char>>)
|
kvthweatt[P]FluxLang/src/lexer/tokenizer.cpp
|
void Tokenizer::error(common::ErrorCode code, std::string_view message) {
common::SourcePosition start = {line_, column_};
common::SourcePosition end = {line_, column_ + 1};
auto location = makeSourceLocation(start, end);
errors_.addError(code, message, location);
}
|
O1
|
cpp
|
flux::lexer::Tokenizer::error(flux::common::ErrorCode, std::basic_string_view<char, std::char_traits<char>>):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, 0x8(%rsp)
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r15
movq 0x28(%rdi), %r12
movl 0x30(%rdi), %ebx
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r13
movaps %xmm0, (%r13)
movq (%rdi), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x9dbe
leal -0x1(%rbx), %ecx
movzbl %al, %eax
xorl %edx, %edx
testb %al, %al
cmovnel %ecx, %edx
movq (%r15), %rcx
movq 0x10(%rcx), %rsi
movq 0x18(%rcx), %rcx
movaps (%r13), %xmm0
leaq 0x28(%rsp), %r8
movups %xmm0, 0x18(%r8)
movq %rcx, (%r8)
movq %rsi, 0x8(%r8)
movl %r12d, 0x10(%r8)
movl %ebx, 0x14(%r8)
movl %edx, 0x28(%r8)
movl %eax, 0x2c(%r8)
addq $0x38, %r15
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq 0x8(%rsp), %rcx
callq 0x8e32
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ZN4flux5lexer9Tokenizer5errorENS_6common9ErrorCodeESt17basic_string_viewIcSt11char_traitsIcEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov [rsp+88h+var_80], rcx
mov r14, rdx
mov ebp, esi
mov r15, rdi
mov r12, [rdi+28h]
mov ebx, [rdi+30h]
xorps xmm0, xmm0
lea r13, [rsp+88h+var_78]
movaps xmmword ptr [r13+0], xmm0
mov rdi, [rdi]
mov rsi, r12
mov rdx, r13
call _ZNK4flux6common6Source7getLineEmRSt17basic_string_viewIcSt11char_traitsIcEE; flux::common::Source::getLine(ulong,std::string_view &)
lea ecx, [rbx-1]
movzx eax, al
xor edx, edx
test al, al
cmovnz edx, ecx
mov rcx, [r15]
mov rsi, [rcx+10h]
mov rcx, [rcx+18h]
movaps xmm0, xmmword ptr [r13+0]
lea r8, [rsp+88h+var_60]
movups xmmword ptr [r8+18h], xmm0
mov [r8], rcx
mov [r8+8], rsi
mov [r8+10h], r12d
mov [r8+14h], ebx
mov [r8+28h], edx
mov [r8+2Ch], eax
add r15, 38h ; '8'
mov rdi, r15
mov esi, ebp
mov rdx, r14
mov rcx, [rsp+88h+var_80]
call _ZN4flux6common14ErrorCollector8addErrorENS0_9ErrorCodeESt17basic_string_viewIcSt11char_traitsIcEERKNS_6output14SourceLocationE; flux::common::ErrorCollector::addError(flux::common::ErrorCode,std::string_view,flux::output::SourceLocation const&)
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long flux::lexer::Tokenizer::error(long long a1, int a2, long long a3, long long a4)
{
unsigned long long v6; // r12
int v7; // ebx
unsigned __int8 Line; // al
int v9; // edx
long long v10; // rsi
long long v11; // rcx
unsigned long long v14[3]; // [rsp+10h] [rbp-78h] BYREF
_QWORD v15[2]; // [rsp+28h] [rbp-60h] BYREF
int v16; // [rsp+38h] [rbp-50h]
int v17; // [rsp+3Ch] [rbp-4Ch]
__int128 v18; // [rsp+40h] [rbp-48h]
int v19; // [rsp+50h] [rbp-38h]
int v20; // [rsp+54h] [rbp-34h]
v6 = *(_QWORD *)(a1 + 40);
v7 = *(_DWORD *)(a1 + 48);
*(_OWORD *)v14 = 0LL;
Line = flux::common::Source::getLine(*(unsigned long long **)a1, v6, v14);
v9 = 0;
if ( Line )
v9 = v7 - 1;
v10 = *(_QWORD *)(*(_QWORD *)a1 + 16LL);
v11 = *(_QWORD *)(*(_QWORD *)a1 + 24LL);
v18 = *(_OWORD *)v14;
v15[0] = v11;
v15[1] = v10;
v16 = v6;
v17 = v7;
v19 = v9;
v20 = Line;
return flux::common::ErrorCollector::addError(a1 + 56, a2, a3, a4, (long long)v15);
}
|
error:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV qword ptr [RSP + 0x8],RCX
MOV R14,RDX
MOV EBP,ESI
MOV R15,RDI
MOV R12,qword ptr [RDI + 0x28]
MOV EBX,dword ptr [RDI + 0x30]
XORPS XMM0,XMM0
LEA R13,[RSP + 0x10]
MOVAPS xmmword ptr [R13],XMM0
MOV RDI,qword ptr [RDI]
MOV RSI,R12
MOV RDX,R13
CALL 0x00109dbe
LEA ECX,[RBX + -0x1]
MOVZX EAX,AL
XOR EDX,EDX
TEST AL,AL
CMOVNZ EDX,ECX
MOV RCX,qword ptr [R15]
MOV RSI,qword ptr [RCX + 0x10]
MOV RCX,qword ptr [RCX + 0x18]
MOVAPS XMM0,xmmword ptr [R13]
LEA R8,[RSP + 0x28]
MOVUPS xmmword ptr [R8 + 0x18],XMM0
MOV qword ptr [R8],RCX
MOV qword ptr [R8 + 0x8],RSI
MOV dword ptr [R8 + 0x10],R12D
MOV dword ptr [R8 + 0x14],EBX
MOV dword ptr [R8 + 0x28],EDX
MOV dword ptr [R8 + 0x2c],EAX
ADD R15,0x38
MOV RDI,R15
MOV ESI,EBP
MOV RDX,R14
MOV RCX,qword ptr [RSP + 0x8]
CALL 0x00108e32
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* flux::lexer::Tokenizer::error(flux::common::ErrorCode, std::basic_string_view<char,
std::char_traits<char> >) */
void flux::lexer::Tokenizer::error
(long *param_1,int4 param_2,int8 param_3,int8 param_4)
{
ulong uVar1;
long lVar2;
byte bVar3;
int8 local_78;
int8 uStack_70;
int8 local_60;
int8 local_58;
int4 local_50;
int local_4c;
int4 local_48;
int4 uStack_44;
int4 uStack_40;
int4 uStack_3c;
int local_38;
uint local_34;
uVar1 = param_1[5];
lVar2 = param_1[6];
local_78 = 0;
uStack_70 = 0;
bVar3 = common::Source::getLine((Source *)*param_1,uVar1,(basic_string_view *)&local_78);
local_38 = 0;
if (bVar3 != 0) {
local_38 = (int)lVar2 + -1;
}
local_58 = *(int8 *)(*param_1 + 0x10);
local_60 = *(int8 *)(*param_1 + 0x18);
local_48 = (int4)local_78;
uStack_44 = local_78._4_4_;
uStack_40 = (int4)uStack_70;
uStack_3c = uStack_70._4_4_;
local_50 = (int4)uVar1;
local_34 = (uint)bVar3;
local_4c = (int)lVar2;
common::ErrorCollector::addError(param_1 + 7,param_2,param_3,param_4);
return;
}
|
|
59,539
|
my_strnncollsp_padspace_bin
|
eloqsql/strings/ctype-bin.c
|
int my_strnncollsp_padspace_bin(const uchar *str, size_t length)
{
for ( ; length ; str++, length--)
{
if (*str < ' ')
return -1;
else if (*str > ' ')
return 1;
}
return 0;
}
|
O3
|
c
|
my_strnncollsp_padspace_bin:
pushq %rbp
movq %rsp, %rbp
testq %rsi, %rsi
je 0x69134
xorl %eax, %eax
cmpb $0x20, (%rdi,%rax)
jb 0x69138
jne 0x6913f
incq %rax
cmpq %rax, %rsi
jne 0x69124
xorl %eax, %eax
jmp 0x69144
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
jmp 0x69144
movl $0x1, %eax
popq %rbp
retq
|
my_strnncollsp_padspace_bin:
push rbp
mov rbp, rsp
test rsi, rsi
jz short loc_69134
xor eax, eax
loc_69124:
cmp byte ptr [rdi+rax], 20h ; ' '
jb short loc_69138
jnz short loc_6913F
inc rax
cmp rsi, rax
jnz short loc_69124
loc_69134:
xor eax, eax
jmp short loc_69144
loc_69138:
mov eax, 0FFFFFFFFh
jmp short loc_69144
loc_6913F:
mov eax, 1
loc_69144:
pop rbp
retn
|
long long my_strnncollsp_padspace_bin(long long a1, long long a2)
{
long long v2; // rax
if ( !a2 )
return 0LL;
v2 = 0LL;
while ( 1 )
{
if ( *(_BYTE *)(a1 + v2) < 0x20u )
return 0xFFFFFFFFLL;
if ( *(_BYTE *)(a1 + v2) != 32 )
break;
if ( a2 == ++v2 )
return 0LL;
}
return 1LL;
}
|
my_strnncollsp_padspace_bin:
PUSH RBP
MOV RBP,RSP
TEST RSI,RSI
JZ 0x00169134
XOR EAX,EAX
LAB_00169124:
CMP byte ptr [RDI + RAX*0x1],0x20
JC 0x00169138
JNZ 0x0016913f
INC RAX
CMP RSI,RAX
JNZ 0x00169124
LAB_00169134:
XOR EAX,EAX
JMP 0x00169144
LAB_00169138:
MOV EAX,0xffffffff
JMP 0x00169144
LAB_0016913f:
MOV EAX,0x1
LAB_00169144:
POP RBP
RET
|
int8 my_strnncollsp_padspace_bin(long param_1,long param_2)
{
long lVar1;
if (param_2 != 0) {
lVar1 = 0;
do {
if (*(byte *)(param_1 + lVar1) < 0x20) {
return 0xffffffff;
}
if (*(byte *)(param_1 + lVar1) != 0x20) {
return 1;
}
lVar1 = lVar1 + 1;
} while (param_2 != lVar1);
}
return 0;
}
|
|
59,540
|
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 0x33e645(%rip), %r12 # 0x366980
leaq 0x2ed42e(%rip), %r14 # 0x315770
movq 0x8(%r12,%r15), %rax
testq %rax, %rax
je 0x28369
movq 0x20(%rax), %rsi
testq %rsi, %rsi
je 0x28369
movq 0xc0(%r14), %rax
movq %r14, %rdi
movq %rbx, %rdx
callq *0x40(%rax)
testl %eax, %eax
je 0x2837a
addq $0x8, %r15
cmpq $0x3ff8, %r15 # imm = 0x3FF8
jb 0x28342
xorl %eax, %eax
jmp 0x28381
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_28342:
mov rax, [r12+r15+8]
test rax, rax
jz short loc_28369
mov rsi, [rax+20h]
test rsi, rsi
jz short loc_28369
mov rax, [r14+0C0h]
mov rdi, r14
mov rdx, rbx
call qword ptr [rax+40h]
test eax, eax
jz short loc_2837A
loc_28369:
add r15, 8
cmp r15, 3FF8h
jb short loc_28342
xor eax, eax
jmp short loc_28381
loc_2837A:
mov rax, [r12+r15+8]
mov eax, [rax]
loc_28381:
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,[0x466980]
LEA R14,[0x415770]
LAB_00128342:
MOV RAX,qword ptr [R12 + R15*0x1 + 0x8]
TEST RAX,RAX
JZ 0x00128369
MOV RSI,qword ptr [RAX + 0x20]
TEST RSI,RSI
JZ 0x00128369
MOV RAX,qword ptr [R14 + 0xc0]
MOV RDI,R14
MOV RDX,RBX
CALL qword ptr [RAX + 0x40]
TEST EAX,EAX
JZ 0x0012837a
LAB_00128369:
ADD R15,0x8
CMP R15,0x3ff8
JC 0x00128342
XOR EAX,EAX
JMP 0x00128381
LAB_0012837a:
MOV RAX,qword ptr [R12 + R15*0x1 + 0x8]
MOV EAX,dword ptr [RAX]
LAB_00128381:
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_00466988 + uVar3) == 0 ||
(lVar1 = *(long *)(*(long *)((long)&DAT_00466988 + uVar3) + 0x20), lVar1 == 0)) ||
(iVar2 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_00415830 + 0x40))
(&my_charset_latin1,lVar1,param_1), iVar2 != 0))) {
uVar3 = uVar3 + 8;
if (0x3ff7 < uVar3) {
return 0;
}
}
return **(int4 **)((long)&DAT_00466988 + uVar3);
}
|
|
59,541
|
mysql_set_character_set_start_internal
|
eloqsql/libmariadb/libmariadb/mariadb_async.c
|
static void
mysql_set_character_set_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_set_character_set,
(parms->mysql, parms->csname),
parms->mysql,
int,
r_int)
}
|
O3
|
c
|
mysql_set_character_set_start_internal:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rax
movq 0x8(%rdi), %rsi
movq 0x480(%rax), %rcx
movq 0x28(%rcx), %rbx
movq %rax, %rdi
callq 0x19e7b
movl %eax, 0x8(%rbx)
movl $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
mysql_set_character_set_start_internal:
push rbp
mov rbp, rsp
push rbx
push rax
mov rax, [rdi]
mov rsi, [rdi+8]
mov rcx, [rax+480h]
mov rbx, [rcx+28h]
mov rdi, rax
call mysql_set_character_set
mov [rbx+8], eax
mov dword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
retn
|
long long mysql_set_character_set_start_internal(long long *a1)
{
_DWORD *v1; // rbx
long long result; // rax
v1 = *(_DWORD **)(*(_QWORD *)(*a1 + 1152) + 40LL);
result = mysql_set_character_set(*a1, a1[1]);
v1[2] = result;
*v1 = 0;
return result;
}
|
mysql_set_character_set_start_internal:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RAX,qword ptr [RDI]
MOV RSI,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RAX + 0x480]
MOV RBX,qword ptr [RCX + 0x28]
MOV RDI,RAX
CALL 0x00119e7b
MOV dword ptr [RBX + 0x8],EAX
MOV dword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mysql_set_character_set_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_set_character_set(*param_1,param_1[1]);
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
|
|
59,542
|
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int)
|
monkey531[P]llama/common/json.hpp
|
inline cached_power get_cached_power_for_binary_exponent(int e)
{
// Now
//
// alpha <= e_c + e + q <= gamma (1)
// ==> f_c * 2^alpha <= c * 2^e * 2^q
//
// and since the c's are normalized, 2^(q-1) <= f_c,
//
// ==> 2^(q - 1 + alpha) <= c * 2^(e + q)
// ==> 2^(alpha - e - 1) <= c
//
// If c were an exact power of ten, i.e. c = 10^k, one may determine k as
//
// k = ceil( log_10( 2^(alpha - e - 1) ) )
// = ceil( (alpha - e - 1) * log_10(2) )
//
// From the paper:
// "In theory the result of the procedure could be wrong since c is rounded,
// and the computation itself is approximated [...]. In practice, however,
// this simple function is sufficient."
//
// For IEEE double precision floating-point numbers converted into
// normalized diyfp's w = f * 2^e, with q = 64,
//
// e >= -1022 (min IEEE exponent)
// -52 (p - 1)
// -52 (p - 1, possibly normalize denormal IEEE numbers)
// -11 (normalize the diyfp)
// = -1137
//
// and
//
// e <= +1023 (max IEEE exponent)
// -52 (p - 1)
// -11 (normalize the diyfp)
// = 960
//
// This binary exponent range [-1137,960] results in a decimal exponent
// range [-307,324]. One does not need to store a cached power for each
// k in this range. For each such k it suffices to find a cached power
// such that the exponent of the product lies in [alpha,gamma].
// This implies that the difference of the decimal exponents of adjacent
// table entries must be less than or equal to
//
// floor( (gamma - alpha) * log_10(2) ) = 8.
//
// (A smaller distance gamma-alpha would require a larger table.)
// NB:
// Actually this function returns c, such that -60 <= e_c + e + 64 <= -34.
constexpr int kCachedPowersMinDecExp = -300;
constexpr int kCachedPowersDecStep = 8;
static constexpr std::array<cached_power, 79> kCachedPowers =
{
{
{ 0xAB70FE17C79AC6CA, -1060, -300 },
{ 0xFF77B1FCBEBCDC4F, -1034, -292 },
{ 0xBE5691EF416BD60C, -1007, -284 },
{ 0x8DD01FAD907FFC3C, -980, -276 },
{ 0xD3515C2831559A83, -954, -268 },
{ 0x9D71AC8FADA6C9B5, -927, -260 },
{ 0xEA9C227723EE8BCB, -901, -252 },
{ 0xAECC49914078536D, -874, -244 },
{ 0x823C12795DB6CE57, -847, -236 },
{ 0xC21094364DFB5637, -821, -228 },
{ 0x9096EA6F3848984F, -794, -220 },
{ 0xD77485CB25823AC7, -768, -212 },
{ 0xA086CFCD97BF97F4, -741, -204 },
{ 0xEF340A98172AACE5, -715, -196 },
{ 0xB23867FB2A35B28E, -688, -188 },
{ 0x84C8D4DFD2C63F3B, -661, -180 },
{ 0xC5DD44271AD3CDBA, -635, -172 },
{ 0x936B9FCEBB25C996, -608, -164 },
{ 0xDBAC6C247D62A584, -582, -156 },
{ 0xA3AB66580D5FDAF6, -555, -148 },
{ 0xF3E2F893DEC3F126, -529, -140 },
{ 0xB5B5ADA8AAFF80B8, -502, -132 },
{ 0x87625F056C7C4A8B, -475, -124 },
{ 0xC9BCFF6034C13053, -449, -116 },
{ 0x964E858C91BA2655, -422, -108 },
{ 0xDFF9772470297EBD, -396, -100 },
{ 0xA6DFBD9FB8E5B88F, -369, -92 },
{ 0xF8A95FCF88747D94, -343, -84 },
{ 0xB94470938FA89BCF, -316, -76 },
{ 0x8A08F0F8BF0F156B, -289, -68 },
{ 0xCDB02555653131B6, -263, -60 },
{ 0x993FE2C6D07B7FAC, -236, -52 },
{ 0xE45C10C42A2B3B06, -210, -44 },
{ 0xAA242499697392D3, -183, -36 },
{ 0xFD87B5F28300CA0E, -157, -28 },
{ 0xBCE5086492111AEB, -130, -20 },
{ 0x8CBCCC096F5088CC, -103, -12 },
{ 0xD1B71758E219652C, -77, -4 },
{ 0x9C40000000000000, -50, 4 },
{ 0xE8D4A51000000000, -24, 12 },
{ 0xAD78EBC5AC620000, 3, 20 },
{ 0x813F3978F8940984, 30, 28 },
{ 0xC097CE7BC90715B3, 56, 36 },
{ 0x8F7E32CE7BEA5C70, 83, 44 },
{ 0xD5D238A4ABE98068, 109, 52 },
{ 0x9F4F2726179A2245, 136, 60 },
{ 0xED63A231D4C4FB27, 162, 68 },
{ 0xB0DE65388CC8ADA8, 189, 76 },
{ 0x83C7088E1AAB65DB, 216, 84 },
{ 0xC45D1DF942711D9A, 242, 92 },
{ 0x924D692CA61BE758, 269, 100 },
{ 0xDA01EE641A708DEA, 295, 108 },
{ 0xA26DA3999AEF774A, 322, 116 },
{ 0xF209787BB47D6B85, 348, 124 },
{ 0xB454E4A179DD1877, 375, 132 },
{ 0x865B86925B9BC5C2, 402, 140 },
{ 0xC83553C5C8965D3D, 428, 148 },
{ 0x952AB45CFA97A0B3, 455, 156 },
{ 0xDE469FBD99A05FE3, 481, 164 },
{ 0xA59BC234DB398C25, 508, 172 },
{ 0xF6C69A72A3989F5C, 534, 180 },
{ 0xB7DCBF5354E9BECE, 561, 188 },
{ 0x88FCF317F22241E2, 588, 196 },
{ 0xCC20CE9BD35C78A5, 614, 204 },
{ 0x98165AF37B2153DF, 641, 212 },
{ 0xE2A0B5DC971F303A, 667, 220 },
{ 0xA8D9D1535CE3B396, 694, 228 },
{ 0xFB9B7CD9A4A7443C, 720, 236 },
{ 0xBB764C4CA7A44410, 747, 244 },
{ 0x8BAB8EEFB6409C1A, 774, 252 },
{ 0xD01FEF10A657842C, 800, 260 },
{ 0x9B10A4E5E9913129, 827, 268 },
{ 0xE7109BFBA19C0C9D, 853, 276 },
{ 0xAC2820D9623BF429, 880, 284 },
{ 0x80444B5E7AA7CF85, 907, 292 },
{ 0xBF21E44003ACDD2D, 933, 300 },
{ 0x8E679C2F5E44FF8F, 960, 308 },
{ 0xD433179D9C8CB841, 986, 316 },
{ 0x9E19DB92B4E31BA9, 1013, 324 },
}
};
// This computation gives exactly the same results for k as
// k = ceil((kAlpha - e - 1) * 0.30102999566398114)
// for |e| <= 1500, but doesn't require floating-point operations.
// NB: log_10(2) ~= 78913 / 2^18
JSON_ASSERT(e >= -1500);
JSON_ASSERT(e <= 1500);
const int f = kAlpha - e - 1;
const int k = (f * 78913) / (1 << 18) + static_cast<int>(f > 0);
const int index = (-kCachedPowersMinDecExp + k + (kCachedPowersDecStep - 1)) / kCachedPowersDecStep;
JSON_ASSERT(index >= 0);
JSON_ASSERT(static_cast<std::size_t>(index) < kCachedPowers.size());
const cached_power cached = kCachedPowers[static_cast<std::size_t>(index)];
JSON_ASSERT(kAlpha <= cached.e + e + 64);
JSON_ASSERT(kGamma >= cached.e + e + 64);
return cached;
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int):
pushq %rax
cmpl $0xfffffa23, %edi # imm = 0xFFFFFA23
jle 0x88077
cmpl $0x5dd, %edi # imm = 0x5DD
jge 0x88096
xorl %ecx, %ecx
movl %edi, %eax
subl $-0x3d, %eax
setl %cl
negl %eax
imull $0x13441, %eax, %eax # imm = 0x13441
movl $0x40000, %esi # imm = 0x40000
cltd
idivl %esi
addl %eax, %ecx
cmpl $0xfffffec5, %ecx # imm = 0xFFFFFEC5
jle 0x880b2
addl $0x133, %ecx # imm = 0x133
movl %ecx, %eax
cwtd
movw $0x8, %cx
idivw %cx
cmpw $0x4f, %ax
jae 0x880ce
movzwl %ax, %eax
shll $0x4, %eax
leaq 0x2fb20(%rip), %rcx # 0xb7b78
movq 0x8(%rcx,%rax), %rdx
addl %edx, %edi
cmpl $-0x7d, %edi
jle 0x880ea
cmpl $-0x5f, %edi
jge 0x88106
movq (%rcx,%rax), %rax
popq %rcx
retq
leaq 0x27d52(%rip), %rdi # 0xafdd0
leaq 0x27d95(%rip), %rdx # 0xafe1a
leaq 0x2d58f(%rip), %rcx # 0xb561b
movl $0x43e4, %esi # imm = 0x43E4
jmp 0x88120
leaq 0x27d33(%rip), %rdi # 0xafdd0
leaq 0x27d76(%rip), %rdx # 0xafe1a
leaq 0x2d57b(%rip), %rcx # 0xb5626
movl $0x43e5, %esi # imm = 0x43E5
jmp 0x88120
leaq 0x27d17(%rip), %rdi # 0xafdd0
leaq 0x27d5a(%rip), %rdx # 0xafe1a
leaq 0x2d569(%rip), %rcx # 0xb5630
movl $0x43ea, %esi # imm = 0x43EA
jmp 0x88120
leaq 0x27cfb(%rip), %rdi # 0xafdd0
leaq 0x27d3e(%rip), %rdx # 0xafe1a
leaq 0x2d558(%rip), %rcx # 0xb563b
movl $0x43eb, %esi # imm = 0x43EB
jmp 0x88120
leaq 0x27cdf(%rip), %rdi # 0xafdd0
leaq 0x27d22(%rip), %rdx # 0xafe1a
leaq 0x2d573(%rip), %rcx # 0xb5672
movl $0x43ee, %esi # imm = 0x43EE
jmp 0x88120
leaq 0x27cc3(%rip), %rdi # 0xafdd0
leaq 0x27d06(%rip), %rdx # 0xafe1a
leaq 0x2d573(%rip), %rcx # 0xb568e
movl $0x43ef, %esi # imm = 0x43EF
xorl %eax, %eax
callq 0x23ef0
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl36get_cached_power_for_binary_exponentEi:
push rax
cmp edi, 0FFFFFA23h
jle short loc_88077
cmp edi, 5DDh
jge loc_88096
xor ecx, ecx
mov eax, edi
sub eax, 0FFFFFFC3h
setl cl
neg eax
imul eax, 13441h
mov esi, offset loc_40000
cdq
idiv esi
add ecx, eax
cmp ecx, 0FFFFFEC5h
jle loc_880B2
add ecx, 133h
mov eax, ecx
cwd
mov cx, 8
idiv cx
cmp ax, 4Fh ; 'O'
jnb loc_880CE
movzx eax, ax
shl eax, 4
lea rcx, _ZZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl36get_cached_power_for_binary_exponentEiE13kCachedPowers; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int)::kCachedPowers
mov rdx, [rcx+rax+8]
add edi, edx
cmp edi, 0FFFFFF83h
jle loc_880EA
cmp edi, 0FFFFFFA1h
jge loc_88106
mov rax, [rcx+rax]
pop rcx
retn
loc_88077:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aE1500; "e >= -1500"
mov esi, 43E4h
jmp loc_88120
loc_88096:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aE1500_0; "e <= 1500"
mov esi, 43E5h
jmp short loc_88120
loc_880B2:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aIndex0; "index >= 0"
mov esi, 43EAh
jmp short loc_88120
loc_880CE:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aStaticCastStdS; "static_cast<std::size_t>(index) < kCach"...
mov esi, 43EBh
jmp short loc_88120
loc_880EA:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKalphaCachedEE; "kAlpha <= cached.e + e + 64"
mov esi, 43EEh
jmp short loc_88120
loc_88106:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKgammaCachedEE; "kGamma >= cached.e + e + 64"
mov esi, 43EFh
loc_88120:
xor eax, eax
call _ggml_abort
nop
|
long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(
nlohmann::json_abi_v3_11_3::detail::dtoa_impl *this)
{
int v1; // ecx
unsigned __int16 v2; // ax
long long v3; // rax
int v4; // edi
long long v6; // rsi
if ( (int)this <= -1501 )
{
v6 = 17380LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17380LL,
"GGML_ASSERT(%s) failed",
"e >= -1500");
}
else if ( (int)this >= 1501 )
{
v6 = 17381LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17381LL,
"GGML_ASSERT(%s) failed",
"e <= 1500");
}
else
{
v1 = -78913 * ((int)this + 61) / (int)&loc_40000 + ((int)this < -61);
if ( v1 <= -315 )
{
v6 = 17386LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17386LL,
"GGML_ASSERT(%s) failed",
"index >= 0");
}
else
{
v2 = (__int16)(v1 + 307) / 8;
if ( v2 >= 0x4Fu )
{
v6 = 17387LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17387LL,
"GGML_ASSERT(%s) failed",
"static_cast<std::size_t>(index) < kCachedPowers.size()");
}
else
{
v3 = 16 * (unsigned int)v2;
v4 = *(_QWORD *)((char *)&nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int)::kCachedPowers
+ v3
+ 8)
+ (_DWORD)this;
if ( v4 <= -125 )
{
v6 = 17390LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17390LL,
"GGML_ASSERT(%s) failed",
"kAlpha <= cached.e + e + 64");
}
else
{
if ( v4 < -95 )
return *(_QWORD *)((char *)&nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int)::kCachedPowers
+ v3);
v6 = 17391LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17391LL,
"GGML_ASSERT(%s) failed",
"kGamma >= cached.e + e + 64");
}
}
}
}
return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
v6);
}
|
get_cached_power_for_binary_exponent:
PUSH RAX
CMP EDI,0xfffffa23
JLE 0x00188077
CMP EDI,0x5dd
JGE 0x00188096
XOR ECX,ECX
MOV EAX,EDI
SUB EAX,-0x3d
SETL CL
NEG EAX
IMUL EAX,EAX,0x13441
MOV ESI,0x40000
CDQ
IDIV ESI
ADD ECX,EAX
CMP ECX,0xfffffec5
JLE 0x001880b2
ADD ECX,0x133
MOV EAX,ECX
CWD
MOV CX,0x8
IDIV CX
CMP AX,0x4f
JNC 0x001880ce
MOVZX EAX,AX
SHL EAX,0x4
LEA RCX,[0x1b7b78]
MOV RDX,qword ptr [RCX + RAX*0x1 + 0x8]
ADD EDI,EDX
CMP EDI,-0x7d
JLE 0x001880ea
CMP EDI,-0x5f
JGE 0x00188106
MOV RAX,qword ptr [RCX + RAX*0x1]
POP RCX
RET
LAB_00188077:
LEA RDI,[0x1afdd0]
LEA RDX,[0x1afe1a]
LEA RCX,[0x1b561b]
MOV ESI,0x43e4
JMP 0x00188120
LAB_00188096:
LEA RDI,[0x1afdd0]
LEA RDX,[0x1afe1a]
LEA RCX,[0x1b5626]
MOV ESI,0x43e5
JMP 0x00188120
LAB_001880b2:
LEA RDI,[0x1afdd0]
LEA RDX,[0x1afe1a]
LEA RCX,[0x1b5630]
MOV ESI,0x43ea
JMP 0x00188120
LAB_001880ce:
LEA RDI,[0x1afdd0]
LEA RDX,[0x1afe1a]
LEA RCX,[0x1b563b]
MOV ESI,0x43eb
JMP 0x00188120
LAB_001880ea:
LEA RDI,[0x1afdd0]
LEA RDX,[0x1afe1a]
LEA RCX,[0x1b5672]
MOV ESI,0x43ee
JMP 0x00188120
LAB_00188106:
LEA RDI,[0x1afdd0]
LEA RDX,[0x1afe1a]
LEA RCX,[0x1b568e]
MOV ESI,0x43ef
LAB_00188120:
XOR EAX,EAX
CALL 0x00123ef0
|
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int) */
int8
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int param_1)
{
ulong uVar1;
int iVar2;
uint uVar3;
char *pcVar4;
int8 uVar5;
if (param_1 < -0x5dc) {
pcVar4 = "e >= -1500";
uVar5 = 0x43e4;
}
else if (param_1 < 0x5dd) {
iVar2 = (uint)(param_1 < -0x3d) + ((param_1 + 0x3d) * -0x13441) / 0x40000;
if (iVar2 < -0x13a) {
pcVar4 = "index >= 0";
uVar5 = 0x43ea;
}
else {
uVar3 = iVar2 + 0x133;
uVar3 = (int)((uint)(ushort)((short)uVar3 >> 0xf) << 0x10 | uVar3 & 0xffff) / 8;
if ((ushort)uVar3 < 0x4f) {
uVar1 = (ulong)((uVar3 & 0xffff) << 4);
iVar2 = param_1 + (int)*(int8 *)
(get_cached_power_for_binary_exponent(int)::kCachedPowers +
uVar1 + 8);
if (iVar2 < -0x7c) {
pcVar4 = "kAlpha <= cached.e + e + 64";
uVar5 = 0x43ee;
}
else {
if (iVar2 < -0x5f) {
return *(int8 *)(get_cached_power_for_binary_exponent(int)::kCachedPowers + uVar1)
;
}
pcVar4 = "kGamma >= cached.e + e + 64";
uVar5 = 0x43ef;
}
}
else {
pcVar4 = "static_cast<std::size_t>(index) < kCachedPowers.size()";
uVar5 = 0x43eb;
}
}
}
else {
pcVar4 = "e <= 1500";
uVar5 = 0x43e5;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar5,
"GGML_ASSERT(%s) failed",pcVar4);
}
|
|
59,543
|
js_set_module_evaluated
|
bluesky950520[P]quickjs/quickjs.c
|
static void js_set_module_evaluated(JSContext *ctx, JSModuleDef *m)
{
m->status = JS_MODULE_STATUS_EVALUATED;
if (!JS_IsUndefined(m->promise)) {
JSValue value, ret_val;
assert(m->cycle_root == m);
value = JS_UNDEFINED;
ret_val = JS_Call(ctx, m->resolving_funcs[0], JS_UNDEFINED,
1, (JSValueConst *)&value);
JS_FreeValue(ctx, ret_val);
}
}
|
O1
|
c
|
js_set_module_evaluated:
movb $0x5, 0x83(%rsi)
cmpl $0x3, 0xc8(%rsi)
je 0x451c7
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
xorl %ecx, %ecx
leaq 0x30(%rsp), %rdi
movl %ecx, (%rdi)
movl $0x3, %r8d
movq %r8, 0x8(%rdi)
movq 0xd0(%rsi), %rax
movq 0xd8(%rsi), %rdx
movl %ecx, 0x20(%rsp)
movq %r8, 0x28(%rsp)
movups 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rdi, 0x10(%rsp)
movl $0x2, 0x18(%rsp)
movq %rbx, %rdi
movq %rax, %rsi
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x284ca
movq 0x18(%rbx), %rdi
movq %rax, %rsi
callq 0x1d8c6
addq $0x40, %rsp
popq %rbx
retq
|
js_set_module_evaluated:
mov byte ptr [rsi+83h], 5
cmp dword ptr [rsi+0C8h], 3
jz short locret_451C7
push rbx
sub rsp, 40h
mov rbx, rdi
xor ecx, ecx
lea rdi, [rsp+48h+var_18]
mov [rdi], ecx
mov r8d, 3
mov [rdi+8], r8
mov rax, [rsi+0D0h]
mov rdx, [rsi+0D8h]
mov dword ptr [rsp+48h+var_28], ecx
mov qword ptr [rsp+48h+var_28+8], r8
movups xmm0, [rsp+48h+var_28]
movups [rsp+48h+var_48], xmm0
mov [rsp+48h+var_38], rdi
mov [rsp+48h+var_30], 2
mov rdi, rbx
mov rsi, rax
xor ecx, ecx
mov r9d, 1
call JS_CallInternal
mov rdi, [rbx+18h]
mov rsi, rax
call JS_FreeValueRT
add rsp, 40h
pop rbx
locret_451C7:
retn
|
void js_set_module_evaluated(
long long a1,
long long a2,
double a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10)
{
_DWORD *v10; // rax
long long v11; // rdx
__m128 v12; // [rsp+20h] [rbp-28h]
int v13; // [rsp+30h] [rbp-18h] BYREF
long long v14; // [rsp+38h] [rbp-10h]
*(_BYTE *)(a2 + 131) = 5;
if ( *(_DWORD *)(a2 + 200) != 3 )
{
v13 = 0;
v14 = 3LL;
v12.m128_i32[0] = 0;
v12.m128_u64[1] = 3LL;
v10 = (_DWORD *)JS_CallInternal(
a1,
*(_QWORD *)(a2 + 208),
*(_QWORD *)(a2 + 216),
0LL,
3LL,
1LL,
v12,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
v12.m128_i8[0],
3,
(long long)&v13,
2u);
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v10, v11);
}
}
|
js_set_module_evaluated:
MOV byte ptr [RSI + 0x83],0x5
CMP dword ptr [RSI + 0xc8],0x3
JZ 0x001451c7
PUSH RBX
SUB RSP,0x40
MOV RBX,RDI
XOR ECX,ECX
LEA RDI,[RSP + 0x30]
MOV dword ptr [RDI],ECX
MOV R8D,0x3
MOV qword ptr [RDI + 0x8],R8
MOV RAX,qword ptr [RSI + 0xd0]
MOV RDX,qword ptr [RSI + 0xd8]
MOV dword ptr [RSP + 0x20],ECX
MOV qword ptr [RSP + 0x28],R8
MOVUPS XMM0,xmmword ptr [RSP + 0x20]
MOVUPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],RDI
MOV dword ptr [RSP + 0x18],0x2
MOV RDI,RBX
MOV RSI,RAX
XOR ECX,ECX
MOV R9D,0x1
CALL 0x001284ca
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,RAX
CALL 0x0011d8c6
ADD RSP,0x40
POP RBX
LAB_001451c7:
RET
|
void js_set_module_evaluated(long param_1,long param_2)
{
int8 uVar1;
int4 local_18 [2];
int8 local_10;
*(int1 *)(param_2 + 0x83) = 5;
if (*(int *)(param_2 + 200) != 3) {
local_18[0] = 0;
local_10 = 3;
uVar1 = JS_CallInternal(param_1,*(int8 *)(param_2 + 0xd0),*(int8 *)(param_2 + 0xd8),
0,3,1,0,3,local_18,2);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar1);
}
return;
}
|
|
59,544
|
js_set_module_evaluated
|
bluesky950520[P]quickjs/quickjs.c
|
static void js_set_module_evaluated(JSContext *ctx, JSModuleDef *m)
{
m->status = JS_MODULE_STATUS_EVALUATED;
if (!JS_IsUndefined(m->promise)) {
JSValue value, ret_val;
assert(m->cycle_root == m);
value = JS_UNDEFINED;
ret_val = JS_Call(ctx, m->resolving_funcs[0], JS_UNDEFINED,
1, (JSValueConst *)&value);
JS_FreeValue(ctx, ret_val);
}
}
|
O2
|
c
|
js_set_module_evaluated:
movb $0x5, 0x83(%rsi)
cmpl $0x3, 0xc8(%rsi)
je 0x3cd98
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %rcx
andl $0x0, (%rcx)
movq $0x3, 0x8(%rcx)
movq 0xd0(%rsi), %rax
movq 0xd8(%rsi), %rdx
movq %rcx, (%rsp)
pushq $0x3
popq %r8
pushq $0x1
popq %r9
movq %rax, %rsi
xorl %ecx, %ecx
callq 0x21eb6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1801e
addq $0x20, %rsp
popq %rbx
retq
|
js_set_module_evaluated:
mov byte ptr [rsi+83h], 5
cmp dword ptr [rsi+0C8h], 3
jz short locret_3CD98
push rbx
sub rsp, 20h
mov rbx, rdi
lea rcx, [rsp+28h+var_18]
and dword ptr [rcx], 0
mov qword ptr [rcx+8], 3
mov rax, [rsi+0D0h]
mov rdx, [rsi+0D8h]
mov [rsp+28h+var_28], rcx
push 3
pop r8
push 1
pop r9
mov rsi, rax
xor ecx, ecx
call JS_Call
mov rdi, rbx
mov rsi, rax
call JS_FreeValue
add rsp, 20h
pop rbx
locret_3CD98:
retn
|
void js_set_module_evaluated(long long a1, long long a2)
{
long long v2; // rax
long long v3; // rdx
int v4; // [rsp+10h] [rbp-18h] BYREF
long long v5; // [rsp+18h] [rbp-10h]
*(_BYTE *)(a2 + 131) = 5;
if ( *(_DWORD *)(a2 + 200) != 3 )
{
v4 = 0;
v5 = 3LL;
v2 = JS_Call(a1, *(_QWORD *)(a2 + 208), *(_QWORD *)(a2 + 216), 0, 3, 1, (long long)&v4);
JS_FreeValue(a1, v2, v3);
}
}
|
js_set_module_evaluated:
MOV byte ptr [RSI + 0x83],0x5
CMP dword ptr [RSI + 0xc8],0x3
JZ 0x0013cd98
PUSH RBX
SUB RSP,0x20
MOV RBX,RDI
LEA RCX,[RSP + 0x10]
AND dword ptr [RCX],0x0
MOV qword ptr [RCX + 0x8],0x3
MOV RAX,qword ptr [RSI + 0xd0]
MOV RDX,qword ptr [RSI + 0xd8]
MOV qword ptr [RSP],RCX
PUSH 0x3
POP R8
PUSH 0x1
POP R9
MOV RSI,RAX
XOR ECX,ECX
CALL 0x00121eb6
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0011801e
ADD RSP,0x20
POP RBX
LAB_0013cd98:
RET
|
void js_set_module_evaluated(int8 param_1,long param_2)
{
int8 uVar1;
int4 local_18 [2];
int8 local_10;
*(int1 *)(param_2 + 0x83) = 5;
if (*(int *)(param_2 + 200) != 3) {
local_18[0] = 0;
local_10 = 3;
uVar1 = JS_Call(param_1,*(int8 *)(param_2 + 0xd0),*(int8 *)(param_2 + 0xd8),0,3,1,
local_18);
JS_FreeValue(param_1,uVar1);
}
return;
}
|
|
59,545
|
testing::internal::FilePath::RemoveExtension(char const*) const
|
seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest-filepath.cc
|
FilePath FilePath::RemoveExtension(const char* extension) const {
const std::string dot_extension = std::string(".") + extension;
if (String::EndsWithCaseInsensitive(pathname_, dot_extension)) {
return FilePath(
pathname_.substr(0, pathname_.length() - dot_extension.length()));
}
return *this;
}
|
O1
|
cpp
|
testing::internal::FilePath::RemoveExtension(char const*) const:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2afe4(%rip), %rsi # 0x4398d
leaq 0x2afde(%rip), %rdx # 0x4398e
leaq 0x8(%rsp), %rdi
callq 0xfdfe
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x9a70
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x189ee
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x189f5
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x18a24
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x94c0
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x18b22
testb %al, %al
je 0x18a8a
movq 0x8(%r14), %rcx
subq 0x30(%rsp), %rcx
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x94f0
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xf66a
movq %rbx, %rdi
callq 0x19800
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x18aa3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x94c0
jmp 0x18aa3
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xf66a
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x18aba
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x94c0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x18aea
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x94c0
jmp 0x18aea
jmp 0x18ae7
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x18b1a
movq 0x38(%rsp), %rsi
jmp 0x18b0d
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x18b1a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x94c0
jmp 0x18b1a
movq %rax, %rbx
movq %rbx, %rdi
callq 0x99a0
|
_ZNK7testing8internal8FilePath15RemoveExtensionEPKc:
push r15
push r14
push r12
push rbx
sub rsp, 48h
mov r15, rdx
mov r14, rsi
mov rbx, rdi
lea r12, [rsp+68h+var_50]
mov [r12-10h], r12
lea rsi, asc_4398C+1; "."
lea rdx, asc_4398C+2; ""
lea rdi, [rsp+68h+var_60]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+68h+var_60]
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea r15, [rsp+68h+var_30]
mov [r15-10h], r15
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_189EE
mov [rsp+68h+var_40], rdx
mov rdx, [rcx]
mov [rsp+68h+var_30], rdx
jmp short loc_189F5
loc_189EE:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r15], xmm0
loc_189F5:
mov rdx, [rax+8]
mov [rsp+68h+var_38], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov rdi, [rsp+68h+var_60]; void *
cmp rdi, r12
jz short loc_18A24
mov rsi, [rsp+68h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_18A24:
lea rsi, [rsp+68h+var_40]
mov rdi, r14
call _ZN7testing8internal6String23EndsWithCaseInsensitiveERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_; testing::internal::String::EndsWithCaseInsensitive(std::string const&,std::string const&)
test al, al
jz short loc_18A8A
mov rcx, [r14+8]
sub rcx, [rsp+68h+var_38]
lea rdi, [rsp+68h+var_60]
mov rsi, r14
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
lea rax, [rbx+10h]
mov [rbx], rax
mov rsi, [rsp+68h+var_60]
mov rdx, [rsp+68h+var_58]
add rdx, rsi
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
mov rdi, rbx; this
call _ZN7testing8internal8FilePath9NormalizeEv; testing::internal::FilePath::Normalize(void)
mov rdi, [rsp+68h+var_60]; void *
cmp rdi, r12
jz short loc_18AA3
mov rsi, [rsp+68h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_18AA3
loc_18A8A:
lea rax, [rbx+10h]
mov [rbx], rax
mov rsi, [r14]
mov rdx, [r14+8]
add rdx, rsi
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
loc_18AA3:
mov rdi, [rsp+68h+var_40]; void *
cmp rdi, r15
jz short loc_18ABA
mov rsi, [rsp+68h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_18ABA:
mov rax, rbx
add rsp, 48h
pop rbx
pop r12
pop r14
pop r15
retn
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_18AEA
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_18AEA
jmp short $+2
loc_18AE7:
mov rbx, rax
loc_18AEA:
mov rdi, [rsp+arg_20]
cmp rdi, r15
jz short loc_18B1A
mov rsi, [rsp+arg_30]
jmp short loc_18B0D
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_18B1A
mov rsi, [rsp+arg_10]
loc_18B0D:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_18B1A
mov rbx, rax
loc_18B1A:
mov rdi, rbx
call __Unwind_Resume
|
testing::internal::FilePath * testing::internal::FilePath::RemoveExtension(
testing::internal::FilePath *this,
const char *a2,
const char *a3)
{
long long v4; // rax
_OWORD *v5; // rcx
void *v7[2]; // [rsp+8h] [rbp-60h] BYREF
_QWORD v8[2]; // [rsp+18h] [rbp-50h] BYREF
void *v9; // [rsp+28h] [rbp-40h] BYREF
long long v10; // [rsp+30h] [rbp-38h]
_OWORD v11[3]; // [rsp+38h] [rbp-30h] BYREF
v7[0] = v8;
std::string::_M_construct<char const*>(v7, ".", (long long)"");
v4 = std::string::append(v7, a3);
v9 = v11;
v5 = (_OWORD *)(v4 + 16);
if ( *(_QWORD *)v4 == v4 + 16 )
{
v11[0] = *v5;
}
else
{
v9 = *(void **)v4;
*(_QWORD *)&v11[0] = *(_QWORD *)v5;
}
v10 = *(_QWORD *)(v4 + 8);
*(_QWORD *)v4 = v5;
*(_QWORD *)(v4 + 8) = 0LL;
*(_BYTE *)(v4 + 16) = 0;
if ( v7[0] != v8 )
operator delete(v7[0], v8[0] + 1LL);
if ( (unsigned __int8)testing::internal::String::EndsWithCaseInsensitive(a2, &v9) )
{
std::string::substr(v7, a2, 0LL, *((_QWORD *)a2 + 1) - v10);
*(_QWORD *)this = (char *)this + 16;
std::string::_M_construct<char *>(this, (_BYTE *)v7[0], (long long)v7[0] + (unsigned long long)v7[1]);
testing::internal::FilePath::Normalize(this);
if ( v7[0] != v8 )
operator delete(v7[0], v8[0] + 1LL);
}
else
{
*(_QWORD *)this = (char *)this + 16;
std::string::_M_construct<char *>(this, *(_BYTE **)a2, *(_QWORD *)a2 + *((_QWORD *)a2 + 1));
}
if ( v9 != v11 )
operator delete(v9, *(_QWORD *)&v11[0] + 1LL);
return this;
}
|
RemoveExtension:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
LAB_001189a2:
LEA RSI,[0x14398d]
LEA RDX,[0x14398e]
LEA RDI,[RSP + 0x8]
CALL 0x0010fdfe
LAB_001189ba:
LEA RDI,[RSP + 0x8]
MOV RSI,R15
CALL 0x00109a70
LEA R15,[RSP + 0x38]
MOV qword ptr [R15 + -0x10],R15
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x001189ee
MOV qword ptr [RSP + 0x28],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x38],RDX
JMP 0x001189f5
LAB_001189ee:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R15],XMM0
LAB_001189f5:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x30],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x00118a24
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001094c0
LAB_00118a24:
LEA RSI,[RSP + 0x28]
MOV RDI,R14
CALL 0x00118b22
TEST AL,AL
JZ 0x00118a8a
MOV RCX,qword ptr [R14 + 0x8]
SUB RCX,qword ptr [RSP + 0x30]
LAB_00118a3e:
LEA RDI,[RSP + 0x8]
MOV RSI,R14
XOR EDX,EDX
CALL 0x001094f0
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
ADD RDX,RSI
LAB_00118a61:
MOV RDI,RBX
CALL 0x0010f66a
MOV RDI,RBX
CALL 0x00119800
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x00118aa3
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001094c0
JMP 0x00118aa3
LAB_00118a8a:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
ADD RDX,RSI
LAB_00118a9b:
MOV RDI,RBX
CALL 0x0010f66a
LAB_00118aa3:
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R15
JZ 0x00118aba
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x001094c0
LAB_00118aba:
MOV RAX,RBX
ADD RSP,0x48
POP RBX
POP R12
POP R14
POP R15
RET
|
/* testing::internal::FilePath::RemoveExtension(char const*) const */
FilePath * __thiscall testing::internal::FilePath::RemoveExtension(FilePath *this,char *param_1)
{
char cVar1;
long *plVar2;
long *plVar3;
long *local_60;
long local_58;
long local_50 [2];
long *local_40;
long local_38;
long local_30;
long lStack_28;
/* try { // try from 001189a2 to 001189b9 has its CatchHandler @ 00118b17 */
local_60 = local_50;
std::__cxx11::string::_M_construct<char_const*>(&local_60,&DAT_0014398d,&DAT_0014398e);
/* try { // try from 001189ba to 001189c6 has its CatchHandler @ 00118afb */
plVar2 = (long *)std::__cxx11::string::append((char *)&local_60);
plVar3 = plVar2 + 2;
if ((long *)*plVar2 == plVar3) {
local_30 = *plVar3;
lStack_28 = plVar2[3];
local_40 = &local_30;
}
else {
local_30 = *plVar3;
local_40 = (long *)*plVar2;
}
local_38 = plVar2[1];
*plVar2 = (long)plVar3;
plVar2[1] = 0;
*(int1 *)(plVar2 + 2) = 0;
if (local_60 != local_50) {
operator_delete(local_60,local_50[0] + 1);
}
cVar1 = String::EndsWithCaseInsensitive((string *)param_1,(string *)&local_40);
if (cVar1 == '\0') {
*(FilePath **)this = this + 0x10;
/* try { // try from 00118a9b to 00118aa2 has its CatchHandler @ 00118ae5 */
std::__cxx11::string::_M_construct<char*>
(this,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1);
}
else {
/* try { // try from 00118a3e to 00118a4c has its CatchHandler @ 00118ae7 */
std::__cxx11::string::substr((ulong)&local_60,(ulong)param_1);
*(FilePath **)this = this + 0x10;
/* try { // try from 00118a61 to 00118a68 has its CatchHandler @ 00118ac9 */
std::__cxx11::string::_M_construct<char*>(this,local_60,local_58 + (long)local_60);
Normalize(this);
if (local_60 != local_50) {
operator_delete(local_60,local_50[0] + 1);
}
}
if (local_40 != &local_30) {
operator_delete(local_40,local_30 + 1);
}
return this;
}
|
|
59,546
|
void evmone::instr::core::swap<9>(evmone::StackTop)
|
corpus-core[P]colibri-stateless/build_O2/_deps/evmone_external-src/lib/evmone/instructions.hpp
|
inline void swap(StackTop stack) noexcept
{
static_assert(N >= 1 && N <= 16);
// The simple std::swap(stack.top(), stack[N]) is not used to workaround
// clang missed optimization: https://github.com/llvm/llvm-project/issues/59116
// TODO(clang): Check if #59116 bug fix has been released.
auto& a = stack[N];
auto& t = stack.top();
auto t0 = t[0];
auto t1 = t[1];
auto t2 = t[2];
auto t3 = t[3];
t = a;
a[0] = t0;
a[1] = t1;
a[2] = t2;
a[3] = t3;
}
|
O2
|
cpp
|
void evmone::instr::core::swap<9>(evmone::StackTop):
movups -0x1c0(%rdi), %xmm0
movups -0x1b0(%rdi), %xmm1
movups (%rdi), %xmm2
movups 0x10(%rdi), %xmm3
movups %xmm0, (%rdi)
movups %xmm1, 0x10(%rdi)
movups %xmm2, -0x1c0(%rdi)
movups %xmm3, -0x1b0(%rdi)
retq
|
_ZN6evmone5instr4core4swapILi14EEEvNS_8StackTopE:
movups xmm0, xmmword ptr [rdi-1C0h]
movups xmm1, xmmword ptr [rdi-1B0h]
movups xmm2, xmmword ptr [rdi]
movups xmm3, xmmword ptr [rdi+10h]
movups xmmword ptr [rdi], xmm0
movups xmmword ptr [rdi+10h], xmm1
movups xmmword ptr [rdi-1C0h], xmm2
movups xmmword ptr [rdi-1B0h], xmm3
retn
|
void evmone::instr::core::swap<14>(__int128 *a1)
{
__int128 v1; // xmm1
__int128 v2; // xmm2
__int128 v3; // xmm3
v1 = *(a1 - 27);
v2 = *a1;
v3 = a1[1];
*a1 = *(a1 - 28);
a1[1] = v1;
*(a1 - 28) = v2;
*(a1 - 27) = v3;
}
|
swap<14>:
MOVUPS XMM0,xmmword ptr [RDI + -0x1c0]
MOVUPS XMM1,xmmword ptr [RDI + -0x1b0]
MOVUPS XMM2,xmmword ptr [RDI]
MOVUPS XMM3,xmmword ptr [RDI + 0x10]
MOVUPS xmmword ptr [RDI],XMM0
MOVUPS xmmword ptr [RDI + 0x10],XMM1
MOVUPS xmmword ptr [RDI + -0x1c0],XMM2
MOVUPS xmmword ptr [RDI + -0x1b0],XMM3
RET
|
/* void evmone::instr::core::swap<14>(evmone::StackTop) */
void evmone::instr::core::swap<14>(int8 *param_1)
{
int8 uVar1;
int8 uVar2;
int8 uVar3;
int8 uVar4;
uVar1 = *param_1;
uVar2 = param_1[1];
uVar3 = param_1[2];
uVar4 = param_1[3];
*param_1 = param_1[-0x38];
param_1[1] = param_1[-0x37];
param_1[2] = param_1[-0x36];
param_1[3] = param_1[-0x35];
param_1[-0x38] = uVar1;
param_1[-0x37] = uVar2;
param_1[-0x36] = uVar3;
param_1[-0x35] = uVar4;
return;
}
|
|
59,547
|
glfwJoystickPresent
|
untodesu[P]riteg/build_O1/_deps/glfw-src/src/input.c
|
GLFWAPI int glfwJoystickPresent(int jid)
{
_GLFWjoystick* js;
assert(jid >= GLFW_JOYSTICK_1);
assert(jid <= GLFW_JOYSTICK_LAST);
_GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE);
if (jid < 0 || jid > GLFW_JOYSTICK_LAST)
{
_glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick ID %i", jid);
return GLFW_FALSE;
}
js = _glfw.joysticks + jid;
if (!js->present)
return GLFW_FALSE;
return _glfwPlatformPollJoystick(js, _GLFW_POLL_PRESENCE);
}
|
O1
|
c
|
glfwJoystickPresent:
pushq %rax
testl %edi, %edi
js 0x1a5af
cmpl $0x10, %edi
jge 0x1a5ce
leaq 0x8a0c6(%rip), %rax # 0xa4638
cmpl $0x0, (%rax)
je 0x1a59d
movl %edi, %ecx
imulq $0x1fa0, %rcx, %rcx # imm = 0x1FA0
cmpl $0x0, 0x408(%rax,%rcx)
je 0x1a5ab
leaq (%rax,%rcx), %rdi
addq $0x408, %rdi # imm = 0x408
xorl %esi, %esi
popq %rax
jmp 0x28fbe
movl $0x10001, %edi # imm = 0x10001
xorl %esi, %esi
xorl %eax, %eax
callq 0x19081
xorl %eax, %eax
popq %rcx
retq
leaq 0x64b36(%rip), %rdi # 0x7f0ec
leaq 0x64663(%rip), %rsi # 0x7ec20
leaq 0x64b3f(%rip), %rcx # 0x7f103
movl $0x393, %edx # imm = 0x393
callq 0xc540
leaq 0x64b4b(%rip), %rdi # 0x7f120
leaq 0x64644(%rip), %rsi # 0x7ec20
leaq 0x64b20(%rip), %rcx # 0x7f103
movl $0x394, %edx # imm = 0x394
callq 0xc540
|
glfwJoystickPresent:
push rax
test edi, edi
js short loc_1A5AF
cmp edi, 10h
jge short loc_1A5CE
lea rax, _glfw
cmp dword ptr [rax], 0
jz short loc_1A59D
mov ecx, edi
imul rcx, 1FA0h
cmp dword ptr [rax+rcx+408h], 0
jz short loc_1A5AB
lea rdi, [rax+rcx]
add rdi, 408h
xor esi, esi
pop rax
jmp _glfwPlatformPollJoystick
loc_1A59D:
mov edi, 10001h
xor esi, esi
xor eax, eax
call _glfwInputError
loc_1A5AB:
xor eax, eax
pop rcx
retn
loc_1A5AF:
lea rdi, aJidGlfwJoystic; "jid >= GLFW_JOYSTICK_1"
lea rsi, aWorkspaceLlm4b_12; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aIntGlfwjoystic; "int glfwJoystickPresent(int)"
mov edx, 393h
call ___assert_fail
loc_1A5CE:
lea rdi, aJidGlfwJoystic_0; "jid <= GLFW_JOYSTICK_LAST"
lea rsi, aWorkspaceLlm4b_12; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aIntGlfwjoystic; "int glfwJoystickPresent(int)"
mov edx, 394h
call ___assert_fail
|
long long glfwJoystickPresent(int a1)
{
long long v1; // rcx
if ( a1 < 0 )
__assert_fail(
"jid >= GLFW_JOYSTICK_1",
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O1/_deps/glfw-src/src/input.c",
915LL,
"int glfwJoystickPresent(int)");
if ( a1 >= 16 )
__assert_fail(
"jid <= GLFW_JOYSTICK_LAST",
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O1/_deps/glfw-src/src/input.c",
916LL,
"int glfwJoystickPresent(int)");
if ( glfw[0] )
{
v1 = 2024LL * (unsigned int)a1;
if ( glfw[v1 + 258] )
return glfwPlatformPollJoystick(&glfw[v1 + 258], 0LL);
}
else
{
glfwInputError(0x10001u, 0LL);
}
return 0LL;
}
|
glfwJoystickPresent:
PUSH RAX
TEST EDI,EDI
JS 0x0011a5af
CMP EDI,0x10
JGE 0x0011a5ce
LEA RAX,[0x1a4638]
CMP dword ptr [RAX],0x0
JZ 0x0011a59d
MOV ECX,EDI
IMUL RCX,RCX,0x1fa0
CMP dword ptr [RAX + RCX*0x1 + 0x408],0x0
JZ 0x0011a5ab
LEA RDI,[RAX + RCX*0x1]
ADD RDI,0x408
XOR ESI,ESI
POP RAX
JMP 0x00128fbe
LAB_0011a59d:
MOV EDI,0x10001
XOR ESI,ESI
XOR EAX,EAX
CALL 0x00119081
LAB_0011a5ab:
XOR EAX,EAX
POP RCX
RET
LAB_0011a5af:
LEA RDI,[0x17f0ec]
LEA RSI,[0x17ec20]
LEA RCX,[0x17f103]
MOV EDX,0x393
CALL 0x0010c540
LAB_0011a5ce:
LEA RDI,[0x17f120]
LEA RSI,[0x17ec20]
LEA RCX,[0x17f103]
MOV EDX,0x394
CALL 0x0010c540
|
int8 glfwJoystickPresent(uint param_1)
{
int8 uVar1;
if ((int)param_1 < 0) {
/* WARNING: Subroutine does not return */
__assert_fail("jid >= GLFW_JOYSTICK_1",
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O1/_deps/glfw-src/src/input.c"
,0x393,"int glfwJoystickPresent(int)");
}
if ((int)param_1 < 0x10) {
if (_glfw == 0) {
_glfwInputError(0x10001,0);
}
else if ((&DAT_001a4a40)[(ulong)param_1 * 0x7e8] != 0) {
uVar1 = _glfwPlatformPollJoystick(&DAT_001a4a40 + (ulong)param_1 * 0x7e8,0);
return uVar1;
}
return 0;
}
/* WARNING: Subroutine does not return */
__assert_fail("jid <= GLFW_JOYSTICK_LAST",
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O1/_deps/glfw-src/src/input.c"
,0x394,"int glfwJoystickPresent(int)");
}
|
|
59,548
|
ggml_compute_forward_pad
|
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c
|
static void ggml_compute_forward_pad(
const struct ggml_compute_params * params,
struct ggml_tensor * dst) {
const struct ggml_tensor * src0 = dst->src[0];
switch (src0->type) {
case GGML_TYPE_F32:
{
ggml_compute_forward_pad_f32(params, dst);
} break;
default:
{
GGML_ABORT("fatal error");
}
}
}
|
O0
|
c
|
ggml_compute_forward_pad:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x98(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %eax
testl %eax, %eax
jne 0x1899a
jmp 0x1898b
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x34700
jmp 0x189b4
leaq 0x5b1c1(%rip), %rdi # 0x73b62
movl $0x2937, %esi # imm = 0x2937
leaq 0x5b410(%rip), %rdx # 0x73dbd
movb $0x0, %al
callq 0xe270
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
ggml_compute_forward_pad:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
mov rax, [rax+98h]
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov eax, [rax]
test eax, eax
jnz short loc_1899A
jmp short $+2
loc_1898B:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
call ggml_compute_forward_pad_f32
jmp short loc_189B4
loc_1899A:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 2937h
lea rdx, aFatalError; "fatal error"
mov al, 0
call _ggml_abort
loc_189B4:
add rsp, 20h
pop rbp
retn
|
double ggml_compute_forward_pad(long long a1, long long a2)
{
double result; // xmm0_8
if ( **(_DWORD **)(a2 + 152) )
return ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
10551LL,
"fatal error");
ggml_compute_forward_pad_f32(a1, a2);
return result;
}
|
ggml_compute_forward_pad:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x98]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX]
TEST EAX,EAX
JNZ 0x0011899a
JMP 0x0011898b
LAB_0011898b:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x00134700
JMP 0x001189b4
LAB_0011899a:
LEA RDI,[0x173b62]
MOV ESI,0x2937
LEA RDX,[0x173dbd]
MOV AL,0x0
CALL 0x0010e270
LAB_001189b4:
ADD RSP,0x20
POP RBP
RET
|
void ggml_compute_forward_pad(int8 param_1,long param_2)
{
if (**(int **)(param_2 + 0x98) == 0) {
ggml_compute_forward_pad_f32(param_1,param_2);
}
else {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0x2937,"fatal error");
}
return;
}
|
|
59,549
|
my_create
|
eloqsql/mysys/my_create.c
|
File my_create(const char *FileName, int CreateFlags, int access_flags,
myf MyFlags)
{
int fd;
DBUG_ENTER("my_create");
DBUG_PRINT("my",("Name: '%s' CreateFlags: %d AccessFlags: %d MyFlags: %lu",
FileName, CreateFlags, access_flags, MyFlags));
#if defined(_WIN32)
fd= my_win_open(FileName, access_flags | O_CREAT);
#else
fd= open((char *) FileName, access_flags | O_CREAT | O_CLOEXEC,
CreateFlags ? CreateFlags : my_umask);
#endif
if ((MyFlags & MY_SYNC_DIR) && (fd >=0) &&
my_sync_dir_by_file(FileName, MyFlags))
{
my_close(fd, MyFlags);
fd= -1;
}
fd= my_register_filename(fd, FileName, FILE_BY_CREATE,
EE_CANTCREATEFILE, MyFlags);
DBUG_RETURN(fd);
}
|
O0
|
c
|
my_create:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
jmp 0xf3aa8
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movl -0x10(%rbp), %eax
orl $0x40, %eax
orl $0x80000, %eax # imm = 0x80000
movl %eax, -0x20(%rbp)
cmpl $0x0, -0xc(%rbp)
je 0xf3acc
movl -0xc(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xf3ad8
leaq 0x1d74b5(%rip), %rax # 0x2caf88
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
movl -0x20(%rbp), %esi
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %edx
movb $0x0, %al
callq 0x2aa10
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rax
andq $0x8000, %rax # imm = 0x8000
cmpq $0x0, %rax
je 0xf3b27
cmpl $0x0, -0x1c(%rbp)
jl 0xf3b27
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xfe520
cmpl $0x0, %eax
je 0xf3b27
movl -0x1c(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0xfccc0
movl $0xffffffff, -0x1c(%rbp) # imm = 0xFFFFFFFF
movl -0x1c(%rbp), %edi
movq -0x8(%rbp), %rsi
movq -0x18(%rbp), %r8
movl $0x2, %edx
movl $0x1, %ecx
callq 0xfcb60
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x30(%rbp)
movl -0x30(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
|
my_create:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
mov [rbp+var_18], rcx
jmp short $+2
loc_F3AA8:
mov rax, [rbp+var_8]
mov [rbp+var_28], rax
mov eax, [rbp+var_10]
or eax, 40h
or eax, 80000h
mov [rbp+var_20], eax
cmp [rbp+var_C], 0
jz short loc_F3ACC
mov eax, [rbp+var_C]
mov [rbp+var_2C], eax
jmp short loc_F3AD8
loc_F3ACC:
lea rax, my_umask
mov eax, [rax]
mov [rbp+var_2C], eax
loc_F3AD8:
mov esi, [rbp+var_20]
mov rdi, [rbp+var_28]
mov edx, [rbp+var_2C]
mov al, 0
call _open64
mov [rbp+var_1C], eax
mov rax, [rbp+var_18]
and rax, 8000h
cmp rax, 0
jz short loc_F3B27
cmp [rbp+var_1C], 0
jl short loc_F3B27
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_18]
call my_sync_dir_by_file
cmp eax, 0
jz short loc_F3B27
mov edi, [rbp+var_1C]
mov rsi, [rbp+var_18]
call my_close
mov [rbp+var_1C], 0FFFFFFFFh
loc_F3B27:
mov edi, [rbp+var_1C]
mov rsi, [rbp+var_8]
mov r8, [rbp+var_18]
mov edx, 2
mov ecx, 1
call my_register_filename
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
mov [rbp+var_30], eax
mov eax, [rbp+var_30]
add rsp, 30h
pop rbp
retn
|
long long my_create(long long a1, unsigned int a2, int a3, long long a4)
{
unsigned int v5; // [rsp+4h] [rbp-2Ch]
int v6; // [rsp+14h] [rbp-1Ch]
if ( a2 )
v5 = a2;
else
v5 = my_umask;
v6 = open64(a1, a3 | 0x80040u, v5);
if ( (a4 & 0x8000) != 0 && v6 >= 0 && (unsigned int)my_sync_dir_by_file(a1, a4) )
{
my_close((unsigned int)v6, a4);
v6 = -1;
}
return (unsigned int)my_register_filename((unsigned int)v6, a1, 2LL, 1LL, a4);
}
|
my_create:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
MOV qword ptr [RBP + -0x18],RCX
JMP 0x001f3aa8
LAB_001f3aa8:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x28],RAX
MOV EAX,dword ptr [RBP + -0x10]
OR EAX,0x40
OR EAX,0x80000
MOV dword ptr [RBP + -0x20],EAX
CMP dword ptr [RBP + -0xc],0x0
JZ 0x001f3acc
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x001f3ad8
LAB_001f3acc:
LEA RAX,[0x3caf88]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x2c],EAX
LAB_001f3ad8:
MOV ESI,dword ptr [RBP + -0x20]
MOV RDI,qword ptr [RBP + -0x28]
MOV EDX,dword ptr [RBP + -0x2c]
MOV AL,0x0
CALL 0x0012aa10
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x8000
CMP RAX,0x0
JZ 0x001f3b27
CMP dword ptr [RBP + -0x1c],0x0
JL 0x001f3b27
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001fe520
CMP EAX,0x0
JZ 0x001f3b27
MOV EDI,dword ptr [RBP + -0x1c]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001fccc0
MOV dword ptr [RBP + -0x1c],0xffffffff
LAB_001f3b27:
MOV EDI,dword ptr [RBP + -0x1c]
MOV RSI,qword ptr [RBP + -0x8]
MOV R8,qword ptr [RBP + -0x18]
MOV EDX,0x2
MOV ECX,0x1
CALL 0x001fcb60
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x30],EAX
MOV EAX,dword ptr [RBP + -0x30]
ADD RSP,0x30
POP RBP
RET
|
int4 my_create(char *param_1,uint param_2,uint param_3,ulong param_4)
{
int iVar1;
int4 uVar2;
uint local_34;
int local_24;
local_34 = param_2;
if (param_2 == 0) {
local_34 = my_umask;
}
local_24 = open64(param_1,param_3 | 0x80040,(ulong)local_34);
if ((((param_4 & 0x8000) != 0) && (-1 < local_24)) &&
(iVar1 = my_sync_dir_by_file(param_1,param_4), iVar1 != 0)) {
my_close(local_24,param_4);
local_24 = -1;
}
uVar2 = my_register_filename(local_24,param_1,2,1,param_4);
return uVar2;
}
|
|
59,550
|
push_state
|
bluesky950520[P]quickjs/libregexp.c
|
static int push_state(REExecContext *s,
uint8_t **capture,
StackInt *stack, size_t stack_len,
const uint8_t *pc, const uint8_t *cptr,
REExecStateEnum type, size_t count)
{
REExecState *rs;
uint8_t *new_stack;
size_t new_size, i, n;
StackInt *stack_buf;
if (unlikely((s->state_stack_len + 1) > s->state_stack_size)) {
/* reallocate the stack */
new_size = s->state_stack_size * 3 / 2;
if (new_size < 8)
new_size = 8;
new_stack = lre_realloc(s->opaque, s->state_stack, new_size * s->state_size);
if (!new_stack)
return -1;
s->state_stack_size = new_size;
s->state_stack = new_stack;
}
rs = (REExecState *)(s->state_stack + s->state_stack_len * s->state_size);
s->state_stack_len++;
rs->type = type;
rs->count = count;
rs->stack_len = stack_len;
rs->cptr = cptr;
rs->pc = pc;
n = 2 * s->capture_count;
for(i = 0; i < n; i++)
rs->buf[i] = capture[i];
stack_buf = (StackInt *)(rs->buf + n);
for(i = 0; i < stack_len; i++)
stack_buf[i] = stack[i];
return 0;
}
|
O1
|
c
|
push_state:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r13
movq %r8, %r12
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbp
movq 0x40(%rdi), %rdi
movq 0x48(%rbp), %rax
incq %rax
cmpq %rdi, %rax
ja 0x98074
movq 0x48(%rsp), %rcx
movl 0x40(%rsp), %edx
movq 0x38(%rbp), %rsi
movq 0x48(%rbp), %rdi
movq 0x30(%rbp), %r8
imulq %rdi, %r8
leaq (%rsi,%r8), %rax
incq %rdi
movq %rdi, 0x48(%rbp)
movb %dl, (%rsi,%r8)
movq %rcx, 0x8(%rsi,%r8)
movb %bl, 0x1(%rsi,%r8)
movq %r13, 0x10(%rsi,%r8)
movq %r12, 0x18(%rsi,%r8)
movl 0x14(%rbp), %edx
leal (%rdx,%rdx), %ecx
movslq %ecx, %rcx
testl %edx, %edx
je 0x98040
cmpq $0x1, %rcx
movq %rcx, %rdx
adcq $0x0, %rdx
xorl %esi, %esi
movq (%r15,%rsi,8), %rdi
movq %rdi, 0x20(%rax,%rsi,8)
incq %rsi
cmpq %rsi, %rdx
jne 0x9802f
testq %rbx, %rbx
je 0x98063
leaq (%rax,%rcx,8), %rcx
addq $0x20, %rcx
xorl %eax, %eax
xorl %edx, %edx
movq (%r14,%rdx,8), %rsi
movq %rsi, (%rcx,%rdx,8)
incq %rdx
cmpq %rdx, %rbx
jne 0x98051
jmp 0x98065
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x40(%rbp), %rdx
movq %rbp, %rsi
callq 0x139a1
movl %eax, %ecx
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
testb $0x1, %cl
je 0x97fd9
jmp 0x98065
nop
|
push_state:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r13, r9
mov r12, r8
mov rbx, rcx
mov r14, rdx
mov r15, rsi
mov rbp, rdi
mov rdi, [rdi+40h]
mov rax, [rbp+48h]
inc rax
cmp rax, rdi
ja loc_98074
loc_97FD9:
mov rcx, [rsp+38h+arg_8]
mov edx, [rsp+38h+arg_0]
mov rsi, [rbp+38h]
mov rdi, [rbp+48h]
mov r8, [rbp+30h]
imul r8, rdi
lea rax, [rsi+r8]
inc rdi
mov [rbp+48h], rdi
mov [rsi+r8], dl
mov [rsi+r8+8], rcx
mov [rsi+r8+1], bl
mov [rsi+r8+10h], r13
mov [rsi+r8+18h], r12
mov edx, [rbp+14h]
lea ecx, [rdx+rdx]
movsxd rcx, ecx
test edx, edx
jz short loc_98040
cmp rcx, 1
mov rdx, rcx
adc rdx, 0
xor esi, esi
loc_9802F:
mov rdi, [r15+rsi*8]
mov [rax+rsi*8+20h], rdi
inc rsi
cmp rdx, rsi
jnz short loc_9802F
loc_98040:
test rbx, rbx
jz short loc_98063
lea rcx, [rax+rcx*8]
add rcx, 20h ; ' '
xor eax, eax
xor edx, edx
loc_98051:
mov rsi, [r14+rdx*8]
mov [rcx+rdx*8], rsi
inc rdx
cmp rbx, rdx
jnz short loc_98051
jmp short loc_98065
loc_98063:
xor eax, eax
loc_98065:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_98074:
lea rdx, [rbp+40h]
mov rsi, rbp
call push_state_cold_1
mov ecx, eax
mov eax, 0FFFFFFFFh
test cl, 1
jz loc_97FD9
jmp short loc_98065
|
long long push_state(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
char a7,
long long a8)
{
unsigned long long v14; // rdi
long long v15; // rdi
long long v16; // rax
int v17; // edx
long long v18; // rcx
long long v19; // rsi
long long v20; // rcx
long long result; // rax
long long v22; // rdx
char v23; // cl
v14 = *(_QWORD *)(a1 + 64);
if ( *(_QWORD *)(a1 + 72) + 1LL <= v14
|| (v23 = push_state_cold_1(v14, (_QWORD *)a1, (unsigned long long *)(a1 + 64)), result = 0xFFFFFFFFLL, (v23 & 1) == 0) )
{
v15 = *(_QWORD *)(a1 + 72);
v16 = *(_QWORD *)(a1 + 56) + v15 * *(_QWORD *)(a1 + 48);
*(_QWORD *)(a1 + 72) = v15 + 1;
*(_BYTE *)v16 = a7;
*(_QWORD *)(v16 + 8) = a8;
*(_BYTE *)(v16 + 1) = a4;
*(_QWORD *)(v16 + 16) = a6;
*(_QWORD *)(v16 + 24) = a5;
v17 = *(_DWORD *)(a1 + 20);
v18 = 2 * v17;
if ( v17 )
{
v19 = 0LL;
do
{
*(_QWORD *)(v16 + 8 * v19 + 32) = *(_QWORD *)(a2 + 8 * v19);
++v19;
}
while ( (v18 == 0) + v18 != v19 );
}
if ( a4 )
{
v20 = v16 + 8 * v18 + 32;
result = 0LL;
v22 = 0LL;
do
{
*(_QWORD *)(v20 + 8 * v22) = *(_QWORD *)(a3 + 8 * v22);
++v22;
}
while ( a4 != v22 );
}
else
{
return 0LL;
}
}
return result;
}
| |||
59,551
|
push_state
|
bluesky950520[P]quickjs/libregexp.c
|
static int push_state(REExecContext *s,
uint8_t **capture,
StackInt *stack, size_t stack_len,
const uint8_t *pc, const uint8_t *cptr,
REExecStateEnum type, size_t count)
{
REExecState *rs;
uint8_t *new_stack;
size_t new_size, i, n;
StackInt *stack_buf;
if (unlikely((s->state_stack_len + 1) > s->state_stack_size)) {
/* reallocate the stack */
new_size = s->state_stack_size * 3 / 2;
if (new_size < 8)
new_size = 8;
new_stack = lre_realloc(s->opaque, s->state_stack, new_size * s->state_size);
if (!new_stack)
return -1;
s->state_stack_size = new_size;
s->state_stack = new_stack;
}
rs = (REExecState *)(s->state_stack + s->state_stack_len * s->state_size);
s->state_stack_len++;
rs->type = type;
rs->count = count;
rs->stack_len = stack_len;
rs->cptr = cptr;
rs->pc = pc;
n = 2 * s->capture_count;
for(i = 0; i < n; i++)
rs->buf[i] = capture[i];
stack_buf = (StackInt *)(rs->buf + n);
for(i = 0; i < stack_len; i++)
stack_buf[i] = stack[i];
return 0;
}
|
O2
|
c
|
push_state:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r13
movq %r8, %r12
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbp
movq 0x40(%rdi), %rax
movq 0x48(%rdi), %rcx
leaq 0x1(%rcx), %rdx
cmpq %rax, %rdx
ja 0x7ee46
movq 0x38(%rbp), %rax
movq 0x48(%rsp), %rsi
movl 0x40(%rsp), %edi
imulq 0x30(%rbp), %rcx
movq %rdx, 0x48(%rbp)
addq %rcx, %rax
addq $0x20, %rax
movb %dil, -0x20(%rax)
movq %rsi, -0x18(%rax)
movb %bl, -0x1f(%rax)
movq %r13, -0x10(%rax)
movq %r12, -0x8(%rax)
movslq 0x14(%rbp), %rcx
addq %rcx, %rcx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x7ee2c
movq (%r15,%rdx,8), %rsi
movq %rsi, (%rax,%rdx,8)
incq %rdx
jmp 0x7ee1a
leaq (%rax,%rcx,8), %rcx
xorl %eax, %eax
xorl %edx, %edx
cmpq %rdx, %rbx
je 0x7ee92
movq (%r14,%rdx,8), %rsi
movq %rsi, (%rcx,%rdx,8)
incq %rdx
jmp 0x7ee34
leaq (%rax,%rax,2), %rax
shrq %rax
cmpq $0x9, %rax
pushq $0x8
popq %rcx
cmovaeq %rax, %rcx
movq 0x28(%rbp), %rdi
movq 0x38(%rbp), %rsi
movq 0x30(%rbp), %rdx
movq %rcx, (%rsp)
imulq %rcx, %rdx
callq 0x2cba5
testq %rax, %rax
je 0x7ee8f
movq (%rsp), %rcx
movq %rcx, 0x40(%rbp)
movq %rax, 0x38(%rbp)
movq 0x48(%rbp), %rcx
leaq 0x1(%rcx), %rdx
jmp 0x7ede5
pushq $-0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
push_state:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r13, r9
mov r12, r8
mov rbx, rcx
mov r14, rdx
mov r15, rsi
mov rbp, rdi
mov rax, [rdi+40h]
mov rcx, [rdi+48h]
lea rdx, [rcx+1]
cmp rdx, rax
ja short loc_7EE46
mov rax, [rbp+38h]
loc_7EDE5:
mov rsi, [rsp+38h+arg_8]
mov edi, [rsp+38h+arg_0]
imul rcx, [rbp+30h]
mov [rbp+48h], rdx
add rax, rcx
add rax, 20h ; ' '
mov [rax-20h], dil
mov [rax-18h], rsi
mov [rax-1Fh], bl
mov [rax-10h], r13
mov [rax-8], r12
movsxd rcx, dword ptr [rbp+14h]
add rcx, rcx
xor edx, edx
loc_7EE1A:
cmp rcx, rdx
jz short loc_7EE2C
mov rsi, [r15+rdx*8]
mov [rax+rdx*8], rsi
inc rdx
jmp short loc_7EE1A
loc_7EE2C:
lea rcx, [rax+rcx*8]
xor eax, eax
xor edx, edx
loc_7EE34:
cmp rbx, rdx
jz short loc_7EE92
mov rsi, [r14+rdx*8]
mov [rcx+rdx*8], rsi
inc rdx
jmp short loc_7EE34
loc_7EE46:
lea rax, [rax+rax*2]
shr rax, 1
cmp rax, 9
push 8
pop rcx
cmovnb rcx, rax
mov rdi, [rbp+28h]
mov rsi, [rbp+38h]
mov rdx, [rbp+30h]
mov [rsp+38h+var_38], rcx
imul rdx, rcx
call lre_realloc
test rax, rax
jz short loc_7EE8F
mov rcx, [rsp+38h+var_38]
mov [rbp+40h], rcx
mov [rbp+38h], rax
mov rcx, [rbp+48h]
lea rdx, [rcx+1]
jmp loc_7EDE5
loc_7EE8F:
push 0FFFFFFFFFFFFFFFFh
pop rax
loc_7EE92:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long push_state(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
char a7,
long long a8)
{
unsigned long long v12; // rax
long long v13; // rcx
long long v14; // rdx
long long v15; // rax
long long v16; // rcx
long long v17; // rax
long long v18; // rcx
long long i; // rdx
long long v20; // rcx
long long result; // rax
long long j; // rdx
unsigned long long v23; // rax
long long v24; // rcx
long long v25; // [rsp+0h] [rbp-38h]
v12 = *(_QWORD *)(a1 + 64);
v13 = *(_QWORD *)(a1 + 72);
v14 = v13 + 1;
if ( v13 + 1 > v12 )
{
v23 = (3 * v12) >> 1;
v24 = 8LL;
if ( v23 >= 9 )
v24 = v23;
v25 = v24;
v15 = lre_realloc(*(_QWORD *)(a1 + 40), *(_QWORD *)(a1 + 56), v24 * *(_QWORD *)(a1 + 48));
if ( !v15 )
return -1LL;
*(_QWORD *)(a1 + 64) = v25;
*(_QWORD *)(a1 + 56) = v15;
v13 = *(_QWORD *)(a1 + 72);
v14 = v13 + 1;
}
else
{
v15 = *(_QWORD *)(a1 + 56);
}
v16 = *(_QWORD *)(a1 + 48) * v13;
*(_QWORD *)(a1 + 72) = v14;
v17 = v16 + v15 + 32;
*(_BYTE *)(v17 - 32) = a7;
*(_QWORD *)(v17 - 24) = a8;
*(_BYTE *)(v17 - 31) = a4;
*(_QWORD *)(v17 - 16) = a6;
*(_QWORD *)(v17 - 8) = a5;
v18 = 2LL * *(int *)(a1 + 20);
for ( i = 0LL; v18 != i; ++i )
*(_QWORD *)(v17 + 8 * i) = *(_QWORD *)(a2 + 8 * i);
v20 = v17 + 8 * v18;
result = 0LL;
for ( j = 0LL; a4 != j; ++j )
*(_QWORD *)(v20 + 8 * j) = *(_QWORD *)(a3 + 8 * j);
return result;
}
|
push_state:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R13,R9
MOV R12,R8
MOV RBX,RCX
MOV R14,RDX
MOV R15,RSI
MOV RBP,RDI
MOV RAX,qword ptr [RDI + 0x40]
MOV RCX,qword ptr [RDI + 0x48]
LEA RDX,[RCX + 0x1]
CMP RDX,RAX
JA 0x0017ee46
MOV RAX,qword ptr [RBP + 0x38]
LAB_0017ede5:
MOV RSI,qword ptr [RSP + 0x48]
MOV EDI,dword ptr [RSP + 0x40]
IMUL RCX,qword ptr [RBP + 0x30]
MOV qword ptr [RBP + 0x48],RDX
ADD RAX,RCX
ADD RAX,0x20
MOV byte ptr [RAX + -0x20],DIL
MOV qword ptr [RAX + -0x18],RSI
MOV byte ptr [RAX + -0x1f],BL
MOV qword ptr [RAX + -0x10],R13
MOV qword ptr [RAX + -0x8],R12
MOVSXD RCX,dword ptr [RBP + 0x14]
ADD RCX,RCX
XOR EDX,EDX
LAB_0017ee1a:
CMP RCX,RDX
JZ 0x0017ee2c
MOV RSI,qword ptr [R15 + RDX*0x8]
MOV qword ptr [RAX + RDX*0x8],RSI
INC RDX
JMP 0x0017ee1a
LAB_0017ee2c:
LEA RCX,[RAX + RCX*0x8]
XOR EAX,EAX
XOR EDX,EDX
LAB_0017ee34:
CMP RBX,RDX
JZ 0x0017ee92
MOV RSI,qword ptr [R14 + RDX*0x8]
MOV qword ptr [RCX + RDX*0x8],RSI
INC RDX
JMP 0x0017ee34
LAB_0017ee46:
LEA RAX,[RAX + RAX*0x2]
SHR RAX,0x1
CMP RAX,0x9
PUSH 0x8
POP RCX
CMOVNC RCX,RAX
MOV RDI,qword ptr [RBP + 0x28]
MOV RSI,qword ptr [RBP + 0x38]
MOV RDX,qword ptr [RBP + 0x30]
MOV qword ptr [RSP],RCX
IMUL RDX,RCX
CALL 0x0012cba5
TEST RAX,RAX
JZ 0x0017ee8f
MOV RCX,qword ptr [RSP]
MOV qword ptr [RBP + 0x40],RCX
MOV qword ptr [RBP + 0x38],RAX
MOV RCX,qword ptr [RBP + 0x48]
LEA RDX,[RCX + 0x1]
JMP 0x0017ede5
LAB_0017ee8f:
PUSH -0x1
POP RAX
LAB_0017ee92:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
push_state(long param_1,long param_2,long param_3,long param_4,int8 param_5,int8 param_6
,int1 param_7,int8 param_8)
{
int iVar1;
int1 *puVar2;
ulong uVar3;
long lVar4;
ulong uVar5;
long lVar6;
lVar6 = *(long *)(param_1 + 0x48);
uVar5 = lVar6 + 1;
if (*(ulong *)(param_1 + 0x40) < uVar5) {
uVar3 = *(ulong *)(param_1 + 0x40) * 3 >> 1;
uVar5 = 8;
if (8 < uVar3) {
uVar5 = uVar3;
}
lVar4 = lre_realloc(*(int8 *)(param_1 + 0x28),*(int8 *)(param_1 + 0x38),
*(long *)(param_1 + 0x30) * uVar5);
if (lVar4 == 0) {
return 0xffffffffffffffff;
}
*(ulong *)(param_1 + 0x40) = uVar5;
*(long *)(param_1 + 0x38) = lVar4;
lVar6 = *(long *)(param_1 + 0x48);
uVar5 = lVar6 + 1;
}
else {
lVar4 = *(long *)(param_1 + 0x38);
}
*(ulong *)(param_1 + 0x48) = uVar5;
puVar2 = (int1 *)(lVar4 + lVar6 * *(long *)(param_1 + 0x30));
*puVar2 = param_7;
*(int8 *)(puVar2 + 8) = param_8;
puVar2[1] = (char)param_4;
*(int8 *)(puVar2 + 0x10) = param_6;
*(int8 *)(puVar2 + 0x18) = param_5;
iVar1 = *(int *)(param_1 + 0x14);
for (lVar6 = 0; (long)iVar1 * 2 != lVar6; lVar6 = lVar6 + 1) {
*(int8 *)(puVar2 + lVar6 * 8 + 0x20) = *(int8 *)(param_2 + lVar6 * 8);
}
for (lVar6 = 0; param_4 != lVar6; lVar6 = lVar6 + 1) {
*(int8 *)(puVar2 + lVar6 * 8 + (long)iVar1 * 0x10 + 0x20) =
*(int8 *)(param_3 + lVar6 * 8);
}
return 0;
}
|
|
59,552
|
MyCTX_gcm::init(evp_cipher_st const*, int, unsigned char const*, unsigned int, unsigned char const*, unsigned int)
|
eloqsql/mysys_ssl/my_crypt.cc
|
int init(const EVP_CIPHER *cipher, int encrypt, const uchar *key, uint klen,
const uchar *iv, uint ivlen)
{
compile_time_assert(MY_AES_CTX_SIZE >= sizeof(MyCTX_gcm));
int res= MyCTX::init(cipher, encrypt, key, klen, iv, ivlen);
int real_ivlen= EVP_CIPHER_CTX_iv_length(ctx);
aad= iv + real_ivlen;
aadlen= ivlen - real_ivlen;
return res;
}
|
O3
|
cpp
|
MyCTX_gcm::init(evp_cipher_st const*, int, unsigned char const*, unsigned int, unsigned char const*, unsigned int):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r14
movq %rdi, %rbx
movl 0x10(%rbp), %r12d
testq %rsi, %rsi
je 0x2fb55
movl %edx, %r9d
movq 0xc8(%rbx), %rdi
xorl %r13d, %r13d
xorl %edx, %edx
movq %r14, %r8
callq 0x2a770
cmpl $0x1, %eax
pushq $-0x65
popq %r15
cmovel %r13d, %r15d
movq 0xc8(%rbx), %rdi
callq 0x2a390
cltq
addq %rax, %r14
movq %r14, 0xd0(%rbx)
subl %eax, %r12d
movl %r12d, 0xd8(%rbx)
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $-0x66
popq %r15
jmp 0x2fb21
nop
|
_ZN9MyCTX_gcm4initEPK13evp_cipher_stiPKhjS4_j:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, r9
mov rbx, rdi
mov r12d, [rbp+arg_0]
test rsi, rsi
jz short loc_2FB55
mov r9d, edx
mov rdi, [rbx+0C8h]
xor r13d, r13d
xor edx, edx
mov r8, r14
call _EVP_CipherInit_ex
cmp eax, 1
push 0FFFFFFFFFFFFFF9Bh
pop r15
cmovz r15d, r13d
loc_2FB21:
mov rdi, [rbx+0C8h]
call _EVP_CIPHER_CTX_get_iv_length
cdqe
add r14, rax
mov [rbx+0D0h], r14
sub r12d, eax
mov [rbx+0D8h], r12d
mov eax, r15d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_2FB55:
push 0FFFFFFFFFFFFFF9Ah
pop r15
jmp short loc_2FB21
|
long long MyCTX_gcm::init(long long a1, long long a2, unsigned int a3, long long a4, long long a5, long long a6, int a7)
{
long long v7; // rax
unsigned int v9; // r15d
int iv_length; // eax
if ( a2 )
{
v9 = -101;
if ( (unsigned int)EVP_CipherInit_ex(*(_QWORD *)(a1 + 200), a2, 0LL, a4, a6, a3, v7) == 1 )
v9 = 0;
}
else
{
v9 = -102;
}
iv_length = EVP_CIPHER_CTX_get_iv_length(*(_QWORD *)(a1 + 200));
*(_QWORD *)(a1 + 208) = iv_length + a6;
*(_DWORD *)(a1 + 216) = a7 - iv_length;
return v9;
}
|
init:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,R9
MOV RBX,RDI
MOV R12D,dword ptr [RBP + 0x10]
TEST RSI,RSI
JZ 0x0012fb55
MOV R9D,EDX
MOV RDI,qword ptr [RBX + 0xc8]
XOR R13D,R13D
XOR EDX,EDX
MOV R8,R14
CALL 0x0012a770
CMP EAX,0x1
PUSH -0x65
POP R15
CMOVZ R15D,R13D
LAB_0012fb21:
MOV RDI,qword ptr [RBX + 0xc8]
CALL 0x0012a390
CDQE
ADD R14,RAX
MOV qword ptr [RBX + 0xd0],R14
SUB R12D,EAX
MOV dword ptr [RBX + 0xd8],R12D
MOV EAX,R15D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0012fb55:
PUSH -0x66
POP R15
JMP 0x0012fb21
|
/* MyCTX_gcm::init(evp_cipher_st const*, int, unsigned char const*, unsigned int, unsigned char
const*, unsigned int) */
int4 __thiscall
MyCTX_gcm::init(MyCTX_gcm *this,evp_cipher_st *param_1,int param_2,uchar *param_3,uint param_4,
uchar *param_5,uint param_6)
{
int iVar1;
int4 uVar2;
if (param_1 == (evp_cipher_st *)0x0) {
uVar2 = 0xffffff9a;
}
else {
iVar1 = EVP_CipherInit_ex(*(EVP_CIPHER_CTX **)(this + 200),param_1,(ENGINE *)0x0,param_3,param_5
,param_2);
uVar2 = 0xffffff9b;
if (iVar1 == 1) {
uVar2 = 0;
}
}
iVar1 = EVP_CIPHER_CTX_get_iv_length(*(int8 *)(this + 200));
*(uchar **)(this + 0xd0) = param_5 + iVar1;
*(uint *)(this + 0xd8) = param_6 - iVar1;
return uVar2;
}
|
|
59,553
|
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>::begin()
|
monkey531[P]llama/common/./json.hpp
|
iterator begin() noexcept
{
iterator result(this);
result.set_begin();
return result;
}
|
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>::begin():
pushq %rbx
movq %rdi, %rbx
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rsi, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movq %rax, 0x18(%rdi)
movzbl (%rsi), %ecx
cmpl $0x2, %ecx
je 0x7b20a
cmpl $0x1, %ecx
jne 0x7b214
leaq 0x8(%rbx), %rax
movq $0x0, (%rax)
jmp 0x7b218
movq $0x0, 0x10(%rbx)
jmp 0x7b218
movq %rax, 0x18(%rbx)
movq %rbx, %rdi
callq 0x7b282
movq %rbx, %rax
popq %rbx
retq
nop
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5beginEv:
push rbx
mov rbx, rdi
mov rax, 8000000000000000h
mov [rdi], rsi
xorps xmm0, xmm0
movups xmmword ptr [rdi+8], xmm0
mov [rdi+18h], rax
movzx ecx, byte ptr [rsi]
cmp ecx, 2
jz short loc_7B20A
cmp ecx, 1
jnz short loc_7B214
lea rax, [rbx+8]
mov qword ptr [rax], 0
jmp short loc_7B218
loc_7B20A:
mov qword ptr [rbx+10h], 0
jmp short loc_7B218
loc_7B214:
mov [rbx+18h], rax
loc_7B218:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9set_beginEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::set_begin(void)
mov rax, rbx
pop rbx
retn
|
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>::begin(
long long a1,
unsigned __int8 *a2)
{
int v2; // ecx
*(_QWORD *)a1 = a2;
*(_OWORD *)(a1 + 8) = 0LL;
*(_QWORD *)(a1 + 24) = 0x8000000000000000LL;
v2 = *a2;
if ( v2 == 2 )
{
*(_QWORD *)(a1 + 16) = 0LL;
}
else if ( v2 == 1 )
{
*(_QWORD *)(a1 + 8) = 0LL;
}
else
{
*(_QWORD *)(a1 + 24) = 0x8000000000000000LL;
}
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::set_begin(a1);
return a1;
}
|
begin:
PUSH RBX
MOV RBX,RDI
MOV RAX,-0x8000000000000000
MOV qword ptr [RDI],RSI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x8],XMM0
MOV qword ptr [RDI + 0x18],RAX
MOVZX ECX,byte ptr [RSI]
CMP ECX,0x2
JZ 0x0017b20a
CMP ECX,0x1
JNZ 0x0017b214
LEA RAX,[RBX + 0x8]
MOV qword ptr [RAX],0x0
JMP 0x0017b218
LAB_0017b20a:
MOV qword ptr [RBX + 0x10],0x0
JMP 0x0017b218
LAB_0017b214:
MOV qword ptr [RBX + 0x18],RAX
LAB_0017b218:
MOV RDI,RBX
CALL 0x0017b282
MOV RAX,RBX
POP RBX
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>::begin() */
void nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::begin(void)
{
char *in_RSI;
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*in_RDI;
*(char **)in_RDI = in_RSI;
*(int8 *)(in_RDI + 8) = 0;
*(int8 *)(in_RDI + 0x10) = 0;
*(int8 *)(in_RDI + 0x18) = 0x8000000000000000;
if (*in_RSI == '\x02') {
*(int8 *)(in_RDI + 0x10) = 0;
}
else if (*in_RSI == '\x01') {
*(int8 *)(in_RDI + 8) = 0;
}
else {
*(int8 *)(in_RDI + 0x18) = 0x8000000000000000;
}
detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::set_begin(in_RDI);
return;
}
|
|
59,554
|
my_error_unregister_all
|
eloqsql/mysys/my_error.c
|
void my_error_unregister_all(void)
{
struct my_err_head *cursor, *saved_next;
for (cursor= my_errmsgs_globerrs.meh_next; cursor != NULL; cursor= saved_next)
{
/* We need this ptr, but we're about to free its container, so save it. */
saved_next= cursor->meh_next;
my_free(cursor);
}
my_errmsgs_globerrs.meh_next= NULL; /* Freed in first iteration above. */
my_errmsgs_list= &my_errmsgs_globerrs;
}
|
O3
|
c
|
my_error_unregister_all:
movq 0x2e76c3(%rip), %rdi # 0x3857b0
testq %rdi, %rdi
je 0x9e10e
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rbx
callq 0x9fbaa
movq %rbx, %rdi
testq %rbx, %rbx
jne 0x9e0f8
addq $0x8, %rsp
popq %rbx
popq %rbp
movq $0x0, 0x2e7697(%rip) # 0x3857b0
leaq 0x2e7690(%rip), %rax # 0x3857b0
movq %rax, 0x2e7681(%rip) # 0x3857a8
retq
|
my_error_unregister_all:
mov rdi, cs:my_errmsgs_globerrs
test rdi, rdi
jz short loc_9E10E
push rbp
mov rbp, rsp
push rbx
push rax
loc_9E0F8:
mov rbx, [rdi]
call my_free
mov rdi, rbx
test rbx, rbx
jnz short loc_9E0F8
add rsp, 8
pop rbx
pop rbp
loc_9E10E:
mov cs:my_errmsgs_globerrs, 0
lea rax, my_errmsgs_globerrs
mov cs:my_errmsgs_list, rax
retn
|
long long *my_error_unregister_all()
{
_QWORD *v0; // rdi
_QWORD *v1; // rbx
long long *result; // rax
v0 = (_QWORD *)my_errmsgs_globerrs;
if ( my_errmsgs_globerrs )
{
do
{
v1 = (_QWORD *)*v0;
my_free(v0);
v0 = v1;
}
while ( v1 );
}
my_errmsgs_globerrs = 0LL;
result = &my_errmsgs_globerrs;
my_errmsgs_list = &my_errmsgs_globerrs;
return result;
}
|
my_error_unregister_all:
MOV RDI,qword ptr [0x004857b0]
TEST RDI,RDI
JZ 0x0019e10e
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
LAB_0019e0f8:
MOV RBX,qword ptr [RDI]
CALL 0x0019fbaa
MOV RDI,RBX
TEST RBX,RBX
JNZ 0x0019e0f8
ADD RSP,0x8
POP RBX
POP RBP
LAB_0019e10e:
MOV qword ptr [0x004857b0],0x0
LEA RAX,[0x4857b0]
MOV qword ptr [0x004857a8],RAX
RET
|
void my_error_unregister_all(void)
{
long *plVar1;
plVar1 = my_errmsgs_globerrs;
if (my_errmsgs_globerrs != (long *)0x0) {
do {
plVar1 = (long *)*plVar1;
my_free();
} while (plVar1 != (long *)0x0);
}
my_errmsgs_globerrs = (long *)0x0;
my_errmsgs_list = (int *)&my_errmsgs_globerrs;
return;
}
|
|
59,555
|
bf_exp_internal
|
bluesky950520[P]quickjs/libbf.c
|
static int bf_exp_internal(bf_t *r, const bf_t *a, limb_t prec, void *opaque)
{
bf_context_t *s = r->ctx;
bf_t T_s, *T = &T_s;
slimb_t n, K, l, i, prec1;
assert(r != a);
/* argument reduction:
T = a - n*log(2) with 0 <= T < log(2) and n integer.
*/
bf_init(s, T);
if (a->expn <= -1) {
/* 0 <= abs(a) <= 0.5 */
if (a->sign)
n = -1;
else
n = 0;
} else {
bf_const_log2(T, LIMB_BITS, BF_RNDZ);
bf_div(T, a, T, LIMB_BITS, BF_RNDD);
bf_get_limb(&n, T, 0);
}
K = bf_isqrt((prec + 1) / 2);
l = (prec - 1) / K + 1;
/* XXX: precision analysis ? */
prec1 = prec + (K + 2 * l + 18) + K + 8;
if (a->expn > 0)
prec1 += a->expn;
// printf("n=%ld K=%ld prec1=%ld\n", n, K, prec1);
bf_const_log2(T, prec1, BF_RNDF);
bf_mul_si(T, T, n, prec1, BF_RNDN);
bf_sub(T, a, T, prec1, BF_RNDN);
/* reduce the range of T */
bf_mul_2exp(T, -K, BF_PREC_INF, BF_RNDZ);
/* Taylor expansion around zero :
1 + x + x^2/2 + ... + x^n/n!
= (1 + x * (1 + x/2 * (1 + ... (x/n))))
*/
{
bf_t U_s, *U = &U_s;
bf_init(s, U);
bf_set_ui(r, 1);
for(i = l ; i >= 1; i--) {
bf_set_ui(U, i);
bf_div(U, T, U, prec1, BF_RNDN);
bf_mul(r, r, U, prec1, BF_RNDN);
bf_add_si(r, r, 1, prec1, BF_RNDN);
}
bf_delete(U);
}
bf_delete(T);
/* undo the range reduction */
for(i = 0; i < K; i++) {
bf_mul(r, r, r, prec1, BF_RNDN | BF_FLAG_EXT_EXP);
}
/* undo the argument reduction */
bf_mul_2exp(r, n, BF_PREC_INF, BF_RNDZ | BF_FLAG_EXT_EXP);
return BF_ST_INEXACT;
}
|
O0
|
c
|
bf_exp_internal:
subq $0xb8, %rsp
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq %rdx, 0xa0(%rsp)
movq %rcx, 0x98(%rsp)
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x90(%rsp)
leaq 0x68(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x90(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0xe4cb0
movq 0xa8(%rsp), %rax
cmpq $-0x1, 0x10(%rax)
jg 0xed3e9
movq 0xa8(%rsp), %rax
cmpl $0x0, 0x8(%rax)
je 0xed3de
movq $-0x1, 0x58(%rsp)
jmp 0xed3e7
movq $0x0, 0x58(%rsp)
jmp 0xed430
movq 0x60(%rsp), %rdi
movl $0x40, %esi
movl $0x1, %edx
callq 0xec950
movq 0x60(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq 0x60(%rsp), %rdx
movl $0x40, %ecx
movl $0x2, %r8d
callq 0xe9110
movq 0x60(%rsp), %rsi
leaq 0x58(%rsp), %rdi
xorl %edx, %edx
callq 0xe8200
movq 0xa0(%rsp), %rdi
addq $0x1, %rdi
shrq %rdi
callq 0xe8230
movq %rax, 0x50(%rsp)
movq 0xa0(%rsp), %rax
subq $0x1, %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq 0x50(%rsp)
addq $0x1, %rax
movq %rax, 0x48(%rsp)
movq 0xa0(%rsp), %rax
movq 0x50(%rsp), %rcx
movq 0x48(%rsp), %rdx
shlq %rdx
addq %rdx, %rcx
addq $0x12, %rcx
addq %rcx, %rax
addq 0x50(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x38(%rsp)
movq 0xa8(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jle 0xed4b9
movq 0xa8(%rsp), %rax
movq 0x10(%rax), %rax
addq 0x38(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x60(%rsp), %rdi
movq 0x38(%rsp), %rsi
movl $0x6, %edx
callq 0xec950
movq 0x60(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq 0x38(%rsp), %rcx
xorl %r8d, %r8d
callq 0xe95a0
movq 0x60(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq 0x60(%rsp), %rdx
movq 0x38(%rsp), %rcx
xorl %r8d, %r8d
callq 0xe8040
movq 0x60(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
subq 0x50(%rsp), %rsi
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %ecx
callq 0xe7850
leaq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x90(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0xe4cb0
movq 0xb0(%rsp), %rdi
movl $0x1, %esi
callq 0xe4de0
movq 0x48(%rsp), %rax
movq %rax, 0x40(%rsp)
cmpq $0x1, 0x40(%rsp)
jl 0xed5f0
movq 0x8(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0xe4de0
movq 0x8(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x38(%rsp), %rcx
xorl %r8d, %r8d
callq 0xe9110
movq 0xb0(%rsp), %rdi
movq 0xb0(%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x38(%rsp), %rcx
xorl %r8d, %r8d
callq 0xe73c0
movq 0xb0(%rsp), %rdi
movq 0xb0(%rsp), %rsi
movq 0x38(%rsp), %rcx
movl $0x1, %edx
xorl %r8d, %r8d
callq 0xe7fc0
movq 0x40(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x40(%rsp)
jmp 0xed562
movq 0x8(%rsp), %rdi
callq 0xe8110
movq 0x60(%rsp), %rdi
callq 0xe8110
movq $0x0, 0x40(%rsp)
movq 0x40(%rsp), %rax
cmpq 0x50(%rsp), %rax
jge 0xed651
movq 0xb0(%rsp), %rdi
movq 0xb0(%rsp), %rsi
movq 0xb0(%rsp), %rdx
movq 0x38(%rsp), %rcx
movl $0x7e0, %r8d # imm = 0x7E0
callq 0xe73c0
movq 0x40(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x40(%rsp)
jmp 0xed60d
movq 0xb0(%rsp), %rdi
movq 0x58(%rsp), %rsi
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x7e1, %ecx # imm = 0x7E1
callq 0xe7850
movl $0x10, %eax
addq $0xb8, %rsp
retq
nop
|
bf_exp_internal:
sub rsp, 0B8h
mov [rsp+0B8h+var_8], rdi
mov [rsp+0B8h+var_10], rsi
mov [rsp+0B8h+var_18], rdx
mov [rsp+0B8h+var_20], rcx
mov rax, [rsp+0B8h+var_8]
mov rax, [rax]
mov [rsp+0B8h+var_28], rax
lea rax, [rsp+0B8h+var_50]
mov [rsp+0B8h+var_58], rax
mov rdi, [rsp+0B8h+var_28]
mov rsi, [rsp+0B8h+var_58]
call bf_init
mov rax, [rsp+0B8h+var_10]
cmp qword ptr [rax+10h], 0FFFFFFFFFFFFFFFFh
jg short loc_ED3E9
mov rax, [rsp+0B8h+var_10]
cmp dword ptr [rax+8], 0
jz short loc_ED3DE
mov [rsp+0B8h+var_60], 0FFFFFFFFFFFFFFFFh
jmp short loc_ED3E7
loc_ED3DE:
mov [rsp+0B8h+var_60], 0
loc_ED3E7:
jmp short loc_ED430
loc_ED3E9:
mov rdi, [rsp+0B8h+var_58]
mov esi, 40h ; '@'
mov edx, 1
call bf_const_log2
mov rdi, [rsp+0B8h+var_58]
mov rsi, [rsp+0B8h+var_10]
mov rdx, [rsp+0B8h+var_58]
mov ecx, 40h ; '@'
mov r8d, 2
call bf_div
mov rsi, [rsp+0B8h+var_58]
lea rdi, [rsp+0B8h+var_60]
xor edx, edx
call bf_get_limb
loc_ED430:
mov rdi, [rsp+0B8h+var_18]
add rdi, 1
shr rdi, 1
call bf_isqrt
mov [rsp+0B8h+var_68], rax
mov rax, [rsp+0B8h+var_18]
sub rax, 1
xor ecx, ecx
mov edx, ecx
div [rsp+0B8h+var_68]
add rax, 1
mov [rsp+0B8h+var_70], rax
mov rax, [rsp+0B8h+var_18]
mov rcx, [rsp+0B8h+var_68]
mov rdx, [rsp+0B8h+var_70]
shl rdx, 1
add rcx, rdx
add rcx, 12h
add rax, rcx
add rax, [rsp+0B8h+var_68]
add rax, 8
mov [rsp+0B8h+var_80], rax
mov rax, [rsp+0B8h+var_10]
cmp qword ptr [rax+10h], 0
jle short loc_ED4B9
mov rax, [rsp+0B8h+var_10]
mov rax, [rax+10h]
add rax, [rsp+0B8h+var_80]
mov [rsp+0B8h+var_80], rax
loc_ED4B9:
mov rdi, [rsp+0B8h+var_58]
mov rsi, [rsp+0B8h+var_80]
mov edx, 6
call bf_const_log2
mov rdi, [rsp+0B8h+var_58]
mov rsi, [rsp+0B8h+var_58]
mov rdx, [rsp+0B8h+var_60]
mov rcx, [rsp+0B8h+var_80]
xor r8d, r8d
call bf_mul_si
mov rdi, [rsp+0B8h+var_58]
mov rsi, [rsp+0B8h+var_10]
mov rdx, [rsp+0B8h+var_58]
mov rcx, [rsp+0B8h+var_80]
xor r8d, r8d
call bf_sub
mov rdi, [rsp+0B8h+var_58]
xor eax, eax
mov esi, eax
sub rsi, [rsp+0B8h+var_68]
mov rdx, 3FFFFFFFFFFFFFFFh
mov ecx, 1
call bf_mul_2exp
lea rax, [rsp+0B8h+var_A8]
mov [rsp+0B8h+var_B0], rax
mov rdi, [rsp+0B8h+var_28]
mov rsi, [rsp+0B8h+var_B0]
call bf_init
mov rdi, [rsp+0B8h+var_8]
mov esi, 1
call bf_set_ui
mov rax, [rsp+0B8h+var_70]
mov [rsp+0B8h+var_78], rax
loc_ED562:
cmp [rsp+0B8h+var_78], 1
jl loc_ED5F0
mov rdi, [rsp+0B8h+var_B0]
mov rsi, [rsp+0B8h+var_78]
call bf_set_ui
mov rdi, [rsp+0B8h+var_B0]
mov rsi, [rsp+0B8h+var_58]
mov rdx, [rsp+0B8h+var_B0]
mov rcx, [rsp+0B8h+var_80]
xor r8d, r8d
call bf_div
mov rdi, [rsp+0B8h+var_8]
mov rsi, [rsp+0B8h+var_8]
mov rdx, [rsp+0B8h+var_B0]
mov rcx, [rsp+0B8h+var_80]
xor r8d, r8d
call bf_mul
mov rdi, [rsp+0B8h+var_8]
mov rsi, [rsp+0B8h+var_8]
mov rcx, [rsp+0B8h+var_80]
mov edx, 1
xor r8d, r8d
call bf_add_si
mov rax, [rsp+0B8h+var_78]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rsp+0B8h+var_78], rax
jmp loc_ED562
loc_ED5F0:
mov rdi, [rsp+0B8h+var_B0]
call bf_delete_0
mov rdi, [rsp+0B8h+var_58]
call bf_delete_0
mov [rsp+0B8h+var_78], 0
loc_ED60D:
mov rax, [rsp+0B8h+var_78]
cmp rax, [rsp+0B8h+var_68]
jge short loc_ED651
mov rdi, [rsp+0B8h+var_8]
mov rsi, [rsp+0B8h+var_8]
mov rdx, [rsp+0B8h+var_8]
mov rcx, [rsp+0B8h+var_80]
mov r8d, 7E0h
call bf_mul
mov rax, [rsp+0B8h+var_78]
add rax, 1
mov [rsp+0B8h+var_78], rax
jmp short loc_ED60D
loc_ED651:
mov rdi, [rsp+0B8h+var_8]
mov rsi, [rsp+0B8h+var_60]
mov rdx, 3FFFFFFFFFFFFFFFh
mov ecx, 7E1h
call bf_mul_2exp
mov eax, 10h
add rsp, 0B8h
retn
|
long long bf_exp_internal(long long *a1, long long *a2, long long a3, long long a4)
{
long long *v4; // rsi
long long v5; // rdx
long long v6; // rcx
long long v7; // r8
long long v8; // r9
long long v9; // rdx
long long v10; // rcx
long long v11; // r8
long long v12; // r9
long long v14[5]; // [rsp+10h] [rbp-A8h] BYREF
long long v15; // [rsp+38h] [rbp-80h]
long long i; // [rsp+40h] [rbp-78h]
unsigned long long v17; // [rsp+48h] [rbp-70h]
unsigned long long v18; // [rsp+50h] [rbp-68h]
long long v19; // [rsp+58h] [rbp-60h] BYREF
long long *v20; // [rsp+60h] [rbp-58h]
_BYTE v21[40]; // [rsp+68h] [rbp-50h] BYREF
long long v22; // [rsp+90h] [rbp-28h]
long long v23; // [rsp+98h] [rbp-20h]
long long v24; // [rsp+A0h] [rbp-18h]
long long *v25; // [rsp+A8h] [rbp-10h]
long long *v26; // [rsp+B0h] [rbp-8h]
v26 = a1;
v25 = a2;
v24 = a3;
v23 = a4;
v22 = *a1;
v20 = (long long *)v21;
bf_init(v22, (long long)v21);
if ( v25[2] > -1 )
{
bf_const_log2(v20, 64LL, 1u);
bf_div(v20, v25, v20, 64LL, 2u);
bf_get_limb((long long)&v19, (long long)v20, 0);
}
else if ( *((_DWORD *)v25 + 2) )
{
v19 = -1LL;
}
else
{
v19 = 0LL;
}
v18 = bf_isqrt((unsigned long long)(v24 + 1) >> 1);
v17 = (v24 - 1) / v18 + 1;
v15 = v18 + 2 * v17 + v18 + 18 + v24 + 8;
if ( v25[2] > 0 )
v15 += v25[2];
bf_const_log2(v20, v15, 6u);
bf_mul_si(v20, (long long)v20, v19, v15, 0);
bf_sub((long long)v20, (long long)v25, (long long)v20, v15, 0);
bf_mul_2exp(v20, -(long long)v18, 0x3FFFFFFFFFFFFFFFLL, 1u);
bf_init(v22, (long long)v14);
v4 = (_QWORD *)(&dword_0 + 1);
bf_set_ui((long long)v26, 1LL);
for ( i = v17; i >= 1; --i )
{
bf_set_ui((long long)v14, i);
bf_div(v14, v20, v14, v15, 0);
bf_mul(v26, (long long)v26, (long long)v14, v15, 0);
v4 = v26;
bf_add_si(v26, (long long)v26, 1LL, v15, 0);
}
bf_delete_0(v14, (long long)v4, v5, v6, v7, v8);
bf_delete_0(v20, (long long)v4, v9, v10, v11, v12);
for ( i = 0LL; i < (long long)v18; ++i )
bf_mul(v26, (long long)v26, (long long)v26, v15, 0x7E0u);
bf_mul_2exp(v26, v19, 0x3FFFFFFFFFFFFFFFLL, 0x7E1u);
return 16LL;
}
|
bf_exp_internal:
SUB RSP,0xb8
MOV qword ptr [RSP + 0xb0],RDI
MOV qword ptr [RSP + 0xa8],RSI
MOV qword ptr [RSP + 0xa0],RDX
MOV qword ptr [RSP + 0x98],RCX
MOV RAX,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x90],RAX
LEA RAX,[RSP + 0x68]
MOV qword ptr [RSP + 0x60],RAX
MOV RDI,qword ptr [RSP + 0x90]
MOV RSI,qword ptr [RSP + 0x60]
CALL 0x001e4cb0
MOV RAX,qword ptr [RSP + 0xa8]
CMP qword ptr [RAX + 0x10],-0x1
JG 0x001ed3e9
MOV RAX,qword ptr [RSP + 0xa8]
CMP dword ptr [RAX + 0x8],0x0
JZ 0x001ed3de
MOV qword ptr [RSP + 0x58],-0x1
JMP 0x001ed3e7
LAB_001ed3de:
MOV qword ptr [RSP + 0x58],0x0
LAB_001ed3e7:
JMP 0x001ed430
LAB_001ed3e9:
MOV RDI,qword ptr [RSP + 0x60]
MOV ESI,0x40
MOV EDX,0x1
CALL 0x001ec950
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0xa8]
MOV RDX,qword ptr [RSP + 0x60]
MOV ECX,0x40
MOV R8D,0x2
CALL 0x001e9110
MOV RSI,qword ptr [RSP + 0x60]
LEA RDI,[RSP + 0x58]
XOR EDX,EDX
CALL 0x001e8200
LAB_001ed430:
MOV RDI,qword ptr [RSP + 0xa0]
ADD RDI,0x1
SHR RDI,0x1
CALL 0x001e8230
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [RSP + 0xa0]
SUB RAX,0x1
XOR ECX,ECX
MOV EDX,ECX
DIV qword ptr [RSP + 0x50]
ADD RAX,0x1
MOV qword ptr [RSP + 0x48],RAX
MOV RAX,qword ptr [RSP + 0xa0]
MOV RCX,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x48]
SHL RDX,0x1
ADD RCX,RDX
ADD RCX,0x12
ADD RAX,RCX
ADD RAX,qword ptr [RSP + 0x50]
ADD RAX,0x8
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0xa8]
CMP qword ptr [RAX + 0x10],0x0
JLE 0x001ed4b9
MOV RAX,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RAX + 0x10]
ADD RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x38],RAX
LAB_001ed4b9:
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x38]
MOV EDX,0x6
CALL 0x001ec950
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0x58]
MOV RCX,qword ptr [RSP + 0x38]
XOR R8D,R8D
CALL 0x001e95a0
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0xa8]
MOV RDX,qword ptr [RSP + 0x60]
MOV RCX,qword ptr [RSP + 0x38]
XOR R8D,R8D
CALL 0x001e8040
MOV RDI,qword ptr [RSP + 0x60]
XOR EAX,EAX
MOV ESI,EAX
SUB RSI,qword ptr [RSP + 0x50]
MOV RDX,0x3fffffffffffffff
MOV ECX,0x1
CALL 0x001e7850
LEA RAX,[RSP + 0x10]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x90]
MOV RSI,qword ptr [RSP + 0x8]
CALL 0x001e4cb0
MOV RDI,qword ptr [RSP + 0xb0]
MOV ESI,0x1
CALL 0x001e4de0
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x40],RAX
LAB_001ed562:
CMP qword ptr [RSP + 0x40],0x1
JL 0x001ed5f0
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x40]
CALL 0x001e4de0
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x38]
XOR R8D,R8D
CALL 0x001e9110
MOV RDI,qword ptr [RSP + 0xb0]
MOV RSI,qword ptr [RSP + 0xb0]
MOV RDX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x38]
XOR R8D,R8D
CALL 0x001e73c0
MOV RDI,qword ptr [RSP + 0xb0]
MOV RSI,qword ptr [RSP + 0xb0]
MOV RCX,qword ptr [RSP + 0x38]
MOV EDX,0x1
XOR R8D,R8D
CALL 0x001e7fc0
MOV RAX,qword ptr [RSP + 0x40]
ADD RAX,-0x1
MOV qword ptr [RSP + 0x40],RAX
JMP 0x001ed562
LAB_001ed5f0:
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001e8110
MOV RDI,qword ptr [RSP + 0x60]
CALL 0x001e8110
MOV qword ptr [RSP + 0x40],0x0
LAB_001ed60d:
MOV RAX,qword ptr [RSP + 0x40]
CMP RAX,qword ptr [RSP + 0x50]
JGE 0x001ed651
MOV RDI,qword ptr [RSP + 0xb0]
MOV RSI,qword ptr [RSP + 0xb0]
MOV RDX,qword ptr [RSP + 0xb0]
MOV RCX,qword ptr [RSP + 0x38]
MOV R8D,0x7e0
CALL 0x001e73c0
MOV RAX,qword ptr [RSP + 0x40]
ADD RAX,0x1
MOV qword ptr [RSP + 0x40],RAX
JMP 0x001ed60d
LAB_001ed651:
MOV RDI,qword ptr [RSP + 0xb0]
MOV RSI,qword ptr [RSP + 0x58]
MOV RDX,0x3fffffffffffffff
MOV ECX,0x7e1
CALL 0x001e7850
MOV EAX,0x10
ADD RSP,0xb8
RET
|
int8 bf_exp_internal(int8 *param_1,long param_2,long param_3,int8 param_4)
{
int1 local_a8 [40];
long local_80;
long local_78;
long local_70;
ulong local_68;
int8 local_60;
int1 *local_58;
int1 local_50 [40];
int8 local_28;
int8 local_20;
long local_18;
long local_10;
int8 *local_8;
local_28 = *param_1;
local_58 = local_50;
local_20 = param_4;
local_18 = param_3;
local_10 = param_2;
local_8 = param_1;
bf_init(local_28,local_58);
if (*(ulong *)(local_10 + 0x10) < 0x8000000000000000) {
bf_const_log2(local_58,0x40,1);
bf_div(local_58,local_10,local_58,0x40,2);
bf_get_limb(&local_60,local_58,0);
}
else if (*(int *)(local_10 + 8) == 0) {
local_60 = 0;
}
else {
local_60 = 0xffffffffffffffff;
}
local_68 = bf_isqrt(local_18 + 1U >> 1);
local_70 = (local_18 - 1U) / local_68 + 1;
local_80 = local_18 + local_68 * 2 + local_70 * 2 + 0x1a;
if (0 < *(long *)(local_10 + 0x10)) {
local_80 = *(long *)(local_10 + 0x10) + local_80;
}
bf_const_log2(local_58,local_80,6);
bf_mul_si(local_58,local_58,local_60,local_80,0);
bf_sub(local_58,local_10,local_58,local_80,0);
bf_mul_2exp(local_58,-local_68,0x3fffffffffffffff,1);
bf_init(local_28,local_a8);
bf_set_ui(local_8,1);
for (local_78 = local_70; 0 < local_78; local_78 = local_78 + -1) {
bf_set_ui(local_a8,local_78);
bf_div(local_a8,local_58,local_a8,local_80,0);
bf_mul(local_8,local_8,local_a8,local_80);
bf_add_si(local_8,local_8,1,local_80);
}
bf_delete(local_a8);
bf_delete(local_58);
for (local_78 = 0; local_78 < (long)local_68; local_78 = local_78 + 1) {
bf_mul(local_8,local_8,local_8,local_80,0x7e0);
}
bf_mul_2exp(local_8,local_60,0x3fffffffffffffff,0x7e1);
return 0x10;
}
|
|
59,556
|
bf_exp_internal
|
bluesky950520[P]quickjs/libbf.c
|
static int bf_exp_internal(bf_t *r, const bf_t *a, limb_t prec, void *opaque)
{
bf_context_t *s = r->ctx;
bf_t T_s, *T = &T_s;
slimb_t n, K, l, i, prec1;
assert(r != a);
/* argument reduction:
T = a - n*log(2) with 0 <= T < log(2) and n integer.
*/
bf_init(s, T);
if (a->expn <= -1) {
/* 0 <= abs(a) <= 0.5 */
if (a->sign)
n = -1;
else
n = 0;
} else {
bf_const_log2(T, LIMB_BITS, BF_RNDZ);
bf_div(T, a, T, LIMB_BITS, BF_RNDD);
bf_get_limb(&n, T, 0);
}
K = bf_isqrt((prec + 1) / 2);
l = (prec - 1) / K + 1;
/* XXX: precision analysis ? */
prec1 = prec + (K + 2 * l + 18) + K + 8;
if (a->expn > 0)
prec1 += a->expn;
// printf("n=%ld K=%ld prec1=%ld\n", n, K, prec1);
bf_const_log2(T, prec1, BF_RNDF);
bf_mul_si(T, T, n, prec1, BF_RNDN);
bf_sub(T, a, T, prec1, BF_RNDN);
/* reduce the range of T */
bf_mul_2exp(T, -K, BF_PREC_INF, BF_RNDZ);
/* Taylor expansion around zero :
1 + x + x^2/2 + ... + x^n/n!
= (1 + x * (1 + x/2 * (1 + ... (x/n))))
*/
{
bf_t U_s, *U = &U_s;
bf_init(s, U);
bf_set_ui(r, 1);
for(i = l ; i >= 1; i--) {
bf_set_ui(U, i);
bf_div(U, T, U, prec1, BF_RNDN);
bf_mul(r, r, U, prec1, BF_RNDN);
bf_add_si(r, r, 1, prec1, BF_RNDN);
}
bf_delete(U);
}
bf_delete(T);
/* undo the range reduction */
for(i = 0; i < K; i++) {
bf_mul(r, r, r, prec1, BF_RNDN | BF_FLAG_EXT_EXP);
}
/* undo the argument reduction */
bf_mul_2exp(r, n, BF_PREC_INF, BF_RNDZ | BF_FLAG_EXT_EXP);
return BF_ST_INEXACT;
}
|
O1
|
c
|
bf_exp_internal:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r12
movq %rsi, %rbp
movq %rdi, %rbx
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq (%rdi), %r15
movq %r15, 0x18(%rsp)
movl $0x0, 0x20(%rsp)
movq %rax, 0x28(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rsp)
cmpq $0x0, 0x10(%rsi)
js 0x8a250
leaq 0x10(%r15), %rcx
leaq -0x6df(%rip), %r8 # 0x89b28
leaq 0x18(%rsp), %r14
movl $0x40, %esi
movq %r14, %rdi
movl $0x1, %edx
xorl %r9d, %r9d
callq 0x89a2c
leaq -0x3249(%rip), %r9 # 0x86fdf
movl $0x40, %ecx
movq %r14, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl $0x2, %r8d
callq 0x86f26
movq %rsp, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x87cce
jmp 0x8a268
cmpl $0x0, 0x8(%rbp)
je 0x8a260
movq $-0x1, (%rsp)
jmp 0x8a268
movq $0x0, (%rsp)
leaq 0x1(%r12), %rsi
cmpq $0x2, %rsi
movq %r15, 0x10(%rsp)
jae 0x8a27d
xorl %r14d, %r14d
jmp 0x8a2a7
shrq %rsi
bsrq %rsi, %r15
xorq $0x3f, %r15
movl %r15d, %ecx
andb $0x3e, %cl
shlq %cl, %rsi
leaq 0x40(%rsp), %rdi
callq 0x86519
movq %rax, %r14
shrl %r15d
movl %r15d, %ecx
shrq %cl, %r14
leaq -0x1(%r12), %rax
xorl %ecx, %ecx
xorl %edx, %edx
divq %r14
movq %rax, %r15
movq 0x10(%rbp), %rax
testq %rax, %rax
cmovleq %rcx, %rax
leaq (%r15,%r14), %rcx
incq %rcx
addq %r12, %rax
leaq (%rax,%rcx,2), %r12
addq $0x1a, %r12
leaq 0x18(%rsp), %r13
movq (%r13), %rcx
addq $0x10, %rcx
leaq -0x7bf(%rip), %r8 # 0x89b28
movq %r13, %rdi
movq %r12, %rsi
movl $0x6, %edx
xorl %r9d, %r9d
callq 0x89a2c
movq (%rsp), %rdx
movq %r13, %rdi
movq %r13, %rsi
movq %rdx, 0x8(%rsp)
movq %r12, %rcx
xorl %r8d, %r8d
callq 0x873cb
leaq -0x3353(%rip), %r9 # 0x86fc8
movq %r13, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %r12, %rcx
xorl %r8d, %r8d
callq 0x86f26
movq 0x18(%r13), %rcx
movabsq $-0x3fffffffffffffff, %rdx # imm = 0xC000000000000001
testq %rcx, %rcx
je 0x8a376
movq %r14, %rax
negq %rax
cmpq %rdx, %rax
cmovleq %rdx, %rax
movabsq $0x3fffffffffffffff, %rsi # imm = 0x3FFFFFFFFFFFFFFF
cmpq %rsi, %rax
cmovgeq %rsi, %rax
leaq 0x18(%rsp), %rdi
addq %rax, 0x10(%rdi)
movl $0x1, %edx
xorl %r8d, %r8d
callq 0x84212
movq 0x10(%rsp), %rax
movq %rax, 0x40(%rsp)
movl $0x0, 0x48(%rsp)
movabsq $-0x8000000000000000, %r13 # imm = 0x8000000000000000
movq %r13, 0x50(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x58(%rsp)
movl $0x1, %esi
movq %rbx, %rdi
callq 0x83ea7
decq %r13
cmpq %r13, %r15
jae 0x8a41e
incq %r15
leaq 0x40(%rsp), %rbp
leaq 0x18(%rsp), %r13
movq %rbp, %rdi
movq %r15, %rsi
callq 0x83ea7
movq %rbp, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %r12, %rcx
xorl %r8d, %r8d
leaq -0x3403(%rip), %r9 # 0x86fdf
callq 0x86f26
movq %rbx, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
movq %r12, %rcx
xorl %r8d, %r8d
callq 0x85afd
movl $0x1, %edx
movq %rbx, %rdi
movq %rbx, %rsi
movq %r12, %rcx
xorl %r8d, %r8d
callq 0x8634c
leaq -0x1(%r15), %rax
cmpq $0x1, %r15
movq %rax, %r15
jg 0x8a3c1
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0x8a43a
movq 0x60(%rsp), %rsi
testq %rsi, %rsi
je 0x8a43a
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq 0x18(%rsp), %rax
testq %rax, %rax
movabsq $0x3fffffffffffffff, %r15 # imm = 0x3FFFFFFFFFFFFFFF
movabsq $-0x3fffffffffffffff, %r13 # imm = 0xC000000000000001
je 0x8a46a
movq 0x38(%rsp), %rsi
testq %rsi, %rsi
je 0x8a46a
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
testq %r14, %r14
jle 0x8a48b
movq %rbx, %rdi
movq %rbx, %rsi
movq %rbx, %rdx
movq %r12, %rcx
movl $0x7e0, %r8d # imm = 0x7E0
callq 0x85afd
decq %r14
jne 0x8a46f
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
je 0x8a4be
movq 0x8(%rsp), %rax
cmpq %r13, %rax
cmovgq %rax, %r13
cmpq %r15, %r13
cmovgeq %r15, %r13
addq %r13, 0x10(%rbx)
movq %rbx, %rdi
movq %r15, %rsi
movl $0x7e1, %edx # imm = 0x7E1
xorl %r8d, %r8d
callq 0x84212
movl $0x10, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
bf_exp_internal:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov r12, rdx
mov rbp, rsi
mov rbx, rdi
mov rax, 8000000000000000h
mov r15, [rdi]
mov [rsp+98h+var_80], r15
mov [rsp+98h+var_78], 0
mov [rsp+98h+var_70], rax
xorps xmm0, xmm0
movups [rsp+98h+var_68], xmm0
cmp qword ptr [rsi+10h], 0
js short loc_8A250
lea rcx, [r15+10h]
lea r8, bf_const_log2_internal
lea r14, [rsp+98h+var_80]
mov esi, 40h ; '@'
mov rdi, r14
mov edx, 1
xor r9d, r9d
call bf_const_get
lea r9, __bf_div
mov ecx, 40h ; '@'
mov rdi, r14
mov rsi, rbp
mov rdx, r14
mov r8d, 2
call bf_op2
mov rdi, rsp
mov rsi, r14
xor edx, edx
call bf_get_int64
jmp short loc_8A268
loc_8A250:
cmp dword ptr [rbp+8], 0
jz short loc_8A260
mov [rsp+98h+var_98], 0FFFFFFFFFFFFFFFFh
jmp short loc_8A268
loc_8A260:
mov [rsp+98h+var_98], 0
loc_8A268:
lea rsi, [r12+1]
cmp rsi, 2
mov [rsp+98h+var_88], r15
jnb short loc_8A27D
xor r14d, r14d
jmp short loc_8A2A7
loc_8A27D:
shr rsi, 1
bsr r15, rsi
xor r15, 3Fh
mov ecx, r15d
and cl, 3Eh
shl rsi, cl
lea rdi, [rsp+98h+var_58]
call mp_sqrtrem1
mov r14, rax
shr r15d, 1
mov ecx, r15d
shr r14, cl
loc_8A2A7:
lea rax, [r12-1]
xor ecx, ecx
xor edx, edx
div r14
mov r15, rax
mov rax, [rbp+10h]
test rax, rax
cmovle rax, rcx
lea rcx, [r15+r14]
inc rcx
add rax, r12
lea r12, [rax+rcx*2]
add r12, 1Ah
lea r13, [rsp+98h+var_80]
mov rcx, [r13+0]
add rcx, 10h
lea r8, bf_const_log2_internal
mov rdi, r13
mov rsi, r12
mov edx, 6
xor r9d, r9d
call bf_const_get
mov rdx, [rsp+98h+var_98]
mov rdi, r13
mov rsi, r13
mov [rsp+98h+var_90], rdx
mov rcx, r12
xor r8d, r8d
call bf_mul_si
lea r9, __bf_sub
mov rdi, r13
mov rsi, rbp
mov rdx, r13
mov rcx, r12
xor r8d, r8d
call bf_op2
mov rcx, [r13+18h]
mov rdx, 0C000000000000001h
test rcx, rcx
jz short loc_8A376
mov rax, r14
neg rax
cmp rax, rdx
cmovle rax, rdx
mov rsi, 3FFFFFFFFFFFFFFFh
cmp rax, rsi
cmovge rax, rsi
lea rdi, [rsp+98h+var_80]
add [rdi+10h], rax
mov edx, 1
xor r8d, r8d
call __bf_round
loc_8A376:
mov rax, [rsp+98h+var_88]
mov [rsp+98h+var_58], rax
mov [rsp+98h+var_50], 0
mov r13, 8000000000000000h
mov [rsp+98h+var_48], r13
xorps xmm0, xmm0
movups [rsp+98h+var_40], xmm0
mov esi, 1
mov rdi, rbx
call bf_set_ui
dec r13
cmp r15, r13
jnb short loc_8A41E
inc r15
lea rbp, [rsp+98h+var_58]
lea r13, [rsp+98h+var_80]
loc_8A3C1:
mov rdi, rbp
mov rsi, r15
call bf_set_ui
mov rdi, rbp
mov rsi, r13
mov rdx, rbp
mov rcx, r12
xor r8d, r8d
lea r9, __bf_div
call bf_op2
mov rdi, rbx
mov rsi, rbx
mov rdx, rbp
mov rcx, r12
xor r8d, r8d
call bf_mul
mov edx, 1
mov rdi, rbx
mov rsi, rbx
mov rcx, r12
xor r8d, r8d
call bf_add_si
lea rax, [r15-1]
cmp r15, 1
mov r15, rax
jg short loc_8A3C1
loc_8A41E:
mov rax, [rsp+98h+var_58]
test rax, rax
jz short loc_8A43A
mov rsi, qword ptr [rsp+98h+var_40+8]
test rsi, rsi
jz short loc_8A43A
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
loc_8A43A:
mov rax, [rsp+98h+var_80]
test rax, rax
mov r15, 3FFFFFFFFFFFFFFFh
mov r13, 0C000000000000001h
jz short loc_8A46A
mov rsi, qword ptr [rsp+98h+var_68+8]
test rsi, rsi
jz short loc_8A46A
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
loc_8A46A:
test r14, r14
jle short loc_8A48B
loc_8A46F:
mov rdi, rbx
mov rsi, rbx
mov rdx, rbx
mov rcx, r12
mov r8d, 7E0h
call bf_mul
dec r14
jnz short loc_8A46F
loc_8A48B:
mov rcx, [rbx+18h]
test rcx, rcx
jz short loc_8A4BE
mov rax, [rsp+98h+var_90]
cmp rax, r13
cmovg r13, rax
cmp r13, r15
cmovge r13, r15
add [rbx+10h], r13
mov rdi, rbx
mov rsi, r15
mov edx, 7E1h
xor r8d, r8d
call __bf_round
loc_8A4BE:
mov eax, 10h
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long bf_exp_internal(long long a1, long long a2, long long a3)
{
_QWORD *v5; // r15
signed long long v6; // r14
unsigned long long v7; // rsi
unsigned long long v8; // r15
unsigned long long v9; // r15
long long v10; // rax
long long v11; // r12
long long v12; // rax
signed long long v13; // r15
long long v15; // r13
unsigned long long v16; // rcx
long long v18; // [rsp+0h] [rbp-98h] BYREF
signed long long v19; // [rsp+8h] [rbp-90h]
_QWORD *v20; // [rsp+10h] [rbp-88h]
__int128 v21; // [rsp+18h] [rbp-80h] BYREF
unsigned long long v22; // [rsp+28h] [rbp-70h]
__int128 v23; // [rsp+30h] [rbp-68h]
__int128 v24; // [rsp+40h] [rbp-58h] BYREF
unsigned long long v25; // [rsp+50h] [rbp-48h]
__int128 v26; // [rsp+58h] [rbp-40h]
v5 = *(_QWORD **)a1;
*(_QWORD *)&v21 = *(_QWORD *)a1;
DWORD2(v21) = 0;
v22 = 0x8000000000000000LL;
v23 = 0LL;
if ( *(long long *)(a2 + 16) < 0 )
{
if ( *(_DWORD *)(a2 + 8) )
v18 = -1LL;
else
v18 = 0LL;
}
else
{
bf_const_get(
(long long)&v21,
64LL,
1u,
(long long)(v5 + 2),
(void ( *)(long long, unsigned long long))bf_const_log2_internal,
0);
bf_op2(&v21, (__int128 *)a2, &v21, 64LL, 2LL, (long long ( *)(__int128 *))_bf_div);
bf_get_int64(&v18, (long long)&v21, 0);
}
v20 = v5;
if ( (unsigned long long)(a3 + 1) >= 2 )
{
v7 = (unsigned long long)(a3 + 1) >> 1;
_BitScanReverse64(&v8, v7);
v6 = mp_sqrtrem1(&v24, v7 << ((v8 ^ 0x3F) & 0x3E)) >> (((unsigned int)v8 ^ 0x3F) >> 1);
}
else
{
v6 = 0LL;
}
v9 = (a3 - 1) / (unsigned long long)v6;
v10 = *(_QWORD *)(a2 + 16);
if ( v10 <= 0 )
v10 = 0LL;
v11 = a3 + v10 + 2 * (v9 + v6 + 1) + 26;
bf_const_get(
(long long)&v21,
v11,
6u,
v21 + 16,
(void ( *)(long long, unsigned long long))bf_const_log2_internal,
0);
v19 = v18;
bf_mul_si(&v21, (long long)&v21, v18, v11, 0);
bf_op2(&v21, (__int128 *)a2, &v21, v11, 0LL, (long long ( *)(__int128 *))_bf_sub);
if ( (_QWORD)v23 )
{
v12 = -v6;
if ( -v6 <= (long long)0xC000000000000001LL )
v12 = 0xC000000000000001LL;
if ( v12 >= 0x3FFFFFFFFFFFFFFFLL )
v12 = 0x3FFFFFFFFFFFFFFFLL;
v22 += v12;
_bf_round((long long)&v21, 0x3FFFFFFFFFFFFFFFLL, 1LL, v23, 0);
}
*(_QWORD *)&v24 = v20;
DWORD2(v24) = 0;
v25 = 0x8000000000000000LL;
v26 = 0LL;
bf_set_ui((_QWORD **)a1, 1uLL);
if ( v9 < 0x7FFFFFFFFFFFFFFFLL )
{
v13 = v9 + 1;
do
{
bf_set_ui((_QWORD **)&v24, v13);
bf_op2(&v24, &v21, &v24, v11, 0LL, (long long ( *)(__int128 *))_bf_div);
bf_mul((__int128 *)a1, a1, (long long)&v24, v11, 0);
bf_add_si((long long *)a1, a1, 1LL, v11, 0);
}
while ( v13-- > 1 );
}
if ( (_QWORD)v24 && *((_QWORD *)&v26 + 1) )
(*(void ( **)(_QWORD, _QWORD, _QWORD))(v24 + 8))(*(_QWORD *)v24, *((_QWORD *)&v26 + 1), 0LL);
v15 = 0xC000000000000001LL;
if ( (_QWORD)v21 && *((_QWORD *)&v23 + 1) )
(*(void ( **)(_QWORD, _QWORD, _QWORD))(v21 + 8))(*(_QWORD *)v21, *((_QWORD *)&v23 + 1), 0LL);
if ( v6 > 0 )
{
do
{
bf_mul((__int128 *)a1, a1, a1, v11, 0x7E0u);
--v6;
}
while ( v6 );
}
v16 = *(_QWORD *)(a1 + 24);
if ( v16 )
{
if ( v19 > (long long)0xC000000000000001LL )
v15 = v19;
if ( v15 >= 0x3FFFFFFFFFFFFFFFLL )
v15 = 0x3FFFFFFFFFFFFFFFLL;
*(_QWORD *)(a1 + 16) += v15;
_bf_round(a1, 0x3FFFFFFFFFFFFFFFLL, 2017LL, v16, 0);
}
return 16LL;
}
|
bf_exp_internal:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R12,RDX
MOV RBP,RSI
MOV RBX,RDI
MOV RAX,-0x8000000000000000
MOV R15,qword ptr [RDI]
MOV qword ptr [RSP + 0x18],R15
MOV dword ptr [RSP + 0x20],0x0
MOV qword ptr [RSP + 0x28],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x30],XMM0
CMP qword ptr [RSI + 0x10],0x0
JS 0x0018a250
LEA RCX,[R15 + 0x10]
LEA R8,[0x189b28]
LEA R14,[RSP + 0x18]
MOV ESI,0x40
MOV RDI,R14
MOV EDX,0x1
XOR R9D,R9D
CALL 0x00189a2c
LEA R9,[0x186fdf]
MOV ECX,0x40
MOV RDI,R14
MOV RSI,RBP
MOV RDX,R14
MOV R8D,0x2
CALL 0x00186f26
MOV RDI,RSP
MOV RSI,R14
XOR EDX,EDX
CALL 0x00187cce
JMP 0x0018a268
LAB_0018a250:
CMP dword ptr [RBP + 0x8],0x0
JZ 0x0018a260
MOV qword ptr [RSP],-0x1
JMP 0x0018a268
LAB_0018a260:
MOV qword ptr [RSP],0x0
LAB_0018a268:
LEA RSI,[R12 + 0x1]
CMP RSI,0x2
MOV qword ptr [RSP + 0x10],R15
JNC 0x0018a27d
XOR R14D,R14D
JMP 0x0018a2a7
LAB_0018a27d:
SHR RSI,0x1
BSR R15,RSI
XOR R15,0x3f
MOV ECX,R15D
AND CL,0x3e
SHL RSI,CL
LEA RDI,[RSP + 0x40]
CALL 0x00186519
MOV R14,RAX
SHR R15D,0x1
MOV ECX,R15D
SHR R14,CL
LAB_0018a2a7:
LEA RAX,[R12 + -0x1]
XOR ECX,ECX
XOR EDX,EDX
DIV R14
MOV R15,RAX
MOV RAX,qword ptr [RBP + 0x10]
TEST RAX,RAX
CMOVLE RAX,RCX
LEA RCX,[R15 + R14*0x1]
INC RCX
ADD RAX,R12
LEA R12,[RAX + RCX*0x2]
ADD R12,0x1a
LEA R13,[RSP + 0x18]
MOV RCX,qword ptr [R13]
ADD RCX,0x10
LEA R8,[0x189b28]
MOV RDI,R13
MOV RSI,R12
MOV EDX,0x6
XOR R9D,R9D
CALL 0x00189a2c
MOV RDX,qword ptr [RSP]
MOV RDI,R13
MOV RSI,R13
MOV qword ptr [RSP + 0x8],RDX
MOV RCX,R12
XOR R8D,R8D
CALL 0x001873cb
LEA R9,[0x186fc8]
MOV RDI,R13
MOV RSI,RBP
MOV RDX,R13
MOV RCX,R12
XOR R8D,R8D
CALL 0x00186f26
MOV RCX,qword ptr [R13 + 0x18]
MOV RDX,-0x3fffffffffffffff
TEST RCX,RCX
JZ 0x0018a376
MOV RAX,R14
NEG RAX
CMP RAX,RDX
CMOVLE RAX,RDX
MOV RSI,0x3fffffffffffffff
CMP RAX,RSI
CMOVGE RAX,RSI
LEA RDI,[RSP + 0x18]
ADD qword ptr [RDI + 0x10],RAX
MOV EDX,0x1
XOR R8D,R8D
CALL 0x00184212
LAB_0018a376:
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x40],RAX
MOV dword ptr [RSP + 0x48],0x0
MOV R13,-0x8000000000000000
MOV qword ptr [RSP + 0x50],R13
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x58],XMM0
MOV ESI,0x1
MOV RDI,RBX
CALL 0x00183ea7
DEC R13
CMP R15,R13
JNC 0x0018a41e
INC R15
LEA RBP,[RSP + 0x40]
LEA R13,[RSP + 0x18]
LAB_0018a3c1:
MOV RDI,RBP
MOV RSI,R15
CALL 0x00183ea7
MOV RDI,RBP
MOV RSI,R13
MOV RDX,RBP
MOV RCX,R12
XOR R8D,R8D
LEA R9,[0x186fdf]
CALL 0x00186f26
MOV RDI,RBX
MOV RSI,RBX
MOV RDX,RBP
MOV RCX,R12
XOR R8D,R8D
CALL 0x00185afd
MOV EDX,0x1
MOV RDI,RBX
MOV RSI,RBX
MOV RCX,R12
XOR R8D,R8D
CALL 0x0018634c
LEA RAX,[R15 + -0x1]
CMP R15,0x1
MOV R15,RAX
JG 0x0018a3c1
LAB_0018a41e:
MOV RAX,qword ptr [RSP + 0x40]
TEST RAX,RAX
JZ 0x0018a43a
MOV RSI,qword ptr [RSP + 0x60]
TEST RSI,RSI
JZ 0x0018a43a
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
LAB_0018a43a:
MOV RAX,qword ptr [RSP + 0x18]
TEST RAX,RAX
MOV R15,0x3fffffffffffffff
MOV R13,-0x3fffffffffffffff
JZ 0x0018a46a
MOV RSI,qword ptr [RSP + 0x38]
TEST RSI,RSI
JZ 0x0018a46a
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
LAB_0018a46a:
TEST R14,R14
JLE 0x0018a48b
LAB_0018a46f:
MOV RDI,RBX
MOV RSI,RBX
MOV RDX,RBX
MOV RCX,R12
MOV R8D,0x7e0
CALL 0x00185afd
DEC R14
JNZ 0x0018a46f
LAB_0018a48b:
MOV RCX,qword ptr [RBX + 0x18]
TEST RCX,RCX
JZ 0x0018a4be
MOV RAX,qword ptr [RSP + 0x8]
CMP RAX,R13
CMOVG R13,RAX
CMP R13,R15
CMOVGE R13,R15
ADD qword ptr [RBX + 0x10],R13
MOV RDI,RBX
MOV RSI,R15
MOV EDX,0x7e1
XOR R8D,R8D
CALL 0x00184212
LAB_0018a4be:
MOV EAX,0x10
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 bf_exp_internal(long *param_1,long param_2,long param_3)
{
int8 *puVar1;
bool bVar2;
ulong uVar3;
long lVar4;
long lVar5;
ulong uVar6;
long local_98;
long local_90;
int8 *local_88;
int8 *local_80;
int4 local_78;
long local_70;
long local_68;
long lStack_60;
int8 *local_58;
int4 local_50;
int8 local_48;
int8 local_40;
long lStack_38;
puVar1 = (int8 *)*param_1;
local_78 = 0;
local_70 = -0x8000000000000000;
local_68 = 0;
lStack_60 = 0;
local_80 = puVar1;
if (*(long *)(param_2 + 0x10) < 0) {
if (*(int *)(param_2 + 8) == 0) {
local_98 = 0;
}
else {
local_98 = -1;
}
}
else {
bf_const_get(&local_80,0x40,1,puVar1 + 2,bf_const_log2_internal,0);
bf_op2(&local_80,param_2,&local_80,0x40,2,__bf_div);
bf_get_int64(&local_98,&local_80,0);
}
local_88 = puVar1;
if (param_3 + 1U < 2) {
uVar6 = 0;
}
else {
uVar6 = param_3 + 1U >> 1;
uVar3 = 0x3f;
if (uVar6 != 0) {
for (; uVar6 >> uVar3 == 0; uVar3 = uVar3 - 1) {
}
}
uVar6 = mp_sqrtrem1(&local_58,uVar6 << ((byte)(uVar3 ^ 0x3f) & 0x3e));
uVar6 = uVar6 >> ((byte)((uint)(uVar3 ^ 0x3f) >> 1) & 0x3f);
}
uVar3 = (param_3 - 1U) / uVar6;
lVar5 = *(long *)(param_2 + 0x10);
if (*(long *)(param_2 + 0x10) < 1) {
lVar5 = 0;
}
lVar5 = lVar5 + param_3 + (uVar3 + uVar6 + 1) * 2 + 0x1a;
bf_const_get(&local_80,lVar5,6,local_80 + 2,bf_const_log2_internal,0);
local_90 = local_98;
bf_mul_si(&local_80,&local_80,local_98,lVar5,0);
bf_op2(&local_80,param_2,&local_80,lVar5,0,__bf_sub);
if (local_68 != 0) {
lVar4 = -uVar6;
if (uVar6 == 0x3fffffffffffffff || lVar4 < -0x3fffffffffffffff) {
lVar4 = -0x3fffffffffffffff;
}
if (0x3ffffffffffffffe < lVar4) {
lVar4 = 0x3fffffffffffffff;
}
local_70 = local_70 + lVar4;
__bf_round(&local_80,0x3fffffffffffffff,1,local_68,0);
}
local_58 = local_88;
local_50 = 0;
local_48 = 0x8000000000000000;
local_40 = 0;
lStack_38 = 0;
bf_set_ui(param_1,1);
if (uVar3 < 0x7fffffffffffffff) {
lVar4 = uVar3 + 1;
do {
bf_set_ui(&local_58,lVar4);
bf_op2(&local_58,&local_80,&local_58,lVar5,0,__bf_div);
bf_mul(param_1,param_1,&local_58,lVar5);
bf_add_si(param_1,param_1,1,lVar5);
bVar2 = 1 < lVar4;
lVar4 = lVar4 + -1;
} while (bVar2);
}
if ((local_58 != (int8 *)0x0) && (lStack_38 != 0)) {
(*(code *)local_58[1])(*local_58,lStack_38,0);
}
if ((local_80 != (int8 *)0x0) && (lStack_60 != 0)) {
(*(code *)local_80[1])(*local_80,lStack_60,0);
}
if (0 < (long)uVar6) {
do {
bf_mul(param_1,param_1,param_1,lVar5,0x7e0);
uVar6 = uVar6 - 1;
} while (uVar6 != 0);
}
if (param_1[3] != 0) {
lVar5 = -0x3fffffffffffffff;
if (-0x3fffffffffffffff < local_90) {
lVar5 = local_90;
}
if (0x3ffffffffffffffe < lVar5) {
lVar5 = 0x3fffffffffffffff;
}
param_1[2] = param_1[2] + lVar5;
__bf_round(param_1,0x3fffffffffffffff,0x7e1,param_1[3],0);
}
return 0x10;
}
|
|
59,557
|
my_uca_charcmp_onelevel
|
eloqsql/strings/ctype-uca.c
|
static int my_uca_charcmp_onelevel(CHARSET_INFO *cs, my_wc_t wc1,
my_wc_t wc2, uint level)
{
size_t length1, length2;
const uint16 *weight1= my_char_weight_addr(&cs->uca->level[level], wc1);
const uint16 *weight2= my_char_weight_addr(&cs->uca->level[level], wc2);
if (!weight1 || !weight2)
return wc1 != wc2;
/* Quickly compare first weights */
if (weight1[0] != weight2[0])
return 1;
/* Thoroughly compare all weights */
length1= cs->uca->level[level].lengths[wc1 >> MY_UCA_PSHIFT];
length2= cs->uca->level[level].lengths[wc2 >> MY_UCA_PSHIFT];
if (length1 > length2)
return memcmp((const void*)weight1, (const void*)weight2, length2*2) ?
1: weight1[length2];
if (length1 < length2)
return memcmp((const void*)weight1, (const void*)weight2, length1*2) ?
1 : weight2[length1];
return memcmp((const void*)weight1, (const void*)weight2, length1*2);
}
|
O0
|
c
|
my_uca_charcmp_onelevel:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rdi
movl -0x24(%rbp), %eax
imulq $0x38, %rax, %rax
addq %rax, %rdi
movq -0x18(%rbp), %rax
movl %eax, %esi
callq 0x548f0
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rdi
movl -0x24(%rbp), %eax
imulq $0x38, %rax, %rax
addq %rax, %rdi
movq -0x20(%rbp), %rax
movl %eax, %esi
callq 0x548f0
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x547b7
cmpq $0x0, -0x48(%rbp)
jne 0x547cf
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x4(%rbp)
jmp 0x548d8
movq -0x40(%rbp), %rax
movzwl (%rax), %eax
movq -0x48(%rbp), %rcx
movzwl (%rcx), %ecx
cmpl %ecx, %eax
je 0x547ed
movl $0x1, -0x4(%rbp)
jmp 0x548d8
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rax
movl -0x24(%rbp), %ecx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
shrq $0x8, %rcx
movzbl (%rax,%rcx), %eax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rax
movl -0x24(%rbp), %ecx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq -0x20(%rbp), %rcx
shrq $0x8, %rcx
movzbl (%rax,%rcx), %eax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
jbe 0x5487d
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x38(%rbp), %rdx
shlq %rdx
callq 0x24130
cmpl $0x0, %eax
je 0x54866
movl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x54875
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movzwl (%rax,%rcx,2), %eax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x548d8
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0x548c1
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x30(%rbp), %rdx
shlq %rdx
callq 0x24130
cmpl $0x0, %eax
je 0x548aa
movl $0x1, %eax
movl %eax, -0x50(%rbp)
jmp 0x548b9
movq -0x48(%rbp), %rax
movq -0x30(%rbp), %rcx
movzwl (%rax,%rcx,2), %eax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x548d8
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x30(%rbp), %rdx
shlq %rdx
callq 0x24130
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_uca_charcmp_onelevel:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_24], ecx
mov rax, [rbp+var_10]
mov rdi, [rax+60h]
mov eax, [rbp+var_24]
imul rax, 38h ; '8'
add rdi, rax
mov rax, [rbp+var_18]
mov esi, eax
call my_char_weight_addr
mov [rbp+var_40], rax
mov rax, [rbp+var_10]
mov rdi, [rax+60h]
mov eax, [rbp+var_24]
imul rax, 38h ; '8'
add rdi, rax
mov rax, [rbp+var_20]
mov esi, eax
call my_char_weight_addr
mov [rbp+var_48], rax
cmp [rbp+var_40], 0
jz short loc_547B7
cmp [rbp+var_48], 0
jnz short loc_547CF
loc_547B7:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
setnz al
and al, 1
movzx eax, al
mov [rbp+var_4], eax
jmp loc_548D8
loc_547CF:
mov rax, [rbp+var_40]
movzx eax, word ptr [rax]
mov rcx, [rbp+var_48]
movzx ecx, word ptr [rcx]
cmp eax, ecx
jz short loc_547ED
mov [rbp+var_4], 1
jmp loc_548D8
loc_547ED:
mov rax, [rbp+var_10]
mov rax, [rax+60h]
mov ecx, [rbp+var_24]
imul rcx, 38h ; '8'
add rax, rcx
mov rax, [rax+8]
mov rcx, [rbp+var_18]
shr rcx, 8
movzx eax, byte ptr [rax+rcx]
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
mov rax, [rax+60h]
mov ecx, [rbp+var_24]
imul rcx, 38h ; '8'
add rax, rcx
mov rax, [rax+8]
mov rcx, [rbp+var_20]
shr rcx, 8
movzx eax, byte ptr [rax+rcx]
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jbe short loc_5487D
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_48]
mov rdx, [rbp+var_38]
shl rdx, 1
call _memcmp
cmp eax, 0
jz short loc_54866
mov eax, 1
mov [rbp+var_4C], eax
jmp short loc_54875
loc_54866:
mov rax, [rbp+var_40]
mov rcx, [rbp+var_38]
movzx eax, word ptr [rax+rcx*2]
mov [rbp+var_4C], eax
loc_54875:
mov eax, [rbp+var_4C]
mov [rbp+var_4], eax
jmp short loc_548D8
loc_5487D:
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jnb short loc_548C1
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_48]
mov rdx, [rbp+var_30]
shl rdx, 1
call _memcmp
cmp eax, 0
jz short loc_548AA
mov eax, 1
mov [rbp+var_50], eax
jmp short loc_548B9
loc_548AA:
mov rax, [rbp+var_48]
mov rcx, [rbp+var_30]
movzx eax, word ptr [rax+rcx*2]
mov [rbp+var_50], eax
loc_548B9:
mov eax, [rbp+var_50]
mov [rbp+var_4], eax
jmp short loc_548D8
loc_548C1:
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_48]
mov rdx, [rbp+var_30]
shl rdx, 1
call _memcmp
mov [rbp+var_4], eax
loc_548D8:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
|
long long my_uca_charcmp_onelevel(long long a1, unsigned long long a2, unsigned long long a3, unsigned int a4)
{
unsigned __int16 *v7; // [rsp+8h] [rbp-48h]
unsigned __int16 *v8; // [rsp+10h] [rbp-40h]
unsigned long long v9; // [rsp+18h] [rbp-38h]
unsigned long long v10; // [rsp+20h] [rbp-30h]
v8 = (unsigned __int16 *)my_char_weight_addr(56LL * a4 + *(_QWORD *)(a1 + 96), (unsigned int)a2);
v7 = (unsigned __int16 *)my_char_weight_addr(56LL * a4 + *(_QWORD *)(a1 + 96), (unsigned int)a3);
if ( v8 && v7 )
{
if ( *v8 == *v7 )
{
v10 = *(unsigned __int8 *)(*(_QWORD *)(56LL * a4 + *(_QWORD *)(a1 + 96) + 8) + (a2 >> 8));
v9 = *(unsigned __int8 *)(*(_QWORD *)(56LL * a4 + *(_QWORD *)(a1 + 96) + 8) + (a3 >> 8));
if ( v10 <= v9 )
{
if ( v10 >= v9 )
{
return (unsigned int)memcmp(v8, v7, 2 * v10);
}
else if ( !(unsigned int)memcmp(v8, v7, 2 * v10) )
{
return v7[v10];
}
else
{
return 1;
}
}
else if ( !(unsigned int)memcmp(v8, v7, 2 * v9) )
{
return v8[v9];
}
else
{
return 1;
}
}
else
{
return 1;
}
}
else
{
return a2 != a3;
}
}
|
my_uca_charcmp_onelevel:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x60]
MOV EAX,dword ptr [RBP + -0x24]
IMUL RAX,RAX,0x38
ADD RDI,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV ESI,EAX
CALL 0x001548f0
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x60]
MOV EAX,dword ptr [RBP + -0x24]
IMUL RAX,RAX,0x38
ADD RDI,RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV ESI,EAX
CALL 0x001548f0
MOV qword ptr [RBP + -0x48],RAX
CMP qword ptr [RBP + -0x40],0x0
JZ 0x001547b7
CMP qword ptr [RBP + -0x48],0x0
JNZ 0x001547cf
LAB_001547b7:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001548d8
LAB_001547cf:
MOV RAX,qword ptr [RBP + -0x40]
MOVZX EAX,word ptr [RAX]
MOV RCX,qword ptr [RBP + -0x48]
MOVZX ECX,word ptr [RCX]
CMP EAX,ECX
JZ 0x001547ed
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001548d8
LAB_001547ed:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x60]
MOV ECX,dword ptr [RBP + -0x24]
IMUL RCX,RCX,0x38
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x18]
SHR RCX,0x8
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x60]
MOV ECX,dword ptr [RBP + -0x24]
IMUL RCX,RCX,0x38
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x20]
SHR RCX,0x8
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JBE 0x0015487d
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x38]
SHL RDX,0x1
CALL 0x00124130
CMP EAX,0x0
JZ 0x00154866
MOV EAX,0x1
MOV dword ptr [RBP + -0x4c],EAX
JMP 0x00154875
LAB_00154866:
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x38]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV dword ptr [RBP + -0x4c],EAX
LAB_00154875:
MOV EAX,dword ptr [RBP + -0x4c]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001548d8
LAB_0015487d:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x001548c1
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x30]
SHL RDX,0x1
CALL 0x00124130
CMP EAX,0x0
JZ 0x001548aa
MOV EAX,0x1
MOV dword ptr [RBP + -0x50],EAX
JMP 0x001548b9
LAB_001548aa:
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV dword ptr [RBP + -0x50],EAX
LAB_001548b9:
MOV EAX,dword ptr [RBP + -0x50]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001548d8
LAB_001548c1:
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x30]
SHL RDX,0x1
CALL 0x00124130
MOV dword ptr [RBP + -0x4],EAX
LAB_001548d8:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
uint my_uca_charcmp_onelevel(long param_1,ulong param_2,ulong param_3,uint param_4)
{
int iVar1;
short *__s1;
short *__s2;
ulong uVar2;
ulong uVar3;
uint local_58;
uint local_54;
uint local_c;
__s1 = (short *)my_char_weight_addr(*(long *)(param_1 + 0x60) + (ulong)param_4 * 0x38,
param_2 & 0xffffffff);
__s2 = (short *)my_char_weight_addr(*(long *)(param_1 + 0x60) + (ulong)param_4 * 0x38,
param_3 & 0xffffffff);
if ((__s1 == (short *)0x0) || (__s2 == (short *)0x0)) {
local_c = (uint)(param_2 != param_3);
}
else if (*__s1 == *__s2) {
uVar2 = (ulong)*(byte *)(*(long *)(*(long *)(param_1 + 0x60) + (ulong)param_4 * 0x38 + 8) +
(param_2 >> 8));
uVar3 = (ulong)*(byte *)(*(long *)(*(long *)(param_1 + 0x60) + (ulong)param_4 * 0x38 + 8) +
(param_3 >> 8));
if (uVar3 < uVar2) {
iVar1 = memcmp(__s1,__s2,uVar3 << 1);
if (iVar1 == 0) {
local_54 = (uint)(ushort)__s1[uVar3];
}
else {
local_54 = 1;
}
local_c = local_54;
}
else if (uVar2 < uVar3) {
iVar1 = memcmp(__s1,__s2,uVar2 << 1);
if (iVar1 == 0) {
local_58 = (uint)(ushort)__s2[uVar2];
}
else {
local_58 = 1;
}
local_c = local_58;
}
else {
local_c = memcmp(__s1,__s2,uVar2 << 1);
}
}
else {
local_c = 1;
}
return local_c;
}
|
|
59,558
|
Simulator::simulate()
|
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/Simulator.cpp
|
void Simulator::simulate() {
// Initialize pipeline registers
memset(&this->fReg, 0, sizeof(this->fReg));
memset(&this->fRegNew, 0, sizeof(this->fRegNew));
memset(&this->dReg, 0, sizeof(this->dReg));
memset(&this->dRegNew, 0, sizeof(this->dReg));
memset(&this->eReg, 0, sizeof(this->eReg));
memset(&this->eRegNew, 0, sizeof(this->eRegNew));
memset(&this->mReg, 0, sizeof(this->mReg));
memset(&this->mRegNew, 0, sizeof(this->mRegNew));
// Insert Bubble to later pipeline stages
fReg.bubble = true;
dReg.bubble = true;
eReg.bubble = true;
mReg.bubble = true;
// Main Simulation Loop
while (true) {
if (this->reg[0] != 0) {
// Some instruction might set this register to zero
this->reg[0] = 0;
// this->panic("Register 0's value is not zero!\n");
}
if (this->reg[REG_SP] < this->stackBase - this->maximumStackSize) {
this->panic("Stack Overflow!\n");
}
this->executeWriteBack = false;
this->executeWBReg = -1;
this->memoryWriteBack = false;
this->memoryWBReg = -1;
// THE EXECUTION ORDER of these functions are important!!!
// Changing them will introduce strange bugs
this->fetch();
this->decode();
this->excecute();
this->memoryAccess();
this->writeBack();
if (!this->fReg.stall) this->fReg = this->fRegNew;
else this->fReg.stall--;
if (!this->dReg.stall) this->dReg = this->dRegNew;
else this->dReg.stall--;
this->eReg = this->eRegNew;
this->mReg = this->mRegNew;
memset(&this->fRegNew, 0, sizeof(this->fRegNew));
memset(&this->dRegNew, 0, sizeof(this->dRegNew));
memset(&this->eRegNew, 0, sizeof(this->eRegNew));
memset(&this->mRegNew, 0, sizeof(this->mRegNew));
// The Branch perdiction happens here to avoid strange bugs in branch prediction
if (!this->dReg.bubble && !this->dReg.stall && !this->fReg.stall && this->dReg.predictedBranch) {
this->pc = this->dReg.predictedPC;
}
this->history.cycleCount++;
this->history.regRecord.push_back(this->getRegInfoStr());
if (this->history.regRecord.size() >= 100000) { // Avoid using up memory
this->history.regRecord.clear();
this->history.instRecord.clear();
}
if (verbose) {
this->printInfo();
}
if (this->isSingleStep) {
printf("Type d to dump memory in dump.txt, press ENTER to continue: ");
char ch;
while ((ch = getchar()) != '\n') {
if (ch == 'd') {
this->dumpHistory();
}
}
}
}
}
|
O0
|
cpp
|
Simulator::simulate():
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq 0x50(%rsp), %rdi
movq %rdi, 0x18(%rsp)
addq $0x128, %rdi # imm = 0x128
xorl %esi, %esi
movl $0x18, %edx
callq 0x15120
movq 0x18(%rsp), %rdi
addq $0x140, %rdi # imm = 0x140
xorl %esi, %esi
movl $0x18, %edx
callq 0x15120
movq 0x18(%rsp), %rdi
addq $0x158, %rdi # imm = 0x158
xorl %esi, %esi
movl $0x58, %edx
callq 0x15120
movq 0x18(%rsp), %rdi
addq $0x1b0, %rdi # imm = 0x1B0
xorl %esi, %esi
movl $0x58, %edx
callq 0x15120
movq 0x18(%rsp), %rdi
addq $0x208, %rdi # imm = 0x208
xorl %esi, %esi
movl $0x48, %edx
callq 0x15120
movq 0x18(%rsp), %rdi
addq $0x250, %rdi # imm = 0x250
xorl %esi, %esi
movl $0x48, %edx
callq 0x15120
movq 0x18(%rsp), %rdi
addq $0x298, %rdi # imm = 0x298
xorl %esi, %esi
movl $0x38, %edx
callq 0x15120
movq 0x18(%rsp), %rdi
addq $0x2d0, %rdi # imm = 0x2D0
xorl %esi, %esi
movl $0x38, %edx
callq 0x15120
movq 0x18(%rsp), %rax
movb $0x1, 0x128(%rax)
movb $0x1, 0x158(%rax)
movb $0x1, 0x208(%rax)
movb $0x1, 0x298(%rax)
movq 0x18(%rsp), %rax
cmpq $0x0, 0x10(%rax)
je 0x1f3b8
movq 0x18(%rsp), %rax
movq $0x0, 0x10(%rax)
movq 0x18(%rsp), %rdx
movq 0x20(%rdx), %rax
movl 0x110(%rdx), %ecx
subl 0x114(%rdx), %ecx
movl %ecx, %ecx
cmpq %rcx, %rax
jae 0x1f3e7
movq 0x18(%rsp), %rdi
leaq 0xa70b(%rip), %rsi # 0x29aeb
movb $0x0, %al
callq 0x1f6d0
movq 0x18(%rsp), %rdi
movb $0x0, 0x308(%rdi)
movl $0xffffffff, 0x30c(%rdi) # imm = 0xFFFFFFFF
movb $0x0, 0x310(%rdi)
movl $0xffffffff, 0x314(%rdi) # imm = 0xFFFFFFFF
callq 0x1f7e0
movq 0x18(%rsp), %rdi
callq 0x1f8b0
movq 0x18(%rsp), %rdi
callq 0x22720
movq 0x18(%rsp), %rdi
callq 0x230f0
movq 0x18(%rsp), %rdi
callq 0x23760
movq 0x18(%rsp), %rax
cmpl $0x0, 0x12c(%rax)
jne 0x1f47a
movq 0x18(%rsp), %rax
movq 0x140(%rax), %rcx
movq %rcx, 0x128(%rax)
movq 0x148(%rax), %rcx
movq %rcx, 0x130(%rax)
movq 0x150(%rax), %rcx
movq %rcx, 0x138(%rax)
jmp 0x1f48e
movq 0x18(%rsp), %rax
movl 0x12c(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x12c(%rax)
movq 0x18(%rsp), %rax
cmpl $0x0, 0x15c(%rax)
jne 0x1f4be
movq 0x18(%rsp), %rdi
movq %rdi, %rsi
addq $0x1b0, %rsi # imm = 0x1B0
addq $0x158, %rdi # imm = 0x158
movl $0x58, %edx
callq 0x15190
jmp 0x1f4d2
movq 0x18(%rsp), %rax
movl 0x15c(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x15c(%rax)
movq 0x18(%rsp), %rdi
movq %rdi, %rsi
addq $0x250, %rsi # imm = 0x250
addq $0x208, %rdi # imm = 0x208
movl $0x48, %edx
callq 0x15190
movq 0x18(%rsp), %rdi
movq %rdi, %rsi
addq $0x2d0, %rsi # imm = 0x2D0
addq $0x298, %rdi # imm = 0x298
movl $0x38, %edx
callq 0x15190
movq 0x18(%rsp), %rdi
addq $0x140, %rdi # imm = 0x140
xorl %esi, %esi
movl $0x18, %edx
callq 0x15120
movq 0x18(%rsp), %rdi
addq $0x1b0, %rdi # imm = 0x1B0
xorl %esi, %esi
movl $0x58, %edx
callq 0x15120
movq 0x18(%rsp), %rdi
addq $0x250, %rdi # imm = 0x250
xorl %esi, %esi
movl $0x48, %edx
callq 0x15120
movq 0x18(%rsp), %rdi
addq $0x2d0, %rdi # imm = 0x2D0
xorl %esi, %esi
movl $0x38, %edx
callq 0x15120
movq 0x18(%rsp), %rax
testb $0x1, 0x158(%rax)
jne 0x1f5ba
movq 0x18(%rsp), %rax
cmpl $0x0, 0x15c(%rax)
jne 0x1f5ba
movq 0x18(%rsp), %rax
cmpl $0x0, 0x12c(%rax)
jne 0x1f5ba
movq 0x18(%rsp), %rax
testb $0x1, 0x198(%rax)
je 0x1f5ba
movq 0x18(%rsp), %rax
movq 0x1a0(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x18(%rsp), %rsi
movl 0x31c(%rsi), %eax
incl %eax
movl %eax, 0x31c(%rsi)
movq %rsi, %rax
addq $0x350, %rax # imm = 0x350
movq %rax, 0x8(%rsp)
leaq 0x30(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x239e0
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x24230
jmp 0x1f5fb
leaq 0x30(%rsp), %rdi
callq 0x15140
movq 0x18(%rsp), %rdi
addq $0x318, %rdi # imm = 0x318
addq $0x38, %rdi
callq 0x24260
cmpq $0x186a0, %rax # imm = 0x186A0
jb 0x1f668
movq 0x18(%rsp), %rdi
addq $0x318, %rdi # imm = 0x318
addq $0x38, %rdi
callq 0x24280
movq 0x18(%rsp), %rdi
addq $0x318, %rdi # imm = 0x318
addq $0x20, %rdi
callq 0x24280
jmp 0x1f668
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x15140
jmp 0x1f6c3
movq 0x18(%rsp), %rax
testb $0x1, 0x1(%rax)
je 0x1f67d
movq 0x18(%rsp), %rdi
callq 0x23b50
movq 0x18(%rsp), %rax
testb $0x1, (%rax)
je 0x1f6be
leaq 0xa46e(%rip), %rdi # 0x29afc
movb $0x0, %al
callq 0x15050
callq 0x15300
movb %al, 0x23(%rsp)
movsbl %al, %eax
cmpl $0xa, %eax
je 0x1f6bc
movsbl 0x23(%rsp), %eax
cmpl $0x64, %eax
jne 0x1f6ba
movq 0x18(%rsp), %rdi
callq 0x23c10
jmp 0x1f695
jmp 0x1f6be
jmp 0x1f39f
movq 0x28(%rsp), %rdi
callq 0x153a0
nopl (%rax)
|
_ZN9Simulator8simulateEv:
sub rsp, 58h
mov [rsp+58h+var_8], rdi
mov rdi, [rsp+58h+var_8]
mov [rsp+58h+var_40], rdi
add rdi, 128h
xor esi, esi
mov edx, 18h
call _memset
mov rdi, [rsp+58h+var_40]
add rdi, 140h
xor esi, esi
mov edx, 18h
call _memset
mov rdi, [rsp+58h+var_40]
add rdi, 158h
xor esi, esi
mov edx, 58h ; 'X'
call _memset
mov rdi, [rsp+58h+var_40]
add rdi, 1B0h
xor esi, esi
mov edx, 58h ; 'X'
call _memset
mov rdi, [rsp+58h+var_40]
add rdi, 208h
xor esi, esi
mov edx, 48h ; 'H'
call _memset
mov rdi, [rsp+58h+var_40]
add rdi, 250h
xor esi, esi
mov edx, 48h ; 'H'
call _memset
mov rdi, [rsp+58h+var_40]
add rdi, 298h
xor esi, esi
mov edx, 38h ; '8'
call _memset
mov rdi, [rsp+58h+var_40]
add rdi, 2D0h
xor esi, esi
mov edx, 38h ; '8'
call _memset
mov rax, [rsp+58h+var_40]
mov byte ptr [rax+128h], 1
mov byte ptr [rax+158h], 1
mov byte ptr [rax+208h], 1
mov byte ptr [rax+298h], 1
loc_1F39F:
mov rax, [rsp+58h+var_40]
cmp qword ptr [rax+10h], 0
jz short loc_1F3B8
mov rax, [rsp+58h+var_40]
mov qword ptr [rax+10h], 0
loc_1F3B8:
mov rdx, [rsp+58h+var_40]
mov rax, [rdx+20h]
mov ecx, [rdx+110h]
sub ecx, [rdx+114h]
mov ecx, ecx
cmp rax, rcx
jnb short loc_1F3E7
mov rdi, [rsp+58h+var_40]; this
lea rsi, aStackOverflow; "Stack Overflow!\n"
mov al, 0
call _ZN9Simulator5panicEPKcz; Simulator::panic(char const*,...)
loc_1F3E7:
mov rdi, [rsp+58h+var_40]; this
mov byte ptr [rdi+308h], 0
mov dword ptr [rdi+30Ch], 0FFFFFFFFh
mov byte ptr [rdi+310h], 0
mov dword ptr [rdi+314h], 0FFFFFFFFh
call _ZN9Simulator5fetchEv; Simulator::fetch(void)
mov rdi, [rsp+58h+var_40]; this
call _ZN9Simulator6decodeEv; Simulator::decode(void)
mov rdi, [rsp+58h+var_40]; this
call _ZN9Simulator8excecuteEv; Simulator::excecute(void)
mov rdi, [rsp+58h+var_40]; this
call _ZN9Simulator12memoryAccessEv; Simulator::memoryAccess(void)
mov rdi, [rsp+58h+var_40]; this
call _ZN9Simulator9writeBackEv; Simulator::writeBack(void)
mov rax, [rsp+58h+var_40]
cmp dword ptr [rax+12Ch], 0
jnz short loc_1F47A
mov rax, [rsp+58h+var_40]
mov rcx, [rax+140h]
mov [rax+128h], rcx
mov rcx, [rax+148h]
mov [rax+130h], rcx
mov rcx, [rax+150h]
mov [rax+138h], rcx
jmp short loc_1F48E
loc_1F47A:
mov rax, [rsp+58h+var_40]
mov ecx, [rax+12Ch]
add ecx, 0FFFFFFFFh
mov [rax+12Ch], ecx
loc_1F48E:
mov rax, [rsp+58h+var_40]
cmp dword ptr [rax+15Ch], 0
jnz short loc_1F4BE
mov rdi, [rsp+58h+var_40]
mov rsi, rdi
add rsi, 1B0h
add rdi, 158h
mov edx, 58h ; 'X'
call _memcpy
jmp short loc_1F4D2
loc_1F4BE:
mov rax, [rsp+58h+var_40]
mov ecx, [rax+15Ch]
add ecx, 0FFFFFFFFh
mov [rax+15Ch], ecx
loc_1F4D2:
mov rdi, [rsp+58h+var_40]
mov rsi, rdi
add rsi, 250h
add rdi, 208h
mov edx, 48h ; 'H'
call _memcpy
mov rdi, [rsp+58h+var_40]
mov rsi, rdi
add rsi, 2D0h
add rdi, 298h
mov edx, 38h ; '8'
call _memcpy
mov rdi, [rsp+58h+var_40]
add rdi, 140h
xor esi, esi
mov edx, 18h
call _memset
mov rdi, [rsp+58h+var_40]
add rdi, 1B0h
xor esi, esi
mov edx, 58h ; 'X'
call _memset
mov rdi, [rsp+58h+var_40]
add rdi, 250h
xor esi, esi
mov edx, 48h ; 'H'
call _memset
mov rdi, [rsp+58h+var_40]
add rdi, 2D0h
xor esi, esi
mov edx, 38h ; '8'
call _memset
mov rax, [rsp+58h+var_40]
test byte ptr [rax+158h], 1
jnz short loc_1F5BA
mov rax, [rsp+58h+var_40]
cmp dword ptr [rax+15Ch], 0
jnz short loc_1F5BA
mov rax, [rsp+58h+var_40]
cmp dword ptr [rax+12Ch], 0
jnz short loc_1F5BA
mov rax, [rsp+58h+var_40]
test byte ptr [rax+198h], 1
jz short loc_1F5BA
mov rax, [rsp+58h+var_40]
mov rcx, [rax+1A0h]
mov [rax+8], rcx
loc_1F5BA:
mov rsi, [rsp+58h+var_40]
mov eax, [rsi+31Ch]
inc eax
mov [rsi+31Ch], eax
mov rax, rsi
add rax, 350h
mov [rsp+58h+var_50], rax
lea rdi, [rsp+58h+var_28]
mov [rsp+58h+var_48], rdi
call _ZN9Simulator13getRegInfoStrB5cxx11Ev; Simulator::getRegInfoStr(void)
mov rdi, [rsp+58h+var_50]
mov rsi, [rsp+58h+var_48]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_; std::vector<std::string>::push_back(std::string&&)
jmp short $+2
loc_1F5FB:
lea rdi, [rsp+58h+var_28]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rdi, [rsp+58h+var_40]
add rdi, 318h
add rdi, 38h ; '8'
call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv; std::vector<std::string>::size(void)
cmp rax, offset loc_186A0
jb short loc_1F668
mov rdi, [rsp+58h+var_40]
add rdi, 318h
add rdi, 38h ; '8'
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5clearEv; std::vector<std::string>::clear(void)
mov rdi, [rsp+58h+var_40]
add rdi, 318h
add rdi, 20h ; ' '
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5clearEv; std::vector<std::string>::clear(void)
jmp short loc_1F668
mov rcx, rax
mov eax, edx
mov [rsp+arg_20], rcx
mov [rsp+arg_1C], eax
lea rdi, [rsp+arg_28]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_1F6C3
loc_1F668:
mov rax, [rsp+58h+var_40]
test byte ptr [rax+1], 1
jz short loc_1F67D
mov rdi, [rsp+58h+var_40]; this
call _ZN9Simulator9printInfoEv; Simulator::printInfo(void)
loc_1F67D:
mov rax, [rsp+58h+var_40]
test byte ptr [rax], 1
jz short loc_1F6BE
lea rdi, aTypeDToDumpMem; "Type d to dump memory in dump.txt, pres"...
mov al, 0
call _printf
loc_1F695:
call _getchar
mov [rsp+58h+var_35], al
movsx eax, al
cmp eax, 0Ah
jz short loc_1F6BC
movsx eax, [rsp+58h+var_35]
cmp eax, 64h ; 'd'
jnz short loc_1F6BA
mov rdi, [rsp+58h+var_40]; this
call _ZN9Simulator11dumpHistoryEv; Simulator::dumpHistory(void)
loc_1F6BA:
jmp short loc_1F695
loc_1F6BC:
jmp short $+2
loc_1F6BE:
jmp loc_1F39F
loc_1F6C3:
mov rdi, [rsp+arg_20]
call __Unwind_Resume
|
void __noreturn Simulator::simulate(Simulator *this)
{
int v1; // edx
long long v2; // rcx
int v3; // r8d
int v4; // r9d
int v5; // [rsp+0h] [rbp-58h]
long long v6; // [rsp+8h] [rbp-50h]
long long v7; // [rsp+10h] [rbp-48h]
Simulator *v8; // [rsp+18h] [rbp-40h]
long long v9; // [rsp+20h] [rbp-38h]
int v10; // [rsp+28h] [rbp-30h]
long long v11[5]; // [rsp+30h] [rbp-28h] BYREF
v11[4] = (long long)this;
v8 = this;
memset((char *)this + 296, 0LL, 24LL);
memset((char *)this + 320, 0LL, 24LL);
memset((char *)this + 344, 0LL, 88LL);
memset((char *)this + 432, 0LL, 88LL);
memset((char *)this + 520, 0LL, 72LL);
memset((char *)this + 592, 0LL, 72LL);
memset((char *)this + 664, 0LL, 56LL);
memset((char *)this + 720, 0LL, 56LL);
*((_BYTE *)this + 296) = 1;
*((_BYTE *)this + 344) = 1;
*((_BYTE *)this + 520) = 1;
*((_BYTE *)this + 664) = 1;
while ( 1 )
{
if ( *((_QWORD *)v8 + 2) )
*((_QWORD *)v8 + 2) = 0LL;
if ( *((_QWORD *)v8 + 4) < (unsigned long long)(unsigned int)(*((_DWORD *)v8 + 68) - *((_DWORD *)v8 + 69)) )
Simulator::panic(v8, "Stack Overflow!\n");
*((_BYTE *)v8 + 776) = 0;
*((_DWORD *)v8 + 195) = -1;
*((_BYTE *)v8 + 784) = 0;
*((_DWORD *)v8 + 197) = -1;
Simulator::fetch(v8);
Simulator::decode(v8);
Simulator::excecute(v8);
Simulator::memoryAccess(v8);
Simulator::writeBack(v8);
if ( *((_DWORD *)v8 + 75) )
{
--*((_DWORD *)v8 + 75);
}
else
{
*((_QWORD *)v8 + 37) = *((_QWORD *)v8 + 40);
*((_QWORD *)v8 + 38) = *((_QWORD *)v8 + 41);
*((_QWORD *)v8 + 39) = *((_QWORD *)v8 + 42);
}
if ( *((_DWORD *)v8 + 87) )
--*((_DWORD *)v8 + 87);
else
memcpy((char *)v8 + 344, (char *)v8 + 432, 88LL);
memcpy((char *)v8 + 520, (char *)v8 + 592, 72LL);
memcpy((char *)v8 + 664, (char *)v8 + 720, 56LL);
memset((char *)v8 + 320, 0LL, 24LL);
memset((char *)v8 + 432, 0LL, 88LL);
memset((char *)v8 + 592, 0LL, 72LL);
memset((char *)v8 + 720, 0LL, 56LL);
if ( (*((_BYTE *)v8 + 344) & 1) == 0
&& !*((_DWORD *)v8 + 87)
&& !*((_DWORD *)v8 + 75)
&& (*((_BYTE *)v8 + 408) & 1) != 0 )
{
v2 = *((_QWORD *)v8 + 52);
*((_QWORD *)v8 + 1) = v2;
}
++*((_DWORD *)v8 + 199);
Simulator::getRegInfoStr[abi:cxx11](
(unsigned int)v11,
(_DWORD)v8,
v1,
v2,
v3,
v4,
v5,
(_DWORD)v8 + 848,
(unsigned int)v11,
(_DWORD)v8,
v9,
v10,
v11[0]);
std::vector<std::string>::push_back(v6, v7);
std::string::~string(v11);
if ( std::vector<std::string>::size((char *)v8 + 848) >= (unsigned long long)&loc_186A0 )
{
std::vector<std::string>::clear((char *)v8 + 848);
std::vector<std::string>::clear((char *)v8 + 824);
}
if ( (*((_BYTE *)v8 + 1) & 1) != 0 )
Simulator::printInfo(v8);
if ( (*(_BYTE *)v8 & 1) != 0 )
{
printf("Type d to dump memory in dump.txt, press ENTER to continue: ");
while ( 1 )
{
BYTE3(v9) = getchar();
if ( SBYTE3(v9) == 10 )
break;
if ( SBYTE3(v9) == 100 )
Simulator::dumpHistory(v8);
}
}
}
}
|
simulate:
SUB RSP,0x58
MOV qword ptr [RSP + 0x50],RDI
MOV RDI,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x18],RDI
ADD RDI,0x128
XOR ESI,ESI
MOV EDX,0x18
CALL 0x00115120
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x140
XOR ESI,ESI
MOV EDX,0x18
CALL 0x00115120
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x158
XOR ESI,ESI
MOV EDX,0x58
CALL 0x00115120
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x1b0
XOR ESI,ESI
MOV EDX,0x58
CALL 0x00115120
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x208
XOR ESI,ESI
MOV EDX,0x48
CALL 0x00115120
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x250
XOR ESI,ESI
MOV EDX,0x48
CALL 0x00115120
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x298
XOR ESI,ESI
MOV EDX,0x38
CALL 0x00115120
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x2d0
XOR ESI,ESI
MOV EDX,0x38
CALL 0x00115120
MOV RAX,qword ptr [RSP + 0x18]
MOV byte ptr [RAX + 0x128],0x1
MOV byte ptr [RAX + 0x158],0x1
MOV byte ptr [RAX + 0x208],0x1
MOV byte ptr [RAX + 0x298],0x1
LAB_0011f39f:
MOV RAX,qword ptr [RSP + 0x18]
CMP qword ptr [RAX + 0x10],0x0
JZ 0x0011f3b8
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RAX + 0x10],0x0
LAB_0011f3b8:
MOV RDX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RDX + 0x20]
MOV ECX,dword ptr [RDX + 0x110]
SUB ECX,dword ptr [RDX + 0x114]
MOV ECX,ECX
CMP RAX,RCX
JNC 0x0011f3e7
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[0x129aeb]
MOV AL,0x0
CALL 0x0011f6d0
LAB_0011f3e7:
MOV RDI,qword ptr [RSP + 0x18]
MOV byte ptr [RDI + 0x308],0x0
MOV dword ptr [RDI + 0x30c],0xffffffff
MOV byte ptr [RDI + 0x310],0x0
MOV dword ptr [RDI + 0x314],0xffffffff
CALL 0x0011f7e0
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0011f8b0
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00122720
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001230f0
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00123760
MOV RAX,qword ptr [RSP + 0x18]
CMP dword ptr [RAX + 0x12c],0x0
JNZ 0x0011f47a
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RAX + 0x140]
MOV qword ptr [RAX + 0x128],RCX
MOV RCX,qword ptr [RAX + 0x148]
MOV qword ptr [RAX + 0x130],RCX
MOV RCX,qword ptr [RAX + 0x150]
MOV qword ptr [RAX + 0x138],RCX
JMP 0x0011f48e
LAB_0011f47a:
MOV RAX,qword ptr [RSP + 0x18]
MOV ECX,dword ptr [RAX + 0x12c]
ADD ECX,-0x1
MOV dword ptr [RAX + 0x12c],ECX
LAB_0011f48e:
MOV RAX,qword ptr [RSP + 0x18]
CMP dword ptr [RAX + 0x15c],0x0
JNZ 0x0011f4be
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,RDI
ADD RSI,0x1b0
ADD RDI,0x158
MOV EDX,0x58
CALL 0x00115190
JMP 0x0011f4d2
LAB_0011f4be:
MOV RAX,qword ptr [RSP + 0x18]
MOV ECX,dword ptr [RAX + 0x15c]
ADD ECX,-0x1
MOV dword ptr [RAX + 0x15c],ECX
LAB_0011f4d2:
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,RDI
ADD RSI,0x250
ADD RDI,0x208
MOV EDX,0x48
CALL 0x00115190
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,RDI
ADD RSI,0x2d0
ADD RDI,0x298
MOV EDX,0x38
CALL 0x00115190
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x140
XOR ESI,ESI
MOV EDX,0x18
CALL 0x00115120
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x1b0
XOR ESI,ESI
MOV EDX,0x58
CALL 0x00115120
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x250
XOR ESI,ESI
MOV EDX,0x48
CALL 0x00115120
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x2d0
XOR ESI,ESI
MOV EDX,0x38
CALL 0x00115120
MOV RAX,qword ptr [RSP + 0x18]
TEST byte ptr [RAX + 0x158],0x1
JNZ 0x0011f5ba
MOV RAX,qword ptr [RSP + 0x18]
CMP dword ptr [RAX + 0x15c],0x0
JNZ 0x0011f5ba
MOV RAX,qword ptr [RSP + 0x18]
CMP dword ptr [RAX + 0x12c],0x0
JNZ 0x0011f5ba
MOV RAX,qword ptr [RSP + 0x18]
TEST byte ptr [RAX + 0x198],0x1
JZ 0x0011f5ba
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RAX + 0x1a0]
MOV qword ptr [RAX + 0x8],RCX
LAB_0011f5ba:
MOV RSI,qword ptr [RSP + 0x18]
MOV EAX,dword ptr [RSI + 0x31c]
INC EAX
MOV dword ptr [RSI + 0x31c],EAX
MOV RAX,RSI
ADD RAX,0x350
MOV qword ptr [RSP + 0x8],RAX
LEA RDI,[RSP + 0x30]
MOV qword ptr [RSP + 0x10],RDI
CALL 0x001239e0
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x10]
LAB_0011f5f4:
CALL 0x00124230
LAB_0011f5f9:
JMP 0x0011f5fb
LAB_0011f5fb:
LEA RDI,[RSP + 0x30]
CALL 0x00115140
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x318
ADD RDI,0x38
CALL 0x00124260
CMP RAX,0x186a0
JC 0x0011f668
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x318
ADD RDI,0x38
CALL 0x00124280
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x318
ADD RDI,0x20
CALL 0x00124280
JMP 0x0011f668
LAB_0011f668:
MOV RAX,qword ptr [RSP + 0x18]
TEST byte ptr [RAX + 0x1],0x1
JZ 0x0011f67d
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00123b50
LAB_0011f67d:
MOV RAX,qword ptr [RSP + 0x18]
TEST byte ptr [RAX],0x1
JZ 0x0011f6be
LEA RDI,[0x129afc]
MOV AL,0x0
CALL 0x00115050
LAB_0011f695:
CALL 0x00115300
MOV byte ptr [RSP + 0x23],AL
MOVSX EAX,AL
CMP EAX,0xa
JZ 0x0011f6bc
MOVSX EAX,byte ptr [RSP + 0x23]
CMP EAX,0x64
JNZ 0x0011f6ba
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00123c10
LAB_0011f6ba:
JMP 0x0011f695
LAB_0011f6bc:
JMP 0x0011f6be
LAB_0011f6be:
JMP 0x0011f39f
|
/* Simulator::simulate() */
void __thiscall Simulator::simulate(Simulator *this)
{
int iVar1;
ulong uVar2;
string local_28 [32];
Simulator *local_8;
local_8 = this;
memset(this + 0x128,0,0x18);
memset(this + 0x140,0,0x18);
memset(this + 0x158,0,0x58);
memset(this + 0x1b0,0,0x58);
memset(this + 0x208,0,0x48);
memset(this + 0x250,0,0x48);
memset(this + 0x298,0,0x38);
memset(this + 0x2d0,0,0x38);
this[0x128] = (Simulator)0x1;
this[0x158] = (Simulator)0x1;
this[0x208] = (Simulator)0x1;
this[0x298] = (Simulator)0x1;
do {
if (*(long *)(this + 0x10) != 0) {
*(int8 *)(this + 0x10) = 0;
}
if (*(ulong *)(this + 0x20) < (ulong)(uint)(*(int *)(this + 0x110) - *(int *)(this + 0x114))) {
panic((char *)this,"Stack Overflow!\n");
}
this[0x308] = (Simulator)0x0;
*(int4 *)(this + 0x30c) = 0xffffffff;
this[0x310] = (Simulator)0x0;
*(int4 *)(this + 0x314) = 0xffffffff;
fetch(this);
decode(this);
excecute(this);
memoryAccess(this);
writeBack(this);
if (*(int *)(this + 300) == 0) {
*(int8 *)(this + 0x128) = *(int8 *)(this + 0x140);
*(int8 *)(this + 0x130) = *(int8 *)(this + 0x148);
*(int8 *)(this + 0x138) = *(int8 *)(this + 0x150);
}
else {
*(int *)(this + 300) = *(int *)(this + 300) + -1;
}
if (*(int *)(this + 0x15c) == 0) {
memcpy(this + 0x158,this + 0x1b0,0x58);
}
else {
*(int *)(this + 0x15c) = *(int *)(this + 0x15c) + -1;
}
memcpy(this + 0x208,this + 0x250,0x48);
memcpy(this + 0x298,this + 0x2d0,0x38);
memset(this + 0x140,0,0x18);
memset(this + 0x1b0,0,0x58);
memset(this + 0x250,0,0x48);
memset(this + 0x2d0,0,0x38);
if ((((((byte)this[0x158] & 1) == 0) && (*(int *)(this + 0x15c) == 0)) &&
(*(int *)(this + 300) == 0)) && (((byte)this[0x198] & 1) != 0)) {
*(int8 *)(this + 8) = *(int8 *)(this + 0x1a0);
}
*(int *)(this + 0x31c) = *(int *)(this + 0x31c) + 1;
getRegInfoStr_abi_cxx11_();
/* try { // try from 0011f5f4 to 0011f5f8 has its CatchHandler @ 0011f64e */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x350),
local_28);
std::__cxx11::string::~string(local_28);
uVar2 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::size
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)
(this + 0x350));
if (99999 < uVar2) {
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::clear
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x350)
);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::clear
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x338)
);
}
if (((byte)this[1] & 1) != 0) {
printInfo(this);
}
if (((byte)*this & 1) != 0) {
printf("Type d to dump memory in dump.txt, press ENTER to continue: ");
while( true ) {
iVar1 = getchar();
if ((char)iVar1 == '\n') break;
if ((char)iVar1 == 'd') {
dumpHistory(this);
}
}
}
} while( true );
}
|
|
59,559
|
Simulator::simulate()
|
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/Simulator.cpp
|
void Simulator::simulate() {
// Initialize pipeline registers
memset(&this->fReg, 0, sizeof(this->fReg));
memset(&this->fRegNew, 0, sizeof(this->fRegNew));
memset(&this->dReg, 0, sizeof(this->dReg));
memset(&this->dRegNew, 0, sizeof(this->dReg));
memset(&this->eReg, 0, sizeof(this->eReg));
memset(&this->eRegNew, 0, sizeof(this->eRegNew));
memset(&this->mReg, 0, sizeof(this->mReg));
memset(&this->mRegNew, 0, sizeof(this->mRegNew));
// Insert Bubble to later pipeline stages
fReg.bubble = true;
dReg.bubble = true;
eReg.bubble = true;
mReg.bubble = true;
// Main Simulation Loop
while (true) {
if (this->reg[0] != 0) {
// Some instruction might set this register to zero
this->reg[0] = 0;
// this->panic("Register 0's value is not zero!\n");
}
if (this->reg[REG_SP] < this->stackBase - this->maximumStackSize) {
this->panic("Stack Overflow!\n");
}
this->executeWriteBack = false;
this->executeWBReg = -1;
this->memoryWriteBack = false;
this->memoryWBReg = -1;
// THE EXECUTION ORDER of these functions are important!!!
// Changing them will introduce strange bugs
this->fetch();
this->decode();
this->excecute();
this->memoryAccess();
this->writeBack();
if (!this->fReg.stall) this->fReg = this->fRegNew;
else this->fReg.stall--;
if (!this->dReg.stall) this->dReg = this->dRegNew;
else this->dReg.stall--;
this->eReg = this->eRegNew;
this->mReg = this->mRegNew;
memset(&this->fRegNew, 0, sizeof(this->fRegNew));
memset(&this->dRegNew, 0, sizeof(this->dRegNew));
memset(&this->eRegNew, 0, sizeof(this->eRegNew));
memset(&this->mRegNew, 0, sizeof(this->mRegNew));
// The Branch perdiction happens here to avoid strange bugs in branch prediction
if (!this->dReg.bubble && !this->dReg.stall && !this->fReg.stall && this->dReg.predictedBranch) {
this->pc = this->dReg.predictedPC;
}
this->history.cycleCount++;
this->history.regRecord.push_back(this->getRegInfoStr());
if (this->history.regRecord.size() >= 100000) { // Avoid using up memory
this->history.regRecord.clear();
this->history.instRecord.clear();
}
if (verbose) {
this->printInfo();
}
if (this->isSingleStep) {
printf("Type d to dump memory in dump.txt, press ENTER to continue: ");
char ch;
while ((ch = getchar()) != '\n') {
if (ch == 'd') {
this->dumpHistory();
}
}
}
}
}
|
O3
|
cpp
|
Simulator::simulate():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
addq $0x128, %rdi # imm = 0x128
leaq 0x140(%rbx), %rax
movq %rax, 0x8(%rsp)
leaq 0x158(%rbx), %rax
movq %rax, 0x18(%rsp)
leaq 0x1b0(%rbx), %r12
leaq 0x208(%rbx), %rax
movq %rax, 0x30(%rsp)
leaq 0x250(%rbx), %rbp
leaq 0x298(%rbx), %r14
leaq 0x2d0(%rbx), %r15
xorl %r13d, %r13d
movl $0x1e0, %edx # imm = 0x1E0
movq %rdi, 0x20(%rsp)
xorl %esi, %esi
callq 0xb120
movb $0x1, %al
movb %al, 0x128(%rbx)
movb %al, 0x158(%rbx)
movb %al, 0x208(%rbx)
movb %al, 0x298(%rbx)
leaq 0x350(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x338(%rbx), %rax
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x10(%rbx)
je 0xf1c3
movq $0x0, 0x10(%rbx)
movl 0x110(%rbx), %eax
subl 0x114(%rbx), %eax
cmpq %rax, 0x20(%rbx)
jb 0xf3d7
movb %r13b, 0x308(%rbx)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
movl %eax, 0x30c(%rbx)
movb %r13b, 0x310(%rbx)
movl %eax, 0x314(%rbx)
movq %rbx, %rdi
callq 0xf4d4
movq %rbx, %rdi
callq 0xf55c
movq %rbx, %rdi
callq 0x11a8a
movq %rbx, %rdi
callq 0x120ea
movq %rbx, %rdi
callq 0x1249c
movl 0x12c(%rbx), %eax
testl %eax, %eax
je 0xf234
decl %eax
movl %eax, 0x12c(%rbx)
jmp 0xf24c
movq 0x8(%rsp), %rdx
movq 0x10(%rdx), %rax
movq 0x20(%rsp), %rcx
movq %rax, 0x10(%rcx)
movups (%rdx), %xmm0
movups %xmm0, (%rcx)
movl 0x15c(%rbx), %eax
testl %eax, %eax
je 0xf260
decl %eax
movl %eax, 0x15c(%rbx)
jmp 0xf276
movl $0xb, %ecx
movq 0x18(%rsp), %rdi
movq %r12, %rsi
rep movsq (%rsi), %es:(%rdi)
movl 0x15c(%rbx), %eax
movl $0x9, %ecx
movq 0x30(%rsp), %rdi
movq %rbp, %rsi
rep movsq (%rsi), %es:(%rdi)
movq 0x30(%r15), %rcx
movq %rcx, 0x30(%r14)
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups %xmm2, 0x20(%r14)
movups %xmm1, 0x10(%r14)
movups %xmm0, (%r14)
movq 0x8(%rsp), %rcx
movq %r13, 0x10(%rcx)
xorps %xmm0, %xmm0
movups %xmm0, (%rcx)
movq %r13, 0x50(%r12)
movups %xmm0, 0x40(%r12)
movups %xmm0, 0x30(%r12)
movups %xmm0, 0x20(%r12)
movups %xmm0, 0x10(%r12)
movups %xmm0, (%r12)
movq %r13, 0x40(%rbp)
movups %xmm0, 0x30(%rbp)
movups %xmm0, 0x20(%rbp)
movups %xmm0, 0x10(%rbp)
movups %xmm0, (%rbp)
movq %r13, 0x30(%r15)
movups %xmm0, 0x20(%r15)
movups %xmm0, 0x10(%r15)
movups %xmm0, (%r15)
cmpb $0x0, 0x158(%rbx)
jne 0xf32b
testl %eax, %eax
jne 0xf32b
cmpl $0x0, 0x12c(%rbx)
jne 0xf32b
cmpb $0x1, 0x198(%rbx)
jne 0xf32b
movq 0x1a0(%rbx), %rax
movq %rax, 0x8(%rbx)
incl 0x31c(%rbx)
leaq 0x38(%rsp), %r13
movq %r13, %rdi
movq %rbx, %rsi
callq 0x125f6
movq 0x10(%rsp), %rdi
movq %r13, %rsi
callq 0x12fb6
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0xf362
callq 0xb1a0
movq 0x358(%rbx), %rax
subq 0x350(%rbx), %rax
cmpq $0x30d3e1, %rax # imm = 0x30D3E1
movl $0x0, %r13d
jb 0xf392
movq 0x10(%rsp), %rdi
callq 0x12c3e
movq 0x28(%rsp), %rdi
callq 0x12c3e
cmpb $0x1, 0x1(%rbx)
jne 0xf3a0
movq %rbx, %rdi
callq 0x126f6
cmpb $0x1, (%rbx)
jne 0xf1b4
leaq 0x65e8(%rip), %rdi # 0x15998
xorl %eax, %eax
callq 0xb050
callq 0xb2c0
cmpb $0x64, %al
je 0xf3cd
movzbl %al, %eax
cmpl $0xa, %eax
jne 0xf3b7
jmp 0xf1b4
movq %rbx, %rdi
callq 0x1277c
jmp 0xf3b7
leaq 0x65a9(%rip), %rsi # 0x15987
movq %rbx, %rdi
xorl %eax, %eax
callq 0xf408
movq %rax, %rbx
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0xf3ff
callq 0xb1a0
movq %rbx, %rdi
callq 0xb360
nop
|
_ZN9Simulator8simulateEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov rbx, rdi
add rdi, 128h
lea rax, [rbx+140h]
mov [rsp+88h+var_80], rax
lea rax, [rbx+158h]
mov [rsp+88h+var_70], rax
lea r12, [rbx+1B0h]
lea rax, [rbx+208h]
mov [rsp+88h+var_58], rax
lea rbp, [rbx+250h]
lea r14, [rbx+298h]
lea r15, [rbx+2D0h]
xor r13d, r13d
mov edx, 1E0h
mov [rsp+88h+var_68], rdi
xor esi, esi
call _memset
mov al, 1
mov [rbx+128h], al
mov [rbx+158h], al
mov [rbx+208h], al
mov [rbx+298h], al
lea rax, [rbx+350h]
mov [rsp+88h+var_78], rax
lea rax, [rbx+338h]
mov [rsp+88h+var_60], rax
loc_F1B4:
cmp qword ptr [rbx+10h], 0
jz short loc_F1C3
mov qword ptr [rbx+10h], 0
loc_F1C3:
mov eax, [rbx+110h]
sub eax, [rbx+114h]
cmp [rbx+20h], rax
jb loc_F3D7
mov [rbx+308h], r13b
mov eax, 0FFFFFFFFh
mov [rbx+30Ch], eax
mov [rbx+310h], r13b
mov [rbx+314h], eax
mov rdi, rbx; this
call _ZN9Simulator5fetchEv; Simulator::fetch(void)
mov rdi, rbx; this
call _ZN9Simulator6decodeEv; Simulator::decode(void)
mov rdi, rbx; this
call _ZN9Simulator8excecuteEv; Simulator::excecute(void)
mov rdi, rbx; this
call _ZN9Simulator12memoryAccessEv; Simulator::memoryAccess(void)
mov rdi, rbx; this
call _ZN9Simulator9writeBackEv; Simulator::writeBack(void)
mov eax, [rbx+12Ch]
test eax, eax
jz short loc_F234
dec eax
mov [rbx+12Ch], eax
jmp short loc_F24C
loc_F234:
mov rdx, [rsp+88h+var_80]
mov rax, [rdx+10h]
mov rcx, [rsp+88h+var_68]
mov [rcx+10h], rax
movups xmm0, xmmword ptr [rdx]
movups xmmword ptr [rcx], xmm0
loc_F24C:
mov eax, [rbx+15Ch]
test eax, eax
jz short loc_F260
dec eax
mov [rbx+15Ch], eax
jmp short loc_F276
loc_F260:
mov ecx, 0Bh
mov rdi, [rsp+88h+var_70]
mov rsi, r12
rep movsq
mov eax, [rbx+15Ch]
loc_F276:
mov ecx, 9
mov rdi, [rsp+88h+var_58]
mov rsi, rbp
rep movsq
mov rcx, [r15+30h]
mov [r14+30h], rcx
movups xmm0, xmmword ptr [r15]
movups xmm1, xmmword ptr [r15+10h]
movups xmm2, xmmword ptr [r15+20h]
movups xmmword ptr [r14+20h], xmm2
movups xmmword ptr [r14+10h], xmm1
movups xmmword ptr [r14], xmm0
mov rcx, [rsp+88h+var_80]
mov [rcx+10h], r13
xorps xmm0, xmm0
movups xmmword ptr [rcx], xmm0
mov [r12+50h], r13
movups xmmword ptr [r12+40h], xmm0
movups xmmword ptr [r12+30h], xmm0
movups xmmword ptr [r12+20h], xmm0
movups xmmword ptr [r12+10h], xmm0
movups xmmword ptr [r12], xmm0
mov [rbp+40h], r13
movups xmmword ptr [rbp+30h], xmm0
movups xmmword ptr [rbp+20h], xmm0
movups xmmword ptr [rbp+10h], xmm0
movups xmmword ptr [rbp+0], xmm0
mov [r15+30h], r13
movups xmmword ptr [r15+20h], xmm0
movups xmmword ptr [r15+10h], xmm0
movups xmmword ptr [r15], xmm0
cmp byte ptr [rbx+158h], 0
jnz short loc_F32B
test eax, eax
jnz short loc_F32B
cmp dword ptr [rbx+12Ch], 0
jnz short loc_F32B
cmp byte ptr [rbx+198h], 1
jnz short loc_F32B
mov rax, [rbx+1A0h]
mov [rbx+8], rax
loc_F32B:
inc dword ptr [rbx+31Ch]
lea r13, [rsp+88h+var_50]
mov rdi, r13
mov rsi, rbx
call _ZN9Simulator13getRegInfoStrB5cxx11Ev; Simulator::getRegInfoStr(void)
mov rdi, [rsp+88h+var_78]
mov rsi, r13
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEEvDpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&)
mov rdi, [rsp+88h+var_50]; void *
lea rax, [rsp+88h+var_40]
cmp rdi, rax
jz short loc_F362
call __ZdlPv; operator delete(void *)
loc_F362:
mov rax, [rbx+358h]
sub rax, [rbx+350h]
cmp rax, 30D3E1h
mov r13d, 0
jb short loc_F392
mov rdi, [rsp+88h+var_78]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5clearEv; std::vector<std::string>::clear(void)
mov rdi, [rsp+88h+var_60]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5clearEv; std::vector<std::string>::clear(void)
loc_F392:
cmp byte ptr [rbx+1], 1
jnz short loc_F3A0
mov rdi, rbx; this
call _ZN9Simulator9printInfoEv; Simulator::printInfo(void)
loc_F3A0:
cmp byte ptr [rbx], 1
jnz loc_F1B4
lea rdi, aTypeDToDumpMem; "Type d to dump memory in dump.txt, pres"...
xor eax, eax
call _printf
loc_F3B7:
call _getchar
cmp al, 64h ; 'd'
jz short loc_F3CD
movzx eax, al
cmp eax, 0Ah
jnz short loc_F3B7
jmp loc_F1B4
loc_F3CD:
mov rdi, rbx; this
call _ZN9Simulator11dumpHistoryEv; Simulator::dumpHistory(void)
jmp short loc_F3B7
loc_F3D7:
lea rsi, aStackOverflow; "Stack Overflow!\n"
mov rdi, rbx; this
xor eax, eax
call _ZN9Simulator5panicEPKcz; Simulator::panic(char const*,...)
mov rbx, rax
mov rdi, [rsp+88h+var_50]; void *
lea rax, [rsp+88h+var_40]
cmp rdi, rax
jz short loc_F3FF
call __ZdlPv; operator delete(void *)
loc_F3FF:
mov rdi, rbx
call __Unwind_Resume
|
void __noreturn Simulator::simulate(Simulator *this)
{
_OWORD *v1; // r12
_OWORD *v2; // rbp
__int128 *v3; // r15
int v4; // edx
int v5; // r8d
int v6; // r9d
int v7; // eax
int v8; // eax
int v9; // eax
__int128 v10; // xmm0
__int128 v11; // xmm1
char v12; // al
long long v13; // [rsp+0h] [rbp-88h]
_OWORD *v14; // [rsp+8h] [rbp-80h]
char *v15; // [rsp+10h] [rbp-78h]
void *v16[2]; // [rsp+38h] [rbp-50h] BYREF
char v17; // [rsp+48h] [rbp-40h] BYREF
v14 = (_OWORD *)((char *)this + 320);
v1 = (_OWORD *)((char *)this + 432);
v2 = (_OWORD *)((char *)this + 592);
v3 = (__int128 *)((char *)this + 720);
memset((char *)this + 296, 0LL, 480LL);
*((_BYTE *)this + 296) = 1;
*((_BYTE *)this + 344) = 1;
*((_BYTE *)this + 520) = 1;
*((_BYTE *)this + 664) = 1;
v15 = (char *)this + 848;
while ( 1 )
{
if ( *((_QWORD *)this + 2) )
*((_QWORD *)this + 2) = 0LL;
if ( *((_QWORD *)this + 4) < (unsigned long long)(unsigned int)(*((_DWORD *)this + 68) - *((_DWORD *)this + 69)) )
Simulator::panic(this, "Stack Overflow!\n");
*((_BYTE *)this + 776) = 0;
*((_DWORD *)this + 195) = -1;
*((_BYTE *)this + 784) = 0;
*((_DWORD *)this + 197) = -1;
Simulator::fetch(this);
Simulator::decode(this);
Simulator::excecute(this);
Simulator::memoryAccess(this);
Simulator::writeBack(this);
v7 = *((_DWORD *)this + 75);
if ( v7 )
{
*((_DWORD *)this + 75) = v7 - 1;
}
else
{
v4 = (_DWORD)this + 320;
*((_QWORD *)this + 39) = *((_QWORD *)this + 42);
*(_OWORD *)((char *)this + 296) = *v14;
}
v8 = *((_DWORD *)this + 87);
if ( v8 )
{
v9 = v8 - 1;
*((_DWORD *)this + 87) = v9;
}
else
{
qmemcpy((char *)this + 344, v1, 0x58uLL);
v9 = *((_DWORD *)this + 87);
}
qmemcpy((char *)this + 520, v2, 0x48uLL);
*((_QWORD *)this + 89) = *((_QWORD *)this + 96);
v10 = *v3;
v11 = *((_OWORD *)this + 46);
*(_OWORD *)((char *)this + 696) = *((_OWORD *)this + 47);
*(_OWORD *)((char *)this + 680) = v11;
*(_OWORD *)((char *)this + 664) = v10;
*((_QWORD *)this + 42) = 0LL;
*v14 = 0LL;
*((_QWORD *)this + 64) = 0LL;
*((_OWORD *)this + 31) = 0LL;
*((_OWORD *)this + 30) = 0LL;
*((_OWORD *)this + 29) = 0LL;
*((_OWORD *)this + 28) = 0LL;
*v1 = 0LL;
*((_QWORD *)this + 82) = 0LL;
*((_OWORD *)this + 40) = 0LL;
*((_OWORD *)this + 39) = 0LL;
*((_OWORD *)this + 38) = 0LL;
*v2 = 0LL;
*((_QWORD *)this + 96) = 0LL;
*((_OWORD *)this + 47) = 0LL;
*((_OWORD *)this + 46) = 0LL;
*v3 = 0LL;
if ( !*((_BYTE *)this + 344) && !v9 && !*((_DWORD *)this + 75) && *((_BYTE *)this + 408) == 1 )
*((_QWORD *)this + 1) = *((_QWORD *)this + 52);
++*((_DWORD *)this + 199);
Simulator::getRegInfoStr[abi:cxx11]((unsigned int)v16, (_DWORD)this, v4, (_DWORD)v14, v5, v6, v13);
std::vector<std::string>::emplace_back<std::string>(v15, v16);
if ( v16[0] != &v17 )
operator delete(v16[0]);
if ( *((_QWORD *)this + 107) - *((_QWORD *)this + 106) >= 0x30D3E1uLL )
{
std::vector<std::string>::clear(v15);
std::vector<std::string>::clear((char *)this + 824);
}
if ( *((_BYTE *)this + 1) == 1 )
Simulator::printInfo(this);
if ( *(_BYTE *)this == 1 )
{
printf("Type d to dump memory in dump.txt, press ENTER to continue: ");
do
{
v12 = getchar();
if ( v12 == 100 )
Simulator::dumpHistory(this);
}
while ( v12 != 10 );
}
}
}
|
simulate:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV RBX,RDI
ADD RDI,0x128
LEA RAX,[RBX + 0x140]
MOV qword ptr [RSP + 0x8],RAX
LEA RAX,[RBX + 0x158]
MOV qword ptr [RSP + 0x18],RAX
LEA R12,[RBX + 0x1b0]
LEA RAX,[RBX + 0x208]
MOV qword ptr [RSP + 0x30],RAX
LEA RBP,[RBX + 0x250]
LEA R14,[RBX + 0x298]
LEA R15,[RBX + 0x2d0]
XOR R13D,R13D
MOV EDX,0x1e0
MOV qword ptr [RSP + 0x20],RDI
XOR ESI,ESI
CALL 0x0010b120
MOV AL,0x1
MOV byte ptr [RBX + 0x128],AL
MOV byte ptr [RBX + 0x158],AL
MOV byte ptr [RBX + 0x208],AL
MOV byte ptr [RBX + 0x298],AL
LEA RAX,[RBX + 0x350]
MOV qword ptr [RSP + 0x10],RAX
LEA RAX,[RBX + 0x338]
MOV qword ptr [RSP + 0x28],RAX
LAB_0010f1b4:
CMP qword ptr [RBX + 0x10],0x0
JZ 0x0010f1c3
MOV qword ptr [RBX + 0x10],0x0
LAB_0010f1c3:
MOV EAX,dword ptr [RBX + 0x110]
SUB EAX,dword ptr [RBX + 0x114]
CMP qword ptr [RBX + 0x20],RAX
JC 0x0010f3d7
MOV byte ptr [RBX + 0x308],R13B
MOV EAX,0xffffffff
MOV dword ptr [RBX + 0x30c],EAX
MOV byte ptr [RBX + 0x310],R13B
MOV dword ptr [RBX + 0x314],EAX
MOV RDI,RBX
CALL 0x0010f4d4
MOV RDI,RBX
CALL 0x0010f55c
MOV RDI,RBX
CALL 0x00111a8a
MOV RDI,RBX
CALL 0x001120ea
MOV RDI,RBX
CALL 0x0011249c
MOV EAX,dword ptr [RBX + 0x12c]
TEST EAX,EAX
JZ 0x0010f234
DEC EAX
MOV dword ptr [RBX + 0x12c],EAX
JMP 0x0010f24c
LAB_0010f234:
MOV RDX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RDX + 0x10]
MOV RCX,qword ptr [RSP + 0x20]
MOV qword ptr [RCX + 0x10],RAX
MOVUPS XMM0,xmmword ptr [RDX]
MOVUPS xmmword ptr [RCX],XMM0
LAB_0010f24c:
MOV EAX,dword ptr [RBX + 0x15c]
TEST EAX,EAX
JZ 0x0010f260
DEC EAX
MOV dword ptr [RBX + 0x15c],EAX
JMP 0x0010f276
LAB_0010f260:
MOV ECX,0xb
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,R12
MOVSQ.REP RDI,RSI
MOV EAX,dword ptr [RBX + 0x15c]
LAB_0010f276:
MOV ECX,0x9
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,RBP
MOVSQ.REP RDI,RSI
MOV RCX,qword ptr [R15 + 0x30]
MOV qword ptr [R14 + 0x30],RCX
MOVUPS XMM0,xmmword ptr [R15]
MOVUPS XMM1,xmmword ptr [R15 + 0x10]
MOVUPS XMM2,xmmword ptr [R15 + 0x20]
MOVUPS xmmword ptr [R14 + 0x20],XMM2
MOVUPS xmmword ptr [R14 + 0x10],XMM1
MOVUPS xmmword ptr [R14],XMM0
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RCX + 0x10],R13
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RCX],XMM0
MOV qword ptr [R12 + 0x50],R13
MOVUPS xmmword ptr [R12 + 0x40],XMM0
MOVUPS xmmword ptr [R12 + 0x30],XMM0
MOVUPS xmmword ptr [R12 + 0x20],XMM0
MOVUPS xmmword ptr [R12 + 0x10],XMM0
MOVUPS xmmword ptr [R12],XMM0
MOV qword ptr [RBP + 0x40],R13
MOVUPS xmmword ptr [RBP + 0x30],XMM0
MOVUPS xmmword ptr [RBP + 0x20],XMM0
MOVUPS xmmword ptr [RBP + 0x10],XMM0
MOVUPS xmmword ptr [RBP],XMM0
MOV qword ptr [R15 + 0x30],R13
MOVUPS xmmword ptr [R15 + 0x20],XMM0
MOVUPS xmmword ptr [R15 + 0x10],XMM0
MOVUPS xmmword ptr [R15],XMM0
CMP byte ptr [RBX + 0x158],0x0
JNZ 0x0010f32b
TEST EAX,EAX
JNZ 0x0010f32b
CMP dword ptr [RBX + 0x12c],0x0
JNZ 0x0010f32b
CMP byte ptr [RBX + 0x198],0x1
JNZ 0x0010f32b
MOV RAX,qword ptr [RBX + 0x1a0]
MOV qword ptr [RBX + 0x8],RAX
LAB_0010f32b:
INC dword ptr [RBX + 0x31c]
LEA R13,[RSP + 0x38]
MOV RDI,R13
MOV RSI,RBX
CALL 0x001125f6
LAB_0010f341:
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,R13
CALL 0x00112fb6
LAB_0010f34e:
MOV RDI,qword ptr [RSP + 0x38]
LEA RAX,[RSP + 0x48]
CMP RDI,RAX
JZ 0x0010f362
CALL 0x0010b1a0
LAB_0010f362:
MOV RAX,qword ptr [RBX + 0x358]
SUB RAX,qword ptr [RBX + 0x350]
CMP RAX,0x30d3e1
MOV R13D,0x0
JC 0x0010f392
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x00112c3e
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x00112c3e
LAB_0010f392:
CMP byte ptr [RBX + 0x1],0x1
JNZ 0x0010f3a0
MOV RDI,RBX
CALL 0x001126f6
LAB_0010f3a0:
CMP byte ptr [RBX],0x1
JNZ 0x0010f1b4
LEA RDI,[0x115998]
XOR EAX,EAX
CALL 0x0010b050
LAB_0010f3b7:
CALL 0x0010b2c0
CMP AL,0x64
JZ 0x0010f3cd
MOVZX EAX,AL
CMP EAX,0xa
JNZ 0x0010f3b7
JMP 0x0010f1b4
LAB_0010f3cd:
MOV RDI,RBX
CALL 0x0011277c
JMP 0x0010f3b7
LAB_0010f3d7:
LEA RSI,[0x115987]
MOV RDI,RBX
XOR EAX,EAX
CALL 0x0010f408
|
/* Simulator::simulate() */
void __thiscall Simulator::simulate(Simulator *this)
{
int iVar1;
uint uVar2;
long lVar3;
Simulator *pSVar4;
Simulator *pSVar5;
byte bVar6;
int1 *local_50 [2];
int1 local_40 [16];
bVar6 = 0;
memset(this + 0x128,0,0x1e0);
this[0x128] = (Simulator)0x1;
this[0x158] = (Simulator)0x1;
this[0x208] = (Simulator)0x1;
this[0x298] = (Simulator)0x1;
while( true ) {
if (*(long *)(this + 0x10) != 0) {
*(int8 *)(this + 0x10) = 0;
}
if (*(ulong *)(this + 0x20) < (ulong)(uint)(*(int *)(this + 0x110) - *(int *)(this + 0x114)))
break;
this[0x308] = (Simulator)0x0;
*(int4 *)(this + 0x30c) = 0xffffffff;
this[0x310] = (Simulator)0x0;
*(int4 *)(this + 0x314) = 0xffffffff;
fetch(this);
decode(this);
excecute(this);
memoryAccess(this);
writeBack(this);
if (*(int *)(this + 300) == 0) {
*(int8 *)(this + 0x138) = *(int8 *)(this + 0x150);
*(int8 *)(this + 0x128) = *(int8 *)(this + 0x140);
*(int8 *)(this + 0x130) = *(int8 *)(this + 0x148);
}
else {
*(int *)(this + 300) = *(int *)(this + 300) + -1;
}
if (*(int *)(this + 0x15c) == 0) {
pSVar4 = this + 0x1b0;
pSVar5 = this + 0x158;
for (lVar3 = 0xb; lVar3 != 0; lVar3 = lVar3 + -1) {
*(int8 *)pSVar5 = *(int8 *)pSVar4;
pSVar4 = pSVar4 + (ulong)bVar6 * -0x10 + 8;
pSVar5 = pSVar5 + (ulong)bVar6 * -0x10 + 8;
}
iVar1 = *(int *)(this + 0x15c);
}
else {
iVar1 = *(int *)(this + 0x15c) + -1;
*(int *)(this + 0x15c) = iVar1;
}
pSVar4 = this + 0x250;
pSVar5 = this + 0x208;
for (lVar3 = 9; lVar3 != 0; lVar3 = lVar3 + -1) {
*(int8 *)pSVar5 = *(int8 *)pSVar4;
pSVar4 = pSVar4 + (ulong)bVar6 * -0x10 + 8;
pSVar5 = pSVar5 + (ulong)bVar6 * -0x10 + 8;
}
*(int8 *)(this + 0x2c8) = *(int8 *)(this + 0x300);
*(int8 *)(this + 0x2b8) = *(int8 *)(this + 0x2f0);
*(int8 *)(this + 0x2c0) = *(int8 *)(this + 0x2f8);
*(int8 *)(this + 0x2a8) = *(int8 *)(this + 0x2e0);
*(int8 *)(this + 0x2b0) = *(int8 *)(this + 0x2e8);
*(int8 *)(this + 0x298) = *(int8 *)(this + 0x2d0);
*(int8 *)(this + 0x2a0) = *(int8 *)(this + 0x2d8);
*(int8 *)(this + 0x150) = 0;
*(int8 *)(this + 0x140) = 0;
*(int8 *)(this + 0x148) = 0;
*(int8 *)(this + 0x200) = 0;
*(int8 *)(this + 0x1f0) = 0;
*(int8 *)(this + 0x1f8) = 0;
*(int8 *)(this + 0x1e0) = 0;
*(int8 *)(this + 0x1e8) = 0;
*(int8 *)(this + 0x1d0) = 0;
*(int8 *)(this + 0x1d8) = 0;
*(int8 *)(this + 0x1c0) = 0;
*(int8 *)(this + 0x1c8) = 0;
*(int8 *)(this + 0x1b0) = 0;
*(int8 *)(this + 0x1b8) = 0;
*(int8 *)(this + 0x290) = 0;
*(int8 *)(this + 0x280) = 0;
*(int8 *)(this + 0x288) = 0;
*(int8 *)(this + 0x270) = 0;
*(int8 *)(this + 0x278) = 0;
*(int8 *)(this + 0x260) = 0;
*(int8 *)(this + 0x268) = 0;
*(int8 *)(this + 0x250) = 0;
*(int8 *)(this + 600) = 0;
*(int8 *)(this + 0x300) = 0;
*(int8 *)(this + 0x2f0) = 0;
*(int8 *)(this + 0x2f8) = 0;
*(int8 *)(this + 0x2e0) = 0;
*(int8 *)(this + 0x2e8) = 0;
*(int8 *)(this + 0x2d0) = 0;
*(int8 *)(this + 0x2d8) = 0;
if ((((this[0x158] == (Simulator)0x0) && (iVar1 == 0)) && (*(int *)(this + 300) == 0)) &&
(this[0x198] == (Simulator)0x1)) {
*(int8 *)(this + 8) = *(int8 *)(this + 0x1a0);
}
*(int *)(this + 0x31c) = *(int *)(this + 0x31c) + 1;
getRegInfoStr_abi_cxx11_();
/* try { // try from 0010f341 to 0010f34d has its CatchHandler @ 0010f3e8 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::
emplace_back<std::__cxx11::string>
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x350),
(string *)local_50);
if (local_50[0] != local_40) {
operator_delete(local_50[0]);
}
if (0x30d3e0 < (ulong)(*(long *)(this + 0x358) - *(long *)(this + 0x350))) {
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::clear
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x350)
);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::clear
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x338)
);
}
if (this[1] == (Simulator)0x1) {
printInfo(this);
}
if (*this == (Simulator)0x1) {
printf("Type d to dump memory in dump.txt, press ENTER to continue: ");
do {
while (uVar2 = getchar(), (char)uVar2 == 'd') {
dumpHistory(this);
}
} while ((uVar2 & 0xff) != 10);
}
}
/* WARNING: Subroutine does not return */
panic((char *)this,"Stack Overflow!\n");
}
|
|
59,560
|
ma_insert_dynamic
|
eloqsql/libmariadb/libmariadb/ma_array.c
|
my_bool ma_insert_dynamic(DYNAMIC_ARRAY *array, void *element)
{
void *buffer;
if (array->elements == array->max_element)
{ /* Call only when necessary */
if (!(buffer=ma_alloc_dynamic(array)))
return TRUE;
}
else
{
buffer=array->buffer+(array->elements * array->size_of_element);
array->elements++;
}
memcpy(buffer,element,(size_t) array->size_of_element);
return FALSE;
}
|
O0
|
c
|
ma_insert_dynamic:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x10(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jne 0x746bb
movq -0x10(%rbp), %rdi
callq 0x74710
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x746b9
movb $0x1, -0x1(%rbp)
jmp 0x74701
jmp 0x746e7
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movl 0x8(%rcx), %ecx
movq -0x10(%rbp), %rdx
imull 0x14(%rdx), %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x8(%rax)
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, %edx
callq 0x380b0
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
ma_insert_dynamic:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov eax, [rax+8]
mov rcx, [rbp+var_10]
cmp eax, [rcx+0Ch]
jnz short loc_746BB
mov rdi, [rbp+var_10]
call ma_alloc_dynamic
mov [rbp+var_20], rax
cmp rax, 0
jnz short loc_746B9
mov [rbp+var_1], 1
jmp short loc_74701
loc_746B9:
jmp short loc_746E7
loc_746BB:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rcx, [rbp+var_10]
mov ecx, [rcx+8]
mov rdx, [rbp+var_10]
imul ecx, [rdx+14h]
mov ecx, ecx
add rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov ecx, [rax+8]
add ecx, 1
mov [rax+8], ecx
loc_746E7:
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_18]
mov rax, [rbp+var_10]
mov eax, [rax+14h]
mov edx, eax
call _memcpy
mov [rbp+var_1], 0
loc_74701:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
|
char ma_insert_dynamic(long long a1, long long a2)
{
long long v3; // [rsp+0h] [rbp-20h]
if ( *(_DWORD *)(a1 + 8) != *(_DWORD *)(a1 + 12) )
{
v3 = (unsigned int)(*(_DWORD *)(a1 + 20) * (*(_DWORD *)(a1 + 8))++) + *(_QWORD *)a1;
LABEL_6:
memcpy(v3, a2, *(unsigned int *)(a1 + 20));
return 0;
}
v3 = ma_alloc_dynamic(a1);
if ( v3 )
goto LABEL_6;
return 1;
}
|
ma_insert_dynamic:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0xc]
JNZ 0x001746bb
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00174710
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JNZ 0x001746b9
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00174701
LAB_001746b9:
JMP 0x001746e7
LAB_001746bb:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0x8]
MOV RDX,qword ptr [RBP + -0x10]
IMUL ECX,dword ptr [RDX + 0x14]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x8]
ADD ECX,0x1
MOV dword ptr [RAX + 0x8],ECX
LAB_001746e7:
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x14]
MOV EDX,EAX
CALL 0x001380b0
MOV byte ptr [RBP + -0x1],0x0
LAB_00174701:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 ma_insert_dynamic(long *param_1,void *param_2)
{
void *local_28;
if ((int)param_1[1] == *(int *)((long)param_1 + 0xc)) {
local_28 = (void *)ma_alloc_dynamic(param_1);
if (local_28 == (void *)0x0) {
return 1;
}
}
else {
local_28 = (void *)(*param_1 + (ulong)(uint)((int)param_1[1] * *(int *)((long)param_1 + 0x14)));
*(int *)(param_1 + 1) = (int)param_1[1] + 1;
}
memcpy(local_28,param_2,(ulong)*(uint *)((long)param_1 + 0x14));
return 0;
}
|
|
59,561
|
my_append_fix_badly_formed_tail
|
eloqsql/strings/ctype-mb.c
|
static size_t
my_append_fix_badly_formed_tail(CHARSET_INFO *cs,
char *to, char *to_end,
const char *from, const char *from_end,
size_t nchars,
MY_STRCOPY_STATUS *status)
{
char *to0= to;
for ( ; nchars; nchars--)
{
int chlen;
if ((chlen= my_ci_charlen(cs, (const uchar*) from,
(const uchar *) from_end)) > 0)
{
/* Found a valid character */ /* chlen == 1..MBMAXLEN */
DBUG_ASSERT(chlen <= (int) cs->mbmaxlen);
if (to + chlen > to_end)
goto end; /* Does not fit to "to" */
memcpy(to, from, (size_t) chlen);
from+= chlen;
to+= chlen;
continue;
}
if (chlen == MY_CS_ILSEQ) /* chlen == 0 */
{
DBUG_ASSERT(from < from_end); /* Shouldn't get MY_CS_ILSEQ if empty */
goto bad;
}
/* Got an incomplete character */ /* chlen == MY_CS_TOOSMALLXXX */
DBUG_ASSERT(chlen >= MY_CS_TOOSMALL6);
DBUG_ASSERT(chlen <= MY_CS_TOOSMALL);
if (from >= from_end)
break; /* End of the source string */
bad:
/* Bad byte sequence, or incomplete character found */
if (!status->m_well_formed_error_pos)
status->m_well_formed_error_pos= from;
if ((chlen= my_ci_wc_mb(cs, '?', (uchar*) to, (uchar *) to_end)) <= 0)
break; /* Question mark does not fit into the destination */
to+= chlen;
from++;
}
end:
status->m_source_end_pos= from;
return to - to0;
}
|
O0
|
c
|
my_append_fix_badly_formed_tail:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x40d45
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x40350
movl %eax, -0x3c(%rbp)
cmpl $0x0, %eax
jle 0x40cb2
jmp 0x40c62
jmp 0x40c64
movq -0x10(%rbp), %rax
movslq -0x3c(%rbp), %rcx
addq %rcx, %rax
cmpq -0x18(%rbp), %rax
jbe 0x40c7a
jmp 0x40d47
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movslq -0x3c(%rbp), %rdx
callq 0x24230
movl -0x3c(%rbp), %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movl -0x3c(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
jmp 0x40d34
cmpl $0x0, -0x3c(%rbp)
jne 0x40cbe
jmp 0x40cba
jmp 0x40cbc
jmp 0x40cd4
jmp 0x40cc0
jmp 0x40cc2
jmp 0x40cc4
jmp 0x40cc6
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jb 0x40cd2
jmp 0x40d45
jmp 0x40cd4
movq 0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x40ceb
movq -0x20(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x30(%rax), %rax
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rdx
movq -0x18(%rbp), %rcx
movl $0x3f, %esi
callq *%rax
movl %eax, -0x3c(%rbp)
cmpl $0x0, %eax
jg 0x40d17
jmp 0x40d45
movl -0x3c(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x30(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x40c3c
jmp 0x40d47
movq -0x20(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq -0x38(%rbp), %rcx
subq %rcx, %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_append_fix_badly_formed_tail:
push rbp
mov rbp, rsp
sub rsp, 40h
mov rax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_10]
mov [rbp+var_38], rax
loc_40C3C:
cmp [rbp+var_30], 0
jz loc_40D45
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
call my_ci_charlen_2
mov [rbp+var_3C], eax
cmp eax, 0
jle short loc_40CB2
jmp short $+2
loc_40C62:
jmp short $+2
loc_40C64:
mov rax, [rbp+var_10]
movsxd rcx, [rbp+var_3C]
add rax, rcx
cmp rax, [rbp+var_18]
jbe short loc_40C7A
jmp loc_40D47
loc_40C7A:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
movsxd rdx, [rbp+var_3C]
call _memcpy
mov ecx, [rbp+var_3C]
mov rax, [rbp+var_20]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_20], rax
mov ecx, [rbp+var_3C]
mov rax, [rbp+var_10]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_10], rax
jmp loc_40D34
loc_40CB2:
cmp [rbp+var_3C], 0
jnz short loc_40CBE
jmp short $+2
loc_40CBA:
jmp short $+2
loc_40CBC:
jmp short loc_40CD4
loc_40CBE:
jmp short $+2
loc_40CC0:
jmp short $+2
loc_40CC2:
jmp short $+2
loc_40CC4:
jmp short $+2
loc_40CC6:
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jb short loc_40CD2
jmp short loc_40D45
loc_40CD2:
jmp short $+2
loc_40CD4:
mov rax, [rbp+arg_0]
cmp qword ptr [rax+8], 0
jnz short loc_40CEB
mov rcx, [rbp+var_20]
mov rax, [rbp+arg_0]
mov [rax+8], rcx
loc_40CEB:
mov rax, [rbp+var_8]
mov rax, [rax+0B8h]
mov rax, [rax+30h]
mov rdi, [rbp+var_8]
mov rdx, [rbp+var_10]
mov rcx, [rbp+var_18]
mov esi, 3Fh ; '?'
call rax
mov [rbp+var_3C], eax
cmp eax, 0
jg short loc_40D17
jmp short loc_40D45
loc_40D17:
mov ecx, [rbp+var_3C]
mov rax, [rbp+var_10]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_10], rax
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
loc_40D34:
mov rax, [rbp+var_30]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_30], rax
jmp loc_40C3C
loc_40D45:
jmp short $+2
loc_40D47:
mov rcx, [rbp+var_20]
mov rax, [rbp+arg_0]
mov [rax], rcx
mov rax, [rbp+var_10]
mov rcx, [rbp+var_38]
sub rax, rcx
add rsp, 40h
pop rbp
retn
|
long long my_append_fix_badly_formed_tail(
long long a1,
long long a2,
unsigned long long a3,
unsigned long long a4,
unsigned long long a5,
long long a6,
unsigned long long *a7)
{
int v8; // [rsp+4h] [rbp-3Ch]
int v9; // [rsp+4h] [rbp-3Ch]
long long v14; // [rsp+30h] [rbp-10h]
v14 = a2;
while ( a6 )
{
v8 = my_ci_charlen_2(a1, a4, a5);
if ( v8 <= 0 )
{
if ( v8 && a4 >= a5 )
break;
if ( !a7[1] )
a7[1] = a4;
v9 = (*(long long ( **)(long long, long long, long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 48LL))(
a1,
63LL,
v14,
a3);
if ( v9 <= 0 )
break;
v14 += v9;
++a4;
}
else
{
if ( v8 + v14 > a3 )
break;
memcpy(v14, a4, v8);
a4 += v8;
v14 += v8;
}
--a6;
}
*a7 = a4;
return v14 - a2;
}
|
my_append_fix_badly_formed_tail:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x38],RAX
LAB_00140c3c:
CMP qword ptr [RBP + -0x30],0x0
JZ 0x00140d45
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x00140350
MOV dword ptr [RBP + -0x3c],EAX
CMP EAX,0x0
JLE 0x00140cb2
JMP 0x00140c62
LAB_00140c62:
JMP 0x00140c64
LAB_00140c64:
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,dword ptr [RBP + -0x3c]
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x18]
JBE 0x00140c7a
JMP 0x00140d47
LAB_00140c7a:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
MOVSXD RDX,dword ptr [RBP + -0x3c]
CALL 0x00124230
MOV ECX,dword ptr [RBP + -0x3c]
MOV RAX,qword ptr [RBP + -0x20]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV ECX,dword ptr [RBP + -0x3c]
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
JMP 0x00140d34
LAB_00140cb2:
CMP dword ptr [RBP + -0x3c],0x0
JNZ 0x00140cbe
JMP 0x00140cba
LAB_00140cba:
JMP 0x00140cbc
LAB_00140cbc:
JMP 0x00140cd4
LAB_00140cbe:
JMP 0x00140cc0
LAB_00140cc0:
JMP 0x00140cc2
LAB_00140cc2:
JMP 0x00140cc4
LAB_00140cc4:
JMP 0x00140cc6
LAB_00140cc6:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JC 0x00140cd2
JMP 0x00140d45
LAB_00140cd2:
JMP 0x00140cd4
LAB_00140cd4:
MOV RAX,qword ptr [RBP + 0x10]
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x00140ceb
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
LAB_00140ceb:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x18]
MOV ESI,0x3f
CALL RAX
MOV dword ptr [RBP + -0x3c],EAX
CMP EAX,0x0
JG 0x00140d17
JMP 0x00140d45
LAB_00140d17:
MOV ECX,dword ptr [RBP + -0x3c]
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
LAB_00140d34:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x30],RAX
JMP 0x00140c3c
LAB_00140d45:
JMP 0x00140d47
LAB_00140d47:
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x38]
SUB RAX,RCX
ADD RSP,0x40
POP RBP
RET
|
long my_append_fix_badly_formed_tail
(long param_1,void *param_2,ulong param_3,void *param_4,void *param_5,long param_6,
int8 *param_7)
{
int iVar1;
long local_38;
void *local_28;
void *local_18;
local_28 = param_4;
local_18 = param_2;
for (local_38 = param_6; local_38 != 0; local_38 = local_38 + -1) {
iVar1 = my_ci_charlen(param_1,local_28,param_5);
if (iVar1 < 1) {
if ((iVar1 != 0) && (param_5 <= local_28)) break;
if (param_7[1] == 0) {
param_7[1] = local_28;
}
iVar1 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30))(param_1,0x3f,local_18,param_3);
if (iVar1 < 1) break;
local_28 = (void *)((long)local_28 + 1);
}
else {
if (param_3 < (ulong)((long)local_18 + (long)iVar1)) break;
memcpy(local_18,local_28,(long)iVar1);
local_28 = (void *)((long)local_28 + (long)iVar1);
}
local_18 = (void *)((long)local_18 + (long)iVar1);
}
*param_7 = local_28;
return (long)local_18 - (long)param_2;
}
|
|
59,562
|
inline_mysql_cond_signal
|
eloqsql/include/mysql/psi/mysql_thread.h
|
static inline int inline_mysql_cond_signal(
mysql_cond_t *that)
{
int result;
#ifdef HAVE_PSI_COND_INTERFACE
if (psi_likely(that->m_psi != NULL))
PSI_COND_CALL(signal_cond)(that->m_psi);
#endif
result= pthread_cond_signal(&that->m_cond);
return result;
}
|
O0
|
c
|
inline_mysql_cond_signal:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x30(%rax)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x72a9b
leaq 0x24d631(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x170(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x30(%rcx), %rdi
callq *%rax
movq -0x8(%rbp), %rdi
callq 0x2a580
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
|
inline_mysql_cond_signal_0:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
cmp qword ptr [rax+30h], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_72A9B
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+170h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+30h]
call rax
loc_72A9B:
mov rdi, [rbp+var_8]
call _pthread_cond_signal
mov [rbp+var_C], eax
mov eax, [rbp+var_C]
add rsp, 10h
pop rbp
retn
|
long long inline_mysql_cond_signal_0(long long a1)
{
if ( *(_QWORD *)(a1 + 48) )
((void ( *)(_QWORD))PSI_server[46])(*(_QWORD *)(a1 + 48));
return (unsigned int)pthread_cond_signal(a1);
}
|
inline_mysql_cond_signal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x30],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x00172a9b
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x170]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RCX + 0x30]
CALL RAX
LAB_00172a9b:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0012a580
MOV dword ptr [RBP + -0xc],EAX
MOV EAX,dword ptr [RBP + -0xc]
ADD RSP,0x10
POP RBP
RET
|
int inline_mysql_cond_signal(pthread_cond_t *param_1)
{
int iVar1;
if (param_1[1].__align != 0) {
(**(code **)(PSI_server + 0x170))(param_1[1].__align);
}
iVar1 = pthread_cond_signal(param_1);
return iVar1;
}
|
|
59,563
|
nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*)
|
ng-log[P]ng-log/src/logging.cc
|
LogDestination::LogDestination(LogSeverity severity, const char* base_filename)
: fileobject_(severity, base_filename), logger_(&fileobject_) {}
|
O1
|
cpp
|
nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x25f54(%rip), %rax # 0x307c0
movq %rax, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movups %xmm0, 0x18(%rdi)
movq $0x0, 0x28(%rdi)
leaq 0x38(%rdi), %r14
testq %rdx, %rdx
setne 0x30(%rdi)
leaq 0x195c2(%rip), %r15 # 0x23e56
cmovneq %rdx, %r15
leaq 0x48(%rdi), %r12
movq %r12, 0x38(%rdi)
movq %r15, %rdi
callq 0x71f0
leaq (%rax,%r15), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xa606
callq 0x222f3
leaq 0x58(%rbx), %rdi
leaq 0xf(%rsp), %rdx
movq %rax, %rsi
callq 0xa744
leaq 0x88(%rbx), %rax
movq %rax, 0x78(%rbx)
xorl %eax, %eax
movq %rax, 0x80(%rbx)
movb $0x0, 0x88(%rbx)
movq %rax, 0x98(%rbx)
movl %ebp, 0xa0(%rbx)
movaps 0x18dc4(%rip), %xmm0 # 0x236c0
movups %xmm0, 0xa4(%rbx)
movq %rax, 0xb8(%rbx)
callq 0x7070
movq %rax, 0xc0(%rbx)
movq %rbx, 0xc8(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa92c
movq %rax, %rbx
movq (%r14), %rdi
cmpq %r12, %rdi
je 0xa943
movq (%r12), %rsi
incq %rsi
callq 0x906c
movq %rbx, %rdi
callq 0x79b0
nop
|
_ZN5nglog14LogDestinationC2ENS_11LogSeverityEPKc:
push rbp; Alternative name is 'nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*)'
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov ebp, esi
mov rbx, rdi
lea rax, off_307C0
mov [rdi], rax
xorps xmm0, xmm0
movups xmmword ptr [rdi+8], xmm0
movups xmmword ptr [rdi+18h], xmm0
mov qword ptr [rdi+28h], 0
lea r14, [rdi+38h]
test rdx, rdx
setnz byte ptr [rdi+30h]
lea r15, asc_23E54+2; ""
cmovnz r15, rdx
lea r12, [rdi+48h]
mov [rdi+38h], r12
mov rdi, r15
call _strlen
lea rdx, [rax+r15]
mov rdi, r14; this
mov rsi, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
call _ZN5nglog5tools26ProgramInvocationShortNameEv; nglog::tools::ProgramInvocationShortName(void)
lea rdi, [rbx+58h]; this
lea rdx, [rsp+38h+var_29]
mov rsi, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rax, [rbx+88h]
mov [rbx+78h], rax
xor eax, eax
mov [rbx+80h], rax
mov byte ptr [rbx+88h], 0
mov [rbx+98h], rax
mov [rbx+0A0h], ebp
movaps xmm0, cs:xmmword_236C0
movups xmmword ptr [rbx+0A4h], xmm0
mov [rbx+0B8h], rax
call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void)
mov [rbx+0C0h], rax
mov [rbx+0C8h], rbx
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_A92C:
mov rbx, rax
mov rdi, [r14]; void *
cmp rdi, r12
jz short loc_A943
mov rsi, [r12]
inc rsi; unsigned __int64
call _ZdlPvm; operator delete(void *,ulong)
loc_A943:
mov rdi, rbx
call __Unwind_Resume
|
long long nglog::LogDestination::LogDestination(long long a1, int a2, char *a3)
{
nglog::tools *v3; // r14
char *v4; // r15
long long v5; // rax
_BYTE *v6; // rax
long long result; // rax
*(_QWORD *)a1 = off_307C0;
*(_OWORD *)(a1 + 8) = 0LL;
*(_OWORD *)(a1 + 24) = 0LL;
*(_QWORD *)(a1 + 40) = 0LL;
v3 = (nglog::tools *)(a1 + 56);
*(_BYTE *)(a1 + 48) = a3 != 0LL;
v4 = "";
if ( a3 )
v4 = a3;
*(_QWORD *)(a1 + 56) = a1 + 72;
v5 = strlen(v4);
std::string::_M_construct<char const*>(v3, v4, (long long)&v4[v5]);
v6 = (_BYTE *)nglog::tools::ProgramInvocationShortName(v3);
std::string::basic_string<std::allocator<char>>((_QWORD *)(a1 + 88), v6);
*(_QWORD *)(a1 + 120) = a1 + 136;
*(_QWORD *)(a1 + 128) = 0LL;
*(_BYTE *)(a1 + 136) = 0;
*(_QWORD *)(a1 + 152) = 0LL;
*(_DWORD *)(a1 + 160) = a2;
*(_OWORD *)(a1 + 164) = xmmword_236C0;
*(_QWORD *)(a1 + 184) = 0LL;
result = std::chrono::_V2::system_clock::now((std::chrono::_V2::system_clock *)(a1 + 88));
*(_QWORD *)(a1 + 192) = result;
*(_QWORD *)(a1 + 200) = a1;
return result;
}
|
LogDestination:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV EBP,ESI
MOV RBX,RDI
LEA RAX,[0x1307c0]
MOV qword ptr [RDI],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x8],XMM0
MOVUPS xmmword ptr [RDI + 0x18],XMM0
MOV qword ptr [RDI + 0x28],0x0
LEA R14,[RDI + 0x38]
TEST RDX,RDX
SETNZ byte ptr [RDI + 0x30]
LEA R15,[0x123e56]
CMOVNZ R15,RDX
LEA R12,[RDI + 0x48]
MOV qword ptr [RDI + 0x38],R12
MOV RDI,R15
CALL 0x001071f0
LEA RDX,[RAX + R15*0x1]
MOV RDI,R14
MOV RSI,R15
CALL 0x0010a606
LAB_0010a8b7:
CALL 0x001222f3
LEA RDI,[RBX + 0x58]
LAB_0010a8c0:
LEA RDX,[RSP + 0xf]
MOV RSI,RAX
CALL 0x0010a744
LAB_0010a8cd:
LEA RAX,[RBX + 0x88]
MOV qword ptr [RBX + 0x78],RAX
XOR EAX,EAX
MOV qword ptr [RBX + 0x80],RAX
MOV byte ptr [RBX + 0x88],0x0
MOV qword ptr [RBX + 0x98],RAX
MOV dword ptr [RBX + 0xa0],EBP
MOVAPS XMM0,xmmword ptr [0x001236c0]
MOVUPS xmmword ptr [RBX + 0xa4],XMM0
MOV qword ptr [RBX + 0xb8],RAX
CALL 0x00107070
MOV qword ptr [RBX + 0xc0],RAX
MOV qword ptr [RBX + 0xc8],RBX
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* nglog::LogDestination::LogDestination(nglog::LogSeverity, char const*) */
void __thiscall
nglog::LogDestination::LogDestination(LogDestination *this,int4 param_2,char *param_3)
{
size_t sVar1;
char *pcVar2;
int8 uVar3;
allocator local_29;
*(int ***)this = &PTR__LogFileObject_001307c0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
this[0x30] = (LogDestination)(param_3 != (char *)0x0);
pcVar2 = "";
if (param_3 != (char *)0x0) {
pcVar2 = param_3;
}
*(LogDestination **)(this + 0x38) = this + 0x48;
sVar1 = strlen(pcVar2);
std::__cxx11::string::_M_construct<char_const*>(this + 0x38,pcVar2,pcVar2 + sVar1);
/* try { // try from 0010a8b7 to 0010a8bb has its CatchHandler @ 0010a92c */
pcVar2 = (char *)tools::ProgramInvocationShortName();
/* try { // try from 0010a8c0 to 0010a8cc has its CatchHandler @ 0010a92a */
std::__cxx11::string::string<std::allocator<char>>((string *)(this + 0x58),pcVar2,&local_29);
*(LogDestination **)(this + 0x78) = this + 0x88;
*(int8 *)(this + 0x80) = 0;
this[0x88] = (LogDestination)0x0;
*(int8 *)(this + 0x98) = 0;
*(int4 *)(this + 0xa0) = param_2;
uVar3 = _UNK_001236c8;
*(int8 *)(this + 0xa4) = _DAT_001236c0;
*(int8 *)(this + 0xac) = uVar3;
*(int8 *)(this + 0xb8) = 0;
uVar3 = std::chrono::_V2::system_clock::now();
*(int8 *)(this + 0xc0) = uVar3;
*(LogDestination **)(this + 200) = this;
return;
}
|
|
59,564
|
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::erase<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, 0>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>)
|
monkey531[P]llama/common/json.hpp
|
IteratorType erase(IteratorType pos)
{
// make sure iterator fits the current value
if (JSON_HEDLEY_UNLIKELY(this != pos.m_object))
{
JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this));
}
IteratorType result = end();
switch (m_data.m_type)
{
case value_t::boolean:
case value_t::number_float:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::string:
case value_t::binary:
{
if (JSON_HEDLEY_UNLIKELY(!pos.m_it.primitive_iterator.is_begin()))
{
JSON_THROW(invalid_iterator::create(205, "iterator out of range", this));
}
if (is_string())
{
AllocatorType<string_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, m_data.m_value.string);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_data.m_value.string, 1);
m_data.m_value.string = nullptr;
}
else if (is_binary())
{
AllocatorType<binary_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, m_data.m_value.binary);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_data.m_value.binary, 1);
m_data.m_value.binary = nullptr;
}
m_data.m_type = value_t::null;
assert_invariant();
break;
}
case value_t::object:
{
result.m_it.object_iterator = m_data.m_value.object->erase(pos.m_it.object_iterator);
break;
}
case value_t::array:
{
result.m_it.array_iterator = m_data.m_value.array->erase(pos.m_it.array_iterator);
break;
}
case value_t::null:
case value_t::discarded:
default:
JSON_THROW(type_error::create(307, detail::concat("cannot use erase() with ", type_name()), this));
}
return result;
}
|
O0
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::erase<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, 0>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>):
subq $0x138, %rsp # imm = 0x138
movq %rdx, 0x50(%rsp)
movq %rdi, 0x58(%rsp)
movq %rdi, %rax
movq %rax, 0x60(%rsp)
movq %rdi, 0x130(%rsp)
movq %rsi, 0x128(%rsp)
movq %rdx, 0x120(%rsp)
movq 0x128(%rsp), %rax
movq %rax, 0x68(%rsp)
cmpq (%rdx), %rax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xb16d1
jmp 0xb17b7
movb $0x1, 0xeb(%rsp)
movl $0x20, %edi
callq 0x5a6b0
movq %rax, 0x40(%rsp)
leaq 0xff(%rsp), %rdi
movq %rdi, 0x48(%rsp)
callq 0x5b0f0
movq 0x48(%rsp), %rdx
leaq 0x15cd69(%rip), %rsi # 0x20e46f
leaq 0x100(%rsp), %rdi
callq 0x63270
jmp 0xb1715
movq 0x68(%rsp), %rcx
movq 0x40(%rsp), %rdi
movl $0xca, %esi
leaq 0x100(%rsp), %rdx
callq 0xb5c70
jmp 0xb1733
movq 0x40(%rsp), %rdi
movb $0x0, 0xeb(%rsp)
leaq 0x1ef601(%rip), %rsi # 0x2a0d48
leaq 0x46d2(%rip), %rdx # 0xb5e20
callq 0x5ab30
jmp 0xb1bc3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
jmp 0xb178f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
leaq 0x100(%rsp), %rdi
callq 0x5b588
leaq 0xff(%rsp), %rdi
callq 0x5b560
testb $0x1, 0xeb(%rsp)
jne 0xb17a8
jmp 0xb17b2
movq 0x40(%rsp), %rdi
callq 0x5af90
jmp 0xb1bb6
movq 0x68(%rsp), %rsi
movq 0x58(%rsp), %rdi
callq 0xb13d0
movq 0x68(%rsp), %rax
movzbl (%rax), %eax
movq %rax, 0x38(%rsp)
subq $0x9, %rax
ja 0xb1ae2
movq 0x38(%rsp), %rax
leaq 0x15655f(%rip), %rcx # 0x207d48
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x50(%rsp), %rdi
addq $0x8, %rdi
addq $0x10, %rdi
callq 0xb6080
xorb $-0x1, %al
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xb1813
jmp 0xb18f9
movb $0x1, 0xc6(%rsp)
movl $0x20, %edi
callq 0x5a6b0
movq %rax, 0x28(%rsp)
leaq 0xc7(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0x5b0f0
movq 0x30(%rsp), %rdx
leaq 0x15cc4b(%rip), %rsi # 0x20e493
leaq 0xc8(%rsp), %rdi
callq 0x63270
jmp 0xb1857
movq 0x68(%rsp), %rcx
movq 0x28(%rsp), %rdi
movl $0xcd, %esi
leaq 0xc8(%rsp), %rdx
callq 0xb5c70
jmp 0xb1875
movq 0x28(%rsp), %rdi
movb $0x0, 0xc6(%rsp)
leaq 0x1ef4bf(%rip), %rsi # 0x2a0d48
leaq 0x4590(%rip), %rdx # 0xb5e20
callq 0x5ab30
jmp 0xb1bc3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
jmp 0xb18d1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
leaq 0xc8(%rsp), %rdi
callq 0x5b588
leaq 0xc7(%rsp), %rdi
callq 0x5b560
testb $0x1, 0xc6(%rsp)
jne 0xb18ea
jmp 0xb18f4
movq 0x28(%rsp), %rdi
callq 0x5af90
jmp 0xb1bb6
movq 0x68(%rsp), %rdi
callq 0xb60a0
testb $0x1, %al
jne 0xb190c
jmp 0xb1990
leaq 0xc5(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x63740
movq 0x68(%rsp), %rax
movq 0x20(%rsp), %rdi
movq 0x8(%rax), %rsi
callq 0x8da10
movq 0x68(%rsp), %rax
movq 0x20(%rsp), %rdi
movq 0x8(%rax), %rsi
movl $0x1, %edx
callq 0x64020
jmp 0xb194b
movq 0x68(%rsp), %rax
movq $0x0, 0x8(%rax)
leaq 0xc5(%rsp), %rdi
callq 0x637e0
jmp 0xb1a26
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
leaq 0xc5(%rsp), %rdi
callq 0x637e0
jmp 0xb1bb6
movq 0x68(%rsp), %rdi
callq 0xb60c0
testb $0x1, %al
jne 0xb19a3
jmp 0xb1a24
leaq 0xc4(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0xa2cd0
movq 0x68(%rsp), %rax
movq 0x18(%rsp), %rdi
movq 0x8(%rax), %rsi
callq 0xb51a0
movq 0x68(%rsp), %rax
movq 0x18(%rsp), %rdi
movq 0x8(%rax), %rsi
movl $0x1, %edx
callq 0xa3280
jmp 0xb19e2
movq 0x68(%rsp), %rax
movq $0x0, 0x8(%rax)
leaq 0xc4(%rsp), %rdi
callq 0xa2e40
jmp 0xb1a24
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
leaq 0xc4(%rsp), %rdi
callq 0xa2e40
jmp 0xb1bb6
jmp 0xb1a26
movq 0x68(%rsp), %rdi
movb $0x0, (%rdi)
movl $0x1, %esi
callq 0xa11a0
jmp 0xb1ba9
movq 0x50(%rsp), %rax
movq 0x68(%rsp), %rcx
movq 0x8(%rcx), %rdi
movq 0x8(%rax), %rax
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rsi
callq 0xb60e0
movq %rax, %rcx
movq 0x58(%rsp), %rax
movq %rcx, 0xb8(%rsp)
movq 0xb8(%rsp), %rcx
movq %rcx, 0x8(%rax)
jmp 0xb1ba9
movq 0x50(%rsp), %rsi
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x10(%rsp)
addq $0x8, %rsi
addq $0x8, %rsi
leaq 0xa0(%rsp), %rdi
callq 0xb61c0
movq 0x10(%rsp), %rdi
movq 0xa0(%rsp), %rsi
callq 0xb6150
movq %rax, %rcx
movq 0x58(%rsp), %rax
movq %rcx, 0xa8(%rsp)
movq 0xa8(%rsp), %rcx
movq %rcx, 0x10(%rax)
jmp 0xb1ba9
jmp 0xb1ae2
movb $0x1, 0x77(%rsp)
movl $0x20, %edi
callq 0x5a6b0
movq 0x68(%rsp), %rdi
movq %rax, 0x8(%rsp)
callq 0xb6460
movq %rax, 0x78(%rsp)
leaq 0x15c99d(%rip), %rsi # 0x20e4a9
leaq 0x80(%rsp), %rdi
leaq 0x78(%rsp), %rdx
callq 0xb63b0
jmp 0xb1b20
movq 0x68(%rsp), %rcx
movq 0x8(%rsp), %rdi
movl $0x133, %esi # imm = 0x133
leaq 0x80(%rsp), %rdx
callq 0xb6200
jmp 0xb1b3e
movq 0x8(%rsp), %rdi
movb $0x0, 0x77(%rsp)
leaq 0x1ef239(%rip), %rsi # 0x2a0d88
leaq 0x49ba(%rip), %rdx # 0xb6510
callq 0x5ab30
jmp 0xb1bc3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
jmp 0xb1b94
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x5b588
testb $0x1, 0x77(%rsp)
jne 0xb1b9d
jmp 0xb1ba7
movq 0x8(%rsp), %rdi
callq 0x5af90
jmp 0xb1bb6
movq 0x60(%rsp), %rax
addq $0x138, %rsp # imm = 0x138
retq
movq 0xf0(%rsp), %rdi
callq 0x5abf0
nopw %cs:(%rax,%rax)
nopl (%rax)
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_:
sub rsp, 138h
mov qword ptr [rsp+138h+var_E8], rdx; char
mov qword ptr [rsp+138h+var_E0], rdi; int
mov rax, rdi
mov qword ptr [rsp+138h+var_D8], rax; int
mov [rsp+138h+var_8], rdi
mov qword ptr [rsp+138h+var_10], rsi
mov [rsp+138h+var_18], rdx
mov rax, qword ptr [rsp+138h+var_10]
mov qword ptr [rsp+138h+var_D0], rax; int
cmp rax, [rdx]
setnz al
xor al, 0FFh
xor al, 0FFh
test al, 1
jnz short loc_B16D1
jmp loc_B17B7
loc_B16D1:
mov [rsp+138h+var_4D], 1
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov [rsp+138h+var_F8], rax; __int64
lea rdi, [rsp+138h+var_39]
mov qword ptr [rsp+138h+var_F0], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, qword ptr [rsp+138h+var_F0]
lea rsi, aIteratorDoesNo; "iterator does not fit current value"
lea rdi, [rsp+138h+var_39+1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_B1715:
mov rcx, qword ptr [rsp+138h+var_D0]
mov rdi, [rsp+138h+var_F8]; int
mov esi, 0CAh
lea rdx, [rsp+138h+var_39+1]
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
jmp short $+2
loc_B1733:
mov rdi, [rsp+138h+var_F8]; void *
mov [rsp+138h+var_4D], 0
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorD2Ev; void (*)(void *)
call ___cxa_throw
jmp loc_B1BC3
mov rcx, rax
mov eax, edx
mov [rsp+arg_E8], rcx
mov [rsp+arg_E4], eax
jmp short loc_B178F
mov rcx, rax
mov eax, edx
mov [rsp+arg_E8], rcx
mov [rsp+arg_E4], eax
lea rdi, [rsp+arg_F8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_B178F:
lea rdi, [rsp+arg_F7]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
test [rsp+arg_E3], 1
jnz short loc_B17A8
jmp short loc_B17B2
loc_B17A8:
mov rdi, [rsp+arg_38]; void *
call ___cxa_free_exception
loc_B17B2:
jmp loc_B1BB6
loc_B17B7:
mov rsi, qword ptr [rsp+138h+var_D0]
mov rdi, qword ptr [rsp+138h+var_E0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE3endEv; 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>::end(void)
mov rax, qword ptr [rsp+138h+var_D0]
movzx eax, byte ptr [rax]
mov qword ptr [rsp+138h+var_100], rax; int
sub rax, 9; switch 10 cases
ja def_B17F0; jumptable 00000000000B17F0 default case
mov rax, qword ptr [rsp+138h+var_100]
lea rcx, jpt_B17F0
movsxd rax, ds:(jpt_B17F0 - 207D48h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_B17F2:
mov rdi, qword ptr [rsp+138h+var_E8]; jumptable 00000000000B17F0 cases 3-8
add rdi, 8
add rdi, 10h; this
call _ZNK8nlohmann16json_abi_v3_11_36detail20primitive_iterator_t8is_beginEv; nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t::is_begin(void)
xor al, 0FFh
xor al, 0FFh
xor al, 0FFh
test al, 1
jnz short loc_B1813
jmp loc_B18F9
loc_B1813:
mov [rsp+138h+var_72], 1
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov [rsp+138h+var_110], rax; int
lea rdi, [rsp+138h+var_71]
mov qword ptr [rsp+138h+var_108], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, qword ptr [rsp+138h+var_108]
lea rsi, aIteratorOutOfR; "iterator out of range"
lea rdi, [rsp+138h+var_71+1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_B1857:
mov rcx, qword ptr [rsp+138h+var_D0]
mov rdi, [rsp+138h+var_110]; int
mov esi, 0CDh
lea rdx, [rsp+138h+var_71+1]
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
jmp short $+2
loc_B1875:
mov rdi, [rsp+138h+var_110]; void *
mov [rsp+138h+var_72], 0
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorD2Ev; void (*)(void *)
call ___cxa_throw
jmp loc_B1BC3
mov rcx, rax
mov eax, edx
mov [rsp+arg_E8], rcx
mov [rsp+arg_E4], eax
jmp short loc_B18D1
mov rcx, rax
mov eax, edx
mov [rsp+arg_E8], rcx
mov [rsp+arg_E4], eax
lea rdi, [rsp+arg_C0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_B18D1:
lea rdi, [rsp+arg_BF]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
test [rsp+arg_BE], 1
jnz short loc_B18EA
jmp short loc_B18F4
loc_B18EA:
mov rdi, [rsp+arg_20]; void *
call ___cxa_free_exception
loc_B18F4:
jmp loc_B1BB6
loc_B18F9:
mov rdi, qword ptr [rsp+138h+var_D0]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_stringEv; 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_string(void)
test al, 1
jnz short loc_B190C
jmp loc_B1990
loc_B190C:
lea rdi, [rsp+138h+var_73]
mov [rsp+138h+var_118], rdi
call _ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev; std::allocator<std::string>::allocator(void)
mov rax, qword ptr [rsp+138h+var_D0]
mov rdi, [rsp+138h+var_118]
mov rsi, [rax+8]
call _ZNSt16allocator_traitsISaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE7destroyIS5_EEvRS6_PT_; std::allocator_traits<std::allocator<std::string>>::destroy<std::string>(std::allocator<std::string>&,std::string *)
mov rax, qword ptr [rsp+138h+var_D0]
mov rdi, [rsp+138h+var_118]
mov rsi, [rax+8]
mov edx, 1
call _ZNSt16allocator_traitsISaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE10deallocateERS6_PS5_m; std::allocator_traits<std::allocator<std::string>>::deallocate(std::allocator<std::string>&,std::string*,ulong)
jmp short $+2
loc_B194B:
mov rax, qword ptr [rsp+138h+var_D0]
mov qword ptr [rax+8], 0
lea rdi, [rsp+138h+var_73]
call _ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::allocator<std::string>::~allocator()
jmp loc_B1A26
mov rcx, rax
mov eax, edx
mov [rsp+arg_E8], rcx
mov [rsp+arg_E4], eax
lea rdi, [rsp+arg_BD]
call _ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::allocator<std::string>::~allocator()
jmp loc_B1BB6
loc_B1990:
mov rdi, qword ptr [rsp+138h+var_D0]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_binaryEv; 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_binary(void)
test al, 1
jnz short loc_B19A3
jmp loc_B1A24
loc_B19A3:
lea rdi, [rsp+138h+var_74]
mov [rsp+138h+var_120], rdi
call _ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEC2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::allocator(void)
mov rax, qword ptr [rsp+138h+var_D0]
mov rdi, [rsp+138h+var_120]
mov rsi, [rax+8]
call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEE7destroyIS6_EEvRS7_PT_; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>>::destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>(std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>&,nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>> *)
mov rax, qword ptr [rsp+138h+var_D0]
mov rdi, [rsp+138h+var_120]
mov rsi, [rax+8]
mov edx, 1
call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEE10deallocateERS7_PS6_m; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>>::deallocate(std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>&,nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>*,ulong)
jmp short $+2
loc_B19E2:
mov rax, qword ptr [rsp+138h+var_D0]
mov qword ptr [rax+8], 0
lea rdi, [rsp+138h+var_74]
call _ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::~allocator()
jmp short loc_B1A24
mov rcx, rax
mov eax, edx
mov [rsp+arg_E8], rcx
mov [rsp+arg_E4], eax
lea rdi, [rsp+arg_BC]
call _ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::~allocator()
jmp loc_B1BB6
loc_B1A24:
jmp short $+2
loc_B1A26:
mov rdi, qword ptr [rsp+138h+var_D0]
mov byte ptr [rdi], 0
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)
jmp loc_B1BA9
loc_B1A3D:
mov rax, qword ptr [rsp+138h+var_E8]; jumptable 00000000000B17F0 case 1
mov rcx, qword ptr [rsp+138h+var_D0]
mov rdi, [rcx+8]
mov rax, [rax+8]
mov [rsp+138h+var_88], rax
mov rsi, [rsp+138h+var_88]
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEE; 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>>>>::erase(__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>>>>)
mov rcx, rax
mov rax, qword ptr [rsp+138h+var_E0]
mov [rsp+138h+var_80], rcx
mov rcx, [rsp+138h+var_80]
mov [rax+8], rcx
jmp loc_B1BA9
loc_B1A85:
mov rsi, qword ptr [rsp+138h+var_E8]; jumptable 00000000000B17F0 case 2
mov rax, qword ptr [rsp+138h+var_D0]
mov rax, [rax+8]
mov [rsp+138h+var_128], rax
add rsi, 8
add rsi, 8
lea rdi, [rsp+138h+var_98]
call _ZN9__gnu_cxx17__normal_iteratorIPKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EEEC2IPSF_EERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISN_SM_EE7__valueESJ_E6__typeEEE
mov rdi, [rsp+138h+var_128]
mov rsi, [rsp+138h+var_98]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKSD_SF_EE; 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>>::erase(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>)
mov rcx, rax
mov rax, qword ptr [rsp+138h+var_E0]
mov [rsp+138h+var_90], rcx
mov rcx, [rsp+138h+var_90]
mov [rax+10h], rcx
jmp loc_B1BA9
loc_B1AE0:
jmp short $+2; jumptable 00000000000B17F0 cases 0,9
def_B17F0:
mov [rsp+138h+var_C1], 1; jumptable 00000000000B17F0 default case
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rdi, qword ptr [rsp+138h+var_D0]
mov [rsp+138h+var_130], 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+138h+var_C0], rax; int
lea rsi, aCannotUseErase; "cannot use erase() with "
lea rdi, [rsp+138h+var_B8]
lea rdx, [rsp+138h+var_C0]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA25_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[25],char const*>(char const(&)[25],char const* &&)
jmp short $+2
loc_B1B20:
mov rcx, qword ptr [rsp+138h+var_D0]
mov rdi, [rsp+138h+var_130]; int
mov esi, 133h
lea rdx, [rsp+138h+var_B8]
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
jmp short $+2
loc_B1B3E:
mov rdi, [rsp+138h+var_130]; void *
mov [rsp+138h+var_C1], 0
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail10type_errorD2Ev; void (*)(void *)
call ___cxa_throw
jmp short loc_B1BC3
mov rcx, rax
mov eax, edx
mov [rsp+arg_E8], rcx
mov [rsp+arg_E4], eax
jmp short loc_B1B94
mov rcx, rax
mov eax, edx
mov [rsp+arg_E8], rcx
mov [rsp+arg_E4], eax
lea rdi, [rsp+arg_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_B1B94:
test [rsp+arg_6F], 1
jnz short loc_B1B9D
jmp short loc_B1BA7
loc_B1B9D:
mov rdi, [rsp+arg_0]; void *
call ___cxa_free_exception
loc_B1BA7:
jmp short loc_B1BB6
loc_B1BA9:
mov rax, qword ptr [rsp+138h+var_D8]
add rsp, 138h
retn
loc_B1BB6:
mov rdi, [rsp+arg_E8]
call __Unwind_Resume
loc_B1BC3:
nop word ptr [rax+rax+00000000h]
nop dword ptr [rax]
|
long long ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_(
long long a1,
unsigned __int8 *a2,
unsigned __int8 **a3)
{
long long v3; // rcx
long long v4; // r8
long long v5; // r9
long long v6; // rcx
long long v7; // r8
long long v8; // r9
int v9; // ecx
int v10; // r8d
int v11; // r9d
int v13; // [rsp+0h] [rbp-138h]
int v14; // [rsp+8h] [rbp-130h]
int v15; // [rsp+8h] [rbp-130h]
void *v16; // [rsp+8h] [rbp-130h]
int v17; // [rsp+10h] [rbp-128h]
long long v18; // [rsp+10h] [rbp-128h]
char v19; // [rsp+18h] [rbp-120h]
int v20; // [rsp+20h] [rbp-118h]
int v21; // [rsp+28h] [rbp-110h]
int v22; // [rsp+28h] [rbp-110h]
void *v23; // [rsp+28h] [rbp-110h]
int v24; // [rsp+30h] [rbp-108h]
int v25; // [rsp+38h] [rbp-100h]
int v26; // [rsp+38h] [rbp-100h]
void *v27; // [rsp+40h] [rbp-F8h]
void *exception; // [rsp+40h] [rbp-F8h]
void *v29; // [rsp+40h] [rbp-F8h]
int v30; // [rsp+48h] [rbp-F0h]
char v32; // [rsp+70h] [rbp-C8h]
int v33[2]; // [rsp+78h] [rbp-C0h] BYREF
int v34; // [rsp+80h] [rbp-B8h] BYREF
int v35; // [rsp+88h] [rbp-B0h]
char v36; // [rsp+90h] [rbp-A8h]
long long v37; // [rsp+A0h] [rbp-98h] BYREF
long long v38; // [rsp+A8h] [rbp-90h]
char v39; // [rsp+C4h] [rbp-74h] BYREF
_BYTE v40[2]; // [rsp+C5h] [rbp-73h] BYREF
int v41[9]; // [rsp+C7h] [rbp-71h] BYREF
char v42; // [rsp+EBh] [rbp-4Dh]
int v43[8]; // [rsp+FFh] [rbp-39h] BYREF
unsigned __int8 **v44; // [rsp+120h] [rbp-18h]
int v45[2]; // [rsp+128h] [rbp-10h]
long long v46; // [rsp+130h] [rbp-8h]
v46 = a1;
*(_QWORD *)v45 = a2;
v44 = a3;
if ( a2 != *a3 )
{
exception = __cxa_allocate_exception(0x20uLL);
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>(
(long long)v43 + 1,
(long long)"iterator does not fit current value",
(long long)v43);
ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
(int)exception,
v13,
v14,
v17,
v19,
v20,
v21,
v24,
v25,
(long long)exception,
(int)v43,
(char)a3,
a1,
a1,
(int)a2,
v32,
v33[0],
v34,
v35,
v36);
v42 = 0;
__cxa_throw(
v29,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::invalid_iterator,
nlohmann::json_abi_v3_11_3::detail::invalid_iterator::~invalid_iterator);
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::end(
a1,
(long long)a2);
v26 = *a2;
switch ( *a2 )
{
case 1u:
*(_QWORD *)(a1 + 8) = 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>>>>::erase(
*((_QWORD *)a2 + 1),
a3[1]);
break;
case 2u:
v18 = *((_QWORD *)a2 + 1);
__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>*>(
&v37,
a3 + 2);
v38 = 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>>::erase(
v18,
v37);
*(_QWORD *)(a1 + 16) = v38;
break;
case 3u:
case 4u:
case 5u:
case 6u:
case 7u:
case 8u:
if ( (nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t::is_begin((nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t *)(a3 + 3)) & 1) == 0 )
{
v22 = (unsigned int)__cxa_allocate_exception(0x20uLL);
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>(
(long long)v41 + 1,
(long long)"iterator out of range",
(long long)v41);
ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
v22,
v13,
v14,
v17,
v19,
v20,
v22,
(int)v41,
v26,
(long long)v27,
v30,
(char)a3,
a1,
a1,
(int)a2,
v32,
v33[0],
v34,
v35,
v36);
v40[1] = 0;
__cxa_throw(
v23,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::invalid_iterator,
nlohmann::json_abi_v3_11_3::detail::invalid_iterator::~invalid_iterator);
}
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_string(a2) & 1) != 0 )
{
std::allocator<std::string>::allocator((long long)v40);
std::allocator_traits<std::allocator<std::string>>::destroy<std::string>((long long)v40, *((_QWORD *)a2 + 1));
std::allocator_traits<std::allocator<std::string>>::deallocate(
(long long)v40,
*((_QWORD *)a2 + 1),
1LL,
v3,
v4,
v5);
*((_QWORD *)a2 + 1) = 0LL;
std::allocator<std::string>::~allocator((long long)v40);
}
else 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_binary(a2) & 1) != 0 )
{
std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>::allocator((long long)&v39);
std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>>::destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>(
&v39,
*((_QWORD *)a2 + 1));
std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>>::deallocate(
(long long)&v39,
*((_QWORD *)a2 + 1),
1LL,
v6,
v7,
v8);
*((_QWORD *)a2 + 1) = 0LL;
std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>::~allocator((long long)&v39);
}
*a2 = 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((long long)a2);
break;
default:
v15 = (unsigned int)__cxa_allocate_exception(0x20uLL);
*(_QWORD *)v33 = 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(a2);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[25],char const*>(
(unsigned int)&v34,
(unsigned int)"cannot use erase() with ",
(unsigned int)v33,
v9,
v10,
v11);
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
v15,
v13,
v15,
v17,
v19,
v20,
v21,
v24,
v26,
(long long)v27,
v30,
(char)a3,
a1,
a1,
(int)a2,
v32,
v33[0],
v34,
v35,
v36);
__cxa_throw(
v16,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
nlohmann::json_abi_v3_11_3::detail::type_error::~type_error);
}
return a1;
}
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_:
SUB RSP,0x138
MOV qword ptr [RSP + 0x50],RDX
MOV qword ptr [RSP + 0x58],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x60],RAX
MOV qword ptr [RSP + 0x130],RDI
MOV qword ptr [RSP + 0x128],RSI
MOV qword ptr [RSP + 0x120],RDX
MOV RAX,qword ptr [RSP + 0x128]
MOV qword ptr [RSP + 0x68],RAX
CMP RAX,qword ptr [RDX]
SETNZ AL
XOR AL,0xff
XOR AL,0xff
TEST AL,0x1
JNZ 0x001b16d1
JMP 0x001b17b7
LAB_001b16d1:
MOV byte ptr [RSP + 0xeb],0x1
MOV EDI,0x20
CALL 0x0015a6b0
MOV qword ptr [RSP + 0x40],RAX
LEA RDI,[RSP + 0xff]
MOV qword ptr [RSP + 0x48],RDI
CALL 0x0015b0f0
MOV RDX,qword ptr [RSP + 0x48]
LAB_001b16ff:
LEA RSI,[0x30e46f]
LEA RDI,[RSP + 0x100]
CALL 0x00163270
JMP 0x001b1715
LAB_001b1715:
MOV RCX,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RSP + 0x40]
MOV ESI,0xca
LEA RDX,[RSP + 0x100]
CALL 0x001b5c70
JMP 0x001b1733
LAB_001b1733:
MOV RDI,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0xeb],0x0
LEA RSI,[0x3a0d48]
LEA RDX,[0x1b5e20]
CALL 0x0015ab30
LAB_001b17b7:
MOV RSI,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RSP + 0x58]
CALL 0x001b13d0
MOV RAX,qword ptr [RSP + 0x68]
MOVZX EAX,byte ptr [RAX]
MOV qword ptr [RSP + 0x38],RAX
SUB RAX,0x9
JA 0x001b1ae2
MOV RAX,qword ptr [RSP + 0x38]
LEA RCX,[0x307d48]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_3:
MOV RDI,qword ptr [RSP + 0x50]
ADD RDI,0x8
ADD RDI,0x10
CALL 0x001b6080
XOR AL,0xff
XOR AL,0xff
XOR AL,0xff
TEST AL,0x1
JNZ 0x001b1813
JMP 0x001b18f9
LAB_001b1813:
MOV byte ptr [RSP + 0xc6],0x1
MOV EDI,0x20
CALL 0x0015a6b0
MOV qword ptr [RSP + 0x28],RAX
LEA RDI,[RSP + 0xc7]
MOV qword ptr [RSP + 0x30],RDI
CALL 0x0015b0f0
MOV RDX,qword ptr [RSP + 0x30]
LAB_001b1841:
LEA RSI,[0x30e493]
LEA RDI,[RSP + 0xc8]
CALL 0x00163270
JMP 0x001b1857
LAB_001b1857:
MOV RCX,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RSP + 0x28]
MOV ESI,0xcd
LEA RDX,[RSP + 0xc8]
CALL 0x001b5c70
JMP 0x001b1875
LAB_001b1875:
MOV RDI,qword ptr [RSP + 0x28]
MOV byte ptr [RSP + 0xc6],0x0
LEA RSI,[0x3a0d48]
LEA RDX,[0x1b5e20]
CALL 0x0015ab30
LAB_001b18f9:
MOV RDI,qword ptr [RSP + 0x68]
CALL 0x001b60a0
TEST AL,0x1
JNZ 0x001b190c
JMP 0x001b1990
LAB_001b190c:
LEA RDI,[RSP + 0xc5]
MOV qword ptr [RSP + 0x20],RDI
CALL 0x00163740
MOV RAX,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x0018da10
MOV RAX,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RAX + 0x8]
LAB_001b193f:
MOV EDX,0x1
CALL 0x00164020
JMP 0x001b194b
LAB_001b194b:
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RAX + 0x8],0x0
LEA RDI,[RSP + 0xc5]
CALL 0x001637e0
JMP 0x001b1a26
LAB_001b1990:
MOV RDI,qword ptr [RSP + 0x68]
CALL 0x001b60c0
TEST AL,0x1
JNZ 0x001b19a3
JMP 0x001b1a24
LAB_001b19a3:
LEA RDI,[RSP + 0xc4]
MOV qword ptr [RSP + 0x18],RDI
CALL 0x001a2cd0
MOV RAX,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x001b51a0
MOV RAX,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RAX + 0x8]
LAB_001b19d6:
MOV EDX,0x1
CALL 0x001a3280
LAB_001b19e0:
JMP 0x001b19e2
LAB_001b19e2:
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RAX + 0x8],0x0
LEA RDI,[RSP + 0xc4]
CALL 0x001a2e40
JMP 0x001b1a24
LAB_001b1a24:
JMP 0x001b1a26
LAB_001b1a26:
MOV RDI,qword ptr [RSP + 0x68]
MOV byte ptr [RDI],0x0
MOV ESI,0x1
CALL 0x001a11a0
JMP 0x001b1ba9
caseD_1:
MOV RAX,qword ptr [RSP + 0x50]
MOV RCX,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RCX + 0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0xb0],RAX
MOV RSI,qword ptr [RSP + 0xb0]
CALL 0x001b60e0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0xb8],RCX
MOV RCX,qword ptr [RSP + 0xb8]
MOV qword ptr [RAX + 0x8],RCX
JMP 0x001b1ba9
caseD_2:
MOV RSI,qword ptr [RSP + 0x50]
MOV RAX,qword ptr [RSP + 0x68]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x10],RAX
ADD RSI,0x8
ADD RSI,0x8
LEA RDI,[RSP + 0xa0]
CALL 0x001b61c0
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0xa0]
CALL 0x001b6150
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0xa8],RCX
MOV RCX,qword ptr [RSP + 0xa8]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x001b1ba9
caseD_0:
JMP 0x001b1ae2
default:
MOV byte ptr [RSP + 0x77],0x1
MOV EDI,0x20
CALL 0x0015a6b0
MOV RDI,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x8],RAX
CALL 0x001b6460
MOV qword ptr [RSP + 0x78],RAX
LAB_001b1b05:
LEA RSI,[0x30e4a9]
LEA RDI,[RSP + 0x80]
LEA RDX,[RSP + 0x78]
CALL 0x001b63b0
JMP 0x001b1b20
LAB_001b1b20:
MOV RCX,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,0x133
LEA RDX,[RSP + 0x80]
CALL 0x001b6200
JMP 0x001b1b3e
LAB_001b1b3e:
MOV RDI,qword ptr [RSP + 0x8]
MOV byte ptr [RSP + 0x77],0x0
LEA RSI,[0x3a0d88]
LEA RDX,[0x1b6510]
CALL 0x0015ab30
LAB_001b1ba9:
MOV RAX,qword ptr [RSP + 0x60]
ADD RSP,0x138
RET
|
long _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_
(long param_1,
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_2,long *param_3)
{
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*pvVar1;
byte bVar2;
ulong uVar3;
int8 uVar4;
char *local_c0;
detail local_b8 [32];
int8 local_98 [2];
long local_88;
allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>
local_74;
allocator<std::__cxx11::string> local_73;
int1 local_72;
allocator local_71;
string local_70 [35];
int1 local_4d;
allocator local_39;
string local_38 [32];
long *local_18;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_10;
long local_8;
local_18 = param_3;
local_10 = param_2;
local_8 = param_1;
if (param_2 !=
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*param_3) {
local_4d = 1;
uVar4 = __cxa_allocate_exception(0x20);
std::allocator<char>::allocator();
/* try { // try from 001b16ff to 001b1712 has its CatchHandler @ 001b1758 */
std::__cxx11::string::string<std::allocator<char>>
(local_38,"iterator does not fit current value",&local_39);
/* try { // try from 001b1715 to 001b1752 has its CatchHandler @ 001b176e */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar4,0xca,local_38,param_2);
local_4d = 0;
/* WARNING: Subroutine does not return */
__cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo,
nlohmann::json_abi_v3_11_3::detail::invalid_iterator::~invalid_iterator);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::end();
switch(*param_2) {
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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:
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x9:
default:
uVar4 = __cxa_allocate_exception(0x20);
local_c0 = (char *)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name(param_2);
/* try { // try from 001b1b05 to 001b1b1d has its CatchHandler @ 001b1b5d */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[25],char_const*>
(local_b8,"cannot use erase() with ",&local_c0);
/* try { // try from 001b1b20 to 001b1b5a has its CatchHandler @ 001b1b73 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar4,0x133,local_b8,param_2);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::type_error::~type_error);
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1:
local_88 = param_3[1];
uVar4 = nlohmann::json_abi_v3_11_3::
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>>>>
::erase(*(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>>>>
**)(param_2 + 8),local_88);
*(int8 *)(param_1 + 8) = uVar4;
break;
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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:
pvVar1 = *(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(param_2 + 8);
__gnu_cxx::
__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const*,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>>>>
::
__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>
((__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const*,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>>>>
*)local_98,(__normal_iterator *)(param_3 + 2));
uVar4 = 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>>>
::erase(pvVar1,local_98[0]);
*(int8 *)(param_1 + 0x10) = uVar4;
break;
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x3:
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x4:
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x5:
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x6:
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x7:
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x8:
bVar2 = nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t::is_begin
((primitive_iterator_t *)(param_3 + 3));
if (((bVar2 ^ 0xff) & 1) != 0) {
local_72 = 1;
uVar4 = __cxa_allocate_exception(0x20);
std::allocator<char>::allocator();
/* try { // try from 001b1841 to 001b1854 has its CatchHandler @ 001b189a */
std::__cxx11::string::string<std::allocator<char>>(local_70,"iterator out of range",&local_71)
;
/* try { // try from 001b1857 to 001b1894 has its CatchHandler @ 001b18b0 */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar4,0xcd,local_70,param_2);
local_72 = 0;
/* WARNING: Subroutine does not return */
__cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo,
nlohmann::json_abi_v3_11_3::detail::invalid_iterator::~invalid_iterator);
}
uVar3 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_string(param_2);
if ((uVar3 & 1) == 0) {
uVar3 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_binary(param_2);
if ((uVar3 & 1) != 0) {
std::
allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>
::allocator(&local_74);
std::
allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::
destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>
((allocator *)&local_74,*(byte_container_with_subtype **)(param_2 + 8));
/* try { // try from 001b19d6 to 001b19df has its CatchHandler @ 001b19fe */
std::
allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>>
::deallocate((allocator *)&local_74,*(byte_container_with_subtype **)(param_2 + 8),1);
*(int8 *)(param_2 + 8) = 0;
std::
allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>
::~allocator(&local_74);
}
}
else {
std::allocator<std::__cxx11::string>::allocator(&local_73);
std::allocator_traits<std::allocator<std::__cxx11::string>>::destroy<std::__cxx11::string>
((allocator *)&local_73,*(string **)(param_2 + 8));
/* try { // try from 001b193f to 001b1948 has its CatchHandler @ 001b196a */
std::allocator_traits<std::allocator<std::__cxx11::string>>::deallocate
((allocator *)&local_73,*(string **)(param_2 + 8),1);
*(int8 *)(param_2 + 8) = 0;
std::allocator<std::__cxx11::string>::~allocator(&local_73);
}
*param_2 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)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(SUB81(param_2,0));
}
return param_1;
}
|
|
59,565
|
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::erase<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, 0>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>)
|
monkey531[P]llama/common/json.hpp
|
IteratorType erase(IteratorType pos)
{
// make sure iterator fits the current value
if (JSON_HEDLEY_UNLIKELY(this != pos.m_object))
{
JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this));
}
IteratorType result = end();
switch (m_data.m_type)
{
case value_t::boolean:
case value_t::number_float:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::string:
case value_t::binary:
{
if (JSON_HEDLEY_UNLIKELY(!pos.m_it.primitive_iterator.is_begin()))
{
JSON_THROW(invalid_iterator::create(205, "iterator out of range", this));
}
if (is_string())
{
AllocatorType<string_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, m_data.m_value.string);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_data.m_value.string, 1);
m_data.m_value.string = nullptr;
}
else if (is_binary())
{
AllocatorType<binary_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, m_data.m_value.binary);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_data.m_value.binary, 1);
m_data.m_value.binary = nullptr;
}
m_data.m_type = value_t::null;
assert_invariant();
break;
}
case value_t::object:
{
result.m_it.object_iterator = m_data.m_value.object->erase(pos.m_it.object_iterator);
break;
}
case value_t::array:
{
result.m_it.array_iterator = m_data.m_value.array->erase(pos.m_it.array_iterator);
break;
}
case value_t::null:
case value_t::discarded:
default:
JSON_THROW(type_error::create(307, detail::concat("cannot use erase() with ", type_name()), this));
}
return result;
}
|
O1
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::erase<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, 0>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
cmpq %rsi, (%rdx)
jne 0x5e27a
movq %rdx, %r15
movq %rdi, %rbx
movq %r14, %rsi
callq 0x5dfe0
movzbl (%r14), %eax
leal -0x3(%rax), %ecx
cmpl $0x6, %ecx
jae 0x5e1eb
cmpq $0x0, 0x18(%r15)
jne 0x5e2dd
cmpl $0x8, %eax
je 0x5e20c
cmpl $0x3, %eax
jne 0x5e242
leaq 0x8(%r14), %r12
movq 0x8(%r14), %rax
movq (%rax), %rdi
addq $0x10, %rax
movl $0x20, %r15d
cmpq %rax, %rdi
je 0x5e22e
movq (%rax), %rsi
incq %rsi
jmp 0x5e229
cmpl $0x1, %eax
je 0x5e263
cmpl $0x2, %eax
jne 0x5e33d
movq 0x8(%r14), %rdi
movq 0x10(%r15), %rsi
callq 0x5f8b4
movq %rax, 0x10(%rbx)
jmp 0x5e253
leaq 0x8(%r14), %r12
movq 0x8(%r14), %rax
movq (%rax), %rdi
movl $0x28, %r15d
testq %rdi, %rdi
je 0x5e22e
movq 0x10(%rax), %rsi
subq %rdi, %rsi
callq 0x1b8d0
movq (%r12), %rdi
movq %r15, %rsi
callq 0x1b8d0
movq $0x0, (%r12)
movb $0x0, (%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x58c4e
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%r14), %rdi
movq 0x8(%r15), %rsi
leaq 0x30(%rsi), %rdx
callq 0x5f46c
movq %rax, 0x8(%rbx)
jmp 0x5e253
movl $0x20, %edi
callq 0x1b450
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x91c2a(%rip), %rsi # 0xefec1
leaq 0x91c46(%rip), %rdx # 0xefee4
leaq 0x8(%rsp), %rdi
callq 0x22cc0
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xca, %esi
movq %r14, %rcx
callq 0x5ef8c
xorl %ebp, %ebp
leaq 0xcec0f(%rip), %rsi # 0x12ced8
leaq -0x2d0a(%rip), %rdx # 0x5b5c6
movq %rbx, %rdi
callq 0x1bf40
jmp 0x5e39b
movl $0x20, %edi
callq 0x1b450
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x91beb(%rip), %rsi # 0xefee5
leaq 0x91bf9(%rip), %rdx # 0xefefa
leaq 0x8(%rsp), %rdi
callq 0x22cc0
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xcd, %esi
movq %r14, %rcx
callq 0x5ef8c
xorl %ebp, %ebp
leaq 0xcebac(%rip), %rsi # 0x12ced8
leaq -0x2d6d(%rip), %rdx # 0x5b5c6
movq %rbx, %rdi
callq 0x1bf40
jmp 0x5e39b
movl $0x20, %edi
callq 0x1b450
movq %rax, %rbx
movq %r14, %rdi
callq 0x5f44c
leaq 0x28(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x91b9a(%rip), %rsi # 0xefefb
leaq 0x8(%rsp), %rdi
callq 0x5f3c3
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0x133, %esi # imm = 0x133
movq %r14, %rcx
callq 0x5f1f4
xorl %ebp, %ebp
leaq 0xceb8c(%rip), %rsi # 0x12cf18
leaq -0x2dcd(%rip), %rdx # 0x5b5c6
movq %rbx, %rdi
callq 0x1bf40
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x5e3c1
jmp 0x5e3d6
jmp 0x5e3d0
jmp 0x5e3b4
jmp 0x5e3d0
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5e3d6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b8d0
jmp 0x5e3d6
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x5e3e3
movq %rbx, %rdi
callq 0x1b680
movq %r14, %rdi
callq 0x1bfc0
nop
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_:
push rbp; int
push r15; int
push r14; char
push r12; int
push rbx; __int64
sub rsp, 30h
mov r14, rsi
cmp [rdx], rsi
jnz loc_5E27A
mov r15, rdx
mov rbx, rdi
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE3endEv; 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>::end(void)
movzx eax, byte ptr [r14]
lea ecx, [rax-3]
cmp ecx, 6
jnb short loc_5E1EB
cmp qword ptr [r15+18h], 0
jnz loc_5E2DD
cmp eax, 8
jz short loc_5E20C
cmp eax, 3
jnz short loc_5E242
lea r12, [r14+8]
mov rax, [r14+8]
mov rdi, [rax]
add rax, 10h
mov r15d, 20h ; ' '
cmp rdi, rax
jz short loc_5E22E
mov rsi, [rax]
inc rsi
jmp short loc_5E229
loc_5E1EB:
cmp eax, 1
jz short loc_5E263
cmp eax, 2
jnz loc_5E33D
mov rdi, [r14+8]
mov rsi, [r15+10h]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPSD_SF_EE; 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(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>*,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 [rbx+10h], rax
jmp short loc_5E253
loc_5E20C:
lea r12, [r14+8]
mov rax, [r14+8]
mov rdi, [rax]; void *
mov r15d, 28h ; '('
test rdi, rdi
jz short loc_5E22E
mov rsi, [rax+10h]
sub rsi, rdi; unsigned __int64
loc_5E229:
call __ZdlPvm; operator delete(void *,ulong)
loc_5E22E:
mov rdi, [r12]; void *
mov rsi, r15; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
mov qword ptr [r12], 0
loc_5E242:
mov byte ptr [r14], 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)
loc_5E253:
mov rax, rbx
add rsp, 30h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_5E263:
mov rdi, [r14+8]
mov rsi, [r15+8]
lea rdx, [rsi+30h]
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEESP_; 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>>>>::erase(__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>>>>,__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>>>>)
mov [rbx+8], rax
jmp short loc_5E253
loc_5E27A:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea r15, [rsp+58h+var_40]
mov [r15-10h], r15
lea rsi, aIteratorDoesNo; "iterator does not fit current value"
lea rdx, aIteratorDoesNo+23h; ""
lea rdi, [rsp+58h+var_50]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov bpl, 1
lea rdx, [rsp+58h+var_50]
mov rdi, rbx; this
mov esi, 0CAh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp loc_5E39B
loc_5E2DD:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea r15, [rsp+58h+var_40]
mov [r15-10h], r15
lea rsi, aIteratorOutOfR; "iterator out of range"
lea rdx, aIteratorOutOfR+15h; ""
lea rdi, [rsp+58h+var_50]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov bpl, 1
lea rdx, [rsp+58h+var_50]
mov rdi, rbx; this
mov esi, 0CDh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp short loc_5E39B
loc_5E33D:
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+58h+var_30]
mov [rdx], rax
lea rsi, aCannotUseErase; "cannot use erase() with "
lea rdi, [rsp+58h+var_50]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA25_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[25],char const*>(char const(&)[25],char const* &&)
mov bpl, 1
lea rdx, [rsp+58h+var_50]
mov rdi, rbx; this
mov esi, 133h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_5E39B:
mov r14, rax
lea rax, [rsp+58h+var_40]
mov rdi, [rax-10h]
cmp rdi, rax
jnz short loc_5E3C1
jmp short loc_5E3D6
jmp short loc_5E3D0
jmp short loc_5E3B4
jmp short loc_5E3D0
loc_5E3B4:
mov r14, rax
mov rdi, [rsp+58h+var_50]; void *
cmp rdi, r15
jz short loc_5E3D6
loc_5E3C1:
mov rsi, [rsp+58h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5E3D6
loc_5E3D0:
mov r14, rax
mov bpl, 1
loc_5E3D6:
test bpl, bpl
jz short loc_5E3E3
mov rdi, rbx; void *
call ___cxa_free_exception
loc_5E3E3:
mov rdi, r14
call __Unwind_Resume
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x30
MOV R14,RSI
CMP qword ptr [RDX],RSI
JNZ 0x0015e27a
MOV R15,RDX
MOV RBX,RDI
MOV RSI,R14
CALL 0x0015dfe0
MOVZX EAX,byte ptr [R14]
LEA ECX,[RAX + -0x3]
CMP ECX,0x6
JNC 0x0015e1eb
CMP qword ptr [R15 + 0x18],0x0
JNZ 0x0015e2dd
CMP EAX,0x8
JZ 0x0015e20c
CMP EAX,0x3
JNZ 0x0015e242
LEA R12,[R14 + 0x8]
MOV RAX,qword ptr [R14 + 0x8]
MOV RDI,qword ptr [RAX]
ADD RAX,0x10
MOV R15D,0x20
CMP RDI,RAX
JZ 0x0015e22e
MOV RSI,qword ptr [RAX]
INC RSI
JMP 0x0015e229
LAB_0015e1eb:
CMP EAX,0x1
JZ 0x0015e263
CMP EAX,0x2
JNZ 0x0015e33d
MOV RDI,qword ptr [R14 + 0x8]
MOV RSI,qword ptr [R15 + 0x10]
CALL 0x0015f8b4
MOV qword ptr [RBX + 0x10],RAX
JMP 0x0015e253
LAB_0015e20c:
LEA R12,[R14 + 0x8]
MOV RAX,qword ptr [R14 + 0x8]
MOV RDI,qword ptr [RAX]
MOV R15D,0x28
TEST RDI,RDI
JZ 0x0015e22e
MOV RSI,qword ptr [RAX + 0x10]
SUB RSI,RDI
LAB_0015e229:
CALL 0x0011b8d0
LAB_0015e22e:
MOV RDI,qword ptr [R12]
MOV RSI,R15
CALL 0x0011b8d0
MOV qword ptr [R12],0x0
LAB_0015e242:
MOV byte ptr [R14],0x0
MOV RDI,R14
MOV ESI,0x1
CALL 0x00158c4e
LAB_0015e253:
MOV RAX,RBX
ADD RSP,0x30
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0015e263:
MOV RDI,qword ptr [R14 + 0x8]
MOV RSI,qword ptr [R15 + 0x8]
LEA RDX,[RSI + 0x30]
CALL 0x0015f46c
MOV qword ptr [RBX + 0x8],RAX
JMP 0x0015e253
LAB_0015e27a:
MOV EDI,0x20
CALL 0x0011b450
MOV RBX,RAX
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
LAB_0015e290:
LEA RSI,[0x1efec1]
LEA RDX,[0x1efee4]
LEA RDI,[RSP + 0x8]
CALL 0x00122cc0
MOV BPL,0x1
LAB_0015e2ab:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0xca
MOV RCX,R14
CALL 0x0015ef8c
XOR EBP,EBP
LEA RSI,[0x22ced8]
LEA RDX,[0x15b5c6]
MOV RDI,RBX
CALL 0x0011bf40
LAB_0015e2dd:
MOV EDI,0x20
CALL 0x0011b450
MOV RBX,RAX
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
LAB_0015e2f3:
LEA RSI,[0x1efee5]
LEA RDX,[0x1efefa]
LEA RDI,[RSP + 0x8]
CALL 0x00122cc0
MOV BPL,0x1
LAB_0015e30e:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0xcd
MOV RCX,R14
CALL 0x0015ef8c
XOR EBP,EBP
LEA RSI,[0x22ced8]
LEA RDX,[0x15b5c6]
MOV RDI,RBX
CALL 0x0011bf40
LAB_0015e33d:
MOV EDI,0x20
CALL 0x0011b450
MOV RBX,RAX
MOV RDI,R14
CALL 0x0015f44c
LEA RDX,[RSP + 0x28]
MOV qword ptr [RDX],RAX
LAB_0015e35a:
LEA RSI,[0x1efefb]
LEA RDI,[RSP + 0x8]
CALL 0x0015f3c3
MOV BPL,0x1
LAB_0015e36e:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0x133
MOV RCX,R14
CALL 0x0015f1f4
XOR EBP,EBP
LEA RSI,[0x22cf18]
LEA RDX,[0x15b5c6]
MOV RDI,RBX
CALL 0x0011bf40
|
long _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_
(long param_1,
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_2,long *param_3)
{
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
bVar1;
long *plVar2;
int8 uVar3;
ulong uVar4;
long *plVar5;
ulong uVar6;
int1 *local_50 [2];
int1 local_40 [16];
char *local_30;
if ((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*param_3 != param_2) {
uVar3 = __cxa_allocate_exception(0x20);
local_50[0] = local_40;
/* try { // try from 0015e290 to 0015e2a7 has its CatchHandler @ 0015e3d0 */
std::__cxx11::string::_M_construct<char_const*>
(local_50,"iterator does not fit current value","");
/* try { // try from 0015e2ab to 0015e2d7 has its CatchHandler @ 0015e3b4 */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar3,0xca,local_50,param_2);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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();
bVar1 = *param_2;
if (5 < (byte)bVar1 - 3) {
if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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) {
uVar3 = nlohmann::json_abi_v3_11_3::
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>>>>
::erase(*(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>>>>
**)(param_2 + 8),param_3[1],param_3[1] + 0x30);
*(int8 *)(param_1 + 8) = uVar3;
return param_1;
}
if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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) {
uVar3 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::_M_erase(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(param_2 + 8),param_3[2]);
*(int8 *)(param_1 + 0x10) = uVar3;
return param_1;
}
uVar3 = __cxa_allocate_exception(0x20);
local_30 = (char *)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name(param_2);
/* try { // try from 0015e35a to 0015e36a has its CatchHandler @ 0015e3ae */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[25],char_const*>
((detail *)local_50,"cannot use erase() with ",&local_30);
/* try { // try from 0015e36e to 0015e39a has its CatchHandler @ 0015e39b */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar3,0x133,local_50,param_2);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
if (param_3[3] != 0) {
uVar3 = __cxa_allocate_exception(0x20);
local_50[0] = local_40;
/* try { // try from 0015e2f3 to 0015e30a has its CatchHandler @ 0015e3b2 */
std::__cxx11::string::_M_construct<char_const*>(local_50,"iterator out of range","");
/* try { // try from 0015e30e to 0015e33a has its CatchHandler @ 0015e3b0 */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar3,0xcd,local_50,param_2);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x8) {
plVar5 = (long *)**(long **)(param_2 + 8);
uVar6 = 0x28;
if (plVar5 != (long *)0x0) {
uVar4 = (*(long **)(param_2 + 8))[2] - (long)plVar5;
LAB_0015e229:
operator_delete(plVar5,uVar4);
}
}
else {
if (bVar1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x3) goto LAB_0015e242;
plVar5 = (long *)**(long **)(param_2 + 8);
plVar2 = *(long **)(param_2 + 8) + 2;
uVar6 = 0x20;
if (plVar5 != plVar2) {
uVar4 = *plVar2 + 1;
goto LAB_0015e229;
}
}
operator_delete(*(void **)(param_2 + 8),uVar6);
*(int8 *)(param_2 + 8) = 0;
LAB_0015e242:
*param_2 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)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(SUB81(param_2,0));
return param_1;
}
|
||
59,566
|
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::erase<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, 0>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>)
|
monkey531[P]llama/common/json.hpp
|
IteratorType erase(IteratorType pos)
{
// make sure iterator fits the current value
if (JSON_HEDLEY_UNLIKELY(this != pos.m_object))
{
JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this));
}
IteratorType result = end();
switch (m_data.m_type)
{
case value_t::boolean:
case value_t::number_float:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::string:
case value_t::binary:
{
if (JSON_HEDLEY_UNLIKELY(!pos.m_it.primitive_iterator.is_begin()))
{
JSON_THROW(invalid_iterator::create(205, "iterator out of range", this));
}
if (is_string())
{
AllocatorType<string_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, m_data.m_value.string);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_data.m_value.string, 1);
m_data.m_value.string = nullptr;
}
else if (is_binary())
{
AllocatorType<binary_t> alloc;
std::allocator_traits<decltype(alloc)>::destroy(alloc, m_data.m_value.binary);
std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_data.m_value.binary, 1);
m_data.m_value.binary = nullptr;
}
m_data.m_type = value_t::null;
assert_invariant();
break;
}
case value_t::object:
{
result.m_it.object_iterator = m_data.m_value.object->erase(pos.m_it.object_iterator);
break;
}
case value_t::array:
{
result.m_it.array_iterator = m_data.m_value.array->erase(pos.m_it.array_iterator);
break;
}
case value_t::null:
case value_t::discarded:
default:
JSON_THROW(type_error::create(307, detail::concat("cannot use erase() with ", type_name()), this));
}
return result;
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::erase<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, 0>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
cmpq %rsi, (%rdx)
jne 0x42447
movq %rdx, %r15
movq %rdi, %rbx
movq %r14, %rsi
callq 0x42230
movzbl (%r14), %eax
leal -0x3(%rax), %ecx
cmpl $0x6, %ecx
jae 0x423da
cmpq $0x0, 0x18(%r15)
jne 0x4249b
cmpl $0x8, %eax
je 0x423fb
cmpl $0x3, %eax
jne 0x42417
leaq 0x8(%r14), %r15
movq 0x8(%r14), %rdi
callq 0x241f8
pushq $0x20
jmp 0x4240a
cmpl $0x1, %eax
je 0x42434
cmpl $0x2, %eax
jne 0x424ec
movq 0x8(%r14), %rdi
movq 0x10(%r15), %rsi
callq 0x431f8
movq %rax, 0x10(%rbx)
jmp 0x42426
leaq 0x8(%r14), %r15
movq 0x8(%r14), %rdi
callq 0x27fb0
pushq $0x28
popq %rsi
movq (%r15), %rdi
callq 0x238f0
andq $0x0, (%r15)
movb $0x0, (%r14)
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x3d8e2
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%r14), %rdi
movq 0x8(%r15), %rsi
callq 0x431ee
movq %rax, 0x8(%rbx)
jmp 0x42426
pushq $0x20
popq %rdi
callq 0x23470
movq %rax, %rbx
leaq 0x6ea7a(%rip), %rsi # 0xb0ed3
leaq 0x8(%rsp), %rdi
movq %rsp, %rdx
callq 0x27686
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xca, %esi
movq %r14, %rcx
callq 0x4306a
xorl %ebp, %ebp
leaq 0xb9a81(%rip), %rsi # 0xfbf08
leaq -0x253a(%rip), %rdx # 0x3ff54
movq %rbx, %rdi
callq 0x23f40
jmp 0x42546
pushq $0x20
popq %rdi
callq 0x23470
movq %rax, %rbx
leaq 0x6ea4a(%rip), %rsi # 0xb0ef7
leaq 0x8(%rsp), %rdi
movq %rsp, %rdx
callq 0x27686
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xcd, %esi
movq %r14, %rcx
callq 0x4306a
xorl %ebp, %ebp
leaq 0xb9a2d(%rip), %rsi # 0xfbf08
leaq -0x258e(%rip), %rdx # 0x3ff54
movq %rbx, %rdi
callq 0x23f40
jmp 0x42546
pushq $0x20
popq %rdi
callq 0x23470
movq %rax, %rbx
movq %r14, %rdi
callq 0x4334a
movq %rsp, %rdx
movq %rax, (%rdx)
leaq 0x6ea01(%rip), %rsi # 0xb0f0d
leaq 0x8(%rsp), %rdi
callq 0x432eb
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0x133, %esi # imm = 0x133
movq %r14, %rcx
callq 0x431fe
xorl %ebp, %ebp
leaq 0xb9a11(%rip), %rsi # 0xfbf48
leaq -0x25ea(%rip), %rdx # 0x3ff54
movq %rbx, %rdi
callq 0x23f40
jmp 0x4254e
jmp 0x42562
jmp 0x4254e
jmp 0x42562
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x241f8
testb %bpl, %bpl
jne 0x42565
jmp 0x4256d
movq %rax, %r14
movq %rbx, %rdi
callq 0x236a0
movq %r14, %rdi
callq 0x23fc0
nop
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_:
push rbp; char
push r15; int
push r14; int
push rbx; int
sub rsp, 28h
mov r14, rsi
cmp [rdx], rsi
jnz loc_42447
mov r15, rdx
mov rbx, rdi
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE3endEv; 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>::end(void)
movzx eax, byte ptr [r14]
lea ecx, [rax-3]
cmp ecx, 6
jnb short loc_423DA
cmp qword ptr [r15+18h], 0
jnz loc_4249B
cmp eax, 8
jz short loc_423FB
cmp eax, 3
jnz short loc_42417
lea r15, [r14+8]
mov rdi, [r14+8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
push 20h ; ' '
jmp short loc_4240A
loc_423DA:
cmp eax, 1
jz short loc_42434
cmp eax, 2
jnz loc_424EC
mov rdi, [r14+8]
mov rsi, [r15+10h]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKSD_SF_EE; 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>>::erase(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>)
mov [rbx+10h], rax
jmp short loc_42426
loc_423FB:
lea r15, [r14+8]
mov rdi, [r14+8]
call _ZNSt12_Vector_baseIhSaIhEED2Ev; std::_Vector_base<uchar>::~_Vector_base()
push 28h ; '('
loc_4240A:
pop rsi; unsigned __int64
mov rdi, [r15]; void *
call __ZdlPvm; operator delete(void *,ulong)
and qword ptr [r15], 0
loc_42417:
mov byte ptr [r14], 0
push 1
pop rsi
mov rdi, r14
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_42426:
mov rax, rbx
add rsp, 28h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_42434:
mov rdi, [r14+8]
mov rsi, [r15+8]
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEE; 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>>>>::erase(__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>>>>)
mov [rbx+8], rax
jmp short loc_42426
loc_42447:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aIteratorDoesNo; "iterator does not fit current value"
lea rdi, [rsp+48h+var_40]
mov rdx, rsp
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov bpl, 1
lea rdx, [rsp+48h+var_40]
mov rdi, rbx; this
mov esi, 0CAh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp loc_42546
loc_4249B:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aIteratorOutOfR; "iterator out of range"
lea rdi, [rsp+48h+var_40]
mov rdx, rsp
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov bpl, 1
lea rdx, [rsp+48h+var_40]
mov rdi, rbx; this
mov esi, 0CDh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp short loc_42546
loc_424EC:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
mov rdx, rsp
mov [rdx], rax
lea rsi, aCannotUseErase; "cannot use erase() with "
lea rdi, [rsp+48h+var_40]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA25_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[25],char const*>(char const(&)[25],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_40]
mov rdi, rbx; this
mov esi, 133h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_42546:
jmp short loc_4254E
jmp short loc_42562
jmp short loc_4254E
jmp short loc_42562
loc_4254E:
mov r14, rax
lea rdi, [rsp+48h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_42565
jmp short loc_4256D
loc_42562:
mov r14, rax
loc_42565:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_4256D:
mov rdi, r14
call __Unwind_Resume
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV R14,RSI
CMP qword ptr [RDX],RSI
JNZ 0x00142447
MOV R15,RDX
MOV RBX,RDI
MOV RSI,R14
CALL 0x00142230
MOVZX EAX,byte ptr [R14]
LEA ECX,[RAX + -0x3]
CMP ECX,0x6
JNC 0x001423da
CMP qword ptr [R15 + 0x18],0x0
JNZ 0x0014249b
CMP EAX,0x8
JZ 0x001423fb
CMP EAX,0x3
JNZ 0x00142417
LEA R15,[R14 + 0x8]
MOV RDI,qword ptr [R14 + 0x8]
CALL 0x001241f8
PUSH 0x20
JMP 0x0014240a
LAB_001423da:
CMP EAX,0x1
JZ 0x00142434
CMP EAX,0x2
JNZ 0x001424ec
MOV RDI,qword ptr [R14 + 0x8]
MOV RSI,qword ptr [R15 + 0x10]
CALL 0x001431f8
MOV qword ptr [RBX + 0x10],RAX
JMP 0x00142426
LAB_001423fb:
LEA R15,[R14 + 0x8]
MOV RDI,qword ptr [R14 + 0x8]
CALL 0x00127fb0
PUSH 0x28
LAB_0014240a:
POP RSI
MOV RDI,qword ptr [R15]
CALL 0x001238f0
AND qword ptr [R15],0x0
LAB_00142417:
MOV byte ptr [R14],0x0
PUSH 0x1
POP RSI
MOV RDI,R14
CALL 0x0013d8e2
LAB_00142426:
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00142434:
MOV RDI,qword ptr [R14 + 0x8]
MOV RSI,qword ptr [R15 + 0x8]
CALL 0x001431ee
MOV qword ptr [RBX + 0x8],RAX
JMP 0x00142426
LAB_00142447:
PUSH 0x20
POP RDI
CALL 0x00123470
MOV RBX,RAX
LAB_00142452:
LEA RSI,[0x1b0ed3]
LEA RDI,[RSP + 0x8]
MOV RDX,RSP
CALL 0x00127686
MOV BPL,0x1
LAB_00142469:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0xca
MOV RCX,R14
CALL 0x0014306a
XOR EBP,EBP
LEA RSI,[0x1fbf08]
LEA RDX,[0x13ff54]
MOV RDI,RBX
CALL 0x00123f40
LAB_0014249b:
PUSH 0x20
POP RDI
CALL 0x00123470
MOV RBX,RAX
LAB_001424a6:
LEA RSI,[0x1b0ef7]
LEA RDI,[RSP + 0x8]
MOV RDX,RSP
CALL 0x00127686
MOV BPL,0x1
LAB_001424bd:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0xcd
MOV RCX,R14
CALL 0x0014306a
XOR EBP,EBP
LEA RSI,[0x1fbf08]
LEA RDX,[0x13ff54]
MOV RDI,RBX
CALL 0x00123f40
LAB_001424ec:
PUSH 0x20
POP RDI
CALL 0x00123470
MOV RBX,RAX
MOV RDI,R14
CALL 0x0014334a
MOV RDX,RSP
MOV qword ptr [RDX],RAX
LAB_00142505:
LEA RSI,[0x1b0f0d]
LEA RDI,[RSP + 0x8]
CALL 0x001432eb
MOV BPL,0x1
LAB_00142519:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0x133
MOV RCX,R14
CALL 0x001431fe
XOR EBP,EBP
LEA RSI,[0x1fbf48]
LEA RDX,[0x13ff54]
MOV RDI,RBX
CALL 0x00123f40
|
long _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_
(long param_1,
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_2,long *param_3)
{
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
bVar1;
int8 uVar2;
ulong uStack_50;
char *local_48;
string local_40 [32];
if ((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*param_3 != param_2) {
uVar2 = __cxa_allocate_exception(0x20);
/* try { // try from 00142452 to 00142465 has its CatchHandler @ 00142562 */
std::__cxx11::string::string<std::allocator<char>>
(local_40,"iterator does not fit current value",(allocator *)&local_48);
/* try { // try from 00142469 to 00142495 has its CatchHandler @ 0014254e */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar2,0xca,local_40,param_2);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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();
bVar1 = *param_2;
if (5 < (byte)bVar1 - 3) {
if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 = nlohmann::json_abi_v3_11_3::
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>>>>
::erase(*(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>>>>
**)(param_2 + 8),param_3[1]);
*(int8 *)(param_1 + 8) = uVar2;
return param_1;
}
if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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) {
uVar2 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::erase(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(param_2 + 8),param_3[2]);
*(int8 *)(param_1 + 0x10) = uVar2;
return param_1;
}
uVar2 = __cxa_allocate_exception(0x20);
local_48 = (char *)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name(param_2);
/* try { // try from 00142505 to 00142515 has its CatchHandler @ 00142548 */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[25],char_const*>
((detail *)local_40,"cannot use erase() with ",&local_48);
/* try { // try from 00142519 to 00142545 has its CatchHandler @ 00142546 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar2,0x133,local_40,param_2);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
if (param_3[3] != 0) {
uVar2 = __cxa_allocate_exception(0x20);
/* try { // try from 001424a6 to 001424b9 has its CatchHandler @ 0014254c */
std::__cxx11::string::string<std::allocator<char>>
(local_40,"iterator out of range",(allocator *)&local_48);
/* try { // try from 001424bd to 001424e9 has its CatchHandler @ 0014254a */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar2,0xcd,local_40,param_2);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x8) {
std::_Vector_base<unsigned_char,std::allocator<unsigned_char>>::~_Vector_base
(*(_Vector_base<unsigned_char,std::allocator<unsigned_char>> **)(param_2 + 8));
uStack_50 = 0x28;
}
else {
if (bVar1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x3) goto LAB_00142417;
std::__cxx11::string::~string(*(string **)(param_2 + 8));
uStack_50 = 0x20;
}
operator_delete(*(void **)(param_2 + 8),uStack_50);
*(int8 *)(param_2 + 8) = 0;
LAB_00142417:
*param_2 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)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(SUB81(param_2,0));
return param_1;
}
|
||
59,567
|
tree_walk_right_root_left
|
eloqsql/mysys/tree.c
|
static int tree_walk_right_root_left(TREE *tree, TREE_ELEMENT *element, tree_walk_action action, void *argument)
{
int error;
if (element->right) /* Not null_element */
{
if ((error=tree_walk_right_root_left(tree,element->right,action,
argument)) == 0 &&
(error=(*action)(ELEMENT_KEY(tree,element),
(element_count) element->count,
argument)) == 0)
error=tree_walk_right_root_left(tree,element->left,action,argument);
return error;
}
return 0;
}
|
O3
|
c
|
tree_walk_right_root_left:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
movq 0x8(%rsi), %rsi
xorl %eax, %eax
testq %rsi, %rsi
je 0xc4dbb
movq %rcx, %r14
movq %rdx, %r15
movq %rdi, %r13
movl $0x7fffffff, %ebx # imm = 0x7FFFFFFF
movq %r13, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0xc4d48
testl %eax, %eax
jne 0xc4dbb
movl 0x208(%r13), %edi
testq %rdi, %rdi
je 0xc4d95
addq %r12, %rdi
jmp 0xc4d9a
movq 0x18(%r12), %rdi
movl 0x10(%r12), %esi
andl %ebx, %esi
movq %r14, %rdx
callq *%r15
testl %eax, %eax
jne 0xc4dbb
movq (%r12), %r12
movq 0x8(%r12), %rsi
testq %rsi, %rsi
jne 0xc4d72
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
tree_walk_right_root_left:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12, rsi
mov rsi, [rsi+8]
xor eax, eax
test rsi, rsi
jz short loc_C4DBB
mov r14, rcx
mov r15, rdx
mov r13, rdi
mov ebx, 7FFFFFFFh
loc_C4D72:
mov rdi, r13
mov rdx, r15
mov rcx, r14
call tree_walk_right_root_left
test eax, eax
jnz short loc_C4DBB
mov edi, [r13+208h]
test rdi, rdi
jz short loc_C4D95
add rdi, r12
jmp short loc_C4D9A
loc_C4D95:
mov rdi, [r12+18h]
loc_C4D9A:
mov esi, [r12+10h]
and esi, ebx
mov rdx, r14
call r15
test eax, eax
jnz short loc_C4DBB
mov r12, [r12]
mov rsi, [r12+8]
test rsi, rsi
jnz short loc_C4D72
xor eax, eax
loc_C4DBB:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long tree_walk_right_root_left(
long long a1,
long long **a2,
long long ( *a3)(long long, long long, long long),
long long a4)
{
long long **v4; // r12
long long *v5; // rsi
long long result; // rax
long long v10; // rdi
v4 = a2;
v5 = a2[1];
result = 0LL;
if ( v5 )
{
while ( 1 )
{
result = tree_walk_right_root_left(a1, v5, a3, a4);
if ( (_DWORD)result )
break;
v10 = *(_DWORD *)(a1 + 520) ? (long long)v4 + *(unsigned int *)(a1 + 520) : (long long)v4[3];
result = a3(v10, (_DWORD)v4[2] & 0x7FFFFFFF, a4);
if ( (_DWORD)result )
break;
v4 = (long long **)*v4;
v5 = v4[1];
if ( !v5 )
return 0LL;
}
}
return result;
}
|
tree_walk_right_root_left:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12,RSI
MOV RSI,qword ptr [RSI + 0x8]
XOR EAX,EAX
TEST RSI,RSI
JZ 0x001c4dbb
MOV R14,RCX
MOV R15,RDX
MOV R13,RDI
MOV EBX,0x7fffffff
LAB_001c4d72:
MOV RDI,R13
MOV RDX,R15
MOV RCX,R14
CALL 0x001c4d48
TEST EAX,EAX
JNZ 0x001c4dbb
MOV EDI,dword ptr [R13 + 0x208]
TEST RDI,RDI
JZ 0x001c4d95
ADD RDI,R12
JMP 0x001c4d9a
LAB_001c4d95:
MOV RDI,qword ptr [R12 + 0x18]
LAB_001c4d9a:
MOV ESI,dword ptr [R12 + 0x10]
AND ESI,EBX
MOV RDX,R14
CALL R15
TEST EAX,EAX
JNZ 0x001c4dbb
MOV R12,qword ptr [R12]
MOV RSI,qword ptr [R12 + 0x8]
TEST RSI,RSI
JNZ 0x001c4d72
XOR EAX,EAX
LAB_001c4dbb:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 tree_walk_right_root_left(long param_1,long *param_2,code *param_3,int8 param_4)
{
int8 uVar1;
long lVar2;
lVar2 = param_2[1];
while( true ) {
if (lVar2 == 0) {
return 0;
}
uVar1 = tree_walk_right_root_left(param_1,lVar2,param_3,param_4);
if ((int)uVar1 != 0) break;
if ((ulong)*(uint *)(param_1 + 0x208) == 0) {
lVar2 = param_2[3];
}
else {
lVar2 = (ulong)*(uint *)(param_1 + 0x208) + (long)param_2;
}
uVar1 = (*param_3)(lVar2,*(uint *)(param_2 + 2) & 0x7fffffff,param_4);
if ((int)uVar1 != 0) {
return uVar1;
}
param_2 = (long *)*param_2;
lVar2 = param_2[1];
}
return uVar1;
}
|
|
59,568
|
wt_thd_destroy
|
eloqsql/mysys/waiting_threads.c
|
void wt_thd_destroy(WT_THD *thd)
{
DBUG_ENTER("wt_thd_destroy");
DBUG_ASSERT(thd->my_resources.elements == 0);
DBUG_ASSERT(thd->waiting_for == 0);
if (thd->pins != 0)
lf_hash_put_pins(thd->pins);
delete_dynamic(&thd->my_resources);
DBUG_VOID_RETURN;
}
|
O0
|
c
|
wt_thd_destroy:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
jmp 0xffd4e
jmp 0xffd50
jmp 0xffd52
movq -0x8(%rbp), %rax
cmpq $0x0, 0x30(%rax)
je 0xffd6a
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0xfc300
movq -0x8(%rbp), %rdi
callq 0xdadd0
jmp 0xffd75
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
wt_thd_destroy:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
jmp short $+2
loc_FFD4E:
jmp short $+2
loc_FFD50:
jmp short $+2
loc_FFD52:
mov rax, [rbp+var_8]
cmp qword ptr [rax+30h], 0
jz short loc_FFD6A
mov rax, [rbp+var_8]
mov rdi, [rax+30h]
call lf_pinbox_put_pins
loc_FFD6A:
mov rdi, [rbp+var_8]
call delete_dynamic
jmp short $+2
loc_FFD75:
add rsp, 10h
pop rbp
retn
|
long long wt_thd_destroy(long long a1)
{
if ( *(_QWORD *)(a1 + 48) )
lf_pinbox_put_pins(*(_QWORD *)(a1 + 48));
return delete_dynamic(a1);
}
|
wt_thd_destroy:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
JMP 0x001ffd4e
LAB_001ffd4e:
JMP 0x001ffd50
LAB_001ffd50:
JMP 0x001ffd52
LAB_001ffd52:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x30],0x0
JZ 0x001ffd6a
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x30]
CALL 0x001fc300
LAB_001ffd6a:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001dadd0
JMP 0x001ffd75
LAB_001ffd75:
ADD RSP,0x10
POP RBP
RET
|
void wt_thd_destroy(long param_1)
{
if (*(long *)(param_1 + 0x30) != 0) {
lf_pinbox_put_pins(*(int8 *)(param_1 + 0x30));
}
delete_dynamic(param_1);
return;
}
|
|
59,569
|
write_hook_for_redo
|
eloqsql/storage/maria/ma_blockrec.c
|
my_bool write_hook_for_redo(enum translog_record_type type
__attribute__ ((unused)),
TRN *trn, MARIA_HA *tbl_info
__attribute__ ((unused)),
LSN *lsn, void *hook_arg
__attribute__ ((unused)))
{
/*
Users of dummy_transaction_object must keep this TRN clean as it
is used by many threads (like those manipulating non-transactional
tables). It might be dangerous if one user sets rec_lsn or some other
member and it is picked up by another user (like putting this rec_lsn into
a page of a non-transactional table); it's safer if all members stay 0. So
non-transactional log records (REPAIR, CREATE, RENAME, DROP) should not
call this hook; we trust them but verify ;)
*/
DBUG_ASSERT(trn->trid != 0);
/*
If the hook stays so simple, it would be faster to pass
!trn->rec_lsn ? trn->rec_lsn : some_dummy_lsn
to translog_write_record(), like Monty did in his original code, and not
have a hook. For now we keep it like this.
*/
if (trn->rec_lsn == 0)
trn->rec_lsn= *lsn;
return 0;
}
|
O0
|
c
|
write_hook_for_redo:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
jmp 0x7a999
movq -0x10(%rbp), %rax
cmpq $0x0, 0x90(%rax)
jne 0x7a9b9
movq -0x20(%rbp), %rax
movq (%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x90(%rax)
xorl %eax, %eax
popq %rbp
retq
nopl (%rax)
|
write_hook_for_redo:
push rbp
mov rbp, rsp
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_7A999:
mov rax, [rbp+var_10]
cmp qword ptr [rax+90h], 0
jnz short loc_7A9B9
mov rax, [rbp+var_20]
mov rcx, [rax]
mov rax, [rbp+var_10]
mov [rax+90h], rcx
loc_7A9B9:
xor eax, eax
pop rbp
retn
|
long long write_hook_for_redo(long long a1, long long a2, long long a3, _QWORD *a4)
{
if ( !*(_QWORD *)(a2 + 144) )
*(_QWORD *)(a2 + 144) = *a4;
return 0LL;
}
|
write_hook_for_redo:
PUSH RBP
MOV RBP,RSP
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 0x0017a999
LAB_0017a999:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x90],0x0
JNZ 0x0017a9b9
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x90],RCX
LAB_0017a9b9:
XOR EAX,EAX
POP RBP
RET
|
int8
write_hook_for_redo(int8 param_1,long param_2,int8 param_3,int8 *param_4)
{
if (*(long *)(param_2 + 0x90) == 0) {
*(int8 *)(param_2 + 0x90) = *param_4;
}
return 0;
}
|
|
59,570
|
maria_extra_keyflag
|
eloqsql/storage/maria/ma_extra.c
|
static void maria_extra_keyflag(MARIA_HA *info,
enum ha_extra_function function)
{
uint idx;
for (idx= 0; idx< info->s->base.keys; idx++)
{
switch (function) {
case HA_EXTRA_CHANGE_KEY_TO_UNIQUE:
info->s->keyinfo[idx].flag|= HA_NOSAME;
break;
case HA_EXTRA_CHANGE_KEY_TO_DUP:
info->s->keyinfo[idx].flag&= ~(HA_NOSAME);
break;
default:
break;
}
}
}
|
O0
|
c
|
maria_extra_keyflag:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
cmpl 0x3e8(%rcx), %eax
jae 0x4347d
movl -0xc(%rbp), %eax
movl %eax, -0x14(%rbp)
subl $0x1e, %eax
je 0x4340f
jmp 0x43405
movl -0x14(%rbp), %eax
subl $0x1f, %eax
je 0x4343d
jmp 0x4346b
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x570(%rax), %rax
movl -0x10(%rbp), %ecx
imulq $0x118, %rcx, %rcx # imm = 0x118
addq %rcx, %rax
movzwl 0xa2(%rax), %ecx
orl $0x1, %ecx
movw %cx, 0xa2(%rax)
jmp 0x4346d
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x570(%rax), %rax
movl -0x10(%rbp), %ecx
imulq $0x118, %rcx, %rcx # imm = 0x118
addq %rcx, %rax
movzwl 0xa2(%rax), %ecx
andl $-0x2, %ecx
movw %cx, 0xa2(%rax)
jmp 0x4346d
jmp 0x4346d
jmp 0x4346f
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x433e2
popq %rbp
retq
nop
|
maria_extra_keyflag:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], 0
loc_433E2:
mov eax, [rbp+var_10]
mov rcx, [rbp+var_8]
mov rcx, [rcx]
cmp eax, [rcx+3E8h]
jnb loc_4347D
mov eax, [rbp+var_C]
mov [rbp+var_14], eax
sub eax, 1Eh
jz short loc_4340F
jmp short $+2
loc_43405:
mov eax, [rbp+var_14]
sub eax, 1Fh
jz short loc_4343D
jmp short loc_4346B
loc_4340F:
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+570h]
mov ecx, [rbp+var_10]
imul rcx, 118h
add rax, rcx
movzx ecx, word ptr [rax+0A2h]
or ecx, 1
mov [rax+0A2h], cx
jmp short loc_4346D
loc_4343D:
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+570h]
mov ecx, [rbp+var_10]
imul rcx, 118h
add rax, rcx
movzx ecx, word ptr [rax+0A2h]
and ecx, 0FFFFFFFEh
mov [rax+0A2h], cx
jmp short loc_4346D
loc_4346B:
jmp short $+2
loc_4346D:
jmp short $+2
loc_4346F:
mov eax, [rbp+var_10]
add eax, 1
mov [rbp+var_10], eax
jmp loc_433E2
loc_4347D:
pop rbp
retn
|
long long maria_extra_keyflag(long long a1, int a2)
{
long long result; // rax
long long v3; // rax
long long v4; // rax
unsigned int i; // [rsp+4h] [rbp-10h]
for ( i = 0; ; ++i )
{
result = i;
if ( i >= *(_DWORD *)(*(_QWORD *)a1 + 1000LL) )
break;
if ( a2 == 30 )
{
v3 = 280LL * i + *(_QWORD *)(*(_QWORD *)a1 + 1392LL);
*(_WORD *)(v3 + 162) |= 1u;
}
else if ( a2 == 31 )
{
v4 = 280LL * i + *(_QWORD *)(*(_QWORD *)a1 + 1392LL);
*(_WORD *)(v4 + 162) &= ~1u;
}
}
return result;
}
|
maria_extra_keyflag:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],0x0
LAB_001433e2:
MOV EAX,dword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RCX]
CMP EAX,dword ptr [RCX + 0x3e8]
JNC 0x0014347d
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x14],EAX
SUB EAX,0x1e
JZ 0x0014340f
JMP 0x00143405
LAB_00143405:
MOV EAX,dword ptr [RBP + -0x14]
SUB EAX,0x1f
JZ 0x0014343d
JMP 0x0014346b
LAB_0014340f:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x570]
MOV ECX,dword ptr [RBP + -0x10]
IMUL RCX,RCX,0x118
ADD RAX,RCX
MOVZX ECX,word ptr [RAX + 0xa2]
OR ECX,0x1
MOV word ptr [RAX + 0xa2],CX
JMP 0x0014346d
LAB_0014343d:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x570]
MOV ECX,dword ptr [RBP + -0x10]
IMUL RCX,RCX,0x118
ADD RAX,RCX
MOVZX ECX,word ptr [RAX + 0xa2]
AND ECX,0xfffffffe
MOV word ptr [RAX + 0xa2],CX
JMP 0x0014346d
LAB_0014346b:
JMP 0x0014346d
LAB_0014346d:
JMP 0x0014346f
LAB_0014346f:
MOV EAX,dword ptr [RBP + -0x10]
ADD EAX,0x1
MOV dword ptr [RBP + -0x10],EAX
JMP 0x001433e2
LAB_0014347d:
POP RBP
RET
|
void maria_extra_keyflag(long *param_1,int param_2)
{
long lVar1;
int4 local_18;
for (local_18 = 0; local_18 < *(uint *)(*param_1 + 1000); local_18 = local_18 + 1) {
if (param_2 == 0x1e) {
lVar1 = *(long *)(*param_1 + 0x570) + (ulong)local_18 * 0x118;
*(ushort *)(lVar1 + 0xa2) = *(ushort *)(lVar1 + 0xa2) | 1;
}
else if (param_2 == 0x1f) {
lVar1 = *(long *)(*param_1 + 0x570) + (ulong)local_18 * 0x118;
*(ushort *)(lVar1 + 0xa2) = *(ushort *)(lVar1 + 0xa2) & 0xfffe;
}
}
return;
}
|
|
59,571
|
translog_read_record_header_from_buffer
|
eloqsql/storage/maria/ma_loghandler.c
|
int translog_read_record_header_from_buffer(uchar *page,
uint16 page_offset,
TRANSLOG_HEADER_BUFFER *buff,
TRANSLOG_SCANNER_DATA *scanner)
{
translog_size_t res;
DBUG_ENTER("translog_read_record_header_from_buffer");
DBUG_PRINT("info", ("page byte: 0x%x offset: %u",
(uint) page[page_offset], (uint) page_offset));
DBUG_ASSERT(translog_is_LSN_chunk(page[page_offset]));
DBUG_ASSERT(translog_status == TRANSLOG_OK ||
translog_status == TRANSLOG_READONLY);
buff->type= (page[page_offset] & TRANSLOG_REC_TYPE);
buff->short_trid= uint2korr(page + page_offset + 1);
DBUG_PRINT("info", ("Type %u, Short TrID %u, LSN " LSN_FMT,
(uint) buff->type, (uint)buff->short_trid,
LSN_IN_PARTS(buff->lsn)));
/* Read required bytes from the header and call hook */
switch (log_record_type_descriptor[buff->type].rclass) {
case LOGRECTYPE_VARIABLE_LENGTH:
res= translog_variable_length_header(page, page_offset, buff,
scanner);
break;
case LOGRECTYPE_PSEUDOFIXEDLENGTH:
case LOGRECTYPE_FIXEDLENGTH:
res= translog_fixed_length_header(page, page_offset, buff);
break;
default:
DBUG_ASSERT(0); /* we read some junk (got no LSN) */
res= RECHEADER_READ_ERROR;
}
DBUG_RETURN(res);
}
|
O0
|
c
|
translog_read_record_header_from_buffer:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movw %si, %ax
movq %rdi, -0x8(%rbp)
movw %ax, -0xa(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
jmp 0x32e4d
jmp 0x32e4f
jmp 0x32e51
jmp 0x32e53
jmp 0x32e55
movq -0x8(%rbp), %rax
movzwl -0xa(%rbp), %ecx
movzbl (%rax,%rcx), %ecx
andl $0x3f, %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x420(%rax)
movq -0x8(%rbp), %rax
movzwl -0xa(%rbp), %ecx
movslq %ecx, %rcx
movw 0x1(%rax,%rcx), %cx
movq -0x18(%rbp), %rax
movw %cx, 0x10(%rax)
jmp 0x32e88
movq -0x18(%rbp), %rax
movl 0x420(%rax), %eax
leaq (%rax,%rax,8), %rcx
leaq 0x444bd3(%rip), %rax # 0x477a70
movl (%rax,%rcx,8), %eax
movl %eax, -0x28(%rbp)
subl $0x1, %eax
je 0x32eb7
jmp 0x32eaa
movl -0x28(%rbp), %eax
addl $-0x2, %eax
subl $0x2, %eax
jb 0x32ed1
jmp 0x32ee7
movq -0x8(%rbp), %rdi
movzwl -0xa(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0x32f10
movl %eax, -0x24(%rbp)
jmp 0x32ef2
movq -0x8(%rbp), %rdi
movzwl -0xa(%rbp), %esi
movq -0x18(%rbp), %rdx
callq 0x337c0
movl %eax, -0x24(%rbp)
jmp 0x32ef2
jmp 0x32ee9
jmp 0x32eeb
movl $0xffffffff, -0x24(%rbp) # imm = 0xFFFFFFFF
jmp 0x32ef4
movl -0x24(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
translog_read_record_header_from_buffer:
push rbp
mov rbp, rsp
sub rsp, 30h
mov ax, si
mov [rbp+var_8], rdi
mov [rbp+var_A], ax
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
jmp short $+2
loc_32E4D:
jmp short $+2
loc_32E4F:
jmp short $+2
loc_32E51:
jmp short $+2
loc_32E53:
jmp short $+2
loc_32E55:
mov rax, [rbp+var_8]
movzx ecx, [rbp+var_A]
movzx ecx, byte ptr [rax+rcx]
and ecx, 3Fh
mov rax, [rbp+var_18]
mov [rax+420h], ecx
mov rax, [rbp+var_8]
movzx ecx, [rbp+var_A]
movsxd rcx, ecx
mov cx, [rax+rcx+1]
mov rax, [rbp+var_18]
mov [rax+10h], cx
jmp short $+2
loc_32E88:
mov rax, [rbp+var_18]
mov eax, [rax+420h]
lea rcx, [rax+rax*8]
lea rax, log_record_type_descriptor
mov eax, [rax+rcx*8]
mov [rbp+var_28], eax
sub eax, 1
jz short loc_32EB7
jmp short $+2
loc_32EAA:
mov eax, [rbp+var_28]
add eax, 0FFFFFFFEh
sub eax, 2
jb short loc_32ED1
jmp short loc_32EE7
loc_32EB7:
mov rdi, [rbp+var_8]
movzx esi, [rbp+var_A]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call translog_variable_length_header
mov [rbp+var_24], eax
jmp short loc_32EF2
loc_32ED1:
mov rdi, [rbp+var_8]
movzx esi, [rbp+var_A]
mov rdx, [rbp+var_18]
call translog_fixed_length_header
mov [rbp+var_24], eax
jmp short loc_32EF2
loc_32EE7:
jmp short $+2
loc_32EE9:
jmp short $+2
loc_32EEB:
mov [rbp+var_24], 0FFFFFFFFh
loc_32EF2:
jmp short $+2
loc_32EF4:
mov eax, [rbp+var_24]
mov [rbp+var_2C], eax
mov eax, [rbp+var_2C]
add rsp, 30h
pop rbp
retn
|
long long translog_read_record_header_from_buffer(long long a1, unsigned __int16 a2, long long a3, long long a4)
{
int v5; // [rsp+8h] [rbp-28h]
*(_DWORD *)(a3 + 1056) = *(_BYTE *)(a1 + a2) & 0x3F;
*(_WORD *)(a3 + 16) = *(_WORD *)(a1 + a2 + 1);
v5 = log_record_type_descriptor[18 * *(unsigned int *)(a3 + 1056)];
if ( v5 == 1 )
{
return (unsigned int)translog_variable_length_header(a1, a2, a3, a4);
}
else if ( (unsigned int)(v5 - 2) < 2 )
{
return (unsigned int)translog_fixed_length_header(a1, a2, a3);
}
else
{
return (unsigned int)-1;
}
}
|
translog_read_record_header_from_buffer:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV AX,SI
MOV qword ptr [RBP + -0x8],RDI
MOV word ptr [RBP + -0xa],AX
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
JMP 0x00132e4d
LAB_00132e4d:
JMP 0x00132e4f
LAB_00132e4f:
JMP 0x00132e51
LAB_00132e51:
JMP 0x00132e53
LAB_00132e53:
JMP 0x00132e55
LAB_00132e55:
MOV RAX,qword ptr [RBP + -0x8]
MOVZX ECX,word ptr [RBP + -0xa]
MOVZX ECX,byte ptr [RAX + RCX*0x1]
AND ECX,0x3f
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x420],ECX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX ECX,word ptr [RBP + -0xa]
MOVSXD RCX,ECX
MOV CX,word ptr [RAX + RCX*0x1 + 0x1]
MOV RAX,qword ptr [RBP + -0x18]
MOV word ptr [RAX + 0x10],CX
JMP 0x00132e88
LAB_00132e88:
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x420]
LEA RCX,[RAX + RAX*0x8]
LEA RAX,[0x577a70]
MOV EAX,dword ptr [RAX + RCX*0x8]
MOV dword ptr [RBP + -0x28],EAX
SUB EAX,0x1
JZ 0x00132eb7
JMP 0x00132eaa
LAB_00132eaa:
MOV EAX,dword ptr [RBP + -0x28]
ADD EAX,-0x2
SUB EAX,0x2
JC 0x00132ed1
JMP 0x00132ee7
LAB_00132eb7:
MOV RDI,qword ptr [RBP + -0x8]
MOVZX ESI,word ptr [RBP + -0xa]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
CALL 0x00132f10
MOV dword ptr [RBP + -0x24],EAX
JMP 0x00132ef2
LAB_00132ed1:
MOV RDI,qword ptr [RBP + -0x8]
MOVZX ESI,word ptr [RBP + -0xa]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x001337c0
MOV dword ptr [RBP + -0x24],EAX
JMP 0x00132ef2
LAB_00132ee7:
JMP 0x00132ee9
LAB_00132ee9:
JMP 0x00132eeb
LAB_00132eeb:
MOV dword ptr [RBP + -0x24],0xffffffff
LAB_00132ef2:
JMP 0x00132ef4
LAB_00132ef4:
MOV EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x2c],EAX
MOV EAX,dword ptr [RBP + -0x2c]
ADD RSP,0x30
POP RBP
RET
|
int4
translog_read_record_header_from_buffer(long param_1,ushort param_2,long param_3,int8 param_4)
{
int4 local_2c;
*(uint *)(param_3 + 0x420) = *(byte *)(param_1 + (ulong)param_2) & 0x3f;
*(int2 *)(param_3 + 0x10) = *(int2 *)(param_1 + 1 + (long)(int)(uint)param_2);
if (*(int *)(log_record_type_descriptor + (ulong)*(uint *)(param_3 + 0x420) * 0x48) == 1) {
local_2c = translog_variable_length_header(param_1,param_2,param_3,param_4);
}
else if (*(int *)(log_record_type_descriptor + (ulong)*(uint *)(param_3 + 0x420) * 0x48) - 2U < 2)
{
local_2c = translog_fixed_length_header(param_1,param_2,param_3);
}
else {
local_2c = 0xffffffff;
}
return local_2c;
}
|
|
59,572
|
ColorAlphaBlend
|
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rtextures.c
|
Color ColorAlphaBlend(Color dst, Color src, Color tint)
{
Color out = WHITE;
// Apply color tint to source color
src.r = (unsigned char)(((unsigned int)src.r*((unsigned int)tint.r+1)) >> 8);
src.g = (unsigned char)(((unsigned int)src.g*((unsigned int)tint.g+1)) >> 8);
src.b = (unsigned char)(((unsigned int)src.b*((unsigned int)tint.b+1)) >> 8);
src.a = (unsigned char)(((unsigned int)src.a*((unsigned int)tint.a+1)) >> 8);
//#define COLORALPHABLEND_FLOAT
#define COLORALPHABLEND_INTEGERS
#if defined(COLORALPHABLEND_INTEGERS)
if (src.a == 0) out = dst;
else if (src.a == 255) out = src;
else
{
unsigned int alpha = (unsigned int)src.a + 1; // We are shifting by 8 (dividing by 256), so we need to take that excess into account
out.a = (unsigned char)(((unsigned int)alpha*256 + (unsigned int)dst.a*(256 - alpha)) >> 8);
if (out.a > 0)
{
out.r = (unsigned char)((((unsigned int)src.r*alpha*256 + (unsigned int)dst.r*(unsigned int)dst.a*(256 - alpha))/out.a) >> 8);
out.g = (unsigned char)((((unsigned int)src.g*alpha*256 + (unsigned int)dst.g*(unsigned int)dst.a*(256 - alpha))/out.a) >> 8);
out.b = (unsigned char)((((unsigned int)src.b*alpha*256 + (unsigned int)dst.b*(unsigned int)dst.a*(256 - alpha))/out.a) >> 8);
}
}
#endif
#if defined(COLORALPHABLEND_FLOAT)
if (src.a == 0) out = dst;
else if (src.a == 255) out = src;
else
{
Vector4 fdst = ColorNormalize(dst);
Vector4 fsrc = ColorNormalize(src);
Vector4 ftint = ColorNormalize(tint);
Vector4 fout = { 0 };
fout.w = fsrc.w + fdst.w*(1.0f - fsrc.w);
if (fout.w > 0.0f)
{
fout.x = (fsrc.x*fsrc.w + fdst.x*fdst.w*(1 - fsrc.w))/fout.w;
fout.y = (fsrc.y*fsrc.w + fdst.y*fdst.w*(1 - fsrc.w))/fout.w;
fout.z = (fsrc.z*fsrc.w + fdst.z*fdst.w*(1 - fsrc.w))/fout.w;
}
out = (Color){ (unsigned char)(fout.x*255.0f), (unsigned char)(fout.y*255.0f), (unsigned char)(fout.z*255.0f), (unsigned char)(fout.w*255.0f) };
}
#endif
return out;
}
|
O2
|
c
|
ColorAlphaBlend:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edi, %r9d
shrl $0x8, %r9d
movl %edi, %r8d
shrl $0x10, %r8d
movl %edi, %ebx
shrl $0x18, %ebx
movl %esi, %eax
shrl $0x18, %eax
movl %edx, %r14d
shrl $0x18, %r14d
movl $0xff, %r11d
incl %r14d
imull %eax, %r14d
shrl $0x8, %r14d
je 0x86743
movl %esi, %ebp
shrl $0x8, %ebp
movl %esi, %eax
shrl $0x10, %eax
movl %edx, %ecx
shrl $0x8, %ecx
movl %edx, %r10d
shrl $0x10, %r10d
andl %r11d, %esi
andl %r11d, %edx
incl %edx
imull %esi, %edx
andl %r11d, %ebp
andl %r11d, %ecx
incl %ecx
imull %ebp, %ecx
shrl $0x8, %ecx
andl %r11d, %eax
andl %r11d, %r10d
incl %r10d
imull %eax, %r10d
shrl $0x8, %r10d
cmpl $0xff, %r14d
jne 0x86750
shrl $0x8, %edx
movl $0xff, %esi
movl %edx, %edi
jmp 0x867ef
movl %r9d, %ecx
movl %r8d, %r10d
movl %ebx, %esi
jmp 0x867ef
movl $0xff, %eax
movl %r14d, %ebp
xorl %eax, %ebp
movl %ebp, %esi
imull %ebx, %esi
shrl $0x8, %esi
addl %r14d, %esi
incl %esi
movl %esi, %r15d
andl %eax, %r15d
je 0x867df
incl %r14d
andl $0x1ff00, %edx # imm = 0x1FF00
imull %r14d, %edx
movl $0xff, %r12d
andl %r12d, %edi
imull %ebx, %edi
imull %ebp, %edi
addl %edx, %edi
movl %edi, %eax
xorl %edx, %edx
divl %r15d
movl %eax, %edi
shrl $0x8, %edi
shll $0x8, %r14d
imull %r14d, %ecx
andl %r12d, %r9d
imull %ebx, %r9d
imull %ebp, %r9d
addl %ecx, %r9d
movl %r9d, %eax
xorl %edx, %edx
divl %r15d
movl %eax, %ecx
shrl $0x8, %ecx
imull %r10d, %r14d
andl %r12d, %r8d
imull %ebx, %r8d
imull %ebp, %r8d
addl %r14d, %r8d
movl %r8d, %eax
xorl %edx, %edx
divl %r15d
movl %eax, %r10d
shrl $0x8, %r10d
jmp 0x867ef
movl $0xff, %edi
movl $0xff, %ecx
movl $0xff, %r10d
shll $0x18, %esi
andl %r11d, %r10d
shll $0x10, %r10d
orl %esi, %r10d
shll $0x8, %ecx
movzwl %cx, %eax
orl %r10d, %eax
andl %r11d, %edi
orl %eax, %edi
movl %edi, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
ColorAlphaBlend:
push rbp
push r15
push r14
push r12
push rbx
mov r9d, edi
shr r9d, 8
mov r8d, edi
shr r8d, 10h
mov ebx, edi
shr ebx, 18h
mov eax, esi
shr eax, 18h
mov r14d, edx
shr r14d, 18h
mov r11d, 0FFh
inc r14d
imul r14d, eax
shr r14d, 8
jz short loc_86743
mov ebp, esi
shr ebp, 8
mov eax, esi
shr eax, 10h
mov ecx, edx
shr ecx, 8
mov r10d, edx
shr r10d, 10h
and esi, r11d
and edx, r11d
inc edx
imul edx, esi
and ebp, r11d
and ecx, r11d
inc ecx
imul ecx, ebp
shr ecx, 8
and eax, r11d
and r10d, r11d
inc r10d
imul r10d, eax
shr r10d, 8
cmp r14d, 0FFh
jnz short loc_86750
shr edx, 8
mov esi, 0FFh
mov edi, edx
jmp loc_867EF
loc_86743:
mov ecx, r9d
mov r10d, r8d
mov esi, ebx
jmp loc_867EF
loc_86750:
mov eax, 0FFh
mov ebp, r14d
xor ebp, eax
mov esi, ebp
imul esi, ebx
shr esi, 8
add esi, r14d
inc esi
mov r15d, esi
and r15d, eax
jz short loc_867DF
inc r14d
and edx, 1FF00h
imul edx, r14d
mov r12d, 0FFh
and edi, r12d
imul edi, ebx
imul edi, ebp
add edi, edx
mov eax, edi
xor edx, edx
div r15d
mov edi, eax
shr edi, 8
shl r14d, 8
imul ecx, r14d
and r9d, r12d
imul r9d, ebx
imul r9d, ebp
add r9d, ecx
mov eax, r9d
xor edx, edx
div r15d
mov ecx, eax
shr ecx, 8
imul r14d, r10d
and r8d, r12d
imul r8d, ebx
imul r8d, ebp
add r8d, r14d
mov eax, r8d
xor edx, edx
div r15d
mov r10d, eax
shr r10d, 8
jmp short loc_867EF
loc_867DF:
mov edi, 0FFh
mov ecx, 0FFh
mov r10d, 0FFh
loc_867EF:
shl esi, 18h
and r10d, r11d
shl r10d, 10h
or r10d, esi
shl ecx, 8
movzx eax, cx
or eax, r10d
and edi, r11d
or edi, eax
mov eax, edi
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
long long ColorAlphaBlend(unsigned int a1, unsigned int a2, unsigned int a3)
{
unsigned int v3; // r9d
unsigned int v4; // r8d
unsigned int v5; // ebx
unsigned int v6; // r14d
unsigned int v7; // ecx
unsigned int v8; // r10d
int v9; // edx
unsigned int v10; // ecx
unsigned int v11; // r10d
unsigned int v12; // esi
int v13; // ebp
unsigned int v14; // r15d
unsigned int v15; // r14d
v3 = a1 >> 8;
v4 = HIWORD(a1);
v5 = HIBYTE(a1);
v6 = (unsigned int)(HIBYTE(a2) * (HIBYTE(a3) + 1)) >> 8;
if ( v6 )
{
v7 = a3 >> 8;
v8 = HIWORD(a3);
v9 = (unsigned __int8)a2 * ((unsigned __int8)a3 + 1);
v10 = (BYTE1(a2) * ((unsigned int)(unsigned __int8)v7 + 1)) >> 8;
v11 = (BYTE2(a2) * ((unsigned int)(unsigned __int8)v8 + 1)) >> 8;
if ( v6 == 255 )
{
v12 = 255;
LOBYTE(a1) = BYTE1(v9);
}
else
{
v13 = v6 ^ 0xFF;
v12 = v6 + ((v5 * (v6 ^ 0xFF)) >> 8) + 1;
v14 = (unsigned __int8)(v6 + ((unsigned __int16)(v5 * (v6 ^ 0xFF)) >> 8) + 1);
if ( (_BYTE)v6 + ((unsigned __int16)(v5 * (v6 ^ 0xFF)) >> 8) == 0xFF )
{
LOBYTE(a1) = -1;
LOWORD(v10) = 255;
LOBYTE(v11) = -1;
}
else
{
v15 = v6 + 1;
a1 = ((v15 * (v9 & 0x1FF00) + v13 * v5 * (unsigned __int8)a1) / v14) >> 8;
v15 <<= 8;
v10 = ((v15 * v10 + v13 * v5 * (unsigned __int8)v3) / v14) >> 8;
v11 = ((v11 * v15 + v13 * v5 * (unsigned __int8)v4) / v14) >> 8;
}
}
}
else
{
LOWORD(v10) = a1 >> 8;
LOBYTE(v11) = BYTE2(a1);
v12 = HIBYTE(a1);
}
return (v12 << 24) | ((unsigned __int8)v11 << 16) | (unsigned __int16)((_WORD)v10 << 8) | (unsigned __int8)a1;
}
|
ColorAlphaBlend:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R9D,EDI
SHR R9D,0x8
MOV R8D,EDI
SHR R8D,0x10
MOV EBX,EDI
SHR EBX,0x18
MOV EAX,ESI
SHR EAX,0x18
MOV R14D,EDX
SHR R14D,0x18
MOV R11D,0xff
INC R14D
IMUL R14D,EAX
SHR R14D,0x8
JZ 0x00186743
MOV EBP,ESI
SHR EBP,0x8
MOV EAX,ESI
SHR EAX,0x10
MOV ECX,EDX
SHR ECX,0x8
MOV R10D,EDX
SHR R10D,0x10
AND ESI,R11D
AND EDX,R11D
INC EDX
IMUL EDX,ESI
AND EBP,R11D
AND ECX,R11D
INC ECX
IMUL ECX,EBP
SHR ECX,0x8
AND EAX,R11D
AND R10D,R11D
INC R10D
IMUL R10D,EAX
SHR R10D,0x8
CMP R14D,0xff
JNZ 0x00186750
SHR EDX,0x8
MOV ESI,0xff
MOV EDI,EDX
JMP 0x001867ef
LAB_00186743:
MOV ECX,R9D
MOV R10D,R8D
MOV ESI,EBX
JMP 0x001867ef
LAB_00186750:
MOV EAX,0xff
MOV EBP,R14D
XOR EBP,EAX
MOV ESI,EBP
IMUL ESI,EBX
SHR ESI,0x8
ADD ESI,R14D
INC ESI
MOV R15D,ESI
AND R15D,EAX
JZ 0x001867df
INC R14D
AND EDX,0x1ff00
IMUL EDX,R14D
MOV R12D,0xff
AND EDI,R12D
IMUL EDI,EBX
IMUL EDI,EBP
ADD EDI,EDX
MOV EAX,EDI
XOR EDX,EDX
DIV R15D
MOV EDI,EAX
SHR EDI,0x8
SHL R14D,0x8
IMUL ECX,R14D
AND R9D,R12D
IMUL R9D,EBX
IMUL R9D,EBP
ADD R9D,ECX
MOV EAX,R9D
XOR EDX,EDX
DIV R15D
MOV ECX,EAX
SHR ECX,0x8
IMUL R14D,R10D
AND R8D,R12D
IMUL R8D,EBX
IMUL R8D,EBP
ADD R8D,R14D
MOV EAX,R8D
XOR EDX,EDX
DIV R15D
MOV R10D,EAX
SHR R10D,0x8
JMP 0x001867ef
LAB_001867df:
MOV EDI,0xff
MOV ECX,0xff
MOV R10D,0xff
LAB_001867ef:
SHL ESI,0x18
AND R10D,R11D
SHL R10D,0x10
OR R10D,ESI
SHL ECX,0x8
MOVZX EAX,CX
OR EAX,R10D
AND EDI,R11D
OR EDI,EAX
MOV EAX,EDI
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int1 [16] ColorAlphaBlend(uint param_1,uint param_2,ulong param_3)
{
ulong uVar1;
ulong uVar2;
uint uVar3;
uint uVar4;
uint uVar5;
uint uVar6;
uint uVar7;
uint uVar8;
uint uVar9;
uint uVar10;
uint uVar11;
int iVar12;
uint uVar13;
int1 auVar14 [16];
uVar9 = param_1 >> 8;
uVar8 = param_1 >> 0x10;
uVar5 = param_1 >> 0x18;
uVar11 = (((uint)(param_3 >> 0x18) & 0xff) + 1) * (param_2 >> 0x18) >> 8;
if (uVar11 != 0) {
uVar1 = param_3 >> 8;
uVar2 = param_3 >> 0x10;
uVar4 = (((uint)param_3 & 0xff) + 1) * (param_2 & 0xff);
param_3 = (ulong)uVar4;
uVar3 = (((uint)uVar1 & 0xff) + 1) * (param_2 >> 8 & 0xff) >> 8;
uVar10 = (((uint)uVar2 & 0xff) + 1) * (param_2 >> 0x10 & 0xff) >> 8;
if (uVar11 == 0xff) {
param_1 = uVar4 >> 8;
param_3 = (ulong)param_1;
uVar9 = uVar3;
uVar8 = uVar10;
uVar5 = 0xff;
}
else {
uVar6 = uVar11 ^ 0xff;
uVar7 = (uVar6 * uVar5 >> 8) + uVar11 + 1;
uVar13 = uVar7 & 0xff;
if (uVar13 == 0) {
param_1 = 0xff;
uVar9 = 0xff;
uVar8 = 0xff;
uVar5 = uVar7;
}
else {
param_1 = ((param_1 & 0xff) * uVar5 * uVar6 + (uVar4 & 0x1ff00) * (uVar11 + 1)) / uVar13 >>
8;
iVar12 = (uVar11 + 1) * 0x100;
uVar9 = ((uVar9 & 0xff) * uVar5 * uVar6 + uVar3 * iVar12) / uVar13 >> 8;
uVar8 = (uVar8 & 0xff) * uVar5 * uVar6 + iVar12 * uVar10;
param_3 = (ulong)uVar8 % (ulong)uVar13;
uVar8 = uVar8 / uVar13 >> 8;
uVar5 = uVar7;
}
}
}
auVar14._4_4_ = 0;
auVar14._0_4_ = param_1 & 0xff | (uVar9 & 0xff) << 8 | (uVar8 & 0xff) << 0x10 | uVar5 << 0x18;
auVar14._8_8_ = param_3;
return auVar14;
}
|
|
59,573
|
aggregate_thread_waits(PFS_thread*, PFS_account*, PFS_user*, PFS_host*)
|
eloqsql/storage/perfschema/pfs_instr.cc
|
void aggregate_thread_waits(PFS_thread *thread,
PFS_account *safe_account,
PFS_user *safe_user,
PFS_host *safe_host)
{
if (thread->read_instr_class_waits_stats() == NULL)
return;
if (likely(safe_account != NULL))
{
/*
Aggregate EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME
to EVENTS_WAITS_SUMMARY_BY_ACCOUNT_BY_EVENT_NAME.
*/
aggregate_all_event_names(thread->write_instr_class_waits_stats(),
safe_account->write_instr_class_waits_stats());
return;
}
if ((safe_user != NULL) && (safe_host != NULL))
{
/*
Aggregate EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME to:
- EVENTS_WAITS_SUMMARY_BY_USER_BY_EVENT_NAME
- EVENTS_WAITS_SUMMARY_BY_HOST_BY_EVENT_NAME
in parallel.
*/
aggregate_all_event_names(thread->write_instr_class_waits_stats(),
safe_user->write_instr_class_waits_stats(),
safe_host->write_instr_class_waits_stats());
return;
}
if (safe_user != NULL)
{
/*
Aggregate EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME
to EVENTS_WAITS_SUMMARY_BY_USER_BY_EVENT_NAME, directly.
*/
aggregate_all_event_names(thread->write_instr_class_waits_stats(),
safe_user->write_instr_class_waits_stats());
return;
}
if (safe_host != NULL)
{
/*
Aggregate EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME
to EVENTS_WAITS_SUMMARY_BY_HOST_BY_EVENT_NAME, directly.
*/
aggregate_all_event_names(thread->write_instr_class_waits_stats(),
safe_host->write_instr_class_waits_stats());
return;
}
/* Orphan thread, clean the waits stats. */
thread->reset_waits_stats();
}
|
O0
|
cpp
|
aggregate_thread_waits(PFS_thread*, PFS_account*, PFS_user*, PFS_host*):
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
callq 0x36870
cmpq $0x0, %rax
jne 0x316ac
jmp 0x31787
cmpq $0x0, -0x10(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x316e5
movq -0x8(%rbp), %rdi
callq 0x359b0
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
callq 0x359b0
movq -0x28(%rbp), %rdi
movq %rax, %rsi
callq 0x30ea0
jmp 0x31787
cmpq $0x0, -0x18(%rbp)
je 0x31728
cmpq $0x0, -0x20(%rbp)
je 0x31728
movq -0x8(%rbp), %rdi
callq 0x359b0
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rdi
callq 0x359b0
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rdi
callq 0x359b0
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq %rax, %rdx
callq 0x30f30
jmp 0x31787
cmpq $0x0, -0x18(%rbp)
je 0x31753
movq -0x8(%rbp), %rdi
callq 0x359b0
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rdi
callq 0x359b0
movq -0x40(%rbp), %rdi
movq %rax, %rsi
callq 0x30ea0
jmp 0x31787
cmpq $0x0, -0x20(%rbp)
je 0x3177e
movq -0x8(%rbp), %rdi
callq 0x359b0
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rdi
callq 0x359b0
movq -0x48(%rbp), %rdi
movq %rax, %rsi
callq 0x30ea0
jmp 0x31787
movq -0x8(%rbp), %rdi
callq 0x51630
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)
|
_Z22aggregate_thread_waitsP10PFS_threadP11PFS_accountP8PFS_userP8PFS_host:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rdi, [rbp+var_8]; this
call _ZNK20PFS_connection_slice28read_instr_class_waits_statsEv; PFS_connection_slice::read_instr_class_waits_stats(void)
cmp rax, 0
jnz short loc_316AC
jmp loc_31787
loc_316AC:
cmp [rbp+var_10], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_316E5
mov rdi, [rbp+var_8]; this
call _ZN20PFS_connection_slice29write_instr_class_waits_statsEv; PFS_connection_slice::write_instr_class_waits_stats(void)
mov [rbp+var_28], rax
mov rdi, [rbp+var_10]; this
call _ZN20PFS_connection_slice29write_instr_class_waits_statsEv; PFS_connection_slice::write_instr_class_waits_stats(void)
mov rdi, [rbp+var_28]; PFS_single_stat *
mov rsi, rax; PFS_single_stat *
call _Z25aggregate_all_event_namesP15PFS_single_statS0_; aggregate_all_event_names(PFS_single_stat *,PFS_single_stat *)
jmp loc_31787
loc_316E5:
cmp [rbp+var_18], 0
jz short loc_31728
cmp [rbp+var_20], 0
jz short loc_31728
mov rdi, [rbp+var_8]; this
call _ZN20PFS_connection_slice29write_instr_class_waits_statsEv; PFS_connection_slice::write_instr_class_waits_stats(void)
mov [rbp+var_38], rax
mov rdi, [rbp+var_18]; this
call _ZN20PFS_connection_slice29write_instr_class_waits_statsEv; PFS_connection_slice::write_instr_class_waits_stats(void)
mov [rbp+var_30], rax
mov rdi, [rbp+var_20]; this
call _ZN20PFS_connection_slice29write_instr_class_waits_statsEv; PFS_connection_slice::write_instr_class_waits_stats(void)
mov rdi, [rbp+var_38]; PFS_single_stat *
mov rsi, [rbp+var_30]; PFS_single_stat *
mov rdx, rax; PFS_single_stat *
call _Z25aggregate_all_event_namesP15PFS_single_statS0_S0_; aggregate_all_event_names(PFS_single_stat *,PFS_single_stat *,PFS_single_stat *)
jmp short loc_31787
loc_31728:
cmp [rbp+var_18], 0
jz short loc_31753
mov rdi, [rbp+var_8]; this
call _ZN20PFS_connection_slice29write_instr_class_waits_statsEv; PFS_connection_slice::write_instr_class_waits_stats(void)
mov [rbp+var_40], rax
mov rdi, [rbp+var_18]; this
call _ZN20PFS_connection_slice29write_instr_class_waits_statsEv; PFS_connection_slice::write_instr_class_waits_stats(void)
mov rdi, [rbp+var_40]; PFS_single_stat *
mov rsi, rax; PFS_single_stat *
call _Z25aggregate_all_event_namesP15PFS_single_statS0_; aggregate_all_event_names(PFS_single_stat *,PFS_single_stat *)
jmp short loc_31787
loc_31753:
cmp [rbp+var_20], 0
jz short loc_3177E
mov rdi, [rbp+var_8]; this
call _ZN20PFS_connection_slice29write_instr_class_waits_statsEv; PFS_connection_slice::write_instr_class_waits_stats(void)
mov [rbp+var_48], rax
mov rdi, [rbp+var_20]; this
call _ZN20PFS_connection_slice29write_instr_class_waits_statsEv; PFS_connection_slice::write_instr_class_waits_stats(void)
mov rdi, [rbp+var_48]; PFS_single_stat *
mov rsi, rax; PFS_single_stat *
call _Z25aggregate_all_event_namesP15PFS_single_statS0_; aggregate_all_event_names(PFS_single_stat *,PFS_single_stat *)
jmp short loc_31787
loc_3177E:
mov rdi, [rbp+var_8]; this
call _ZN20PFS_connection_slice17reset_waits_statsEv; PFS_connection_slice::reset_waits_stats(void)
loc_31787:
add rsp, 50h
pop rbp
retn
|
PFS_single_stat * aggregate_thread_waits(PFS_thread *a1, PFS_account *a2, PFS_user *a3, PFS_host *a4)
{
PFS_single_stat *result; // rax
PFS_single_stat *v5; // rax
PFS_single_stat *v6; // rax
PFS_single_stat *v7; // rax
PFS_single_stat *v8; // rax
PFS_single_stat *v9; // [rsp+8h] [rbp-48h]
PFS_single_stat *v10; // [rsp+10h] [rbp-40h]
PFS_single_stat *v11; // [rsp+18h] [rbp-38h]
PFS_single_stat *v12; // [rsp+20h] [rbp-30h]
PFS_single_stat *v13; // [rsp+28h] [rbp-28h]
result = (PFS_single_stat *)PFS_connection_slice::read_instr_class_waits_stats(a1);
if ( result )
{
if ( a2 )
{
v13 = (PFS_single_stat *)PFS_connection_slice::write_instr_class_waits_stats(a1);
v5 = (PFS_single_stat *)PFS_connection_slice::write_instr_class_waits_stats(a2);
return aggregate_all_event_names(v13, v5);
}
else if ( a3 && a4 )
{
v11 = (PFS_single_stat *)PFS_connection_slice::write_instr_class_waits_stats(a1);
v12 = (PFS_single_stat *)PFS_connection_slice::write_instr_class_waits_stats(a3);
v6 = (PFS_single_stat *)PFS_connection_slice::write_instr_class_waits_stats(a4);
return aggregate_all_event_names(v11, v12, v6);
}
else if ( a3 )
{
v10 = (PFS_single_stat *)PFS_connection_slice::write_instr_class_waits_stats(a1);
v7 = (PFS_single_stat *)PFS_connection_slice::write_instr_class_waits_stats(a3);
return aggregate_all_event_names(v10, v7);
}
else if ( a4 )
{
v9 = (PFS_single_stat *)PFS_connection_slice::write_instr_class_waits_stats(a1);
v8 = (PFS_single_stat *)PFS_connection_slice::write_instr_class_waits_stats(a4);
return aggregate_all_event_names(v9, v8);
}
else
{
return (PFS_single_stat *)PFS_connection_slice::reset_waits_stats(a1);
}
}
return result;
}
|
aggregate_thread_waits:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00136870
CMP RAX,0x0
JNZ 0x001316ac
JMP 0x00131787
LAB_001316ac:
CMP qword ptr [RBP + -0x10],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x001316e5
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001359b0
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001359b0
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,RAX
CALL 0x00130ea0
JMP 0x00131787
LAB_001316e5:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00131728
CMP qword ptr [RBP + -0x20],0x0
JZ 0x00131728
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001359b0
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001359b0
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001359b0
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,RAX
CALL 0x00130f30
JMP 0x00131787
LAB_00131728:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00131753
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001359b0
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001359b0
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,RAX
CALL 0x00130ea0
JMP 0x00131787
LAB_00131753:
CMP qword ptr [RBP + -0x20],0x0
JZ 0x0013177e
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001359b0
MOV qword ptr [RBP + -0x48],RAX
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001359b0
MOV RDI,qword ptr [RBP + -0x48]
MOV RSI,RAX
CALL 0x00130ea0
JMP 0x00131787
LAB_0013177e:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00151630
LAB_00131787:
ADD RSP,0x50
POP RBP
RET
|
/* aggregate_thread_waits(PFS_thread*, PFS_account*, PFS_user*, PFS_host*) */
void aggregate_thread_waits
(PFS_thread *param_1,PFS_account *param_2,PFS_user *param_3,PFS_host *param_4)
{
long lVar1;
PFS_single_stat *pPVar2;
PFS_single_stat *pPVar3;
PFS_single_stat *pPVar4;
lVar1 = PFS_connection_slice::read_instr_class_waits_stats((PFS_connection_slice *)param_1);
if (lVar1 != 0) {
if (param_2 == (PFS_account *)0x0) {
if ((param_3 == (PFS_user *)0x0) || (param_4 == (PFS_host *)0x0)) {
if (param_3 == (PFS_user *)0x0) {
if (param_4 == (PFS_host *)0x0) {
PFS_connection_slice::reset_waits_stats((PFS_connection_slice *)param_1);
}
else {
pPVar2 = (PFS_single_stat *)
PFS_connection_slice::write_instr_class_waits_stats
((PFS_connection_slice *)param_1);
pPVar3 = (PFS_single_stat *)
PFS_connection_slice::write_instr_class_waits_stats
((PFS_connection_slice *)param_4);
aggregate_all_event_names(pPVar2,pPVar3);
}
}
else {
pPVar2 = (PFS_single_stat *)
PFS_connection_slice::write_instr_class_waits_stats
((PFS_connection_slice *)param_1);
pPVar3 = (PFS_single_stat *)
PFS_connection_slice::write_instr_class_waits_stats
((PFS_connection_slice *)param_3);
aggregate_all_event_names(pPVar2,pPVar3);
}
}
else {
pPVar2 = (PFS_single_stat *)
PFS_connection_slice::write_instr_class_waits_stats
((PFS_connection_slice *)param_1);
pPVar3 = (PFS_single_stat *)
PFS_connection_slice::write_instr_class_waits_stats
((PFS_connection_slice *)param_3);
pPVar4 = (PFS_single_stat *)
PFS_connection_slice::write_instr_class_waits_stats
((PFS_connection_slice *)param_4);
aggregate_all_event_names(pPVar2,pPVar3,pPVar4);
}
}
else {
pPVar2 = (PFS_single_stat *)
PFS_connection_slice::write_instr_class_waits_stats((PFS_connection_slice *)param_1);
pPVar3 = (PFS_single_stat *)
PFS_connection_slice::write_instr_class_waits_stats((PFS_connection_slice *)param_2);
aggregate_all_event_names(pPVar2,pPVar3);
}
}
return;
}
|
|
59,574
|
my_thread_init
|
eloqsql/mysys/my_thr_init.c
|
my_bool my_thread_init(void)
{
struct st_my_thread_var *tmp;
my_bool error=0;
if (!my_thread_global_init_done)
return 1; /* cannot proceed with uninitialized library */
#ifdef EXTRA_DEBUG_THREADS
fprintf(stderr,"my_thread_init(): pthread_self: %p\n", pthread_self());
#endif
if (my_thread_var)
{
#ifdef EXTRA_DEBUG_THREADS
fprintf(stderr,"my_thread_init() called more than once in thread 0x%lx\n",
(long) pthread_self());
#endif
goto end;
}
#ifdef _MSC_VER
install_sigabrt_handler();
#endif
if (!(tmp= (struct st_my_thread_var *) calloc(1, sizeof(*tmp))))
{
error= 1;
goto end;
}
set_mysys_var(tmp);
tmp->pthread_self= pthread_self();
my_thread_init_thr_mutex(tmp);
tmp->stack_ends_here= (char*)&tmp +
STACK_DIRECTION * (long)my_thread_stack_size;
mysql_mutex_lock(&THR_LOCK_threads);
tmp->id= tmp->dbug_id= ++thread_id;
++THR_thread_count;
mysql_mutex_unlock(&THR_LOCK_threads);
tmp->init= 1;
#ifndef DBUG_OFF
/* Generate unique name for thread */
(void) my_thread_name();
#endif
end:
return error;
}
|
O0
|
c
|
my_thread_init:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb $0x0, -0x11(%rbp)
cmpb $0x0, 0x35fe75(%rip) # 0x386548
jne 0x266de
movb $0x1, -0x1(%rbp)
jmp 0x267c7
callq 0x26580
cmpq $0x0, %rax
je 0x266ee
jmp 0x267c1
movl $0x1, %edi
movl $0xf0, %esi
callq 0x24220
movq %rax, -0x10(%rbp)
cmpq $0x0, %rax
jne 0x26710
movb $0x1, -0x11(%rbp)
jmp 0x267c1
movq -0x10(%rbp), %rdi
callq 0x26a30
callq 0x24290
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0xc8(%rax)
movq -0x10(%rbp), %rdi
callq 0x265d0
leaq 0x1a7994(%rip), %rax # 0x1ce0d0
movq (%rax), %rax
shlq $0x0, %rax
leaq -0x10(%rbp), %rcx
addq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0xb8(%rax)
leaq 0x35fd24(%rip), %rdi # 0x386480
leaq 0x52e3f(%rip), %rsi # 0x795a2
movl $0x12e, %edx # imm = 0x12E
callq 0x268e0
movq 0x35fddc(%rip), %rcx # 0x386550
addq $0x1, %rcx
movq %rcx, 0x35fdd1(%rip) # 0x386550
movq -0x10(%rbp), %rax
movq %rcx, 0xd8(%rax)
movq -0x10(%rbp), %rax
movq %rcx, 0xd0(%rax)
leaq 0x35fae4(%rip), %rax # 0x386280
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x35fad8(%rip), %rax # 0x386280
movl %ecx, (%rax)
leaq 0x35fccf(%rip), %rdi # 0x386480
callq 0x269d0
movq -0x10(%rbp), %rax
movb $0x1, 0xe8(%rax)
movb -0x11(%rbp), %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
|
my_thread_init:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_11], 0
cmp cs:my_thread_global_init_done, 0
jnz short loc_266DE
mov [rbp+var_1], 1
jmp loc_267C7
loc_266DE:
call _my_thread_var
cmp rax, 0
jz short loc_266EE
jmp loc_267C1
loc_266EE:
mov edi, 1
mov esi, 0F0h
call _calloc
mov [rbp+var_10], rax
cmp rax, 0
jnz short loc_26710
mov [rbp+var_11], 1
jmp loc_267C1
loc_26710:
mov rdi, [rbp+var_10]
call set_mysys_var
call _pthread_self
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+0C8h], rcx
mov rdi, [rbp+var_10]
call my_thread_init_thr_mutex
lea rax, my_thread_stack_size
mov rax, [rax]
shl rax, 0
lea rcx, [rbp+var_10]
add rcx, rax
mov rax, [rbp+var_10]
mov [rax+0B8h], rcx
lea rdi, THR_LOCK_threads
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 12Eh
call inline_mysql_mutex_lock
mov rcx, cs:thread_id
add rcx, 1
mov cs:thread_id, rcx
mov rax, [rbp+var_10]
mov [rax+0D8h], rcx
mov rax, [rbp+var_10]
mov [rax+0D0h], rcx
lea rax, THR_thread_count
mov ecx, [rax]
add ecx, 1
lea rax, THR_thread_count
mov [rax], ecx
lea rdi, THR_LOCK_threads
call inline_mysql_mutex_unlock
mov rax, [rbp+var_10]
mov byte ptr [rax+0E8h], 1
loc_267C1:
mov al, [rbp+var_11]
mov [rbp+var_1], al
loc_267C7:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
|
char my_thread_init()
{
long long v0; // rcx
char v2; // [rsp+Fh] [rbp-11h]
long long v3; // [rsp+10h] [rbp-10h] BYREF
v2 = 0;
if ( !my_thread_global_init_done )
return 1;
if ( !my_thread_var() )
{
v3 = calloc(1LL, 240LL);
if ( v3 )
{
set_mysys_var(v3);
*(_QWORD *)(v3 + 200) = pthread_self();
my_thread_init_thr_mutex(v3);
*(_QWORD *)(v3 + 184) = (char *)&v3 + (_QWORD)my_thread_stack_size;
inline_mysql_mutex_lock(&THR_LOCK_threads, "/workspace/llm4binary/github2025/eloqsql/mysys/my_thr_init.c", 302LL);
v0 = thread_id + 1;
thread_id = v0;
*(_QWORD *)(v3 + 216) = v0;
*(_QWORD *)(v3 + 208) = v0;
++THR_thread_count;
inline_mysql_mutex_unlock(&THR_LOCK_threads);
*(_BYTE *)(v3 + 232) = 1;
}
else
{
return 1;
}
}
return v2;
}
|
my_thread_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV byte ptr [RBP + -0x11],0x0
CMP byte ptr [0x00486548],0x0
JNZ 0x001266de
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001267c7
LAB_001266de:
CALL 0x00126580
CMP RAX,0x0
JZ 0x001266ee
JMP 0x001267c1
LAB_001266ee:
MOV EDI,0x1
MOV ESI,0xf0
CALL 0x00124220
MOV qword ptr [RBP + -0x10],RAX
CMP RAX,0x0
JNZ 0x00126710
MOV byte ptr [RBP + -0x11],0x1
JMP 0x001267c1
LAB_00126710:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00126a30
CALL 0x00124290
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0xc8],RCX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001265d0
LEA RAX,[0x2ce0d0]
MOV RAX,qword ptr [RAX]
SHL RAX,0x0
LEA RCX,[RBP + -0x10]
ADD RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0xb8],RCX
LEA RDI,[0x486480]
LEA RSI,[0x1795a2]
MOV EDX,0x12e
CALL 0x001268e0
MOV RCX,qword ptr [0x00486550]
ADD RCX,0x1
MOV qword ptr [0x00486550],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0xd8],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0xd0],RCX
LEA RAX,[0x486280]
MOV ECX,dword ptr [RAX]
ADD ECX,0x1
LEA RAX,[0x486280]
MOV dword ptr [RAX],ECX
LEA RDI,[0x486480]
CALL 0x001269d0
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0xe8],0x1
LAB_001267c1:
MOV AL,byte ptr [RBP + -0x11]
MOV byte ptr [RBP + -0x1],AL
LAB_001267c7:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 my_thread_init(void)
{
long lVar1;
pthread_t pVar2;
int1 local_19;
void *local_18;
int1 local_9;
local_19 = 0;
if (my_thread_global_init_done == '\0') {
local_9 = 1;
}
else {
lVar1 = _my_thread_var();
if (lVar1 == 0) {
local_18 = calloc(1,0xf0);
if (local_18 == (void *)0x0) {
local_19 = 1;
}
else {
set_mysys_var(local_18);
pVar2 = pthread_self();
*(pthread_t *)((long)local_18 + 200) = pVar2;
my_thread_init_thr_mutex(local_18);
*(long *)((long)local_18 + 0xb8) = (long)&local_18 + my_thread_stack_size;
inline_mysql_mutex_lock
(THR_LOCK_threads,"/workspace/llm4binary/github2025/eloqsql/mysys/my_thr_init.c",
0x12e);
lVar1 = thread_id + 1;
thread_id = lVar1;
*(long *)((long)local_18 + 0xd8) = lVar1;
*(long *)((long)local_18 + 0xd0) = lVar1;
THR_thread_count = THR_thread_count + 1;
inline_mysql_mutex_unlock(THR_LOCK_threads);
*(int1 *)((long)local_18 + 0xe8) = 1;
}
}
local_9 = local_19;
}
return local_9;
}
|
|
59,575
|
my_atod
|
eloqsql/libmariadb/libmariadb/ma_stmt_codec.c
|
double my_atod(const char *number, const char *end, int *error)
{
double val= 0.0;
char buffer[MAX_DBL_STR + 1];
int len= (int)(end - number);
*error= errno= 0;
if (len > MAX_DBL_STR)
{
*error= 1;
len= MAX_DBL_STR;
}
memcpy(buffer, number, len);
buffer[len]= '\0';
val= strtod(buffer, NULL);
if (errno)
*error= errno;
return val;
}
|
O0
|
c
|
my_atod:
pushq %rbp
movq %rsp, %rbp
subq $0x470, %rsp # imm = 0x470
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x448(%rbp)
movq %rsi, -0x450(%rbp)
movq %rdx, -0x458(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x460(%rbp)
movq -0x450(%rbp), %rax
movq -0x448(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0x464(%rbp)
callq 0x13050
movl $0x0, (%rax)
movq -0x458(%rbp), %rax
movl $0x0, (%rax)
cmpl $0x435, -0x464(%rbp) # imm = 0x435
jle 0x2ddaa
movq -0x458(%rbp), %rax
movl $0x1, (%rax)
movl $0x435, -0x464(%rbp) # imm = 0x435
leaq -0x440(%rbp), %rdi
movq -0x448(%rbp), %rsi
movslq -0x464(%rbp), %rdx
callq 0x13360
movslq -0x464(%rbp), %rax
movb $0x0, -0x440(%rbp,%rax)
leaq -0x440(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x13330
movsd %xmm0, -0x460(%rbp)
callq 0x13050
cmpl $0x0, (%rax)
je 0x2de05
callq 0x13050
movl (%rax), %ecx
movq -0x458(%rbp), %rax
movl %ecx, (%rax)
movsd -0x460(%rbp), %xmm0
movsd %xmm0, -0x470(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x2de38
movsd -0x470(%rbp), %xmm0
addq $0x470, %rsp # imm = 0x470
popq %rbp
retq
callq 0x134b0
nopl (%rax)
|
my_atod:
push rbp
mov rbp, rsp
sub rsp, 470h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_448], rdi
mov [rbp+var_450], rsi
mov [rbp+var_458], rdx
xorps xmm0, xmm0
movsd [rbp+var_460], xmm0
mov rax, [rbp+var_450]
mov rcx, [rbp+var_448]
sub rax, rcx
mov [rbp+var_464], eax
call ___errno_location
mov dword ptr [rax], 0
mov rax, [rbp+var_458]
mov dword ptr [rax], 0
cmp [rbp+var_464], 435h
jle short loc_2DDAA
mov rax, [rbp+var_458]
mov dword ptr [rax], 1
mov [rbp+var_464], 435h
loc_2DDAA:
lea rdi, [rbp+var_440]
mov rsi, [rbp+var_448]
movsxd rdx, [rbp+var_464]
call _memcpy
movsxd rax, [rbp+var_464]
mov [rbp+rax+var_440], 0
lea rdi, [rbp+var_440]
xor eax, eax
mov esi, eax
call _strtod
movsd [rbp+var_460], xmm0
call ___errno_location
cmp dword ptr [rax], 0
jz short loc_2DE05
call ___errno_location
mov ecx, [rax]
mov rax, [rbp+var_458]
mov [rax], ecx
loc_2DE05:
movsd xmm0, [rbp+var_460]
movsd [rbp+var_470], xmm0
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_2DE38
movsd xmm0, [rbp+var_470]
add rsp, 470h
pop rbp
retn
loc_2DE38:
call ___stack_chk_fail
|
double my_atod(long long a1, int a2, _DWORD *a3)
{
int v4; // [rsp+Ch] [rbp-464h]
double v5; // [rsp+10h] [rbp-460h]
_BYTE v7[1080]; // [rsp+30h] [rbp-440h] BYREF
unsigned long long v8; // [rsp+468h] [rbp-8h]
v8 = __readfsqword(0x28u);
v4 = a2 - a1;
*(_DWORD *)__errno_location() = 0;
*a3 = 0;
if ( a2 - (int)a1 > 1077 )
{
*a3 = 1;
v4 = 1077;
}
memcpy(v7, a1, v4);
v7[v4] = 0;
v5 = strtod(v7, 0LL);
if ( *(_DWORD *)__errno_location() )
*a3 = *(_DWORD *)__errno_location();
return v5;
}
|
my_atod:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x470
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x448],RDI
MOV qword ptr [RBP + -0x450],RSI
MOV qword ptr [RBP + -0x458],RDX
XORPS XMM0,XMM0
MOVSD qword ptr [RBP + -0x460],XMM0
MOV RAX,qword ptr [RBP + -0x450]
MOV RCX,qword ptr [RBP + -0x448]
SUB RAX,RCX
MOV dword ptr [RBP + -0x464],EAX
CALL 0x00113050
MOV dword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x458]
MOV dword ptr [RAX],0x0
CMP dword ptr [RBP + -0x464],0x435
JLE 0x0012ddaa
MOV RAX,qword ptr [RBP + -0x458]
MOV dword ptr [RAX],0x1
MOV dword ptr [RBP + -0x464],0x435
LAB_0012ddaa:
LEA RDI,[RBP + -0x440]
MOV RSI,qword ptr [RBP + -0x448]
MOVSXD RDX,dword ptr [RBP + -0x464]
CALL 0x00113360
MOVSXD RAX,dword ptr [RBP + -0x464]
MOV byte ptr [RBP + RAX*0x1 + -0x440],0x0
LEA RDI,[RBP + -0x440]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x00113330
MOVSD qword ptr [RBP + -0x460],XMM0
CALL 0x00113050
CMP dword ptr [RAX],0x0
JZ 0x0012de05
CALL 0x00113050
MOV ECX,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x458]
MOV dword ptr [RAX],ECX
LAB_0012de05:
MOVSD XMM0,qword ptr [RBP + -0x460]
MOVSD qword ptr [RBP + -0x470],XMM0
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0012de38
MOVSD XMM0,qword ptr [RBP + -0x470]
ADD RSP,0x470
POP RBP
RET
LAB_0012de38:
CALL 0x001134b0
|
double my_atod(void *param_1,int param_2,int *param_3)
{
int *piVar1;
long in_FS_OFFSET;
double dVar2;
int local_46c;
char local_448 [1080];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_46c = param_2 - (int)param_1;
piVar1 = __errno_location();
*piVar1 = 0;
*param_3 = 0;
if (0x435 < local_46c) {
*param_3 = 1;
local_46c = 0x435;
}
memcpy(local_448,param_1,(long)local_46c);
local_448[local_46c] = '\0';
dVar2 = strtod(local_448,(char **)0x0);
piVar1 = __errno_location();
if (*piVar1 != 0) {
piVar1 = __errno_location();
*param_3 = *piVar1;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return dVar2;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
59,576
|
my_atod
|
eloqsql/libmariadb/libmariadb/ma_stmt_codec.c
|
double my_atod(const char *number, const char *end, int *error)
{
double val= 0.0;
char buffer[MAX_DBL_STR + 1];
int len= (int)(end - number);
*error= errno= 0;
if (len > MAX_DBL_STR)
{
*error= 1;
len= MAX_DBL_STR;
}
memcpy(buffer, number, len);
buffer[len]= '\0';
val= strtod(buffer, NULL);
if (errno)
*error= errno;
return val;
}
|
O3
|
c
|
my_atod:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x448, %rsp # imm = 0x448
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
subq %rdi, %r15
callq 0x13060
movq %rax, %r14
movl $0x0, (%rax)
xorl %eax, %eax
cmpl $0x436, %r15d # imm = 0x436
setge %al
movl %eax, (%rbx)
movslq %r15d, %rax
movl $0x435, %r15d # imm = 0x435
cmovlq %rax, %r15
leaq -0x470(%rbp), %r13
movl $0x436, %ecx # imm = 0x436
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x13770
movb $0x0, -0x470(%rbp,%r15)
movq %r13, %rdi
xorl %esi, %esi
callq 0x13350
movl (%r14), %eax
testl %eax, %eax
je 0x22d4a
movl %eax, (%rbx)
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x22d6b
addq $0x448, %rsp # imm = 0x448
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x13500
|
my_atod:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 448h
mov rbx, rdx
mov r15, rsi
mov r12, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
sub r15, rdi
call ___errno_location
mov r14, rax
mov dword ptr [rax], 0
xor eax, eax
cmp r15d, 436h
setnl al
mov [rbx], eax
movsxd rax, r15d
mov r15d, 435h
cmovl r15, rax
lea r13, [rbp+var_470]
mov ecx, 436h
mov rdi, r13
mov rsi, r12
mov rdx, r15
call ___memcpy_chk
mov [rbp+r15+var_470], 0
mov rdi, r13
xor esi, esi
call _strtod
mov eax, [r14]
test eax, eax
jz short loc_22D4A
mov [rbx], eax
loc_22D4A:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_22D6B
add rsp, 448h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_22D6B:
call ___stack_chk_fail
|
unsigned long long my_atod(long long a1, int a2, _DWORD *a3)
{
_DWORD *v4; // r14
long long v5; // r15
_BYTE v7[1088]; // [rsp+0h] [rbp-470h] BYREF
unsigned long long v8; // [rsp+440h] [rbp-30h]
v8 = __readfsqword(0x28u);
v4 = (_DWORD *)__errno_location(a1);
*v4 = 0;
*a3 = a2 - (int)a1 >= 1078;
v5 = 1077LL;
if ( a2 - (int)a1 < 1078 )
v5 = a2 - (int)a1;
__memcpy_chk(v7, a1, v5, 1078LL);
v7[v5] = 0;
strtod(v7, 0LL);
if ( *v4 )
*a3 = *v4;
return __readfsqword(0x28u);
}
|
my_atod:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x448
MOV RBX,RDX
MOV R15,RSI
MOV R12,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
SUB R15,RDI
CALL 0x00113060
MOV R14,RAX
MOV dword ptr [RAX],0x0
XOR EAX,EAX
CMP R15D,0x436
SETGE AL
MOV dword ptr [RBX],EAX
MOVSXD RAX,R15D
MOV R15D,0x435
CMOVL R15,RAX
LEA R13,[RBP + -0x470]
MOV ECX,0x436
MOV RDI,R13
MOV RSI,R12
MOV RDX,R15
CALL 0x00113770
MOV byte ptr [RBP + R15*0x1 + -0x470],0x0
MOV RDI,R13
XOR ESI,ESI
CALL 0x00113350
MOV EAX,dword ptr [R14]
TEST EAX,EAX
JZ 0x00122d4a
MOV dword ptr [RBX],EAX
LAB_00122d4a:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00122d6b
ADD RSP,0x448
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00122d6b:
CALL 0x00113500
|
void my_atod(int8 param_1,int param_2,uint *param_3)
{
uint *puVar1;
long lVar2;
long in_FS_OFFSET;
char local_478 [1088];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
param_2 = param_2 - (int)param_1;
puVar1 = (uint *)__errno_location();
*puVar1 = 0;
*param_3 = (uint)(0x435 < param_2);
lVar2 = 0x435;
if (param_2 < 0x436) {
lVar2 = (long)param_2;
}
__memcpy_chk(local_478,param_1,lVar2,0x436);
local_478[lVar2] = '\0';
strtod(local_478,(char **)0x0);
if (*puVar1 != 0) {
*param_3 = *puVar1;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
59,577
|
spdlog::details::registry::default_logger()
|
AlayaLite/build_O3/_deps/spdlog-src/include/spdlog/details/registry-inl.h
|
SPDLOG_INLINE std::shared_ptr<logger> registry::default_logger() {
std::lock_guard<std::mutex> lock(logger_map_mutex_);
return default_logger_;
}
|
O3
|
c
|
spdlog::details::registry::default_logger():
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x11350
testl %eax, %eax
jne 0x2d908
movq 0x130(%r14), %rax
movq %rax, (%rbx)
movq 0x138(%r14), %rax
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x2d8f5
movq 0x866c1(%rip), %rcx # 0xb3fa8
cmpb $0x0, (%rcx)
je 0x2d8f1
incl 0x8(%rax)
jmp 0x2d8f5
lock
incl 0x8(%rax)
movq %r14, %rdi
callq 0x112d0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl %eax, %edi
callq 0x114f0
nop
|
_ZN6spdlog7details8registry14default_loggerEv:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov rdi, rsi
call _pthread_mutex_lock
test eax, eax
jnz short loc_2D908
mov rax, [r14+130h]
mov [rbx], rax
mov rax, [r14+138h]
mov [rbx+8], rax
test rax, rax
jz short loc_2D8F5
mov rcx, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rcx], 0
jz short loc_2D8F1
inc dword ptr [rax+8]
jmp short loc_2D8F5
loc_2D8F1:
lock inc dword ptr [rax+8]
loc_2D8F5:
mov rdi, r14
call _pthread_mutex_unlock
mov rax, rbx
add rsp, 8
pop rbx
pop r14
retn
loc_2D908:
mov edi, eax; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
|
spdlog::details::registry * spdlog::details::registry::default_logger(
spdlog::details::registry *this,
long long a2)
{
int v2; // eax
long long v3; // rax
v2 = pthread_mutex_lock(a2);
if ( v2 )
std::__throw_system_error(v2);
*(_QWORD *)this = *(_QWORD *)(a2 + 304);
v3 = *(_QWORD *)(a2 + 312);
*((_QWORD *)this + 1) = v3;
if ( v3 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v3 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v3 + 8));
}
pthread_mutex_unlock(a2);
return this;
}
|
default_logger:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSI
CALL 0x00111350
TEST EAX,EAX
JNZ 0x0012d908
MOV RAX,qword ptr [R14 + 0x130]
MOV qword ptr [RBX],RAX
MOV RAX,qword ptr [R14 + 0x138]
MOV qword ptr [RBX + 0x8],RAX
TEST RAX,RAX
JZ 0x0012d8f5
MOV RCX,qword ptr [0x001b3fa8]
CMP byte ptr [RCX],0x0
JZ 0x0012d8f1
INC dword ptr [RAX + 0x8]
JMP 0x0012d8f5
LAB_0012d8f1:
INC.LOCK dword ptr [RAX + 0x8]
LAB_0012d8f5:
MOV RDI,R14
CALL 0x001112d0
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_0012d908:
MOV EDI,EAX
CALL 0x001114f0
|
/* spdlog::details::registry::default_logger() */
void spdlog::details::registry::default_logger(void)
{
long lVar1;
int iVar2;
pthread_mutex_t *in_RSI;
int8 *in_RDI;
iVar2 = pthread_mutex_lock(in_RSI);
if (iVar2 == 0) {
*in_RDI = *(int8 *)((long)in_RSI + 0x130);
lVar1 = *(long *)((long)in_RSI + 0x138);
in_RDI[1] = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_001b3fa8 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
pthread_mutex_unlock(in_RSI);
return;
}
/* WARNING: Subroutine does not return */
std::__throw_system_error(iVar2);
}
|
|
59,578
|
ma_bitmap_find_new_place
|
eloqsql/storage/maria/ma_bitmap.c
|
my_bool _ma_bitmap_find_new_place(MARIA_HA *info, MARIA_ROW *row,
pgcache_page_no_t page, uint free_size,
MARIA_BITMAP_BLOCKS *blocks)
{
MARIA_SHARE *share= info->s;
my_bool res= 1;
uint position;
uint head_length, row_length, rest_length, extents_length;
ulonglong bitmap_page;
DBUG_ENTER("_ma_bitmap_find_new_place");
blocks->count= 0;
blocks->tail_page_skipped= blocks->page_skipped= 0;
row->extents_count= 0;
info->bitmap_blocks.elements= ELEMENTS_RESERVED_FOR_MAIN_PART;
mysql_mutex_lock(&share->bitmap.bitmap_lock);
/*
First allocate all blobs (so that we can find out the needed size for
the main block.
*/
if (row->blob_length && allocate_blobs(info, row))
goto abort;
/* Switch bitmap to current head page */
bitmap_page= page - page % share->bitmap.pages_covered;
if (share->bitmap.page != bitmap_page &&
_ma_change_bitmap_page(info, &share->bitmap, bitmap_page))
goto abort;
extents_length= row->extents_count * ROW_EXTENT_SIZE;
if ((head_length= (row->head_length + extents_length + 3)) <= free_size)
{
/* Main row part fits into one page */
position= ELEMENTS_RESERVED_FOR_MAIN_PART - 1;
use_head(info, page, head_length, position);
row->space_on_head_page= head_length;
goto end;
}
/* Allocate enough space */
head_length+= ELEMENTS_RESERVED_FOR_MAIN_PART * ROW_EXTENT_SIZE;
/*
The first segment size is stored in 'row_length'
We have to add ELEMENTS_RESERVED_FOR_MAIN_PART here as the extent
information may be up to this size when the header splits.
*/
row_length= find_where_to_split_row(share, row, row->extents_count +
ELEMENTS_RESERVED_FOR_MAIN_PART-1,
free_size);
position= 0;
rest_length= head_length - row_length;
if (rest_length <= MAX_TAIL_SIZE(share->block_size))
position= ELEMENTS_RESERVED_FOR_MAIN_PART -2; /* Only head and tail */
use_head(info, page, row_length, position);
row->space_on_head_page= row_length;
if (write_rest_of_head(info, position, rest_length))
goto abort;
end:
blocks->block= dynamic_element(&info->bitmap_blocks, position,
MARIA_BITMAP_BLOCK*);
blocks->block->sub_blocks= ELEMENTS_RESERVED_FOR_MAIN_PART - position;
/* First block's page_count is for all blocks */
blocks->count= info->bitmap_blocks.elements - position;
res= 0;
abort:
mysql_mutex_unlock(&share->bitmap.bitmap_lock);
DBUG_RETURN(res);
}
|
O3
|
c
|
ma_bitmap_find_new_place:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, -0x2c(%rbp)
movq %rdx, %rbx
movq %rsi, %r13
movq %rdi, %r12
movq (%rdi), %r14
xorl %eax, %eax
movl %eax, 0x8(%r8)
movq %r8, -0x38(%rbp)
movw $0x0, 0xc(%r8)
movl %eax, 0xac(%rsi)
movl $0x4, 0x2c8(%rdi)
leaq 0xa98(%r14), %rdi
cmpq $0x0, 0xad8(%r14)
movq %rdi, -0x40(%rbp)
jne 0x4f469
callq 0x291d0
cmpq $0x0, 0x88(%r13)
je 0x4f227
movq %r12, %rdi
movq %r13, %rsi
callq 0x4ee6e
movb $0x1, %r15b
testb %al, %al
jne 0x4f442
movq %rbx, %rax
xorl %edx, %edx
divq 0xb48(%r14)
movq %rdx, %rax
movq %rbx, %rdx
subq %rax, %rdx
cmpq %rdx, 0xa20(%r14)
je 0x4f25f
leaq 0xa10(%r14), %rsi
movq %r12, %rdi
callq 0x4f491
movb $0x1, %r15b
testb %al, %al
jne 0x4f442
movl 0xa0(%r13), %r15d
movl 0xac(%r13), %edx
leal (,%rdx,8), %esi
subl %edx, %esi
leal (%r15,%rsi), %eax
addl $0x3, %eax
movl -0x2c(%rbp), %ecx
cmpl %ecx, %eax
jbe 0x4f2e3
addl %esi, %r15d
addl $0x3, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x4f025
subl %eax, %r15d
addl $0x1f, %r15d
movl 0x7bc(%r14), %ecx
leal (%rcx,%rcx,2), %ecx
shrl $0x2, %ecx
movq (%r12), %rdx
movq 0x2c0(%r12), %rsi
cmpl %ecx, %r15d
jbe 0x4f36b
movl $0x0, -0x2c(%rbp)
movl $0x15, %edi
movl $0x14, %ecx
movl $0xc, %r9d
movl $0x8, %r10d
movq %rsi, %r8
jmp 0x4f38c
movq (%r12), %rdx
movq 0x2c0(%r12), %r8
movq %rbx, 0x48(%r8)
movl $0x8001, 0x50(%r8) # imm = 0x8001
movl %eax, 0x54(%r8)
movb $0x4, 0x5c(%r8)
movl 0xa20(%rdx), %ecx
notl %ecx
addl %ecx, %ebx
leal (%rbx,%rbx,2), %ecx
movq 0xa18(%rdx), %rsi
movl %ecx, %edi
shrl $0x3, %edi
movzwl (%rsi,%rdi), %r9d
andb $0x7, %cl
movl %r9d, %r10d
shrl %cl, %r10d
andb $0x7, %r10b
movb %r10b, 0x5d(%r8)
movl $0x7, %r8d
shll %cl, %r8d
notl %r8d
andl %r9d, %r8d
movl $0x4, %r9d
shll %cl, %r9d
orl %r8d, %r9d
movw %r9w, (%rsi,%rdi)
movb $0x1, 0xa30(%rdx)
movl %eax, 0xb8(%r13)
movl $0x3, %ebx
jmp 0x4f40f
leaq 0x30(%rsi), %r8
movl $0x2, -0x2c(%rbp)
movl $0x45, %edi
movl $0x44, %ecx
movl $0x3c, %r9d
movl $0x38, %r10d
movq %rbx, (%r8)
movl $0x8001, (%rsi,%r10) # imm = 0x8001
movl %eax, (%rsi,%r9)
movb $0x4, (%rsi,%rcx)
movl 0xa20(%rdx), %ecx
notl %ecx
addl %ecx, %ebx
leal (%rbx,%rbx,2), %ecx
movq 0xa18(%rdx), %r8
movl %ecx, %r9d
shrl $0x3, %r9d
movzwl (%r8,%r9), %r10d
andb $0x7, %cl
movl %r10d, %r11d
shrl %cl, %r11d
andb $0x7, %r11b
movb %r11b, (%rsi,%rdi)
movl $0x7, %esi
shll %cl, %esi
notl %esi
andl %r10d, %esi
movl $0x4, %edi
shll %cl, %edi
orl %esi, %edi
movw %di, (%r8,%r9)
movb $0x1, 0xa30(%rdx)
movl %eax, 0xb8(%r13)
movl %r15d, %edx
movq %r12, %rdi
movl -0x2c(%rbp), %ebx
movl %ebx, %esi
callq 0x4f0c1
movb $0x1, %r15b
testb %al, %al
jne 0x4f442
movq 0x2c0(%r12), %rax
movl %ebx, %ecx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rax
movq -0x38(%rbp), %rdx
movq %rax, (%rdx)
movl $0x4, %ecx
subl %ebx, %ecx
movl %ecx, 0x10(%rax)
movl 0x2c8(%r12), %eax
subl %ebx, %eax
movl %eax, 0x8(%rdx)
xorl %r15d, %r15d
movq 0xad8(%r14), %rdi
testq %rdi, %rdi
jne 0x4f47f
movq -0x40(%rbp), %rdi
callq 0x291a0
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8b142(%rip), %rsi # 0xda5b2
movl $0x8b1, %edx # imm = 0x8B1
callq 0x2ee6f
jmp 0x4f207
leaq 0x337bca(%rip), %rax # 0x387050
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x4f44e
|
_ma_bitmap_find_new_place:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rbp+var_2C], ecx
mov rbx, rdx
mov r13, rsi
mov r12, rdi
mov r14, [rdi]
xor eax, eax
mov [r8+8], eax
mov [rbp+var_38], r8
mov word ptr [r8+0Ch], 0
mov [rsi+0ACh], eax
mov dword ptr [rdi+2C8h], 4
lea rdi, [r14+0A98h]
cmp qword ptr [r14+0AD8h], 0
mov [rbp+var_40], rdi
jnz loc_4F469
call _pthread_mutex_lock
loc_4F207:
cmp qword ptr [r13+88h], 0
jz short loc_4F227
mov rdi, r12
mov rsi, r13
call allocate_blobs
mov r15b, 1
test al, al
jnz loc_4F442
loc_4F227:
mov rax, rbx
xor edx, edx
div qword ptr [r14+0B48h]
mov rax, rdx
mov rdx, rbx
sub rdx, rax
cmp [r14+0A20h], rdx
jz short loc_4F25F
lea rsi, [r14+0A10h]
mov rdi, r12
call _ma_change_bitmap_page
mov r15b, 1
test al, al
jnz loc_4F442
loc_4F25F:
mov r15d, [r13+0A0h]
mov edx, [r13+0ACh]
lea esi, ds:0[rdx*8]
sub esi, edx
lea eax, [r15+rsi]
add eax, 3
mov ecx, [rbp+var_2C]
cmp eax, ecx
jbe short loc_4F2E3
add r15d, esi
add edx, 3
mov rdi, r14
mov rsi, r13
call find_where_to_split_row
sub r15d, eax
add r15d, 1Fh
mov ecx, [r14+7BCh]
lea ecx, [rcx+rcx*2]
shr ecx, 2
mov rdx, [r12]
mov rsi, [r12+2C0h]
cmp r15d, ecx
jbe loc_4F36B
mov [rbp+var_2C], 0
mov edi, 15h
mov ecx, 14h
mov r9d, 0Ch
mov r10d, 8
mov r8, rsi
jmp loc_4F38C
loc_4F2E3:
mov rdx, [r12]
mov r8, [r12+2C0h]
mov [r8+48h], rbx
mov dword ptr [r8+50h], 8001h
mov [r8+54h], eax
mov byte ptr [r8+5Ch], 4
mov ecx, [rdx+0A20h]
not ecx
add ebx, ecx
lea ecx, [rbx+rbx*2]
mov rsi, [rdx+0A18h]
mov edi, ecx
shr edi, 3
movzx r9d, word ptr [rsi+rdi]
and cl, 7
mov r10d, r9d
shr r10d, cl
and r10b, 7
mov [r8+5Dh], r10b
mov r8d, 7
shl r8d, cl
not r8d
and r8d, r9d
mov r9d, 4
shl r9d, cl
or r9d, r8d
mov [rsi+rdi], r9w
mov byte ptr [rdx+0A30h], 1
mov [r13+0B8h], eax
mov ebx, 3
jmp loc_4F40F
loc_4F36B:
lea r8, [rsi+30h]
mov [rbp+var_2C], 2
mov edi, 45h ; 'E'
mov ecx, 44h ; 'D'
mov r9d, 3Ch ; '<'
mov r10d, 38h ; '8'
loc_4F38C:
mov [r8], rbx
mov dword ptr [rsi+r10], 8001h
mov [rsi+r9], eax
mov byte ptr [rsi+rcx], 4
mov ecx, [rdx+0A20h]
not ecx
add ebx, ecx
lea ecx, [rbx+rbx*2]
mov r8, [rdx+0A18h]
mov r9d, ecx
shr r9d, 3
movzx r10d, word ptr [r8+r9]
and cl, 7
mov r11d, r10d
shr r11d, cl
and r11b, 7
mov [rsi+rdi], r11b
mov esi, 7
shl esi, cl
not esi
and esi, r10d
mov edi, 4
shl edi, cl
or edi, esi
mov [r8+r9], di
mov byte ptr [rdx+0A30h], 1
mov [r13+0B8h], eax
mov edx, r15d
mov rdi, r12
mov ebx, [rbp+var_2C]
mov esi, ebx
call write_rest_of_head
mov r15b, 1
test al, al
jnz short loc_4F442
loc_4F40F:
mov rax, [r12+2C0h]
mov ecx, ebx
lea rcx, [rcx+rcx*2]
lea rax, [rax+rcx*8]
mov rdx, [rbp+var_38]
mov [rdx], rax
mov ecx, 4
sub ecx, ebx
mov [rax+10h], ecx
mov eax, [r12+2C8h]
sub eax, ebx
mov [rdx+8], eax
xor r15d, r15d
loc_4F442:
mov rdi, [r14+0AD8h]
test rdi, rdi
jnz short loc_4F47F
loc_4F44E:
mov rdi, [rbp+var_40]
call _pthread_mutex_unlock
mov eax, r15d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4F469:
lea rsi, aWorkspaceLlm4b_4; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 8B1h
call psi_mutex_lock
jmp loc_4F207
loc_4F47F:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_4F44E
|
long long ma_bitmap_find_new_place(long long a1, long long a2, unsigned long long a3, unsigned int a4, long long a5)
{
unsigned int v5; // r15d
long long v9; // r14
long long v10; // rdi
long long v11; // rcx
unsigned long long v12; // rdx
int v13; // r15d
int v14; // edx
int v15; // esi
unsigned int v16; // eax
int where_to_split_row; // eax
long long v18; // rdx
long long v19; // rsi
long long v20; // rdi
long long v21; // rcx
long long v22; // r9
long long v23; // r10
unsigned long long *v24; // r8
long long v25; // rdx
long long v26; // r8
long long v27; // rsi
long long v28; // rdi
unsigned __int16 v29; // r9
char v30; // cl
unsigned int v31; // ebx
long long v32; // r8
long long v33; // r9
unsigned __int16 v34; // r10
char v35; // cl
char v36; // al
long long v37; // rax
long long v38; // rdi
int v42; // [rsp+14h] [rbp-2Ch]
v9 = *(_QWORD *)a1;
*(_DWORD *)(a5 + 8) = 0;
*(_WORD *)(a5 + 12) = 0;
*(_DWORD *)(a2 + 172) = 0;
*(_DWORD *)(a1 + 712) = 4;
v10 = v9 + 2712;
if ( *(_QWORD *)(v9 + 2776) )
psi_mutex_lock(v10, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c", 0x8B1u);
else
pthread_mutex_lock(v10);
if ( *(_QWORD *)(a2 + 136) )
{
LOBYTE(v5) = 1;
if ( allocate_blobs((long long *)a1, a2) )
goto LABEL_14;
}
v12 = a3 - a3 % *(_QWORD *)(v9 + 2888);
if ( *(_QWORD *)(v9 + 2592) != v12 )
{
LOBYTE(v5) = 1;
if ( (unsigned __int8)ma_change_bitmap_page(a1, v9 + 2576, v12, v11) )
goto LABEL_14;
}
v13 = *(_DWORD *)(a2 + 160);
v14 = *(_DWORD *)(a2 + 172);
v15 = 7 * v14;
v16 = v13 + 7 * v14 + 3;
if ( v16 <= a4 )
{
v25 = *(_QWORD *)a1;
v26 = *(_QWORD *)(a1 + 704);
*(_QWORD *)(v26 + 72) = a3;
*(_DWORD *)(v26 + 80) = 32769;
*(_DWORD *)(v26 + 84) = v16;
*(_BYTE *)(v26 + 92) = 4;
v27 = *(_QWORD *)(v25 + 2584);
v28 = (unsigned int)(3 * (~*(_DWORD *)(v25 + 2592) + a3)) >> 3;
v29 = *(_WORD *)(v27 + v28);
v30 = (3 * (~*(_BYTE *)(v25 + 2592) + a3)) & 7;
*(_BYTE *)(v26 + 93) = (v29 >> v30) & 7;
*(_WORD *)(v27 + v28) = v29 & ~(7 << v30) | (4 << v30);
*(_BYTE *)(v25 + 2608) = 1;
*(_DWORD *)(a2 + 184) = v16;
v31 = 3;
}
else
{
where_to_split_row = find_where_to_split_row((unsigned int *)v9, a2, v14 + 3, a4);
v5 = v15 + v13 - where_to_split_row + 31;
v18 = *(_QWORD *)a1;
v19 = *(_QWORD *)(a1 + 704);
if ( v5 <= (unsigned int)(3 * *(_DWORD *)(v9 + 1980)) >> 2 )
{
v24 = (unsigned long long *)(v19 + 48);
v42 = 2;
v20 = 69LL;
v21 = 68LL;
v22 = 60LL;
v23 = 56LL;
}
else
{
v42 = 0;
v20 = 21LL;
v21 = 20LL;
v22 = 12LL;
v23 = 8LL;
v24 = *(unsigned long long **)(a1 + 704);
}
*v24 = a3;
*(_DWORD *)(v19 + v23) = 32769;
*(_DWORD *)(v19 + v22) = where_to_split_row;
*(_BYTE *)(v19 + v21) = 4;
v32 = *(_QWORD *)(v18 + 2584);
v33 = (unsigned int)(3 * (~*(_DWORD *)(v18 + 2592) + a3)) >> 3;
v34 = *(_WORD *)(v32 + v33);
v35 = (3 * (~*(_BYTE *)(v18 + 2592) + a3)) & 7;
*(_BYTE *)(v19 + v20) = (v34 >> v35) & 7;
*(_WORD *)(v32 + v33) = v34 & ~(7 << v35) | (4 << v35);
*(_BYTE *)(v18 + 2608) = 1;
*(_DWORD *)(a2 + 184) = where_to_split_row;
v31 = v42;
v36 = write_rest_of_head((_QWORD *)a1, v42, v5);
LOBYTE(v5) = 1;
if ( v36 )
goto LABEL_14;
}
v37 = *(_QWORD *)(a1 + 704) + 24LL * v31;
*(_QWORD *)a5 = v37;
*(_DWORD *)(v37 + 16) = 4 - v31;
*(_DWORD *)(a5 + 8) = *(_DWORD *)(a1 + 712) - v31;
v5 = 0;
LABEL_14:
v38 = *(_QWORD *)(v9 + 2776);
if ( v38 )
((void ( *)(long long))PSI_server[44])(v38);
pthread_mutex_unlock(v9 + 2712);
return v5;
}
|
_ma_bitmap_find_new_place:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV dword ptr [RBP + -0x2c],ECX
MOV RBX,RDX
MOV R13,RSI
MOV R12,RDI
MOV R14,qword ptr [RDI]
XOR EAX,EAX
MOV dword ptr [R8 + 0x8],EAX
MOV qword ptr [RBP + -0x38],R8
MOV word ptr [R8 + 0xc],0x0
MOV dword ptr [RSI + 0xac],EAX
MOV dword ptr [RDI + 0x2c8],0x4
LEA RDI,[R14 + 0xa98]
CMP qword ptr [R14 + 0xad8],0x0
MOV qword ptr [RBP + -0x40],RDI
JNZ 0x0014f469
CALL 0x001291d0
LAB_0014f207:
CMP qword ptr [R13 + 0x88],0x0
JZ 0x0014f227
MOV RDI,R12
MOV RSI,R13
CALL 0x0014ee6e
MOV R15B,0x1
TEST AL,AL
JNZ 0x0014f442
LAB_0014f227:
MOV RAX,RBX
XOR EDX,EDX
DIV qword ptr [R14 + 0xb48]
MOV RAX,RDX
MOV RDX,RBX
SUB RDX,RAX
CMP qword ptr [R14 + 0xa20],RDX
JZ 0x0014f25f
LEA RSI,[R14 + 0xa10]
MOV RDI,R12
CALL 0x0014f491
MOV R15B,0x1
TEST AL,AL
JNZ 0x0014f442
LAB_0014f25f:
MOV R15D,dword ptr [R13 + 0xa0]
MOV EDX,dword ptr [R13 + 0xac]
LEA ESI,[RDX*0x8]
SUB ESI,EDX
LEA EAX,[R15 + RSI*0x1]
ADD EAX,0x3
MOV ECX,dword ptr [RBP + -0x2c]
CMP EAX,ECX
JBE 0x0014f2e3
ADD R15D,ESI
ADD EDX,0x3
MOV RDI,R14
MOV RSI,R13
CALL 0x0014f025
SUB R15D,EAX
ADD R15D,0x1f
MOV ECX,dword ptr [R14 + 0x7bc]
LEA ECX,[RCX + RCX*0x2]
SHR ECX,0x2
MOV RDX,qword ptr [R12]
MOV RSI,qword ptr [R12 + 0x2c0]
CMP R15D,ECX
JBE 0x0014f36b
MOV dword ptr [RBP + -0x2c],0x0
MOV EDI,0x15
MOV ECX,0x14
MOV R9D,0xc
MOV R10D,0x8
MOV R8,RSI
JMP 0x0014f38c
LAB_0014f2e3:
MOV RDX,qword ptr [R12]
MOV R8,qword ptr [R12 + 0x2c0]
MOV qword ptr [R8 + 0x48],RBX
MOV dword ptr [R8 + 0x50],0x8001
MOV dword ptr [R8 + 0x54],EAX
MOV byte ptr [R8 + 0x5c],0x4
MOV ECX,dword ptr [RDX + 0xa20]
NOT ECX
ADD EBX,ECX
LEA ECX,[RBX + RBX*0x2]
MOV RSI,qword ptr [RDX + 0xa18]
MOV EDI,ECX
SHR EDI,0x3
MOVZX R9D,word ptr [RSI + RDI*0x1]
AND CL,0x7
MOV R10D,R9D
SHR R10D,CL
AND R10B,0x7
MOV byte ptr [R8 + 0x5d],R10B
MOV R8D,0x7
SHL R8D,CL
NOT R8D
AND R8D,R9D
MOV R9D,0x4
SHL R9D,CL
OR R9D,R8D
MOV word ptr [RSI + RDI*0x1],R9W
MOV byte ptr [RDX + 0xa30],0x1
MOV dword ptr [R13 + 0xb8],EAX
MOV EBX,0x3
JMP 0x0014f40f
LAB_0014f36b:
LEA R8,[RSI + 0x30]
MOV dword ptr [RBP + -0x2c],0x2
MOV EDI,0x45
MOV ECX,0x44
MOV R9D,0x3c
MOV R10D,0x38
LAB_0014f38c:
MOV qword ptr [R8],RBX
MOV dword ptr [RSI + R10*0x1],0x8001
MOV dword ptr [RSI + R9*0x1],EAX
MOV byte ptr [RSI + RCX*0x1],0x4
MOV ECX,dword ptr [RDX + 0xa20]
NOT ECX
ADD EBX,ECX
LEA ECX,[RBX + RBX*0x2]
MOV R8,qword ptr [RDX + 0xa18]
MOV R9D,ECX
SHR R9D,0x3
MOVZX R10D,word ptr [R8 + R9*0x1]
AND CL,0x7
MOV R11D,R10D
SHR R11D,CL
AND R11B,0x7
MOV byte ptr [RSI + RDI*0x1],R11B
MOV ESI,0x7
SHL ESI,CL
NOT ESI
AND ESI,R10D
MOV EDI,0x4
SHL EDI,CL
OR EDI,ESI
MOV word ptr [R8 + R9*0x1],DI
MOV byte ptr [RDX + 0xa30],0x1
MOV dword ptr [R13 + 0xb8],EAX
MOV EDX,R15D
MOV RDI,R12
MOV EBX,dword ptr [RBP + -0x2c]
MOV ESI,EBX
CALL 0x0014f0c1
MOV R15B,0x1
TEST AL,AL
JNZ 0x0014f442
LAB_0014f40f:
MOV RAX,qword ptr [R12 + 0x2c0]
MOV ECX,EBX
LEA RCX,[RCX + RCX*0x2]
LEA RAX,[RAX + RCX*0x8]
MOV RDX,qword ptr [RBP + -0x38]
MOV qword ptr [RDX],RAX
MOV ECX,0x4
SUB ECX,EBX
MOV dword ptr [RAX + 0x10],ECX
MOV EAX,dword ptr [R12 + 0x2c8]
SUB EAX,EBX
MOV dword ptr [RDX + 0x8],EAX
XOR R15D,R15D
LAB_0014f442:
MOV RDI,qword ptr [R14 + 0xad8]
TEST RDI,RDI
JNZ 0x0014f47f
LAB_0014f44e:
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x001291a0
MOV EAX,R15D
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014f469:
LEA RSI,[0x1da5b2]
MOV EDX,0x8b1
CALL 0x0012ee6f
JMP 0x0014f207
LAB_0014f47f:
LEA RAX,[0x487050]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0014f44e
|
ulong _ma_bitmap_find_new_place(long *param_1,long param_2,ulong param_3,uint param_4,long *param_5)
{
pthread_mutex_t *__mutex;
ushort uVar1;
int iVar2;
long lVar3;
long lVar4;
ulong *puVar5;
uint uVar6;
int iVar7;
char cVar8;
uint uVar9;
int iVar10;
byte bVar11;
long lVar12;
long lVar13;
ulong uVar14;
ulong *puVar15;
long lVar16;
long lVar17;
ulong unaff_R15;
uint local_34;
lVar3 = *param_1;
*(int4 *)(param_5 + 1) = 0;
*(int2 *)((long)param_5 + 0xc) = 0;
*(int4 *)(param_2 + 0xac) = 0;
*(int4 *)(param_1 + 0x59) = 4;
__mutex = (pthread_mutex_t *)(lVar3 + 0xa98);
if (*(long *)(lVar3 + 0xad8) == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c",
0x8b1);
}
if (*(long *)(param_2 + 0x88) != 0) {
cVar8 = allocate_blobs(param_1,param_2);
unaff_R15 = CONCAT71((int7)(unaff_R15 >> 8),1);
if (cVar8 != '\0') goto LAB_0014f442;
}
if (*(long *)(lVar3 + 0xa20) != param_3 - param_3 % *(ulong *)(lVar3 + 0xb48)) {
cVar8 = _ma_change_bitmap_page(param_1,lVar3 + 0xa10);
unaff_R15 = CONCAT71((int7)(unaff_R15 >> 8),1);
if (cVar8 != '\0') goto LAB_0014f442;
}
iVar2 = *(int *)(param_2 + 0xa0);
iVar7 = *(int *)(param_2 + 0xac) * 7;
uVar9 = iVar2 + iVar7 + 3;
if (param_4 < uVar9) {
iVar10 = find_where_to_split_row(lVar3,param_2,*(int *)(param_2 + 0xac) + 3);
uVar9 = ((iVar2 + iVar7) - iVar10) + 0x1f;
lVar4 = *param_1;
puVar5 = (ulong *)param_1[0x58];
if ((uint)(*(int *)(lVar3 + 0x7bc) * 3) >> 2 < uVar9) {
local_34 = 0;
lVar13 = 0x15;
lVar12 = 0x14;
lVar16 = 0xc;
lVar17 = 8;
puVar15 = puVar5;
}
else {
puVar15 = puVar5 + 6;
local_34 = 2;
lVar13 = 0x45;
lVar12 = 0x44;
lVar16 = 0x3c;
lVar17 = 0x38;
}
*puVar15 = param_3;
*(int4 *)((long)puVar5 + lVar17) = 0x8001;
*(int *)((long)puVar5 + lVar16) = iVar10;
*(int1 *)((long)puVar5 + lVar12) = 4;
uVar6 = ((int)param_3 + ~*(uint *)(lVar4 + 0xa20)) * 3;
lVar12 = *(long *)(lVar4 + 0xa18);
uVar14 = (ulong)(uVar6 >> 3);
uVar1 = *(ushort *)(lVar12 + uVar14);
bVar11 = (byte)uVar6 & 7;
*(byte *)((long)puVar5 + lVar13) = (byte)(uVar1 >> bVar11) & 7;
*(ushort *)(lVar12 + uVar14) = (ushort)(4 << bVar11) | ~(ushort)(7 << bVar11) & uVar1;
*(int1 *)(lVar4 + 0xa30) = 1;
*(int *)(param_2 + 0xb8) = iVar10;
cVar8 = write_rest_of_head(param_1,local_34,uVar9);
unaff_R15 = CONCAT71((uint7)(uint3)(uVar9 >> 8),1);
if (cVar8 != '\0') goto LAB_0014f442;
}
else {
lVar4 = *param_1;
lVar12 = param_1[0x58];
*(ulong *)(lVar12 + 0x48) = param_3;
*(int4 *)(lVar12 + 0x50) = 0x8001;
*(uint *)(lVar12 + 0x54) = uVar9;
*(int1 *)(lVar12 + 0x5c) = 4;
uVar6 = ((int)param_3 + ~*(uint *)(lVar4 + 0xa20)) * 3;
lVar13 = *(long *)(lVar4 + 0xa18);
uVar14 = (ulong)(uVar6 >> 3);
uVar1 = *(ushort *)(lVar13 + uVar14);
bVar11 = (byte)uVar6 & 7;
*(byte *)(lVar12 + 0x5d) = (byte)(uVar1 >> bVar11) & 7;
*(ushort *)(lVar13 + uVar14) = (ushort)(4 << bVar11) | ~(ushort)(7 << bVar11) & uVar1;
*(int1 *)(lVar4 + 0xa30) = 1;
*(uint *)(param_2 + 0xb8) = uVar9;
local_34 = 3;
}
lVar4 = param_1[0x58] + (ulong)local_34 * 0x18;
*param_5 = lVar4;
*(uint *)(lVar4 + 0x10) = 4 - local_34;
*(uint *)(param_5 + 1) = (int)param_1[0x59] - local_34;
unaff_R15 = 0;
LAB_0014f442:
if (*(long *)(lVar3 + 0xad8) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
return unaff_R15 & 0xffffffff;
}
|
|
59,579
|
ma_read
|
eloqsql/libmariadb/libmariadb/ma_io.c
|
size_t ma_read(void *ptr, size_t size, size_t nmemb, MA_FILE *file)
{
size_t s= 0;
if (!file)
return -1;
switch (file->type) {
case MA_FILE_LOCAL:
s= fread(ptr, size, nmemb, (FILE *)file->ptr);
return s;
break;
#ifdef HAVE_REMOTEIO
case MA_FILE_REMOTE:
return rio_plugin->methods->mread(ptr, size, nmemb, file);
break;
#endif
default:
return -1;
}
}
|
O0
|
c
|
ma_read:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x9b191
movq $-0x1, -0x8(%rbp)
jmp 0x9b204
movq -0x28(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x34(%rbp)
subl $0x1, %eax
je 0x9b1ab
jmp 0x9b1a1
movl -0x34(%rbp), %eax
subl $0x2, %eax
je 0x9b1d2
jmp 0x9b1fc
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rcx
callq 0x605a0
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x9b204
leaq 0x422167(%rip), %rax # 0x4bd340
movq (%rax), %rax
movq 0x58(%rax), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq *%rax
movq %rax, -0x8(%rbp)
jmp 0x9b204
movq $-0x1, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nop
|
ma_read:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], 0
cmp [rbp+var_28], 0
jnz short loc_9B191
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp short loc_9B204
loc_9B191:
mov rax, [rbp+var_28]
mov eax, [rax]
mov [rbp+var_34], eax
sub eax, 1
jz short loc_9B1AB
jmp short $+2
loc_9B1A1:
mov eax, [rbp+var_34]
sub eax, 2
jz short loc_9B1D2
jmp short loc_9B1FC
loc_9B1AB:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov rax, [rbp+var_28]
mov rcx, [rax+8]
call _fread
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
mov [rbp+var_8], rax
jmp short loc_9B204
loc_9B1D2:
lea rax, rio_plugin
mov rax, [rax]
mov rax, [rax+58h]
mov rax, [rax+18h]
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_28]
call rax
mov [rbp+var_8], rax
jmp short loc_9B204
loc_9B1FC:
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
loc_9B204:
mov rax, [rbp+var_8]
add rsp, 40h
pop rbp
retn
|
long long ma_read(long long a1, long long a2, long long a3, long long a4)
{
if ( !a4 )
return -1LL;
if ( *(_DWORD *)a4 == 1 )
return fread(a1, a2, a3, *(_QWORD *)(a4 + 8));
if ( *(_DWORD *)a4 == 2 )
return (*(long long ( **)(long long, long long, long long, long long))(*(_QWORD *)(rio_plugin + 88LL) + 24LL))(
a1,
a2,
a3,
a4);
return -1LL;
}
|
ma_read:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],0x0
CMP qword ptr [RBP + -0x28],0x0
JNZ 0x0019b191
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x0019b204
LAB_0019b191:
MOV RAX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x34],EAX
SUB EAX,0x1
JZ 0x0019b1ab
JMP 0x0019b1a1
LAB_0019b1a1:
MOV EAX,dword ptr [RBP + -0x34]
SUB EAX,0x2
JZ 0x0019b1d2
JMP 0x0019b1fc
LAB_0019b1ab:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RAX + 0x8]
CALL 0x001605a0
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0019b204
LAB_0019b1d2:
LEA RAX,[0x5bd340]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x58]
MOV RAX,qword ptr [RAX + 0x18]
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
CALL RAX
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0019b204
LAB_0019b1fc:
MOV qword ptr [RBP + -0x8],-0x1
LAB_0019b204:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x40
POP RBP
RET
|
size_t ma_read(void *param_1,size_t param_2,size_t param_3,int *param_4)
{
size_t local_10;
if (param_4 == (int *)0x0) {
local_10 = 0xffffffffffffffff;
}
else if (*param_4 == 1) {
local_10 = fread(param_1,param_2,param_3,*(FILE **)(param_4 + 2));
}
else if (*param_4 == 2) {
local_10 = (**(code **)(*(long *)(rio_plugin + 0x58) + 0x18))(param_1,param_2,param_3,param_4);
}
else {
local_10 = 0xffffffffffffffff;
}
return local_10;
}
|
|
59,580
|
my_strnxfrm_tis620
|
eloqsql/strings/ctype-tis620.c
|
static size_t
my_strnxfrm_tis620(CHARSET_INFO *cs,
uchar *dst, size_t dstlen, uint nweights,
const uchar *src, size_t srclen, uint flags)
{
size_t len, dstlen0= dstlen;
len= MY_MIN(dstlen, srclen);
memcpy(dst, src, len);
len= thai2sortable(dst, len);
set_if_smaller(dstlen, nweights);
set_if_smaller(len, dstlen);
len= my_strxfrm_pad_desc_and_reverse(cs, dst, dst + len, dst + dstlen,
(uint)(dstlen - len), flags, 0);
if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && len < dstlen0)
{
size_t fill_length= dstlen0 - len;
my_ci_fill(cs, (char*) dst + len, fill_length, cs->pad_char);
len= dstlen0;
}
return len;
}
|
O0
|
c
|
my_strnxfrm_tis620:
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 -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x4e34e
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x4e356
movq -0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x24200
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x4e440
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
cmpq %rcx, %rax
jbe 0x4e393
movl -0x1c(%rbp), %eax
movq %rax, -0x18(%rbp)
jmp 0x4e395
jmp 0x4e397
movq -0x38(%rbp), %rax
cmpq -0x18(%rbp), %rax
jbe 0x4e3a9
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x4e3ab
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x10(%rbp), %rdx
addq -0x38(%rbp), %rdx
movq -0x10(%rbp), %rcx
addq -0x18(%rbp), %rcx
movq -0x18(%rbp), %rax
subq -0x38(%rbp), %rax
movl %eax, %r8d
movl 0x10(%rbp), %r9d
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x48a00
movq %rax, -0x38(%rbp)
movl 0x10(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x4e42f
movq -0x38(%rbp), %rax
cmpq -0x40(%rbp), %rax
jae 0x4e42f
movq -0x40(%rbp), %rax
subq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x8(%rbp), %rax
movzbl 0xb0(%rax), %ecx
callq 0x4e5e0
movq -0x40(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
|
my_strnxfrm_tis620:
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_18]
mov [rbp+var_40], rax
mov rax, [rbp+var_18]
cmp rax, [rbp+var_30]
jnb short loc_4E34E
mov rax, [rbp+var_18]
mov [rbp+var_50], rax
jmp short loc_4E356
loc_4E34E:
mov rax, [rbp+var_30]
mov [rbp+var_50], rax
loc_4E356:
mov rax, [rbp+var_50]
mov [rbp+var_38], rax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_38]
call _memcpy
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
call thai2sortable
mov [rbp+var_38], rax
mov rax, [rbp+var_18]
mov ecx, [rbp+var_1C]
cmp rax, rcx
jbe short loc_4E393
mov eax, [rbp+var_1C]
mov [rbp+var_18], rax
loc_4E393:
jmp short $+2
loc_4E395:
jmp short $+2
loc_4E397:
mov rax, [rbp+var_38]
cmp rax, [rbp+var_18]
jbe short loc_4E3A9
mov rax, [rbp+var_18]
mov [rbp+var_38], rax
loc_4E3A9:
jmp short $+2
loc_4E3AB:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_10]
add rdx, [rbp+var_38]
mov rcx, [rbp+var_10]
add rcx, [rbp+var_18]
mov rax, [rbp+var_18]
sub rax, [rbp+var_38]
mov r8d, eax
mov r9d, [rbp+arg_0]
xor eax, eax
mov [rsp+60h+var_60], 0
call my_strxfrm_pad_desc_and_reverse
mov [rbp+var_38], rax
mov eax, [rbp+arg_0]
and eax, 80h
cmp eax, 0
jz short loc_4E42F
mov rax, [rbp+var_38]
cmp rax, [rbp+var_40]
jnb short loc_4E42F
mov rax, [rbp+var_40]
sub rax, [rbp+var_38]
mov [rbp+var_48], rax
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
add rsi, [rbp+var_38]
mov rdx, [rbp+var_48]
mov rax, [rbp+var_8]
movzx ecx, byte ptr [rax+0B0h]
call my_ci_fill_1
mov rax, [rbp+var_40]
mov [rbp+var_38], rax
loc_4E42F:
mov rax, [rbp+var_38]
add rsp, 60h
pop rbp
retn
|
unsigned long long my_strnxfrm_tis620(
long long a1,
long long a2,
unsigned long long a3,
unsigned int a4,
long long a5,
unsigned long long a6,
unsigned int a7)
{
unsigned long long v8; // [rsp+10h] [rbp-50h]
unsigned long long v10; // [rsp+28h] [rbp-38h]
unsigned long long v11; // [rsp+28h] [rbp-38h]
unsigned long long v13; // [rsp+48h] [rbp-18h]
v13 = a3;
if ( a3 >= a6 )
v8 = a6;
else
v8 = a3;
memcpy(a2, a5, v8);
v10 = thai2sortable(a2, v8);
if ( v13 > a4 )
v13 = a4;
if ( v10 > v13 )
v10 = v13;
v11 = my_strxfrm_pad_desc_and_reverse(a1, a2, v10 + a2, v13 + a2, (int)v13 - (int)v10, a7, 0);
if ( (a7 & 0x80) != 0 && v11 < a3 )
{
my_ci_fill_1(a1, v11 + a2, a3 - v11, *(unsigned __int8 *)(a1 + 176));
return a3;
}
return v11;
}
|
my_strnxfrm_tis620:
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 + -0x18]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x0014e34e
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x0014e356
LAB_0014e34e:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x50],RAX
LAB_0014e356:
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x00124200
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
CALL 0x0014e440
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x1c]
CMP RAX,RCX
JBE 0x0014e393
MOV EAX,dword ptr [RBP + -0x1c]
MOV qword ptr [RBP + -0x18],RAX
LAB_0014e393:
JMP 0x0014e395
LAB_0014e395:
JMP 0x0014e397
LAB_0014e397:
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x18]
JBE 0x0014e3a9
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x38],RAX
LAB_0014e3a9:
JMP 0x0014e3ab
LAB_0014e3ab:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x10]
ADD RDX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x18]
SUB RAX,qword ptr [RBP + -0x38]
MOV R8D,EAX
MOV R9D,dword ptr [RBP + 0x10]
XOR EAX,EAX
MOV dword ptr [RSP],0x0
CALL 0x00148a00
MOV qword ptr [RBP + -0x38],RAX
MOV EAX,dword ptr [RBP + 0x10]
AND EAX,0x80
CMP EAX,0x0
JZ 0x0014e42f
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x40]
JNC 0x0014e42f
MOV RAX,qword ptr [RBP + -0x40]
SUB RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x48],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RAX + 0xb0]
CALL 0x0014e5e0
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x38],RAX
LAB_0014e42f:
MOV RAX,qword ptr [RBP + -0x38]
ADD RSP,0x60
POP RBP
RET
|
ulong my_strnxfrm_tis620(long param_1,void *param_2,ulong param_3,uint param_4,void *param_5,
ulong param_6,uint param_7)
{
size_t local_58;
ulong local_40;
ulong local_20;
local_58 = param_6;
if (param_3 < param_6) {
local_58 = param_3;
}
memcpy(param_2,param_5,local_58);
local_40 = thai2sortable(param_2,local_58);
local_20 = param_3;
if (param_4 < param_3) {
local_20 = (ulong)param_4;
}
if (local_20 < local_40) {
local_40 = local_20;
}
local_40 = my_strxfrm_pad_desc_and_reverse
(param_1,param_2,(long)param_2 + local_40,(long)param_2 + local_20,
(int)local_20 - (int)local_40,param_7,0);
if (((param_7 & 0x80) != 0) && (local_40 < param_3)) {
my_ci_fill(param_1,(long)param_2 + local_40,param_3 - local_40,*(int1 *)(param_1 + 0xb0));
local_40 = param_3;
}
return local_40;
}
|
|
59,581
|
wait_for_free_space
|
eloqsql/mysys/errors.c
|
void wait_for_free_space(const char *filename, int errors)
{
if (errors == 0)
my_error(EE_DISK_FULL,MYF(ME_BELL | ME_ERROR_LOG | ME_WARNING),
filename,my_errno,MY_WAIT_FOR_USER_TO_FIX_PANIC);
if (!(errors % MY_WAIT_GIVE_USER_A_MESSAGE))
my_printf_error(EE_DISK_FULL,
"Retry in %d secs. Message reprinted in %d secs",
MYF(ME_BELL | ME_ERROR_LOG | ME_WARNING),
MY_WAIT_FOR_USER_TO_FIX_PANIC,
MY_WAIT_GIVE_USER_A_MESSAGE * MY_WAIT_FOR_USER_TO_FIX_PANIC );
(void) sleep(MY_WAIT_FOR_USER_TO_FIX_PANIC);
}
|
O3
|
c
|
wait_for_free_space:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
testl %esi, %esi
je 0x2a9e1
imull $0xcccccccd, %esi, %eax # imm = 0xCCCCCCCD
movl $0x19999998, %ecx # imm = 0x19999998
addl %ecx, %eax
rorl %eax
cmpl %ecx, %eax
ja 0x2aa28
jmp 0x2aa05
movq %rdi, %rbx
callq 0x268a6
movl (%rax), %ecx
movl $0x844, %esi # imm = 0x844
movl $0x14, %edi
movq %rbx, %rdx
movl $0x3c, %r8d
xorl %eax, %eax
callq 0x2bf8b
leaq 0x337e6(%rip), %rsi # 0x5e1f2
movl $0x844, %edx # imm = 0x844
movl $0x14, %edi
movl $0x3c, %ecx
movl $0x258, %r8d # imm = 0x258
xorl %eax, %eax
callq 0x2c0a5
movl $0x3c, %edi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x24200
|
wait_for_free_space:
push rbp
mov rbp, rsp
push rbx
push rax
test esi, esi
jz short loc_2A9E1
imul eax, esi, 0CCCCCCCDh
mov ecx, 19999998h
add eax, ecx
ror eax, 1
cmp eax, ecx
ja short loc_2AA28
jmp short loc_2AA05
loc_2A9E1:
mov rbx, rdi
call _my_thread_var
mov ecx, [rax]
mov esi, 844h
mov edi, 14h
mov rdx, rbx
mov r8d, 3Ch ; '<'
xor eax, eax
call my_error
loc_2AA05:
lea rsi, aRetryInDSecsMe; "Retry in %d secs. Message reprinted in "...
mov edx, 844h
mov edi, 14h
mov ecx, 3Ch ; '<'
mov r8d, 258h
xor eax, eax
call my_printf_error
loc_2AA28:
mov edi, 3Ch ; '<'
add rsp, 8
pop rbx
pop rbp
jmp _sleep
|
long long wait_for_free_space(int a1, int a2, long long a3, long long a4, long long a5, int a6)
{
char v6; // al
_DWORD *v7; // rax
int v8; // r9d
char v10; // [rsp-8h] [rbp-10h]
v10 = v6;
if ( !a2 )
{
v7 = (_DWORD *)my_thread_var();
my_error(20, 2116, a1, *v7, 60, v8, v10);
LABEL_5:
my_printf_error(20, (unsigned int)"Retry in %d secs. Message reprinted in %d secs", 2116, 60, 600, a6, v10);
return sleep(60LL);
}
if ( __ROR4__(-858993459 * a2 + 429496728, 1) <= 0x19999998u )
goto LABEL_5;
return sleep(60LL);
}
|
wait_for_free_space:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
TEST ESI,ESI
JZ 0x0012a9e1
IMUL EAX,ESI,-0x33333333
MOV ECX,0x19999998
ADD EAX,ECX
ROR EAX,0x1
CMP EAX,ECX
JA 0x0012aa28
JMP 0x0012aa05
LAB_0012a9e1:
MOV RBX,RDI
CALL 0x001268a6
MOV ECX,dword ptr [RAX]
MOV ESI,0x844
MOV EDI,0x14
MOV RDX,RBX
MOV R8D,0x3c
XOR EAX,EAX
CALL 0x0012bf8b
LAB_0012aa05:
LEA RSI,[0x15e1f2]
MOV EDX,0x844
MOV EDI,0x14
MOV ECX,0x3c
MOV R8D,0x258
XOR EAX,EAX
CALL 0x0012c0a5
LAB_0012aa28:
MOV EDI,0x3c
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x00124200
|
void wait_for_free_space(int8 param_1,int param_2)
{
uint uVar1;
int4 *puVar2;
if (param_2 == 0) {
puVar2 = (int4 *)_my_thread_var();
my_error(0x14,0x844,param_1,*puVar2,0x3c);
}
else {
uVar1 = param_2 * -0x33333333 + 0x19999998;
if (0x19999998 < (uVar1 >> 1 | (uint)((uVar1 & 1) != 0) << 0x1f)) goto LAB_0012aa28;
}
my_printf_error(0x14,"Retry in %d secs. Message reprinted in %d secs",0x844,0x3c,600);
LAB_0012aa28:
sleep(0x3c);
return;
}
|
|
59,582
|
SchemaConverter::_generate_union_rule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>> const&)
|
monkey531[P]llama/common/json-schema-to-grammar.cpp
|
std::string _generate_union_rule(const std::string & name, const std::vector<json> & alt_schemas) {
std::vector<std::string> rules;
for (size_t i = 0; i < alt_schemas.size(); i++) {
rules.push_back(visit(alt_schemas[i], name + (name.empty() ? "alternative-" : "-") + std::to_string(i)));
}
return string_join(rules, " | ");
}
|
O0
|
cpp
|
SchemaConverter::_generate_union_rule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>> const&):
subq $0x138, %rsp # imm = 0x138
movq %rdi, 0x28(%rsp)
movq %rdi, %rax
movq %rax, 0x30(%rsp)
movq %rdi, 0x130(%rsp)
movq %rsi, 0x128(%rsp)
movq %rdx, 0x120(%rsp)
movq %rcx, 0x118(%rsp)
movq 0x128(%rsp), %rax
movq %rax, 0x38(%rsp)
leaq 0x100(%rsp), %rdi
callq 0x62a60
movq $0x0, 0xf8(%rsp)
movq 0xf8(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x118(%rsp), %rdi
callq 0xae620
movq %rax, %rcx
movq 0x20(%rsp), %rax
cmpq %rcx, %rax
jae 0x1accc2
movq 0x118(%rsp), %rdi
movq 0xf8(%rsp), %rsi
callq 0x1b13e0
movq %rax, 0x10(%rsp)
movq 0x120(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x5a4d0
movq 0x18(%rsp), %rsi
movb %al, %cl
leaq 0x68930(%rip), %rax # 0x21547f
leaq 0x59677(%rip), %rdx # 0x2061cd
testb %cl, %cl
cmovneq %rax, %rdx
leaq 0x98(%rsp), %rdi
callq 0x893a0
jmp 0x1acb6b
movq 0xf8(%rsp), %rsi
leaq 0x68(%rsp), %rdi
callq 0xadd20
jmp 0x1acb7f
leaq 0xb8(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0x8b890
jmp 0x1acb9b
movq 0x10(%rsp), %rdx
movq 0x38(%rsp), %rsi
leaq 0xd8(%rsp), %rdi
leaq 0xb8(%rsp), %rcx
callq 0x1a9230
jmp 0x1acbbc
leaq 0x100(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0xf70f0
jmp 0x1acbd3
leaq 0xd8(%rsp), %rdi
callq 0x5b528
leaq 0xb8(%rsp), %rdi
callq 0x5b528
leaq 0x68(%rsp), %rdi
callq 0x5b528
leaq 0x98(%rsp), %rdi
callq 0x5b528
movq 0xf8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xf8(%rsp)
jmp 0x1acaea
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
jmp 0x1acd6e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
jmp 0x1accb0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
jmp 0x1acca6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
jmp 0x1acc99
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0xd8(%rsp), %rdi
callq 0x5b528
leaq 0xb8(%rsp), %rdi
callq 0x5b528
leaq 0x68(%rsp), %rdi
callq 0x5b528
leaq 0x98(%rsp), %rdi
callq 0x5b528
jmp 0x1acd6e
leaq 0x47(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x5b0b0
movq 0x8(%rsp), %rdx
leaq 0x68959(%rip), %rsi # 0x215636
leaq 0x48(%rsp), %rdi
callq 0x629a0
jmp 0x1acce9
movq 0x28(%rsp), %rdi
leaq 0x100(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0xec160
jmp 0x1acd02
leaq 0x48(%rsp), %rdi
callq 0x5b528
leaq 0x47(%rsp), %rdi
callq 0x5b500
leaq 0x100(%rsp), %rdi
callq 0x62ab0
movq 0x30(%rsp), %rax
addq $0x138, %rsp # imm = 0x138
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
jmp 0x1acd64
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x5b528
leaq 0x47(%rsp), %rdi
callq 0x5b500
leaq 0x100(%rsp), %rdi
callq 0x62ab0
movq 0x90(%rsp), %rdi
callq 0x5aba0
nopl (%rax,%rax)
|
_ZN15SchemaConverter20_generate_union_ruleERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapES8_S5_blmdSaNSA_14adl_serializerES8_IhSaIhEEvEESaISG_EE:
sub rsp, 138h
mov [rsp+138h+var_110], rdi
mov rax, rdi
mov [rsp+138h+var_108], rax
mov [rsp+138h+var_8], rdi
mov [rsp+138h+var_10], rsi
mov [rsp+138h+var_18], rdx
mov [rsp+138h+var_20], rcx
mov rax, [rsp+138h+var_10]
mov [rsp+138h+var_100], rax
lea rdi, [rsp+138h+var_38]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev; std::vector<std::string>::vector(void)
mov [rsp+138h+var_40], 0
loc_1ACAEA:
mov rax, [rsp+138h+var_40]
mov [rsp+138h+var_118], rax
mov rdi, [rsp+138h+var_20]
call _ZNKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::size(void)
mov rcx, rax
mov rax, [rsp+138h+var_118]
cmp rax, rcx
jnb loc_1ACCC2
mov rdi, [rsp+138h+var_20]
mov rsi, [rsp+138h+var_40]
call _ZNKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEixEm; 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>>::operator[](ulong)
mov qword ptr [rsp+138h+var_128], rax; int
mov rdi, [rsp+138h+var_18]
mov [rsp+138h+var_120], rdi; __int64
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
mov rsi, [rsp+138h+var_120]; int
mov cl, al; int
lea rax, aAlternative; "alternative-"
lea rdx, asc_2061C6+7; "-"
test cl, cl
cmovnz rdx, rax; int
lea rdi, [rsp+138h+var_A0]; int
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*)
jmp short $+2
loc_1ACB6B:
mov rsi, [rsp+138h+var_40]; unsigned __int64
lea rdi, [rsp+138h+var_D0]; this
call _ZNSt7__cxx119to_stringEm; std::to_string(ulong)
jmp short $+2
loc_1ACB7F:
lea rdi, [rsp+138h+var_80]
lea rsi, [rsp+138h+var_A0]
lea rdx, [rsp+138h+var_D0]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
jmp short $+2
loc_1ACB9B:
mov rdx, qword ptr [rsp+138h+var_128]
mov rsi, [rsp+138h+var_100]
lea rdi, [rsp+138h+var_60]
lea rcx, [rsp+138h+var_80]
call _ZN15SchemaConverter5visitERKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEERKSA_; SchemaConverter::visit(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,std::string const&)
jmp short $+2
loc_1ACBBC:
lea rdi, [rsp+138h+var_38]
lea rsi, [rsp+138h+var_60]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_; std::vector<std::string>::push_back(std::string&&)
jmp short $+2
loc_1ACBD3:
lea rdi, [rsp+138h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+138h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+138h+var_D0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+138h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rax, [rsp+138h+var_40]
add rax, 1
mov [rsp+138h+var_40], rax
jmp loc_1ACAEA
mov rcx, rax
mov eax, edx
mov [rsp+arg_88], rcx
mov [rsp+arg_84], eax
jmp loc_1ACD6E
mov rcx, rax
mov eax, edx
mov [rsp+arg_88], rcx
mov [rsp+arg_84], eax
jmp short loc_1ACCB0
mov rcx, rax
mov eax, edx
mov [rsp+arg_88], rcx
mov [rsp+arg_84], eax
jmp short loc_1ACCA6
mov rcx, rax
mov eax, edx
mov [rsp+arg_88], rcx
mov [rsp+arg_84], eax
jmp short loc_1ACC99
mov rcx, rax
mov eax, edx
mov [rsp+arg_88], rcx
mov [rsp+arg_84], eax
lea rdi, [rsp+arg_D0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1ACC99:
lea rdi, [rsp+arg_B0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1ACCA6:
lea rdi, [rsp+arg_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1ACCB0:
lea rdi, [rsp+arg_90]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_1ACD6E
loc_1ACCC2:
lea rdi, [rsp+138h+var_F1]
mov [rsp+138h+var_130], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, [rsp+138h+var_130]
lea rsi, asc_215635+1; " | "
lea rdi, [rsp+138h+var_F0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_1ACCE9:
mov rdi, [rsp+138h+var_110]
lea rsi, [rsp+138h+var_38]
lea rdx, [rsp+138h+var_F0]
call _Z11string_joinRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EERKS5_; string_join(std::vector<std::string> const&,std::string const&)
jmp short $+2
loc_1ACD02:
lea rdi, [rsp+138h+var_F0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+138h+var_F1]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
lea rdi, [rsp+138h+var_38]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rax, [rsp+138h+var_108]
add rsp, 138h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_88], rcx
mov [rsp+arg_84], eax
jmp short loc_1ACD64
mov rcx, rax
mov eax, edx
mov [rsp+arg_88], rcx
mov [rsp+arg_84], eax
lea rdi, [rsp+arg_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1ACD64:
lea rdi, [rsp+arg_3F]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
loc_1ACD6E:
lea rdi, [rsp+arg_F8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, [rsp+arg_88]
call __Unwind_Resume
|
long long SchemaConverter::_generate_union_rule(long long a1, _BYTE *a2, long long a3, _QWORD *a4)
{
char v4; // al
char *v5; // rdx
long long v6; // rdx
long long v7; // rcx
long long v8; // r8
long long v9; // r9
long long v11; // [rsp+10h] [rbp-128h]
long long v12; // [rsp+18h] [rbp-120h]
unsigned long long v13; // [rsp+20h] [rbp-118h]
long long v14; // [rsp+38h] [rbp-100h]
char v15; // [rsp+47h] [rbp-F1h] BYREF
_BYTE v16[32]; // [rsp+48h] [rbp-F0h] BYREF
_BYTE v17[48]; // [rsp+68h] [rbp-D0h] BYREF
int v18[8]; // [rsp+98h] [rbp-A0h] BYREF
_BYTE v19[32]; // [rsp+B8h] [rbp-80h] BYREF
_BYTE v20[32]; // [rsp+D8h] [rbp-60h] BYREF
unsigned long long i; // [rsp+F8h] [rbp-40h]
long long v22[3]; // [rsp+100h] [rbp-38h] BYREF
_QWORD *v23; // [rsp+118h] [rbp-20h]
long long v24; // [rsp+120h] [rbp-18h]
_BYTE *v25; // [rsp+128h] [rbp-10h]
long long v26; // [rsp+130h] [rbp-8h]
v26 = a1;
v25 = a2;
v24 = a3;
v23 = a4;
v14 = (long long)a2;
std::vector<std::string>::vector((long long)v22);
for ( i = 0LL; ; ++i )
{
v13 = i;
if ( v13 >= 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>>::size(v23) )
break;
v11 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::operator[](
v23,
i);
v12 = v24;
v4 = std::string::empty(v24);
v5 = "-";
if ( v4 )
v5 = "alternative-";
std::operator+<char>((long long)v18, v12, (long long)v5);
std::to_string((std::__cxx11 *)v17, i);
std::operator+<char>((long long)v19, (long long)v18, (long long)v17);
SchemaConverter::visit((long long)v20, v14, v11, (long long)v19);
a2 = v20;
std::vector<std::string>::push_back((long long)v22, (long long)v20, v6, v7, v8, v9);
std::string::~string(v20);
std::string::~string(v19);
std::string::~string(v17);
std::string::~string(v18);
}
std::allocator<char>::allocator(&v15, a2);
std::string::basic_string<std::allocator<char>>((long long)v16, (long long)" | ", (long long)&v15);
string_join(a1, v22, (long long)v16);
std::string::~string(v16);
std::allocator<char>::~allocator(&v15);
std::vector<std::string>::~vector(v22);
return a1;
}
| |||
59,583
|
SchemaConverter::_generate_union_rule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>> const&)
|
monkey531[P]llama/common/json-schema-to-grammar.cpp
|
std::string _generate_union_rule(const std::string & name, const std::vector<json> & alt_schemas) {
std::vector<std::string> rules;
for (size_t i = 0; i < alt_schemas.size(); i++) {
rules.push_back(visit(alt_schemas[i], name + (name.empty() ? "alternative-" : "-") + std::to_string(i)));
}
return string_join(rules, " | ");
}
|
O3
|
cpp
|
SchemaConverter::_generate_union_rule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdx, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq %rdi, 0x98(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movq $0x0, 0x90(%rsp)
movq (%rcx), %r12
movq %rcx, 0xa0(%rsp)
cmpq %r12, 0x8(%rcx)
je 0xc36c0
leaq 0x70(%rsp), %rbp
xorl %r13d, %r13d
leaq 0x40(%rsp), %r14
movq %rbp, %rbx
movq 0xb0(%rsp), %rcx
movq 0x8(%rcx), %rbp
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq (%rcx), %rsi
leaq (%rsi,%rbp), %rdx
movq %rsp, %r15
movq %r15, %rdi
callq 0x219f6
testq %rbp, %rbp
leaq 0x3047d(%rip), %rsi # 0xf3947
leaq 0x3051f(%rip), %rax # 0xf39f0
cmoveq %rax, %rsi
movq %r15, %rdi
callq 0x1b0d0
movl $0x1, %esi
cmpq $0xa, %r13
movq %rbx, %rbp
jb 0xc353a
movl $0x4, %esi
movq %r13, %rcx
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
cmpq $0x63, %rcx
jbe 0xc3533
cmpq $0x3e7, %rcx # imm = 0x3E7
jbe 0xc3538
cmpq $0x2710, %rcx # imm = 0x2710
jb 0xc353a
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx # imm = 0x1869F
movq %rdx, %rcx
ja 0xc34fd
addl $-0x3, %esi
jmp 0xc353a
addl $-0x2, %esi
jmp 0xc353a
decl %esi
movl %esi, %esi
movq %rbp, 0x60(%rsp)
leaq 0x60(%rsp), %rdi
xorl %edx, %edx
callq 0x1aa10
movq 0x60(%rsp), %rdi
movl 0x68(%rsp), %esi
movq %r13, %rdx
callq 0x5d2ed
movq (%rsp), %rcx
movl $0xf, %edi
leaq 0x10(%rsp), %rax
cmpq %rax, %rcx
je 0xc3576
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r8
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0xc35a2
movl $0xf, %edi
cmpq %rbp, %rsi
je 0xc359d
movq 0x70(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xc35ac
movq %rsp, %rdi
callq 0x1a250
jmp 0xc35ba
leaq 0x60(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1a9c0
leaq 0x30(%rsp), %rsi
movq %rsi, 0x20(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0xc35df
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0xc35e5
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x28(%rsp)
movq %rcx, (%rax)
movq %r13, %rax
shlq $0x4, %rax
addq %rax, %r12
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq %r14, %rdi
movq 0xa8(%rsp), %rsi
movq %r12, %rdx
leaq 0x20(%rsp), %rcx
callq 0xc0686
leaq 0x80(%rsp), %rdi
movq %r14, %rsi
leaq 0x30(%rsp), %r12
callq 0x554de
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0xc3655
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x1a8c0
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0xc366c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a8c0
movq 0x60(%rsp), %rdi
cmpq %rbp, %rdi
je 0xc3683
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x1a8c0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xc369e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1a8c0
incq %r13
movq 0xa0(%rsp), %rax
movq (%rax), %r12
movq 0x8(%rax), %rax
subq %r12, %rax
sarq $0x4, %rax
cmpq %rax, %r13
jb 0xc3496
leaq 0x50(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x304d7(%rip), %rsi # 0xf3ba7
leaq 0x304d3(%rip), %rdx # 0xf3baa
leaq 0x40(%rsp), %rdi
callq 0x21b26
leaq 0x80(%rsp), %rsi
leaq 0x40(%rsp), %rdx
movq 0x98(%rsp), %r14
movq %r14, %rdi
callq 0x71e99
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0xc3715
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x1a8c0
leaq 0x80(%rsp), %rdi
callq 0x20b0a
movq %r14, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0xc37d4
movq 0x50(%rsp), %rsi
jmp 0xc37cc
jmp 0xc3751
movq %rax, %r14
jmp 0xc37d4
jmp 0xc3758
movq %rax, %r14
jmp 0xc37b9
movq %rax, %r14
jmp 0xc37a2
movq %rax, %r14
jmp 0xc3786
movq %rax, %r14
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0xc3786
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x1a8c0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0xc37a2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1a8c0
movq 0x60(%rsp), %rdi
cmpq %rbx, %rdi
je 0xc37b9
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x1a8c0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xc37d4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1a8c0
leaq 0x80(%rsp), %rdi
callq 0x20b0a
movq %r14, %rdi
callq 0x1af80
nop
|
_ZN15SchemaConverter20_generate_union_ruleERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapES8_S5_blmdSaNSA_14adl_serializerES8_IhSaIhEEvEESaISG_EE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov [rsp+0E8h+var_38], rdx
mov [rsp+0E8h+var_40], rsi
mov [rsp+0E8h+var_50], rdi
xorps xmm0, xmm0
movaps [rsp+0E8h+var_68], xmm0
mov [rsp+0E8h+var_58], 0
mov r12, [rcx]
mov [rsp+0E8h+var_48], rcx
cmp [rcx+8], r12
jz loc_C36C0
lea rbp, [rsp+0E8h+var_78]
xor r13d, r13d
lea r14, [rsp+0E8h+var_A8]
loc_C3496:
mov rbx, rbp
mov rcx, [rsp+0E8h+var_38]
mov rbp, [rcx+8]
lea rax, [rsp+0E8h+var_D8]
mov [rsp+0E8h+var_E8], rax
mov rsi, [rcx]
lea rdx, [rsi+rbp]
mov r15, rsp
mov rdi, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
test rbp, rbp
lea rsi, aTuple+5; "-"
lea rax, aAlternative; "alternative-"
cmovz rsi, rax
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov esi, 1
cmp r13, 0Ah
mov rbp, rbx
jb short loc_C353A
mov esi, 4
mov rcx, r13
mov rdi, 346DC5D63886594Bh
loc_C34FD:
cmp rcx, 63h ; 'c'
jbe short loc_C3533
cmp rcx, 3E7h
jbe short loc_C3538
cmp rcx, 2710h
jb short loc_C353A
mov rax, rcx
mul rdi
shr rdx, 0Bh
add esi, 4
cmp rcx, 1869Fh
mov rcx, rdx
ja short loc_C34FD
add esi, 0FFFFFFFDh
jmp short loc_C353A
loc_C3533:
add esi, 0FFFFFFFEh
jmp short loc_C353A
loc_C3538:
dec esi
loc_C353A:
mov esi, esi
mov [rsp+0E8h+var_88], rbp
lea rdi, [rsp+0E8h+var_88]
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char)
mov rdi, [rsp+0E8h+var_88]
mov esi, dword ptr [rsp+0E8h+var_80]
mov rdx, r13
call _ZNSt8__detail18__to_chars_10_implImEEvPcjT_; std::__detail::__to_chars_10_impl<ulong>(char *,uint,ulong)
mov rcx, [rsp+0E8h+var_E8]
mov edi, 0Fh
lea rax, [rsp+0E8h+var_D8]
cmp rcx, rax
jz short loc_C3576
mov rdi, [rsp+0E8h+var_D8]
loc_C3576:
mov r8, [rsp+0E8h+var_E0]
mov rsi, [rsp+0E8h+var_88]
mov rdx, [rsp+0E8h+var_80]
lea rax, [rdx+r8]
cmp rax, rdi
jbe short loc_C35A2
mov edi, 0Fh
cmp rsi, rbp
jz short loc_C359D
mov rdi, [rsp+0E8h+var_78]
loc_C359D:
cmp rax, rdi
jbe short loc_C35AC
loc_C35A2:
mov rdi, rsp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
jmp short loc_C35BA
loc_C35AC:
lea rdi, [rsp+0E8h+var_88]
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
loc_C35BA:
lea rsi, [rsp+0E8h+var_B8]
mov [rsp+0E8h+var_C8], rsi
mov rdx, [rax]
lea rcx, [rax+10h]
cmp rdx, rcx
jz short loc_C35DF
mov [rsp+0E8h+var_C8], rdx
mov rdx, [rcx]
mov [rsp+0E8h+var_B8], rdx
jmp short loc_C35E5
loc_C35DF:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rsi], xmm0
loc_C35E5:
mov rdx, rax
add rdx, 8
mov rsi, [rax+8]
mov [rsp+0E8h+var_C0], rsi
mov [rax], rcx
mov rax, r13
shl rax, 4
add r12, rax
mov qword ptr [rdx], 0
mov byte ptr [rcx], 0
mov rdi, r14
mov rsi, [rsp+0E8h+var_40]
mov rdx, r12
lea rcx, [rsp+0E8h+var_C8]
call _ZN15SchemaConverter5visitERKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEERKSA_; SchemaConverter::visit(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,std::string const&)
lea rdi, [rsp+0E8h+var_68]
mov rsi, r14
lea r12, [rsp+0E8h+var_B8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&)
mov rdi, [rsp+0E8h+var_A8]; void *
lea rax, [rsp+0E8h+var_98]
cmp rdi, rax
jz short loc_C3655
mov rsi, [rsp+0E8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C3655:
mov rdi, [rsp+0E8h+var_C8]; void *
cmp rdi, r12
jz short loc_C366C
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C366C:
mov rdi, [rsp+0E8h+var_88]; void *
cmp rdi, rbp
jz short loc_C3683
mov rsi, [rsp+0E8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C3683:
mov rdi, [rsp+0E8h+var_E8]; void *
lea rax, [rsp+0E8h+var_D8]
cmp rdi, rax
jz short loc_C369E
mov rsi, [rsp+0E8h+var_D8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C369E:
inc r13
mov rax, [rsp+0E8h+var_48]
mov r12, [rax]
mov rax, [rax+8]
sub rax, r12
sar rax, 4
cmp r13, rax
jb loc_C3496
loc_C36C0:
lea rbx, [rsp+0E8h+var_98]
mov [rbx-10h], rbx
lea rsi, asc_F3BA6+1; " | "
lea rdx, asc_F3BA6+4; ""
lea rdi, [rsp+0E8h+var_A8]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rsi, [rsp+0E8h+var_68]
lea rdx, [rsp+0E8h+var_A8]
mov r14, [rsp+0E8h+var_50]
mov rdi, r14
call _Z11string_joinRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EERKS5_; string_join(std::vector<std::string> const&,std::string const&)
mov rdi, [rsp+0E8h+var_A8]; void *
cmp rdi, rbx
jz short loc_C3715
mov rsi, [rsp+0E8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C3715:
lea rdi, [rsp+0E8h+var_68]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rax, r14
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, [rsp+arg_38]
cmp rdi, rbx
jz loc_C37D4
mov rsi, [rsp+arg_48]
jmp short loc_C37CC
jmp short $+2
loc_C3751:
mov r14, rax
jmp short loc_C37D4
jmp short $+2
loc_C3758:
mov r14, rax
jmp short loc_C37B9
mov r14, rax
jmp short loc_C37A2
mov r14, rax
jmp short loc_C3786
mov r14, rax
mov rdi, [rsp+arg_38]; void *
lea rax, [rsp+arg_48]
cmp rdi, rax
jz short loc_C3786
mov rsi, [rsp+arg_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C3786:
mov rdi, [rsp+arg_18]; void *
lea rax, [rsp+arg_28]
cmp rdi, rax
jz short loc_C37A2
mov rsi, [rsp+arg_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C37A2:
mov rdi, [rsp+arg_58]; void *
cmp rdi, rbx
jz short loc_C37B9
mov rsi, [rsp+arg_68]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C37B9:
mov rdi, [rsp+0]; void *
lea rax, [rsp+arg_8]
cmp rdi, rax
jz short loc_C37D4
mov rsi, [rsp+arg_8]
loc_C37CC:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C37D4:
lea rdi, [rsp+arg_78]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, r14
call __Unwind_Resume
|
long long SchemaConverter::_generate_union_rule(
long long a1,
long long a2,
long long a3,
long long *a4,
double a5,
double a6)
{
__m128d v6; // xmm0
long long v7; // r12
unsigned long long *v8; // rbp
unsigned long long v9; // r13
unsigned long long *v10; // rbx
long long v11; // rbp
char *v12; // rsi
unsigned int v13; // esi
unsigned long long v14; // rcx
bool v15; // cc
unsigned long long v16; // rdi
unsigned long long v17; // rdi
void **v18; // rax
__m128d *v19; // rcx
long long v20; // r14
void *v22; // [rsp+0h] [rbp-E8h] BYREF
long long v23; // [rsp+8h] [rbp-E0h]
_QWORD v24[2]; // [rsp+10h] [rbp-D8h] BYREF
void *v25[2]; // [rsp+20h] [rbp-C8h] BYREF
__m128d v26; // [rsp+30h] [rbp-B8h] BYREF
void *v27[2]; // [rsp+40h] [rbp-A8h] BYREF
_QWORD v28[2]; // [rsp+50h] [rbp-98h] BYREF
void *v29; // [rsp+60h] [rbp-88h] BYREF
long long v30; // [rsp+68h] [rbp-80h]
unsigned long long v31; // [rsp+70h] [rbp-78h] BYREF
__int128 v32; // [rsp+80h] [rbp-68h] BYREF
long long v33; // [rsp+90h] [rbp-58h]
long long v34; // [rsp+98h] [rbp-50h]
long long *v35; // [rsp+A0h] [rbp-48h]
long long v36; // [rsp+A8h] [rbp-40h]
long long v37; // [rsp+B0h] [rbp-38h]
v37 = a3;
v36 = a2;
v34 = a1;
v6 = 0LL;
v32 = 0LL;
v33 = 0LL;
v7 = *a4;
v35 = a4;
if ( a4[1] != v7 )
{
v8 = &v31;
v9 = 0LL;
do
{
v10 = v8;
v11 = *(_QWORD *)(v37 + 8);
v22 = v24;
std::string::_M_construct<char *>((long long)&v22, *(_BYTE **)v37, *(_QWORD *)v37 + v11);
v12 = "-";
if ( !v11 )
v12 = "alternative-";
std::string::append(&v22, v12);
v13 = 1;
v8 = v10;
if ( v9 >= 0xA )
{
v13 = 4;
v14 = v9;
while ( 1 )
{
if ( v14 <= 0x63 )
{
v13 -= 2;
goto LABEL_14;
}
if ( v14 <= 0x3E7 )
break;
if ( v14 < 0x2710 )
goto LABEL_14;
v13 += 4;
v15 = v14 <= 0x1869F;
v14 /= 0x2710uLL;
if ( v15 )
{
v13 -= 3;
goto LABEL_14;
}
}
--v13;
}
LABEL_14:
v29 = v10;
std::string::_M_construct(&v29, v13, 0LL);
std::__detail::__to_chars_10_impl<unsigned long>((char *)v29, v30, v9);
v16 = 15LL;
if ( v22 != v24 )
v16 = v24[0];
if ( v30 + v23 <= v16 )
goto LABEL_20;
v17 = 15LL;
if ( v29 != v10 )
v17 = v31;
if ( v30 + v23 <= v17 )
v18 = (void **)std::string::replace(&v29, 0LL, 0LL, v22, v23);
else
LABEL_20:
v18 = (void **)std::string::_M_append(&v22, v29, v30);
v25[0] = &v26;
v19 = (__m128d *)(v18 + 2);
if ( *v18 == v18 + 2 )
{
v6 = *v19;
v26 = *v19;
}
else
{
v25[0] = *v18;
v26.m128d_f64[0] = v19->m128d_f64[0];
}
v25[1] = v18[1];
*v18 = v19;
v18[1] = 0LL;
LOBYTE(v19->m128d_f64[0]) = 0;
SchemaConverter::visit(v27, v36, 16 * v9 + v7, (long long)v25, v6, a6);
std::vector<std::string>::emplace_back<std::string>((long long)&v32, (long long)v27);
if ( v27[0] != v28 )
operator delete(v27[0], v28[0] + 1LL);
if ( v25[0] != &v26 )
operator delete(v25[0], *(_QWORD *)&v26.m128d_f64[0] + 1LL);
if ( v29 != v10 )
operator delete(v29, v31 + 1);
if ( v22 != v24 )
operator delete(v22, v24[0] + 1LL);
++v9;
v7 = *v35;
}
while ( v9 < (v35[1] - *v35) >> 4 );
}
v27[0] = v28;
std::string::_M_construct<char const*>((long long)v27, " | ", (long long)"");
v20 = v34;
string_join(v34, (long long *)&v32, v27);
if ( v27[0] != v28 )
operator delete(v27[0], v28[0] + 1LL);
std::vector<std::string>::~vector((long long)&v32);
return v20;
}
|
_generate_union_rule:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV qword ptr [RSP + 0xb0],RDX
MOV qword ptr [RSP + 0xa8],RSI
MOV qword ptr [RSP + 0x98],RDI
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x80],XMM0
MOV qword ptr [RSP + 0x90],0x0
MOV R12,qword ptr [RCX]
MOV qword ptr [RSP + 0xa0],RCX
CMP qword ptr [RCX + 0x8],R12
JZ 0x001c36c0
LEA RBP,[RSP + 0x70]
XOR R13D,R13D
LEA R14,[RSP + 0x40]
LAB_001c3496:
MOV RBX,RBP
MOV RCX,qword ptr [RSP + 0xb0]
MOV RBP,qword ptr [RCX + 0x8]
LEA RAX,[RSP + 0x10]
MOV qword ptr [RSP],RAX
MOV RSI,qword ptr [RCX]
LEA RDX,[RSI + RBP*0x1]
LAB_001c34b5:
MOV R15,RSP
MOV RDI,R15
CALL 0x001219f6
TEST RBP,RBP
LEA RSI,[0x1f3947]
LEA RAX,[0x1f39f0]
CMOVZ RSI,RAX
LAB_001c34d5:
MOV RDI,R15
CALL 0x0011b0d0
MOV ESI,0x1
CMP R13,0xa
MOV RBP,RBX
JC 0x001c353a
MOV ESI,0x4
MOV RCX,R13
MOV RDI,0x346dc5d63886594b
LAB_001c34fd:
CMP RCX,0x63
JBE 0x001c3533
CMP RCX,0x3e7
JBE 0x001c3538
CMP RCX,0x2710
JC 0x001c353a
MOV RAX,RCX
MUL RDI
SHR RDX,0xb
ADD ESI,0x4
CMP RCX,0x1869f
MOV RCX,RDX
JA 0x001c34fd
ADD ESI,-0x3
JMP 0x001c353a
LAB_001c3533:
ADD ESI,-0x2
JMP 0x001c353a
LAB_001c3538:
DEC ESI
LAB_001c353a:
MOV ESI,ESI
MOV qword ptr [RSP + 0x60],RBP
LAB_001c3541:
LEA RDI,[RSP + 0x60]
XOR EDX,EDX
CALL 0x0011aa10
MOV RDI,qword ptr [RSP + 0x60]
MOV ESI,dword ptr [RSP + 0x68]
MOV RDX,R13
CALL 0x0015d2ed
MOV RCX,qword ptr [RSP]
MOV EDI,0xf
LEA RAX,[RSP + 0x10]
CMP RCX,RAX
JZ 0x001c3576
MOV RDI,qword ptr [RSP + 0x10]
LAB_001c3576:
MOV R8,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0x68]
LEA RAX,[RDX + R8*0x1]
CMP RAX,RDI
JBE 0x001c35a2
MOV EDI,0xf
CMP RSI,RBP
JZ 0x001c359d
MOV RDI,qword ptr [RSP + 0x70]
LAB_001c359d:
CMP RAX,RDI
JBE 0x001c35ac
LAB_001c35a2:
MOV RDI,RSP
CALL 0x0011a250
JMP 0x001c35ba
LAB_001c35ac:
LEA RDI,[RSP + 0x60]
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0011a9c0
LAB_001c35ba:
LEA RSI,[RSP + 0x30]
MOV qword ptr [RSP + 0x20],RSI
MOV RDX,qword ptr [RAX]
LEA RCX,[RAX + 0x10]
CMP RDX,RCX
JZ 0x001c35df
MOV qword ptr [RSP + 0x20],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x30],RDX
JMP 0x001c35e5
LAB_001c35df:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RSI],XMM0
LAB_001c35e5:
MOV RDX,RAX
ADD RDX,0x8
MOV RSI,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x28],RSI
MOV qword ptr [RAX],RCX
MOV RAX,R13
SHL RAX,0x4
ADD R12,RAX
MOV qword ptr [RDX],0x0
MOV byte ptr [RCX],0x0
LAB_001c360c:
MOV RDI,R14
MOV RSI,qword ptr [RSP + 0xa8]
MOV RDX,R12
LEA RCX,[RSP + 0x20]
CALL 0x001c0686
LAB_001c3624:
LEA RDI,[RSP + 0x80]
MOV RSI,R14
LEA R12,[RSP + 0x30]
CALL 0x001554de
MOV RDI,qword ptr [RSP + 0x40]
LEA RAX,[RSP + 0x50]
CMP RDI,RAX
JZ 0x001c3655
MOV RSI,qword ptr [RSP + 0x50]
INC RSI
CALL 0x0011a8c0
LAB_001c3655:
MOV RDI,qword ptr [RSP + 0x20]
CMP RDI,R12
JZ 0x001c366c
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011a8c0
LAB_001c366c:
MOV RDI,qword ptr [RSP + 0x60]
CMP RDI,RBP
JZ 0x001c3683
MOV RSI,qword ptr [RSP + 0x70]
INC RSI
CALL 0x0011a8c0
LAB_001c3683:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x001c369e
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0011a8c0
LAB_001c369e:
INC R13
MOV RAX,qword ptr [RSP + 0xa0]
MOV R12,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x8]
SUB RAX,R12
SAR RAX,0x4
CMP R13,RAX
JC 0x001c3496
LAB_001c36c0:
LEA RBX,[RSP + 0x50]
MOV qword ptr [RBX + -0x10],RBX
LAB_001c36c9:
LEA RSI,[0x1f3ba7]
LEA RDX,[0x1f3baa]
LEA RDI,[RSP + 0x40]
CALL 0x00121b26
LAB_001c36e1:
LEA RSI,[RSP + 0x80]
LEA RDX,[RSP + 0x40]
MOV R14,qword ptr [RSP + 0x98]
MOV RDI,R14
CALL 0x00171e99
LAB_001c36fe:
MOV RDI,qword ptr [RSP + 0x40]
CMP RDI,RBX
JZ 0x001c3715
MOV RSI,qword ptr [RSP + 0x50]
INC RSI
CALL 0x0011a8c0
LAB_001c3715:
LEA RDI,[RSP + 0x80]
CALL 0x00120b0a
MOV RAX,R14
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* SchemaConverter::_generate_union_rule(std::__cxx11::string const&,
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> > > const&) */
vector * SchemaConverter::_generate_union_rule(string *param_1,vector *param_2)
{
long *plVar1;
ulong uVar2;
bool bVar3;
string *psVar4;
char cVar5;
int8 *puVar6;
long *in_RCX;
ulong uVar7;
long *in_RDX;
char cVar8;
ulong uVar9;
ulong *local_e8;
long local_e0;
ulong local_d8 [2];
long *local_c8;
int8 local_c0;
long local_b8;
int8 uStack_b0;
long *local_a8 [2];
long local_98 [2];
ulong *local_88;
uint local_80;
int4 uStack_7c;
ulong local_78 [2];
int8 local_68;
int8 uStack_60;
int8 local_58;
string *local_50;
long *local_48;
vector *local_40;
long *local_38;
local_68 = 0;
uStack_60 = 0;
local_58 = 0;
local_50 = param_1;
local_40 = param_2;
if (in_RCX[1] != *in_RCX) {
uVar9 = 0;
local_48 = in_RCX;
local_38 = in_RDX;
do {
local_e8 = local_d8;
/* try { // try from 001c34b5 to 001c34bf has its CatchHandler @ 001c3751 */
std::__cxx11::string::_M_construct<char*>(&local_e8,*local_38,*local_38 + local_38[1]);
/* try { // try from 001c34d5 to 001c34dc has its CatchHandler @ 001c3756 */
std::__cxx11::string::append((char *)&local_e8);
cVar8 = '\x01';
if (9 < uVar9) {
uVar7 = uVar9;
cVar5 = '\x04';
do {
cVar8 = cVar5;
if (uVar7 < 100) {
cVar8 = cVar8 + -2;
goto LAB_001c353a;
}
if (uVar7 < 1000) {
cVar8 = cVar8 + -1;
goto LAB_001c353a;
}
if (uVar7 < 10000) goto LAB_001c353a;
bVar3 = 99999 < uVar7;
uVar7 = uVar7 / 10000;
cVar5 = cVar8 + '\x04';
} while (bVar3);
cVar8 = cVar8 + '\x01';
}
LAB_001c353a:
/* try { // try from 001c3541 to 001c354c has its CatchHandler @ 001c3758 */
local_88 = local_78;
std::__cxx11::string::_M_construct((ulong)&local_88,cVar8);
std::__detail::__to_chars_10_impl<unsigned_long>((char *)local_88,local_80,uVar9);
uVar7 = 0xf;
if (local_e8 != local_d8) {
uVar7 = local_d8[0];
}
uVar2 = CONCAT44(uStack_7c,local_80) + local_e0;
if (uVar7 < uVar2) {
uVar7 = 0xf;
if (local_88 != local_78) {
uVar7 = local_78[0];
}
if (uVar7 < uVar2) goto LAB_001c35a2;
puVar6 = (int8 *)
std::__cxx11::string::replace((ulong)&local_88,0,(char *)0x0,(ulong)local_e8);
}
else {
LAB_001c35a2:
/* try { // try from 001c35a2 to 001c35b9 has its CatchHandler @ 001c375d */
puVar6 = (int8 *)std::__cxx11::string::_M_append((char *)&local_e8,(ulong)local_88);
}
local_c8 = &local_b8;
plVar1 = puVar6 + 2;
if ((long *)*puVar6 == plVar1) {
local_b8 = *plVar1;
uStack_b0 = puVar6[3];
}
else {
local_b8 = *plVar1;
local_c8 = (long *)*puVar6;
}
local_c0 = puVar6[1];
*puVar6 = plVar1;
puVar6[1] = 0;
*(int1 *)plVar1 = 0;
/* try { // try from 001c360c to 001c3623 has its CatchHandler @ 001c3762 */
visit((basic_json *)local_a8,(string *)local_40);
/* try { // try from 001c3624 to 001c3638 has its CatchHandler @ 001c3767 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::
emplace_back<std::__cxx11::string>
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_68,
(string *)local_a8);
if (local_a8[0] != local_98) {
operator_delete(local_a8[0],local_98[0] + 1);
}
if (local_c8 != &local_b8) {
operator_delete(local_c8,local_b8 + 1);
}
if (local_88 != local_78) {
operator_delete(local_88,local_78[0] + 1);
}
if (local_e8 != local_d8) {
operator_delete(local_e8,local_d8[0] + 1);
}
uVar9 = uVar9 + 1;
} while (uVar9 < (ulong)(local_48[1] - *local_48 >> 4));
}
/* try { // try from 001c36c9 to 001c36e0 has its CatchHandler @ 001c374f */
local_a8[0] = local_98;
std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001f3ba7,&DAT_001f3baa);
psVar4 = local_50;
/* try { // try from 001c36e1 to 001c36fd has its CatchHandler @ 001c3737 */
string_join((vector *)local_50,(string *)&local_68);
if (local_a8[0] != local_98) {
operator_delete(local_a8[0],local_98[0] + 1);
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_68);
return (vector *)psVar4;
}
|
|
59,584
|
google::protobuf::Reflection::HasField(google::protobuf::Message const&, google::protobuf::FieldDescriptor const*) const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/generated_message_reflection.cc
|
bool Reflection::HasField(const Message& message,
const FieldDescriptor* field) const {
USAGE_CHECK_MESSAGE_TYPE(HasField);
USAGE_CHECK_SINGULAR(HasField);
CheckInvalidAccess(schema_, field);
if (field->is_extension()) {
return GetExtensionSet(message).Has(field->number());
} else {
if (schema_.InRealOneof(field)) {
return HasOneofField(message, field);
} else {
return HasBit(message, field);
}
}
}
|
O3
|
cpp
|
google::protobuf::Reflection::HasField(google::protobuf::Message const&, google::protobuf::FieldDescriptor const*) const:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rdi
cmpq %rdi, 0x20(%rdx)
je 0x659e3
leaq 0x542ec(%rip), %rdx # 0xb9cc0
leaq 0x542ee(%rip), %rcx # 0xb9cc9
movq %rbx, %rsi
callq 0x65a82
movb 0x1(%rbx), %al
movl %eax, %ecx
notb %cl
testb $0x60, %cl
jne 0x65a0b
movq (%r15), %rdi
leaq 0x542c7(%rip), %rdx # 0xb9cc0
leaq 0x542ec(%rip), %rcx # 0xb9cec
movq %rbx, %rsi
callq 0x65a82
movb 0x1(%rbx), %al
testb $0x8, %al
jne 0x65a35
testb $0x10, %al
sete %cl
movq 0x28(%rbx), %rax
testq %rax, %rax
sete %dl
orb %cl, %dl
je 0x65a4c
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x6ca12
movl 0x28(%r15), %eax
addq %rax, %r14
movl 0x4(%rbx), %esi
movq %r14, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x93df6
cmpl $0x1, 0x4(%rax)
jne 0x65a5c
movq 0x20(%rax), %rcx
testb $0x2, 0x1(%rcx)
jne 0x65a22
movq 0x10(%rax), %rcx
subq 0x30(%rcx), %rax
shrq $0x3, %rax
imull $0x33333334, %eax, %eax # imm = 0x33333334
addl 0x2c(%r15), %eax
movl (%r14,%rax), %eax
cmpl 0x4(%rbx), %eax
sete %al
popq %rbx
popq %r14
popq %r15
retq
|
_ZNK6google8protobuf10Reflection8HasFieldERKNS0_7MessageEPKNS0_15FieldDescriptorE:
push r15
push r14
push rbx
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov rdi, [rdi]; this
cmp [rdx+20h], rdi
jz short loc_659E3
lea rdx, aHasfield; "HasField"
lea rcx, aFieldDoesNotMa; "Field does not match message type."
mov rsi, rbx; google::protobuf::Descriptor *
call _ZN6google8protobuf12_GLOBAL__N_126ReportReflectionUsageErrorEPKNS0_10DescriptorEPKNS0_15FieldDescriptorEPKcS9_; google::protobuf::`anonymous namespace'::ReportReflectionUsageError(google::protobuf::Descriptor const*,google::protobuf::FieldDescriptor const*,char const*,char const*)
loc_659E3:
mov al, [rbx+1]
mov ecx, eax
not cl
test cl, 60h
jnz short loc_65A0B
mov rdi, [r15]; this
lea rdx, aHasfield; "HasField"
lea rcx, aFieldIsRepeate; "Field is repeated; the method requires "...
mov rsi, rbx; google::protobuf::Descriptor *
call _ZN6google8protobuf12_GLOBAL__N_126ReportReflectionUsageErrorEPKNS0_10DescriptorEPKNS0_15FieldDescriptorEPKcS9_; google::protobuf::`anonymous namespace'::ReportReflectionUsageError(google::protobuf::Descriptor const*,google::protobuf::FieldDescriptor const*,char const*,char const*)
mov al, [rbx+1]
loc_65A0B:
test al, 8
jnz short loc_65A35
test al, 10h
setz cl
mov rax, [rbx+28h]
test rax, rax
setz dl
or dl, cl
jz short loc_65A4C
loc_65A22:
mov rdi, r15; this
mov rsi, r14; google::protobuf::Message *
mov rdx, rbx; google::protobuf::FieldDescriptor *
pop rbx
pop r14
pop r15
jmp _ZNK6google8protobuf10Reflection6HasBitERKNS0_7MessageEPKNS0_15FieldDescriptorE; google::protobuf::Reflection::HasBit(google::protobuf::Message const&,google::protobuf::FieldDescriptor const*)
loc_65A35:
mov eax, [r15+28h]
add r14, rax
mov esi, [rbx+4]; int
mov rdi, r14; this
pop rbx
pop r14
pop r15
jmp _ZNK6google8protobuf8internal12ExtensionSet3HasEi; google::protobuf::internal::ExtensionSet::Has(int)
loc_65A4C:
cmp dword ptr [rax+4], 1
jnz short loc_65A5C
mov rcx, [rax+20h]
test byte ptr [rcx+1], 2
jnz short loc_65A22
loc_65A5C:
mov rcx, [rax+10h]
sub rax, [rcx+30h]
shr rax, 3
imul eax, 33333334h
add eax, [r15+2Ch]
mov eax, [r14+rax]
cmp eax, [rbx+4]
setz al
pop rbx
pop r14
pop r15
retn
|
char google::protobuf::Reflection::HasField(
google::protobuf::_anonymous_namespace_ **this,
const google::protobuf::Message *a2,
const google::protobuf::FieldDescriptor *a3,
long long a4,
const char *a5)
{
google::protobuf::_anonymous_namespace_ *v7; // rdi
char v8; // al
bool v9; // cl
long long v10; // rax
v7 = *this;
if ( *((google::protobuf::_anonymous_namespace_ **)a3 + 4) != v7 )
google::protobuf::`anonymous namespace'::ReportReflectionUsageError(
v7,
a3,
(const google::protobuf::FieldDescriptor *)"HasField",
"Field does not match message type.",
a5);
v8 = *((_BYTE *)a3 + 1);
if ( (~v8 & 0x60) == 0 )
{
google::protobuf::`anonymous namespace'::ReportReflectionUsageError(
*this,
a3,
(const google::protobuf::FieldDescriptor *)"HasField",
"Field is repeated; the method requires a singular field.",
a5);
v8 = *((_BYTE *)a3 + 1);
}
if ( (v8 & 8) != 0 )
return google::protobuf::internal::ExtensionSet::Has(
(const google::protobuf::Message *)((char *)a2 + *((unsigned int *)this + 10)),
*((_DWORD *)a3 + 1));
v9 = (v8 & 0x10) == 0;
v10 = *((_QWORD *)a3 + 5);
if ( v9 || v10 == 0 || *(_DWORD *)(v10 + 4) == 1 && (*(_BYTE *)(*(_QWORD *)(v10 + 32) + 1LL) & 2) != 0 )
return google::protobuf::Reflection::HasBit((google::protobuf::Reflection *)this, a2, a3);
else
return *(_DWORD *)((char *)a2
+ 858993460
* (unsigned int)((unsigned long long)(v10 - *(_QWORD *)(*(_QWORD *)(v10 + 16) + 48LL)) >> 3)
+ *((_DWORD *)this + 11)) == *((_DWORD *)a3 + 1);
}
|
HasField:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOV RDI,qword ptr [RDI]
CMP qword ptr [RDX + 0x20],RDI
JZ 0x001659e3
LEA RDX,[0x1b9cc0]
LEA RCX,[0x1b9cc9]
MOV RSI,RBX
CALL 0x00165a82
LAB_001659e3:
MOV AL,byte ptr [RBX + 0x1]
MOV ECX,EAX
NOT CL
TEST CL,0x60
JNZ 0x00165a0b
MOV RDI,qword ptr [R15]
LEA RDX,[0x1b9cc0]
LEA RCX,[0x1b9cec]
MOV RSI,RBX
CALL 0x00165a82
MOV AL,byte ptr [RBX + 0x1]
LAB_00165a0b:
TEST AL,0x8
JNZ 0x00165a35
TEST AL,0x10
SETZ CL
MOV RAX,qword ptr [RBX + 0x28]
TEST RAX,RAX
SETZ DL
OR DL,CL
JZ 0x00165a4c
LAB_00165a22:
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
POP RBX
POP R14
POP R15
JMP 0x0016ca12
LAB_00165a35:
MOV EAX,dword ptr [R15 + 0x28]
ADD R14,RAX
MOV ESI,dword ptr [RBX + 0x4]
MOV RDI,R14
POP RBX
POP R14
POP R15
JMP 0x00193df6
LAB_00165a4c:
CMP dword ptr [RAX + 0x4],0x1
JNZ 0x00165a5c
MOV RCX,qword ptr [RAX + 0x20]
TEST byte ptr [RCX + 0x1],0x2
JNZ 0x00165a22
LAB_00165a5c:
MOV RCX,qword ptr [RAX + 0x10]
SUB RAX,qword ptr [RCX + 0x30]
SHR RAX,0x3
IMUL EAX,EAX,0x33333334
ADD EAX,dword ptr [R15 + 0x2c]
MOV EAX,dword ptr [R14 + RAX*0x1]
CMP EAX,dword ptr [RBX + 0x4]
SETZ AL
POP RBX
POP R14
POP R15
RET
|
/* google::protobuf::Reflection::HasField(google::protobuf::Message const&,
google::protobuf::FieldDescriptor const*) const */
ulong __thiscall
google::protobuf::Reflection::HasField(Reflection *this,Message *param_1,FieldDescriptor *param_2)
{
long lVar1;
FieldDescriptor FVar2;
ulong uVar3;
if (*(Descriptor **)(param_2 + 0x20) != *(Descriptor **)this) {
(anonymous_namespace)::ReportReflectionUsageError
(*(Descriptor **)this,param_2,"HasField","Field does not match message type.");
}
FVar2 = param_2[1];
if ((~(byte)FVar2 & 0x60) == 0) {
(anonymous_namespace)::ReportReflectionUsageError
(*(Descriptor **)this,param_2,"HasField",
"Field is repeated; the method requires a singular field.");
FVar2 = param_2[1];
}
if (((byte)FVar2 & 8) == 0) {
lVar1 = *(long *)(param_2 + 0x28);
if ((lVar1 != 0 && ((byte)FVar2 & 0x10) != 0) &&
((*(int *)(lVar1 + 4) != 1 || ((*(byte *)(*(long *)(lVar1 + 0x20) + 1) & 2) == 0)))) {
return (ulong)CONCAT31((int3)((uint)*(int *)(param_1 +
(uint)((int)((ulong)(lVar1 - *(long *)(*(long *)(
lVar1 + 0x10) + 0x30)) >> 3) * 0x33333334 +
*(int *)(this + 0x2c))) >> 8),
*(int *)(param_1 +
(uint)((int)((ulong)(lVar1 - *(long *)(*(long *)(lVar1 + 0x10)
+ 0x30)) >> 3) *
0x33333334 + *(int *)(this + 0x2c))) ==
*(int *)(param_2 + 4));
}
uVar3 = HasBit(this,param_1,param_2);
return uVar3;
}
uVar3 = internal::ExtensionSet::Has
((ExtensionSet *)(param_1 + *(uint *)(this + 0x28)),*(int *)(param_2 + 4));
return uVar3;
}
|
|
59,585
|
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>>::token_type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
monkey531[P]llama/common/json.hpp
|
std::string exception_message(const token_type expected, const std::string& context)
{
std::string error_msg = "syntax error ";
if (!context.empty())
{
error_msg += concat("while parsing ", context, ' ');
}
error_msg += "- ";
if (last_token == token_type::parse_error)
{
error_msg += concat(m_lexer.get_error_message(), "; last read: '",
m_lexer.get_token_string(), '\'');
}
else
{
error_msg += concat("unexpected ", lexer_t::token_type_name(last_token));
}
if (expected != token_type::uninitialized)
{
error_msg += concat("; expected ", lexer_t::token_type_name(expected));
}
return error_msg;
}
|
O0
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>>::token_type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
subq $0x128, %rsp # imm = 0x128
movq %rdi, 0x18(%rsp)
movq %rdi, %rax
movq %rax, 0x8(%rsp)
movq %rdi, 0x120(%rsp)
movq %rsi, 0x118(%rsp)
movl %edx, 0x114(%rsp)
movq %rcx, 0x108(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x10(%rsp)
movb $0x0, 0x107(%rsp)
leaq 0x106(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x5b0e0
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rdx
leaq 0x1675be(%rip), %rsi # 0x210539
callq 0x630d0
jmp 0xa8f82
leaq 0x106(%rsp), %rdi
callq 0x5b560
movq 0x108(%rsp), %rdi
callq 0x5a4e0
testb $0x1, %al
jne 0xa905a
movq 0x108(%rsp), %rdx
movb $0x20, 0xcf(%rsp)
leaq 0x17391b(%rip), %rsi # 0x21c8d6
leaq 0xd0(%rsp), %rdi
leaq 0xcf(%rsp), %rcx
callq 0xbb030
jmp 0xa8fd2
movq 0x18(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x5a150
jmp 0xa8fe6
leaq 0xd0(%rsp), %rdi
callq 0x5b588
jmp 0xa905a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0x106(%rsp), %rdi
callq 0x5b560
jmp 0xa9262
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
jmp 0xa9258
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0x5b588
jmp 0xa9258
movq 0x18(%rsp), %rdi
leaq 0x1674e1(%rip), %rsi # 0x210547
callq 0x5a220
jmp 0xa906d
movq 0x10(%rsp), %rax
cmpl $0xe, 0x20(%rax)
jne 0xa9155
movq 0x10(%rsp), %rdi
addq $0x28, %rdi
movq %rdi, (%rsp)
callq 0xbb1c0
movq (%rsp), %rsi
movq %rax, 0xa0(%rsp)
leaq 0x80(%rsp), %rdi
callq 0xa8b60
jmp 0xa90a9
movb $0x27, 0x7f(%rsp)
leaq 0x167495(%rip), %rdx # 0x21054a
leaq 0xa8(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0x80(%rsp), %rcx
leaq 0x7f(%rsp), %r8
callq 0xbb0f0
jmp 0xa90d9
movq 0x18(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x5a150
jmp 0xa90ed
leaq 0xa8(%rsp), %rdi
callq 0x5b588
leaq 0x80(%rsp), %rdi
callq 0x5b588
jmp 0xa91bf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
jmp 0xa9143
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0xa8(%rsp), %rdi
callq 0x5b588
leaq 0x80(%rsp), %rdi
callq 0x5b588
jmp 0xa9258
movq 0x10(%rsp), %rax
movl 0x20(%rax), %edi
callq 0xbb280
movq %rax, 0x50(%rsp)
leaq 0x1673eb(%rip), %rsi # 0x210559
leaq 0x58(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0xbb1d0
jmp 0xa917f
movq 0x18(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x5a150
jmp 0xa9190
leaq 0x58(%rsp), %rdi
callq 0x5b588
jmp 0xa91bf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x5b588
jmp 0xa9258
cmpl $0x0, 0x114(%rsp)
je 0xa922f
movl 0x114(%rsp), %edi
callq 0xbb280
movq %rax, 0x28(%rsp)
leaq 0x167384(%rip), %rsi # 0x210565
leaq 0x30(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0xbb1d0
jmp 0xa91f2
movq 0x18(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x5a150
jmp 0xa9203
leaq 0x30(%rsp), %rdi
callq 0x5b588
jmp 0xa922f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x5b588
jmp 0xa9258
movb $0x1, 0x107(%rsp)
testb $0x1, 0x107(%rsp)
jne 0xa924b
movq 0x18(%rsp), %rdi
callq 0x5b588
movq 0x8(%rsp), %rax
addq $0x128, %rsp # imm = 0x128
retq
movq 0x18(%rsp), %rdi
callq 0x5b588
movq 0xf8(%rsp), %rdi
callq 0x5aba0
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_:
sub rsp, 128h
mov [rsp+128h+var_110], rdi; __int64
mov rax, rdi
mov [rsp+128h+var_120], rax; void *
mov [rsp+128h+var_8], rdi
mov qword ptr [rsp+128h+var_10], rsi
mov [rsp+128h+var_14], edx
mov [rsp+128h+var_22+2], rcx
mov rax, qword ptr [rsp+128h+var_10]
mov qword ptr [rsp+128h+var_118], rax; int
mov byte ptr [rsp+128h+var_22+1], 0
lea rdi, [rsp+128h+var_22]
mov [rsp+128h+var_108], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rsp+128h+var_110]
mov rdx, [rsp+128h+var_108]
lea rsi, aSyntaxError; "syntax error "
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_A8F82:
lea rdi, [rsp+128h+var_22]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
mov rdi, [rsp+128h+var_22+2]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz loc_A905A
mov rdx, [rsp+128h+var_22+2]; int
mov byte ptr [rsp+128h+var_59], 20h ; ' '
lea rsi, aSyntaxErrorWhi+0Dh; int
lea rdi, [rsp+128h+var_59+1]; int
lea rcx, [rsp+128h+var_59]; int
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA15_KcRKS8_cEEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[15],std::string const&,char>(char const(&)[15],std::string const&,char &&)
jmp short $+2
loc_A8FD2:
mov rdi, [rsp+128h+var_110]
lea rsi, [rsp+128h+var_59+1]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_; std::string::operator+=(std::string const&)
jmp short $+2
loc_A8FE6:
lea rdi, [rsp+128h+var_59+1]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_A905A
mov rcx, rax
mov eax, edx
mov [rsp+arg_F0], rcx
mov [rsp+arg_EC], eax
lea rdi, [rsp+arg_FE]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_A9262
mov rcx, rax
mov eax, edx
mov [rsp+arg_F0], rcx
mov [rsp+arg_EC], eax
jmp loc_A9258
mov rcx, rax
mov eax, edx
mov [rsp+arg_F0], rcx
mov [rsp+arg_EC], eax
lea rdi, [rsp+arg_C8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_A9258
loc_A905A:
mov rdi, [rsp+128h+var_110]
lea rsi, asc_210547; "- "
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc; std::string::operator+=(char const*)
jmp short $+2
loc_A906D:
mov rax, qword ptr [rsp+128h+var_118]
cmp dword ptr [rax+20h], 0Eh
jnz loc_A9155
mov rdi, qword ptr [rsp+128h+var_118]
add rdi, 28h ; '('
mov qword ptr [rsp+128h+var_128], rdi; int
call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17get_error_messageEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_error_message(void)
mov rsi, qword ptr [rsp+128h+var_128]; int
mov [rsp+128h+var_88], rax
lea rdi, [rsp+128h+var_A8]; int
call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void)
jmp short $+2
loc_A90A9:
mov [rsp+128h+var_A9], 27h ; '''
lea rdx, aLastRead; "; last read: '"
lea rdi, [rsp+128h+var_80]
lea rsi, [rsp+128h+var_88]
lea rcx, [rsp+128h+var_A8]
lea r8, [rsp+128h+var_A9]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJPKcRA15_S9_S8_cEEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>(char const*,char const(&)[15],std::string,char &&)
jmp short $+2
loc_A90D9:
mov rdi, [rsp+128h+var_110]
lea rsi, [rsp+128h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_; std::string::operator+=(std::string const&)
jmp short $+2
loc_A90ED:
lea rdi, [rsp+128h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+128h+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_A91BF
mov rcx, rax
mov eax, edx
mov [rsp+arg_F0], rcx
mov [rsp+arg_EC], eax
jmp short loc_A9143
mov rcx, rax
mov eax, edx
mov [rsp+arg_F0], rcx
mov [rsp+arg_EC], eax
lea rdi, [rsp+arg_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_A9143:
lea rdi, [rsp+arg_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_A9258
loc_A9155:
mov rax, qword ptr [rsp+128h+var_118]
mov edi, [rax+20h]
call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type)
mov qword ptr [rsp+128h+var_D8], rax
lea rsi, aUnexpected; "unexpected "
lea rdi, [rsp+128h+var_D0]; int
lea rdx, [rsp+128h+var_D8]; int
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA12_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[12],char const*>(char const(&)[12],char const* &&)
jmp short $+2
loc_A917F:
mov rdi, [rsp+128h+var_110]
lea rsi, [rsp+128h+var_D0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_; std::string::operator+=(std::string const&)
jmp short $+2
loc_A9190:
lea rdi, [rsp+128h+var_D0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_A91BF
mov rcx, rax
mov eax, edx
mov [rsp+arg_F0], rcx
mov [rsp+arg_EC], eax
lea rdi, [rsp+arg_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_A9258
loc_A91BF:
cmp [rsp+128h+var_14], 0
jz short loc_A922F
mov edi, [rsp+128h+var_14]
call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type)
mov qword ptr [rsp+128h+var_100], rax
lea rsi, aExpected; "; expected "
lea rdi, [rsp+128h+var_F8]; int
lea rdx, [rsp+128h+var_100]; int
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA12_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[12],char const*>(char const(&)[12],char const* &&)
jmp short $+2
loc_A91F2:
mov rdi, [rsp+128h+var_110]
lea rsi, [rsp+128h+var_F8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_; std::string::operator+=(std::string const&)
jmp short $+2
loc_A9203:
lea rdi, [rsp+128h+var_F8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_A922F
mov rcx, rax
mov eax, edx
mov [rsp+arg_F0], rcx
mov [rsp+arg_EC], eax
lea rdi, [rsp+arg_28]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_A9258
loc_A922F:
mov byte ptr [rsp+128h+var_22+1], 1
test byte ptr [rsp+128h+var_22+1], 1
jnz short loc_A924B
mov rdi, [rsp+128h+var_110]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_A924B:
mov rax, [rsp+128h+var_120]
add rsp, 128h
retn
loc_A9258:
mov rdi, [rsp+arg_10]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_A9262:
mov rdi, [rsp+arg_F0]
call __Unwind_Resume
|
void * nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message(
long long a1,
long long a2,
unsigned int a3,
long long a4)
{
int v4; // r8d
int v5; // r9d
int v6; // r9d
int v7; // ecx
int v8; // r8d
int v9; // r9d
int v10; // ecx
int v11; // r8d
int v12; // r9d
void *v14; // [rsp+0h] [rbp-128h]
int v15; // [rsp+0h] [rbp-128h]
void *v16; // [rsp+8h] [rbp-120h]
void *v17; // [rsp+8h] [rbp-120h]
int v18[2]; // [rsp+10h] [rbp-118h]
int v19; // [rsp+10h] [rbp-118h]
void *v20; // [rsp+18h] [rbp-110h]
void *v21; // [rsp+18h] [rbp-110h]
void *v22; // [rsp+18h] [rbp-110h]
int v23[2]; // [rsp+28h] [rbp-100h] BYREF
int v24[8]; // [rsp+30h] [rbp-F8h] BYREF
int v25[2]; // [rsp+50h] [rbp-D8h] BYREF
int v26[9]; // [rsp+58h] [rbp-D0h] BYREF
char v27; // [rsp+7Fh] [rbp-A9h] BYREF
int v28[8]; // [rsp+80h] [rbp-A8h] BYREF
long long error_message; // [rsp+A0h] [rbp-88h] BYREF
_BYTE v30[39]; // [rsp+A8h] [rbp-80h] BYREF
char v31; // [rsp+CFh] [rbp-59h] BYREF
_BYTE v32[54]; // [rsp+D0h] [rbp-58h] BYREF
_BYTE v33[14]; // [rsp+106h] [rbp-22h] BYREF
unsigned int v34; // [rsp+114h] [rbp-14h]
int v35[2]; // [rsp+118h] [rbp-10h]
long long v36; // [rsp+120h] [rbp-8h]
v20 = (void *)a1;
v16 = (void *)a1;
v36 = a1;
*(_QWORD *)v35 = a2;
v34 = a3;
*(_QWORD *)&v33[2] = a4;
*(_QWORD *)v18 = a2;
v33[1] = 0;
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>(a1, (long long)"syntax error ", (long long)v33);
std::allocator<char>::~allocator(v33);
if ( (std::string::empty(*(_QWORD *)&v33[2]) & 1) == 0 )
{
v31 = 32;
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[15],std::string const&,char>(
(int)v32,
(int)"while parsing ",
*(int *)&v33[2],
(int)&v31,
v4,
v5,
v14,
a1,
a2,
a1,
(long long)v33);
std::string::operator+=(v20, v32);
std::string::~string(v32);
}
std::string::operator+=(v20, "- ");
if ( *(_DWORD *)(*(_QWORD *)v18 + 32LL) == 14 )
{
error_message = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_error_message();
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(
(long long)v28,
*(_QWORD *)v18 + 40LL);
v27 = 39;
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>(
(unsigned int)v30,
(unsigned int)&error_message,
(unsigned int)"; last read: '",
(unsigned int)v28,
(unsigned int)&v27,
v6,
v18[0] + 40,
(_DWORD)v16,
v18[0],
(long long)v20);
std::string::operator+=(v21, v30);
std::string::~string(v30);
std::string::~string(v28);
}
else
{
*(_QWORD *)v25 = nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::token_type_name(*(unsigned int *)(*(_QWORD *)v18 + 32LL));
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[12],char const*>(
(int)v26,
(int)"unexpected ",
(int)v25,
v7,
v8,
v9,
(int)v14,
v16,
v18[0],
(long long)v20);
std::string::operator+=(v21, v26);
std::string::~string(v26);
}
if ( v34 )
{
*(_QWORD *)v23 = nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::token_type_name(v34);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[12],char const*>(
(int)v24,
(int)"; expected ",
(int)v23,
v10,
v11,
v12,
v15,
v17,
v19,
(long long)v21);
std::string::operator+=(v22, v24);
std::string::~string(v24);
}
return v17;
}
|
exception_message:
SUB RSP,0x128
MOV qword ptr [RSP + 0x18],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x120],RDI
MOV qword ptr [RSP + 0x118],RSI
MOV dword ptr [RSP + 0x114],EDX
MOV qword ptr [RSP + 0x108],RCX
MOV RAX,qword ptr [RSP + 0x118]
MOV qword ptr [RSP + 0x10],RAX
MOV byte ptr [RSP + 0x107],0x0
LEA RDI,[RSP + 0x106]
MOV qword ptr [RSP + 0x20],RDI
CALL 0x0015b0e0
MOV RDI,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x20]
LAB_001a8f74:
LEA RSI,[0x310539]
CALL 0x001630d0
JMP 0x001a8f82
LAB_001a8f82:
LEA RDI,[RSP + 0x106]
CALL 0x0015b560
MOV RDI,qword ptr [RSP + 0x108]
CALL 0x0015a4e0
TEST AL,0x1
JNZ 0x001a905a
MOV RDX,qword ptr [RSP + 0x108]
MOV byte ptr [RSP + 0xcf],0x20
LAB_001a8fb4:
LEA RSI,[0x31c8d6]
LEA RDI,[RSP + 0xd0]
LEA RCX,[RSP + 0xcf]
CALL 0x001bb030
JMP 0x001a8fd2
LAB_001a8fd2:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[RSP + 0xd0]
CALL 0x0015a150
JMP 0x001a8fe6
LAB_001a8fe6:
LEA RDI,[RSP + 0xd0]
CALL 0x0015b588
JMP 0x001a905a
LAB_001a905a:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[0x310547]
CALL 0x0015a220
JMP 0x001a906d
LAB_001a906d:
MOV RAX,qword ptr [RSP + 0x10]
CMP dword ptr [RAX + 0x20],0xe
JNZ 0x001a9155
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x28
MOV qword ptr [RSP],RDI
CALL 0x001bb1c0
MOV RSI,qword ptr [RSP]
MOV qword ptr [RSP + 0xa0],RAX
LEA RDI,[RSP + 0x80]
CALL 0x001a8b60
JMP 0x001a90a9
LAB_001a90a9:
MOV byte ptr [RSP + 0x7f],0x27
LAB_001a90ae:
LEA RDX,[0x31054a]
LEA RDI,[RSP + 0xa8]
LEA RSI,[RSP + 0xa0]
LEA RCX,[RSP + 0x80]
LEA R8,[RSP + 0x7f]
CALL 0x001bb0f0
JMP 0x001a90d9
LAB_001a90d9:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[RSP + 0xa8]
CALL 0x0015a150
JMP 0x001a90ed
LAB_001a90ed:
LEA RDI,[RSP + 0xa8]
CALL 0x0015b588
LEA RDI,[RSP + 0x80]
CALL 0x0015b588
JMP 0x001a91bf
LAB_001a9155:
MOV RAX,qword ptr [RSP + 0x10]
MOV EDI,dword ptr [RAX + 0x20]
CALL 0x001bb280
MOV qword ptr [RSP + 0x50],RAX
LAB_001a9167:
LEA RSI,[0x310559]
LEA RDI,[RSP + 0x58]
LEA RDX,[RSP + 0x50]
CALL 0x001bb1d0
JMP 0x001a917f
LAB_001a917f:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[RSP + 0x58]
CALL 0x0015a150
JMP 0x001a9190
LAB_001a9190:
LEA RDI,[RSP + 0x58]
CALL 0x0015b588
JMP 0x001a91bf
LAB_001a91bf:
CMP dword ptr [RSP + 0x114],0x0
JZ 0x001a922f
MOV EDI,dword ptr [RSP + 0x114]
CALL 0x001bb280
MOV qword ptr [RSP + 0x28],RAX
LAB_001a91da:
LEA RSI,[0x310565]
LEA RDI,[RSP + 0x30]
LEA RDX,[RSP + 0x28]
CALL 0x001bb1d0
JMP 0x001a91f2
LAB_001a91f2:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[RSP + 0x30]
CALL 0x0015a150
LAB_001a9201:
JMP 0x001a9203
LAB_001a9203:
LEA RDI,[RSP + 0x30]
CALL 0x0015b588
JMP 0x001a922f
LAB_001a922f:
MOV byte ptr [RSP + 0x107],0x1
TEST byte ptr [RSP + 0x107],0x1
JNZ 0x001a924b
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0015b588
LAB_001a924b:
MOV RAX,qword ptr [RSP + 0x8]
ADD RSP,0x128
RET
|
/* WARNING: Removing unreachable block (ram,0x001a9241) */
/* nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > >
>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::token_type, std::__cxx11::string const&) */
string * nlohmann::json_abi_v3_11_3::detail::
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::exception_message(string *param_1,long param_2,int param_3,string *param_4)
{
ulong uVar1;
char *local_100;
detail local_f8 [32];
char *local_d8;
detail local_d0 [39];
char local_a9;
string local_a8 [32];
char *local_88;
detail local_80 [39];
char local_59;
detail local_58 [54];
allocator local_22;
int1 local_21;
string *local_20;
int local_14;
long local_10;
string *local_8;
local_21 = 0;
local_20 = param_4;
local_14 = param_3;
local_10 = param_2;
local_8 = param_1;
std::allocator<char>::allocator();
/* try { // try from 001a8f74 to 001a8f7f has its CatchHandler @ 001a8ff5 */
std::__cxx11::string::string<std::allocator<char>>(param_1,"syntax error ",&local_22);
std::allocator<char>::~allocator((allocator<char> *)&local_22);
uVar1 = std::__cxx11::string::empty();
if ((uVar1 & 1) == 0) {
local_59 = ' ';
/* try { // try from 001a8fb4 to 001a8fcf has its CatchHandler @ 001a901b */
concat<std::__cxx11::string,char_const(&)[15],std::__cxx11::string_const&,char>
(local_58,"while parsing ",local_20,&local_59);
/* try { // try from 001a8fd2 to 001a8fe3 has its CatchHandler @ 001a9034 */
std::__cxx11::string::operator+=(param_1,(string *)local_58);
std::__cxx11::string::~string((string *)local_58);
}
/* try { // try from 001a905a to 001a90a6 has its CatchHandler @ 001a901b */
std::__cxx11::string::operator+=(param_1,"- ");
if (*(int *)(param_2 + 0x20) == 0xe) {
local_88 = (char *)lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::get_error_message((lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*)(param_2 + 0x28));
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::get_token_string();
local_a9 = '\'';
/* try { // try from 001a90ae to 001a90d6 has its CatchHandler @ 001a910c */
concat<std::__cxx11::string,char_const*,char_const(&)[15],std::__cxx11::string,char>
(local_80,&local_88,"; last read: \'",local_a8,&local_a9);
/* try { // try from 001a90d9 to 001a90ea has its CatchHandler @ 001a9122 */
std::__cxx11::string::operator+=(param_1,(string *)local_80);
std::__cxx11::string::~string((string *)local_80);
std::__cxx11::string::~string(local_a8);
}
else {
local_d8 = (char *)lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::token_type_name(*(int4 *)(param_2 + 0x20));
/* try { // try from 001a9167 to 001a917c has its CatchHandler @ 001a901b */
concat<std::__cxx11::string,char_const(&)[12],char_const*>(local_d0,"unexpected ",&local_d8);
/* try { // try from 001a917f to 001a918d has its CatchHandler @ 001a919c */
std::__cxx11::string::operator+=(param_1,(string *)local_d0);
std::__cxx11::string::~string((string *)local_d0);
}
if (local_14 != 0) {
local_100 = (char *)lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::token_type_name(local_14);
/* try { // try from 001a91da to 001a91ef has its CatchHandler @ 001a901b */
concat<std::__cxx11::string,char_const(&)[12],char_const*>(local_f8,"; expected ",&local_100);
/* try { // try from 001a91f2 to 001a9200 has its CatchHandler @ 001a920f */
std::__cxx11::string::operator+=(param_1,(string *)local_f8);
std::__cxx11::string::~string((string *)local_f8);
}
return param_1;
}
|
|
59,586
|
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>>::token_type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
monkey531[P]llama/common/json.hpp
|
std::string exception_message(const token_type expected, const std::string& context)
{
std::string error_msg = "syntax error ";
if (!context.empty())
{
error_msg += concat("while parsing ", context, ' ');
}
error_msg += "- ";
if (last_token == token_type::parse_error)
{
error_msg += concat(m_lexer.get_error_message(), "; last read: '",
m_lexer.get_token_string(), '\'');
}
else
{
error_msg += concat("unexpected ", lexer_t::token_type_name(last_token));
}
if (expected != token_type::uninitialized)
{
error_msg += concat("; expected ", lexer_t::token_type_name(expected));
}
return error_msg;
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>>::token_type, 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 $0x58, %rsp
movq %rcx, %r15
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
leaq 0x92647(%rip), %rsi # 0xecf7a
leaq 0x9264d(%rip), %rdx # 0xecf87
callq 0x21af4
movq 0x8(%r15), %rsi
testq %rsi, %rsi
je 0x5a9c6
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
addq $0xf, %rsi
leaq 0x8(%rsp), %rdi
callq 0x1ada0
leaq 0x92615(%rip), %rsi # 0xecf88
leaq 0x8(%rsp), %rdi
callq 0x1b120
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x8(%rsp), %rdi
callq 0x1a270
leaq 0x8(%rsp), %rdi
movl $0x20, %esi
callq 0x1a770
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x1a270
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x5a9c6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8f0
leaq 0x925ca(%rip), %rsi # 0xecf97
movq %rbx, %rdi
callq 0x1b120
movl 0x20(%r14), %edi
cmpl $0xe, %edi
jne 0x5aa69
movq 0x98(%r14), %rax
addq $0x28, %r14
movq %rax, 0x30(%rsp)
leaq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x5a650
leaq 0x2f(%rsp), %r8
movb $0x27, (%r8)
leaq 0x9258b(%rip), %rdx # 0xecf9a
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x38(%rsp), %rcx
callq 0x60c88
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x1a270
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5aa50
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8f0
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5aae3
movq 0x48(%rsp), %rsi
jmp 0x5aadb
callq 0x60d4a
movq %rax, %r14
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movq %rax, %rdi
callq 0x1a400
leaq 0xb(%rax), %rsi
leaq 0x8(%rsp), %rdi
callq 0x1ada0
leaq 0x92506(%rip), %rsi # 0xecfa9
leaq 0x8(%rsp), %rdi
callq 0x1b120
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x1b120
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x1a270
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5aae3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8f0
testl %ebp, %ebp
je 0x5ab63
movl %ebp, %edi
callq 0x60d4a
movq %rax, %r14
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movq %rax, %rdi
callq 0x1a400
leaq 0xb(%rax), %rsi
leaq 0x8(%rsp), %rdi
callq 0x1ada0
leaq 0x92492(%rip), %rsi # 0xecfb5
leaq 0x8(%rsp), %rdi
callq 0x1b120
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x1b120
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x1a270
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5ab63
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8f0
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5abbc
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5ab9a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8f0
jmp 0x5ab9a
movq %rax, %r14
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5abe5
movq 0x48(%rsp), %rsi
jmp 0x5abdd
jmp 0x5abb5
jmp 0x5abbc
jmp 0x5abcb
movq %rax, %r14
jmp 0x5abe5
jmp 0x5abbc
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
jne 0x5abd8
jmp 0x5abe5
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x5abe5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8f0
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x5abf9
movq (%r12), %rsi
incq %rsi
callq 0x1a8f0
movq %r14, %rdi
callq 0x1afd0
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov r15, rcx
mov ebp, edx
mov r14, rsi
mov rbx, rdi
lea r12, [rdi+10h]
mov [rdi], r12
lea rsi, aSyntaxError; "syntax error "
lea rdx, aSyntaxError+0Dh; ""
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rsi, [r15+8]
test rsi, rsi
jz short loc_5A9C6
lea r13, [rsp+88h+var_70]
mov [r13-10h], r13
mov qword ptr [r13-8], 0
mov byte ptr [r13+0], 0
add rsi, 0Fh
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
lea rsi, aWhileParsing; "while parsing "
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r15]
mov rdx, [r15+8]
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
lea rdi, [rsp+88h+var_80]
mov esi, 20h ; ' '
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov rsi, [rsp+88h+var_80]
mov rdx, [rsp+88h+var_78]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+88h+var_80]; void *
cmp rdi, r13
jz short loc_5A9C6
mov rsi, [rsp+88h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5A9C6:
lea rsi, asc_ECF97; "- "
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov edi, [r14+20h]
cmp edi, 0Eh
jnz loc_5AA69
mov rax, [r14+98h]
add r14, 28h ; '('
mov [rsp+88h+var_58], rax
lea rdi, [rsp+88h+var_50]
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void)
lea r8, [rsp+88h+var_59]
mov byte ptr [r8], 27h ; '''
lea rdx, aLastRead; "; last read: '"
lea rdi, [rsp+88h+var_80]
lea rsi, [rsp+88h+var_58]
lea rcx, [rsp+88h+var_50]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJPKcRA15_S9_S8_cEEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>(char const*,char const(&)[15],std::string,char &&)
mov rsi, [rsp+88h+var_80]
mov rdx, [rsp+88h+var_78]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
lea rax, [rsp+88h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5AA50
mov rsi, [rsp+88h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5AA50:
lea rax, [rsp+88h+var_40]
mov rdi, [rax-10h]
cmp rdi, rax
jz loc_5AAE3
mov rsi, [rsp+88h+var_40]
jmp short loc_5AADB
loc_5AA69:
call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type)
mov r14, rax
lea r15, [rsp+88h+var_70]
mov [r15-10h], r15
mov qword ptr [r15-8], 0
mov byte ptr [r15], 0
mov rdi, rax
call _strlen
lea rsi, [rax+0Bh]
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
lea rsi, aUnexpected; "unexpected "
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rdi, [rsp+88h+var_80]
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [rsp+88h+var_80]
mov rdx, [rsp+88h+var_78]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+88h+var_80]; void *
cmp rdi, r15
jz short loc_5AAE3
mov rsi, [rsp+88h+var_70]
loc_5AADB:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5AAE3:
test ebp, ebp
jz short loc_5AB63
mov edi, ebp
call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type)
mov r14, rax
lea r15, [rsp+88h+var_70]
mov [r15-10h], r15
mov qword ptr [r15-8], 0
mov byte ptr [r15], 0
mov rdi, rax
call _strlen
lea rsi, [rax+0Bh]
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
lea rsi, aExpected; "; expected "
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rdi, [rsp+88h+var_80]
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [rsp+88h+var_80]
mov rdx, [rsp+88h+var_78]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+88h+var_80]; void *
cmp rdi, r15
jz short loc_5AB63
mov rsi, [rsp+88h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5AB63:
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_5ABBC
mov r14, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5AB9A
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5AB9A
mov r14, rax
loc_5AB9A:
lea rax, [rsp+arg_40]
mov rdi, [rax-10h]
cmp rdi, rax
jz short loc_5ABE5
mov rsi, [rsp+arg_40]
jmp short loc_5ABDD
jmp short loc_5ABB5
jmp short loc_5ABBC
jmp short loc_5ABCB
loc_5ABB5:
mov r14, rax
jmp short loc_5ABE5
jmp short $+2
loc_5ABBC:
mov r14, rax
mov rdi, [rsp+arg_0]
cmp rdi, r15
jnz short loc_5ABD8
jmp short loc_5ABE5
loc_5ABCB:
mov r14, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r13
jz short loc_5ABE5
loc_5ABD8:
mov rsi, [rsp+arg_10]
loc_5ABDD:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5ABE5:
mov rdi, [rbx]; void *
cmp rdi, r12
jz short loc_5ABF9
mov rsi, [r12]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5ABF9:
mov rdi, r14
call __Unwind_Resume
|
_QWORD * nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message(
_QWORD *a1,
long long a2,
unsigned int a3,
_QWORD *a4)
{
long long v8; // rsi
void *v9; // rdi
long long v10; // rsi
long long v11; // r14
long long v12; // rax
long long v13; // r14
long long v14; // rax
void *v16; // [rsp+8h] [rbp-80h] BYREF
long long v17; // [rsp+10h] [rbp-78h]
_QWORD v18[2]; // [rsp+18h] [rbp-70h] BYREF
char v19; // [rsp+2Fh] [rbp-59h] BYREF
long long v20; // [rsp+30h] [rbp-58h] BYREF
_QWORD v21[2]; // [rsp+38h] [rbp-50h] BYREF
long long v22; // [rsp+48h] [rbp-40h] BYREF
*a1 = a1 + 2;
std::string::_M_construct<char const*>((long long)a1, "syntax error ", (long long)"");
v8 = a4[1];
if ( v8 )
{
v16 = v18;
v17 = 0LL;
LOBYTE(v18[0]) = 0;
std::string::reserve(&v16, v8 + 15);
std::string::append(&v16, "while parsing ");
std::string::_M_append(&v16, *a4, a4[1]);
std::string::push_back(&v16, 32LL);
std::string::_M_append(a1, v16, v17);
if ( v16 != v18 )
operator delete(v16, v18[0] + 1LL);
}
std::string::append(a1, "- ");
if ( *(_DWORD *)(a2 + 32) == 14 )
{
v20 = *(_QWORD *)(a2 + 152);
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(
(long long)v21,
a2 + 40);
v19 = 39;
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>(
&v16,
&v20,
"; last read: '",
v21,
&v19);
std::string::_M_append(a1, v16, v17);
if ( v16 != v18 )
operator delete(v16, v18[0] + 1LL);
v9 = (void *)v21[0];
if ( (long long *)v21[0] != &v22 )
{
v10 = v22;
LABEL_11:
operator delete(v9, v10 + 1);
}
}
else
{
v11 = ((long long (*)(void))nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::token_type_name)();
v16 = v18;
v17 = 0LL;
LOBYTE(v18[0]) = 0;
v12 = strlen(v11);
std::string::reserve(&v16, v12 + 11);
std::string::append(&v16, "unexpected ");
std::string::append(&v16, v11);
std::string::_M_append(a1, v16, v17);
v9 = v16;
if ( v16 != v18 )
{
v10 = v18[0];
goto LABEL_11;
}
}
if ( a3 )
{
v13 = nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::token_type_name(a3);
v16 = v18;
v17 = 0LL;
LOBYTE(v18[0]) = 0;
v14 = strlen(v13);
std::string::reserve(&v16, v14 + 11);
std::string::append(&v16, "; expected ");
std::string::append(&v16, v13);
std::string::_M_append(a1, v16, v17);
if ( v16 != v18 )
operator delete(v16, v18[0] + 1LL);
}
return a1;
}
| |||
59,587
|
bitmap_is_clear_all
|
eloqsql/mysys/my_bitmap.c
|
my_bool bitmap_is_clear_all(const MY_BITMAP *map)
{
my_bitmap_map *data_ptr= map->bitmap;
my_bitmap_map *end= map->last_word_ptr;
DBUG_ASSERT(map->n_bits > 0);
for (; data_ptr < end; data_ptr++)
if (*data_ptr)
return FALSE;
return (*data_ptr & ~map->last_word_mask) == 0;
}
|
O0
|
c
|
bitmap_is_clear_all:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0xefb11
jmp 0xefb13
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0xefb3c
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
je 0xefb2c
movb $0x0, -0x1(%rbp)
jmp 0xefb5c
jmp 0xefb2e
movq -0x18(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x18(%rbp)
jmp 0xefb13
movq -0x18(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
xorl $-0x1, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
sete %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
bitmap_is_clear_all:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_18], rax
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rbp+var_20], rax
jmp short $+2
loc_EFB11:
jmp short $+2
loc_EFB13:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnb short loc_EFB3C
mov rax, [rbp+var_18]
cmp dword ptr [rax], 0
jz short loc_EFB2C
mov [rbp+var_1], 0
jmp short loc_EFB5C
loc_EFB2C:
jmp short $+2
loc_EFB2E:
mov rax, [rbp+var_18]
add rax, 4
mov [rbp+var_18], rax
jmp short loc_EFB13
loc_EFB3C:
mov rax, [rbp+var_18]
mov eax, [rax]
mov rcx, [rbp+var_10]
mov ecx, [rcx+18h]
xor ecx, 0FFFFFFFFh
and eax, ecx
cmp eax, 0
setz al
and al, 1
movzx eax, al
mov [rbp+var_1], al
loc_EFB5C:
mov al, [rbp+var_1]
pop rbp
retn
|
bool bitmap_is_clear_all(long long a1)
{
_DWORD *i; // [rsp+8h] [rbp-18h]
for ( i = *(_DWORD **)a1; (unsigned long long)i < *(_QWORD *)(a1 + 8); ++i )
{
if ( *i )
return 0;
}
return (~*(_DWORD *)(a1 + 24) & *i) == 0;
}
|
bitmap_is_clear_all:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001efb11
LAB_001efb11:
JMP 0x001efb13
LAB_001efb13:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x001efb3c
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX],0x0
JZ 0x001efb2c
MOV byte ptr [RBP + -0x1],0x0
JMP 0x001efb5c
LAB_001efb2c:
JMP 0x001efb2e
LAB_001efb2e:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x4
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001efb13
LAB_001efb3c:
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0x18]
XOR ECX,0xffffffff
AND EAX,ECX
CMP EAX,0x0
SETZ AL
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x1],AL
LAB_001efb5c:
MOV AL,byte ptr [RBP + -0x1]
POP RBP
RET
|
int8 bitmap_is_clear_all(int8 *param_1)
{
uint *local_20;
bool local_9;
local_20 = (uint *)*param_1;
do {
if ((uint *)param_1[1] <= local_20) {
local_9 = (*local_20 & (*(uint *)(param_1 + 3) ^ 0xffffffff)) == 0;
local_20 = (uint *)0x0;
LAB_001efb5c:
return CONCAT71((int7)((ulong)local_20 >> 8),local_9);
}
if (*local_20 != 0) {
local_9 = false;
goto LAB_001efb5c;
}
local_20 = local_20 + 1;
} while( true );
}
|
|
59,588
|
mysql_close_memory
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
static void mysql_close_memory(MYSQL *mysql)
{
ma_clear_session_state(mysql);
free(mysql->host_info);
free(mysql->host);
free(mysql->user);
free(mysql->passwd);
free(mysql->db);
free(mysql->unix_socket);
free(mysql->server_version);
mysql->host_info= mysql->host= mysql->unix_socket=
mysql->server_version=mysql->user=mysql->passwd=mysql->db=0;
}
|
O0
|
c
|
mysql_close_memory:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x389f0
movq -0x8(%rbp), %rax
movq 0x2d8(%rax), %rdi
callq 0x14530
movq -0x8(%rbp), %rax
movq 0x2b0(%rax), %rdi
callq 0x14530
movq -0x8(%rbp), %rax
movq 0x2b8(%rax), %rdi
callq 0x14530
movq -0x8(%rbp), %rax
movq 0x2c0(%rax), %rdi
callq 0x14530
movq -0x8(%rbp), %rax
movq 0x2e8(%rax), %rdi
callq 0x14530
movq -0x8(%rbp), %rax
movq 0x2c8(%rax), %rdi
callq 0x14530
movq -0x8(%rbp), %rax
movq 0x2d0(%rax), %rdi
callq 0x14530
movq -0x8(%rbp), %rax
movq $0x0, 0x2e8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x2c0(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x2b8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x2d0(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x2c8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x2b0(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x2d8(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
mysql_close_memory:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
call ma_clear_session_state
mov rax, [rbp+var_8]
mov rdi, [rax+2D8h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+2B0h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+2B8h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+2C0h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+2E8h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+2C8h]
call _free
mov rax, [rbp+var_8]
mov rdi, [rax+2D0h]
call _free
mov rax, [rbp+var_8]
mov qword ptr [rax+2E8h], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+2C0h], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+2B8h], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+2D0h], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+2C8h], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+2B0h], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+2D8h], 0
add rsp, 10h
pop rbp
retn
|
_QWORD * mysql_close_memory(_QWORD *a1)
{
_QWORD *result; // rax
ma_clear_session_state(a1);
free(a1[91]);
free(a1[86]);
free(a1[87]);
free(a1[88]);
free(a1[93]);
free(a1[89]);
free(a1[90]);
a1[93] = 0LL;
a1[88] = 0LL;
a1[87] = 0LL;
a1[90] = 0LL;
a1[89] = 0LL;
a1[86] = 0LL;
result = a1;
a1[91] = 0LL;
return result;
}
|
mysql_close_memory:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001389f0
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x2d8]
CALL 0x00114530
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x2b0]
CALL 0x00114530
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x2b8]
CALL 0x00114530
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x2c0]
CALL 0x00114530
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x2e8]
CALL 0x00114530
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x2c8]
CALL 0x00114530
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x2d0]
CALL 0x00114530
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x2e8],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x2c0],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x2b8],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x2d0],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x2c8],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x2b0],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x2d8],0x0
ADD RSP,0x10
POP RBP
RET
|
void mysql_close_memory(long param_1)
{
ma_clear_session_state(param_1);
free(*(void **)(param_1 + 0x2d8));
free(*(void **)(param_1 + 0x2b0));
free(*(void **)(param_1 + 0x2b8));
free(*(void **)(param_1 + 0x2c0));
free(*(void **)(param_1 + 0x2e8));
free(*(void **)(param_1 + 0x2c8));
free(*(void **)(param_1 + 0x2d0));
*(int8 *)(param_1 + 0x2e8) = 0;
*(int8 *)(param_1 + 0x2c0) = 0;
*(int8 *)(param_1 + 0x2b8) = 0;
*(int8 *)(param_1 + 0x2d0) = 0;
*(int8 *)(param_1 + 0x2c8) = 0;
*(int8 *)(param_1 + 0x2b0) = 0;
*(int8 *)(param_1 + 0x2d8) = 0;
return;
}
|
|
59,589
|
lf_dynarray_lvalue
|
eloqsql/mysys/lf_dynarray.c
|
void *lf_dynarray_lvalue(LF_DYNARRAY *array, uint idx)
{
void * ptr, * volatile * ptr_ptr= 0;
int i;
for (i= LF_DYNARRAY_LEVELS-1; idx < dynarray_idxes_in_prev_levels[i]; i--)
/* no-op */;
ptr_ptr= &array->level[i];
idx-= dynarray_idxes_in_prev_levels[i];
for (; i > 0; i--)
{
if (!(ptr= *ptr_ptr))
{
void *alloc= my_malloc(key_memory_lf_dynarray, LF_DYNARRAY_LEVEL_LENGTH *
sizeof(void *), MYF(MY_WME|MY_ZEROFILL));
if (unlikely(!alloc))
return(NULL);
if (my_atomic_casptr(ptr_ptr, &ptr, alloc))
ptr= alloc;
else
my_free(alloc);
}
ptr_ptr= ((void **)ptr) + idx / dynarray_idxes_in_prev_level[i];
idx%= dynarray_idxes_in_prev_level[i];
}
if (!(ptr= *ptr_ptr))
{
uchar *alloc, *data;
alloc= my_malloc(key_memory_lf_dynarray,
LF_DYNARRAY_LEVEL_LENGTH * array->size_of_element +
MY_MAX(array->size_of_element, sizeof(void *)),
MYF(MY_WME|MY_ZEROFILL));
if (unlikely(!alloc))
return(NULL);
/* reserve the space for free() address */
data= alloc + sizeof(void *);
{ /* alignment */
intptr mod= ((intptr)data) % array->size_of_element;
if (mod)
data+= array->size_of_element - mod;
}
((void **)data)[-1]= alloc; /* free() will need the original pointer */
if (my_atomic_casptr(ptr_ptr, &ptr, data))
ptr= data;
else
my_free(alloc);
}
return ((uchar*)ptr) + array->size_of_element * idx;
}
|
O3
|
c
|
lf_dynarray_lvalue:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %r14d
movl %esi, %ecx
leaq 0x20(%rdi), %r12
pushq $0x5
popq %r13
pushq $0x4
popq %rax
leaq 0x57f76(%rip), %rdx # 0x83ae0
movq -0x8(%rdx,%rax,8), %rsi
decl %r13d
decq %rax
addq $-0x8, %r12
cmpq %rcx, %rsi
ja 0x2bb6a
movq %rdi, -0x30(%rbp)
subl %esi, %r14d
testq %rax, %rax
jle 0x2bbfb
leal -0x1(%r13), %eax
movl %eax, %eax
leaq 0x57f69(%rip), %rcx # 0x83b00
leaq (%rcx,%rax,8), %rbx
pushq $0x30
popq %r15
movq (%r12), %rdi
testq %rdi, %rdi
jne 0x2bbdf
leaq 0x3a8c6d(%rip), %rax # 0x3d481c
movl (%rax), %edi
movl $0x800, %esi # imm = 0x800
movq %r15, %rdx
callq 0x470bd
testq %rax, %rax
je 0x2bc86
movq %rax, %rdi
xorl %eax, %eax
lock
cmpxchgq %rdi, (%r12)
je 0x2bbdf
movq %rax, %r12
callq 0x472ea
movq %r12, %rdi
movl %r14d, %eax
xorl %edx, %edx
divq (%rbx)
leaq (%rdi,%rax,8), %r12
decl %r13d
addq $-0x8, %rbx
movq %rdx, %r14
cmpl $0x1, %r13d
jg 0x2bb9f
movq (%r12), %rcx
testq %rcx, %rcx
movq -0x30(%rbp), %rbx
jne 0x2bc6c
leaq 0x3a8c0d(%rip), %rax # 0x3d481c
movl (%rax), %edi
movl 0x20(%rbx), %eax
movl %eax, %ecx
shll $0x8, %ecx
cmpl $0x9, %eax
pushq $0x8
popq %rsi
cmovael %eax, %esi
addq %rcx, %rsi
pushq $0x30
popq %rdx
callq 0x470bd
testq %rax, %rax
je 0x2bc86
movq %rax, %rdi
addq $0x8, %rax
movl 0x20(%rbx), %esi
xorl %edx, %edx
divq %rsi
subq %rdx, %rsi
testq %rdx, %rdx
cmoveq %rdx, %rsi
leaq (%rdi,%rsi), %rcx
addq $0x8, %rcx
movq %rdi, (%rdi,%rsi)
xorl %eax, %eax
lock
cmpxchgq %rcx, (%r12)
je 0x2bc6c
movq %rax, %r15
callq 0x472ea
movq %r15, %rcx
imull 0x20(%rbx), %r14d
addq %rcx, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
jmp 0x2bc74
|
lf_dynarray_lvalue:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14d, esi
mov ecx, esi
lea r12, [rdi+20h]
push 5
pop r13
push 4
pop rax
lea rdx, dynarray_idxes_in_prev_levels
loc_2BB6A:
mov rsi, [rdx+rax*8-8]
dec r13d
dec rax
add r12, 0FFFFFFFFFFFFFFF8h
cmp rsi, rcx
ja short loc_2BB6A
mov [rbp+var_30], rdi
sub r14d, esi
test rax, rax
jle short loc_2BBFB
lea eax, [r13-1]
mov eax, eax
lea rcx, dynarray_idxes_in_prev_level
lea rbx, [rcx+rax*8]
push 30h ; '0'
pop r15
loc_2BB9F:
mov rdi, [r12]
test rdi, rdi
jnz short loc_2BBDF
lea rax, key_memory_lf_dynarray
mov edi, [rax]
mov esi, 800h
mov rdx, r15
call my_malloc
test rax, rax
jz loc_2BC86
mov rdi, rax
xor eax, eax
lock cmpxchg [r12], rdi
jz short loc_2BBDF
mov r12, rax
call my_free
mov rdi, r12
loc_2BBDF:
mov eax, r14d
xor edx, edx
div qword ptr [rbx]
lea r12, [rdi+rax*8]
dec r13d
add rbx, 0FFFFFFFFFFFFFFF8h
mov r14, rdx
cmp r13d, 1
jg short loc_2BB9F
loc_2BBFB:
mov rcx, [r12]
test rcx, rcx
mov rbx, [rbp+var_30]
jnz short loc_2BC6C
lea rax, key_memory_lf_dynarray
mov edi, [rax]
mov eax, [rbx+20h]
mov ecx, eax
shl ecx, 8
cmp eax, 9
push 8
pop rsi
cmovnb esi, eax
add rsi, rcx
push 30h ; '0'
pop rdx
call my_malloc
test rax, rax
jz short loc_2BC86
mov rdi, rax
add rax, 8
mov esi, [rbx+20h]
xor edx, edx
div rsi
sub rsi, rdx
test rdx, rdx
cmovz rsi, rdx
lea rcx, [rdi+rsi]
add rcx, 8
mov [rdi+rsi], rdi
xor eax, eax
lock cmpxchg [r12], rcx
jz short loc_2BC6C
mov r15, rax
call my_free
mov rcx, r15
loc_2BC6C:
imul r14d, [rbx+20h]
add r14, rcx
loc_2BC74:
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_2BC86:
xor r14d, r14d
jmp short loc_2BC74
|
signed long long lf_dynarray_lvalue(long long a1, unsigned int a2)
{
unsigned long long v3; // rcx
volatile signed long long *v4; // r12
int v5; // r13d
long long v6; // rax
unsigned long long v7; // rsi
unsigned int v8; // r14d
_QWORD *v9; // rbx
volatile signed long long v10; // rdi
signed long long v11; // rax
signed long long v12; // rax
volatile signed long long v13; // r12
unsigned long long v14; // rdx
signed long long v15; // rcx
unsigned int v16; // eax
long long v17; // rsi
long long v18; // rax
long long v19; // rdi
unsigned long long v20; // rdx
unsigned long long v21; // rsi
signed long long v22; // rax
signed long long v23; // r15
v3 = a2;
v4 = (volatile signed long long *)(a1 + 32);
v5 = 5;
v6 = 4LL;
do
{
v7 = dynarray_idxes_in_prev_levels[v6 - 1];
--v5;
--v6;
--v4;
}
while ( v7 > v3 );
v8 = a2 - v7;
if ( v6 > 0 )
{
v9 = (_QWORD *)((char *)&dynarray_idxes_in_prev_level + 8 * (unsigned int)(v5 - 1));
do
{
v10 = *v4;
if ( !*v4 )
{
v11 = my_malloc(key_memory_lf_dynarray, 2048LL, 48LL);
if ( !v11 )
return 0LL;
v10 = v11;
v12 = _InterlockedCompareExchange64(v4, v11, 0LL);
if ( v12 )
{
v13 = v12;
my_free(v10);
v10 = v13;
}
}
v14 = (unsigned long long)v8 % *v9;
v4 = (volatile signed long long *)(v10 + 8 * ((unsigned long long)v8 / *v9));
--v5;
--v9;
v8 = v14;
}
while ( v5 > 1 );
}
v15 = *v4;
if ( !*v4 )
{
v16 = *(_DWORD *)(a1 + 32);
v17 = 8LL;
if ( v16 >= 9 )
v17 = v16;
v18 = my_malloc(key_memory_lf_dynarray, (unsigned int)(*(_DWORD *)(a1 + 32) << 8) + v17, 48LL);
if ( !v18 )
return 0LL;
v19 = v18;
v20 = (v18 + 8) % (unsigned long long)*(unsigned int *)(a1 + 32);
v21 = *(unsigned int *)(a1 + 32) - v20;
if ( !v20 )
v21 = 0LL;
v15 = v18 + v21 + 8;
*(_QWORD *)(v18 + v21) = v18;
v22 = _InterlockedCompareExchange64(v4, v15, 0LL);
if ( v22 )
{
v23 = v22;
my_free(v19);
v15 = v23;
}
}
return v15 + *(_DWORD *)(a1 + 32) * v8;
}
|
lf_dynarray_lvalue:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14D,ESI
MOV ECX,ESI
LEA R12,[RDI + 0x20]
PUSH 0x5
POP R13
PUSH 0x4
POP RAX
LEA RDX,[0x183ae0]
LAB_0012bb6a:
MOV RSI,qword ptr [RDX + RAX*0x8 + -0x8]
DEC R13D
DEC RAX
ADD R12,-0x8
CMP RSI,RCX
JA 0x0012bb6a
MOV qword ptr [RBP + -0x30],RDI
SUB R14D,ESI
TEST RAX,RAX
JLE 0x0012bbfb
LEA EAX,[R13 + -0x1]
MOV EAX,EAX
LEA RCX,[0x183b00]
LEA RBX,[RCX + RAX*0x8]
PUSH 0x30
POP R15
LAB_0012bb9f:
MOV RDI,qword ptr [R12]
TEST RDI,RDI
JNZ 0x0012bbdf
LEA RAX,[0x4d481c]
MOV EDI,dword ptr [RAX]
MOV ESI,0x800
MOV RDX,R15
CALL 0x001470bd
TEST RAX,RAX
JZ 0x0012bc86
MOV RDI,RAX
XOR EAX,EAX
CMPXCHG.LOCK qword ptr [R12],RDI
JZ 0x0012bbdf
MOV R12,RAX
CALL 0x001472ea
MOV RDI,R12
LAB_0012bbdf:
MOV EAX,R14D
XOR EDX,EDX
DIV qword ptr [RBX]
LEA R12,[RDI + RAX*0x8]
DEC R13D
ADD RBX,-0x8
MOV R14,RDX
CMP R13D,0x1
JG 0x0012bb9f
LAB_0012bbfb:
MOV RCX,qword ptr [R12]
TEST RCX,RCX
MOV RBX,qword ptr [RBP + -0x30]
JNZ 0x0012bc6c
LEA RAX,[0x4d481c]
MOV EDI,dword ptr [RAX]
MOV EAX,dword ptr [RBX + 0x20]
MOV ECX,EAX
SHL ECX,0x8
CMP EAX,0x9
PUSH 0x8
POP RSI
CMOVNC ESI,EAX
ADD RSI,RCX
PUSH 0x30
POP RDX
CALL 0x001470bd
TEST RAX,RAX
JZ 0x0012bc86
MOV RDI,RAX
ADD RAX,0x8
MOV ESI,dword ptr [RBX + 0x20]
XOR EDX,EDX
DIV RSI
SUB RSI,RDX
TEST RDX,RDX
CMOVZ RSI,RDX
LEA RCX,[RDI + RSI*0x1]
ADD RCX,0x8
MOV qword ptr [RDI + RSI*0x1],RDI
XOR EAX,EAX
CMPXCHG.LOCK qword ptr [R12],RCX
JZ 0x0012bc6c
MOV R15,RAX
CALL 0x001472ea
MOV RCX,R15
LAB_0012bc6c:
IMUL R14D,dword ptr [RBX + 0x20]
ADD R14,RCX
LAB_0012bc74:
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0012bc86:
XOR R14D,R14D
JMP 0x0012bc74
|
long lf_dynarray_lvalue(long param_1,uint param_2)
{
uint uVar1;
long lVar2;
ulong uVar3;
long lVar4;
ulong uVar5;
ulong *puVar6;
long lVar7;
long *plVar8;
int iVar9;
int iVar10;
bool bVar11;
plVar8 = (long *)(param_1 + 0x20);
lVar2 = 4;
iVar10 = 5;
do {
iVar9 = iVar10;
lVar4 = lVar2 * 8;
iVar10 = iVar9 + -1;
lVar2 = lVar2 + -1;
plVar8 = plVar8 + -1;
} while ((ulong)param_2 < *(ulong *)(&UNK_00183ad8 + lVar4));
param_2 = param_2 - (int)*(ulong *)(&UNK_00183ad8 + lVar4);
uVar5 = (ulong)param_2;
if (0 < lVar2) {
puVar6 = (ulong *)(dynarray_idxes_in_prev_level + (ulong)(iVar9 - 2) * 8);
do {
lVar2 = *plVar8;
if (*plVar8 == 0) {
lVar2 = my_malloc(key_memory_lf_dynarray,0x800,0x30);
if (lVar2 == 0) {
return 0;
}
LOCK();
lVar4 = *plVar8;
bVar11 = lVar4 == 0;
if (bVar11) {
*plVar8 = lVar2;
lVar4 = 0;
}
UNLOCK();
if (!bVar11) {
my_free();
lVar2 = lVar4;
}
}
uVar3 = uVar5 & 0xffffffff;
uVar5 = uVar3 % *puVar6;
param_2 = (uint)uVar5;
plVar8 = (long *)(lVar2 + (uVar3 / *puVar6) * 8);
iVar10 = iVar10 + -1;
puVar6 = puVar6 + -1;
} while (1 < iVar10);
}
lVar2 = *plVar8;
if (*plVar8 == 0) {
uVar1 = *(uint *)(param_1 + 0x20);
uVar5 = 8;
if (8 < uVar1) {
uVar5 = (ulong)uVar1;
}
lVar4 = my_malloc(key_memory_lf_dynarray,uVar5 + (uVar1 << 8),0x30);
if (lVar4 == 0) {
return 0;
}
uVar5 = (lVar4 + 8U) % (ulong)*(uint *)(param_1 + 0x20);
lVar7 = *(uint *)(param_1 + 0x20) - uVar5;
if (uVar5 == 0) {
lVar7 = 0;
}
lVar2 = lVar4 + lVar7 + 8;
*(long *)(lVar4 + lVar7) = lVar4;
LOCK();
lVar4 = *plVar8;
bVar11 = lVar4 == 0;
if (bVar11) {
*plVar8 = lVar2;
lVar4 = 0;
}
UNLOCK();
if (!bVar11) {
my_free();
lVar2 = lVar4;
}
}
return (ulong)(param_2 * *(int *)(param_1 + 0x20)) + lVar2;
}
|
|
59,590
|
mi_get_key
|
eloqsql/storage/myisam/mi_search.c
|
uchar *_mi_get_key(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *page,
uchar *key, uchar *keypos, uint *return_key_length)
{
uint nod_flag;
DBUG_ENTER("_mi_get_key");
nod_flag=mi_test_if_nod(page);
if (! (keyinfo->flag & (HA_VAR_LENGTH_KEY | HA_BINARY_PACK_KEY)))
{
bmove((uchar*) key,(uchar*) keypos,keyinfo->keylength+nod_flag);
DBUG_RETURN(keypos+keyinfo->keylength+nod_flag);
}
else
{
page+=2+nod_flag;
key[0]=0; /* safety */
while (page <= keypos)
{
*return_key_length=(*keyinfo->get_key)(keyinfo,nod_flag,&page,key);
if (*return_key_length == 0)
{
mi_print_error(info->s, HA_ERR_CRASHED);
my_errno=HA_ERR_CRASHED;
DBUG_RETURN(0);
}
}
}
DBUG_PRINT("exit",("page: %p length: %u", page,
*return_key_length));
DBUG_RETURN(page);
}
|
O0
|
c
|
mi_get_key:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x20(%rbp), %rax
movzbl (%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0xc11e3
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x17c(%rax), %eax
movl %eax, -0x40(%rbp)
jmp 0xc11ea
xorl %eax, %eax
movl %eax, -0x40(%rbp)
jmp 0xc11ea
movl -0x40(%rbp), %eax
movl %eax, -0x3c(%rbp)
movq -0x18(%rbp), %rax
movzwl 0xa(%rax), %eax
andl $0x28, %eax
cmpl $0x0, %eax
jne 0xc123d
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x18(%rbp), %rax
movzwl 0x12(%rax), %eax
addl -0x3c(%rbp), %eax
movl %eax, %eax
movl %eax, %edx
callq 0x2a140
movq -0x30(%rbp), %rax
movq -0x18(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movl -0x3c(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x8(%rbp)
jmp 0xc12ca
movl -0x3c(%rbp), %ecx
addl $0x2, %ecx
movq -0x20(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
movb $0x0, (%rax)
movq -0x20(%rbp), %rax
cmpq -0x30(%rbp), %rax
ja 0xc12ba
movq -0x18(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x18(%rbp), %rdi
movl -0x3c(%rbp), %esi
movq -0x28(%rbp), %rcx
leaq -0x20(%rbp), %rdx
callq *%rax
movl %eax, %ecx
movq -0x38(%rbp), %rax
movl %ecx, (%rax)
movq -0x38(%rbp), %rax
cmpl $0x0, (%rax)
jne 0xc12b8
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x268(%rax), %rsi
movl $0x7e, %edi
callq 0xade70
callq 0xfc1b0
movl $0x7e, (%rax)
movq $0x0, -0x8(%rbp)
jmp 0xc12ca
jmp 0xc1257
jmp 0xc12bc
jmp 0xc12be
jmp 0xc12c0
jmp 0xc12c2
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_mi_get_key:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax]
and eax, 80h
cmp eax, 0
jz short loc_C11E3
mov rax, [rbp+var_10]
mov rax, [rax]
mov eax, [rax+17Ch]
mov [rbp+var_40], eax
jmp short loc_C11EA
loc_C11E3:
xor eax, eax
mov [rbp+var_40], eax
jmp short $+2
loc_C11EA:
mov eax, [rbp+var_40]
mov [rbp+var_3C], eax
mov rax, [rbp+var_18]
movzx eax, word ptr [rax+0Ah]
and eax, 28h
cmp eax, 0
jnz short loc_C123D
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_30]
mov rax, [rbp+var_18]
movzx eax, word ptr [rax+12h]
add eax, [rbp+var_3C]
mov eax, eax
mov edx, eax
call _memmove
mov rax, [rbp+var_30]
mov rcx, [rbp+var_18]
movzx ecx, word ptr [rcx+12h]
movsxd rcx, ecx
add rax, rcx
mov ecx, [rbp+var_3C]
add rax, rcx
mov [rbp+var_8], rax
jmp loc_C12CA
loc_C123D:
mov ecx, [rbp+var_3C]
add ecx, 2
mov rax, [rbp+var_20]
mov ecx, ecx
add rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
mov byte ptr [rax], 0
loc_C1257:
mov rax, [rbp+var_20]
cmp rax, [rbp+var_30]
ja short loc_C12BA
mov rax, [rbp+var_18]
mov rax, [rax+48h]
mov rdi, [rbp+var_18]
mov esi, [rbp+var_3C]
mov rcx, [rbp+var_28]
lea rdx, [rbp+var_20]
call rax
mov ecx, eax
mov rax, [rbp+var_38]
mov [rax], ecx
mov rax, [rbp+var_38]
cmp dword ptr [rax], 0
jnz short loc_C12B8
mov rax, [rbp+var_10]
mov rax, [rax]
mov rsi, [rax+268h]
mov edi, 7Eh ; '~'
call mi_report_error
call _my_thread_var
mov dword ptr [rax], 7Eh ; '~'
mov [rbp+var_8], 0
jmp short loc_C12CA
loc_C12B8:
jmp short loc_C1257
loc_C12BA:
jmp short $+2
loc_C12BC:
jmp short $+2
loc_C12BE:
jmp short $+2
loc_C12C0:
jmp short $+2
loc_C12C2:
mov rax, [rbp+var_20]
mov [rbp+var_8], rax
loc_C12CA:
mov rax, [rbp+var_8]
add rsp, 40h
pop rbp
retn
|
_BYTE * mi_get_key(long long a1, long long a2, _BYTE *a3, _BYTE *a4, unsigned long long a5, _DWORD *a6)
{
const char *v6; // rsi
unsigned int v8; // [rsp+0h] [rbp-40h]
_BYTE *v12; // [rsp+20h] [rbp-20h] BYREF
long long v13; // [rsp+28h] [rbp-18h]
long long v14; // [rsp+30h] [rbp-10h]
v14 = a1;
v13 = a2;
v12 = a3;
if ( (*a3 & 0x80) != 0 )
v8 = *(_DWORD *)(*(_QWORD *)v14 + 380LL);
else
v8 = 0;
if ( (*(_WORD *)(v13 + 10) & 0x28) != 0 )
{
v12 += v8 + 2;
*a4 = 0;
while ( (unsigned long long)v12 <= a5 )
{
*a6 = (*(long long ( **)(long long, _QWORD, _BYTE **, _BYTE *))(v13 + 72))(v13, v8, &v12, a4);
if ( !*a6 )
{
v6 = *(const char **)(*(_QWORD *)v14 + 616LL);
mi_report_error(126, (long long)v6);
*(_DWORD *)my_thread_var(126LL, v6) = 126;
return 0LL;
}
}
return v12;
}
else
{
memmove(a4, a5, v8 + *(unsigned __int16 *)(v13 + 18));
return (_BYTE *)(v8 + *(unsigned __int16 *)(v13 + 18) + a5);
}
}
|
_mi_get_key:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX]
AND EAX,0x80
CMP EAX,0x0
JZ 0x001c11e3
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x17c]
MOV dword ptr [RBP + -0x40],EAX
JMP 0x001c11ea
LAB_001c11e3:
XOR EAX,EAX
MOV dword ptr [RBP + -0x40],EAX
JMP 0x001c11ea
LAB_001c11ea:
MOV EAX,dword ptr [RBP + -0x40]
MOV dword ptr [RBP + -0x3c],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX + 0xa]
AND EAX,0x28
CMP EAX,0x0
JNZ 0x001c123d
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX + 0x12]
ADD EAX,dword ptr [RBP + -0x3c]
MOV EAX,EAX
MOV EDX,EAX
CALL 0x0012a140
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,word ptr [RCX + 0x12]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV ECX,dword ptr [RBP + -0x3c]
ADD RAX,RCX
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001c12ca
LAB_001c123d:
MOV ECX,dword ptr [RBP + -0x3c]
ADD ECX,0x2
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX],0x0
LAB_001c1257:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x30]
JA 0x001c12ba
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x48]
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,dword ptr [RBP + -0x3c]
MOV RCX,qword ptr [RBP + -0x28]
LEA RDX,[RBP + -0x20]
CALL RAX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x38]
CMP dword ptr [RAX],0x0
JNZ 0x001c12b8
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x268]
MOV EDI,0x7e
CALL 0x001ade70
CALL 0x001fc1b0
MOV dword ptr [RAX],0x7e
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001c12ca
LAB_001c12b8:
JMP 0x001c1257
LAB_001c12ba:
JMP 0x001c12bc
LAB_001c12bc:
JMP 0x001c12be
LAB_001c12be:
JMP 0x001c12c0
LAB_001c12c0:
JMP 0x001c12c2
LAB_001c12c2:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x8],RAX
LAB_001c12ca:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x40
POP RBP
RET
|
byte * _mi_get_key(long *param_1,long param_2,byte *param_3,int1 *param_4,byte *param_5,
int *param_6)
{
int iVar1;
int4 *puVar2;
uint local_48;
byte *local_28;
long local_20;
long *local_18;
byte *local_10;
if ((*param_3 & 0x80) == 0) {
local_48 = 0;
}
else {
local_48 = *(uint *)(*param_1 + 0x17c);
}
local_20 = param_2;
local_18 = param_1;
if ((*(ushort *)(param_2 + 10) & 0x28) == 0) {
local_28 = param_3;
memmove(param_4,param_5,(ulong)(*(ushort *)(param_2 + 0x12) + local_48));
local_10 = param_5 + (ulong)local_48 + (long)(int)(uint)*(ushort *)(local_20 + 0x12);
}
else {
local_28 = param_3 + (local_48 + 2);
*param_4 = 0;
do {
if (param_5 < local_28) {
return local_28;
}
iVar1 = (**(code **)(local_20 + 0x48))(local_20,local_48,&local_28,param_4);
*param_6 = iVar1;
} while (*param_6 != 0);
mi_report_error(0x7e,*(int8 *)(*local_18 + 0x268));
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x7e;
local_10 = (byte *)0x0;
}
return local_10;
}
|
|
59,591
|
stbi__jpeg_reset(stbi__jpeg*)
|
monkey531[P]llama/examples/llava/../../common/stb_image.h
|
static void stbi__jpeg_reset(stbi__jpeg *j)
{
j->code_bits = 0;
j->code_buffer = 0;
j->nomore = 0;
j->img_comp[0].dc_pred = j->img_comp[1].dc_pred = j->img_comp[2].dc_pred = j->img_comp[3].dc_pred = 0;
j->marker = STBI__MARKER_none;
j->todo = j->restart_interval ? j->restart_interval : 0x7fffffff;
j->eob_run = 0;
// no more than 1<<31 MCUs if no restart_interal? that's plenty safe,
// since we don't even allow 1<<30 pixels
}
|
O2
|
c
|
stbi__jpeg_reset(stbi__jpeg*):
andq $0x0, 0x4820(%rdi)
andl $0x0, 0x482c(%rdi)
andl $0x0, 0x47d8(%rdi)
andl $0x0, 0x4778(%rdi)
andl $0x0, 0x4718(%rdi)
andl $0x0, 0x46b8(%rdi)
movb $-0x1, 0x4828(%rdi)
movl 0x4868(%rdi), %eax
testl %eax, %eax
movl $0x7fffffff, %ecx # imm = 0x7FFFFFFF
cmovnel %eax, %ecx
movl %ecx, 0x486c(%rdi)
andl $0x0, 0x4844(%rdi)
retq
|
_ZL16stbi__jpeg_resetP10stbi__jpeg:
and qword ptr [rdi+4820h], 0
and dword ptr [rdi+482Ch], 0
and dword ptr [rdi+47D8h], 0
and dword ptr [rdi+4778h], 0
and dword ptr [rdi+4718h], 0
and dword ptr [rdi+46B8h], 0
mov byte ptr [rdi+4828h], 0FFh
mov eax, [rdi+4868h]
test eax, eax
mov ecx, 7FFFFFFFh
cmovnz ecx, eax
mov [rdi+486Ch], ecx
and dword ptr [rdi+4844h], 0
retn
|
long long stbi__jpeg_reset(long long a1)
{
long long result; // rax
int v2; // ecx
*(_QWORD *)(a1 + 18464) = 0LL;
*(_DWORD *)(a1 + 18476) = 0;
*(_DWORD *)(a1 + 18392) = 0;
*(_DWORD *)(a1 + 18296) = 0;
*(_DWORD *)(a1 + 18200) = 0;
*(_DWORD *)(a1 + 18104) = 0;
*(_BYTE *)(a1 + 18472) = -1;
result = *(unsigned int *)(a1 + 18536);
v2 = 0x7FFFFFFF;
if ( (_DWORD)result )
v2 = *(_DWORD *)(a1 + 18536);
*(_DWORD *)(a1 + 18540) = v2;
*(_DWORD *)(a1 + 18500) = 0;
return result;
}
|
stbi__jpeg_reset:
AND qword ptr [RDI + 0x4820],0x0
AND dword ptr [RDI + 0x482c],0x0
AND dword ptr [RDI + 0x47d8],0x0
AND dword ptr [RDI + 0x4778],0x0
AND dword ptr [RDI + 0x4718],0x0
AND dword ptr [RDI + 0x46b8],0x0
MOV byte ptr [RDI + 0x4828],0xff
MOV EAX,dword ptr [RDI + 0x4868]
TEST EAX,EAX
MOV ECX,0x7fffffff
CMOVNZ ECX,EAX
MOV dword ptr [RDI + 0x486c],ECX
AND dword ptr [RDI + 0x4844],0x0
RET
|
/* stbi__jpeg_reset(stbi__jpeg*) */
void stbi__jpeg_reset(stbi__jpeg *param_1)
{
int iVar1;
*(int8 *)(param_1 + 0x4820) = 0;
*(int4 *)(param_1 + 0x482c) = 0;
*(int4 *)(param_1 + 0x47d8) = 0;
*(int4 *)(param_1 + 0x4778) = 0;
*(int4 *)(param_1 + 0x4718) = 0;
*(int4 *)(param_1 + 0x46b8) = 0;
param_1[0x4828] = (stbi__jpeg)0xff;
iVar1 = 0x7fffffff;
if (*(int *)(param_1 + 0x4868) != 0) {
iVar1 = *(int *)(param_1 + 0x4868);
}
*(int *)(param_1 + 0x486c) = iVar1;
*(int4 *)(param_1 + 0x4844) = 0;
return;
}
|
|
59,592
|
stbi__pic_test(stbi__context*)
|
monkey531[P]llama/examples/llava/../../common/stb_image.h
|
static int stbi__pic_test(stbi__context *s)
{
int r = stbi__pic_test_core(s);
stbi__rewind(s);
return r;
}
|
O1
|
c
|
stbi__pic_test(stbi__context*):
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xd5ce5(%rip), %rsi # 0x10e741
callq 0x4060b
testl %eax, %eax
je 0x38aae
movl $0x54, %ebp
movq 0xc0(%rbx), %rax
cmpq 0xc8(%rbx), %rax
jb 0x38a8f
cmpl $0x0, 0x30(%rbx)
je 0x38a99
movq %rbx, %rdi
callq 0x3c9f9
movq 0xc0(%rbx), %rax
incq %rax
movq %rax, 0xc0(%rbx)
decl %ebp
jne 0x38a6a
leaq 0xd5ca2(%rip), %rsi # 0x10e746
movq %rbx, %rdi
callq 0x4060b
jmp 0x38ab0
xorl %eax, %eax
movups 0xd0(%rbx), %xmm0
movups %xmm0, 0xc0(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
_ZL14stbi__pic_testP13stbi__context:
push rbp
push rbx
push rax
mov rbx, rdi
lea rsi, unk_10E741
call _ZL13stbi__pic_is4P13stbi__contextPKc; stbi__pic_is4(stbi__context *,char const*)
test eax, eax
jz short loc_38AAE
mov ebp, 54h ; 'T'
loc_38A6A:
mov rax, [rbx+0C0h]
cmp rax, [rbx+0C8h]
jb short loc_38A8F
cmp dword ptr [rbx+30h], 0
jz short loc_38A99
mov rdi, rbx
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [rbx+0C0h]
loc_38A8F:
inc rax
mov [rbx+0C0h], rax
loc_38A99:
dec ebp
jnz short loc_38A6A
lea rsi, aPict; "PICT"
mov rdi, rbx
call _ZL13stbi__pic_is4P13stbi__contextPKc; stbi__pic_is4(stbi__context *,char const*)
jmp short loc_38AB0
loc_38AAE:
xor eax, eax
loc_38AB0:
movups xmm0, xmmword ptr [rbx+0D0h]
movups xmmword ptr [rbx+0C0h], xmm0
add rsp, 8
pop rbx
pop rbp
retn
|
long long stbi__pic_test(long long a1)
{
int v1; // ebp
unsigned long long v2; // rax
long long result; // rax
if ( !(unsigned int)stbi__pic_is4(a1, &unk_10E741) )
{
result = 0LL;
goto LABEL_10;
}
v1 = 84;
do
{
v2 = *(_QWORD *)(a1 + 192);
if ( v2 >= *(_QWORD *)(a1 + 200) )
{
if ( !*(_DWORD *)(a1 + 48) )
goto LABEL_7;
stbi__refill_buffer(a1);
v2 = *(_QWORD *)(a1 + 192);
}
*(_QWORD *)(a1 + 192) = v2 + 1;
LABEL_7:
--v1;
}
while ( v1 );
result = stbi__pic_is4(a1, "PICT");
LABEL_10:
*(_OWORD *)(a1 + 192) = *(_OWORD *)(a1 + 208);
return result;
}
|
stbi__pic_test:
PUSH RBP
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA RSI,[0x20e741]
CALL 0x0014060b
TEST EAX,EAX
JZ 0x00138aae
MOV EBP,0x54
LAB_00138a6a:
MOV RAX,qword ptr [RBX + 0xc0]
CMP RAX,qword ptr [RBX + 0xc8]
JC 0x00138a8f
CMP dword ptr [RBX + 0x30],0x0
JZ 0x00138a99
MOV RDI,RBX
CALL 0x0013c9f9
MOV RAX,qword ptr [RBX + 0xc0]
LAB_00138a8f:
INC RAX
MOV qword ptr [RBX + 0xc0],RAX
LAB_00138a99:
DEC EBP
JNZ 0x00138a6a
LEA RSI,[0x20e746]
MOV RDI,RBX
CALL 0x0014060b
JMP 0x00138ab0
LAB_00138aae:
XOR EAX,EAX
LAB_00138ab0:
MOVUPS XMM0,xmmword ptr [RBX + 0xd0]
MOVUPS xmmword ptr [RBX + 0xc0],XMM0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
/* stbi__pic_test(stbi__context*) */
int8 stbi__pic_test(stbi__context *param_1)
{
int iVar1;
ulong uVar2;
int8 uVar3;
iVar1 = stbi__pic_is4(param_1,&DAT_0020e741);
if (iVar1 == 0) {
uVar3 = 0;
}
else {
iVar1 = 0x54;
do {
uVar2 = *(ulong *)(param_1 + 0xc0);
if (uVar2 < *(ulong *)(param_1 + 200)) {
LAB_00138a8f:
*(ulong *)(param_1 + 0xc0) = uVar2 + 1;
}
else if (*(int *)(param_1 + 0x30) != 0) {
stbi__refill_buffer(param_1);
uVar2 = *(ulong *)(param_1 + 0xc0);
goto LAB_00138a8f;
}
iVar1 = iVar1 + -1;
} while (iVar1 != 0);
uVar3 = stbi__pic_is4(param_1,"PICT");
}
*(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 0xd0);
*(int8 *)(param_1 + 200) = *(int8 *)(param_1 + 0xd8);
return uVar3;
}
|
|
59,593
|
stbi__pic_test(stbi__context*)
|
monkey531[P]llama/examples/llava/../../common/stb_image.h
|
static int stbi__pic_test(stbi__context *s)
{
int r = stbi__pic_test_core(s);
stbi__rewind(s);
return r;
}
|
O3
|
c
|
stbi__pic_test(stbi__context*):
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xd2f0f(%rip), %rsi # 0x10b751
callq 0x3fdf7
testl %eax, %eax
je 0x38894
movq 0xc0(%rbx), %rax
movl $0x54, %ebp
cmpq 0xc8(%rbx), %rax
jb 0x38875
cmpl $0x0, 0x30(%rbx)
je 0x3887f
movq %rbx, %rdi
callq 0x3c5ff
movq 0xc0(%rbx), %rax
incq %rax
movq %rax, 0xc0(%rbx)
decl %ebp
jne 0x38857
leaq 0xd2ecc(%rip), %rsi # 0x10b756
movq %rbx, %rdi
callq 0x3fdf7
jmp 0x38896
xorl %eax, %eax
movups 0xd0(%rbx), %xmm0
movups %xmm0, 0xc0(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
_ZL14stbi__pic_testP13stbi__context:
push rbp
push rbx
push rax
mov rbx, rdi
lea rsi, unk_10B751
call _ZL13stbi__pic_is4P13stbi__contextPKc; stbi__pic_is4(stbi__context *,char const*)
test eax, eax
jz short loc_38894
mov rax, [rbx+0C0h]
mov ebp, 54h ; 'T'
loc_38857:
cmp rax, [rbx+0C8h]
jb short loc_38875
cmp dword ptr [rbx+30h], 0
jz short loc_3887F
mov rdi, rbx
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [rbx+0C0h]
loc_38875:
inc rax
mov [rbx+0C0h], rax
loc_3887F:
dec ebp
jnz short loc_38857
lea rsi, aPict; "PICT"
mov rdi, rbx
call _ZL13stbi__pic_is4P13stbi__contextPKc; stbi__pic_is4(stbi__context *,char const*)
jmp short loc_38896
loc_38894:
xor eax, eax
loc_38896:
movups xmm0, xmmword ptr [rbx+0D0h]
movups xmmword ptr [rbx+0C0h], xmm0
add rsp, 8
pop rbx
pop rbp
retn
|
long long stbi__pic_test(long long a1)
{
unsigned long long v1; // rax
int v2; // ebp
long long result; // rax
if ( !(unsigned int)stbi__pic_is4(a1, &unk_10B751) )
{
result = 0LL;
goto LABEL_10;
}
v1 = *(_QWORD *)(a1 + 192);
v2 = 84;
do
{
if ( v1 >= *(_QWORD *)(a1 + 200) )
{
if ( !*(_DWORD *)(a1 + 48) )
goto LABEL_7;
stbi__refill_buffer(a1);
v1 = *(_QWORD *)(a1 + 192);
}
*(_QWORD *)(a1 + 192) = ++v1;
LABEL_7:
--v2;
}
while ( v2 );
result = stbi__pic_is4(a1, "PICT");
LABEL_10:
*(_OWORD *)(a1 + 192) = *(_OWORD *)(a1 + 208);
return result;
}
|
stbi__pic_test:
PUSH RBP
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA RSI,[0x20b751]
CALL 0x0013fdf7
TEST EAX,EAX
JZ 0x00138894
MOV RAX,qword ptr [RBX + 0xc0]
MOV EBP,0x54
LAB_00138857:
CMP RAX,qword ptr [RBX + 0xc8]
JC 0x00138875
CMP dword ptr [RBX + 0x30],0x0
JZ 0x0013887f
MOV RDI,RBX
CALL 0x0013c5ff
MOV RAX,qword ptr [RBX + 0xc0]
LAB_00138875:
INC RAX
MOV qword ptr [RBX + 0xc0],RAX
LAB_0013887f:
DEC EBP
JNZ 0x00138857
LEA RSI,[0x20b756]
MOV RDI,RBX
CALL 0x0013fdf7
JMP 0x00138896
LAB_00138894:
XOR EAX,EAX
LAB_00138896:
MOVUPS XMM0,xmmword ptr [RBX + 0xd0]
MOVUPS xmmword ptr [RBX + 0xc0],XMM0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
/* stbi__pic_test(stbi__context*) */
int8 stbi__pic_test(stbi__context *param_1)
{
int iVar1;
ulong uVar2;
int8 uVar3;
iVar1 = stbi__pic_is4(param_1,&DAT_0020b751);
if (iVar1 == 0) {
uVar3 = 0;
}
else {
uVar2 = *(ulong *)(param_1 + 0xc0);
iVar1 = 0x54;
do {
if (uVar2 < *(ulong *)(param_1 + 200)) {
LAB_00138875:
uVar2 = uVar2 + 1;
*(ulong *)(param_1 + 0xc0) = uVar2;
}
else if (*(int *)(param_1 + 0x30) != 0) {
stbi__refill_buffer(param_1);
uVar2 = *(ulong *)(param_1 + 0xc0);
goto LAB_00138875;
}
iVar1 = iVar1 + -1;
} while (iVar1 != 0);
uVar3 = stbi__pic_is4(param_1,"PICT");
}
*(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 0xd0);
*(int8 *)(param_1 + 200) = *(int8 *)(param_1 + 0xd8);
return uVar3;
}
|
|
59,594
|
stbi__load_gif_main_outofmem(stbi__gif*, unsigned char*, int**)
|
monkey531[P]llama/examples/llava/../../common/stb_image.h
|
static void *stbi__load_gif_main_outofmem(stbi__gif *g, stbi_uc *out, int **delays)
{
STBI_FREE(g->out);
STBI_FREE(g->history);
STBI_FREE(g->background);
if (out) STBI_FREE(out);
if (delays && *delays) STBI_FREE(*delays);
return stbi__errpuc("outofmem", "Out of memory");
}
|
O0
|
c
|
stbi__load_gif_main_outofmem(stbi__gif*, unsigned char*, int**):
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq %rdx, (%rsp)
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x79400
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x79400
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x79400
cmpq $0x0, 0x8(%rsp)
je 0xb31ee
movq 0x8(%rsp), %rdi
callq 0x79400
cmpq $0x0, (%rsp)
je 0xb320b
movq (%rsp), %rax
cmpq $0x0, (%rax)
je 0xb320b
movq (%rsp), %rax
movq (%rax), %rdi
callq 0x79400
leaq 0x39a5c(%rip), %rdi # 0xecc6e
callq 0x85d80
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
cmovneq %rax, %rax
addq $0x18, %rsp
retq
nopw (%rax,%rax)
|
_ZL28stbi__load_gif_main_outofmemP9stbi__gifPhPPi:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov [rsp+18h+var_10], rsi
mov [rsp+18h+var_18], rdx
mov rax, [rsp+18h+var_8]
mov rdi, [rax+8]
call _free
mov rax, [rsp+18h+var_8]
mov rdi, [rax+18h]
call _free
mov rax, [rsp+18h+var_8]
mov rdi, [rax+10h]
call _free
cmp [rsp+18h+var_10], 0
jz short loc_B31EE
mov rdi, [rsp+18h+var_10]
call _free
loc_B31EE:
cmp [rsp+18h+var_18], 0
jz short loc_B320B
mov rax, [rsp+18h+var_18]
cmp qword ptr [rax], 0
jz short loc_B320B
mov rax, [rsp+18h+var_18]
mov rdi, [rax]
call _free
loc_B320B:
lea rdi, aOutofmem; "outofmem"
call _ZL9stbi__errPKc; stbi__err(char const*)
mov ecx, eax
xor eax, eax
cmp ecx, 0
cmovnz rax, rax
add rsp, 18h
retn
|
long long stbi__load_gif_main_outofmem(_QWORD *a1, long long a2, _QWORD *a3)
{
free(a1[1]);
free(a1[3]);
free(a1[2]);
if ( a2 )
free(a2);
if ( a3 && *a3 )
free(*a3);
stbi__err("outofmem");
return 0LL;
}
|
stbi__load_gif_main_outofmem:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV qword ptr [RSP + 0x8],RSI
MOV qword ptr [RSP],RDX
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x00179400
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RAX + 0x18]
CALL 0x00179400
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RAX + 0x10]
CALL 0x00179400
CMP qword ptr [RSP + 0x8],0x0
JZ 0x001b31ee
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00179400
LAB_001b31ee:
CMP qword ptr [RSP],0x0
JZ 0x001b320b
MOV RAX,qword ptr [RSP]
CMP qword ptr [RAX],0x0
JZ 0x001b320b
MOV RAX,qword ptr [RSP]
MOV RDI,qword ptr [RAX]
CALL 0x00179400
LAB_001b320b:
LEA RDI,[0x1ecc6e]
CALL 0x00185d80
MOV ECX,EAX
XOR EAX,EAX
CMP ECX,0x0
CMOVNZ RAX,RAX
ADD RSP,0x18
RET
|
/* stbi__load_gif_main_outofmem(stbi__gif*, unsigned char*, int**) */
int8 stbi__load_gif_main_outofmem(stbi__gif *param_1,uchar *param_2,int **param_3)
{
free(*(void **)(param_1 + 8));
free(*(void **)(param_1 + 0x18));
free(*(void **)(param_1 + 0x10));
if (param_2 != (uchar *)0x0) {
free(param_2);
}
if ((param_3 != (int **)0x0) && (*param_3 != (int *)0x0)) {
free(*param_3);
}
stbi__err("outofmem");
return 0;
}
|
|
59,595
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[]<char const>(char const*) const
|
monkey531[P]llama/common/json.hpp
|
const_reference operator[](T* key) const
{
return operator[](typename object_t::key_type(key));
}
|
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> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[]<char const>(char const*) const:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
leaq 0x7(%rsp), %rdx
movq %r14, %rdi
callq 0x51cf6
movq %rbx, %rdi
movq %r14, %rsi
callq 0xaaab8
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa4963
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a890
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa498c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a890
movq %rbx, %rdi
callq 0x1af20
|
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_:
push r14
push rbx
sub rsp, 28h
mov rbx, rdi
lea r14, [rsp+38h+var_30]
lea rdx, [rsp+38h+var_31]
mov rdi, r14
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixERKS9_; 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[](std::string const&)
mov rbx, rax
lea rax, [rsp+38h+var_20]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_A4963
mov rsi, [rsp+38h+var_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A4963:
mov rax, rbx
add rsp, 28h
pop rbx
pop r14
retn
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_A498C
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A498C:
mov rdi, rbx
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
long long a1,
_BYTE *a2)
{
long long v2; // rbx
void *v4[2]; // [rsp+8h] [rbp-30h] BYREF
long long v5; // [rsp+18h] [rbp-20h] BYREF
std::string::basic_string<std::allocator<char>>(v4, a2);
v2 = 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[](
a1,
v4);
if ( v4[0] != &v5 )
operator delete(v4[0], v5 + 1);
return v2;
}
|
operator[]<char_const>:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
LEA R14,[RSP + 0x8]
LEA RDX,[RSP + 0x7]
MOV RDI,R14
CALL 0x00151cf6
LAB_001a493a:
MOV RDI,RBX
MOV RSI,R14
CALL 0x001aaab8
LAB_001a4945:
MOV RBX,RAX
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001a4963
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011a890
LAB_001a4963:
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R14
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> 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[]<char const>(char const*) const */
basic_json * __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[]<char_const>
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this,char *param_1)
{
basic_json *pbVar1;
allocator local_31;
long *local_30 [2];
long local_20 [2];
std::__cxx11::string::string<std::allocator<char>>((string *)local_30,param_1,&local_31);
/* try { // try from 001a493a to 001a4944 has its CatchHandler @ 001a496e */
pbVar1 = (basic_json *)operator[](this,(string *)local_30);
if (local_30[0] != local_20) {
operator_delete(local_30[0],local_20[0] + 1);
}
return pbVar1;
}
|
|
59,596
|
rw_pr_wrlock
|
eloqsql/mysys/thr_rwlock.c
|
int rw_pr_wrlock(rw_pr_lock_t *rwlock)
{
pthread_mutex_lock(&rwlock->lock);
if (rwlock->active_readers != 0)
{
/* There are active readers. We have to wait until they are gone. */
rwlock->writers_waiting_readers++;
while (rwlock->active_readers != 0)
pthread_cond_wait(&rwlock->no_active_readers, &rwlock->lock);
rwlock->writers_waiting_readers--;
}
/*
We own 'lock' mutex so there is no active writers.
Also there are no active readers.
This means that we can grant wr-lock.
Not releasing 'lock' mutex until unlock will block
both requests for rd and wr-locks.
Set 'active_writer' flag to simplify unlock.
Thanks to the fact wr-lock/unlock in the absence of
contention from readers is essentially mutex lock/unlock
with a few simple checks make this rwlock implementation
wr-lock optimized.
*/
rwlock->active_writer= TRUE;
#ifdef SAFE_MUTEX
rwlock->writer_thread= pthread_self();
#endif
return 0;
}
|
O3
|
c
|
rw_pr_wrlock:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x29200
cmpl $0x0, 0x58(%rbx)
je 0xa5a25
incl 0x5c(%rbx)
leaq 0x28(%rbx), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x29420
cmpl $0x0, 0x58(%rbx)
jne 0xa5a11
decl 0x5c(%rbx)
movb $0x1, 0x60(%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
|
rw_pr_wrlock:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
call _pthread_mutex_lock
cmp dword ptr [rbx+58h], 0
jz short loc_A5A25
inc dword ptr [rbx+5Ch]
lea r14, [rbx+28h]
loc_A5A11:
mov rdi, r14
mov rsi, rbx
call _pthread_cond_wait
cmp dword ptr [rbx+58h], 0
jnz short loc_A5A11
dec dword ptr [rbx+5Ch]
loc_A5A25:
mov byte ptr [rbx+60h], 1
xor eax, eax
pop rbx
pop r14
pop rbp
retn
|
long long rw_pr_wrlock(long long a1)
{
pthread_mutex_lock(a1);
if ( *(_DWORD *)(a1 + 88) )
{
++*(_DWORD *)(a1 + 92);
do
pthread_cond_wait(a1 + 40, a1);
while ( *(_DWORD *)(a1 + 88) );
--*(_DWORD *)(a1 + 92);
}
*(_BYTE *)(a1 + 96) = 1;
return 0LL;
}
|
rw_pr_wrlock:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
CALL 0x00129200
CMP dword ptr [RBX + 0x58],0x0
JZ 0x001a5a25
INC dword ptr [RBX + 0x5c]
LEA R14,[RBX + 0x28]
LAB_001a5a11:
MOV RDI,R14
MOV RSI,RBX
CALL 0x00129420
CMP dword ptr [RBX + 0x58],0x0
JNZ 0x001a5a11
DEC dword ptr [RBX + 0x5c]
LAB_001a5a25:
MOV byte ptr [RBX + 0x60],0x1
XOR EAX,EAX
POP RBX
POP R14
POP RBP
RET
|
int8 rw_pr_wrlock(pthread_mutex_t *param_1)
{
pthread_mutex_lock(param_1);
if (*(int *)((long)param_1 + 0x58) != 0) {
*(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1;
do {
pthread_cond_wait((pthread_cond_t *)(param_1 + 1),param_1);
} while (*(int *)((long)param_1 + 0x58) != 0);
*(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + -1;
}
*(int1 *)((long)param_1 + 0x60) = 1;
return 0;
}
|
|
59,597
|
fmt::v10::appender fmt::v10::detail::write_padded<(fmt::v10::align::type)1, fmt::v10::appender, char, fmt::v10::appender fmt::v10::detail::write_char<char, fmt::v10::appender>(fmt::v10::appender, char, fmt::v10::format_specs<char> const&)::'lambda'(fmt::v10::appender)&>(fmt::v10::appender, fmt::v10::format_specs<char> const&, unsigned long, unsigned long, fmt::v10::appender fmt::v10::detail::write_char<char, fmt::v10::appender>(fmt::v10::appender, char, fmt::v10::format_specs<char> const&)::'lambda'(fmt::v10::appender)&)
|
AlayaLite/build_O3/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h
|
FMT_CONSTEXPR auto write_padded(OutputIt out, const format_specs<Char>& specs,
size_t size, size_t width, F&& f) -> OutputIt {
static_assert(align == align::left || align == align::right, "");
unsigned spec_width = to_unsigned(specs.width);
size_t padding = spec_width > width ? spec_width - width : 0;
// Shifts are encoded as string literals because static constexpr is not
// supported in constexpr functions.
auto* shifts = align == align::left ? "\x1f\x1f\x00\x01" : "\x00\x1f\x00\x01";
size_t left_padding = padding >> shifts[specs.align];
size_t right_padding = padding - left_padding;
auto it = reserve(out, size + padding * specs.fill.size());
if (left_padding != 0) it = fill(it, left_padding, specs.fill);
it = f(it);
if (right_padding != 0) it = fill(it, right_padding, specs.fill);
return base_iterator(out, it);
}
|
O3
|
c
|
fmt::v10::appender fmt::v10::detail::write_padded<(fmt::v10::align::type)1, fmt::v10::appender, char, fmt::v10::appender fmt::v10::detail::write_char<char, fmt::v10::appender>(fmt::v10::appender, char, fmt::v10::format_specs<char> const&)::'lambda'(fmt::v10::appender)&>(fmt::v10::appender, fmt::v10::format_specs<char> const&, unsigned long, unsigned long, fmt::v10::appender fmt::v10::detail::write_char<char, fmt::v10::appender>(fmt::v10::appender, char, fmt::v10::format_specs<char> const&)::'lambda'(fmt::v10::appender)&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl (%rsi), %eax
xorl %r14d, %r14d
subq %rcx, %rax
cmovaeq %rax, %r14
movzwl 0x9(%rsi), %eax
andl $0xf, %eax
leaq 0x35240(%rip), %rcx # 0x849e4
movb (%rax,%rcx), %cl
movq %r14, %r15
shrq %cl, %r15
movq %r8, %r12
movq %rdi, %r13
addq $0xb, %rbx
testq %r15, %r15
je 0x4f7cd
movq %r13, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x43525
movq %rax, %r13
movq (%r12), %rax
movl $0xffffff, %ebp # imm = 0xFFFFFF
andl (%rax), %ebp
je 0x4f814
movq 0x10(%r13), %rax
leaq 0x1(%rax), %rsi
cmpq %rsi, 0x18(%r13)
jae 0x4f7f9
movq (%r13), %rax
movq %r13, %rdi
callq *(%rax)
movq 0x10(%r13), %rax
leaq 0x1(%rax), %rsi
movq 0x8(%r13), %rcx
movq %rsi, 0x10(%r13)
movb %bpl, (%rcx,%rax)
movl %ebp, %eax
shrl $0x8, %eax
cmpl $0xff, %ebp
movl %eax, %ebp
ja 0x4f7da
movq 0x8(%r12), %rdi
movq 0x10(%r12), %rax
movq 0x8(%rax), %rdx
movq 0x10(%rax), %rcx
movq %r13, %rsi
callq 0x44fb0
cmpq %r15, %r14
jne 0x4f842
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
subq %r15, %r14
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x43525
nopl (%rax)
|
_ZN3fmt3v106detail12write_paddedILNS0_5align4typeE2ENS0_8appenderEcZNS1_9write_intIS5_ocEET_S7_T0_jRKNS0_12format_specsIT1_EERKNS1_14digit_groupingISA_EEEUlS5_E_EES8_S8_SD_mmOT2_:
push rbp; char
push r15; __int64
push r14; int
push r13; void *
push r12; int
push rbx; int
push rax; int
mov rbx, rsi
mov eax, [rsi]
xor r14d, r14d
sub rax, rcx
cmovnb r14, rax
movzx eax, word ptr [rsi+9]
and eax, 0Fh
lea rcx, byte_849E4
mov cl, [rax+rcx]
mov r15, r14
shr r15, cl
mov r12, r8
mov r13, rdi
add rbx, 0Bh
test r15, r15
jz short loc_4F7CD
mov rdi, r13
mov rsi, r15
mov rdx, rbx
call _ZN3fmt3v106detail4fillINS0_8appenderEcEET_S4_mRKNS1_6fill_tIT0_EE; fmt::v10::detail::fill<fmt::v10::appender,char>(fmt::v10::appender,ulong,fmt::v10::detail::fill_t<char> const&)
mov r13, rax
loc_4F7CD:
mov rax, [r12]
mov ebp, 0FFFFFFh
and ebp, [rax]
jz short loc_4F814
loc_4F7DA:
mov rax, [r13+10h]
lea rsi, [rax+1]
cmp [r13+18h], rsi
jnb short loc_4F7F9
mov rax, [r13+0]
mov rdi, r13
call qword ptr [rax]
mov rax, [r13+10h]
lea rsi, [rax+1]
loc_4F7F9:
mov rcx, [r13+8]
mov [r13+10h], rsi
mov [rcx+rax], bpl
mov eax, ebp
shr eax, 8
cmp ebp, 0FFh
mov ebp, eax
ja short loc_4F7DA
loc_4F814:
mov rdi, [r12+8]; int
mov rax, [r12+10h]
mov rdx, [rax+8]; int
mov rcx, [rax+10h]; int
mov rsi, r13; int
call _ZNK3fmt3v106detail14digit_groupingIcE5applyINS0_8appenderEcEET_S6_NS0_17basic_string_viewIT0_EE; fmt::v10::detail::digit_grouping<char>::apply<fmt::v10::appender,char>(fmt::v10::appender,fmt::v10::basic_string_view<char>)
cmp r14, r15
jnz short loc_4F842
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4F842:
sub r14, r15
mov rdi, rax
mov rsi, r14
mov rdx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _ZN3fmt3v106detail4fillINS0_8appenderEcEET_S4_mRKNS1_6fill_tIT0_EE; fmt::v10::detail::fill<fmt::v10::appender,char>(fmt::v10::appender,ulong,fmt::v10::detail::fill_t<char> const&)
|
long long fmt::v10::detail::write_padded<(fmt::v10::align::type)2,fmt::v10::appender,char,fmt::v10::appender fmt::v10::detail::write_int<fmt::v10::appender,unsigned __int128,char>(fmt::v10::appender,unsigned __int128,unsigned int,fmt::v10::format_specs<char> const&,fmt::v10::detail::digit_grouping<char> const&)::{lambda(fmt::v10::appender)#1}>(
long long a1,
unsigned int *a2,
long long a3,
unsigned long long a4,
long long a5)
{
unsigned long long v5; // rax
unsigned long long v6; // r14
bool v7; // cf
unsigned long long v8; // rax
char v9; // cl
unsigned long long v10; // r15
long long v12; // r13
long long v13; // rbx
unsigned int v14; // ebp
long long v15; // rax
long long v16; // rsi
long long v17; // rcx
bool v18; // cc
long long result; // rax
v5 = *a2;
v6 = 0LL;
v7 = v5 < a4;
v8 = v5 - a4;
if ( !v7 )
v6 = v8;
v9 = byte_849E4[*(_WORD *)((_BYTE *)a2 + 9) & 0xF];
v10 = v6 >> v9;
v12 = a1;
v13 = (long long)a2 + 11;
if ( v6 >> v9 )
v12 = fmt::v10::detail::fill<fmt::v10::appender,char>(a1, v6 >> v9, v13);
v14 = **(_DWORD **)a5 & 0xFFFFFF;
if ( v14 )
{
do
{
v15 = *(_QWORD *)(v12 + 16);
v16 = v15 + 1;
if ( *(_QWORD *)(v12 + 24) < (unsigned long long)(v15 + 1) )
{
(**(void ( ***)(long long))v12)(v12);
v15 = *(_QWORD *)(v12 + 16);
v16 = v15 + 1;
}
v17 = *(_QWORD *)(v12 + 8);
*(_QWORD *)(v12 + 16) = v16;
*(_BYTE *)(v17 + v15) = v14;
v18 = v14 <= 0xFF;
v14 >>= 8;
}
while ( !v18 );
}
result = fmt::v10::detail::digit_grouping<char>::apply<fmt::v10::appender,char>(
*(_QWORD *)(a5 + 8),
v12,
*(_QWORD *)(*(_QWORD *)(a5 + 16) + 8LL),
*(_QWORD *)(*(_QWORD *)(a5 + 16) + 16LL));
if ( v6 != v10 )
return fmt::v10::detail::fill<fmt::v10::appender,char>(result, v6 - v10, v13);
return result;
}
|
write_padded<(fmt::v10::align::type)2,fmt::v10::appender,char,fmt::v10::detail::write_int<fmt::v10::appender,unsigned__int128,char>(fmt::v10::appender,unsigned__int128,unsigned_int,fmt::v10::format_specs<char>const&,fmt::v10::detail::digit_grouping<char>const&)::{lambda(fmt::v10::appender)#1}>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV EAX,dword ptr [RSI]
XOR R14D,R14D
SUB RAX,RCX
CMOVNC R14,RAX
MOVZX EAX,word ptr [RSI + 0x9]
AND EAX,0xf
LEA RCX,[0x1849e4]
MOV CL,byte ptr [RAX + RCX*0x1]
MOV R15,R14
SHR R15,CL
MOV R12,R8
MOV R13,RDI
ADD RBX,0xb
TEST R15,R15
JZ 0x0014f7cd
MOV RDI,R13
MOV RSI,R15
MOV RDX,RBX
CALL 0x00143525
MOV R13,RAX
LAB_0014f7cd:
MOV RAX,qword ptr [R12]
MOV EBP,0xffffff
AND EBP,dword ptr [RAX]
JZ 0x0014f814
LAB_0014f7da:
MOV RAX,qword ptr [R13 + 0x10]
LEA RSI,[RAX + 0x1]
CMP qword ptr [R13 + 0x18],RSI
JNC 0x0014f7f9
MOV RAX,qword ptr [R13]
MOV RDI,R13
CALL qword ptr [RAX]
MOV RAX,qword ptr [R13 + 0x10]
LEA RSI,[RAX + 0x1]
LAB_0014f7f9:
MOV RCX,qword ptr [R13 + 0x8]
MOV qword ptr [R13 + 0x10],RSI
MOV byte ptr [RCX + RAX*0x1],BPL
MOV EAX,EBP
SHR EAX,0x8
CMP EBP,0xff
MOV EBP,EAX
JA 0x0014f7da
LAB_0014f814:
MOV RDI,qword ptr [R12 + 0x8]
MOV RAX,qword ptr [R12 + 0x10]
MOV RDX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RAX + 0x10]
MOV RSI,R13
CALL 0x00144fb0
CMP R14,R15
JNZ 0x0014f842
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014f842:
SUB R14,R15
MOV RDI,RAX
MOV RSI,R14
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00143525
|
/* fmt::v10::appender fmt::v10::detail::write_padded<(fmt::v10::align::type)2, fmt::v10::appender,
char, fmt::v10::detail::write_int<fmt::v10::appender, unsigned __int128,
char>(fmt::v10::appender, unsigned __int128, unsigned int, fmt::v10::format_specs<char> const&,
fmt::v10::detail::digit_grouping<char>
const&)::{lambda(fmt::v10::appender)#1}>(fmt::v10::appender, fmt::v10::format_specs<char> const&,
unsigned long, unsigned long, fmt::v10::detail::write_int<fmt::v10::appender, unsigned __int128,
char>(fmt::v10::appender, unsigned __int128, unsigned int, fmt::v10::format_specs<char> const&,
fmt::v10::detail::digit_grouping<char> const&)::{lambda(fmt::v10::appender)#1}&&) */
void fmt::v10::detail::
write_padded<(fmt::v10::align::type)2,fmt::v10::appender,char,fmt::v10::detail::write_int<fmt::v10::appender,unsigned__int128,char>(fmt::v10::appender,unsigned__int128,unsigned_int,fmt::v10::format_specs<char>const&,fmt::v10::detail::digit_grouping<char>const&)::_lambda(fmt::v10::appender)_1_>
(int8 *param_1,uint *param_2,int8 param_3,ulong param_4,
int8 *param_5)
{
bool bVar1;
long lVar2;
int8 uVar3;
uint uVar4;
ulong uVar5;
ulong uVar6;
ulong uVar7;
uVar6 = 0;
if (param_4 <= *param_2) {
uVar6 = *param_2 - param_4;
}
uVar7 = uVar6 >> ((&DAT_001849e4)[*(ushort *)((long)param_2 + 9) & 0xf] & 0x3f);
if (uVar7 != 0) {
param_1 = (int8 *)fill<fmt::v10::appender,char>(param_1,uVar7,(long)param_2 + 0xb);
}
uVar4 = *(uint *)*param_5 & 0xffffff;
if ((*(uint *)*param_5 & 0xffffff) != 0) {
do {
lVar2 = param_1[2];
uVar5 = lVar2 + 1;
if ((ulong)param_1[3] < uVar5) {
(**(code **)*param_1)(param_1);
lVar2 = param_1[2];
uVar5 = lVar2 + 1;
}
param_1[2] = uVar5;
*(char *)(param_1[1] + lVar2) = (char)uVar4;
bVar1 = 0xff < uVar4;
uVar4 = uVar4 >> 8;
} while (bVar1);
}
uVar3 = digit_grouping<char>::apply<fmt::v10::appender,char>
(param_5[1],param_1,*(int8 *)(param_5[2] + 8),
*(int8 *)(param_5[2] + 0x10));
if (uVar6 == uVar7) {
return;
}
fill<fmt::v10::appender,char>(uVar3,uVar6 - uVar7,(long)param_2 + 0xb);
return;
}
|
|
59,598
|
google::protobuf::FileOptions* google::protobuf::Arena::CreateMaybeMessage<google::protobuf::FileOptions>(google::protobuf::Arena*)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
|
PROTOBUF_NOINLINE ::PROTOBUF_NAMESPACE_ID::FileOptions*
Arena::CreateMaybeMessage< ::PROTOBUF_NAMESPACE_ID::FileOptions >(Arena* arena) {
return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::FileOptions >(arena);
}
|
O0
|
cpp
|
google::protobuf::FileOptions* google::protobuf::Arena::CreateMaybeMessage<google::protobuf::FileOptions>(google::protobuf::Arena*):
subq $0xb8, %rsp
movq %rdi, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0xd206f
movl $0xa8, %edi
callq 0x13450
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x10(%rsp)
xorl %edx, %edx
movl %edx, %esi
callq 0xbc640
jmp 0xd2060
movq 0x10(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
callq 0x13400
movq 0x38(%rsp), %rdi
callq 0x13750
movq 0x10(%rsp), %rax
movq %rax, 0x28(%rsp)
jmp 0xd2223
movq 0x20(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq %rax, (%rsp)
movq %rax, 0x98(%rsp)
movq $0xa8, 0x90(%rsp)
movq $0x8, 0x88(%rsp)
movq $0x0, 0x80(%rsp)
leaq 0x1a70fb(%rip), %rax # 0x2791b0
movq %rax, 0x78(%rsp)
movq 0x98(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x80(%rsp)
jne 0xd20fe
movq 0x8(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x88(%rsp), %rdx
movq 0x78(%rsp), %rcx
callq 0xdf5f0
movq %rax, 0xa0(%rsp)
jmp 0xd2203
cmpq $0x8, 0x88(%rsp)
ja 0xd2162
movq 0x90(%rsp), %rdi
callq 0xdf6a0
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq 0x78(%rsp), %rdx
callq 0x1816c0
movq %rax, 0x68(%rsp)
movq %rdx, 0x70(%rsp)
movq 0x68(%rsp), %rcx
movq 0x70(%rsp), %rax
movq %rcx, (%rax)
movq 0x80(%rsp), %rcx
movq 0x70(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x68(%rsp), %rax
movq %rax, 0xa0(%rsp)
jmp 0xd2203
movq 0x8(%rsp), %rdi
movq 0x90(%rsp), %rsi
addq 0x88(%rsp), %rsi
subq $0x8, %rsi
movq 0x78(%rsp), %rdx
callq 0x1816c0
movq %rax, 0x58(%rsp)
movq %rdx, 0x60(%rsp)
movq 0x58(%rsp), %rcx
movq 0x88(%rsp), %rax
movq %rcx, 0xb0(%rsp)
movq %rax, 0xa8(%rsp)
movq 0xb0(%rsp), %rax
addq 0xa8(%rsp), %rax
subq $0x1, %rax
movq 0xa8(%rsp), %rcx
xorq $-0x1, %rcx
addq $0x1, %rcx
andq %rcx, %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rcx
movq 0x60(%rsp), %rax
movq %rcx, (%rax)
movq 0x80(%rsp), %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x50(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq (%rsp), %rax
movq 0xa0(%rsp), %rdi
movq %rax, 0x40(%rsp)
leaq 0x40(%rsp), %rsi
callq 0xe3d50
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
addq $0xb8, %rsp
retq
|
_ZN6google8protobuf5Arena18CreateMaybeMessageINS0_11FileOptionsEJEEEPT_PS1_DpOT0_:
sub rsp, 0B8h
mov [rsp+0B8h+var_A0], rdi
mov rax, [rsp+0B8h+var_A0]
mov [rsp+0B8h+var_98], rax
cmp [rsp+0B8h+var_98], 0
jnz short loc_D206F
mov edi, 0A8h; unsigned __int64
call __Znwm; operator new(ulong)
mov rdi, rax; this
mov rax, rdi
mov [rsp+0B8h+var_A8], rax
xor edx, edx; bool
mov esi, edx; google::protobuf::Arena *
call _ZN6google8protobuf11FileOptionsC2EPNS0_5ArenaEb; google::protobuf::FileOptions::FileOptions(google::protobuf::Arena *,bool)
jmp short loc_D2060
mov rdi, [rsp+arg_8]; void *
mov rcx, rax
mov eax, edx
mov [rsp+arg_30], rcx
mov [rsp+arg_2C], eax
call __ZdlPv; operator delete(void *)
mov rdi, [rsp+arg_30]
call __Unwind_Resume
loc_D2060:
mov rax, [rsp+0B8h+var_A8]
mov [rsp+0B8h+var_90], rax
jmp loc_D2223
loc_D206F:
mov rax, [rsp+0B8h+var_98]
mov [rsp+0B8h+var_70], rax
mov rax, [rsp+0B8h+var_70]
mov [rsp+0B8h+var_B8], rax
mov [rsp+0B8h+var_20], rax
mov [rsp+0B8h+var_28], 0A8h
mov [rsp+0B8h+var_30], 8
mov [rsp+0B8h+var_38], 0
lea rax, _ZTIN6google8protobuf11FileOptionsE; `typeinfo for'google::protobuf::FileOptions
mov [rsp+0B8h+var_40], rax
mov rax, [rsp+0B8h+var_20]
mov [rsp+0B8h+var_B0], rax
cmp [rsp+0B8h+var_38], 0
jnz short loc_D20FE
mov rdi, [rsp+0B8h+var_B0]; this
mov rsi, [rsp+0B8h+var_28]; unsigned __int64
mov rdx, [rsp+0B8h+var_30]; unsigned __int64
mov rcx, [rsp+0B8h+var_40]; type_info *
call _ZN6google8protobuf5Arena23AllocateAlignedWithHookEmmPKSt9type_info; google::protobuf::Arena::AllocateAlignedWithHook(ulong,ulong,std::type_info const*)
mov [rsp+0B8h+var_18], rax
jmp loc_D2203
loc_D20FE:
cmp [rsp+0B8h+var_30], 8
ja short loc_D2162
mov rdi, [rsp+0B8h+var_28]; this
call _ZN6google8protobuf8internal10AlignUpTo8Em; google::protobuf::internal::AlignUpTo8(ulong)
mov rdi, [rsp+0B8h+var_B0]; this
mov rsi, rax; unsigned __int64
mov rdx, [rsp+0B8h+var_40]; type_info *
call _ZN6google8protobuf5Arena26AllocateAlignedWithCleanupEmPKSt9type_info; google::protobuf::Arena::AllocateAlignedWithCleanup(ulong,std::type_info const*)
mov [rsp+0B8h+var_50], rax
mov [rsp+0B8h+var_48], rdx
mov rcx, [rsp+0B8h+var_50]
mov rax, [rsp+0B8h+var_48]
mov [rax], rcx
mov rcx, [rsp+0B8h+var_38]
mov rax, [rsp+0B8h+var_48]
mov [rax+8], rcx
mov rax, [rsp+0B8h+var_50]
mov [rsp+0B8h+var_18], rax
jmp loc_D2203
loc_D2162:
mov rdi, [rsp+0B8h+var_B0]; this
mov rsi, [rsp+0B8h+var_28]
add rsi, [rsp+0B8h+var_30]
sub rsi, 8; unsigned __int64
mov rdx, [rsp+0B8h+var_40]; type_info *
call _ZN6google8protobuf5Arena26AllocateAlignedWithCleanupEmPKSt9type_info; google::protobuf::Arena::AllocateAlignedWithCleanup(ulong,std::type_info const*)
mov [rsp+0B8h+var_60], rax
mov [rsp+0B8h+var_58], rdx
mov rcx, [rsp+0B8h+var_60]
mov rax, [rsp+0B8h+var_30]
mov [rsp+0B8h+var_8], rcx
mov [rsp+0B8h+var_10], rax
mov rax, [rsp+0B8h+var_8]
add rax, [rsp+0B8h+var_10]
sub rax, 1
mov rcx, [rsp+0B8h+var_10]
xor rcx, 0FFFFFFFFFFFFFFFFh
add rcx, 1
and rax, rcx
mov [rsp+0B8h+var_68], rax
mov rcx, [rsp+0B8h+var_68]
mov rax, [rsp+0B8h+var_58]
mov [rax], rcx
mov rcx, [rsp+0B8h+var_38]
mov rax, [rsp+0B8h+var_58]
mov [rax+8], rcx
mov rax, [rsp+0B8h+var_68]
mov [rsp+0B8h+var_18], rax
loc_D2203:
mov rax, [rsp+0B8h+var_B8]
mov rdi, [rsp+0B8h+var_18]
mov [rsp+0B8h+var_78], rax
lea rsi, [rsp+0B8h+var_78]
call _ZN6google8protobuf5Arena14InternalHelperINS0_11FileOptionsEE9ConstructIJPS1_EEEPS3_PvDpOT_; google::protobuf::Arena::InternalHelper<google::protobuf::FileOptions>::Construct<google::protobuf::Arena*>(void *,google::protobuf::Arena* &&)
mov [rsp+0B8h+var_90], rax
loc_D2223:
mov rax, [rsp+0B8h+var_90]
add rsp, 0B8h
retn
|
google::protobuf::FileOptions * google::protobuf::Arena::CreateMaybeMessage<google::protobuf::FileOptions>(
google::protobuf::Arena *a1)
{
google::protobuf::FileOptions *v2; // [rsp+10h] [rbp-A8h]
_QWORD v4[12]; // [rsp+40h] [rbp-78h] BYREF
long long AlignedWithHook; // [rsp+A0h] [rbp-18h]
if ( a1 )
{
v4[1] = a1;
v4[11] = a1;
v4[10] = 168LL;
v4[9] = 8LL;
v4[8] = 0LL;
v4[7] = &`typeinfo for'google::protobuf::FileOptions;
AlignedWithHook = google::protobuf::Arena::AllocateAlignedWithHook(
a1,
0xA8uLL,
8uLL,
(const type_info *)&`typeinfo for'google::protobuf::FileOptions);
v4[0] = a1;
return (google::protobuf::FileOptions *)google::protobuf::Arena::InternalHelper<google::protobuf::FileOptions>::Construct<google::protobuf::Arena*>(
AlignedWithHook,
v4);
}
else
{
v2 = (google::protobuf::FileOptions *)operator new(0xA8uLL);
google::protobuf::FileOptions::FileOptions(v2, 0LL, 0);
return v2;
}
}
|
CreateMaybeMessage<google::protobuf::FileOptions>:
SUB RSP,0xb8
MOV qword ptr [RSP + 0x18],RDI
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x20],RAX
CMP qword ptr [RSP + 0x20],0x0
JNZ 0x001d206f
MOV EDI,0xa8
CALL 0x00113450
MOV RDI,RAX
MOV RAX,RDI
MOV qword ptr [RSP + 0x10],RAX
LAB_001d2033:
XOR EDX,EDX
MOV ESI,EDX
CALL 0x001bc640
LAB_001d203c:
JMP 0x001d2060
LAB_001d2060:
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x28],RAX
JMP 0x001d2223
LAB_001d206f:
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x48],RAX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x98],RAX
MOV qword ptr [RSP + 0x90],0xa8
MOV qword ptr [RSP + 0x88],0x8
MOV qword ptr [RSP + 0x80],0x0
LEA RAX,[0x3791b0]
MOV qword ptr [RSP + 0x78],RAX
MOV RAX,qword ptr [RSP + 0x98]
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RSP + 0x80],0x0
JNZ 0x001d20fe
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x90]
MOV RDX,qword ptr [RSP + 0x88]
MOV RCX,qword ptr [RSP + 0x78]
CALL 0x001df5f0
MOV qword ptr [RSP + 0xa0],RAX
JMP 0x001d2203
LAB_001d20fe:
CMP qword ptr [RSP + 0x88],0x8
JA 0x001d2162
MOV RDI,qword ptr [RSP + 0x90]
CALL 0x001df6a0
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,RAX
MOV RDX,qword ptr [RSP + 0x78]
CALL 0x002816c0
MOV qword ptr [RSP + 0x68],RAX
MOV qword ptr [RSP + 0x70],RDX
MOV RCX,qword ptr [RSP + 0x68]
MOV RAX,qword ptr [RSP + 0x70]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RSP + 0x80]
MOV RAX,qword ptr [RSP + 0x70]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0xa0],RAX
JMP 0x001d2203
LAB_001d2162:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x90]
ADD RSI,qword ptr [RSP + 0x88]
SUB RSI,0x8
MOV RDX,qword ptr [RSP + 0x78]
CALL 0x002816c0
MOV qword ptr [RSP + 0x58],RAX
MOV qword ptr [RSP + 0x60],RDX
MOV RCX,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RSP + 0x88]
MOV qword ptr [RSP + 0xb0],RCX
MOV qword ptr [RSP + 0xa8],RAX
MOV RAX,qword ptr [RSP + 0xb0]
ADD RAX,qword ptr [RSP + 0xa8]
SUB RAX,0x1
MOV RCX,qword ptr [RSP + 0xa8]
XOR RCX,-0x1
ADD RCX,0x1
AND RAX,RCX
MOV qword ptr [RSP + 0x50],RAX
MOV RCX,qword ptr [RSP + 0x50]
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RSP + 0x80]
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0xa0],RAX
LAB_001d2203:
MOV RAX,qword ptr [RSP]
MOV RDI,qword ptr [RSP + 0xa0]
MOV qword ptr [RSP + 0x40],RAX
LEA RSI,[RSP + 0x40]
CALL 0x001e3d50
MOV qword ptr [RSP + 0x28],RAX
LAB_001d2223:
MOV RAX,qword ptr [RSP + 0x28]
ADD RSP,0xb8
RET
|
/* WARNING: Removing unreachable block (ram,0x001d20fe) */
/* WARNING: Removing unreachable block (ram,0x001d2109) */
/* WARNING: Removing unreachable block (ram,0x001d2162) */
/* google::protobuf::FileOptions*
google::protobuf::Arena::CreateMaybeMessage<google::protobuf::FileOptions>(google::protobuf::Arena*)
*/
FileOptions *
google::protobuf::Arena::CreateMaybeMessage<google::protobuf::FileOptions>(Arena *param_1)
{
FileOptions *local_90;
Arena *local_78;
Arena *local_70;
pointer_____offset_0x10___ *local_40;
int8 local_38;
int8 local_30;
int8 local_28;
Arena *local_20;
void *local_18;
if (param_1 == (Arena *)0x0) {
local_90 = (FileOptions *)operator_new(0xa8);
/* try { // try from 001d2033 to 001d203b has its CatchHandler @ 001d203e */
FileOptions::FileOptions(local_90,(Arena *)0x0,false);
}
else {
local_28 = 0xa8;
local_30 = 8;
local_38 = 0;
local_40 = &FileOptions::typeinfo;
local_70 = param_1;
local_20 = param_1;
local_18 = (void *)AllocateAlignedWithHook(param_1,0xa8,8,(type_info *)&FileOptions::typeinfo);
local_78 = param_1;
local_90 = InternalHelper<google::protobuf::FileOptions>::Construct<google::protobuf::Arena*>
(local_18,&local_78);
}
return local_90;
}
|
|
59,599
|
my_strnncoll_latin1_de
|
eloqsql/strings/ctype-latin1.c
|
static int my_strnncoll_latin1_de(CHARSET_INFO *cs __attribute__((unused)),
const uchar *a, size_t a_length,
const uchar *b, size_t b_length,
my_bool b_is_prefix)
{
const uchar *a_end= a + a_length;
const uchar *b_end= b + b_length;
uchar a_char, a_extend= 0, b_char, b_extend= 0;
while ((a < a_end || a_extend) && (b < b_end || b_extend))
{
if (a_extend)
{
a_char=a_extend; a_extend=0;
}
else
{
a_extend=combo2map[*a];
a_char=combo1map[*a++];
}
if (b_extend)
{
b_char=b_extend; b_extend=0;
}
else
{
b_extend=combo2map[*b];
b_char=combo1map[*b++];
}
if (a_char != b_char)
return (int) a_char - (int) b_char;
}
/*
A simple test of string lengths won't work -- we test to see
which string ran out first
*/
return ((a < a_end || a_extend) ? (b_is_prefix ? 0 : 1) :
(b < b_end || b_extend) ? -1 : 0);
}
|
O3
|
c
|
my_strnncoll_latin1_de:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
addq %rsi, %rdx
addq %rcx, %r8
xorl %r10d, %r10d
leaq 0x1719f0(%rip), %rax # 0x224620
leaq 0x1718e9(%rip), %rdi # 0x224520
xorl %r11d, %r11d
cmpq %r8, %rcx
setb %r14b
testb %r11b, %r11b
setne %bl
orb %r14b, %bl
cmpq %rdx, %rsi
jb 0xb2c54
testb %r10b, %r10b
je 0xb2c9e
testb %bl, %bl
je 0xb2ca5
testb %r10b, %r10b
je 0xb2c65
movl %r10d, %ebx
xorl %r10d, %r10d
jmp 0xb2c72
movzbl (%rsi), %ebx
movb (%rbx,%rax), %r10b
incq %rsi
movb (%rbx,%rdi), %bl
testb %r11b, %r11b
je 0xb2c7f
movl %r11d, %r14d
xorl %r11d, %r11d
jmp 0xb2c8e
movzbl (%rcx), %r14d
movb (%r14,%rax), %r11b
incq %rcx
movb (%r14,%rdi), %r14b
cmpb %r14b, %bl
je 0xb2c3a
movzbl %r14b, %ecx
movzbl %bl, %eax
subl %ecx, %eax
jmp 0xb2cad
movzbl %bl, %eax
negl %eax
jmp 0xb2cad
xorl %eax, %eax
testb %r9b, %r9b
sete %al
popq %rbx
popq %r14
popq %rbp
retq
|
my_strnncoll_latin1_de:
push rbp
mov rbp, rsp
push r14
push rbx
add rdx, rsi
add r8, rcx
xor r10d, r10d
lea rax, combo2map
lea rdi, combo1map
xor r11d, r11d
loc_B2C3A:
cmp rcx, r8
setb r14b
test r11b, r11b
setnz bl
or bl, r14b
cmp rsi, rdx
jb short loc_B2C54
test r10b, r10b
jz short loc_B2C9E
loc_B2C54:
test bl, bl
jz short loc_B2CA5
test r10b, r10b
jz short loc_B2C65
mov ebx, r10d
xor r10d, r10d
jmp short loc_B2C72
loc_B2C65:
movzx ebx, byte ptr [rsi]
mov r10b, [rbx+rax]
inc rsi
mov bl, [rbx+rdi]
loc_B2C72:
test r11b, r11b
jz short loc_B2C7F
mov r14d, r11d
xor r11d, r11d
jmp short loc_B2C8E
loc_B2C7F:
movzx r14d, byte ptr [rcx]
mov r11b, [r14+rax]
inc rcx
mov r14b, [r14+rdi]
loc_B2C8E:
cmp bl, r14b
jz short loc_B2C3A
movzx ecx, r14b
movzx eax, bl
sub eax, ecx
jmp short loc_B2CAD
loc_B2C9E:
movzx eax, bl
neg eax
jmp short loc_B2CAD
loc_B2CA5:
xor eax, eax
test r9b, r9b
setz al
loc_B2CAD:
pop rbx
pop r14
pop rbp
retn
|
long long my_strnncoll_latin1_de(
long long a1,
unsigned __int8 *a2,
long long a3,
unsigned __int8 *a4,
long long a5,
char a6)
{
unsigned __int8 *v6; // rdx
unsigned __int8 *v7; // r8
unsigned __int8 v8; // r10
unsigned __int8 v9; // r11
bool v10; // bl
unsigned __int8 v11; // bl
long long v12; // rbx
unsigned __int8 v13; // r14
long long v14; // r14
v6 = &a2[a3];
v7 = &a4[a5];
v8 = 0;
v9 = 0;
while ( 1 )
{
v10 = a4 < v7 || v9 != 0;
if ( a2 >= v6 && !v8 )
return (unsigned int)-v10;
if ( !v10 )
break;
if ( v8 )
{
v11 = v8;
v8 = 0;
}
else
{
v12 = *a2;
v8 = combo2map[v12];
++a2;
v11 = combo1map[v12];
}
if ( v9 )
{
v13 = v9;
v9 = 0;
}
else
{
v14 = *a4;
v9 = combo2map[v14];
++a4;
v13 = combo1map[v14];
}
if ( v11 != v13 )
return v11 - (unsigned int)v13;
}
return a6 == 0;
}
|
my_strnncoll_latin1_de:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
ADD RDX,RSI
ADD R8,RCX
XOR R10D,R10D
LEA RAX,[0x324620]
LEA RDI,[0x324520]
XOR R11D,R11D
LAB_001b2c3a:
CMP RCX,R8
SETC R14B
TEST R11B,R11B
SETNZ BL
OR BL,R14B
CMP RSI,RDX
JC 0x001b2c54
TEST R10B,R10B
JZ 0x001b2c9e
LAB_001b2c54:
TEST BL,BL
JZ 0x001b2ca5
TEST R10B,R10B
JZ 0x001b2c65
MOV EBX,R10D
XOR R10D,R10D
JMP 0x001b2c72
LAB_001b2c65:
MOVZX EBX,byte ptr [RSI]
MOV R10B,byte ptr [RBX + RAX*0x1]
INC RSI
MOV BL,byte ptr [RBX + RDI*0x1]
LAB_001b2c72:
TEST R11B,R11B
JZ 0x001b2c7f
MOV R14D,R11D
XOR R11D,R11D
JMP 0x001b2c8e
LAB_001b2c7f:
MOVZX R14D,byte ptr [RCX]
MOV R11B,byte ptr [R14 + RAX*0x1]
INC RCX
MOV R14B,byte ptr [R14 + RDI*0x1]
LAB_001b2c8e:
CMP BL,R14B
JZ 0x001b2c3a
MOVZX ECX,R14B
MOVZX EAX,BL
SUB EAX,ECX
JMP 0x001b2cad
LAB_001b2c9e:
MOVZX EAX,BL
NEG EAX
JMP 0x001b2cad
LAB_001b2ca5:
XOR EAX,EAX
TEST R9B,R9B
SETZ AL
LAB_001b2cad:
POP RBX
POP R14
POP RBP
RET
|
uint my_strnncoll_latin1_de
(int8 param_1,byte *param_2,long param_3,byte *param_4,long param_5,
char param_6)
{
byte *pbVar1;
byte bVar2;
byte *pbVar3;
byte bVar4;
byte bVar5;
byte bVar6;
pbVar1 = param_2 + param_3;
pbVar3 = param_4 + param_5;
bVar4 = 0;
bVar5 = 0;
do {
if ((pbVar1 <= param_2) && (bVar4 == 0)) {
return -(uint)(bVar5 != 0 || param_4 < pbVar3);
}
if (bVar5 == 0 && param_4 >= pbVar3) {
return (uint)(param_6 == '\0');
}
if (bVar4 == 0) {
bVar2 = *param_2;
bVar4 = combo2map[bVar2];
param_2 = param_2 + 1;
bVar2 = combo1map[bVar2];
}
else {
bVar2 = bVar4;
bVar4 = 0;
}
if (bVar5 == 0) {
bVar6 = *param_4;
bVar5 = combo2map[bVar6];
param_4 = param_4 + 1;
bVar6 = combo1map[bVar6];
}
else {
bVar6 = bVar5;
bVar5 = 0;
}
} while (bVar2 == bVar6);
return (uint)bVar2 - (uint)bVar6;
}
|
Subsets and Splits
C++ Functions Using STL
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ STL Function Queries
Filters C++ code examples that use standard library containers and algorithms, helping identify common programming patterns and library usage in code generation tasks.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.