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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
41,000 | my_lock | eloqsql/mysys/my_lock.c | int my_lock(File fd, int locktype, my_off_t start, my_off_t length,
myf MyFlags)
{
#ifdef HAVE_FCNTL
int value;
ALARM_VARIABLES;
#endif
DBUG_ENTER("my_lock");
DBUG_PRINT("my",("fd: %d Op: %d start: %ld Length: %ld MyFlags: %lu",
fd,locktype,(long) start,(long) length,MyFlags));
if (my_disable_locking && ! (MyFlags & MY_FORCE_LOCK))
DBUG_RETURN(0);
#if defined(_WIN32)
{
int timeout_sec;
if (MyFlags & MY_NO_WAIT)
timeout_sec= 0;
else
timeout_sec= WIN_LOCK_INFINITE;
if (win_lock(fd, locktype, start, length, timeout_sec) == 0)
DBUG_RETURN(0);
}
#else
#if defined(HAVE_FCNTL)
{
struct flock lock;
lock.l_type= (short) locktype;
lock.l_whence= SEEK_SET;
lock.l_start= (off_t) start;
lock.l_len= (off_t) length;
if (MyFlags & (MY_NO_WAIT | MY_SHORT_WAIT))
{
if (fcntl(fd,F_SETLK,&lock) != -1) /* Check if we can lock */
DBUG_RETURN(0); /* Ok, file locked */
if (MyFlags & MY_NO_WAIT)
{
my_errno= (errno == EACCES) ? EAGAIN : errno ? errno : -1;
DBUG_RETURN(-1);
}
DBUG_PRINT("info",("Was locked, trying with alarm"));
ALARM_INIT;
while ((value=fcntl(fd,F_SETLKW,&lock)) && ! ALARM_TEST &&
errno == EINTR)
{ /* Setup again so we don`t miss it */
ALARM_REINIT;
}
ALARM_END;
if (value != -1)
DBUG_RETURN(0);
if (errno == EINTR)
errno=EAGAIN;
}
else if (fcntl(fd,F_SETLKW,&lock) != -1) /* Wait until a lock */
DBUG_RETURN(0);
}
#else
if (MyFlags & MY_SEEK_NOT_DONE)
{
if (my_seek(fd,start,MY_SEEK_SET,MYF(MyFlags & ~MY_SEEK_NOT_DONE))
== MY_FILEPOS_ERROR)
{
/*
If an error has occurred in my_seek then we will already
have an error code in my_errno; Just return error code.
*/
DBUG_RETURN(-1);
}
}
if (lockf(fd,locktype,length) != -1)
DBUG_RETURN(0);
#endif /* HAVE_FCNTL */
#endif /* _WIN32 */
/* We got an error. We don't want EACCES errors */
my_errno=(errno == EACCES) ? EAGAIN : errno ? errno : -1;
if (MyFlags & MY_WME)
{
if (locktype == F_UNLCK)
my_error(EE_CANTUNLOCK,MYF(ME_BELL),my_errno);
else
my_error(EE_CANTLOCK,MYF(ME_BELL),my_errno);
}
DBUG_PRINT("error",("my_errno: %d (%d)",my_errno,errno));
DBUG_RETURN(-1);
} | O0 | c | my_lock:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movl %edi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl $0x0, -0x30(%rbp)
movq $0x0, -0x38(%rbp)
jmp 0xf9cee
leaq 0xb946a3(%rip), %rax # 0xc8e398
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0xf9d1b
movq -0x28(%rbp), %rax
andq $0x80, %rax
cmpq $0x0, %rax
jne 0xf9d1b
jmp 0xf9d0f
movl $0x0, -0x4(%rbp)
jmp 0xf9f86
movl -0xc(%rbp), %eax
movw %ax, -0x58(%rbp)
movw $0x0, -0x56(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
andq $0x140, %rax # imm = 0x140
cmpq $0x0, %rax
je 0xf9ebf
movl -0x8(%rbp), %edi
movl $0x6, %esi
leaq -0x58(%rbp), %rdx
movb $0x0, %al
callq 0x2a160
cmpl $-0x1, %eax
je 0xf9d72
jmp 0xf9d66
movl $0x0, -0x4(%rbp)
jmp 0xf9f86
movq -0x28(%rbp), %rax
andq $0x100, %rax # imm = 0x100
cmpq $0x0, %rax
je 0xf9dd8
callq 0x2a770
cmpl $0xd, (%rax)
jne 0xf9d96
movl $0xb, %eax
movl %eax, -0x5c(%rbp)
jmp 0xf9dbc
callq 0x2a770
cmpl $0x0, (%rax)
je 0xf9dac
callq 0x2a770
movl (%rax), %eax
movl %eax, -0x60(%rbp)
jmp 0xf9db6
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
movl %eax, -0x60(%rbp)
jmp 0xf9db6
movl -0x60(%rbp), %eax
movl %eax, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
movl %eax, -0x64(%rbp)
callq 0xfc990
movl -0x64(%rbp), %ecx
movl %ecx, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xf9f86
jmp 0xf9dda
jmp 0xf9ddc
leaq 0xb945a5(%rip), %rax # 0xc8e388
movl $0x0, (%rax)
leaq 0x1d1138(%rip), %rax # 0x2caf28
movq (%rax), %rax
movl %eax, %edi
callq 0x2a240
movl %eax, -0x30(%rbp)
movl $0xe, %edi
leaq 0xf607(%rip), %rsi # 0x109410
callq 0x2a2f0
movq %rax, -0x38(%rbp)
movl -0x8(%rbp), %edi
movl $0x7, %esi
leaq -0x58(%rbp), %rdx
movb $0x0, %al
callq 0x2a160
movl %eax, %ecx
movl %ecx, -0x2c(%rbp)
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x65(%rbp)
je 0xf9e55
leaq 0xb9454d(%rip), %rax # 0xc8e388
movl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x65(%rbp)
jne 0xf9e55
callq 0x2a770
cmpl $0x4, (%rax)
sete %al
movb %al, -0x65(%rbp)
movb -0x65(%rbp), %al
testb $0x1, %al
jne 0xf9e5e
jmp 0xf9e7e
leaq 0x1d10c3(%rip), %rax # 0x2caf28
movq (%rax), %rax
movl %eax, %edi
callq 0x2a240
leaq 0xb94512(%rip), %rax # 0xc8e388
movl $0x0, (%rax)
jmp 0xf9e12
movq -0x38(%rbp), %rsi
movl $0xe, %edi
callq 0x2a2f0
movl -0x30(%rbp), %edi
callq 0x2a240
cmpl $-0x1, -0x2c(%rbp)
je 0xf9ea8
jmp 0xf9e9c
movl $0x0, -0x4(%rbp)
jmp 0xf9f86
callq 0x2a770
cmpl $0x4, (%rax)
jne 0xf9ebd
callq 0x2a770
movl $0xb, (%rax)
jmp 0xf9ee7
movl -0x8(%rbp), %edi
movl $0x7, %esi
leaq -0x58(%rbp), %rdx
movb $0x0, %al
callq 0x2a160
cmpl $-0x1, %eax
je 0xf9ee5
jmp 0xf9ed9
movl $0x0, -0x4(%rbp)
jmp 0xf9f86
jmp 0xf9ee7
callq 0x2a770
cmpl $0xd, (%rax)
jne 0xf9efb
movl $0xb, %eax
movl %eax, -0x6c(%rbp)
jmp 0xf9f21
callq 0x2a770
cmpl $0x0, (%rax)
je 0xf9f11
callq 0x2a770
movl (%rax), %eax
movl %eax, -0x70(%rbp)
jmp 0xf9f1b
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
movl %eax, -0x70(%rbp)
jmp 0xf9f1b
movl -0x70(%rbp), %eax
movl %eax, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
movl %eax, -0x74(%rbp)
callq 0xfc990
movl -0x74(%rbp), %ecx
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
andq $0x10, %rax
cmpq $0x0, %rax
je 0xf9f79
cmpl $0x2, -0xc(%rbp)
jne 0xf9f5f
callq 0xfc990
movl (%rax), %edx
movl $0xb, %edi
movl $0x4, %esi
movb $0x0, %al
callq 0xf2ae0
jmp 0xf9f77
callq 0xfc990
movl (%rax), %edx
movl $0xa, %edi
movl $0x4, %esi
movb $0x0, %al
callq 0xf2ae0
jmp 0xf9f79
jmp 0xf9f7b
jmp 0xf9f7d
jmp 0xf9f7f
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| my_lock:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_8], edi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], 0
mov [rbp+var_38], 0
jmp short $+2
loc_F9CEE:
lea rax, my_disable_locking
movsx eax, byte ptr [rax]
cmp eax, 0
jz short loc_F9D1B
mov rax, [rbp+var_28]
and rax, 80h
cmp rax, 0
jnz short loc_F9D1B
jmp short $+2
loc_F9D0F:
mov [rbp+var_4], 0
jmp loc_F9F86
loc_F9D1B:
mov eax, [rbp+var_C]
mov [rbp+var_58], ax
mov [rbp+var_56], 0
mov rax, [rbp+var_18]
mov [rbp+var_50], rax
mov rax, [rbp+var_20]
mov [rbp+var_48], rax
mov rax, [rbp+var_28]
and rax, 140h
cmp rax, 0
jz loc_F9EBF
mov edi, [rbp+var_8]
mov esi, 6
lea rdx, [rbp+var_58]
mov al, 0
call _fcntl64
cmp eax, 0FFFFFFFFh
jz short loc_F9D72
jmp short $+2
loc_F9D66:
mov [rbp+var_4], 0
jmp loc_F9F86
loc_F9D72:
mov rax, [rbp+var_28]
and rax, 100h
cmp rax, 0
jz short loc_F9DD8
call ___errno_location
cmp dword ptr [rax], 0Dh
jnz short loc_F9D96
mov eax, 0Bh
mov [rbp+var_5C], eax
jmp short loc_F9DBC
loc_F9D96:
call ___errno_location
cmp dword ptr [rax], 0
jz short loc_F9DAC
call ___errno_location
mov eax, [rax]
mov [rbp+var_60], eax
jmp short loc_F9DB6
loc_F9DAC:
mov eax, 0FFFFFFFFh
mov [rbp+var_60], eax
jmp short $+2
loc_F9DB6:
mov eax, [rbp+var_60]
mov [rbp+var_5C], eax
loc_F9DBC:
mov eax, [rbp+var_5C]
mov [rbp+var_64], eax
call _my_thread_var
mov ecx, [rbp+var_64]
mov [rax], ecx
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_F9F86
loc_F9DD8:
jmp short $+2
loc_F9DDA:
jmp short $+2
loc_F9DDC:
lea rax, my_have_got_alarm
mov dword ptr [rax], 0
lea rax, my_time_to_wait_for_lock
mov rax, [rax]
mov edi, eax
call _alarm
mov [rbp+var_30], eax
mov edi, 0Eh
lea rsi, my_set_alarm_variable
call _signal
mov [rbp+var_38], rax
loc_F9E12:
mov edi, [rbp+var_8]
mov esi, 7
lea rdx, [rbp+var_58]
mov al, 0
call _fcntl64
mov ecx, eax
mov [rbp+var_2C], ecx
xor eax, eax
cmp ecx, 0
mov [rbp+var_65], al
jz short loc_F9E55
lea rax, my_have_got_alarm
mov ecx, [rax]
xor eax, eax
cmp ecx, 0
mov [rbp+var_65], al
jnz short loc_F9E55
call ___errno_location
cmp dword ptr [rax], 4
setz al
mov [rbp+var_65], al
loc_F9E55:
mov al, [rbp+var_65]
test al, 1
jnz short loc_F9E5E
jmp short loc_F9E7E
loc_F9E5E:
lea rax, my_time_to_wait_for_lock
mov rax, [rax]
mov edi, eax
call _alarm
lea rax, my_have_got_alarm
mov dword ptr [rax], 0
jmp short loc_F9E12
loc_F9E7E:
mov rsi, [rbp+var_38]
mov edi, 0Eh
call _signal
mov edi, [rbp+var_30]
call _alarm
cmp [rbp+var_2C], 0FFFFFFFFh
jz short loc_F9EA8
jmp short $+2
loc_F9E9C:
mov [rbp+var_4], 0
jmp loc_F9F86
loc_F9EA8:
call ___errno_location
cmp dword ptr [rax], 4
jnz short loc_F9EBD
call ___errno_location
mov dword ptr [rax], 0Bh
loc_F9EBD:
jmp short loc_F9EE7
loc_F9EBF:
mov edi, [rbp+var_8]
mov esi, 7
lea rdx, [rbp+var_58]
mov al, 0
call _fcntl64
cmp eax, 0FFFFFFFFh
jz short loc_F9EE5
jmp short $+2
loc_F9ED9:
mov [rbp+var_4], 0
jmp loc_F9F86
loc_F9EE5:
jmp short $+2
loc_F9EE7:
call ___errno_location
cmp dword ptr [rax], 0Dh
jnz short loc_F9EFB
mov eax, 0Bh
mov [rbp+var_6C], eax
jmp short loc_F9F21
loc_F9EFB:
call ___errno_location
cmp dword ptr [rax], 0
jz short loc_F9F11
call ___errno_location
mov eax, [rax]
mov [rbp+var_70], eax
jmp short loc_F9F1B
loc_F9F11:
mov eax, 0FFFFFFFFh
mov [rbp+var_70], eax
jmp short $+2
loc_F9F1B:
mov eax, [rbp+var_70]
mov [rbp+var_6C], eax
loc_F9F21:
mov eax, [rbp+var_6C]
mov [rbp+var_74], eax
call _my_thread_var
mov ecx, [rbp+var_74]
mov [rax], ecx
mov rax, [rbp+var_28]
and rax, 10h
cmp rax, 0
jz short loc_F9F79
cmp [rbp+var_C], 2
jnz short loc_F9F5F
call _my_thread_var
mov edx, [rax]
mov edi, 0Bh
mov esi, 4
mov al, 0
call my_error
jmp short loc_F9F77
loc_F9F5F:
call _my_thread_var
mov edx, [rax]
mov edi, 0Ah
mov esi, 4
mov al, 0
call my_error
loc_F9F77:
jmp short $+2
loc_F9F79:
jmp short $+2
loc_F9F7B:
jmp short $+2
loc_F9F7D:
jmp short $+2
loc_F9F7F:
mov [rbp+var_4], 0FFFFFFFFh
loc_F9F86:
mov eax, [rbp+var_4]
add rsp, 80h
pop rbp
retn
| long long my_lock(unsigned int a1, int a2, long long a3, long long a4, long long a5)
{
long long v5; // rdi
const char *v6; // rsi
long long v7; // rdi
unsigned int *v8; // rax
unsigned int *v9; // rax
int v11; // [rsp+10h] [rbp-70h]
int v12; // [rsp+14h] [rbp-6Ch]
bool v13; // [rsp+1Bh] [rbp-65h]
int v14; // [rsp+20h] [rbp-60h]
int v15; // [rsp+24h] [rbp-5Ch]
_WORD v16[4]; // [rsp+28h] [rbp-58h] BYREF
long long v17; // [rsp+30h] [rbp-50h]
long long v18; // [rsp+38h] [rbp-48h]
long long v19; // [rsp+48h] [rbp-38h]
unsigned int v20; // [rsp+50h] [rbp-30h]
int v21; // [rsp+54h] [rbp-2Ch]
long long v22; // [rsp+58h] [rbp-28h]
long long v23; // [rsp+60h] [rbp-20h]
long long v24; // [rsp+68h] [rbp-18h]
int v25; // [rsp+74h] [rbp-Ch]
unsigned int v26; // [rsp+78h] [rbp-8h]
v26 = a1;
v25 = a2;
v24 = a3;
v23 = a4;
v22 = a5;
v20 = 0;
v19 = 0LL;
if ( my_disable_locking && (v22 & 0x80) == 0 )
return 0;
v16[0] = v25;
v16[1] = 0;
v17 = v24;
v18 = v23;
if ( (v22 & 0x140) != 0 )
{
v5 = v26;
if ( (unsigned int)fcntl64(v26, 6LL, v16) != -1 )
return 0;
if ( (v22 & 0x100) != 0 )
{
if ( *(_DWORD *)__errno_location() == 13 )
{
v15 = 11;
}
else
{
if ( *(_DWORD *)__errno_location() )
v14 = *(_DWORD *)__errno_location();
else
v14 = -1;
v15 = v14;
}
*(_DWORD *)my_thread_var(v5, &byte_6) = v15;
return (unsigned int)-1;
}
my_have_got_alarm = 0;
v20 = alarm((unsigned int)my_time_to_wait_for_lock);
v19 = signal(14LL, my_set_alarm_variable);
while ( 1 )
{
v21 = fcntl64(v26, 7LL, v16);
v13 = 0;
if ( v21 )
{
v13 = 0;
if ( !my_have_got_alarm )
v13 = *(_DWORD *)__errno_location() == 4;
}
if ( !v13 )
break;
alarm((unsigned int)my_time_to_wait_for_lock);
my_have_got_alarm = 0;
}
v6 = (const char *)v19;
signal(14LL, v19);
v7 = v20;
alarm(v20);
if ( v21 != -1 )
return 0;
if ( *(_DWORD *)__errno_location() == 4 )
*(_DWORD *)__errno_location() = 11;
}
else
{
v7 = v26;
v6 = &byte_7;
if ( (unsigned int)fcntl64(v26, 7LL, v16) != -1 )
return 0;
}
if ( *(_DWORD *)__errno_location() == 13 )
{
v12 = 11;
}
else
{
if ( *(_DWORD *)__errno_location() )
v11 = *(_DWORD *)__errno_location();
else
v11 = -1;
v12 = v11;
}
*(_DWORD *)my_thread_var(v7, v6) = v12;
if ( (v22 & 0x10) != 0 )
{
if ( v25 == 2 )
{
v8 = (unsigned int *)my_thread_var(v7, v6);
my_error(0xBu, 4LL, *v8);
}
else
{
v9 = (unsigned int *)my_thread_var(v7, v6);
my_error(0xAu, 4LL, *v9);
}
}
return (unsigned int)-1;
}
| my_lock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV dword ptr [RBP + -0x8],EDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV dword ptr [RBP + -0x30],0x0
MOV qword ptr [RBP + -0x38],0x0
JMP 0x001f9cee
LAB_001f9cee:
LEA RAX,[0xd8e398]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JZ 0x001f9d1b
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x80
CMP RAX,0x0
JNZ 0x001f9d1b
JMP 0x001f9d0f
LAB_001f9d0f:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001f9f86
LAB_001f9d1b:
MOV EAX,dword ptr [RBP + -0xc]
MOV word ptr [RBP + -0x58],AX
MOV word ptr [RBP + -0x56],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x140
CMP RAX,0x0
JZ 0x001f9ebf
MOV EDI,dword ptr [RBP + -0x8]
MOV ESI,0x6
LEA RDX,[RBP + -0x58]
MOV AL,0x0
CALL 0x0012a160
CMP EAX,-0x1
JZ 0x001f9d72
JMP 0x001f9d66
LAB_001f9d66:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001f9f86
LAB_001f9d72:
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x100
CMP RAX,0x0
JZ 0x001f9dd8
CALL 0x0012a770
CMP dword ptr [RAX],0xd
JNZ 0x001f9d96
MOV EAX,0xb
MOV dword ptr [RBP + -0x5c],EAX
JMP 0x001f9dbc
LAB_001f9d96:
CALL 0x0012a770
CMP dword ptr [RAX],0x0
JZ 0x001f9dac
CALL 0x0012a770
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x60],EAX
JMP 0x001f9db6
LAB_001f9dac:
MOV EAX,0xffffffff
MOV dword ptr [RBP + -0x60],EAX
JMP 0x001f9db6
LAB_001f9db6:
MOV EAX,dword ptr [RBP + -0x60]
MOV dword ptr [RBP + -0x5c],EAX
LAB_001f9dbc:
MOV EAX,dword ptr [RBP + -0x5c]
MOV dword ptr [RBP + -0x64],EAX
CALL 0x001fc990
MOV ECX,dword ptr [RBP + -0x64]
MOV dword ptr [RAX],ECX
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x001f9f86
LAB_001f9dd8:
JMP 0x001f9dda
LAB_001f9dda:
JMP 0x001f9ddc
LAB_001f9ddc:
LEA RAX,[0xd8e388]
MOV dword ptr [RAX],0x0
LEA RAX,[0x3caf28]
MOV RAX,qword ptr [RAX]
MOV EDI,EAX
CALL 0x0012a240
MOV dword ptr [RBP + -0x30],EAX
MOV EDI,0xe
LEA RSI,[0x209410]
CALL 0x0012a2f0
MOV qword ptr [RBP + -0x38],RAX
LAB_001f9e12:
MOV EDI,dword ptr [RBP + -0x8]
MOV ESI,0x7
LEA RDX,[RBP + -0x58]
MOV AL,0x0
CALL 0x0012a160
MOV ECX,EAX
MOV dword ptr [RBP + -0x2c],ECX
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0x65],AL
JZ 0x001f9e55
LEA RAX,[0xd8e388]
MOV ECX,dword ptr [RAX]
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0x65],AL
JNZ 0x001f9e55
CALL 0x0012a770
CMP dword ptr [RAX],0x4
SETZ AL
MOV byte ptr [RBP + -0x65],AL
LAB_001f9e55:
MOV AL,byte ptr [RBP + -0x65]
TEST AL,0x1
JNZ 0x001f9e5e
JMP 0x001f9e7e
LAB_001f9e5e:
LEA RAX,[0x3caf28]
MOV RAX,qword ptr [RAX]
MOV EDI,EAX
CALL 0x0012a240
LEA RAX,[0xd8e388]
MOV dword ptr [RAX],0x0
JMP 0x001f9e12
LAB_001f9e7e:
MOV RSI,qword ptr [RBP + -0x38]
MOV EDI,0xe
CALL 0x0012a2f0
MOV EDI,dword ptr [RBP + -0x30]
CALL 0x0012a240
CMP dword ptr [RBP + -0x2c],-0x1
JZ 0x001f9ea8
JMP 0x001f9e9c
LAB_001f9e9c:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001f9f86
LAB_001f9ea8:
CALL 0x0012a770
CMP dword ptr [RAX],0x4
JNZ 0x001f9ebd
CALL 0x0012a770
MOV dword ptr [RAX],0xb
LAB_001f9ebd:
JMP 0x001f9ee7
LAB_001f9ebf:
MOV EDI,dword ptr [RBP + -0x8]
MOV ESI,0x7
LEA RDX,[RBP + -0x58]
MOV AL,0x0
CALL 0x0012a160
CMP EAX,-0x1
JZ 0x001f9ee5
JMP 0x001f9ed9
LAB_001f9ed9:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001f9f86
LAB_001f9ee5:
JMP 0x001f9ee7
LAB_001f9ee7:
CALL 0x0012a770
CMP dword ptr [RAX],0xd
JNZ 0x001f9efb
MOV EAX,0xb
MOV dword ptr [RBP + -0x6c],EAX
JMP 0x001f9f21
LAB_001f9efb:
CALL 0x0012a770
CMP dword ptr [RAX],0x0
JZ 0x001f9f11
CALL 0x0012a770
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x70],EAX
JMP 0x001f9f1b
LAB_001f9f11:
MOV EAX,0xffffffff
MOV dword ptr [RBP + -0x70],EAX
JMP 0x001f9f1b
LAB_001f9f1b:
MOV EAX,dword ptr [RBP + -0x70]
MOV dword ptr [RBP + -0x6c],EAX
LAB_001f9f21:
MOV EAX,dword ptr [RBP + -0x6c]
MOV dword ptr [RBP + -0x74],EAX
CALL 0x001fc990
MOV ECX,dword ptr [RBP + -0x74]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x10
CMP RAX,0x0
JZ 0x001f9f79
CMP dword ptr [RBP + -0xc],0x2
JNZ 0x001f9f5f
CALL 0x001fc990
MOV EDX,dword ptr [RAX]
MOV EDI,0xb
MOV ESI,0x4
MOV AL,0x0
CALL 0x001f2ae0
JMP 0x001f9f77
LAB_001f9f5f:
CALL 0x001fc990
MOV EDX,dword ptr [RAX]
MOV EDI,0xa
MOV ESI,0x4
MOV AL,0x0
CALL 0x001f2ae0
LAB_001f9f77:
JMP 0x001f9f79
LAB_001f9f79:
JMP 0x001f9f7b
LAB_001f9f7b:
JMP 0x001f9f7d
LAB_001f9f7d:
JMP 0x001f9f7f
LAB_001f9f7f:
MOV dword ptr [RBP + -0x4],0xffffffff
LAB_001f9f86:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x80
POP RBP
RET
|
int4
my_lock(int4 param_1,int param_2,int8 param_3,int8 param_4,ulong param_5)
{
int iVar1;
int *piVar2;
int4 *puVar3;
bool bVar4;
int local_78;
int local_74;
int local_68;
int local_64;
int2 local_60;
int2 local_5e;
int8 local_58;
int8 local_50;
__sighandler_t local_40;
uint local_38;
int local_34;
ulong local_30;
int8 local_28;
int8 local_20;
int local_14;
int4 local_10;
local_38 = 0;
local_40 = (__sighandler_t)0x0;
if ((my_disable_locking != '\0') && ((param_5 & 0x80) == 0)) {
return 0;
}
local_60 = (int2)param_2;
local_5e = 0;
local_58 = param_3;
local_50 = param_4;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_14 = param_2;
local_10 = param_1;
if ((param_5 & 0x140) == 0) {
iVar1 = fcntl64(param_1,7,&local_60);
if (iVar1 != -1) {
return 0;
}
}
else {
iVar1 = fcntl64(param_1,6,&local_60);
if (iVar1 != -1) {
return 0;
}
if ((local_30 & 0x100) != 0) {
piVar2 = __errno_location();
if (*piVar2 == 0xd) {
local_64 = 0xb;
}
else {
piVar2 = __errno_location();
if (*piVar2 == 0) {
local_68 = -1;
}
else {
piVar2 = __errno_location();
local_68 = *piVar2;
}
local_64 = local_68;
}
piVar2 = (int *)_my_thread_var();
*piVar2 = local_64;
return 0xffffffff;
}
my_have_got_alarm = 0;
local_38 = alarm((uint)my_time_to_wait_for_lock);
local_40 = signal(0xe,my_set_alarm_variable);
while( true ) {
local_34 = fcntl64(local_10,7,&local_60);
bVar4 = false;
if ((local_34 != 0) && (bVar4 = false, my_have_got_alarm == 0)) {
piVar2 = __errno_location();
bVar4 = *piVar2 == 4;
}
if (!bVar4) break;
alarm((uint)my_time_to_wait_for_lock);
my_have_got_alarm = 0;
}
signal(0xe,local_40);
alarm(local_38);
if (local_34 != -1) {
return 0;
}
piVar2 = __errno_location();
if (*piVar2 == 4) {
piVar2 = __errno_location();
*piVar2 = 0xb;
}
}
piVar2 = __errno_location();
if (*piVar2 == 0xd) {
local_74 = 0xb;
}
else {
piVar2 = __errno_location();
if (*piVar2 == 0) {
local_78 = -1;
}
else {
piVar2 = __errno_location();
local_78 = *piVar2;
}
local_74 = local_78;
}
piVar2 = (int *)_my_thread_var();
*piVar2 = local_74;
if ((local_30 & 0x10) != 0) {
if (local_14 == 2) {
puVar3 = (int4 *)_my_thread_var();
my_error(0xb,4,*puVar3);
}
else {
puVar3 = (int4 *)_my_thread_var();
my_error(10,4,*puVar3);
}
}
return 0xffffffff;
}
| |
41,001 | js_object_isSealed | bluesky950520[P]quickjs/quickjs.c | static JSValue js_object_isSealed(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int is_frozen)
{
JSValue obj = argv[0];
JSObject *p;
JSPropertyEnum *props;
uint32_t len, i;
int flags, res;
if (!JS_IsObject(obj))
return JS_TRUE;
p = JS_VALUE_GET_OBJ(obj);
flags = JS_GPN_STRING_MASK | JS_GPN_SYMBOL_MASK;
if (JS_GetOwnPropertyNamesInternal(ctx, &props, &len, p, flags))
return JS_EXCEPTION;
for(i = 0; i < len; i++) {
JSPropertyDescriptor desc;
JSAtom prop = props[i].atom;
res = JS_GetOwnPropertyInternal(ctx, &desc, p, prop);
if (res < 0)
goto exception;
if (res) {
js_free_desc(ctx, &desc);
if ((desc.flags & JS_PROP_CONFIGURABLE)
|| (is_frozen && (desc.flags & JS_PROP_WRITABLE))) {
res = FALSE;
goto done;
}
}
}
res = JS_IsExtensible(ctx, obj);
if (res < 0)
return JS_EXCEPTION;
res ^= 1;
done:
js_free_prop_enum(ctx, props, len);
return js_bool(res);
exception:
js_free_prop_enum(ctx, props, len);
return JS_EXCEPTION;
} | O1 | c | js_object_isSealed:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movsd (%r8), %xmm0
movsd %xmm0, 0x20(%rsp)
movq 0x8(%r8), %rbx
movl $0x1, %edx
cmpl $-0x1, %ebx
jne 0x70c5f
movl %r9d, %ebp
movq %rdi, %r14
movq 0x20(%rsp), %r13
leaq 0x18(%rsp), %rsi
leaq 0x14(%rsp), %rdx
movq %r13, %rcx
movl $0x3, %r8d
callq 0x235bd
testl %eax, %eax
je 0x70c73
xorl %eax, %eax
movl $0x6, %edx
jmp 0x70c64
movl $0x1, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %ebp, 0x10(%rsp)
movq %rbx, 0x28(%rsp)
movl 0x14(%rsp), %eax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x70cf8
movq 0x18(%rsp), %rbp
xorl %r15d, %r15d
movl 0x4(%rbp,%r15,8), %ecx
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
movq %r13, %rdx
callq 0x23bd9
movl %eax, %ebx
testl %eax, %eax
js 0x70ce2
je 0x70cde
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
callq 0x3d8c3
movl 0x30(%rsp), %ecx
movl $0x6, %eax
xorl %r12d, %r12d
testb $0x1, %cl
jne 0x70cea
cmpl $0x0, 0x10(%rsp)
setne %dl
andl $0x2, %ecx
shrl %ecx
testb %cl, %dl
jne 0x70cea
xorl %eax, %eax
jmp 0x70ce7
movl $0x5, %eax
movl %ebx, %r12d
testl %eax, %eax
jne 0x70d1b
incq %r15
cmpq %r15, 0x8(%rsp)
jne 0x70c92
movq 0x20(%rsp), %rsi
movq %r14, %rdi
movq 0x28(%rsp), %rdx
callq 0xf6fb
testl %eax, %eax
js 0x70c56
movl %eax, %r12d
xorl $0x1, %r12d
jmp 0x70d25
cmpl $0x5, %eax
je 0x70d49
cmpl $0x6, %eax
jne 0x70d5e
movq 0x18(%rsp), %rsi
movq %r14, %rdi
movq 0x8(%rsp), %rdx
callq 0x23e79
xorl %eax, %eax
testl %r12d, %r12d
setne %al
movl $0x1, %edx
jmp 0x70c64
movq %r14, %rdi
movq %rbp, %rsi
movq 0x8(%rsp), %rdx
callq 0x23e79
jmp 0x70c56
xorl %eax, %eax
jmp 0x70c64
| js_object_isSealed:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
movsd xmm0, qword ptr [r8]
movsd [rsp+98h+var_78], xmm0
mov rbx, [r8+8]
mov edx, 1
cmp ebx, 0FFFFFFFFh
jnz short loc_70C5F
mov ebp, r9d
mov r14, rdi
mov r13, [rsp+98h+var_78]
lea rsi, [rsp+98h+var_80]
lea rdx, [rsp+98h+var_84]
mov rcx, r13
mov r8d, 3
call JS_GetOwnPropertyNamesInternal
test eax, eax
jz short loc_70C73
loc_70C56:
xor eax, eax
mov edx, 6
jmp short loc_70C64
loc_70C5F:
mov eax, 1
loc_70C64:
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_70C73:
mov [rsp+98h+var_88], ebp
mov [rsp+98h+var_70], rbx
mov eax, [rsp+98h+var_84]
mov [rsp+98h+var_90], rax
test rax, rax
jz short loc_70CF8
mov rbp, [rsp+98h+var_80]
xor r15d, r15d
loc_70C92:
mov ecx, [rbp+r15*8+4]
mov rdi, r14
lea rsi, [rsp+98h+var_68]
mov rdx, r13
call JS_GetOwnPropertyInternal
mov ebx, eax
test eax, eax
js short loc_70CE2
jz short loc_70CDE
mov rdi, r14
lea rsi, [rsp+98h+var_68]
call js_free_desc
mov ecx, [rsp+98h+var_68]
mov eax, 6
xor r12d, r12d
test cl, 1
jnz short loc_70CEA
cmp [rsp+98h+var_88], 0
setnz dl
and ecx, 2
shr ecx, 1
test dl, cl
jnz short loc_70CEA
loc_70CDE:
xor eax, eax
jmp short loc_70CE7
loc_70CE2:
mov eax, 5
loc_70CE7:
mov r12d, ebx
loc_70CEA:
test eax, eax
jnz short loc_70D1B
inc r15
cmp [rsp+98h+var_90], r15
jnz short loc_70C92
loc_70CF8:
mov rsi, [rsp+98h+var_78]
mov rdi, r14
mov rdx, [rsp+98h+var_70]
call JS_IsExtensible
test eax, eax
js loc_70C56
mov r12d, eax
xor r12d, 1
jmp short loc_70D25
loc_70D1B:
cmp eax, 5
jz short loc_70D49
cmp eax, 6
jnz short loc_70D5E
loc_70D25:
mov rsi, [rsp+98h+var_80]
mov rdi, r14
mov rdx, [rsp+98h+var_90]
call js_free_prop_enum
xor eax, eax
test r12d, r12d
setnz al
mov edx, 1
jmp loc_70C64
loc_70D49:
mov rdi, r14
mov rsi, rbp
mov rdx, [rsp+98h+var_90]
call js_free_prop_enum
jmp loc_70C56
loc_70D5E:
xor eax, eax
jmp loc_70C64
| _BOOL8 js_object_isSealed(long long a1, long long a2, long long a3, long long a4, long long *a5, int a6)
{
long long v6; // rbx
long long v8; // r13
long long v10; // rbp
long long v11; // r15
int OwnPropertyInternal; // eax
int v13; // ebx
int v14; // eax
int v15; // r12d
int IsExtensible; // eax
long long v17; // [rsp+8h] [rbp-90h]
int v18; // [rsp+10h] [rbp-88h]
unsigned int v19; // [rsp+14h] [rbp-84h] BYREF
long long v20; // [rsp+18h] [rbp-80h] BYREF
long long v21; // [rsp+20h] [rbp-78h]
long long v22; // [rsp+28h] [rbp-70h]
_BYTE v23[104]; // [rsp+30h] [rbp-68h] BYREF
v21 = *a5;
v6 = a5[1];
if ( (_DWORD)v6 != -1 )
return 1LL;
v8 = v21;
if ( (unsigned int)JS_GetOwnPropertyNamesInternal(a1, &v20, &v19, v21, 3) )
return 0LL;
v18 = a6;
v22 = v6;
v17 = v19;
if ( !v19 )
{
LABEL_16:
IsExtensible = JS_IsExtensible(a1, v21, v22);
if ( IsExtensible >= 0 )
{
v15 = IsExtensible ^ 1;
goto LABEL_19;
}
return 0LL;
}
v10 = v20;
v11 = 0LL;
while ( 1 )
{
OwnPropertyInternal = JS_GetOwnPropertyInternal(a1, (long long)v23, v8, *(_DWORD *)(v10 + 8 * v11 + 4));
v13 = OwnPropertyInternal;
if ( OwnPropertyInternal < 0 )
{
v14 = 5;
goto LABEL_13;
}
if ( !OwnPropertyInternal
|| (js_free_desc(a1, (long long)v23), v14 = 6, v15 = 0, (v23[0] & 1) == 0)
&& (((unsigned __int8)(v23[0] & 2) >> 1) & (v18 != 0)) == 0 )
{
v14 = 0;
LABEL_13:
v15 = v13;
}
if ( v14 )
break;
if ( v17 == ++v11 )
goto LABEL_16;
}
if ( v14 == 5 )
{
js_free_prop_enum(a1, v10, v17);
return 0LL;
}
LABEL_19:
js_free_prop_enum(a1, v20, v17);
return v15 != 0;
}
| js_object_isSealed:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOVSD XMM0,qword ptr [R8]
MOVSD qword ptr [RSP + 0x20],XMM0
MOV RBX,qword ptr [R8 + 0x8]
MOV EDX,0x1
CMP EBX,-0x1
JNZ 0x00170c5f
MOV EBP,R9D
MOV R14,RDI
MOV R13,qword ptr [RSP + 0x20]
LEA RSI,[RSP + 0x18]
LEA RDX,[RSP + 0x14]
MOV RCX,R13
MOV R8D,0x3
CALL 0x001235bd
TEST EAX,EAX
JZ 0x00170c73
LAB_00170c56:
XOR EAX,EAX
MOV EDX,0x6
JMP 0x00170c64
LAB_00170c5f:
MOV EAX,0x1
LAB_00170c64:
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00170c73:
MOV dword ptr [RSP + 0x10],EBP
MOV qword ptr [RSP + 0x28],RBX
MOV EAX,dword ptr [RSP + 0x14]
MOV qword ptr [RSP + 0x8],RAX
TEST RAX,RAX
JZ 0x00170cf8
MOV RBP,qword ptr [RSP + 0x18]
XOR R15D,R15D
LAB_00170c92:
MOV ECX,dword ptr [RBP + R15*0x8 + 0x4]
MOV RDI,R14
LEA RSI,[RSP + 0x30]
MOV RDX,R13
CALL 0x00123bd9
MOV EBX,EAX
TEST EAX,EAX
JS 0x00170ce2
JZ 0x00170cde
MOV RDI,R14
LEA RSI,[RSP + 0x30]
CALL 0x0013d8c3
MOV ECX,dword ptr [RSP + 0x30]
MOV EAX,0x6
XOR R12D,R12D
TEST CL,0x1
JNZ 0x00170cea
CMP dword ptr [RSP + 0x10],0x0
SETNZ DL
AND ECX,0x2
SHR ECX,0x1
TEST DL,CL
JNZ 0x00170cea
LAB_00170cde:
XOR EAX,EAX
JMP 0x00170ce7
LAB_00170ce2:
MOV EAX,0x5
LAB_00170ce7:
MOV R12D,EBX
LAB_00170cea:
TEST EAX,EAX
JNZ 0x00170d1b
INC R15
CMP qword ptr [RSP + 0x8],R15
JNZ 0x00170c92
LAB_00170cf8:
MOV RSI,qword ptr [RSP + 0x20]
MOV RDI,R14
MOV RDX,qword ptr [RSP + 0x28]
CALL 0x0010f6fb
TEST EAX,EAX
JS 0x00170c56
MOV R12D,EAX
XOR R12D,0x1
JMP 0x00170d25
LAB_00170d1b:
CMP EAX,0x5
JZ 0x00170d49
CMP EAX,0x6
JNZ 0x00170d5e
LAB_00170d25:
MOV RSI,qword ptr [RSP + 0x18]
MOV RDI,R14
MOV RDX,qword ptr [RSP + 0x8]
CALL 0x00123e79
XOR EAX,EAX
TEST R12D,R12D
SETNZ AL
MOV EDX,0x1
JMP 0x00170c64
LAB_00170d49:
MOV RDI,R14
MOV RSI,RBP
MOV RDX,qword ptr [RSP + 0x8]
CALL 0x00123e79
JMP 0x00170c56
LAB_00170d5e:
XOR EAX,EAX
JMP 0x00170c64
|
bool js_object_isSealed(int8 param_1)
{
int8 uVar1;
int8 uVar2;
long lVar3;
bool bVar4;
int iVar5;
uint uVar6;
uint uVar7;
ulong uVar8;
int8 *in_R8;
int in_R9D;
ulong uVar9;
uint local_84;
long local_80;
int8 local_78;
int8 local_70;
uint local_68 [14];
uVar1 = *in_R8;
uVar2 = in_R8[1];
if ((int)uVar2 == -1) {
local_78 = uVar1;
iVar5 = JS_GetOwnPropertyNamesInternal(param_1,&local_80,&local_84,uVar1,3);
lVar3 = local_80;
if (iVar5 == 0) {
uVar8 = (ulong)local_84;
local_70 = uVar2;
if (uVar8 != 0) {
uVar9 = 0;
do {
uVar6 = JS_GetOwnPropertyInternal
(param_1,local_68,uVar1,*(int4 *)(lVar3 + 4 + uVar9 * 8));
if ((int)uVar6 < 0) {
iVar5 = 5;
uVar7 = uVar6;
}
else {
if (uVar6 != 0) {
js_free_desc(param_1,local_68);
iVar5 = 6;
uVar7 = 0;
if (((local_68[0] & 1) != 0) || ((in_R9D != 0 & (byte)((local_68[0] & 2) >> 1)) != 0))
goto LAB_00170cea;
}
iVar5 = 0;
uVar7 = uVar6;
}
LAB_00170cea:
if (iVar5 != 0) {
if (iVar5 != 5) {
if (iVar5 != 6) {
return false;
}
goto LAB_00170d25;
}
js_free_prop_enum(param_1,lVar3,uVar8);
goto LAB_00170c56;
}
uVar9 = uVar9 + 1;
} while (uVar8 != uVar9);
}
uVar7 = JS_IsExtensible(param_1,local_78,local_70);
if (-1 < (int)uVar7) {
uVar7 = uVar7 ^ 1;
LAB_00170d25:
js_free_prop_enum(param_1,local_80,uVar8);
return uVar7 != 0;
}
}
LAB_00170c56:
bVar4 = false;
}
else {
bVar4 = true;
}
return bVar4;
}
| |
41,002 | Catch::XmlReporter::testRunStarting(Catch::TestRunInfo const&) | AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp | void XmlReporter::testRunStarting( TestRunInfo const& testInfo ) {
StreamingReporterBase::testRunStarting( testInfo );
std::string stylesheetRef = getStylesheetRef();
if( !stylesheetRef.empty() )
m_xml.writeStylesheetRef( stylesheetRef );
m_xml.startElement("Catch2TestRun")
.writeAttribute("name"_sr, m_config->name())
.writeAttribute("rng-seed"_sr, m_config->rngSeed())
.writeAttribute("xml-format-version"_sr, 2)
.writeAttribute("catch2-version"_sr, libraryVersion());
if ( m_config->testSpec().hasFilters() ) {
m_xml.writeAttribute( "filters"_sr, m_config->testSpec() );
}
} | O3 | cpp | Catch::XmlReporter::testRunStarting(Catch::TestRunInfo const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movups (%rsi), %xmm0
movups %xmm0, 0x60(%rdi)
movq (%rdi), %rax
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq *0xc0(%rax)
movq 0x8(%r14), %rdx
testq %rdx, %rdx
je 0x6fab3
leaq 0x98(%rbx), %rdi
movq 0x28(%rsp), %rsi
callq 0x648a4
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x6ed24(%rip), %rsi # 0xde7e8
leaq 0x6ed2a(%rip), %rdx # 0xde7f5
leaq 0x8(%rsp), %rdi
callq 0x37312
leaq 0x98(%rbx), %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
movl $0x3, %edx
callq 0x64692
movq 0x10(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movq %rdx, %r8
leaq 0x6d99a(%rip), %rsi # 0xdd49c
movl $0x4, %edx
movq %r14, %rdi
movq %rax, %rcx
callq 0x64480
movq 0x10(%rbx), %rdi
movq (%rdi), %rax
callq *0x88(%rax)
leaq 0x4(%rsp), %rcx
movl %eax, (%rcx)
leaq 0x6dc27(%rip), %rsi # 0xdd754
movl $0x8, %edx
movq %r14, %rdi
callq 0x79730
movq %rsp, %rcx
movl $0x2, (%rcx)
leaq 0x6ecac(%rip), %rsi # 0xde7f6
movl $0x12, %edx
movq %rax, %rdi
callq 0x79b44
movq %rax, %r15
callq 0x55032
leaq 0x6eca3(%rip), %rsi # 0xde809
leaq 0xc44cb(%rip), %rcx # 0x134038
movl $0xe, %edx
movq %r15, %rdi
callq 0x79c0a
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x6fb91
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x17150
movq 0x10(%rbx), %rdi
movq (%rdi), %rax
callq *0x68(%rax)
movq (%rax), %rcx
cmpq 0x8(%rax), %rcx
je 0x6fbc5
movq 0x10(%rbx), %rdi
movq (%rdi), %rax
callq *0x68(%rax)
leaq 0x6e911(%rip), %rsi # 0xde4c6
movl $0x7, %edx
movq %r14, %rdi
movq %rax, %rcx
callq 0x79cce
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6fbe0
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x17150
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x6fbf0
jmp 0x6fbf7
movq %rax, %rbx
jmp 0x6fc11
jmp 0x6fbf7
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x6fc11
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x17150
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6fc2c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x17150
movq %rbx, %rdi
callq 0x17740
| _ZN5Catch11XmlReporter15testRunStartingERKNS_11TestRunInfoE:
push r15
push r14
push r12
push rbx
sub rsp, 48h
mov rbx, rdi
movups xmm0, xmmword ptr [rsi]
movups xmmword ptr [rdi+60h], xmm0
mov rax, [rdi]
lea r14, [rsp+68h+var_40]
mov rdi, r14
mov rsi, rbx
call qword ptr [rax+0C0h]
mov rdx, [r14+8]
test rdx, rdx
jz short loc_6FAB3
lea rdi, [rbx+98h]
mov rsi, [rsp+68h+var_40]
call _ZN5Catch9XmlWriter18writeStylesheetRefENS_9StringRefE; Catch::XmlWriter::writeStylesheetRef(Catch::StringRef)
loc_6FAB3:
lea r12, [rsp+68h+var_50]
mov [r12-10h], r12
lea rsi, aCatch2testrun; "Catch2TestRun"
lea rdx, aCatch2testrun+0Dh; ""
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 r14, [rbx+98h]
lea rsi, [rsp+68h+var_60]
mov rdi, r14; this
mov edx, 3
call _ZN5Catch9XmlWriter12startElementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13XmlFormattingE; Catch::XmlWriter::startElement(std::string const&,Catch::XmlFormatting)
mov rdi, [rbx+10h]
mov rax, [rdi]
call qword ptr [rax+18h]
mov r8, rdx
lea rsi, aSuiteName+6; "name"
mov edx, 4
mov rdi, r14
mov rcx, rax
call _ZN5Catch9XmlWriter14writeAttributeENS_9StringRefES1_; Catch::XmlWriter::writeAttribute(Catch::StringRef,Catch::StringRef)
mov rdi, [rbx+10h]
mov rax, [rdi]
call qword ptr [rax+88h]
lea rcx, [rsp+68h+var_64]
mov [rcx], eax
lea rsi, aRngSeed+2; "rng-seed"
mov edx, 8
mov rdi, r14
call _ZN5Catch9XmlWriter14writeAttributeIjvEERS0_NS_9StringRefERKT_; Catch::XmlWriter::writeAttribute<uint,void>(Catch::StringRef,uint const&)
mov rcx, rsp
mov dword ptr [rcx], 2
lea rsi, aXmlFormatVersi; "xml-format-version"
mov edx, 12h
mov rdi, rax; this
call _ZN5Catch9XmlWriter14writeAttributeIivEERS0_NS_9StringRefERKT_; Catch::XmlWriter::writeAttribute<int,void>(Catch::StringRef,int const&)
mov r15, rax
call _ZN5Catch14libraryVersionEv; Catch::libraryVersion(void)
lea rsi, aCatch2Version; "catch2-version"
lea rcx, _ZZN5Catch14libraryVersionEvE7version; Catch::libraryVersion(void)::version
mov edx, 0Eh
mov rdi, r15
call _ZN5Catch9XmlWriter14writeAttributeINS_7VersionEvEERS0_NS_9StringRefERKT_; Catch::XmlWriter::writeAttribute<Catch::Version,void>(Catch::StringRef,Catch::Version const&)
mov rdi, [rsp+68h+var_60]; void *
cmp rdi, r12
jz short loc_6FB91
mov rsi, [rsp+68h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6FB91:
mov rdi, [rbx+10h]
mov rax, [rdi]
call qword ptr [rax+68h]
mov rcx, [rax]
cmp rcx, [rax+8]
jz short loc_6FBC5
mov rdi, [rbx+10h]
mov rax, [rdi]
call qword ptr [rax+68h]
lea rsi, aFilters_0; "filters"
mov edx, 7
mov rdi, r14
mov rcx, rax
call _ZN5Catch9XmlWriter14writeAttributeINS_8TestSpecEvEERS0_NS_9StringRefERKT_; Catch::XmlWriter::writeAttribute<Catch::TestSpec,void>(Catch::StringRef,Catch::TestSpec const&)
loc_6FBC5:
lea rax, [rsp+68h+var_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_6FBE0
mov rsi, [rsp+68h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6FBE0:
add rsp, 48h
pop rbx
pop r12
pop r14
pop r15
retn
jmp short loc_6FBF0
jmp short loc_6FBF7
loc_6FBF0:
mov rbx, rax
jmp short loc_6FC11
jmp short $+2
loc_6FBF7:
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_6FC11
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6FC11:
lea rax, [rsp+arg_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_6FC2C
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6FC2C:
mov rdi, rbx
call __Unwind_Resume
| void Catch::XmlReporter::testRunStarting(long long a1, _OWORD *a2)
{
long long v3; // rax
long long v4; // rdx
int v5; // r8d
int v6; // r9d
Catch *v7; // rdi
int v8; // r8d
int v9; // r9d
int v10; // r15d
int v11; // r8d
int v12; // r9d
_QWORD *v13; // rax
long long v14; // rax
int v15; // [rsp+0h] [rbp-68h] BYREF
char v16; // [rsp+4h] [rbp-64h] BYREF
void *v17; // [rsp+8h] [rbp-60h] BYREF
int v18; // [rsp+10h] [rbp-58h]
long long v19[2]; // [rsp+18h] [rbp-50h] BYREF
char *v20; // [rsp+28h] [rbp-40h] BYREF
long long v21; // [rsp+30h] [rbp-38h]
long long v22; // [rsp+38h] [rbp-30h] BYREF
*(_OWORD *)(a1 + 96) = *a2;
(*(void ( **)(char **, long long))(*(_QWORD *)a1 + 192LL))(&v20, a1);
if ( v21 )
Catch::XmlWriter::writeStylesheetRef(a1 + 152, v20, v21);
v17 = v19;
std::string::_M_construct<char const*>(&v17, "Catch2TestRun", (long long)"");
Catch::XmlWriter::startElement((Catch::XmlWriter *)(a1 + 152), &v17, 3);
v3 = (*(long long ( **)(_QWORD))(**(_QWORD **)(a1 + 16) + 24LL))(*(_QWORD *)(a1 + 16));
Catch::XmlWriter::writeAttribute(a1 + 152, "name", 4LL, v3, v4);
(*(void ( **)(_QWORD))(**(_QWORD **)(a1 + 16) + 136LL))(*(_QWORD *)(a1 + 16));
v7 = (Catch *)Catch::XmlWriter::writeAttribute<unsigned int,void>(
(int)a1 + 152,
(unsigned int)"rng-seed",
8,
(unsigned int)&v16,
v5,
v6,
v15,
(_DWORD)v17,
v18,
v19[0]);
v10 = Catch::XmlWriter::writeAttribute<int,void>(
(_DWORD)v7,
(unsigned int)"xml-format-version",
18,
(unsigned int)&v15,
v8,
v9,
2,
(_DWORD)v17,
v18,
v19[0]);
Catch::libraryVersion(v7);
Catch::XmlWriter::writeAttribute<Catch::Version,void>(
v10,
(unsigned int)"catch2-version",
14,
(unsigned int)Catch::libraryVersion(void)::version,
v11,
v12,
v15,
(_DWORD)v17,
v18,
v19[0]);
if ( v17 != v19 )
operator delete(v17, v19[0] + 1);
v13 = (_QWORD *)(*(long long ( **)(_QWORD))(**(_QWORD **)(a1 + 16) + 104LL))(*(_QWORD *)(a1 + 16));
if ( *v13 != v13[1] )
{
v14 = (*(long long ( **)(_QWORD))(**(_QWORD **)(a1 + 16) + 104LL))(*(_QWORD *)(a1 + 16));
Catch::XmlWriter::writeAttribute<Catch::TestSpec,void>(a1 + 152, "filters", 7LL, v14);
}
if ( v20 != (char *)&v22 )
operator delete(v20, v22 + 1);
}
| testRunStarting:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV RBX,RDI
MOVUPS XMM0,xmmword ptr [RSI]
MOVUPS xmmword ptr [RDI + 0x60],XMM0
MOV RAX,qword ptr [RDI]
LEA R14,[RSP + 0x28]
MOV RDI,R14
MOV RSI,RBX
CALL qword ptr [RAX + 0xc0]
MOV RDX,qword ptr [R14 + 0x8]
TEST RDX,RDX
JZ 0x0016fab3
LEA RDI,[RBX + 0x98]
MOV RSI,qword ptr [RSP + 0x28]
LAB_0016faae:
CALL 0x001648a4
LAB_0016fab3:
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
LAB_0016fabd:
LEA RSI,[0x1de7e8]
LEA RDX,[0x1de7f5]
LEA RDI,[RSP + 0x8]
CALL 0x00137312
LAB_0016fad5:
LEA R14,[RBX + 0x98]
LEA RSI,[RSP + 0x8]
MOV RDI,R14
MOV EDX,0x3
CALL 0x00164692
MOV RDI,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
MOV R8,RDX
LEA RSI,[0x1dd49c]
MOV EDX,0x4
MOV RDI,R14
MOV RCX,RAX
CALL 0x00164480
MOV RDI,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RDI]
LAB_0016fb19:
CALL qword ptr [RAX + 0x88]
LEA RCX,[RSP + 0x4]
MOV dword ptr [RCX],EAX
LEA RSI,[0x1dd754]
MOV EDX,0x8
MOV RDI,R14
CALL 0x00179730
MOV RCX,RSP
MOV dword ptr [RCX],0x2
LAB_0016fb43:
LEA RSI,[0x1de7f6]
MOV EDX,0x12
MOV RDI,RAX
CALL 0x00179b44
MOV R15,RAX
CALL 0x00155032
LEA RSI,[0x1de809]
LEA RCX,[0x234038]
MOV EDX,0xe
MOV RDI,R15
CALL 0x00179c0a
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x0016fb91
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x00117150
LAB_0016fb91:
MOV RDI,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RDI]
LAB_0016fb98:
CALL qword ptr [RAX + 0x68]
MOV RCX,qword ptr [RAX]
CMP RCX,qword ptr [RAX + 0x8]
JZ 0x0016fbc5
MOV RDI,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x68]
LEA RSI,[0x1de4c6]
MOV EDX,0x7
MOV RDI,R14
MOV RCX,RAX
CALL 0x00179cce
LAB_0016fbc5:
LEA RAX,[RSP + 0x38]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0016fbe0
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x00117150
LAB_0016fbe0:
ADD RSP,0x48
POP RBX
POP R12
POP R14
POP R15
RET
|
/* Catch::XmlReporter::testRunStarting(Catch::TestRunInfo const&) */
void __thiscall Catch::XmlReporter::testRunStarting(XmlReporter *this,TestRunInfo *param_1)
{
XmlWriter *pXVar1;
int4 uVar2;
int4 uVar3;
int4 uVar4;
XmlWriter *pXVar5;
long *plVar6;
int8 uVar7;
int1 auVar8 [16];
long *local_60 [2];
long local_50 [2];
long *local_40;
long local_38;
long local_30 [2];
uVar2 = *(int4 *)(param_1 + 4);
uVar3 = *(int4 *)(param_1 + 8);
uVar4 = *(int4 *)(param_1 + 0xc);
*(int4 *)(this + 0x60) = *(int4 *)param_1;
*(int4 *)(this + 100) = uVar2;
*(int4 *)(this + 0x68) = uVar3;
*(int4 *)(this + 0x6c) = uVar4;
(**(code **)(*(long *)this + 0xc0))(&local_40,this);
if (local_38 != 0) {
/* try { // try from 0016faae to 0016fab2 has its CatchHandler @ 0016fbf0 */
XmlWriter::writeStylesheetRef((XmlWriter *)(this + 0x98),local_40);
}
/* try { // try from 0016fabd to 0016fad4 has its CatchHandler @ 0016fbec */
local_60[0] = local_50;
std::__cxx11::string::_M_construct<char_const*>(local_60,"Catch2TestRun","");
/* try { // try from 0016fad5 to 0016fb11 has its CatchHandler @ 0016fbf7 */
pXVar1 = (XmlWriter *)(this + 0x98);
XmlWriter::startElement(pXVar1,local_60,3);
auVar8 = (**(code **)(**(long **)(this + 0x10) + 0x18))();
XmlWriter::writeAttribute(pXVar1,"name",4,auVar8._0_8_,auVar8._8_8_);
/* try { // try from 0016fb19 to 0016fb39 has its CatchHandler @ 0016fbee */
(**(code **)(**(long **)(this + 0x10) + 0x88))();
pXVar5 = XmlWriter::writeAttribute<unsigned_int,void>(pXVar1,"rng-seed",8);
/* try { // try from 0016fb43 to 0016fb79 has its CatchHandler @ 0016fbf5 */
pXVar5 = XmlWriter::writeAttribute<int,void>(pXVar5,"xml-format-version",0x12);
libraryVersion();
XmlWriter::writeAttribute<Catch::Version,void>
(pXVar5,"catch2-version",0xe,libraryVersion()::version);
if (local_60[0] != local_50) {
operator_delete(local_60[0],local_50[0] + 1);
}
/* try { // try from 0016fb98 to 0016fbc4 has its CatchHandler @ 0016fbf0 */
plVar6 = (long *)(**(code **)(**(long **)(this + 0x10) + 0x68))();
if (*plVar6 != plVar6[1]) {
uVar7 = (**(code **)(**(long **)(this + 0x10) + 0x68))();
XmlWriter::writeAttribute<Catch::TestSpec,void>(pXVar1,"filters",7,uVar7);
}
if (local_40 != local_30) {
operator_delete(local_40,local_30[0] + 1);
}
return;
}
| |
41,003 | my_coll_parser_scan_shift | eloqsql/strings/ctype-uca.c | static int
my_coll_parser_scan_shift(MY_COLL_RULE_PARSER *p)
{
if (my_coll_parser_curr(p)->term == MY_COLL_LEXEM_SHIFT)
{
my_coll_rule_shift_at_level(&p->rule, my_coll_parser_curr(p)->diff);
return my_coll_parser_scan(p);
}
return 0;
} | O3 | c | my_coll_parser_scan_shift:
xorl %eax, %eax
cmpl $0x1, (%rdi)
jne 0x75626
movl 0x20(%rdi), %eax
decl %eax
cmpl $0x3, %eax
ja 0x755f9
leaq 0x1a83c8(%rip), %rcx # 0x21d970
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
incl 0xd0(%rdi)
movl $0x0, 0xdc(%rdi)
movq $0x0, 0xd4(%rdi)
jmp 0x755f9
incl 0xd8(%rdi)
movl $0x0, 0xdc(%rdi)
jmp 0x755f9
incl 0xdc(%rdi)
jmp 0x755f9
incl 0xd4(%rdi)
movq $0x0, 0xd8(%rdi)
pushq %rbp
movq %rsp, %rbp
leaq 0x28(%rdi), %rax
movq 0x48(%rdi), %rcx
movq %rcx, 0x20(%rdi)
movups 0x28(%rdi), %xmm0
movups 0x38(%rdi), %xmm1
movups %xmm1, 0x10(%rdi)
movups %xmm0, (%rdi)
movq %rax, %rdi
callq 0x752f3
movl $0x1, %eax
popq %rbp
retq
| my_coll_parser_scan_shift:
xor eax, eax
cmp dword ptr [rdi], 1
jnz locret_75626
mov eax, [rdi+20h]
dec eax; switch 4 cases
cmp eax, 3
ja short def_755AF; jumptable 00000000000755AF default case
lea rcx, jpt_755AF
movsxd rax, ds:(jpt_755AF - 21D970h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_755B1:
inc dword ptr [rdi+0D0h]; jumptable 00000000000755AF case 1
mov dword ptr [rdi+0DCh], 0
mov qword ptr [rdi+0D4h], 0
jmp short def_755AF; jumptable 00000000000755AF default case
loc_755CE:
inc dword ptr [rdi+0D8h]; jumptable 00000000000755AF case 3
mov dword ptr [rdi+0DCh], 0
jmp short def_755AF; jumptable 00000000000755AF default case
loc_755E0:
inc dword ptr [rdi+0DCh]; jumptable 00000000000755AF case 4
jmp short def_755AF; jumptable 00000000000755AF default case
loc_755E8:
inc dword ptr [rdi+0D4h]; jumptable 00000000000755AF case 2
mov qword ptr [rdi+0D8h], 0
def_755AF:
push rbp; jumptable 00000000000755AF default case
mov rbp, rsp
lea rax, [rdi+28h]
mov rcx, [rdi+48h]
mov [rdi+20h], rcx
movups xmm0, xmmword ptr [rdi+28h]
movups xmm1, xmmword ptr [rdi+38h]
movups xmmword ptr [rdi+10h], xmm1
movups xmmword ptr [rdi], xmm0
mov rdi, rax
call my_coll_lexem_next
mov eax, 1
pop rbp
locret_75626:
retn
| long long my_coll_parser_scan_shift(long long a1)
{
long long result; // rax
__int128 v2; // xmm0
result = 0LL;
if ( *(_DWORD *)a1 == 1 )
{
switch ( *(_DWORD *)(a1 + 32) )
{
case 1:
++*(_DWORD *)(a1 + 208);
*(_DWORD *)(a1 + 220) = 0;
*(_QWORD *)(a1 + 212) = 0LL;
break;
case 2:
++*(_DWORD *)(a1 + 212);
*(_QWORD *)(a1 + 216) = 0LL;
break;
case 3:
++*(_DWORD *)(a1 + 216);
*(_DWORD *)(a1 + 220) = 0;
break;
case 4:
++*(_DWORD *)(a1 + 220);
break;
default:
break;
}
*(_QWORD *)(a1 + 32) = *(_QWORD *)(a1 + 72);
v2 = *(_OWORD *)(a1 + 40);
*(_OWORD *)(a1 + 16) = *(_OWORD *)(a1 + 56);
*(_OWORD *)a1 = v2;
my_coll_lexem_next(a1 + 40);
return 1LL;
}
return result;
}
| my_coll_parser_scan_shift:
XOR EAX,EAX
CMP dword ptr [RDI],0x1
JNZ 0x00175626
MOV EAX,dword ptr [RDI + 0x20]
DEC EAX
CMP EAX,0x3
JA 0x001755f9
LEA RCX,[0x31d970]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
INC dword ptr [RDI + 0xd0]
MOV dword ptr [RDI + 0xdc],0x0
MOV qword ptr [RDI + 0xd4],0x0
JMP 0x001755f9
caseD_3:
INC dword ptr [RDI + 0xd8]
MOV dword ptr [RDI + 0xdc],0x0
JMP 0x001755f9
caseD_4:
INC dword ptr [RDI + 0xdc]
JMP 0x001755f9
caseD_2:
INC dword ptr [RDI + 0xd4]
MOV qword ptr [RDI + 0xd8],0x0
default:
PUSH RBP
MOV RBP,RSP
LEA RAX,[RDI + 0x28]
MOV RCX,qword ptr [RDI + 0x48]
MOV qword ptr [RDI + 0x20],RCX
MOVUPS XMM0,xmmword ptr [RDI + 0x28]
MOVUPS XMM1,xmmword ptr [RDI + 0x38]
MOVUPS xmmword ptr [RDI + 0x10],XMM1
MOVUPS xmmword ptr [RDI],XMM0
MOV RDI,RAX
CALL 0x001752f3
MOV EAX,0x1
POP RBP
LAB_00175626:
RET
|
int8 my_coll_parser_scan_shift(int *param_1)
{
int8 uVar1;
uVar1 = 0;
if (*param_1 == 1) {
switch(param_1[8]) {
case 1:
param_1[0x34] = param_1[0x34] + 1;
param_1[0x37] = 0;
param_1[0x35] = 0;
param_1[0x36] = 0;
break;
case 2:
param_1[0x35] = param_1[0x35] + 1;
param_1[0x36] = 0;
param_1[0x37] = 0;
break;
case 3:
param_1[0x36] = param_1[0x36] + 1;
param_1[0x37] = 0;
break;
case 4:
param_1[0x37] = param_1[0x37] + 1;
}
*(int8 *)(param_1 + 8) = *(int8 *)(param_1 + 0x12);
param_1[4] = param_1[0xe];
param_1[5] = param_1[0xf];
param_1[6] = param_1[0x10];
param_1[7] = param_1[0x11];
*param_1 = param_1[10];
param_1[1] = param_1[0xb];
param_1[2] = param_1[0xc];
param_1[3] = param_1[0xd];
my_coll_lexem_next(param_1 + 10);
uVar1 = 1;
}
return uVar1;
}
| |
41,004 | uf_space_endspace | eloqsql/storage/maria/ma_packrec.c | static void uf_space_endspace(MARIA_COLUMNDEF *rec, MARIA_BIT_BUFF *bit_buff,
uchar *to, uchar *end)
{
uint spaces;
if (get_bit(bit_buff))
bfill(to, (end-to), ' ');
else
{
if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end)
{
bit_buff->error=1;
return;
}
if (to+spaces != end)
decode_bytes(rec,bit_buff,to,end-spaces);
bfill(end - spaces, spaces, ' ');
}
} | O3 | c | uf_space_endspace:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r13
movl 0x4(%rsi), %eax
testl %eax, %eax
je 0x45fed
movl (%r15), %r12d
decl %eax
movl %eax, 0x4(%r15)
btl %eax, %r12d
jae 0x4600a
subq %r14, %rbx
movq %r14, %rdi
movl $0x20, %esi
movq %rbx, %rdx
jmp 0x460ba
movq %r15, %rdi
callq 0x45a50
movl $0x1f, 0x4(%r15)
movl (%r15), %r12d
movl $0x1f, %eax
testl %r12d, %r12d
js 0x45fda
movq %r13, %rdx
movl 0x24(%r13), %r13d
movl %eax, %ecx
subl %r13d, %ecx
movq %rdx, -0x30(%rbp)
jae 0x46056
subl %eax, %r13d
movl %eax, %eax
leaq 0x9fce8(%rip), %rcx # 0xe5d10
andl (%rcx,%rax,4), %r12d
movl %r13d, %ecx
shll %cl, %r12d
movq %r15, %rdi
callq 0x45a50
movl $0x20, %eax
subl %r13d, %eax
movl %eax, 0x4(%r15)
movl (%r15), %eax
negl %r13d
movl %r13d, %ecx
shrl %cl, %eax
addl %eax, %r12d
jmp 0x4606b
movl %ecx, 0x4(%r15)
shrl %cl, %r12d
movl 0x24(%rdx), %eax
leaq 0x9fca9(%rip), %rcx # 0xe5d10
andl (%rcx,%rax,4), %r12d
movl %r12d, %r13d
leaq (%r14,%r13), %rax
cmpq %rbx, %rax
jbe 0x4608e
movl $0x1, 0x28(%r15)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, %r12
negq %r12
cmpq %rbx, %rax
je 0x460ac
leaq (%rbx,%r12), %rcx
movq -0x30(%rbp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x45c0d
addq %r12, %rbx
movq %rbx, %rdi
movl $0x20, %esi
movq %r13, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2a290
| uf_space_endspace:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rcx
mov r14, rdx
mov r15, rsi
mov r13, rdi
mov eax, [rsi+4]
test eax, eax
jz short loc_45FED
mov r12d, [r15]
dec eax
mov [r15+4], eax
bt r12d, eax
jnb short loc_4600A
loc_45FDA:
sub rbx, r14
mov rdi, r14
mov esi, 20h ; ' '
mov rdx, rbx
jmp loc_460BA
loc_45FED:
mov rdi, r15
call fill_buffer
mov dword ptr [r15+4], 1Fh
mov r12d, [r15]
mov eax, 1Fh
test r12d, r12d
js short loc_45FDA
loc_4600A:
mov rdx, r13
mov r13d, [r13+24h]
mov ecx, eax
sub ecx, r13d
mov [rbp+var_30], rdx
jnb short loc_46056
sub r13d, eax
mov eax, eax
lea rcx, mask
and r12d, [rcx+rax*4]
mov ecx, r13d
shl r12d, cl
mov rdi, r15
call fill_buffer
mov eax, 20h ; ' '
sub eax, r13d
mov [r15+4], eax
mov eax, [r15]
neg r13d
mov ecx, r13d
shr eax, cl
add r12d, eax
jmp short loc_4606B
loc_46056:
mov [r15+4], ecx
shr r12d, cl
mov eax, [rdx+24h]
lea rcx, mask
and r12d, [rcx+rax*4]
loc_4606B:
mov r13d, r12d
lea rax, [r14+r13]
cmp rax, rbx
jbe short loc_4608E
mov dword ptr [r15+28h], 1
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4608E:
mov r12, r13
neg r12
cmp rax, rbx
jz short loc_460AC
lea rcx, [rbx+r12]
mov rdi, [rbp+var_30]
mov rsi, r15
mov rdx, r14
call decode_bytes
loc_460AC:
add rbx, r12
mov rdi, rbx
mov esi, 20h ; ' '
mov rdx, r13
loc_460BA:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _memset
| unsigned long long uf_space_endspace(long long a1, unsigned int *a2, _BYTE *a3, unsigned long long a4)
{
unsigned int v6; // eax
unsigned int v7; // r12d
unsigned int v8; // eax
unsigned long long result; // rax
unsigned int v10; // r13d
unsigned int v11; // ecx
int v12; // r13d
int v13; // r12d
unsigned int v14; // r12d
v6 = a2[1];
if ( v6 )
{
v7 = *a2;
v8 = v6 - 1;
a2[1] = v8;
if ( _bittest((const int *)&v7, v8) )
return memset(a3, 32LL, a4 - (_QWORD)a3);
}
else
{
fill_buffer((long long)a2);
a2[1] = 31;
v7 = *a2;
v8 = 31;
if ( (*a2 & 0x80000000) != 0 )
return memset(a3, 32LL, a4 - (_QWORD)a3);
}
v10 = *(_DWORD *)(a1 + 36);
v11 = v8 - v10;
if ( v8 >= v10 )
{
a2[1] = v11;
v14 = mask[*(unsigned int *)(a1 + 36)] & (v7 >> v11);
}
else
{
v12 = v10 - v8;
v13 = (mask[v8] & v7) << v12;
fill_buffer((long long)a2);
a2[1] = 32 - v12;
v14 = (*a2 >> -(char)v12) + v13;
}
result = (unsigned long long)&a3[v14];
if ( result <= a4 )
{
if ( result != a4 )
decode_bytes(a1, (long long)a2, a3, (_BYTE *)(a4 - v14));
return memset(a4 - v14, 32LL, v14);
}
else
{
a2[10] = 1;
}
return result;
}
| uf_space_endspace:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RCX
MOV R14,RDX
MOV R15,RSI
MOV R13,RDI
MOV EAX,dword ptr [RSI + 0x4]
TEST EAX,EAX
JZ 0x00145fed
MOV R12D,dword ptr [R15]
DEC EAX
MOV dword ptr [R15 + 0x4],EAX
BT R12D,EAX
JNC 0x0014600a
LAB_00145fda:
SUB RBX,R14
MOV RDI,R14
MOV ESI,0x20
MOV RDX,RBX
JMP 0x001460ba
LAB_00145fed:
MOV RDI,R15
CALL 0x00145a50
MOV dword ptr [R15 + 0x4],0x1f
MOV R12D,dword ptr [R15]
MOV EAX,0x1f
TEST R12D,R12D
JS 0x00145fda
LAB_0014600a:
MOV RDX,R13
MOV R13D,dword ptr [R13 + 0x24]
MOV ECX,EAX
SUB ECX,R13D
MOV qword ptr [RBP + -0x30],RDX
JNC 0x00146056
SUB R13D,EAX
MOV EAX,EAX
LEA RCX,[0x1e5d10]
AND R12D,dword ptr [RCX + RAX*0x4]
MOV ECX,R13D
SHL R12D,CL
MOV RDI,R15
CALL 0x00145a50
MOV EAX,0x20
SUB EAX,R13D
MOV dword ptr [R15 + 0x4],EAX
MOV EAX,dword ptr [R15]
NEG R13D
MOV ECX,R13D
SHR EAX,CL
ADD R12D,EAX
JMP 0x0014606b
LAB_00146056:
MOV dword ptr [R15 + 0x4],ECX
SHR R12D,CL
MOV EAX,dword ptr [RDX + 0x24]
LEA RCX,[0x1e5d10]
AND R12D,dword ptr [RCX + RAX*0x4]
LAB_0014606b:
MOV R13D,R12D
LEA RAX,[R14 + R13*0x1]
CMP RAX,RBX
JBE 0x0014608e
MOV dword ptr [R15 + 0x28],0x1
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014608e:
MOV R12,R13
NEG R12
CMP RAX,RBX
JZ 0x001460ac
LEA RCX,[RBX + R12*0x1]
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,R15
MOV RDX,R14
CALL 0x00145c0d
LAB_001460ac:
ADD RBX,R12
MOV RDI,RBX
MOV ESI,0x20
MOV RDX,R13
LAB_001460ba:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0012a290
|
void uf_space_endspace(long param_1,uint *param_2,void *param_3,ulong param_4)
{
uint uVar1;
uint uVar2;
uint uVar3;
byte bVar4;
size_t __n;
uint uVar5;
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar5 = *param_2;
uVar3 = 0x1f;
if (-1 < (int)uVar5) goto LAB_0014600a;
}
else {
uVar5 = *param_2;
uVar3 = param_2[1] - 1;
param_2[1] = uVar3;
if ((uVar5 >> (uVar3 & 0x1f) & 1) == 0) {
LAB_0014600a:
uVar1 = *(uint *)(param_1 + 0x24);
if (uVar3 < uVar1) {
uVar2 = (&mask)[uVar3];
bVar4 = (byte)(uVar1 - uVar3);
fill_buffer(param_2);
param_2[1] = 0x20 - (uVar1 - uVar3);
uVar5 = ((uVar5 & uVar2) << (bVar4 & 0x1f)) + (*param_2 >> (-bVar4 & 0x1f));
}
else {
param_2[1] = uVar3 - uVar1;
uVar5 = uVar5 >> ((byte)(uVar3 - uVar1) & 0x1f) & (&mask)[*(uint *)(param_1 + 0x24)];
}
__n = (size_t)uVar5;
if (param_4 < (long)param_3 + __n) {
param_2[10] = 1;
return;
}
if ((long)param_3 + __n != param_4) {
decode_bytes(param_1,param_2,param_3,param_4 + -__n);
}
param_3 = (void *)(param_4 + -__n);
goto LAB_001460ba;
}
}
__n = param_4 - (long)param_3;
LAB_001460ba:
memset(param_3,0x20,__n);
return;
}
| |
41,005 | clz32 | bluesky950520[P]quickjs/cutils.h | static inline int clz32(unsigned int a)
{
#if defined(_MSC_VER) && !defined(__clang__)
unsigned long index;
_BitScanReverse(&index, a);
return 31 - index;
#else
return __builtin_clz(a);
#endif
} | O0 | c | clz32:
movl %edi, -0x4(%rsp)
movl -0x4(%rsp), %eax
bsrl %eax, %eax
xorl $0x1f, %eax
retq
nop
| clz32:
mov [rsp+var_4], edi
mov eax, [rsp+var_4]
bsr eax, eax
xor eax, 1Fh
retn
| long long clz32(unsigned int a1)
{
unsigned int v1; // eax
_BitScanReverse(&v1, a1);
return v1 ^ 0x1F;
}
| clz32:
MOV dword ptr [RSP + -0x4],EDI
MOV EAX,dword ptr [RSP + -0x4]
BSR EAX,EAX
XOR EAX,0x1f
RET
|
uint clz32(uint param_1)
{
uint uVar1;
uVar1 = 0x1f;
if (param_1 != 0) {
for (; param_1 >> uVar1 == 0; uVar1 = uVar1 - 1) {
}
}
return uVar1 ^ 0x1f;
}
| |
41,006 | st_select_lex_unit::register_select_chain(st_select_lex*) | eloqsql/sql/sql_lex.cc | void st_select_lex_unit::register_select_chain(SELECT_LEX *first_sel)
{
DBUG_ASSERT(first_sel != 0);
slave= first_sel;
first_sel->prev= &slave;
for(SELECT_LEX *sel=first_sel; sel; sel= sel->next_select())
{
sel->master= (st_select_lex_node *)this;
uncacheable|= sel->uncacheable;
}
} | O0 | cpp | st_select_lex_unit::register_select_chain(st_select_lex*):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0x58bfba
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rax, 0x18(%rcx)
addq $0x18, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x58c00d
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
movq %rax, 0x10(%rcx)
movq -0x18(%rbp), %rcx
movzbl 0x40(%rcx), %edx
movzbl 0x40(%rax), %ecx
orl %edx, %ecx
movb %cl, 0x40(%rax)
movq -0x18(%rbp), %rdi
callq 0x56a510
movq %rax, -0x18(%rbp)
jmp 0x58bfda
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZN18st_select_lex_unit21register_select_chainEP13st_select_lex:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov [rbp+var_20], rax
jmp short $+2
loc_58BFBA:
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov [rcx+18h], rax
add rcx, 18h
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov rax, [rbp+var_10]
mov [rbp+var_18], rax
loc_58BFDA:
cmp [rbp+var_18], 0
jz short loc_58C00D
mov rax, [rbp+var_20]
mov rcx, [rbp+var_18]
mov [rcx+10h], rax
mov rcx, [rbp+var_18]
movzx edx, byte ptr [rcx+40h]
movzx ecx, byte ptr [rax+40h]
or ecx, edx
mov [rax+40h], cl
mov rdi, [rbp+var_18]; this
call _ZN13st_select_lex11next_selectEv; st_select_lex::next_select(void)
mov [rbp+var_18], rax
jmp short loc_58BFDA
loc_58C00D:
add rsp, 20h
pop rbp
retn
| st_select_lex * st_select_lex_unit::register_select_chain(st_select_lex_unit *this, st_select_lex *a2)
{
st_select_lex *result; // rax
st_select_lex *i; // [rsp+8h] [rbp-18h]
*((_QWORD *)this + 3) = a2;
*((_QWORD *)a2 + 1) = (char *)this + 24;
result = a2;
for ( i = a2; i; i = result )
{
*((_QWORD *)i + 2) = this;
*((_BYTE *)this + 64) |= *((_BYTE *)i + 64);
result = (st_select_lex *)st_select_lex::next_select(i);
}
return result;
}
| __cxx_global_var_init.9:
PUSH RBP
MOV RBP,RSP
LEA RDI,[0x1f525b8]
MOV ESI,0x3800000
CALL 0x0058cc10
POP RBP
RET
|
void __cxx_global_var_init_9(void)
{
date_conv_mode_t::date_conv_mode_t((date_conv_mode_t *)&TIME_MODE_FOR_XXX_TO_DATE,0x3800000);
return;
}
| |
41,007 | ssz_add_builders | corpus-core[P]colibri-stateless/src/util/ssz_builder.c | void ssz_add_builders(ssz_builder_t* buffer, const char* name, ssz_builder_t data) {
const ssz_def_t* def = find_def(buffer->def, name);
if (def && def->type == SSZ_TYPE_UNION) {
bool found = false;
for (int i = 0; i < def->def.container.len; i++) {
if (def->def.container.elements + i == data.def || (data.def->type == SSZ_TYPE_CONTAINER && def->def.container.elements[i].def.container.elements == data.def->def.container.elements)) {
uint8_t selector = i;
found = true;
buffer_splice(&data.fixed, 0, 0, bytes(&selector, 1));
break;
}
}
if (!found) {
log_error("ssz_add_builders: Uniontype %s not found in %s.%s\n", data.def->name, buffer->def->name, name);
return;
}
}
ssz_ob_t element = ssz_builder_to_bytes(&data);
ssz_add_bytes(buffer, name, element.bytes);
safe_free(element.bytes.data);
} | O0 | c | ssz_add_builders:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
leaq 0x10(%rbp), %rax
movq %rax, -0x70(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0xa3ad0
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0xa3a93
movq -0x18(%rbp), %rax
cmpl $0x7, 0x8(%rax)
jne 0xa3a93
movb $0x0, -0x19(%rbp)
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jae 0xa3a02
movq -0x70(%rbp), %rcx
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x20(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rax
cmpq (%rcx), %rax
je 0xa39bd
movq -0x70(%rbp), %rax
movq (%rax), %rax
cmpl $0x2, 0x8(%rax)
jne 0xa39f2
movq -0x70(%rbp), %rcx
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x20(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movq 0x10(%rax), %rax
movq (%rcx), %rcx
cmpq 0x10(%rcx), %rax
jne 0xa39f2
movq -0x70(%rbp), %rdi
movl -0x20(%rbp), %eax
movb %al, -0x21(%rbp)
movb $0x1, -0x19(%rbp)
addq $0x8, %rdi
movl $0x1, -0x38(%rbp)
leaq -0x21(%rbp), %rax
movq %rax, -0x30(%rbp)
movl -0x38(%rbp), %ecx
movq -0x30(%rbp), %r8
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq 0x9e150
jmp 0xa3a02
jmp 0xa39f4
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0xa3960
testb $0x1, -0x19(%rbp)
jne 0xa3a91
jmp 0xa3a0e
movb $0x0, %al
callq 0xa7590
cmpl $0x1, %eax
jb 0xa3a8d
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x231c0
movq -0x70(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rdx
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rcx
movq -0x10(%rbp), %r8
leaq -0x50(%rbp), %rdi
leaq 0x44187(%rip), %rsi # 0xe7bd4
movb $0x0, %al
callq 0x9ebf0
movq 0x9556d(%rip), %rax # 0x138fc8
movq (%rax), %rdi
movq -0x48(%rbp), %r9
leaq 0x38a5e(%rip), %rsi # 0xdc4c7
leaq 0x440ac(%rip), %rdx # 0xe7b1c
leaq 0x44190(%rip), %rcx # 0xe7c07
movl $0x2d, %r8d
movb $0x0, %al
callq 0x23160
leaq -0x50(%rbp), %rdi
callq 0x9e240
jmp 0xa3a8f
jmp 0xa3abd
jmp 0xa3a93
movq -0x70(%rbp), %rsi
leaq -0x68(%rbp), %rdi
callq 0xa3b70
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x68(%rbp), %edx
movq -0x60(%rbp), %rcx
callq 0xa3be0
movq -0x60(%rbp), %rdi
callq 0x9dbf0
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ssz_add_builders:
push rbp
mov rbp, rsp
sub rsp, 70h
lea rax, [rbp+arg_0]
mov [rbp+var_70], rax
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov rdi, [rax]
mov rsi, [rbp+var_10]
call find_def
mov [rbp+var_18], rax
cmp [rbp+var_18], 0
jz loc_A3A93
mov rax, [rbp+var_18]
cmp dword ptr [rax+8], 7
jnz loc_A3A93
mov [rbp+var_19], 0
mov [rbp+var_20], 0
loc_A3960:
mov eax, [rbp+var_20]
mov rcx, [rbp+var_18]
cmp eax, [rcx+18h]
jnb loc_A3A02
mov rcx, [rbp+var_70]
mov rax, [rbp+var_18]
mov rax, [rax+10h]
movsxd rdx, [rbp+var_20]
shl rdx, 5
add rax, rdx
cmp rax, [rcx]
jz short loc_A39BD
mov rax, [rbp+var_70]
mov rax, [rax]
cmp dword ptr [rax+8], 2
jnz short loc_A39F2
mov rcx, [rbp+var_70]
mov rax, [rbp+var_18]
mov rax, [rax+10h]
movsxd rdx, [rbp+var_20]
shl rdx, 5
add rax, rdx
mov rax, [rax+10h]
mov rcx, [rcx]
cmp rax, [rcx+10h]
jnz short loc_A39F2
loc_A39BD:
mov rdi, [rbp+var_70]
mov eax, [rbp+var_20]
mov [rbp+var_21], al
mov [rbp+var_19], 1
add rdi, 8
mov [rbp+var_38], 1
lea rax, [rbp+var_21]
mov [rbp+var_30], rax
mov ecx, [rbp+var_38]
mov r8, [rbp+var_30]
xor eax, eax
mov esi, eax
xor edx, edx
call buffer_splice
jmp short loc_A3A02
loc_A39F2:
jmp short $+2
loc_A39F4:
mov eax, [rbp+var_20]
add eax, 1
mov [rbp+var_20], eax
jmp loc_A3960
loc_A3A02:
test [rbp+var_19], 1
jnz loc_A3A91
jmp short $+2
loc_A3A0E:
mov al, 0
call c4_get_log_level
cmp eax, 1
jb short loc_A3A8D
lea rdi, [rbp+var_50]
xor esi, esi
mov edx, 18h
call _memset
mov rax, [rbp+var_70]
mov rax, [rax]
mov rdx, [rax]
mov rax, [rbp+var_8]
mov rax, [rax]
mov rcx, [rax]
mov r8, [rbp+var_10]
lea rdi, [rbp+var_50]
lea rsi, aSszAddBuilders; "ssz_add_builders: Uniontype %s not foun"...
mov al, 0
call bprintf
mov rax, cs:stderr_ptr
mov rdi, [rax]
mov r9, [rbp+var_48]
lea rsi, aS0m32mSD0mS; "%s\x1B[0m\x1B[32m %s:%d\x1B[0m %s\n"
lea rdx, a31merror; "\x1B[31mERROR"
lea rcx, aSszAddBuilders_0; "ssz_add_builders"
mov r8d, 2Dh ; '-'
mov al, 0
call _fprintf
lea rdi, [rbp+var_50]
call buffer_free
loc_A3A8D:
jmp short $+2
loc_A3A8F:
jmp short loc_A3ABD
loc_A3A91:
jmp short $+2
loc_A3A93:
mov rsi, [rbp+var_70]
lea rdi, [rbp+var_68]
call ssz_builder_to_bytes
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov edx, [rbp+var_68]
mov rcx, [rbp+var_60]
call ssz_add_bytes
mov rdi, [rbp+var_60]
call safe_free
loc_A3ABD:
add rsp, 70h
pop rbp
retn
| long long ssz_add_builders(
long long **a1,
long long a2,
_DWORD a3,
_DWORD a4,
_DWORD a5,
_DWORD a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14,
long long a15,
long long a16)
{
long long result; // rax
long long v17; // r9
__m128 v18; // xmm4
__m128 v19; // xmm5
unsigned int v20; // [rsp+8h] [rbp-68h] BYREF
long long v21; // [rsp+10h] [rbp-60h]
unsigned int v22; // [rsp+20h] [rbp-50h] BYREF
const char *v23; // [rsp+28h] [rbp-48h]
int v24; // [rsp+38h] [rbp-38h]
char *v25; // [rsp+40h] [rbp-30h]
char v26; // [rsp+4Fh] [rbp-21h] BYREF
unsigned int i; // [rsp+50h] [rbp-20h]
char v28; // [rsp+57h] [rbp-19h]
long long def; // [rsp+58h] [rbp-18h]
long long v30; // [rsp+60h] [rbp-10h]
long long **v31; // [rsp+68h] [rbp-8h]
v31 = a1;
v30 = a2;
def = find_def(*a1, a2);
if ( !def || *(_DWORD *)(def + 8) != 7 )
goto LABEL_14;
v28 = 0;
for ( i = 0; i < *(_DWORD *)(def + 24); ++i )
{
if ( 32LL * (int)i + *(_QWORD *)(def + 16) == a15
|| *(_DWORD *)(a15 + 8) == 2 && *(_QWORD *)(32LL * (int)i + *(_QWORD *)(def + 16) + 16) == *(_QWORD *)(a15 + 16) )
{
v26 = i;
v28 = 1;
v24 = 1;
v25 = &v26;
buffer_splice((unsigned long long)&a16, 0LL, 0, 1u, (long long)&v26);
break;
}
}
if ( (v28 & 1) == 0 )
{
result = c4_get_log_level();
if ( (_DWORD)result )
{
memset(&v22, 0LL, 24LL);
bprintf(
&v22,
(long long)"ssz_add_builders: Uniontype %s not found in %s.%s\n",
*(_QWORD *)a15,
**v31,
v30,
v17,
a7,
a8,
a9,
a10,
v18,
v19,
a13,
a14,
(char)&a15);
fprintf(stderr, "%s\x1B[0m\x1B[32m %s:%d\x1B[0m %s\n", "\x1B[31mERROR", "ssz_add_builders", 45, v23);
return buffer_free((long long)&v22);
}
}
else
{
LABEL_14:
ssz_builder_to_bytes(&v20, &a15);
ssz_add_bytes(v31, v30, v20, v21);
return safe_free(v21);
}
return result;
}
| ssz_add_builders:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0x70],RAX
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x001a3ad0
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0x0
JZ 0x001a3a93
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX + 0x8],0x7
JNZ 0x001a3a93
MOV byte ptr [RBP + -0x19],0x0
MOV dword ptr [RBP + -0x20],0x0
LAB_001a3960:
MOV EAX,dword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x18]
CMP EAX,dword ptr [RCX + 0x18]
JNC 0x001a3a02
MOV RCX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOVSXD RDX,dword ptr [RBP + -0x20]
SHL RDX,0x5
ADD RAX,RDX
CMP RAX,qword ptr [RCX]
JZ 0x001a39bd
MOV RAX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0x8],0x2
JNZ 0x001a39f2
MOV RCX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOVSXD RDX,dword ptr [RBP + -0x20]
SHL RDX,0x5
ADD RAX,RDX
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RCX]
CMP RAX,qword ptr [RCX + 0x10]
JNZ 0x001a39f2
LAB_001a39bd:
MOV RDI,qword ptr [RBP + -0x70]
MOV EAX,dword ptr [RBP + -0x20]
MOV byte ptr [RBP + -0x21],AL
MOV byte ptr [RBP + -0x19],0x1
ADD RDI,0x8
MOV dword ptr [RBP + -0x38],0x1
LEA RAX,[RBP + -0x21]
MOV qword ptr [RBP + -0x30],RAX
MOV ECX,dword ptr [RBP + -0x38]
MOV R8,qword ptr [RBP + -0x30]
XOR EAX,EAX
MOV ESI,EAX
XOR EDX,EDX
CALL 0x0019e150
JMP 0x001a3a02
LAB_001a39f2:
JMP 0x001a39f4
LAB_001a39f4:
MOV EAX,dword ptr [RBP + -0x20]
ADD EAX,0x1
MOV dword ptr [RBP + -0x20],EAX
JMP 0x001a3960
LAB_001a3a02:
TEST byte ptr [RBP + -0x19],0x1
JNZ 0x001a3a91
JMP 0x001a3a0e
LAB_001a3a0e:
MOV AL,0x0
CALL 0x001a7590
CMP EAX,0x1
JC 0x001a3a8d
LEA RDI,[RBP + -0x50]
XOR ESI,ESI
MOV EDX,0x18
CALL 0x001231c0
MOV RAX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RAX]
MOV RDX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RAX]
MOV R8,qword ptr [RBP + -0x10]
LEA RDI,[RBP + -0x50]
LEA RSI,[0x1e7bd4]
MOV AL,0x0
CALL 0x0019ebf0
MOV RAX,qword ptr [0x00238fc8]
MOV RDI,qword ptr [RAX]
MOV R9,qword ptr [RBP + -0x48]
LEA RSI,[0x1dc4c7]
LEA RDX,[0x1e7b1c]
LEA RCX,[0x1e7c07]
MOV R8D,0x2d
MOV AL,0x0
CALL 0x00123160
LEA RDI,[RBP + -0x50]
CALL 0x0019e240
LAB_001a3a8d:
JMP 0x001a3a8f
LAB_001a3a8f:
JMP 0x001a3abd
LAB_001a3a91:
JMP 0x001a3a93
LAB_001a3a93:
MOV RSI,qword ptr [RBP + -0x70]
LEA RDI,[RBP + -0x68]
CALL 0x001a3b70
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x60]
CALL 0x001a3be0
MOV RDI,qword ptr [RBP + -0x60]
CALL 0x0019dbf0
LAB_001a3abd:
ADD RSP,0x70
POP RBP
RET
|
void ssz_add_builders(int8 *param_1,int8 param_2)
{
int iVar1;
int8 *in_stack_00000008;
int4 local_70 [2];
int8 local_68;
int1 local_58 [8];
int8 local_50;
int4 local_40;
int1 *local_38;
int1 local_29;
uint local_28;
byte local_21;
long local_20;
int8 local_18;
int8 *local_10;
local_18 = param_2;
local_10 = param_1;
local_20 = find_def(*param_1);
if ((local_20 != 0) && (*(int *)(local_20 + 8) == 7)) {
local_21 = 0;
for (local_28 = 0; local_28 < *(uint *)(local_20 + 0x18); local_28 = local_28 + 1) {
if (((int8 *)(*(long *)(local_20 + 0x10) + (long)(int)local_28 * 0x20) ==
in_stack_00000008) ||
((*(int *)(in_stack_00000008 + 1) == 2 &&
(*(long *)(*(long *)(local_20 + 0x10) + (long)(int)local_28 * 0x20 + 0x10) ==
in_stack_00000008[2])))) {
local_29 = (int1)local_28;
local_21 = 1;
local_40 = 1;
local_38 = &local_29;
buffer_splice(&stack0x00000010,0,0,1,local_38);
break;
}
}
if ((local_21 & 1) == 0) {
iVar1 = c4_get_log_level();
if (iVar1 == 0) {
return;
}
memset(local_58,0,0x18);
bprintf(local_58,"ssz_add_builders: Uniontype %s not found in %s.%s\n",*in_stack_00000008,
*(int8 *)*local_10,local_18);
fprintf(*(FILE **)PTR_stderr_00238fc8,"%s\x1b[0m\x1b[32m %s:%d\x1b[0m %s\n",&DAT_001e7b1c,
"ssz_add_builders",0x2d,local_50);
buffer_free(local_58);
return;
}
}
ssz_builder_to_bytes(local_70,&stack0x00000008);
ssz_add_bytes(local_10,local_18,local_70[0],local_68);
safe_free(local_68);
return;
}
| |
41,008 | ssz_add_builders | corpus-core[P]colibri-stateless/src/util/ssz_builder.c | void ssz_add_builders(ssz_builder_t* buffer, const char* name, ssz_builder_t data) {
const ssz_def_t* def = find_def(buffer->def, name);
if (def && def->type == SSZ_TYPE_UNION) {
bool found = false;
for (int i = 0; i < def->def.container.len; i++) {
if (def->def.container.elements + i == data.def || (data.def->type == SSZ_TYPE_CONTAINER && def->def.container.elements[i].def.container.elements == data.def->def.container.elements)) {
uint8_t selector = i;
found = true;
buffer_splice(&data.fixed, 0, 0, bytes(&selector, 1));
break;
}
}
if (!found) {
log_error("ssz_add_builders: Uniontype %s not found in %s.%s\n", data.def->name, buffer->def->name, name);
return;
}
}
ssz_ob_t element = ssz_builder_to_bytes(&data);
ssz_add_bytes(buffer, name, element.bytes);
safe_free(element.bytes.data);
} | O2 | c | ssz_add_builders:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x40(%rsp), %r15
movq (%rdi), %rdi
callq 0x4e360
testq %rax, %rax
je 0x4e2af
cmpl $0x7, 0x8(%rax)
jne 0x4e2af
movl 0x18(%rax), %ecx
movq (%r15), %rdx
xorl %edi, %edi
xorl %esi, %esi
cmpq %rsi, %rcx
je 0x4e2e8
movq 0x10(%rax), %r8
leaq (%r8,%rdi), %r9
cmpq %rdx, %r9
je 0x4e299
cmpl $0x2, 0x8(%rdx)
jne 0x4e290
movq 0x10(%r8,%rdi), %r8
cmpq 0x10(%rdx), %r8
je 0x4e299
incq %rsi
addq $0x20, %rdi
jmp 0x4e26d
movq %rsp, %r8
movb %sil, (%r8)
leaq 0x8(%r15), %rdi
pushq $0x1
popq %rcx
xorl %esi, %esi
xorl %edx, %edx
callq 0x4b0ea
movq %rsp, %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x4e3c1
movl (%r12), %edx
movq 0x8(%r12), %r15
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rcx
callq 0x4e400
movq %r15, %rdi
callq 0x4aff8
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorl %eax, %eax
callq 0x504ab
testl %eax, %eax
je 0x4e2dc
xorps %xmm0, %xmm0
movq %rsp, %r12
movaps %xmm0, (%r12)
andq $0x0, 0x10(%r12)
movq (%r15), %rax
movq (%rax), %rdx
movq (%r14), %rax
movq (%rax), %rcx
leaq 0x31215(%rip), %rsi # 0x7f52c
movq %r12, %rdi
movq %rbx, %r8
xorl %eax, %eax
callq 0x4b737
movq 0x6dc9d(%rip), %rax # 0xbbfc8
movq (%rax), %rdi
movq 0x8(%r12), %r9
leaq 0x26105(%rip), %rsi # 0x7443f
leaq 0x31133(%rip), %rdx # 0x7f474
leaq 0x31217(%rip), %rcx # 0x7f55f
pushq $0x2d
popq %r8
xorl %eax, %eax
callq 0x22140
movq %r12, %rdi
callq 0x4b16d
jmp 0x4e2dc
| ssz_add_builders:
push r15
push r14
push r12
push rbx
sub rsp, 18h
mov rbx, rsi
mov r14, rdi
lea r15, [rsp+38h+arg_0]
mov rdi, [rdi]
call find_def
test rax, rax
jz short loc_4E2AF
cmp dword ptr [rax+8], 7
jnz short loc_4E2AF
mov ecx, [rax+18h]
mov rdx, [r15]
xor edi, edi
xor esi, esi
loc_4E26D:
cmp rcx, rsi
jz short loc_4E2E8
mov r8, [rax+10h]
lea r9, [r8+rdi]
cmp r9, rdx
jz short loc_4E299
cmp dword ptr [rdx+8], 2
jnz short loc_4E290
mov r8, [r8+rdi+10h]
cmp r8, [rdx+10h]
jz short loc_4E299
loc_4E290:
inc rsi
add rdi, 20h ; ' '
jmp short loc_4E26D
loc_4E299:
mov r8, rsp
mov [r8], sil
lea rdi, [r15+8]
push 1
pop rcx
xor esi, esi
xor edx, edx
call buffer_splice
loc_4E2AF:
mov r12, rsp
mov rdi, r12
mov rsi, r15
call ssz_builder_to_bytes
mov edx, [r12]
mov r15, [r12+8]
mov rdi, r14
mov rsi, rbx
mov rcx, r15
call ssz_add_bytes
mov rdi, r15
call safe_free
loc_4E2DC:
add rsp, 18h
pop rbx
pop r12
pop r14
pop r15
retn
loc_4E2E8:
xor eax, eax
call c4_get_log_level
test eax, eax
jz short loc_4E2DC
xorps xmm0, xmm0
mov r12, rsp
movaps xmmword ptr [r12], xmm0
and qword ptr [r12+10h], 0
mov rax, [r15]
mov rdx, [rax]
mov rax, [r14]
mov rcx, [rax]
lea rsi, aSszAddBuilders; "ssz_add_builders: Uniontype %s not foun"...
mov rdi, r12
mov r8, rbx
xor eax, eax
call bprintf
mov rax, cs:stderr_ptr
mov rdi, [rax]
mov r9, [r12+8]
lea rsi, aS0m32mSD0mS; "%s\x1B[0m\x1B[32m %s:%d\x1B[0m %s\n"
lea rdx, a31merror; "\x1B[31mERROR"
lea rcx, aSszAddBuilders_0; "ssz_add_builders"
push 2Dh ; '-'
pop r8
xor eax, eax
call _fprintf
mov rdi, r12
call buffer_free
jmp loc_4E2DC
| long long ssz_add_builders(
long long **a1,
long long a2,
_DWORD a3,
_DWORD a4,
_DWORD a5,
_DWORD a6,
long long a7,
long long a8)
{
long long def; // rax
long long v11; // rcx
long long v12; // rdi
long long i; // rsi
long long v14; // r8
long long v15; // r15
long long result; // rax
long long v17; // r9
__int128 v18; // [rsp+0h] [rbp-38h] BYREF
long long v19; // [rsp+10h] [rbp-28h]
def = find_def(*a1);
if ( def && *(_DWORD *)(def + 8) == 7 )
{
v11 = *(unsigned int *)(def + 24);
v12 = 0LL;
for ( i = 0LL; v11 != i; ++i )
{
v14 = *(_QWORD *)(def + 16);
if ( v14 + v12 == a7 || *(_DWORD *)(a7 + 8) == 2 && *(_QWORD *)(v14 + v12 + 16) == *(_QWORD *)(a7 + 16) )
{
LOBYTE(v18) = i;
buffer_splice((long long)&a8, 0LL, 0, 1u, (long long)&v18);
goto LABEL_10;
}
v12 += 32LL;
}
result = c4_get_log_level(v12, i, a7, v11);
if ( (_DWORD)result )
{
v18 = 0LL;
v19 = 0LL;
bprintf((unsigned int *)&v18, "ssz_add_builders: Uniontype %s not found in %s.%s\n", *(_QWORD *)a7, **a1, a2, v17);
fprintf(
stderr,
"%s\x1B[0m\x1B[32m %s:%d\x1B[0m %s\n",
"\x1B[31mERROR",
"ssz_add_builders",
45,
*((const char **)&v18 + 1));
return buffer_free((long long)&v18);
}
}
else
{
LABEL_10:
ssz_builder_to_bytes(&v18, &a7);
v15 = *((_QWORD *)&v18 + 1);
ssz_add_bytes(a1, a2, (unsigned int)v18, *((_QWORD *)&v18 + 1));
return safe_free(v15);
}
return result;
}
| ssz_add_builders:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RSI
MOV R14,RDI
LEA R15,[RSP + 0x40]
MOV RDI,qword ptr [RDI]
CALL 0x0014e360
TEST RAX,RAX
JZ 0x0014e2af
CMP dword ptr [RAX + 0x8],0x7
JNZ 0x0014e2af
MOV ECX,dword ptr [RAX + 0x18]
MOV RDX,qword ptr [R15]
XOR EDI,EDI
XOR ESI,ESI
LAB_0014e26d:
CMP RCX,RSI
JZ 0x0014e2e8
MOV R8,qword ptr [RAX + 0x10]
LEA R9,[R8 + RDI*0x1]
CMP R9,RDX
JZ 0x0014e299
CMP dword ptr [RDX + 0x8],0x2
JNZ 0x0014e290
MOV R8,qword ptr [R8 + RDI*0x1 + 0x10]
CMP R8,qword ptr [RDX + 0x10]
JZ 0x0014e299
LAB_0014e290:
INC RSI
ADD RDI,0x20
JMP 0x0014e26d
LAB_0014e299:
MOV R8,RSP
MOV byte ptr [R8],SIL
LEA RDI,[R15 + 0x8]
PUSH 0x1
POP RCX
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0014b0ea
LAB_0014e2af:
MOV R12,RSP
MOV RDI,R12
MOV RSI,R15
CALL 0x0014e3c1
MOV EDX,dword ptr [R12]
MOV R15,qword ptr [R12 + 0x8]
MOV RDI,R14
MOV RSI,RBX
MOV RCX,R15
CALL 0x0014e400
MOV RDI,R15
CALL 0x0014aff8
LAB_0014e2dc:
ADD RSP,0x18
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0014e2e8:
XOR EAX,EAX
CALL 0x001504ab
TEST EAX,EAX
JZ 0x0014e2dc
XORPS XMM0,XMM0
MOV R12,RSP
MOVAPS xmmword ptr [R12],XMM0
AND qword ptr [R12 + 0x10],0x0
MOV RAX,qword ptr [R15]
MOV RDX,qword ptr [RAX]
MOV RAX,qword ptr [R14]
MOV RCX,qword ptr [RAX]
LEA RSI,[0x17f52c]
MOV RDI,R12
MOV R8,RBX
XOR EAX,EAX
CALL 0x0014b737
MOV RAX,qword ptr [0x001bbfc8]
MOV RDI,qword ptr [RAX]
MOV R9,qword ptr [R12 + 0x8]
LEA RSI,[0x17443f]
LEA RDX,[0x17f474]
LEA RCX,[0x17f55f]
PUSH 0x2d
POP R8
XOR EAX,EAX
CALL 0x00122140
MOV RDI,R12
CALL 0x0014b16d
JMP 0x0014e2dc
|
void ssz_add_builders(int8 *param_1,int8 param_2)
{
int iVar1;
long lVar2;
ulong uVar3;
long lVar4;
int8 *in_stack_00000008;
ulong local_38;
int8 uStack_30;
int8 local_28;
lVar2 = find_def();
if ((lVar2 == 0) || (*(int *)(lVar2 + 8) != 7)) {
LAB_0014e2af:
ssz_builder_to_bytes(&local_38,&stack0x00000008);
ssz_add_bytes(param_1,param_2,local_38 & 0xffffffff,uStack_30);
safe_free(uStack_30);
}
else {
lVar4 = 0;
for (uVar3 = 0; *(uint *)(lVar2 + 0x18) != uVar3; uVar3 = uVar3 + 1) {
if (((int8 *)(*(long *)(lVar2 + 0x10) + lVar4) == in_stack_00000008) ||
((*(int *)(in_stack_00000008 + 1) == 2 &&
(*(long *)(*(long *)(lVar2 + 0x10) + 0x10 + lVar4) == in_stack_00000008[2])))) {
local_38 = CONCAT71(local_38._1_7_,(char)uVar3);
buffer_splice(&stack0x00000010,0,0,1);
goto LAB_0014e2af;
}
lVar4 = lVar4 + 0x20;
}
iVar1 = c4_get_log_level();
if (iVar1 != 0) {
local_38 = 0;
uStack_30 = 0;
local_28 = 0;
bprintf(&local_38,"ssz_add_builders: Uniontype %s not found in %s.%s\n",*in_stack_00000008,
*(int8 *)*param_1,param_2);
fprintf(*(FILE **)PTR_stderr_001bbfc8,"%s\x1b[0m\x1b[32m %s:%d\x1b[0m %s\n",&DAT_0017f474,
"ssz_add_builders",0x2d,uStack_30);
buffer_free(&local_38);
}
}
return;
}
| |
41,009 | 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;
} | O1 | 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 %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
cmpq $0x6, %rdx
ja 0x5ab80
movq %rdx, %r12
movl $0x54, %eax
btq %rdx, %rax
jae 0x5ab80
movq %rsi, %r14
movq %rdi, %rbx
movsbl 0x14(%rdi), %esi
leaq 0x50(%rdi), %r15
movq %r15, %rdi
callq 0x1b750
testq %r12, %r12
sete %bpl
je 0x5ab71
leaq (%r14,%r12,4), %r12
movq %rbx, %rdi
callq 0x1c298
movl 0x14(%rbx), %eax
cmpl %eax, (%r14)
jg 0x5ab62
cmpl 0x4(%r14), %eax
leaq 0x4(%r14), %r14
setle %cl
testb %cl, %cl
je 0x5ab66
movsbl %al, %esi
movq %r15, %rdi
callq 0x1b750
addq $0x4, %r14
cmpq %r12, %r14
sete %bpl
jne 0x5ab29
jmp 0x5ab71
xorl %ecx, %ecx
jmp 0x5ab44
leaq 0x94e45(%rip), %rax # 0xef9b2
movq %rax, 0x70(%rbx)
andb $0x1, %bpl
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x94122(%rip), %rdi # 0xeeca9
leaq 0x94165(%rip), %rdx # 0xeecf3
leaq 0x94e7d(%rip), %rcx # 0xefa12
movl $0x1da8, %esi # imm = 0x1DA8
xorl %eax, %eax
callq 0x1beb0
nop
| _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 rbp
push r15
push r14
push r12
push rbx
cmp rdx, 6
ja loc_5AB80
mov r12, rdx
mov eax, 54h ; 'T'
bt rax, rdx
jnb short loc_5AB80
mov r14, rsi
mov rbx, rdi
movsx esi, byte ptr [rdi+14h]
lea r15, [rdi+50h]
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
test r12, r12
setz bpl
jz short loc_5AB71
lea r12, [r14+r12*4]
loc_5AB29:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; 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(void)
mov eax, [rbx+14h]
cmp [r14], eax
jg short loc_5AB62
cmp eax, [r14+4]
lea r14, [r14+4]
setle cl
loc_5AB44:
test cl, cl
jz short loc_5AB66
movsx esi, al
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
add r14, 4
cmp r14, r12
setz bpl
jnz short loc_5AB29
jmp short loc_5AB71
loc_5AB62:
xor ecx, ecx
jmp short loc_5AB44
loc_5AB66:
lea rax, aInvalidStringI; "invalid string: ill-formed UTF-8 byte"
mov [rbx+70h], rax
loc_5AB71:
and bpl, 1
mov eax, ebp
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_5AB80:
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
nop
| long long 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)
{
unsigned int v3; // ebp
long long v5; // rax
__int32 *v6; // r14
__int32 *v7; // r12
__int32 v8; // eax
bool v9; // zf
bool v10; // sf
bool v11; // of
char v12; // cl
long long v14; // rdx
long long v15; // rcx
if ( a3 <= 6 && (v5 = 84LL, _bittest64(&v5, a3)) )
{
v6 = a2;
std::string::push_back(&a1[5], (unsigned int)a1[1].m128i_i8[4]);
LOBYTE(v3) = a3 == 0;
if ( a3 )
{
v7 = &a2[a3];
while ( 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,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(a1);
v8 = a1[1].m128i_i32[1];
if ( *v6 > v8 )
{
v12 = 0;
}
else
{
v11 = __OFSUB__(v8, v6[1]);
v9 = v8 == v6[1];
v10 = v8 - v6[1] < 0;
++v6;
v12 = v10 ^ v11 | v9;
}
if ( !v12 )
break;
std::string::push_back(&a1[5], (unsigned int)(char)v8);
LOBYTE(v3) = ++v6 == v7;
if ( v6 == v7 )
goto LABEL_12;
}
a1[7].m128i_i64[0] = (long long)"invalid string: ill-formed UTF-8 byte";
}
LABEL_12:
LOBYTE(v3) = v3 & 1;
return v3;
}
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,
v14,
v15);
}
}
| next_byte_in_range:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
CMP RDX,0x6
JA 0x0015ab80
MOV R12,RDX
MOV EAX,0x54
BT RAX,RDX
JNC 0x0015ab80
MOV R14,RSI
MOV RBX,RDI
MOVSX ESI,byte ptr [RDI + 0x14]
LEA R15,[RDI + 0x50]
MOV RDI,R15
CALL 0x0011b750
TEST R12,R12
SETZ BPL
JZ 0x0015ab71
LEA R12,[R14 + R12*0x4]
LAB_0015ab29:
MOV RDI,RBX
CALL 0x0011c298
MOV EAX,dword ptr [RBX + 0x14]
CMP dword ptr [R14],EAX
JG 0x0015ab62
CMP EAX,dword ptr [R14 + 0x4]
LEA R14,[R14 + 0x4]
SETLE CL
LAB_0015ab44:
TEST CL,CL
JZ 0x0015ab66
MOVSX ESI,AL
MOV RDI,R15
CALL 0x0011b750
ADD R14,0x4
CMP R14,R12
SETZ BPL
JNZ 0x0015ab29
JMP 0x0015ab71
LAB_0015ab62:
XOR ECX,ECX
JMP 0x0015ab44
LAB_0015ab66:
LEA RAX,[0x1ef9b2]
MOV qword ptr [RBX + 0x70],RAX
LAB_0015ab71:
AND BPL,0x1
MOV EAX,EBP
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0015ab80:
LEA RDI,[0x1eeca9]
LEA RDX,[0x1eecf3]
LEA RCX,[0x1efa12]
MOV ESI,0x1da8
XOR EAX,EAX
CALL 0x0011beb0
|
/* 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
(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_1,int *param_2,ulong param_3)
{
int *piVar1;
int *piVar2;
bool bVar3;
int8 unaff_RBP;
char cVar4;
bool bVar5;
if ((6 < param_3) || ((0x54UL >> (param_3 & 0x3f) & 1) == 0)) {
/* 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");
}
cVar4 = (char)param_1 + 'P';
std::__cxx11::string::push_back(cVar4);
bVar5 = param_3 == 0;
if (!bVar5) {
piVar2 = param_2 + param_3;
do {
get(param_1);
if (*(int *)(param_1 + 0x14) < *param_2) {
bVar3 = false;
}
else {
piVar1 = param_2 + 1;
param_2 = param_2 + 1;
bVar3 = *(int *)(param_1 + 0x14) <= *piVar1;
}
if (!bVar3) {
*(char **)(param_1 + 0x70) = "invalid string: ill-formed UTF-8 byte";
break;
}
std::__cxx11::string::push_back(cVar4);
param_2 = param_2 + 1;
bVar5 = param_2 == piVar2;
} while (!bVar5);
}
return CONCAT71((int7)((ulong)unaff_RBP >> 8),bVar5) & 0xffffffff;
}
| |
41,010 | evmone::advanced::(anonymous namespace)::op_sstore(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* op_sstore(const Instruction* instr, AdvancedExecutionState& state) noexcept
{
const auto gas_left_correction = state.current_block_cost - instr->arg.number;
state.gas_left += gas_left_correction;
const auto status = instr::impl<OP_SSTORE>(state);
if (status != EVMC_SUCCESS)
return state.exit(status);
if ((state.gas_left -= gas_left_correction) < 0)
return state.exit(EVMC_OUT_OF_GAS);
return ++instr;
} | O0 | cpp | evmone::advanced::(anonymous namespace)::op_sstore(evmone::advanced::Instruction const*, evmone::advanced::AdvancedExecutionState&):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl 0x230(%rax), %eax
movq -0x10(%rbp), %rcx
subq 0x8(%rcx), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rcx
movq -0x18(%rbp), %rax
addq 0x220(%rax), %rcx
movq %rcx, 0x220(%rax)
movq -0x18(%rbp), %rdi
callq 0x94fa0
movl %eax, -0x24(%rbp)
cmpl $0x0, -0x24(%rbp)
je 0x93ad0
movq -0x18(%rbp), %rdi
movl -0x24(%rbp), %esi
callq 0x94f80
movq %rax, -0x8(%rbp)
jmp 0x93b13
movq -0x20(%rbp), %rdx
movq -0x18(%rbp), %rcx
movq 0x220(%rcx), %rax
subq %rdx, %rax
movq %rax, 0x220(%rcx)
cmpq $0x0, %rax
jge 0x93b03
movq -0x18(%rbp), %rdi
movl $0x3, %esi
callq 0x94f80
movq %rax, -0x8(%rbp)
jmp 0x93b13
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
nopl (%rax)
| _ZN6evmone8advanced12_GLOBAL__N_19op_sstoreEPKNS0_11InstructionERNS0_22AdvancedExecutionStateE:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_18]
mov eax, [rax+230h]
mov rcx, [rbp+var_10]
sub rax, [rcx+8]
mov [rbp+var_20], rax
mov rcx, [rbp+var_20]
mov rax, [rbp+var_18]
add rcx, [rax+220h]
mov [rax+220h], rcx
mov rdi, [rbp+var_18]
call _ZN6evmone8advanced5instr4implILNS_6OpcodeE85EXadL_ZNS_5instr4core6sstoreENS_8StackTopElRNS_14ExecutionStateEEEEE16evmc_status_codeRNS0_22AdvancedExecutionStateE; evmone::advanced::instr::impl<(evmone::Opcode)85,&evmone::instr::core::sstore>(evmone::advanced::AdvancedExecutionState &)
mov [rbp+var_24], eax
cmp [rbp+var_24], 0
jz short loc_93AD0
mov rdi, [rbp+var_18]
mov esi, [rbp+var_24]
call _ZN6evmone8advanced22AdvancedExecutionState4exitE16evmc_status_code; evmone::advanced::AdvancedExecutionState::exit(evmc_status_code)
mov [rbp+var_8], rax
jmp short loc_93B13
loc_93AD0:
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_18]
mov rax, [rcx+220h]
sub rax, rdx
mov [rcx+220h], rax
cmp rax, 0
jge short loc_93B03
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_93B13
loc_93B03:
mov rax, [rbp+var_10]
add rax, 10h
mov [rbp+var_10], rax
mov [rbp+var_8], rax
loc_93B13:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
| long long evmone::advanced::`anonymous namespace'::op_sstore(long long a1, long long a2)
{
long long v2; // rax
unsigned int v4; // [rsp+Ch] [rbp-24h]
long long v5; // [rsp+10h] [rbp-20h]
v5 = *(unsigned int *)(a2 + 560) - *(_QWORD *)(a1 + 8);
*(_QWORD *)(a2 + 544) += v5;
v4 = evmone::advanced::instr::impl<(evmone::Opcode)85,&evmone::instr::core::sstore>(a2);
if ( v4 )
return evmone::advanced::AdvancedExecutionState::exit(a2, v4);
v2 = *(_QWORD *)(a2 + 544) - v5;
*(_QWORD *)(a2 + 544) = v2;
if ( v2 >= 0 )
return a1 + 16;
else
return evmone::advanced::AdvancedExecutionState::exit(a2, 3LL);
}
| op_sstore:
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 + -0x18]
MOV EAX,dword ptr [RAX + 0x230]
MOV RCX,qword ptr [RBP + -0x10]
SUB RAX,qword ptr [RCX + 0x8]
MOV qword ptr [RBP + -0x20],RAX
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x18]
ADD RCX,qword ptr [RAX + 0x220]
MOV qword ptr [RAX + 0x220],RCX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00194fa0
MOV dword ptr [RBP + -0x24],EAX
CMP dword ptr [RBP + -0x24],0x0
JZ 0x00193ad0
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,dword ptr [RBP + -0x24]
CALL 0x00194f80
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00193b13
LAB_00193ad0:
MOV RDX,qword ptr [RBP + -0x20]
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 0x00193b03
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,0x3
CALL 0x00194f80
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00193b13
LAB_00193b03:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x10
MOV qword ptr [RBP + -0x10],RAX
MOV qword ptr [RBP + -0x8],RAX
LAB_00193b13:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
/* evmone::advanced::(anonymous namespace)::op_sstore(evmone::advanced::Instruction const*,
evmone::advanced::AdvancedExecutionState&) */
Instruction *
evmone::advanced::(anonymous_namespace)::op_sstore
(Instruction *param_1,AdvancedExecutionState *param_2)
{
uint uVar1;
int iVar2;
long lVar3;
Instruction *local_10;
uVar1 = *(uint *)(param_2 + 0x230);
lVar3 = *(long *)(param_1 + 8);
*(ulong *)(param_2 + 0x220) = ((ulong)uVar1 - lVar3) + *(long *)(param_2 + 0x220);
iVar2 = instr::impl<(evmone::Opcode)85,&evmone::instr::core::sstore>(param_2);
if (iVar2 == 0) {
lVar3 = *(long *)(param_2 + 0x220) - ((ulong)uVar1 - lVar3);
*(long *)(param_2 + 0x220) = lVar3;
if (lVar3 < 0) {
local_10 = (Instruction *)AdvancedExecutionState::exit(param_2,3);
}
else {
local_10 = param_1 + 0x10;
}
}
else {
local_10 = (Instruction *)AdvancedExecutionState::exit(param_2,iVar2);
}
return local_10;
}
| |
41,011 | maria_begin | eloqsql/storage/maria/ma_commit.c | int maria_begin(MARIA_HA *info)
{
DBUG_ENTER("maria_begin");
if (info->s->now_transactional)
{
TRN *trn= trnman_new_trn(0);
if (unlikely(!trn))
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
_ma_set_trn_for_table(info, trn);
}
DBUG_RETURN(0);
} | O0 | c | maria_begin:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
cmpb $0x0, 0x7e7(%rax)
je 0x9f1a3
xorl %eax, %eax
movl %eax, %edi
callq 0x773e0
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x9f196
jmp 0x9f18d
movl $0x80, -0x4(%rbp)
jmp 0x9f1ac
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x9f1c0
jmp 0x9f1a5
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| maria_begin:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov rax, [rax]
cmp byte ptr [rax+7E7h], 0
jz short loc_9F1A3
xor eax, eax
mov edi, eax
call trnman_new_trn
mov [rbp+var_18], rax
cmp [rbp+var_18], 0
setnz al
xor al, 0FFh
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_9F196
jmp short $+2
loc_9F18D:
mov [rbp+var_4], 80h
jmp short loc_9F1AC
loc_9F196:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call _ma_set_trn_for_table
loc_9F1A3:
jmp short $+2
loc_9F1A5:
mov [rbp+var_4], 0
loc_9F1AC:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long maria_begin(long long a1)
{
long long v2; // [rsp+8h] [rbp-18h]
if ( !*(_BYTE *)(*(_QWORD *)a1 + 2023LL) )
return 0;
v2 = trnman_new_trn(0LL);
if ( v2 )
{
ma_set_trn_for_table(a1, v2);
return 0;
}
return 128;
}
| maria_begin:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
CMP byte ptr [RAX + 0x7e7],0x0
JZ 0x0019f1a3
XOR EAX,EAX
MOV EDI,EAX
CALL 0x001773e0
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0x0
SETNZ AL
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0019f196
JMP 0x0019f18d
LAB_0019f18d:
MOV dword ptr [RBP + -0x4],0x80
JMP 0x0019f1ac
LAB_0019f196:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0019f1c0
LAB_0019f1a3:
JMP 0x0019f1a5
LAB_0019f1a5:
MOV dword ptr [RBP + -0x4],0x0
LAB_0019f1ac:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 maria_begin(long *param_1)
{
long lVar1;
if (*(char *)(*param_1 + 0x7e7) != '\0') {
lVar1 = trnman_new_trn(0);
if (lVar1 == 0) {
return 0x80;
}
_ma_set_trn_for_table(param_1,lVar1);
}
return 0;
}
| |
41,012 | my_strnxfrm_win1250ch | eloqsql/strings/ctype-win1250ch.c | static size_t
my_strnxfrm_win1250ch(CHARSET_INFO *cs __attribute__((unused)),
uchar *dest, size_t len,
uint nweights_arg __attribute__((unused)),
const uchar *src, size_t srclen, uint flags)
{
int value;
const uchar *p;
int pass = 0;
size_t totlen = 0;
p = src;
if (!(flags & 0x0F)) /* All levels by default */
flags|= 0x0F;
while (totlen < len)
{
NEXT_CMP_VALUE(src, p, pass, value, (int)srclen);
if (!value)
break;
if ((1 << pass) & flags)
dest[totlen++] = value;
}
if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && len > totlen)
{
memset(dest + totlen, 0x00, len - totlen);
totlen= len;
}
return totlen;
} | O3 | c | my_strnxfrm_win1250ch:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
movq %rsi, -0x50(%rbp)
movl 0x10(%rbp), %eax
movl %eax, %edx
orl $0xf, %edx
testb $0xf, %al
cmovnel %eax, %edx
xorl %r10d, %r10d
testq %rbx, %rbx
je 0x66888
movslq %r9d, %rdi
movl $0x1, %eax
subq %r8, %rax
movq %rax, -0x60(%rbp)
leaq 0x29f365(%rip), %r14 # 0x305a90
leaq 0x2bbd7e(%rip), %r15 # 0x3224b0
xorl %eax, %eax
movq %r8, %r11
movq %rbx, -0x48(%rbp)
movq %r9, -0x40(%rbp)
movq %r8, -0x38(%rbp)
movl %edx, -0x2c(%rbp)
movq %r11, %rsi
subq %r8, %rsi
cmpq %rdi, %rsi
jge 0x66762
testl %r10d, %r10d
je 0x66824
movl $0x9, %r12d
jmp 0x66783
testl %r9d, %r9d
jle 0x6688c
testl %r10d, %r10d
jne 0x6688c
movl $0x1, %r10d
movl $0x9, %r12d
movq %r8, %r11
movq %r14, %rsi
movzbl (%r11), %ecx
movb (%rsi,%rcx), %sil
cmpb $-0x1, %sil
jne 0x66864
movq %r12, -0x68(%rbp)
movq %r10, -0x58(%rbp)
movq %r11, %rdx
subq %r8, %rdx
movq -0x60(%rbp), %rcx
leaq (%rcx,%r11), %r13
xorl %r10d, %r10d
movq %r10, %rbx
shlq $0x4, %rbx
movq (%rbx,%r15), %rsi
movb (%rsi), %r9b
testb %r9b, %r9b
je 0x667f4
cmpq %rdi, %rdx
jge 0x667f4
incq %rsi
movq %r13, %r14
movq %r11, %r12
cmpb (%r12), %r9b
jne 0x667fc
incq %r12
movb (%rsi), %r9b
testb %r9b, %r9b
je 0x667f7
leaq 0x1(%r14), %rcx
incq %rsi
cmpq %rdi, %r14
movq %rcx, %r14
jl 0x667d2
jmp 0x667f7
movq %r11, %r12
testb %r9b, %r9b
je 0x66839
incq %r10
cmpq $0x50, %r10
jne 0x667b1
movb $-0x1, %sil
movq -0x48(%rbp), %rbx
movq -0x40(%rbp), %r9
movq -0x38(%rbp), %r8
movl -0x2c(%rbp), %edx
movq -0x58(%rbp), %r10
leaq 0x29f26e(%rip), %r14 # 0x305a90
jmp 0x66869
xorl %r10d, %r10d
movl $0x8, %r12d
leaq 0x29f15c(%rip), %rsi # 0x305990
jmp 0x66786
addq %r15, %rbx
movq -0x68(%rbp), %rcx
movb (%rbx,%rcx), %sil
decq %r12
movq %r12, %r11
movq -0x48(%rbp), %rbx
movq -0x40(%rbp), %r9
movq -0x38(%rbp), %r8
movl -0x2c(%rbp), %edx
movq -0x58(%rbp), %r10
leaq 0x29f22c(%rip), %r14 # 0x305a90
testb %sil, %sil
je 0x6688c
btl %r10d, %edx
jae 0x6687a
movq -0x50(%rbp), %rcx
movb %sil, (%rcx,%rax)
incq %rax
incq %r11
cmpq %rbx, %rax
jb 0x66746
jmp 0x668a7
xorl %eax, %eax
jmp 0x668a7
testb %dl, %dl
jns 0x668a7
movq -0x50(%rbp), %rdi
addq %rax, %rdi
movq %rbx, %rdx
subq %rax, %rdx
xorl %esi, %esi
callq 0x33190
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_strnxfrm_win1250ch:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov rbx, rdx
mov [rbp+var_50], rsi
mov eax, [rbp+arg_0]
mov edx, eax
or edx, 0Fh
test al, 0Fh
cmovnz edx, eax
xor r10d, r10d
test rbx, rbx
jz loc_66888
movsxd rdi, r9d
mov eax, 1
sub rax, r8
mov [rbp+var_60], rax
lea r14, _sort_order_win1250ch2
lea r15, doubles_0
xor eax, eax
mov r11, r8
mov [rbp+var_48], rbx
mov [rbp+var_40], r9
mov [rbp+var_38], r8
mov [rbp+var_2C], edx
loc_66746:
mov rsi, r11
sub rsi, r8
cmp rsi, rdi
jge short loc_66762
test r10d, r10d
jz loc_66824
mov r12d, 9
jmp short loc_66783
loc_66762:
test r9d, r9d
jle loc_6688C
test r10d, r10d
jnz loc_6688C
mov r10d, 1
mov r12d, 9
mov r11, r8
loc_66783:
mov rsi, r14
loc_66786:
movzx ecx, byte ptr [r11]
mov sil, [rsi+rcx]
cmp sil, 0FFh
jnz loc_66864
mov [rbp+var_68], r12
mov [rbp+var_58], r10
mov rdx, r11
sub rdx, r8
mov rcx, [rbp+var_60]
lea r13, [rcx+r11]
xor r10d, r10d
loc_667B1:
mov rbx, r10
shl rbx, 4
mov rsi, [rbx+r15]
mov r9b, [rsi]
test r9b, r9b
jz short loc_667F4
cmp rdx, rdi
jge short loc_667F4
inc rsi
mov r14, r13
mov r12, r11
loc_667D2:
cmp r9b, [r12]
jnz short loc_667FC
inc r12
mov r9b, [rsi]
test r9b, r9b
jz short loc_667F7
lea rcx, [r14+1]
inc rsi
cmp r14, rdi
mov r14, rcx
jl short loc_667D2
jmp short loc_667F7
loc_667F4:
mov r12, r11
loc_667F7:
test r9b, r9b
jz short loc_66839
loc_667FC:
inc r10
cmp r10, 50h ; 'P'
jnz short loc_667B1
mov sil, 0FFh
mov rbx, [rbp+var_48]
mov r9, [rbp+var_40]
mov r8, [rbp+var_38]
mov edx, [rbp+var_2C]
mov r10, [rbp+var_58]
lea r14, _sort_order_win1250ch2
jmp short loc_66869
loc_66824:
xor r10d, r10d
mov r12d, 8
lea rsi, _sort_order_win1250ch1
jmp loc_66786
loc_66839:
add rbx, r15
mov rcx, [rbp+var_68]
mov sil, [rbx+rcx]
dec r12
mov r11, r12
mov rbx, [rbp+var_48]
mov r9, [rbp+var_40]
mov r8, [rbp+var_38]
mov edx, [rbp+var_2C]
mov r10, [rbp+var_58]
lea r14, _sort_order_win1250ch2
loc_66864:
test sil, sil
jz short loc_6688C
loc_66869:
bt edx, r10d
jnb short loc_6687A
mov rcx, [rbp+var_50]
mov [rcx+rax], sil
inc rax
loc_6687A:
inc r11
cmp rax, rbx
jb loc_66746
jmp short loc_668A7
loc_66888:
xor eax, eax
jmp short loc_668A7
loc_6688C:
test dl, dl
jns short loc_668A7
mov rdi, [rbp+var_50]
add rdi, rax
mov rdx, rbx
sub rdx, rax
xor esi, esi
call _memset
mov rax, rbx
loc_668A7:
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long my_strnxfrm_win1250ch(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned __int8 *a5,
int a6,
int a7)
{
int v8; // edx
long long v9; // r10
long long v10; // rdi
unsigned long long result; // rax
unsigned __int8 *v12; // r11
long long v13; // r12
_BYTE *v14; // rsi
char v15; // si
long long v16; // r10
char *v17; // rsi
char v18; // r9
char *v19; // rsi
unsigned __int8 *v20; // r14
_BYTE *v21; // r12
long long v23; // [rsp+8h] [rbp-68h]
long long v24; // [rsp+10h] [rbp-60h]
long long v25; // [rsp+18h] [rbp-58h]
unsigned long long v27; // [rsp+28h] [rbp-48h]
int v28; // [rsp+30h] [rbp-40h]
unsigned __int8 *v29; // [rsp+38h] [rbp-38h]
int v30; // [rsp+44h] [rbp-2Ch]
v8 = a7 | 0xF;
if ( (a7 & 0xF) != 0 )
v8 = a7;
v9 = 0LL;
if ( !a3 )
return 0LL;
v10 = a6;
v24 = 1LL - (_QWORD)a5;
result = 0LL;
v12 = a5;
v27 = a3;
v28 = a6;
v29 = a5;
v30 = v8;
while ( 2 )
{
if ( v12 - a5 >= v10 )
{
if ( a6 <= 0 || (_DWORD)v9 )
break;
v9 = 1LL;
v13 = 9LL;
v12 = a5;
}
else
{
if ( !(_DWORD)v9 )
{
v9 = 0LL;
v13 = 8LL;
v14 = &sort_order_win1250ch1;
goto LABEL_12;
}
v13 = 9LL;
}
v14 = &sort_order_win1250ch2;
LABEL_12:
v15 = v14[*v12];
if ( v15 != -1 )
goto LABEL_27;
v23 = v13;
v25 = v9;
v16 = 0LL;
while ( 1 )
{
v17 = (char *)*(&doubles_0 + 2 * v16);
v18 = *v17;
if ( !*v17 || v12 - a5 >= v10 )
break;
v19 = v17 + 1;
v20 = &v12[v24];
v21 = v12;
while ( v18 == *v21 )
{
++v21;
v18 = *v19;
if ( *v19 )
{
++v19;
if ( (long long)v20++ < v10 )
continue;
}
goto LABEL_22;
}
LABEL_23:
if ( ++v16 == 80 )
{
v15 = -1;
a3 = v27;
a6 = v28;
a5 = v29;
v8 = v30;
v9 = v25;
goto LABEL_28;
}
}
v21 = v12;
LABEL_22:
if ( v18 )
goto LABEL_23;
v15 = *((_BYTE *)&doubles_0 + 16 * v16 + v23);
v12 = v21 - 1;
a3 = v27;
a6 = v28;
a5 = v29;
v8 = v30;
v9 = v25;
LABEL_27:
if ( v15 )
{
LABEL_28:
if ( _bittest(&v8, v9) )
*(_BYTE *)(a2 + result++) = v15;
++v12;
if ( result >= a3 )
return result;
continue;
}
break;
}
if ( (v8 & 0x80u) != 0 )
{
memset(result + a2, 0LL, a3 - result);
return a3;
}
return result;
}
| my_strnxfrm_win1250ch:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV RBX,RDX
MOV qword ptr [RBP + -0x50],RSI
MOV EAX,dword ptr [RBP + 0x10]
MOV EDX,EAX
OR EDX,0xf
TEST AL,0xf
CMOVNZ EDX,EAX
XOR R10D,R10D
TEST RBX,RBX
JZ 0x00166888
MOVSXD RDI,R9D
MOV EAX,0x1
SUB RAX,R8
MOV qword ptr [RBP + -0x60],RAX
LEA R14,[0x405a90]
LEA R15,[0x4224b0]
XOR EAX,EAX
MOV R11,R8
MOV qword ptr [RBP + -0x48],RBX
MOV qword ptr [RBP + -0x40],R9
MOV qword ptr [RBP + -0x38],R8
MOV dword ptr [RBP + -0x2c],EDX
LAB_00166746:
MOV RSI,R11
SUB RSI,R8
CMP RSI,RDI
JGE 0x00166762
TEST R10D,R10D
JZ 0x00166824
MOV R12D,0x9
JMP 0x00166783
LAB_00166762:
TEST R9D,R9D
JLE 0x0016688c
TEST R10D,R10D
JNZ 0x0016688c
MOV R10D,0x1
MOV R12D,0x9
MOV R11,R8
LAB_00166783:
MOV RSI,R14
LAB_00166786:
MOVZX ECX,byte ptr [R11]
MOV SIL,byte ptr [RSI + RCX*0x1]
CMP SIL,0xff
JNZ 0x00166864
MOV qword ptr [RBP + -0x68],R12
MOV qword ptr [RBP + -0x58],R10
MOV RDX,R11
SUB RDX,R8
MOV RCX,qword ptr [RBP + -0x60]
LEA R13,[RCX + R11*0x1]
XOR R10D,R10D
LAB_001667b1:
MOV RBX,R10
SHL RBX,0x4
MOV RSI,qword ptr [RBX + R15*0x1]
MOV R9B,byte ptr [RSI]
TEST R9B,R9B
JZ 0x001667f4
CMP RDX,RDI
JGE 0x001667f4
INC RSI
MOV R14,R13
MOV R12,R11
LAB_001667d2:
CMP R9B,byte ptr [R12]
JNZ 0x001667fc
INC R12
MOV R9B,byte ptr [RSI]
TEST R9B,R9B
JZ 0x001667f7
LEA RCX,[R14 + 0x1]
INC RSI
CMP R14,RDI
MOV R14,RCX
JL 0x001667d2
JMP 0x001667f7
LAB_001667f4:
MOV R12,R11
LAB_001667f7:
TEST R9B,R9B
JZ 0x00166839
LAB_001667fc:
INC R10
CMP R10,0x50
JNZ 0x001667b1
MOV SIL,0xff
MOV RBX,qword ptr [RBP + -0x48]
MOV R9,qword ptr [RBP + -0x40]
MOV R8,qword ptr [RBP + -0x38]
MOV EDX,dword ptr [RBP + -0x2c]
MOV R10,qword ptr [RBP + -0x58]
LEA R14,[0x405a90]
JMP 0x00166869
LAB_00166824:
XOR R10D,R10D
MOV R12D,0x8
LEA RSI,[0x405990]
JMP 0x00166786
LAB_00166839:
ADD RBX,R15
MOV RCX,qword ptr [RBP + -0x68]
MOV SIL,byte ptr [RBX + RCX*0x1]
DEC R12
MOV R11,R12
MOV RBX,qword ptr [RBP + -0x48]
MOV R9,qword ptr [RBP + -0x40]
MOV R8,qword ptr [RBP + -0x38]
MOV EDX,dword ptr [RBP + -0x2c]
MOV R10,qword ptr [RBP + -0x58]
LEA R14,[0x405a90]
LAB_00166864:
TEST SIL,SIL
JZ 0x0016688c
LAB_00166869:
BT EDX,R10D
JNC 0x0016687a
MOV RCX,qword ptr [RBP + -0x50]
MOV byte ptr [RCX + RAX*0x1],SIL
INC RAX
LAB_0016687a:
INC R11
CMP RAX,RBX
JC 0x00166746
JMP 0x001668a7
LAB_00166888:
XOR EAX,EAX
JMP 0x001668a7
LAB_0016688c:
TEST DL,DL
JNS 0x001668a7
MOV RDI,qword ptr [RBP + -0x50]
ADD RDI,RAX
MOV RDX,RBX
SUB RDX,RAX
XOR ESI,ESI
CALL 0x00133190
MOV RAX,RBX
LAB_001668a7:
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong my_strnxfrm_win1250ch
(int8 param_1,long param_2,ulong param_3,int8 param_4,byte *param_5,
int param_6,uint param_7)
{
uint uVar1;
byte *pbVar2;
byte *pbVar3;
byte *pbVar4;
ulong uVar5;
char cVar6;
int1 *puVar7;
byte *pbVar8;
byte bVar9;
int iVar10;
long lVar11;
byte *pbVar12;
byte *pbVar13;
long lVar14;
uVar1 = param_7 | 0xf;
if ((param_7 & 0xf) != 0) {
uVar1 = param_7;
}
iVar10 = 0;
if (param_3 == 0) {
uVar5 = 0;
}
else {
uVar5 = 0;
pbVar12 = param_5;
do {
if ((long)pbVar12 - (long)param_5 < (long)param_6) {
if (iVar10 != 0) goto LAB_00166783;
iVar10 = 0;
lVar14 = 8;
puVar7 = _sort_order_win1250ch1;
}
else {
if ((param_6 < 1) || (iVar10 != 0)) goto LAB_0016688c;
iVar10 = 1;
pbVar12 = param_5;
LAB_00166783:
lVar14 = 9;
puVar7 = _sort_order_win1250ch2;
}
cVar6 = puVar7[*pbVar12];
if (cVar6 == -1) {
lVar11 = 0;
do {
pbVar8 = (&doubles)[lVar11 * 2];
bVar9 = *pbVar8;
pbVar13 = pbVar12;
pbVar4 = pbVar12 + (1 - (long)param_5);
pbVar3 = pbVar12 + -(long)param_5;
if (bVar9 != 0) {
while (pbVar2 = pbVar4, (long)pbVar3 < (long)param_6) {
pbVar8 = pbVar8 + 1;
if (bVar9 != *pbVar13) goto LAB_001667fc;
pbVar13 = pbVar13 + 1;
bVar9 = *pbVar8;
if (bVar9 == 0) break;
pbVar4 = pbVar2 + 1;
pbVar3 = pbVar2;
}
}
if (bVar9 == 0) {
cVar6 = *(char *)((long)&doubles + lVar14 + lVar11 * 0x10);
pbVar12 = pbVar13 + -1;
goto LAB_00166864;
}
LAB_001667fc:
lVar11 = lVar11 + 1;
} while (lVar11 != 0x50);
cVar6 = -1;
}
else {
LAB_00166864:
if (cVar6 == '\0') {
LAB_0016688c:
if (-1 < (char)uVar1) {
return uVar5;
}
memset((void *)(param_2 + uVar5),0,param_3 - uVar5);
return param_3;
}
}
if ((uVar1 >> iVar10 & 1) != 0) {
*(char *)(param_2 + uVar5) = cVar6;
uVar5 = uVar5 + 1;
}
pbVar12 = pbVar12 + 1;
} while (uVar5 < param_3);
}
return uVar5;
}
| |
41,013 | ftb_find_relevance_add_word | eloqsql/storage/myisam/ft_boolean_search.c | static int ftb_find_relevance_add_word(MYSQL_FTPARSER_PARAM *param,
const char *word, int len,
MYSQL_FTPARSER_BOOLEAN_INFO *boolean_info __attribute__((unused)))
{
MY_FTB_FIND_PARAM *ftb_param= param->mysql_ftparam;
FT_INFO *ftb= ftb_param->ftb;
FTB_WORD *ftbw;
int a, b, c;
/*
Find right-most element in the array of query words matching this
word from a document.
*/
for (a= 0, b= ftb->queue.elements, c= (a+b)/2; b-a>1; c= (a+b)/2)
{
ftbw= ftb->list[c];
if (ha_compare_text(ftb->charset, (uchar*)word, len,
(uchar*)ftbw->word+1, ftbw->len-1,
(my_bool) (ftbw->flags & FTB_FLAG_TRUNC)) < 0)
b= c;
else
a= c;
}
/*
If there were no words with truncation operator, we iterate to the
beginning of an array until array element is equal to the word from
a document. This is done mainly because the same word may be
mentioned twice (or more) in the query.
In case query has words with truncation operator we must iterate
to the beginning of the array. There may be non-matching query words
between matching word with truncation operator and the right-most
matching element. E.g., if we're looking for 'aaa15' in an array of
'aaa1* aaa14 aaa15 aaa16'.
Worse of that there still may be match even if the binary search
above didn't find matching element. E.g., if we're looking for
'aaa15' in an array of 'aaa1* aaa14 aaa16'. The binary search will
stop at 'aaa16'.
*/
for (; c >= 0; c--)
{
ftbw= ftb->list[c];
if (ha_compare_text(ftb->charset, (uchar*)word, len,
(uchar*)ftbw->word + 1,ftbw->len - 1,
(my_bool)(ftbw->flags & FTB_FLAG_TRUNC)))
{
if (ftb->with_scan & FTB_FLAG_TRUNC)
continue;
else
break;
}
if (ftbw->docid[1] == ftb->info->lastpos)
continue;
ftbw->docid[1]= ftb->info->lastpos;
if (unlikely(_ftb_climb_the_tree(ftb, ftbw, ftb_param->ftsi)))
return 1;
}
return(0);
} | O0 | c | ftb_find_relevance_add_word:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movl $0x0, -0x44(%rbp)
movq -0x38(%rbp), %rax
movl 0x80(%rax), %eax
movl %eax, -0x48(%rbp)
movl -0x44(%rbp), %eax
addl -0x48(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0x4c(%rbp)
movl -0x48(%rbp), %eax
subl -0x44(%rbp), %eax
cmpl $0x1, %eax
jle 0xa447b
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x4c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x18(%rbp), %rsi
movslq -0x1c(%rbp), %rdx
movq -0x40(%rbp), %rcx
addq $0x4d, %rcx
addq $0x1, %rcx
movq -0x40(%rbp), %rax
movl 0x48(%rax), %eax
subl $0x1, %eax
movl %eax, %eax
movl %eax, %r8d
movq -0x40(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
movsbl %al, %r9d
callq 0xf8ce0
cmpl $0x0, %eax
jge 0xa445d
movl -0x4c(%rbp), %eax
movl %eax, -0x48(%rbp)
jmp 0xa4463
movl -0x4c(%rbp), %eax
movl %eax, -0x44(%rbp)
jmp 0xa4465
movl -0x44(%rbp), %eax
addl -0x48(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0x4c(%rbp)
jmp 0xa43f3
jmp 0xa447d
cmpl $0x0, -0x4c(%rbp)
jl 0xa4568
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x4c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x18(%rbp), %rsi
movslq -0x1c(%rbp), %rdx
movq -0x40(%rbp), %rcx
addq $0x4d, %rcx
addq $0x1, %rcx
movq -0x40(%rbp), %rax
movl 0x48(%rax), %eax
subl $0x1, %eax
movl %eax, %eax
movl %eax, %r8d
movq -0x40(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
movsbl %al, %r9d
callq 0xf8ce0
cmpl $0x0, %eax
je 0xa44f5
movq -0x38(%rbp), %rax
movzbl 0x344(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xa44f3
jmp 0xa455a
jmp 0xa4568
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x38(%rbp), %rcx
movq 0x8(%rcx), %rcx
cmpq 0x170(%rcx), %rax
jne 0xa4510
jmp 0xa455a
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x170(%rax), %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rdx
callq 0xa3ba0
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xa4558
movl $0x1, -0x4(%rbp)
jmp 0xa456f
jmp 0xa455a
movl -0x4c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0xa447d
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| ftb_find_relevance_add_word:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], rcx
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
mov rax, [rax]
mov [rbp+var_38], rax
mov [rbp+var_44], 0
mov rax, [rbp+var_38]
mov eax, [rax+80h]
mov [rbp+var_48], eax
mov eax, [rbp+var_44]
add eax, [rbp+var_48]
mov ecx, 2
cdq
idiv ecx
mov [rbp+var_4C], eax
loc_A43F3:
mov eax, [rbp+var_48]
sub eax, [rbp+var_44]
cmp eax, 1
jle short loc_A447B
mov rax, [rbp+var_38]
mov rax, [rax+20h]
movsxd rcx, [rbp+var_4C]
mov rax, [rax+rcx*8]
mov [rbp+var_40], rax
mov rax, [rbp+var_38]
mov rdi, [rax+10h]
mov rsi, [rbp+var_18]
movsxd rdx, [rbp+var_1C]
mov rcx, [rbp+var_40]
add rcx, 4Dh ; 'M'
add rcx, 1
mov rax, [rbp+var_40]
mov eax, [rax+48h]
sub eax, 1
mov eax, eax
mov r8d, eax
mov rax, [rbp+var_40]
mov eax, [rax+8]
and eax, 1
movsx r9d, al
call ha_compare_text
cmp eax, 0
jge short loc_A445D
mov eax, [rbp+var_4C]
mov [rbp+var_48], eax
jmp short loc_A4463
loc_A445D:
mov eax, [rbp+var_4C]
mov [rbp+var_44], eax
loc_A4463:
jmp short $+2
loc_A4465:
mov eax, [rbp+var_44]
add eax, [rbp+var_48]
mov ecx, 2
cdq
idiv ecx
mov [rbp+var_4C], eax
jmp loc_A43F3
loc_A447B:
jmp short $+2
loc_A447D:
cmp [rbp+var_4C], 0
jl loc_A4568
mov rax, [rbp+var_38]
mov rax, [rax+20h]
movsxd rcx, [rbp+var_4C]
mov rax, [rax+rcx*8]
mov [rbp+var_40], rax
mov rax, [rbp+var_38]
mov rdi, [rax+10h]
mov rsi, [rbp+var_18]
movsxd rdx, [rbp+var_1C]
mov rcx, [rbp+var_40]
add rcx, 4Dh ; 'M'
add rcx, 1
mov rax, [rbp+var_40]
mov eax, [rax+48h]
sub eax, 1
mov eax, eax
mov r8d, eax
mov rax, [rbp+var_40]
mov eax, [rax+8]
and eax, 1
movsx r9d, al
call ha_compare_text
cmp eax, 0
jz short loc_A44F5
mov rax, [rbp+var_38]
movzx eax, byte ptr [rax+344h]
and eax, 1
cmp eax, 0
jz short loc_A44F3
jmp short loc_A455A
loc_A44F3:
jmp short loc_A4568
loc_A44F5:
mov rax, [rbp+var_40]
mov rax, [rax+18h]
mov rcx, [rbp+var_38]
mov rcx, [rcx+8]
cmp rax, [rcx+170h]
jnz short loc_A4510
jmp short loc_A455A
loc_A4510:
mov rax, [rbp+var_38]
mov rax, [rax+8]
mov rcx, [rax+170h]
mov rax, [rbp+var_40]
mov [rax+18h], rcx
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_40]
mov rax, [rbp+var_30]
mov rdx, [rax+8]
call _ftb_climb_the_tree
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_A4558
mov [rbp+var_4], 1
jmp short loc_A456F
loc_A4558:
jmp short $+2
loc_A455A:
mov eax, [rbp+var_4C]
add eax, 0FFFFFFFFh
mov [rbp+var_4C], eax
jmp loc_A447D
loc_A4568:
mov [rbp+var_4], 0
loc_A456F:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
| long long ftb_find_relevance_add_word(long long a1, long long a2, int a3)
{
int v4; // [rsp+4h] [rbp-4Ch]
int v5; // [rsp+8h] [rbp-48h]
int v6; // [rsp+Ch] [rbp-44h]
long long v7; // [rsp+10h] [rbp-40h]
long long v8; // [rsp+10h] [rbp-40h]
long long v9; // [rsp+18h] [rbp-38h]
long long *v10; // [rsp+20h] [rbp-30h]
v10 = *(long long **)(a1 + 24);
v9 = *v10;
v6 = 0;
v5 = *(_DWORD *)(*v10 + 128);
v4 = v5 / 2;
while ( v5 - v6 > 1 )
{
v7 = *(_QWORD *)(*(_QWORD *)(v9 + 32) + 8LL * v4);
if ( (int)ha_compare_text(
*(_QWORD *)(v9 + 16),
a2,
a3,
v7 + 78,
(unsigned int)(*(_DWORD *)(v7 + 72) - 1),
*(_BYTE *)(v7 + 8) & 1) >= 0 )
v6 = v4;
else
v5 = v4;
v4 = (v5 + v6) / 2;
}
while ( v4 >= 0 )
{
v8 = *(_QWORD *)(*(_QWORD *)(v9 + 32) + 8LL * v4);
if ( (unsigned int)ha_compare_text(
*(_QWORD *)(v9 + 16),
a2,
a3,
v8 + 78,
(unsigned int)(*(_DWORD *)(v8 + 72) - 1),
*(_BYTE *)(v8 + 8) & 1) )
{
if ( (*(_BYTE *)(v9 + 836) & 1) == 0 )
break;
}
else if ( *(_QWORD *)(v8 + 24) != *(_QWORD *)(*(_QWORD *)(v9 + 8) + 368LL) )
{
*(_QWORD *)(v8 + 24) = *(_QWORD *)(*(_QWORD *)(v9 + 8) + 368LL);
if ( (unsigned int)ftb_climb_the_tree(v9, v8, (_QWORD *)v10[1]) )
return 1;
}
--v4;
}
return 0;
}
| ftb_find_relevance_add_word:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
MOV dword ptr [RBP + -0x44],0x0
MOV RAX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RAX + 0x80]
MOV dword ptr [RBP + -0x48],EAX
MOV EAX,dword ptr [RBP + -0x44]
ADD EAX,dword ptr [RBP + -0x48]
MOV ECX,0x2
CDQ
IDIV ECX
MOV dword ptr [RBP + -0x4c],EAX
LAB_001a43f3:
MOV EAX,dword ptr [RBP + -0x48]
SUB EAX,dword ptr [RBP + -0x44]
CMP EAX,0x1
JLE 0x001a447b
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x20]
MOVSXD RCX,dword ptr [RBP + -0x4c]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV RDI,qword ptr [RAX + 0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOVSXD RDX,dword ptr [RBP + -0x1c]
MOV RCX,qword ptr [RBP + -0x40]
ADD RCX,0x4d
ADD RCX,0x1
MOV RAX,qword ptr [RBP + -0x40]
MOV EAX,dword ptr [RAX + 0x48]
SUB EAX,0x1
MOV EAX,EAX
MOV R8D,EAX
MOV RAX,qword ptr [RBP + -0x40]
MOV EAX,dword ptr [RAX + 0x8]
AND EAX,0x1
MOVSX R9D,AL
CALL 0x001f8ce0
CMP EAX,0x0
JGE 0x001a445d
MOV EAX,dword ptr [RBP + -0x4c]
MOV dword ptr [RBP + -0x48],EAX
JMP 0x001a4463
LAB_001a445d:
MOV EAX,dword ptr [RBP + -0x4c]
MOV dword ptr [RBP + -0x44],EAX
LAB_001a4463:
JMP 0x001a4465
LAB_001a4465:
MOV EAX,dword ptr [RBP + -0x44]
ADD EAX,dword ptr [RBP + -0x48]
MOV ECX,0x2
CDQ
IDIV ECX
MOV dword ptr [RBP + -0x4c],EAX
JMP 0x001a43f3
LAB_001a447b:
JMP 0x001a447d
LAB_001a447d:
CMP dword ptr [RBP + -0x4c],0x0
JL 0x001a4568
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x20]
MOVSXD RCX,dword ptr [RBP + -0x4c]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV RDI,qword ptr [RAX + 0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOVSXD RDX,dword ptr [RBP + -0x1c]
MOV RCX,qword ptr [RBP + -0x40]
ADD RCX,0x4d
ADD RCX,0x1
MOV RAX,qword ptr [RBP + -0x40]
MOV EAX,dword ptr [RAX + 0x48]
SUB EAX,0x1
MOV EAX,EAX
MOV R8D,EAX
MOV RAX,qword ptr [RBP + -0x40]
MOV EAX,dword ptr [RAX + 0x8]
AND EAX,0x1
MOVSX R9D,AL
CALL 0x001f8ce0
CMP EAX,0x0
JZ 0x001a44f5
MOV RAX,qword ptr [RBP + -0x38]
MOVZX EAX,byte ptr [RAX + 0x344]
AND EAX,0x1
CMP EAX,0x0
JZ 0x001a44f3
JMP 0x001a455a
LAB_001a44f3:
JMP 0x001a4568
LAB_001a44f5:
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RCX + 0x8]
CMP RAX,qword ptr [RCX + 0x170]
JNZ 0x001a4510
JMP 0x001a455a
LAB_001a4510:
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RAX + 0x170]
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RAX + 0x18],RCX
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x001a3ba0
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001a4558
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001a456f
LAB_001a4558:
JMP 0x001a455a
LAB_001a455a:
MOV EAX,dword ptr [RBP + -0x4c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x4c],EAX
JMP 0x001a447d
LAB_001a4568:
MOV dword ptr [RBP + -0x4],0x0
LAB_001a456f:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
int4 ftb_find_relevance_add_word(long param_1,int8 param_2,int param_3)
{
long *plVar1;
long lVar2;
long lVar3;
int iVar4;
int local_54;
int local_50;
int local_4c;
plVar1 = *(long **)(param_1 + 0x18);
lVar2 = *plVar1;
local_4c = 0;
local_50 = *(int *)(lVar2 + 0x80);
local_54 = local_50;
while (local_54 = local_54 / 2, 1 < local_50 - local_4c) {
lVar3 = *(long *)(*(long *)(lVar2 + 0x20) + (long)local_54 * 8);
iVar4 = ha_compare_text(*(int8 *)(lVar2 + 0x10),param_2,(long)param_3,lVar3 + 0x4e,
*(int *)(lVar3 + 0x48) + -1,(byte)*(int4 *)(lVar3 + 8) & 1);
if (iVar4 < 0) {
local_50 = local_54;
}
else {
local_4c = local_54;
}
local_54 = local_4c + local_50;
}
do {
if (local_54 < 0) {
return 0;
}
lVar3 = *(long *)(*(long *)(lVar2 + 0x20) + (long)local_54 * 8);
iVar4 = ha_compare_text(*(int8 *)(lVar2 + 0x10),param_2,(long)param_3,lVar3 + 0x4e,
*(int *)(lVar3 + 0x48) + -1,(byte)*(int4 *)(lVar3 + 8) & 1);
if (iVar4 == 0) {
if (*(long *)(lVar3 + 0x18) != *(long *)(*(long *)(lVar2 + 8) + 0x170)) {
*(int8 *)(lVar3 + 0x18) = *(int8 *)(*(long *)(lVar2 + 8) + 0x170);
iVar4 = _ftb_climb_the_tree(lVar2,lVar3,plVar1[1]);
if (iVar4 != 0) {
return 1;
}
}
}
else if ((*(byte *)(lVar2 + 0x344) & 1) == 0) {
return 0;
}
local_54 = local_54 + -1;
} while( true );
}
| |
41,014 | ggml_backend_cpu_buffer_type_alloc_buffer(ggml_backend_buffer_type*, unsigned long) | ngxson[P]ggml-easy/ggml/src/ggml-backend.cpp | static ggml_backend_buffer_t ggml_backend_cpu_buffer_type_alloc_buffer(ggml_backend_buffer_type_t buft, size_t size) {
void * data = ggml_aligned_malloc(size);
if (data == NULL) {
GGML_LOG_ERROR("%s: failed to allocate buffer of size %zu\n", __func__, size);
return NULL;
}
return ggml_backend_buffer_init(buft, ggml_backend_cpu_buffer_i, data, size);
} | O3 | cpp | ggml_backend_cpu_buffer_type_alloc_buffer(ggml_backend_buffer_type*, unsigned long):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
movq %rsi, %rdi
callq 0x16860
testq %rax, %rax
je 0x28a28
movq %rax, %r12
movl $0x68, %edi
callq 0x17020
movq %rax, %r14
leaq 0x41268(%rip), %rsi # 0x69c70
movl $0x9, %ecx
movq %rax, %rdi
rep movsq (%rsi), %es:(%rdi)
movq %r15, 0x48(%rax)
movq %r12, 0x50(%rax)
movq %rbx, 0x58(%rax)
movl $0x0, 0x60(%rax)
jmp 0x28a48
leaq 0x25294(%rip), %rsi # 0x4dcc3
leaq 0x252b8(%rip), %rdx # 0x4dcee
xorl %r14d, %r14d
movl $0x4, %edi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x167f0
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| _ZL41ggml_backend_cpu_buffer_type_alloc_bufferP24ggml_backend_buffer_typem:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rsi
mov r15, rdi
mov rdi, rsi
call _ggml_aligned_malloc
test rax, rax
jz short loc_28A28
mov r12, rax
mov edi, 68h ; 'h'; unsigned __int64
call __Znwm; operator new(ulong)
mov r14, rax
lea rsi, _ZL25ggml_backend_cpu_buffer_i; ggml_backend_cpu_buffer_i
mov ecx, 9
mov rdi, rax
rep movsq
mov [rax+48h], r15
mov [rax+50h], r12
mov [rax+58h], rbx
mov dword ptr [rax+60h], 0
jmp short loc_28A48
loc_28A28:
lea rsi, aSFailedToAlloc_4; "%s: failed to allocate buffer of size %"...
lea rdx, aGgmlBackendCpu_1; "ggml_backend_cpu_buffer_type_alloc_buff"...
xor r14d, r14d
mov edi, 4
mov rcx, rbx
xor eax, eax
call _ggml_log_internal
loc_28A48:
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| long long ggml_backend_cpu_buffer_type_alloc_buffer(
long long a1,
unsigned long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
long long v14; // rax
long long v15; // r8
long long v16; // r9
__m128 v17; // xmm4
__m128 v18; // xmm5
long long v19; // r12
long long v20; // r14
v14 = ggml_aligned_malloc(a2, a7, a8, a9, a10, a11, a12, a13, a14, a2, a3, a4, a5, a6);
if ( v14 )
{
v19 = v14;
v20 = operator new(0x68uLL);
qmemcpy((void *)v20, ggml_backend_cpu_buffer_i, 0x48uLL);
*(_QWORD *)(v20 + 72) = a1;
*(_QWORD *)(v20 + 80) = v19;
*(_QWORD *)(v20 + 88) = a2;
*(_DWORD *)(v20 + 96) = 0;
}
else
{
v20 = 0LL;
ggml_log_internal(
4u,
(long long)"%s: failed to allocate buffer of size %zu\n",
(long long)"ggml_backend_cpu_buffer_type_alloc_buffer",
a2,
v15,
v16,
a7,
a8,
a9,
a10,
v17,
v18,
a13,
a14);
}
return v20;
}
| ggml_backend_cpu_buffer_type_alloc_buffer:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R15,RDI
MOV RDI,RSI
CALL 0x00116860
TEST RAX,RAX
JZ 0x00128a28
MOV R12,RAX
MOV EDI,0x68
CALL 0x00117020
MOV R14,RAX
LEA RSI,[0x169c70]
MOV ECX,0x9
MOV RDI,RAX
MOVSQ.REP RDI,RSI
MOV qword ptr [RAX + 0x48],R15
MOV qword ptr [RAX + 0x50],R12
MOV qword ptr [RAX + 0x58],RBX
MOV dword ptr [RAX + 0x60],0x0
JMP 0x00128a48
LAB_00128a28:
LEA RSI,[0x14dcc3]
LEA RDX,[0x14dcee]
XOR R14D,R14D
MOV EDI,0x4
MOV RCX,RBX
XOR EAX,EAX
CALL 0x001167f0
LAB_00128a48:
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* ggml_backend_cpu_buffer_type_alloc_buffer(ggml_backend_buffer_type*, unsigned long) */
int8 *
ggml_backend_cpu_buffer_type_alloc_buffer(ggml_backend_buffer_type *param_1,ulong param_2)
{
long lVar1;
int8 *puVar2;
long lVar3;
int **ppuVar4;
int8 *puVar5;
byte bVar6;
bVar6 = 0;
lVar1 = ggml_aligned_malloc(param_2);
if (lVar1 == 0) {
puVar2 = (int8 *)0x0;
ggml_log_internal(4,"%s: failed to allocate buffer of size %zu\n",
"ggml_backend_cpu_buffer_type_alloc_buffer",param_2);
}
else {
puVar2 = (int8 *)operator_new(0x68);
ppuVar4 = &ggml_backend_cpu_buffer_i;
puVar5 = puVar2;
for (lVar3 = 9; lVar3 != 0; lVar3 = lVar3 + -1) {
*puVar5 = *ppuVar4;
ppuVar4 = ppuVar4 + (ulong)bVar6 * -2 + 1;
puVar5 = puVar5 + (ulong)bVar6 * -2 + 1;
}
puVar2[9] = param_1;
puVar2[10] = lVar1;
puVar2[0xb] = param_2;
*(int4 *)(puVar2 + 0xc) = 0;
}
return puVar2;
}
| |
41,015 | mysql_get_timeout_value | eloqsql/libmariadb/libmariadb/mariadb_lib.c | unsigned int STDCALL
mysql_get_timeout_value(const MYSQL *mysql)
{
unsigned int timeout= 0;
if (mysql->options.extension && mysql->options.extension->async_context)
timeout= mysql->options.extension->async_context->timeout_value;
/* Avoid overflow. */
if (timeout > UINT_MAX - 999)
return (timeout - 1)/1000 + 1;
else
return (timeout+999)/1000;
} | O0 | c | mysql_get_timeout_value:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x480(%rax)
je 0x229d4
movq -0x10(%rbp), %rax
movq 0x480(%rax), %rax
cmpq $0x0, 0x28(%rax)
je 0x229d4
movq -0x10(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movl 0x10(%rax), %eax
movl %eax, -0x14(%rbp)
cmpl $0xfffffc18, -0x14(%rbp) # imm = 0xFFFFFC18
jbe 0x229f4
movl -0x14(%rbp), %eax
subl $0x1, %eax
movl $0x3e8, %ecx # imm = 0x3E8
xorl %edx, %edx
divl %ecx
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x22a08
movl -0x14(%rbp), %eax
addl $0x3e7, %eax # imm = 0x3E7
movl $0x3e8, %ecx # imm = 0x3E8
xorl %edx, %edx
divl %ecx
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax)
| mysql_get_timeout_value:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_14], 0
mov rax, [rbp+var_10]
cmp qword ptr [rax+480h], 0
jz short loc_229D4
mov rax, [rbp+var_10]
mov rax, [rax+480h]
cmp qword ptr [rax+28h], 0
jz short loc_229D4
mov rax, [rbp+var_10]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov eax, [rax+10h]
mov [rbp+var_14], eax
loc_229D4:
cmp [rbp+var_14], 0FFFFFC18h
jbe short loc_229F4
mov eax, [rbp+var_14]
sub eax, 1
mov ecx, 3E8h
xor edx, edx
div ecx
add eax, 1
mov [rbp+var_4], eax
jmp short loc_22A08
loc_229F4:
mov eax, [rbp+var_14]
add eax, 3E7h
mov ecx, 3E8h
xor edx, edx
div ecx
mov [rbp+var_4], eax
loc_22A08:
mov eax, [rbp+var_4]
pop rbp
retn
| long long mysql_get_timeout_value(long long a1)
{
unsigned int v2; // [rsp+0h] [rbp-14h]
v2 = 0;
if ( *(_QWORD *)(a1 + 1152) && *(_QWORD *)(*(_QWORD *)(a1 + 1152) + 40LL) )
v2 = *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 40LL) + 16LL);
if ( v2 <= 0xFFFFFC18 )
return (v2 + 999) / 0x3E8;
else
return (v2 - 1) / 0x3E8 + 1;
}
| mysql_get_timeout_value:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],0x0
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x480],0x0
JZ 0x001229d4
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x480]
CMP qword ptr [RAX + 0x28],0x0
JZ 0x001229d4
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV EAX,dword ptr [RAX + 0x10]
MOV dword ptr [RBP + -0x14],EAX
LAB_001229d4:
CMP dword ptr [RBP + -0x14],0xfffffc18
JBE 0x001229f4
MOV EAX,dword ptr [RBP + -0x14]
SUB EAX,0x1
MOV ECX,0x3e8
XOR EDX,EDX
DIV ECX
ADD EAX,0x1
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00122a08
LAB_001229f4:
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x3e7
MOV ECX,0x3e8
XOR EDX,EDX
DIV ECX
MOV dword ptr [RBP + -0x4],EAX
LAB_00122a08:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
uint mysql_get_timeout_value(long param_1)
{
int4 local_1c;
int4 local_c;
local_1c = 0;
if ((*(long *)(param_1 + 0x480) != 0) && (*(long *)(*(long *)(param_1 + 0x480) + 0x28) != 0)) {
local_1c = *(uint *)(*(long *)(*(long *)(param_1 + 0x480) + 0x28) + 0x10);
}
if (local_1c < 0xfffffc19) {
local_c = (local_1c + 999) / 1000;
}
else {
local_c = (local_1c - 1) / 1000 + 1;
}
return local_c;
}
| |
41,016 | mysql_get_timeout_value | eloqsql/libmariadb/libmariadb/mariadb_lib.c | unsigned int STDCALL
mysql_get_timeout_value(const MYSQL *mysql)
{
unsigned int timeout= 0;
if (mysql->options.extension && mysql->options.extension->async_context)
timeout= mysql->options.extension->async_context->timeout_value;
/* Avoid overflow. */
if (timeout > UINT_MAX - 999)
return (timeout - 1)/1000 + 1;
else
return (timeout+999)/1000;
} | O3 | c | mysql_get_timeout_value:
pushq %rbp
movq %rsp, %rbp
movq 0x480(%rdi), %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x1ccbf
movq 0x28(%rcx), %rcx
testq %rcx, %rcx
je 0x1ccbf
movl 0x10(%rcx), %eax
cmpl $0xfffffc19, %eax # imm = 0xFFFFFC19
jb 0x1ccbf
decl %eax
imulq $0x10624dd3, %rax, %rax # imm = 0x10624DD3
shrq $0x26, %rax
incl %eax
jmp 0x1cccf
addl $0x3e7, %eax # imm = 0x3E7
imulq $0x10624dd3, %rax, %rax # imm = 0x10624DD3
shrq $0x26, %rax
popq %rbp
retq
| mysql_get_timeout_value:
push rbp
mov rbp, rsp
mov rcx, [rdi+480h]
xor eax, eax
test rcx, rcx
jz short loc_1CCBF
mov rcx, [rcx+28h]
test rcx, rcx
jz short loc_1CCBF
mov eax, [rcx+10h]
cmp eax, 0FFFFFC19h
jb short loc_1CCBF
dec eax
imul rax, 10624DD3h
shr rax, 26h
inc eax
jmp short loc_1CCCF
loc_1CCBF:
add eax, 3E7h
imul rax, 10624DD3h
shr rax, 26h
loc_1CCCF:
pop rbp
retn
| unsigned long long mysql_get_timeout_value(long long a1)
{
long long v1; // rcx
unsigned int v2; // eax
long long v3; // rcx
v1 = *(_QWORD *)(a1 + 1152);
v2 = 0;
if ( v1 && (v3 = *(_QWORD *)(v1 + 40)) != 0 && (v2 = *(_DWORD *)(v3 + 16), v2 >= 0xFFFFFC19) )
return (v2 - 1) / 0x3E8 + 1;
else
return (v2 + 999) / 0x3E8uLL;
}
| mysql_get_timeout_value:
PUSH RBP
MOV RBP,RSP
MOV RCX,qword ptr [RDI + 0x480]
XOR EAX,EAX
TEST RCX,RCX
JZ 0x0011ccbf
MOV RCX,qword ptr [RCX + 0x28]
TEST RCX,RCX
JZ 0x0011ccbf
MOV EAX,dword ptr [RCX + 0x10]
CMP EAX,0xfffffc19
JC 0x0011ccbf
DEC EAX
IMUL RAX,RAX,0x10624dd3
SHR RAX,0x26
INC EAX
JMP 0x0011cccf
LAB_0011ccbf:
ADD EAX,0x3e7
IMUL RAX,RAX,0x10624dd3
SHR RAX,0x26
LAB_0011cccf:
POP RBP
RET
|
ulong mysql_get_timeout_value(long param_1)
{
long lVar1;
uint uVar2;
ulong uVar3;
uVar2 = 0;
if (((*(long *)(param_1 + 0x480) == 0) ||
(lVar1 = *(long *)(*(long *)(param_1 + 0x480) + 0x28), uVar2 = 0, lVar1 == 0)) ||
(uVar2 = *(uint *)(lVar1 + 0x10), uVar2 < 0xfffffc19)) {
uVar3 = (ulong)(uVar2 + 999) / 1000;
}
else {
uVar3 = (ulong)((uVar2 - 1) / 1000 + 1);
}
return uVar3;
}
| |
41,017 | translog_put_LSN_diff | eloqsql/storage/maria/ma_loghandler.c | static uchar *translog_put_LSN_diff(LSN base_lsn, LSN lsn, uchar *dst)
{
uint64 diff;
DBUG_ENTER("translog_put_LSN_diff");
DBUG_PRINT("enter", ("Base: " LSN_FMT " val: " LSN_FMT " dst: %p",
LSN_IN_PARTS(base_lsn), LSN_IN_PARTS(lsn),
dst));
DBUG_ASSERT(base_lsn > lsn);
diff= base_lsn - lsn;
DBUG_PRINT("info", ("Diff: 0x%llx", (ulonglong) diff));
if (diff <= 0x3FFF)
{
dst-= 2;
/*
Note we store this high uchar first to ensure that first uchar has
0 in the 3 upper bits.
*/
dst[0]= (uchar)(diff >> 8);
dst[1]= (uchar)(diff & 0xFF);
}
else if (diff <= 0x3FFFFFL)
{
dst-= 3;
dst[0]= (uchar)(0x40 | (diff >> 16));
int2store(dst + 1, diff & 0xFFFF);
}
else if (diff <= 0x3FFFFFFFL)
{
dst-= 4;
dst[0]= (uchar)(0x80 | (diff >> 24));
int3store(dst + 1, diff & 0xFFFFFFL);
}
else if (diff <= 0x3FFFFFFFFFLL)
{
dst-= 5;
dst[0]= (uchar)(0xC0 | (diff >> 32));
int4store(dst + 1, diff & 0xFFFFFFFFL);
}
else
{
/*
It is full LSN after special 1 diff (which is impossible
in real life)
*/
dst-= 2 + LSN_STORE_SIZE;
dst[0]= 0;
dst[1]= 1;
lsn_store(dst + 2, lsn);
}
DBUG_PRINT("info", ("new dst: %p", dst));
DBUG_RETURN(dst);
} | O0 | c | translog_put_LSN_diff:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
jmp 0x5b112
jmp 0x5b114
jmp 0x5b116
movq -0x8(%rbp), %rax
subq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0x5b124
cmpq $0x3fff, -0x20(%rbp) # imm = 0x3FFF
ja 0x5b162
movq -0x18(%rbp), %rax
addq $-0x2, %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x18(%rbp), %rax
movb %cl, (%rax)
movq -0x20(%rbp), %rax
andq $0xff, %rax
movb %al, %cl
movq -0x18(%rbp), %rax
movb %cl, 0x1(%rax)
jmp 0x5b303
cmpq $0x3fffff, -0x20(%rbp) # imm = 0x3FFFFF
ja 0x5b1b1
movq -0x18(%rbp), %rax
addq $-0x3, %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
shrq $0x10, %rax
orq $0x40, %rax
movb %al, %cl
movq -0x18(%rbp), %rax
movb %cl, (%rax)
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
andq $0xffff, %rax # imm = 0xFFFF
movw %ax, %cx
movq -0x28(%rbp), %rax
movw %cx, (%rax)
jmp 0x5b301
cmpq $0x3fffffff, -0x20(%rbp) # imm = 0x3FFFFFFF
ja 0x5b222
movq -0x18(%rbp), %rax
addq $-0x4, %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
shrq $0x18, %rax
orq $0x80, %rax
movb %al, %cl
movq -0x18(%rbp), %rax
movb %cl, (%rax)
movq -0x20(%rbp), %rax
andq $0xffffff, %rax # imm = 0xFFFFFF
movb %al, %cl
movq -0x18(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x20(%rbp), %rax
andq $0xffffff, %rax # imm = 0xFFFFFF
shrl $0x8, %eax
movb %al, %cl
movq -0x18(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x20(%rbp), %rax
andq $0xffffff, %rax # imm = 0xFFFFFF
shrq $0x10, %rax
movb %al, %cl
movq -0x18(%rbp), %rax
movb %cl, 0x3(%rax)
jmp 0x5b2ff
movabsq $0x3fffffffff, %rax # imm = 0x3FFFFFFFFF
cmpq %rax, -0x20(%rbp)
ja 0x5b27b
movq -0x18(%rbp), %rax
addq $-0x5, %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
shrq $0x20, %rax
orq $0xc0, %rax
movb %al, %cl
movq -0x18(%rbp), %rax
movb %cl, (%rax)
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF
andq -0x20(%rbp), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, (%rax)
jmp 0x5b2fd
movq -0x18(%rbp), %rax
addq $-0x9, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
movq -0x18(%rbp), %rax
movb $0x1, 0x1(%rax)
jmp 0x5b298
movq -0x10(%rbp), %rax
sarq $0x20, %rax
movb %al, %cl
movq -0x18(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x10(%rbp), %rax
sarq $0x20, %rax
shrl $0x8, %eax
movb %al, %cl
movq -0x18(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x10(%rbp), %rax
sarq $0x20, %rax
shrl $0x10, %eax
movb %al, %cl
movq -0x18(%rbp), %rax
movb %cl, 0x4(%rax)
jmp 0x5b2d3
movq -0x18(%rbp), %rax
addq $0x2, %rax
addq $0x3, %rax
movq %rax, -0x38(%rbp)
movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF
andq -0x10(%rbp), %rax
movl %eax, %ecx
movq -0x38(%rbp), %rax
movl %ecx, (%rax)
jmp 0x5b2fb
jmp 0x5b2fd
jmp 0x5b2ff
jmp 0x5b301
jmp 0x5b303
jmp 0x5b305
jmp 0x5b307
jmp 0x5b309
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
popq %rbp
retq
nopw (%rax,%rax)
| translog_put_LSN_diff:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
jmp short $+2
loc_5B112:
jmp short $+2
loc_5B114:
jmp short $+2
loc_5B116:
mov rax, [rbp+var_8]
sub rax, [rbp+var_10]
mov [rbp+var_20], rax
jmp short $+2
loc_5B124:
cmp [rbp+var_20], 3FFFh
ja short loc_5B162
mov rax, [rbp+var_18]
add rax, 0FFFFFFFFFFFFFFFEh
mov [rbp+var_18], rax
mov rax, [rbp+var_20]
shr rax, 8
mov cl, al
mov rax, [rbp+var_18]
mov [rax], cl
mov rax, [rbp+var_20]
and rax, 0FFh
mov cl, al
mov rax, [rbp+var_18]
mov [rax+1], cl
jmp loc_5B303
loc_5B162:
cmp [rbp+var_20], offset unk_3FFFFF
ja short loc_5B1B1
mov rax, [rbp+var_18]
add rax, 0FFFFFFFFFFFFFFFDh
mov [rbp+var_18], rax
mov rax, [rbp+var_20]
shr rax, 10h
or rax, 40h
mov cl, al
mov rax, [rbp+var_18]
mov [rax], cl
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_28], rax
mov rax, [rbp+var_20]
and rax, 0FFFFh
mov cx, ax
mov rax, [rbp+var_28]
mov [rax], cx
jmp loc_5B301
loc_5B1B1:
cmp [rbp+var_20], 3FFFFFFFh
ja short loc_5B222
mov rax, [rbp+var_18]
add rax, 0FFFFFFFFFFFFFFFCh
mov [rbp+var_18], rax
mov rax, [rbp+var_20]
shr rax, 18h
or rax, 80h
mov cl, al
mov rax, [rbp+var_18]
mov [rax], cl
mov rax, [rbp+var_20]
and rax, 0FFFFFFh
mov cl, al
mov rax, [rbp+var_18]
mov [rax+1], cl
mov rax, [rbp+var_20]
and rax, 0FFFFFFh
shr eax, 8
mov cl, al
mov rax, [rbp+var_18]
mov [rax+2], cl
mov rax, [rbp+var_20]
and rax, 0FFFFFFh
shr rax, 10h
mov cl, al
mov rax, [rbp+var_18]
mov [rax+3], cl
jmp loc_5B2FF
loc_5B222:
mov rax, 3FFFFFFFFFh
cmp [rbp+var_20], rax
ja short loc_5B27B
mov rax, [rbp+var_18]
add rax, 0FFFFFFFFFFFFFFFBh
mov [rbp+var_18], rax
mov rax, [rbp+var_20]
shr rax, 20h
or rax, 0C0h
mov cl, al
mov rax, [rbp+var_18]
mov [rax], cl
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_30], rax
mov rax, 0FFFFFFFFh
and rax, [rbp+var_20]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax], ecx
jmp loc_5B2FD
loc_5B27B:
mov rax, [rbp+var_18]
add rax, 0FFFFFFFFFFFFFFF7h
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov byte ptr [rax], 0
mov rax, [rbp+var_18]
mov byte ptr [rax+1], 1
jmp short $+2
loc_5B298:
mov rax, [rbp+var_10]
sar rax, 20h
mov cl, al
mov rax, [rbp+var_18]
mov [rax+2], cl
mov rax, [rbp+var_10]
sar rax, 20h
shr eax, 8
mov cl, al
mov rax, [rbp+var_18]
mov [rax+3], cl
mov rax, [rbp+var_10]
sar rax, 20h
shr eax, 10h
mov cl, al
mov rax, [rbp+var_18]
mov [rax+4], cl
jmp short $+2
loc_5B2D3:
mov rax, [rbp+var_18]
add rax, 2
add rax, 3
mov [rbp+var_38], rax
mov rax, 0FFFFFFFFh
and rax, [rbp+var_10]
mov ecx, eax
mov rax, [rbp+var_38]
mov [rax], ecx
jmp short $+2
loc_5B2FB:
jmp short $+2
loc_5B2FD:
jmp short $+2
loc_5B2FF:
jmp short $+2
loc_5B301:
jmp short $+2
loc_5B303:
jmp short $+2
loc_5B305:
jmp short $+2
loc_5B307:
jmp short $+2
loc_5B309:
mov rax, [rbp+var_18]
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
pop rbp
retn
| long long translog_put_LSN_diff(long long a1, long long a2, long long a3)
{
unsigned long long v4; // [rsp+20h] [rbp-20h]
long long v5; // [rsp+28h] [rbp-18h]
v4 = a1 - a2;
if ( (unsigned long long)(a1 - a2) > 0x3FFF )
{
if ( v4 > (unsigned long long)&unk_3FFFFF )
{
if ( v4 > 0x3FFFFFFF )
{
if ( v4 > 0x3FFFFFFFFFLL )
{
v5 = a3 - 9;
*(_BYTE *)v5 = 0;
*(_BYTE *)(v5 + 1) = 1;
*(_WORD *)(v5 + 2) = WORD2(a2);
*(_BYTE *)(v5 + 4) = BYTE6(a2);
*(_DWORD *)(v5 + 5) = a2;
}
else
{
v5 = a3 - 5;
*(_BYTE *)v5 = BYTE4(v4) | 0xC0;
*(_DWORD *)(v5 + 1) = v4;
}
}
else
{
v5 = a3 - 4;
*(_BYTE *)v5 = ((unsigned int)(a1 - a2) >> 24) | 0x80;
*(_WORD *)(v5 + 1) = v4;
*(_BYTE *)(v5 + 3) = (v4 & 0xFFFFFF) >> 16;
}
}
else
{
v5 = a3 - 3;
*(_BYTE *)v5 = BYTE2(v4) | 0x40;
*(_WORD *)(v5 + 1) = v4;
}
}
else
{
v5 = a3 - 2;
*(_BYTE *)v5 = BYTE1(v4);
*(_BYTE *)(v5 + 1) = v4;
}
return v5;
}
| translog_put_LSN_diff:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
JMP 0x0015b112
LAB_0015b112:
JMP 0x0015b114
LAB_0015b114:
JMP 0x0015b116
LAB_0015b116:
MOV RAX,qword ptr [RBP + -0x8]
SUB RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0015b124
LAB_0015b124:
CMP qword ptr [RBP + -0x20],0x3fff
JA 0x0015b162
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,-0x2
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x20]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x20]
AND RAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + 0x1],CL
JMP 0x0015b303
LAB_0015b162:
CMP qword ptr [RBP + -0x20],0x3fffff
JA 0x0015b1b1
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,-0x3
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x20]
SHR RAX,0x10
OR RAX,0x40
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x20]
AND RAX,0xffff
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x28]
MOV word ptr [RAX],CX
JMP 0x0015b301
LAB_0015b1b1:
CMP qword ptr [RBP + -0x20],0x3fffffff
JA 0x0015b222
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,-0x4
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x20]
SHR RAX,0x18
OR RAX,0x80
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x20]
AND RAX,0xffffff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x20]
AND RAX,0xffffff
SHR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x20]
AND RAX,0xffffff
SHR RAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + 0x3],CL
JMP 0x0015b2ff
LAB_0015b222:
MOV RAX,0x3fffffffff
CMP qword ptr [RBP + -0x20],RAX
JA 0x0015b27b
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,-0x5
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x20]
SHR RAX,0x20
OR RAX,0xc0
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,0xffffffff
AND RAX,qword ptr [RBP + -0x20]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX],ECX
JMP 0x0015b2fd
LAB_0015b27b:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,-0x9
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + 0x1],0x1
JMP 0x0015b298
LAB_0015b298:
MOV RAX,qword ptr [RBP + -0x10]
SAR RAX,0x20
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x10]
SAR RAX,0x20
SHR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + 0x3],CL
MOV RAX,qword ptr [RBP + -0x10]
SAR RAX,0x20
SHR EAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + 0x4],CL
JMP 0x0015b2d3
LAB_0015b2d3:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x2
ADD RAX,0x3
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,0xffffffff
AND RAX,qword ptr [RBP + -0x10]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX],ECX
JMP 0x0015b2fb
LAB_0015b2fb:
JMP 0x0015b2fd
LAB_0015b2fd:
JMP 0x0015b2ff
LAB_0015b2ff:
JMP 0x0015b301
LAB_0015b301:
JMP 0x0015b303
LAB_0015b303:
JMP 0x0015b305
LAB_0015b305:
JMP 0x0015b307
LAB_0015b307:
JMP 0x0015b309
LAB_0015b309:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
POP RBP
RET
|
byte * translog_put_LSN_diff(long param_1,long param_2,long param_3)
{
byte bVar1;
byte bVar2;
ulong uVar3;
int8 local_20;
uVar3 = param_1 - param_2;
bVar1 = (byte)(uVar3 >> 8);
if (uVar3 < 0x4000) {
local_20 = (byte *)(param_3 + -2);
*local_20 = bVar1;
*(char *)(param_3 + -1) = (char)uVar3;
}
else {
bVar2 = (byte)(uVar3 >> 0x10);
if (uVar3 < 0x400000) {
local_20 = (byte *)(param_3 + -3);
*local_20 = bVar2 | 0x40;
*(short *)(param_3 + -2) = (short)uVar3;
}
else if (uVar3 < 0x40000000) {
local_20 = (byte *)(param_3 + -4);
*local_20 = (byte)(uVar3 >> 0x18) | 0x80;
*(char *)(param_3 + -3) = (char)uVar3;
*(byte *)(param_3 + -2) = bVar1;
*(byte *)(param_3 + -1) = bVar2;
}
else if (uVar3 < 0x4000000000) {
local_20 = (byte *)(param_3 + -5);
*local_20 = (byte)(uVar3 >> 0x20) | 0xc0;
*(int *)(param_3 + -4) = (int)uVar3;
}
else {
local_20 = (byte *)(param_3 + -9);
*local_20 = 0;
*(int1 *)(param_3 + -8) = 1;
*(char *)(param_3 + -7) = (char)((ulong)param_2 >> 0x20);
*(char *)(param_3 + -6) = (char)((ulong)param_2 >> 0x28);
*(char *)(param_3 + -5) = (char)((ulong)param_2 >> 0x30);
*(int *)(param_3 + -4) = (int)param_2;
}
}
return local_20;
}
| |
41,018 | Config::Layer::DeleteKey(Config::Location const&) | Dolphin-anty/Source/Core/Common/Config/Layer.cpp | bool Layer::DeleteKey(const Location& location)
{
m_is_dirty = true;
bool had_value = false;
const auto iter = m_map.find(location);
if (iter != m_map.end() && iter->second.has_value())
{
iter->second.reset();
had_value = true;
}
return had_value;
} | O0 | cpp | Config::Layer::DeleteKey(Config::Location const&):
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq 0x30(%rsp), %rdi
movq %rdi, (%rsp)
movb $0x1, 0x8(%rdi)
movb $0x0, 0x27(%rsp)
addq $0x10, %rdi
movq 0x28(%rsp), %rsi
callq 0x18ab0
movq (%rsp), %rdi
movq %rax, 0x18(%rsp)
addq $0x10, %rdi
callq 0x18b00
movq %rax, 0x10(%rsp)
leaq 0x18(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x18ae0
movb %al, %cl
xorb $-0x1, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, 0xf(%rsp)
jne 0x405f6
jmp 0x40610
leaq 0x18(%rsp), %rdi
callq 0x18b80
movq %rax, %rdi
addq $0x48, %rdi
callq 0x39280
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x4061a
jmp 0x40635
leaq 0x18(%rsp), %rdi
callq 0x18b80
movq %rax, %rdi
addq $0x48, %rdi
callq 0x40a40
movb $0x1, 0x27(%rsp)
movb 0x27(%rsp), %al
andb $0x1, %al
addq $0x38, %rsp
retq
| _ZN6Config5Layer9DeleteKeyERKNS_8LocationE:
sub rsp, 38h
mov [rsp+38h+var_8], rdi
mov [rsp+38h+var_10], rsi
mov rdi, [rsp+38h+var_8]
mov [rsp+38h+var_38], rdi
mov byte ptr [rdi+8], 1
mov [rsp+38h+var_11], 0
add rdi, 10h
mov rsi, [rsp+38h+var_10]
call _ZNSt3mapIN6Config8LocationESt8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt4lessIS1_ESaISt4pairIKS1_S9_EEE4findERSD_; std::map<Config::Location,std::optional<std::string>>::find(Config::Location const&)
mov rdi, [rsp+38h+var_38]
mov [rsp+38h+var_20], rax
add rdi, 10h
call _ZNSt3mapIN6Config8LocationESt8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt4lessIS1_ESaISt4pairIKS1_S9_EEE3endEv; std::map<Config::Location,std::optional<std::string>>::end(void)
mov [rsp+38h+var_28], rax
lea rdi, [rsp+38h+var_20]
lea rsi, [rsp+38h+var_28]
call _ZSteqRKSt17_Rb_tree_iteratorISt4pairIKN6Config8LocationESt8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEESF_; std::operator==(std::_Rb_tree_iterator<std::pair<Config::Location const,std::optional<std::string>>> const&,std::_Rb_tree_iterator<std::pair<Config::Location const,std::optional<std::string>>> const&)
mov cl, al
xor cl, 0FFh
xor eax, eax
test cl, 1
mov [rsp+38h+var_29], al
jnz short loc_405F6
jmp short loc_40610
loc_405F6:
lea rdi, [rsp+38h+var_20]
call _ZNKSt17_Rb_tree_iteratorISt4pairIKN6Config8LocationESt8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEptEv; std::_Rb_tree_iterator<std::pair<Config::Location const,std::optional<std::string>>>::operator->(void)
mov rdi, rax
add rdi, 48h ; 'H'
call _ZNKSt8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE9has_valueEv; std::optional<std::string>::has_value(void)
mov [rsp+38h+var_29], al
loc_40610:
mov al, [rsp+38h+var_29]
test al, 1
jnz short loc_4061A
jmp short loc_40635
loc_4061A:
lea rdi, [rsp+38h+var_20]
call _ZNKSt17_Rb_tree_iteratorISt4pairIKN6Config8LocationESt8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEptEv; std::_Rb_tree_iterator<std::pair<Config::Location const,std::optional<std::string>>>::operator->(void)
mov rdi, rax
add rdi, 48h ; 'H'
call _ZNSt8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE5resetEv; std::optional<std::string>::reset(void)
mov [rsp+38h+var_11], 1
loc_40635:
mov al, [rsp+38h+var_11]
and al, 1
add rsp, 38h
retn
| char Config::Layer::DeleteKey(Config::Layer *this, const Config::Location *a2)
{
long long v2; // rax
long long v3; // rax
char has_value; // [rsp+Fh] [rbp-29h]
long long v6; // [rsp+10h] [rbp-28h] BYREF
long long v7; // [rsp+18h] [rbp-20h] BYREF
char v8; // [rsp+27h] [rbp-11h]
const Config::Location *v9; // [rsp+28h] [rbp-10h]
Config::Layer *v10; // [rsp+30h] [rbp-8h]
v10 = this;
v9 = a2;
*((_BYTE *)this + 8) = 1;
v8 = 0;
v7 = std::map<Config::Location,std::optional<std::string>>::find((long long)this + 16, (long long)v9);
v6 = std::map<Config::Location,std::optional<std::string>>::end((long long)this + 16);
has_value = 0;
if ( !std::operator==(&v7, &v6) )
{
v2 = std::_Rb_tree_iterator<std::pair<Config::Location const,std::optional<std::string>>>::operator->(&v7);
has_value = std::optional<std::string>::has_value(v2 + 72);
}
if ( (has_value & 1) != 0 )
{
v3 = std::_Rb_tree_iterator<std::pair<Config::Location const,std::optional<std::string>>>::operator->(&v7);
std::optional<std::string>::reset(v3 + 72);
v8 = 1;
}
return v8 & 1;
}
| DeleteKey:
SUB RSP,0x38
MOV qword ptr [RSP + 0x30],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV RDI,qword ptr [RSP + 0x30]
MOV qword ptr [RSP],RDI
MOV byte ptr [RDI + 0x8],0x1
MOV byte ptr [RSP + 0x27],0x0
ADD RDI,0x10
MOV RSI,qword ptr [RSP + 0x28]
CALL 0x00118ab0
MOV RDI,qword ptr [RSP]
MOV qword ptr [RSP + 0x18],RAX
ADD RDI,0x10
CALL 0x00118b00
MOV qword ptr [RSP + 0x10],RAX
LEA RDI,[RSP + 0x18]
LEA RSI,[RSP + 0x10]
CALL 0x00118ae0
MOV CL,AL
XOR CL,0xff
XOR EAX,EAX
TEST CL,0x1
MOV byte ptr [RSP + 0xf],AL
JNZ 0x001405f6
JMP 0x00140610
LAB_001405f6:
LEA RDI,[RSP + 0x18]
CALL 0x00118b80
MOV RDI,RAX
ADD RDI,0x48
CALL 0x00139280
MOV byte ptr [RSP + 0xf],AL
LAB_00140610:
MOV AL,byte ptr [RSP + 0xf]
TEST AL,0x1
JNZ 0x0014061a
JMP 0x00140635
LAB_0014061a:
LEA RDI,[RSP + 0x18]
CALL 0x00118b80
MOV RDI,RAX
ADD RDI,0x48
CALL 0x00140a40
MOV byte ptr [RSP + 0x27],0x1
LAB_00140635:
MOV AL,byte ptr [RSP + 0x27]
AND AL,0x1
ADD RSP,0x38
RET
|
/* Config::Layer::DeleteKey(Config::Location const&) */
ulong __thiscall Config::Layer::DeleteKey(Layer *this,Location *param_1)
{
byte bVar1;
int8 uVar2;
int7 uVar4;
long lVar3;
int7 extraout_var;
byte local_29;
int8 local_28;
int8 local_20;
int1 local_11;
Location *local_10;
Layer *local_8;
this[8] = (Layer)0x1;
local_11 = 0;
local_10 = param_1;
local_8 = this;
local_20 = std::
map<Config::Location,std::optional<std::__cxx11::string>,std::less<Config::Location>,std::allocator<std::pair<Config::Location_const,std::optional<std::__cxx11::string>>>>
::find((map<Config::Location,std::optional<std::__cxx11::string>,std::less<Config::Location>,std::allocator<std::pair<Config::Location_const,std::optional<std::__cxx11::string>>>>
*)(this + 0x10),param_1);
local_28 = std::
map<Config::Location,std::optional<std::__cxx11::string>,std::less<Config::Location>,std::allocator<std::pair<Config::Location_const,std::optional<std::__cxx11::string>>>>
::end((map<Config::Location,std::optional<std::__cxx11::string>,std::less<Config::Location>,std::allocator<std::pair<Config::Location_const,std::optional<std::__cxx11::string>>>>
*)(this + 0x10));
bVar1 = std::operator==((_Rb_tree_iterator *)&local_20,(_Rb_tree_iterator *)&local_28);
uVar2 = 0;
local_29 = 0;
if (((bVar1 ^ 0xff) & 1) != 0) {
lVar3 = std::
_Rb_tree_iterator<std::pair<Config::Location_const,std::optional<std::__cxx11::string>>>
::operator->((_Rb_tree_iterator<std::pair<Config::Location_const,std::optional<std::__cxx11::string>>>
*)&local_20);
uVar2 = std::optional<std::__cxx11::string>::has_value
((optional<std::__cxx11::string> *)(lVar3 + 0x48));
local_29 = (byte)uVar2;
}
uVar4 = (int7)((ulong)uVar2 >> 8);
if ((local_29 & 1) != 0) {
lVar3 = std::
_Rb_tree_iterator<std::pair<Config::Location_const,std::optional<std::__cxx11::string>>>
::operator->((_Rb_tree_iterator<std::pair<Config::Location_const,std::optional<std::__cxx11::string>>>
*)&local_20);
std::optional<std::__cxx11::string>::reset((optional<std::__cxx11::string> *)(lVar3 + 0x48));
local_11 = 1;
uVar4 = extraout_var;
}
return CONCAT71(uVar4,local_11) & 0xffffffffffffff01;
}
| |
41,019 | create_rwlock(PFS_rwlock_class*, void const*) | eloqsql/storage/perfschema/pfs_instr.cc | PFS_rwlock* create_rwlock(PFS_rwlock_class *klass, const void *identity)
{
PFS_rwlock *pfs;
pfs_dirty_state dirty_state;
pfs= global_rwlock_container.allocate(& dirty_state);
if (pfs != NULL)
{
pfs->m_identity= identity;
pfs->m_class= klass;
pfs->m_enabled= klass->m_enabled && flag_global_instrumentation;
pfs->m_timed= klass->m_timed;
pfs->m_rwlock_stat.reset();
pfs->m_writer= NULL;
pfs->m_readers= 0;
pfs->m_last_written= 0;
pfs->m_last_read= 0;
pfs->m_lock.dirty_to_allocated(& dirty_state);
if (klass->is_singleton())
klass->m_singleton= pfs;
}
return pfs;
} | O0 | cpp | create_rwlock(PFS_rwlock_class*, void const*):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0x39c7e1(%rip), %rdi # 0x3cb348
leaq -0x1c(%rbp), %rsi
callq 0x33560
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x2ec39
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x8(%rbp), %rcx
xorl %eax, %eax
testb $0x1, 0x4(%rcx)
movb %al, -0x1d(%rbp)
je 0x2ebb2
leaq 0x3df3d3(%rip), %rax # 0x40df80
movb (%rax), %al
movb %al, -0x1d(%rbp)
movb -0x1d(%rbp), %cl
movq -0x18(%rbp), %rax
andb $0x1, %cl
movb %cl, 0x4(%rax)
movq -0x8(%rbp), %rax
movb 0x5(%rax), %cl
movq -0x18(%rbp), %rax
andb $0x1, %cl
movb %cl, 0x5(%rax)
movq -0x18(%rbp), %rdi
addq $0x20, %rdi
callq 0x33910
movq -0x18(%rbp), %rax
movq $0x0, 0x40(%rax)
movq -0x18(%rbp), %rax
movl $0x0, 0x48(%rax)
movq -0x18(%rbp), %rax
movq $0x0, 0x50(%rax)
movq -0x18(%rbp), %rax
movq $0x0, 0x58(%rax)
movq -0x18(%rbp), %rdi
leaq -0x1c(%rbp), %rsi
callq 0x334b0
movq -0x8(%rbp), %rdi
callq 0x334f0
testb $0x1, %al
jne 0x2ec28
jmp 0x2ec37
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xc0(%rax)
jmp 0x2ec39
movq -0x18(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _Z13create_rwlockP16PFS_rwlock_classPKv:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
lea rdi, global_rwlock_container
lea rsi, [rbp+var_1C]
call _ZN29PFS_buffer_scalable_containerI10PFS_rwlockLi1024ELi1024E24PFS_buffer_default_arrayIS0_E28PFS_buffer_default_allocatorIS0_EE8allocateEP15pfs_dirty_state; PFS_buffer_scalable_container<PFS_rwlock,1024,1024,PFS_buffer_default_array<PFS_rwlock>,PFS_buffer_default_allocator<PFS_rwlock>>::allocate(pfs_dirty_state *)
mov [rbp+var_18], rax
cmp [rbp+var_18], 0
jz loc_2EC39
mov rcx, [rbp+var_10]
mov rax, [rbp+var_18]
mov [rax+10h], rcx
mov rcx, [rbp+var_8]
mov rax, [rbp+var_18]
mov [rax+18h], rcx
mov rcx, [rbp+var_8]
xor eax, eax
test byte ptr [rcx+4], 1
mov [rbp+var_1D], al
jz short loc_2EBB2
lea rax, flag_global_instrumentation
mov al, [rax]
mov [rbp+var_1D], al
loc_2EBB2:
mov cl, [rbp+var_1D]
mov rax, [rbp+var_18]
and cl, 1
mov [rax+4], cl
mov rax, [rbp+var_8]
mov cl, [rax+5]
mov rax, [rbp+var_18]
and cl, 1
mov [rax+5], cl
mov rdi, [rbp+var_18]
add rdi, 20h ; ' '; this
call _ZN15PFS_rwlock_stat5resetEv; PFS_rwlock_stat::reset(void)
mov rax, [rbp+var_18]
mov qword ptr [rax+40h], 0
mov rax, [rbp+var_18]
mov dword ptr [rax+48h], 0
mov rax, [rbp+var_18]
mov qword ptr [rax+50h], 0
mov rax, [rbp+var_18]
mov qword ptr [rax+58h], 0
mov rdi, [rbp+var_18]
lea rsi, [rbp+var_1C]
call _ZN8pfs_lock18dirty_to_allocatedEPK15pfs_dirty_state; pfs_lock::dirty_to_allocated(pfs_dirty_state const*)
mov rdi, [rbp+var_8]; this
call _ZNK15PFS_instr_class12is_singletonEv; PFS_instr_class::is_singleton(void)
test al, 1
jnz short loc_2EC28
jmp short loc_2EC37
loc_2EC28:
mov rcx, [rbp+var_18]
mov rax, [rbp+var_8]
mov [rax+0C0h], rcx
loc_2EC37:
jmp short $+2
loc_2EC39:
mov rax, [rbp+var_18]
add rsp, 20h
pop rbp
retn
| long long create_rwlock(PFS_instr_class *a1, long long a2)
{
char v3; // [rsp+3h] [rbp-1Dh]
_BYTE v4[4]; // [rsp+4h] [rbp-1Ch] BYREF
long long v5; // [rsp+8h] [rbp-18h]
long long v6; // [rsp+10h] [rbp-10h]
PFS_instr_class *v7; // [rsp+18h] [rbp-8h]
v7 = a1;
v6 = a2;
v5 = PFS_buffer_scalable_container<PFS_rwlock,1024,1024,PFS_buffer_default_array<PFS_rwlock>,PFS_buffer_default_allocator<PFS_rwlock>>::allocate(
&global_rwlock_container,
v4);
if ( v5 )
{
*(_QWORD *)(v5 + 16) = v6;
*(_QWORD *)(v5 + 24) = v7;
v3 = 0;
if ( (*((_BYTE *)v7 + 4) & 1) != 0 )
v3 = flag_global_instrumentation;
*(_BYTE *)(v5 + 4) = v3 & 1;
*(_BYTE *)(v5 + 5) = *((_BYTE *)v7 + 5) & 1;
PFS_rwlock_stat::reset((PFS_rwlock_stat *)(v5 + 32));
*(_QWORD *)(v5 + 64) = 0LL;
*(_DWORD *)(v5 + 72) = 0;
*(_QWORD *)(v5 + 80) = 0LL;
*(_QWORD *)(v5 + 88) = 0LL;
pfs_lock::dirty_to_allocated(v5, v4);
if ( (PFS_instr_class::is_singleton(v7) & 1) != 0 )
*((_QWORD *)v7 + 24) = v5;
}
return v5;
}
| create_rwlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
LEA RDI,[0x4cb348]
LEA RSI,[RBP + -0x1c]
CALL 0x00133560
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0x0
JZ 0x0012ec39
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x18],RCX
MOV RCX,qword ptr [RBP + -0x8]
XOR EAX,EAX
TEST byte ptr [RCX + 0x4],0x1
MOV byte ptr [RBP + -0x1d],AL
JZ 0x0012ebb2
LEA RAX,[0x50df80]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x1d],AL
LAB_0012ebb2:
MOV CL,byte ptr [RBP + -0x1d]
MOV RAX,qword ptr [RBP + -0x18]
AND CL,0x1
MOV byte ptr [RAX + 0x4],CL
MOV RAX,qword ptr [RBP + -0x8]
MOV CL,byte ptr [RAX + 0x5]
MOV RAX,qword ptr [RBP + -0x18]
AND CL,0x1
MOV byte ptr [RAX + 0x5],CL
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x20
CALL 0x00133910
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x40],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x48],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x50],0x0
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x58],0x0
MOV RDI,qword ptr [RBP + -0x18]
LEA RSI,[RBP + -0x1c]
CALL 0x001334b0
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001334f0
TEST AL,0x1
JNZ 0x0012ec28
JMP 0x0012ec37
LAB_0012ec28:
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xc0],RCX
LAB_0012ec37:
JMP 0x0012ec39
LAB_0012ec39:
MOV RAX,qword ptr [RBP + -0x18]
ADD RSP,0x20
POP RBP
RET
|
/* create_rwlock(PFS_rwlock_class*, void const*) */
pfs_lock * create_rwlock(PFS_rwlock_class *param_1,void *param_2)
{
ulong uVar1;
byte local_25;
pfs_dirty_state local_24 [4];
pfs_lock *local_20;
void *local_18;
PFS_rwlock_class *local_10;
local_18 = param_2;
local_10 = param_1;
local_20 = (pfs_lock *)
PFS_buffer_scalable_container<PFS_rwlock,1024,1024,PFS_buffer_default_array<PFS_rwlock>,PFS_buffer_default_allocator<PFS_rwlock>>
::allocate((PFS_buffer_scalable_container<PFS_rwlock,1024,1024,PFS_buffer_default_array<PFS_rwlock>,PFS_buffer_default_allocator<PFS_rwlock>>
*)global_rwlock_container,local_24);
if (local_20 != (pfs_lock *)0x0) {
*(void **)(local_20 + 0x10) = local_18;
*(PFS_rwlock_class **)(local_20 + 0x18) = local_10;
local_25 = 0;
if (((byte)local_10[4] & 1) != 0) {
local_25 = flag_global_instrumentation;
}
local_20[4] = (pfs_lock)(local_25 & 1);
local_20[5] = (pfs_lock)((byte)local_10[5] & 1);
PFS_rwlock_stat::reset((PFS_rwlock_stat *)(local_20 + 0x20));
*(int8 *)(local_20 + 0x40) = 0;
*(int4 *)(local_20 + 0x48) = 0;
*(int8 *)(local_20 + 0x50) = 0;
*(int8 *)(local_20 + 0x58) = 0;
pfs_lock::dirty_to_allocated(local_20,local_24);
uVar1 = PFS_instr_class::is_singleton((PFS_instr_class *)local_10);
if ((uVar1 & 1) != 0) {
*(pfs_lock **)(local_10 + 0xc0) = local_20;
}
}
return local_20;
}
| |
41,020 | my_strnncoll_8bit_bin | eloqsql/strings/ctype-bin.c | static int my_strnncoll_8bit_bin(CHARSET_INFO * cs __attribute__((unused)),
const uchar *s, size_t slen,
const uchar *t, size_t tlen,
my_bool t_is_prefix)
{
size_t len=MY_MIN(slen,tlen);
int cmp= memcmp(s,t,len);
return cmp ? cmp : (int)((t_is_prefix ? len : slen) - tlen);
} | O0 | c | my_strnncoll_8bit_bin:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movb %r9b, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movb %al, -0x29(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x28(%rbp), %rax
jae 0x9a866
movq -0x18(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x9a86e
movq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x28160
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x3c(%rbp)
je 0x9a898
movl -0x3c(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x9a8be
movsbl -0x29(%rbp), %eax
cmpl $0x0, %eax
je 0x9a8ab
movq -0x38(%rbp), %rax
movq %rax, -0x58(%rbp)
jmp 0x9a8b3
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
subq -0x28(%rbp), %rax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| my_strnncoll_8bit_bin:
push rbp
mov rbp, rsp
sub rsp, 60h
mov al, r9b
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_29], al
mov rax, [rbp+var_18]
cmp rax, [rbp+var_28]
jnb short loc_9A866
mov rax, [rbp+var_18]
mov [rbp+var_48], rax
jmp short loc_9A86E
loc_9A866:
mov rax, [rbp+var_28]
mov [rbp+var_48], rax
loc_9A86E:
mov rax, [rbp+var_48]
mov [rbp+var_38], rax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_38]
call _memcmp
mov [rbp+var_3C], eax
cmp [rbp+var_3C], 0
jz short loc_9A898
mov eax, [rbp+var_3C]
mov [rbp+var_4C], eax
jmp short loc_9A8BE
loc_9A898:
movsx eax, [rbp+var_29]
cmp eax, 0
jz short loc_9A8AB
mov rax, [rbp+var_38]
mov [rbp+var_58], rax
jmp short loc_9A8B3
loc_9A8AB:
mov rax, [rbp+var_18]
mov [rbp+var_58], rax
loc_9A8B3:
mov rax, [rbp+var_58]
sub rax, [rbp+var_28]
mov [rbp+var_4C], eax
loc_9A8BE:
mov eax, [rbp+var_4C]
add rsp, 60h
pop rbp
retn
| long long my_strnncoll_8bit_bin(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
char a6)
{
int v7; // [rsp+8h] [rbp-58h]
unsigned long long v9; // [rsp+18h] [rbp-48h]
unsigned int v10; // [rsp+24h] [rbp-3Ch]
int v12; // [rsp+38h] [rbp-28h]
int v13; // [rsp+48h] [rbp-18h]
v13 = a3;
v12 = a5;
if ( a3 >= a5 )
v9 = a5;
else
v9 = a3;
v10 = memcmp(a2, a4, v9);
if ( v10 )
{
return v10;
}
else
{
if ( a6 )
v7 = v9;
else
v7 = v13;
return (unsigned int)(v7 - v12);
}
}
| my_strnncoll_8bit_bin:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV AL,R9B
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 byte ptr [RBP + -0x29],AL
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x28]
JNC 0x0019a866
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x48],RAX
JMP 0x0019a86e
LAB_0019a866:
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x48],RAX
LAB_0019a86e:
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x00128160
MOV dword ptr [RBP + -0x3c],EAX
CMP dword ptr [RBP + -0x3c],0x0
JZ 0x0019a898
MOV EAX,dword ptr [RBP + -0x3c]
MOV dword ptr [RBP + -0x4c],EAX
JMP 0x0019a8be
LAB_0019a898:
MOVSX EAX,byte ptr [RBP + -0x29]
CMP EAX,0x0
JZ 0x0019a8ab
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x58],RAX
JMP 0x0019a8b3
LAB_0019a8ab:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x58],RAX
LAB_0019a8b3:
MOV RAX,qword ptr [RBP + -0x58]
SUB RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x4c],EAX
LAB_0019a8be:
MOV EAX,dword ptr [RBP + -0x4c]
ADD RSP,0x60
POP RBP
RET
|
int my_strnncoll_8bit_bin
(int8 param_1,void *param_2,ulong param_3,void *param_4,ulong param_5,
char param_6)
{
ulong local_60;
int local_54;
size_t local_50;
local_50 = param_5;
if (param_3 < param_5) {
local_50 = param_3;
}
local_54 = memcmp(param_2,param_4,local_50);
if (local_54 == 0) {
local_60 = param_3;
if (param_6 != '\0') {
local_60 = local_50;
}
local_54 = (int)local_60 - (int)param_5;
}
return local_54;
}
| |
41,021 | nglog::(anonymous namespace)::MinimalFormatter::AppendString(char const*) | ng-log[P]ng-log/src/signalhandler.cc | void AppendString(const char* str) {
ptrdiff_t i = 0;
while (str[i] != '\0' && cursor_ + i < end_) {
cursor_[i] = str[i];
++i;
}
cursor_ += i;
} | O2 | cpp | nglog::(anonymous namespace)::MinimalFormatter::AppendString(char const*):
xorl %eax, %eax
movb (%rsi,%rax), %cl
movq 0x8(%rdi), %rdx
testb %cl, %cl
je 0x1bd79
leaq (%rdx,%rax), %r8
cmpq 0x10(%rdi), %r8
jae 0x1bd79
movb %cl, (%r8)
incq %rax
jmp 0x1bd5c
addq %rax, %rdx
movq %rdx, 0x8(%rdi)
retq
nop
| _ZN5nglog12_GLOBAL__N_116MinimalFormatter12AppendStringEPKc:
xor eax, eax
loc_1BD5C:
mov cl, [rsi+rax]
mov rdx, [rdi+8]
test cl, cl
jz short loc_1BD79
lea r8, [rdx+rax]
cmp r8, [rdi+10h]
jnb short loc_1BD79
mov [r8], cl
inc rax
jmp short loc_1BD5C
loc_1BD79:
add rdx, rax
mov [rdi+8], rdx
retn
| long long nglog::`anonymous namespace'::MinimalFormatter::AppendString(
nglog::_anonymous_namespace_::MinimalFormatter *this,
const char *a2)
{
long long result; // rax
char v3; // cl
long long v4; // rdx
for ( result = 0LL; ; ++result )
{
v3 = a2[result];
v4 = *((_QWORD *)this + 1);
if ( !v3 || (unsigned long long)(v4 + result) >= *((_QWORD *)this + 2) )
break;
*(_BYTE *)(v4 + result) = v3;
}
*((_QWORD *)this + 1) = result + v4;
return result;
}
| AppendString:
XOR EAX,EAX
LAB_0011bd5c:
MOV CL,byte ptr [RSI + RAX*0x1]
MOV RDX,qword ptr [RDI + 0x8]
TEST CL,CL
JZ 0x0011bd79
LEA R8,[RDX + RAX*0x1]
CMP R8,qword ptr [RDI + 0x10]
JNC 0x0011bd79
MOV byte ptr [R8],CL
INC RAX
JMP 0x0011bd5c
LAB_0011bd79:
ADD RDX,RAX
MOV qword ptr [RDI + 0x8],RDX
RET
|
/* nglog::(anonymous namespace)::MinimalFormatter::AppendString(char const*) */
void __thiscall
nglog::(anonymous_namespace)::MinimalFormatter::AppendString(MinimalFormatter *this,char *param_1)
{
char *pcVar1;
long lVar2;
lVar2 = 0;
while( true ) {
if ((param_1[lVar2] == '\0') ||
(pcVar1 = (char *)(*(long *)(this + 8) + lVar2), *(char **)(this + 0x10) <= pcVar1)) break;
*pcVar1 = param_1[lVar2];
lVar2 = lVar2 + 1;
}
*(long *)(this + 8) = *(long *)(this + 8) + lVar2;
return;
}
| |
41,022 | ma_crypt_data_pre_write_hook | eloqsql/storage/maria/ma_crypt.c | static my_bool ma_crypt_data_pre_write_hook(PAGECACHE_IO_HOOK_ARGS *args)
{
MARIA_SHARE *share= (MARIA_SHARE*) args->data;
const uint size= share->block_size;
uint key_version;
uchar *crypt_buf= my_malloc(PSI_INSTRUMENT_ME, share->block_size, MYF(0));
if (crypt_buf == NULL)
{
args->crypt_buf= NULL; /* for post-hook */
return 1;
}
if (!share->base.born_transactional)
{
/* store a random number instead of LSN (for counter block) */
store_rand_lsn(args->page);
}
maria_page_crc_set_normal(args);
{
const uchar *src= args->page;
uchar* dst= crypt_buf;
uint pageno= (uint)args->pageno;
LSN lsn= lsn_korr(src);
const uchar page_type= src[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK;
const uint head= (page_type <= TAIL_PAGE) ?
PAGE_HEADER_SIZE(share) : FULL_PAGE_HEADER_SIZE(share);
const uint tail= CRC_SIZE;
const uint32 key_version_offset= (page_type <= TAIL_PAGE) ?
KEY_VERSION_OFFSET : FULL_PAGE_KEY_VERSION_OFFSET;
DBUG_ASSERT(page_type < MAX_PAGE_TYPE);
/* 1 - copy head */
memcpy(dst, src, head);
/* 2 - encrypt page */
if (ma_encrypt(share, share->crypt_data,
src + head, dst + head, size - (head + tail), pageno, lsn,
&key_version))
return 1;
/* 3 - copy tail */
memcpy(dst + size - tail, src + size - tail, tail);
/* 4 - store key version */
int4store(dst + key_version_offset, key_version);
}
/* swap pointers to instead write out the encrypted block */
args->crypt_buf= args->page;
args->page= crypt_buf;
return 0;
} | O0 | c | ma_crypt_data_pre_write_hook:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl 0x7bc(%rax), %eax
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rax
movl 0x7bc(%rax), %eax
movl %eax, %esi
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %edx
callq 0xf3860
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x5ec6f
movq -0x10(%rbp), %rax
movq $0x0, 0x18(%rax)
movb $0x1, -0x1(%rbp)
jmp 0x5edf5
movq -0x18(%rbp), %rax
cmpb $0x0, 0x44c(%rax)
jne 0x5ec88
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x5f480
movq -0x10(%rbp), %rdi
callq 0x5d590
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movl %eax, -0x3c(%rbp)
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
movq -0x30(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x30(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movl %eax, %eax
shlq $0x20, %rax
movq -0x30(%rbp), %rcx
movl 0x3(%rcx), %ecx
orq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x30(%rbp), %rax
movzbl 0x7(%rax), %eax
andl $0x7, %eax
movb %al, -0x49(%rbp)
movzbl -0x49(%rbp), %eax
cmpl $0x2, %eax
jg 0x5ed0d
movq -0x18(%rbp), %rax
movl 0xc18(%rax), %eax
addl $0xc, %eax
movl %eax, -0x64(%rbp)
jmp 0x5ed1d
movq -0x18(%rbp), %rax
movl 0xc18(%rax), %eax
addl $0x8, %eax
movl %eax, -0x64(%rbp)
movl -0x64(%rbp), %eax
movl %eax, -0x50(%rbp)
movl $0x4, -0x54(%rbp)
movzbl -0x49(%rbp), %edx
movl $0x8, %eax
movl $0xc, %ecx
cmpl $0x2, %edx
cmovlel %ecx, %eax
movl %eax, -0x58(%rbp)
jmp 0x5ed43
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl -0x50(%rbp), %eax
movl %eax, %edx
callq 0x2a090
movq -0x18(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0xc20(%rax), %rsi
movq -0x30(%rbp), %rdx
movl -0x50(%rbp), %eax
addq %rax, %rdx
movq -0x38(%rbp), %rcx
movl -0x50(%rbp), %eax
addq %rax, %rcx
movl -0x1c(%rbp), %r8d
movl -0x50(%rbp), %eax
addl $0x4, %eax
subl %eax, %r8d
movl -0x3c(%rbp), %r9d
movq -0x48(%rbp), %r10
leaq -0x20(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x5f530
cmpl $0x0, %eax
je 0x5edaa
movb $0x1, -0x1(%rbp)
jmp 0x5edf5
movq -0x38(%rbp), %rax
movl -0x1c(%rbp), %ecx
movq -0x30(%rbp), %rdx
movl -0x1c(%rbp), %esi
movl -0x4(%rdx,%rsi), %edx
movl %edx, -0x4(%rax,%rcx)
movq -0x38(%rbp), %rax
movl -0x58(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
movl -0x20(%rbp), %ecx
movq -0x60(%rbp), %rax
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ma_crypt_data_pre_write_hook:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov eax, [rax+7BCh]
mov [rbp+var_1C], eax
mov rax, [rbp+var_18]
mov eax, [rax+7BCh]
mov esi, eax
xor edi, edi
xor eax, eax
mov edx, eax
call my_malloc
mov [rbp+var_28], rax
cmp [rbp+var_28], 0
jnz short loc_5EC6F
mov rax, [rbp+var_10]
mov qword ptr [rax+18h], 0
mov [rbp+var_1], 1
jmp loc_5EDF5
loc_5EC6F:
mov rax, [rbp+var_18]
cmp byte ptr [rax+44Ch], 0
jnz short loc_5EC88
mov rax, [rbp+var_10]
mov rdi, [rax]
call store_rand_lsn
loc_5EC88:
mov rdi, [rbp+var_10]
call maria_page_crc_set_normal
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_30], rax
mov rax, [rbp+var_28]
mov [rbp+var_38], rax
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rbp+var_3C], eax
mov rax, [rbp+var_30]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_30]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_30]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
or eax, ecx
mov eax, eax
shl rax, 20h
mov rcx, [rbp+var_30]
mov ecx, [rcx+3]
or rax, rcx
mov [rbp+var_48], rax
mov rax, [rbp+var_30]
movzx eax, byte ptr [rax+7]
and eax, 7
mov [rbp+var_49], al
movzx eax, [rbp+var_49]
cmp eax, 2
jg short loc_5ED0D
mov rax, [rbp+var_18]
mov eax, [rax+0C18h]
add eax, 0Ch
mov [rbp+var_64], eax
jmp short loc_5ED1D
loc_5ED0D:
mov rax, [rbp+var_18]
mov eax, [rax+0C18h]
add eax, 8
mov [rbp+var_64], eax
loc_5ED1D:
mov eax, [rbp+var_64]
mov [rbp+var_50], eax
mov [rbp+var_54], 4
movzx edx, [rbp+var_49]
mov eax, 8
mov ecx, 0Ch
cmp edx, 2
cmovle eax, ecx
mov [rbp+var_58], eax
jmp short $+2
loc_5ED43:
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_30]
mov eax, [rbp+var_50]
mov edx, eax
call _memcpy
mov rdi, [rbp+var_18]
mov rax, [rbp+var_18]
mov rsi, [rax+0C20h]
mov rdx, [rbp+var_30]
mov eax, [rbp+var_50]
add rdx, rax
mov rcx, [rbp+var_38]
mov eax, [rbp+var_50]
add rcx, rax
mov r8d, [rbp+var_1C]
mov eax, [rbp+var_50]
add eax, 4
sub r8d, eax
mov r9d, [rbp+var_3C]
mov r10, [rbp+var_48]
lea rax, [rbp+var_20]
mov [rsp+80h+var_80], r10
mov [rsp+80h+var_78], rax
call ma_encrypt
cmp eax, 0
jz short loc_5EDAA
mov [rbp+var_1], 1
jmp short loc_5EDF5
loc_5EDAA:
mov rax, [rbp+var_38]
mov ecx, [rbp+var_1C]
mov rdx, [rbp+var_30]
mov esi, [rbp+var_1C]
mov edx, [rdx+rsi-4]
mov [rax+rcx-4], edx
mov rax, [rbp+var_38]
mov ecx, [rbp+var_58]
add rax, rcx
mov [rbp+var_60], rax
mov ecx, [rbp+var_20]
mov rax, [rbp+var_60]
mov [rax], ecx
mov rax, [rbp+var_10]
mov rcx, [rax]
mov rax, [rbp+var_10]
mov [rax+18h], rcx
mov rcx, [rbp+var_28]
mov rax, [rbp+var_10]
mov [rax], rcx
mov [rbp+var_1], 0
loc_5EDF5:
mov al, [rbp+var_1]
add rsp, 80h
pop rbp
retn
| char ma_crypt_data_pre_write_hook(long long *a1)
{
int v1; // eax
int v2; // eax
unsigned int v4; // [rsp+28h] [rbp-58h]
unsigned int v5; // [rsp+30h] [rbp-50h]
unsigned __int8 v6; // [rsp+37h] [rbp-49h]
unsigned long long v7; // [rsp+38h] [rbp-48h]
int v8; // [rsp+44h] [rbp-3Ch]
unsigned __int16 *v9; // [rsp+50h] [rbp-30h]
long long v10; // [rsp+58h] [rbp-28h]
int v11; // [rsp+60h] [rbp-20h] BYREF
unsigned int v12; // [rsp+64h] [rbp-1Ch]
long long v13; // [rsp+68h] [rbp-18h]
long long *v14; // [rsp+70h] [rbp-10h]
v14 = a1;
v13 = a1[2];
v12 = *(_DWORD *)(v13 + 1980);
v10 = my_malloc(0LL, *(unsigned int *)(v13 + 1980), 0LL);
if ( v10 )
{
if ( !*(_BYTE *)(v13 + 1100) )
store_rand_lsn(*v14);
maria_page_crc_set_normal(v14);
v9 = (unsigned __int16 *)*v14;
v8 = v14[1];
v7 = *(unsigned int *)((char *)v9 + 3) | ((unsigned long long)((*((unsigned __int8 *)v9 + 2) << 16) | (unsigned int)*v9) << 32);
v6 = *(_BYTE *)(*v14 + 7) & 7;
if ( v6 > 2u )
v1 = *(_DWORD *)(v13 + 3096) + 8;
else
v1 = *(_DWORD *)(v13 + 3096) + 12;
v5 = v1;
v2 = 8;
if ( v6 <= 2u )
v2 = 12;
v4 = v2;
memcpy(v10, v9, v5);
if ( (unsigned int)ma_encrypt(
v13,
*(_QWORD *)(v13 + 3104),
v5 + (unsigned int)v9,
v5 + (unsigned int)v10,
v12 - (v5 + 4),
v8,
v7,
(long long)&v11) )
{
return 1;
}
else
{
*(_DWORD *)(v10 + v12 - 4) = *(_DWORD *)((char *)v9 + v12 - 4);
*(_DWORD *)(v4 + v10) = v11;
v14[3] = *v14;
*v14 = v10;
return 0;
}
}
else
{
v14[3] = 0LL;
return 1;
}
}
| ma_crypt_data_pre_write_hook:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x7bc]
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x7bc]
MOV ESI,EAX
XOR EDI,EDI
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001f3860
MOV qword ptr [RBP + -0x28],RAX
CMP qword ptr [RBP + -0x28],0x0
JNZ 0x0015ec6f
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],0x0
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0015edf5
LAB_0015ec6f:
MOV RAX,qword ptr [RBP + -0x18]
CMP byte ptr [RAX + 0x44c],0x0
JNZ 0x0015ec88
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
CALL 0x0015f480
LAB_0015ec88:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0015d590
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x3c],EAX
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
OR EAX,ECX
MOV EAX,EAX
SHL RAX,0x20
MOV RCX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RCX + 0x3]
OR RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,byte ptr [RAX + 0x7]
AND EAX,0x7
MOV byte ptr [RBP + -0x49],AL
MOVZX EAX,byte ptr [RBP + -0x49]
CMP EAX,0x2
JG 0x0015ed0d
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0xc18]
ADD EAX,0xc
MOV dword ptr [RBP + -0x64],EAX
JMP 0x0015ed1d
LAB_0015ed0d:
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0xc18]
ADD EAX,0x8
MOV dword ptr [RBP + -0x64],EAX
LAB_0015ed1d:
MOV EAX,dword ptr [RBP + -0x64]
MOV dword ptr [RBP + -0x50],EAX
MOV dword ptr [RBP + -0x54],0x4
MOVZX EDX,byte ptr [RBP + -0x49]
MOV EAX,0x8
MOV ECX,0xc
CMP EDX,0x2
CMOVLE EAX,ECX
MOV dword ptr [RBP + -0x58],EAX
JMP 0x0015ed43
LAB_0015ed43:
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RBP + -0x50]
MOV EDX,EAX
CALL 0x0012a090
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RAX + 0xc20]
MOV RDX,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RBP + -0x50]
ADD RDX,RAX
MOV RCX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RBP + -0x50]
ADD RCX,RAX
MOV R8D,dword ptr [RBP + -0x1c]
MOV EAX,dword ptr [RBP + -0x50]
ADD EAX,0x4
SUB R8D,EAX
MOV R9D,dword ptr [RBP + -0x3c]
MOV R10,qword ptr [RBP + -0x48]
LEA RAX,[RBP + -0x20]
MOV qword ptr [RSP],R10
MOV qword ptr [RSP + 0x8],RAX
CALL 0x0015f530
CMP EAX,0x0
JZ 0x0015edaa
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0015edf5
LAB_0015edaa:
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RBP + -0x1c]
MOV RDX,qword ptr [RBP + -0x30]
MOV ESI,dword ptr [RBP + -0x1c]
MOV EDX,dword ptr [RDX + RSI*0x1 + -0x4]
MOV dword ptr [RAX + RCX*0x1 + -0x4],EDX
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RBP + -0x58]
ADD RAX,RCX
MOV qword ptr [RBP + -0x60],RAX
MOV ECX,dword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],RCX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV byte ptr [RBP + -0x1],0x0
LAB_0015edf5:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x80
POP RBP
RET
|
int1 ma_crypt_data_pre_write_hook(int8 *param_1)
{
int4 uVar1;
int3 *__src;
ulong uVar2;
int3 uVar3;
byte bVar4;
uint uVar5;
int iVar6;
void *__dest;
uint local_6c;
int4 local_28;
uint local_24;
long local_20;
int8 *local_18;
int1 local_9;
local_20 = param_1[2];
local_24 = *(uint *)(local_20 + 0x7bc);
local_18 = param_1;
__dest = (void *)my_malloc(0,*(int4 *)(local_20 + 0x7bc),0);
if (__dest == (void *)0x0) {
local_18[3] = 0;
local_9 = 1;
}
else {
if (*(char *)(local_20 + 0x44c) == '\0') {
store_rand_lsn(*local_18);
}
maria_page_crc_set_normal(local_18);
__src = (int3 *)*local_18;
uVar2 = local_18[1];
uVar3 = *__src;
uVar1 = *(int4 *)((long)__src + 3);
bVar4 = *(byte *)((long)__src + 7) & 7;
if (bVar4 < 3) {
local_6c = *(int *)(local_20 + 0xc18) + 0xc;
}
else {
local_6c = *(int *)(local_20 + 0xc18) + 8;
}
uVar5 = 8;
if (bVar4 < 3) {
uVar5 = 0xc;
}
memcpy(__dest,__src,(ulong)local_6c);
iVar6 = ma_encrypt(local_20,*(int8 *)(local_20 + 0xc20),(long)__src + (ulong)local_6c,
(long)__dest + (ulong)local_6c,local_24 - (local_6c + 4),uVar2 & 0xffffffff,
(ulong)CONCAT34(uVar3,uVar1),&local_28);
if (iVar6 == 0) {
*(int4 *)((long)__dest + ((ulong)local_24 - 4)) =
*(int4 *)((long)__src + ((ulong)local_24 - 4));
*(int4 *)((long)__dest + (ulong)uVar5) = local_28;
local_18[3] = *local_18;
*local_18 = __dest;
local_9 = 0;
}
else {
local_9 = 1;
}
}
return local_9;
}
| |
41,023 | minja::SliceExpr::SliceExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&) | monkey531[P]llama/common/minja.hpp | SliceExpr(const Location & location, std::shared_ptr<Expression> && s, std::shared_ptr<Expression> && e)
: Expression(location), start(std::move(s)), end(std::move(e)) {} | O2 | cpp | minja::SliceExpr::SliceExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&):
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
callq 0x6759c
leaq 0x93856(%rip), %rax # 0x1026e8
addq $0x10, %rax
movq %rax, (%r15)
andq $0x0, 0x28(%r15)
movups (%r14), %xmm0
andq $0x0, 0x8(%r14)
movups %xmm0, 0x20(%r15)
andq $0x0, (%r14)
andq $0x0, 0x38(%r15)
movups (%rbx), %xmm0
andq $0x0, 0x8(%rbx)
movups %xmm0, 0x30(%r15)
andq $0x0, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
| _ZN5minja9SliceExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEES7_:
push r15
push r14
push rbx
mov rbx, rcx
mov r14, rdx
mov r15, rdi
call _ZN5minja10ExpressionC2ERKNS_8LocationE; minja::Expression::Expression(minja::Location const&)
lea rax, _ZTVN5minja9SliceExprE; `vtable for'minja::SliceExpr
add rax, 10h
mov [r15], rax
and qword ptr [r15+28h], 0
movups xmm0, xmmword ptr [r14]
and qword ptr [r14+8], 0
movups xmmword ptr [r15+20h], xmm0
and qword ptr [r14], 0
and qword ptr [r15+38h], 0
movups xmm0, xmmword ptr [rbx]
and qword ptr [rbx+8], 0
movups xmmword ptr [r15+30h], xmm0
and qword ptr [rbx], 0
pop rbx
pop r14
pop r15
retn
| long long * minja::SliceExpr::SliceExpr(long long a1, _QWORD *a2, __int128 *a3, __int128 *a4)
{
long long *result; // rax
__int128 v7; // xmm0
__int128 v8; // xmm0
minja::Expression::Expression((_QWORD *)a1, a2);
result = &`vtable for'minja::SliceExpr + 2;
*(_QWORD *)a1 = &`vtable for'minja::SliceExpr + 2;
*(_QWORD *)(a1 + 40) = 0LL;
v7 = *a3;
*((_QWORD *)a3 + 1) = 0LL;
*(_OWORD *)(a1 + 32) = v7;
*(_QWORD *)a3 = 0LL;
*(_QWORD *)(a1 + 56) = 0LL;
v8 = *a4;
*((_QWORD *)a4 + 1) = 0LL;
*(_OWORD *)(a1 + 48) = v8;
*(_QWORD *)a4 = 0LL;
return result;
}
| SliceExpr:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RCX
MOV R14,RDX
MOV R15,RDI
CALL 0x0016759c
LEA RAX,[0x2026e8]
ADD RAX,0x10
MOV qword ptr [R15],RAX
AND qword ptr [R15 + 0x28],0x0
MOVUPS XMM0,xmmword ptr [R14]
AND qword ptr [R14 + 0x8],0x0
MOVUPS xmmword ptr [R15 + 0x20],XMM0
AND qword ptr [R14],0x0
AND qword ptr [R15 + 0x38],0x0
MOVUPS XMM0,xmmword ptr [RBX]
AND qword ptr [RBX + 0x8],0x0
MOVUPS xmmword ptr [R15 + 0x30],XMM0
AND qword ptr [RBX],0x0
POP RBX
POP R14
POP R15
RET
|
/* minja::SliceExpr::SliceExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&,
std::shared_ptr<minja::Expression>&&) */
void __thiscall
minja::SliceExpr::SliceExpr
(SliceExpr *this,Location *param_1,shared_ptr *param_2,shared_ptr *param_3)
{
int8 uVar1;
Expression::Expression((Expression *)this,param_1);
*(int ***)this = &PTR_do_evaluate_002026f8;
*(int8 *)(this + 0x28) = 0;
uVar1 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = 0;
*(int8 *)(this + 0x20) = *(int8 *)param_2;
*(int8 *)(this + 0x28) = uVar1;
*(int8 *)param_2 = 0;
*(int8 *)(this + 0x38) = 0;
uVar1 = *(int8 *)(param_3 + 8);
*(int8 *)(param_3 + 8) = 0;
*(int8 *)(this + 0x30) = *(int8 *)param_3;
*(int8 *)(this + 0x38) = uVar1;
*(int8 *)param_3 = 0;
return;
}
| |
41,024 | ma_read_cache | eloqsql/storage/maria/ma_cache.c | my_bool _ma_read_cache(MARIA_HA *handler, IO_CACHE *info, uchar *buff,
my_off_t pos, size_t length, uint flag)
{
size_t read_length,in_buff_length;
my_off_t offset;
uchar *in_buff_pos;
DBUG_ENTER("_ma_read_cache");
DBUG_ASSERT(!(info->myflags & MY_ENCRYPT));
if (unlikely(pos >= info->end_of_file) && (flag & READING_HEADER))
DBUG_RETURN(-1);
if (pos < info->pos_in_file)
{
read_length=length;
if ((my_off_t) read_length > (my_off_t) (info->pos_in_file-pos))
read_length=(uint) (info->pos_in_file-pos);
info->seek_not_done=1;
if (mysql_file_pread(info->file,buff,read_length,pos,MYF(MY_NABP)))
DBUG_RETURN(1);
if (!(length-=read_length))
DBUG_RETURN(0);
pos+=read_length;
buff+=read_length;
}
if (pos >= info->pos_in_file &&
(offset= (my_off_t) (pos - info->pos_in_file)) <
(my_off_t) (info->read_end - info->request_pos))
{
in_buff_pos=info->request_pos+(uint) offset;
in_buff_length= MY_MIN(length,(size_t) (info->read_end-in_buff_pos));
memcpy(buff,info->request_pos+(uint) offset,(size_t) in_buff_length);
if (!(length-=in_buff_length))
DBUG_RETURN(0);
pos+=in_buff_length;
buff+=in_buff_length;
}
else
in_buff_length=0;
if (flag & READING_NEXT)
{
if (pos != (info->pos_in_file +
(uint) (info->read_end - info->request_pos)))
{
info->pos_in_file=pos; /* Force start here */
info->read_pos=info->read_end=info->request_pos; /* Everything used */
info->seek_not_done=1;
}
else
info->read_pos=info->read_end; /* All block used */
if (!_my_b_read(info,buff,length))
DBUG_RETURN(0);
read_length=info->error;
}
else
{
info->seek_not_done=1;
if ((read_length=mysql_file_pread(info->file,buff,length,pos,MYF(0))) == length)
DBUG_RETURN(0);
}
if (!(flag & READING_HEADER) || (int) read_length == -1 ||
read_length+in_buff_length < 3)
{
if ((flag & READING_HEADER) && read_length + in_buff_length == 0)
DBUG_RETURN(-1); /* End of file */
DBUG_PRINT("error",
("Error %d reading next-multi-part block (Got %d of %d bytes)",
my_errno, (int) read_length, (int) length));
if (!my_errno || my_errno == HA_ERR_FILE_TOO_SHORT)
{
if (!handler->in_check_table)
_ma_set_fatal_error(handler, HA_ERR_FILE_TOO_SHORT);
if (!my_errno)
my_errno= HA_ERR_WRONG_IN_RECORD;
}
DBUG_RETURN(1);
}
bzero(buff+read_length,MARIA_BLOCK_INFO_HEADER_LENGTH - in_buff_length -
read_length);
DBUG_RETURN(0);
} | O3 | c | ma_read_cache:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %r9d, -0x2c(%rbp)
movq %rcx, %r13
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, -0x50(%rbp)
cmpq %rcx, 0x8(%rsi)
jbe 0x6fdd1
movq (%rbx), %rax
movq %rax, %rcx
subq %r13, %rcx
jbe 0x6fc3e
cmpq %r8, %rcx
movl %ecx, %r15d
movq %r8, -0x48(%rbp)
cmovaeq %r8, %r15
movl $0x1, 0xe0(%rbx)
movl 0xd4(%rbx), %r14d
leaq 0x316437(%rip), %rax # 0x386010
movq (%rax), %rax
leaq -0x98(%rbp), %rdi
movl %r14d, %esi
movl $0x6, %edx
callq *0x158(%rax)
testq %rax, %rax
movq %r12, -0x38(%rbp)
jne 0x6fde0
movl $0x4, %r8d
movl %r14d, %edi
movq %r12, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq 0xa0664
movq %rax, %r12
movb $0x1, %r14b
testq %r12, %r12
movq -0x38(%rbp), %r12
movq -0x48(%rbp), %r8
jne 0x6fd63
subq %r15, %r8
je 0x6fd60
addq %r15, %r13
addq %r15, %r12
movq (%rbx), %rax
movq %r13, %rcx
subq %rax, %rcx
jb 0x6fc8a
movq 0x18(%rbx), %r15
movq 0x28(%rbx), %rsi
movq %r15, %rax
subq %rsi, %rax
cmpq %rax, %rcx
jae 0x6fc8a
movl %ecx, %eax
addq %rax, %rsi
subq %rsi, %r15
cmpq %r15, %r8
cmovbq %r8, %r15
movq %r12, %rdi
movq %r15, %rdx
movq %r8, %r14
callq 0x29080
movq %r14, %r8
subq %r15, %r8
je 0x6fd60
addq %r15, %r13
addq %r15, %r12
jmp 0x6fc8d
xorl %r15d, %r15d
testb $0x1, -0x2c(%rbp)
jne 0x6fcea
movq %r8, %r14
movl $0x1, 0xe0(%rbx)
movl 0xd4(%rbx), %ebx
leaq 0x316363(%rip), %rax # 0x386010
movq (%rax), %rax
leaq -0x98(%rbp), %rdi
movl %ebx, %esi
movl $0x6, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x6fe45
movl %ebx, %edi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
xorl %r8d, %r8d
callq 0xa0664
movq %rax, %rbx
cmpq %r14, %rbx
jne 0x6fd2f
jmp 0x6fd60
movq 0x18(%rbx), %rcx
movq 0x28(%rbx), %rax
movl %ecx, %edx
subl %eax, %edx
addq (%rbx), %rdx
cmpq %rdx, %r13
je 0x6fd12
movq %r13, (%rbx)
movq %rax, 0x18(%rbx)
movl $0x1, 0xe0(%rbx)
movq %rax, %rcx
movq %rcx, 0x10(%rbx)
movq %rbx, %rdi
movq %r12, %rsi
movq %r8, %rdx
callq 0x95622
testl %eax, %eax
je 0x6fd60
movslq 0xe4(%rbx), %rbx
testb $0x2, -0x2c(%rbp)
je 0x6fd75
movl %ebx, %eax
cmpl $-0x1, %eax
je 0x6fd75
leaq (%rbx,%r15), %rax
cmpq $0x2, %rax
jbe 0x6fd75
addq %rbx, %r12
movl $0x14, %edx
subq %rax, %rdx
xorl %r14d, %r14d
movq %r12, %rdi
xorl %esi, %esi
callq 0x292a0
jmp 0x6fd63
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb $0x2, -0x2c(%rbp)
je 0x6fd86
negq %r15
movb $-0x1, %r14b
cmpq %r15, %rbx
je 0x6fd63
callq 0xa1b26
cmpl $0x0, (%rax)
je 0x6fda0
callq 0xa1b26
movb $0x1, %r14b
cmpl $0xaf, (%rax)
jne 0x6fd63
movq -0x50(%rbp), %rdi
cmpb $0x0, 0x683(%rdi)
jne 0x6fdb7
movl $0xaf, %esi
callq 0x3fcb8
callq 0xa1b26
movb $0x1, %r14b
cmpl $0x0, (%rax)
jne 0x6fd63
callq 0xa1b26
movl $0x7f, (%rax)
jmp 0x6fd63
movb $-0x1, %r14b
testb $0x2, -0x2c(%rbp)
je 0x6fba4
jmp 0x6fd63
movq %rax, %rcx
leaq 0x316226(%rip), %rax # 0x386010
movq (%rax), %rax
leaq 0x6aae3(%rip), %rdx # 0xda8d7
movq %rcx, -0x40(%rbp)
movq %rcx, %rdi
movq %r15, %rsi
movl $0x38, %ecx
callq *0x210(%rax)
movl $0x4, %r8d
movl %r14d, %edi
movq %r12, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq 0xa0664
movq %rax, %r12
xorl %esi, %esi
testq %rax, %rax
cmoveq %r15, %rsi
leaq 0x3161dd(%rip), %rax # 0x386010
movq (%rax), %rax
movq -0x40(%rbp), %rdi
callq *0x218(%rax)
jmp 0x6fc18
movq %rax, %rcx
leaq 0x3161c1(%rip), %rax # 0x386010
movq (%rax), %rax
leaq 0x6aa7e(%rip), %rdx # 0xda8d7
movq %rcx, -0x38(%rbp)
movq %rcx, %rdi
movq %r14, %rsi
movl $0x5f, %ecx
callq *0x210(%rax)
movl %ebx, %edi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
xorl %r8d, %r8d
callq 0xa0664
movq %rax, %rbx
cmpq $-0x1, %rax
movl $0x0, %esi
cmovneq %rax, %rsi
leaq 0x316178(%rip), %rax # 0x386010
movq (%rax), %rax
movq -0x38(%rbp), %rdi
callq *0x218(%rax)
jmp 0x6fce3
nop
| _ma_read_cache:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov [rbp+var_2C], r9d
mov r13, rcx
mov r12, rdx
mov rbx, rsi
mov [rbp+var_50], rdi
cmp [rsi+8], rcx
jbe loc_6FDD1
loc_6FBA4:
mov rax, [rbx]
mov rcx, rax
sub rcx, r13
jbe loc_6FC3E
cmp rcx, r8
mov r15d, ecx
mov [rbp+var_48], r8
cmovnb r15, r8
mov dword ptr [rbx+0E0h], 1
mov r14d, [rbx+0D4h]
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_98]
mov esi, r14d
mov edx, 6
call qword ptr [rax+158h]
test rax, rax
mov [rbp+var_38], r12
jnz loc_6FDE0
mov r8d, 4
mov edi, r14d
mov rsi, r12
mov rdx, r15
mov rcx, r13
call my_pread
mov r12, rax
loc_6FC18:
mov r14b, 1
test r12, r12
mov r12, [rbp+var_38]
mov r8, [rbp+var_48]
jnz loc_6FD63
sub r8, r15
jz loc_6FD60
add r13, r15
add r12, r15
mov rax, [rbx]
loc_6FC3E:
mov rcx, r13
sub rcx, rax
jb short loc_6FC8A
mov r15, [rbx+18h]
mov rsi, [rbx+28h]
mov rax, r15
sub rax, rsi
cmp rcx, rax
jnb short loc_6FC8A
mov eax, ecx
add rsi, rax
sub r15, rsi
cmp r8, r15
cmovb r15, r8
mov rdi, r12
mov rdx, r15
mov r14, r8
call _memcpy
mov r8, r14
sub r8, r15
jz loc_6FD60
add r13, r15
add r12, r15
jmp short loc_6FC8D
loc_6FC8A:
xor r15d, r15d
loc_6FC8D:
test byte ptr [rbp+var_2C], 1
jnz short loc_6FCEA
mov r14, r8
mov dword ptr [rbx+0E0h], 1
mov ebx, [rbx+0D4h]
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_98]
mov esi, ebx
mov edx, 6
call qword ptr [rax+158h]
test rax, rax
jnz loc_6FE45
mov edi, ebx
mov rsi, r12
mov rdx, r14
mov rcx, r13
xor r8d, r8d
call my_pread
mov rbx, rax
loc_6FCE3:
cmp rbx, r14
jnz short loc_6FD2F
jmp short loc_6FD60
loc_6FCEA:
mov rcx, [rbx+18h]
mov rax, [rbx+28h]
mov edx, ecx
sub edx, eax
add rdx, [rbx]
cmp r13, rdx
jz short loc_6FD12
mov [rbx], r13
mov [rbx+18h], rax
mov dword ptr [rbx+0E0h], 1
mov rcx, rax
loc_6FD12:
mov [rbx+10h], rcx
mov rdi, rbx
mov rsi, r12
mov rdx, r8
call _my_b_read
test eax, eax
jz short loc_6FD60
movsxd rbx, dword ptr [rbx+0E4h]
loc_6FD2F:
test byte ptr [rbp+var_2C], 2
jz short loc_6FD75
mov eax, ebx
cmp eax, 0FFFFFFFFh
jz short loc_6FD75
lea rax, [rbx+r15]
cmp rax, 2
jbe short loc_6FD75
add r12, rbx
mov edx, 14h
sub rdx, rax
xor r14d, r14d
mov rdi, r12
xor esi, esi
call _memset
jmp short loc_6FD63
loc_6FD60:
xor r14d, r14d
loc_6FD63:
mov eax, r14d
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_6FD75:
test byte ptr [rbp+var_2C], 2
jz short loc_6FD86
neg r15
mov r14b, 0FFh
cmp rbx, r15
jz short loc_6FD63
loc_6FD86:
call _my_thread_var
cmp dword ptr [rax], 0
jz short loc_6FDA0
call _my_thread_var
mov r14b, 1
cmp dword ptr [rax], 0AFh
jnz short loc_6FD63
loc_6FDA0:
mov rdi, [rbp+var_50]
cmp byte ptr [rdi+683h], 0
jnz short loc_6FDB7
mov esi, 0AFh
call _ma_set_fatal_error
loc_6FDB7:
call _my_thread_var
mov r14b, 1
cmp dword ptr [rax], 0
jnz short loc_6FD63
call _my_thread_var
mov dword ptr [rax], 7Fh
jmp short loc_6FD63
loc_6FDD1:
mov r14b, 0FFh
test byte ptr [rbp+var_2C], 2
jz loc_6FBA4
jmp short loc_6FD63
loc_6FDE0:
mov rcx, rax
lea rax, PSI_server
mov rax, [rax]
lea rdx, aWorkspaceLlm4b_33; "/workspace/llm4binary/github2025/eloqsq"...
mov [rbp+var_40], rcx
mov rdi, rcx
mov rsi, r15
mov ecx, 38h ; '8'
call qword ptr [rax+210h]
mov r8d, 4
mov edi, r14d
mov rsi, r12
mov rdx, r15
mov rcx, r13
call my_pread
mov r12, rax
xor esi, esi
test rax, rax
cmovz rsi, r15
lea rax, PSI_server
mov rax, [rax]
mov rdi, [rbp+var_40]
call qword ptr [rax+218h]
jmp loc_6FC18
loc_6FE45:
mov rcx, rax
lea rax, PSI_server
mov rax, [rax]
lea rdx, aWorkspaceLlm4b_33; "/workspace/llm4binary/github2025/eloqsq"...
mov [rbp+var_38], rcx
mov rdi, rcx
mov rsi, r14
mov ecx, 5Fh ; '_'
call qword ptr [rax+210h]
mov edi, ebx
mov rsi, r12
mov rdx, r14
mov rcx, r13
xor r8d, r8d
call my_pread
mov rbx, rax
cmp rax, 0FFFFFFFFFFFFFFFFh
mov esi, 0
cmovnz rsi, rax
lea rax, PSI_server
mov rax, [rax]
mov rdi, [rbp+var_38]
call qword ptr [rax+218h]
jmp loc_6FCE3
| long long ma_read_cache(_DWORD *a1, long long *a2, long long a3, unsigned long long a4, unsigned long long a5, int a6)
{
unsigned long long v6; // r14
unsigned long long v7; // r13
unsigned long long v10; // rax
unsigned long long v11; // rcx
unsigned long long v12; // r15
long long v13; // rax
long long v14; // r12
unsigned long long v15; // rcx
long long v16; // rsi
long long v17; // rsi
unsigned long long v18; // r15
unsigned int v19; // ebx
long long v20; // rax
long long v21; // rdi
long long v22; // rbx
long long v23; // rcx
long long v24; // rax
long long v26; // rdx
long long v27; // rcx
long long v28; // r8
int v29; // r9d
_DWORD *v30; // rdi
unsigned long long v31; // rsi
long long v32; // rax
long long v33; // rsi
_BYTE v34[72]; // [rsp+8h] [rbp-98h] BYREF
_DWORD *v35; // [rsp+50h] [rbp-50h]
unsigned long long v36; // [rsp+58h] [rbp-48h]
long long v37; // [rsp+60h] [rbp-40h]
long long v38; // [rsp+68h] [rbp-38h]
int v39; // [rsp+74h] [rbp-2Ch]
v39 = a6;
v7 = a4;
v35 = a1;
if ( a2[1] <= a4 )
{
LOBYTE(v6) = -1;
if ( (v39 & 2) != 0 )
return (unsigned int)v6;
}
v10 = *a2;
v11 = *a2 - a4;
if ( *a2 > v7 )
{
v12 = (unsigned int)v11;
v36 = a5;
if ( v11 >= a5 )
v12 = a5;
*((_DWORD *)a2 + 56) = 1;
LODWORD(v6) = *((_DWORD *)a2 + 53);
v13 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v34, (unsigned int)v6, 6LL);
v38 = a3;
if ( v13 )
{
v37 = v13;
((void ( *)(long long, unsigned long long, const char *, long long))PSI_server[66])(
v13,
v12,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_cache.c",
56LL);
v14 = my_pread((unsigned int)v6, a3, v12, v7, 4LL);
v31 = 0LL;
if ( !v14 )
v31 = v12;
((void ( *)(long long, unsigned long long))PSI_server[67])(v37, v31);
}
else
{
v14 = my_pread((unsigned int)v6, a3, v12, v7, 4LL);
}
LOBYTE(v6) = 1;
if ( v14 )
return (unsigned int)v6;
a5 = v36 - v12;
if ( v36 == v12 )
{
LABEL_30:
LODWORD(v6) = 0;
return (unsigned int)v6;
}
v7 += v12;
a3 = v12 + v38;
v10 = *a2;
}
v15 = v7 - v10;
if ( v7 < v10 || (v16 = a2[5], v15 >= a2[3] - v16) )
{
v18 = 0LL;
}
else
{
v17 = (unsigned int)v15 + v16;
v18 = a2[3] - v17;
if ( a5 < v18 )
v18 = a5;
v6 = a5;
memcpy(a3, v17, v18);
a5 = v6 - v18;
if ( v6 == v18 )
goto LABEL_30;
v7 += v18;
a3 += v18;
}
if ( (v39 & 1) != 0 )
{
v23 = a2[3];
v24 = a2[5];
if ( v7 != *a2 + (unsigned int)(v23 - v24) )
{
*a2 = v7;
a2[3] = v24;
*((_DWORD *)a2 + 56) = 1;
v23 = v24;
}
a2[2] = v23;
v21 = (long long)a2;
if ( !(unsigned int)my_b_read(a2, a3, a5) )
goto LABEL_30;
v22 = *((int *)a2 + 57);
}
else
{
v6 = a5;
*((_DWORD *)a2 + 56) = 1;
v19 = *((_DWORD *)a2 + 53);
v20 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v34, v19, 6LL);
if ( v20 )
{
v38 = v20;
((void ( *)(long long, unsigned long long, const char *, long long))PSI_server[66])(
v20,
v6,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_cache.c",
95LL);
v32 = my_pread(v19, a3, v6, v7, 0LL);
v22 = v32;
v33 = 0LL;
if ( v32 != -1 )
v33 = v32;
v21 = v38;
((void ( *)(long long, long long))PSI_server[67])(v38, v33);
}
else
{
v21 = v19;
v22 = my_pread(v19, a3, v6, v7, 0LL);
}
if ( v22 == v6 )
goto LABEL_30;
}
if ( (v39 & 2) == 0 || (_DWORD)v22 == -1 || v22 + v18 <= 2 )
{
if ( (v39 & 2) == 0 || (LOBYTE(v6) = -1, v22 != -(long long)v18) )
{
if ( !*(_DWORD *)my_thread_var(v21) || (LOBYTE(v6) = 1, *(_DWORD *)my_thread_var(v21) == 175) )
{
v30 = v35;
if ( !*((_BYTE *)v35 + 1667) )
ma_set_fatal_error(v35, 175, v26, v27, v28, v29);
LOBYTE(v6) = 1;
if ( !*(_DWORD *)my_thread_var(v30) )
*(_DWORD *)my_thread_var(v30) = 127;
}
}
}
else
{
LODWORD(v6) = 0;
memset(v22 + a3, 0LL, 20 - (v22 + v18));
}
return (unsigned int)v6;
}
| _ma_read_cache:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV dword ptr [RBP + -0x2c],R9D
MOV R13,RCX
MOV R12,RDX
MOV RBX,RSI
MOV qword ptr [RBP + -0x50],RDI
CMP qword ptr [RSI + 0x8],RCX
JBE 0x0016fdd1
LAB_0016fba4:
MOV RAX,qword ptr [RBX]
MOV RCX,RAX
SUB RCX,R13
JBE 0x0016fc3e
CMP RCX,R8
MOV R15D,ECX
MOV qword ptr [RBP + -0x48],R8
CMOVNC R15,R8
MOV dword ptr [RBX + 0xe0],0x1
MOV R14D,dword ptr [RBX + 0xd4]
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x98]
MOV ESI,R14D
MOV EDX,0x6
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
MOV qword ptr [RBP + -0x38],R12
JNZ 0x0016fde0
MOV R8D,0x4
MOV EDI,R14D
MOV RSI,R12
MOV RDX,R15
MOV RCX,R13
CALL 0x001a0664
MOV R12,RAX
LAB_0016fc18:
MOV R14B,0x1
TEST R12,R12
MOV R12,qword ptr [RBP + -0x38]
MOV R8,qword ptr [RBP + -0x48]
JNZ 0x0016fd63
SUB R8,R15
JZ 0x0016fd60
ADD R13,R15
ADD R12,R15
MOV RAX,qword ptr [RBX]
LAB_0016fc3e:
MOV RCX,R13
SUB RCX,RAX
JC 0x0016fc8a
MOV R15,qword ptr [RBX + 0x18]
MOV RSI,qword ptr [RBX + 0x28]
MOV RAX,R15
SUB RAX,RSI
CMP RCX,RAX
JNC 0x0016fc8a
MOV EAX,ECX
ADD RSI,RAX
SUB R15,RSI
CMP R8,R15
CMOVC R15,R8
MOV RDI,R12
MOV RDX,R15
MOV R14,R8
CALL 0x00129080
MOV R8,R14
SUB R8,R15
JZ 0x0016fd60
ADD R13,R15
ADD R12,R15
JMP 0x0016fc8d
LAB_0016fc8a:
XOR R15D,R15D
LAB_0016fc8d:
TEST byte ptr [RBP + -0x2c],0x1
JNZ 0x0016fcea
MOV R14,R8
MOV dword ptr [RBX + 0xe0],0x1
MOV EBX,dword ptr [RBX + 0xd4]
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x98]
MOV ESI,EBX
MOV EDX,0x6
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x0016fe45
MOV EDI,EBX
MOV RSI,R12
MOV RDX,R14
MOV RCX,R13
XOR R8D,R8D
CALL 0x001a0664
MOV RBX,RAX
LAB_0016fce3:
CMP RBX,R14
JNZ 0x0016fd2f
JMP 0x0016fd60
LAB_0016fcea:
MOV RCX,qword ptr [RBX + 0x18]
MOV RAX,qword ptr [RBX + 0x28]
MOV EDX,ECX
SUB EDX,EAX
ADD RDX,qword ptr [RBX]
CMP R13,RDX
JZ 0x0016fd12
MOV qword ptr [RBX],R13
MOV qword ptr [RBX + 0x18],RAX
MOV dword ptr [RBX + 0xe0],0x1
MOV RCX,RAX
LAB_0016fd12:
MOV qword ptr [RBX + 0x10],RCX
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R8
CALL 0x00195622
TEST EAX,EAX
JZ 0x0016fd60
MOVSXD RBX,dword ptr [RBX + 0xe4]
LAB_0016fd2f:
TEST byte ptr [RBP + -0x2c],0x2
JZ 0x0016fd75
MOV EAX,EBX
CMP EAX,-0x1
JZ 0x0016fd75
LEA RAX,[RBX + R15*0x1]
CMP RAX,0x2
JBE 0x0016fd75
ADD R12,RBX
MOV EDX,0x14
SUB RDX,RAX
XOR R14D,R14D
MOV RDI,R12
XOR ESI,ESI
CALL 0x001292a0
JMP 0x0016fd63
LAB_0016fd60:
XOR R14D,R14D
LAB_0016fd63:
MOV EAX,R14D
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0016fd75:
TEST byte ptr [RBP + -0x2c],0x2
JZ 0x0016fd86
NEG R15
MOV R14B,0xff
CMP RBX,R15
JZ 0x0016fd63
LAB_0016fd86:
CALL 0x001a1b26
CMP dword ptr [RAX],0x0
JZ 0x0016fda0
CALL 0x001a1b26
MOV R14B,0x1
CMP dword ptr [RAX],0xaf
JNZ 0x0016fd63
LAB_0016fda0:
MOV RDI,qword ptr [RBP + -0x50]
CMP byte ptr [RDI + 0x683],0x0
JNZ 0x0016fdb7
MOV ESI,0xaf
CALL 0x0013fcb8
LAB_0016fdb7:
CALL 0x001a1b26
MOV R14B,0x1
CMP dword ptr [RAX],0x0
JNZ 0x0016fd63
CALL 0x001a1b26
MOV dword ptr [RAX],0x7f
JMP 0x0016fd63
LAB_0016fdd1:
MOV R14B,0xff
TEST byte ptr [RBP + -0x2c],0x2
JZ 0x0016fba4
JMP 0x0016fd63
LAB_0016fde0:
MOV RCX,RAX
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDX,[0x1da8d7]
MOV qword ptr [RBP + -0x40],RCX
MOV RDI,RCX
MOV RSI,R15
MOV ECX,0x38
CALL qword ptr [RAX + 0x210]
MOV R8D,0x4
MOV EDI,R14D
MOV RSI,R12
MOV RDX,R15
MOV RCX,R13
CALL 0x001a0664
MOV R12,RAX
XOR ESI,ESI
TEST RAX,RAX
CMOVZ RSI,R15
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RBP + -0x40]
CALL qword ptr [RAX + 0x218]
JMP 0x0016fc18
LAB_0016fe45:
MOV RCX,RAX
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDX,[0x1da8d7]
MOV qword ptr [RBP + -0x38],RCX
MOV RDI,RCX
MOV RSI,R14
MOV ECX,0x5f
CALL qword ptr [RAX + 0x210]
MOV EDI,EBX
MOV RSI,R12
MOV RDX,R14
MOV RCX,R13
XOR R8D,R8D
CALL 0x001a0664
MOV RBX,RAX
CMP RAX,-0x1
MOV ESI,0x0
CMOVNZ RSI,RAX
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RBP + -0x38]
CALL qword ptr [RAX + 0x218]
JMP 0x0016fce3
|
ulong _ma_read_cache(long param_1,ulong *param_2,void *param_3,ulong param_4,ulong param_5,
uint param_6)
{
int4 uVar1;
int iVar2;
long lVar3;
ulong uVar4;
ulong uVar5;
int *piVar6;
int4 *puVar7;
ulong uVar8;
ulong uVar9;
void *pvVar10;
ulong unaff_R14;
int1 local_a0 [72];
long local_58;
ulong local_50;
long local_48;
void *local_40;
uint local_34;
if ((param_2[1] <= param_4) &&
(unaff_R14 = CONCAT71((int7)(unaff_R14 >> 8),0xff), (param_6 & 2) != 0)) goto LAB_0016fd63;
uVar4 = *param_2;
uVar8 = uVar4 - param_4;
local_58 = param_1;
local_34 = param_6;
if (uVar4 < param_4 || uVar8 == 0) {
LAB_0016fc3e:
if (param_4 < uVar4) {
LAB_0016fc8a:
uVar8 = 0;
uVar4 = param_5;
}
else {
if (param_2[3] - param_2[5] <= param_4 - uVar4) goto LAB_0016fc8a;
pvVar10 = (void *)(param_2[5] + (param_4 - uVar4 & 0xffffffff));
uVar8 = param_2[3] - (long)pvVar10;
if (param_5 < uVar8) {
uVar8 = param_5;
}
memcpy(param_3,pvVar10,uVar8);
if (param_5 - uVar8 == 0) goto LAB_0016fd60;
param_4 = param_4 + uVar8;
param_3 = (void *)((long)param_3 + uVar8);
uVar4 = param_5 - uVar8;
unaff_R14 = param_5;
}
if ((local_34 & 1) == 0) {
*(int4 *)(param_2 + 0x1c) = 1;
uVar1 = *(int4 *)((long)param_2 + 0xd4);
pvVar10 = (void *)(**(code **)(PSI_server + 0x158))(local_a0,uVar1,6);
if (pvVar10 == (void *)0x0) {
uVar5 = my_pread(uVar1,param_3,uVar4,param_4,0);
}
else {
local_40 = pvVar10;
(**(code **)(PSI_server + 0x210))
(pvVar10,uVar4,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_cache.c"
,0x5f);
uVar5 = my_pread(uVar1,param_3,uVar4,param_4,0);
(**(code **)(PSI_server + 0x218))(local_40);
}
unaff_R14 = uVar4;
if (uVar5 != uVar4) {
LAB_0016fd2f:
if ((((local_34 & 2) == 0) || ((int)uVar5 == -1)) || (uVar5 + uVar8 < 3)) {
if (((local_34 & 2) == 0) ||
(unaff_R14 = CONCAT71((int7)(unaff_R14 >> 8),0xff), uVar5 != -uVar8)) {
piVar6 = (int *)_my_thread_var();
if (*piVar6 != 0) {
piVar6 = (int *)_my_thread_var();
unaff_R14 = CONCAT71((int7)(unaff_R14 >> 8),1);
if (*piVar6 != 0xaf) goto LAB_0016fd63;
}
if (*(char *)(local_58 + 0x683) == '\0') {
_ma_set_fatal_error(local_58,0xaf);
}
piVar6 = (int *)_my_thread_var();
unaff_R14 = CONCAT71((int7)(unaff_R14 >> 8),1);
if (*piVar6 == 0) {
puVar7 = (int4 *)_my_thread_var();
*puVar7 = 0x7f;
}
}
}
else {
unaff_R14 = 0;
memset((void *)((long)param_3 + uVar5),0,0x14 - (uVar5 + uVar8));
}
goto LAB_0016fd63;
}
}
else {
uVar5 = param_2[5];
uVar9 = param_2[3];
if (param_4 != (ulong)(uint)((int)param_2[3] - (int)uVar5) + *param_2) {
*param_2 = param_4;
param_2[3] = uVar5;
*(int4 *)(param_2 + 0x1c) = 1;
uVar9 = uVar5;
}
param_2[2] = uVar9;
iVar2 = _my_b_read(param_2,param_3,uVar4);
if (iVar2 != 0) {
uVar5 = (ulong)*(int *)((long)param_2 + 0xe4);
goto LAB_0016fd2f;
}
}
}
else {
uVar4 = uVar8 & 0xffffffff;
if (param_5 <= uVar8) {
uVar4 = param_5;
}
*(int4 *)(param_2 + 0x1c) = 1;
uVar1 = *(int4 *)((long)param_2 + 0xd4);
local_50 = param_5;
lVar3 = (**(code **)(PSI_server + 0x158))(local_a0,uVar1,6);
local_40 = param_3;
if (lVar3 == 0) {
lVar3 = my_pread(uVar1,param_3,uVar4,param_4,4);
}
else {
local_48 = lVar3;
(**(code **)(PSI_server + 0x210))
(lVar3,uVar4,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_cache.c",
0x38);
lVar3 = my_pread(uVar1,param_3,uVar4,param_4,4);
uVar8 = 0;
if (lVar3 == 0) {
uVar8 = uVar4;
}
(**(code **)(PSI_server + 0x218))(local_48,uVar8);
}
unaff_R14 = CONCAT71((uint7)(uint3)((uint)uVar1 >> 8),1);
if (lVar3 != 0) goto LAB_0016fd63;
param_5 = local_50 - uVar4;
if (param_5 != 0) {
param_4 = param_4 + uVar4;
param_3 = (void *)((long)local_40 + uVar4);
uVar4 = *param_2;
goto LAB_0016fc3e;
}
}
LAB_0016fd60:
unaff_R14 = 0;
LAB_0016fd63:
return unaff_R14 & 0xffffffff;
}
| |
41,025 | unsigned long coro::thread_pool::resume<std::vector<std::__n4861::coroutine_handle<void>, std::allocator<std::__n4861::coroutine_handle<void>>>>(std::vector<std::__n4861::coroutine_handle<void>, std::allocator<std::__n4861::coroutine_handle<void>>> const&) | AlayaLite/build_O3/_deps/libcoro-src/include/coro/thread_pool.hpp | auto resume(const range_type& handles) noexcept -> uint64_t
{
m_size.fetch_add(std::size(handles), std::memory_order::release);
size_t null_handles{0};
{
std::scoped_lock lk{m_wait_mutex};
for (const auto& handle : handles)
{
if (handle != nullptr) [[likely]]
{
m_queue.emplace_back(handle);
}
else
{
++null_handles;
}
}
}
if (null_handles > 0)
{
m_size.fetch_sub(null_handles, std::memory_order::release);
}
uint64_t total = std::size(handles) - null_handles;
if (total >= m_threads.size())
{
m_wait_cv.notify_all();
}
else
{
for (uint64_t i = 0; i < total; ++i)
{
m_wait_cv.notify_one();
}
}
return total;
} | O3 | cpp | unsigned long coro::thread_pool::resume<std::vector<std::__n4861::coroutine_handle<void>, std::allocator<std::__n4861::coroutine_handle<void>>>>(std::vector<std::__n4861::coroutine_handle<void>, std::allocator<std::__n4861::coroutine_handle<void>>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %rax
subq (%rsi), %rax
sarq $0x3, %rax
lock
addq %rax, 0x120(%rdi)
leaq 0x68(%rdi), %r13
movq %r13, %rdi
callq 0x33a0
testl %eax, %eax
jne 0x827a
movq (%r14), %r12
movq 0x8(%r14), %r15
cmpq %r15, %r12
je 0x820f
movq %r13, (%rsp)
leaq 0xd0(%rbx), %r13
xorl %ebp, %ebp
cmpq $0x0, (%r12)
je 0x81f2
movq %r13, %rdi
movq %r12, %rsi
callq 0x85ee
addq $0x8, %r12
cmpq %r15, %r12
jne 0x81d5
jmp 0x81f7
incq %rbp
jmp 0x81e7
movq (%rsp), %rdi
callq 0x3220
testq %rbp, %rbp
je 0x8217
lock
subq %rbp, 0x120(%rbx)
jmp 0x8219
movq %r13, %rdi
callq 0x3220
xorl %ebp, %ebp
movq 0x8(%r14), %rax
subq (%r14), %rax
sarq $0x3, %rax
movq %rax, %r14
subq %rbp, %r14
movq 0x58(%rbx), %rcx
subq 0x50(%rbx), %rcx
sarq $0x3, %rcx
cmpq %rcx, %r14
jae 0x8259
cmpq %rbp, %rax
je 0x8268
addq $0x90, %rbx
movq %r14, %r15
movq %rbx, %rdi
callq 0x657c
decq %r15
jne 0x824a
jmp 0x8268
addq $0x90, %rbx
movq %rbx, %rdi
callq 0x64a2
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x31c0
jmp 0x8283
movq %rax, %rdi
callq 0x4bee
nop
| _ZN4coro11thread_pool6resumeITkNS_8concepts8range_ofINSt7__n486116coroutine_handleIvEEEESt6vectorIS6_SaIS6_EEEEmRKT_:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov rax, [rsi+8]
sub rax, [rsi]
sar rax, 3
lock add [rdi+120h], rax
lea r13, [rdi+68h]
mov rdi, r13
call _pthread_mutex_lock
test eax, eax
jnz loc_827A
mov r12, [r14]
mov r15, [r14+8]
cmp r12, r15
jz short loc_820F
mov [rsp+38h+var_38], r13
lea r13, [rbx+0D0h]
xor ebp, ebp
loc_81D5:
cmp qword ptr [r12], 0
jz short loc_81F2
mov rdi, r13
mov rsi, r12
call _ZNSt5dequeINSt7__n486116coroutine_handleIvEESaIS2_EE12emplace_backIJRKS2_EEERS2_DpOT_; std::deque<std::__n4861::coroutine_handle<void>>::emplace_back<std::__n4861::coroutine_handle<void> const&>(std::__n4861::coroutine_handle<void> const&)
loc_81E7:
add r12, 8
cmp r12, r15
jnz short loc_81D5
jmp short loc_81F7
loc_81F2:
inc rbp
jmp short loc_81E7
loc_81F7:
mov rdi, [rsp+38h+var_38]
call _pthread_mutex_unlock
test rbp, rbp
jz short loc_8217
lock sub [rbx+120h], rbp
jmp short loc_8219
loc_820F:
mov rdi, r13
call _pthread_mutex_unlock
loc_8217:
xor ebp, ebp
loc_8219:
mov rax, [r14+8]
sub rax, [r14]
sar rax, 3
mov r14, rax
sub r14, rbp
mov rcx, [rbx+58h]
sub rcx, [rbx+50h]
sar rcx, 3
cmp r14, rcx
jnb short loc_8259
cmp rax, rbp
jz short loc_8268
add rbx, 90h
mov r15, r14
loc_824A:
mov rdi, rbx; this
call _ZNSt3_V222condition_variable_any10notify_oneEv; std::_V2::condition_variable_any::notify_one(void)
dec r15
jnz short loc_824A
jmp short loc_8268
loc_8259:
add rbx, 90h
mov rdi, rbx; this
call _ZNSt3_V222condition_variable_any10notify_allEv; std::_V2::condition_variable_any::notify_all(void)
loc_8268:
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_827A:
mov edi, eax; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
jmp short $+2
loc_8283:
mov rdi, rax
call __clang_call_terminate
| unsigned long long ZN4coro11thread_pool6resumeITkNS_8concepts8range_ofINSt7__n486116coroutine_handleIvEEEESt6vectorIS6_SaIS6_EEEEmRKT_(
long long a1,
_QWORD *a2)
{
long long v2; // r13
int v3; // eax
_QWORD *v4; // r12
_QWORD *v5; // r15
unsigned long long v6; // rbp
unsigned long long v7; // r14
unsigned long long v8; // r15
_InterlockedAdd64((volatile signed long long *)(a1 + 288), (long long)(a2[1] - *a2) >> 3);
v2 = a1 + 104;
v3 = pthread_mutex_lock(a1 + 104);
if ( v3 )
std::__throw_system_error(v3);
v4 = (_QWORD *)*a2;
v5 = (_QWORD *)a2[1];
if ( (_QWORD *)*a2 == v5 )
{
pthread_mutex_unlock(v2);
}
else
{
v6 = 0LL;
do
{
if ( *v4 )
std::deque<std::__n4861::coroutine_handle<void>>::emplace_back<std::__n4861::coroutine_handle<void> const&>(
a1 + 208,
v4);
else
++v6;
++v4;
}
while ( v4 != v5 );
pthread_mutex_unlock(v2);
if ( v6 )
{
_InterlockedSub64((volatile signed long long *)(a1 + 288), v6);
goto LABEL_13;
}
}
v6 = 0LL;
LABEL_13:
v7 = ((long long)(a2[1] - *a2) >> 3) - v6;
if ( v7 >= (long long)(*(_QWORD *)(a1 + 88) - *(_QWORD *)(a1 + 80)) >> 3 )
{
std::_V2::condition_variable_any::notify_all((std::_V2::condition_variable_any *)(a1 + 144));
}
else if ( (long long)(a2[1] - *a2) >> 3 != v6 )
{
v8 = ((long long)(a2[1] - *a2) >> 3) - v6;
do
{
std::_V2::condition_variable_any::notify_one((std::_V2::condition_variable_any *)(a1 + 144));
--v8;
}
while ( v8 );
}
return v7;
}
| _ZN4coro11thread_pool6resumeITkNS_8concepts8range_ofINSt7__n486116coroutine_handleIvEEEESt6vectorIS6_SaIS6_EEEEmRKT_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x8]
SUB RAX,qword ptr [RSI]
SAR RAX,0x3
ADD.LOCK qword ptr [RDI + 0x120],RAX
LEA R13,[RDI + 0x68]
MOV RDI,R13
CALL 0x001033a0
TEST EAX,EAX
JNZ 0x0010827a
MOV R12,qword ptr [R14]
MOV R15,qword ptr [R14 + 0x8]
CMP R12,R15
JZ 0x0010820f
MOV qword ptr [RSP],R13
LEA R13,[RBX + 0xd0]
XOR EBP,EBP
LAB_001081d5:
CMP qword ptr [R12],0x0
JZ 0x001081f2
LAB_001081dc:
MOV RDI,R13
MOV RSI,R12
CALL 0x001085ee
LAB_001081e7:
ADD R12,0x8
CMP R12,R15
JNZ 0x001081d5
JMP 0x001081f7
LAB_001081f2:
INC RBP
JMP 0x001081e7
LAB_001081f7:
MOV RDI,qword ptr [RSP]
CALL 0x00103220
TEST RBP,RBP
JZ 0x00108217
SUB.LOCK qword ptr [RBX + 0x120],RBP
JMP 0x00108219
LAB_0010820f:
MOV RDI,R13
CALL 0x00103220
LAB_00108217:
XOR EBP,EBP
LAB_00108219:
MOV RAX,qword ptr [R14 + 0x8]
SUB RAX,qword ptr [R14]
SAR RAX,0x3
MOV R14,RAX
SUB R14,RBP
MOV RCX,qword ptr [RBX + 0x58]
SUB RCX,qword ptr [RBX + 0x50]
SAR RCX,0x3
CMP R14,RCX
JNC 0x00108259
CMP RAX,RBP
JZ 0x00108268
ADD RBX,0x90
MOV R15,R14
LAB_0010824a:
MOV RDI,RBX
CALL 0x0010657c
DEC R15
JNZ 0x0010824a
JMP 0x00108268
LAB_00108259:
ADD RBX,0x90
MOV RDI,RBX
CALL 0x001064a2
LAB_00108268:
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0010827a:
MOV EDI,EAX
CALL 0x001031c0
LAB_00108281:
JMP 0x00108283
LAB_00108283:
MOV RDI,RAX
CALL 0x00104bee
|
ulong _ZN4coro11thread_pool6resumeITkNS_8concepts8range_ofINSt7__n486116coroutine_handleIvEEEESt6vectorIS6_SaIS6_EEEEmRKT_
(long param_1,long *param_2)
{
pthread_mutex_t *__mutex;
long *plVar1;
int iVar2;
long lVar3;
int8 uVar4;
long lVar5;
long *plVar6;
ulong uVar7;
ulong uVar8;
LOCK();
*(long *)(param_1 + 0x120) = *(long *)(param_1 + 0x120) + (param_2[1] - *param_2 >> 3);
UNLOCK();
__mutex = (pthread_mutex_t *)(param_1 + 0x68);
iVar2 = pthread_mutex_lock(__mutex);
if (iVar2 != 0) {
/* try { // try from 0010827a to 00108280 has its CatchHandler @ 00108281 */
uVar4 = std::__throw_system_error(iVar2);
/* catch(type#1 @ 00000000) { ... } // from try @ 0010827a with catch @ 00108281
*/
/* catch(type#1 @ 00000000) { ... } // from try @ 001081dc with catch @ 00108283
*/
/* WARNING: Subroutine does not return */
__clang_call_terminate(uVar4);
}
plVar6 = (long *)*param_2;
plVar1 = (long *)param_2[1];
if (plVar6 == plVar1) {
pthread_mutex_unlock(__mutex);
}
else {
lVar5 = 0;
do {
if (*plVar6 == 0) {
lVar5 = lVar5 + 1;
}
else {
/* try { // try from 001081dc to 001081e6 has its CatchHandler @ 00108283 */
std::
deque<std::__n4861::coroutine_handle<void>,std::allocator<std::__n4861::coroutine_handle<void>>>
::emplace_back<std::__n4861::coroutine_handle<void>const&>
((deque<std::__n4861::coroutine_handle<void>,std::allocator<std::__n4861::coroutine_handle<void>>>
*)(param_1 + 0xd0),(coroutine_handle *)plVar6);
}
plVar6 = plVar6 + 1;
} while (plVar6 != plVar1);
pthread_mutex_unlock(__mutex);
if (lVar5 != 0) {
LOCK();
*(long *)(param_1 + 0x120) = *(long *)(param_1 + 0x120) - lVar5;
UNLOCK();
goto LAB_00108219;
}
}
lVar5 = 0;
LAB_00108219:
lVar3 = param_2[1] - *param_2 >> 3;
uVar7 = lVar3 - lVar5;
if (uVar7 < (ulong)(*(long *)(param_1 + 0x58) - *(long *)(param_1 + 0x50) >> 3)) {
if (lVar3 != lVar5) {
uVar8 = uVar7;
do {
std::_V2::condition_variable_any::notify_one((condition_variable_any *)(param_1 + 0x90));
uVar8 = uVar8 - 1;
} while (uVar8 != 0);
}
}
else {
std::_V2::condition_variable_any::notify_all((condition_variable_any *)(param_1 + 0x90));
}
return uVar7;
}
| |
41,026 | httplib::Response::set_content(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/examples/server/httplib.h | inline void Response::set_content(std::string &&s,
const std::string &content_type) {
body = std::move(s);
auto rng = headers.equal_range("Content-Type");
headers.erase(rng.first, rng.second);
set_header("Content-Type", content_type);
} | O3 | c | httplib::Response::set_content(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, 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 $0x28, %rsp
movq %rdx, %rbx
movq %rdi, %r14
addq $0x80, %rdi
callq 0x1fd10
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0xd1fa5(%rip), %rsi # 0x146fdf
leaq 0xd1faa(%rip), %rdx # 0x146feb
leaq 0x8(%rsp), %rdi
callq 0x4b514
leaq 0x48(%r14), %r15
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x75104
movq %rax, %r12
movq %rdx, %r13
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x75079
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1fae0
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x75158
leaq 0x8(%rsp), %rdi
movq %rbp, (%rdi)
leaq 0xd1f49(%rip), %rsi # 0x146fdf
leaq 0xd1f4e(%rip), %rdx # 0x146feb
callq 0x4b514
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x624da
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x750c9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1fae0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x750dc
jmp 0x750f8
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x750fb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1fae0
jmp 0x750fb
movq %rax, %rbx
movq %rbx, %rdi
callq 0x20380
nop
| _ZN7httplib8Response11set_contentEONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS6_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov rbx, rdx
mov r14, rdi
add rdi, 80h
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
lea rbp, [rsp+58h+var_40]
mov [rbp-10h], rbp
lea rsi, aContentType; "Content-Type"
lea rdx, aContentType+0Ch; ""
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)
lea r15, [r14+48h]
lea rsi, [rsp+58h+var_50]
mov rdi, r15
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESaIS8_ENSt8__detail10_Select1stEN7httplib6detail11case_ignore8equal_toENSE_4hashENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb0EEEE11equal_rangeERS7_; std::_Hashtable<std::string,std::pair<std::string const,std::string>,std::allocator<std::pair<std::string const,std::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>::equal_range(std::string const&)
mov r12, rax
mov r13, rdx
mov rdi, [rsp+58h+var_50]; void *
cmp rdi, rbp
jz short loc_75079
mov rsi, [rsp+58h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_75079:
mov rdi, r15
mov rsi, r12
mov rdx, r13
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESaIS8_ENSt8__detail10_Select1stEN7httplib6detail11case_ignore8equal_toENSE_4hashENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb0EEEE5eraseENSA_20_Node_const_iteratorIS8_Lb0ELb1EEESO_; std::_Hashtable<std::string,std::pair<std::string const,std::string>,std::allocator<std::pair<std::string const,std::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>::erase(std::__detail::_Node_const_iterator<std::pair<std::string const,std::string>,false,true>,std::__detail::_Node_const_iterator<std::pair<std::string const,std::string>,false,true>)
lea rdi, [rsp+58h+var_50]
mov [rdi], rbp
lea rsi, aContentType; "Content-Type"
lea rdx, aContentType+0Ch; ""
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+58h+var_50]
mov rdi, r14
mov rdx, rbx
call _ZN7httplib8Response10set_headerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_; httplib::Response::set_header(std::string const&,std::string const&)
mov rdi, [rsp+58h+var_50]; void *
cmp rdi, rbp
jz short loc_750C9
mov rsi, [rsp+58h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_750C9:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_750DC
jmp short loc_750F8
loc_750DC:
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, rbp
jz short loc_750FB
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_750FB
loc_750F8:
mov rbx, rax
loc_750FB:
mov rdi, rbx
call __Unwind_Resume
| void httplib::Response::set_content(long long a1, long long a2, _QWORD *a3)
{
long long v4; // r12
long long v5; // rdx
long long v6; // r13
long long v7; // rcx
long long v8; // r8
long long v9; // r9
char v10; // [rsp+0h] [rbp-58h]
void *v11[2]; // [rsp+8h] [rbp-50h] BYREF
_QWORD v12[8]; // [rsp+18h] [rbp-40h] BYREF
std::string::operator=(a1 + 128, a2);
v11[0] = v12;
std::string::_M_construct<char const*>((long long)v11, "Content-Type", (long long)"");
v4 = std::_Hashtable<std::string,std::pair<std::string const,std::string>,std::allocator<std::pair<std::string const,std::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>::equal_range(
a1 + 72,
v11);
v6 = v5;
if ( v11[0] != v12 )
operator delete(v11[0], v12[0] + 1LL);
std::_Hashtable<std::string,std::pair<std::string const,std::string>,std::allocator<std::pair<std::string const,std::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>::erase(
a1 + 72,
v4,
v6);
v11[0] = v12;
std::string::_M_construct<char const*>((long long)v11, "Content-Type", (long long)"");
httplib::Response::set_header(a1, (long long *)v11, a3, v7, v8, v9, v10);
if ( v11[0] != v12 )
operator delete(v11[0], v12[0] + 1LL);
}
| set_content:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV RBX,RDX
MOV R14,RDI
ADD RDI,0x80
CALL 0x0011fd10
LEA RBP,[RSP + 0x18]
MOV qword ptr [RBP + -0x10],RBP
LAB_00175033:
LEA RSI,[0x246fdf]
LEA RDX,[0x246feb]
LEA RDI,[RSP + 0x8]
CALL 0x0014b514
LEA R15,[R14 + 0x48]
LAB_0017504f:
LEA RSI,[RSP + 0x8]
MOV RDI,R15
CALL 0x00175104
LAB_0017505c:
MOV R12,RAX
MOV R13,RDX
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,RBP
JZ 0x00175079
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011fae0
LAB_00175079:
MOV RDI,R15
MOV RSI,R12
MOV RDX,R13
CALL 0x00175158
LEA RDI,[RSP + 0x8]
MOV qword ptr [RDI],RBP
LAB_0017508f:
LEA RSI,[0x246fdf]
LEA RDX,[0x246feb]
CALL 0x0014b514
LAB_001750a2:
LEA RSI,[RSP + 0x8]
MOV RDI,R14
MOV RDX,RBX
CALL 0x001624da
LAB_001750b2:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,RBP
JZ 0x001750c9
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011fae0
LAB_001750c9:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* httplib::Response::set_content(std::__cxx11::string&&, std::__cxx11::string const&) */
void __thiscall httplib::Response::set_content(Response *this,string *param_1,string *param_2)
{
int1 auVar1 [16];
long *local_50 [2];
long local_40 [2];
std::__cxx11::string::operator=((string *)(this + 0x80),param_1);
/* try { // try from 00175033 to 0017504a has its CatchHandler @ 001750f8 */
local_50[0] = local_40;
std::__cxx11::string::_M_construct<char_const*>(local_50,"Content-Type","");
/* try { // try from 0017504f to 0017505b has its CatchHandler @ 001750dc */
auVar1 = std::
_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>
::equal_range((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>
*)(this + 0x48),(string *)local_50);
if (local_50[0] != local_40) {
operator_delete(local_50[0],local_40[0] + 1);
}
std::
_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>
::erase((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>
*)(this + 0x48),auVar1._0_8_,auVar1._8_8_);
local_50[0] = local_40;
/* try { // try from 0017508f to 001750a1 has its CatchHandler @ 001750da */
std::__cxx11::string::_M_construct<char_const*>(local_50,"Content-Type","");
/* try { // try from 001750a2 to 001750b1 has its CatchHandler @ 001750d8 */
set_header(this,(string *)local_50,param_2);
if (local_50[0] != local_40) {
operator_delete(local_50[0],local_40[0] + 1);
}
return;
}
| |
41,027 | gguf_init_empty | ngxson[P]ggml-easy/ggml/src/gguf.cpp | struct gguf_context * gguf_init_empty(void) {
return new gguf_context;
} | O1 | cpp | gguf_init_empty:
pushq %rax
movl $0x58, %edi
callq 0x17030
movl $0x3, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movups %xmm0, 0x18(%rax)
movups %xmm0, 0x28(%rax)
movq $0x20, 0x38(%rax)
movups %xmm0, 0x40(%rax)
movq $0x0, 0x50(%rax)
popq %rcx
retq
| gguf_init_empty:
push rax
mov edi, 58h ; 'X'; unsigned __int64
call __Znwm; operator new(ulong)
mov dword ptr [rax], 3
xorps xmm0, xmm0
movups xmmword ptr [rax+8], xmm0
movups xmmword ptr [rax+18h], xmm0
movups xmmword ptr [rax+28h], xmm0
mov qword ptr [rax+38h], 20h ; ' '
movups xmmword ptr [rax+40h], xmm0
mov qword ptr [rax+50h], 0
pop rcx
retn
| long long gguf_init_empty()
{
long long result; // rax
result = operator new(0x58uLL);
*(_DWORD *)result = 3;
*(_OWORD *)(result + 8) = 0LL;
*(_OWORD *)(result + 24) = 0LL;
*(_OWORD *)(result + 40) = 0LL;
*(_QWORD *)(result + 56) = 32LL;
*(_OWORD *)(result + 64) = 0LL;
*(_QWORD *)(result + 80) = 0LL;
return result;
}
| gguf_init_empty:
PUSH RAX
MOV EDI,0x58
CALL 0x00117030
MOV dword ptr [RAX],0x3
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + 0x8],XMM0
MOVUPS xmmword ptr [RAX + 0x18],XMM0
MOVUPS xmmword ptr [RAX + 0x28],XMM0
MOV qword ptr [RAX + 0x38],0x20
MOVUPS xmmword ptr [RAX + 0x40],XMM0
MOV qword ptr [RAX + 0x50],0x0
POP RCX
RET
|
void gguf_init_empty(void)
{
int4 *puVar1;
puVar1 = (int4 *)operator_new(0x58);
*puVar1 = 3;
*(int8 *)(puVar1 + 2) = 0;
*(int8 *)(puVar1 + 4) = 0;
*(int8 *)(puVar1 + 6) = 0;
*(int8 *)(puVar1 + 8) = 0;
*(int8 *)(puVar1 + 10) = 0;
*(int8 *)(puVar1 + 0xc) = 0;
*(int8 *)(puVar1 + 0xe) = 0x20;
*(int8 *)(puVar1 + 0x10) = 0;
*(int8 *)(puVar1 + 0x12) = 0;
*(int8 *)(puVar1 + 0x14) = 0;
return;
}
| |
41,028 | gguf_init_empty | ngxson[P]ggml-easy/ggml/src/gguf.cpp | struct gguf_context * gguf_init_empty(void) {
return new gguf_context;
} | O3 | cpp | gguf_init_empty:
pushq %rax
movl $0x58, %edi
callq 0x17020
movl $0x3, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movups %xmm0, 0x18(%rax)
movups %xmm0, 0x28(%rax)
movq $0x20, 0x38(%rax)
movups %xmm0, 0x40(%rax)
movq $0x0, 0x50(%rax)
popq %rcx
retq
| gguf_init_empty:
push rax
mov edi, 58h ; 'X'; unsigned __int64
call __Znwm; operator new(ulong)
mov dword ptr [rax], 3
xorps xmm0, xmm0
movups xmmword ptr [rax+8], xmm0
movups xmmword ptr [rax+18h], xmm0
movups xmmword ptr [rax+28h], xmm0
mov qword ptr [rax+38h], 20h ; ' '
movups xmmword ptr [rax+40h], xmm0
mov qword ptr [rax+50h], 0
pop rcx
retn
| long long gguf_init_empty()
{
long long result; // rax
result = operator new(0x58uLL);
*(_DWORD *)result = 3;
*(_OWORD *)(result + 8) = 0LL;
*(_OWORD *)(result + 24) = 0LL;
*(_OWORD *)(result + 40) = 0LL;
*(_QWORD *)(result + 56) = 32LL;
*(_OWORD *)(result + 64) = 0LL;
*(_QWORD *)(result + 80) = 0LL;
return result;
}
| gguf_init_empty:
PUSH RAX
MOV EDI,0x58
CALL 0x00117020
MOV dword ptr [RAX],0x3
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + 0x8],XMM0
MOVUPS xmmword ptr [RAX + 0x18],XMM0
MOVUPS xmmword ptr [RAX + 0x28],XMM0
MOV qword ptr [RAX + 0x38],0x20
MOVUPS xmmword ptr [RAX + 0x40],XMM0
MOV qword ptr [RAX + 0x50],0x0
POP RCX
RET
|
void gguf_init_empty(void)
{
int4 *puVar1;
puVar1 = (int4 *)operator_new(0x58);
*puVar1 = 3;
*(int8 *)(puVar1 + 2) = 0;
*(int8 *)(puVar1 + 4) = 0;
*(int8 *)(puVar1 + 6) = 0;
*(int8 *)(puVar1 + 8) = 0;
*(int8 *)(puVar1 + 10) = 0;
*(int8 *)(puVar1 + 0xc) = 0;
*(int8 *)(puVar1 + 0xe) = 0x20;
*(int8 *)(puVar1 + 0x10) = 0;
*(int8 *)(puVar1 + 0x12) = 0;
*(int8 *)(puVar1 + 0x14) = 0;
return;
}
| |
41,029 | my_fclose | eloqsql/mysys/my_fopen.c | int my_fclose(FILE *fd, myf MyFlags)
{
int err,file;
char *name= NULL;
DBUG_ENTER("my_fclose");
DBUG_PRINT("my",("stream: %p MyFlags: %lu", fd, MyFlags));
file= my_fileno(fd);
if ((uint) file < my_file_limit && my_file_info[file].type != UNOPEN)
{
name= my_file_info[file].name;
my_file_info[file].name= NULL;
my_file_info[file].type= UNOPEN;
}
#ifndef _WIN32
err= fclose(fd);
#else
err= my_win_fclose(fd);
#endif
if(err < 0)
{
my_errno=errno;
if (MyFlags & (MY_FAE | MY_WME))
my_error(EE_BADCLOSE, MYF(ME_BELL), name, errno);
}
else
statistic_decrement(my_stream_opened, &THR_LOCK_open);
if (name)
{
my_free(name);
}
DBUG_RETURN(err);
} | O3 | c | my_fclose:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
callq 0x3215a
leaq 0x2c4acb(%rip), %rcx # 0x2f6950
cmpl (%rcx), %eax
jae 0x31eba
leaq 0x2c4ac8(%rip), %rcx # 0x2f6958
movq (%rcx), %rdx
cltq
shlq $0x4, %rax
cmpl $0x0, 0x8(%rdx,%rax)
je 0x31eba
addq %rax, %rdx
movq (%rdx), %rbx
movq $0x0, (%rdx)
movq (%rcx), %rcx
movl $0x0, 0x8(%rcx,%rax)
jmp 0x31ebc
xorl %ebx, %ebx
movq %r15, %rdi
callq 0x24370
movl %eax, %r15d
testl %eax, %eax
js 0x31ed7
leaq 0x33bace(%rip), %rax # 0x36d9a0
decq (%rax)
jmp 0x31f08
callq 0x24050
movq %rax, %r12
movl (%rax), %r13d
callq 0x2bff6
movl %r13d, (%rax)
testb $0x18, %r14b
je 0x31f08
movl (%r12), %ecx
movl $0x4, %esi
movl $0x4, %edi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x27c17
testq %rbx, %rbx
je 0x31f15
movq %rbx, %rdi
callq 0x2afd2
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_fclose:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rsi
mov r15, rdi
call my_fileno
lea rcx, my_file_limit
cmp eax, [rcx]
jnb short loc_31EBA
lea rcx, my_file_info
mov rdx, [rcx]
cdqe
shl rax, 4
cmp dword ptr [rdx+rax+8], 0
jz short loc_31EBA
add rdx, rax
mov rbx, [rdx]
mov qword ptr [rdx], 0
mov rcx, [rcx]
mov dword ptr [rcx+rax+8], 0
jmp short loc_31EBC
loc_31EBA:
xor ebx, ebx
loc_31EBC:
mov rdi, r15
call _fclose
mov r15d, eax
test eax, eax
js short loc_31ED7
lea rax, my_stream_opened
dec qword ptr [rax]
jmp short loc_31F08
loc_31ED7:
call ___errno_location
mov r12, rax
mov r13d, [rax]
call _my_thread_var
mov [rax], r13d
test r14b, 18h
jz short loc_31F08
mov ecx, [r12]
mov esi, 4
mov edi, 4
mov rdx, rbx
xor eax, eax
call my_error
loc_31F08:
test rbx, rbx
jz short loc_31F15
mov rdi, rbx
call my_free
loc_31F15:
mov eax, r15d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_fclose(long long a1, char a2)
{
unsigned int v2; // eax
long long v3; // rax
long long v4; // rbx
int v5; // r15d
unsigned int *v6; // r12
unsigned int v7; // r13d
v2 = my_fileno(a1);
if ( v2 < my_file_limit && (v3 = 16LL * (int)v2, *(_DWORD *)((char *)my_file_info + v3 + 8)) )
{
v4 = *(_QWORD *)((char *)my_file_info + v3);
*(_QWORD *)((char *)my_file_info + v3) = 0LL;
*(_DWORD *)((char *)my_file_info + v3 + 8) = 0;
}
else
{
v4 = 0LL;
}
v5 = fclose(a1);
if ( v5 < 0 )
{
v6 = (unsigned int *)__errno_location(a1);
v7 = *v6;
*(_DWORD *)my_thread_var() = v7;
if ( (a2 & 0x18) != 0 )
my_error(4u, 4LL, v4, *v6);
}
else
{
--my_stream_opened;
}
if ( v4 )
my_free(v4);
return (unsigned int)v5;
}
| my_fclose:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV R15,RDI
CALL 0x0013215a
LEA RCX,[0x3f6950]
CMP EAX,dword ptr [RCX]
JNC 0x00131eba
LEA RCX,[0x3f6958]
MOV RDX,qword ptr [RCX]
CDQE
SHL RAX,0x4
CMP dword ptr [RDX + RAX*0x1 + 0x8],0x0
JZ 0x00131eba
ADD RDX,RAX
MOV RBX,qword ptr [RDX]
MOV qword ptr [RDX],0x0
MOV RCX,qword ptr [RCX]
MOV dword ptr [RCX + RAX*0x1 + 0x8],0x0
JMP 0x00131ebc
LAB_00131eba:
XOR EBX,EBX
LAB_00131ebc:
MOV RDI,R15
CALL 0x00124370
MOV R15D,EAX
TEST EAX,EAX
JS 0x00131ed7
LEA RAX,[0x46d9a0]
DEC qword ptr [RAX]
JMP 0x00131f08
LAB_00131ed7:
CALL 0x00124050
MOV R12,RAX
MOV R13D,dword ptr [RAX]
CALL 0x0012bff6
MOV dword ptr [RAX],R13D
TEST R14B,0x18
JZ 0x00131f08
MOV ECX,dword ptr [R12]
MOV ESI,0x4
MOV EDI,0x4
MOV RDX,RBX
XOR EAX,EAX
CALL 0x00127c17
LAB_00131f08:
TEST RBX,RBX
JZ 0x00131f15
MOV RDI,RBX
CALL 0x0012afd2
LAB_00131f15:
MOV EAX,R15D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int my_fclose(FILE *param_1,ulong param_2)
{
int iVar1;
uint uVar2;
int iVar3;
long lVar4;
int *piVar5;
int *piVar6;
long lVar7;
uVar2 = my_fileno();
if (uVar2 < my_file_limit) {
lVar4 = (long)(int)uVar2 * 0x10;
if (*(int *)(my_file_info + lVar4 + 8) != 0) {
lVar7 = *(long *)(my_file_info + lVar4);
*(long *)(my_file_info + lVar4) = 0;
*(int4 *)(my_file_info + lVar4 + 8) = 0;
goto LAB_00131ebc;
}
}
lVar7 = 0;
LAB_00131ebc:
iVar3 = fclose(param_1);
if (iVar3 < 0) {
piVar5 = __errno_location();
iVar1 = *piVar5;
piVar6 = (int *)_my_thread_var();
*piVar6 = iVar1;
if ((param_2 & 0x18) != 0) {
my_error(4,4,lVar7,*piVar5);
}
}
else {
my_stream_opened = my_stream_opened + -1;
}
if (lVar7 != 0) {
my_free(lVar7);
}
return iVar3;
}
| |
41,030 | mbedtls_ecp_self_test | msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/ecp.c | int mbedtls_ecp_self_test(int verbose)
{
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
mbedtls_ecp_group grp;
mbedtls_ecp_point R, P;
mbedtls_mpi m;
#if defined(MBEDTLS_ECP_SHORT_WEIERSTRASS_ENABLED)
/* Exponents especially adapted for secp192k1, which has the lowest
* order n of all supported curves (secp192r1 is in a slightly larger
* field but the order of its base point is slightly smaller). */
const char *sw_exponents[] =
{
"000000000000000000000000000000000000000000000001", /* one */
"FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8C", /* n - 1 */
"5EA6F389A38B8BC81E767753B15AA5569E1782E30ABE7D25", /* random */
"400000000000000000000000000000000000000000000000", /* one and zeros */
"7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", /* all ones */
"555555555555555555555555555555555555555555555555", /* 101010... */
};
#endif /* MBEDTLS_ECP_SHORT_WEIERSTRASS_ENABLED */
#if defined(MBEDTLS_ECP_MONTGOMERY_ENABLED)
const char *m_exponents[] =
{
/* Valid private values for Curve25519. In a build with Curve448
* but not Curve25519, they will be adjusted in
* self_test_adjust_exponent(). */
"4000000000000000000000000000000000000000000000000000000000000000",
"5C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C30",
"5715ECCE24583F7A7023C24164390586842E816D7280A49EF6DF4EAE6B280BF8",
"41A2B017516F6D254E1F002BCCBADD54BE30F8CEC737A0E912B4963B6BA74460",
"5555555555555555555555555555555555555555555555555555555555555550",
"7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8",
};
#endif /* MBEDTLS_ECP_MONTGOMERY_ENABLED */
mbedtls_ecp_group_init(&grp);
mbedtls_ecp_point_init(&R);
mbedtls_ecp_point_init(&P);
mbedtls_mpi_init(&m);
#if defined(MBEDTLS_ECP_SHORT_WEIERSTRASS_ENABLED)
/* Use secp192r1 if available, or any available curve */
#if defined(MBEDTLS_ECP_DP_SECP192R1_ENABLED)
MBEDTLS_MPI_CHK(mbedtls_ecp_group_load(&grp, MBEDTLS_ECP_DP_SECP192R1));
#else
MBEDTLS_MPI_CHK(mbedtls_ecp_group_load(&grp, mbedtls_ecp_curve_list()->grp_id));
#endif
if (verbose != 0) {
mbedtls_printf(" ECP SW test #1 (constant op_count, base point G): ");
}
/* Do a dummy multiplication first to trigger precomputation */
MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&m, 2));
MBEDTLS_MPI_CHK(mbedtls_ecp_mul(&grp, &P, &m, &grp.G, NULL, NULL));
ret = self_test_point(verbose,
&grp, &R, &m, &grp.G,
sw_exponents,
sizeof(sw_exponents) / sizeof(sw_exponents[0]));
if (ret != 0) {
goto cleanup;
}
if (verbose != 0) {
mbedtls_printf(" ECP SW test #2 (constant op_count, other point): ");
}
/* We computed P = 2G last time, use it */
ret = self_test_point(verbose,
&grp, &R, &m, &P,
sw_exponents,
sizeof(sw_exponents) / sizeof(sw_exponents[0]));
if (ret != 0) {
goto cleanup;
}
mbedtls_ecp_group_free(&grp);
mbedtls_ecp_point_free(&R);
#endif /* MBEDTLS_ECP_SHORT_WEIERSTRASS_ENABLED */
#if defined(MBEDTLS_ECP_MONTGOMERY_ENABLED)
if (verbose != 0) {
mbedtls_printf(" ECP Montgomery test (constant op_count): ");
}
#if defined(MBEDTLS_ECP_DP_CURVE25519_ENABLED)
MBEDTLS_MPI_CHK(mbedtls_ecp_group_load(&grp, MBEDTLS_ECP_DP_CURVE25519));
#elif defined(MBEDTLS_ECP_DP_CURVE448_ENABLED)
MBEDTLS_MPI_CHK(mbedtls_ecp_group_load(&grp, MBEDTLS_ECP_DP_CURVE448));
#else
#error "MBEDTLS_ECP_MONTGOMERY_ENABLED is defined, but no curve is supported for self-test"
#endif
ret = self_test_point(verbose,
&grp, &R, &m, &grp.G,
m_exponents,
sizeof(m_exponents) / sizeof(m_exponents[0]));
if (ret != 0) {
goto cleanup;
}
#endif /* MBEDTLS_ECP_MONTGOMERY_ENABLED */
cleanup:
if (ret < 0 && verbose != 0) {
mbedtls_printf("Unexpected error, return code = %08X\n", (unsigned int) ret);
}
mbedtls_ecp_group_free(&grp);
mbedtls_ecp_point_free(&R);
mbedtls_ecp_point_free(&P);
mbedtls_mpi_free(&m);
if (verbose != 0) {
mbedtls_printf("\n");
}
return ret;
} | O3 | c | mbedtls_ecp_self_test:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp # imm = 0x1A8
movl %edi, %ebx
leaq 0xb0(%rsp), %rbp
movq %rbp, %rdi
callq 0x84296
leaq 0x20(%rsp), %rdi
callq 0x7defc
leaq 0x38(%rsp), %r14
movq %r14, %rdi
callq 0x7defc
leaq 0x50(%rsp), %r15
movq %r15, %rdi
callq 0x7defc
leaq 0x68(%rsp), %rdi
callq 0x7defc
leaq 0x80(%rsp), %r12
movq %r12, %rdi
callq 0x7defc
leaq 0x98(%rsp), %r13
movq %r13, %rdi
callq 0x7defc
leaq 0x8(%rsp), %rdi
callq 0x7defc
movq %rbp, %rdi
movl $0x1, %esi
callq 0x8769c
testl %eax, %eax
jne 0x8648f
testl %ebx, %ebx
je 0x86375
leaq 0x2632f(%rip), %rdi # 0xac69d
xorl %eax, %eax
callq 0xf070
leaq 0x8(%rsp), %rdi
movl $0x2, %esi
callq 0x7e18c
testl %eax, %eax
jne 0x8648f
leaq 0x100(%rsp), %rcx
leaq 0xb0(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0x8(%rsp), %rdx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x849ae
testl %eax, %eax
jne 0x8648f
leaq 0x5bb90(%rip), %r9 # 0xe1f50
leaq 0xb0(%rsp), %rsi
leaq 0x20(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movl %ebx, %edi
leaq 0x100(%rsp), %r8
callq 0x86516
testl %eax, %eax
jne 0x8648f
testl %ebx, %ebx
je 0x863ff
leaq 0x262de(%rip), %rdi # 0xac6d2
xorl %eax, %eax
callq 0xf070
movl %ebx, %edi
jmp 0x86401
xorl %edi, %edi
leaq 0x5bb48(%rip), %r9 # 0xe1f50
leaq 0xb0(%rsp), %rsi
leaq 0x20(%rsp), %rdx
leaq 0x8(%rsp), %rcx
leaq 0x68(%rsp), %r8
callq 0x86516
testl %eax, %eax
jne 0x8648f
leaq 0xb0(%rsp), %rdi
callq 0x84373
leaq 0x20(%rsp), %rdi
callq 0x8434e
testl %ebx, %ebx
je 0x86451
leaq 0x262bc(%rip), %rdi # 0xac706
xorl %eax, %eax
callq 0xf070
leaq 0xb0(%rsp), %rdi
movl $0x9, %esi
callq 0x8769c
testl %eax, %eax
jne 0x8648f
leaq 0x5bb12(%rip), %r9 # 0xe1f80
leaq 0xb0(%rsp), %rsi
leaq 0x20(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movl %ebx, %edi
leaq 0x100(%rsp), %r8
callq 0x86516
movl %eax, %ebp
testl %ebx, %ebx
je 0x864a9
testl %ebp, %ebp
jns 0x864a9
leaq 0x25a2d(%rip), %rdi # 0xabecd
movl %ebp, %esi
xorl %eax, %eax
callq 0xf070
leaq 0xb0(%rsp), %rdi
callq 0x84373
leaq 0x20(%rsp), %rdi
callq 0x7df0a
movq %r14, %rdi
callq 0x7df0a
movq %r15, %rdi
callq 0x7df0a
leaq 0x68(%rsp), %rdi
callq 0x7df0a
movq %r12, %rdi
callq 0x7df0a
movq %r13, %rdi
callq 0x7df0a
leaq 0x8(%rsp), %rdi
callq 0x7df0a
testl %ebx, %ebx
je 0x86502
movl $0xa, %edi
callq 0xf620
movl %ebp, %eax
addq $0x1a8, %rsp # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| mbedtls_ecp_self_test:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 1A8h
mov ebx, edi
lea rbp, [rsp+1D8h+var_128]
mov rdi, rbp
call mbedtls_ecp_group_init
lea rdi, [rsp+1D8h+var_1B8]
call mbedtls_mpi_init
lea r14, [rsp+1D8h+var_1A0]
mov rdi, r14
call mbedtls_mpi_init
lea r15, [rsp+1D8h+var_188]
mov rdi, r15
call mbedtls_mpi_init
lea rdi, [rsp+1D8h+var_170]
call mbedtls_mpi_init
lea r12, [rsp+1D8h+var_158]
mov rdi, r12
call mbedtls_mpi_init
lea r13, [rsp+1D8h+var_140]
mov rdi, r13
call mbedtls_mpi_init
lea rdi, [rsp+1D8h+var_1D0]
call mbedtls_mpi_init
mov rdi, rbp
mov esi, 1
call mbedtls_ecp_group_load
test eax, eax
jnz loc_8648F
test ebx, ebx
jz short loc_86375
lea rdi, aEcpSwTest1Cons; " ECP SW test #1 (constant op_count, ba"...
xor eax, eax
call _printf
loc_86375:
lea rdi, [rsp+1D8h+var_1D0]
mov esi, 2
call mbedtls_mpi_lset
test eax, eax
jnz loc_8648F
lea rcx, [rsp+1D8h+var_D8]
lea rdi, [rsp+1D8h+var_128]
lea rsi, [rsp+1D8h+var_170]
lea rdx, [rsp+1D8h+var_1D0]
xor r8d, r8d
xor r9d, r9d
call mbedtls_ecp_mul_restartable
test eax, eax
jnz loc_8648F
lea r9, off_E1F50; "000000000000000000000000000000000000000"...
lea rsi, [rsp+1D8h+var_128]
lea rdx, [rsp+1D8h+var_1B8]
lea rcx, [rsp+1D8h+var_1D0]
mov edi, ebx
lea r8, [rsp+1D8h+var_D8]
call self_test_point
test eax, eax
jnz loc_8648F
test ebx, ebx
jz short loc_863FF
lea rdi, aEcpSwTest2Cons; " ECP SW test #2 (constant op_count, ot"...
xor eax, eax
call _printf
mov edi, ebx
jmp short loc_86401
loc_863FF:
xor edi, edi
loc_86401:
lea r9, off_E1F50; "000000000000000000000000000000000000000"...
lea rsi, [rsp+1D8h+var_128]
lea rdx, [rsp+1D8h+var_1B8]
lea rcx, [rsp+1D8h+var_1D0]
lea r8, [rsp+1D8h+var_170]
call self_test_point
test eax, eax
jnz short loc_8648F
lea rdi, [rsp+1D8h+var_128]
call mbedtls_ecp_group_free
lea rdi, [rsp+1D8h+var_1B8]
call mbedtls_ecp_point_free
test ebx, ebx
jz short loc_86451
lea rdi, aEcpMontgomeryT; " ECP Montgomery test (constant op_coun"...
xor eax, eax
call _printf
loc_86451:
lea rdi, [rsp+1D8h+var_128]
mov esi, 9
call mbedtls_ecp_group_load
test eax, eax
jnz short loc_8648F
lea r9, off_E1F80; "400000000000000000000000000000000000000"...
lea rsi, [rsp+1D8h+var_128]
lea rdx, [rsp+1D8h+var_1B8]
lea rcx, [rsp+1D8h+var_1D0]
mov edi, ebx
lea r8, [rsp+1D8h+var_D8]
call self_test_point
loc_8648F:
mov ebp, eax
test ebx, ebx
jz short loc_864A9
test ebp, ebp
jns short loc_864A9
lea rdi, aUnexpectedErro; "Unexpected error, return code = %08X\n"
mov esi, ebp
xor eax, eax
call _printf
loc_864A9:
lea rdi, [rsp+1D8h+var_128]
call mbedtls_ecp_group_free
lea rdi, [rsp+1D8h+var_1B8]
call mbedtls_mpi_free
mov rdi, r14
call mbedtls_mpi_free
mov rdi, r15
call mbedtls_mpi_free
lea rdi, [rsp+1D8h+var_170]
call mbedtls_mpi_free
mov rdi, r12
call mbedtls_mpi_free
mov rdi, r13
call mbedtls_mpi_free
lea rdi, [rsp+1D8h+var_1D0]
call mbedtls_mpi_free
test ebx, ebx
jz short loc_86502
mov edi, 0Ah
call _putchar
loc_86502:
mov eax, ebp
add rsp, 1A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long mbedtls_ecp_self_test(long long a1)
{
unsigned int v1; // ebx
int v2; // eax
unsigned int v3; // ebp
_DWORD v5[6]; // [rsp+8h] [rbp-1D0h] BYREF
_BYTE v6[24]; // [rsp+20h] [rbp-1B8h] BYREF
_BYTE v7[24]; // [rsp+38h] [rbp-1A0h] BYREF
_BYTE v8[24]; // [rsp+50h] [rbp-188h] BYREF
_BYTE v9[24]; // [rsp+68h] [rbp-170h] BYREF
_BYTE v10[24]; // [rsp+80h] [rbp-158h] BYREF
_BYTE v11[24]; // [rsp+98h] [rbp-140h] BYREF
int v12[20]; // [rsp+B0h] [rbp-128h] BYREF
_BYTE v13[216]; // [rsp+100h] [rbp-D8h] BYREF
v1 = a1;
mbedtls_ecp_group_init((long long)v12);
mbedtls_mpi_init((long long)v6);
mbedtls_mpi_init((long long)v7);
mbedtls_mpi_init((long long)v8);
mbedtls_mpi_init((long long)v9);
mbedtls_mpi_init((long long)v10);
mbedtls_mpi_init((long long)v11);
mbedtls_mpi_init((long long)v5);
v2 = mbedtls_ecp_group_load(v12, 1LL);
if ( !v2 )
{
if ( (_DWORD)a1 )
printf(" ECP SW test #1 (constant op_count, base point G): ");
v2 = mbedtls_mpi_lset((long long)v5, 2LL);
if ( !v2 )
{
v2 = mbedtls_ecp_mul_restartable(v12, (long long)v9, v5, (long long)v13, 0LL, 0LL);
if ( !v2 )
{
v2 = self_test_point((unsigned int)a1, v12, v6, v5, v13, off_E1F50);
if ( !v2 )
{
if ( (_DWORD)a1 )
{
printf(" ECP SW test #2 (constant op_count, other point): ");
a1 = (unsigned int)a1;
}
else
{
a1 = 0LL;
}
v2 = self_test_point(a1, v12, v6, v5, v9, off_E1F50);
if ( !v2 )
{
mbedtls_ecp_group_free((long long)v12);
mbedtls_ecp_point_free((long long)v6);
if ( v1 )
printf(" ECP Montgomery test (constant op_count): ");
v2 = mbedtls_ecp_group_load(v12, 9LL);
if ( !v2 )
v2 = self_test_point(v1, v12, v6, v5, v13, off_E1F80);
}
}
}
}
}
v3 = v2;
if ( v1 && v2 < 0 )
printf("Unexpected error, return code = %08X\n", v2);
mbedtls_ecp_group_free((long long)v12);
mbedtls_mpi_free((long long)v6);
mbedtls_mpi_free((long long)v7);
mbedtls_mpi_free((long long)v8);
mbedtls_mpi_free((long long)v9);
mbedtls_mpi_free((long long)v10);
mbedtls_mpi_free((long long)v11);
mbedtls_mpi_free((long long)v5);
if ( v1 )
putchar(10LL);
return v3;
}
| mbedtls_ecp_self_test:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x1a8
MOV EBX,EDI
LEA RBP,[RSP + 0xb0]
MOV RDI,RBP
CALL 0x00184296
LEA RDI,[RSP + 0x20]
CALL 0x0017defc
LEA R14,[RSP + 0x38]
MOV RDI,R14
CALL 0x0017defc
LEA R15,[RSP + 0x50]
MOV RDI,R15
CALL 0x0017defc
LEA RDI,[RSP + 0x68]
CALL 0x0017defc
LEA R12,[RSP + 0x80]
MOV RDI,R12
CALL 0x0017defc
LEA R13,[RSP + 0x98]
MOV RDI,R13
CALL 0x0017defc
LEA RDI,[RSP + 0x8]
CALL 0x0017defc
MOV RDI,RBP
MOV ESI,0x1
CALL 0x0018769c
TEST EAX,EAX
JNZ 0x0018648f
TEST EBX,EBX
JZ 0x00186375
LEA RDI,[0x1ac69d]
XOR EAX,EAX
CALL 0x0010f070
LAB_00186375:
LEA RDI,[RSP + 0x8]
MOV ESI,0x2
CALL 0x0017e18c
TEST EAX,EAX
JNZ 0x0018648f
LEA RCX,[RSP + 0x100]
LEA RDI,[RSP + 0xb0]
LEA RSI,[RSP + 0x68]
LEA RDX,[RSP + 0x8]
XOR R8D,R8D
XOR R9D,R9D
CALL 0x001849ae
TEST EAX,EAX
JNZ 0x0018648f
LEA R9,[0x1e1f50]
LEA RSI,[RSP + 0xb0]
LEA RDX,[RSP + 0x20]
LEA RCX,[RSP + 0x8]
MOV EDI,EBX
LEA R8,[RSP + 0x100]
CALL 0x00186516
TEST EAX,EAX
JNZ 0x0018648f
TEST EBX,EBX
JZ 0x001863ff
LEA RDI,[0x1ac6d2]
XOR EAX,EAX
CALL 0x0010f070
MOV EDI,EBX
JMP 0x00186401
LAB_001863ff:
XOR EDI,EDI
LAB_00186401:
LEA R9,[0x1e1f50]
LEA RSI,[RSP + 0xb0]
LEA RDX,[RSP + 0x20]
LEA RCX,[RSP + 0x8]
LEA R8,[RSP + 0x68]
CALL 0x00186516
TEST EAX,EAX
JNZ 0x0018648f
LEA RDI,[RSP + 0xb0]
CALL 0x00184373
LEA RDI,[RSP + 0x20]
CALL 0x0018434e
TEST EBX,EBX
JZ 0x00186451
LEA RDI,[0x1ac706]
XOR EAX,EAX
CALL 0x0010f070
LAB_00186451:
LEA RDI,[RSP + 0xb0]
MOV ESI,0x9
CALL 0x0018769c
TEST EAX,EAX
JNZ 0x0018648f
LEA R9,[0x1e1f80]
LEA RSI,[RSP + 0xb0]
LEA RDX,[RSP + 0x20]
LEA RCX,[RSP + 0x8]
MOV EDI,EBX
LEA R8,[RSP + 0x100]
CALL 0x00186516
LAB_0018648f:
MOV EBP,EAX
TEST EBX,EBX
JZ 0x001864a9
TEST EBP,EBP
JNS 0x001864a9
LEA RDI,[0x1abecd]
MOV ESI,EBP
XOR EAX,EAX
CALL 0x0010f070
LAB_001864a9:
LEA RDI,[RSP + 0xb0]
CALL 0x00184373
LEA RDI,[RSP + 0x20]
CALL 0x0017df0a
MOV RDI,R14
CALL 0x0017df0a
MOV RDI,R15
CALL 0x0017df0a
LEA RDI,[RSP + 0x68]
CALL 0x0017df0a
MOV RDI,R12
CALL 0x0017df0a
MOV RDI,R13
CALL 0x0017df0a
LEA RDI,[RSP + 0x8]
CALL 0x0017df0a
TEST EBX,EBX
JZ 0x00186502
MOV EDI,0xa
CALL 0x0010f620
LAB_00186502:
MOV EAX,EBP
ADD RSP,0x1a8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong mbedtls_ecp_self_test(int param_1)
{
uint uVar1;
int iVar2;
int1 local_1d0 [24];
int1 local_1b8 [24];
int1 local_1a0 [24];
int1 local_188 [24];
int1 local_170 [24];
int1 local_158 [24];
int1 local_140 [24];
int1 local_128 [80];
int1 local_d8 [168];
mbedtls_ecp_group_init(local_128);
mbedtls_mpi_init(local_1b8);
mbedtls_mpi_init(local_1a0);
mbedtls_mpi_init(local_188);
mbedtls_mpi_init(local_170);
mbedtls_mpi_init(local_158);
mbedtls_mpi_init(local_140);
mbedtls_mpi_init(local_1d0);
uVar1 = mbedtls_ecp_group_load(local_128,1);
if (uVar1 == 0) {
if (param_1 != 0) {
printf(" ECP SW test #1 (constant op_count, base point G): ");
}
uVar1 = mbedtls_mpi_lset(local_1d0,2);
if (uVar1 == 0) {
uVar1 = mbedtls_ecp_mul_restartable(local_128,local_170,local_1d0,local_d8,0,0);
if (uVar1 == 0) {
uVar1 = self_test_point(param_1,local_128,local_1b8,local_1d0,local_d8,
&PTR_s_00000000000000000000000000000000_001e1f50);
if (uVar1 == 0) {
if (param_1 == 0) {
iVar2 = 0;
}
else {
printf(" ECP SW test #2 (constant op_count, other point): ");
iVar2 = param_1;
}
uVar1 = self_test_point(iVar2,local_128,local_1b8,local_1d0,local_170,
&PTR_s_00000000000000000000000000000000_001e1f50);
if (uVar1 == 0) {
mbedtls_ecp_group_free(local_128);
mbedtls_ecp_point_free(local_1b8);
if (param_1 != 0) {
printf(" ECP Montgomery test (constant op_count): ");
}
uVar1 = mbedtls_ecp_group_load(local_128,9);
if (uVar1 == 0) {
uVar1 = self_test_point(param_1,local_128,local_1b8,local_1d0,local_d8,
&PTR_s_40000000000000000000000000000000_001e1f80);
}
}
}
}
}
}
if ((param_1 != 0) && ((int)uVar1 < 0)) {
printf("Unexpected error, return code = %08X\n",(ulong)uVar1);
}
mbedtls_ecp_group_free(local_128);
mbedtls_mpi_free(local_1b8);
mbedtls_mpi_free(local_1a0);
mbedtls_mpi_free(local_188);
mbedtls_mpi_free(local_170);
mbedtls_mpi_free(local_158);
mbedtls_mpi_free(local_140);
mbedtls_mpi_free(local_1d0);
if (param_1 != 0) {
putchar(10);
}
return (ulong)uVar1;
}
| |
41,031 | JS_EvalObject | bluesky950520[P]quickjs/quickjs.c | static JSValue JS_EvalObject(JSContext *ctx, JSValue this_obj,
JSValue val, int flags, int scope_idx)
{
JSValue ret;
const char *str;
size_t len;
if (!JS_IsString(val))
return js_dup(val);
str = JS_ToCStringLen(ctx, &len, val);
if (!str)
return JS_EXCEPTION;
ret = JS_EvalInternal(ctx, this_obj, str, len, "<input>", flags, scope_idx);
JS_FreeCString(ctx, str);
return ret;
} | O1 | c | JS_EvalObject:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %rbx
movq %rcx, %r14
cmpl $-0x7, %ebx
jne 0x3f4ff
movq %rsi, %r13
movq %rdi, %r15
movq %rdx, 0x8(%rsp)
movq %r9, 0x10(%rsp)
movq %rsp, %rsi
xorl %ebp, %ebp
movq %r14, %rdx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x20bf7
testq %rax, %rax
je 0x3f533
movq %rax, %r12
movq 0x1f8(%r15), %rax
testq %rax, %rax
je 0x3f53d
movl 0x50(%rsp), %r10d
movq (%rsp), %r8
leaq 0x5ff67(%rip), %r9 # 0x9f41b
movq %r15, %rdi
movq %r13, %rsi
movq 0x8(%rsp), %rdx
movq %r12, %rcx
pushq %r10
pushq 0x18(%rsp)
callq *%rax
addq $0x10, %rsp
movq %rax, %r14
movq %rdx, %rbx
movq 0x18(%r15), %rdi
movl -0x18(%r12), %eax
leal -0x1(%rax), %ecx
movl %ecx, -0x18(%r12)
cmpl $0x1, %eax
jg 0x3f50e
addq $-0x18, %r12
movq %r12, %rsi
movq $-0x7, %rdx
callq 0x21266
jmp 0x3f50e
movq %r14, (%rsp)
cmpl $-0x9, %ebx
jb 0x3f50e
movq (%rsp), %rax
incl (%rax)
movabsq $-0x100000000, %rbp # imm = 0xFFFFFFFF00000000
andq %r14, %rbp
movl %r14d, %eax
orq %rbp, %rax
movq %rbx, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x6, %ebx
xorl %r14d, %r14d
jmp 0x3f51b
leaq 0x602e7(%rip), %rsi # 0x9f82b
xorl %r14d, %r14d
movq %r15, %rdi
xorl %eax, %eax
callq 0x22567
movl $0x6, %ebx
jmp 0x3f4d4
| JS_EvalObject:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, r8
mov r14, rcx
cmp ebx, 0FFFFFFF9h
jnz loc_3F4FF
mov r13, rsi
mov r15, rdi
mov [rsp+48h+var_40], rdx
mov [rsp+48h+var_38], r9
mov rsi, rsp
xor ebp, ebp
mov rdx, r14
mov rcx, rbx
xor r8d, r8d
call JS_ToCStringLen2
test rax, rax
jz loc_3F533
mov r12, rax
mov rax, [r15+1F8h]
test rax, rax
jz loc_3F53D
mov r10d, [rsp+48h+arg_0]
mov r8, [rsp+48h+var_48]
lea r9, aInput; "<input>"
mov rdi, r15
mov rsi, r13
mov rdx, [rsp+48h+var_40]
mov rcx, r12
push r10
push [rsp+50h+var_38]
call rax
add rsp, 10h
mov r14, rax
mov rbx, rdx
loc_3F4D4:
mov rdi, [r15+18h]
mov eax, [r12-18h]
lea ecx, [rax-1]
mov [r12-18h], ecx
cmp eax, 1
jg short loc_3F50E
add r12, 0FFFFFFFFFFFFFFE8h
mov rsi, r12
mov rdx, 0FFFFFFFFFFFFFFF9h
call js_free_value_rt
jmp short loc_3F50E
loc_3F4FF:
mov [rsp+48h+var_48], r14
cmp ebx, 0FFFFFFF7h
jb short loc_3F50E
mov rax, [rsp+48h+var_48]
inc dword ptr [rax]
loc_3F50E:
mov rbp, 0FFFFFFFF00000000h
and rbp, r14
loc_3F51B:
mov eax, r14d
or rax, rbp
mov rdx, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3F533:
mov ebx, 6
xor r14d, r14d
jmp short loc_3F51B
loc_3F53D:
lea rsi, aEvalIsNotSuppo; "eval is not supported"
xor r14d, r14d
mov rdi, r15
xor eax, eax
call JS_ThrowTypeError
mov ebx, 6
jmp loc_3F4D4
| unsigned long long JS_EvalObject(
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,
double a11,
double a12,
__m128 a13,
__m128 a14,
unsigned int a15)
{
long long v15; // r14
unsigned long long v16; // rbp
long long v17; // rax
long long v18; // rdx
long long v19; // rcx
long long v20; // r8
long long v21; // r9
__m128 v22; // xmm4
__m128 v23; // xmm5
long long v24; // r12
long long ( *v25)(long long, long long, long long, long long, _DWORD *, const char *, long long, _QWORD); // rax
long long v26; // rdi
int v27; // eax
_DWORD *v29; // [rsp+0h] [rbp-48h] BYREF
long long v30; // [rsp+8h] [rbp-40h]
long long v31; // [rsp+10h] [rbp-38h]
v15 = a4;
if ( (_DWORD)a5 == -7 )
{
v30 = a3;
v31 = a6;
v16 = 0LL;
v17 = JS_ToCStringLen2(a1, (long long *)&v29, a4, a5, 0);
if ( !v17 )
{
LODWORD(v15) = 0;
return v16 | (unsigned int)v15;
}
v24 = v17;
v25 = *(long long ( **)(long long, long long, long long, long long, _DWORD *, const char *, long long, _QWORD))(a1 + 504);
if ( v25 )
{
v15 = v25(a1, a2, v30, v24, v29, "<input>", v31, a15);
}
else
{
v15 = 0LL;
JS_ThrowTypeError(
a1,
(long long)"eval is not supported",
v18,
v19,
v20,
v21,
a7,
a8,
a9,
a10,
v22,
v23,
a13,
a14,
(char)v29);
}
v26 = *(_QWORD *)(a1 + 24);
v27 = *(_DWORD *)(v24 - 24);
*(_DWORD *)(v24 - 24) = v27 - 1;
if ( v27 <= 1 )
js_free_value_rt(v26, (_QWORD *)(v24 - 24), -7);
}
else
{
v29 = (_DWORD *)a4;
if ( (unsigned int)a5 >= 0xFFFFFFF7 )
++*v29;
}
v16 = v15 & 0xFFFFFFFF00000000LL;
return v16 | (unsigned int)v15;
}
| JS_EvalObject:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,R8
MOV R14,RCX
CMP EBX,-0x7
JNZ 0x0013f4ff
MOV R13,RSI
MOV R15,RDI
MOV qword ptr [RSP + 0x8],RDX
MOV qword ptr [RSP + 0x10],R9
MOV RSI,RSP
XOR EBP,EBP
MOV RDX,R14
MOV RCX,RBX
XOR R8D,R8D
CALL 0x00120bf7
TEST RAX,RAX
JZ 0x0013f533
MOV R12,RAX
MOV RAX,qword ptr [R15 + 0x1f8]
TEST RAX,RAX
JZ 0x0013f53d
MOV R10D,dword ptr [RSP + 0x50]
MOV R8,qword ptr [RSP]
LEA R9,[0x19f41b]
MOV RDI,R15
MOV RSI,R13
MOV RDX,qword ptr [RSP + 0x8]
MOV RCX,R12
PUSH R10
PUSH qword ptr [RSP + 0x18]
CALL RAX
ADD RSP,0x10
MOV R14,RAX
MOV RBX,RDX
LAB_0013f4d4:
MOV RDI,qword ptr [R15 + 0x18]
MOV EAX,dword ptr [R12 + -0x18]
LEA ECX,[RAX + -0x1]
MOV dword ptr [R12 + -0x18],ECX
CMP EAX,0x1
JG 0x0013f50e
ADD R12,-0x18
MOV RSI,R12
MOV RDX,-0x7
CALL 0x00121266
JMP 0x0013f50e
LAB_0013f4ff:
MOV qword ptr [RSP],R14
CMP EBX,-0x9
JC 0x0013f50e
MOV RAX,qword ptr [RSP]
INC dword ptr [RAX]
LAB_0013f50e:
MOV RBP,-0x100000000
AND RBP,R14
LAB_0013f51b:
MOV EAX,R14D
OR RAX,RBP
MOV RDX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013f533:
MOV EBX,0x6
XOR R14D,R14D
JMP 0x0013f51b
LAB_0013f53d:
LEA RSI,[0x19f82b]
XOR R14D,R14D
MOV RDI,R15
XOR EAX,EAX
CALL 0x00122567
MOV EBX,0x6
JMP 0x0013f4d4
|
int1 [16]
JS_EvalObject(long param_1,int8 param_2,int8 param_3,int *param_4,int8 param_5,
int8 param_6,int4 param_7)
{
int iVar1;
int8 uVar2;
int1 auVar3 [16];
long lVar4;
ulong uVar5;
int1 auVar6 [16];
int1 auVar7 [16];
int8 local_48;
int8 local_40;
int8 local_38;
auVar3._8_8_ = param_5;
auVar3._0_8_ = param_4;
auVar6._8_8_ = param_5;
auVar6._0_8_ = param_4;
if ((uint)param_5 == 0xfffffff9) {
uVar5 = 0;
local_40 = param_3;
local_38 = param_6;
lVar4 = JS_ToCStringLen2(param_1,&local_48,param_4,param_5,0);
if (lVar4 == 0) {
auVar6 = ZEXT816(6) << 0x40;
goto LAB_0013f51b;
}
if (*(code **)(param_1 + 0x1f8) == (code *)0x0) {
JS_ThrowTypeError(param_1,"eval is not supported");
auVar6 = ZEXT816(6) << 0x40;
}
else {
auVar6 = (**(code **)(param_1 + 0x1f8))
(param_1,param_2,local_40,lVar4,local_48,"<input>",local_38,param_7);
}
uVar2 = *(int8 *)(param_1 + 0x18);
iVar1 = *(int *)(lVar4 + -0x18);
*(int *)(lVar4 + -0x18) = iVar1 + -1;
if (iVar1 < 2) {
js_free_value_rt(uVar2,lVar4 + -0x18,0xfffffffffffffff9);
}
}
else if (0xfffffff6 < (uint)param_5) {
*param_4 = *param_4 + 1;
auVar6 = auVar3;
}
uVar5 = auVar6._0_8_ & 0xffffffff00000000;
LAB_0013f51b:
auVar7._0_8_ = auVar6._0_8_ & 0xffffffff | uVar5;
auVar7._8_8_ = auVar6._8_8_;
return auVar7;
}
| |
41,032 | JS_EvalObject | bluesky950520[P]quickjs/quickjs.c | static JSValue JS_EvalObject(JSContext *ctx, JSValue this_obj,
JSValue val, int flags, int scope_idx)
{
JSValue ret;
const char *str;
size_t len;
if (!JS_IsString(val))
return js_dup(val);
str = JS_ToCStringLen(ctx, &len, val);
if (!str)
return JS_EXCEPTION;
ret = JS_EvalInternal(ctx, this_obj, str, len, "<input>", flags, scope_idx);
JS_FreeCString(ctx, str);
return ret;
} | O2 | c | JS_EvalObject:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %rbx
movq %rcx, %r14
cmpl $-0x7, %ebx
jne 0x37827
movq %rdx, %rbp
movq %rsi, %r12
movq %rdi, %r15
movq %r9, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x36bee
testq %rax, %rax
je 0x37854
movq %rax, %r13
movl 0x50(%rsp), %eax
movq 0x10(%rsp), %r8
leaq 0x4eb6f(%rip), %r9 # 0x8636b
movq %r15, %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %r13, %rcx
pushq %rax
pushq 0x10(%rsp)
callq 0x299cd
popq %rcx
popq %rsi
movq %rax, %r14
movq %rdx, %rbx
movq %r15, %rdi
movq %r13, %rsi
callq 0x1b057
jmp 0x3782f
cmpl $-0x9, %ebx
jb 0x3782f
incl (%r14)
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %r14, %rcx
movl %r14d, %eax
orq %rcx, %rax
movq %rbx, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x6
popq %rbx
xorl %r14d, %r14d
xorl %ecx, %ecx
jmp 0x3783c
| JS_EvalObject:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, r8
mov r14, rcx
cmp ebx, 0FFFFFFF9h
jnz short loc_37827
mov rbp, rdx
mov r12, rsi
mov r15, rdi
mov [rsp+48h+var_40], r9
lea rsi, [rsp+48h+var_38]
mov rdx, r14
mov rcx, rbx
call JS_ToCStringLen_0
test rax, rax
jz short loc_37854
mov r13, rax
mov eax, [rsp+48h+arg_0]
mov r8, [rsp+48h+var_38]
lea r9, aInput; "<input>"
mov rdi, r15
mov rsi, r12
mov rdx, rbp
mov rcx, r13
push rax
push [rsp+50h+var_40]
call JS_EvalInternal
pop rcx
pop rsi
mov r14, rax
mov rbx, rdx
mov rdi, r15
mov rsi, r13
call JS_FreeCString
jmp short loc_3782F
loc_37827:
cmp ebx, 0FFFFFFF7h
jb short loc_3782F
inc dword ptr [r14]
loc_3782F:
mov rcx, 0FFFFFFFF00000000h
and rcx, r14
loc_3783C:
mov eax, r14d
or rax, rcx
mov rdx, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_37854:
push 6
pop rbx
xor r14d, r14d
xor ecx, ecx
jmp short loc_3783C
| unsigned long long JS_EvalObject(
long long a1,
long long a2,
long long a3,
_DWORD *a4,
long long a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
long long v13; // r14
long long v15; // rax
__m128 v16; // xmm4
__m128 v17; // xmm5
long long v18; // r13
unsigned long long v19; // rcx
long long v21[7]; // [rsp+10h] [rbp-38h] BYREF
v13 = (long long)a4;
if ( (_DWORD)a5 == -7 )
{
v15 = JS_ToCStringLen_0(a1, v21, (long long)a4, a5);
if ( !v15 )
{
LODWORD(v13) = 0;
v19 = 0LL;
return v19 | (unsigned int)v13;
}
v18 = v15;
v13 = JS_EvalInternal(a1, a6, a7, a8, a9, v16, v17, a12, a13, a2, a3, v15, v21[0], (long long)"<input>");
JS_FreeCString(a1, v18);
}
else if ( (unsigned int)a5 >= 0xFFFFFFF7 )
{
++*a4;
}
v19 = v13 & 0xFFFFFFFF00000000LL;
return v19 | (unsigned int)v13;
}
| JS_EvalObject:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,R8
MOV R14,RCX
CMP EBX,-0x7
JNZ 0x00137827
MOV RBP,RDX
MOV R12,RSI
MOV R15,RDI
MOV qword ptr [RSP + 0x8],R9
LEA RSI,[RSP + 0x10]
MOV RDX,R14
MOV RCX,RBX
CALL 0x00136bee
TEST RAX,RAX
JZ 0x00137854
MOV R13,RAX
MOV EAX,dword ptr [RSP + 0x50]
MOV R8,qword ptr [RSP + 0x10]
LEA R9,[0x18636b]
MOV RDI,R15
MOV RSI,R12
MOV RDX,RBP
MOV RCX,R13
PUSH RAX
PUSH qword ptr [RSP + 0x10]
CALL 0x001299cd
POP RCX
POP RSI
MOV R14,RAX
MOV RBX,RDX
MOV RDI,R15
MOV RSI,R13
CALL 0x0011b057
JMP 0x0013782f
LAB_00137827:
CMP EBX,-0x9
JC 0x0013782f
INC dword ptr [R14]
LAB_0013782f:
MOV RCX,-0x100000000
AND RCX,R14
LAB_0013783c:
MOV EAX,R14D
OR RAX,RCX
MOV RDX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00137854:
PUSH 0x6
POP RBX
XOR R14D,R14D
XOR ECX,ECX
JMP 0x0013783c
|
int1 [16]
JS_EvalObject(int8 param_1,int8 param_2,int8 param_3,int *param_4,
int8 param_5,int8 param_6,int4 param_7)
{
int1 auVar1 [16];
long lVar2;
ulong uVar3;
int1 auVar4 [16];
int1 auVar5 [16];
int8 local_38;
auVar1._8_8_ = param_5;
auVar1._0_8_ = param_4;
auVar4._8_8_ = param_5;
auVar4._0_8_ = param_4;
if ((uint)param_5 == 0xfffffff9) {
lVar2 = JS_ToCStringLen(param_1,&local_38,param_4,param_5);
if (lVar2 == 0) {
auVar4 = ZEXT816(6) << 0x40;
uVar3 = 0;
goto LAB_0013783c;
}
auVar4 = JS_EvalInternal(param_1,param_2,param_3,lVar2,local_38,"<input>",param_6,param_7);
JS_FreeCString(param_1,lVar2,auVar4._8_8_,param_6);
}
else if (0xfffffff6 < (uint)param_5) {
*param_4 = *param_4 + 1;
auVar4 = auVar1;
}
uVar3 = auVar4._0_8_ & 0xffffffff00000000;
LAB_0013783c:
auVar5._0_8_ = auVar4._0_8_ & 0xffffffff | uVar3;
auVar5._8_8_ = auVar4._8_8_;
return auVar5;
}
| |
41,033 | Settings::setCount(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | 666mxvbee[P]BattleShip/lib/Settings/Settings.cpp | std::string Settings::setCount(const std::string& cmd) {
std::lock_guard<std::mutex> lock(settings_mutex);
std::stringstream ss(cmd);
int typeShip;
uint64_t count;
if (!(ss >> typeShip >> count)) {
return "failed";
}
if (typeShip < 1 || typeShip > 4) {
return "failed";
}
shipCounts[typeShip] = count;
return "ok";
} | O2 | cpp | Settings::setCount(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x1a0, %rsp # imm = 0x1A0
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x6e34
leaq 0x18(%rsp), %rdi
pushq $0x18
popq %rdx
movq %r15, %rsi
callq 0x54f0
leaq 0x18(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x5210
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
callq 0x51d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
je 0x6271
leaq 0x10fd6(%rip), %rsi # 0x17238
leaq 0xb(%rsp), %rdx
movq %r14, %rdi
callq 0x6b2a
jmp 0x62bd
movl 0xc(%rsp), %eax
addl $-0x5, %eax
cmpl $-0x5, %eax
ja 0x6293
leaq 0x10fb4(%rip), %rsi # 0x17238
leaq 0xb(%rsp), %rdx
movq %r14, %rdi
callq 0x6b2a
jmp 0x62bd
movq 0x10(%rsp), %r15
leaq 0x60(%rbx), %rdi
leaq 0xc(%rsp), %rsi
callq 0x6c40
movq %r15, (%rax)
leaq 0x10f85(%rip), %rsi # 0x17235
leaq 0xb(%rsp), %rdx
movq %r14, %rdi
callq 0x6b2a
leaq 0x18(%rsp), %rdi
callq 0x52b0
movq %rbx, %rdi
callq 0x52c0
movq %r14, %rax
addq $0x1a0, %rsp # imm = 0x1A0
popq %rbx
popq %r14
popq %r15
retq
jmp 0x62ea
jmp 0x62ea
jmp 0x62ea
movq %rax, %r14
jmp 0x62f7
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x52b0
movq %rbx, %rdi
callq 0x52c0
movq %r14, %rdi
callq 0x5590
nop
| _ZN8Settings8setCountERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push rbx
sub rsp, 1A0h
mov r15, rdx
mov rbx, rsi
mov r14, rdi
mov rdi, rsi; this
call _ZNSt5mutex4lockEv; std::mutex::lock(void)
lea rdi, [rsp+1B8h+var_1A0]
push 18h
pop rdx
mov rsi, r15
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(std::string const&,std::_Ios_Openmode)
lea rdi, [rsp+1B8h+var_1A0]
lea rsi, [rsp+1B8h+var_1AC]
call __ZNSirsERi; std::istream::operator>>(int &)
lea rsi, [rsp+1B8h+var_1A8]
mov rdi, rax
call __ZNSi10_M_extractImEERSiRT_; std::istream::_M_extract<ulong>(ulong &)
mov rcx, [rax]
mov rcx, [rcx-18h]
test byte ptr [rax+rcx+20h], 5
jz short loc_6271
lea rsi, aFailed; "failed"
lea rdx, [rsp+1B8h+var_1AD]
mov rdi, r14
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short loc_62BD
loc_6271:
mov eax, [rsp+1B8h+var_1AC]
add eax, 0FFFFFFFBh
cmp eax, 0FFFFFFFBh
ja short loc_6293
lea rsi, aFailed; "failed"
lea rdx, [rsp+1B8h+var_1AD]
mov rdi, r14
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short loc_62BD
loc_6293:
mov r15, [rsp+1B8h+var_1A8]
lea rdi, [rbx+60h]
lea rsi, [rsp+1B8h+var_1AC]
call _ZNSt3mapIimSt4lessIiESaISt4pairIKimEEEixERS3_; std::map<int,ulong>::operator[](int const&)
mov [rax], r15
lea rsi, aOk; "ok"
lea rdx, [rsp+1B8h+var_1AD]
mov rdi, r14
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
loc_62BD:
lea rdi, [rsp+1B8h+var_1A0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
mov rdi, rbx
call _pthread_mutex_unlock
mov rax, r14
add rsp, 1A0h
pop rbx
pop r14
pop r15
retn
jmp short loc_62EA
jmp short loc_62EA
jmp short loc_62EA
mov r14, rax
jmp short loc_62F7
loc_62EA:
mov r14, rax
lea rdi, [rsp+arg_10]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
loc_62F7:
mov rdi, rbx
call _pthread_mutex_unlock
mov rdi, r14
call __Unwind_Resume
| long long Settings::setCount(long long a1, std::mutex *a2, long long a3)
{
long long v4; // rax
_QWORD *v5; // rax
long long v6; // r15
char v8; // [rsp+Bh] [rbp-1ADh] BYREF
int v9; // [rsp+Ch] [rbp-1ACh] BYREF
long long v10; // [rsp+10h] [rbp-1A8h] BYREF
_BYTE v11[416]; // [rsp+18h] [rbp-1A0h] BYREF
std::mutex::lock(a2);
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v11, a3, 24LL);
v4 = std::istream::operator>>(v11, &v9);
v5 = (_QWORD *)std::istream::_M_extract<unsigned long>(v4, &v10);
if ( (*((_BYTE *)v5 + *(_QWORD *)(*v5 - 24LL) + 32) & 5) != 0 || (unsigned int)(v9 - 5) <= 0xFFFFFFFB )
{
std::string::basic_string<std::allocator<char>>(a1, "failed", &v8);
}
else
{
v6 = v10;
*(_QWORD *)std::map<int,unsigned long>::operator[]((char *)a2 + 96, &v9) = v6;
std::string::basic_string<std::allocator<char>>(a1, "ok", &v8);
}
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(v11);
pthread_mutex_unlock(a2);
return a1;
}
| setCount:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x1a0
MOV R15,RDX
MOV RBX,RSI
MOV R14,RDI
MOV RDI,RSI
CALL 0x00106e34
LAB_00106221:
LEA RDI,[RSP + 0x18]
PUSH 0x18
POP RDX
MOV RSI,R15
CALL 0x001054f0
LAB_00106231:
LEA RDI,[RSP + 0x18]
LEA RSI,[RSP + 0xc]
CALL 0x00105210
LEA RSI,[RSP + 0x10]
MOV RDI,RAX
CALL 0x001051d0
MOV RCX,qword ptr [RAX]
MOV RCX,qword ptr [RCX + -0x18]
TEST byte ptr [RAX + RCX*0x1 + 0x20],0x5
JZ 0x00106271
LAB_0010625b:
LEA RSI,[0x117238]
LEA RDX,[RSP + 0xb]
MOV RDI,R14
CALL 0x00106b2a
JMP 0x001062bd
LAB_00106271:
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,-0x5
CMP EAX,-0x5
JA 0x00106293
LAB_0010627d:
LEA RSI,[0x117238]
LEA RDX,[RSP + 0xb]
MOV RDI,R14
CALL 0x00106b2a
JMP 0x001062bd
LAB_00106293:
MOV R15,qword ptr [RSP + 0x10]
LEA RDI,[RBX + 0x60]
LAB_0010629c:
LEA RSI,[RSP + 0xc]
CALL 0x00106c40
MOV qword ptr [RAX],R15
LAB_001062a9:
LEA RSI,[0x117235]
LEA RDX,[RSP + 0xb]
MOV RDI,R14
CALL 0x00106b2a
LAB_001062bd:
LEA RDI,[RSP + 0x18]
CALL 0x001052b0
MOV RDI,RBX
CALL 0x001052c0
MOV RAX,R14
ADD RSP,0x1a0
POP RBX
POP R14
POP R15
RET
|
/* Settings::setCount(std::__cxx11::string const&) */
string * Settings::setCount(string *param_1)
{
ulong *puVar1;
istream *piVar2;
int8 *puVar3;
pthread_mutex_t *in_RSI;
allocator local_1ad;
int local_1ac;
int8 local_1a8;
stringstream local_1a0 [392];
std::mutex::lock();
/* try { // try from 00106221 to 00106230 has its CatchHandler @ 001062e5 */
std::__cxx11::stringstream::stringstream(local_1a0);
/* try { // try from 00106231 to 0010624c has its CatchHandler @ 001062ea */
puVar1 = (ulong *)std::istream::operator>>((istream *)local_1a0,&local_1ac);
piVar2 = std::istream::_M_extract<unsigned_long>(puVar1);
if (((byte)piVar2[*(long *)(*(long *)piVar2 + -0x18) + 0x20] & 5) == 0) {
if (local_1ac - 5U < 0xfffffffc) {
/* try { // try from 0010627d to 00106290 has its CatchHandler @ 001062e1 */
std::__cxx11::string::string<std::allocator<char>>(param_1,"failed",&local_1ad);
}
else {
/* try { // try from 0010629c to 001062a5 has its CatchHandler @ 001062ea */
puVar3 = (int8 *)
std::
map<int,unsigned_long,std::less<int>,std::allocator<std::pair<int_const,unsigned_long>>>
::operator[]((map<int,unsigned_long,std::less<int>,std::allocator<std::pair<int_const,unsigned_long>>>
*)((long)in_RSI + 0x60),&local_1ac);
*puVar3 = local_1a8;
/* try { // try from 001062a9 to 001062bc has its CatchHandler @ 001062df */
std::__cxx11::string::string<std::allocator<char>>(param_1,"ok",&local_1ad);
}
}
else {
/* try { // try from 0010625b to 0010626e has its CatchHandler @ 001062e3 */
std::__cxx11::string::string<std::allocator<char>>(param_1,"failed",&local_1ad);
}
std::__cxx11::stringstream::~stringstream(local_1a0);
pthread_mutex_unlock(in_RSI);
return param_1;
}
| |
41,034 | Settings::setCount(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | 666mxvbee[P]BattleShip/lib/Settings/Settings.cpp | std::string Settings::setCount(const std::string& cmd) {
std::lock_guard<std::mutex> lock(settings_mutex);
std::stringstream ss(cmd);
int typeShip;
uint64_t count;
if (!(ss >> typeShip >> count)) {
return "failed";
}
if (typeShip < 1 || typeShip > 4) {
return "failed";
}
shipCounts[typeShip] = count;
return "ok";
} | O3 | cpp | Settings::setCount(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x1a0, %rsp # imm = 0x1A0
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x5500
testl %eax, %eax
jne 0x6828
leaq 0x18(%rsp), %rdi
movq %r15, %rsi
movl $0x18, %edx
callq 0x5540
leaq 0x18(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x5210
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
callq 0x51d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
je 0x6794
leaq 0x10(%r14), %rax
movq %rax, (%r14)
leaq 0x13ab5(%rip), %rsi # 0x1a238
leaq 0x13ab4(%rip), %rdx # 0x1a23e
movq %r14, %rdi
callq 0x60b6
jmp 0x67f2
movl 0xc(%rsp), %eax
addl $-0x5, %eax
cmpl $-0x5, %eax
ja 0x67bf
leaq 0x10(%r14), %rax
movq %rax, (%r14)
leaq 0x13a8a(%rip), %rsi # 0x1a238
leaq 0x13a89(%rip), %rdx # 0x1a23e
movq %r14, %rdi
callq 0x60b6
jmp 0x67f2
movq 0x10(%rsp), %r15
leaq 0x60(%rbx), %rdi
leaq 0xc(%rsp), %rsi
callq 0x7434
movq %r15, (%rax)
leaq 0x10(%r14), %rax
movq %rax, (%r14)
leaq 0x13a52(%rip), %rsi # 0x1a235
leaq 0x13a4d(%rip), %rdx # 0x1a237
movq %r14, %rdi
callq 0x60b6
movq 0x1e75f(%rip), %rsi # 0x24f58
leaq 0x18(%rsp), %rdi
callq 0x52c0
leaq 0x98(%rsp), %rdi
callq 0x50f0
movq %rbx, %rdi
callq 0x52d0
movq %r14, %rax
addq $0x1a0, %rsp # imm = 0x1A0
popq %rbx
popq %r14
popq %r15
retq
movl %eax, %edi
callq 0x5260
jmp 0x683a
jmp 0x683a
jmp 0x683a
movq %rax, %r14
jmp 0x685b
movq %rax, %r14
movq 0x1e714(%rip), %rsi # 0x24f58
leaq 0x18(%rsp), %rdi
callq 0x52c0
leaq 0x98(%rsp), %rdi
callq 0x50f0
movq %rbx, %rdi
callq 0x52d0
movq %r14, %rdi
callq 0x55e0
nop
| _ZN8Settings8setCountERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push rbx
sub rsp, 1A0h
mov r15, rdx
mov rbx, rsi
mov r14, rdi
mov rdi, rsi
call _pthread_mutex_lock
test eax, eax
jnz loc_6828
lea rdi, [rsp+1B8h+var_1A0]
mov rsi, r15
mov edx, 18h
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(std::string const&,std::_Ios_Openmode)
lea rdi, [rsp+1B8h+var_1A0]
lea rsi, [rsp+1B8h+var_1AC]
call __ZNSirsERi; std::istream::operator>>(int &)
lea rsi, [rsp+1B8h+var_1A8]
mov rdi, rax
call __ZNSi10_M_extractImEERSiRT_; std::istream::_M_extract<ulong>(ulong &)
mov rcx, [rax]
mov rcx, [rcx-18h]
test byte ptr [rax+rcx+20h], 5
jz short loc_6794
lea rax, [r14+10h]
mov [r14], rax
lea rsi, aFailed; "failed"
lea rdx, aFailed+6; ""
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)
jmp short loc_67F2
loc_6794:
mov eax, [rsp+1B8h+var_1AC]
add eax, 0FFFFFFFBh
cmp eax, 0FFFFFFFBh
ja short loc_67BF
lea rax, [r14+10h]
mov [r14], rax
lea rsi, aFailed; "failed"
lea rdx, aFailed+6; ""
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)
jmp short loc_67F2
loc_67BF:
mov r15, [rsp+1B8h+var_1A8]
lea rdi, [rbx+60h]
lea rsi, [rsp+1B8h+var_1AC]
call _ZNSt3mapIimSt4lessIiESaISt4pairIKimEEEixERS3_; std::map<int,ulong>::operator[](int const&)
mov [rax], r15
lea rax, [r14+10h]
mov [r14], rax
lea rsi, aOk; "ok"
lea rdx, aOk+2; ""
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)
loc_67F2:
mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+1B8h+var_1A0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
lea rdi, [rsp+1B8h+var_120]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, rbx
call _pthread_mutex_unlock
mov rax, r14
add rsp, 1A0h
pop rbx
pop r14
pop r15
retn
loc_6828:
mov edi, eax; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
jmp short loc_683A
jmp short loc_683A
jmp short loc_683A
mov r14, rax
jmp short loc_685B
loc_683A:
mov r14, rax
mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+1B8h+var_1A0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
lea rdi, [rsp+1B8h+var_120]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
loc_685B:
mov rdi, rbx
call _pthread_mutex_unlock
mov rdi, r14
call __Unwind_Resume
| _QWORD * Settings::setCount(_QWORD *a1, long long a2, long long a3)
{
int v4; // eax
long long v5; // rax
_QWORD *v6; // rax
long long v7; // r15
int v9; // [rsp+Ch] [rbp-1ACh] BYREF
long long v10; // [rsp+10h] [rbp-1A8h] BYREF
_BYTE v11[128]; // [rsp+18h] [rbp-1A0h] BYREF
_BYTE v12[288]; // [rsp+98h] [rbp-120h] BYREF
v4 = pthread_mutex_lock(a2);
if ( v4 )
std::__throw_system_error(v4);
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v11, a3, 24LL);
v5 = std::istream::operator>>(v11, &v9);
v6 = (_QWORD *)std::istream::_M_extract<unsigned long>(v5, &v10);
if ( (*((_BYTE *)v6 + *(_QWORD *)(*v6 - 24LL) + 32) & 5) != 0 || (unsigned int)(v9 - 5) <= 0xFFFFFFFB )
{
*a1 = a1 + 2;
std::string::_M_construct<char const*>((long long)a1, "failed", (long long)"");
}
else
{
v7 = v10;
*(_QWORD *)std::map<int,unsigned long>::operator[](a2 + 96, &v9) = v7;
*a1 = a1 + 2;
std::string::_M_construct<char const*>((long long)a1, "ok", (long long)"");
}
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(
v11,
&`VTT for'std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>);
std::ios_base::~ios_base((std::ios_base *)v12);
pthread_mutex_unlock(a2);
return a1;
}
| setCount:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x1a0
MOV R15,RDX
MOV RBX,RSI
MOV R14,RDI
MOV RDI,RSI
CALL 0x00105500
TEST EAX,EAX
JNZ 0x00106828
LAB_00106739:
LEA RDI,[RSP + 0x18]
MOV RSI,R15
MOV EDX,0x18
CALL 0x00105540
LAB_0010674b:
LEA RDI,[RSP + 0x18]
LEA RSI,[RSP + 0xc]
CALL 0x00105210
LEA RSI,[RSP + 0x10]
MOV RDI,RAX
CALL 0x001051d0
MOV RCX,qword ptr [RAX]
MOV RCX,qword ptr [RCX + -0x18]
TEST byte ptr [RAX + RCX*0x1 + 0x20],0x5
JZ 0x00106794
LEA RAX,[R14 + 0x10]
MOV qword ptr [R14],RAX
LAB_0010677c:
LEA RSI,[0x11a238]
LEA RDX,[0x11a23e]
MOV RDI,R14
CALL 0x001060b6
JMP 0x001067f2
LAB_00106794:
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,-0x5
CMP EAX,-0x5
JA 0x001067bf
LEA RAX,[R14 + 0x10]
MOV qword ptr [R14],RAX
LAB_001067a7:
LEA RSI,[0x11a238]
LEA RDX,[0x11a23e]
MOV RDI,R14
CALL 0x001060b6
JMP 0x001067f2
LAB_001067bf:
MOV R15,qword ptr [RSP + 0x10]
LEA RDI,[RBX + 0x60]
LAB_001067c8:
LEA RSI,[RSP + 0xc]
CALL 0x00107434
MOV qword ptr [RAX],R15
LEA RAX,[R14 + 0x10]
MOV qword ptr [R14],RAX
LAB_001067dc:
LEA RSI,[0x11a235]
LEA RDX,[0x11a237]
MOV RDI,R14
CALL 0x001060b6
LAB_001067f2:
MOV RSI,qword ptr [0x00124f58]
LEA RDI,[RSP + 0x18]
CALL 0x001052c0
LEA RDI,[RSP + 0x98]
CALL 0x001050f0
MOV RDI,RBX
CALL 0x001052d0
MOV RAX,R14
ADD RSP,0x1a0
POP RBX
POP R14
POP R15
RET
LAB_00106828:
MOV EDI,EAX
CALL 0x00105260
|
/* Settings::setCount(std::__cxx11::string const&) */
string * Settings::setCount(string *param_1)
{
int iVar1;
ulong *puVar2;
istream *piVar3;
int8 *puVar4;
pthread_mutex_t *in_RSI;
int local_1ac;
int8 local_1a8;
stringstream local_1a0 [128];
ios_base local_120 [264];
iVar1 = pthread_mutex_lock(in_RSI);
if (iVar1 == 0) {
/* try { // try from 00106739 to 0010674a has its CatchHandler @ 00106835 */
std::__cxx11::stringstream::stringstream(local_1a0);
/* try { // try from 0010674b to 00106766 has its CatchHandler @ 0010683a */
puVar2 = (ulong *)std::istream::operator>>((istream *)local_1a0,&local_1ac);
piVar3 = std::istream::_M_extract<unsigned_long>(puVar2);
if (((byte)piVar3[*(long *)(*(long *)piVar3 + -0x18) + 0x20] & 5) == 0) {
if (local_1ac - 5U < 0xfffffffc) {
*(string **)param_1 = param_1 + 0x10;
/* try { // try from 001067a7 to 001067bc has its CatchHandler @ 00106831 */
std::__cxx11::string::_M_construct<char_const*>(param_1,"failed","");
}
else {
/* try { // try from 001067c8 to 001067d1 has its CatchHandler @ 0010683a */
puVar4 = (int8 *)
std::
map<int,unsigned_long,std::less<int>,std::allocator<std::pair<int_const,unsigned_long>>>
::operator[]((map<int,unsigned_long,std::less<int>,std::allocator<std::pair<int_const,unsigned_long>>>
*)((long)in_RSI + 0x60),&local_1ac);
*puVar4 = local_1a8;
*(string **)param_1 = param_1 + 0x10;
/* try { // try from 001067dc to 001067f1 has its CatchHandler @ 0010682f */
std::__cxx11::string::_M_construct<char_const*>(param_1,&DAT_0011a235,&DAT_0011a237);
}
}
else {
*(string **)param_1 = param_1 + 0x10;
/* try { // try from 0010677c to 00106791 has its CatchHandler @ 00106833 */
std::__cxx11::string::_M_construct<char_const*>(param_1,"failed","");
}
std::__cxx11::stringstream::~stringstream(local_1a0);
std::ios_base::~ios_base(local_120);
pthread_mutex_unlock(in_RSI);
return param_1;
}
/* WARNING: Subroutine does not return */
std::__throw_system_error(iVar1);
}
| |
41,035 | lshift | eloqsql/strings/dtoa.c | static Bigint *lshift(Bigint *b, int k, Stack_alloc *alloc)
{
int i, k1, n, n1;
Bigint *b1;
ULong *x, *x1, *xe, z;
n= k >> 5;
k1= b->k;
n1= n + b->wds + 1;
for (i= b->maxwds; n1 > i; i<<= 1)
k1++;
b1= Balloc(k1, alloc);
x1= b1->p.x;
for (i= 0; i < n; i++)
*x1++= 0;
x= b->p.x;
xe= x + b->wds;
if (k&= 0x1f)
{
k1= 32 - k;
z= 0;
do
{
*x1++= *x << k | z;
z= *x++ >> k1;
}
while (x < xe);
if ((*x1= z))
++n1;
}
else
do
*x1++= *x++;
while (x < xe);
b1->wds= n1 - 1;
Bfree(b, alloc);
return b1;
} | O0 | c | lshift:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl -0xc(%rbp), %eax
sarl $0x5, %eax
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x20(%rbp)
movl -0x24(%rbp), %eax
movq -0x8(%rbp), %rcx
addl 0x14(%rcx), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x1c(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jle 0xabc8b
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
movl -0x1c(%rbp), %eax
shll %eax
movl %eax, -0x1c(%rbp)
jmp 0xabc70
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0xab500
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0xabcd5
movq -0x40(%rbp), %rax
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, -0x40(%rbp)
movl $0x0, (%rax)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0xabcad
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq 0x14(%rcx), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movl -0xc(%rbp), %eax
andl $0x1f, %eax
movl %eax, -0xc(%rbp)
cmpl $0x0, %eax
je 0xabd74
movl $0x20, %eax
subl -0xc(%rbp), %eax
movl %eax, -0x20(%rbp)
movl $0x0, -0x4c(%rbp)
movq -0x38(%rbp), %rax
movl (%rax), %eax
movl -0xc(%rbp), %ecx
shll %cl, %eax
movl %eax, %ecx
orl -0x4c(%rbp), %ecx
movq -0x40(%rbp), %rax
movq %rax, %rdx
addq $0x4, %rdx
movq %rdx, -0x40(%rbp)
movl %ecx, (%rax)
movq -0x38(%rbp), %rax
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, -0x38(%rbp)
movl (%rax), %eax
movl -0x20(%rbp), %ecx
shrl %cl, %eax
movl %eax, -0x4c(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x48(%rbp), %rax
jb 0xabd17
movl -0x4c(%rbp), %eax
movq -0x40(%rbp), %rcx
movl %eax, (%rcx)
cmpl $0x0, %eax
je 0xabd72
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xabda4
jmp 0xabd76
movq -0x38(%rbp), %rax
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, -0x38(%rbp)
movl (%rax), %ecx
movq -0x40(%rbp), %rax
movq %rax, %rdx
addq $0x4, %rdx
movq %rdx, -0x40(%rbp)
movl %ecx, (%rax)
movq -0x38(%rbp), %rax
cmpq -0x48(%rbp), %rax
jb 0xabd76
jmp 0xabda4
movl -0x28(%rbp), %ecx
subl $0x1, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xabbb0
movq -0x30(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| lshift:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov eax, [rbp+var_C]
sar eax, 5
mov [rbp+var_24], eax
mov rax, [rbp+var_8]
mov eax, [rax+8]
mov [rbp+var_20], eax
mov eax, [rbp+var_24]
mov rcx, [rbp+var_8]
add eax, [rcx+14h]
add eax, 1
mov [rbp+var_28], eax
mov rax, [rbp+var_8]
mov eax, [rax+0Ch]
mov [rbp+var_1C], eax
loc_ABC70:
mov eax, [rbp+var_28]
cmp eax, [rbp+var_1C]
jle short loc_ABC8B
mov eax, [rbp+var_20]
add eax, 1
mov [rbp+var_20], eax
mov eax, [rbp+var_1C]
shl eax, 1
mov [rbp+var_1C], eax
jmp short loc_ABC70
loc_ABC8B:
mov edi, [rbp+var_20]
mov rsi, [rbp+var_18]
call Balloc
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
mov rax, [rax]
mov [rbp+var_40], rax
mov [rbp+var_1C], 0
loc_ABCAD:
mov eax, [rbp+var_1C]
cmp eax, [rbp+var_24]
jge short loc_ABCD5
mov rax, [rbp+var_40]
mov rcx, rax
add rcx, 4
mov [rbp+var_40], rcx
mov dword ptr [rax], 0
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
jmp short loc_ABCAD
loc_ABCD5:
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov rcx, [rbp+var_8]
movsxd rcx, dword ptr [rcx+14h]
shl rcx, 2
add rax, rcx
mov [rbp+var_48], rax
mov eax, [rbp+var_C]
and eax, 1Fh
mov [rbp+var_C], eax
cmp eax, 0
jz short loc_ABD74
mov eax, 20h ; ' '
sub eax, [rbp+var_C]
mov [rbp+var_20], eax
mov [rbp+var_4C], 0
loc_ABD17:
mov rax, [rbp+var_38]
mov eax, [rax]
mov ecx, [rbp+var_C]
shl eax, cl
mov ecx, eax
or ecx, [rbp+var_4C]
mov rax, [rbp+var_40]
mov rdx, rax
add rdx, 4
mov [rbp+var_40], rdx
mov [rax], ecx
mov rax, [rbp+var_38]
mov rcx, rax
add rcx, 4
mov [rbp+var_38], rcx
mov eax, [rax]
mov ecx, [rbp+var_20]
shr eax, cl
mov [rbp+var_4C], eax
mov rax, [rbp+var_38]
cmp rax, [rbp+var_48]
jb short loc_ABD17
mov eax, [rbp+var_4C]
mov rcx, [rbp+var_40]
mov [rcx], eax
cmp eax, 0
jz short loc_ABD72
mov eax, [rbp+var_28]
add eax, 1
mov [rbp+var_28], eax
loc_ABD72:
jmp short loc_ABDA4
loc_ABD74:
jmp short $+2
loc_ABD76:
mov rax, [rbp+var_38]
mov rcx, rax
add rcx, 4
mov [rbp+var_38], rcx
mov ecx, [rax]
mov rax, [rbp+var_40]
mov rdx, rax
add rdx, 4
mov [rbp+var_40], rdx
mov [rax], ecx
mov rax, [rbp+var_38]
cmp rax, [rbp+var_48]
jb short loc_ABD76
jmp short $+2
loc_ABDA4:
mov ecx, [rbp+var_28]
sub ecx, 1
mov rax, [rbp+var_30]
mov [rax+14h], ecx
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_18]
call Bfree
mov rax, [rbp+var_30]
add rsp, 50h
pop rbp
retn
| long long lshift(unsigned long long a1, int a2, unsigned long long *a3)
{
int *v3; // rax
int *v4; // rax
int *v5; // rax
int *v6; // rax
int v7; // ecx
int *v8; // rax
int v10; // [rsp+4h] [rbp-4Ch]
unsigned long long v11; // [rsp+8h] [rbp-48h]
int *v12; // [rsp+10h] [rbp-40h]
int *v13; // [rsp+18h] [rbp-38h]
long long v14; // [rsp+20h] [rbp-30h]
int v15; // [rsp+28h] [rbp-28h]
int v16; // [rsp+30h] [rbp-20h]
int i; // [rsp+34h] [rbp-1Ch]
int j; // [rsp+34h] [rbp-1Ch]
char v20; // [rsp+44h] [rbp-Ch]
v16 = *(_DWORD *)(a1 + 8);
v15 = *(_DWORD *)(a1 + 20) + (a2 >> 5) + 1;
for ( i = *(_DWORD *)(a1 + 12); v15 > i; i *= 2 )
++v16;
v14 = Balloc(v16, (long long)a3);
v12 = *(int **)v14;
for ( j = 0; j < a2 >> 5; ++j )
{
v3 = v12++;
*v3 = 0;
}
v13 = *(int **)a1;
v11 = 4LL * *(int *)(a1 + 20) + *(_QWORD *)a1;
v20 = a2 & 0x1F;
if ( (a2 & 0x1F) != 0 )
{
v10 = 0;
do
{
v4 = v12++;
*v4 = v10 | (*v13 << v20);
v5 = v13++;
v10 = (unsigned int)*v5 >> (32 - v20);
}
while ( (unsigned long long)v13 < v11 );
*v12 = v10;
if ( v10 )
++v15;
}
else
{
do
{
v6 = v13++;
v7 = *v6;
v8 = v12++;
*v8 = v7;
}
while ( (unsigned long long)v13 < v11 );
}
*(_DWORD *)(v14 + 20) = v15 - 1;
Bfree(a1, a3);
return v14;
}
| lshift:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV EAX,dword ptr [RBP + -0xc]
SAR EAX,0x5
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x20],EAX
MOV EAX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x8]
ADD EAX,dword ptr [RCX + 0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x28],EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0xc]
MOV dword ptr [RBP + -0x1c],EAX
LAB_001abc70:
MOV EAX,dword ptr [RBP + -0x28]
CMP EAX,dword ptr [RBP + -0x1c]
JLE 0x001abc8b
MOV EAX,dword ptr [RBP + -0x20]
ADD EAX,0x1
MOV dword ptr [RBP + -0x20],EAX
MOV EAX,dword ptr [RBP + -0x1c]
SHL EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x001abc70
LAB_001abc8b:
MOV EDI,dword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001ab500
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x40],RAX
MOV dword ptr [RBP + -0x1c],0x0
LAB_001abcad:
MOV EAX,dword ptr [RBP + -0x1c]
CMP EAX,dword ptr [RBP + -0x24]
JGE 0x001abcd5
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,RAX
ADD RCX,0x4
MOV qword ptr [RBP + -0x40],RCX
MOV dword ptr [RAX],0x0
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x001abcad
LAB_001abcd5:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x8]
MOVSXD RCX,dword ptr [RCX + 0x14]
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOV EAX,dword ptr [RBP + -0xc]
AND EAX,0x1f
MOV dword ptr [RBP + -0xc],EAX
CMP EAX,0x0
JZ 0x001abd74
MOV EAX,0x20
SUB EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x20],EAX
MOV dword ptr [RBP + -0x4c],0x0
LAB_001abd17:
MOV RAX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RAX]
MOV ECX,dword ptr [RBP + -0xc]
SHL EAX,CL
MOV ECX,EAX
OR ECX,dword ptr [RBP + -0x4c]
MOV RAX,qword ptr [RBP + -0x40]
MOV RDX,RAX
ADD RDX,0x4
MOV qword ptr [RBP + -0x40],RDX
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,RAX
ADD RCX,0x4
MOV qword ptr [RBP + -0x38],RCX
MOV EAX,dword ptr [RAX]
MOV ECX,dword ptr [RBP + -0x20]
SHR EAX,CL
MOV dword ptr [RBP + -0x4c],EAX
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x48]
JC 0x001abd17
MOV EAX,dword ptr [RBP + -0x4c]
MOV RCX,qword ptr [RBP + -0x40]
MOV dword ptr [RCX],EAX
CMP EAX,0x0
JZ 0x001abd72
MOV EAX,dword ptr [RBP + -0x28]
ADD EAX,0x1
MOV dword ptr [RBP + -0x28],EAX
LAB_001abd72:
JMP 0x001abda4
LAB_001abd74:
JMP 0x001abd76
LAB_001abd76:
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,RAX
ADD RCX,0x4
MOV qword ptr [RBP + -0x38],RCX
MOV ECX,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x40]
MOV RDX,RAX
ADD RDX,0x4
MOV qword ptr [RBP + -0x40],RDX
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x48]
JC 0x001abd76
JMP 0x001abda4
LAB_001abda4:
MOV ECX,dword ptr [RBP + -0x28]
SUB ECX,0x1
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x14],ECX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001abbb0
MOV RAX,qword ptr [RBP + -0x30]
ADD RSP,0x50
POP RBP
RET
|
int8 * lshift(int8 *param_1,uint param_2,int8 param_3)
{
sbyte sVar1;
int iVar2;
int8 *puVar3;
uint *puVar4;
uint *puVar5;
uint *puVar6;
uint local_54;
uint *local_48;
uint *local_40;
int local_30;
int local_28;
int local_24;
local_28 = *(int *)(param_1 + 1);
iVar2 = ((int)param_2 >> 5) + *(int *)((long)param_1 + 0x14);
local_30 = iVar2 + 1;
for (local_24 = *(int *)((long)param_1 + 0xc); local_24 < local_30; local_24 = local_24 << 1) {
local_28 = local_28 + 1;
}
puVar3 = (int8 *)Balloc(local_28,param_3);
local_48 = (uint *)*puVar3;
for (local_24 = 0; local_24 < (int)param_2 >> 5; local_24 = local_24 + 1) {
*local_48 = 0;
local_48 = local_48 + 1;
}
local_40 = (uint *)*param_1;
puVar4 = local_40 + *(int *)((long)param_1 + 0x14);
if ((param_2 & 0x1f) == 0) {
do {
puVar5 = local_40 + 1;
*local_48 = *local_40;
local_48 = local_48 + 1;
local_40 = puVar5;
} while (puVar5 < puVar4);
}
else {
sVar1 = (sbyte)(param_2 & 0x1f);
local_54 = 0;
do {
puVar6 = local_48 + 1;
*local_48 = *local_40 << sVar1 | local_54;
puVar5 = local_40 + 1;
local_54 = *local_40 >> (0x20U - sVar1 & 0x1f);
local_48 = puVar6;
local_40 = puVar5;
} while (puVar5 < puVar4);
*puVar6 = local_54;
if (local_54 != 0) {
local_30 = iVar2 + 2;
}
}
*(int *)((long)puVar3 + 0x14) = local_30 + -1;
Bfree(param_1,param_3);
return puVar3;
}
| |
41,036 | lshift | eloqsql/strings/dtoa.c | static Bigint *lshift(Bigint *b, int k, Stack_alloc *alloc)
{
int i, k1, n, n1;
Bigint *b1;
ULong *x, *x1, *xe, z;
n= k >> 5;
k1= b->k;
n1= n + b->wds + 1;
for (i= b->maxwds; n1 > i; i<<= 1)
k1++;
b1= Balloc(k1, alloc);
x1= b1->p.x;
for (i= 0; i < n; i++)
*x1++= 0;
x= b->p.x;
xe= x + b->wds;
if (k&= 0x1f)
{
k1= 32 - k;
z= 0;
do
{
*x1++= *x << k | z;
z= *x++ >> k1;
}
while (x < xe);
if ((*x1= z))
++n1;
}
else
do
*x1++= *x++;
while (x < xe);
b1->wds= n1 - 1;
Bfree(b, alloc);
return b1;
} | O3 | c | lshift:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %r15d
movq %rdi, %r14
movl %esi, %r12d
shrl $0x5, %r12d
movl 0x8(%rdi), %edi
movl 0xc(%r14), %eax
movl 0x14(%r14), %ebx
addl %r12d, %ebx
cmpl %eax, %ebx
jl 0x7b479
incl %edi
addl %eax, %eax
jmp 0x7b46f
movq %rdx, -0x38(%rbp)
movq %rdx, %rsi
callq 0x7b01c
movq (%rax), %r13
cmpl $0x20, %r15d
jb 0x7b4b0
decl %r12d
leaq 0x4(,%r12,4), %rdx
movq %r13, %rdi
xorl %esi, %esi
movq %rax, -0x30(%rbp)
callq 0x261c0
movq -0x30(%rbp), %rax
leaq 0x4(%r13,%r12,4), %r13
movq (%r14), %rdx
movslq 0x14(%r14), %rcx
leaq (%rdx,%rcx,4), %rsi
andl $0x1f, %r15d
je 0x7b4fc
movl $0x20, %r9d
subl %r15d, %r9d
xorl %edi, %edi
movl (%rdx), %r8d
movl %r15d, %ecx
shll %cl, %r8d
orl %edi, %r8d
movl %r8d, (%r13)
addq $0x4, %r13
movl (%rdx), %edi
addq $0x4, %rdx
movl %r9d, %ecx
shrl %cl, %edi
cmpq %rsi, %rdx
jb 0x7b4cc
movl %edi, (%r13)
cmpl $0x1, %edi
sbbl $-0x1, %ebx
jmp 0x7b50f
movl (%rdx), %ecx
addq $0x4, %rdx
movl %ecx, (%r13)
addq $0x4, %r13
cmpq %rsi, %rdx
jb 0x7b4fc
movl %ebx, 0x14(%rax)
movq %r14, %rdi
movq -0x38(%rbp), %rsi
movq %rax, %rbx
callq 0x7b415
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| lshift:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r15d, esi
mov r14, rdi
mov r12d, esi
shr r12d, 5
mov edi, [rdi+8]
mov eax, [r14+0Ch]
mov ebx, [r14+14h]
add ebx, r12d
loc_7B46F:
cmp ebx, eax
jl short loc_7B479
inc edi
add eax, eax
jmp short loc_7B46F
loc_7B479:
mov [rbp+var_38], rdx
mov rsi, rdx
call Balloc
mov r13, [rax]
cmp r15d, 20h ; ' '
jb short loc_7B4B0
dec r12d
lea rdx, ds:4[r12*4]
mov rdi, r13
xor esi, esi
mov [rbp+var_30], rax
call _memset
mov rax, [rbp+var_30]
lea r13, [r13+r12*4+4]
loc_7B4B0:
mov rdx, [r14]
movsxd rcx, dword ptr [r14+14h]
lea rsi, [rdx+rcx*4]
and r15d, 1Fh
jz short loc_7B4FC
mov r9d, 20h ; ' '
sub r9d, r15d
xor edi, edi
loc_7B4CC:
mov r8d, [rdx]
mov ecx, r15d
shl r8d, cl
or r8d, edi
mov [r13+0], r8d
add r13, 4
mov edi, [rdx]
add rdx, 4
mov ecx, r9d
shr edi, cl
cmp rdx, rsi
jb short loc_7B4CC
mov [r13+0], edi
cmp edi, 1
sbb ebx, 0FFFFFFFFh
jmp short loc_7B50F
loc_7B4FC:
mov ecx, [rdx]
add rdx, 4
mov [r13+0], ecx
add r13, 4
cmp rdx, rsi
jb short loc_7B4FC
loc_7B50F:
mov [rax+14h], ebx
mov rdi, r14
mov rsi, [rbp+var_38]
mov rbx, rax
call Bfree
mov rax, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long lshift(unsigned long long a1, unsigned int a2, unsigned long long *a3)
{
char v3; // r15
int v5; // edi
int v6; // eax
int v7; // ebx
long long v8; // rax
int *v9; // r13
long long v10; // r12
int *v11; // rdx
unsigned long long v12; // rsi
int v13; // r15d
int v14; // edi
unsigned int v15; // edi
int v16; // ecx
long long v17; // rbx
long long v20; // [rsp+10h] [rbp-30h]
v3 = a2;
v5 = *(_DWORD *)(a1 + 8);
v6 = *(_DWORD *)(a1 + 12);
v7 = (a2 >> 5) + *(_DWORD *)(a1 + 20);
while ( v7 >= v6 )
{
++v5;
v6 *= 2;
}
v8 = Balloc(v5, (long long)a3);
v9 = *(int **)v8;
if ( a2 >= 0x20 )
{
v10 = (a2 >> 5) - 1;
v20 = v8;
memset(*(_QWORD *)v8, 0LL, 4 * v10 + 4);
v8 = v20;
v9 += v10 + 1;
}
v11 = *(int **)a1;
v12 = *(_QWORD *)a1 + 4LL * *(int *)(a1 + 20);
v13 = v3 & 0x1F;
if ( v13 )
{
v14 = 0;
do
{
*v9++ = v14 | (*v11 << v13);
v15 = *v11++;
v14 = v15 >> (32 - v13);
}
while ( (unsigned long long)v11 < v12 );
*v9 = v14;
v7 -= (v14 == 0) - 1;
}
else
{
do
{
v16 = *v11++;
*v9++ = v16;
}
while ( (unsigned long long)v11 < v12 );
}
*(_DWORD *)(v8 + 20) = v7;
v17 = v8;
Bfree(a1, a3);
return v17;
}
| lshift:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R15D,ESI
MOV R14,RDI
MOV R12D,ESI
SHR R12D,0x5
MOV EDI,dword ptr [RDI + 0x8]
MOV EAX,dword ptr [R14 + 0xc]
MOV EBX,dword ptr [R14 + 0x14]
ADD EBX,R12D
LAB_0017b46f:
CMP EBX,EAX
JL 0x0017b479
INC EDI
ADD EAX,EAX
JMP 0x0017b46f
LAB_0017b479:
MOV qword ptr [RBP + -0x38],RDX
MOV RSI,RDX
CALL 0x0017b01c
MOV R13,qword ptr [RAX]
CMP R15D,0x20
JC 0x0017b4b0
DEC R12D
LEA RDX,[0x4 + R12*0x4]
MOV RDI,R13
XOR ESI,ESI
MOV qword ptr [RBP + -0x30],RAX
CALL 0x001261c0
MOV RAX,qword ptr [RBP + -0x30]
LEA R13,[R13 + R12*0x4 + 0x4]
LAB_0017b4b0:
MOV RDX,qword ptr [R14]
MOVSXD RCX,dword ptr [R14 + 0x14]
LEA RSI,[RDX + RCX*0x4]
AND R15D,0x1f
JZ 0x0017b4fc
MOV R9D,0x20
SUB R9D,R15D
XOR EDI,EDI
LAB_0017b4cc:
MOV R8D,dword ptr [RDX]
MOV ECX,R15D
SHL R8D,CL
OR R8D,EDI
MOV dword ptr [R13],R8D
ADD R13,0x4
MOV EDI,dword ptr [RDX]
ADD RDX,0x4
MOV ECX,R9D
SHR EDI,CL
CMP RDX,RSI
JC 0x0017b4cc
MOV dword ptr [R13],EDI
CMP EDI,0x1
SBB EBX,-0x1
JMP 0x0017b50f
LAB_0017b4fc:
MOV ECX,dword ptr [RDX]
ADD RDX,0x4
MOV dword ptr [R13],ECX
ADD R13,0x4
CMP RDX,RSI
JC 0x0017b4fc
LAB_0017b50f:
MOV dword ptr [RAX + 0x14],EBX
MOV RDI,R14
MOV RSI,qword ptr [RBP + -0x38]
MOV RBX,RAX
CALL 0x0017b415
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 * lshift(int8 *param_1,uint param_2,int8 param_3)
{
uint *puVar1;
sbyte sVar2;
int iVar3;
int8 *puVar4;
uint *puVar5;
int iVar6;
uint uVar7;
ulong uVar8;
uint *__s;
iVar6 = *(int *)((long)param_1 + 0x14) + (param_2 >> 5);
for (iVar3 = *(int *)((long)param_1 + 0xc); iVar3 <= iVar6; iVar3 = iVar3 * 2) {
}
puVar4 = (int8 *)Balloc();
__s = (uint *)*puVar4;
if (0x1f < param_2) {
uVar8 = (ulong)((param_2 >> 5) - 1);
memset(__s,0,uVar8 * 4 + 4);
__s = __s + uVar8 + 1;
}
puVar5 = (uint *)*param_1;
puVar1 = puVar5 + *(int *)((long)param_1 + 0x14);
if ((param_2 & 0x1f) == 0) {
do {
uVar7 = *puVar5;
puVar5 = puVar5 + 1;
*__s = uVar7;
__s = __s + 1;
} while (puVar5 < puVar1);
}
else {
sVar2 = (sbyte)(param_2 & 0x1f);
uVar7 = 0;
do {
*__s = *puVar5 << sVar2 | uVar7;
__s = __s + 1;
uVar7 = *puVar5;
puVar5 = puVar5 + 1;
uVar7 = uVar7 >> (0x20U - sVar2 & 0x1f);
} while (puVar5 < puVar1);
*__s = uVar7;
iVar6 = (iVar6 + 1) - (uint)(uVar7 == 0);
}
*(int *)((long)puVar4 + 0x14) = iVar6;
Bfree(param_1,param_3);
return puVar4;
}
| |
41,037 | minja::UnaryOpExpr::UnaryOpExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::UnaryOpExpr::Op) | monkey531[P]llama/common/minja.hpp | Expression(const Location & location) : location(location) {} | O1 | cpp | minja::UnaryOpExpr::UnaryOpExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::UnaryOpExpr::Op):
leaq 0x8cf6b(%rip), %rax # 0xe3288
addq $0x10, %rax
movq %rax, (%rdi)
movq (%rsi), %rax
movq %rax, 0x8(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x10(%rdi)
testq %rax, %rax
je 0x5634e
movq 0x8ec59(%rip), %r8 # 0xe4f98
cmpb $0x0, (%r8)
je 0x5634a
incl 0x8(%rax)
jmp 0x5634e
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x18(%rdi)
leaq 0x8d39b(%rip), %rax # 0xe36f8
addq $0x10, %rax
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x28(%rdi)
movups (%rdx), %xmm0
movq %rax, 0x8(%rdx)
movups %xmm0, 0x20(%rdi)
movq %rax, (%rdx)
movq %rax, 0x38(%rdi)
movups (%rcx), %xmm0
movq %rax, 0x8(%rcx)
movups %xmm0, 0x30(%rdi)
movq %rax, (%rcx)
retq
nop
| _ZN5minja9SliceExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEES7_:
lea rax, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rax, 10h
mov [rdi], rax
mov rax, [rsi]
mov [rdi+8], rax
mov rax, [rsi+8]
mov [rdi+10h], rax
test rax, rax
jz short loc_5634E
mov r8, cs:__libc_single_threaded_ptr
cmp byte ptr [r8], 0
jz short loc_5634A
inc dword ptr [rax+8]
jmp short loc_5634E
loc_5634A:
lock inc dword ptr [rax+8]
loc_5634E:
mov rax, [rsi+10h]
mov [rdi+18h], rax
lea rax, _ZTVN5minja9SliceExprE; `vtable for'minja::SliceExpr
add rax, 10h
mov [rdi], rax
xor eax, eax
mov [rdi+28h], rax
movups xmm0, xmmword ptr [rdx]
mov [rdx+8], rax
movups xmmword ptr [rdi+20h], xmm0
mov [rdx], rax
mov [rdi+38h], rax
movups xmm0, xmmword ptr [rcx]
mov [rcx+8], rax
movups xmmword ptr [rdi+30h], xmm0
mov [rcx], rax
retn
| long long minja::SliceExpr::SliceExpr(long long a1, _QWORD *a2, __int128 *a3, __int128 *a4)
{
long long v4; // rax
long long result; // rax
__int128 v6; // xmm0
__int128 v7; // xmm0
*(_QWORD *)a1 = &`vtable for'minja::Expression + 2;
*(_QWORD *)(a1 + 8) = *a2;
v4 = a2[1];
*(_QWORD *)(a1 + 16) = v4;
if ( v4 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v4 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v4 + 8));
}
*(_QWORD *)(a1 + 24) = a2[2];
*(_QWORD *)a1 = &`vtable for'minja::SliceExpr + 2;
result = 0LL;
*(_QWORD *)(a1 + 40) = 0LL;
v6 = *a3;
*((_QWORD *)a3 + 1) = 0LL;
*(_OWORD *)(a1 + 32) = v6;
*(_QWORD *)a3 = 0LL;
*(_QWORD *)(a1 + 56) = 0LL;
v7 = *a4;
*((_QWORD *)a4 + 1) = 0LL;
*(_OWORD *)(a1 + 48) = v7;
*(_QWORD *)a4 = 0LL;
return result;
}
| SliceExpr:
LEA RAX,[0x1e3288]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x10],RAX
TEST RAX,RAX
JZ 0x0015634e
MOV R8,qword ptr [0x001e4f98]
CMP byte ptr [R8],0x0
JZ 0x0015634a
INC dword ptr [RAX + 0x8]
JMP 0x0015634e
LAB_0015634a:
INC.LOCK dword ptr [RAX + 0x8]
LAB_0015634e:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RDI + 0x18],RAX
LEA RAX,[0x1e36f8]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
XOR EAX,EAX
MOV qword ptr [RDI + 0x28],RAX
MOVUPS XMM0,xmmword ptr [RDX]
MOV qword ptr [RDX + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOV qword ptr [RDX],RAX
MOV qword ptr [RDI + 0x38],RAX
MOVUPS XMM0,xmmword ptr [RCX]
MOV qword ptr [RCX + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x30],XMM0
MOV qword ptr [RCX],RAX
RET
|
/* minja::SliceExpr::SliceExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&,
std::shared_ptr<minja::Expression>&&) */
void __thiscall
minja::SliceExpr::SliceExpr
(SliceExpr *this,Location *param_1,shared_ptr *param_2,shared_ptr *param_3)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR___cxa_pure_virtual_001e3298;
*(int8 *)(this + 8) = *(int8 *)param_1;
lVar1 = *(long *)(param_1 + 8);
*(long *)(this + 0x10) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_001e4f98 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10);
*(int ***)this = &PTR_do_evaluate_001e3708;
*(int8 *)(this + 0x28) = 0;
uVar2 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = 0;
*(int8 *)(this + 0x20) = *(int8 *)param_2;
*(int8 *)(this + 0x28) = uVar2;
*(int8 *)param_2 = 0;
*(int8 *)(this + 0x38) = 0;
uVar2 = *(int8 *)(param_3 + 8);
*(int8 *)(param_3 + 8) = 0;
*(int8 *)(this + 0x30) = *(int8 *)param_3;
*(int8 *)(this + 0x38) = uVar2;
*(int8 *)param_3 = 0;
return;
}
| |
41,038 | minja::UnaryOpExpr::UnaryOpExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::UnaryOpExpr::Op) | monkey531[P]llama/common/minja.hpp | Expression(const Location & location) : location(location) {} | O3 | cpp | minja::UnaryOpExpr::UnaryOpExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::UnaryOpExpr::Op):
leaq 0x85175(%rip), %rax # 0xdf288
addq $0x10, %rax
movq %rax, (%rdi)
movq (%rsi), %rax
movq %rax, 0x8(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x10(%rdi)
testq %rax, %rax
je 0x5a144
movq 0x86e63(%rip), %r9 # 0xe0f98
cmpb $0x0, (%r9)
je 0x5a140
incl 0x8(%rax)
jmp 0x5a144
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x18(%rdi)
leaq 0x85895(%rip), %rax # 0xdf9e8
addq $0x10, %rax
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x28(%rdi)
movups (%rdx), %xmm0
movq %rax, 0x8(%rdx)
movups %xmm0, 0x20(%rdi)
movq %rax, (%rdx)
movq %rax, 0x38(%rdi)
movups (%rcx), %xmm0
movq %rax, 0x8(%rcx)
movups %xmm0, 0x30(%rdi)
movq %rax, (%rcx)
movl %r8d, 0x40(%rdi)
retq
nop
| _ZN5minja12BinaryOpExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEES7_NS0_2OpE:
lea rax, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rax, 10h
mov [rdi], rax
mov rax, [rsi]
mov [rdi+8], rax
mov rax, [rsi+8]
mov [rdi+10h], rax
test rax, rax
jz short loc_5A144
mov r9, cs:__libc_single_threaded_ptr
cmp byte ptr [r9], 0
jz short loc_5A140
inc dword ptr [rax+8]
jmp short loc_5A144
loc_5A140:
lock inc dword ptr [rax+8]
loc_5A144:
mov rax, [rsi+10h]
mov [rdi+18h], rax
lea rax, _ZTVN5minja12BinaryOpExprE; `vtable for'minja::BinaryOpExpr
add rax, 10h
mov [rdi], rax
xor eax, eax
mov [rdi+28h], rax
movups xmm0, xmmword ptr [rdx]
mov [rdx+8], rax
movups xmmword ptr [rdi+20h], xmm0
mov [rdx], rax
mov [rdi+38h], rax
movups xmm0, xmmword ptr [rcx]
mov [rcx+8], rax
movups xmmword ptr [rdi+30h], xmm0
mov [rcx], rax
mov [rdi+40h], r8d
retn
| long long minja::BinaryOpExpr::BinaryOpExpr(long long a1, _QWORD *a2, __int128 *a3, __int128 *a4, int a5)
{
long long v5; // rax
long long result; // rax
__int128 v7; // xmm0
__int128 v8; // xmm0
*(_QWORD *)a1 = &`vtable for'minja::Expression + 2;
*(_QWORD *)(a1 + 8) = *a2;
v5 = a2[1];
*(_QWORD *)(a1 + 16) = v5;
if ( v5 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v5 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v5 + 8));
}
*(_QWORD *)(a1 + 24) = a2[2];
*(_QWORD *)a1 = &`vtable for'minja::BinaryOpExpr + 2;
result = 0LL;
*(_QWORD *)(a1 + 40) = 0LL;
v7 = *a3;
*((_QWORD *)a3 + 1) = 0LL;
*(_OWORD *)(a1 + 32) = v7;
*(_QWORD *)a3 = 0LL;
*(_QWORD *)(a1 + 56) = 0LL;
v8 = *a4;
*((_QWORD *)a4 + 1) = 0LL;
*(_OWORD *)(a1 + 48) = v8;
*(_QWORD *)a4 = 0LL;
*(_DWORD *)(a1 + 64) = a5;
return result;
}
| BinaryOpExpr:
LEA RAX,[0x1df288]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x10],RAX
TEST RAX,RAX
JZ 0x0015a144
MOV R9,qword ptr [0x001e0f98]
CMP byte ptr [R9],0x0
JZ 0x0015a140
INC dword ptr [RAX + 0x8]
JMP 0x0015a144
LAB_0015a140:
INC.LOCK dword ptr [RAX + 0x8]
LAB_0015a144:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RDI + 0x18],RAX
LEA RAX,[0x1df9e8]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
XOR EAX,EAX
MOV qword ptr [RDI + 0x28],RAX
MOVUPS XMM0,xmmword ptr [RDX]
MOV qword ptr [RDX + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOV qword ptr [RDX],RAX
MOV qword ptr [RDI + 0x38],RAX
MOVUPS XMM0,xmmword ptr [RCX]
MOV qword ptr [RCX + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x30],XMM0
MOV qword ptr [RCX],RAX
MOV dword ptr [RDI + 0x40],R8D
RET
|
/* minja::BinaryOpExpr::BinaryOpExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&,
std::shared_ptr<minja::Expression>&&, minja::BinaryOpExpr::Op) */
void __thiscall
minja::BinaryOpExpr::BinaryOpExpr
(BinaryOpExpr *this,int8 *param_1,int8 *param_2,int8 *param_3,
int4 param_5)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR___cxa_pure_virtual_001df298;
*(int8 *)(this + 8) = *param_1;
lVar1 = param_1[1];
*(long *)(this + 0x10) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_001e0f98 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x18) = param_1[2];
*(int ***)this = &PTR_do_evaluate_001df9f8;
*(int8 *)(this + 0x28) = 0;
uVar2 = param_2[1];
param_2[1] = 0;
*(int8 *)(this + 0x20) = *param_2;
*(int8 *)(this + 0x28) = uVar2;
*param_2 = 0;
*(int8 *)(this + 0x38) = 0;
uVar2 = param_3[1];
param_3[1] = 0;
*(int8 *)(this + 0x30) = *param_3;
*(int8 *)(this + 0x38) = uVar2;
*param_3 = 0;
*(int4 *)(this + 0x40) = param_5;
return;
}
| |
41,039 | Cache::isPolicyValid() | DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp | bool Cache::isPolicyValid() {
if (!this->isPowerOfTwo(policy.cacheSize)) {
fprintf(stderr, "Invalid Cache Size %d\n", policy.cacheSize);
return false;
}
if (!this->isPowerOfTwo(policy.blockSize)) {
fprintf(stderr, "Invalid Block Size %d\n", policy.blockSize);
return false;
}
if (policy.cacheSize % policy.blockSize != 0) {
fprintf(stderr, "cacheSize %% blockSize != 0\n");
return false;
}
if (policy.blockNum * policy.blockSize != policy.cacheSize) {
fprintf(stderr, "blockNum * blockSize != cacheSize\n");
return false;
}
if (policy.blockNum % policy.associativity != 0) {
fprintf(stderr, "blockNum %% associativity != 0\n");
return false;
}
return true;
} | O0 | cpp | Cache::isPolicyValid():
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq 0x8(%rsp), %rdi
movq %rdi, (%rsp)
movl 0x38(%rdi), %esi
callq 0x5210
testb $0x1, %al
jne 0x42d7
movq (%rsp), %rax
movq 0x7d1f(%rip), %rcx # 0xbfd8
movq (%rcx), %rdi
movl 0x38(%rax), %edx
leaq 0x416e(%rip), %rsi # 0x8434
movb $0x0, %al
callq 0x2240
movb $0x0, 0x17(%rsp)
jmp 0x43a4
movq (%rsp), %rdi
movl 0x3c(%rdi), %esi
callq 0x5210
testb $0x1, %al
jne 0x4310
movq (%rsp), %rax
movq 0x7ce6(%rip), %rcx # 0xbfd8
movq (%rcx), %rdi
movl 0x3c(%rax), %edx
leaq 0x414c(%rip), %rsi # 0x844b
movb $0x0, %al
callq 0x2240
movb $0x0, 0x17(%rsp)
jmp 0x43a4
movq (%rsp), %rcx
movl 0x38(%rcx), %eax
xorl %edx, %edx
divl 0x3c(%rcx)
cmpl $0x0, %edx
je 0x4340
movq 0x7cb0(%rip), %rax # 0xbfd8
movq (%rax), %rdi
leaq 0x4130(%rip), %rsi # 0x8462
movb $0x0, %al
callq 0x2240
movb $0x0, 0x17(%rsp)
jmp 0x43a4
movq (%rsp), %rcx
movl 0x40(%rcx), %eax
imull 0x3c(%rcx), %eax
cmpl 0x38(%rcx), %eax
je 0x436f
movq 0x7c81(%rip), %rax # 0xbfd8
movq (%rax), %rdi
leaq 0x411e(%rip), %rsi # 0x847f
movb $0x0, %al
callq 0x2240
movb $0x0, 0x17(%rsp)
jmp 0x43a4
movq (%rsp), %rcx
movl 0x40(%rcx), %eax
xorl %edx, %edx
divl 0x44(%rcx)
cmpl $0x0, %edx
je 0x439f
movq 0x7c51(%rip), %rax # 0xbfd8
movq (%rax), %rdi
leaq 0x4111(%rip), %rsi # 0x84a2
movb $0x0, %al
callq 0x2240
movb $0x0, 0x17(%rsp)
jmp 0x43a4
movb $0x1, 0x17(%rsp)
movb 0x17(%rsp), %al
andb $0x1, %al
addq $0x18, %rsp
retq
nop
| _ZN5Cache13isPolicyValidEv:
sub rsp, 18h
mov [rsp+18h+var_10], rdi
mov rdi, [rsp+18h+var_10]; this
mov [rsp+18h+var_18], rdi
mov esi, [rdi+38h]; unsigned int
call _ZN5Cache12isPowerOfTwoEj; Cache::isPowerOfTwo(uint)
test al, 1
jnz short loc_42D7
mov rax, [rsp+18h+var_18]
mov rcx, cs:stderr_ptr
mov rdi, [rcx]
mov edx, [rax+38h]
lea rsi, aInvalidCacheSi; "Invalid Cache Size %d\n"
mov al, 0
call _fprintf
mov [rsp+18h+var_1], 0
jmp loc_43A4
loc_42D7:
mov rdi, [rsp+18h+var_18]; this
mov esi, [rdi+3Ch]; unsigned int
call _ZN5Cache12isPowerOfTwoEj; Cache::isPowerOfTwo(uint)
test al, 1
jnz short loc_4310
mov rax, [rsp+18h+var_18]
mov rcx, cs:stderr_ptr
mov rdi, [rcx]
mov edx, [rax+3Ch]
lea rsi, aInvalidBlockSi; "Invalid Block Size %d\n"
mov al, 0
call _fprintf
mov [rsp+18h+var_1], 0
jmp loc_43A4
loc_4310:
mov rcx, [rsp+18h+var_18]
mov eax, [rcx+38h]
xor edx, edx
div dword ptr [rcx+3Ch]
cmp edx, 0
jz short loc_4340
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aCachesizeBlock_0; "cacheSize %% blockSize != 0\n"
mov al, 0
call _fprintf
mov [rsp+18h+var_1], 0
jmp short loc_43A4
loc_4340:
mov rcx, [rsp+18h+var_18]
mov eax, [rcx+40h]
imul eax, [rcx+3Ch]
cmp eax, [rcx+38h]
jz short loc_436F
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aBlocknumBlocks; "blockNum * blockSize != cacheSize\n"
mov al, 0
call _fprintf
mov [rsp+18h+var_1], 0
jmp short loc_43A4
loc_436F:
mov rcx, [rsp+18h+var_18]
mov eax, [rcx+40h]
xor edx, edx
div dword ptr [rcx+44h]
cmp edx, 0
jz short loc_439F
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aBlocknumAssoci; "blockNum %% associativity != 0\n"
mov al, 0
call _fprintf
mov [rsp+18h+var_1], 0
jmp short loc_43A4
loc_439F:
mov [rsp+18h+var_1], 1
loc_43A4:
mov al, [rsp+18h+var_1]
and al, 1
add rsp, 18h
retn
| char Cache::isPolicyValid(Cache *this)
{
if ( (Cache::isPowerOfTwo(this, *((_DWORD *)this + 14)) & 1) != 0 )
{
if ( (Cache::isPowerOfTwo(this, *((_DWORD *)this + 15)) & 1) != 0 )
{
if ( *((_DWORD *)this + 14) % *((_DWORD *)this + 15) )
{
fprintf(stderr, "cacheSize %% blockSize != 0\n");
return 0;
}
else if ( *((_DWORD *)this + 15) * *((_DWORD *)this + 16) == *((_DWORD *)this + 14) )
{
if ( *((_DWORD *)this + 16) % *((_DWORD *)this + 17) )
{
fprintf(stderr, "blockNum %% associativity != 0\n");
return 0;
}
else
{
return 1;
}
}
else
{
fprintf(stderr, "blockNum * blockSize != cacheSize\n");
return 0;
}
}
else
{
fprintf(stderr, "Invalid Block Size %d\n", *((_DWORD *)this + 15));
return 0;
}
}
else
{
fprintf(stderr, "Invalid Cache Size %d\n", *((_DWORD *)this + 14));
return 0;
}
}
| isPolicyValid:
SUB RSP,0x18
MOV qword ptr [RSP + 0x8],RDI
MOV RDI,qword ptr [RSP + 0x8]
MOV qword ptr [RSP],RDI
MOV ESI,dword ptr [RDI + 0x38]
CALL 0x00105210
TEST AL,0x1
JNZ 0x001042d7
MOV RAX,qword ptr [RSP]
MOV RCX,qword ptr [0x0010bfd8]
MOV RDI,qword ptr [RCX]
MOV EDX,dword ptr [RAX + 0x38]
LEA RSI,[0x108434]
MOV AL,0x0
CALL 0x00102240
MOV byte ptr [RSP + 0x17],0x0
JMP 0x001043a4
LAB_001042d7:
MOV RDI,qword ptr [RSP]
MOV ESI,dword ptr [RDI + 0x3c]
CALL 0x00105210
TEST AL,0x1
JNZ 0x00104310
MOV RAX,qword ptr [RSP]
MOV RCX,qword ptr [0x0010bfd8]
MOV RDI,qword ptr [RCX]
MOV EDX,dword ptr [RAX + 0x3c]
LEA RSI,[0x10844b]
MOV AL,0x0
CALL 0x00102240
MOV byte ptr [RSP + 0x17],0x0
JMP 0x001043a4
LAB_00104310:
MOV RCX,qword ptr [RSP]
MOV EAX,dword ptr [RCX + 0x38]
XOR EDX,EDX
DIV dword ptr [RCX + 0x3c]
CMP EDX,0x0
JZ 0x00104340
MOV RAX,qword ptr [0x0010bfd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x108462]
MOV AL,0x0
CALL 0x00102240
MOV byte ptr [RSP + 0x17],0x0
JMP 0x001043a4
LAB_00104340:
MOV RCX,qword ptr [RSP]
MOV EAX,dword ptr [RCX + 0x40]
IMUL EAX,dword ptr [RCX + 0x3c]
CMP EAX,dword ptr [RCX + 0x38]
JZ 0x0010436f
MOV RAX,qword ptr [0x0010bfd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x10847f]
MOV AL,0x0
CALL 0x00102240
MOV byte ptr [RSP + 0x17],0x0
JMP 0x001043a4
LAB_0010436f:
MOV RCX,qword ptr [RSP]
MOV EAX,dword ptr [RCX + 0x40]
XOR EDX,EDX
DIV dword ptr [RCX + 0x44]
CMP EDX,0x0
JZ 0x0010439f
MOV RAX,qword ptr [0x0010bfd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x1084a2]
MOV AL,0x0
CALL 0x00102240
MOV byte ptr [RSP + 0x17],0x0
JMP 0x001043a4
LAB_0010439f:
MOV byte ptr [RSP + 0x17],0x1
LAB_001043a4:
MOV AL,byte ptr [RSP + 0x17]
AND AL,0x1
ADD RSP,0x18
RET
|
/* Cache::isPolicyValid() */
int8 __thiscall Cache::isPolicyValid(Cache *this)
{
int iVar1;
ulong uVar2;
int4 extraout_var;
int4 extraout_var_00;
int4 extraout_var_01;
int4 extraout_var_02;
int4 extraout_var_03;
int1 local_1;
uVar2 = isPowerOfTwo(this,*(uint *)(this + 0x38));
if ((uVar2 & 1) == 0) {
iVar1 = fprintf(*(FILE **)PTR_stderr_0010bfd8,"Invalid Cache Size %d\n",
(ulong)*(uint *)(this + 0x38));
uVar2 = CONCAT44(extraout_var,iVar1);
local_1 = 0;
}
else {
uVar2 = isPowerOfTwo(this,*(uint *)(this + 0x3c));
if ((uVar2 & 1) == 0) {
iVar1 = fprintf(*(FILE **)PTR_stderr_0010bfd8,"Invalid Block Size %d\n",
(ulong)*(uint *)(this + 0x3c));
uVar2 = CONCAT44(extraout_var_00,iVar1);
local_1 = 0;
}
else if (*(uint *)(this + 0x38) % *(uint *)(this + 0x3c) == 0) {
if (*(int *)(this + 0x40) * *(int *)(this + 0x3c) == *(int *)(this + 0x38)) {
uVar2 = (ulong)*(uint *)(this + 0x40) / (ulong)*(uint *)(this + 0x44);
if (*(uint *)(this + 0x40) % *(uint *)(this + 0x44) == 0) {
local_1 = 1;
}
else {
iVar1 = fprintf(*(FILE **)PTR_stderr_0010bfd8,"blockNum %% associativity != 0\n");
uVar2 = CONCAT44(extraout_var_03,iVar1);
local_1 = 0;
}
}
else {
iVar1 = fprintf(*(FILE **)PTR_stderr_0010bfd8,"blockNum * blockSize != cacheSize\n");
uVar2 = CONCAT44(extraout_var_02,iVar1);
local_1 = 0;
}
}
else {
iVar1 = fprintf(*(FILE **)PTR_stderr_0010bfd8,"cacheSize %% blockSize != 0\n");
uVar2 = CONCAT44(extraout_var_01,iVar1);
local_1 = 0;
}
}
return CONCAT71((int7)(uVar2 >> 8),local_1);
}
| |
41,040 | Cache::isPolicyValid() | DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp | bool Cache::isPolicyValid() {
if (!this->isPowerOfTwo(policy.cacheSize)) {
fprintf(stderr, "Invalid Cache Size %d\n", policy.cacheSize);
return false;
}
if (!this->isPowerOfTwo(policy.blockSize)) {
fprintf(stderr, "Invalid Block Size %d\n", policy.blockSize);
return false;
}
if (policy.cacheSize % policy.blockSize != 0) {
fprintf(stderr, "cacheSize %% blockSize != 0\n");
return false;
}
if (policy.blockNum * policy.blockSize != policy.cacheSize) {
fprintf(stderr, "blockNum * blockSize != cacheSize\n");
return false;
}
if (policy.blockNum % policy.associativity != 0) {
fprintf(stderr, "blockNum %% associativity != 0\n");
return false;
}
return true;
} | O1 | cpp | Cache::isPolicyValid():
pushq %rbx
movl 0x38(%rdi), %ecx
leal -0x1(%rcx), %eax
movl %ecx, %edx
xorl %eax, %edx
cmpl %eax, %edx
jbe 0x36ac
movl 0x3c(%rdi), %r8d
leal -0x1(%r8), %eax
movl %r8d, %edx
xorl %eax, %edx
cmpl %eax, %edx
jbe 0x36c3
movl %ecx, %eax
xorl %edx, %edx
divl %r8d
testl %edx, %edx
jne 0x36e2
movl 0x40(%rdi), %eax
imull %eax, %r8d
cmpl %ecx, %r8d
jne 0x36e9
xorl %edx, %edx
divl 0x44(%rdi)
movb $0x1, %bl
testl %edx, %edx
jne 0x36f0
movl %ebx, %eax
popq %rbx
retq
movq 0x4925(%rip), %rax # 0x7fd8
movq (%rax), %rdi
leaq 0x1d29(%rip), %rsi # 0x53e6
xorl %ebx, %ebx
movl %ecx, %edx
jmp 0x36d9
movq 0x490e(%rip), %rax # 0x7fd8
movq (%rax), %rdi
leaq 0x1d29(%rip), %rsi # 0x53fd
xorl %ebx, %ebx
movl %r8d, %edx
xorl %eax, %eax
callq 0x21f0
jmp 0x36a8
callq 0x2392
jmp 0x36f5
callq 0x23aa
jmp 0x36f5
callq 0x23c6
xorl %ebx, %ebx
jmp 0x36a8
nop
| _ZN5Cache13isPolicyValidEv:
push rbx
mov ecx, [rdi+38h]
lea eax, [rcx-1]
mov edx, ecx
xor edx, eax
cmp edx, eax
jbe short loc_36AC
mov r8d, [rdi+3Ch]
lea eax, [r8-1]
mov edx, r8d
xor edx, eax
cmp edx, eax
jbe short loc_36C3
mov eax, ecx
xor edx, edx
div r8d
test edx, edx
jnz short loc_36E2
mov eax, [rdi+40h]
imul r8d, eax
cmp r8d, ecx
jnz short loc_36E9
xor edx, edx
div dword ptr [rdi+44h]
mov bl, 1
test edx, edx
jnz short loc_36F0
loc_36A8:
mov eax, ebx
pop rbx
retn
loc_36AC:
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aInvalidCacheSi; "Invalid Cache Size %d\n"
xor ebx, ebx
mov edx, ecx
jmp short loc_36D9
loc_36C3:
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aInvalidBlockSi; "Invalid Block Size %d\n"
xor ebx, ebx
mov edx, r8d
loc_36D9:
xor eax, eax
call _fprintf
jmp short loc_36A8
loc_36E2:
call _ZN5Cache13isPolicyValidEv_cold_1; Cache::isPolicyValid(void) [clone]
jmp short loc_36F5
loc_36E9:
call _ZN5Cache13isPolicyValidEv_cold_2; Cache::isPolicyValid(void) [clone]
jmp short loc_36F5
loc_36F0:
call _ZN5Cache13isPolicyValidEv_cold_3; Cache::isPolicyValid(void) [clone]
loc_36F5:
xor ebx, ebx
jmp short loc_36A8
| long long Cache::isPolicyValid(Cache *this)
{
unsigned int v1; // ebx
unsigned int v2; // ecx
unsigned int v3; // r8d
unsigned int v4; // eax
v2 = *((_DWORD *)this + 14);
if ( ((v2 - 1) ^ v2) <= v2 - 1 )
{
v1 = 0;
fprintf(stderr, "Invalid Cache Size %d\n", v2);
return v1;
}
v3 = *((_DWORD *)this + 15);
if ( ((v3 - 1) ^ v3) <= v3 - 1 )
{
v1 = 0;
fprintf(stderr, "Invalid Block Size %d\n", v3);
return v1;
}
if ( v2 % v3 )
{
Cache::isPolicyValid();
return 0;
}
v4 = *((_DWORD *)this + 16);
if ( v4 * v3 != v2 )
{
Cache::isPolicyValid();
return 0;
}
LOBYTE(v1) = 1;
if ( v4 % *((_DWORD *)this + 17) )
{
Cache::isPolicyValid();
return 0;
}
return v1;
}
| isPolicyValid:
PUSH RBX
MOV ECX,dword ptr [RDI + 0x38]
LEA EAX,[RCX + -0x1]
MOV EDX,ECX
XOR EDX,EAX
CMP EDX,EAX
JBE 0x001036ac
MOV R8D,dword ptr [RDI + 0x3c]
LEA EAX,[R8 + -0x1]
MOV EDX,R8D
XOR EDX,EAX
CMP EDX,EAX
JBE 0x001036c3
MOV EAX,ECX
XOR EDX,EDX
DIV R8D
TEST EDX,EDX
JNZ 0x001036e2
MOV EAX,dword ptr [RDI + 0x40]
IMUL R8D,EAX
CMP R8D,ECX
JNZ 0x001036e9
XOR EDX,EDX
DIV dword ptr [RDI + 0x44]
MOV BL,0x1
TEST EDX,EDX
JNZ 0x001036f0
LAB_001036a8:
MOV EAX,EBX
POP RBX
RET
LAB_001036ac:
MOV RAX,qword ptr [0x00107fd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x1053e6]
XOR EBX,EBX
MOV EDX,ECX
JMP 0x001036d9
LAB_001036c3:
MOV RAX,qword ptr [0x00107fd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x1053fd]
XOR EBX,EBX
MOV EDX,R8D
LAB_001036d9:
XOR EAX,EAX
CALL 0x001021f0
JMP 0x001036a8
LAB_001036e2:
CALL 0x00102392
JMP 0x001036f5
LAB_001036e9:
CALL 0x001023aa
JMP 0x001036f5
LAB_001036f0:
CALL 0x001023c6
LAB_001036f5:
XOR EBX,EBX
JMP 0x001036a8
|
/* Cache::isPolicyValid() */
ulong __thiscall Cache::isPolicyValid(Cache *this)
{
uint uVar1;
uint uVar2;
int8 unaff_RBX;
ulong uVar3;
char *__format;
FILE *__stream;
uVar1 = *(uint *)(this + 0x38);
if (uVar1 - 1 < (uVar1 ^ uVar1 - 1)) {
uVar2 = *(uint *)(this + 0x3c);
if (uVar2 - 1 < (uVar2 ^ uVar2 - 1)) {
if (uVar1 % uVar2 == 0) {
if (uVar2 * *(uint *)(this + 0x40) == uVar1) {
uVar3 = CONCAT71((int7)((ulong)unaff_RBX >> 8),1);
if (*(uint *)(this + 0x40) % *(uint *)(this + 0x44) == 0) goto LAB_001036a8;
isPolicyValid();
}
else {
isPolicyValid();
}
}
else {
isPolicyValid();
}
uVar3 = 0;
goto LAB_001036a8;
}
__stream = *(FILE **)PTR_stderr_00107fd8;
__format = "Invalid Block Size %d\n";
uVar1 = uVar2;
}
else {
__stream = *(FILE **)PTR_stderr_00107fd8;
__format = "Invalid Cache Size %d\n";
}
uVar3 = 0;
fprintf(__stream,__format,(ulong)uVar1);
LAB_001036a8:
return uVar3 & 0xffffffff;
}
| |
41,041 | Cache::isPolicyValid() | DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp | bool Cache::isPolicyValid() {
if (!this->isPowerOfTwo(policy.cacheSize)) {
fprintf(stderr, "Invalid Cache Size %d\n", policy.cacheSize);
return false;
}
if (!this->isPowerOfTwo(policy.blockSize)) {
fprintf(stderr, "Invalid Block Size %d\n", policy.blockSize);
return false;
}
if (policy.cacheSize % policy.blockSize != 0) {
fprintf(stderr, "cacheSize %% blockSize != 0\n");
return false;
}
if (policy.blockNum * policy.blockSize != policy.cacheSize) {
fprintf(stderr, "blockNum * blockSize != cacheSize\n");
return false;
}
if (policy.blockNum % policy.associativity != 0) {
fprintf(stderr, "blockNum %% associativity != 0\n");
return false;
}
return true;
} | O2 | cpp | Cache::isPolicyValid():
pushq %rbx
movl 0x38(%rdi), %ecx
leal -0x1(%rcx), %eax
movl %ecx, %edx
xorl %eax, %edx
cmpl %eax, %edx
jbe 0x3456
movl 0x3c(%rdi), %r8d
leal -0x1(%r8), %eax
movl %r8d, %edx
xorl %eax, %edx
cmpl %eax, %edx
jbe 0x346d
movl %ecx, %eax
xorl %edx, %edx
divl %r8d
testl %edx, %edx
jne 0x348c
movl 0x40(%rdi), %eax
imull %eax, %r8d
cmpl %ecx, %r8d
jne 0x349f
xorl %edx, %edx
divl 0x44(%rdi)
movb $0x1, %bl
testl %edx, %edx
jne 0x34bf
movl %ebx, %eax
popq %rbx
retq
movq 0x4b7b(%rip), %rax # 0x7fd8
movq (%rax), %rdi
leaq 0x1f6f(%rip), %rsi # 0x53d6
xorl %ebx, %ebx
movl %ecx, %edx
jmp 0x3483
movq 0x4b64(%rip), %rax # 0x7fd8
movq (%rax), %rdi
leaq 0x1f6f(%rip), %rsi # 0x53ed
xorl %ebx, %ebx
movl %r8d, %edx
xorl %eax, %eax
callq 0x21f0
jmp 0x3452
movq 0x4b45(%rip), %rax # 0x7fd8
movq (%rax), %rdi
leaq 0x1f67(%rip), %rsi # 0x5404
jmp 0x34d0
movq 0x4b32(%rip), %rax # 0x7fd8
movq (%rax), %rcx
leaq 0x1f71(%rip), %rdi # 0x5421
pushq $0x22
popq %rsi
pushq $0x1
popq %rdx
callq 0x2290
xorl %ebx, %ebx
jmp 0x3452
movq 0x4b12(%rip), %rax # 0x7fd8
movq (%rax), %rdi
leaq 0x1f74(%rip), %rsi # 0x5444
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x21f0
jmp 0x3452
| _ZN5Cache13isPolicyValidEv:
push rbx
mov ecx, [rdi+38h]
lea eax, [rcx-1]
mov edx, ecx
xor edx, eax
cmp edx, eax
jbe short loc_3456
mov r8d, [rdi+3Ch]
lea eax, [r8-1]
mov edx, r8d
xor edx, eax
cmp edx, eax
jbe short loc_346D
mov eax, ecx
xor edx, edx
div r8d
test edx, edx
jnz short loc_348C
mov eax, [rdi+40h]
imul r8d, eax
cmp r8d, ecx
jnz short loc_349F
xor edx, edx
div dword ptr [rdi+44h]
mov bl, 1
test edx, edx
jnz short loc_34BF
loc_3452:
mov eax, ebx
pop rbx
retn
loc_3456:
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aInvalidCacheSi; "Invalid Cache Size %d\n"
xor ebx, ebx
mov edx, ecx
jmp short loc_3483
loc_346D:
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aInvalidBlockSi; "Invalid Block Size %d\n"
xor ebx, ebx
mov edx, r8d
loc_3483:
xor eax, eax
call _fprintf
jmp short loc_3452
loc_348C:
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aCachesizeBlock_0; "cacheSize %% blockSize != 0\n"
jmp short loc_34D0
loc_349F:
mov rax, cs:stderr_ptr
mov rcx, [rax]
lea rdi, aBlocknumBlocks; "blockNum * blockSize != cacheSize\n"
push 22h ; '"'
pop rsi
push 1
pop rdx
call _fwrite
xor ebx, ebx
jmp short loc_3452
loc_34BF:
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aBlocknumAssoci; "blockNum %% associativity != 0\n"
loc_34D0:
xor ebx, ebx
xor eax, eax
call _fprintf
jmp loc_3452
| long long Cache::isPolicyValid(Cache *this)
{
unsigned int v1; // ebx
unsigned int v2; // ecx
unsigned int v3; // r8d
long long v4; // rdx
unsigned int v5; // eax
long long v7; // rdi
const char *v8; // rsi
long long v9; // rdx
long long v10; // rdi
const char *v11; // rsi
v2 = *((_DWORD *)this + 14);
if ( ((v2 - 1) ^ v2) <= v2 - 1 )
{
v7 = stderr;
v8 = "Invalid Cache Size %d\n";
v1 = 0;
v9 = v2;
LABEL_9:
fprintf(v7, v8, v9);
return v1;
}
v3 = *((_DWORD *)this + 15);
if ( ((v3 - 1) ^ v3) <= v3 - 1 )
{
v7 = stderr;
v8 = "Invalid Block Size %d\n";
v1 = 0;
v9 = v3;
goto LABEL_9;
}
v4 = v2 % v3;
if ( v2 % v3 )
{
v10 = stderr;
v11 = "cacheSize %% blockSize != 0\n";
LABEL_13:
v1 = 0;
fprintf(v10, v11, v4);
return v1;
}
v5 = *((_DWORD *)this + 16);
if ( v5 * v3 != v2 )
{
fwrite("blockNum * blockSize != cacheSize\n", 34LL, 1LL, stderr);
return 0;
}
v4 = v5 % *((_DWORD *)this + 17);
LOBYTE(v1) = 1;
if ( (_DWORD)v4 )
{
v10 = stderr;
v11 = "blockNum %% associativity != 0\n";
goto LABEL_13;
}
return v1;
}
| isPolicyValid:
PUSH RBX
MOV ECX,dword ptr [RDI + 0x38]
LEA EAX,[RCX + -0x1]
MOV EDX,ECX
XOR EDX,EAX
CMP EDX,EAX
JBE 0x00103456
MOV R8D,dword ptr [RDI + 0x3c]
LEA EAX,[R8 + -0x1]
MOV EDX,R8D
XOR EDX,EAX
CMP EDX,EAX
JBE 0x0010346d
MOV EAX,ECX
XOR EDX,EDX
DIV R8D
TEST EDX,EDX
JNZ 0x0010348c
MOV EAX,dword ptr [RDI + 0x40]
IMUL R8D,EAX
CMP R8D,ECX
JNZ 0x0010349f
XOR EDX,EDX
DIV dword ptr [RDI + 0x44]
MOV BL,0x1
TEST EDX,EDX
JNZ 0x001034bf
LAB_00103452:
MOV EAX,EBX
POP RBX
RET
LAB_00103456:
MOV RAX,qword ptr [0x00107fd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x1053d6]
XOR EBX,EBX
MOV EDX,ECX
JMP 0x00103483
LAB_0010346d:
MOV RAX,qword ptr [0x00107fd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x1053ed]
XOR EBX,EBX
MOV EDX,R8D
LAB_00103483:
XOR EAX,EAX
CALL 0x001021f0
JMP 0x00103452
LAB_0010348c:
MOV RAX,qword ptr [0x00107fd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x105404]
JMP 0x001034d0
LAB_0010349f:
MOV RAX,qword ptr [0x00107fd8]
MOV RCX,qword ptr [RAX]
LEA RDI,[0x105421]
PUSH 0x22
POP RSI
PUSH 0x1
POP RDX
CALL 0x00102290
XOR EBX,EBX
JMP 0x00103452
LAB_001034bf:
MOV RAX,qword ptr [0x00107fd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x105444]
LAB_001034d0:
XOR EBX,EBX
XOR EAX,EAX
CALL 0x001021f0
JMP 0x00103452
|
/* Cache::isPolicyValid() */
ulong __thiscall Cache::isPolicyValid(Cache *this)
{
uint uVar1;
uint uVar2;
int8 unaff_RBX;
ulong uVar3;
char *pcVar4;
FILE *pFVar5;
uVar1 = *(uint *)(this + 0x38);
if (uVar1 - 1 < (uVar1 ^ uVar1 - 1)) {
uVar2 = *(uint *)(this + 0x3c);
if (uVar2 - 1 < (uVar2 ^ uVar2 - 1)) {
if (uVar1 % uVar2 == 0) {
if (uVar2 * *(uint *)(this + 0x40) != uVar1) {
fwrite("blockNum * blockSize != cacheSize\n",0x22,1,*(FILE **)PTR_stderr_00107fd8);
uVar3 = 0;
goto LAB_00103452;
}
uVar3 = CONCAT71((int7)((ulong)unaff_RBX >> 8),1);
if (*(uint *)(this + 0x40) % *(uint *)(this + 0x44) == 0) goto LAB_00103452;
pFVar5 = *(FILE **)PTR_stderr_00107fd8;
pcVar4 = "blockNum %% associativity != 0\n";
}
else {
pFVar5 = *(FILE **)PTR_stderr_00107fd8;
pcVar4 = "cacheSize %% blockSize != 0\n";
}
uVar3 = 0;
fprintf(pFVar5,pcVar4);
goto LAB_00103452;
}
pFVar5 = *(FILE **)PTR_stderr_00107fd8;
pcVar4 = "Invalid Block Size %d\n";
uVar1 = uVar2;
}
else {
pFVar5 = *(FILE **)PTR_stderr_00107fd8;
pcVar4 = "Invalid Cache Size %d\n";
}
uVar3 = 0;
fprintf(pFVar5,pcVar4,(ulong)uVar1);
LAB_00103452:
return uVar3 & 0xffffffff;
}
| |
41,042 | my_strtoll10 | eloqsql/strings/my_strtoll10.c | longlong my_strtoll10(const char *nptr, char **endptr, int *error)
{
const char *s, *end, *start, *n_end, *true_end;
char *dummy;
uchar c;
unsigned long i, j, k;
ulonglong li;
int negative;
ulong cutoff, cutoff2, cutoff3;
s= nptr;
/* If fixed length string */
if (endptr)
{
end= *endptr;
/* Skip leading spaces */
for ( ; s < end && my_isspace(&my_charset_latin1, *s) ; )
s++;
if (s == end)
goto no_conv;
}
else
{
endptr= &dummy; /* Easier end test */
/* Skip leading spaces */
for ( ; ; s++)
{
if (!*s)
goto no_conv;
if (!my_isspace(&my_charset_latin1, *s))
break;
}
/* This number must be big to guard against a lot of pre-zeros */
end= s+65535; /* Can't be longer than this */
}
/* Check for a sign. */
negative= 0;
if (*s == '-')
{
*error= -1; /* Mark as negative number */
negative= 1;
if (++s == end)
goto no_conv;
cutoff= MAX_NEGATIVE_NUMBER / LFACTOR2;
cutoff2= (MAX_NEGATIVE_NUMBER % LFACTOR2) / 100;
cutoff3= MAX_NEGATIVE_NUMBER % 100;
}
else
{
*error= 0;
if (*s == '+')
{
if (++s == end)
goto no_conv;
}
cutoff= ULONGLONG_MAX / LFACTOR2;
cutoff2= ULONGLONG_MAX % LFACTOR2 / 100;
cutoff3= ULONGLONG_MAX % 100;
}
/* Handle case where we have a lot of pre-zero */
if (*s == '0')
{
i= 0;
do
{
if (++s == end)
goto end_i; /* Return 0 */
}
while (*s == '0');
n_end= s+ INIT_CNT;
}
else
{
/* Read first digit to check that it's a valid number */
if ((c= (*s-'0')) > 9)
goto no_conv;
i= c;
n_end= ++s+ INIT_CNT-1;
}
/* Handle first 9 digits and store them in i */
if (n_end > end)
n_end= end;
for (; s != n_end ; s++)
{
if ((c= (*s-'0')) > 9)
goto end_i;
i= i*10+c;
}
if (s == end)
goto end_i;
/* Handle next 9 digits and store them in j */
j= 0;
start= s; /* Used to know how much to shift i */
n_end= true_end= s + INIT_CNT;
if (n_end > end)
n_end= end;
do
{
if ((c= (*s-'0')) > 9)
goto end_i_and_j;
j= j*10+c;
} while (++s != n_end);
if (s == end)
{
if (s != true_end)
goto end_i_and_j;
goto end3;
}
if ((c= (*s-'0')) > 9)
goto end3;
/* Handle the next 1 or 2 digits and store them in k */
k=c;
if (++s == end || (c= (*s-'0')) > 9)
goto end4;
k= k*10+c;
*endptr= (char*) ++s;
/* number string should have ended here */
if (s != end && (c= (*s-'0')) <= 9)
goto overflow;
/* Check that we didn't get an overflow with the last digit */
if (i > cutoff || (i == cutoff && (j > cutoff2 || (j == cutoff2 &&
k > cutoff3))))
goto overflow;
li=i*LFACTOR2+ (ulonglong) j*100 + k;
return (longlong) li;
overflow: /* *endptr is set here */
*error= MY_ERRNO_ERANGE;
return negative ? LONGLONG_MIN : (longlong) ULONGLONG_MAX;
end_i:
*endptr= (char*) s;
return (negative ? ((longlong) -(long) i) : (longlong) i);
end_i_and_j:
li= (ulonglong) i * lfactor[(uint) (s-start)] + j;
*endptr= (char*) s;
return (negative ? -((longlong) li) : (longlong) li);
end3:
li=(ulonglong) i*LFACTOR+ (ulonglong) j;
*endptr= (char*) s;
return (negative ? -((longlong) li) : (longlong) li);
end4:
li=(ulonglong) i*LFACTOR1+ (ulonglong) j * 10 + k;
*endptr= (char*) s;
if (negative)
{
if (li > MAX_NEGATIVE_NUMBER)
goto overflow;
return -((longlong) li);
}
return (longlong) li;
no_conv:
/* There was no number to convert. */
*error= MY_ERRNO_EDOM;
*endptr= (char *) nptr;
return 0;
} | O3 | c | my_strtoll10:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testq %rsi, %rsi
je 0xdb8c2
movq (%rsi), %r8
movq %rdi, %rax
cmpq %rdi, %r8
jbe 0xdb8b2
leaq 0x2d76ec(%rip), %rax # 0x3b2f80
movq 0x40(%rax), %rcx
movq %rdi, %rax
movzbl (%rax), %r9d
testb $0x8, 0x1(%rcx,%r9)
je 0xdb8b2
incq %rax
cmpq %r8, %rax
jne 0xdb89b
movq %r8, %rax
cmpq %r8, %rax
je 0xdb9a0
movb (%rax), %cl
movq %r8, %rbx
jmp 0xdb90e
movb (%rdi), %cl
leaq -0x30(%rbp), %rsi
testb %cl, %cl
je 0xdb9a0
leaq 0x2d76a9(%rip), %rax # 0x3b2f80
movq 0x40(%rax), %r8
leaq 0xffff(%rdi), %rbx
movq %rdi, %rax
movzbl %cl, %r9d
testb $0x8, 0x1(%r8,%r9)
je 0xdb903
movb 0x1(%rax), %cl
incq %rax
incq %rbx
testb %cl, %cl
jne 0xdb8e5
jmp 0xdb9a0
leaq 0xffff(%rax), %r8
leaq -0x30(%rbp), %rsi
cmpb $0x2d, %cl
jne 0xdb935
movl $0xffffffff, (%rdx) # imm = 0xFFFFFFFF
incq %rax
cmpq %r8, %rax
je 0xdb9a0
movl $0x8, %r9d
movl $0x15f797ae, %r10d # imm = 0x15F797AE
movl $0x57f5ff8, %r11d # imm = 0x57F5FF8
jmp 0xdb95e
movl $0x0, (%rdx)
movb (%rax), %r14b
cmpb $0x2b, %r14b
jne 0xdb963
incq %rax
cmpq %r8, %rax
je 0xdb9a0
movl $0xf, %r9d
movl $0x2bef2f5c, %r10d # imm = 0x2BEF2F5C
movl $0xafebff0, %r11d # imm = 0xAFEBFF0
movb (%rax), %r14b
jmp 0xdb975
movl $0xf, %r9d
movl $0x2bef2f5c, %r10d # imm = 0x2BEF2F5C
movl $0xafebff0, %r11d # imm = 0xAFEBFF0
cmpb $0x30, %r14b
jne 0xdb996
xorl %edi, %edi
incq %rax
cmpq %r8, %rax
je 0xdbaa5
cmpb $0x30, (%rax)
je 0xdb97d
leaq 0x9(%rax), %rbx
xorl %edi, %edi
jmp 0xdb9be
addb $-0x30, %r14b
cmpb $0x9, %r14b
jbe 0xdb9b0
movl $0x21, (%rdx)
movq %rdi, (%rsi)
xorl %eax, %eax
jmp 0xdbab5
movzbl %r14b, %edi
movq %rax, %rbx
incq %rax
addq $0x9, %rbx
cmpq %r8, %rbx
cmovaq %r8, %rbx
cmpq %rbx, %rax
je 0xdb9ec
movb (%rax), %r14b
addb $-0x30, %r14b
cmpb $0x9, %r14b
ja 0xdbaa2
leaq (%rdi,%rdi,4), %rdi
movzbl %r14b, %r14d
leaq (%r14,%rdi,2), %rdi
incq %rax
jmp 0xdb9c5
cmpq %r8, %rax
je 0xdbaa2
leaq 0x9(%rax), %r12
cmpq %r8, %r12
cmovaq %r8, %r12
leaq 0x1(%rax), %r14
movl $0x9, %r13d
xorl %ebx, %ebx
movb -0x1(%r14), %r15b
addb $-0x30, %r15b
cmpb $0x9, %r15b
ja 0xdbac0
leaq (%rbx,%rbx,4), %rbx
movzbl %r15b, %r15d
leaq (%r15,%rbx,2), %rbx
leaq 0x1(%r14), %r15
decq %r13
cmpq %r12, %r14
movq %r15, %r14
jne 0xdba0c
leaq -0x1(%r15), %r14
cmpq %r8, %r12
je 0xdbae5
movb (%r14), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0xdbaea
movzbl %al, %r14d
cmpq %r8, %r15
je 0xdba69
movb (%r15), %al
addb $-0x30, %al
cmpb $0x9, %al
jbe 0xdbb06
movabsq $0x2540be400, %rax # imm = 0x2540BE400
imulq %rax, %rdi
leaq (%rbx,%rbx,4), %rax
leaq (%rdi,%rax,2), %rax
addq %r14, %rax
movq %r15, (%rsi)
cmpb $0x2d, %cl
jne 0xdbab5
movabsq $-0x8000000000000000, %rsi # imm = 0x8000000000000000
cmpq %rsi, %rax
ja 0xdbb41
negq %rax
jmp 0xdbab5
movq %rax, %rbx
movq %rdi, %rax
negq %rax
cmpb $0x2d, %cl
movq %rbx, (%rsi)
cmovneq %rdi, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
decq %r14
movl %r14d, %edx
subl %eax, %edx
leaq 0x286051(%rip), %rax # 0x361b20
imulq (%rax,%rdx,8), %rdi
addq %rbx, %rdi
movq %rdi, %rax
negq %rax
cmpb $0x2d, %cl
movq %r14, (%rsi)
jmp 0xdbab1
testq %r13, %r13
jne 0xdbac3
imulq $0x3b9aca00, %rdi, %rax # imm = 0x3B9ACA00
addq %rax, %rbx
movq %rbx, %rax
negq %rax
cmpb $0x2d, %cl
movq %r14, (%rsi)
cmovneq %rbx, %rax
jmp 0xdbab5
leaq 0x1(%r15), %r12
movq %r12, (%rsi)
cmpq %r8, %r12
je 0xdbb20
movb 0x1(%r15), %sil
addb $-0x30, %sil
cmpb $0xa, %sil
jb 0xdbb41
cmpq %r11, %rdi
ja 0xdbb41
leaq (%r14,%r14,4), %rsi
movzbl %al, %eax
leaq (%rax,%rsi,2), %rsi
cmpq %r11, %rdi
jne 0xdbb5c
cmpq %r10, %rbx
ja 0xdbb41
jne 0xdbb5c
cmpl %r9d, %esi
jbe 0xdbb5c
xorl %eax, %eax
cmpb $0x2d, %cl
setne %al
movl $0x22, (%rdx)
negq %rax
btsq $0x3f, %rax
jmp 0xdbab5
movabsq $0x174876e800, %rax # imm = 0x174876E800
imulq %rax, %rdi
imulq $0x64, %rbx, %rax
addq %rdi, %rax
addq %rsi, %rax
jmp 0xdbab5
nopl (%rax)
| my_strtoll10:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
test rsi, rsi
jz short loc_DB8C2
mov r8, [rsi]
mov rax, rdi
cmp r8, rdi
jbe short loc_DB8B2
lea rax, my_charset_latin1
mov rcx, [rax+40h]
mov rax, rdi
loc_DB89B:
movzx r9d, byte ptr [rax]
test byte ptr [rcx+r9+1], 8
jz short loc_DB8B2
inc rax
cmp rax, r8
jnz short loc_DB89B
mov rax, r8
loc_DB8B2:
cmp rax, r8
jz loc_DB9A0
mov cl, [rax]
mov rbx, r8
jmp short loc_DB90E
loc_DB8C2:
mov cl, [rdi]
lea rsi, [rbp+var_30]
test cl, cl
jz loc_DB9A0
lea rax, my_charset_latin1
mov r8, [rax+40h]
lea rbx, [rdi+0FFFFh]
mov rax, rdi
loc_DB8E5:
movzx r9d, cl
test byte ptr [r8+r9+1], 8
jz short loc_DB903
mov cl, [rax+1]
inc rax
inc rbx
test cl, cl
jnz short loc_DB8E5
jmp loc_DB9A0
loc_DB903:
lea r8, [rax+0FFFFh]
lea rsi, [rbp+var_30]
loc_DB90E:
cmp cl, 2Dh ; '-'
jnz short loc_DB935
mov dword ptr [rdx], 0FFFFFFFFh
inc rax
cmp rax, r8
jz short loc_DB9A0
mov r9d, 8
mov r10d, 15F797AEh
mov r11d, 57F5FF8h
jmp short loc_DB95E
loc_DB935:
mov dword ptr [rdx], 0
mov r14b, [rax]
cmp r14b, 2Bh ; '+'
jnz short loc_DB963
inc rax
cmp rax, r8
jz short loc_DB9A0
mov r9d, 0Fh
mov r10d, 2BEF2F5Ch
mov r11d, 0AFEBFF0h
loc_DB95E:
mov r14b, [rax]
jmp short loc_DB975
loc_DB963:
mov r9d, 0Fh
mov r10d, 2BEF2F5Ch
mov r11d, 0AFEBFF0h
loc_DB975:
cmp r14b, 30h ; '0'
jnz short loc_DB996
xor edi, edi
loc_DB97D:
inc rax
cmp rax, r8
jz loc_DBAA5
cmp byte ptr [rax], 30h ; '0'
jz short loc_DB97D
lea rbx, [rax+9]
xor edi, edi
jmp short loc_DB9BE
loc_DB996:
add r14b, 0D0h
cmp r14b, 9
jbe short loc_DB9B0
loc_DB9A0:
mov dword ptr [rdx], 21h ; '!'
mov [rsi], rdi
xor eax, eax
jmp loc_DBAB5
loc_DB9B0:
movzx edi, r14b
mov rbx, rax
inc rax
add rbx, 9
loc_DB9BE:
cmp rbx, r8
cmova rbx, r8
loc_DB9C5:
cmp rax, rbx
jz short loc_DB9EC
mov r14b, [rax]
add r14b, 0D0h
cmp r14b, 9
ja loc_DBAA2
lea rdi, [rdi+rdi*4]
movzx r14d, r14b
lea rdi, [r14+rdi*2]
inc rax
jmp short loc_DB9C5
loc_DB9EC:
cmp rax, r8
jz loc_DBAA2
lea r12, [rax+9]
cmp r12, r8
cmova r12, r8
lea r14, [rax+1]
mov r13d, 9
xor ebx, ebx
loc_DBA0C:
mov r15b, [r14-1]
add r15b, 0D0h
cmp r15b, 9
ja loc_DBAC0
lea rbx, [rbx+rbx*4]
movzx r15d, r15b
lea rbx, [r15+rbx*2]
lea r15, [r14+1]
dec r13
cmp r14, r12
mov r14, r15
jnz short loc_DBA0C
lea r14, [r15-1]
cmp r12, r8
jz loc_DBAE5
mov al, [r14]
add al, 0D0h
cmp al, 9
ja loc_DBAEA
movzx r14d, al
cmp r15, r8
jz short loc_DBA69
mov al, [r15]
add al, 0D0h
cmp al, 9
jbe loc_DBB06
loc_DBA69:
mov rax, 2540BE400h
imul rdi, rax
lea rax, [rbx+rbx*4]
lea rax, [rdi+rax*2]
add rax, r14
mov [rsi], r15
cmp cl, 2Dh ; '-'
jnz short loc_DBAB5
mov rsi, 8000000000000000h
cmp rax, rsi
ja loc_DBB41
neg rax
jmp short loc_DBAB5
loc_DBAA2:
mov rbx, rax
loc_DBAA5:
mov rax, rdi
neg rax
cmp cl, 2Dh ; '-'
mov [rsi], rbx
loc_DBAB1:
cmovnz rax, rdi
loc_DBAB5:
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_DBAC0:
dec r14
loc_DBAC3:
mov edx, r14d
sub edx, eax
lea rax, lfactor_0
imul rdi, [rax+rdx*8]
add rdi, rbx
mov rax, rdi
neg rax
cmp cl, 2Dh ; '-'
mov [rsi], r14
jmp short loc_DBAB1
loc_DBAE5:
test r13, r13
jnz short loc_DBAC3
loc_DBAEA:
imul rax, rdi, 3B9ACA00h
add rbx, rax
mov rax, rbx
neg rax
cmp cl, 2Dh ; '-'
mov [rsi], r14
cmovnz rax, rbx
jmp short loc_DBAB5
loc_DBB06:
lea r12, [r15+1]
mov [rsi], r12
cmp r12, r8
jz short loc_DBB20
mov sil, [r15+1]
add sil, 0D0h
cmp sil, 0Ah
jb short loc_DBB41
loc_DBB20:
cmp rdi, r11
ja short loc_DBB41
lea rsi, [r14+r14*4]
movzx eax, al
lea rsi, [rax+rsi*2]
cmp rdi, r11
jnz short loc_DBB5C
cmp rbx, r10
ja short loc_DBB41
jnz short loc_DBB5C
cmp esi, r9d
jbe short loc_DBB5C
loc_DBB41:
xor eax, eax
cmp cl, 2Dh ; '-'
setnz al
mov dword ptr [rdx], 22h ; '"'
neg rax
bts rax, 3Fh ; '?'
jmp loc_DBAB5
loc_DBB5C:
mov rax, 174876E800h
imul rdi, rax
imul rax, rbx, 64h ; 'd'
add rax, rdi
add rax, rsi
jmp loc_DBAB5
| unsigned long long my_strtoll10(unsigned __int8 *a1, unsigned long long *a2, _DWORD *a3)
{
unsigned long long v3; // r8
unsigned __int8 *v4; // rax
unsigned __int8 v5; // cl
_BYTE *v6; // rbx
unsigned int v7; // r9d
unsigned long long v8; // r10
unsigned long long v9; // r11
unsigned __int8 v10; // r14
unsigned long long v11; // rdi
unsigned __int8 *v12; // rbx
unsigned __int8 v13; // r14
unsigned long long result; // rax
unsigned __int8 *v15; // rbx
unsigned __int8 v16; // r14
unsigned __int8 *v17; // r12
unsigned __int8 *v18; // r14
long long v19; // r13
unsigned long long v20; // rbx
unsigned __int8 v21; // r15
_BYTE *v22; // r15
unsigned __int8 *v23; // r14
unsigned __int8 v24; // al
long long v25; // r14
unsigned __int8 v26; // al
bool v27; // zf
unsigned long long v28; // rbx
long long v29; // rsi
_BYTE v30[48]; // [rsp+0h] [rbp-30h] BYREF
if ( a2 )
{
v3 = *a2;
v4 = a1;
if ( *a2 > (unsigned long long)a1 )
{
v4 = a1;
while ( (*(_BYTE *)(*(_QWORD *)&my_charset_latin1[16] + *v4 + 1LL) & 8) != 0 )
{
if ( ++v4 == (unsigned __int8 *)v3 )
{
v4 = (unsigned __int8 *)*a2;
break;
}
}
}
if ( v4 == (unsigned __int8 *)v3 )
goto LABEL_29;
v5 = *v4;
v6 = (_BYTE *)*a2;
}
else
{
v5 = *a1;
a2 = (unsigned long long *)v30;
if ( !*a1 )
goto LABEL_29;
v6 = a1 + 0xFFFF;
v4 = a1;
while ( (*(_BYTE *)(*(_QWORD *)&my_charset_latin1[16] + v5 + 1LL) & 8) != 0 )
{
v5 = *++v4;
++v6;
if ( !v5 )
goto LABEL_29;
}
v3 = (unsigned long long)(v4 + 0xFFFF);
a2 = (unsigned long long *)v30;
}
if ( v5 == 45 )
{
*a3 = -1;
if ( ++v4 == (unsigned __int8 *)v3 )
goto LABEL_29;
v7 = 8;
v8 = 368547758LL;
v9 = 92233720LL;
goto LABEL_21;
}
*a3 = 0;
v10 = *v4;
if ( *v4 == 43 )
{
if ( ++v4 == (unsigned __int8 *)v3 )
goto LABEL_29;
v7 = 15;
v8 = 737095516LL;
v9 = 184467440LL;
LABEL_21:
v10 = *v4;
goto LABEL_23;
}
v7 = 15;
v8 = 737095516LL;
v9 = 184467440LL;
LABEL_23:
if ( v10 != 48 )
{
v13 = v10 - 48;
if ( v13 <= 9u )
{
v11 = v13;
v15 = v4++;
v12 = v15 + 9;
goto LABEL_31;
}
LABEL_29:
*a3 = 33;
*a2 = (unsigned long long)a1;
return 0LL;
}
v11 = 0LL;
do
{
if ( ++v4 == (unsigned __int8 *)v3 )
goto LABEL_50;
}
while ( *v4 == 48 );
v12 = v4 + 9;
v11 = 0LL;
LABEL_31:
if ( (unsigned long long)v12 > v3 )
v12 = (unsigned __int8 *)v3;
while ( v4 != v12 )
{
v16 = *v4 - 48;
if ( v16 > 9u )
goto LABEL_49;
v11 = v16 + 10 * v11;
++v4;
}
if ( v4 == (unsigned __int8 *)v3 )
{
LABEL_49:
v6 = v4;
LABEL_50:
result = -(long long)v11;
v27 = v5 == 45;
*a2 = (unsigned long long)v6;
LABEL_51:
if ( !v27 )
return v11;
return result;
}
v17 = v4 + 9;
if ( (unsigned long long)(v4 + 9) > v3 )
v17 = (unsigned __int8 *)v3;
v18 = v4 + 1;
v19 = 9LL;
v20 = 0LL;
do
{
v21 = *(v18 - 1) - 48;
if ( v21 > 9u )
{
v23 = v18 - 1;
goto LABEL_55;
}
v20 = v21 + 10 * v20;
v22 = v18 + 1;
--v19;
v27 = v18++ == v17;
}
while ( !v27 );
v23 = v22 - 1;
if ( v17 == (unsigned __int8 *)v3 )
{
if ( !v19 )
{
LABEL_57:
v28 = 1000000000 * v11 + v20;
result = -(long long)v28;
*a2 = (unsigned long long)v23;
if ( v5 != 45 )
return v28;
return result;
}
LABEL_55:
v11 = v20 + lfactor_0[(int)v23 - (int)v4] * v11;
result = -(long long)v11;
v27 = v5 == 45;
*a2 = (unsigned long long)v23;
goto LABEL_51;
}
v24 = *v23 - 48;
if ( v24 > 9u )
goto LABEL_57;
v25 = v24;
if ( v22 == (_BYTE *)v3 || (v26 = *v22 - 48, v26 > 9u) )
{
result = v25 + 10000000000LL * v11 + 10 * v20;
*a2 = (unsigned long long)v22;
if ( v5 != 45 )
return result;
if ( result <= 0x8000000000000000LL )
return -(long long)result;
LABEL_67:
*a3 = 34;
return -(long long)(v5 != 45) | 0x8000000000000000LL;
}
else
{
*a2 = (unsigned long long)(v22 + 1);
if ( v22 + 1 != (_BYTE *)v3 && (unsigned __int8)(v22[1] - 48) < 0xAu )
goto LABEL_67;
if ( v11 > v9 )
goto LABEL_67;
v29 = v26 + 10 * v25;
if ( v11 == v9 && (v20 > v8 || v20 == v8 && (unsigned int)v29 > v7) )
goto LABEL_67;
return v29 + 100000000000LL * v11 + 100 * v20;
}
}
| my_strtoll10:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
TEST RSI,RSI
JZ 0x001db8c2
MOV R8,qword ptr [RSI]
MOV RAX,RDI
CMP R8,RDI
JBE 0x001db8b2
LEA RAX,[0x4b2f80]
MOV RCX,qword ptr [RAX + 0x40]
MOV RAX,RDI
LAB_001db89b:
MOVZX R9D,byte ptr [RAX]
TEST byte ptr [RCX + R9*0x1 + 0x1],0x8
JZ 0x001db8b2
INC RAX
CMP RAX,R8
JNZ 0x001db89b
MOV RAX,R8
LAB_001db8b2:
CMP RAX,R8
JZ 0x001db9a0
MOV CL,byte ptr [RAX]
MOV RBX,R8
JMP 0x001db90e
LAB_001db8c2:
MOV CL,byte ptr [RDI]
LEA RSI,[RBP + -0x30]
TEST CL,CL
JZ 0x001db9a0
LEA RAX,[0x4b2f80]
MOV R8,qword ptr [RAX + 0x40]
LEA RBX,[RDI + 0xffff]
MOV RAX,RDI
LAB_001db8e5:
MOVZX R9D,CL
TEST byte ptr [R8 + R9*0x1 + 0x1],0x8
JZ 0x001db903
MOV CL,byte ptr [RAX + 0x1]
INC RAX
INC RBX
TEST CL,CL
JNZ 0x001db8e5
JMP 0x001db9a0
LAB_001db903:
LEA R8,[RAX + 0xffff]
LEA RSI,[RBP + -0x30]
LAB_001db90e:
CMP CL,0x2d
JNZ 0x001db935
MOV dword ptr [RDX],0xffffffff
INC RAX
CMP RAX,R8
JZ 0x001db9a0
MOV R9D,0x8
MOV R10D,0x15f797ae
MOV R11D,0x57f5ff8
JMP 0x001db95e
LAB_001db935:
MOV dword ptr [RDX],0x0
MOV R14B,byte ptr [RAX]
CMP R14B,0x2b
JNZ 0x001db963
INC RAX
CMP RAX,R8
JZ 0x001db9a0
MOV R9D,0xf
MOV R10D,0x2bef2f5c
MOV R11D,0xafebff0
LAB_001db95e:
MOV R14B,byte ptr [RAX]
JMP 0x001db975
LAB_001db963:
MOV R9D,0xf
MOV R10D,0x2bef2f5c
MOV R11D,0xafebff0
LAB_001db975:
CMP R14B,0x30
JNZ 0x001db996
XOR EDI,EDI
LAB_001db97d:
INC RAX
CMP RAX,R8
JZ 0x001dbaa5
CMP byte ptr [RAX],0x30
JZ 0x001db97d
LEA RBX,[RAX + 0x9]
XOR EDI,EDI
JMP 0x001db9be
LAB_001db996:
ADD R14B,0xd0
CMP R14B,0x9
JBE 0x001db9b0
LAB_001db9a0:
MOV dword ptr [RDX],0x21
MOV qword ptr [RSI],RDI
XOR EAX,EAX
JMP 0x001dbab5
LAB_001db9b0:
MOVZX EDI,R14B
MOV RBX,RAX
INC RAX
ADD RBX,0x9
LAB_001db9be:
CMP RBX,R8
CMOVA RBX,R8
LAB_001db9c5:
CMP RAX,RBX
JZ 0x001db9ec
MOV R14B,byte ptr [RAX]
ADD R14B,0xd0
CMP R14B,0x9
JA 0x001dbaa2
LEA RDI,[RDI + RDI*0x4]
MOVZX R14D,R14B
LEA RDI,[R14 + RDI*0x2]
INC RAX
JMP 0x001db9c5
LAB_001db9ec:
CMP RAX,R8
JZ 0x001dbaa2
LEA R12,[RAX + 0x9]
CMP R12,R8
CMOVA R12,R8
LEA R14,[RAX + 0x1]
MOV R13D,0x9
XOR EBX,EBX
LAB_001dba0c:
MOV R15B,byte ptr [R14 + -0x1]
ADD R15B,0xd0
CMP R15B,0x9
JA 0x001dbac0
LEA RBX,[RBX + RBX*0x4]
MOVZX R15D,R15B
LEA RBX,[R15 + RBX*0x2]
LEA R15,[R14 + 0x1]
DEC R13
CMP R14,R12
MOV R14,R15
JNZ 0x001dba0c
LEA R14,[R15 + -0x1]
CMP R12,R8
JZ 0x001dbae5
MOV AL,byte ptr [R14]
ADD AL,0xd0
CMP AL,0x9
JA 0x001dbaea
MOVZX R14D,AL
CMP R15,R8
JZ 0x001dba69
MOV AL,byte ptr [R15]
ADD AL,0xd0
CMP AL,0x9
JBE 0x001dbb06
LAB_001dba69:
MOV RAX,0x2540be400
IMUL RDI,RAX
LEA RAX,[RBX + RBX*0x4]
LEA RAX,[RDI + RAX*0x2]
ADD RAX,R14
MOV qword ptr [RSI],R15
CMP CL,0x2d
JNZ 0x001dbab5
MOV RSI,-0x8000000000000000
CMP RAX,RSI
JA 0x001dbb41
NEG RAX
JMP 0x001dbab5
LAB_001dbaa2:
MOV RBX,RAX
LAB_001dbaa5:
MOV RAX,RDI
NEG RAX
CMP CL,0x2d
MOV qword ptr [RSI],RBX
LAB_001dbab1:
CMOVNZ RAX,RDI
LAB_001dbab5:
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001dbac0:
DEC R14
LAB_001dbac3:
MOV EDX,R14D
SUB EDX,EAX
LEA RAX,[0x461b20]
IMUL RDI,qword ptr [RAX + RDX*0x8]
ADD RDI,RBX
MOV RAX,RDI
NEG RAX
CMP CL,0x2d
MOV qword ptr [RSI],R14
JMP 0x001dbab1
LAB_001dbae5:
TEST R13,R13
JNZ 0x001dbac3
LAB_001dbaea:
IMUL RAX,RDI,0x3b9aca00
ADD RBX,RAX
MOV RAX,RBX
NEG RAX
CMP CL,0x2d
MOV qword ptr [RSI],R14
CMOVNZ RAX,RBX
JMP 0x001dbab5
LAB_001dbb06:
LEA R12,[R15 + 0x1]
MOV qword ptr [RSI],R12
CMP R12,R8
JZ 0x001dbb20
MOV SIL,byte ptr [R15 + 0x1]
ADD SIL,0xd0
CMP SIL,0xa
JC 0x001dbb41
LAB_001dbb20:
CMP RDI,R11
JA 0x001dbb41
LEA RSI,[R14 + R14*0x4]
MOVZX EAX,AL
LEA RSI,[RAX + RSI*0x2]
CMP RDI,R11
JNZ 0x001dbb5c
CMP RBX,R10
JA 0x001dbb41
JNZ 0x001dbb5c
CMP ESI,R9D
JBE 0x001dbb5c
LAB_001dbb41:
XOR EAX,EAX
CMP CL,0x2d
SETNZ AL
MOV dword ptr [RDX],0x22
NEG RAX
BTS RAX,0x3f
JMP 0x001dbab5
LAB_001dbb5c:
MOV RAX,0x174876e800
IMUL RDI,RAX
IMUL RAX,RBX,0x64
ADD RAX,RDI
ADD RAX,RSI
JMP 0x001dbab5
|
ulong my_strtoll10(byte *param_1,ulong *param_2,int4 *param_3)
{
byte bVar1;
byte bVar2;
byte *pbVar3;
byte *pbVar4;
byte *pbVar5;
byte bVar6;
byte *pbVar7;
ulong uVar8;
ulong uVar9;
uint uVar10;
ulong uVar11;
ulong uVar12;
long lVar13;
byte *pbVar14;
ulong local_38;
pbVar4 = param_1;
if (param_2 == (ulong *)0x0) {
bVar6 = *param_1;
param_2 = &local_38;
if (bVar6 != 0) {
pbVar7 = param_1 + 0xffff;
do {
if ((PTR_ctype_latin1_004b2fc0[(ulong)bVar6 + 1] & 8) == 0) {
pbVar3 = pbVar4 + 0xffff;
param_2 = &local_38;
goto LAB_001db90e;
}
bVar6 = pbVar4[1];
pbVar4 = pbVar4 + 1;
pbVar7 = pbVar7 + 1;
} while (bVar6 != 0);
}
goto LAB_001db9a0;
}
pbVar7 = (byte *)*param_2;
pbVar3 = param_1;
if (param_1 < pbVar7) {
do {
pbVar4 = pbVar3;
if ((PTR_ctype_latin1_004b2fc0[(ulong)*pbVar3 + 1] & 8) == 0) break;
pbVar3 = pbVar3 + 1;
pbVar4 = pbVar7;
} while (pbVar3 != pbVar7);
}
if (pbVar4 == pbVar7) goto LAB_001db9a0;
bVar6 = *pbVar4;
pbVar3 = pbVar7;
LAB_001db90e:
if (bVar6 == 0x2d) {
*param_3 = 0xffffffff;
if (pbVar4 + 1 == pbVar3) goto LAB_001db9a0;
uVar10 = 8;
uVar11 = 0x15f797ae;
uVar12 = 0x57f5ff8;
LAB_001db95e:
pbVar4 = pbVar4 + 1;
bVar2 = *pbVar4;
}
else {
*param_3 = 0;
bVar2 = *pbVar4;
if (bVar2 == 0x2b) {
if (pbVar4 + 1 == pbVar3) goto LAB_001db9a0;
uVar10 = 0xf;
uVar11 = 0x2bef2f5c;
uVar12 = 0xafebff0;
goto LAB_001db95e;
}
uVar10 = 0xf;
uVar11 = 0x2bef2f5c;
uVar12 = 0xafebff0;
}
if (bVar2 == 0x30) {
uVar9 = 0;
do {
pbVar14 = pbVar4;
pbVar5 = pbVar14 + 1;
if (pbVar5 == pbVar3) goto LAB_001dbaa5;
pbVar4 = pbVar5;
} while (*pbVar5 == 0x30);
pbVar14 = pbVar14 + 10;
uVar9 = 0;
}
else {
if (9 < (byte)(bVar2 - 0x30)) {
LAB_001db9a0:
*param_3 = 0x21;
*param_2 = (ulong)param_1;
return 0;
}
uVar9 = (ulong)(byte)(bVar2 - 0x30);
pbVar5 = pbVar4 + 1;
pbVar14 = pbVar4 + 9;
}
if (pbVar3 < pbVar14) {
pbVar14 = pbVar3;
}
for (; pbVar7 = pbVar5, pbVar5 != pbVar14; pbVar5 = pbVar5 + 1) {
if (9 < (byte)(*pbVar5 - 0x30)) goto LAB_001dbaa5;
uVar9 = (ulong)(byte)(*pbVar5 - 0x30) + uVar9 * 10;
}
if (pbVar5 != pbVar3) {
pbVar4 = pbVar5 + 9;
if (pbVar3 < pbVar5 + 9) {
pbVar4 = pbVar3;
}
lVar13 = 9;
uVar8 = 0;
pbVar7 = pbVar5 + 1;
do {
pbVar14 = pbVar7;
if (9 < (byte)(pbVar14[-1] - 0x30)) {
pbVar14 = pbVar14 + -1;
goto LAB_001dbac3;
}
uVar8 = (ulong)(byte)(pbVar14[-1] - 0x30) + uVar8 * 10;
pbVar7 = pbVar14 + 1;
lVar13 = lVar13 + -1;
} while (pbVar14 != pbVar4);
if (pbVar4 == pbVar3) {
if (lVar13 != 0) {
LAB_001dbac3:
uVar9 = uVar9 * (&lfactor)[(uint)((int)pbVar14 - (int)pbVar5)] + uVar8;
*param_2 = (ulong)pbVar14;
goto LAB_001dbab1;
}
}
else {
bVar2 = *pbVar14 - 0x30;
if (bVar2 < 10) {
if ((pbVar7 == pbVar3) || (bVar1 = *pbVar7, 9 < (byte)(bVar1 - 0x30))) {
uVar11 = uVar9 * 10000000000 + uVar8 * 10 + (ulong)bVar2;
*param_2 = (ulong)pbVar7;
if (bVar6 != 0x2d) {
return uVar11;
}
if (uVar11 < 0x8000000000000001) {
return -uVar11;
}
}
else {
*param_2 = (ulong)(pbVar14 + 2);
if ((((pbVar14 + 2 == pbVar3) || (9 < (byte)(pbVar14[2] - 0x30))) && (uVar9 <= uVar12)) &&
((lVar13 = (ulong)(byte)(bVar1 - 0x30) + (ulong)bVar2 * 10, uVar9 != uVar12 ||
((uVar8 <= uVar11 && ((uVar8 != uVar11 || ((uint)lVar13 <= uVar10)))))))) {
return uVar8 * 100 + uVar9 * 100000000000 + lVar13;
}
}
*param_3 = 0x22;
return -(ulong)(bVar6 != 0x2d) | 0x8000000000000000;
}
}
uVar8 = uVar8 + uVar9 * 1000000000;
*param_2 = (ulong)pbVar14;
if (bVar6 == 0x2d) {
return -uVar8;
}
return uVar8;
}
LAB_001dbaa5:
*param_2 = (ulong)pbVar7;
LAB_001dbab1:
if (bVar6 == 0x2d) {
return -uVar9;
}
return uVar9;
}
| |
41,043 | ggml_compute_forward_im2col | monkey531[P]llama/ggml/src/ggml-cpu/ggml-cpu.c | static void ggml_compute_forward_im2col(
const struct ggml_compute_params * params,
struct ggml_tensor * dst) {
switch (dst->type) {
case GGML_TYPE_F16:
{
ggml_compute_forward_im2col_f16(params, dst);
} break;
case GGML_TYPE_F32:
{
ggml_compute_forward_im2col_f32(params, dst);
} break;
default:
{
GGML_ABORT("fatal error");
}
}
} | O0 | c | ggml_compute_forward_im2col:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x8(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x4(%rsp)
testl %eax, %eax
je 0x1684b
jmp 0x1682f
movl 0x4(%rsp), %eax
subl $0x1, %eax
jne 0x1685c
jmp 0x1683a
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x36210
jmp 0x16876
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x36af0
jmp 0x16876
leaq 0x9b2f7(%rip), %rdi # 0xb1b5a
movl $0x2740, %esi # imm = 0x2740
leaq 0x9b458(%rip), %rdx # 0xb1cc7
movb $0x0, %al
callq 0xd030
addq $0x18, %rsp
retq
nopl (%rax,%rax)
| ggml_compute_forward_im2col:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov [rsp+18h+var_10], rsi
mov rax, [rsp+18h+var_10]
mov eax, [rax]
mov [rsp+18h+var_14], eax
test eax, eax
jz short loc_1684B
jmp short $+2
loc_1682F:
mov eax, [rsp+18h+var_14]
sub eax, 1
jnz short loc_1685C
jmp short $+2
loc_1683A:
mov rdi, [rsp+18h+var_8]
mov rsi, [rsp+18h+var_10]
call ggml_compute_forward_im2col_f16
jmp short loc_16876
loc_1684B:
mov rdi, [rsp+18h+var_8]
mov rsi, [rsp+18h+var_10]
call ggml_compute_forward_im2col_f32
jmp short loc_16876
loc_1685C:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 2740h
lea rdx, aFatalError; "fatal error"
mov al, 0
call _ggml_abort
loc_16876:
add rsp, 18h
retn
| double ggml_compute_forward_im2col(long long a1, _DWORD *a2)
{
double result; // xmm0_8
if ( *a2 )
{
if ( *a2 == 1 )
ggml_compute_forward_im2col_f16(a1, a2);
else
return ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/ggml-cpu/ggml-cpu.c",
10048LL,
"fatal error");
}
else
{
ggml_compute_forward_im2col_f32(a1, a2);
}
return result;
}
| ggml_compute_forward_im2col:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV qword ptr [RSP + 0x8],RSI
MOV RAX,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0x4],EAX
TEST EAX,EAX
JZ 0x0011684b
JMP 0x0011682f
LAB_0011682f:
MOV EAX,dword ptr [RSP + 0x4]
SUB EAX,0x1
JNZ 0x0011685c
JMP 0x0011683a
LAB_0011683a:
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x8]
CALL 0x00136210
JMP 0x00116876
LAB_0011684b:
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x8]
CALL 0x00136af0
JMP 0x00116876
LAB_0011685c:
LEA RDI,[0x1b1b5a]
MOV ESI,0x2740
LEA RDX,[0x1b1cc7]
MOV AL,0x0
CALL 0x0010d030
LAB_00116876:
ADD RSP,0x18
RET
|
void ggml_compute_forward_im2col(int8 param_1,int *param_2)
{
if (*param_2 == 0) {
ggml_compute_forward_im2col_f32(param_1,param_2);
}
else {
if (*param_2 != 1) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/ggml-cpu/ggml-cpu.c"
,0x2740,"fatal error");
}
ggml_compute_forward_im2col_f16(param_1,param_2);
}
return;
}
| |
41,044 | ft_stroke_border_cubicto | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-ft-stroker.c | static PVG_FT_Error ft_stroke_border_cubicto(PVG_FT_StrokeBorder border,
PVG_FT_Vector* control1,
PVG_FT_Vector* control2,
PVG_FT_Vector* to)
{
PVG_FT_Error error;
assert(border->start >= 0);
error = ft_stroke_border_grow(border, 3);
if (!error) {
PVG_FT_Vector* vec = border->points + border->num_points;
PVG_FT_Byte* tag = border->tags + border->num_points;
vec[0] = *control1;
vec[1] = *control2;
vec[2] = *to;
tag[0] = PVG_FT_STROKE_TAG_CUBIC;
tag[1] = PVG_FT_STROKE_TAG_CUBIC;
tag[2] = PVG_FT_STROKE_TAG_ON;
border->num_points += 3;
}
border->movable = FALSE;
return error;
} | O1 | c | ft_stroke_border_cubicto:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x0, 0x1c(%rdi)
js 0x1e224
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movl $0x3, %esi
callq 0x1f0ad
movq 0x8(%rbx), %rax
movl (%rbx), %ecx
movq %rcx, %rdx
shlq $0x4, %rdx
movq 0x10(%rbx), %rsi
movups (%r12), %xmm0
movups %xmm0, (%rax,%rdx)
movups (%r15), %xmm0
movups %xmm0, 0x10(%rax,%rdx)
movups (%r14), %xmm0
movups %xmm0, 0x20(%rax,%rdx)
movw $0x202, (%rsi,%rcx) # imm = 0x202
movb $0x1, 0x2(%rsi,%rcx)
addl $0x3, (%rbx)
movb $0x0, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x8a35(%rip), %rdi # 0x26c60
leaq 0x8a41(%rip), %rsi # 0x26c73
leaq 0x8b59(%rip), %rcx # 0x26d92
movl $0x186, %edx # imm = 0x186
callq 0x30b0
| ft_stroke_border_cubicto:
push r15
push r14
push r12
push rbx
push rax
cmp dword ptr [rdi+1Ch], 0
js short loc_1E224
mov r14, rcx
mov r15, rdx
mov r12, rsi
mov rbx, rdi
mov esi, 3
call ft_stroke_border_grow
mov rax, [rbx+8]
mov ecx, [rbx]
mov rdx, rcx
shl rdx, 4
mov rsi, [rbx+10h]
movups xmm0, xmmword ptr [r12]
movups xmmword ptr [rax+rdx], xmm0
movups xmm0, xmmword ptr [r15]
movups xmmword ptr [rax+rdx+10h], xmm0
movups xmm0, xmmword ptr [r14]
movups xmmword ptr [rax+rdx+20h], xmm0
mov word ptr [rsi+rcx], 202h
mov byte ptr [rsi+rcx+2], 1
add dword ptr [rbx], 3
mov byte ptr [rbx+18h], 0
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
loc_1E224:
lea rdi, aBorderStart0; "border->start >= 0"
lea rsi, aWorkspaceLlm4b_4; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aPvgFtErrorFtSt_1; "PVG_FT_Error ft_stroke_border_cubicto(P"...
mov edx, 186h
call ___assert_fail
| long long ft_stroke_border_cubicto(unsigned int *a1, _OWORD *a2, _OWORD *a3, _OWORD *a4)
{
long long result; // rax
long long v8; // rcx
long long v9; // rdx
long long v10; // rsi
if ( (a1[7] & 0x80000000) != 0 )
__assert_fail(
"border->start >= 0",
"/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-ft-stroker.c",
390LL,
"PVG_FT_Error ft_stroke_border_cubicto(PVG_FT_StrokeBorder, PVG_FT_Vector *, PVG_FT_Vector *, PVG_FT_Vector *)");
ft_stroke_border_grow(a1, 3LL);
result = *((_QWORD *)a1 + 1);
v8 = *a1;
v9 = 16 * v8;
v10 = *((_QWORD *)a1 + 2);
*(_OWORD *)(result + v9) = *a2;
*(_OWORD *)(result + v9 + 16) = *a3;
*(_OWORD *)(result + v9 + 32) = *a4;
*(_WORD *)(v10 + v8) = 514;
*(_BYTE *)(v10 + v8 + 2) = 1;
*a1 += 3;
*((_BYTE *)a1 + 24) = 0;
return result;
}
| ft_stroke_border_cubicto:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
CMP dword ptr [RDI + 0x1c],0x0
JS 0x0011e224
MOV R14,RCX
MOV R15,RDX
MOV R12,RSI
MOV RBX,RDI
MOV ESI,0x3
CALL 0x0011f0ad
MOV RAX,qword ptr [RBX + 0x8]
MOV ECX,dword ptr [RBX]
MOV RDX,RCX
SHL RDX,0x4
MOV RSI,qword ptr [RBX + 0x10]
MOVUPS XMM0,xmmword ptr [R12]
MOVUPS xmmword ptr [RAX + RDX*0x1],XMM0
MOVUPS XMM0,xmmword ptr [R15]
MOVUPS xmmword ptr [RAX + RDX*0x1 + 0x10],XMM0
MOVUPS XMM0,xmmword ptr [R14]
MOVUPS xmmword ptr [RAX + RDX*0x1 + 0x20],XMM0
MOV word ptr [RSI + RCX*0x1],0x202
MOV byte ptr [RSI + RCX*0x1 + 0x2],0x1
ADD dword ptr [RBX],0x3
MOV byte ptr [RBX + 0x18],0x0
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0011e224:
LEA RDI,[0x126c60]
LEA RSI,[0x126c73]
LEA RCX,[0x126d92]
MOV EDX,0x186
CALL 0x001030b0
|
void ft_stroke_border_cubicto
(uint *param_1,int8 *param_2,int8 *param_3,int8 *param_4)
{
int8 *puVar1;
long lVar2;
long lVar3;
int8 uVar4;
ulong uVar5;
long lVar6;
if (-1 < (int)param_1[7]) {
ft_stroke_border_grow(param_1,3);
lVar2 = *(long *)(param_1 + 2);
uVar5 = (ulong)*param_1;
lVar6 = uVar5 * 0x10;
lVar3 = *(long *)(param_1 + 4);
uVar4 = param_2[1];
*(int8 *)(lVar2 + lVar6) = *param_2;
((int8 *)(lVar2 + lVar6))[1] = uVar4;
uVar4 = param_3[1];
puVar1 = (int8 *)(lVar2 + 0x10 + lVar6);
*puVar1 = *param_3;
puVar1[1] = uVar4;
uVar4 = param_4[1];
puVar1 = (int8 *)(lVar2 + 0x20 + lVar6);
*puVar1 = *param_4;
puVar1[1] = uVar4;
*(int2 *)(lVar3 + uVar5) = 0x202;
*(int1 *)(lVar3 + 2 + uVar5) = 1;
*param_1 = *param_1 + 3;
*(int1 *)(param_1 + 6) = 0;
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("border->start >= 0",
"/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-ft-stroker.c"
,0x186,
"PVG_FT_Error ft_stroke_border_cubicto(PVG_FT_StrokeBorder, PVG_FT_Vector *, PVG_FT_Vector *, PVG_FT_Vector *)"
);
}
| |
41,045 | ft_stroke_border_cubicto | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-ft-stroker.c | static PVG_FT_Error ft_stroke_border_cubicto(PVG_FT_StrokeBorder border,
PVG_FT_Vector* control1,
PVG_FT_Vector* control2,
PVG_FT_Vector* to)
{
PVG_FT_Error error;
assert(border->start >= 0);
error = ft_stroke_border_grow(border, 3);
if (!error) {
PVG_FT_Vector* vec = border->points + border->num_points;
PVG_FT_Byte* tag = border->tags + border->num_points;
vec[0] = *control1;
vec[1] = *control2;
vec[2] = *to;
tag[0] = PVG_FT_STROKE_TAG_CUBIC;
tag[1] = PVG_FT_STROKE_TAG_CUBIC;
tag[2] = PVG_FT_STROKE_TAG_ON;
border->num_points += 3;
}
border->movable = FALSE;
return error;
} | O2 | c | ft_stroke_border_cubicto:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x0, 0x1c(%rdi)
js 0x1a15a
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
pushq $0x3
popq %rsi
callq 0x1ae53
movq 0x8(%rbx), %rax
movl (%rbx), %ecx
movq %rcx, %rdx
shlq $0x4, %rdx
movq 0x10(%rbx), %rsi
movups (%r12), %xmm0
movups %xmm0, (%rax,%rdx)
movups (%r15), %xmm0
movups %xmm0, 0x10(%rax,%rdx)
movups (%r14), %xmm0
movups %xmm0, 0x20(%rax,%rdx)
movw $0x202, (%rsi,%rcx) # imm = 0x202
movb $0x1, 0x2(%rsi,%rcx)
addl $0x3, (%rbx)
movb $0x0, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x7b1f(%rip), %rdi # 0x21c80
leaq 0x7b2b(%rip), %rsi # 0x21c93
leaq 0x7c43(%rip), %rcx # 0x21db2
movl $0x186, %edx # imm = 0x186
callq 0x30a0
| ft_stroke_border_cubicto:
push r15
push r14
push r12
push rbx
push rax
cmp dword ptr [rdi+1Ch], 0
js short loc_1A15A
mov r14, rcx
mov r15, rdx
mov r12, rsi
mov rbx, rdi
push 3
pop rsi
call ft_stroke_border_grow
mov rax, [rbx+8]
mov ecx, [rbx]
mov rdx, rcx
shl rdx, 4
mov rsi, [rbx+10h]
movups xmm0, xmmword ptr [r12]
movups xmmword ptr [rax+rdx], xmm0
movups xmm0, xmmword ptr [r15]
movups xmmword ptr [rax+rdx+10h], xmm0
movups xmm0, xmmword ptr [r14]
movups xmmword ptr [rax+rdx+20h], xmm0
mov word ptr [rsi+rcx], 202h
mov byte ptr [rsi+rcx+2], 1
add dword ptr [rbx], 3
mov byte ptr [rbx+18h], 0
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
loc_1A15A:
lea rdi, aBorderStart0; "border->start >= 0"
lea rsi, aWorkspaceLlm4b_4; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aPvgFtErrorFtSt_1; "PVG_FT_Error ft_stroke_border_cubicto(P"...
mov edx, 186h
call ___assert_fail
| long long ft_stroke_border_cubicto(unsigned int *a1, _OWORD *a2, _OWORD *a3, _OWORD *a4)
{
long long result; // rax
long long v8; // rcx
long long v9; // rdx
long long v10; // rsi
if ( (a1[7] & 0x80000000) != 0 )
__assert_fail(
"border->start >= 0",
"/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-ft-stroker.c",
390LL,
"PVG_FT_Error ft_stroke_border_cubicto(PVG_FT_StrokeBorder, PVG_FT_Vector *, PVG_FT_Vector *, PVG_FT_Vector *)");
ft_stroke_border_grow(a1, 3LL);
result = *((_QWORD *)a1 + 1);
v8 = *a1;
v9 = 16 * v8;
v10 = *((_QWORD *)a1 + 2);
*(_OWORD *)(result + v9) = *a2;
*(_OWORD *)(result + v9 + 16) = *a3;
*(_OWORD *)(result + v9 + 32) = *a4;
*(_WORD *)(v10 + v8) = 514;
*(_BYTE *)(v10 + v8 + 2) = 1;
*a1 += 3;
*((_BYTE *)a1 + 24) = 0;
return result;
}
| ft_stroke_border_cubicto:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
CMP dword ptr [RDI + 0x1c],0x0
JS 0x0011a15a
MOV R14,RCX
MOV R15,RDX
MOV R12,RSI
MOV RBX,RDI
PUSH 0x3
POP RSI
CALL 0x0011ae53
MOV RAX,qword ptr [RBX + 0x8]
MOV ECX,dword ptr [RBX]
MOV RDX,RCX
SHL RDX,0x4
MOV RSI,qword ptr [RBX + 0x10]
MOVUPS XMM0,xmmword ptr [R12]
MOVUPS xmmword ptr [RAX + RDX*0x1],XMM0
MOVUPS XMM0,xmmword ptr [R15]
MOVUPS xmmword ptr [RAX + RDX*0x1 + 0x10],XMM0
MOVUPS XMM0,xmmword ptr [R14]
MOVUPS xmmword ptr [RAX + RDX*0x1 + 0x20],XMM0
MOV word ptr [RSI + RCX*0x1],0x202
MOV byte ptr [RSI + RCX*0x1 + 0x2],0x1
ADD dword ptr [RBX],0x3
MOV byte ptr [RBX + 0x18],0x0
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0011a15a:
LEA RDI,[0x121c80]
LEA RSI,[0x121c93]
LEA RCX,[0x121db2]
MOV EDX,0x186
CALL 0x001030a0
|
void ft_stroke_border_cubicto
(uint *param_1,int8 *param_2,int8 *param_3,int8 *param_4)
{
int8 *puVar1;
long lVar2;
long lVar3;
int8 uVar4;
ulong uVar5;
long lVar6;
if (-1 < (int)param_1[7]) {
ft_stroke_border_grow(param_1,3);
lVar2 = *(long *)(param_1 + 2);
uVar5 = (ulong)*param_1;
lVar6 = uVar5 * 0x10;
lVar3 = *(long *)(param_1 + 4);
uVar4 = param_2[1];
*(int8 *)(lVar2 + lVar6) = *param_2;
((int8 *)(lVar2 + lVar6))[1] = uVar4;
uVar4 = param_3[1];
puVar1 = (int8 *)(lVar2 + 0x10 + lVar6);
*puVar1 = *param_3;
puVar1[1] = uVar4;
uVar4 = param_4[1];
puVar1 = (int8 *)(lVar2 + 0x20 + lVar6);
*puVar1 = *param_4;
puVar1[1] = uVar4;
*(int2 *)(lVar3 + uVar5) = 0x202;
*(int1 *)(lVar3 + 2 + uVar5) = 1;
*param_1 = *param_1 + 3;
*(int1 *)(param_1 + 6) = 0;
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("border->start >= 0",
"/workspace/llm4binary/github/2025_star3/dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-ft-stroker.c"
,0x186,
"PVG_FT_Error ft_stroke_border_cubicto(PVG_FT_StrokeBorder, PVG_FT_Vector *, PVG_FT_Vector *, PVG_FT_Vector *)"
);
}
| |
41,046 | mysql_stmt_free_result_start | eloqsql/libmariadb/libmariadb/mariadb_async.c | int STDCALL
mysql_stmt_free_result_start(my_bool *ret, MYSQL_STMT *stmt)
{
MK_ASYNC_START_BODY(
mysql_stmt_free_result,
stmt->mysql,
{
WIN_SET_NONBLOCKING(stmt->mysql)
parms.stmt= stmt;
},
TRUE,
r_my_bool,
/* If stmt->mysql==NULL then we will not block so can call directly. */
if (!stmt->mysql)
{
*ret= mysql_stmt_free_result(stmt);
return 0;
})
} | O0 | c | mysql_stmt_free_result_start:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x38(%rax)
jne 0x6f8f8
movq -0x18(%rbp), %rdi
callq 0x5b8c0
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movl $0x0, -0x4(%rbp)
jmp 0x6fa06
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movb $0x1, 0x14(%rax)
movq -0x28(%rbp), %rdi
addq $0x38, %rdi
leaq 0xe2(%rip), %rsi # 0x6fa10
leaq -0x30(%rbp), %rdx
callq 0x70f10
movl %eax, -0x1c(%rbp)
movq -0x28(%rbp), %rax
movb $0x0, 0x15(%rax)
movq -0x28(%rbp), %rax
movb $0x0, 0x14(%rax)
cmpl $0x0, -0x1c(%rbp)
jle 0x6f966
movq -0x28(%rbp), %rax
movb $0x1, 0x15(%rax)
movq -0x28(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x6fa06
cmpl $0x0, -0x1c(%rbp)
jge 0x6f9f2
jmp 0x6f972
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 0x1da036(%rip), %rax # 0x2499d0
movq (%rax), %rsi
movl $0x5, %edx
callq 0x38140
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movb $0x0, 0x29c(%rax)
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rdi
addq $0x97, %rdi
leaq 0x1da014(%rip), %rax # 0x2499e0
movq 0x40(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x38140
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movb $0x0, 0x296(%rax)
movq -0x10(%rbp), %rax
movb $0x1, (%rax)
jmp 0x6f9ff
movq -0x28(%rbp), %rax
movb 0x8(%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop
| mysql_stmt_free_result_start:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_18]
cmp qword ptr [rax+38h], 0
jnz short loc_6F8F8
mov rdi, [rbp+var_18]
call mysql_stmt_free_result
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
mov [rbp+var_4], 0
jmp loc_6FA06
loc_6F8F8:
mov rax, [rbp+var_18]
mov rax, [rax+38h]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
mov rax, [rbp+var_28]
mov byte ptr [rax+14h], 1
mov rdi, [rbp+var_28]
add rdi, 38h ; '8'
lea rsi, mysql_stmt_free_result_start_internal
lea rdx, [rbp+var_30]
call my_context_spawn
mov [rbp+var_1C], eax
mov rax, [rbp+var_28]
mov byte ptr [rax+15h], 0
mov rax, [rbp+var_28]
mov byte ptr [rax+14h], 0
cmp [rbp+var_1C], 0
jle short loc_6F966
mov rax, [rbp+var_28]
mov byte ptr [rax+15h], 1
mov rax, [rbp+var_28]
mov eax, [rax]
mov [rbp+var_4], eax
jmp loc_6FA06
loc_6F966:
cmp [rbp+var_1C], 0
jge loc_6F9F2
jmp short $+2
loc_6F972:
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_6F9FF
loc_6F9F2:
mov rax, [rbp+var_28]
mov cl, [rax+8]
mov rax, [rbp+var_10]
mov [rax], cl
loc_6F9FF:
mov [rbp+var_4], 0
loc_6FA06:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long mysql_stmt_free_result_start(_BYTE *a1, long long a2)
{
long long v3; // [rsp+0h] [rbp-30h] BYREF
_BYTE *v4; // [rsp+8h] [rbp-28h]
int v5; // [rsp+14h] [rbp-1Ch]
long long v6; // [rsp+18h] [rbp-18h]
_BYTE *v7; // [rsp+20h] [rbp-10h]
v7 = a1;
v6 = a2;
if ( *(_QWORD *)(a2 + 56) )
{
v4 = *(_BYTE **)(*(_QWORD *)(*(_QWORD *)(v6 + 56) + 1152LL) + 40LL);
v3 = v6;
v4[20] = 1;
v5 = my_context_spawn(v4 + 56, mysql_stmt_free_result_start_internal, &v3);
v4[21] = 0;
v4[20] = 0;
if ( v5 <= 0 )
{
if ( v5 >= 0 )
{
*v7 = v4[8];
}
else
{
*(_DWORD *)(*(_QWORD *)(v6 + 56) + 144LL) = 2008;
strncpy(*(_QWORD *)(v6 + 56) + 663LL, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(*(_QWORD *)(v6 + 56) + 668LL) = 0;
strncpy(*(_QWORD *)(v6 + 56) + 151LL, client_errors[8], 511LL);
*(_BYTE *)(*(_QWORD *)(v6 + 56) + 662LL) = 0;
*v7 = 1;
}
return 0;
}
else
{
v4[21] = 1;
return *(unsigned int *)v4;
}
}
else
{
*v7 = mysql_stmt_free_result(v6);
return 0;
}
}
| mysql_stmt_free_result_start:
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 + -0x18]
CMP qword ptr [RAX + 0x38],0x0
JNZ 0x0016f8f8
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0015b8c0
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0016fa06
LAB_0016f8f8:
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 + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x14],0x1
MOV RDI,qword ptr [RBP + -0x28]
ADD RDI,0x38
LEA RSI,[0x16fa10]
LEA RDX,[RBP + -0x30]
CALL 0x00170f10
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x15],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x14],0x0
CMP dword ptr [RBP + -0x1c],0x0
JLE 0x0016f966
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x15],0x1
MOV RAX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0016fa06
LAB_0016f966:
CMP dword ptr [RBP + -0x1c],0x0
JGE 0x0016f9f2
JMP 0x0016f972
LAB_0016f972:
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,[0x3499d0]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00138140
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,[0x3499e0]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1ff
CALL 0x00138140
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 0x0016f9ff
LAB_0016f9f2:
MOV RAX,qword ptr [RBP + -0x28]
MOV CL,byte ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
LAB_0016f9ff:
MOV dword ptr [RBP + -0x4],0x0
LAB_0016fa06:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 mysql_stmt_free_result_start(int1 *param_1,long param_2)
{
int1 uVar1;
long local_38;
int4 *local_30;
int local_24;
long local_20;
int1 *local_18;
int4 local_c;
local_20 = param_2;
local_18 = param_1;
if (*(long *)(param_2 + 0x38) == 0) {
uVar1 = mysql_stmt_free_result(param_2);
*local_18 = uVar1;
local_c = 0;
}
else {
local_30 = *(int4 **)(*(long *)(*(long *)(param_2 + 0x38) + 0x480) + 0x28);
*(int1 *)(local_30 + 5) = 1;
local_38 = param_2;
local_24 = my_context_spawn(local_30 + 0xe,mysql_stmt_free_result_start_internal,&local_38);
*(int1 *)((long)local_30 + 0x15) = 0;
*(int1 *)(local_30 + 5) = 0;
if (local_24 < 1) {
if (local_24 < 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_00349a20,
0x1ff);
*(int1 *)(*(long *)(local_20 + 0x38) + 0x296) = 0;
*local_18 = 1;
}
else {
*local_18 = *(int1 *)(local_30 + 2);
}
local_c = 0;
}
else {
*(int1 *)((long)local_30 + 0x15) = 1;
local_c = *local_30;
}
}
return local_c;
}
| |
41,047 | LefDefParser::lefwMacroPinAntennaMaxCutCar(double, char const*) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp | int
lefwMacroPinAntennaMaxCutCar(double value,
const char *layerName)
{
lefw54Num = LEFW_ANTENNAMAXCUTCAR;
if (!lefwFile)
return LEFW_UNINITIALIZED;
if (!lefwDidInit)
return LEFW_BAD_ORDER;
if (!lefwIsMacroPin)
return LEFW_BAD_ORDER;
if (lefwAMaxCutCar)
return LEFW_BAD_DATA; // ANTENNAMAXCUTCAR has
// defined more than once
if (versionNum < 5.4)
return LEFW_WRONG_VERSION;
if (lefwAntenna53)
return LEFW_MIX_VERSION_DATA;
if (lefwWriteEncrypt) {
encPrint(lefwFile, (char*) " ANTENNAMAXCUTCAR %.11g ", value);
if (layerName)
encPrint(lefwFile, (char*) "LAYER %s ", layerName);
encPrint(lefwFile, (char*) ";\n");
} else {
fprintf(lefwFile, " ANTENNAMAXCUTCAR %.11g ", value);
if (layerName)
fprintf(lefwFile, "LAYER %s ", layerName);
fprintf(lefwFile, ";\n");
}
lefwLines++;
lefwState = LEFW_MACRO;
lefwAntenna54 = 1;
return LEFW_OK;
} | O0 | cpp | LefDefParser::lefwMacroPinAntennaMaxCutCar(double, char const*):
subq $0x18, %rsp
movsd %xmm0, 0x8(%rsp)
movq %rdi, (%rsp)
movl $0x7a, 0xf7c4(%rip) # 0x32d4c
leaq 0xf871(%rip), %rax # 0x32e00
cmpq $0x0, (%rax)
jne 0x235a2
movl $0x1, 0x14(%rsp)
jmp 0x23710
leaq 0xfaab(%rip), %rax # 0x33054
cmpl $0x0, (%rax)
jne 0x235bb
movl $0x2, 0x14(%rsp)
jmp 0x23710
leaq 0xfade(%rip), %rax # 0x330a0
cmpl $0x0, (%rax)
jne 0x235d4
movl $0x2, 0x14(%rsp)
jmp 0x23710
cmpl $0x0, 0xfb39(%rip) # 0x33114
je 0x235ea
movl $0x3, 0x14(%rsp)
jmp 0x23710
movsd 0x5c0e(%rip), %xmm0 # 0x29200
ucomisd 0xf746(%rip), %xmm0 # 0x32d40
jbe 0x23609
movl $0x5, 0x14(%rsp)
jmp 0x23710
cmpl $0x0, 0xfb0c(%rip) # 0x3311c
je 0x2361f
movl $0x6, 0x14(%rsp)
jmp 0x23710
cmpl $0x0, 0xfac6(%rip) # 0x330ec
je 0x23683
leaq 0xf7d1(%rip), %rax # 0x32e00
movq (%rax), %rdi
movsd 0x8(%rsp), %xmm0
leaq 0x84bb(%rip), %rsi # 0x2bafa
movb $0x1, %al
callq 0x289b0
cmpq $0x0, (%rsp)
je 0x23669
leaq 0xf7ac(%rip), %rax # 0x32e00
movq (%rax), %rdi
movq (%rsp), %rdx
leaq 0x84e8(%rip), %rsi # 0x2bb4a
movb $0x0, %al
callq 0x289b0
leaq 0xf790(%rip), %rax # 0x32e00
movq (%rax), %rdi
leaq 0x68da(%rip), %rsi # 0x29f54
movb $0x0, %al
callq 0x289b0
jmp 0x236dc
leaq 0xf776(%rip), %rax # 0x32e00
movq (%rax), %rdi
movsd 0x8(%rsp), %xmm0
leaq 0x8460(%rip), %rsi # 0x2bafa
movb $0x1, %al
callq 0x1100
cmpq $0x0, (%rsp)
je 0x236c4
leaq 0xf751(%rip), %rax # 0x32e00
movq (%rax), %rdi
movq (%rsp), %rdx
leaq 0x848d(%rip), %rsi # 0x2bb4a
movb $0x0, %al
callq 0x1100
leaq 0xf735(%rip), %rax # 0x32e00
movq (%rax), %rdi
leaq 0x687f(%rip), %rsi # 0x29f54
movb $0x0, %al
callq 0x1100
leaq 0xf969(%rip), %rax # 0x3304c
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0xf95d(%rip), %rax # 0x3304c
movl %ecx, (%rax)
leaq 0xf958(%rip), %rax # 0x33050
movl $0x21, (%rax)
movl $0x1, 0xfa10(%rip) # 0x33118
movl $0x0, 0x14(%rsp)
movl 0x14(%rsp), %eax
addq $0x18, %rsp
retq
nopl (%rax)
| _ZN12LefDefParser28lefwMacroPinAntennaMaxCutCarEdPKc:
sub rsp, 18h
movsd [rsp+18h+var_10], xmm0
mov [rsp+18h+var_18], rdi
mov cs:_ZN12LefDefParserL9lefw54NumE, 7Ah ; 'z'; LefDefParser::lefw54Num
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
cmp qword ptr [rax], 0
jnz short loc_235A2
mov [rsp+18h+var_4], 1
jmp loc_23710
loc_235A2:
lea rax, _ZN12LefDefParser11lefwDidInitE; LefDefParser::lefwDidInit
cmp dword ptr [rax], 0
jnz short loc_235BB
mov [rsp+18h+var_4], 2
jmp loc_23710
loc_235BB:
lea rax, _ZN12LefDefParser14lefwIsMacroPinE; LefDefParser::lefwIsMacroPin
cmp dword ptr [rax], 0
jnz short loc_235D4
mov [rsp+18h+var_4], 2
jmp loc_23710
loc_235D4:
cmp cs:_ZN12LefDefParserL14lefwAMaxCutCarE, 0; LefDefParser::lefwAMaxCutCar
jz short loc_235EA
mov [rsp+18h+var_4], 3
jmp loc_23710
loc_235EA:
movsd xmm0, cs:dbl_29200
ucomisd xmm0, cs:_ZN12LefDefParserL10versionNumE; LefDefParser::versionNum
jbe short loc_23609
mov [rsp+18h+var_4], 5
jmp loc_23710
loc_23609:
cmp cs:_ZN12LefDefParserL13lefwAntenna53E, 0; LefDefParser::lefwAntenna53
jz short loc_2361F
mov [rsp+18h+var_4], 6
jmp loc_23710
loc_2361F:
cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 0; LefDefParser::lefwWriteEncrypt
jz short loc_23683
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
movsd xmm0, [rsp+18h+var_10]
lea rsi, aAntennamaxcutc; " ANTENNAMAXCUTCAR %.11g "
mov al, 1
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
cmp [rsp+18h+var_18], 0
jz short loc_23669
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
mov rdx, [rsp+18h+var_18]
lea rsi, aLayerS_2+9; "LAYER %s "
mov al, 0
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
loc_23669:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
lea rsi, aDividercharS+11h; ";\n"
mov al, 0
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp short loc_236DC
loc_23683:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
movsd xmm0, [rsp+18h+var_10]
lea rsi, aAntennamaxcutc; " ANTENNAMAXCUTCAR %.11g "
mov al, 1
call _fprintf
cmp [rsp+18h+var_18], 0
jz short loc_236C4
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
mov rdx, [rsp+18h+var_18]
lea rsi, aLayerS_2+9; "LAYER %s "
mov al, 0
call _fprintf
loc_236C4:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
lea rsi, aDividercharS+11h; ";\n"
mov al, 0
call _fprintf
loc_236DC:
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
mov ecx, [rax]
add ecx, 1
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
mov [rax], ecx
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
mov dword ptr [rax], 21h ; '!'
mov cs:_ZN12LefDefParserL13lefwAntenna54E, 1; LefDefParser::lefwAntenna54
mov [rsp+18h+var_4], 0
loc_23710:
mov eax, [rsp+18h+var_4]
add rsp, 18h
retn
| long long LefDefParser::lefwMacroPinAntennaMaxCutCar(
LefDefParser *this,
double a2,
const char *a3,
int a4,
int a5,
int a6,
int a7)
{
int v7; // edx
int v8; // ecx
int v9; // r8d
int v10; // r9d
LefDefParser::lefw54Num = 122;
if ( *(_QWORD *)&LefDefParser::lefwFile )
{
if ( LefDefParser::lefwDidInit )
{
if ( LefDefParser::lefwIsMacroPin )
{
if ( LefDefParser::lefwAMaxCutCar )
{
return 3;
}
else if ( *(double *)&LefDefParser::versionNum >= 5.4 )
{
if ( LefDefParser::lefwAntenna53 )
{
return 6;
}
else
{
if ( LefDefParser::lefwWriteEncrypt )
{
LefDefParser::encPrint(
LefDefParser::lefwFile,
(unsigned int)" ANTENNAMAXCUTCAR %.11g ",
a4,
a5,
a6,
a7);
if ( this )
LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"LAYER %s ", (_DWORD)this, v8, v9, v10);
LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)";\n", v7, v8, v9, v10);
}
else
{
fprintf(*(_QWORD *)&LefDefParser::lefwFile, " ANTENNAMAXCUTCAR %.11g ", a2);
if ( this )
fprintf(*(_QWORD *)&LefDefParser::lefwFile, "LAYER %s ", (const char *)this);
fprintf(*(_QWORD *)&LefDefParser::lefwFile, ";\n");
}
++LefDefParser::lefwLines;
LefDefParser::lefwState = 33;
LefDefParser::lefwAntenna54 = 1;
return 0;
}
}
else
{
return 5;
}
}
else
{
return 2;
}
}
else
{
return 2;
}
}
else
{
return 1;
}
}
| lefwMacroPinAntennaMaxCutCar:
SUB RSP,0x18
MOVSD qword ptr [RSP + 0x8],XMM0
MOV qword ptr [RSP],RDI
MOV dword ptr [0x00132d4c],0x7a
LEA RAX,[0x132e00]
CMP qword ptr [RAX],0x0
JNZ 0x001235a2
MOV dword ptr [RSP + 0x14],0x1
JMP 0x00123710
LAB_001235a2:
LEA RAX,[0x133054]
CMP dword ptr [RAX],0x0
JNZ 0x001235bb
MOV dword ptr [RSP + 0x14],0x2
JMP 0x00123710
LAB_001235bb:
LEA RAX,[0x1330a0]
CMP dword ptr [RAX],0x0
JNZ 0x001235d4
MOV dword ptr [RSP + 0x14],0x2
JMP 0x00123710
LAB_001235d4:
CMP dword ptr [0x00133114],0x0
JZ 0x001235ea
MOV dword ptr [RSP + 0x14],0x3
JMP 0x00123710
LAB_001235ea:
MOVSD XMM0,qword ptr [0x00129200]
UCOMISD XMM0,qword ptr [0x00132d40]
JBE 0x00123609
MOV dword ptr [RSP + 0x14],0x5
JMP 0x00123710
LAB_00123609:
CMP dword ptr [0x0013311c],0x0
JZ 0x0012361f
MOV dword ptr [RSP + 0x14],0x6
JMP 0x00123710
LAB_0012361f:
CMP dword ptr [0x001330ec],0x0
JZ 0x00123683
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOVSD XMM0,qword ptr [RSP + 0x8]
LEA RSI,[0x12bafa]
MOV AL,0x1
CALL 0x001289b0
CMP qword ptr [RSP],0x0
JZ 0x00123669
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOV RDX,qword ptr [RSP]
LEA RSI,[0x12bb4a]
MOV AL,0x0
CALL 0x001289b0
LAB_00123669:
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x129f54]
MOV AL,0x0
CALL 0x001289b0
JMP 0x001236dc
LAB_00123683:
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOVSD XMM0,qword ptr [RSP + 0x8]
LEA RSI,[0x12bafa]
MOV AL,0x1
CALL 0x00101100
CMP qword ptr [RSP],0x0
JZ 0x001236c4
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOV RDX,qword ptr [RSP]
LEA RSI,[0x12bb4a]
MOV AL,0x0
CALL 0x00101100
LAB_001236c4:
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x129f54]
MOV AL,0x0
CALL 0x00101100
LAB_001236dc:
LEA RAX,[0x13304c]
MOV ECX,dword ptr [RAX]
ADD ECX,0x1
LEA RAX,[0x13304c]
MOV dword ptr [RAX],ECX
LEA RAX,[0x133050]
MOV dword ptr [RAX],0x21
MOV dword ptr [0x00133118],0x1
MOV dword ptr [RSP + 0x14],0x0
LAB_00123710:
MOV EAX,dword ptr [RSP + 0x14]
ADD RSP,0x18
RET
|
/* LefDefParser::lefwMacroPinAntennaMaxCutCar(double, char const*) */
int4 LefDefParser::lefwMacroPinAntennaMaxCutCar(double param_1,char *param_2)
{
int4 local_4;
lefw54Num = 0x7a;
if (lefwFile == (_IO_FILE *)0x0) {
local_4 = 1;
}
else if (lefwDidInit == 0) {
local_4 = 2;
}
else if (lefwIsMacroPin == 0) {
local_4 = 2;
}
else if (lefwAMaxCutCar == 0) {
if (DAT_00129200 <= versionNum) {
if (lefwAntenna53 == 0) {
if (lefwWriteEncrypt == 0) {
fprintf(lefwFile," ANTENNAMAXCUTCAR %.11g ",param_1);
if (param_2 != (char *)0x0) {
fprintf(lefwFile,"LAYER %s ",param_2);
}
fprintf(lefwFile,";\n");
}
else {
encPrint(lefwFile," ANTENNAMAXCUTCAR %.11g ",param_1);
if (param_2 != (char *)0x0) {
encPrint(lefwFile,"LAYER %s ",param_2);
}
encPrint(lefwFile,";\n");
}
lefwLines = lefwLines + 1;
lefwState = 0x21;
lefwAntenna54 = 1;
local_4 = 0;
}
else {
local_4 = 6;
}
}
else {
local_4 = 5;
}
}
else {
local_4 = 3;
}
return local_4;
}
| |
41,048 | aimrt::runtime::core::executor::AsioThreadExecutor::Start() | aimrt_mujoco_sim/_deps/aimrt-src/src/runtime/core/executor/asio_thread_executor.cc | void AsioThreadExecutor::Start() {
AIMRT_CHECK_ERROR_THROW(
std::atomic_exchange(&state_, State::kStart) == State::kInit,
"Method can only be called when state is 'Init'.");
} | O3 | cpp | aimrt::runtime::core::executor::AsioThreadExecutor::Start():
pushq %rbx
subq $0x40, %rsp
movl $0x2, %eax
xchgl %eax, 0x78(%rdi)
cmpl $0x1, %eax
jne 0xf5722
addq $0x40, %rsp
popq %rbx
retq
movq %rdi, %rbx
leaq 0xfb249(%rip), %rsi # 0x1f0975
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %r8
movl $0x2f, %edx
xorl %ecx, %ecx
callq 0x9b9c8
movq 0x80(%rbx), %rbx
cmpq $0x0, 0x10(%rbx)
jne 0xf5755
callq 0x80b20
movq %rbx, %rdi
callq *0x18(%rbx)
cmpl $0x4, %eax
ja 0xf5792
movq 0x10(%rsp), %r9
movq 0x18(%rsp), %rax
addq $0x20, %rbx
movq %rax, (%rsp)
leaq 0x101b6b(%rip), %rcx # 0x1f72e4
leaq 0xfb225(%rip), %r8 # 0x1f09a5
movq %rbx, %rdi
movl $0x4, %esi
movl $0x6b, %edx
callq 0x83aa0
movl $0x28, %edi
callq 0x80f20
leaq 0x1a1785(%rip), %rcx # 0x296f28
movq %rcx, (%rax)
leaq 0x18(%rax), %rdx
movq %rdx, 0x8(%rax)
leaq 0x20(%rsp), %rcx
movq -0x10(%rcx), %rsi
cmpq %rcx, %rsi
jne 0xf57c4
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
jmp 0xf57d1
movq %rsi, 0x8(%rax)
movq 0x20(%rsp), %rdx
movq %rdx, 0x18(%rax)
movq 0x18(%rsp), %rdx
movq %rdx, 0x10(%rax)
movq %rcx, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
leaq 0x1a164c(%rip), %rsi # 0x296e40
leaq -0x5ac99(%rip), %rdx # 0x9ab62
movq %rax, %rdi
callq 0x83970
jmp 0xf5805
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf5823
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x82190
movq %rbx, %rdi
callq 0x83b70
nop
| _ZN5aimrt7runtime4core8executor18AsioThreadExecutor5StartEv:
push rbx
sub rsp, 40h
mov eax, 2
xchg eax, [rdi+78h]
cmp eax, 1
jnz short loc_F5722
add rsp, 40h
pop rbx
retn
loc_F5722:
mov rbx, rdi
lea rsi, aMethodCanOnlyB; "Method can only be called when state is"...
lea rdi, [rsp+48h+var_38]; int
lea r8, [rsp+48h+var_18]; int
mov edx, 2Fh ; '/'; int
xor ecx, ecx; int
call _ZN3fmt3v107vformatB5cxx11ENS0_17basic_string_viewIcEENS0_17basic_format_argsINS0_20basic_format_contextINS0_8appenderEcEEEE; fmt::v10::vformat(fmt::v10::basic_string_view<char>,fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>)
mov rbx, [rbx+80h]
cmp qword ptr [rbx+10h], 0
jnz short loc_F5755
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
loc_F5755:
mov rdi, rbx
call qword ptr [rbx+18h]
cmp eax, 4
ja short loc_F5792
mov r9, qword ptr [rsp+48h+var_38]
mov rax, [rsp+48h+var_30]
add rbx, 20h ; ' '
mov [rsp+48h+var_48], rax
lea rcx, aWorkspaceLlm4b_10; "/workspace/llm4binary/github2025/aimrt_"...
lea r8, aStart; "Start"
mov rdi, rbx
mov esi, 4
mov edx, 6Bh ; 'k'
call __ZNKSt8functionIFvjjPKcS1_S1_mEEclEjjS1_S1_S1_m; std::function<void ()(uint,uint,char const*,char const*,char const*,ulong)>::operator()(uint,uint,char const*,char const*,char const*,ulong)
loc_F5792:
mov edi, 28h ; '('; thrown_size
call ___cxa_allocate_exception
lea rcx, off_296F28
mov [rax], rcx
lea rdx, [rax+18h]
mov [rax+8], rdx
lea rcx, [rsp+48h+var_28]
mov rsi, [rcx-10h]
cmp rsi, rcx
jnz short loc_F57C4
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rdx], xmm0
jmp short loc_F57D1
loc_F57C4:
mov [rax+8], rsi
mov rdx, [rsp+48h+var_28]
mov [rax+18h], rdx
loc_F57D1:
mov rdx, [rsp+48h+var_30]
mov [rax+10h], rdx
mov qword ptr [rsp+48h+var_38], rcx
mov [rsp+48h+var_30], 0
mov byte ptr [rsp+48h+var_28], 0
lea rsi, _ZTIN5aimrt6common4util14AimRTExceptionE; lptinfo
lea rdx, _ZN5aimrt6common4util14AimRTExceptionD2Ev; void (*)(void *)
mov rdi, rax; void *
call ___cxa_throw
jmp short $+2
loc_F5805:
mov rbx, rax
lea rax, [rsp+48h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_F5823
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_F5823:
mov rdi, rbx
call __Unwind_Resume
| long long aimrt::runtime::core::executor::AsioThreadExecutor::Start(
aimrt::runtime::core::executor::AsioThreadExecutor *this)
{
long long result; // rax
long long v2; // rbx
char *exception; // rax
int v4[2]; // [rsp+10h] [rbp-38h] BYREF
long long v5; // [rsp+18h] [rbp-30h]
__int128 v6; // [rsp+20h] [rbp-28h] BYREF
int v7[6]; // [rsp+30h] [rbp-18h] BYREF
result = (unsigned int)_InterlockedExchange((volatile __int32 *)this + 30, 2);
if ( (_DWORD)result != 1 )
{
fmt::v10::vformat[abi:cxx11](v4, "Method can only be called when state is 'Init'.", 47LL, 0LL, (long long)v7);
v2 = *((_QWORD *)this + 16);
if ( !*(_QWORD *)(v2 + 16) )
std::__throw_bad_function_call();
if ( (*(unsigned int ( **)(long long))(v2 + 24))(v2) <= 4 )
std::function<void ()(unsigned int,unsigned int,char const*,char const*,char const*,unsigned long)>::operator()(
v2 + 32,
4,
107,
(unsigned int)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/aimrt-src/src/runtime/core/executor/asio_t"
"hread_executor.cc",
(unsigned int)"Start",
v4[0],
v5);
exception = (char *)__cxa_allocate_exception(0x28uLL);
*(_QWORD *)exception = off_296F28;
*((_QWORD *)exception + 1) = exception + 24;
if ( *(__int128 **)v4 == &v6 )
{
*(_OWORD *)(exception + 24) = v6;
}
else
{
*((_QWORD *)exception + 1) = *(_QWORD *)v4;
*((_QWORD *)exception + 3) = v6;
}
*((_QWORD *)exception + 2) = v5;
*(_QWORD *)v4 = &v6;
v5 = 0LL;
LOBYTE(v6) = 0;
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'aimrt::common::util::AimRTException,
(void (*)(void *))aimrt::common::util::AimRTException::~AimRTException);
}
return result;
}
| Start:
PUSH RBX
SUB RSP,0x40
MOV EAX,0x2
XCHG dword ptr [RDI + 0x78],EAX
CMP EAX,0x1
JNZ 0x001f5722
ADD RSP,0x40
POP RBX
RET
LAB_001f5722:
MOV RBX,RDI
LEA RSI,[0x2f0975]
LEA RDI,[RSP + 0x10]
LEA R8,[RSP + 0x30]
MOV EDX,0x2f
XOR ECX,ECX
CALL 0x0019b9c8
MOV RBX,qword ptr [RBX + 0x80]
CMP qword ptr [RBX + 0x10],0x0
JNZ 0x001f5755
LAB_001f5750:
CALL 0x00180b20
LAB_001f5755:
MOV RDI,RBX
CALL qword ptr [RBX + 0x18]
CMP EAX,0x4
JA 0x001f5792
MOV R9,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x18]
ADD RBX,0x20
LAB_001f576e:
MOV qword ptr [RSP],RAX
LEA RCX,[0x2f72e4]
LEA R8,[0x2f09a5]
MOV RDI,RBX
MOV ESI,0x4
MOV EDX,0x6b
CALL 0x00183aa0
LAB_001f5792:
MOV EDI,0x28
CALL 0x00180f20
LEA RCX,[0x396f28]
MOV qword ptr [RAX],RCX
LEA RDX,[RAX + 0x18]
MOV qword ptr [RAX + 0x8],RDX
LEA RCX,[RSP + 0x20]
MOV RSI,qword ptr [RCX + -0x10]
CMP RSI,RCX
JNZ 0x001f57c4
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RDX],XMM0
JMP 0x001f57d1
LAB_001f57c4:
MOV qword ptr [RAX + 0x8],RSI
MOV RDX,qword ptr [RSP + 0x20]
MOV qword ptr [RAX + 0x18],RDX
LAB_001f57d1:
MOV RDX,qword ptr [RSP + 0x18]
MOV qword ptr [RAX + 0x10],RDX
MOV qword ptr [RSP + 0x10],RCX
MOV qword ptr [RSP + 0x18],0x0
MOV byte ptr [RSP + 0x20],0x0
LAB_001f57ed:
LEA RSI,[0x396e40]
LEA RDX,[0x19ab62]
MOV RDI,RAX
CALL 0x00183970
|
/* aimrt::runtime::core::executor::AsioThreadExecutor::Start() */
void __thiscall aimrt::runtime::core::executor::AsioThreadExecutor::Start(AsioThreadExecutor *this)
{
int iVar1;
long lVar2;
uint uVar3;
int8 *puVar4;
uint *local_38;
int8 local_30;
uint local_28;
int4 uStack_24;
int4 uStack_20;
int4 uStack_1c;
int1 local_18 [16];
LOCK();
iVar1 = *(int *)(this + 0x78);
*(int *)(this + 0x78) = 2;
UNLOCK();
if (iVar1 == 1) {
return;
}
fmt::v10::vformat_abi_cxx11_
(&local_38,"Method can only be called when state is \'Init\'.",0x2f,0,local_18);
lVar2 = *(long *)(this + 0x80);
if (*(long *)(lVar2 + 0x10) == 0) {
/* WARNING: Subroutine does not return */
/* try { // try from 001f5750 to 001f575a has its CatchHandler @ 001f5805 */
std::__throw_bad_function_call();
}
uVar3 = (**(code **)(lVar2 + 0x18))(lVar2);
if (uVar3 < 5) {
/* try { // try from 001f576e to 001f5791 has its CatchHandler @ 001f5803 */
std::function<void(unsigned_int,unsigned_int,char_const*,char_const*,char_const*,unsigned_long)>
::operator()((int)lVar2 + 0x20,4,(char *)0x6b,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/aimrt-src/src/runtime/core/executor/asio_thread_executor.cc"
,"Start",(ulong)local_38);
}
puVar4 = (int8 *)__cxa_allocate_exception(0x28);
*puVar4 = &PTR__AimRTException_00396f28;
puVar4[1] = puVar4 + 3;
if (local_38 == &local_28) {
*(uint *)(puVar4 + 3) = local_28;
*(int4 *)((long)puVar4 + 0x1c) = uStack_24;
*(int4 *)(puVar4 + 4) = uStack_20;
*(int4 *)((long)puVar4 + 0x24) = uStack_1c;
}
else {
puVar4[1] = local_38;
puVar4[3] = CONCAT44(uStack_24,local_28);
}
puVar4[2] = local_30;
local_30 = 0;
local_28 = local_28 & 0xffffff00;
local_38 = &local_28;
/* try { // try from 001f57ed to 001f5802 has its CatchHandler @ 001f5805 */
/* WARNING: Subroutine does not return */
__cxa_throw(puVar4,&common::util::AimRTException::typeinfo,
common::util::AimRTException::~AimRTException);
}
| |
41,049 | glfwSetWindowAttrib | untodesu[P]riteg/build_O2/_deps/glfw-src/src/window.c | GLFWAPI void glfwSetWindowAttrib(GLFWwindow* handle, int attrib, int value)
{
_GLFWwindow* window = (_GLFWwindow*) handle;
assert(window != NULL);
_GLFW_REQUIRE_INIT();
value = value ? GLFW_TRUE : GLFW_FALSE;
if (attrib == GLFW_AUTO_ICONIFY)
window->autoIconify = value;
else if (attrib == GLFW_RESIZABLE)
{
if (window->resizable == value)
return;
window->resizable = value;
if (!window->monitor)
_glfwPlatformSetWindowResizable(window, value);
}
else if (attrib == GLFW_DECORATED)
{
if (window->decorated == value)
return;
window->decorated = value;
if (!window->monitor)
_glfwPlatformSetWindowDecorated(window, value);
}
else if (attrib == GLFW_FLOATING)
{
if (window->floating == value)
return;
window->floating = value;
if (!window->monitor)
_glfwPlatformSetWindowFloating(window, value);
}
else if (attrib == GLFW_FOCUS_ON_SHOW)
window->focusOnShow = value;
else
_glfwInputError(GLFW_INVALID_ENUM, "Invalid window attribute 0x%08X", attrib);
} | O2 | c | glfwSetWindowAttrib:
testq %rdi, %rdi
je 0x1a0ff
leaq 0x815dd(%rip), %rcx # 0x9b648
cmpl $0x0, (%rcx)
je 0x1a0ab
movl %esi, %eax
xorl %esi, %esi
testl %edx, %edx
setne %dl
leal -0x20003(%rax), %ecx
cmpl $0x9, %ecx
ja 0x1a0b9
movb %dl, %sil
leaq 0x5918e(%rip), %rdx # 0x7321c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
cmpl %esi, 0x8(%rdi)
je 0x1a0f5
movl %esi, 0x8(%rdi)
cmpq $0x0, 0x40(%rdi)
jne 0x1a0f5
jmp 0x1f2e2
movl $0x10001, %edi # imm = 0x10001
xorl %esi, %esi
xorl %eax, %eax
jmp 0x1547b
leaq 0x59820(%rip), %rsi # 0x738e0
movl $0x10003, %edi # imm = 0x10003
movl %eax, %edx
xorl %eax, %eax
jmp 0x1547b
movl %esi, 0x10(%rdi)
retq
cmpl %esi, 0xc(%rdi)
je 0x1a0f5
movl %esi, 0xc(%rdi)
cmpq $0x0, 0x40(%rdi)
jne 0x1a0f5
jmp 0x1f31b
cmpl %esi, 0x14(%rdi)
je 0x1a0f5
movl %esi, 0x14(%rdi)
cmpq $0x0, 0x40(%rdi)
je 0x1a0fa
retq
movl %esi, 0x18(%rdi)
retq
jmp 0x1f38d
pushq %rax
leaq 0x3c50f(%rip), %rdi # 0x56616
leaq 0x59144(%rip), %rsi # 0x73252
leaq 0x597eb(%rip), %rcx # 0x73900
movl $0x35d, %edx # imm = 0x35D
callq 0xb510
| glfwSetWindowAttrib:
test rdi, rdi
jz loc_1A0FF
lea rcx, _glfw
cmp dword ptr [rcx], 0
jz short loc_1A0AB
mov eax, esi
xor esi, esi
test edx, edx
setnz dl
lea ecx, [rax-20003h]; switch 10 cases
cmp ecx, 9
ja short def_1A095; jumptable 000000000001A095 default case, cases 131076,131080-131083
mov sil, dl
lea rdx, jpt_1A095
movsxd rcx, ds:(jpt_1A095 - 7321Ch)[rdx+rcx*4]
add rcx, rdx
jmp rcx; switch jump
loc_1A097:
cmp [rdi+8], esi; jumptable 000000000001A095 case 131075
jz short locret_1A0F5
mov [rdi+8], esi
cmp qword ptr [rdi+40h], 0
jnz short locret_1A0F5
jmp _glfwPlatformSetWindowResizable
loc_1A0AB:
mov edi, 10001h
xor esi, esi
xor eax, eax
jmp _glfwInputError
def_1A095:
lea rsi, aInvalidWindowA_0; jumptable 000000000001A095 default case, cases 131076,131080-131083
mov edi, offset loc_10003
mov edx, eax
xor eax, eax
jmp _glfwInputError
loc_1A0CE:
mov [rdi+10h], esi; jumptable 000000000001A095 case 131078
retn
loc_1A0D2:
cmp [rdi+0Ch], esi; jumptable 000000000001A095 case 131077
jz short locret_1A0F5
mov [rdi+0Ch], esi
cmp qword ptr [rdi+40h], 0
jnz short locret_1A0F5
jmp _glfwPlatformSetWindowDecorated
loc_1A0E6:
cmp [rdi+14h], esi; jumptable 000000000001A095 case 131079
jz short locret_1A0F5
mov [rdi+14h], esi
cmp qword ptr [rdi+40h], 0
jz short loc_1A0FA
locret_1A0F5:
retn
loc_1A0F6:
mov [rdi+18h], esi; jumptable 000000000001A095 case 131084
retn
loc_1A0FA:
jmp _glfwPlatformSetWindowFloating
loc_1A0FF:
push rax
lea rdi, aWindowNull; "window != NULL"
lea rsi, aWorkspaceLlm4b_15; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidGlfwsetwin_7; "void glfwSetWindowAttrib(GLFWwindow *, "...
mov edx, 35Dh
call ___assert_fail
| long long glfwSetWindowAttrib(long long a1, unsigned int a2, int a3)
{
long long result; // rax
int v4; // esi
if ( !a1 )
__assert_fail(
"window != NULL",
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O2/_deps/glfw-src/src/window.c",
861LL,
"void glfwSetWindowAttrib(GLFWwindow *, int, int)");
if ( !glfw[0] )
return (long long)glfwInputError(0x10001u, 0LL);
result = a2;
v4 = a3 != 0;
switch ( (int)result )
{
case 131075:
if ( *(_DWORD *)(a1 + 8) != v4 )
{
*(_DWORD *)(a1 + 8) = v4;
if ( !*(_QWORD *)(a1 + 64) )
result = glfwPlatformSetWindowResizable();
}
break;
case 131077:
if ( *(_DWORD *)(a1 + 12) != v4 )
{
*(_DWORD *)(a1 + 12) = v4;
if ( !*(_QWORD *)(a1 + 64) )
result = glfwPlatformSetWindowDecorated();
}
break;
case 131078:
*(_DWORD *)(a1 + 16) = v4;
break;
case 131079:
if ( *(_DWORD *)(a1 + 20) != v4 )
{
*(_DWORD *)(a1 + 20) = v4;
if ( !*(_QWORD *)(a1 + 64) )
result = glfwPlatformSetWindowFloating();
}
break;
case 131084:
*(_DWORD *)(a1 + 24) = v4;
break;
default:
result = (long long)glfwInputError((unsigned int)&loc_10003, (long long)"Invalid window attribute 0x%08X", result);
break;
}
return result;
}
| glfwSetWindowAttrib:
TEST RDI,RDI
JZ 0x0011a0ff
LEA RCX,[0x19b648]
CMP dword ptr [RCX],0x0
JZ 0x0011a0ab
MOV EAX,ESI
XOR ESI,ESI
TEST EDX,EDX
SETNZ DL
LEA ECX,[RAX + -0x20003]
CMP ECX,0x9
JA 0x0011a0b9
MOV SIL,DL
LEA RDX,[0x17321c]
MOVSXD RCX,dword ptr [RDX + RCX*0x4]
ADD RCX,RDX
switchD:
JMP RCX
caseD_20003:
CMP dword ptr [RDI + 0x8],ESI
JZ 0x0011a0f5
MOV dword ptr [RDI + 0x8],ESI
CMP qword ptr [RDI + 0x40],0x0
JNZ 0x0011a0f5
JMP 0x0011f2e2
LAB_0011a0ab:
MOV EDI,0x10001
XOR ESI,ESI
XOR EAX,EAX
JMP 0x0011547b
caseD_20004:
LEA RSI,[0x1738e0]
MOV EDI,0x10003
MOV EDX,EAX
XOR EAX,EAX
JMP 0x0011547b
caseD_20006:
MOV dword ptr [RDI + 0x10],ESI
RET
caseD_20005:
CMP dword ptr [RDI + 0xc],ESI
JZ 0x0011a0f5
MOV dword ptr [RDI + 0xc],ESI
CMP qword ptr [RDI + 0x40],0x0
JNZ 0x0011a0f5
JMP 0x0011f31b
caseD_20007:
CMP dword ptr [RDI + 0x14],ESI
JZ 0x0011a0f5
MOV dword ptr [RDI + 0x14],ESI
CMP qword ptr [RDI + 0x40],0x0
JZ 0x0011a0fa
LAB_0011a0f5:
RET
caseD_2000c:
MOV dword ptr [RDI + 0x18],ESI
RET
LAB_0011a0fa:
JMP 0x0011f38d
LAB_0011a0ff:
PUSH RAX
LEA RDI,[0x156616]
LEA RSI,[0x173252]
LEA RCX,[0x173900]
MOV EDX,0x35d
CALL 0x0010b510
|
void glfwSetWindowAttrib(long param_1,int param_2,int param_3)
{
uint uVar1;
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("window != NULL",
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O2/_deps/glfw-src/src/window.c"
,0x35d,"void glfwSetWindowAttrib(GLFWwindow *, int, int)");
}
if (_glfw == 0) {
_glfwInputError(0x10001,0);
return;
}
if (param_2 - 0x20003U < 10) {
uVar1 = (uint)(param_3 != 0);
switch(param_2) {
case 0x20003:
if ((*(uint *)(param_1 + 8) != uVar1) &&
(*(uint *)(param_1 + 8) = uVar1, *(long *)(param_1 + 0x40) == 0)) {
_glfwPlatformSetWindowResizable();
return;
}
break;
default:
goto switchD_0011a095_caseD_20004;
case 0x20005:
if ((*(uint *)(param_1 + 0xc) != uVar1) &&
(*(uint *)(param_1 + 0xc) = uVar1, *(long *)(param_1 + 0x40) == 0)) {
_glfwPlatformSetWindowDecorated();
return;
}
break;
case 0x20006:
*(uint *)(param_1 + 0x10) = uVar1;
return;
case 0x20007:
if ((*(uint *)(param_1 + 0x14) != uVar1) &&
(*(uint *)(param_1 + 0x14) = uVar1, *(long *)(param_1 + 0x40) == 0)) {
_glfwPlatformSetWindowFloating();
return;
}
break;
case 0x2000c:
*(uint *)(param_1 + 0x18) = uVar1;
return;
}
return;
}
switchD_0011a095_caseD_20004:
_glfwInputError(0x10003,"Invalid window attribute 0x%08X",param_2);
return;
}
| |
41,050 | my_uca_generate_implicit_page | eloqsql/strings/ctype-uca.c | static my_bool
my_uca_generate_implicit_page(MY_CHARSET_LOADER *loader,
MY_UCA_WEIGHT_LEVEL *dst,
uint page)
{
uint chc, size= 256 * dst->lengths[page] * sizeof(uint16);
if (!(dst->weights[page]= (uint16 *) (loader->once_alloc)(size)))
return TRUE;
memset(dst->weights[page], 0, size);
for (chc= 0 ; chc < 256; chc++)
{
uint16 *w= dst->weights[page] + chc * dst->lengths[page];
my_uca_implicit_weight_put(w, (page << 8) + chc, dst->levelno);
}
return FALSE;
} | O0 | c | my_uca_generate_implicit_page:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x1c(%rbp), %ecx
movzbl (%rax,%rcx), %eax
shll $0x8, %eax
cltq
shlq %rax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rax
movl -0x24(%rbp), %ecx
movl %ecx, %edi
callq *%rax
movq -0x18(%rbp), %rcx
movq 0x10(%rcx), %rcx
movl -0x1c(%rbp), %edx
movq %rax, (%rcx,%rdx,8)
cmpq $0x0, %rax
jne 0xaeb4d
movb $0x1, -0x1(%rbp)
jmp 0xaebd4
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x1c(%rbp), %ecx
movq (%rax,%rcx,8), %rdi
movl -0x24(%rbp), %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x38300
movl $0x0, -0x20(%rbp)
cmpl $0x100, -0x20(%rbp) # imm = 0x100
jae 0xaebd0
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x1c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl -0x20(%rbp), %ecx
movq -0x18(%rbp), %rdx
movq 0x8(%rdx), %rdx
movl -0x1c(%rbp), %esi
movzbl (%rdx,%rsi), %edx
imull %edx, %ecx
movl %ecx, %ecx
shlq %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movl -0x1c(%rbp), %eax
shll $0x8, %eax
addl -0x20(%rbp), %eax
movl %eax, %eax
movl %eax, %esi
movq -0x18(%rbp), %rax
movl 0x30(%rax), %edx
callq 0xaebe0
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0xaeb6f
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
| my_uca_generate_implicit_page:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov ecx, [rbp+var_1C]
movzx eax, byte ptr [rax+rcx]
shl eax, 8
cdqe
shl rax, 1
mov [rbp+var_24], eax
mov rax, [rbp+var_10]
mov rax, [rax+80h]
mov ecx, [rbp+var_24]
mov edi, ecx
call rax
mov rcx, [rbp+var_18]
mov rcx, [rcx+10h]
mov edx, [rbp+var_1C]
mov [rcx+rdx*8], rax
cmp rax, 0
jnz short loc_AEB4D
mov [rbp+var_1], 1
jmp loc_AEBD4
loc_AEB4D:
mov rax, [rbp+var_18]
mov rax, [rax+10h]
mov ecx, [rbp+var_1C]
mov rdi, [rax+rcx*8]
mov eax, [rbp+var_24]
mov edx, eax
xor esi, esi
call _memset
mov [rbp+var_20], 0
loc_AEB6F:
cmp [rbp+var_20], 100h
jnb short loc_AEBD0
mov rax, [rbp+var_18]
mov rax, [rax+10h]
mov ecx, [rbp+var_1C]
mov rax, [rax+rcx*8]
mov ecx, [rbp+var_20]
mov rdx, [rbp+var_18]
mov rdx, [rdx+8]
mov esi, [rbp+var_1C]
movzx edx, byte ptr [rdx+rsi]
imul ecx, edx
mov ecx, ecx
shl rcx, 1
add rax, rcx
mov [rbp+var_30], rax
mov rdi, [rbp+var_30]
mov eax, [rbp+var_1C]
shl eax, 8
add eax, [rbp+var_20]
mov eax, eax
mov esi, eax
mov rax, [rbp+var_18]
mov edx, [rax+30h]
call my_uca_implicit_weight_put
mov eax, [rbp+var_20]
add eax, 1
mov [rbp+var_20], eax
jmp short loc_AEB6F
loc_AEBD0:
mov [rbp+var_1], 0
loc_AEBD4:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
| char my_uca_generate_implicit_page(long long a1, long long a2, unsigned int a3)
{
long long v3; // rax
unsigned int v5; // [rsp+Ch] [rbp-24h]
unsigned int i; // [rsp+10h] [rbp-20h]
v5 = *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + a3) << 9;
v3 = (*(long long ( **)(_QWORD))(a1 + 128))(v5);
*(_QWORD *)(*(_QWORD *)(a2 + 16) + 8LL * a3) = v3;
if ( !v3 )
return 1;
memset(*(_QWORD *)(*(_QWORD *)(a2 + 16) + 8LL * a3), 0LL, v5);
for ( i = 0; i < 0x100; ++i )
my_uca_implicit_weight_put(
2LL * *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + a3) * i + *(_QWORD *)(*(_QWORD *)(a2 + 16) + 8LL * a3),
i + (a3 << 8),
*(unsigned int *)(a2 + 48));
return 0;
}
| my_uca_generate_implicit_page:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV ECX,dword ptr [RBP + -0x1c]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
SHL EAX,0x8
CDQE
SHL RAX,0x1
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x80]
MOV ECX,dword ptr [RBP + -0x24]
MOV EDI,ECX
CALL RAX
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX + 0x10]
MOV EDX,dword ptr [RBP + -0x1c]
MOV qword ptr [RCX + RDX*0x8],RAX
CMP RAX,0x0
JNZ 0x001aeb4d
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001aebd4
LAB_001aeb4d:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOV ECX,dword ptr [RBP + -0x1c]
MOV RDI,qword ptr [RAX + RCX*0x8]
MOV EAX,dword ptr [RBP + -0x24]
MOV EDX,EAX
XOR ESI,ESI
CALL 0x00138300
MOV dword ptr [RBP + -0x20],0x0
LAB_001aeb6f:
CMP dword ptr [RBP + -0x20],0x100
JNC 0x001aebd0
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOV ECX,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV ECX,dword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RDX + 0x8]
MOV ESI,dword ptr [RBP + -0x1c]
MOVZX EDX,byte ptr [RDX + RSI*0x1]
IMUL ECX,EDX
MOV ECX,ECX
SHL RCX,0x1
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RBP + -0x1c]
SHL EAX,0x8
ADD EAX,dword ptr [RBP + -0x20]
MOV EAX,EAX
MOV ESI,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EDX,dword ptr [RAX + 0x30]
CALL 0x001aebe0
MOV EAX,dword ptr [RBP + -0x20]
ADD EAX,0x1
MOV dword ptr [RBP + -0x20],EAX
JMP 0x001aeb6f
LAB_001aebd0:
MOV byte ptr [RBP + -0x1],0x0
LAB_001aebd4:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 my_uca_generate_implicit_page(long param_1,long param_2,uint param_3)
{
size_t __n;
long lVar1;
int4 local_28;
int1 local_9;
__n = (long)(int)((uint)*(byte *)(*(long *)(param_2 + 8) + (ulong)param_3) << 8) << 1;
lVar1 = (**(code **)(param_1 + 0x80))(__n);
*(long *)(*(long *)(param_2 + 0x10) + (ulong)param_3 * 8) = lVar1;
if (lVar1 == 0) {
local_9 = 1;
}
else {
memset(*(void **)(*(long *)(param_2 + 0x10) + (ulong)param_3 * 8),0,__n);
for (local_28 = 0; local_28 < 0x100; local_28 = local_28 + 1) {
my_uca_implicit_weight_put
(*(long *)(*(long *)(param_2 + 0x10) + (ulong)param_3 * 8) +
(ulong)(local_28 * *(byte *)(*(long *)(param_2 + 8) + (ulong)param_3)) * 2,
param_3 * 0x100 + local_28,*(int4 *)(param_2 + 0x30));
}
local_9 = 0;
}
return local_9;
}
| |
41,051 | my_once_alloc | eloqsql/mysys/my_once.c | void* my_once_alloc(size_t Size, myf MyFlags)
{
size_t get_size, max_left;
uchar* point;
reg1 USED_MEM *next;
reg2 USED_MEM **prev;
Size= ALIGN_SIZE(Size);
prev= &my_once_root_block;
max_left=0;
for (next=my_once_root_block ; next && next->left < Size ; next= next->next)
{
if (next->left > max_left)
max_left=next->left;
prev= &next->next;
}
if (! next)
{ /* Time to alloc new block */
get_size= Size+ALIGN_SIZE(sizeof(USED_MEM));
if (max_left*4 < my_once_extra && get_size < my_once_extra)
get_size=my_once_extra; /* Normal alloc */
if ((next = (USED_MEM*) malloc(get_size)) == 0)
{
my_errno=errno;
if (MyFlags & (MY_FAE+MY_WME))
my_error(EE_OUTOFMEMORY, MYF(ME_BELL+ME_FATAL), get_size);
return((uchar*) 0);
}
DBUG_PRINT("test",("my_once_malloc %lu byte malloced", (ulong) get_size));
next->next= 0;
next->size= get_size;
next->left= get_size-ALIGN_SIZE(sizeof(USED_MEM));
*prev=next;
}
point= (uchar*) ((char*) next+ (next->size-next->left));
next->left-= Size;
if (MyFlags & MY_ZEROFILL)
bzero(point, Size);
return((void*) point);
} | O0 | c | my_once_alloc:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
addq $0x8, %rax
subq $0x1, %rax
andq $-0x8, %rax
movq %rax, -0x10(%rbp)
leaq 0x381f45(%rip), %rax # 0x40d4c0
movq %rax, -0x40(%rbp)
movq $0x0, -0x28(%rbp)
leaq 0x381f32(%rip), %rax # 0x40d4c0
movq (%rax), %rax
movq %rax, -0x38(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x38(%rbp)
movb %al, -0x41(%rbp)
je 0x8b5b3
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
cmpq -0x10(%rbp), %rax
setb %al
movb %al, -0x41(%rbp)
movb -0x41(%rbp), %al
testb $0x1, %al
jne 0x8b5bc
jmp 0x8b5eb
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
cmpq -0x28(%rbp), %rax
jbe 0x8b5d6
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x8b595
cmpq $0x0, -0x38(%rbp)
jne 0x8b6c4
movq -0x10(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
shlq $0x2, %rax
leaq 0x1beaef(%rip), %rcx # 0x24a100
movl (%rcx), %ecx
cmpq %rcx, %rax
jae 0x8b637
movq -0x20(%rbp), %rax
leaq 0x1beadd(%rip), %rcx # 0x24a100
movl (%rcx), %ecx
cmpq %rcx, %rax
jae 0x8b637
leaq 0x1beacf(%rip), %rax # 0x24a100
movl (%rax), %eax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x38920
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
jne 0x8b68e
callq 0x389e0
movl (%rax), %eax
movl %eax, -0x48(%rbp)
callq 0x8ca30
movl -0x48(%rbp), %ecx
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
andq $0x18, %rax
cmpq $0x0, %rax
je 0x8b681
movq -0x20(%rbp), %rdx
movl $0x5, %edi
movl $0x1004, %esi # imm = 0x1004
movb $0x0, %al
callq 0x85630
movq $0x0, -0x8(%rbp)
jmp 0x8b717
jmp 0x8b690
jmp 0x8b692
movq -0x38(%rbp), %rax
movq $0x0, (%rax)
movq -0x20(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rcx
subq $0x18, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
movq -0x38(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x38(%rbp), %rdx
subq 0x8(%rdx), %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdx
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rcx
subq %rdx, %rcx
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
andq $0x20, %rax
cmpq $0x0, %rax
je 0x8b70f
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rdx
xorl %esi, %esi
callq 0x38300
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_once_alloc:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
add rax, 8
sub rax, 1
and rax, 0FFFFFFFFFFFFFFF8h
mov [rbp+var_10], rax
lea rax, my_once_root_block
mov [rbp+var_40], rax
mov [rbp+var_28], 0
lea rax, my_once_root_block
mov rax, [rax]
mov [rbp+var_38], rax
loc_8B595:
xor eax, eax
cmp [rbp+var_38], 0
mov [rbp+var_41], al
jz short loc_8B5B3
mov rax, [rbp+var_38]
mov rax, [rax+8]
cmp rax, [rbp+var_10]
setb al
mov [rbp+var_41], al
loc_8B5B3:
mov al, [rbp+var_41]
test al, 1
jnz short loc_8B5BC
jmp short loc_8B5EB
loc_8B5BC:
mov rax, [rbp+var_38]
mov rax, [rax+8]
cmp rax, [rbp+var_28]
jbe short loc_8B5D6
mov rax, [rbp+var_38]
mov rax, [rax+8]
mov [rbp+var_28], rax
loc_8B5D6:
mov rax, [rbp+var_38]
mov [rbp+var_40], rax
mov rax, [rbp+var_38]
mov rax, [rax]
mov [rbp+var_38], rax
jmp short loc_8B595
loc_8B5EB:
cmp [rbp+var_38], 0
jnz loc_8B6C4
mov rax, [rbp+var_10]
add rax, 18h
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
shl rax, 2
lea rcx, my_once_extra
mov ecx, [rcx]
cmp rax, rcx
jnb short loc_8B637
mov rax, [rbp+var_20]
lea rcx, my_once_extra
mov ecx, [rcx]
cmp rax, rcx
jnb short loc_8B637
lea rax, my_once_extra
mov eax, [rax]
mov [rbp+var_20], rax
loc_8B637:
mov rdi, [rbp+var_20]
call _malloc
mov [rbp+var_38], rax
cmp rax, 0
jnz short loc_8B68E
call ___errno_location
mov eax, [rax]
mov [rbp+var_48], eax
call _my_thread_var
mov ecx, [rbp+var_48]
mov [rax], ecx
mov rax, [rbp+var_18]
and rax, 18h
cmp rax, 0
jz short loc_8B681
mov rdx, [rbp+var_20]
mov edi, 5
mov esi, 1004h
mov al, 0
call my_error
loc_8B681:
mov [rbp+var_8], 0
jmp loc_8B717
loc_8B68E:
jmp short $+2
loc_8B690:
jmp short $+2
loc_8B692:
mov rax, [rbp+var_38]
mov qword ptr [rax], 0
mov rcx, [rbp+var_20]
mov rax, [rbp+var_38]
mov [rax+10h], rcx
mov rcx, [rbp+var_20]
sub rcx, 18h
mov rax, [rbp+var_38]
mov [rax+8], rcx
mov rcx, [rbp+var_38]
mov rax, [rbp+var_40]
mov [rax], rcx
loc_8B6C4:
mov rax, [rbp+var_38]
mov rcx, [rbp+var_38]
mov rcx, [rcx+10h]
mov rdx, [rbp+var_38]
sub rcx, [rdx+8]
add rax, rcx
mov [rbp+var_30], rax
mov rdx, [rbp+var_10]
mov rax, [rbp+var_38]
mov rcx, [rax+8]
sub rcx, rdx
mov [rax+8], rcx
mov rax, [rbp+var_18]
and rax, 20h
cmp rax, 0
jz short loc_8B70F
mov rdi, [rbp+var_30]
mov rdx, [rbp+var_10]
xor esi, esi
call _memset
loc_8B70F:
mov rax, [rbp+var_30]
mov [rbp+var_8], rax
loc_8B717:
mov rax, [rbp+var_8]
add rsp, 50h
pop rbp
retn
| char * my_once_alloc(long long a1, char a2)
{
int v3; // [rsp+8h] [rbp-48h]
bool v4; // [rsp+Fh] [rbp-41h]
_QWORD *v5; // [rsp+10h] [rbp-40h]
_QWORD *i; // [rsp+18h] [rbp-38h]
char *v7; // [rsp+20h] [rbp-30h]
unsigned long long v8; // [rsp+28h] [rbp-28h]
unsigned long long v9; // [rsp+30h] [rbp-20h]
unsigned long long v10; // [rsp+40h] [rbp-10h]
v10 = (a1 + 7) & 0xFFFFFFFFFFFFFFF8LL;
v5 = &my_once_root_block;
v8 = 0LL;
for ( i = (_QWORD *)my_once_root_block; ; i = (_QWORD *)*i )
{
v4 = 0;
if ( i )
v4 = i[1] < v10;
if ( !v4 )
break;
if ( i[1] > v8 )
v8 = i[1];
v5 = i;
}
if ( !i )
{
v9 = v10 + 24;
if ( 4 * v8 < my_once_extra && v9 < my_once_extra )
v9 = my_once_extra;
i = (_QWORD *)malloc(v9);
if ( !i )
{
v3 = *(_DWORD *)__errno_location(v9);
*(_DWORD *)my_thread_var() = v3;
if ( (a2 & 0x18) != 0 )
my_error(5u, 4100LL, v9);
return 0LL;
}
*i = 0LL;
i[2] = v9;
i[1] = v9 - 24;
*v5 = i;
}
v7 = (char *)i + i[2] - i[1];
i[1] -= v10;
if ( (a2 & 0x20) != 0 )
memset(v7, 0LL, v10);
return v7;
}
| my_once_alloc:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x8
SUB RAX,0x1
AND RAX,-0x8
MOV qword ptr [RBP + -0x10],RAX
LEA RAX,[0x50d4c0]
MOV qword ptr [RBP + -0x40],RAX
MOV qword ptr [RBP + -0x28],0x0
LEA RAX,[0x50d4c0]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
LAB_0018b595:
XOR EAX,EAX
CMP qword ptr [RBP + -0x38],0x0
MOV byte ptr [RBP + -0x41],AL
JZ 0x0018b5b3
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x8]
CMP RAX,qword ptr [RBP + -0x10]
SETC AL
MOV byte ptr [RBP + -0x41],AL
LAB_0018b5b3:
MOV AL,byte ptr [RBP + -0x41]
TEST AL,0x1
JNZ 0x0018b5bc
JMP 0x0018b5eb
LAB_0018b5bc:
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x8]
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x0018b5d6
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x28],RAX
LAB_0018b5d6:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
JMP 0x0018b595
LAB_0018b5eb:
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x0018b6c4
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x18
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
SHL RAX,0x2
LEA RCX,[0x34a100]
MOV ECX,dword ptr [RCX]
CMP RAX,RCX
JNC 0x0018b637
MOV RAX,qword ptr [RBP + -0x20]
LEA RCX,[0x34a100]
MOV ECX,dword ptr [RCX]
CMP RAX,RCX
JNC 0x0018b637
LEA RAX,[0x34a100]
MOV EAX,dword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
LAB_0018b637:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00138920
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JNZ 0x0018b68e
CALL 0x001389e0
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x48],EAX
CALL 0x0018ca30
MOV ECX,dword ptr [RBP + -0x48]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x18
CMP RAX,0x0
JZ 0x0018b681
MOV RDX,qword ptr [RBP + -0x20]
MOV EDI,0x5
MOV ESI,0x1004
MOV AL,0x0
CALL 0x00185630
LAB_0018b681:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0018b717
LAB_0018b68e:
JMP 0x0018b690
LAB_0018b690:
JMP 0x0018b692
LAB_0018b692:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX],0x0
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RBP + -0x20]
SUB RCX,0x18
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RAX],RCX
LAB_0018b6c4:
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RCX + 0x10]
MOV RDX,qword ptr [RBP + -0x38]
SUB RCX,qword ptr [RDX + 0x8]
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RDX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RAX + 0x8]
SUB RCX,RDX
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x20
CMP RAX,0x0
JZ 0x0018b70f
MOV RDI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x10]
XOR ESI,ESI
CALL 0x00138300
LAB_0018b70f:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x8],RAX
LAB_0018b717:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x50
POP RBP
RET
|
void * my_once_alloc(long param_1,ulong param_2)
{
int iVar1;
ulong __n;
int *piVar2;
void *__s;
bool bVar3;
int8 *local_48;
int8 *local_40;
ulong local_30;
size_t local_28;
__n = param_1 + 7U & 0xfffffffffffffff8;
local_48 = &my_once_root_block;
local_30 = 0;
local_40 = my_once_root_block;
while( true ) {
bVar3 = false;
if (local_40 != (int8 *)0x0) {
bVar3 = (ulong)local_40[1] < __n;
}
if (!bVar3) break;
if (local_30 < (ulong)local_40[1]) {
local_30 = local_40[1];
}
local_48 = local_40;
local_40 = (int8 *)*local_40;
}
if (local_40 == (int8 *)0x0) {
local_28 = __n + 0x18;
if ((local_30 << 2 < (ulong)my_once_extra) && (local_28 < my_once_extra)) {
local_28 = (size_t)my_once_extra;
}
local_40 = (int8 *)malloc(local_28);
if (local_40 == (int8 *)0x0) {
piVar2 = __errno_location();
iVar1 = *piVar2;
piVar2 = (int *)_my_thread_var();
*piVar2 = iVar1;
if ((param_2 & 0x18) != 0) {
my_error(5,0x1004,local_28);
}
return (void *)0x0;
}
*local_40 = 0;
local_40[2] = local_28;
local_40[1] = local_28 - 0x18;
*local_48 = local_40;
}
__s = (void *)((long)local_40 + (local_40[2] - local_40[1]));
local_40[1] = local_40[1] - __n;
if ((param_2 & 0x20) != 0) {
memset(__s,0,__n);
}
return __s;
}
| |
41,052 | my_once_alloc | eloqsql/mysys/my_once.c | void* my_once_alloc(size_t Size, myf MyFlags)
{
size_t get_size, max_left;
uchar* point;
reg1 USED_MEM *next;
reg2 USED_MEM **prev;
Size= ALIGN_SIZE(Size);
prev= &my_once_root_block;
max_left=0;
for (next=my_once_root_block ; next && next->left < Size ; next= next->next)
{
if (next->left > max_left)
max_left=next->left;
prev= &next->next;
}
if (! next)
{ /* Time to alloc new block */
get_size= Size+ALIGN_SIZE(sizeof(USED_MEM));
if (max_left*4 < my_once_extra && get_size < my_once_extra)
get_size=my_once_extra; /* Normal alloc */
if ((next = (USED_MEM*) malloc(get_size)) == 0)
{
my_errno=errno;
if (MyFlags & (MY_FAE+MY_WME))
my_error(EE_OUTOFMEMORY, MYF(ME_BELL+ME_FATAL), get_size);
return((uchar*) 0);
}
DBUG_PRINT("test",("my_once_malloc %lu byte malloced", (ulong) get_size));
next->next= 0;
next->size= get_size;
next->left= get_size-ALIGN_SIZE(sizeof(USED_MEM));
*prev=next;
}
point= (uchar*) ((char*) next+ (next->size-next->left));
next->left-= Size;
if (MyFlags & MY_ZEROFILL)
bzero(point, Size);
return((void*) point);
} | O3 | c | my_once_alloc:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
addq $0x7, %r14
andq $-0x8, %r14
leaq 0x349481(%rip), %r13 # 0x379960
movq (%r13), %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x3050a
movq %rcx, %r13
movq 0x8(%rcx), %rcx
cmpq %r14, %rcx
jae 0x30553
cmpq %rax, %rcx
cmovaq %rcx, %rax
movq (%r13), %rcx
testq %rcx, %rcx
jne 0x304ea
shlq $0x2, %rax
leaq 0x18(%r14), %rcx
leaq 0x2ca17b(%rip), %rdx # 0x2fa690
movl (%rdx), %edx
cmpq %rdx, %rcx
movq %rdx, %r15
cmovaq %rcx, %r15
cmpq %rdx, %rax
cmovaeq %rcx, %r15
movq %r15, %rdi
callq 0x244b0
testq %rax, %rax
je 0x30584
movq $0x0, (%rax)
movq %r15, 0x10(%rax)
addq $-0x18, %r15
movq %r15, 0x8(%rax)
movq %rax, (%r13)
movq 0x8(%rax), %rcx
movq %rax, %r13
movq 0x10(%r13), %r12
subq %rcx, %r12
addq %r13, %r12
subq %r14, %rcx
movq %rcx, 0x8(%r13)
testb $0x20, %bl
je 0x305b0
movq %r12, %rdi
xorl %esi, %esi
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x241e0
callq 0x24050
movl (%rax), %r14d
callq 0x3193e
movl %r14d, (%rax)
xorl %r12d, %r12d
testb $0x18, %bl
je 0x305b0
movl $0x1004, %esi # imm = 0x1004
movl $0x5, %edi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2cce7
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_once_alloc:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rsi
mov r14, rdi
add r14, 7
and r14, 0FFFFFFFFFFFFFFF8h
lea r13, my_once_root_block
mov rcx, [r13+0]
xor eax, eax
test rcx, rcx
jz short loc_3050A
loc_304EA:
mov r13, rcx
mov rcx, [rcx+8]
cmp rcx, r14
jnb short loc_30553
cmp rcx, rax
cmova rax, rcx
mov rcx, [r13+0]
test rcx, rcx
jnz short loc_304EA
shl rax, 2
loc_3050A:
lea rcx, [r14+18h]
lea rdx, my_once_extra
mov edx, [rdx]
cmp rcx, rdx
mov r15, rdx
cmova r15, rcx
cmp rax, rdx
cmovnb r15, rcx
mov rdi, r15
call _malloc
test rax, rax
jz short loc_30584
mov qword ptr [rax], 0
mov [rax+10h], r15
add r15, 0FFFFFFFFFFFFFFE8h
mov [rax+8], r15
mov [r13+0], rax
mov rcx, [rax+8]
mov r13, rax
loc_30553:
mov r12, [r13+10h]
sub r12, rcx
add r12, r13
sub rcx, r14
mov [r13+8], rcx
test bl, 20h
jz short loc_305B0
mov rdi, r12
xor esi, esi
mov rdx, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _memset
loc_30584:
call ___errno_location
mov r14d, [rax]
call _my_thread_var
mov [rax], r14d
xor r12d, r12d
test bl, 18h
jz short loc_305B0
mov esi, 1004h
mov edi, 5
mov rdx, r15
xor eax, eax
call my_error
loc_305B0:
mov rax, r12
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_once_alloc(long long a1, long long a2)
{
unsigned long long v2; // r14
_QWORD *v3; // r13
_QWORD *v4; // rcx
unsigned long long v5; // rax
unsigned long long v6; // rcx
unsigned long long v7; // r15
_QWORD *v8; // rax
char *v9; // r12
int v11; // r14d
long long v12; // rdx
long long v13; // rcx
long long v14; // r8
long long v15; // r9
v2 = (a1 + 7) & 0xFFFFFFFFFFFFFFF8LL;
v3 = &my_once_root_block;
v4 = (_QWORD *)my_once_root_block;
v5 = 0LL;
if ( my_once_root_block )
{
while ( 1 )
{
v3 = v4;
v6 = v4[1];
if ( v6 >= v2 )
break;
if ( v6 > v5 )
v5 = v6;
v4 = (_QWORD *)*v3;
if ( !*v3 )
{
v5 *= 4LL;
goto LABEL_7;
}
}
}
else
{
LABEL_7:
v7 = my_once_extra;
if ( v2 + 24 > my_once_extra )
v7 = v2 + 24;
if ( v5 >= my_once_extra )
v7 = v2 + 24;
v8 = (_QWORD *)malloc(v7);
if ( !v8 )
{
v11 = *(_DWORD *)__errno_location(v7);
*(_DWORD *)my_thread_var(v7, a2, v12, v13, v14, v15) = v11;
v9 = 0LL;
if ( (a2 & 0x18) != 0 )
my_error(5u, 4100LL, v7);
return (long long)v9;
}
*v8 = 0LL;
v8[2] = v7;
v8[1] = v7 - 24;
*v3 = v8;
v6 = v8[1];
v3 = v8;
}
v9 = (char *)v3 + v3[2] - v6;
v3[1] = v6 - v2;
if ( (a2 & 0x20) != 0 )
return memset(v9, 0LL, v2);
return (long long)v9;
}
| my_once_alloc:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
ADD R14,0x7
AND R14,-0x8
LEA R13,[0x479960]
MOV RCX,qword ptr [R13]
XOR EAX,EAX
TEST RCX,RCX
JZ 0x0013050a
LAB_001304ea:
MOV R13,RCX
MOV RCX,qword ptr [RCX + 0x8]
CMP RCX,R14
JNC 0x00130553
CMP RCX,RAX
CMOVA RAX,RCX
MOV RCX,qword ptr [R13]
TEST RCX,RCX
JNZ 0x001304ea
SHL RAX,0x2
LAB_0013050a:
LEA RCX,[R14 + 0x18]
LEA RDX,[0x3fa690]
MOV EDX,dword ptr [RDX]
CMP RCX,RDX
MOV R15,RDX
CMOVA R15,RCX
CMP RAX,RDX
CMOVNC R15,RCX
MOV RDI,R15
CALL 0x001244b0
TEST RAX,RAX
JZ 0x00130584
MOV qword ptr [RAX],0x0
MOV qword ptr [RAX + 0x10],R15
ADD R15,-0x18
MOV qword ptr [RAX + 0x8],R15
MOV qword ptr [R13],RAX
MOV RCX,qword ptr [RAX + 0x8]
MOV R13,RAX
LAB_00130553:
MOV R12,qword ptr [R13 + 0x10]
SUB R12,RCX
ADD R12,R13
SUB RCX,R14
MOV qword ptr [R13 + 0x8],RCX
TEST BL,0x20
JZ 0x001305b0
MOV RDI,R12
XOR ESI,ESI
MOV RDX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001241e0
LAB_00130584:
CALL 0x00124050
MOV R14D,dword ptr [RAX]
CALL 0x0013193e
MOV dword ptr [RAX],R14D
XOR R12D,R12D
TEST BL,0x18
JZ 0x001305b0
MOV ESI,0x1004
MOV EDI,0x5
MOV RDX,R15
XOR EAX,EAX
CALL 0x0012cce7
LAB_001305b0:
MOV RAX,R12
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void * my_once_alloc(long param_1,ulong param_2)
{
int iVar1;
int8 *puVar2;
ulong uVar3;
int8 *puVar4;
int *piVar5;
ulong uVar6;
ulong uVar7;
void *pvVar8;
int8 *puVar9;
ulong __n;
ulong __size;
__n = param_1 + 7U & 0xfffffffffffffff8;
uVar3 = 0;
puVar2 = my_once_root_block;
puVar9 = &my_once_root_block;
if (my_once_root_block != (int8 *)0x0) {
do {
puVar4 = puVar2;
uVar6 = puVar4[1];
if (__n <= uVar6) goto LAB_00130553;
if (uVar3 < uVar6) {
uVar3 = uVar6;
}
puVar2 = (int8 *)*puVar4;
} while ((int8 *)*puVar4 != (int8 *)0x0);
uVar3 = uVar3 << 2;
puVar9 = puVar4;
}
uVar6 = __n + 0x18;
uVar7 = (ulong)my_once_extra;
__size = uVar7;
if (uVar7 < uVar6) {
__size = uVar6;
}
if (uVar7 <= uVar3) {
__size = uVar6;
}
puVar4 = (int8 *)malloc(__size);
if (puVar4 == (int8 *)0x0) {
piVar5 = __errno_location();
iVar1 = *piVar5;
piVar5 = (int *)_my_thread_var();
*piVar5 = iVar1;
pvVar8 = (void *)0x0;
if ((param_2 & 0x18) != 0) {
my_error(5,0x1004,__size);
}
}
else {
*puVar4 = 0;
puVar4[2] = __size;
puVar4[1] = __size - 0x18;
*puVar9 = puVar4;
uVar6 = puVar4[1];
LAB_00130553:
pvVar8 = (void *)((puVar4[2] - uVar6) + (long)puVar4);
puVar4[1] = uVar6 - __n;
if ((param_2 & 0x20) != 0) {
pvVar8 = memset(pvVar8,0,__n);
return pvVar8;
}
}
return pvVar8;
}
| |
41,053 | open_cached_file | eloqsql/mysys/mf_cache.c | my_bool open_cached_file(IO_CACHE *cache, const char* dir, const char *prefix,
size_t cache_size, myf cache_myflags)
{
DBUG_ENTER("open_cached_file");
cache->dir= dir;
if (prefix)
{
DBUG_ASSERT(strlen(prefix) == 2);
memcpy(cache->prefix, prefix, 3);
}
else
cache->prefix[0]= 0;
cache->file_name=0;
cache->buffer=0; /* Mark that not open */
if (!init_io_cache(cache, -1, cache_size, WRITE_CACHE, 0L, 0,
MYF(cache_myflags | MY_NABP)))
{
DBUG_RETURN(0);
}
DBUG_RETURN(1);
} | O3 | c | open_cached_file:
movq %rsi, 0xc8(%rdi)
leaq 0xd0(%rdi), %rax
testq %rdx, %rdx
je 0xb3887
movb 0x2(%rdx), %sil
movb %sil, 0x2(%rax)
movzwl (%rdx), %edx
movw %dx, (%rax)
jmp 0xb388a
movb $0x0, (%rax)
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
xorl %eax, %eax
movq %rax, 0xc0(%rdi)
movq %rax, 0x20(%rdi)
orq $0x4, %r8
movq %r8, (%rsp)
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
movq %rcx, %rdx
movl $0x2, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x9c8ee
testl %eax, %eax
setne %al
addq $0x10, %rsp
popq %rbp
retq
| open_cached_file:
mov [rdi+0C8h], rsi
lea rax, [rdi+0D0h]
test rdx, rdx
jz short loc_B3887
mov sil, [rdx+2]
mov [rax+2], sil
movzx edx, word ptr [rdx]
mov [rax], dx
jmp short loc_B388A
loc_B3887:
mov byte ptr [rax], 0
loc_B388A:
push rbp
mov rbp, rsp
sub rsp, 10h
xor eax, eax
mov [rdi+0C0h], rax
mov [rdi+20h], rax
or r8, 4
mov [rsp+18h+var_18], r8
mov esi, 0FFFFFFFFh
mov rdx, rcx
mov ecx, 2
xor r8d, r8d
xor r9d, r9d
call init_io_cache
test eax, eax
setnz al
add rsp, 10h
pop rbp
retn
| bool open_cached_file(long long a1, long long a2, long long a3, unsigned long long a4, long long a5)
{
_WORD *v5; // rax
*(_QWORD *)(a1 + 200) = a2;
v5 = (_WORD *)(a1 + 208);
if ( a3 )
{
*(_BYTE *)(a1 + 210) = *(_BYTE *)(a3 + 2);
*v5 = *(_WORD *)a3;
}
else
{
*(_BYTE *)v5 = 0;
}
*(_QWORD *)(a1 + 192) = 0LL;
*(_QWORD *)(a1 + 32) = 0LL;
return (unsigned int)init_io_cache(a1, 0xFFFFFFFF, a4, 2, 0LL, 0, a5 | 4) != 0;
}
| open_cached_file:
MOV qword ptr [RDI + 0xc8],RSI
LEA RAX,[RDI + 0xd0]
TEST RDX,RDX
JZ 0x001b3887
MOV SIL,byte ptr [RDX + 0x2]
MOV byte ptr [RAX + 0x2],SIL
MOVZX EDX,word ptr [RDX]
MOV word ptr [RAX],DX
JMP 0x001b388a
LAB_001b3887:
MOV byte ptr [RAX],0x0
LAB_001b388a:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
XOR EAX,EAX
MOV qword ptr [RDI + 0xc0],RAX
MOV qword ptr [RDI + 0x20],RAX
OR R8,0x4
MOV qword ptr [RSP],R8
MOV ESI,0xffffffff
MOV RDX,RCX
MOV ECX,0x2
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0019c8ee
TEST EAX,EAX
SETNZ AL
ADD RSP,0x10
POP RBP
RET
|
bool open_cached_file(long param_1,int8 param_2,int2 *param_3,int8 param_4,
ulong param_5)
{
int iVar1;
*(int8 *)(param_1 + 200) = param_2;
if (param_3 == (int2 *)0x0) {
*(int1 *)(param_1 + 0xd0) = 0;
}
else {
*(int1 *)(param_1 + 0xd2) = *(int1 *)(param_3 + 1);
*(int2 *)(param_1 + 0xd0) = *param_3;
}
*(int8 *)(param_1 + 0xc0) = 0;
*(int8 *)(param_1 + 0x20) = 0;
iVar1 = init_io_cache(param_1,0xffffffff,param_4,2,0,0,param_5 | 4);
return iVar1 != 0;
}
| |
41,054 | nglog::tools::ProgramInvocationShortName() | ng-log[P]ng-log/src/utilities.cc | const char* ProgramInvocationShortName() {
if (g_program_invocation_short_name != nullptr) {
return g_program_invocation_short_name;
}
#if defined(HAVE_PROGRAM_INVOCATION_SHORT_NAME)
return program_invocation_short_name;
#elif defined(HAVE_GETPROGNAME)
return getprogname();
#elif defined(HAVE___PROGNAME)
return __progname;
#elif defined(HAVE___ARGV)
return const_basename(__argv[0]);
#else
return "UNKNOWN";
#endif
} | O0 | cpp | nglog::tools::ProgramInvocationShortName():
pushq %rbp
movq %rsp, %rbp
cmpq $0x0, 0x360ec(%rip) # 0x80c28
je 0x4ab4b
movq 0x360e3(%rip), %rax # 0x80c28
movq %rax, -0x8(%rbp)
jmp 0x4ab59
movq 0x25466(%rip), %rax # 0x6ffb8
movq (%rax), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nop
| _ZN5nglog5tools26ProgramInvocationShortNameEv:
push rbp
mov rbp, rsp
cmp cs:_ZN5nglogL31g_program_invocation_short_nameE, 0; nglog::g_program_invocation_short_name
jz short loc_4AB4B
mov rax, cs:_ZN5nglogL31g_program_invocation_short_nameE; nglog::g_program_invocation_short_name
mov [rbp+var_8], rax
jmp short loc_4AB59
loc_4AB4B:
mov rax, cs:program_invocation_short_name_ptr
mov rax, [rax]
mov [rbp+var_8], rax
loc_4AB59:
mov rax, [rbp+var_8]
pop rbp
retn
| long long nglog::tools::ProgramInvocationShortName(nglog::tools *this)
{
if ( nglog::g_program_invocation_short_name )
return nglog::g_program_invocation_short_name;
else
return program_invocation_short_name;
}
| ProgramInvocationShortName:
PUSH RBP
MOV RBP,RSP
CMP qword ptr [0x00180c28],0x0
JZ 0x0014ab4b
MOV RAX,qword ptr [0x00180c28]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0014ab59
LAB_0014ab4b:
MOV RAX,qword ptr [0x0016ffb8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x8],RAX
LAB_0014ab59:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
/* nglog::tools::ProgramInvocationShortName() */
long nglog::tools::ProgramInvocationShortName(void)
{
int8 local_10;
if (g_program_invocation_short_name == 0) {
local_10 = *(long *)PTR_program_invocation_short_name_0016ffb8;
}
else {
local_10 = g_program_invocation_short_name;
}
return local_10;
}
| |
41,055 | nglog::tools::ProgramInvocationShortName() | ng-log[P]ng-log/src/utilities.cc | const char* ProgramInvocationShortName() {
if (g_program_invocation_short_name != nullptr) {
return g_program_invocation_short_name;
}
#if defined(HAVE_PROGRAM_INVOCATION_SHORT_NAME)
return program_invocation_short_name;
#elif defined(HAVE_GETPROGNAME)
return getprogname();
#elif defined(HAVE___PROGNAME)
return __progname;
#elif defined(HAVE___ARGV)
return const_basename(__argv[0]);
#else
return "UNKNOWN";
#endif
} | O2 | cpp | nglog::tools::ProgramInvocationShortName():
movq 0x22290(%rip), %rax # 0x3ea80
testq %rax, %rax
jne 0x1c7ff
movq 0x1179c(%rip), %rax # 0x2df98
movq (%rax), %rax
retq
| _ZN5nglog5tools26ProgramInvocationShortNameEv:
mov rax, cs:_ZN5nglogL31g_program_invocation_short_nameE; nglog::g_program_invocation_short_name
test rax, rax
jnz short locret_1C7FF
mov rax, cs:program_invocation_short_name_ptr
mov rax, [rax]
locret_1C7FF:
retn
| long long nglog::tools::ProgramInvocationShortName(nglog::tools *this)
{
long long result; // rax
result = nglog::g_program_invocation_short_name;
if ( !nglog::g_program_invocation_short_name )
return program_invocation_short_name;
return result;
}
| ProgramInvocationShortName:
MOV RAX,qword ptr [0x0013ea80]
TEST RAX,RAX
JNZ 0x0011c7ff
MOV RAX,qword ptr [0x0012df98]
MOV RAX,qword ptr [RAX]
LAB_0011c7ff:
RET
|
/* nglog::tools::ProgramInvocationShortName() */
long nglog::tools::ProgramInvocationShortName(void)
{
long lVar1;
lVar1 = g_program_invocation_short_name;
if (g_program_invocation_short_name == 0) {
lVar1 = *(long *)PTR_program_invocation_short_name_0012df98;
}
return lVar1;
}
| |
41,056 | minja::TextTemplateToken::TextTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/common/minja.hpp | TextTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, const std::string& t) : TemplateToken(Type::Text, location, pre, post), text(t) {} | O1 | cpp | minja::TextTemplateToken::TextTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbx
movq %rdi, %rbx
leaq 0x6c9c3(%rip), %rax # 0xea2c0
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x30(%rdi), %rdi
leaq 0x40(%rbx), %rax
cmpq %rax, %rdi
je 0x7d91c
movq (%rax), %rsi
incq %rsi
callq 0x197a0
leaq 0x6be85(%rip), %rax # 0xe97a8
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x7d938
callq 0x34304
movl $0x50, %esi
movq %rbx, %rdi
popq %rbx
jmp 0x197a0
| _ZN5minja17TextTemplateTokenD0Ev:
push rbx
mov rbx, rdi
lea rax, _ZTVN5minja17TextTemplateTokenE; `vtable for'minja::TextTemplateToken
add rax, 10h
mov [rdi], rax
mov rdi, [rdi+30h]; void *
lea rax, [rbx+40h]
cmp rdi, rax
jz short loc_7D91C
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7D91C:
lea rax, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken
add rax, 10h
mov [rbx], rax
mov rdi, [rbx+18h]
test rdi, rdi
jz short loc_7D938
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_7D938:
mov esi, 50h ; 'P'; unsigned __int64
mov rdi, rbx; void *
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
| void minja::TextTemplateToken::~TextTemplateToken(minja::TextTemplateToken *this)
{
char *v2; // rdi
volatile signed __int32 *v3; // rdi
*(_QWORD *)this = &`vtable for'minja::TextTemplateToken + 2;
v2 = (char *)*((_QWORD *)this + 6);
if ( v2 != (char *)this + 64 )
operator delete(v2, *((_QWORD *)this + 8) + 1LL);
*(_QWORD *)this = &`vtable for'minja::TemplateToken + 2;
v3 = (volatile signed __int32 *)*((_QWORD *)this + 3);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
operator delete(this, 0x50uLL);
}
| ~TextTemplateToken:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x1ea2c0]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x30]
LEA RAX,[RBX + 0x40]
CMP RDI,RAX
JZ 0x0017d91c
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x001197a0
LAB_0017d91c:
LEA RAX,[0x1e97a8]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x18]
TEST RDI,RDI
JZ 0x0017d938
CALL 0x00134304
LAB_0017d938:
MOV ESI,0x50
MOV RDI,RBX
POP RBX
JMP 0x001197a0
|
/* minja::TextTemplateToken::~TextTemplateToken() */
void __thiscall minja::TextTemplateToken::~TextTemplateToken(TextTemplateToken *this)
{
*(int ***)this = &PTR__TextTemplateToken_001ea2d0;
if (*(TextTemplateToken **)(this + 0x30) != this + 0x40) {
operator_delete(*(TextTemplateToken **)(this + 0x30),*(long *)(this + 0x40) + 1);
}
*(int ***)this = &PTR__TemplateToken_001e97b8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18));
}
operator_delete(this,0x50);
return;
}
| |
41,057 | fmt::v10::appender fmt::v10::detail::write_int<fmt::v10::appender, unsigned long, char>(fmt::v10::appender, unsigned long, unsigned int, fmt::v10::format_specs<char> const&, fmt::v10::detail::digit_grouping<char> const&) | aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format.h | auto write_int(OutputIt out, UInt value, unsigned prefix,
const format_specs<Char>& specs,
const digit_grouping<Char>& grouping) -> OutputIt {
static_assert(std::is_same<uint64_or_128_t<UInt>, UInt>::value, "");
int num_digits = 0;
auto buffer = memory_buffer();
switch (specs.type) {
case presentation_type::none:
case presentation_type::dec: {
num_digits = count_digits(value);
format_decimal<char>(appender(buffer), value, num_digits);
break;
}
case presentation_type::hex_lower:
case presentation_type::hex_upper: {
bool upper = specs.type == presentation_type::hex_upper;
if (specs.alt)
prefix_append(prefix, unsigned(upper ? 'X' : 'x') << 8 | '0');
num_digits = count_digits<4>(value);
format_uint<4, char>(appender(buffer), value, num_digits, upper);
break;
}
case presentation_type::bin_lower:
case presentation_type::bin_upper: {
bool upper = specs.type == presentation_type::bin_upper;
if (specs.alt)
prefix_append(prefix, unsigned(upper ? 'B' : 'b') << 8 | '0');
num_digits = count_digits<1>(value);
format_uint<1, char>(appender(buffer), value, num_digits);
break;
}
case presentation_type::oct: {
num_digits = count_digits<3>(value);
// Octal prefix '0' is counted as a digit, so only add it if precision
// is not greater than the number of digits.
if (specs.alt && specs.precision <= num_digits && value != 0)
prefix_append(prefix, '0');
format_uint<3, char>(appender(buffer), value, num_digits);
break;
}
case presentation_type::chr:
return write_char(out, static_cast<Char>(value), specs);
default:
throw_format_error("invalid format specifier");
}
unsigned size = (prefix != 0 ? prefix >> 24 : 0) + to_unsigned(num_digits) +
to_unsigned(grouping.count_separators(num_digits));
return write_padded<align::right>(
out, specs, size, size, [&](reserve_iterator<OutputIt> it) {
for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8)
*it++ = static_cast<Char>(p & 0xff);
return grouping.apply(it, string_view(buffer.data(), buffer.size()));
});
} | O3 | c | fmt::v10::appender fmt::v10::detail::write_int<fmt::v10::appender, unsigned long, char>(fmt::v10::appender, unsigned long, unsigned int, fmt::v10::format_specs<char> const&, fmt::v10::detail::digit_grouping<char> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x278, %rsp # imm = 0x278
movl %edx, 0xc(%rsp)
leaq 0x80(%rsp), %r13
movq $0x0, -0x10(%r13)
leaq 0x20ab13(%rip), %rax # 0x296c00
movq %rax, -0x20(%r13)
movq %r13, -0x18(%r13)
movq $0x1f4, -0x8(%r13) # imm = 0x1F4
movzbl 0x8(%rcx), %eax
cmpq $0xf, %rax
ja 0x8c51c
movq %r8, %r15
movq %rcx, %rbx
movl %edx, %ebp
movq %rdi, %r14
leaq 0x162f77(%rip), %rcx # 0x1ef094
movslq (%rcx,%rax,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
movq %rsi, %rax
orq $0x1, %rax
bsrq %rax, %rax
leaq 0x163928(%rip), %rcx # 0x1efa60
movzbl (%rax,%rcx), %r12d
leaq 0x16395c(%rip), %rax # 0x1efaa0
cmpq (%rax,%r12,8), %rsi
sbbl $0x0, %r12d
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, (%rdi)
movl $0x0, 0x10(%rdi)
movl %r12d, %edx
callq 0x8a315
leaq 0x10(%rsp), %rdi
leaq 0x60(%rsp), %rax
movq %rdx, %rsi
movq %rax, %rdx
callq 0x8a10e
movl 0xc(%rsp), %ebp
jmp 0x8c478
testb $-0x80, 0x9(%rbx)
je 0x8c1b1
xorl %ecx, %ecx
cmpb $0x6, %al
setne %cl
shll $0xd, %ecx
orl $0x4230, %ecx # imm = 0x4230
movl %ecx, %eax
shll $0x8, %eax
testl %ebp, %ebp
cmovel %ecx, %eax
orl %ebp, %eax
addl $0x2000000, %eax # imm = 0x2000000
movl %eax, 0xc(%rsp)
movl %eax, %ebp
movq $-0x1, %rcx
leaq 0x7f(%rsp), %rax
xorl %r12d, %r12d
movq %rsi, %rdi
movq %rsi, %rdx
shrq %rdx
incq %rax
incq %rcx
incq %r12
cmpq $0x1, %rdi
movq %rdx, %rdi
ja 0x8c1c6
cmpl $0x1f3, %ecx # imm = 0x1F3
jbe 0x8c313
addq %rsp, %rcx
addq $0x10, %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movb $0x0, 0x50(%rsp)
leaq (%rsp,%r12), %rax
addq $0x10, %rax
movq %rsi, %rdx
movl %esi, %edi
andb $0x1, %dil
orb $0x30, %dil
movb %dil, (%rcx)
shrq %rdx
decq %rcx
cmpq $0x1, %rsi
movq %rdx, %rsi
ja 0x8c215
leaq 0x10(%rsp), %rdi
leaq 0x60(%rsp), %rdx
movq %rax, %rsi
callq 0x8a10e
jmp 0x8c478
testb $-0x80, 0x9(%rbx)
je 0x8c276
xorl %ecx, %ecx
cmpb $0x4, %al
setne %cl
shll $0xd, %ecx
orl $0x5830, %ecx # imm = 0x5830
movl %ecx, %edx
shll $0x8, %edx
testl %ebp, %ebp
cmovel %ecx, %edx
orl %ebp, %edx
addl $0x2000000, %edx # imm = 0x2000000
movl %edx, 0xc(%rsp)
movl %edx, %ebp
movq $-0x1, %rdx
leaq 0x7f(%rsp), %rcx
xorl %r12d, %r12d
movq %rsi, %r8
movq %rsi, %rdi
shrq $0x4, %rdi
incq %rcx
incq %rdx
incq %r12
cmpq $0xf, %r8
movq %rdi, %r8
ja 0x8c28b
cmpl $0x1f3, %edx # imm = 0x1F3
jbe 0x8c41c
leaq (%rsp,%rdx), %rcx
addq $0x10, %rcx
cmpb $0x4, %al
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movb $0x0, 0x20(%rsp)
leaq 0x10(%rsp,%r12), %rax
leaq 0x1633ce(%rip), %rdi # 0x1ef69e
leaq 0x1633d8(%rip), %rdx # 0x1ef6af
cmoveq %rdi, %rdx
movq %rsi, %rdi
movl %esi, %r8d
andl $0xf, %r8d
movb (%rdx,%r8), %r8b
movb %r8b, (%rcx)
shrq $0x4, %rdi
decq %rcx
cmpq $0xf, %rsi
movq %rdi, %rsi
ja 0x8c2de
leaq 0x10(%rsp), %rdi
leaq 0x60(%rsp), %rdx
movq %rax, %rsi
callq 0x8a10e
jmp 0x8c478
movq %r12, 0x70(%rsp)
movq %rsi, %rcx
movl %esi, %edx
andb $0x1, %dl
orb $0x30, %dl
movb %dl, (%rax)
shrq %rcx
decq %rax
cmpq $0x2, %rsi
movq %rcx, %rsi
jae 0x8c31b
jmp 0x8c478
movq $-0x1, %rcx
leaq 0x7f(%rsp), %rax
xorl %r12d, %r12d
movq %rsi, %rdi
movq %rsi, %rdx
shrq $0x3, %rdx
incq %rax
incq %rcx
incq %r12
cmpq $0x7, %rdi
movq %rdx, %rdi
ja 0x8c34e
testb $-0x80, 0x9(%rbx)
je 0x8c392
testq %rsi, %rsi
je 0x8c392
cmpl %r12d, 0x4(%rbx)
jg 0x8c392
testl %ebp, %ebp
movl $0x30, %edx
movl $0x3000, %edi # imm = 0x3000
cmovel %edx, %edi
orl %ebp, %edi
addl $0x1000000, %edi # imm = 0x1000000
movl %edi, 0xc(%rsp)
movl %edi, %ebp
cmpl $0x1f3, %ecx # imm = 0x1F3
jbe 0x8c456
addq %rsp, %rcx
addq $0x10, %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x1e(%rsp)
leaq (%rsp,%r12), %rax
addq $0x10, %rax
movq %rsi, %rdx
movl %esi, %edi
andb $0x7, %dil
orb $0x30, %dil
movb %dil, (%rcx)
shrq $0x3, %rdx
decq %rcx
cmpq $0x7, %rsi
movq %rdx, %rsi
ja 0x8c3c1
leaq 0x10(%rsp), %rdi
leaq 0x60(%rsp), %rdx
movq %rax, %rsi
callq 0x8a10e
jmp 0x8c478
leaq 0x10(%rsp), %r8
movb $0x0, (%r8)
movb %sil, 0x1(%r8)
movl $0x1, %edx
movl $0x1, %ecx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8c669
jmp 0x8c4f0
cmpb $0x4, %al
movq %r12, 0x70(%rsp)
leaq 0x163274(%rip), %rdx # 0x1ef69e
leaq 0x16327e(%rip), %rax # 0x1ef6af
cmoveq %rdx, %rax
movq %rsi, %rdx
movl %esi, %edi
andl $0xf, %edi
movb (%rax,%rdi), %dil
movb %dil, (%rcx)
shrq $0x4, %rdx
decq %rcx
cmpq $0x10, %rsi
movq %rdx, %rsi
jae 0x8c438
jmp 0x8c478
movq %r12, 0x70(%rsp)
movq %rsi, %rcx
movl %esi, %edx
andb $0x7, %dl
orb $0x30, %dl
movb %dl, (%rax)
shrq $0x3, %rcx
decq %rax
cmpq $0x8, %rsi
movq %rcx, %rsi
jae 0x8c45e
cmpq $0x0, 0x28(%r15)
je 0x8c4ba
movq (%r15), %rdx
movq 0x8(%r15), %rcx
addq %rdx, %rcx
xorl %eax, %eax
xorl %esi, %esi
cmpq %rcx, %rdx
je 0x8c4a4
movb (%rdx), %dil
leal -0x7f(%rdi), %r8d
cmpb $-0x7e, %r8b
jb 0x8c4bc
incq %rdx
jmp 0x8c4ab
movb -0x1(%rcx), %dil
movq %rcx, %rdx
movsbl %dil, %edi
addl %edi, %esi
cmpl %r12d, %esi
jge 0x8c4bc
incl %eax
jmp 0x8c48d
xorl %eax, %eax
shrl $0x18, %ebp
addl %eax, %r12d
addl %ebp, %r12d
leaq 0xc(%rsp), %rax
leaq 0x10(%rsp), %r8
movq %rax, (%r8)
movq %r15, 0x8(%r8)
leaq 0x60(%rsp), %rax
movq %rax, 0x10(%r8)
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r12, %rcx
callq 0x8c584
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x8c507
movq 0x78(%rsp), %rsi
callq 0x82190
movq %rbx, %rax
addq $0x278, %rsp # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x163162(%rip), %rdi # 0x1ef685
callq 0x89ed4
jmp 0x8c52e
jmp 0x8c52e
jmp 0x8c52e
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x8c545
movq 0x78(%rsp), %rsi
callq 0x82190
movq %rbx, %rdi
callq 0x83b70
nop
| _ZN3fmt3v106detail9write_intINS0_8appenderEmcEET_S4_T0_jRKNS0_12format_specsIT1_EERKNS1_14digit_groupingIS7_EE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 278h
mov [rsp+2A8h+var_29C], edx
lea r13, [rsp+2A8h+var_228]
mov qword ptr [r13-10h], 0
lea rax, off_296C00
mov [r13-20h], rax
mov [r13-18h], r13
mov qword ptr [r13-8], 1F4h
movzx eax, byte ptr [rcx+8]
cmp rax, 0Fh; switch 16 cases
ja def_8C124; jumptable 000000000008C124 default case, cases 7-14
mov r15, r8
mov rbx, rcx
mov ebp, edx
mov r14, rdi
lea rcx, jpt_8C124
movsxd rdx, ds:(jpt_8C124 - 1EF094h)[rcx+rax*4]
add rdx, rcx
jmp rdx; switch jump
loc_8C126:
mov rax, rsi; jumptable 000000000008C124 cases 0,1
or rax, 1
bsr rax, rax
lea rcx, _ZZN3fmt3v106detail15do_count_digitsEmE9bsr2log10; fmt::v10::detail::do_count_digits(ulong)::bsr2log10
movzx r12d, byte ptr [rax+rcx]
lea rax, _ZZN3fmt3v106detail15do_count_digitsEmE20zero_or_powers_of_10
cmp rsi, [rax+r12*8]
sbb r12d, 0
xorps xmm0, xmm0
lea rdi, [rsp+2A8h+var_298]
movaps xmmword ptr [rdi], xmm0
mov dword ptr [rdi+10h], 0
mov edx, r12d
call _ZN3fmt3v106detail14format_decimalIcmEENS1_21format_decimal_resultIPT_EES5_T0_i; fmt::v10::detail::format_decimal<char,ulong>(char *,ulong,int)
lea rdi, [rsp+2A8h+var_298]
lea rax, [rsp+2A8h+var_248]
mov rsi, rdx
mov rdx, rax
call _ZN3fmt3v106detail17copy_str_noinlineIcPcNS0_8appenderEEET1_T0_S6_S5_; fmt::v10::detail::copy_str_noinline<char,char *,fmt::v10::appender>(char *,char *,fmt::v10::appender)
mov ebp, [rsp+2A8h+var_29C]
jmp loc_8C478
loc_8C184:
test byte ptr [rbx+9], 80h; jumptable 000000000008C124 cases 5,6
jz short loc_8C1B1
xor ecx, ecx
cmp al, 6
setnz cl
shl ecx, 0Dh
or ecx, 4230h
mov eax, ecx
shl eax, 8
test ebp, ebp
cmovz eax, ecx
or eax, ebp
add eax, 2000000h
mov [rsp+2A8h+var_29C], eax
mov ebp, eax
loc_8C1B1:
mov rcx, 0FFFFFFFFFFFFFFFFh
lea rax, [rsp+2A8h+var_229]
xor r12d, r12d
mov rdi, rsi
mov rdx, rsi
loc_8C1C6:
shr rdx, 1
inc rax
inc rcx
inc r12
cmp rdi, 1
mov rdi, rdx
ja short loc_8C1C6
cmp ecx, 1F3h
jbe loc_8C313
add rcx, rsp
add rcx, 10h
xorps xmm0, xmm0
movaps [rsp+2A8h+var_268], xmm0
movaps [rsp+2A8h+var_278], xmm0
movaps [rsp+2A8h+var_288], xmm0
movaps [rsp+2A8h+var_298], xmm0
mov [rsp+2A8h+var_258], 0
lea rax, [rsp+r12+2A8h+var_2A8]
add rax, 10h
mov rdx, rsi
loc_8C215:
mov edi, esi
and dil, 1
or dil, 30h
mov [rcx], dil
shr rdx, 1
dec rcx
cmp rsi, 1
mov rsi, rdx
ja short loc_8C215
lea rdi, [rsp+2A8h+var_298]
lea rdx, [rsp+2A8h+var_248]
mov rsi, rax
call _ZN3fmt3v106detail17copy_str_noinlineIcPcNS0_8appenderEEET1_T0_S6_S5_; fmt::v10::detail::copy_str_noinline<char,char *,fmt::v10::appender>(char *,char *,fmt::v10::appender)
jmp loc_8C478
loc_8C248:
test byte ptr [rbx+9], 80h; jumptable 000000000008C124 cases 3,4
jz short loc_8C276
xor ecx, ecx
cmp al, 4
setnz cl
shl ecx, 0Dh
or ecx, 5830h
mov edx, ecx
shl edx, 8
test ebp, ebp
cmovz edx, ecx
or edx, ebp
add edx, 2000000h
mov [rsp+2A8h+var_29C], edx
mov ebp, edx
loc_8C276:
mov rdx, 0FFFFFFFFFFFFFFFFh
lea rcx, [rsp+2A8h+var_229]
xor r12d, r12d
mov r8, rsi
mov rdi, rsi
loc_8C28B:
shr rdi, 4
inc rcx
inc rdx
inc r12
cmp r8, 0Fh
mov r8, rdi
ja short loc_8C28B
cmp edx, 1F3h
jbe loc_8C41C
lea rcx, [rsp+rdx+2A8h+var_2A8]
add rcx, 10h
cmp al, 4
xorps xmm0, xmm0
movaps [rsp+2A8h+var_298], xmm0
mov byte ptr [rsp+2A8h+var_288], 0
lea rax, [rsp+r12+2A8h+var_298]
lea rdi, a0123456789abcd; "0123456789ABCDEF"
lea rdx, a0123456789abcd_0; "0123456789abcdef"
cmovz rdx, rdi
mov rdi, rsi
loc_8C2DE:
mov r8d, esi
and r8d, 0Fh
mov r8b, [rdx+r8]
mov [rcx], r8b
shr rdi, 4
dec rcx
cmp rsi, 0Fh
mov rsi, rdi
ja short loc_8C2DE
lea rdi, [rsp+2A8h+var_298]
lea rdx, [rsp+2A8h+var_248]
mov rsi, rax
call _ZN3fmt3v106detail17copy_str_noinlineIcPcNS0_8appenderEEET1_T0_S6_S5_; fmt::v10::detail::copy_str_noinline<char,char *,fmt::v10::appender>(char *,char *,fmt::v10::appender)
jmp loc_8C478
loc_8C313:
mov [rsp+2A8h+var_238], r12
mov rcx, rsi
loc_8C31B:
mov edx, esi
and dl, 1
or dl, 30h
mov [rax], dl
shr rcx, 1
dec rax
cmp rsi, 2
mov rsi, rcx
jnb short loc_8C31B
jmp loc_8C478
loc_8C339:
mov rcx, 0FFFFFFFFFFFFFFFFh; jumptable 000000000008C124 case 2
lea rax, [rsp+2A8h+var_229]
xor r12d, r12d
mov rdi, rsi
mov rdx, rsi
loc_8C34E:
shr rdx, 3
inc rax
inc rcx
inc r12
cmp rdi, 7
mov rdi, rdx
ja short loc_8C34E
test byte ptr [rbx+9], 80h
jz short loc_8C392
test rsi, rsi
jz short loc_8C392
cmp [rbx+4], r12d
jg short loc_8C392
test ebp, ebp
mov edx, 30h ; '0'
mov edi, 3000h
cmovz edi, edx
or edi, ebp
add edi, 1000000h
mov [rsp+2A8h+var_29C], edi
mov ebp, edi
loc_8C392:
cmp ecx, 1F3h
jbe loc_8C456
add rcx, rsp
add rcx, 10h
xorps xmm0, xmm0
movaps [rsp+2A8h+var_298], xmm0
mov qword ptr [rsp+2A8h+var_298+0Eh], 0
lea rax, [rsp+r12+2A8h+var_2A8]
add rax, 10h
mov rdx, rsi
loc_8C3C1:
mov edi, esi
and dil, 7
or dil, 30h
mov [rcx], dil
shr rdx, 3
dec rcx
cmp rsi, 7
mov rsi, rdx
ja short loc_8C3C1
lea rdi, [rsp+2A8h+var_298]
lea rdx, [rsp+2A8h+var_248]
mov rsi, rax
call _ZN3fmt3v106detail17copy_str_noinlineIcPcNS0_8appenderEEET1_T0_S6_S5_; fmt::v10::detail::copy_str_noinline<char,char *,fmt::v10::appender>(char *,char *,fmt::v10::appender)
jmp loc_8C478
loc_8C3F5:
lea r8, [rsp+2A8h+var_298]; jumptable 000000000008C124 case 15
mov byte ptr [r8], 0
mov [r8+1], sil
mov edx, 1
mov ecx, 1
mov rdi, r14
mov rsi, rbx
call _ZN3fmt3v106detail12write_paddedILNS0_5align4typeE1ENS0_8appenderEcRZNS1_10write_charIcS5_EET0_S7_T_RKNS0_12format_specsIS8_EEEUlS5_E_EES7_S7_RKNS9_IT1_EEmmOT2_; fmt::v10::detail::write_padded<(fmt::v10::align::type)1,fmt::v10::appender,char,fmt::v10::detail::write_char<char,fmt::v10::appender>(fmt::v10::appender,char,fmt::v10::format_specs<char> const&)::{lambda(fmt::v10::appender)#1} &>(fmt::v10::appender,fmt::v10::format_specs<char> const&,ulong,ulong,fmt::v10::detail::write_char<char,fmt::v10::appender>(fmt::v10::appender,char,fmt::v10::format_specs<char> const&)::{lambda(fmt::v10::appender)#1} &)
jmp loc_8C4F0
loc_8C41C:
cmp al, 4
mov [rsp+2A8h+var_238], r12
lea rdx, a0123456789abcd; "0123456789ABCDEF"
lea rax, a0123456789abcd_0; "0123456789abcdef"
cmovz rax, rdx
mov rdx, rsi
loc_8C438:
mov edi, esi
and edi, 0Fh
mov dil, [rax+rdi]
mov [rcx], dil
shr rdx, 4
dec rcx
cmp rsi, 10h
mov rsi, rdx
jnb short loc_8C438
jmp short loc_8C478
loc_8C456:
mov [rsp+2A8h+var_238], r12
mov rcx, rsi
loc_8C45E:
mov edx, esi
and dl, 7
or dl, 30h
mov [rax], dl
shr rcx, 3
dec rax
cmp rsi, 8
mov rsi, rcx
jnb short loc_8C45E
loc_8C478:
cmp qword ptr [r15+28h], 0
jz short loc_8C4BA
mov rdx, [r15]
mov rcx, [r15+8]
add rcx, rdx
xor eax, eax
xor esi, esi
loc_8C48D:
cmp rdx, rcx
jz short loc_8C4A4
mov dil, [rdx]
lea r8d, [rdi-7Fh]
cmp r8b, 82h
jb short loc_8C4BC
inc rdx
jmp short loc_8C4AB
loc_8C4A4:
mov dil, [rcx-1]
mov rdx, rcx
loc_8C4AB:
movsx edi, dil
add esi, edi
cmp esi, r12d
jge short loc_8C4BC
inc eax
jmp short loc_8C48D
loc_8C4BA:
xor eax, eax
loc_8C4BC:
shr ebp, 18h
add r12d, eax
add r12d, ebp
lea rax, [rsp+2A8h+var_29C]
lea r8, [rsp+2A8h+var_298]
mov [r8], rax
mov [r8+8], r15
lea rax, [rsp+2A8h+var_248]
mov [r8+10h], rax
mov rdi, r14; int
mov rsi, rbx
mov rdx, r12
mov rcx, r12
call _ZN3fmt3v106detail12write_paddedILNS0_5align4typeE2ENS0_8appenderEcZNS1_9write_intIS5_mcEET_S7_T0_jRKNS0_12format_specsIT1_EERKNS1_14digit_groupingISA_EEEUlS5_E_EES8_S8_SD_mmOT2_; fmt::v10::detail::write_padded<(fmt::v10::align::type)2,fmt::v10::appender,char,fmt::v10::detail::write_int<fmt::v10::appender,ulong,char>(fmt::v10::appender,ulong,uint,fmt::v10::format_specs<char> const&,fmt::v10::detail::digit_grouping<char> const&)::{lambda(fmt::v10::appender)#1}>(ulong,fmt::v10::format_specs<char> const&,ulong,ulong,fmt::v10::detail::write_int<fmt::v10::appender,ulong,char>(fmt::v10::appender,ulong,uint,fmt::v10::format_specs<char> const&,fmt::v10::detail::digit_grouping<char> const&)::{lambda(fmt::v10::appender)#1} &&)
loc_8C4F0:
mov rbx, rax
mov rdi, [rsp+2A8h+var_240]; void *
cmp rdi, r13
jz short loc_8C507
mov rsi, [rsp+78h]; char *
call __ZdlPvm; operator delete(void *,ulong)
loc_8C507:
mov rax, rbx
add rsp, 278h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
def_8C124:
lea rdi, aInvalidFormatS; jumptable 000000000008C124 default case, cases 7-14
call _ZN3fmt3v106detail18throw_format_errorEPKc; fmt::v10::detail::throw_format_error(char const*)
jmp short loc_8C52E
jmp short loc_8C52E
jmp short $+2
loc_8C52E:
mov rbx, rax
mov rdi, [rsp+2A8h+var_240]; void *
cmp rdi, r13
jz short loc_8C545
mov rsi, [rsp+78h]; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8C545:
mov rdi, rbx
call __Unwind_Resume
| long long fmt::v10::detail::write_int<fmt::v10::appender,unsigned long,char>(
long long a1,
unsigned long long a2,
int a3,
long long a4,
long long a5)
{
char v5; // al
int v9; // r14d
unsigned long long v10; // rax
long long v11; // r12
long long v12; // rdx
int v13; // ecx
int v14; // eax
long long v15; // rcx
_BYTE *v16; // rax
unsigned long long v17; // rdi
unsigned long long v18; // rdx
bool v19; // cc
_BYTE *v20; // rcx
unsigned long long v21; // rdx
int v22; // edx
long long v23; // rdx
_BYTE *v24; // rcx
unsigned long long v25; // r8
unsigned long long v26; // rdi
_BYTE *v27; // rcx
const char *v28; // rdx
unsigned long long v29; // rdi
unsigned long long v30; // rcx
bool v31; // cf
long long v32; // rcx
_BYTE *v33; // rax
unsigned long long v34; // rdi
unsigned long long v35; // rdx
int v36; // edi
_BYTE *v37; // rcx
unsigned long long v38; // rdx
long long v39; // rax
bool v40; // zf
const char *v41; // rax
unsigned long long v42; // rdx
unsigned long long v43; // rcx
char *v44; // rdx
char *v45; // rcx
int v46; // eax
int v47; // esi
char v48; // di
long long v49; // rbx
int v51; // [rsp+Ch] [rbp-29Ch] BYREF
_OWORD v52[4]; // [rsp+10h] [rbp-298h] BYREF
char v53; // [rsp+50h] [rbp-258h]
_UNKNOWN **v54; // [rsp+60h] [rbp-248h] BYREF
void *v55; // [rsp+68h] [rbp-240h]
long long v56; // [rsp+70h] [rbp-238h]
unsigned long long v57; // [rsp+78h] [rbp-230h] BYREF
_BYTE v58[552]; // [rsp+80h] [rbp-228h] BYREF
v51 = a3;
v56 = 0LL;
v54 = &off_296C00;
v55 = v58;
v57 = 500LL;
v5 = *(_BYTE *)(a4 + 8);
v9 = a1;
switch ( v5 )
{
case 0:
case 1:
_BitScanReverse64(&v10, a2 | 1);
LODWORD(v11) = fmt::v10::detail::do_count_digits(unsigned long)::bsr2log10[v10]
- (a2 < fmt::v10::detail::do_count_digits(unsigned long)::zero_or_powers_of_10[fmt::v10::detail::do_count_digits(unsigned long)::bsr2log10[v10]]);
memset(v52, 0, 20);
fmt::v10::detail::format_decimal<char,unsigned long>((long long)v52, a2, v11);
fmt::v10::detail::copy_str_noinline<char,char *,fmt::v10::appender>((long long)v52, v12, (long long)&v54);
break;
case 2:
v32 = -1LL;
v33 = (char *)&v57 + 7;
v11 = 0LL;
v34 = a2;
v35 = a2;
do
{
v35 >>= 3;
++v33;
++v32;
++v11;
v19 = v34 <= 7;
v34 = v35;
}
while ( !v19 );
if ( *(char *)(a4 + 9) < 0 && a2 && *(_DWORD *)(a4 + 4) <= (int)v11 )
{
v36 = 12288;
if ( !a3 )
v36 = 48;
v51 = (a3 | v36) + 0x1000000;
}
if ( (unsigned int)v32 > 0x1F3 )
{
v37 = (char *)v52 + v32;
memset(v52, 0, 22);
v38 = a2;
do
{
*v37 = a2 & 7 | 0x30;
v38 >>= 3;
--v37;
v19 = a2 <= 7;
a2 = v38;
}
while ( !v19 );
goto LABEL_39;
}
v56 = v11;
v43 = a2;
do
{
*v33 = a2 & 7 | 0x30;
v43 >>= 3;
--v33;
v31 = a2 < 8;
a2 = v43;
}
while ( !v31 );
break;
case 3:
case 4:
if ( *(char *)(a4 + 9) < 0 )
{
v22 = (((v5 != 4) << 13) | 0x5830) << 8;
if ( !a3 )
v22 = ((v5 != 4) << 13) | 0x5830;
v51 = (a3 | v22) + 0x2000000;
}
v23 = -1LL;
v24 = (char *)&v57 + 7;
v11 = 0LL;
v25 = a2;
v26 = a2;
do
{
v26 >>= 4;
++v24;
++v23;
++v11;
v19 = v25 <= 0xF;
v25 = v26;
}
while ( !v19 );
if ( (unsigned int)v23 > 0x1F3 )
{
v27 = (char *)v52 + v23;
memset(v52, 0, 17);
v28 = "0123456789abcdef";
if ( v5 == 4 )
v28 = "0123456789ABCDEF";
v29 = a2;
do
{
*v27 = v28[a2 & 0xF];
v29 >>= 4;
--v27;
v19 = a2 <= 0xF;
a2 = v29;
}
while ( !v19 );
goto LABEL_39;
}
v40 = v5 == 4;
v56 = v11;
v41 = "0123456789abcdef";
if ( v40 )
v41 = "0123456789ABCDEF";
v42 = a2;
do
{
*v24 = v41[a2 & 0xF];
v42 >>= 4;
--v24;
v31 = a2 < 0x10;
a2 = v42;
}
while ( !v31 );
break;
case 5:
case 6:
if ( *(char *)(a4 + 9) < 0 )
{
v13 = ((v5 != 6) << 13) | 0x4230;
v14 = v13 << 8;
if ( !a3 )
v14 = v13;
v51 = (a3 | v14) + 0x2000000;
}
v15 = -1LL;
v16 = (char *)&v57 + 7;
v11 = 0LL;
v17 = a2;
v18 = a2;
do
{
v18 >>= 1;
++v16;
++v15;
++v11;
v19 = v17 <= 1;
v17 = v18;
}
while ( !v19 );
if ( (unsigned int)v15 <= 0x1F3 )
{
v56 = v11;
v30 = a2;
do
{
*v16 = a2 & 1 | 0x30;
v30 >>= 1;
--v16;
v31 = a2 < 2;
a2 = v30;
}
while ( !v31 );
}
else
{
v20 = (char *)v52 + v15;
memset(v52, 0, sizeof(v52));
v53 = 0;
v21 = a2;
do
{
*v20 = a2 & 1 | 0x30;
v21 >>= 1;
--v20;
v19 = a2 <= 1;
a2 = v21;
}
while ( !v19 );
LABEL_39:
fmt::v10::detail::copy_str_noinline<char,char *,fmt::v10::appender>(
(long long)v52,
(long long)v52 + v11,
(long long)&v54);
}
break;
case 15:
LOBYTE(v52[0]) = 0;
BYTE1(v52[0]) = a2;
v39 = 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)#1} &>(
a1,
a4,
1LL,
1LL);
goto LABEL_57;
default:
fmt::v10::detail::throw_format_error((fmt::v10::detail *)"invalid format specifier", (const char *)a2);
}
if ( *(_QWORD *)(a5 + 40) )
{
v44 = *(char **)a5;
v45 = (char *)(*(_QWORD *)a5 + *(_QWORD *)(a5 + 8));
v46 = 0;
v47 = 0;
while ( 1 )
{
if ( v44 == v45 )
{
v48 = *(v45 - 1);
v44 = (char *)(*(_QWORD *)a5 + *(_QWORD *)(a5 + 8));
}
else
{
v48 = *v44;
if ( (unsigned __int8)(*v44 - 127) < 0x82u )
break;
++v44;
}
v47 += v48;
if ( v47 >= (int)v11 )
break;
++v46;
}
}
*(_QWORD *)&v52[0] = &v51;
*((_QWORD *)&v52[0] + 1) = a5;
*(_QWORD *)&v52[1] = &v54;
v39 = 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 long,char>(fmt::v10::appender,unsigned long,unsigned int,fmt::v10::format_specs<char> const&,fmt::v10::detail::digit_grouping<char> const&)::{lambda(fmt::v10::appender)#1}>(v9);
LABEL_57:
v49 = v39;
if ( v55 != v58 )
operator delete(v55, v57);
return v49;
}
| write_int<fmt::v10::appender,unsigned_long,char>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x278
MOV dword ptr [RSP + 0xc],EDX
LEA R13,[RSP + 0x80]
MOV qword ptr [R13 + -0x10],0x0
LEA RAX,[0x396c00]
MOV qword ptr [R13 + -0x20],RAX
MOV qword ptr [R13 + -0x18],R13
MOV qword ptr [R13 + -0x8],0x1f4
MOVZX EAX,byte ptr [RCX + 0x8]
CMP RAX,0xf
JA 0x0018c51c
MOV R15,R8
MOV RBX,RCX
MOV EBP,EDX
MOV R14,RDI
LEA RCX,[0x2ef094]
MOVSXD RDX,dword ptr [RCX + RAX*0x4]
ADD RDX,RCX
switchD:
JMP RDX
caseD_0:
MOV RAX,RSI
OR RAX,0x1
BSR RAX,RAX
LEA RCX,[0x2efa60]
MOVZX R12D,byte ptr [RAX + RCX*0x1]
LEA RAX,[0x2efaa0]
CMP RSI,qword ptr [RAX + R12*0x8]
SBB R12D,0x0
XORPS XMM0,XMM0
LEA RDI,[RSP + 0x10]
MOVAPS xmmword ptr [RDI],XMM0
MOV dword ptr [RDI + 0x10],0x0
LAB_0018c15e:
MOV EDX,R12D
CALL 0x0018a315
LEA RDI,[RSP + 0x10]
LEA RAX,[RSP + 0x60]
MOV RSI,RDX
MOV RDX,RAX
CALL 0x0018a10e
MOV EBP,dword ptr [RSP + 0xc]
JMP 0x0018c478
caseD_5:
TEST byte ptr [RBX + 0x9],0x80
JZ 0x0018c1b1
XOR ECX,ECX
CMP AL,0x6
SETNZ CL
SHL ECX,0xd
OR ECX,0x4230
MOV EAX,ECX
SHL EAX,0x8
TEST EBP,EBP
CMOVZ EAX,ECX
OR EAX,EBP
ADD EAX,0x2000000
MOV dword ptr [RSP + 0xc],EAX
MOV EBP,EAX
LAB_0018c1b1:
MOV RCX,-0x1
LEA RAX,[RSP + 0x7f]
XOR R12D,R12D
MOV RDI,RSI
MOV RDX,RSI
LAB_0018c1c6:
SHR RDX,0x1
INC RAX
INC RCX
INC R12
CMP RDI,0x1
MOV RDI,RDX
JA 0x0018c1c6
CMP ECX,0x1f3
JBE 0x0018c313
ADD RCX,RSP
ADD RCX,0x10
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOVAPS xmmword ptr [RSP + 0x30],XMM0
MOVAPS xmmword ptr [RSP + 0x20],XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOV byte ptr [RSP + 0x50],0x0
LEA RAX,[RSP + R12*0x1]
ADD RAX,0x10
MOV RDX,RSI
LAB_0018c215:
MOV EDI,ESI
AND DIL,0x1
OR DIL,0x30
MOV byte ptr [RCX],DIL
SHR RDX,0x1
DEC RCX
CMP RSI,0x1
MOV RSI,RDX
JA 0x0018c215
LAB_0018c231:
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0x60]
MOV RSI,RAX
CALL 0x0018a10e
JMP 0x0018c478
caseD_3:
TEST byte ptr [RBX + 0x9],0x80
JZ 0x0018c276
XOR ECX,ECX
CMP AL,0x4
SETNZ CL
SHL ECX,0xd
OR ECX,0x5830
MOV EDX,ECX
SHL EDX,0x8
TEST EBP,EBP
CMOVZ EDX,ECX
OR EDX,EBP
ADD EDX,0x2000000
MOV dword ptr [RSP + 0xc],EDX
MOV EBP,EDX
LAB_0018c276:
MOV RDX,-0x1
LEA RCX,[RSP + 0x7f]
XOR R12D,R12D
MOV R8,RSI
MOV RDI,RSI
LAB_0018c28b:
SHR RDI,0x4
INC RCX
INC RDX
INC R12
CMP R8,0xf
MOV R8,RDI
JA 0x0018c28b
CMP EDX,0x1f3
JBE 0x0018c41c
LEA RCX,[RSP + RDX*0x1]
ADD RCX,0x10
CMP AL,0x4
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOV byte ptr [RSP + 0x20],0x0
LEA RAX,[RSP + R12*0x1 + 0x10]
LEA RDI,[0x2ef69e]
LEA RDX,[0x2ef6af]
CMOVZ RDX,RDI
MOV RDI,RSI
LAB_0018c2de:
MOV R8D,ESI
AND R8D,0xf
MOV R8B,byte ptr [RDX + R8*0x1]
MOV byte ptr [RCX],R8B
SHR RDI,0x4
DEC RCX
CMP RSI,0xf
MOV RSI,RDI
JA 0x0018c2de
LAB_0018c2fc:
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0x60]
MOV RSI,RAX
CALL 0x0018a10e
JMP 0x0018c478
LAB_0018c313:
MOV qword ptr [RSP + 0x70],R12
MOV RCX,RSI
LAB_0018c31b:
MOV EDX,ESI
AND DL,0x1
OR DL,0x30
MOV byte ptr [RAX],DL
SHR RCX,0x1
DEC RAX
CMP RSI,0x2
MOV RSI,RCX
JNC 0x0018c31b
JMP 0x0018c478
caseD_2:
MOV RCX,-0x1
LEA RAX,[RSP + 0x7f]
XOR R12D,R12D
MOV RDI,RSI
MOV RDX,RSI
LAB_0018c34e:
SHR RDX,0x3
INC RAX
INC RCX
INC R12
CMP RDI,0x7
MOV RDI,RDX
JA 0x0018c34e
TEST byte ptr [RBX + 0x9],0x80
JZ 0x0018c392
TEST RSI,RSI
JZ 0x0018c392
CMP dword ptr [RBX + 0x4],R12D
JG 0x0018c392
TEST EBP,EBP
MOV EDX,0x30
MOV EDI,0x3000
CMOVZ EDI,EDX
OR EDI,EBP
ADD EDI,0x1000000
MOV dword ptr [RSP + 0xc],EDI
MOV EBP,EDI
LAB_0018c392:
CMP ECX,0x1f3
JBE 0x0018c456
ADD RCX,RSP
ADD RCX,0x10
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOV qword ptr [RSP + 0x1e],0x0
LEA RAX,[RSP + R12*0x1]
ADD RAX,0x10
MOV RDX,RSI
LAB_0018c3c1:
MOV EDI,ESI
AND DIL,0x7
OR DIL,0x30
MOV byte ptr [RCX],DIL
SHR RDX,0x3
DEC RCX
CMP RSI,0x7
MOV RSI,RDX
JA 0x0018c3c1
LAB_0018c3de:
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0x60]
MOV RSI,RAX
CALL 0x0018a10e
JMP 0x0018c478
caseD_f:
LEA R8,[RSP + 0x10]
MOV byte ptr [R8],0x0
MOV byte ptr [R8 + 0x1],SIL
MOV EDX,0x1
MOV ECX,0x1
MOV RDI,R14
MOV RSI,RBX
CALL 0x0018c669
JMP 0x0018c4f0
LAB_0018c41c:
CMP AL,0x4
MOV qword ptr [RSP + 0x70],R12
LEA RDX,[0x2ef69e]
LEA RAX,[0x2ef6af]
CMOVZ RAX,RDX
MOV RDX,RSI
LAB_0018c438:
MOV EDI,ESI
AND EDI,0xf
MOV DIL,byte ptr [RAX + RDI*0x1]
MOV byte ptr [RCX],DIL
SHR RDX,0x4
DEC RCX
CMP RSI,0x10
MOV RSI,RDX
JNC 0x0018c438
JMP 0x0018c478
LAB_0018c456:
MOV qword ptr [RSP + 0x70],R12
MOV RCX,RSI
LAB_0018c45e:
MOV EDX,ESI
AND DL,0x7
OR DL,0x30
MOV byte ptr [RAX],DL
SHR RCX,0x3
DEC RAX
CMP RSI,0x8
MOV RSI,RCX
JNC 0x0018c45e
LAB_0018c478:
CMP qword ptr [R15 + 0x28],0x0
JZ 0x0018c4ba
MOV RDX,qword ptr [R15]
MOV RCX,qword ptr [R15 + 0x8]
ADD RCX,RDX
XOR EAX,EAX
XOR ESI,ESI
LAB_0018c48d:
CMP RDX,RCX
JZ 0x0018c4a4
MOV DIL,byte ptr [RDX]
LEA R8D,[RDI + -0x7f]
CMP R8B,0x82
JC 0x0018c4bc
INC RDX
JMP 0x0018c4ab
LAB_0018c4a4:
MOV DIL,byte ptr [RCX + -0x1]
MOV RDX,RCX
LAB_0018c4ab:
MOVSX EDI,DIL
ADD ESI,EDI
CMP ESI,R12D
JGE 0x0018c4bc
INC EAX
JMP 0x0018c48d
LAB_0018c4ba:
XOR EAX,EAX
LAB_0018c4bc:
SHR EBP,0x18
ADD R12D,EAX
ADD R12D,EBP
LEA RAX,[RSP + 0xc]
LEA R8,[RSP + 0x10]
MOV qword ptr [R8],RAX
MOV qword ptr [R8 + 0x8],R15
LEA RAX,[RSP + 0x60]
MOV qword ptr [R8 + 0x10],RAX
LAB_0018c4df:
MOV RDI,R14
MOV RSI,RBX
MOV RDX,R12
MOV RCX,R12
CALL 0x0018c584
LAB_0018c4f0:
MOV RBX,RAX
MOV RDI,qword ptr [RSP + 0x68]
CMP RDI,R13
JZ 0x0018c507
MOV RSI,qword ptr [RSP + 0x78]
CALL 0x00182190
LAB_0018c507:
MOV RAX,RBX
ADD RSP,0x278
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
caseD_7:
LEA RDI,[0x2ef685]
CALL 0x00189ed4
|
/* fmt::v10::appender fmt::v10::detail::write_int<fmt::v10::appender, unsigned long,
char>(fmt::v10::appender, unsigned long, unsigned int, fmt::v10::format_specs<char> const&,
fmt::v10::detail::digit_grouping<char> const&) */
int8
fmt::v10::detail::write_int<fmt::v10::appender,unsigned_long,char>
(int8 param_1,ulong param_2,uint param_3,long param_4,int8 *param_5)
{
int iVar1;
byte *pbVar2;
int8 uVar3;
uint uVar4;
long lVar5;
long lVar6;
char *pcVar7;
char *pcVar8;
int8 extraout_RDX;
int iVar9;
char cVar10;
ulong uVar11;
uint uVar12;
ulong uVar13;
ulong uVar14;
bool bVar15;
uint local_29c;
int8 local_298;
int6 uStack_290;
int2 uStack_28a;
uint uStack_288;
int2 uStack_284;
int2 uStack_282;
int8 uStack_280;
int8 local_278;
int8 uStack_270;
int8 local_268;
int8 uStack_260;
int1 local_258;
int **local_248;
int1 *local_240;
ulong local_238;
int8 local_230;
int1 local_228 [504];
local_238 = 0;
local_248 = &PTR_grow_00396c00;
local_230 = 500;
cVar10 = *(char *)(param_4 + 8);
local_29c = param_3;
local_240 = local_228;
switch(cVar10) {
case '\0':
case '\x01':
lVar6 = 0x3f;
if ((param_2 | 1) != 0) {
for (; (param_2 | 1) >> lVar6 == 0; lVar6 = lVar6 + -1) {
}
}
uVar12 = (uint)(byte)do_count_digits(unsigned_long)::bsr2log10[lVar6] -
(uint)(param_2 <
*(ulong *)(do_count_digits(unsigned_long)::zero_or_powers_of_10 +
(ulong)(byte)do_count_digits(unsigned_long)::bsr2log10[lVar6] * 8));
uVar13 = (ulong)uVar12;
local_298 = (uint *)0x0;
uStack_290 = 0;
uStack_28a = 0;
uStack_288 = 0;
/* try { // try from 0018c15e to 0018c17a has its CatchHandler @ 0018c52c */
format_decimal<char,unsigned_long>((char *)&local_298,param_2,uVar12);
copy_str_noinline<char,char*,fmt::v10::appender>(&local_298,extraout_RDX,&local_248);
uVar12 = local_29c;
break;
case '\x02':
pbVar2 = (byte *)((long)&local_230 + 7);
lVar6 = -1;
uVar11 = param_2;
uVar13 = 0;
do {
uVar14 = uVar13;
lVar5 = lVar6;
pbVar2 = pbVar2 + 1;
lVar6 = lVar5 + 1;
uVar13 = uVar14 + 1;
bVar15 = 7 < uVar11;
uVar11 = uVar11 >> 3;
} while (bVar15);
if ((((*(byte *)(param_4 + 9) & 0x80) != 0) && (param_2 != 0)) &&
(*(int *)(param_4 + 4) <= (int)uVar13)) {
uVar12 = 0x3000;
if (param_3 == 0) {
uVar12 = 0x30;
}
local_29c = (uVar12 | param_3) + 0x1000000;
}
uVar12 = local_29c;
if ((uint)lVar6 < 500) {
do {
*pbVar2 = (byte)param_2 & 7 | 0x30;
pbVar2 = pbVar2 + -1;
bVar15 = 7 < param_2;
param_2 = param_2 >> 3;
local_238 = uVar13;
} while (bVar15);
}
else {
pbVar2 = (byte *)((long)&local_298 + lVar5 + 1);
local_298 = (uint *)0x0;
uStack_290 = 0;
uStack_28a = 0;
uStack_288 = 0;
uStack_284 = 0;
do {
*pbVar2 = (byte)param_2 & 7 | 0x30;
pbVar2 = pbVar2 + -1;
bVar15 = 7 < param_2;
param_2 = param_2 >> 3;
} while (bVar15);
/* try { // try from 0018c3de to 0018c416 has its CatchHandler @ 0018c52c */
copy_str_noinline<char,char*,fmt::v10::appender>
(&local_298,(long)&local_298 + uVar14 + 1,&local_248);
}
break;
case '\x03':
case '\x04':
if ((*(byte *)(param_4 + 9) & 0x80) != 0) {
uVar4 = (uint)(cVar10 != '\x04') << 0xd | 0x5830;
uVar12 = uVar4 << 8;
if (param_3 == 0) {
uVar12 = uVar4;
}
local_29c = (uVar12 | param_3) + 0x2000000;
}
uVar12 = local_29c;
pcVar7 = (char *)((long)&local_230 + 7);
lVar6 = -1;
uVar11 = param_2;
uVar13 = 0;
do {
uVar14 = uVar13;
lVar5 = lVar6;
pcVar7 = pcVar7 + 1;
lVar6 = lVar5 + 1;
uVar13 = uVar14 + 1;
bVar15 = 0xf < uVar11;
uVar11 = uVar11 >> 4;
} while (bVar15);
if ((uint)lVar6 < 500) {
pcVar8 = "0123456789abcdef";
if (cVar10 == '\x04') {
pcVar8 = "0123456789ABCDEF";
}
do {
*pcVar7 = pcVar8[(uint)param_2 & 0xf];
pcVar7 = pcVar7 + -1;
bVar15 = 0xf < param_2;
param_2 = param_2 >> 4;
local_238 = uVar13;
} while (bVar15);
}
else {
pcVar7 = (char *)((long)&local_298 + lVar5 + 1);
local_298 = (uint *)0x0;
uStack_290 = 0;
uStack_28a = 0;
uStack_288 = uStack_288 & 0xffffff00;
pcVar8 = "0123456789abcdef";
if (cVar10 == '\x04') {
pcVar8 = "0123456789ABCDEF";
}
do {
*pcVar7 = pcVar8[(uint)param_2 & 0xf];
pcVar7 = pcVar7 + -1;
bVar15 = 0xf < param_2;
param_2 = param_2 >> 4;
} while (bVar15);
/* try { // try from 0018c2fc to 0018c30d has its CatchHandler @ 0018c528 */
copy_str_noinline<char,char*,fmt::v10::appender>
(&local_298,(long)&local_298 + uVar14 + 1,&local_248);
}
break;
case '\x05':
case '\x06':
if ((*(byte *)(param_4 + 9) & 0x80) != 0) {
uVar4 = (uint)(cVar10 != '\x06') << 0xd | 0x4230;
uVar12 = uVar4 << 8;
if (param_3 == 0) {
uVar12 = uVar4;
}
local_29c = (uVar12 | param_3) + 0x2000000;
}
uVar12 = local_29c;
pbVar2 = (byte *)((long)&local_230 + 7);
lVar6 = -1;
uVar11 = param_2;
uVar13 = 0;
do {
uVar14 = uVar13;
lVar5 = lVar6;
pbVar2 = pbVar2 + 1;
lVar6 = lVar5 + 1;
uVar13 = uVar14 + 1;
bVar15 = 1 < uVar11;
uVar11 = uVar11 >> 1;
} while (bVar15);
if ((uint)lVar6 < 500) {
do {
*pbVar2 = (byte)param_2 & 1 | 0x30;
pbVar2 = pbVar2 + -1;
bVar15 = 1 < param_2;
param_2 = param_2 >> 1;
local_238 = uVar13;
} while (bVar15);
}
else {
pbVar2 = (byte *)((long)&local_298 + lVar5 + 1);
local_268 = 0;
uStack_260 = 0;
local_278 = 0;
uStack_270 = 0;
uStack_288 = 0;
uStack_284 = 0;
uStack_282 = 0;
uStack_280 = 0;
local_298 = (uint *)0x0;
uStack_290 = 0;
uStack_28a = 0;
local_258 = 0;
do {
*pbVar2 = (byte)param_2 & 1 | 0x30;
pbVar2 = pbVar2 + -1;
bVar15 = 1 < param_2;
param_2 = param_2 >> 1;
} while (bVar15);
/* try { // try from 0018c231 to 0018c242 has its CatchHandler @ 0018c52a */
copy_str_noinline<char,char*,fmt::v10::appender>
(&local_298,(long)&local_298 + uVar14 + 1,&local_248);
}
break;
default:
/* try { // try from 0018c51c to 0018c527 has its CatchHandler @ 0018c52c */
/* WARNING: Subroutine does not return */
throw_format_error("invalid format specifier");
case '\x0f':
local_298 = (uint *)((ulong)CONCAT61(local_298._2_6_,(char)param_2) << 8);
uVar3 = write_padded<(fmt::v10::align::type)1,fmt::v10::appender,char,fmt::v10::detail::write_char<char,fmt::v10::appender>(fmt::v10::appender,char,fmt::v10::format_specs<char>const&)::_lambda(fmt::v10::appender)_1_&>
(param_1,param_4,1,1);
goto LAB_0018c4f0;
}
if (param_5[5] != 0) {
pcVar7 = (char *)*param_5;
pcVar8 = pcVar7 + param_5[1];
iVar1 = 0;
iVar9 = 0;
do {
if (pcVar7 == pcVar8) {
cVar10 = pcVar8[-1];
pcVar7 = pcVar8;
}
else {
cVar10 = *pcVar7;
if ((byte)(cVar10 + 0x81U) < 0x82) goto LAB_0018c4bc;
pcVar7 = pcVar7 + 1;
}
iVar9 = iVar9 + cVar10;
if ((int)uVar13 <= iVar9) goto LAB_0018c4bc;
iVar1 = iVar1 + 1;
} while( true );
}
iVar1 = 0;
LAB_0018c4bc:
iVar1 = (int)uVar13 + iVar1 + (uVar12 >> 0x18);
local_298 = &local_29c;
uStack_290 = SUB86(param_5,0);
uStack_28a = (int2)((ulong)param_5 >> 0x30);
uStack_288 = (uint)&local_248;
uStack_284 = (int2)((ulong)&local_248 >> 0x20);
uStack_282 = (int2)((ulong)&local_248 >> 0x30);
/* try { // try from 0018c4df to 0018c4ef has its CatchHandler @ 0018c52e */
uVar3 = write_padded<(fmt::v10::align::type)2,fmt::v10::appender,char,fmt::v10::detail::write_int<fmt::v10::appender,unsigned_long,char>(fmt::v10::appender,unsigned_long,unsigned_int,fmt::v10::format_specs<char>const&,fmt::v10::detail::digit_grouping<char>const&)::_lambda(fmt::v10::appender)_1_>
(param_1,param_4,iVar1,iVar1);
LAB_0018c4f0:
if (local_240 != local_228) {
operator_delete(local_240,local_230);
}
return uVar3;
}
| |
41,058 | maria_test_if_sort_rep | eloqsql/storage/maria/ma_check.c | my_bool maria_test_if_sort_rep(MARIA_HA *info, ha_rows rows,
ulonglong key_map, my_bool force)
{
MARIA_SHARE *share= info->s;
MARIA_KEYDEF *key=share->keyinfo;
uint i;
/*
maria_repair_by_sort only works if we have at least one key. If we don't
have any keys, we should use the normal repair.
*/
if (! maria_is_any_key_active(key_map))
return FALSE; /* Can't use sort */
for (i=0 ; i < share->base.keys ; i++,key++)
{
if (!force && maria_too_big_key_for_sort(key,rows))
return FALSE;
}
return TRUE;
} | O3 | c | maria_test_if_sort_rep:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdx, %rdx
je 0x8165f
movq (%rdi), %rax
movl 0x3e8(%rax), %r13d
movb $0x1, %bl
testl %r13d, %r13d
je 0x81661
movl %ecx, %r14d
movq %rsi, %r15
movq 0x570(%rax), %r12
testb %r14b, %r14b
jne 0x81651
movq %r12, %rdi
movq %r15, %rsi
callq 0x815b1
testb %al, %al
jne 0x8165f
addq $0x118, %r12 # imm = 0x118
decl %r13d
jne 0x8163d
jmp 0x81661
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| maria_test_if_sort_rep:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
test rdx, rdx
jz short loc_8165F
mov rax, [rdi]
mov r13d, [rax+3E8h]
mov bl, 1
test r13d, r13d
jz short loc_81661
mov r14d, ecx
mov r15, rsi
mov r12, [rax+570h]
loc_8163D:
test r14b, r14b
jnz short loc_81651
mov rdi, r12
mov rsi, r15
call maria_too_big_key_for_sort
test al, al
jnz short loc_8165F
loc_81651:
add r12, 118h
dec r13d
jnz short loc_8163D
jmp short loc_81661
loc_8165F:
xor ebx, ebx
loc_81661:
mov eax, ebx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long maria_test_if_sort_rep(long long a1, long long a2, long long a3, char a4)
{
unsigned int v4; // ebx
int v5; // r13d
long long i; // r12
if ( !a3 )
return 0;
v5 = *(_DWORD *)(*(_QWORD *)a1 + 1000LL);
LOBYTE(v4) = 1;
if ( v5 )
{
for ( i = *(_QWORD *)(*(_QWORD *)a1 + 1392LL); a4 || !maria_too_big_key_for_sort(i, a2); i += 280LL )
{
if ( !--v5 )
return v4;
}
return 0;
}
return v4;
}
| maria_test_if_sort_rep:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
TEST RDX,RDX
JZ 0x0018165f
MOV RAX,qword ptr [RDI]
MOV R13D,dword ptr [RAX + 0x3e8]
MOV BL,0x1
TEST R13D,R13D
JZ 0x00181661
MOV R14D,ECX
MOV R15,RSI
MOV R12,qword ptr [RAX + 0x570]
LAB_0018163d:
TEST R14B,R14B
JNZ 0x00181651
MOV RDI,R12
MOV RSI,R15
CALL 0x001815b1
TEST AL,AL
JNZ 0x0018165f
LAB_00181651:
ADD R12,0x118
DEC R13D
JNZ 0x0018163d
JMP 0x00181661
LAB_0018165f:
XOR EBX,EBX
LAB_00181661:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong maria_test_if_sort_rep(long *param_1,int8 param_2,long param_3,char param_4)
{
char cVar1;
int8 unaff_RBX;
ulong uVar2;
long lVar3;
int iVar4;
if (param_3 == 0) {
LAB_0018165f:
uVar2 = 0;
}
else {
iVar4 = *(int *)(*param_1 + 1000);
uVar2 = CONCAT71((int7)((ulong)unaff_RBX >> 8),1);
if (iVar4 != 0) {
lVar3 = *(long *)(*param_1 + 0x570);
do {
if ((param_4 == '\0') && (cVar1 = maria_too_big_key_for_sort(lVar3,param_2), cVar1 != '\0'))
goto LAB_0018165f;
lVar3 = lVar3 + 0x118;
iVar4 = iVar4 + -1;
} while (iVar4 != 0);
}
}
return uVar2 & 0xffffffff;
}
| |
41,059 | SchemaConverter::SchemaConverter(std::function<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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)> const&, bool, bool) | monkey531[P]llama/common/json-schema-to-grammar.cpp | SchemaConverter(
const std::function<json(const std::string &)> & fetch_json,
bool dotall,
bool compact_spaces)
: _fetch_json(fetch_json), _dotall(dotall)
{
_rules["space"] = compact_spaces ? "\" \"?" : SPACE_RULE;
} | O3 | cpp | SchemaConverter::SchemaConverter(std::function<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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)> const&, bool, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %ebp
movl %edx, %r14d
movq %rdi, %rbx
callq 0xe23e6
movb %r14b, 0x20(%rbx)
leaq 0x28(%rbx), %r14
leaq 0x30(%rbx), %rax
movl $0x0, 0x30(%rbx)
xorl %ecx, %ecx
movq %rcx, 0x38(%rbx)
movq %rax, 0x40(%rbx)
movq %rax, 0x48(%rbx)
movq %rcx, 0x50(%rbx)
leaq 0x88(%rbx), %rax
movq %rax, 0x58(%rbx)
movl $0x1, %eax
movq %rax, 0x60(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x68(%rbx)
movl $0x3f800000, %ecx # imm = 0x3F800000
movl %ecx, 0x78(%rbx)
movups %xmm0, 0x80(%rbx)
leaq 0xc0(%rbx), %rdx
movq %rdx, 0x90(%rbx)
movq %rax, 0x98(%rbx)
movups %xmm0, 0xa0(%rbx)
movl %ecx, 0xb0(%rbx)
movups %xmm0, 0xb8(%rbx)
movups %xmm0, 0xc8(%rbx)
movups %xmm0, 0xd8(%rbx)
movups %xmm0, 0xe8(%rbx)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
testl %ebp, %ebp
je 0xe1d44
leaq 0x3800c(%rip), %rsi # 0x119d3d
leaq 0x38009(%rip), %rdx # 0x119d41
leaq 0x8(%rsp), %rdi
callq 0x25e6a
jmp 0xe1d5f
movq 0x75985(%rip), %rsi # 0x1576d0
movq 0x75986(%rip), %rdx # 0x1576d8
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x25d3a
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x381f1(%rip), %rsi # 0x119f60
leaq 0x381ef(%rip), %rdx # 0x119f65
leaq 0x28(%rsp), %rdi
callq 0x25e6a
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0xe2444
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x1d640
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xe1db1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1dc50
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xe1dc8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1dc50
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
jmp 0xe1dfb
movq %rax, %r15
jmp 0xe1e12
movq %rax, %r15
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xe1dfb
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1dc50
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xe1e12
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1dc50
leaq 0x58(%rbx), %r12
leaq 0x90(%rbx), %r13
leaq 0xc8(%rbx), %rbp
leaq 0xe0(%rbx), %rdi
callq 0x258a4
movq %rbp, %rdi
callq 0x258a4
movq %r13, %rdi
callq 0xa2128
movq %r12, %rdi
callq 0xe2852
movq %r14, %rdi
callq 0xe2934
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0xe1e66
movq %rbx, %rdi
movq %rbx, %rsi
movl $0x3, %edx
callq *%rax
movq %r15, %rdi
callq 0x1e660
movq %rax, %rdi
callq 0x25c6b
| _ZN15SchemaConverterC2ERKSt8functionIFN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEERKSB_EEbb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov ebp, ecx
mov r14d, edx
mov rbx, rdi
call _ZNSt8functionIFN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEERKSA_EEC2ERKSI_; std::function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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&)>::function(std::function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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&)> const&)
mov [rbx+20h], r14b
lea r14, [rbx+28h]
lea rax, [rbx+30h]
mov dword ptr [rbx+30h], 0
xor ecx, ecx
mov [rbx+38h], rcx
mov [rbx+40h], rax
mov [rbx+48h], rax
mov [rbx+50h], rcx
lea rax, [rbx+88h]
mov [rbx+58h], rax
mov eax, 1
mov [rbx+60h], rax
xorps xmm0, xmm0
movups xmmword ptr [rbx+68h], xmm0
mov ecx, 3F800000h
mov [rbx+78h], ecx
movups xmmword ptr [rbx+80h], xmm0
lea rdx, [rbx+0C0h]
mov [rbx+90h], rdx
mov [rbx+98h], rax
movups xmmword ptr [rbx+0A0h], xmm0
mov [rbx+0B0h], ecx
movups xmmword ptr [rbx+0B8h], xmm0
movups xmmword ptr [rbx+0C8h], xmm0
movups xmmword ptr [rbx+0D8h], xmm0
movups xmmword ptr [rbx+0E8h], xmm0
lea r12, [rsp+78h+var_60]
mov [r12-10h], r12
test ebp, ebp
jz short loc_E1D44
lea rsi, asc_119D3D; "\" \"?"
lea rdx, asc_119D3D+4; ""
lea rdi, [rsp+78h+var_70]
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)
jmp short loc_E1D5F
loc_E1D44:
mov rsi, cs:_ZL10SPACE_RULEB5cxx11; SPACE_RULE
mov rdx, cs:qword_1576D8
add rdx, rsi
lea rdi, [rsp+78h+var_70]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
loc_E1D5F:
lea r13, [rsp+78h+var_40]
mov [r13-10h], r13
lea rsi, aSpace+7; "space"
lea rdx, aSpace+0Ch; ""
lea rdi, [rsp+78h+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)
lea rsi, [rsp+78h+var_50]
mov rdi, r14
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixEOS5_; std::map<std::string,std::string>::operator[](std::string&&)
lea rsi, [rsp+78h+var_70]
mov rdi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
mov rdi, [rsp+78h+var_50]; void *
cmp rdi, r13
jz short loc_E1DB1
mov rsi, [rsp+78h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E1DB1:
mov rdi, [rsp+78h+var_70]; void *
cmp rdi, r12
jz short loc_E1DC8
mov rsi, [rsp+78h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E1DC8:
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r15, rax
jmp short loc_E1DFB
mov r15, rax
jmp short loc_E1E12
mov r15, rax
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_E1DFB
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E1DFB:
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_E1E12
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E1E12:
lea r12, [rbx+58h]
lea r13, [rbx+90h]
lea rbp, [rbx+0C8h]
lea rdi, [rbx+0E0h]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, rbp
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, r13
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEED2Ev; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable()
mov rdi, r12
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapESt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEESaISH_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSJ_18_Mod_range_hashingENSJ_20_Default_ranged_hashENSJ_20_Prime_rehash_policyENSJ_17_Hashtable_traitsILb1ELb0ELb1EEEED2Ev; std::_Hashtable<std::string,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::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>>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::~_Hashtable()
mov rdi, r14
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree()
mov rax, [rbx+10h]
test rax, rax
jz short loc_E1E66
mov rdi, rbx
mov rsi, rbx
mov edx, 3
call rax
loc_E1E66:
mov rdi, r15
call __Unwind_Resume
mov rdi, rax
call __clang_call_terminate
| void SchemaConverter::SchemaConverter(long long a1, int a2, char a3, int a4)
{
long long v6; // rax
void *v7[2]; // [rsp+8h] [rbp-70h] BYREF
_QWORD v8[2]; // [rsp+18h] [rbp-60h] BYREF
void *v9[2]; // [rsp+28h] [rbp-50h] BYREF
_QWORD v10[8]; // [rsp+38h] [rbp-40h] BYREF
std::function<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::string const&)>::function();
*(_BYTE *)(a1 + 32) = a3;
*(_DWORD *)(a1 + 48) = 0;
*(_QWORD *)(a1 + 56) = 0LL;
*(_QWORD *)(a1 + 64) = a1 + 48;
*(_QWORD *)(a1 + 72) = a1 + 48;
*(_QWORD *)(a1 + 80) = 0LL;
*(_QWORD *)(a1 + 88) = a1 + 136;
*(_QWORD *)(a1 + 96) = 1LL;
*(_OWORD *)(a1 + 104) = 0LL;
*(_DWORD *)(a1 + 120) = 1065353216;
*(_OWORD *)(a1 + 128) = 0LL;
*(_QWORD *)(a1 + 144) = a1 + 192;
*(_QWORD *)(a1 + 152) = 1LL;
*(_OWORD *)(a1 + 160) = 0LL;
*(_DWORD *)(a1 + 176) = 1065353216;
*(_OWORD *)(a1 + 184) = 0LL;
*(_OWORD *)(a1 + 200) = 0LL;
*(_OWORD *)(a1 + 216) = 0LL;
*(_OWORD *)(a1 + 232) = 0LL;
v7[0] = v8;
if ( a4 )
std::string::_M_construct<char const*>((long long)v7, "\" \"?", (long long)"");
else
std::string::_M_construct<char *>((long long)v7, (_BYTE *)SPACE_RULE[abi:cxx11], SPACE_RULE[abi:cxx11] + qword_1576D8);
v9[0] = v10;
std::string::_M_construct<char const*>((long long)v9, "space", (long long)"");
v6 = std::map<std::string,std::string>::operator[](a1 + 40, v9);
std::string::_M_assign(v6, v7);
if ( v9[0] != v10 )
operator delete(v9[0], v10[0] + 1LL);
if ( v7[0] != v8 )
operator delete(v7[0], v8[0] + 1LL);
}
| SchemaConverter:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV EBP,ECX
MOV R14D,EDX
MOV RBX,RDI
CALL 0x001e23e6
MOV byte ptr [RBX + 0x20],R14B
LEA R14,[RBX + 0x28]
LEA RAX,[RBX + 0x30]
MOV dword ptr [RBX + 0x30],0x0
XOR ECX,ECX
MOV qword ptr [RBX + 0x38],RCX
MOV qword ptr [RBX + 0x40],RAX
MOV qword ptr [RBX + 0x48],RAX
MOV qword ptr [RBX + 0x50],RCX
LEA RAX,[RBX + 0x88]
MOV qword ptr [RBX + 0x58],RAX
MOV EAX,0x1
MOV qword ptr [RBX + 0x60],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x68],XMM0
MOV ECX,0x3f800000
MOV dword ptr [RBX + 0x78],ECX
MOVUPS xmmword ptr [RBX + 0x80],XMM0
LEA RDX,[RBX + 0xc0]
MOV qword ptr [RBX + 0x90],RDX
MOV qword ptr [RBX + 0x98],RAX
MOVUPS xmmword ptr [RBX + 0xa0],XMM0
MOV dword ptr [RBX + 0xb0],ECX
MOVUPS xmmword ptr [RBX + 0xb8],XMM0
MOVUPS xmmword ptr [RBX + 0xc8],XMM0
MOVUPS xmmword ptr [RBX + 0xd8],XMM0
MOVUPS xmmword ptr [RBX + 0xe8],XMM0
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
TEST EBP,EBP
JZ 0x001e1d44
LAB_001e1d2a:
LEA RSI,[0x219d3d]
LEA RDX,[0x219d41]
LEA RDI,[RSP + 0x8]
CALL 0x00125e6a
JMP 0x001e1d5f
LAB_001e1d44:
MOV RSI,qword ptr [0x002576d0]
MOV RDX,qword ptr [0x002576d8]
ADD RDX,RSI
LEA RDI,[RSP + 0x8]
CALL 0x00125d3a
LAB_001e1d5f:
LEA R13,[RSP + 0x38]
MOV qword ptr [R13 + -0x10],R13
LAB_001e1d68:
LEA RSI,[0x219f60]
LEA RDX,[0x219f65]
LEA RDI,[RSP + 0x28]
CALL 0x00125e6a
LAB_001e1d80:
LEA RSI,[RSP + 0x28]
MOV RDI,R14
CALL 0x001e2444
LEA RSI,[RSP + 0x8]
MOV RDI,RAX
CALL 0x0011d640
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R13
JZ 0x001e1db1
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011dc50
LAB_001e1db1:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x001e1dc8
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011dc50
LAB_001e1dc8:
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* SchemaConverter::SchemaConverter(std::function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, 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::__cxx11::string const&)> const&, bool, bool) */
void __thiscall
SchemaConverter::SchemaConverter(SchemaConverter *this,function *param_1,bool param_2,bool param_3)
{
string *psVar1;
int7 in_register_00000009;
long *local_70 [2];
long local_60 [2];
long *local_50 [2];
long local_40 [2];
std::
function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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::__cxx11::string_const&)>
::function((function<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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::__cxx11::string_const&)>
*)this,param_1);
this[0x20] = (SchemaConverter)param_2;
*(int4 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(SchemaConverter **)(this + 0x40) = this + 0x30;
*(SchemaConverter **)(this + 0x48) = this + 0x30;
*(int8 *)(this + 0x50) = 0;
*(SchemaConverter **)(this + 0x58) = this + 0x88;
*(int8 *)(this + 0x60) = 1;
*(int8 *)(this + 0x68) = 0;
*(int8 *)(this + 0x70) = 0;
*(int4 *)(this + 0x78) = 0x3f800000;
*(int8 *)(this + 0x80) = 0;
*(int8 *)(this + 0x88) = 0;
*(SchemaConverter **)(this + 0x90) = this + 0xc0;
*(int8 *)(this + 0x98) = 1;
*(int8 *)(this + 0xa0) = 0;
*(int8 *)(this + 0xa8) = 0;
*(int4 *)(this + 0xb0) = 0x3f800000;
*(int8 *)(this + 0xb8) = 0;
*(int8 *)(this + 0xc0) = 0;
*(int8 *)(this + 200) = 0;
*(int8 *)(this + 0xd0) = 0;
*(int8 *)(this + 0xd8) = 0;
*(int8 *)(this + 0xe0) = 0;
*(int8 *)(this + 0xe8) = 0;
*(int8 *)(this + 0xf0) = 0;
local_70[0] = local_60;
if ((int)CONCAT71(in_register_00000009,param_3) == 0) {
std::__cxx11::string::_M_construct<char*>
(local_70,SPACE_RULE_abi_cxx11_,DAT_002576d8 + SPACE_RULE_abi_cxx11_);
}
else {
/* try { // try from 001e1d2a to 001e1d5e has its CatchHandler @ 001e1ddc */
std::__cxx11::string::_M_construct<char_const*>(local_70,&DAT_00219d3d,&DAT_00219d41);
}
/* try { // try from 001e1d68 to 001e1d7f has its CatchHandler @ 001e1dd7 */
local_50[0] = local_40;
std::__cxx11::string::_M_construct<char_const*>(local_50,"space","");
/* try { // try from 001e1d80 to 001e1d99 has its CatchHandler @ 001e1de1 */
psVar1 = (string *)
std::
map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::operator[]((map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
*)(this + 0x28),(string *)local_50);
std::__cxx11::string::_M_assign(psVar1);
if (local_50[0] != local_40) {
operator_delete(local_50[0],local_40[0] + 1);
}
if (local_70[0] != local_60) {
operator_delete(local_70[0],local_60[0] + 1);
}
return;
}
| |
41,060 | plan | eloqsql/libmariadb/unittest/mytap/tap.c | void
plan(int const count)
{
char *config= getenv("MYTAP_CONFIG");
size_t i;
if (config)
skip_big_tests= strcmp(config, "big");
setvbuf(tapout, 0, _IONBF, 0); /* provide output at once */
/*
Install signal handler
*/
for (i= 0; i < sizeof(install_signal)/sizeof(*install_signal); ++i)
signal(install_signal[i].signo, install_signal[i].handler);
g_test.plan= count;
switch (count)
{
case NO_PLAN:
break;
default:
if (count > 0)
fprintf(tapout, "1..%d\n", count);
break;
}
} | O0 | c | plan:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
leaq 0x36413(%rip), %rdi # 0x4b795
callq 0x13540
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x153a8
movq -0x10(%rbp), %rdi
leaq 0x36405(%rip), %rsi # 0x4b7a2
callq 0x135f0
movl %eax, 0x48c98(%rip) # 0x5e040
movq 0x48c09(%rip), %rax # 0x5dfb8
movq (%rax), %rdi
xorl %eax, %eax
movl %eax, %ecx
movl $0x2, %edx
movq %rcx, %rsi
callq 0x13030
movq $0x0, -0x18(%rbp)
cmpq $0xa, -0x18(%rbp)
jae 0x1540f
movq -0x18(%rbp), %rcx
leaq 0x48c73(%rip), %rax # 0x5e050
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %edi
movq -0x18(%rbp), %rcx
leaq 0x48c5f(%rip), %rax # 0x5e050
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rsi
callq 0x13510
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x153cb
movl -0x4(%rbp), %eax
movl %eax, 0x4af3c(%rip) # 0x60354
movl -0x4(%rbp), %eax
testl %eax, %eax
jne 0x15423
jmp 0x15421
jmp 0x15446
cmpl $0x0, -0x4(%rbp)
jle 0x15444
movq 0x48b88(%rip), %rax # 0x5dfb8
movq (%rax), %rdi
movl -0x4(%rbp), %edx
leaq 0x36369(%rip), %rsi # 0x4b7a6
movb $0x0, %al
callq 0x13640
jmp 0x15446
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
| plan:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
lea rdi, aMytapConfig; "MYTAP_CONFIG"
call _getenv
mov [rbp+var_10], rax
cmp [rbp+var_10], 0
jz short loc_153A8
mov rdi, [rbp+var_10]
lea rsi, aBig; "big"
call _strcmp
mov cs:skip_big_tests, eax
loc_153A8:
mov rax, cs:stdout_ptr
mov rdi, [rax]
xor eax, eax
mov ecx, eax
mov edx, 2
mov rsi, rcx
call _setvbuf
mov [rbp+var_18], 0
loc_153CB:
cmp [rbp+var_18], 0Ah
jnb short loc_1540F
mov rcx, [rbp+var_18]
lea rax, install_signal
shl rcx, 4
add rax, rcx
mov edi, [rax]
mov rcx, [rbp+var_18]
lea rax, install_signal
shl rcx, 4
add rax, rcx
mov rsi, [rax+8]
call _signal
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
jmp short loc_153CB
loc_1540F:
mov eax, [rbp+var_4]
mov cs:g_test, eax
mov eax, [rbp+var_4]
test eax, eax
jnz short loc_15423
jmp short $+2
loc_15421:
jmp short loc_15446
loc_15423:
cmp [rbp+var_4], 0
jle short loc_15444
mov rax, cs:stdout_ptr
mov rdi, [rax]
mov edx, [rbp+var_4]
lea rsi, a1D; "1..%d\n"
mov al, 0
call _fprintf
loc_15444:
jmp short $+2
loc_15446:
add rsp, 20h
pop rbp
retn
| long long plan(int a1)
{
long long result; // rax
unsigned long long i; // [rsp+8h] [rbp-18h]
long long v3; // [rsp+10h] [rbp-10h]
v3 = getenv("MYTAP_CONFIG");
if ( v3 )
skip_big_tests = strcmp(v3, "big");
setvbuf(stdout, 0LL, 2LL);
for ( i = 0LL; i < 0xA; ++i )
signal(*((unsigned int *)&install_signal + 4 * i), *((_QWORD *)&install_signal + 2 * i + 1));
g_test = a1;
result = (unsigned int)a1;
if ( a1 > 0 )
return fprintf(stdout, "1..%d\n", a1);
return result;
}
| plan:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
LEA RDI,[0x14b795]
CALL 0x00113540
MOV qword ptr [RBP + -0x10],RAX
CMP qword ptr [RBP + -0x10],0x0
JZ 0x001153a8
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x14b7a2]
CALL 0x001135f0
MOV dword ptr [0x0015e040],EAX
LAB_001153a8:
MOV RAX,qword ptr [0x0015dfb8]
MOV RDI,qword ptr [RAX]
XOR EAX,EAX
MOV ECX,EAX
MOV EDX,0x2
MOV RSI,RCX
CALL 0x00113030
MOV qword ptr [RBP + -0x18],0x0
LAB_001153cb:
CMP qword ptr [RBP + -0x18],0xa
JNC 0x0011540f
MOV RCX,qword ptr [RBP + -0x18]
LEA RAX,[0x15e050]
SHL RCX,0x4
ADD RAX,RCX
MOV EDI,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
LEA RAX,[0x15e050]
SHL RCX,0x4
ADD RAX,RCX
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x00113510
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001153cb
LAB_0011540f:
MOV EAX,dword ptr [RBP + -0x4]
MOV dword ptr [0x00160354],EAX
MOV EAX,dword ptr [RBP + -0x4]
TEST EAX,EAX
JNZ 0x00115423
JMP 0x00115421
LAB_00115421:
JMP 0x00115446
LAB_00115423:
CMP dword ptr [RBP + -0x4],0x0
JLE 0x00115444
MOV RAX,qword ptr [0x0015dfb8]
MOV RDI,qword ptr [RAX]
MOV EDX,dword ptr [RBP + -0x4]
LEA RSI,[0x14b7a6]
MOV AL,0x0
CALL 0x00113640
LAB_00115444:
JMP 0x00115446
LAB_00115446:
ADD RSP,0x20
POP RBP
RET
|
void plan(uint param_1)
{
char *__s1;
ulong local_20;
__s1 = getenv("MYTAP_CONFIG");
if (__s1 != (char *)0x0) {
skip_big_tests = strcmp(__s1,"big");
}
setvbuf(*(FILE **)PTR_stdout_0015dfb8,(char *)0x0,2,0);
for (local_20 = 0; local_20 < 10; local_20 = local_20 + 1) {
signal(*(int *)(install_signal + local_20 * 0x10),
*(__sighandler_t *)(install_signal + local_20 * 0x10 + 8));
}
g_test = param_1;
if ((param_1 != 0) && (0 < (int)param_1)) {
fprintf(*(FILE **)PTR_stdout_0015dfb8,"1..%d\n",(ulong)param_1);
}
return;
}
| |
41,061 | ibuf_set_free_bits_func(buf_block_t*, unsigned long) | eloqsql/storage/innobase/ibuf/ibuf0ibuf.cc | void
ibuf_set_free_bits_func(
/*====================*/
buf_block_t* block, /*!< in: index page of a non-clustered index;
free bit is reset if page level is 0 */
#ifdef UNIV_IBUF_DEBUG
ulint max_val,/*!< in: ULINT_UNDEFINED or a maximum
value which the bits must have before
setting; this is for debugging */
#endif /* UNIV_IBUF_DEBUG */
ulint val) /*!< in: value to set: < 4 */
{
if (!page_is_leaf(block->page.frame))
return;
mtr_t mtr;
mtr.start();
const page_id_t id(block->page.id());
const fil_space_t *space= mtr.set_named_space_id(id.space());
if (buf_block_t *bitmap_page=
ibuf_bitmap_get_map_page(id, block->zip_size(), &mtr))
{
if (space->purpose != FIL_TYPE_TABLESPACE)
mtr.set_log_mode(MTR_LOG_NO_REDO);
#ifdef UNIV_IBUF_DEBUG
if (max_val != ULINT_UNDEFINED)
{
ulint old_val= ibuf_bitmap_page_get_bits(bitmap_page, id,
IBUF_BITMAP_FREE, &mtr);
ut_a(old_val <= max_val);
}
ut_a(val <= ibuf_index_page_calc_free(block));
#endif /* UNIV_IBUF_DEBUG */
ibuf_bitmap_page_set_bits<IBUF_BITMAP_FREE>
(bitmap_page, id, block->physical_size(), val, &mtr);
}
mtr.commit();
} | O0 | cpp | ibuf_set_free_bits_func(buf_block_t*, unsigned long):
pushq %rbp
movq %rsp, %rbp
subq $0x530, %rsp # imm = 0x530
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x4a0(%rbp)
movq %rsi, -0x4a8(%rbp)
movq -0x4a0(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1013d50
testb $0x1, %al
jne 0x1008c0f
jmp 0x1008db5
leaq -0x498(%rbp), %rdi
movq %rdi, -0x4e8(%rbp)
callq 0xfcd4b0
movq -0x4e8(%rbp), %rdi
callq 0x1054e40
jmp 0x1008c30
movq -0x4a0(%rbp), %rdi
callq 0xfcd550
movq %rax, -0x4f0(%rbp)
jmp 0x1008c45
movq -0x4f0(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x4c0(%rbp)
leaq -0x4c0(%rbp), %rdi
callq 0xff8240
movl %eax, -0x4f4(%rbp)
jmp 0x1008c6a
movl -0x4f4(%rbp), %eax
movl %eax, %eax
movl %eax, %esi
leaq -0x498(%rbp), %rdi
callq 0x1013d70
movq %rax, -0x500(%rbp)
jmp 0x1008c89
movq -0x500(%rbp), %rax
movq %rax, -0x4c8(%rbp)
movq -0x4c0(%rbp), %rax
movq %rax, -0x4d8(%rbp)
movq -0x4a0(%rbp), %rdi
callq 0x1013de0
movq %rax, -0x508(%rbp)
jmp 0x1008cba
movq -0x508(%rbp), %rsi
movq -0x4d8(%rbp), %rdi
leaq -0x498(%rbp), %rdx
callq 0x1008e10
movq %rax, -0x510(%rbp)
jmp 0x1008cdd
movq -0x510(%rbp), %rax
movq %rax, -0x4d0(%rbp)
cmpq $0x0, -0x4d0(%rbp)
je 0x1008d9b
movq -0x4c8(%rbp), %rax
cmpl $0x2, 0x5c(%rax)
je 0x1008d3e
leaq -0x498(%rbp), %rdi
movl $0x3, %esi
callq 0x1013e00
jmp 0x1008d19
jmp 0x1008d3e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x4b0(%rbp)
movl %eax, -0x4b4(%rbp)
leaq -0x498(%rbp), %rdi
callq 0xfcd580
jmp 0x1008dd0
movq -0x4d0(%rbp), %rax
movq %rax, -0x520(%rbp)
movq -0x4c0(%rbp), %rax
movq %rax, -0x4e0(%rbp)
movq -0x4a0(%rbp), %rdi
callq 0x1013e50
movq %rax, -0x518(%rbp)
jmp 0x1008d6f
movq -0x518(%rbp), %rdx
movq -0x520(%rbp), %rdi
movq -0x4a8(%rbp), %rcx
movq -0x4e0(%rbp), %rsi
leaq -0x498(%rbp), %r8
callq 0x1008e80
jmp 0x1008d99
jmp 0x1008d9b
leaq -0x498(%rbp), %rdi
callq 0x1054ee0
jmp 0x1008da9
leaq -0x498(%rbp), %rdi
callq 0xfcd580
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x1008dfc
addq $0x530, %rsp # imm = 0x530
popq %rbp
retq
movq -0x4b0(%rbp), %rax
movq %rax, -0x528(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x1008dfc
movq -0x528(%rbp), %rdi
callq 0x7589b0
callq 0x758480
nopw %cs:(%rax,%rax)
| _Z23ibuf_set_free_bits_funcP11buf_block_tm:
push rbp
mov rbp, rsp
sub rsp, 530h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_4A0], rdi
mov [rbp+var_4A8], rsi
mov rax, [rbp+var_4A0]
mov rdi, [rax+30h]; unsigned __int8 *
call _Z12page_is_leafPKh; page_is_leaf(uchar const*)
test al, 1
jnz short loc_1008C0F
jmp loc_1008DB5
loc_1008C0F:
lea rdi, [rbp+var_498]; this
mov [rbp+var_4E8], rdi
call _ZN5mtr_tC2Ev; mtr_t::mtr_t(void)
mov rdi, [rbp+var_4E8]; this
call _ZN5mtr_t5startEv; mtr_t::start(void)
jmp short $+2
loc_1008C30:
mov rdi, [rbp+var_4A0]; this
call _ZNK10buf_page_t2idEv; buf_page_t::id(void)
mov [rbp+var_4F4+4], rax
jmp short $+2
loc_1008C45:
mov rax, [rbp+var_4F4+4]
mov rax, [rax]
mov [rbp+var_4C0], rax
lea rdi, [rbp+var_4C0]; this
call _ZNK9page_id_t5spaceEv; page_id_t::space(void)
mov dword ptr [rbp+var_4F4], eax
jmp short $+2
loc_1008C6A:
mov eax, dword ptr [rbp+var_4F4]
mov eax, eax
mov esi, eax; unsigned __int64
lea rdi, [rbp+var_498]; this
call _ZN5mtr_t18set_named_space_idEm; mtr_t::set_named_space_id(ulong)
mov [rbp+var_500], rax
jmp short $+2
loc_1008C89:
mov rax, [rbp+var_500]
mov [rbp+var_4C8], rax
mov rax, [rbp+var_4C0]
mov [rbp+var_4D8], rax
mov rdi, [rbp+var_4A0]; this
call _ZNK11buf_block_t8zip_sizeEv; buf_block_t::zip_size(void)
mov [rbp+var_508], rax
jmp short $+2
loc_1008CBA:
mov rsi, [rbp+var_508]
mov rdi, [rbp+var_4D8]
lea rdx, [rbp+var_498]
call _ZL24ibuf_bitmap_get_map_page9page_id_tmP5mtr_t; ibuf_bitmap_get_map_page(page_id_t,ulong,mtr_t *)
mov [rbp+var_510], rax
jmp short $+2
loc_1008CDD:
mov rax, [rbp+var_510]
mov [rbp+var_4D0], rax
cmp [rbp+var_4D0], 0
jz loc_1008D9B
mov rax, [rbp+var_4C8]
cmp dword ptr [rax+5Ch], 2
jz short loc_1008D3E
lea rdi, [rbp+var_498]
mov esi, 3
call _ZN5mtr_t12set_log_modeE9mtr_log_t; mtr_t::set_log_mode(mtr_log_t)
jmp short $+2
loc_1008D19:
jmp short loc_1008D3E
mov rcx, rax
mov eax, edx
mov [rbp+var_4B0], rcx
mov [rbp+var_4B4], eax
lea rdi, [rbp+var_498]; this
call _ZN5mtr_tD2Ev; mtr_t::~mtr_t()
jmp loc_1008DD0
loc_1008D3E:
mov rax, [rbp+var_4D0]
mov [rbp+var_520], rax
mov rax, [rbp+var_4C0]
mov [rbp+var_4E0], rax
mov rdi, [rbp+var_4A0]; this
call _ZNK11buf_block_t13physical_sizeEv; buf_block_t::physical_size(void)
mov [rbp+var_518], rax
jmp short $+2
loc_1008D6F:
mov rdx, [rbp+var_518]
mov rdi, [rbp+var_520]
mov rcx, [rbp+var_4A8]
mov rsi, [rbp+var_4E0]
lea r8, [rbp+var_498]
call _ZL25ibuf_bitmap_page_set_bitsILm0EEvP11buf_block_t9page_id_tmmP5mtr_t; ibuf_bitmap_page_set_bits<0ul>(buf_block_t *,page_id_t,ulong,ulong,mtr_t *)
jmp short $+2
loc_1008D99:
jmp short $+2
loc_1008D9B:
lea rdi, [rbp+var_498]; this
call _ZN5mtr_t6commitEv; mtr_t::commit(void)
jmp short $+2
loc_1008DA9:
lea rdi, [rbp+var_498]; this
call _ZN5mtr_tD2Ev; mtr_t::~mtr_t()
loc_1008DB5:
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_1008DFC
add rsp, 530h
pop rbp
retn
loc_1008DD0:
mov rax, [rbp+var_4B0]
mov [rbp+var_528], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_1008DFC
mov rdi, [rbp+var_528]
call __Unwind_Resume
loc_1008DFC:
call ___stack_chk_fail
| unsigned long long ibuf_set_free_bits_func(const unsigned __int8 **a1, long long a2)
{
long long v3; // [rsp+18h] [rbp-518h]
long long v4; // [rsp+28h] [rbp-508h]
unsigned int v5; // [rsp+3Ch] [rbp-4F4h]
long long v6; // [rsp+50h] [rbp-4E0h]
long long v7; // [rsp+58h] [rbp-4D8h]
long long map_page; // [rsp+60h] [rbp-4D0h]
long long v9; // [rsp+68h] [rbp-4C8h]
long long v10; // [rsp+70h] [rbp-4C0h] BYREF
long long v11; // [rsp+88h] [rbp-4A8h]
buf_page_t *v12; // [rsp+90h] [rbp-4A0h]
_BYTE v13[1168]; // [rsp+98h] [rbp-498h] BYREF
unsigned long long v14; // [rsp+528h] [rbp-8h]
v14 = __readfsqword(0x28u);
v12 = (buf_page_t *)a1;
v11 = a2;
if ( (page_is_leaf(a1[6]) & 1) != 0 )
{
mtr_t::mtr_t((mtr_t *)v13);
mtr_t::start((mtr_t *)v13);
v10 = *(_QWORD *)buf_page_t::id(v12);
v5 = page_id_t::space((page_id_t *)&v10);
v9 = mtr_t::set_named_space_id((mtr_t *)v13, v5);
v7 = v10;
v4 = buf_block_t::zip_size(v12);
map_page = ibuf_bitmap_get_map_page(v7, v4, v13);
if ( map_page )
{
if ( *(_DWORD *)(v9 + 92) != 2 )
mtr_t::set_log_mode(v13, 3LL);
v6 = v10;
v3 = buf_block_t::physical_size(v12);
ibuf_bitmap_page_set_bits<0ul>(map_page, v6, v3, v11, v13);
}
mtr_t::commit((mtr_t *)v13);
mtr_t::~mtr_t((mtr_t *)v13);
}
return __readfsqword(0x28u);
}
| copy_events_transactions:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,0x140
CALL 0x00859350
ADD RSP,0x10
POP RBP
RET
|
/* copy_events_transactions(PFS_events_transactions*, PFS_events_transactions const*) */
void copy_events_transactions(PFS_events_transactions *param_1,PFS_events_transactions *param_2)
{
memcpy(param_1,param_2,0x140);
return;
}
| |
41,062 | OpenSubdiv::v3_6_0::Far::PatchTable::PatchTable(int) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp | PatchTable::PatchTable(int maxvalence) :
_maxValence(maxvalence),
_localPointStencils(),
_localPointVaryingStencils(),
_varyingDesc(Far::PatchDescriptor::QUADS),
_isUniformLinear(false),
_vertexPrecisionIsDouble(false),
_varyingPrecisionIsDouble(false),
_faceVaryingPrecisionIsDouble(false) {
} | O0 | cpp | OpenSubdiv::v3_6_0::Far::PatchTable::PatchTable(int):
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x28(%rbp)
movl -0xc(%rbp), %eax
movl %eax, (%rdi)
addq $0x8, %rdi
movq %rdi, -0x50(%rbp)
callq 0xd36c0
movq -0x28(%rbp), %rdi
addq $0x20, %rdi
movq %rdi, -0x48(%rbp)
callq 0xd2780
movq -0x28(%rbp), %rdi
addq $0x38, %rdi
movq %rdi, -0x40(%rbp)
callq 0xd2cd0
movq -0x28(%rbp), %rdi
addq $0x50, %rdi
movq %rdi, -0x38(%rbp)
callq 0xc41c0
movq -0x28(%rbp), %rdi
addq $0x68, %rdi
movq %rdi, -0x30(%rbp)
callq 0xd2780
movq -0x28(%rbp), %rdi
subq $-0x80, %rdi
callq 0xc5d30
jmp 0x13e5ac
movq -0x28(%rbp), %rdi
addq $0x88, %rdi
callq 0xc5d30
jmp 0x13e5be
movq -0x28(%rbp), %rdi
addq $0x90, %rdi
movl $0x3, %esi
callq 0xd21a0
jmp 0x13e5d5
movq -0x28(%rbp), %rdi
addq $0x98, %rdi
callq 0xd2780
movq -0x28(%rbp), %rdi
addq $0xb0, %rdi
callq 0xd06d0
movq -0x28(%rbp), %rdi
addq $0xc8, %rdi
callq 0xd6bf0
movq -0x28(%rbp), %rdi
addq $0xe0, %rdi
callq 0xd2780
movq -0x28(%rbp), %rdi
addq $0xf8, %rdi
callq 0xcd580
movq -0x28(%rbp), %rax
movb 0x110(%rax), %cl
andb $-0x2, %cl
orb $0x0, %cl
movb %cl, 0x110(%rax)
movb 0x110(%rax), %cl
andb $-0x3, %cl
orb $0x0, %cl
movb %cl, 0x110(%rax)
movb 0x110(%rax), %cl
andb $-0x5, %cl
orb $0x0, %cl
movb %cl, 0x110(%rax)
movb 0x110(%rax), %cl
andb $-0x9, %cl
orb $0x0, %cl
movb %cl, 0x110(%rax)
addq $0x50, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
callq 0xca800
movq -0x38(%rbp), %rdi
callq 0xd7aa0
movq -0x40(%rbp), %rdi
callq 0xceb80
movq -0x48(%rbp), %rdi
callq 0xca800
movq -0x50(%rbp), %rdi
callq 0xd5370
movq -0x18(%rbp), %rdi
callq 0xd58b0
nopl (%rax)
| _ZN10OpenSubdiv6v3_6_03Far10PatchTableC2Ei:
push rbp; Alternative name is 'OpenSubdiv::v3_6_0::Far::PatchTable::PatchTable(int)'
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov rdi, [rbp+var_8]
mov [rbp+var_28], rdi
mov eax, [rbp+var_C]
mov [rdi], eax
add rdi, 8
mov [rbp+var_50], rdi
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Far10PatchTable10PatchArrayESaIS4_EEC2Ev; std::vector<OpenSubdiv::v3_6_0::Far::PatchTable::PatchArray>::vector(void)
mov rdi, [rbp+var_28]
add rdi, 20h ; ' '
mov [rbp+var_48], rdi
call __ZNSt6vectorIiSaIiEEC2Ev; std::vector<int>::vector(void)
mov rdi, [rbp+var_28]
add rdi, 38h ; '8'
mov [rbp+var_40], rdi
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Far10PatchParamESaIS3_EEC2Ev; std::vector<OpenSubdiv::v3_6_0::Far::PatchParam>::vector(void)
mov rdi, [rbp+var_28]
add rdi, 50h ; 'P'
mov [rbp+var_38], rdi
call __ZNSt6vectorIjSaIjEEC2Ev; std::vector<uint>::vector(void)
mov rdi, [rbp+var_28]
add rdi, 68h ; 'h'
mov [rbp+var_30], rdi
call __ZNSt6vectorIiSaIiEEC2Ev; std::vector<int>::vector(void)
mov rdi, [rbp+var_28]
sub rdi, 0FFFFFFFFFFFFFF80h; this
call __ZN10OpenSubdiv6v3_6_03Far10PatchTable15StencilTablePtrC2Ev; OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr::StencilTablePtr(void)
jmp short $+2
loc_13E5AC:
mov rdi, [rbp+var_28]
add rdi, 88h; this
call __ZN10OpenSubdiv6v3_6_03Far10PatchTable15StencilTablePtrC2Ev; OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr::StencilTablePtr(void)
jmp short $+2
loc_13E5BE:
mov rdi, [rbp+var_28]
add rdi, 90h; this
mov esi, 3; int
call __ZN10OpenSubdiv6v3_6_03Far15PatchDescriptorC2Ei; OpenSubdiv::v3_6_0::Far::PatchDescriptor::PatchDescriptor(int)
jmp short $+2
loc_13E5D5:
mov rdi, [rbp+var_28]
add rdi, 98h
call __ZNSt6vectorIiSaIiEEC2Ev; std::vector<int>::vector(void)
mov rdi, [rbp+var_28]
add rdi, 0B0h
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Far10PatchTable16FVarPatchChannelESaIS4_EEC2Ev; std::vector<OpenSubdiv::v3_6_0::Far::PatchTable::FVarPatchChannel>::vector(void)
mov rdi, [rbp+var_28]
add rdi, 0C8h
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Far10PatchTable15StencilTablePtrESaIS4_EEC2Ev; std::vector<OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr>::vector(void)
mov rdi, [rbp+var_28]
add rdi, 0E0h
call __ZNSt6vectorIiSaIiEEC2Ev; std::vector<int>::vector(void)
mov rdi, [rbp+var_28]
add rdi, 0F8h
call __ZNSt6vectorIfSaIfEEC2Ev; std::vector<float>::vector(void)
mov rax, [rbp+var_28]
mov cl, [rax+110h]
and cl, 0FEh
or cl, 0
mov [rax+110h], cl
mov cl, [rax+110h]
and cl, 0FDh
or cl, 0
mov [rax+110h], cl
mov cl, [rax+110h]
and cl, 0FBh
or cl, 0
mov [rax+110h], cl
mov cl, [rax+110h]
and cl, 0F7h
or cl, 0
mov [rax+110h], cl
add rsp, 50h
pop rbp
retn
mov rdi, [rbp+var_30]
mov rcx, rax
mov eax, edx
mov [rbp+var_18], rcx
mov [rbp+var_1C], eax
call __ZNSt6vectorIiSaIiEED2Ev; std::vector<int>::~vector()
mov rdi, [rbp+var_38]
call __ZNSt6vectorIjSaIjEED2Ev; std::vector<uint>::~vector()
mov rdi, [rbp+var_40]
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Far10PatchParamESaIS3_EED2Ev; std::vector<OpenSubdiv::v3_6_0::Far::PatchParam>::~vector()
mov rdi, [rbp+var_48]
call __ZNSt6vectorIiSaIiEED2Ev; std::vector<int>::~vector()
mov rdi, [rbp+var_50]
call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Far10PatchTable10PatchArrayESaIS4_EED2Ev; std::vector<OpenSubdiv::v3_6_0::Far::PatchTable::PatchArray>::~vector()
mov rdi, [rbp+var_18]
call __Unwind_Resume
| OpenSubdiv::v3_6_0::Far::PatchTable * OpenSubdiv::v3_6_0::Far::PatchTable::PatchTable(
OpenSubdiv::v3_6_0::Far::PatchTable *this,
int a2)
{
OpenSubdiv::v3_6_0::Far::PatchTable *result; // rax
*(_DWORD *)this = a2;
std::vector<OpenSubdiv::v3_6_0::Far::PatchTable::PatchArray>::vector((char *)this + 8);
std::vector<int>::vector((char *)this + 32);
std::vector<OpenSubdiv::v3_6_0::Far::PatchParam>::vector();
std::vector<unsigned int>::vector();
std::vector<int>::vector((char *)this + 104);
OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr::StencilTablePtr((OpenSubdiv::v3_6_0::Far::PatchTable *)((char *)this + 128));
OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr::StencilTablePtr((OpenSubdiv::v3_6_0::Far::PatchTable *)((char *)this + 136));
OpenSubdiv::v3_6_0::Far::PatchDescriptor::PatchDescriptor(
(OpenSubdiv::v3_6_0::Far::PatchTable *)((char *)this + 144),
3);
std::vector<int>::vector((char *)this + 152);
std::vector<OpenSubdiv::v3_6_0::Far::PatchTable::FVarPatchChannel>::vector((char *)this + 176);
std::vector<OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr>::vector((char *)this + 200);
std::vector<int>::vector((char *)this + 224);
std::vector<float>::vector((char *)this + 248);
result = this;
*((_BYTE *)this + 272) &= ~1u;
*((_BYTE *)this + 272) &= ~2u;
*((_BYTE *)this + 272) &= ~4u;
*((_BYTE *)this + 272) &= ~8u;
return result;
}
| |||
41,063 | OpenSubdiv::v3_6_0::Far::PatchTable::PatchTable(int) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp | PatchTable::PatchTable(int maxvalence) :
_maxValence(maxvalence),
_localPointStencils(),
_localPointVaryingStencils(),
_varyingDesc(Far::PatchDescriptor::QUADS),
_isUniformLinear(false),
_vertexPrecisionIsDouble(false),
_varyingPrecisionIsDouble(false),
_faceVaryingPrecisionIsDouble(false) {
} | O1 | cpp | OpenSubdiv::v3_6_0::Far::PatchTable::PatchTable(int):
pushq %rbx
movq %rdi, %rbx
movl %esi, (%rdi)
addq $0x8, %rdi
movl $0x88, %edx
xorl %esi, %esi
callq 0x391b0
movl $0x3, 0x90(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x98(%rbx)
movups %xmm0, 0xa8(%rbx)
movups %xmm0, 0xb8(%rbx)
movups %xmm0, 0xc8(%rbx)
movups %xmm0, 0xd8(%rbx)
movups %xmm0, 0xe8(%rbx)
movups %xmm0, 0xf8(%rbx)
movq $0x0, 0x108(%rbx)
andb $-0x10, 0x110(%rbx)
popq %rbx
retq
| _ZN10OpenSubdiv6v3_6_03Far10PatchTableC2Ei:
push rbx; Alternative name is 'OpenSubdiv::v3_6_0::Far::PatchTable::PatchTable(int)'
mov rbx, rdi
mov [rdi], esi
add rdi, 8
mov edx, 88h
xor esi, esi
call _memset
mov dword ptr [rbx+90h], 3
xorps xmm0, xmm0
movups xmmword ptr [rbx+98h], xmm0
movups xmmword ptr [rbx+0A8h], xmm0
movups xmmword ptr [rbx+0B8h], xmm0
movups xmmword ptr [rbx+0C8h], xmm0
movups xmmword ptr [rbx+0D8h], xmm0
movups xmmword ptr [rbx+0E8h], xmm0
movups xmmword ptr [rbx+0F8h], xmm0
mov qword ptr [rbx+108h], 0
and byte ptr [rbx+110h], 0F0h
pop rbx
retn
| long long OpenSubdiv::v3_6_0::Far::PatchTable::PatchTable(OpenSubdiv::v3_6_0::Far::PatchTable *this, int a2)
{
long long result; // rax
*(_DWORD *)this = a2;
result = memset((char *)this + 8, 0LL, 136LL);
*((_DWORD *)this + 36) = 3;
*(_OWORD *)((char *)this + 152) = 0LL;
*(_OWORD *)((char *)this + 168) = 0LL;
*(_OWORD *)((char *)this + 184) = 0LL;
*(_OWORD *)((char *)this + 200) = 0LL;
*(_OWORD *)((char *)this + 216) = 0LL;
*(_OWORD *)((char *)this + 232) = 0LL;
*(_OWORD *)((char *)this + 248) = 0LL;
*((_QWORD *)this + 33) = 0LL;
*((_BYTE *)this + 272) &= 0xF0u;
return result;
}
| PatchTable:
PUSH RBX
MOV RBX,RDI
MOV dword ptr [RDI],ESI
ADD RDI,0x8
MOV EDX,0x88
XOR ESI,ESI
CALL 0x001391b0
MOV dword ptr [RBX + 0x90],0x3
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x98],XMM0
MOVUPS xmmword ptr [RBX + 0xa8],XMM0
MOVUPS xmmword ptr [RBX + 0xb8],XMM0
MOVUPS xmmword ptr [RBX + 0xc8],XMM0
MOVUPS xmmword ptr [RBX + 0xd8],XMM0
MOVUPS xmmword ptr [RBX + 0xe8],XMM0
MOVUPS xmmword ptr [RBX + 0xf8],XMM0
MOV qword ptr [RBX + 0x108],0x0
AND byte ptr [RBX + 0x110],0xf0
POP RBX
RET
|
/* OpenSubdiv::v3_6_0::Far::PatchTable::PatchTable(int) */
void __thiscall OpenSubdiv::v3_6_0::Far::PatchTable::PatchTable(PatchTable *this,int param_1)
{
*(int *)this = param_1;
memset(this + 8,0,0x88);
*(int4 *)(this + 0x90) = 3;
*(int8 *)(this + 0x98) = 0;
*(int8 *)(this + 0xa0) = 0;
*(int8 *)(this + 0xa8) = 0;
*(int8 *)(this + 0xb0) = 0;
*(int8 *)(this + 0xb8) = 0;
*(int8 *)(this + 0xc0) = 0;
*(int8 *)(this + 200) = 0;
*(int8 *)(this + 0xd0) = 0;
*(int8 *)(this + 0xd8) = 0;
*(int8 *)(this + 0xe0) = 0;
*(int8 *)(this + 0xe8) = 0;
*(int8 *)(this + 0xf0) = 0;
*(int8 *)(this + 0xf8) = 0;
*(int8 *)(this + 0x100) = 0;
*(int8 *)(this + 0x108) = 0;
this[0x110] = (PatchTable)((byte)this[0x110] & 0xf0);
return;
}
| |
41,064 | OpenSubdiv::v3_6_0::Far::PatchTable::PatchTable(int) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp | PatchTable::PatchTable(int maxvalence) :
_maxValence(maxvalence),
_localPointStencils(),
_localPointVaryingStencils(),
_varyingDesc(Far::PatchDescriptor::QUADS),
_isUniformLinear(false),
_vertexPrecisionIsDouble(false),
_varyingPrecisionIsDouble(false),
_faceVaryingPrecisionIsDouble(false) {
} | O2 | cpp | OpenSubdiv::v3_6_0::Far::PatchTable::PatchTable(int):
pushq %rbx
movq %rdi, %rbx
movl %esi, (%rdi)
addq $0x8, %rdi
movl $0x88, %edx
xorl %esi, %esi
callq 0x50c10
movl $0x3, 0x90(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x98(%rbx)
movups %xmm0, 0xa8(%rbx)
movups %xmm0, 0xb8(%rbx)
movups %xmm0, 0xc8(%rbx)
movups %xmm0, 0xd8(%rbx)
movups %xmm0, 0xe8(%rbx)
andq $0x0, 0x108(%rbx)
movups %xmm0, 0xf8(%rbx)
andb $-0x10, 0x110(%rbx)
popq %rbx
retq
nop
| _ZN10OpenSubdiv6v3_6_03Far10PatchTableC2Ei:
push rbx; Alternative name is 'OpenSubdiv::v3_6_0::Far::PatchTable::PatchTable(int)'
mov rbx, rdi
mov [rdi], esi
add rdi, 8
mov edx, 88h
xor esi, esi
call _memset
mov dword ptr [rbx+90h], 3
xorps xmm0, xmm0
movups xmmword ptr [rbx+98h], xmm0
movups xmmword ptr [rbx+0A8h], xmm0
movups xmmword ptr [rbx+0B8h], xmm0
movups xmmword ptr [rbx+0C8h], xmm0
movups xmmword ptr [rbx+0D8h], xmm0
movups xmmword ptr [rbx+0E8h], xmm0
and qword ptr [rbx+108h], 0
movups xmmword ptr [rbx+0F8h], xmm0
and byte ptr [rbx+110h], 0F0h
pop rbx
retn
| long long OpenSubdiv::v3_6_0::Far::PatchTable::PatchTable(OpenSubdiv::v3_6_0::Far::PatchTable *this, int a2)
{
long long result; // rax
*(_DWORD *)this = a2;
result = memset((char *)this + 8, 0LL, 136LL);
*((_DWORD *)this + 36) = 3;
*(_OWORD *)((char *)this + 152) = 0LL;
*(_OWORD *)((char *)this + 168) = 0LL;
*(_OWORD *)((char *)this + 184) = 0LL;
*(_OWORD *)((char *)this + 200) = 0LL;
*(_OWORD *)((char *)this + 216) = 0LL;
*(_OWORD *)((char *)this + 232) = 0LL;
*((_QWORD *)this + 33) = 0LL;
*(_OWORD *)((char *)this + 248) = 0LL;
*((_BYTE *)this + 272) &= 0xF0u;
return result;
}
| PatchTable:
PUSH RBX
MOV RBX,RDI
MOV dword ptr [RDI],ESI
ADD RDI,0x8
MOV EDX,0x88
XOR ESI,ESI
CALL 0x00150c10
MOV dword ptr [RBX + 0x90],0x3
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x98],XMM0
MOVUPS xmmword ptr [RBX + 0xa8],XMM0
MOVUPS xmmword ptr [RBX + 0xb8],XMM0
MOVUPS xmmword ptr [RBX + 0xc8],XMM0
MOVUPS xmmword ptr [RBX + 0xd8],XMM0
MOVUPS xmmword ptr [RBX + 0xe8],XMM0
AND qword ptr [RBX + 0x108],0x0
MOVUPS xmmword ptr [RBX + 0xf8],XMM0
AND byte ptr [RBX + 0x110],0xf0
POP RBX
RET
|
/* OpenSubdiv::v3_6_0::Far::PatchTable::PatchTable(int) */
void __thiscall OpenSubdiv::v3_6_0::Far::PatchTable::PatchTable(PatchTable *this,int param_1)
{
*(int *)this = param_1;
memset(this + 8,0,0x88);
*(int4 *)(this + 0x90) = 3;
*(int8 *)(this + 0x98) = 0;
*(int8 *)(this + 0xa0) = 0;
*(int8 *)(this + 0xa8) = 0;
*(int8 *)(this + 0xb0) = 0;
*(int8 *)(this + 0xb8) = 0;
*(int8 *)(this + 0xc0) = 0;
*(int8 *)(this + 200) = 0;
*(int8 *)(this + 0xd0) = 0;
*(int8 *)(this + 0xd8) = 0;
*(int8 *)(this + 0xe0) = 0;
*(int8 *)(this + 0xe8) = 0;
*(int8 *)(this + 0xf0) = 0;
*(int8 *)(this + 0x108) = 0;
*(int8 *)(this + 0xf8) = 0;
*(int8 *)(this + 0x100) = 0;
this[0x110] = (PatchTable)((byte)this[0x110] & 0xf0);
return;
}
| |
41,065 | google::protobuf::EnumValueDescriptorProto::EnumValueDescriptorProto(google::protobuf::EnumValueDescriptorProto const&) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc | EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProto& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
EnumValueDescriptorProto* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_._has_bits_){from._impl_._has_bits_}
, /*decltype(_impl_._cached_size_)*/{}
, decltype(_impl_.name_){}
, decltype(_impl_.options_){nullptr}
, decltype(_impl_.number_){}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_impl_.name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (from._internal_has_name()) {
_this->_impl_.name_.Set(from._internal_name(),
_this->GetArenaForAllocation());
}
if (from._internal_has_options()) {
_this->_impl_.options_ = new ::PROTOBUF_NAMESPACE_ID::EnumValueOptions(*from._impl_.options_);
}
_this->_impl_.number_ = from._impl_.number_;
// @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescriptorProto)
} | O0 | cpp | google::protobuf::EnumValueDescriptorProto::EnumValueDescriptorProto(google::protobuf::EnumValueDescriptorProto const&):
subq $0xd8, %rsp
movq %rdi, 0x88(%rsp)
movq %rsi, 0x80(%rsp)
movq 0x88(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0x1540b0
movq 0x58(%rsp), %rax
leaq 0x23d15b(%rip), %rcx # 0x4fed20
addq $0x10, %rcx
movq %rcx, (%rax)
movq %rax, 0x78(%rsp)
movq %rax, %rdi
addq $0x10, %rdi
movq %rdi, 0x50(%rsp)
movq 0x80(%rsp), %rcx
movl 0x10(%rcx), %ecx
movl %ecx, 0x10(%rax)
addq $0x4, %rdi
movq %rdi, 0x48(%rsp)
xorl %esi, %esi
movl $0x4, %edx
callq 0x8db70
movq 0x48(%rsp), %rdi
callq 0x1540e0
movq 0x50(%rsp), %rdi
addq $0x8, %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x8db70
movq 0x58(%rsp), %rcx
movq $0x0, 0x20(%rcx)
movl $0x0, 0x28(%rcx)
addq $0x8, %rcx
movq 0x80(%rsp), %rax
addq $0x8, %rax
movq %rcx, 0x98(%rsp)
movq %rax, 0x90(%rsp)
movq 0x98(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0xd0(%rsp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpq $0x0, %rax
setne %al
movb %al, 0x6b(%rsp)
movb 0x6b(%rsp), %al
testb $0x1, %al
jne 0x2c1ca7
jmp 0x2c1d53
movq 0x90(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq $0x0, 0xa8(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x40(%rsp)
movq %rax, 0xc0(%rsp)
movq 0xc0(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq 0xc8(%rsp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2c1d15
movq 0x40(%rsp), %rdi
callq 0x155370
addq $0x8, %rax
movq %rax, 0xb8(%rsp)
jmp 0x2c1d33
movq 0xa8(%rsp), %rax
callq *%rax
movq %rax, 0x38(%rsp)
jmp 0x2c1d26
movq 0x38(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rsi
movq 0x60(%rsp), %rdi
callq 0x155200
jmp 0x2c1d51
jmp 0x2c1d53
jmp 0x2c1d55
movq 0x58(%rsp), %rdi
addq $0x18, %rdi
callq 0x1583d0
jmp 0x2c1d65
movq 0x80(%rsp), %rdi
callq 0x2e1490
movb %al, 0x2f(%rsp)
jmp 0x2c1d78
movb 0x2f(%rsp), %al
testb $0x1, %al
jne 0x2c1d82
jmp 0x2c1de0
movq 0x78(%rsp), %rax
addq $0x18, %rax
movq %rax, 0x18(%rsp)
movq 0x80(%rsp), %rdi
callq 0x294930
movq %rax, 0x20(%rsp)
jmp 0x2c1da4
movq 0x78(%rsp), %rdi
callq 0x102610
movq %rax, 0x10(%rsp)
jmp 0x2c1db5
movq 0x10(%rsp), %rdx
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rdi
callq 0x169310
jmp 0x2c1dcb
jmp 0x2c1de0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
jmp 0x2c1e67
movq 0x80(%rsp), %rdi
callq 0x294960
movb %al, 0xf(%rsp)
jmp 0x2c1df3
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x2c1dfd
jmp 0x2c1e4c
movl $0x50, %edi
callq 0x8c1d0
movq %rax, (%rsp)
jmp 0x2c1e0d
movq (%rsp), %rdi
movq 0x80(%rsp), %rax
movq 0x20(%rax), %rsi
callq 0x2ced80
jmp 0x2c1e24
movq (%rsp), %rcx
movq 0x78(%rsp), %rax
movq %rcx, 0x20(%rax)
jmp 0x2c1e4c
movq (%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
callq 0x8fb70
jmp 0x2c1e67
movq 0x80(%rsp), %rax
movl 0x28(%rax), %ecx
movq 0x78(%rsp), %rax
movl %ecx, 0x28(%rax)
addq $0xd8, %rsp
retq
movq 0x58(%rsp), %rdi
callq 0x1540a0
movq 0x70(%rsp), %rdi
callq 0x90db0
nopl (%rax,%rax)
| _ZN6google8protobuf24EnumValueDescriptorProtoC2ERKS1_:
sub rsp, 0D8h
mov [rsp+0D8h+var_50], rdi
mov [rsp+0D8h+var_58], rsi
mov rdi, [rsp+0D8h+var_50]; this
mov [rsp+0D8h+var_80], rdi
call _ZN6google8protobuf7MessageC2Ev; google::protobuf::Message::Message(void)
mov rax, [rsp+0D8h+var_80]
lea rcx, _ZTVN6google8protobuf24EnumValueDescriptorProtoE; `vtable for'google::protobuf::EnumValueDescriptorProto
add rcx, 10h
mov [rax], rcx
mov [rsp+0D8h+var_60], rax
mov rdi, rax
add rdi, 10h
mov [rsp+0D8h+var_88], rdi
mov rcx, [rsp+0D8h+var_58]
mov ecx, [rcx+10h]
mov [rax+10h], ecx
add rdi, 4
mov [rsp+0D8h+var_90], rdi
xor esi, esi
mov edx, 4
call _memset
mov rdi, [rsp+0D8h+var_90]; this
call _ZN6google8protobuf8internal10CachedSizeC2Ev; google::protobuf::internal::CachedSize::CachedSize(void)
mov rdi, [rsp+0D8h+var_88]
add rdi, 8
xor esi, esi
mov edx, 8
call _memset
mov rcx, [rsp+0D8h+var_80]
mov qword ptr [rcx+20h], 0
mov dword ptr [rcx+28h], 0
add rcx, 8
mov rax, [rsp+0D8h+var_58]
add rax, 8
mov [rsp+0D8h+var_40], rcx
mov [rsp+0D8h+var_48], rax
mov rax, [rsp+0D8h+var_40]
mov [rsp+0D8h+var_78], rax
mov rax, [rsp+0D8h+var_48]
mov [rsp+0D8h+var_38], rax
mov rax, [rsp+0D8h+var_38]
mov [rsp+0D8h+var_8], rax
mov rax, [rsp+0D8h+var_8]
mov rax, [rax]
and rax, 1
cmp rax, 0
setnz al
mov [rsp+0D8h+var_6D], al
mov al, [rsp+0D8h+var_6D]
test al, 1
jnz short loc_2C1CA7
jmp loc_2C1D53
loc_2C1CA7:
mov rax, [rsp+0D8h+var_48]
mov [rsp+0D8h+var_28], rax
mov [rsp+0D8h+var_30], 0
mov rax, [rsp+0D8h+var_28]
mov [rsp+0D8h+var_98], rax
mov [rsp+0D8h+var_18], rax
mov rax, [rsp+0D8h+var_18]
mov [rsp+0D8h+var_10], rax
mov rax, [rsp+0D8h+var_10]
mov rax, [rax]
and rax, 1
cmp rax, 0
jz short loc_2C1D15
mov rdi, [rsp+0D8h+var_98]
call _ZNK6google8protobuf8internal16InternalMetadata8PtrValueINS2_9ContainerINS0_15UnknownFieldSetEEEEEPT_v; google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>(void)
add rax, 8
mov [rsp+0D8h+var_20], rax
jmp short loc_2C1D33
loc_2C1D15:
mov rax, [rsp+0D8h+var_30]
call rax
mov [rsp+0D8h+var_A0], rax
jmp short $+2
loc_2C1D26:
mov rax, [rsp+0D8h+var_A0]
mov [rsp+0D8h+var_20], rax
loc_2C1D33:
mov rax, [rsp+0D8h+var_20]
mov qword ptr [rsp+0D8h+var_A8], rax
mov rsi, qword ptr [rsp+0D8h+var_A8]; int
mov rdi, [rsp+0D8h+var_78]; void *
call _ZN6google8protobuf8internal16InternalMetadata11DoMergeFromINS0_15UnknownFieldSetEEEvRKT_; google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>(google::protobuf::UnknownFieldSet const&)
jmp short $+2
loc_2C1D51:
jmp short $+2
loc_2C1D53:
jmp short $+2
loc_2C1D55:
mov rdi, [rsp+0D8h+var_80]
add rdi, 18h; this
call _ZN6google8protobuf8internal14ArenaStringPtr11InitDefaultEv; google::protobuf::internal::ArenaStringPtr::InitDefault(void)
jmp short $+2
loc_2C1D65:
mov rdi, [rsp+0D8h+var_58]; this
call _ZNK6google8protobuf24EnumValueDescriptorProto18_internal_has_nameEv; google::protobuf::EnumValueDescriptorProto::_internal_has_name(void)
mov [rsp+0D8h+var_A9], al
jmp short $+2
loc_2C1D78:
mov al, [rsp+0D8h+var_A9]
test al, 1
jnz short loc_2C1D82
jmp short loc_2C1DE0
loc_2C1D82:
mov rax, [rsp+0D8h+var_60]
add rax, 18h
mov qword ptr [rsp+0D8h+var_C0], rax
mov rdi, [rsp+0D8h+var_58]
call _ZNK6google8protobuf24EnumValueDescriptorProto14_internal_nameB5cxx11Ev; google::protobuf::EnumValueDescriptorProto::_internal_name(void)
mov qword ptr [rsp+0D8h+var_B8], rax
jmp short $+2
loc_2C1DA4:
mov rdi, [rsp+0D8h+var_60]; this
call _ZNK6google8protobuf11MessageLite21GetArenaForAllocationEv; google::protobuf::MessageLite::GetArenaForAllocation(void)
mov qword ptr [rsp+0D8h+var_C8], rax
jmp short $+2
loc_2C1DB5:
mov rdx, qword ptr [rsp+0D8h+var_C8]; int
mov rsi, qword ptr [rsp+0D8h+var_B8]; int
mov rdi, qword ptr [rsp+0D8h+var_C0]; int
call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *)
jmp short $+2
loc_2C1DCB:
jmp short loc_2C1DE0
mov rcx, rax
mov eax, edx
mov [rsp+arg_68], rcx
mov [rsp+arg_64], eax
jmp loc_2C1E67
loc_2C1DE0:
mov rdi, [rsp+0D8h+var_58]; this
call _ZNK6google8protobuf24EnumValueDescriptorProto21_internal_has_optionsEv; google::protobuf::EnumValueDescriptorProto::_internal_has_options(void)
mov [rsp+0D8h+var_C9], al
jmp short $+2
loc_2C1DF3:
mov al, [rsp+0D8h+var_C9]
test al, 1
jnz short loc_2C1DFD
jmp short loc_2C1E4C
loc_2C1DFD:
mov edi, 50h ; 'P'; unsigned __int64
call __Znwm; operator new(ulong)
mov [rsp+0D8h+var_D8], rax
jmp short $+2
loc_2C1E0D:
mov rdi, [rsp+0D8h+var_D8]; this
mov rax, [rsp+0D8h+var_58]
mov rsi, [rax+20h]; google::protobuf::EnumValueOptions *
call _ZN6google8protobuf16EnumValueOptionsC2ERKS1_; google::protobuf::EnumValueOptions::EnumValueOptions(google::protobuf::EnumValueOptions const&)
jmp short $+2
loc_2C1E24:
mov rcx, [rsp+0D8h+var_D8]
mov rax, [rsp+0D8h+var_60]
mov [rax+20h], rcx
jmp short loc_2C1E4C
mov rdi, [rsp+0]; void *
mov rcx, rax
mov eax, edx
mov [rsp+arg_68], rcx
mov [rsp+arg_64], eax
call __ZdlPv; operator delete(void *)
jmp short loc_2C1E67
loc_2C1E4C:
mov rax, [rsp+0D8h+var_58]
mov ecx, [rax+28h]
mov rax, [rsp+0D8h+var_60]
mov [rax+28h], ecx
add rsp, 0D8h
retn
loc_2C1E67:
mov rdi, [rsp+arg_50]; this
call _ZN6google8protobuf7MessageD2Ev; google::protobuf::Message::~Message()
mov rdi, [rsp+arg_68]
call __Unwind_Resume
| google::protobuf::EnumValueDescriptorProto * google::protobuf::EnumValueDescriptorProto::EnumValueDescriptorProto(
google::protobuf::EnumValueDescriptorProto *this,
const google::protobuf::EnumValueDescriptorProto *a2)
{
google::protobuf::EnumValueDescriptorProto *result; // rax
google::protobuf::EnumValueOptions *v3; // [rsp+0h] [rbp-D8h]
int ArenaForAllocation; // [rsp+10h] [rbp-C8h]
int v5; // [rsp+20h] [rbp-B8h]
unsigned long long v6; // [rsp+B8h] [rbp-20h]
google::protobuf::Message::Message(this);
*(_QWORD *)this = &`vtable for'google::protobuf::EnumValueDescriptorProto + 2;
*((_DWORD *)this + 4) = *((_DWORD *)a2 + 4);
memset((char *)this + 20, 0LL, 4LL);
google::protobuf::internal::CachedSize::CachedSize((google::protobuf::EnumValueDescriptorProto *)((char *)this + 20));
memset((char *)this + 24, 0LL, 8LL);
*((_QWORD *)this + 4) = 0LL;
*((_DWORD *)this + 10) = 0;
if ( (*((_QWORD *)a2 + 1) & 1LL) != 0 )
{
v6 = google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>((_QWORD *)a2 + 1)
+ 8;
google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>((char *)this + 8, v6);
}
google::protobuf::internal::ArenaStringPtr::InitDefault((google::protobuf::EnumValueDescriptorProto *)((char *)this + 24));
if ( (google::protobuf::EnumValueDescriptorProto::_internal_has_name(a2) & 1) != 0 )
{
v5 = google::protobuf::EnumValueDescriptorProto::_internal_name[abi:cxx11]((long long)a2);
ArenaForAllocation = google::protobuf::MessageLite::GetArenaForAllocation(this);
google::protobuf::internal::ArenaStringPtr::Set((_DWORD)this + 24, v5, ArenaForAllocation);
}
if ( google::protobuf::EnumValueDescriptorProto::_internal_has_options(a2) )
{
v3 = (google::protobuf::EnumValueOptions *)operator new(0x50uLL);
google::protobuf::EnumValueOptions::EnumValueOptions(v3, *((const google::protobuf::EnumValueOptions **)a2 + 4));
*((_QWORD *)this + 4) = v3;
}
result = this;
*((_DWORD *)this + 10) = *((_DWORD *)a2 + 10);
return result;
}
| _internal_lazy:
MOV qword ptr [RSP + -0x8],RDI
MOV RAX,qword ptr [RSP + -0x8]
MOV AL,byte ptr [RAX + 0x51]
AND AL,0x1
RET
|
/* google::protobuf::FieldOptions::_internal_lazy() const */
ulong __thiscall google::protobuf::FieldOptions::_internal_lazy(FieldOptions *this)
{
return CONCAT71((int7)((ulong)this >> 8),this[0x51]) & 0xffffffffffffff01;
}
| |
41,066 | mysql_set_character_set | eloqsql/libmariadb/libmariadb/mariadb_lib.c | int STDCALL mysql_set_character_set(MYSQL *mysql, const char *csname)
{
const MARIADB_CHARSET_INFO *cs;
if (!csname)
goto error;
if ((cs= mysql_find_charset_name(csname)))
{
char buff[64];
snprintf(buff, 63, "SET NAMES %s", cs->csname);
if (!mysql_real_query(mysql, buff, (unsigned long)strlen(buff)))
{
mysql->charset= cs;
return(0);
}
return(mysql->net.last_errno);
}
error:
my_set_error(mysql, CR_CANT_READ_CHARSET, SQLSTATE_UNKNOWN,
0, csname, "compiled_in");
return(mysql->net.last_errno);
} | O3 | c | mysql_set_character_set:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x28(%rbp)
testq %rsi, %rsi
je 0x1cf44
movq %rsi, %r14
movq %rsi, %rdi
callq 0x33206
testq %rax, %rax
je 0x1cf64
movq %rax, %r15
movq 0x8(%rax), %r9
leaq 0x1c5a8(%rip), %r8 # 0x394a9
xorl %r14d, %r14d
leaq -0x70(%rbp), %r12
movl $0x3f, %esi
movl $0x40, %ecx
movq %r12, %rdi
movl $0x1, %edx
xorl %eax, %eax
callq 0x132c0
movq %r12, %rdi
callq 0x131c0
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x1c8aa
testl %eax, %eax
jne 0x1cf89
movq %r15, 0x2f0(%rbx)
jmp 0x1cf90
leaq 0x30d55(%rip), %rax # 0x4dca0
movq (%rax), %rdx
leaq 0x1c488(%rip), %r9 # 0x393dd
movq %rbx, %rdi
movl $0x7e3, %esi # imm = 0x7E3
xorl %ecx, %ecx
xorl %r8d, %r8d
jmp 0x1cf82
leaq 0x30d35(%rip), %rax # 0x4dca0
movq (%rax), %rdx
leaq 0x1c468(%rip), %r9 # 0x393dd
movq %rbx, %rdi
movl $0x7e3, %esi # imm = 0x7E3
xorl %ecx, %ecx
movq %r14, %r8
xorl %eax, %eax
callq 0x187cd
movl 0x90(%rbx), %r14d
movq %fs:0x28, %rax
cmpq -0x28(%rbp), %rax
jne 0x1cfaf
movl %r14d, %eax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x13500
| mysql_set_character_set:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 50h
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_28], rax
test rsi, rsi
jz short loc_1CF44
mov r14, rsi
mov rdi, rsi
call mysql_find_charset_name
test rax, rax
jz short loc_1CF64
mov r15, rax
mov r9, [rax+8]
lea r8, aSetNamesS; "SET NAMES %s"
xor r14d, r14d
lea r12, [rbp+var_70]
mov esi, 3Fh ; '?'
mov ecx, 40h ; '@'
mov rdi, r12
mov edx, 1
xor eax, eax
call ___snprintf_chk
mov rdi, r12
call _strlen
mov rdi, rbx
mov rsi, r12
mov rdx, rax
call mysql_real_query
test eax, eax
jnz short loc_1CF89
mov [rbx+2F0h], r15
jmp short loc_1CF90
loc_1CF44:
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
lea r9, aCompiledIn; "compiled_in"
mov rdi, rbx
mov esi, 7E3h
xor ecx, ecx
xor r8d, r8d
jmp short loc_1CF82
loc_1CF64:
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
lea r9, aCompiledIn; "compiled_in"
mov rdi, rbx
mov esi, 7E3h
xor ecx, ecx
mov r8, r14
loc_1CF82:
xor eax, eax
call my_set_error
loc_1CF89:
mov r14d, [rbx+90h]
loc_1CF90:
mov rax, fs:28h
cmp rax, [rbp+var_28]
jnz short loc_1CFAF
mov eax, r14d
add rsp, 50h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_1CFAF:
call ___stack_chk_fail
| long long mysql_set_character_set(long long a1, long long a2)
{
long long charset_name; // rax
long long v3; // r15
unsigned int v4; // r14d
long long v5; // rax
_BYTE v7[72]; // [rsp+0h] [rbp-70h] BYREF
unsigned long long v8; // [rsp+48h] [rbp-28h]
v8 = __readfsqword(0x28u);
if ( !a2 )
{
my_set_error(a1, 2019, (long long)SQLSTATE_UNKNOWN, 0LL, 0LL, "compiled_in");
return *(unsigned int *)(a1 + 144);
}
charset_name = mysql_find_charset_name(a2);
if ( !charset_name )
{
my_set_error(a1, 2019, (long long)SQLSTATE_UNKNOWN, 0LL, a2, "compiled_in");
return *(unsigned int *)(a1 + 144);
}
v3 = charset_name;
v4 = 0;
__snprintf_chk(v7, 63LL, 1LL, 64LL, "SET NAMES %s", *(const char **)(charset_name + 8));
v5 = strlen(v7);
if ( (unsigned int)mysql_real_query(a1, (long long)v7, v5) )
return *(unsigned int *)(a1 + 144);
*(_QWORD *)(a1 + 752) = v3;
return v4;
}
| mysql_set_character_set:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x50
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
TEST RSI,RSI
JZ 0x0011cf44
MOV R14,RSI
MOV RDI,RSI
CALL 0x00133206
TEST RAX,RAX
JZ 0x0011cf64
MOV R15,RAX
MOV R9,qword ptr [RAX + 0x8]
LEA R8,[0x1394a9]
XOR R14D,R14D
LEA R12,[RBP + -0x70]
MOV ESI,0x3f
MOV ECX,0x40
MOV RDI,R12
MOV EDX,0x1
XOR EAX,EAX
CALL 0x001132c0
MOV RDI,R12
CALL 0x001131c0
MOV RDI,RBX
MOV RSI,R12
MOV RDX,RAX
CALL 0x0011c8aa
TEST EAX,EAX
JNZ 0x0011cf89
MOV qword ptr [RBX + 0x2f0],R15
JMP 0x0011cf90
LAB_0011cf44:
LEA RAX,[0x14dca0]
MOV RDX,qword ptr [RAX]
LEA R9,[0x1393dd]
MOV RDI,RBX
MOV ESI,0x7e3
XOR ECX,ECX
XOR R8D,R8D
JMP 0x0011cf82
LAB_0011cf64:
LEA RAX,[0x14dca0]
MOV RDX,qword ptr [RAX]
LEA R9,[0x1393dd]
MOV RDI,RBX
MOV ESI,0x7e3
XOR ECX,ECX
MOV R8,R14
LAB_0011cf82:
XOR EAX,EAX
CALL 0x001187cd
LAB_0011cf89:
MOV R14D,dword ptr [RBX + 0x90]
LAB_0011cf90:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x28]
JNZ 0x0011cfaf
MOV EAX,R14D
ADD RSP,0x50
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0011cfaf:
CALL 0x00113500
|
int4 mysql_set_character_set(long param_1,long param_2)
{
int iVar1;
long lVar2;
size_t sVar3;
int4 uVar4;
long in_FS_OFFSET;
char local_78 [72];
long local_30;
local_30 = *(long *)(in_FS_OFFSET + 0x28);
if (param_2 == 0) {
param_2 = 0;
LAB_0011cf82:
my_set_error(param_1,0x7e3,SQLSTATE_UNKNOWN,0,param_2,"compiled_in");
}
else {
lVar2 = mysql_find_charset_name(param_2);
if (lVar2 == 0) goto LAB_0011cf82;
uVar4 = 0;
__snprintf_chk(local_78,0x3f,1,0x40,"SET NAMES %s",*(int8 *)(lVar2 + 8));
sVar3 = strlen(local_78);
iVar1 = mysql_real_query(param_1,local_78,sVar3);
if (iVar1 == 0) {
*(long *)(param_1 + 0x2f0) = lVar2;
goto LAB_0011cf90;
}
}
uVar4 = *(int4 *)(param_1 + 0x90);
LAB_0011cf90:
if (*(long *)(in_FS_OFFSET + 0x28) != local_30) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return uVar4;
}
| |
41,067 | ma_log_rt_split | eloqsql/storage/maria/ma_rt_split.c | static my_bool _ma_log_rt_split(MARIA_PAGE *page,
const uchar *key_with_nod_flag,
uint full_length,
const uchar *log_internal_copy,
uint log_internal_copy_length,
const uchar *log_key_copy,
uint length_diff)
{
MARIA_HA *info= page->info;
MARIA_SHARE *share= info->s;
LSN lsn;
uchar log_data[FILEID_STORE_SIZE + PAGE_STORE_SIZE + 1 + 2 + 1 + 2 + 2 + 7],
*log_pos;
LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 6];
uint translog_parts, extra_length= 0;
my_off_t page_pos;
DBUG_ENTER("_ma_log_rt_split");
DBUG_PRINT("enter", ("page: %p", page));
DBUG_ASSERT(share->now_transactional);
page_pos= page->pos / share->block_size;
page_store(log_data + FILEID_STORE_SIZE, page_pos);
log_pos= log_data+ FILEID_STORE_SIZE + PAGE_STORE_SIZE;
log_pos[0]= KEY_OP_DEL_SUFFIX;
log_pos++;
DBUG_ASSERT((int)length_diff > 0);
int2store(log_pos, length_diff);
log_pos+= 2;
log_pos[0]= KEY_OP_MULTI_COPY;
log_pos++;
int2store(log_pos, full_length);
log_pos+= 2;
int2store(log_pos, log_internal_copy_length);
log_pos+= 2;
log_array[TRANSLOG_INTERNAL_PARTS + 0].str= log_data;
log_array[TRANSLOG_INTERNAL_PARTS + 0].length= sizeof(log_data) - 7;
log_array[TRANSLOG_INTERNAL_PARTS + 1].str= log_internal_copy;
log_array[TRANSLOG_INTERNAL_PARTS + 1].length= log_internal_copy_length;
translog_parts= 2;
if (log_key_copy != NULL) /* need to store key into record */
{
log_array[TRANSLOG_INTERNAL_PARTS + 2].str= log_key_copy;
log_array[TRANSLOG_INTERNAL_PARTS + 2].length= 1 + 2 + 1 + 2;
log_array[TRANSLOG_INTERNAL_PARTS + 3].str= key_with_nod_flag;
log_array[TRANSLOG_INTERNAL_PARTS + 3].length= full_length;
extra_length= 1 + 2 + 1 + 2 + full_length;
translog_parts+= 2;
}
_ma_log_key_changes(page,
log_array + TRANSLOG_INTERNAL_PARTS + translog_parts,
log_pos, &extra_length, &translog_parts);
/* Remember new page length for future log entires for same page */
page->org_size= page->size;
if (translog_write_record(&lsn, LOGREC_REDO_INDEX,
info->trn, info,
(translog_size_t) ((log_pos - log_data) +
log_internal_copy_length +
extra_length),
TRANSLOG_INTERNAL_PARTS + translog_parts,
log_array, log_data, NULL))
DBUG_RETURN(1);
DBUG_RETURN(0);
} | O0 | c | ma_log_rt_split:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp # imm = 0x150
movl 0x10(%rbp), %eax
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movl %edx, -0x3c(%rbp)
movq %rcx, -0x48(%rbp)
movl %r8d, -0x4c(%rbp)
movq %r9, -0x58(%rbp)
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x68(%rbp)
movl $0x0, -0x108(%rbp)
jmp 0x9b8d4
jmp 0x9b8d6
jmp 0x9b8d8
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x68(%rbp), %rcx
movl 0x7bc(%rcx), %ecx
xorl %edx, %edx
divq %rcx
movq %rax, -0x110(%rbp)
leaq -0x20(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x118(%rbp)
movq -0x110(%rbp), %rax
movl %eax, %ecx
movq -0x118(%rbp), %rax
movl %ecx, (%rax)
movq -0x110(%rbp), %rax
shrq $0x20, %rax
movb %al, %cl
movq -0x118(%rbp), %rax
movb %cl, 0x4(%rax)
leaq -0x20(%rbp), %rax
addq $0x2, %rax
addq $0x5, %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movb $0x7, (%rax)
movq -0x78(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x78(%rbp)
jmp 0x9b953
jmp 0x9b955
movq -0x78(%rbp), %rax
movq %rax, -0x120(%rbp)
movl 0x10(%rbp), %eax
movw %ax, %cx
movq -0x120(%rbp), %rax
movw %cx, (%rax)
movq -0x78(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movb $0x9, (%rax)
movq -0x78(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x128(%rbp)
movl -0x3c(%rbp), %eax
movw %ax, %cx
movq -0x128(%rbp), %rax
movw %cx, (%rax)
movq -0x78(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x130(%rbp)
movl -0x4c(%rbp), %eax
movw %ax, %cx
movq -0x130(%rbp), %rax
movw %cx, (%rax)
movq -0x78(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x78(%rbp)
leaq -0x20(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq $0xf, -0xd8(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0xd0(%rbp)
movl -0x4c(%rbp), %eax
movq %rax, -0xc8(%rbp)
movl $0x2, -0x104(%rbp)
cmpq $0x0, -0x58(%rbp)
je 0x9ba5f
movq -0x58(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq $0x6, -0xb8(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0xb0(%rbp)
movl -0x3c(%rbp), %eax
movq %rax, -0xa8(%rbp)
movl -0x3c(%rbp), %eax
addl $0x6, %eax
movl %eax, -0x108(%rbp)
movl -0x104(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x104(%rbp)
movq -0x30(%rbp), %rax
movl 0x20(%rax), %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rdx
movq -0x60(%rbp), %rcx
movq -0x78(%rbp), %rax
leaq -0x20(%rbp), %rsi
subq %rsi, %rax
movl -0x4c(%rbp), %esi
addq %rsi, %rax
movl -0x108(%rbp), %esi
addq %rsi, %rax
movl %eax, %r8d
movl -0x104(%rbp), %r9d
addl $0x2, %r9d
leaq -0x100(%rbp), %r10
leaq -0x20(%rbp), %rax
leaq -0x70(%rbp), %rdi
movl $0xc, %esi
xorl %r11d, %r11d
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
callq 0x53fc0
cmpb $0x0, %al
je 0x9badb
jmp 0x9bad5
movb $0x1, -0x21(%rbp)
jmp 0x9bae1
jmp 0x9badd
movb $0x0, -0x21(%rbp)
movb -0x21(%rbp), %al
movb %al, -0x131(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x9bb0b
movb -0x131(%rbp), %al
addq $0x150, %rsp # imm = 0x150
popq %rbp
retq
callq 0x2a270
| _ma_log_rt_split:
push rbp
mov rbp, rsp
sub rsp, 150h
mov eax, [rbp+arg_0]
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_30], rdi
mov [rbp+var_38], rsi
mov [rbp+var_3C], edx
mov [rbp+var_48], rcx
mov [rbp+var_4C], r8d
mov [rbp+var_58], r9
mov rax, [rbp+var_30]
mov rax, [rax]
mov [rbp+var_60], rax
mov rax, [rbp+var_60]
mov rax, [rax]
mov [rbp+var_68], rax
mov [rbp+var_108], 0
jmp short $+2
loc_9B8D4:
jmp short $+2
loc_9B8D6:
jmp short $+2
loc_9B8D8:
mov rax, [rbp+var_30]
mov rax, [rax+18h]
mov rcx, [rbp+var_68]
mov ecx, [rcx+7BCh]
xor edx, edx
div rcx
mov [rbp+var_110], rax
lea rax, [rbp+var_20]
add rax, 2
mov [rbp+var_118], rax
mov rax, [rbp+var_110]
mov ecx, eax
mov rax, [rbp+var_118]
mov [rax], ecx
mov rax, [rbp+var_110]
shr rax, 20h
mov cl, al
mov rax, [rbp+var_118]
mov [rax+4], cl
lea rax, [rbp+var_20]
add rax, 2
add rax, 5
mov [rbp+var_78], rax
mov rax, [rbp+var_78]
mov byte ptr [rax], 7
mov rax, [rbp+var_78]
add rax, 1
mov [rbp+var_78], rax
jmp short $+2
loc_9B953:
jmp short $+2
loc_9B955:
mov rax, [rbp+var_78]
mov [rbp+var_120], rax
mov eax, [rbp+arg_0]
mov cx, ax
mov rax, [rbp+var_120]
mov [rax], cx
mov rax, [rbp+var_78]
add rax, 2
mov [rbp+var_78], rax
mov rax, [rbp+var_78]
mov byte ptr [rax], 9
mov rax, [rbp+var_78]
add rax, 1
mov [rbp+var_78], rax
mov rax, [rbp+var_78]
mov [rbp+var_128], rax
mov eax, [rbp+var_3C]
mov cx, ax
mov rax, [rbp+var_128]
mov [rax], cx
mov rax, [rbp+var_78]
add rax, 2
mov [rbp+var_78], rax
mov rax, [rbp+var_78]
mov [rbp+var_130], rax
mov eax, [rbp+var_4C]
mov cx, ax
mov rax, [rbp+var_130]
mov [rax], cx
mov rax, [rbp+var_78]
add rax, 2
mov [rbp+var_78], rax
lea rax, [rbp+var_20]
mov [rbp+var_E0], rax
mov [rbp+var_D8], 0Fh
mov rax, [rbp+var_48]
mov [rbp+var_D0], rax
mov eax, [rbp+var_4C]
mov [rbp+var_C8], rax
mov [rbp+var_104], 2
cmp [rbp+var_58], 0
jz short loc_9BA5F
mov rax, [rbp+var_58]
mov [rbp+var_C0], rax
mov [rbp+var_B8], 6
mov rax, [rbp+var_38]
mov [rbp+var_B0], rax
mov eax, [rbp+var_3C]
mov [rbp+var_A8], rax
mov eax, [rbp+var_3C]
add eax, 6
mov [rbp+var_108], eax
mov eax, [rbp+var_104]
add eax, 2
mov [rbp+var_104], eax
loc_9BA5F:
mov rax, [rbp+var_30]
mov ecx, [rax+20h]
mov rax, [rbp+var_30]
mov [rax+24h], ecx
mov rax, [rbp+var_60]
mov rdx, [rax+8]
mov rcx, [rbp+var_60]
mov rax, [rbp+var_78]
lea rsi, [rbp+var_20]
sub rax, rsi
mov esi, [rbp+var_4C]
add rax, rsi
mov esi, [rbp+var_108]
add rax, rsi
mov r8d, eax
mov r9d, [rbp+var_104]
add r9d, 2
lea r10, [rbp+var_100]
lea rax, [rbp+var_20]
lea rdi, [rbp+var_70]
mov esi, 0Ch
xor r11d, r11d
mov [rsp+150h+var_150], r10
mov [rsp+150h+var_148], rax
mov [rsp+150h+var_140], 0
call translog_write_record
cmp al, 0
jz short loc_9BADB
jmp short $+2
loc_9BAD5:
mov [rbp+var_21], 1
jmp short loc_9BAE1
loc_9BADB:
jmp short $+2
loc_9BADD:
mov [rbp+var_21], 0
loc_9BAE1:
mov al, [rbp+var_21]
mov [rbp+var_131], al
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_9BB0B
mov al, [rbp+var_131]
add rsp, 150h
pop rbp
retn
loc_9BB0B:
call ___stack_chk_fail
| bool ma_log_rt_split(
long long a1,
long long a2,
unsigned int a3,
long long a4,
unsigned int a5,
long long a6,
__int16 a7)
{
unsigned long long v8; // [rsp+40h] [rbp-110h]
unsigned int v9; // [rsp+48h] [rbp-108h]
int v10; // [rsp+4Ch] [rbp-104h]
_QWORD v11[17]; // [rsp+50h] [rbp-100h] BYREF
_BYTE *v12; // [rsp+D8h] [rbp-78h]
_BYTE v13[8]; // [rsp+E0h] [rbp-70h] BYREF
long long v14; // [rsp+E8h] [rbp-68h]
long long *v15; // [rsp+F0h] [rbp-60h]
long long v16; // [rsp+F8h] [rbp-58h]
unsigned int v17; // [rsp+104h] [rbp-4Ch]
long long v18; // [rsp+108h] [rbp-48h]
unsigned int v19; // [rsp+114h] [rbp-3Ch]
long long v20; // [rsp+118h] [rbp-38h]
long long v21; // [rsp+120h] [rbp-30h]
__int16 v22; // [rsp+130h] [rbp-20h] BYREF
int v23; // [rsp+132h] [rbp-1Eh]
char v24; // [rsp+136h] [rbp-1Ah]
char v25; // [rsp+137h] [rbp-19h]
__int16 v26; // [rsp+138h] [rbp-18h]
char v27; // [rsp+13Ah] [rbp-16h]
__int16 v28; // [rsp+13Bh] [rbp-15h]
__int16 v29; // [rsp+13Dh] [rbp-13h]
_BYTE v30[17]; // [rsp+13Fh] [rbp-11h] BYREF
long long savedregs; // [rsp+150h] [rbp+0h] BYREF
*(_QWORD *)&v30[9] = __readfsqword(0x28u);
v21 = a1;
v20 = a2;
v19 = a3;
v18 = a4;
v17 = a5;
v16 = a6;
v15 = *(long long **)a1;
v14 = *v15;
v9 = 0;
v8 = *(_QWORD *)(a1 + 24) / (unsigned long long)*(unsigned int *)(v14 + 1980);
v23 = v8;
v24 = BYTE4(v8);
v25 = 7;
v26 = a7;
v27 = 9;
v28 = a3;
v29 = a5;
v12 = v30;
v11[4] = &v22;
v11[5] = 15LL;
v11[6] = a4;
v11[7] = a5;
v10 = 2;
if ( a6 )
{
v11[8] = v16;
v11[9] = 6LL;
v11[10] = v20;
v11[11] = v19;
v9 = v19 + 6;
v10 = 4;
}
*(_DWORD *)(v21 + 36) = *(_DWORD *)(v21 + 32);
return translog_write_record(
(long long)v13,
0xCu,
v15[1],
v15,
v9 + v17 + (_DWORD)v12 - ((unsigned int)&savedregs - 32),
v10 + 2,
v11,
&v22,
0LL) != 0;
}
| _ma_log_rt_split:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x150
MOV EAX,dword ptr [RBP + 0x10]
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x30],RDI
MOV qword ptr [RBP + -0x38],RSI
MOV dword ptr [RBP + -0x3c],EDX
MOV qword ptr [RBP + -0x48],RCX
MOV dword ptr [RBP + -0x4c],R8D
MOV qword ptr [RBP + -0x58],R9
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x68],RAX
MOV dword ptr [RBP + -0x108],0x0
JMP 0x0019b8d4
LAB_0019b8d4:
JMP 0x0019b8d6
LAB_0019b8d6:
JMP 0x0019b8d8
LAB_0019b8d8:
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RBP + -0x68]
MOV ECX,dword ptr [RCX + 0x7bc]
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0x110],RAX
LEA RAX,[RBP + -0x20]
ADD RAX,0x2
MOV qword ptr [RBP + -0x118],RAX
MOV RAX,qword ptr [RBP + -0x110]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x118]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x110]
SHR RAX,0x20
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x118]
MOV byte ptr [RAX + 0x4],CL
LEA RAX,[RBP + -0x20]
ADD RAX,0x2
ADD RAX,0x5
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RBP + -0x78]
MOV byte ptr [RAX],0x7
MOV RAX,qword ptr [RBP + -0x78]
ADD RAX,0x1
MOV qword ptr [RBP + -0x78],RAX
JMP 0x0019b953
LAB_0019b953:
JMP 0x0019b955
LAB_0019b955:
MOV RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0x120],RAX
MOV EAX,dword ptr [RBP + 0x10]
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x120]
MOV word ptr [RAX],CX
MOV RAX,qword ptr [RBP + -0x78]
ADD RAX,0x2
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RBP + -0x78]
MOV byte ptr [RAX],0x9
MOV RAX,qword ptr [RBP + -0x78]
ADD RAX,0x1
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0x128],RAX
MOV EAX,dword ptr [RBP + -0x3c]
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x128]
MOV word ptr [RAX],CX
MOV RAX,qword ptr [RBP + -0x78]
ADD RAX,0x2
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0x130],RAX
MOV EAX,dword ptr [RBP + -0x4c]
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x130]
MOV word ptr [RAX],CX
MOV RAX,qword ptr [RBP + -0x78]
ADD RAX,0x2
MOV qword ptr [RBP + -0x78],RAX
LEA RAX,[RBP + -0x20]
MOV qword ptr [RBP + -0xe0],RAX
MOV qword ptr [RBP + -0xd8],0xf
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0xd0],RAX
MOV EAX,dword ptr [RBP + -0x4c]
MOV qword ptr [RBP + -0xc8],RAX
MOV dword ptr [RBP + -0x104],0x2
CMP qword ptr [RBP + -0x58],0x0
JZ 0x0019ba5f
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0xc0],RAX
MOV qword ptr [RBP + -0xb8],0x6
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0xb0],RAX
MOV EAX,dword ptr [RBP + -0x3c]
MOV qword ptr [RBP + -0xa8],RAX
MOV EAX,dword ptr [RBP + -0x3c]
ADD EAX,0x6
MOV dword ptr [RBP + -0x108],EAX
MOV EAX,dword ptr [RBP + -0x104]
ADD EAX,0x2
MOV dword ptr [RBP + -0x104],EAX
LAB_0019ba5f:
MOV RAX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RAX + 0x20]
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
MOV RAX,qword ptr [RBP + -0x60]
MOV RDX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RBP + -0x78]
LEA RSI,[RBP + -0x20]
SUB RAX,RSI
MOV ESI,dword ptr [RBP + -0x4c]
ADD RAX,RSI
MOV ESI,dword ptr [RBP + -0x108]
ADD RAX,RSI
MOV R8D,EAX
MOV R9D,dword ptr [RBP + -0x104]
ADD R9D,0x2
LEA R10,[RBP + -0x100]
LEA RAX,[RBP + -0x20]
LEA RDI,[RBP + -0x70]
MOV ESI,0xc
XOR R11D,R11D
MOV qword ptr [RSP],R10
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x10],0x0
CALL 0x00153fc0
CMP AL,0x0
JZ 0x0019badb
JMP 0x0019bad5
LAB_0019bad5:
MOV byte ptr [RBP + -0x21],0x1
JMP 0x0019bae1
LAB_0019badb:
JMP 0x0019badd
LAB_0019badd:
MOV byte ptr [RBP + -0x21],0x0
LAB_0019bae1:
MOV AL,byte ptr [RBP + -0x21]
MOV byte ptr [RBP + -0x131],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0019bb0b
MOV AL,byte ptr [RBP + -0x131]
ADD RSP,0x150
POP RBP
RET
LAB_0019bb0b:
CALL 0x0012a270
|
int8
_ma_log_rt_split(long *param_1,int8 param_2,uint param_3,int8 param_4,uint param_5,
long param_6,int2 param_7)
{
char cVar1;
ulong uVar2;
long in_FS_OFFSET;
int local_110;
int local_10c;
int1 local_108 [32];
int1 *local_e8;
int8 local_e0;
int8 local_d8;
ulong local_d0;
long local_c8;
int8 local_c0;
int8 local_b8;
ulong local_b0;
int1 *local_80;
int1 local_78 [8];
long local_70;
long *local_68;
long local_60;
uint local_54;
int8 local_50;
uint local_44;
int8 local_40;
long *local_38;
int1 local_29;
int1 local_28 [2];
int4 local_26;
int1 local_22;
int1 local_21;
int2 local_20;
int1 local_1e;
int2 local_1d;
int2 local_1b;
int1 auStack_19 [9];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_68 = (long *)*param_1;
local_70 = *local_68;
local_110 = 0;
uVar2 = (ulong)param_1[3] / (ulong)*(uint *)(local_70 + 0x7bc);
local_26 = (int4)uVar2;
local_22 = (int1)(uVar2 >> 0x20);
local_21 = 7;
local_20 = param_7;
local_1e = 9;
local_1d = (int2)param_3;
local_1b = (int2)param_5;
local_80 = auStack_19;
local_e8 = local_28;
local_e0 = 0xf;
local_d0 = (ulong)param_5;
local_10c = 2;
if (param_6 != 0) {
local_c0 = 6;
local_b0 = (ulong)param_3;
local_110 = param_3 + 6;
local_10c = 4;
local_c8 = param_6;
local_b8 = param_2;
}
*(int *)((long)param_1 + 0x24) = (int)param_1[4];
local_d8 = param_4;
local_60 = param_6;
local_54 = param_5;
local_50 = param_4;
local_44 = param_3;
local_40 = param_2;
local_38 = param_1;
cVar1 = translog_write_record
(local_78,0xc,local_68[1],local_68,
((int)local_80 - (int)local_28) + param_5 + local_110,local_10c + 2,local_108,
local_28,0);
local_29 = cVar1 != '\0';
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_29);
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
41,068 | std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool) | monkey531[P]llama/common/./json.hpp | std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
{
JSON_ASSERT(!keep_stack.empty());
// do not handle this value if we know it would be added to a discarded
// container
if (!keep_stack.back())
{
return {false, nullptr};
}
// create value
auto value = BasicJsonType(std::forward<Value>(v));
// check callback
const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
// do not handle this value if we just learnt it shall be discarded
if (!keep)
{
return {false, nullptr};
}
if (ref_stack.empty())
{
root = std::move(value);
return {true, & root};
}
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (!ref_stack.back())
{
return {false, nullptr};
}
// we now only expect arrays and objects
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
// array
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value));
return {true, & (ref_stack.back()->m_data.m_value.array->back())};
}
// object
JSON_ASSERT(ref_stack.back()->is_object());
// check if we should store an element for the current key
JSON_ASSERT(!key_keep_stack.empty());
const bool store_element = key_keep_stack.back();
key_keep_stack.pop_back();
if (!store_element)
{
return {false, nullptr};
}
JSON_ASSERT(object_element);
*object_element = std::move(value);
return {true, object_element};
} | O0 | cpp | std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool):
subq $0x148, %rsp # imm = 0x148
movb %dl, %al
movq %rdi, 0x130(%rsp)
movq %rsi, 0x128(%rsp)
andb $0x1, %al
movb %al, 0x127(%rsp)
movq 0x130(%rsp), %rdi
movq %rdi, 0x40(%rsp)
addq $0x20, %rdi
callq 0xb9100
xorb $-0x1, %al
testb $0x1, %al
jne 0xbfe20
jmp 0xbfe22
jmp 0xbfe41
leaq 0x10ee0b(%rip), %rdi # 0x1cec34
leaq 0x10caec(%rip), %rsi # 0x1cc91c
movl $0x1c28, %edx # imm = 0x1C28
leaq 0x10fc23(%rip), %rcx # 0x1cfa5f
callq 0x50230
movq 0x40(%rsp), %rdi
addq $0x20, %rdi
callq 0xb9180
movq %rax, 0x110(%rsp)
movq %rdx, 0x118(%rsp)
leaq 0x110(%rsp), %rdi
callq 0xb72c0
xorb $-0x1, %al
testb $0x1, %al
jne 0xbfe74
jmp 0xbfeaa
movb $0x0, 0x10f(%rsp)
movq $0x0, 0x100(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x10f(%rsp), %rsi
leaq 0x100(%rsp), %rdx
callq 0xb9ca0
jmp 0xc031f
movq 0x128(%rsp), %rsi
leaq 0xf0(%rsp), %rdi
callq 0xbd2c0
movb $0x1, %al
testb $0x1, 0x127(%rsp)
movb %al, 0x3f(%rsp)
jne 0xbff12
movq 0x40(%rsp), %rdi
movq %rdi, %rax
subq $-0x80, %rax
movq %rax, 0x30(%rsp)
addq $0x8, %rdi
callq 0xb9280
movq 0x30(%rsp), %rdi
movl %eax, %esi
movl $0x5, %edx
leaq 0xf0(%rsp), %rcx
callq 0xb9220
movb %al, 0x3e(%rsp)
jmp 0xbff08
movb 0x3e(%rsp), %al
movb %al, 0x3f(%rsp)
jmp 0xbff12
movb 0x3f(%rsp), %al
andb $0x1, %al
movb %al, 0xef(%rsp)
testb $0x1, 0xef(%rsp)
jne 0xbff92
movb $0x0, 0xdb(%rsp)
movq $0x0, 0xd0(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xdb(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0xb9ca0
jmp 0xbff5c
movl $0x1, 0xcc(%rsp)
jmp 0xc0312
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xe0(%rsp)
movl %eax, 0xdc(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x6e0f0
jmp 0xc0336
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb9cd0
testb $0x1, %al
jne 0xbffa6
jmp 0xc0023
leaq 0xb8(%rsp), %rdi
movq %rdi, 0x28(%rsp)
leaq 0xf0(%rsp), %rsi
callq 0x9f8d0
movq 0x28(%rsp), %rsi
movq 0x40(%rsp), %rax
movq (%rax), %rdi
callq 0xb3e10
movq 0x28(%rsp), %rdi
callq 0x6e0f0
movq 0x40(%rsp), %rax
movb $0x1, 0xb7(%rsp)
movq (%rax), %rax
movq %rax, 0xa8(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xb7(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xb9d20
jmp 0xc0013
movl $0x1, 0xcc(%rsp)
jmp 0xc0312
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb9880
cmpq $0x0, (%rax)
jne 0xc007a
movb $0x0, 0xa7(%rsp)
movq $0x0, 0x98(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xa7(%rsp), %rsi
leaq 0x98(%rsp), %rdx
callq 0xb9ca0
jmp 0xc006a
movl $0x1, 0xcc(%rsp)
jmp 0xc0312
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb9880
movq (%rax), %rdi
callq 0xa2c40
movb %al, %cl
movb $0x1, %al
testb $0x1, %cl
movb %al, 0x27(%rsp)
jne 0xc00b7
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb9880
movq (%rax), %rdi
callq 0xa2c80
movb %al, 0x27(%rsp)
movb 0x27(%rsp), %al
testb $0x1, %al
jne 0xc00c1
jmp 0xc00c3
jmp 0xc00e2
leaq 0x10ec80(%rip), %rdi # 0x1ced4a
leaq 0x10c84b(%rip), %rsi # 0x1cc91c
movl $0x1c4b, %edx # imm = 0x1C4B
leaq 0x10f982(%rip), %rcx # 0x1cfa5f
callq 0x50230
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb9880
movq (%rax), %rdi
callq 0xa2c40
testb $0x1, %al
jne 0xc00fe
jmp 0xc017b
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb9880
movq (%rax), %rax
movq 0x8(%rax), %rdi
leaq 0xf0(%rsp), %rsi
callq 0xa36d0
jmp 0xc0122
movq 0x40(%rsp), %rdi
movb $0x1, 0x97(%rsp)
addq $0x8, %rdi
callq 0xb9880
movq (%rax), %rax
movq 0x8(%rax), %rdi
callq 0xa2be0
movq %rax, 0x88(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x97(%rsp), %rsi
leaq 0x88(%rsp), %rdx
callq 0xb9d20
jmp 0xc016b
movl $0x1, 0xcc(%rsp)
jmp 0xc0312
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xb9880
movq (%rax), %rdi
callq 0xa2c80
testb $0x1, %al
jne 0xc0197
jmp 0xc0199
jmp 0xc01b8
leaq 0x10ebca(%rip), %rdi # 0x1ced6a
leaq 0x10c775(%rip), %rsi # 0x1cc91c
movl $0x1c55, %edx # imm = 0x1C55
leaq 0x10f8ac(%rip), %rcx # 0x1cfa5f
callq 0x50230
movq 0x40(%rsp), %rdi
addq $0x48, %rdi
callq 0xb9100
xorb $-0x1, %al
testb $0x1, %al
jne 0xc01ce
jmp 0xc01d0
jmp 0xc01ef
leaq 0x10ebb1(%rip), %rdi # 0x1ced88
leaq 0x10c73e(%rip), %rsi # 0x1cc91c
movl $0x1c57, %edx # imm = 0x1C57
leaq 0x10f875(%rip), %rcx # 0x1cfa5f
callq 0x50230
movq 0x40(%rsp), %rdi
addq $0x48, %rdi
callq 0xb9180
movq %rdx, 0x10(%rsp)
movq %rax, 0x18(%rsp)
jmp 0xc0209
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movq %rcx, 0x70(%rsp)
movq %rax, 0x78(%rsp)
leaq 0x70(%rsp), %rdi
callq 0xb72c0
movq 0x40(%rsp), %rdi
movb %al, 0x87(%rsp)
addq $0x48, %rdi
callq 0xb9200
jmp 0xc023e
testb $0x1, 0x87(%rsp)
jne 0xc027f
movb $0x0, 0x6f(%rsp)
movq $0x0, 0x60(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x6f(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0xb9ca0
jmp 0xc026f
movl $0x1, 0xcc(%rsp)
jmp 0xc0312
movq 0x40(%rsp), %rax
cmpq $0x0, 0x70(%rax)
je 0xc028d
jmp 0xc02ac
leaq 0x10eb0c(%rip), %rdi # 0x1ceda0
leaq 0x10c681(%rip), %rsi # 0x1cc91c
movl $0x1c60, %edx # imm = 0x1C60
leaq 0x10f7b8(%rip), %rcx # 0x1cfa5f
callq 0x50230
leaq 0x50(%rsp), %rdi
movq %rdi, (%rsp)
leaq 0xf0(%rsp), %rsi
callq 0x9f8d0
movq 0x40(%rsp), %rax
movq (%rsp), %rsi
movq %rax, %rcx
addq $0x70, %rcx
movq %rcx, 0x8(%rsp)
movq 0x70(%rax), %rdi
callq 0xb3e10
movq (%rsp), %rdi
callq 0x6e0f0
movq 0x8(%rsp), %rdx
movb $0x1, 0x4f(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x4f(%rsp), %rsi
callq 0xb9d50
jmp 0xc0307
movl $0x1, 0xcc(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x6e0f0
movb 0x138(%rsp), %al
movq 0x140(%rsp), %rdx
addq $0x148, %rsp # imm = 0x148
retq
movq 0xe0(%rsp), %rdi
callq 0x50940
nopw %cs:(%rax,%rax)
nopl (%rax)
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRSB_EESt4pairIbPSF_EOT_b:
sub rsp, 148h
mov al, dl
mov [rsp+148h+var_18], rdi
mov [rsp+148h+var_20], rsi
and al, 1
mov [rsp+148h+var_21], al
mov rdi, [rsp+148h+var_18]
mov [rsp+148h+var_108], rdi
add rdi, 20h ; ' '
call _ZNKSt6vectorIbSaIbEE5emptyEv; std::vector<bool>::empty(void)
xor al, 0FFh
test al, 1
jnz short loc_BFE20
jmp short loc_BFE22
loc_BFE20:
jmp short loc_BFE41
loc_BFE22:
lea rdi, aKeepStackEmpty; "!keep_stack.empty()"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov edx, 1C28h
lea rcx, aStdPairBoolBas_4; "std::pair<bool, BasicJsonType *> nlohma"...
call ___assert_fail
loc_BFE41:
mov rdi, [rsp+148h+var_108]
add rdi, 20h ; ' '
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
mov [rsp+148h+var_38], rax
mov [rsp+148h+var_30], rdx
lea rdi, [rsp+148h+var_38]
call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void)
xor al, 0FFh
test al, 1
jnz short loc_BFE74
jmp short loc_BFEAA
loc_BFE74:
mov [rsp+148h+var_39], 0
mov [rsp+148h+var_48], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_39]
lea rdx, [rsp+148h+var_48]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp loc_C031F
loc_BFEAA:
mov rsi, [rsp+148h+var_20]
lea rdi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
mov al, 1
test [rsp+148h+var_21], 1
mov [rsp+148h+var_109], al
jnz short loc_BFF12
mov rdi, [rsp+148h+var_108]
mov rax, rdi
sub rax, 0FFFFFFFFFFFFFF80h
mov [rsp+148h+var_118], rax
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::size(void)
mov rdi, [rsp+148h+var_118]
mov esi, eax
mov edx, 5
lea rcx, [rsp+148h+var_58]
call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)
mov [rsp+148h+var_10A], al
jmp short $+2
loc_BFF08:
mov al, [rsp+148h+var_10A]
mov [rsp+148h+var_109], al
jmp short $+2
loc_BFF12:
mov al, [rsp+148h+var_109]
and al, 1
mov [rsp+148h+var_59], al
test [rsp+148h+var_59], 1
jnz short loc_BFF92
mov [rsp+148h+var_6D], 0
mov [rsp+148h+var_78], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_6D]
lea rdx, [rsp+148h+var_78]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_BFF5C:
mov [rsp+148h+var_7C], 1
jmp loc_C0312
mov rcx, rax
mov eax, edx
mov [rsp+arg_D8], rcx
mov [rsp+arg_D4], eax
lea rdi, [rsp+arg_E8]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
jmp loc_C0336
loc_BFF92:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::empty(void)
test al, 1
jnz short loc_BFFA6
jmp short loc_C0023
loc_BFFA6:
lea rdi, [rsp+148h+var_90]
mov [rsp+148h+var_120], rdi
lea rsi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rsi, [rsp+148h+var_120]
mov rax, [rsp+148h+var_108]
mov rdi, [rax]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+148h+var_120]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rax, [rsp+148h+var_108]
mov [rsp+148h+var_91], 1
mov rax, [rax]
mov [rsp+148h+var_A0], rax
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_91]
lea rdx, [rsp+148h+var_A0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_C0013:
mov [rsp+148h+var_7C], 1
jmp loc_C0312
loc_C0023:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
cmp qword ptr [rax], 0
jnz short loc_C007A
mov [rsp+148h+var_A1], 0
mov [rsp+148h+var_B0], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_A1]
lea rdx, [rsp+148h+var_B0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_C006A:
mov [rsp+148h+var_7C], 1
jmp loc_C0312
loc_C007A:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void)
mov cl, al
mov al, 1
test cl, 1
mov [rsp+148h+var_121], al
jnz short loc_C00B7
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void)
mov [rsp+148h+var_121], al
loc_C00B7:
mov al, [rsp+148h+var_121]
test al, 1
jnz short loc_C00C1
jmp short loc_C00C3
loc_C00C1:
jmp short loc_C00E2
loc_C00C3:
lea rdi, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"...
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov edx, 1C4Bh
lea rcx, aStdPairBoolBas_4; "std::pair<bool, BasicJsonType *> nlohma"...
call ___assert_fail
loc_C00E2:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void)
test al, 1
jnz short loc_C00FE
jmp short loc_C017B
loc_C00FE:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rax, [rax]
mov rdi, [rax+8]
lea rsi, [rsp+148h+var_58]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
jmp short $+2
loc_C0122:
mov rdi, [rsp+148h+var_108]
mov [rsp+148h+var_B1], 1
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rax, [rax]
mov rdi, [rax+8]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::back(void)
mov [rsp+148h+var_C0], rax
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_B1]
lea rdx, [rsp+148h+var_C0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_C016B:
mov [rsp+148h+var_7C], 1
jmp loc_C0312
loc_C017B:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void)
test al, 1
jnz short loc_C0197
jmp short loc_C0199
loc_C0197:
jmp short loc_C01B8
loc_C0199:
lea rdi, aRefStackBackIs+20h; "ref_stack.back()->is_object()"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov edx, 1C55h
lea rcx, aStdPairBoolBas_4; "std::pair<bool, BasicJsonType *> nlohma"...
call ___assert_fail
loc_C01B8:
mov rdi, [rsp+148h+var_108]
add rdi, 48h ; 'H'
call _ZNKSt6vectorIbSaIbEE5emptyEv; std::vector<bool>::empty(void)
xor al, 0FFh
test al, 1
jnz short loc_C01CE
jmp short loc_C01D0
loc_C01CE:
jmp short loc_C01EF
loc_C01D0:
lea rdi, aKeyKeepStackEm; "!key_keep_stack.empty()"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov edx, 1C57h
lea rcx, aStdPairBoolBas_4; "std::pair<bool, BasicJsonType *> nlohma"...
call ___assert_fail
loc_C01EF:
mov rdi, [rsp+148h+var_108]
add rdi, 48h ; 'H'
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
mov [rsp+148h+var_138], rdx
mov [rsp+148h+var_130], rax
jmp short $+2
loc_C0209:
mov rax, [rsp+148h+var_138]
mov rcx, [rsp+148h+var_130]
mov [rsp+148h+var_D8], rcx
mov [rsp+148h+var_D0], rax
lea rdi, [rsp+148h+var_D8]
call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void)
mov rdi, [rsp+148h+var_108]
mov [rsp+148h+var_C1], al
add rdi, 48h ; 'H'
call _ZNSt6vectorIbSaIbEE8pop_backEv; std::vector<bool>::pop_back(void)
jmp short $+2
loc_C023E:
test [rsp+148h+var_C1], 1
jnz short loc_C027F
mov [rsp+148h+var_D9], 0
mov [rsp+148h+var_E8], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_D9]
lea rdx, [rsp+148h+var_E8]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_C026F:
mov [rsp+148h+var_7C], 1
jmp loc_C0312
loc_C027F:
mov rax, [rsp+148h+var_108]
cmp qword ptr [rax+70h], 0
jz short loc_C028D
jmp short loc_C02AC
loc_C028D:
lea rdi, aObjectElement; "object_element"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov edx, 1C60h
lea rcx, aStdPairBoolBas_4; "std::pair<bool, BasicJsonType *> nlohma"...
call ___assert_fail
loc_C02AC:
lea rdi, [rsp+148h+var_F8]
mov [rsp+148h+var_148], rdi
lea rsi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rax, [rsp+148h+var_108]
mov rsi, [rsp+148h+var_148]
mov rcx, rax
add rcx, 70h ; 'p'
mov [rsp+148h+var_140], rcx
mov rdi, [rax+70h]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+148h+var_148]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rdx, [rsp+148h+var_140]
mov [rsp+148h+var_F9], 1
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_F9]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_
jmp short $+2
loc_C0307:
mov [rsp+148h+var_7C], 1
loc_C0312:
lea rdi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
loc_C031F:
mov al, [rsp+148h+var_10]
mov rdx, [rsp+148h+var_8]
add rsp, 148h
retn
loc_C0336:
mov rdi, [rsp+arg_D8]
call __Unwind_Resume
| char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<std::string&>(
long long a1,
long long a2,
char a3)
{
long long v3; // rdx
int v4; // eax
_BYTE **v5; // rax
_BYTE **v6; // rax
_BYTE **v7; // rax
long long v8; // rax
long long v9; // rdx
long long v10; // rcx
long long v11; // r8
long long v12; // r9
long long v13; // rax
_BYTE **v14; // rax
long long v15; // rdx
bool is_object; // [rsp+27h] [rbp-121h]
char v18; // [rsp+3Fh] [rbp-109h]
char v19; // [rsp+4Fh] [rbp-F9h] BYREF
__int128 v20; // [rsp+50h] [rbp-F8h] BYREF
long long v21; // [rsp+60h] [rbp-E8h]
char v22; // [rsp+6Fh] [rbp-D9h] BYREF
_QWORD v23[2]; // [rsp+70h] [rbp-D8h] BYREF
bool v24; // [rsp+87h] [rbp-C1h]
long long v25; // [rsp+88h] [rbp-C0h] BYREF
char v26; // [rsp+97h] [rbp-B1h] BYREF
long long v27; // [rsp+98h] [rbp-B0h]
char v28; // [rsp+A7h] [rbp-A1h] BYREF
long long v29; // [rsp+A8h] [rbp-A0h] BYREF
char v30; // [rsp+B7h] [rbp-91h] BYREF
__int128 v31; // [rsp+B8h] [rbp-90h] BYREF
int v32; // [rsp+CCh] [rbp-7Ch]
long long v33; // [rsp+D0h] [rbp-78h]
_BYTE v34[21]; // [rsp+DBh] [rbp-6Dh] BYREF
_BYTE v35[16]; // [rsp+F0h] [rbp-58h] BYREF
long long v36; // [rsp+100h] [rbp-48h]
char v37; // [rsp+10Fh] [rbp-39h] BYREF
_QWORD v38[2]; // [rsp+110h] [rbp-38h] BYREF
char v39; // [rsp+127h] [rbp-21h]
long long v40; // [rsp+128h] [rbp-20h]
long long v41; // [rsp+130h] [rbp-18h]
_BYTE v42[8]; // [rsp+138h] [rbp-10h] BYREF
v41 = a1;
v40 = a2;
v39 = a3 & 1;
if ( (std::vector<bool>::empty((unsigned long long **)(a1 + 32)) & 1) != 0 )
__assert_fail(
"!keep_stack.empty()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
7208LL,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ord"
"ered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>, Value"
" = std::basic_string<char> &]");
v38[0] = std::vector<bool>::back(a1 + 32);
v38[1] = v3;
if ( std::_Bit_reference::operator bool((long long)v38) )
{
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_(
v35,
v40);
v18 = 1;
if ( (v39 & 1) == 0 )
{
v4 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::size((_QWORD *)(a1 + 8));
v18 = std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()(
(std::_Function_base *)(a1 + 128),
v4,
5,
(long long)v35);
}
v34[20] = v18 & 1;
if ( (v18 & 1) != 0 )
{
if ( (std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::empty(a1 + 8) & 1) != 0 )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
&v31,
(long long)v35);
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=(
*(_QWORD *)a1,
(long long)&v31);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v31);
v30 = 1;
v29 = *(_QWORD *)a1;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v42,
&v30,
&v29);
v32 = 1;
}
else if ( *(_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8) )
{
v5 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
is_object = 1;
if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v5) )
{
v6 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
is_object = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(*v6);
}
if ( !is_object )
__assert_fail(
"ref_stack.back()->is_array() || ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
7243LL,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohman"
"n::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered"
"_map>, Value = std::basic_string<char> &]");
v7 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v7) )
{
v8 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
*(_QWORD *)(*(_QWORD *)v8 + 8LL),
(long long)v35,
v9,
v10,
v11,
v12);
v26 = 1;
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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
v25 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::back(*(_QWORD *)(*(_QWORD *)v13 + 8LL));
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v42,
&v26,
&v25);
v32 = 1;
}
else
{
v14 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(*v14) )
__assert_fail(
"ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
7253LL,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohm"
"ann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ord"
"ered_map>, Value = std::basic_string<char> &]");
if ( (std::vector<bool>::empty((unsigned long long **)(a1 + 72)) & 1) != 0 )
__assert_fail(
"!key_keep_stack.empty()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
7255LL,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohm"
"ann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ord"
"ered_map>, Value = std::basic_string<char> &]");
v23[0] = std::vector<bool>::back(a1 + 72);
v23[1] = v15;
v24 = std::_Bit_reference::operator bool((long long)v23);
std::vector<bool>::pop_back(a1 + 72);
if ( v24 )
{
if ( !*(_QWORD *)(a1 + 112) )
__assert_fail(
"object_element",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
7264LL,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlo"
"hmann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann:"
":ordered_map>, Value = std::basic_string<char> &]");
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
&v20,
(long long)v35);
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=(
*(_QWORD *)(a1 + 112),
(long long)&v20);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v20);
v19 = 1;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_(
(long long)v42,
&v19,
(_QWORD *)(a1 + 112));
v32 = 1;
}
else
{
v22 = 0;
v21 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v42,
&v22);
v32 = 1;
}
}
}
else
{
v28 = 0;
v27 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v42,
&v28);
v32 = 1;
}
}
else
{
v34[0] = 0;
v33 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v42,
v34);
v32 = 1;
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v35);
}
else
{
v37 = 0;
v36 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v42,
&v37);
}
return v42[0];
}
| handle_value<std::__cxx11::string&>:
SUB RSP,0x148
MOV AL,DL
MOV qword ptr [RSP + 0x130],RDI
MOV qword ptr [RSP + 0x128],RSI
AND AL,0x1
MOV byte ptr [RSP + 0x127],AL
MOV RDI,qword ptr [RSP + 0x130]
MOV qword ptr [RSP + 0x40],RDI
ADD RDI,0x20
CALL 0x001b9100
XOR AL,0xff
TEST AL,0x1
JNZ 0x001bfe20
JMP 0x001bfe22
LAB_001bfe20:
JMP 0x001bfe41
LAB_001bfe22:
LEA RDI,[0x2cec34]
LEA RSI,[0x2cc91c]
MOV EDX,0x1c28
LEA RCX,[0x2cfa5f]
CALL 0x00150230
LAB_001bfe41:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x20
CALL 0x001b9180
MOV qword ptr [RSP + 0x110],RAX
MOV qword ptr [RSP + 0x118],RDX
LEA RDI,[RSP + 0x110]
CALL 0x001b72c0
XOR AL,0xff
TEST AL,0x1
JNZ 0x001bfe74
JMP 0x001bfeaa
LAB_001bfe74:
MOV byte ptr [RSP + 0x10f],0x0
MOV qword ptr [RSP + 0x100],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x10f]
LEA RDX,[RSP + 0x100]
CALL 0x001b9ca0
JMP 0x001c031f
LAB_001bfeaa:
MOV RSI,qword ptr [RSP + 0x128]
LEA RDI,[RSP + 0xf0]
CALL 0x001bd2c0
MOV AL,0x1
TEST byte ptr [RSP + 0x127],0x1
MOV byte ptr [RSP + 0x3f],AL
JNZ 0x001bff12
MOV RDI,qword ptr [RSP + 0x40]
MOV RAX,RDI
SUB RAX,-0x80
MOV qword ptr [RSP + 0x30],RAX
ADD RDI,0x8
CALL 0x001b9280
MOV RDI,qword ptr [RSP + 0x30]
MOV ESI,EAX
LAB_001bfef0:
MOV EDX,0x5
LEA RCX,[RSP + 0xf0]
CALL 0x001b9220
MOV byte ptr [RSP + 0x3e],AL
JMP 0x001bff08
LAB_001bff08:
MOV AL,byte ptr [RSP + 0x3e]
MOV byte ptr [RSP + 0x3f],AL
JMP 0x001bff12
LAB_001bff12:
MOV AL,byte ptr [RSP + 0x3f]
AND AL,0x1
MOV byte ptr [RSP + 0xef],AL
TEST byte ptr [RSP + 0xef],0x1
JNZ 0x001bff92
MOV byte ptr [RSP + 0xdb],0x0
MOV qword ptr [RSP + 0xd0],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xdb]
LEA RDX,[RSP + 0xd0]
CALL 0x001b9ca0
JMP 0x001bff5c
LAB_001bff5c:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001c0312
LAB_001bff92:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b9cd0
TEST AL,0x1
JNZ 0x001bffa6
JMP 0x001c0023
LAB_001bffa6:
LEA RDI,[RSP + 0xb8]
MOV qword ptr [RSP + 0x28],RDI
LEA RSI,[RSP + 0xf0]
CALL 0x0019f8d0
MOV RSI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x40]
MOV RDI,qword ptr [RAX]
CALL 0x001b3e10
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x0016e0f0
MOV RAX,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0xb7],0x1
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0xa8],RAX
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xb7]
LEA RDX,[RSP + 0xa8]
CALL 0x001b9d20
JMP 0x001c0013
LAB_001c0013:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001c0312
LAB_001c0023:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b9880
CMP qword ptr [RAX],0x0
JNZ 0x001c007a
MOV byte ptr [RSP + 0xa7],0x0
MOV qword ptr [RSP + 0x98],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xa7]
LEA RDX,[RSP + 0x98]
CALL 0x001b9ca0
JMP 0x001c006a
LAB_001c006a:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001c0312
LAB_001c007a:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b9880
MOV RDI,qword ptr [RAX]
CALL 0x001a2c40
MOV CL,AL
MOV AL,0x1
TEST CL,0x1
MOV byte ptr [RSP + 0x27],AL
JNZ 0x001c00b7
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b9880
MOV RDI,qword ptr [RAX]
CALL 0x001a2c80
MOV byte ptr [RSP + 0x27],AL
LAB_001c00b7:
MOV AL,byte ptr [RSP + 0x27]
TEST AL,0x1
JNZ 0x001c00c1
JMP 0x001c00c3
LAB_001c00c1:
JMP 0x001c00e2
LAB_001c00c3:
LEA RDI,[0x2ced4a]
LEA RSI,[0x2cc91c]
MOV EDX,0x1c4b
LEA RCX,[0x2cfa5f]
CALL 0x00150230
LAB_001c00e2:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b9880
MOV RDI,qword ptr [RAX]
CALL 0x001a2c40
TEST AL,0x1
JNZ 0x001c00fe
JMP 0x001c017b
LAB_001c00fe:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b9880
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0xf0]
CALL 0x001a36d0
JMP 0x001c0122
LAB_001c0122:
MOV RDI,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0x97],0x1
ADD RDI,0x8
CALL 0x001b9880
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001a2be0
MOV qword ptr [RSP + 0x88],RAX
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x97]
LEA RDX,[RSP + 0x88]
CALL 0x001b9d20
JMP 0x001c016b
LAB_001c016b:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001c0312
LAB_001c017b:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001b9880
MOV RDI,qword ptr [RAX]
CALL 0x001a2c80
TEST AL,0x1
JNZ 0x001c0197
JMP 0x001c0199
LAB_001c0197:
JMP 0x001c01b8
LAB_001c0199:
LEA RDI,[0x2ced6a]
LEA RSI,[0x2cc91c]
MOV EDX,0x1c55
LEA RCX,[0x2cfa5f]
CALL 0x00150230
LAB_001c01b8:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x48
CALL 0x001b9100
XOR AL,0xff
TEST AL,0x1
JNZ 0x001c01ce
JMP 0x001c01d0
LAB_001c01ce:
JMP 0x001c01ef
LAB_001c01d0:
LEA RDI,[0x2ced88]
LEA RSI,[0x2cc91c]
MOV EDX,0x1c57
LEA RCX,[0x2cfa5f]
CALL 0x00150230
LAB_001c01ef:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x48
CALL 0x001b9180
MOV qword ptr [RSP + 0x10],RDX
MOV qword ptr [RSP + 0x18],RAX
JMP 0x001c0209
LAB_001c0209:
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x70],RCX
MOV qword ptr [RSP + 0x78],RAX
LEA RDI,[RSP + 0x70]
CALL 0x001b72c0
MOV RDI,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0x87],AL
ADD RDI,0x48
CALL 0x001b9200
JMP 0x001c023e
LAB_001c023e:
TEST byte ptr [RSP + 0x87],0x1
JNZ 0x001c027f
MOV byte ptr [RSP + 0x6f],0x0
MOV qword ptr [RSP + 0x60],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x6f]
LEA RDX,[RSP + 0x60]
CALL 0x001b9ca0
JMP 0x001c026f
LAB_001c026f:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001c0312
LAB_001c027f:
MOV RAX,qword ptr [RSP + 0x40]
CMP qword ptr [RAX + 0x70],0x0
JZ 0x001c028d
JMP 0x001c02ac
LAB_001c028d:
LEA RDI,[0x2ceda0]
LEA RSI,[0x2cc91c]
MOV EDX,0x1c60
LEA RCX,[0x2cfa5f]
CALL 0x00150230
LAB_001c02ac:
LEA RDI,[RSP + 0x50]
MOV qword ptr [RSP],RDI
LEA RSI,[RSP + 0xf0]
CALL 0x0019f8d0
MOV RAX,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP]
MOV RCX,RAX
ADD RCX,0x70
MOV qword ptr [RSP + 0x8],RCX
MOV RDI,qword ptr [RAX + 0x70]
CALL 0x001b3e10
MOV RDI,qword ptr [RSP]
CALL 0x0016e0f0
MOV RDX,qword ptr [RSP + 0x8]
MOV byte ptr [RSP + 0x4f],0x1
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x4f]
CALL 0x001b9d50
LAB_001c0305:
JMP 0x001c0307
LAB_001c0307:
MOV dword ptr [RSP + 0xcc],0x1
LAB_001c0312:
LEA RDI,[RSP + 0xf0]
CALL 0x0016e0f0
LAB_001c031f:
MOV AL,byte ptr [RSP + 0x138]
MOV RDX,qword ptr [RSP + 0x140]
ADD RSP,0x148
RET
|
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>*>
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::handle_value<std::__cxx11::string&>(std::__cxx11::string&, bool) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::handle_value<std::__cxx11::string&>
(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this,string *param_1,bool param_2)
{
byte bVar1;
bool bVar2;
int4 uVar3;
ulong uVar4;
long *plVar5;
int8 *puVar6;
int8 uVar7;
int1 auVar8 [16];
byte local_121;
byte local_109;
int1 local_f9;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_f8 [16];
int8 local_e8;
int1 local_d9;
int1 local_d8 [16];
byte local_c1;
int8 local_c0;
int1 local_b1;
int8 local_b0;
int1 local_a1;
int8 local_a0;
int1 local_91;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_90 [20];
int4 local_7c;
int8 local_78;
int1 local_6d [20];
byte local_59;
basic_json local_58 [16];
int8 local_48;
int1 local_39;
_Bit_reference local_38 [23];
byte local_21;
string *local_20;
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*local_18;
int1 local_10 [8];
int8 local_8;
local_21 = param_2;
local_20 = param_1;
local_18 = this;
bVar1 = std::vector<bool,std::allocator<bool>>::empty
((vector<bool,std::allocator<bool>> *)(this + 0x20));
if (((bVar1 ^ 0xff) & 1) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("!keep_stack.empty()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
0x1c28,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>, Value = std::basic_string<char> &]"
);
}
local_38._0_16_ =
std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x20));
bVar2 = std::_Bit_reference::operator_cast_to_bool(local_38);
if (((bVar2 ^ 0xffU) & 1) == 0) {
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
(local_58,local_20);
local_109 = 1;
if ((local_21 & 1) == 0) {
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>*>>
::size((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
/* try { // try from 001bfef0 to 001c0304 has its CatchHandler @ 001bff6c */
local_109 = std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::operator()((function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
*)(this + 0x80),uVar3,5,local_58);
}
local_59 = local_109 & 1;
if (local_59 == 0) {
local_6d[0] = 0;
local_78 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,local_6d,&local_78);
}
else {
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>*>>
::empty((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if ((uVar4 & 1) == 0) {
plVar5 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if (*plVar5 == 0) {
local_a1 = 0;
local_b0 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_a1,&local_b0);
}
else {
puVar6 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
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>
::is_array((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar6);
local_121 = 1;
if ((bVar1 & 1) == 0) {
puVar6 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
local_121 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_object((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar6);
}
if ((local_121 & 1) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("ref_stack.back()->is_array() || ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp"
,0x1c4b,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>, Value = std::basic_string<char> &]"
);
}
puVar6 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar4 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_array((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar6);
if ((uVar4 & 1) == 0) {
puVar6 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar4 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_object((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar6);
if ((uVar4 & 1) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp"
,0x1c55,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>, Value = std::basic_string<char> &]"
);
}
bVar1 = std::vector<bool,std::allocator<bool>>::empty
((vector<bool,std::allocator<bool>> *)(this + 0x48));
if (((bVar1 ^ 0xff) & 1) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("!key_keep_stack.empty()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp"
,0x1c57,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>, Value = std::basic_string<char> &]"
);
}
local_d8 = std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x48));
local_c1 = std::_Bit_reference::operator_cast_to_bool((_Bit_reference *)local_d8);
std::vector<bool,std::allocator<bool>>::pop_back
((vector<bool,std::allocator<bool>> *)(this + 0x48));
if ((local_c1 & 1) == 0) {
local_d9 = 0;
local_e8 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_d9,&local_e8);
}
else {
if (*(long *)(this + 0x70) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("object_element",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp"
,0x1c60,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>, Value = std::basic_string<char> &]"
);
}
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_f8,local_58);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(this + 0x70),local_f8);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_f8);
local_f9 = 1;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_
(local_10,&local_f9,this + 0x70);
}
}
else {
plVar5 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(*plVar5 + 8),local_58);
local_b1 = 1;
plVar5 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
local_c0 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::back(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(*plVar5 + 8));
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_b1,&local_c0);
}
}
}
else {
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_90,local_58);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)this,local_90);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_90);
local_91 = 1;
local_a0 = *(int8 *)this;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_91,&local_a0);
}
}
local_7c = 1;
uVar7 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)local_58);
}
else {
local_39 = 0;
local_48 = 0;
uVar7 = _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_39,&local_48);
}
auVar8._1_7_ = (int7)((ulong)uVar7 >> 8);
auVar8[0] = local_10[0];
auVar8._8_8_ = local_8;
return auVar8;
}
| |
41,069 | std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool) | monkey531[P]llama/common/./json.hpp | std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
{
JSON_ASSERT(!keep_stack.empty());
// do not handle this value if we know it would be added to a discarded
// container
if (!keep_stack.back())
{
return {false, nullptr};
}
// create value
auto value = BasicJsonType(std::forward<Value>(v));
// check callback
const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
// do not handle this value if we just learnt it shall be discarded
if (!keep)
{
return {false, nullptr};
}
if (ref_stack.empty())
{
root = std::move(value);
return {true, & root};
}
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (!ref_stack.back())
{
return {false, nullptr};
}
// we now only expect arrays and objects
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
// array
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value));
return {true, & (ref_stack.back()->m_data.m_value.array->back())};
}
// object
JSON_ASSERT(ref_stack.back()->is_object());
// check if we should store an element for the current key
JSON_ASSERT(!key_keep_stack.empty());
const bool store_element = key_keep_stack.back();
key_keep_stack.pop_back();
if (!store_element)
{
return {false, nullptr};
}
JSON_ASSERT(object_element);
*object_element = std::move(value);
return {true, object_element};
} | O1 | cpp | std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movl %edx, %ebp
movq %rdi, %rbx
movq 0x30(%rdi), %rax
movl 0x38(%rdi), %ecx
cmpq %rax, 0x20(%rdi)
sete %dl
testl %ecx, %ecx
sete %dil
andb %dl, %dil
cmpb $0x1, %dil
je 0x4d0a2
movl %ecx, %ecx
movabsq $-0x8000000000000000, %r15 # imm = 0x8000000000000000
leaq -0x1(%rcx), %rdx
addq $0x3e, %rcx
testq %rdx, %rdx
cmovnsq %rdx, %rcx
sarq $0x6, %rcx
leaq (%rax,%rcx,8), %rax
leaq 0x3f(%r15), %rcx
andq %rdx, %rcx
xorl %edi, %edi
cmpq %r15, %rcx
setbe %dil
movq -0x8(%rax,%rdi,8), %rax
btq %rdx, %rax
jae 0x4cf35
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r14
movaps %xmm0, (%r14)
movq (%rsi), %rsi
movq %r14, %rdi
callq 0x40218
movq %r14, %rdi
movl $0x1, %esi
callq 0x3efdc
testb %bpl, %bpl
jne 0x4cee2
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
shrq $0x3, %rax
movl %eax, 0xc(%rsp)
movb $0x5, 0xb(%rsp)
cmpq $0x0, 0x90(%rbx)
je 0x4d0c1
leaq 0x80(%rbx), %rdi
leaq 0xc(%rsp), %rsi
leaq 0xb(%rsp), %rdx
leaq 0x10(%rsp), %rcx
callq *0x98(%rbx)
testb %al, %al
je 0x4d076
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x4cf3f
movq -0x8(%rax), %rax
testq %rax, %rax
je 0x4d076
movzbl (%rax), %ecx
cmpl $0x1, %ecx
je 0x4cf99
cmpl $0x2, %ecx
jne 0x4d0c6
movq 0x8(%rax), %rdi
leaq 0x10(%rsp), %rsi
callq 0x40686
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %r14
addq $-0x10, %r14
jmp 0x4d072
xorl %ebx, %ebx
xorl %r14d, %r14d
jmp 0x4d092
leaq 0x10(%rsp), %r14
movaps (%r14), %xmm0
leaq 0x30(%rsp), %r15
movaps %xmm0, (%r15)
movq %r14, %rdi
xorl %esi, %esi
callq 0x3efdc
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %r15, %rdi
movl $0x1, %esi
callq 0x3efdc
movq (%rbx), %rdi
movq %r15, %rsi
callq 0x487f0
movq %r15, %rdi
xorl %esi, %esi
callq 0x3efdc
movq %r15, %rdi
callq 0x4bfb8
movq (%rbx), %r14
jmp 0x4d072
movq 0x58(%rbx), %rax
movl 0x60(%rbx), %ecx
cmpq %rax, 0x48(%rbx)
sete %dl
testl %ecx, %ecx
sete %sil
andb %dl, %sil
cmpb $0x1, %sil
je 0x4d0e5
movl %ecx, %esi
leaq -0x1(%rsi), %rcx
movq %rsi, %rdx
addq $0x3e, %rdx
testq %rcx, %rcx
cmovnsq %rcx, %rdx
sarq $0x6, %rdx
leaq (%rax,%rdx,8), %rdi
leaq 0x3f(%r15), %rdx
andq %rcx, %rdx
xorl %r8d, %r8d
cmpq %r15, %rdx
setbe %r8b
movl $0x1, %edx
shlq %cl, %rdx
andq -0x8(%rdi,%r8,8), %rdx
subl $0x1, %esi
movl %esi, 0x60(%rbx)
jae 0x4d00b
movl $0x3f, 0x60(%rbx)
addq $-0x8, %rax
movq %rax, 0x58(%rbx)
testq %rdx, %rdx
je 0x4d076
cmpq $0x0, 0x70(%rbx)
je 0x4d104
leaq 0x10(%rsp), %r14
movaps (%r14), %xmm0
leaq 0x20(%rsp), %r15
movaps %xmm0, (%r15)
movq %r14, %rdi
xorl %esi, %esi
callq 0x3efdc
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %r15, %rdi
movl $0x1, %esi
callq 0x3efdc
movq 0x70(%rbx), %rdi
movq %r15, %rsi
callq 0x487f0
movq %r15, %rdi
xorl %esi, %esi
callq 0x3efdc
movq %r15, %rdi
callq 0x4bfb8
movq 0x70(%rbx), %r14
movb $0x1, %bl
jmp 0x4d07b
xorl %ebx, %ebx
xorl %r14d, %r14d
leaq 0x10(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x3efdc
movq %r15, %rdi
callq 0x4bfb8
movl %ebx, %eax
movq %r14, %rdx
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x700a4(%rip), %rdi # 0xbd14d
leaq 0x6dd7e(%rip), %rsi # 0xbae2e
leaq 0x70b3b(%rip), %rcx # 0xbdbf2
movl $0x1c28, %edx # imm = 0x1C28
callq 0x18470
callq 0x18260
leaq 0x70196(%rip), %rdi # 0xbd263
leaq 0x6dd5a(%rip), %rsi # 0xbae2e
leaq 0x70b17(%rip), %rcx # 0xbdbf2
movl $0x1c4b, %edx # imm = 0x1C4B
callq 0x18470
leaq 0x701b5(%rip), %rdi # 0xbd2a1
leaq 0x6dd3b(%rip), %rsi # 0xbae2e
leaq 0x70af8(%rip), %rcx # 0xbdbf2
movl $0x1c57, %edx # imm = 0x1C57
callq 0x18470
leaq 0x701ae(%rip), %rdi # 0xbd2b9
leaq 0x6dd1c(%rip), %rsi # 0xbae2e
leaq 0x70ad9(%rip), %rcx # 0xbdbf2
movl $0x1c60, %edx # imm = 0x1C60
callq 0x18470
movq %rax, %rbx
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x3efdc
movq %r14, %rdi
callq 0x4bfb8
movq %rbx, %rdi
callq 0x18b90
nop
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRlEESt4pairIbPSF_EOT_b:
push rbp
push r15
push r14
push rbx
sub rsp, 48h
mov ebp, edx
mov rbx, rdi
mov rax, [rdi+30h]
mov ecx, [rdi+38h]
cmp [rdi+20h], rax
setz dl
test ecx, ecx
setz dil
and dil, dl
cmp dil, 1
jz loc_4D0A2
mov ecx, ecx
mov r15, 8000000000000000h
lea rdx, [rcx-1]
add rcx, 3Eh ; '>'
test rdx, rdx
cmovns rcx, rdx
sar rcx, 6
lea rax, [rax+rcx*8]
lea rcx, [r15+3Fh]
and rcx, rdx
xor edi, edi
cmp rcx, r15
setbe dil
mov rax, [rax+rdi*8-8]
bt rax, rdx
jnb loc_4CF35
xorps xmm0, xmm0
lea r14, [rsp+68h+var_58]
movaps xmmword ptr [r14], xmm0
mov rsi, [rsi]
mov rdi, r14
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)
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)
test bpl, bpl
jnz short loc_4CEE2
mov rax, [rbx+10h]
sub rax, [rbx+8]
shr rax, 3
mov [rsp+68h+var_5C], eax
mov [rsp+68h+var_5D], 5
cmp qword ptr [rbx+90h], 0
jz loc_4D0C1
lea rdi, [rbx+80h]
lea rsi, [rsp+68h+var_5C]
lea rdx, [rsp+68h+var_5D]
lea rcx, [rsp+68h+var_58]
call qword ptr [rbx+98h]
test al, al
jz loc_4D076
loc_4CEE2:
mov rax, [rbx+10h]
cmp [rbx+8], rax
jz short loc_4CF3F
mov rax, [rax-8]
test rax, rax
jz loc_4D076
movzx ecx, byte ptr [rax]
cmp ecx, 1
jz loc_4CF99
cmp ecx, 2
jnz loc_4D0C6
mov rdi, [rax+8]
lea rsi, [rsp+68h+var_58]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
mov rax, [rbx+10h]
mov rax, [rax-8]
mov rax, [rax+8]
mov r14, [rax+8]
add r14, 0FFFFFFFFFFFFFFF0h
jmp loc_4D072
loc_4CF35:
xor ebx, ebx
xor r14d, r14d
jmp loc_4D092
loc_4CF3F:
lea r14, [rsp+68h+var_58]
movaps xmm0, xmmword ptr [r14]
lea r15, [rsp+68h+var_38]
movaps xmmword ptr [r15], xmm0
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov byte ptr [r14], 0
mov qword ptr [r14+8], 0
mov rdi, r15
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, [rbx]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov r14, [rbx]
jmp loc_4D072
loc_4CF99:
mov rax, [rbx+58h]
mov ecx, [rbx+60h]
cmp [rbx+48h], rax
setz dl
test ecx, ecx
setz sil
and sil, dl
cmp sil, 1
jz loc_4D0E5
mov esi, ecx
lea rcx, [rsi-1]
mov rdx, rsi
add rdx, 3Eh ; '>'
test rcx, rcx
cmovns rdx, rcx
sar rdx, 6
lea rdi, [rax+rdx*8]
lea rdx, [r15+3Fh]
and rdx, rcx
xor r8d, r8d
cmp rdx, r15
setbe r8b
mov edx, 1
shl rdx, cl
and rdx, [rdi+r8*8-8]
sub esi, 1
mov [rbx+60h], esi
jnb short loc_4D00B
mov dword ptr [rbx+60h], 3Fh ; '?'
add rax, 0FFFFFFFFFFFFFFF8h
mov [rbx+58h], rax
loc_4D00B:
test rdx, rdx
jz short loc_4D076
cmp qword ptr [rbx+70h], 0
jz loc_4D104
lea r14, [rsp+68h+var_58]
movaps xmm0, xmmword ptr [r14]
lea r15, [rsp+68h+var_48]
movaps xmmword ptr [r15], xmm0
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov byte ptr [r14], 0
mov qword ptr [r14+8], 0
mov rdi, r15
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, [rbx+70h]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov r14, [rbx+70h]
loc_4D072:
mov bl, 1
jmp short loc_4D07B
loc_4D076:
xor ebx, ebx
xor r14d, r14d
loc_4D07B:
lea r15, [rsp+68h+var_58]
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_4D092:
mov eax, ebx
mov rdx, r14
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_4D0A2:
lea rdi, aKeepStackEmpty; "!keep_stack.empty()"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aStdPairBoolBas_3; "std::pair<bool, BasicJsonType *> nlohma"...
mov edx, 1C28h
call ___assert_fail
loc_4D0C1:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
loc_4D0C6:
lea rdi, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"...
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aStdPairBoolBas_3; "std::pair<bool, BasicJsonType *> nlohma"...
mov edx, 1C4Bh
call ___assert_fail
loc_4D0E5:
lea rdi, aKeyKeepStackEm; "!key_keep_stack.empty()"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aStdPairBoolBas_3; "std::pair<bool, BasicJsonType *> nlohma"...
mov edx, 1C57h
call ___assert_fail
loc_4D104:
lea rdi, aObjectElement; "object_element"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aStdPairBoolBas_3; "std::pair<bool, BasicJsonType *> nlohma"...
mov edx, 1C60h
call ___assert_fail
mov rbx, rax
lea r14, [rsp+68h+var_58]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, rbx
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<long &>(
long long a1,
_QWORD *a2,
char a3)
{
unsigned int v4; // ebx
long long v5; // rax
unsigned int v6; // ecx
signed long long v7; // rdx
long long v8; // rcx
long long v9; // rax
long long v10; // rax
unsigned __int8 *v11; // rax
int v12; // ecx
long long v13; // rax
unsigned int v14; // ecx
long long v15; // rsi
long long v16; // rcx
long long v17; // rdx
long long v18; // rdx
char v20; // [rsp+Bh] [rbp-5Dh] BYREF
int v21; // [rsp+Ch] [rbp-5Ch] BYREF
__int128 v22; // [rsp+10h] [rbp-58h] BYREF
__int128 v23; // [rsp+20h] [rbp-48h] BYREF
_OWORD v24[3]; // [rsp+30h] [rbp-38h] BYREF
v4 = a1;
v5 = *(_QWORD *)(a1 + 48);
v6 = *(_DWORD *)(a1 + 56);
if ( *(_QWORD *)(a1 + 32) == v5 && v6 == 0 )
__assert_fail(
"!keep_stack.empty()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
7208LL,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ord"
"ered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>, Value = long &]");
v7 = v6 - 1LL;
v8 = v6 + 62LL;
if ( v7 >= 0 )
v8 = v7;
v9 = *(_QWORD *)(v5 + 8 * (v8 >> 6) + 8LL * ((v7 & 0x800000000000003FLL) <= 0x8000000000000000LL) - 8);
if ( _bittest64(&v9, v7) )
{
v22 = 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>>(
&v22,
*a2);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v22);
if ( a3 )
goto LABEL_8;
v21 = (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3;
v20 = 5;
if ( !*(_QWORD *)(a1 + 144) )
std::__throw_bad_function_call();
if ( (*(unsigned __int8 ( **)(long long, int *, char *, __int128 *))(a1 + 152))(a1 + 128, &v21, &v20, &v22) )
{
LABEL_8:
v10 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(a1 + 8) == v10 )
{
v24[0] = v22;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v22);
LOBYTE(v22) = 0;
*((_QWORD *)&v22 + 1) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v24);
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=(
*(_QWORD *)a1,
(long long)v24);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v24);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data((void **)v24);
LABEL_23:
LOBYTE(v4) = 1;
LABEL_25:
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v22);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data((void **)&v22);
return v4;
}
v11 = *(unsigned __int8 **)(v10 - 8);
if ( v11 )
{
v12 = *v11;
if ( v12 != 1 )
{
if ( v12 != 2 )
__assert_fail(
"ref_stack.back()->is_array() || ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
7243LL,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohm"
"ann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ord"
"ered_map>, Value = long &]");
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
*((_QWORD *)v11 + 1),
(long long)&v22);
goto LABEL_23;
}
v13 = *(_QWORD *)(a1 + 88);
v14 = *(_DWORD *)(a1 + 96);
if ( *(_QWORD *)(a1 + 72) == v13 && v14 == 0 )
__assert_fail(
"!key_keep_stack.empty()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
7255LL,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohman"
"n::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered"
"_map>, Value = long &]");
v15 = v14;
v16 = v14 - 1LL;
v17 = v15 + 62;
if ( v16 >= 0 )
v17 = v16;
v18 = *(_QWORD *)(v13 + 8 * (v17 >> 6) + 8LL * ((v16 & 0x800000000000003FLL) <= 0x8000000000000000LL) - 8) & (1LL << v16);
*(_DWORD *)(a1 + 96) = v15 - 1;
if ( !(_DWORD)v15 )
{
*(_DWORD *)(a1 + 96) = 63;
*(_QWORD *)(a1 + 88) = v13 - 8;
}
if ( v18 )
{
if ( !*(_QWORD *)(a1 + 112) )
__assert_fail(
"object_element",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
7264LL,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohm"
"ann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ord"
"ered_map>, Value = long &]");
v23 = v22;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v22);
LOBYTE(v22) = 0;
*((_QWORD *)&v22 + 1) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v23);
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=(
*(_QWORD *)(a1 + 112),
(long long)&v23);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v23);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data((void **)&v23);
goto LABEL_23;
}
}
}
v4 = 0;
goto LABEL_25;
}
return 0;
}
| handle_value<long&>:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV EBP,EDX
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x30]
MOV ECX,dword ptr [RDI + 0x38]
CMP qword ptr [RDI + 0x20],RAX
SETZ DL
TEST ECX,ECX
SETZ DIL
AND DIL,DL
CMP DIL,0x1
JZ 0x0014d0a2
MOV ECX,ECX
MOV R15,-0x8000000000000000
LEA RDX,[RCX + -0x1]
ADD RCX,0x3e
TEST RDX,RDX
CMOVNS RCX,RDX
SAR RCX,0x6
LEA RAX,[RAX + RCX*0x8]
LEA RCX,[R15 + 0x3f]
AND RCX,RDX
XOR EDI,EDI
CMP RCX,R15
SETBE DIL
MOV RAX,qword ptr [RAX + RDI*0x8 + -0x8]
BT RAX,RDX
JNC 0x0014cf35
XORPS XMM0,XMM0
LEA R14,[RSP + 0x10]
MOVAPS xmmword ptr [R14],XMM0
MOV RSI,qword ptr [RSI]
MOV RDI,R14
CALL 0x00140218
MOV RDI,R14
MOV ESI,0x1
CALL 0x0013efdc
TEST BPL,BPL
JNZ 0x0014cee2
MOV RAX,qword ptr [RBX + 0x10]
SUB RAX,qword ptr [RBX + 0x8]
SHR RAX,0x3
MOV dword ptr [RSP + 0xc],EAX
MOV byte ptr [RSP + 0xb],0x5
CMP qword ptr [RBX + 0x90],0x0
JZ 0x0014d0c1
LEA RDI,[RBX + 0x80]
LAB_0014cec5:
LEA RSI,[RSP + 0xc]
LEA RDX,[RSP + 0xb]
LEA RCX,[RSP + 0x10]
CALL qword ptr [RBX + 0x98]
TEST AL,AL
JZ 0x0014d076
LAB_0014cee2:
MOV RAX,qword ptr [RBX + 0x10]
CMP qword ptr [RBX + 0x8],RAX
JZ 0x0014cf3f
MOV RAX,qword ptr [RAX + -0x8]
TEST RAX,RAX
JZ 0x0014d076
MOVZX ECX,byte ptr [RAX]
CMP ECX,0x1
JZ 0x0014cf99
CMP ECX,0x2
JNZ 0x0014d0c6
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0x10]
CALL 0x00140686
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV R14,qword ptr [RAX + 0x8]
ADD R14,-0x10
JMP 0x0014d072
LAB_0014cf35:
XOR EBX,EBX
XOR R14D,R14D
JMP 0x0014d092
LAB_0014cf3f:
LEA R14,[RSP + 0x10]
MOVAPS XMM0,xmmword ptr [R14]
LEA R15,[RSP + 0x30]
MOVAPS xmmword ptr [R15],XMM0
MOV RDI,R14
XOR ESI,ESI
CALL 0x0013efdc
MOV byte ptr [R14],0x0
MOV qword ptr [R14 + 0x8],0x0
MOV RDI,R15
MOV ESI,0x1
CALL 0x0013efdc
MOV RDI,qword ptr [RBX]
MOV RSI,R15
CALL 0x001487f0
MOV RDI,R15
XOR ESI,ESI
CALL 0x0013efdc
MOV RDI,R15
CALL 0x0014bfb8
MOV R14,qword ptr [RBX]
JMP 0x0014d072
LAB_0014cf99:
MOV RAX,qword ptr [RBX + 0x58]
MOV ECX,dword ptr [RBX + 0x60]
CMP qword ptr [RBX + 0x48],RAX
SETZ DL
TEST ECX,ECX
SETZ SIL
AND SIL,DL
CMP SIL,0x1
JZ 0x0014d0e5
MOV ESI,ECX
LEA RCX,[RSI + -0x1]
MOV RDX,RSI
ADD RDX,0x3e
TEST RCX,RCX
CMOVNS RDX,RCX
SAR RDX,0x6
LEA RDI,[RAX + RDX*0x8]
LEA RDX,[R15 + 0x3f]
AND RDX,RCX
XOR R8D,R8D
CMP RDX,R15
SETBE R8B
MOV EDX,0x1
SHL RDX,CL
AND RDX,qword ptr [RDI + R8*0x8 + -0x8]
SUB ESI,0x1
MOV dword ptr [RBX + 0x60],ESI
JNC 0x0014d00b
MOV dword ptr [RBX + 0x60],0x3f
ADD RAX,-0x8
MOV qword ptr [RBX + 0x58],RAX
LAB_0014d00b:
TEST RDX,RDX
JZ 0x0014d076
CMP qword ptr [RBX + 0x70],0x0
JZ 0x0014d104
LEA R14,[RSP + 0x10]
MOVAPS XMM0,xmmword ptr [R14]
LEA R15,[RSP + 0x20]
MOVAPS xmmword ptr [R15],XMM0
MOV RDI,R14
XOR ESI,ESI
CALL 0x0013efdc
MOV byte ptr [R14],0x0
MOV qword ptr [R14 + 0x8],0x0
MOV RDI,R15
MOV ESI,0x1
CALL 0x0013efdc
MOV RDI,qword ptr [RBX + 0x70]
MOV RSI,R15
CALL 0x001487f0
MOV RDI,R15
XOR ESI,ESI
CALL 0x0013efdc
MOV RDI,R15
CALL 0x0014bfb8
MOV R14,qword ptr [RBX + 0x70]
LAB_0014d072:
MOV BL,0x1
JMP 0x0014d07b
LAB_0014d076:
XOR EBX,EBX
XOR R14D,R14D
LAB_0014d07b:
LEA R15,[RSP + 0x10]
MOV RDI,R15
XOR ESI,ESI
CALL 0x0013efdc
MOV RDI,R15
CALL 0x0014bfb8
LAB_0014d092:
MOV EAX,EBX
MOV RDX,R14
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0014d0a2:
LEA RDI,[0x1bd14d]
LEA RSI,[0x1bae2e]
LEA RCX,[0x1bdbf2]
MOV EDX,0x1c28
CALL 0x00118470
LAB_0014d0c1:
CALL 0x00118260
LAB_0014d0c6:
LEA RDI,[0x1bd263]
LEA RSI,[0x1bae2e]
LEA RCX,[0x1bdbf2]
MOV EDX,0x1c4b
CALL 0x00118470
LAB_0014d0e5:
LEA RDI,[0x1bd2a1]
LEA RSI,[0x1bae2e]
LEA RCX,[0x1bdbf2]
MOV EDX,0x1c57
CALL 0x00118470
LAB_0014d104:
LEA RDI,[0x1bd2b9]
LEA RSI,[0x1bae2e]
LEA RCX,[0x1bdbf2]
MOV EDX,0x1c60
CALL 0x00118470
|
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>*>
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::handle_value<long&>(long&, bool) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::handle_value<long&>
(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this,long *param_1,bool param_2)
{
uint uVar1;
char *pcVar2;
char cVar3;
ulong uVar4;
ulong uVar5;
bool bVar6;
long lVar7;
int1 auVar8 [16];
int1 local_5d;
int4 local_5c;
ulong local_58;
int8 uStack_50;
ulong local_48;
int8 uStack_40;
ulong local_38;
int8 uStack_30;
uVar1 = *(uint *)(this + 0x38);
if (uVar1 == 0 && *(long *)(this + 0x20) == *(long *)(this + 0x30)) {
/* WARNING: Subroutine does not return */
__assert_fail("!keep_stack.empty()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
0x1c28,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>, Value = long &]"
);
}
uVar5 = (ulong)uVar1 - 1;
uVar4 = (ulong)uVar1 + 0x3e;
if (-1 < (long)uVar5) {
uVar4 = uVar5;
}
if ((*(ulong *)(*(long *)(this + 0x30) + ((long)uVar4 >> 6) * 8 + -8 +
(ulong)((uVar5 & 0x800000000000003f) < 0x8000000000000001) * 8) >> (uVar5 & 0x3f) &
1) == 0) {
uVar5 = 0;
lVar7 = 0;
goto LAB_0014d092;
}
local_58 = 0;
uStack_50 = 0;
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>>
(&local_58,*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>
::assert_invariant(SUB81(&local_58,0));
if (param_2) {
LAB_0014cee2:
if (*(long *)(this + 8) == *(long *)(this + 0x10)) {
local_38 = local_58;
uStack_30 = uStack_50;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_58,0));
local_58 = local_58 & 0xffffffffffffff00;
uStack_50 = 0;
bVar6 = SUB81((data *)&local_38,0);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar6);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)this,(data *)&local_38);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(bVar6);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_38);
lVar7 = *(long *)this;
}
else {
pcVar2 = *(char **)(*(long *)(this + 0x10) + -8);
if (pcVar2 == (char *)0x0) goto LAB_0014d076;
if (*pcVar2 == '\x01') {
lVar7 = *(long *)(this + 0x58);
uVar1 = *(uint *)(this + 0x60);
if (uVar1 == 0 && *(long *)(this + 0x48) == lVar7) {
/* WARNING: Subroutine does not return */
__assert_fail("!key_keep_stack.empty()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp"
,0x1c57,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>, Value = long &]"
);
}
uVar5 = (ulong)uVar1 - 1;
uVar4 = (ulong)uVar1 + 0x3e;
if (-1 < (long)uVar5) {
uVar4 = uVar5;
}
uVar4 = *(ulong *)(lVar7 + ((long)uVar4 >> 6) * 8 + -8 +
(ulong)((uVar5 & 0x800000000000003f) < 0x8000000000000001) * 8);
*(uint *)(this + 0x60) = uVar1 - 1;
if (uVar1 == 0) {
*(int4 *)(this + 0x60) = 0x3f;
*(long *)(this + 0x58) = lVar7 + -8;
}
if ((1L << ((byte)uVar5 & 0x3f) & uVar4) == 0) goto LAB_0014d076;
if (*(long *)(this + 0x70) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("object_element",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp"
,0x1c60,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>, Value = long &]"
);
}
local_48 = local_58;
uStack_40 = uStack_50;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_58,0));
local_58 = local_58 & 0xffffffffffffff00;
uStack_50 = 0;
bVar6 = SUB81((data *)&local_48,0);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar6);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(this + 0x70),(data *)&local_48);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar6);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_48);
lVar7 = *(long *)(this + 0x70);
}
else {
if (*pcVar2 != '\x02') {
/* WARNING: Subroutine does not return */
__assert_fail("ref_stack.back()->is_array() || ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp"
,0x1c4b,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>, Value = long &]"
);
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(pcVar2 + 8),(basic_json *)&local_58);
lVar7 = *(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10;
}
}
uVar5 = CONCAT71((int7)((ulong)this >> 8),1);
}
else {
local_5c = (int4)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3);
local_5d = 5;
if (*(long *)(this + 0x90) == 0) {
/* WARNING: Subroutine does not return */
std::__throw_bad_function_call();
}
/* try { // try from 0014cec5 to 0014d0c5 has its CatchHandler @ 0014d123 */
cVar3 = (**(code **)(this + 0x98))(this + 0x80,&local_5c,&local_5d,&local_58);
if (cVar3 != '\0') goto LAB_0014cee2;
LAB_0014d076:
uVar5 = 0;
lVar7 = 0;
}
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81((data *)&local_58,0));
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_58);
LAB_0014d092:
auVar8._0_8_ = uVar5 & 0xffffffff;
auVar8._8_8_ = lVar7;
return auVar8;
}
| |
41,070 | std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool) | monkey531[P]llama/common/./json.hpp | std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
{
JSON_ASSERT(!keep_stack.empty());
// do not handle this value if we know it would be added to a discarded
// container
if (!keep_stack.back())
{
return {false, nullptr};
}
// create value
auto value = BasicJsonType(std::forward<Value>(v));
// check callback
const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
// do not handle this value if we just learnt it shall be discarded
if (!keep)
{
return {false, nullptr};
}
if (ref_stack.empty())
{
root = std::move(value);
return {true, & root};
}
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (!ref_stack.back())
{
return {false, nullptr};
}
// we now only expect arrays and objects
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
// array
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value));
return {true, & (ref_stack.back()->m_data.m_value.array->back())};
}
// object
JSON_ASSERT(ref_stack.back()->is_object());
// check if we should store an element for the current key
JSON_ASSERT(!key_keep_stack.empty());
const bool store_element = key_keep_stack.back();
key_keep_stack.pop_back();
if (!store_element)
{
return {false, nullptr};
}
JSON_ASSERT(object_element);
*object_element = std::move(value);
return {true, object_element};
} | O2 | cpp | std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movl %edx, %ebp
movq %rdi, %rbx
movq 0x20(%rdi), %rax
cmpq 0x30(%rdi), %rax
jne 0x45ec3
cmpl $0x0, 0x38(%rbx)
je 0x4601a
leaq 0x20(%rbx), %rdi
callq 0x442a8
testq %rdx, (%rax)
je 0x45f5d
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0x2b1d0
testb %bpl, %bpl
jne 0x45f0e
leaq 0x80(%rbx), %rdi
movq 0x10(%rbx), %rsi
subq 0x8(%rbx), %rsi
shrq $0x3, %rsi
pushq $0x5
popq %rdx
leaq 0x8(%rsp), %rcx
callq 0x442d6
testb %al, %al
je 0x45ffb
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x45f67
movq -0x8(%rax), %rax
testq %rax, %rax
je 0x45ffb
movzbl (%rax), %ecx
cmpl $0x1, %ecx
je 0x45f91
cmpl $0x2, %ecx
jne 0x46039
movq 0x8(%rax), %rdi
leaq 0x8(%rsp), %rsi
callq 0x3c71c
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %r14
addq $-0x10, %r14
jmp 0x45ff7
xorl %ebx, %ebx
xorl %r14d, %r14d
jmp 0x4600a
leaq 0x28(%rsp), %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x3b352
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x429ca
movq %r14, %rdi
callq 0x2b1f0
movq (%rbx), %r14
jmp 0x45ff7
movq 0x48(%rbx), %rax
cmpq 0x58(%rbx), %rax
jne 0x45fa5
cmpl $0x0, 0x60(%rbx)
je 0x46058
leaq 0x48(%rbx), %rdi
callq 0x442a8
movq %rdx, %r14
leaq 0x58(%rbx), %rdi
movq (%rax), %r15
callq 0x4393c
testq %r14, %r15
je 0x45ffb
cmpq $0x0, 0x70(%rbx)
je 0x46077
leaq 0x18(%rsp), %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x3b352
movq 0x70(%rbx), %rdi
movq %r14, %rsi
callq 0x429ca
movq %r14, %rdi
callq 0x2b1f0
movq 0x70(%rbx), %r14
movb $0x1, %bl
jmp 0x46000
xorl %ebx, %ebx
xorl %r14d, %r14d
leaq 0x8(%rsp), %rdi
callq 0x2b1f0
movl %ebx, %eax
movq %r14, %rdx
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5612c(%rip), %rdi # 0x9c14d
leaq 0x53e06(%rip), %rsi # 0x99e2e
leaq 0x56adb(%rip), %rcx # 0x9cb0a
movl $0x1c28, %edx # imm = 0x1C28
callq 0x204a0
leaq 0x56223(%rip), %rdi # 0x9c263
leaq 0x53de7(%rip), %rsi # 0x99e2e
leaq 0x56abc(%rip), %rcx # 0x9cb0a
movl $0x1c4b, %edx # imm = 0x1C4B
callq 0x204a0
leaq 0x56242(%rip), %rdi # 0x9c2a1
leaq 0x53dc8(%rip), %rsi # 0x99e2e
leaq 0x56a9d(%rip), %rcx # 0x9cb0a
movl $0x1c57, %edx # imm = 0x1C57
callq 0x204a0
leaq 0x5623b(%rip), %rdi # 0x9c2b9
leaq 0x53da9(%rip), %rsi # 0x99e2e
leaq 0x56a7e(%rip), %rcx # 0x9cb0a
movl $0x1c60, %edx # imm = 0x1C60
callq 0x204a0
jmp 0x46098
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2b1f0
movq %rbx, %rdi
callq 0x20b90
nop
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIDnEESt4pairIbPSF_EOT_b:
push rbp
push r15
push r14
push rbx
sub rsp, 38h
mov ebp, edx
mov rbx, rdi
mov rax, [rdi+20h]
cmp rax, [rdi+30h]
jnz short loc_45EC3
cmp dword ptr [rbx+38h], 0
jz loc_4601A
loc_45EC3:
lea rdi, [rbx+20h]
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
test [rax], rdx
jz loc_45F5D
lea rdi, [rsp+58h+var_50]
xor esi, esi
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(decltype(nullptr))
test bpl, bpl
jnz short loc_45F0E
lea rdi, [rbx+80h]
mov rsi, [rbx+10h]
sub rsi, [rbx+8]
shr rsi, 3
push 5
pop rdx
lea rcx, [rsp+58h+var_50]
call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)
test al, al
jz loc_45FFB
loc_45F0E:
mov rax, [rbx+10h]
cmp [rbx+8], rax
jz short loc_45F67
mov rax, [rax-8]
test rax, rax
jz loc_45FFB
movzx ecx, byte ptr [rax]
cmp ecx, 1
jz short loc_45F91
cmp ecx, 2
jnz loc_46039
mov rdi, [rax+8]
lea rsi, [rsp+58h+var_50]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
mov rax, [rbx+10h]
mov rax, [rax-8]
mov rax, [rax+8]
mov r14, [rax+8]
add r14, 0FFFFFFFFFFFFFFF0h
jmp loc_45FF7
loc_45F5D:
xor ebx, ebx
xor r14d, r14d
jmp loc_4600A
loc_45F67:
lea r14, [rsp+58h+var_30]
lea rsi, [rsp+58h+var_50]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rdi, [rbx]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov r14, [rbx]
jmp short loc_45FF7
loc_45F91:
mov rax, [rbx+48h]
cmp rax, [rbx+58h]
jnz short loc_45FA5
cmp dword ptr [rbx+60h], 0
jz loc_46058
loc_45FA5:
lea rdi, [rbx+48h]
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
mov r14, rdx
lea rdi, [rbx+58h]; this
mov r15, [rax]
call _ZNSt18_Bit_iterator_base12_M_bump_downEv; std::_Bit_iterator_base::_M_bump_down(void)
test r15, r14
jz short loc_45FFB
cmp qword ptr [rbx+70h], 0
jz loc_46077
lea r14, [rsp+58h+var_40]
lea rsi, [rsp+58h+var_50]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rdi, [rbx+70h]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov r14, [rbx+70h]
loc_45FF7:
mov bl, 1
jmp short loc_46000
loc_45FFB:
xor ebx, ebx
xor r14d, r14d
loc_46000:
lea rdi, [rsp+58h+var_50]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
loc_4600A:
mov eax, ebx
mov rdx, r14
add rsp, 38h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_4601A:
lea rdi, aKeepStackEmpty; "!keep_stack.empty()"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aStdPairBoolBas_2; "std::pair<bool, BasicJsonType *> nlohma"...
mov edx, 1C28h
call ___assert_fail
loc_46039:
lea rdi, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"...
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aStdPairBoolBas_2; "std::pair<bool, BasicJsonType *> nlohma"...
mov edx, 1C4Bh
call ___assert_fail
loc_46058:
lea rdi, aKeyKeepStackEm; "!key_keep_stack.empty()"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aStdPairBoolBas_2; "std::pair<bool, BasicJsonType *> nlohma"...
mov edx, 1C57h
call ___assert_fail
loc_46077:
lea rdi, aObjectElement; "object_element"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aStdPairBoolBas_2; "std::pair<bool, BasicJsonType *> nlohma"...
mov edx, 1C60h
call ___assert_fail
jmp short $+2
loc_46098:
mov rbx, rax
lea rdi, [rsp+58h+var_50]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rdi, rbx
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<decltype(nullptr)>(
long long a1,
long long a2,
char a3)
{
unsigned int v4; // ebx
_QWORD *v5; // rax
long long v6; // rdx
long long v7; // rax
unsigned __int8 *v8; // rax
int v9; // ecx
long long *v10; // rax
long long v11; // rdx
long long v12; // r14
long long v13; // r15
_BYTE v15[16]; // [rsp+8h] [rbp-50h] BYREF
__int128 v16; // [rsp+18h] [rbp-40h] BYREF
_OWORD v17[3]; // [rsp+28h] [rbp-30h] BYREF
v4 = a1;
if ( *(_QWORD *)(a1 + 32) == *(_QWORD *)(a1 + 48) && !*(_DWORD *)(a1 + 56) )
__assert_fail(
"!keep_stack.empty()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
7208LL,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ord"
"ered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>, Value"
" = std::nullptr_t]");
v5 = (_QWORD *)std::vector<bool>::back(a1 + 32);
if ( (v6 & *v5) != 0 )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json((long long)v15);
if ( a3
|| (unsigned __int8)std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()(
a1 + 128,
(*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3,
5) )
{
v7 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(a1 + 8) == v7 )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v17,
(long long)v15);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(_QWORD *)a1,
(long long)v17);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v17);
LABEL_18:
LOBYTE(v4) = 1;
LABEL_20:
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v15);
return v4;
}
v8 = *(unsigned __int8 **)(v7 - 8);
if ( v8 )
{
v9 = *v8;
if ( v9 != 1 )
{
if ( v9 != 2 )
__assert_fail(
"ref_stack.back()->is_array() || ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
7243LL,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohm"
"ann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ord"
"ered_map>, Value = std::nullptr_t]");
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
*((_QWORD *)v8 + 1),
(long long)v15);
goto LABEL_18;
}
if ( *(_QWORD *)(a1 + 72) == *(_QWORD *)(a1 + 88) && !*(_DWORD *)(a1 + 96) )
__assert_fail(
"!key_keep_stack.empty()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
7255LL,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohman"
"n::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered"
"_map>, Value = std::nullptr_t]");
v10 = (long long *)std::vector<bool>::back(a1 + 72);
v12 = v11;
v13 = *v10;
std::_Bit_iterator_base::_M_bump_down((std::_Bit_iterator_base *)(a1 + 88));
if ( (v12 & v13) != 0 )
{
if ( !*(_QWORD *)(a1 + 112) )
__assert_fail(
"object_element",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
7264LL,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohm"
"ann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ord"
"ered_map>, Value = std::nullptr_t]");
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
&v16,
(long long)v15);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(_QWORD *)(a1 + 112),
(long long)&v16);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v16);
goto LABEL_18;
}
}
}
v4 = 0;
goto LABEL_20;
}
return 0;
}
| handle_value<decltype(nullptr)>:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x38
MOV EBP,EDX
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x20]
CMP RAX,qword ptr [RDI + 0x30]
JNZ 0x00145ec3
CMP dword ptr [RBX + 0x38],0x0
JZ 0x0014601a
LAB_00145ec3:
LEA RDI,[RBX + 0x20]
CALL 0x001442a8
TEST qword ptr [RAX],RDX
JZ 0x00145f5d
LEA RDI,[RSP + 0x8]
XOR ESI,ESI
CALL 0x0012b1d0
TEST BPL,BPL
JNZ 0x00145f0e
LEA RDI,[RBX + 0x80]
MOV RSI,qword ptr [RBX + 0x10]
SUB RSI,qword ptr [RBX + 0x8]
SHR RSI,0x3
LAB_00145ef9:
PUSH 0x5
POP RDX
LEA RCX,[RSP + 0x8]
CALL 0x001442d6
TEST AL,AL
JZ 0x00145ffb
LAB_00145f0e:
MOV RAX,qword ptr [RBX + 0x10]
CMP qword ptr [RBX + 0x8],RAX
JZ 0x00145f67
MOV RAX,qword ptr [RAX + -0x8]
TEST RAX,RAX
JZ 0x00145ffb
MOVZX ECX,byte ptr [RAX]
CMP ECX,0x1
JZ 0x00145f91
CMP ECX,0x2
JNZ 0x00146039
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0x8]
CALL 0x0013c71c
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV R14,qword ptr [RAX + 0x8]
ADD R14,-0x10
JMP 0x00145ff7
LAB_00145f5d:
XOR EBX,EBX
XOR R14D,R14D
JMP 0x0014600a
LAB_00145f67:
LEA R14,[RSP + 0x28]
LEA RSI,[RSP + 0x8]
MOV RDI,R14
CALL 0x0013b352
MOV RDI,qword ptr [RBX]
MOV RSI,R14
CALL 0x001429ca
MOV RDI,R14
CALL 0x0012b1f0
MOV R14,qword ptr [RBX]
JMP 0x00145ff7
LAB_00145f91:
MOV RAX,qword ptr [RBX + 0x48]
CMP RAX,qword ptr [RBX + 0x58]
JNZ 0x00145fa5
CMP dword ptr [RBX + 0x60],0x0
JZ 0x00146058
LAB_00145fa5:
LEA RDI,[RBX + 0x48]
CALL 0x001442a8
LAB_00145fae:
MOV R14,RDX
LEA RDI,[RBX + 0x58]
MOV R15,qword ptr [RAX]
CALL 0x0014393c
TEST R15,R14
JZ 0x00145ffb
CMP qword ptr [RBX + 0x70],0x0
JZ 0x00146077
LEA R14,[RSP + 0x18]
LEA RSI,[RSP + 0x8]
MOV RDI,R14
CALL 0x0013b352
MOV RDI,qword ptr [RBX + 0x70]
MOV RSI,R14
CALL 0x001429ca
MOV RDI,R14
CALL 0x0012b1f0
MOV R14,qword ptr [RBX + 0x70]
LAB_00145ff7:
MOV BL,0x1
JMP 0x00146000
LAB_00145ffb:
XOR EBX,EBX
XOR R14D,R14D
LAB_00146000:
LEA RDI,[RSP + 0x8]
CALL 0x0012b1f0
LAB_0014600a:
MOV EAX,EBX
MOV RDX,R14
ADD RSP,0x38
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0014601a:
LEA RDI,[0x19c14d]
LEA RSI,[0x199e2e]
LEA RCX,[0x19cb0a]
MOV EDX,0x1c28
CALL 0x001204a0
LAB_00146039:
LEA RDI,[0x19c263]
LEA RSI,[0x199e2e]
LEA RCX,[0x19cb0a]
MOV EDX,0x1c4b
CALL 0x001204a0
LAB_00146058:
LEA RDI,[0x19c2a1]
LEA RSI,[0x199e2e]
LEA RCX,[0x19cb0a]
MOV EDX,0x1c57
CALL 0x001204a0
LAB_00146077:
LEA RDI,[0x19c2b9]
LEA RSI,[0x199e2e]
LEA RCX,[0x19cb0a]
MOV EDX,0x1c60
CALL 0x001204a0
|
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>*>
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::handle_value<decltype(nullptr)>(decltype(nullptr)&&, bool) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::handle_value<decltype(nullptr)>
(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this,_func_decltype_nullptr **param_1,bool param_2)
{
char *pcVar1;
char cVar2;
ulong uVar3;
long lVar4;
int1 auVar5 [16];
basic_json local_50 [16];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_40 [16];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 [16];
if ((*(long *)(this + 0x20) == *(long *)(this + 0x30)) && (*(int *)(this + 0x38) == 0)) {
/* WARNING: Subroutine does not return */
__assert_fail("!keep_stack.empty()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
0x1c28,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>, Value = std::nullptr_t]"
);
}
auVar5 = std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x20));
if ((*auVar5._0_8_ & auVar5._8_8_) == 0) {
uVar3 = 0;
lVar4 = 0;
goto LAB_0014600a;
}
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json((_func_decltype_nullptr *)local_50);
if (param_2) {
LAB_00145f0e:
if (*(long *)(this + 8) == *(long *)(this + 0x10)) {
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_30,local_50);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)this,local_30);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_30);
lVar4 = *(long *)this;
}
else {
pcVar1 = *(char **)(*(long *)(this + 0x10) + -8);
if (pcVar1 == (char *)0x0) goto LAB_00145ffb;
if (*pcVar1 == '\x01') {
if ((*(long *)(this + 0x48) == *(long *)(this + 0x58)) && (*(int *)(this + 0x60) == 0)) {
/* WARNING: Subroutine does not return */
__assert_fail("!key_keep_stack.empty()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp"
,0x1c57,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>, Value = std::nullptr_t]"
);
}
/* try { // try from 00145fa5 to 00145fad has its CatchHandler @ 00146096 */
auVar5 = std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x48));
uVar3 = *auVar5._0_8_;
std::_Bit_iterator_base::_M_bump_down((_Bit_iterator_base *)(this + 0x58));
if ((uVar3 & auVar5._8_8_) == 0) goto LAB_00145ffb;
if (*(long *)(this + 0x70) == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("object_element",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp"
,0x1c60,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>, Value = std::nullptr_t]"
);
}
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_40,local_50);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(this + 0x70),local_40);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_40);
lVar4 = *(long *)(this + 0x70);
}
else {
if (*pcVar1 != '\x02') {
/* WARNING: Subroutine does not return */
__assert_fail("ref_stack.back()->is_array() || ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp"
,0x1c4b,
"std::pair<bool, BasicJsonType *> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<nlohmann::ordered_map>>::handle_value(Value &&, const bool) [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>, Value = std::nullptr_t]"
);
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(pcVar1 + 8),local_50);
lVar4 = *(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10;
}
}
uVar3 = CONCAT71((int7)((ulong)this >> 8),1);
}
else {
/* try { // try from 00145ef9 to 00145f43 has its CatchHandler @ 00146098 */
cVar2 = std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::operator()(this + 0x80,(ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3,5,
local_50);
if (cVar2 != '\0') goto LAB_00145f0e;
LAB_00145ffb:
uVar3 = 0;
lVar4 = 0;
}
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)local_50);
LAB_0014600a:
auVar5._0_8_ = uVar3 & 0xffffffff;
auVar5._8_8_ = lVar4;
return auVar5;
}
| |
41,071 | flush_cached_blocks | eloqsql/storage/maria/ma_pagecache.c | static int flush_cached_blocks(PAGECACHE *pagecache,
PAGECACHE_FILE *file,
PAGECACHE_BLOCK_LINK **cache,
PAGECACHE_BLOCK_LINK **end,
enum flush_type type,
int *first_errno)
{
int rc= PCFLUSH_OK;
my_bool error;
uint count= (uint) (end-cache);
DBUG_ENTER("flush_cached_blocks");
*first_errno= 0;
/* Don't lock the cache during the flush */
pagecache_pthread_mutex_unlock(&pagecache->cache_lock);
/*
As all blocks referred in 'cache' are marked by PCBLOCK_IN_FLUSH
we are guaranteed that no thread will change them
*/
qsort((uchar*) cache, count, sizeof(*cache), (qsort_cmp) cmp_sec_link);
pagecache_pthread_mutex_lock(&pagecache->cache_lock);
for (; cache != end; cache++)
{
PAGECACHE_BLOCK_LINK *block= *cache;
/*
In the case of non_transactional tables we want to flush also
block pinned with reads. This is becasue we may have other
threads reading the block during flush, as non transactional
tables can have many readers while the one writer is doing the
flush.
We don't want to do flush pinned blocks during checkpoint.
We detect the checkpoint case by checking if type is LAZY.
*/
if ((type == FLUSH_KEEP_LAZY && block->pins) || block->wlocks)
{
KEYCACHE_DBUG_PRINT("flush_cached_blocks",
("block: %u (%p) pinned",
PCBLOCK_NUMBER(pagecache, block), block));
DBUG_PRINT("info", ("block: %u (%p) pinned",
PCBLOCK_NUMBER(pagecache, block), block));
PCBLOCK_INFO(block);
/* undo the mark put by flush_pagecache_blocks_int(): */
block->status&= ~PCBLOCK_IN_FLUSH;
rc|= PCFLUSH_PINNED;
DBUG_PRINT("warning", ("Page pinned"));
unreg_request(pagecache, block, 1);
if (!*first_errno)
*first_errno= HA_ERR_INTERNAL_ERROR;
continue;
}
if (make_lock_and_pin(pagecache, block,
PAGECACHE_LOCK_READ, PAGECACHE_PIN, FALSE))
DBUG_ASSERT(0);
KEYCACHE_PRINT("flush_cached_blocks",
("block: %u (%p) to be flushed",
PCBLOCK_NUMBER(pagecache, block), block));
DBUG_PRINT("info", ("block: %u (%p) to be flushed",
PCBLOCK_NUMBER(pagecache, block), block));
PCBLOCK_INFO(block);
/**
@todo IO If page is contiguous with next page to flush, group flushes
in one single my_pwrite().
*/
/**
It is important to use block->hash_link->file below and not 'file', as
the first one is right and the second may have different out-of-date
content (see StaleFilePointersInFlush in ma_checkpoint.c).
@todo change argument of functions to be File.
*/
pagecache_pthread_mutex_unlock(&pagecache->cache_lock);
error= pagecache_fwrite(pagecache, &block->hash_link->file,
block->buffer,
block->hash_link->pageno,
block->type,
pagecache->readwrite_flags);
pagecache_pthread_mutex_lock(&pagecache->cache_lock);
if (make_lock_and_pin(pagecache, block,
PAGECACHE_LOCK_READ_UNLOCK,
PAGECACHE_UNPIN, FALSE))
DBUG_ASSERT(0);
pagecache->global_cache_write++;
if (error)
{
block->status|= PCBLOCK_ERROR;
block->error= (int16) my_errno;
my_debug_put_break_here();
if (!*first_errno)
*first_errno= my_errno ? my_errno : -1;
rc|= PCFLUSH_ERROR;
}
/*
Let to proceed for possible waiting requests to write to the block page.
It might happen only during an operation to resize the key cache.
*/
if (block->wqueue[COND_FOR_SAVED].last_thread)
wqueue_release_queue(&block->wqueue[COND_FOR_SAVED]);
/* type will never be FLUSH_IGNORE_CHANGED here */
if (! (type == FLUSH_KEEP || type == FLUSH_KEEP_LAZY ||
type == FLUSH_FORCE_WRITE))
{
if (!free_block(pagecache, block, 1))
{
pagecache->blocks_changed--;
pagecache->global_blocks_changed--;
}
else
{
block->status&= ~PCBLOCK_IN_FLUSH;
link_to_file_list(pagecache, block, file, 1);
}
}
else
{
block->status&= ~PCBLOCK_IN_FLUSH;
link_to_file_list(pagecache, block, file, 1);
unreg_request(pagecache, block, 1);
}
}
DBUG_RETURN(rc);
} | O3 | c | flush_cached_blocks:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %r14
movl %r8d, -0x2c(%rbp)
movq %rdx, %r12
movq %rsi, -0x38(%rbp)
movq %rdi, %r13
movq %rcx, -0x48(%rbp)
movq %rcx, %rbx
subq %rdx, %rbx
shrq $0x3, %rbx
movl $0x0, (%r9)
leaq 0xc8(%rdi), %r15
movq 0x108(%rdi), %rdi
testq %rdi, %rdi
jne 0x35451
movq %r15, %rdi
callq 0x291e0
movl %ebx, %esi
leaq 0x258(%rip), %rcx # 0x3547f
movl $0x8, %edx
movq %r12, %rdi
callq 0x295d0
cmpq $0x0, 0x108(%r13)
jne 0x35466
movq %r15, %rdi
callq 0x29220
cmpq -0x48(%rbp), %r12
movl -0x2c(%rbp), %eax
je 0x3543c
movq %r15, -0x50(%rbp)
xorl %r15d, %r15d
movq %r14, -0x40(%rbp)
movq (%r12), %rbx
cmpl $0x4, %eax
jne 0x35271
cmpl $0x0, 0x64(%rbx)
jne 0x35277
cmpl $0x0, 0x68(%rbx)
je 0x352a5
andb $-0x11, 0x74(%rbx)
orl $0x2, %r15d
movq %r13, %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0x320f7
cmpl $0x0, (%r14)
jne 0x353c0
movl $0x7a, (%r14)
jmp 0x353c0
movl %r15d, -0x30(%rbp)
movq %r13, %rdi
movq %rbx, %rsi
movl $0x3, %edx
movl $0x2, %ecx
callq 0x31f87
movq 0x108(%r13), %rdi
testq %rdi, %rdi
jne 0x3540e
movq -0x50(%rbp), %r15
movq %r15, %rdi
callq 0x291e0
movq 0x20(%rbx), %rsi
movq 0x30(%rbx), %rdx
movq 0x60(%rsi), %rcx
addq $0x18, %rsi
movq 0x198(%r13), %r8
movq %r13, %rdi
callq 0x34108
movl %eax, %r14d
cmpq $0x0, 0x108(%r13)
jne 0x35423
movq %r15, %rdi
callq 0x29220
movq %r13, %rdi
movq %rbx, %rsi
movl $0x5, %edx
movl $0x3, %ecx
callq 0x31f87
incq 0x178(%r13)
testb %r14b, %r14b
movl -0x30(%rbp), %r15d
je 0x35364
orb $0x1, 0x74(%rbx)
callq 0xa1b22
movzwl (%rax), %eax
movw %ax, 0x76(%rbx)
movq -0x40(%rbp), %r14
cmpl $0x0, (%r14)
jne 0x35372
callq 0xa1b22
cmpl $0x0, (%rax)
je 0x3536a
callq 0xa1b22
movl (%rax), %eax
jmp 0x3536f
movq -0x40(%rbp), %r14
jmp 0x35376
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
movl %eax, (%r14)
orl $0x1, %r15d
cmpq $0x0, 0x50(%rbx)
je 0x35386
leaq 0x50(%rbx), %rdi
callq 0xa674f
movl -0x2c(%rbp), %eax
cmpl $0x4, %eax
ja 0x353d3
movl $0x19, %ecx
btl %eax, %ecx
jae 0x353d3
andb $-0x11, 0x74(%rbx)
movq %r13, %rdi
movq %rbx, %rsi
movq -0x38(%rbp), %rdx
movl $0x1, %ecx
callq 0x34e82
movq %r13, %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0x320f7
movl -0x2c(%rbp), %eax
addq $0x8, %r12
cmpq -0x48(%rbp), %r12
jne 0x35262
jmp 0x3543f
movq %r13, %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0x34ca9
testb %al, %al
je 0x35401
andb $-0x11, 0x74(%rbx)
movq %r13, %rdi
movq %rbx, %rsi
movq -0x38(%rbp), %rdx
movl $0x1, %ecx
callq 0x34e82
jmp 0x353c0
decq 0x58(%r13)
decq 0x168(%r13)
jmp 0x353c0
leaq 0x350bfb(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x352ce
movq %r15, %rdi
leaq 0xa4185(%rip), %rsi # 0xd95b2
movl $0x12dd, %edx # imm = 0x12DD
callq 0x2eb8f
jmp 0x35312
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x350bb8(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x35216
leaq 0xa4145(%rip), %rsi # 0xd95b2
movq %r15, %rdi
movl $0x12a3, %edx # imm = 0x12A3
callq 0x2eb8f
jmp 0x3524a
| flush_cached_blocks:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r14, r9
mov [rbp+var_2C], r8d
mov r12, rdx
mov [rbp+var_38], rsi
mov r13, rdi
mov [rbp+var_48], rcx
mov rbx, rcx
sub rbx, rdx
shr rbx, 3
mov dword ptr [r9], 0
lea r15, [rdi+0C8h]
mov rdi, [rdi+108h]
test rdi, rdi
jnz loc_35451
loc_35216:
mov rdi, r15
call _pthread_mutex_unlock
mov esi, ebx
lea rcx, cmp_sec_link
mov edx, 8
mov rdi, r12
call _qsort
cmp qword ptr [r13+108h], 0
jnz loc_35466
mov rdi, r15
call _pthread_mutex_lock
loc_3524A:
cmp r12, [rbp+var_48]
mov eax, [rbp+var_2C]
jz loc_3543C
mov [rbp+var_50], r15
xor r15d, r15d
mov [rbp+var_40], r14
loc_35262:
mov rbx, [r12]
cmp eax, 4
jnz short loc_35271
cmp dword ptr [rbx+64h], 0
jnz short loc_35277
loc_35271:
cmp dword ptr [rbx+68h], 0
jz short loc_352A5
loc_35277:
and byte ptr [rbx+74h], 0EFh
or r15d, 2
mov rdi, r13
mov rsi, rbx
mov edx, 1
call unreg_request
cmp dword ptr [r14], 0
jnz loc_353C0
mov dword ptr [r14], 7Ah ; 'z'
jmp loc_353C0
loc_352A5:
mov [rbp+var_30], r15d
mov rdi, r13
mov rsi, rbx
mov edx, 3
mov ecx, 2
call make_lock_and_pin
mov rdi, [r13+108h]
test rdi, rdi
jnz loc_3540E
loc_352CE:
mov r15, [rbp+var_50]
mov rdi, r15
call _pthread_mutex_unlock
mov rsi, [rbx+20h]
mov rdx, [rbx+30h]
mov rcx, [rsi+60h]
add rsi, 18h
mov r8, [r13+198h]
mov rdi, r13
call pagecache_fwrite
mov r14d, eax
cmp qword ptr [r13+108h], 0
jnz loc_35423
mov rdi, r15
call _pthread_mutex_lock
loc_35312:
mov rdi, r13
mov rsi, rbx
mov edx, 5
mov ecx, 3
call make_lock_and_pin
inc qword ptr [r13+178h]
test r14b, r14b
mov r15d, [rbp+var_30]
jz short loc_35364
or byte ptr [rbx+74h], 1
call _my_thread_var
movzx eax, word ptr [rax]
mov [rbx+76h], ax
mov r14, [rbp+var_40]
cmp dword ptr [r14], 0
jnz short loc_35372
call _my_thread_var
cmp dword ptr [rax], 0
jz short loc_3536A
call _my_thread_var
mov eax, [rax]
jmp short loc_3536F
loc_35364:
mov r14, [rbp+var_40]
jmp short loc_35376
loc_3536A:
mov eax, 0FFFFFFFFh
loc_3536F:
mov [r14], eax
loc_35372:
or r15d, 1
loc_35376:
cmp qword ptr [rbx+50h], 0
jz short loc_35386
lea rdi, [rbx+50h]
call wqueue_release_queue
loc_35386:
mov eax, [rbp+var_2C]
cmp eax, 4
ja short loc_353D3
mov ecx, 19h
bt ecx, eax
jnb short loc_353D3
and byte ptr [rbx+74h], 0EFh
mov rdi, r13
mov rsi, rbx
mov rdx, [rbp+var_38]
mov ecx, 1
call link_to_file_list
mov rdi, r13
mov rsi, rbx
mov edx, 1
call unreg_request
loc_353C0:
mov eax, [rbp+var_2C]
add r12, 8
cmp r12, [rbp+var_48]
jnz loc_35262
jmp short loc_3543F
loc_353D3:
mov rdi, r13
mov rsi, rbx
mov edx, 1
call free_block
test al, al
jz short loc_35401
and byte ptr [rbx+74h], 0EFh
mov rdi, r13
mov rsi, rbx
mov rdx, [rbp+var_38]
mov ecx, 1
call link_to_file_list
jmp short loc_353C0
loc_35401:
dec qword ptr [r13+58h]
dec qword ptr [r13+168h]
jmp short loc_353C0
loc_3540E:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_352CE
loc_35423:
mov rdi, r15
lea rsi, aWorkspaceLlm4b_25; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 12DDh
call psi_mutex_lock
jmp loc_35312
loc_3543C:
xor r15d, r15d
loc_3543F:
mov eax, r15d
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_35451:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_35216
loc_35466:
lea rsi, aWorkspaceLlm4b_25; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, r15
mov edx, 12A3h
call psi_mutex_lock
jmp loc_3524A
| long long flush_cached_blocks(_QWORD *a1, long long a2, long long *a3, long long *a4, unsigned int a5, int *a6)
{
int *v6; // r14
long long *v7; // r12
unsigned long long v8; // rbx
long long v9; // r15
unsigned int v10; // eax
unsigned int v11; // r15d
long long v12; // rbx
char v13; // r14
long long v14; // rdx
long long v15; // rcx
long long v16; // r8
long long v17; // rdx
long long v18; // rdx
int v19; // eax
long long v21; // [rsp+0h] [rbp-50h]
int *v23; // [rsp+10h] [rbp-40h]
v6 = a6;
v7 = a3;
v8 = (unsigned long long)((char *)a4 - (char *)a3) >> 3;
*a6 = 0;
v9 = (long long)(a1 + 25);
if ( a1[33] )
PSI_server[44]();
pthread_mutex_unlock(v9);
qsort(v7, (unsigned int)v8, 8LL, cmp_sec_link);
if ( a1[33] )
psi_mutex_lock(v9, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x12A3u);
else
pthread_mutex_lock(v9);
v10 = a5;
if ( v7 == a4 )
{
return 0;
}
else
{
v21 = (long long)(a1 + 25);
v11 = 0;
v23 = v6;
do
{
v12 = *v7;
if ( v10 == 4 && *(_DWORD *)(v12 + 100) || *(_DWORD *)(v12 + 104) )
{
*(_BYTE *)(v12 + 116) &= ~0x10u;
v11 |= 2u;
unreg_request(a1, v12, 1);
if ( !*v6 )
*v6 = 122;
}
else
{
make_lock_and_pin((long long)a1, v12, 3, 2);
if ( a1[33] )
PSI_server[44]();
pthread_mutex_unlock(v21);
v13 = pagecache_fwrite(
(long long)a1,
*(_QWORD *)(v12 + 32) + 24LL,
*(_QWORD *)(v12 + 48),
*(_QWORD *)(*(_QWORD *)(v12 + 32) + 96LL),
a1[51]);
if ( a1[33] )
psi_mutex_lock(v21, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x12DDu);
else
pthread_mutex_lock(v21);
make_lock_and_pin((long long)a1, v12, 5, 3);
++a1[47];
if ( v13 )
{
*(_BYTE *)(v12 + 116) |= 1u;
*(_WORD *)(v12 + 118) = *(_WORD *)my_thread_var(a1, v12, v14, v15, v16);
v6 = v23;
if ( !*v23 )
{
if ( *(_DWORD *)my_thread_var(a1, v12, v17, v15, v16) )
v19 = *(_DWORD *)my_thread_var(a1, v12, v18, v15, v16);
else
v19 = -1;
*v23 = v19;
}
v11 |= 1u;
}
else
{
v6 = v23;
}
if ( *(_QWORD *)(v12 + 80) )
wqueue_release_queue(v12 + 80);
if ( a5 <= 4 && (v15 = 25LL, _bittest((const int *)&v15, a5)) )
{
*(_BYTE *)(v12 + 116) &= ~0x10u;
link_to_file_list((long long)a1, v12, a2, 1);
unreg_request(a1, v12, 1);
}
else if ( (unsigned __int8)free_block(a1, v12, 1LL, v15, v16) )
{
*(_BYTE *)(v12 + 116) &= ~0x10u;
link_to_file_list((long long)a1, v12, a2, 1);
}
else
{
--a1[11];
--a1[45];
}
}
v10 = a5;
++v7;
}
while ( v7 != a4 );
}
return v11;
}
| flush_cached_blocks:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R14,R9
MOV dword ptr [RBP + -0x2c],R8D
MOV R12,RDX
MOV qword ptr [RBP + -0x38],RSI
MOV R13,RDI
MOV qword ptr [RBP + -0x48],RCX
MOV RBX,RCX
SUB RBX,RDX
SHR RBX,0x3
MOV dword ptr [R9],0x0
LEA R15,[RDI + 0xc8]
MOV RDI,qword ptr [RDI + 0x108]
TEST RDI,RDI
JNZ 0x00135451
LAB_00135216:
MOV RDI,R15
CALL 0x001291e0
MOV ESI,EBX
LEA RCX,[0x13547f]
MOV EDX,0x8
MOV RDI,R12
CALL 0x001295d0
CMP qword ptr [R13 + 0x108],0x0
JNZ 0x00135466
MOV RDI,R15
CALL 0x00129220
LAB_0013524a:
CMP R12,qword ptr [RBP + -0x48]
MOV EAX,dword ptr [RBP + -0x2c]
JZ 0x0013543c
MOV qword ptr [RBP + -0x50],R15
XOR R15D,R15D
MOV qword ptr [RBP + -0x40],R14
LAB_00135262:
MOV RBX,qword ptr [R12]
CMP EAX,0x4
JNZ 0x00135271
CMP dword ptr [RBX + 0x64],0x0
JNZ 0x00135277
LAB_00135271:
CMP dword ptr [RBX + 0x68],0x0
JZ 0x001352a5
LAB_00135277:
AND byte ptr [RBX + 0x74],0xef
OR R15D,0x2
MOV RDI,R13
MOV RSI,RBX
MOV EDX,0x1
CALL 0x001320f7
CMP dword ptr [R14],0x0
JNZ 0x001353c0
MOV dword ptr [R14],0x7a
JMP 0x001353c0
LAB_001352a5:
MOV dword ptr [RBP + -0x30],R15D
MOV RDI,R13
MOV RSI,RBX
MOV EDX,0x3
MOV ECX,0x2
CALL 0x00131f87
MOV RDI,qword ptr [R13 + 0x108]
TEST RDI,RDI
JNZ 0x0013540e
LAB_001352ce:
MOV R15,qword ptr [RBP + -0x50]
MOV RDI,R15
CALL 0x001291e0
MOV RSI,qword ptr [RBX + 0x20]
MOV RDX,qword ptr [RBX + 0x30]
MOV RCX,qword ptr [RSI + 0x60]
ADD RSI,0x18
MOV R8,qword ptr [R13 + 0x198]
MOV RDI,R13
CALL 0x00134108
MOV R14D,EAX
CMP qword ptr [R13 + 0x108],0x0
JNZ 0x00135423
MOV RDI,R15
CALL 0x00129220
LAB_00135312:
MOV RDI,R13
MOV RSI,RBX
MOV EDX,0x5
MOV ECX,0x3
CALL 0x00131f87
INC qword ptr [R13 + 0x178]
TEST R14B,R14B
MOV R15D,dword ptr [RBP + -0x30]
JZ 0x00135364
OR byte ptr [RBX + 0x74],0x1
CALL 0x001a1b22
MOVZX EAX,word ptr [RAX]
MOV word ptr [RBX + 0x76],AX
MOV R14,qword ptr [RBP + -0x40]
CMP dword ptr [R14],0x0
JNZ 0x00135372
CALL 0x001a1b22
CMP dword ptr [RAX],0x0
JZ 0x0013536a
CALL 0x001a1b22
MOV EAX,dword ptr [RAX]
JMP 0x0013536f
LAB_00135364:
MOV R14,qword ptr [RBP + -0x40]
JMP 0x00135376
LAB_0013536a:
MOV EAX,0xffffffff
LAB_0013536f:
MOV dword ptr [R14],EAX
LAB_00135372:
OR R15D,0x1
LAB_00135376:
CMP qword ptr [RBX + 0x50],0x0
JZ 0x00135386
LEA RDI,[RBX + 0x50]
CALL 0x001a674f
LAB_00135386:
MOV EAX,dword ptr [RBP + -0x2c]
CMP EAX,0x4
JA 0x001353d3
MOV ECX,0x19
BT ECX,EAX
JNC 0x001353d3
AND byte ptr [RBX + 0x74],0xef
MOV RDI,R13
MOV RSI,RBX
MOV RDX,qword ptr [RBP + -0x38]
MOV ECX,0x1
CALL 0x00134e82
MOV RDI,R13
MOV RSI,RBX
MOV EDX,0x1
CALL 0x001320f7
LAB_001353c0:
MOV EAX,dword ptr [RBP + -0x2c]
ADD R12,0x8
CMP R12,qword ptr [RBP + -0x48]
JNZ 0x00135262
JMP 0x0013543f
LAB_001353d3:
MOV RDI,R13
MOV RSI,RBX
MOV EDX,0x1
CALL 0x00134ca9
TEST AL,AL
JZ 0x00135401
AND byte ptr [RBX + 0x74],0xef
MOV RDI,R13
MOV RSI,RBX
MOV RDX,qword ptr [RBP + -0x38]
MOV ECX,0x1
CALL 0x00134e82
JMP 0x001353c0
LAB_00135401:
DEC qword ptr [R13 + 0x58]
DEC qword ptr [R13 + 0x168]
JMP 0x001353c0
LAB_0013540e:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x001352ce
LAB_00135423:
MOV RDI,R15
LEA RSI,[0x1d95b2]
MOV EDX,0x12dd
CALL 0x0012eb8f
JMP 0x00135312
LAB_0013543c:
XOR R15D,R15D
LAB_0013543f:
MOV EAX,R15D
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00135451:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x00135216
LAB_00135466:
LEA RSI,[0x1d95b2]
MOV RDI,R15
MOV EDX,0x12a3
CALL 0x0012eb8f
JMP 0x0013524a
|
uint flush_cached_blocks(long param_1,int8 param_2,long *param_3,long *param_4,uint param_5,
int *param_6)
{
pthread_mutex_t *__mutex;
long lVar1;
char cVar2;
int iVar3;
int2 *puVar4;
int *piVar5;
uint uVar6;
*param_6 = 0;
__mutex = (pthread_mutex_t *)(param_1 + 200);
if (*(long *)(param_1 + 0x108) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
qsort(param_3,(ulong)((long)param_4 - (long)param_3) >> 3 & 0xffffffff,8,cmp_sec_link);
if (*(long *)(param_1 + 0x108) == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",
0x12a3);
}
if (param_3 == param_4) {
uVar6 = 0;
}
else {
uVar6 = 0;
do {
lVar1 = *param_3;
if (((param_5 == 4) && (*(int *)(lVar1 + 100) != 0)) || (*(int *)(lVar1 + 0x68) != 0)) {
*(byte *)(lVar1 + 0x74) = *(byte *)(lVar1 + 0x74) & 0xef;
uVar6 = uVar6 | 2;
unreg_request(param_1,lVar1,1);
if (*param_6 == 0) {
*param_6 = 0x7a;
}
}
else {
make_lock_and_pin(param_1,lVar1,3,2);
if (*(long *)(param_1 + 0x108) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
cVar2 = pagecache_fwrite(param_1,*(long *)(lVar1 + 0x20) + 0x18,
*(int8 *)(lVar1 + 0x30),
*(int8 *)(*(long *)(lVar1 + 0x20) + 0x60),
*(int8 *)(param_1 + 0x198));
if (*(long *)(param_1 + 0x108) == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",
0x12dd);
}
make_lock_and_pin(param_1,lVar1,5,3);
*(long *)(param_1 + 0x178) = *(long *)(param_1 + 0x178) + 1;
if (cVar2 != '\0') {
*(byte *)(lVar1 + 0x74) = *(byte *)(lVar1 + 0x74) | 1;
puVar4 = (int2 *)_my_thread_var();
*(int2 *)(lVar1 + 0x76) = *puVar4;
if (*param_6 == 0) {
piVar5 = (int *)_my_thread_var();
if (*piVar5 == 0) {
iVar3 = -1;
}
else {
piVar5 = (int *)_my_thread_var();
iVar3 = *piVar5;
}
*param_6 = iVar3;
}
uVar6 = uVar6 | 1;
}
if (*(long *)(lVar1 + 0x50) != 0) {
wqueue_release_queue(lVar1 + 0x50);
}
if ((param_5 < 5) && ((0x19U >> (param_5 & 0x1f) & 1) != 0)) {
*(byte *)(lVar1 + 0x74) = *(byte *)(lVar1 + 0x74) & 0xef;
link_to_file_list(param_1,lVar1,param_2,1);
unreg_request(param_1,lVar1,1);
}
else {
cVar2 = free_block(param_1,lVar1,1);
if (cVar2 == '\0') {
*(long *)(param_1 + 0x58) = *(long *)(param_1 + 0x58) + -1;
*(long *)(param_1 + 0x168) = *(long *)(param_1 + 0x168) + -1;
}
else {
*(byte *)(lVar1 + 0x74) = *(byte *)(lVar1 + 0x74) & 0xef;
link_to_file_list(param_1,lVar1,param_2,1);
}
}
}
param_3 = param_3 + 1;
} while (param_3 != param_4);
}
return uVar6;
}
| |
41,072 | std::hash<minja::Value>::operator()(minja::Value const&) const | monkey531[P]llama/common/minja.hpp | size_t operator()(const minja::Value & v) const {
if (!v.is_hashable())
throw std::runtime_error("Unsupported type for hashing: " + v.dump());
return std::hash<json>()(v.get<json>());
} | O2 | cpp | std::hash<minja::Value>::operator()(minja::Value const&) const:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rsi, %rdi
callq 0x62dfc
testb %al, %al
je 0x82480
movq %rsp, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8251c
movq %rbx, %rdi
callq 0x828d0
movq %rax, %rbx
movq %rsp, %rdi
callq 0x3cfcc
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x23450
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x62e0c
leaq 0x31d11(%rip), %rsi # 0xb41b5
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x58436
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x23e20
xorl %ebp, %ebp
movq 0x79b28(%rip), %rsi # 0xfbff0
movq 0x79a89(%rip), %rdx # 0xfbf58
movq %rbx, %rdi
callq 0x23ef0
movq %rax, %r14
movq %rsp, %rdi
callq 0x241b8
jmp 0x824ea
movq %rax, %r14
movb $0x1, %bpl
leaq 0x20(%rsp), %rdi
callq 0x241b8
testb %bpl, %bpl
jne 0x824fe
jmp 0x82513
movq %rax, %r14
movq %rbx, %rdi
callq 0x23680
jmp 0x82513
movq %rax, %r14
movq %rsp, %rdi
callq 0x3cfcc
movq %r14, %rdi
callq 0x23f80
nop
| _ZNKSt4hashIN5minja5ValueEEclERKS1_:
push rbp
push r14
push rbx
sub rsp, 40h
mov r14, rsi
mov rdi, rsi; this
call _ZNK5minja5Value12is_primitiveEv; minja::Value::is_primitive(void)
test al, al
jz short loc_82480
mov rbx, rsp
mov rdi, rbx
mov rsi, r14
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(void)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail4hashINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEmRKT_; nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov rbx, rax
mov rdi, rsp
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rax, rbx
add rsp, 40h
pop rbx
pop r14
pop rbp
retn
loc_82480:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+58h+var_38]
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aUnsupportedTyp; "Unsupported type for hashing: "
mov rdi, rsp
lea rdx, [rsp+58h+var_38]
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:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
mov rdi, rsp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_824EA
mov r14, rax
mov bpl, 1
loc_824EA:
lea rdi, [rsp+58h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_824FE
jmp short loc_82513
mov r14, rax
loc_824FE:
mov rdi, rbx; void *
call ___cxa_free_exception
jmp short loc_82513
mov r14, rax
mov rdi, rsp
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
loc_82513:
mov rdi, r14
call __Unwind_Resume
| long long std::hash<minja::Value>::operator()(long long a1, minja::Value *a2)
{
long long v2; // rbx
void *exception; // rbx
_BYTE v5[32]; // [rsp+0h] [rbp-58h] BYREF
_BYTE v6[56]; // [rsp+20h] [rbp-38h] BYREF
if ( !minja::Value::is_primitive(a2) )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v6, (long long)a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v5, (long long)"Unsupported type for hashing: ", (long long)v6);
std::runtime_error::runtime_error(exception, v5);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Value::get<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>>(
v5,
a2);
v2 = nlohmann::json_abi_v3_11_3::detail::hash<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>>(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>::~basic_json((long long)v5);
return v2;
}
| operator():
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV R14,RSI
MOV RDI,RSI
CALL 0x00162dfc
TEST AL,AL
JZ 0x00182480
MOV RBX,RSP
MOV RDI,RBX
MOV RSI,R14
CALL 0x0018251c
LAB_00182461:
MOV RDI,RBX
CALL 0x001828d0
LAB_00182469:
MOV RBX,RAX
MOV RDI,RSP
CALL 0x0013cfcc
MOV RAX,RBX
ADD RSP,0x40
POP RBX
POP R14
POP RBP
RET
LAB_00182480:
PUSH 0x10
POP RDI
CALL 0x00123450
MOV RBX,RAX
LAB_0018248b:
LEA RDI,[RSP + 0x20]
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x00162e0c
LAB_0018249d:
LEA RSI,[0x1b41b5]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x00158436
MOV BPL,0x1
LAB_001824b4:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x00123e20
XOR EBP,EBP
MOV RSI,qword ptr [0x001fbff0]
MOV RDX,qword ptr [0x001fbf58]
MOV RDI,RBX
CALL 0x00123ef0
|
/* std::hash<minja::Value>::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */
ulong __thiscall std::hash<minja::Value>::operator()(hash<minja::Value> *this,Value *param_1)
{
char cVar1;
ulong uVar2;
runtime_error *this_00;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
abStack_58 [32];
int1 local_38 [32];
cVar1 = minja::Value::is_primitive(param_1);
if (cVar1 != '\0') {
minja::Value::
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
();
/* try { // try from 00182461 to 00182468 has its CatchHandler @ 00182508 */
uVar2 = nlohmann::json_abi_v3_11_3::detail::
hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(abStack_58);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(abStack_58);
return uVar2;
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0018248b to 0018249c has its CatchHandler @ 001824fb */
minja::Value::dump_abi_cxx11_((int)local_38,SUB81(param_1,0));
/* try { // try from 0018249d to 001824b0 has its CatchHandler @ 001824e4 */
operator+((char *)abStack_58,(string *)"Unsupported type for hashing: ");
/* try { // try from 001824b4 to 001824d6 has its CatchHandler @ 001824d7 */
std::runtime_error::runtime_error(this_00,(string *)abStack_58);
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_001fbff0,PTR__runtime_error_001fbf58);
}
| |
41,073 | my_strnncoll_tis620 | eloqsql/strings/ctype-tis620.c | static
int my_strnncoll_tis620(CHARSET_INFO *cs __attribute__((unused)),
const uchar *s1, size_t len1,
const uchar *s2, size_t len2,
my_bool s2_is_prefix)
{
uchar buf[80] ;
uchar *tc1, *tc2;
int i;
if (s2_is_prefix && len1 > len2)
len1= len2;
tc1= buf;
if ((len1 + len2 +2) > (int) sizeof(buf))
tc1= (uchar*) my_malloc(PSI_INSTRUMENT_ME, len1+len2+2, MYF(MY_FAE));
tc2= tc1 + len1+1;
memcpy((char*) tc1, (char*) s1, len1);
tc1[len1]= 0; /* if length(s1)> len1, need to put 'end of string' */
memcpy((char *)tc2, (char *)s2, len2);
tc2[len2]= 0; /* put end of string */
thai2sortable(tc1, len1);
thai2sortable(tc2, len2);
i= strcmp((char*)tc1, (char*)tc2);
if (tc1 != buf)
my_free(tc1);
return i;
} | O0 | c | my_strnncoll_tis620:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movb %r9b, %al
movq %fs:0x28, %r9
movq %r9, -0x8(%rbp)
movq %rdi, -0x68(%rbp)
movq %rsi, -0x70(%rbp)
movq %rdx, -0x78(%rbp)
movq %rcx, -0x80(%rbp)
movq %r8, -0x88(%rbp)
movb %al, -0x89(%rbp)
movsbl -0x89(%rbp), %eax
cmpl $0x0, %eax
je 0x97b1c
movq -0x78(%rbp), %rax
cmpq -0x88(%rbp), %rax
jbe 0x97b1c
movq -0x88(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq -0x60(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x78(%rbp), %rax
addq -0x88(%rbp), %rax
addq $0x2, %rax
cmpq $0x50, %rax
jbe 0x97b5e
movq -0x78(%rbp), %rsi
addq -0x88(%rbp), %rsi
addq $0x2, %rsi
xorl %edi, %edi
movl $0x8, %edx
callq 0x7c9f0
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
addq -0x78(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa0(%rbp)
movq -0x98(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq -0x78(%rbp), %rdx
callq 0x360b0
movq -0x98(%rbp), %rax
movq -0x78(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0xa0(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq -0x88(%rbp), %rdx
callq 0x360b0
movq -0xa0(%rbp), %rax
movq -0x88(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x98(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x98040
movq -0xa0(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x98040
movq -0x98(%rbp), %rdi
movq -0xa0(%rbp), %rsi
callq 0x36830
movl %eax, -0xa4(%rbp)
movq -0x98(%rbp), %rax
leaq -0x60(%rbp), %rcx
cmpq %rcx, %rax
je 0x97c18
movq -0x98(%rbp), %rdi
callq 0x7cd70
movl -0xa4(%rbp), %eax
movl %eax, -0xa8(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x97c45
movl -0xa8(%rbp), %eax
addq $0xb0, %rsp
popq %rbp
retq
callq 0x362a0
nopw (%rax,%rax)
| my_strnncoll_tis620:
push rbp
mov rbp, rsp
sub rsp, 0B0h
mov al, r9b
mov r9, fs:28h
mov [rbp+var_8], r9
mov [rbp+var_68], rdi
mov [rbp+var_70], rsi
mov [rbp+var_78], rdx
mov [rbp+var_80], rcx
mov [rbp+var_88], r8
mov [rbp+var_89], al
movsx eax, [rbp+var_89]
cmp eax, 0
jz short loc_97B1C
mov rax, [rbp+var_78]
cmp rax, [rbp+var_88]
jbe short loc_97B1C
mov rax, [rbp+var_88]
mov [rbp+var_78], rax
loc_97B1C:
lea rax, [rbp+var_60]
mov [rbp+var_98], rax
mov rax, [rbp+var_78]
add rax, [rbp+var_88]
add rax, 2
cmp rax, 50h ; 'P'
jbe short loc_97B5E
mov rsi, [rbp+var_78]
add rsi, [rbp+var_88]
add rsi, 2
xor edi, edi
mov edx, 8
call my_malloc
mov [rbp+var_98], rax
loc_97B5E:
mov rax, [rbp+var_98]
add rax, [rbp+var_78]
add rax, 1
mov [rbp+var_A0], rax
mov rdi, [rbp+var_98]
mov rsi, [rbp+var_70]
mov rdx, [rbp+var_78]
call _memcpy
mov rax, [rbp+var_98]
mov rcx, [rbp+var_78]
mov byte ptr [rax+rcx], 0
mov rdi, [rbp+var_A0]
mov rsi, [rbp+var_80]
mov rdx, [rbp+var_88]
call _memcpy
mov rax, [rbp+var_A0]
mov rcx, [rbp+var_88]
mov byte ptr [rax+rcx], 0
mov rdi, [rbp+var_98]
mov rsi, [rbp+var_78]
call thai2sortable
mov rdi, [rbp+var_A0]
mov rsi, [rbp+var_88]
call thai2sortable
mov rdi, [rbp+var_98]
mov rsi, [rbp+var_A0]
call _strcmp
mov [rbp+var_A4], eax
mov rax, [rbp+var_98]
lea rcx, [rbp+var_60]
cmp rax, rcx
jz short loc_97C18
mov rdi, [rbp+var_98]
call my_free
loc_97C18:
mov eax, [rbp+var_A4]
mov [rbp+var_A8], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_97C45
mov eax, [rbp+var_A8]
add rsp, 0B0h
pop rbp
retn
loc_97C45:
call ___stack_chk_fail
| long long my_strnncoll_tis620(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
char a6)
{
unsigned int v7; // [rsp+Ch] [rbp-A4h]
long long v8; // [rsp+10h] [rbp-A0h]
_BYTE *v9; // [rsp+18h] [rbp-98h]
unsigned long long v12; // [rsp+38h] [rbp-78h]
_BYTE v13[88]; // [rsp+50h] [rbp-60h] BYREF
unsigned long long v14; // [rsp+A8h] [rbp-8h]
v14 = __readfsqword(0x28u);
v12 = a3;
if ( a6 && a3 > a5 )
v12 = a5;
v9 = v13;
if ( a5 + v12 + 2 > 0x50 )
v9 = (_BYTE *)my_malloc(0, a5 + v12 + 2, 8);
v8 = (long long)&v9[v12 + 1];
memcpy(v9, a2, v12);
v9[v12] = 0;
memcpy(v8, a4, a5);
*(_BYTE *)(v8 + a5) = 0;
thai2sortable(v9, v12);
thai2sortable(v8, a5);
v7 = strcmp(v9, v8);
if ( v9 != v13 )
my_free((long long)v9);
return v7;
}
| my_strnncoll_tis620:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xb0
MOV AL,R9B
MOV R9,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],R9
MOV qword ptr [RBP + -0x68],RDI
MOV qword ptr [RBP + -0x70],RSI
MOV qword ptr [RBP + -0x78],RDX
MOV qword ptr [RBP + -0x80],RCX
MOV qword ptr [RBP + -0x88],R8
MOV byte ptr [RBP + -0x89],AL
MOVSX EAX,byte ptr [RBP + -0x89]
CMP EAX,0x0
JZ 0x00197b1c
MOV RAX,qword ptr [RBP + -0x78]
CMP RAX,qword ptr [RBP + -0x88]
JBE 0x00197b1c
MOV RAX,qword ptr [RBP + -0x88]
MOV qword ptr [RBP + -0x78],RAX
LAB_00197b1c:
LEA RAX,[RBP + -0x60]
MOV qword ptr [RBP + -0x98],RAX
MOV RAX,qword ptr [RBP + -0x78]
ADD RAX,qword ptr [RBP + -0x88]
ADD RAX,0x2
CMP RAX,0x50
JBE 0x00197b5e
MOV RSI,qword ptr [RBP + -0x78]
ADD RSI,qword ptr [RBP + -0x88]
ADD RSI,0x2
XOR EDI,EDI
MOV EDX,0x8
CALL 0x0017c9f0
MOV qword ptr [RBP + -0x98],RAX
LAB_00197b5e:
MOV RAX,qword ptr [RBP + -0x98]
ADD RAX,qword ptr [RBP + -0x78]
ADD RAX,0x1
MOV qword ptr [RBP + -0xa0],RAX
MOV RDI,qword ptr [RBP + -0x98]
MOV RSI,qword ptr [RBP + -0x70]
MOV RDX,qword ptr [RBP + -0x78]
CALL 0x001360b0
MOV RAX,qword ptr [RBP + -0x98]
MOV RCX,qword ptr [RBP + -0x78]
MOV byte ptr [RAX + RCX*0x1],0x0
MOV RDI,qword ptr [RBP + -0xa0]
MOV RSI,qword ptr [RBP + -0x80]
MOV RDX,qword ptr [RBP + -0x88]
CALL 0x001360b0
MOV RAX,qword ptr [RBP + -0xa0]
MOV RCX,qword ptr [RBP + -0x88]
MOV byte ptr [RAX + RCX*0x1],0x0
MOV RDI,qword ptr [RBP + -0x98]
MOV RSI,qword ptr [RBP + -0x78]
CALL 0x00198040
MOV RDI,qword ptr [RBP + -0xa0]
MOV RSI,qword ptr [RBP + -0x88]
CALL 0x00198040
MOV RDI,qword ptr [RBP + -0x98]
MOV RSI,qword ptr [RBP + -0xa0]
CALL 0x00136830
MOV dword ptr [RBP + -0xa4],EAX
MOV RAX,qword ptr [RBP + -0x98]
LEA RCX,[RBP + -0x60]
CMP RAX,RCX
JZ 0x00197c18
MOV RDI,qword ptr [RBP + -0x98]
CALL 0x0017cd70
LAB_00197c18:
MOV EAX,dword ptr [RBP + -0xa4]
MOV dword ptr [RBP + -0xa8],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00197c45
MOV EAX,dword ptr [RBP + -0xa8]
ADD RSP,0xb0
POP RBP
RET
LAB_00197c45:
CALL 0x001362a0
|
int my_strnncoll_tis620(int8 param_1,void *param_2,ulong param_3,void *param_4,ulong param_5,
char param_6)
{
int iVar1;
char *__s2;
long in_FS_OFFSET;
char *local_a0;
size_t local_80;
char local_68 [88];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_80 = param_3;
if ((param_6 != '\0') && (param_5 < param_3)) {
local_80 = param_5;
}
local_a0 = local_68;
if (0x50 < local_80 + param_5 + 2) {
local_a0 = (char *)my_malloc(0,local_80 + param_5 + 2,8);
}
__s2 = local_a0 + local_80 + 1;
memcpy(local_a0,param_2,local_80);
local_a0[local_80] = '\0';
memcpy(__s2,param_4,param_5);
__s2[param_5] = '\0';
thai2sortable(local_a0,local_80);
thai2sortable(__s2,param_5);
iVar1 = strcmp(local_a0,__s2);
if (local_a0 != local_68) {
my_free(local_a0);
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return iVar1;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
41,074 | ma_net_real_write | eloqsql/libmariadb/libmariadb/ma_net.c | int ma_net_real_write(NET *net, const char *packet, size_t len)
{
ssize_t length;
char *pos,*end;
if (net->error == 2)
return(-1); /* socket can't be used */
net->reading_or_writing=2;
#ifdef HAVE_COMPRESS
if (net->compress)
{
size_t complen;
uchar *b;
uint header_length=NET_HEADER_SIZE+COMP_HEADER_SIZE;
if (!(b=(uchar*) malloc(len + NET_HEADER_SIZE + COMP_HEADER_SIZE + 1)))
{
net->pvio->set_error(net->pvio->mysql, CR_OUT_OF_MEMORY, SQLSTATE_UNKNOWN, 0);
net->error=2;
net->reading_or_writing=0;
return(1);
}
memcpy(b+header_length,packet,len);
if (_mariadb_compress(net, (unsigned char*) b+header_length,&len,&complen))
{
complen=0;
}
int3store(&b[NET_HEADER_SIZE],complen);
int3store(b,len);
b[3]=(uchar) (net->compress_pkt_nr++);
len+= header_length;
packet= (char*) b;
}
#endif /* HAVE_COMPRESS */
pos=(char*) packet; end=pos+len;
while (pos != end)
{
if ((length=ma_pvio_write(net->pvio,(uchar *)pos,(size_t) (end-pos))) <= 0)
{
int save_errno= errno;
char errmsg[100];
net->error=2; /* Close socket */
strerror_r(save_errno, errmsg, 100);
net->pvio->set_error(net->pvio->mysql, CR_ERR_NET_WRITE, SQLSTATE_UNKNOWN, 0,
errmsg, save_errno);
net->reading_or_writing=0;
#ifdef HAVE_COMPRESS
if (net->compress)
free((char*) packet);
#endif
return(1);
}
pos+=length;
}
#ifdef HAVE_COMPRESS
if (net->compress)
free((char*) packet);
#endif
net->reading_or_writing=0;
return(((int) (pos != end)));
} | O3 | c | ma_net_real_write:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq %rdx, -0xa8(%rbp)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmpb $0x2, 0x94(%rdi)
je 0x36521
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movb $0x2, 0x80(%rdi)
cmpb $0x0, 0x84(%rdi)
je 0x363f2
leaq 0x8(%rbx), %rdi
callq 0x13600
testq %rax, %rax
je 0x363f7
movq %rax, %r12
movq %rax, %r13
addq $0x7, %r13
movq %r13, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x13390
leaq -0xa8(%rbp), %rdx
leaq -0xa0(%rbp), %rcx
movq %r14, %rdi
movq %r13, %rsi
callq 0x23217
testb %al, %al
jne 0x3642a
movq -0xa0(%rbp), %rax
jmp 0x3642c
movq %r15, %r12
jmp 0x36472
movq (%r14), %r8
movq 0x40(%r8), %rdi
leaq 0x1aadb(%rip), %rax # 0x50ee0
movq (%rax), %rdx
movl $0x7d8, %esi # imm = 0x7D8
xorl %ecx, %ecx
xorl %eax, %eax
callq *0x50(%r8)
movb $0x2, 0x94(%r14)
movb $0x0, 0x80(%r14)
jmp 0x3651c
xorl %eax, %eax
movq %r12, %rdx
movb %al, 0x4(%r12)
movb %ah, 0x5(%rdx)
shrl $0x10, %eax
movb %al, 0x6(%r12)
movq -0xa8(%rbp), %rbx
movb %bl, (%r12)
movb %bh, 0x1(%rdx)
movl %ebx, %eax
shrl $0x10, %eax
movb %al, 0x2(%r12)
movl 0x64(%r14), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x64(%r14)
movb %al, 0x3(%r12)
addq $0x7, %rbx
movq %rbx, -0xa8(%rbp)
testq %rbx, %rbx
je 0x3649b
movq %r12, %r15
addq %r12, %rbx
movq (%r14), %rdi
movq %rbx, %rdx
subq %r15, %rdx
movq %r15, %rsi
callq 0x225fe
testq %rax, %rax
jle 0x364b9
addq %rax, %r15
cmpq %rbx, %r15
jne 0x3647d
cmpb $0x0, 0x84(%r14)
je 0x364ad
movq %r12, %rdi
callq 0x13570
movb $0x0, 0x80(%r14)
xorl %eax, %eax
jmp 0x36521
callq 0x13060
movl (%rax), %ebx
movb $0x2, 0x94(%r14)
leaq -0xa0(%rbp), %r15
movl $0x64, %edx
movl %ebx, %edi
movq %r15, %rsi
callq 0x131e0
movq (%r14), %r10
movq 0x40(%r10), %rdi
leaq 0x1a9f4(%rip), %rax # 0x50ee0
movq (%rax), %rdx
movl $0x1396, %esi # imm = 0x1396
xorl %ecx, %ecx
movq %r15, %r8
movl %ebx, %r9d
xorl %eax, %eax
callq *0x50(%r10)
movb $0x0, 0x80(%r14)
cmpb $0x0, 0x84(%r14)
je 0x3651c
movq %r12, %rdi
callq 0x13570
movl $0x1, %eax
movq %fs:0x28, %rcx
cmpq -0x30(%rbp), %rcx
jne 0x36542
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x13500
| ma_net_real_write:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov rax, fs:28h
mov [rbp+var_30], rax
mov [rbp+var_A8], rdx
mov eax, 0FFFFFFFFh
cmp byte ptr [rdi+94h], 2
jz loc_36521
mov rbx, rdx
mov r15, rsi
mov r14, rdi
mov byte ptr [rdi+80h], 2
cmp byte ptr [rdi+84h], 0
jz short loc_363F2
lea rdi, [rbx+8]
call _malloc
test rax, rax
jz short loc_363F7
mov r12, rax
mov r13, rax
add r13, 7
mov rdi, r13
mov rsi, r15
mov rdx, rbx
call _memcpy
lea rdx, [rbp+var_A8]
lea rcx, [rbp+var_A0]
mov rdi, r14
mov rsi, r13
call _mariadb_compress
test al, al
jnz short loc_3642A
mov rax, [rbp+var_A0]
jmp short loc_3642C
loc_363F2:
mov r12, r15
jmp short loc_36472
loc_363F7:
mov r8, [r14]
mov rdi, [r8+40h]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov esi, 7D8h
xor ecx, ecx
xor eax, eax
call qword ptr [r8+50h]
mov byte ptr [r14+94h], 2
mov byte ptr [r14+80h], 0
jmp loc_3651C
loc_3642A:
xor eax, eax
loc_3642C:
mov rdx, r12
mov [r12+4], al
mov [rdx+5], ah
shr eax, 10h
mov [r12+6], al
mov rbx, [rbp+var_A8]
mov [r12], bl
mov [rdx+1], bh
mov eax, ebx
shr eax, 10h
mov [r12+2], al
mov eax, [r14+64h]
lea ecx, [rax+1]
mov [r14+64h], ecx
mov [r12+3], al
add rbx, 7
mov [rbp+var_A8], rbx
loc_36472:
test rbx, rbx
jz short loc_3649B
mov r15, r12
add rbx, r12
loc_3647D:
mov rdi, [r14]
mov rdx, rbx
sub rdx, r15
mov rsi, r15
call ma_pvio_write
test rax, rax
jle short loc_364B9
add r15, rax
cmp r15, rbx
jnz short loc_3647D
loc_3649B:
cmp byte ptr [r14+84h], 0
jz short loc_364AD
mov rdi, r12
call _free
loc_364AD:
mov byte ptr [r14+80h], 0
xor eax, eax
jmp short loc_36521
loc_364B9:
call ___errno_location
mov ebx, [rax]
mov byte ptr [r14+94h], 2
lea r15, [rbp+var_A0]
mov edx, 64h ; 'd'
mov edi, ebx
mov rsi, r15
call ___xpg_strerror_r
mov r10, [r14]
mov rdi, [r10+40h]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov esi, 1396h
xor ecx, ecx
mov r8, r15
mov r9d, ebx
xor eax, eax
call qword ptr [r10+50h]
mov byte ptr [r14+80h], 0
cmp byte ptr [r14+84h], 0
jz short loc_3651C
mov rdi, r12
call _free
loc_3651C:
mov eax, 1
loc_36521:
mov rcx, fs:28h
cmp rcx, [rbp+var_30]
jnz short loc_36542
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_36542:
call ___stack_chk_fail
| long long ma_net_real_write(_BYTE *a1, long long a2, long long a3)
{
long long result; // rax
long long v4; // rbx
long long v6; // rax
long long v7; // r12
long long v8; // r13
int v9; // eax
long long v10; // rbx
int v11; // eax
long long v12; // r15
long long v13; // rbx
long long v14; // rdi
long long v15; // rax
unsigned int v16; // ebx
long long v17; // [rsp+8h] [rbp-A8h] BYREF
_QWORD v18[20]; // [rsp+10h] [rbp-A0h] BYREF
v18[14] = __readfsqword(0x28u);
v17 = a3;
result = 0xFFFFFFFFLL;
if ( a1[148] != 2 )
{
v4 = a3;
a1[128] = 2;
if ( a1[132] )
{
v6 = malloc(a3 + 8);
if ( !v6 )
{
(*(void ( **)(_QWORD, long long, char *, _QWORD))(*(_QWORD *)a1 + 80LL))(
*(_QWORD *)(*(_QWORD *)a1 + 64LL),
2008LL,
SQLSTATE_UNKNOWN,
0LL);
a1[148] = 2;
a1[128] = 0;
return 1LL;
}
v7 = v6;
v8 = v6 + 7;
memcpy(v6 + 7, a2, v4);
if ( mariadb_compress((long long)a1, v8, &v17, v18) )
v9 = 0;
else
v9 = v18[0];
*(_WORD *)(v7 + 4) = v9;
*(_BYTE *)(v7 + 6) = BYTE2(v9);
v10 = v17;
*(_WORD *)v7 = v17;
*(_BYTE *)(v7 + 2) = BYTE2(v10);
v11 = *((_DWORD *)a1 + 25);
*((_DWORD *)a1 + 25) = v11 + 1;
*(_BYTE *)(v7 + 3) = v11;
v4 = v10 + 7;
v17 = v4;
}
else
{
v7 = a2;
}
if ( v4 )
{
v12 = v7;
v13 = v7 + v4;
while ( 1 )
{
v14 = *(_QWORD *)a1;
v15 = ma_pvio_write(*(_QWORD *)a1, v12, v13 - v12);
if ( v15 <= 0 )
break;
v12 += v15;
if ( v12 == v13 )
goto LABEL_14;
}
v16 = *(_DWORD *)__errno_location(v14);
a1[148] = 2;
__xpg_strerror_r(v16, v18, 100LL);
(*(void ( **)(_QWORD, long long, char *, _QWORD, _QWORD *, _QWORD))(*(_QWORD *)a1 + 80LL))(
*(_QWORD *)(*(_QWORD *)a1 + 64LL),
5014LL,
SQLSTATE_UNKNOWN,
0LL,
v18,
v16);
a1[128] = 0;
if ( a1[132] )
free(v7);
return 1LL;
}
LABEL_14:
if ( a1[132] )
free(v7);
a1[128] = 0;
return 0LL;
}
return result;
}
| ma_net_real_write:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV qword ptr [RBP + -0xa8],RDX
MOV EAX,0xffffffff
CMP byte ptr [RDI + 0x94],0x2
JZ 0x00136521
MOV RBX,RDX
MOV R15,RSI
MOV R14,RDI
MOV byte ptr [RDI + 0x80],0x2
CMP byte ptr [RDI + 0x84],0x0
JZ 0x001363f2
LEA RDI,[RBX + 0x8]
CALL 0x00113600
TEST RAX,RAX
JZ 0x001363f7
MOV R12,RAX
MOV R13,RAX
ADD R13,0x7
MOV RDI,R13
MOV RSI,R15
MOV RDX,RBX
CALL 0x00113390
LEA RDX,[RBP + -0xa8]
LEA RCX,[RBP + -0xa0]
MOV RDI,R14
MOV RSI,R13
CALL 0x00123217
TEST AL,AL
JNZ 0x0013642a
MOV RAX,qword ptr [RBP + -0xa0]
JMP 0x0013642c
LAB_001363f2:
MOV R12,R15
JMP 0x00136472
LAB_001363f7:
MOV R8,qword ptr [R14]
MOV RDI,qword ptr [R8 + 0x40]
LEA RAX,[0x150ee0]
MOV RDX,qword ptr [RAX]
MOV ESI,0x7d8
XOR ECX,ECX
XOR EAX,EAX
CALL qword ptr [R8 + 0x50]
MOV byte ptr [R14 + 0x94],0x2
MOV byte ptr [R14 + 0x80],0x0
JMP 0x0013651c
LAB_0013642a:
XOR EAX,EAX
LAB_0013642c:
MOV RDX,R12
MOV byte ptr [R12 + 0x4],AL
MOV byte ptr [RDX + 0x5],AH
SHR EAX,0x10
MOV byte ptr [R12 + 0x6],AL
MOV RBX,qword ptr [RBP + -0xa8]
MOV byte ptr [R12],BL
MOV byte ptr [RDX + 0x1],BH
MOV EAX,EBX
SHR EAX,0x10
MOV byte ptr [R12 + 0x2],AL
MOV EAX,dword ptr [R14 + 0x64]
LEA ECX,[RAX + 0x1]
MOV dword ptr [R14 + 0x64],ECX
MOV byte ptr [R12 + 0x3],AL
ADD RBX,0x7
MOV qword ptr [RBP + -0xa8],RBX
LAB_00136472:
TEST RBX,RBX
JZ 0x0013649b
MOV R15,R12
ADD RBX,R12
LAB_0013647d:
MOV RDI,qword ptr [R14]
MOV RDX,RBX
SUB RDX,R15
MOV RSI,R15
CALL 0x001225fe
TEST RAX,RAX
JLE 0x001364b9
ADD R15,RAX
CMP R15,RBX
JNZ 0x0013647d
LAB_0013649b:
CMP byte ptr [R14 + 0x84],0x0
JZ 0x001364ad
MOV RDI,R12
CALL 0x00113570
LAB_001364ad:
MOV byte ptr [R14 + 0x80],0x0
XOR EAX,EAX
JMP 0x00136521
LAB_001364b9:
CALL 0x00113060
MOV EBX,dword ptr [RAX]
MOV byte ptr [R14 + 0x94],0x2
LEA R15,[RBP + -0xa0]
MOV EDX,0x64
MOV EDI,EBX
MOV RSI,R15
CALL 0x001131e0
MOV R10,qword ptr [R14]
MOV RDI,qword ptr [R10 + 0x40]
LEA RAX,[0x150ee0]
MOV RDX,qword ptr [RAX]
MOV ESI,0x1396
XOR ECX,ECX
MOV R8,R15
MOV R9D,EBX
XOR EAX,EAX
CALL qword ptr [R10 + 0x50]
MOV byte ptr [R14 + 0x80],0x0
CMP byte ptr [R14 + 0x84],0x0
JZ 0x0013651c
MOV RDI,R12
CALL 0x00113570
LAB_0013651c:
MOV EAX,0x1
LAB_00136521:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x30]
JNZ 0x00136542
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00136542:
CALL 0x00113500
|
int8 ma_net_real_write(long *param_1,int1 *param_2,size_t param_3)
{
int iVar1;
char cVar2;
int8 uVar3;
int1 *puVar4;
long lVar5;
int *piVar6;
int1 *puVar7;
long in_FS_OFFSET;
size_t local_b0;
int4 local_a8 [28];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
uVar3 = 0xffffffff;
local_b0 = param_3;
if (*(char *)((long)param_1 + 0x94) != '\x02') {
*(int1 *)(param_1 + 0x10) = 2;
if (*(char *)((long)param_1 + 0x84) != '\0') {
puVar4 = (int1 *)malloc(param_3 + 8);
if (puVar4 == (int1 *)0x0) {
(**(code **)(*param_1 + 0x50))(*(int8 *)(*param_1 + 0x40),0x7d8,SQLSTATE_UNKNOWN,0);
*(int1 *)((long)param_1 + 0x94) = 2;
*(int1 *)(param_1 + 0x10) = 0;
LAB_0013651c:
uVar3 = 1;
goto LAB_00136521;
}
memcpy(puVar4 + 7,param_2,param_3);
cVar2 = _mariadb_compress(param_1,puVar4 + 7,&local_b0,local_a8);
if (cVar2 != '\0') {
local_a8[0] = 0;
}
puVar4[4] = (char)local_a8[0];
puVar4[5] = (char)((uint)local_a8[0] >> 8);
puVar4[6] = (char)((uint)local_a8[0] >> 0x10);
*puVar4 = (char)local_b0;
puVar4[1] = (char)(local_b0 >> 8);
puVar4[2] = (char)(local_b0 >> 0x10);
iVar1 = *(int *)((long)param_1 + 100);
*(int *)((long)param_1 + 100) = iVar1 + 1;
puVar4[3] = (char)iVar1;
local_b0 = local_b0 + 7;
param_2 = puVar4;
}
if (local_b0 != 0) {
puVar7 = param_2 + local_b0;
puVar4 = param_2;
do {
lVar5 = ma_pvio_write(*param_1,puVar4,(long)puVar7 - (long)puVar4);
if (lVar5 < 1) {
piVar6 = __errno_location();
iVar1 = *piVar6;
*(int1 *)((long)param_1 + 0x94) = 2;
__xpg_strerror_r(iVar1,local_a8,100);
(**(code **)(*param_1 + 0x50))
(*(int8 *)(*param_1 + 0x40),0x1396,SQLSTATE_UNKNOWN,0,local_a8,iVar1);
*(int1 *)(param_1 + 0x10) = 0;
if (*(char *)((long)param_1 + 0x84) != '\0') {
free(param_2);
}
goto LAB_0013651c;
}
puVar4 = puVar4 + lVar5;
} while (puVar4 != puVar7);
}
if (*(char *)((long)param_1 + 0x84) != '\0') {
free(param_2);
}
*(int1 *)(param_1 + 0x10) = 0;
uVar3 = 0;
}
LAB_00136521:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return uVar3;
}
| |
41,075 | create_receipts_proof | corpus-core[P]colibri-stateless/src/chains/eth/proofer/proof_receipt.c | static ssz_ob_t create_receipts_proof(json_t block_receipts, uint32_t tx_index, json_t* receipt, node_t** root_var) {
node_t* root = NULL;
bytes32_t tmp = {0};
buffer_t receipts_buf = {0};
buffer_t buf = stack_buffer(tmp);
if (root_var && *root_var)
root = *root_var;
else
json_for_each_value(block_receipts, r) {
uint32_t index = json_get_uint32(r, "transactionIndex");
if (index == tx_index) *receipt = r;
patricia_set_value(&root, c4_eth_create_tx_path(index, &buf), c4_serialize_receipt(r, &receipts_buf));
}
ssz_ob_t proof = patricia_create_merkle_proof(root, c4_eth_create_tx_path(tx_index, &buf));
if (root_var)
*root_var = root;
else
patricia_node_free(root);
buffer_free(&buf);
buffer_free(&receipts_buf);
return proof;
} | O0 | c | create_receipts_proof:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp # imm = 0x130
movq %rdi, -0x108(%rbp)
movq %rdi, -0x100(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0xf8(%rbp)
movl %esi, -0x4(%rbp)
movq %rdx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x5110
leaq -0x58(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x5110
movl $0x0, -0x70(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x68(%rbp)
movl $0xffffffe0, -0x60(%rbp) # imm = 0xFFFFFFE0
cmpq $0x0, -0x18(%rbp)
je 0xc5ce
movq -0x18(%rbp), %rax
cmpq $0x0, (%rax)
je 0xc5ce
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0xc786
movq -0xf8(%rbp), %rax
leaq -0x88(%rbp), %rdi
xorl %ecx, %ecx
movl %ecx, %esi
xorl %edx, %edx
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x20290
xorl %eax, %eax
cmpl $-0x1, -0x78(%rbp)
movb %al, -0x109(%rbp)
je 0xc61b
cmpl $0x0, -0x78(%rbp)
setne %al
movb %al, -0x109(%rbp)
movb -0x109(%rbp), %al
testb $0x1, %al
jne 0xc62a
jmp 0xc784
leaq -0xa8(%rbp), %rdi
leaq -0x88(%rbp), %rax
leaq 0x4606d(%rip), %rsi # 0x526ac
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x20500
leaq -0xa8(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x20920
movl %eax, -0x8c(%rbp)
movl -0x8c(%rbp), %eax
cmpl -0x4(%rbp), %eax
jne 0xc6b1
movq -0x10(%rbp), %rax
movq -0x88(%rbp), %rcx
movq %rcx, (%rax)
movq -0x80(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x78(%rbp), %rcx
movq %rcx, 0x10(%rax)
movl -0x8c(%rbp), %edi
leaq -0x70(%rbp), %rsi
callq 0x11ab0
movl %eax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
leaq -0x88(%rbp), %rax
leaq -0x58(%rbp), %rdi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0xdc80
movl %eax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movl -0xb8(%rbp), %esi
movq -0xb0(%rbp), %rdx
movl -0xc8(%rbp), %ecx
movq -0xc0(%rbp), %r8
leaq -0x20(%rbp), %rdi
callq 0x141f0
leaq -0xe0(%rbp), %rdi
leaq -0x88(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %esi
movl $0x2, %edx
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x20290
movq -0xe0(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x78(%rbp)
jmp 0xc600
jmp 0xc786
movq -0x20(%rbp), %rax
movq %rax, -0x118(%rbp)
movl -0x4(%rbp), %edi
leaq -0x70(%rbp), %rsi
callq 0x11ab0
movq -0x108(%rbp), %rdi
movq -0x118(%rbp), %rsi
movl %eax, -0xf0(%rbp)
movq %rdx, -0xe8(%rbp)
movl -0xf0(%rbp), %edx
movq -0xe8(%rbp), %rcx
callq 0x14c20
cmpq $0x0, -0x18(%rbp)
je 0xc7de
movq -0x20(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
jmp 0xc7e7
movq -0x20(%rbp), %rdi
callq 0x14100
leaq -0x70(%rbp), %rdi
callq 0x18d90
leaq -0x58(%rbp), %rdi
callq 0x18d90
movq -0x100(%rbp), %rax
addq $0x130, %rsp # imm = 0x130
popq %rbp
retq
nopl (%rax)
| create_receipts_proof:
push rbp
mov rbp, rsp
sub rsp, 130h
mov [rbp+var_108], rdi
mov [rbp+var_100], rdi
lea rax, [rbp+arg_0]
mov [rbp+var_F8], rax
mov [rbp+var_4], esi
mov [rbp+var_10], rdx
mov [rbp+var_18], rcx
mov [rbp+var_20], 0
lea rdi, [rbp+var_40]
xor esi, esi
mov edx, 20h ; ' '
call _memset
lea rdi, [rbp+var_58]
xor esi, esi
mov edx, 18h
call _memset
mov [rbp+var_70], 0
lea rax, [rbp+var_40]
mov [rbp+var_68], rax
mov [rbp+var_60], 0FFFFFFE0h
cmp [rbp+var_18], 0
jz short loc_C5CE
mov rax, [rbp+var_18]
cmp qword ptr [rax], 0
jz short loc_C5CE
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_20], rax
jmp loc_C786
loc_C5CE:
mov rax, [rbp+var_F8]
lea rdi, [rbp+var_88]
xor ecx, ecx
mov esi, ecx
xor edx, edx
mov rcx, [rax]
mov [rsp+130h+var_130], rcx
mov rcx, [rax+8]
mov [rsp+130h+var_128], rcx
mov rax, [rax+10h]
mov [rsp+130h+var_120], rax
call json_next_value
loc_C600:
xor eax, eax
cmp dword ptr [rbp+var_78], 0FFFFFFFFh
mov [rbp+var_109], al
jz short loc_C61B
cmp dword ptr [rbp+var_78], 0
setnz al
mov [rbp+var_109], al
loc_C61B:
mov al, [rbp+var_109]
test al, 1
jnz short loc_C62A
jmp loc_C784
loc_C62A:
lea rdi, [rbp+var_A8]
lea rax, [rbp+var_88]
lea rsi, aTransactionind; "transactionIndex"
mov rcx, [rax]
mov [rsp+130h+var_130], rcx
mov rcx, [rax+8]
mov [rsp+130h+var_128], rcx
mov rax, [rax+10h]
mov [rsp+130h+var_120], rax
call json_get
lea rax, [rbp+var_A8]
mov rcx, [rax]
mov [rsp+130h+var_130], rcx
mov rcx, [rax+8]
mov [rsp+130h+var_128], rcx
mov rax, [rax+10h]
mov [rsp+130h+var_120], rax
call json_as_uint64
mov [rbp+var_8C], eax
mov eax, [rbp+var_8C]
cmp eax, [rbp+var_4]
jnz short loc_C6B1
mov rax, [rbp+var_10]
mov rcx, [rbp+var_88]
mov [rax], rcx
mov rcx, [rbp+var_80]
mov [rax+8], rcx
mov rcx, [rbp+var_78]
mov [rax+10h], rcx
loc_C6B1:
mov edi, [rbp+var_8C]
lea rsi, [rbp+var_70]
call c4_eth_create_tx_path
mov [rbp+var_B8], eax
mov [rbp+var_B0], rdx
lea rax, [rbp+var_88]
lea rdi, [rbp+var_58]
mov rcx, [rax]
mov [rsp+130h+var_130], rcx
mov rcx, [rax+8]
mov [rsp+130h+var_128], rcx
mov rax, [rax+10h]
mov [rsp+130h+var_120], rax
call c4_serialize_receipt
mov [rbp+var_C8], eax
mov [rbp+var_C0], rdx
mov esi, [rbp+var_B8]
mov rdx, [rbp+var_B0]
mov ecx, [rbp+var_C8]
mov r8, [rbp+var_C0]
lea rdi, [rbp+var_20]
call patricia_set_value
lea rdi, [rbp+var_E0]
lea rax, [rbp+var_88]
xor ecx, ecx
mov esi, ecx
mov edx, 2
mov rcx, [rax]
mov [rsp+130h+var_130], rcx
mov rcx, [rax+8]
mov [rsp+130h+var_128], rcx
mov rax, [rax+10h]
mov [rsp+130h+var_120], rax
call json_next_value
mov rax, [rbp+var_E0]
mov [rbp+var_88], rax
mov rax, [rbp+var_D8]
mov [rbp+var_80], rax
mov rax, [rbp+var_D0]
mov [rbp+var_78], rax
jmp loc_C600
loc_C784:
jmp short $+2
loc_C786:
mov rax, [rbp+var_20]
mov [rbp+var_118], rax
mov edi, [rbp+var_4]
lea rsi, [rbp+var_70]
call c4_eth_create_tx_path
mov rdi, [rbp+var_108]
mov rsi, [rbp+var_118]
mov [rbp+var_F0], eax
mov [rbp+var_E8], rdx
mov edx, [rbp+var_F0]
mov rcx, [rbp+var_E8]
call patricia_create_merkle_proof
cmp [rbp+var_18], 0
jz short loc_C7DE
mov rcx, [rbp+var_20]
mov rax, [rbp+var_18]
mov [rax], rcx
jmp short loc_C7E7
loc_C7DE:
mov rdi, [rbp+var_20]
call patricia_node_free
loc_C7E7:
lea rdi, [rbp+var_70]
call buffer_free
lea rdi, [rbp+var_58]
call buffer_free
mov rax, [rbp+var_100]
add rsp, 130h
pop rbp
retn
| long long create_receipts_proof(
long long a1,
unsigned int a2,
long long *a3,
long long *a4,
_DWORD a5,
_DWORD a6,
long long a7,
long long a8,
long long a9)
{
int v9; // r8d
int v10; // r9d
int v11; // edx
int v12; // r8d
int v13; // r9d
int v14; // edx
int v15; // r8d
int v16; // r9d
long long *v17; // rax
long long v18; // rdx
int v19; // r8d
int v20; // r9d
long long v21; // rdx
int v22; // r8d
int v23; // r9d
long long v24; // rdx
long long v26; // [rsp+18h] [rbp-118h]
bool v27; // [rsp+27h] [rbp-109h]
unsigned int v28; // [rsp+40h] [rbp-F0h]
_QWORD v29[3]; // [rsp+50h] [rbp-E0h] BYREF
unsigned int v30; // [rsp+68h] [rbp-C8h]
long long v31; // [rsp+70h] [rbp-C0h]
unsigned int v32; // [rsp+78h] [rbp-B8h]
long long v33; // [rsp+80h] [rbp-B0h]
long long v34; // [rsp+88h] [rbp-A8h] BYREF
long long v35; // [rsp+90h] [rbp-A0h]
long long v36; // [rsp+98h] [rbp-98h]
unsigned int v37; // [rsp+A4h] [rbp-8Ch]
long long v38; // [rsp+A8h] [rbp-88h] BYREF
long long v39; // [rsp+B0h] [rbp-80h]
long long v40; // [rsp+B8h] [rbp-78h]
int v41; // [rsp+C0h] [rbp-70h] BYREF
_BYTE *v42; // [rsp+C8h] [rbp-68h]
int v43; // [rsp+D0h] [rbp-60h]
_BYTE v44[24]; // [rsp+D8h] [rbp-58h] BYREF
_BYTE v45[32]; // [rsp+F0h] [rbp-40h] BYREF
long long v46; // [rsp+110h] [rbp-20h] BYREF
long long *v47; // [rsp+118h] [rbp-18h]
long long *v48; // [rsp+120h] [rbp-10h]
unsigned int v49; // [rsp+12Ch] [rbp-4h]
v49 = a2;
v48 = a3;
v47 = a4;
v46 = 0LL;
memset(v45, 0LL, sizeof(v45));
memset(v44, 0LL, sizeof(v44));
v41 = 0;
v42 = v45;
v43 = -32;
if ( v47 && *v47 )
{
v46 = *v47;
}
else
{
json_next_value((unsigned int)&v38, 0, 0, a8, v9, v10, a7, a8, a9);
while ( 1 )
{
v27 = 0;
if ( (_DWORD)v40 != -1 )
v27 = (_DWORD)v40 != 0;
if ( !v27 )
break;
json_get((unsigned int)&v34, (unsigned int)"transactionIndex", v11, v39, v12, v13, v38, v39, v40);
v37 = json_as_uint64((unsigned int)&v34, (unsigned int)"transactionIndex", v14, v35, v15, v16, v34, v35, v36);
if ( v37 == v49 )
{
v17 = v48;
*v48 = v38;
v17[1] = v39;
v17[2] = v40;
}
v32 = c4_eth_create_tx_path(v37, &v41);
v33 = v18;
v30 = c4_serialize_receipt((unsigned int)v44, (unsigned int)&v41, v18, v39, v19, v20, v38, v39, v40);
v31 = v21;
patricia_set_value(&v46, v32, v33, v30, v21);
json_next_value((unsigned int)v29, 0, 2, v39, v22, v23, v38, v39, v40);
v38 = v29[0];
v39 = v29[1];
v40 = v29[2];
}
}
v26 = v46;
v28 = c4_eth_create_tx_path(v49, &v41);
patricia_create_merkle_proof(a1, v26, v28, v24);
if ( v47 )
*v47 = v46;
else
patricia_node_free(v46);
buffer_free(&v41);
buffer_free(v44);
return a1;
}
| create_receipts_proof:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x130
MOV qword ptr [RBP + -0x108],RDI
MOV qword ptr [RBP + -0x100],RDI
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0xf8],RAX
MOV dword ptr [RBP + -0x4],ESI
MOV qword ptr [RBP + -0x10],RDX
MOV qword ptr [RBP + -0x18],RCX
MOV qword ptr [RBP + -0x20],0x0
LEA RDI,[RBP + -0x40]
XOR ESI,ESI
MOV EDX,0x20
CALL 0x00105110
LEA RDI,[RBP + -0x58]
XOR ESI,ESI
MOV EDX,0x18
CALL 0x00105110
MOV dword ptr [RBP + -0x70],0x0
LEA RAX,[RBP + -0x40]
MOV qword ptr [RBP + -0x68],RAX
MOV dword ptr [RBP + -0x60],0xffffffe0
CMP qword ptr [RBP + -0x18],0x0
JZ 0x0010c5ce
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX],0x0
JZ 0x0010c5ce
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0010c786
LAB_0010c5ce:
MOV RAX,qword ptr [RBP + -0xf8]
LEA RDI,[RBP + -0x88]
XOR ECX,ECX
MOV ESI,ECX
XOR EDX,EDX
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x00120290
LAB_0010c600:
XOR EAX,EAX
CMP dword ptr [RBP + -0x78],-0x1
MOV byte ptr [RBP + -0x109],AL
JZ 0x0010c61b
CMP dword ptr [RBP + -0x78],0x0
SETNZ AL
MOV byte ptr [RBP + -0x109],AL
LAB_0010c61b:
MOV AL,byte ptr [RBP + -0x109]
TEST AL,0x1
JNZ 0x0010c62a
JMP 0x0010c784
LAB_0010c62a:
LEA RDI,[RBP + -0xa8]
LEA RAX,[RBP + -0x88]
LEA RSI,[0x1526ac]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x00120500
LEA RAX,[RBP + -0xa8]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x00120920
MOV dword ptr [RBP + -0x8c],EAX
MOV EAX,dword ptr [RBP + -0x8c]
CMP EAX,dword ptr [RBP + -0x4]
JNZ 0x0010c6b1
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x88]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x80]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RBP + -0x78]
MOV qword ptr [RAX + 0x10],RCX
LAB_0010c6b1:
MOV EDI,dword ptr [RBP + -0x8c]
LEA RSI,[RBP + -0x70]
CALL 0x00111ab0
MOV dword ptr [RBP + -0xb8],EAX
MOV qword ptr [RBP + -0xb0],RDX
LEA RAX,[RBP + -0x88]
LEA RDI,[RBP + -0x58]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x0010dc80
MOV dword ptr [RBP + -0xc8],EAX
MOV qword ptr [RBP + -0xc0],RDX
MOV ESI,dword ptr [RBP + -0xb8]
MOV RDX,qword ptr [RBP + -0xb0]
MOV ECX,dword ptr [RBP + -0xc8]
MOV R8,qword ptr [RBP + -0xc0]
LEA RDI,[RBP + -0x20]
CALL 0x001141f0
LEA RDI,[RBP + -0xe0]
LEA RAX,[RBP + -0x88]
XOR ECX,ECX
MOV ESI,ECX
MOV EDX,0x2
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x00120290
MOV RAX,qword ptr [RBP + -0xe0]
MOV qword ptr [RBP + -0x88],RAX
MOV RAX,qword ptr [RBP + -0xd8]
MOV qword ptr [RBP + -0x80],RAX
MOV RAX,qword ptr [RBP + -0xd0]
MOV qword ptr [RBP + -0x78],RAX
JMP 0x0010c600
LAB_0010c784:
JMP 0x0010c786
LAB_0010c786:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x118],RAX
MOV EDI,dword ptr [RBP + -0x4]
LEA RSI,[RBP + -0x70]
CALL 0x00111ab0
MOV RDI,qword ptr [RBP + -0x108]
MOV RSI,qword ptr [RBP + -0x118]
MOV dword ptr [RBP + -0xf0],EAX
MOV qword ptr [RBP + -0xe8],RDX
MOV EDX,dword ptr [RBP + -0xf0]
MOV RCX,qword ptr [RBP + -0xe8]
CALL 0x00114c20
CMP qword ptr [RBP + -0x18],0x0
JZ 0x0010c7de
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
JMP 0x0010c7e7
LAB_0010c7de:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00114100
LAB_0010c7e7:
LEA RDI,[RBP + -0x70]
CALL 0x00118d90
LEA RDI,[RBP + -0x58]
CALL 0x00118d90
MOV RAX,qword ptr [RBP + -0x100]
ADD RSP,0x130
POP RBP
RET
|
int8
create_receipts_proof
(int8 param_1,int param_2,int8 *param_3,long *param_4,int8 param_5,
int8 param_6)
{
long lVar1;
int4 uVar2;
int8 extraout_RDX;
int8 extraout_RDX_00;
int8 extraout_RDX_01;
int8 local_e8;
int8 local_e0;
int8 local_d8;
int4 local_d0;
int8 local_c8;
int4 local_c0;
int8 local_b8;
int1 local_b0 [28];
int local_94;
int8 local_90;
int8 local_88;
int8 local_80;
int4 local_78 [2];
int1 *local_70;
int4 local_68;
int1 local_60 [24];
int1 local_48 [32];
long local_28;
long *local_20;
int8 *local_18;
int local_c;
local_28 = 0;
local_20 = param_4;
local_18 = param_3;
local_c = param_2;
memset(local_48,0,0x20);
memset(local_60,0,0x18);
local_78[0] = 0;
local_70 = local_48;
local_68 = 0xffffffe0;
if ((local_20 == (long *)0x0) || (*local_20 == 0)) {
json_next_value(&local_90,0,0);
while ((int)local_80 != -1 && (int)local_80 != 0) {
json_get(local_b0,"transactionIndex");
local_94 = json_as_uint64();
if (local_94 == local_c) {
*local_18 = local_90;
local_18[1] = local_88;
local_18[2] = local_80;
}
local_c0 = c4_eth_create_tx_path(local_94,local_78);
local_b8 = extraout_RDX;
local_d0 = c4_serialize_receipt(local_60);
local_c8 = extraout_RDX_00;
patricia_set_value(&local_28,local_c0,local_b8,local_d0,extraout_RDX_00,param_6,local_90,
local_88,local_80);
json_next_value(&local_e8,0,2);
local_90 = local_e8;
local_88 = local_e0;
local_80 = local_d8;
}
}
else {
local_28 = *local_20;
}
lVar1 = local_28;
uVar2 = c4_eth_create_tx_path(local_c,local_78);
patricia_create_merkle_proof(param_1,lVar1,uVar2,extraout_RDX_01);
if (local_20 == (long *)0x0) {
patricia_node_free(local_28);
}
else {
*local_20 = local_28;
}
buffer_free(local_78);
buffer_free(local_60);
return param_1;
}
| |
41,076 | mysql_send_query_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_send_query_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_send_query,
(parms->mysql, parms->q, parms->length),
parms->mysql,
int,
r_int)
} | O3 | c | mysql_send_query_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 0x10(%rdi), %rdx
movq %rax, %rdi
callq 0x1ae7c
movl %eax, 0x8(%rbx)
movl $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| mysql_send_query_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 rdx, [rdi+10h]
mov rdi, rax
call mysql_send_query
mov [rbx+8], eax
mov dword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
retn
| long long mysql_send_query_start_internal(long long *a1)
{
_DWORD *v1; // rbx
long long result; // rax
v1 = *(_DWORD **)(*(_QWORD *)(*a1 + 1152) + 40LL);
result = mysql_send_query(*a1, a1[1], a1[2]);
v1[2] = result;
*v1 = 0;
return result;
}
| mysql_send_query_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 RDX,qword ptr [RDI + 0x10]
MOV RDI,RAX
CALL 0x0011ae7c
MOV dword ptr [RBX + 0x8],EAX
MOV dword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mysql_send_query_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_send_query(*param_1,param_1[1],param_1[2]);
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
| |
41,077 | 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>>::operator->() const | monkey531[P]llama/common/./json.hpp | pointer operator->() const
{
JSON_ASSERT(m_object != nullptr);
switch (m_object->m_data.m_type)
{
case value_t::object:
{
JSON_ASSERT(m_it.object_iterator != m_object->m_data.m_value.object->end());
return &(m_it.object_iterator->second);
}
case value_t::array:
{
JSON_ASSERT(m_it.array_iterator != m_object->m_data.m_value.array->end());
return &*m_it.array_iterator;
}
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
{
if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.is_begin()))
{
return m_object;
}
JSON_THROW(invalid_iterator::create(214, "cannot get value", m_object));
}
}
} | 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>>::operator->() const:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq (%rdi), %rax
testq %rax, %rax
je 0x2fbd0
movq %rdi, %r14
movzbl (%rax), %ecx
cmpl $0x2, %ecx
je 0x2fb42
cmpl $0x1, %ecx
jne 0x2fb6f
movq 0x8(%rax), %rcx
movq 0x8(%r14), %rax
cmpq 0x8(%rcx), %rax
je 0x2fbec
addq $0x20, %rax
jmp 0x2fb76
movq 0x8(%rax), %rcx
movq 0x10(%r14), %rax
cmpq 0x8(%rcx), %rax
jne 0x2fb76
leaq 0x65227(%rip), %rdi # 0x94d7e
leaq 0x6526c(%rip), %rdx # 0x94dca
leaq 0x662f0(%rip), %rcx # 0x95e55
movl $0x3397, %esi # imm = 0x3397
jmp 0x2fc06
cmpq $0x0, 0x18(%r14)
jne 0x2fb7f
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x213a0
movq %rax, %rbx
leaq 0x66301(%rip), %rsi # 0x95e92
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x2a484
movq (%r14), %rcx
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0xd6, %esi
callq 0x30994
xorl %ebp, %ebp
leaq 0xaa34f(%rip), %rsi # 0xd9f10
leaq -0x23bc(%rip), %rdx # 0x2d80c
movq %rbx, %rdi
callq 0x21b70
leaq 0x651a7(%rip), %rdi # 0x94d7e
leaq 0x651ec(%rip), %rdx # 0x94dca
leaq 0x6a308(%rip), %rcx # 0x99eed
movl $0x338b, %esi # imm = 0x338B
jmp 0x2fc06
leaq 0x6518b(%rip), %rdi # 0x94d7e
leaq 0x651d0(%rip), %rdx # 0x94dca
leaq 0x66215(%rip), %rcx # 0x95e16
movl $0x3391, %esi # imm = 0x3391
xorl %eax, %eax
callq 0x21b30
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x21dc8
testb %bpl, %bpl
jne 0x2fc24
jmp 0x2fc2c
movq %rax, %r14
movq %rbx, %rdi
callq 0x21530
movq %r14, %rdi
callq 0x21be0
| _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEptEv:
push rbp; char
push r14; int
push rbx; int
sub rsp, 30h
mov rax, [rdi]
test rax, rax
jz loc_2FBD0
mov r14, rdi
movzx ecx, byte ptr [rax]
cmp ecx, 2
jz short loc_2FB42
cmp ecx, 1
jnz short loc_2FB6F
mov rcx, [rax+8]
mov rax, [r14+8]
cmp rax, [rcx+8]
jz loc_2FBEC
add rax, 20h ; ' '
jmp short loc_2FB76
loc_2FB42:
mov rcx, [rax+8]
mov rax, [r14+10h]
cmp rax, [rcx+8]
jnz short loc_2FB76
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aMItArrayIterat; "m_it.array_iterator != m_object->m_data"...
mov esi, 3397h
jmp loc_2FC06
loc_2FB6F:
cmp qword ptr [r14+18h], 0
jnz short loc_2FB7F
loc_2FB76:
add rsp, 30h
pop rbx
pop r14
pop rbp
retn
loc_2FB7F:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aCannotGetValue; "cannot get value"
lea rdi, [rsp+48h+var_38]
lea rdx, [rsp+48h+var_39]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rcx, [r14]
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 0D6h; int
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
loc_2FBD0:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAnchorMObjectN+7; "m_object != nullptr"
mov esi, 338Bh
jmp short loc_2FC06
loc_2FBEC:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aMItObjectItera; "m_it.object_iterator != m_object->m_dat"...
mov esi, 3391h
loc_2FC06:
xor eax, eax
call _ggml_abort
mov r14, rax
lea rdi, [rsp+48h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_2FC24
jmp short loc_2FC2C
mov r14, rax
loc_2FC24:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_2FC2C:
mov rdi, r14
call __Unwind_Resume
| operator->:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV RAX,qword ptr [RDI]
TEST RAX,RAX
JZ 0x0012fbd0
MOV R14,RDI
MOVZX ECX,byte ptr [RAX]
CMP ECX,0x2
JZ 0x0012fb42
CMP ECX,0x1
JNZ 0x0012fb6f
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [R14 + 0x8]
CMP RAX,qword ptr [RCX + 0x8]
JZ 0x0012fbec
ADD RAX,0x20
JMP 0x0012fb76
LAB_0012fb42:
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [R14 + 0x10]
CMP RAX,qword ptr [RCX + 0x8]
JNZ 0x0012fb76
LEA RDI,[0x194d7e]
LEA RDX,[0x194dca]
LEA RCX,[0x195e55]
MOV ESI,0x3397
JMP 0x0012fc06
LAB_0012fb6f:
CMP qword ptr [R14 + 0x18],0x0
JNZ 0x0012fb7f
LAB_0012fb76:
ADD RSP,0x30
POP RBX
POP R14
POP RBP
RET
LAB_0012fb7f:
PUSH 0x20
POP RDI
CALL 0x001213a0
MOV RBX,RAX
LAB_0012fb8a:
LEA RSI,[0x195e92]
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0xf]
CALL 0x0012a484
MOV RCX,qword ptr [R14]
MOV BPL,0x1
LAB_0012fba6:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0xd6
CALL 0x00130994
XOR EBP,EBP
LEA RSI,[0x1d9f10]
LEA RDX,[0x12d80c]
MOV RDI,RBX
CALL 0x00121b70
LAB_0012fbd0:
LEA RDI,[0x194d7e]
LEA RDX,[0x194dca]
LEA RCX,[0x199eed]
MOV ESI,0x338b
JMP 0x0012fc06
LAB_0012fbec:
LEA RDI,[0x194d7e]
LEA RDX,[0x194dca]
LEA RCX,[0x195e16]
MOV ESI,0x3391
LAB_0012fc06:
XOR EAX,EAX
CALL 0x00121b30
|
/* nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::TEMPNAMEPLACEHOLDERVALUE() const */
char * __thiscall
nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::operator->(iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this)
{
long *plVar1;
char *pcVar2;
int8 uVar3;
allocator local_39;
string local_38 [32];
pcVar2 = *(char **)this;
if (pcVar2 == (char *)0x0) {
pcVar2 = "m_object != nullptr";
uVar3 = 0x338b;
LAB_0012fc06:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",uVar3,
"GGML_ASSERT(%s) failed",pcVar2);
}
if (*pcVar2 == '\x02') {
plVar1 = (long *)(pcVar2 + 8);
pcVar2 = *(char **)(this + 0x10);
if (pcVar2 == *(char **)(*plVar1 + 8)) {
pcVar2 = "m_it.array_iterator != m_object->m_data.m_value.array->end()";
uVar3 = 0x3397;
goto LAB_0012fc06;
}
}
else if (*pcVar2 == '\x01') {
if (*(long *)(this + 8) == *(long *)(*(long *)(pcVar2 + 8) + 8)) {
pcVar2 = "m_it.object_iterator != m_object->m_data.m_value.object->end()";
uVar3 = 0x3391;
goto LAB_0012fc06;
}
pcVar2 = (char *)(*(long *)(this + 8) + 0x20);
}
else if (*(long *)(this + 0x18) != 0) {
uVar3 = __cxa_allocate_exception(0x20);
/* try { // try from 0012fb8a to 0012fb9f has its CatchHandler @ 0012fc21 */
std::__cxx11::string::string<std::allocator<char>>(local_38,"cannot get value",&local_39);
/* try { // try from 0012fba6 to 0012fbcf has its CatchHandler @ 0012fc0d */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar3,0xd6,local_38,*(int8 *)this);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar3,&invalid_iterator::typeinfo,exception::~exception);
}
return pcVar2;
}
| ||
41,078 | ma_tls_get_finger_print | eloqsql/libmariadb/libmariadb/secure/openssl.c | unsigned int ma_tls_get_finger_print(MARIADB_TLS *ctls, char *fp, unsigned int len)
{
X509 *cert= NULL;
MYSQL *mysql;
unsigned int fp_len;
if (!ctls || !ctls->ssl)
return 0;
mysql= SSL_get_app_data(ctls->ssl);
if (!(cert= SSL_get_peer_certificate(ctls->ssl)))
{
my_set_error(mysql, CR_SSL_CONNECTION_ERROR, SQLSTATE_UNKNOWN,
ER(CR_SSL_CONNECTION_ERROR),
"Unable to get server certificate");
goto end;
}
if (len < EVP_MAX_MD_SIZE)
{
my_set_error(mysql, CR_SSL_CONNECTION_ERROR, SQLSTATE_UNKNOWN,
ER(CR_SSL_CONNECTION_ERROR),
"Finger print buffer too small");
goto end;
}
if (!X509_digest(cert, EVP_sha1(), (unsigned char *)fp, &fp_len))
{
my_set_error(mysql, CR_SSL_CONNECTION_ERROR, SQLSTATE_UNKNOWN,
ER(CR_SSL_CONNECTION_ERROR),
"invalid finger print of server certificate");
goto end;
}
X509_free(cert);
return (fp_len);
end:
X509_free(cert);
return 0;
} | O0 | c | ma_tls_get_finger_print:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq $0x0, -0x28(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x378cd
movq -0x10(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x378d9
movl $0x0, -0x4(%rbp)
jmp 0x379e6
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
xorl %esi, %esi
callq 0x13150
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x137c0
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
jne 0x37937
movq -0x30(%rbp), %rdi
leaq 0x28572(%rip), %rax # 0x5fe80
movq (%rax), %rdx
leaq 0x28578(%rip), %rax # 0x5fe90
movq 0xd0(%rax), %rcx
movl $0x7ea, %esi # imm = 0x7EA
leaq 0x146e5(%rip), %r8 # 0x4c010
movb $0x0, %al
callq 0x15fd0
jmp 0x379d6
cmpl $0x40, -0x1c(%rbp)
jae 0x3796e
movq -0x30(%rbp), %rdi
leaq 0x28538(%rip), %rax # 0x5fe80
movq (%rax), %rdx
leaq 0x2853e(%rip), %rax # 0x5fe90
movq 0xd0(%rax), %rcx
movl $0x7ea, %esi # imm = 0x7EA
leaq 0x146f8(%rip), %r8 # 0x4c05d
movb $0x0, %al
callq 0x15fd0
jmp 0x379d6
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
callq 0x13490
movq -0x40(%rbp), %rdi
movq %rax, %rsi
movq -0x18(%rbp), %rdx
leaq -0x34(%rbp), %rcx
callq 0x13580
cmpl $0x0, %eax
jne 0x379c5
movq -0x30(%rbp), %rdi
leaq 0x284e1(%rip), %rax # 0x5fe80
movq (%rax), %rdx
leaq 0x284e7(%rip), %rax # 0x5fe90
movq 0xd0(%rax), %rcx
movl $0x7ea, %esi # imm = 0x7EA
leaq 0x146bf(%rip), %r8 # 0x4c07b
movb $0x0, %al
callq 0x15fd0
jmp 0x379d6
movq -0x28(%rbp), %rdi
callq 0x13230
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x379e6
movq -0x28(%rbp), %rdi
callq 0x13230
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nop
| ma_tls_get_finger_print:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], 0
cmp [rbp+var_10], 0
jz short loc_378CD
mov rax, [rbp+var_10]
cmp qword ptr [rax+10h], 0
jnz short loc_378D9
loc_378CD:
mov [rbp+var_4], 0
jmp loc_379E6
loc_378D9:
mov rax, [rbp+var_10]
mov rdi, [rax+10h]
xor esi, esi
call _SSL_get_ex_data
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
mov rdi, [rax+10h]
call _SSL_get1_peer_certificate
mov [rbp+var_28], rax
cmp rax, 0
jnz short loc_37937
mov rdi, [rbp+var_30]
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 my_set_error
jmp loc_379D6
loc_37937:
cmp [rbp+var_1C], 40h ; '@'
jnb short loc_3796E
mov rdi, [rbp+var_30]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
lea rax, client_errors
mov rcx, [rax+0D0h]
mov esi, 7EAh
lea r8, aFingerPrintBuf; "Finger print buffer too small"
mov al, 0
call my_set_error
jmp short loc_379D6
loc_3796E:
mov rax, [rbp+var_28]
mov [rbp+var_40], rax
call _EVP_sha1
mov rdi, [rbp+var_40]
mov rsi, rax
mov rdx, [rbp+var_18]
lea rcx, [rbp+var_34]
call _X509_digest
cmp eax, 0
jnz short loc_379C5
mov rdi, [rbp+var_30]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
lea rax, client_errors
mov rcx, [rax+0D0h]
mov esi, 7EAh
lea r8, aInvalidFingerP; "invalid finger print of server certific"...
mov al, 0
call my_set_error
jmp short loc_379D6
loc_379C5:
mov rdi, [rbp+var_28]
call _X509_free
mov eax, [rbp+var_34]
mov [rbp+var_4], eax
jmp short loc_379E6
loc_379D6:
mov rdi, [rbp+var_28]
call _X509_free
mov [rbp+var_4], 0
loc_379E6:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
| long long ma_tls_get_finger_print(long long a1, long long a2, unsigned int a3)
{
long long v3; // rax
unsigned int v5; // [rsp+Ch] [rbp-34h] BYREF
long long v6; // [rsp+10h] [rbp-30h]
long long v7; // [rsp+18h] [rbp-28h]
unsigned int v8; // [rsp+24h] [rbp-1Ch]
long long v9; // [rsp+28h] [rbp-18h]
long long v10; // [rsp+30h] [rbp-10h]
v10 = a1;
v9 = a2;
v8 = a3;
v7 = 0LL;
if ( a1 && *(_QWORD *)(v10 + 16) )
{
v6 = SSL_get_ex_data(*(_QWORD *)(v10 + 16), 0LL);
v7 = SSL_get1_peer_certificate(*(_QWORD *)(v10 + 16));
if ( v7 )
{
if ( v8 >= 0x40 )
{
v3 = EVP_sha1();
if ( (unsigned int)X509_digest(v7, v3, v9, &v5) )
{
X509_free(v7);
return v5;
}
my_set_error(
v6,
0x7EAu,
(long long)SQLSTATE_UNKNOWN,
(long long)client_errors[26],
"invalid finger print of server certificate");
}
else
{
my_set_error(v6, 0x7EAu, (long long)SQLSTATE_UNKNOWN, (long long)client_errors[26], "Finger print buffer too small");
}
}
else
{
my_set_error(
v6,
0x7EAu,
(long long)SQLSTATE_UNKNOWN,
(long long)client_errors[26],
"Unable to get server certificate");
}
X509_free(v7);
return 0;
}
return 0;
}
| ma_tls_get_finger_print:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV qword ptr [RBP + -0x28],0x0
CMP qword ptr [RBP + -0x10],0x0
JZ 0x001378cd
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x10],0x0
JNZ 0x001378d9
LAB_001378cd:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001379e6
LAB_001378d9:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x10]
XOR ESI,ESI
CALL 0x00113150
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x10]
CALL 0x001137c0
MOV qword ptr [RBP + -0x28],RAX
CMP RAX,0x0
JNZ 0x00137937
MOV RDI,qword ptr [RBP + -0x30]
LEA RAX,[0x15fe80]
MOV RDX,qword ptr [RAX]
LEA RAX,[0x15fe90]
MOV RCX,qword ptr [RAX + 0xd0]
MOV ESI,0x7ea
LEA R8,[0x14c010]
MOV AL,0x0
CALL 0x00115fd0
JMP 0x001379d6
LAB_00137937:
CMP dword ptr [RBP + -0x1c],0x40
JNC 0x0013796e
MOV RDI,qword ptr [RBP + -0x30]
LEA RAX,[0x15fe80]
MOV RDX,qword ptr [RAX]
LEA RAX,[0x15fe90]
MOV RCX,qword ptr [RAX + 0xd0]
MOV ESI,0x7ea
LEA R8,[0x14c05d]
MOV AL,0x0
CALL 0x00115fd0
JMP 0x001379d6
LAB_0013796e:
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x40],RAX
CALL 0x00113490
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,RAX
MOV RDX,qword ptr [RBP + -0x18]
LEA RCX,[RBP + -0x34]
CALL 0x00113580
CMP EAX,0x0
JNZ 0x001379c5
MOV RDI,qword ptr [RBP + -0x30]
LEA RAX,[0x15fe80]
MOV RDX,qword ptr [RAX]
LEA RAX,[0x15fe90]
MOV RCX,qword ptr [RAX + 0xd0]
MOV ESI,0x7ea
LEA R8,[0x14c07b]
MOV AL,0x0
CALL 0x00115fd0
JMP 0x001379d6
LAB_001379c5:
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x00113230
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001379e6
LAB_001379d6:
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x00113230
MOV dword ptr [RBP + -0x4],0x0
LAB_001379e6:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
int4 ma_tls_get_finger_print(long param_1,uchar *param_2,uint param_3)
{
int iVar1;
X509 *data;
EVP_MD *type;
uint local_3c;
void *local_38;
X509 *local_30;
uint local_24;
uchar *local_20;
long local_18;
local_30 = (X509 *)0x0;
if ((param_1 != 0) && (*(long *)(param_1 + 0x10) != 0)) {
local_24 = param_3;
local_20 = param_2;
local_18 = param_1;
local_38 = SSL_get_ex_data(*(SSL **)(param_1 + 0x10),0);
data = (X509 *)SSL_get1_peer_certificate(*(int8 *)(local_18 + 0x10));
local_30 = data;
if (data == (X509 *)0x0) {
my_set_error(local_38,0x7ea,SQLSTATE_UNKNOWN,PTR_s_TLS_SSL_error_____100s_0015ff60,
"Unable to get server certificate");
}
else if (local_24 < 0x40) {
my_set_error(local_38,0x7ea,SQLSTATE_UNKNOWN,PTR_s_TLS_SSL_error_____100s_0015ff60,
"Finger print buffer too small");
}
else {
type = EVP_sha1();
iVar1 = X509_digest(data,type,local_20,&local_3c);
if (iVar1 != 0) {
X509_free(local_30);
return local_3c;
}
my_set_error(local_38,0x7ea,SQLSTATE_UNKNOWN,PTR_s_TLS_SSL_error_____100s_0015ff60,
"invalid finger print of server certificate");
}
X509_free(local_30);
}
return 0;
}
| |
41,079 | 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>>>>>::scan_string() | monkey531[P]llama/common/json.hpp | token_type scan_string()
{
// reset token_buffer (ignore opening quote)
reset();
// we entered the function by reading an open quote
JSON_ASSERT(current == '\"');
while (true)
{
// get next character
switch (get())
{
// end of file while parsing string
case char_traits<char_type>::eof():
{
error_message = "invalid string: missing closing quote";
return token_type::parse_error;
}
// closing quote
case '\"':
{
return token_type::value_string;
}
// escapes
case '\\':
{
switch (get())
{
// quotation mark
case '\"':
add('\"');
break;
// reverse solidus
case '\\':
add('\\');
break;
// solidus
case '/':
add('/');
break;
// backspace
case 'b':
add('\b');
break;
// form feed
case 'f':
add('\f');
break;
// line feed
case 'n':
add('\n');
break;
// carriage return
case 'r':
add('\r');
break;
// tab
case 't':
add('\t');
break;
// unicode escapes
case 'u':
{
const int codepoint1 = get_codepoint();
int codepoint = codepoint1; // start with codepoint1
if (JSON_HEDLEY_UNLIKELY(codepoint1 == -1))
{
error_message = "invalid string: '\\u' must be followed by 4 hex digits";
return token_type::parse_error;
}
// check if code point is a high surrogate
if (0xD800 <= codepoint1 && codepoint1 <= 0xDBFF)
{
// expect next \uxxxx entry
if (JSON_HEDLEY_LIKELY(get() == '\\' && get() == 'u'))
{
const int codepoint2 = get_codepoint();
if (JSON_HEDLEY_UNLIKELY(codepoint2 == -1))
{
error_message = "invalid string: '\\u' must be followed by 4 hex digits";
return token_type::parse_error;
}
// check if codepoint2 is a low surrogate
if (JSON_HEDLEY_LIKELY(0xDC00 <= codepoint2 && codepoint2 <= 0xDFFF))
{
// overwrite codepoint
codepoint = static_cast<int>(
// high surrogate occupies the most significant 22 bits
(static_cast<unsigned int>(codepoint1) << 10u)
// low surrogate occupies the least significant 15 bits
+ static_cast<unsigned int>(codepoint2)
// there is still the 0xD800, 0xDC00 and 0x10000 noise
// in the result, so we have to subtract with:
// (0xD800 << 10) + DC00 - 0x10000 = 0x35FDC00
- 0x35FDC00u);
}
else
{
error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
return token_type::parse_error;
}
}
else
{
error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
return token_type::parse_error;
}
}
else
{
if (JSON_HEDLEY_UNLIKELY(0xDC00 <= codepoint1 && codepoint1 <= 0xDFFF))
{
error_message = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF";
return token_type::parse_error;
}
}
// result of the above calculation yields a proper codepoint
JSON_ASSERT(0x00 <= codepoint && codepoint <= 0x10FFFF);
// translate codepoint into bytes
if (codepoint < 0x80)
{
// 1-byte characters: 0xxxxxxx (ASCII)
add(static_cast<char_int_type>(codepoint));
}
else if (codepoint <= 0x7FF)
{
// 2-byte characters: 110xxxxx 10xxxxxx
add(static_cast<char_int_type>(0xC0u | (static_cast<unsigned int>(codepoint) >> 6u)));
add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
}
else if (codepoint <= 0xFFFF)
{
// 3-byte characters: 1110xxxx 10xxxxxx 10xxxxxx
add(static_cast<char_int_type>(0xE0u | (static_cast<unsigned int>(codepoint) >> 12u)));
add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu)));
add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
}
else
{
// 4-byte characters: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
add(static_cast<char_int_type>(0xF0u | (static_cast<unsigned int>(codepoint) >> 18u)));
add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 12u) & 0x3Fu)));
add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu)));
add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
}
break;
}
// other characters after escape
default:
error_message = "invalid string: forbidden character after backslash";
return token_type::parse_error;
}
break;
}
// invalid control characters
case 0x00:
{
error_message = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000";
return token_type::parse_error;
}
case 0x01:
{
error_message = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001";
return token_type::parse_error;
}
case 0x02:
{
error_message = "invalid string: control character U+0002 (STX) must be escaped to \\u0002";
return token_type::parse_error;
}
case 0x03:
{
error_message = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003";
return token_type::parse_error;
}
case 0x04:
{
error_message = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004";
return token_type::parse_error;
}
case 0x05:
{
error_message = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005";
return token_type::parse_error;
}
case 0x06:
{
error_message = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006";
return token_type::parse_error;
}
case 0x07:
{
error_message = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007";
return token_type::parse_error;
}
case 0x08:
{
error_message = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b";
return token_type::parse_error;
}
case 0x09:
{
error_message = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t";
return token_type::parse_error;
}
case 0x0A:
{
error_message = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n";
return token_type::parse_error;
}
case 0x0B:
{
error_message = "invalid string: control character U+000B (VT) must be escaped to \\u000B";
return token_type::parse_error;
}
case 0x0C:
{
error_message = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f";
return token_type::parse_error;
}
case 0x0D:
{
error_message = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r";
return token_type::parse_error;
}
case 0x0E:
{
error_message = "invalid string: control character U+000E (SO) must be escaped to \\u000E";
return token_type::parse_error;
}
case 0x0F:
{
error_message = "invalid string: control character U+000F (SI) must be escaped to \\u000F";
return token_type::parse_error;
}
case 0x10:
{
error_message = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010";
return token_type::parse_error;
}
case 0x11:
{
error_message = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011";
return token_type::parse_error;
}
case 0x12:
{
error_message = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012";
return token_type::parse_error;
}
case 0x13:
{
error_message = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013";
return token_type::parse_error;
}
case 0x14:
{
error_message = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014";
return token_type::parse_error;
}
case 0x15:
{
error_message = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015";
return token_type::parse_error;
}
case 0x16:
{
error_message = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016";
return token_type::parse_error;
}
case 0x17:
{
error_message = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017";
return token_type::parse_error;
}
case 0x18:
{
error_message = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018";
return token_type::parse_error;
}
case 0x19:
{
error_message = "invalid string: control character U+0019 (EM) must be escaped to \\u0019";
return token_type::parse_error;
}
case 0x1A:
{
error_message = "invalid string: control character U+001A (SUB) must be escaped to \\u001A";
return token_type::parse_error;
}
case 0x1B:
{
error_message = "invalid string: control character U+001B (ESC) must be escaped to \\u001B";
return token_type::parse_error;
}
case 0x1C:
{
error_message = "invalid string: control character U+001C (FS) must be escaped to \\u001C";
return token_type::parse_error;
}
case 0x1D:
{
error_message = "invalid string: control character U+001D (GS) must be escaped to \\u001D";
return token_type::parse_error;
}
case 0x1E:
{
error_message = "invalid string: control character U+001E (RS) must be escaped to \\u001E";
return token_type::parse_error;
}
case 0x1F:
{
error_message = "invalid string: control character U+001F (US) must be escaped to \\u001F";
return token_type::parse_error;
}
// U+0020..U+007F (except U+0022 (quote) and U+005C (backspace))
case 0x20:
case 0x21:
case 0x23:
case 0x24:
case 0x25:
case 0x26:
case 0x27:
case 0x28:
case 0x29:
case 0x2A:
case 0x2B:
case 0x2C:
case 0x2D:
case 0x2E:
case 0x2F:
case 0x30:
case 0x31:
case 0x32:
case 0x33:
case 0x34:
case 0x35:
case 0x36:
case 0x37:
case 0x38:
case 0x39:
case 0x3A:
case 0x3B:
case 0x3C:
case 0x3D:
case 0x3E:
case 0x3F:
case 0x40:
case 0x41:
case 0x42:
case 0x43:
case 0x44:
case 0x45:
case 0x46:
case 0x47:
case 0x48:
case 0x49:
case 0x4A:
case 0x4B:
case 0x4C:
case 0x4D:
case 0x4E:
case 0x4F:
case 0x50:
case 0x51:
case 0x52:
case 0x53:
case 0x54:
case 0x55:
case 0x56:
case 0x57:
case 0x58:
case 0x59:
case 0x5A:
case 0x5B:
case 0x5D:
case 0x5E:
case 0x5F:
case 0x60:
case 0x61:
case 0x62:
case 0x63:
case 0x64:
case 0x65:
case 0x66:
case 0x67:
case 0x68:
case 0x69:
case 0x6A:
case 0x6B:
case 0x6C:
case 0x6D:
case 0x6E:
case 0x6F:
case 0x70:
case 0x71:
case 0x72:
case 0x73:
case 0x74:
case 0x75:
case 0x76:
case 0x77:
case 0x78:
case 0x79:
case 0x7A:
case 0x7B:
case 0x7C:
case 0x7D:
case 0x7E:
case 0x7F:
{
add(current);
break;
}
// U+0080..U+07FF: bytes C2..DF 80..BF
case 0xC2:
case 0xC3:
case 0xC4:
case 0xC5:
case 0xC6:
case 0xC7:
case 0xC8:
case 0xC9:
case 0xCA:
case 0xCB:
case 0xCC:
case 0xCD:
case 0xCE:
case 0xCF:
case 0xD0:
case 0xD1:
case 0xD2:
case 0xD3:
case 0xD4:
case 0xD5:
case 0xD6:
case 0xD7:
case 0xD8:
case 0xD9:
case 0xDA:
case 0xDB:
case 0xDC:
case 0xDD:
case 0xDE:
case 0xDF:
{
if (JSON_HEDLEY_UNLIKELY(!next_byte_in_range({0x80, 0xBF})))
{
return token_type::parse_error;
}
break;
}
// U+0800..U+0FFF: bytes E0 A0..BF 80..BF
case 0xE0:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0xA0, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+1000..U+CFFF: bytes E1..EC 80..BF 80..BF
// U+E000..U+FFFF: bytes EE..EF 80..BF 80..BF
case 0xE1:
case 0xE2:
case 0xE3:
case 0xE4:
case 0xE5:
case 0xE6:
case 0xE7:
case 0xE8:
case 0xE9:
case 0xEA:
case 0xEB:
case 0xEC:
case 0xEE:
case 0xEF:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+D000..U+D7FF: bytes ED 80..9F 80..BF
case 0xED:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x9F, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+10000..U+3FFFF F0 90..BF 80..BF 80..BF
case 0xF0:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x90, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+40000..U+FFFFF F1..F3 80..BF 80..BF 80..BF
case 0xF1:
case 0xF2:
case 0xF3:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+100000..U+10FFFF F4 80..8F 80..BF 80..BF
case 0xF4:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x8F, 0x80, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// remaining bytes (80..C1 and F5..FF) are ill-formed
default:
{
error_message = "invalid string: ill-formed UTF-8 byte";
return token_type::parse_error;
}
}
}
} | O2 | 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>>>>>::scan_string():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
callq 0x66982
cmpl $0x22, 0x14(%rbx)
jne 0x66540
leaq 0x50(%rbx), %r14
leaq 0x639ff(%rip), %r12 # 0xc9b48
pushq $0xe
popq %rbp
movq %rbx, %rdi
callq 0x668a8
incl %eax
cmpl $0xf5, %eax
ja 0x66512
movslq (%r12,%rax,4), %rcx
addq %r12, %rcx
movabsq $0xbf00000080, %rax # imm = 0xBF00000080
jmpq *%rcx
movb 0x14(%rbx), %r15b
movsbl %r15b, %esi
movq %r14, %rdi
callq 0x26a50
jmp 0x6614c
movq %rsp, %rsi
movq %rax, (%rsi)
pushq $0x2
jmp 0x6621e
movaps 0x638f6(%rip), %xmm0 # 0xc9a90
movq %rsp, %rsi
movaps %xmm0, (%rsi)
pushq $0x4
jmp 0x6621e
movups 0x6a8d9(%rip), %xmm0 # 0xd0a84
jmp 0x66212
movaps 0x638cc(%rip), %xmm0 # 0xc9a80
jmp 0x6619a
movq %rbx, %rdi
callq 0x668a8
leaq 0x69456(%rip), %r13 # 0xcf61b
leal -0x6e(%rax), %ecx
cmpl $0x7, %ecx
jbe 0x66240
cmpl $0x22, %eax
je 0x66339
cmpl $0x2f, %eax
je 0x66349
cmpl $0x66, %eax
je 0x66341
cmpl $0x62, %eax
je 0x66351
cmpl $0x5c, %eax
jne 0x66519
movb $0x5c, %r15b
jmp 0x66178
movups 0x6a893(%rip), %xmm0 # 0xd0a9c
jmp 0x66212
movups 0x6a85a(%rip), %xmm0 # 0xd0a6c
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movq %rax, 0x10(%rsi)
pushq $0x6
popq %rdx
movq %rbx, %rdi
callq 0x66a84
testb %al, %al
jne 0x6614c
jmp 0x6651d
movaps 0x63865(%rip), %xmm0 # 0xc9aa0
jmp 0x6619a
leaq 0x63cd9(%rip), %rax # 0xc9f20
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movb $0xa, %r15b
jmp 0x66178
movb $0xd, %r15b
jmp 0x66178
movq %rbx, %rdi
callq 0x669be
leaq 0x692bb(%rip), %r13 # 0xcf52a
cmpl $-0x1, %eax
je 0x66519
movl %eax, %r15d
andl $0xfffffc00, %eax # imm = 0xFFFFFC00
cmpl $0xd800, %eax # imm = 0xD800
jne 0x66359
movq %rbx, %rdi
callq 0x668a8
cmpl $0x5c, %eax
jne 0x6652e
movq %rbx, %rdi
callq 0x668a8
cmpl $0x75, %eax
jne 0x6652e
movq %rbx, %rdi
callq 0x669be
cmpl $-0x1, %eax
je 0x66519
movl %eax, %ecx
andl $0xfffffc00, %ecx # imm = 0xFFFFFC00
leaq 0x69293(%rip), %r13 # 0xcf560
cmpl $0xdc00, %ecx # imm = 0xDC00
jne 0x66519
shll $0xa, %r15d
addl %eax, %r15d
addl $0xfca02400, %r15d # imm = 0xFCA02400
movl %r15d, %eax
shrl $0x12, %eax
orb $-0x10, %al
movsbl %al, %esi
movq %r14, %rdi
callq 0x26a50
movl %r15d, %eax
shrl $0xc, %eax
andb $0x3f, %al
orb $-0x80, %al
movsbl %al, %esi
movq %r14, %rdi
callq 0x26a50
movl %r15d, %eax
shrl $0x6, %eax
andb $0x3f, %al
orb $-0x80, %al
movsbl %al, %esi
movq %r14, %rdi
callq 0x26a50
andb $0x3f, %r15b
orb $-0x80, %r15b
jmp 0x66178
movb $0x9, %r15b
jmp 0x66178
movb $0x22, %r15b
jmp 0x66178
movb $0xc, %r15b
jmp 0x66178
movb $0x2f, %r15b
jmp 0x66178
movb $0x8, %r15b
jmp 0x66178
cmpl $0xdc00, %eax # imm = 0xDC00
je 0x66537
cmpl $0x110000, %r15d # imm = 0x110000
jae 0x66561
cmpl $0x7f, %r15d
jbe 0x66178
cmpl $0x7ff, %r15d # imm = 0x7FF
ja 0x6638e
movl %r15d, %eax
shrl $0x6, %eax
orb $-0x40, %al
jmp 0x66319
cmpl $0xffff, %r15d # imm = 0xFFFF
ja 0x662e7
movl %r15d, %eax
shrl $0xc, %eax
orb $-0x20, %al
jmp 0x66304
leaq 0x69b41(%rip), %r13 # 0xcfef0
jmp 0x66519
leaq 0x699cb(%rip), %r13 # 0xcfd86
jmp 0x66519
leaq 0x69809(%rip), %r13 # 0xcfbd0
jmp 0x66519
leaq 0x695f6(%rip), %r13 # 0xcf9c9
jmp 0x66519
leaq 0x6983a(%rip), %r13 # 0xcfc19
jmp 0x66519
leaq 0x6962c(%rip), %r13 # 0xcfa17
jmp 0x66519
leaq 0x698fd(%rip), %r13 # 0xcfcf4
jmp 0x66519
leaq 0x69aa5(%rip), %r13 # 0xcfea8
jmp 0x66519
leaq 0x693ad(%rip), %r13 # 0xcf7bc
jmp 0x66519
leaq 0x6976c(%rip), %r13 # 0xcfb87
jmp 0x66519
leaq 0x69916(%rip), %r13 # 0xcfd3d
jmp 0x66519
leaq 0x69340(%rip), %r13 # 0xcf773
jmp 0x66519
leaq 0x692eb(%rip), %r13 # 0xcf72a
jmp 0x66519
leaq 0x694e8(%rip), %r13 # 0xcf933
jmp 0x66519
leaq 0x693ae(%rip), %r13 # 0xcf805
jmp 0x66519
leaq 0x699b4(%rip), %r13 # 0xcfe17
jmp 0x66519
leaq 0x69272(%rip), %r13 # 0xcf6e1
jmp 0x66519
leaq 0x69089(%rip), %r13 # 0xcf504
jmp 0x66519
leaq 0x6966e(%rip), %r13 # 0xcfaf5
jmp 0x66519
leaq 0x69205(%rip), %r13 # 0xcf698
jmp 0x66519
leaq 0x691b0(%rip), %r13 # 0xcf64f
jmp 0x66519
leaq 0x69696(%rip), %r13 # 0xcfb3e
jmp 0x66519
leaq 0x69434(%rip), %r13 # 0xcf8e5
jmp 0x66519
leaq 0x69a7e(%rip), %r13 # 0xcff38
jmp 0x66519
leaq 0x6938b(%rip), %r13 # 0xcf84e
jmp 0x66519
leaq 0x697df(%rip), %r13 # 0xcfcab
jmp 0x66519
leaq 0x694ac(%rip), %r13 # 0xcf981
jmp 0x66519
leaq 0x69587(%rip), %r13 # 0xcfa65
jmp 0x66519
leaq 0x693b0(%rip), %r13 # 0xcf897
jmp 0x66519
leaq 0x69772(%rip), %r13 # 0xcfc62
jmp 0x66519
leaq 0x698d5(%rip), %r13 # 0xcfdce
jmp 0x66519
leaq 0x695ab(%rip), %r13 # 0xcfaad
jmp 0x66519
leaq 0x69955(%rip), %r13 # 0xcfe60
jmp 0x66519
pushq $0x4
popq %rbp
jmp 0x6651d
leaq 0x69a67(%rip), %r13 # 0xcff80
movq %r13, 0x70(%rbx)
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6902b(%rip), %r13 # 0xcf560
jmp 0x66519
leaq 0x6906e(%rip), %r13 # 0xcf5ac
jmp 0x66519
leaq 0x68d38(%rip), %rdi # 0xcf27f
leaq 0x613f5(%rip), %rdx # 0xc7943
leaq 0x68f9f(%rip), %rcx # 0xcf4f4
movl $0x1dd1, %esi # imm = 0x1DD1
xorl %eax, %eax
callq 0x27520
leaq 0x68d17(%rip), %rdi # 0xcf27f
leaq 0x613d4(%rip), %rdx # 0xc7943
leaq 0x6907a(%rip), %rcx # 0xcf5f0
movl $0x1e49, %esi # imm = 0x1E49
jmp 0x6655a
nop
| _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE11scan_stringEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rdi
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5resetEv; 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>>>::reset(void)
cmp dword ptr [rbx+14h], 22h ; '"'
jnz loc_66540
lea r14, [rbx+50h]
lea r12, jpt_66172
push 0Eh
pop rbp
loc_6614C:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; 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(void)
inc eax; switch 246 cases
cmp eax, 0F5h
ja def_66172; jumptable 0000000000066172 default case, cases 128-193
movsxd rcx, ds:(jpt_66172 - 0C9B48h)[r12+rax*4]
add rcx, r12
mov rax, 0BF00000080h
jmp rcx; switch jump
loc_66174:
mov r15b, [rbx+14h]; jumptable 0000000000066172 cases 32,33,35-91,93-127
loc_66178:
movsx esi, r15b
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
jmp short loc_6614C
loc_66186:
mov rsi, rsp; jumptable 0000000000066172 cases 194-223
mov [rsi], rax
push 2
jmp loc_6621E
loc_66193:
movaps xmm0, cs:xmmword_C9A90; jumptable 0000000000066172 cases 225-236,238,239
loc_6619A:
mov rsi, rsp
movaps xmmword ptr [rsi], xmm0
push 4
jmp short loc_6621E
loc_661A4:
movups xmm0, cs:xmmword_D0A84; jumptable 0000000000066172 cases 241-243
jmp short loc_66212
loc_661AD:
movaps xmm0, cs:xmmword_C9A80; jumptable 0000000000066172 case 237
jmp short loc_6619A
loc_661B6:
mov rdi, rbx; jumptable 0000000000066172 case 92
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; 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(void)
lea r13, aInvalidStringF; "invalid string: forbidden character aft"...
lea ecx, [rax-6Eh]; switch 8 cases
cmp ecx, 7
jbe short loc_66240
def_6624E:
cmp eax, 22h ; '"'; jumptable 000000000006624E default case
jz loc_66339
cmp eax, 2Fh ; '/'
jz loc_66349
cmp eax, 66h ; 'f'
jz loc_66341
cmp eax, 62h ; 'b'
jz loc_66351
cmp eax, 5Ch ; '\'
jnz loc_66519; jumptable 000000000006624E cases 111-113,115
mov r15b, 5Ch ; '\'
jmp loc_66178
loc_66202:
movups xmm0, cs:xmmword_D0A9C; jumptable 0000000000066172 case 244
jmp short loc_66212
loc_6620B:
movups xmm0, cs:xmmword_D0A6C; jumptable 0000000000066172 case 240
loc_66212:
mov rsi, rsp
movaps xmmword ptr [rsi], xmm0
mov [rsi+10h], rax
push 6
loc_6621E:
pop rdx
mov rdi, 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; 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>)
test al, al
jnz loc_6614C
jmp loc_6651D
loc_66234:
movaps xmm0, cs:xmmword_C9AA0; jumptable 0000000000066172 case 224
jmp loc_6619A
loc_66240:
lea rax, jpt_6624E
movsxd rcx, ds:(jpt_6624E - 0C9F20h)[rax+rcx*4]
add rcx, rax
jmp rcx; switch jump
loc_66250:
mov r15b, 0Ah; jumptable 000000000006624E case 110
jmp loc_66178
loc_66258:
mov r15b, 0Dh; jumptable 000000000006624E case 114
jmp loc_66178
loc_66260:
mov rdi, rbx; jumptable 000000000006624E case 117
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE13get_codepointEv; 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_codepoint(void)
lea r13, aInvalidStringU; "invalid string: '\\u' must be followed "...
cmp eax, 0FFFFFFFFh
jz loc_66519; jumptable 000000000006624E cases 111-113,115
mov r15d, eax
and eax, 0FFFFFC00h
cmp eax, 0D800h
jnz loc_66359
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; 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(void)
cmp eax, 5Ch ; '\'
jnz loc_6652E
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; 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(void)
cmp eax, 75h ; 'u'
jnz loc_6652E
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE13get_codepointEv; 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_codepoint(void)
cmp eax, 0FFFFFFFFh
jz loc_66519; jumptable 000000000006624E cases 111-113,115
mov ecx, eax
and ecx, 0FFFFFC00h
lea r13, aInvalidStringS; "invalid string: surrogate U+D800..U+DBF"...
cmp ecx, 0DC00h
jnz loc_66519; jumptable 000000000006624E cases 111-113,115
shl r15d, 0Ah
add r15d, eax
add r15d, 0FCA02400h
loc_662E7:
mov eax, r15d
shr eax, 12h
or al, 0F0h
movsx esi, al
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov eax, r15d
shr eax, 0Ch
and al, 3Fh
or al, 80h
loc_66304:
movsx esi, al
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov eax, r15d
shr eax, 6
and al, 3Fh
or al, 80h
loc_66319:
movsx esi, al
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
and r15b, 3Fh
or r15b, 80h
jmp loc_66178
loc_66331:
mov r15b, 9; jumptable 000000000006624E case 116
jmp loc_66178
loc_66339:
mov r15b, 22h ; '"'
jmp loc_66178
loc_66341:
mov r15b, 0Ch
jmp loc_66178
loc_66349:
mov r15b, 2Fh ; '/'
jmp loc_66178
loc_66351:
mov r15b, 8
jmp loc_66178
loc_66359:
cmp eax, 0DC00h
jz loc_66537
cmp r15d, offset unk_110000
jnb loc_66561
cmp r15d, 7Fh
jbe loc_66178
cmp r15d, 7FFh
ja short loc_6638E
mov eax, r15d
shr eax, 6
or al, 0C0h
jmp short loc_66319
loc_6638E:
cmp r15d, 0FFFFh
ja loc_662E7
mov eax, r15d
shr eax, 0Ch
or al, 0E0h
jmp loc_66304
loc_663A8:
lea r13, aInvalidStringC; jumptable 0000000000066172 case 30
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_663B4:
lea r13, aInvalidStringC_0; jumptable 0000000000066172 case 25
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_663C0:
lea r13, aInvalidStringC_1; jumptable 0000000000066172 case 19
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_663CC:
lea r13, aInvalidStringC_2; jumptable 0000000000066172 case 12
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_663D8:
lea r13, aInvalidStringC_3; jumptable 0000000000066172 case 20
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_663E4:
lea r13, aInvalidStringC_4; jumptable 0000000000066172 case 13
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_663F0:
lea r13, aInvalidStringC_5; jumptable 0000000000066172 case 23
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_663FC:
lea r13, aInvalidStringC_6; jumptable 0000000000066172 case 29
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_66408:
lea r13, aInvalidStringC_7; jumptable 0000000000066172 case 5
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_66414:
lea r13, aInvalidStringC_8; jumptable 0000000000066172 case 18
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_66420:
lea r13, aInvalidStringC_9; jumptable 0000000000066172 case 24
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_6642C:
lea r13, aInvalidStringC_10; jumptable 0000000000066172 case 4
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_66438:
lea r13, aInvalidStringC_11; jumptable 0000000000066172 case 3
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_66444:
lea r13, aInvalidStringC_12; jumptable 0000000000066172 case 10
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_66450:
lea r13, aInvalidStringC_13; jumptable 0000000000066172 case 6
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_6645C:
lea r13, aInvalidStringC_14; jumptable 0000000000066172 case 27
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_66468:
lea r13, aInvalidStringC_15; jumptable 0000000000066172 case 2
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_66474:
lea r13, aInvalidStringM; jumptable 0000000000066172 case -1
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_66480:
lea r13, aInvalidStringC_16; jumptable 0000000000066172 case 16
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_6648C:
lea r13, aInvalidStringC_17; jumptable 0000000000066172 case 1
jmp loc_66519; jumptable 000000000006624E cases 111-113,115
loc_66498:
lea r13, aInvalidStringC_18; jumptable 0000000000066172 case 0
jmp short loc_66519; jumptable 000000000006624E cases 111-113,115
loc_664A1:
lea r13, aInvalidStringC_19; jumptable 0000000000066172 case 17
jmp short loc_66519; jumptable 000000000006624E cases 111-113,115
loc_664AA:
lea r13, aInvalidStringC_20; jumptable 0000000000066172 case 9
jmp short loc_66519; jumptable 000000000006624E cases 111-113,115
loc_664B3:
lea r13, aInvalidStringC_21; jumptable 0000000000066172 case 31
jmp short loc_66519; jumptable 000000000006624E cases 111-113,115
loc_664BC:
lea r13, aInvalidStringC_22; jumptable 0000000000066172 case 7
jmp short loc_66519; jumptable 000000000006624E cases 111-113,115
loc_664C5:
lea r13, aInvalidStringC_23; jumptable 0000000000066172 case 22
jmp short loc_66519; jumptable 000000000006624E cases 111-113,115
loc_664CE:
lea r13, aInvalidStringC_24; jumptable 0000000000066172 case 11
jmp short loc_66519; jumptable 000000000006624E cases 111-113,115
loc_664D7:
lea r13, aInvalidStringC_25; jumptable 0000000000066172 case 14
jmp short loc_66519; jumptable 000000000006624E cases 111-113,115
loc_664E0:
lea r13, aInvalidStringC_26; jumptable 0000000000066172 case 8
jmp short loc_66519; jumptable 000000000006624E cases 111-113,115
loc_664E9:
lea r13, aInvalidStringC_27; jumptable 0000000000066172 case 21
jmp short loc_66519; jumptable 000000000006624E cases 111-113,115
loc_664F2:
lea r13, aInvalidStringC_28; jumptable 0000000000066172 case 26
jmp short loc_66519; jumptable 000000000006624E cases 111-113,115
loc_664FB:
lea r13, aInvalidStringC_29; jumptable 0000000000066172 case 15
jmp short loc_66519; jumptable 000000000006624E cases 111-113,115
loc_66504:
lea r13, aInvalidStringC_30; jumptable 0000000000066172 case 28
jmp short loc_66519; jumptable 000000000006624E cases 111-113,115
loc_6650D:
push 4; jumptable 0000000000066172 case 34
pop rbp
jmp short loc_6651D
def_66172:
lea r13, aInvalidStringI; jumptable 0000000000066172 default case, cases 128-193
loc_66519:
mov [rbx+70h], r13; jumptable 000000000006624E cases 111-113,115
loc_6651D:
mov eax, ebp
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_6652E:
lea r13, aInvalidStringS; "invalid string: surrogate U+D800..U+DBF"...
jmp short loc_66519; jumptable 000000000006624E cases 111-113,115
loc_66537:
lea r13, aInvalidStringS_0; "invalid string: surrogate U+DC00..U+DFF"...
jmp short loc_66519; jumptable 000000000006624E cases 111-113,115
loc_66540:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCurrent; "current == '\\\"'"
mov esi, 1DD1h
loc_6655A:
xor eax, eax
call _ggml_abort
loc_66561:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, a0x00CodepointC; "0x00 <= codepoint && codepoint <= 0x10F"...
mov esi, 1E49h
jmp short loc_6655A
| long long nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_string(
long long a1)
{
unsigned int v1; // ebp
long long v2; // rcx
long long v3; // r8
long long v4; // r9
unsigned int v5; // r15d
char byte_in_range; // al
__int128 v7; // xmm0
__int128 v8; // xmm0
int v9; // eax
const char *v10; // r13
unsigned int codepoint; // eax
unsigned int v12; // eax
int v13; // eax
char v14; // al
char v15; // al
_QWORD v17[2]; // [rsp+0h] [rbp-48h] BYREF
long long v18; // [rsp+10h] [rbp-38h]
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>>>::reset();
if ( *(_DWORD *)(a1 + 20) != 34 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7633LL,
"GGML_ASSERT(%s) failed",
"current == '\\\"'");
while ( 1 )
LABEL_89:
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7753LL,
"GGML_ASSERT(%s) failed",
"0x00 <= codepoint && codepoint <= 0x10FFFF");
}
v1 = 14;
while ( 2 )
{
while ( 2 )
{
switch ( (unsigned int)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(a1) )
{
case 0xFFFFFFFF:
v10 = "invalid string: missing closing quote";
goto LABEL_84;
case 0u:
v10 = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000";
goto LABEL_84;
case 1u:
v10 = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001";
goto LABEL_84;
case 2u:
v10 = "invalid string: control character U+0002 (STX) must be escaped to \\u0002";
goto LABEL_84;
case 3u:
v10 = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003";
goto LABEL_84;
case 4u:
v10 = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004";
goto LABEL_84;
case 5u:
v10 = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005";
goto LABEL_84;
case 6u:
v10 = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006";
goto LABEL_84;
case 7u:
v10 = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007";
goto LABEL_84;
case 8u:
v10 = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b";
goto LABEL_84;
case 9u:
v10 = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t";
goto LABEL_84;
case 0xAu:
v10 = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n";
goto LABEL_84;
case 0xBu:
v10 = "invalid string: control character U+000B (VT) must be escaped to \\u000B";
goto LABEL_84;
case 0xCu:
v10 = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f";
goto LABEL_84;
case 0xDu:
v10 = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r";
goto LABEL_84;
case 0xEu:
v10 = "invalid string: control character U+000E (SO) must be escaped to \\u000E";
goto LABEL_84;
case 0xFu:
v10 = "invalid string: control character U+000F (SI) must be escaped to \\u000F";
goto LABEL_84;
case 0x10u:
v10 = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010";
goto LABEL_84;
case 0x11u:
v10 = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011";
goto LABEL_84;
case 0x12u:
v10 = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012";
goto LABEL_84;
case 0x13u:
v10 = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013";
goto LABEL_84;
case 0x14u:
v10 = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014";
goto LABEL_84;
case 0x15u:
v10 = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015";
goto LABEL_84;
case 0x16u:
v10 = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016";
goto LABEL_84;
case 0x17u:
v10 = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017";
goto LABEL_84;
case 0x18u:
v10 = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018";
goto LABEL_84;
case 0x19u:
v10 = "invalid string: control character U+0019 (EM) must be escaped to \\u0019";
goto LABEL_84;
case 0x1Au:
v10 = "invalid string: control character U+001A (SUB) must be escaped to \\u001A";
goto LABEL_84;
case 0x1Bu:
v10 = "invalid string: control character U+001B (ESC) must be escaped to \\u001B";
goto LABEL_84;
case 0x1Cu:
v10 = "invalid string: control character U+001C (FS) must be escaped to \\u001C";
goto LABEL_84;
case 0x1Du:
v10 = "invalid string: control character U+001D (GS) must be escaped to \\u001D";
goto LABEL_84;
case 0x1Eu:
v10 = "invalid string: control character U+001E (RS) must be escaped to \\u001E";
goto LABEL_84;
case 0x1Fu:
v10 = "invalid string: control character U+001F (US) must be escaped to \\u001F";
goto LABEL_84;
case 0x20u:
case 0x21u:
case 0x23u:
case 0x24u:
case 0x25u:
case 0x26u:
case 0x27u:
case 0x28u:
case 0x29u:
case 0x2Au:
case 0x2Bu:
case 0x2Cu:
case 0x2Du:
case 0x2Eu:
case 0x2Fu:
case 0x30u:
case 0x31u:
case 0x32u:
case 0x33u:
case 0x34u:
case 0x35u:
case 0x36u:
case 0x37u:
case 0x38u:
case 0x39u:
case 0x3Au:
case 0x3Bu:
case 0x3Cu:
case 0x3Du:
case 0x3Eu:
case 0x3Fu:
case 0x40u:
case 0x41u:
case 0x42u:
case 0x43u:
case 0x44u:
case 0x45u:
case 0x46u:
case 0x47u:
case 0x48u:
case 0x49u:
case 0x4Au:
case 0x4Bu:
case 0x4Cu:
case 0x4Du:
case 0x4Eu:
case 0x4Fu:
case 0x50u:
case 0x51u:
case 0x52u:
case 0x53u:
case 0x54u:
case 0x55u:
case 0x56u:
case 0x57u:
case 0x58u:
case 0x59u:
case 0x5Au:
case 0x5Bu:
case 0x5Du:
case 0x5Eu:
case 0x5Fu:
case 0x60u:
case 0x61u:
case 0x62u:
case 0x63u:
case 0x64u:
case 0x65u:
case 0x66u:
case 0x67u:
case 0x68u:
case 0x69u:
case 0x6Au:
case 0x6Bu:
case 0x6Cu:
case 0x6Du:
case 0x6Eu:
case 0x6Fu:
case 0x70u:
case 0x71u:
case 0x72u:
case 0x73u:
case 0x74u:
case 0x75u:
case 0x76u:
case 0x77u:
case 0x78u:
case 0x79u:
case 0x7Au:
case 0x7Bu:
case 0x7Cu:
case 0x7Du:
case 0x7Eu:
case 0x7Fu:
LOBYTE(v5) = *(_BYTE *)(a1 + 20);
goto LABEL_5;
case 0x22u:
return 4;
case 0x5Cu:
v9 = 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(a1);
v10 = "invalid string: forbidden character after backslash";
break;
case 0xC2u:
case 0xC3u:
case 0xC4u:
case 0xC5u:
case 0xC6u:
case 0xC7u:
case 0xC8u:
case 0xC9u:
case 0xCAu:
case 0xCBu:
case 0xCCu:
case 0xCDu:
case 0xCEu:
case 0xCFu:
case 0xD0u:
case 0xD1u:
case 0xD2u:
case 0xD3u:
case 0xD4u:
case 0xD5u:
case 0xD6u:
case 0xD7u:
case 0xD8u:
case 0xD9u:
case 0xDAu:
case 0xDBu:
case 0xDCu:
case 0xDDu:
case 0xDEu:
case 0xDFu:
byte_in_range = 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,
v17,
2LL,
v2,
v3,
v4,
0xBF00000080LL,
v17[1],
v18);
goto LABEL_21;
case 0xE0u:
v7 = xmmword_C9AA0;
goto LABEL_8;
case 0xE1u:
case 0xE2u:
case 0xE3u:
case 0xE4u:
case 0xE5u:
case 0xE6u:
case 0xE7u:
case 0xE8u:
case 0xE9u:
case 0xEAu:
case 0xEBu:
case 0xECu:
case 0xEEu:
case 0xEFu:
v7 = xmmword_C9A90;
goto LABEL_8;
case 0xEDu:
v7 = xmmword_C9A80;
LABEL_8:
byte_in_range = 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,
v17,
4LL,
v2,
v3,
v4,
v7,
*((_QWORD *)&v7 + 1),
v18);
goto LABEL_21;
case 0xF0u:
v8 = xmmword_D0A6C;
goto LABEL_20;
case 0xF1u:
case 0xF2u:
case 0xF3u:
v8 = xmmword_D0A84;
goto LABEL_20;
case 0xF4u:
v8 = xmmword_D0A9C;
LABEL_20:
byte_in_range = 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,
v17,
6LL,
v2,
v3,
v4,
v8,
*((_QWORD *)&v8 + 1),
0xBF00000080LL);
LABEL_21:
if ( !byte_in_range )
return v1;
continue;
default:
v10 = "invalid string: ill-formed UTF-8 byte";
goto LABEL_84;
}
break;
}
switch ( v9 )
{
case 'n':
LOBYTE(v5) = 10;
goto LABEL_5;
case 'o':
case 'p':
case 'q':
case 's':
goto LABEL_84;
case 'r':
LOBYTE(v5) = 13;
goto LABEL_5;
case 't':
LOBYTE(v5) = 9;
goto LABEL_5;
case 'u':
codepoint = 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_codepoint(a1);
v10 = "invalid string: '\\u' must be followed by 4 hex digits";
if ( codepoint == -1 )
goto LABEL_84;
v5 = codepoint;
v12 = codepoint & 0xFFFFFC00;
if ( v12 != 55296 )
{
if ( v12 == 56320 )
{
v10 = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF";
goto LABEL_84;
}
if ( v5 >= (unsigned int)&unk_110000 )
goto LABEL_89;
if ( v5 > 0x7F )
{
if ( v5 <= 0x7FF )
{
v15 = (v5 >> 6) | 0xC0;
goto LABEL_36;
}
if ( v5 <= 0xFFFF )
{
v14 = (v5 >> 12) | 0xE0;
goto LABEL_35;
}
LABEL_34:
std::string::push_back(a1 + 80, (unsigned int)(char)((v5 >> 18) | 0xF0));
v14 = (v5 >> 12) & 0x3F | 0x80;
LABEL_35:
std::string::push_back(a1 + 80, (unsigned int)v14);
v15 = (v5 >> 6) & 0x3F | 0x80;
LABEL_36:
std::string::push_back(a1 + 80, (unsigned int)v15);
LOBYTE(v5) = v5 & 0x3F | 0x80;
}
LABEL_5:
std::string::push_back(a1 + 80, (unsigned int)(char)v5);
continue;
}
if ( (unsigned int)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(a1) == 92
&& (unsigned int)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(a1) == 117 )
{
v13 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_codepoint(a1);
if ( v13 == -1 )
goto LABEL_84;
v10 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
if ( (v13 & 0xFFFFFC00) != 0xDC00 )
goto LABEL_84;
v5 = v13 + (v5 << 10) - 56613888;
goto LABEL_34;
}
v10 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
LABEL_84:
*(_QWORD *)(a1 + 112) = v10;
return v1;
default:
switch ( v9 )
{
case '"':
LOBYTE(v5) = 34;
break;
case '/':
LOBYTE(v5) = 47;
break;
case 'f':
LOBYTE(v5) = 12;
break;
case 'b':
LOBYTE(v5) = 8;
break;
case '\\':
LOBYTE(v5) = 92;
break;
default:
goto LABEL_84;
}
goto LABEL_5;
}
}
}
| scan_string:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
CALL 0x00166982
CMP dword ptr [RBX + 0x14],0x22
JNZ 0x00166540
LEA R14,[RBX + 0x50]
LEA R12,[0x1c9b48]
PUSH 0xe
POP RBP
LAB_0016614c:
MOV RDI,RBX
CALL 0x001668a8
INC EAX
CMP EAX,0xf5
JA 0x00166512
MOVSXD RCX,dword ptr [R12 + RAX*0x4]
ADD RCX,R12
MOV RAX,0xbf00000080
switchD:
JMP RCX
caseD_20:
MOV R15B,byte ptr [RBX + 0x14]
LAB_00166178:
MOVSX ESI,R15B
MOV RDI,R14
CALL 0x00126a50
JMP 0x0016614c
caseD_c2:
MOV RSI,RSP
MOV qword ptr [RSI],RAX
PUSH 0x2
JMP 0x0016621e
caseD_e1:
MOVAPS XMM0,xmmword ptr [0x001c9a90]
LAB_0016619a:
MOV RSI,RSP
MOVAPS xmmword ptr [RSI],XMM0
PUSH 0x4
JMP 0x0016621e
caseD_f1:
MOVUPS XMM0,xmmword ptr [0x001d0a84]
JMP 0x00166212
caseD_ed:
MOVAPS XMM0,xmmword ptr [0x001c9a80]
JMP 0x0016619a
caseD_5c:
MOV RDI,RBX
CALL 0x001668a8
LEA R13,[0x1cf61b]
LEA ECX,[RAX + -0x6e]
CMP ECX,0x7
JBE 0x00166240
default:
CMP EAX,0x22
JZ 0x00166339
CMP EAX,0x2f
JZ 0x00166349
CMP EAX,0x66
JZ 0x00166341
CMP EAX,0x62
JZ 0x00166351
CMP EAX,0x5c
JNZ 0x00166519
MOV R15B,0x5c
JMP 0x00166178
caseD_f4:
MOVUPS XMM0,xmmword ptr [0x001d0a9c]
JMP 0x00166212
caseD_f0:
MOVUPS XMM0,xmmword ptr [0x001d0a6c]
LAB_00166212:
MOV RSI,RSP
MOVAPS xmmword ptr [RSI],XMM0
MOV qword ptr [RSI + 0x10],RAX
PUSH 0x6
LAB_0016621e:
POP RDX
MOV RDI,RBX
CALL 0x00166a84
TEST AL,AL
JNZ 0x0016614c
JMP 0x0016651d
caseD_e0:
MOVAPS XMM0,xmmword ptr [0x001c9aa0]
JMP 0x0016619a
LAB_00166240:
LEA RAX,[0x1c9f20]
MOVSXD RCX,dword ptr [RAX + RCX*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_6e:
MOV R15B,0xa
JMP 0x00166178
caseD_72:
MOV R15B,0xd
JMP 0x00166178
caseD_75:
MOV RDI,RBX
CALL 0x001669be
LEA R13,[0x1cf52a]
CMP EAX,-0x1
JZ 0x00166519
MOV R15D,EAX
AND EAX,0xfffffc00
CMP EAX,0xd800
JNZ 0x00166359
MOV RDI,RBX
CALL 0x001668a8
CMP EAX,0x5c
JNZ 0x0016652e
MOV RDI,RBX
CALL 0x001668a8
CMP EAX,0x75
JNZ 0x0016652e
MOV RDI,RBX
CALL 0x001669be
CMP EAX,-0x1
JZ 0x00166519
MOV ECX,EAX
AND ECX,0xfffffc00
LEA R13,[0x1cf560]
CMP ECX,0xdc00
JNZ 0x00166519
SHL R15D,0xa
ADD R15D,EAX
ADD R15D,0xfca02400
LAB_001662e7:
MOV EAX,R15D
SHR EAX,0x12
OR AL,0xf0
MOVSX ESI,AL
MOV RDI,R14
CALL 0x00126a50
MOV EAX,R15D
SHR EAX,0xc
AND AL,0x3f
OR AL,0x80
LAB_00166304:
MOVSX ESI,AL
MOV RDI,R14
CALL 0x00126a50
MOV EAX,R15D
SHR EAX,0x6
AND AL,0x3f
OR AL,0x80
LAB_00166319:
MOVSX ESI,AL
MOV RDI,R14
CALL 0x00126a50
AND R15B,0x3f
OR R15B,0x80
JMP 0x00166178
caseD_74:
MOV R15B,0x9
JMP 0x00166178
LAB_00166339:
MOV R15B,0x22
JMP 0x00166178
LAB_00166341:
MOV R15B,0xc
JMP 0x00166178
LAB_00166349:
MOV R15B,0x2f
JMP 0x00166178
LAB_00166351:
MOV R15B,0x8
JMP 0x00166178
LAB_00166359:
CMP EAX,0xdc00
JZ 0x00166537
CMP R15D,0x110000
JNC 0x00166561
CMP R15D,0x7f
JBE 0x00166178
CMP R15D,0x7ff
JA 0x0016638e
MOV EAX,R15D
SHR EAX,0x6
OR AL,0xc0
JMP 0x00166319
LAB_0016638e:
CMP R15D,0xffff
JA 0x001662e7
MOV EAX,R15D
SHR EAX,0xc
OR AL,0xe0
JMP 0x00166304
caseD_1e:
LEA R13,[0x1cfef0]
JMP 0x00166519
caseD_19:
LEA R13,[0x1cfd86]
JMP 0x00166519
caseD_13:
LEA R13,[0x1cfbd0]
JMP 0x00166519
caseD_c:
LEA R13,[0x1cf9c9]
JMP 0x00166519
caseD_14:
LEA R13,[0x1cfc19]
JMP 0x00166519
caseD_d:
LEA R13,[0x1cfa17]
JMP 0x00166519
caseD_17:
LEA R13,[0x1cfcf4]
JMP 0x00166519
caseD_1d:
LEA R13,[0x1cfea8]
JMP 0x00166519
caseD_5:
LEA R13,[0x1cf7bc]
JMP 0x00166519
caseD_12:
LEA R13,[0x1cfb87]
JMP 0x00166519
caseD_18:
LEA R13,[0x1cfd3d]
JMP 0x00166519
caseD_4:
LEA R13,[0x1cf773]
JMP 0x00166519
caseD_3:
LEA R13,[0x1cf72a]
JMP 0x00166519
caseD_a:
LEA R13,[0x1cf933]
JMP 0x00166519
caseD_6:
LEA R13,[0x1cf805]
JMP 0x00166519
caseD_1b:
LEA R13,[0x1cfe17]
JMP 0x00166519
caseD_2:
LEA R13,[0x1cf6e1]
JMP 0x00166519
caseD_ffffffff:
LEA R13,[0x1cf504]
JMP 0x00166519
caseD_10:
LEA R13,[0x1cfaf5]
JMP 0x00166519
caseD_1:
LEA R13,[0x1cf698]
JMP 0x00166519
caseD_0:
LEA R13,[0x1cf64f]
JMP 0x00166519
caseD_11:
LEA R13,[0x1cfb3e]
JMP 0x00166519
caseD_9:
LEA R13,[0x1cf8e5]
JMP 0x00166519
caseD_1f:
LEA R13,[0x1cff38]
JMP 0x00166519
caseD_7:
LEA R13,[0x1cf84e]
JMP 0x00166519
caseD_16:
LEA R13,[0x1cfcab]
JMP 0x00166519
caseD_b:
LEA R13,[0x1cf981]
JMP 0x00166519
caseD_e:
LEA R13,[0x1cfa65]
JMP 0x00166519
caseD_8:
LEA R13,[0x1cf897]
JMP 0x00166519
caseD_15:
LEA R13,[0x1cfc62]
JMP 0x00166519
caseD_1a:
LEA R13,[0x1cfdce]
JMP 0x00166519
caseD_f:
LEA R13,[0x1cfaad]
JMP 0x00166519
caseD_1c:
LEA R13,[0x1cfe60]
JMP 0x00166519
caseD_22:
PUSH 0x4
POP RBP
JMP 0x0016651d
caseD_80:
LEA R13,[0x1cff80]
caseD_6f:
MOV qword ptr [RBX + 0x70],R13
LAB_0016651d:
MOV EAX,EBP
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0016652e:
LEA R13,[0x1cf560]
JMP 0x00166519
LAB_00166537:
LEA R13,[0x1cf5ac]
JMP 0x00166519
LAB_00166540:
LEA RDI,[0x1cf27f]
LEA RDX,[0x1c7943]
LEA RCX,[0x1cf4f4]
MOV ESI,0x1dd1
LAB_0016655a:
XOR EAX,EAX
CALL 0x00127520
LAB_00166561:
LEA RDI,[0x1cf27f]
LEA RDX,[0x1c7943]
LEA RCX,[0x1cf5f0]
MOV ESI,0x1e49
JMP 0x0016655a
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* 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 > > >::scan_string() */
int8 __thiscall
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>>>
::scan_string(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*this)
{
char cVar1;
int4 uVar2;
int iVar3;
uint uVar4;
int8 uVar5;
char cVar6;
char *pcVar7;
int4 uVar8;
int8 uStack_50;
int8 local_48;
int4 uStack_40;
int4 uStack_3c;
int8 local_38;
reset(this);
if (*(int *)(this + 0x14) != 0x22) {
pcVar7 = "current == \'\\\"\'";
uVar5 = 0x1dd1;
LAB_0016655a:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar5,
"GGML_ASSERT(%s) failed",pcVar7);
}
cVar6 = (char)this + 'P';
LAB_0016614c:
uVar2 = get(this);
switch(uVar2) {
case 0:
pcVar7 = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000";
break;
case 1:
pcVar7 = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001";
break;
case 2:
pcVar7 = "invalid string: control character U+0002 (STX) must be escaped to \\u0002";
break;
case 3:
pcVar7 = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003";
break;
case 4:
pcVar7 = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004";
break;
case 5:
pcVar7 = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005";
break;
case 6:
pcVar7 = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006";
break;
case 7:
pcVar7 = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007";
break;
case 8:
pcVar7 = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b";
break;
case 9:
pcVar7 = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t";
break;
case 10:
pcVar7 = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n";
break;
case 0xb:
pcVar7 = "invalid string: control character U+000B (VT) must be escaped to \\u000B";
break;
case 0xc:
pcVar7 = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f";
break;
case 0xd:
pcVar7 = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r";
break;
case 0xe:
pcVar7 = "invalid string: control character U+000E (SO) must be escaped to \\u000E";
break;
case 0xf:
pcVar7 = "invalid string: control character U+000F (SI) must be escaped to \\u000F";
break;
case 0x10:
pcVar7 = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010";
break;
case 0x11:
pcVar7 = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011";
break;
case 0x12:
pcVar7 = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012";
break;
case 0x13:
pcVar7 = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013";
break;
case 0x14:
pcVar7 = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014";
break;
case 0x15:
pcVar7 = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015";
break;
case 0x16:
pcVar7 = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016";
break;
case 0x17:
pcVar7 = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017";
break;
case 0x18:
pcVar7 = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018";
break;
case 0x19:
pcVar7 = "invalid string: control character U+0019 (EM) must be escaped to \\u0019";
break;
case 0x1a:
pcVar7 = "invalid string: control character U+001A (SUB) must be escaped to \\u001A";
break;
case 0x1b:
pcVar7 = "invalid string: control character U+001B (ESC) must be escaped to \\u001B";
break;
case 0x1c:
pcVar7 = "invalid string: control character U+001C (FS) must be escaped to \\u001C";
break;
case 0x1d:
pcVar7 = "invalid string: control character U+001D (GS) must be escaped to \\u001D";
break;
case 0x1e:
pcVar7 = "invalid string: control character U+001E (RS) must be escaped to \\u001E";
break;
case 0x1f:
pcVar7 = "invalid string: control character U+001F (US) must be escaped to \\u001F";
break;
case 0x20:
case 0x21:
case 0x23:
case 0x24:
case 0x25:
case 0x26:
case 0x27:
case 0x28:
case 0x29:
case 0x2a:
case 0x2b:
case 0x2c:
case 0x2d:
case 0x2e:
case 0x2f:
case 0x30:
case 0x31:
case 0x32:
case 0x33:
case 0x34:
case 0x35:
case 0x36:
case 0x37:
case 0x38:
case 0x39:
case 0x3a:
case 0x3b:
case 0x3c:
case 0x3d:
case 0x3e:
case 0x3f:
case 0x40:
case 0x41:
case 0x42:
case 0x43:
case 0x44:
case 0x45:
case 0x46:
case 0x47:
case 0x48:
case 0x49:
case 0x4a:
case 0x4b:
case 0x4c:
case 0x4d:
case 0x4e:
case 0x4f:
case 0x50:
case 0x51:
case 0x52:
case 0x53:
case 0x54:
case 0x55:
case 0x56:
case 0x57:
case 0x58:
case 0x59:
case 0x5a:
case 0x5b:
case 0x5d:
case 0x5e:
case 0x5f:
case 0x60:
case 0x61:
case 0x62:
case 99:
case 100:
case 0x65:
case 0x66:
case 0x67:
case 0x68:
case 0x69:
case 0x6a:
case 0x6b:
case 0x6c:
case 0x6d:
case 0x6e:
case 0x6f:
case 0x70:
case 0x71:
case 0x72:
case 0x73:
case 0x74:
case 0x75:
case 0x76:
case 0x77:
case 0x78:
case 0x79:
case 0x7a:
case 0x7b:
case 0x7c:
case 0x7d:
case 0x7e:
case 0x7f:
goto LAB_00166178;
case 0x22:
return 4;
case 0x5c:
iVar3 = get(this);
pcVar7 = "invalid string: forbidden character after backslash";
switch(iVar3) {
case 0x6e:
break;
case 0x6f:
case 0x70:
case 0x71:
case 0x73:
goto switchD_0016624e_caseD_6f;
case 0x72:
break;
case 0x74:
break;
case 0x75:
uVar4 = get_codepoint(this);
pcVar7 = "invalid string: \'\\u\' must be followed by 4 hex digits";
if (uVar4 == 0xffffffff) goto switchD_0016624e_caseD_6f;
if ((uVar4 & 0xfffffc00) == 0xd800) {
iVar3 = get(this);
if ((iVar3 != 0x5c) || (iVar3 = get(this), iVar3 != 0x75)) {
pcVar7 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
goto switchD_0016624e_caseD_6f;
}
uVar4 = get_codepoint(this);
if ((uVar4 == 0xffffffff) ||
(pcVar7 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF",
(uVar4 & 0xfffffc00) != 0xdc00)) goto switchD_0016624e_caseD_6f;
LAB_001662e7:
std::__cxx11::string::push_back(cVar6);
LAB_00166304:
std::__cxx11::string::push_back(cVar6);
}
else {
if ((uVar4 & 0xfffffc00) == 0xdc00) {
pcVar7 = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF";
goto switchD_0016624e_caseD_6f;
}
if (0x10ffff < uVar4) {
pcVar7 = "0x00 <= codepoint && codepoint <= 0x10FFFF";
uVar5 = 0x1e49;
goto LAB_0016655a;
}
if (uVar4 < 0x80) break;
if (0x7ff < uVar4) {
if (0xffff < uVar4) goto LAB_001662e7;
goto LAB_00166304;
}
}
std::__cxx11::string::push_back(cVar6);
break;
default:
if ((((iVar3 != 0x22) && (iVar3 != 0x2f)) && (iVar3 != 0x66)) &&
((iVar3 != 0x62 && (iVar3 != 0x5c)))) goto switchD_0016624e_caseD_6f;
}
LAB_00166178:
std::__cxx11::string::push_back(cVar6);
goto LAB_0016614c;
default:
pcVar7 = "invalid string: ill-formed UTF-8 byte";
break;
case 0xc2:
case 0xc3:
case 0xc4:
case 0xc5:
case 0xc6:
case 199:
case 200:
case 0xc9:
case 0xca:
case 0xcb:
case 0xcc:
case 0xcd:
case 0xce:
case 0xcf:
case 0xd0:
case 0xd1:
case 0xd2:
case 0xd3:
case 0xd4:
case 0xd5:
case 0xd6:
case 0xd7:
case 0xd8:
case 0xd9:
case 0xda:
case 0xdb:
case 0xdc:
case 0xdd:
case 0xde:
case 0xdf:
local_48 = 0xbf00000080;
uStack_50 = 2;
goto LAB_0016621e;
case 0xe0:
uVar2 = _DAT_001c9aa0;
uVar8 = _UNK_001c9aa4;
uStack_40 = _UNK_001c9aa8;
uStack_3c = _UNK_001c9aac;
goto LAB_0016619a;
case 0xe1:
case 0xe2:
case 0xe3:
case 0xe4:
case 0xe5:
case 0xe6:
case 0xe7:
case 0xe8:
case 0xe9:
case 0xea:
case 0xeb:
case 0xec:
case 0xee:
case 0xef:
uVar2 = _DAT_001c9a90;
uVar8 = _UNK_001c9a94;
uStack_40 = _UNK_001c9a98;
uStack_3c = _UNK_001c9a9c;
goto LAB_0016619a;
case 0xed:
uVar2 = _DAT_001c9a80;
uVar8 = _UNK_001c9a84;
uStack_40 = _UNK_001c9a88;
uStack_3c = _UNK_001c9a8c;
LAB_0016619a:
local_48 = CONCAT44(uVar8,uVar2);
uStack_50 = 4;
LAB_0016621e:
cVar1 = next_byte_in_range(this,&local_48,uStack_50);
if (cVar1 == '\0') {
return 0xe;
}
goto LAB_0016614c;
case 0xf0:
uVar2 = _DAT_001d0a6c;
uVar8 = _UNK_001d0a70;
uStack_40 = _UNK_001d0a74;
uStack_3c = _UNK_001d0a78;
goto LAB_00166212;
case 0xf1:
case 0xf2:
case 0xf3:
uVar2 = _DAT_001d0a84;
uVar8 = _UNK_001d0a88;
uStack_40 = _UNK_001d0a8c;
uStack_3c = _UNK_001d0a90;
goto LAB_00166212;
case 0xf4:
uVar2 = _DAT_001d0a9c;
uVar8 = _UNK_001d0aa0;
uStack_40 = _UNK_001d0aa4;
uStack_3c = _UNK_001d0aa8;
LAB_00166212:
local_48 = CONCAT44(uVar8,uVar2);
local_38 = 0xbf00000080;
uStack_50 = 6;
goto LAB_0016621e;
case 0xffffffff:
pcVar7 = "invalid string: missing closing quote";
}
switchD_0016624e_caseD_6f:
*(char **)(this + 0x70) = pcVar7;
return 0xe;
}
| |
41,080 | coro::io_scheduler::yield_until(std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>>) (.destroy) | AlayaLite/build_O3/_deps/libcoro-src/src/io_scheduler.cpp | auto io_scheduler::yield_until(time_point time) -> coro::task<void>
{
auto now = clock::now();
// If the requested time is in the past (or now!) bail out!
if (time <= now)
{
co_await schedule();
}
else
{
m_size.fetch_add(1, std::memory_order::release);
auto amount = std::chrono::duration_cast<std::chrono::milliseconds>(time - now);
detail::poll_info pi{};
add_timer_token(now + amount, pi);
co_await pi;
m_size.fetch_sub(1, std::memory_order::release);
}
co_return;
} | O3 | cpp | coro::io_scheduler::yield_until(std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>>) (.destroy):
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, 0x18(%rdi)
je 0x80da
leaq 0x18(%rbx), %rdi
callq 0x31f0
movl $0x68, %esi
movq %rbx, %rdi
popq %rbx
jmp 0x3250
| _ZN4coro12io_scheduler11yield_untilENSt6chrono10time_pointINS1_3_V212steady_clockENS1_8durationIlSt5ratioILl1ELl1000000000EEEEEE_destroy:
push rbx
mov rbx, rdi
cmp qword ptr [rdi+18h], 0
jz short loc_80DA
lea rdi, [rbx+18h]; this
call __ZNSt15__exception_ptr13exception_ptr10_M_releaseEv; std::__exception_ptr::exception_ptr::_M_release(void)
loc_80DA:
mov esi, 68h ; 'h'; unsigned __int64
mov rdi, rbx; void *
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
| void coro::io_scheduler::yield_until(_QWORD *a1)
{
if ( a1[3] )
std::__exception_ptr::exception_ptr::_M_release((std::__exception_ptr::exception_ptr *)(a1 + 3));
operator delete(a1, 0x68uLL);
}
| yield_until:
PUSH RBX
MOV RBX,RDI
CMP qword ptr [RDI + 0x18],0x0
JZ 0x001080da
LEA RDI,[RBX + 0x18]
CALL 0x001031f0
LAB_001080da:
MOV ESI,0x68
MOV RDI,RBX
POP RBX
JMP 0x00103250
|
/* coro::io_scheduler::yield_until(std::chrono::time_point<std::chrono::_V2::steady_clock,
std::chrono::duration<long, std::ratio<1l, 1000000000l> > >) [clone .destroy] */
void coro::io_scheduler::yield_until(void *param_1)
{
if (*(long *)((long)param_1 + 0x18) != 0) {
std::__exception_ptr::exception_ptr::_M_release();
}
operator_delete(param_1,0x68);
return;
}
| |
41,081 | my_pread | eloqsql/mysys/my_pread.c | size_t my_pread(File Filedes, uchar *Buffer, size_t Count, my_off_t offset,
myf MyFlags)
{
size_t readbytes, save_count= 0;
DBUG_ENTER("my_pread");
DBUG_PRINT("my",("fd: %d Seek: %llu Buffer: %p Count: %lu MyFlags: %lu",
Filedes, (ulonglong)offset, Buffer, (ulong)Count, MyFlags));
if (!(MyFlags & (MY_WME | MY_FAE | MY_FNABP)))
MyFlags|= my_global_flags;
for (;;)
{
errno= 0; /* Linux, Windows don't reset this on EOF/success */
#ifdef _WIN32
readbytes= my_win_pread(Filedes, Buffer, Count, offset);
#else
readbytes= pread(Filedes, Buffer, Count, offset);
#endif
if (readbytes != Count)
{
/* We should never read with wrong file descriptor! */
DBUG_ASSERT(readbytes != (size_t)-1 || errno != EBADF);
my_errno= errno;
if (errno == 0 || (readbytes != (size_t) -1 &&
(MyFlags & (MY_NABP | MY_FNABP))))
my_errno= HA_ERR_FILE_TOO_SHORT;
DBUG_PRINT("warning",("Read only %d bytes off %u from %d, errno: %d",
(int) readbytes, (uint) Count,Filedes,my_errno));
if ((readbytes == 0 || readbytes == (size_t) -1) && errno == EINTR)
{
DBUG_PRINT("debug", ("my_pread() was interrupted and returned %d",
(int) readbytes));
continue; /* Interrupted */
}
/* Do a read retry if we didn't get enough data on first read */
if (readbytes != (size_t) -1 && readbytes != 0 &&
(MyFlags & MY_FULL_IO))
{
Buffer+= readbytes;
Count-= readbytes;
save_count+= readbytes;
offset+= readbytes;
continue;
}
if (MyFlags & (MY_WME | MY_FAE | MY_FNABP))
{
if (readbytes == (size_t) -1)
my_error(EE_READ,
MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))),
my_filename(Filedes),my_errno);
else if (MyFlags & (MY_NABP | MY_FNABP))
my_error(EE_EOFERR,
MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))),
my_filename(Filedes),my_errno);
}
if (readbytes == (size_t) -1 || (MyFlags & (MY_FNABP | MY_NABP)))
DBUG_RETURN(MY_FILE_ERROR); /* Return with error */
}
if (MyFlags & (MY_NABP | MY_FNABP))
readbytes= 0; /* Read went ok; Return 0 */
else
readbytes+= save_count;
DBUG_RETURN(readbytes);
}
} | O0 | c | my_pread:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movl %edi, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq $0x0, -0x40(%rbp)
jmp 0xf5a05
movq -0x30(%rbp), %rax
andq $0x1a, %rax
cmpq $0x0, %rax
jne 0xf5a25
leaq 0xb8e64e(%rip), %rax # 0xc84068
movq (%rax), %rax
orq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0xf5a27
callq 0x2a760
movl $0x0, (%rax)
movl -0xc(%rbp), %edi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0x2a610
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x20(%rbp), %rax
je 0xf5bd7
jmp 0xf5a5a
jmp 0xf5a5c
callq 0x2a760
movl (%rax), %eax
movl %eax, -0x44(%rbp)
callq 0xf7440
movl -0x44(%rbp), %ecx
movl %ecx, (%rax)
callq 0x2a760
cmpl $0x0, (%rax)
je 0xf5a8f
cmpq $-0x1, -0x38(%rbp)
je 0xf5a9a
movq -0x30(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0xf5a9a
callq 0xf7440
movl $0xaf, (%rax)
jmp 0xf5a9c
jmp 0xf5a9e
cmpq $0x0, -0x38(%rbp)
je 0xf5aac
cmpq $-0x1, -0x38(%rbp)
jne 0xf5abf
callq 0x2a760
cmpl $0x4, (%rax)
jne 0xf5abf
jmp 0xf5ab8
jmp 0xf5aba
jmp 0xf5a27
cmpq $-0x1, -0x38(%rbp)
je 0xf5b15
cmpq $0x0, -0x38(%rbp)
je 0xf5b15
movq -0x30(%rbp), %rax
andq $0x200, %rax # imm = 0x200
cmpq $0x0, %rax
je 0xf5b15
movq -0x38(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x38(%rbp), %rcx
movq -0x20(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x38(%rbp), %rax
addq -0x40(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0xf5a27
movq -0x30(%rbp), %rax
andq $0x1a, %rax
cmpq $0x0, %rax
je 0xf5bb4
cmpq $-0x1, -0x38(%rbp)
jne 0xf5b69
movq -0x30(%rbp), %rax
andq $0x440, %rax # imm = 0x440
orq $0x4, %rax
movq %rax, -0x58(%rbp)
movl -0xc(%rbp), %edi
callq 0x104930
movq %rax, -0x50(%rbp)
callq 0xf7440
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
movl (%rax), %ecx
movl $0x2, %edi
movb $0x0, %al
callq 0xf0ef0
jmp 0xf5bb2
movq -0x30(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0xf5bb0
movq -0x30(%rbp), %rax
andq $0x440, %rax # imm = 0x440
orq $0x4, %rax
movq %rax, -0x68(%rbp)
movl -0xc(%rbp), %edi
callq 0x104930
movq %rax, -0x60(%rbp)
callq 0xf7440
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movl (%rax), %ecx
movl $0x9, %edi
movb $0x0, %al
callq 0xf0ef0
jmp 0xf5bb2
jmp 0xf5bb4
cmpq $-0x1, -0x38(%rbp)
je 0xf5bc9
movq -0x30(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0xf5bd5
jmp 0xf5bcb
movq $-0x1, -0x8(%rbp)
jmp 0xf5c05
jmp 0xf5bd7
movq -0x30(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0xf5bef
movq $0x0, -0x38(%rbp)
jmp 0xf5bfb
movq -0x40(%rbp), %rax
addq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0xf5bfd
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nop
| my_pread:
push rbp
mov rbp, rsp
sub rsp, 70h
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_40], 0
jmp short $+2
loc_F5A05:
mov rax, [rbp+var_30]
and rax, 1Ah
cmp rax, 0
jnz short loc_F5A25
lea rax, my_global_flags
mov rax, [rax]
or rax, [rbp+var_30]
mov [rbp+var_30], rax
loc_F5A25:
jmp short $+2
loc_F5A27:
call ___errno_location
mov dword ptr [rax], 0
mov edi, [rbp+var_C]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_28]
call _pread64
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
cmp rax, [rbp+var_20]
jz loc_F5BD7
jmp short $+2
loc_F5A5A:
jmp short $+2
loc_F5A5C:
call ___errno_location
mov eax, [rax]
mov [rbp+var_44], eax
call _my_thread_var
mov ecx, [rbp+var_44]
mov [rax], ecx
call ___errno_location
cmp dword ptr [rax], 0
jz short loc_F5A8F
cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh
jz short loc_F5A9A
mov rax, [rbp+var_30]
and rax, 6
cmp rax, 0
jz short loc_F5A9A
loc_F5A8F:
call _my_thread_var
mov dword ptr [rax], 0AFh
loc_F5A9A:
jmp short $+2
loc_F5A9C:
jmp short $+2
loc_F5A9E:
cmp [rbp+var_38], 0
jz short loc_F5AAC
cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh
jnz short loc_F5ABF
loc_F5AAC:
call ___errno_location
cmp dword ptr [rax], 4
jnz short loc_F5ABF
jmp short $+2
loc_F5AB8:
jmp short $+2
loc_F5ABA:
jmp loc_F5A27
loc_F5ABF:
cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh
jz short loc_F5B15
cmp [rbp+var_38], 0
jz short loc_F5B15
mov rax, [rbp+var_30]
and rax, 200h
cmp rax, 0
jz short loc_F5B15
mov rax, [rbp+var_38]
add rax, [rbp+var_18]
mov [rbp+var_18], rax
mov rcx, [rbp+var_38]
mov rax, [rbp+var_20]
sub rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_38]
add rax, [rbp+var_40]
mov [rbp+var_40], rax
mov rax, [rbp+var_38]
add rax, [rbp+var_28]
mov [rbp+var_28], rax
jmp loc_F5A27
loc_F5B15:
mov rax, [rbp+var_30]
and rax, 1Ah
cmp rax, 0
jz loc_F5BB4
cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh
jnz short loc_F5B69
mov rax, [rbp+var_30]
and rax, 440h
or rax, 4
mov [rbp+var_58], rax
mov edi, [rbp+var_C]
call my_filename
mov [rbp+var_50], rax
call _my_thread_var
mov rsi, [rbp+var_58]
mov rdx, [rbp+var_50]
mov ecx, [rax]
mov edi, 2
mov al, 0
call my_error
jmp short loc_F5BB2
loc_F5B69:
mov rax, [rbp+var_30]
and rax, 6
cmp rax, 0
jz short loc_F5BB0
mov rax, [rbp+var_30]
and rax, 440h
or rax, 4
mov [rbp+var_68], rax
mov edi, [rbp+var_C]
call my_filename
mov [rbp+var_60], rax
call _my_thread_var
mov rsi, [rbp+var_68]
mov rdx, [rbp+var_60]
mov ecx, [rax]
mov edi, 9
mov al, 0
call my_error
loc_F5BB0:
jmp short $+2
loc_F5BB2:
jmp short $+2
loc_F5BB4:
cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh
jz short loc_F5BC9
mov rax, [rbp+var_30]
and rax, 6
cmp rax, 0
jz short loc_F5BD5
loc_F5BC9:
jmp short $+2
loc_F5BCB:
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp short loc_F5C05
loc_F5BD5:
jmp short $+2
loc_F5BD7:
mov rax, [rbp+var_30]
and rax, 6
cmp rax, 0
jz short loc_F5BEF
mov [rbp+var_38], 0
jmp short loc_F5BFB
loc_F5BEF:
mov rax, [rbp+var_40]
add rax, [rbp+var_38]
mov [rbp+var_38], rax
loc_F5BFB:
jmp short $+2
loc_F5BFD:
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
loc_F5C05:
mov rax, [rbp+var_8]
add rsp, 70h
pop rbp
retn
| long long my_pread(unsigned int a1, const char *a2, long long a3, long long a4, __int16 a5)
{
unsigned int *v5; // rax
unsigned int *v6; // rax
long long v8; // [rsp+10h] [rbp-60h]
long long v9; // [rsp+20h] [rbp-50h]
int v10; // [rsp+2Ch] [rbp-44h]
long long v11; // [rsp+30h] [rbp-40h]
long long v12; // [rsp+38h] [rbp-38h]
__int16 v14; // [rsp+40h] [rbp-30h]
v14 = a5;
v11 = 0LL;
if ( (a5 & 0x1A) == 0 )
v14 = a5 | my_global_flags;
while ( 1 )
{
*(_DWORD *)__errno_location() = 0;
v12 = pread64(a1, a2, a3, a4);
if ( v12 == a3 )
break;
v10 = *(_DWORD *)__errno_location();
*(_DWORD *)my_thread_var(a1, a2) = v10;
if ( !*(_DWORD *)__errno_location() || v12 != -1 && (v14 & 6) != 0 )
*(_DWORD *)my_thread_var(a1, a2) = 175;
if ( v12 && v12 != -1 || *(_DWORD *)__errno_location() != 4 )
{
if ( v12 == -1 || !v12 || (v14 & 0x200) == 0 )
{
if ( (v14 & 0x1A) != 0 )
{
if ( v12 == -1 )
{
v9 = my_filename(a1);
v5 = (unsigned int *)my_thread_var(a1, a2);
my_error(2u, v14 & 0x440 | 4LL, v9, *v5);
}
else if ( (v14 & 6) != 0 )
{
v8 = my_filename(a1);
v6 = (unsigned int *)my_thread_var(a1, a2);
my_error(9u, v14 & 0x440 | 4LL, v8, *v6);
}
}
if ( v12 == -1 || (v14 & 6) != 0 )
return -1LL;
break;
}
a2 += v12;
a3 -= v12;
v11 += v12;
a4 += v12;
}
}
if ( (v14 & 6) != 0 )
return 0LL;
else
return v12 + v11;
}
| my_pread:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
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 + -0x40],0x0
JMP 0x001f5a05
LAB_001f5a05:
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x1a
CMP RAX,0x0
JNZ 0x001f5a25
LEA RAX,[0xd84068]
MOV RAX,qword ptr [RAX]
OR RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x30],RAX
LAB_001f5a25:
JMP 0x001f5a27
LAB_001f5a27:
CALL 0x0012a760
MOV dword ptr [RAX],0x0
MOV EDI,dword ptr [RBP + -0xc]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
CALL 0x0012a610
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x001f5bd7
JMP 0x001f5a5a
LAB_001f5a5a:
JMP 0x001f5a5c
LAB_001f5a5c:
CALL 0x0012a760
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x44],EAX
CALL 0x001f7440
MOV ECX,dword ptr [RBP + -0x44]
MOV dword ptr [RAX],ECX
CALL 0x0012a760
CMP dword ptr [RAX],0x0
JZ 0x001f5a8f
CMP qword ptr [RBP + -0x38],-0x1
JZ 0x001f5a9a
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x6
CMP RAX,0x0
JZ 0x001f5a9a
LAB_001f5a8f:
CALL 0x001f7440
MOV dword ptr [RAX],0xaf
LAB_001f5a9a:
JMP 0x001f5a9c
LAB_001f5a9c:
JMP 0x001f5a9e
LAB_001f5a9e:
CMP qword ptr [RBP + -0x38],0x0
JZ 0x001f5aac
CMP qword ptr [RBP + -0x38],-0x1
JNZ 0x001f5abf
LAB_001f5aac:
CALL 0x0012a760
CMP dword ptr [RAX],0x4
JNZ 0x001f5abf
JMP 0x001f5ab8
LAB_001f5ab8:
JMP 0x001f5aba
LAB_001f5aba:
JMP 0x001f5a27
LAB_001f5abf:
CMP qword ptr [RBP + -0x38],-0x1
JZ 0x001f5b15
CMP qword ptr [RBP + -0x38],0x0
JZ 0x001f5b15
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x200
CMP RAX,0x0
JZ 0x001f5b15
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x28],RAX
JMP 0x001f5a27
LAB_001f5b15:
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x1a
CMP RAX,0x0
JZ 0x001f5bb4
CMP qword ptr [RBP + -0x38],-0x1
JNZ 0x001f5b69
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x440
OR RAX,0x4
MOV qword ptr [RBP + -0x58],RAX
MOV EDI,dword ptr [RBP + -0xc]
CALL 0x00204930
MOV qword ptr [RBP + -0x50],RAX
CALL 0x001f7440
MOV RSI,qword ptr [RBP + -0x58]
MOV RDX,qword ptr [RBP + -0x50]
MOV ECX,dword ptr [RAX]
MOV EDI,0x2
MOV AL,0x0
CALL 0x001f0ef0
JMP 0x001f5bb2
LAB_001f5b69:
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x6
CMP RAX,0x0
JZ 0x001f5bb0
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x440
OR RAX,0x4
MOV qword ptr [RBP + -0x68],RAX
MOV EDI,dword ptr [RBP + -0xc]
CALL 0x00204930
MOV qword ptr [RBP + -0x60],RAX
CALL 0x001f7440
MOV RSI,qword ptr [RBP + -0x68]
MOV RDX,qword ptr [RBP + -0x60]
MOV ECX,dword ptr [RAX]
MOV EDI,0x9
MOV AL,0x0
CALL 0x001f0ef0
LAB_001f5bb0:
JMP 0x001f5bb2
LAB_001f5bb2:
JMP 0x001f5bb4
LAB_001f5bb4:
CMP qword ptr [RBP + -0x38],-0x1
JZ 0x001f5bc9
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x6
CMP RAX,0x0
JZ 0x001f5bd5
LAB_001f5bc9:
JMP 0x001f5bcb
LAB_001f5bcb:
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x001f5c05
LAB_001f5bd5:
JMP 0x001f5bd7
LAB_001f5bd7:
MOV RAX,qword ptr [RBP + -0x30]
AND RAX,0x6
CMP RAX,0x0
JZ 0x001f5bef
MOV qword ptr [RBP + -0x38],0x0
JMP 0x001f5bfb
LAB_001f5bef:
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x38],RAX
LAB_001f5bfb:
JMP 0x001f5bfd
LAB_001f5bfd:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
LAB_001f5c05:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x70
POP RBP
RET
|
long my_pread(int param_1,void *param_2,size_t param_3,long param_4,ulong param_5)
{
int iVar1;
int *piVar2;
size_t sVar3;
int4 *puVar4;
int8 uVar5;
long local_48;
long local_40;
ulong local_38;
long local_30;
size_t local_28;
void *local_20;
local_48 = 0;
local_30 = param_4;
local_28 = param_3;
local_20 = param_2;
local_38 = param_5;
if ((param_5 & 0x1a) == 0) {
local_38 = my_global_flags | param_5;
}
do {
do {
piVar2 = __errno_location();
*piVar2 = 0;
sVar3 = pread64(param_1,local_20,local_28,local_30);
if (sVar3 == local_28) {
LAB_001f5bd7:
if ((local_38 & 6) == 0) {
local_40 = local_48 + sVar3;
}
else {
local_40 = 0;
}
return local_40;
}
piVar2 = __errno_location();
iVar1 = *piVar2;
piVar2 = (int *)_my_thread_var();
*piVar2 = iVar1;
piVar2 = __errno_location();
if ((*piVar2 == 0) || ((sVar3 != 0xffffffffffffffff && ((local_38 & 6) != 0)))) {
puVar4 = (int4 *)_my_thread_var();
*puVar4 = 0xaf;
}
} while (((sVar3 == 0) || (sVar3 == 0xffffffffffffffff)) &&
(piVar2 = __errno_location(), *piVar2 == 4));
if (((sVar3 == 0xffffffffffffffff) || (sVar3 == 0)) || ((local_38 & 0x200) == 0)) {
if ((local_38 & 0x1a) != 0) {
if (sVar3 == 0xffffffffffffffff) {
uVar5 = my_filename(param_1);
puVar4 = (int4 *)_my_thread_var();
my_error(2,local_38 & 0x440 | 4,uVar5,*puVar4);
}
else if ((local_38 & 6) != 0) {
uVar5 = my_filename(param_1);
puVar4 = (int4 *)_my_thread_var();
my_error(9,local_38 & 0x440 | 4,uVar5,*puVar4);
}
}
if ((sVar3 == 0xffffffffffffffff) || ((local_38 & 6) != 0)) {
return -1;
}
goto LAB_001f5bd7;
}
local_20 = (void *)(sVar3 + (long)local_20);
local_28 = local_28 - sVar3;
local_48 = sVar3 + local_48;
local_30 = sVar3 + local_30;
} while( true );
}
| |
41,082 | fmt::v10::detail::dragonbox::umul128_upper64(unsigned long, unsigned long) | AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h | inline auto umul128_upper64(uint64_t x, uint64_t y) noexcept -> uint64_t {
#if FMT_USE_INT128
auto p = static_cast<uint128_opt>(x) * static_cast<uint128_opt>(y);
return static_cast<uint64_t>(p >> 64);
#elif defined(_MSC_VER) && defined(_M_X64)
return __umulh(x, y);
#else
return umul128(x, y).high();
#endif
} | O0 | c | fmt::v10::detail::dragonbox::umul128_upper64(unsigned long, unsigned long):
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq -0x8(%rsp), %rax
movq -0x10(%rsp), %rcx
mulq %rcx
movq %rdx, -0x20(%rsp)
movq %rax, -0x28(%rsp)
movq -0x20(%rsp), %rax
retq
nopw (%rax,%rax)
| _ZN3fmt3v106detail9dragonbox15umul128_upper64Emm:
mov [rsp+var_8], rdi
mov [rsp+var_10], rsi
mov rax, [rsp+var_8]
mov rcx, [rsp+var_10]
mul rcx
mov [rsp+var_20], rdx
mov [rsp+var_28], rax
mov rax, [rsp+var_20]
retn
| long long fmt::v10::detail::dragonbox::umul128_upper64(fmt::v10::detail::dragonbox *this, unsigned long long a2)
{
return (a2 * (unsigned __int128)(unsigned long long)this) >> 64;
}
| umul128_upper64:
MOV qword ptr [RSP + -0x8],RDI
MOV qword ptr [RSP + -0x10],RSI
MOV RAX,qword ptr [RSP + -0x8]
MOV RCX,qword ptr [RSP + -0x10]
MUL RCX
MOV qword ptr [RSP + -0x20],RDX
MOV qword ptr [RSP + -0x28],RAX
MOV RAX,qword ptr [RSP + -0x20]
RET
|
/* fmt::v10::detail::dragonbox::umul128_upper64(unsigned long, unsigned long) */
int8 fmt::v10::detail::dragonbox::umul128_upper64(ulong param_1,ulong param_2)
{
int1 auVar1 [16];
int1 auVar2 [16];
int8 local_20;
auVar1._8_8_ = 0;
auVar1._0_8_ = param_1;
auVar2._8_8_ = 0;
auVar2._0_8_ = param_2;
local_20 = SUB168(auVar1 * auVar2,8);
return local_20;
}
| |
41,083 | minja::Value::operator<(minja::Value const&) const | monkey531[P]llama/common/minja.hpp | bool operator<(const Value & other) const {
if (is_null())
throw std::runtime_error("Undefined value or reference");
if (is_number() && other.is_number()) return get<double>() < other.get<double>();
if (is_string() && other.is_string()) return get<std::string>() < other.get<std::string>();
throw std::runtime_error("Cannot compare values: " + dump() + " < " + other.dump());
} | O0 | cpp | minja::Value::operator<(minja::Value const&) const:
subq $0x138, %rsp # imm = 0x138
movq %rdi, 0x128(%rsp)
movq %rsi, 0x120(%rsp)
movq 0x128(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x115e20
testb $0x1, %al
jne 0x13f8cf
jmp 0x13f92d
movl $0x10, %edi
callq 0x59660
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x18(%rsp)
leaq 0xd3136(%rip), %rsi # 0x212a21
callq 0x59450
jmp 0x13f8f2
movq 0x18(%rsp), %rdi
movq 0x1646b2(%rip), %rsi # 0x2a3fb0
movq 0x164673(%rip), %rdx # 0x2a3f78
callq 0x59ad0
movq 0x18(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
callq 0x59f20
jmp 0x13fbef
movq 0x20(%rsp), %rdi
callq 0x116aa0
testb $0x1, %al
jne 0x13f93d
jmp 0x13f988
movq 0x120(%rsp), %rdi
callq 0x116aa0
testb $0x1, %al
jne 0x13f950
jmp 0x13f988
movq 0x20(%rsp), %rdi
callq 0x114e90
movsd %xmm0, 0x10(%rsp)
movq 0x120(%rsp), %rdi
callq 0x114e90
movsd 0x10(%rsp), %xmm1
ucomisd %xmm1, %xmm0
seta %al
andb $0x1, %al
movb %al, 0x137(%rsp)
jmp 0x13fbde
movq 0x20(%rsp), %rdi
callq 0x116440
testb $0x1, %al
jne 0x13f99b
jmp 0x13fa3d
movq 0x120(%rsp), %rdi
callq 0x116440
testb $0x1, %al
jne 0x13f9b1
jmp 0x13fa3d
movq 0x20(%rsp), %rsi
leaq 0xf0(%rsp), %rdi
callq 0x116ac0
movq 0x120(%rsp), %rsi
leaq 0xd0(%rsp), %rdi
callq 0x116ac0
jmp 0x13f9da
leaq 0xf0(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x140330
andb $0x1, %al
movb %al, 0x137(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0x5a4d8
leaq 0xf0(%rsp), %rdi
callq 0x5a4d8
jmp 0x13fbde
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x5a4d8
jmp 0x13fbef
movb $0x1, 0x2f(%rsp)
movl $0x10, %edi
callq 0x59660
movq 0x20(%rsp), %rsi
movq %rax, 0x8(%rsp)
leaq 0x50(%rsp), %rdi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x1150b0
jmp 0x13fa69
leaq 0xd3ba6(%rip), %rsi # 0x213616
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0xf9bf0
jmp 0x13fa81
leaq 0xd3ba6(%rip), %rdx # 0x21362e
leaq 0x90(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x8c970
jmp 0x13fa9c
movq 0x120(%rsp), %rsi
leaq 0x30(%rsp), %rdi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x1150b0
jmp 0x13fab7
leaq 0xb0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0x30(%rsp), %rdx
callq 0x8ede0
jmp 0x13fad3
movq 0x8(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x594a0
jmp 0x13fae7
movq 0x8(%rsp), %rdi
movb $0x0, 0x2f(%rsp)
movq 0x1644b8(%rip), %rsi # 0x2a3fb0
movq 0x164479(%rip), %rdx # 0x2a3f78
callq 0x59ad0
jmp 0x13fbfc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
jmp 0x13fbc9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
jmp 0x13fbbf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
jmp 0x13fbb5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
jmp 0x13fba8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
jmp 0x13fb9e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
leaq 0xb0(%rsp), %rdi
callq 0x5a4d8
leaq 0x30(%rsp), %rdi
callq 0x5a4d8
leaq 0x90(%rsp), %rdi
callq 0x5a4d8
leaq 0x70(%rsp), %rdi
callq 0x5a4d8
leaq 0x50(%rsp), %rdi
callq 0x5a4d8
testb $0x1, 0x2f(%rsp)
jne 0x13fbd2
jmp 0x13fbdc
movq 0x8(%rsp), %rdi
callq 0x59f20
jmp 0x13fbef
movb 0x137(%rsp), %al
andb $0x1, %al
addq $0x138, %rsp # imm = 0x138
retq
movq 0x118(%rsp), %rdi
callq 0x59b90
nopl (%rax)
| _ZNK5minja5ValueltERKS0_:
sub rsp, 138h
mov [rsp+138h+var_10], rdi
mov [rsp+138h+var_18], rsi
mov rdi, [rsp+138h+var_10]; this
mov [rsp+138h+var_118], rdi; __int16
call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void)
test al, 1
jnz short loc_13F8CF
jmp short loc_13F92D
loc_13F8CF:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rdi, rax; this
mov rax, rdi
mov [rsp+138h+var_120], rax
lea rsi, aUndefinedValue; "Undefined value or reference"
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short $+2
loc_13F8F2:
mov rdi, [rsp+138h+var_120]; void *
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
mov rdi, [rsp+138h+var_120]; void *
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
call ___cxa_free_exception
jmp loc_13FBEF
loc_13F92D:
mov rdi, [rsp+138h+var_118]; this
call _ZNK5minja5Value9is_numberEv; minja::Value::is_number(void)
test al, 1
jnz short loc_13F93D
jmp short loc_13F988
loc_13F93D:
mov rdi, [rsp+138h+var_18]; this
call _ZNK5minja5Value9is_numberEv; minja::Value::is_number(void)
test al, 1
jnz short loc_13F950
jmp short loc_13F988
loc_13F950:
mov rdi, [rsp+138h+var_118]
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
movsd [rsp+138h+var_128], xmm0
mov rdi, [rsp+138h+var_18]
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
movsd xmm1, [rsp+138h+var_128]
ucomisd xmm0, xmm1
setnbe al
and al, 1
mov [rsp+138h+var_1], al
jmp loc_13FBDE
loc_13F988:
mov rdi, [rsp+138h+var_118]; this
call _ZNK5minja5Value9is_stringEv; minja::Value::is_string(void)
test al, 1
jnz short loc_13F99B
jmp loc_13FA3D
loc_13F99B:
mov rdi, [rsp+138h+var_18]; this
call _ZNK5minja5Value9is_stringEv; minja::Value::is_string(void)
test al, 1
jnz short loc_13F9B1
jmp loc_13FA3D
loc_13F9B1:
mov rsi, [rsp+138h+var_118]; int
lea rdi, [rsp+138h+var_48]; int
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
mov rsi, [rsp+138h+var_18]; int
lea rdi, [rsp+138h+var_68]; int
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
jmp short $+2
loc_13F9DA:
lea rdi, [rsp+138h+var_48]
lea rsi, [rsp+138h+var_68]
call _ZStltIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_; std::operator<<char>(std::string const&,std::string const&)
and al, 1
mov [rsp+138h+var_1], al
lea rdi, [rsp+138h+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+138h+var_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_13FBDE
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
lea rdi, [rsp+138h+var_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_13FBEF
loc_13FA3D:
mov [rsp+138h+var_109], 1
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rsi, [rsp+138h+var_118]
mov [rsp+138h+var_130], rax
lea rdi, [rsp+138h+var_E8]
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
jmp short $+2
loc_13FA69:
lea rsi, aCannotCompareV; "Cannot compare values: "
lea rdi, [rsp+138h+var_C8]
lea rdx, [rsp+138h+var_E8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
jmp short $+2
loc_13FA81:
lea rdx, asc_21362E; " < "
lea rdi, [rsp+138h+var_A8]
lea rsi, [rsp+138h+var_C8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
jmp short $+2
loc_13FA9C:
mov rsi, [rsp+138h+var_18]
lea rdi, [rsp+138h+var_108]
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
jmp short $+2
loc_13FAB7:
lea rdi, [rsp+138h+var_88]
lea rsi, [rsp+138h+var_A8]
lea rdx, [rsp+138h+var_108]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
jmp short $+2
loc_13FAD3:
mov rdi, [rsp+138h+var_130]
lea rsi, [rsp+138h+var_88]
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
jmp short $+2
loc_13FAE7:
mov rdi, [rsp+138h+var_130]; void *
mov [rsp+138h+var_109], 0
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
jmp loc_13FBFC
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
jmp loc_13FBC9
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
jmp loc_13FBBF
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
jmp short loc_13FBB5
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
jmp short loc_13FBA8
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
jmp short loc_13FB9E
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
lea rdi, [rsp+138h+var_88]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_13FB9E:
lea rdi, [rsp+138h+var_108]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_13FBA8:
lea rdi, [rsp+138h+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_13FBB5:
lea rdi, [rsp+138h+var_C8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_13FBBF:
lea rdi, [rsp+138h+var_E8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_13FBC9:
test [rsp+138h+var_109], 1
jnz short loc_13FBD2
jmp short loc_13FBDC
loc_13FBD2:
mov rdi, [rsp+138h+var_130]; void *
call ___cxa_free_exception
loc_13FBDC:
jmp short loc_13FBEF
loc_13FBDE:
mov al, [rsp+138h+var_1]
and al, 1
add rsp, 138h
retn
loc_13FBEF:
mov rdi, [rsp+138h+var_20]
call __Unwind_Resume
loc_13FBFC:
nop dword ptr [rax+00h]
| char minja::Value::operator<(minja::Value *a1, minja::Value *a2)
{
void *v3; // [rsp+8h] [rbp-130h]
std::runtime_error *exception; // [rsp+18h] [rbp-120h]
_BYTE v5[32]; // [rsp+30h] [rbp-108h] BYREF
_BYTE v6[32]; // [rsp+50h] [rbp-E8h] BYREF
_BYTE v7[32]; // [rsp+70h] [rbp-C8h] BYREF
_BYTE v8[32]; // [rsp+90h] [rbp-A8h] BYREF
_BYTE v9[32]; // [rsp+B0h] [rbp-88h] BYREF
int v10[8]; // [rsp+D0h] [rbp-68h] BYREF
int v11[9]; // [rsp+F0h] [rbp-48h] BYREF
minja::Value *v12; // [rsp+120h] [rbp-18h]
minja::Value *v13; // [rsp+128h] [rbp-10h]
char v14; // [rsp+137h] [rbp-1h]
v13 = a1;
v12 = a2;
if ( (minja::Value::is_null(a1) & 1) != 0 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Undefined value or reference");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( (minja::Value::is_number(a1) & 1) != 0 && (minja::Value::is_number(v12) & 1) != 0 )
{
minja::Value::get<double>(a1);
minja::Value::get<double>(v12);
v14 = 0;
}
else
{
if ( !minja::Value::is_string(a1) || !minja::Value::is_string(v12) )
{
v3 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v6, (long long)a1, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v7, (long long)"Cannot compare values: ", (long long)v6);
std::operator+<char>((long long)v8, (long long)v7, (long long)" < ");
minja::Value::dump[abi:cxx11]((long long)v5, (long long)v12, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v9, (long long)v8, (long long)v5);
std::runtime_error::runtime_error(v3, v9);
__cxa_throw(
v3,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Value::get<std::string>(v11, a1);
minja::Value::get<std::string>(v10, v12);
v14 = std::operator<<char>(v11, v10) & 1;
std::string::~string(v10);
std::string::~string(v11);
}
return v14 & 1;
}
| |||
41,084 | minja::Value::operator<(minja::Value const&) const | monkey531[P]llama/common/minja.hpp | bool operator<(const Value & other) const {
if (is_null())
throw std::runtime_error("Undefined value or reference");
if (is_number() && other.is_number()) return get<double>() < other.get<double>();
if (is_string() && other.is_string()) return get<std::string>() < other.get<std::string>();
throw std::runtime_error("Cannot compare values: " + dump() + " < " + other.dump());
} | O2 | cpp | minja::Value::operator<(minja::Value const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %r14
movq %rdi, %r15
callq 0x64008
testb %al, %al
jne 0x712bb
movb 0x40(%r15), %al
leal -0x5(%rax), %ecx
cmpb $0x2, %cl
ja 0x71257
movb 0x40(%r14), %al
addb $-0x5, %al
cmpb $0x2, %al
ja 0x712eb
movq %r15, %rdi
callq 0x6393a
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x6393a
ucomisd (%rsp), %xmm0
seta %bl
jmp 0x712ab
cmpb $0x3, %al
jne 0x712eb
cmpb $0x3, 0x40(%r14)
jne 0x712eb
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x64452
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x64452
leaq 0x8(%rsp), %r14
leaq 0x28(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x7177a
movl %eax, %ebx
movq %r15, %rdi
callq 0x24158
movq %r14, %rdi
callq 0x24158
movl %ebx, %eax
addq $0xa8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x23450
movq %rax, %rbx
leaq 0x42d5d(%rip), %rsi # 0xb402a
movq %rax, %rdi
callq 0x23310
movq 0x8cd14(%rip), %rsi # 0xfdff0
movq 0x8cc75(%rip), %rdx # 0xfdf58
movq %rbx, %rdi
callq 0x23ea0
pushq $0x10
popq %rdi
callq 0x23450
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
pushq $-0x1
popq %rdx
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x63a1e
leaq 0x43910(%rip), %rsi # 0xb4c1f
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rdx
callq 0x59106
leaq 0x4390f(%rip), %rdx # 0xb4c37
leaq 0x28(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x38e94
leaq 0x48(%rsp), %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x63a1e
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0x39ef7
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x23dd0
xorl %ebp, %ebp
movq 0x8cc77(%rip), %rsi # 0xfdff0
movq 0x8cbd8(%rip), %rdx # 0xfdf58
movq %rbx, %rdi
callq 0x23ea0
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x24158
jmp 0x7139d
movq %rax, %r14
movb $0x1, %bpl
leaq 0x48(%rsp), %rdi
callq 0x24158
jmp 0x713af
movq %rax, %r14
movb $0x1, %bpl
leaq 0x28(%rsp), %rdi
callq 0x24158
jmp 0x713c1
movq %rax, %r14
movb $0x1, %bpl
leaq 0x88(%rsp), %rdi
callq 0x24158
jmp 0x713d6
movq %rax, %r14
movb $0x1, %bpl
leaq 0x68(%rsp), %rdi
callq 0x24158
testb %bpl, %bpl
jne 0x713fb
jmp 0x71403
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x24158
jmp 0x71403
jmp 0x713f8
movq %rax, %r14
movq %rbx, %rdi
callq 0x23670
movq %r14, %rdi
callq 0x23f20
nop
| _ZNK5minja5ValueltERKS0_:
push rbp
push r15
push r14
push rbx
sub rsp, 0A8h
mov r14, rsi
mov r15, rdi
call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void)
test al, al
jnz loc_712BB
mov al, [r15+40h]
lea ecx, [rax-5]
cmp cl, 2
ja short loc_71257
mov al, [r14+40h]
add al, 0FBh
cmp al, 2
ja loc_712EB
mov rdi, r15
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
movsd [rsp+0C8h+var_C8], xmm0
mov rdi, r14
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
ucomisd xmm0, [rsp+0C8h+var_C8]
setnbe bl
jmp short loc_712AB
loc_71257:
cmp al, 3
jnz loc_712EB
cmp byte ptr [r14+40h], 3
jnz loc_712EB
lea rdi, [rsp+0C8h+var_C0]
mov rsi, r15
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
lea rdi, [rsp+0C8h+var_A0]
mov rsi, r14
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
lea r14, [rsp+0C8h+var_C0]
lea r15, [rsp+0C8h+var_A0]
mov rdi, r14
mov rsi, r15
call _ZStltIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_; std::operator<<char>(std::string const&,std::string const&)
mov ebx, eax
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_712AB:
mov eax, ebx
add rsp, 0A8h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_712BB:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aUndefinedValue; "Undefined value or reference"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_712EB:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+0C8h+var_60]
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r15
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aCannotCompareV; "Cannot compare values: "
lea rdi, [rsp+0C8h+var_40]
lea rdx, [rsp+0C8h+var_60]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
lea rdx, asc_B4C37; " < "
lea rdi, [rsp+0C8h+var_A0]
lea rsi, [rsp+0C8h+var_40]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
lea rdi, [rsp+0C8h+var_80]
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rdi, [rsp+0C8h+var_C0]
lea rsi, [rsp+0C8h+var_A0]
lea rdx, [rsp+0C8h+var_80]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
mov bpl, 1
lea rsi, [rsp+0C8h+var_C0]
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:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rdi, [rsp+0C8h+var_C0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_7139D
mov r14, rax
mov bpl, 1
loc_7139D:
lea rdi, [rsp+0C8h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_713AF
mov r14, rax
mov bpl, 1
loc_713AF:
lea rdi, [rsp+0C8h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_713C1
mov r14, rax
mov bpl, 1
loc_713C1:
lea rdi, [rsp+0C8h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_713D6
mov r14, rax
mov bpl, 1
loc_713D6:
lea rdi, [rsp+0C8h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_713FB
jmp short loc_71403
mov r14, rax
lea rdi, [rsp+0C8h+var_C0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_71403
jmp short $+2
loc_713F8:
mov r14, rax
loc_713FB:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_71403:
mov rdi, r14
call __Unwind_Resume
| long long minja::Value::operator<(minja::Value *a1, minja::Value *a2)
{
unsigned int v2; // ebx
char v3; // al
std::runtime_error *exception; // rbx
void *v6; // rbx
_BYTE v7[32]; // [rsp+8h] [rbp-C0h] BYREF
_QWORD v8[4]; // [rsp+28h] [rbp-A0h] BYREF
_QWORD v9[4]; // [rsp+48h] [rbp-80h] BYREF
_BYTE v10[32]; // [rsp+68h] [rbp-60h] BYREF
_BYTE v11[64]; // [rsp+88h] [rbp-40h] BYREF
if ( minja::Value::is_null(a1) )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Undefined value or reference");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v3 = *((_BYTE *)a1 + 64);
if ( (unsigned __int8)(v3 - 5) > 2u )
{
if ( v3 == 3 && *((_BYTE *)a2 + 64) == 3 )
{
minja::Value::get<std::string>((long long)v7, a1);
minja::Value::get<std::string>((long long)v8, a2);
v2 = std::operator<<char>(v7, v8);
std::string::~string(v8);
std::string::~string(v7);
return v2;
}
LABEL_10:
v6 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v10, (long long)a1, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v11, (long long)"Cannot compare values: ", (long long)v10);
std::operator+<char>((long long)v8, (long long)v11, (long long)" < ");
minja::Value::dump[abi:cxx11]((long long)v9, (long long)a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v7, v8, v9);
std::runtime_error::runtime_error(v6, v7);
__cxa_throw(
v6,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( (unsigned __int8)(*((_BYTE *)a2 + 64) - 5) > 2u )
goto LABEL_10;
minja::Value::get<double>(a1);
minja::Value::get<double>(a2);
LOBYTE(v2) = 0;
return v2;
}
| operator<:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0xa8
MOV R14,RSI
MOV R15,RDI
CALL 0x00164008
TEST AL,AL
JNZ 0x001712bb
MOV AL,byte ptr [R15 + 0x40]
LEA ECX,[RAX + -0x5]
CMP CL,0x2
JA 0x00171257
MOV AL,byte ptr [R14 + 0x40]
ADD AL,0xfb
CMP AL,0x2
JA 0x001712eb
MOV RDI,R15
CALL 0x0016393a
MOVSD qword ptr [RSP],XMM0
MOV RDI,R14
CALL 0x0016393a
UCOMISD XMM0,qword ptr [RSP]
SETA BL
JMP 0x001712ab
LAB_00171257:
CMP AL,0x3
JNZ 0x001712eb
CMP byte ptr [R14 + 0x40],0x3
JNZ 0x001712eb
LEA RDI,[RSP + 0x8]
MOV RSI,R15
CALL 0x00164452
LAB_00171277:
LEA RDI,[RSP + 0x28]
MOV RSI,R14
CALL 0x00164452
LAB_00171284:
LEA R14,[RSP + 0x8]
LEA R15,[RSP + 0x28]
MOV RDI,R14
MOV RSI,R15
CALL 0x0017177a
MOV EBX,EAX
MOV RDI,R15
CALL 0x00124158
MOV RDI,R14
CALL 0x00124158
LAB_001712ab:
MOV EAX,EBX
ADD RSP,0xa8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001712bb:
PUSH 0x10
POP RDI
CALL 0x00123450
MOV RBX,RAX
LAB_001712c6:
LEA RSI,[0x1b402a]
MOV RDI,RAX
CALL 0x00123310
LAB_001712d5:
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,RBX
CALL 0x00123ea0
LAB_001712eb:
PUSH 0x10
POP RDI
CALL 0x00123450
MOV RBX,RAX
LAB_001712f6:
LEA RDI,[RSP + 0x68]
PUSH -0x1
POP RDX
MOV RSI,R15
XOR ECX,ECX
CALL 0x00163a1e
LAB_00171308:
LEA RSI,[0x1b4c1f]
LEA RDI,[RSP + 0x88]
LEA RDX,[RSP + 0x68]
CALL 0x00159106
LAB_00171321:
LEA RDX,[0x1b4c37]
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0x88]
CALL 0x00138e94
LAB_0017133a:
LEA RDI,[RSP + 0x48]
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x00163a1e
LAB_0017134c:
LEA RDI,[RSP + 0x8]
LEA RSI,[RSP + 0x28]
LEA RDX,[RSP + 0x48]
CALL 0x00139ef7
MOV BPL,0x1
LAB_00171363:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x00123dd0
XOR EBP,EBP
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,RBX
CALL 0x00123ea0
|
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */
ulong __thiscall minja::Value::operator<(Value *this,Value *param_1)
{
char cVar1;
bool bVar2;
int7 extraout_var;
runtime_error *prVar3;
int8 unaff_RBX;
ulong uVar4;
double dVar5;
double dVar6;
string local_c0 [32];
string local_a0 [32];
int1 local_80 [32];
int1 local_60 [32];
char local_40 [32];
cVar1 = is_null(this);
if (cVar1 != '\0') {
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001712c6 to 001712d4 has its CatchHandler @ 001713f8 */
std::runtime_error::runtime_error(prVar3,"Undefined value or reference");
/* WARNING: Subroutine does not return */
__cxa_throw(prVar3,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
if ((byte)((char)this[0x40] - 5U) < 3) {
if (2 < (byte)((char)param_1[0x40] - 5U)) {
LAB_001712eb:
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001712f6 to 00171307 has its CatchHandler @ 001713f6 */
dump_abi_cxx11_((int)local_60,SUB81(this,0));
/* try { // try from 00171308 to 00171320 has its CatchHandler @ 001713d0 */
std::operator+(local_40,(string *)"Cannot compare values: ");
/* try { // try from 00171321 to 00171339 has its CatchHandler @ 001713bb */
std::operator+(local_a0,local_40);
/* try { // try from 0017133a to 0017134b has its CatchHandler @ 001713a9 */
dump_abi_cxx11_((int)local_80,SUB81(param_1,0));
/* try { // try from 0017134c to 0017135f has its CatchHandler @ 00171397 */
std::operator+(local_c0,local_a0);
/* try { // try from 00171363 to 00171387 has its CatchHandler @ 00171388 */
std::runtime_error::runtime_error(prVar3,local_c0);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar3,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
dVar5 = get<double>(this);
dVar6 = get<double>(param_1);
uVar4 = CONCAT71((int7)((ulong)unaff_RBX >> 8),dVar5 < dVar6);
}
else {
if ((this[0x40] != (Value)0x3) || (param_1[0x40] != (Value)0x3)) goto LAB_001712eb;
get<std::__cxx11::string>();
/* try { // try from 00171277 to 00171283 has its CatchHandler @ 001713e7 */
get<std::__cxx11::string>();
bVar2 = std::operator<(local_c0,local_a0);
uVar4 = CONCAT71(extraout_var,bVar2) & 0xffffffff;
std::__cxx11::string::~string(local_a0);
std::__cxx11::string::~string(local_c0);
}
return uVar4 & 0xffffffff;
}
| |
41,085 | minja::Value::operator<(minja::Value const&) const | monkey531[P]llama/common/minja.hpp | bool operator<(const Value & other) const {
if (is_null())
throw std::runtime_error("Undefined value or reference");
if (is_number() && other.is_number()) return get<double>() < other.get<double>();
if (is_string() && other.is_string()) return get<std::string>() < other.get<std::string>();
throw std::runtime_error("Cannot compare values: " + dump() + " < " + other.dump());
} | O3 | cpp | minja::Value::operator<(minja::Value const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xb0, %rsp
movq %rsi, %r14
movq %rdi, %r15
cmpq $0x0, 0x20(%rdi)
movb 0x40(%rdi), %al
jne 0x98115
cmpq $0x0, 0x10(%r15)
jne 0x98115
testb %al, %al
jne 0x98115
cmpq $0x0, 0x30(%r15)
je 0x98218
leal -0x5(%rax), %ecx
cmpb $0x2, %cl
ja 0x9814f
movb 0x40(%r14), %al
addb $-0x5, %al
cmpb $0x2, %al
ja 0x9824a
movq %r15, %rdi
callq 0x8717c
movsd %xmm0, 0x48(%rsp)
movq %r14, %rdi
callq 0x8717c
ucomisd 0x48(%rsp), %xmm0
seta %bl
jmp 0x98206
cmpb $0x3, %al
jne 0x9824a
cmpb $0x3, 0x40(%r14)
jne 0x9824a
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x88116
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x88116
movq 0x30(%rsp), %r15
movq 0x8(%rsp), %r14
movq 0x10(%rsp), %r12
cmpq %r15, %r12
movq %r15, %rdx
cmovbq %r12, %rdx
testq %rdx, %rdx
je 0x981ad
movq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x1a3f0
movl %eax, %ebx
testl %eax, %eax
jne 0x981ce
subq %r12, %r15
cmpq $-0x7fffffff, %r15 # imm = 0x80000001
movq $-0x80000000, %rbx # imm = 0x80000000
cmovgeq %r15, %rbx
movl $0x7fffffff, %eax # imm = 0x7FFFFFFF
cmpq %rax, %rbx
cmovgeq %rax, %rbx
leaq 0x18(%rsp), %rax
cmpq %rax, %r14
je 0x981e8
movq 0x18(%rsp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x1a890
shrl $0x1f, %ebx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x98206
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a890
movl %ebx, %eax
addq $0xb0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x1a430
movq %rax, %rbx
leaq 0x57e0e(%rip), %rsi # 0xf003a
movq %rax, %rdi
callq 0x1a310
movq 0x93db5(%rip), %rsi # 0x12bff0
movq 0x93d1e(%rip), %rdx # 0x12bf60
movq %rbx, %rdi
callq 0x1aea0
movl $0x10, %edi
callq 0x1a430
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x872c8
leaq 0x589bd(%rip), %rsi # 0xf0c2f
leaq 0x90(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x79a2d
leaq 0x589bc(%rip), %rsi # 0xf0c47
leaq 0x90(%rsp), %rdi
callq 0x1b070
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x982b9
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x982c6
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x70(%rsp), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x872c8
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0x79afe
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x1adb0
xorl %ebp, %ebp
movq 0x93cd1(%rip), %rsi # 0x12bff0
movq 0x93c3a(%rip), %rdx # 0x12bf60
movq %rbx, %rdi
callq 0x1aea0
movq %rax, %r14
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x98354
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a890
jmp 0x98354
movq %rax, %r14
movb $0x1, %bpl
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9837d
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x1a890
jmp 0x9837d
movq %rax, %r14
movb $0x1, %bpl
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x9839c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a890
jmp 0x9839c
movq %rax, %r14
movb $0x1, %bpl
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x983bd
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x1a890
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x983d8
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x1a890
testb %bpl, %bpl
jne 0x98424
jmp 0x9842c
movq %rax, %r14
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x98424
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x1a890
jmp 0x98424
movq %rax, %r14
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9842c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a890
jmp 0x9842c
jmp 0x98421
movq %rax, %r14
movq %rbx, %rdi
callq 0x1a650
movq %r14, %rdi
callq 0x1af20
| _ZNK5minja5ValueltERKS0_:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 0B0h
mov r14, rsi
mov r15, rdi
cmp qword ptr [rdi+20h], 0
mov al, [rdi+40h]
jnz short loc_98115
cmp qword ptr [r15+10h], 0
jnz short loc_98115
test al, al
jnz short loc_98115
cmp qword ptr [r15+30h], 0
jz loc_98218
loc_98115:
lea ecx, [rax-5]
cmp cl, 2
ja short loc_9814F
mov al, [r14+40h]
add al, 0FBh
cmp al, 2
ja loc_9824A
mov rdi, r15
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
movsd [rsp+0D8h+var_90], xmm0
mov rdi, r14
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
ucomisd xmm0, [rsp+0D8h+var_90]
setnbe bl
jmp loc_98206
loc_9814F:
cmp al, 3
jnz loc_9824A
cmp byte ptr [r14+40h], 3
jnz loc_9824A
lea rdi, [rsp+0D8h+var_B0]
mov rsi, r15
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
lea rdi, [rsp+0D8h+var_D0]
mov rsi, r14
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
mov r15, [rsp+0D8h+var_A8]
mov r14, [rsp+0D8h+var_D0]
mov r12, [rsp+0D8h+var_C8]
cmp r12, r15
mov rdx, r15
cmovb rdx, r12
test rdx, rdx
jz short loc_981AD
mov rdi, [rsp+0D8h+var_B0]
mov rsi, r14
call _memcmp
mov ebx, eax
test eax, eax
jnz short loc_981CE
loc_981AD:
sub r15, r12
cmp r15, 0FFFFFFFF80000001h
mov rbx, 0FFFFFFFF80000000h
cmovge rbx, r15
mov eax, 7FFFFFFFh
cmp rbx, rax
cmovge rbx, rax
loc_981CE:
lea rax, [rsp+0D8h+var_C0]
cmp r14, rax
jz short loc_981E8
mov rsi, [rsp+0D8h+var_C0]
inc rsi; unsigned __int64
mov rdi, r14; void *
call __ZdlPvm; operator delete(void *,ulong)
loc_981E8:
shr ebx, 1Fh
lea rax, [rsp+0D8h+var_A0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_98206
mov rsi, [rsp+0D8h+var_A0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_98206:
mov eax, ebx
add rsp, 0B0h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_98218:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aUndefinedValue; "Undefined value or reference"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_9824A:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+0D8h+var_88]
mov rsi, r15
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aCannotCompareV; "Cannot compare values: "
lea rdi, [rsp+0D8h+var_48]
lea rdx, [rsp+0D8h+var_88]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
lea rsi, asc_F0C47; " < "
lea rdi, [rsp+0D8h+var_48]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea r15, [rsp+0D8h+var_C0]
mov [r15-10h], r15
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jnz short loc_982B9
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r15], xmm0
jmp short loc_982C6
loc_982B9:
mov [rsp+0D8h+var_D0], rdx
mov rdx, [rcx]
mov [rsp+0D8h+var_C0], rdx
loc_982C6:
mov rdx, [rax+8]
mov [rsp+0D8h+var_C8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea rdi, [rsp+0D8h+var_68]
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rdi, [rsp+0D8h+var_B0]
lea rsi, [rsp+0D8h+var_D0]
lea rdx, [rsp+0D8h+var_68]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
mov bpl, 1
lea rsi, [rsp+0D8h+var_B0]
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+0D8h+var_A0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_98354
mov rsi, [rsp+0D8h+var_A0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_98354
mov r14, rax
mov bpl, 1
loc_98354:
lea rax, [rsp+0D8h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9837D
mov rsi, [rsp+0D8h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_9837D
mov r14, rax
mov bpl, 1
loc_9837D:
mov rdi, [rsp+0D8h+var_D0]; void *
cmp rdi, r15
jz short loc_9839C
mov rsi, [rsp+0D8h+var_C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_9839C
mov r14, rax
mov bpl, 1
loc_9839C:
lea rax, [rsp+0D8h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_983BD
mov rsi, [rsp+0D8h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_983BD:
lea rax, [rsp+0D8h+var_78]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_983D8
mov rsi, [rsp+0D8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_983D8:
test bpl, bpl
jnz short loc_98424
jmp short loc_9842C
mov r14, rax
lea rax, [rsp+0D8h+var_78]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_98424
mov rsi, [rsp+0D8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_98424
mov r14, rax
lea rax, [rsp+0D8h+var_A0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9842C
mov rsi, [rsp+0D8h+var_A0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_9842C
jmp short $+2
loc_98421:
mov r14, rax
loc_98424:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_9842C:
mov rdi, r14
call __Unwind_Resume
| long long minja::Value::operator<(long long a1, long long a2)
{
unsigned int v2; // ebx
char v3; // al
unsigned long long v4; // r15
__int128 *v5; // r14
unsigned long long v6; // r12
unsigned long long v7; // rdx
long long v8; // rbx
long long v9; // r15
std::runtime_error *exception; // rbx
void *v12; // rbx
long long v13; // rax
__int128 *v14; // rcx
void *v15; // [rsp+8h] [rbp-D0h] BYREF
unsigned long long v16; // [rsp+10h] [rbp-C8h]
__int128 v17; // [rsp+18h] [rbp-C0h] BYREF
long long *v18; // [rsp+28h] [rbp-B0h] BYREF
unsigned long long v19; // [rsp+30h] [rbp-A8h]
long long v20; // [rsp+38h] [rbp-A0h] BYREF
double v21; // [rsp+48h] [rbp-90h]
_BYTE v22[16]; // [rsp+50h] [rbp-88h] BYREF
_QWORD v23[2]; // [rsp+70h] [rbp-68h] BYREF
_BYTE v24[16]; // [rsp+90h] [rbp-48h] BYREF
v3 = *(_BYTE *)(a1 + 64);
if ( !*(_QWORD *)(a1 + 32) && !*(_QWORD *)(a1 + 16) && !v3 && !*(_QWORD *)(a1 + 48) )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Undefined value or reference");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( (unsigned __int8)(v3 - 5) <= 2u )
{
if ( (unsigned __int8)(*(_BYTE *)(a2 + 64) - 5) <= 2u )
{
v21 = minja::Value::get<double>(a1);
LOBYTE(v2) = minja::Value::get<double>(a2) > v21;
return v2;
}
LABEL_24:
v12 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v22, a1, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v24, (long long)"Cannot compare values: ", (long long)v22);
v13 = std::string::append(v24, " < ");
v15 = &v17;
v14 = (__int128 *)(v13 + 16);
if ( *(_QWORD *)v13 == v13 + 16 )
{
v17 = *v14;
}
else
{
v15 = *(void **)v13;
*(_QWORD *)&v17 = *(_QWORD *)v14;
}
v16 = *(_QWORD *)(v13 + 8);
*(_QWORD *)v13 = v14;
*(_QWORD *)(v13 + 8) = 0LL;
*(_BYTE *)(v13 + 16) = 0;
minja::Value::dump[abi:cxx11]((long long)v23, a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)&v18, &v15, v23);
std::runtime_error::runtime_error(v12, &v18);
__cxa_throw(
v12,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( v3 != 3 || *(_BYTE *)(a2 + 64) != 3 )
goto LABEL_24;
minja::Value::get<std::string>((long long)&v18, (_QWORD *)a1);
minja::Value::get<std::string>((long long)&v15, (_QWORD *)a2);
v4 = v19;
v5 = (__int128 *)v15;
v6 = v16;
v7 = v19;
if ( v16 < v19 )
v7 = v16;
if ( !v7 || (LODWORD(v8) = memcmp(v18, v15), !(_DWORD)v8) )
{
v9 = v4 - v6;
v8 = 0xFFFFFFFF80000000LL;
if ( v9 >= -2147483647 )
v8 = v9;
if ( v8 >= 0x7FFFFFFF )
LODWORD(v8) = 0x7FFFFFFF;
}
if ( v5 != &v17 )
operator delete(v5, v17 + 1);
v2 = (unsigned int)v8 >> 31;
if ( v18 != &v20 )
operator delete(v18, v20 + 1);
return v2;
}
| operator<:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0xb0
MOV R14,RSI
MOV R15,RDI
CMP qword ptr [RDI + 0x20],0x0
MOV AL,byte ptr [RDI + 0x40]
JNZ 0x00198115
CMP qword ptr [R15 + 0x10],0x0
JNZ 0x00198115
TEST AL,AL
JNZ 0x00198115
CMP qword ptr [R15 + 0x30],0x0
JZ 0x00198218
LAB_00198115:
LEA ECX,[RAX + -0x5]
CMP CL,0x2
JA 0x0019814f
MOV AL,byte ptr [R14 + 0x40]
ADD AL,0xfb
CMP AL,0x2
JA 0x0019824a
MOV RDI,R15
CALL 0x0018717c
MOVSD qword ptr [RSP + 0x48],XMM0
MOV RDI,R14
CALL 0x0018717c
UCOMISD XMM0,qword ptr [RSP + 0x48]
SETA BL
JMP 0x00198206
LAB_0019814f:
CMP AL,0x3
JNZ 0x0019824a
CMP byte ptr [R14 + 0x40],0x3
JNZ 0x0019824a
LEA RDI,[RSP + 0x28]
MOV RSI,R15
CALL 0x00188116
LAB_0019816f:
LEA RDI,[RSP + 0x8]
MOV RSI,R14
CALL 0x00188116
LAB_0019817c:
MOV R15,qword ptr [RSP + 0x30]
MOV R14,qword ptr [RSP + 0x8]
MOV R12,qword ptr [RSP + 0x10]
CMP R12,R15
MOV RDX,R15
CMOVC RDX,R12
TEST RDX,RDX
JZ 0x001981ad
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,R14
CALL 0x0011a3f0
MOV EBX,EAX
TEST EAX,EAX
JNZ 0x001981ce
LAB_001981ad:
SUB R15,R12
CMP R15,-0x7fffffff
MOV RBX,-0x80000000
CMOVGE RBX,R15
MOV EAX,0x7fffffff
CMP RBX,RAX
CMOVGE RBX,RAX
LAB_001981ce:
LEA RAX,[RSP + 0x18]
CMP R14,RAX
JZ 0x001981e8
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
MOV RDI,R14
CALL 0x0011a890
LAB_001981e8:
SHR EBX,0x1f
LEA RAX,[RSP + 0x38]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00198206
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011a890
LAB_00198206:
MOV EAX,EBX
ADD RSP,0xb0
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_00198218:
MOV EDI,0x10
CALL 0x0011a430
MOV RBX,RAX
LAB_00198225:
LEA RSI,[0x1f003a]
MOV RDI,RAX
CALL 0x0011a310
LAB_00198234:
MOV RSI,qword ptr [0x0022bff0]
MOV RDX,qword ptr [0x0022bf60]
MOV RDI,RBX
CALL 0x0011aea0
LAB_0019824a:
MOV EDI,0x10
CALL 0x0011a430
MOV RBX,RAX
LAB_00198257:
LEA RDI,[RSP + 0x50]
MOV RSI,R15
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x001872c8
LAB_0019826b:
LEA RSI,[0x1f0c2f]
LEA RDI,[RSP + 0x90]
LEA RDX,[RSP + 0x50]
CALL 0x00179a2d
LAB_00198284:
LEA RSI,[0x1f0c47]
LEA RDI,[RSP + 0x90]
CALL 0x0011b070
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JNZ 0x001982b9
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R15],XMM0
JMP 0x001982c6
LAB_001982b9:
MOV qword ptr [RSP + 0x8],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x18],RDX
LAB_001982c6:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x10],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LAB_001982de:
LEA RDI,[RSP + 0x70]
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x001872c8
LAB_001982f2:
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0x8]
LEA RDX,[RSP + 0x70]
CALL 0x00179afe
MOV BPL,0x1
LAB_00198309:
LEA RSI,[RSP + 0x28]
MOV RDI,RBX
CALL 0x0011adb0
XOR EBP,EBP
MOV RSI,qword ptr [0x0022bff0]
MOV RDX,qword ptr [0x0022bf60]
MOV RDI,RBX
CALL 0x0011aea0
|
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */
ulong __thiscall minja::Value::operator<(Value *this,Value *param_1)
{
Value VVar1;
double dVar2;
uint uVar3;
runtime_error *prVar4;
long *plVar5;
long *plVar6;
ulong uVar7;
int8 unaff_RBX;
long *local_d0;
ulong local_c8;
long local_c0;
long lStack_b8;
long *local_b0;
ulong local_a8;
long local_a0 [2];
double local_90;
int1 local_88 [32];
int1 local_68 [32];
char local_48 [32];
VVar1 = this[0x40];
if ((((*(long *)(this + 0x20) == 0) && (*(long *)(this + 0x10) == 0)) && (VVar1 == (Value)0x0)) &&
(*(long *)(this + 0x30) == 0)) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00198225 to 00198233 has its CatchHandler @ 00198421 */
std::runtime_error::runtime_error(prVar4,"Undefined value or reference");
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_0022bff0,PTR__runtime_error_0022bf60);
}
if ((byte)((char)VVar1 - 5U) < 3) {
if (2 < (byte)((char)param_1[0x40] - 5U)) {
LAB_0019824a:
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00198257 to 0019826a has its CatchHandler @ 0019841f */
dump_abi_cxx11_((int)local_88,SUB81(this,0));
/* try { // try from 0019826b to 00198283 has its CatchHandler @ 001983df */
std::operator+(local_48,(string *)"Cannot compare values: ");
/* try { // try from 00198284 to 00198297 has its CatchHandler @ 00198396 */
plVar5 = (long *)std::__cxx11::string::append(local_48);
local_d0 = (long *)*plVar5;
plVar6 = plVar5 + 2;
if (local_d0 == plVar6) {
local_c0 = *plVar6;
lStack_b8 = plVar5[3];
local_d0 = &local_c0;
}
else {
local_c0 = *plVar6;
}
local_c8 = plVar5[1];
*plVar5 = (long)plVar6;
plVar5[1] = 0;
*(int1 *)(plVar5 + 2) = 0;
/* try { // try from 001982de to 001982f1 has its CatchHandler @ 00198377 */
dump_abi_cxx11_((int)local_68,SUB81(param_1,0));
/* try { // try from 001982f2 to 00198305 has its CatchHandler @ 0019834e */
std::operator+((string *)&local_b0,(string *)&local_d0);
/* try { // try from 00198309 to 0019832d has its CatchHandler @ 0019832e */
std::runtime_error::runtime_error(prVar4,(string *)&local_b0);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_0022bff0,PTR__runtime_error_0022bf60);
}
local_90 = get<double>(this);
dVar2 = get<double>(param_1);
uVar7 = CONCAT71((int7)((ulong)unaff_RBX >> 8),local_90 < dVar2);
goto LAB_00198206;
}
if ((VVar1 != (Value)0x3) || (param_1[0x40] != (Value)0x3)) goto LAB_0019824a;
get<std::__cxx11::string>();
/* try { // try from 0019816f to 0019817b has its CatchHandler @ 001983ff */
get<std::__cxx11::string>();
uVar7 = local_a8;
if (local_c8 < local_a8) {
uVar7 = local_c8;
}
if (uVar7 == 0) {
LAB_001981ad:
uVar7 = 0xffffffff80000000;
if (-0x80000000 < (long)(local_a8 - local_c8)) {
uVar7 = local_a8 - local_c8;
}
if (0x7ffffffe < (long)uVar7) {
uVar7 = 0;
}
}
else {
uVar3 = memcmp(local_b0,local_d0,uVar7);
uVar7 = (ulong)uVar3;
if (uVar3 == 0) goto LAB_001981ad;
}
if (local_d0 != &local_c0) {
operator_delete(local_d0,local_c0 + 1);
}
uVar7 = uVar7 >> 0x1f & 1;
if (local_b0 != local_a0) {
operator_delete(local_b0,local_a0[0] + 1);
}
LAB_00198206:
return uVar7 & 0xffffffff;
}
| |
41,086 | 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);
} | O3 | c | mi_get_key:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r13
movq %r8, %rbx
movq %rcx, %r12
movq %rsi, %r14
movq %rdi, -0x30(%rbp)
xorl %r15d, %r15d
cmpb $0x0, (%rdx)
jns 0x8589b
movq -0x30(%rbp), %rax
movq (%rax), %rax
movl 0x17c(%rax), %r15d
testb $0x28, 0xa(%r14)
je 0x858fe
leal 0x2(%r15), %eax
addq %rax, %rdx
leaq -0x38(%rbp), %rax
movq %rdx, (%rax)
movb $0x0, (%r12)
movq -0x38(%rbp), %rax
cmpq %rbx, %rax
ja 0x8591f
movq %r14, %rdi
movl %r15d, %esi
leaq -0x38(%rbp), %rdx
movq %r12, %rcx
callq *0x48(%r14)
movl %eax, (%r13)
testl %eax, %eax
jne 0x858b5
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x268(%rax), %rsi
movl $0x7e, %edi
callq 0x7ad3a
callq 0xa1ab2
movl $0x7e, (%rax)
xorl %eax, %eax
jmp 0x8591f
movzwl 0x12(%r14), %edx
addl %r15d, %edx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x29110
movzwl 0x12(%r14), %ecx
movl %r15d, %eax
addq %rbx, %rax
addq %rcx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _mi_get_key:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r13, r9
mov rbx, r8
mov r12, rcx
mov r14, rsi
mov [rbp+var_30], rdi
xor r15d, r15d
cmp byte ptr [rdx], 0
jns short loc_8589B
mov rax, [rbp+var_30]
mov rax, [rax]
mov r15d, [rax+17Ch]
loc_8589B:
test byte ptr [r14+0Ah], 28h
jz short loc_858FE
lea eax, [r15+2]
add rdx, rax
lea rax, [rbp+var_38]
mov [rax], rdx
mov byte ptr [r12], 0
loc_858B5:
mov rax, [rbp+var_38]
cmp rax, rbx
ja short loc_8591F
mov rdi, r14
mov esi, r15d
lea rdx, [rbp+var_38]
mov rcx, r12
call qword ptr [r14+48h]
mov [r13+0], eax
test eax, eax
jnz short loc_858B5
mov rax, [rbp+var_30]
mov rax, [rax]
mov rsi, [rax+268h]
mov edi, 7Eh ; '~'
call mi_report_error
call _my_thread_var
mov dword ptr [rax], 7Eh ; '~'
xor eax, eax
jmp short loc_8591F
loc_858FE:
movzx edx, word ptr [r14+12h]
add edx, r15d
mov rdi, r12
mov rsi, rbx
call _memmove
movzx ecx, word ptr [r14+12h]
mov eax, r15d
add rax, rbx
add rax, rcx
loc_8591F:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| char * mi_get_key(long long a1, long long a2, char *a3, _BYTE *a4, unsigned long long a5, _DWORD *a6)
{
unsigned int v9; // r15d
char *result; // rax
int v11; // eax
char *v12; // [rsp+8h] [rbp-38h] BYREF
long long v13; // [rsp+10h] [rbp-30h]
v13 = a1;
v9 = 0;
if ( *a3 < 0 )
v9 = *(_DWORD *)(*(_QWORD *)v13 + 380LL);
if ( (*(_BYTE *)(a2 + 10) & 0x28) != 0 )
{
v12 = &a3[v9 + 2];
*a4 = 0;
while ( 1 )
{
result = v12;
if ( (unsigned long long)v12 > a5 )
break;
v11 = (*(long long ( **)(long long, _QWORD, char **, _BYTE *))(a2 + 72))(a2, v9, &v12, a4);
*a6 = v11;
if ( !v11 )
{
mi_report_error(126, *(_QWORD *)(*(_QWORD *)v13 + 616LL));
*(_DWORD *)my_thread_var(126LL) = 126;
return 0LL;
}
}
}
else
{
memmove(a4, a5, v9 + *(unsigned __int16 *)(a2 + 18));
return (char *)(*(unsigned __int16 *)(a2 + 18) + a5 + v9);
}
return result;
}
| _mi_get_key:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R13,R9
MOV RBX,R8
MOV R12,RCX
MOV R14,RSI
MOV qword ptr [RBP + -0x30],RDI
XOR R15D,R15D
CMP byte ptr [RDX],0x0
JNS 0x0018589b
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV R15D,dword ptr [RAX + 0x17c]
LAB_0018589b:
TEST byte ptr [R14 + 0xa],0x28
JZ 0x001858fe
LEA EAX,[R15 + 0x2]
ADD RDX,RAX
LEA RAX,[RBP + -0x38]
MOV qword ptr [RAX],RDX
MOV byte ptr [R12],0x0
LAB_001858b5:
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,RBX
JA 0x0018591f
MOV RDI,R14
MOV ESI,R15D
LEA RDX,[RBP + -0x38]
MOV RCX,R12
CALL qword ptr [R14 + 0x48]
MOV dword ptr [R13],EAX
TEST EAX,EAX
JNZ 0x001858b5
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x268]
MOV EDI,0x7e
CALL 0x0017ad3a
CALL 0x001a1ab2
MOV dword ptr [RAX],0x7e
XOR EAX,EAX
JMP 0x0018591f
LAB_001858fe:
MOVZX EDX,word ptr [R14 + 0x12]
ADD EDX,R15D
MOV RDI,R12
MOV RSI,RBX
CALL 0x00129110
MOVZX ECX,word ptr [R14 + 0x12]
MOV EAX,R15D
ADD RAX,RBX
ADD RAX,RCX
LAB_0018591f:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
char * _mi_get_key(long *param_1,long param_2,char *param_3,int1 *param_4,char *param_5,
int *param_6)
{
int iVar1;
int4 *puVar2;
uint uVar3;
char *local_40;
long *local_38;
uVar3 = 0;
if (*param_3 < '\0') {
uVar3 = *(uint *)(*param_1 + 0x17c);
}
local_38 = param_1;
if ((*(byte *)(param_2 + 10) & 0x28) == 0) {
memmove(param_4,param_5,(ulong)(*(ushort *)(param_2 + 0x12) + uVar3));
param_5 = param_5 + (ulong)*(ushort *)(param_2 + 0x12) + (ulong)uVar3;
}
else {
local_40 = param_3 + (uVar3 + 2);
*param_4 = 0;
do {
if (param_5 < local_40) {
return local_40;
}
iVar1 = (**(code **)(param_2 + 0x48))(param_2,uVar3,&local_40,param_4);
*param_6 = iVar1;
} while (iVar1 != 0);
mi_report_error(0x7e,*(int8 *)(*local_38 + 0x268));
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x7e;
param_5 = (char *)0x0;
}
return param_5;
}
| |
41,087 | my_numcells_eucjp | eloqsql/strings/ctype-ujis.c | static
size_t my_numcells_eucjp(CHARSET_INFO *cs __attribute__((unused)),
const char *str, const char *str_end)
{
size_t clen;
const uchar *b= (const uchar *) str;
const uchar *e= (const uchar *) str_end;
for (clen= 0; b < e; )
{
if (*b == 0x8E)
{
clen++;
b+= 2;
}
else if (*b == 0x8F)
{
clen+= 2;
b+= 3;
}
else if (*b & 0x80)
{
clen+= 2;
b+= 2;
}
else
{
clen++;
b++;
}
}
return clen;
} | O3 | c | my_numcells_eucjp:
cmpq %rdx, %rsi
jae 0xc9a9e
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movzbl (%rsi), %edi
cmpl $0x8e, %edi
je 0xc9a77
cmpl $0x8f, %edi
jne 0xc9a83
movl $0x3, %edi
movl $0x2, %ecx
jmp 0xc9a91
movl $0x2, %edi
movl $0x1, %ecx
jmp 0xc9a91
xorl %ecx, %ecx
testb %dil, %dil
sets %cl
incq %rcx
movq %rcx, %rdi
addq %rcx, %rax
addq %rdi, %rsi
cmpq %rdx, %rsi
jb 0xc9a58
popq %rbp
retq
xorl %eax, %eax
retq
| my_numcells_eucjp:
cmp rsi, rdx
jnb short loc_C9A9E
push rbp
mov rbp, rsp
xor eax, eax
loc_C9A58:
movzx edi, byte ptr [rsi]
cmp edi, 8Eh
jz short loc_C9A77
cmp edi, 8Fh
jnz short loc_C9A83
mov edi, 3
mov ecx, 2
jmp short loc_C9A91
loc_C9A77:
mov edi, 2
mov ecx, 1
jmp short loc_C9A91
loc_C9A83:
xor ecx, ecx
test dil, dil
sets cl
inc rcx
mov rdi, rcx
loc_C9A91:
add rax, rcx
add rsi, rdi
cmp rsi, rdx
jb short loc_C9A58
pop rbp
retn
loc_C9A9E:
xor eax, eax
retn
| long long my_numcells_eucjp(long long a1, unsigned __int8 *a2, unsigned long long a3)
{
long long result; // rax
int v4; // edi
long long v5; // rdi
long long v6; // rcx
if ( (unsigned long long)a2 >= a3 )
return 0LL;
result = 0LL;
do
{
v4 = *a2;
if ( v4 == 142 )
{
v5 = 2LL;
v6 = 1LL;
}
else if ( v4 == 143 )
{
v5 = 3LL;
v6 = 2LL;
}
else
{
v6 = ((v4 & 0x80u) != 0) + 1LL;
v5 = v6;
}
result += v6;
a2 += v5;
}
while ( (unsigned long long)a2 < a3 );
return result;
}
| my_numcells_eucjp:
CMP RSI,RDX
JNC 0x001c9a9e
PUSH RBP
MOV RBP,RSP
XOR EAX,EAX
LAB_001c9a58:
MOVZX EDI,byte ptr [RSI]
CMP EDI,0x8e
JZ 0x001c9a77
CMP EDI,0x8f
JNZ 0x001c9a83
MOV EDI,0x3
MOV ECX,0x2
JMP 0x001c9a91
LAB_001c9a77:
MOV EDI,0x2
MOV ECX,0x1
JMP 0x001c9a91
LAB_001c9a83:
XOR ECX,ECX
TEST DIL,DIL
SETS CL
INC RCX
MOV RDI,RCX
LAB_001c9a91:
ADD RAX,RCX
ADD RSI,RDI
CMP RSI,RDX
JC 0x001c9a58
POP RBP
RET
LAB_001c9a9e:
XOR EAX,EAX
RET
|
long my_numcells_eucjp(int8 param_1,char *param_2,char *param_3)
{
char cVar1;
long lVar2;
long lVar3;
long lVar4;
if (param_2 < param_3) {
lVar2 = 0;
do {
cVar1 = *param_2;
if (cVar1 == -0x72) {
lVar4 = 2;
lVar3 = 1;
}
else if (cVar1 == -0x71) {
lVar3 = 2;
lVar4 = 3;
}
else {
lVar3 = (ulong)(cVar1 < '\0') + 1;
lVar4 = lVar3;
}
lVar2 = lVar2 + lVar3;
param_2 = param_2 + lVar4;
} while (param_2 < param_3);
return lVar2;
}
return 0;
}
| |
41,088 | minja::Value::at(minja::Value const&) | monkey531[P]llama/common/minja.hpp | Value& at(const Value & index) {
if (!index.is_hashable()) throw std::runtime_error("Unashable type: " + dump());
if (is_array()) return array_->at(index.get<int>());
if (is_object()) return object_->at(index.primitive_);
throw std::runtime_error("Value is not an array or object: " + dump());
} | O0 | cpp | minja::Value::at(minja::Value const&):
subq $0xd8, %rsp
movq %rdi, 0xc8(%rsp)
movq %rsi, 0xc0(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0xc0(%rsp), %rdi
callq 0x1281f0
testb $0x1, %al
jne 0x1323cc
movb $0x1, 0x73(%rsp)
movl $0x10, %edi
callq 0x5a6b0
movq 0x20(%rsp), %rsi
movq %rax, 0x18(%rsp)
leaq 0x80(%rsp), %rdi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x113900
jmp 0x132318
leaq 0xdf9a6(%rip), %rsi # 0x211cc5
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rdx
callq 0xf8490
jmp 0x132336
movq 0x18(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x5a4e0
jmp 0x13234a
movq 0x18(%rsp), %rdi
movb $0x0, 0x73(%rsp)
movq 0x170c55(%rip), %rsi # 0x2a2fb0
movq 0x170c16(%rip), %rdx # 0x2a2f78
callq 0x5ab30
jmp 0x13253a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
jmp 0x1323b4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
jmp 0x1323a7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0x5b588
leaq 0x80(%rsp), %rdi
callq 0x5b588
testb $0x1, 0x73(%rsp)
jne 0x1323bd
jmp 0x1323c7
movq 0x18(%rsp), %rdi
callq 0x5af90
jmp 0x132530
movq 0x20(%rsp), %rdi
callq 0x115440
testb $0x1, %al
jne 0x1323dc
jmp 0x132416
movq 0x20(%rsp), %rdi
addq $0x10, %rdi
callq 0x114770
movq %rax, 0x10(%rsp)
movq 0xc0(%rsp), %rdi
callq 0x12c9d0
movq 0x10(%rsp), %rdi
movslq %eax, %rsi
callq 0x12c780
movq %rax, 0xd0(%rsp)
jmp 0x132520
movq 0x20(%rsp), %rdi
callq 0x115c30
testb $0x1, %al
jne 0x132426
jmp 0x132455
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0x114850
movq %rax, %rdi
movq 0xc0(%rsp), %rsi
addq $0x40, %rsi
callq 0x135d50
movq %rax, 0xd0(%rsp)
jmp 0x132520
movb $0x1, 0x2f(%rsp)
movl $0x10, %edi
callq 0x5a6b0
movq 0x20(%rsp), %rsi
movq %rax, 0x8(%rsp)
leaq 0x30(%rsp), %rdi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x113900
jmp 0x132481
leaq 0xdf989(%rip), %rsi # 0x211e11
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0xf8490
jmp 0x132499
movq 0x8(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x5a4e0
jmp 0x1324aa
movq 0x8(%rsp), %rdi
movb $0x0, 0x2f(%rsp)
movq 0x170af5(%rip), %rsi # 0x2a2fb0
movq 0x170ab6(%rip), %rdx # 0x2a2f78
callq 0x5ab30
jmp 0x13253a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
jmp 0x13250b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
jmp 0x132501
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x5b588
leaq 0x30(%rsp), %rdi
callq 0x5b588
testb $0x1, 0x2f(%rsp)
jne 0x132514
jmp 0x13251e
movq 0x8(%rsp), %rdi
callq 0x5af90
jmp 0x132530
movq 0xd0(%rsp), %rax
addq $0xd8, %rsp
retq
movq 0x78(%rsp), %rdi
callq 0x5abf0
nopw (%rax,%rax)
| _ZN5minja5Value2atERKS0_:
sub rsp, 0D8h
mov [rsp+0D8h+var_10], rdi
mov [rsp+0D8h+var_18], rsi
mov rax, [rsp+0D8h+var_10]
mov [rsp+0D8h+var_B8], rax
mov rdi, [rsp+0D8h+var_18]; this
call _ZNK5minja5Value11is_hashableEv; minja::Value::is_hashable(void)
test al, 1
jnz loc_1323CC
mov [rsp+0D8h+var_65], 1
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rsi, [rsp+0D8h+var_B8]
mov [rsp+0D8h+var_C0], rax
lea rdi, [rsp+0D8h+var_58]
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
jmp short $+2
loc_132318:
lea rsi, aUnashableType; "Unashable type: "
lea rdi, [rsp+0D8h+var_38]
lea rdx, [rsp+0D8h+var_58]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
jmp short $+2
loc_132336:
mov rdi, [rsp+0D8h+var_C0]
lea rsi, [rsp+0D8h+var_38]
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
jmp short $+2
loc_13234A:
mov rdi, [rsp+0D8h+var_C0]; void *
mov [rsp+0D8h+var_65], 0
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
jmp loc_13253A
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
jmp short loc_1323B4
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
jmp short loc_1323A7
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
lea rdi, [rsp+arg_98]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1323A7:
lea rdi, [rsp+arg_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1323B4:
test [rsp+arg_6B], 1
jnz short loc_1323BD
jmp short loc_1323C7
loc_1323BD:
mov rdi, [rsp+arg_10]; void *
call ___cxa_free_exception
loc_1323C7:
jmp loc_132530
loc_1323CC:
mov rdi, [rsp+0D8h+var_B8]; this
call _ZNK5minja5Value8is_arrayEv; minja::Value::is_array(void)
test al, 1
jnz short loc_1323DC
jmp short loc_132416
loc_1323DC:
mov rdi, [rsp+0D8h+var_B8]
add rdi, 10h
call _ZNKSt19__shared_ptr_accessISt6vectorIN5minja5ValueESaIS2_EELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov [rsp+0D8h+var_C8], rax
mov rdi, [rsp+0D8h+var_18]
call _ZNK5minja5Value3getIiEET_v; minja::Value::get<int>(void)
mov rdi, [rsp+0D8h+var_C8]
movsxd rsi, eax
call _ZNSt6vectorIN5minja5ValueESaIS1_EE2atEm; std::vector<minja::Value>::at(ulong)
mov [rsp+0D8h+var_8], rax
jmp loc_132520
loc_132416:
mov rdi, [rsp+0D8h+var_B8]; this
call _ZNK5minja5Value9is_objectEv; minja::Value::is_object(void)
test al, 1
jnz short loc_132426
jmp short loc_132455
loc_132426:
mov rdi, [rsp+0D8h+var_B8]
add rdi, 20h ; ' '
call _ZNKSt19__shared_ptr_accessIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov rdi, rax
mov rsi, [rsp+0D8h+var_18]
add rsi, 40h ; '@'
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atERSJ_; nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::at(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov [rsp+0D8h+var_8], rax
jmp loc_132520
loc_132455:
mov [rsp+0D8h+var_A9], 1
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rsi, [rsp+0D8h+var_B8]
mov [rsp+0D8h+var_D0], rax
lea rdi, [rsp+0D8h+var_A8]
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
jmp short $+2
loc_132481:
lea rsi, aValueIsNotAnAr_0; "Value is not an array or object: "
lea rdi, [rsp+0D8h+var_88]
lea rdx, [rsp+0D8h+var_A8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
jmp short $+2
loc_132499:
mov rdi, [rsp+0D8h+var_D0]
lea rsi, [rsp+0D8h+var_88]
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
jmp short $+2
loc_1324AA:
mov rdi, [rsp+0D8h+var_D0]; void *
mov [rsp+0D8h+var_A9], 0
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
jmp short loc_13253A
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
jmp short loc_13250B
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
jmp short loc_132501
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_132501:
lea rdi, [rsp+arg_28]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_13250B:
test [rsp+arg_27], 1
jnz short loc_132514
jmp short loc_13251E
loc_132514:
mov rdi, [rsp+arg_0]; void *
call ___cxa_free_exception
loc_13251E:
jmp short loc_132530
loc_132520:
mov rax, [rsp+0D8h+var_8]
add rsp, 0D8h
retn
loc_132530:
mov rdi, [rsp+arg_70]
call __Unwind_Resume
loc_13253A:
nop word ptr [rax+rax+00h]
| long long minja::Value::at(minja::Value *this, const minja::Value *a2)
{
int v2; // eax
long long v3; // rax
void *v5; // [rsp+8h] [rbp-D0h]
_QWORD *v6; // [rsp+10h] [rbp-C8h]
void *exception; // [rsp+18h] [rbp-C0h]
_BYTE v8[32]; // [rsp+30h] [rbp-A8h] BYREF
_BYTE v9[48]; // [rsp+50h] [rbp-88h] BYREF
_BYTE v10[32]; // [rsp+80h] [rbp-58h] BYREF
_BYTE v11[32]; // [rsp+A0h] [rbp-38h] BYREF
minja::Value *v12; // [rsp+C0h] [rbp-18h]
minja::Value *v13; // [rsp+C8h] [rbp-10h]
v13 = this;
v12 = a2;
if ( (minja::Value::is_hashable(a2) & 1) == 0 )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v10, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v11, (long long)"Unashable type: ", (long long)v10);
std::runtime_error::runtime_error(exception, v11);
v9[35] = 0;
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( minja::Value::is_array(this) )
{
v6 = (_QWORD *)std::__shared_ptr_access<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)this + 16);
v2 = minja::Value::get<int>(v12);
return std::vector<minja::Value>::at(v6, v2);
}
else
{
if ( !minja::Value::is_object(this) )
{
v5 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v8, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v9, (long long)"Value is not an array or object: ", (long long)v8);
std::runtime_error::runtime_error(v5, v9);
__cxa_throw(
v5,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v3 = std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)this + 32);
return 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>>>::at(
v3,
(char *)v12 + 64);
}
}
| |||
41,089 | minja::Value::at(minja::Value const&) | monkey531[P]llama/common/minja.hpp | Value& at(const Value & index) {
if (!index.is_hashable()) throw std::runtime_error("Unashable type: " + dump());
if (is_array()) return array_->at(index.get<int>());
if (is_object()) return object_->at(index.primitive_);
throw std::runtime_error("Value is not an array or object: " + dump());
} | O2 | cpp | minja::Value::at(minja::Value const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x63146
testb %al, %al
je 0x6d347
movq 0x10(%r14), %r15
testq %r15, %r15
je 0x6d328
movq %rbx, %rdi
callq 0x6b350
movslq %eax, %rsi
movq %r15, %rdi
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x6b252
movq 0x20(%r14), %rdi
testq %rdi, %rdi
je 0x6d3a4
addq $0x40, %rbx
movq %rbx, %rsi
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x6e2f4
pushq $0x10
popq %rdi
callq 0x23470
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x63156
leaq 0x46f83(%rip), %rsi # 0xb42ee
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x58886
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x23e70
xorl %ebp, %ebp
movq 0x90c5d(%rip), %rsi # 0xfdff0
movq 0x90bbe(%rip), %rdx # 0xfdf58
movq %rbx, %rdi
callq 0x23f40
jmp 0x6d3ff
pushq $0x10
popq %rdi
callq 0x23470
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x63156
leaq 0x47072(%rip), %rsi # 0xb443a
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x58886
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x23e70
xorl %ebp, %ebp
movq 0x90c00(%rip), %rsi # 0xfdff0
movq 0x90b61(%rip), %rdx # 0xfdf58
movq %rbx, %rdi
callq 0x23f40
jmp 0x6d405
jmp 0x6d414
jmp 0x6d42b
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x241f8
jmp 0x6d41a
movq %rax, %r14
movb $0x1, %bpl
leaq 0x8(%rsp), %rdi
callq 0x241f8
testb %bpl, %bpl
jne 0x6d42e
jmp 0x6d436
movq %rax, %r14
movq %rbx, %rdi
callq 0x236a0
movq %r14, %rdi
callq 0x23fc0
| _ZN5minja5Value2atERKS0_:
push rbp
push r15
push r14
push rbx
sub rsp, 48h
mov rbx, rsi
mov r14, rdi
mov rdi, rsi; this
call _ZNK5minja5Value12is_primitiveEv; minja::Value::is_primitive(void)
test al, al
jz short loc_6D347
mov r15, [r14+10h]
test r15, r15
jz short loc_6D328
mov rdi, rbx
call _ZNK5minja5Value3getIiEET_v; minja::Value::get<int>(void)
movsxd rsi, eax
mov rdi, r15
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
jmp _ZNSt6vectorIN5minja5ValueESaIS1_EE2atEm; std::vector<minja::Value>::at(ulong)
loc_6D328:
mov rdi, [r14+20h]
test rdi, rdi
jz short loc_6D3A4
add rbx, 40h ; '@'
mov rsi, rbx
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
jmp _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atERSJ_; nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::at(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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&)
loc_6D347:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+68h+var_60]
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aUnashableType; "Unashable type: "
lea rdi, [rsp+68h+var_40]
lea rdx, [rsp+68h+var_60]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+68h+var_40]
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:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp short loc_6D3FF
loc_6D3A4:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+68h+var_60]
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aValueIsNotAnAr_0; "Value is not an array or object: "
lea rdi, [rsp+68h+var_40]
lea rdx, [rsp+68h+var_60]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+68h+var_40]
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:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_6D3FF:
jmp short loc_6D405
jmp short loc_6D414
jmp short loc_6D42B
loc_6D405:
mov r14, rax
lea rdi, [rsp+68h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_6D41A
loc_6D414:
mov r14, rax
mov bpl, 1
loc_6D41A:
lea rdi, [rsp+68h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_6D42E
jmp short loc_6D436
loc_6D42B:
mov r14, rax
loc_6D42E:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_6D436:
mov rdi, r14
call __Unwind_Resume
| long long minja::Value::at(minja::Value *this, const minja::Value *a2)
{
_QWORD *v3; // r15
int v4; // eax
long long v6; // rdi
void *exception; // rbx
void *v8; // rbx
_BYTE v9[32]; // [rsp+8h] [rbp-60h] BYREF
_BYTE v10[64]; // [rsp+28h] [rbp-40h] BYREF
if ( !minja::Value::is_primitive(a2) )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v9, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v10, (long long)"Unashable type: ", (long long)v9);
std::runtime_error::runtime_error(exception, v10);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v3 = (_QWORD *)*((_QWORD *)this + 2);
if ( v3 )
{
v4 = minja::Value::get<int>(a2);
return std::vector<minja::Value>::at(v3, v4);
}
else
{
v6 = *((_QWORD *)this + 4);
if ( !v6 )
{
v8 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v9, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v10, (long long)"Value is not an array or object: ", (long long)v9);
std::runtime_error::runtime_error(v8, v10);
__cxa_throw(
v8,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
return 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>>>::at(
v6,
(char *)a2 + 64);
}
}
| at:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV RBX,RSI
MOV R14,RDI
MOV RDI,RSI
CALL 0x00163146
TEST AL,AL
JZ 0x0016d347
MOV R15,qword ptr [R14 + 0x10]
TEST R15,R15
JZ 0x0016d328
MOV RDI,RBX
CALL 0x0016b350
MOVSXD RSI,EAX
MOV RDI,R15
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0016b252
LAB_0016d328:
MOV RDI,qword ptr [R14 + 0x20]
TEST RDI,RDI
JZ 0x0016d3a4
ADD RBX,0x40
MOV RSI,RBX
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0016e2f4
LAB_0016d347:
PUSH 0x10
POP RDI
CALL 0x00123470
MOV RBX,RAX
LAB_0016d352:
LEA RDI,[RSP + 0x8]
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x00163156
LAB_0016d364:
LEA RSI,[0x1b42ee]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
CALL 0x00158886
MOV BPL,0x1
LAB_0016d37d:
LEA RSI,[RSP + 0x28]
MOV RDI,RBX
CALL 0x00123e70
XOR EBP,EBP
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,RBX
CALL 0x00123f40
LAB_0016d3a4:
PUSH 0x10
POP RDI
CALL 0x00123470
MOV RBX,RAX
LAB_0016d3af:
LEA RDI,[RSP + 0x8]
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x00163156
LAB_0016d3c1:
LEA RSI,[0x1b443a]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
CALL 0x00158886
MOV BPL,0x1
LAB_0016d3da:
LEA RSI,[RSP + 0x28]
MOV RDI,RBX
CALL 0x00123e70
XOR EBP,EBP
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,RBX
CALL 0x00123f40
|
/* minja::Value::at(minja::Value const&) */
void __thiscall minja::Value::at(Value *this,Value *param_1)
{
vector<minja::Value,std::allocator<minja::Value>> *this_00;
runtime_error *prVar1;
char cVar2;
int iVar3;
int1 local_60 [32];
string local_40 [32];
cVar2 = is_primitive(param_1);
if (cVar2 == '\0') {
prVar1 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016d352 to 0016d363 has its CatchHandler @ 0016d42b */
dump_abi_cxx11_((int)local_60,SUB81(this,0));
/* try { // try from 0016d364 to 0016d379 has its CatchHandler @ 0016d414 */
std::operator+((char *)local_40,(string *)"Unashable type: ");
/* try { // try from 0016d37d to 0016d3a1 has its CatchHandler @ 0016d405 */
std::runtime_error::runtime_error(prVar1,local_40);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar1,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
this_00 = *(vector<minja::Value,std::allocator<minja::Value>> **)(this + 0x10);
if (this_00 != (vector<minja::Value,std::allocator<minja::Value>> *)0x0) {
iVar3 = get<int>(param_1);
std::vector<minja::Value,std::allocator<minja::Value>>::at(this_00,(long)iVar3);
return;
}
if (*(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 + 0x20) !=
(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>>>
*)0x0) {
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>>>
::at(*(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 + 0x20),param_1 + 0x40);
return;
}
prVar1 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016d3af to 0016d3c0 has its CatchHandler @ 0016d403 */
dump_abi_cxx11_((int)local_60,SUB81(this,0));
/* try { // try from 0016d3c1 to 0016d3d6 has its CatchHandler @ 0016d401 */
std::operator+((char *)local_40,(string *)"Value is not an array or object: ");
/* try { // try from 0016d3da to 0016d3fe has its CatchHandler @ 0016d3ff */
std::runtime_error::runtime_error(prVar1,local_40);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar1,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
| |
41,090 | R3D_GetLightType | r3d/src/r3d_lighting.c | R3D_LightType R3D_GetLightType(R3D_Light id)
{
r3d_get_and_check_light(light, id, 0);
return light->type;
} | O3 | c | R3D_GetLightType:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %edx
testl %edi, %edi
je 0xbddd5
leaq 0x1047a5(%rip), %rax # 0x1c2540
cmpl %edx, 0x168(%rax)
jbe 0xbddd5
movq 0x128(%rax), %rsi
leal -0x1(%rdx), %ecx
cmpb $0x1, (%rsi,%rcx)
jne 0xbddd5
movq 0x108(%rax), %rsi
cmpq %rcx, 0x110(%rax)
setbe %dil
testq %rsi, %rsi
sete %r8b
orb %dil, %r8b
cmpb $0x1, %r8b
jne 0xbddf3
leaq 0x55005(%rip), %rsi # 0x112de1
xorl %ebx, %ebx
movl $0x5, %edi
xorl %eax, %eax
callq 0xaa1bd
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
imulq 0x120(%rax), %rcx
movl 0xb0(%rsi,%rcx), %ebx
jmp 0xbddea
| R3D_GetLightType:
push rbp
mov rbp, rsp
push rbx
push rax
mov edx, edi
test edi, edi
jz short loc_BDDD5
lea rax, R3D
cmp [rax+168h], edx
jbe short loc_BDDD5
mov rsi, [rax+128h]
lea ecx, [rdx-1]
cmp byte ptr [rsi+rcx], 1
jnz short loc_BDDD5
mov rsi, [rax+108h]
cmp [rax+110h], rcx
setbe dil
test rsi, rsi
setz r8b
or r8b, dil
cmp r8b, 1
jnz short loc_BDDF3
loc_BDDD5:
lea rsi, aLightIdIIsNotV; "Light [ID %i] is not valid"
xor ebx, ebx
mov edi, 5
xor eax, eax
call TraceLog
loc_BDDEA:
mov eax, ebx
add rsp, 8
pop rbx
pop rbp
retn
loc_BDDF3:
imul rcx, [rax+120h]
mov ebx, [rsi+rcx+0B0h]
jmp short loc_BDDEA
| long long R3D_GetLightType(unsigned int a1)
{
unsigned long long v1; // rcx
long long v2; // rsi
unsigned int v3; // ebx
if ( a1
&& *((_DWORD *)&R3D + 90) > a1
&& (v1 = a1 - 1, *(_BYTE *)(*((_QWORD *)&R3D + 37) + v1) == 1)
&& (v2 = *((_QWORD *)&R3D + 33), *((_QWORD *)&R3D + 34) > v1 && v2 != 0) )
{
return *(unsigned int *)(v2 + *((_QWORD *)&R3D + 36) * v1 + 176);
}
else
{
v3 = 0;
TraceLog(5, (long long)"Light [ID %i] is not valid", a1);
}
return v3;
}
| R3D_GetLightType:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV EDX,EDI
TEST EDI,EDI
JZ 0x001bddd5
LEA RAX,[0x2c2540]
CMP dword ptr [RAX + 0x168],EDX
JBE 0x001bddd5
MOV RSI,qword ptr [RAX + 0x128]
LEA ECX,[RDX + -0x1]
CMP byte ptr [RSI + RCX*0x1],0x1
JNZ 0x001bddd5
MOV RSI,qword ptr [RAX + 0x108]
CMP qword ptr [RAX + 0x110],RCX
SETBE DIL
TEST RSI,RSI
SETZ R8B
OR R8B,DIL
CMP R8B,0x1
JNZ 0x001bddf3
LAB_001bddd5:
LEA RSI,[0x212de1]
XOR EBX,EBX
MOV EDI,0x5
XOR EAX,EAX
CALL 0x001aa1bd
LAB_001bddea:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP RBP
RET
LAB_001bddf3:
IMUL RCX,qword ptr [RAX + 0x120]
MOV EBX,dword ptr [RSI + RCX*0x1 + 0xb0]
JMP 0x001bddea
|
int4 R3D_GetLightType(uint param_1)
{
ulong uVar1;
if ((((param_1 != 0) && (param_1 < DAT_002c26a8)) &&
(uVar1 = (ulong)(param_1 - 1), *(char *)(DAT_002c2668 + uVar1) == '\x01')) &&
(DAT_002c2648 != 0 && uVar1 < DAT_002c2650)) {
return *(int4 *)(DAT_002c2648 + 0xb0 + uVar1 * DAT_002c2660);
}
TraceLog(5,"Light [ID %i] is not valid");
return 0;
}
| |
41,091 | my_longlong10_to_str_8bit | eloqsql/strings/ctype-simple.c | size_t my_longlong10_to_str_8bit(CHARSET_INFO *cs __attribute__((unused)),
char *dst, size_t len, int radix,
longlong val)
{
char buffer[65];
register char *p, *e;
long long_val;
uint sign= 0;
ulonglong uval = (ulonglong)val;
if (radix < 0)
{
if (val < 0)
{
/* Avoid integer overflow in (-val) for LONGLONG_MIN (BUG#31799). */
uval = (ulonglong)0 - uval;
*dst++= '-';
len--;
sign= 1;
}
}
e = p = &buffer[sizeof(buffer)-1];
*p= 0;
if (uval == 0)
{
*--p= '0';
len= 1;
goto cnv;
}
while (uval > (ulonglong) LONG_MAX)
{
ulonglong quo= uval/(uint) 10;
uint rem= (uint) (uval- quo* (uint) 10);
*--p = '0' + rem;
uval= quo;
}
long_val= (long) uval;
while (long_val != 0)
{
long quo= long_val/10;
*--p = (char) ('0' + (long_val - quo*10));
long_val= quo;
}
len= MY_MIN(len, (size_t) (e-p));
cnv:
memcpy(dst, p, len);
return len+sign;
} | O0 | c | my_longlong10_to_str_8bit:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x58(%rbp)
movq %rsi, -0x60(%rbp)
movq %rdx, -0x68(%rbp)
movl %ecx, -0x6c(%rbp)
movq %r8, -0x78(%rbp)
movl $0x0, -0x94(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0xa0(%rbp)
cmpl $0x0, -0x6c(%rbp)
jge 0x4fe87
cmpq $0x0, -0x78(%rbp)
jge 0x4fe85
xorl %eax, %eax
subq -0xa0(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x60(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x60(%rbp)
movb $0x2d, (%rax)
movq -0x68(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x68(%rbp)
movl $0x1, -0x94(%rbp)
jmp 0x4fe87
leaq -0x50(%rbp), %rax
addq $0x40, %rax
movq %rax, -0x80(%rbp)
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rax
movb $0x0, (%rax)
cmpq $0x0, -0xa0(%rbp)
jne 0x4fecb
movq -0x80(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x80(%rbp)
movb $0x30, -0x1(%rax)
movq $0x1, -0x68(%rbp)
jmp 0x4ffeb
jmp 0x4fecd
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rax, -0xa0(%rbp)
jbe 0x4ff3d
movq -0xa0(%rbp), %rax
movl $0xa, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, -0xa8(%rbp)
movq -0xa0(%rbp), %rax
imulq $0xa, -0xa8(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0xac(%rbp)
movl -0xac(%rbp), %eax
addl $0x30, %eax
movb %al, %cl
movq -0x80(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x80(%rbp)
movb %cl, -0x1(%rax)
movq -0xa8(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0x4fecd
movq -0xa0(%rbp), %rax
movq %rax, -0x90(%rbp)
cmpq $0x0, -0x90(%rbp)
je 0x4ffa7
movq -0x90(%rbp), %rax
movl $0xa, %ecx
cqto
idivq %rcx
movq %rax, -0xb8(%rbp)
movq -0x90(%rbp), %rax
imulq $0xa, -0xb8(%rbp), %rcx
subq %rcx, %rax
addq $0x30, %rax
movb %al, %cl
movq -0x80(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x80(%rbp)
movb %cl, -0x1(%rax)
movq -0xb8(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x4ff4b
movq -0x68(%rbp), %rax
movq -0x88(%rbp), %rcx
movq -0x80(%rbp), %rdx
subq %rdx, %rcx
cmpq %rcx, %rax
jae 0x4ffcb
movq -0x68(%rbp), %rax
movq %rax, -0xc0(%rbp)
jmp 0x4ffe0
movq -0x88(%rbp), %rax
movq -0x80(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0x24200
movq -0x68(%rbp), %rax
movl -0x94(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0xc8(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x50032
movq -0xc8(%rbp), %rax
addq $0xd0, %rsp
popq %rbp
retq
callq 0x242c0
nopw (%rax,%rax)
| my_longlong10_to_str_8bit:
push rbp
mov rbp, rsp
sub rsp, 0D0h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_58], rdi
mov [rbp+var_60], rsi
mov [rbp+var_68], rdx
mov [rbp+var_6C], ecx
mov [rbp+var_78], r8
mov [rbp+var_94], 0
mov rax, [rbp+var_78]
mov [rbp+var_A0], rax
cmp [rbp+var_6C], 0
jge short loc_4FE87
cmp [rbp+var_78], 0
jge short loc_4FE85
xor eax, eax
sub rax, [rbp+var_A0]
mov [rbp+var_A0], rax
mov rax, [rbp+var_60]
mov rcx, rax
add rcx, 1
mov [rbp+var_60], rcx
mov byte ptr [rax], 2Dh ; '-'
mov rax, [rbp+var_68]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_68], rax
mov [rbp+var_94], 1
loc_4FE85:
jmp short $+2
loc_4FE87:
lea rax, [rbp+var_50]
add rax, 40h ; '@'
mov [rbp+var_80], rax
mov [rbp+var_88], rax
mov rax, [rbp+var_80]
mov byte ptr [rax], 0
cmp [rbp+var_A0], 0
jnz short loc_4FECB
mov rax, [rbp+var_80]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_80], rcx
mov byte ptr [rax-1], 30h ; '0'
mov [rbp+var_68], 1
jmp loc_4FFEB
loc_4FECB:
jmp short $+2
loc_4FECD:
mov rax, 7FFFFFFFFFFFFFFFh
cmp [rbp+var_A0], rax
jbe short loc_4FF3D
mov rax, [rbp+var_A0]
mov ecx, 0Ah
xor edx, edx
div rcx
mov [rbp+var_A8], rax
mov rax, [rbp+var_A0]
imul rcx, [rbp+var_A8], 0Ah
sub rax, rcx
mov [rbp+var_AC], eax
mov eax, [rbp+var_AC]
add eax, 30h ; '0'
mov cl, al
mov rax, [rbp+var_80]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_80], rdx
mov [rax-1], cl
mov rax, [rbp+var_A8]
mov [rbp+var_A0], rax
jmp short loc_4FECD
loc_4FF3D:
mov rax, [rbp+var_A0]
mov [rbp+var_90], rax
loc_4FF4B:
cmp [rbp+var_90], 0
jz short loc_4FFA7
mov rax, [rbp+var_90]
mov ecx, 0Ah
cqo
idiv rcx
mov [rbp+var_B8], rax
mov rax, [rbp+var_90]
imul rcx, [rbp+var_B8], 0Ah
sub rax, rcx
add rax, 30h ; '0'
mov cl, al
mov rax, [rbp+var_80]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_80], rdx
mov [rax-1], cl
mov rax, [rbp+var_B8]
mov [rbp+var_90], rax
jmp short loc_4FF4B
loc_4FFA7:
mov rax, [rbp+var_68]
mov rcx, [rbp+var_88]
mov rdx, [rbp+var_80]
sub rcx, rdx
cmp rax, rcx
jnb short loc_4FFCB
mov rax, [rbp+var_68]
mov [rbp+var_C0], rax
jmp short loc_4FFE0
loc_4FFCB:
mov rax, [rbp+var_88]
mov rcx, [rbp+var_80]
sub rax, rcx
mov [rbp+var_C0], rax
loc_4FFE0:
mov rax, [rbp+var_C0]
mov [rbp+var_68], rax
loc_4FFEB:
mov rdi, [rbp+var_60]
mov rsi, [rbp+var_80]
mov rdx, [rbp+var_68]
call _memcpy
mov rax, [rbp+var_68]
mov ecx, [rbp+var_94]
add rax, rcx
mov [rbp+var_C8], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_50032
mov rax, [rbp+var_C8]
add rsp, 0D0h
pop rbp
retn
loc_50032:
call ___stack_chk_fail
| long long my_longlong10_to_str_8bit(long long a1, _BYTE *a2, _BYTE *a3, int a4, long long a5)
{
char *v5; // rax
char *v6; // rax
_BYTE *v8; // [rsp+10h] [rbp-C0h]
unsigned long long v9; // [rsp+30h] [rbp-A0h]
unsigned int v10; // [rsp+3Ch] [rbp-94h]
signed long long i; // [rsp+40h] [rbp-90h]
char *v12; // [rsp+50h] [rbp-80h]
_BYTE *v13; // [rsp+68h] [rbp-68h]
long long v14; // [rsp+68h] [rbp-68h]
_BYTE *v15; // [rsp+70h] [rbp-60h]
char v16; // [rsp+BFh] [rbp-11h] BYREF
_BYTE v17[8]; // [rsp+C0h] [rbp-10h] BYREF
unsigned long long v18; // [rsp+C8h] [rbp-8h]
v18 = __readfsqword(0x28u);
v15 = a2;
v13 = a3;
v10 = 0;
v9 = a5;
if ( a4 < 0 && a5 < 0 )
{
v9 = -a5;
v15 = a2 + 1;
*a2 = 45;
v13 = a3 - 1;
v10 = 1;
}
v12 = v17;
v17[0] = 0;
if ( v9 )
{
while ( v9 > 0x7FFFFFFFFFFFFFFFLL )
{
v5 = v12--;
*(v5 - 1) = v9 % 0xA + 48;
v9 /= 0xAuLL;
}
for ( i = v9; i; i /= 10LL )
{
v6 = v12--;
*(v6 - 1) = i % 10 + 48;
}
if ( (unsigned long long)v13 >= v17 - v12 )
v8 = (_BYTE *)(v17 - v12);
else
v8 = v13;
v14 = (long long)v8;
}
else
{
v12 = &v16;
v16 = 48;
v14 = 1LL;
}
memcpy(v15, v12, v14);
return v10 + v14;
}
| my_longlong10_to_str_8bit:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x58],RDI
MOV qword ptr [RBP + -0x60],RSI
MOV qword ptr [RBP + -0x68],RDX
MOV dword ptr [RBP + -0x6c],ECX
MOV qword ptr [RBP + -0x78],R8
MOV dword ptr [RBP + -0x94],0x0
MOV RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0xa0],RAX
CMP dword ptr [RBP + -0x6c],0x0
JGE 0x0014fe87
CMP qword ptr [RBP + -0x78],0x0
JGE 0x0014fe85
XOR EAX,EAX
SUB RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0xa0],RAX
MOV RAX,qword ptr [RBP + -0x60]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x60],RCX
MOV byte ptr [RAX],0x2d
MOV RAX,qword ptr [RBP + -0x68]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x68],RAX
MOV dword ptr [RBP + -0x94],0x1
LAB_0014fe85:
JMP 0x0014fe87
LAB_0014fe87:
LEA RAX,[RBP + -0x50]
ADD RAX,0x40
MOV qword ptr [RBP + -0x80],RAX
MOV qword ptr [RBP + -0x88],RAX
MOV RAX,qword ptr [RBP + -0x80]
MOV byte ptr [RAX],0x0
CMP qword ptr [RBP + -0xa0],0x0
JNZ 0x0014fecb
MOV RAX,qword ptr [RBP + -0x80]
MOV RCX,RAX
ADD RCX,-0x1
MOV qword ptr [RBP + -0x80],RCX
MOV byte ptr [RAX + -0x1],0x30
MOV qword ptr [RBP + -0x68],0x1
JMP 0x0014ffeb
LAB_0014fecb:
JMP 0x0014fecd
LAB_0014fecd:
MOV RAX,0x7fffffffffffffff
CMP qword ptr [RBP + -0xa0],RAX
JBE 0x0014ff3d
MOV RAX,qword ptr [RBP + -0xa0]
MOV ECX,0xa
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0xa8],RAX
MOV RAX,qword ptr [RBP + -0xa0]
IMUL RCX,qword ptr [RBP + -0xa8],0xa
SUB RAX,RCX
MOV dword ptr [RBP + -0xac],EAX
MOV EAX,dword ptr [RBP + -0xac]
ADD EAX,0x30
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x80]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RBP + -0x80],RDX
MOV byte ptr [RAX + -0x1],CL
MOV RAX,qword ptr [RBP + -0xa8]
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x0014fecd
LAB_0014ff3d:
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x90],RAX
LAB_0014ff4b:
CMP qword ptr [RBP + -0x90],0x0
JZ 0x0014ffa7
MOV RAX,qword ptr [RBP + -0x90]
MOV ECX,0xa
CQO
IDIV RCX
MOV qword ptr [RBP + -0xb8],RAX
MOV RAX,qword ptr [RBP + -0x90]
IMUL RCX,qword ptr [RBP + -0xb8],0xa
SUB RAX,RCX
ADD RAX,0x30
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x80]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RBP + -0x80],RDX
MOV byte ptr [RAX + -0x1],CL
MOV RAX,qword ptr [RBP + -0xb8]
MOV qword ptr [RBP + -0x90],RAX
JMP 0x0014ff4b
LAB_0014ffa7:
MOV RAX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x88]
MOV RDX,qword ptr [RBP + -0x80]
SUB RCX,RDX
CMP RAX,RCX
JNC 0x0014ffcb
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0xc0],RAX
JMP 0x0014ffe0
LAB_0014ffcb:
MOV RAX,qword ptr [RBP + -0x88]
MOV RCX,qword ptr [RBP + -0x80]
SUB RAX,RCX
MOV qword ptr [RBP + -0xc0],RAX
LAB_0014ffe0:
MOV RAX,qword ptr [RBP + -0xc0]
MOV qword ptr [RBP + -0x68],RAX
LAB_0014ffeb:
MOV RDI,qword ptr [RBP + -0x60]
MOV RSI,qword ptr [RBP + -0x80]
MOV RDX,qword ptr [RBP + -0x68]
CALL 0x00124200
MOV RAX,qword ptr [RBP + -0x68]
MOV ECX,dword ptr [RBP + -0x94]
ADD RAX,RCX
MOV qword ptr [RBP + -0xc8],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00150032
MOV RAX,qword ptr [RBP + -0xc8]
ADD RSP,0xd0
POP RBP
RET
LAB_00150032:
CALL 0x001242c0
|
long my_longlong10_to_str_8bit
(int8 param_1,int1 *param_2,ulong param_3,int param_4,ulong param_5)
{
char *pcVar1;
long in_FS_OFFSET;
ulong local_c8;
ulong local_a8;
uint local_9c;
ulong local_98;
char *local_88;
size_t local_70;
int1 *local_68;
char local_19 [9];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_9c = 0;
local_a8 = param_5;
local_70 = param_3;
local_68 = param_2;
if (param_4 < 0) {
if ((long)param_5 < 0) {
local_a8 = -param_5;
local_68 = param_2 + 1;
*param_2 = 0x2d;
local_70 = param_3 - 1;
}
local_9c = (uint)((long)param_5 < 0);
}
pcVar1 = local_19 + 1;
local_19[1] = 0;
local_88 = pcVar1;
if (local_a8 == 0) {
local_88 = local_19;
local_19[0] = '0';
local_70 = 1;
}
else {
while (0x7fffffffffffffff < local_a8) {
local_88[-1] = (char)local_a8 + (char)(local_a8 / 10) * -10 + '0';
local_a8 = local_a8 / 10;
local_88 = local_88 + -1;
}
local_98 = local_a8;
while (local_98 != 0) {
local_88[-1] = (char)local_98 + (char)((long)local_98 / 10) * -10 + '0';
local_98 = (long)local_98 / 10;
local_88 = local_88 + -1;
}
if (local_70 < (ulong)((long)pcVar1 - (long)local_88)) {
local_c8 = local_70;
}
else {
local_c8 = (long)pcVar1 - (long)local_88;
}
local_70 = local_c8;
}
memcpy(local_68,local_88,local_70);
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_70 + local_9c;
}
| |
41,092 | google::protobuf::internal::SerialArena::Memory google::protobuf::internal::SerialArena::Free<google::protobuf::internal::GetDeallocator>(google::protobuf::internal::GetDeallocator) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/arena.cc | SerialArena::Memory SerialArena::Free(Deallocator deallocator) {
Block* b = head_;
Memory mem = {b, b->size};
while (b->next) {
b = b->next; // We must first advance before deleting this block
deallocator(mem);
mem = {b, b->size};
}
return mem;
} | O3 | cpp | google::protobuf::internal::SerialArena::Memory google::protobuf::internal::SerialArena::Free<google::protobuf::internal::GetDeallocator>(google::protobuf::internal::GetDeallocator):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x8(%rdi), %rdi
movq (%rdi), %rax
movq 0x8(%rdi), %rbx
testq %rax, %rax
je 0xf974b
movq %rdx, %r14
movq %rsi, %r15
movq %rax, %r12
testq %r15, %r15
je 0xf9730
movq %rbx, %rsi
callq *%r15
jmp 0xf9735
callq 0x1f4a0
addq %rbx, (%r14)
movq (%r12), %rax
movq 0x8(%r12), %rbx
movq %r12, %rdi
testq %rax, %rax
jne 0xf9720
jmp 0xf974e
movq %rdi, %r12
movq %r12, %rax
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| _ZN6google8protobuf8internal11SerialArena4FreeINS1_14GetDeallocatorEEENS2_6MemoryET_:
push r15
push r14
push r12
push rbx
push rax
mov rdi, [rdi+8]; void *
mov rax, [rdi]
mov rbx, [rdi+8]
test rax, rax
jz short loc_F974B
mov r14, rdx
mov r15, rsi
loc_F9720:
mov r12, rax
test r15, r15
jz short loc_F9730
mov rsi, rbx
call r15
jmp short loc_F9735
loc_F9730:
call __ZdlPv; operator delete(void *)
loc_F9735:
add [r14], rbx
mov rax, [r12]
mov rbx, [r12+8]
mov rdi, r12
test rax, rax
jnz short loc_F9720
jmp short loc_F974E
loc_F974B:
mov r12, rdi
loc_F974E:
mov rax, r12
mov rdx, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| _QWORD * google::protobuf::internal::SerialArena::Free<google::protobuf::internal::GetDeallocator>(
long long a1,
void ( *a2)(_QWORD *, long long),
_QWORD *a3)
{
_QWORD *v3; // rdi
_QWORD *v4; // rax
long long v5; // rbx
_QWORD *v7; // r12
v3 = *(_QWORD **)(a1 + 8);
v4 = (_QWORD *)*v3;
v5 = v3[1];
if ( !*v3 )
return v3;
do
{
v7 = v4;
if ( a2 )
a2(v3, v5);
else
operator delete(v3);
*a3 += v5;
v4 = (_QWORD *)*v7;
v5 = v7[1];
v3 = v7;
}
while ( *v7 );
return v7;
}
| Free<google::protobuf::internal::GetDeallocator>:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RDI,qword ptr [RDI + 0x8]
MOV RAX,qword ptr [RDI]
MOV RBX,qword ptr [RDI + 0x8]
TEST RAX,RAX
JZ 0x001f974b
MOV R14,RDX
MOV R15,RSI
LAB_001f9720:
MOV R12,RAX
TEST R15,R15
JZ 0x001f9730
MOV RSI,RBX
CALL R15
JMP 0x001f9735
LAB_001f9730:
CALL 0x0011f4a0
LAB_001f9735:
ADD qword ptr [R14],RBX
MOV RAX,qword ptr [R12]
MOV RBX,qword ptr [R12 + 0x8]
MOV RDI,R12
TEST RAX,RAX
JNZ 0x001f9720
JMP 0x001f974e
LAB_001f974b:
MOV R12,RDI
LAB_001f974e:
MOV RAX,R12
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* google::protobuf::internal::SerialArena::Memory
google::protobuf::internal::SerialArena::Free<google::protobuf::internal::GetDeallocator>(google::protobuf::internal::GetDeallocator)
*/
int1 [16]
google::protobuf::internal::SerialArena::Free<google::protobuf::internal::GetDeallocator>
(long param_1,code *param_2,long *param_3)
{
int8 *puVar1;
long lVar2;
int8 *puVar3;
int1 auVar4 [16];
puVar1 = *(int8 **)(param_1 + 8);
lVar2 = puVar1[1];
for (puVar3 = (int8 *)*puVar1; puVar3 != (int8 *)0x0; puVar3 = (int8 *)*puVar3)
{
if (param_2 == (code *)0x0) {
operator_delete(puVar1);
}
else {
(*param_2)(puVar1,lVar2);
}
*param_3 = *param_3 + lVar2;
lVar2 = puVar3[1];
puVar1 = puVar3;
}
auVar4._8_8_ = lVar2;
auVar4._0_8_ = puVar1;
return auVar4;
}
| |
41,093 | lunasvg::SVGMarkerElement::renderMarker(lunasvg::SVGRenderState&, lunasvg::Point const&, float, float) const | dmazzella[P]pylunasvg/lunasvg/source/svgelement.cpp | void SVGMarkerElement::renderMarker(SVGRenderState& state, const Point& origin, float angle, float strokeWidth) const
{
if(state.hasCycleReference(this))
return;
SVGBlendInfo blendInfo(this);
SVGRenderState newState(this, state, markerTransform(origin, angle, strokeWidth));
newState.beginGroup(blendInfo);
if(isOverflowHidden())
newState->clipRect(getClipRect(markerSize()), FillRule::NonZero, newState.currentTransform());
renderChildren(newState);
newState.endGroup(blendInfo);
} | O0 | cpp | lunasvg::SVGMarkerElement::renderMarker(lunasvg::SVGRenderState&, lunasvg::Point const&, float, float) const:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp # imm = 0x140
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movss %xmm0, -0x1c(%rbp)
movss %xmm1, -0x20(%rbp)
movq -0x8(%rbp), %rsi
movq %rsi, -0xc0(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4c970
testb $0x1, %al
jne 0x1c80b
jmp 0x1c810
jmp 0x1c9b5
movq -0xc0(%rbp), %rsi
leaq -0x38(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
callq 0x4c890
movq -0xc0(%rbp), %rsi
movq -0x10(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x18(%rbp), %rdx
movss -0x1c(%rbp), %xmm0
movss -0x20(%rbp), %xmm1
leaq -0x90(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq 0x1c5f0
movq -0xc0(%rbp), %rsi
movq -0xe0(%rbp), %rdx
movq -0xd8(%rbp), %rcx
leaq -0x78(%rbp), %rdi
movq %rdi, -0xd0(%rbp)
callq 0x20e00
movq -0xd0(%rbp), %rdi
movq -0xc8(%rbp), %rsi
callq 0x4c9d0
jmp 0x1c894
movq -0xc0(%rbp), %rdi
callq 0x20e90
movb %al, -0xe1(%rbp)
jmp 0x1c8a8
movb -0xe1(%rbp), %al
testb $0x1, %al
jne 0x1c8b7
jmp 0x1c98b
leaq -0x78(%rbp), %rdi
callq 0x20750
movq %rax, -0xf0(%rbp)
jmp 0x1c8c9
movq -0xc0(%rbp), %rdi
movq %rdi, %rax
addq $0x70, %rax
movq %rax, -0x108(%rbp)
callq 0x1c580
movaps %xmm0, -0x100(%rbp)
jmp 0x1c8ec
movq -0x108(%rbp), %rdi
movaps -0x100(%rbp), %xmm0
movlpd %xmm0, -0xb4(%rbp)
leaq -0xb4(%rbp), %rsi
callq 0x1a270
movaps %xmm1, -0x130(%rbp)
movaps %xmm0, -0x120(%rbp)
jmp 0x1c91e
movaps -0x130(%rbp), %xmm0
movaps -0x120(%rbp), %xmm1
movlpd %xmm1, -0xac(%rbp)
movlpd %xmm0, -0xa4(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x20eb0
movq %rax, -0x138(%rbp)
jmp 0x1c94e
movq -0x138(%rbp), %rcx
movq -0xf0(%rbp), %rdi
leaq -0xac(%rbp), %rsi
xorl %edx, %edx
callq 0x13ef0
jmp 0x1c96c
jmp 0x1c98b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0x78(%rbp), %rdi
callq 0xe810
jmp 0x1c9be
movq -0xc0(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x1a060
jmp 0x1c99d
leaq -0x78(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x4cae0
jmp 0x1c9ac
leaq -0x78(%rbp), %rdi
callq 0xe810
addq $0x140, %rsp # imm = 0x140
popq %rbp
retq
movq -0x98(%rbp), %rdi
callq 0xb6c0
nopw (%rax,%rax)
| _ZNK7lunasvg16SVGMarkerElement12renderMarkerERNS_14SVGRenderStateERKNS_5PointEff:
push rbp
mov rbp, rsp
sub rsp, 140h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
movss [rbp+var_1C], xmm0
movss [rbp+var_20], xmm1
mov rsi, [rbp+var_8]; lunasvg::SVGElement *
mov [rbp+var_C0], rsi
mov rdi, [rbp+var_10]; this
call _ZNK7lunasvg14SVGRenderState17hasCycleReferenceEPKNS_10SVGElementE; lunasvg::SVGRenderState::hasCycleReference(lunasvg::SVGElement const*)
test al, 1
jnz short loc_1C80B
jmp short loc_1C810
loc_1C80B:
jmp loc_1C9B5
loc_1C810:
mov rsi, [rbp+var_C0]; lunasvg::SVGElement *
lea rdi, [rbp+var_38]; this
mov [rbp+var_C8], rdi
call _ZN7lunasvg12SVGBlendInfoC2EPKNS_10SVGElementE; lunasvg::SVGBlendInfo::SVGBlendInfo(lunasvg::SVGElement const*)
mov rsi, [rbp+var_C0]; lunasvg::Point *
mov rax, [rbp+var_10]
mov [rbp+var_E0], rax
mov rdx, [rbp+var_18]
movss xmm0, [rbp+var_1C]; float
movss xmm1, [rbp+var_20]; float
lea rdi, [rbp+var_90]; this
mov [rbp+var_D8], rdi
call _ZNK7lunasvg16SVGMarkerElement15markerTransformERKNS_5PointEff; lunasvg::SVGMarkerElement::markerTransform(lunasvg::Point const&,float,float)
mov rsi, [rbp+var_C0]; lunasvg::SVGElement *
mov rdx, [rbp+var_E0]; lunasvg::SVGRenderState *
mov rcx, [rbp+var_D8]; lunasvg::Transform *
lea rdi, [rbp+var_78]; this
mov [rbp+var_D0], rdi
call _ZN7lunasvg14SVGRenderStateC2EPKNS_10SVGElementERKS0_RKNS_9TransformE; lunasvg::SVGRenderState::SVGRenderState(lunasvg::SVGElement const*,lunasvg::SVGRenderState const&,lunasvg::Transform const&)
mov rdi, [rbp+var_D0]; this
mov rsi, [rbp+var_C8]; lunasvg::SVGBlendInfo *
call _ZN7lunasvg14SVGRenderState10beginGroupERKNS_12SVGBlendInfoE; lunasvg::SVGRenderState::beginGroup(lunasvg::SVGBlendInfo const&)
jmp short $+2
loc_1C894:
mov rdi, [rbp+var_C0]; this
call _ZNK7lunasvg10SVGElement16isOverflowHiddenEv; lunasvg::SVGElement::isOverflowHidden(void)
mov [rbp+var_E1], al
jmp short $+2
loc_1C8A8:
mov al, [rbp+var_E1]
test al, 1
jnz short loc_1C8B7
jmp loc_1C98B
loc_1C8B7:
lea rdi, [rbp+var_78]
call _ZNK7lunasvg14SVGRenderStateptEv; lunasvg::SVGRenderState::operator->(void)
mov [rbp+var_F0], rax
jmp short $+2
loc_1C8C9:
mov rdi, [rbp+var_C0]; this
mov rax, rdi
add rax, 70h ; 'p'
mov [rbp+var_108], rax
call _ZNK7lunasvg16SVGMarkerElement10markerSizeEv; lunasvg::SVGMarkerElement::markerSize(void)
movaps [rbp+var_100], xmm0
jmp short $+2
loc_1C8EC:
mov rdi, [rbp+var_108]; this
movaps xmm0, [rbp+var_100]
movlpd [rbp+var_B4], xmm0
lea rsi, [rbp+var_B4]; lunasvg::Size *
call _ZNK7lunasvg15SVGFitToViewBox11getClipRectERKNS_4SizeE; lunasvg::SVGFitToViewBox::getClipRect(lunasvg::Size const&)
movaps [rbp+var_130], xmm1
movaps [rbp+var_120], xmm0
jmp short $+2
loc_1C91E:
movaps xmm0, [rbp+var_130]
movaps xmm1, [rbp+var_120]
movlpd [rbp+var_AC], xmm1
movlpd [rbp+var_A4], xmm0
lea rdi, [rbp+var_78]; this
call _ZNK7lunasvg14SVGRenderState16currentTransformEv; lunasvg::SVGRenderState::currentTransform(void)
mov [rbp+var_138], rax
jmp short $+2
loc_1C94E:
mov rcx, [rbp+var_138]
mov rdi, [rbp+var_F0]
lea rsi, [rbp+var_AC]
xor edx, edx
call _ZN7lunasvg6Canvas8clipRectERKNS_4RectENS_8FillRuleERKNS_9TransformE; lunasvg::Canvas::clipRect(lunasvg::Rect const&,lunasvg::FillRule,lunasvg::Transform const&)
jmp short $+2
loc_1C96C:
jmp short loc_1C98B
mov rcx, rax
mov eax, edx
mov [rbp+var_98], rcx
mov [rbp+var_9C], eax
lea rdi, [rbp+var_78]; this
call _ZN7lunasvg14SVGRenderStateD2Ev; lunasvg::SVGRenderState::~SVGRenderState()
jmp short loc_1C9BE
loc_1C98B:
mov rdi, [rbp+var_C0]; this
lea rsi, [rbp+var_78]; lunasvg::SVGRenderState *
call _ZNK7lunasvg10SVGElement14renderChildrenERNS_14SVGRenderStateE; lunasvg::SVGElement::renderChildren(lunasvg::SVGRenderState &)
jmp short $+2
loc_1C99D:
lea rdi, [rbp+var_78]; this
lea rsi, [rbp+var_38]; lunasvg::SVGBlendInfo *
call _ZN7lunasvg14SVGRenderState8endGroupERKNS_12SVGBlendInfoE; lunasvg::SVGRenderState::endGroup(lunasvg::SVGBlendInfo const&)
jmp short $+2
loc_1C9AC:
lea rdi, [rbp+var_78]; this
call _ZN7lunasvg14SVGRenderStateD2Ev; lunasvg::SVGRenderState::~SVGRenderState()
loc_1C9B5:
add rsp, 140h
pop rbp
retn
loc_1C9BE:
mov rdi, [rbp+var_98]
call __Unwind_Resume
| void lunasvg::SVGMarkerElement::renderMarker(
lunasvg::SVGMarkerElement *this,
lunasvg::SVGRenderState *a2,
const lunasvg::Point *a3,
float a4,
float a5)
{
float v5; // xmm0_4
double v6; // xmm1_8
lunasvg::Transform *v7; // [rsp+8h] [rbp-138h]
long long v8; // [rsp+50h] [rbp-F0h]
const lunasvg::SVGRenderState *v9; // [rsp+60h] [rbp-E0h]
double v10; // [rsp+8Ch] [rbp-B4h] BYREF
_QWORD v11[2]; // [rsp+94h] [rbp-ACh] BYREF
_BYTE v12[24]; // [rsp+B0h] [rbp-90h] BYREF
_BYTE v13[64]; // [rsp+C8h] [rbp-78h] BYREF
_BYTE v14[24]; // [rsp+108h] [rbp-38h] BYREF
unsigned int v15; // [rsp+120h] [rbp-20h]
float v16; // [rsp+124h] [rbp-1Ch]
float *v17; // [rsp+128h] [rbp-18h]
lunasvg::SVGRenderState *v18; // [rsp+130h] [rbp-10h]
lunasvg::SVGElement *v19; // [rsp+138h] [rbp-8h]
v19 = this;
v18 = a2;
v17 = (float *)a3;
v16 = a4;
v15 = LODWORD(a5);
if ( (lunasvg::SVGRenderState::hasCycleReference(a2, this) & 1) == 0 )
{
lunasvg::SVGBlendInfo::SVGBlendInfo((lunasvg::SVGBlendInfo *)v14, this);
v9 = v18;
v5 = v16;
*(_QWORD *)&v6 = v15;
lunasvg::SVGMarkerElement::markerTransform((lunasvg::SVGMarkerElement *)v12, this, v16, *(float *)&v15, v17);
lunasvg::SVGRenderState::SVGRenderState((lunasvg::SVGRenderState *)v13, this, v9, (const lunasvg::Transform *)v12);
lunasvg::SVGRenderState::beginGroup((lunasvg::SVGRenderState *)v13, (const lunasvg::SVGBlendInfo *)v14);
if ( (lunasvg::SVGElement::isOverflowHidden(this) & 1) != 0 )
{
v8 = lunasvg::SVGRenderState::operator->(v13);
v10 = lunasvg::SVGMarkerElement::markerSize(this, v5);
v11[0] = lunasvg::SVGFitToViewBox::getClipRect(
(lunasvg::SVGMarkerElement *)((char *)this + 112),
(const lunasvg::Size *)&v10,
v10,
v6);
*(double *)&v11[1] = v6;
v7 = (lunasvg::Transform *)lunasvg::SVGRenderState::currentTransform((lunasvg::SVGRenderState *)v13);
lunasvg::Canvas::clipRect(v8, (float *)v11, 0, v7);
}
lunasvg::SVGElement::renderChildren(this, (lunasvg::SVGRenderState *)v13);
lunasvg::SVGRenderState::endGroup((lunasvg::SVGRenderState *)v13, (const lunasvg::SVGBlendInfo *)v14);
lunasvg::SVGRenderState::~SVGRenderState((lunasvg::SVGRenderState *)v13);
}
}
| renderMarker:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x140
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOVSS dword ptr [RBP + -0x1c],XMM0
MOVSS dword ptr [RBP + -0x20],XMM1
MOV RSI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0xc0],RSI
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0014c970
TEST AL,0x1
JNZ 0x0011c80b
JMP 0x0011c810
LAB_0011c80b:
JMP 0x0011c9b5
LAB_0011c810:
MOV RSI,qword ptr [RBP + -0xc0]
LEA RDI,[RBP + -0x38]
MOV qword ptr [RBP + -0xc8],RDI
CALL 0x0014c890
MOV RSI,qword ptr [RBP + -0xc0]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0xe0],RAX
MOV RDX,qword ptr [RBP + -0x18]
MOVSS XMM0,dword ptr [RBP + -0x1c]
MOVSS XMM1,dword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x90]
MOV qword ptr [RBP + -0xd8],RDI
CALL 0x0011c5f0
MOV RSI,qword ptr [RBP + -0xc0]
MOV RDX,qword ptr [RBP + -0xe0]
MOV RCX,qword ptr [RBP + -0xd8]
LEA RDI,[RBP + -0x78]
MOV qword ptr [RBP + -0xd0],RDI
CALL 0x00120e00
MOV RDI,qword ptr [RBP + -0xd0]
MOV RSI,qword ptr [RBP + -0xc8]
LAB_0011c88d:
CALL 0x0014c9d0
JMP 0x0011c894
LAB_0011c894:
MOV RDI,qword ptr [RBP + -0xc0]
CALL 0x00120e90
MOV byte ptr [RBP + -0xe1],AL
JMP 0x0011c8a8
LAB_0011c8a8:
MOV AL,byte ptr [RBP + -0xe1]
TEST AL,0x1
JNZ 0x0011c8b7
JMP 0x0011c98b
LAB_0011c8b7:
LEA RDI,[RBP + -0x78]
CALL 0x00120750
MOV qword ptr [RBP + -0xf0],RAX
JMP 0x0011c8c9
LAB_0011c8c9:
MOV RDI,qword ptr [RBP + -0xc0]
MOV RAX,RDI
ADD RAX,0x70
MOV qword ptr [RBP + -0x108],RAX
CALL 0x0011c580
MOVAPS xmmword ptr [RBP + -0x100],XMM0
JMP 0x0011c8ec
LAB_0011c8ec:
MOV RDI,qword ptr [RBP + -0x108]
MOVAPS XMM0,xmmword ptr [RBP + -0x100]
MOVLPD qword ptr [RBP + -0xb4],XMM0
LEA RSI,[RBP + -0xb4]
CALL 0x0011a270
MOVAPS xmmword ptr [RBP + -0x130],XMM1
MOVAPS xmmword ptr [RBP + -0x120],XMM0
JMP 0x0011c91e
LAB_0011c91e:
MOVAPS XMM0,xmmword ptr [RBP + -0x130]
MOVAPS XMM1,xmmword ptr [RBP + -0x120]
MOVLPD qword ptr [RBP + -0xac],XMM1
MOVLPD qword ptr [RBP + -0xa4],XMM0
LEA RDI,[RBP + -0x78]
CALL 0x00120eb0
MOV qword ptr [RBP + -0x138],RAX
JMP 0x0011c94e
LAB_0011c94e:
MOV RCX,qword ptr [RBP + -0x138]
MOV RDI,qword ptr [RBP + -0xf0]
LEA RSI,[RBP + -0xac]
XOR EDX,EDX
CALL 0x00113ef0
JMP 0x0011c96c
LAB_0011c96c:
JMP 0x0011c98b
LAB_0011c98b:
MOV RDI,qword ptr [RBP + -0xc0]
LEA RSI,[RBP + -0x78]
CALL 0x0011a060
JMP 0x0011c99d
LAB_0011c99d:
LEA RDI,[RBP + -0x78]
LEA RSI,[RBP + -0x38]
CALL 0x0014cae0
LAB_0011c9aa:
JMP 0x0011c9ac
LAB_0011c9ac:
LEA RDI,[RBP + -0x78]
CALL 0x0010e810
LAB_0011c9b5:
ADD RSP,0x140
POP RBP
RET
|
/* lunasvg::SVGMarkerElement::renderMarker(lunasvg::SVGRenderState&, lunasvg::Point const&, float,
float) const */
void __thiscall
lunasvg::SVGMarkerElement::renderMarker
(SVGMarkerElement *this,SVGRenderState *param_1,Point *param_2,float param_3,float param_4
)
{
SVGRenderState *pSVar1;
byte bVar2;
ulong uVar3;
Canvas *pCVar4;
int8 uVar5;
float fVar6;
int4 uVar7;
int8 local_b4;
int8 local_ac;
Point local_98 [24];
SVGRenderState local_80 [64];
SVGBlendInfo local_40 [24];
float local_28;
float local_24;
Point *local_20;
SVGRenderState *local_18;
SVGMarkerElement *local_10;
local_28 = param_4;
local_24 = param_3;
local_20 = param_2;
local_18 = param_1;
local_10 = this;
uVar3 = SVGRenderState::hasCycleReference(param_1,(SVGElement *)this);
if ((uVar3 & 1) == 0) {
SVGBlendInfo::SVGBlendInfo(local_40,(SVGElement *)this);
pSVar1 = local_18;
uVar7 = 0;
fVar6 = local_28;
markerTransform(local_98,local_24,local_28);
SVGRenderState::SVGRenderState(local_80,(SVGElement *)this,pSVar1,(Transform *)local_98);
/* try { // try from 0011c88d to 0011c9a9 has its CatchHandler @ 0011c96e */
SVGRenderState::beginGroup((SVGBlendInfo *)local_80);
bVar2 = SVGElement::isOverflowHidden((SVGElement *)this);
if ((bVar2 & 1) != 0) {
pCVar4 = (Canvas *)SVGRenderState::operator->(local_80);
markerSize(this);
local_b4 = SVGFitToViewBox::getClipRect((Size *)(this + 0x70));
local_ac = CONCAT44(uVar7,fVar6);
uVar5 = SVGRenderState::currentTransform(local_80);
Canvas::clipRect(pCVar4,&local_b4,0,uVar5);
}
SVGElement::renderChildren((SVGElement *)this,local_80);
SVGRenderState::endGroup(local_80,local_40);
SVGRenderState::~SVGRenderState(local_80);
}
return;
}
| |
41,094 | lunasvg::SVGMarkerElement::renderMarker(lunasvg::SVGRenderState&, lunasvg::Point const&, float, float) const | dmazzella[P]pylunasvg/lunasvg/source/svgelement.cpp | void SVGMarkerElement::renderMarker(SVGRenderState& state, const Point& origin, float angle, float strokeWidth) const
{
if(state.hasCycleReference(this))
return;
SVGBlendInfo blendInfo(this);
SVGRenderState newState(this, state, markerTransform(origin, angle, strokeWidth));
newState.beginGroup(blendInfo);
if(isOverflowHidden())
newState->clipRect(getClipRect(markerSize()), FillRule::NonZero, newState.currentTransform());
renderChildren(newState);
newState.endGroup(blendInfo);
} | O1 | cpp | lunasvg::SVGMarkerElement::renderMarker(lunasvg::SVGRenderState&, lunasvg::Point const&, float, float) const:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb0, %rsp
movss %xmm1, 0x10(%rsp)
movss %xmm0, 0xc(%rsp)
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
movq %rbx, %rsi
callq 0x20d76
testb %al, %al
jne 0x11fc3
leaq 0x88(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x20d18
leaq 0x30(%rsp), %r13
movq %r13, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movss 0xc(%rsp), %xmm0
movss 0x10(%rsp), %xmm1
callq 0x11cc2
leaq 0x48(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0x12e20
movq %r15, %rdi
movq %r12, %rsi
callq 0x20d8e
cmpb $0x1, 0x41(%rbx)
jne 0x11f92
movq 0x78(%rsp), %r14
leaq 0x30(%rsp), %rdi
movq %rbx, (%rdi)
movb $0x0, 0x8(%rdi)
leaq 0xe4(%rbx), %rsi
movzbl 0xe1(%rbx), %edx
callq 0x1f7ea
movaps %xmm0, 0x10(%rsp)
leaq 0xfc(%rbx), %rsi
movzbl 0xf9(%rbx), %edx
leaq 0x30(%rsp), %rdi
callq 0x1f7ea
movaps 0x10(%rsp), %xmm1
unpcklps %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
leaq 0x70(%rbx), %rdi
leaq 0x28(%rsp), %rsi
movlps %xmm1, (%rsi)
callq 0x10170
movlhps %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0]
leaq 0xa0(%rsp), %rsi
movups %xmm0, (%rsi)
leaq 0x58(%rsp), %rcx
movq %r14, %rdi
xorl %edx, %edx
callq 0xde34
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0xffc0
leaq 0x48(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x20eba
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x11fc3
callq 0xc49a
addq $0xb0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x11fd6
movq %rax, %rbx
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x11feb
callq 0xc49a
movq %rbx, %rdi
callq 0xa5c0
nop
| _ZNK7lunasvg16SVGMarkerElement12renderMarkerERNS_14SVGRenderStateERKNS_5PointEff:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B0h
movss dword ptr [rsp+0D8h+var_C8], xmm1
movss [rsp+0D8h+var_CC], xmm0
mov r15, rdx
mov r14, rsi
mov rbx, rdi
mov rdi, rsi; this
mov rsi, rbx; lunasvg::SVGElement *
call _ZNK7lunasvg14SVGRenderState17hasCycleReferenceEPKNS_10SVGElementE; lunasvg::SVGRenderState::hasCycleReference(lunasvg::SVGElement const*)
test al, al
jnz loc_11FC3
lea r12, [rsp+0D8h+var_50]
mov rdi, r12; this
mov rsi, rbx; lunasvg::SVGElement *
call _ZN7lunasvg12SVGBlendInfoC2EPKNS_10SVGElementE; lunasvg::SVGBlendInfo::SVGBlendInfo(lunasvg::SVGElement const*)
lea r13, [rsp+0D8h+var_A8]
mov rdi, r13
mov rsi, rbx
mov rdx, r15
movss xmm0, [rsp+0D8h+var_CC]
movss xmm1, dword ptr [rsp+0D8h+var_C8]
call _ZNK7lunasvg16SVGMarkerElement15markerTransformERKNS_5PointEff; lunasvg::SVGMarkerElement::markerTransform(lunasvg::Point const&,float,float)
lea r15, [rsp+0D8h+var_90]
mov rdi, r15; this
mov rsi, rbx; lunasvg::SVGElement *
mov rdx, r14; lunasvg::SVGRenderState *
mov rcx, r13; lunasvg::Transform *
call _ZN7lunasvg14SVGRenderStateC2EPKNS_10SVGElementERKS0_RKNS_9TransformE; lunasvg::SVGRenderState::SVGRenderState(lunasvg::SVGElement const*,lunasvg::SVGRenderState const&,lunasvg::Transform const&)
mov rdi, r15; this
mov rsi, r12; lunasvg::SVGBlendInfo *
call _ZN7lunasvg14SVGRenderState10beginGroupERKNS_12SVGBlendInfoE; lunasvg::SVGRenderState::beginGroup(lunasvg::SVGBlendInfo const&)
cmp byte ptr [rbx+41h], 1
jnz short loc_11F92
mov r14, [rsp+0D8h+var_60]
lea rdi, [rsp+0D8h+var_A8]
mov [rdi], rbx
mov byte ptr [rdi+8], 0
lea rsi, [rbx+0E4h]
movzx edx, byte ptr [rbx+0E1h]
call _ZNK7lunasvg13LengthContext14valueForLengthERKNS_6LengthENS_15LengthDirectionE; lunasvg::LengthContext::valueForLength(lunasvg::Length const&,lunasvg::LengthDirection)
movaps [rsp+0D8h+var_C8], xmm0
lea rsi, [rbx+0FCh]
movzx edx, byte ptr [rbx+0F9h]
lea rdi, [rsp+0D8h+var_A8]
call _ZNK7lunasvg13LengthContext14valueForLengthERKNS_6LengthENS_15LengthDirectionE; lunasvg::LengthContext::valueForLength(lunasvg::Length const&,lunasvg::LengthDirection)
movaps xmm1, [rsp+0D8h+var_C8]
unpcklps xmm1, xmm0
lea rdi, [rbx+70h]
lea rsi, [rsp+0D8h+var_B0]
movlps qword ptr [rsi], xmm1
call _ZNK7lunasvg15SVGFitToViewBox11getClipRectERKNS_4SizeE; lunasvg::SVGFitToViewBox::getClipRect(lunasvg::Size const&)
movlhps xmm0, xmm1
lea rsi, [rsp+0D8h+var_38]
movups xmmword ptr [rsi], xmm0
lea rcx, [rsp+0D8h+var_80]
mov rdi, r14
xor edx, edx
call _ZN7lunasvg6Canvas8clipRectERKNS_4RectENS_8FillRuleERKNS_9TransformE; lunasvg::Canvas::clipRect(lunasvg::Rect const&,lunasvg::FillRule,lunasvg::Transform const&)
loc_11F92:
lea rsi, [rsp+0D8h+var_90]
mov rdi, rbx
call _ZNK7lunasvg10SVGElement14renderChildrenERNS_14SVGRenderStateE; lunasvg::SVGElement::renderChildren(lunasvg::SVGRenderState &)
lea rdi, [rsp+0D8h+var_90]; this
lea rsi, [rsp+0D8h+var_50]; lunasvg::SVGBlendInfo *
call _ZN7lunasvg14SVGRenderState8endGroupERKNS_12SVGBlendInfoE; lunasvg::SVGRenderState::endGroup(lunasvg::SVGBlendInfo const&)
mov rdi, [rsp+0D8h+var_58]
test rdi, rdi
jz short loc_11FC3
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_11FC3:
add rsp, 0B0h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
jmp short $+2
loc_11FD6:
mov rbx, rax
mov rdi, [rsp+arg_78]
test rdi, rdi
jz short loc_11FEB
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_11FEB:
mov rdi, rbx
call __Unwind_Resume
| long long lunasvg::SVGMarkerElement::renderMarker(
lunasvg::SVGElement *a1,
lunasvg::SVGRenderState *a2,
float *a3,
__m128 a4,
float a5)
{
long long result; // rax
long long v8; // r14
__m128 v9; // xmm1
__m128 v10; // [rsp+10h] [rbp-C8h]
double v11; // [rsp+28h] [rbp-B0h] BYREF
lunasvg::SVGElement *v12; // [rsp+30h] [rbp-A8h] BYREF
char v13; // [rsp+38h] [rbp-A0h]
_BYTE v14[16]; // [rsp+48h] [rbp-90h] BYREF
_BYTE v15[32]; // [rsp+58h] [rbp-80h] BYREF
long long v16; // [rsp+78h] [rbp-60h]
volatile signed __int32 *v17; // [rsp+80h] [rbp-58h]
_BYTE v18[24]; // [rsp+88h] [rbp-50h] BYREF
__m128 v19[3]; // [rsp+A0h] [rbp-38h] BYREF
result = lunasvg::SVGRenderState::hasCycleReference(a2, a1);
if ( !(_BYTE)result )
{
lunasvg::SVGBlendInfo::SVGBlendInfo((lunasvg::SVGBlendInfo *)v18, a1);
a4 = (__m128)a4.m128_u32[0];
lunasvg::SVGMarkerElement::markerTransform((long long)&v12, (long long)a1, a3, (__m128)a4.m128_u32[0], a5);
lunasvg::SVGRenderState::SVGRenderState((lunasvg::SVGRenderState *)v14, a1, a2, (const lunasvg::Transform *)&v12);
lunasvg::SVGRenderState::beginGroup((lunasvg::SVGRenderState *)v14, (const lunasvg::SVGBlendInfo *)v18);
if ( *((_BYTE *)a1 + 65) == 1 )
{
v8 = v16;
v12 = a1;
v13 = 0;
*(double *)a4.m128_u64 = lunasvg::LengthContext::valueForLength(
&v12,
(char *)a1 + 228,
*((unsigned __int8 *)a1 + 225));
v10 = a4;
*(double *)a4.m128_u64 = lunasvg::LengthContext::valueForLength(
&v12,
(char *)a1 + 252,
*((unsigned __int8 *)a1 + 249));
v9 = _mm_unpacklo_ps(v10, a4);
_mm_storel_ps(&v11, v9);
*(double *)a4.m128_u64 = lunasvg::SVGFitToViewBox::getClipRect((long long)a1 + 112, (float *)&v11);
v19[0] = _mm_movelh_ps(a4, v9);
lunasvg::Canvas::clipRect(v8, v19[0].m128_f32, 0, (long long)v15);
}
lunasvg::SVGElement::renderChildren(a1, (lunasvg::SVGRenderState *)v14);
result = lunasvg::SVGRenderState::endGroup((lunasvg::SVGRenderState *)v14, (const lunasvg::SVGBlendInfo *)v18);
if ( v17 )
return std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v17);
}
return result;
}
| renderMarker:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb0
MOVSS dword ptr [RSP + 0x10],XMM1
MOVSS dword ptr [RSP + 0xc],XMM0
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSI
MOV RSI,RBX
CALL 0x00120d76
TEST AL,AL
JNZ 0x00111fc3
LEA R12,[RSP + 0x88]
MOV RDI,R12
MOV RSI,RBX
CALL 0x00120d18
LEA R13,[RSP + 0x30]
MOV RDI,R13
MOV RSI,RBX
MOV RDX,R15
MOVSS XMM0,dword ptr [RSP + 0xc]
MOVSS XMM1,dword ptr [RSP + 0x10]
CALL 0x00111cc2
LEA R15,[RSP + 0x48]
MOV RDI,R15
MOV RSI,RBX
MOV RDX,R14
MOV RCX,R13
CALL 0x00112e20
LAB_00111f0a:
MOV RDI,R15
MOV RSI,R12
CALL 0x00120d8e
CMP byte ptr [RBX + 0x41],0x1
JNZ 0x00111f92
MOV R14,qword ptr [RSP + 0x78]
LEA RDI,[RSP + 0x30]
MOV qword ptr [RDI],RBX
MOV byte ptr [RDI + 0x8],0x0
LEA RSI,[RBX + 0xe4]
MOVZX EDX,byte ptr [RBX + 0xe1]
LAB_00111f3a:
CALL 0x0011f7ea
MOVAPS xmmword ptr [RSP + 0x10],XMM0
LEA RSI,[RBX + 0xfc]
MOVZX EDX,byte ptr [RBX + 0xf9]
LEA RDI,[RSP + 0x30]
CALL 0x0011f7ea
MOVAPS XMM1,xmmword ptr [RSP + 0x10]
UNPCKLPS XMM1,XMM0
LEA RDI,[RBX + 0x70]
LEA RSI,[RSP + 0x28]
MOVLPS qword ptr [RSI],XMM1
CALL 0x00110170
MOVLHPS XMM0,XMM1
LEA RSI,[RSP + 0xa0]
MOVUPS xmmword ptr [RSI],XMM0
LEA RCX,[RSP + 0x58]
MOV RDI,R14
XOR EDX,EDX
CALL 0x0010de34
LAB_00111f92:
LEA RSI,[RSP + 0x48]
MOV RDI,RBX
CALL 0x0010ffc0
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x88]
CALL 0x00120eba
LAB_00111fb1:
MOV RDI,qword ptr [RSP + 0x80]
TEST RDI,RDI
JZ 0x00111fc3
CALL 0x0010c49a
LAB_00111fc3:
ADD RSP,0xb0
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* lunasvg::SVGMarkerElement::renderMarker(lunasvg::SVGRenderState&, lunasvg::Point const&, float,
float) const */
void lunasvg::SVGMarkerElement::renderMarker
(SVGRenderState *param_1,Point *param_2,float param_3,float param_4)
{
char cVar1;
int4 uVar2;
int4 uVar3;
int8 local_b0;
SVGRenderState *local_a8;
int1 local_a0;
SVGRenderState local_90 [16];
int1 local_80 [32];
Canvas *local_60;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_58;
SVGBlendInfo local_50 [24];
int8 local_38;
int4 uStack_30;
int4 uStack_2c;
cVar1 = SVGRenderState::hasCycleReference((SVGRenderState *)param_2,(SVGElement *)param_1);
if (cVar1 == '\0') {
SVGBlendInfo::SVGBlendInfo(local_50,(SVGElement *)param_1);
markerTransform((Point *)&local_a8,param_3,param_4);
SVGRenderState::SVGRenderState
(local_90,(SVGElement *)param_1,(SVGRenderState *)param_2,(Transform *)&local_a8);
/* try { // try from 00111f0a to 00111f14 has its CatchHandler @ 00111fd6 */
SVGRenderState::beginGroup((SVGBlendInfo *)local_90);
if (param_1[0x41] == (SVGRenderState)0x1) {
local_a0 = 0;
local_a8 = param_1;
/* try { // try from 00111f3a to 00111f91 has its CatchHandler @ 00111fd4 */
uVar2 = LengthContext::valueForLength((LengthContext *)&local_a8,param_1 + 0xe4,param_1[0xe1])
;
uVar3 = LengthContext::valueForLength((LengthContext *)&local_a8,param_1 + 0xfc,param_1[0xf9])
;
local_b0 = CONCAT44(uVar3,uVar2);
local_38 = SVGFitToViewBox::getClipRect((SVGFitToViewBox *)(param_1 + 0x70),(Size *)&local_b0)
;
uStack_30 = uVar2;
uStack_2c = uVar3;
Canvas::clipRect(local_60,&local_38,0,local_80);
}
/* try { // try from 00111f92 to 00111fb0 has its CatchHandler @ 00111fd6 */
SVGElement::renderChildren((SVGElement *)param_1,local_90);
SVGRenderState::endGroup(local_90,local_50);
if (local_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_58);
}
}
return;
}
| |
41,095 | lunasvg::SVGMarkerElement::renderMarker(lunasvg::SVGRenderState&, lunasvg::Point const&, float, float) const | dmazzella[P]pylunasvg/lunasvg/source/svgelement.cpp | void SVGMarkerElement::renderMarker(SVGRenderState& state, const Point& origin, float angle, float strokeWidth) const
{
if(state.hasCycleReference(this))
return;
SVGBlendInfo blendInfo(this);
SVGRenderState newState(this, state, markerTransform(origin, angle, strokeWidth));
newState.beginGroup(blendInfo);
if(isOverflowHidden())
newState->clipRect(getClipRect(markerSize()), FillRule::NonZero, newState.currentTransform());
renderChildren(newState);
newState.endGroup(blendInfo);
} | O3 | cpp | lunasvg::SVGMarkerElement::renderMarker(lunasvg::SVGRenderState&, lunasvg::Point const&, float, float) const:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb0, %rsp
movss %xmm1, 0x10(%rsp)
movss %xmm0, 0xc(%rsp)
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
movq %rbx, %rsi
callq 0x20cbe
testb %al, %al
jne 0x11c37
leaq 0x88(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x20c68
leaq 0x30(%rsp), %r13
movq %r13, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movss 0xc(%rsp), %xmm0
movss 0x10(%rsp), %xmm1
callq 0x11902
leaq 0x48(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0x129ce
movq %r15, %rdi
movq %r12, %rsi
callq 0x20cd6
cmpb $0x1, 0x41(%rbx)
jne 0x11c06
movq 0x78(%rsp), %r14
leaq 0x30(%rsp), %rdi
movq %rbx, (%rdi)
movb $0x0, 0x8(%rdi)
leaq 0xe4(%rbx), %rsi
movzbl 0xe1(%rbx), %edx
callq 0x1f696
movaps %xmm0, 0x10(%rsp)
leaq 0xfc(%rbx), %rsi
movzbl 0xf9(%rbx), %edx
leaq 0x30(%rsp), %rdi
callq 0x1f696
movaps 0x10(%rsp), %xmm3
movaps %xmm3, %xmm1
unpcklps %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movlps %xmm1, 0x28(%rsp)
xorps %xmm2, %xmm2
ucomiss 0x84(%rbx), %xmm2
jae 0x11be6
ucomiss 0x88(%rbx), %xmm2
jae 0x11be6
ucomiss %xmm3, %xmm2
jae 0x11be6
ucomiss %xmm0, %xmm2
jae 0x11be6
leaq 0x7c(%rbx), %rsi
leaq 0x90(%rbx), %rdi
leaq 0x28(%rsp), %rdx
callq 0x200ba
jmp 0x11be9
xorps %xmm0, %xmm0
movlhps %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0]
leaq 0xa0(%rsp), %rsi
movups %xmm0, (%rsi)
leaq 0x58(%rsp), %rcx
movq %r14, %rdi
xorl %edx, %edx
callq 0xdd04
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0xfd62
leaq 0x48(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x20dea
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x11c37
callq 0xc37c
addq $0xb0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x11c4a
movq %rax, %rbx
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x11c5f
callq 0xc37c
movq %rbx, %rdi
callq 0xa580
nop
| _ZNK7lunasvg16SVGMarkerElement12renderMarkerERNS_14SVGRenderStateERKNS_5PointEff:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B0h
movss dword ptr [rsp+0D8h+var_C8], xmm1
movss [rsp+0D8h+var_CC], xmm0
mov r15, rdx
mov r14, rsi
mov rbx, rdi
mov rdi, rsi; this
mov rsi, rbx; lunasvg::SVGElement *
call _ZNK7lunasvg14SVGRenderState17hasCycleReferenceEPKNS_10SVGElementE; lunasvg::SVGRenderState::hasCycleReference(lunasvg::SVGElement const*)
test al, al
jnz loc_11C37
lea r12, [rsp+0D8h+var_50]
mov rdi, r12; this
mov rsi, rbx; lunasvg::SVGElement *
call _ZN7lunasvg12SVGBlendInfoC2EPKNS_10SVGElementE; lunasvg::SVGBlendInfo::SVGBlendInfo(lunasvg::SVGElement const*)
lea r13, [rsp+0D8h+var_A8]
mov rdi, r13
mov rsi, rbx
mov rdx, r15
movss xmm0, [rsp+0D8h+var_CC]
movss xmm1, dword ptr [rsp+0D8h+var_C8]
call _ZNK7lunasvg16SVGMarkerElement15markerTransformERKNS_5PointEff; lunasvg::SVGMarkerElement::markerTransform(lunasvg::Point const&,float,float)
lea r15, [rsp+0D8h+var_90]
mov rdi, r15; this
mov rsi, rbx; lunasvg::SVGElement *
mov rdx, r14; lunasvg::SVGRenderState *
mov rcx, r13; lunasvg::Transform *
call _ZN7lunasvg14SVGRenderStateC2EPKNS_10SVGElementERKS0_RKNS_9TransformE; lunasvg::SVGRenderState::SVGRenderState(lunasvg::SVGElement const*,lunasvg::SVGRenderState const&,lunasvg::Transform const&)
mov rdi, r15; this
mov rsi, r12; lunasvg::SVGBlendInfo *
call _ZN7lunasvg14SVGRenderState10beginGroupERKNS_12SVGBlendInfoE; lunasvg::SVGRenderState::beginGroup(lunasvg::SVGBlendInfo const&)
cmp byte ptr [rbx+41h], 1
jnz loc_11C06
mov r14, [rsp+0D8h+var_60]
lea rdi, [rsp+0D8h+var_A8]
mov [rdi], rbx
mov byte ptr [rdi+8], 0
lea rsi, [rbx+0E4h]
movzx edx, byte ptr [rbx+0E1h]
call _ZNK7lunasvg13LengthContext14valueForLengthERKNS_6LengthENS_15LengthDirectionE; lunasvg::LengthContext::valueForLength(lunasvg::Length const&,lunasvg::LengthDirection)
movaps [rsp+0D8h+var_C8], xmm0
lea rsi, [rbx+0FCh]
movzx edx, byte ptr [rbx+0F9h]
lea rdi, [rsp+0D8h+var_A8]
call _ZNK7lunasvg13LengthContext14valueForLengthERKNS_6LengthENS_15LengthDirectionE; lunasvg::LengthContext::valueForLength(lunasvg::Length const&,lunasvg::LengthDirection)
movaps xmm3, [rsp+0D8h+var_C8]
movaps xmm1, xmm3
unpcklps xmm1, xmm0
movlps [rsp+0D8h+var_B0], xmm1
xorps xmm2, xmm2
ucomiss xmm2, dword ptr [rbx+84h]
jnb short loc_11BE6
ucomiss xmm2, dword ptr [rbx+88h]
jnb short loc_11BE6
ucomiss xmm2, xmm3
jnb short loc_11BE6
ucomiss xmm2, xmm0
jnb short loc_11BE6
lea rsi, [rbx+7Ch]
lea rdi, [rbx+90h]
lea rdx, [rsp+0D8h+var_B0]
call _ZNK7lunasvg22SVGPreserveAspectRatio11getClipRectERKNS_4RectERKNS_4SizeE; lunasvg::SVGPreserveAspectRatio::getClipRect(lunasvg::Rect const&,lunasvg::Size const&)
jmp short loc_11BE9
loc_11BE6:
xorps xmm0, xmm0
loc_11BE9:
movlhps xmm0, xmm1
lea rsi, [rsp+0D8h+var_38]
movups xmmword ptr [rsi], xmm0
lea rcx, [rsp+0D8h+var_80]
mov rdi, r14
xor edx, edx
call _ZN7lunasvg6Canvas8clipRectERKNS_4RectENS_8FillRuleERKNS_9TransformE; lunasvg::Canvas::clipRect(lunasvg::Rect const&,lunasvg::FillRule,lunasvg::Transform const&)
loc_11C06:
lea rsi, [rsp+0D8h+var_90]
mov rdi, rbx
call _ZNK7lunasvg10SVGElement14renderChildrenERNS_14SVGRenderStateE; lunasvg::SVGElement::renderChildren(lunasvg::SVGRenderState &)
lea rdi, [rsp+0D8h+var_90]; this
lea rsi, [rsp+0D8h+var_50]; lunasvg::SVGBlendInfo *
call _ZN7lunasvg14SVGRenderState8endGroupERKNS_12SVGBlendInfoE; lunasvg::SVGRenderState::endGroup(lunasvg::SVGBlendInfo const&)
mov rdi, [rsp+0D8h+var_58]
test rdi, rdi
jz short loc_11C37
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_11C37:
add rsp, 0B0h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
jmp short $+2
loc_11C4A:
mov rbx, rax
mov rdi, [rsp+arg_78]
test rdi, rdi
jz short loc_11C5F
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_11C5F:
mov rdi, rbx
call __Unwind_Resume
| long long lunasvg::SVGMarkerElement::renderMarker(
lunasvg::SVGElement *a1,
lunasvg::SVGRenderState *a2,
float *a3,
__m128 a4,
float a5)
{
long long result; // rax
long long v8; // r14
__m128 v9; // xmm1
__m128 v10; // [rsp+10h] [rbp-C8h]
long long v11; // [rsp+28h] [rbp-B0h] BYREF
lunasvg::SVGElement *v12; // [rsp+30h] [rbp-A8h] BYREF
char v13; // [rsp+38h] [rbp-A0h]
_BYTE v14[16]; // [rsp+48h] [rbp-90h] BYREF
_BYTE v15[32]; // [rsp+58h] [rbp-80h] BYREF
long long v16; // [rsp+78h] [rbp-60h]
volatile signed __int32 *v17; // [rsp+80h] [rbp-58h]
_BYTE v18[24]; // [rsp+88h] [rbp-50h] BYREF
__m128 v19[3]; // [rsp+A0h] [rbp-38h] BYREF
result = lunasvg::SVGRenderState::hasCycleReference(a2, a1);
if ( !(_BYTE)result )
{
lunasvg::SVGBlendInfo::SVGBlendInfo((lunasvg::SVGBlendInfo *)v18, a1);
a4 = (__m128)a4.m128_u32[0];
lunasvg::SVGMarkerElement::markerTransform((long long)&v12, (long long)a1, a3, (__m128)a4.m128_u32[0], a5);
lunasvg::SVGRenderState::SVGRenderState((lunasvg::SVGRenderState *)v14, a1, a2, (const lunasvg::Transform *)&v12);
lunasvg::SVGRenderState::beginGroup((lunasvg::SVGRenderState *)v14, (const lunasvg::SVGBlendInfo *)v18);
if ( *((_BYTE *)a1 + 65) == 1 )
{
v8 = v16;
v12 = a1;
v13 = 0;
*(double *)a4.m128_u64 = lunasvg::LengthContext::valueForLength(
&v12,
(char *)a1 + 228,
*((unsigned __int8 *)a1 + 225));
v10 = a4;
*(double *)a4.m128_u64 = lunasvg::LengthContext::valueForLength(
&v12,
(char *)a1 + 252,
*((unsigned __int8 *)a1 + 249));
v9 = _mm_unpacklo_ps(v10, a4);
_mm_storel_ps((double *)&v11, v9);
if ( *((float *)a1 + 33) <= 0.0 || *((float *)a1 + 34) <= 0.0 || v10.m128_f32[0] <= 0.0 || a4.m128_f32[0] <= 0.0 )
a4 = 0LL;
else
lunasvg::SVGPreserveAspectRatio::getClipRect((char *)a1 + 144, (char *)a1 + 124, &v11);
v19[0] = _mm_movelh_ps(a4, v9);
lunasvg::Canvas::clipRect(v8, v19[0].m128_f32, 0, (long long)v15);
}
lunasvg::SVGElement::renderChildren(a1, (lunasvg::SVGRenderState *)v14);
result = lunasvg::SVGRenderState::endGroup((lunasvg::SVGRenderState *)v14, (const lunasvg::SVGBlendInfo *)v18);
if ( v17 )
return std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v17);
}
return result;
}
| renderMarker:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb0
MOVSS dword ptr [RSP + 0x10],XMM1
MOVSS dword ptr [RSP + 0xc],XMM0
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSI
MOV RSI,RBX
CALL 0x00120cbe
TEST AL,AL
JNZ 0x00111c37
LEA R12,[RSP + 0x88]
MOV RDI,R12
MOV RSI,RBX
CALL 0x00120c68
LEA R13,[RSP + 0x30]
MOV RDI,R13
MOV RSI,RBX
MOV RDX,R15
MOVSS XMM0,dword ptr [RSP + 0xc]
MOVSS XMM1,dword ptr [RSP + 0x10]
CALL 0x00111902
LEA R15,[RSP + 0x48]
MOV RDI,R15
MOV RSI,RBX
MOV RDX,R14
MOV RCX,R13
CALL 0x001129ce
LAB_00111b4a:
MOV RDI,R15
MOV RSI,R12
CALL 0x00120cd6
CMP byte ptr [RBX + 0x41],0x1
JNZ 0x00111c06
MOV R14,qword ptr [RSP + 0x78]
LEA RDI,[RSP + 0x30]
MOV qword ptr [RDI],RBX
MOV byte ptr [RDI + 0x8],0x0
LEA RSI,[RBX + 0xe4]
MOVZX EDX,byte ptr [RBX + 0xe1]
LAB_00111b7e:
CALL 0x0011f696
MOVAPS xmmword ptr [RSP + 0x10],XMM0
LEA RSI,[RBX + 0xfc]
MOVZX EDX,byte ptr [RBX + 0xf9]
LEA RDI,[RSP + 0x30]
CALL 0x0011f696
MOVAPS XMM3,xmmword ptr [RSP + 0x10]
MOVAPS XMM1,XMM3
UNPCKLPS XMM1,XMM0
MOVLPS qword ptr [RSP + 0x28],XMM1
XORPS XMM2,XMM2
UCOMISS XMM2,dword ptr [RBX + 0x84]
JNC 0x00111be6
UCOMISS XMM2,dword ptr [RBX + 0x88]
JNC 0x00111be6
UCOMISS XMM2,XMM3
JNC 0x00111be6
UCOMISS XMM2,XMM0
JNC 0x00111be6
LEA RSI,[RBX + 0x7c]
LEA RDI,[RBX + 0x90]
LEA RDX,[RSP + 0x28]
CALL 0x001200ba
JMP 0x00111be9
LAB_00111be6:
XORPS XMM0,XMM0
LAB_00111be9:
MOVLHPS XMM0,XMM1
LEA RSI,[RSP + 0xa0]
MOVUPS xmmword ptr [RSI],XMM0
LEA RCX,[RSP + 0x58]
MOV RDI,R14
XOR EDX,EDX
CALL 0x0010dd04
LAB_00111c06:
LEA RSI,[RSP + 0x48]
MOV RDI,RBX
CALL 0x0010fd62
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x88]
CALL 0x00120dea
LAB_00111c25:
MOV RDI,qword ptr [RSP + 0x80]
TEST RDI,RDI
JZ 0x00111c37
CALL 0x0010c37c
LAB_00111c37:
ADD RSP,0xb0
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* lunasvg::SVGMarkerElement::renderMarker(lunasvg::SVGRenderState&, lunasvg::Point const&, float,
float) const */
void lunasvg::SVGMarkerElement::renderMarker
(SVGRenderState *param_1,Point *param_2,float param_3,float param_4)
{
char cVar1;
float fVar2;
int8 local_b0;
SVGRenderState *local_a8;
int1 local_a0;
SVGRenderState local_90 [16];
int1 local_80 [32];
Canvas *local_60;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_58;
SVGBlendInfo local_50 [24];
int8 local_38;
float fStack_30;
float fStack_2c;
cVar1 = SVGRenderState::hasCycleReference((SVGRenderState *)param_2,(SVGElement *)param_1);
if (cVar1 == '\0') {
SVGBlendInfo::SVGBlendInfo(local_50,(SVGElement *)param_1);
markerTransform((Point *)&local_a8,param_3,param_4);
SVGRenderState::SVGRenderState
(local_90,(SVGElement *)param_1,(SVGRenderState *)param_2,(Transform *)&local_a8);
/* try { // try from 00111b4a to 00111b54 has its CatchHandler @ 00111c4a */
SVGRenderState::beginGroup(local_90,local_50);
if (param_1[0x41] == (SVGRenderState)0x1) {
local_a0 = 0;
local_a8 = param_1;
/* try { // try from 00111b7e to 00111c05 has its CatchHandler @ 00111c48 */
fVar2 = (float)LengthContext::valueForLength
((LengthContext *)&local_a8,param_1 + 0xe4,param_1[0xe1]);
fStack_2c = (float)LengthContext::valueForLength
((LengthContext *)&local_a8,param_1 + 0xfc,param_1[0xf9]);
local_b0 = CONCAT44(fStack_2c,fVar2);
if ((((*(float *)(param_1 + 0x84) <= 0.0) || (*(float *)(param_1 + 0x88) <= 0.0)) ||
(fVar2 <= 0.0)) || (fStack_2c <= 0.0)) {
local_38 = 0;
}
else {
local_38 = SVGPreserveAspectRatio::getClipRect
((SVGPreserveAspectRatio *)(param_1 + 0x90),(Rect *)(param_1 + 0x7c),
(Size *)&local_b0);
}
fStack_30 = fVar2;
Canvas::clipRect(local_60,&local_38,0,local_80);
}
/* try { // try from 00111c06 to 00111c24 has its CatchHandler @ 00111c4a */
SVGElement::renderChildren((SVGElement *)param_1,local_90);
SVGRenderState::endGroup(local_90,local_50);
if (local_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_58);
}
}
return;
}
| |
41,096 | nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<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*, 0>(int, 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> const*) | monkey531[P]llama/common/./json.hpp | static out_of_range create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("out_of_range", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<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*, 0>(int, 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> const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x59d28(%rip), %rsi # 0x94d2b
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x255a4
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x279a6
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x2d110
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %r14, %rcx
callq 0x2793d
leaq 0x8(%rsp), %rdi
callq 0x22078
leaq 0x48(%rsp), %rdi
callq 0x22078
leaq 0x28(%rsp), %rdi
callq 0x22078
movq 0x68(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x289f2
leaq 0x68(%rsp), %rdi
callq 0x22078
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
jmp 0x3b0bf
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x22078
jmp 0x3b0ab
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x22078
jmp 0x3b0ba
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x22078
jmp 0x3b0c9
movq %rax, %rbx
movq %rbx, %rdi
callq 0x21e50
nop
| _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_:
push rbp
push r15
push r14
push rbx
sub rsp, 88h
mov r15, rcx
mov r14, rdx
mov ebp, esi
mov rbx, rdi
lea rsi, aOutOfRange; "out_of_range"
lea rdi, [rsp+0A8h+var_80]
lea rdx, [rsp+0A8h+var_A1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0A8h+var_60]
lea rsi, [rsp+0A8h+var_80]
mov edx, ebp
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea rdi, [rsp+0A8h+var_A0]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail9exception11diagnosticsINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEESC_PKT_; nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const*)
lea rdi, [rsp+0A8h+var_40]
lea rsi, [rsp+0A8h+var_60]
lea rdx, [rsp+0A8h+var_A0]
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(std::string,std::string,std::string const&)
lea rdi, [rsp+0A8h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdx, [rsp+0A8h+var_40]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_rangeC2EiPKc; nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(int,char const*)
lea rdi, [rsp+0A8h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, rbx
add rsp, 88h
pop rbx
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_60]
jmp short loc_3B0BF
mov rbx, rax
lea rdi, [rsp+arg_0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3B0AB
mov rbx, rax
loc_3B0AB:
lea rdi, [rsp+arg_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3B0BA
mov rbx, rax
loc_3B0BA:
lea rdi, [rsp+arg_20]; void *
loc_3B0BF:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3B0C9
mov rbx, rax
loc_3B0C9:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::out_of_range * ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
nlohmann::json_abi_v3_11_3::detail::out_of_range *this,
int a2,
long long a3)
{
_QWORD v5[4]; // [rsp+8h] [rbp-A0h] BYREF
_QWORD v6[4]; // [rsp+28h] [rbp-80h] BYREF
_BYTE v7[32]; // [rsp+48h] [rbp-60h] BYREF
char *v8[8]; // [rsp+68h] [rbp-40h] BYREF
std::string::basic_string<std::allocator<char>>(v6, (long long)"out_of_range");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v7, (long long)v6, a2);
nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<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>>(v5);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(
(long long)v8,
(long long)v7,
(long long)v5,
a3);
std::string::~string(v5);
std::string::~string(v7);
std::string::~string(v6);
nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(this, a2, v8[0]);
std::string::~string(v8);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x88
MOV R15,RCX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LAB_0013affc:
LEA RSI,[0x194d2b]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x7]
CALL 0x001255a4
LAB_0013b012:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
MOV EDX,EBP
CALL 0x001279a6
LAB_0013b023:
LEA RDI,[RSP + 0x8]
MOV RSI,R15
CALL 0x0012d110
LAB_0013b030:
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0x48]
LEA RDX,[RSP + 0x8]
MOV RCX,R14
CALL 0x0012793d
LEA RDI,[RSP + 0x8]
CALL 0x00122078
LEA RDI,[RSP + 0x48]
CALL 0x00122078
LEA RDI,[RSP + 0x28]
CALL 0x00122078
MOV RDX,qword ptr [RSP + 0x68]
LAB_0013b06a:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x001289f2
LAB_0013b074:
LEA RDI,[RSP + 0x68]
CALL 0x00122078
MOV RAX,RBX
ADD RSP,0x88
POP RBX
POP R14
POP R15
POP RBP
RET
|
out_of_range *
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(out_of_range *param_1,int param_2,string *param_3)
{
allocator local_a1;
basic_json local_a0 [32];
string local_80 [32];
exception local_60 [32];
char *local_40 [4];
/* try { // try from 0013affc to 0013b011 has its CatchHandler @ 0013b0c6 */
std::__cxx11::string::string<std::allocator<char>>(local_80,"out_of_range",&local_a1);
/* try { // try from 0013b012 to 0013b022 has its CatchHandler @ 0013b0b7 */
nlohmann::json_abi_v3_11_3::detail::exception::name(local_60,local_80,param_2);
/* try { // try from 0013b023 to 0013b02f has its CatchHandler @ 0013b0a8 */
nlohmann::json_abi_v3_11_3::detail::exception::
diagnostics<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(local_a0);
/* try { // try from 0013b030 to 0013b046 has its CatchHandler @ 0013b099 */
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,std::__cxx11::string,std::__cxx11::string,std::__cxx11::string_const&>
((detail *)local_40,(string *)local_60,(string *)local_a0,param_3);
std::__cxx11::string::~string((string *)local_a0);
std::__cxx11::string::~string((string *)local_60);
std::__cxx11::string::~string(local_80);
/* try { // try from 0013b06a to 0013b073 has its CatchHandler @ 0013b08f */
nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(param_1,param_2,local_40[0]);
std::__cxx11::string::~string((string *)local_40);
return param_1;
}
| |
41,097 | nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<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*, 0>(int, 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> const*) | monkey531[P]llama/common/./json.hpp | static out_of_range create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("out_of_range", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<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*, 0>(int, 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> const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x753fc(%rip), %rsi # 0xb0bb3
leaq 0x75401(%rip), %rdx # 0xb0bbf
leaq 0x28(%rsp), %rdi
callq 0x20bbe
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x237a8
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
movq 0x8(%r15), %rsi
addq 0x50(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x19c70
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x19210
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x19210
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x8(%rsp), %rdi
callq 0x19210
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x3b861
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x197b0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3b87c
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x197b0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x3b893
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x197b0
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x23a10
leaq 0xaa5df(%rip), %rax # 0xe5e88
movq %rax, (%rbx)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x3b8c3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x197b0
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x3b951
movq 0x18(%rsp), %rsi
jmp 0x3b949
movq %rax, %rbx
jmp 0x3b93a
movq %rax, %rbx
jmp 0x3b951
movq %rdx, %rbx
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x3b913
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x197b0
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rdx
leaq 0x88(%rsp), %r12
movq %r14, %rsi
movq %r15, %rcx
movl %ebx, %r8d
movq %r12, %r9
callq 0x1a6b7
movq (%r12), %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x3b951
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x197b0
movq %rbx, %rdi
callq 0x19e10
nop
| _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r15, rdx
mov ebp, esi
mov rbx, rdi
lea r13, [rsp+0C8h+var_90]
mov [r13-10h], r13
lea rsi, aOutOfRange; "out_of_range"
lea rdx, aOutOfRange+0Ch; ""
lea rdi, [rsp+0C8h+var_A0]
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+0C8h+var_80]; int
lea rsi, [rsp+0C8h+var_A0]; int
mov edx, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea r14, [rsp+0C8h+var_50]
mov [r14-10h], r14
xor eax, eax
mov [r14-8], rax
mov [r14], al
lea r12, [rsp+0C8h+var_B0]
mov [r12-10h], r12
mov [r12-8], rax
mov [r12], al
mov rsi, [r15+8]
add rsi, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rsi, qword ptr [rsp+0C8h+var_80]
mov rdx, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [rsp+0C8h+var_60]
mov rdx, [rsp+0C8h+var_58]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [r15]
mov rdx, [r15+8]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+0C8h+var_60]; void *
cmp rdi, r14
jz short loc_3B861
mov rsi, [rsp+0C8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3B861:
lea rax, [rsp+0C8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3B87C
mov rsi, [rsp+0C8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3B87C:
mov rdi, [rsp+0C8h+var_A0]; void *
cmp rdi, r13
jz short loc_3B893
mov rsi, [rsp+0C8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3B893:
mov rdx, [rsp+0C8h+var_C0]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*)
lea rax, off_E5E88
mov [rbx], rax
mov rdi, [rsp+0C8h+var_C0]; void *
cmp rdi, r12
jz short loc_3B8C3
mov rsi, [rsp+0C8h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3B8C3:
mov rax, rbx
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_0]
cmp rdi, r12
jz short loc_3B951
mov rsi, [rsp+arg_10]
jmp short loc_3B949
mov rbx, rax
jmp short loc_3B93A
mov rbx, rax
jmp short loc_3B951
mov rbx, rdx
mov r15, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_3B913
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3B913:
lea rdi, [rsp+arg_60]
lea rdx, [rsp+arg_40]
lea r12, [rsp+arg_80]
mov rsi, r14
mov rcx, r15
mov r8d, ebx
mov r9, r12
call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK__cold_1
mov rbx, [r12]
loc_3B93A:
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_3B951
mov rsi, [rsp+arg_30]
loc_3B949:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3B951:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
nlohmann::json_abi_v3_11_3::detail::exception *this,
int a2,
_QWORD *a3)
{
char *v5[2]; // [rsp+8h] [rbp-C0h] BYREF
_QWORD v6[2]; // [rsp+18h] [rbp-B0h] BYREF
void *v7[2]; // [rsp+28h] [rbp-A0h] BYREF
_QWORD v8[2]; // [rsp+38h] [rbp-90h] BYREF
int v9[2]; // [rsp+48h] [rbp-80h] BYREF
long long v10; // [rsp+50h] [rbp-78h]
long long v11; // [rsp+58h] [rbp-70h] BYREF
void *v12; // [rsp+68h] [rbp-60h]
long long v13; // [rsp+70h] [rbp-58h]
_QWORD v14[10]; // [rsp+78h] [rbp-50h] BYREF
v7[0] = v8;
std::string::_M_construct<char const*>((long long)v7, "out_of_range", (long long)"");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v9, (long long)v7, a2);
v12 = v14;
v13 = 0LL;
LOBYTE(v14[0]) = 0;
v5[0] = (char *)v6;
v5[1] = 0LL;
LOBYTE(v6[0]) = 0;
std::string::reserve(v5, v10 + a3[1]);
std::string::_M_append(v5, *(_QWORD *)v9, v10);
std::string::_M_append(v5, v12, v13);
std::string::_M_append(v5, *a3, a3[1]);
if ( v12 != v14 )
operator delete(v12, v14[0] + 1LL);
if ( *(long long **)v9 != &v11 )
operator delete(*(void **)v9, v11 + 1);
if ( v7[0] != v8 )
operator delete(v7[0], v8[0] + 1LL);
nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v5[0]);
*(_QWORD *)this = off_E5E88;
if ( (_QWORD *)v5[0] != v6 )
operator delete(v5[0], v6[0] + 1LL);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R15,RDX
MOV EBP,ESI
MOV RBX,RDI
LEA R13,[RSP + 0x38]
MOV qword ptr [R13 + -0x10],R13
LAB_0013b7b0:
LEA RSI,[0x1b0bb3]
LEA RDX,[0x1b0bbf]
LEA RDI,[RSP + 0x28]
CALL 0x00120bbe
LAB_0013b7c8:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
MOV EDX,EBP
CALL 0x001237a8
LEA R14,[RSP + 0x78]
MOV qword ptr [R14 + -0x10],R14
XOR EAX,EAX
MOV qword ptr [R14 + -0x8],RAX
MOV byte ptr [R14],AL
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
MOV qword ptr [R12 + -0x8],RAX
MOV byte ptr [R12],AL
MOV RSI,qword ptr [R15 + 0x8]
ADD RSI,qword ptr [RSP + 0x50]
LAB_0013b807:
LEA RDI,[RSP + 0x8]
CALL 0x00119c70
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
LEA RDI,[RSP + 0x8]
CALL 0x00119210
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
LEA RDI,[RSP + 0x8]
CALL 0x00119210
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
LEA RDI,[RSP + 0x8]
CALL 0x00119210
MOV RDI,qword ptr [RSP + 0x68]
CMP RDI,R14
JZ 0x0013b861
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x001197b0
LAB_0013b861:
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0013b87c
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x001197b0
LAB_0013b87c:
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R13
JZ 0x0013b893
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x001197b0
LAB_0013b893:
MOV RDX,qword ptr [RSP + 0x8]
LAB_0013b898:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x00123a10
LAB_0013b8a2:
LEA RAX,[0x1e5e88]
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x0013b8c3
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001197b0
LAB_0013b8c3:
MOV RAX,RBX
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
exception *
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(exception *param_1,int param_2,ulong *param_3)
{
char *local_c0;
int8 local_b8;
char local_b0;
int7 uStack_af;
long *local_a0 [2];
long local_90 [2];
long *local_80 [2];
long local_70 [2];
int1 *local_60;
int8 local_58;
int1 local_50;
int7 uStack_4f;
/* try { // try from 0013b7b0 to 0013b7c7 has its CatchHandler @ 0013b8f1 */
local_a0[0] = local_90;
std::__cxx11::string::_M_construct<char_const*>(local_a0,"out_of_range","");
/* try { // try from 0013b7c8 to 0013b7d8 has its CatchHandler @ 0013b8ec */
nlohmann::json_abi_v3_11_3::detail::exception::name
((exception *)local_80,(string *)local_a0,param_2);
local_58 = 0;
local_50 = 0;
local_b8 = 0;
local_b0 = '\0';
/* try { // try from 0013b807 to 0013b849 has its CatchHandler @ 0013b8f6 */
local_c0 = &local_b0;
local_60 = &local_50;
std::__cxx11::string::reserve((ulong)&local_c0);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_80[0]);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_60);
std::__cxx11::string::_M_append((char *)&local_c0,*param_3);
if (local_60 != &local_50) {
operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1);
}
if (local_80[0] != local_70) {
operator_delete(local_80[0],local_70[0] + 1);
}
if (local_a0[0] != local_90) {
operator_delete(local_a0[0],local_90[0] + 1);
}
/* try { // try from 0013b898 to 0013b8a1 has its CatchHandler @ 0013b8d8 */
nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,local_c0);
*(int ***)param_1 = &PTR__exception_001e5e88;
if (local_c0 != &local_b0) {
operator_delete(local_c0,CONCAT71(uStack_af,local_b0) + 1);
}
return param_1;
}
| |
41,098 | list_free | eloqsql/storage/maria/libmarias3/src/marias3.c | static void list_free(ms3_st *ms3)
{
ms3_list_st *list = ms3->list_container.start;
struct ms3_pool_alloc_list_st *plist = NULL, *next = NULL;
while (list)
{
ms3_cfree(list->key);
list = list->next;
}
plist = ms3->list_container.pool_list;
while (plist)
{
next = plist->prev;
ms3_cfree(plist->pool);
ms3_cfree(plist);
plist = next;
}
ms3->list_container.pool = NULL;
ms3->list_container.next = NULL;
ms3->list_container.start = NULL;
ms3->list_container.pool_list = NULL;
ms3->list_container.pool_free = 0;
} | O3 | c | list_free:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0xa8(%rdi), %r14
testq %r14, %r14
je 0xf4c9
movq 0xbace(%rip), %r15 # 0x1af88
movq (%r14), %rdi
callq *(%r15)
movq 0x18(%r14), %r14
testq %r14, %r14
jne 0xf4ba
movq 0xb0(%rbx), %r14
testq %r14, %r14
je 0xf4f4
movq 0xbaac(%rip), %r15 # 0x1af88
movq (%r14), %rdi
movq 0x8(%r14), %r12
callq *(%r15)
movq %r14, %rdi
callq *(%r15)
movq %r12, %r14
testq %r12, %r12
jne 0xf4dc
xorps %xmm0, %xmm0
movups %xmm0, 0xb0(%rbx)
movups %xmm0, 0xa0(%rbx)
movq $0x0, 0xc0(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| list_free:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov rbx, rdi
mov r14, [rdi+0A8h]
test r14, r14
jz short loc_F4C9
mov r15, cs:ms3_cfree_ptr
loc_F4BA:
mov rdi, [r14]
call qword ptr [r15]
mov r14, [r14+18h]
test r14, r14
jnz short loc_F4BA
loc_F4C9:
mov r14, [rbx+0B0h]
test r14, r14
jz short loc_F4F4
mov r15, cs:ms3_cfree_ptr
loc_F4DC:
mov rdi, [r14]
mov r12, [r14+8]
call qword ptr [r15]
mov rdi, r14
call qword ptr [r15]
mov r14, r12
test r12, r12
jnz short loc_F4DC
loc_F4F4:
xorps xmm0, xmm0
movups xmmword ptr [rbx+0B0h], xmm0
movups xmmword ptr [rbx+0A0h], xmm0
mov qword ptr [rbx+0C0h], 0
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long list_free(long long a1)
{
_QWORD *i; // r14
long long result; // rax
_QWORD *v3; // r14
_QWORD *v4; // r12
for ( i = *(_QWORD **)(a1 + 168); i; i = (_QWORD *)i[3] )
result = ms3_cfree(*i);
v3 = *(_QWORD **)(a1 + 176);
if ( v3 )
{
do
{
v4 = (_QWORD *)v3[1];
ms3_cfree(*v3);
result = ms3_cfree(v3);
v3 = v4;
}
while ( v4 );
}
*(_OWORD *)(a1 + 176) = 0LL;
*(_OWORD *)(a1 + 160) = 0LL;
*(_QWORD *)(a1 + 192) = 0LL;
return result;
}
| list_free:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RDI
MOV R14,qword ptr [RDI + 0xa8]
TEST R14,R14
JZ 0x0010f4c9
MOV R15,qword ptr [0x0011af88]
LAB_0010f4ba:
MOV RDI,qword ptr [R14]
CALL qword ptr [R15]
MOV R14,qword ptr [R14 + 0x18]
TEST R14,R14
JNZ 0x0010f4ba
LAB_0010f4c9:
MOV R14,qword ptr [RBX + 0xb0]
TEST R14,R14
JZ 0x0010f4f4
MOV R15,qword ptr [0x0011af88]
LAB_0010f4dc:
MOV RDI,qword ptr [R14]
MOV R12,qword ptr [R14 + 0x8]
CALL qword ptr [R15]
MOV RDI,R14
CALL qword ptr [R15]
MOV R14,R12
TEST R12,R12
JNZ 0x0010f4dc
LAB_0010f4f4:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0xb0],XMM0
MOVUPS xmmword ptr [RBX + 0xa0],XMM0
MOV qword ptr [RBX + 0xc0],0x0
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
void list_free(long param_1)
{
int8 *puVar1;
int8 *puVar2;
int8 *puVar3;
int *puVar4;
puVar4 = PTR_ms3_cfree_0011af88;
puVar3 = (int8 *)PTR_ms3_cfree_0011af88;
for (puVar1 = *(int8 **)(param_1 + 0xa8); PTR_ms3_cfree_0011af88 = (int *)puVar3,
puVar1 != (int8 *)0x0; puVar1 = (int8 *)puVar1[3]) {
(**(code **)puVar4)(*puVar1);
puVar3 = (int8 *)PTR_ms3_cfree_0011af88;
}
puVar1 = *(int8 **)(param_1 + 0xb0);
while (puVar1 != (int8 *)0x0) {
puVar2 = (int8 *)puVar1[1];
(*(code *)*puVar3)(*puVar1);
(*(code *)*puVar3)(puVar1);
puVar1 = puVar2;
}
*(int8 *)(param_1 + 0xb0) = 0;
*(int8 *)(param_1 + 0xb8) = 0;
*(int8 *)(param_1 + 0xa0) = 0;
*(int8 *)(param_1 + 0xa8) = 0;
*(int8 *)(param_1 + 0xc0) = 0;
return;
}
| |
41,099 | store_extent_info | eloqsql/storage/maria/ma_blockrec.c | static void store_extent_info(uchar *to,
uchar *row_extents_second_part,
MARIA_BITMAP_BLOCK *first_block,
uint count)
{
MARIA_BITMAP_BLOCK *block, *end_block;
uint copy_length;
my_bool first_found= 0;
DBUG_ENTER("store_extent_info");
DBUG_PRINT("enter", ("count: %u", count));
for (block= first_block, end_block= first_block+count ;
block < end_block; block++)
{
/* The following is only false for marker (unused) blocks */
if (likely(block->used & BLOCKUSED_USED))
{
uint page_count= block->page_count;
DBUG_ASSERT(page_count != 0);
page_store(to, block->page);
if (block->sub_blocks)
{
/*
Set a bit so that we later know that this was the first block
for a blob
*/
page_count|= START_EXTENT_BIT;
}
pagerange_store(to + PAGE_STORE_SIZE, page_count);
DBUG_DUMP("extent", to, ROW_EXTENT_SIZE);
to+= ROW_EXTENT_SIZE;
if (!first_found)
{
first_found= 1;
to= row_extents_second_part;
}
}
}
copy_length= (count - 1) * ROW_EXTENT_SIZE;
/*
In some unlikely cases we have allocated to many blocks. Clear this
data.
*/
bzero(to, (size_t) (row_extents_second_part + copy_length - to));
DBUG_VOID_RETURN;
} | O0 | c | store_extent_info:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movb $0x0, -0x35(%rbp)
jmp 0x81d0d
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x81df7
movq -0x28(%rbp), %rax
movzbl 0x14(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x81de4
movq -0x28(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x3c(%rbp)
jmp 0x81d63
jmp 0x81d65
movq -0x8(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movl %eax, %ecx
movq -0x48(%rbp), %rax
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
movq (%rax), %rax
shrq $0x20, %rax
movb %al, %cl
movq -0x48(%rbp), %rax
movb %cl, 0x4(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x10(%rax)
je 0x81da5
movl -0x3c(%rbp), %eax
orl $0x4000, %eax # imm = 0x4000
movl %eax, -0x3c(%rbp)
jmp 0x81da7
movq -0x8(%rbp), %rax
addq $0x5, %rax
movq %rax, -0x50(%rbp)
movl -0x3c(%rbp), %eax
movw %ax, %cx
movq -0x50(%rbp), %rax
movw %cx, (%rax)
jmp 0x81dc2
jmp 0x81dc4
movq -0x8(%rbp), %rax
addq $0x7, %rax
movq %rax, -0x8(%rbp)
cmpb $0x0, -0x35(%rbp)
jne 0x81de2
movb $0x1, -0x35(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x81de4
jmp 0x81de6
movq -0x28(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x28(%rbp)
jmp 0x81d27
movl -0x1c(%rbp), %eax
subl $0x1, %eax
imull $0x7, %eax, %eax
movl %eax, -0x34(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rdx
movl -0x34(%rbp), %eax
addq %rax, %rdx
movq -0x8(%rbp), %rax
subq %rax, %rdx
xorl %esi, %esi
callq 0x2a2c0
jmp 0x81e21
addq $0x50, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| store_extent_info:
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_1C], ecx
mov [rbp+var_35], 0
jmp short $+2
loc_81D0D:
mov rax, [rbp+var_18]
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov ecx, [rbp+var_1C]
imul rcx, 18h
add rax, rcx
mov [rbp+var_30], rax
loc_81D27:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jnb loc_81DF7
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax+14h]
and eax, 1
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz loc_81DE4
mov rax, [rbp+var_28]
mov eax, [rax+8]
mov [rbp+var_3C], eax
jmp short $+2
loc_81D63:
jmp short $+2
loc_81D65:
mov rax, [rbp+var_8]
mov [rbp+var_48], rax
mov rax, [rbp+var_28]
mov rax, [rax]
mov ecx, eax
mov rax, [rbp+var_48]
mov [rax], ecx
mov rax, [rbp+var_28]
mov rax, [rax]
shr rax, 20h
mov cl, al
mov rax, [rbp+var_48]
mov [rax+4], cl
mov rax, [rbp+var_28]
cmp dword ptr [rax+10h], 0
jz short loc_81DA5
mov eax, [rbp+var_3C]
or eax, 4000h
mov [rbp+var_3C], eax
loc_81DA5:
jmp short $+2
loc_81DA7:
mov rax, [rbp+var_8]
add rax, 5
mov [rbp+var_50], rax
mov eax, [rbp+var_3C]
mov cx, ax
mov rax, [rbp+var_50]
mov [rax], cx
jmp short $+2
loc_81DC2:
jmp short $+2
loc_81DC4:
mov rax, [rbp+var_8]
add rax, 7
mov [rbp+var_8], rax
cmp [rbp+var_35], 0
jnz short loc_81DE2
mov [rbp+var_35], 1
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
loc_81DE2:
jmp short $+2
loc_81DE4:
jmp short $+2
loc_81DE6:
mov rax, [rbp+var_28]
add rax, 18h
mov [rbp+var_28], rax
jmp loc_81D27
loc_81DF7:
mov eax, [rbp+var_1C]
sub eax, 1
imul eax, 7
mov [rbp+var_34], eax
mov rdi, [rbp+var_8]
mov rdx, [rbp+var_10]
mov eax, [rbp+var_34]
add rdx, rax
mov rax, [rbp+var_8]
sub rdx, rax
xor esi, esi
call _memset
jmp short $+2
loc_81E21:
add rsp, 50h
pop rbp
retn
| long long store_extent_info(long long a1, long long a2, unsigned long long a3, unsigned int a4)
{
int v5; // [rsp+14h] [rbp-3Ch]
char v6; // [rsp+1Bh] [rbp-35h]
unsigned long long i; // [rsp+28h] [rbp-28h]
v6 = 0;
for ( i = a3; i < 24LL * a4 + a3; i += 24LL )
{
if ( (*(_BYTE *)(i + 20) & 1) != 0 )
{
v5 = *(_DWORD *)(i + 8);
*(_DWORD *)a1 = *(_QWORD *)i;
*(_BYTE *)(a1 + 4) = BYTE4(*(_QWORD *)i);
if ( *(_DWORD *)(i + 16) )
LOWORD(v5) = v5 | 0x4000;
*(_WORD *)(a1 + 5) = v5;
a1 += 7LL;
if ( !v6 )
{
v6 = 1;
a1 = a2;
}
}
}
return memset(a1, 0LL, 7 * (a4 - 1) + a2 - a1);
}
| store_extent_info:
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 dword ptr [RBP + -0x1c],ECX
MOV byte ptr [RBP + -0x35],0x0
JMP 0x00181d0d
LAB_00181d0d:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x1c]
IMUL RCX,RCX,0x18
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
LAB_00181d27:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x00181df7
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX + 0x14]
AND EAX,0x1
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x00181de4
MOV RAX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x3c],EAX
JMP 0x00181d63
LAB_00181d63:
JMP 0x00181d65
LAB_00181d65:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x48]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
SHR RAX,0x20
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x48]
MOV byte ptr [RAX + 0x4],CL
MOV RAX,qword ptr [RBP + -0x28]
CMP dword ptr [RAX + 0x10],0x0
JZ 0x00181da5
MOV EAX,dword ptr [RBP + -0x3c]
OR EAX,0x4000
MOV dword ptr [RBP + -0x3c],EAX
LAB_00181da5:
JMP 0x00181da7
LAB_00181da7:
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x5
MOV qword ptr [RBP + -0x50],RAX
MOV EAX,dword ptr [RBP + -0x3c]
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x50]
MOV word ptr [RAX],CX
JMP 0x00181dc2
LAB_00181dc2:
JMP 0x00181dc4
LAB_00181dc4:
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x7
MOV qword ptr [RBP + -0x8],RAX
CMP byte ptr [RBP + -0x35],0x0
JNZ 0x00181de2
MOV byte ptr [RBP + -0x35],0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
LAB_00181de2:
JMP 0x00181de4
LAB_00181de4:
JMP 0x00181de6
LAB_00181de6:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x18
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00181d27
LAB_00181df7:
MOV EAX,dword ptr [RBP + -0x1c]
SUB EAX,0x1
IMUL EAX,EAX,0x7
MOV dword ptr [RBP + -0x34],EAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x34]
ADD RDX,RAX
MOV RAX,qword ptr [RBP + -0x8]
SUB RDX,RAX
XOR ESI,ESI
CALL 0x0012a2c0
JMP 0x00181e21
LAB_00181e21:
ADD RSP,0x50
POP RBP
RET
|
void store_extent_info(int4 *param_1,int4 *param_2,int8 *param_3,uint param_4)
{
bool bVar1;
ushort local_44;
int8 *local_30;
int4 *local_10;
bVar1 = false;
local_10 = param_1;
for (local_30 = param_3; local_30 < param_3 + (ulong)param_4 * 3; local_30 = local_30 + 3) {
if ((*(byte *)((long)local_30 + 0x14) & 1) != 0) {
local_44 = (ushort)*(int4 *)(local_30 + 1);
*local_10 = (int)*local_30;
*(char *)(local_10 + 1) = (char)((ulong)*local_30 >> 0x20);
if (*(int *)(local_30 + 2) != 0) {
local_44 = local_44 | 0x4000;
}
*(ushort *)((long)local_10 + 5) = local_44;
local_10 = (int4 *)((long)local_10 + 7);
if (!bVar1) {
bVar1 = true;
local_10 = param_2;
}
}
}
memset(local_10,0,(long)param_2 + ((ulong)((param_4 - 1) * 7) - (long)local_10));
return;
}
|
Subsets and Splits
C++ Functions With Standard Library Dependencies
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ Standard Library Function Analysis
Filters C++ code examples that use standard library containers and types, providing useful insights into common programming patterns and data structures in the dataset.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.