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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
22,300 | update_backward_delete_link | eloqsql/storage/maria/ma_dynrec.c | static my_bool update_backward_delete_link(MARIA_HA *info,
my_off_t delete_block,
MARIA_RECORD_POS filepos)
{
MARIA_BLOCK_INFO block_info;
DBUG_ENTER("update_backward_delete_link");
if (delete_block != HA_OFFSET_ERROR)
{
block_info.second_read=0;
if (_ma_get_block_info(info, &block_info, info->dfile.file, delete_block)
& BLOCK_DELETED)
{
uchar buff[8];
mi_sizestore(buff,filepos);
if (info->s->file_write(info,buff, 8, delete_block+12, MYF(MY_NABP)))
DBUG_RETURN(1); /* Error on write */
}
else
{
_ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD);
DBUG_RETURN(1); /* Wrong delete link */
}
}
DBUG_RETURN(0);
} | O0 | c | update_backward_delete_link:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x78(%rbp)
movq %rsi, -0x80(%rbp)
movq %rdx, -0x88(%rbp)
cmpq $-0x1, -0x80(%rbp)
je 0x4e115
movl $0x0, -0x10(%rbp)
movq -0x78(%rbp), %rdi
movq -0x78(%rbp), %rax
movl 0x480(%rax), %edx
movq -0x80(%rbp), %rcx
leaq -0x60(%rbp), %rsi
callq 0x4d1c0
andl $0x4, %eax
cmpl $0x0, %eax
je 0x4e0ff
movq -0x88(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rax
shrq $0x20, %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movb %al, -0x65(%rbp)
movq -0xa0(%rbp), %rax
shrq $0x8, %rax
movb %al, -0x66(%rbp)
movq -0xa0(%rbp), %rax
shrq $0x10, %rax
movb %al, -0x67(%rbp)
movq -0xa0(%rbp), %rax
shrq $0x18, %rax
movb %al, -0x68(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
movb %al, -0x61(%rbp)
movq -0xa8(%rbp), %rax
shrq $0x8, %rax
movb %al, -0x62(%rbp)
movq -0xa8(%rbp), %rax
shrq $0x10, %rax
movb %al, -0x63(%rbp)
movq -0xa8(%rbp), %rax
shrq $0x18, %rax
movb %al, -0x64(%rbp)
movq -0x78(%rbp), %rax
movq (%rax), %rax
movq 0x6e8(%rax), %rax
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rsi
movq -0x80(%rbp), %rcx
addq $0xc, %rcx
movl $0x8, %edx
movl $0x4, %r8d
callq *%rax
cmpq $0x0, %rax
je 0x4e0fd
jmp 0x4e0f7
movb $0x1, -0x69(%rbp)
jmp 0x4e11b
jmp 0x4e113
movq -0x78(%rbp), %rdi
movl $0x7f, %esi
callq 0x37340
movb $0x1, -0x69(%rbp)
jmp 0x4e11b
jmp 0x4e115
jmp 0x4e117
movb $0x0, -0x69(%rbp)
movb -0x69(%rbp), %al
movb %al, -0xa9(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x4e145
movb -0xa9(%rbp), %al
addq $0xb0, %rsp
popq %rbp
retq
callq 0x29250
nopw (%rax,%rax)
| update_backward_delete_link:
push rbp
mov rbp, rsp
sub rsp, 0B0h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_78], rdi
mov [rbp+var_80], rsi
mov [rbp+var_88], rdx
cmp [rbp+var_80], 0FFFFFFFFFFFFFFFFh
jz loc_4E115
mov [rbp+var_10], 0
mov rdi, [rbp+var_78]
mov rax, [rbp+var_78]
mov edx, [rax+480h]
mov rcx, [rbp+var_80]
lea rsi, [rbp+var_60]
call _ma_get_block_info
and eax, 4
cmp eax, 0
jz loc_4E0FF
mov rax, [rbp+var_88]
mov [rbp+var_90], rax
mov rax, [rbp+var_88]
shr rax, 20h
mov [rbp+var_98], rax
mov rax, [rbp+var_98]
mov [rbp+var_A0], rax
mov rax, [rbp+var_A0]
mov [rbp+var_65], al
mov rax, [rbp+var_A0]
shr rax, 8
mov [rbp+var_66], al
mov rax, [rbp+var_A0]
shr rax, 10h
mov [rbp+var_67], al
mov rax, [rbp+var_A0]
shr rax, 18h
mov [rbp+var_68], al
mov rax, [rbp+var_90]
mov [rbp+var_A8], rax
mov rax, [rbp+var_A8]
mov [rbp+var_61], al
mov rax, [rbp+var_A8]
shr rax, 8
mov [rbp+var_62], al
mov rax, [rbp+var_A8]
shr rax, 10h
mov [rbp+var_63], al
mov rax, [rbp+var_A8]
shr rax, 18h
mov [rbp+var_64], al
mov rax, [rbp+var_78]
mov rax, [rax]
mov rax, [rax+6E8h]
mov rdi, [rbp+var_78]
lea rsi, [rbp+var_68]
mov rcx, [rbp+var_80]
add rcx, 0Ch
mov edx, 8
mov r8d, 4
call rax
cmp rax, 0
jz short loc_4E0FD
jmp short $+2
loc_4E0F7:
mov [rbp+var_69], 1
jmp short loc_4E11B
loc_4E0FD:
jmp short loc_4E113
loc_4E0FF:
mov rdi, [rbp+var_78]
mov esi, 7Fh
call _ma_set_fatal_error
mov [rbp+var_69], 1
jmp short loc_4E11B
loc_4E113:
jmp short $+2
loc_4E115:
jmp short $+2
loc_4E117:
mov [rbp+var_69], 0
loc_4E11B:
mov al, [rbp+var_69]
mov [rbp+var_A9], al
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_4E145
mov al, [rbp+var_A9]
add rsp, 0B0h
pop rbp
retn
loc_4E145:
call ___stack_chk_fail
| bool update_backward_delete_link(_DWORD *a1, long long a2, long long a3, long long a4, long long a5, int a6)
{
long long v6; // rdx
long long v7; // rcx
long long v8; // r8
int v9; // r9d
_BYTE v13[8]; // [rsp+48h] [rbp-68h] BYREF
unsigned __int8 v14[80]; // [rsp+50h] [rbp-60h] BYREF
int v15; // [rsp+A0h] [rbp-10h]
unsigned long long v16; // [rsp+A8h] [rbp-8h]
v16 = __readfsqword(0x28u);
if ( a2 == -1 )
return 0;
v15 = 0;
if ( (ma_get_block_info((long long)a1, v14, (unsigned int)a1[288], a2, a5, a6) & 4) == 0 )
{
ma_set_fatal_error(a1, 0x7Fu, v6, v7, v8, v9);
return 1;
}
v13[2] = BYTE5(a3);
v13[3] = BYTE4(a3);
v13[0] = HIBYTE(a3);
v13[1] = BYTE6(a3);
v13[6] = BYTE1(a3);
v13[7] = a3;
v13[4] = BYTE3(a3);
v13[5] = BYTE2(a3);
return (*(long long ( **)(_DWORD *, _BYTE *, long long, long long, long long))(*(_QWORD *)a1 + 1768LL))(
a1,
v13,
8LL,
a2 + 12,
4LL) != 0;
}
| update_backward_delete_link:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xb0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x78],RDI
MOV qword ptr [RBP + -0x80],RSI
MOV qword ptr [RBP + -0x88],RDX
CMP qword ptr [RBP + -0x80],-0x1
JZ 0x0014e115
MOV dword ptr [RBP + -0x10],0x0
MOV RDI,qword ptr [RBP + -0x78]
MOV RAX,qword ptr [RBP + -0x78]
MOV EDX,dword ptr [RAX + 0x480]
MOV RCX,qword ptr [RBP + -0x80]
LEA RSI,[RBP + -0x60]
CALL 0x0014d1c0
AND EAX,0x4
CMP EAX,0x0
JZ 0x0014e0ff
MOV RAX,qword ptr [RBP + -0x88]
MOV qword ptr [RBP + -0x90],RAX
MOV RAX,qword ptr [RBP + -0x88]
SHR RAX,0x20
MOV qword ptr [RBP + -0x98],RAX
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0xa0],RAX
MOV RAX,qword ptr [RBP + -0xa0]
MOV byte ptr [RBP + -0x65],AL
MOV RAX,qword ptr [RBP + -0xa0]
SHR RAX,0x8
MOV byte ptr [RBP + -0x66],AL
MOV RAX,qword ptr [RBP + -0xa0]
SHR RAX,0x10
MOV byte ptr [RBP + -0x67],AL
MOV RAX,qword ptr [RBP + -0xa0]
SHR RAX,0x18
MOV byte ptr [RBP + -0x68],AL
MOV RAX,qword ptr [RBP + -0x90]
MOV qword ptr [RBP + -0xa8],RAX
MOV RAX,qword ptr [RBP + -0xa8]
MOV byte ptr [RBP + -0x61],AL
MOV RAX,qword ptr [RBP + -0xa8]
SHR RAX,0x8
MOV byte ptr [RBP + -0x62],AL
MOV RAX,qword ptr [RBP + -0xa8]
SHR RAX,0x10
MOV byte ptr [RBP + -0x63],AL
MOV RAX,qword ptr [RBP + -0xa8]
SHR RAX,0x18
MOV byte ptr [RBP + -0x64],AL
MOV RAX,qword ptr [RBP + -0x78]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x6e8]
MOV RDI,qword ptr [RBP + -0x78]
LEA RSI,[RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x80]
ADD RCX,0xc
MOV EDX,0x8
MOV R8D,0x4
CALL RAX
CMP RAX,0x0
JZ 0x0014e0fd
JMP 0x0014e0f7
LAB_0014e0f7:
MOV byte ptr [RBP + -0x69],0x1
JMP 0x0014e11b
LAB_0014e0fd:
JMP 0x0014e113
LAB_0014e0ff:
MOV RDI,qword ptr [RBP + -0x78]
MOV ESI,0x7f
CALL 0x00137340
MOV byte ptr [RBP + -0x69],0x1
JMP 0x0014e11b
LAB_0014e113:
JMP 0x0014e115
LAB_0014e115:
JMP 0x0014e117
LAB_0014e117:
MOV byte ptr [RBP + -0x69],0x0
LAB_0014e11b:
MOV AL,byte ptr [RBP + -0x69]
MOV byte ptr [RBP + -0xa9],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0014e145
MOV AL,byte ptr [RBP + -0xa9]
ADD RSP,0xb0
POP RBP
RET
LAB_0014e145:
CALL 0x00129250
|
int8 update_backward_delete_link(long *param_1,long param_2,int8 param_3)
{
uint uVar1;
long lVar2;
long in_FS_OFFSET;
int1 local_71;
int1 local_70;
int1 local_6f;
int1 local_6e;
int1 local_6d;
int1 local_6c;
int1 local_6b;
int1 local_6a;
int1 local_69;
int1 local_68 [80];
int4 local_18;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
if (param_2 != -1) {
local_18 = 0;
uVar1 = _ma_get_block_info(param_1,local_68,(int)param_1[0x90],param_2);
if ((uVar1 & 4) == 0) {
_ma_set_fatal_error(param_1,0x7f);
local_71 = 1;
goto LAB_0014e11b;
}
local_6d = (int1)((ulong)param_3 >> 0x20);
local_6e = (int1)((ulong)param_3 >> 0x28);
local_6f = (int1)((ulong)param_3 >> 0x30);
local_70 = (int1)((ulong)param_3 >> 0x38);
local_69 = (int1)param_3;
local_6a = (int1)((ulong)param_3 >> 8);
local_6b = (int1)((ulong)param_3 >> 0x10);
local_6c = (int1)((ulong)param_3 >> 0x18);
lVar2 = (**(code **)(*param_1 + 0x6e8))(param_1,&local_70,8,param_2 + 0xc,4);
if (lVar2 != 0) {
local_71 = 1;
goto LAB_0014e11b;
}
}
local_71 = 0;
LAB_0014e11b:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_71);
}
| |
22,301 | net_field_length_ll | eloqsql/libmariadb/libmariadb/mariadb_lib.c | static unsigned long long
net_field_length_ll(uchar **packet)
{
reg1 uchar *pos= *packet;
if (*pos < 251)
{
(*packet)++;
return (unsigned long long) *pos;
}
if (*pos == 251)
{
(*packet)++;
return (unsigned long long) NULL_LENGTH;
}
if (*pos == 252)
{
(*packet)+=3;
return (unsigned long long) uint2korr(pos+1);
}
if (*pos == 253)
{
(*packet)+=4;
return (unsigned long long) uint3korr(pos+1);
}
(*packet)+=9; /* Must be 254 when here */
#ifdef NO_CLIENT_LONGLONG
return (unsigned long long) uint4korr(pos+1);
#else
return (unsigned long long) uint8korr(pos+1);
#endif
} | O3 | c | net_field_length_ll:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
movzbl (%rax), %ecx
cmpl $0xfa, %ecx
ja 0x21c42
leaq 0x1(%rax), %rcx
movq %rcx, (%rdi)
movzbl (%rax), %eax
popq %rbp
retq
cmpl $0xfd, %ecx
je 0x21c76
cmpl $0xfc, %ecx
je 0x21c69
cmpl $0xfb, %ecx
jne 0x21c8d
incq %rax
movq %rax, (%rdi)
movq $-0x1, %rax
jmp 0x21c40
leaq 0x3(%rax), %rcx
movq %rcx, (%rdi)
movzwl 0x1(%rax), %eax
jmp 0x21c40
leaq 0x4(%rax), %rcx
movq %rcx, (%rdi)
movzwl 0x1(%rax), %ecx
movzbl 0x3(%rax), %eax
shll $0x10, %eax
orq %rcx, %rax
jmp 0x21c40
leaq 0x9(%rax), %rcx
movq %rcx, (%rdi)
movq 0x1(%rax), %rax
jmp 0x21c40
| net_field_length_ll:
push rbp
mov rbp, rsp
mov rax, [rdi]
movzx ecx, byte ptr [rax]
cmp ecx, 0FAh
ja short loc_21C42
lea rcx, [rax+1]
mov [rdi], rcx
movzx eax, byte ptr [rax]
loc_21C40:
pop rbp
retn
loc_21C42:
cmp ecx, 0FDh
jz short loc_21C76
cmp ecx, 0FCh
jz short loc_21C69
cmp ecx, 0FBh
jnz short loc_21C8D
inc rax
mov [rdi], rax
mov rax, 0FFFFFFFFFFFFFFFFh
jmp short loc_21C40
loc_21C69:
lea rcx, [rax+3]
mov [rdi], rcx
movzx eax, word ptr [rax+1]
jmp short loc_21C40
loc_21C76:
lea rcx, [rax+4]
mov [rdi], rcx
movzx ecx, word ptr [rax+1]
movzx eax, byte ptr [rax+3]
shl eax, 10h
or rax, rcx
jmp short loc_21C40
loc_21C8D:
lea rcx, [rax+9]
mov [rdi], rcx
mov rax, [rax+1]
jmp short loc_21C40
| unsigned long long net_field_length_ll(unsigned __int8 **a1)
{
unsigned __int8 *v1; // rax
unsigned int v2; // ecx
v1 = *a1;
v2 = **a1;
if ( v2 > 0xFA )
{
switch ( v2 )
{
case 0xFDu:
*a1 = v1 + 4;
return *(unsigned __int16 *)(v1 + 1) | (unsigned long long)(v1[3] << 16);
case 0xFCu:
*a1 = v1 + 3;
return *(unsigned __int16 *)(v1 + 1);
case 0xFBu:
*a1 = v1 + 1;
return -1LL;
default:
*a1 = v1 + 9;
return *(_QWORD *)(v1 + 1);
}
}
else
{
*a1 = v1 + 1;
return *v1;
}
}
| net_field_length_ll:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RDI]
MOVZX ECX,byte ptr [RAX]
CMP ECX,0xfa
JA 0x00121c42
LEA RCX,[RAX + 0x1]
MOV qword ptr [RDI],RCX
MOVZX EAX,byte ptr [RAX]
LAB_00121c40:
POP RBP
RET
LAB_00121c42:
CMP ECX,0xfd
JZ 0x00121c76
CMP ECX,0xfc
JZ 0x00121c69
CMP ECX,0xfb
JNZ 0x00121c8d
INC RAX
MOV qword ptr [RDI],RAX
MOV RAX,-0x1
JMP 0x00121c40
LAB_00121c69:
LEA RCX,[RAX + 0x3]
MOV qword ptr [RDI],RCX
MOVZX EAX,word ptr [RAX + 0x1]
JMP 0x00121c40
LAB_00121c76:
LEA RCX,[RAX + 0x4]
MOV qword ptr [RDI],RCX
MOVZX ECX,word ptr [RAX + 0x1]
MOVZX EAX,byte ptr [RAX + 0x3]
SHL EAX,0x10
OR RAX,RCX
JMP 0x00121c40
LAB_00121c8d:
LEA RCX,[RAX + 0x9]
MOV qword ptr [RDI],RCX
MOV RAX,qword ptr [RAX + 0x1]
JMP 0x00121c40
|
ulong net_field_length_ll(long *param_1)
{
byte bVar1;
byte *pbVar2;
ulong uVar3;
pbVar2 = (byte *)*param_1;
bVar1 = *pbVar2;
if (bVar1 < 0xfb) {
*param_1 = (long)(pbVar2 + 1);
uVar3 = (ulong)*pbVar2;
}
else if (bVar1 == 0xfd) {
*param_1 = (long)(pbVar2 + 4);
uVar3 = (ulong)*(uint3 *)(pbVar2 + 1);
}
else if (bVar1 == 0xfc) {
*param_1 = (long)(pbVar2 + 3);
uVar3 = (ulong)*(ushort *)(pbVar2 + 1);
}
else if (bVar1 == 0xfb) {
*param_1 = (long)(pbVar2 + 1);
uVar3 = 0xffffffffffffffff;
}
else {
*param_1 = (long)(pbVar2 + 9);
uVar3 = *(ulong *)(pbVar2 + 1);
}
return uVar3;
}
| |
22,302 | trnman_free_trn | eloqsql/storage/maria/trnman.c | static void trnman_free_trn(TRN *trn)
{
/*
union is to solve strict aliasing issue.
without it gcc 3.4.3 doesn't notice that updating *(void **)&tmp
modifies the value of tmp.
*/
union { TRN *trn; void *v; } tmp;
DBUG_ASSERT(trn != &dummy_transaction_object);
mysql_mutex_lock(&trn->state_lock);
trn->short_id= 0;
mysql_mutex_unlock(&trn->state_lock);
tmp.trn= pool;
do
{
/*
without this volatile cast gcc-3.4.4 moves the assignment
down after the loop at -O2
*/
*(TRN * volatile *)&(trn->next)= tmp.trn;
} while (!my_atomic_casptr((void **)(char*)&pool, &tmp.v, trn));
} | O3 | c | trnman_free_trn:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x10(%rdi), %r14
cmpq $0x0, 0x50(%rdi)
jne 0x609fa
movq %r14, %rdi
callq 0x29200
movw $0x0, 0xac(%rbx)
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
jne 0x60a10
movq %r14, %rdi
callq 0x291c0
movq 0xb9e852(%rip), %rax # 0xbff238
movq %rax, 0x68(%rbx)
lock
cmpxchgq %rbx, 0xb9e845(%rip) # 0xbff238
jne 0x609e6
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x79ec7(%rip), %rsi # 0xda8c8
movq %r14, %rdi
movl $0x22d, %edx # imm = 0x22D
callq 0x2eb6f
jmp 0x609c5
leaq 0x3255f9(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x609d7
| trnman_free_trn:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
lea r14, [rdi+10h]
cmp qword ptr [rdi+50h], 0
jnz short loc_609FA
mov rdi, r14
call _pthread_mutex_lock
loc_609C5:
mov word ptr [rbx+0ACh], 0
mov rdi, [rbx+50h]
test rdi, rdi
jnz short loc_60A10
loc_609D7:
mov rdi, r14
call _pthread_mutex_unlock
mov rax, cs:pool
loc_609E6:
mov [rbx+68h], rax
lock cmpxchg cs:pool, rbx
jnz short loc_609E6
pop rbx
pop r14
pop rbp
retn
loc_609FA:
lea rsi, aWorkspaceLlm4b_9; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, r14
mov edx, 22Dh
call psi_mutex_lock
jmp short loc_609C5
loc_60A10:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_609D7
| signed long long trnman_free_trn(signed long long a1)
{
signed long long result; // rax
signed long long v2; // rtt
if ( *(_QWORD *)(a1 + 80) )
psi_mutex_lock(a1 + 16, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c", 0x22Du);
else
pthread_mutex_lock(a1 + 16);
*(_WORD *)(a1 + 172) = 0;
if ( *(_QWORD *)(a1 + 80) )
PSI_server[44]();
pthread_mutex_unlock(a1 + 16);
result = pool;
do
{
*(_QWORD *)(a1 + 104) = result;
v2 = result;
result = _InterlockedCompareExchange64(&pool, a1, result);
}
while ( v2 != result );
return result;
}
| trnman_free_trn:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
LEA R14,[RDI + 0x10]
CMP qword ptr [RDI + 0x50],0x0
JNZ 0x001609fa
MOV RDI,R14
CALL 0x00129200
LAB_001609c5:
MOV word ptr [RBX + 0xac],0x0
MOV RDI,qword ptr [RBX + 0x50]
TEST RDI,RDI
JNZ 0x00160a10
LAB_001609d7:
MOV RDI,R14
CALL 0x001291c0
MOV RAX,qword ptr [0x00cff238]
LAB_001609e6:
MOV qword ptr [RBX + 0x68],RAX
CMPXCHG.LOCK qword ptr [0x00cff238],RBX
JNZ 0x001609e6
POP RBX
POP R14
POP RBP
RET
LAB_001609fa:
LEA RSI,[0x1da8c8]
MOV RDI,R14
MOV EDX,0x22d
CALL 0x0012eb6f
JMP 0x001609c5
LAB_00160a10:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x001609d7
|
void trnman_free_trn(long param_1)
{
pthread_mutex_t *__mutex;
long lVar1;
long lVar2;
bool bVar3;
__mutex = (pthread_mutex_t *)(param_1 + 0x10);
if (*(long *)(param_1 + 0x50) == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c",0x22d);
}
*(int2 *)(param_1 + 0xac) = 0;
if (*(long *)(param_1 + 0x50) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
lVar2 = pool;
do {
*(long *)(param_1 + 0x68) = lVar2;
LOCK();
bVar3 = lVar2 != pool;
lVar1 = param_1;
if (bVar3) {
lVar2 = pool;
lVar1 = pool;
}
pool = lVar1;
UNLOCK();
} while (bVar3);
return;
}
| |
22,303 | psi_cond_wait | eloqsql/mysys/my_thr_init.c | ATTRIBUTE_COLD int psi_cond_wait(mysql_cond_t *that, mysql_mutex_t *mutex,
const char *file, uint line)
{
PSI_cond_locker_state state;
PSI_cond_locker *locker= PSI_COND_CALL(start_cond_wait)
(&state, that->m_psi, mutex->m_psi, PSI_COND_WAIT, file, line);
int result= my_cond_wait(&that->m_cond, &mutex->m_mutex);
if (locker)
PSI_COND_CALL(end_cond_wait)(locker, result);
return result;
} | O0 | c | psi_cond_wait:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
leaq 0x1c952a(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x1c0(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x30(%rcx), %rsi
movq -0x10(%rbp), %rcx
movq 0x40(%rcx), %rdx
movq -0x18(%rbp), %r8
movl -0x1c(%rbp), %r9d
leaq -0x58(%rbp), %rdi
xorl %ecx, %ecx
callq *%rax
movq %rax, -0x60(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x2a400
movl %eax, -0x64(%rbp)
cmpq $0x0, -0x60(%rbp)
je 0xf6bed
leaq 0x1c94de(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x1c8(%rax), %rax
movq -0x60(%rbp), %rdi
movl -0x64(%rbp), %esi
callq *%rax
movl -0x64(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| psi_cond_wait:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1C0h]
mov rcx, [rbp+var_8]
mov rsi, [rcx+30h]
mov rcx, [rbp+var_10]
mov rdx, [rcx+40h]
mov r8, [rbp+var_18]
mov r9d, [rbp+var_1C]
lea rdi, [rbp+var_58]
xor ecx, ecx
call rax
mov [rbp+var_60], rax
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
call _pthread_cond_wait
mov [rbp+var_64], eax
cmp [rbp+var_60], 0
jz short loc_F6BED
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1C8h]
mov rdi, [rbp+var_60]
mov esi, [rbp+var_64]
call rax
loc_F6BED:
mov eax, [rbp+var_64]
add rsp, 70h
pop rbp
retn
| long long psi_cond_wait(long long a1, long long a2, long long a3, unsigned int a4)
{
unsigned int v5; // [rsp+Ch] [rbp-64h]
long long v6; // [rsp+10h] [rbp-60h]
_BYTE v7[60]; // [rsp+18h] [rbp-58h] BYREF
unsigned int v8; // [rsp+54h] [rbp-1Ch]
long long v9; // [rsp+58h] [rbp-18h]
long long v10; // [rsp+60h] [rbp-10h]
long long v11; // [rsp+68h] [rbp-8h]
v11 = a1;
v10 = a2;
v9 = a3;
v8 = a4;
v6 = ((long long ( *)(_BYTE *, _QWORD, _QWORD, _QWORD, long long, _QWORD))PSI_server[56])(
v7,
*(_QWORD *)(a1 + 48),
*(_QWORD *)(a2 + 64),
0LL,
a3,
a4);
v5 = pthread_cond_wait(v11, v10);
if ( v6 )
((void ( *)(long long, _QWORD))PSI_server[57])(v6, v5);
return v5;
}
| psi_cond_wait:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV dword ptr [RBP + -0x1c],ECX
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1c0]
MOV RCX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RCX + 0x30]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RCX + 0x40]
MOV R8,qword ptr [RBP + -0x18]
MOV R9D,dword ptr [RBP + -0x1c]
LEA RDI,[RBP + -0x58]
XOR ECX,ECX
CALL RAX
MOV qword ptr [RBP + -0x60],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x0012a400
MOV dword ptr [RBP + -0x64],EAX
CMP qword ptr [RBP + -0x60],0x0
JZ 0x001f6bed
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1c8]
MOV RDI,qword ptr [RBP + -0x60]
MOV ESI,dword ptr [RBP + -0x64]
CALL RAX
LAB_001f6bed:
MOV EAX,dword ptr [RBP + -0x64]
ADD RSP,0x70
POP RBP
RET
|
int psi_cond_wait(pthread_cond_t *param_1,pthread_mutex_t *param_2,int8 param_3,
int4 param_4)
{
int iVar1;
long lVar2;
int1 local_60 [60];
int4 local_24;
int8 local_20;
pthread_mutex_t *local_18;
pthread_cond_t *local_10;
local_24 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
lVar2 = (**(code **)(PSI_server + 0x1c0))
(local_60,param_1[1].__align,*(int8 *)((long)param_2 + 0x40),0,param_3,
param_4);
iVar1 = pthread_cond_wait(local_10,local_18);
if (lVar2 != 0) {
(**(code **)(PSI_server + 0x1c8))(lVar2,iVar1);
}
return iVar1;
}
| |
22,304 | google::protobuf::compiler::java::ImmutableEnumOneofFieldGenerator::GenerateHashCode(google::protobuf::io::Printer*) const | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/enum_field.cc | void ImmutableEnumOneofFieldGenerator::GenerateHashCode(
io::Printer* printer) const {
if (SupportUnknownEnumValue(descriptor_->file())) {
printer->Print(variables_,
"hash = (37 * hash) + $constant_name$;\n"
"hash = (53 * hash) + get$capitalized_name$Value();\n");
} else {
printer->Print(
variables_,
"hash = (37 * hash) + $constant_name$;\n"
"hash = (53 * hash) + get$capitalized_name$().getNumber();\n");
}
} | O3 | cpp | google::protobuf::compiler::java::ImmutableEnumOneofFieldGenerator::GenerateHashCode(google::protobuf::io::Printer*) const:
movq %rsi, %rax
movq 0x8(%rdi), %rcx
movq 0x10(%rcx), %rcx
cmpb $0x3, 0x3(%rcx)
leaq 0xf3f17(%rip), %rcx # 0x1e8e73
leaq 0xf3f6a(%rip), %rdx # 0x1e8ecd
cmoveq %rcx, %rdx
leaq 0x18(%rdi), %rsi
movq %rax, %rdi
jmp 0x16cd32
nop
| _ZNK6google8protobuf8compiler4java32ImmutableEnumOneofFieldGenerator16GenerateHashCodeEPNS0_2io7PrinterE:
mov rax, rsi
mov rcx, [rdi+8]
mov rcx, [rcx+10h]
cmp byte ptr [rcx+3], 3
lea rcx, aHash37HashCons_2; "hash = (37 * hash) + $constant_name$;\n"...
lea rdx, aHash37HashCons_3; "hash = (37 * hash) + $constant_name$;\n"...
cmovz rdx, rcx
lea rsi, [rdi+18h]
mov rdi, rax; this
jmp _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*)
| long long google::protobuf::compiler::java::ImmutableEnumOneofFieldGenerator::GenerateHashCode(
google::protobuf::compiler::java::ImmutableEnumOneofFieldGenerator *this,
google::protobuf::io::Printer *a2,
long long a3,
long long a4,
long long a5,
long long a6,
void *a7,
int a8,
char a9,
int a10,
int a11,
int a12,
int a13,
int a14,
int a15,
void *a16,
int a17,
char a18)
{
return google::protobuf::io::Printer::Print(a2, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18);
}
| GenerateHashCode:
MOV RAX,RSI
MOV RCX,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RCX + 0x10]
CMP byte ptr [RCX + 0x3],0x3
LEA RCX,[0x2e8e73]
LEA RDX,[0x2e8ecd]
CMOVZ RDX,RCX
LEA RSI,[RDI + 0x18]
MOV RDI,RAX
JMP 0x0026cd32
|
/* google::protobuf::compiler::java::ImmutableEnumOneofFieldGenerator::GenerateHashCode(google::protobuf::io::Printer*)
const */
void __thiscall
google::protobuf::compiler::java::ImmutableEnumOneofFieldGenerator::GenerateHashCode
(ImmutableEnumOneofFieldGenerator *this,Printer *param_1)
{
char *pcVar1;
pcVar1 =
"hash = (37 * hash) + $constant_name$;\nhash = (53 * hash) + get$capitalized_name$().getNumber();\n"
;
if (*(char *)(*(long *)(*(long *)(this + 8) + 0x10) + 3) == '\x03') {
pcVar1 =
"hash = (37 * hash) + $constant_name$;\nhash = (53 * hash) + get$capitalized_name$Value();\n";
}
io::Printer::Print(param_1,(map *)(this + 0x18),pcVar1);
return;
}
| |
22,305 | OpenSubdiv::v3_6_0::Far::PatchTable::GetNumLocalPointsFaceVarying(int) const | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp | int
PatchTable::GetNumLocalPointsFaceVarying(int channel) const {
if (channel>=0 && channel<(int)_localPointFaceVaryingStencils.size()) {
if (!_localPointFaceVaryingStencils[channel]) return 0;
return _faceVaryingPrecisionIsDouble
? _localPointFaceVaryingStencils[channel].Get<double>()->GetNumStencils()
: _localPointFaceVaryingStencils[channel].Get<float>()->GetNumStencils();
}
return 0;
} | O0 | cpp | OpenSubdiv::v3_6_0::Far::PatchTable::GetNumLocalPointsFaceVarying(int) const:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpl $0x0, -0x14(%rbp)
jl 0x13ff4d
movq -0x20(%rbp), %rdi
movl -0x14(%rbp), %eax
movl %eax, -0x24(%rbp)
addq $0xc8, %rdi
callq 0xd1c90
movq %rax, %rcx
movl -0x24(%rbp), %eax
cmpl %ecx, %eax
jge 0x13ff4d
movq -0x20(%rbp), %rdi
addq $0xc8, %rdi
movslq -0x14(%rbp), %rsi
callq 0xcc6a0
movq %rax, %rdi
callq 0xce200
testb $0x1, %al
jne 0x13fede
movl $0x0, -0x4(%rbp)
jmp 0x13ff54
movq -0x20(%rbp), %rax
movb 0x110(%rax), %al
shrb $0x3, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x13ff1e
movq -0x20(%rbp), %rdi
addq $0xc8, %rdi
movslq -0x14(%rbp), %rsi
callq 0xcc6a0
movq %rax, %rdi
callq 0xd6890
movq %rax, %rdi
callq 0xd68a0
movl %eax, -0x28(%rbp)
jmp 0x13ff45
movq -0x20(%rbp), %rdi
addq $0xc8, %rdi
movslq -0x14(%rbp), %rsi
callq 0xcc6a0
movq %rax, %rdi
callq 0xc9ca0
movq %rax, %rdi
callq 0xd62c0
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x13ff54
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
| _ZNK10OpenSubdiv6v3_6_03Far10PatchTable28GetNumLocalPointsFaceVaryingEi:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov rax, [rbp+var_10]
mov [rbp+var_20], rax
cmp [rbp+var_14], 0
jl loc_13FF4D
mov rdi, [rbp+var_20]
mov eax, [rbp+var_14]
mov [rbp+var_24], eax
add rdi, 0C8h
call __ZNKSt6vectorIN10OpenSubdiv6v3_6_03Far10PatchTable15StencilTablePtrESaIS4_EE4sizeEv; std::vector<OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr>::size(void)
mov rcx, rax
mov eax, [rbp+var_24]
cmp eax, ecx
jge loc_13FF4D
mov rdi, [rbp+var_20]
add rdi, 0C8h
movsxd rsi, [rbp+var_14]
call __ZNKSt6vectorIN10OpenSubdiv6v3_6_03Far10PatchTable15StencilTablePtrESaIS4_EEixEm; std::vector<OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr>::operator[](ulong)
mov rdi, rax
call __ZNK10OpenSubdiv6v3_6_03Far10PatchTable15StencilTablePtrcvbEv; OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr::operator bool(void)
test al, 1
jnz short loc_13FEDE
mov [rbp+var_4], 0
jmp short loc_13FF54
loc_13FEDE:
mov rax, [rbp+var_20]
mov al, [rax+110h]
shr al, 3
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_13FF1E
mov rdi, [rbp+var_20]
add rdi, 0C8h
movsxd rsi, [rbp+var_14]
call __ZNKSt6vectorIN10OpenSubdiv6v3_6_03Far10PatchTable15StencilTablePtrESaIS4_EEixEm; std::vector<OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr>::operator[](ulong)
mov rdi, rax
call __ZNK10OpenSubdiv6v3_6_03Far10PatchTable15StencilTablePtr3GetIdEEPNS1_16StencilTableRealIT_EEv; OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr::Get<double>(void)
mov rdi, rax
call __ZNK10OpenSubdiv6v3_6_03Far16StencilTableRealIdE14GetNumStencilsEv; OpenSubdiv::v3_6_0::Far::StencilTableReal<double>::GetNumStencils(void)
mov [rbp+var_28], eax
jmp short loc_13FF45
loc_13FF1E:
mov rdi, [rbp+var_20]
add rdi, 0C8h
movsxd rsi, [rbp+var_14]
call __ZNKSt6vectorIN10OpenSubdiv6v3_6_03Far10PatchTable15StencilTablePtrESaIS4_EEixEm; std::vector<OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr>::operator[](ulong)
mov rdi, rax
call __ZNK10OpenSubdiv6v3_6_03Far10PatchTable15StencilTablePtr3GetIfEEPNS1_16StencilTableRealIT_EEv; OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr::Get<float>(void)
mov rdi, rax
call __ZNK10OpenSubdiv6v3_6_03Far16StencilTableRealIfE14GetNumStencilsEv; OpenSubdiv::v3_6_0::Far::StencilTableReal<float>::GetNumStencils(void)
mov [rbp+var_28], eax
loc_13FF45:
mov eax, [rbp+var_28]
mov [rbp+var_4], eax
jmp short loc_13FF54
loc_13FF4D:
mov [rbp+var_4], 0
loc_13FF54:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long OpenSubdiv::v3_6_0::Far::PatchTable::GetNumLocalPointsFaceVarying(
OpenSubdiv::v3_6_0::Far::PatchTable *this,
int a2)
{
long long v2; // rax
long long v3; // rax
long long v4; // rax
long long v5; // rax
long long v6; // rax
if ( a2 < 0 || a2 >= (int)std::vector<OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr>::size((char *)this + 200) )
{
return 0;
}
else
{
v2 = std::vector<OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr>::operator[]((char *)this + 200, a2);
if ( (OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr::operator bool(v2) & 1) != 0 )
{
if ( (*((_BYTE *)this + 272) & 8) != 0 )
{
v3 = std::vector<OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr>::operator[]((char *)this + 200, a2);
v4 = OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr::Get<double>(v3);
return (unsigned int)OpenSubdiv::v3_6_0::Far::StencilTableReal<double>::GetNumStencils(v4);
}
else
{
v5 = std::vector<OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr>::operator[]((char *)this + 200, a2);
v6 = OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr::Get<float>(v5);
return (unsigned int)OpenSubdiv::v3_6_0::Far::StencilTableReal<float>::GetNumStencils(v6);
}
}
else
{
return 0;
}
}
}
| |||
22,306 | OpenSubdiv::v3_6_0::Far::PatchTable::GetNumLocalPointsFaceVarying(int) const | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp | int
PatchTable::GetNumLocalPointsFaceVarying(int channel) const {
if (channel>=0 && channel<(int)_localPointFaceVaryingStencils.size()) {
if (!_localPointFaceVaryingStencils[channel]) return 0;
return _faceVaryingPrecisionIsDouble
? _localPointFaceVaryingStencils[channel].Get<double>()->GetNumStencils()
: _localPointFaceVaryingStencils[channel].Get<float>()->GetNumStencils();
}
return 0;
} | O2 | cpp | OpenSubdiv::v3_6_0::Far::PatchTable::GetNumLocalPointsFaceVarying(int) const:
xorl %eax, %eax
testl %esi, %esi
js 0x7c354
movq 0xc8(%rdi), %rcx
movq 0xd0(%rdi), %rdx
subq %rcx, %rdx
shrq $0x3, %rdx
cmpl %esi, %edx
jle 0x7c354
movl %esi, %edx
movq (%rcx,%rdx,8), %rcx
testq %rcx, %rcx
je 0x7c354
movq 0x18(%rcx), %rax
subq 0x10(%rcx), %rax
shrq $0x2, %rax
retq
nop
| _ZNK10OpenSubdiv6v3_6_03Far10PatchTable28GetNumLocalPointsFaceVaryingEi:
xor eax, eax
test esi, esi
js short locret_7C354
mov rcx, [rdi+0C8h]
mov rdx, [rdi+0D0h]
sub rdx, rcx
shr rdx, 3
cmp edx, esi
jle short locret_7C354
mov edx, esi
mov rcx, [rcx+rdx*8]
test rcx, rcx
jz short locret_7C354
mov rax, [rcx+18h]
sub rax, [rcx+10h]
shr rax, 2
locret_7C354:
retn
| long long OpenSubdiv::v3_6_0::Far::PatchTable::GetNumLocalPointsFaceVarying(
OpenSubdiv::v3_6_0::Far::PatchTable *this,
int a2)
{
long long result; // rax
long long v3; // rcx
long long v4; // rcx
result = 0LL;
if ( a2 >= 0 )
{
v3 = *((_QWORD *)this + 25);
if ( (int)((unsigned long long)(*((_QWORD *)this + 26) - v3) >> 3) > a2 )
{
v4 = *(_QWORD *)(v3 + 8LL * (unsigned int)a2);
if ( v4 )
return (*(_QWORD *)(v4 + 24) - *(_QWORD *)(v4 + 16)) >> 2;
}
}
return result;
}
| GetNumLocalPointsFaceVarying:
XOR EAX,EAX
TEST ESI,ESI
JS 0x0017c354
MOV RCX,qword ptr [RDI + 0xc8]
MOV RDX,qword ptr [RDI + 0xd0]
SUB RDX,RCX
SHR RDX,0x3
CMP EDX,ESI
JLE 0x0017c354
MOV EDX,ESI
MOV RCX,qword ptr [RCX + RDX*0x8]
TEST RCX,RCX
JZ 0x0017c354
MOV RAX,qword ptr [RCX + 0x18]
SUB RAX,qword ptr [RCX + 0x10]
SHR RAX,0x2
LAB_0017c354:
RET
|
/* OpenSubdiv::v3_6_0::Far::PatchTable::GetNumLocalPointsFaceVarying(int) const */
ulong __thiscall
OpenSubdiv::v3_6_0::Far::PatchTable::GetNumLocalPointsFaceVarying(PatchTable *this,int param_1)
{
long lVar1;
ulong uVar2;
uVar2 = 0;
if (((-1 < param_1) &&
(param_1 < (int)((ulong)(*(long *)(this + 0xd0) - *(long *)(this + 200)) >> 3))) &&
(lVar1 = *(long *)(*(long *)(this + 200) + (ulong)(uint)param_1 * 8), lVar1 != 0)) {
uVar2 = (ulong)(*(long *)(lVar1 + 0x18) - *(long *)(lVar1 + 0x10)) >> 2;
}
return uVar2;
}
| |
22,307 | diag | eloqsql/unittest/mytap/tap.c | void
diag(char const *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
fprintf(tapout, "# ");
vfprintf(tapout, fmt, ap);
emit_endl();
va_end(ap);
} | O3 | c | diag:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rbx
leaq -0xe0(%rbp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x2582a
movaps %xmm0, -0xb0(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm2, -0x90(%rbp)
movaps %xmm3, -0x80(%rbp)
movaps %xmm4, -0x70(%rbp)
movaps %xmm5, -0x60(%rbp)
movaps %xmm6, -0x50(%rbp)
movaps %xmm7, -0x40(%rbp)
leaq -0x30(%rbp), %r14
movq %rdi, 0x10(%r14)
leaq 0x10(%rbp), %rax
movq %rax, 0x8(%r14)
movabsq $0x3000000008, %rax # imm = 0x3000000008
movq %rax, (%r14)
movq 0x2c9762(%rip), %r15 # 0x2eefb0
movq (%r15), %rdi
leaq 0x3696d(%rip), %rdx # 0x5c1c5
movl $0x1, %esi
xorl %eax, %eax
callq 0x24530
movq (%r15), %rdi
movl $0x1, %esi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x240d0
movq (%r15), %rdi
leaq 0x3a3f6(%rip), %rdx # 0x5fc77
movl $0x1, %esi
xorl %eax, %eax
callq 0x24530
movq (%r15), %rdi
callq 0x24360
addq $0xc8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| diag:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 0C8h
mov rbx, rdi
lea rdi, [rbp+var_E0]
mov [rdi+8], rsi
mov [rdi+10h], rdx
mov [rdi+18h], rcx
mov [rdi+20h], r8
mov [rdi+28h], r9
test al, al
jz short loc_2582A
movaps [rbp+var_B0], xmm0
movaps [rbp+var_A0], xmm1
movaps [rbp+var_90], xmm2
movaps [rbp+var_80], xmm3
movaps [rbp+var_70], xmm4
movaps [rbp+var_60], xmm5
movaps [rbp+var_50], xmm6
movaps [rbp+var_40], xmm7
loc_2582A:
lea r14, [rbp+var_30]
mov [r14+10h], rdi
lea rax, [rbp+arg_0]
mov [r14+8], rax
mov rax, 3000000008h
mov [r14], rax
mov r15, cs:stdout_ptr
mov rdi, [r15]
lea rdx, asc_5C1C5; "# "
mov esi, 1
xor eax, eax
call ___fprintf_chk
mov rdi, [r15]
mov esi, 1
mov rdx, rbx
mov rcx, r14
call ___vfprintf_chk
mov rdi, [r15]
lea rdx, asc_5FC74+3; "\n"
mov esi, 1
xor eax, eax
call ___fprintf_chk
mov rdi, [r15]
call _fflush
add rsp, 0C8h
pop rbx
pop r14
pop r15
pop rbp
retn
| long long diag(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
char a15)
{
char v16; // [rsp+0h] [rbp-E0h] BYREF
long long v17; // [rsp+8h] [rbp-D8h]
long long v18; // [rsp+10h] [rbp-D0h]
long long v19; // [rsp+18h] [rbp-C8h]
long long v20; // [rsp+20h] [rbp-C0h]
long long v21; // [rsp+28h] [rbp-B8h]
__m128 v22; // [rsp+30h] [rbp-B0h]
__m128 v23; // [rsp+40h] [rbp-A0h]
__m128 v24; // [rsp+50h] [rbp-90h]
__m128 v25; // [rsp+60h] [rbp-80h]
__m128 v26; // [rsp+70h] [rbp-70h]
__m128 v27; // [rsp+80h] [rbp-60h]
__m128 v28; // [rsp+90h] [rbp-50h]
__m128 v29; // [rsp+A0h] [rbp-40h]
_QWORD v30[6]; // [rsp+B0h] [rbp-30h] BYREF
v22 = a7;
v23 = a8;
v24 = a9;
v25 = a10;
v26 = a11;
v27 = a12;
v28 = a13;
v29 = a14;
v17 = a2;
v18 = a3;
v19 = a4;
v20 = a5;
v21 = a6;
v30[2] = &v16;
v30[1] = &a15;
v30[0] = 0x3000000008LL;
__fprintf_chk(stdout, 1LL, "# ");
__vfprintf_chk(stdout, 1LL, a1, v30);
__fprintf_chk(stdout, 1LL, "\n");
return fflush(stdout);
}
| diag:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0xc8
MOV RBX,RDI
LEA RDI,[RBP + -0xe0]
MOV qword ptr [RDI + 0x8],RSI
MOV qword ptr [RDI + 0x10],RDX
MOV qword ptr [RDI + 0x18],RCX
MOV qword ptr [RDI + 0x20],R8
MOV qword ptr [RDI + 0x28],R9
TEST AL,AL
JZ 0x0012582a
MOVAPS xmmword ptr [RBP + -0xb0],XMM0
MOVAPS xmmword ptr [RBP + -0xa0],XMM1
MOVAPS xmmword ptr [RBP + -0x90],XMM2
MOVAPS xmmword ptr [RBP + -0x80],XMM3
MOVAPS xmmword ptr [RBP + -0x70],XMM4
MOVAPS xmmword ptr [RBP + -0x60],XMM5
MOVAPS xmmword ptr [RBP + -0x50],XMM6
MOVAPS xmmword ptr [RBP + -0x40],XMM7
LAB_0012582a:
LEA R14,[RBP + -0x30]
MOV qword ptr [R14 + 0x10],RDI
LEA RAX,[RBP + 0x10]
MOV qword ptr [R14 + 0x8],RAX
MOV RAX,0x3000000008
MOV qword ptr [R14],RAX
MOV R15,qword ptr [0x003eefb0]
MOV RDI,qword ptr [R15]
LEA RDX,[0x15c1c5]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x00124530
MOV RDI,qword ptr [R15]
MOV ESI,0x1
MOV RDX,RBX
MOV RCX,R14
CALL 0x001240d0
MOV RDI,qword ptr [R15]
LEA RDX,[0x15fc77]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x00124530
MOV RDI,qword ptr [R15]
CALL 0x00124360
ADD RSP,0xc8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void diag(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
int8 param_9,int8 param_10,int8 param_11,int8 param_12,
int8 param_13,int8 param_14)
{
int *puVar1;
char in_AL;
int1 local_e8 [8];
int8 local_e0;
int8 local_d8;
int8 local_d0;
int8 local_c8;
int8 local_c0;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int8 local_48;
int8 local_38;
int1 *local_30;
int1 *local_28;
puVar1 = PTR_stdout_003eefb0;
local_28 = local_e8;
if (in_AL != '\0') {
local_b8 = param_1;
local_a8 = param_2;
local_98 = param_3;
local_88 = param_4;
local_78 = param_5;
local_68 = param_6;
local_58 = param_7;
local_48 = param_8;
}
local_30 = &stack0x00000008;
local_38 = 0x3000000008;
local_e0 = param_10;
local_d8 = param_11;
local_d0 = param_12;
local_c8 = param_13;
local_c0 = param_14;
__fprintf_chk(*(int8 *)PTR_stdout_003eefb0,1,&DAT_0015c1c5);
__vfprintf_chk(*(int8 *)puVar1,1,param_9,&local_38);
__fprintf_chk(*(int8 *)puVar1,1,&DAT_0015fc77);
fflush(*(FILE **)puVar1);
return;
}
| |
22,308 | testing::internal::ForkingDeathTest::Wait() | giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest-death-test.cc | int ForkingDeathTest::Wait() {
if (!spawned()) return 0;
ReadAndInterpretStatusByte();
int status_value;
GTEST_DEATH_TEST_CHECK_SYSCALL_(waitpid(child_pid_, &status_value, 0));
set_status(status_value);
return status_value;
} | O1 | cpp | testing::internal::ForkingDeathTest::Wait():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp # imm = 0x118
xorl %eax, %eax
cmpb $0x1, 0x28(%rdi)
jne 0x1093d
movq %rdi, %rbx
callq 0xf430
leaq 0xc(%rsp), %r14
movl 0x3c(%rbx), %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0x83d0
cmpl $-0x1, %eax
jne 0x10936
callq 0x8070
cmpl $0x4, (%rax)
je 0x108c0
leaq 0xe8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3177e(%rip), %rsi # 0x4206d
leaq 0x3178a(%rip), %rdx # 0x42080
leaq 0xd8(%rsp), %rbx
movq %rbx, %rdi
callq 0x39504
leaq 0x31679(%rip), %rsi # 0x41f86
movq %rbx, %rdi
callq 0x8a50
leaq 0x68(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x1094f
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x1095c
movl 0xc(%rsp), %eax
movl %eax, 0x2c(%rbx)
addq $0x118, %rsp # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, 0x58(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x68(%rsp)
movq 0x8(%rax), %rdx
leaq 0x58(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x31702(%rip), %rsi # 0x42081
callq 0x8a50
leaq 0x48(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x109a7
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x109b4
movq %rdx, 0x38(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x48(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x40(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x34(%rsp), %rsi
movl $0x43d, (%rsi) # imm = 0x43D
leaq 0xb8(%rsp), %rdi
callq 0x32327
leaq 0xf8(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0xb8(%rsp), %rdx
callq 0x3227f
leaq 0x32c6f(%rip), %rsi # 0x43674
leaq 0xf8(%rsp), %rdi
callq 0x8a50
leaq 0x88(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x10a37
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x10a47
movq %rdx, 0x78(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x88(%rsp)
movq 0x8(%rax), %rdx
leaq 0x78(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x317a9(%rip), %rsi # 0x42213
callq 0x8a50
leaq 0xa8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x10a93
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x10aa6
movq %rdx, 0x98(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa8(%rsp)
movq 0x8(%rax), %rdx
leaq 0x98(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x317d2(%rip), %rsi # 0x4229e
callq 0x8a50
leaq 0x20(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x10af6
movups (%rcx), %xmm0
leaq 0x20(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x10b03
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
movq 0x8(%rax), %rdx
leaq 0x10(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0xf2fd
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x10b48
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x84e0
jmp 0x10b48
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %rbp, %rdi
je 0x10b6a
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x84e0
jmp 0x10b6a
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
je 0x10b89
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x84e0
jmp 0x10b89
movq %rax, %rbx
leaq 0x108(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10baf
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x84e0
jmp 0x10baf
movq %rax, %rbx
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10bd5
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x84e0
jmp 0x10bd5
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x10bf1
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x84e0
jmp 0x10bf1
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x10c0d
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x84e0
jmp 0x10c0d
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x10c2a
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x84e0
movq %rbx, %rdi
callq 0x8990
| _ZN7testing8internal16ForkingDeathTest4WaitEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 118h
xor eax, eax
cmp byte ptr [rdi+28h], 1
jnz loc_1093D
mov rbx, rdi
call _ZN7testing8internal13DeathTestImpl26ReadAndInterpretStatusByteEv; testing::internal::DeathTestImpl::ReadAndInterpretStatusByte(void)
lea r14, [rsp+148h+var_13C]
loc_108C0:
mov edi, [rbx+3Ch]
mov rsi, r14
xor edx, edx
call _waitpid
cmp eax, 0FFFFFFFFh
jnz short loc_10936
call ___errno_location
cmp dword ptr [rax], 4
jz short loc_108C0
lea r14, [rsp+148h+var_60]
mov [r14-10h], r14
lea rsi, aCheckFailedFil; "CHECK failed: File "
lea rdx, aCheckFailedFil+13h; ""
lea rbx, [rsp+148h+var_70]
mov rdi, rbx
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, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea r15, [rsp+148h+var_E0]
mov [r15-10h], r15
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jnz short loc_1094F
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r15], xmm0
jmp short loc_1095C
loc_10936:
mov eax, [rsp+148h+var_13C]
mov [rbx+2Ch], eax
loc_1093D:
add rsp, 118h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_1094F:
mov [rsp+148h+var_F0], rdx
mov rdx, [rcx]
mov [rsp+148h+var_E0], rdx
loc_1095C:
mov rdx, [rax+8]
lea rdi, [rsp+148h+var_F0]
mov [rdi+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea rsi, aLine; ", line "
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea r12, [rsp+148h+var_100]
mov [r12-10h], r12
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jnz short loc_109A7
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r12], xmm0
jmp short loc_109B4
loc_109A7:
mov [rsp+148h+var_110], rdx
mov rdx, [rcx]
mov [rsp+148h+var_100], rdx
loc_109B4:
mov rdx, [rax+8]
mov [rsp+148h+var_108], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea rsi, [rsp+148h+var_114]
mov dword ptr [rsi], 43Dh
lea rdi, [rsp+148h+var_90]
call _ZN7testing8internal18StreamableToStringIiEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::internal::StreamableToString<int>(int const&)
lea rdi, [rsp+148h+var_50]
lea rsi, [rsp+148h+var_110]
lea rdx, [rsp+148h+var_90]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
lea rsi, asc_43673+1; ": "
lea rdi, [rsp+148h+var_50]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea r13, [rsp+148h+var_C0]
mov [r13-10h], r13
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jnz short loc_10A37
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r13+0], xmm0
jmp short loc_10A47
loc_10A37:
mov [rsp+148h+var_D0], rdx
mov rdx, [rcx]
mov [rsp+148h+var_C0], rdx
loc_10A47:
mov rdx, [rax+8]
lea rdi, [rsp+148h+var_D0]
mov [rdi+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea rsi, aWaitpidChildPi; "waitpid(child_pid_, &status_value, 0)"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rbp, [rsp+148h+var_A0]
mov [rbp-10h], rbp
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jnz short loc_10A93
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rbp+0], xmm0
jmp short loc_10AA6
loc_10A93:
mov [rsp+148h+var_B0], rdx
mov rdx, [rcx]
mov [rsp+148h+var_A0], rdx
loc_10AA6:
mov rdx, [rax+8]
lea rdi, [rsp+148h+var_B0]
mov [rdi+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea rsi, aFcntlPipeFd1FS+1Dh; " != -1"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rcx, [rsp+148h+var_128]
mov [rcx-10h], rcx
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jnz short loc_10AF6
movups xmm0, xmmword ptr [rcx]
lea rdx, [rsp+148h+var_128]
movups xmmword ptr [rdx], xmm0
jmp short loc_10B03
loc_10AF6:
mov [rsp+148h+var_138], rdx
mov rdx, [rcx]
mov [rsp+148h+var_128], rdx
loc_10B03:
mov rdx, [rax+8]
lea rdi, [rsp+148h+var_138]
mov [rdi+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
call _ZN7testing8internalL14DeathTestAbortERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::DeathTestAbort(std::string const&)
mov rbx, rax
mov rdi, [rsp+148h+var_138]; void *
lea rax, [rsp+148h+var_128]
cmp rdi, rax
jz short loc_10B48
mov rsi, [rsp+148h+var_128]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_10B48
mov rbx, rax
loc_10B48:
mov rdi, [rsp+148h+var_B0]; void *
cmp rdi, rbp
jz short loc_10B6A
mov rsi, [rsp+148h+var_A0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_10B6A
mov rbx, rax
loc_10B6A:
mov rdi, [rsp+148h+var_D0]; void *
cmp rdi, r13
jz short loc_10B89
mov rsi, [rsp+148h+var_C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_10B89
mov rbx, rax
loc_10B89:
lea rax, [rsp+148h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_10BAF
mov rsi, [rsp+148h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_10BAF
mov rbx, rax
loc_10BAF:
lea rax, [rsp+148h+var_80]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_10BD5
mov rsi, [rsp+148h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_10BD5
mov rbx, rax
loc_10BD5:
mov rdi, [rsp+148h+var_110]; void *
cmp rdi, r12
jz short loc_10BF1
mov rsi, [rsp+148h+var_100]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_10BF1
mov rbx, rax
loc_10BF1:
mov rdi, [rsp+148h+var_F0]; void *
cmp rdi, r15
jz short loc_10C0D
mov rsi, [rsp+148h+var_E0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_10C0D
mov rbx, rax
loc_10C0D:
mov rdi, [rsp+148h+var_70]; void *
cmp rdi, r14
jz short loc_10C2A
mov rsi, [rsp+148h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_10C2A:
mov rdi, rbx
call __Unwind_Resume
| long long testing::internal::ForkingDeathTest::Wait(testing::internal::ForkingDeathTest *this)
{
long long result; // rax
long long v2; // rax
__int128 *v3; // rcx
long long v4; // rax
__int128 *v5; // rcx
long long v6; // rax
__int128 *v7; // rcx
long long v8; // rax
__int128 *v9; // rcx
long long v10; // rax
long long v11; // r8
long long v12; // r9
__int128 *v13; // rcx
long long v14; // rdx
long long v15; // rbx
char v16; // [rsp+0h] [rbp-148h]
unsigned int v17; // [rsp+Ch] [rbp-13Ch] BYREF
void *v18; // [rsp+10h] [rbp-138h] BYREF
long long v19; // [rsp+18h] [rbp-130h]
__int128 v20; // [rsp+20h] [rbp-128h] BYREF
int v21; // [rsp+34h] [rbp-114h] BYREF
void *v22[2]; // [rsp+38h] [rbp-110h] BYREF
__int128 v23; // [rsp+48h] [rbp-100h] BYREF
void *v24[2]; // [rsp+58h] [rbp-F0h] BYREF
__int128 v25; // [rsp+68h] [rbp-E0h] BYREF
void *v26[2]; // [rsp+78h] [rbp-D0h] BYREF
__int128 v27; // [rsp+88h] [rbp-C0h] BYREF
void *v28[2]; // [rsp+98h] [rbp-B0h] BYREF
__int128 v29; // [rsp+A8h] [rbp-A0h] BYREF
void *v30[2]; // [rsp+B8h] [rbp-90h] BYREF
long long v31; // [rsp+C8h] [rbp-80h] BYREF
void *v32[2]; // [rsp+D8h] [rbp-70h] BYREF
_QWORD v33[2]; // [rsp+E8h] [rbp-60h] BYREF
void *v34[2]; // [rsp+F8h] [rbp-50h] BYREF
long long v35; // [rsp+108h] [rbp-40h] BYREF
result = 0LL;
if ( *((_BYTE *)this + 40) == 1 )
{
testing::internal::DeathTestImpl::ReadAndInterpretStatusByte(this);
while ( (unsigned int)waitpid(*((unsigned int *)this + 15), &v17, 0LL) == -1 )
{
if ( *(_DWORD *)__errno_location() != 4 )
{
v32[0] = v33;
std::string::_M_construct<char const*>(v32, "CHECK failed: File ", "");
v2 = std::string::append(
v32,
"/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/sr"
"c/gtest-death-test.cc");
v24[0] = &v25;
v3 = (__int128 *)(v2 + 16);
if ( *(_QWORD *)v2 == v2 + 16 )
{
v25 = *v3;
}
else
{
v24[0] = *(void **)v2;
*(_QWORD *)&v25 = *(_QWORD *)v3;
}
v24[1] = *(void **)(v2 + 8);
*(_QWORD *)v2 = v3;
*(_QWORD *)(v2 + 8) = 0LL;
*(_BYTE *)(v2 + 16) = 0;
v4 = std::string::append(v24, ", line ");
v22[0] = &v23;
v5 = (__int128 *)(v4 + 16);
if ( *(_QWORD *)v4 == v4 + 16 )
{
v23 = *v5;
}
else
{
v22[0] = *(void **)v4;
*(_QWORD *)&v23 = *(_QWORD *)v5;
}
v22[1] = *(void **)(v4 + 8);
*(_QWORD *)v4 = v5;
*(_QWORD *)(v4 + 8) = 0LL;
*(_BYTE *)(v4 + 16) = 0;
v21 = 1085;
testing::internal::StreamableToString<int>(v30, &v21);
std::operator+<char>(v34, v22, v30);
v6 = std::string::append(v34, ": ");
v26[0] = &v27;
v7 = (__int128 *)(v6 + 16);
if ( *(_QWORD *)v6 == v6 + 16 )
{
v27 = *v7;
}
else
{
v26[0] = *(void **)v6;
*(_QWORD *)&v27 = *(_QWORD *)v7;
}
v26[1] = *(void **)(v6 + 8);
*(_QWORD *)v6 = v7;
*(_QWORD *)(v6 + 8) = 0LL;
*(_BYTE *)(v6 + 16) = 0;
v8 = std::string::append(v26, "waitpid(child_pid_, &status_value, 0)");
v28[0] = &v29;
v9 = (__int128 *)(v8 + 16);
if ( *(_QWORD *)v8 == v8 + 16 )
{
v29 = *v9;
}
else
{
v28[0] = *(void **)v8;
*(_QWORD *)&v29 = *(_QWORD *)v9;
}
v28[1] = *(void **)(v8 + 8);
*(_QWORD *)v8 = v9;
*(_QWORD *)(v8 + 8) = 0LL;
*(_BYTE *)(v8 + 16) = 0;
v10 = std::string::append(v28, " != -1");
v18 = &v20;
v13 = (__int128 *)(v10 + 16);
if ( *(_QWORD *)v10 == v10 + 16 )
{
v20 = *v13;
}
else
{
v18 = *(void **)v10;
*(_QWORD *)&v20 = *(_QWORD *)v13;
}
v19 = *(_QWORD *)(v10 + 8);
v14 = v19;
*(_QWORD *)v10 = v13;
*(_QWORD *)(v10 + 8) = 0LL;
*(_BYTE *)(v10 + 16) = 0;
v15 = testing::internal::DeathTestAbort(
(testing::UnitTest *)&v18,
(long long)" != -1",
v14,
(long long)v13,
v11,
v12,
v16);
if ( v18 != &v20 )
operator delete(v18, v20 + 1);
if ( v28[0] != &v29 )
operator delete(v28[0], v29 + 1);
if ( v26[0] != &v27 )
operator delete(v26[0], v27 + 1);
if ( v34[0] != &v35 )
operator delete(v34[0], v35 + 1);
if ( v30[0] != &v31 )
operator delete(v30[0], v31 + 1);
if ( v22[0] != &v23 )
operator delete(v22[0], v23 + 1);
if ( v24[0] != &v25 )
operator delete(v24[0], v25 + 1);
if ( v32[0] != v33 )
operator delete(v32[0], v33[0] + 1LL);
_Unwind_Resume(v15);
}
}
result = v17;
*((_DWORD *)this + 11) = v17;
}
return result;
}
| Wait:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x118
XOR EAX,EAX
CMP byte ptr [RDI + 0x28],0x1
JNZ 0x0011093d
MOV RBX,RDI
CALL 0x0010f430
LEA R14,[RSP + 0xc]
LAB_001108c0:
MOV EDI,dword ptr [RBX + 0x3c]
MOV RSI,R14
XOR EDX,EDX
CALL 0x001083d0
CMP EAX,-0x1
JNZ 0x00110936
CALL 0x00108070
CMP dword ptr [RAX],0x4
JZ 0x001108c0
LEA R14,[RSP + 0xe8]
MOV qword ptr [R14 + -0x10],R14
LEA RSI,[0x14206d]
LEA RDX,[0x142080]
LEA RBX,[RSP + 0xd8]
MOV RDI,RBX
CALL 0x00139504
LAB_00110906:
LEA RSI,[0x141f86]
MOV RDI,RBX
CALL 0x00108a50
LEA R15,[RSP + 0x68]
MOV qword ptr [R15 + -0x10],R15
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JNZ 0x0011094f
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R15],XMM0
JMP 0x0011095c
LAB_00110936:
MOV EAX,dword ptr [RSP + 0xc]
MOV dword ptr [RBX + 0x2c],EAX
LAB_0011093d:
ADD RSP,0x118
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0011094f:
MOV qword ptr [RSP + 0x58],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x68],RDX
LAB_0011095c:
MOV RDX,qword ptr [RAX + 0x8]
LEA RDI,[RSP + 0x58]
MOV qword ptr [RDI + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LAB_00110978:
LEA RSI,[0x142081]
CALL 0x00108a50
LEA R12,[RSP + 0x48]
MOV qword ptr [R12 + -0x10],R12
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JNZ 0x001109a7
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R12],XMM0
JMP 0x001109b4
LAB_001109a7:
MOV qword ptr [RSP + 0x38],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x48],RDX
LAB_001109b4:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x40],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LEA RSI,[RSP + 0x34]
MOV dword ptr [RSI],0x43d
LAB_001109d7:
LEA RDI,[RSP + 0xb8]
CALL 0x00132327
LAB_001109e4:
LEA RDI,[RSP + 0xf8]
LEA RSI,[RSP + 0x38]
LEA RDX,[RSP + 0xb8]
CALL 0x0013227f
LAB_001109fe:
LEA RSI,[0x143674]
LEA RDI,[RSP + 0xf8]
CALL 0x00108a50
LEA R13,[RSP + 0x88]
MOV qword ptr [R13 + -0x10],R13
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JNZ 0x00110a37
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R13],XMM0
JMP 0x00110a47
LAB_00110a37:
MOV qword ptr [RSP + 0x78],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x88],RDX
LAB_00110a47:
MOV RDX,qword ptr [RAX + 0x8]
LEA RDI,[RSP + 0x78]
MOV qword ptr [RDI + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LAB_00110a63:
LEA RSI,[0x142213]
CALL 0x00108a50
LEA RBP,[RSP + 0xa8]
MOV qword ptr [RBP + -0x10],RBP
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JNZ 0x00110a93
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RBP],XMM0
JMP 0x00110aa6
LAB_00110a93:
MOV qword ptr [RSP + 0x98],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0xa8],RDX
LAB_00110aa6:
MOV RDX,qword ptr [RAX + 0x8]
LEA RDI,[RSP + 0x98]
MOV qword ptr [RDI + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LAB_00110ac5:
LEA RSI,[0x14229e]
CALL 0x00108a50
LEA RCX,[RSP + 0x20]
MOV qword ptr [RCX + -0x10],RCX
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JNZ 0x00110af6
MOVUPS XMM0,xmmword ptr [RCX]
LEA RDX,[RSP + 0x20]
MOVUPS xmmword ptr [RDX],XMM0
JMP 0x00110b03
LAB_00110af6:
MOV qword ptr [RSP + 0x10],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x20],RDX
LAB_00110b03:
MOV RDX,qword ptr [RAX + 0x8]
LEA RDI,[RSP + 0x10]
MOV qword ptr [RDI + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LAB_00110b1f:
CALL 0x0010f2fd
LAB_00110b24:
MOV RBX,RAX
MOV RDI,qword ptr [RSP + 0x10]
LEA RAX,[RSP + 0x20]
CMP RDI,RAX
JZ 0x00110b48
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x001084e0
JMP 0x00110b48
LAB_00110b48:
MOV RDI,qword ptr [RSP + 0x98]
CMP RDI,RBP
JZ 0x00110b6a
MOV RSI,qword ptr [RSP + 0xa8]
INC RSI
CALL 0x001084e0
JMP 0x00110b6a
LAB_00110b6a:
MOV RDI,qword ptr [RSP + 0x78]
CMP RDI,R13
JZ 0x00110b89
MOV RSI,qword ptr [RSP + 0x88]
INC RSI
CALL 0x001084e0
JMP 0x00110b89
LAB_00110b89:
LEA RAX,[RSP + 0x108]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00110baf
MOV RSI,qword ptr [RSP + 0x108]
INC RSI
CALL 0x001084e0
JMP 0x00110baf
LAB_00110baf:
LEA RAX,[RSP + 0xc8]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00110bd5
MOV RSI,qword ptr [RSP + 0xc8]
INC RSI
CALL 0x001084e0
JMP 0x00110bd5
LAB_00110bd5:
MOV RDI,qword ptr [RSP + 0x38]
CMP RDI,R12
JZ 0x00110bf1
MOV RSI,qword ptr [RSP + 0x48]
INC RSI
CALL 0x001084e0
JMP 0x00110bf1
LAB_00110bf1:
MOV RDI,qword ptr [RSP + 0x58]
CMP RDI,R15
JZ 0x00110c0d
MOV RSI,qword ptr [RSP + 0x68]
INC RSI
CALL 0x001084e0
JMP 0x00110c0d
LAB_00110c0d:
MOV RDI,qword ptr [RSP + 0xd8]
CMP RDI,R14
JZ 0x00110c2a
MOV RSI,qword ptr [RSP + 0xe8]
INC RSI
CALL 0x001084e0
LAB_00110c2a:
MOV RDI,RBX
CALL 0x00108990
|
/* testing::internal::ForkingDeathTest::Wait() */
int __thiscall testing::internal::ForkingDeathTest::Wait(ForkingDeathTest *this)
{
__pid_t _Var1;
int iVar2;
int *piVar3;
long *plVar4;
int8 uVar5;
long *plVar6;
int local_13c;
long *local_138;
long local_130;
long local_128;
long lStack_120;
int local_114;
long *local_110;
long local_108;
long local_100;
long lStack_f8;
long *local_f0;
long local_e8;
long local_e0;
long lStack_d8;
long *local_d0;
long local_c8;
long local_c0;
long lStack_b8;
long *local_b0;
long local_a8;
long local_a0;
long lStack_98;
long *local_90 [2];
long local_80 [2];
long *local_70 [2];
long local_60 [2];
long *local_50 [2];
long local_40 [2];
iVar2 = 0;
if (this[0x28] == (ForkingDeathTest)0x1) {
DeathTestImpl::ReadAndInterpretStatusByte((DeathTestImpl *)this);
while( true ) {
_Var1 = waitpid(*(__pid_t *)(this + 0x3c),&local_13c,0);
if (_Var1 != -1) break;
piVar3 = __errno_location();
if (*piVar3 != 4) {
local_70[0] = local_60;
std::__cxx11::string::_M_construct<char_const*>(local_70,"CHECK failed: File ","");
/* try { // try from 00110906 to 00110914 has its CatchHandler @ 00110c0a */
plVar4 = (long *)std::__cxx11::string::append((char *)local_70);
local_f0 = (long *)*plVar4;
plVar6 = plVar4 + 2;
if (local_f0 == plVar6) {
local_e0 = *plVar6;
lStack_d8 = plVar4[3];
local_f0 = &local_e0;
}
else {
local_e0 = *plVar6;
}
local_e8 = plVar4[1];
*plVar4 = (long)plVar6;
plVar4[1] = 0;
*(int1 *)(plVar4 + 2) = 0;
/* try { // try from 00110978 to 00110983 has its CatchHandler @ 00110bee */
plVar4 = (long *)std::__cxx11::string::append((char *)&local_f0);
local_110 = (long *)*plVar4;
plVar6 = plVar4 + 2;
if (local_110 == plVar6) {
local_100 = *plVar6;
lStack_f8 = plVar4[3];
local_110 = &local_100;
}
else {
local_100 = *plVar6;
}
local_108 = plVar4[1];
*plVar4 = (long)plVar6;
plVar4[1] = 0;
*(int1 *)(plVar4 + 2) = 0;
local_114 = 0x43d;
/* try { // try from 001109d7 to 001109e3 has its CatchHandler @ 00110bd2 */
StreamableToString<int>((internal *)local_90,&local_114);
/* try { // try from 001109e4 to 001109fd has its CatchHandler @ 00110bac */
std::operator+((string *)local_50,(string *)&local_110);
/* try { // try from 001109fe to 00110a11 has its CatchHandler @ 00110b86 */
plVar4 = (long *)std::__cxx11::string::append((char *)local_50);
local_d0 = (long *)*plVar4;
plVar6 = plVar4 + 2;
if (local_d0 == plVar6) {
local_c0 = *plVar6;
lStack_b8 = plVar4[3];
local_d0 = &local_c0;
}
else {
local_c0 = *plVar6;
}
local_c8 = plVar4[1];
*plVar4 = (long)plVar6;
plVar4[1] = 0;
*(int1 *)(plVar4 + 2) = 0;
/* try { // try from 00110a63 to 00110a6e has its CatchHandler @ 00110b67 */
plVar4 = (long *)std::__cxx11::string::append((char *)&local_d0);
local_b0 = (long *)*plVar4;
plVar6 = plVar4 + 2;
if (local_b0 == plVar6) {
local_a0 = *plVar6;
lStack_98 = plVar4[3];
local_b0 = &local_a0;
}
else {
local_a0 = *plVar6;
}
local_a8 = plVar4[1];
*plVar4 = (long)plVar6;
plVar4[1] = 0;
*(int1 *)(plVar4 + 2) = 0;
/* try { // try from 00110ac5 to 00110ad0 has its CatchHandler @ 00110b45 */
plVar4 = (long *)std::__cxx11::string::append((char *)&local_b0);
local_138 = (long *)*plVar4;
plVar6 = plVar4 + 2;
if (local_138 == plVar6) {
local_128 = *plVar6;
lStack_120 = plVar4[3];
local_138 = &local_128;
}
else {
local_128 = *plVar6;
}
local_130 = plVar4[1];
*plVar4 = (long)plVar6;
plVar4[1] = 0;
*(int1 *)(plVar4 + 2) = 0;
/* try { // try from 00110b1f to 00110b23 has its CatchHandler @ 00110b24 */
uVar5 = DeathTestAbort((string *)&local_138);
/* catch() { ... } // from try @ 00110b1f with catch @ 00110b24 */
if (local_138 != &local_128) {
operator_delete(local_138,local_128 + 1);
}
if (local_b0 != &local_a0) {
operator_delete(local_b0,local_a0 + 1);
}
if (local_d0 != &local_c0) {
operator_delete(local_d0,local_c0 + 1);
}
if (local_50[0] != local_40) {
operator_delete(local_50[0],local_40[0] + 1);
}
if (local_90[0] != local_80) {
operator_delete(local_90[0],local_80[0] + 1);
}
if (local_110 != &local_100) {
operator_delete(local_110,local_100 + 1);
}
if (local_f0 != &local_e0) {
operator_delete(local_f0,local_e0 + 1);
}
if (local_70[0] != local_60) {
operator_delete(local_70[0],local_60[0] + 1);
}
/* WARNING: Subroutine does not return */
_Unwind_Resume(uVar5);
}
}
*(int *)(this + 0x2c) = local_13c;
iVar2 = local_13c;
}
return iVar2;
}
| |
22,309 | blst_aggregate_in_g2 | corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/aggregate.c | BLST_ERROR blst_aggregate_in_g2(POINTonE2 *out, const POINTonE2 *in,
const unsigned char *zwire)
{
POINTonE2 P[1];
BLST_ERROR ret;
ret = POINTonE2_Deserialize_Z((POINTonE2_affine *)P, zwire);
if (ret != BLST_SUCCESS)
return ret;
if (vec_is_zero(P, sizeof(POINTonE2_affine))) {
if (in == NULL)
vec_zero(out, sizeof(*out));
return BLST_SUCCESS;
}
vec_copy(P->Z, BLS12_381_Rx.p, sizeof(P->Z));
if (!POINTonE2_in_G2(P))
return BLST_POINT_NOT_IN_GROUP;
if (in == NULL) {
vec_copy(out, P, sizeof(P));
} else {
POINTonE2_dadd_affine(out, in, (POINTonE2_affine *)P);
}
return BLST_SUCCESS;
} | O3 | c | blst_aggregate_in_g2:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x120, %rsp # imm = 0x120
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x130(%rbp), %rdi
movq %rdx, %rsi
callq 0x5abcf
testl %eax, %eax
jne 0x60133
leaq -0x130(%rbp), %rdi
movl $0xc0, %esi
callq 0x6e900
testq %rax, %rax
je 0x600d9
xorl %eax, %eax
testq %r14, %r14
jne 0x60133
xorl %eax, %eax
movq $0x0, (%rbx,%rax,8)
incq %rax
cmpq $0x24, %rax
jne 0x600c6
jmp 0x60131
leaq -0x70(%rbp), %rdi
leaq 0x2a864(%rip), %rsi # 0x8a948
movl $0xc, %ecx
rep movsq (%rsi), %es:(%rdi)
leaq -0x130(%rbp), %rdi
callq 0x5d2b5
testq %rax, %rax
je 0x60116
testq %r14, %r14
je 0x6011d
leaq -0x130(%rbp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5b93b
jmp 0x60131
movl $0x3, %eax
jmp 0x60133
leaq -0x130(%rbp), %rsi
movl $0x120, %edx # imm = 0x120
movq %rbx, %rdi
callq 0x211a0
xorl %eax, %eax
addq $0x120, %rsp # imm = 0x120
popq %rbx
popq %r14
popq %rbp
retq
| blst_aggregate_in_g2:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 120h
mov r14, rsi
mov rbx, rdi
lea rdi, [rbp+var_130]
mov rsi, rdx
call POINTonE2_Deserialize_Z
test eax, eax
jnz loc_60133
lea rdi, [rbp+var_130]
mov esi, 0C0h
call vec_is_zero_16x
test rax, rax
jz short loc_600D9
xor eax, eax
test r14, r14
jnz short loc_60133
xor eax, eax
loc_600C6:
mov qword ptr [rbx+rax*8], 0
inc rax
cmp rax, 24h ; '$'
jnz short loc_600C6
jmp short loc_60131
loc_600D9:
lea rdi, [rbp+var_70]
lea rsi, BLS12_381_Rx
mov ecx, 0Ch
rep movsq
lea rdi, [rbp+var_130]
call POINTonE2_in_G2
test rax, rax
jz short loc_60116
test r14, r14
jz short loc_6011D
lea rdx, [rbp+var_130]
mov rdi, rbx
mov rsi, r14
call POINTonE2_dadd_affine
jmp short loc_60131
loc_60116:
mov eax, 3
jmp short loc_60133
loc_6011D:
lea rsi, [rbp+var_130]
mov edx, 120h
mov rdi, rbx
call _memcpy
loc_60131:
xor eax, eax
loc_60133:
add rsp, 120h
pop rbx
pop r14
pop rbp
retn
| long long blst_aggregate_in_g2(long long a1, long long a2, unsigned __int8 *a3)
{
long long result; // rax
long long i; // rax
_BYTE v5[192]; // [rsp+0h] [rbp-130h] BYREF
_BYTE v6[96]; // [rsp+C0h] [rbp-70h] BYREF
result = POINTonE2_Deserialize_Z((long long)v5, a3);
if ( !(_DWORD)result )
{
if ( vec_is_zero_16x(v5, 192LL) )
{
result = 0LL;
if ( a2 )
return result;
for ( i = 0LL; i != 36; ++i )
*(_QWORD *)(a1 + 8 * i) = 0LL;
}
else
{
qmemcpy(v6, &BLS12_381_Rx, sizeof(v6));
if ( !POINTonE2_in_G2((long long)v5) )
return 3LL;
if ( a2 )
POINTonE2_dadd_affine(a1, a2, (long long)v5);
else
memcpy(a1);
}
return 0LL;
}
return result;
}
| blst_aggregate_in_g2:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x120
MOV R14,RSI
MOV RBX,RDI
LEA RDI,[RBP + -0x130]
MOV RSI,RDX
CALL 0x0015abcf
TEST EAX,EAX
JNZ 0x00160133
LEA RDI,[RBP + -0x130]
MOV ESI,0xc0
CALL 0x0016e900
TEST RAX,RAX
JZ 0x001600d9
XOR EAX,EAX
TEST R14,R14
JNZ 0x00160133
XOR EAX,EAX
LAB_001600c6:
MOV qword ptr [RBX + RAX*0x8],0x0
INC RAX
CMP RAX,0x24
JNZ 0x001600c6
JMP 0x00160131
LAB_001600d9:
LEA RDI,[RBP + -0x70]
LEA RSI,[0x18a948]
MOV ECX,0xc
MOVSQ.REP RDI,RSI
LEA RDI,[RBP + -0x130]
CALL 0x0015d2b5
TEST RAX,RAX
JZ 0x00160116
TEST R14,R14
JZ 0x0016011d
LEA RDX,[RBP + -0x130]
MOV RDI,RBX
MOV RSI,R14
CALL 0x0015b93b
JMP 0x00160131
LAB_00160116:
MOV EAX,0x3
JMP 0x00160133
LAB_0016011d:
LEA RSI,[RBP + -0x130]
MOV EDX,0x120
MOV RDI,RBX
CALL 0x001211a0
LAB_00160131:
XOR EAX,EAX
LAB_00160133:
ADD RSP,0x120
POP RBX
POP R14
POP RBP
RET
|
int8 blst_aggregate_in_g2(void *param_1,long param_2,int8 param_3)
{
int8 uVar1;
long lVar2;
int8 *puVar3;
int8 *puVar4;
byte bVar5;
int1 local_138 [192];
int8 local_78 [12];
bVar5 = 0;
uVar1 = POINTonE2_Deserialize_Z(local_138,param_3);
if ((int)uVar1 == 0) {
lVar2 = vec_is_zero_16x(local_138,0xc0);
if (lVar2 == 0) {
puVar3 = &BLS12_381_Rx;
puVar4 = local_78;
for (lVar2 = 0xc; lVar2 != 0; lVar2 = lVar2 + -1) {
*puVar4 = *puVar3;
puVar3 = puVar3 + (ulong)bVar5 * -2 + 1;
puVar4 = puVar4 + (ulong)bVar5 * -2 + 1;
}
lVar2 = POINTonE2_in_G2(local_138);
if (lVar2 == 0) {
return 3;
}
if (param_2 == 0) {
memcpy(param_1,local_138,0x120);
}
else {
POINTonE2_dadd_affine(param_1,param_2,local_138);
}
}
else {
if (param_2 != 0) {
return 0;
}
lVar2 = 0;
do {
*(int8 *)((long)param_1 + lVar2 * 8) = 0;
lVar2 = lVar2 + 1;
} while (lVar2 != 0x24);
}
uVar1 = 0;
}
return uVar1;
}
| |
22,310 | nglog::NullStreamFatal::NullStreamFatal() | ng-log[P]ng-log/src/ng-log/logging.h | class NGLOG_EXPORT NullStreamFatal : public NullStream {
public:
using NullStream::NullStream;
[[noreturn]]
// Prevent the linker from discarding the destructor.
NGLOG_USED ~NullStreamFatal();
} | O3 | c | nglog::NullStreamFatal::NullStreamFatal():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x60(%rdi), %r14
movq %r14, %rdi
callq 0x7120
movq 0x25f26(%rip), %rax # 0x2ef20
addq $0x10, %rax
movq %rax, 0x60(%rbx)
movq $0x0, 0x138(%rbx)
movw $0x0, 0x140(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x148(%rbx)
movups %xmm0, 0x158(%rbx)
leaq 0x25652(%rip), %rsi # 0x2e680
addq $0x8, %rsi
movq %rbx, %rdi
callq 0xaa96
leaq 0x255ef(%rip), %rax # 0x2e630
leaq 0x18(%rax), %rcx
movq %rcx, (%rbx)
addq $0x40, %rax
movq %rax, 0x60(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq %r14, %rdi
callq 0x7170
movq %rbx, %rdi
callq 0x7970
nop
| _ZN5nglog15NullStreamFatalC1Ev:
push r14
push rbx
push rax
mov rbx, rdi
lea r14, [rdi+60h]
mov rdi, r14; this
call __ZNSt8ios_baseC2Ev; std::ios_base::ios_base(void)
mov rax, cs:_ZTVSt9basic_iosIcSt11char_traitsIcEE_ptr
add rax, 10h
mov [rbx+60h], rax
mov qword ptr [rbx+138h], 0
mov word ptr [rbx+140h], 0
xorps xmm0, xmm0
movups xmmword ptr [rbx+148h], xmm0
movups xmmword ptr [rbx+158h], xmm0
lea rsi, _ZTTN5nglog15NullStreamFatalE; `VTT for'nglog::NullStreamFatal
add rsi, 8
mov rdi, rbx; this
call _ZN5nglog10NullStreamC2Ev; nglog::NullStream::NullStream(void)
lea rax, _ZTVN5nglog15NullStreamFatalE; `vtable for'nglog::NullStreamFatal
lea rcx, [rax+18h]
mov [rbx], rcx
add rax, 40h ; '@'
mov [rbx+60h], rax
add rsp, 8
pop rbx
pop r14
retn
mov rbx, rax
mov rdi, r14; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, rbx
call __Unwind_Resume
| long long nglog::NullStreamFatal::NullStreamFatal(nglog::NullStreamFatal *this)
{
long long result; // rax
std::ios_base::ios_base((nglog::NullStreamFatal *)((char *)this + 96));
*((_QWORD *)this + 12) = (char *)&`vtable for'std::ios + 16;
*((_QWORD *)this + 39) = 0LL;
*((_WORD *)this + 160) = 0;
*(_OWORD *)((char *)this + 328) = 0LL;
*(_OWORD *)((char *)this + 344) = 0LL;
nglog::NullStream::NullStream(this);
*(_QWORD *)this = (char *)&`vtable for'nglog::NullStreamFatal + 24;
result = (long long)&`vtable for'nglog::NullStreamFatal + 64;
*((_QWORD *)this + 12) = (char *)&`vtable for'nglog::NullStreamFatal + 64;
return result;
}
| NullStreamFatal:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA R14,[RDI + 0x60]
MOV RDI,R14
CALL 0x00107120
MOV RAX,qword ptr [0x0012ef20]
ADD RAX,0x10
MOV qword ptr [RBX + 0x60],RAX
MOV qword ptr [RBX + 0x138],0x0
MOV word ptr [RBX + 0x140],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x148],XMM0
MOVUPS xmmword ptr [RBX + 0x158],XMM0
LAB_00109027:
LEA RSI,[0x12e680]
ADD RSI,0x8
MOV RDI,RBX
CALL 0x0010aa96
LAB_0010903a:
LEA RAX,[0x12e630]
LEA RCX,[RAX + 0x18]
MOV qword ptr [RBX],RCX
ADD RAX,0x40
MOV qword ptr [RBX + 0x60],RAX
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* nglog::NullStreamFatal::NullStreamFatal() */
void __thiscall nglog::NullStreamFatal::NullStreamFatal(NullStreamFatal *this)
{
std::ios_base::ios_base((ios_base *)(this + 0x60));
*(int **)(this + 0x60) = PTR_vtable_0012ef20 + 0x10;
*(int8 *)(this + 0x138) = 0;
*(int2 *)(this + 0x140) = 0;
*(int8 *)(this + 0x148) = 0;
*(int8 *)(this + 0x150) = 0;
*(int8 *)(this + 0x158) = 0;
*(int8 *)(this + 0x160) = 0;
/* try { // try from 00109027 to 00109039 has its CatchHandler @ 00109058 */
NullStream::NullStream((NullStream *)this);
*(int8 *)this = 0x12e648;
*(int8 *)(this + 0x60) = 0x12e670;
return;
}
| |
22,311 | make_type | eloqsql/mysys/typelib.c | void make_type(register char * to, register uint nr,
register TYPELIB *typelib)
{
DBUG_ENTER("make_type");
if (!nr)
to[0]=0;
else
(void) strmov(to,get_type(typelib,nr-1));
DBUG_VOID_RETURN;
} | O0 | c | make_type:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
cmpl $0x0, -0xc(%rbp)
jne 0x80f42
movq -0x8(%rbp), %rax
movb $0x0, (%rax)
jmp 0x80f65
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
movl -0xc(%rbp), %esi
subl $0x1, %esi
callq 0x80f70
movq -0x20(%rbp), %rdi
movq %rax, %rsi
callq 0x36990
jmp 0x80f67
jmp 0x80f69
addq $0x20, %rsp
popq %rbp
retq
nop
| make_type:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
cmp [rbp+var_C], 0
jnz short loc_80F42
mov rax, [rbp+var_8]
mov byte ptr [rax], 0
jmp short loc_80F65
loc_80F42:
mov rax, [rbp+var_8]
mov [rbp+var_20], rax
mov rdi, [rbp+var_18]
mov esi, [rbp+var_C]
sub esi, 1
call get_type
mov rdi, [rbp+var_20]
mov rsi, rax
call _stpcpy
loc_80F65:
jmp short $+2
loc_80F67:
jmp short $+2
loc_80F69:
add rsp, 20h
pop rbp
retn
| long long make_type(_BYTE *a1, int a2, long long a3)
{
long long result; // rax
long long type; // rax
if ( a2 )
{
type = get_type(a3, (unsigned int)(a2 - 1));
return stpcpy(a1, type);
}
else
{
result = (long long)a1;
*a1 = 0;
}
return result;
}
| make_type:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
CMP dword ptr [RBP + -0xc],0x0
JNZ 0x00180f42
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX],0x0
JMP 0x00180f65
LAB_00180f42:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,dword ptr [RBP + -0xc]
SUB ESI,0x1
CALL 0x00180f70
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,RAX
CALL 0x00136990
LAB_00180f65:
JMP 0x00180f67
LAB_00180f67:
JMP 0x00180f69
LAB_00180f69:
ADD RSP,0x20
POP RBP
RET
|
void make_type(char *param_1,int param_2,int8 param_3)
{
char *__src;
if (param_2 == 0) {
*param_1 = '\0';
}
else {
__src = (char *)get_type(param_3,param_2 + -1);
stpcpy(param_1,__src);
}
return;
}
| |
22,312 | testing::internal::WideStringToUtf8[abi:cxx11](wchar_t const*, int) | seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest.cc | std::string WideStringToUtf8(const wchar_t* str, int num_chars) {
if (num_chars == -1) num_chars = static_cast<int>(wcslen(str));
::std::stringstream stream;
for (int i = 0; i < num_chars; ++i) {
uint32_t unicode_code_point;
if (str[i] == L'\0') {
break;
} else if (i + 1 < num_chars && IsUtf16SurrogatePair(str[i], str[i + 1])) {
unicode_code_point =
CreateCodePointFromUtf16SurrogatePair(str[i], str[i + 1]);
i++;
} else {
unicode_code_point = static_cast<uint32_t>(str[i]);
}
stream << CodePointToUtf8(unicode_code_point);
}
return StringStreamToString(&stream);
} | O1 | cpp | testing::internal::WideStringToUtf8[abi:cxx11](wchar_t const*, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp # imm = 0x1B8
movl %edx, %r12d
movq %rsi, %r14
movq %rdi, 0x28(%rsp)
cmpl $-0x1, %edx
jne 0x2342a
movq %r14, %rdi
callq 0x93f0
movq %rax, %r12
leaq 0x30(%rsp), %rdi
callq 0x9330
testl %r12d, %r12d
jle 0x2349c
leaq 0x40(%rsp), %r15
movl %r12d, %ebx
decq %rbx
xorl %r13d, %r13d
leaq 0x8(%rsp), %r12
movl (%r14,%r13,4), %ebp
testl %ebp, %ebp
je 0x2349c
movq %r12, %rdi
movl %ebp, %esi
callq 0x23157
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r15, %rdi
callq 0x95a0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2348c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x94c0
testl %ebp, %ebp
je 0x2349c
leaq 0x1(%r13), %rax
cmpq %r13, %rbx
movq %rax, %r13
jne 0x2344c
leaq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rbx
movq %rbx, %rdi
callq 0x20eb3
movq 0x36ad3(%rip), %rsi # 0x59f88
leaq 0x30(%rsp), %rdi
callq 0x9380
leaq 0xb0(%rsp), %rdi
callq 0x9190
movq %rbx, %rax
addq $0x1b8, %rsp # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x23504
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x23507
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x94c0
jmp 0x23507
movq %rax, %rbx
movq 0x36a7a(%rip), %rsi # 0x59f88
leaq 0x30(%rsp), %rdi
callq 0x9380
leaq 0xb0(%rsp), %rdi
callq 0x9190
movq %rbx, %rdi
callq 0x99a0
nop
| _ZN7testing8internal16WideStringToUtf8B5cxx11EPKwi:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 1B8h
mov r12d, edx
mov r14, rsi
mov qword ptr [rsp+1E8h+var_1C0], rdi; int
cmp edx, 0FFFFFFFFh
jnz short loc_2342A
mov rdi, r14
call _wcslen
mov r12, rax
loc_2342A:
lea rdi, [rsp+1E8h+var_1B8]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void)
test r12d, r12d
jle short loc_2349C
lea r15, [rsp+1E8h+var_1A8]
mov ebx, r12d
dec rbx
xor r13d, r13d
lea r12, [rsp+1E8h+var_1E0]
loc_2344C:
mov ebp, [r14+r13*4]
test ebp, ebp
jz short loc_2349C
mov rdi, r12; int
mov esi, ebp; int
call _ZN7testing8internal15CodePointToUtf8B5cxx11Ej; testing::internal::CodePointToUtf8(uint)
mov rsi, [rsp+1E8h+var_1E0]
mov rdx, [rsp+1E8h+var_1D8]
mov rdi, r15
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+1E8h+var_1E0]; void *
lea rax, [rsp+1E8h+var_1D0]
cmp rdi, rax
jz short loc_2348C
mov rsi, [rsp+1E8h+var_1D0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2348C:
test ebp, ebp
jz short loc_2349C
lea rax, [r13+1]
cmp rbx, r13
mov r13, rax
jnz short loc_2344C
loc_2349C:
lea rsi, [rsp+1E8h+var_1B8]
mov rbx, qword ptr [rsp+1E8h+var_1C0]
mov rdi, rbx
call _ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE; testing::internal::StringStreamToString(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>> *)
mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+1E8h+var_1B8]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
lea rdi, [rsp+1E8h+var_138]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rax, rbx
add rsp, 1B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_23504
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
lea rax, [rsp+arg_10]
cmp rdi, rax
jz short loc_23507
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_23507
loc_23504:
mov rbx, rax
loc_23507:
mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+arg_28]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
lea rdi, [rsp+arg_A8]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, rbx
call __Unwind_Resume
| long long testing::internal::WideStringToUtf8[abi:cxx11](long long a1, long long a2, int a3)
{
int v3; // r12d
int v4; // edx
int v5; // ecx
int v6; // r8d
int v7; // r9d
long long v8; // r13
int v9; // ebp
long long v11; // rbx
void *v13; // [rsp+0h] [rbp-1E8h]
void *v14; // [rsp+8h] [rbp-1E0h] BYREF
long long v15; // [rsp+10h] [rbp-1D8h]
long long v16; // [rsp+18h] [rbp-1D0h] BYREF
int v17; // [rsp+20h] [rbp-1C8h]
int v18[2]; // [rsp+28h] [rbp-1C0h]
long long v19[2]; // [rsp+30h] [rbp-1B8h] BYREF
_BYTE v20[112]; // [rsp+40h] [rbp-1A8h] BYREF
_BYTE v21[312]; // [rsp+B0h] [rbp-138h] BYREF
v3 = a3;
*(_QWORD *)v18 = a1;
if ( a3 == -1 )
v3 = wcslen(a2);
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v19);
if ( v3 > 0 )
{
v8 = 0LL;
do
{
v9 = *(_DWORD *)(a2 + 4 * v8);
if ( !v9 )
break;
testing::internal::CodePointToUtf8[abi:cxx11](
(int)&v14,
v9,
v4,
v5,
v6,
v7,
v13,
(int)v14,
v15,
v16,
v17,
v18[0],
v19[0]);
std::__ostream_insert<char,std::char_traits<char>>(v20, v14, v15);
if ( v14 != &v16 )
operator delete(v14, v16 + 1);
}
while ( (unsigned int)v3 - 1LL != v8++ );
}
v11 = *(_QWORD *)v18;
testing::internal::StringStreamToString(*(long long *)v18, (long long)v19);
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(
v19,
&`VTT for'std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>);
std::ios_base::~ios_base((std::ios_base *)v21);
return v11;
}
| WideStringToUtf8[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x1b8
MOV R12D,EDX
MOV R14,RSI
MOV qword ptr [RSP + 0x28],RDI
CMP EDX,-0x1
JNZ 0x0012342a
MOV RDI,R14
CALL 0x001093f0
MOV R12,RAX
LAB_0012342a:
LEA RDI,[RSP + 0x30]
CALL 0x00109330
TEST R12D,R12D
JLE 0x0012349c
LEA R15,[RSP + 0x40]
MOV EBX,R12D
DEC RBX
XOR R13D,R13D
LEA R12,[RSP + 0x8]
LAB_0012344c:
MOV EBP,dword ptr [R14 + R13*0x4]
TEST EBP,EBP
JZ 0x0012349c
LAB_00123454:
MOV RDI,R12
MOV ESI,EBP
CALL 0x00123157
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_00123468:
MOV RDI,R15
CALL 0x001095a0
MOV RDI,qword ptr [RSP + 0x8]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x0012348c
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001094c0
LAB_0012348c:
TEST EBP,EBP
JZ 0x0012349c
LEA RAX,[R13 + 0x1]
CMP RBX,R13
MOV R13,RAX
JNZ 0x0012344c
LAB_0012349c:
LEA RSI,[RSP + 0x30]
MOV RBX,qword ptr [RSP + 0x28]
MOV RDI,RBX
CALL 0x00120eb3
LAB_001234ae:
MOV RSI,qword ptr [0x00159f88]
LEA RDI,[RSP + 0x30]
CALL 0x00109380
LEA RDI,[RSP + 0xb0]
CALL 0x00109190
MOV RAX,RBX
ADD RSP,0x1b8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* testing::internal::WideStringToUtf8[abi:cxx11](wchar_t const*, int) */
stringstream * __thiscall
testing::internal::WideStringToUtf8_abi_cxx11_(internal *this,wchar_t *param_1,int param_2)
{
wchar_t wVar1;
internal *piVar2;
size_t sVar3;
long lVar4;
bool bVar5;
long *local_1e0;
long local_1d8;
long local_1d0 [2];
internal *local_1c0;
stringstream local_1b8 [16];
ostream local_1a8 [112];
ios_base local_138 [264];
local_1c0 = this;
if (param_2 == -1) {
sVar3 = wcslen(param_1);
param_2 = (int)sVar3;
}
std::__cxx11::stringstream::stringstream(local_1b8);
if (0 < param_2) {
lVar4 = 0;
while (wVar1 = param_1[lVar4], wVar1 != L'\0') {
/* try { // try from 00123454 to 0012345d has its CatchHandler @ 00123504 */
CodePointToUtf8_abi_cxx11_((internal *)&local_1e0,wVar1);
/* try { // try from 00123468 to 0012346f has its CatchHandler @ 001234e3 */
std::__ostream_insert<char,std::char_traits<char>>(local_1a8,(char *)local_1e0,local_1d8);
if (local_1e0 != local_1d0) {
operator_delete(local_1e0,local_1d0[0] + 1);
}
if ((wVar1 == L'\0') || (bVar5 = (ulong)(uint)param_2 - 1 == lVar4, lVar4 = lVar4 + 1, bVar5))
break;
}
}
/* try { // try from 0012349c to 001234ad has its CatchHandler @ 001234e1 */
piVar2 = local_1c0;
StringStreamToString((stringstream *)local_1c0);
std::__cxx11::stringstream::~stringstream(local_1b8);
std::ios_base::~ios_base(local_138);
return (stringstream *)piVar2;
}
| |
22,313 | my_atoll | eloqsql/libmariadb/libmariadb/ma_stmt_codec.c | static long long my_atoll(const char *str, const char *end_str, int *error)
{
const char *p=str;
const char *end;
long long ret;
while (p < end_str && isspace(*p))
p++;
ret = my_strtoll(p, end_str - p, &end, error);
while(end < end_str && isspace(*end))
end++;
if(end != end_str)
*error= 1;
return ret;
} | O3 | c | my_atoll:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
cmpq %rsi, %rdi
jae 0x24afa
callq 0x134c0
movq (%rax), %rax
movsbq (%r15), %rcx
testb $0x20, 0x1(%rax,%rcx,2)
je 0x24afa
incq %r15
cmpq %r14, %r15
jne 0x24ae4
movq %r14, %r15
movq %r14, %rax
subq %r15, %rax
leaq (%r15,%rax), %r12
testq %rax, %rax
jle 0x24b24
callq 0x134c0
movq (%rax), %rax
movsbq (%r15), %rcx
testb $0x20, 0x1(%rax,%rcx,2)
je 0x24b24
incq %r15
cmpq %r12, %r15
jb 0x24b11
movq %r15, -0x30(%rbp)
cmpq %r12, %r15
je 0x24b83
movb (%r15), %r13b
cmpb $0x2d, %r13b
jne 0x24b3d
incq %r15
movq %r15, -0x30(%rbp)
movq %r14, %rsi
subq %r15, %rsi
leaq -0x30(%rbp), %r12
movq %r15, %rdi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x24340
movq %rax, %r15
movq (%r12), %r12
cmpl $0x0, (%rbx)
jne 0x24bba
cmpb $0x2d, %r13b
jne 0x24b8e
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %r15, %rcx
negq %rcx
jo 0x24bb7
testq %r15, %r15
js 0x24bab
movq %r15, %rax
jmp 0x24bb4
movl $0x22, (%rbx)
xorl %r15d, %r15d
jmp 0x24bba
testq %r15, %r15
jns 0x24bba
decq %r12
movl $0x22, (%rbx)
movabsq $-0x8000000000000000, %r15 # imm = 0x8000000000000000
decq %r15
jmp 0x24bba
decq %r12
movl $0x22, (%rbx)
negq %rax
movq %rax, %r15
cmpq %r14, %r12
jae 0x24be4
callq 0x134c0
movq (%rax), %rax
movq %r14, %rcx
subq %r12, %rcx
movsbq (%r12), %rdx
testb $0x20, 0x1(%rax,%rdx,2)
je 0x24be4
incq %r12
decq %rcx
jne 0x24bcd
movq %r14, %r12
cmpq %r14, %r12
je 0x24bef
movl $0x1, (%rbx)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_atoll:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdx
mov r14, rsi
mov r15, rdi
cmp rdi, rsi
jnb short loc_24AFA
call ___ctype_b_loc
mov rax, [rax]
loc_24AE4:
movsx rcx, byte ptr [r15]
test byte ptr [rax+rcx*2+1], 20h
jz short loc_24AFA
inc r15
cmp r15, r14
jnz short loc_24AE4
mov r15, r14
loc_24AFA:
mov rax, r14
sub rax, r15
lea r12, [r15+rax]
test rax, rax
jle short loc_24B24
call ___ctype_b_loc
mov rax, [rax]
loc_24B11:
movsx rcx, byte ptr [r15]
test byte ptr [rax+rcx*2+1], 20h
jz short loc_24B24
inc r15
cmp r15, r12
jb short loc_24B11
loc_24B24:
mov [rbp+var_30], r15
cmp r15, r12
jz short loc_24B83
mov r13b, [r15]
cmp r13b, 2Dh ; '-'
jnz short loc_24B3D
inc r15
mov [rbp+var_30], r15
loc_24B3D:
mov rsi, r14
sub rsi, r15
lea r12, [rbp+var_30]
mov rdi, r15
mov rdx, r12
mov rcx, rbx
call my_strtoull
mov r15, rax
mov r12, [r12]
cmp dword ptr [rbx], 0
jnz short loc_24BBA
cmp r13b, 2Dh ; '-'
jnz short loc_24B8E
mov rax, 8000000000000000h
mov rcx, r15
neg rcx
jo short loc_24BB7
test r15, r15
js short loc_24BAB
mov rax, r15
jmp short loc_24BB4
loc_24B83:
mov dword ptr [rbx], 22h ; '"'
xor r15d, r15d
jmp short loc_24BBA
loc_24B8E:
test r15, r15
jns short loc_24BBA
dec r12
mov dword ptr [rbx], 22h ; '"'
mov r15, 8000000000000000h
dec r15
jmp short loc_24BBA
loc_24BAB:
dec r12
mov dword ptr [rbx], 22h ; '"'
loc_24BB4:
neg rax
loc_24BB7:
mov r15, rax
loc_24BBA:
cmp r12, r14
jnb short loc_24BE4
call ___ctype_b_loc
mov rax, [rax]
mov rcx, r14
sub rcx, r12
loc_24BCD:
movsx rdx, byte ptr [r12]
test byte ptr [rax+rdx*2+1], 20h
jz short loc_24BE4
inc r12
dec rcx
jnz short loc_24BCD
mov r12, r14
loc_24BE4:
cmp r12, r14
jz short loc_24BEF
mov dword ptr [rbx], 1
loc_24BEF:
mov rax, r15
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_atoll(char *a1, char *a2, _DWORD *a3)
{
char *v3; // rax
char *v5; // r15
long long v6; // rax
char *v7; // r12
long long v8; // rax
char v9; // r13
signed long long v10; // rax
long long v11; // r15
unsigned long long v12; // rax
long long v13; // rax
signed long long v14; // rcx
char *v16; // [rsp+0h] [rbp-30h] BYREF
v16 = v3;
v5 = a1;
if ( a1 < a2 )
{
v6 = *(_QWORD *)__ctype_b_loc(a1);
while ( (*(_BYTE *)(v6 + 2LL * *v5 + 1) & 0x20) != 0 )
{
if ( ++v5 == a2 )
{
v5 = a2;
break;
}
}
}
v7 = a2;
if ( a2 - v5 > 0 )
{
v8 = *(_QWORD *)__ctype_b_loc(a1);
do
{
if ( (*(_BYTE *)(v8 + 2LL * *v5 + 1) & 0x20) == 0 )
break;
++v5;
}
while ( v5 < a2 );
}
v16 = v5;
if ( v5 == a2 )
{
*a3 = 34;
v11 = 0LL;
}
else
{
v9 = *v5;
if ( *v5 == 45 )
v16 = ++v5;
a1 = v5;
v10 = my_strtoull((long long)v5, a2 - v5, &v16, a3);
v11 = v10;
v7 = v16;
if ( !*a3 )
{
if ( v9 == 45 )
{
v12 = 0x8000000000000000LL;
if ( !__OFSUB__(-v11, 1LL) )
{
if ( v11 < 0 )
{
v7 = v16 - 1;
*a3 = 34;
}
else
{
v12 = v11;
}
v12 = -(long long)v12;
}
v11 = v12;
}
else if ( v10 < 0 )
{
v7 = v16 - 1;
*a3 = 34;
v11 = 0x7FFFFFFFFFFFFFFFLL;
}
}
}
if ( v7 < a2 )
{
v13 = *(_QWORD *)__ctype_b_loc(a1);
v14 = a2 - v7;
while ( (*(_BYTE *)(v13 + 2LL * *v7 + 1) & 0x20) != 0 )
{
++v7;
if ( !--v14 )
{
v7 = a2;
break;
}
}
}
if ( v7 != a2 )
*a3 = 1;
return v11;
}
| my_atoll:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
CMP RDI,RSI
JNC 0x00124afa
CALL 0x001134c0
MOV RAX,qword ptr [RAX]
LAB_00124ae4:
MOVSX RCX,byte ptr [R15]
TEST byte ptr [RAX + RCX*0x2 + 0x1],0x20
JZ 0x00124afa
INC R15
CMP R15,R14
JNZ 0x00124ae4
MOV R15,R14
LAB_00124afa:
MOV RAX,R14
SUB RAX,R15
LEA R12,[R15 + RAX*0x1]
TEST RAX,RAX
JLE 0x00124b24
CALL 0x001134c0
MOV RAX,qword ptr [RAX]
LAB_00124b11:
MOVSX RCX,byte ptr [R15]
TEST byte ptr [RAX + RCX*0x2 + 0x1],0x20
JZ 0x00124b24
INC R15
CMP R15,R12
JC 0x00124b11
LAB_00124b24:
MOV qword ptr [RBP + -0x30],R15
CMP R15,R12
JZ 0x00124b83
MOV R13B,byte ptr [R15]
CMP R13B,0x2d
JNZ 0x00124b3d
INC R15
MOV qword ptr [RBP + -0x30],R15
LAB_00124b3d:
MOV RSI,R14
SUB RSI,R15
LEA R12,[RBP + -0x30]
MOV RDI,R15
MOV RDX,R12
MOV RCX,RBX
CALL 0x00124340
MOV R15,RAX
MOV R12,qword ptr [R12]
CMP dword ptr [RBX],0x0
JNZ 0x00124bba
CMP R13B,0x2d
JNZ 0x00124b8e
MOV RAX,-0x8000000000000000
MOV RCX,R15
NEG RCX
JO 0x00124bb7
TEST R15,R15
JS 0x00124bab
MOV RAX,R15
JMP 0x00124bb4
LAB_00124b83:
MOV dword ptr [RBX],0x22
XOR R15D,R15D
JMP 0x00124bba
LAB_00124b8e:
TEST R15,R15
JNS 0x00124bba
DEC R12
MOV dword ptr [RBX],0x22
MOV R15,-0x8000000000000000
DEC R15
JMP 0x00124bba
LAB_00124bab:
DEC R12
MOV dword ptr [RBX],0x22
LAB_00124bb4:
NEG RAX
LAB_00124bb7:
MOV R15,RAX
LAB_00124bba:
CMP R12,R14
JNC 0x00124be4
CALL 0x001134c0
MOV RAX,qword ptr [RAX]
MOV RCX,R14
SUB RCX,R12
LAB_00124bcd:
MOVSX RDX,byte ptr [R12]
TEST byte ptr [RAX + RDX*0x2 + 0x1],0x20
JZ 0x00124be4
INC R12
DEC RCX
JNZ 0x00124bcd
MOV R12,R14
LAB_00124be4:
CMP R12,R14
JZ 0x00124bef
MOV dword ptr [RBX],0x1
LAB_00124bef:
MOV RAX,R15
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_atoll(char *param_1,char *param_2,int *param_3)
{
char cVar1;
ushort **ppuVar2;
long lVar3;
long lVar4;
char *pcVar5;
char *pcVar6;
char *local_38;
pcVar6 = param_1;
if (param_1 < param_2) {
ppuVar2 = __ctype_b_loc();
do {
pcVar6 = param_1;
if ((*(byte *)((long)*ppuVar2 + (long)*param_1 * 2 + 1) & 0x20) == 0) break;
param_1 = param_1 + 1;
pcVar6 = param_2;
} while (param_1 != param_2);
}
pcVar5 = pcVar6 + ((long)param_2 - (long)pcVar6);
if (0 < (long)param_2 - (long)pcVar6) {
ppuVar2 = __ctype_b_loc();
do {
if ((*(byte *)((long)*ppuVar2 + (long)*pcVar6 * 2 + 1) & 0x20) == 0) break;
pcVar6 = pcVar6 + 1;
} while (pcVar6 < pcVar5);
}
if (pcVar6 == pcVar5) {
*param_3 = 0x22;
lVar3 = 0;
local_38 = pcVar6;
}
else {
cVar1 = *pcVar6;
if (cVar1 == '-') {
pcVar6 = pcVar6 + 1;
}
local_38 = pcVar6;
lVar3 = my_strtoull(pcVar6,(long)param_2 - (long)pcVar6,&local_38,param_3);
pcVar5 = local_38;
if (*param_3 == 0) {
if (cVar1 == '-') {
if (lVar3 < 0) {
*param_3 = 0x22;
lVar3 = -0x8000000000000000;
pcVar5 = local_38 + -1;
}
lVar3 = -lVar3;
}
else if (lVar3 < 0) {
pcVar5 = local_38 + -1;
*param_3 = 0x22;
lVar3 = 0x7fffffffffffffff;
}
}
}
pcVar6 = pcVar5;
if (pcVar5 < param_2) {
ppuVar2 = __ctype_b_loc();
lVar4 = (long)param_2 - (long)pcVar5;
do {
pcVar6 = pcVar5;
if ((*(byte *)((long)*ppuVar2 + (long)*pcVar5 * 2 + 1) & 0x20) == 0) break;
pcVar5 = pcVar5 + 1;
lVar4 = lVar4 + -1;
pcVar6 = param_2;
} while (lVar4 != 0);
}
if (pcVar6 != param_2) {
*param_3 = 1;
}
return lVar3;
}
| |
22,314 | ft_simple_get_word | eloqsql/storage/myisam/ft_parser.c | uchar ft_simple_get_word(CHARSET_INFO *cs, uchar **start, const uchar *end,
FT_WORD *word, my_bool skip_stopwords)
{
uchar *doc= *start;
uint mwc, length;
int mbl;
int ctype;
DBUG_ENTER("ft_simple_get_word");
do
{
for (;; doc+= (mbl > 0 ? mbl : (mbl < 0 ? -mbl : 1)))
{
if (doc >= end)
DBUG_RETURN(0);
mbl= my_ci_ctype(cs, &ctype, (uchar*)doc, (uchar*)end);
if (true_word_char(ctype, *doc))
break;
}
mwc= length= 0;
for (word->pos= doc; doc < end; length++,
doc+= (mbl > 0 ? mbl : (mbl < 0 ? -mbl : 1)))
{
mbl= my_ci_ctype(cs, &ctype, (uchar*)doc, (uchar*)end);
if (true_word_char(ctype, *doc))
mwc= 0;
else if (!misc_word_char(*doc) || mwc)
break;
else
mwc++;
}
word->len= (uint)(doc-word->pos) - mwc;
if (skip_stopwords == FALSE ||
(length >= ft_min_word_len && length < ft_max_word_len &&
!is_stopword((char*) word->pos, word->len)))
{
*start= doc;
DBUG_RETURN(1);
}
} while (doc < end);
DBUG_RETURN(0);
} | O0 | c | ft_simple_get_word:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movb %r8b, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movb %al, -0x29(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x665bb
movq -0x38(%rbp), %rax
cmpq -0x20(%rbp), %rax
jb 0x665d0
jmp 0x665c7
movb $0x0, -0x1(%rbp)
jmp 0x66793
movq -0x10(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x38(%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rdx
movq -0x20(%rbp), %rcx
leaq -0x48(%rbp), %rsi
callq *%rax
movl %eax, -0x44(%rbp)
movl -0x48(%rbp), %eax
andl $0x7, %eax
cmpl $0x0, %eax
jne 0x6660b
movq -0x38(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x5f, %eax
jne 0x6660d
jmp 0x66653
jmp 0x6660f
cmpl $0x0, -0x44(%rbp)
jle 0x6661d
movl -0x44(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x6663d
cmpl $0x0, -0x44(%rbp)
jge 0x6662d
xorl %eax, %eax
subl -0x44(%rbp), %eax
movl %eax, -0x50(%rbp)
jmp 0x66637
movl $0x1, %eax
movl %eax, -0x50(%rbp)
jmp 0x66637
movl -0x50(%rbp), %eax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %ecx
movq -0x38(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
jmp 0x665bb
movl $0x0, -0x40(%rbp)
movl $0x0, -0x3c(%rbp)
movq -0x38(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x6670f
movq -0x10(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x38(%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rdx
movq -0x20(%rbp), %rcx
leaq -0x48(%rbp), %rsi
callq *%rax
movl %eax, -0x44(%rbp)
movl -0x48(%rbp), %eax
andl $0x7, %eax
cmpl $0x0, %eax
jne 0x666b5
movq -0x38(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x5f, %eax
jne 0x666be
movl $0x0, -0x3c(%rbp)
jmp 0x666c0
jmp 0x6670f
jmp 0x666c2
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
cmpl $0x0, -0x44(%rbp)
jle 0x666d9
movl -0x44(%rbp), %eax
movl %eax, -0x54(%rbp)
jmp 0x666f9
cmpl $0x0, -0x44(%rbp)
jge 0x666e9
xorl %eax, %eax
subl -0x44(%rbp), %eax
movl %eax, -0x58(%rbp)
jmp 0x666f3
movl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x666f3
movl -0x58(%rbp), %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %ecx
movq -0x38(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
jmp 0x6666c
movq -0x38(%rbp), %rax
movq -0x28(%rbp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
subl -0x3c(%rbp), %eax
movl %eax, %eax
movl %eax, %ecx
movq -0x28(%rbp), %rax
movq %rcx, 0x10(%rax)
movsbl -0x29(%rbp), %eax
cmpl $0x0, %eax
je 0x6676c
movl -0x40(%rbp), %eax
leaq 0x1d4d61(%rip), %rcx # 0x23b4a0
cmpq (%rcx), %rax
jb 0x6677d
movl -0x40(%rbp), %eax
leaq 0x1d4d5a(%rip), %rcx # 0x23b4a8
cmpq (%rcx), %rax
jae 0x6677d
movq -0x28(%rbp), %rax
movq (%rax), %rdi
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x67120
cmpl $0x0, %eax
jne 0x6677d
movq -0x38(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movb $0x1, -0x1(%rbp)
jmp 0x66793
jmp 0x6677f
movq -0x38(%rbp), %rax
cmpq -0x20(%rbp), %rax
jb 0x665b9
jmp 0x6678f
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
| ft_simple_get_word:
push rbp
mov rbp, rsp
sub rsp, 60h
mov al, r8b
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_29], al
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_38], rax
loc_665B9:
jmp short $+2
loc_665BB:
mov rax, [rbp+var_38]
cmp rax, [rbp+var_20]
jb short loc_665D0
jmp short $+2
loc_665C7:
mov [rbp+var_1], 0
jmp loc_66793
loc_665D0:
mov rax, [rbp+var_10]
mov rax, [rax+0B8h]
mov rax, [rax+38h]
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_38]
mov rcx, [rbp+var_20]
lea rsi, [rbp+var_48]
call rax
mov [rbp+var_44], eax
mov eax, [rbp+var_48]
and eax, 7
cmp eax, 0
jnz short loc_6660B
mov rax, [rbp+var_38]
movzx eax, byte ptr [rax]
cmp eax, 5Fh ; '_'
jnz short loc_6660D
loc_6660B:
jmp short loc_66653
loc_6660D:
jmp short $+2
loc_6660F:
cmp [rbp+var_44], 0
jle short loc_6661D
mov eax, [rbp+var_44]
mov [rbp+var_4C], eax
jmp short loc_6663D
loc_6661D:
cmp [rbp+var_44], 0
jge short loc_6662D
xor eax, eax
sub eax, [rbp+var_44]
mov [rbp+var_50], eax
jmp short loc_66637
loc_6662D:
mov eax, 1
mov [rbp+var_50], eax
jmp short $+2
loc_66637:
mov eax, [rbp+var_50]
mov [rbp+var_4C], eax
loc_6663D:
mov ecx, [rbp+var_4C]
mov rax, [rbp+var_38]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_38], rax
jmp loc_665BB
loc_66653:
mov [rbp+var_40], 0
mov [rbp+var_3C], 0
mov rcx, [rbp+var_38]
mov rax, [rbp+var_28]
mov [rax], rcx
loc_6666C:
mov rax, [rbp+var_38]
cmp rax, [rbp+var_20]
jnb loc_6670F
mov rax, [rbp+var_10]
mov rax, [rax+0B8h]
mov rax, [rax+38h]
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_38]
mov rcx, [rbp+var_20]
lea rsi, [rbp+var_48]
call rax
mov [rbp+var_44], eax
mov eax, [rbp+var_48]
and eax, 7
cmp eax, 0
jnz short loc_666B5
mov rax, [rbp+var_38]
movzx eax, byte ptr [rax]
cmp eax, 5Fh ; '_'
jnz short loc_666BE
loc_666B5:
mov [rbp+var_3C], 0
jmp short loc_666C0
loc_666BE:
jmp short loc_6670F
loc_666C0:
jmp short $+2
loc_666C2:
mov eax, [rbp+var_40]
add eax, 1
mov [rbp+var_40], eax
cmp [rbp+var_44], 0
jle short loc_666D9
mov eax, [rbp+var_44]
mov [rbp+var_54], eax
jmp short loc_666F9
loc_666D9:
cmp [rbp+var_44], 0
jge short loc_666E9
xor eax, eax
sub eax, [rbp+var_44]
mov [rbp+var_58], eax
jmp short loc_666F3
loc_666E9:
mov eax, 1
mov [rbp+var_58], eax
jmp short $+2
loc_666F3:
mov eax, [rbp+var_58]
mov [rbp+var_54], eax
loc_666F9:
mov ecx, [rbp+var_54]
mov rax, [rbp+var_38]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_38], rax
jmp loc_6666C
loc_6670F:
mov rax, [rbp+var_38]
mov rcx, [rbp+var_28]
mov rcx, [rcx]
sub rax, rcx
sub eax, [rbp+var_3C]
mov eax, eax
mov ecx, eax
mov rax, [rbp+var_28]
mov [rax+10h], rcx
movsx eax, [rbp+var_29]
cmp eax, 0
jz short loc_6676C
mov eax, [rbp+var_40]
lea rcx, ft_min_word_len
cmp rax, [rcx]
jb short loc_6677D
mov eax, [rbp+var_40]
lea rcx, ft_max_word_len
cmp rax, [rcx]
jnb short loc_6677D
mov rax, [rbp+var_28]
mov rdi, [rax]
mov rax, [rbp+var_28]
mov rsi, [rax+10h]
call is_stopword
cmp eax, 0
jnz short loc_6677D
loc_6676C:
mov rcx, [rbp+var_38]
mov rax, [rbp+var_18]
mov [rax], rcx
mov [rbp+var_1], 1
jmp short loc_66793
loc_6677D:
jmp short $+2
loc_6677F:
mov rax, [rbp+var_38]
cmp rax, [rbp+var_20]
jb loc_665B9
jmp short $+2
loc_6678F:
mov [rbp+var_1], 0
loc_66793:
mov al, [rbp+var_1]
add rsp, 60h
pop rbp
retn
| char ft_simple_get_word(long long a1, _BYTE **a2, unsigned long long a3, _QWORD *a4, char a5)
{
int v6; // [rsp+8h] [rbp-58h]
int v7; // [rsp+Ch] [rbp-54h]
int v8; // [rsp+10h] [rbp-50h]
int v9; // [rsp+14h] [rbp-4Ch]
int v10; // [rsp+18h] [rbp-48h] BYREF
int v11; // [rsp+1Ch] [rbp-44h]
unsigned int v12; // [rsp+20h] [rbp-40h]
int v13; // [rsp+24h] [rbp-3Ch]
_BYTE *v14; // [rsp+28h] [rbp-38h]
char v15; // [rsp+37h] [rbp-29h]
_QWORD *v16; // [rsp+38h] [rbp-28h]
unsigned long long v17; // [rsp+40h] [rbp-20h]
_QWORD *v18; // [rsp+48h] [rbp-18h]
long long v19; // [rsp+50h] [rbp-10h]
v19 = a1;
v18 = a2;
v17 = a3;
v16 = a4;
v15 = a5;
v14 = *a2;
do
{
while ( 1 )
{
if ( (unsigned long long)v14 >= v17 )
return 0;
v11 = (*(long long ( **)(long long, int *, _BYTE *, unsigned long long))(*(_QWORD *)(v19 + 184) + 56LL))(
v19,
&v10,
v14,
v17);
if ( (v10 & 7) != 0 || *v14 == 95 )
break;
if ( v11 <= 0 )
{
if ( v11 >= 0 )
v8 = 1;
else
v8 = -v11;
v9 = v8;
}
else
{
v9 = v11;
}
v14 += v9;
}
v12 = 0;
v13 = 0;
*v16 = v14;
while ( (unsigned long long)v14 < v17 )
{
v11 = (*(long long ( **)(long long, int *, _BYTE *, unsigned long long))(*(_QWORD *)(v19 + 184) + 56LL))(
v19,
&v10,
v14,
v17);
if ( (v10 & 7) == 0 && *v14 != 95 )
break;
v13 = 0;
++v12;
if ( v11 <= 0 )
{
if ( v11 >= 0 )
v6 = 1;
else
v6 = -v11;
v7 = v6;
}
else
{
v7 = v11;
}
v14 += v7;
}
v16[2] = (unsigned int)v14 - (unsigned int)*v16 - v13;
if ( !v15
|| (unsigned long long)v12 >= ft_min_word_len
&& (unsigned long long)v12 < ft_max_word_len
&& !(unsigned int)is_stopword(*v16, v16[2]) )
{
*v18 = v14;
return 1;
}
}
while ( (unsigned long long)v14 < v17 );
return 0;
}
| ft_simple_get_word:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV AL,R8B
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV byte ptr [RBP + -0x29],AL
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
LAB_001665b9:
JMP 0x001665bb
LAB_001665bb:
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x20]
JC 0x001665d0
JMP 0x001665c7
LAB_001665c7:
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00166793
LAB_001665d0:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x38]
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x20]
LEA RSI,[RBP + -0x48]
CALL RAX
MOV dword ptr [RBP + -0x44],EAX
MOV EAX,dword ptr [RBP + -0x48]
AND EAX,0x7
CMP EAX,0x0
JNZ 0x0016660b
MOV RAX,qword ptr [RBP + -0x38]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x5f
JNZ 0x0016660d
LAB_0016660b:
JMP 0x00166653
LAB_0016660d:
JMP 0x0016660f
LAB_0016660f:
CMP dword ptr [RBP + -0x44],0x0
JLE 0x0016661d
MOV EAX,dword ptr [RBP + -0x44]
MOV dword ptr [RBP + -0x4c],EAX
JMP 0x0016663d
LAB_0016661d:
CMP dword ptr [RBP + -0x44],0x0
JGE 0x0016662d
XOR EAX,EAX
SUB EAX,dword ptr [RBP + -0x44]
MOV dword ptr [RBP + -0x50],EAX
JMP 0x00166637
LAB_0016662d:
MOV EAX,0x1
MOV dword ptr [RBP + -0x50],EAX
JMP 0x00166637
LAB_00166637:
MOV EAX,dword ptr [RBP + -0x50]
MOV dword ptr [RBP + -0x4c],EAX
LAB_0016663d:
MOV ECX,dword ptr [RBP + -0x4c]
MOV RAX,qword ptr [RBP + -0x38]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
JMP 0x001665bb
LAB_00166653:
MOV dword ptr [RBP + -0x40],0x0
MOV dword ptr [RBP + -0x3c],0x0
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
LAB_0016666c:
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x0016670f
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x38]
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x20]
LEA RSI,[RBP + -0x48]
CALL RAX
MOV dword ptr [RBP + -0x44],EAX
MOV EAX,dword ptr [RBP + -0x48]
AND EAX,0x7
CMP EAX,0x0
JNZ 0x001666b5
MOV RAX,qword ptr [RBP + -0x38]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x5f
JNZ 0x001666be
LAB_001666b5:
MOV dword ptr [RBP + -0x3c],0x0
JMP 0x001666c0
LAB_001666be:
JMP 0x0016670f
LAB_001666c0:
JMP 0x001666c2
LAB_001666c2:
MOV EAX,dword ptr [RBP + -0x40]
ADD EAX,0x1
MOV dword ptr [RBP + -0x40],EAX
CMP dword ptr [RBP + -0x44],0x0
JLE 0x001666d9
MOV EAX,dword ptr [RBP + -0x44]
MOV dword ptr [RBP + -0x54],EAX
JMP 0x001666f9
LAB_001666d9:
CMP dword ptr [RBP + -0x44],0x0
JGE 0x001666e9
XOR EAX,EAX
SUB EAX,dword ptr [RBP + -0x44]
MOV dword ptr [RBP + -0x58],EAX
JMP 0x001666f3
LAB_001666e9:
MOV EAX,0x1
MOV dword ptr [RBP + -0x58],EAX
JMP 0x001666f3
LAB_001666f3:
MOV EAX,dword ptr [RBP + -0x58]
MOV dword ptr [RBP + -0x54],EAX
LAB_001666f9:
MOV ECX,dword ptr [RBP + -0x54]
MOV RAX,qword ptr [RBP + -0x38]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
JMP 0x0016666c
LAB_0016670f:
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RCX]
SUB RAX,RCX
SUB EAX,dword ptr [RBP + -0x3c]
MOV EAX,EAX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0x10],RCX
MOVSX EAX,byte ptr [RBP + -0x29]
CMP EAX,0x0
JZ 0x0016676c
MOV EAX,dword ptr [RBP + -0x40]
LEA RCX,[0x33b4a0]
CMP RAX,qword ptr [RCX]
JC 0x0016677d
MOV EAX,dword ptr [RBP + -0x40]
LEA RCX,[0x33b4a8]
CMP RAX,qword ptr [RCX]
JNC 0x0016677d
MOV RAX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RAX + 0x10]
CALL 0x00167120
CMP EAX,0x0
JNZ 0x0016677d
LAB_0016676c:
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00166793
LAB_0016677d:
JMP 0x0016677f
LAB_0016677f:
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x20]
JC 0x001665b9
JMP 0x0016678f
LAB_0016678f:
MOV byte ptr [RBP + -0x1],0x0
LAB_00166793:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x60
POP RBP
RET
|
int1
ft_simple_get_word(long param_1,int8 *param_2,char *param_3,int8 *param_4,char param_5)
{
int iVar1;
int local_60;
int local_5c;
int local_58;
int local_54;
uint local_50;
int local_4c;
uint local_48;
int local_44;
char *local_40;
char local_31;
int8 *local_30;
char *local_28;
int8 *local_20;
long local_18;
local_40 = (char *)*param_2;
local_31 = param_5;
local_30 = param_4;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
while( true ) {
while( true ) {
if (local_28 <= local_40) {
return 0;
}
local_4c = (**(code **)(*(long *)(local_18 + 0xb8) + 0x38))
(local_18,&local_50,local_40,local_28);
if (((local_50 & 7) != 0) || (*local_40 == '_')) break;
local_54 = local_4c;
if (local_4c < 1) {
if (local_4c < 0) {
local_58 = -local_4c;
}
else {
local_58 = 1;
}
local_54 = local_58;
}
local_40 = local_40 + local_54;
}
local_48 = 0;
*local_30 = local_40;
while ((local_44 = 0, local_40 < local_28 &&
((local_4c = (**(code **)(*(long *)(local_18 + 0xb8) + 0x38))
(local_18,&local_50,local_40,local_28), (local_50 & 7) != 0 ||
(*local_40 == '_'))))) {
local_48 = local_48 + 1;
local_5c = local_4c;
if (local_4c < 1) {
if (local_4c < 0) {
local_60 = -local_4c;
}
else {
local_60 = 1;
}
local_5c = local_60;
}
local_40 = local_40 + local_5c;
}
local_30[2] = (ulong)(uint)(((int)local_40 - (int)*local_30) - local_44);
if ((local_31 == '\0') ||
(((ft_min_word_len <= local_48 && (local_48 < ft_max_word_len)) &&
(iVar1 = is_stopword(*local_30,local_30[2]), iVar1 == 0)))) break;
if (local_28 <= local_40) {
return 0;
}
}
*local_20 = local_40;
return 1;
}
| |
22,315 | safe_lexcstrdup_root | eloqsql/mysys/my_alloc.c | LEX_CSTRING safe_lexcstrdup_root(MEM_ROOT *root, const LEX_CSTRING str)
{
LEX_CSTRING res;
if (str.length)
res.str= strmake_root(root, str.str, str.length);
else
res.str= (const char *)"";
res.length= str.length;
return res;
} | O0 | c | safe_lexcstrdup_root:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rsi, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0xb4572
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0xb4490
movq %rax, -0x10(%rbp)
jmp 0xb457d
leaq 0x69ddc(%rip), %rax # 0x11e355
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rdx
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| safe_lexcstrdup_root:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_20], rsi
mov [rbp+var_18], rdx
mov [rbp+var_28], rdi
cmp [rbp+var_18], 0
jz short loc_B4572
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_18]
call strmake_root
mov [rbp+var_10], rax
jmp short loc_B457D
loc_B4572:
lea rax, aLibmarias3SDS+19h; ""
mov [rbp+var_10], rax
loc_B457D:
mov rax, [rbp+var_18]
mov [rbp+var_8], rax
mov rax, [rbp+var_10]
mov rdx, [rbp+var_8]
add rsp, 30h
pop rbp
retn
| char * safe_lexcstrdup_root(_QWORD **a1, long long a2, long long a3)
{
if ( a3 )
return strmake_root(a1, a2, a3);
else
return "";
}
| safe_lexcstrdup_root:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x20],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x28],RDI
CMP qword ptr [RBP + -0x18],0x0
JZ 0x001b4572
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x001b4490
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001b457d
LAB_001b4572:
LEA RAX,[0x21e355]
MOV qword ptr [RBP + -0x10],RAX
LAB_001b457d:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
int1 [16] safe_lexcstrdup_root(int8 param_1,int8 param_2,long param_3)
{
int1 auVar1 [16];
char *local_18;
if (param_3 == 0) {
local_18 = "";
}
else {
local_18 = (char *)strmake_root(param_1,param_2,param_3);
}
auVar1._8_8_ = param_3;
auVar1._0_8_ = local_18;
return auVar1;
}
| |
22,316 | create_txs_builder | corpus-core[P]colibri-stateless/src/chains/eth/verifier/verify_block.c | static ssz_builder_t create_txs_builder(verify_ctx_t* ctx, const ssz_def_t* tx_union_def, bool include_txs, ssz_ob_t txs, bytes32_t tx_root, uint64_t block_number, bytes32_t block_hash, uint64_t base_fee) {
ssz_builder_t txs_builder = ssz_builder_for_def(tx_union_def->def.container.elements + ((int) include_txs));
node_t* root = NULL;
bytes32_t tmp = {0};
buffer_t buf = stack_buffer(tmp);
ssz_builder_t tx_builder = ssz_builder_for_def(txs_builder.def->def.vector.type);
int len = ssz_len(txs);
for (int i = 0; i < len; i++) {
bytes_t raw_tx = ssz_at(txs, i).bytes;
bytes32_t tx_hash;
keccak(raw_tx, tx_hash);
patricia_set_value(&root, c4_eth_create_tx_path(i, &buf), raw_tx);
if (include_txs) {
// we reset the builder to to avoid allocating memory too ofter and simply resuing the already allocated memory
tx_builder.fixed.data.len = 0;
tx_builder.dynamic.data.len = 0;
if (!c4_write_tx_data_from_raw(ctx, &tx_builder, raw_tx, tx_hash, block_hash, block_number, i, base_fee)) break;
buffer_append(&tx_builder.fixed, tx_builder.dynamic.data);
ssz_add_dynamic_list_bytes(&txs_builder, len, tx_builder.fixed.data);
}
else
buffer_append(&txs_builder.fixed, bytes(tx_hash, 32));
}
memcpy(tx_root, patricia_get_root(root).data, 32);
patricia_node_free(root);
buffer_free(&tx_builder.dynamic);
buffer_free(&tx_builder.fixed);
return txs_builder;
} | O0 | c | create_txs_builder:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp # imm = 0x160
movq %rdi, -0x130(%rbp)
movb %cl, %al
movq %rdi, %rcx
movq %rcx, -0x138(%rbp)
movq 0x30(%rbp), %rcx
movq 0x28(%rbp), %rcx
leaq 0x10(%rbp), %rcx
movq %rcx, -0x128(%rbp)
movq %rsi, -0x8(%rbp)
movq %rdx, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
movq %r8, -0x20(%rbp)
movq %r9, -0x28(%rbp)
xorl %esi, %esi
movl $0x38, %edx
callq 0x231c0
movq -0x130(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movb -0x11(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
movslq %ecx, %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, (%rdi)
movq $0x0, -0x30(%rbp)
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x231c0
movl $0x0, -0x68(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x60(%rbp)
movl $0xffffffe0, -0x58(%rbp) # imm = 0xFFFFFFE0
leaq -0xa0(%rbp), %rdi
xorl %esi, %esi
movl $0x38, %edx
callq 0x231c0
movq -0x130(%rbp), %rdi
movq -0x128(%rbp), %rax
movq (%rdi), %rcx
movq 0x10(%rcx), %rcx
movq %rcx, -0xa0(%rbp)
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0xa0830
movl %eax, -0xa4(%rbp)
movl $0x0, -0xa8(%rbp)
movl -0xa8(%rbp), %eax
cmpl -0xa4(%rbp), %eax
jge 0x2ae56
movq -0x128(%rbp), %rax
movl -0xa8(%rbp), %esi
leaq -0xd0(%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 0xa0580
movq -0xd0(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq -0xf0(%rbp), %rdx
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
callq 0xa4990
movl -0xa8(%rbp), %edi
leaq -0x68(%rbp), %rsi
callq 0x31e20
movl %eax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movl -0x100(%rbp), %esi
movq -0xf8(%rbp), %rdx
movl -0xb8(%rbp), %ecx
movq -0xb0(%rbp), %r8
leaq -0x30(%rbp), %rdi
callq 0x34560
testb $0x1, -0x11(%rbp)
je 0x2ae0b
movl $0x0, -0x98(%rbp)
movl $0x0, -0x80(%rbp)
movq -0x8(%rbp), %rdi
leaq -0xf0(%rbp), %r8
movq 0x28(%rbp), %r9
movq -0x28(%rbp), %r11
movl -0xa8(%rbp), %r10d
movq 0x30(%rbp), %rax
movl -0xb8(%rbp), %edx
movq -0xb0(%rbp), %rcx
leaq -0xa0(%rbp), %rsi
movq %r11, (%rsp)
movl %r10d, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x31fe0
testb $0x1, %al
jne 0x2add3
jmp 0x2ae56
leaq -0xa0(%rbp), %rdi
addq $0x8, %rdi
movl -0x80(%rbp), %esi
movq -0x78(%rbp), %rdx
callq 0x9e080
movq -0x130(%rbp), %rdi
movl -0xa4(%rbp), %esi
movl -0x98(%rbp), %edx
movq -0x90(%rbp), %rcx
callq 0xa3820
jmp 0x2ae40
movq -0x130(%rbp), %rdi
addq $0x8, %rdi
movl $0x20, -0x110(%rbp)
leaq -0xf0(%rbp), %rax
movq %rax, -0x108(%rbp)
movl -0x110(%rbp), %esi
movq -0x108(%rbp), %rdx
callq 0x9e080
jmp 0x2ae42
movl -0xa8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa8(%rbp)
jmp 0x2acb2
movq -0x20(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x30(%rbp), %rdi
callq 0x35320
movl %eax, %ecx
movq -0x140(%rbp), %rax
movl %ecx, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movq -0x118(%rbp), %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rax)
movq 0x10(%rcx), %rdx
movq %rdx, 0x10(%rax)
movq 0x18(%rcx), %rcx
movq %rcx, 0x18(%rax)
movq -0x30(%rbp), %rdi
callq 0x34470
leaq -0xa0(%rbp), %rdi
addq $0x20, %rdi
callq 0x9e240
leaq -0xa0(%rbp), %rdi
addq $0x8, %rdi
callq 0x9e240
movq -0x138(%rbp), %rax
addq $0x160, %rsp # imm = 0x160
popq %rbp
retq
nop
| create_txs_builder:
push rbp
mov rbp, rsp
sub rsp, 160h
mov [rbp+var_130], rdi
mov al, cl
mov rcx, rdi
mov [rbp+var_138], rcx
mov rcx, [rbp+arg_20]
mov rcx, [rbp+arg_18]
lea rcx, [rbp+arg_0]
mov [rbp+var_128], rcx
mov [rbp+var_8], rsi
mov [rbp+var_10], rdx
and al, 1
mov [rbp+var_11], al
mov [rbp+var_20], r8
mov [rbp+var_28], r9
xor esi, esi
mov edx, 38h ; '8'
call _memset
mov rdi, [rbp+var_130]
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov cl, [rbp+var_11]
and cl, 1
movzx ecx, cl
movsxd rcx, ecx
shl rcx, 5
add rax, rcx
mov [rdi], rax
mov [rbp+var_30], 0
lea rdi, [rbp+var_50]
xor esi, esi
mov edx, 20h ; ' '
call _memset
mov [rbp+var_68], 0
lea rax, [rbp+var_50]
mov [rbp+var_60], rax
mov [rbp+var_58], 0FFFFFFE0h
lea rdi, [rbp+var_A0]
xor esi, esi
mov edx, 38h ; '8'
call _memset
mov rdi, [rbp+var_130]
mov rax, [rbp+var_128]
mov rcx, [rdi]
mov rcx, [rcx+10h]
mov [rbp+var_A0], rcx
mov rcx, [rax]
mov [rsp+160h+var_160], rcx
mov rcx, [rax+8]
mov [rsp+160h+var_158], rcx
mov rax, [rax+10h]
mov [rsp+160h+var_150], rax
call ssz_len
mov [rbp+var_A4], eax
mov [rbp+var_A8], 0
loc_2ACB2:
mov eax, [rbp+var_A8]
cmp eax, [rbp+var_A4]
jge loc_2AE56
mov rax, [rbp+var_128]
mov esi, [rbp+var_A8]
lea rdi, [rbp+var_D0]
mov rcx, [rax]
mov [rsp+160h+var_160], rcx
mov rcx, [rax+8]
mov [rsp+160h+var_158], rcx
mov rax, [rax+10h]
mov [rsp+160h+var_150], rax
call ssz_at
mov rax, [rbp+var_D0]
mov [rbp+var_B8], rax
mov rax, [rbp+var_C8]
mov [rbp+var_B0], rax
lea rdx, [rbp+var_F0]
mov edi, dword ptr [rbp+var_B8]
mov rsi, [rbp+var_B0]
call keccak
mov edi, [rbp+var_A8]
lea rsi, [rbp+var_68]
call c4_eth_create_tx_path
mov [rbp+var_100], eax
mov [rbp+var_F8], rdx
mov esi, [rbp+var_100]
mov rdx, [rbp+var_F8]
mov ecx, dword ptr [rbp+var_B8]
mov r8, [rbp+var_B0]
lea rdi, [rbp+var_30]
call patricia_set_value
test [rbp+var_11], 1
jz loc_2AE0B
mov [rbp+var_98], 0
mov [rbp+var_80], 0
mov rdi, [rbp+var_8]
lea r8, [rbp+var_F0]
mov r9, [rbp+arg_18]
mov r11, [rbp+var_28]
mov r10d, [rbp+var_A8]
mov rax, [rbp+arg_20]
mov edx, dword ptr [rbp+var_B8]
mov rcx, [rbp+var_B0]
lea rsi, [rbp+var_A0]
mov [rsp+160h+var_160], r11
mov dword ptr [rsp+160h+var_158], r10d
mov [rsp+160h+var_150], rax
call c4_write_tx_data_from_raw
test al, 1
jnz short loc_2ADD3
jmp loc_2AE56
loc_2ADD3:
lea rdi, [rbp+var_A0]
add rdi, 8
mov esi, [rbp+var_80]
mov rdx, [rbp+var_78]
call buffer_append
mov rdi, [rbp+var_130]
mov esi, [rbp+var_A4]
mov edx, [rbp+var_98]
mov rcx, [rbp+var_90]
call ssz_add_dynamic_list_bytes
jmp short loc_2AE40
loc_2AE0B:
mov rdi, [rbp+var_130]
add rdi, 8
mov [rbp+var_110], 20h ; ' '
lea rax, [rbp+var_F0]
mov [rbp+var_108], rax
mov esi, [rbp+var_110]
mov rdx, [rbp+var_108]
call buffer_append
loc_2AE40:
jmp short $+2
loc_2AE42:
mov eax, [rbp+var_A8]
add eax, 1
mov [rbp+var_A8], eax
jmp loc_2ACB2
loc_2AE56:
mov rax, [rbp+var_20]
mov [rbp+var_140], rax
mov rdi, [rbp+var_30]
call patricia_get_root
mov ecx, eax
mov rax, [rbp+var_140]
mov [rbp+var_120], ecx
mov [rbp+var_118], rdx
mov rcx, [rbp+var_118]
mov rdx, [rcx]
mov [rax], rdx
mov rdx, [rcx+8]
mov [rax+8], rdx
mov rdx, [rcx+10h]
mov [rax+10h], rdx
mov rcx, [rcx+18h]
mov [rax+18h], rcx
mov rdi, [rbp+var_30]
call patricia_node_free
lea rdi, [rbp+var_A0]
add rdi, 20h ; ' '
call buffer_free
lea rdi, [rbp+var_A0]
add rdi, 8
call buffer_free
mov rax, [rbp+var_138]
add rsp, 160h
pop rbp
retn
| long long create_txs_builder(
long long a1,
long long a2,
long long a3,
char a4,
_QWORD *a5,
long long a6,
long long a7,
long long a8,
long long a9,
long long a10,
long long a11)
{
int v11; // edx
int v12; // r8d
int v13; // r9d
int v14; // edx
int v15; // r8d
int v16; // r9d
long long v17; // rdx
_QWORD *v18; // rdx
_QWORD *v20; // [rsp+20h] [rbp-140h]
unsigned int v21; // [rsp+60h] [rbp-100h]
_BYTE v22[32]; // [rsp+70h] [rbp-F0h] BYREF
long long v23; // [rsp+90h] [rbp-D0h] BYREF
long long v24; // [rsp+98h] [rbp-C8h]
long long v25; // [rsp+A8h] [rbp-B8h]
long long v26; // [rsp+B0h] [rbp-B0h]
unsigned int i; // [rsp+B8h] [rbp-A8h]
unsigned int v28; // [rsp+BCh] [rbp-A4h]
long long v29; // [rsp+C0h] [rbp-A0h] BYREF
unsigned int v30; // [rsp+C8h] [rbp-98h] BYREF
long long v31; // [rsp+D0h] [rbp-90h]
unsigned int v32; // [rsp+E0h] [rbp-80h] BYREF
long long v33; // [rsp+E8h] [rbp-78h]
int v34; // [rsp+F8h] [rbp-68h] BYREF
_BYTE *v35; // [rsp+100h] [rbp-60h]
int v36; // [rsp+108h] [rbp-58h]
_BYTE v37[32]; // [rsp+110h] [rbp-50h] BYREF
long long v38; // [rsp+130h] [rbp-30h] BYREF
long long v39; // [rsp+138h] [rbp-28h]
_QWORD *v40; // [rsp+140h] [rbp-20h]
char v41; // [rsp+14Fh] [rbp-11h]
long long v42; // [rsp+150h] [rbp-10h]
long long v43; // [rsp+158h] [rbp-8h]
v43 = a2;
v42 = a3;
v41 = a4 & 1;
v40 = a5;
v39 = a6;
memset(a1, 0LL, 56LL);
*(_QWORD *)a1 = 32LL * (v41 & 1) + *(_QWORD *)(v42 + 16);
v38 = 0LL;
memset(v37, 0LL, sizeof(v37));
v34 = 0;
v35 = v37;
v36 = -32;
memset(&v29, 0LL, 56LL);
v29 = *(_QWORD *)(*(_QWORD *)a1 + 16LL);
v28 = ssz_len(a1, 0, v11, a8, v12, v13, a7, a8, a9);
for ( i = 0; (int)i < (int)v28; ++i )
{
ssz_at((unsigned int)&v23, i, v14, a8, v15, v16, a7, a8, a9);
v25 = v23;
v26 = v24;
keccak((unsigned int)v23, v24, v22);
v21 = c4_eth_create_tx_path(i, &v34);
patricia_set_value(&v38, v21, v17, (unsigned int)v25, v26);
if ( (v41 & 1) != 0 )
{
v30 = 0;
v32 = 0;
if ( (c4_write_tx_data_from_raw(v43, (unsigned int)&v29, v25, v26, (unsigned int)v22, a10, v39, i, a11) & 1) == 0 )
break;
buffer_append(&v30, v32, v33);
ssz_add_dynamic_list_bytes(a1, v28, v30, v31);
}
else
{
buffer_append(a1 + 8, 32LL, v22);
}
}
v20 = v40;
patricia_get_root(v38);
*v20 = *v18;
v20[1] = v18[1];
v20[2] = v18[2];
v20[3] = v18[3];
patricia_node_free(v38);
buffer_free(&v32);
buffer_free(&v30);
return a1;
}
| create_txs_builder:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x160
MOV qword ptr [RBP + -0x130],RDI
MOV AL,CL
MOV RCX,RDI
MOV qword ptr [RBP + -0x138],RCX
MOV RCX,qword ptr [RBP + 0x30]
MOV RCX,qword ptr [RBP + 0x28]
LEA RCX,[RBP + 0x10]
MOV qword ptr [RBP + -0x128],RCX
MOV qword ptr [RBP + -0x8],RSI
MOV qword ptr [RBP + -0x10],RDX
AND AL,0x1
MOV byte ptr [RBP + -0x11],AL
MOV qword ptr [RBP + -0x20],R8
MOV qword ptr [RBP + -0x28],R9
XOR ESI,ESI
MOV EDX,0x38
CALL 0x001231c0
MOV RDI,qword ptr [RBP + -0x130]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV CL,byte ptr [RBP + -0x11]
AND CL,0x1
MOVZX ECX,CL
MOVSXD RCX,ECX
SHL RCX,0x5
ADD RAX,RCX
MOV qword ptr [RDI],RAX
MOV qword ptr [RBP + -0x30],0x0
LEA RDI,[RBP + -0x50]
XOR ESI,ESI
MOV EDX,0x20
CALL 0x001231c0
MOV dword ptr [RBP + -0x68],0x0
LEA RAX,[RBP + -0x50]
MOV qword ptr [RBP + -0x60],RAX
MOV dword ptr [RBP + -0x58],0xffffffe0
LEA RDI,[RBP + -0xa0]
XOR ESI,ESI
MOV EDX,0x38
CALL 0x001231c0
MOV RDI,qword ptr [RBP + -0x130]
MOV RAX,qword ptr [RBP + -0x128]
MOV RCX,qword ptr [RDI]
MOV RCX,qword ptr [RCX + 0x10]
MOV qword ptr [RBP + -0xa0],RCX
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 0x001a0830
MOV dword ptr [RBP + -0xa4],EAX
MOV dword ptr [RBP + -0xa8],0x0
LAB_0012acb2:
MOV EAX,dword ptr [RBP + -0xa8]
CMP EAX,dword ptr [RBP + -0xa4]
JGE 0x0012ae56
MOV RAX,qword ptr [RBP + -0x128]
MOV ESI,dword ptr [RBP + -0xa8]
LEA RDI,[RBP + -0xd0]
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 0x001a0580
MOV RAX,qword ptr [RBP + -0xd0]
MOV qword ptr [RBP + -0xb8],RAX
MOV RAX,qword ptr [RBP + -0xc8]
MOV qword ptr [RBP + -0xb0],RAX
LEA RDX,[RBP + -0xf0]
MOV EDI,dword ptr [RBP + -0xb8]
MOV RSI,qword ptr [RBP + -0xb0]
CALL 0x001a4990
MOV EDI,dword ptr [RBP + -0xa8]
LEA RSI,[RBP + -0x68]
CALL 0x00131e20
MOV dword ptr [RBP + -0x100],EAX
MOV qword ptr [RBP + -0xf8],RDX
MOV ESI,dword ptr [RBP + -0x100]
MOV RDX,qword ptr [RBP + -0xf8]
MOV ECX,dword ptr [RBP + -0xb8]
MOV R8,qword ptr [RBP + -0xb0]
LEA RDI,[RBP + -0x30]
CALL 0x00134560
TEST byte ptr [RBP + -0x11],0x1
JZ 0x0012ae0b
MOV dword ptr [RBP + -0x98],0x0
MOV dword ptr [RBP + -0x80],0x0
MOV RDI,qword ptr [RBP + -0x8]
LEA R8,[RBP + -0xf0]
MOV R9,qword ptr [RBP + 0x28]
MOV R11,qword ptr [RBP + -0x28]
MOV R10D,dword ptr [RBP + -0xa8]
MOV RAX,qword ptr [RBP + 0x30]
MOV EDX,dword ptr [RBP + -0xb8]
MOV RCX,qword ptr [RBP + -0xb0]
LEA RSI,[RBP + -0xa0]
MOV qword ptr [RSP],R11
MOV dword ptr [RSP + 0x8],R10D
MOV qword ptr [RSP + 0x10],RAX
CALL 0x00131fe0
TEST AL,0x1
JNZ 0x0012add3
JMP 0x0012ae56
LAB_0012add3:
LEA RDI,[RBP + -0xa0]
ADD RDI,0x8
MOV ESI,dword ptr [RBP + -0x80]
MOV RDX,qword ptr [RBP + -0x78]
CALL 0x0019e080
MOV RDI,qword ptr [RBP + -0x130]
MOV ESI,dword ptr [RBP + -0xa4]
MOV EDX,dword ptr [RBP + -0x98]
MOV RCX,qword ptr [RBP + -0x90]
CALL 0x001a3820
JMP 0x0012ae40
LAB_0012ae0b:
MOV RDI,qword ptr [RBP + -0x130]
ADD RDI,0x8
MOV dword ptr [RBP + -0x110],0x20
LEA RAX,[RBP + -0xf0]
MOV qword ptr [RBP + -0x108],RAX
MOV ESI,dword ptr [RBP + -0x110]
MOV RDX,qword ptr [RBP + -0x108]
CALL 0x0019e080
LAB_0012ae40:
JMP 0x0012ae42
LAB_0012ae42:
MOV EAX,dword ptr [RBP + -0xa8]
ADD EAX,0x1
MOV dword ptr [RBP + -0xa8],EAX
JMP 0x0012acb2
LAB_0012ae56:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x140],RAX
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x00135320
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x140]
MOV dword ptr [RBP + -0x120],ECX
MOV qword ptr [RBP + -0x118],RDX
MOV RCX,qword ptr [RBP + -0x118]
MOV RDX,qword ptr [RCX]
MOV qword ptr [RAX],RDX
MOV RDX,qword ptr [RCX + 0x8]
MOV qword ptr [RAX + 0x8],RDX
MOV RDX,qword ptr [RCX + 0x10]
MOV qword ptr [RAX + 0x10],RDX
MOV RCX,qword ptr [RCX + 0x18]
MOV qword ptr [RAX + 0x18],RCX
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x00134470
LEA RDI,[RBP + -0xa0]
ADD RDI,0x20
CALL 0x0019e240
LEA RDI,[RBP + -0xa0]
ADD RDI,0x8
CALL 0x0019e240
MOV RAX,qword ptr [RBP + -0x138]
ADD RSP,0x160
POP RBP
RET
|
long * create_txs_builder(long *param_1,int8 param_2,long param_3,byte param_4,
int8 *param_5,int8 param_6,int8 param_7,
int8 param_8,int8 param_9,int8 param_10,
int8 param_11)
{
int8 *puVar1;
int4 uVar2;
ulong uVar3;
int8 extraout_RDX;
int8 *extraout_RDX_00;
int4 uVar4;
int1 local_f8 [32];
ulong local_d8;
int8 local_d0;
ulong local_c0;
int8 local_b8;
int local_b0;
int local_ac;
int8 local_a8;
int4 local_a0 [2];
int8 local_98;
int4 local_88 [2];
int8 local_80;
int4 local_70 [2];
int1 *local_68;
int4 local_60;
int1 local_58 [32];
int8 local_38;
int8 local_30;
int8 *local_28;
byte local_19;
long local_18;
int8 local_10;
local_19 = param_4 & 1;
local_30 = param_6;
local_28 = param_5;
local_18 = param_3;
local_10 = param_2;
memset(param_1,0,0x38);
*param_1 = *(long *)(local_18 + 0x10) + (long)(int)(uint)(local_19 & 1) * 0x20;
local_38 = 0;
memset(local_58,0,0x20);
local_70[0] = 0;
local_68 = local_58;
local_60 = 0xffffffe0;
memset(&local_a8,0,0x38);
local_a8 = *(int8 *)(*param_1 + 0x10);
local_ac = ssz_len();
for (local_b0 = 0; local_b0 < local_ac; local_b0 = local_b0 + 1) {
uVar4 = param_8._4_4_;
ssz_at(&local_d8,local_b0);
local_c0 = local_d8;
local_b8 = local_d0;
keccak(local_d8 & 0xffffffff,local_d0,local_f8);
uVar2 = c4_eth_create_tx_path(local_b0,local_70);
patricia_set_value(&local_38,uVar2,extraout_RDX,local_c0 & 0xffffffff,local_b8);
if ((local_19 & 1) == 0) {
buffer_append(param_1 + 1,0x20,local_f8);
}
else {
local_a0[0] = 0;
local_88[0] = 0;
uVar3 = c4_write_tx_data_from_raw
(local_10,&local_a8,local_c0 & 0xffffffff,local_b8,local_f8,param_10,
local_30,CONCAT44(uVar4,local_b0),param_11);
if ((uVar3 & 1) == 0) break;
buffer_append(local_a0,local_88[0],local_80);
ssz_add_dynamic_list_bytes(param_1,local_ac,local_a0[0],local_98);
}
}
puVar1 = local_28;
patricia_get_root(local_38);
*puVar1 = *extraout_RDX_00;
puVar1[1] = extraout_RDX_00[1];
puVar1[2] = extraout_RDX_00[2];
puVar1[3] = extraout_RDX_00[3];
patricia_node_free(local_38);
buffer_free(local_88);
buffer_free(local_a0);
return param_1;
}
| |
22,317 | my_open | eloqsql/mysys/my_open.c | File my_open(const char *FileName, int Flags, myf MyFlags)
/* Path-name of file */
/* Read | write .. */
/* Special flags */
{
File fd;
DBUG_ENTER("my_open");
DBUG_PRINT("my",("Name: '%s' Flags: %d MyFlags: %lu",
FileName, Flags, MyFlags));
if (!(MyFlags & (MY_WME | MY_FAE | MY_FFNF)))
MyFlags|= my_global_flags;
#if defined(_WIN32)
fd= my_win_open(FileName, Flags);
#else
if (MyFlags & MY_NOSYMLINKS)
fd = open_nosymlinks(FileName, Flags | O_CLOEXEC, my_umask);
else
fd = open(FileName, Flags | O_CLOEXEC, my_umask);
#endif
fd= my_register_filename(fd, FileName, FILE_BY_OPEN,
EE_FILENOTFOUND, MyFlags);
DBUG_RETURN(fd);
} | O0 | c | my_open:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
jmp 0xf5c35
movq -0x18(%rbp), %rax
andq $0x19, %rax
cmpq $0x0, %rax
jne 0xf5c55
leaq 0xb8ee3e(%rip), %rax # 0xc84a88
movq (%rax), %rax
orq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
andq $0x200, %rax # imm = 0x200
cmpq $0x0, %rax
je 0xf5c85
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
orl $0x80000, %esi # imm = 0x80000
leaq 0x1cc0af(%rip), %rax # 0x2c1d28
movl (%rax), %edx
callq 0xf5ce0
movl %eax, -0x1c(%rbp)
jmp 0xf5ca5
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
orl $0x80000, %esi # imm = 0x80000
leaq 0x1cc08f(%rip), %rax # 0x2c1d28
movl (%rax), %edx
movb $0x0, %al
callq 0x2a940
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %edi
movq -0x8(%rbp), %rsi
movq -0x18(%rbp), %r8
movl $0x1, %edx
movl $0x1d, %ecx
callq 0xf5d50
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_open:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
jmp short $+2
loc_F5C35:
mov rax, [rbp+var_18]
and rax, 19h
cmp rax, 0
jnz short loc_F5C55
lea rax, my_global_flags
mov rax, [rax]
or rax, [rbp+var_18]
mov [rbp+var_18], rax
loc_F5C55:
mov rax, [rbp+var_18]
and rax, 200h
cmp rax, 0
jz short loc_F5C85
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
or esi, 80000h
lea rax, my_umask
mov edx, [rax]
call open_nosymlinks
mov [rbp+var_1C], eax
jmp short loc_F5CA5
loc_F5C85:
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
or esi, 80000h
lea rax, my_umask
mov edx, [rax]
mov al, 0
call _open64
mov [rbp+var_1C], eax
loc_F5CA5:
mov edi, [rbp+var_1C]
mov rsi, [rbp+var_8]
mov r8, [rbp+var_18]
mov edx, 1
mov ecx, 1Dh
call my_register_filename
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
mov [rbp+var_20], eax
mov eax, [rbp+var_20]
add rsp, 20h
pop rbp
retn
| long long my_open(long long a1, int a2, long long a3)
{
unsigned int v4; // [rsp+4h] [rbp-1Ch]
long long v5; // [rsp+8h] [rbp-18h]
v5 = a3;
if ( (a3 & 0x19) == 0 )
v5 = a3 | my_global_flags;
if ( (v5 & 0x200) != 0 )
v4 = open_nosymlinks(a1, a2 | 0x80000u, my_umask);
else
v4 = open64(a1, a2 | 0x80000u, my_umask);
return (unsigned int)my_register_filename(v4, a1, 1LL, 29LL, v5);
}
| my_open:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
JMP 0x001f5c35
LAB_001f5c35:
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x19
CMP RAX,0x0
JNZ 0x001f5c55
LEA RAX,[0xd84a88]
MOV RAX,qword ptr [RAX]
OR RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
LAB_001f5c55:
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x200
CMP RAX,0x0
JZ 0x001f5c85
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
OR ESI,0x80000
LEA RAX,[0x3c1d28]
MOV EDX,dword ptr [RAX]
CALL 0x001f5ce0
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x001f5ca5
LAB_001f5c85:
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
OR ESI,0x80000
LEA RAX,[0x3c1d28]
MOV EDX,dword ptr [RAX]
MOV AL,0x0
CALL 0x0012a940
MOV dword ptr [RBP + -0x1c],EAX
LAB_001f5ca5:
MOV EDI,dword ptr [RBP + -0x1c]
MOV RSI,qword ptr [RBP + -0x8]
MOV R8,qword ptr [RBP + -0x18]
MOV EDX,0x1
MOV ECX,0x1d
CALL 0x001f5d50
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x20],EAX
MOV EAX,dword ptr [RBP + -0x20]
ADD RSP,0x20
POP RBP
RET
|
int4 my_open(char *param_1,uint param_2,ulong param_3)
{
int4 uVar1;
int4 local_24;
int8 local_20;
local_20 = param_3;
if ((param_3 & 0x19) == 0) {
local_20 = my_global_flags | param_3;
}
if ((local_20 & 0x200) == 0) {
local_24 = open64(param_1,param_2 | 0x80000,(ulong)my_umask);
}
else {
local_24 = open_nosymlinks(param_1,param_2 | 0x80000,my_umask);
}
uVar1 = my_register_filename(local_24,param_1,1,0x1d,local_20);
return uVar1;
}
| |
22,318 | thr_unlock | eloqsql/mysys/thr_lock.c | void thr_unlock(THR_LOCK_DATA *data, uint unlock_flags)
{
THR_LOCK *lock=data->lock;
enum thr_lock_type lock_type=data->type;
DBUG_ENTER("thr_unlock");
DBUG_PRINT("lock",("data: %p thread: %lu lock: %p",
data, (ulong) data->owner->thread_id,
lock));
mysql_mutex_lock(&lock->mutex);
check_locks(lock,"start of release lock", lock_type, 0);
if (((*data->prev)=data->next)) /* remove from lock-list */
data->next->prev= data->prev;
else if (lock_type <= TL_READ_NO_INSERT)
lock->read.last=data->prev;
else if (lock_type == TL_WRITE_DELAYED && data->cond)
{
/*
This only happens in extreme circumstances when a
write delayed lock that is waiting for a lock
*/
lock->write_wait.last=data->prev; /* Put it on wait queue */
}
else
lock->write.last=data->prev;
if (unlock_flags & THR_UNLOCK_UPDATE_STATUS)
{
/* External lock was not called; Update or restore status */
if (lock_type >= TL_WRITE_CONCURRENT_INSERT)
{
if (lock->update_status)
(*lock->update_status)(data->status_param);
}
else
{
if (lock->restore_status)
(*lock->restore_status)(data->status_param);
}
}
if (lock_type == TL_READ_NO_INSERT)
lock->read_no_write_count--;
data->type=TL_UNLOCK; /* Mark unlocked */
wake_up_waiters(lock);
mysql_mutex_unlock(&lock->mutex);
DBUG_VOID_RETURN;
} | O0 | c | thr_unlock:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl 0x40(%rax), %eax
movl %eax, -0x1c(%rbp)
jmp 0x1004e7
movq -0x18(%rbp), %rdi
addq $0x18, %rdi
leaq 0x5ff52(%rip), %rsi # 0x160448
movl $0x3c0, %edx # imm = 0x3C0
callq 0x100270
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
je 0x10052f
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x10(%rax)
jmp 0x100584
cmpl $0x5, -0x1c(%rbp)
jg 0x100547
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x78(%rax)
jmp 0x100582
cmpl $0x9, -0x1c(%rbp)
jne 0x10056d
movq -0x8(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x10056d
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x88(%rax)
jmp 0x100580
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x98(%rax)
jmp 0x100582
jmp 0x100584
movl -0xc(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x1005e1
cmpl $0x8, -0x1c(%rbp)
jl 0x1005ba
movq -0x18(%rbp), %rax
cmpq $0x0, 0xc0(%rax)
je 0x1005b8
movq -0x18(%rbp), %rax
movq 0xc0(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rdi
callq *%rax
jmp 0x1005df
movq -0x18(%rbp), %rax
cmpq $0x0, 0xc8(%rax)
je 0x1005dd
movq -0x18(%rbp), %rax
movq 0xc8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rdi
callq *%rax
jmp 0x1005df
jmp 0x1005e1
cmpl $0x5, -0x1c(%rbp)
jne 0x1005fa
movq -0x18(%rbp), %rax
movl 0xa8(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0xa8(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x40(%rax)
movq -0x18(%rbp), %rdi
callq 0x100630
movq -0x18(%rbp), %rdi
addq $0x18, %rdi
callq 0x1002e0
jmp 0x10061d
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| thr_unlock:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov rax, [rbp+var_8]
mov rax, [rax+18h]
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
mov eax, [rax+40h]
mov [rbp+var_1C], eax
jmp short $+2
loc_1004E7:
mov rdi, [rbp+var_18]
add rdi, 18h
lea rsi, aWorkspaceLlm4b_43; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 3C0h
call inline_mysql_mutex_lock_28
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov rcx, [rbp+var_8]
mov rcx, [rcx+10h]
mov [rcx], rax
cmp rax, 0
jz short loc_10052F
mov rax, [rbp+var_8]
mov rcx, [rax+10h]
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov [rax+10h], rcx
jmp short loc_100584
loc_10052F:
cmp [rbp+var_1C], 5
jg short loc_100547
mov rax, [rbp+var_8]
mov rcx, [rax+10h]
mov rax, [rbp+var_18]
mov [rax+78h], rcx
jmp short loc_100582
loc_100547:
cmp [rbp+var_1C], 9
jnz short loc_10056D
mov rax, [rbp+var_8]
cmp qword ptr [rax+20h], 0
jz short loc_10056D
mov rax, [rbp+var_8]
mov rcx, [rax+10h]
mov rax, [rbp+var_18]
mov [rax+88h], rcx
jmp short loc_100580
loc_10056D:
mov rax, [rbp+var_8]
mov rcx, [rax+10h]
mov rax, [rbp+var_18]
mov [rax+98h], rcx
loc_100580:
jmp short $+2
loc_100582:
jmp short $+2
loc_100584:
mov eax, [rbp+var_C]
and eax, 1
cmp eax, 0
jz short loc_1005E1
cmp [rbp+var_1C], 8
jl short loc_1005BA
mov rax, [rbp+var_18]
cmp qword ptr [rax+0C0h], 0
jz short loc_1005B8
mov rax, [rbp+var_18]
mov rax, [rax+0C0h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+28h]
call rax
loc_1005B8:
jmp short loc_1005DF
loc_1005BA:
mov rax, [rbp+var_18]
cmp qword ptr [rax+0C8h], 0
jz short loc_1005DD
mov rax, [rbp+var_18]
mov rax, [rax+0C8h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+28h]
call rax
loc_1005DD:
jmp short $+2
loc_1005DF:
jmp short $+2
loc_1005E1:
cmp [rbp+var_1C], 5
jnz short loc_1005FA
mov rax, [rbp+var_18]
mov ecx, [rax+0A8h]
add ecx, 0FFFFFFFFh
mov [rax+0A8h], ecx
loc_1005FA:
mov rax, [rbp+var_8]
mov dword ptr [rax+40h], 0
mov rdi, [rbp+var_18]
call wake_up_waiters
mov rdi, [rbp+var_18]
add rdi, 18h
call inline_mysql_mutex_unlock_29
jmp short $+2
loc_10061D:
add rsp, 20h
pop rbp
retn
| long long thr_unlock(long long a1, char a2)
{
long long v2; // rax
int v4; // [rsp+4h] [rbp-1Ch]
long long v5; // [rsp+8h] [rbp-18h]
v5 = *(_QWORD *)(a1 + 24);
v4 = *(_DWORD *)(a1 + 64);
inline_mysql_mutex_lock_28(v5 + 24, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c", 0x3C0u);
v2 = *(_QWORD *)(a1 + 8);
**(_QWORD **)(a1 + 16) = v2;
if ( v2 )
{
*(_QWORD *)(*(_QWORD *)(a1 + 8) + 16LL) = *(_QWORD *)(a1 + 16);
}
else if ( v4 > 5 )
{
if ( v4 == 9 && *(_QWORD *)(a1 + 32) )
*(_QWORD *)(v5 + 136) = *(_QWORD *)(a1 + 16);
else
*(_QWORD *)(v5 + 152) = *(_QWORD *)(a1 + 16);
}
else
{
*(_QWORD *)(v5 + 120) = *(_QWORD *)(a1 + 16);
}
if ( (a2 & 1) != 0 )
{
if ( v4 < 8 )
{
if ( *(_QWORD *)(v5 + 200) )
(*(void ( **)(_QWORD))(v5 + 200))(*(_QWORD *)(a1 + 40));
}
else if ( *(_QWORD *)(v5 + 192) )
{
(*(void ( **)(_QWORD))(v5 + 192))(*(_QWORD *)(a1 + 40));
}
}
if ( v4 == 5 )
--*(_DWORD *)(v5 + 168);
*(_DWORD *)(a1 + 64) = 0;
wake_up_waiters(v5);
return inline_mysql_mutex_unlock_29(v5 + 24);
}
| |||
22,319 | thr_unlock | eloqsql/mysys/thr_lock.c | void thr_unlock(THR_LOCK_DATA *data, uint unlock_flags)
{
THR_LOCK *lock=data->lock;
enum thr_lock_type lock_type=data->type;
DBUG_ENTER("thr_unlock");
DBUG_PRINT("lock",("data: %p thread: %lu lock: %p",
data, (ulong) data->owner->thread_id,
lock));
mysql_mutex_lock(&lock->mutex);
check_locks(lock,"start of release lock", lock_type, 0);
if (((*data->prev)=data->next)) /* remove from lock-list */
data->next->prev= data->prev;
else if (lock_type <= TL_READ_NO_INSERT)
lock->read.last=data->prev;
else if (lock_type == TL_WRITE_DELAYED && data->cond)
{
/*
This only happens in extreme circumstances when a
write delayed lock that is waiting for a lock
*/
lock->write_wait.last=data->prev; /* Put it on wait queue */
}
else
lock->write.last=data->prev;
if (unlock_flags & THR_UNLOCK_UPDATE_STATUS)
{
/* External lock was not called; Update or restore status */
if (lock_type >= TL_WRITE_CONCURRENT_INSERT)
{
if (lock->update_status)
(*lock->update_status)(data->status_param);
}
else
{
if (lock->restore_status)
(*lock->restore_status)(data->status_param);
}
}
if (lock_type == TL_READ_NO_INSERT)
lock->read_no_write_count--;
data->type=TL_UNLOCK; /* Mark unlocked */
wake_up_waiters(lock);
mysql_mutex_unlock(&lock->mutex);
DBUG_VOID_RETURN;
} | O3 | c | thr_unlock:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %r12d
movq %rdi, %r15
movq 0x18(%rdi), %r14
movl 0x40(%rdi), %r13d
leaq 0x18(%r14), %rbx
cmpq $0x0, 0x58(%r14)
jne 0xa9ade
movq %rbx, %rdi
callq 0x2a1f0
movq 0x8(%r15), %rax
movq 0x10(%r15), %rcx
movq %rax, (%rcx)
testq %rax, %rax
je 0xa9a35
movq 0x10(%r15), %rcx
movq %rcx, 0x10(%rax)
jmp 0xa9a70
cmpl $0x5, %r13d
jg 0xa9a45
movq 0x10(%r15), %rax
movq %rax, 0x78(%r14)
jmp 0xa9a70
cmpl $0x9, %r13d
jne 0xa9a65
cmpq $0x0, 0x20(%r15)
je 0xa9a65
movq 0x10(%r15), %rax
movq %rax, 0x88(%r14)
testb $0x1, %r12b
jne 0xa9a7c
jmp 0xa9aaf
movq 0x10(%r15), %rax
movq %rax, 0x98(%r14)
testb $0x1, %r12b
je 0xa9aa2
cmpl $0x8, %r13d
jl 0xa9a90
movq 0xc0(%r14), %rax
testq %rax, %rax
je 0xa9aaf
movq 0x28(%r15), %rdi
callq *%rax
jmp 0xa9aaf
movq 0xc8(%r14), %rax
testq %rax, %rax
je 0xa9aa2
movq 0x28(%r15), %rdi
callq *%rax
cmpl $0x5, %r13d
jne 0xa9aaf
decl 0xa8(%r14)
movl $0x0, 0x40(%r15)
movq %r14, %rdi
callq 0xa9b09
movq 0x58(%r14), %rdi
testq %rdi, %rdi
jne 0xa9af7
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2a1c0
leaq 0x3b9f7(%rip), %rsi # 0xe54dc
movq %rbx, %rdi
movl $0x3c0, %edx # imm = 0x3C0
callq 0x2ff2f
jmp 0xa9a1b
leaq 0x2e73da(%rip), %rax # 0x390ed8
movq (%rax), %rax
callq *0x160(%rax)
jmp 0xa9ac8
| thr_unlock:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12d, esi
mov r15, rdi
mov r14, [rdi+18h]
mov r13d, [rdi+40h]
lea rbx, [r14+18h]
cmp qword ptr [r14+58h], 0
jnz loc_A9ADE
mov rdi, rbx
call _pthread_mutex_lock
loc_A9A1B:
mov rax, [r15+8]
mov rcx, [r15+10h]
mov [rcx], rax
test rax, rax
jz short loc_A9A35
mov rcx, [r15+10h]
mov [rax+10h], rcx
jmp short loc_A9A70
loc_A9A35:
cmp r13d, 5
jg short loc_A9A45
mov rax, [r15+10h]
mov [r14+78h], rax
jmp short loc_A9A70
loc_A9A45:
cmp r13d, 9
jnz short loc_A9A65
cmp qword ptr [r15+20h], 0
jz short loc_A9A65
mov rax, [r15+10h]
mov [r14+88h], rax
test r12b, 1
jnz short loc_A9A7C
jmp short loc_A9AAF
loc_A9A65:
mov rax, [r15+10h]
mov [r14+98h], rax
loc_A9A70:
test r12b, 1
jz short loc_A9AA2
cmp r13d, 8
jl short loc_A9A90
loc_A9A7C:
mov rax, [r14+0C0h]
test rax, rax
jz short loc_A9AAF
mov rdi, [r15+28h]
call rax
jmp short loc_A9AAF
loc_A9A90:
mov rax, [r14+0C8h]
test rax, rax
jz short loc_A9AA2
mov rdi, [r15+28h]
call rax
loc_A9AA2:
cmp r13d, 5
jnz short loc_A9AAF
dec dword ptr [r14+0A8h]
loc_A9AAF:
mov dword ptr [r15+40h], 0
mov rdi, r14
call wake_up_waiters
mov rdi, [r14+58h]
test rdi, rdi
jnz short loc_A9AF7
loc_A9AC8:
mov rdi, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _pthread_mutex_unlock
loc_A9ADE:
lea rsi, aWorkspaceLlm4b_24; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, rbx
mov edx, 3C0h
call psi_mutex_lock
jmp loc_A9A1B
loc_A9AF7:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_A9AC8
| long long thr_unlock(long long a1, char a2)
{
long long v2; // r14
int v3; // r13d
long long v4; // rax
void ( *v5)(_QWORD); // rax
void ( *v6)(_QWORD); // rax
long long v7; // rdi
v2 = *(_QWORD *)(a1 + 24);
v3 = *(_DWORD *)(a1 + 64);
if ( *(_QWORD *)(v2 + 88) )
psi_mutex_lock(v2 + 24, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c", 0x3C0u);
else
pthread_mutex_lock(v2 + 24);
v4 = *(_QWORD *)(a1 + 8);
**(_QWORD **)(a1 + 16) = v4;
if ( v4 )
{
*(_QWORD *)(v4 + 16) = *(_QWORD *)(a1 + 16);
}
else if ( v3 > 5 )
{
if ( v3 == 9 && *(_QWORD *)(a1 + 32) )
{
*(_QWORD *)(v2 + 136) = *(_QWORD *)(a1 + 16);
if ( (a2 & 1) == 0 )
goto LABEL_20;
goto LABEL_14;
}
*(_QWORD *)(v2 + 152) = *(_QWORD *)(a1 + 16);
}
else
{
*(_QWORD *)(v2 + 120) = *(_QWORD *)(a1 + 16);
}
if ( (a2 & 1) != 0 )
{
if ( v3 >= 8 )
{
LABEL_14:
v5 = *(void ( **)(_QWORD))(v2 + 192);
if ( v5 )
v5(*(_QWORD *)(a1 + 40));
goto LABEL_20;
}
v6 = *(void ( **)(_QWORD))(v2 + 200);
if ( v6 )
v6(*(_QWORD *)(a1 + 40));
}
if ( v3 == 5 )
--*(_DWORD *)(v2 + 168);
LABEL_20:
*(_DWORD *)(a1 + 64) = 0;
wake_up_waiters(v2);
v7 = *(_QWORD *)(v2 + 88);
if ( v7 )
((void ( *)(long long))PSI_server[44])(v7);
return pthread_mutex_unlock(v2 + 24);
}
| thr_unlock:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12D,ESI
MOV R15,RDI
MOV R14,qword ptr [RDI + 0x18]
MOV R13D,dword ptr [RDI + 0x40]
LEA RBX,[R14 + 0x18]
CMP qword ptr [R14 + 0x58],0x0
JNZ 0x001a9ade
MOV RDI,RBX
CALL 0x0012a1f0
LAB_001a9a1b:
MOV RAX,qword ptr [R15 + 0x8]
MOV RCX,qword ptr [R15 + 0x10]
MOV qword ptr [RCX],RAX
TEST RAX,RAX
JZ 0x001a9a35
MOV RCX,qword ptr [R15 + 0x10]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x001a9a70
LAB_001a9a35:
CMP R13D,0x5
JG 0x001a9a45
MOV RAX,qword ptr [R15 + 0x10]
MOV qword ptr [R14 + 0x78],RAX
JMP 0x001a9a70
LAB_001a9a45:
CMP R13D,0x9
JNZ 0x001a9a65
CMP qword ptr [R15 + 0x20],0x0
JZ 0x001a9a65
MOV RAX,qword ptr [R15 + 0x10]
MOV qword ptr [R14 + 0x88],RAX
TEST R12B,0x1
JNZ 0x001a9a7c
JMP 0x001a9aaf
LAB_001a9a65:
MOV RAX,qword ptr [R15 + 0x10]
MOV qword ptr [R14 + 0x98],RAX
LAB_001a9a70:
TEST R12B,0x1
JZ 0x001a9aa2
CMP R13D,0x8
JL 0x001a9a90
LAB_001a9a7c:
MOV RAX,qword ptr [R14 + 0xc0]
TEST RAX,RAX
JZ 0x001a9aaf
MOV RDI,qword ptr [R15 + 0x28]
CALL RAX
JMP 0x001a9aaf
LAB_001a9a90:
MOV RAX,qword ptr [R14 + 0xc8]
TEST RAX,RAX
JZ 0x001a9aa2
MOV RDI,qword ptr [R15 + 0x28]
CALL RAX
LAB_001a9aa2:
CMP R13D,0x5
JNZ 0x001a9aaf
DEC dword ptr [R14 + 0xa8]
LAB_001a9aaf:
MOV dword ptr [R15 + 0x40],0x0
MOV RDI,R14
CALL 0x001a9b09
MOV RDI,qword ptr [R14 + 0x58]
TEST RDI,RDI
JNZ 0x001a9af7
LAB_001a9ac8:
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0012a1c0
LAB_001a9ade:
LEA RSI,[0x1e54dc]
MOV RDI,RBX
MOV EDX,0x3c0
CALL 0x0012ff2f
JMP 0x001a9a1b
LAB_001a9af7:
LEA RAX,[0x490ed8]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x001a9ac8
|
void thr_unlock(long param_1,uint param_2)
{
pthread_mutex_t *__mutex;
int iVar1;
long lVar2;
long lVar3;
lVar2 = *(long *)(param_1 + 0x18);
iVar1 = *(int *)(param_1 + 0x40);
__mutex = (pthread_mutex_t *)(lVar2 + 0x18);
if (*(long *)(lVar2 + 0x58) == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",0x3c0);
}
lVar3 = *(long *)(param_1 + 8);
**(long **)(param_1 + 0x10) = lVar3;
if (lVar3 == 0) {
if (iVar1 < 6) {
*(int8 *)(lVar2 + 0x78) = *(int8 *)(param_1 + 0x10);
goto LAB_001a9a70;
}
if ((iVar1 != 9) || (*(long *)(param_1 + 0x20) == 0)) {
*(int8 *)(lVar2 + 0x98) = *(int8 *)(param_1 + 0x10);
goto LAB_001a9a70;
}
*(int8 *)(lVar2 + 0x88) = *(int8 *)(param_1 + 0x10);
if ((param_2 & 1) == 0) goto LAB_001a9aaf;
LAB_001a9a7c:
if (*(code **)(lVar2 + 0xc0) != (code *)0x0) {
(**(code **)(lVar2 + 0xc0))(*(int8 *)(param_1 + 0x28));
}
}
else {
*(int8 *)(lVar3 + 0x10) = *(int8 *)(param_1 + 0x10);
LAB_001a9a70:
if ((param_2 & 1) != 0) {
if (7 < iVar1) goto LAB_001a9a7c;
if (*(code **)(lVar2 + 200) != (code *)0x0) {
(**(code **)(lVar2 + 200))(*(int8 *)(param_1 + 0x28));
}
}
if (iVar1 == 5) {
*(int *)(lVar2 + 0xa8) = *(int *)(lVar2 + 0xa8) + -1;
}
}
LAB_001a9aaf:
*(int4 *)(param_1 + 0x40) = 0;
wake_up_waiters(lVar2);
if (*(long *)(lVar2 + 0x58) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
return;
}
| |
22,320 | get_param_value | navaro[P]qoraal-tictactoe/build_O3/_deps/qoraal_engine-src/src/tool/parse.c | static bool
get_param_value (struct LexState * Lexer, int16_t* data, struct Value* parm)
{
PARSER_STATEMACHINE_T * statemachine = (PARSER_STATEMACHINE_T *)Lexer->ctx ;
int32_t data32 ;
if (!get_param_value32 (Lexer, &data32, parm)) {
return false ;
}
if ((data32 < SHRT_MIN) || (data32 > SHRT_MAX)) {
char val[8] ;
PARSER_REPORT(statemachine->logif, "warning: out of range %s!\r\n",
LexGetValue(parm, val, 8)) ;
if (data32 < SHRT_MIN) {
data32 = SHRT_MIN ;
}
else if (data32 > SHRT_MAX) {
data32 = SHRT_MAX ;
}
}
*data = (int16_t) data32;
return true ;
} | O3 | c | get_param_value:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl (%rdx), %esi
leal -0x1(%rsi), %eax
cmpl $0x8, %eax
jae 0xc357
movl 0x8(%rdx), %r14d
jmp 0xc366
cmpl $0xa, %esi
je 0xc361
cmpl $0xe, %esi
jne 0xc3c6
movzwl 0x10(%rdx), %r14d
movswl %r14w, %eax
cmpl %r14d, %eax
je 0xc3b3
movq 0x50(%rdi), %rax
testq %rax, %rax
je 0xc3a1
movq 0x8(%rax), %r15
testq %r15, %r15
je 0xc3a1
leaq -0x20(%rbp), %rsi
movq %rdx, %rdi
movl $0x8, %edx
callq 0x92f3
leaq 0x19af0(%rip), %rdi # 0x25e89
movq %rax, %rsi
xorl %eax, %eax
callq *%r15
movl $0xffff8000, %eax # imm = 0xFFFF8000
cmpl %eax, %r14d
movl $0x7fff, %r14d # imm = 0x7FFF
cmovll %eax, %r14d
movw %r14w, (%rbx)
movb $0x1, %bl
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x50(%rdi), %rax
testq %rax, %rax
je 0xc3e7
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0xc3e7
leaq 0x19a8c(%rip), %rdi # 0x25e6b
xorl %ebx, %ebx
xorl %eax, %eax
callq *%rcx
jmp 0xc3b9
xorl %ebx, %ebx
jmp 0xc3b9
| get_param_value:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rsi
mov esi, [rdx]
lea eax, [rsi-1]
cmp eax, 8
jnb short loc_C357
mov r14d, [rdx+8]
jmp short loc_C366
loc_C357:
cmp esi, 0Ah
jz short loc_C361
cmp esi, 0Eh
jnz short loc_C3C6
loc_C361:
movzx r14d, word ptr [rdx+10h]
loc_C366:
movsx eax, r14w
cmp eax, r14d
jz short loc_C3B3
mov rax, [rdi+50h]
test rax, rax
jz short loc_C3A1
mov r15, [rax+8]
test r15, r15
jz short loc_C3A1
lea rsi, [rbp+var_20]
mov rdi, rdx
mov edx, 8
call LexGetValue
lea rdi, aWarningOutOfRa; "warning: out of range %s!\r\n"
mov rsi, rax
xor eax, eax
call r15
loc_C3A1:
mov eax, 0FFFF8000h
cmp r14d, eax
mov r14d, 7FFFh
cmovl r14d, eax
loc_C3B3:
mov [rbx], r14w
mov bl, 1
loc_C3B9:
mov eax, ebx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_C3C6:
mov rax, [rdi+50h]
test rax, rax
jz short loc_C3E7
mov rcx, [rax+8]
test rcx, rcx
jz short loc_C3E7
lea rdi, aWarningUndefin; "warning: undefined type %d!\r\n"
xor ebx, ebx
xor eax, eax
call rcx
jmp short loc_C3B9
loc_C3E7:
xor ebx, ebx
jmp short loc_C3B9
| long long get_param_value(long long a1, _WORD *a2, int *a3)
{
long long v3; // rax
int v5; // esi
int v6; // r14d
long long v7; // rax
void (*v8)(const char *, ...); // r15
const char *Value; // rax
bool v10; // cc
long long v12; // rax
void (*v13)(const char *, ...); // rcx
_QWORD v14[4]; // [rsp+0h] [rbp-20h] BYREF
v14[0] = v3;
v5 = *a3;
if ( (unsigned int)(*a3 - 1) >= 8 )
{
if ( v5 != 10 && v5 != 14 )
{
v12 = *(_QWORD *)(a1 + 80);
if ( v12 && (v13 = *(void (**)(const char *, ...))(v12 + 8)) != 0LL )
{
LODWORD(a2) = 0;
v13("warning: undefined type %d!\r\n", v5);
}
else
{
LODWORD(a2) = 0;
}
return (unsigned int)a2;
}
v6 = *((unsigned __int16 *)a3 + 8);
}
else
{
v6 = a3[2];
}
if ( (__int16)v6 != v6 )
{
v7 = *(_QWORD *)(a1 + 80);
if ( v7 )
{
v8 = *(void (**)(const char *, ...))(v7 + 8);
if ( v8 )
{
Value = LexGetValue(a3, v14, 8);
v8("warning: out of range %s!\r\n", Value);
}
}
v10 = v6 < -32768;
LOWORD(v6) = 0x7FFF;
if ( v10 )
LOWORD(v6) = 0x8000;
}
*a2 = v6;
LOBYTE(a2) = 1;
return (unsigned int)a2;
}
| get_param_value:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV ESI,dword ptr [RDX]
LEA EAX,[RSI + -0x1]
CMP EAX,0x8
JNC 0x0010c357
MOV R14D,dword ptr [RDX + 0x8]
JMP 0x0010c366
LAB_0010c357:
CMP ESI,0xa
JZ 0x0010c361
CMP ESI,0xe
JNZ 0x0010c3c6
LAB_0010c361:
MOVZX R14D,word ptr [RDX + 0x10]
LAB_0010c366:
MOVSX EAX,R14W
CMP EAX,R14D
JZ 0x0010c3b3
MOV RAX,qword ptr [RDI + 0x50]
TEST RAX,RAX
JZ 0x0010c3a1
MOV R15,qword ptr [RAX + 0x8]
TEST R15,R15
JZ 0x0010c3a1
LEA RSI,[RBP + -0x20]
MOV RDI,RDX
MOV EDX,0x8
CALL 0x001092f3
LEA RDI,[0x125e89]
MOV RSI,RAX
XOR EAX,EAX
CALL R15
LAB_0010c3a1:
MOV EAX,0xffff8000
CMP R14D,EAX
MOV R14D,0x7fff
CMOVL R14D,EAX
LAB_0010c3b3:
MOV word ptr [RBX],R14W
MOV BL,0x1
LAB_0010c3b9:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0010c3c6:
MOV RAX,qword ptr [RDI + 0x50]
TEST RAX,RAX
JZ 0x0010c3e7
MOV RCX,qword ptr [RAX + 0x8]
TEST RCX,RCX
JZ 0x0010c3e7
LEA RDI,[0x125e6b]
XOR EBX,EBX
XOR EAX,EAX
CALL RCX
JMP 0x0010c3b9
LAB_0010c3e7:
XOR EBX,EBX
JMP 0x0010c3b9
|
ulong get_param_value(long param_1,int2 *param_2,int *param_3)
{
int iVar1;
code *pcVar2;
bool bVar3;
int8 uVar4;
ulong uVar5;
uint uVar6;
int1 local_28 [8];
iVar1 = *param_3;
if (iVar1 - 1U < 8) {
uVar6 = param_3[2];
}
else {
if ((iVar1 != 10) && (iVar1 != 0xe)) {
if ((*(long *)(param_1 + 0x50) == 0) ||
(pcVar2 = *(code **)(*(long *)(param_1 + 0x50) + 8), pcVar2 == (code *)0x0)) {
uVar5 = 0;
}
else {
uVar5 = 0;
(*pcVar2)(s_warning__int_type__d__00125e6b);
}
goto LAB_0010c3b9;
}
uVar6 = (uint)*(ushort *)(param_3 + 4);
}
if ((int)(short)uVar6 != uVar6) {
if ((*(long *)(param_1 + 0x50) != 0) &&
(pcVar2 = *(code **)(*(long *)(param_1 + 0x50) + 8), pcVar2 != (code *)0x0)) {
uVar4 = LexGetValue(param_3,local_28,8);
(*pcVar2)(s_warning__out_of_range__s__00125e89,uVar4);
}
bVar3 = (int)uVar6 < -0x8000;
uVar6 = 0x7fff;
if (bVar3) {
uVar6 = 0xffff8000;
}
}
*param_2 = (short)uVar6;
uVar5 = CONCAT71((int7)((ulong)param_2 >> 8),1);
LAB_0010c3b9:
return uVar5 & 0xffffffff;
}
| |
22,321 | OpenGL_Init_4_4 | SDL3Lite/dependencies/OpenGL.h | void OpenGL_Init_4_4()
{
glBufferStorage = (PFNGLBUFFERSTORAGEPROC)OpenGL_Load("glBufferStorage");
glClearTexImage = (PFNGLCLEARTEXIMAGEPROC)OpenGL_Load("glClearTexImage");
glClearTexSubImage = (PFNGLCLEARTEXSUBIMAGEPROC)OpenGL_Load("glClearTexSubImage");
glBindBuffersBase = (PFNGLBINDBUFFERSBASEPROC)OpenGL_Load("glBindBuffersBase");
glBindBuffersRange = (PFNGLBINDBUFFERSRANGEPROC)OpenGL_Load("glBindBuffersRange");
glBindTextures = (PFNGLBINDTEXTURESPROC)OpenGL_Load("glBindTextures");
glBindSamplers = (PFNGLBINDSAMPLERSPROC)OpenGL_Load("glBindSamplers");
glBindImageTextures = (PFNGLBINDIMAGETEXTURESPROC)OpenGL_Load("glBindImageTextures");
glBindVertexBuffers = (PFNGLBINDVERTEXBUFFERSPROC)OpenGL_Load("glBindVertexBuffers");
} | O0 | c | OpenGL_Init_4_4:
pushq %rbp
movq %rsp, %rbp
leaq 0xfd30(%rip), %rdi # 0x32b2b
callq 0x1e910
movq %rax, 0x1a1b9(%rip) # 0x3cfc0
leaq 0xfd2d(%rip), %rdi # 0x32b3b
callq 0x1e910
movq %rax, 0x1a1ae(%rip) # 0x3cfc8
leaq 0xfd2a(%rip), %rdi # 0x32b4b
callq 0x1e910
movq %rax, 0x1a1a3(%rip) # 0x3cfd0
leaq 0xfd2a(%rip), %rdi # 0x32b5e
callq 0x1e910
movq %rax, 0x1a198(%rip) # 0x3cfd8
leaq 0xfd29(%rip), %rdi # 0x32b70
callq 0x1e910
movq %rax, 0x1a18d(%rip) # 0x3cfe0
leaq 0xfd29(%rip), %rdi # 0x32b83
callq 0x1e910
movq %rax, 0x1a182(%rip) # 0x3cfe8
leaq 0xfd25(%rip), %rdi # 0x32b92
callq 0x1e910
movq %rax, 0x1a177(%rip) # 0x3cff0
leaq 0xfd21(%rip), %rdi # 0x32ba1
callq 0x1e910
movq %rax, 0x1a16c(%rip) # 0x3cff8
leaq 0xfd22(%rip), %rdi # 0x32bb5
callq 0x1e910
movq %rax, 0x1a161(%rip) # 0x3d000
popq %rbp
retq
nopw %cs:(%rax,%rax)
| OpenGL_Init_4_4:
push rbp
mov rbp, rsp
lea rdi, aGlbufferstorag_0; "glBufferStorage"
call OpenGL_Load
mov cs:glBufferStorage, rax
lea rdi, aGlclearteximag_0; "glClearTexImage"
call OpenGL_Load
mov cs:glClearTexImage, rax
lea rdi, aGlcleartexsubi_0; "glClearTexSubImage"
call OpenGL_Load
mov cs:glClearTexSubImage, rax
lea rdi, aGlbindbuffersb_0; "glBindBuffersBase"
call OpenGL_Load
mov cs:glBindBuffersBase, rax
lea rdi, aGlbindbuffersr_0; "glBindBuffersRange"
call OpenGL_Load
mov cs:glBindBuffersRange, rax
lea rdi, aGlbindtextures_0; "glBindTextures"
call OpenGL_Load
mov cs:glBindTextures, rax
lea rdi, aGlbindsamplers_0; "glBindSamplers"
call OpenGL_Load
mov cs:glBindSamplers, rax
lea rdi, aGlbindimagetex_2; "glBindImageTextures"
call OpenGL_Load
mov cs:glBindImageTextures, rax
lea rdi, aGlbindvertexbu_2; "glBindVertexBuffers"
call OpenGL_Load
mov cs:glBindVertexBuffers, rax
pop rbp
retn
| long long OpenGL_Init_4_4()
{
long long result; // rax
glBufferStorage = OpenGL_Load("glBufferStorage");
glClearTexImage = OpenGL_Load("glClearTexImage");
glClearTexSubImage = OpenGL_Load("glClearTexSubImage");
glBindBuffersBase = OpenGL_Load("glBindBuffersBase");
glBindBuffersRange = OpenGL_Load("glBindBuffersRange");
glBindTextures = OpenGL_Load("glBindTextures");
glBindSamplers = OpenGL_Load("glBindSamplers");
glBindImageTextures = OpenGL_Load("glBindImageTextures");
result = OpenGL_Load("glBindVertexBuffers");
glBindVertexBuffers = result;
return result;
}
| OpenGL_Init_4_4:
PUSH RBP
MOV RBP,RSP
LEA RDI,[0x132b2b]
CALL 0x0011e910
MOV qword ptr [0x0013cfc0],RAX
LEA RDI,[0x132b3b]
CALL 0x0011e910
MOV qword ptr [0x0013cfc8],RAX
LEA RDI,[0x132b4b]
CALL 0x0011e910
MOV qword ptr [0x0013cfd0],RAX
LEA RDI,[0x132b5e]
CALL 0x0011e910
MOV qword ptr [0x0013cfd8],RAX
LEA RDI,[0x132b70]
CALL 0x0011e910
MOV qword ptr [0x0013cfe0],RAX
LEA RDI,[0x132b83]
CALL 0x0011e910
MOV qword ptr [0x0013cfe8],RAX
LEA RDI,[0x132b92]
CALL 0x0011e910
MOV qword ptr [0x0013cff0],RAX
LEA RDI,[0x132ba1]
CALL 0x0011e910
MOV qword ptr [0x0013cff8],RAX
LEA RDI,[0x132bb5]
CALL 0x0011e910
MOV qword ptr [0x0013d000],RAX
POP RBP
RET
|
void OpenGL_Init_4_4(void)
{
glBufferStorage = OpenGL_Load("glBufferStorage");
glClearTexImage = OpenGL_Load("glClearTexImage");
glClearTexSubImage = OpenGL_Load("glClearTexSubImage");
glBindBuffersBase = OpenGL_Load("glBindBuffersBase");
glBindBuffersRange = OpenGL_Load("glBindBuffersRange");
glBindTextures = OpenGL_Load("glBindTextures");
glBindSamplers = OpenGL_Load("glBindSamplers");
glBindImageTextures = OpenGL_Load("glBindImageTextures");
glBindVertexBuffers = OpenGL_Load("glBindVertexBuffers");
return;
}
| |
22,322 | corofx::handled_task<corofx::task<std::unique_ptr<int, std::default_delete<int>>, foo>, corofx::handler_impl<foo, main::$_0>>::operator()() && requires effect_types::empty | corofx/include/corofx/task.hpp | [[nodiscard]]
auto operator()() && noexcept -> value_type
requires(effect_types::empty)
{
if constexpr (std::is_void_v<value_type>) {
task_.call_unchecked();
} else {
auto output = std::optional<value_type>{};
set_output(output);
task_.call_unchecked(output);
return std::move(*output);
}
} | O3 | cpp | corofx::handled_task<corofx::task<std::unique_ptr<int, std::default_delete<int>>, foo>, corofx::handler_impl<foo, main::$_0>>::operator()() && requires effect_types::empty:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x10(%rbp)
leaq -0x20(%rbp), %rax
movb $0x0, 0x8(%rax)
movq (%rsi), %rdi
movq %rax, 0x20(%rsi)
movq %rax, 0x18(%rdi)
callq *(%rdi)
cmpb $0x0, -0x18(%rbp)
je 0x1a53
movq -0x20(%rbp), %rax
movq %rax, (%rbx)
movq %fs:0x28, %rax
cmpq -0x10(%rbp), %rax
jne 0x1a58
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
callq 0x12c6
callq 0x1220
endbr64
movq %rax, %rdi
callq 0x2616
nop
| _ZNO6corofx12handled_taskINS_4taskISt10unique_ptrIiSt14default_deleteIiEEJ3fooEEEJNS_12handler_implIS6_Z4mainE3$_0EEEEclEvQsr12effect_typesE5empty:
push rbp
mov rbp, rsp
push rbx
sub rsp, 18h
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_10], rax
lea rax, [rbp+var_20]
mov byte ptr [rax+8], 0
mov rdi, [rsi]
mov [rsi+20h], rax
mov [rdi+18h], rax
call qword ptr [rdi]
cmp [rbp+var_18], 0
jz short loc_1A53
mov rax, [rbp+var_20]
mov [rbx], rax
mov rax, fs:28h
cmp rax, [rbp+var_10]
jnz short loc_1A58
add rsp, 18h
pop rbx
pop rbp
retn
loc_1A53:
call _ZNO6corofx12handled_taskINS_4taskISt10unique_ptrIiSt14default_deleteIiEEJ3fooEEEJNS_12handler_implIS6_Z4mainE3$_0EEEEclEvQsr12effect_typesE5empty_cold_1
loc_1A58:
call ___stack_chk_fail
endbr64
mov rdi, rax
call __clang_call_terminate
| unsigned long long corofx::handled_task<corofx::task<std::unique_ptr<int>,foo>,corofx::handler_impl<foo,main::$_0>>::operator()(
_QWORD *a1,
long long *a2)
{
long long v3; // rdi
long long v5; // [rsp+0h] [rbp-20h] BYREF
char v6; // [rsp+8h] [rbp-18h]
unsigned long long v7; // [rsp+10h] [rbp-10h]
v7 = __readfsqword(0x28u);
v6 = 0;
v3 = *a2;
a2[4] = (long long)&v5;
*(_QWORD *)(v3 + 24) = &v5;
(*(void (**)(void))v3)();
if ( !v6 )
corofx::handled_task<corofx::task<std::unique_ptr<int>,foo>,corofx::handler_impl<foo,main::$_0>>::operator()();
*a1 = v5;
return __readfsqword(0x28u);
}
| _ZNO6corofx12handled_taskINS_4taskISt10unique_ptrIiSt14default_deleteIiEEJ3fooEEEJNS_12handler_implIS6_Z4mainE3$_0EEEEclEvQsr12effect_typesE5empty:
PUSH RBP
MOV RBP,RSP
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x10],RAX
LEA RAX,[RBP + -0x20]
MOV byte ptr [RAX + 0x8],0x0
MOV RDI,qword ptr [RSI]
MOV qword ptr [RSI + 0x20],RAX
MOV qword ptr [RDI + 0x18],RAX
LAB_00101a2e:
CALL qword ptr [RDI]
LAB_00101a30:
CMP byte ptr [RBP + -0x18],0x0
JZ 0x00101a53
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBX],RAX
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x10]
JNZ 0x00101a58
ADD RSP,0x18
POP RBX
POP RBP
RET
LAB_00101a53:
CALL 0x001012c6
LAB_00101a58:
CALL 0x00101220
|
void _ZNO6corofx12handled_taskINS_4taskISt10unique_ptrIiSt14default_deleteIiEEJ3fooEEEJNS_12handler_implIS6_Z4mainE3__0EEEEclEvQsr12effect_typesE5empty
(int8 *param_1,long *param_2)
{
int8 *puVar1;
long in_FS_OFFSET;
int8 local_28;
char local_20;
long local_18;
local_18 = *(long *)(in_FS_OFFSET + 0x28);
local_20 = '\0';
puVar1 = (int8 *)*param_2;
param_2[4] = (long)&local_28;
puVar1[3] = &local_28;
/* try { // try from 00101a2e to 00101a2f has its CatchHandler @ 00101a5d */
(*(code *)*puVar1)();
if (local_20 == '\0') {
_ZNO6corofx12handled_taskINS_4taskISt10unique_ptrIiSt14default_deleteIiEEJ3fooEEEJNS_12handler_implIS6_Z4mainE3__0EEEEclEvQsr12effect_typesE5empty_cold_1
();
}
else {
*param_1 = local_28;
if (*(long *)(in_FS_OFFSET + 0x28) == local_18) {
return;
}
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
22,323 | minja::Value::dump_string(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, char) | monkey531[P]llama/common/minja.hpp | static void dump_string(const json & primitive, std::ostringstream & out, char string_quote = '\'') {
if (!primitive.is_string()) throw std::runtime_error("Value is not a string: " + primitive.dump());
auto s = primitive.dump();
if (string_quote == '"' || s.find('\'') != std::string::npos) {
out << s;
return;
}
// Reuse json dump, just changing string quotes
out << string_quote;
for (size_t i = 1, n = s.size() - 1; i < n; ++i) {
if (s[i] == '\\' && s[i + 1] == '"') {
out << '"';
i++;
} else if (s[i] == string_quote) {
out << '\\' << string_quote;
} else {
out << s[i];
}
}
out << string_quote;
} | O2 | cpp | minja::Value::dump_string(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, char):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
cmpb $0x3, (%rdi)
jne 0x6834c
movl %edx, %ebp
movq %rsi, %rbx
leaq 0x8(%rsp), %rdi
pushq $-0x1
popq %rdx
pushq $0x20
popq %rcx
movq %r14, %rsi
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x61db8
cmpb $0x22, %bpl
je 0x682a1
leaq 0x8(%rsp), %rdi
pushq $0x27
popq %rsi
xorl %edx, %edx
callq 0x24b90
cmpq $-0x1, %rax
je 0x682c7
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x24810
leaq 0x8(%rsp), %rdi
callq 0x25258
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movsbl %bpl, %esi
movq %rbx, %rdi
movl %esi, 0x4(%rsp)
callq 0x24a70
movq 0x10(%rsp), %r13
decq %r13
pushq $0x1
popq %r14
pushq $0x22
popq %r15
pushq $0x5c
popq %r12
cmpq %r13, %r14
jae 0x6833b
movq 0x8(%rsp), %rax
movb (%rax,%r14), %cl
cmpb $0x5c, %cl
jne 0x68316
cmpb $0x22, 0x1(%rax,%r14)
jne 0x68316
movq %rbx, %rdi
movl %r15d, %esi
callq 0x24a70
incq %r14
jmp 0x68336
movq %rbx, %rax
cmpb %bpl, %cl
jne 0x6832b
movq %rbx, %rdi
movl %r12d, %esi
callq 0x24a70
movl %ebp, %ecx
movsbl %cl, %esi
movq %rax, %rdi
callq 0x24a70
incq %r14
jmp 0x682eb
movq %rbx, %rdi
movl 0x4(%rsp), %esi
callq 0x24a70
jmp 0x682ae
pushq $0x10
popq %rdi
callq 0x24470
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
pushq $-0x1
popq %rdx
pushq $0x20
popq %rcx
movq %r14, %rsi
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x61db8
leaq 0x50a88(%rip), %rsi # 0xb8dff
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x5d362
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x24e80
xorl %ebp, %ebp
movq 0x9bc51(%rip), %rsi # 0x103ff0
movq 0x9bbb2(%rip), %rdx # 0x103f58
movq %rbx, %rdi
callq 0x24f50
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x25258
jmp 0x683c3
movq %rax, %r14
movb $0x1, %bpl
leaq 0x28(%rsp), %rdi
callq 0x25258
testb %bpl, %bpl
jne 0x683d7
jmp 0x683f0
movq %rax, %r14
movq %rbx, %rdi
callq 0x246b0
jmp 0x683f0
jmp 0x683e3
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x25258
movq %r14, %rdi
callq 0x24fe0
| _ZN5minja5Value11dump_stringERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEERNS6_19basic_ostringstreamIcS9_SA_EEc:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r14, rdi
cmp byte ptr [rdi], 3
jnz loc_6834C
mov ebp, edx
mov rbx, rsi
lea rdi, [rsp+78h+var_70]
push 0FFFFFFFFFFFFFFFFh
pop rdx
push 20h ; ' '
pop rcx
mov rsi, r14
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
cmp bpl, 22h ; '"'
jz short loc_682A1
lea rdi, [rsp+78h+var_70]
push 27h ; '''
pop rsi
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm; std::string::find(char,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_682C7
loc_682A1:
lea rsi, [rsp+78h+var_70]
mov rdi, rbx
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
loc_682AE:
lea rdi, [rsp+78h+var_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_682C7:
movsx esi, bpl
mov rdi, rbx
mov [rsp+78h+var_74], esi
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char)
mov r13, [rsp+78h+var_68]
dec r13
push 1
pop r14
push 22h ; '"'
pop r15
push 5Ch ; '\'
pop r12
loc_682EB:
cmp r14, r13
jnb short loc_6833B
mov rax, [rsp+78h+var_70]
mov cl, [rax+r14]
cmp cl, 5Ch ; '\'
jnz short loc_68316
cmp byte ptr [rax+r14+1], 22h ; '"'
jnz short loc_68316
mov rdi, rbx
mov esi, r15d
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char)
inc r14
jmp short loc_68336
loc_68316:
mov rax, rbx
cmp cl, bpl
jnz short loc_6832B
mov rdi, rbx
mov esi, r12d
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char)
mov ecx, ebp
loc_6832B:
movsx esi, cl
mov rdi, rax
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char)
loc_68336:
inc r14
jmp short loc_682EB
loc_6833B:
mov rdi, rbx
mov esi, [rsp+78h+var_74]
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char)
jmp loc_682AE
loc_6834C:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+78h+var_50]
push 0FFFFFFFFFFFFFFFFh
pop rdx
push 20h ; ' '
pop rcx
mov rsi, r14
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
lea rsi, aValueIsNotAStr; "Value is not a string: "
lea rdi, [rsp+78h+var_70]
lea rdx, [rsp+78h+var_50]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+78h+var_70]
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+78h+var_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_683C3
mov r14, rax
mov bpl, 1
loc_683C3:
lea rdi, [rsp+78h+var_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_683D7
jmp short loc_683F0
mov r14, rax
loc_683D7:
mov rdi, rbx; void *
call ___cxa_free_exception
jmp short loc_683F0
jmp short $+2
loc_683E3:
mov r14, rax
lea rdi, [rsp+78h+var_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_683F0:
mov rdi, r14
call __Unwind_Resume
| void minja::Value::dump_string(_BYTE *a1, long long a2, char a3)
{
unsigned long long v4; // r13
unsigned long long i; // r14
char v6; // cl
long long v7; // rax
void *exception; // rbx
_QWORD v9[4]; // [rsp+8h] [rbp-70h] BYREF
_BYTE v10[80]; // [rsp+28h] [rbp-50h] BYREF
if ( *a1 != 3 )
{
exception = __cxa_allocate_exception(0x10uLL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
(long long)v10,
(long long)a1,
-1,
32,
0,
0);
std::operator+<char>((long long)v9, (long long)"Value is not a string: ", (long long)v10);
std::runtime_error::runtime_error(exception, v9);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
(long long)v9,
(long long)a1,
-1,
32,
0,
0);
if ( a3 != 34 && std::string::find(v9, 39LL, 0LL) == -1 )
{
std::operator<<<std::char_traits<char>>(a2, (unsigned int)a3);
v4 = v9[1] - 1LL;
for ( i = 1LL; i < v4; ++i )
{
v6 = *(_BYTE *)(v9[0] + i);
if ( v6 == 92 && *(_BYTE *)(v9[0] + i + 1) == 34 )
{
std::operator<<<std::char_traits<char>>(a2, 34LL);
++i;
}
else
{
v7 = a2;
if ( v6 == a3 )
{
v7 = std::operator<<<std::char_traits<char>>(a2, 92LL);
v6 = a3;
}
std::operator<<<std::char_traits<char>>(v7, (unsigned int)v6);
}
}
std::operator<<<std::char_traits<char>>(a2, (unsigned int)a3);
}
else
{
std::operator<<<char>(a2, v9);
}
std::string::~string(v9);
}
| dump_string:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R14,RDI
CMP byte ptr [RDI],0x3
JNZ 0x0016834c
MOV EBP,EDX
MOV RBX,RSI
LEA RDI,[RSP + 0x8]
PUSH -0x1
POP RDX
PUSH 0x20
POP RCX
MOV RSI,R14
XOR R8D,R8D
XOR R9D,R9D
CALL 0x00161db8
CMP BPL,0x22
JZ 0x001682a1
LEA RDI,[RSP + 0x8]
PUSH 0x27
POP RSI
XOR EDX,EDX
CALL 0x00124b90
CMP RAX,-0x1
JZ 0x001682c7
LAB_001682a1:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x00124810
LAB_001682ae:
LEA RDI,[RSP + 0x8]
CALL 0x00125258
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001682c7:
MOVSX ESI,BPL
MOV RDI,RBX
MOV dword ptr [RSP + 0x4],ESI
CALL 0x00124a70
MOV R13,qword ptr [RSP + 0x10]
DEC R13
PUSH 0x1
POP R14
PUSH 0x22
POP R15
PUSH 0x5c
POP R12
LAB_001682eb:
CMP R14,R13
JNC 0x0016833b
MOV RAX,qword ptr [RSP + 0x8]
MOV CL,byte ptr [RAX + R14*0x1]
CMP CL,0x5c
JNZ 0x00168316
CMP byte ptr [RAX + R14*0x1 + 0x1],0x22
JNZ 0x00168316
LAB_00168306:
MOV RDI,RBX
MOV ESI,R15D
CALL 0x00124a70
INC R14
JMP 0x00168336
LAB_00168316:
MOV RAX,RBX
CMP CL,BPL
JNZ 0x0016832b
MOV RDI,RBX
MOV ESI,R12D
CALL 0x00124a70
MOV ECX,EBP
LAB_0016832b:
MOVSX ESI,CL
MOV RDI,RAX
CALL 0x00124a70
LAB_00168336:
INC R14
JMP 0x001682eb
LAB_0016833b:
MOV RDI,RBX
MOV ESI,dword ptr [RSP + 0x4]
CALL 0x00124a70
LAB_00168347:
JMP 0x001682ae
LAB_0016834c:
PUSH 0x10
POP RDI
CALL 0x00124470
MOV RBX,RAX
LAB_00168357:
LEA RDI,[RSP + 0x28]
PUSH -0x1
POP RDX
PUSH 0x20
POP RCX
MOV RSI,R14
XOR R8D,R8D
XOR R9D,R9D
CALL 0x00161db8
LAB_00168370:
LEA RSI,[0x1b8dff]
LEA RDI,[RSP + 0x8]
LEA RDX,[RSP + 0x28]
CALL 0x0015d362
MOV BPL,0x1
LAB_00168389:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x00124e80
XOR EBP,EBP
MOV RSI,qword ptr [0x00203ff0]
MOV RDX,qword ptr [0x00203f58]
MOV RDI,RBX
CALL 0x00124f50
|
/* minja::Value::dump_string(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const&, std::__cxx11::ostringstream&, char) */
void minja::Value::dump_string(basic_json *param_1,ostringstream *param_2,char param_3)
{
long lVar1;
ostringstream *poVar2;
runtime_error *this;
char cVar3;
ulong uVar4;
long local_70;
long local_68;
int1 local_50 [32];
if (*param_1 != '\x03') {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00168357 to 0016836f has its CatchHandler @ 001683d4 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::dump(local_50,param_1,0xffffffffffffffff,0x20,0,0);
/* try { // try from 00168370 to 00168385 has its CatchHandler @ 001683bd */
std::operator+((char *)&local_70,(string *)"Value is not a string: ");
/* try { // try from 00168389 to 001683ad has its CatchHandler @ 001683ae */
std::runtime_error::runtime_error(this,(string *)&local_70);
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_00203ff0,PTR__runtime_error_00203f58);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::dump(&local_70,param_1,0xffffffffffffffff,0x20,0,0);
if (param_3 != '\"') {
lVar1 = std::__cxx11::string::find((char)&local_70,0x27);
if (lVar1 == -1) {
std::operator<<((ostream *)param_2,param_3);
for (uVar4 = 1; uVar4 < local_68 - 1U; uVar4 = uVar4 + 1) {
cVar3 = *(char *)(local_70 + uVar4);
if ((cVar3 == '\\') && (*(char *)(local_70 + 1 + uVar4) == '\"')) {
/* try { // try from 00168306 to 00168335 has its CatchHandler @ 001683e3 */
std::operator<<((ostream *)param_2,'\"');
uVar4 = uVar4 + 1;
}
else {
poVar2 = param_2;
if (cVar3 == param_3) {
poVar2 = (ostringstream *)std::operator<<((ostream *)param_2,'\\');
cVar3 = param_3;
}
std::operator<<((ostream *)poVar2,cVar3);
}
}
/* try { // try from 0016833b to 00168346 has its CatchHandler @ 001683e1 */
std::operator<<((ostream *)param_2,param_3);
goto LAB_001682ae;
}
}
/* try { // try from 001682a1 to 001682d6 has its CatchHandler @ 001683e1 */
std::operator<<((ostream *)param_2,(string *)&local_70);
LAB_001682ae:
std::__cxx11::string::~string((string *)&local_70);
return;
}
| |
22,324 | dirname_length | eloqsql/mysys/mf_dirname.c | size_t dirname_length(const char *name)
{
register char *pos, *gpos;
#ifdef BASKSLASH_MBTAIL
CHARSET_INFO *fs= fs_character_set();
#endif
#ifdef FN_DEVCHAR
if ((pos=(char*)strrchr(name,FN_DEVCHAR)) == 0)
#endif
pos=(char*) name-1;
gpos= pos++;
for ( ; *pos ; pos++) /* Find last FN_LIBCHAR */
{
#ifdef BASKSLASH_MBTAIL
uint l;
if (my_ci_use_mb(fs) && (l= my_ismbchar(fs, pos, pos + 3)))
{
pos+= l - 1;
continue;
}
#endif
if (*pos == FN_LIBCHAR || *pos == '/')
gpos=pos;
}
return (size_t) (gpos+1-(char*) name);
} | O0 | c | dirname_length:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
je 0x2b910
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2f, %eax
je 0x2b8f8
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2f, %eax
jne 0x2b900
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0x2b902
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x2b8d7
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| dirname_length:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
mov [rbp+var_18], rax
loc_2B8D7:
mov rax, [rbp+var_10]
cmp byte ptr [rax], 0
jz short loc_2B910
mov rax, [rbp+var_10]
movsx eax, byte ptr [rax]
cmp eax, 2Fh ; '/'
jz short loc_2B8F8
mov rax, [rbp+var_10]
movsx eax, byte ptr [rax]
cmp eax, 2Fh ; '/'
jnz short loc_2B900
loc_2B8F8:
mov rax, [rbp+var_10]
mov [rbp+var_18], rax
loc_2B900:
jmp short $+2
loc_2B902:
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
jmp short loc_2B8D7
loc_2B910:
mov rax, [rbp+var_18]
add rax, 1
mov rcx, [rbp+var_8]
sub rax, rcx
pop rbp
retn
| long long dirname_length(_BYTE *a1)
{
_BYTE *v2; // [rsp+0h] [rbp-18h]
_BYTE *v3; // [rsp+8h] [rbp-10h]
v3 = a1;
v2 = a1 - 1;
while ( *v3 )
{
if ( *v3 == 47 )
v2 = v3;
++v3;
}
return v2 + 1 - a1;
}
| dirname_length:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOV qword ptr [RBP + -0x18],RAX
LAB_0012b8d7:
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX],0x0
JZ 0x0012b910
MOV RAX,qword ptr [RBP + -0x10]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2f
JZ 0x0012b8f8
MOV RAX,qword ptr [RBP + -0x10]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2f
JNZ 0x0012b900
LAB_0012b8f8:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x18],RAX
LAB_0012b900:
JMP 0x0012b902
LAB_0012b902:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
JMP 0x0012b8d7
LAB_0012b910:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV RCX,qword ptr [RBP + -0x8]
SUB RAX,RCX
POP RBP
RET
|
char * dirname_length(char *param_1)
{
char *local_20;
char *local_18;
local_20 = param_1 + -1;
for (local_18 = param_1; *local_18 != '\0'; local_18 = local_18 + 1) {
if ((*local_18 == '/') || (*local_18 == '/')) {
local_20 = local_18;
}
}
return local_20 + (1 - (long)param_1);
}
| |
22,325 | mi_kpointer | eloqsql/storage/myisam/mi_search.c | void _mi_kpointer(register MI_INFO *info, register uchar *buff, my_off_t pos)
{
pos/=MI_MIN_KEY_BLOCK_LENGTH;
switch (info->s->base.key_reflength) {
#if SIZEOF_OFF_T > 4
case 7: mi_int7store(buff,pos); break;
case 6: mi_int6store(buff,pos); break;
case 5: mi_int5store(buff,pos); break;
#else
case 7: *buff++=0;
/* fall through */
case 6: *buff++=0;
/* fall through */
case 5: *buff++=0;
/* fall through */
#endif
case 4: mi_int4store(buff,pos); break;
case 3: mi_int3store(buff,pos); break;
case 2: mi_int2store(buff,(uint) pos); break;
case 1: buff[0]= (uchar) pos; break;
default: abort(); /* impossible */
}
} | O0 | c | mi_kpointer:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rax
shrq $0xa, %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl 0x17c(%rax), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x68(%rbp)
subl $0x6, %eax
ja 0xeace6
movq -0x68(%rbp), %rax
leaq 0xaa8ff(%rip), %rcx # 0x1953c8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
shrq $0x20, %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x6(%rax)
movq -0x20(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x5(%rax)
movq -0x20(%rbp), %rax
shrq $0x10, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x4(%rax)
movq -0x20(%rbp), %rax
shrq $0x18, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x28(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x28(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x28(%rbp), %rax
shrq $0x10, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
jmp 0xeaceb
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
shrq $0x20, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x5(%rax)
movq -0x30(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x4(%rax)
movq -0x30(%rbp), %rax
shrq $0x10, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x30(%rbp), %rax
shrq $0x18, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x38(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x38(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
jmp 0xeaceb
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
shrq $0x20, %rax
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x4(%rax)
movq -0x40(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x40(%rbp), %rax
shrq $0x10, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x40(%rbp), %rax
shrq $0x18, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x48(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
jmp 0xeaceb
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x50(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x50(%rbp), %rax
shrq $0x10, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x50(%rbp), %rax
shrq $0x18, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
jmp 0xeaceb
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x58(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x58(%rbp), %rax
shrq $0x10, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
jmp 0xeaceb
movq -0x18(%rbp), %rax
movl %eax, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x5c(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
jmp 0xeaceb
movq -0x18(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
jmp 0xeaceb
callq 0x2c6a0
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _mi_kpointer:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_18]
shr rax, 0Ah
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
mov rax, [rax]
mov eax, [rax+17Ch]
dec eax; switch 7 cases
mov ecx, eax
loc_EAAB1:
mov [rbp+var_68], rcx
sub eax, 6
ja def_EAAD0; jumptable 00000000000EAAD0 default case
mov rax, [rbp+var_68]
lea rcx, jpt_EAAD0
movsxd rax, ds:(jpt_EAAD0 - 1953C8h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_EAAD2:
mov rax, [rbp+var_18]; jumptable 00000000000EAAD0 case 7
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
shr rax, 20h
mov [rbp+var_28], rax
mov rax, [rbp+var_20]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+6], cl
mov rax, [rbp+var_20]
shr rax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax+5], cl
mov rax, [rbp+var_20]
shr rax, 10h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+4], cl
mov rax, [rbp+var_20]
shr rax, 18h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+3], cl
mov rax, [rbp+var_28]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+2], cl
mov rax, [rbp+var_28]
shr rax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax+1], cl
mov rax, [rbp+var_28]
shr rax, 10h
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
jmp loc_EACEB
loc_EAB59:
mov rax, [rbp+var_18]; jumptable 00000000000EAAD0 case 6
mov [rbp+var_30], rax
mov rax, [rbp+var_18]
shr rax, 20h
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+5], cl
mov rax, [rbp+var_30]
shr rax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax+4], cl
mov rax, [rbp+var_30]
shr rax, 10h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+3], cl
mov rax, [rbp+var_30]
shr rax, 18h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+2], cl
mov rax, [rbp+var_38]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+1], cl
mov rax, [rbp+var_38]
shr rax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
jmp loc_EACEB
loc_EABCF:
mov rax, [rbp+var_18]; jumptable 00000000000EAAD0 case 5
mov [rbp+var_40], rax
mov rax, [rbp+var_18]
shr rax, 20h
mov [rbp+var_48], rax
mov rax, [rbp+var_40]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+4], cl
mov rax, [rbp+var_40]
shr rax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax+3], cl
mov rax, [rbp+var_40]
shr rax, 10h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+2], cl
mov rax, [rbp+var_40]
shr rax, 18h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+1], cl
mov rax, [rbp+var_48]
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
jmp loc_EACEB
loc_EAC34:
mov rax, [rbp+var_18]; jumptable 00000000000EAAD0 case 4
mov [rbp+var_50], rax
mov rax, [rbp+var_50]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+3], cl
mov rax, [rbp+var_50]
shr rax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax+2], cl
mov rax, [rbp+var_50]
shr rax, 10h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+1], cl
mov rax, [rbp+var_50]
shr rax, 18h
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
jmp short loc_EACEB
loc_EAC7D:
mov rax, [rbp+var_18]; jumptable 00000000000EAAD0 case 3
mov [rbp+var_58], rax
mov rax, [rbp+var_58]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+2], cl
mov rax, [rbp+var_58]
shr rax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax+1], cl
mov rax, [rbp+var_58]
shr rax, 10h
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
jmp short loc_EACEB
loc_EACB5:
mov rax, [rbp+var_18]; jumptable 00000000000EAAD0 case 2
mov [rbp+var_5C], eax
mov eax, [rbp+var_5C]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+1], cl
mov eax, [rbp+var_5C]
shr eax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
jmp short loc_EACEB
loc_EACD8:
mov rax, [rbp+var_18]; jumptable 00000000000EAAD0 case 1
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
jmp short loc_EACEB
def_EAAD0:
call _abort; jumptable 00000000000EAAD0 default case
loc_EACEB:
add rsp, 70h
pop rbp
retn
| _BYTE * mi_kpointer(long long a1, _BYTE *a2, unsigned long long a3)
{
_BYTE *result; // rax
unsigned long long v4; // [rsp+58h] [rbp-18h]
v4 = a3 >> 10;
switch ( *(_DWORD *)(*(_QWORD *)a1 + 380LL) )
{
case 1:
result = a2;
*a2 = v4;
break;
case 2:
a2[1] = v4;
result = a2;
*a2 = BYTE1(v4);
break;
case 3:
a2[2] = v4;
a2[1] = BYTE1(v4);
result = a2;
*a2 = BYTE2(v4);
break;
case 4:
a2[3] = v4;
a2[2] = BYTE1(v4);
a2[1] = BYTE2(v4);
result = a2;
*a2 = BYTE3(v4);
break;
case 5:
a2[4] = v4;
a2[3] = BYTE1(v4);
a2[2] = BYTE2(v4);
a2[1] = BYTE3(v4);
result = a2;
*a2 = BYTE4(v4);
break;
case 6:
a2[5] = v4;
a2[4] = BYTE1(v4);
a2[3] = BYTE2(v4);
a2[2] = BYTE3(v4);
a2[1] = BYTE4(v4);
result = a2;
*a2 = BYTE5(v4);
break;
case 7:
a2[6] = v4;
a2[5] = BYTE1(v4);
a2[4] = BYTE2(v4);
a2[3] = BYTE3(v4);
a2[2] = BYTE4(v4);
a2[1] = BYTE5(v4);
result = a2;
*a2 = BYTE6(v4);
break;
default:
abort(a1, a2, a3);
}
return result;
}
| _mi_kpointer:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0xa
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x17c]
DEC EAX
MOV ECX,EAX
MOV qword ptr [RBP + -0x68],RCX
SUB EAX,0x6
JA 0x001eace6
MOV RAX,qword ptr [RBP + -0x68]
LEA RCX,[0x2953c8]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_7:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x20
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x6],CL
MOV RAX,qword ptr [RBP + -0x20]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x5],CL
MOV RAX,qword ptr [RBP + -0x20]
SHR RAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x4],CL
MOV RAX,qword ptr [RBP + -0x20]
SHR RAX,0x18
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x3],CL
MOV RAX,qword ptr [RBP + -0x28]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x28]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x28]
SHR RAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
JMP 0x001eaceb
caseD_6:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x20
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x5],CL
MOV RAX,qword ptr [RBP + -0x30]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x4],CL
MOV RAX,qword ptr [RBP + -0x30]
SHR RAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x3],CL
MOV RAX,qword ptr [RBP + -0x30]
SHR RAX,0x18
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x38]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x38]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
JMP 0x001eaceb
caseD_5:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x20
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x4],CL
MOV RAX,qword ptr [RBP + -0x40]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x3],CL
MOV RAX,qword ptr [RBP + -0x40]
SHR RAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x40]
SHR RAX,0x18
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x48]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
JMP 0x001eaceb
caseD_4:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x3],CL
MOV RAX,qword ptr [RBP + -0x50]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x50]
SHR RAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x50]
SHR RAX,0x18
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
JMP 0x001eaceb
caseD_3:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x58]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x58]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x58]
SHR RAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
JMP 0x001eaceb
caseD_2:
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x5c],EAX
MOV EAX,dword ptr [RBP + -0x5c]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1],CL
MOV EAX,dword ptr [RBP + -0x5c]
SHR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
JMP 0x001eaceb
caseD_1:
MOV RAX,qword ptr [RBP + -0x18]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
JMP 0x001eaceb
default:
CALL 0x0012c6a0
LAB_001eaceb:
ADD RSP,0x70
POP RBP
RET
|
void _mi_kpointer(long *param_1,byte *param_2,ulong param_3)
{
byte bVar1;
byte bVar2;
byte bVar3;
byte bVar4;
byte bVar5;
byte bVar6;
ulong uVar7;
uVar7 = param_3 >> 10;
bVar1 = (byte)uVar7;
bVar2 = (byte)(uVar7 >> 8);
bVar3 = (byte)(uVar7 >> 0x10);
bVar4 = (byte)(uVar7 >> 0x18);
bVar5 = (byte)(uVar7 >> 0x20);
bVar6 = (byte)(uVar7 >> 0x28);
switch(*(int4 *)(*param_1 + 0x17c)) {
case 1:
*param_2 = bVar1;
break;
case 2:
param_2[1] = bVar1;
*param_2 = bVar2;
break;
case 3:
param_2[2] = bVar1;
param_2[1] = bVar2;
*param_2 = bVar3;
break;
case 4:
param_2[3] = bVar1;
param_2[2] = bVar2;
param_2[1] = bVar3;
*param_2 = bVar4;
break;
case 5:
param_2[4] = bVar1;
param_2[3] = bVar2;
param_2[2] = bVar3;
param_2[1] = bVar4;
*param_2 = bVar5;
break;
case 6:
param_2[5] = bVar1;
param_2[4] = bVar2;
param_2[3] = bVar3;
param_2[2] = bVar4;
param_2[1] = bVar5;
*param_2 = bVar6;
break;
case 7:
param_2[6] = bVar1;
param_2[5] = bVar2;
param_2[4] = bVar3;
param_2[3] = bVar4;
param_2[2] = bVar5;
param_2[1] = bVar6;
*param_2 = (byte)(param_3 >> 0x3a);
break;
default:
/* WARNING: Subroutine does not return */
abort();
}
return;
}
| |
22,326 | mi_kpointer | eloqsql/storage/myisam/mi_search.c | void _mi_kpointer(register MI_INFO *info, register uchar *buff, my_off_t pos)
{
pos/=MI_MIN_KEY_BLOCK_LENGTH;
switch (info->s->base.key_reflength) {
#if SIZEOF_OFF_T > 4
case 7: mi_int7store(buff,pos); break;
case 6: mi_int6store(buff,pos); break;
case 5: mi_int5store(buff,pos); break;
#else
case 7: *buff++=0;
/* fall through */
case 6: *buff++=0;
/* fall through */
case 5: *buff++=0;
/* fall through */
#endif
case 4: mi_int4store(buff,pos); break;
case 3: mi_int3store(buff,pos); break;
case 2: mi_int2store(buff,(uint) pos); break;
case 1: buff[0]= (uchar) pos; break;
default: abort(); /* impossible */
}
} | O3 | c | mi_kpointer:
movq (%rdi), %rax
movl 0x17c(%rax), %ecx
decl %ecx
cmpl $0x6, %ecx
ja 0xa47c7
movq %rdx, %rax
shrq $0xa, %rax
leaq 0x69ffd(%rip), %rdi # 0x10e6ec
movslq (%rdi,%rcx,4), %rcx
addq %rdi, %rcx
jmpq *%rcx
movb %al, 0x1(%rsi)
shrq $0x12, %rdx
jmp 0xa47c1
movb %al, 0x4(%rsi)
movq %rdx, %rax
shrq $0x2a, %rax
movl %edx, %ecx
shrl $0x12, %ecx
movb %cl, 0x3(%rsi)
movq %rdx, %rcx
shrq $0x1a, %rcx
movb %cl, 0x2(%rsi)
shrq $0x22, %rdx
movb %dl, 0x1(%rsi)
jmp 0xa47c4
movb %al, 0x2(%rsi)
movl %edx, %eax
shrl $0x12, %eax
movb %al, 0x1(%rsi)
shrq $0x1a, %rdx
jmp 0xa47c1
movb %al, 0x3(%rsi)
movl %edx, %eax
shrl $0x12, %eax
movb %al, 0x2(%rsi)
movq %rdx, %rax
shrq $0x1a, %rax
movb %al, 0x1(%rsi)
shrq $0x22, %rdx
jmp 0xa47c1
movq %rdx, %rcx
shrq $0x2a, %rcx
movb %al, 0x5(%rsi)
movl %edx, %eax
shrl $0x12, %eax
movb %al, 0x4(%rsi)
movq %rdx, %rax
shrq $0x1a, %rax
movb %al, 0x3(%rsi)
movq %rdx, %rax
shrq $0x22, %rax
movb %al, 0x2(%rsi)
movb %cl, 0x1(%rsi)
shrq $0x32, %rdx
jmp 0xa47c1
movq %rdx, %rcx
shrq $0x2a, %rcx
movb %al, 0x6(%rsi)
movl %edx, %eax
shrl $0x12, %eax
movb %al, 0x5(%rsi)
movq %rdx, %rax
shrq $0x1a, %rax
movb %al, 0x4(%rsi)
movq %rdx, %rax
shrq $0x22, %rax
movb %al, 0x3(%rsi)
movb %cl, 0x2(%rsi)
movq %rdx, %rax
shrq $0x32, %rax
movb %al, 0x1(%rsi)
shrq $0x3a, %rdx
movq %rdx, %rax
movb %al, (%rsi)
retq
pushq %rbp
movq %rsp, %rbp
callq 0x2b6e0
| _mi_kpointer:
mov rax, [rdi]
mov ecx, [rax+17Ch]
dec ecx; switch 7 cases
cmp ecx, 6
ja def_A46F6; jumptable 00000000000A46F6 default case
mov rax, rdx
shr rax, 0Ah
lea rdi, jpt_A46F6
movsxd rcx, ds:(jpt_A46F6 - 10E6ECh)[rdi+rcx*4]
add rcx, rdi
jmp rcx; switch jump
loc_A46F8:
mov [rsi+1], al; jumptable 00000000000A46F6 case 2
shr rdx, 12h
jmp loc_A47C1
loc_A4704:
mov [rsi+4], al; jumptable 00000000000A46F6 case 5
mov rax, rdx
shr rax, 2Ah
mov ecx, edx
shr ecx, 12h
mov [rsi+3], cl
mov rcx, rdx
shr rcx, 1Ah
mov [rsi+2], cl
shr rdx, 22h
mov [rsi+1], dl
jmp loc_A47C4; jumptable 00000000000A46F6 case 1
loc_A472C:
mov [rsi+2], al; jumptable 00000000000A46F6 case 3
mov eax, edx
shr eax, 12h
mov [rsi+1], al
shr rdx, 1Ah
jmp loc_A47C1
loc_A4740:
mov [rsi+3], al; jumptable 00000000000A46F6 case 4
mov eax, edx
shr eax, 12h
mov [rsi+2], al
mov rax, rdx
shr rax, 1Ah
mov [rsi+1], al
shr rdx, 22h
jmp short loc_A47C1
loc_A475B:
mov rcx, rdx; jumptable 00000000000A46F6 case 6
shr rcx, 2Ah
mov [rsi+5], al
mov eax, edx
shr eax, 12h
mov [rsi+4], al
mov rax, rdx
shr rax, 1Ah
mov [rsi+3], al
mov rax, rdx
shr rax, 22h
mov [rsi+2], al
mov [rsi+1], cl
shr rdx, 32h
jmp short loc_A47C1
loc_A478A:
mov rcx, rdx; jumptable 00000000000A46F6 case 7
shr rcx, 2Ah
mov [rsi+6], al
mov eax, edx
shr eax, 12h
mov [rsi+5], al
mov rax, rdx
shr rax, 1Ah
mov [rsi+4], al
mov rax, rdx
shr rax, 22h
mov [rsi+3], al
mov [rsi+2], cl
mov rax, rdx
shr rax, 32h
mov [rsi+1], al
shr rdx, 3Ah
loc_A47C1:
mov rax, rdx
loc_A47C4:
mov [rsi], al; jumptable 00000000000A46F6 case 1
retn
def_A46F6:
push rbp; jumptable 00000000000A46F6 default case
mov rbp, rsp
call _abort
| unsigned long long mi_kpointer(long long a1, _BYTE *a2, unsigned long long a3)
{
unsigned long long result; // rax
unsigned long long v4; // rdx
result = a3 >> 10;
switch ( *(_DWORD *)(*(_QWORD *)a1 + 380LL) )
{
case 1:
goto LABEL_9;
case 2:
a2[1] = result;
v4 = a3 >> 18;
goto LABEL_8;
case 3:
a2[2] = result;
a2[1] = (unsigned int)a3 >> 18;
v4 = a3 >> 26;
goto LABEL_8;
case 4:
a2[3] = result;
a2[2] = (unsigned int)a3 >> 18;
a2[1] = a3 >> 26;
v4 = a3 >> 34;
goto LABEL_8;
case 5:
a2[4] = result;
result = a3 >> 42;
a2[3] = (unsigned int)a3 >> 18;
a2[2] = a3 >> 26;
a2[1] = a3 >> 34;
goto LABEL_9;
case 6:
a2[5] = result;
a2[4] = (unsigned int)a3 >> 18;
a2[3] = a3 >> 26;
a2[2] = a3 >> 34;
a2[1] = a3 >> 42;
v4 = a3 >> 50;
goto LABEL_8;
case 7:
a2[6] = result;
a2[5] = (unsigned int)a3 >> 18;
a2[4] = a3 >> 26;
a2[3] = a3 >> 34;
a2[2] = a3 >> 42;
a2[1] = a3 >> 50;
v4 = a3 >> 58;
LABEL_8:
result = v4;
LABEL_9:
*a2 = result;
return result;
default:
abort(a1);
}
}
| _mi_kpointer:
MOV RAX,qword ptr [RDI]
MOV ECX,dword ptr [RAX + 0x17c]
DEC ECX
CMP ECX,0x6
JA 0x001a47c7
MOV RAX,RDX
SHR RAX,0xa
LEA RDI,[0x20e6ec]
MOVSXD RCX,dword ptr [RDI + RCX*0x4]
ADD RCX,RDI
switchD:
JMP RCX
caseD_2:
MOV byte ptr [RSI + 0x1],AL
SHR RDX,0x12
JMP 0x001a47c1
caseD_5:
MOV byte ptr [RSI + 0x4],AL
MOV RAX,RDX
SHR RAX,0x2a
MOV ECX,EDX
SHR ECX,0x12
MOV byte ptr [RSI + 0x3],CL
MOV RCX,RDX
SHR RCX,0x1a
MOV byte ptr [RSI + 0x2],CL
SHR RDX,0x22
MOV byte ptr [RSI + 0x1],DL
JMP 0x001a47c4
caseD_3:
MOV byte ptr [RSI + 0x2],AL
MOV EAX,EDX
SHR EAX,0x12
MOV byte ptr [RSI + 0x1],AL
SHR RDX,0x1a
JMP 0x001a47c1
caseD_4:
MOV byte ptr [RSI + 0x3],AL
MOV EAX,EDX
SHR EAX,0x12
MOV byte ptr [RSI + 0x2],AL
MOV RAX,RDX
SHR RAX,0x1a
MOV byte ptr [RSI + 0x1],AL
SHR RDX,0x22
JMP 0x001a47c1
caseD_6:
MOV RCX,RDX
SHR RCX,0x2a
MOV byte ptr [RSI + 0x5],AL
MOV EAX,EDX
SHR EAX,0x12
MOV byte ptr [RSI + 0x4],AL
MOV RAX,RDX
SHR RAX,0x1a
MOV byte ptr [RSI + 0x3],AL
MOV RAX,RDX
SHR RAX,0x22
MOV byte ptr [RSI + 0x2],AL
MOV byte ptr [RSI + 0x1],CL
SHR RDX,0x32
JMP 0x001a47c1
caseD_7:
MOV RCX,RDX
SHR RCX,0x2a
MOV byte ptr [RSI + 0x6],AL
MOV EAX,EDX
SHR EAX,0x12
MOV byte ptr [RSI + 0x5],AL
MOV RAX,RDX
SHR RAX,0x1a
MOV byte ptr [RSI + 0x4],AL
MOV RAX,RDX
SHR RAX,0x22
MOV byte ptr [RSI + 0x3],AL
MOV byte ptr [RSI + 0x2],CL
MOV RAX,RDX
SHR RAX,0x32
MOV byte ptr [RSI + 0x1],AL
SHR RDX,0x3a
LAB_001a47c1:
MOV RAX,RDX
caseD_1:
MOV byte ptr [RSI],AL
RET
default:
PUSH RBP
MOV RBP,RSP
CALL 0x0012b6e0
|
void _mi_kpointer(long *param_1,byte *param_2,ulong param_3)
{
byte bVar1;
bVar1 = (byte)(param_3 >> 10);
switch(*(int4 *)(*param_1 + 0x17c)) {
case 1:
break;
case 2:
param_2[1] = bVar1;
bVar1 = (byte)(param_3 >> 0x12);
break;
case 3:
param_2[2] = bVar1;
param_2[1] = (byte)(param_3 >> 0x12);
bVar1 = (byte)(param_3 >> 0x1a);
break;
case 4:
param_2[3] = bVar1;
param_2[2] = (byte)(param_3 >> 0x12);
param_2[1] = (byte)(param_3 >> 0x1a);
bVar1 = (byte)(param_3 >> 0x22);
break;
case 5:
param_2[4] = bVar1;
bVar1 = (byte)(param_3 >> 0x2a);
param_2[3] = (byte)(param_3 >> 0x12);
param_2[2] = (byte)(param_3 >> 0x1a);
param_2[1] = (byte)(param_3 >> 0x22);
break;
case 6:
param_2[5] = bVar1;
param_2[4] = (byte)(param_3 >> 0x12);
param_2[3] = (byte)(param_3 >> 0x1a);
param_2[2] = (byte)(param_3 >> 0x22);
param_2[1] = (byte)(param_3 >> 0x2a);
bVar1 = (byte)(param_3 >> 0x32);
break;
case 7:
param_2[6] = bVar1;
param_2[5] = (byte)(param_3 >> 0x12);
param_2[4] = (byte)(param_3 >> 0x1a);
param_2[3] = (byte)(param_3 >> 0x22);
param_2[2] = (byte)(param_3 >> 0x2a);
param_2[1] = (byte)(param_3 >> 0x32);
bVar1 = (byte)(param_3 >> 0x3a);
break;
default:
/* WARNING: Subroutine does not return */
abort();
}
*param_2 = bVar1;
return;
}
| |
22,327 | thr_unlock | eloqsql/mysys/thr_lock.c | void thr_unlock(THR_LOCK_DATA *data, uint unlock_flags)
{
THR_LOCK *lock=data->lock;
enum thr_lock_type lock_type=data->type;
DBUG_ENTER("thr_unlock");
DBUG_PRINT("lock",("data: %p thread: %lu lock: %p",
data, (ulong) data->owner->thread_id,
lock));
mysql_mutex_lock(&lock->mutex);
check_locks(lock,"start of release lock", lock_type, 0);
if (((*data->prev)=data->next)) /* remove from lock-list */
data->next->prev= data->prev;
else if (lock_type <= TL_READ_NO_INSERT)
lock->read.last=data->prev;
else if (lock_type == TL_WRITE_DELAYED && data->cond)
{
/*
This only happens in extreme circumstances when a
write delayed lock that is waiting for a lock
*/
lock->write_wait.last=data->prev; /* Put it on wait queue */
}
else
lock->write.last=data->prev;
if (unlock_flags & THR_UNLOCK_UPDATE_STATUS)
{
/* External lock was not called; Update or restore status */
if (lock_type >= TL_WRITE_CONCURRENT_INSERT)
{
if (lock->update_status)
(*lock->update_status)(data->status_param);
}
else
{
if (lock->restore_status)
(*lock->restore_status)(data->status_param);
}
}
if (lock_type == TL_READ_NO_INSERT)
lock->read_no_write_count--;
data->type=TL_UNLOCK; /* Mark unlocked */
wake_up_waiters(lock);
mysql_mutex_unlock(&lock->mutex);
DBUG_VOID_RETURN;
} | O0 | c | thr_unlock:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl 0x40(%rax), %eax
movl %eax, -0x1c(%rbp)
jmp 0x32427
movq -0x18(%rbp), %rdi
addq $0x18, %rdi
leaq 0x55a38(%rip), %rsi # 0x87e6e
movl $0x3c0, %edx # imm = 0x3C0
callq 0x321b0
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
je 0x3246f
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x10(%rax)
jmp 0x324c4
cmpl $0x5, -0x1c(%rbp)
jg 0x32487
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x78(%rax)
jmp 0x324c2
cmpl $0x9, -0x1c(%rbp)
jne 0x324ad
movq -0x8(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x324ad
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x88(%rax)
jmp 0x324c0
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x98(%rax)
jmp 0x324c2
jmp 0x324c4
movl -0xc(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x32521
cmpl $0x8, -0x1c(%rbp)
jl 0x324fa
movq -0x18(%rbp), %rax
cmpq $0x0, 0xc0(%rax)
je 0x324f8
movq -0x18(%rbp), %rax
movq 0xc0(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rdi
callq *%rax
jmp 0x3251f
movq -0x18(%rbp), %rax
cmpq $0x0, 0xc8(%rax)
je 0x3251d
movq -0x18(%rbp), %rax
movq 0xc8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rdi
callq *%rax
jmp 0x3251f
jmp 0x32521
cmpl $0x5, -0x1c(%rbp)
jne 0x3253a
movq -0x18(%rbp), %rax
movl 0xa8(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0xa8(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x40(%rax)
movq -0x18(%rbp), %rdi
callq 0x32570
movq -0x18(%rbp), %rdi
addq $0x18, %rdi
callq 0x32220
jmp 0x3255d
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| thr_unlock:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov rax, [rbp+var_8]
mov rax, [rax+18h]
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
mov eax, [rax+40h]
mov [rbp+var_1C], eax
jmp short $+2
loc_32427:
mov rdi, [rbp+var_18]
add rdi, 18h
lea rsi, aWorkspaceLlm4b_4; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 3C0h
call inline_mysql_mutex_lock_4
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov rcx, [rbp+var_8]
mov rcx, [rcx+10h]
mov [rcx], rax
cmp rax, 0
jz short loc_3246F
mov rax, [rbp+var_8]
mov rcx, [rax+10h]
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov [rax+10h], rcx
jmp short loc_324C4
loc_3246F:
cmp [rbp+var_1C], 5
jg short loc_32487
mov rax, [rbp+var_8]
mov rcx, [rax+10h]
mov rax, [rbp+var_18]
mov [rax+78h], rcx
jmp short loc_324C2
loc_32487:
cmp [rbp+var_1C], 9
jnz short loc_324AD
mov rax, [rbp+var_8]
cmp qword ptr [rax+20h], 0
jz short loc_324AD
mov rax, [rbp+var_8]
mov rcx, [rax+10h]
mov rax, [rbp+var_18]
mov [rax+88h], rcx
jmp short loc_324C0
loc_324AD:
mov rax, [rbp+var_8]
mov rcx, [rax+10h]
mov rax, [rbp+var_18]
mov [rax+98h], rcx
loc_324C0:
jmp short $+2
loc_324C2:
jmp short $+2
loc_324C4:
mov eax, [rbp+var_C]
and eax, 1
cmp eax, 0
jz short loc_32521
cmp [rbp+var_1C], 8
jl short loc_324FA
mov rax, [rbp+var_18]
cmp qword ptr [rax+0C0h], 0
jz short loc_324F8
mov rax, [rbp+var_18]
mov rax, [rax+0C0h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+28h]
call rax
loc_324F8:
jmp short loc_3251F
loc_324FA:
mov rax, [rbp+var_18]
cmp qword ptr [rax+0C8h], 0
jz short loc_3251D
mov rax, [rbp+var_18]
mov rax, [rax+0C8h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+28h]
call rax
loc_3251D:
jmp short $+2
loc_3251F:
jmp short $+2
loc_32521:
cmp [rbp+var_1C], 5
jnz short loc_3253A
mov rax, [rbp+var_18]
mov ecx, [rax+0A8h]
add ecx, 0FFFFFFFFh
mov [rax+0A8h], ecx
loc_3253A:
mov rax, [rbp+var_8]
mov dword ptr [rax+40h], 0
mov rdi, [rbp+var_18]
call wake_up_waiters
mov rdi, [rbp+var_18]
add rdi, 18h
call inline_mysql_mutex_unlock_4
jmp short $+2
loc_3255D:
add rsp, 20h
pop rbp
retn
| long long thr_unlock(long long a1, char a2)
{
long long v2; // rax
int v4; // [rsp+4h] [rbp-1Ch]
long long v5; // [rsp+8h] [rbp-18h]
v5 = *(_QWORD *)(a1 + 24);
v4 = *(_DWORD *)(a1 + 64);
inline_mysql_mutex_lock_4(v5 + 24, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c", 0x3C0u);
v2 = *(_QWORD *)(a1 + 8);
**(_QWORD **)(a1 + 16) = v2;
if ( v2 )
{
*(_QWORD *)(*(_QWORD *)(a1 + 8) + 16LL) = *(_QWORD *)(a1 + 16);
}
else if ( v4 > 5 )
{
if ( v4 == 9 && *(_QWORD *)(a1 + 32) )
*(_QWORD *)(v5 + 136) = *(_QWORD *)(a1 + 16);
else
*(_QWORD *)(v5 + 152) = *(_QWORD *)(a1 + 16);
}
else
{
*(_QWORD *)(v5 + 120) = *(_QWORD *)(a1 + 16);
}
if ( (a2 & 1) != 0 )
{
if ( v4 < 8 )
{
if ( *(_QWORD *)(v5 + 200) )
(*(void ( **)(_QWORD))(v5 + 200))(*(_QWORD *)(a1 + 40));
}
else if ( *(_QWORD *)(v5 + 192) )
{
(*(void ( **)(_QWORD))(v5 + 192))(*(_QWORD *)(a1 + 40));
}
}
if ( v4 == 5 )
--*(_DWORD *)(v5 + 168);
*(_DWORD *)(a1 + 64) = 0;
wake_up_waiters(v5);
return inline_mysql_mutex_unlock_4(v5 + 24);
}
| thr_unlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x40]
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x00132427
LAB_00132427:
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x18
LEA RSI,[0x187e6e]
MOV EDX,0x3c0
CALL 0x001321b0
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RCX + 0x10]
MOV qword ptr [RCX],RAX
CMP RAX,0x0
JZ 0x0013246f
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x001324c4
LAB_0013246f:
CMP dword ptr [RBP + -0x1c],0x5
JG 0x00132487
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x78],RCX
JMP 0x001324c2
LAB_00132487:
CMP dword ptr [RBP + -0x1c],0x9
JNZ 0x001324ad
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x20],0x0
JZ 0x001324ad
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x88],RCX
JMP 0x001324c0
LAB_001324ad:
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x98],RCX
LAB_001324c0:
JMP 0x001324c2
LAB_001324c2:
JMP 0x001324c4
LAB_001324c4:
MOV EAX,dword ptr [RBP + -0xc]
AND EAX,0x1
CMP EAX,0x0
JZ 0x00132521
CMP dword ptr [RBP + -0x1c],0x8
JL 0x001324fa
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0xc0],0x0
JZ 0x001324f8
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0xc0]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RCX + 0x28]
CALL RAX
LAB_001324f8:
JMP 0x0013251f
LAB_001324fa:
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0xc8],0x0
JZ 0x0013251d
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0xc8]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RCX + 0x28]
CALL RAX
LAB_0013251d:
JMP 0x0013251f
LAB_0013251f:
JMP 0x00132521
LAB_00132521:
CMP dword ptr [RBP + -0x1c],0x5
JNZ 0x0013253a
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RAX + 0xa8]
ADD ECX,-0x1
MOV dword ptr [RAX + 0xa8],ECX
LAB_0013253a:
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x40],0x0
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00132570
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x18
CALL 0x00132220
JMP 0x0013255d
LAB_0013255d:
ADD RSP,0x20
POP RBP
RET
|
void thr_unlock(long param_1,uint param_2)
{
int iVar1;
long lVar2;
long lVar3;
lVar2 = *(long *)(param_1 + 0x18);
iVar1 = *(int *)(param_1 + 0x40);
inline_mysql_mutex_lock
(lVar2 + 0x18,"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",0x3c0);
lVar3 = *(long *)(param_1 + 8);
**(long **)(param_1 + 0x10) = lVar3;
if (lVar3 == 0) {
if (iVar1 < 6) {
*(int8 *)(lVar2 + 0x78) = *(int8 *)(param_1 + 0x10);
}
else if ((iVar1 == 9) && (*(long *)(param_1 + 0x20) != 0)) {
*(int8 *)(lVar2 + 0x88) = *(int8 *)(param_1 + 0x10);
}
else {
*(int8 *)(lVar2 + 0x98) = *(int8 *)(param_1 + 0x10);
}
}
else {
*(int8 *)(*(long *)(param_1 + 8) + 0x10) = *(int8 *)(param_1 + 0x10);
}
if ((param_2 & 1) != 0) {
if (iVar1 < 8) {
if (*(long *)(lVar2 + 200) != 0) {
(**(code **)(lVar2 + 200))(*(int8 *)(param_1 + 0x28));
}
}
else if (*(long *)(lVar2 + 0xc0) != 0) {
(**(code **)(lVar2 + 0xc0))(*(int8 *)(param_1 + 0x28));
}
}
if (iVar1 == 5) {
*(int *)(lVar2 + 0xa8) = *(int *)(lVar2 + 0xa8) + -1;
}
*(int4 *)(param_1 + 0x40) = 0;
wake_up_waiters(lVar2);
inline_mysql_mutex_unlock(lVar2 + 0x18);
return;
}
| |
22,328 | thr_unlock | eloqsql/mysys/thr_lock.c | void thr_unlock(THR_LOCK_DATA *data, uint unlock_flags)
{
THR_LOCK *lock=data->lock;
enum thr_lock_type lock_type=data->type;
DBUG_ENTER("thr_unlock");
DBUG_PRINT("lock",("data: %p thread: %lu lock: %p",
data, (ulong) data->owner->thread_id,
lock));
mysql_mutex_lock(&lock->mutex);
check_locks(lock,"start of release lock", lock_type, 0);
if (((*data->prev)=data->next)) /* remove from lock-list */
data->next->prev= data->prev;
else if (lock_type <= TL_READ_NO_INSERT)
lock->read.last=data->prev;
else if (lock_type == TL_WRITE_DELAYED && data->cond)
{
/*
This only happens in extreme circumstances when a
write delayed lock that is waiting for a lock
*/
lock->write_wait.last=data->prev; /* Put it on wait queue */
}
else
lock->write.last=data->prev;
if (unlock_flags & THR_UNLOCK_UPDATE_STATUS)
{
/* External lock was not called; Update or restore status */
if (lock_type >= TL_WRITE_CONCURRENT_INSERT)
{
if (lock->update_status)
(*lock->update_status)(data->status_param);
}
else
{
if (lock->restore_status)
(*lock->restore_status)(data->status_param);
}
}
if (lock_type == TL_READ_NO_INSERT)
lock->read_no_write_count--;
data->type=TL_UNLOCK; /* Mark unlocked */
wake_up_waiters(lock);
mysql_mutex_unlock(&lock->mutex);
DBUG_VOID_RETURN;
} | O3 | c | thr_unlock:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %r12d
movq %rdi, %r15
movq 0x18(%rdi), %r14
movl 0x40(%rdi), %r13d
leaq 0x18(%r14), %rbx
cmpq $0x0, 0x58(%r14)
jne 0x2cb96
movq %rbx, %rdi
callq 0x24430
movq 0x8(%r15), %rax
movq 0x10(%r15), %rcx
movq %rax, (%rcx)
testq %rax, %rax
je 0x2caed
movq 0x10(%r15), %rcx
movq %rcx, 0x10(%rax)
jmp 0x2cb28
cmpl $0x5, %r13d
jg 0x2cafd
movq 0x10(%r15), %rax
movq %rax, 0x78(%r14)
jmp 0x2cb28
cmpl $0x9, %r13d
jne 0x2cb1d
cmpq $0x0, 0x20(%r15)
je 0x2cb1d
movq 0x10(%r15), %rax
movq %rax, 0x88(%r14)
testb $0x1, %r12b
jne 0x2cb34
jmp 0x2cb67
movq 0x10(%r15), %rax
movq %rax, 0x98(%r14)
testb $0x1, %r12b
je 0x2cb5a
cmpl $0x8, %r13d
jl 0x2cb48
movq 0xc0(%r14), %rax
testq %rax, %rax
je 0x2cb67
movq 0x28(%r15), %rdi
callq *%rax
jmp 0x2cb67
movq 0xc8(%r14), %rax
testq %rax, %rax
je 0x2cb5a
movq 0x28(%r15), %rdi
callq *%rax
cmpl $0x5, %r13d
jne 0x2cb67
decl 0xa8(%r14)
movl $0x0, 0x40(%r15)
movq %r14, %rdi
callq 0x2cbc1
movq 0x58(%r14), %rdi
testq %rdi, %rdi
jne 0x2cbaf
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x241e0
leaq 0x38241(%rip), %rsi # 0x64dde
movq %rbx, %rdi
movl $0x3c0, %edx # imm = 0x3C0
callq 0x246f2
jmp 0x2cad3
leaq 0x2ccd02(%rip), %rax # 0x2f98b8
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x2cb80
| thr_unlock:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12d, esi
mov r15, rdi
mov r14, [rdi+18h]
mov r13d, [rdi+40h]
lea rbx, [r14+18h]
cmp qword ptr [r14+58h], 0
jnz loc_2CB96
mov rdi, rbx
call _pthread_mutex_lock
loc_2CAD3:
mov rax, [r15+8]
mov rcx, [r15+10h]
mov [rcx], rax
test rax, rax
jz short loc_2CAED
mov rcx, [r15+10h]
mov [rax+10h], rcx
jmp short loc_2CB28
loc_2CAED:
cmp r13d, 5
jg short loc_2CAFD
mov rax, [r15+10h]
mov [r14+78h], rax
jmp short loc_2CB28
loc_2CAFD:
cmp r13d, 9
jnz short loc_2CB1D
cmp qword ptr [r15+20h], 0
jz short loc_2CB1D
mov rax, [r15+10h]
mov [r14+88h], rax
test r12b, 1
jnz short loc_2CB34
jmp short loc_2CB67
loc_2CB1D:
mov rax, [r15+10h]
mov [r14+98h], rax
loc_2CB28:
test r12b, 1
jz short loc_2CB5A
cmp r13d, 8
jl short loc_2CB48
loc_2CB34:
mov rax, [r14+0C0h]
test rax, rax
jz short loc_2CB67
mov rdi, [r15+28h]
call rax
jmp short loc_2CB67
loc_2CB48:
mov rax, [r14+0C8h]
test rax, rax
jz short loc_2CB5A
mov rdi, [r15+28h]
call rax
loc_2CB5A:
cmp r13d, 5
jnz short loc_2CB67
dec dword ptr [r14+0A8h]
loc_2CB67:
mov dword ptr [r15+40h], 0
mov rdi, r14
call wake_up_waiters
mov rdi, [r14+58h]
test rdi, rdi
jnz short loc_2CBAF
loc_2CB80:
mov rdi, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _pthread_mutex_unlock
loc_2CB96:
lea rsi, aWorkspaceLlm4b_4; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, rbx
mov edx, 3C0h
call psi_mutex_lock
jmp loc_2CAD3
loc_2CBAF:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_2CB80
| long long thr_unlock(long long a1, char a2)
{
long long v2; // r14
int v3; // r13d
long long v4; // rax
void ( *v5)(_QWORD); // rax
void ( *v6)(_QWORD); // rax
long long v7; // rdi
v2 = *(_QWORD *)(a1 + 24);
v3 = *(_DWORD *)(a1 + 64);
if ( *(_QWORD *)(v2 + 88) )
psi_mutex_lock(v2 + 24, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c", 0x3C0u);
else
pthread_mutex_lock(v2 + 24);
v4 = *(_QWORD *)(a1 + 8);
**(_QWORD **)(a1 + 16) = v4;
if ( v4 )
{
*(_QWORD *)(v4 + 16) = *(_QWORD *)(a1 + 16);
}
else if ( v3 > 5 )
{
if ( v3 == 9 && *(_QWORD *)(a1 + 32) )
{
*(_QWORD *)(v2 + 136) = *(_QWORD *)(a1 + 16);
if ( (a2 & 1) == 0 )
goto LABEL_20;
goto LABEL_14;
}
*(_QWORD *)(v2 + 152) = *(_QWORD *)(a1 + 16);
}
else
{
*(_QWORD *)(v2 + 120) = *(_QWORD *)(a1 + 16);
}
if ( (a2 & 1) != 0 )
{
if ( v3 >= 8 )
{
LABEL_14:
v5 = *(void ( **)(_QWORD))(v2 + 192);
if ( v5 )
v5(*(_QWORD *)(a1 + 40));
goto LABEL_20;
}
v6 = *(void ( **)(_QWORD))(v2 + 200);
if ( v6 )
v6(*(_QWORD *)(a1 + 40));
}
if ( v3 == 5 )
--*(_DWORD *)(v2 + 168);
LABEL_20:
*(_DWORD *)(a1 + 64) = 0;
wake_up_waiters(v2);
v7 = *(_QWORD *)(v2 + 88);
if ( v7 )
(*((void ( **)(long long))PSI_server[0] + 44))(v7);
return pthread_mutex_unlock(v2 + 24);
}
| thr_unlock:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12D,ESI
MOV R15,RDI
MOV R14,qword ptr [RDI + 0x18]
MOV R13D,dword ptr [RDI + 0x40]
LEA RBX,[R14 + 0x18]
CMP qword ptr [R14 + 0x58],0x0
JNZ 0x0012cb96
MOV RDI,RBX
CALL 0x00124430
LAB_0012cad3:
MOV RAX,qword ptr [R15 + 0x8]
MOV RCX,qword ptr [R15 + 0x10]
MOV qword ptr [RCX],RAX
TEST RAX,RAX
JZ 0x0012caed
MOV RCX,qword ptr [R15 + 0x10]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x0012cb28
LAB_0012caed:
CMP R13D,0x5
JG 0x0012cafd
MOV RAX,qword ptr [R15 + 0x10]
MOV qword ptr [R14 + 0x78],RAX
JMP 0x0012cb28
LAB_0012cafd:
CMP R13D,0x9
JNZ 0x0012cb1d
CMP qword ptr [R15 + 0x20],0x0
JZ 0x0012cb1d
MOV RAX,qword ptr [R15 + 0x10]
MOV qword ptr [R14 + 0x88],RAX
TEST R12B,0x1
JNZ 0x0012cb34
JMP 0x0012cb67
LAB_0012cb1d:
MOV RAX,qword ptr [R15 + 0x10]
MOV qword ptr [R14 + 0x98],RAX
LAB_0012cb28:
TEST R12B,0x1
JZ 0x0012cb5a
CMP R13D,0x8
JL 0x0012cb48
LAB_0012cb34:
MOV RAX,qword ptr [R14 + 0xc0]
TEST RAX,RAX
JZ 0x0012cb67
MOV RDI,qword ptr [R15 + 0x28]
CALL RAX
JMP 0x0012cb67
LAB_0012cb48:
MOV RAX,qword ptr [R14 + 0xc8]
TEST RAX,RAX
JZ 0x0012cb5a
MOV RDI,qword ptr [R15 + 0x28]
CALL RAX
LAB_0012cb5a:
CMP R13D,0x5
JNZ 0x0012cb67
DEC dword ptr [R14 + 0xa8]
LAB_0012cb67:
MOV dword ptr [R15 + 0x40],0x0
MOV RDI,R14
CALL 0x0012cbc1
MOV RDI,qword ptr [R14 + 0x58]
TEST RDI,RDI
JNZ 0x0012cbaf
LAB_0012cb80:
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001241e0
LAB_0012cb96:
LEA RSI,[0x164dde]
MOV RDI,RBX
MOV EDX,0x3c0
CALL 0x001246f2
JMP 0x0012cad3
LAB_0012cbaf:
LEA RAX,[0x3f98b8]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0012cb80
|
void thr_unlock(long param_1,uint param_2)
{
pthread_mutex_t *__mutex;
int iVar1;
long lVar2;
long lVar3;
lVar2 = *(long *)(param_1 + 0x18);
iVar1 = *(int *)(param_1 + 0x40);
__mutex = (pthread_mutex_t *)(lVar2 + 0x18);
if (*(long *)(lVar2 + 0x58) == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",0x3c0);
}
lVar3 = *(long *)(param_1 + 8);
**(long **)(param_1 + 0x10) = lVar3;
if (lVar3 == 0) {
if (iVar1 < 6) {
*(int8 *)(lVar2 + 0x78) = *(int8 *)(param_1 + 0x10);
goto LAB_0012cb28;
}
if ((iVar1 != 9) || (*(long *)(param_1 + 0x20) == 0)) {
*(int8 *)(lVar2 + 0x98) = *(int8 *)(param_1 + 0x10);
goto LAB_0012cb28;
}
*(int8 *)(lVar2 + 0x88) = *(int8 *)(param_1 + 0x10);
if ((param_2 & 1) == 0) goto LAB_0012cb67;
LAB_0012cb34:
if (*(code **)(lVar2 + 0xc0) != (code *)0x0) {
(**(code **)(lVar2 + 0xc0))(*(int8 *)(param_1 + 0x28));
}
}
else {
*(int8 *)(lVar3 + 0x10) = *(int8 *)(param_1 + 0x10);
LAB_0012cb28:
if ((param_2 & 1) != 0) {
if (7 < iVar1) goto LAB_0012cb34;
if (*(code **)(lVar2 + 200) != (code *)0x0) {
(**(code **)(lVar2 + 200))(*(int8 *)(param_1 + 0x28));
}
}
if (iVar1 == 5) {
*(int *)(lVar2 + 0xa8) = *(int *)(lVar2 + 0xa8) + -1;
}
}
LAB_0012cb67:
*(int4 *)(param_1 + 0x40) = 0;
wake_up_waiters(lVar2);
if (*(long *)(lVar2 + 0x58) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
return;
}
| |
22,329 | thr_multi_lock | eloqsql/mysys/thr_lock.c | enum enum_thr_lock_result
thr_multi_lock(THR_LOCK_DATA **data, uint count, THR_LOCK_INFO *owner,
ulong lock_wait_timeout)
{
THR_LOCK_DATA **pos, **end, **first_lock;
DBUG_ENTER("thr_multi_lock");
DBUG_PRINT("lock",("data: %p count: %d", data, count));
if (count > 1)
sort_locks(data,count);
else if (count == 0)
DBUG_RETURN(THR_LOCK_SUCCESS);
/* lock everything */
DEBUG_SYNC_C("thr_multi_lock_before_thr_lock");
for (pos=data,end=data+count; pos < end ; pos++)
{
enum enum_thr_lock_result result= thr_lock(*pos, owner, lock_wait_timeout);
if (result != THR_LOCK_SUCCESS)
{ /* Aborted */
thr_multi_unlock(data,(uint) (pos-data), 0);
/* Mark all requested locks as TL_UNLOCK (to simplify lock checking) */
for ( ; pos < end ; pos++)
(*pos)->type= TL_UNLOCK;
DBUG_RETURN(result);
}
#ifdef MAIN
printf("Thread: %s Got lock:%p type: %d\n",my_thread_name(),
pos[0]->lock, pos[0]->type); fflush(stdout);
#endif
}
DEBUG_SYNC_C("thr_multi_lock_after_thr_lock");
/*
Call start_trans for all locks.
If we lock the same table multiple times, we must use the same
status_param; We ensure this by calling copy_status() for all
copies of the same tables.
*/
if ((*data)->lock->start_trans)
((*data)->lock->start_trans)((*data)->status_param);
for (first_lock=data, pos= data+1 ; pos < end ; pos++)
{
/* Get the current status (row count, checksum, trid etc) */
if ((*pos)->lock->start_trans)
(*(*pos)->lock->start_trans)((*pos)->status_param);
/*
If same table as previous table use pointer to previous status
information to ensure that all read/write tables shares same
state.
*/
if (pos[0]->lock == pos[-1]->lock && pos[0]->lock->copy_status)
(pos[0]->lock->copy_status)((*pos)->status_param,
(*first_lock)->status_param);
else
{
/* Different lock, use this as base for next lock */
first_lock= pos;
}
}
DBUG_RETURN(THR_LOCK_SUCCESS);
} | O0 | c | thr_multi_lock:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
jmp 0xf80d9
cmpl $0x1, -0x14(%rbp)
jbe 0xf80ed
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xf82c0
jmp 0xf8103
cmpl $0x0, -0x14(%rbp)
jne 0xf8101
jmp 0xf80f5
movl $0x0, -0x4(%rbp)
jmp 0xf82b6
jmp 0xf8103
jmp 0xf8105
jmp 0xf8107
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0xf81aa
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0xf8390
movl %eax, -0x44(%rbp)
cmpl $0x0, -0x44(%rbp)
je 0xf8197
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
subq %rcx, %rax
sarq $0x3, %rax
movl %eax, %esi
xorl %edx, %edx
callq 0xf8a50
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0xf818a
movq -0x30(%rbp), %rax
movq (%rax), %rax
movl $0x0, 0x40(%rax)
movq -0x30(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x30(%rbp)
jmp 0xf8164
jmp 0xf818c
movl -0x44(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xf82b6
jmp 0xf8199
movq -0x30(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x30(%rbp)
jmp 0xf8121
jmp 0xf81ac
jmp 0xf81ae
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0xd0(%rax)
je 0xf81e2
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
movq 0xd0(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
movq 0x28(%rcx), %rdi
callq *%rax
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0xf82ad
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0xd0(%rax)
je 0xf8238
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
movq 0xd0(%rax), %rax
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
movq 0x28(%rcx), %rdi
callq *%rax
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
movq -0x30(%rbp), %rcx
movq -0x8(%rcx), %rcx
cmpq 0x18(%rcx), %rax
jne 0xf8292
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0xb8(%rax)
je 0xf8292
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
movq 0xb8(%rax), %rax
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
movq 0x28(%rcx), %rdi
movq -0x40(%rbp), %rcx
movq (%rcx), %rcx
movq 0x28(%rcx), %rsi
callq *%rax
jmp 0xf829a
movq -0x30(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0xf829c
movq -0x30(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x30(%rbp)
jmp 0xf81f6
jmp 0xf82af
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nop
| thr_multi_lock:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
jmp short $+2
loc_F80D9:
cmp [rbp+var_14], 1
jbe short loc_F80ED
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
call sort_locks
jmp short loc_F8103
loc_F80ED:
cmp [rbp+var_14], 0
jnz short loc_F8101
jmp short $+2
loc_F80F5:
mov [rbp+var_4], 0
jmp loc_F82B6
loc_F8101:
jmp short $+2
loc_F8103:
jmp short $+2
loc_F8105:
jmp short $+2
loc_F8107:
mov rax, [rbp+var_10]
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
mov ecx, [rbp+var_14]
shl rcx, 3
add rax, rcx
mov [rbp+var_38], rax
loc_F8121:
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jnb short loc_F81AA
mov rax, [rbp+var_30]
mov rdi, [rax]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
call thr_lock
mov [rbp+var_44], eax
cmp [rbp+var_44], 0
jz short loc_F8197
mov rdi, [rbp+var_10]
mov rax, [rbp+var_30]
mov rcx, [rbp+var_10]
sub rax, rcx
sar rax, 3
mov esi, eax
xor edx, edx
call thr_multi_unlock
loc_F8164:
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jnb short loc_F818A
mov rax, [rbp+var_30]
mov rax, [rax]
mov dword ptr [rax+40h], 0
mov rax, [rbp+var_30]
add rax, 8
mov [rbp+var_30], rax
jmp short loc_F8164
loc_F818A:
jmp short $+2
loc_F818C:
mov eax, [rbp+var_44]
mov [rbp+var_4], eax
jmp loc_F82B6
loc_F8197:
jmp short $+2
loc_F8199:
mov rax, [rbp+var_30]
add rax, 8
mov [rbp+var_30], rax
jmp loc_F8121
loc_F81AA:
jmp short $+2
loc_F81AC:
jmp short $+2
loc_F81AE:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+18h]
cmp qword ptr [rax+0D0h], 0
jz short loc_F81E2
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+18h]
mov rax, [rax+0D0h]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
mov rdi, [rcx+28h]
call rax
loc_F81E2:
mov rax, [rbp+var_10]
mov [rbp+var_40], rax
mov rax, [rbp+var_10]
add rax, 8
mov [rbp+var_30], rax
loc_F81F6:
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jnb loc_F82AD
mov rax, [rbp+var_30]
mov rax, [rax]
mov rax, [rax+18h]
cmp qword ptr [rax+0D0h], 0
jz short loc_F8238
mov rax, [rbp+var_30]
mov rax, [rax]
mov rax, [rax+18h]
mov rax, [rax+0D0h]
mov rcx, [rbp+var_30]
mov rcx, [rcx]
mov rdi, [rcx+28h]
call rax
loc_F8238:
mov rax, [rbp+var_30]
mov rax, [rax]
mov rax, [rax+18h]
mov rcx, [rbp+var_30]
mov rcx, [rcx-8]
cmp rax, [rcx+18h]
jnz short loc_F8292
mov rax, [rbp+var_30]
mov rax, [rax]
mov rax, [rax+18h]
cmp qword ptr [rax+0B8h], 0
jz short loc_F8292
mov rax, [rbp+var_30]
mov rax, [rax]
mov rax, [rax+18h]
mov rax, [rax+0B8h]
mov rcx, [rbp+var_30]
mov rcx, [rcx]
mov rdi, [rcx+28h]
mov rcx, [rbp+var_40]
mov rcx, [rcx]
mov rsi, [rcx+28h]
call rax
jmp short loc_F829A
loc_F8292:
mov rax, [rbp+var_30]
mov [rbp+var_40], rax
loc_F829A:
jmp short $+2
loc_F829C:
mov rax, [rbp+var_30]
add rax, 8
mov [rbp+var_30], rax
jmp loc_F81F6
loc_F82AD:
jmp short $+2
loc_F82AF:
mov [rbp+var_4], 0
loc_F82B6:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
| long long thr_multi_lock(_QWORD *a1, unsigned int a2, long long a3, long long a4)
{
unsigned int v5; // [rsp+Ch] [rbp-44h]
_QWORD *v6; // [rsp+10h] [rbp-40h]
unsigned long long v7; // [rsp+18h] [rbp-38h]
_QWORD *v8; // [rsp+20h] [rbp-30h]
_QWORD *i; // [rsp+20h] [rbp-30h]
if ( a2 <= 1 )
{
if ( !a2 )
return 0;
}
else
{
sort_locks(a1, a2);
}
v8 = a1;
v7 = (unsigned long long)&a1[a2];
while ( (unsigned long long)v8 < v7 )
{
v5 = thr_lock(*v8, a3, a4);
if ( v5 )
{
thr_multi_unlock(a1, (unsigned int)(v8 - a1), 0LL);
while ( (unsigned long long)v8 < v7 )
*(_DWORD *)(*v8++ + 64LL) = 0;
return v5;
}
++v8;
}
if ( *(_QWORD *)(*(_QWORD *)(*a1 + 24LL) + 208LL) )
(*(void ( **)(_QWORD))(*(_QWORD *)(*a1 + 24LL) + 208LL))(*(_QWORD *)(*a1 + 40LL));
v6 = a1;
for ( i = a1 + 1; (unsigned long long)i < v7; ++i )
{
if ( *(_QWORD *)(*(_QWORD *)(*i + 24LL) + 208LL) )
(*(void ( **)(_QWORD))(*(_QWORD *)(*i + 24LL) + 208LL))(*(_QWORD *)(*i + 40LL));
if ( *(_QWORD *)(*i + 24LL) == *(_QWORD *)(*(i - 1) + 24LL) && *(_QWORD *)(*(_QWORD *)(*i + 24LL) + 184LL) )
(*(void ( **)(_QWORD, _QWORD))(*(_QWORD *)(*i + 24LL) + 184LL))(
*(_QWORD *)(*i + 40LL),
*(_QWORD *)(*v6 + 40LL));
else
v6 = i;
}
return 0;
}
| thr_multi_lock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
JMP 0x001f80d9
LAB_001f80d9:
CMP dword ptr [RBP + -0x14],0x1
JBE 0x001f80ed
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
CALL 0x001f82c0
JMP 0x001f8103
LAB_001f80ed:
CMP dword ptr [RBP + -0x14],0x0
JNZ 0x001f8101
JMP 0x001f80f5
LAB_001f80f5:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001f82b6
LAB_001f8101:
JMP 0x001f8103
LAB_001f8103:
JMP 0x001f8105
LAB_001f8105:
JMP 0x001f8107
LAB_001f8107:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
LAB_001f8121:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x001f81aa
MOV RAX,qword ptr [RBP + -0x30]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x001f8390
MOV dword ptr [RBP + -0x44],EAX
CMP dword ptr [RBP + -0x44],0x0
JZ 0x001f8197
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x10]
SUB RAX,RCX
SAR RAX,0x3
MOV ESI,EAX
XOR EDX,EDX
CALL 0x001f8a50
LAB_001f8164:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x001f818a
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV dword ptr [RAX + 0x40],0x0
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x8
MOV qword ptr [RBP + -0x30],RAX
JMP 0x001f8164
LAB_001f818a:
JMP 0x001f818c
LAB_001f818c:
MOV EAX,dword ptr [RBP + -0x44]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001f82b6
LAB_001f8197:
JMP 0x001f8199
LAB_001f8199:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x8
MOV qword ptr [RBP + -0x30],RAX
JMP 0x001f8121
LAB_001f81aa:
JMP 0x001f81ac
LAB_001f81ac:
JMP 0x001f81ae
LAB_001f81ae:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x18]
CMP qword ptr [RAX + 0xd0],0x0
JZ 0x001f81e2
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RAX + 0xd0]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
MOV RDI,qword ptr [RCX + 0x28]
CALL RAX
LAB_001f81e2:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x8
MOV qword ptr [RBP + -0x30],RAX
LAB_001f81f6:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x001f82ad
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x18]
CMP qword ptr [RAX + 0xd0],0x0
JZ 0x001f8238
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RAX + 0xd0]
MOV RCX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RCX]
MOV RDI,qword ptr [RCX + 0x28]
CALL RAX
LAB_001f8238:
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RCX + -0x8]
CMP RAX,qword ptr [RCX + 0x18]
JNZ 0x001f8292
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x18]
CMP qword ptr [RAX + 0xb8],0x0
JZ 0x001f8292
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RCX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RCX]
MOV RDI,qword ptr [RCX + 0x28]
MOV RCX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RCX]
MOV RSI,qword ptr [RCX + 0x28]
CALL RAX
JMP 0x001f829a
LAB_001f8292:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x40],RAX
LAB_001f829a:
JMP 0x001f829c
LAB_001f829c:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x8
MOV qword ptr [RBP + -0x30],RAX
JMP 0x001f81f6
LAB_001f82ad:
JMP 0x001f82af
LAB_001f82af:
MOV dword ptr [RBP + -0x4],0x0
LAB_001f82b6:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
int thr_multi_lock(long *param_1,uint param_2,int8 param_3,int8 param_4)
{
int iVar1;
long *plVar2;
long *local_48;
long *local_38;
if (param_2 < 2) {
if (param_2 == 0) {
return 0;
}
}
else {
sort_locks(param_1,param_2);
}
plVar2 = param_1 + param_2;
local_38 = param_1;
while( true ) {
if (plVar2 <= local_38) {
if (*(long *)(*(long *)(*param_1 + 0x18) + 0xd0) != 0) {
(**(code **)(*(long *)(*param_1 + 0x18) + 0xd0))(*(int8 *)(*param_1 + 0x28));
}
local_48 = param_1;
for (local_38 = param_1 + 1; local_38 < plVar2; local_38 = local_38 + 1) {
if (*(long *)(*(long *)(*local_38 + 0x18) + 0xd0) != 0) {
(**(code **)(*(long *)(*local_38 + 0x18) + 0xd0))(*(int8 *)(*local_38 + 0x28));
}
if ((*(long *)(*local_38 + 0x18) == *(long *)(local_38[-1] + 0x18)) &&
(*(long *)(*(long *)(*local_38 + 0x18) + 0xb8) != 0)) {
(**(code **)(*(long *)(*local_38 + 0x18) + 0xb8))
(*(int8 *)(*local_38 + 0x28),*(int8 *)(*local_48 + 0x28));
}
else {
local_48 = local_38;
}
}
return 0;
}
iVar1 = thr_lock(*local_38,param_3,param_4);
if (iVar1 != 0) break;
local_38 = local_38 + 1;
}
thr_multi_unlock(param_1,(long)local_38 - (long)param_1 >> 3 & 0xffffffff,0);
for (; local_38 < plVar2; local_38 = local_38 + 1) {
*(int4 *)(*local_38 + 0x40) = 0;
}
return iVar1;
}
| |
22,330 | intx::reciprocal_2by1(unsigned long) | corpus-core[P]colibri-stateless/build_O0/_deps/intx-src/include/intx/intx.hpp | inline uint64_t reciprocal_2by1(uint64_t d) noexcept
{
INTX_REQUIRE(d & 0x8000000000000000); // Must be normalized.
const uint64_t d9 = d >> 55;
const uint32_t v0 = internal::reciprocal_table[d9 - 256];
const uint64_t d40 = (d >> 24) + 1;
const uint64_t v1 = (v0 << 11) - uint32_t(uint32_t{v0 * v0} * d40 >> 40) - 1;
const uint64_t v2 = (v1 << 13) + (v1 * (0x1000000000000000 - v1 * d40) >> 47);
const uint64_t d0 = d & 1;
const uint64_t d63 = (d >> 1) + d0; // ceil(d/2)
const uint64_t e = ((v2 >> 1) & (0 - d0)) - v2 * d63;
const uint64_t v3 = (umul(v2, e)[1] >> 1) + (v2 << 31);
const uint64_t v4 = v3 - (umul(v3, d) + d)[1] - d;
return v4;
} | O0 | cpp | intx::reciprocal_2by1(unsigned long):
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
andq -0x8(%rbp), %rax
cmpq $0x0, %rax
je 0x62fb5
jmp 0x62fd4
leaq 0x7c7de(%rip), %rdi # 0xdf79a
leaq 0x7c6e5(%rip), %rsi # 0xdf6a8
movl $0x274, %edx # imm = 0x274
leaq 0x7c7e2(%rip), %rcx # 0xdf7b1
callq 0x23120
movq -0x8(%rbp), %rax
shrq $0x37, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rcx
subq $0x100, %rcx # imm = 0x100
leaq 0x7bd9e(%rip), %rax # 0xded90
movzwl (%rax,%rcx,2), %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
shrq $0x18, %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movl -0x14(%rbp), %eax
shll $0xb, %eax
movl -0x14(%rbp), %ecx
imull -0x14(%rbp), %ecx
movl %ecx, %ecx
imulq -0x20(%rbp), %rcx
shrq $0x28, %rcx
subl %ecx, %eax
subl $0x1, %eax
movl %eax, %eax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
shlq $0xd, %rax
movq -0x28(%rbp), %rcx
movq -0x28(%rbp), %rsi
imulq -0x20(%rbp), %rsi
movabsq $0x1000000000000000, %rdx # imm = 0x1000000000000000
subq %rsi, %rdx
imulq %rdx, %rcx
shrq $0x2f, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
andq $0x1, %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
shrq %rax
addq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x30(%rbp), %rax
shrq %rax
xorl %ecx, %ecx
subq -0x38(%rbp), %rcx
andq %rcx, %rax
movq -0x30(%rbp), %rcx
imulq -0x40(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x61720
movq %rax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
leaq -0x60(%rbp), %rdi
movl $0x1, %esi
callq 0x617a0
movq (%rax), %rax
shrq %rax
movq -0x30(%rbp), %rcx
shlq $0x1f, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x50(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x61720
movq %rax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movq -0x8(%rbp), %rsi
leaq -0x98(%rbp), %rdi
callq 0x633c0
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq -0x98(%rbp), %rdx
movq -0x90(%rbp), %rcx
callq 0x616d0
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
leaq -0x78(%rbp), %rdi
movl $0x1, %esi
callq 0x617a0
movq %rax, %rcx
movq -0xa0(%rbp), %rax
subq (%rcx), %rax
subq -0x8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
nopl (%rax)
| _ZN4intx15reciprocal_2by1Em:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov [rbp+var_8], rdi
mov rax, 8000000000000000h
and rax, [rbp+var_8]
cmp rax, 0
jz short loc_62FB5
jmp short loc_62FD4
loc_62FB5:
lea rdi, aD0x80000000000; "d & 0x8000000000000000"
lea rsi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"...
mov edx, 274h
lea rcx, aUint64TIntxRec; "uint64_t intx::reciprocal_2by1(uint64_t"...
call ___assert_fail
loc_62FD4:
mov rax, [rbp+var_8]
shr rax, 37h
mov [rbp+var_10], rax
mov rcx, [rbp+var_10]
sub rcx, 100h
lea rax, _ZN4intx8internalL16reciprocal_tableE; intx::internal::reciprocal_table
movzx eax, word ptr [rax+rcx*2]
mov [rbp+var_14], eax
mov rax, [rbp+var_8]
shr rax, 18h
add rax, 1
mov [rbp+var_20], rax
mov eax, [rbp+var_14]
shl eax, 0Bh
mov ecx, [rbp+var_14]
imul ecx, [rbp+var_14]
mov ecx, ecx
imul rcx, [rbp+var_20]
shr rcx, 28h
sub eax, ecx
sub eax, 1
mov eax, eax
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
shl rax, 0Dh
mov rcx, [rbp+var_28]
mov rsi, [rbp+var_28]
imul rsi, [rbp+var_20]
mov rdx, 1000000000000000h
sub rdx, rsi; unsigned __int64
imul rcx, rdx
shr rcx, 2Fh
add rax, rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_8]
and rax, 1
mov [rbp+var_38], rax
mov rax, [rbp+var_8]
shr rax, 1
add rax, [rbp+var_38]
mov [rbp+var_40], rax
mov rax, [rbp+var_30]
shr rax, 1
xor ecx, ecx
sub rcx, [rbp+var_38]
and rax, rcx
mov rcx, [rbp+var_30]
imul rcx, [rbp+var_40]
sub rax, rcx
mov [rbp+var_48], rax
mov rdi, [rbp+var_30]; this
mov rsi, [rbp+var_48]; unsigned __int64
call _ZN4intx4umulEmm; intx::umul(ulong,ulong)
mov [rbp+var_60], rax
mov [rbp+var_58], rdx
lea rdi, [rbp+var_60]
mov esi, 1
call _ZN4intx4uintILj128EEixEm; intx::uint<128u>::operator[](ulong)
mov rax, [rax]
shr rax, 1
mov rcx, [rbp+var_30]
shl rcx, 1Fh
add rax, rcx
mov [rbp+var_50], rax
mov rax, [rbp+var_50]
mov [rbp+var_A0], rax
mov rdi, [rbp+var_50]; this
mov rsi, [rbp+var_8]; unsigned __int64
call _ZN4intx4umulEmm; intx::umul(ulong,ulong)
mov [rbp+var_88], rax
mov [rbp+var_80], rdx
mov rsi, [rbp+var_8]
lea rdi, [rbp+var_98]
call _ZN4intx4uintILj128EEC2ImvEET_; intx::uint<128u>::uint<ulong,void>(ulong)
mov rdi, [rbp+var_88]
mov rsi, [rbp+var_80]
mov rdx, [rbp+var_98]
mov rcx, [rbp+var_90]
call _ZN4intxplENS_4uintILj128EEES1_; intx::operator+(intx::uint<128u>,intx::uint<128u>)
mov [rbp+var_78], rax
mov [rbp+var_70], rdx
lea rdi, [rbp+var_78]
mov esi, 1
call _ZN4intx4uintILj128EEixEm; intx::uint<128u>::operator[](ulong)
mov rcx, rax
mov rax, [rbp+var_A0]
sub rax, [rcx]
sub rax, [rbp+var_8]
mov [rbp+var_68], rax
mov rax, [rbp+var_68]
add rsp, 0A0h
pop rbp
retn
| unsigned long long intx::reciprocal_2by1(intx *this)
{
long long v1; // rdx
_QWORD *v2; // rax
long long v3; // rdx
long long v4; // rdx
_QWORD *v5; // rax
intx *v7; // [rsp+0h] [rbp-A0h]
long long v8[2]; // [rsp+8h] [rbp-98h] BYREF
long long v9; // [rsp+18h] [rbp-88h]
long long v10; // [rsp+20h] [rbp-80h]
_QWORD v11[2]; // [rsp+28h] [rbp-78h] BYREF
_QWORD v12[2]; // [rsp+40h] [rbp-60h] BYREF
intx *v13; // [rsp+50h] [rbp-50h]
unsigned long long v14; // [rsp+58h] [rbp-48h]
unsigned long long v15; // [rsp+60h] [rbp-40h]
unsigned long long v16; // [rsp+68h] [rbp-38h]
intx *v17; // [rsp+70h] [rbp-30h]
long long v18; // [rsp+78h] [rbp-28h]
unsigned long long v19; // [rsp+80h] [rbp-20h]
int v20; // [rsp+8Ch] [rbp-14h]
unsigned long long v21; // [rsp+90h] [rbp-10h]
unsigned long long v22; // [rsp+98h] [rbp-8h]
v22 = (unsigned long long)this;
if ( (long long)this >= 0 )
__assert_fail(
"d & 0x8000000000000000",
"/workspace/llm4binary/github/2025_star3/corpus-core[P]colibri-stateless/build_O0/_deps/intx-src/include/intx/intx.hpp",
628LL,
"uint64_t intx::reciprocal_2by1(uint64_t)");
v21 = v22 >> 55;
v20 = intx::internal::reciprocal_table[(v22 >> 55) - 256];
v19 = (v22 >> 24) + 1;
v18 = (v20 << 11) - ((unsigned int)((v19 * (unsigned int)(v20 * v20)) >> 32) >> 8) - 1;
v17 = (intx *)((((0x1000000000000000LL - v19 * v18) * v18) >> 47) + (v18 << 13));
v16 = v22 & 1;
v15 = v16 + (v22 >> 1);
v14 = (-(long long)v16 & ((unsigned long long)v17 >> 1)) - v15 * (_QWORD)v17;
v12[0] = intx::umul((unsigned long long)v17, v14);
v12[1] = v1;
v2 = (_QWORD *)intx::uint<128u>::operator[]((long long)v12, 1LL);
v13 = (intx *)(((_QWORD)v17 << 31) + (*v2 >> 1));
v7 = v13;
v9 = intx::umul((unsigned long long)v13, v22);
v10 = v3;
intx::uint<128u>::uint<unsigned long,void>(v8, v22);
v11[0] = intx::operator+(v9, v10, v8[0], v8[1]);
v11[1] = v4;
v5 = (_QWORD *)intx::uint<128u>::operator[]((long long)v11, 1LL);
return (unsigned long long)v7 - *v5 - v22;
}
| reciprocal_2by1:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,-0x8000000000000000
AND RAX,qword ptr [RBP + -0x8]
CMP RAX,0x0
JZ 0x00162fb5
JMP 0x00162fd4
LAB_00162fb5:
LEA RDI,[0x1df79a]
LEA RSI,[0x1df6a8]
MOV EDX,0x274
LEA RCX,[0x1df7b1]
CALL 0x00123120
LAB_00162fd4:
MOV RAX,qword ptr [RBP + -0x8]
SHR RAX,0x37
MOV qword ptr [RBP + -0x10],RAX
MOV RCX,qword ptr [RBP + -0x10]
SUB RCX,0x100
LEA RAX,[0x1ded90]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV dword ptr [RBP + -0x14],EAX
MOV RAX,qword ptr [RBP + -0x8]
SHR RAX,0x18
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
MOV EAX,dword ptr [RBP + -0x14]
SHL EAX,0xb
MOV ECX,dword ptr [RBP + -0x14]
IMUL ECX,dword ptr [RBP + -0x14]
MOV ECX,ECX
IMUL RCX,qword ptr [RBP + -0x20]
SHR RCX,0x28
SUB EAX,ECX
SUB EAX,0x1
MOV EAX,EAX
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
SHL RAX,0xd
MOV RCX,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x28]
IMUL RSI,qword ptr [RBP + -0x20]
MOV RDX,0x1000000000000000
SUB RDX,RSI
IMUL RCX,RDX
SHR RCX,0x2f
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x8]
AND RAX,0x1
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x8]
SHR RAX,0x1
ADD RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x30]
SHR RAX,0x1
XOR ECX,ECX
SUB RCX,qword ptr [RBP + -0x38]
AND RAX,RCX
MOV RCX,qword ptr [RBP + -0x30]
IMUL RCX,qword ptr [RBP + -0x40]
SUB RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x48]
CALL 0x00161720
MOV qword ptr [RBP + -0x60],RAX
MOV qword ptr [RBP + -0x58],RDX
LEA RDI,[RBP + -0x60]
MOV ESI,0x1
CALL 0x001617a0
MOV RAX,qword ptr [RAX]
SHR RAX,0x1
MOV RCX,qword ptr [RBP + -0x30]
SHL RCX,0x1f
ADD RAX,RCX
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0xa0],RAX
MOV RDI,qword ptr [RBP + -0x50]
MOV RSI,qword ptr [RBP + -0x8]
CALL 0x00161720
MOV qword ptr [RBP + -0x88],RAX
MOV qword ptr [RBP + -0x80],RDX
MOV RSI,qword ptr [RBP + -0x8]
LEA RDI,[RBP + -0x98]
CALL 0x001633c0
MOV RDI,qword ptr [RBP + -0x88]
MOV RSI,qword ptr [RBP + -0x80]
MOV RDX,qword ptr [RBP + -0x98]
MOV RCX,qword ptr [RBP + -0x90]
CALL 0x001616d0
MOV qword ptr [RBP + -0x78],RAX
MOV qword ptr [RBP + -0x70],RDX
LEA RDI,[RBP + -0x78]
MOV ESI,0x1
CALL 0x001617a0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0xa0]
SUB RAX,qword ptr [RCX]
SUB RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x68]
ADD RSP,0xa0
POP RBP
RET
|
/* intx::reciprocal_2by1(unsigned long) */
long intx::reciprocal_2by1(ulong param_1)
{
ulong *puVar1;
ulong uVar2;
long *plVar3;
int8 local_a0;
int8 local_98;
int1 local_90 [16];
uint<128u> local_80 [24];
uint<128u> local_68 [16];
ulong local_58;
ulong local_50;
long local_48;
ulong local_40;
ulong local_38;
ulong local_30;
long local_28;
uint local_1c;
ulong local_18;
ulong local_10;
local_10 = param_1;
if ((param_1 & 0x8000000000000000) != 0) {
local_18 = param_1 >> 0x37;
local_1c = (uint)*(ushort *)(internal::reciprocal_table + (local_18 - 0x100) * 2);
local_28 = (param_1 >> 0x18) + 1;
local_30 = (ulong)((local_1c * 0x800 - (uint)((ulong)(local_1c * local_1c) * local_28 >> 0x28))
- 1);
local_38 = local_30 * 0x2000 + (local_30 * (0x1000000000000000 - local_30 * local_28) >> 0x2f);
local_40 = param_1 & 1;
local_48 = (param_1 >> 1) + local_40;
local_50 = (local_38 >> 1 & -local_40) - local_38 * local_48;
local_68 = (uint<128u> [16])umul(local_38,local_50);
puVar1 = (ulong *)uint<128u>::operator[](local_68,1);
uVar2 = (*puVar1 >> 1) + local_38 * 0x80000000;
local_58 = uVar2;
local_90 = umul(uVar2,local_10);
uint<128u>::uint<unsigned_long,void>((uint<128u> *)&local_a0,local_10);
local_80._0_16_ = operator+(local_90._0_8_,local_90._8_8_,local_a0,local_98);
plVar3 = (long *)uint<128u>::operator[](local_80,1);
return (uVar2 - *plVar3) - local_10;
}
/* WARNING: Subroutine does not return */
__assert_fail("d & 0x8000000000000000",
"/workspace/llm4binary/github/2025_star3/corpus-core[P]colibri-stateless/build_O0/_deps/intx-src/include/intx/intx.hpp"
,0x274,"uint64_t intx::reciprocal_2by1(uint64_t)");
}
| |
22,331 | js_async_generator_function_call | bluesky950520[P]quickjs/quickjs.c | static JSValue js_async_generator_function_call(JSContext *ctx, JSValue func_obj,
JSValue this_obj,
int argc, JSValue *argv,
int flags)
{
JSValue obj, func_ret;
JSAsyncGeneratorData *s;
s = js_mallocz(ctx, sizeof(*s));
if (!s)
return JS_EXCEPTION;
s->state = JS_ASYNC_GENERATOR_STATE_SUSPENDED_START;
init_list_head(&s->queue);
if (async_func_init(ctx, &s->func_state, func_obj, this_obj, argc, argv)) {
s->state = JS_ASYNC_GENERATOR_STATE_COMPLETED;
goto fail;
}
/* execute the function up to 'OP_initial_yield' (no yield nor
await are possible) */
func_ret = async_func_resume(ctx, &s->func_state);
if (JS_IsException(func_ret))
goto fail;
JS_FreeValue(ctx, func_ret);
obj = js_create_from_ctor(ctx, func_obj, JS_CLASS_ASYNC_GENERATOR);
if (JS_IsException(obj))
goto fail;
s->generator = JS_VALUE_GET_OBJ(obj);
JS_SetOpaqueInternal(obj, s);
return obj;
fail:
js_async_generator_free(ctx->rt, s);
return JS_EXCEPTION;
} | O0 | c | js_async_generator_function_call:
subq $0x98, %rsp
movl 0xa8(%rsp), %eax
movq 0xa0(%rsp), %rax
movq %rsi, 0x78(%rsp)
movq %rdx, 0x80(%rsp)
movq %rcx, 0x68(%rsp)
movq %r8, 0x70(%rsp)
movq %rdi, 0x60(%rsp)
movl %r9d, 0x5c(%rsp)
movq 0x60(%rsp), %rdi
movl $0x88, %esi
callq 0x28020
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x30(%rsp)
jne 0x5a50f
movl $0x0, 0x88(%rsp)
movq $0x6, 0x90(%rsp)
jmp 0x5a694
movq 0x30(%rsp), %rax
movl $0x0, 0x8(%rax)
movq 0x30(%rsp), %rdi
addq $0x78, %rdi
callq 0x28680
movq 0x60(%rsp), %rdi
movq 0x30(%rsp), %rsi
addq $0x10, %rsi
movl 0x5c(%rsp), %r10d
movq 0xa0(%rsp), %rax
movq 0x78(%rsp), %rdx
movq 0x80(%rsp), %rcx
movq 0x68(%rsp), %r8
movq 0x70(%rsp), %r9
movl %r10d, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x782a0
cmpl $0x0, %eax
je 0x5a57f
movq 0x30(%rsp), %rax
movl $0x5, 0x8(%rax)
jmp 0x5a66a
movq 0x60(%rsp), %rdi
movq 0x30(%rsp), %rsi
addq $0x10, %rsi
callq 0x78610
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x29fb0
cmpl $0x0, %eax
je 0x5a5c9
jmp 0x5a66a
movq 0x60(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0x29f80
movq 0x60(%rsp), %rdi
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
movl $0x39, %ecx
callq 0x5b0f0
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x29fb0
cmpl $0x0, %eax
je 0x5a62d
jmp 0x5a66a
movq 0x48(%rsp), %rcx
movq 0x30(%rsp), %rax
movq %rcx, (%rax)
movq 0x30(%rsp), %rdx
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x30c90
movq 0x48(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x90(%rsp)
jmp 0x5a694
movq 0x60(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x30(%rsp), %rsi
callq 0x97fd0
movl $0x0, 0x88(%rsp)
movq $0x6, 0x90(%rsp)
movq 0x88(%rsp), %rax
movq 0x90(%rsp), %rdx
addq $0x98, %rsp
retq
nopl (%rax)
| js_async_generator_function_call:
sub rsp, 98h
mov eax, [rsp+98h+arg_8]
mov rax, [rsp+98h+arg_0]
mov [rsp+98h+var_20], rsi
mov [rsp+98h+var_18], rdx
mov [rsp+98h+var_30], rcx
mov [rsp+98h+var_28], r8
mov [rsp+98h+var_38], rdi
mov [rsp+98h+var_3C], r9d
mov rdi, [rsp+98h+var_38]
mov esi, 88h
call js_mallocz
mov [rsp+98h+var_68], rax
cmp [rsp+98h+var_68], 0
jnz short loc_5A50F
mov dword ptr [rsp+98h+var_10], 0
mov [rsp+98h+var_8], 6
jmp loc_5A694
loc_5A50F:
mov rax, [rsp+98h+var_68]
mov dword ptr [rax+8], 0
mov rdi, [rsp+98h+var_68]
add rdi, 78h ; 'x'
call init_list_head_1
mov rdi, [rsp+98h+var_38]
mov rsi, [rsp+98h+var_68]
add rsi, 10h
mov r10d, [rsp+98h+var_3C]
mov rax, [rsp+98h+arg_0]
mov rdx, [rsp+98h+var_20]
mov rcx, [rsp+98h+var_18]
mov r8, [rsp+98h+var_30]
mov r9, [rsp+98h+var_28]
mov [rsp+98h+var_98], r10d
mov [rsp+98h+var_90], rax
call async_func_init
cmp eax, 0
jz short loc_5A57F
mov rax, [rsp+98h+var_68]
mov dword ptr [rax+8], 5
jmp loc_5A66A
loc_5A57F:
mov rdi, [rsp+98h+var_38]
mov rsi, [rsp+98h+var_68]
add rsi, 10h
call async_func_resume
mov [rsp+98h+var_78], rax
mov [rsp+98h+var_70], rdx
mov rax, [rsp+98h+var_78]
mov [rsp+98h+var_60], rax
mov rax, [rsp+98h+var_70]
mov [rsp+98h+var_58], rax
mov rdi, [rsp+98h+var_60]
mov rsi, [rsp+98h+var_58]
call JS_IsException_1
cmp eax, 0
jz short loc_5A5C9
jmp loc_5A66A
loc_5A5C9:
mov rdi, [rsp+98h+var_38]
mov rsi, [rsp+98h+var_60]
mov rdx, [rsp+98h+var_58]
call JS_FreeValue
mov rdi, [rsp+98h+var_38]
mov rsi, [rsp+98h+var_20]
mov rdx, [rsp+98h+var_18]
mov ecx, 39h ; '9'
call js_create_from_ctor
mov [rsp+98h+var_88], rax
mov [rsp+98h+var_80], rdx
mov rax, [rsp+98h+var_88]
mov [rsp+98h+var_50], rax
mov rax, [rsp+98h+var_80]
mov [rsp+98h+var_48], rax
mov rdi, [rsp+98h+var_50]
mov rsi, [rsp+98h+var_48]
call JS_IsException_1
cmp eax, 0
jz short loc_5A62D
jmp short loc_5A66A
loc_5A62D:
mov rcx, [rsp+98h+var_50]
mov rax, [rsp+98h+var_68]
mov [rax], rcx
mov rdx, [rsp+98h+var_68]
mov rdi, [rsp+98h+var_50]
mov rsi, [rsp+98h+var_48]
call JS_SetOpaqueInternal
mov rax, [rsp+98h+var_50]
mov [rsp+98h+var_10], rax
mov rax, [rsp+98h+var_48]
mov [rsp+98h+var_8], rax
jmp short loc_5A694
loc_5A66A:
mov rax, [rsp+98h+var_38]
mov rdi, [rax+18h]
mov rsi, [rsp+98h+var_68]
call js_async_generator_free
mov dword ptr [rsp+98h+var_10], 0
mov [rsp+98h+var_8], 6
loc_5A694:
mov rax, [rsp+98h+var_10]
mov rdx, [rsp+98h+var_8]
add rsp, 98h
retn
| long long js_async_generator_function_call(
long long a1,
long long a2,
long long a3,
int a4,
int a5,
int a6,
long long a7)
{
long long v7; // rdx
long long v8; // rdx
long long v10; // [rsp+10h] [rbp-88h]
long long v11; // [rsp+20h] [rbp-78h]
long long v12; // [rsp+30h] [rbp-68h]
long long v13; // [rsp+40h] [rbp-58h]
long long v14; // [rsp+50h] [rbp-48h]
long long v19; // [rsp+88h] [rbp-10h]
v12 = js_mallocz(a1, 0x88uLL);
if ( v12 )
{
*(_DWORD *)(v12 + 8) = 0;
init_list_head_1((_QWORD *)(v12 + 120));
if ( (unsigned int)async_func_init(a1, (int)v12 + 16, a2, a3, a4, a5, a6, a7) )
{
*(_DWORD *)(v12 + 8) = 5;
}
else
{
v11 = async_func_resume(a1, v12 + 16);
v13 = v7;
if ( !JS_IsException_1(v11, v7) )
{
JS_FreeValue(a1, v11, v13);
v10 = js_create_from_ctor(a1, a2, a3, 57LL);
v14 = v8;
if ( !JS_IsException_1(v10, v8) )
{
*(_QWORD *)v12 = v10;
JS_SetOpaqueInternal(v10, v14, v12);
return v10;
}
}
}
js_async_generator_free(*(_QWORD *)(a1 + 24), v12);
LODWORD(v19) = 0;
return v19;
}
LODWORD(v19) = 0;
return v19;
}
| js_async_generator_function_call:
SUB RSP,0x98
MOV EAX,dword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0xa0]
MOV qword ptr [RSP + 0x78],RSI
MOV qword ptr [RSP + 0x80],RDX
MOV qword ptr [RSP + 0x68],RCX
MOV qword ptr [RSP + 0x70],R8
MOV qword ptr [RSP + 0x60],RDI
MOV dword ptr [RSP + 0x5c],R9D
MOV RDI,qword ptr [RSP + 0x60]
MOV ESI,0x88
CALL 0x00128020
MOV qword ptr [RSP + 0x30],RAX
CMP qword ptr [RSP + 0x30],0x0
JNZ 0x0015a50f
MOV dword ptr [RSP + 0x88],0x0
MOV qword ptr [RSP + 0x90],0x6
JMP 0x0015a694
LAB_0015a50f:
MOV RAX,qword ptr [RSP + 0x30]
MOV dword ptr [RAX + 0x8],0x0
MOV RDI,qword ptr [RSP + 0x30]
ADD RDI,0x78
CALL 0x00128680
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x30]
ADD RSI,0x10
MOV R10D,dword ptr [RSP + 0x5c]
MOV RAX,qword ptr [RSP + 0xa0]
MOV RDX,qword ptr [RSP + 0x78]
MOV RCX,qword ptr [RSP + 0x80]
MOV R8,qword ptr [RSP + 0x68]
MOV R9,qword ptr [RSP + 0x70]
MOV dword ptr [RSP],R10D
MOV qword ptr [RSP + 0x8],RAX
CALL 0x001782a0
CMP EAX,0x0
JZ 0x0015a57f
MOV RAX,qword ptr [RSP + 0x30]
MOV dword ptr [RAX + 0x8],0x5
JMP 0x0015a66a
LAB_0015a57f:
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x30]
ADD RSI,0x10
CALL 0x00178610
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],RDX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x40],RAX
MOV RDI,qword ptr [RSP + 0x38]
MOV RSI,qword ptr [RSP + 0x40]
CALL 0x00129fb0
CMP EAX,0x0
JZ 0x0015a5c9
JMP 0x0015a66a
LAB_0015a5c9:
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x38]
MOV RDX,qword ptr [RSP + 0x40]
CALL 0x00129f80
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x78]
MOV RDX,qword ptr [RSP + 0x80]
MOV ECX,0x39
CALL 0x0015b0f0
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x48],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x50],RAX
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x50]
CALL 0x00129fb0
CMP EAX,0x0
JZ 0x0015a62d
JMP 0x0015a66a
LAB_0015a62d:
MOV RCX,qword ptr [RSP + 0x48]
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RAX],RCX
MOV RDX,qword ptr [RSP + 0x30]
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x50]
CALL 0x00130c90
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x88],RAX
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x90],RAX
JMP 0x0015a694
LAB_0015a66a:
MOV RAX,qword ptr [RSP + 0x60]
MOV RDI,qword ptr [RAX + 0x18]
MOV RSI,qword ptr [RSP + 0x30]
CALL 0x00197fd0
MOV dword ptr [RSP + 0x88],0x0
MOV qword ptr [RSP + 0x90],0x6
LAB_0015a694:
MOV RAX,qword ptr [RSP + 0x88]
MOV RDX,qword ptr [RSP + 0x90]
ADD RSP,0x98
RET
|
int1 [16]
js_async_generator_function_call
(long param_1,int8 param_2,int8 param_3,int8 param_4,int8 param_5,
int4 param_6,int8 param_7)
{
int iVar1;
int8 *puVar2;
int8 uVar3;
int1 auVar4 [16];
int4 local_10;
int4 uStack_c;
int8 local_8;
puVar2 = (int8 *)js_mallocz(param_1,0x88);
if (puVar2 == (int8 *)0x0) {
local_10 = 0;
local_8 = 6;
}
else {
*(int4 *)(puVar2 + 1) = 0;
init_list_head(puVar2 + 0xf);
iVar1 = async_func_init(param_1,puVar2 + 2,param_2,param_3,param_4,param_5,param_6,param_7);
if (iVar1 == 0) {
auVar4 = async_func_resume(param_1,puVar2 + 2);
iVar1 = JS_IsException(auVar4._0_8_,auVar4._8_8_);
if (iVar1 == 0) {
JS_FreeValue(param_1,auVar4._0_8_,auVar4._8_8_);
auVar4 = js_create_from_ctor(param_1,param_2,param_3,0x39);
local_8 = auVar4._8_8_;
uVar3 = auVar4._0_8_;
iVar1 = JS_IsException(uVar3,local_8);
if (iVar1 == 0) {
*puVar2 = uVar3;
JS_SetOpaqueInternal(uVar3,local_8,puVar2);
local_10 = auVar4._0_4_;
uStack_c = auVar4._4_4_;
goto LAB_0015a694;
}
}
}
else {
*(int4 *)(puVar2 + 1) = 5;
}
js_async_generator_free(*(int8 *)(param_1 + 0x18),puVar2);
local_10 = 0;
local_8 = 6;
}
LAB_0015a694:
auVar4._4_4_ = uStack_c;
auVar4._0_4_ = local_10;
auVar4._8_8_ = local_8;
return auVar4;
}
| |
22,332 | js_async_generator_function_call | bluesky950520[P]quickjs/quickjs.c | static JSValue js_async_generator_function_call(JSContext *ctx, JSValue func_obj,
JSValue this_obj,
int argc, JSValue *argv,
int flags)
{
JSValue obj, func_ret;
JSAsyncGeneratorData *s;
s = js_mallocz(ctx, sizeof(*s));
if (!s)
return JS_EXCEPTION;
s->state = JS_ASYNC_GENERATOR_STATE_SUSPENDED_START;
init_list_head(&s->queue);
if (async_func_init(ctx, &s->func_state, func_obj, this_obj, argc, argv)) {
s->state = JS_ASYNC_GENERATOR_STATE_COMPLETED;
goto fail;
}
/* execute the function up to 'OP_initial_yield' (no yield nor
await are possible) */
func_ret = async_func_resume(ctx, &s->func_state);
if (JS_IsException(func_ret))
goto fail;
JS_FreeValue(ctx, func_ret);
obj = js_create_from_ctor(ctx, func_obj, JS_CLASS_ASYNC_GENERATOR);
if (JS_IsException(obj))
goto fail;
s->generator = JS_VALUE_GET_OBJ(obj);
JS_SetOpaqueInternal(obj, s);
return obj;
fail:
js_async_generator_free(ctx->rt, s);
return JS_EXCEPTION;
} | O2 | c | js_async_generator_function_call:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r13d
movq %r8, (%rsp)
movq %rcx, %rbp
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
movl $0x88, %esi
callq 0x1adf1
pushq $0x6
popq %rdx
testq %rax, %rax
je 0x33a9a
movq %rax, %r14
movq 0x40(%rsp), %rax
andl $0x0, 0x8(%r14)
leaq 0x78(%r14), %rcx
movq %rcx, 0x78(%r14)
movq %rcx, 0x80(%r14)
movq %r13, %r10
movq %r14, %r13
addq $0x10, %r13
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %rbx, %rcx
movq %rbp, %r8
movq (%rsp), %r9
pushq %rax
pushq %r10
callq 0x3e817
popq %rcx
popq %rdx
testl %eax, %eax
je 0x33a9e
movl $0x5, 0x8(%r14)
jmp 0x33acf
xorl %eax, %eax
jmp 0x33ae0
movq %r15, %rdi
movq %r13, %rsi
callq 0x3e977
cmpl $0x6, %edx
je 0x33acf
movq %r15, %rdi
movq %rax, %rsi
callq 0x1bbce
pushq $0x39
popq %rcx
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x3400a
cmpl $0x6, %edx
jne 0x33aef
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0x4ab84
xorl %eax, %eax
pushq $0x6
popq %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, (%r14)
movq %r14, 0x30(%rax)
jmp 0x33ae0
| js_async_generator_function_call:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r13d, r9d
mov [rsp+38h+var_38], r8
mov rbp, rcx
mov rbx, rdx
mov r12, rsi
mov r15, rdi
mov esi, 88h
call js_mallocz
push 6
pop rdx
test rax, rax
jz short loc_33A9A
mov r14, rax
mov rax, [rsp+38h+arg_0]
and dword ptr [r14+8], 0
lea rcx, [r14+78h]
mov [r14+78h], rcx
mov [r14+80h], rcx
mov r10, r13
mov r13, r14
add r13, 10h
mov rdi, r15
mov rsi, r13
mov rdx, r12
mov rcx, rbx
mov r8, rbp
mov r9, [rsp+38h+var_38]
push rax
push r10
call async_func_init
pop rcx
pop rdx
test eax, eax
jz short loc_33A9E
mov dword ptr [r14+8], 5
jmp short loc_33ACF
loc_33A9A:
xor eax, eax
jmp short loc_33AE0
loc_33A9E:
mov rdi, r15
mov rsi, r13
call async_func_resume
cmp edx, 6
jz short loc_33ACF
mov rdi, r15
mov rsi, rax
call JS_FreeValue
push 39h ; '9'
pop rcx
mov rdi, r15
mov rsi, r12
mov rdx, rbx
call js_create_from_ctor
cmp edx, 6
jnz short loc_33AEF
loc_33ACF:
mov rdi, [r15+18h]
mov rsi, r14
call js_async_generator_free
xor eax, eax
push 6
pop rdx
loc_33AE0:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_33AEF:
mov [r14], rax
mov [rax+30h], r14
jmp short loc_33AE0
| long long js_async_generator_function_call(
long long a1,
long long a2,
long long a3,
int a4,
int a5,
int a6,
long long a7)
{
long long v10; // rax
long long v11; // r14
int v12; // eax
long long v13; // rdx
long long result; // rax
long long v15; // rax
long long v16; // [rsp-8h] [rbp-40h]
v10 = js_mallocz(a1, 0x88uLL);
if ( !v10 )
return 0LL;
v11 = v10;
*(_DWORD *)(v10 + 8) = 0;
*(_QWORD *)(v10 + 120) = v10 + 120;
*(_QWORD *)(v10 + 128) = v10 + 120;
v12 = async_func_init(a1, (int)v10 + 16, a2, a3, a4, a5, a6, a7);
v13 = v16;
if ( v12 )
{
*(_DWORD *)(v11 + 8) = 5;
}
else
{
v15 = async_func_resume(a1, v11 + 16, v16);
if ( (_DWORD)v13 != 6 )
{
JS_FreeValue(a1, v15, v13);
result = js_create_from_ctor(a1, a2, a3, 57LL);
if ( (_DWORD)v13 != 6 )
{
*(_QWORD *)v11 = result;
*(_QWORD *)(result + 48) = v11;
return result;
}
}
}
js_async_generator_free(*(_QWORD *)(a1 + 24), v11, v13);
return 0LL;
}
| js_async_generator_function_call:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R13D,R9D
MOV qword ptr [RSP],R8
MOV RBP,RCX
MOV RBX,RDX
MOV R12,RSI
MOV R15,RDI
MOV ESI,0x88
CALL 0x0011adf1
PUSH 0x6
POP RDX
TEST RAX,RAX
JZ 0x00133a9a
MOV R14,RAX
MOV RAX,qword ptr [RSP + 0x40]
AND dword ptr [R14 + 0x8],0x0
LEA RCX,[R14 + 0x78]
MOV qword ptr [R14 + 0x78],RCX
MOV qword ptr [R14 + 0x80],RCX
MOV R10,R13
MOV R13,R14
ADD R13,0x10
MOV RDI,R15
MOV RSI,R13
MOV RDX,R12
MOV RCX,RBX
MOV R8,RBP
MOV R9,qword ptr [RSP]
PUSH RAX
PUSH R10
CALL 0x0013e817
POP RCX
POP RDX
TEST EAX,EAX
JZ 0x00133a9e
MOV dword ptr [R14 + 0x8],0x5
JMP 0x00133acf
LAB_00133a9a:
XOR EAX,EAX
JMP 0x00133ae0
LAB_00133a9e:
MOV RDI,R15
MOV RSI,R13
CALL 0x0013e977
CMP EDX,0x6
JZ 0x00133acf
MOV RDI,R15
MOV RSI,RAX
CALL 0x0011bbce
PUSH 0x39
POP RCX
MOV RDI,R15
MOV RSI,R12
MOV RDX,RBX
CALL 0x0013400a
CMP EDX,0x6
JNZ 0x00133aef
LAB_00133acf:
MOV RDI,qword ptr [R15 + 0x18]
MOV RSI,R14
CALL 0x0014ab84
XOR EAX,EAX
PUSH 0x6
POP RDX
LAB_00133ae0:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00133aef:
MOV qword ptr [R14],RAX
MOV qword ptr [RAX + 0x30],R14
JMP 0x00133ae0
|
long js_async_generator_function_call
(long param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int4 param_6,int8 param_7)
{
int iVar1;
long *plVar2;
long lVar3;
int1 auVar4 [12];
plVar2 = (long *)js_mallocz(param_1,0x88);
if (plVar2 != (long *)0x0) {
*(int4 *)(plVar2 + 1) = 0;
plVar2[0xf] = (long)(plVar2 + 0xf);
plVar2[0x10] = (long)(plVar2 + 0xf);
iVar1 = async_func_init(param_1,plVar2 + 2,param_2,param_3,param_4,param_5);
if (iVar1 == 0) {
auVar4 = async_func_resume(param_1,plVar2 + 2,param_7,param_6);
if (auVar4._8_4_ != 6) {
JS_FreeValue(param_1,auVar4._0_8_);
auVar4 = js_create_from_ctor(param_1,param_2,param_3,0x39);
lVar3 = auVar4._0_8_;
if (auVar4._8_4_ != 6) {
*plVar2 = lVar3;
*(long **)(lVar3 + 0x30) = plVar2;
return lVar3;
}
}
}
else {
*(int4 *)(plVar2 + 1) = 5;
}
js_async_generator_free(*(int8 *)(param_1 + 0x18),plVar2);
}
return 0;
}
| |
22,333 | sound::play_ui(std::shared_ptr<SoundEffect const>, bool, float) | untodesu[P]voxelius/game/client/sound.cc | void sound::play_ui(resource_ptr<SoundEffect> sound, bool looping, float pitch)
{
alSourceRewind(ui_source);
sfx_ui = sound;
if(sfx_ui) {
alSourcei(ui_source, AL_BUFFER, sfx_ui->buffer);
alSourcei(ui_source, AL_LOOPING, looping);
alSourcef(ui_source, AL_PITCH, cxpr::clamp(pitch, MIN_PITCH, MAX_PITCH));
alSourcePlay(ui_source);
}
} | O0 | cpp | sound::play_ui(std::shared_ptr<SoundEffect const>, bool, float):
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x18(%rbp)
movb %sil, %al
movq %rdi, -0x8(%rbp)
andb $0x1, %al
movb %al, -0x9(%rbp)
movss %xmm0, -0x10(%rbp)
leaq 0x40761c(%rip), %rax # 0x53b290
movq (%rax), %rax
movl 0x3dc06b(%rip), %edi # 0x50fce8
callq *%rax
movq -0x18(%rbp), %rsi
leaq 0x3dc046(%rip), %rdi # 0x50fcd0
callq 0xa3040
leaq 0x3dc03a(%rip), %rdi # 0x50fcd0
callq 0x59d70
testb $0x1, %al
jne 0x133ca4
jmp 0x133d4c
leaq 0x4075ad(%rip), %rax # 0x53b258
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movl 0x3dc030(%rip), %eax # 0x50fce8
movl %eax, -0x34(%rbp)
leaq 0x3dc00e(%rip), %rdi # 0x50fcd0
callq 0x12f180
movl -0x34(%rbp), %edi
movq %rax, %rcx
movq -0x30(%rbp), %rax
movl 0x20(%rcx), %edx
movl $0x1009, %esi # imm = 0x1009
callq *%rax
leaq 0x407576(%rip), %rax # 0x53b258
movq (%rax), %rax
movl 0x3dbffd(%rip), %edi # 0x50fce8
movb -0x9(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %edx
movl $0x1007, %esi # imm = 0x1007
callq *%rax
leaq 0x407546(%rip), %rax # 0x53b248
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movl 0x3dbfd9(%rip), %eax # 0x50fce8
movl %eax, -0x24(%rbp)
movss -0x10(%rbp), %xmm0
movss 0x2421c1(%rip), %xmm1 # 0x375ee0
movss 0x238319(%rip), %xmm2 # 0x36c040
callq 0x133510
movl -0x24(%rbp), %edi
movq -0x20(%rbp), %rax
movl $0x1003, %esi # imm = 0x1003
callq *%rax
leaq 0x407537(%rip), %rax # 0x53b278
movq (%rax), %rax
movl 0x3dbf9e(%rip), %edi # 0x50fce8
callq *%rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| _ZN5sound7play_uiESt10shared_ptrIK11SoundEffectEbf:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_18], rdi
mov al, sil
mov [rbp+var_8], rdi
and al, 1
mov [rbp+var_9], al
movss [rbp+var_10], xmm0
lea rax, SALAD_alSourceRewind
mov rax, [rax]
mov edi, cs:_ZL9ui_source; ui_source
call rax
mov rsi, [rbp+var_18]
lea rdi, _ZL6sfx_ui; sfx_ui
call _ZNSt10shared_ptrIK11SoundEffectEaSERKS2_; std::shared_ptr<SoundEffect const>::operator=(std::shared_ptr<SoundEffect const> const&)
lea rdi, _ZL6sfx_ui; sfx_ui
call _ZNKSt12__shared_ptrIK11SoundEffectLN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<SoundEffect const,(__gnu_cxx::_Lock_policy)2>::operator bool(void)
test al, 1
jnz short loc_133CA4
jmp loc_133D4C
loc_133CA4:
lea rax, SALAD_alSourcei
mov rax, [rax]
mov [rbp+var_30], rax
mov eax, cs:_ZL9ui_source; ui_source
mov [rbp+var_34], eax
lea rdi, _ZL6sfx_ui; sfx_ui
call _ZNKSt19__shared_ptr_accessIK11SoundEffectLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<SoundEffect const,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov edi, [rbp+var_34]
mov rcx, rax
mov rax, [rbp+var_30]
mov edx, [rcx+20h]
mov esi, 1009h
call rax
lea rax, SALAD_alSourcei
mov rax, [rax]
mov edi, cs:_ZL9ui_source; ui_source
mov cl, [rbp+var_9]
and cl, 1
movzx edx, cl
mov esi, 1007h
call rax
lea rax, SALAD_alSourcef
mov rax, [rax]
mov [rbp+var_20], rax
mov eax, cs:_ZL9ui_source; ui_source
mov [rbp+var_24], eax
movss xmm0, [rbp+var_10]
movss xmm1, cs:dword_375EE0
movss xmm2, cs:flt_36C040
call _ZN4cxprL5clampIfEEKT_S1_S1_S1__2; cxpr::clamp<float>(float,float,float)
mov edi, [rbp+var_24]
mov rax, [rbp+var_20]
mov esi, 1003h
call rax
lea rax, SALAD_alSourcePlay
mov rax, [rax]
mov edi, cs:_ZL9ui_source; ui_source
call rax
loc_133D4C:
add rsp, 40h
pop rbp
retn
| char sound::play_ui(long long a1, char a2, float a3)
{
char result; // al
long long v4; // rax
float v5; // xmm0_4
unsigned int v6; // [rsp+Ch] [rbp-34h]
void ( *v7)(_QWORD, long long, _QWORD); // [rsp+10h] [rbp-30h]
unsigned int v8; // [rsp+1Ch] [rbp-24h]
void ( *v9)(_QWORD, long long, float); // [rsp+20h] [rbp-20h]
SALAD_alSourceRewind((unsigned int)ui_source);
std::shared_ptr<SoundEffect const>::operator=((long long)sfx_ui, a1);
result = std::__shared_ptr<SoundEffect const,(__gnu_cxx::_Lock_policy)2>::operator bool(sfx_ui);
if ( (result & 1) != 0 )
{
v7 = (void ( *)(_QWORD, long long, _QWORD))SALAD_alSourcei;
v6 = ui_source;
v4 = std::__shared_ptr_access<SoundEffect const,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)sfx_ui);
v7(v6, 4105LL, *(unsigned int *)(v4 + 32));
SALAD_alSourcei((unsigned int)ui_source, 4103LL, a2 & 1);
v9 = (void ( *)(_QWORD, long long, float))SALAD_alSourcef;
v8 = ui_source;
v5 = cxpr::clamp<float>(a3, 0.0625, 10.0);
v9(v8, 4099LL, v5);
return SALAD_alSourcePlay((unsigned int)ui_source);
}
return result;
}
| _Deque_iterator:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX],0x0
MOV qword ptr [RAX + 0x8],0x0
MOV qword ptr [RAX + 0x10],0x0
MOV qword ptr [RAX + 0x18],0x0
POP RBP
RET
|
/* std::_Deque_iterator<BotherQueueItem, BotherQueueItem&, BotherQueueItem*>::_Deque_iterator() */
void __thiscall
std::_Deque_iterator<BotherQueueItem,BotherQueueItem&,BotherQueueItem*>::_Deque_iterator
(_Deque_iterator<BotherQueueItem,BotherQueueItem&,BotherQueueItem*> *this)
{
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
return;
}
| |
22,334 | sound::play_ui(std::shared_ptr<SoundEffect const>, bool, float) | untodesu[P]voxelius/game/client/sound.cc | void sound::play_ui(resource_ptr<SoundEffect> sound, bool looping, float pitch)
{
alSourceRewind(ui_source);
sfx_ui = sound;
if(sfx_ui) {
alSourcei(ui_source, AL_BUFFER, sfx_ui->buffer);
alSourcei(ui_source, AL_LOOPING, looping);
alSourcef(ui_source, AL_PITCH, cxpr::clamp(pitch, MIN_PITCH, MAX_PITCH));
alSourcePlay(ui_source);
}
} | O1 | cpp | sound::play_ui(std::shared_ptr<SoundEffect const>, bool, float):
pushq %r14
pushq %rbx
subq $0x18, %rsp
movaps %xmm0, (%rsp)
movl %esi, %ebx
movq %rdi, %r14
leaq 0x21cc7a(%rip), %rax # 0x28b050
movl 0x1f16cc(%rip), %edi # 0x25faa8
callq *(%rax)
movq (%r14), %rax
movq %rax, 0x1f16a8(%rip) # 0x25fa90
addq $0x8, %r14
leaq 0x1f16a5(%rip), %rdi # 0x25fa98
movq %r14, %rsi
callq 0x482f6
movq 0x1f168e(%rip), %rax # 0x25fa90
testq %rax, %rax
je 0x6e483
leaq 0x21cc0a(%rip), %r14 # 0x28b018
movl 0x1f1694(%rip), %edi # 0x25faa8
movl 0x20(%rax), %edx
movl $0x1009, %esi # imm = 0x1009
callq *(%r14)
movl 0x1f1683(%rip), %edi # 0x25faa8
movzbl %bl, %edx
movl $0x1007, %esi # imm = 0x1007
callq *(%r14)
leaq 0x21cbd1(%rip), %rax # 0x28b008
movl 0x1f166b(%rip), %edi # 0x25faa8
movss 0x13058f(%rip), %xmm3 # 0x19e9d4
movaps (%rsp), %xmm0
minss %xmm0, %xmm3
movss 0x130583(%rip), %xmm1 # 0x19e9d8
cmpltss %xmm1, %xmm0
movaps %xmm0, %xmm2
andnps %xmm3, %xmm2
andps %xmm1, %xmm0
orps %xmm2, %xmm0
movl $0x1003, %esi # imm = 0x1003
callq *(%rax)
leaq 0x21cbc4(%rip), %rax # 0x28b038
movl 0x1f162e(%rip), %edi # 0x25faa8
addq $0x18, %rsp
popq %rbx
popq %r14
jmpq *(%rax)
addq $0x18, %rsp
popq %rbx
popq %r14
retq
nop
| _ZN5sound7play_uiESt10shared_ptrIK11SoundEffectEbf:
push r14
push rbx
sub rsp, 18h
movaps [rsp+28h+var_28], xmm0
mov ebx, esi
mov r14, rdi
lea rax, SALAD_alSourceRewind
mov edi, cs:_ZL9ui_source; ui_source
call qword ptr [rax]
mov rax, [r14]
mov qword ptr cs:_ZL6sfx_ui, rax; sfx_ui
add r14, 8
lea rdi, _ZL6sfx_ui+8; sfx_ui
mov rsi, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEaSERKS2_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_count<(__gnu_cxx::_Lock_policy)2> const&)
mov rax, qword ptr cs:_ZL6sfx_ui; sfx_ui
test rax, rax
jz short loc_6E483
lea r14, SALAD_alSourcei
mov edi, cs:_ZL9ui_source; ui_source
mov edx, [rax+20h]
mov esi, 1009h
call qword ptr [r14]
mov edi, cs:_ZL9ui_source; ui_source
movzx edx, bl
mov esi, 1007h
call qword ptr [r14]
lea rax, SALAD_alSourcef
mov edi, cs:_ZL9ui_source; ui_source
movss xmm3, cs:dword_19E9D4
movaps xmm0, [rsp+28h+var_28]
minss xmm3, xmm0
movss xmm1, cs:dword_19E9D8
cmpltss xmm0, xmm1
movaps xmm2, xmm0
andnps xmm2, xmm3
andps xmm0, xmm1
orps xmm0, xmm2
mov esi, 1003h
call qword ptr [rax]
lea rax, SALAD_alSourcePlay
mov edi, cs:_ZL9ui_source; ui_source
add rsp, 18h
pop rbx
pop r14
jmp qword ptr [rax]
loc_6E483:
add rsp, 18h
pop rbx
pop r14
retn
| long long sound::play_ui(long long a1, unsigned __int8 a2, __m128 a3)
{
long long result; // rax
__m128 v4; // xmm3
__m128 v5; // xmm0
SALAD_alSourceRewind((unsigned int)ui_source);
*(_QWORD *)&sfx_ui = *(_QWORD *)a1;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(
(volatile signed __int32 **)&sfx_ui + 1,
(volatile signed __int32 **)(a1 + 8));
result = sfx_ui;
if ( (_QWORD)sfx_ui )
{
SALAD_alSourcei((unsigned int)ui_source, 4105LL, *(unsigned int *)(sfx_ui + 32));
SALAD_alSourcei((unsigned int)ui_source, 4103LL, a2);
v4 = (__m128)0x41200000u;
v4.m128_f32[0] = fminf(10.0, a3.m128_f32[0]);
v5 = _mm_cmplt_ss(a3, (__m128)0x3D800000u);
SALAD_alSourcef(
(unsigned int)ui_source,
4099LL,
COERCE_DOUBLE(v5.m128_i32[0] & 0x3D800000 | _mm_andnot_ps(v5, v4).m128_u64[0]));
return SALAD_alSourcePlay((unsigned int)ui_source);
}
return result;
}
| play_ui:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOVAPS xmmword ptr [RSP],XMM0
MOV EBX,ESI
MOV R14,RDI
LEA RAX,[0x38b050]
MOV EDI,dword ptr [0x0035faa8]
CALL qword ptr [RAX]
MOV RAX,qword ptr [R14]
MOV qword ptr [0x0035fa90],RAX
ADD R14,0x8
LEA RDI,[0x35fa98]
MOV RSI,R14
CALL 0x001482f6
MOV RAX,qword ptr [0x0035fa90]
TEST RAX,RAX
JZ 0x0016e483
LEA R14,[0x38b018]
MOV EDI,dword ptr [0x0035faa8]
MOV EDX,dword ptr [RAX + 0x20]
MOV ESI,0x1009
CALL qword ptr [R14]
MOV EDI,dword ptr [0x0035faa8]
MOVZX EDX,BL
MOV ESI,0x1007
CALL qword ptr [R14]
LEA RAX,[0x38b008]
MOV EDI,dword ptr [0x0035faa8]
MOVSS XMM3,dword ptr [0x0029e9d4]
MOVAPS XMM0,xmmword ptr [RSP]
MINSS XMM3,XMM0
MOVSS XMM1,dword ptr [0x0029e9d8]
CMPLTSS XMM0,XMM1
MOVAPS XMM2,XMM0
ANDNPS XMM2,XMM3
ANDPS XMM0,XMM1
ORPS XMM0,XMM2
MOV ESI,0x1003
CALL qword ptr [RAX]
LEA RAX,[0x38b038]
MOV EDI,dword ptr [0x0035faa8]
ADD RSP,0x18
POP RBX
POP R14
JMP qword ptr [RAX]
LAB_0016e483:
ADD RSP,0x18
POP RBX
POP R14
RET
|
/* sound::play_ui(std::shared_ptr<SoundEffect const>, bool, float) */
void sound::play_ui(float param_1,long *param_2,int1 param_3)
{
float fVar1;
(*SALAD_alSourceRewind)(ui_source);
sfx_ui = *param_2;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&DAT_0035fa98,
(__shared_count *)(param_2 + 1));
if (sfx_ui != 0) {
(*SALAD_alSourcei)(ui_source,0x1009,*(int4 *)(sfx_ui + 0x20));
(*SALAD_alSourcei)(ui_source,0x1007,param_3);
fVar1 = DAT_0029e9d4;
if (param_1 <= DAT_0029e9d4) {
fVar1 = param_1;
}
(*SALAD_alSourcef)(-(uint)(param_1 < DAT_0029e9d8) & (uint)DAT_0029e9d8 |
~-(uint)(param_1 < DAT_0029e9d8) & (uint)fVar1,ui_source,0x1003);
/* WARNING: Could not recover jumptable at 0x0016e481. Too many branches */
/* WARNING: Treating indirect jump as call */
(*SALAD_alSourcePlay)(ui_source);
return;
}
return;
}
| |
22,335 | sound::play_ui(std::shared_ptr<SoundEffect const>, bool, float) | untodesu[P]voxelius/game/client/sound.cc | void sound::play_ui(resource_ptr<SoundEffect> sound, bool looping, float pitch)
{
alSourceRewind(ui_source);
sfx_ui = sound;
if(sfx_ui) {
alSourcei(ui_source, AL_BUFFER, sfx_ui->buffer);
alSourcei(ui_source, AL_LOOPING, looping);
alSourcef(ui_source, AL_PITCH, cxpr::clamp(pitch, MIN_PITCH, MAX_PITCH));
alSourcePlay(ui_source);
}
} | O2 | cpp | sound::play_ui(std::shared_ptr<SoundEffect const>, bool, float):
pushq %r14
pushq %rbx
subq $0x18, %rsp
movaps %xmm0, (%rsp)
movl %esi, %ebx
movq %rdi, %r14
leaq 0x219732(%rip), %rax # 0x2820b0
movl 0x1ee18c(%rip), %edi # 0x256b10
callq *(%rax)
leaq 0x1ee16b(%rip), %rdi # 0x256af8
movq %r14, %rsi
callq 0x43d6e
movq 0x1ee15c(%rip), %rax # 0x256af8
testq %rax, %rax
je 0x68a1d
leaq 0x2196d0(%rip), %r14 # 0x282078
movl 0x1ee162(%rip), %edi # 0x256b10
movl 0x20(%rax), %edx
movl $0x1009, %esi # imm = 0x1009
callq *(%r14)
movl 0x1ee151(%rip), %edi # 0x256b10
movzbl %bl, %edx
movl $0x1007, %esi # imm = 0x1007
callq *(%r14)
leaq 0x219697(%rip), %rax # 0x282068
movl 0x1ee139(%rip), %edi # 0x256b10
movss 0x10e359(%rip), %xmm3 # 0x176d38
movaps (%rsp), %xmm0
minss %xmm0, %xmm3
movss 0x10e34d(%rip), %xmm1 # 0x176d3c
cmpltss %xmm1, %xmm0
movaps %xmm0, %xmm2
andnps %xmm3, %xmm2
andps %xmm1, %xmm0
orps %xmm2, %xmm0
movl $0x1003, %esi # imm = 0x1003
callq *(%rax)
leaq 0x21968a(%rip), %rax # 0x282098
movl 0x1ee0fc(%rip), %edi # 0x256b10
addq $0x18, %rsp
popq %rbx
popq %r14
jmpq *(%rax)
addq $0x18, %rsp
popq %rbx
popq %r14
retq
nop
| _ZN5sound7play_uiESt10shared_ptrIK11SoundEffectEbf:
push r14
push rbx
sub rsp, 18h
movaps [rsp+28h+var_28], xmm0
mov ebx, esi
mov r14, rdi
lea rax, SALAD_alSourceRewind
mov edi, cs:_ZL9ui_source; ui_source
call qword ptr [rax]
lea rdi, _ZL6sfx_ui; sfx_ui
mov rsi, r14
call _ZNSt12__shared_ptrIK11SoundEffectLN9__gnu_cxx12_Lock_policyE2EEaSERKS4_; std::__shared_ptr<SoundEffect const,(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_ptr<SoundEffect const,(__gnu_cxx::_Lock_policy)2> const&)
mov rax, cs:_ZL6sfx_ui; sfx_ui
test rax, rax
jz short loc_68A1D
lea r14, SALAD_alSourcei
mov edi, cs:_ZL9ui_source; ui_source
mov edx, [rax+20h]
mov esi, 1009h
call qword ptr [r14]
mov edi, cs:_ZL9ui_source; ui_source
movzx edx, bl
mov esi, 1007h
call qword ptr [r14]
lea rax, SALAD_alSourcef
mov edi, cs:_ZL9ui_source; ui_source
movss xmm3, cs:dword_176D38
movaps xmm0, [rsp+28h+var_28]
minss xmm3, xmm0
movss xmm1, cs:dword_176D3C
cmpltss xmm0, xmm1
movaps xmm2, xmm0
andnps xmm2, xmm3
andps xmm0, xmm1
orps xmm0, xmm2
mov esi, 1003h
call qword ptr [rax]
lea rax, SALAD_alSourcePlay
mov edi, cs:_ZL9ui_source; ui_source
add rsp, 18h
pop rbx
pop r14
jmp qword ptr [rax]
loc_68A1D:
add rsp, 18h
pop rbx
pop r14
retn
| long long sound::play_ui(_QWORD *a1, unsigned __int8 a2, __m128 a3)
{
long long result; // rax
__m128 v4; // xmm3
__m128 v5; // xmm0
SALAD_alSourceRewind((unsigned int)ui_source);
std::__shared_ptr<SoundEffect const,(__gnu_cxx::_Lock_policy)2>::operator=(&sfx_ui, a1);
result = sfx_ui;
if ( (_QWORD)sfx_ui )
{
SALAD_alSourcei((unsigned int)ui_source, 4105LL, *(unsigned int *)(sfx_ui + 32));
SALAD_alSourcei((unsigned int)ui_source, 4103LL, a2);
v4 = (__m128)0x41200000u;
v4.m128_f32[0] = fminf(10.0, a3.m128_f32[0]);
v5 = _mm_cmplt_ss(a3, (__m128)0x3D800000u);
SALAD_alSourcef(
(unsigned int)ui_source,
4099LL,
COERCE_DOUBLE(v5.m128_i32[0] & 0x3D800000 | _mm_andnot_ps(v5, v4).m128_u64[0]));
return SALAD_alSourcePlay((unsigned int)ui_source);
}
return result;
}
| play_ui:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOVAPS xmmword ptr [RSP],XMM0
MOV EBX,ESI
MOV R14,RDI
LEA RAX,[0x3820b0]
MOV EDI,dword ptr [0x00356b10]
CALL qword ptr [RAX]
LEA RDI,[0x356af8]
MOV RSI,R14
CALL 0x00143d6e
MOV RAX,qword ptr [0x00356af8]
TEST RAX,RAX
JZ 0x00168a1d
LEA R14,[0x382078]
MOV EDI,dword ptr [0x00356b10]
MOV EDX,dword ptr [RAX + 0x20]
MOV ESI,0x1009
CALL qword ptr [R14]
MOV EDI,dword ptr [0x00356b10]
MOVZX EDX,BL
MOV ESI,0x1007
CALL qword ptr [R14]
LEA RAX,[0x382068]
MOV EDI,dword ptr [0x00356b10]
MOVSS XMM3,dword ptr [0x00276d38]
MOVAPS XMM0,xmmword ptr [RSP]
MINSS XMM3,XMM0
MOVSS XMM1,dword ptr [0x00276d3c]
CMPLTSS XMM0,XMM1
MOVAPS XMM2,XMM0
ANDNPS XMM2,XMM3
ANDPS XMM0,XMM1
ORPS XMM0,XMM2
MOV ESI,0x1003
CALL qword ptr [RAX]
LEA RAX,[0x382098]
MOV EDI,dword ptr [0x00356b10]
ADD RSP,0x18
POP RBX
POP R14
JMP qword ptr [RAX]
LAB_00168a1d:
ADD RSP,0x18
POP RBX
POP R14
RET
|
/* sound::play_ui(std::shared_ptr<SoundEffect const>, bool, float) */
void sound::play_ui(float param_1,__shared_ptr *param_2,int1 param_3)
{
float fVar1;
(*SALAD_alSourceRewind)(ui_source);
std::__shared_ptr<SoundEffect_const,(__gnu_cxx::_Lock_policy)2>::operator=
((__shared_ptr<SoundEffect_const,(__gnu_cxx::_Lock_policy)2> *)&sfx_ui,param_2);
if (sfx_ui != 0) {
(*SALAD_alSourcei)(ui_source,0x1009,*(int4 *)(sfx_ui + 0x20));
(*SALAD_alSourcei)(ui_source,0x1007,param_3);
fVar1 = DAT_00276d38;
if (param_1 <= DAT_00276d38) {
fVar1 = param_1;
}
(*SALAD_alSourcef)(-(uint)(param_1 < DAT_00276d3c) & (uint)DAT_00276d3c |
~-(uint)(param_1 < DAT_00276d3c) & (uint)fVar1,ui_source,0x1003);
/* WARNING: Could not recover jumptable at 0x00168a1b. Too many branches */
/* WARNING: Treating indirect jump as call */
(*SALAD_alSourcePlay)(ui_source);
return;
}
return;
}
| |
22,336 | 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);
}
} | O3 | c | my_pread:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, -0x58(%rbp)
movq %rdx, -0x38(%rbp)
movq %rsi, -0x50(%rbp)
movl %edi, -0x2c(%rbp)
movq $0x0, -0x40(%rbp)
movl $0x0, %r15d
testb $0x1a, %r8b
jne 0xaaa5a
leaq 0xb6b261(%rip), %rax # 0xc15cb8
movq (%rax), %r15
orq %r8, %r15
callq 0x2a7f0
movq %rax, %r14
movq %r15, -0x48(%rbp)
movl $0x0, (%r14)
movl -0x2c(%rbp), %edi
movq -0x50(%rbp), %rsi
movq -0x38(%rbp), %rbx
movq %rbx, %rdx
movq -0x58(%rbp), %rcx
callq 0x2a680
subq %rax, %rbx
je 0xaab51
movq %rax, %r12
testb $0x6, %r15b
sete %r13b
movl (%r14), %r15d
callq 0xac2be
movl %r15d, (%rax)
cmpq $-0x1, %r12
sete %al
cmpl $0x0, (%r14)
je 0xaaab8
orb %r13b, %al
jne 0xaaac3
callq 0xac2be
movl $0xaf, (%rax)
leaq 0x1(%r12), %rax
cmpq $0x1, %rax
ja 0xaaada
cmpl $0x4, (%r14)
movq -0x48(%rbp), %r15
je 0xaaa69
jmp 0xaab02
movq -0x48(%rbp), %r15
btl $0x9, %r15d
jae 0xaaafa
addq %r12, -0x50(%rbp)
addq %r12, -0x40(%rbp)
addq %r12, -0x58(%rbp)
movq %rbx, -0x38(%rbp)
jmp 0xaaa69
movq $0x0, -0x40(%rbp)
testb $0x1a, %r15b
je 0xaab38
cmpq $-0x1, %r12
je 0xaab65
testb $0x6, %r15b
je 0xaab38
andl $0x440, %r15d # imm = 0x440
orq $0x4, %r15
movl -0x2c(%rbp), %edi
callq 0xb3eb8
movq %rax, %rbx
callq 0xac2be
movl (%rax), %ecx
movl $0x9, %edi
jmp 0xaab87
movq $-0x1, %rax
cmpq $-0x1, %r12
je 0xaab9b
movl %r15d, %ecx
movq %r12, -0x38(%rbp)
andl $0x6, %ecx
jne 0xaab9b
movq -0x40(%rbp), %rcx
addq -0x38(%rbp), %rcx
xorl %eax, %eax
testb $0x6, %r15b
cmoveq %rcx, %rax
jmp 0xaab9b
andl $0x440, %r15d # imm = 0x440
orq $0x4, %r15
movl -0x2c(%rbp), %edi
callq 0xb3eb8
movq %rax, %rbx
callq 0xac2be
movl (%rax), %ecx
movl $0x2, %edi
movq %r15, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xa5c33
movq $-0x1, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_pread:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov [rbp+var_58], rcx
mov [rbp+var_38], rdx
mov [rbp+var_50], rsi
mov [rbp+var_2C], edi
mov [rbp+var_40], 0
mov r15d, 0
test r8b, 1Ah
jnz short loc_AAA5A
lea rax, my_global_flags
mov r15, [rax]
loc_AAA5A:
or r15, r8
call ___errno_location
mov r14, rax
mov [rbp+var_48], r15
loc_AAA69:
mov dword ptr [r14], 0
mov edi, [rbp+var_2C]
mov rsi, [rbp+var_50]
mov rbx, [rbp+var_38]
mov rdx, rbx
mov rcx, [rbp+var_58]
call _pread64
sub rbx, rax
jz loc_AAB51
mov r12, rax
test r15b, 6
setz r13b
mov r15d, [r14]
call _my_thread_var
mov [rax], r15d
cmp r12, 0FFFFFFFFFFFFFFFFh
setz al
cmp dword ptr [r14], 0
jz short loc_AAAB8
or al, r13b
jnz short loc_AAAC3
loc_AAAB8:
call _my_thread_var
mov dword ptr [rax], 0AFh
loc_AAAC3:
lea rax, [r12+1]
cmp rax, 1
ja short loc_AAADA
cmp dword ptr [r14], 4
mov r15, [rbp+var_48]
jz short loc_AAA69
jmp short loc_AAB02
loc_AAADA:
mov r15, [rbp+var_48]
bt r15d, 9
jnb short loc_AAAFA
add [rbp+var_50], r12
add [rbp+var_40], r12
add [rbp+var_58], r12
mov [rbp+var_38], rbx
jmp loc_AAA69
loc_AAAFA:
mov [rbp+var_40], 0
loc_AAB02:
test r15b, 1Ah
jz short loc_AAB38
cmp r12, 0FFFFFFFFFFFFFFFFh
jz short loc_AAB65
test r15b, 6
jz short loc_AAB38
and r15d, 440h
or r15, 4
mov edi, [rbp+var_2C]
call my_filename
mov rbx, rax
call _my_thread_var
mov ecx, [rax]
mov edi, 9
jmp short loc_AAB87
loc_AAB38:
mov rax, 0FFFFFFFFFFFFFFFFh
cmp r12, 0FFFFFFFFFFFFFFFFh
jz short loc_AAB9B
mov ecx, r15d
mov [rbp+var_38], r12
and ecx, 6
jnz short loc_AAB9B
loc_AAB51:
mov rcx, [rbp+var_40]
add rcx, [rbp+var_38]
xor eax, eax
test r15b, 6
cmovz rax, rcx
jmp short loc_AAB9B
loc_AAB65:
and r15d, 440h
or r15, 4
mov edi, [rbp+var_2C]
call my_filename
mov rbx, rax
call _my_thread_var
mov ecx, [rax]
mov edi, 2
loc_AAB87:
mov rsi, r15
mov rdx, rbx
xor eax, eax
call my_error
mov rax, 0FFFFFFFFFFFFFFFFh
loc_AAB9B:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_pread(long long a1, long long a2, long long a3, long long a4, __int16 a5)
{
__int16 v5; // r15
__int16 v6; // r15
int *v7; // r14
long long v8; // rax
long long v9; // rbx
long long v10; // r12
bool v11; // r13
int v12; // r15d
long long v13; // r15
long long v14; // rbx
long long v15; // rcx
unsigned int v16; // edi
long long result; // rax
__int16 v20; // [rsp+18h] [rbp-48h]
long long v21; // [rsp+20h] [rbp-40h]
v21 = 0LL;
v5 = 0;
if ( (a5 & 0x1A) == 0 )
v5 = my_global_flags;
v6 = a5 | v5;
v7 = (int *)__errno_location(a1);
v20 = v6;
while ( 1 )
{
while ( 1 )
{
*v7 = 0;
v8 = pread64((unsigned int)a1, a2, a3, a4);
v9 = a3 - v8;
if ( a3 == v8 )
goto LABEL_20;
v10 = v8;
v11 = (v6 & 6) == 0;
v12 = *v7;
*(_DWORD *)my_thread_var((unsigned int)a1) = v12;
if ( !*v7 || !v11 && v10 != -1 )
*(_DWORD *)my_thread_var((unsigned int)a1) = 175;
if ( (unsigned long long)(v10 + 1) > 1 )
break;
v6 = v20;
if ( *v7 != 4 )
goto LABEL_14;
}
v6 = v20;
if ( (v20 & 0x200) == 0 )
break;
a2 += v10;
v21 += v10;
a4 += v10;
a3 = v9;
}
v21 = 0LL;
LABEL_14:
if ( (v6 & 0x1A) != 0 )
{
if ( v10 == -1 )
{
v13 = v6 & 0x440 | 4LL;
v14 = my_filename((unsigned int)a1);
v15 = *(unsigned int *)my_thread_var((unsigned int)a1);
v16 = 2;
goto LABEL_24;
}
if ( (v6 & 6) != 0 )
{
v13 = v6 & 0x440 | 4LL;
v14 = my_filename((unsigned int)a1);
v15 = *(unsigned int *)my_thread_var((unsigned int)a1);
v16 = 9;
LABEL_24:
my_error(v16, v13, v14, v15);
return -1LL;
}
}
result = -1LL;
if ( v10 != -1 )
{
a3 = v10;
if ( (v6 & 6) == 0 )
{
LABEL_20:
result = 0LL;
if ( (v6 & 6) == 0 )
return a3 + v21;
}
}
return result;
}
| my_pread:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV qword ptr [RBP + -0x58],RCX
MOV qword ptr [RBP + -0x38],RDX
MOV qword ptr [RBP + -0x50],RSI
MOV dword ptr [RBP + -0x2c],EDI
MOV qword ptr [RBP + -0x40],0x0
MOV R15D,0x0
TEST R8B,0x1a
JNZ 0x001aaa5a
LEA RAX,[0xd15cb8]
MOV R15,qword ptr [RAX]
LAB_001aaa5a:
OR R15,R8
CALL 0x0012a7f0
MOV R14,RAX
MOV qword ptr [RBP + -0x48],R15
LAB_001aaa69:
MOV dword ptr [R14],0x0
MOV EDI,dword ptr [RBP + -0x2c]
MOV RSI,qword ptr [RBP + -0x50]
MOV RBX,qword ptr [RBP + -0x38]
MOV RDX,RBX
MOV RCX,qword ptr [RBP + -0x58]
CALL 0x0012a680
SUB RBX,RAX
JZ 0x001aab51
MOV R12,RAX
TEST R15B,0x6
SETZ R13B
MOV R15D,dword ptr [R14]
CALL 0x001ac2be
MOV dword ptr [RAX],R15D
CMP R12,-0x1
SETZ AL
CMP dword ptr [R14],0x0
JZ 0x001aaab8
OR AL,R13B
JNZ 0x001aaac3
LAB_001aaab8:
CALL 0x001ac2be
MOV dword ptr [RAX],0xaf
LAB_001aaac3:
LEA RAX,[R12 + 0x1]
CMP RAX,0x1
JA 0x001aaada
CMP dword ptr [R14],0x4
MOV R15,qword ptr [RBP + -0x48]
JZ 0x001aaa69
JMP 0x001aab02
LAB_001aaada:
MOV R15,qword ptr [RBP + -0x48]
BT R15D,0x9
JNC 0x001aaafa
ADD qword ptr [RBP + -0x50],R12
ADD qword ptr [RBP + -0x40],R12
ADD qword ptr [RBP + -0x58],R12
MOV qword ptr [RBP + -0x38],RBX
JMP 0x001aaa69
LAB_001aaafa:
MOV qword ptr [RBP + -0x40],0x0
LAB_001aab02:
TEST R15B,0x1a
JZ 0x001aab38
CMP R12,-0x1
JZ 0x001aab65
TEST R15B,0x6
JZ 0x001aab38
AND R15D,0x440
OR R15,0x4
MOV EDI,dword ptr [RBP + -0x2c]
CALL 0x001b3eb8
MOV RBX,RAX
CALL 0x001ac2be
MOV ECX,dword ptr [RAX]
MOV EDI,0x9
JMP 0x001aab87
LAB_001aab38:
MOV RAX,-0x1
CMP R12,-0x1
JZ 0x001aab9b
MOV ECX,R15D
MOV qword ptr [RBP + -0x38],R12
AND ECX,0x6
JNZ 0x001aab9b
LAB_001aab51:
MOV RCX,qword ptr [RBP + -0x40]
ADD RCX,qword ptr [RBP + -0x38]
XOR EAX,EAX
TEST R15B,0x6
CMOVZ RAX,RCX
JMP 0x001aab9b
LAB_001aab65:
AND R15D,0x440
OR R15,0x4
MOV EDI,dword ptr [RBP + -0x2c]
CALL 0x001b3eb8
MOV RBX,RAX
CALL 0x001ac2be
MOV ECX,dword ptr [RAX]
MOV EDI,0x2
LAB_001aab87:
MOV RSI,R15
MOV RDX,RBX
XOR EAX,EAX
CALL 0x001a5c33
MOV RAX,-0x1
LAB_001aab9b:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_pread(int param_1,void *param_2,size_t param_3,long param_4,ulong param_5)
{
int iVar1;
int4 uVar2;
int *piVar3;
size_t sVar4;
int *piVar5;
int4 *puVar6;
int8 uVar7;
long lVar8;
int8 uVar9;
ulong uVar10;
long local_60;
void *local_58;
long local_48;
size_t local_40;
local_48 = 0;
uVar10 = 0;
if ((param_5 & 0x1a) == 0) {
uVar10 = my_global_flags;
}
uVar10 = uVar10 | param_5;
piVar3 = __errno_location();
local_60 = param_4;
local_58 = param_2;
local_40 = param_3;
do {
while( true ) {
*piVar3 = 0;
sVar4 = pread64(param_1,local_58,local_40,local_60);
if (local_40 - sVar4 == 0) goto LAB_001aab51;
iVar1 = *piVar3;
piVar5 = (int *)_my_thread_var();
*piVar5 = iVar1;
if ((*piVar3 == 0) || (sVar4 != 0xffffffffffffffff && (uVar10 & 6) != 0)) {
puVar6 = (int4 *)_my_thread_var();
*puVar6 = 0xaf;
}
if (sVar4 + 1 < 2) break;
if (((uint)uVar10 >> 9 & 1) == 0) {
local_48 = 0;
goto LAB_001aab02;
}
local_58 = (void *)((long)local_58 + sVar4);
local_48 = local_48 + sVar4;
local_60 = local_60 + sVar4;
local_40 = local_40 - sVar4;
}
} while (*piVar3 == 4);
LAB_001aab02:
if ((uVar10 & 0x1a) == 0) {
LAB_001aab38:
lVar8 = -1;
if ((sVar4 != 0xffffffffffffffff) && (local_40 = sVar4, (uVar10 & 6) == 0)) {
LAB_001aab51:
lVar8 = 0;
if ((uVar10 & 6) == 0) {
lVar8 = local_48 + local_40;
}
}
}
else {
if (sVar4 == 0xffffffffffffffff) {
uVar7 = my_filename(param_1);
puVar6 = (int4 *)_my_thread_var();
uVar2 = *puVar6;
uVar9 = 2;
}
else {
if ((uVar10 & 6) == 0) goto LAB_001aab38;
uVar7 = my_filename(param_1);
puVar6 = (int4 *)_my_thread_var();
uVar2 = *puVar6;
uVar9 = 9;
}
my_error(uVar9,(uint)uVar10 & 0x440 | 4,uVar7,uVar2);
lVar8 = -1;
}
return lVar8;
}
| |
22,337 | mysql_stmt_fetch_column | eloqsql/libmariadb/libmariadb/mariadb_stmt.c | int STDCALL mysql_stmt_fetch_column(MYSQL_STMT *stmt, MYSQL_BIND *bind, unsigned int column, unsigned long offset)
{
if (stmt->state < MYSQL_STMT_USER_FETCHING || column >= stmt->field_count ||
stmt->state == MYSQL_STMT_FETCH_DONE) {
SET_CLIENT_STMT_ERROR(stmt, CR_NO_DATA, SQLSTATE_UNKNOWN, 0);
return(1);
}
if (!stmt->bind[column].u.row_ptr)
{
/* we set row_ptr only for columns which contain data, so this must be a NULL column */
if (bind[0].is_null)
*bind[0].is_null= 1;
}
else
{
unsigned char *save_ptr;
if (bind[0].length)
*bind[0].length= *stmt->bind[column].length;
else
bind[0].length= &stmt->bind[column].length_value;
if (bind[0].is_null)
*bind[0].is_null= 0;
else
bind[0].is_null= &bind[0].is_null_value;
if (!bind[0].error)
bind[0].error= &bind[0].error_value;
*bind[0].error= 0;
bind[0].offset= offset;
save_ptr= stmt->bind[column].u.row_ptr;
mysql_ps_fetch_functions[stmt->fields[column].type].func(&bind[0], &stmt->fields[column], &stmt->bind[column].u.row_ptr);
stmt->bind[column].u.row_ptr= save_ptr;
}
return(0);
} | O0 | c | mysql_stmt_fetch_column:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x5, 0x50(%rax)
jb 0x2e677
movl -0x1c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x60(%rcx), %eax
jae 0x2e677
movq -0x10(%rbp), %rax
cmpl $0x6, 0x50(%rax)
jne 0x2e6eb
jmp 0x2e679
movq -0x10(%rbp), %rax
movl $0x803, 0x108(%rax) # imm = 0x803
movq -0x10(%rbp), %rdi
addq $0x30d, %rdi # imm = 0x30D
leaq 0x38ab7(%rip), %rax # 0x67150
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13210
movq -0x10(%rbp), %rax
movb $0x0, 0x312(%rax)
movq -0x10(%rbp), %rdi
addq $0x10c, %rdi # imm = 0x10C
leaq 0x38a9d(%rip), %rax # 0x67160
movq 0x198(%rax), %rsi
movl $0x200, %edx # imm = 0x200
callq 0x13210
movq -0x10(%rbp), %rax
movb $0x0, 0x30b(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x2e855
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x1c(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, 0x20(%rax)
jne 0x2e71f
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x2e71a
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movb $0x1, (%rax)
jmp 0x2e84e
movq -0x18(%rbp), %rax
cmpq $0x0, (%rax)
je 0x2e74d
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x1c(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq (%rax), %rcx
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rcx, (%rax)
jmp 0x2e76a
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rcx
movl -0x1c(%rbp), %eax
imulq $0x70, %rax, %rax
addq %rax, %rcx
addq $0x50, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x2e782
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movb $0x0, (%rax)
jmp 0x2e792
movq -0x18(%rbp), %rcx
addq $0x67, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x2e7ad
movq -0x18(%rbp), %rcx
addq $0x64, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movb $0x0, (%rax)
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x48(%rax)
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x1c(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rax
movl -0x1c(%rbp), %ecx
shlq $0x7, %rcx
addq %rcx, %rax
movl 0x70(%rax), %eax
movl %eax, %ecx
leaq 0x38ed4(%rip), %rax # 0x676d0
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rcx
movq 0x58(%rcx), %rsi
movl -0x1c(%rbp), %ecx
shlq $0x7, %rcx
addq %rcx, %rsi
movq -0x10(%rbp), %rcx
movq 0x78(%rcx), %rdx
movl -0x1c(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rdx
addq $0x20, %rdx
callq *%rax
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rax
movl -0x1c(%rbp), %edx
imulq $0x70, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x20(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop
| mysql_stmt_fetch_column:
push rbp
mov rbp, rsp
sub rsp, 30h
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]
cmp dword ptr [rax+50h], 5
jb short loc_2E677
mov eax, [rbp+var_1C]
mov rcx, [rbp+var_10]
cmp eax, [rcx+60h]
jnb short loc_2E677
mov rax, [rbp+var_10]
cmp dword ptr [rax+50h], 6
jnz short loc_2E6EB
loc_2E677:
jmp short $+2
loc_2E679:
mov rax, [rbp+var_10]
mov dword ptr [rax+108h], 803h
mov rdi, [rbp+var_10]
add rdi, 30Dh
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [rbp+var_10]
mov byte ptr [rax+312h], 0
mov rdi, [rbp+var_10]
add rdi, 10Ch
lea rax, client_errors
mov rsi, [rax+198h]
mov edx, 200h
call _strncpy
mov rax, [rbp+var_10]
mov byte ptr [rax+30Bh], 0
mov [rbp+var_4], 1
jmp loc_2E855
loc_2E6EB:
mov rax, [rbp+var_10]
mov rax, [rax+78h]
mov ecx, [rbp+var_1C]
imul rcx, 70h ; 'p'
add rax, rcx
cmp qword ptr [rax+20h], 0
jnz short loc_2E71F
mov rax, [rbp+var_18]
cmp qword ptr [rax+8], 0
jz short loc_2E71A
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov byte ptr [rax], 1
loc_2E71A:
jmp loc_2E84E
loc_2E71F:
mov rax, [rbp+var_18]
cmp qword ptr [rax], 0
jz short loc_2E74D
mov rax, [rbp+var_10]
mov rax, [rax+78h]
mov ecx, [rbp+var_1C]
imul rcx, 70h ; 'p'
add rax, rcx
mov rax, [rax]
mov rcx, [rax]
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rax], rcx
jmp short loc_2E76A
loc_2E74D:
mov rax, [rbp+var_10]
mov rcx, [rax+78h]
mov eax, [rbp+var_1C]
imul rax, 70h ; 'p'
add rcx, rax
add rcx, 50h ; 'P'
mov rax, [rbp+var_18]
mov [rax], rcx
loc_2E76A:
mov rax, [rbp+var_18]
cmp qword ptr [rax+8], 0
jz short loc_2E782
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov byte ptr [rax], 0
jmp short loc_2E792
loc_2E782:
mov rcx, [rbp+var_18]
add rcx, 67h ; 'g'
mov rax, [rbp+var_18]
mov [rax+8], rcx
loc_2E792:
mov rax, [rbp+var_18]
cmp qword ptr [rax+18h], 0
jnz short loc_2E7AD
mov rcx, [rbp+var_18]
add rcx, 64h ; 'd'
mov rax, [rbp+var_18]
mov [rax+18h], rcx
loc_2E7AD:
mov rax, [rbp+var_18]
mov rax, [rax+18h]
mov byte ptr [rax], 0
mov rcx, [rbp+var_28]
mov rax, [rbp+var_18]
mov [rax+48h], rcx
mov rax, [rbp+var_10]
mov rax, [rax+78h]
mov ecx, [rbp+var_1C]
imul rcx, 70h ; 'p'
add rax, rcx
mov rax, [rax+20h]
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
mov rax, [rax+58h]
mov ecx, [rbp+var_1C]
shl rcx, 7
add rax, rcx
mov eax, [rax+70h]
mov ecx, eax
lea rax, mysql_ps_fetch_functions
imul rcx, 18h
add rax, rcx
mov rax, [rax]
mov rdi, [rbp+var_18]
mov rcx, [rbp+var_10]
mov rsi, [rcx+58h]
mov ecx, [rbp+var_1C]
shl rcx, 7
add rsi, rcx
mov rcx, [rbp+var_10]
mov rdx, [rcx+78h]
mov ecx, [rbp+var_1C]
imul rcx, 70h ; 'p'
add rdx, rcx
add rdx, 20h ; ' '
call rax
mov rcx, [rbp+var_30]
mov rax, [rbp+var_10]
mov rax, [rax+78h]
mov edx, [rbp+var_1C]
imul rdx, 70h ; 'p'
add rax, rdx
mov [rax+20h], rcx
loc_2E84E:
mov [rbp+var_4], 0
loc_2E855:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long mysql_stmt_fetch_column(long long a1, long long a2, unsigned int a3, long long a4)
{
long long v5; // [rsp+0h] [rbp-30h]
if ( *(_DWORD *)(a1 + 80) < 5u || a3 >= *(_DWORD *)(a1 + 96) || *(_DWORD *)(a1 + 80) == 6 )
{
*(_DWORD *)(a1 + 264) = 2051;
strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a1 + 786) = 0;
strncpy(a1 + 268, client_errors[51], 512LL);
*(_BYTE *)(a1 + 779) = 0;
return 1;
}
else
{
if ( *(_QWORD *)(112LL * a3 + *(_QWORD *)(a1 + 120) + 32) )
{
if ( *(_QWORD *)a2 )
**(_QWORD **)a2 = **(_QWORD **)(112LL * a3 + *(_QWORD *)(a1 + 120));
else
*(_QWORD *)a2 = 112LL * a3 + *(_QWORD *)(a1 + 120) + 80;
if ( *(_QWORD *)(a2 + 8) )
**(_BYTE **)(a2 + 8) = 0;
else
*(_QWORD *)(a2 + 8) = a2 + 103;
if ( !*(_QWORD *)(a2 + 24) )
*(_QWORD *)(a2 + 24) = a2 + 100;
**(_BYTE **)(a2 + 24) = 0;
*(_QWORD *)(a2 + 72) = a4;
v5 = *(_QWORD *)(112LL * a3 + *(_QWORD *)(a1 + 120) + 32);
(*(void ( **)(long long, unsigned long long, long long))&mysql_ps_fetch_functions[6
* *(unsigned int *)(((unsigned long long)a3 << 7) + *(_QWORD *)(a1 + 88) + 112)])(
a2,
((unsigned long long)a3 << 7) + *(_QWORD *)(a1 + 88),
112LL * a3 + *(_QWORD *)(a1 + 120) + 32);
*(_QWORD *)(112LL * a3 + *(_QWORD *)(a1 + 120) + 32) = v5;
}
else if ( *(_QWORD *)(a2 + 8) )
{
**(_BYTE **)(a2 + 8) = 1;
}
return 0;
}
}
| mysql_stmt_fetch_column:
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 qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x50],0x5
JC 0x0012e677
MOV EAX,dword ptr [RBP + -0x1c]
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0x60]
JNC 0x0012e677
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x50],0x6
JNZ 0x0012e6eb
LAB_0012e677:
JMP 0x0012e679
LAB_0012e679:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x108],0x803
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x30d
LEA RAX,[0x167150]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113210
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x312],0x0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x10c
LEA RAX,[0x167160]
MOV RSI,qword ptr [RAX + 0x198]
MOV EDX,0x200
CALL 0x00113210
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x30b],0x0
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0012e855
LAB_0012e6eb:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x78]
MOV ECX,dword ptr [RBP + -0x1c]
IMUL RCX,RCX,0x70
ADD RAX,RCX
CMP qword ptr [RAX + 0x20],0x0
JNZ 0x0012e71f
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x0012e71a
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV byte ptr [RAX],0x1
LAB_0012e71a:
JMP 0x0012e84e
LAB_0012e71f:
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX],0x0
JZ 0x0012e74d
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x78]
MOV ECX,dword ptr [RBP + -0x1c]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX],RCX
JMP 0x0012e76a
LAB_0012e74d:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x78]
MOV EAX,dword ptr [RBP + -0x1c]
IMUL RAX,RAX,0x70
ADD RCX,RAX
ADD RCX,0x50
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
LAB_0012e76a:
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x0012e782
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV byte ptr [RAX],0x0
JMP 0x0012e792
LAB_0012e782:
MOV RCX,qword ptr [RBP + -0x18]
ADD RCX,0x67
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x8],RCX
LAB_0012e792:
MOV RAX,qword ptr [RBP + -0x18]
CMP qword ptr [RAX + 0x18],0x0
JNZ 0x0012e7ad
MOV RCX,qword ptr [RBP + -0x18]
ADD RCX,0x64
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x18],RCX
LAB_0012e7ad:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x18]
MOV byte ptr [RAX],0x0
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX + 0x48],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x78]
MOV ECX,dword ptr [RBP + -0x1c]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x58]
MOV ECX,dword ptr [RBP + -0x1c]
SHL RCX,0x7
ADD RAX,RCX
MOV EAX,dword ptr [RAX + 0x70]
MOV ECX,EAX
LEA RAX,[0x1676d0]
IMUL RCX,RCX,0x18
ADD RAX,RCX
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RCX + 0x58]
MOV ECX,dword ptr [RBP + -0x1c]
SHL RCX,0x7
ADD RSI,RCX
MOV RCX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RCX + 0x78]
MOV ECX,dword ptr [RBP + -0x1c]
IMUL RCX,RCX,0x70
ADD RDX,RCX
ADD RDX,0x20
CALL RAX
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x78]
MOV EDX,dword ptr [RBP + -0x1c]
IMUL RDX,RDX,0x70
ADD RAX,RDX
MOV qword ptr [RAX + 0x20],RCX
LAB_0012e84e:
MOV dword ptr [RBP + -0x4],0x0
LAB_0012e855:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 mysql_stmt_fetch_column(long param_1,long *param_2,uint param_3,long param_4)
{
int8 uVar1;
int4 local_c;
if (((*(uint *)(param_1 + 0x50) < 5) || (*(uint *)(param_1 + 0x60) <= param_3)) ||
(*(int *)(param_1 + 0x50) == 6)) {
*(int4 *)(param_1 + 0x108) = 0x803;
strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_1 + 0x312) = 0;
strncpy((char *)(param_1 + 0x10c),PTR_s__001672f8,0x200);
*(int1 *)(param_1 + 0x30b) = 0;
local_c = 1;
}
else {
if (*(long *)(*(long *)(param_1 + 0x78) + (ulong)param_3 * 0x70 + 0x20) == 0) {
if (param_2[1] != 0) {
*(int1 *)param_2[1] = 1;
}
}
else {
if (*param_2 == 0) {
*param_2 = *(long *)(param_1 + 0x78) + (ulong)param_3 * 0x70 + 0x50;
}
else {
*(int8 *)*param_2 =
**(int8 **)(*(long *)(param_1 + 0x78) + (ulong)param_3 * 0x70);
}
if (param_2[1] == 0) {
param_2[1] = (long)param_2 + 0x67;
}
else {
*(int1 *)param_2[1] = 0;
}
if (param_2[3] == 0) {
param_2[3] = (long)param_2 + 100;
}
*(int1 *)param_2[3] = 0;
param_2[9] = param_4;
uVar1 = *(int8 *)(*(long *)(param_1 + 0x78) + (ulong)param_3 * 0x70 + 0x20);
(*(code *)(&mysql_ps_fetch_functions)
[(ulong)*(uint *)(*(long *)(param_1 + 0x58) + (ulong)param_3 * 0x80 + 0x70) * 3])
(param_2,*(long *)(param_1 + 0x58) + (ulong)param_3 * 0x80,
*(long *)(param_1 + 0x78) + (ulong)param_3 * 0x70 + 0x20);
*(int8 *)(*(long *)(param_1 + 0x78) + (ulong)param_3 * 0x70 + 0x20) = uVar1;
}
local_c = 0;
}
return local_c;
}
| |
22,338 | js_reflect_get | bluesky950520[P]quickjs/quickjs.c | static JSValue js_reflect_get(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue obj, prop, receiver;
JSAtom atom;
JSValue ret;
obj = argv[0];
prop = argv[1];
if (JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT)
return JS_ThrowTypeErrorNotAnObject(ctx);
if (argc > 2)
receiver = argv[2];
else
receiver = obj;
atom = JS_ValueToAtom(ctx, prop);
if (unlikely(atom == JS_ATOM_NULL))
return JS_EXCEPTION;
ret = JS_GetPropertyInternal(ctx, obj, atom, receiver, FALSE);
JS_FreeAtom(ctx, atom);
return ret;
} | O1 | c | js_reflect_get:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%r8), %r14
cmpl $-0x1, %r14d
jne 0x1295a
movq (%r8), %r15
movq 0x10(%r8), %rsi
movq 0x18(%r8), %rdx
movq %r15, %r12
movq %r14, %r13
cmpl $0x3, %ecx
jl 0x1290e
movq 0x20(%r8), %r12
movq 0x28(%r8), %r13
movq %rbx, %rdi
callq 0x24093
testl %eax, %eax
je 0x1298c
movl %eax, %ebp
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %eax, %ecx
movq %r12, %r8
movq %r13, %r9
pushq $0x0
pushq $0x0
callq 0x22fa3
popq %rcx
popq %rsi
movq %rax, %r15
movq %rdx, %r14
movq %rbx, %rdi
movl %ebp, %esi
callq 0x207d8
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
andq %r15, %rax
movl %r15d, %r15d
jmp 0x12974
leaq 0x8c6c4(%rip), %rsi # 0x9f025
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x22567
pushq $0x6
popq %r14
xorl %eax, %eax
orq %rax, %r15
movq %r15, %rax
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x6
popq %r14
xorl %r15d, %r15d
jmp 0x12972
| js_reflect_get:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
mov r14, [r8+8]
cmp r14d, 0FFFFFFFFh
jnz short loc_1295A
mov r15, [r8]
mov rsi, [r8+10h]
mov rdx, [r8+18h]
mov r12, r15
mov r13, r14
cmp ecx, 3
jl short loc_1290E
mov r12, [r8+20h]
mov r13, [r8+28h]
loc_1290E:
mov rdi, rbx
call JS_ValueToAtom
test eax, eax
jz short loc_1298C
mov ebp, eax
mov rdi, rbx
mov rsi, r15
mov rdx, r14
mov ecx, eax
mov r8, r12
mov r9, r13
push 0
push 0
call JS_GetPropertyInternal2
pop rcx
pop rsi
mov r15, rax
mov r14, rdx
mov rdi, rbx
mov esi, ebp
call JS_FreeAtom
mov rax, 0FFFFFFFF00000000h
and rax, r15
mov r15d, r15d
jmp short loc_12974
loc_1295A:
lea rsi, aOperandPrototy+20h; "not an object"
xor r15d, r15d
mov rdi, rbx
xor eax, eax
call JS_ThrowTypeError
push 6
pop r14
loc_12972:
xor eax, eax
loc_12974:
or r15, rax
mov rax, r15
mov rdx, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_1298C:
push 6
pop r14
xor r15d, r15d
jmp short loc_12972
| unsigned long long js_reflect_get(long long a1, long long a2, int a3, int a4, long long *a5, int a6)
{
long long v6; // r15
long long v7; // r12
long long v8; // r13
unsigned int v9; // eax
unsigned int v10; // ebp
unsigned long long v11; // rax
long long PropertyInternal2; // r15
if ( (unsigned int)a5[1] != -1 )
{
PropertyInternal2 = 0LL;
JS_ThrowTypeError(a1, (unsigned int)"not an object", a3, a4, (_DWORD)a5, a6);
LABEL_7:
v11 = 0LL;
return v11 | PropertyInternal2;
}
v6 = *a5;
v7 = *a5;
LODWORD(v8) = -1;
if ( a4 >= 3 )
{
v7 = a5[4];
v8 = a5[5];
}
v9 = JS_ValueToAtom(a1, a5[2], a5[3]);
if ( !v9 )
{
PropertyInternal2 = 0LL;
goto LABEL_7;
}
v10 = v9;
PropertyInternal2 = JS_GetPropertyInternal2(a1, v6, -1, v9, v7, v8, 0LL, 0);
JS_FreeAtom(a1, v10);
v11 = PropertyInternal2 & 0xFFFFFFFF00000000LL;
PropertyInternal2 = (unsigned int)PropertyInternal2;
return v11 | PropertyInternal2;
}
| |||
22,339 | js_reflect_get | bluesky950520[P]quickjs/quickjs.c | static JSValue js_reflect_get(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue obj, prop, receiver;
JSAtom atom;
JSValue ret;
obj = argv[0];
prop = argv[1];
if (JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT)
return JS_ThrowTypeErrorNotAnObject(ctx);
if (argc > 2)
receiver = argv[2];
else
receiver = obj;
atom = JS_ValueToAtom(ctx, prop);
if (unlikely(atom == JS_ATOM_NULL))
return JS_EXCEPTION;
ret = JS_GetPropertyInternal(ctx, obj, atom, receiver, FALSE);
JS_FreeAtom(ctx, atom);
return ret;
} | O2 | c | js_reflect_get:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%r8), %r14
cmpl $-0x1, %r14d
jne 0x6a1fd
movq (%r8), %r15
movq 0x10(%r8), %rsi
movq 0x18(%r8), %rdx
movq %r15, %r12
movq %r14, %r13
cmpl $0x3, %ecx
jl 0x6a1b3
movq 0x20(%r8), %r12
movq 0x28(%r8), %r13
movq %rbx, %rdi
callq 0x1e0bc
testl %eax, %eax
je 0x6a205
movl %eax, %ebp
andl $0x0, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %eax, %ecx
movq %r12, %r8
movq %r13, %r9
callq 0x3963b
movq %rax, %r15
movq %rdx, %r14
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1a995
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %r15, %rcx
movl %r15d, %eax
jmp 0x6a20d
movq %rbx, %rdi
callq 0x1d5e1
pushq $0x6
popq %r14
xorl %eax, %eax
xorl %ecx, %ecx
orq %rcx, %rax
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| js_reflect_get:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
mov r14, [r8+8]
cmp r14d, 0FFFFFFFFh
jnz short loc_6A1FD
mov r15, [r8]
mov rsi, [r8+10h]
mov rdx, [r8+18h]
mov r12, r15
mov r13, r14
cmp ecx, 3
jl short loc_6A1B3
mov r12, [r8+20h]
mov r13, [r8+28h]
loc_6A1B3:
mov rdi, rbx
call JS_ValueToAtom
test eax, eax
jz short loc_6A205
mov ebp, eax
and [rsp+38h+var_38], 0
mov rdi, rbx
mov rsi, r15
mov rdx, r14
mov ecx, eax
mov r8, r12
mov r9, r13
call JS_GetPropertyInternal
mov r15, rax
mov r14, rdx
mov rdi, rbx
mov esi, ebp
call JS_FreeAtom
mov rcx, 0FFFFFFFF00000000h
and rcx, r15
mov eax, r15d
jmp short loc_6A20D
loc_6A1FD:
mov rdi, rbx
call JS_ThrowTypeErrorNotAnObject
loc_6A205:
push 6
pop r14
xor eax, eax
xor ecx, ecx
loc_6A20D:
or rax, rcx
mov rdx, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long js_reflect_get(
long long a1,
long long a2,
long long a3,
long long a4,
long long *a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
char v14; // al
long long v15; // r14
long long v16; // r15
long long v17; // r12
long long v18; // r13
int v19; // eax
int v20; // ebp
unsigned long long PropertyInternal; // r15
unsigned long long v22; // rcx
long long v23; // rax
v15 = a5[1];
if ( (_DWORD)v15 != -1 )
{
JS_ThrowTypeErrorNotAnObject(a1, a7, a8, a9, a10, a11, a12, a13, a14, a2, a3, a4, (long long)a5, a6, v14);
LABEL_7:
v23 = 0LL;
v22 = 0LL;
return v22 | v23;
}
v16 = *a5;
v17 = *a5;
v18 = a5[1];
if ( (int)a4 >= 3 )
{
v17 = a5[4];
v18 = a5[5];
}
v19 = JS_ValueToAtom(a1, a5[2], a5[3]);
if ( !v19 )
goto LABEL_7;
v20 = v19;
PropertyInternal = JS_GetPropertyInternal(a1, v16, v15, v19, v17, v18, 0);
JS_FreeAtom(a1, v20);
v22 = PropertyInternal & 0xFFFFFFFF00000000LL;
v23 = (unsigned int)PropertyInternal;
return v22 | v23;
}
| js_reflect_get:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV R14,qword ptr [R8 + 0x8]
CMP R14D,-0x1
JNZ 0x0016a1fd
MOV R15,qword ptr [R8]
MOV RSI,qword ptr [R8 + 0x10]
MOV RDX,qword ptr [R8 + 0x18]
MOV R12,R15
MOV R13,R14
CMP ECX,0x3
JL 0x0016a1b3
MOV R12,qword ptr [R8 + 0x20]
MOV R13,qword ptr [R8 + 0x28]
LAB_0016a1b3:
MOV RDI,RBX
CALL 0x0011e0bc
TEST EAX,EAX
JZ 0x0016a205
MOV EBP,EAX
AND dword ptr [RSP],0x0
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R14
MOV ECX,EAX
MOV R8,R12
MOV R9,R13
CALL 0x0013963b
MOV R15,RAX
MOV R14,RDX
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0011a995
MOV RCX,-0x100000000
AND RCX,R15
MOV EAX,R15D
JMP 0x0016a20d
LAB_0016a1fd:
MOV RDI,RBX
CALL 0x0011d5e1
LAB_0016a205:
PUSH 0x6
POP R14
XOR EAX,EAX
XOR ECX,ECX
LAB_0016a20d:
OR RAX,RCX
MOV RDX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int1 [16]
js_reflect_get(int8 param_1,int8 param_2,int8 param_3,int param_4,
int8 *param_5)
{
int8 uVar1;
int iVar2;
int8 in_RAX;
uint uVar4;
ulong uVar3;
ulong uVar5;
int8 uVar6;
int8 uVar7;
int8 uVar8;
int1 auVar9 [16];
uVar4 = (uint)((ulong)in_RAX >> 0x20);
uVar8 = param_5[1];
if ((int)uVar8 == -1) {
uVar1 = *param_5;
uVar6 = uVar1;
uVar7 = uVar8;
if (2 < param_4) {
uVar6 = param_5[4];
uVar7 = param_5[5];
}
iVar2 = JS_ValueToAtom(param_1,param_5[2],param_5[3]);
if (iVar2 != 0) {
auVar9 = JS_GetPropertyInternal(param_1,uVar1,uVar8,iVar2,uVar6,uVar7,(ulong)uVar4 << 0x20);
uVar8 = auVar9._8_8_;
JS_FreeAtom(param_1,iVar2);
uVar5 = auVar9._0_8_ & 0xffffffff00000000;
uVar3 = auVar9._0_8_ & 0xffffffff;
goto LAB_0016a20d;
}
}
else {
JS_ThrowTypeErrorNotAnObject(param_1);
}
uVar8 = 6;
uVar3 = 0;
uVar5 = 0;
LAB_0016a20d:
auVar9._0_8_ = uVar3 | uVar5;
auVar9._8_8_ = uVar8;
return auVar9;
}
| |
22,340 | rtree_get_req | eloqsql/storage/myisam/rt_index.c | static int rtree_get_req(MI_INFO *info, MI_KEYDEF *keyinfo, uint key_length,
my_off_t page, int level)
{
uchar *k;
uchar *last;
uint nod_flag;
int res;
uchar *page_buf;
uint k_len;
uint *saved_key = (uint*) (info->rtree_recursion_state) + level;
if (!(page_buf = (uchar*)my_alloca((uint)keyinfo->block_length)))
return -1;
if (!_mi_fetch_keypage(info, keyinfo, page, DFLT_INIT_HITS, page_buf, 0))
goto err1;
nod_flag = mi_test_if_nod(page_buf);
k_len = keyinfo->keylength - info->s->base.rec_reflength;
if(info->rtree_recursion_depth >= level)
{
k = page_buf + *saved_key;
if (!nod_flag)
{
/* Only leaf pages contain data references. */
/* Need to check next key with data reference. */
k = rt_PAGE_NEXT_KEY(k, k_len, nod_flag);
}
}
else
{
k = rt_PAGE_FIRST_KEY(page_buf, nod_flag);
}
last = rt_PAGE_END(page_buf);
for (; k < last; k = rt_PAGE_NEXT_KEY(k, k_len, nod_flag))
{
if (nod_flag)
{
/* this is an internal node in the tree */
switch ((res = rtree_get_req(info, keyinfo, key_length,
_mi_kpos(nod_flag, k), level + 1)))
{
case 0: /* found - exit from recursion */
*saved_key = (uint) (k - page_buf);
goto ok;
case 1: /* not found - continue searching */
info->rtree_recursion_depth = level;
break;
default:
case -1: /* error */
goto err1;
}
}
else
{
/* this is a leaf */
uchar *after_key = rt_PAGE_NEXT_KEY(k, k_len, nod_flag);
info->lastpos = _mi_dpos(info, 0, after_key);
info->lastkey_length = k_len + info->s->base.rec_reflength;
memcpy(info->lastkey, k, info->lastkey_length);
info->rtree_recursion_depth = level;
*saved_key = (uint) (k - page_buf);
if (after_key < last)
{
info->int_keypos = (uchar*)saved_key;
memcpy(info->buff, page_buf, keyinfo->block_length);
info->int_maxpos = rt_PAGE_END(info->buff);
info->buff_used = 0;
}
else
{
info->buff_used = 1;
}
res = 0;
goto ok;
}
}
info->lastpos = HA_OFFSET_ERROR;
my_errno = HA_ERR_KEY_NOT_FOUND;
res = 1;
ok:
my_afree((uchar*)page_buf);
return res;
err1:
my_afree((uchar*)page_buf);
info->lastpos = HA_OFFSET_ERROR;
return -1;
} | O3 | c | rtree_get_req:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movslq %ecx, %r14
shlq $0x2, %r14
addq 0x3b8(%rdi), %r14
movzwl 0xe(%rsi), %eax
movq %rsp, %r15
addl $0xf, %eax
andl $-0x10, %eax
subq %rax, %r15
movq %r15, %rsp
movq %rsi, -0x50(%rbp)
movl $0x3, %ecx
movq %r15, %r8
xorl %r9d, %r9d
callq 0x83cd8
testq %rax, %rax
je 0x8a0d2
movzbl (%r15), %ecx
movq (%rbx), %rax
movq %rcx, %rsi
testb %cl, %cl
movl $0x0, %edi
jns 0x89fbf
movl 0x17c(%rax), %edi
movq -0x50(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
movl 0x178(%rax), %eax
movl %ecx, %r8d
subl %eax, %ecx
movq %rcx, -0x40(%rbp)
movl %edi, %r13d
movq -0x38(%rbp), %rcx
cmpl %ecx, 0x3c0(%rbx)
movq %rbx, -0x48(%rbp)
jge 0x89ff3
leaq (%r15,%r13), %rdx
addq $0x2, %rdx
jmp 0x8a006
movl (%r14), %edx
addq %r15, %rdx
testl %edi, %edi
jne 0x8a006
movl -0x40(%rbp), %ecx
addq %rax, %rcx
addq %rcx, %rdx
movq %r14, -0x60(%rbp)
movzbl 0x1(%r15), %ecx
andl $0x7f, %esi
shll $0x8, %esi
orq %rcx, %rsi
movq %r15, -0x68(%rbp)
addq %r15, %rsi
movq %rsi, -0x78(%rbp)
cmpq %rsi, %rdx
jae 0x8a0a0
movq -0x38(%rbp), %rcx
incl %ecx
movl %ecx, -0x58(%rbp)
movl -0x40(%rbp), %ecx
movq %rcx, -0x70(%rbp)
movl %edx, %r15d
subl -0x68(%rbp), %r15d
addl %edi, %r8d
subl %eax, %r8d
movl %r8d, -0x54(%rbp)
movq %rdx, %r14
movq %rdx, -0x80(%rbp)
movq -0x48(%rbp), %rbx
testl %edi, %edi
je 0x8a108
movl %edi, %r12d
movq %r14, %rsi
callq 0x84652
movq %rbx, %rdi
movq -0x50(%rbp), %rsi
movq %rax, %rdx
movl -0x58(%rbp), %ecx
callq 0x89f43
cmpl $0x1, %eax
jne 0x8a0c2
movq -0x38(%rbp), %rax
movl %eax, 0x3c0(%rbx)
addq -0x70(%rbp), %r14
addq %r13, %r14
addl -0x54(%rbp), %r15d
cmpq -0x78(%rbp), %r14
movq -0x80(%rbp), %rdx
movl %r12d, %edi
jb 0x8a054
movq -0x48(%rbp), %rax
movq $-0x1, 0x170(%rax)
callq 0xa1b22
movl $0x78, (%rax)
movl $0x1, %r13d
jmp 0x8a0e3
testl %eax, %eax
movq -0x60(%rbp), %rax
jne 0x8a0d2
movl %r15d, (%rax)
xorl %r13d, %r13d
jmp 0x8a0e3
movq $-0x1, 0x170(%rbx)
movl $0xffffffff, %r13d # imm = 0xFFFFFFFF
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x8a1ce
movl %r13d, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x70(%rbp), %rcx
addq %rdx, %rcx
movq -0x48(%rbp), %rbx
movq (%rbx), %rax
movl 0x178(%rax), %r14d
addq %rcx, %r14
xorl %r13d, %r13d
movq %rbx, %rdi
movq %rdx, %r15
xorl %esi, %esi
movq %r14, %rdx
callq 0x84731
movq %rax, 0x170(%rbx)
movq (%rbx), %rax
movq 0x108(%rbx), %rdi
movq -0x40(%rbp), %rdx
addl 0x178(%rax), %edx
movl %edx, 0x1d8(%rbx)
movq %r15, %rsi
callq 0x29080
movq -0x38(%rbp), %rax
movl %eax, 0x3c0(%rbx)
movq -0x68(%rbp), %rsi
subl %esi, %r15d
movq -0x60(%rbp), %rax
movl %r15d, (%rax)
cmpq -0x78(%rbp), %r14
jae 0x8a1c2
movq %rax, 0x128(%rbx)
movq 0x100(%rbx), %rdi
movq -0x50(%rbp), %rax
movzwl 0xe(%rax), %edx
callq 0x29080
movq 0x100(%rbx), %rax
movzbl 0x1(%rax), %ecx
movzbl (%rax), %edx
andl $0x7f, %edx
shll $0x8, %edx
orq %rcx, %rdx
addq %rax, %rdx
movq %rdx, 0x130(%rbx)
movb $0x0, 0x33d(%rbx)
jmp 0x8a0e3
movb $0x1, 0x33d(%rbx)
jmp 0x8a0e3
callq 0x29270
| rtree_get_req:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov [rbp+var_38], rcx
movsxd r14, ecx
shl r14, 2
add r14, [rdi+3B8h]
movzx eax, word ptr [rsi+0Eh]
mov r15, rsp
add eax, 0Fh
and eax, 0FFFFFFF0h
sub r15, rax
mov rsp, r15
mov [rbp+var_50], rsi
mov ecx, 3
mov r8, r15
xor r9d, r9d
call _mi_fetch_keypage
test rax, rax
jz loc_8A0D2
movzx ecx, byte ptr [r15]
mov rax, [rbx]
mov rsi, rcx
test cl, cl
mov edi, 0
jns short loc_89FBF
mov edi, [rax+17Ch]
loc_89FBF:
mov rcx, [rbp+var_50]
movzx ecx, word ptr [rcx+12h]
mov eax, [rax+178h]
mov r8d, ecx
sub ecx, eax
mov [rbp+var_40], rcx
mov r13d, edi
mov rcx, [rbp+var_38]
cmp [rbx+3C0h], ecx
mov [rbp+var_48], rbx
jge short loc_89FF3
lea rdx, [r15+r13]
add rdx, 2
jmp short loc_8A006
loc_89FF3:
mov edx, [r14]
add rdx, r15
test edi, edi
jnz short loc_8A006
mov ecx, dword ptr [rbp+var_40]
add rcx, rax
add rdx, rcx
loc_8A006:
mov [rbp+var_60], r14
movzx ecx, byte ptr [r15+1]
and esi, 7Fh
shl esi, 8
or rsi, rcx
mov [rbp+var_68], r15
add rsi, r15
mov [rbp+var_78], rsi
cmp rdx, rsi
jnb short loc_8A0A0
mov rcx, [rbp+var_38]
inc ecx
mov [rbp+var_58], ecx
mov ecx, dword ptr [rbp+var_40]
mov [rbp+var_70], rcx
mov r15d, edx
sub r15d, dword ptr [rbp+var_68]
add r8d, edi
sub r8d, eax
mov [rbp+var_54], r8d
mov r14, rdx
mov [rbp+var_80], rdx
mov rbx, [rbp+var_48]
loc_8A054:
test edi, edi
jz loc_8A108
mov r12d, edi
mov rsi, r14
call _mi_kpos
mov rdi, rbx
mov rsi, [rbp+var_50]
mov rdx, rax
mov ecx, [rbp+var_58]
call rtree_get_req
cmp eax, 1
jnz short loc_8A0C2
mov rax, [rbp+var_38]
mov [rbx+3C0h], eax
add r14, [rbp+var_70]
add r14, r13
add r15d, [rbp+var_54]
cmp r14, [rbp+var_78]
mov rdx, [rbp+var_80]
mov edi, r12d
jb short loc_8A054
loc_8A0A0:
mov rax, [rbp+var_48]
mov qword ptr [rax+170h], 0FFFFFFFFFFFFFFFFh
call _my_thread_var
mov dword ptr [rax], 78h ; 'x'
mov r13d, 1
jmp short loc_8A0E3
loc_8A0C2:
test eax, eax
mov rax, [rbp+var_60]
jnz short loc_8A0D2
mov [rax], r15d
xor r13d, r13d
jmp short loc_8A0E3
loc_8A0D2:
mov qword ptr [rbx+170h], 0FFFFFFFFFFFFFFFFh
mov r13d, 0FFFFFFFFh
loc_8A0E3:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz loc_8A1CE
mov eax, r13d
lea rsp, [rbp-28h]
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_8A108:
mov rcx, [rbp+var_70]
add rcx, rdx
mov rbx, [rbp+var_48]
mov rax, [rbx]
mov r14d, [rax+178h]
add r14, rcx
xor r13d, r13d
mov rdi, rbx
mov r15, rdx
xor esi, esi
mov rdx, r14
call _mi_dpos
mov [rbx+170h], rax
mov rax, [rbx]
mov rdi, [rbx+108h]
mov rdx, [rbp+var_40]
add edx, [rax+178h]
mov [rbx+1D8h], edx
mov rsi, r15
call _memcpy
mov rax, [rbp+var_38]
mov [rbx+3C0h], eax
mov rsi, [rbp+var_68]
sub r15d, esi
mov rax, [rbp+var_60]
mov [rax], r15d
cmp r14, [rbp+var_78]
jnb short loc_8A1C2
mov [rbx+128h], rax
mov rdi, [rbx+100h]
mov rax, [rbp+var_50]
movzx edx, word ptr [rax+0Eh]
call _memcpy
mov rax, [rbx+100h]
movzx ecx, byte ptr [rax+1]
movzx edx, byte ptr [rax]
and edx, 7Fh
shl edx, 8
or rdx, rcx
add rdx, rax
mov [rbx+130h], rdx
mov byte ptr [rbx+33Dh], 0
jmp loc_8A0E3
loc_8A1C2:
mov byte ptr [rbx+33Dh], 1
jmp loc_8A0E3
loc_8A1CE:
call ___stack_chk_fail
| long long rtree_get_req(long long *a1, long long a2, long long a3, long long a4)
{
long long *v4; // rbx
unsigned int *v5; // r14
char *v6; // r15
long long v7; // rax
char v8; // si
long long v9; // rdi
long long v10; // rax
int v11; // r8d
bool v12; // cc
unsigned long long v13; // rdx
long long v14; // rcx
const char *v15; // rsi
int v16; // r15d
unsigned long long v17; // r14
unsigned long long v18; // rax
int req; // eax
unsigned int v20; // r13d
long long *v22; // rbx
unsigned long long v23; // r14
unsigned long long v24; // r15
long long v25; // rdi
long long v26; // rdx
char *v27; // rsi
_DWORD *v28; // rax
unsigned long long v29; // [rsp+0h] [rbp-80h] BYREF
const char *v30; // [rsp+8h] [rbp-78h]
long long v31; // [rsp+10h] [rbp-70h]
char *v32; // [rsp+18h] [rbp-68h]
_DWORD *v33; // [rsp+20h] [rbp-60h]
unsigned int v34; // [rsp+28h] [rbp-58h]
int v35; // [rsp+2Ch] [rbp-54h]
long long v36; // [rsp+30h] [rbp-50h]
long long *v37; // [rsp+38h] [rbp-48h]
long long v38; // [rsp+40h] [rbp-40h]
long long v39; // [rsp+48h] [rbp-38h]
unsigned long long v40; // [rsp+50h] [rbp-30h]
v4 = a1;
v40 = __readfsqword(0x28u);
v39 = a4;
v5 = (unsigned int *)(a1[119] + 4LL * (int)a4);
v6 = (char *)&v29 - ((*(unsigned __int16 *)(a2 + 14) + 15) & 0xFFFFFFF0);
v36 = a2;
if ( mi_fetch_keypage(a1, a2, a3) )
{
v7 = *a1;
v8 = *v6;
v9 = 0LL;
if ( *v6 < 0 )
v9 = *(unsigned int *)(v7 + 380);
v10 = *(unsigned int *)(v7 + 376);
v11 = *(unsigned __int16 *)(v36 + 18);
v38 = (unsigned int)(v11 - v10);
v12 = *((_DWORD *)v4 + 240) < (int)v39;
v37 = v4;
if ( v12 )
{
v13 = (unsigned long long)&v6[(unsigned int)v9 + 2];
}
else
{
v13 = (unsigned long long)&v6[*v5];
if ( !(_DWORD)v9 )
v13 += v10 + (unsigned int)v38;
}
v33 = v5;
v14 = (unsigned __int8)v6[1];
v32 = v6;
v15 = &v6[v14 | ((unsigned __int8)(v8 & 0x7F) << 8)];
v30 = v15;
if ( v13 >= (unsigned long long)v15 )
{
LABEL_13:
v37[46] = -1LL;
*(_DWORD *)my_thread_var(v9, v15, v13) = 120;
return 1;
}
else
{
v34 = v39 + 1;
v31 = (unsigned int)v38;
v16 = v13 - (_DWORD)v32;
v35 = v9 + v11 - v10;
v17 = v13;
v29 = v13;
v4 = v37;
while ( 1 )
{
if ( !(_DWORD)v9 )
{
v22 = v37;
v23 = v13 + v31 + *(unsigned int *)(*v37 + 376);
v20 = 0;
v24 = v13;
v22[46] = mi_dpos(v37, 0, v23);
v25 = v22[33];
v26 = (unsigned int)(*(_DWORD *)(*v22 + 376) + v38);
*((_DWORD *)v22 + 118) = v26;
memcpy(v25, v24, v26);
*((_DWORD *)v22 + 240) = v39;
v27 = v32;
v28 = v33;
*v33 = v24 - (_DWORD)v32;
if ( v23 >= (unsigned long long)v30 )
{
*((_BYTE *)v22 + 829) = 1;
}
else
{
v22[37] = (long long)v28;
memcpy(v22[32], v27, *(unsigned __int16 *)(v36 + 14));
v22[38] = v22[32]
+ (*(unsigned __int8 *)(v22[32] + 1) | (unsigned long long)((unsigned __int8)(*(_BYTE *)v22[32] & 0x7F) << 8));
*((_BYTE *)v22 + 829) = 0;
}
return v20;
}
v18 = mi_kpos(v9, v17);
v15 = (const char *)v36;
req = rtree_get_req(v4, v36, v18, v34);
if ( req != 1 )
break;
*((_DWORD *)v4 + 240) = v39;
v17 += (unsigned int)v9 + v31;
v16 += v35;
v13 = v29;
v9 = (unsigned int)v9;
if ( v17 >= (unsigned long long)v30 )
goto LABEL_13;
}
if ( req )
goto LABEL_16;
*v33 = v16;
return 0;
}
}
else
{
LABEL_16:
v4[46] = -1LL;
return (unsigned int)-1;
}
}
| rtree_get_req:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV qword ptr [RBP + -0x38],RCX
MOVSXD R14,ECX
SHL R14,0x2
ADD R14,qword ptr [RDI + 0x3b8]
MOVZX EAX,word ptr [RSI + 0xe]
MOV R15,RSP
ADD EAX,0xf
AND EAX,0xfffffff0
SUB R15,RAX
MOV RSP,R15
MOV qword ptr [RBP + -0x50],RSI
MOV ECX,0x3
MOV R8,R15
XOR R9D,R9D
CALL 0x00183cd8
TEST RAX,RAX
JZ 0x0018a0d2
MOVZX ECX,byte ptr [R15]
MOV RAX,qword ptr [RBX]
MOV RSI,RCX
TEST CL,CL
MOV EDI,0x0
JNS 0x00189fbf
MOV EDI,dword ptr [RAX + 0x17c]
LAB_00189fbf:
MOV RCX,qword ptr [RBP + -0x50]
MOVZX ECX,word ptr [RCX + 0x12]
MOV EAX,dword ptr [RAX + 0x178]
MOV R8D,ECX
SUB ECX,EAX
MOV qword ptr [RBP + -0x40],RCX
MOV R13D,EDI
MOV RCX,qword ptr [RBP + -0x38]
CMP dword ptr [RBX + 0x3c0],ECX
MOV qword ptr [RBP + -0x48],RBX
JGE 0x00189ff3
LEA RDX,[R15 + R13*0x1]
ADD RDX,0x2
JMP 0x0018a006
LAB_00189ff3:
MOV EDX,dword ptr [R14]
ADD RDX,R15
TEST EDI,EDI
JNZ 0x0018a006
MOV ECX,dword ptr [RBP + -0x40]
ADD RCX,RAX
ADD RDX,RCX
LAB_0018a006:
MOV qword ptr [RBP + -0x60],R14
MOVZX ECX,byte ptr [R15 + 0x1]
AND ESI,0x7f
SHL ESI,0x8
OR RSI,RCX
MOV qword ptr [RBP + -0x68],R15
ADD RSI,R15
MOV qword ptr [RBP + -0x78],RSI
CMP RDX,RSI
JNC 0x0018a0a0
MOV RCX,qword ptr [RBP + -0x38]
INC ECX
MOV dword ptr [RBP + -0x58],ECX
MOV ECX,dword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x70],RCX
MOV R15D,EDX
SUB R15D,dword ptr [RBP + -0x68]
ADD R8D,EDI
SUB R8D,EAX
MOV dword ptr [RBP + -0x54],R8D
MOV R14,RDX
MOV qword ptr [RBP + -0x80],RDX
MOV RBX,qword ptr [RBP + -0x48]
LAB_0018a054:
TEST EDI,EDI
JZ 0x0018a108
MOV R12D,EDI
MOV RSI,R14
CALL 0x00184652
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,RAX
MOV ECX,dword ptr [RBP + -0x58]
CALL 0x00189f43
CMP EAX,0x1
JNZ 0x0018a0c2
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RBX + 0x3c0],EAX
ADD R14,qword ptr [RBP + -0x70]
ADD R14,R13
ADD R15D,dword ptr [RBP + -0x54]
CMP R14,qword ptr [RBP + -0x78]
MOV RDX,qword ptr [RBP + -0x80]
MOV EDI,R12D
JC 0x0018a054
LAB_0018a0a0:
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX + 0x170],-0x1
CALL 0x001a1b22
MOV dword ptr [RAX],0x78
MOV R13D,0x1
JMP 0x0018a0e3
LAB_0018a0c2:
TEST EAX,EAX
MOV RAX,qword ptr [RBP + -0x60]
JNZ 0x0018a0d2
MOV dword ptr [RAX],R15D
XOR R13D,R13D
JMP 0x0018a0e3
LAB_0018a0d2:
MOV qword ptr [RBX + 0x170],-0x1
MOV R13D,0xffffffff
LAB_0018a0e3:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0018a1ce
MOV EAX,R13D
LEA RSP,[RBP + -0x28]
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0018a108:
MOV RCX,qword ptr [RBP + -0x70]
ADD RCX,RDX
MOV RBX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBX]
MOV R14D,dword ptr [RAX + 0x178]
ADD R14,RCX
XOR R13D,R13D
MOV RDI,RBX
MOV R15,RDX
XOR ESI,ESI
MOV RDX,R14
CALL 0x00184731
MOV qword ptr [RBX + 0x170],RAX
MOV RAX,qword ptr [RBX]
MOV RDI,qword ptr [RBX + 0x108]
MOV RDX,qword ptr [RBP + -0x40]
ADD EDX,dword ptr [RAX + 0x178]
MOV dword ptr [RBX + 0x1d8],EDX
MOV RSI,R15
CALL 0x00129080
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RBX + 0x3c0],EAX
MOV RSI,qword ptr [RBP + -0x68]
SUB R15D,ESI
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX],R15D
CMP R14,qword ptr [RBP + -0x78]
JNC 0x0018a1c2
MOV qword ptr [RBX + 0x128],RAX
MOV RDI,qword ptr [RBX + 0x100]
MOV RAX,qword ptr [RBP + -0x50]
MOVZX EDX,word ptr [RAX + 0xe]
CALL 0x00129080
MOV RAX,qword ptr [RBX + 0x100]
MOVZX ECX,byte ptr [RAX + 0x1]
MOVZX EDX,byte ptr [RAX]
AND EDX,0x7f
SHL EDX,0x8
OR RDX,RCX
ADD RDX,RAX
MOV qword ptr [RBX + 0x130],RDX
MOV byte ptr [RBX + 0x33d],0x0
JMP 0x0018a0e3
LAB_0018a1c2:
MOV byte ptr [RBX + 0x33d],0x1
JMP 0x0018a0e3
LAB_0018a1ce:
CALL 0x00129270
|
int8 rtree_get_req(long *param_1,long param_2,int8 param_3,int8 param_4)
{
ushort uVar1;
void *pvVar2;
long lVar3;
long *plVar4;
int iVar5;
long lVar6;
int8 uVar7;
int4 *puVar8;
uint uVar9;
byte *pbVar10;
int iVar11;
ulong uVar12;
uint *puVar13;
byte *pbVar14;
uint uVar15;
byte *pbVar16;
long in_FS_OFFSET;
int8 uStack_90;
int8 local_88;
byte *local_80;
ulong local_78;
byte *local_70;
uint *local_68;
int local_60;
int local_5c;
long local_58;
long *local_50;
ulong local_48;
int8 local_40;
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
puVar13 = (uint *)((long)(int)param_4 * 4 + param_1[0x77]);
lVar3 = -(ulong)(*(ushort *)(param_2 + 0xe) + 0xf & 0xfffffff0);
pbVar16 = (byte *)((long)&local_88 + lVar3);
local_58 = param_2;
local_40 = param_4;
*(int8 *)((long)&uStack_90 + lVar3) = 0x189f9d;
lVar6 = _mi_fetch_keypage();
if (lVar6 == 0) {
LAB_0018a0d2:
param_1[0x2e] = -1;
uVar7 = 0xffffffff;
}
else {
uVar12 = 0;
if ((char)*pbVar16 < '\0') {
uVar12 = (ulong)*(uint *)(*param_1 + 0x17c);
}
uVar9 = *(uint *)(*param_1 + 0x178);
local_48 = (ulong)(*(ushort *)(local_58 + 0x12) - uVar9);
iVar11 = (int)uVar12;
local_50 = param_1;
if ((int)param_1[0x78] < (int)local_40) {
pbVar10 = pbVar16 + uVar12 + 2;
}
else {
pbVar10 = pbVar16 + *puVar13;
if (iVar11 == 0) {
pbVar10 = pbVar10 + local_48 + uVar9;
}
}
local_68 = puVar13;
local_80 = pbVar16 + ((ulong)((*pbVar16 & 0x7f) << 8) |
(ulong)*(byte *)((long)&local_88 + lVar3 + 1));
local_70 = pbVar16;
if (pbVar10 < local_80) {
local_60 = (int)local_40 + 1;
local_70._0_4_ = (int)pbVar16;
uVar15 = (int)pbVar10 - (int)local_70;
local_5c = ((uint)*(ushort *)(local_58 + 0x12) + iVar11) - uVar9;
local_88 = pbVar10;
local_78 = local_48;
do {
plVar4 = local_50;
pbVar16 = local_88;
if (iVar11 == 0) {
pbVar14 = local_88 + *(uint *)(*local_50 + 0x178) + local_78;
uVar7 = 0;
*(int8 *)((long)&uStack_90 + lVar3) = 0x18a133;
lVar6 = _mi_dpos(plVar4,0,pbVar14);
plVar4[0x2e] = lVar6;
pvVar2 = (void *)plVar4[0x21];
uVar9 = (int)local_48 + *(int *)(*plVar4 + 0x178);
*(uint *)(plVar4 + 0x3b) = uVar9;
*(int8 *)((long)&uStack_90 + lVar3) = 0x18a15c;
memcpy(pvVar2,pbVar16,(ulong)uVar9);
pbVar10 = local_70;
*(int *)(plVar4 + 0x78) = (int)local_40;
*local_68 = (int)pbVar16 - (int)local_70;
if (pbVar14 < local_80) {
plVar4[0x25] = (long)local_68;
pvVar2 = (void *)plVar4[0x20];
uVar1 = *(ushort *)(local_58 + 0xe);
*(int8 *)((long)&uStack_90 + lVar3) = 0x18a195;
memcpy(pvVar2,pbVar10,(ulong)uVar1);
pbVar16 = (byte *)plVar4[0x20];
plVar4[0x26] = (long)(pbVar16 + ((ulong)((*pbVar16 & 0x7f) << 8) | (ulong)pbVar16[1]));
*(int1 *)((long)plVar4 + 0x33d) = 0;
}
else {
*(int1 *)((long)plVar4 + 0x33d) = 1;
}
goto LAB_0018a0e3;
}
*(int8 *)((long)&uStack_90 + lVar3) = 0x18a067;
uVar7 = _mi_kpos(uVar12,pbVar10);
lVar6 = local_58;
iVar5 = local_60;
*(int8 *)((long)&uStack_90 + lVar3) = 0x18a079;
iVar5 = rtree_get_req(param_1,lVar6,uVar7,iVar5);
if (iVar5 != 1) {
if (iVar5 != 0) goto LAB_0018a0d2;
*local_68 = uVar15;
uVar7 = 0;
goto LAB_0018a0e3;
}
*(int *)(param_1 + 0x78) = (int)local_40;
pbVar10 = pbVar10 + uVar12 + local_78;
uVar15 = uVar15 + local_5c;
} while (pbVar10 < local_80);
}
local_50[0x2e] = -1;
*(int8 *)((long)&uStack_90 + lVar3) = 0x18a0b4;
puVar8 = (int4 *)_my_thread_var();
*puVar8 = 0x78;
uVar7 = 1;
}
LAB_0018a0e3:
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return uVar7;
}
/* WARNING: Subroutine does not return */
*(code **)((long)&uStack_90 + lVar3) = rtree_get_next;
__stack_chk_fail();
}
| |
22,341 | intx::operator<(intx::uint<256u> const&, intx::uint<256u> const&) | corpus-core[P]colibri-stateless/build_O0/_deps/intx-src/include/intx/intx.hpp | inline constexpr bool operator<(const uint256& x, const uint256& y) noexcept
{
auto xp = uint128{x[2], x[3]};
auto yp = uint128{y[2], y[3]};
if (xp == yp)
{
xp = uint128{x[0], x[1]};
yp = uint128{y[0], y[1]};
}
return xp < yp;
} | O0 | cpp | intx::operator<(intx::uint<256u> const&, intx::uint<256u> const&):
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movl $0x2, %esi
callq 0x5fde0
movq (%rax), %rax
movq %rax, -0xa0(%rbp)
movq -0x8(%rbp), %rdi
movl $0x3, %esi
callq 0x5fde0
movq -0xa0(%rbp), %rsi
movq (%rax), %rdx
leaq -0x20(%rbp), %rdi
callq 0x60120
movq -0x10(%rbp), %rdi
movl $0x2, %esi
callq 0x5fde0
movq (%rax), %rax
movq %rax, -0x98(%rbp)
movq -0x10(%rbp), %rdi
movl $0x3, %esi
callq 0x5fde0
movq -0x98(%rbp), %rsi
movq (%rax), %rdx
leaq -0x30(%rbp), %rdi
callq 0x60120
movq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x50(%rbp), %rdx
movq -0x48(%rbp), %rcx
callq 0x62c70
testb $0x1, %al
jne 0x66113
jmp 0x661a3
movq -0x8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x5fde0
movq (%rax), %rax
movq %rax, -0xb0(%rbp)
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x5fde0
movq -0xb0(%rbp), %rsi
movq (%rax), %rdx
leaq -0x60(%rbp), %rdi
callq 0x60120
movq -0x60(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x5fde0
movq (%rax), %rax
movq %rax, -0xa8(%rbp)
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0x5fde0
movq -0xa8(%rbp), %rsi
movq (%rax), %rdx
leaq -0x70(%rbp), %rdi
callq 0x60120
movq -0x70(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq -0x90(%rbp), %rdx
movq -0x88(%rbp), %rcx
callq 0x62900
andb $0x1, %al
addq $0xb0, %rsp
popq %rbp
retq
nop
| _ZN4intxltERKNS_4uintILj256EEES3_:
push rbp
mov rbp, rsp
sub rsp, 0B0h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]
mov esi, 2
call _ZNK4intx4uintILj256EEixEm; intx::uint<256u>::operator[](ulong)
mov rax, [rax]
mov [rbp+var_A0], rax
mov rdi, [rbp+var_8]
mov esi, 3
call _ZNK4intx4uintILj256EEixEm; intx::uint<256u>::operator[](ulong)
mov rsi, [rbp+var_A0]
mov rdx, [rax]
lea rdi, [rbp+var_20]
call _ZN4intx4uintILj128EEC2Emm; intx::uint<128u>::uint(ulong,ulong)
mov rdi, [rbp+var_10]
mov esi, 2
call _ZNK4intx4uintILj256EEixEm; intx::uint<256u>::operator[](ulong)
mov rax, [rax]
mov [rbp+var_98], rax
mov rdi, [rbp+var_10]
mov esi, 3
call _ZNK4intx4uintILj256EEixEm; intx::uint<256u>::operator[](ulong)
mov rsi, [rbp+var_98]
mov rdx, [rax]
lea rdi, [rbp+var_30]
call _ZN4intx4uintILj128EEC2Emm; intx::uint<128u>::uint(ulong,ulong)
mov rax, [rbp+var_20]
mov [rbp+var_40], rax
mov rax, [rbp+var_18]
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
mov [rbp+var_50], rax
mov rax, [rbp+var_28]
mov [rbp+var_48], rax
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_38]
mov rdx, [rbp+var_50]
mov rcx, [rbp+var_48]
call _ZN4intxeqENS_4uintILj128EEES1_; intx::operator==(intx::uint<128u>,intx::uint<128u>)
test al, 1
jnz short loc_66113
jmp loc_661A3
loc_66113:
mov rdi, [rbp+var_8]
xor eax, eax
mov esi, eax
call _ZNK4intx4uintILj256EEixEm; intx::uint<256u>::operator[](ulong)
mov rax, [rax]
mov [rbp+var_B0], rax
mov rdi, [rbp+var_8]
mov esi, 1
call _ZNK4intx4uintILj256EEixEm; intx::uint<256u>::operator[](ulong)
mov rsi, [rbp+var_B0]
mov rdx, [rax]
lea rdi, [rbp+var_60]
call _ZN4intx4uintILj128EEC2Emm; intx::uint<128u>::uint(ulong,ulong)
mov rax, [rbp+var_60]
mov [rbp+var_20], rax
mov rax, [rbp+var_58]
mov [rbp+var_18], rax
mov rdi, [rbp+var_10]
xor eax, eax
mov esi, eax
call _ZNK4intx4uintILj256EEixEm; intx::uint<256u>::operator[](ulong)
mov rax, [rax]
mov [rbp+var_A8], rax
mov rdi, [rbp+var_10]
mov esi, 1
call _ZNK4intx4uintILj256EEixEm; intx::uint<256u>::operator[](ulong)
mov rsi, [rbp+var_A8]
mov rdx, [rax]
lea rdi, [rbp+var_70]
call _ZN4intx4uintILj128EEC2Emm; intx::uint<128u>::uint(ulong,ulong)
mov rax, [rbp+var_70]
mov [rbp+var_30], rax
mov rax, [rbp+var_68]
mov [rbp+var_28], rax
loc_661A3:
mov rax, [rbp+var_20]
mov [rbp+var_80], rax
mov rax, [rbp+var_18]
mov [rbp+var_78], rax
mov rax, [rbp+var_30]
mov [rbp+var_90], rax
mov rax, [rbp+var_28]
mov [rbp+var_88], rax
mov rdi, [rbp+var_80]
mov rsi, [rbp+var_78]
mov rdx, [rbp+var_90]
mov rcx, [rbp+var_88]
call _ZN4intxltENS_4uintILj128EEES1_; intx::operator<(intx::uint<128u>,intx::uint<128u>)
and al, 1
add rsp, 0B0h
pop rbp
retn
| bool intx::operator<(long long a1, long long a2)
{
long long *v2; // rax
long long *v3; // rax
long long *v4; // rax
long long *v5; // rax
long long v7; // [rsp+0h] [rbp-B0h]
long long v8; // [rsp+8h] [rbp-A8h]
long long v9; // [rsp+10h] [rbp-A0h]
long long v10; // [rsp+18h] [rbp-98h]
_QWORD v11[2]; // [rsp+40h] [rbp-70h] BYREF
_QWORD v12[6]; // [rsp+50h] [rbp-60h] BYREF
long long v13; // [rsp+80h] [rbp-30h] BYREF
long long v14; // [rsp+88h] [rbp-28h]
long long v15; // [rsp+90h] [rbp-20h] BYREF
long long v16; // [rsp+98h] [rbp-18h]
long long v17; // [rsp+A0h] [rbp-10h]
long long v18; // [rsp+A8h] [rbp-8h]
v18 = a1;
v17 = a2;
v9 = *(_QWORD *)intx::uint<256u>::operator[](a1, 2LL);
v2 = (long long *)intx::uint<256u>::operator[](a1, 3LL);
intx::uint<128u>::uint(&v15, v9, *v2);
v10 = *(_QWORD *)intx::uint<256u>::operator[](v17, 2LL);
v3 = (long long *)intx::uint<256u>::operator[](v17, 3LL);
intx::uint<128u>::uint(&v13, v10, *v3);
v12[4] = v15;
v12[5] = v16;
v12[2] = v13;
v12[3] = v14;
if ( intx::operator==(v15, v16, v13, v14) )
{
v7 = *(_QWORD *)intx::uint<256u>::operator[](v18, 0LL);
v4 = (long long *)intx::uint<256u>::operator[](v18, 1LL);
intx::uint<128u>::uint(v12, v7, *v4);
v15 = v12[0];
v16 = v12[1];
v8 = *(_QWORD *)intx::uint<256u>::operator[](v17, 0LL);
v5 = (long long *)intx::uint<256u>::operator[](v17, 1LL);
intx::uint<128u>::uint(v11, v8, *v5);
v13 = v11[0];
v14 = v11[1];
}
return intx::operator<(v15, v16, v13, v14);
}
| operator<:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xb0
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x2
CALL 0x0015fde0
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0xa0],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x3
CALL 0x0015fde0
MOV RSI,qword ptr [RBP + -0xa0]
MOV RDX,qword ptr [RAX]
LEA RDI,[RBP + -0x20]
CALL 0x00160120
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x2
CALL 0x0015fde0
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x98],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x3
CALL 0x0015fde0
MOV RSI,qword ptr [RBP + -0x98]
MOV RDX,qword ptr [RAX]
LEA RDI,[RBP + -0x30]
CALL 0x00160120
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x48],RAX
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x48]
CALL 0x00162c70
TEST AL,0x1
JNZ 0x00166113
JMP 0x001661a3
LAB_00166113:
MOV RDI,qword ptr [RBP + -0x8]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x0015fde0
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0xb0],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x1
CALL 0x0015fde0
MOV RSI,qword ptr [RBP + -0xb0]
MOV RDX,qword ptr [RAX]
LEA RDI,[RBP + -0x60]
CALL 0x00160120
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x10]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x0015fde0
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0xa8],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x1
CALL 0x0015fde0
MOV RSI,qword ptr [RBP + -0xa8]
MOV RDX,qword ptr [RAX]
LEA RDI,[RBP + -0x70]
CALL 0x00160120
MOV RAX,qword ptr [RBP + -0x70]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x28],RAX
LAB_001661a3:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x80],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x90],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x88],RAX
MOV RDI,qword ptr [RBP + -0x80]
MOV RSI,qword ptr [RBP + -0x78]
MOV RDX,qword ptr [RBP + -0x90]
MOV RCX,qword ptr [RBP + -0x88]
CALL 0x00162900
AND AL,0x1
ADD RSP,0xb0
POP RBP
RET
|
/* intx::TEMPNAMEPLACEHOLDERVALUE(intx::uint<256u> const&, intx::uint<256u> const&) */
ulong intx::operator<(uint *param_1,uint *param_2)
{
ulong *puVar1;
ulong uVar2;
int8 local_78;
int8 local_70;
int8 local_68;
int8 local_60;
int8 local_58;
int8 local_50;
int8 local_48;
int8 local_40;
int8 local_38;
int8 local_30;
int8 local_28;
int8 local_20;
uint *local_18;
uint<256u> *local_10;
local_18 = param_2;
local_10 = (uint<256u> *)param_1;
puVar1 = (ulong *)uint<256u>::operator[]((uint<256u> *)param_1,2);
uVar2 = *puVar1;
puVar1 = (ulong *)uint<256u>::operator[](local_10,3);
uint<128u>::uint((uint<128u> *)&local_28,uVar2,*puVar1);
puVar1 = (ulong *)uint<256u>::operator[]((uint<256u> *)local_18,2);
uVar2 = *puVar1;
puVar1 = (ulong *)uint<256u>::operator[]((uint<256u> *)local_18,3);
uint<128u>::uint((uint<128u> *)&local_38,uVar2,*puVar1);
local_48 = local_28;
local_40 = local_20;
local_58 = local_38;
local_50 = local_30;
uVar2 = operator==(local_28,local_20,local_38,local_30);
if ((uVar2 & 1) != 0) {
puVar1 = (ulong *)uint<256u>::operator[](local_10,0);
uVar2 = *puVar1;
puVar1 = (ulong *)uint<256u>::operator[](local_10,1);
uint<128u>::uint((uint<128u> *)&local_68,uVar2,*puVar1);
local_28 = local_68;
local_20 = local_60;
puVar1 = (ulong *)uint<256u>::operator[]((uint<256u> *)local_18,0);
uVar2 = *puVar1;
puVar1 = (ulong *)uint<256u>::operator[]((uint<256u> *)local_18,1);
uint<128u>::uint((uint<128u> *)&local_78,uVar2,*puVar1);
local_38 = local_78;
local_30 = local_70;
}
uVar2 = operator<(local_28,local_20,local_38,local_30);
return uVar2 & 0xffffffffffffff01;
}
| |
22,342 | minja::Parser::parseCallArgs() | monkey531[P]llama/common/minja.hpp | ArgumentsExpression parseCallArgs() {
consumeSpaces();
if (consumeToken("(").empty()) throw std::runtime_error("Expected opening parenthesis in call args");
ArgumentsExpression result;
while (it != end) {
if (!consumeToken(")").empty()) {
return result;
}
auto expr = parseExpression();
if (!expr) throw std::runtime_error("Expected expression in call args");
if (auto ident = dynamic_cast<VariableExpr*>(expr.get())) {
if (!consumeToken("=").empty()) {
auto value = parseExpression();
if (!value) throw std::runtime_error("Expected expression in for named arg");
result.kwargs.emplace_back(ident->get_name(), std::move(value));
} else {
result.args.emplace_back(std::move(expr));
}
} else {
result.args.emplace_back(std::move(expr));
}
if (consumeToken(",").empty()) {
if (consumeToken(")").empty()) {
throw std::runtime_error("Expected closing parenthesis in call args");
}
return result;
}
}
throw std::runtime_error("Expected closing parenthesis in call args");
} | O2 | cpp | minja::Parser::parseCallArgs():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r12
movq %rdi, 0x10(%rsp)
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x66180
leaq 0x5364c(%rip), %rsi # 0xbdb8a
leaq 0x30(%rsp), %rdi
leaq 0x18(%rsp), %rdx
callq 0x2a75e
leaq 0x58(%rsp), %rdi
leaq 0x30(%rsp), %rdx
pushq $0x1
popq %rcx
movq %r12, %rsi
callq 0x65894
leaq 0x58(%rsp), %rdi
movq 0x8(%rdi), %rbx
callq 0x25258
leaq 0x30(%rsp), %rdi
callq 0x25258
testq %rbx, %rbx
je 0x6a85b
xorps %xmm0, %xmm0
movq 0x10(%rsp), %rax
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
addq $0x18, %rax
movq %rax, 0x50(%rsp)
movq $0x0, 0x28(%rsp)
leaq 0x30(%rsp), %r15
leaq 0x18(%rsp), %r14
leaq 0x58(%rsp), %rbx
pushq $0x1
popq %r13
movq 0x20(%r12), %rax
cmpq 0x18(%r12), %rax
je 0x6a7ad
movq %r15, %rdi
leaq 0x5326e(%rip), %rsi # 0xbd843
movq %r14, %rdx
callq 0x2a75e
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl %r13d, %ecx
callq 0x65894
movq 0x60(%rsp), %rbp
movq %rbx, %rdi
callq 0x25258
movq %r15, %rdi
callq 0x25258
testq %rbp, %rbp
jne 0x6a799
movq %r14, %rdi
movq %r12, %rsi
movl %r13d, %edx
callq 0x650a2
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x6a7df
leaq 0x97d61(%rip), %rsi # 0x102390
leaq 0x98182(%rip), %rdx # 0x1027b8
xorl %ecx, %ecx
callq 0x24a30
testq %rax, %rax
je 0x6a6da
movq %rax, %rbp
movq %r15, %rdi
leaq 0x4e8d7(%rip), %rsi # 0xb8f2a
leaq 0xf(%rsp), %rdx
callq 0x2a75e
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl %r13d, %ecx
callq 0x65894
movq 0x60(%rsp), %r14
movq %rbx, %rdi
callq 0x25258
movq %r15, %rdi
callq 0x25258
testq %r14, %r14
leaq 0x18(%rsp), %r14
je 0x6a6da
movq %r15, %rdi
movq %r12, %rsi
movl %r13d, %edx
callq 0x650a2
cmpq $0x0, 0x30(%rsp)
je 0x6a7fb
addq $0x20, %rbp
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x24c40
movq 0x50(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x6ffba
movq %rbx, %rdi
callq 0x25258
leaq 0x38(%rsp), %rdi
callq 0x37354
jmp 0x6a6e7
movq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x696a8
movq %r15, %rdi
leaq 0x4ebdd(%rip), %rsi # 0xb92ce
leaq 0xf(%rsp), %rdx
callq 0x2a75e
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl %r13d, %ecx
callq 0x65894
movq 0x60(%rsp), %rbp
movq %rbx, %rdi
callq 0x25258
movq %r15, %rdi
callq 0x25258
testq %rbp, %rbp
jne 0x6a775
movq %r15, %rdi
leaq 0x53113(%rip), %rsi # 0xbd843
leaq 0xf(%rsp), %rdx
callq 0x2a75e
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl %r13d, %ecx
callq 0x65894
movq 0x60(%rsp), %r14
movq %rbx, %rdi
callq 0x25258
movq %r15, %rdi
callq 0x25258
movb $0x1, %al
movq %rax, 0x28(%rsp)
testq %r14, %r14
leaq 0x18(%rsp), %r14
je 0x6a82b
leaq 0x20(%rsp), %rdi
callq 0x37354
testq %rbp, %rbp
jne 0x6a5bb
testb $0x1, 0x28(%rsp)
jne 0x6a799
movq 0x10(%rsp), %rdi
callq 0x6a97a
movq 0x10(%rsp), %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x24470
movq %rax, %r14
leaq 0x4eecd(%rip), %rsi # 0xb968c
movq %rax, %rdi
callq 0x24330
movq 0x99822(%rip), %rsi # 0x103ff0
movq 0x99783(%rip), %rdx # 0x103f58
movq %r14, %rdi
callq 0x24f50
jmp 0x6a82b
pushq $0x10
popq %rdi
callq 0x24470
movq %rax, %r14
leaq 0x4ee55(%rip), %rsi # 0xb9646
movq %rax, %rdi
callq 0x24330
jmp 0x6a845
pushq $0x10
popq %rdi
callq 0x24470
movq %rax, %r14
leaq 0x4ee5a(%rip), %rsi # 0xb9667
movq %rax, %rdi
callq 0x24330
movq 0x997d4(%rip), %rsi # 0x103ff0
movq 0x99735(%rip), %rdx # 0x103f58
movq %r14, %rdi
callq 0x24f50
pushq $0x10
popq %rdi
callq 0x24470
movq %rax, %r14
leaq 0x4ee4f(%rip), %rsi # 0xb968c
movq %rax, %rdi
callq 0x24330
movq 0x997a4(%rip), %rsi # 0x103ff0
movq 0x99705(%rip), %rdx # 0x103f58
movq %r14, %rdi
callq 0x24f50
pushq $0x10
popq %rdi
callq 0x24470
movq %rax, %r14
leaq 0x4edaf(%rip), %rsi # 0xb961c
movq %rax, %rdi
callq 0x24330
movq 0x99774(%rip), %rsi # 0x103ff0
movq 0x996d5(%rip), %rdx # 0x103f58
movq %r14, %rdi
callq 0x24f50
movq %rax, %rbx
movq %r14, %rdi
callq 0x246b0
jmp 0x6a94a
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x25258
jmp 0x6a94a
movq %rax, %rbx
jmp 0x6a94a
jmp 0x6a8ea
jmp 0x6a8d9
movq %rax, %rbx
movq %r14, %rdi
callq 0x246b0
jmp 0x6a8dc
jmp 0x6a91f
jmp 0x6a910
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x25258
jmp 0x6a8dc
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x37354
jmp 0x6a922
jmp 0x6a91f
movq %rax, %rbx
movq %r14, %rdi
callq 0x246b0
jmp 0x6a922
jmp 0x6a93d
movq %rax, %rbx
movq %r14, %rdi
callq 0x246b0
jmp 0x6a940
jmp 0x6a91f
jmp 0x6a91f
jmp 0x6a910
jmp 0x6a91f
jmp 0x6a93d
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x25258
jmp 0x6a922
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x37354
jmp 0x6a940
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x25258
jmp 0x6a940
movq %rax, %rbx
movq 0x10(%rsp), %rdi
callq 0x6a97a
movq %rbx, %rdi
callq 0x24fe0
| _ZN5minja6Parser13parseCallArgsEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov r12, rsi
mov [rsp+0A8h+var_98], rdi
push 1
pop rsi
mov rdi, r12
call _ZN5minja6Parser13consumeSpacesENS_13SpaceHandlingE; minja::Parser::consumeSpaces(minja::SpaceHandling)
lea rsi, asc_BDB85+5; "("
lea rdi, [rsp+0A8h+var_78]
lea rdx, [rsp+0A8h+lpsrc]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0A8h+var_50]
lea rdx, [rsp+0A8h+var_78]
push 1
pop rcx
mov rsi, r12
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
lea rdi, [rsp+0A8h+var_50]; void *
mov rbx, [rdi+8]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test rbx, rbx
jz loc_6A85B
xorps xmm0, xmm0
mov rax, [rsp+0A8h+var_98]
movups xmmword ptr [rax+20h], xmm0
movups xmmword ptr [rax+10h], xmm0
movups xmmword ptr [rax], xmm0
add rax, 18h
mov [rsp+0A8h+var_58], rax
mov [rsp+0A8h+var_80], 0
lea r15, [rsp+0A8h+var_78]
lea r14, [rsp+0A8h+lpsrc]
lea rbx, [rsp+0A8h+var_50]
push 1
pop r13
loc_6A5BB:
mov rax, [r12+20h]
cmp rax, [r12+18h]
jz loc_6A7AD
mov rdi, r15
lea rsi, a09401910201912+51h; ")"
mov rdx, r14
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r12
mov rdx, r15
mov ecx, r13d
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov rbp, [rsp+0A8h+var_48]
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test rbp, rbp
jnz loc_6A799
mov rdi, r14; this
mov rsi, r12; bool
mov edx, r13d
call _ZN5minja6Parser15parseExpressionEb; minja::Parser::parseExpression(bool)
mov rdi, [rsp+0A8h+lpsrc]; lpsrc
test rdi, rdi
jz loc_6A7DF
lea rsi, _ZTIN5minja10ExpressionE; lpstype
lea rdx, _ZTIN5minja12VariableExprE; lpdtype
xor ecx, ecx; s2d
call ___dynamic_cast
test rax, rax
jz loc_6A6DA
mov rbp, rax
mov rdi, r15
lea rsi, asc_B8F29+1; "="
lea rdx, [rsp+0A8h+var_99]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r12
mov rdx, r15
mov ecx, r13d
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov r14, [rsp+0A8h+var_48]
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test r14, r14
lea r14, [rsp+0A8h+lpsrc]
jz short loc_6A6DA
mov rdi, r15; this
mov rsi, r12; bool
mov edx, r13d
call _ZN5minja6Parser15parseExpressionEb; minja::Parser::parseExpression(bool)
cmp [rsp+0A8h+var_78], 0
jz loc_6A7FB
add rbp, 20h ; ' '
mov rdi, rbx
mov rsi, rbp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
mov rdi, [rsp+0A8h+var_58]
mov rsi, rbx
mov rdx, r15
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EE12emplace_backIJS6_SA_EEERSB_DpOT_; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::emplace_back<std::string,std::shared_ptr<minja::Expression>>(std::string,std::shared_ptr<minja::Expression> &&)
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_70]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp short loc_6A6E7
loc_6A6DA:
mov rdi, [rsp+0A8h+var_98]
mov rsi, r14
call _ZNSt6vectorISt10shared_ptrIN5minja10ExpressionEESaIS3_EE12emplace_backIJS3_EEERS3_DpOT_; std::vector<std::shared_ptr<minja::Expression>>::emplace_back<std::shared_ptr<minja::Expression>>(std::shared_ptr<minja::Expression> &&)
loc_6A6E7:
mov rdi, r15
lea rsi, asc_B92CE; ","
lea rdx, [rsp+0A8h+var_99]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r12
mov rdx, r15
mov ecx, r13d
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov rbp, [rsp+0A8h+var_48]
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test rbp, rbp
jnz short loc_6A775
mov rdi, r15
lea rsi, a09401910201912+51h; ")"
lea rdx, [rsp+0A8h+var_99]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r12
mov rdx, r15
mov ecx, r13d
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov r14, [rsp+0A8h+var_48]
mov rdi, rbx; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov al, 1
mov [rsp+0A8h+var_80], rax
test r14, r14
lea r14, [rsp+0A8h+lpsrc]
jz loc_6A82B
loc_6A775:
lea rdi, [rsp+0A8h+var_88]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
test rbp, rbp
jnz loc_6A5BB
test byte ptr [rsp+0A8h+var_80], 1
jnz short loc_6A799
mov rdi, [rsp+0A8h+var_98]; this
call _ZN5minja19ArgumentsExpressionD2Ev; minja::ArgumentsExpression::~ArgumentsExpression()
loc_6A799:
mov rax, [rsp+0A8h+var_98]
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_6A7AD:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedClosin_1; "Expected closing parenthesis in call ar"...
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, r14; void *
call ___cxa_throw
jmp short loc_6A82B
loc_6A7DF:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedExpres_0; "Expected expression in call args"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_6A845
loc_6A7FB:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedExpres_1; "Expected expression in for named arg"
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, r14; void *
call ___cxa_throw
loc_6A82B:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedClosin_1; "Expected closing parenthesis in call ar"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_6A845:
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_6A85B:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedOpenin_0; "Expected opening parenthesis in call ar"...
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, r14; void *
call ___cxa_throw
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp loc_6A94A
mov rbx, rax
lea rdi, [rsp+0A8h+var_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp loc_6A94A
mov rbx, rax
jmp loc_6A94A
jmp short loc_6A8EA
jmp short loc_6A8D9
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_6A8DC
jmp short loc_6A91F
jmp short loc_6A910
mov rbx, rax
lea rdi, [rsp+0A8h+var_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_6A8DC
loc_6A8D9:
mov rbx, rax
loc_6A8DC:
lea rdi, [rsp+0A8h+var_70]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp short loc_6A922
jmp short loc_6A91F
loc_6A8EA:
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_6A922
jmp short loc_6A93D
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_6A940
jmp short loc_6A91F
jmp short loc_6A91F
jmp short loc_6A910
jmp short loc_6A91F
jmp short loc_6A93D
loc_6A910:
mov rbx, rax
lea rdi, [rsp+0A8h+var_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_6A922
loc_6A91F:
mov rbx, rax
loc_6A922:
lea rdi, [rsp+0A8h+var_88]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp short loc_6A940
mov rbx, rax
lea rdi, [rsp+0A8h+var_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_6A940
loc_6A93D:
mov rbx, rax
loc_6A940:
mov rdi, [rsp+0A8h+var_98]; this
call _ZN5minja19ArgumentsExpressionD2Ev; minja::ArgumentsExpression::~ArgumentsExpression()
loc_6A94A:
mov rdi, rbx
call __Unwind_Resume
| minja::Parser * minja::Parser::parseCallArgs(minja::Parser *this, _QWORD *a2)
{
long long v2; // rbx
long long v3; // rbp
long long v4; // r14
long long v5; // rbp
long long v6; // r14
long long v7; // rax
std::runtime_error *v9; // r14
std::runtime_error *v10; // r14
std::runtime_error *v11; // r14
std::runtime_error *exception; // r14
__int128 lpsrc; // [rsp+18h] [rbp-90h] BYREF
long long v14; // [rsp+28h] [rbp-80h]
long long v15; // [rsp+30h] [rbp-78h] BYREF
_QWORD v16[3]; // [rsp+38h] [rbp-70h] BYREF
char *v17; // [rsp+50h] [rbp-58h]
long long v18; // [rsp+58h] [rbp-50h] BYREF
long long v19; // [rsp+60h] [rbp-48h]
minja::Parser::consumeSpaces((long long)a2, 1);
std::string::basic_string<std::allocator<char>>(&v15, (long long)"(");
minja::Parser::consumeToken(&v18, (long long)a2, &v15, 1u);
v2 = v19;
std::string::~string(&v18);
std::string::~string(&v15);
if ( !v2 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected opening parenthesis in call args");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
*((_OWORD *)this + 2) = 0LL;
*((_OWORD *)this + 1) = 0LL;
*(_OWORD *)this = 0LL;
v17 = (char *)this + 24;
v14 = 0LL;
do
{
if ( a2[4] == a2[3] )
{
v9 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v9, "Expected closing parenthesis in call args");
__cxa_throw(
v9,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
std::string::basic_string<std::allocator<char>>(&v15, (long long)")");
minja::Parser::consumeToken(&v18, (long long)a2, &v15, 1u);
v3 = v19;
std::string::~string(&v18);
std::string::~string(&v15);
if ( v3 )
return this;
minja::Parser::parseExpression((minja::Parser *)&lpsrc, a2, 1);
if ( !(_QWORD)lpsrc )
{
v10 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v10, "Expected expression in call args");
goto LABEL_21;
}
if ( __dynamic_cast(
(const void *)lpsrc,
(const struct __class_type_info *)&`typeinfo for'minja::Expression,
(const struct __class_type_info *)&`typeinfo for'minja::VariableExpr,
0LL)
&& (std::string::basic_string<std::allocator<char>>(&v15, (long long)"="),
minja::Parser::consumeToken(&v18, (long long)a2, &v15, 1u),
v4 = v19,
std::string::~string(&v18),
std::string::~string(&v15),
v4) )
{
minja::Parser::parseExpression((minja::Parser *)&v15, a2, 1);
if ( !v15 )
{
v11 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v11, "Expected expression in for named arg");
__cxa_throw(
v11,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
std::string::basic_string(&v18);
std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::emplace_back<std::string,std::shared_ptr<minja::Expression>>(
v17,
&v18,
&v15);
std::string::~string(&v18);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v16);
}
else
{
std::vector<std::shared_ptr<minja::Expression>>::emplace_back<std::shared_ptr<minja::Expression>>(
(long long)this,
&lpsrc);
}
std::string::basic_string<std::allocator<char>>(&v15, (long long)",");
minja::Parser::consumeToken(&v18, (long long)a2, &v15, 1u);
v5 = v19;
std::string::~string(&v18);
std::string::~string(&v15);
if ( !v5 )
{
std::string::basic_string<std::allocator<char>>(&v15, (long long)")");
minja::Parser::consumeToken(&v18, (long long)a2, &v15, 1u);
v6 = v19;
std::string::~string(&v18);
std::string::~string(&v15);
LOBYTE(v7) = 1;
v14 = v7;
if ( !v6 )
{
v10 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v10, "Expected closing parenthesis in call args");
LABEL_21:
__cxa_throw(
v10,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
}
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&lpsrc + 1);
}
while ( v5 );
if ( (v14 & 1) == 0 )
minja::ArgumentsExpression::~ArgumentsExpression(this);
return this;
}
| parseCallArgs:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV R12,RSI
MOV qword ptr [RSP + 0x10],RDI
PUSH 0x1
POP RSI
MOV RDI,R12
CALL 0x00166180
LAB_0016a537:
LEA RSI,[0x1bdb8a]
LEA RDI,[RSP + 0x30]
LEA RDX,[RSP + 0x18]
CALL 0x0012a75e
LAB_0016a54d:
LEA RDI,[RSP + 0x58]
LEA RDX,[RSP + 0x30]
PUSH 0x1
POP RCX
MOV RSI,R12
CALL 0x00165894
LEA RDI,[RSP + 0x58]
MOV RBX,qword ptr [RDI + 0x8]
CALL 0x00125258
LEA RDI,[RSP + 0x30]
CALL 0x00125258
TEST RBX,RBX
JZ 0x0016a85b
XORPS XMM0,XMM0
MOV RAX,qword ptr [RSP + 0x10]
MOVUPS xmmword ptr [RAX + 0x20],XMM0
MOVUPS xmmword ptr [RAX + 0x10],XMM0
MOVUPS xmmword ptr [RAX],XMM0
ADD RAX,0x18
MOV qword ptr [RSP + 0x50],RAX
MOV qword ptr [RSP + 0x28],0x0
LEA R15,[RSP + 0x30]
LEA R14,[RSP + 0x18]
LEA RBX,[RSP + 0x58]
PUSH 0x1
POP R13
LAB_0016a5bb:
MOV RAX,qword ptr [R12 + 0x20]
CMP RAX,qword ptr [R12 + 0x18]
JZ 0x0016a7ad
LAB_0016a5cb:
MOV RDI,R15
LEA RSI,[0x1bd843]
MOV RDX,R14
CALL 0x0012a75e
LAB_0016a5dd:
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
MOV ECX,R13D
CALL 0x00165894
MOV RBP,qword ptr [RSP + 0x60]
MOV RDI,RBX
CALL 0x00125258
MOV RDI,R15
CALL 0x00125258
TEST RBP,RBP
JNZ 0x0016a799
LAB_0016a60c:
MOV RDI,R14
MOV RSI,R12
MOV EDX,R13D
CALL 0x001650a2
MOV RDI,qword ptr [RSP + 0x18]
TEST RDI,RDI
JZ 0x0016a7df
LEA RSI,[0x202390]
LEA RDX,[0x2027b8]
XOR ECX,ECX
CALL 0x00124a30
TEST RAX,RAX
JZ 0x0016a6da
LAB_0016a646:
MOV RBP,RAX
MOV RDI,R15
LEA RSI,[0x1b8f2a]
LEA RDX,[RSP + 0xf]
CALL 0x0012a75e
LAB_0016a65d:
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
MOV ECX,R13D
CALL 0x00165894
MOV R14,qword ptr [RSP + 0x60]
MOV RDI,RBX
CALL 0x00125258
MOV RDI,R15
CALL 0x00125258
TEST R14,R14
LEA R14,[RSP + 0x18]
JZ 0x0016a6da
LAB_0016a68d:
MOV RDI,R15
MOV RSI,R12
MOV EDX,R13D
CALL 0x001650a2
CMP qword ptr [RSP + 0x30],0x0
JZ 0x0016a7fb
ADD RBP,0x20
LAB_0016a6ab:
MOV RDI,RBX
MOV RSI,RBP
CALL 0x00124c40
LAB_0016a6b6:
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,RBX
MOV RDX,R15
CALL 0x0016ffba
MOV RDI,RBX
CALL 0x00125258
LEA RDI,[RSP + 0x38]
CALL 0x00137354
JMP 0x0016a6e7
LAB_0016a6da:
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,R14
CALL 0x001696a8
LAB_0016a6e7:
MOV RDI,R15
LEA RSI,[0x1b92ce]
LEA RDX,[RSP + 0xf]
CALL 0x0012a75e
LAB_0016a6fb:
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
MOV ECX,R13D
CALL 0x00165894
MOV RBP,qword ptr [RSP + 0x60]
MOV RDI,RBX
CALL 0x00125258
MOV RDI,R15
CALL 0x00125258
TEST RBP,RBP
JNZ 0x0016a775
LAB_0016a726:
MOV RDI,R15
LEA RSI,[0x1bd843]
LEA RDX,[RSP + 0xf]
CALL 0x0012a75e
LAB_0016a73a:
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
MOV ECX,R13D
CALL 0x00165894
LAB_0016a74b:
MOV R14,qword ptr [RSP + 0x60]
MOV RDI,RBX
CALL 0x00125258
MOV RDI,R15
CALL 0x00125258
MOV AL,0x1
MOV qword ptr [RSP + 0x28],RAX
TEST R14,R14
LEA R14,[RSP + 0x18]
JZ 0x0016a82b
LAB_0016a775:
LEA RDI,[RSP + 0x20]
CALL 0x00137354
TEST RBP,RBP
JNZ 0x0016a5bb
TEST byte ptr [RSP + 0x28],0x1
JNZ 0x0016a799
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x0016a97a
LAB_0016a799:
MOV RAX,qword ptr [RSP + 0x10]
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0016a7ad:
PUSH 0x10
POP RDI
CALL 0x00124470
MOV R14,RAX
LAB_0016a7b8:
LEA RSI,[0x1b968c]
MOV RDI,RAX
CALL 0x00124330
LAB_0016a7c7:
MOV RSI,qword ptr [0x00203ff0]
MOV RDX,qword ptr [0x00203f58]
MOV RDI,R14
CALL 0x00124f50
LAB_0016a7df:
PUSH 0x10
POP RDI
CALL 0x00124470
MOV R14,RAX
LAB_0016a7ea:
LEA RSI,[0x1b9646]
MOV RDI,RAX
CALL 0x00124330
LAB_0016a7f9:
JMP 0x0016a845
LAB_0016a7fb:
PUSH 0x10
POP RDI
CALL 0x00124470
MOV R14,RAX
LAB_0016a806:
LEA RSI,[0x1b9667]
MOV RDI,RAX
CALL 0x00124330
LAB_0016a815:
MOV RSI,qword ptr [0x00203ff0]
MOV RDX,qword ptr [0x00203f58]
MOV RDI,R14
CALL 0x00124f50
LAB_0016a82b:
PUSH 0x10
POP RDI
CALL 0x00124470
MOV R14,RAX
LAB_0016a836:
LEA RSI,[0x1b968c]
MOV RDI,RAX
CALL 0x00124330
LAB_0016a845:
MOV RSI,qword ptr [0x00203ff0]
MOV RDX,qword ptr [0x00203f58]
MOV RDI,R14
CALL 0x00124f50
LAB_0016a85b:
PUSH 0x10
POP RDI
CALL 0x00124470
MOV R14,RAX
LAB_0016a866:
LEA RSI,[0x1b961c]
MOV RDI,RAX
CALL 0x00124330
LAB_0016a875:
MOV RSI,qword ptr [0x00203ff0]
MOV RDX,qword ptr [0x00203f58]
MOV RDI,R14
CALL 0x00124f50
|
/* minja::Parser::parseCallArgs() */
ArgumentsExpression * minja::Parser::parseCallArgs(void)
{
long lVar1;
long lVar2;
int8 uVar3;
runtime_error *prVar4;
long in_RSI;
vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>
*in_RDI;
allocator local_99;
vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>
*local_98;
long local_90;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_88 [8];
ulong local_80;
long local_78;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_70 [24];
vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>
*local_58;
string local_50 [8];
long local_48;
local_98 = in_RDI;
consumeSpaces();
/* try { // try from 0016a537 to 0016a54c has its CatchHandler @ 0016a8ad */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_78,"(",(allocator *)&local_90)
;
/* try { // try from 0016a54d to 0016a561 has its CatchHandler @ 0016a89b */
consumeToken(local_50);
lVar2 = local_48;
std::__cxx11::string::~string(local_50);
std::__cxx11::string::~string((string *)&local_78);
if (lVar2 == 0) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016a866 to 0016a874 has its CatchHandler @ 0016a88b */
std::runtime_error::runtime_error(prVar4,"Expected opening parenthesis in call args");
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_00203ff0,PTR__runtime_error_00203f58);
}
*(int8 *)(local_98 + 0x20) = 0;
*(int8 *)(local_98 + 0x28) = 0;
*(int8 *)(local_98 + 0x10) = 0;
*(int8 *)(local_98 + 0x18) = 0;
*(int8 *)local_98 = 0;
*(int8 *)(local_98 + 8) = 0;
local_58 = local_98 + 0x18;
local_80 = 0;
do {
if (*(long *)(in_RSI + 0x20) == *(long *)(in_RSI + 0x18)) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016a7b8 to 0016a7c6 has its CatchHandler @ 0016a8f9 */
std::runtime_error::runtime_error(prVar4,"Expected closing parenthesis in call args");
/* try { // try from 0016a7c7 to 0016a7dc has its CatchHandler @ 0016a8f7 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_00203ff0,PTR__runtime_error_00203f58);
}
/* try { // try from 0016a5cb to 0016a5dc has its CatchHandler @ 0016a93d */
std::__cxx11::string::string<std::allocator<char>>
((string *)&local_78,")",(allocator *)&local_90);
/* try { // try from 0016a5dd to 0016a5ed has its CatchHandler @ 0016a92e */
consumeToken(local_50);
lVar2 = local_48;
std::__cxx11::string::~string(local_50);
std::__cxx11::string::~string((string *)&local_78);
if (lVar2 != 0) {
return (ArgumentsExpression *)local_98;
}
/* try { // try from 0016a60c to 0016a619 has its CatchHandler @ 0016a90e */
parseExpression(SUB81((allocator *)&local_90,0));
if (local_90 == 0) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016a7ea to 0016a7f8 has its CatchHandler @ 0016a8ea */
std::runtime_error::runtime_error(prVar4,"Expected expression in call args");
goto LAB_0016a845;
}
lVar2 = __dynamic_cast(local_90,&Expression::typeinfo,&VariableExpr::typeinfo,0);
if (lVar2 == 0) {
LAB_0016a6da:
/* try { // try from 0016a6da to 0016a6e6 has its CatchHandler @ 0016a906 */
std::
vector<std::shared_ptr<minja::Expression>,std::allocator<std::shared_ptr<minja::Expression>>>
::emplace_back<std::shared_ptr<minja::Expression>>(local_98,(shared_ptr *)&local_90);
}
else {
/* try { // try from 0016a646 to 0016a65c has its CatchHandler @ 0016a908 */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_78,"=",&local_99);
/* try { // try from 0016a65d to 0016a66d has its CatchHandler @ 0016a90a */
consumeToken(local_50);
lVar1 = local_48;
std::__cxx11::string::~string(local_50);
std::__cxx11::string::~string((string *)&local_78);
if (lVar1 == 0) goto LAB_0016a6da;
/* try { // try from 0016a68d to 0016a69a has its CatchHandler @ 0016a8e8 */
parseExpression(SUB81((string *)&local_78,0));
if (local_78 == 0) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016a806 to 0016a814 has its CatchHandler @ 0016a8b9 */
std::runtime_error::runtime_error(prVar4,"Expected expression in for named arg");
/* try { // try from 0016a815 to 0016a82a has its CatchHandler @ 0016a8b7 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_00203ff0,PTR__runtime_error_00203f58);
}
/* try { // try from 0016a6ab to 0016a6b5 has its CatchHandler @ 0016a8d9 */
std::__cxx11::string::string(local_50,(string *)(lVar2 + 0x20));
/* try { // try from 0016a6b6 to 0016a6c5 has its CatchHandler @ 0016a8ca */
std::
vector<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>>>
::emplace_back<std::__cxx11::string,std::shared_ptr<minja::Expression>>
((vector<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::__cxx11::string,std::shared_ptr<minja::Expression>>>>
*)local_58,local_50,(string *)&local_78);
std::__cxx11::string::~string(local_50);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_70);
}
/* try { // try from 0016a6e7 to 0016a6fa has its CatchHandler @ 0016a91f */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_78,",",&local_99);
/* try { // try from 0016a6fb to 0016a70b has its CatchHandler @ 0016a910 */
consumeToken(local_50);
lVar2 = local_48;
std::__cxx11::string::~string(local_50);
std::__cxx11::string::~string((string *)&local_78);
if (lVar2 == 0) {
/* try { // try from 0016a726 to 0016a739 has its CatchHandler @ 0016a8c6 */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_78,")",&local_99);
/* try { // try from 0016a73a to 0016a74a has its CatchHandler @ 0016a8c8 */
consumeToken(local_50);
lVar1 = local_48;
std::__cxx11::string::~string(local_50);
uVar3 = std::__cxx11::string::~string((string *)&local_78);
local_80 = CONCAT71((int7)((ulong)uVar3 >> 8),1);
if (lVar1 == 0) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016a836 to 0016a844 has its CatchHandler @ 0016a8b5 */
std::runtime_error::runtime_error(prVar4,"Expected closing parenthesis in call args");
LAB_0016a845:
/* try { // try from 0016a845 to 0016a85a has its CatchHandler @ 0016a90c */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_00203ff0,PTR__runtime_error_00203f58);
}
}
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_88);
if (lVar2 == 0) {
if ((local_80 & 1) == 0) {
ArgumentsExpression::~ArgumentsExpression((ArgumentsExpression *)local_98);
}
return (ArgumentsExpression *)local_98;
}
} while( true );
}
| |
22,343 | checkDiamond(Shape*, Diamond&) | 11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp | void checkDiamond(Shape* shape, Diamond& diamond)
{
Diamond* diamondFromJson = dynamic_cast<Diamond*>(shape);
REQUIRE(diamondFromJson);
REQUIRE(compareShape(*diamondFromJson, diamond));
REQUIRE(diamondFromJson->sizeA == diamond.sizeA);
REQUIRE(diamondFromJson->sizeB == diamond.sizeB);
REQUIRE(diamondFromJson->angle == diamond.angle);
} | O1 | cpp | checkDiamond(Shape*, Diamond&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %rbx
testq %rdi, %rdi
je 0x12a3c
movq 0x7e494(%rip), %rsi # 0x90ec0
movq 0x7e4e5(%rip), %rdx # 0x90f18
xorl %ecx, %ecx
callq 0x115a0
jmp 0x12a3e
xorl %eax, %eax
leaq 0x10(%rsp), %r13
movq %rax, (%r13)
leaq 0x505da(%rip), %r12 # 0x63028
leaq 0x60(%rsp), %r14
movq %r12, (%r14)
movq $0x1f, 0x8(%r14)
movl $0x1, (%rsp)
leaq 0x505b4(%rip), %rsi # 0x63020
leaq 0x50674(%rip), %r8 # 0x630e7
leaq 0x18(%rsp), %r15
movl $0x7, %edx
movl $0xf, %r9d
movq %r15, %rdi
movq %r14, %rcx
callq 0x1de4c
movq %r13, (%r14)
leaq 0x60(%rsp), %rsi
movq %r15, %rdi
callq 0x1535e
leaq 0x18(%rsp), %rdi
callq 0x1dee8
cmpb $0x0, 0x53(%rsp)
jne 0x12ac1
leaq 0x18(%rsp), %rsi
movq 0x40(%rsi), %rdi
movq (%rdi), %rax
callq *0xa0(%rax)
leaq 0x60(%rsp), %r14
movq %r12, (%r14)
movq $0x20, 0x8(%r14)
movl $0x1, (%rsp)
leaq 0x50541(%rip), %rsi # 0x63020
leaq 0x50611(%rip), %r8 # 0x630f7
leaq 0x18(%rsp), %r15
movl $0x7, %edx
movl $0x27, %r9d
movq %r15, %rdi
movq %r14, %rcx
callq 0x1de4c
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x12725
movb %al, (%r14)
leaq 0x60(%rsp), %rsi
movq %r15, %rdi
callq 0x1531a
leaq 0x18(%rsp), %rdi
callq 0x1dee8
cmpb $0x0, 0x53(%rsp)
jne 0x12b41
leaq 0x18(%rsp), %rsi
movq 0x40(%rsi), %rdi
movq (%rdi), %rax
callq *0xa0(%rax)
leaq 0x60(%rsp), %r14
movq %r12, (%r14)
movq $0x21, 0x8(%r14)
movl $0x1, (%rsp)
leaq 0x504c1(%rip), %rsi # 0x63020
leaq 0x505b9(%rip), %r8 # 0x6311f
leaq 0x18(%rsp), %r15
movl $0x7, %edx
movl $0x27, %r9d
movq %r15, %rdi
movq %r14, %rcx
callq 0x1de4c
movq 0x10(%rsp), %rax
movl 0x5c(%rax), %eax
movl 0x5c(%rbx), %ecx
cmpl %ecx, %eax
movb $0x1, 0x8(%r14)
sete 0x9(%r14)
leaq 0x7a631(%rip), %r13 # 0x8d1d0
movq %r13, (%r14)
movl %eax, 0xc(%r14)
leaq 0x5086f(%rip), %rbp # 0x6341c
movq %rbp, 0x10(%r14)
movq $0x2, 0x18(%r14)
movl %ecx, 0x20(%r14)
leaq 0x60(%rsp), %rsi
movq %r15, %rdi
callq 0x1de8e
leaq 0x60(%rsp), %rdi
callq 0x2a990
leaq 0x18(%rsp), %rdi
callq 0x1dee8
cmpb $0x0, 0x53(%rsp)
jne 0x12bf7
leaq 0x18(%rsp), %rsi
movq 0x40(%rsi), %rdi
movq (%rdi), %rax
callq *0xa0(%rax)
leaq 0x60(%rsp), %r14
movq %r12, (%r14)
movq $0x22, 0x8(%r14)
movl $0x1, (%rsp)
leaq 0x5040b(%rip), %rsi # 0x63020
leaq 0x5052b(%rip), %r8 # 0x63147
leaq 0x18(%rsp), %r15
movl $0x7, %edx
movl $0x27, %r9d
movq %r15, %rdi
movq %r14, %rcx
callq 0x1de4c
movq 0x10(%rsp), %rax
movl 0x60(%rax), %eax
movl 0x60(%rbx), %ecx
cmpl %ecx, %eax
movb $0x1, 0x8(%r14)
sete 0x9(%r14)
movq %r13, (%r14)
movl %eax, 0xc(%r14)
movq %rbp, 0x10(%r14)
movq $0x2, 0x18(%r14)
movl %ecx, 0x20(%r14)
leaq 0x60(%rsp), %rsi
movq %r15, %rdi
callq 0x1de8e
leaq 0x60(%rsp), %rdi
callq 0x2a990
leaq 0x18(%rsp), %rdi
callq 0x1dee8
cmpb $0x0, 0x53(%rsp)
jne 0x12c9f
leaq 0x18(%rsp), %rsi
movq 0x40(%rsi), %rdi
movq (%rdi), %rax
callq *0xa0(%rax)
leaq 0x60(%rsp), %r14
movq %r12, (%r14)
movq $0x23, 0x8(%r14)
movl $0x1, (%rsp)
leaq 0x50363(%rip), %rsi # 0x63020
leaq 0x504ab(%rip), %r8 # 0x6316f
leaq 0x18(%rsp), %r15
movl $0x7, %edx
movl $0x27, %r9d
movq %r15, %rdi
movq %r14, %rcx
callq 0x1de4c
movq 0x10(%rsp), %rax
movl 0x64(%rax), %eax
movl 0x64(%rbx), %ecx
cmpl %ecx, %eax
movb $0x1, 0x8(%r14)
sete 0x9(%r14)
movq %r13, (%r14)
movl %eax, 0xc(%r14)
movq %rbp, 0x10(%r14)
movq $0x2, 0x18(%r14)
movl %ecx, 0x20(%r14)
leaq 0x60(%rsp), %rsi
movq %r15, %rdi
callq 0x1de8e
leaq 0x60(%rsp), %rdi
callq 0x2a990
leaq 0x18(%rsp), %rdi
callq 0x1dee8
cmpb $0x0, 0x53(%rsp)
jne 0x12d47
leaq 0x18(%rsp), %rsi
movq 0x40(%rsi), %rdi
movq (%rdi), %rax
callq *0xa0(%rax)
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x12d61
jmp 0x12d61
jmp 0x12d61
jmp 0x12d61
movq %rax, %rdi
callq 0x152ed
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x2a990
movq %rbx, %rdi
callq 0x11190
leaq 0x18(%rsp), %rdi
callq 0x1df18
callq 0x11830
jmp 0x12d24
movq %rax, %rbx
callq 0x11830
jmp 0x12e67
jmp 0x12e64
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x2a990
movq %r14, %rdi
callq 0x11190
leaq 0x18(%rsp), %rdi
callq 0x1df18
callq 0x11830
jmp 0x12c7c
movq %rax, %rbx
callq 0x11830
jmp 0x12e67
jmp 0x12e64
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x2a990
movq %r14, %rdi
callq 0x11190
leaq 0x18(%rsp), %rdi
callq 0x1df18
callq 0x11830
jmp 0x12bd4
movq %rax, %rbx
callq 0x11830
jmp 0x12e67
jmp 0x12e64
movq %rax, %rdi
callq 0x11190
leaq 0x18(%rsp), %rdi
callq 0x1df18
callq 0x11830
jmp 0x12b1e
movq %rax, %rbx
callq 0x11830
jmp 0x12e67
jmp 0x12e64
movq %rax, %rdi
callq 0x11190
leaq 0x18(%rsp), %rdi
callq 0x1df18
callq 0x11830
jmp 0x12a9e
movq %rax, %rbx
callq 0x11830
jmp 0x12e67
jmp 0x12d61
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x152f8
movq %rbx, %rdi
callq 0x11900
| _Z12checkDiamondP5ShapeR7Diamond:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov rbx, rsi
test rdi, rdi
jz short loc_12A3C
mov rsi, cs:lpstype; lpstype
mov rdx, cs:_ZTI7Diamond_ptr; lpdtype
xor ecx, ecx; s2d
call ___dynamic_cast
jmp short loc_12A3E
loc_12A3C:
xor eax, eax
loc_12A3E:
lea r13, [rsp+0B8h+var_A8]
mov [r13+0], rax
lea r12, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea r14, [rsp+0B8h+var_58]
mov [r14], r12
mov qword ptr [r14+8], 1Fh
mov [rsp+0B8h+var_B8], 1
lea rsi, aRequire; "REQUIRE"
lea r8, aDiamondfromjso; "diamondFromJson"
lea r15, [rsp+0B8h+var_A0]
mov edx, 7
mov r9d, 0Fh
mov rdi, r15
mov rcx, r14
call _ZN5Catch16AssertionHandlerC2ENS_9StringRefERKNS_14SourceLineInfoES1_NS_17ResultDisposition5FlagsE; Catch::AssertionHandler::AssertionHandler(Catch::StringRef,Catch::SourceLineInfo const&,Catch::StringRef,Catch::ResultDisposition::Flags)
mov [r14], r13
lea rsi, [rsp+0B8h+var_58]
mov rdi, r15
call _ZN5Catch16AssertionHandler10handleExprIRP7DiamondEEvRKNS_7ExprLhsIT_EE; Catch::AssertionHandler::handleExpr<Diamond *&>(Catch::ExprLhs<Diamond *&> const&)
loc_12A9E:
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler8completeEv; Catch::AssertionHandler::complete(void)
cmp [rsp+0B8h+var_65], 0
jnz short loc_12AC1
lea rsi, [rsp+0B8h+var_A0]
mov rdi, [rsi+40h]
mov rax, [rdi]
call qword ptr [rax+0A0h]
loc_12AC1:
lea r14, [rsp+0B8h+var_58]
mov [r14], r12
mov qword ptr [r14+8], 20h ; ' '
mov [rsp+0B8h+var_B8], 1
lea rsi, aRequire; "REQUIRE"
lea r8, aCompareshapeDi; "compareShape(*diamondFromJson, diamond)"
lea r15, [rsp+0B8h+var_A0]
mov edx, 7
mov r9d, 27h ; '''
mov rdi, r15
mov rcx, r14
call _ZN5Catch16AssertionHandlerC2ENS_9StringRefERKNS_14SourceLineInfoES1_NS_17ResultDisposition5FlagsE; Catch::AssertionHandler::AssertionHandler(Catch::StringRef,Catch::SourceLineInfo const&,Catch::StringRef,Catch::ResultDisposition::Flags)
mov rdi, [rsp+0B8h+var_A8]
mov rsi, rbx
call _Z12compareShapeRK5ShapeS1_; compareShape(Shape const&,Shape const&)
mov [r14], al
lea rsi, [rsp+0B8h+var_58]
mov rdi, r15
call _ZN5Catch16AssertionHandler10handleExprIbEEvRKNS_7ExprLhsIT_EE; Catch::AssertionHandler::handleExpr<bool>(Catch::ExprLhs<bool> const&)
loc_12B1E:
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler8completeEv; Catch::AssertionHandler::complete(void)
cmp [rsp+0B8h+var_65], 0
jnz short loc_12B41
lea rsi, [rsp+0B8h+var_A0]
mov rdi, [rsi+40h]
mov rax, [rdi]
call qword ptr [rax+0A0h]
loc_12B41:
lea r14, [rsp+0B8h+var_58]
mov [r14], r12
mov qword ptr [r14+8], 21h ; '!'
mov [rsp+0B8h+var_B8], 1
lea rsi, aRequire; "REQUIRE"
lea r8, aDiamondfromjso_0; "diamondFromJson->sizeA == diamond.sizeA"
lea r15, [rsp+0B8h+var_A0]
mov edx, 7
mov r9d, 27h ; '''
mov rdi, r15
mov rcx, r14
call _ZN5Catch16AssertionHandlerC2ENS_9StringRefERKNS_14SourceLineInfoES1_NS_17ResultDisposition5FlagsE; Catch::AssertionHandler::AssertionHandler(Catch::StringRef,Catch::SourceLineInfo const&,Catch::StringRef,Catch::ResultDisposition::Flags)
mov rax, [rsp+0B8h+var_A8]
mov eax, [rax+5Ch]
mov ecx, [rbx+5Ch]
cmp eax, ecx
mov byte ptr [r14+8], 1
setz byte ptr [r14+9]
lea r13, off_8D1D0
mov [r14], r13
mov [r14+0Ch], eax
lea rbp, asc_6341C; "=="
mov [r14+10h], rbp
mov qword ptr [r14+18h], 2
mov [r14+20h], ecx
lea rsi, [rsp+0B8h+var_58]
mov rdi, r15
call _ZN5Catch16AssertionHandler10handleExprERKNS_20ITransientExpressionE; Catch::AssertionHandler::handleExpr(Catch::ITransientExpression const&)
lea rdi, [rsp+0B8h+var_58]; this
call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression()
loc_12BD4:
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler8completeEv; Catch::AssertionHandler::complete(void)
cmp [rsp+0B8h+var_65], 0
jnz short loc_12BF7
lea rsi, [rsp+0B8h+var_A0]
mov rdi, [rsi+40h]
mov rax, [rdi]
call qword ptr [rax+0A0h]
loc_12BF7:
lea r14, [rsp+0B8h+var_58]
mov [r14], r12
mov qword ptr [r14+8], 22h ; '"'
mov [rsp+0B8h+var_B8], 1
lea rsi, aRequire; "REQUIRE"
lea r8, aDiamondfromjso_1; "diamondFromJson->sizeB == diamond.sizeB"
lea r15, [rsp+0B8h+var_A0]
mov edx, 7
mov r9d, 27h ; '''
mov rdi, r15
mov rcx, r14
call _ZN5Catch16AssertionHandlerC2ENS_9StringRefERKNS_14SourceLineInfoES1_NS_17ResultDisposition5FlagsE; Catch::AssertionHandler::AssertionHandler(Catch::StringRef,Catch::SourceLineInfo const&,Catch::StringRef,Catch::ResultDisposition::Flags)
mov rax, [rsp+0B8h+var_A8]
mov eax, [rax+60h]
mov ecx, [rbx+60h]
cmp eax, ecx
mov byte ptr [r14+8], 1
setz byte ptr [r14+9]
mov [r14], r13
mov [r14+0Ch], eax
mov [r14+10h], rbp
mov qword ptr [r14+18h], 2
mov [r14+20h], ecx
lea rsi, [rsp+0B8h+var_58]
mov rdi, r15
call _ZN5Catch16AssertionHandler10handleExprERKNS_20ITransientExpressionE; Catch::AssertionHandler::handleExpr(Catch::ITransientExpression const&)
lea rdi, [rsp+0B8h+var_58]; this
call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression()
loc_12C7C:
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler8completeEv; Catch::AssertionHandler::complete(void)
cmp [rsp+0B8h+var_65], 0
jnz short loc_12C9F
lea rsi, [rsp+0B8h+var_A0]
mov rdi, [rsi+40h]
mov rax, [rdi]
call qword ptr [rax+0A0h]
loc_12C9F:
lea r14, [rsp+0B8h+var_58]
mov [r14], r12
mov qword ptr [r14+8], 23h ; '#'
mov [rsp+0B8h+var_B8], 1
lea rsi, aRequire; "REQUIRE"
lea r8, aDiamondfromjso_2; "diamondFromJson->angle == diamond.angle"
lea r15, [rsp+0B8h+var_A0]
mov edx, 7
mov r9d, 27h ; '''
mov rdi, r15
mov rcx, r14
call _ZN5Catch16AssertionHandlerC2ENS_9StringRefERKNS_14SourceLineInfoES1_NS_17ResultDisposition5FlagsE; Catch::AssertionHandler::AssertionHandler(Catch::StringRef,Catch::SourceLineInfo const&,Catch::StringRef,Catch::ResultDisposition::Flags)
mov rax, [rsp+0B8h+var_A8]
mov eax, [rax+64h]
mov ecx, [rbx+64h]
cmp eax, ecx
mov byte ptr [r14+8], 1
setz byte ptr [r14+9]
mov [r14], r13
mov [r14+0Ch], eax
mov [r14+10h], rbp
mov qword ptr [r14+18h], 2
mov [r14+20h], ecx
lea rsi, [rsp+0B8h+var_58]
mov rdi, r15
call _ZN5Catch16AssertionHandler10handleExprERKNS_20ITransientExpressionE; Catch::AssertionHandler::handleExpr(Catch::ITransientExpression const&)
lea rdi, [rsp+0B8h+var_58]; this
call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression()
loc_12D24:
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler8completeEv; Catch::AssertionHandler::complete(void)
cmp [rsp+0B8h+var_65], 0
jnz short loc_12D47
lea rsi, [rsp+0B8h+var_A0]
mov rdi, [rsi+40h]
mov rax, [rdi]
call qword ptr [rax+0A0h]
loc_12D47:
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_12D61
jmp short loc_12D61
jmp short loc_12D61
jmp short $+2
loc_12D61:
mov rdi, rax
call __clang_call_terminate
mov rbx, rax
lea rdi, [rsp+0B8h+var_58]; this
call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression()
mov rdi, rbx; void *
call ___cxa_begin_catch
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler33handleUnexpectedInflightExceptionEv; Catch::AssertionHandler::handleUnexpectedInflightException(void)
call ___cxa_end_catch
jmp short loc_12D24
mov rbx, rax
call ___cxa_end_catch
jmp loc_12E67
jmp loc_12E64
mov r14, rax
lea rdi, [rsp+0B8h+var_58]; this
call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression()
mov rdi, r14; void *
call ___cxa_begin_catch
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler33handleUnexpectedInflightExceptionEv; Catch::AssertionHandler::handleUnexpectedInflightException(void)
call ___cxa_end_catch
jmp loc_12C7C
mov rbx, rax
call ___cxa_end_catch
jmp loc_12E67
jmp loc_12E64
mov r14, rax
lea rdi, [rsp+0B8h+var_58]; this
call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression()
mov rdi, r14; void *
call ___cxa_begin_catch
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler33handleUnexpectedInflightExceptionEv; Catch::AssertionHandler::handleUnexpectedInflightException(void)
call ___cxa_end_catch
jmp loc_12BD4
mov rbx, rax
call ___cxa_end_catch
jmp short loc_12E67
jmp short loc_12E64
mov rdi, rax; void *
call ___cxa_begin_catch
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler33handleUnexpectedInflightExceptionEv; Catch::AssertionHandler::handleUnexpectedInflightException(void)
call ___cxa_end_catch
jmp loc_12B1E
mov rbx, rax
call ___cxa_end_catch
jmp short loc_12E67
jmp short loc_12E64
mov rdi, rax; void *
call ___cxa_begin_catch
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler33handleUnexpectedInflightExceptionEv; Catch::AssertionHandler::handleUnexpectedInflightException(void)
call ___cxa_end_catch
jmp loc_12A9E
mov rbx, rax
call ___cxa_end_catch
jmp short loc_12E67
jmp loc_12D61
loc_12E64:
mov rbx, rax
loc_12E67:
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandlerD2Ev; Catch::AssertionHandler::~AssertionHandler()
mov rdi, rbx
call __Unwind_Resume
| long long checkDiamond(const void *a1, const Shape *a2)
{
const Shape *v2; // rax
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
int v7; // eax
int v8; // ecx
int v9; // eax
int v10; // ecx
int v11; // eax
int v12; // ecx
long long result; // rax
char v14; // [rsp+0h] [rbp-B8h]
const Shape *v15; // [rsp+10h] [rbp-A8h] BYREF
_BYTE v16[59]; // [rsp+18h] [rbp-A0h] BYREF
char v17; // [rsp+53h] [rbp-65h]
long long v18; // [rsp+58h] [rbp-60h]
const char *v19; // [rsp+60h] [rbp-58h] BYREF
long long v20; // [rsp+68h] [rbp-50h]
const char *v21; // [rsp+70h] [rbp-48h]
long long v22; // [rsp+78h] [rbp-40h]
int v23; // [rsp+80h] [rbp-38h]
if ( a1 )
v2 = (const Shape *)__dynamic_cast(
a1,
(const struct __class_type_info *)&`typeinfo for'Shape,
(const struct __class_type_info *)&`typeinfo for'Diamond,
0LL);
else
v2 = 0LL;
v15 = v2;
v19 = "/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp";
v20 = 31LL;
Catch::AssertionHandler::AssertionHandler(
(unsigned int)v16,
(unsigned int)"REQUIRE",
7,
(unsigned int)&v19,
(unsigned int)"diamondFromJson",
15,
1);
v19 = (const char *)&v15;
Catch::AssertionHandler::handleExpr<Diamond *&>((unsigned int)v16, (unsigned int)&v19, v3, v4, v5, v6, v14);
Catch::AssertionHandler::complete((Catch::AssertionHandler *)v16);
if ( !v17 )
(*(void ( **)(long long))(*(_QWORD *)v18 + 160LL))(v18);
v19 = "/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp";
v20 = 32LL;
Catch::AssertionHandler::AssertionHandler(
(unsigned int)v16,
(unsigned int)"REQUIRE",
7,
(unsigned int)&v19,
(unsigned int)"compareShape(*diamondFromJson, diamond)",
39,
1);
LOBYTE(v19) = compareShape(v15, a2);
Catch::AssertionHandler::handleExpr<bool>(v16, &v19);
Catch::AssertionHandler::complete((Catch::AssertionHandler *)v16);
if ( !v17 )
(*(void ( **)(long long))(*(_QWORD *)v18 + 160LL))(v18);
v19 = "/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp";
v20 = 33LL;
Catch::AssertionHandler::AssertionHandler(
(unsigned int)v16,
(unsigned int)"REQUIRE",
7,
(unsigned int)&v19,
(unsigned int)"diamondFromJson->sizeA == diamond.sizeA",
39,
1);
v7 = *((_DWORD *)v15 + 23);
v8 = *((_DWORD *)a2 + 23);
LOBYTE(v20) = 1;
BYTE1(v20) = v7 == v8;
v19 = (const char *)&off_8D1D0;
HIDWORD(v20) = v7;
v21 = "==";
v22 = 2LL;
v23 = v8;
Catch::AssertionHandler::handleExpr((Catch::AssertionHandler *)v16, (const Catch::ITransientExpression *)&v19);
Catch::ITransientExpression::~ITransientExpression((Catch::ITransientExpression *)&v19);
Catch::AssertionHandler::complete((Catch::AssertionHandler *)v16);
if ( !v17 )
(*(void ( **)(long long))(*(_QWORD *)v18 + 160LL))(v18);
v19 = "/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp";
v20 = 34LL;
Catch::AssertionHandler::AssertionHandler(
(unsigned int)v16,
(unsigned int)"REQUIRE",
7,
(unsigned int)&v19,
(unsigned int)"diamondFromJson->sizeB == diamond.sizeB",
39,
1);
v9 = *((_DWORD *)v15 + 24);
v10 = *((_DWORD *)a2 + 24);
LOBYTE(v20) = 1;
BYTE1(v20) = v9 == v10;
v19 = (const char *)&off_8D1D0;
HIDWORD(v20) = v9;
v21 = "==";
v22 = 2LL;
v23 = v10;
Catch::AssertionHandler::handleExpr((Catch::AssertionHandler *)v16, (const Catch::ITransientExpression *)&v19);
Catch::ITransientExpression::~ITransientExpression((Catch::ITransientExpression *)&v19);
Catch::AssertionHandler::complete((Catch::AssertionHandler *)v16);
if ( !v17 )
(*(void ( **)(long long))(*(_QWORD *)v18 + 160LL))(v18);
v19 = "/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp";
v20 = 35LL;
Catch::AssertionHandler::AssertionHandler(
(unsigned int)v16,
(unsigned int)"REQUIRE",
7,
(unsigned int)&v19,
(unsigned int)"diamondFromJson->angle == diamond.angle",
39,
1);
v11 = *((_DWORD *)v15 + 25);
v12 = *((_DWORD *)a2 + 25);
LOBYTE(v20) = 1;
BYTE1(v20) = v11 == v12;
v19 = (const char *)&off_8D1D0;
HIDWORD(v20) = v11;
v21 = "==";
v22 = 2LL;
v23 = v12;
Catch::AssertionHandler::handleExpr((Catch::AssertionHandler *)v16, (const Catch::ITransientExpression *)&v19);
Catch::ITransientExpression::~ITransientExpression((Catch::ITransientExpression *)&v19);
result = Catch::AssertionHandler::complete((Catch::AssertionHandler *)v16);
if ( !v17 )
return (*(long long ( **)(long long))(*(_QWORD *)v18 + 160LL))(v18);
return result;
}
| checkDiamond:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV RBX,RSI
TEST RDI,RDI
JZ 0x00112a3c
MOV RSI,qword ptr [0x00190ec0]
MOV RDX,qword ptr [0x00190f18]
XOR ECX,ECX
CALL 0x001115a0
JMP 0x00112a3e
LAB_00112a3c:
XOR EAX,EAX
LAB_00112a3e:
LEA R13,[RSP + 0x10]
MOV qword ptr [R13],RAX
LEA R12,[0x163028]
LEA R14,[RSP + 0x60]
MOV qword ptr [R14],R12
MOV qword ptr [R14 + 0x8],0x1f
MOV dword ptr [RSP],0x1
LEA RSI,[0x163020]
LEA R8,[0x1630e7]
LEA R15,[RSP + 0x18]
MOV EDX,0x7
MOV R9D,0xf
MOV RDI,R15
MOV RCX,R14
CALL 0x0011de4c
MOV qword ptr [R14],R13
LAB_00112a91:
LEA RSI,[RSP + 0x60]
MOV RDI,R15
CALL 0x0011535e
LAB_00112a9e:
LEA RDI,[RSP + 0x18]
CALL 0x0011dee8
CMP byte ptr [RSP + 0x53],0x0
JNZ 0x00112ac1
LEA RSI,[RSP + 0x18]
MOV RDI,qword ptr [RSI + 0x40]
MOV RAX,qword ptr [RDI]
LAB_00112abb:
CALL qword ptr [RAX + 0xa0]
LAB_00112ac1:
LEA R14,[RSP + 0x60]
MOV qword ptr [R14],R12
MOV qword ptr [R14 + 0x8],0x20
MOV dword ptr [RSP],0x1
LEA RSI,[0x163020]
LEA R8,[0x1630f7]
LEA R15,[RSP + 0x18]
MOV EDX,0x7
MOV R9D,0x27
MOV RDI,R15
MOV RCX,R14
CALL 0x0011de4c
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,RBX
CALL 0x00112725
MOV byte ptr [R14],AL
LAB_00112b11:
LEA RSI,[RSP + 0x60]
MOV RDI,R15
CALL 0x0011531a
LAB_00112b1e:
LEA RDI,[RSP + 0x18]
CALL 0x0011dee8
CMP byte ptr [RSP + 0x53],0x0
JNZ 0x00112b41
LEA RSI,[RSP + 0x18]
MOV RDI,qword ptr [RSI + 0x40]
MOV RAX,qword ptr [RDI]
LAB_00112b3b:
CALL qword ptr [RAX + 0xa0]
LAB_00112b41:
LEA R14,[RSP + 0x60]
MOV qword ptr [R14],R12
MOV qword ptr [R14 + 0x8],0x21
MOV dword ptr [RSP],0x1
LEA RSI,[0x163020]
LEA R8,[0x16311f]
LEA R15,[RSP + 0x18]
MOV EDX,0x7
MOV R9D,0x27
MOV RDI,R15
MOV RCX,R14
CALL 0x0011de4c
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0x5c]
MOV ECX,dword ptr [RBX + 0x5c]
CMP EAX,ECX
MOV byte ptr [R14 + 0x8],0x1
SETZ byte ptr [R14 + 0x9]
LEA R13,[0x18d1d0]
MOV qword ptr [R14],R13
MOV dword ptr [R14 + 0xc],EAX
LEA RBP,[0x16341c]
MOV qword ptr [R14 + 0x10],RBP
MOV qword ptr [R14 + 0x18],0x2
MOV dword ptr [R14 + 0x20],ECX
LAB_00112bbd:
LEA RSI,[RSP + 0x60]
MOV RDI,R15
CALL 0x0011de8e
LEA RDI,[RSP + 0x60]
CALL 0x0012a990
LAB_00112bd4:
LEA RDI,[RSP + 0x18]
CALL 0x0011dee8
CMP byte ptr [RSP + 0x53],0x0
JNZ 0x00112bf7
LEA RSI,[RSP + 0x18]
MOV RDI,qword ptr [RSI + 0x40]
MOV RAX,qword ptr [RDI]
LAB_00112bf1:
CALL qword ptr [RAX + 0xa0]
LAB_00112bf7:
LEA R14,[RSP + 0x60]
MOV qword ptr [R14],R12
MOV qword ptr [R14 + 0x8],0x22
MOV dword ptr [RSP],0x1
LEA RSI,[0x163020]
LEA R8,[0x163147]
LEA R15,[RSP + 0x18]
MOV EDX,0x7
MOV R9D,0x27
MOV RDI,R15
MOV RCX,R14
CALL 0x0011de4c
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0x60]
MOV ECX,dword ptr [RBX + 0x60]
CMP EAX,ECX
MOV byte ptr [R14 + 0x8],0x1
SETZ byte ptr [R14 + 0x9]
MOV qword ptr [R14],R13
MOV dword ptr [R14 + 0xc],EAX
MOV qword ptr [R14 + 0x10],RBP
MOV qword ptr [R14 + 0x18],0x2
MOV dword ptr [R14 + 0x20],ECX
LAB_00112c65:
LEA RSI,[RSP + 0x60]
MOV RDI,R15
CALL 0x0011de8e
LEA RDI,[RSP + 0x60]
CALL 0x0012a990
LAB_00112c7c:
LEA RDI,[RSP + 0x18]
CALL 0x0011dee8
CMP byte ptr [RSP + 0x53],0x0
JNZ 0x00112c9f
LEA RSI,[RSP + 0x18]
MOV RDI,qword ptr [RSI + 0x40]
MOV RAX,qword ptr [RDI]
LAB_00112c99:
CALL qword ptr [RAX + 0xa0]
LAB_00112c9f:
LEA R14,[RSP + 0x60]
MOV qword ptr [R14],R12
MOV qword ptr [R14 + 0x8],0x23
MOV dword ptr [RSP],0x1
LEA RSI,[0x163020]
LEA R8,[0x16316f]
LEA R15,[RSP + 0x18]
MOV EDX,0x7
MOV R9D,0x27
MOV RDI,R15
MOV RCX,R14
CALL 0x0011de4c
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0x64]
MOV ECX,dword ptr [RBX + 0x64]
CMP EAX,ECX
MOV byte ptr [R14 + 0x8],0x1
SETZ byte ptr [R14 + 0x9]
MOV qword ptr [R14],R13
MOV dword ptr [R14 + 0xc],EAX
MOV qword ptr [R14 + 0x10],RBP
MOV qword ptr [R14 + 0x18],0x2
MOV dword ptr [R14 + 0x20],ECX
LAB_00112d0d:
LEA RSI,[RSP + 0x60]
MOV RDI,R15
CALL 0x0011de8e
LEA RDI,[RSP + 0x60]
CALL 0x0012a990
LAB_00112d24:
LEA RDI,[RSP + 0x18]
CALL 0x0011dee8
CMP byte ptr [RSP + 0x53],0x0
JNZ 0x00112d47
LEA RSI,[RSP + 0x18]
MOV RDI,qword ptr [RSI + 0x40]
MOV RAX,qword ptr [RDI]
LAB_00112d41:
CALL qword ptr [RAX + 0xa0]
LAB_00112d47:
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* checkDiamond(Shape*, Diamond&) */
void checkDiamond(Shape *param_1,Diamond *param_2)
{
int1 uVar1;
Shape *local_a8;
AssertionHandler local_a0 [59];
char local_65;
long *local_60;
Shape **local_58;
int8 local_50;
int *local_48;
int8 local_40;
int local_38;
if (param_1 == (Shape *)0x0) {
local_a8 = (Shape *)0x0;
}
else {
local_a8 = (Shape *)__dynamic_cast(param_1,PTR_typeinfo_00190ec0,PTR_typeinfo_00190f18,0);
}
local_58 = (Shape **)0x163028;
local_50 = 0x1f;
Catch::AssertionHandler::AssertionHandler(local_a0,"REQUIRE",7,&local_58,"diamondFromJson",0xf,1);
/* try { // try from 00112a91 to 00112a9d has its CatchHandler @ 00112e39 */
local_58 = &local_a8;
Catch::AssertionHandler::handleExpr<Diamond*&>(local_a0,(ExprLhs *)&local_58);
/* try { // try from 00112a9e to 00112aa7 has its CatchHandler @ 00112e64 */
Catch::AssertionHandler::complete(local_a0);
if (local_65 == '\0') {
/* try { // try from 00112abb to 00112ac0 has its CatchHandler @ 00112d61 */
(**(code **)(*local_60 + 0xa0))();
}
local_58 = (Shape **)0x163028;
local_50 = 0x20;
Catch::AssertionHandler::AssertionHandler
(local_a0,"REQUIRE",7,&local_58,"compareShape(*diamondFromJson, diamond)",0x27,1);
uVar1 = compareShape(local_a8,(Shape *)param_2);
local_58 = (Shape **)CONCAT71(local_58._1_7_,uVar1);
/* try { // try from 00112b11 to 00112b1d has its CatchHandler @ 00112e11 */
Catch::AssertionHandler::handleExpr<bool>(local_a0,(ExprLhs *)&local_58);
/* try { // try from 00112b1e to 00112b27 has its CatchHandler @ 00112e37 */
Catch::AssertionHandler::complete(local_a0);
if (local_65 == '\0') {
/* try { // try from 00112b3b to 00112b40 has its CatchHandler @ 00112d5f */
(**(code **)(*local_60 + 0xa0))();
}
local_58 = (Shape **)0x163028;
local_50 = 0x21;
Catch::AssertionHandler::AssertionHandler
(local_a0,"REQUIRE",7,&local_58,"diamondFromJson->sizeA == diamond.sizeA",0x27,1);
local_38 = *(int *)(param_2 + 0x5c);
local_50._0_2_ = CONCAT11(*(int *)(local_a8 + 0x5c) == local_38,1);
local_58 = (Shape **)&PTR_streamReconstructedExpression_0018d1d0;
local_50 = CONCAT44(*(int *)(local_a8 + 0x5c),(int4)local_50);
local_48 = &DAT_0016341c;
local_40 = 2;
/* try { // try from 00112bbd to 00112bc9 has its CatchHandler @ 00112ddc */
Catch::AssertionHandler::handleExpr(local_a0,(ITransientExpression *)&local_58);
Catch::ITransientExpression::~ITransientExpression((ITransientExpression *)&local_58);
/* try { // try from 00112bd4 to 00112bdd has its CatchHandler @ 00112e0f */
Catch::AssertionHandler::complete(local_a0);
if (local_65 == '\0') {
/* try { // try from 00112bf1 to 00112bf6 has its CatchHandler @ 00112d5d */
(**(code **)(*local_60 + 0xa0))();
}
local_58 = (Shape **)0x163028;
local_50 = 0x22;
Catch::AssertionHandler::AssertionHandler
(local_a0,"REQUIRE",7,&local_58,"diamondFromJson->sizeB == diamond.sizeB",0x27,1);
local_38 = *(int *)(param_2 + 0x60);
local_50._0_2_ = CONCAT11(*(int *)(local_a8 + 0x60) == local_38,1);
local_58 = (Shape **)&PTR_streamReconstructedExpression_0018d1d0;
local_50 = CONCAT44(*(int *)(local_a8 + 0x60),(int4)local_50);
local_48 = &DAT_0016341c;
local_40 = 2;
/* try { // try from 00112c65 to 00112c71 has its CatchHandler @ 00112da1 */
Catch::AssertionHandler::handleExpr(local_a0,(ITransientExpression *)&local_58);
Catch::ITransientExpression::~ITransientExpression((ITransientExpression *)&local_58);
/* try { // try from 00112c7c to 00112c85 has its CatchHandler @ 00112dd7 */
Catch::AssertionHandler::complete(local_a0);
if (local_65 == '\0') {
/* try { // try from 00112c99 to 00112c9e has its CatchHandler @ 00112d5b */
(**(code **)(*local_60 + 0xa0))();
}
local_58 = (Shape **)0x163028;
local_50 = 0x23;
Catch::AssertionHandler::AssertionHandler
(local_a0,"REQUIRE",7,&local_58,"diamondFromJson->angle == diamond.angle",0x27,1);
local_38 = *(int *)(param_2 + 100);
local_50._0_2_ = CONCAT11(*(int *)(local_a8 + 100) == local_38,1);
local_58 = (Shape **)&PTR_streamReconstructedExpression_0018d1d0;
local_50 = CONCAT44(*(int *)(local_a8 + 100),(int4)local_50);
local_48 = &DAT_0016341c;
local_40 = 2;
/* try { // try from 00112d0d to 00112d19 has its CatchHandler @ 00112d69 */
Catch::AssertionHandler::handleExpr(local_a0,(ITransientExpression *)&local_58);
Catch::ITransientExpression::~ITransientExpression((ITransientExpression *)&local_58);
/* try { // try from 00112d24 to 00112d2d has its CatchHandler @ 00112d9c */
Catch::AssertionHandler::complete(local_a0);
if (local_65 == '\0') {
/* try { // try from 00112d41 to 00112d46 has its CatchHandler @ 00112d59 */
(**(code **)(*local_60 + 0xa0))();
}
return;
}
| |
22,344 | checkDiamond(Shape*, Diamond&) | 11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp | void checkDiamond(Shape* shape, Diamond& diamond)
{
Diamond* diamondFromJson = dynamic_cast<Diamond*>(shape);
REQUIRE(diamondFromJson);
REQUIRE(compareShape(*diamondFromJson, diamond));
REQUIRE(diamondFromJson->sizeA == diamond.sizeA);
REQUIRE(diamondFromJson->sizeB == diamond.sizeB);
REQUIRE(diamondFromJson->angle == diamond.angle);
} | O2 | cpp | checkDiamond(Shape*, Diamond&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %rbx
testq %rdi, %rdi
je 0x13209
movq 0x7acdf(%rip), %rsi # 0x8ded8
movq 0x7ad20(%rip), %rdx # 0x8df20
xorl %ecx, %ecx
callq 0x12670
jmp 0x1320b
xorl %eax, %eax
leaq 0x10(%rsp), %r13
movq %rax, (%r13)
leaq 0x42e0d(%rip), %r12 # 0x56028
leaq 0x18(%rsp), %r14
movq %r12, (%r14)
movq $0x1f, 0x8(%r14)
movl $0x1, (%rsp)
leaq 0x42de7(%rip), %rsi # 0x56020
leaq 0x42ea7(%rip), %r8 # 0x560e7
leaq 0x40(%rsp), %r15
pushq $0x7
popq %rdx
pushq $0xf
popq %r9
movq %r15, %rdi
movq %r14, %rcx
callq 0x1cf74
movq %r13, (%r14)
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0x15066
leaq 0x40(%rsp), %rdi
callq 0x1cffc
leaq 0x40(%rsp), %rdi
callq 0x15000
leaq 0x18(%rsp), %r14
movq %r12, (%r14)
movq $0x20, 0x8(%r14)
movl $0x1, (%rsp)
leaq 0x42d87(%rip), %rsi # 0x56020
leaq 0x42e57(%rip), %r8 # 0x560f7
leaq 0x40(%rsp), %r15
pushq $0x7
popq %rdx
pushq $0x27
popq %r9
movq %r15, %rdi
movq %r14, %rcx
callq 0x1cf74
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x12f43
movb %al, (%r14)
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0x15022
leaq 0x40(%rsp), %rdi
callq 0x1cffc
leaq 0x40(%rsp), %rdi
callq 0x15000
leaq 0x18(%rsp), %r14
movq %r12, (%r14)
movq $0x21, 0x8(%r14)
movl $0x1, (%rsp)
leaq 0x42d1a(%rip), %rsi # 0x56020
leaq 0x42e12(%rip), %r8 # 0x5611f
leaq 0x40(%rsp), %r15
pushq $0x7
popq %rdx
pushq $0x27
popq %r9
movq %r15, %rdi
movq %r14, %rcx
callq 0x1cf74
movq 0x10(%rsp), %rax
movl 0x5c(%rax), %eax
movl 0x5c(%rbx), %ecx
cmpl %ecx, %eax
movb $0x1, 0x8(%r14)
sete 0x9(%r14)
leaq 0x76f4e(%rip), %r13 # 0x8a290
movq %r13, (%r14)
movl %eax, 0xc(%r14)
leaq 0x430cc(%rip), %rbp # 0x5641c
movq %rbp, 0x10(%r14)
movq $0x2, 0x18(%r14)
movl %ecx, 0x20(%r14)
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0x1cfb2
leaq 0x18(%rsp), %rdi
callq 0x26f44
leaq 0x40(%rsp), %rdi
callq 0x1cffc
leaq 0x40(%rsp), %rdi
callq 0x15000
leaq 0x18(%rsp), %r14
movq %r12, (%r14)
movq $0x22, 0x8(%r14)
movl $0x1, (%rsp)
leaq 0x42c77(%rip), %rsi # 0x56020
leaq 0x42d97(%rip), %r8 # 0x56147
leaq 0x40(%rsp), %r15
pushq $0x7
popq %rdx
pushq $0x27
popq %r9
movq %r15, %rdi
movq %r14, %rcx
callq 0x1cf74
movq 0x10(%rsp), %rax
movl 0x60(%rax), %eax
movl 0x60(%rbx), %ecx
cmpl %ecx, %eax
movb $0x1, 0x8(%r14)
sete 0x9(%r14)
movq %r13, (%r14)
movl %eax, 0xc(%r14)
movq %rbp, 0x10(%r14)
movq $0x2, 0x18(%r14)
movl %ecx, 0x20(%r14)
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0x1cfb2
leaq 0x18(%rsp), %rdi
callq 0x26f44
leaq 0x40(%rsp), %rdi
callq 0x1cffc
leaq 0x40(%rsp), %rdi
callq 0x15000
leaq 0x18(%rsp), %r14
movq %r12, (%r14)
movq $0x23, 0x8(%r14)
movl $0x1, (%rsp)
leaq 0x42be2(%rip), %rsi # 0x56020
leaq 0x42d2a(%rip), %r8 # 0x5616f
leaq 0x40(%rsp), %r15
pushq $0x7
popq %rdx
pushq $0x27
popq %r9
movq %r15, %rdi
movq %r14, %rcx
callq 0x1cf74
movq 0x10(%rsp), %rax
movl 0x64(%rax), %eax
movl 0x64(%rbx), %ecx
cmpl %ecx, %eax
movb $0x1, 0x8(%r14)
sete 0x9(%r14)
movq %r13, (%r14)
movl %eax, 0xc(%r14)
movq %rbp, 0x10(%r14)
movq $0x2, 0x18(%r14)
movl %ecx, 0x20(%r14)
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0x1cfb2
leaq 0x18(%rsp), %rdi
callq 0x26f44
leaq 0x40(%rsp), %rdi
callq 0x1cffc
leaq 0x40(%rsp), %rdi
callq 0x15000
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x26f44
movq %rbx, %rdi
callq 0x121e0
leaq 0x40(%rsp), %rdi
callq 0x1d02c
callq 0x12900
jmp 0x134a1
movq %rax, %rbx
callq 0x12900
jmp 0x135c8
jmp 0x135c5
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x26f44
movq %r14, %rdi
callq 0x121e0
leaq 0x40(%rsp), %rdi
callq 0x1d02c
callq 0x12900
jmp 0x1340c
movq %rax, %rbx
callq 0x12900
jmp 0x135c8
jmp 0x135c5
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x26f44
movq %r14, %rdi
callq 0x121e0
leaq 0x40(%rsp), %rdi
callq 0x1d02c
callq 0x12900
jmp 0x13377
movq %rax, %rbx
callq 0x12900
jmp 0x135c8
jmp 0x135c5
movq %rax, %rdi
callq 0x121e0
leaq 0x40(%rsp), %rdi
callq 0x1d02c
callq 0x12900
jmp 0x132d4
movq %rax, %rbx
callq 0x12900
jmp 0x135c8
jmp 0x135c5
movq %rax, %rdi
callq 0x121e0
leaq 0x40(%rsp), %rdi
callq 0x1d02c
callq 0x12900
jmp 0x13267
movq %rax, %rbx
callq 0x12900
jmp 0x135c8
movq %rax, %rdi
callq 0x14ff5
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x15000
movq %rbx, %rdi
callq 0x129c0
| _Z12checkDiamondP5ShapeR7Diamond:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov rbx, rsi
test rdi, rdi
jz short loc_13209
mov rsi, cs:lpstype; lpstype
mov rdx, cs:_ZTI7Diamond_ptr; lpdtype
xor ecx, ecx; s2d
call ___dynamic_cast
jmp short loc_1320B
loc_13209:
xor eax, eax
loc_1320B:
lea r13, [rsp+0B8h+var_A8]
mov [r13+0], rax
lea r12, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea r14, [rsp+0B8h+var_A0]
mov [r14], r12
mov qword ptr [r14+8], 1Fh
mov [rsp+0B8h+var_B8], 1
lea rsi, aRequire; "REQUIRE"
lea r8, aDiamondfromjso; "diamondFromJson"
lea r15, [rsp+0B8h+var_78]
push 7
pop rdx
push 0Fh
pop r9
mov rdi, r15
mov rcx, r14
call _ZN5Catch16AssertionHandlerC2ENS_9StringRefERKNS_14SourceLineInfoES1_NS_17ResultDisposition5FlagsE; Catch::AssertionHandler::AssertionHandler(Catch::StringRef,Catch::SourceLineInfo const&,Catch::StringRef,Catch::ResultDisposition::Flags)
mov [r14], r13
lea rsi, [rsp+0B8h+var_A0]
mov rdi, r15
call _ZN5Catch16AssertionHandler10handleExprIRP7DiamondEEvRKNS_7ExprLhsIT_EE; Catch::AssertionHandler::handleExpr<Diamond *&>(Catch::ExprLhs<Diamond *&> const&)
loc_13267:
lea rdi, [rsp+0B8h+var_78]; this
call _ZN5Catch16AssertionHandler8completeEv; Catch::AssertionHandler::complete(void)
lea rdi, [rsp+0B8h+var_78]; this
call _ZN5Catch16AssertionHandlerD2Ev; Catch::AssertionHandler::~AssertionHandler()
lea r14, [rsp+0B8h+var_A0]
mov [r14], r12
mov qword ptr [r14+8], 20h ; ' '
mov [rsp+0B8h+var_B8], 1
lea rsi, aRequire; "REQUIRE"
lea r8, aCompareshapeDi; "compareShape(*diamondFromJson, diamond)"
lea r15, [rsp+0B8h+var_78]
push 7
pop rdx
push 27h ; '''
pop r9
mov rdi, r15
mov rcx, r14
call _ZN5Catch16AssertionHandlerC2ENS_9StringRefERKNS_14SourceLineInfoES1_NS_17ResultDisposition5FlagsE; Catch::AssertionHandler::AssertionHandler(Catch::StringRef,Catch::SourceLineInfo const&,Catch::StringRef,Catch::ResultDisposition::Flags)
mov rdi, [rsp+0B8h+var_A8]; Shape *
mov rsi, rbx; Shape *
call _Z12compareShapeRK5ShapeS1_; compareShape(Shape const&,Shape const&)
mov [r14], al
lea rsi, [rsp+0B8h+var_A0]
mov rdi, r15
call _ZN5Catch16AssertionHandler10handleExprIbEEvRKNS_7ExprLhsIT_EE; Catch::AssertionHandler::handleExpr<bool>(Catch::ExprLhs<bool> const&)
loc_132D4:
lea rdi, [rsp+0B8h+var_78]; this
call _ZN5Catch16AssertionHandler8completeEv; Catch::AssertionHandler::complete(void)
lea rdi, [rsp+0B8h+var_78]; this
call _ZN5Catch16AssertionHandlerD2Ev; Catch::AssertionHandler::~AssertionHandler()
lea r14, [rsp+0B8h+var_A0]
mov [r14], r12
mov qword ptr [r14+8], 21h ; '!'
mov [rsp+0B8h+var_B8], 1
lea rsi, aRequire; "REQUIRE"
lea r8, aDiamondfromjso_0; "diamondFromJson->sizeA == diamond.sizeA"
lea r15, [rsp+0B8h+var_78]
push 7
pop rdx
push 27h ; '''
pop r9
mov rdi, r15
mov rcx, r14
call _ZN5Catch16AssertionHandlerC2ENS_9StringRefERKNS_14SourceLineInfoES1_NS_17ResultDisposition5FlagsE; Catch::AssertionHandler::AssertionHandler(Catch::StringRef,Catch::SourceLineInfo const&,Catch::StringRef,Catch::ResultDisposition::Flags)
mov rax, [rsp+0B8h+var_A8]
mov eax, [rax+5Ch]
mov ecx, [rbx+5Ch]
cmp eax, ecx
mov byte ptr [r14+8], 1
setz byte ptr [r14+9]
lea r13, off_8A290
mov [r14], r13
mov [r14+0Ch], eax
lea rbp, asc_5641C; "=="
mov [r14+10h], rbp
mov qword ptr [r14+18h], 2
mov [r14+20h], ecx
lea rsi, [rsp+0B8h+var_A0]
mov rdi, r15
call _ZN5Catch16AssertionHandler10handleExprERKNS_20ITransientExpressionE; Catch::AssertionHandler::handleExpr(Catch::ITransientExpression const&)
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression()
loc_13377:
lea rdi, [rsp+0B8h+var_78]; this
call _ZN5Catch16AssertionHandler8completeEv; Catch::AssertionHandler::complete(void)
lea rdi, [rsp+0B8h+var_78]; this
call _ZN5Catch16AssertionHandlerD2Ev; Catch::AssertionHandler::~AssertionHandler()
lea r14, [rsp+0B8h+var_A0]
mov [r14], r12
mov qword ptr [r14+8], 22h ; '"'
mov [rsp+0B8h+var_B8], 1
lea rsi, aRequire; "REQUIRE"
lea r8, aDiamondfromjso_1; "diamondFromJson->sizeB == diamond.sizeB"
lea r15, [rsp+0B8h+var_78]
push 7
pop rdx
push 27h ; '''
pop r9
mov rdi, r15
mov rcx, r14
call _ZN5Catch16AssertionHandlerC2ENS_9StringRefERKNS_14SourceLineInfoES1_NS_17ResultDisposition5FlagsE; Catch::AssertionHandler::AssertionHandler(Catch::StringRef,Catch::SourceLineInfo const&,Catch::StringRef,Catch::ResultDisposition::Flags)
mov rax, [rsp+0B8h+var_A8]
mov eax, [rax+60h]
mov ecx, [rbx+60h]
cmp eax, ecx
mov byte ptr [r14+8], 1
setz byte ptr [r14+9]
mov [r14], r13
mov [r14+0Ch], eax
mov [r14+10h], rbp
mov qword ptr [r14+18h], 2
mov [r14+20h], ecx
lea rsi, [rsp+0B8h+var_A0]
mov rdi, r15
call _ZN5Catch16AssertionHandler10handleExprERKNS_20ITransientExpressionE; Catch::AssertionHandler::handleExpr(Catch::ITransientExpression const&)
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression()
loc_1340C:
lea rdi, [rsp+0B8h+var_78]; this
call _ZN5Catch16AssertionHandler8completeEv; Catch::AssertionHandler::complete(void)
lea rdi, [rsp+0B8h+var_78]; this
call _ZN5Catch16AssertionHandlerD2Ev; Catch::AssertionHandler::~AssertionHandler()
lea r14, [rsp+0B8h+var_A0]
mov [r14], r12
mov qword ptr [r14+8], 23h ; '#'
mov [rsp+0B8h+var_B8], 1
lea rsi, aRequire; "REQUIRE"
lea r8, aDiamondfromjso_2; "diamondFromJson->angle == diamond.angle"
lea r15, [rsp+0B8h+var_78]
push 7
pop rdx
push 27h ; '''
pop r9
mov rdi, r15
mov rcx, r14
call _ZN5Catch16AssertionHandlerC2ENS_9StringRefERKNS_14SourceLineInfoES1_NS_17ResultDisposition5FlagsE; Catch::AssertionHandler::AssertionHandler(Catch::StringRef,Catch::SourceLineInfo const&,Catch::StringRef,Catch::ResultDisposition::Flags)
mov rax, [rsp+0B8h+var_A8]
mov eax, [rax+64h]
mov ecx, [rbx+64h]
cmp eax, ecx
mov byte ptr [r14+8], 1
setz byte ptr [r14+9]
mov [r14], r13
mov [r14+0Ch], eax
mov [r14+10h], rbp
mov qword ptr [r14+18h], 2
mov [r14+20h], ecx
lea rsi, [rsp+0B8h+var_A0]
mov rdi, r15
call _ZN5Catch16AssertionHandler10handleExprERKNS_20ITransientExpressionE; Catch::AssertionHandler::handleExpr(Catch::ITransientExpression const&)
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression()
loc_134A1:
lea rdi, [rsp+0B8h+var_78]; this
call _ZN5Catch16AssertionHandler8completeEv; Catch::AssertionHandler::complete(void)
lea rdi, [rsp+0B8h+var_78]; this
call _ZN5Catch16AssertionHandlerD2Ev; Catch::AssertionHandler::~AssertionHandler()
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression()
mov rdi, rbx; void *
call ___cxa_begin_catch
lea rdi, [rsp+0B8h+var_78]; this
call _ZN5Catch16AssertionHandler33handleUnexpectedInflightExceptionEv; Catch::AssertionHandler::handleUnexpectedInflightException(void)
call ___cxa_end_catch
jmp short loc_134A1
mov rbx, rax
call ___cxa_end_catch
jmp loc_135C8
jmp loc_135C5
mov r14, rax
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression()
mov rdi, r14; void *
call ___cxa_begin_catch
lea rdi, [rsp+0B8h+var_78]; this
call _ZN5Catch16AssertionHandler33handleUnexpectedInflightExceptionEv; Catch::AssertionHandler::handleUnexpectedInflightException(void)
call ___cxa_end_catch
jmp loc_1340C
mov rbx, rax
call ___cxa_end_catch
jmp loc_135C8
jmp loc_135C5
mov r14, rax
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression()
mov rdi, r14; void *
call ___cxa_begin_catch
lea rdi, [rsp+0B8h+var_78]; this
call _ZN5Catch16AssertionHandler33handleUnexpectedInflightExceptionEv; Catch::AssertionHandler::handleUnexpectedInflightException(void)
call ___cxa_end_catch
jmp loc_13377
mov rbx, rax
call ___cxa_end_catch
jmp short loc_135C8
jmp short loc_135C5
mov rdi, rax; void *
call ___cxa_begin_catch
lea rdi, [rsp+0B8h+var_78]; this
call _ZN5Catch16AssertionHandler33handleUnexpectedInflightExceptionEv; Catch::AssertionHandler::handleUnexpectedInflightException(void)
call ___cxa_end_catch
jmp loc_132D4
mov rbx, rax
call ___cxa_end_catch
jmp short loc_135C8
jmp short loc_135C5
mov rdi, rax; void *
call ___cxa_begin_catch
lea rdi, [rsp+0B8h+var_78]; this
call _ZN5Catch16AssertionHandler33handleUnexpectedInflightExceptionEv; Catch::AssertionHandler::handleUnexpectedInflightException(void)
call ___cxa_end_catch
jmp loc_13267
mov rbx, rax
call ___cxa_end_catch
jmp short loc_135C8
mov rdi, rax
call __clang_call_terminate
loc_135C5:
mov rbx, rax
loc_135C8:
lea rdi, [rsp+arg_38]; this
call _ZN5Catch16AssertionHandlerD2Ev; Catch::AssertionHandler::~AssertionHandler()
mov rdi, rbx
call __Unwind_Resume
| void checkDiamond(Shape *a1, Diamond *a2)
{
Shape *v2; // rax
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
int v7; // eax
int v8; // ecx
int v9; // eax
int v10; // ecx
int v11; // eax
int v12; // ecx
char v13; // [rsp+0h] [rbp-B8h]
Shape *v14; // [rsp+10h] [rbp-A8h] BYREF
Shape **v15; // [rsp+18h] [rbp-A0h] BYREF
long long v16; // [rsp+20h] [rbp-98h]
const char *v17; // [rsp+28h] [rbp-90h]
long long v18; // [rsp+30h] [rbp-88h]
int v19; // [rsp+38h] [rbp-80h]
_BYTE v20[120]; // [rsp+40h] [rbp-78h] BYREF
if ( a1 )
v2 = (Shape *)__dynamic_cast(
a1,
(const struct __class_type_info *)&`typeinfo for'Shape,
(const struct __class_type_info *)&`typeinfo for'Diamond,
0LL);
else
v2 = 0LL;
v14 = v2;
v15 = (Shape **)"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp";
v16 = 31LL;
Catch::AssertionHandler::AssertionHandler(
(unsigned int)v20,
(unsigned int)"REQUIRE",
7,
(unsigned int)&v15,
(unsigned int)"diamondFromJson",
15,
1);
v15 = &v14;
Catch::AssertionHandler::handleExpr<Diamond *&>((unsigned int)v20, (unsigned int)&v15, v3, v4, v5, v6, v13);
Catch::AssertionHandler::complete((Catch::AssertionHandler *)v20);
Catch::AssertionHandler::~AssertionHandler((Catch::AssertionHandler *)v20);
v15 = (Shape **)"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp";
v16 = 32LL;
Catch::AssertionHandler::AssertionHandler(
(unsigned int)v20,
(unsigned int)"REQUIRE",
7,
(unsigned int)&v15,
(unsigned int)"compareShape(*diamondFromJson, diamond)",
39,
1);
LOBYTE(v15) = compareShape(v14, a2);
Catch::AssertionHandler::handleExpr<bool>(v20, &v15);
Catch::AssertionHandler::complete((Catch::AssertionHandler *)v20);
Catch::AssertionHandler::~AssertionHandler((Catch::AssertionHandler *)v20);
v15 = (Shape **)"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp";
v16 = 33LL;
Catch::AssertionHandler::AssertionHandler(
(unsigned int)v20,
(unsigned int)"REQUIRE",
7,
(unsigned int)&v15,
(unsigned int)"diamondFromJson->sizeA == diamond.sizeA",
39,
1);
v7 = *((_DWORD *)v14 + 23);
v8 = *((_DWORD *)a2 + 23);
LOBYTE(v16) = 1;
BYTE1(v16) = v7 == v8;
v15 = (Shape **)&off_8A290;
HIDWORD(v16) = v7;
v17 = "==";
v18 = 2LL;
v19 = v8;
Catch::AssertionHandler::handleExpr((Catch::AssertionHandler *)v20, (const Catch::ITransientExpression *)&v15);
Catch::ITransientExpression::~ITransientExpression((Catch::ITransientExpression *)&v15);
Catch::AssertionHandler::complete((Catch::AssertionHandler *)v20);
Catch::AssertionHandler::~AssertionHandler((Catch::AssertionHandler *)v20);
v15 = (Shape **)"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp";
v16 = 34LL;
Catch::AssertionHandler::AssertionHandler(
(unsigned int)v20,
(unsigned int)"REQUIRE",
7,
(unsigned int)&v15,
(unsigned int)"diamondFromJson->sizeB == diamond.sizeB",
39,
1);
v9 = *((_DWORD *)v14 + 24);
v10 = *((_DWORD *)a2 + 24);
LOBYTE(v16) = 1;
BYTE1(v16) = v9 == v10;
v15 = (Shape **)&off_8A290;
HIDWORD(v16) = v9;
v17 = "==";
v18 = 2LL;
v19 = v10;
Catch::AssertionHandler::handleExpr((Catch::AssertionHandler *)v20, (const Catch::ITransientExpression *)&v15);
Catch::ITransientExpression::~ITransientExpression((Catch::ITransientExpression *)&v15);
Catch::AssertionHandler::complete((Catch::AssertionHandler *)v20);
Catch::AssertionHandler::~AssertionHandler((Catch::AssertionHandler *)v20);
v15 = (Shape **)"/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp";
v16 = 35LL;
Catch::AssertionHandler::AssertionHandler(
(unsigned int)v20,
(unsigned int)"REQUIRE",
7,
(unsigned int)&v15,
(unsigned int)"diamondFromJson->angle == diamond.angle",
39,
1);
v11 = *((_DWORD *)v14 + 25);
v12 = *((_DWORD *)a2 + 25);
LOBYTE(v16) = 1;
BYTE1(v16) = v11 == v12;
v15 = (Shape **)&off_8A290;
HIDWORD(v16) = v11;
v17 = "==";
v18 = 2LL;
v19 = v12;
Catch::AssertionHandler::handleExpr((Catch::AssertionHandler *)v20, (const Catch::ITransientExpression *)&v15);
Catch::ITransientExpression::~ITransientExpression((Catch::ITransientExpression *)&v15);
Catch::AssertionHandler::complete((Catch::AssertionHandler *)v20);
Catch::AssertionHandler::~AssertionHandler((Catch::AssertionHandler *)v20);
}
| checkDiamond:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV RBX,RSI
TEST RDI,RDI
JZ 0x00113209
MOV RSI,qword ptr [0x0018ded8]
MOV RDX,qword ptr [0x0018df20]
XOR ECX,ECX
CALL 0x00112670
JMP 0x0011320b
LAB_00113209:
XOR EAX,EAX
LAB_0011320b:
LEA R13,[RSP + 0x10]
MOV qword ptr [R13],RAX
LEA R12,[0x156028]
LEA R14,[RSP + 0x18]
MOV qword ptr [R14],R12
MOV qword ptr [R14 + 0x8],0x1f
MOV dword ptr [RSP],0x1
LEA RSI,[0x156020]
LEA R8,[0x1560e7]
LEA R15,[RSP + 0x40]
PUSH 0x7
POP RDX
PUSH 0xf
POP R9
MOV RDI,R15
MOV RCX,R14
CALL 0x0011cf74
MOV qword ptr [R14],R13
LAB_0011325a:
LEA RSI,[RSP + 0x18]
MOV RDI,R15
CALL 0x00115066
LAB_00113267:
LEA RDI,[RSP + 0x40]
CALL 0x0011cffc
LAB_00113271:
LEA RDI,[RSP + 0x40]
CALL 0x00115000
LEA R14,[RSP + 0x18]
MOV qword ptr [R14],R12
MOV qword ptr [R14 + 0x8],0x20
MOV dword ptr [RSP],0x1
LEA RSI,[0x156020]
LEA R8,[0x1560f7]
LEA R15,[RSP + 0x40]
PUSH 0x7
POP RDX
PUSH 0x27
POP R9
MOV RDI,R15
MOV RCX,R14
CALL 0x0011cf74
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,RBX
CALL 0x00112f43
MOV byte ptr [R14],AL
LAB_001132c7:
LEA RSI,[RSP + 0x18]
MOV RDI,R15
CALL 0x00115022
LAB_001132d4:
LEA RDI,[RSP + 0x40]
CALL 0x0011cffc
LAB_001132de:
LEA RDI,[RSP + 0x40]
CALL 0x00115000
LEA R14,[RSP + 0x18]
MOV qword ptr [R14],R12
MOV qword ptr [R14 + 0x8],0x21
MOV dword ptr [RSP],0x1
LEA RSI,[0x156020]
LEA R8,[0x15611f]
LEA R15,[RSP + 0x40]
PUSH 0x7
POP RDX
PUSH 0x27
POP R9
MOV RDI,R15
MOV RCX,R14
CALL 0x0011cf74
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0x5c]
MOV ECX,dword ptr [RBX + 0x5c]
CMP EAX,ECX
MOV byte ptr [R14 + 0x8],0x1
SETZ byte ptr [R14 + 0x9]
LEA R13,[0x18a290]
MOV qword ptr [R14],R13
MOV dword ptr [R14 + 0xc],EAX
LEA RBP,[0x15641c]
MOV qword ptr [R14 + 0x10],RBP
MOV qword ptr [R14 + 0x18],0x2
MOV dword ptr [R14 + 0x20],ECX
LAB_00113360:
LEA RSI,[RSP + 0x18]
MOV RDI,R15
CALL 0x0011cfb2
LEA RDI,[RSP + 0x18]
CALL 0x00126f44
LAB_00113377:
LEA RDI,[RSP + 0x40]
CALL 0x0011cffc
LAB_00113381:
LEA RDI,[RSP + 0x40]
CALL 0x00115000
LEA R14,[RSP + 0x18]
MOV qword ptr [R14],R12
MOV qword ptr [R14 + 0x8],0x22
MOV dword ptr [RSP],0x1
LEA RSI,[0x156020]
LEA R8,[0x156147]
LEA R15,[RSP + 0x40]
PUSH 0x7
POP RDX
PUSH 0x27
POP R9
MOV RDI,R15
MOV RCX,R14
CALL 0x0011cf74
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0x60]
MOV ECX,dword ptr [RBX + 0x60]
CMP EAX,ECX
MOV byte ptr [R14 + 0x8],0x1
SETZ byte ptr [R14 + 0x9]
MOV qword ptr [R14],R13
MOV dword ptr [R14 + 0xc],EAX
MOV qword ptr [R14 + 0x10],RBP
MOV qword ptr [R14 + 0x18],0x2
MOV dword ptr [R14 + 0x20],ECX
LAB_001133f5:
LEA RSI,[RSP + 0x18]
MOV RDI,R15
CALL 0x0011cfb2
LEA RDI,[RSP + 0x18]
CALL 0x00126f44
LAB_0011340c:
LEA RDI,[RSP + 0x40]
CALL 0x0011cffc
LAB_00113416:
LEA RDI,[RSP + 0x40]
CALL 0x00115000
LEA R14,[RSP + 0x18]
MOV qword ptr [R14],R12
MOV qword ptr [R14 + 0x8],0x23
MOV dword ptr [RSP],0x1
LEA RSI,[0x156020]
LEA R8,[0x15616f]
LEA R15,[RSP + 0x40]
PUSH 0x7
POP RDX
PUSH 0x27
POP R9
MOV RDI,R15
MOV RCX,R14
CALL 0x0011cf74
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0x64]
MOV ECX,dword ptr [RBX + 0x64]
CMP EAX,ECX
MOV byte ptr [R14 + 0x8],0x1
SETZ byte ptr [R14 + 0x9]
MOV qword ptr [R14],R13
MOV dword ptr [R14 + 0xc],EAX
MOV qword ptr [R14 + 0x10],RBP
MOV qword ptr [R14 + 0x18],0x2
MOV dword ptr [R14 + 0x20],ECX
LAB_0011348a:
LEA RSI,[RSP + 0x18]
MOV RDI,R15
CALL 0x0011cfb2
LEA RDI,[RSP + 0x18]
CALL 0x00126f44
LAB_001134a1:
LEA RDI,[RSP + 0x40]
CALL 0x0011cffc
LAB_001134ab:
LEA RDI,[RSP + 0x40]
CALL 0x00115000
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* checkDiamond(Shape*, Diamond&) */
void checkDiamond(Shape *param_1,Diamond *param_2)
{
int1 uVar1;
Shape *local_a8;
Shape **local_a0;
int8 local_98;
int *local_90;
int8 local_88;
int local_80;
AssertionHandler local_78 [72];
if (param_1 == (Shape *)0x0) {
local_a8 = (Shape *)0x0;
}
else {
local_a8 = (Shape *)__dynamic_cast(param_1,PTR_typeinfo_0018ded8,PTR_typeinfo_0018df20,0);
}
local_a0 = (Shape **)0x156028;
local_98 = 0x1f;
Catch::AssertionHandler::AssertionHandler(local_78,"REQUIRE",7,&local_a0,"diamondFromJson",0xf,1);
/* try { // try from 0011325a to 00113266 has its CatchHandler @ 00113597 */
local_a0 = &local_a8;
Catch::AssertionHandler::handleExpr<Diamond*&>(local_78,(ExprLhs *)&local_a0);
/* try { // try from 00113267 to 00113270 has its CatchHandler @ 001135c5 */
Catch::AssertionHandler::complete(local_78);
Catch::AssertionHandler::~AssertionHandler(local_78);
local_a0 = (Shape **)0x156028;
local_98 = 0x20;
Catch::AssertionHandler::AssertionHandler
(local_78,"REQUIRE",7,&local_a0,"compareShape(*diamondFromJson, diamond)",0x27,1);
uVar1 = compareShape(local_a8,(Shape *)param_2);
local_a0 = (Shape **)CONCAT71(local_a0._1_7_,uVar1);
/* try { // try from 001132c7 to 001132d3 has its CatchHandler @ 0011356f */
Catch::AssertionHandler::handleExpr<bool>(local_78,(ExprLhs *)&local_a0);
/* try { // try from 001132d4 to 001132dd has its CatchHandler @ 00113595 */
Catch::AssertionHandler::complete(local_78);
Catch::AssertionHandler::~AssertionHandler(local_78);
local_a0 = (Shape **)0x156028;
local_98 = 0x21;
Catch::AssertionHandler::AssertionHandler
(local_78,"REQUIRE",7,&local_a0,"diamondFromJson->sizeA == diamond.sizeA",0x27,1);
local_80 = *(int *)(param_2 + 0x5c);
local_98._0_2_ = CONCAT11(*(int *)(local_a8 + 0x5c) == local_80,1);
local_a0 = (Shape **)&PTR_streamReconstructedExpression_0018a290;
local_98 = CONCAT44(*(int *)(local_a8 + 0x5c),(int4)local_98);
local_90 = &DAT_0015641c;
local_88 = 2;
/* try { // try from 00113360 to 0011336c has its CatchHandler @ 0011353a */
Catch::AssertionHandler::handleExpr(local_78,(ITransientExpression *)&local_a0);
Catch::ITransientExpression::~ITransientExpression((ITransientExpression *)&local_a0);
/* try { // try from 00113377 to 00113380 has its CatchHandler @ 0011356d */
Catch::AssertionHandler::complete(local_78);
Catch::AssertionHandler::~AssertionHandler(local_78);
local_a0 = (Shape **)0x156028;
local_98 = 0x22;
Catch::AssertionHandler::AssertionHandler
(local_78,"REQUIRE",7,&local_a0,"diamondFromJson->sizeB == diamond.sizeB",0x27,1);
local_80 = *(int *)(param_2 + 0x60);
local_98._0_2_ = CONCAT11(*(int *)(local_a8 + 0x60) == local_80,1);
local_a0 = (Shape **)&PTR_streamReconstructedExpression_0018a290;
local_98 = CONCAT44(*(int *)(local_a8 + 0x60),(int4)local_98);
local_90 = &DAT_0015641c;
local_88 = 2;
/* try { // try from 001133f5 to 00113401 has its CatchHandler @ 001134ff */
Catch::AssertionHandler::handleExpr(local_78,(ITransientExpression *)&local_a0);
Catch::ITransientExpression::~ITransientExpression((ITransientExpression *)&local_a0);
/* try { // try from 0011340c to 00113415 has its CatchHandler @ 00113535 */
Catch::AssertionHandler::complete(local_78);
Catch::AssertionHandler::~AssertionHandler(local_78);
local_a0 = (Shape **)0x156028;
local_98 = 0x23;
Catch::AssertionHandler::AssertionHandler
(local_78,"REQUIRE",7,&local_a0,"diamondFromJson->angle == diamond.angle",0x27,1);
local_80 = *(int *)(param_2 + 100);
local_98._0_2_ = CONCAT11(*(int *)(local_a8 + 100) == local_80,1);
local_a0 = (Shape **)&PTR_streamReconstructedExpression_0018a290;
local_98 = CONCAT44(*(int *)(local_a8 + 100),(int4)local_98);
local_90 = &DAT_0015641c;
local_88 = 2;
/* try { // try from 0011348a to 00113496 has its CatchHandler @ 001134c7 */
Catch::AssertionHandler::handleExpr(local_78,(ITransientExpression *)&local_a0);
Catch::ITransientExpression::~ITransientExpression((ITransientExpression *)&local_a0);
/* try { // try from 001134a1 to 001134aa has its CatchHandler @ 001134fa */
Catch::AssertionHandler::complete(local_78);
Catch::AssertionHandler::~AssertionHandler(local_78);
return;
}
| |
22,345 | checkDiamond(Shape*, Diamond&) | 11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp | void checkDiamond(Shape* shape, Diamond& diamond)
{
Diamond* diamondFromJson = dynamic_cast<Diamond*>(shape);
REQUIRE(diamondFromJson);
REQUIRE(compareShape(*diamondFromJson, diamond));
REQUIRE(diamondFromJson->sizeA == diamond.sizeA);
REQUIRE(diamondFromJson->sizeB == diamond.sizeB);
REQUIRE(diamondFromJson->angle == diamond.angle);
} | O3 | cpp | checkDiamond(Shape*, Diamond&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %rbx
testq %rdi, %rdi
je 0x12a4c
movq 0x7e484(%rip), %rsi # 0x90ec0
movq 0x7e4d5(%rip), %rdx # 0x90f18
xorl %ecx, %ecx
callq 0x115a0
jmp 0x12a4e
xorl %eax, %eax
leaq 0x10(%rsp), %r13
movq %rax, (%r13)
leaq 0x505ca(%rip), %r12 # 0x63028
leaq 0x60(%rsp), %r14
movq %r12, (%r14)
movq $0x1f, 0x8(%r14)
movl $0x1, (%rsp)
leaq 0x505a4(%rip), %rsi # 0x63020
leaq 0x50664(%rip), %r8 # 0x630e7
leaq 0x18(%rsp), %r15
movl $0x7, %edx
movl $0xf, %r9d
movq %r15, %rdi
movq %r14, %rcx
callq 0x1dde0
movq %r13, (%r14)
leaq 0x60(%rsp), %rsi
movq %r15, %rdi
callq 0x1536e
leaq 0x18(%rsp), %rdi
callq 0x1de7e
cmpb $0x0, 0x53(%rsp)
jne 0x12ad1
leaq 0x18(%rsp), %rsi
movq 0x40(%rsi), %rdi
movq (%rdi), %rax
callq *0xa0(%rax)
leaq 0x60(%rsp), %r14
movq %r12, (%r14)
movq $0x20, 0x8(%r14)
movl $0x1, (%rsp)
leaq 0x50531(%rip), %rsi # 0x63020
leaq 0x50601(%rip), %r8 # 0x630f7
leaq 0x18(%rsp), %r15
movl $0x7, %edx
movl $0x27, %r9d
movq %r15, %rdi
movq %r14, %rcx
callq 0x1dde0
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x12735
movb %al, (%r14)
leaq 0x60(%rsp), %rsi
movq %r15, %rdi
callq 0x1532a
leaq 0x18(%rsp), %rdi
callq 0x1de7e
cmpb $0x0, 0x53(%rsp)
jne 0x12b51
leaq 0x18(%rsp), %rsi
movq 0x40(%rsi), %rdi
movq (%rdi), %rax
callq *0xa0(%rax)
leaq 0x60(%rsp), %r14
movq %r12, (%r14)
movq $0x21, 0x8(%r14)
movl $0x1, (%rsp)
leaq 0x504b1(%rip), %rsi # 0x63020
leaq 0x505a9(%rip), %r8 # 0x6311f
leaq 0x18(%rsp), %r15
movl $0x7, %edx
movl $0x27, %r9d
movq %r15, %rdi
movq %r14, %rcx
callq 0x1dde0
movq 0x10(%rsp), %rax
movl 0x5c(%rax), %eax
movl 0x5c(%rbx), %ecx
cmpl %ecx, %eax
movb $0x1, 0x8(%r14)
sete 0x9(%r14)
leaq 0x7a6d1(%rip), %r13 # 0x8d280
movq %r13, (%r14)
movl %eax, 0xc(%r14)
leaq 0x5085f(%rip), %rbp # 0x6341c
movq %rbp, 0x10(%r14)
movq $0x2, 0x18(%r14)
movl %ecx, 0x20(%r14)
leaq 0x60(%rsp), %rsi
movq %r15, %rdi
callq 0x1de22
leaq 0x60(%rsp), %rdi
callq 0x2a4d4
leaq 0x18(%rsp), %rdi
callq 0x1de7e
cmpb $0x0, 0x53(%rsp)
jne 0x12c07
leaq 0x18(%rsp), %rsi
movq 0x40(%rsi), %rdi
movq (%rdi), %rax
callq *0xa0(%rax)
leaq 0x60(%rsp), %r14
movq %r12, (%r14)
movq $0x22, 0x8(%r14)
movl $0x1, (%rsp)
leaq 0x503fb(%rip), %rsi # 0x63020
leaq 0x5051b(%rip), %r8 # 0x63147
leaq 0x18(%rsp), %r15
movl $0x7, %edx
movl $0x27, %r9d
movq %r15, %rdi
movq %r14, %rcx
callq 0x1dde0
movq 0x10(%rsp), %rax
movl 0x60(%rax), %eax
movl 0x60(%rbx), %ecx
cmpl %ecx, %eax
movb $0x1, 0x8(%r14)
sete 0x9(%r14)
movq %r13, (%r14)
movl %eax, 0xc(%r14)
movq %rbp, 0x10(%r14)
movq $0x2, 0x18(%r14)
movl %ecx, 0x20(%r14)
leaq 0x60(%rsp), %rsi
movq %r15, %rdi
callq 0x1de22
leaq 0x60(%rsp), %rdi
callq 0x2a4d4
leaq 0x18(%rsp), %rdi
callq 0x1de7e
cmpb $0x0, 0x53(%rsp)
jne 0x12caf
leaq 0x18(%rsp), %rsi
movq 0x40(%rsi), %rdi
movq (%rdi), %rax
callq *0xa0(%rax)
leaq 0x60(%rsp), %r14
movq %r12, (%r14)
movq $0x23, 0x8(%r14)
movl $0x1, (%rsp)
leaq 0x50353(%rip), %rsi # 0x63020
leaq 0x5049b(%rip), %r8 # 0x6316f
leaq 0x18(%rsp), %r15
movl $0x7, %edx
movl $0x27, %r9d
movq %r15, %rdi
movq %r14, %rcx
callq 0x1dde0
movq 0x10(%rsp), %rax
movl 0x64(%rax), %eax
movl 0x64(%rbx), %ecx
cmpl %ecx, %eax
movb $0x1, 0x8(%r14)
sete 0x9(%r14)
movq %r13, (%r14)
movl %eax, 0xc(%r14)
movq %rbp, 0x10(%r14)
movq $0x2, 0x18(%r14)
movl %ecx, 0x20(%r14)
leaq 0x60(%rsp), %rsi
movq %r15, %rdi
callq 0x1de22
leaq 0x60(%rsp), %rdi
callq 0x2a4d4
leaq 0x18(%rsp), %rdi
callq 0x1de7e
cmpb $0x0, 0x53(%rsp)
jne 0x12d57
leaq 0x18(%rsp), %rsi
movq 0x40(%rsi), %rdi
movq (%rdi), %rax
callq *0xa0(%rax)
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x12d71
jmp 0x12d71
jmp 0x12d71
jmp 0x12d71
movq %rax, %rdi
callq 0x152fd
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x2a4d4
movq %rbx, %rdi
callq 0x11190
leaq 0x18(%rsp), %rdi
callq 0x1deae
callq 0x11830
jmp 0x12d34
movq %rax, %rbx
callq 0x11830
jmp 0x12e77
jmp 0x12e74
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x2a4d4
movq %r14, %rdi
callq 0x11190
leaq 0x18(%rsp), %rdi
callq 0x1deae
callq 0x11830
jmp 0x12c8c
movq %rax, %rbx
callq 0x11830
jmp 0x12e77
jmp 0x12e74
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x2a4d4
movq %r14, %rdi
callq 0x11190
leaq 0x18(%rsp), %rdi
callq 0x1deae
callq 0x11830
jmp 0x12be4
movq %rax, %rbx
callq 0x11830
jmp 0x12e77
jmp 0x12e74
movq %rax, %rdi
callq 0x11190
leaq 0x18(%rsp), %rdi
callq 0x1deae
callq 0x11830
jmp 0x12b2e
movq %rax, %rbx
callq 0x11830
jmp 0x12e77
jmp 0x12e74
movq %rax, %rdi
callq 0x11190
leaq 0x18(%rsp), %rdi
callq 0x1deae
callq 0x11830
jmp 0x12aae
movq %rax, %rbx
callq 0x11830
jmp 0x12e77
jmp 0x12d71
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x15308
movq %rbx, %rdi
callq 0x11900
| _Z12checkDiamondP5ShapeR7Diamond:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov rbx, rsi
test rdi, rdi
jz short loc_12A4C
mov rsi, cs:lpstype; lpstype
mov rdx, cs:_ZTI7Diamond_ptr; lpdtype
xor ecx, ecx; s2d
call ___dynamic_cast
jmp short loc_12A4E
loc_12A4C:
xor eax, eax
loc_12A4E:
lea r13, [rsp+0B8h+var_A8]
mov [r13+0], rax
lea r12, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea r14, [rsp+0B8h+var_58]
mov [r14], r12
mov qword ptr [r14+8], 1Fh
mov [rsp+0B8h+var_B8], 1
lea rsi, aRequire; "REQUIRE"
lea r8, aDiamondfromjso; "diamondFromJson"
lea r15, [rsp+0B8h+var_A0]
mov edx, 7
mov r9d, 0Fh
mov rdi, r15
mov rcx, r14
call _ZN5Catch16AssertionHandlerC2ENS_9StringRefERKNS_14SourceLineInfoES1_NS_17ResultDisposition5FlagsE; Catch::AssertionHandler::AssertionHandler(Catch::StringRef,Catch::SourceLineInfo const&,Catch::StringRef,Catch::ResultDisposition::Flags)
mov [r14], r13
lea rsi, [rsp+0B8h+var_58]
mov rdi, r15
call _ZN5Catch16AssertionHandler10handleExprIRP7DiamondEEvRKNS_7ExprLhsIT_EE; Catch::AssertionHandler::handleExpr<Diamond *&>(Catch::ExprLhs<Diamond *&> const&)
loc_12AAE:
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler8completeEv; Catch::AssertionHandler::complete(void)
cmp [rsp+0B8h+var_65], 0
jnz short loc_12AD1
lea rsi, [rsp+0B8h+var_A0]
mov rdi, [rsi+40h]
mov rax, [rdi]
call qword ptr [rax+0A0h]
loc_12AD1:
lea r14, [rsp+0B8h+var_58]
mov [r14], r12
mov qword ptr [r14+8], 20h ; ' '
mov [rsp+0B8h+var_B8], 1
lea rsi, aRequire; "REQUIRE"
lea r8, aCompareshapeDi; "compareShape(*diamondFromJson, diamond)"
lea r15, [rsp+0B8h+var_A0]
mov edx, 7
mov r9d, 27h ; '''
mov rdi, r15
mov rcx, r14
call _ZN5Catch16AssertionHandlerC2ENS_9StringRefERKNS_14SourceLineInfoES1_NS_17ResultDisposition5FlagsE; Catch::AssertionHandler::AssertionHandler(Catch::StringRef,Catch::SourceLineInfo const&,Catch::StringRef,Catch::ResultDisposition::Flags)
mov rdi, [rsp+0B8h+var_A8]
mov rsi, rbx
call _Z12compareShapeRK5ShapeS1_; compareShape(Shape const&,Shape const&)
mov [r14], al
lea rsi, [rsp+0B8h+var_58]
mov rdi, r15
call _ZN5Catch16AssertionHandler10handleExprIbEEvRKNS_7ExprLhsIT_EE; Catch::AssertionHandler::handleExpr<bool>(Catch::ExprLhs<bool> const&)
loc_12B2E:
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler8completeEv; Catch::AssertionHandler::complete(void)
cmp [rsp+0B8h+var_65], 0
jnz short loc_12B51
lea rsi, [rsp+0B8h+var_A0]
mov rdi, [rsi+40h]
mov rax, [rdi]
call qword ptr [rax+0A0h]
loc_12B51:
lea r14, [rsp+0B8h+var_58]
mov [r14], r12
mov qword ptr [r14+8], 21h ; '!'
mov [rsp+0B8h+var_B8], 1
lea rsi, aRequire; "REQUIRE"
lea r8, aDiamondfromjso_0; "diamondFromJson->sizeA == diamond.sizeA"
lea r15, [rsp+0B8h+var_A0]
mov edx, 7
mov r9d, 27h ; '''
mov rdi, r15
mov rcx, r14
call _ZN5Catch16AssertionHandlerC2ENS_9StringRefERKNS_14SourceLineInfoES1_NS_17ResultDisposition5FlagsE; Catch::AssertionHandler::AssertionHandler(Catch::StringRef,Catch::SourceLineInfo const&,Catch::StringRef,Catch::ResultDisposition::Flags)
mov rax, [rsp+0B8h+var_A8]
mov eax, [rax+5Ch]
mov ecx, [rbx+5Ch]
cmp eax, ecx
mov byte ptr [r14+8], 1
setz byte ptr [r14+9]
lea r13, off_8D280
mov [r14], r13
mov [r14+0Ch], eax
lea rbp, asc_6341C; "=="
mov [r14+10h], rbp
mov qword ptr [r14+18h], 2
mov [r14+20h], ecx
lea rsi, [rsp+0B8h+var_58]
mov rdi, r15
call _ZN5Catch16AssertionHandler10handleExprERKNS_20ITransientExpressionE; Catch::AssertionHandler::handleExpr(Catch::ITransientExpression const&)
lea rdi, [rsp+0B8h+var_58]; this
call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression()
loc_12BE4:
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler8completeEv; Catch::AssertionHandler::complete(void)
cmp [rsp+0B8h+var_65], 0
jnz short loc_12C07
lea rsi, [rsp+0B8h+var_A0]
mov rdi, [rsi+40h]
mov rax, [rdi]
call qword ptr [rax+0A0h]
loc_12C07:
lea r14, [rsp+0B8h+var_58]
mov [r14], r12
mov qword ptr [r14+8], 22h ; '"'
mov [rsp+0B8h+var_B8], 1
lea rsi, aRequire; "REQUIRE"
lea r8, aDiamondfromjso_1; "diamondFromJson->sizeB == diamond.sizeB"
lea r15, [rsp+0B8h+var_A0]
mov edx, 7
mov r9d, 27h ; '''
mov rdi, r15
mov rcx, r14
call _ZN5Catch16AssertionHandlerC2ENS_9StringRefERKNS_14SourceLineInfoES1_NS_17ResultDisposition5FlagsE; Catch::AssertionHandler::AssertionHandler(Catch::StringRef,Catch::SourceLineInfo const&,Catch::StringRef,Catch::ResultDisposition::Flags)
mov rax, [rsp+0B8h+var_A8]
mov eax, [rax+60h]
mov ecx, [rbx+60h]
cmp eax, ecx
mov byte ptr [r14+8], 1
setz byte ptr [r14+9]
mov [r14], r13
mov [r14+0Ch], eax
mov [r14+10h], rbp
mov qword ptr [r14+18h], 2
mov [r14+20h], ecx
lea rsi, [rsp+0B8h+var_58]
mov rdi, r15
call _ZN5Catch16AssertionHandler10handleExprERKNS_20ITransientExpressionE; Catch::AssertionHandler::handleExpr(Catch::ITransientExpression const&)
lea rdi, [rsp+0B8h+var_58]; this
call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression()
loc_12C8C:
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler8completeEv; Catch::AssertionHandler::complete(void)
cmp [rsp+0B8h+var_65], 0
jnz short loc_12CAF
lea rsi, [rsp+0B8h+var_A0]
mov rdi, [rsi+40h]
mov rax, [rdi]
call qword ptr [rax+0A0h]
loc_12CAF:
lea r14, [rsp+0B8h+var_58]
mov [r14], r12
mov qword ptr [r14+8], 23h ; '#'
mov [rsp+0B8h+var_B8], 1
lea rsi, aRequire; "REQUIRE"
lea r8, aDiamondfromjso_2; "diamondFromJson->angle == diamond.angle"
lea r15, [rsp+0B8h+var_A0]
mov edx, 7
mov r9d, 27h ; '''
mov rdi, r15
mov rcx, r14
call _ZN5Catch16AssertionHandlerC2ENS_9StringRefERKNS_14SourceLineInfoES1_NS_17ResultDisposition5FlagsE; Catch::AssertionHandler::AssertionHandler(Catch::StringRef,Catch::SourceLineInfo const&,Catch::StringRef,Catch::ResultDisposition::Flags)
mov rax, [rsp+0B8h+var_A8]
mov eax, [rax+64h]
mov ecx, [rbx+64h]
cmp eax, ecx
mov byte ptr [r14+8], 1
setz byte ptr [r14+9]
mov [r14], r13
mov [r14+0Ch], eax
mov [r14+10h], rbp
mov qword ptr [r14+18h], 2
mov [r14+20h], ecx
lea rsi, [rsp+0B8h+var_58]
mov rdi, r15
call _ZN5Catch16AssertionHandler10handleExprERKNS_20ITransientExpressionE; Catch::AssertionHandler::handleExpr(Catch::ITransientExpression const&)
lea rdi, [rsp+0B8h+var_58]; this
call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression()
loc_12D34:
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler8completeEv; Catch::AssertionHandler::complete(void)
cmp [rsp+0B8h+var_65], 0
jnz short loc_12D57
lea rsi, [rsp+0B8h+var_A0]
mov rdi, [rsi+40h]
mov rax, [rdi]
call qword ptr [rax+0A0h]
loc_12D57:
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_12D71
jmp short loc_12D71
jmp short loc_12D71
jmp short $+2
loc_12D71:
mov rdi, rax
call __clang_call_terminate
mov rbx, rax
lea rdi, [rsp+0B8h+var_58]; this
call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression()
mov rdi, rbx; void *
call ___cxa_begin_catch
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler33handleUnexpectedInflightExceptionEv; Catch::AssertionHandler::handleUnexpectedInflightException(void)
call ___cxa_end_catch
jmp short loc_12D34
mov rbx, rax
call ___cxa_end_catch
jmp loc_12E77
jmp loc_12E74
mov r14, rax
lea rdi, [rsp+0B8h+var_58]; this
call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression()
mov rdi, r14; void *
call ___cxa_begin_catch
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler33handleUnexpectedInflightExceptionEv; Catch::AssertionHandler::handleUnexpectedInflightException(void)
call ___cxa_end_catch
jmp loc_12C8C
mov rbx, rax
call ___cxa_end_catch
jmp loc_12E77
jmp loc_12E74
mov r14, rax
lea rdi, [rsp+0B8h+var_58]; this
call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression()
mov rdi, r14; void *
call ___cxa_begin_catch
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler33handleUnexpectedInflightExceptionEv; Catch::AssertionHandler::handleUnexpectedInflightException(void)
call ___cxa_end_catch
jmp loc_12BE4
mov rbx, rax
call ___cxa_end_catch
jmp short loc_12E77
jmp short loc_12E74
mov rdi, rax; void *
call ___cxa_begin_catch
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler33handleUnexpectedInflightExceptionEv; Catch::AssertionHandler::handleUnexpectedInflightException(void)
call ___cxa_end_catch
jmp loc_12B2E
mov rbx, rax
call ___cxa_end_catch
jmp short loc_12E77
jmp short loc_12E74
mov rdi, rax; void *
call ___cxa_begin_catch
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandler33handleUnexpectedInflightExceptionEv; Catch::AssertionHandler::handleUnexpectedInflightException(void)
call ___cxa_end_catch
jmp loc_12AAE
mov rbx, rax
call ___cxa_end_catch
jmp short loc_12E77
jmp loc_12D71
loc_12E74:
mov rbx, rax
loc_12E77:
lea rdi, [rsp+0B8h+var_A0]; this
call _ZN5Catch16AssertionHandlerD2Ev; Catch::AssertionHandler::~AssertionHandler()
mov rdi, rbx
call __Unwind_Resume
| long long checkDiamond(const void *a1, const Shape *a2)
{
const Shape *v2; // rax
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
int v7; // eax
int v8; // ecx
int v9; // eax
int v10; // ecx
int v11; // eax
int v12; // ecx
long long result; // rax
char v14; // [rsp+0h] [rbp-B8h]
const Shape *v15; // [rsp+10h] [rbp-A8h] BYREF
_BYTE v16[59]; // [rsp+18h] [rbp-A0h] BYREF
char v17; // [rsp+53h] [rbp-65h]
long long v18; // [rsp+58h] [rbp-60h]
const char *v19; // [rsp+60h] [rbp-58h] BYREF
long long v20; // [rsp+68h] [rbp-50h]
const char *v21; // [rsp+70h] [rbp-48h]
long long v22; // [rsp+78h] [rbp-40h]
int v23; // [rsp+80h] [rbp-38h]
if ( a1 )
v2 = (const Shape *)__dynamic_cast(
a1,
(const struct __class_type_info *)&`typeinfo for'Shape,
(const struct __class_type_info *)&`typeinfo for'Diamond,
0LL);
else
v2 = 0LL;
v15 = v2;
v19 = "/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp";
v20 = 31LL;
Catch::AssertionHandler::AssertionHandler(
(unsigned int)v16,
(unsigned int)"REQUIRE",
7,
(unsigned int)&v19,
(unsigned int)"diamondFromJson",
15,
1);
v19 = (const char *)&v15;
Catch::AssertionHandler::handleExpr<Diamond *&>((unsigned int)v16, (unsigned int)&v19, v3, v4, v5, v6, v14);
Catch::AssertionHandler::complete((Catch::AssertionHandler *)v16);
if ( !v17 )
(*(void ( **)(long long))(*(_QWORD *)v18 + 160LL))(v18);
v19 = "/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp";
v20 = 32LL;
Catch::AssertionHandler::AssertionHandler(
(unsigned int)v16,
(unsigned int)"REQUIRE",
7,
(unsigned int)&v19,
(unsigned int)"compareShape(*diamondFromJson, diamond)",
39,
1);
LOBYTE(v19) = compareShape(v15, a2);
Catch::AssertionHandler::handleExpr<bool>(v16, &v19);
Catch::AssertionHandler::complete((Catch::AssertionHandler *)v16);
if ( !v17 )
(*(void ( **)(long long))(*(_QWORD *)v18 + 160LL))(v18);
v19 = "/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp";
v20 = 33LL;
Catch::AssertionHandler::AssertionHandler(
(unsigned int)v16,
(unsigned int)"REQUIRE",
7,
(unsigned int)&v19,
(unsigned int)"diamondFromJson->sizeA == diamond.sizeA",
39,
1);
v7 = *((_DWORD *)v15 + 23);
v8 = *((_DWORD *)a2 + 23);
LOBYTE(v20) = 1;
BYTE1(v20) = v7 == v8;
v19 = (const char *)&off_8D280;
HIDWORD(v20) = v7;
v21 = "==";
v22 = 2LL;
v23 = v8;
Catch::AssertionHandler::handleExpr((Catch::AssertionHandler *)v16, (const Catch::ITransientExpression *)&v19);
Catch::ITransientExpression::~ITransientExpression((Catch::ITransientExpression *)&v19);
Catch::AssertionHandler::complete((Catch::AssertionHandler *)v16);
if ( !v17 )
(*(void ( **)(long long))(*(_QWORD *)v18 + 160LL))(v18);
v19 = "/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp";
v20 = 34LL;
Catch::AssertionHandler::AssertionHandler(
(unsigned int)v16,
(unsigned int)"REQUIRE",
7,
(unsigned int)&v19,
(unsigned int)"diamondFromJson->sizeB == diamond.sizeB",
39,
1);
v9 = *((_DWORD *)v15 + 24);
v10 = *((_DWORD *)a2 + 24);
LOBYTE(v20) = 1;
BYTE1(v20) = v9 == v10;
v19 = (const char *)&off_8D280;
HIDWORD(v20) = v9;
v21 = "==";
v22 = 2LL;
v23 = v10;
Catch::AssertionHandler::handleExpr((Catch::AssertionHandler *)v16, (const Catch::ITransientExpression *)&v19);
Catch::ITransientExpression::~ITransientExpression((Catch::ITransientExpression *)&v19);
Catch::AssertionHandler::complete((Catch::AssertionHandler *)v16);
if ( !v17 )
(*(void ( **)(long long))(*(_QWORD *)v18 + 160LL))(v18);
v19 = "/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp";
v20 = 35LL;
Catch::AssertionHandler::AssertionHandler(
(unsigned int)v16,
(unsigned int)"REQUIRE",
7,
(unsigned int)&v19,
(unsigned int)"diamondFromJson->angle == diamond.angle",
39,
1);
v11 = *((_DWORD *)v15 + 25);
v12 = *((_DWORD *)a2 + 25);
LOBYTE(v20) = 1;
BYTE1(v20) = v11 == v12;
v19 = (const char *)&off_8D280;
HIDWORD(v20) = v11;
v21 = "==";
v22 = 2LL;
v23 = v12;
Catch::AssertionHandler::handleExpr((Catch::AssertionHandler *)v16, (const Catch::ITransientExpression *)&v19);
Catch::ITransientExpression::~ITransientExpression((Catch::ITransientExpression *)&v19);
result = Catch::AssertionHandler::complete((Catch::AssertionHandler *)v16);
if ( !v17 )
return (*(long long ( **)(long long))(*(_QWORD *)v18 + 160LL))(v18);
return result;
}
| checkDiamond:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV RBX,RSI
TEST RDI,RDI
JZ 0x00112a4c
MOV RSI,qword ptr [0x00190ec0]
MOV RDX,qword ptr [0x00190f18]
XOR ECX,ECX
CALL 0x001115a0
JMP 0x00112a4e
LAB_00112a4c:
XOR EAX,EAX
LAB_00112a4e:
LEA R13,[RSP + 0x10]
MOV qword ptr [R13],RAX
LEA R12,[0x163028]
LEA R14,[RSP + 0x60]
MOV qword ptr [R14],R12
MOV qword ptr [R14 + 0x8],0x1f
MOV dword ptr [RSP],0x1
LEA RSI,[0x163020]
LEA R8,[0x1630e7]
LEA R15,[RSP + 0x18]
MOV EDX,0x7
MOV R9D,0xf
MOV RDI,R15
MOV RCX,R14
CALL 0x0011dde0
MOV qword ptr [R14],R13
LAB_00112aa1:
LEA RSI,[RSP + 0x60]
MOV RDI,R15
CALL 0x0011536e
LAB_00112aae:
LEA RDI,[RSP + 0x18]
CALL 0x0011de7e
CMP byte ptr [RSP + 0x53],0x0
JNZ 0x00112ad1
LEA RSI,[RSP + 0x18]
MOV RDI,qword ptr [RSI + 0x40]
MOV RAX,qword ptr [RDI]
LAB_00112acb:
CALL qword ptr [RAX + 0xa0]
LAB_00112ad1:
LEA R14,[RSP + 0x60]
MOV qword ptr [R14],R12
MOV qword ptr [R14 + 0x8],0x20
MOV dword ptr [RSP],0x1
LEA RSI,[0x163020]
LEA R8,[0x1630f7]
LEA R15,[RSP + 0x18]
MOV EDX,0x7
MOV R9D,0x27
MOV RDI,R15
MOV RCX,R14
CALL 0x0011dde0
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,RBX
CALL 0x00112735
MOV byte ptr [R14],AL
LAB_00112b21:
LEA RSI,[RSP + 0x60]
MOV RDI,R15
CALL 0x0011532a
LAB_00112b2e:
LEA RDI,[RSP + 0x18]
CALL 0x0011de7e
CMP byte ptr [RSP + 0x53],0x0
JNZ 0x00112b51
LEA RSI,[RSP + 0x18]
MOV RDI,qword ptr [RSI + 0x40]
MOV RAX,qword ptr [RDI]
LAB_00112b4b:
CALL qword ptr [RAX + 0xa0]
LAB_00112b51:
LEA R14,[RSP + 0x60]
MOV qword ptr [R14],R12
MOV qword ptr [R14 + 0x8],0x21
MOV dword ptr [RSP],0x1
LEA RSI,[0x163020]
LEA R8,[0x16311f]
LEA R15,[RSP + 0x18]
MOV EDX,0x7
MOV R9D,0x27
MOV RDI,R15
MOV RCX,R14
CALL 0x0011dde0
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0x5c]
MOV ECX,dword ptr [RBX + 0x5c]
CMP EAX,ECX
MOV byte ptr [R14 + 0x8],0x1
SETZ byte ptr [R14 + 0x9]
LEA R13,[0x18d280]
MOV qword ptr [R14],R13
MOV dword ptr [R14 + 0xc],EAX
LEA RBP,[0x16341c]
MOV qword ptr [R14 + 0x10],RBP
MOV qword ptr [R14 + 0x18],0x2
MOV dword ptr [R14 + 0x20],ECX
LAB_00112bcd:
LEA RSI,[RSP + 0x60]
MOV RDI,R15
CALL 0x0011de22
LEA RDI,[RSP + 0x60]
CALL 0x0012a4d4
LAB_00112be4:
LEA RDI,[RSP + 0x18]
CALL 0x0011de7e
CMP byte ptr [RSP + 0x53],0x0
JNZ 0x00112c07
LEA RSI,[RSP + 0x18]
MOV RDI,qword ptr [RSI + 0x40]
MOV RAX,qword ptr [RDI]
LAB_00112c01:
CALL qword ptr [RAX + 0xa0]
LAB_00112c07:
LEA R14,[RSP + 0x60]
MOV qword ptr [R14],R12
MOV qword ptr [R14 + 0x8],0x22
MOV dword ptr [RSP],0x1
LEA RSI,[0x163020]
LEA R8,[0x163147]
LEA R15,[RSP + 0x18]
MOV EDX,0x7
MOV R9D,0x27
MOV RDI,R15
MOV RCX,R14
CALL 0x0011dde0
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0x60]
MOV ECX,dword ptr [RBX + 0x60]
CMP EAX,ECX
MOV byte ptr [R14 + 0x8],0x1
SETZ byte ptr [R14 + 0x9]
MOV qword ptr [R14],R13
MOV dword ptr [R14 + 0xc],EAX
MOV qword ptr [R14 + 0x10],RBP
MOV qword ptr [R14 + 0x18],0x2
MOV dword ptr [R14 + 0x20],ECX
LAB_00112c75:
LEA RSI,[RSP + 0x60]
MOV RDI,R15
CALL 0x0011de22
LEA RDI,[RSP + 0x60]
CALL 0x0012a4d4
LAB_00112c8c:
LEA RDI,[RSP + 0x18]
CALL 0x0011de7e
CMP byte ptr [RSP + 0x53],0x0
JNZ 0x00112caf
LEA RSI,[RSP + 0x18]
MOV RDI,qword ptr [RSI + 0x40]
MOV RAX,qword ptr [RDI]
LAB_00112ca9:
CALL qword ptr [RAX + 0xa0]
LAB_00112caf:
LEA R14,[RSP + 0x60]
MOV qword ptr [R14],R12
MOV qword ptr [R14 + 0x8],0x23
MOV dword ptr [RSP],0x1
LEA RSI,[0x163020]
LEA R8,[0x16316f]
LEA R15,[RSP + 0x18]
MOV EDX,0x7
MOV R9D,0x27
MOV RDI,R15
MOV RCX,R14
CALL 0x0011dde0
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0x64]
MOV ECX,dword ptr [RBX + 0x64]
CMP EAX,ECX
MOV byte ptr [R14 + 0x8],0x1
SETZ byte ptr [R14 + 0x9]
MOV qword ptr [R14],R13
MOV dword ptr [R14 + 0xc],EAX
MOV qword ptr [R14 + 0x10],RBP
MOV qword ptr [R14 + 0x18],0x2
MOV dword ptr [R14 + 0x20],ECX
LAB_00112d1d:
LEA RSI,[RSP + 0x60]
MOV RDI,R15
CALL 0x0011de22
LEA RDI,[RSP + 0x60]
CALL 0x0012a4d4
LAB_00112d34:
LEA RDI,[RSP + 0x18]
CALL 0x0011de7e
CMP byte ptr [RSP + 0x53],0x0
JNZ 0x00112d57
LEA RSI,[RSP + 0x18]
MOV RDI,qword ptr [RSI + 0x40]
MOV RAX,qword ptr [RDI]
LAB_00112d51:
CALL qword ptr [RAX + 0xa0]
LAB_00112d57:
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* checkDiamond(Shape*, Diamond&) */
void checkDiamond(Shape *param_1,Diamond *param_2)
{
int1 uVar1;
Shape *local_a8;
AssertionHandler local_a0 [59];
char local_65;
long *local_60;
Shape **local_58;
int8 local_50;
int *local_48;
int8 local_40;
int local_38;
if (param_1 == (Shape *)0x0) {
local_a8 = (Shape *)0x0;
}
else {
local_a8 = (Shape *)__dynamic_cast(param_1,PTR_typeinfo_00190ec0,PTR_typeinfo_00190f18,0);
}
local_58 = (Shape **)0x163028;
local_50 = 0x1f;
Catch::AssertionHandler::AssertionHandler(local_a0,"REQUIRE",7,&local_58,"diamondFromJson",0xf,1);
/* try { // try from 00112aa1 to 00112aad has its CatchHandler @ 00112e49 */
local_58 = &local_a8;
Catch::AssertionHandler::handleExpr<Diamond*&>(local_a0,(ExprLhs *)&local_58);
/* try { // try from 00112aae to 00112ab7 has its CatchHandler @ 00112e74 */
Catch::AssertionHandler::complete(local_a0);
if (local_65 == '\0') {
/* try { // try from 00112acb to 00112ad0 has its CatchHandler @ 00112d71 */
(**(code **)(*local_60 + 0xa0))();
}
local_58 = (Shape **)0x163028;
local_50 = 0x20;
Catch::AssertionHandler::AssertionHandler
(local_a0,"REQUIRE",7,&local_58,"compareShape(*diamondFromJson, diamond)",0x27,1);
uVar1 = compareShape(local_a8,(Shape *)param_2);
local_58 = (Shape **)CONCAT71(local_58._1_7_,uVar1);
/* try { // try from 00112b21 to 00112b2d has its CatchHandler @ 00112e21 */
Catch::AssertionHandler::handleExpr<bool>(local_a0,(ExprLhs *)&local_58);
/* try { // try from 00112b2e to 00112b37 has its CatchHandler @ 00112e47 */
Catch::AssertionHandler::complete(local_a0);
if (local_65 == '\0') {
/* try { // try from 00112b4b to 00112b50 has its CatchHandler @ 00112d6f */
(**(code **)(*local_60 + 0xa0))();
}
local_58 = (Shape **)0x163028;
local_50 = 0x21;
Catch::AssertionHandler::AssertionHandler
(local_a0,"REQUIRE",7,&local_58,"diamondFromJson->sizeA == diamond.sizeA",0x27,1);
local_38 = *(int *)(param_2 + 0x5c);
local_50._0_2_ = CONCAT11(*(int *)(local_a8 + 0x5c) == local_38,1);
local_58 = (Shape **)&PTR_streamReconstructedExpression_0018d280;
local_50 = CONCAT44(*(int *)(local_a8 + 0x5c),(int4)local_50);
local_48 = &DAT_0016341c;
local_40 = 2;
/* try { // try from 00112bcd to 00112bd9 has its CatchHandler @ 00112dec */
Catch::AssertionHandler::handleExpr(local_a0,(ITransientExpression *)&local_58);
Catch::ITransientExpression::~ITransientExpression((ITransientExpression *)&local_58);
/* try { // try from 00112be4 to 00112bed has its CatchHandler @ 00112e1f */
Catch::AssertionHandler::complete(local_a0);
if (local_65 == '\0') {
/* try { // try from 00112c01 to 00112c06 has its CatchHandler @ 00112d6d */
(**(code **)(*local_60 + 0xa0))();
}
local_58 = (Shape **)0x163028;
local_50 = 0x22;
Catch::AssertionHandler::AssertionHandler
(local_a0,"REQUIRE",7,&local_58,"diamondFromJson->sizeB == diamond.sizeB",0x27,1);
local_38 = *(int *)(param_2 + 0x60);
local_50._0_2_ = CONCAT11(*(int *)(local_a8 + 0x60) == local_38,1);
local_58 = (Shape **)&PTR_streamReconstructedExpression_0018d280;
local_50 = CONCAT44(*(int *)(local_a8 + 0x60),(int4)local_50);
local_48 = &DAT_0016341c;
local_40 = 2;
/* try { // try from 00112c75 to 00112c81 has its CatchHandler @ 00112db1 */
Catch::AssertionHandler::handleExpr(local_a0,(ITransientExpression *)&local_58);
Catch::ITransientExpression::~ITransientExpression((ITransientExpression *)&local_58);
/* try { // try from 00112c8c to 00112c95 has its CatchHandler @ 00112de7 */
Catch::AssertionHandler::complete(local_a0);
if (local_65 == '\0') {
/* try { // try from 00112ca9 to 00112cae has its CatchHandler @ 00112d6b */
(**(code **)(*local_60 + 0xa0))();
}
local_58 = (Shape **)0x163028;
local_50 = 0x23;
Catch::AssertionHandler::AssertionHandler
(local_a0,"REQUIRE",7,&local_58,"diamondFromJson->angle == diamond.angle",0x27,1);
local_38 = *(int *)(param_2 + 100);
local_50._0_2_ = CONCAT11(*(int *)(local_a8 + 100) == local_38,1);
local_58 = (Shape **)&PTR_streamReconstructedExpression_0018d280;
local_50 = CONCAT44(*(int *)(local_a8 + 100),(int4)local_50);
local_48 = &DAT_0016341c;
local_40 = 2;
/* try { // try from 00112d1d to 00112d29 has its CatchHandler @ 00112d79 */
Catch::AssertionHandler::handleExpr(local_a0,(ITransientExpression *)&local_58);
Catch::ITransientExpression::~ITransientExpression((ITransientExpression *)&local_58);
/* try { // try from 00112d34 to 00112d3d has its CatchHandler @ 00112dac */
Catch::AssertionHandler::complete(local_a0);
if (local_65 == '\0') {
/* try { // try from 00112d51 to 00112d56 has its CatchHandler @ 00112d69 */
(**(code **)(*local_60 + 0xa0))();
}
return;
}
| |
22,346 | get_bool_argument | eloqsql/mysys/my_getopt.c | static my_bool get_bool_argument(const struct my_option *opts,
const char *argument)
{
DBUG_ENTER("get_bool_argument");
if (!my_strcasecmp(&my_charset_latin1, argument, "true") ||
!my_strcasecmp(&my_charset_latin1, argument, "on") ||
!my_strcasecmp(&my_charset_latin1, argument, "1"))
DBUG_RETURN(1);
else if (!my_strcasecmp(&my_charset_latin1, argument, "false") ||
!my_strcasecmp(&my_charset_latin1, argument, "off") ||
!my_strcasecmp(&my_charset_latin1, argument, "0"))
DBUG_RETURN(0);
my_getopt_error_reporter(WARNING_LEVEL,
"option '%s': boolean value '%s' wasn't recognized. Set to OFF.",
opts->name, argument);
DBUG_RETURN(0);
} | O3 | c | get_bool_argument:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x370163(%rip), %r15 # 0x40b9d0
movq 0xc0(%r15), %rax
leaq 0x7737c(%rip), %rdx # 0x112bf7
movq %r15, %rdi
callq *0x40(%rax)
movb $0x1, %r12b
testl %eax, %eax
je 0x9b93d
movq 0xc0(%r15), %rax
leaq 0x61b2e(%rip), %rdx # 0xfd3c8
movq %r15, %rdi
movq %rbx, %rsi
callq *0x40(%rax)
testl %eax, %eax
je 0x9b93d
movq 0xc0(%r15), %rax
leaq 0x67e19(%rip), %rdx # 0x1036d2
movq %r15, %rdi
movq %rbx, %rsi
callq *0x40(%rax)
testl %eax, %eax
je 0x9b93d
movq 0xc0(%r15), %rax
leaq 0x77328(%rip), %rdx # 0x112bfc
movq %r15, %rdi
movq %rbx, %rsi
callq *0x40(%rax)
testl %eax, %eax
je 0x9b93a
movq 0xc0(%r15), %rax
leaq 0x77313(%rip), %rdx # 0x112c02
movq %r15, %rdi
movq %rbx, %rsi
callq *0x40(%rax)
testl %eax, %eax
je 0x9b93a
movq 0xc0(%r15), %rax
leaq 0x5e893(%rip), %rdx # 0xfa19d
movq %r15, %rdi
movq %rbx, %rsi
callq *0x40(%rax)
testl %eax, %eax
je 0x9b93a
leaq 0x349922(%rip), %r8 # 0x3e5240
movq (%r14), %rdx
leaq 0x776f5(%rip), %rsi # 0x11301d
xorl %r12d, %r12d
movl $0x1, %edi
movq %rbx, %rcx
xorl %eax, %eax
callq *(%r8)
jmp 0x9b93d
xorl %r12d, %r12d
movl %r12d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| get_bool_argument:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov rbx, rsi
mov r14, rdi
lea r15, my_charset_latin1
mov rax, [r15+0C0h]
lea rdx, aTrue; "true"
mov rdi, r15
call qword ptr [rax+40h]
mov r12b, 1
test eax, eax
jz loc_9B93D
mov rax, [r15+0C0h]
lea rdx, aTheSizeNumberW+55h; "on"
mov rdi, r15
mov rsi, rbx
call qword ptr [rax+40h]
test eax, eax
jz loc_9B93D
mov rax, [r15+0C0h]
lea rdx, aWhenEnforceGti_0+0B5h; "1"
mov rdi, r15
mov rsi, rbx
call qword ptr [rax+40h]
test eax, eax
jz short loc_9B93D
mov rax, [r15+0C0h]
lea rdx, aFalse; "false"
mov rdi, r15
mov rsi, rbx
call qword ptr [rax+40h]
test eax, eax
jz short loc_9B93A
mov rax, [r15+0C0h]
lea rdx, aOff; "off"
mov rdi, r15
mov rsi, rbx
call qword ptr [rax+40h]
test eax, eax
jz short loc_9B93A
mov rax, [r15+0C0h]
lea rdx, aKeyPart192sLen+24h; "0"
mov rdi, r15
mov rsi, rbx
call qword ptr [rax+40h]
test eax, eax
jz short loc_9B93A
lea r8, my_getopt_error_reporter
mov rdx, [r14]
lea rsi, aOptionSBoolean; "option '%s': boolean value '%s' wasn't "...
xor r12d, r12d
mov edi, 1
mov rcx, rbx
xor eax, eax
call qword ptr [r8]
jmp short loc_9B93D
loc_9B93A:
xor r12d, r12d
loc_9B93D:
mov eax, r12d
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long get_bool_argument(const char **a1, const char *a2)
{
unsigned int v2; // r12d
LOBYTE(v2) = 1;
if ( (*(unsigned int ( **)(void *, const char *, const char *))(*((_QWORD *)&my_charset_latin1 + 24) + 64LL))(
&my_charset_latin1,
a2,
"true")
&& (*(unsigned int ( **)(void *, const char *, char *))(*((_QWORD *)&my_charset_latin1 + 24) + 64LL))(
&my_charset_latin1,
a2,
"on")
&& (*(unsigned int ( **)(void *, const char *, char *))(*((_QWORD *)&my_charset_latin1 + 24) + 64LL))(
&my_charset_latin1,
a2,
"1") )
{
if ( (*(unsigned int ( **)(void *, const char *, const char *))(*((_QWORD *)&my_charset_latin1 + 24) + 64LL))(
&my_charset_latin1,
a2,
"false")
&& (*(unsigned int ( **)(void *, const char *, const char *))(*((_QWORD *)&my_charset_latin1 + 24) + 64LL))(
&my_charset_latin1,
a2,
"off")
&& (*(unsigned int ( **)(void *, const char *, char *))(*((_QWORD *)&my_charset_latin1 + 24) + 64LL))(
&my_charset_latin1,
a2,
"0") )
{
v2 = 0;
my_getopt_error_reporter(1, "option '%s': boolean value '%s' wasn't recognized. Set to OFF.", *a1, a2);
}
else
{
return 0;
}
}
return v2;
}
| get_bool_argument:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
LEA R15,[0x50b9d0]
MOV RAX,qword ptr [R15 + 0xc0]
LEA RDX,[0x212bf7]
MOV RDI,R15
CALL qword ptr [RAX + 0x40]
MOV R12B,0x1
TEST EAX,EAX
JZ 0x0019b93d
MOV RAX,qword ptr [R15 + 0xc0]
LEA RDX,[0x1fd3c8]
MOV RDI,R15
MOV RSI,RBX
CALL qword ptr [RAX + 0x40]
TEST EAX,EAX
JZ 0x0019b93d
MOV RAX,qword ptr [R15 + 0xc0]
LEA RDX,[0x2036d2]
MOV RDI,R15
MOV RSI,RBX
CALL qword ptr [RAX + 0x40]
TEST EAX,EAX
JZ 0x0019b93d
MOV RAX,qword ptr [R15 + 0xc0]
LEA RDX,[0x212bfc]
MOV RDI,R15
MOV RSI,RBX
CALL qword ptr [RAX + 0x40]
TEST EAX,EAX
JZ 0x0019b93a
MOV RAX,qword ptr [R15 + 0xc0]
LEA RDX,[0x212c02]
MOV RDI,R15
MOV RSI,RBX
CALL qword ptr [RAX + 0x40]
TEST EAX,EAX
JZ 0x0019b93a
MOV RAX,qword ptr [R15 + 0xc0]
LEA RDX,[0x1fa19d]
MOV RDI,R15
MOV RSI,RBX
CALL qword ptr [RAX + 0x40]
TEST EAX,EAX
JZ 0x0019b93a
LEA R8,[0x4e5240]
MOV RDX,qword ptr [R14]
LEA RSI,[0x21301d]
XOR R12D,R12D
MOV EDI,0x1
MOV RCX,RBX
XOR EAX,EAX
CALL qword ptr [R8]
JMP 0x0019b93d
LAB_0019b93a:
XOR R12D,R12D
LAB_0019b93d:
MOV EAX,R12D
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
ulong get_bool_argument(int8 *param_1,int8 param_2)
{
int iVar1;
int8 unaff_R12;
ulong uVar2;
iVar1 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_0050ba90 + 0x40))
(&my_charset_latin1,param_2,&DAT_00212bf7);
uVar2 = CONCAT71((int7)((ulong)unaff_R12 >> 8),1);
if (iVar1 != 0) {
iVar1 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_0050ba90 + 0x40))
(&my_charset_latin1,param_2,"on");
if (iVar1 != 0) {
iVar1 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_0050ba90 + 0x40))
(&my_charset_latin1,param_2,"1");
if (iVar1 != 0) {
iVar1 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_0050ba90 + 0x40))
(&my_charset_latin1,param_2,"false");
if (iVar1 != 0) {
iVar1 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_0050ba90 + 0x40))
(&my_charset_latin1,param_2,&DAT_00212c02);
if (iVar1 != 0) {
iVar1 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_0050ba90 + 0x40))
(&my_charset_latin1,param_2,"0");
if (iVar1 != 0) {
uVar2 = 0;
(*(code *)my_getopt_error_reporter)
(1,"option \'%s\': boolean value \'%s\' wasn\'t recognized. Set to OFF.",
*param_1,param_2);
goto LAB_0019b93d;
}
}
}
uVar2 = 0;
}
}
}
LAB_0019b93d:
return uVar2 & 0xffffffff;
}
| |
22,347 | ma_zlib_ctx_init | eloqsql/libmariadb/plugins/compress/c_zlib.c | static ma_compress_ctx *ma_zlib_ctx_init(int compression_level)
{
ma_compress_ctx *ctx;
if (!(ctx = (ma_compress_ctx *)calloc(1, sizeof(ma_compress_ctx))))
return NULL;
ctx->compression_level= (compression_level == COMPRESSION_LEVEL_DEFAULT) ?
Z_DEFAULT_COMPRESSION : compression_level;
return ctx;
} | O3 | c | ma_zlib_ctx_init:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
movl $0x1, %edi
movl $0x20, %esi
callq 0x132e0
testq %rax, %rax
je 0x2e6ce
cmpl $0x7fffffff, %ebx # imm = 0x7FFFFFFF
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
cmovnel %ebx, %ecx
movl %ecx, 0x10(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| ma_zlib_ctx_init:
push rbp
mov rbp, rsp
push rbx
push rax
mov ebx, edi
mov edi, 1
mov esi, 20h ; ' '
call _calloc
test rax, rax
jz short loc_2E6CE
cmp ebx, 7FFFFFFFh
mov ecx, 0FFFFFFFFh
cmovnz ecx, ebx
mov [rax+10h], ecx
loc_2E6CE:
add rsp, 8
pop rbx
pop rbp
retn
| long long ma_zlib_ctx_init(int a1)
{
long long result; // rax
int v2; // ecx
result = calloc(1LL, 32LL);
if ( result )
{
v2 = -1;
if ( a1 != 0x7FFFFFFF )
v2 = a1;
*(_DWORD *)(result + 16) = v2;
}
return result;
}
| ma_zlib_ctx_init:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV EBX,EDI
MOV EDI,0x1
MOV ESI,0x20
CALL 0x001132e0
TEST RAX,RAX
JZ 0x0012e6ce
CMP EBX,0x7fffffff
MOV ECX,0xffffffff
CMOVNZ ECX,EBX
MOV dword ptr [RAX + 0x10],ECX
LAB_0012e6ce:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void ma_zlib_ctx_init(int param_1)
{
void *pvVar1;
int iVar2;
pvVar1 = calloc(1,0x20);
if (pvVar1 != (void *)0x0) {
iVar2 = -1;
if (param_1 != 0x7fffffff) {
iVar2 = param_1;
}
*(int *)((long)pvVar1 + 0x10) = iVar2;
}
return;
}
| |
22,348 | mean::run(std::vector<ggml_tensor*, std::allocator<ggml_tensor*>> const&, std::vector<ggml_tensor*, std::allocator<ggml_tensor*>> const&) | monkey531[P]llama/examples/cvector-generator/mean.hpp | static void run(
const std::vector<struct ggml_tensor *> & v_input, // shape of v_input[0]: [n_embd, n_samples]
const std::vector<struct ggml_tensor *> & v_output) {
printf("%s: Running mean...\n", __func__);
for (size_t il = 0; il < v_input.size(); ++il) {
// prepare output vector
struct ggml_tensor * ctrl_out = v_output[il];
ggml_format_name(ctrl_out, "direction.%zu", il+1);
// calculate mean vector
struct ggml_tensor * t_layer = v_input[il];
GGML_ASSERT(t_layer->ne[0] == ctrl_out->ne[0]); // == n_embd
for (int ic = 0; ic < t_layer->ne[0]; ic++) {
float f = 0.0;
for (int ir = 0; ir < t_layer->ne[1]; ir++) {
f += ggml_get_f32_nd(t_layer, ic, ir, 0, 0);
}
f /= t_layer->ne[1];
ggml_set_f32_1d(ctrl_out, ic, f);
}
// normalize output vector
float norm = 0.0;
for (int i = 0; i < ggml_nelements(ctrl_out); i++) {
float f = ggml_get_f32_1d(ctrl_out, i);
norm += f*f;
}
norm = sqrt(norm);
for (int i = 0; i < ggml_nelements(ctrl_out); i++) {
float f = ggml_get_f32_1d(ctrl_out, i);
ggml_set_f32_1d(ctrl_out, i, f / norm);
}
printf("%s: Done layer %d / %d\n", __func__, (int) il+1, (int) v_input.size());
}
} | O3 | cpp | mean::run(std::vector<ggml_tensor*, std::allocator<ggml_tensor*>> const&, std::vector<ggml_tensor*, std::allocator<ggml_tensor*>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, 0x10(%rsp)
movq %rdi, %rbx
leaq 0xc7faf(%rip), %rdi # 0xe9785
leaq 0xc97d2(%rip), %rsi # 0xeafaf
xorl %eax, %eax
callq 0x1b070
movq 0x8(%rbx), %rax
cmpq (%rbx), %rax
je 0x2197f
xorl %ebp, %ebp
movq %rbx, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbp,8), %r12
leaq 0x1(%rbp), %r15
movq %r12, %rdi
leaq 0xc7dd6(%rip), %rsi # 0xe95e8
movq %r15, %rdx
xorl %eax, %eax
callq 0x1bfe0
movq (%rbx), %rax
movq (%rax,%rbp,8), %r13
movq 0x10(%r13), %rax
cmpq 0x10(%r12), %rax
jne 0x2198e
testq %rax, %rax
jle 0x21898
xorl %ebx, %ebx
movq 0x18(%r13), %rax
xorps %xmm1, %xmm1
testq %rax, %rax
jle 0x21876
xorl %r14d, %r14d
movss %xmm1, 0x4(%rsp)
movq %r13, %rdi
movl %ebx, %esi
movl %r14d, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x1b170
movss 0x4(%rsp), %xmm1
addss %xmm0, %xmm1
incq %r14
movq 0x18(%r13), %rax
cmpq %r14, %rax
jg 0x21848
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
divss %xmm0, %xmm1
movq %r12, %rdi
movl %ebx, %esi
movaps %xmm1, %xmm0
callq 0x1bca0
incq %rbx
cmpq %rbx, 0x10(%r13)
jg 0x21839
movq %r12, %rdi
callq 0x1ba90
xorps %xmm0, %xmm0
testq %rax, %rax
jle 0x218e0
movss %xmm0, 0x4(%rsp)
xorl %ebx, %ebx
movq %r12, %rdi
movl %ebx, %esi
callq 0x1b910
mulss %xmm0, %xmm0
movss 0x4(%rsp), %xmm1
addss %xmm0, %xmm1
movss %xmm1, 0x4(%rsp)
incq %rbx
movq %r12, %rdi
callq 0x1ba90
cmpq %rbx, %rax
jg 0x218b0
jmp 0x218e6
movss %xmm0, 0x4(%rsp)
movss 0x4(%rsp), %xmm0
ucomiss 0xc7829(%rip), %xmm0 # 0xe911c
jb 0x218fb
sqrtss %xmm0, %xmm0
jmp 0x21900
callq 0x1c2f0
movss %xmm0, 0x4(%rsp)
movq %r12, %rdi
callq 0x1ba90
testq %rax, %rax
jle 0x2193f
xorl %ebx, %ebx
movq %r12, %rdi
movl %ebx, %esi
callq 0x1b910
divss 0x4(%rsp), %xmm0
movq %r12, %rdi
movl %ebx, %esi
callq 0x1bca0
incq %rbx
movq %r12, %rdi
callq 0x1ba90
cmpq %rbx, %rax
jg 0x21915
incl %ebp
movq 0x8(%rsp), %rbx
movq 0x8(%rbx), %rcx
subq (%rbx), %rcx
shrq $0x3, %rcx
leaq 0xc7c9e(%rip), %rdi # 0xe95f6
leaq 0xc9650(%rip), %rsi # 0xeafaf
movl %ebp, %edx
xorl %eax, %eax
callq 0x1b070
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x3, %rax
movq %r15, %rbp
cmpq %rax, %r15
jb 0x217f8
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc7e05(%rip), %rdi # 0xe979a
leaq 0xc7a80(%rip), %rdx # 0xe941c
leaq 0xc7e55(%rip), %rcx # 0xe97f8
movl $0x16, %esi
xorl %eax, %eax
callq 0x1c130
| _ZN4meanL3runERKSt6vectorIP11ggml_tensorSaIS2_EES6_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rsp+48h+var_38], rsi
mov rbx, rdi
lea rdi, aSRunningMean; "%s: Running mean...\n"
lea rsi, aSkipWarmingUpT+28h; "run"
xor eax, eax
call _printf
mov rax, [rbx+8]
cmp rax, [rbx]
jz loc_2197F
xor ebp, ebp
mov [rsp+48h+var_40], rbx
loc_217F8:
mov rax, [rsp+48h+var_38]
mov rax, [rax]
mov r12, [rax+rbp*8]
lea r15, [rbp+1]
mov rdi, r12
lea rsi, aDirectionZu; "direction.%zu"
mov rdx, r15
xor eax, eax
call _ggml_format_name
mov rax, [rbx]
mov r13, [rax+rbp*8]
mov rax, [r13+10h]
cmp rax, [r12+10h]
jnz loc_2198E
test rax, rax
jle short loc_21898
xor ebx, ebx
loc_21839:
mov rax, [r13+18h]
xorps xmm1, xmm1
test rax, rax
jle short loc_21876
xor r14d, r14d
loc_21848:
movss [rsp+48h+var_44], xmm1
mov rdi, r13
mov esi, ebx
mov edx, r14d
xor ecx, ecx
xor r8d, r8d
call _ggml_get_f32_nd
movss xmm1, [rsp+48h+var_44]
addss xmm1, xmm0
inc r14
mov rax, [r13+18h]
cmp rax, r14
jg short loc_21848
loc_21876:
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm1, xmm0
mov rdi, r12
mov esi, ebx
movaps xmm0, xmm1
call _ggml_set_f32_1d
inc rbx
cmp [r13+10h], rbx
jg short loc_21839
loc_21898:
mov rdi, r12
call _ggml_nelements
xorps xmm0, xmm0
test rax, rax
jle short loc_218E0
movss [rsp+48h+var_44], xmm0
xor ebx, ebx
loc_218B0:
mov rdi, r12
mov esi, ebx
call _ggml_get_f32_1d
mulss xmm0, xmm0
movss xmm1, [rsp+48h+var_44]
addss xmm1, xmm0
movss [rsp+48h+var_44], xmm1
inc rbx
mov rdi, r12
call _ggml_nelements
cmp rax, rbx
jg short loc_218B0
jmp short loc_218E6
loc_218E0:
movss [rsp+48h+var_44], xmm0
loc_218E6:
movss xmm0, [rsp+48h+var_44]
ucomiss xmm0, cs:dword_E911C
jb short loc_218FB
sqrtss xmm0, xmm0
jmp short loc_21900
loc_218FB:
call _sqrtf
loc_21900:
movss [rsp+48h+var_44], xmm0
mov rdi, r12
call _ggml_nelements
test rax, rax
jle short loc_2193F
xor ebx, ebx
loc_21915:
mov rdi, r12
mov esi, ebx
call _ggml_get_f32_1d
divss xmm0, [rsp+48h+var_44]
mov rdi, r12
mov esi, ebx
call _ggml_set_f32_1d
inc rbx
mov rdi, r12
call _ggml_nelements
cmp rax, rbx
jg short loc_21915
loc_2193F:
inc ebp
mov rbx, [rsp+48h+var_40]
mov rcx, [rbx+8]
sub rcx, [rbx]
shr rcx, 3
lea rdi, aSDoneLayerDD; "%s: Done layer %d / %d\n"
lea rsi, aSkipWarmingUpT+28h; "run"
mov edx, ebp
xor eax, eax
call _printf
mov rax, [rbx+8]
sub rax, [rbx]
sar rax, 3
mov rbp, r15
cmp r15, rax
jb loc_217F8
loc_2197F:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_2198E:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTLayerNe0CtrlO; "t_layer->ne[0] == ctrl_out->ne[0]"
mov esi, 16h
xor eax, eax
call _ggml_abort
| unsigned long long mean::run(_QWORD *a1, _QWORD *a2)
{
_QWORD *v2; // rbx
unsigned long long result; // rax
long long i; // rbp
long long v5; // r12
unsigned long long v6; // r15
long long v7; // r13
long long v8; // rax
long long v9; // rbx
long long v10; // rax
double v11; // xmm1_8
long long j; // r14
long long v13; // rbx
float f32_1d; // xmm0_4
double v15; // xmm0_8
float v16; // xmm0_4
long long v17; // rbx
float v18; // [rsp+4h] [rbp-44h]
float v19; // [rsp+4h] [rbp-44h]
v2 = a1;
printf("%s: Running mean...\n", "run");
result = a1[1];
if ( result != *a1 )
{
for ( i = 0LL; ; ++i )
{
v5 = *(_QWORD *)(*a2 + 8 * i);
v6 = i + 1;
ggml_format_name(v5, "direction.%zu", i + 1);
v7 = *(_QWORD *)(*v2 + 8 * i);
v8 = *(_QWORD *)(v7 + 16);
if ( v8 != *(_QWORD *)(v5 + 16) )
break;
if ( v8 > 0 )
{
v9 = 0LL;
do
{
v10 = *(_QWORD *)(v7 + 24);
v11 = 0.0;
if ( v10 > 0 )
{
for ( j = 0LL; j < v10; ++j )
{
*(_QWORD *)&v11 = LODWORD(v11);
*(float *)&v11 = *(float *)&v11 + ggml_get_f32_nd(v7, (unsigned int)v9, (unsigned int)j, 0LL, 0LL);
v10 = *(_QWORD *)(v7 + 24);
}
}
*(float *)&v11 = *(float *)&v11 / (float)(int)v10;
ggml_set_f32_1d(v5, (unsigned int)v9++, v11);
}
while ( *(_QWORD *)(v7 + 16) > v9 );
}
if ( ggml_nelements(v5) <= 0 )
{
v18 = 0.0;
}
else
{
v18 = 0.0;
v13 = 0LL;
do
{
f32_1d = ggml_get_f32_1d(v5, (unsigned int)v13);
v18 = v18 + (float)(f32_1d * f32_1d);
++v13;
}
while ( ggml_nelements(v5) > v13 );
}
*(_QWORD *)&v15 = LODWORD(v18);
if ( v18 < 0.0 )
v16 = sqrtf();
else
v16 = fsqrt(v18);
v19 = v16;
if ( ggml_nelements(v5) > 0 )
{
v17 = 0LL;
do
{
*(float *)&v15 = ggml_get_f32_1d(v5, (unsigned int)v17) / v19;
ggml_set_f32_1d(v5, (unsigned int)v17++, v15);
}
while ( ggml_nelements(v5) > v17 );
}
v2 = a1;
printf("%s: Done layer %d / %d\n", "run", i + 1, (a1[1] - *a1) >> 3);
result = (long long)(v2[1] - *v2) >> 3;
if ( v6 >= result )
return result;
}
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/examples/cvector-generator/mean.hpp",
22LL,
"GGML_ASSERT(%s) failed",
"t_layer->ne[0] == ctrl_out->ne[0]");
return ctrlvec_load_prompt_file(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/examples/cvector-generator/mean.hpp",
22LL);
}
return result;
}
| run:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RSI
MOV RBX,RDI
LEA RDI,[0x1e9785]
LEA RSI,[0x1eafaf]
XOR EAX,EAX
CALL 0x0011b070
MOV RAX,qword ptr [RBX + 0x8]
CMP RAX,qword ptr [RBX]
JZ 0x0012197f
XOR EBP,EBP
MOV qword ptr [RSP + 0x8],RBX
LAB_001217f8:
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX]
MOV R12,qword ptr [RAX + RBP*0x8]
LEA R15,[RBP + 0x1]
MOV RDI,R12
LEA RSI,[0x1e95e8]
MOV RDX,R15
XOR EAX,EAX
CALL 0x0011bfe0
MOV RAX,qword ptr [RBX]
MOV R13,qword ptr [RAX + RBP*0x8]
MOV RAX,qword ptr [R13 + 0x10]
CMP RAX,qword ptr [R12 + 0x10]
JNZ 0x0012198e
TEST RAX,RAX
JLE 0x00121898
XOR EBX,EBX
LAB_00121839:
MOV RAX,qword ptr [R13 + 0x18]
XORPS XMM1,XMM1
TEST RAX,RAX
JLE 0x00121876
XOR R14D,R14D
LAB_00121848:
MOVSS dword ptr [RSP + 0x4],XMM1
MOV RDI,R13
MOV ESI,EBX
MOV EDX,R14D
XOR ECX,ECX
XOR R8D,R8D
CALL 0x0011b170
MOVSS XMM1,dword ptr [RSP + 0x4]
ADDSS XMM1,XMM0
INC R14
MOV RAX,qword ptr [R13 + 0x18]
CMP RAX,R14
JG 0x00121848
LAB_00121876:
XORPS XMM0,XMM0
CVTSI2SS XMM0,RAX
DIVSS XMM1,XMM0
MOV RDI,R12
MOV ESI,EBX
MOVAPS XMM0,XMM1
CALL 0x0011bca0
INC RBX
CMP qword ptr [R13 + 0x10],RBX
JG 0x00121839
LAB_00121898:
MOV RDI,R12
CALL 0x0011ba90
XORPS XMM0,XMM0
TEST RAX,RAX
JLE 0x001218e0
MOVSS dword ptr [RSP + 0x4],XMM0
XOR EBX,EBX
LAB_001218b0:
MOV RDI,R12
MOV ESI,EBX
CALL 0x0011b910
MULSS XMM0,XMM0
MOVSS XMM1,dword ptr [RSP + 0x4]
ADDSS XMM1,XMM0
MOVSS dword ptr [RSP + 0x4],XMM1
INC RBX
MOV RDI,R12
CALL 0x0011ba90
CMP RAX,RBX
JG 0x001218b0
JMP 0x001218e6
LAB_001218e0:
MOVSS dword ptr [RSP + 0x4],XMM0
LAB_001218e6:
MOVSS XMM0,dword ptr [RSP + 0x4]
UCOMISS XMM0,dword ptr [0x001e911c]
JC 0x001218fb
SQRTSS XMM0,XMM0
JMP 0x00121900
LAB_001218fb:
CALL 0x0011c2f0
LAB_00121900:
MOVSS dword ptr [RSP + 0x4],XMM0
MOV RDI,R12
CALL 0x0011ba90
TEST RAX,RAX
JLE 0x0012193f
XOR EBX,EBX
LAB_00121915:
MOV RDI,R12
MOV ESI,EBX
CALL 0x0011b910
DIVSS XMM0,dword ptr [RSP + 0x4]
MOV RDI,R12
MOV ESI,EBX
CALL 0x0011bca0
INC RBX
MOV RDI,R12
CALL 0x0011ba90
CMP RAX,RBX
JG 0x00121915
LAB_0012193f:
INC EBP
MOV RBX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RBX + 0x8]
SUB RCX,qword ptr [RBX]
SHR RCX,0x3
LEA RDI,[0x1e95f6]
LEA RSI,[0x1eafaf]
MOV EDX,EBP
XOR EAX,EAX
CALL 0x0011b070
MOV RAX,qword ptr [RBX + 0x8]
SUB RAX,qword ptr [RBX]
SAR RAX,0x3
MOV RBP,R15
CMP R15,RAX
JC 0x001217f8
LAB_0012197f:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0012198e:
LEA RDI,[0x1e979a]
LEA RDX,[0x1e941c]
LEA RCX,[0x1e97f8]
MOV ESI,0x16
XOR EAX,EAX
CALL 0x0011c130
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* mean::run(std::vector<ggml_tensor*, std::allocator<ggml_tensor*> > const&,
std::vector<ggml_tensor*, std::allocator<ggml_tensor*> > const&) */
void mean::run(vector *param_1,vector *param_2)
{
ulong uVar1;
long lVar2;
long lVar3;
long lVar4;
ulong uVar5;
ulong uVar6;
ulong uVar7;
float fVar8;
float fVar9;
float local_44;
printf("%s: Running mean...\n","run");
if (*(long *)(param_1 + 8) != *(long *)param_1) {
uVar6 = 0;
do {
lVar2 = *(long *)(*(long *)param_2 + uVar6 * 8);
uVar1 = uVar6 + 1;
ggml_format_name(lVar2,"direction.%zu",uVar1);
lVar4 = *(long *)(*(long *)param_1 + uVar6 * 8);
if (*(long *)(lVar4 + 0x10) != *(long *)(lVar2 + 0x10)) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/examples/cvector-generator/mean.hpp"
,0x16,"GGML_ASSERT(%s) failed","t_layer->ne[0] == ctrl_out->ne[0]");
}
if (0 < *(long *)(lVar4 + 0x10)) {
uVar5 = 0;
do {
lVar3 = *(long *)(lVar4 + 0x18);
fVar9 = 0.0;
if (0 < lVar3) {
uVar7 = 0;
do {
fVar8 = (float)ggml_get_f32_nd(lVar4,uVar5 & 0xffffffff,uVar7 & 0xffffffff,0,0);
fVar9 = fVar9 + fVar8;
uVar7 = uVar7 + 1;
lVar3 = *(long *)(lVar4 + 0x18);
} while ((long)uVar7 < lVar3);
}
ggml_set_f32_1d(fVar9 / (float)lVar3,lVar2,uVar5 & 0xffffffff);
uVar5 = uVar5 + 1;
} while ((long)uVar5 < *(long *)(lVar4 + 0x10));
}
lVar4 = ggml_nelements(lVar2);
if (lVar4 < 1) {
local_44 = 0.0;
}
else {
local_44 = 0.0;
uVar5 = 0;
do {
fVar9 = (float)ggml_get_f32_1d(lVar2,uVar5 & 0xffffffff);
local_44 = local_44 + fVar9 * fVar9;
uVar5 = uVar5 + 1;
lVar4 = ggml_nelements(lVar2);
} while ((long)uVar5 < lVar4);
}
if (local_44 < _DAT_001e911c) {
local_44 = sqrtf(local_44);
}
else {
local_44 = SQRT(local_44);
}
lVar4 = ggml_nelements(lVar2);
if (0 < lVar4) {
uVar5 = 0;
do {
fVar9 = (float)ggml_get_f32_1d(lVar2,uVar5 & 0xffffffff);
ggml_set_f32_1d(fVar9 / local_44,lVar2,uVar5 & 0xffffffff);
uVar5 = uVar5 + 1;
lVar4 = ggml_nelements(lVar2);
} while ((long)uVar5 < lVar4);
}
printf("%s: Done layer %d / %d\n","run",(ulong)((int)uVar6 + 1));
uVar6 = uVar1;
} while (uVar1 < (ulong)(*(long *)(param_1 + 8) - *(long *)param_1 >> 3));
}
return;
}
| |
22,349 | net_field_length | eloqsql/libmariadb/libmariadb/mariadb_lib.c | ulong
net_field_length(uchar **packet)
{
reg1 uchar *pos= *packet;
if (*pos < 251)
{
(*packet)++;
return (ulong) *pos;
}
if (*pos == 251)
{
(*packet)++;
return NULL_LENGTH;
}
if (*pos == 252)
{
(*packet)+=3;
return (ulong) uint2korr(pos+1);
}
if (*pos == 253)
{
(*packet)+=4;
return (ulong) uint3korr(pos+1);
}
(*packet)+=9; /* Must be 254 when here */
return (ulong) uint4korr(pos+1);
} | O0 | c | net_field_length:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xfb, %eax
jge 0x1e20f
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
movq %rax, -0x8(%rbp)
jmp 0x1e304
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xfb, %eax
jne 0x1e238
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq $-0x1, -0x8(%rbp)
jmp 0x1e304
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xfc, %eax
jne 0x1e27b
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x3, %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x18(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
addl %ecx, %eax
movzwl %ax, %eax
movq %rax, -0x8(%rbp)
jmp 0x1e304
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xfd, %eax
jne 0x1e2c1
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x4, %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
movq -0x18(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x8, %ecx
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movzbl 0x3(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
movl %eax, %eax
movq %rax, -0x8(%rbp)
jmp 0x1e304
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x9, %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
movq -0x18(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x8, %ecx
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movzbl 0x3(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movzbl 0x4(%rcx), %ecx
shll $0x18, %ecx
addl %ecx, %eax
movl %eax, %eax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw (%rax,%rax)
| net_field_length:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
cmp eax, 0FBh
jge short loc_1E20F
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 1
mov [rax], rcx
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
mov [rbp+var_8], rax
jmp loc_1E304
loc_1E20F:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
cmp eax, 0FBh
jnz short loc_1E238
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 1
mov [rax], rcx
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp loc_1E304
loc_1E238:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
cmp eax, 0FCh
jnz short loc_1E27B
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 3
mov [rax], rcx
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+2]
movzx ecx, cx
shl ecx, 8
add eax, ecx
movzx eax, ax
mov [rbp+var_8], rax
jmp loc_1E304
loc_1E27B:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
cmp eax, 0FDh
jnz short loc_1E2C1
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 4
mov [rax], rcx
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+1]
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+2]
shl ecx, 8
add eax, ecx
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+3]
shl ecx, 10h
add eax, ecx
mov eax, eax
mov [rbp+var_8], rax
jmp short loc_1E304
loc_1E2C1:
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 9
mov [rax], rcx
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+1]
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+2]
shl ecx, 8
add eax, ecx
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+3]
shl ecx, 10h
add eax, ecx
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+4]
shl ecx, 18h
add eax, ecx
mov eax, eax
mov [rbp+var_8], rax
loc_1E304:
mov rax, [rbp+var_8]
pop rbp
retn
| long long net_field_length(unsigned __int8 **a1)
{
int v1; // eax
int v2; // ecx
unsigned __int8 *v4; // [rsp+0h] [rbp-18h]
v4 = *a1;
if ( **a1 >= 0xFBu )
{
if ( *v4 == 251 )
{
++*a1;
return -1LL;
}
else if ( *v4 == 252 )
{
*a1 += 3;
return (unsigned __int16)((v4[2] << 8) + v4[1]);
}
else
{
if ( *v4 == 253 )
{
*a1 += 4;
v1 = (v4[2] << 8) + v4[1];
v2 = v4[3] << 16;
}
else
{
*a1 += 9;
v1 = (v4[3] << 16) + (v4[2] << 8) + v4[1];
v2 = v4[4] << 24;
}
return (unsigned int)(v2 + v1);
}
}
else
{
++*a1;
return *v4;
}
}
| net_field_length:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xfb
JGE 0x0011e20f
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x1
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0011e304
LAB_0011e20f:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xfb
JNZ 0x0011e238
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x1
MOV qword ptr [RAX],RCX
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x0011e304
LAB_0011e238:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xfc
JNZ 0x0011e27b
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x3
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x2]
MOVZX ECX,CX
SHL ECX,0x8
ADD EAX,ECX
MOVZX EAX,AX
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0011e304
LAB_0011e27b:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xfd
JNZ 0x0011e2c1
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x4
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x8
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x3]
SHL ECX,0x10
ADD EAX,ECX
MOV EAX,EAX
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0011e304
LAB_0011e2c1:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x9
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x8
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x3]
SHL ECX,0x10
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x4]
SHL ECX,0x18
ADD EAX,ECX
MOV EAX,EAX
MOV qword ptr [RBP + -0x8],RAX
LAB_0011e304:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
ulong net_field_length(long *param_1)
{
byte *pbVar1;
ulong local_10;
pbVar1 = (byte *)*param_1;
if (*pbVar1 < 0xfb) {
*param_1 = *param_1 + 1;
local_10 = (ulong)*pbVar1;
}
else if (*pbVar1 == 0xfb) {
*param_1 = *param_1 + 1;
local_10 = 0xffffffffffffffff;
}
else if (*pbVar1 == 0xfc) {
*param_1 = *param_1 + 3;
local_10 = (ulong)((uint)pbVar1[1] + (uint)pbVar1[2] * 0x100 & 0xffff);
}
else if (*pbVar1 == 0xfd) {
*param_1 = *param_1 + 4;
local_10 = (ulong)((uint)pbVar1[1] + (uint)pbVar1[2] * 0x100 + (uint)pbVar1[3] * 0x10000);
}
else {
*param_1 = *param_1 + 9;
local_10 = (ulong)((uint)pbVar1[1] + (uint)pbVar1[2] * 0x100 + (uint)pbVar1[3] * 0x10000 +
(uint)pbVar1[4] * 0x1000000);
}
return local_10;
}
| |
22,350 | net_field_length | eloqsql/libmariadb/libmariadb/mariadb_lib.c | ulong
net_field_length(uchar **packet)
{
reg1 uchar *pos= *packet;
if (*pos < 251)
{
(*packet)++;
return (ulong) *pos;
}
if (*pos == 251)
{
(*packet)++;
return NULL_LENGTH;
}
if (*pos == 252)
{
(*packet)+=3;
return (ulong) uint2korr(pos+1);
}
if (*pos == 253)
{
(*packet)+=4;
return (ulong) uint3korr(pos+1);
}
(*packet)+=9; /* Must be 254 when here */
return (ulong) uint4korr(pos+1);
} | O3 | c | net_field_length:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
movzbl (%rax), %ecx
cmpl $0xfa, %ecx
ja 0x1aa3f
leaq 0x1(%rax), %rcx
movq %rcx, (%rdi)
movzbl (%rax), %eax
popq %rbp
retq
cmpl $0xfd, %ecx
je 0x1aa73
cmpl $0xfc, %ecx
je 0x1aa66
cmpl $0xfb, %ecx
jne 0x1aa8a
incq %rax
movq %rax, (%rdi)
movq $-0x1, %rax
jmp 0x1aa3d
leaq 0x3(%rax), %rcx
movq %rcx, (%rdi)
movzwl 0x1(%rax), %eax
jmp 0x1aa3d
leaq 0x4(%rax), %rcx
movq %rcx, (%rdi)
movzwl 0x1(%rax), %ecx
movzbl 0x3(%rax), %eax
shll $0x10, %eax
orq %rcx, %rax
jmp 0x1aa3d
leaq 0x9(%rax), %rcx
movq %rcx, (%rdi)
movl 0x1(%rax), %eax
jmp 0x1aa3d
| net_field_length:
push rbp
mov rbp, rsp
mov rax, [rdi]
movzx ecx, byte ptr [rax]
cmp ecx, 0FAh
ja short loc_1AA3F
lea rcx, [rax+1]
mov [rdi], rcx
movzx eax, byte ptr [rax]
loc_1AA3D:
pop rbp
retn
loc_1AA3F:
cmp ecx, 0FDh
jz short loc_1AA73
cmp ecx, 0FCh
jz short loc_1AA66
cmp ecx, 0FBh
jnz short loc_1AA8A
inc rax
mov [rdi], rax
mov rax, 0FFFFFFFFFFFFFFFFh
jmp short loc_1AA3D
loc_1AA66:
lea rcx, [rax+3]
mov [rdi], rcx
movzx eax, word ptr [rax+1]
jmp short loc_1AA3D
loc_1AA73:
lea rcx, [rax+4]
mov [rdi], rcx
movzx ecx, word ptr [rax+1]
movzx eax, byte ptr [rax+3]
shl eax, 10h
or rax, rcx
jmp short loc_1AA3D
loc_1AA8A:
lea rcx, [rax+9]
mov [rdi], rcx
mov eax, [rax+1]
jmp short loc_1AA3D
| unsigned long long net_field_length(unsigned __int8 **a1)
{
unsigned __int8 *v1; // rax
unsigned int v2; // ecx
v1 = *a1;
v2 = **a1;
if ( v2 > 0xFA )
{
switch ( v2 )
{
case 0xFDu:
*a1 = v1 + 4;
return *(unsigned __int16 *)(v1 + 1) | (unsigned long long)(v1[3] << 16);
case 0xFCu:
*a1 = v1 + 3;
return *(unsigned __int16 *)(v1 + 1);
case 0xFBu:
*a1 = v1 + 1;
return -1LL;
default:
*a1 = v1 + 9;
return *(unsigned int *)(v1 + 1);
}
}
else
{
*a1 = v1 + 1;
return *v1;
}
}
| net_field_length:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RDI]
MOVZX ECX,byte ptr [RAX]
CMP ECX,0xfa
JA 0x0011aa3f
LEA RCX,[RAX + 0x1]
MOV qword ptr [RDI],RCX
MOVZX EAX,byte ptr [RAX]
LAB_0011aa3d:
POP RBP
RET
LAB_0011aa3f:
CMP ECX,0xfd
JZ 0x0011aa73
CMP ECX,0xfc
JZ 0x0011aa66
CMP ECX,0xfb
JNZ 0x0011aa8a
INC RAX
MOV qword ptr [RDI],RAX
MOV RAX,-0x1
JMP 0x0011aa3d
LAB_0011aa66:
LEA RCX,[RAX + 0x3]
MOV qword ptr [RDI],RCX
MOVZX EAX,word ptr [RAX + 0x1]
JMP 0x0011aa3d
LAB_0011aa73:
LEA RCX,[RAX + 0x4]
MOV qword ptr [RDI],RCX
MOVZX ECX,word ptr [RAX + 0x1]
MOVZX EAX,byte ptr [RAX + 0x3]
SHL EAX,0x10
OR RAX,RCX
JMP 0x0011aa3d
LAB_0011aa8a:
LEA RCX,[RAX + 0x9]
MOV qword ptr [RDI],RCX
MOV EAX,dword ptr [RAX + 0x1]
JMP 0x0011aa3d
|
ulong net_field_length(long *param_1)
{
byte bVar1;
byte *pbVar2;
ulong uVar3;
pbVar2 = (byte *)*param_1;
bVar1 = *pbVar2;
if (bVar1 < 0xfb) {
*param_1 = (long)(pbVar2 + 1);
uVar3 = (ulong)*pbVar2;
}
else if (bVar1 == 0xfd) {
*param_1 = (long)(pbVar2 + 4);
uVar3 = (ulong)*(uint3 *)(pbVar2 + 1);
}
else if (bVar1 == 0xfc) {
*param_1 = (long)(pbVar2 + 3);
uVar3 = (ulong)*(ushort *)(pbVar2 + 1);
}
else if (bVar1 == 0xfb) {
*param_1 = (long)(pbVar2 + 1);
uVar3 = 0xffffffffffffffff;
}
else {
*param_1 = (long)(pbVar2 + 9);
uVar3 = (ulong)*(uint *)(pbVar2 + 1);
}
return uVar3;
}
| |
22,351 | testing::internal::FormatCompilerIndependentFileLocation[abi:cxx11](char const*, int) | AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-port.cc | GTEST_API_ ::std::string FormatCompilerIndependentFileLocation(const char* file,
int line) {
const std::string file_name(file == nullptr ? kUnknownFile : file);
if (line < 0)
return file_name;
else
return file_name + ":" + StreamableToString(line);
} | O0 | cpp | testing::internal::FormatCompilerIndependentFileLocation[abi:cxx11](char const*, int):
subq $0xb8, %rsp
movq %rdi, 0x18(%rsp)
movq %rdi, %rax
movq %rax, 0x20(%rsp)
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movl %edx, 0xa4(%rsp)
cmpq $0x0, 0xa8(%rsp)
jne 0xb8f04
leaq 0x58713(%rip), %rax # 0x111610
movq %rax, 0x10(%rsp)
jmp 0xb8f11
movq 0xa8(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
leaq 0x7f(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x14c90
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
leaq 0x80(%rsp), %rdi
callq 0x1a6a0
jmp 0xb8f41
leaq 0x7f(%rsp), %rdi
callq 0x14750
cmpl $0x0, 0xa4(%rsp)
jge 0xb8fa6
movq 0x18(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x39160
jmp 0xb8f69
movl $0x1, 0x68(%rsp)
jmp 0xb903d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
leaq 0x7f(%rsp), %rdi
callq 0x14750
jmp 0xb9064
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
jmp 0xb9057
leaq 0x5afe7(%rip), %rdx # 0x113f94
leaq 0x48(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x8bfc0
jmp 0xb8fc1
leaq 0x28(%rsp), %rdi
leaq 0xa4(%rsp), %rsi
callq 0xe2830
jmp 0xb8fd5
movq 0x18(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0x8bed0
jmp 0xb8feb
leaq 0x28(%rsp), %rdi
callq 0x1aac0
leaq 0x48(%rsp), %rdi
callq 0x1aac0
movl $0x1, 0x68(%rsp)
jmp 0xb903d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
jmp 0xb9031
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x1aac0
leaq 0x48(%rsp), %rdi
callq 0x1aac0
jmp 0xb9057
leaq 0x80(%rsp), %rdi
callq 0x1aac0
movq 0x20(%rsp), %rax
addq $0xb8, %rsp
retq
leaq 0x80(%rsp), %rdi
callq 0x1aac0
movq 0x70(%rsp), %rdi
callq 0x14c80
nop
| _ZN7testing8internal37FormatCompilerIndependentFileLocationB5cxx11EPKci:
sub rsp, 0B8h
mov [rsp+0B8h+var_A0], rdi; __int64
mov rax, rdi
mov [rsp+0B8h+var_98], rax
mov [rsp+0B8h+var_8], rdi
mov qword ptr [rsp+0B8h+var_10], rsi
mov [rsp+0B8h+var_14], edx
cmp qword ptr [rsp+0B8h+var_10], 0
jnz short loc_B8F04
lea rax, _ZN7testing8internalL12kUnknownFileE; "unknown file"
mov qword ptr [rsp+0B8h+var_A8], rax
jmp short loc_B8F11
loc_B8F04:
mov rax, qword ptr [rsp+0B8h+var_10]
mov qword ptr [rsp+0B8h+var_A8], rax; int
loc_B8F11:
mov rax, qword ptr [rsp+0B8h+var_A8]
mov qword ptr [rsp+0B8h+var_B8], rax; int
lea rdi, [rsp+0B8h+var_39]
mov [rsp+0B8h+var_B0], rdi; void *
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rsi, qword ptr [rsp+0B8h+var_B8]
mov rdx, [rsp+0B8h+var_B0]
lea rdi, [rsp+0B8h+var_38]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_B8F41:
lea rdi, [rsp+0B8h+var_39]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
cmp [rsp+0B8h+var_14], 0
jge short loc_B8FA6
mov rdi, [rsp+0B8h+var_A0]
lea rsi, [rsp+0B8h+var_38]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
jmp short $+2
loc_B8F69:
mov [rsp+0B8h+var_50], 1
jmp loc_B903D
mov rcx, rax
mov eax, edx
mov [rsp+arg_68], rcx
mov [rsp+arg_64], eax
lea rdi, [rsp+arg_77]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_B9064
mov rcx, rax
mov eax, edx
mov [rsp+arg_68], rcx
mov [rsp+arg_64], eax
jmp loc_B9057
loc_B8FA6:
lea rdx, aTrace+6; int
lea rdi, [rsp+0B8h+var_70]; int
lea rsi, [rsp+0B8h+var_38]; int
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*)
jmp short $+2
loc_B8FC1:
lea rdi, [rsp+0B8h+var_90]
lea rsi, [rsp+0B8h+var_14]
call _ZN7testing8internal18StreamableToStringIiEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::internal::StreamableToString<int>(int const&)
jmp short $+2
loc_B8FD5:
mov rdi, [rsp+0B8h+var_A0]
lea rsi, [rsp+0B8h+var_70]
lea rdx, [rsp+0B8h+var_90]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
jmp short $+2
loc_B8FEB:
lea rdi, [rsp+0B8h+var_90]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0B8h+var_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov [rsp+0B8h+var_50], 1
jmp short loc_B903D
mov rcx, rax
mov eax, edx
mov [rsp+arg_68], rcx
mov [rsp+arg_64], eax
jmp short loc_B9031
mov rcx, rax
mov eax, edx
mov [rsp+arg_68], rcx
mov [rsp+arg_64], eax
lea rdi, [rsp+arg_20]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_B9031:
lea rdi, [rsp+arg_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_B9057
loc_B903D:
lea rdi, [rsp+0B8h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, [rsp+0B8h+var_98]
add rsp, 0B8h
retn
loc_B9057:
lea rdi, [rsp+arg_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_B9064:
mov rdi, [rsp+arg_68]
call __Unwind_Resume
| _QWORD * testing::internal::FormatCompilerIndependentFileLocation[abi:cxx11](_QWORD *a1, long long a2, int a3)
{
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
const char *v8; // [rsp+10h] [rbp-A8h]
_BYTE v9[32]; // [rsp+28h] [rbp-90h] BYREF
int v10[13]; // [rsp+48h] [rbp-70h] BYREF
char v11; // [rsp+7Fh] [rbp-39h] BYREF
int v12[9]; // [rsp+80h] [rbp-38h] BYREF
int v13; // [rsp+A4h] [rbp-14h] BYREF
int v14[2]; // [rsp+A8h] [rbp-10h]
_QWORD *v15; // [rsp+B0h] [rbp-8h]
v15 = a1;
*(_QWORD *)v14 = a2;
v13 = a3;
if ( a2 )
v8 = *(const char **)v14;
else
v8 = "unknown file";
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>((long long)v12, (long long)v8, (long long)&v11);
std::allocator<char>::~allocator(&v11, v8);
if ( v13 >= 0 )
{
std::operator+<char>(v10, (long long)v12, (long long)":");
testing::internal::StreamableToString<int>((unsigned int)v9, (unsigned int)&v13, v3, v4, v5, v6);
std::operator+<char>((long long)a1, (long long)v10, (long long)v9);
std::string::~string(v9);
std::string::~string(v10);
}
else
{
std::string::basic_string(a1, (long long)v12);
}
v10[8] = 1;
std::string::~string(v12);
return a1;
}
| FormatCompilerIndependentFileLocation[abi:cxx11]:
SUB RSP,0xb8
MOV qword ptr [RSP + 0x18],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0xb0],RDI
MOV qword ptr [RSP + 0xa8],RSI
MOV dword ptr [RSP + 0xa4],EDX
CMP qword ptr [RSP + 0xa8],0x0
JNZ 0x001b8f04
LEA RAX,[0x211610]
MOV qword ptr [RSP + 0x10],RAX
JMP 0x001b8f11
LAB_001b8f04:
MOV RAX,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0x10],RAX
LAB_001b8f11:
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP],RAX
LEA RDI,[RSP + 0x7f]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x00114c90
MOV RSI,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x8]
LAB_001b8f32:
LEA RDI,[RSP + 0x80]
CALL 0x0011a6a0
JMP 0x001b8f41
LAB_001b8f41:
LEA RDI,[RSP + 0x7f]
CALL 0x00114750
CMP dword ptr [RSP + 0xa4],0x0
JGE 0x001b8fa6
LAB_001b8f55:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[RSP + 0x80]
CALL 0x00139160
JMP 0x001b8f69
LAB_001b8f69:
MOV dword ptr [RSP + 0x68],0x1
JMP 0x001b903d
LAB_001b8fa6:
LEA RDX,[0x213f94]
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x80]
CALL 0x0018bfc0
JMP 0x001b8fc1
LAB_001b8fc1:
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0xa4]
CALL 0x001e2830
JMP 0x001b8fd5
LAB_001b8fd5:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[RSP + 0x48]
LEA RDX,[RSP + 0x28]
CALL 0x0018bed0
LAB_001b8fe9:
JMP 0x001b8feb
LAB_001b8feb:
LEA RDI,[RSP + 0x28]
CALL 0x0011aac0
LEA RDI,[RSP + 0x48]
CALL 0x0011aac0
MOV dword ptr [RSP + 0x68],0x1
JMP 0x001b903d
LAB_001b903d:
LEA RDI,[RSP + 0x80]
CALL 0x0011aac0
MOV RAX,qword ptr [RSP + 0x20]
ADD RSP,0xb8
RET
|
/* testing::internal::FormatCompilerIndependentFileLocation[abi:cxx11](char const*, int) */
internal * __thiscall
testing::internal::FormatCompilerIndependentFileLocation_abi_cxx11_
(internal *this,char *param_1,int param_2)
{
char *local_a8;
internal local_90 [32];
string local_70 [32];
int4 local_50;
allocator local_39;
string local_38 [36];
int local_14;
char *local_10;
internal *local_8;
local_a8 = param_1;
if (param_1 == (char *)0x0) {
local_a8 = "unknown file";
}
local_14 = param_2;
local_10 = param_1;
local_8 = this;
std::allocator<char>::allocator();
/* try { // try from 001b8f32 to 001b8f3e has its CatchHandler @ 001b8f76 */
std::__cxx11::string::string<std::allocator<char>>(local_38,local_a8,&local_39);
std::allocator<char>::~allocator((allocator<char> *)&local_39);
if (local_14 < 0) {
/* try { // try from 001b8f55 to 001b8fbe has its CatchHandler @ 001b8f93 */
std::__cxx11::string::string((string *)this,local_38);
}
else {
std::operator+(local_70,(char *)local_38);
/* try { // try from 001b8fc1 to 001b8fd2 has its CatchHandler @ 001b9009 */
StreamableToString<int>(local_90,&local_14);
/* try { // try from 001b8fd5 to 001b8fe8 has its CatchHandler @ 001b9019 */
std::operator+((string *)this,local_70);
std::__cxx11::string::~string((string *)local_90);
std::__cxx11::string::~string(local_70);
}
local_50 = 1;
std::__cxx11::string::~string(local_38);
return this;
}
| |
22,352 | pvio_socket_change_timeout | eloqsql/libmariadb/plugins/pvio/pvio_socket.c | my_bool pvio_socket_change_timeout(MARIADB_PVIO *pvio, enum enum_pvio_timeout type, int timeout)
{
struct timeval tm;
int rc= 0;
struct st_pvio_socket *csock= NULL;
if (!pvio)
return 1;
if (!(csock= (struct st_pvio_socket *)pvio->data))
return 1;
tm.tv_sec= timeout / 1000;
tm.tv_usec= (timeout % 1000) * 1000;
switch(type)
{
case PVIO_WRITE_TIMEOUT:
#ifndef _WIN32
rc= setsockopt(csock->socket, SOL_SOCKET, SO_SNDTIMEO, (const char *)&tm, sizeof(tm));
#else
rc= setsockopt(csock->socket, SOL_SOCKET, SO_SNDTIMEO, (const char *)&timeout, sizeof(int));
#endif
break;
case PVIO_READ_TIMEOUT:
#ifndef _WIN32
rc= setsockopt(csock->socket, SOL_SOCKET, SO_RCVTIMEO, (const char *)&tm, sizeof(tm));
#else
rc= setsockopt(csock->socket, SOL_SOCKET, SO_RCVTIMEO, (const char *)&timeout, sizeof(int));
#endif
break;
default:
break;
}
return rc;
} | O3 | c | pvio_socket_change_timeout:
movb $0x1, %al
testq %rdi, %rdi
je 0x3231e
movq (%rdi), %rcx
testq %rcx, %rcx
je 0x3231e
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movslq %edx, %rax
imulq $0x10624dd3, %rax, %rdx # imm = 0x10624DD3
movq %rdx, %rdi
shrq $0x3f, %rdi
sarq $0x26, %rdx
addl %edi, %edx
movslq %edx, %rdx
movq %rdx, -0x10(%rbp)
imull $0x3e8, %edx, %edx # imm = 0x3E8
subl %edx, %eax
imull $0x3e8, %eax, %eax # imm = 0x3E8
cltq
movq %rax, -0x8(%rbp)
cmpl $0x2, %esi
je 0x322fa
cmpl $0x1, %esi
jne 0x32317
movl $0x14, %edx
jmp 0x322ff
movl $0x15, %edx
movl (%rcx), %edi
leaq -0x10(%rbp), %rcx
movl $0x1, %esi
movl $0x10, %r8d
callq 0x137c0
jmp 0x32319
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
| pvio_socket_change_timeout:
mov al, 1
test rdi, rdi
jz short locret_3231E
mov rcx, [rdi]
test rcx, rcx
jz short locret_3231E
push rbp
mov rbp, rsp
sub rsp, 10h
movsxd rax, edx
imul rdx, rax, 10624DD3h
mov rdi, rdx
shr rdi, 3Fh
sar rdx, 26h
add edx, edi
movsxd rdx, edx
mov [rbp-10h], rdx
imul edx, 3E8h
sub eax, edx
imul eax, 3E8h
cdqe
mov [rbp-8], rax
cmp esi, 2
jz short loc_322FA
cmp esi, 1
jnz short loc_32317
mov edx, 14h
jmp short loc_322FF
loc_322FA:
mov edx, 15h
loc_322FF:
mov edi, [rcx]
lea rcx, [rbp-10h]
mov esi, 1
mov r8d, 10h
call _setsockopt
jmp short loc_32319
loc_32317:
xor eax, eax
loc_32319:
add rsp, 10h
pop rbp
locret_3231E:
retn
| char pvio_socket_change_timeout(unsigned int **a1, int a2, int a3)
{
char result; // al
unsigned int *v4; // rcx
long long v5; // rdx
_QWORD v6[3]; // [rsp-18h] [rbp-18h] BYREF
result = 1;
if ( a1 )
{
v4 = *a1;
if ( *a1 )
{
v6[0] = a3 / 1000;
v6[1] = 1000 * (a3 % 1000);
if ( a2 == 2 )
{
v5 = 21LL;
return setsockopt(*v4, 1LL, v5, v6, 16LL);
}
if ( a2 == 1 )
{
v5 = 20LL;
return setsockopt(*v4, 1LL, v5, v6, 16LL);
}
return 0;
}
}
return result;
}
| pvio_socket_change_timeout:
MOV AL,0x1
TEST RDI,RDI
JZ 0x0013231e
MOV RCX,qword ptr [RDI]
TEST RCX,RCX
JZ 0x0013231e
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOVSXD RAX,EDX
IMUL RDX,RAX,0x10624dd3
MOV RDI,RDX
SHR RDI,0x3f
SAR RDX,0x26
ADD EDX,EDI
MOVSXD RDX,EDX
MOV qword ptr [RBP + -0x10],RDX
IMUL EDX,EDX,0x3e8
SUB EAX,EDX
IMUL EAX,EAX,0x3e8
CDQE
MOV qword ptr [RBP + -0x8],RAX
CMP ESI,0x2
JZ 0x001322fa
CMP ESI,0x1
JNZ 0x00132317
MOV EDX,0x14
JMP 0x001322ff
LAB_001322fa:
MOV EDX,0x15
LAB_001322ff:
MOV EDI,dword ptr [RCX]
LEA RCX,[RBP + -0x10]
MOV ESI,0x1
MOV R8D,0x10
CALL 0x001137c0
JMP 0x00132319
LAB_00132317:
XOR EAX,EAX
LAB_00132319:
ADD RSP,0x10
POP RBP
LAB_0013231e:
RET
|
int pvio_socket_change_timeout(int8 *param_1,int param_2,int param_3)
{
int iVar1;
long local_18;
long local_10;
iVar1 = 1;
if ((param_1 != (int8 *)0x0) && ((int *)*param_1 != (int *)0x0)) {
local_18 = (long)(param_3 / 1000);
local_10 = (long)((param_3 % 1000) * 1000);
if (param_2 == 2) {
iVar1 = 0x15;
}
else {
if (param_2 != 1) {
return 0;
}
iVar1 = 0x14;
}
iVar1 = setsockopt(*(int *)*param_1,1,iVar1,&local_18,0x10);
}
return iVar1;
}
| |
22,353 | getTableName | eloqsql/client/mysqldump.c | static char *getTableName(int reset, int want_sequences)
{
MYSQL_ROW row;
if (!get_table_name_result)
{
if (mysql_get_server_version(mysql) >= FIRST_SEQUENCE_VERSION)
{
const char *query= "SHOW FULL TABLES";
if (mysql_query_with_error_report(mysql, 0, query))
return (NULL);
if (!(get_table_name_result= mysql_store_result(mysql)))
return (NULL);
}
else
{
if (!(get_table_name_result= mysql_list_tables(mysql,NullS)))
return(NULL);
}
}
if ((row= mysql_fetch_row(get_table_name_result)))
{
if (want_sequences != DUMP_TABLE_ALL)
while (row && MY_TEST(strcmp(row[1], "SEQUENCE")) == want_sequences)
row= mysql_fetch_row(get_table_name_result);
if (row)
return((char*) row[0]);
}
if (reset)
mysql_data_seek(get_table_name_result,0); /* We want to read again */
else
{
mysql_free_result(get_table_name_result);
get_table_name_result= NULL;
}
return(NULL);
} | O0 | c | getTableName:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0xc(%rbp)
movl %esi, -0x10(%rbp)
cmpq $0x0, 0x3c1cfa(%rip) # 0x4018d0
jne 0x3fc77
movq 0x3c18e5(%rip), %rdi # 0x4014c8
callq 0x523b0
cmpq $0x187cc, %rax # imm = 0x187CC
jb 0x3fc49
leaq 0x9cafa(%rip), %rax # 0xdc6f1
movq %rax, -0x20(%rbp)
movq 0x3c18c6(%rip), %rdi # 0x4014c8
movq -0x20(%rbp), %rdx
xorl %eax, %eax
movl %eax, %esi
callq 0x39350
cmpl $0x0, %eax
je 0x3fc21
movq $0x0, -0x8(%rbp)
jmp 0x3fd37
movq 0x3c18a0(%rip), %rdi # 0x4014c8
callq 0x514c0
movq %rax, 0x3c1c9c(%rip) # 0x4018d0
cmpq $0x0, %rax
jne 0x3fc47
movq $0x0, -0x8(%rbp)
jmp 0x3fd37
jmp 0x3fc75
movq 0x3c1878(%rip), %rdi # 0x4014c8
xorl %eax, %eax
movl %eax, %esi
callq 0x51c70
movq %rax, 0x3c1c70(%rip) # 0x4018d0
cmpq $0x0, %rax
jne 0x3fc73
movq $0x0, -0x8(%rbp)
jmp 0x3fd37
jmp 0x3fc75
jmp 0x3fc77
movq 0x3c1c52(%rip), %rdi # 0x4018d0
callq 0x51800
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
je 0x3fd00
cmpl $-0x1, -0x10(%rbp)
je 0x3fcea
jmp 0x3fc95
xorl %eax, %eax
cmpq $0x0, -0x18(%rbp)
movb %al, -0x21(%rbp)
je 0x3fccd
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x98592(%rip), %rsi # 0xd8242
callq 0x38880
movl %eax, %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
cmpl -0x10(%rbp), %eax
sete %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
testb $0x1, %al
jne 0x3fcd6
jmp 0x3fce8
movq 0x3c1bf3(%rip), %rdi # 0x4018d0
callq 0x51800
movq %rax, -0x18(%rbp)
jmp 0x3fc95
jmp 0x3fcea
cmpq $0x0, -0x18(%rbp)
je 0x3fcfe
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x3fd37
jmp 0x3fd00
cmpl $0x0, -0xc(%rbp)
je 0x3fd18
movq 0x3c1bc3(%rip), %rdi # 0x4018d0
xorl %eax, %eax
movl %eax, %esi
callq 0x51a80
jmp 0x3fd2f
movq 0x3c1bb1(%rip), %rdi # 0x4018d0
callq 0x48d00
movq $0x0, 0x3c1ba1(%rip) # 0x4018d0
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| getTableName:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_C], edi
mov [rbp+var_10], esi
cmp cs:get_table_name_result, 0
jnz loc_3FC77
mov rdi, cs:mysql
call mysql_get_server_version
cmp rax, 187CCh
jb short loc_3FC49
lea rax, aShowFullTables; "SHOW FULL TABLES"
mov [rbp+var_20], rax
mov rdi, cs:mysql
mov rdx, [rbp+var_20]
xor eax, eax
mov esi, eax
call mysql_query_with_error_report
cmp eax, 0
jz short loc_3FC21
mov [rbp+var_8], 0
jmp loc_3FD37
loc_3FC21:
mov rdi, cs:mysql
call mysql_store_result
mov cs:get_table_name_result, rax
cmp rax, 0
jnz short loc_3FC47
mov [rbp+var_8], 0
jmp loc_3FD37
loc_3FC47:
jmp short loc_3FC75
loc_3FC49:
mov rdi, cs:mysql
xor eax, eax
mov esi, eax
call mysql_list_tables
mov cs:get_table_name_result, rax
cmp rax, 0
jnz short loc_3FC73
mov [rbp+var_8], 0
jmp loc_3FD37
loc_3FC73:
jmp short $+2
loc_3FC75:
jmp short $+2
loc_3FC77:
mov rdi, cs:get_table_name_result
call mysql_fetch_row
mov [rbp+var_18], rax
cmp rax, 0
jz short loc_3FD00
cmp [rbp+var_10], 0FFFFFFFFh
jz short loc_3FCEA
jmp short $+2
loc_3FC95:
xor eax, eax
cmp [rbp+var_18], 0
mov [rbp+var_21], al
jz short loc_3FCCD
mov rax, [rbp+var_18]
mov rdi, [rax+8]
lea rsi, aSequence; "SEQUENCE"
call _strcmp
mov edx, eax
xor eax, eax
mov ecx, 1
cmp edx, 0
cmovnz eax, ecx
cmp eax, [rbp+var_10]
setz al
mov [rbp+var_21], al
loc_3FCCD:
mov al, [rbp+var_21]
test al, 1
jnz short loc_3FCD6
jmp short loc_3FCE8
loc_3FCD6:
mov rdi, cs:get_table_name_result
call mysql_fetch_row
mov [rbp+var_18], rax
jmp short loc_3FC95
loc_3FCE8:
jmp short $+2
loc_3FCEA:
cmp [rbp+var_18], 0
jz short loc_3FCFE
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_8], rax
jmp short loc_3FD37
loc_3FCFE:
jmp short $+2
loc_3FD00:
cmp [rbp+var_C], 0
jz short loc_3FD18
mov rdi, cs:get_table_name_result
xor eax, eax
mov esi, eax
call mysql_data_seek
jmp short loc_3FD2F
loc_3FD18:
mov rdi, cs:get_table_name_result
call mysql_free_result
mov cs:get_table_name_result, 0
loc_3FD2F:
mov [rbp+var_8], 0
loc_3FD37:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
| long long getTableName(int a1, int a2, double a3)
{
bool v4; // [rsp+Fh] [rbp-21h]
_QWORD *row; // [rsp+18h] [rbp-18h]
if ( !get_table_name_result )
{
if ( (unsigned long long)mysql_get_server_version(mysql, a3) < 0x187CC )
{
get_table_name_result = mysql_list_tables(mysql, 0LL);
if ( !get_table_name_result )
return 0LL;
}
else
{
if ( (unsigned int)mysql_query_with_error_report(mysql, 0LL, (long long)"SHOW FULL TABLES") )
return 0LL;
get_table_name_result = mysql_store_result(mysql);
if ( !get_table_name_result )
return 0LL;
}
}
row = (_QWORD *)mysql_fetch_row(get_table_name_result);
if ( !row )
goto LABEL_18;
if ( a2 != -1 )
{
while ( 1 )
{
v4 = 0;
if ( row )
v4 = ((unsigned int)strcmp(row[1], "SEQUENCE") != 0) == a2;
if ( !v4 )
break;
row = (_QWORD *)mysql_fetch_row(get_table_name_result);
}
}
if ( row )
return *row;
LABEL_18:
if ( a1 )
{
mysql_data_seek(get_table_name_result, 0LL);
}
else
{
mysql_free_result(get_table_name_result);
get_table_name_result = 0LL;
}
return 0LL;
}
| getTableName:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV dword ptr [RBP + -0xc],EDI
MOV dword ptr [RBP + -0x10],ESI
CMP qword ptr [0x005018d0],0x0
JNZ 0x0013fc77
MOV RDI,qword ptr [0x005014c8]
CALL 0x001523b0
CMP RAX,0x187cc
JC 0x0013fc49
LEA RAX,[0x1dc6f1]
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [0x005014c8]
MOV RDX,qword ptr [RBP + -0x20]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x00139350
CMP EAX,0x0
JZ 0x0013fc21
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0013fd37
LAB_0013fc21:
MOV RDI,qword ptr [0x005014c8]
CALL 0x001514c0
MOV qword ptr [0x005018d0],RAX
CMP RAX,0x0
JNZ 0x0013fc47
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0013fd37
LAB_0013fc47:
JMP 0x0013fc75
LAB_0013fc49:
MOV RDI,qword ptr [0x005014c8]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x00151c70
MOV qword ptr [0x005018d0],RAX
CMP RAX,0x0
JNZ 0x0013fc73
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0013fd37
LAB_0013fc73:
JMP 0x0013fc75
LAB_0013fc75:
JMP 0x0013fc77
LAB_0013fc77:
MOV RDI,qword ptr [0x005018d0]
CALL 0x00151800
MOV qword ptr [RBP + -0x18],RAX
CMP RAX,0x0
JZ 0x0013fd00
CMP dword ptr [RBP + -0x10],-0x1
JZ 0x0013fcea
JMP 0x0013fc95
LAB_0013fc95:
XOR EAX,EAX
CMP qword ptr [RBP + -0x18],0x0
MOV byte ptr [RBP + -0x21],AL
JZ 0x0013fccd
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[0x1d8242]
CALL 0x00138880
MOV EDX,EAX
XOR EAX,EAX
MOV ECX,0x1
CMP EDX,0x0
CMOVNZ EAX,ECX
CMP EAX,dword ptr [RBP + -0x10]
SETZ AL
MOV byte ptr [RBP + -0x21],AL
LAB_0013fccd:
MOV AL,byte ptr [RBP + -0x21]
TEST AL,0x1
JNZ 0x0013fcd6
JMP 0x0013fce8
LAB_0013fcd6:
MOV RDI,qword ptr [0x005018d0]
CALL 0x00151800
MOV qword ptr [RBP + -0x18],RAX
JMP 0x0013fc95
LAB_0013fce8:
JMP 0x0013fcea
LAB_0013fcea:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x0013fcfe
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0013fd37
LAB_0013fcfe:
JMP 0x0013fd00
LAB_0013fd00:
CMP dword ptr [RBP + -0xc],0x0
JZ 0x0013fd18
MOV RDI,qword ptr [0x005018d0]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x00151a80
JMP 0x0013fd2f
LAB_0013fd18:
MOV RDI,qword ptr [0x005018d0]
CALL 0x00148d00
MOV qword ptr [0x005018d0],0x0
LAB_0013fd2f:
MOV qword ptr [RBP + -0x8],0x0
LAB_0013fd37:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
int8 getTableName(int param_1,uint param_2)
{
int iVar1;
ulong uVar2;
bool bVar3;
int8 *local_20;
if (get_table_name_result == 0) {
uVar2 = mysql_get_server_version(mysql);
if (uVar2 < 0x187cc) {
get_table_name_result = mysql_list_tables(mysql,0);
if (get_table_name_result == 0) {
return 0;
}
}
else {
iVar1 = mysql_query_with_error_report(mysql,0,"SHOW FULL TABLES");
if (iVar1 != 0) {
return 0;
}
get_table_name_result = mysql_store_result(mysql);
if (get_table_name_result == 0) {
return 0;
}
}
}
local_20 = (int8 *)mysql_fetch_row(get_table_name_result);
if (local_20 != (int8 *)0x0) {
if (param_2 != 0xffffffff) {
while( true ) {
bVar3 = false;
if (local_20 != (int8 *)0x0) {
iVar1 = strcmp((char *)local_20[1],"SEQUENCE");
bVar3 = (iVar1 != 0) == param_2;
}
if (!bVar3) break;
local_20 = (int8 *)mysql_fetch_row(get_table_name_result);
}
}
if (local_20 != (int8 *)0x0) {
return *local_20;
}
}
if (param_1 == 0) {
mysql_free_result(get_table_name_result);
get_table_name_result = 0;
}
else {
mysql_data_seek(get_table_name_result,0);
}
return 0;
}
| |
22,354 | dbuf_put | bluesky950520[P]quickjs/cutils.c | int dbuf_put(DynBuf *s, const void *data, size_t len)
{
if (unlikely((s->size + len) > s->allocated_size)) {
if (dbuf_realloc(s, s->size + len))
return -1;
}
if (len > 0) {
memcpy(s->buf + s->size, data, len);
s->size += len;
}
return 0;
} | O0 | c | dbuf_put:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
addq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
cmpq 0x10(%rcx), %rax
seta %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x1d2f7
movq 0x18(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rsi
addq 0x8(%rsp), %rsi
callq 0x1d130
cmpl $0x0, %eax
je 0x1d2f5
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x1d339
jmp 0x1d2f7
cmpq $0x0, 0x8(%rsp)
jbe 0x1d331
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movq 0x18(%rsp), %rax
addq 0x8(%rax), %rdi
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0xe5a0
movq 0x8(%rsp), %rcx
movq 0x18(%rsp), %rax
addq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
| dbuf_put:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov [rsp+28h+var_18], rsi
mov [rsp+28h+var_20], rdx
mov rax, [rsp+28h+var_10]
mov rax, [rax+8]
add rax, [rsp+28h+var_20]
mov rcx, [rsp+28h+var_10]
cmp rax, [rcx+10h]
setnbe al
xor al, 0FFh
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_1D2F7
mov rdi, [rsp+28h+var_10]
mov rax, [rsp+28h+var_10]
mov rsi, [rax+8]
add rsi, [rsp+28h+var_20]
call dbuf_realloc
cmp eax, 0
jz short loc_1D2F5
mov [rsp+28h+var_4], 0FFFFFFFFh
jmp short loc_1D339
loc_1D2F5:
jmp short $+2
loc_1D2F7:
cmp [rsp+28h+var_20], 0
jbe short loc_1D331
mov rax, [rsp+28h+var_10]
mov rdi, [rax]
mov rax, [rsp+28h+var_10]
add rdi, [rax+8]
mov rsi, [rsp+28h+var_18]
mov rdx, [rsp+28h+var_20]
call _memcpy
mov rcx, [rsp+28h+var_20]
mov rax, [rsp+28h+var_10]
add rcx, [rax+8]
mov [rax+8], rcx
loc_1D331:
mov [rsp+28h+var_4], 0
loc_1D339:
mov eax, [rsp+28h+var_4]
add rsp, 28h
retn
| long long dbuf_put(_QWORD *a1, long long a2, long long a3)
{
if ( (unsigned long long)(a3 + a1[1]) > a1[2] && (unsigned int)dbuf_realloc((long long)a1, a3 + a1[1]) )
{
return (unsigned int)-1;
}
else
{
if ( a3 )
{
memcpy(a1[1] + *a1, a2, a3);
a1[1] += a3;
}
return 0;
}
}
| dbuf_put:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RDI
MOV qword ptr [RSP + 0x10],RSI
MOV qword ptr [RSP + 0x8],RDX
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x8]
ADD RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x18]
CMP RAX,qword ptr [RCX + 0x10]
SETA AL
XOR AL,0xff
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0011d2f7
MOV RDI,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RAX + 0x8]
ADD RSI,qword ptr [RSP + 0x8]
CALL 0x0011d130
CMP EAX,0x0
JZ 0x0011d2f5
MOV dword ptr [RSP + 0x24],0xffffffff
JMP 0x0011d339
LAB_0011d2f5:
JMP 0x0011d2f7
LAB_0011d2f7:
CMP qword ptr [RSP + 0x8],0x0
JBE 0x0011d331
MOV RAX,qword ptr [RSP + 0x18]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RSP + 0x18]
ADD RDI,qword ptr [RAX + 0x8]
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x8]
CALL 0x0010e5a0
MOV RCX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RSP + 0x18]
ADD RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX + 0x8],RCX
LAB_0011d331:
MOV dword ptr [RSP + 0x24],0x0
LAB_0011d339:
MOV EAX,dword ptr [RSP + 0x24]
ADD RSP,0x28
RET
|
int4 dbuf_put(long *param_1,void *param_2,size_t param_3)
{
int iVar1;
int4 local_4;
if (((ulong)param_1[2] < param_1[1] + param_3) &&
(iVar1 = dbuf_realloc(param_1,param_1[1] + param_3), iVar1 != 0)) {
local_4 = 0xffffffff;
}
else {
if (param_3 != 0) {
memcpy((void *)(*param_1 + param_1[1]),param_2,param_3);
param_1[1] = param_3 + param_1[1];
}
local_4 = 0;
}
return local_4;
}
| |
22,355 | dbuf_put | bluesky950520[P]quickjs/cutils.c | int dbuf_put(DynBuf *s, const void *data, size_t len)
{
if (unlikely((s->size + len) > s->allocated_size)) {
if (dbuf_realloc(s, s->size + len))
return -1;
}
if (len > 0) {
memcpy(s->buf + s->size, data, len);
s->size += len;
}
return 0;
} | O1 | c | dbuf_put:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x8(%rdi), %rsi
addq %rdx, %rsi
cmpq 0x10(%rdi), %rsi
ja 0x1a855
xorl %ebp, %ebp
testq %rbx, %rbx
je 0x1a848
movq (%r14), %rdi
addq 0x8(%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xe5a0
addq %rbx, 0x8(%r14)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x1a761
movl $0xffffffff, %ebp # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x1a848
jmp 0x1a82b
| dbuf_put:
push rbp
push r15
push r14
push rbx
push rax
mov rbx, rdx
mov r15, rsi
mov r14, rdi
mov rsi, [rdi+8]
add rsi, rdx
cmp rsi, [rdi+10h]
ja short loc_1A855
loc_1A82B:
xor ebp, ebp
test rbx, rbx
jz short loc_1A848
mov rdi, [r14]
add rdi, [r14+8]
mov rsi, r15
mov rdx, rbx
call _memcpy
add [r14+8], rbx
loc_1A848:
mov eax, ebp
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_1A855:
mov rdi, r14
call dbuf_realloc
mov ebp, 0FFFFFFFFh
test eax, eax
jnz short loc_1A848
jmp short loc_1A82B
| long long dbuf_put(_QWORD *a1, long long a2, long long a3)
{
unsigned long long v5; // rsi
unsigned int v6; // ebp
v5 = a3 + a1[1];
if ( v5 <= a1[2] || (v6 = -1, !(unsigned int)dbuf_realloc((long long)a1, v5)) )
{
v6 = 0;
if ( a3 )
{
memcpy(a1[1] + *a1, a2, a3);
a1[1] += a3;
}
}
return v6;
}
| dbuf_put:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R15,RSI
MOV R14,RDI
MOV RSI,qword ptr [RDI + 0x8]
ADD RSI,RDX
CMP RSI,qword ptr [RDI + 0x10]
JA 0x0011a855
LAB_0011a82b:
XOR EBP,EBP
TEST RBX,RBX
JZ 0x0011a848
MOV RDI,qword ptr [R14]
ADD RDI,qword ptr [R14 + 0x8]
MOV RSI,R15
MOV RDX,RBX
CALL 0x0010e5a0
ADD qword ptr [R14 + 0x8],RBX
LAB_0011a848:
MOV EAX,EBP
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0011a855:
MOV RDI,R14
CALL 0x0011a761
MOV EBP,0xffffffff
TEST EAX,EAX
JNZ 0x0011a848
JMP 0x0011a82b
|
int8 dbuf_put(long *param_1,void *param_2,size_t param_3)
{
int iVar1;
if (((ulong)param_1[2] < param_1[1] + param_3) && (iVar1 = dbuf_realloc(param_1), iVar1 != 0)) {
return 0xffffffff;
}
if (param_3 != 0) {
memcpy((void *)(*param_1 + param_1[1]),param_2,param_3);
param_1[1] = param_1[1] + param_3;
}
return 0;
}
| |
22,356 | bitmap_get_first_set | eloqsql/mysys/my_bitmap.c | uint bitmap_get_first_set(const MY_BITMAP *map)
{
uint i;
my_bitmap_map *data_ptr= map->bitmap, *end= map->last_word_ptr;
DBUG_ASSERT(map->bitmap);
for (i=0; data_ptr < end; data_ptr++, i++)
if (*data_ptr)
goto found;
if (!(*data_ptr & ~map->last_word_mask))
return MY_BIT_NONE;
found:
return get_first_set(*data_ptr, i);
} | O0 | c | bitmap_get_first_set:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
jmp 0xeedb5
movl $0x0, -0x14(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jae 0xeedea
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0xeedd1
jmp 0xeee0c
jmp 0xeedd3
movq -0x20(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x20(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xeedbc
movq -0x20(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
xorl $-0x1, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
jne 0xeee0a
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xeee1d
jmp 0xeee0c
movq -0x20(%rbp), %rax
movl (%rax), %edi
movl -0x14(%rbp), %esi
callq 0xeee30
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| bitmap_get_first_set:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rbp+var_28], rax
jmp short $+2
loc_EEDB5:
mov [rbp+var_14], 0
loc_EEDBC:
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jnb short loc_EEDEA
mov rax, [rbp+var_20]
cmp dword ptr [rax], 0
jz short loc_EEDD1
jmp short loc_EEE0C
loc_EEDD1:
jmp short $+2
loc_EEDD3:
mov rax, [rbp+var_20]
add rax, 4
mov [rbp+var_20], rax
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp short loc_EEDBC
loc_EEDEA:
mov rax, [rbp+var_20]
mov eax, [rax]
mov rcx, [rbp+var_10]
mov ecx, [rcx+18h]
xor ecx, 0FFFFFFFFh
and eax, ecx
cmp eax, 0
jnz short loc_EEE0A
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_EEE1D
loc_EEE0A:
jmp short $+2
loc_EEE0C:
mov rax, [rbp+var_20]
mov edi, [rax]
mov esi, [rbp+var_14]
call get_first_set
mov [rbp+var_4], eax
loc_EEE1D:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long bitmap_get_first_set(long long a1)
{
_DWORD *v2; // [rsp+10h] [rbp-20h]
unsigned int v3; // [rsp+1Ch] [rbp-14h]
v2 = *(_DWORD **)a1;
v3 = 0;
while ( (unsigned long long)v2 < *(_QWORD *)(a1 + 8) )
{
if ( *v2 )
return (unsigned int)get_first_set((unsigned int)*v2, v3);
++v2;
++v3;
}
if ( (~*(_DWORD *)(a1 + 24) & *v2) == 0 )
return (unsigned int)-1;
return (unsigned int)get_first_set((unsigned int)*v2, v3);
}
| bitmap_get_first_set:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x28],RAX
JMP 0x001eedb5
LAB_001eedb5:
MOV dword ptr [RBP + -0x14],0x0
LAB_001eedbc:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JNC 0x001eedea
MOV RAX,qword ptr [RBP + -0x20]
CMP dword ptr [RAX],0x0
JZ 0x001eedd1
JMP 0x001eee0c
LAB_001eedd1:
JMP 0x001eedd3
LAB_001eedd3:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x4
MOV qword ptr [RBP + -0x20],RAX
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x001eedbc
LAB_001eedea:
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0x18]
XOR ECX,0xffffffff
AND EAX,ECX
CMP EAX,0x0
JNZ 0x001eee0a
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x001eee1d
LAB_001eee0a:
JMP 0x001eee0c
LAB_001eee0c:
MOV RAX,qword ptr [RBP + -0x20]
MOV EDI,dword ptr [RAX]
MOV ESI,dword ptr [RBP + -0x14]
CALL 0x001eee30
MOV dword ptr [RBP + -0x4],EAX
LAB_001eee1d:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 bitmap_get_first_set(int8 *param_1)
{
uint *local_28;
int local_1c;
int4 local_c;
local_28 = (uint *)*param_1;
local_1c = 0;
for (; local_28 < (uint *)param_1[1]; local_28 = local_28 + 1) {
if (*local_28 != 0) goto LAB_001eee0c;
local_1c = local_1c + 1;
}
if ((*local_28 & (*(uint *)(param_1 + 3) ^ 0xffffffff)) == 0) {
local_c = 0xffffffff;
}
else {
LAB_001eee0c:
local_c = get_first_set(*local_28,local_1c);
}
return local_c;
}
| |
22,357 | bitmap_get_first_set | eloqsql/mysys/my_bitmap.c | uint bitmap_get_first_set(const MY_BITMAP *map)
{
uint i;
my_bitmap_map *data_ptr= map->bitmap, *end= map->last_word_ptr;
DBUG_ASSERT(map->bitmap);
for (i=0; data_ptr < end; data_ptr++, i++)
if (*data_ptr)
goto found;
if (!(*data_ptr & ~map->last_word_mask))
return MY_BIT_NONE;
found:
return get_first_set(*data_ptr, i);
} | O3 | c | bitmap_get_first_set:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
jae 0x9d88a
xorl %eax, %eax
movl (%rcx), %esi
testl %esi, %esi
jne 0x9d895
addq $0x4, %rcx
incl %eax
cmpq %rdx, %rcx
jb 0x9d879
movl (%rcx), %esi
movl 0x18(%rdi), %ecx
notl %ecx
testl %ecx, %esi
je 0x9d8d0
movl %esi, -0x4(%rbp)
xorl %edx, %edx
movl $0x0, %ecx
testb %sil, %sil
jne 0x9d8b8
xorl %ecx, %ecx
leaq -0x3(%rbp), %rdi
movb (%rdi), %sil
addl $0x8, %ecx
incq %rdi
testb %sil, %sil
je 0x9d8aa
movzbl %sil, %esi
btl %edx, %esi
leal 0x1(%rdx), %edx
jae 0x9d8bc
shll $0x5, %eax
addl %eax, %ecx
leal (%rdx,%rcx), %eax
decl %eax
jmp 0x9d8d5
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
popq %rbp
retq
| bitmap_get_first_set:
push rbp
mov rbp, rsp
mov rcx, [rdi]
mov rdx, [rdi+8]
xor eax, eax
cmp rcx, rdx
jnb short loc_9D88A
xor eax, eax
loc_9D879:
mov esi, [rcx]
test esi, esi
jnz short loc_9D895
add rcx, 4
inc eax
cmp rcx, rdx
jb short loc_9D879
loc_9D88A:
mov esi, [rcx]
mov ecx, [rdi+18h]
not ecx
test esi, ecx
jz short loc_9D8D0
loc_9D895:
mov [rbp+var_4], esi
xor edx, edx
mov ecx, 0
test sil, sil
jnz short loc_9D8B8
xor ecx, ecx
lea rdi, [rbp+var_4+1]
loc_9D8AA:
mov sil, [rdi]
add ecx, 8
inc rdi
test sil, sil
jz short loc_9D8AA
loc_9D8B8:
movzx esi, sil
loc_9D8BC:
bt esi, edx
lea edx, [rdx+1]
jnb short loc_9D8BC
shl eax, 5
add ecx, eax
lea eax, [rdx+rcx]
dec eax
jmp short loc_9D8D5
loc_9D8D0:
mov eax, 0FFFFFFFFh
loc_9D8D5:
pop rbp
retn
| long long bitmap_get_first_set(long long a1)
{
int *v1; // rcx
unsigned long long v2; // rdx
int v3; // eax
int v4; // esi
unsigned int v5; // edx
int v6; // ecx
_BYTE *v7; // rdi
int v10; // [rsp+0h] [rbp-4h] BYREF
v1 = *(int **)a1;
v2 = *(_QWORD *)(a1 + 8);
v3 = 0;
if ( *(_QWORD *)a1 >= v2 )
{
LABEL_5:
v4 = *v1;
if ( (~*(_DWORD *)(a1 + 24) & *v1) == 0 )
return 0xFFFFFFFFLL;
}
else
{
v3 = 0;
while ( 1 )
{
v4 = *v1;
if ( *v1 )
break;
++v1;
++v3;
if ( (unsigned long long)v1 >= v2 )
goto LABEL_5;
}
}
v10 = v4;
v5 = 0;
v6 = 0;
if ( !(_BYTE)v4 )
{
v6 = 0;
v7 = (char *)&v10 + 1;
do
{
LOBYTE(v4) = *v7;
v6 += 8;
++v7;
}
while ( !(_BYTE)v4 );
}
v4 = (unsigned __int8)v4;
while ( !_bittest(&v4, v5++) )
;
return v5 + 32 * v3 + v6 - 1;
}
| bitmap_get_first_set:
PUSH RBP
MOV RBP,RSP
MOV RCX,qword ptr [RDI]
MOV RDX,qword ptr [RDI + 0x8]
XOR EAX,EAX
CMP RCX,RDX
JNC 0x0019d88a
XOR EAX,EAX
LAB_0019d879:
MOV ESI,dword ptr [RCX]
TEST ESI,ESI
JNZ 0x0019d895
ADD RCX,0x4
INC EAX
CMP RCX,RDX
JC 0x0019d879
LAB_0019d88a:
MOV ESI,dword ptr [RCX]
MOV ECX,dword ptr [RDI + 0x18]
NOT ECX
TEST ESI,ECX
JZ 0x0019d8d0
LAB_0019d895:
MOV dword ptr [RBP + -0x4],ESI
XOR EDX,EDX
MOV ECX,0x0
TEST SIL,SIL
JNZ 0x0019d8b8
XOR ECX,ECX
LEA RDI,[RBP + -0x3]
LAB_0019d8aa:
MOV SIL,byte ptr [RDI]
ADD ECX,0x8
INC RDI
TEST SIL,SIL
JZ 0x0019d8aa
LAB_0019d8b8:
MOVZX ESI,SIL
LAB_0019d8bc:
BT ESI,EDX
LEA EDX,[RDX + 0x1]
JNC 0x0019d8bc
SHL EAX,0x5
ADD ECX,EAX
LEA EAX,[RDX + RCX*0x1]
DEC EAX
JMP 0x0019d8d5
LAB_0019d8d0:
MOV EAX,0xffffffff
LAB_0019d8d5:
POP RBP
RET
|
int bitmap_get_first_set(int8 *param_1)
{
byte bVar1;
uint uVar2;
int iVar3;
int iVar4;
uint *puVar5;
uint uVar6;
uint uVar7;
byte *pbVar8;
byte abStack_b [3];
puVar5 = (uint *)*param_1;
iVar3 = 0;
if (puVar5 < (uint *)param_1[1]) {
iVar3 = 0;
do {
uVar7 = *puVar5;
if (uVar7 != 0) goto LAB_0019d895;
puVar5 = puVar5 + 1;
iVar3 = iVar3 + 1;
} while (puVar5 < (uint *)param_1[1]);
}
uVar7 = *puVar5;
if ((uVar7 & ~*(uint *)(param_1 + 3)) == 0) {
iVar3 = -1;
}
else {
LAB_0019d895:
uVar6 = 0;
iVar4 = 0;
if ((char)uVar7 == '\0') {
iVar4 = 0;
pbVar8 = abStack_b;
do {
bVar1 = *pbVar8;
uVar7 = (uint)bVar1;
iVar4 = iVar4 + 8;
pbVar8 = pbVar8 + 1;
} while (bVar1 == 0);
}
do {
uVar2 = uVar6 & 0x1f;
uVar6 = uVar6 + 1;
} while (((uVar7 & 0xff) >> uVar2 & 1) == 0);
iVar3 = uVar6 + iVar4 + iVar3 * 0x20 + -1;
}
return iVar3;
}
| |
22,358 | trnman_free_trn | eloqsql/storage/maria/trnman.c | static void trnman_free_trn(TRN *trn)
{
/*
union is to solve strict aliasing issue.
without it gcc 3.4.3 doesn't notice that updating *(void **)&tmp
modifies the value of tmp.
*/
union { TRN *trn; void *v; } tmp;
DBUG_ASSERT(trn != &dummy_transaction_object);
mysql_mutex_lock(&trn->state_lock);
trn->short_id= 0;
mysql_mutex_unlock(&trn->state_lock);
tmp.trn= pool;
do
{
/*
without this volatile cast gcc-3.4.4 moves the assignment
down after the loop at -O2
*/
*(TRN * volatile *)&(trn->next)= tmp.trn;
} while (!my_atomic_casptr((void **)(char*)&pool, &tmp.v, trn));
} | O0 | c | trnman_free_trn:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
jmp 0x7736e
movq -0x8(%rbp), %rdi
addq $0x10, %rdi
leaq 0xe108a(%rip), %rsi # 0x158407
movl $0x22d, %edx # imm = 0x22D
callq 0x77290
movq -0x8(%rbp), %rax
movw $0x0, 0xac(%rax)
movq -0x8(%rbp), %rdi
addq $0x10, %rdi
callq 0x77300
movq 0xc09d30(%rip), %rax # 0xc810d8
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x68(%rax)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
lock
cmpxchgq %rcx, 0xc09d07(%rip) # 0xc810d8
movq %rax, %rcx
sete %al
movb %al, -0x29(%rbp)
movq %rcx, -0x28(%rbp)
testb $0x1, %al
jne 0x773ea
movq -0x28(%rbp), %rax
movq %rax, -0x10(%rbp)
movb -0x29(%rbp), %al
andb $0x1, %al
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x773ac
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| trnman_free_trn:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
jmp short $+2
loc_7736E:
mov rdi, [rbp+var_8]
add rdi, 10h
lea rsi, aWorkspaceLlm4b_15; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 22Dh
call inline_mysql_mutex_lock_11
mov rax, [rbp+var_8]
mov word ptr [rax+0ACh], 0
mov rdi, [rbp+var_8]
add rdi, 10h
call inline_mysql_mutex_unlock_12
mov rax, cs:pool
mov [rbp+var_10], rax
loc_773AC:
mov rcx, [rbp+var_10]
mov rax, [rbp+var_8]
mov [rax+68h], rcx
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
mov rax, [rbp+var_10]
mov rcx, [rbp+var_18]
lock cmpxchg cs:pool, rcx
mov rcx, rax
setz al
mov [rbp+var_29], al
mov [rbp+var_28], rcx
test al, 1
jnz short loc_773EA
mov rax, [rbp+var_28]
mov [rbp+var_10], rax
loc_773EA:
mov al, [rbp+var_29]
and al, 1
mov [rbp+var_19], al
mov al, [rbp+var_19]
xor al, 0FFh
test al, 1
jnz short loc_773AC
add rsp, 30h
pop rbp
retn
| char trnman_free_trn(signed long long a1)
{
signed long long v1; // rax
signed long long v2; // rtt
char result; // al
bool v4; // [rsp+7h] [rbp-29h]
signed long long v5; // [rsp+20h] [rbp-10h]
inline_mysql_mutex_lock_11(
a1 + 16,
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c",
0x22Du);
*(_WORD *)(a1 + 172) = 0;
inline_mysql_mutex_unlock_12(a1 + 16);
v5 = pool;
do
{
*(_QWORD *)(a1 + 104) = v5;
v2 = v5;
v1 = _InterlockedCompareExchange64(&pool, a1, v5);
v4 = v2 == v1;
if ( v2 != v1 )
v5 = v1;
result = ~v4;
}
while ( !v4 );
return result;
}
| trnman_free_trn:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
JMP 0x0017736e
LAB_0017736e:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x10
LEA RSI,[0x258407]
MOV EDX,0x22d
CALL 0x00177290
MOV RAX,qword ptr [RBP + -0x8]
MOV word ptr [RAX + 0xac],0x0
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x10
CALL 0x00177300
MOV RAX,qword ptr [0x00d810d8]
MOV qword ptr [RBP + -0x10],RAX
LAB_001773ac:
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x68],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x18]
CMPXCHG.LOCK qword ptr [0x00d810d8],RCX
MOV RCX,RAX
SETZ AL
MOV byte ptr [RBP + -0x29],AL
MOV qword ptr [RBP + -0x28],RCX
TEST AL,0x1
JNZ 0x001773ea
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x10],RAX
LAB_001773ea:
MOV AL,byte ptr [RBP + -0x29]
AND AL,0x1
MOV byte ptr [RBP + -0x19],AL
MOV AL,byte ptr [RBP + -0x19]
XOR AL,0xff
TEST AL,0x1
JNZ 0x001773ac
ADD RSP,0x30
POP RBP
RET
|
void trnman_free_trn(long param_1)
{
long lVar1;
bool bVar2;
long local_18;
inline_mysql_mutex_lock
(param_1 + 0x10,"/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c",0x22d)
;
*(int2 *)(param_1 + 0xac) = 0;
inline_mysql_mutex_unlock(param_1 + 0x10);
local_18 = pool;
do {
*(long *)(param_1 + 0x68) = local_18;
LOCK();
bVar2 = local_18 != pool;
lVar1 = param_1;
if (bVar2) {
local_18 = pool;
lVar1 = pool;
}
pool = lVar1;
UNLOCK();
} while (bVar2);
return;
}
| |
22,359 | mysql_list_tables_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_list_tables_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_list_tables,
(parms->mysql, parms->wild),
parms->mysql,
MYSQL_RES *,
r_ptr)
} | O0 | c | mysql_list_tables_start_internal:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x51c70
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nop
| mysql_list_tables_start_internal:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rdi, [rax]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
call mysql_list_tables
mov [rbp+var_18], rax
mov rcx, [rbp+var_18]
mov rax, [rbp+var_20]
mov [rax+8], rcx
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
add rsp, 20h
pop rbp
retn
| long long mysql_list_tables_start_internal(long long a1)
{
long long result; // rax
long long v2; // [rsp+0h] [rbp-20h]
v2 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 1152LL) + 40LL);
*(_QWORD *)(v2 + 8) = mysql_list_tables(*(_QWORD *)a1, *(const char **)(a1 + 8));
result = v2;
*(_DWORD *)v2 = 0;
return result;
}
| mysql_list_tables_start_internal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x00151c70
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x0
ADD RSP,0x20
POP RBP
RET
|
void mysql_list_tables_start_internal(long *param_1)
{
int4 *puVar1;
int8 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_list_tables(*param_1,param_1[1]);
*(int8 *)(puVar1 + 2) = uVar2;
*puVar1 = 0;
return;
}
| |
22,360 | fill_quick_table | eloqsql/storage/myisam/mi_packrec.c | static void fill_quick_table(uint16 *table, uint bits, uint max_bits,
uint value)
{
uint16 *end;
DBUG_ENTER("fill_quick_table");
/*
Bits 1..8 of value represent the decoded byte value.
Bits 9..14 become the length of the Huffman code for this byte value.
Bit 16 flags a valid code (IS_CHAR).
*/
value|= (max_bits - bits) << 8 | IS_CHAR;
for (end= table + ((my_ptrdiff_t) 1 << bits); table < end; table++)
{
*table= (uint16) value;
}
DBUG_VOID_RETURN;
} | O0 | c | fill_quick_table:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movl -0x10(%rbp), %eax
subl -0xc(%rbp), %eax
shll $0x8, %eax
orl $0x8000, %eax # imm = 0x8000
orl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
movl $0x1, %edx
shlq %cl, %rdx
movq %rdx, %rcx
shlq %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0xbfec6
movl -0x14(%rbp), %eax
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, (%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
jmp 0xbfea1
jmp 0xbfec8
jmp 0xbfeca
popq %rbp
retq
nopl (%rax)
| fill_quick_table_0:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
mov [rbp+var_14], ecx
mov eax, [rbp+var_10]
sub eax, [rbp+var_C]
shl eax, 8
or eax, 8000h
or eax, [rbp+var_14]
mov [rbp+var_14], eax
mov rax, [rbp+var_8]
mov ecx, [rbp+var_C]
mov edx, 1
shl rdx, cl
mov rcx, rdx
shl rcx, 1
add rax, rcx
mov [rbp+var_20], rax
loc_BFEA1:
mov rax, [rbp+var_8]
cmp rax, [rbp+var_20]
jnb short loc_BFEC6
mov eax, [rbp+var_14]
mov cx, ax
mov rax, [rbp+var_8]
mov [rax], cx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
jmp short loc_BFEA1
loc_BFEC6:
jmp short $+2
loc_BFEC8:
jmp short $+2
loc_BFECA:
pop rbp
retn
| _WORD * fill_quick_table_0(_WORD *a1, __int16 a2, __int16 a3, __int16 a4)
{
_WORD *result; // rax
_WORD *i; // [rsp+18h] [rbp-8h]
for ( i = a1; ; ++i )
{
result = i;
if ( i >= &a1[1LL << a2] )
break;
*i = a4 | ((a3 - a2) << 8) | 0x8000;
}
return result;
}
| fill_quick_table:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
MOV dword ptr [RBP + -0x14],ECX
MOV EAX,dword ptr [RBP + -0x10]
SUB EAX,dword ptr [RBP + -0xc]
SHL EAX,0x8
OR EAX,0x8000
OR EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x14],EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0xc]
MOV EDX,0x1
SHL RDX,CL
MOV RCX,RDX
SHL RCX,0x1
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
LAB_001bfea1:
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x001bfec6
MOV EAX,dword ptr [RBP + -0x14]
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x8]
MOV word ptr [RAX],CX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001bfea1
LAB_001bfec6:
JMP 0x001bfec8
LAB_001bfec8:
JMP 0x001bfeca
LAB_001bfeca:
POP RBP
RET
|
void fill_quick_table(ushort *param_1,short param_2,short param_3,ushort param_4)
{
ushort *local_10;
for (local_10 = param_1; local_10 < param_1 + (1L << ((byte)param_2 & 0x3f));
local_10 = local_10 + 1) {
*local_10 = (param_3 - param_2) * 0x100 | 0x8000U | param_4;
}
return;
}
| |
22,361 | wsrep_override_error(THD*, unsigned int) | eloqsql/sql/wsrep_thd.h | static inline void wsrep_override_error(THD *thd, uint error)
{
DBUG_ASSERT(error != ER_ERROR_DURING_COMMIT);
Diagnostics_area *da= thd->get_stmt_da();
if (da->is_ok() ||
da->is_eof() ||
!da->is_set() ||
(da->is_error() &&
da->sql_errno() != error &&
da->sql_errno() != ER_ERROR_DURING_COMMIT &&
da->sql_errno() != ER_LOCK_DEADLOCK))
{
da->reset_diagnostics_area();
my_error(error, MYF(0));
}
} | O0 | c | wsrep_override_error(THD*, unsigned int):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
jmp 0xd1c2f1
movq -0x8(%rbp), %rdi
callq 0x8539a0
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0x8539c0
testb $0x1, %al
jne 0xd1c364
movq -0x18(%rbp), %rdi
callq 0x90fce0
testb $0x1, %al
jne 0xd1c364
movq -0x18(%rbp), %rdi
callq 0x8a0480
testb $0x1, %al
jne 0xd1c327
jmp 0xd1c364
movq -0x18(%rbp), %rdi
callq 0x856bf0
testb $0x1, %al
jne 0xd1c336
jmp 0xd1c37b
movq -0x18(%rbp), %rdi
callq 0x853f50
cmpl -0xc(%rbp), %eax
je 0xd1c37b
movq -0x18(%rbp), %rdi
callq 0x853f50
cmpl $0x49c, %eax # imm = 0x49C
je 0xd1c37b
movq -0x18(%rbp), %rdi
callq 0x853f50
cmpl $0x4bd, %eax # imm = 0x4BD
je 0xd1c37b
movq -0x18(%rbp), %rdi
callq 0x998780
movl -0xc(%rbp), %edi
xorl %eax, %eax
movl %eax, %esi
movb $0x0, %al
callq 0x131c1e0
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZL20wsrep_override_errorP3THDj_2:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
jmp short $+2
loc_D1C2F1:
mov rdi, [rbp+var_8]; this
call _ZN3THD11get_stmt_daEv; THD::get_stmt_da(void)
mov [rbp+var_18], rax
mov rdi, [rbp+var_18]; this
call _ZNK16Diagnostics_area5is_okEv; Diagnostics_area::is_ok(void)
test al, 1
jnz short loc_D1C364
mov rdi, [rbp+var_18]; this
call _ZNK16Diagnostics_area6is_eofEv; Diagnostics_area::is_eof(void)
test al, 1
jnz short loc_D1C364
mov rdi, [rbp+var_18]; this
call _ZNK16Diagnostics_area6is_setEv; Diagnostics_area::is_set(void)
test al, 1
jnz short loc_D1C327
jmp short loc_D1C364
loc_D1C327:
mov rdi, [rbp+var_18]; this
call _ZNK16Diagnostics_area8is_errorEv; Diagnostics_area::is_error(void)
test al, 1
jnz short loc_D1C336
jmp short loc_D1C37B
loc_D1C336:
mov rdi, [rbp+var_18]; this
call _ZNK16Diagnostics_area9sql_errnoEv; Diagnostics_area::sql_errno(void)
cmp eax, [rbp+var_C]
jz short loc_D1C37B
mov rdi, [rbp+var_18]; this
call _ZNK16Diagnostics_area9sql_errnoEv; Diagnostics_area::sql_errno(void)
cmp eax, 49Ch
jz short loc_D1C37B
mov rdi, [rbp+var_18]; this
call _ZNK16Diagnostics_area9sql_errnoEv; Diagnostics_area::sql_errno(void)
cmp eax, 4BDh
jz short loc_D1C37B
loc_D1C364:
mov rdi, [rbp+var_18]; this
call _ZN16Diagnostics_area22reset_diagnostics_areaEv; Diagnostics_area::reset_diagnostics_area(void)
mov edi, [rbp+var_C]
xor eax, eax
mov esi, eax
mov al, 0
call my_error
loc_D1C37B:
add rsp, 20h
pop rbp
retn
| char wsrep_override_error(THD *a1, int a2)
{
int v2; // eax
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
Diagnostics_area *stmt_da; // [rsp+8h] [rbp-18h]
stmt_da = (Diagnostics_area *)THD::get_stmt_da(a1);
if ( Diagnostics_area::is_ok(stmt_da)
|| Diagnostics_area::is_eof(stmt_da)
|| !Diagnostics_area::is_set(stmt_da)
|| (LOBYTE(v2) = Diagnostics_area::is_error(stmt_da), (v2 & 1) != 0)
&& (v2 = Diagnostics_area::sql_errno(stmt_da), v2 != a2)
&& (v2 = Diagnostics_area::sql_errno(stmt_da), v2 != 1180)
&& (v2 = Diagnostics_area::sql_errno(stmt_da), v2 != 1213) )
{
Diagnostics_area::reset_diagnostics_area(stmt_da);
LOBYTE(v2) = my_error(a2, 0, v3, v4, v5, v6);
}
return v2;
}
| lex_string_cmp:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0xc0]
MOV RAX,qword ptr [RAX + 0x40]
MOV RDI,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RCX]
MOV RCX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RCX]
CALL RAX
CMP EAX,0x0
SETNZ AL
AND AL,0x1
ADD RSP,0x20
POP RBP
RET
|
/* lex_string_cmp(charset_info_st const*, st_mysql_const_lex_string const*,
st_mysql_const_lex_string const*) */
bool lex_string_cmp(charset_info_st *param_1,st_mysql_const_lex_string *param_2,
st_mysql_const_lex_string *param_3)
{
int iVar1;
iVar1 = (**(code **)(*(long *)(param_1 + 0xc0) + 0x40))
(param_1,*(int8 *)param_2,*(int8 *)param_3);
return iVar1 != 0;
}
| |
22,362 | mysql_real_query_start | eloqsql/libmariadb/libmariadb/mariadb_async.c | int STDCALL
mysql_real_query_start(int *ret, MYSQL *mysql, const char *stmt_str, unsigned long length)
{
int res;
struct mysql_async_context *b;
struct mysql_real_query_params parms;
b= mysql->options.extension->async_context;
{
WIN_SET_NONBLOCKING(mysql)
parms.mysql= mysql;
parms.stmt_str= stmt_str;
parms.length= length;
}
b->active= 1;
res= my_context_spawn(&b->async_context, mysql_real_query_start_internal, &parms);
b->active= b->suspended= 0;
if (res > 0)
{
/* Suspended. */
b->suspended= 1;
return b->events_to_wait_for;
}
if (res < 0)
{
set_mariadb_error((mysql), CR_OUT_OF_MEMORY, unknown_sqlstate);
*ret= 1;
}
else
*ret= b->ret_result.r_int;
return 0;
} | O3 | c | mysql_real_query_start:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x480(%rsi), %rax
movq 0x28(%rax), %r15
leaq -0x30(%rbp), %rax
movq %rsi, (%rax)
movq %rdx, 0x8(%rax)
movq %rcx, 0x10(%rax)
movb $0x1, 0x14(%r15)
leaq 0x38(%r15), %rdi
leaq 0x8c(%rip), %rsi # 0x2bba9
movq %rax, %rdx
callq 0x305f0
movw $0x0, 0x14(%r15)
testl %eax, %eax
jle 0x2bb3a
movb $0x1, 0x15(%r15)
movl (%r15), %eax
jmp 0x2bb9e
js 0x2bb42
movl 0x8(%r15), %eax
jmp 0x2bb9a
movl $0x7d8, 0x90(%r14) # imm = 0x7D8
leaq 0x297(%r14), %rdi
leaq 0x21175(%rip), %rax # 0x4ccd0
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13230
xorl %r15d, %r15d
movb %r15b, 0x29c(%r14)
leaq 0x97(%r14), %rdi
leaq 0x21160(%rip), %rax # 0x4cce0
movq 0x40(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13230
movb %r15b, 0x296(%r14)
movl $0x1, %eax
movl %eax, (%rbx)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| mysql_real_query_start:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 18h
mov r14, rsi
mov rbx, rdi
mov rax, [rsi+480h]
mov r15, [rax+28h]
lea rax, [rbp+var_30]
mov [rax], rsi
mov [rax+8], rdx
mov [rax+10h], rcx
mov byte ptr [r15+14h], 1
lea rdi, [r15+38h]
lea rsi, mysql_real_query_start_internal
mov rdx, rax
call my_context_spawn
mov word ptr [r15+14h], 0
test eax, eax
jle short loc_2BB3A
mov byte ptr [r15+15h], 1
mov eax, [r15]
jmp short loc_2BB9E
loc_2BB3A:
js short loc_2BB42
mov eax, [r15+8]
jmp short loc_2BB9A
loc_2BB42:
mov dword ptr [r14+90h], 7D8h
lea rdi, [r14+297h]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
xor r15d, r15d
mov [r14+29Ch], r15b
lea rdi, [r14+97h]
lea rax, client_errors
mov rsi, [rax+40h]
mov edx, 1FFh
call _strncpy
mov [r14+296h], r15b
mov eax, 1
loc_2BB9A:
mov [rbx], eax
xor eax, eax
loc_2BB9E:
add rsp, 18h
pop rbx
pop r14
pop r15
pop rbp
retn
| long long mysql_real_query_start(int *a1, long long a2, long long a3, long long a4)
{
unsigned int *v4; // r15
int v5; // eax
int v7; // eax
_QWORD v8[6]; // [rsp+0h] [rbp-30h] BYREF
v4 = *(unsigned int **)(*(_QWORD *)(a2 + 1152) + 40LL);
v8[0] = a2;
v8[1] = a3;
v8[2] = a4;
*((_BYTE *)v4 + 20) = 1;
v5 = my_context_spawn(v4 + 14, mysql_real_query_start_internal, v8);
*((_WORD *)v4 + 10) = 0;
if ( v5 <= 0 )
{
if ( v5 < 0 )
{
*(_DWORD *)(a2 + 144) = 2008;
strncpy(a2 + 663, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a2 + 668) = 0;
strncpy(a2 + 151, client_errors[8], 511LL);
*(_BYTE *)(a2 + 662) = 0;
v7 = 1;
}
else
{
v7 = v4[2];
}
*a1 = v7;
return 0LL;
}
else
{
*((_BYTE *)v4 + 21) = 1;
return *v4;
}
}
| mysql_real_query_start:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x480]
MOV R15,qword ptr [RAX + 0x28]
LEA RAX,[RBP + -0x30]
MOV qword ptr [RAX],RSI
MOV qword ptr [RAX + 0x8],RDX
MOV qword ptr [RAX + 0x10],RCX
MOV byte ptr [R15 + 0x14],0x1
LEA RDI,[R15 + 0x38]
LEA RSI,[0x12bba9]
MOV RDX,RAX
CALL 0x001305f0
MOV word ptr [R15 + 0x14],0x0
TEST EAX,EAX
JLE 0x0012bb3a
MOV byte ptr [R15 + 0x15],0x1
MOV EAX,dword ptr [R15]
JMP 0x0012bb9e
LAB_0012bb3a:
JS 0x0012bb42
MOV EAX,dword ptr [R15 + 0x8]
JMP 0x0012bb9a
LAB_0012bb42:
MOV dword ptr [R14 + 0x90],0x7d8
LEA RDI,[R14 + 0x297]
LEA RAX,[0x14ccd0]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113230
XOR R15D,R15D
MOV byte ptr [R14 + 0x29c],R15B
LEA RDI,[R14 + 0x97]
LEA RAX,[0x14cce0]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1ff
CALL 0x00113230
MOV byte ptr [R14 + 0x296],R15B
MOV EAX,0x1
LAB_0012bb9a:
MOV dword ptr [RBX],EAX
XOR EAX,EAX
LAB_0012bb9e:
ADD RSP,0x18
POP RBX
POP R14
POP R15
POP RBP
RET
|
int4
mysql_real_query_start(int4 *param_1,long param_2,int8 param_3,int8 param_4)
{
int4 *puVar1;
int iVar2;
int4 uVar3;
long local_38;
int8 local_30;
int8 local_28;
puVar1 = *(int4 **)(*(long *)(param_2 + 0x480) + 0x28);
*(int1 *)(puVar1 + 5) = 1;
local_38 = param_2;
local_30 = param_3;
local_28 = param_4;
iVar2 = my_context_spawn(puVar1 + 0xe,mysql_real_query_start_internal,&local_38);
*(int2 *)(puVar1 + 5) = 0;
if (iVar2 < 1) {
if (iVar2 < 0) {
*(int4 *)(param_2 + 0x90) = 0x7d8;
strncpy((char *)(param_2 + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_2 + 0x29c) = 0;
strncpy((char *)(param_2 + 0x97),PTR_s_Client_run_out_of_memory_0014cd20,0x1ff);
*(int1 *)(param_2 + 0x296) = 0;
uVar3 = 1;
}
else {
uVar3 = puVar1[2];
}
*param_1 = uVar3;
uVar3 = 0;
}
else {
*(int1 *)((long)puVar1 + 0x15) = 1;
uVar3 = *puVar1;
}
return uVar3;
}
| |
22,363 | map_to_g2 | corpus-core[P]colibri-stateless/build_O2/_deps/blst-src/src/map_to_g2.c | static void map_to_g2(POINTonE2 *out, const vec384x u, const vec384x v)
{
POINTonE2 p;
map_to_isogenous_E2(&p, u);
if (v != NULL) {
map_to_isogenous_E2(out, v); /* borrow |out| */
POINTonE2_dadd(&p, &p, out, Aprime_E2);
}
isogeny_map_to_E2(&p, &p); /* sprinkle isogenous powder */
clear_cofactor(out, &p);
} | O2 | c | map_to_g2:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4f8, %rsp # imm = 0x4F8
movq %rdx, %r14
movq %rdi, -0x30(%rbp)
leaq -0x1c0(%rbp), %r15
movq %r15, %rdi
callq 0x5c4f3
testq %r14, %r14
je 0x55717
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5c4f3
leaq 0x2b5fb(%rip), %rcx # 0x80d00
leaq -0x1c0(%rbp), %rdi
movq %rdi, %rsi
movq %rbx, %rdx
callq 0x540e7
movl $0xc0, %r13d
leaq -0x3a0(%rbp), %r14
leaq (%r14,%r13), %rbx
movq %rbx, -0x38(%rbp)
leaq (%r15,%r13), %rsi
movq %rsi, -0x40(%rbp)
movq %rbx, %rdi
callq 0x5ad98
leaq -0x340(%rbp), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x5ad98
movq %r14, %rdi
movq %r14, %r15
movq %rbx, %rsi
movq %r12, %rdx
callq 0x5ad73
leaq 0x2b95a(%rip), %r14 # 0x810c0
leaq -0x4c0(%rbp), %r12
pushq $0x3
popq %rcx
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x5cac8
movl $0x120, %eax # imm = 0x120
addq %rax, %r14
leaq -0x280(%rbp), %r15
movq %r15, %rdi
leaq -0x1c0(%rbp), %rbx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x5ad73
addq %r12, %r13
movq %r15, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x5acb9
pushq $0x2
popq %rcx
movq %r15, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %rcx, %r15
callq 0x5cb1d
leaq 0x2ba72(%rip), %rsi # 0x81240
movq %r12, %rdi
leaq -0x340(%rbp), %rdx
movq %r15, %rcx
callq 0x5cac8
leaq -0x460(%rbp), %rdx
leaq -0xa0(%rbp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5acb9
pushq $0x1
popq %rcx
movq %r15, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x5cb1d
movq %r15, %rdi
movq %r15, %rsi
movq -0x38(%rbp), %rdx
callq 0x5ad73
leaq 0x2bae0(%rip), %r14 # 0x81300
movq %r12, %rdi
movq %r14, %rsi
leaq -0x3a0(%rbp), %rdx
pushq $0x3
popq %rcx
callq 0x5cac8
movl $0x120, %eax # imm = 0x120
addq %rax, %r14
movq -0x30(%rbp), %r12
leaq -0x220(%rbp), %rbx
movq %rbx, %rdi
leaq -0x1c0(%rbp), %r15
movq %r15, %rsi
movq %r14, %rdx
callq 0x5ad73
movq %rbx, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x5acb9
movq %rbx, %rdi
movq %r15, %rsi
leaq -0x4c0(%rbp), %r14
movq %r14, %rdx
pushq $0x2
popq %rcx
callq 0x5cb1d
leaq -0x160(%rbp), %r15
movq %rbx, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x5ad73
leaq 0x2bbe1(%rip), %rsi # 0x81480
movq %r14, %rdi
leaq -0x3a0(%rbp), %rdx
pushq $0x3
popq %rcx
callq 0x5cac8
leaq -0x520(%rbp), %r14
movq %r14, %rdi
leaq -0x1c0(%rbp), %rbx
movq %rbx, %rsi
movq %r13, %rdx
callq 0x5acb9
movq %r14, %rdi
movq %rbx, %rsi
leaq -0x4c0(%rbp), %rdx
pushq $0x2
popq %rcx
callq 0x5cb1d
movq -0x38(%rbp), %rbx
movq %rbx, %rdi
movq %rbx, %rsi
movq -0x40(%rbp), %r13
movq %r13, %rdx
callq 0x5ad73
movq %r14, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x5ad73
movq %r13, %rdi
leaq -0xa0(%rbp), %rsi
movq %r14, %rdx
callq 0x5ad73
leaq -0x1c0(%rbp), %rbx
movq %rbx, %rdi
leaq -0x280(%rbp), %rsi
movq %r14, %rdx
callq 0x5ad73
movq %rbx, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x5ad73
movq %r15, %rdi
movq %r13, %rsi
callq 0x5ad98
movq %r15, %rdi
movq %r15, %rsi
leaq -0xa0(%rbp), %rdx
callq 0x5ad73
movq %r15, %rdi
movq %r15, %rsi
leaq -0x220(%rbp), %rdx
callq 0x5ad73
movq %r12, %rdi
movq %rbx, %rsi
callq 0x548e8
movq %r12, %rdi
movq %r12, %rsi
callq 0x5c3e8
movq %r12, %rdi
movq %r12, %rsi
callq 0x5c3e8
leaq -0x3a0(%rbp), %r14
movl $0x120, %edx # imm = 0x120
movq %r14, %rdi
movq %rbx, %rsi
callq 0x51055
movq %r14, %rdi
pushq $0x1
popq %rsi
callq 0x5343c
leaq -0x4c0(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x5c3e8
movq %r12, %rdi
movq %r12, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x540e7
movq %r12, %rdi
movq %r12, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x540e7
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5cb6e
movq %r14, %rdi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x540e7
movq %r14, %rdi
movq %r14, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x540e7
movq %r15, %rdi
movq %r14, %rsi
callq 0x5cb6e
movq %r12, %rdi
movq %r12, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x540e7
addq $0x4f8, %rsp # imm = 0x4F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| map_to_g2:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 4F8h
mov r14, rdx
mov [rbp+var_30], rdi
lea r15, [rbp+var_1C0]
mov rdi, r15
call map_to_isogenous_E2
test r14, r14
jz short loc_55717
mov rbx, [rbp+var_30]
mov rdi, rbx
mov rsi, r14
call map_to_isogenous_E2
lea rcx, Aprime_E2
lea rdi, [rbp+var_1C0]
mov rsi, rdi
mov rdx, rbx
call POINTonE2_dadd
loc_55717:
mov r13d, 0C0h
lea r14, [rbp+var_3A0]
lea rbx, [r14+r13]
mov [rbp+var_38], rbx
lea rsi, [r15+r13]
mov [rbp+var_40], rsi
mov rdi, rbx
call sqr_fp2
lea r12, [rbp+var_340]
mov rdi, r12
mov rsi, rbx
call sqr_fp2
mov rdi, r14
mov r15, r14
mov rsi, rbx
mov rdx, r12
call mul_fp2
lea r14, isogeny_map_to_E2_isogeny_map_x_num
lea r12, [rbp+var_4C0]
push 3
pop rcx
mov rdi, r12
mov rsi, r14
mov rdx, r15
call map_fp2_times_Zz
mov eax, 120h
add r14, rax
lea r15, [rbp+var_280]
mov rdi, r15
lea rbx, [rbp+var_1C0]
mov rsi, rbx
mov rdx, r14
call mul_fp2
add r13, r12
mov rdi, r15
mov rsi, r15
mov rdx, r13
call add_fp2
push 2
pop rcx
mov rdi, r15
mov rsi, rbx
mov rdx, r12
mov r15, rcx
call map_fp2
lea rsi, isogeny_map_to_E2_isogeny_map_x_den
mov rdi, r12
lea rdx, [rbp+var_340]
mov rcx, r15
call map_fp2_times_Zz
lea rdx, [rbp+var_460]
lea r15, [rbp+var_A0]
mov rdi, r15
mov rsi, rbx
call add_fp2
push 1
pop rcx
mov rdi, r15
mov rsi, rbx
mov rdx, r12
call map_fp2
mov rdi, r15
mov rsi, r15
mov rdx, [rbp+var_38]
call mul_fp2
lea r14, isogeny_map_to_E2_isogeny_map_y_num
mov rdi, r12
mov rsi, r14
lea rdx, [rbp+var_3A0]
push 3
pop rcx
call map_fp2_times_Zz
mov eax, 120h
add r14, rax
mov r12, [rbp+var_30]
lea rbx, [rbp+var_220]
mov rdi, rbx
lea r15, [rbp+var_1C0]
mov rsi, r15
mov rdx, r14
call mul_fp2
mov rdi, rbx
mov rsi, rbx
mov rdx, r13
call add_fp2
mov rdi, rbx
mov rsi, r15
lea r14, [rbp+var_4C0]
mov rdx, r14
push 2
pop rcx
call map_fp2
lea r15, [rbp+var_160]
mov rdi, rbx
mov rsi, rbx
mov rdx, r15
call mul_fp2
lea rsi, isogeny_map_to_E2_isogeny_map_y_den
mov rdi, r14
lea rdx, [rbp+var_3A0]
push 3
pop rcx
call map_fp2_times_Zz
lea r14, [rbp+var_520]
mov rdi, r14
lea rbx, [rbp+var_1C0]
mov rsi, rbx
mov rdx, r13
call add_fp2
mov rdi, r14
mov rsi, rbx
lea rdx, [rbp+var_4C0]
push 2
pop rcx
call map_fp2
mov rbx, [rbp+var_38]
mov rdi, rbx
mov rsi, rbx
mov r13, [rbp+var_40]
mov rdx, r13
call mul_fp2
mov rdi, r14
mov rsi, r14
mov rdx, rbx
call mul_fp2
mov rdi, r13
lea rsi, [rbp+var_A0]
mov rdx, r14
call mul_fp2
lea rbx, [rbp+var_1C0]
mov rdi, rbx
lea rsi, [rbp+var_280]
mov rdx, r14
call mul_fp2
mov rdi, rbx
mov rsi, rbx
mov rdx, r13
call mul_fp2
mov rdi, r15
mov rsi, r13
call sqr_fp2
mov rdi, r15
mov rsi, r15
lea rdx, [rbp+var_A0]
call mul_fp2
mov rdi, r15
mov rsi, r15
lea rdx, [rbp+var_220]
call mul_fp2
mov rdi, r12
mov rsi, rbx
call POINTonE2_double
mov rdi, r12
mov rsi, r12
call psi
mov rdi, r12
mov rsi, r12
call psi
lea r14, [rbp+var_3A0]
mov edx, 120h
mov rdi, r14
mov rsi, rbx
call vec_copy
mov rdi, r14
push 1
pop rsi
call POINTonE2_cneg
lea r15, [rbp+var_4C0]
mov rdi, r15
mov rsi, r14
call psi
mov rdi, r12
mov rsi, r12
mov rdx, r14
xor ecx, ecx
call POINTonE2_dadd
mov rdi, r12
mov rsi, r12
mov rdx, r15
xor ecx, ecx
call POINTonE2_dadd
mov rdi, r14
mov rsi, rbx
call POINTonE2_times_minus_z
mov rdi, r14
mov rsi, r14
mov rdx, rbx
xor ecx, ecx
call POINTonE2_dadd
mov rdi, r14
mov rsi, r14
mov rdx, r15
xor ecx, ecx
call POINTonE2_dadd
mov rdi, r15
mov rsi, r14
call POINTonE2_times_minus_z
mov rdi, r12
mov rsi, r12
mov rdx, r15
xor ecx, ecx
call POINTonE2_dadd
add rsp, 4F8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long map_to_g2(long long a1, long long a2, long long a3)
{
long long v4; // rbx
long long v5; // r12
_BYTE *v6; // rbx
_BYTE *v7; // r13
_BYTE v9[96]; // [rsp+0h] [rbp-520h] BYREF
_BYTE v10[96]; // [rsp+60h] [rbp-4C0h] BYREF
char v11[96]; // [rsp+C0h] [rbp-460h] BYREF
_BYTE v12[96]; // [rsp+120h] [rbp-400h] BYREF
_BYTE v13[96]; // [rsp+180h] [rbp-3A0h] BYREF
_BYTE v14[96]; // [rsp+1E0h] [rbp-340h] BYREF
_BYTE v15[96]; // [rsp+240h] [rbp-2E0h] BYREF
_BYTE v16[96]; // [rsp+2A0h] [rbp-280h] BYREF
_BYTE v17[96]; // [rsp+300h] [rbp-220h] BYREF
_BYTE v18[96]; // [rsp+360h] [rbp-1C0h] BYREF
_BYTE v19[96]; // [rsp+3C0h] [rbp-160h] BYREF
_BYTE v20[96]; // [rsp+420h] [rbp-100h] BYREF
_BYTE v21[96]; // [rsp+480h] [rbp-A0h] BYREF
_BYTE *v22; // [rsp+4E0h] [rbp-40h]
_BYTE *v23; // [rsp+4E8h] [rbp-38h]
long long v24; // [rsp+4F0h] [rbp-30h]
v24 = a1;
map_to_isogenous_E2(v18);
if ( a3 )
{
v4 = v24;
map_to_isogenous_E2(v24);
POINTonE2_dadd((long long)v18, (long long)v18, v4, (long long)&Aprime_E2);
}
v23 = v15;
v22 = v20;
sqr_fp2(v15, v20);
sqr_fp2(v14, v15);
mul_fp2(v13, v15, v14);
map_fp2_times_Zz(v10, &isogeny_map_to_E2_isogeny_map_x_num, v13, 3LL);
mul_fp2(v16, v18, (char *)&isogeny_map_to_E2_isogeny_map_x_num + 288);
add_fp2(v16, v16, v12);
map_fp2(v16, v18, v10);
map_fp2_times_Zz(v10, &isogeny_map_to_E2_isogeny_map_x_den, v14, 2LL);
add_fp2(v21, v18, v11);
map_fp2(v21, v18, v10);
mul_fp2(v21, v21, v23);
map_fp2_times_Zz(v10, &isogeny_map_to_E2_isogeny_map_y_num, v13, 3LL);
v5 = v24;
mul_fp2(v17, v18, (char *)&isogeny_map_to_E2_isogeny_map_y_num + 288);
add_fp2(v17, v17, v12);
map_fp2(v17, v18, v10);
mul_fp2(v17, v17, v19);
map_fp2_times_Zz(v10, &isogeny_map_to_E2_isogeny_map_y_den, v13, 3LL);
add_fp2(v9, v18, v12);
map_fp2(v9, v18, v10);
v6 = v23;
v7 = v22;
mul_fp2(v23, v23, v22);
mul_fp2(v9, v9, v6);
mul_fp2(v7, v21, v9);
mul_fp2(v18, v16, v9);
mul_fp2(v18, v18, v7);
sqr_fp2(v19, v7);
mul_fp2(v19, v19, v21);
mul_fp2(v19, v19, v17);
POINTonE2_double(v5, (long long)v18);
psi(v5, v5);
psi(v5, v5);
vec_copy((long long)v13, (long long)v18, 0x120uLL);
POINTonE2_cneg((long long)v13, 1LL);
psi(v10, v13);
POINTonE2_dadd(v5, v5, (long long)v13, 0LL);
POINTonE2_dadd(v5, v5, (long long)v10, 0LL);
POINTonE2_times_minus_z(v13, v18);
POINTonE2_dadd((long long)v13, (long long)v13, (long long)v18, 0LL);
POINTonE2_dadd((long long)v13, (long long)v13, (long long)v10, 0LL);
POINTonE2_times_minus_z(v10, v13);
return POINTonE2_dadd(v5, v5, (long long)v10, 0LL);
}
| map_to_g2:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x4f8
MOV R14,RDX
MOV qword ptr [RBP + -0x30],RDI
LEA R15,[RBP + -0x1c0]
MOV RDI,R15
CALL 0x0015c4f3
TEST R14,R14
JZ 0x00155717
MOV RBX,qword ptr [RBP + -0x30]
MOV RDI,RBX
MOV RSI,R14
CALL 0x0015c4f3
LEA RCX,[0x180d00]
LEA RDI,[RBP + -0x1c0]
MOV RSI,RDI
MOV RDX,RBX
CALL 0x001540e7
LAB_00155717:
MOV R13D,0xc0
LEA R14,[RBP + -0x3a0]
LEA RBX,[R14 + R13*0x1]
MOV qword ptr [RBP + -0x38],RBX
LEA RSI,[R15 + R13*0x1]
MOV qword ptr [RBP + -0x40],RSI
MOV RDI,RBX
CALL 0x0015ad98
LEA R12,[RBP + -0x340]
MOV RDI,R12
MOV RSI,RBX
CALL 0x0015ad98
MOV RDI,R14
MOV R15,R14
MOV RSI,RBX
MOV RDX,R12
CALL 0x0015ad73
LEA R14,[0x1810c0]
LEA R12,[RBP + -0x4c0]
PUSH 0x3
POP RCX
MOV RDI,R12
MOV RSI,R14
MOV RDX,R15
CALL 0x0015cac8
MOV EAX,0x120
ADD R14,RAX
LEA R15,[RBP + -0x280]
MOV RDI,R15
LEA RBX,[RBP + -0x1c0]
MOV RSI,RBX
MOV RDX,R14
CALL 0x0015ad73
ADD R13,R12
MOV RDI,R15
MOV RSI,R15
MOV RDX,R13
CALL 0x0015acb9
PUSH 0x2
POP RCX
MOV RDI,R15
MOV RSI,RBX
MOV RDX,R12
MOV R15,RCX
CALL 0x0015cb1d
LEA RSI,[0x181240]
MOV RDI,R12
LEA RDX,[RBP + -0x340]
MOV RCX,R15
CALL 0x0015cac8
LEA RDX,[RBP + -0x460]
LEA R15,[RBP + -0xa0]
MOV RDI,R15
MOV RSI,RBX
CALL 0x0015acb9
PUSH 0x1
POP RCX
MOV RDI,R15
MOV RSI,RBX
MOV RDX,R12
CALL 0x0015cb1d
MOV RDI,R15
MOV RSI,R15
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x0015ad73
LEA R14,[0x181300]
MOV RDI,R12
MOV RSI,R14
LEA RDX,[RBP + -0x3a0]
PUSH 0x3
POP RCX
CALL 0x0015cac8
MOV EAX,0x120
ADD R14,RAX
MOV R12,qword ptr [RBP + -0x30]
LEA RBX,[RBP + -0x220]
MOV RDI,RBX
LEA R15,[RBP + -0x1c0]
MOV RSI,R15
MOV RDX,R14
CALL 0x0015ad73
MOV RDI,RBX
MOV RSI,RBX
MOV RDX,R13
CALL 0x0015acb9
MOV RDI,RBX
MOV RSI,R15
LEA R14,[RBP + -0x4c0]
MOV RDX,R14
PUSH 0x2
POP RCX
CALL 0x0015cb1d
LEA R15,[RBP + -0x160]
MOV RDI,RBX
MOV RSI,RBX
MOV RDX,R15
CALL 0x0015ad73
LEA RSI,[0x181480]
MOV RDI,R14
LEA RDX,[RBP + -0x3a0]
PUSH 0x3
POP RCX
CALL 0x0015cac8
LEA R14,[RBP + -0x520]
MOV RDI,R14
LEA RBX,[RBP + -0x1c0]
MOV RSI,RBX
MOV RDX,R13
CALL 0x0015acb9
MOV RDI,R14
MOV RSI,RBX
LEA RDX,[RBP + -0x4c0]
PUSH 0x2
POP RCX
CALL 0x0015cb1d
MOV RBX,qword ptr [RBP + -0x38]
MOV RDI,RBX
MOV RSI,RBX
MOV R13,qword ptr [RBP + -0x40]
MOV RDX,R13
CALL 0x0015ad73
MOV RDI,R14
MOV RSI,R14
MOV RDX,RBX
CALL 0x0015ad73
MOV RDI,R13
LEA RSI,[RBP + -0xa0]
MOV RDX,R14
CALL 0x0015ad73
LEA RBX,[RBP + -0x1c0]
MOV RDI,RBX
LEA RSI,[RBP + -0x280]
MOV RDX,R14
CALL 0x0015ad73
MOV RDI,RBX
MOV RSI,RBX
MOV RDX,R13
CALL 0x0015ad73
MOV RDI,R15
MOV RSI,R13
CALL 0x0015ad98
MOV RDI,R15
MOV RSI,R15
LEA RDX,[RBP + -0xa0]
CALL 0x0015ad73
MOV RDI,R15
MOV RSI,R15
LEA RDX,[RBP + -0x220]
CALL 0x0015ad73
MOV RDI,R12
MOV RSI,RBX
CALL 0x001548e8
MOV RDI,R12
MOV RSI,R12
CALL 0x0015c3e8
MOV RDI,R12
MOV RSI,R12
CALL 0x0015c3e8
LEA R14,[RBP + -0x3a0]
MOV EDX,0x120
MOV RDI,R14
MOV RSI,RBX
CALL 0x00151055
MOV RDI,R14
PUSH 0x1
POP RSI
CALL 0x0015343c
LEA R15,[RBP + -0x4c0]
MOV RDI,R15
MOV RSI,R14
CALL 0x0015c3e8
MOV RDI,R12
MOV RSI,R12
MOV RDX,R14
XOR ECX,ECX
CALL 0x001540e7
MOV RDI,R12
MOV RSI,R12
MOV RDX,R15
XOR ECX,ECX
CALL 0x001540e7
MOV RDI,R14
MOV RSI,RBX
CALL 0x0015cb6e
MOV RDI,R14
MOV RSI,R14
MOV RDX,RBX
XOR ECX,ECX
CALL 0x001540e7
MOV RDI,R14
MOV RSI,R14
MOV RDX,R15
XOR ECX,ECX
CALL 0x001540e7
MOV RDI,R15
MOV RSI,R14
CALL 0x0015cb6e
MOV RDI,R12
MOV RSI,R12
MOV RDX,R15
XOR ECX,ECX
CALL 0x001540e7
ADD RSP,0x4f8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void map_to_g2(int8 param_1,int8 param_2,long param_3)
{
int1 *puVar1;
int1 *puVar2;
int8 uVar3;
int1 local_528 [96];
int1 local_4c8 [96];
int1 local_468 [96];
int1 auStack_408 [96];
int1 local_3a8 [96];
int1 local_348 [96];
int1 local_2e8 [96];
int1 local_288 [96];
int1 local_228 [96];
int1 local_1c8 [96];
int1 local_168 [96];
int1 local_108 [96];
int1 local_a8 [96];
int1 *local_48;
int1 *local_40;
int8 local_38;
local_38 = param_1;
map_to_isogenous_E2(local_1c8);
uVar3 = local_38;
if (param_3 != 0) {
map_to_isogenous_E2(local_38,param_3);
POINTonE2_dadd(local_1c8,local_1c8,uVar3,Aprime_E2);
}
local_48 = local_108;
local_40 = local_2e8;
sqr_fp2(local_2e8);
sqr_fp2(local_348,local_2e8);
mul_fp2(local_3a8,local_2e8,local_348);
map_fp2_times_Zz(local_4c8,isogeny_map_to_E2_isogeny_map_x_num,local_3a8,3);
mul_fp2(local_288,local_1c8,0x1811e0);
add_fp2(local_288,local_288,auStack_408);
map_fp2(local_288,local_1c8,local_4c8);
map_fp2_times_Zz(local_4c8,isogeny_map_to_E2_isogeny_map_x_den,local_348,2);
add_fp2(local_a8,local_1c8,local_468);
map_fp2(local_a8,local_1c8,local_4c8,1);
mul_fp2(local_a8,local_a8,local_40);
map_fp2_times_Zz(local_4c8,isogeny_map_to_E2_isogeny_map_y_num,local_3a8,3);
uVar3 = local_38;
mul_fp2(local_228,local_1c8,0x181420);
add_fp2(local_228,local_228,auStack_408);
map_fp2(local_228,local_1c8,local_4c8,2);
mul_fp2(local_228,local_228,local_168);
map_fp2_times_Zz(local_4c8,isogeny_map_to_E2_isogeny_map_y_den,local_3a8,3);
add_fp2(local_528,local_1c8,auStack_408);
map_fp2(local_528,local_1c8,local_4c8,2);
puVar2 = local_40;
puVar1 = local_48;
mul_fp2(local_40,local_40,local_48);
mul_fp2(local_528,local_528,puVar2);
mul_fp2(puVar1,local_a8,local_528);
mul_fp2(local_1c8,local_288,local_528);
mul_fp2(local_1c8,local_1c8,puVar1);
sqr_fp2(local_168,puVar1);
mul_fp2(local_168,local_168,local_a8);
mul_fp2(local_168,local_168,local_228);
POINTonE2_double(uVar3,local_1c8);
psi(uVar3,uVar3);
psi(uVar3,uVar3);
vec_copy(local_3a8,local_1c8,0x120);
POINTonE2_cneg(local_3a8,1);
psi(local_4c8,local_3a8);
POINTonE2_dadd(uVar3,uVar3,local_3a8,0);
POINTonE2_dadd(uVar3,uVar3,local_4c8,0);
POINTonE2_times_minus_z(local_3a8,local_1c8);
POINTonE2_dadd(local_3a8,local_3a8,local_1c8,0);
POINTonE2_dadd(local_3a8,local_3a8,local_4c8,0);
POINTonE2_times_minus_z(local_4c8,local_3a8);
POINTonE2_dadd(uVar3,uVar3,local_4c8,0);
return;
}
| |
22,364 | YAML::detail::node* YAML::detail::node_data::get<char [6]>(char const (&) [6], std::shared_ptr<YAML::detail::memory_holder>) const | aimrt_mujoco_sim/_deps/yaml-cpp-src/include/yaml-cpp/node/detail/impl.h | inline node* node_data::get(const Key& key,
shared_memory_holder pMemory) const {
switch (m_type) {
case NodeType::Map:
break;
case NodeType::Undefined:
case NodeType::Null:
return nullptr;
case NodeType::Sequence:
if (node* pNode = get_idx<Key>::get(m_sequence, key, pMemory))
return pNode;
return nullptr;
case NodeType::Scalar:
throw BadSubscript(m_mark, key);
}
auto it = std::find_if(m_map.begin(), m_map.end(), [&](const kv_pair m) {
return m.first->equals(key, pMemory);
});
return it != m_map.end() ? it->second : nullptr;
} | O0 | c | YAML::detail::node* YAML::detail::node_data::get<char [6]>(char const (&) [6], std::shared_ptr<YAML::detail::memory_holder>) const:
subq $0xc8, %rsp
movq %rdx, 0x38(%rsp)
movq %rdi, 0xb8(%rsp)
movq %rsi, 0xb0(%rsp)
movq %rdx, 0xa8(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x40(%rsp)
movl 0x10(%rax), %eax
movq %rax, 0x48(%rsp)
subq $0x4, %rax
ja 0xea834
movq 0x48(%rsp), %rax
leaq 0x2f481d(%rip), %rcx # 0x3def0c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
jmp 0xea834
movq $0x0, 0xc0(%rsp)
jmp 0xea8f0
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rax
addq $0x60, %rax
movq %rax, 0x18(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x90(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0xda5a0
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0xea910
movq %rax, 0x30(%rsp)
jmp 0xea75b
leaq 0x90(%rsp), %rdi
callq 0xda6e0
movq 0x30(%rsp), %rax
movq %rax, 0xa0(%rsp)
cmpq $0x0, 0xa0(%rsp)
je 0xea7bb
movq 0xa0(%rsp), %rax
movq %rax, 0xc0(%rsp)
jmp 0xea8f0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
leaq 0x90(%rsp), %rdi
callq 0xda6e0
jmp 0xea900
movq $0x0, 0xc0(%rsp)
jmp 0xea8f0
movl $0x40, %edi
callq 0x8e630
movq 0x40(%rsp), %rsi
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x10(%rsp)
addq $0x4, %rsi
movq 0xb0(%rsp), %rdx
callq 0xea930
jmp 0xea7f9
movq 0x10(%rsp), %rdi
leaq 0x410583(%rip), %rsi # 0x4fad88
leaq 0x3b7b4(%rip), %rdx # 0x125fc0
callq 0x90860
movq 0x10(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
callq 0x93710
jmp 0xea900
movq 0x40(%rsp), %rdi
addq $0x80, %rdi
callq 0xe4d00
movq 0x40(%rsp), %rdi
movq %rax, 0x70(%rsp)
addq $0x80, %rdi
callq 0xe4d30
movq %rax, %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x68(%rsp)
movq 0xb0(%rsp), %rcx
movq %rcx, 0x58(%rsp)
movq %rax, 0x60(%rsp)
movq 0x70(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq 0x60(%rsp), %rcx
callq 0xea9d0
movq 0x40(%rsp), %rdi
movq %rax, 0x78(%rsp)
addq $0x80, %rdi
callq 0xe4d30
movq %rax, 0x50(%rsp)
leaq 0x78(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xe4d60
xorb $-0x1, %al
testb $0x1, %al
jne 0xea8c5
jmp 0xea8da
leaq 0x78(%rsp), %rdi
callq 0xe4da0
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
jmp 0xea8e3
xorl %eax, %eax
movq %rax, 0x8(%rsp)
jmp 0xea8e3
movq 0x8(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0xc0(%rsp), %rax
addq $0xc8, %rsp
retq
movq 0x88(%rsp), %rdi
callq 0x90db0
nopl (%rax)
| _ZNK4YAML6detail9node_data3getIA18_cEEPNS0_4nodeERKT_St10shared_ptrINS0_13memory_holderEE:
sub rsp, 0C8h
mov [rsp+0C8h+var_90], rdx
mov [rsp+0C8h+var_10], rdi
mov [rsp+0C8h+var_18], rsi
mov [rsp+0C8h+var_20], rdx
mov rax, [rsp+0C8h+var_10]
mov [rsp+0C8h+var_88], rax
mov eax, [rax+10h]
mov [rsp+0C8h+var_80], rax
sub rax, 4; switch 5 cases
ja def_EA6F6; jumptable 00000000000EA6F6 default case
mov rax, [rsp+0C8h+var_80]
lea rcx, jpt_EA6F6
movsxd rax, ds:(jpt_EA6F6 - 3DEF0Ch)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_EA6F8:
jmp def_EA6F6; jumptable 00000000000EA6F6 case 4
loc_EA6FD:
mov [rsp+0C8h+var_8], 0; jumptable 00000000000EA6F6 cases 0,1
jmp loc_EA8F0
loc_EA70E:
mov rsi, [rsp+0C8h+var_90]; jumptable 00000000000EA6F6 case 3
mov rax, [rsp+0C8h+var_88]
add rax, 60h ; '`'
mov [rsp+0C8h+var_B0], rax
mov rax, [rsp+0C8h+var_18]
mov [rsp+0C8h+var_A8], rax
lea rdi, [rsp+0C8h+var_38]
mov [rsp+0C8h+var_A0], rdi
call _ZNSt10shared_ptrIN4YAML6detail13memory_holderEEC2ERKS3_; std::shared_ptr<YAML::detail::memory_holder>::shared_ptr(std::shared_ptr<YAML::detail::memory_holder> const&)
mov rdi, [rsp+0C8h+var_B0]
mov rsi, [rsp+0C8h+var_A8]
mov rdx, [rsp+0C8h+var_A0]
call _ZN4YAML6detail7get_idxIA18_cvE3getERKSt6vectorIPNS0_4nodeESaIS6_EERA18_KcSt10shared_ptrINS0_13memory_holderEE; YAML::detail::get_idx<char [18],void>::get(std::vector<YAML::detail::node *> const&,char const(&)[18],std::shared_ptr<YAML::detail::memory_holder>)
mov [rsp+0C8h+var_98], rax
jmp short $+2
loc_EA75B:
lea rdi, [rsp+0C8h+var_38]
call _ZNSt10shared_ptrIN4YAML6detail13memory_holderEED2Ev; std::shared_ptr<YAML::detail::memory_holder>::~shared_ptr()
mov rax, [rsp+0C8h+var_98]
mov [rsp+0C8h+var_28], rax
cmp [rsp+0C8h+var_28], 0
jz short loc_EA7BB
mov rax, [rsp+0C8h+var_28]
mov [rsp+0C8h+var_8], rax
jmp loc_EA8F0
mov rcx, rax
mov eax, edx
mov [rsp+0C8h+var_40], rcx
mov [rsp+0C8h+var_44], eax
lea rdi, [rsp+0C8h+var_38]
call _ZNSt10shared_ptrIN4YAML6detail13memory_holderEED2Ev; std::shared_ptr<YAML::detail::memory_holder>::~shared_ptr()
jmp loc_EA900
loc_EA7BB:
mov [rsp+0C8h+var_8], 0
jmp loc_EA8F0
loc_EA7CC:
mov edi, 40h ; '@'; jumptable 00000000000EA6F6 case 2
call ___cxa_allocate_exception
mov rsi, [rsp+0C8h+var_88]
mov rdi, rax
mov rax, rdi
mov [rsp+0C8h+var_B8], rax
add rsi, 4
mov rdx, [rsp+0C8h+var_18]
call _ZN4YAML12BadSubscriptC2IA18_cEERKNS_4MarkERKT_; YAML::BadSubscript::BadSubscript<char [18]>(YAML::Mark const&,char [18] const&)
jmp short $+2
loc_EA7F9:
mov rdi, [rsp+0C8h+var_B8]; void *
lea rsi, _ZTIN4YAML12BadSubscriptE; lptinfo
lea rdx, _ZN4YAML12BadSubscriptD2Ev; void (*)(void *)
call ___cxa_throw
mov rdi, [rsp+0C8h+var_B8]; void *
mov rcx, rax
mov eax, edx
mov [rsp+0C8h+var_40], rcx
mov [rsp+0C8h+var_44], eax
call ___cxa_free_exception
jmp loc_EA900
def_EA6F6:
mov rdi, [rsp+0C8h+var_88]; jumptable 00000000000EA6F6 default case
add rdi, 80h
call _ZNKSt6vectorISt4pairIPN4YAML6detail4nodeES4_ESaIS5_EE5beginEv; std::vector<std::pair<YAML::detail::node *,YAML::detail::node *>>::begin(void)
mov rdi, [rsp+0C8h+var_88]
mov [rsp+0C8h+var_58], rax
add rdi, 80h
call _ZNKSt6vectorISt4pairIPN4YAML6detail4nodeES4_ESaIS5_EE3endEv; std::vector<std::pair<YAML::detail::node *,YAML::detail::node *>>::end(void)
mov rcx, rax
mov rax, [rsp+0C8h+var_90]
mov [rsp+0C8h+var_60], rcx
mov rcx, [rsp+0C8h+var_18]
mov [rsp+0C8h+var_70], rcx
mov [rsp+0C8h+var_68], rax
mov rdi, [rsp+0C8h+var_58]
mov rsi, [rsp+0C8h+var_60]
mov rdx, [rsp+0C8h+var_70]
mov rcx, [rsp+0C8h+var_68]
call _ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPKSt4pairIPN4YAML6detail4nodeES6_ESt6vectorIS7_SaIS7_EEEEZNKS4_9node_data3getIA18_cEES6_RKT_St10shared_ptrINS4_13memory_holderEEEUlS7_E_ESH_SH_SH_T0_; std::find_if<__gnu_cxx::__normal_iterator<std::pair<YAML::detail::node *,YAML::detail::node *> const*,std::vector<std::pair<YAML::detail::node *,YAML::detail::node *>>>,YAML::detail::node_data::get<char [18]>(char [18] const&,std::shared_ptr<YAML::detail::memory_holder>)::{lambda(std::pair<YAML::detail::node *,YAML::detail::node *>)#1}>(char [18],char [18],YAML::detail::node_data::get<char [18]>(char [18] const&,std::shared_ptr<YAML::detail::memory_holder>)::{lambda(std::pair<YAML::detail::node *,YAML::detail::node *>)#1})
mov rdi, [rsp+0C8h+var_88]
mov [rsp+0C8h+var_50], rax
add rdi, 80h
call _ZNKSt6vectorISt4pairIPN4YAML6detail4nodeES4_ESaIS5_EE3endEv; std::vector<std::pair<YAML::detail::node *,YAML::detail::node *>>::end(void)
mov [rsp+0C8h+var_78], rax
lea rdi, [rsp+0C8h+var_50]
lea rsi, [rsp+0C8h+var_78]
call _ZN9__gnu_cxxeqIPKSt4pairIPN4YAML6detail4nodeES5_ESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE
xor al, 0FFh
test al, 1
jnz short loc_EA8C5
jmp short loc_EA8DA
loc_EA8C5:
lea rdi, [rsp+0C8h+var_50]
call _ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIPN4YAML6detail4nodeES5_ESt6vectorIS6_SaIS6_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<YAML::detail::node *,YAML::detail::node *> const*,std::vector<std::pair<YAML::detail::node *,YAML::detail::node *>>>::operator->(void)
mov rax, [rax+8]
mov [rsp+0C8h+var_C0], rax
jmp short loc_EA8E3
loc_EA8DA:
xor eax, eax
mov [rsp+0C8h+var_C0], rax
jmp short $+2
loc_EA8E3:
mov rax, [rsp+0C8h+var_C0]
mov [rsp+0C8h+var_8], rax
loc_EA8F0:
mov rax, [rsp+0C8h+var_8]
add rsp, 0C8h
retn
loc_EA900:
mov rdi, [rsp+0C8h+var_40]
call __Unwind_Resume
| long long YAML::detail::node_data::get<char [18]>(long long a1, long long a2, long long a3)
{
int v3; // ecx
int v4; // r8d
int v5; // r9d
long long v7; // [rsp+8h] [rbp-C0h]
void *exception; // [rsp+10h] [rbp-B8h]
long long v9; // [rsp+20h] [rbp-A8h]
long long v10; // [rsp+30h] [rbp-98h]
_QWORD v12[3]; // [rsp+50h] [rbp-78h] BYREF
long long v13; // [rsp+68h] [rbp-60h]
long long v14; // [rsp+70h] [rbp-58h]
long long v15; // [rsp+78h] [rbp-50h] BYREF
_BYTE v16[16]; // [rsp+90h] [rbp-38h] BYREF
long long v17; // [rsp+A0h] [rbp-28h]
long long v18; // [rsp+A8h] [rbp-20h]
long long v19; // [rsp+B0h] [rbp-18h]
long long v20; // [rsp+B8h] [rbp-10h]
long long v21; // [rsp+C0h] [rbp-8h]
v20 = a1;
v19 = a2;
v18 = a3;
switch ( *(_DWORD *)(a1 + 16) )
{
case 0:
case 1:
v21 = 0LL;
break;
case 2:
exception = __cxa_allocate_exception(0x40uLL);
YAML::BadSubscript::BadSubscript<char [18]>((_DWORD)exception, a1 + 4, v19, v3, v4, v5);
__cxa_throw(exception, (struct type_info *)&`typeinfo for'YAML::BadSubscript, YAML::BadSubscript::~BadSubscript);
case 3:
v9 = v19;
std::shared_ptr<YAML::detail::memory_holder>::shared_ptr((long long)v16, a3);
v10 = YAML::detail::get_idx<char [18],void>::get(a1 + 96, v9, v16);
std::shared_ptr<YAML::detail::memory_holder>::~shared_ptr((long long)v16);
v17 = v10;
if ( v10 )
v21 = v17;
else
v21 = 0LL;
break;
default:
v14 = std::vector<std::pair<YAML::detail::node *,YAML::detail::node *>>::begin(a1 + 128);
v13 = std::vector<std::pair<YAML::detail::node *,YAML::detail::node *>>::end(a1 + 128);
v12[1] = v19;
v12[2] = a3;
v15 = std::find_if<__gnu_cxx::__normal_iterator<std::pair<YAML::detail::node *,YAML::detail::node *> const*,std::vector<std::pair<YAML::detail::node *,YAML::detail::node *>>>,YAML::detail::node * YAML::detail::node_data::get<char [18]>(char [18] const&,std::shared_ptr<YAML::detail::memory_holder>)::{lambda(std::pair<YAML::detail::node *,YAML::detail::node *>)#1}>(
v14,
v13,
v19,
a3);
v12[0] = std::vector<std::pair<YAML::detail::node *,YAML::detail::node *>>::end(a1 + 128);
if ( __gnu_cxx::operator==<std::pair<YAML::detail::node *,YAML::detail::node *> const*,std::vector<std::pair<YAML::detail::node *,YAML::detail::node *>>>(
(long long)&v15,
(long long)v12) )
{
v7 = 0LL;
}
else
{
v7 = *(_QWORD *)(__gnu_cxx::__normal_iterator<std::pair<YAML::detail::node *,YAML::detail::node *> const*,std::vector<std::pair<YAML::detail::node *,YAML::detail::node *>>>::operator->((long long)&v15)
+ 8);
}
v21 = v7;
break;
}
return v21;
}
| get<char[18]>:
SUB RSP,0xc8
MOV qword ptr [RSP + 0x38],RDX
MOV qword ptr [RSP + 0xb8],RDI
MOV qword ptr [RSP + 0xb0],RSI
MOV qword ptr [RSP + 0xa8],RDX
MOV RAX,qword ptr [RSP + 0xb8]
MOV qword ptr [RSP + 0x40],RAX
MOV EAX,dword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x48],RAX
SUB RAX,0x4
JA 0x001ea834
MOV RAX,qword ptr [RSP + 0x48]
LEA RCX,[0x4def0c]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_4:
JMP 0x001ea834
caseD_0:
MOV qword ptr [RSP + 0xc0],0x0
JMP 0x001ea8f0
caseD_3:
MOV RSI,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RSP + 0x40]
ADD RAX,0x60
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0x20],RAX
LEA RDI,[RSP + 0x90]
MOV qword ptr [RSP + 0x28],RDI
CALL 0x001da5a0
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
LAB_001ea74f:
CALL 0x001ea910
LAB_001ea754:
MOV qword ptr [RSP + 0x30],RAX
JMP 0x001ea75b
LAB_001ea75b:
LEA RDI,[RSP + 0x90]
CALL 0x001da6e0
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0xa0],RAX
CMP qword ptr [RSP + 0xa0],0x0
JZ 0x001ea7bb
MOV RAX,qword ptr [RSP + 0xa0]
MOV qword ptr [RSP + 0xc0],RAX
JMP 0x001ea8f0
LAB_001ea7bb:
MOV qword ptr [RSP + 0xc0],0x0
JMP 0x001ea8f0
caseD_2:
MOV EDI,0x40
CALL 0x0018e630
MOV RSI,qword ptr [RSP + 0x40]
MOV RDI,RAX
MOV RAX,RDI
MOV qword ptr [RSP + 0x10],RAX
ADD RSI,0x4
MOV RDX,qword ptr [RSP + 0xb0]
LAB_001ea7f2:
CALL 0x001ea930
LAB_001ea7f7:
JMP 0x001ea7f9
LAB_001ea7f9:
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[0x5fad88]
LEA RDX,[0x225fc0]
CALL 0x00190860
default:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x80
CALL 0x001e4d00
MOV RDI,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x70],RAX
ADD RDI,0x80
CALL 0x001e4d30
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x68],RCX
MOV RCX,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0x58],RCX
MOV qword ptr [RSP + 0x60],RAX
MOV RDI,qword ptr [RSP + 0x70]
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x58]
MOV RCX,qword ptr [RSP + 0x60]
CALL 0x001ea9d0
MOV RDI,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x78],RAX
ADD RDI,0x80
CALL 0x001e4d30
MOV qword ptr [RSP + 0x50],RAX
LEA RDI,[RSP + 0x78]
LEA RSI,[RSP + 0x50]
CALL 0x001e4d60
XOR AL,0xff
TEST AL,0x1
JNZ 0x001ea8c5
JMP 0x001ea8da
LAB_001ea8c5:
LEA RDI,[RSP + 0x78]
CALL 0x001e4da0
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RAX
JMP 0x001ea8e3
LAB_001ea8da:
XOR EAX,EAX
MOV qword ptr [RSP + 0x8],RAX
JMP 0x001ea8e3
LAB_001ea8e3:
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0xc0],RAX
LAB_001ea8f0:
MOV RAX,qword ptr [RSP + 0xc0]
ADD RSP,0xc8
RET
|
/* YAML::detail::node* YAML::detail::node_data::get<char [18]>(char const (&) [18],
std::shared_ptr<YAML::detail::memory_holder>) const */
node * __thiscall
YAML::detail::node_data::get<char[18]>(node_data *this,char *param_1,shared_ptr *param_3)
{
node *pnVar1;
BadSubscript *this_00;
ulong uVar2;
long lVar3;
node *local_c0;
int8 local_78;
char *local_70;
shared_ptr *local_68;
int8 local_60;
int8 local_58;
int8 local_50 [3];
shared_ptr<YAML::detail::memory_holder> local_38 [24];
shared_ptr *local_20;
char *local_18;
node_data *local_10;
node *local_8;
local_20 = param_3;
local_18 = param_1;
local_10 = this;
switch(*(int4 *)(this + 0x10)) {
case 0:
case 1:
local_8 = (node *)0x0;
break;
case 2:
this_00 = (BadSubscript *)__cxa_allocate_exception(0x40);
/* try { // try from 001ea7f2 to 001ea7f6 has its CatchHandler @ 001ea811 */
BadSubscript::BadSubscript<char[18]>(this_00,(Mark *)(this + 4),local_18);
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,&BadSubscript::typeinfo,BadSubscript::~BadSubscript);
case 3:
std::shared_ptr<YAML::detail::memory_holder>::shared_ptr(local_38,param_3);
/* try { // try from 001ea74f to 001ea753 has its CatchHandler @ 001ea795 */
pnVar1 = (node *)get_idx<char[18],void>::get(this + 0x60,param_1,local_38);
std::shared_ptr<YAML::detail::memory_holder>::~shared_ptr(local_38);
local_8 = pnVar1;
if (pnVar1 == (node *)0x0) {
local_8 = (node *)0x0;
}
break;
case 4:
default:
local_58 = std::
vector<std::pair<YAML::detail::node*,YAML::detail::node*>,std::allocator<std::pair<YAML::detail::node*,YAML::detail::node*>>>
::begin((vector<std::pair<YAML::detail::node*,YAML::detail::node*>,std::allocator<std::pair<YAML::detail::node*,YAML::detail::node*>>>
*)(this + 0x80));
local_60 = std::
vector<std::pair<YAML::detail::node*,YAML::detail::node*>,std::allocator<std::pair<YAML::detail::node*,YAML::detail::node*>>>
::end((vector<std::pair<YAML::detail::node*,YAML::detail::node*>,std::allocator<std::pair<YAML::detail::node*,YAML::detail::node*>>>
*)(this + 0x80));
local_70 = local_18;
local_68 = param_3;
local_50[0] = std::
find_if<__gnu_cxx::__normal_iterator<std::pair<YAML::detail::node*,YAML::detail::node*>const*,std::vector<std::pair<YAML::detail::node*,YAML::detail::node*>,std::allocator<std::pair<YAML::detail::node*,YAML::detail::node*>>>>,YAML::detail::node_data::get<char[18]>(char_const(&)[18],std::shared_ptr<YAML::detail::memory_holder>)const::_lambda(std::pair<YAML::detail::node*,YAML::detail::node*>)_1_>
(local_58,local_60,local_18,param_3);
local_78 = std::
vector<std::pair<YAML::detail::node*,YAML::detail::node*>,std::allocator<std::pair<YAML::detail::node*,YAML::detail::node*>>>
::end((vector<std::pair<YAML::detail::node*,YAML::detail::node*>,std::allocator<std::pair<YAML::detail::node*,YAML::detail::node*>>>
*)(this + 0x80));
uVar2 = _ZN9__gnu_cxxeqIPKSt4pairIPN4YAML6detail4nodeES5_ESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE
(local_50,&local_78);
if (((uVar2 ^ 0xff) & 1) == 0) {
local_c0 = (node *)0x0;
}
else {
lVar3 = __gnu_cxx::
__normal_iterator<std::pair<YAML::detail::node*,YAML::detail::node*>const*,std::vector<std::pair<YAML::detail::node*,YAML::detail::node*>,std::allocator<std::pair<YAML::detail::node*,YAML::detail::node*>>>>
::operator->((__normal_iterator<std::pair<YAML::detail::node*,YAML::detail::node*>const*,std::vector<std::pair<YAML::detail::node*,YAML::detail::node*>,std::allocator<std::pair<YAML::detail::node*,YAML::detail::node*>>>>
*)local_50);
local_c0 = *(node **)(lVar3 + 8);
}
local_8 = local_c0;
}
return local_8;
}
| |
22,365 | YAML::detail::node* YAML::detail::node_data::get<char [6]>(char const (&) [6], std::shared_ptr<YAML::detail::memory_holder>) const | aimrt_mujoco_sim/_deps/yaml-cpp-src/include/yaml-cpp/node/detail/impl.h | inline node* node_data::get(const Key& key,
shared_memory_holder pMemory) const {
switch (m_type) {
case NodeType::Map:
break;
case NodeType::Undefined:
case NodeType::Null:
return nullptr;
case NodeType::Sequence:
if (node* pNode = get_idx<Key>::get(m_sequence, key, pMemory))
return pNode;
return nullptr;
case NodeType::Scalar:
throw BadSubscript(m_mark, key);
}
auto it = std::find_if(m_map.begin(), m_map.end(), [&](const kv_pair m) {
return m.first->equals(key, pMemory);
});
return it != m_map.end() ? it->second : nullptr;
} | O3 | c | YAML::detail::node* YAML::detail::node_data::get<char [6]>(char const (&) [6], std::shared_ptr<YAML::detail::memory_holder>) const:
pushq %r15
pushq %r14
pushq %rbx
movl 0x10(%rdi), %eax
cmpl $0x2, %eax
jb 0x5663e
movq %rdx, %rcx
cmpl $0x3, %eax
je 0x5661b
movq %rsi, %r14
movq %rdi, %rbx
cmpl $0x2, %eax
je 0x56646
movq 0x80(%rbx), %rdi
movq 0x88(%rbx), %rsi
movq %r14, %rdx
callq 0x56720
cmpq 0x88(%rbx), %rax
je 0x5663e
movq 0x8(%rax), %rax
jmp 0x56640
movq 0x8(%rcx), %rdi
testq %rdi, %rdi
je 0x5663e
movq 0x1b98fd(%rip), %rax # 0x20ff28
cmpb $0x0, (%rax)
je 0x56635
incl 0x8(%rdi)
jmp 0x56639
lock
incl 0x8(%rdi)
callq 0x466d6
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
movl $0x40, %edi
callq 0x2c800
movq %rax, %r15
addq $0x4, %rbx
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x5668e
leaq 0x1b316c(%rip), %rsi # 0x2097d8
leaq 0xa0b9(%rip), %rdx # 0x6072c
movq %r15, %rdi
callq 0x2e0f0
movq %rax, %rbx
movq %r15, %rdi
callq 0x2cc80
movq %rbx, %rdi
callq 0x2e220
| _ZNK4YAML6detail9node_data3getIA11_cEEPNS0_4nodeERKT_St10shared_ptrINS0_13memory_holderEE:
push r15
push r14
push rbx
mov eax, [rdi+10h]
cmp eax, 2
jb short loc_5663E
mov rcx, rdx
cmp eax, 3
jz short loc_5661B
mov r14, rsi
mov rbx, rdi
cmp eax, 2
jz short loc_56646
mov rdi, [rbx+80h]
mov rsi, [rbx+88h]
mov rdx, r14
call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKSt4pairIPN4YAML6detail4nodeES6_ESt6vectorIS7_SaIS7_EEEENS0_5__ops10_Iter_predIZNKS4_9node_data3getIA11_cEES6_RKT_St10shared_ptrINS4_13memory_holderEEEUlS7_E_EEESJ_SJ_SJ_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<std::pair<YAML::detail::node *,YAML::detail::node *> const*,std::vector<std::pair<YAML::detail::node *,YAML::detail::node *>>>,__gnu_cxx::__ops::_Iter_pred<YAML::detail::node_data::get<char [11]>(char [11] const&,std::shared_ptr<YAML::detail::memory_holder>)::{lambda(std::pair<YAML::detail::node *,YAML::detail::node *>)#1}>>(char [11],char [11],__gnu_cxx::__ops::_Iter_pred<YAML::detail::node_data::get<char [11]>(char [11] const&,std::shared_ptr<YAML::detail::memory_holder>)::{lambda(std::pair<YAML::detail::node *,YAML::detail::node *>)#1}>,std::random_access_iterator_tag)
cmp rax, [rbx+88h]
jz short loc_5663E
mov rax, [rax+8]
jmp short loc_56640
loc_5661B:
mov rdi, [rcx+8]
test rdi, rdi
jz short loc_5663E
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_56635
inc dword ptr [rdi+8]
jmp short loc_56639
loc_56635:
lock inc dword ptr [rdi+8]
loc_56639:
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_5663E:
xor eax, eax
loc_56640:
pop rbx
pop r14
pop r15
retn
loc_56646:
mov edi, 40h ; '@'; thrown_size
call ___cxa_allocate_exception
mov r15, rax
add rbx, 4
mov rdi, rax
mov rsi, rbx
mov rdx, r14
call _ZN4YAML12BadSubscriptC2IA11_cEERKNS_4MarkERKT_; YAML::BadSubscript::BadSubscript<char [11]>(YAML::Mark const&,char [11] const&)
lea rsi, _ZTIN4YAML12BadSubscriptE; lptinfo
lea rdx, _ZN4YAML9ExceptionD2Ev; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
mov rbx, rax
mov rdi, r15; void *
call ___cxa_free_exception
mov rdi, rbx
call __Unwind_Resume
| long long YAML::detail::node_data::get<char [11]>(long long a1, long long a2, long long a3)
{
unsigned int v3; // eax
long long v4; // rax
volatile signed __int32 *v6; // rdi
void *exception; // r15
int v8; // ecx
int v9; // r8d
int v10; // r9d
v3 = *(_DWORD *)(a1 + 16);
if ( v3 >= 2 )
{
if ( v3 == 3 )
{
v6 = *(volatile signed __int32 **)(a3 + 8);
if ( v6 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v6 + 2);
else
_InterlockedIncrement(v6 + 2);
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v6);
}
}
else
{
if ( v3 == 2 )
{
exception = __cxa_allocate_exception(0x40uLL);
YAML::BadSubscript::BadSubscript<char [11]>((_DWORD)exception, a1 + 4, a2, v8, v9, v10);
__cxa_throw(exception, (struct type_info *)&`typeinfo for'YAML::BadSubscript, YAML::Exception::~Exception);
}
v4 = std::__find_if<__gnu_cxx::__normal_iterator<std::pair<YAML::detail::node *,YAML::detail::node *> const*,std::vector<std::pair<YAML::detail::node *,YAML::detail::node *>>>,__gnu_cxx::__ops::_Iter_pred<YAML::detail::node * YAML::detail::node_data::get<char [11]>(char [11] const&,std::shared_ptr<YAML::detail::memory_holder>)::{lambda(std::pair<YAML::detail::node *,YAML::detail::node *>)#1}>>(
*(_QWORD *)(a1 + 128),
*(_QWORD *)(a1 + 136),
a2,
a3);
if ( v4 != *(_QWORD *)(a1 + 136) )
return *(_QWORD *)(v4 + 8);
}
}
return 0LL;
}
| get<char[11]>:
PUSH R15
PUSH R14
PUSH RBX
MOV EAX,dword ptr [RDI + 0x10]
CMP EAX,0x2
JC 0x0015663e
MOV RCX,RDX
CMP EAX,0x3
JZ 0x0015661b
MOV R14,RSI
MOV RBX,RDI
CMP EAX,0x2
JZ 0x00156646
MOV RDI,qword ptr [RBX + 0x80]
MOV RSI,qword ptr [RBX + 0x88]
MOV RDX,R14
CALL 0x00156720
CMP RAX,qword ptr [RBX + 0x88]
JZ 0x0015663e
MOV RAX,qword ptr [RAX + 0x8]
JMP 0x00156640
LAB_0015661b:
MOV RDI,qword ptr [RCX + 0x8]
TEST RDI,RDI
JZ 0x0015663e
MOV RAX,qword ptr [0x0030ff28]
CMP byte ptr [RAX],0x0
JZ 0x00156635
INC dword ptr [RDI + 0x8]
JMP 0x00156639
LAB_00156635:
INC.LOCK dword ptr [RDI + 0x8]
LAB_00156639:
CALL 0x001466d6
LAB_0015663e:
XOR EAX,EAX
LAB_00156640:
POP RBX
POP R14
POP R15
RET
LAB_00156646:
MOV EDI,0x40
CALL 0x0012c800
MOV R15,RAX
ADD RBX,0x4
LAB_00156657:
MOV RDI,RAX
MOV RSI,RBX
MOV RDX,R14
CALL 0x0015668e
LAB_00156665:
LEA RSI,[0x3097d8]
LEA RDX,[0x16072c]
MOV RDI,R15
CALL 0x0012e0f0
|
/* YAML::detail::node* YAML::detail::node_data::get<char [11]>(char const (&) [11],
std::shared_ptr<YAML::detail::memory_holder>) const */
node * __thiscall YAML::detail::node_data::get<char[11]>(node_data *this,char *param_1,long param_3)
{
uint uVar1;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this_00;
long lVar2;
BadSubscript *this_01;
uVar1 = *(uint *)(this + 0x10);
if (1 < uVar1) {
if (uVar1 == 3) {
this_00 = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(param_3 + 8);
if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*PTR___libc_single_threaded_0030ff28 == '\0') {
LOCK();
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
UNLOCK();
}
else {
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
}
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this_00);
}
}
else {
if (uVar1 == 2) {
this_01 = (BadSubscript *)__cxa_allocate_exception(0x40);
/* try { // try from 00156657 to 00156664 has its CatchHandler @ 0015667b */
BadSubscript::BadSubscript<char[11]>(this_01,(Mark *)(this + 4),param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(this_01,&BadSubscript::typeinfo,BadInsert::~BadInsert);
}
lVar2 = std::
__find_if<__gnu_cxx::__normal_iterator<std::pair<YAML::detail::node*,YAML::detail::node*>const*,std::vector<std::pair<YAML::detail::node*,YAML::detail::node*>,std::allocator<std::pair<YAML::detail::node*,YAML::detail::node*>>>>,__gnu_cxx::__ops::_Iter_pred<YAML::detail::node_data::get<char[11]>(char_const(&)[11],std::shared_ptr<YAML::detail::memory_holder>)const::_lambda(std::pair<YAML::detail::node*,YAML::detail::node*>)_1_>>
(*(int8 *)(this + 0x80),*(int8 *)(this + 0x88),param_1);
if (lVar2 != *(long *)(this + 0x88)) {
return *(node **)(lVar2 + 8);
}
}
}
return (node *)0x0;
}
| |
22,366 | eth_ssz_verification_type | corpus-core[P]colibri-stateless/src/chains/eth/ssz/verify_types.c | const ssz_def_t* eth_ssz_verification_type(eth_ssz_type_t type) {
switch (type) {
case ETH_SSZ_VERIFY_LIGHT_CLIENT_UPDATE_LIST:
return ARRAY_TYPE(C4_REQUEST_SYNCDATA_UNION, &LIGHT_CLIENT_UPDATE_CONTAINER);
case ETH_SSZ_VERIFY_LIGHT_CLIENT_UPDATE:
return &LIGHT_CLIENT_UPDATE_CONTAINER;
case ETH_SSZ_VERIFY_REQUEST:
return &C4_REQUEST_CONTAINER;
case ETH_SSZ_VERIFY_ACCOUNT_PROOF:
return ARRAY_TYPE(C4_REQUEST_PROOFS_UNION, ETH_ACCOUNT_PROOF);
case ETH_SSZ_VERIFY_TRANSACTION_PROOF:
return ARRAY_TYPE(C4_REQUEST_PROOFS_UNION, ETH_TRANSACTION_PROOF);
case ETH_SSZ_VERIFY_RECEIPT_PROOF:
return ARRAY_TYPE(C4_REQUEST_PROOFS_UNION, ETH_RECEIPT_PROOF);
case ETH_SSZ_VERIFY_LOGS_PROOF:
return ARRAY_TYPE(C4_REQUEST_PROOFS_UNION, Ð_LOGS_BLOCK_CONTAINER);
case ETH_SSZ_VERIFY_CALL_PROOF:
return ARRAY_TYPE(C4_REQUEST_PROOFS_UNION, ETH_CALL_PROOF);
case ETH_SSZ_VERIFY_SYNC_PROOF:
return ARRAY_TYPE(C4_REQUEST_PROOFS_UNION, ETH_SYNC_PROOF);
case ETH_SSZ_VERIFY_BLOCK_PROOF:
return ARRAY_TYPE(C4_REQUEST_PROOFS_UNION, ETH_BLOCK_PROOF);
case ETH_SSZ_VERIFY_STATE_PROOF:
return Ð_STATE_PROOF_CONTAINER;
case ETH_SSZ_DATA_NONE:
return C4_REQUEST_DATA_UNION;
case ETH_SSZ_DATA_HASH32:
return C4_REQUEST_DATA_UNION + 1;
case ETH_SSZ_DATA_BYTES:
return C4_REQUEST_DATA_UNION + 2;
case ETH_SSZ_DATA_UINT256:
return C4_REQUEST_DATA_UNION + 3;
case ETH_SSZ_DATA_TX:
return C4_REQUEST_DATA_UNION + 4;
case ETH_SSZ_DATA_RECEIPT:
return C4_REQUEST_DATA_UNION + 5;
case ETH_SSZ_DATA_LOGS:
return C4_REQUEST_DATA_UNION + 6;
case ETH_SSZ_DATA_BLOCK:
return C4_REQUEST_DATA_UNION + 7;
case ETH_SSZ_DATA_PROOF:
return C4_REQUEST_DATA_UNION + 8;
default: return NULL;
}
} | O3 | c | eth_ssz_verification_type:
addl $-0x4, %edi
cmpl $0x14, %edi
ja 0x23a80
leaq 0x5bcd5(%rip), %rax # 0x7f680
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x84c35(%rip), %rax # 0xa85f0
retq
leaq 0x857cd(%rip), %rax # 0xa9190
retq
leaq 0x85725(%rip), %rax # 0xa90f0
retq
leaq 0x84d4d(%rip), %rax # 0xa8720
leaq 0x85616(%rip), %rdx # 0xa8ff0
xorl %ecx, %ecx
cmpl $0x2, -0x8(%rax)
jb 0x239eb
cmpq %rdx, (%rax)
je 0x23b80
incq %rcx
addq $0x20, %rax
cmpq $0x8, %rcx
jne 0x239dc
jmp 0x23b7e
leaq 0x856cc(%rip), %rax # 0xa90d0
retq
leaq 0x857a4(%rip), %rax # 0xa91b0
retq
leaq 0x84d0c(%rip), %rax # 0xa8720
leaq 0x84ff5(%rip), %rdx # 0xa8a10
xorl %ecx, %ecx
cmpl $0x2, -0x8(%rax)
jb 0x23a2c
cmpq %rdx, (%rax)
je 0x23b80
incq %rcx
addq $0x20, %rax
cmpq $0x8, %rcx
jne 0x23a1d
jmp 0x23b7e
leaq 0x84c1b(%rip), %rax # 0xa8660
leaq 0x84b84(%rip), %rdx # 0xa85d0
xorl %ecx, %ecx
cmpl $0x2, -0x8(%rax)
jb 0x23a59
cmpq %rdx, (%rax)
je 0x23a68
incq %rcx
addq $0x20, %rax
cmpq $0x2, %rcx
jne 0x23a4e
xorl %ecx, %ecx
shlq $0x5, %rcx
leaq 0x84bdd(%rip), %rax # 0xa8650
jmp 0x23b8b
leaq 0x85631(%rip), %rax # 0xa90b0
retq
xorl %eax, %eax
retq
leaq 0x84c96(%rip), %rax # 0xa8720
leaq 0x84d9f(%rip), %rdx # 0xa8830
xorl %ecx, %ecx
cmpl $0x2, -0x8(%rax)
jb 0x23aa2
cmpq %rdx, (%rax)
je 0x23b80
incq %rcx
addq $0x20, %rax
cmpq $0x8, %rcx
jne 0x23a93
jmp 0x23b7e
leaq 0x84b15(%rip), %rax # 0xa85d0
retq
leaq 0x84b6d(%rip), %rax # 0xa8630
retq
leaq 0x85645(%rip), %rax # 0xa9110
retq
leaq 0x8565d(%rip), %rax # 0xa9130
retq
leaq 0x84c45(%rip), %rax # 0xa8720
leaq 0x8504e(%rip), %rdx # 0xa8b30
xorl %ecx, %ecx
cmpl $0x2, -0x8(%rax)
jb 0x23af3
cmpq %rdx, (%rax)
je 0x23b80
incq %rcx
addq $0x20, %rax
cmpq $0x8, %rcx
jne 0x23ae4
jmp 0x23b7e
leaq 0x84c17(%rip), %rax # 0xa8720
leaq 0x84b00(%rip), %rdx # 0xa8610
xorl %ecx, %ecx
cmpl $0x2, -0x8(%rax)
jb 0x23b1d
cmpq %rdx, (%rax)
je 0x23b80
incq %rcx
addq $0x20, %rax
cmpq $0x8, %rcx
jne 0x23b12
jmp 0x23b7e
leaq 0x84bed(%rip), %rax # 0xa8720
leaq 0x85396(%rip), %rdx # 0xa8ed0
xorl %ecx, %ecx
cmpl $0x2, -0x8(%rax)
jb 0x23b47
cmpq %rdx, (%rax)
je 0x23b80
incq %rcx
addq $0x20, %rax
cmpq $0x8, %rcx
jne 0x23b3c
jmp 0x23b7e
leaq 0x84bc3(%rip), %rax # 0xa8720
leaq 0x8526c(%rip), %rdx # 0xa8dd0
xorl %ecx, %ecx
cmpl $0x2, -0x8(%rax)
jb 0x23b71
cmpq %rdx, (%rax)
je 0x23b80
incq %rcx
addq $0x20, %rax
cmpq $0x8, %rcx
jne 0x23b66
xorl %ecx, %ecx
shlq $0x5, %rcx
leaq 0x84b85(%rip), %rax # 0xa8710
addq %rcx, %rax
retq
leaq 0x855da(%rip), %rax # 0xa9170
retq
leaq 0x855b2(%rip), %rax # 0xa9150
retq
nop
| eth_ssz_verification_type:
add edi, 0FFFFFFFCh; switch 21 cases
cmp edi, 14h
ja def_239B2; jumptable 00000000000239B2 default case, case 5
lea rax, jpt_239B2
movsxd rcx, ds:(jpt_239B2 - 7F680h)[rax+rdi*4]
add rcx, rax
jmp rcx; switch jump
loc_239B4:
lea rax, C4_REQUEST_CONTAINER; jumptable 00000000000239B2 case 4
retn
loc_239BC:
lea rax, off_A9190; jumptable 00000000000239B2 case 23
retn
loc_239C4:
lea rax, off_A90F0; jumptable 00000000000239B2 case 18
retn
loc_239CC:
lea rax, unk_A8720; jumptable 00000000000239B2 case 15
lea rdx, ETH_BLOCK_PROOF
xor ecx, ecx
loc_239DC:
cmp dword ptr [rax-8], 2
jb short loc_239EB
cmp [rax], rdx
jz loc_23B80
loc_239EB:
inc rcx
add rax, 20h ; ' '
cmp rcx, 8
jnz short loc_239DC
jmp loc_23B7E
loc_239FD:
lea rax, off_A90D0; jumptable 00000000000239B2 case 17
retn
loc_23A05:
lea rax, off_A91B0; jumptable 00000000000239B2 case 24
retn
loc_23A0D:
lea rax, unk_A8720; jumptable 00000000000239B2 case 7
lea rdx, ETH_TRANSACTION_PROOF
xor ecx, ecx
loc_23A1D:
cmp dword ptr [rax-8], 2
jb short loc_23A2C
cmp [rax], rdx
jz loc_23B80
loc_23A2C:
inc rcx
add rax, 20h ; ' '
cmp rcx, 8
jnz short loc_23A1D
jmp loc_23B7E
loc_23A3E:
lea rax, unk_A8660; jumptable 00000000000239B2 case 10
lea rdx, LIGHT_CLIENT_UPDATE_CONTAINER
xor ecx, ecx
loc_23A4E:
cmp dword ptr [rax-8], 2
jb short loc_23A59
cmp [rax], rdx
jz short loc_23A68
loc_23A59:
inc rcx
add rax, 20h ; ' '
cmp rcx, 2
jnz short loc_23A4E
xor ecx, ecx
loc_23A68:
shl rcx, 5
lea rax, C4_REQUEST_SYNCDATA_UNION
jmp loc_23B8B
loc_23A78:
lea rax, C4_REQUEST_DATA_UNION; jumptable 00000000000239B2 case 16
retn
def_239B2:
xor eax, eax; jumptable 00000000000239B2 default case, case 5
retn
loc_23A83:
lea rax, unk_A8720; jumptable 00000000000239B2 case 6
lea rdx, ETH_ACCOUNT_PROOF
xor ecx, ecx
loc_23A93:
cmp dword ptr [rax-8], 2
jb short loc_23AA2
cmp [rax], rdx
jz loc_23B80
loc_23AA2:
inc rcx
add rax, 20h ; ' '
cmp rcx, 8
jnz short loc_23A93
jmp loc_23B7E
loc_23AB4:
lea rax, LIGHT_CLIENT_UPDATE_CONTAINER; jumptable 00000000000239B2 case 11
retn
loc_23ABC:
lea rax, ETH_STATE_PROOF_CONTAINER; jumptable 00000000000239B2 case 12
retn
loc_23AC4:
lea rax, off_A9110; jumptable 00000000000239B2 case 19
retn
loc_23ACC:
lea rax, off_A9130; jumptable 00000000000239B2 case 20
retn
loc_23AD4:
lea rax, unk_A8720; jumptable 00000000000239B2 case 8
lea rdx, ETH_RECEIPT_PROOF
xor ecx, ecx
loc_23AE4:
cmp dword ptr [rax-8], 2
jb short loc_23AF3
cmp [rax], rdx
jz loc_23B80
loc_23AF3:
inc rcx
add rax, 20h ; ' '
cmp rcx, 8
jnz short loc_23AE4
jmp short loc_23B7E
loc_23B02:
lea rax, unk_A8720; jumptable 00000000000239B2 case 9
lea rdx, ETH_LOGS_BLOCK_CONTAINER
xor ecx, ecx
loc_23B12:
cmp dword ptr [rax-8], 2
jb short loc_23B1D
cmp [rax], rdx
jz short loc_23B80
loc_23B1D:
inc rcx
add rax, 20h ; ' '
cmp rcx, 8
jnz short loc_23B12
jmp short loc_23B7E
loc_23B2C:
lea rax, unk_A8720; jumptable 00000000000239B2 case 14
lea rdx, ETH_SYNC_PROOF
xor ecx, ecx
loc_23B3C:
cmp dword ptr [rax-8], 2
jb short loc_23B47
cmp [rax], rdx
jz short loc_23B80
loc_23B47:
inc rcx
add rax, 20h ; ' '
cmp rcx, 8
jnz short loc_23B3C
jmp short loc_23B7E
loc_23B56:
lea rax, unk_A8720; jumptable 00000000000239B2 case 13
lea rdx, ETH_CALL_PROOF
xor ecx, ecx
loc_23B66:
cmp dword ptr [rax-8], 2
jb short loc_23B71
cmp [rax], rdx
jz short loc_23B80
loc_23B71:
inc rcx
add rax, 20h ; ' '
cmp rcx, 8
jnz short loc_23B66
loc_23B7E:
xor ecx, ecx
loc_23B80:
shl rcx, 5
lea rax, C4_REQUEST_PROOFS_UNION
loc_23B8B:
add rax, rcx
retn
loc_23B8F:
lea rax, off_A9170; jumptable 00000000000239B2 case 22
retn
loc_23B97:
lea rax, off_A9150; jumptable 00000000000239B2 case 21
retn
| char ** eth_ssz_verification_type(int a1)
{
char ***v2; // rax
long long v3; // rcx
_UNKNOWN ***v4; // rax
char ***v5; // rax
long long v6; // rcx
long long v7; // rcx
char **v8; // rax
char ***v9; // rax
_UNKNOWN ***v10; // rax
char ***v11; // rax
char ***v12; // rax
_UNKNOWN ***v13; // rax
switch ( a1 )
{
case 4:
return &C4_REQUEST_CONTAINER;
case 6:
v9 = (char ***)&unk_A8720;
v3 = 0LL;
while ( *((_DWORD *)v9 - 2) < 2u || *v9 != Ð_ACCOUNT_PROOF )
{
++v3;
v9 += 4;
if ( v3 == 8 )
goto LABEL_53;
}
goto LABEL_54;
case 7:
v4 = (_UNKNOWN ***)&unk_A8720;
v3 = 0LL;
while ( *((_DWORD *)v4 - 2) < 2u || *v4 != Ð_TRANSACTION_PROOF )
{
++v3;
v4 += 4;
if ( v3 == 8 )
goto LABEL_53;
}
goto LABEL_54;
case 8:
v10 = (_UNKNOWN ***)&unk_A8720;
v3 = 0LL;
while ( *((_DWORD *)v10 - 2) < 2u || *v10 != Ð_RECEIPT_PROOF )
{
++v3;
v10 += 4;
if ( v3 == 8 )
goto LABEL_53;
}
goto LABEL_54;
case 9:
v11 = (char ***)&unk_A8720;
v3 = 0LL;
while ( *((_DWORD *)v11 - 2) < 2u || *v11 != Ð_LOGS_BLOCK_CONTAINER )
{
++v3;
v11 += 4;
if ( v3 == 8 )
goto LABEL_53;
}
goto LABEL_54;
case 10:
v5 = (char ***)&unk_A8660;
v6 = 0LL;
while ( *((_DWORD *)v5 - 2) < 2u || *v5 != &LIGHT_CLIENT_UPDATE_CONTAINER )
{
++v6;
v5 += 4;
if ( v6 == 2 )
{
v6 = 0LL;
break;
}
}
v7 = 4 * v6;
v8 = &C4_REQUEST_SYNCDATA_UNION;
return &v8[v7];
case 11:
return &LIGHT_CLIENT_UPDATE_CONTAINER;
case 12:
return Ð_STATE_PROOF_CONTAINER;
case 13:
v13 = (_UNKNOWN ***)&unk_A8720;
v3 = 0LL;
while ( *((_DWORD *)v13 - 2) < 2u || *v13 != Ð_CALL_PROOF )
{
++v3;
v13 += 4;
if ( v3 == 8 )
goto LABEL_53;
}
goto LABEL_54;
case 14:
v12 = (char ***)&unk_A8720;
v3 = 0LL;
while ( *((_DWORD *)v12 - 2) < 2u || *v12 != Ð_SYNC_PROOF )
{
++v3;
v12 += 4;
if ( v3 == 8 )
goto LABEL_53;
}
goto LABEL_54;
case 15:
v2 = (char ***)&unk_A8720;
v3 = 0LL;
break;
case 16:
return &C4_REQUEST_DATA_UNION;
case 17:
return (char **)&off_A90D0;
case 18:
return (char **)&off_A90F0;
case 19:
return (char **)&off_A9110;
case 20:
return &off_A9130;
case 21:
return &off_A9150;
case 22:
return &off_A9170;
case 23:
return &off_A9190;
case 24:
return &off_A91B0;
default:
return 0LL;
}
while ( *((_DWORD *)v2 - 2) < 2u || *v2 != Ð_BLOCK_PROOF )
{
++v3;
v2 += 4;
if ( v3 == 8 )
{
LABEL_53:
v3 = 0LL;
break;
}
}
LABEL_54:
v7 = 4 * v3;
v8 = &C4_REQUEST_PROOFS_UNION;
return &v8[v7];
}
| eth_ssz_verification_type:
ADD EDI,-0x4
CMP EDI,0x14
JA 0x00123a80
LEA RAX,[0x17f680]
MOVSXD RCX,dword ptr [RAX + RDI*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_4:
LEA RAX,[0x1a85f0]
RET
caseD_17:
LEA RAX,[0x1a9190]
RET
caseD_12:
LEA RAX,[0x1a90f0]
RET
caseD_f:
LEA RAX,[0x1a8720]
LEA RDX,[0x1a8ff0]
XOR ECX,ECX
LAB_001239dc:
CMP dword ptr [RAX + -0x8],0x2
JC 0x001239eb
CMP qword ptr [RAX],RDX
JZ 0x00123b80
LAB_001239eb:
INC RCX
ADD RAX,0x20
CMP RCX,0x8
JNZ 0x001239dc
JMP 0x00123b7e
caseD_11:
LEA RAX,[0x1a90d0]
RET
caseD_18:
LEA RAX,[0x1a91b0]
RET
caseD_7:
LEA RAX,[0x1a8720]
LEA RDX,[0x1a8a10]
XOR ECX,ECX
LAB_00123a1d:
CMP dword ptr [RAX + -0x8],0x2
JC 0x00123a2c
CMP qword ptr [RAX],RDX
JZ 0x00123b80
LAB_00123a2c:
INC RCX
ADD RAX,0x20
CMP RCX,0x8
JNZ 0x00123a1d
JMP 0x00123b7e
caseD_a:
LEA RAX,[0x1a8660]
LEA RDX,[0x1a85d0]
XOR ECX,ECX
LAB_00123a4e:
CMP dword ptr [RAX + -0x8],0x2
JC 0x00123a59
CMP qword ptr [RAX],RDX
JZ 0x00123a68
LAB_00123a59:
INC RCX
ADD RAX,0x20
CMP RCX,0x2
JNZ 0x00123a4e
XOR ECX,ECX
LAB_00123a68:
SHL RCX,0x5
LEA RAX,[0x1a8650]
JMP 0x00123b8b
caseD_10:
LEA RAX,[0x1a90b0]
RET
caseD_5:
XOR EAX,EAX
RET
caseD_6:
LEA RAX,[0x1a8720]
LEA RDX,[0x1a8830]
XOR ECX,ECX
LAB_00123a93:
CMP dword ptr [RAX + -0x8],0x2
JC 0x00123aa2
CMP qword ptr [RAX],RDX
JZ 0x00123b80
LAB_00123aa2:
INC RCX
ADD RAX,0x20
CMP RCX,0x8
JNZ 0x00123a93
JMP 0x00123b7e
caseD_b:
LEA RAX,[0x1a85d0]
RET
caseD_c:
LEA RAX,[0x1a8630]
RET
caseD_13:
LEA RAX,[0x1a9110]
RET
caseD_14:
LEA RAX,[0x1a9130]
RET
caseD_8:
LEA RAX,[0x1a8720]
LEA RDX,[0x1a8b30]
XOR ECX,ECX
LAB_00123ae4:
CMP dword ptr [RAX + -0x8],0x2
JC 0x00123af3
CMP qword ptr [RAX],RDX
JZ 0x00123b80
LAB_00123af3:
INC RCX
ADD RAX,0x20
CMP RCX,0x8
JNZ 0x00123ae4
JMP 0x00123b7e
caseD_9:
LEA RAX,[0x1a8720]
LEA RDX,[0x1a8610]
XOR ECX,ECX
LAB_00123b12:
CMP dword ptr [RAX + -0x8],0x2
JC 0x00123b1d
CMP qword ptr [RAX],RDX
JZ 0x00123b80
LAB_00123b1d:
INC RCX
ADD RAX,0x20
CMP RCX,0x8
JNZ 0x00123b12
JMP 0x00123b7e
caseD_e:
LEA RAX,[0x1a8720]
LEA RDX,[0x1a8ed0]
XOR ECX,ECX
LAB_00123b3c:
CMP dword ptr [RAX + -0x8],0x2
JC 0x00123b47
CMP qword ptr [RAX],RDX
JZ 0x00123b80
LAB_00123b47:
INC RCX
ADD RAX,0x20
CMP RCX,0x8
JNZ 0x00123b3c
JMP 0x00123b7e
caseD_d:
LEA RAX,[0x1a8720]
LEA RDX,[0x1a8dd0]
XOR ECX,ECX
LAB_00123b66:
CMP dword ptr [RAX + -0x8],0x2
JC 0x00123b71
CMP qword ptr [RAX],RDX
JZ 0x00123b80
LAB_00123b71:
INC RCX
ADD RAX,0x20
CMP RCX,0x8
JNZ 0x00123b66
LAB_00123b7e:
XOR ECX,ECX
LAB_00123b80:
SHL RCX,0x5
LEA RAX,[0x1a8710]
LAB_00123b8b:
ADD RAX,RCX
RET
caseD_16:
LEA RAX,[0x1a9170]
RET
caseD_15:
LEA RAX,[0x1a9150]
RET
|
int1 * eth_ssz_verification_type(int4 param_1)
{
long *plVar1;
int1 *puVar2;
long lVar3;
switch(param_1) {
case 4:
return C4_REQUEST_CONTAINER;
default:
return (int1 *)0x0;
case 6:
plVar1 = (long *)(C4_REQUEST_PROOFS_UNION + 0x10);
lVar3 = 0;
do {
if ((1 < *(uint *)(plVar1 + -1)) && ((int1 *)*plVar1 == ETH_ACCOUNT_PROOF))
goto LAB_00123b80;
lVar3 = lVar3 + 1;
plVar1 = plVar1 + 4;
} while (lVar3 != 8);
break;
case 7:
plVar1 = (long *)(C4_REQUEST_PROOFS_UNION + 0x10);
lVar3 = 0;
do {
if ((1 < *(uint *)(plVar1 + -1)) && ((int1 *)*plVar1 == ETH_TRANSACTION_PROOF))
goto LAB_00123b80;
lVar3 = lVar3 + 1;
plVar1 = plVar1 + 4;
} while (lVar3 != 8);
break;
case 8:
plVar1 = (long *)(C4_REQUEST_PROOFS_UNION + 0x10);
lVar3 = 0;
do {
if ((1 < *(uint *)(plVar1 + -1)) && ((int1 *)*plVar1 == ETH_RECEIPT_PROOF))
goto LAB_00123b80;
lVar3 = lVar3 + 1;
plVar1 = plVar1 + 4;
} while (lVar3 != 8);
break;
case 9:
plVar1 = (long *)(C4_REQUEST_PROOFS_UNION + 0x10);
lVar3 = 0;
do {
if ((1 < *(uint *)(plVar1 + -1)) && ((int1 *)*plVar1 == ETH_LOGS_BLOCK_CONTAINER))
goto LAB_00123b80;
lVar3 = lVar3 + 1;
plVar1 = plVar1 + 4;
} while (lVar3 != 8);
break;
case 10:
plVar1 = (long *)(C4_REQUEST_SYNCDATA_UNION + 0x10);
lVar3 = 0;
do {
if ((1 < *(uint *)(plVar1 + -1)) && ((int1 *)*plVar1 == LIGHT_CLIENT_UPDATE_CONTAINER))
goto LAB_00123a68;
lVar3 = lVar3 + 1;
plVar1 = plVar1 + 4;
} while (lVar3 != 2);
lVar3 = 0;
LAB_00123a68:
puVar2 = C4_REQUEST_SYNCDATA_UNION;
goto LAB_00123b8b;
case 0xb:
return LIGHT_CLIENT_UPDATE_CONTAINER;
case 0xc:
return ETH_STATE_PROOF_CONTAINER;
case 0xd:
plVar1 = (long *)(C4_REQUEST_PROOFS_UNION + 0x10);
lVar3 = 0;
do {
if ((1 < *(uint *)(plVar1 + -1)) && ((int1 *)*plVar1 == ETH_CALL_PROOF))
goto LAB_00123b80;
lVar3 = lVar3 + 1;
plVar1 = plVar1 + 4;
} while (lVar3 != 8);
break;
case 0xe:
plVar1 = (long *)(C4_REQUEST_PROOFS_UNION + 0x10);
lVar3 = 0;
do {
if ((1 < *(uint *)(plVar1 + -1)) && ((int1 *)*plVar1 == ETH_SYNC_PROOF))
goto LAB_00123b80;
lVar3 = lVar3 + 1;
plVar1 = plVar1 + 4;
} while (lVar3 != 8);
break;
case 0xf:
plVar1 = (long *)(C4_REQUEST_PROOFS_UNION + 0x10);
lVar3 = 0;
do {
if ((1 < *(uint *)(plVar1 + -1)) && ((int1 *)*plVar1 == ETH_BLOCK_PROOF))
goto LAB_00123b80;
lVar3 = lVar3 + 1;
plVar1 = plVar1 + 4;
} while (lVar3 != 8);
break;
case 0x10:
return C4_REQUEST_DATA_UNION;
case 0x11:
return (int1 *)0x1a90d0;
case 0x12:
return (int1 *)0x1a90f0;
case 0x13:
return (int1 *)0x1a9110;
case 0x14:
return (int1 *)0x1a9130;
case 0x15:
return (int1 *)0x1a9150;
case 0x16:
return (int1 *)0x1a9170;
case 0x17:
return (int1 *)0x1a9190;
case 0x18:
return (int1 *)0x1a91b0;
}
lVar3 = 0;
LAB_00123b80:
puVar2 = C4_REQUEST_PROOFS_UNION;
LAB_00123b8b:
return puVar2 + lVar3 * 0x20;
}
| |
22,367 | my_casedn_8bit | eloqsql/strings/ctype-simple.c | size_t my_casedn_8bit(CHARSET_INFO * cs, const char *src, size_t srclen,
char *dst, size_t dstlen __attribute__((unused)))
{
const char *end= src + srclen;
register const uchar *map=cs->to_lower;
DBUG_ASSERT(srclen <= dstlen);
for ( ; src != end ; src++)
*dst++= (char) map[(uchar) *src];
return srclen;
} | O3 | c | my_casedn_8bit:
movq %rdx, %rax
testq %rdx, %rdx
je 0x37184
pushq %rbp
movq %rsp, %rbp
movq 0x48(%rdi), %rdx
xorl %edi, %edi
movzbl (%rsi,%rdi), %r8d
movb (%rdx,%r8), %r8b
movb %r8b, (%rcx,%rdi)
incq %rdi
cmpq %rdi, %rax
jne 0x3716e
popq %rbp
retq
| my_casedn_8bit:
mov rax, rdx
test rdx, rdx
jz short locret_37184
push rbp
mov rbp, rsp
mov rdx, [rdi+48h]
xor edi, edi
loc_3716E:
movzx r8d, byte ptr [rsi+rdi]
mov r8b, [rdx+r8]
mov [rcx+rdi], r8b
inc rdi
cmp rax, rdi
jnz short loc_3716E
pop rbp
locret_37184:
retn
| long long my_casedn_8bit(long long a1, long long a2, long long a3, long long a4)
{
long long result; // rax
long long v5; // rdx
long long v6; // rdi
result = a3;
if ( a3 )
{
v5 = *(_QWORD *)(a1 + 72);
v6 = 0LL;
do
{
*(_BYTE *)(a4 + v6) = *(_BYTE *)(v5 + *(unsigned __int8 *)(a2 + v6));
++v6;
}
while ( result != v6 );
}
return result;
}
| my_casedn_8bit:
MOV RAX,RDX
TEST RDX,RDX
JZ 0x00137184
PUSH RBP
MOV RBP,RSP
MOV RDX,qword ptr [RDI + 0x48]
XOR EDI,EDI
LAB_0013716e:
MOVZX R8D,byte ptr [RSI + RDI*0x1]
MOV R8B,byte ptr [RDX + R8*0x1]
MOV byte ptr [RCX + RDI*0x1],R8B
INC RDI
CMP RAX,RDI
JNZ 0x0013716e
POP RBP
LAB_00137184:
RET
|
void my_casedn_8bit(long param_1,long param_2,long param_3,long param_4)
{
long lVar1;
long lVar2;
if (param_3 != 0) {
lVar1 = *(long *)(param_1 + 0x48);
lVar2 = 0;
do {
*(int1 *)(param_4 + lVar2) = *(int1 *)(lVar1 + (ulong)*(byte *)(param_2 + lVar2));
lVar2 = lVar2 + 1;
} while (param_3 != lVar2);
}
return;
}
| |
22,368 | 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>::push_back(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>) | monkey531[P]llama/common/json.hpp | void push_back(initializer_list_t init)
{
if (is_object() && init.size() == 2 && (*init.begin())->is_string())
{
basic_json&& key = init.begin()->moved_or_copied();
push_back(typename object_t::value_type(
std::move(key.get_ref<string_t&>()), (init.begin() + 1)->moved_or_copied()));
}
else
{
push_back(basic_json(init));
}
} | O2 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::push_back(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>):
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x1, (%rdi)
sete %al
cmpq $0x2, %rdx
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x5cf12
movq 0x10(%r14), %rax
testq %rax, %rax
cmoveq %r14, %rax
cmpb $0x3, (%rax)
jne 0x5cf12
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x78c90
movq %r15, %rdi
callq 0x898e4
movq %rax, %r15
addq $0x18, %r14
movq %rsp, %rdi
movq %r14, %rsi
callq 0x78c90
leaq 0x20(%rsp), %r14
movq %rsp, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x89656
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8958a
leaq 0x20(%rsp), %rdi
callq 0x43300
movq %rsp, %rdi
callq 0x3deea
leaq 0x10(%rsp), %rdi
jmp 0x5cf39
leaq 0x20(%rsp), %r15
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
movq %r15, %rdi
movq %r14, %rsi
callq 0x5d45e
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8967c
leaq 0x20(%rsp), %rdi
callq 0x3deea
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x43300
movq %rsp, %rdi
callq 0x3deea
jmp 0x5cf64
jmp 0x5cf61
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
jmp 0x5cf73
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x3deea
movq %rbx, %rdi
callq 0x24f80
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backESt16initializer_listINS0_6detail8json_refISD_EEE:
push r15
push r14
push rbx
sub rsp, 50h
mov r14, rsi
mov rbx, rdi
cmp byte ptr [rdi], 1
setz al
cmp rdx, 2
setz cl
and cl, al
cmp cl, 1
jnz short loc_5CF12
mov rax, [r14+10h]
test rax, rax
cmovz rax, r14
cmp byte ptr [rax], 3
jnz short loc_5CF12
lea r15, [rsp+68h+var_58]
mov rdi, r15
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::moved_or_copied(void)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE12get_ref_implIRS9_SD_EET_RT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::get_ref_impl<std::string&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,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 r15, rax
add r14, 18h
mov rdi, rsp
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::moved_or_copied(void)
lea r14, [rsp+68h+var_48]
mov rdx, rsp
mov rdi, r14
mov rsi, r15
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2IS5_SF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
mov rdi, rbx
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backERKSt4pairIKS9_SD_E; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::push_back(std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&)
lea rdi, [rsp+68h+var_48]; void *
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEED2Ev; 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>>::~pair()
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()
lea rdi, [rsp+68h+var_58]
jmp short loc_5CF39
loc_5CF12:
lea r15, [rsp+68h+var_48]
push 1
pop rcx
push 2
pop r8
mov rdi, r15
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)
mov rdi, rbx
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backEOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::push_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>&&)
lea rdi, [rsp+68h+var_48]
loc_5CF39:
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()
add rsp, 50h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
lea rdi, [rsp+arg_18]; void *
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEED2Ev; 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>>::~pair()
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()
jmp short loc_5CF64
jmp short $+2
loc_5CF61:
mov rbx, rax
loc_5CF64:
lea rdi, [rsp+arg_8]
jmp short loc_5CF73
mov rbx, rax
lea rdi, [rsp+arg_18]
loc_5CF73:
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::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::push_back(
_BYTE *a1,
long long a2,
long long a3)
{
_BYTE *v3; // rax
long long v4; // r15
_BYTE *v5; // rdi
_BYTE v7[16]; // [rsp+0h] [rbp-68h] BYREF
_BYTE v8[16]; // [rsp+10h] [rbp-58h] BYREF
_BYTE v9[72]; // [rsp+20h] [rbp-48h] BYREF
if ( *a1 != 1 || a3 != 2 )
goto LABEL_6;
v3 = *(_BYTE **)(a2 + 16);
if ( !v3 )
v3 = (_BYTE *)a2;
if ( *v3 == 3 )
{
nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::moved_or_copied(
v8,
a2);
v4 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_ref_impl<std::string&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(v8);
nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::moved_or_copied(
v7,
a2 + 24);
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2IS5_SF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
v9,
v4,
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>::push_back(
a1,
v9);
std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~pair(v9);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v7);
v5 = v8;
}
else
{
LABEL_6:
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(
v9,
a2,
a3,
1LL,
2LL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::push_back(
a1,
v9);
v5 = v9;
}
return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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);
}
| push_back:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV R14,RSI
MOV RBX,RDI
CMP byte ptr [RDI],0x1
SETZ AL
CMP RDX,0x2
SETZ CL
AND CL,AL
CMP CL,0x1
JNZ 0x0015cf12
MOV RAX,qword ptr [R14 + 0x10]
TEST RAX,RAX
CMOVZ RAX,R14
CMP byte ptr [RAX],0x3
JNZ 0x0015cf12
LEA R15,[RSP + 0x10]
MOV RDI,R15
MOV RSI,R14
CALL 0x00178c90
LAB_0015cec1:
MOV RDI,R15
CALL 0x001898e4
MOV R15,RAX
ADD R14,0x18
LAB_0015ced0:
MOV RDI,RSP
MOV RSI,R14
CALL 0x00178c90
LEA R14,[RSP + 0x20]
MOV RDX,RSP
MOV RDI,R14
MOV RSI,R15
CALL 0x00189656
LAB_0015ceee:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0018958a
LAB_0015cef9:
LEA RDI,[RSP + 0x20]
CALL 0x00143300
MOV RDI,RSP
CALL 0x0013deea
LEA RDI,[RSP + 0x10]
JMP 0x0015cf39
LAB_0015cf12:
LEA R15,[RSP + 0x20]
PUSH 0x1
POP RCX
PUSH 0x2
POP R8
MOV RDI,R15
MOV RSI,R14
CALL 0x0015d45e
LAB_0015cf29:
MOV RDI,RBX
MOV RSI,R15
CALL 0x0018967c
LAB_0015cf34:
LEA RDI,[RSP + 0x20]
LAB_0015cf39:
CALL 0x0013deea
ADD RSP,0x50
POP RBX
POP R14
POP R15
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >,
void>::push_back(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> > >) */
void nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::push_back(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_1,char *param_2,long param_3)
{
char *pcVar1;
string *psVar2;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_68 [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_58 [16];
pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
local_48 [48];
if (param_3 == 2 &&
*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>
)0x1) {
pcVar1 = *(char **)(param_2 + 0x10);
if (*(char **)(param_2 + 0x10) == (char *)0x0) {
pcVar1 = param_2;
}
if (*pcVar1 == '\x03') {
detail::
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::moved_or_copied();
/* try { // try from 0015cec1 to 0015cec8 has its CatchHandler @ 0015cf61 */
psVar2 = get_ref_impl<std::__cxx11::string&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(local_58);
/* try { // try from 0015ced0 to 0015ceda has its CatchHandler @ 0015cf5f */
detail::
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::moved_or_copied();
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2IS5_SF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_48,psVar2,abStack_68);
/* try { // try from 0015ceee to 0015cef8 has its CatchHandler @ 0015cf48 */
push_back(param_1,local_48);
std::
pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::~pair(local_48);
~basic_json(abStack_68);
this = local_58;
goto LAB_0015cf39;
}
}
basic_json(local_48,param_2,param_3,1,2);
/* try { // try from 0015cf29 to 0015cf33 has its CatchHandler @ 0015cf6b */
push_back(param_1,local_48);
this = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)local_48;
LAB_0015cf39:
~basic_json(this);
return;
}
| |
22,369 | 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>::push_back(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>) | monkey531[P]llama/common/json.hpp | void push_back(initializer_list_t init)
{
if (is_object() && init.size() == 2 && (*init.begin())->is_string())
{
basic_json&& key = init.begin()->moved_or_copied();
push_back(typename object_t::value_type(
std::move(key.get_ref<string_t&>()), (init.begin() + 1)->moved_or_copied()));
}
else
{
push_back(basic_json(init));
}
} | O3 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::push_back(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>):
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x1, (%rdi)
sete %al
cmpq $0x2, %rdx
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x7efc7
movq 0x10(%r14), %rax
testq %rax, %rax
cmoveq %r14, %rax
cmpb $0x3, (%rax)
jne 0x7efc7
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xa1a4c
movq %r15, %rdi
callq 0xb92dc
movq %rax, %r15
addq $0x18, %r14
movq %rsp, %rdi
movq %r14, %rsi
callq 0xa1a4c
leaq 0x20(%rsp), %r14
movq %rsp, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xb8f1c
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb8e28
leaq 0x40(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x590b4
movq %rbx, %rdi
callq 0x5e5a2
movq -0x20(%rbx), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x7efab
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1b8c0
movq %rsp, %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x590b4
movq %rbx, %rdi
callq 0x5e5a2
leaq 0x10(%rsp), %rbx
jmp 0x7eff2
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0x7f4be
movq %rbx, %rdi
movq %r15, %rsi
callq 0xb8f92
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x590b4
movq %rbx, %rdi
callq 0x5e5a2
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x8788e
movq %rsp, %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x590b4
movq %r14, %rdi
callq 0x5e5a2
jmp 0x7f037
jmp 0x7f034
movq %rax, %rbx
leaq 0x10(%rsp), %r14
jmp 0x7f046
movq %rax, %rbx
leaq 0x20(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x590b4
movq %r14, %rdi
callq 0x5e5a2
movq %rbx, %rdi
callq 0x1bf90
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backESt16initializer_listINS0_6detail8json_refISD_EEE:
push r15
push r14
push rbx
sub rsp, 50h
mov r14, rsi
mov rbx, rdi
cmp byte ptr [rdi], 1
setz al
cmp rdx, 2
setz cl
and cl, al
cmp cl, 1
jnz loc_7EFC7
mov rax, [r14+10h]
test rax, rax
cmovz rax, r14
cmp byte ptr [rax], 3
jnz loc_7EFC7
lea r15, [rsp+68h+var_58]
mov rdi, r15
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::moved_or_copied(void)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE12get_ref_implIRS9_SD_EET_RT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::get_ref_impl<std::string&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,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 r15, rax
add r14, 18h
mov rdi, rsp
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::moved_or_copied(void)
lea r14, [rsp+68h+var_48]
mov rdx, rsp
mov rdi, r14
mov rsi, r15
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2IS5_SF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
mov rdi, rbx
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backERKSt4pairIKS9_SD_E; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::push_back(std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&)
lea rbx, [rsp+68h+var_28]
mov rdi, rbx
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, rbx
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-20h]; void *
lea rax, [rsp+68h+var_38]
cmp rdi, rax
jz short loc_7EFAB
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7EFAB:
mov rbx, rsp
mov rdi, rbx
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, rbx
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()
lea rbx, [rsp+68h+var_58]
jmp short loc_7EFF2
loc_7EFC7:
lea r15, [rsp+68h+var_48]
mov rdi, r15
mov rsi, r14
mov ecx, 1
mov r8d, 2
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)
mov rdi, rbx
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backEOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::push_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>&&)
lea rbx, [rsp+68h+var_48]
loc_7EFF2:
mov rdi, rbx
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, rbx
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()
add rsp, 50h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
lea rdi, [rsp+arg_18]
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEED2Ev; 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>>::~pair()
mov r14, rsp
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()
jmp short loc_7F037
jmp short $+2
loc_7F034:
mov rbx, rax
loc_7F037:
lea r14, [rsp+arg_8]
jmp short loc_7F046
mov rbx, rax
lea r14, [rsp+arg_18]
loc_7F046:
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::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::push_back(
_BYTE *a1,
long long a2,
long long a3)
{
_BYTE *v3; // rax
long long v4; // r15
char *v5; // rbx
char v7[16]; // [rsp+0h] [rbp-68h] BYREF
_BYTE v8[16]; // [rsp+10h] [rbp-58h] BYREF
void *v9[2]; // [rsp+20h] [rbp-48h] BYREF
long long v10; // [rsp+30h] [rbp-38h] BYREF
char v11[40]; // [rsp+40h] [rbp-28h] BYREF
if ( *a1 != 1 || a3 != 2 )
goto LABEL_8;
v3 = *(_BYTE **)(a2 + 16);
if ( !v3 )
v3 = (_BYTE *)a2;
if ( *v3 == 3 )
{
nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::moved_or_copied(
v8,
a2);
v4 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_ref_impl<std::string&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(v8);
nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::moved_or_copied(
v7,
a2 + 24);
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2IS5_SF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
v9,
v4,
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>::push_back(
a1,
v9);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v11);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v11);
if ( v9[0] != &v10 )
operator delete(v9[0], v10 + 1);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(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>::data::~data(v7);
v5 = v8;
}
else
{
LABEL_8:
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(
v9,
a2,
a3,
1LL,
2LL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::push_back(
a1,
v9);
v5 = (char *)v9;
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v5);
return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v5);
}
| push_back:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV R14,RSI
MOV RBX,RDI
CMP byte ptr [RDI],0x1
SETZ AL
CMP RDX,0x2
SETZ CL
AND CL,AL
CMP CL,0x1
JNZ 0x0017efc7
MOV RAX,qword ptr [R14 + 0x10]
TEST RAX,RAX
CMOVZ RAX,R14
CMP byte ptr [RAX],0x3
JNZ 0x0017efc7
LEA R15,[RSP + 0x10]
MOV RDI,R15
MOV RSI,R14
CALL 0x001a1a4c
LAB_0017ef41:
MOV RDI,R15
CALL 0x001b92dc
MOV R15,RAX
ADD R14,0x18
LAB_0017ef50:
MOV RDI,RSP
MOV RSI,R14
CALL 0x001a1a4c
LEA R14,[RSP + 0x20]
MOV RDX,RSP
MOV RDI,R14
MOV RSI,R15
CALL 0x001b8f1c
LAB_0017ef6e:
MOV RDI,RBX
MOV RSI,R14
CALL 0x001b8e28
LAB_0017ef79:
LEA RBX,[RSP + 0x40]
MOV RDI,RBX
XOR ESI,ESI
CALL 0x001590b4
MOV RDI,RBX
CALL 0x0015e5a2
MOV RDI,qword ptr [RBX + -0x20]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x0017efab
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011b8c0
LAB_0017efab:
MOV RBX,RSP
MOV RDI,RBX
XOR ESI,ESI
CALL 0x001590b4
MOV RDI,RBX
CALL 0x0015e5a2
LEA RBX,[RSP + 0x10]
JMP 0x0017eff2
LAB_0017efc7:
LEA R15,[RSP + 0x20]
MOV RDI,R15
MOV RSI,R14
MOV ECX,0x1
MOV R8D,0x2
CALL 0x0017f4be
LAB_0017efe2:
MOV RDI,RBX
MOV RSI,R15
CALL 0x001b8f92
LAB_0017efed:
LEA RBX,[RSP + 0x20]
LAB_0017eff2:
MOV RDI,RBX
XOR ESI,ESI
CALL 0x001590b4
MOV RDI,RBX
CALL 0x0015e5a2
ADD RSP,0x50
POP RBX
POP R14
POP R15
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >,
void>::push_back(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> > >) */
void nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::push_back(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_1,char *param_2,long param_3)
{
char *pcVar1;
string *psVar2;
data *this;
data adStack_68 [16];
basic_json local_58 [16];
long *local_48 [2];
long local_38 [2];
data local_28 [16];
if (param_3 == 2 &&
*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>
)0x1) {
pcVar1 = *(char **)(param_2 + 0x10);
if (*(char **)(param_2 + 0x10) == (char *)0x0) {
pcVar1 = param_2;
}
if (*pcVar1 == '\x03') {
detail::
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::moved_or_copied();
/* try { // try from 0017ef41 to 0017ef48 has its CatchHandler @ 0017f034 */
psVar2 = get_ref_impl<std::__cxx11::string&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(local_58);
/* try { // try from 0017ef50 to 0017ef5a has its CatchHandler @ 0017f032 */
detail::
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::moved_or_copied();
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2IS5_SF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_48,psVar2,adStack_68);
/* try { // try from 0017ef6e to 0017ef78 has its CatchHandler @ 0017f00e */
push_back(param_1,(pair *)local_48);
assert_invariant(SUB81(local_28,0));
data::~data(local_28);
if (local_48[0] != local_38) {
operator_delete(local_48[0],local_38[0] + 1);
}
assert_invariant(SUB81(adStack_68,0));
data::~data(adStack_68);
this = (data *)local_58;
goto LAB_0017eff2;
}
}
basic_json((basic_json *)local_48,param_2,param_3,1,2);
/* try { // try from 0017efe2 to 0017efec has its CatchHandler @ 0017f03e */
push_back(param_1,(basic_json *)local_48);
this = (data *)local_48;
LAB_0017eff2:
assert_invariant(SUB81(this,0));
data::~data(this);
return;
}
| |
22,370 | stbi__parse_zlib(stbi__zbuf*, int) | monkey531[P]llama/examples/llava/../../common/stb_image.h | static int stbi__parse_zlib(stbi__zbuf *a, int parse_header)
{
int final, type;
if (parse_header)
if (!stbi__parse_zlib_header(a)) return 0;
a->num_bits = 0;
a->code_buffer = 0;
a->hit_zeof_once = 0;
do {
final = stbi__zreceive(a,1);
type = stbi__zreceive(a,2);
if (type == 0) {
if (!stbi__parse_uncompressed_block(a)) return 0;
} else if (type == 3) {
return 0;
} else {
if (type == 1) {
// use fixed code lengths
if (!stbi__zbuild_huffman(&a->z_length , stbi__zdefault_length , STBI__ZNSYMS)) return 0;
if (!stbi__zbuild_huffman(&a->z_distance, stbi__zdefault_distance, 32)) return 0;
} else {
if (!stbi__compute_huffman_codes(a)) return 0;
}
if (!stbi__parse_huffman_block(a)) return 0;
}
} while (!final);
return 1;
} | O0 | c | stbi__parse_zlib(stbi__zbuf*, int):
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movl %esi, 0x14(%rsp)
cmpl $0x0, 0x14(%rsp)
je 0xa1a62
movq 0x18(%rsp), %rdi
callq 0xa1bb0
cmpl $0x0, %eax
jne 0xa1a60
movl $0x0, 0x24(%rsp)
jmp 0xa1b9d
jmp 0xa1a62
movq 0x18(%rsp), %rax
movl $0x0, 0x10(%rax)
movq 0x18(%rsp), %rax
movl $0x0, 0x18(%rax)
movq 0x18(%rsp), %rax
movl $0x0, 0x14(%rax)
movq 0x18(%rsp), %rdi
movl $0x1, %esi
callq 0xa1c80
movl %eax, 0x10(%rsp)
movq 0x18(%rsp), %rdi
movl $0x2, %esi
callq 0xa1c80
movl %eax, 0xc(%rsp)
cmpl $0x0, 0xc(%rsp)
jne 0xa1ad4
movq 0x18(%rsp), %rdi
callq 0xa1cf0
cmpl $0x0, %eax
jne 0xa1acf
movl $0x0, 0x24(%rsp)
jmp 0xa1b9d
jmp 0xa1b81
cmpl $0x3, 0xc(%rsp)
jne 0xa1ae8
movl $0x0, 0x24(%rsp)
jmp 0xa1b9d
cmpl $0x1, 0xc(%rsp)
jne 0xa1b49
movq 0x18(%rsp), %rdi
addq $0x3c, %rdi
leaq 0x1ad2b1(%rip), %rsi # 0x24edb0
movl $0x120, %edx # imm = 0x120
callq 0xa1ee0
cmpl $0x0, %eax
jne 0xa1b1b
movl $0x0, 0x24(%rsp)
jmp 0xa1b9d
movq 0x18(%rsp), %rdi
addq $0x820, %rdi # imm = 0x820
leaq 0x1ad3a2(%rip), %rsi # 0x24eed0
movl $0x20, %edx
callq 0xa1ee0
cmpl $0x0, %eax
jne 0xa1b47
movl $0x0, 0x24(%rsp)
jmp 0xa1b9d
jmp 0xa1b64
movq 0x18(%rsp), %rdi
callq 0xa22a0
cmpl $0x0, %eax
jne 0xa1b62
movl $0x0, 0x24(%rsp)
jmp 0xa1b9d
jmp 0xa1b64
movq 0x18(%rsp), %rdi
callq 0xa25c0
cmpl $0x0, %eax
jne 0xa1b7d
movl $0x0, 0x24(%rsp)
jmp 0xa1b9d
jmp 0xa1b7f
jmp 0xa1b81
jmp 0xa1b83
cmpl $0x0, 0x10(%rsp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xa1a86
movl $0x1, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
| _ZL16stbi__parse_zlibP10stbi__zbufi:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov [rsp+28h+var_14], esi
cmp [rsp+28h+var_14], 0
jz short loc_A1A62
mov rdi, [rsp+28h+var_10]
call _ZL23stbi__parse_zlib_headerP10stbi__zbuf; stbi__parse_zlib_header(stbi__zbuf *)
cmp eax, 0
jnz short loc_A1A60
mov [rsp+28h+var_4], 0
jmp loc_A1B9D
loc_A1A60:
jmp short $+2
loc_A1A62:
mov rax, [rsp+28h+var_10]
mov dword ptr [rax+10h], 0
mov rax, [rsp+28h+var_10]
mov dword ptr [rax+18h], 0
mov rax, [rsp+28h+var_10]
mov dword ptr [rax+14h], 0
loc_A1A86:
mov rdi, [rsp+28h+var_10]
mov esi, 1
call _ZL14stbi__zreceiveP10stbi__zbufi; stbi__zreceive(stbi__zbuf *,int)
mov [rsp+28h+var_18], eax
mov rdi, [rsp+28h+var_10]
mov esi, 2
call _ZL14stbi__zreceiveP10stbi__zbufi; stbi__zreceive(stbi__zbuf *,int)
mov [rsp+28h+var_1C], eax
cmp [rsp+28h+var_1C], 0
jnz short loc_A1AD4
mov rdi, [rsp+28h+var_10]
call _ZL30stbi__parse_uncompressed_blockP10stbi__zbuf; stbi__parse_uncompressed_block(stbi__zbuf *)
cmp eax, 0
jnz short loc_A1ACF
mov [rsp+28h+var_4], 0
jmp loc_A1B9D
loc_A1ACF:
jmp loc_A1B81
loc_A1AD4:
cmp [rsp+28h+var_1C], 3
jnz short loc_A1AE8
mov [rsp+28h+var_4], 0
jmp loc_A1B9D
loc_A1AE8:
cmp [rsp+28h+var_1C], 1
jnz short loc_A1B49
mov rdi, [rsp+28h+var_10]
add rdi, 3Ch ; '<'
lea rsi, _ZL21stbi__zdefault_length; stbi__zdefault_length
mov edx, 120h
call _ZL20stbi__zbuild_huffmanP14stbi__zhuffmanPKhi; stbi__zbuild_huffman(stbi__zhuffman *,uchar const*,int)
cmp eax, 0
jnz short loc_A1B1B
mov [rsp+28h+var_4], 0
jmp loc_A1B9D
loc_A1B1B:
mov rdi, [rsp+28h+var_10]
add rdi, 820h
lea rsi, _ZL23stbi__zdefault_distance; stbi__zdefault_distance
mov edx, 20h ; ' '
call _ZL20stbi__zbuild_huffmanP14stbi__zhuffmanPKhi; stbi__zbuild_huffman(stbi__zhuffman *,uchar const*,int)
cmp eax, 0
jnz short loc_A1B47
mov [rsp+28h+var_4], 0
jmp short loc_A1B9D
loc_A1B47:
jmp short loc_A1B64
loc_A1B49:
mov rdi, [rsp+28h+var_10]
call _ZL27stbi__compute_huffman_codesP10stbi__zbuf; stbi__compute_huffman_codes(stbi__zbuf *)
cmp eax, 0
jnz short loc_A1B62
mov [rsp+28h+var_4], 0
jmp short loc_A1B9D
loc_A1B62:
jmp short $+2
loc_A1B64:
mov rdi, [rsp+28h+var_10]
call _ZL25stbi__parse_huffman_blockP10stbi__zbuf; stbi__parse_huffman_block(stbi__zbuf *)
cmp eax, 0
jnz short loc_A1B7D
mov [rsp+28h+var_4], 0
jmp short loc_A1B9D
loc_A1B7D:
jmp short $+2
loc_A1B7F:
jmp short $+2
loc_A1B81:
jmp short $+2
loc_A1B83:
cmp [rsp+28h+var_18], 0
setnz al
xor al, 0FFh
test al, 1
jnz loc_A1A86
mov [rsp+28h+var_4], 1
loc_A1B9D:
mov eax, [rsp+28h+var_4]
add rsp, 28h
retn
| long long stbi__parse_zlib(_DWORD *a1, int a2)
{
int v3; // [rsp+Ch] [rbp-1Ch]
int v4; // [rsp+10h] [rbp-18h]
if ( !a2 || (unsigned int)stbi__parse_zlib_header(a1) )
{
a1[4] = 0;
a1[6] = 0;
a1[5] = 0;
do
{
v4 = stbi__zreceive(a1, 1LL);
v3 = stbi__zreceive(a1, 2LL);
if ( v3 )
{
if ( v3 == 3 )
return 0;
if ( v3 == 1 )
{
if ( !(unsigned int)stbi__zbuild_huffman(a1 + 15, &stbi__zdefault_length, 288LL) )
return 0;
if ( !(unsigned int)stbi__zbuild_huffman(a1 + 520, &stbi__zdefault_distance, 32LL) )
return 0;
}
else if ( !(unsigned int)stbi__compute_huffman_codes(a1) )
{
return 0;
}
if ( !(unsigned int)stbi__parse_huffman_block(a1) )
return 0;
}
else if ( !(unsigned int)stbi__parse_uncompressed_block(a1) )
{
return 0;
}
}
while ( !v4 );
return 1;
}
else
{
return 0;
}
}
| stbi__parse_zlib:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RDI
MOV dword ptr [RSP + 0x14],ESI
CMP dword ptr [RSP + 0x14],0x0
JZ 0x001a1a62
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001a1bb0
CMP EAX,0x0
JNZ 0x001a1a60
MOV dword ptr [RSP + 0x24],0x0
JMP 0x001a1b9d
LAB_001a1a60:
JMP 0x001a1a62
LAB_001a1a62:
MOV RAX,qword ptr [RSP + 0x18]
MOV dword ptr [RAX + 0x10],0x0
MOV RAX,qword ptr [RSP + 0x18]
MOV dword ptr [RAX + 0x18],0x0
MOV RAX,qword ptr [RSP + 0x18]
MOV dword ptr [RAX + 0x14],0x0
LAB_001a1a86:
MOV RDI,qword ptr [RSP + 0x18]
MOV ESI,0x1
CALL 0x001a1c80
MOV dword ptr [RSP + 0x10],EAX
MOV RDI,qword ptr [RSP + 0x18]
MOV ESI,0x2
CALL 0x001a1c80
MOV dword ptr [RSP + 0xc],EAX
CMP dword ptr [RSP + 0xc],0x0
JNZ 0x001a1ad4
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001a1cf0
CMP EAX,0x0
JNZ 0x001a1acf
MOV dword ptr [RSP + 0x24],0x0
JMP 0x001a1b9d
LAB_001a1acf:
JMP 0x001a1b81
LAB_001a1ad4:
CMP dword ptr [RSP + 0xc],0x3
JNZ 0x001a1ae8
MOV dword ptr [RSP + 0x24],0x0
JMP 0x001a1b9d
LAB_001a1ae8:
CMP dword ptr [RSP + 0xc],0x1
JNZ 0x001a1b49
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x3c
LEA RSI,[0x34edb0]
MOV EDX,0x120
CALL 0x001a1ee0
CMP EAX,0x0
JNZ 0x001a1b1b
MOV dword ptr [RSP + 0x24],0x0
JMP 0x001a1b9d
LAB_001a1b1b:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x820
LEA RSI,[0x34eed0]
MOV EDX,0x20
CALL 0x001a1ee0
CMP EAX,0x0
JNZ 0x001a1b47
MOV dword ptr [RSP + 0x24],0x0
JMP 0x001a1b9d
LAB_001a1b47:
JMP 0x001a1b64
LAB_001a1b49:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001a22a0
CMP EAX,0x0
JNZ 0x001a1b62
MOV dword ptr [RSP + 0x24],0x0
JMP 0x001a1b9d
LAB_001a1b62:
JMP 0x001a1b64
LAB_001a1b64:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001a25c0
CMP EAX,0x0
JNZ 0x001a1b7d
MOV dword ptr [RSP + 0x24],0x0
JMP 0x001a1b9d
LAB_001a1b7d:
JMP 0x001a1b7f
LAB_001a1b7f:
JMP 0x001a1b81
LAB_001a1b81:
JMP 0x001a1b83
LAB_001a1b83:
CMP dword ptr [RSP + 0x10],0x0
SETNZ AL
XOR AL,0xff
TEST AL,0x1
JNZ 0x001a1a86
MOV dword ptr [RSP + 0x24],0x1
LAB_001a1b9d:
MOV EAX,dword ptr [RSP + 0x24]
ADD RSP,0x28
RET
|
/* stbi__parse_zlib(stbi__zbuf*, int) */
int4 stbi__parse_zlib(stbi__zbuf *param_1,int param_2)
{
int iVar1;
int iVar2;
int4 local_4;
if ((param_2 == 0) || (iVar1 = stbi__parse_zlib_header(param_1), iVar1 != 0)) {
*(int4 *)(param_1 + 0x10) = 0;
*(int4 *)(param_1 + 0x18) = 0;
*(int4 *)(param_1 + 0x14) = 0;
do {
iVar1 = stbi__zreceive(param_1,1);
iVar2 = stbi__zreceive(param_1,2);
if (iVar2 == 0) {
iVar2 = stbi__parse_uncompressed_block(param_1);
if (iVar2 == 0) {
return 0;
}
}
else {
if (iVar2 == 3) {
return 0;
}
if (iVar2 == 1) {
iVar2 = stbi__zbuild_huffman
((stbi__zhuffman *)(param_1 + 0x3c),stbi__zdefault_length,0x120);
if (iVar2 == 0) {
return 0;
}
iVar2 = stbi__zbuild_huffman
((stbi__zhuffman *)(param_1 + 0x820),stbi__zdefault_distance,0x20);
if (iVar2 == 0) {
return 0;
}
}
else {
iVar2 = stbi__compute_huffman_codes(param_1);
if (iVar2 == 0) {
return 0;
}
}
iVar2 = stbi__parse_huffman_block(param_1);
if (iVar2 == 0) {
return 0;
}
}
} while (iVar1 == 0);
local_4 = 1;
}
else {
local_4 = 0;
}
return local_4;
}
| |
22,371 | testing::Message::operator<<(wchar_t const*) | giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc | Message& Message::operator<<(const wchar_t* wide_c_str) {
return *this << internal::String::ShowWideCString(wide_c_str);
} | O1 | cpp | testing::Message::operator<<(wchar_t const*):
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x1ce2a
movq (%rbx), %rdi
addq $0x10, %rdi
movq (%r14), %rsi
movq 0x8(%r14), %rdx
callq 0x85b0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1cdf9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x84e0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1ce22
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x84e0
movq %rbx, %rdi
callq 0x8990
| _ZN7testing7MessagelsEPKw:
push r14
push rbx
sub rsp, 28h
mov rbx, rdi
lea r14, [rsp+38h+var_30]
mov rdi, r14; int
call _ZN7testing8internal6String15ShowWideCStringB5cxx11EPKw; testing::internal::String::ShowWideCString(wchar_t const*)
mov rdi, [rbx]
add rdi, 10h
mov rsi, [r14]
mov rdx, [r14+8]
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rax, [rsp+38h+var_20]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1CDF9
mov rsi, [rsp+38h+var_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1CDF9:
mov rax, rbx
add rsp, 28h
pop rbx
pop r14
retn
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1CE22
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1CE22:
mov rdi, rbx
call __Unwind_Resume
| _QWORD * testing::Message::operator<<(_QWORD *a1)
{
void *v2[2]; // [rsp+8h] [rbp-30h] BYREF
long long v3; // [rsp+18h] [rbp-20h] BYREF
testing::internal::String::ShowWideCString[abi:cxx11]((int)v2);
std::__ostream_insert<char,std::char_traits<char>>(*a1 + 16LL, v2[0], v2[1]);
if ( v2[0] != &v3 )
operator delete(v2[0], v3 + 1);
return a1;
}
| operator<<:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x0011ce2a
MOV RDI,qword ptr [RBX]
ADD RDI,0x10
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
LAB_0011cdd9:
CALL 0x001085b0
LAB_0011cdde:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0011cdf9
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001084e0
LAB_0011cdf9:
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R14
RET
|
/* testing::Message::TEMPNAMEPLACEHOLDERVALUE(wchar_t const*) */
Message * __thiscall testing::Message::operator<<(Message *this,wchar_t *param_1)
{
long *local_30;
long local_28;
long local_20 [2];
internal::String::ShowWideCString_abi_cxx11_((String *)&local_30,param_1);
/* try { // try from 0011cdd9 to 0011cddd has its CatchHandler @ 0011ce04 */
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(*(long *)this + 0x10),(char *)local_30,local_28);
if (local_30 != local_20) {
operator_delete(local_30,local_20[0] + 1);
}
return this;
}
| |
22,372 | _gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::find<char const (&) [3], 0>(char const (&) [3]) | monkey531[P]llama/common/json.hpp | iterator find(KeyType && key) // NOLINT(cppcoreguidelines-missing-std-forward)
{
for (auto it = this->begin(); it != this->end(); ++it)
{
if (m_compare(it->first, key))
{
return it;
}
}
return Container::end();
} | O0 | cpp | _gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::find<char const (&) [3], 0>(char const (&) [3]):
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq 0x28(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0xb4be0
movq %rax, 0x30(%rsp)
movq 0x10(%rsp), %rdi
callq 0xb4c10
movq %rax, 0x18(%rsp)
leaq 0x30(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0xb4c40
testb $0x1, %al
jne 0x16c716
jmp 0x16c756
movq 0x10(%rsp), %rax
addq $0x18, %rax
movq %rax, 0x8(%rsp)
leaq 0x30(%rsp), %rdi
callq 0xb5db0
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq 0x20(%rsp), %rdx
callq 0x16c770
testb $0x1, %al
jne 0x16c746
jmp 0x16c748
jmp 0x16c765
jmp 0x16c74a
leaq 0x30(%rsp), %rdi
callq 0xb4cc0
jmp 0x16c6f2
movq 0x10(%rsp), %rdi
callq 0xb4c10
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
addq $0x38, %rsp
retq
nop
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA3_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_:
sub rsp, 38h
mov [rsp+38h+var_10], rdi
mov [rsp+38h+var_18], rsi
mov rdi, [rsp+38h+var_10]
mov [rsp+38h+var_28], rdi
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5beginEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void)
mov [rsp+38h+var_8], rax
loc_16C6F2:
mov rdi, [rsp+38h+var_28]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void)
mov [rsp+38h+var_20], rax
lea rdi, [rsp+38h+var_8]
lea rsi, [rsp+38h+var_20]
call _ZN9__gnu_cxxneIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&)
test al, 1
jnz short loc_16C716
jmp short loc_16C756
loc_16C716:
mov rax, [rsp+38h+var_28]
add rax, 18h
mov [rsp+38h+var_30], rax
lea rdi, [rsp+38h+var_8]
call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator->(void)
mov rdi, [rsp+38h+var_30]
mov rsi, rax
mov rdx, [rsp+38h+var_18]
call _ZNKSt8equal_toIvEclIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA3_KcEEDTeqclsr3stdE7forwardIT_Efp_Eclsr3stdE7forwardIT0_Efp0_EEOSD_OSE_
test al, 1
jnz short loc_16C746
jmp short loc_16C748
loc_16C746:
jmp short loc_16C765
loc_16C748:
jmp short $+2
loc_16C74A:
lea rdi, [rsp+38h+var_8]
call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator++(void)
jmp short loc_16C6F2
loc_16C756:
mov rdi, [rsp+38h+var_28]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void)
mov [rsp+38h+var_8], rax
loc_16C765:
mov rax, [rsp+38h+var_8]
add rsp, 38h
retn
| long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA3_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_(
long long a1,
long long a2)
{
long long v2; // rax
long long v4; // [rsp+18h] [rbp-20h] BYREF
long long v5; // [rsp+20h] [rbp-18h]
long long v6; // [rsp+28h] [rbp-10h]
long long i; // [rsp+30h] [rbp-8h] BYREF
v6 = a1;
v5 = a2;
for ( i = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::begin(a1);
;
__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator++(&i) )
{
v4 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end(a1);
if ( !__gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>(
(long long)&i,
(long long)&v4) )
break;
v2 = __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator->((long long)&i);
if ( (std::equal_to<void>::operator()<std::string const&,char const(&)[3]>(a1 + 24, v2, v5) & 1) != 0 )
return i;
}
return std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end(a1);
}
| |||
22,373 | _gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::find<char const (&) [3], 0>(char const (&) [3]) | monkey531[P]llama/common/json.hpp | iterator find(KeyType && key) // NOLINT(cppcoreguidelines-missing-std-forward)
{
for (auto it = this->begin(); it != this->end(); ++it)
{
if (m_compare(it->first, key))
{
return it;
}
}
return Container::end();
} | O2 | cpp | _gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::find<char const (&) [3], 0>(char const (&) [3]):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r15
movq (%rdi), %r14
movq 0x8(%r15), %rax
cmpq %rax, %r14
je 0x92227
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3951e
testb %al, %al
jne 0x92224
addq $0x30, %r14
jmp 0x92206
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA21_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_:
push r15
push r14
push rbx
mov rbx, rsi
mov r15, rdi
mov r14, [rdi]
loc_92206:
mov rax, [r15+8]
cmp r14, rax
jz short loc_92227
mov rdi, r14
mov rsi, rbx
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jnz short loc_92224
add r14, 30h ; '0'
jmp short loc_92206
loc_92224:
mov rax, r14
loc_92227:
pop rbx
pop r14
pop r15
retn
| long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA21_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_(
long long *a1)
{
long long i; // r14
long long result; // rax
for ( i = *a1; ; i += 48LL )
{
result = a1[1];
if ( i == result )
break;
if ( std::operator==<char>(i) )
return i;
}
return result;
}
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA21_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R15,RDI
MOV R14,qword ptr [RDI]
LAB_00192206:
MOV RAX,qword ptr [R15 + 0x8]
CMP R14,RAX
JZ 0x00192227
MOV RDI,R14
MOV RSI,RBX
CALL 0x0013951e
TEST AL,AL
JNZ 0x00192224
ADD R14,0x30
JMP 0x00192206
LAB_00192224:
MOV RAX,R14
LAB_00192227:
POP RBX
POP R14
POP R15
RET
|
string * _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA21_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_
(int8 *param_1,char *param_2)
{
bool bVar1;
string *psVar2;
string *psVar3;
psVar3 = (string *)*param_1;
while ((psVar2 = (string *)param_1[1], psVar3 != (string *)param_1[1] &&
(bVar1 = std::operator==(psVar3,param_2), psVar2 = psVar3, !bVar1))) {
psVar3 = psVar3 + 0x30;
}
return psVar2;
}
| |
22,374 | ma_delete_static_record | eloqsql/storage/maria/ma_statrec.c | my_bool _ma_delete_static_record(MARIA_HA *info,
const uchar *record __attribute__ ((unused)))
{
uchar temp[9]; /* 1+sizeof(uint32) */
info->state->del++;
info->state->empty+=info->s->base.pack_reclength;
temp[0]= '\0'; /* Mark that record is deleted */
_ma_dpointer(info->s, temp+1, info->s->state.dellink);
info->s->state.dellink= info->cur_row.lastpos;
info->rec_cache.seek_not_done=1;
return (info->s->file_write(info, temp, 1+info->s->rec_reflength,
info->cur_row.lastpos, MYF(MY_NABP)) != 0);
} | O3 | c | ma_delete_static_record:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x10(%rbp)
movq 0x20(%rdi), %rax
incq 0x8(%rax)
movq (%rdi), %rax
movq 0x20(%rdi), %rcx
movq 0x3a0(%rax), %rax
addq %rax, 0x10(%rcx)
leaq -0x18(%rbp), %rsi
movb $0x0, -0x1(%rsi)
movq (%rdi), %rdi
movq 0xc8(%rdi), %rdx
callq 0x3b3a0
movq (%rbx), %rax
movq 0x98(%rbx), %rcx
movq %rcx, 0xc8(%rax)
movl $0x1, 0x598(%rbx)
movq (%rbx), %rax
movl 0x740(%rax), %edx
incl %edx
leaq -0x19(%rbp), %rsi
movl $0x4, %r8d
movq %rbx, %rdi
callq *0x6e8(%rax)
testq %rax, %rax
setne %al
movq %fs:0x28, %rcx
cmpq -0x10(%rbp), %rcx
jne 0x41840
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
callq 0x2a240
| _ma_delete_static_record:
push rbp
mov rbp, rsp
push rbx
sub rsp, 18h
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_10], rax
mov rax, [rdi+20h]
inc qword ptr [rax+8]
mov rax, [rdi]
mov rcx, [rdi+20h]
mov rax, [rax+3A0h]
add [rcx+10h], rax
lea rsi, [rbp+var_18]
mov byte ptr [rsi-1], 0
mov rdi, [rdi]
mov rdx, [rdi+0C8h]
call _ma_dpointer
mov rax, [rbx]
mov rcx, [rbx+98h]
mov [rax+0C8h], rcx
mov dword ptr [rbx+598h], 1
mov rax, [rbx]
mov edx, [rax+740h]
inc edx
lea rsi, [rbp+var_19]
mov r8d, 4
mov rdi, rbx
call qword ptr [rax+6E8h]
test rax, rax
setnz al
mov rcx, fs:28h
cmp rcx, [rbp+var_10]
jnz short loc_41840
add rsp, 18h
pop rbx
pop rbp
retn
loc_41840:
call ___stack_chk_fail
| bool ma_delete_static_record(long long *a1)
{
long long v1; // rcx
char v3; // [rsp+7h] [rbp-19h] BYREF
char v4[8]; // [rsp+8h] [rbp-18h] BYREF
unsigned long long v5; // [rsp+10h] [rbp-10h]
v5 = __readfsqword(0x28u);
++*(_QWORD *)(a1[4] + 8);
*(_QWORD *)(a1[4] + 16) += *(_QWORD *)(*a1 + 928);
v3 = 0;
ma_dpointer(*a1, (long long)v4, *(_QWORD *)(*a1 + 200));
v1 = a1[19];
*(_QWORD *)(*a1 + 200) = v1;
*((_DWORD *)a1 + 358) = 1;
return (*(long long ( **)(long long *, char *, _QWORD, long long, long long))(*a1 + 1768))(
a1,
&v3,
(unsigned int)(*(_DWORD *)(*a1 + 1856) + 1),
v1,
4LL) != 0;
}
| _ma_delete_static_record:
PUSH RBP
MOV RBP,RSP
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RDI + 0x20]
INC qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RDI]
MOV RCX,qword ptr [RDI + 0x20]
MOV RAX,qword ptr [RAX + 0x3a0]
ADD qword ptr [RCX + 0x10],RAX
LEA RSI,[RBP + -0x18]
MOV byte ptr [RSI + -0x1],0x0
MOV RDI,qword ptr [RDI]
MOV RDX,qword ptr [RDI + 0xc8]
CALL 0x0013b3a0
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RBX + 0x98]
MOV qword ptr [RAX + 0xc8],RCX
MOV dword ptr [RBX + 0x598],0x1
MOV RAX,qword ptr [RBX]
MOV EDX,dword ptr [RAX + 0x740]
INC EDX
LEA RSI,[RBP + -0x19]
MOV R8D,0x4
MOV RDI,RBX
CALL qword ptr [RAX + 0x6e8]
TEST RAX,RAX
SETNZ AL
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x10]
JNZ 0x00141840
ADD RSP,0x18
POP RBX
POP RBP
RET
LAB_00141840:
CALL 0x0012a240
|
bool _ma_delete_static_record(long *param_1)
{
long lVar1;
long in_FS_OFFSET;
int1 local_21;
int1 local_20 [8];
long local_18;
local_18 = *(long *)(in_FS_OFFSET + 0x28);
*(long *)(param_1[4] + 8) = *(long *)(param_1[4] + 8) + 1;
*(long *)(param_1[4] + 0x10) = *(long *)(param_1[4] + 0x10) + *(long *)(*param_1 + 0x3a0);
local_21 = 0;
_ma_dpointer(*param_1,local_20,*(int8 *)(*param_1 + 200));
lVar1 = param_1[0x13];
*(long *)(*param_1 + 200) = lVar1;
*(int4 *)(param_1 + 0xb3) = 1;
lVar1 = (**(code **)(*param_1 + 0x6e8))(param_1,&local_21,*(int *)(*param_1 + 0x740) + 1,lVar1,4);
if (*(long *)(in_FS_OFFSET + 0x28) == local_18) {
return lVar1 != 0;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
22,375 | mi_store_blob_length | eloqsql/storage/myisam/mi_dynrec.c | void _mi_store_blob_length(uchar *pos,uint pack_length,uint length)
{
switch (pack_length) {
case 1:
*pos= (uchar) length;
break;
case 2:
int2store(pos,length);
break;
case 3:
int3store(pos,length);
break;
case 4:
int4store(pos,length);
default:
break;
}
return;
} | O3 | c | mi_store_blob_length:
pushq %rbp
movq %rsp, %rbp
decl %esi
cmpl $0x3, %esi
ja 0x78fc6
leaq 0x688eb(%rip), %rax # 0xe1890
movslq (%rax,%rsi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movb %dl, (%rdi)
jmp 0x78fc6
movb %dl, (%rdi)
movb %dh, 0x1(%rdi)
shrl $0x10, %edx
movb %dl, 0x2(%rdi)
jmp 0x78fc6
movl %edx, (%rdi)
jmp 0x78fc6
movw %dx, (%rdi)
popq %rbp
retq
| _mi_store_blob_length:
push rbp
mov rbp, rsp
dec esi; switch 4 cases
cmp esi, 3
ja short def_78FAC; jumptable 0000000000078FAC default case
lea rax, jpt_78FAC
movsxd rcx, ds:(jpt_78FAC - 0E1890h)[rax+rsi*4]
add rcx, rax
jmp rcx; switch jump
loc_78FAE:
mov [rdi], dl; jumptable 0000000000078FAC case 1
jmp short def_78FAC; jumptable 0000000000078FAC default case
loc_78FB2:
mov [rdi], dl; jumptable 0000000000078FAC case 3
mov [rdi+1], dh
shr edx, 10h
mov [rdi+2], dl
jmp short def_78FAC; jumptable 0000000000078FAC default case
loc_78FBF:
mov [rdi], edx; jumptable 0000000000078FAC case 4
jmp short def_78FAC; jumptable 0000000000078FAC default case
loc_78FC3:
mov [rdi], dx; jumptable 0000000000078FAC case 2
def_78FAC:
pop rbp; jumptable 0000000000078FAC default case
retn
| void mi_store_blob_length(_BYTE *a1, int a2, int a3)
{
switch ( a2 )
{
case 1:
*a1 = a3;
break;
case 2:
*(_WORD *)a1 = a3;
break;
case 3:
*(_WORD *)a1 = a3;
a1[2] = BYTE2(a3);
break;
case 4:
*(_DWORD *)a1 = a3;
break;
default:
return;
}
}
| _mi_store_blob_length:
PUSH RBP
MOV RBP,RSP
DEC ESI
CMP ESI,0x3
JA 0x00178fc6
LEA RAX,[0x1e1890]
MOVSXD RCX,dword ptr [RAX + RSI*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_1:
MOV byte ptr [RDI],DL
JMP 0x00178fc6
caseD_3:
MOV byte ptr [RDI],DL
MOV byte ptr [RDI + 0x1],DH
SHR EDX,0x10
MOV byte ptr [RDI + 0x2],DL
JMP 0x00178fc6
caseD_4:
MOV dword ptr [RDI],EDX
JMP 0x00178fc6
caseD_2:
MOV word ptr [RDI],DX
default:
POP RBP
RET
|
void _mi_store_blob_length(int4 *param_1,int4 param_2,int4 param_3)
{
switch(param_2) {
case 1:
*(char *)param_1 = (char)param_3;
break;
case 2:
*(short *)param_1 = (short)param_3;
break;
case 3:
*(char *)param_1 = (char)param_3;
*(char *)((long)param_1 + 1) = (char)((uint)param_3 >> 8);
*(char *)((long)param_1 + 2) = (char)((uint)param_3 >> 0x10);
break;
case 4:
*param_1 = param_3;
}
return;
}
| |
22,376 | ggml_print_backtrace | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c | static void ggml_print_backtrace(void) {
char attach[32];
snprintf(attach, sizeof(attach), "attach %d", getpid());
int pid = fork();
if (pid == 0) {
// try gdb
execlp("gdb", "gdb", "--batch",
"-ex", "set style enabled on",
"-ex", attach,
"-ex", "bt -frame-info source-and-location",
"-ex", "detach",
"-ex", "quit",
(char *) NULL);
// try lldb
execlp("lldb", "lldb", "--batch",
"-o", "bt",
"-o", "quit",
"-p", attach,
(char *) NULL);
exit(EXIT_FAILURE);
} else {
int wstatus;
waitpid(pid, &wstatus, 0);
if (WIFEXITED(wstatus)) {
if (WEXITSTATUS(wstatus) == EXIT_FAILURE) {
// gdb failed, fallback to backtrace_symbols
ggml_print_backtrace_symbols();
}
}
}
} | O1 | c | ggml_print_backtrace:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x358, %rsp # imm = 0x358
callq 0x18930
leaq 0x3315c(%rip), %rdx # 0x4db56
leaq 0x10(%rsp), %rbx
movl $0x20, %esi
movq %rbx, %rdi
movl %eax, %ecx
xorl %eax, %eax
callq 0x18b20
callq 0x173b0
testl %eax, %eax
je 0x1aa68
leaq 0xc(%rsp), %rbx
movl %eax, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x17d80
movl $0xff7f, %eax # imm = 0xFF7F
andl (%rbx), %eax
cmpl $0x100, %eax # imm = 0x100
jne 0x1aa59
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
movl $0x64, %esi
callq 0x18970
movq %rbx, %rdi
movl %eax, %esi
movl $0x2, %edx
callq 0x18b00
addq $0x358, %rsp # imm = 0x358
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorl %r12d, %r12d
leaq 0x3313d(%rip), %r15 # 0x4dbaf
leaq 0x330f3(%rip), %rcx # 0x4db6c
leaq 0x33128(%rip), %r10 # 0x4dba8
leaq 0x330fe(%rip), %r11 # 0x4db85
leaq 0x330d2(%rip), %rdi # 0x4db60
leaq 0x330cf(%rip), %r14 # 0x4db64
leaq 0x330d4(%rip), %r8 # 0x4db70
movq %rdi, %rsi
movq %r14, %rdx
movq %rcx, %r9
movl $0x0, %eax
pushq %r12
pushq %r15
pushq %rcx
pushq %r10
pushq %rcx
pushq %r11
pushq %rcx
pushq %rbx
callq 0x17430
addq $0x40, %rsp
leaq 0x330f9(%rip), %r10 # 0x4dbbf
leaq 0x330e7(%rip), %rdi # 0x4dbb4
leaq 0x330e8(%rip), %r8 # 0x4dbbc
leaq 0x330de(%rip), %rcx # 0x4dbb9
movq %rdi, %rsi
movq %r14, %rdx
movq %rcx, %r9
xorl %eax, %eax
pushq %r12
pushq %rbx
pushq %r10
pushq %r15
callq 0x17430
addq $0x20, %rsp
movl $0x1, %edi
callq 0x184a0
| ggml_print_backtrace:
push r15
push r14
push r12
push rbx
sub rsp, 358h
call _getpid
lea rdx, aAttachD; "attach %d"
lea rbx, [rsp+378h+var_368]
mov esi, 20h ; ' '
mov rdi, rbx
mov ecx, eax
xor eax, eax
call _snprintf
call _fork
test eax, eax
jz short loc_1AA68
lea rbx, [rsp+378h+var_36C]
mov edi, eax
mov rsi, rbx
xor edx, edx
call _waitpid
mov eax, 0FF7Fh
and eax, [rbx]
cmp eax, 100h
jnz short loc_1AA59
lea rbx, [rsp+378h+var_348]
mov rdi, rbx
mov esi, 64h ; 'd'
call _backtrace
mov rdi, rbx
mov esi, eax
mov edx, 2
call _backtrace_symbols_fd
loc_1AA59:
add rsp, 358h
pop rbx
pop r12
pop r14
pop r15
retn
loc_1AA68:
xor r12d, r12d
lea r15, aQuit; "quit"
lea rcx, aEx; "-ex"
lea r10, aDetach; "detach"
lea r11, aBtFrameInfoSou; "bt -frame-info source-and-location"
lea rdi, aGdb; "gdb"
lea r14, aBatch; "--batch"
lea r8, aSetStyleEnable; "set style enabled on"
mov rsi, rdi
mov rdx, r14
mov r9, rcx
mov eax, 0
push r12
push r15
push rcx
push r10
push rcx
push r11
push rcx
push rbx
call _execlp
add rsp, 40h
lea r10, aP; "-p"
lea rdi, aLldb; "lldb"
lea r8, aBt; "bt"
lea rcx, aO; "-o"
mov rsi, rdi
mov rdx, r14
mov r9, rcx
xor eax, eax
push r12
push rbx
push r10
push r15
call _execlp
add rsp, 20h
mov edi, 1
call _exit
| long long ggml_print_backtrace()
{
int v0; // eax
unsigned int v1; // eax
long long result; // rax
unsigned int v3; // eax
unsigned __int16 v4; // [rsp+Ch] [rbp-36Ch] BYREF
_BYTE v5[32]; // [rsp+10h] [rbp-368h] BYREF
_BYTE v6[840]; // [rsp+30h] [rbp-348h] BYREF
v0 = getpid();
snprintf(v5, 32LL, "attach %d", v0);
v1 = fork();
if ( !v1 )
{
execlp(
"gdb",
"gdb",
"--batch",
"-ex",
"set style enabled on",
"-ex",
v5,
"-ex",
"bt -frame-info source-and-location",
"-ex");
execlp("lldb", "lldb", "--batch", "-o", "bt", "-o", "quit", "-p", v5, 0LL);
exit(1LL);
}
waitpid(v1, &v4, 0LL);
result = v4 & 0xFF7F;
if ( (_DWORD)result == 256 )
{
v3 = backtrace(v6, 100LL);
return backtrace_symbols_fd(v6, v3, 2LL);
}
return result;
}
| ggml_print_backtrace:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x358
CALL 0x00118930
LEA RDX,[0x14db56]
LEA RBX,[RSP + 0x10]
MOV ESI,0x20
MOV RDI,RBX
MOV ECX,EAX
XOR EAX,EAX
CALL 0x00118b20
CALL 0x001173b0
TEST EAX,EAX
JZ 0x0011aa68
LEA RBX,[RSP + 0xc]
MOV EDI,EAX
MOV RSI,RBX
XOR EDX,EDX
CALL 0x00117d80
MOV EAX,0xff7f
AND EAX,dword ptr [RBX]
CMP EAX,0x100
JNZ 0x0011aa59
LEA RBX,[RSP + 0x30]
MOV RDI,RBX
MOV ESI,0x64
CALL 0x00118970
MOV RDI,RBX
MOV ESI,EAX
MOV EDX,0x2
CALL 0x00118b00
LAB_0011aa59:
ADD RSP,0x358
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0011aa68:
XOR R12D,R12D
LEA R15,[0x14dbaf]
LEA RCX,[0x14db6c]
LEA R10,[0x14dba8]
LEA R11,[0x14db85]
LEA RDI,[0x14db60]
LEA R14,[0x14db64]
LEA R8,[0x14db70]
MOV RSI,RDI
MOV RDX,R14
MOV R9,RCX
MOV EAX,0x0
PUSH R12
PUSH R15
PUSH RCX
PUSH R10
PUSH RCX
PUSH R11
PUSH RCX
PUSH RBX
CALL 0x00117430
ADD RSP,0x40
LEA R10,[0x14dbbf]
LEA RDI,[0x14dbb4]
LEA R8,[0x14dbbc]
LEA RCX,[0x14dbb9]
MOV RSI,RDI
MOV RDX,R14
MOV R9,RCX
XOR EAX,EAX
PUSH R12
PUSH RBX
PUSH R10
PUSH R15
CALL 0x00117430
ADD RSP,0x20
MOV EDI,0x1
CALL 0x001184a0
|
void ggml_print_backtrace(void)
{
uint uVar1;
__pid_t __pid;
int4 uVar2;
uint local_36c;
char local_368 [32];
int1 local_348 [808];
uVar1 = getpid();
snprintf(local_368,0x20,"attach %d",(ulong)uVar1);
__pid = fork();
if (__pid != 0) {
waitpid(__pid,(int *)&local_36c,0);
if ((local_36c & 0xff7f) == 0x100) {
uVar2 = backtrace(local_348,100);
backtrace_symbols_fd(local_348,uVar2,2);
}
return;
}
execlp("gdb","gdb","--batch",&DAT_0014db6c,"set style enabled on",&DAT_0014db6c,local_368,
&DAT_0014db6c,"bt -frame-info source-and-location",&DAT_0014db6c,"detach",&DAT_0014db6c,
&DAT_0014dbaf,0);
execlp("lldb","lldb","--batch",&DAT_0014dbb9,&DAT_0014dbbc,&DAT_0014dbb9,&DAT_0014dbaf,
&DAT_0014dbbf,local_368,0);
/* WARNING: Subroutine does not return */
exit(1);
}
| |
22,377 | my_print_default_files | eloqsql/mysys/my_default.c | void my_print_default_files(const char *conf_file)
{
const char *empty_list[]= { "", 0 };
my_bool have_ext= fn_ext(conf_file)[0] != 0;
const char **exts_to_use= have_ext ? empty_list : f_extensions;
char name[FN_REFLEN], **ext;
puts("\nDefault options are read from the following files in the given order:");
if (my_defaults_file)
{
puts(my_defaults_file);
return;
}
if (dirname_length(conf_file))
fputs(conf_file,stdout);
else
{
const char **dirs;
MEM_ROOT alloc;
init_alloc_root(key_memory_defaults, &alloc, 512, 0, MYF(0));
if ((dirs= init_default_directories(&alloc)) == NULL)
{
fputs("Internal error initializing default directories list", stdout);
}
else
{
for ( ; *dirs; dirs++)
{
for (ext= (char**) exts_to_use; *ext; ext++)
{
const char *pos;
char *end;
if (**dirs)
pos= *dirs;
else if (my_defaults_extra_file)
{
pos= my_defaults_extra_file;
fputs(pos, stdout);
fputs(" ", stdout);
continue;
}
else
continue;
end= convert_dirname(name, pos, NullS);
if (name[0] == FN_HOMELIB) /* Add . to filenames in home */
*end++= '.';
strxmov(end, conf_file, *ext, " ", NullS);
fputs(name, stdout);
}
}
}
free_root(&alloc, MYF(0));
}
puts("");
} | O3 | c | my_print_default_files:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp # imm = 0x258
movq %rdi, %r15
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
callq 0x3ca24
cmpb $0x0, (%rax)
leaq 0x2df532(%rip), %rax # 0x31ad70
leaq 0x2df53b(%rip), %rbx # 0x31ad80
cmoveq %rax, %rbx
leaq 0x4e8d3(%rip), %rdi # 0x8a123
callq 0x33550
leaq 0x3676ac(%rip), %rax # 0x3a2f08
movq (%rax), %rdi
testq %rdi, %rdi
je 0x3b88d
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x3ba09
addq $0x258, %rsp # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x33550
movq %r15, %rdi
callq 0x3c950
testq %rax, %rax
je 0x3b8b1
movq 0x2e7707(%rip), %rax # 0x322fa8
movq (%rax), %rsi
movq %r15, %rdi
callq 0x33390
jmp 0x3b9de
leaq 0x35f2a0(%rip), %rax # 0x39ab58
movl (%rax), %edi
leaq -0x280(%rbp), %r14
movl $0x200, %edx # imm = 0x200
movq %r14, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3d654
movq %r14, %rdi
callq 0x3b6fb
testq %rax, %rax
je 0x3b9ba
movq %rax, %r14
cmpq $0x0, (%rax)
je 0x3b9d0
movq (%rbx), %rax
movq %rax, -0x238(%rbp)
addq $0x8, %rbx
movq %rbx, -0x240(%rbp)
leaq -0x230(%rbp), %r12
cmpq $0x0, -0x238(%rbp)
je 0x3b9a9
movq -0x240(%rbp), %rbx
movq -0x238(%rbp), %r13
movq (%r14), %rsi
cmpb $0x0, (%rsi)
je 0x3b969
movq %r12, %rdi
xorl %edx, %edx
callq 0x3c9cb
cmpb $0x7e, -0x230(%rbp)
jne 0x3b94a
movb $0x2e, (%rax)
incq %rax
movq %rax, %rdi
movq %r15, %rsi
movq %r13, %rdx
leaq 0x4db67(%rip), %rcx # 0x894c1
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x6d038
movq %r12, %rdi
jmp 0x3b98e
leaq 0x3675a8(%rip), %rax # 0x3a2f18
movq (%rax), %rdi
testq %rdi, %rdi
je 0x3b99d
movq 0x2e7629(%rip), %rax # 0x322fa8
movq (%rax), %rsi
callq 0x33390
leaq 0x4db33(%rip), %rdi # 0x894c1
movq 0x2e7613(%rip), %rax # 0x322fa8
movq (%rax), %rsi
callq 0x33390
movq (%rbx), %r13
addq $0x8, %rbx
testq %r13, %r13
jne 0x3b929
cmpq $0x0, 0x8(%r14)
leaq 0x8(%r14), %r14
jne 0x3b90d
jmp 0x3b9d0
movq 0x2e75e7(%rip), %rax # 0x322fa8
movq (%rax), %rsi
leaq 0x4e79f(%rip), %rdi # 0x8a16a
callq 0x33390
leaq -0x280(%rbp), %rdi
xorl %esi, %esi
callq 0x3da23
movl $0xa, %edi
callq 0x33460
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x3ba09
addq $0x258, %rsp # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x33370
| my_print_default_files:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 258h
mov r15, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
call fn_ext
cmp byte ptr [rax], 0
lea rax, f_extensions
lea rbx, off_31AD80; ""
cmovz rbx, rax
lea rdi, aDefaultOptions; "\nDefault options are read from the fol"...
call _puts
lea rax, my_defaults_file
mov rdi, [rax]
test rdi, rdi
jz short loc_3B88D
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz loc_3BA09
add rsp, 258h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _puts
loc_3B88D:
mov rdi, r15
call dirname_length
test rax, rax
jz short loc_3B8B1
mov rax, cs:stdout_ptr
mov rsi, [rax]
mov rdi, r15
call _fputs
jmp loc_3B9DE
loc_3B8B1:
lea rax, key_memory_defaults
mov edi, [rax]
lea r14, [rbp+var_280]
mov edx, 200h
mov rsi, r14
xor ecx, ecx
xor r8d, r8d
call init_alloc_root
mov rdi, r14
call init_default_directories
test rax, rax
jz loc_3B9BA
mov r14, rax
cmp qword ptr [rax], 0
jz loc_3B9D0
mov rax, [rbx]
mov [rbp+var_238], rax
add rbx, 8
mov [rbp+var_240], rbx
lea r12, [rbp+var_230]
loc_3B90D:
cmp [rbp+var_238], 0
jz loc_3B9A9
mov rbx, [rbp+var_240]
mov r13, [rbp+var_238]
loc_3B929:
mov rsi, [r14]
cmp byte ptr [rsi], 0
jz short loc_3B969
mov rdi, r12
xor edx, edx
call convert_dirname
cmp [rbp+var_230], 7Eh ; '~'
jnz short loc_3B94A
mov byte ptr [rax], 2Eh ; '.'
inc rax
loc_3B94A:
mov rdi, rax
mov rsi, r15
mov rdx, r13
lea rcx, asc_894C0+1; " "
xor r8d, r8d
xor eax, eax
call strxmov
mov rdi, r12
jmp short loc_3B98E
loc_3B969:
lea rax, my_defaults_extra_file
mov rdi, [rax]
test rdi, rdi
jz short loc_3B99D
mov rax, cs:stdout_ptr
mov rsi, [rax]
call _fputs
lea rdi, asc_894C0+1; " "
loc_3B98E:
mov rax, cs:stdout_ptr
mov rsi, [rax]
call _fputs
loc_3B99D:
mov r13, [rbx]
add rbx, 8
test r13, r13
jnz short loc_3B929
loc_3B9A9:
cmp qword ptr [r14+8], 0
lea r14, [r14+8]
jnz loc_3B90D
jmp short loc_3B9D0
loc_3B9BA:
mov rax, cs:stdout_ptr
mov rsi, [rax]
lea rdi, aInternalErrorI; "Internal error initializing default dir"...
call _fputs
loc_3B9D0:
lea rdi, [rbp+var_280]
xor esi, esi
call free_root
loc_3B9DE:
mov edi, 0Ah
call _putchar
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_3BA09
add rsp, 258h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3BA09:
call ___stack_chk_fail
| long long my_print_default_files(long long a1)
{
int v1; // r15d
char **v2; // rbx
_OWORD *inited; // rax
_QWORD *v5; // r14
char **v6; // rbx
long long v7; // r13
_BYTE *v8; // rax
int v9; // r9d
char *v10; // rdi
bool v11; // zf
_BYTE v12[64]; // [rsp+0h] [rbp-280h] BYREF
char **v13; // [rsp+40h] [rbp-240h]
char *v14; // [rsp+48h] [rbp-238h]
_BYTE v15[512]; // [rsp+50h] [rbp-230h] BYREF
unsigned long long v16; // [rsp+250h] [rbp-30h]
v1 = a1;
v16 = __readfsqword(0x28u);
v2 = (char **)&off_31AD80;
if ( !*(_BYTE *)fn_ext() )
v2 = &f_extensions;
puts("\nDefault options are read from the following files in the given order:");
if ( my_defaults_file )
return puts(my_defaults_file);
if ( !dirname_length(a1) )
{
init_alloc_root(key_memory_defaults, v12, 512LL, 0LL, 0LL);
inited = init_default_directories((long long)v12);
if ( inited )
{
v5 = inited;
if ( *(_QWORD *)inited )
{
v14 = *v2;
v13 = v2 + 1;
while ( !v14 )
{
LABEL_20:
v11 = v5[1] == 0LL;
++v5;
if ( v11 )
goto LABEL_23;
}
v6 = v13;
LODWORD(v7) = (_DWORD)v14;
while ( !*(_BYTE *)*v5 )
{
if ( my_defaults_extra_file )
{
fputs(my_defaults_extra_file, stdout);
v10 = " ";
LABEL_18:
fputs(v10, stdout);
}
v7 = (long long)*v6++;
if ( !v7 )
goto LABEL_20;
}
v8 = (_BYTE *)convert_dirname(v15, *v5, 0LL);
if ( v15[0] == 126 )
{
*v8 = 46;
LODWORD(v8) = (_DWORD)v8 + 1;
}
strxmov((_DWORD)v8, v1, v7, (unsigned int)" ", 0, v9);
v10 = v15;
goto LABEL_18;
}
}
else
{
fputs("Internal error initializing default directories list", stdout);
}
LABEL_23:
free_root(v12, 0LL);
goto LABEL_24;
}
fputs(a1, stdout);
LABEL_24:
putchar(10LL);
return __readfsqword(0x28u);
}
| my_print_default_files:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x258
MOV R15,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
CALL 0x0013ca24
CMP byte ptr [RAX],0x0
LEA RAX,[0x41ad70]
LEA RBX,[0x41ad80]
CMOVZ RBX,RAX
LEA RDI,[0x18a123]
CALL 0x00133550
LEA RAX,[0x4a2f08]
MOV RDI,qword ptr [RAX]
TEST RDI,RDI
JZ 0x0013b88d
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0013ba09
ADD RSP,0x258
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00133550
LAB_0013b88d:
MOV RDI,R15
CALL 0x0013c950
TEST RAX,RAX
JZ 0x0013b8b1
MOV RAX,qword ptr [0x00422fa8]
MOV RSI,qword ptr [RAX]
MOV RDI,R15
CALL 0x00133390
JMP 0x0013b9de
LAB_0013b8b1:
LEA RAX,[0x49ab58]
MOV EDI,dword ptr [RAX]
LEA R14,[RBP + -0x280]
MOV EDX,0x200
MOV RSI,R14
XOR ECX,ECX
XOR R8D,R8D
CALL 0x0013d654
MOV RDI,R14
CALL 0x0013b6fb
TEST RAX,RAX
JZ 0x0013b9ba
MOV R14,RAX
CMP qword ptr [RAX],0x0
JZ 0x0013b9d0
MOV RAX,qword ptr [RBX]
MOV qword ptr [RBP + -0x238],RAX
ADD RBX,0x8
MOV qword ptr [RBP + -0x240],RBX
LEA R12,[RBP + -0x230]
LAB_0013b90d:
CMP qword ptr [RBP + -0x238],0x0
JZ 0x0013b9a9
MOV RBX,qword ptr [RBP + -0x240]
MOV R13,qword ptr [RBP + -0x238]
LAB_0013b929:
MOV RSI,qword ptr [R14]
CMP byte ptr [RSI],0x0
JZ 0x0013b969
MOV RDI,R12
XOR EDX,EDX
CALL 0x0013c9cb
CMP byte ptr [RBP + -0x230],0x7e
JNZ 0x0013b94a
MOV byte ptr [RAX],0x2e
INC RAX
LAB_0013b94a:
MOV RDI,RAX
MOV RSI,R15
MOV RDX,R13
LEA RCX,[0x1894c1]
XOR R8D,R8D
XOR EAX,EAX
CALL 0x0016d038
MOV RDI,R12
JMP 0x0013b98e
LAB_0013b969:
LEA RAX,[0x4a2f18]
MOV RDI,qword ptr [RAX]
TEST RDI,RDI
JZ 0x0013b99d
MOV RAX,qword ptr [0x00422fa8]
MOV RSI,qword ptr [RAX]
CALL 0x00133390
LEA RDI,[0x1894c1]
LAB_0013b98e:
MOV RAX,qword ptr [0x00422fa8]
MOV RSI,qword ptr [RAX]
CALL 0x00133390
LAB_0013b99d:
MOV R13,qword ptr [RBX]
ADD RBX,0x8
TEST R13,R13
JNZ 0x0013b929
LAB_0013b9a9:
CMP qword ptr [R14 + 0x8],0x0
LEA R14,[R14 + 0x8]
JNZ 0x0013b90d
JMP 0x0013b9d0
LAB_0013b9ba:
MOV RAX,qword ptr [0x00422fa8]
MOV RSI,qword ptr [RAX]
LEA RDI,[0x18a16a]
CALL 0x00133390
LAB_0013b9d0:
LEA RDI,[RBP + -0x280]
XOR ESI,ESI
CALL 0x0013da23
LAB_0013b9de:
MOV EDI,0xa
CALL 0x00133460
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0013ba09
ADD RSP,0x258
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013ba09:
CALL 0x00133370
|
void my_print_default_files(char *param_1)
{
long *plVar1;
int *puVar2;
char *pcVar3;
long lVar4;
long *plVar5;
int1 *puVar6;
int **ppuVar7;
long in_FS_OFFSET;
int1 local_288 [64];
int **local_248;
int *local_240;
char local_238 [512];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
pcVar3 = (char *)fn_ext();
ppuVar7 = &PTR_s__0041ad80;
if (*pcVar3 == '\0') {
ppuVar7 = (int **)f_extensions;
}
puts("\nDefault options are read from the following files in the given order:");
if (my_defaults_file == (char *)0x0) {
lVar4 = dirname_length(param_1);
if (lVar4 == 0) {
init_alloc_root(key_memory_defaults,local_288,0x200,0,0);
plVar5 = (long *)init_default_directories(local_288);
if (plVar5 == (long *)0x0) {
fputs("Internal error initializing default directories list",*(FILE **)PTR_stdout_00422fa8);
}
else if (*plVar5 != 0) {
local_240 = *ppuVar7;
local_248 = ppuVar7 + 1;
ppuVar7 = local_248;
puVar2 = local_240;
do {
while (puVar2 != (int *)0x0) {
if (*(char *)*plVar5 == '\0') {
if (my_defaults_extra_file != (char *)0x0) {
fputs(my_defaults_extra_file,*(FILE **)PTR_stdout_00422fa8);
pcVar3 = " ";
goto LAB_0013b98e;
}
}
else {
puVar6 = (int1 *)convert_dirname(local_238,(char *)*plVar5,0);
if (local_238[0] == '~') {
*puVar6 = 0x2e;
puVar6 = puVar6 + 1;
}
strxmov(puVar6,param_1,puVar2,&DAT_001894c1,0);
pcVar3 = local_238;
LAB_0013b98e:
fputs(pcVar3,*(FILE **)PTR_stdout_00422fa8);
}
puVar2 = *ppuVar7;
ppuVar7 = ppuVar7 + 1;
}
plVar1 = plVar5 + 1;
plVar5 = plVar5 + 1;
ppuVar7 = local_248;
puVar2 = local_240;
} while (*plVar1 != 0);
}
free_root(local_288,0);
}
else {
fputs(param_1,*(FILE **)PTR_stdout_00422fa8);
}
putchar(10);
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return;
}
}
else if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
puts(my_defaults_file);
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
22,378 | nglog::tools::FindSymbol(unsigned long, int, char*, unsigned long, unsigned long, Elf64_Shdr const*, Elf64_Shdr const*) | ng-log[P]ng-log/src/symbolize.cc | static ATTRIBUTE_NOINLINE bool FindSymbol(uint64_t pc, const int fd, char* out,
size_t out_size,
uint64_t symbol_offset,
const ElfW(Shdr) * strtab,
const ElfW(Shdr) * symtab) {
if (symtab == nullptr) {
return false;
}
const size_t num_symbols = symtab->sh_size / symtab->sh_entsize;
for (unsigned i = 0; i < num_symbols;) {
size_t offset = symtab->sh_offset + i * symtab->sh_entsize;
// If we are reading Elf64_Sym's, we want to limit this array to
// 32 elements (to keep stack consumption low), otherwise we can
// have a 64 element Elf32_Sym array.
# if defined(__WORDSIZE) && __WORDSIZE == 64
const size_t NUM_SYMBOLS = 32U;
# else
const size_t NUM_SYMBOLS = 64U;
# endif
// Read at most NUM_SYMBOLS symbols at once to save read() calls.
ElfW(Sym) buf[NUM_SYMBOLS];
size_t num_symbols_to_read = std::min(NUM_SYMBOLS, num_symbols - i);
const ssize_t len =
ReadFromOffset(fd, &buf, sizeof(buf[0]) * num_symbols_to_read, offset);
NGLOG_SAFE_ASSERT(static_cast<size_t>(len) % sizeof(buf[0]) == 0);
const size_t num_symbols_in_buf = static_cast<size_t>(len) / sizeof(buf[0]);
NGLOG_SAFE_ASSERT(num_symbols_in_buf <= num_symbols_to_read);
for (unsigned j = 0; j < num_symbols_in_buf; ++j) {
const ElfW(Sym)& symbol = buf[j];
uint64_t start_address = symbol.st_value;
start_address += symbol_offset;
uint64_t end_address = start_address + symbol.st_size;
if (symbol.st_value != 0 && // Skip null value symbols.
symbol.st_shndx != 0 && // Skip undefined symbols.
start_address <= pc && pc < end_address) {
ssize_t len1 = ReadFromOffset(fd, out, out_size,
strtab->sh_offset + symbol.st_name);
if (len1 <= 0 || memchr(out, '\0', out_size) == nullptr) {
memset(out, 0, out_size);
return false;
}
return true; // Obtained the symbol name.
}
}
i += num_symbols_in_buf;
}
return false;
} | O0 | cpp | nglog::tools::FindSymbol(unsigned long, int, char*, unsigned long, unsigned long, Elf64_Shdr const*, Elf64_Shdr const*):
pushq %rbp
movq %rsp, %rbp
subq $0x3b0, %rsp # imm = 0x3B0
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
cmpq $0x0, 0x10(%rbp)
jne 0x4f456
movb $0x0, -0x1(%rbp)
jmp 0x4f684
movq 0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x10(%rbp), %rcx
xorl %edx, %edx
divq 0x38(%rcx)
movq %rax, -0x40(%rbp)
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpq -0x40(%rbp), %rax
jae 0x4f680
movq 0x10(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x44(%rbp), %ecx
movq 0x10(%rbp), %rdx
imulq 0x38(%rdx), %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq $0x20, -0x58(%rbp)
movq -0x40(%rbp), %rax
movl -0x44(%rbp), %ecx
subq %rcx, %rax
movq %rax, -0x370(%rbp)
leaq -0x58(%rbp), %rdi
leaq -0x370(%rbp), %rsi
callq 0xe6e0
movq (%rax), %rax
movq %rax, -0x368(%rbp)
movl -0x14(%rbp), %edi
imulq $0x18, -0x368(%rbp), %rdx
movq -0x50(%rbp), %rcx
leaq -0x360(%rbp), %rsi
callq 0x4dd70
movq %rax, -0x378(%rbp)
movq -0x378(%rbp), %rax
movl $0x18, %ecx
xorl %edx, %edx
divq %rcx
cmpq $0x0, %rdx
jne 0x4f509
jmp 0x4f50e
callq 0x93a0
movq -0x378(%rbp), %rax
movl $0x18, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, -0x380(%rbp)
movq -0x380(%rbp), %rax
cmpq -0x368(%rbp), %rax
ja 0x4f538
jmp 0x4f53d
callq 0x93a0
movl $0x0, -0x384(%rbp)
movl -0x384(%rbp), %eax
cmpq -0x380(%rbp), %rax
jae 0x4f66b
movl -0x384(%rbp), %eax
movl %eax, %ecx
leaq -0x360(%rbp), %rax
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x390(%rbp)
movq -0x390(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x398(%rbp)
movq -0x30(%rbp), %rax
addq -0x398(%rbp), %rax
movq %rax, -0x398(%rbp)
movq -0x398(%rbp), %rax
movq -0x390(%rbp), %rcx
addq 0x10(%rcx), %rax
movq %rax, -0x3a0(%rbp)
movq -0x390(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x4f655
movq -0x390(%rbp), %rax
movzwl 0x6(%rax), %eax
cmpl $0x0, %eax
je 0x4f655
movq -0x398(%rbp), %rax
cmpq -0x10(%rbp), %rax
ja 0x4f655
movq -0x10(%rbp), %rax
cmpq -0x3a0(%rbp), %rax
jae 0x4f655
movl -0x14(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x390(%rbp), %rax
movl (%rax), %eax
addq %rax, %rcx
callq 0x4dd70
movq %rax, -0x3a8(%rbp)
cmpq $0x0, -0x3a8(%rbp)
jle 0x4f63a
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rdx
xorl %esi, %esi
callq 0x9830
cmpq $0x0, %rax
jne 0x4f64f
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rdx
xorl %esi, %esi
callq 0x9390
movb $0x0, -0x1(%rbp)
jmp 0x4f684
movb $0x1, -0x1(%rbp)
jmp 0x4f684
jmp 0x4f657
movl -0x384(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x384(%rbp)
jmp 0x4f547
movq -0x380(%rbp), %rcx
movl -0x44(%rbp), %eax
addq %rcx, %rax
movl %eax, -0x44(%rbp)
jmp 0x4f473
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x3b0, %rsp # imm = 0x3B0
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| _ZN5nglog5toolsL10FindSymbolEmiPcmmPK10Elf64_ShdrS4_:
push rbp
mov rbp, rsp
sub rsp, 3B0h
mov rax, [rbp+arg_0]
mov [rbp+var_14+4], rdi
mov dword ptr [rbp+var_14], esi
mov qword ptr [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
cmp [rbp+arg_0], 0
jnz short loc_4F456
mov [rbp+var_1], 0
jmp loc_4F684
loc_4F456:
mov rax, [rbp+arg_0]
mov rax, [rax+20h]
mov rcx, [rbp+arg_0]
xor edx, edx
div qword ptr [rcx+38h]
mov [rbp+var_40], rax
mov [rbp+var_44], 0
loc_4F473:
mov eax, [rbp+var_44]
cmp rax, [rbp+var_40]
jnb loc_4F680
mov rax, [rbp+arg_0]
mov rax, [rax+18h]
mov ecx, [rbp+var_44]
mov rdx, [rbp+arg_0]
imul rcx, [rdx+38h]
add rax, rcx
mov [rbp+var_50], rax
mov [rbp+var_58], 20h ; ' '
mov rax, [rbp+var_40]
mov ecx, [rbp+var_44]
sub rax, rcx
mov [rbp+var_370], rax
lea rdi, [rbp+var_58]
lea rsi, [rbp+var_370]
call _ZSt3minImERKT_S2_S2_; std::min<ulong>(ulong const&,ulong const&)
mov rax, [rax]
mov [rbp+var_368], rax
mov edi, dword ptr [rbp+var_14]; this
imul rdx, [rbp+var_368], 18h; void *
mov rcx, [rbp+var_50]; unsigned __int64
lea rsi, [rbp+var_360]; int
call _ZN5nglog5toolsL14ReadFromOffsetEiPvmm; nglog::tools::ReadFromOffset(int,void *,ulong,ulong)
mov [rbp+var_378], rax
mov rax, [rbp+var_378]
mov ecx, 18h
xor edx, edx
div rcx
cmp rdx, 0
jnz short loc_4F509
jmp short loc_4F50E
loc_4F509:
call _abort
loc_4F50E:
mov rax, [rbp+var_378]
mov ecx, 18h
xor edx, edx
div rcx
mov [rbp+var_380], rax
mov rax, [rbp+var_380]
cmp rax, [rbp+var_368]
ja short loc_4F538
jmp short loc_4F53D
loc_4F538:
call _abort
loc_4F53D:
mov [rbp+var_384], 0
loc_4F547:
mov eax, [rbp+var_384]
cmp rax, [rbp+var_380]
jnb loc_4F66B
mov eax, [rbp+var_384]
mov ecx, eax
lea rax, [rbp+var_360]
imul rcx, 18h
add rax, rcx
mov [rbp+var_390], rax
mov rax, [rbp+var_390]
mov rax, [rax+8]
mov [rbp+var_398], rax
mov rax, [rbp+var_30]
add rax, [rbp+var_398]
mov [rbp+var_398], rax
mov rax, [rbp+var_398]
mov rcx, [rbp+var_390]
add rax, [rcx+10h]
mov [rbp+var_3A0], rax
mov rax, [rbp+var_390]
cmp qword ptr [rax+8], 0
jz loc_4F655
mov rax, [rbp+var_390]
movzx eax, word ptr [rax+6]
cmp eax, 0
jz short loc_4F655
mov rax, [rbp+var_398]
cmp rax, [rbp+var_14+4]
ja short loc_4F655
mov rax, [rbp+var_14+4]
cmp rax, [rbp+var_3A0]
jnb short loc_4F655
mov edi, dword ptr [rbp+var_14]; this
mov rsi, qword ptr [rbp+var_20]; int
mov rdx, [rbp+var_28]; void *
mov rax, [rbp+var_38]
mov rcx, [rax+18h]
mov rax, [rbp+var_390]
mov eax, [rax]
add rcx, rax; unsigned __int64
call _ZN5nglog5toolsL14ReadFromOffsetEiPvmm; nglog::tools::ReadFromOffset(int,void *,ulong,ulong)
mov [rbp+var_3A8], rax
cmp [rbp+var_3A8], 0
jle short loc_4F63A
mov rdi, qword ptr [rbp+var_20]
mov rdx, [rbp+var_28]
xor esi, esi
call _memchr
cmp rax, 0
jnz short loc_4F64F
loc_4F63A:
mov rdi, qword ptr [rbp+var_20]
mov rdx, [rbp+var_28]
xor esi, esi
call _memset
mov [rbp+var_1], 0
jmp short loc_4F684
loc_4F64F:
mov [rbp+var_1], 1
jmp short loc_4F684
loc_4F655:
jmp short $+2
loc_4F657:
mov eax, [rbp+var_384]
add eax, 1
mov [rbp+var_384], eax
jmp loc_4F547
loc_4F66B:
mov rcx, [rbp+var_380]
mov eax, [rbp+var_44]
add rax, rcx
mov [rbp+var_44], eax
jmp loc_4F473
loc_4F680:
mov [rbp+var_1], 0
loc_4F684:
mov al, [rbp+var_1]
and al, 1
add rsp, 3B0h
pop rbp
retn
| char nglog::tools::FindSymbol(long long a1, int a2, long long a3, void *a4, long long a5, long long a6, _QWORD *a7)
{
long long v7; // rdi
unsigned long long v9; // [rsp+18h] [rbp-398h]
unsigned int *v10; // [rsp+20h] [rbp-390h]
unsigned int i; // [rsp+2Ch] [rbp-384h]
unsigned long long v12; // [rsp+30h] [rbp-380h]
unsigned long long v13; // [rsp+38h] [rbp-378h]
unsigned long long v14; // [rsp+40h] [rbp-370h] BYREF
unsigned long long v15; // [rsp+48h] [rbp-368h]
_QWORD v16[97]; // [rsp+50h] [rbp-360h] BYREF
long long v17; // [rsp+358h] [rbp-58h] BYREF
unsigned long long v18; // [rsp+360h] [rbp-50h]
unsigned int v19; // [rsp+36Ch] [rbp-44h]
unsigned long long v20; // [rsp+370h] [rbp-40h]
long long v21; // [rsp+378h] [rbp-38h]
long long v22; // [rsp+380h] [rbp-30h]
void *v23; // [rsp+388h] [rbp-28h]
int v24[2]; // [rsp+390h] [rbp-20h]
_DWORD v25[4]; // [rsp+39Ch] [rbp-14h]
*(_QWORD *)&v25[1] = a1;
v25[0] = a2;
*(_QWORD *)v24 = a3;
v23 = a4;
v22 = a5;
v21 = a6;
if ( !a7 )
return 0;
v20 = a7[4] / a7[7];
v19 = 0;
LABEL_4:
if ( v19 >= v20 )
return 0;
v18 = a7[7] * v19 + a7[3];
v17 = 32LL;
v14 = v20 - v19;
v15 = *std::min<unsigned long>(&v17, &v14);
v7 = v25[0];
v13 = nglog::tools::ReadFromOffset((nglog::tools *)v25[0], (long long)v16, (char *)(24 * v15), v18);
if ( v13 % 0x18 )
abort(v7, v16);
v12 = v13 / 0x18;
if ( v13 / 0x18 > v15 )
abort(v7, v16);
for ( i = 0; ; ++i )
{
if ( i >= v12 )
{
v19 += v12;
goto LABEL_4;
}
v10 = (unsigned int *)&v16[3 * i];
v9 = *((_QWORD *)v10 + 1) + v22;
if ( *((_QWORD *)v10 + 1) )
{
if ( *((_WORD *)v10 + 3) && v9 <= *(_QWORD *)&v25[1] && *(_QWORD *)&v25[1] < v16[3 * i + 2] + v9 )
break;
}
}
if ( (long long)nglog::tools::ReadFromOffset(
(nglog::tools *)v25[0],
*(long long *)v24,
(char *)v23,
*v10 + *(_QWORD *)(v21 + 24)) > 0
&& memchr(*(_QWORD *)v24, 0LL, v23) )
{
return 1;
}
memset(*(_QWORD *)v24, 0LL, v23);
return 0;
}
| FindSymbol:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x3b0
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
CMP qword ptr [RBP + 0x10],0x0
JNZ 0x0014f456
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0014f684
LAB_0014f456:
MOV RAX,qword ptr [RBP + 0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + 0x10]
XOR EDX,EDX
DIV qword ptr [RCX + 0x38]
MOV qword ptr [RBP + -0x40],RAX
MOV dword ptr [RBP + -0x44],0x0
LAB_0014f473:
MOV EAX,dword ptr [RBP + -0x44]
CMP RAX,qword ptr [RBP + -0x40]
JNC 0x0014f680
MOV RAX,qword ptr [RBP + 0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV ECX,dword ptr [RBP + -0x44]
MOV RDX,qword ptr [RBP + 0x10]
IMUL RCX,qword ptr [RDX + 0x38]
ADD RAX,RCX
MOV qword ptr [RBP + -0x50],RAX
MOV qword ptr [RBP + -0x58],0x20
MOV RAX,qword ptr [RBP + -0x40]
MOV ECX,dword ptr [RBP + -0x44]
SUB RAX,RCX
MOV qword ptr [RBP + -0x370],RAX
LEA RDI,[RBP + -0x58]
LEA RSI,[RBP + -0x370]
CALL 0x0010e6e0
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x368],RAX
MOV EDI,dword ptr [RBP + -0x14]
IMUL RDX,qword ptr [RBP + -0x368],0x18
MOV RCX,qword ptr [RBP + -0x50]
LEA RSI,[RBP + -0x360]
CALL 0x0014dd70
MOV qword ptr [RBP + -0x378],RAX
MOV RAX,qword ptr [RBP + -0x378]
MOV ECX,0x18
XOR EDX,EDX
DIV RCX
CMP RDX,0x0
JNZ 0x0014f509
JMP 0x0014f50e
LAB_0014f509:
CALL 0x001093a0
LAB_0014f50e:
MOV RAX,qword ptr [RBP + -0x378]
MOV ECX,0x18
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0x380],RAX
MOV RAX,qword ptr [RBP + -0x380]
CMP RAX,qword ptr [RBP + -0x368]
JA 0x0014f538
JMP 0x0014f53d
LAB_0014f538:
CALL 0x001093a0
LAB_0014f53d:
MOV dword ptr [RBP + -0x384],0x0
LAB_0014f547:
MOV EAX,dword ptr [RBP + -0x384]
CMP RAX,qword ptr [RBP + -0x380]
JNC 0x0014f66b
MOV EAX,dword ptr [RBP + -0x384]
MOV ECX,EAX
LEA RAX,[RBP + -0x360]
IMUL RCX,RCX,0x18
ADD RAX,RCX
MOV qword ptr [RBP + -0x390],RAX
MOV RAX,qword ptr [RBP + -0x390]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x398],RAX
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,qword ptr [RBP + -0x398]
MOV qword ptr [RBP + -0x398],RAX
MOV RAX,qword ptr [RBP + -0x398]
MOV RCX,qword ptr [RBP + -0x390]
ADD RAX,qword ptr [RCX + 0x10]
MOV qword ptr [RBP + -0x3a0],RAX
MOV RAX,qword ptr [RBP + -0x390]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x0014f655
MOV RAX,qword ptr [RBP + -0x390]
MOVZX EAX,word ptr [RAX + 0x6]
CMP EAX,0x0
JZ 0x0014f655
MOV RAX,qword ptr [RBP + -0x398]
CMP RAX,qword ptr [RBP + -0x10]
JA 0x0014f655
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x3a0]
JNC 0x0014f655
MOV EDI,dword ptr [RBP + -0x14]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x390]
MOV EAX,dword ptr [RAX]
ADD RCX,RAX
CALL 0x0014dd70
MOV qword ptr [RBP + -0x3a8],RAX
CMP qword ptr [RBP + -0x3a8],0x0
JLE 0x0014f63a
MOV RDI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
XOR ESI,ESI
CALL 0x00109830
CMP RAX,0x0
JNZ 0x0014f64f
LAB_0014f63a:
MOV RDI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
XOR ESI,ESI
CALL 0x00109390
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0014f684
LAB_0014f64f:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0014f684
LAB_0014f655:
JMP 0x0014f657
LAB_0014f657:
MOV EAX,dword ptr [RBP + -0x384]
ADD EAX,0x1
MOV dword ptr [RBP + -0x384],EAX
JMP 0x0014f547
LAB_0014f66b:
MOV RCX,qword ptr [RBP + -0x380]
MOV EAX,dword ptr [RBP + -0x44]
ADD RAX,RCX
MOV dword ptr [RBP + -0x44],EAX
JMP 0x0014f473
LAB_0014f680:
MOV byte ptr [RBP + -0x1],0x0
LAB_0014f684:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x3b0
POP RBP
RET
|
/* nglog::tools::FindSymbol(unsigned long, int, char*, unsigned long, unsigned long, Elf64_Shdr
const*, Elf64_Shdr const*) */
int1
nglog::tools::FindSymbol
(ulong param_1,int param_2,char *param_3,ulong param_4,ulong param_5,Elf64_Shdr *param_6,
Elf64_Shdr *param_7)
{
ulong *puVar1;
ulong uVar2;
long lVar3;
void *pvVar4;
ulong uVar5;
uint local_38c;
ulong local_378;
ulong local_370;
uint local_368;
short sStack_362;
long alStack_360 [96];
ulong local_60;
ulong local_58;
uint local_4c;
ulong local_48;
Elf64_Shdr *local_40;
ulong local_38;
ulong local_30;
char *local_28;
int local_1c;
ulong local_18;
if (param_7 != (Elf64_Shdr *)0x0) {
local_48 = param_7->sh_size / param_7->sh_entsize;
local_40 = param_6;
local_38 = param_5;
local_30 = param_4;
local_28 = param_3;
local_1c = param_2;
local_18 = param_1;
for (local_4c = 0; local_4c < local_48; local_4c = local_4c + (int)uVar2) {
local_58 = param_7->sh_offset + (ulong)local_4c * param_7->sh_entsize;
local_60 = 0x20;
local_378 = local_48 - local_4c;
puVar1 = std::min<unsigned_long>(&local_60,&local_378);
local_370 = *puVar1;
uVar2 = ReadFromOffset(local_1c,&local_368,local_370 * 0x18,local_58);
if (uVar2 % 0x18 != 0) {
/* WARNING: Subroutine does not return */
abort();
}
uVar2 = uVar2 / 0x18;
if (local_370 < uVar2) {
/* WARNING: Subroutine does not return */
abort();
}
for (local_38c = 0; local_38c < uVar2; local_38c = local_38c + 1) {
uVar5 = (ulong)local_38c;
if ((((alStack_360[uVar5 * 3] != 0) && ((&sStack_362)[uVar5 * 0xc] != 0)) &&
(local_38 + alStack_360[uVar5 * 3] <= local_18)) &&
(local_18 < local_38 + alStack_360[uVar5 * 3] + alStack_360[uVar5 * 3 + 1])) {
lVar3 = ReadFromOffset(local_1c,local_28,local_30,
local_40->sh_offset + (ulong)(&local_368)[uVar5 * 6]);
if ((0 < lVar3) && (pvVar4 = memchr(local_28,0,local_30), pvVar4 != (void *)0x0)) {
return 1;
}
memset(local_28,0,local_30);
return 0;
}
}
}
}
return 0;
}
| |
22,379 | nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::set_parent(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&, unsigned long) | zkingston[P]unknot/build_O0/_deps/json-src/include/nlohmann/json.hpp | reference set_parent(reference j, std::size_t old_capacity = static_cast<std::size_t>(-1))
{
#if JSON_DIAGNOSTICS
if (old_capacity != static_cast<std::size_t>(-1))
{
// see https://github.com/nlohmann/json/issues/2838
JSON_ASSERT(type() == value_t::array);
if (JSON_HEDLEY_UNLIKELY(m_data.m_value.array->capacity() != old_capacity))
{
// capacity has changed: update all parents
set_parents();
return j;
}
}
// ordered_json uses a vector internally, so pointers could have
// been invalidated; see https://github.com/nlohmann/json/issues/2962
#ifdef JSON_HEDLEY_MSVC_VERSION
#pragma warning(push )
#pragma warning(disable : 4127) // ignore warning to replace if with if constexpr
#endif
if (detail::is_ordered_map<object_t>::value)
{
set_parents();
return j;
}
#ifdef JSON_HEDLEY_MSVC_VERSION
#pragma warning( pop )
#endif
j.m_parent = this;
#else
static_cast<void>(j);
static_cast<void>(old_capacity);
#endif
return j;
} | O0 | cpp | nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::set_parent(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&, unsigned long):
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq %rdx, -0x18(%rsp)
movq -0x10(%rsp), %rax
retq
nopw %cs:(%rax,%rax)
nop
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10set_parentERSD_m:
mov [rsp+var_8], rdi
mov [rsp+var_10], rsi
mov [rsp+var_18], rdx
mov rax, [rsp+var_10]
retn
| long long nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::set_parent(
long long a1,
long long a2)
{
return a2;
}
| set_parent:
MOV qword ptr [RSP + -0x8],RDI
MOV qword ptr [RSP + -0x10],RSI
MOV qword ptr [RSP + -0x18],RDX
MOV RAX,qword ptr [RSP + -0x10]
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long,
unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer,
std::vector<unsigned char, std::allocator<unsigned char> >,
void>::set_parent(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&, unsigned long) */
ulong nlohmann::json_abi_v3_11_3::
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::set_parent(basic_json *param_1,ulong param_2)
{
return param_2;
}
| |
22,380 | set_property(st_command*, enum_prop, char) | eloqsql/client/mysqltest.cc | void set_property(st_command *command, enum_prop prop, my_bool val)
{
char* p= command->first_argument;
if (p && !strcmp (p, "ONCE"))
{
command->last_argument= p + 4;
set_once_property(prop, val);
return;
}
property &pr= prop_list[prop];
*pr.var= val;
pr.set= 0;
var_set_int(pr.env_name, (val != pr.reverse));
} | O0 | cpp | set_property(st_command*, enum_prop, char):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movb %al, -0xd(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x6543a
movq -0x18(%rbp), %rdi
leaq 0x101fa9(%rip), %rsi # 0x1673bb
callq 0x609b0
cmpl $0x0, %eax
jne 0x6543a
movq -0x18(%rbp), %rcx
addq $0x4, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x18(%rax)
movl -0xc(%rbp), %edi
movsbl -0xd(%rbp), %esi
callq 0x65360
jmp 0x65488
movl -0xc(%rbp), %eax
movl %eax, %ecx
leaq 0x290f4a(%rip), %rax # 0x2f6390
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movb -0xd(%rbp), %cl
movq -0x20(%rbp), %rax
movq (%rax), %rax
movb %cl, (%rax)
movq -0x20(%rbp), %rax
movb $0x0, 0x8(%rax)
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdi
movsbl -0xd(%rbp), %eax
movq -0x20(%rbp), %rcx
movsbl 0xa(%rcx), %ecx
cmpl %ecx, %eax
setne %al
andb $0x1, %al
movzbl %al, %esi
callq 0x62d90
addq $0x20, %rsp
popq %rbp
retq
nop
| _Z12set_propertyP10st_command9enum_propc:
push rbp
mov rbp, rsp
sub rsp, 20h
mov al, dl
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_D], al
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov [rbp+var_18], rax
cmp [rbp+var_18], 0
jz short loc_6543A
mov rdi, [rbp+var_18]
lea rsi, aErUpdatedColum+17h; "ONCE"
call _strcmp
cmp eax, 0
jnz short loc_6543A
mov rcx, [rbp+var_18]
add rcx, 4
mov rax, [rbp+var_8]
mov [rax+18h], rcx
mov edi, [rbp+var_C]
movsx esi, [rbp+var_D]
call _Z17set_once_property9enum_propc; set_once_property(enum_prop,char)
jmp short loc_65488
loc_6543A:
mov eax, [rbp+var_C]
mov ecx, eax
lea rax, _ZL9prop_list; prop_list
imul rcx, 18h
add rax, rcx
mov [rbp+var_20], rax
mov cl, [rbp+var_D]
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rax], cl
mov rax, [rbp+var_20]
mov byte ptr [rax+8], 0
mov rax, [rbp+var_20]
mov rdi, [rax+10h]; char *
movsx eax, [rbp+var_D]
mov rcx, [rbp+var_20]
movsx ecx, byte ptr [rcx+0Ah]
cmp eax, ecx
setnz al
and al, 1
movzx esi, al; int
call _Z11var_set_intPKci; var_set_int(char const*,int)
loc_65488:
add rsp, 20h
pop rbp
retn
| unsigned long long set_property(long long a1, unsigned int a2, long long a3, long long a4, int a5, int a6)
{
const char **v7; // [rsp+0h] [rbp-20h]
long long v8; // [rsp+8h] [rbp-18h]
char v9; // [rsp+13h] [rbp-Dh]
v9 = a3;
v8 = *(_QWORD *)(a1 + 16);
if ( v8 && !(unsigned int)strcmp(v8, "ONCE") )
{
*(_QWORD *)(a1 + 24) = v8 + 4;
return set_once_property(a2, v9, a3, v8 + 4, a5, a6);
}
else
{
v7 = (const char **)((char *)&prop_list + 24 * a2);
**v7 = v9;
*((_BYTE *)v7 + 8) = 0;
return var_set_int(v7[2], v9 != *((char *)v7 + 10), a3, (unsigned int)*((char *)v7 + 10), a5, a6);
}
}
| set_property:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV AL,DL
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV byte ptr [RBP + -0xd],AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0x0
JZ 0x0016543a
MOV RDI,qword ptr [RBP + -0x18]
LEA RSI,[0x2673bb]
CALL 0x001609b0
CMP EAX,0x0
JNZ 0x0016543a
MOV RCX,qword ptr [RBP + -0x18]
ADD RCX,0x4
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x18],RCX
MOV EDI,dword ptr [RBP + -0xc]
MOVSX ESI,byte ptr [RBP + -0xd]
CALL 0x00165360
JMP 0x00165488
LAB_0016543a:
MOV EAX,dword ptr [RBP + -0xc]
MOV ECX,EAX
LEA RAX,[0x3f6390]
IMUL RCX,RCX,0x18
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV CL,byte ptr [RBP + -0xd]
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x8],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX + 0x10]
MOVSX EAX,byte ptr [RBP + -0xd]
MOV RCX,qword ptr [RBP + -0x20]
MOVSX ECX,byte ptr [RCX + 0xa]
CMP EAX,ECX
SETNZ AL
AND AL,0x1
MOVZX ESI,AL
CALL 0x00162d90
LAB_00165488:
ADD RSP,0x20
POP RBP
RET
|
/* set_property(st_command*, enum_prop, char) */
void set_property(long param_1,uint param_2,char param_3)
{
char *__s1;
int iVar1;
long lVar2;
__s1 = *(char **)(param_1 + 0x10);
if ((__s1 != (char *)0x0) && (iVar1 = strcmp(__s1,"ONCE"), iVar1 == 0)) {
*(char **)(param_1 + 0x18) = __s1 + 4;
set_once_property(param_2,(int)param_3);
return;
}
lVar2 = (ulong)param_2 * 0x18;
**(char **)(prop_list + lVar2) = param_3;
prop_list[lVar2 + 8] = 0;
var_set_int(*(char **)(prop_list + lVar2 + 0x10),(uint)(param_3 != prop_list[lVar2 + 10]));
return;
}
| |
22,381 | pvio_socket_is_blocking | eloqsql/libmariadb/plugins/pvio/pvio_socket.c | my_bool pvio_socket_is_blocking(MARIADB_PVIO *pvio)
{
struct st_pvio_socket *csock= NULL;
my_bool r;
if (!pvio || !pvio->data)
return 0;
csock= (struct st_pvio_socket *)pvio->data;
r = !(csock->fcntl_mode & O_NONBLOCK);
return r;
} | O0 | c | pvio_socket_is_blocking:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq $0x0, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x1aa21
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x1aa27
movb $0x0, -0x1(%rbp)
jmp 0x1aa54
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x800, %eax # imm = 0x800
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
popq %rbp
retq
nopl (%rax)
| pvio_socket_is_blocking:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], 0
cmp [rbp+var_10], 0
jz short loc_1AA21
mov rax, [rbp+var_10]
cmp qword ptr [rax], 0
jnz short loc_1AA27
loc_1AA21:
mov [rbp+var_1], 0
jmp short loc_1AA54
loc_1AA27:
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov eax, [rax+4]
and eax, 800h
cmp eax, 0
setnz al
xor al, 0FFh
and al, 1
movzx eax, al
mov [rbp+var_19], al
mov al, [rbp+var_19]
mov [rbp+var_1], al
loc_1AA54:
mov al, [rbp+var_1]
pop rbp
retn
| bool pvio_socket_is_blocking(long long a1)
{
return a1 && *(_QWORD *)a1 && (*(_DWORD *)(*(_QWORD *)a1 + 4LL) & 0x800) == 0;
}
| pvio_socket_is_blocking:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],0x0
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0011aa21
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX],0x0
JNZ 0x0011aa27
LAB_0011aa21:
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0011aa54
LAB_0011aa27:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x4]
AND EAX,0x800
CMP EAX,0x0
SETNZ AL
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x19],AL
MOV AL,byte ptr [RBP + -0x19]
MOV byte ptr [RBP + -0x1],AL
LAB_0011aa54:
MOV AL,byte ptr [RBP + -0x1]
POP RBP
RET
|
byte pvio_socket_is_blocking(long *param_1)
{
int1 local_9;
if ((param_1 == (long *)0x0) || (*param_1 == 0)) {
local_9 = 0;
}
else {
local_9 = ((*(uint *)(*param_1 + 4) & 0x800) != 0 ^ 0xffU) & 1;
}
return local_9;
}
| |
22,382 | pvio_socket_is_blocking | eloqsql/libmariadb/plugins/pvio/pvio_socket.c | my_bool pvio_socket_is_blocking(MARIADB_PVIO *pvio)
{
struct st_pvio_socket *csock= NULL;
my_bool r;
if (!pvio || !pvio->data)
return 0;
csock= (struct st_pvio_socket *)pvio->data;
r = !(csock->fcntl_mode & O_NONBLOCK);
return r;
} | O3 | c | pvio_socket_is_blocking:
testq %rdi, %rdi
je 0x19657
movq (%rdi), %rax
testq %rax, %rax
je 0x19657
pushq %rbp
movq %rsp, %rbp
testb $0x8, 0x5(%rax)
sete %al
popq %rbp
retq
xorl %eax, %eax
retq
| pvio_socket_is_blocking:
test rdi, rdi
jz short loc_19657
mov rax, [rdi]
test rax, rax
jz short loc_19657
push rbp
mov rbp, rsp
test byte ptr [rax+5], 8
setz al
pop rbp
retn
loc_19657:
xor eax, eax
retn
| bool pvio_socket_is_blocking(long long a1)
{
return a1 && *(_QWORD *)a1 && (*(_BYTE *)(*(_QWORD *)a1 + 5LL) & 8) == 0;
}
| pvio_socket_is_blocking:
TEST RDI,RDI
JZ 0x00119657
MOV RAX,qword ptr [RDI]
TEST RAX,RAX
JZ 0x00119657
PUSH RBP
MOV RBP,RSP
TEST byte ptr [RAX + 0x5],0x8
SETZ AL
POP RBP
RET
LAB_00119657:
XOR EAX,EAX
RET
|
int8 pvio_socket_is_blocking(long *param_1)
{
long lVar1;
if ((param_1 != (long *)0x0) && (lVar1 = *param_1, lVar1 != 0)) {
return CONCAT71((int7)((ulong)lVar1 >> 8),(*(byte *)(lVar1 + 5) & 8) == 0);
}
return 0;
}
| |
22,383 | encode(llama_context*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/examples/gritlm/gritlm.cpp | static std::vector<std::vector<float>> encode(llama_context * ctx, const std::vector<std::string> & sentences, const std::string & instruction) {
std::vector<std::vector<float>> result;
const llama_model * model = llama_get_model(ctx);
const llama_vocab * vocab = llama_model_get_vocab(model);
llama_batch batch = llama_batch_init(llama_n_batch(ctx), 0, 1);
for (uint64_t i = 0; i < sentences.size(); i++) {
common_batch_clear(batch);
const std::string input_string = instruction + sentences[i];
std::vector<llama_token> inputs = common_tokenize(vocab, input_string, true, false);
const int32_t n_toks = inputs.size();
// GritLM seems to have EOS = ""
// https://github.com/ContextualAI/gritlm/blob/92025b16534712b31b3c4aaaf069350e222bd5f8/gritlm/gritlm.py#L18
// inputs.push_back(llama_vocab_eos(vocab));
// we want to ignore instruction tokens for mean pooling
const int32_t n_inst = common_tokenize(vocab, instruction, true, false).size();
#ifdef GRIT_DEBUG
// debug tokens - should be matching as referenced in the GritLM sample
std::for_each(inputs.begin(), inputs.end(), [&ctx](llama_token t) {
std::printf("[%u:%s]", t, llama_token_to_piece(ctx, t).c_str());
});
std::printf("\n");
#endif
// add input to batch (this increments n_tokens)
for (int32_t j = 0; j < n_toks; j++) {
common_batch_add(batch, inputs[j], j, { 0 }, j >= n_inst);
}
// clear previous kv_cache values (irrelevant for embeddings)
llama_kv_cache_clear(ctx);
llama_set_embeddings(ctx, true);
llama_set_causal_attn(ctx, false);
// run model
llama_decode(ctx, batch);
// get embedding dimensions
uint64_t n_embd = llama_model_n_embd(model);
// allocate embedding output
std::vector<float> emb_unorm(n_embd, 0.0f);
// sum up all token embeddings
for (int32_t k = n_inst; k < n_toks; k++) {
float * emb = llama_get_embeddings_ith(ctx, k);
for (uint64_t j = 0; j < n_embd; j++) {
emb_unorm[j] += emb[j];
}
}
// divide by number of tokens (mean pooling)
{
const uint64_t n_sent = n_toks - n_inst;
for (uint64_t j = 0; j < n_embd; j++) {
emb_unorm[j] /= n_sent;
}
}
std::vector<float> emb_norm(emb_unorm.size());
common_embd_normalize(emb_unorm.data(), emb_norm.data(), n_embd, 2);
result.push_back(emb_norm);
#ifdef GRIT_DEBUG
// print out emb_norm
std::printf("embedding %ld: ", i);
for (uint64_t j = 0; j < n_embd; j++) {
std::printf("%.5f ", emb_norm[j]);
}
std::printf("\n\n");
#endif
}
llama_batch_free(batch);
return result;
} | O3 | cpp | encode(llama_context*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp # imm = 0x128
movq %rcx, %r14
movq %rdx, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, 0x80(%rsp)
movq $0x0, 0x10(%rdi)
movq %rsi, 0x88(%rsp)
movq %rsi, %rdi
callq 0x1a7b0
movq %rax, 0xc0(%rsp)
movq %rax, %rdi
callq 0x1b160
movq %rax, %rbp
movq 0x88(%rsp), %rdi
callq 0x1a1f0
leaq 0xf0(%rsp), %rdi
movl %eax, %esi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x1a470
movq 0x8(%rbx), %rax
cmpq (%rbx), %rax
je 0x1face
xorl %r12d, %r12d
leaq 0x48(%rsp), %r13
movq %r14, 0xb8(%rsp)
movq %rbx, 0xa8(%rsp)
movq %rbp, 0xb0(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x75779
movq %r12, %rdx
shlq $0x5, %rdx
addq (%rbx), %rdx
leaq 0xd0(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x21abd
movq %r12, 0xc8(%rsp)
leaq 0x90(%rsp), %rdi
movq %rbp, %rsi
movq %r15, %rdx
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x75a32
movq 0x98(%rsp), %r12
subq 0x90(%rsp), %r12
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x75a32
movq 0x48(%rsp), %rbx
movq 0x50(%rsp), %r14
testq %rbx, %rbx
je 0x1f829
movq 0x58(%rsp), %rsi
subq %rbx, %rsi
movq %rbx, %rdi
callq 0x1a8f0
sarq $0x2, %r12
subq %rbx, %r14
movq %r14, 0x60(%rsp)
testl %r12d, %r12d
jle 0x1f8b9
movq 0x60(%rsp), %rax
shrq $0x2, %rax
movslq %eax, %r15
movl %r12d, %r14d
andl $0x7fffffff, %r14d # imm = 0x7FFFFFFF
xorl %ebx, %ebx
movq 0x90(%rsp), %rax
movl (%rax,%rbx,4), %ebp
movl $0x0, 0x68(%rsp)
movl $0x1, %edx
movq %r13, %rdi
leaq 0x68(%rsp), %rsi
leaq 0x47(%rsp), %rcx
callq 0x21b18
xorl %r8d, %r8d
cmpq %r15, %rbx
setge %r8b
leaq 0xf0(%rsp), %rdi
movl %ebp, %esi
movl %ebx, %edx
movq %r13, %rcx
callq 0x75780
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x1f8b1
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x1a8f0
incq %rbx
cmpq %rbx, %r14
jne 0x1f852
movq 0x88(%rsp), %r14
movq %r14, %rdi
callq 0x1b0a0
movq %r14, %rdi
movl $0x1, %esi
callq 0x1ac70
movq %r14, %rdi
xorl %esi, %esi
callq 0x1aee0
movq 0x120(%rsp), %rax
movq %rax, 0x30(%rsp)
movups 0xf0(%rsp), %xmm0
movups 0x100(%rsp), %xmm1
movups 0x110(%rsp), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r14, %rdi
callq 0x1ae00
movq 0xc0(%rsp), %rdi
callq 0x1a230
movl %eax, %r15d
movslq %eax, %rbx
movl $0x0, 0x68(%rsp)
movq %r13, %rdi
movq %rbx, %rsi
leaq 0x68(%rsp), %rdx
leaq 0x47(%rsp), %rcx
callq 0x21b5e
movq 0x60(%rsp), %rax
sarq $0x2, %rax
movl %eax, %ebp
movq %rax, 0x60(%rsp)
cmpl %r12d, %eax
jge 0x1f994
movq %r14, %rdi
movl %ebp, %esi
callq 0x1a5f0
testl %r15d, %r15d
je 0x1f98d
movq 0x48(%rsp), %rcx
xorl %edx, %edx
movss (%rax,%rdx,4), %xmm0
addss (%rcx,%rdx,4), %xmm0
movss %xmm0, (%rcx,%rdx,4)
incq %rdx
cmpq %rdx, %rbx
jne 0x1f976
incl %ebp
cmpl %r12d, %ebp
jne 0x1f960
movq 0x48(%rsp), %rax
testl %r15d, %r15d
movq 0xb8(%rsp), %r14
movq 0xb0(%rsp), %rbp
je 0x1f9f3
subl 0x60(%rsp), %r12d
movslq %r12d, %rcx
testq %rcx, %rcx
js 0x1f9c5
xorps %xmm0, %xmm0
cvtsi2ss %r12d, %xmm0
jmp 0x1f9db
shrq %rcx
andl $0x1, %r12d
orq %rcx, %r12
xorps %xmm0, %xmm0
cvtsi2ss %r12, %xmm0
addss %xmm0, %xmm0
xorl %ecx, %ecx
movss (%rax,%rcx,4), %xmm1
divss %xmm0, %xmm1
movss %xmm1, (%rax,%rcx,4)
incq %rcx
cmpq %rcx, %rbx
jne 0x1f9dd
movq 0x50(%rsp), %rsi
subq %rax, %rsi
sarq $0x2, %rsi
leaq 0x68(%rsp), %rdi
leaq 0x47(%rsp), %rdx
callq 0x21ce8
movq 0x48(%rsp), %rdi
movq 0x68(%rsp), %rsi
movl %r15d, %edx
movl $0x2, %ecx
callq 0x77938
movq 0xa8(%rsp), %rbx
movq 0xc8(%rsp), %r12
movq 0x80(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x21d74
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x1fa5e
movq 0x78(%rsp), %rsi
subq %rdi, %rsi
callq 0x1a8f0
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x1fa75
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x1a8f0
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x1fa92
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x1a8f0
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x1fab7
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x1a8f0
incq %r12
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x5, %rax
cmpq %rax, %r12
jb 0x1f797
movq 0x120(%rsp), %rax
movq %rax, 0x30(%rsp)
movups 0xf0(%rsp), %xmm0
movups 0x100(%rsp), %xmm1
movups 0x110(%rsp), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x1a980
addq $0x128, %rsp # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1fb26
jmp 0x1fb26
jmp 0x1fb26
jmp 0x1fb55
jmp 0x1fb5a
jmp 0x1fb55
jmp 0x1fb26
movq %rax, %rbx
jmp 0x1fbb6
movq %rax, %rbx
jmp 0x1fb91
jmp 0x1fb55
movq %rax, %rbx
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x1fb5d
movq 0x78(%rsp), %rsi
subq %rdi, %rsi
callq 0x1a8f0
jmp 0x1fb5d
jmp 0x1fb55
jmp 0x1fb5a
movq %rax, %rbx
jmp 0x1fb74
movq %rax, %rbx
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x1fb74
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x1a8f0
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x1fb91
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x1a8f0
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x1fbb6
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x1a8f0
movq 0x80(%rsp), %rdi
callq 0x20bd0
movq %rbx, %rdi
callq 0x1afb0
| _ZL6encodeP13llama_contextRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EERKS7_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 128h
mov r14, rcx
mov rbx, rdx
xorps xmm0, xmm0
movups xmmword ptr [rdi], xmm0
mov [rsp+158h+var_D8], rdi
mov qword ptr [rdi+10h], 0
mov [rsp+158h+var_D0], rsi
mov rdi, rsi
call _llama_get_model
mov [rsp+158h+var_98], rax
mov rdi, rax
call _llama_model_get_vocab
mov rbp, rax
mov rdi, [rsp+158h+var_D0]
call _llama_n_batch
lea rdi, [rsp+158h+var_68]
mov esi, eax
xor edx, edx
mov ecx, 1
call _llama_batch_init
mov rax, [rbx+8]
cmp rax, [rbx]
jz loc_1FACE
xor r12d, r12d
lea r13, [rsp+158h+var_110]
mov [rsp+158h+var_A0], r14
mov [rsp+158h+var_B0], rbx
mov [rsp+158h+var_A8], rbp
loc_1F797:
lea rdi, [rsp+158h+var_68]
call _Z18common_batch_clearR11llama_batch; common_batch_clear(llama_batch &)
mov rdx, r12
shl rdx, 5
add rdx, [rbx]
lea r15, [rsp+158h+var_88]
mov rdi, r15
mov rsi, r14
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_; std::operator+<char>(std::string const&,std::string const&)
mov [rsp+158h+var_90], r12
lea rdi, [rsp+158h+var_C8]
mov rsi, rbp
mov rdx, r15
mov ecx, 1
xor r8d, r8d
call _Z15common_tokenizePK11llama_vocabRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbb; common_tokenize(llama_vocab const*,std::string const&,bool,bool)
mov r12, [rsp+158h+var_C0]
sub r12, [rsp+158h+var_C8]
mov rdi, r13
mov rsi, rbp
mov rdx, r14
mov ecx, 1
xor r8d, r8d
call _Z15common_tokenizePK11llama_vocabRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbb; common_tokenize(llama_vocab const*,std::string const&,bool,bool)
mov rbx, [rsp+158h+var_110]
mov r14, [rsp+158h+var_108]
test rbx, rbx
jz short loc_1F829
mov rsi, [rsp+158h+var_100]
sub rsi, rbx; unsigned __int64
mov rdi, rbx; void *
call __ZdlPvm; operator delete(void *,ulong)
loc_1F829:
sar r12, 2
sub r14, rbx
mov [rsp+158h+var_F8], r14
test r12d, r12d
jle short loc_1F8B9
mov rax, [rsp+158h+var_F8]
shr rax, 2
movsxd r15, eax
mov r14d, r12d
and r14d, 7FFFFFFFh
xor ebx, ebx
loc_1F852:
mov rax, [rsp+158h+var_C8]
mov ebp, [rax+rbx*4]
mov dword ptr [rsp+158h+var_F0], 0
mov edx, 1
mov rdi, r13
lea rsi, [rsp+158h+var_F0]
lea rcx, [rsp+158h+var_111]
call _ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_; std::vector<int>::vector(std::initializer_list<int>,std::allocator<int> const&)
xor r8d, r8d
cmp rbx, r15
setnl r8b
lea rdi, [rsp+158h+var_68]
mov esi, ebp
mov edx, ebx
mov rcx, r13
call _Z16common_batch_addR11llama_batchiiRKSt6vectorIiSaIiEEb; common_batch_add(llama_batch &,int,int,std::vector<int> const&,bool)
mov rdi, [rsp+158h+var_110]; void *
test rdi, rdi
jz short loc_1F8B1
mov rsi, [rsp+158h+var_100]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1F8B1:
inc rbx
cmp r14, rbx
jnz short loc_1F852
loc_1F8B9:
mov r14, [rsp+158h+var_D0]
mov rdi, r14
call _llama_kv_cache_clear
mov rdi, r14
mov esi, 1
call _llama_set_embeddings
mov rdi, r14
xor esi, esi
call _llama_set_causal_attn
mov rax, [rsp+158h+var_38]
mov [rsp+158h+var_128], rax
movups xmm0, [rsp+158h+var_68]
movups xmm1, [rsp+158h+var_58]
movups xmm2, [rsp+158h+var_48]
movups [rsp+158h+var_138], xmm2
movups [rsp+158h+var_148], xmm1
movups [rsp+158h+var_158], xmm0
mov rdi, r14
call _llama_decode
mov rdi, [rsp+158h+var_98]
call _llama_model_n_embd
mov r15d, eax
movsxd rbx, eax
mov dword ptr [rsp+158h+var_F0], 0
mov rdi, r13
mov rsi, rbx
lea rdx, [rsp+158h+var_F0]
lea rcx, [rsp+158h+var_111]
call _ZNSt6vectorIfSaIfEEC2EmRKfRKS0_; std::vector<float>::vector(ulong,float const&,std::allocator<float> const&)
mov rax, [rsp+158h+var_F8]
sar rax, 2
mov ebp, eax
mov [rsp+158h+var_F8], rax
cmp eax, r12d
jge short loc_1F994
loc_1F960:
mov rdi, r14
mov esi, ebp
call _llama_get_embeddings_ith
test r15d, r15d
jz short loc_1F98D
mov rcx, [rsp+158h+var_110]
xor edx, edx
loc_1F976:
movss xmm0, dword ptr [rax+rdx*4]
addss xmm0, dword ptr [rcx+rdx*4]
movss dword ptr [rcx+rdx*4], xmm0
inc rdx
cmp rbx, rdx
jnz short loc_1F976
loc_1F98D:
inc ebp
cmp ebp, r12d
jnz short loc_1F960
loc_1F994:
mov rax, [rsp+158h+var_110]
test r15d, r15d
mov r14, [rsp+158h+var_A0]
mov rbp, [rsp+158h+var_A8]
jz short loc_1F9F3
sub r12d, dword ptr [rsp+158h+var_F8]
movsxd rcx, r12d
test rcx, rcx
js short loc_1F9C5
xorps xmm0, xmm0
cvtsi2ss xmm0, r12d
jmp short loc_1F9DB
loc_1F9C5:
shr rcx, 1
and r12d, 1
or r12, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, r12
addss xmm0, xmm0
loc_1F9DB:
xor ecx, ecx
loc_1F9DD:
movss xmm1, dword ptr [rax+rcx*4]
divss xmm1, xmm0
movss dword ptr [rax+rcx*4], xmm1
inc rcx
cmp rbx, rcx
jnz short loc_1F9DD
loc_1F9F3:
mov rsi, [rsp+158h+var_108]
sub rsi, rax
sar rsi, 2
lea rdi, [rsp+158h+var_F0]
lea rdx, [rsp+158h+var_111]
call _ZNSt6vectorIfSaIfEEC2EmRKS0_; std::vector<float>::vector(ulong,std::allocator<float> const&)
mov rdi, [rsp+158h+var_110]; float *
mov rsi, [rsp+158h+var_F0]; float *
mov edx, r15d; int
mov ecx, 2; int
call _Z21common_embd_normalizePKfPfii; common_embd_normalize(float const*,float *,int,int)
mov rbx, [rsp+158h+var_B0]
mov r12, [rsp+158h+var_90]
mov rdi, [rsp+158h+var_D8]
lea rsi, [rsp+158h+var_F0]
call _ZNSt6vectorIS_IfSaIfEESaIS1_EE9push_backERKS1_; std::vector<std::vector<float>>::push_back(std::vector<float> const&)
mov rdi, [rsp+158h+var_F0]; void *
test rdi, rdi
jz short loc_1FA5E
mov rsi, [rsp+158h+var_E0]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1FA5E:
mov rdi, [rsp+158h+var_110]; void *
test rdi, rdi
jz short loc_1FA75
mov rsi, [rsp+158h+var_100]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1FA75:
mov rdi, [rsp+158h+var_C8]; void *
test rdi, rdi
jz short loc_1FA92
mov rsi, [rsp+158h+var_B8]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1FA92:
mov rdi, [rsp+158h+var_88]; void *
lea rax, [rsp+158h+var_78]
cmp rdi, rax
jz short loc_1FAB7
mov rsi, [rsp+158h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1FAB7:
inc r12
mov rax, [rbx+8]
sub rax, [rbx]
sar rax, 5
cmp r12, rax
jb loc_1F797
loc_1FACE:
mov rax, [rsp+158h+var_38]
mov [rsp+158h+var_128], rax
movups xmm0, [rsp+158h+var_68]
movups xmm1, [rsp+158h+var_58]
movups xmm2, [rsp+158h+var_48]
movups [rsp+158h+var_138], xmm2
movups [rsp+158h+var_148], xmm1
movups [rsp+158h+var_158], xmm0
call _llama_batch_free
add rsp, 128h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_1FB26
jmp short loc_1FB26
jmp short loc_1FB26
jmp short loc_1FB55
jmp short loc_1FB5A
jmp short loc_1FB55
jmp short $+2
loc_1FB26:
mov rbx, rax
jmp loc_1FBB6
mov rbx, rax
jmp short loc_1FB91
jmp short loc_1FB55
mov rbx, rax
mov rdi, [rsp+arg_60]; void *
test rdi, rdi
jz short loc_1FB5D
mov rsi, [rsp+arg_70]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_1FB5D
jmp short loc_1FB55
jmp short loc_1FB5A
loc_1FB55:
mov rbx, rax
jmp short loc_1FB74
loc_1FB5A:
mov rbx, rax
loc_1FB5D:
mov rdi, [rsp+arg_40]; void *
test rdi, rdi
jz short loc_1FB74
mov rsi, [rsp+arg_50]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1FB74:
mov rdi, [rsp+arg_88]; void *
test rdi, rdi
jz short loc_1FB91
mov rsi, [rsp+arg_98]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1FB91:
mov rdi, [rsp+arg_C8]; void *
lea rax, [rsp+arg_D8]
cmp rdi, rax
jz short loc_1FBB6
mov rsi, [rsp+arg_D8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1FBB6:
mov rdi, [rsp+arg_78]
call _ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev; std::vector<std::vector<float>>::~vector()
mov rdi, rbx
call __Unwind_Resume
| long long encode(long long a1, long long a2, _QWORD *a3, long long a4)
{
long long vocab; // rbp
_QWORD *v7; // rdi
float **v8; // rsi
long long v9; // rdx
long long v10; // rcx
long long v11; // r8
long long v12; // r9
unsigned long long v13; // r12
signed long long v14; // r12
float *v15; // rbx
long long v16; // r14
long long v17; // r12
long long v18; // r15
long long v19; // rbx
unsigned int v20; // ebp
long long v21; // r14
long long v22; // rdx
long long v23; // rcx
long long v24; // r8
long long v25; // r9
int v26; // r15d
unsigned int v27; // ebp
long long embeddings_ith; // rax
float *v29; // rcx
long long i; // rdx
float *v31; // rax
int v32; // r12d
float v33; // xmm0_4
unsigned long long v34; // r12
long long j; // rcx
unsigned long long v36; // r12
char v38; // [rsp+47h] [rbp-111h] BYREF
float *v39; // [rsp+48h] [rbp-110h] BYREF
long long v40; // [rsp+50h] [rbp-108h]
long long v41; // [rsp+58h] [rbp-100h]
long long v42; // [rsp+60h] [rbp-F8h]
float *v43[2]; // [rsp+68h] [rbp-F0h] BYREF
long long v44; // [rsp+78h] [rbp-E0h]
long long v45; // [rsp+80h] [rbp-D8h]
long long v46; // [rsp+88h] [rbp-D0h]
void *v47[2]; // [rsp+90h] [rbp-C8h] BYREF
long long v48; // [rsp+A0h] [rbp-B8h]
_QWORD *v49; // [rsp+A8h] [rbp-B0h]
long long v50; // [rsp+B0h] [rbp-A8h]
long long v51; // [rsp+B8h] [rbp-A0h]
long long model; // [rsp+C0h] [rbp-98h]
unsigned long long v53; // [rsp+C8h] [rbp-90h]
void *v54[2]; // [rsp+D0h] [rbp-88h] BYREF
long long v55; // [rsp+E0h] [rbp-78h] BYREF
_QWORD v56[13]; // [rsp+F0h] [rbp-68h] BYREF
*(_OWORD *)a1 = 0LL;
v45 = a1;
*(_QWORD *)(a1 + 16) = 0LL;
v46 = a2;
model = llama_get_model(a2);
vocab = llama_model_get_vocab(model);
v7 = v56;
v8 = (float **)(unsigned int)llama_n_batch(a2);
llama_batch_init(v56, v8, 0LL, 1LL);
if ( a3[1] != *a3 )
{
v13 = 0LL;
v51 = a4;
v49 = a3;
v50 = vocab;
do
{
common_batch_clear(v56);
std::operator+<char>(v54, a4, *a3 + 32 * v13);
v53 = v13;
common_tokenize(v47, vocab, v54, 1LL, 0LL);
v14 = (char *)v47[1] - (char *)v47[0];
common_tokenize(&v39, vocab, a4, 1LL, 0LL);
v15 = v39;
v16 = v40;
if ( v39 )
operator delete(v39, v41 - (_QWORD)v39);
v17 = v14 >> 2;
v42 = v16 - (_QWORD)v15;
if ( (int)v17 > 0 )
{
v18 = (int)((unsigned long long)v42 >> 2);
v19 = 0LL;
do
{
v20 = *((_DWORD *)v47[0] + v19);
LODWORD(v43[0]) = 0;
std::vector<int>::vector(&v39, v43, 1LL, &v38);
common_batch_add(v56, v20, (unsigned int)v19, &v39, v19 >= v18);
if ( v39 )
operator delete(v39, v41 - (_QWORD)v39);
++v19;
}
while ( (v17 & 0x7FFFFFFF) != v19 );
}
v21 = v46;
llama_kv_cache_clear(v46);
llama_set_embeddings(v21, 1LL);
llama_set_causal_attn(v21, 0LL);
llama_decode(v21, 0LL, v22, v23, v24, v25, v56[0], v56[1], v56[2], v56[3], v56[4], v56[5], v56[6]);
v26 = llama_model_n_embd(model);
LODWORD(v43[0]) = 0;
std::vector<float>::vector(&v39, v26, v43, &v38);
v27 = v42 >> 2;
v42 >>= 2;
if ( (int)v42 < (int)v17 )
{
do
{
embeddings_ith = llama_get_embeddings_ith(v21, v27);
if ( v26 )
{
v29 = v39;
for ( i = 0LL; i != v26; ++i )
v29[i] = *(float *)(embeddings_ith + 4 * i) + v29[i];
}
++v27;
}
while ( v27 != (_DWORD)v17 );
}
v31 = v39;
a4 = v51;
vocab = v50;
if ( v26 )
{
v32 = v17 - v42;
if ( v32 < 0LL )
{
v34 = ((unsigned long long)v32 >> 1) | v32 & 1;
v33 = (float)(int)v34 + (float)(int)v34;
}
else
{
v33 = (float)v32;
}
for ( j = 0LL; j != v26; ++j )
v31[j] = v31[j] / v33;
}
std::vector<float>::vector(v43, (v40 - (long long)v31) >> 2, &v38);
common_embd_normalize(v39, v43[0], v26, 2);
a3 = v49;
v36 = v53;
v8 = v43;
std::vector<std::vector<float>>::push_back(v45, v43);
if ( v43[0] )
{
v8 = (float **)(v44 - (unsigned long long)v43[0]);
operator delete(v43[0], v44 - (unsigned long long)v43[0]);
}
if ( v39 )
{
v8 = (float **)(v41 - (_QWORD)v39);
operator delete(v39, v41 - (_QWORD)v39);
}
if ( v47[0] )
{
v8 = (float **)(v48 - (unsigned long long)v47[0]);
operator delete(v47[0], v48 - (unsigned long long)v47[0]);
}
v7 = v54[0];
if ( v54[0] != &v55 )
{
v8 = (float **)(v55 + 1);
operator delete(v54[0], v55 + 1);
}
v13 = v36 + 1;
}
while ( v13 < (long long)(a3[1] - *a3) >> 5 );
}
return llama_batch_free(v7, v8, v9, v10, v11, v12, v56[0]);
}
| encode:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x128
MOV R14,RCX
MOV RBX,RDX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI],XMM0
MOV qword ptr [RSP + 0x80],RDI
MOV qword ptr [RDI + 0x10],0x0
LAB_0011f724:
MOV qword ptr [RSP + 0x88],RSI
MOV RDI,RSI
CALL 0x0011a7b0
LAB_0011f734:
MOV qword ptr [RSP + 0xc0],RAX
MOV RDI,RAX
CALL 0x0011b160
LAB_0011f744:
MOV RBP,RAX
MOV RDI,qword ptr [RSP + 0x88]
CALL 0x0011a1f0
LEA RDI,[RSP + 0xf0]
MOV ESI,EAX
XOR EDX,EDX
MOV ECX,0x1
CALL 0x0011a470
MOV RAX,qword ptr [RBX + 0x8]
CMP RAX,qword ptr [RBX]
JZ 0x0011face
XOR R12D,R12D
LEA R13,[RSP + 0x48]
MOV qword ptr [RSP + 0xb8],R14
MOV qword ptr [RSP + 0xa8],RBX
MOV qword ptr [RSP + 0xb0],RBP
LAB_0011f797:
LEA RDI,[RSP + 0xf0]
CALL 0x00175779
MOV RDX,R12
SHL RDX,0x5
ADD RDX,qword ptr [RBX]
LAB_0011f7ae:
LEA R15,[RSP + 0xd0]
MOV RDI,R15
MOV RSI,R14
CALL 0x00121abd
LAB_0011f7c1:
MOV qword ptr [RSP + 0xc8],R12
LEA RDI,[RSP + 0x90]
MOV RSI,RBP
MOV RDX,R15
MOV ECX,0x1
XOR R8D,R8D
CALL 0x00175a32
MOV R12,qword ptr [RSP + 0x98]
SUB R12,qword ptr [RSP + 0x90]
LAB_0011f7f4:
MOV RDI,R13
MOV RSI,RBP
MOV RDX,R14
MOV ECX,0x1
XOR R8D,R8D
CALL 0x00175a32
MOV RBX,qword ptr [RSP + 0x48]
MOV R14,qword ptr [RSP + 0x50]
TEST RBX,RBX
JZ 0x0011f829
MOV RSI,qword ptr [RSP + 0x58]
SUB RSI,RBX
MOV RDI,RBX
CALL 0x0011a8f0
LAB_0011f829:
SAR R12,0x2
SUB R14,RBX
MOV qword ptr [RSP + 0x60],R14
TEST R12D,R12D
JLE 0x0011f8b9
MOV RAX,qword ptr [RSP + 0x60]
SHR RAX,0x2
MOVSXD R15,EAX
MOV R14D,R12D
AND R14D,0x7fffffff
XOR EBX,EBX
LAB_0011f852:
MOV RAX,qword ptr [RSP + 0x90]
MOV EBP,dword ptr [RAX + RBX*0x4]
MOV dword ptr [RSP + 0x68],0x0
LAB_0011f865:
MOV EDX,0x1
MOV RDI,R13
LEA RSI,[RSP + 0x68]
LEA RCX,[RSP + 0x47]
CALL 0x00121b18
XOR R8D,R8D
CMP RBX,R15
SETGE R8B
LAB_0011f886:
LEA RDI,[RSP + 0xf0]
MOV ESI,EBP
MOV EDX,EBX
MOV RCX,R13
CALL 0x00175780
MOV RDI,qword ptr [RSP + 0x48]
TEST RDI,RDI
JZ 0x0011f8b1
MOV RSI,qword ptr [RSP + 0x58]
SUB RSI,RDI
CALL 0x0011a8f0
LAB_0011f8b1:
INC RBX
CMP R14,RBX
JNZ 0x0011f852
LAB_0011f8b9:
MOV R14,qword ptr [RSP + 0x88]
MOV RDI,R14
CALL 0x0011b0a0
MOV RDI,R14
MOV ESI,0x1
CALL 0x0011ac70
MOV RDI,R14
XOR ESI,ESI
CALL 0x0011aee0
MOV RAX,qword ptr [RSP + 0x120]
MOV qword ptr [RSP + 0x30],RAX
MOVUPS XMM0,xmmword ptr [RSP + 0xf0]
MOVUPS XMM1,xmmword ptr [RSP + 0x100]
MOVUPS XMM2,xmmword ptr [RSP + 0x110]
MOVUPS xmmword ptr [RSP + 0x20],XMM2
MOVUPS xmmword ptr [RSP + 0x10],XMM1
MOVUPS xmmword ptr [RSP],XMM0
MOV RDI,R14
CALL 0x0011ae00
LAB_0011f91b:
MOV RDI,qword ptr [RSP + 0xc0]
CALL 0x0011a230
MOV R15D,EAX
MOVSXD RBX,EAX
MOV dword ptr [RSP + 0x68],0x0
LAB_0011f936:
MOV RDI,R13
MOV RSI,RBX
LEA RDX,[RSP + 0x68]
LEA RCX,[RSP + 0x47]
CALL 0x00121b5e
MOV RAX,qword ptr [RSP + 0x60]
SAR RAX,0x2
MOV EBP,EAX
MOV qword ptr [RSP + 0x60],RAX
CMP EAX,R12D
JGE 0x0011f994
LAB_0011f960:
MOV RDI,R14
MOV ESI,EBP
CALL 0x0011a5f0
TEST R15D,R15D
JZ 0x0011f98d
MOV RCX,qword ptr [RSP + 0x48]
XOR EDX,EDX
LAB_0011f976:
MOVSS XMM0,dword ptr [RAX + RDX*0x4]
ADDSS XMM0,dword ptr [RCX + RDX*0x4]
MOVSS dword ptr [RCX + RDX*0x4],XMM0
INC RDX
CMP RBX,RDX
JNZ 0x0011f976
LAB_0011f98d:
INC EBP
CMP EBP,R12D
JNZ 0x0011f960
LAB_0011f994:
MOV RAX,qword ptr [RSP + 0x48]
TEST R15D,R15D
MOV R14,qword ptr [RSP + 0xb8]
MOV RBP,qword ptr [RSP + 0xb0]
JZ 0x0011f9f3
SUB R12D,dword ptr [RSP + 0x60]
MOVSXD RCX,R12D
TEST RCX,RCX
JS 0x0011f9c5
XORPS XMM0,XMM0
CVTSI2SS XMM0,R12D
JMP 0x0011f9db
LAB_0011f9c5:
SHR RCX,0x1
AND R12D,0x1
OR R12,RCX
XORPS XMM0,XMM0
CVTSI2SS XMM0,R12
ADDSS XMM0,XMM0
LAB_0011f9db:
XOR ECX,ECX
LAB_0011f9dd:
MOVSS XMM1,dword ptr [RAX + RCX*0x4]
DIVSS XMM1,XMM0
MOVSS dword ptr [RAX + RCX*0x4],XMM1
INC RCX
CMP RBX,RCX
JNZ 0x0011f9dd
LAB_0011f9f3:
MOV RSI,qword ptr [RSP + 0x50]
SUB RSI,RAX
SAR RSI,0x2
LAB_0011f9ff:
LEA RDI,[RSP + 0x68]
LEA RDX,[RSP + 0x47]
CALL 0x00121ce8
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x68]
LAB_0011fa18:
MOV EDX,R15D
MOV ECX,0x2
CALL 0x00177938
MOV RBX,qword ptr [RSP + 0xa8]
MOV R12,qword ptr [RSP + 0xc8]
MOV RDI,qword ptr [RSP + 0x80]
LEA RSI,[RSP + 0x68]
CALL 0x00121d74
MOV RDI,qword ptr [RSP + 0x68]
TEST RDI,RDI
JZ 0x0011fa5e
MOV RSI,qword ptr [RSP + 0x78]
SUB RSI,RDI
CALL 0x0011a8f0
LAB_0011fa5e:
MOV RDI,qword ptr [RSP + 0x48]
TEST RDI,RDI
JZ 0x0011fa75
MOV RSI,qword ptr [RSP + 0x58]
SUB RSI,RDI
CALL 0x0011a8f0
LAB_0011fa75:
MOV RDI,qword ptr [RSP + 0x90]
TEST RDI,RDI
JZ 0x0011fa92
MOV RSI,qword ptr [RSP + 0xa0]
SUB RSI,RDI
CALL 0x0011a8f0
LAB_0011fa92:
MOV RDI,qword ptr [RSP + 0xd0]
LEA RAX,[RSP + 0xe0]
CMP RDI,RAX
JZ 0x0011fab7
MOV RSI,qword ptr [RSP + 0xe0]
INC RSI
CALL 0x0011a8f0
LAB_0011fab7:
INC R12
MOV RAX,qword ptr [RBX + 0x8]
SUB RAX,qword ptr [RBX]
SAR RAX,0x5
CMP R12,RAX
JC 0x0011f797
LAB_0011face:
MOV RAX,qword ptr [RSP + 0x120]
MOV qword ptr [RSP + 0x30],RAX
MOVUPS XMM0,xmmword ptr [RSP + 0xf0]
MOVUPS XMM1,xmmword ptr [RSP + 0x100]
MOVUPS XMM2,xmmword ptr [RSP + 0x110]
MOVUPS xmmword ptr [RSP + 0x20],XMM2
MOVUPS xmmword ptr [RSP + 0x10],XMM1
MOVUPS xmmword ptr [RSP],XMM0
CALL 0x0011a980
LAB_0011fb06:
ADD RSP,0x128
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* encode(llama_context*, std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > >
const&, std::__cxx11::string const&) */
void encode(llama_context *param_1,vector *param_2,string *param_3)
{
void *pvVar1;
vector *pvVar2;
string *psVar3;
int4 uVar4;
int iVar5;
string *psVar6;
ulong uVar7;
long lVar8;
string *in_RCX;
float *pfVar9;
ulong uVar10;
float *pfVar11;
uint uVar12;
uint uVar13;
long lVar14;
float fVar15;
int1 local_111;
float *local_110;
long local_108;
long local_100;
ulong local_f8;
int4 local_f0;
int4 uStack_ec;
long local_e0;
llama_context *local_d8;
vector *local_d0;
void *local_c8;
long local_c0;
long local_b8;
string *local_b0;
string *local_a8;
string *local_a0;
int8 local_98;
ulong local_90;
long *local_88 [2];
long local_78 [2];
llama_batch local_68 [56];
*(int8 *)param_1 = 0;
*(int8 *)(param_1 + 8) = 0;
*(int8 *)(param_1 + 0x10) = 0;
local_d8 = param_1;
local_d0 = param_2;
/* try { // try from 0011f724 to 0011f733 has its CatchHandler @ 0011fb1a */
local_98 = llama_get_model(param_2);
/* try { // try from 0011f734 to 0011f743 has its CatchHandler @ 0011fb18 */
psVar6 = (string *)llama_model_get_vocab(local_98);
/* try { // try from 0011f744 to 0011f769 has its CatchHandler @ 0011fb1c */
uVar4 = llama_n_batch(local_d0);
llama_batch_init(local_68,uVar4,0,1);
if (*(long *)(param_3 + 8) != *(long *)param_3) {
uVar7 = 0;
local_b0 = param_3;
local_a8 = psVar6;
local_a0 = in_RCX;
do {
/* try { // try from 0011f797 to 0011f7a3 has its CatchHandler @ 0011fb24 */
common_batch_clear(local_68);
/* try { // try from 0011f7ae to 0011f7c0 has its CatchHandler @ 0011fb26 */
std::operator+((string *)local_88,in_RCX);
/* try { // try from 0011f7c1 to 0011f7e3 has its CatchHandler @ 0011fb2e */
local_90 = uVar7;
common_tokenize((llama_vocab *)&local_c8,psVar6,SUB81((string *)local_88,0),true);
lVar14 = local_c0 - (long)local_c8;
/* try { // try from 0011f7f4 to 0011f809 has its CatchHandler @ 0011fb33 */
common_tokenize((llama_vocab *)&local_110,psVar6,SUB81(in_RCX,0),true);
lVar8 = local_108;
pfVar11 = local_110;
if (local_110 != (float *)0x0) {
operator_delete(local_110,local_100 - (long)local_110);
}
local_f8 = lVar8 - (long)pfVar11;
uVar13 = (uint)(lVar14 >> 2);
if (0 < (int)uVar13) {
uVar7 = local_f8 >> 2;
uVar10 = 0;
do {
iVar5 = *(int *)((long)local_c8 + uVar10 * 4);
local_f0 = 0;
/* try { // try from 0011f865 to 0011f87b has its CatchHandler @ 0011fb55 */
std::vector<int,std::allocator<int>>::vector
((vector<int,std::allocator<int>> *)&local_110,&local_f0,1,&local_111);
/* try { // try from 0011f886 to 0011f899 has its CatchHandler @ 0011fb5a */
common_batch_add(local_68,iVar5,(int)uVar10,(vector *)&local_110,
(long)(int)uVar7 <= (long)uVar10);
if (local_110 != (float *)0x0) {
operator_delete(local_110,local_100 - (long)local_110);
}
uVar10 = uVar10 + 1;
} while ((uVar13 & 0x7fffffff) != uVar10);
}
/* try { // try from 0011f8b9 to 0011f91a has its CatchHandler @ 0011fb51 */
pvVar2 = local_d0;
llama_kv_cache_clear(local_d0);
llama_set_embeddings(pvVar2,1);
llama_set_causal_attn(pvVar2,0);
llama_decode(pvVar2);
/* try { // try from 0011f91b to 0011f927 has its CatchHandler @ 0011fb22 */
iVar5 = llama_model_n_embd(local_98);
pfVar11 = (float *)(long)iVar5;
local_f0 = 0;
/* try { // try from 0011f936 to 0011f94a has its CatchHandler @ 0011fb1e */
std::vector<float,std::allocator<float>>::vector
((ulong)&local_110,pfVar11,(allocator *)&local_f0);
local_f8 = (long)local_f8 >> 2;
uVar7 = local_f8 & 0xffffffff;
if ((int)local_f8 < (int)uVar13) {
do {
/* try { // try from 0011f960 to 0011f969 has its CatchHandler @ 0011fb53 */
lVar8 = llama_get_embeddings_ith(pvVar2,uVar7);
if (iVar5 != 0) {
pfVar9 = (float *)0x0;
do {
local_110[(long)pfVar9] =
*(float *)(lVar8 + (long)pfVar9 * 4) + local_110[(long)pfVar9];
pfVar9 = (float *)((long)pfVar9 + 1);
} while (pfVar11 != pfVar9);
}
uVar12 = (int)uVar7 + 1;
uVar7 = (ulong)uVar12;
} while (uVar12 != uVar13);
}
in_RCX = local_a0;
psVar6 = local_a8;
if (iVar5 != 0) {
uVar13 = uVar13 - (int)local_f8;
if ((long)(int)uVar13 < 0) {
fVar15 = (float)((ulong)(uVar13 & 1) | (ulong)(long)(int)uVar13 >> 1);
fVar15 = fVar15 + fVar15;
}
else {
fVar15 = (float)(int)uVar13;
}
pfVar9 = (float *)0x0;
do {
local_110[(long)pfVar9] = local_110[(long)pfVar9] / fVar15;
pfVar9 = (float *)((long)pfVar9 + 1);
} while (pfVar11 != pfVar9);
}
/* try { // try from 0011f9ff to 0011fa0d has its CatchHandler @ 0011fb20 */
std::vector<float,std::allocator<float>>::vector
((ulong)&local_f0,(allocator *)(local_108 - (long)local_110 >> 2));
/* try { // try from 0011fa18 to 0011fa46 has its CatchHandler @ 0011fb35 */
common_embd_normalize(local_110,(float *)CONCAT44(uStack_ec,local_f0),iVar5,2);
uVar7 = local_90;
psVar3 = local_b0;
std::
vector<std::vector<float,std::allocator<float>>,std::allocator<std::vector<float,std::allocator<float>>>>
::push_back((vector<std::vector<float,std::allocator<float>>,std::allocator<std::vector<float,std::allocator<float>>>>
*)local_d8,(vector *)&local_f0);
pvVar1 = (void *)CONCAT44(uStack_ec,local_f0);
if (pvVar1 != (void *)0x0) {
operator_delete(pvVar1,local_e0 - (long)pvVar1);
}
if (local_110 != (float *)0x0) {
operator_delete(local_110,local_100 - (long)local_110);
}
if (local_c8 != (void *)0x0) {
operator_delete(local_c8,local_b8 - (long)local_c8);
}
if (local_88[0] != local_78) {
operator_delete(local_88[0],local_78[0] + 1);
}
uVar7 = uVar7 + 1;
} while (uVar7 < (ulong)(*(long *)(psVar3 + 8) - *(long *)psVar3 >> 5));
}
/* try { // try from 0011face to 0011fb05 has its CatchHandler @ 0011fb1c */
llama_batch_free();
return;
}
| |
22,384 | mi_update_status | eloqsql/storage/myisam/mi_locking.c | void mi_update_status(void* param)
{
MI_INFO *info=(MI_INFO*) param;
DBUG_ENTER("mi_update_status");
/*
Because someone may have closed the table we point at, we only
update the state if its our own state. This isn't a problem as
we are always pointing at our own lock or at a read lock.
(This is enforced by thr_multi_lock.c)
*/
if (info->state == &info->save_state)
{
DBUG_PRINT("info",
("updating status: key_file: %lu data_file: %lu rows: %lu",
(ulong) info->state->key_file_length,
(ulong) info->state->data_file_length,
(ulong) info->state->records));
if (info->state->key_file_length < info->s->state.state.key_file_length ||
info->state->data_file_length < info->s->state.state.data_file_length)
DBUG_PRINT("warning",("old info: key_file: %ld data_file: %ld",
(long) info->s->state.state.key_file_length,
(long) info->s->state.state.data_file_length));
info->s->state.state= *info->state;
#ifdef HAVE_QUERY_CACHE
DBUG_PRINT("info", ("invalidator... '%s' (status update)",
info->filename));
DBUG_ASSERT(info->s->chst_invalidator != NULL);
(*info->s->chst_invalidator)((const char *)info->filename);
#endif
}
info->state= &info->s->state.state;
info->append_insert_at_end= 0;
/*
We have to flush the write cache here as other threads may start
reading the table before mi_lock_database() is called
*/
if (info->opt_flag & WRITE_CACHE_USED)
{
if (end_io_cache(&info->rec_cache))
{
mi_print_error(info->s, HA_ERR_CRASHED);
mi_mark_crashed(info);
}
info->opt_flag&= ~WRITE_CACHE_USED;
}
DBUG_VOID_RETURN;
} | O0 | c | mi_update_status:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
addq $0x10, %rcx
cmpq %rcx, %rax
jne 0xb0c83
jmp 0xb0c0b
jmp 0xb0c0d
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x20(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
cmpq 0x38(%rcx), %rax
jb 0xb0c3f
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x28(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
cmpq 0x40(%rcx), %rax
jae 0xb0c45
jmp 0xb0c41
jmp 0xb0c43
jmp 0xb0c45
movq -0x10(%rbp), %rax
movq (%rax), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movl $0x38, %edx
callq 0x2a090
jmp 0xb0c64
jmp 0xb0c66
jmp 0xb0c68
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x2f8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0xf8(%rcx), %rdi
callq *%rax
movq -0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x18, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movb $0x0, 0x33a(%rax)
movq -0x10(%rbp), %rax
movl 0x1c8(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0xb0d27
movq -0x10(%rbp), %rdi
addq $0x220, %rdi # imm = 0x220
callq 0xe1f20
cmpl $0x0, %eax
je 0xb0d14
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x268(%rax), %rsi
movl $0x7e, %edi
callq 0xae2b0
movq -0x10(%rbp), %rax
movq (%rax), %rax
movzbl 0xf0(%rax), %ecx
orl $0x2, %ecx
movb %cl, 0xf0(%rax)
jmp 0xb0cf9
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq 0xa2bde(%rip), %rdx # 0x1538e6
movl $0x164, %ecx # imm = 0x164
callq 0x2afa0
jmp 0xb0d14
movq -0x10(%rbp), %rax
movl 0x1c8(%rax), %ecx
andl $-0x11, %ecx
movl %ecx, 0x1c8(%rax)
jmp 0xb0d29
jmp 0xb0d2b
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| mi_update_status:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rbp+var_10]
add rcx, 10h
cmp rax, rcx
jnz short loc_B0C83
jmp short $+2
loc_B0C0B:
jmp short $+2
loc_B0C0D:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rax, [rax+20h]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
cmp rax, [rcx+38h]
jb short loc_B0C3F
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rax, [rax+28h]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
cmp rax, [rcx+40h]
jnb short loc_B0C45
loc_B0C3F:
jmp short $+2
loc_B0C41:
jmp short $+2
loc_B0C43:
jmp short $+2
loc_B0C45:
mov rax, [rbp+var_10]
mov rdi, [rax]
add rdi, 18h
mov rax, [rbp+var_10]
mov rsi, [rax+8]
mov edx, 38h ; '8'
call _memcpy
jmp short $+2
loc_B0C64:
jmp short $+2
loc_B0C66:
jmp short $+2
loc_B0C68:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+2F8h]
mov rcx, [rbp+var_10]
mov rdi, [rcx+0F8h]
call rax
loc_B0C83:
mov rax, [rbp+var_10]
mov rcx, [rax]
add rcx, 18h
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov rax, [rbp+var_10]
mov byte ptr [rax+33Ah], 0
mov rax, [rbp+var_10]
mov eax, [rax+1C8h]
and eax, 10h
cmp eax, 0
jz short loc_B0D27
mov rdi, [rbp+var_10]
add rdi, 220h
call end_io_cache
cmp eax, 0
jz short loc_B0D14
mov rax, [rbp+var_10]
mov rax, [rax]
mov rsi, [rax+268h]
mov edi, 7Eh ; '~'
call mi_report_error
mov rax, [rbp+var_10]
mov rax, [rax]
movzx ecx, byte ptr [rax+0F0h]
or ecx, 2
mov [rax+0F0h], cl
jmp short $+2
loc_B0CF9:
mov rdi, [rbp+var_10]
xor eax, eax
mov esi, eax
lea rdx, aWorkspaceLlm4b_27; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 164h
call _mi_report_crashed
jmp short $+2
loc_B0D14:
mov rax, [rbp+var_10]
mov ecx, [rax+1C8h]
and ecx, 0FFFFFFEFh
mov [rax+1C8h], ecx
loc_B0D27:
jmp short $+2
loc_B0D29:
jmp short $+2
loc_B0D2B:
add rsp, 10h
pop rbp
retn
| _DWORD * mi_update_status(_DWORD *a1)
{
_DWORD *result; // rax
if ( *((_DWORD **)a1 + 1) == a1 + 4 )
{
memcpy(*(_QWORD *)a1 + 24LL, *((_QWORD *)a1 + 1), 56LL);
(*(void ( **)(_QWORD))(*(_QWORD *)a1 + 760LL))(*((_QWORD *)a1 + 31));
}
*((_QWORD *)a1 + 1) = *(_QWORD *)a1 + 24LL;
*((_BYTE *)a1 + 826) = 0;
result = (_DWORD *)(a1[114] & 0x10);
if ( (_DWORD)result )
{
if ( (unsigned int)end_io_cache(a1 + 136) )
{
mi_report_error(126, *(_QWORD *)(*(_QWORD *)a1 + 616LL));
*(_BYTE *)(*(_QWORD *)a1 + 240LL) |= 2u;
mi_report_crashed();
}
result = a1;
a1[114] &= ~0x10u;
}
return result;
}
| mi_update_status:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
ADD RCX,0x10
CMP RAX,RCX
JNZ 0x001b0c83
JMP 0x001b0c0b
LAB_001b0c0b:
JMP 0x001b0c0d
LAB_001b0c0d:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
CMP RAX,qword ptr [RCX + 0x38]
JC 0x001b0c3f
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x28]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
CMP RAX,qword ptr [RCX + 0x40]
JNC 0x001b0c45
LAB_001b0c3f:
JMP 0x001b0c41
LAB_001b0c41:
JMP 0x001b0c43
LAB_001b0c43:
JMP 0x001b0c45
LAB_001b0c45:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
ADD RDI,0x18
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
MOV EDX,0x38
CALL 0x0012a090
JMP 0x001b0c64
LAB_001b0c64:
JMP 0x001b0c66
LAB_001b0c66:
JMP 0x001b0c68
LAB_001b0c68:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x2f8]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RCX + 0xf8]
CALL RAX
LAB_001b0c83:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x18
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x33a],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x1c8]
AND EAX,0x10
CMP EAX,0x0
JZ 0x001b0d27
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x220
CALL 0x001e1f20
CMP EAX,0x0
JZ 0x001b0d14
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x268]
MOV EDI,0x7e
CALL 0x001ae2b0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOVZX ECX,byte ptr [RAX + 0xf0]
OR ECX,0x2
MOV byte ptr [RAX + 0xf0],CL
JMP 0x001b0cf9
LAB_001b0cf9:
MOV RDI,qword ptr [RBP + -0x10]
XOR EAX,EAX
MOV ESI,EAX
LEA RDX,[0x2538e6]
MOV ECX,0x164
CALL 0x0012afa0
JMP 0x001b0d14
LAB_001b0d14:
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x1c8]
AND ECX,0xffffffef
MOV dword ptr [RAX + 0x1c8],ECX
LAB_001b0d27:
JMP 0x001b0d29
LAB_001b0d29:
JMP 0x001b0d2b
LAB_001b0d2b:
ADD RSP,0x10
POP RBP
RET
|
void mi_update_status(long *param_1)
{
int iVar1;
if ((long *)param_1[1] == param_1 + 2) {
memcpy((void *)(*param_1 + 0x18),(void *)param_1[1],0x38);
(**(code **)(*param_1 + 0x2f8))(param_1[0x1f]);
}
param_1[1] = *param_1 + 0x18;
*(int1 *)((long)param_1 + 0x33a) = 0;
if ((*(uint *)(param_1 + 0x39) & 0x10) != 0) {
iVar1 = end_io_cache(param_1 + 0x44);
if (iVar1 != 0) {
mi_report_error(0x7e,*(int8 *)(*param_1 + 0x268));
*(byte *)(*param_1 + 0xf0) = *(byte *)(*param_1 + 0xf0) | 2;
_mi_report_crashed(param_1,0,
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_locking.c",
0x164);
}
*(uint *)(param_1 + 0x39) = *(uint *)(param_1 + 0x39) & 0xffffffef;
}
return;
}
| |
22,385 | my_casedn_ucs2 | eloqsql/strings/ctype-ucs2.c | static size_t my_casedn_ucs2(CHARSET_INFO *cs, const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
int res;
const char *srcend= src + srclen;
char *dstend= dst + dstlen;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(srclen <= dstlen);
while ((src < srcend) &&
(res= my_ucs2_uni(cs, &wc, (uchar*) src, (uchar*) srcend)) > 0)
{
my_tolower_ucs2(uni_plane, &wc);
if (res != my_uni_ucs2(cs, wc, (uchar*) dst, (uchar*) dstend))
break;
src+= res;
dst+= res;
}
return srclen;
} | O3 | c | my_casedn_ucs2:
movq %rdx, %rax
cmpq $0x2, %rdx
jl 0x4c07a
pushq %rbp
movq %rsp, %rbp
leaq (%rsi,%rax), %rdx
addq %rcx, %r8
movq 0x78(%rdi), %rdi
addq $0x2, %rcx
movzbl (%rsi), %r9d
movzbl 0x1(%rsi), %r10d
movq 0x8(%rdi), %r11
movq (%r11,%r9,8), %r11
testq %r11, %r11
je 0x4c041
leaq (%r10,%r10,2), %r9
movl 0x4(%r11,%r9,4), %r9d
jmp 0x4c048
shll $0x8, %r9d
orq %r10, %r9
cmpq %r8, %rcx
ja 0x4c079
cmpl $0xffff, %r9d # imm = 0xFFFF
ja 0x4c079
rolw $0x8, %r9w
movw %r9w, -0x2(%rcx)
leaq 0x2(%rsi), %r9
cmpq %rdx, %r9
jae 0x4c079
addq $0x4, %rsi
addq $0x2, %rcx
cmpq %rdx, %rsi
movq %r9, %rsi
jbe 0x4c020
popq %rbp
retq
| my_casedn_ucs2:
mov rax, rdx
cmp rdx, 2
jl short locret_4C07A
push rbp
mov rbp, rsp
lea rdx, [rsi+rax]
add r8, rcx
mov rdi, [rdi+78h]
add rcx, 2
loc_4C020:
movzx r9d, byte ptr [rsi]
movzx r10d, byte ptr [rsi+1]
mov r11, [rdi+8]
mov r11, [r11+r9*8]
test r11, r11
jz short loc_4C041
lea r9, [r10+r10*2]
mov r9d, [r11+r9*4+4]
jmp short loc_4C048
loc_4C041:
shl r9d, 8
or r9, r10
loc_4C048:
cmp rcx, r8
ja short loc_4C079
cmp r9d, 0FFFFh
ja short loc_4C079
rol r9w, 8
mov [rcx-2], r9w
lea r9, [rsi+2]
cmp r9, rdx
jnb short loc_4C079
add rsi, 4
add rcx, 2
cmp rsi, rdx
mov rsi, r9
jbe short loc_4C020
loc_4C079:
pop rbp
locret_4C07A:
retn
| long long my_casedn_ucs2(long long a1, unsigned __int8 *a2, long long a3, long long a4, long long a5)
{
long long result; // rax
unsigned long long v6; // rdx
unsigned long long v7; // r8
long long v8; // rdi
unsigned long long v9; // rcx
long long v10; // r9
long long v11; // r10
long long v12; // r11
unsigned int v13; // r9d
bool v14; // cc
result = a3;
if ( a3 >= 2 )
{
v6 = (unsigned long long)&a2[a3];
v7 = a4 + a5;
v8 = *(_QWORD *)(a1 + 120);
v9 = a4 + 2;
do
{
v10 = *a2;
v11 = a2[1];
v12 = *(_QWORD *)(*(_QWORD *)(v8 + 8) + 8 * v10);
if ( v12 )
v13 = *(_DWORD *)(v12 + 12 * v11 + 4);
else
v13 = v11 | ((_DWORD)v10 << 8);
if ( v9 > v7 )
break;
if ( v13 > 0xFFFF )
break;
*(_WORD *)(v9 - 2) = __ROL2__(v13, 8);
if ( (unsigned long long)(a2 + 2) >= v6 )
break;
v9 += 2LL;
v14 = (unsigned long long)(a2 + 4) <= v6;
a2 += 2;
}
while ( v14 );
}
return result;
}
| my_casedn_ucs2:
MOV RAX,RDX
CMP RDX,0x2
JL 0x0014c07a
PUSH RBP
MOV RBP,RSP
LEA RDX,[RSI + RAX*0x1]
ADD R8,RCX
MOV RDI,qword ptr [RDI + 0x78]
ADD RCX,0x2
LAB_0014c020:
MOVZX R9D,byte ptr [RSI]
MOVZX R10D,byte ptr [RSI + 0x1]
MOV R11,qword ptr [RDI + 0x8]
MOV R11,qword ptr [R11 + R9*0x8]
TEST R11,R11
JZ 0x0014c041
LEA R9,[R10 + R10*0x2]
MOV R9D,dword ptr [R11 + R9*0x4 + 0x4]
JMP 0x0014c048
LAB_0014c041:
SHL R9D,0x8
OR R9,R10
LAB_0014c048:
CMP RCX,R8
JA 0x0014c079
CMP R9D,0xffff
JA 0x0014c079
ROL R9W,0x8
MOV word ptr [RCX + -0x2],R9W
LEA R9,[RSI + 0x2]
CMP R9,RDX
JNC 0x0014c079
ADD RSI,0x4
ADD RCX,0x2
CMP RSI,RDX
MOV RSI,R9
JBE 0x0014c020
LAB_0014c079:
POP RBP
LAB_0014c07a:
RET
|
void my_casedn_ucs2(long param_1,byte *param_2,long param_3,long param_4,long param_5)
{
long lVar1;
long lVar2;
ulong uVar3;
byte *pbVar4;
byte *pbVar5;
uint uVar6;
if (1 < param_3) {
lVar1 = *(long *)(param_1 + 0x78);
uVar3 = param_4 + 2;
pbVar4 = param_2;
while( true ) {
lVar2 = *(long *)(*(long *)(lVar1 + 8) + (ulong)*pbVar4 * 8);
if (lVar2 == 0) {
uVar6 = (uint)CONCAT11(*pbVar4,pbVar4[1]);
}
else {
uVar6 = *(uint *)(lVar2 + 4 + (ulong)pbVar4[1] * 0xc);
}
if (((ulong)(param_5 + param_4) < uVar3) || (0xffff < uVar6)) break;
*(ushort *)(uVar3 - 2) = (ushort)uVar6 << 8 | (ushort)uVar6 >> 8;
if (param_2 + param_3 <= pbVar4 + 2) {
return;
}
pbVar5 = pbVar4 + 4;
uVar3 = uVar3 + 2;
pbVar4 = pbVar4 + 2;
if (param_2 + param_3 < pbVar5) {
return;
}
}
}
return;
}
| |
22,386 | get_length | eloqsql/strings/my_vsnprintf.c | static const char *get_length(const char *fmt, size_t *length, uint *pre_zero)
{
for (; my_isdigit(&my_charset_latin1, *fmt); fmt++)
{
*length= *length * 10 + (uint)(*fmt - '0');
if (!*length)
*pre_zero|= PREZERO_ARG; /* first digit was 0 */
}
return fmt;
} | O3 | c | get_length:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
leaq 0x2bd056(%rip), %rcx # 0x31aa10
movq 0x40(%rcx), %r8
movzbl (%rdi), %edi
testb $0x4, 0x1(%r8,%rdi)
je 0x5d9f2
movq (%rsi), %r8
leaq (%r8,%r8,4), %r8
addq %r8, %r8
movsbl %dil, %edi
addl $-0x30, %edi
addq %r8, %rdi
movq %rdi, (%rsi)
jne 0x5d9e5
orb $0x4, (%rdx)
movq 0x40(%rcx), %r8
movzbl 0x1(%rax), %edi
incq %rax
jmp 0x5d9c1
popq %rbp
retq
| get_length:
push rbp
mov rbp, rsp
mov rax, rdi
lea rcx, my_charset_latin1
mov r8, [rcx+40h]
movzx edi, byte ptr [rdi]
loc_5D9C1:
test byte ptr [r8+rdi+1], 4
jz short loc_5D9F2
mov r8, [rsi]
lea r8, [r8+r8*4]
add r8, r8
movsx edi, dil
add edi, 0FFFFFFD0h
add rdi, r8
mov [rsi], rdi
jnz short loc_5D9E5
or byte ptr [rdx], 4
loc_5D9E5:
mov r8, [rcx+40h]
movzx edi, byte ptr [rax+1]
inc rax
jmp short loc_5D9C1
loc_5D9F2:
pop rbp
retn
| unsigned __int8 * get_length(unsigned __int8 *a1, _QWORD *a2, _BYTE *a3)
{
unsigned __int8 *result; // rax
long long v4; // r8
long long i; // rdi
long long v6; // r8
long long v7; // rdi
result = a1;
v4 = *(_QWORD *)&my_charset_latin1[16];
for ( i = *a1; (*(_BYTE *)(v4 + i + 1) & 4) != 0; i = *++result )
{
v6 = 10LL * *a2;
v7 = (unsigned int)((char)i - 48);
*a2 = v6 + v7;
if ( !(v6 + v7) )
*a3 |= 4u;
v4 = *(_QWORD *)&my_charset_latin1[16];
}
return result;
}
| get_length:
PUSH RBP
MOV RBP,RSP
MOV RAX,RDI
LEA RCX,[0x41aa10]
MOV R8,qword ptr [RCX + 0x40]
MOVZX EDI,byte ptr [RDI]
LAB_0015d9c1:
TEST byte ptr [R8 + RDI*0x1 + 0x1],0x4
JZ 0x0015d9f2
MOV R8,qword ptr [RSI]
LEA R8,[R8 + R8*0x4]
ADD R8,R8
MOVSX EDI,DIL
ADD EDI,-0x30
ADD RDI,R8
MOV qword ptr [RSI],RDI
JNZ 0x0015d9e5
OR byte ptr [RDX],0x4
LAB_0015d9e5:
MOV R8,qword ptr [RCX + 0x40]
MOVZX EDI,byte ptr [RAX + 0x1]
INC RAX
JMP 0x0015d9c1
LAB_0015d9f2:
POP RBP
RET
|
void get_length(byte *param_1,long *param_2,byte *param_3)
{
byte bVar1;
long lVar2;
bVar1 = *param_1;
while ((PTR_ctype_latin1_0041aa50[(ulong)bVar1 + 1] & 4) != 0) {
lVar2 = (ulong)((int)(char)bVar1 - 0x30) + *param_2 * 10;
*param_2 = lVar2;
if (lVar2 == 0) {
*param_3 = *param_3 | 4;
}
bVar1 = param_1[1];
param_1 = param_1 + 1;
}
return;
}
| |
22,387 | fmt::v11::detail::dragonbox::cache_accessor<double>::get_cached_power(int) | zkingston[P]unknot/build_O0/_deps/fmt-src/include/fmt/format-inl.h | static auto get_cached_power(int k) noexcept -> uint128_fallback {
FMT_ASSERT(k >= float_info<double>::min_k && k <= float_info<double>::max_k,
"k is out of range");
static constexpr const uint128_fallback pow10_significands[] = {
#if FMT_USE_FULL_CACHE_DRAGONBOX
{0xff77b1fcbebcdc4f, 0x25e8e89c13bb0f7b},
{0x9faacf3df73609b1, 0x77b191618c54e9ad},
{0xc795830d75038c1d, 0xd59df5b9ef6a2418},
{0xf97ae3d0d2446f25, 0x4b0573286b44ad1e},
{0x9becce62836ac577, 0x4ee367f9430aec33},
{0xc2e801fb244576d5, 0x229c41f793cda740},
{0xf3a20279ed56d48a, 0x6b43527578c11110},
{0x9845418c345644d6, 0x830a13896b78aaaa},
{0xbe5691ef416bd60c, 0x23cc986bc656d554},
{0xedec366b11c6cb8f, 0x2cbfbe86b7ec8aa9},
{0x94b3a202eb1c3f39, 0x7bf7d71432f3d6aa},
{0xb9e08a83a5e34f07, 0xdaf5ccd93fb0cc54},
{0xe858ad248f5c22c9, 0xd1b3400f8f9cff69},
{0x91376c36d99995be, 0x23100809b9c21fa2},
{0xb58547448ffffb2d, 0xabd40a0c2832a78b},
{0xe2e69915b3fff9f9, 0x16c90c8f323f516d},
{0x8dd01fad907ffc3b, 0xae3da7d97f6792e4},
{0xb1442798f49ffb4a, 0x99cd11cfdf41779d},
{0xdd95317f31c7fa1d, 0x40405643d711d584},
{0x8a7d3eef7f1cfc52, 0x482835ea666b2573},
{0xad1c8eab5ee43b66, 0xda3243650005eed0},
{0xd863b256369d4a40, 0x90bed43e40076a83},
{0x873e4f75e2224e68, 0x5a7744a6e804a292},
{0xa90de3535aaae202, 0x711515d0a205cb37},
{0xd3515c2831559a83, 0x0d5a5b44ca873e04},
{0x8412d9991ed58091, 0xe858790afe9486c3},
{0xa5178fff668ae0b6, 0x626e974dbe39a873},
{0xce5d73ff402d98e3, 0xfb0a3d212dc81290},
{0x80fa687f881c7f8e, 0x7ce66634bc9d0b9a},
{0xa139029f6a239f72, 0x1c1fffc1ebc44e81},
{0xc987434744ac874e, 0xa327ffb266b56221},
{0xfbe9141915d7a922, 0x4bf1ff9f0062baa9},
{0x9d71ac8fada6c9b5, 0x6f773fc3603db4aa},
{0xc4ce17b399107c22, 0xcb550fb4384d21d4},
{0xf6019da07f549b2b, 0x7e2a53a146606a49},
{0x99c102844f94e0fb, 0x2eda7444cbfc426e},
{0xc0314325637a1939, 0xfa911155fefb5309},
{0xf03d93eebc589f88, 0x793555ab7eba27cb},
{0x96267c7535b763b5, 0x4bc1558b2f3458df},
{0xbbb01b9283253ca2, 0x9eb1aaedfb016f17},
{0xea9c227723ee8bcb, 0x465e15a979c1cadd},
{0x92a1958a7675175f, 0x0bfacd89ec191eca},
{0xb749faed14125d36, 0xcef980ec671f667c},
{0xe51c79a85916f484, 0x82b7e12780e7401b},
{0x8f31cc0937ae58d2, 0xd1b2ecb8b0908811},
{0xb2fe3f0b8599ef07, 0x861fa7e6dcb4aa16},
{0xdfbdcece67006ac9, 0x67a791e093e1d49b},
{0x8bd6a141006042bd, 0xe0c8bb2c5c6d24e1},
{0xaecc49914078536d, 0x58fae9f773886e19},
{0xda7f5bf590966848, 0xaf39a475506a899f},
{0x888f99797a5e012d, 0x6d8406c952429604},
{0xaab37fd7d8f58178, 0xc8e5087ba6d33b84},
{0xd5605fcdcf32e1d6, 0xfb1e4a9a90880a65},
{0x855c3be0a17fcd26, 0x5cf2eea09a550680},
{0xa6b34ad8c9dfc06f, 0xf42faa48c0ea481f},
{0xd0601d8efc57b08b, 0xf13b94daf124da27},
{0x823c12795db6ce57, 0x76c53d08d6b70859},
{0xa2cb1717b52481ed, 0x54768c4b0c64ca6f},
{0xcb7ddcdda26da268, 0xa9942f5dcf7dfd0a},
{0xfe5d54150b090b02, 0xd3f93b35435d7c4d},
{0x9efa548d26e5a6e1, 0xc47bc5014a1a6db0},
{0xc6b8e9b0709f109a, 0x359ab6419ca1091c},
{0xf867241c8cc6d4c0, 0xc30163d203c94b63},
{0x9b407691d7fc44f8, 0x79e0de63425dcf1e},
{0xc21094364dfb5636, 0x985915fc12f542e5},
{0xf294b943e17a2bc4, 0x3e6f5b7b17b2939e},
{0x979cf3ca6cec5b5a, 0xa705992ceecf9c43},
{0xbd8430bd08277231, 0x50c6ff782a838354},
{0xece53cec4a314ebd, 0xa4f8bf5635246429},
{0x940f4613ae5ed136, 0x871b7795e136be9a},
{0xb913179899f68584, 0x28e2557b59846e40},
{0xe757dd7ec07426e5, 0x331aeada2fe589d0},
{0x9096ea6f3848984f, 0x3ff0d2c85def7622},
{0xb4bca50b065abe63, 0x0fed077a756b53aa},
{0xe1ebce4dc7f16dfb, 0xd3e8495912c62895},
{0x8d3360f09cf6e4bd, 0x64712dd7abbbd95d},
{0xb080392cc4349dec, 0xbd8d794d96aacfb4},
{0xdca04777f541c567, 0xecf0d7a0fc5583a1},
{0x89e42caaf9491b60, 0xf41686c49db57245},
{0xac5d37d5b79b6239, 0x311c2875c522ced6},
{0xd77485cb25823ac7, 0x7d633293366b828c},
{0x86a8d39ef77164bc, 0xae5dff9c02033198},
{0xa8530886b54dbdeb, 0xd9f57f830283fdfd},
{0xd267caa862a12d66, 0xd072df63c324fd7c},
{0x8380dea93da4bc60, 0x4247cb9e59f71e6e},
{0xa46116538d0deb78, 0x52d9be85f074e609},
{0xcd795be870516656, 0x67902e276c921f8c},
{0x806bd9714632dff6, 0x00ba1cd8a3db53b7},
{0xa086cfcd97bf97f3, 0x80e8a40eccd228a5},
{0xc8a883c0fdaf7df0, 0x6122cd128006b2ce},
{0xfad2a4b13d1b5d6c, 0x796b805720085f82},
{0x9cc3a6eec6311a63, 0xcbe3303674053bb1},
{0xc3f490aa77bd60fc, 0xbedbfc4411068a9d},
{0xf4f1b4d515acb93b, 0xee92fb5515482d45},
{0x991711052d8bf3c5, 0x751bdd152d4d1c4b},
{0xbf5cd54678eef0b6, 0xd262d45a78a0635e},
{0xef340a98172aace4, 0x86fb897116c87c35},
{0x9580869f0e7aac0e, 0xd45d35e6ae3d4da1},
{0xbae0a846d2195712, 0x8974836059cca10a},
{0xe998d258869facd7, 0x2bd1a438703fc94c},
{0x91ff83775423cc06, 0x7b6306a34627ddd0},
{0xb67f6455292cbf08, 0x1a3bc84c17b1d543},
{0xe41f3d6a7377eeca, 0x20caba5f1d9e4a94},
{0x8e938662882af53e, 0x547eb47b7282ee9d},
{0xb23867fb2a35b28d, 0xe99e619a4f23aa44},
{0xdec681f9f4c31f31, 0x6405fa00e2ec94d5},
{0x8b3c113c38f9f37e, 0xde83bc408dd3dd05},
{0xae0b158b4738705e, 0x9624ab50b148d446},
{0xd98ddaee19068c76, 0x3badd624dd9b0958},
{0x87f8a8d4cfa417c9, 0xe54ca5d70a80e5d7},
{0xa9f6d30a038d1dbc, 0x5e9fcf4ccd211f4d},
{0xd47487cc8470652b, 0x7647c32000696720},
{0x84c8d4dfd2c63f3b, 0x29ecd9f40041e074},
{0xa5fb0a17c777cf09, 0xf468107100525891},
{0xcf79cc9db955c2cc, 0x7182148d4066eeb5},
{0x81ac1fe293d599bf, 0xc6f14cd848405531},
{0xa21727db38cb002f, 0xb8ada00e5a506a7d},
{0xca9cf1d206fdc03b, 0xa6d90811f0e4851d},
{0xfd442e4688bd304a, 0x908f4a166d1da664},
{0x9e4a9cec15763e2e, 0x9a598e4e043287ff},
{0xc5dd44271ad3cdba, 0x40eff1e1853f29fe},
{0xf7549530e188c128, 0xd12bee59e68ef47d},
{0x9a94dd3e8cf578b9, 0x82bb74f8301958cf},
{0xc13a148e3032d6e7, 0xe36a52363c1faf02},
{0xf18899b1bc3f8ca1, 0xdc44e6c3cb279ac2},
{0x96f5600f15a7b7e5, 0x29ab103a5ef8c0ba},
{0xbcb2b812db11a5de, 0x7415d448f6b6f0e8},
{0xebdf661791d60f56, 0x111b495b3464ad22},
{0x936b9fcebb25c995, 0xcab10dd900beec35},
{0xb84687c269ef3bfb, 0x3d5d514f40eea743},
{0xe65829b3046b0afa, 0x0cb4a5a3112a5113},
{0x8ff71a0fe2c2e6dc, 0x47f0e785eaba72ac},
{0xb3f4e093db73a093, 0x59ed216765690f57},
{0xe0f218b8d25088b8, 0x306869c13ec3532d},
{0x8c974f7383725573, 0x1e414218c73a13fc},
{0xafbd2350644eeacf, 0xe5d1929ef90898fb},
{0xdbac6c247d62a583, 0xdf45f746b74abf3a},
{0x894bc396ce5da772, 0x6b8bba8c328eb784},
{0xab9eb47c81f5114f, 0x066ea92f3f326565},
{0xd686619ba27255a2, 0xc80a537b0efefebe},
{0x8613fd0145877585, 0xbd06742ce95f5f37},
{0xa798fc4196e952e7, 0x2c48113823b73705},
{0xd17f3b51fca3a7a0, 0xf75a15862ca504c6},
{0x82ef85133de648c4, 0x9a984d73dbe722fc},
{0xa3ab66580d5fdaf5, 0xc13e60d0d2e0ebbb},
{0xcc963fee10b7d1b3, 0x318df905079926a9},
{0xffbbcfe994e5c61f, 0xfdf17746497f7053},
{0x9fd561f1fd0f9bd3, 0xfeb6ea8bedefa634},
{0xc7caba6e7c5382c8, 0xfe64a52ee96b8fc1},
{0xf9bd690a1b68637b, 0x3dfdce7aa3c673b1},
{0x9c1661a651213e2d, 0x06bea10ca65c084f},
{0xc31bfa0fe5698db8, 0x486e494fcff30a63},
{0xf3e2f893dec3f126, 0x5a89dba3c3efccfb},
{0x986ddb5c6b3a76b7, 0xf89629465a75e01d},
{0xbe89523386091465, 0xf6bbb397f1135824},
{0xee2ba6c0678b597f, 0x746aa07ded582e2d},
{0x94db483840b717ef, 0xa8c2a44eb4571cdd},
{0xba121a4650e4ddeb, 0x92f34d62616ce414},
{0xe896a0d7e51e1566, 0x77b020baf9c81d18},
{0x915e2486ef32cd60, 0x0ace1474dc1d122f},
{0xb5b5ada8aaff80b8, 0x0d819992132456bb},
{0xe3231912d5bf60e6, 0x10e1fff697ed6c6a},
{0x8df5efabc5979c8f, 0xca8d3ffa1ef463c2},
{0xb1736b96b6fd83b3, 0xbd308ff8a6b17cb3},
{0xddd0467c64bce4a0, 0xac7cb3f6d05ddbdf},
{0x8aa22c0dbef60ee4, 0x6bcdf07a423aa96c},
{0xad4ab7112eb3929d, 0x86c16c98d2c953c7},
{0xd89d64d57a607744, 0xe871c7bf077ba8b8},
{0x87625f056c7c4a8b, 0x11471cd764ad4973},
{0xa93af6c6c79b5d2d, 0xd598e40d3dd89bd0},
{0xd389b47879823479, 0x4aff1d108d4ec2c4},
{0x843610cb4bf160cb, 0xcedf722a585139bb},
{0xa54394fe1eedb8fe, 0xc2974eb4ee658829},
{0xce947a3da6a9273e, 0x733d226229feea33},
{0x811ccc668829b887, 0x0806357d5a3f5260},
{0xa163ff802a3426a8, 0xca07c2dcb0cf26f8},
{0xc9bcff6034c13052, 0xfc89b393dd02f0b6},
{0xfc2c3f3841f17c67, 0xbbac2078d443ace3},
{0x9d9ba7832936edc0, 0xd54b944b84aa4c0e},
{0xc5029163f384a931, 0x0a9e795e65d4df12},
{0xf64335bcf065d37d, 0x4d4617b5ff4a16d6},
{0x99ea0196163fa42e, 0x504bced1bf8e4e46},
{0xc06481fb9bcf8d39, 0xe45ec2862f71e1d7},
{0xf07da27a82c37088, 0x5d767327bb4e5a4d},
{0x964e858c91ba2655, 0x3a6a07f8d510f870},
{0xbbe226efb628afea, 0x890489f70a55368c},
{0xeadab0aba3b2dbe5, 0x2b45ac74ccea842f},
{0x92c8ae6b464fc96f, 0x3b0b8bc90012929e},
{0xb77ada0617e3bbcb, 0x09ce6ebb40173745},
{0xe55990879ddcaabd, 0xcc420a6a101d0516},
{0x8f57fa54c2a9eab6, 0x9fa946824a12232e},
{0xb32df8e9f3546564, 0x47939822dc96abfa},
{0xdff9772470297ebd, 0x59787e2b93bc56f8},
{0x8bfbea76c619ef36, 0x57eb4edb3c55b65b},
{0xaefae51477a06b03, 0xede622920b6b23f2},
{0xdab99e59958885c4, 0xe95fab368e45ecee},
{0x88b402f7fd75539b, 0x11dbcb0218ebb415},
{0xaae103b5fcd2a881, 0xd652bdc29f26a11a},
{0xd59944a37c0752a2, 0x4be76d3346f04960},
{0x857fcae62d8493a5, 0x6f70a4400c562ddc},
{0xa6dfbd9fb8e5b88e, 0xcb4ccd500f6bb953},
{0xd097ad07a71f26b2, 0x7e2000a41346a7a8},
{0x825ecc24c873782f, 0x8ed400668c0c28c9},
{0xa2f67f2dfa90563b, 0x728900802f0f32fb},
{0xcbb41ef979346bca, 0x4f2b40a03ad2ffba},
{0xfea126b7d78186bc, 0xe2f610c84987bfa9},
{0x9f24b832e6b0f436, 0x0dd9ca7d2df4d7ca},
{0xc6ede63fa05d3143, 0x91503d1c79720dbc},
{0xf8a95fcf88747d94, 0x75a44c6397ce912b},
{0x9b69dbe1b548ce7c, 0xc986afbe3ee11abb},
{0xc24452da229b021b, 0xfbe85badce996169},
{0xf2d56790ab41c2a2, 0xfae27299423fb9c4},
{0x97c560ba6b0919a5, 0xdccd879fc967d41b},
{0xbdb6b8e905cb600f, 0x5400e987bbc1c921},
{0xed246723473e3813, 0x290123e9aab23b69},
{0x9436c0760c86e30b, 0xf9a0b6720aaf6522},
{0xb94470938fa89bce, 0xf808e40e8d5b3e6a},
{0xe7958cb87392c2c2, 0xb60b1d1230b20e05},
{0x90bd77f3483bb9b9, 0xb1c6f22b5e6f48c3},
{0xb4ecd5f01a4aa828, 0x1e38aeb6360b1af4},
{0xe2280b6c20dd5232, 0x25c6da63c38de1b1},
{0x8d590723948a535f, 0x579c487e5a38ad0f},
{0xb0af48ec79ace837, 0x2d835a9df0c6d852},
{0xdcdb1b2798182244, 0xf8e431456cf88e66},
{0x8a08f0f8bf0f156b, 0x1b8e9ecb641b5900},
{0xac8b2d36eed2dac5, 0xe272467e3d222f40},
{0xd7adf884aa879177, 0x5b0ed81dcc6abb10},
{0x86ccbb52ea94baea, 0x98e947129fc2b4ea},
{0xa87fea27a539e9a5, 0x3f2398d747b36225},
{0xd29fe4b18e88640e, 0x8eec7f0d19a03aae},
{0x83a3eeeef9153e89, 0x1953cf68300424ad},
{0xa48ceaaab75a8e2b, 0x5fa8c3423c052dd8},
{0xcdb02555653131b6, 0x3792f412cb06794e},
{0x808e17555f3ebf11, 0xe2bbd88bbee40bd1},
{0xa0b19d2ab70e6ed6, 0x5b6aceaeae9d0ec5},
{0xc8de047564d20a8b, 0xf245825a5a445276},
{0xfb158592be068d2e, 0xeed6e2f0f0d56713},
{0x9ced737bb6c4183d, 0x55464dd69685606c},
{0xc428d05aa4751e4c, 0xaa97e14c3c26b887},
{0xf53304714d9265df, 0xd53dd99f4b3066a9},
{0x993fe2c6d07b7fab, 0xe546a8038efe402a},
{0xbf8fdb78849a5f96, 0xde98520472bdd034},
{0xef73d256a5c0f77c, 0x963e66858f6d4441},
{0x95a8637627989aad, 0xdde7001379a44aa9},
{0xbb127c53b17ec159, 0x5560c018580d5d53},
{0xe9d71b689dde71af, 0xaab8f01e6e10b4a7},
{0x9226712162ab070d, 0xcab3961304ca70e9},
{0xb6b00d69bb55c8d1, 0x3d607b97c5fd0d23},
{0xe45c10c42a2b3b05, 0x8cb89a7db77c506b},
{0x8eb98a7a9a5b04e3, 0x77f3608e92adb243},
{0xb267ed1940f1c61c, 0x55f038b237591ed4},
{0xdf01e85f912e37a3, 0x6b6c46dec52f6689},
{0x8b61313bbabce2c6, 0x2323ac4b3b3da016},
{0xae397d8aa96c1b77, 0xabec975e0a0d081b},
{0xd9c7dced53c72255, 0x96e7bd358c904a22},
{0x881cea14545c7575, 0x7e50d64177da2e55},
{0xaa242499697392d2, 0xdde50bd1d5d0b9ea},
{0xd4ad2dbfc3d07787, 0x955e4ec64b44e865},
{0x84ec3c97da624ab4, 0xbd5af13bef0b113f},
{0xa6274bbdd0fadd61, 0xecb1ad8aeacdd58f},
{0xcfb11ead453994ba, 0x67de18eda5814af3},
{0x81ceb32c4b43fcf4, 0x80eacf948770ced8},
{0xa2425ff75e14fc31, 0xa1258379a94d028e},
{0xcad2f7f5359a3b3e, 0x096ee45813a04331},
{0xfd87b5f28300ca0d, 0x8bca9d6e188853fd},
{0x9e74d1b791e07e48, 0x775ea264cf55347e},
{0xc612062576589dda, 0x95364afe032a819e},
{0xf79687aed3eec551, 0x3a83ddbd83f52205},
{0x9abe14cd44753b52, 0xc4926a9672793543},
{0xc16d9a0095928a27, 0x75b7053c0f178294},
{0xf1c90080baf72cb1, 0x5324c68b12dd6339},
{0x971da05074da7bee, 0xd3f6fc16ebca5e04},
{0xbce5086492111aea, 0x88f4bb1ca6bcf585},
{0xec1e4a7db69561a5, 0x2b31e9e3d06c32e6},
{0x9392ee8e921d5d07, 0x3aff322e62439fd0},
{0xb877aa3236a4b449, 0x09befeb9fad487c3},
{0xe69594bec44de15b, 0x4c2ebe687989a9b4},
{0x901d7cf73ab0acd9, 0x0f9d37014bf60a11},
{0xb424dc35095cd80f, 0x538484c19ef38c95},
{0xe12e13424bb40e13, 0x2865a5f206b06fba},
{0x8cbccc096f5088cb, 0xf93f87b7442e45d4},
{0xafebff0bcb24aafe, 0xf78f69a51539d749},
{0xdbe6fecebdedd5be, 0xb573440e5a884d1c},
{0x89705f4136b4a597, 0x31680a88f8953031},
{0xabcc77118461cefc, 0xfdc20d2b36ba7c3e},
{0xd6bf94d5e57a42bc, 0x3d32907604691b4d},
{0x8637bd05af6c69b5, 0xa63f9a49c2c1b110},
{0xa7c5ac471b478423, 0x0fcf80dc33721d54},
{0xd1b71758e219652b, 0xd3c36113404ea4a9},
{0x83126e978d4fdf3b, 0x645a1cac083126ea},
{0xa3d70a3d70a3d70a, 0x3d70a3d70a3d70a4},
{0xcccccccccccccccc, 0xcccccccccccccccd},
{0x8000000000000000, 0x0000000000000000},
{0xa000000000000000, 0x0000000000000000},
{0xc800000000000000, 0x0000000000000000},
{0xfa00000000000000, 0x0000000000000000},
{0x9c40000000000000, 0x0000000000000000},
{0xc350000000000000, 0x0000000000000000},
{0xf424000000000000, 0x0000000000000000},
{0x9896800000000000, 0x0000000000000000},
{0xbebc200000000000, 0x0000000000000000},
{0xee6b280000000000, 0x0000000000000000},
{0x9502f90000000000, 0x0000000000000000},
{0xba43b74000000000, 0x0000000000000000},
{0xe8d4a51000000000, 0x0000000000000000},
{0x9184e72a00000000, 0x0000000000000000},
{0xb5e620f480000000, 0x0000000000000000},
{0xe35fa931a0000000, 0x0000000000000000},
{0x8e1bc9bf04000000, 0x0000000000000000},
{0xb1a2bc2ec5000000, 0x0000000000000000},
{0xde0b6b3a76400000, 0x0000000000000000},
{0x8ac7230489e80000, 0x0000000000000000},
{0xad78ebc5ac620000, 0x0000000000000000},
{0xd8d726b7177a8000, 0x0000000000000000},
{0x878678326eac9000, 0x0000000000000000},
{0xa968163f0a57b400, 0x0000000000000000},
{0xd3c21bcecceda100, 0x0000000000000000},
{0x84595161401484a0, 0x0000000000000000},
{0xa56fa5b99019a5c8, 0x0000000000000000},
{0xcecb8f27f4200f3a, 0x0000000000000000},
{0x813f3978f8940984, 0x4000000000000000},
{0xa18f07d736b90be5, 0x5000000000000000},
{0xc9f2c9cd04674ede, 0xa400000000000000},
{0xfc6f7c4045812296, 0x4d00000000000000},
{0x9dc5ada82b70b59d, 0xf020000000000000},
{0xc5371912364ce305, 0x6c28000000000000},
{0xf684df56c3e01bc6, 0xc732000000000000},
{0x9a130b963a6c115c, 0x3c7f400000000000},
{0xc097ce7bc90715b3, 0x4b9f100000000000},
{0xf0bdc21abb48db20, 0x1e86d40000000000},
{0x96769950b50d88f4, 0x1314448000000000},
{0xbc143fa4e250eb31, 0x17d955a000000000},
{0xeb194f8e1ae525fd, 0x5dcfab0800000000},
{0x92efd1b8d0cf37be, 0x5aa1cae500000000},
{0xb7abc627050305ad, 0xf14a3d9e40000000},
{0xe596b7b0c643c719, 0x6d9ccd05d0000000},
{0x8f7e32ce7bea5c6f, 0xe4820023a2000000},
{0xb35dbf821ae4f38b, 0xdda2802c8a800000},
{0xe0352f62a19e306e, 0xd50b2037ad200000},
{0x8c213d9da502de45, 0x4526f422cc340000},
{0xaf298d050e4395d6, 0x9670b12b7f410000},
{0xdaf3f04651d47b4c, 0x3c0cdd765f114000},
{0x88d8762bf324cd0f, 0xa5880a69fb6ac800},
{0xab0e93b6efee0053, 0x8eea0d047a457a00},
{0xd5d238a4abe98068, 0x72a4904598d6d880},
{0x85a36366eb71f041, 0x47a6da2b7f864750},
{0xa70c3c40a64e6c51, 0x999090b65f67d924},
{0xd0cf4b50cfe20765, 0xfff4b4e3f741cf6d},
{0x82818f1281ed449f, 0xbff8f10e7a8921a5},
{0xa321f2d7226895c7, 0xaff72d52192b6a0e},
{0xcbea6f8ceb02bb39, 0x9bf4f8a69f764491},
{0xfee50b7025c36a08, 0x02f236d04753d5b5},
{0x9f4f2726179a2245, 0x01d762422c946591},
{0xc722f0ef9d80aad6, 0x424d3ad2b7b97ef6},
{0xf8ebad2b84e0d58b, 0xd2e0898765a7deb3},
{0x9b934c3b330c8577, 0x63cc55f49f88eb30},
{0xc2781f49ffcfa6d5, 0x3cbf6b71c76b25fc},
{0xf316271c7fc3908a, 0x8bef464e3945ef7b},
{0x97edd871cfda3a56, 0x97758bf0e3cbb5ad},
{0xbde94e8e43d0c8ec, 0x3d52eeed1cbea318},
{0xed63a231d4c4fb27, 0x4ca7aaa863ee4bde},
{0x945e455f24fb1cf8, 0x8fe8caa93e74ef6b},
{0xb975d6b6ee39e436, 0xb3e2fd538e122b45},
{0xe7d34c64a9c85d44, 0x60dbbca87196b617},
{0x90e40fbeea1d3a4a, 0xbc8955e946fe31ce},
{0xb51d13aea4a488dd, 0x6babab6398bdbe42},
{0xe264589a4dcdab14, 0xc696963c7eed2dd2},
{0x8d7eb76070a08aec, 0xfc1e1de5cf543ca3},
{0xb0de65388cc8ada8, 0x3b25a55f43294bcc},
{0xdd15fe86affad912, 0x49ef0eb713f39ebf},
{0x8a2dbf142dfcc7ab, 0x6e3569326c784338},
{0xacb92ed9397bf996, 0x49c2c37f07965405},
{0xd7e77a8f87daf7fb, 0xdc33745ec97be907},
{0x86f0ac99b4e8dafd, 0x69a028bb3ded71a4},
{0xa8acd7c0222311bc, 0xc40832ea0d68ce0d},
{0xd2d80db02aabd62b, 0xf50a3fa490c30191},
{0x83c7088e1aab65db, 0x792667c6da79e0fb},
{0xa4b8cab1a1563f52, 0x577001b891185939},
{0xcde6fd5e09abcf26, 0xed4c0226b55e6f87},
{0x80b05e5ac60b6178, 0x544f8158315b05b5},
{0xa0dc75f1778e39d6, 0x696361ae3db1c722},
{0xc913936dd571c84c, 0x03bc3a19cd1e38ea},
{0xfb5878494ace3a5f, 0x04ab48a04065c724},
{0x9d174b2dcec0e47b, 0x62eb0d64283f9c77},
{0xc45d1df942711d9a, 0x3ba5d0bd324f8395},
{0xf5746577930d6500, 0xca8f44ec7ee3647a},
{0x9968bf6abbe85f20, 0x7e998b13cf4e1ecc},
{0xbfc2ef456ae276e8, 0x9e3fedd8c321a67f},
{0xefb3ab16c59b14a2, 0xc5cfe94ef3ea101f},
{0x95d04aee3b80ece5, 0xbba1f1d158724a13},
{0xbb445da9ca61281f, 0x2a8a6e45ae8edc98},
{0xea1575143cf97226, 0xf52d09d71a3293be},
{0x924d692ca61be758, 0x593c2626705f9c57},
{0xb6e0c377cfa2e12e, 0x6f8b2fb00c77836d},
{0xe498f455c38b997a, 0x0b6dfb9c0f956448},
{0x8edf98b59a373fec, 0x4724bd4189bd5ead},
{0xb2977ee300c50fe7, 0x58edec91ec2cb658},
{0xdf3d5e9bc0f653e1, 0x2f2967b66737e3ee},
{0x8b865b215899f46c, 0xbd79e0d20082ee75},
{0xae67f1e9aec07187, 0xecd8590680a3aa12},
{0xda01ee641a708de9, 0xe80e6f4820cc9496},
{0x884134fe908658b2, 0x3109058d147fdcde},
{0xaa51823e34a7eede, 0xbd4b46f0599fd416},
{0xd4e5e2cdc1d1ea96, 0x6c9e18ac7007c91b},
{0x850fadc09923329e, 0x03e2cf6bc604ddb1},
{0xa6539930bf6bff45, 0x84db8346b786151d},
{0xcfe87f7cef46ff16, 0xe612641865679a64},
{0x81f14fae158c5f6e, 0x4fcb7e8f3f60c07f},
{0xa26da3999aef7749, 0xe3be5e330f38f09e},
{0xcb090c8001ab551c, 0x5cadf5bfd3072cc6},
{0xfdcb4fa002162a63, 0x73d9732fc7c8f7f7},
{0x9e9f11c4014dda7e, 0x2867e7fddcdd9afb},
{0xc646d63501a1511d, 0xb281e1fd541501b9},
{0xf7d88bc24209a565, 0x1f225a7ca91a4227},
{0x9ae757596946075f, 0x3375788de9b06959},
{0xc1a12d2fc3978937, 0x0052d6b1641c83af},
{0xf209787bb47d6b84, 0xc0678c5dbd23a49b},
{0x9745eb4d50ce6332, 0xf840b7ba963646e1},
{0xbd176620a501fbff, 0xb650e5a93bc3d899},
{0xec5d3fa8ce427aff, 0xa3e51f138ab4cebf},
{0x93ba47c980e98cdf, 0xc66f336c36b10138},
{0xb8a8d9bbe123f017, 0xb80b0047445d4185},
{0xe6d3102ad96cec1d, 0xa60dc059157491e6},
{0x9043ea1ac7e41392, 0x87c89837ad68db30},
{0xb454e4a179dd1877, 0x29babe4598c311fc},
{0xe16a1dc9d8545e94, 0xf4296dd6fef3d67b},
{0x8ce2529e2734bb1d, 0x1899e4a65f58660d},
{0xb01ae745b101e9e4, 0x5ec05dcff72e7f90},
{0xdc21a1171d42645d, 0x76707543f4fa1f74},
{0x899504ae72497eba, 0x6a06494a791c53a9},
{0xabfa45da0edbde69, 0x0487db9d17636893},
{0xd6f8d7509292d603, 0x45a9d2845d3c42b7},
{0x865b86925b9bc5c2, 0x0b8a2392ba45a9b3},
{0xa7f26836f282b732, 0x8e6cac7768d7141f},
{0xd1ef0244af2364ff, 0x3207d795430cd927},
{0x8335616aed761f1f, 0x7f44e6bd49e807b9},
{0xa402b9c5a8d3a6e7, 0x5f16206c9c6209a7},
{0xcd036837130890a1, 0x36dba887c37a8c10},
{0x802221226be55a64, 0xc2494954da2c978a},
{0xa02aa96b06deb0fd, 0xf2db9baa10b7bd6d},
{0xc83553c5c8965d3d, 0x6f92829494e5acc8},
{0xfa42a8b73abbf48c, 0xcb772339ba1f17fa},
{0x9c69a97284b578d7, 0xff2a760414536efc},
{0xc38413cf25e2d70d, 0xfef5138519684abb},
{0xf46518c2ef5b8cd1, 0x7eb258665fc25d6a},
{0x98bf2f79d5993802, 0xef2f773ffbd97a62},
{0xbeeefb584aff8603, 0xaafb550ffacfd8fb},
{0xeeaaba2e5dbf6784, 0x95ba2a53f983cf39},
{0x952ab45cfa97a0b2, 0xdd945a747bf26184},
{0xba756174393d88df, 0x94f971119aeef9e5},
{0xe912b9d1478ceb17, 0x7a37cd5601aab85e},
{0x91abb422ccb812ee, 0xac62e055c10ab33b},
{0xb616a12b7fe617aa, 0x577b986b314d600a},
{0xe39c49765fdf9d94, 0xed5a7e85fda0b80c},
{0x8e41ade9fbebc27d, 0x14588f13be847308},
{0xb1d219647ae6b31c, 0x596eb2d8ae258fc9},
{0xde469fbd99a05fe3, 0x6fca5f8ed9aef3bc},
{0x8aec23d680043bee, 0x25de7bb9480d5855},
{0xada72ccc20054ae9, 0xaf561aa79a10ae6b},
{0xd910f7ff28069da4, 0x1b2ba1518094da05},
{0x87aa9aff79042286, 0x90fb44d2f05d0843},
{0xa99541bf57452b28, 0x353a1607ac744a54},
{0xd3fa922f2d1675f2, 0x42889b8997915ce9},
{0x847c9b5d7c2e09b7, 0x69956135febada12},
{0xa59bc234db398c25, 0x43fab9837e699096},
{0xcf02b2c21207ef2e, 0x94f967e45e03f4bc},
{0x8161afb94b44f57d, 0x1d1be0eebac278f6},
{0xa1ba1ba79e1632dc, 0x6462d92a69731733},
{0xca28a291859bbf93, 0x7d7b8f7503cfdcff},
{0xfcb2cb35e702af78, 0x5cda735244c3d43f},
{0x9defbf01b061adab, 0x3a0888136afa64a8},
{0xc56baec21c7a1916, 0x088aaa1845b8fdd1},
{0xf6c69a72a3989f5b, 0x8aad549e57273d46},
{0x9a3c2087a63f6399, 0x36ac54e2f678864c},
{0xc0cb28a98fcf3c7f, 0x84576a1bb416a7de},
{0xf0fdf2d3f3c30b9f, 0x656d44a2a11c51d6},
{0x969eb7c47859e743, 0x9f644ae5a4b1b326},
{0xbc4665b596706114, 0x873d5d9f0dde1fef},
{0xeb57ff22fc0c7959, 0xa90cb506d155a7eb},
{0x9316ff75dd87cbd8, 0x09a7f12442d588f3},
{0xb7dcbf5354e9bece, 0x0c11ed6d538aeb30},
{0xe5d3ef282a242e81, 0x8f1668c8a86da5fb},
{0x8fa475791a569d10, 0xf96e017d694487bd},
{0xb38d92d760ec4455, 0x37c981dcc395a9ad},
{0xe070f78d3927556a, 0x85bbe253f47b1418},
{0x8c469ab843b89562, 0x93956d7478ccec8f},
{0xaf58416654a6babb, 0x387ac8d1970027b3},
{0xdb2e51bfe9d0696a, 0x06997b05fcc0319f},
{0x88fcf317f22241e2, 0x441fece3bdf81f04},
{0xab3c2fddeeaad25a, 0xd527e81cad7626c4},
{0xd60b3bd56a5586f1, 0x8a71e223d8d3b075},
{0x85c7056562757456, 0xf6872d5667844e4a},
{0xa738c6bebb12d16c, 0xb428f8ac016561dc},
{0xd106f86e69d785c7, 0xe13336d701beba53},
{0x82a45b450226b39c, 0xecc0024661173474},
{0xa34d721642b06084, 0x27f002d7f95d0191},
{0xcc20ce9bd35c78a5, 0x31ec038df7b441f5},
{0xff290242c83396ce, 0x7e67047175a15272},
{0x9f79a169bd203e41, 0x0f0062c6e984d387},
{0xc75809c42c684dd1, 0x52c07b78a3e60869},
{0xf92e0c3537826145, 0xa7709a56ccdf8a83},
{0x9bbcc7a142b17ccb, 0x88a66076400bb692},
{0xc2abf989935ddbfe, 0x6acff893d00ea436},
{0xf356f7ebf83552fe, 0x0583f6b8c4124d44},
{0x98165af37b2153de, 0xc3727a337a8b704b},
{0xbe1bf1b059e9a8d6, 0x744f18c0592e4c5d},
{0xeda2ee1c7064130c, 0x1162def06f79df74},
{0x9485d4d1c63e8be7, 0x8addcb5645ac2ba9},
{0xb9a74a0637ce2ee1, 0x6d953e2bd7173693},
{0xe8111c87c5c1ba99, 0xc8fa8db6ccdd0438},
{0x910ab1d4db9914a0, 0x1d9c9892400a22a3},
{0xb54d5e4a127f59c8, 0x2503beb6d00cab4c},
{0xe2a0b5dc971f303a, 0x2e44ae64840fd61e},
{0x8da471a9de737e24, 0x5ceaecfed289e5d3},
{0xb10d8e1456105dad, 0x7425a83e872c5f48},
{0xdd50f1996b947518, 0xd12f124e28f7771a},
{0x8a5296ffe33cc92f, 0x82bd6b70d99aaa70},
{0xace73cbfdc0bfb7b, 0x636cc64d1001550c},
{0xd8210befd30efa5a, 0x3c47f7e05401aa4f},
{0x8714a775e3e95c78, 0x65acfaec34810a72},
{0xa8d9d1535ce3b396, 0x7f1839a741a14d0e},
{0xd31045a8341ca07c, 0x1ede48111209a051},
{0x83ea2b892091e44d, 0x934aed0aab460433},
{0xa4e4b66b68b65d60, 0xf81da84d56178540},
{0xce1de40642e3f4b9, 0x36251260ab9d668f},
{0x80d2ae83e9ce78f3, 0xc1d72b7c6b42601a},
{0xa1075a24e4421730, 0xb24cf65b8612f820},
{0xc94930ae1d529cfc, 0xdee033f26797b628},
{0xfb9b7cd9a4a7443c, 0x169840ef017da3b2},
{0x9d412e0806e88aa5, 0x8e1f289560ee864f},
{0xc491798a08a2ad4e, 0xf1a6f2bab92a27e3},
{0xf5b5d7ec8acb58a2, 0xae10af696774b1dc},
{0x9991a6f3d6bf1765, 0xacca6da1e0a8ef2a},
{0xbff610b0cc6edd3f, 0x17fd090a58d32af4},
{0xeff394dcff8a948e, 0xddfc4b4cef07f5b1},
{0x95f83d0a1fb69cd9, 0x4abdaf101564f98f},
{0xbb764c4ca7a4440f, 0x9d6d1ad41abe37f2},
{0xea53df5fd18d5513, 0x84c86189216dc5ee},
{0x92746b9be2f8552c, 0x32fd3cf5b4e49bb5},
{0xb7118682dbb66a77, 0x3fbc8c33221dc2a2},
{0xe4d5e82392a40515, 0x0fabaf3feaa5334b},
{0x8f05b1163ba6832d, 0x29cb4d87f2a7400f},
{0xb2c71d5bca9023f8, 0x743e20e9ef511013},
{0xdf78e4b2bd342cf6, 0x914da9246b255417},
{0x8bab8eefb6409c1a, 0x1ad089b6c2f7548f},
{0xae9672aba3d0c320, 0xa184ac2473b529b2},
{0xda3c0f568cc4f3e8, 0xc9e5d72d90a2741f},
{0x8865899617fb1871, 0x7e2fa67c7a658893},
{0xaa7eebfb9df9de8d, 0xddbb901b98feeab8},
{0xd51ea6fa85785631, 0x552a74227f3ea566},
{0x8533285c936b35de, 0xd53a88958f872760},
{0xa67ff273b8460356, 0x8a892abaf368f138},
{0xd01fef10a657842c, 0x2d2b7569b0432d86},
{0x8213f56a67f6b29b, 0x9c3b29620e29fc74},
{0xa298f2c501f45f42, 0x8349f3ba91b47b90},
{0xcb3f2f7642717713, 0x241c70a936219a74},
{0xfe0efb53d30dd4d7, 0xed238cd383aa0111},
{0x9ec95d1463e8a506, 0xf4363804324a40ab},
{0xc67bb4597ce2ce48, 0xb143c6053edcd0d6},
{0xf81aa16fdc1b81da, 0xdd94b7868e94050b},
{0x9b10a4e5e9913128, 0xca7cf2b4191c8327},
{0xc1d4ce1f63f57d72, 0xfd1c2f611f63a3f1},
{0xf24a01a73cf2dccf, 0xbc633b39673c8ced},
{0x976e41088617ca01, 0xd5be0503e085d814},
{0xbd49d14aa79dbc82, 0x4b2d8644d8a74e19},
{0xec9c459d51852ba2, 0xddf8e7d60ed1219f},
{0x93e1ab8252f33b45, 0xcabb90e5c942b504},
{0xb8da1662e7b00a17, 0x3d6a751f3b936244},
{0xe7109bfba19c0c9d, 0x0cc512670a783ad5},
{0x906a617d450187e2, 0x27fb2b80668b24c6},
{0xb484f9dc9641e9da, 0xb1f9f660802dedf7},
{0xe1a63853bbd26451, 0x5e7873f8a0396974},
{0x8d07e33455637eb2, 0xdb0b487b6423e1e9},
{0xb049dc016abc5e5f, 0x91ce1a9a3d2cda63},
{0xdc5c5301c56b75f7, 0x7641a140cc7810fc},
{0x89b9b3e11b6329ba, 0xa9e904c87fcb0a9e},
{0xac2820d9623bf429, 0x546345fa9fbdcd45},
{0xd732290fbacaf133, 0xa97c177947ad4096},
{0x867f59a9d4bed6c0, 0x49ed8eabcccc485e},
{0xa81f301449ee8c70, 0x5c68f256bfff5a75},
{0xd226fc195c6a2f8c, 0x73832eec6fff3112},
{0x83585d8fd9c25db7, 0xc831fd53c5ff7eac},
{0xa42e74f3d032f525, 0xba3e7ca8b77f5e56},
{0xcd3a1230c43fb26f, 0x28ce1bd2e55f35ec},
{0x80444b5e7aa7cf85, 0x7980d163cf5b81b4},
{0xa0555e361951c366, 0xd7e105bcc3326220},
{0xc86ab5c39fa63440, 0x8dd9472bf3fefaa8},
{0xfa856334878fc150, 0xb14f98f6f0feb952},
{0x9c935e00d4b9d8d2, 0x6ed1bf9a569f33d4},
{0xc3b8358109e84f07, 0x0a862f80ec4700c9},
{0xf4a642e14c6262c8, 0xcd27bb612758c0fb},
{0x98e7e9cccfbd7dbd, 0x8038d51cb897789d},
{0xbf21e44003acdd2c, 0xe0470a63e6bd56c4},
{0xeeea5d5004981478, 0x1858ccfce06cac75},
{0x95527a5202df0ccb, 0x0f37801e0c43ebc9},
{0xbaa718e68396cffd, 0xd30560258f54e6bb},
{0xe950df20247c83fd, 0x47c6b82ef32a206a},
{0x91d28b7416cdd27e, 0x4cdc331d57fa5442},
{0xb6472e511c81471d, 0xe0133fe4adf8e953},
{0xe3d8f9e563a198e5, 0x58180fddd97723a7},
{0x8e679c2f5e44ff8f, 0x570f09eaa7ea7649},
{0xb201833b35d63f73, 0x2cd2cc6551e513db},
{0xde81e40a034bcf4f, 0xf8077f7ea65e58d2},
{0x8b112e86420f6191, 0xfb04afaf27faf783},
{0xadd57a27d29339f6, 0x79c5db9af1f9b564},
{0xd94ad8b1c7380874, 0x18375281ae7822bd},
{0x87cec76f1c830548, 0x8f2293910d0b15b6},
{0xa9c2794ae3a3c69a, 0xb2eb3875504ddb23},
{0xd433179d9c8cb841, 0x5fa60692a46151ec},
{0x849feec281d7f328, 0xdbc7c41ba6bcd334},
{0xa5c7ea73224deff3, 0x12b9b522906c0801},
{0xcf39e50feae16bef, 0xd768226b34870a01},
{0x81842f29f2cce375, 0xe6a1158300d46641},
{0xa1e53af46f801c53, 0x60495ae3c1097fd1},
{0xca5e89b18b602368, 0x385bb19cb14bdfc5},
{0xfcf62c1dee382c42, 0x46729e03dd9ed7b6},
{0x9e19db92b4e31ba9, 0x6c07a2c26a8346d2},
{0xc5a05277621be293, 0xc7098b7305241886},
{0xf70867153aa2db38, 0xb8cbee4fc66d1ea8},
{0x9a65406d44a5c903, 0x737f74f1dc043329},
{0xc0fe908895cf3b44, 0x505f522e53053ff3},
{0xf13e34aabb430a15, 0x647726b9e7c68ff0},
{0x96c6e0eab509e64d, 0x5eca783430dc19f6},
{0xbc789925624c5fe0, 0xb67d16413d132073},
{0xeb96bf6ebadf77d8, 0xe41c5bd18c57e890},
{0x933e37a534cbaae7, 0x8e91b962f7b6f15a},
{0xb80dc58e81fe95a1, 0x723627bbb5a4adb1},
{0xe61136f2227e3b09, 0xcec3b1aaa30dd91d},
{0x8fcac257558ee4e6, 0x213a4f0aa5e8a7b2},
{0xb3bd72ed2af29e1f, 0xa988e2cd4f62d19e},
{0xe0accfa875af45a7, 0x93eb1b80a33b8606},
{0x8c6c01c9498d8b88, 0xbc72f130660533c4},
{0xaf87023b9bf0ee6a, 0xeb8fad7c7f8680b5},
{0xdb68c2ca82ed2a05, 0xa67398db9f6820e2},
#else
{0xff77b1fcbebcdc4f, 0x25e8e89c13bb0f7b},
{0xce5d73ff402d98e3, 0xfb0a3d212dc81290},
{0xa6b34ad8c9dfc06f, 0xf42faa48c0ea481f},
{0x86a8d39ef77164bc, 0xae5dff9c02033198},
{0xd98ddaee19068c76, 0x3badd624dd9b0958},
{0xafbd2350644eeacf, 0xe5d1929ef90898fb},
{0x8df5efabc5979c8f, 0xca8d3ffa1ef463c2},
{0xe55990879ddcaabd, 0xcc420a6a101d0516},
{0xb94470938fa89bce, 0xf808e40e8d5b3e6a},
{0x95a8637627989aad, 0xdde7001379a44aa9},
{0xf1c90080baf72cb1, 0x5324c68b12dd6339},
{0xc350000000000000, 0x0000000000000000},
{0x9dc5ada82b70b59d, 0xf020000000000000},
{0xfee50b7025c36a08, 0x02f236d04753d5b5},
{0xcde6fd5e09abcf26, 0xed4c0226b55e6f87},
{0xa6539930bf6bff45, 0x84db8346b786151d},
{0x865b86925b9bc5c2, 0x0b8a2392ba45a9b3},
{0xd910f7ff28069da4, 0x1b2ba1518094da05},
{0xaf58416654a6babb, 0x387ac8d1970027b3},
{0x8da471a9de737e24, 0x5ceaecfed289e5d3},
{0xe4d5e82392a40515, 0x0fabaf3feaa5334b},
{0xb8da1662e7b00a17, 0x3d6a751f3b936244},
{0x95527a5202df0ccb, 0x0f37801e0c43ebc9},
{0xf13e34aabb430a15, 0x647726b9e7c68ff0}
#endif
};
#if FMT_USE_FULL_CACHE_DRAGONBOX
return pow10_significands[k - float_info<double>::min_k];
#else
static constexpr const uint64_t powers_of_5_64[] = {
0x0000000000000001, 0x0000000000000005, 0x0000000000000019,
0x000000000000007d, 0x0000000000000271, 0x0000000000000c35,
0x0000000000003d09, 0x000000000001312d, 0x000000000005f5e1,
0x00000000001dcd65, 0x00000000009502f9, 0x0000000002e90edd,
0x000000000e8d4a51, 0x0000000048c27395, 0x000000016bcc41e9,
0x000000071afd498d, 0x0000002386f26fc1, 0x000000b1a2bc2ec5,
0x000003782dace9d9, 0x00001158e460913d, 0x000056bc75e2d631,
0x0001b1ae4d6e2ef5, 0x000878678326eac9, 0x002a5a058fc295ed,
0x00d3c21bcecceda1, 0x0422ca8b0a00a425, 0x14adf4b7320334b9};
static const int compression_ratio = 27;
// Compute base index.
int cache_index = (k - float_info<double>::min_k) / compression_ratio;
int kb = cache_index * compression_ratio + float_info<double>::min_k;
int offset = k - kb;
// Get base cache.
uint128_fallback base_cache = pow10_significands[cache_index];
if (offset == 0) return base_cache;
// Compute the required amount of bit-shift.
int alpha = floor_log2_pow10(kb + offset) - floor_log2_pow10(kb) - offset;
FMT_ASSERT(alpha > 0 && alpha < 64, "shifting error detected");
// Try to recover the real cache.
uint64_t pow5 = powers_of_5_64[offset];
uint128_fallback recovered_cache = umul128(base_cache.high(), pow5);
uint128_fallback middle_low = umul128(base_cache.low(), pow5);
recovered_cache += middle_low.high();
uint64_t high_to_middle = recovered_cache.high() << (64 - alpha);
uint64_t middle_to_low = recovered_cache.low() << (64 - alpha);
recovered_cache =
uint128_fallback{(recovered_cache.low() >> alpha) | high_to_middle,
((middle_low.low() >> alpha) | middle_to_low)};
FMT_ASSERT(recovered_cache.low() + 1 != 0, "");
return {recovered_cache.high(), recovered_cache.low() + 1};
#endif
} | O0 | c | fmt::v11::detail::dragonbox::cache_accessor<double>::get_cached_power(int):
subq $0xc8, %rsp
movl %edi, 0xb4(%rsp)
xorl %eax, %eax
cmpl $0xfffffedc, 0xb4(%rsp) # imm = 0xFFFFFEDC
movb %al, 0x3e(%rsp)
jl 0xa7643
cmpl $0x155, 0xb4(%rsp) # imm = 0x155
setle %al
movb %al, 0x3e(%rsp)
movb 0x3e(%rsp), %al
andb $0x1, %al
movb %al, 0xb3(%rsp)
leaq 0x5297e1(%rip), %rsi # 0x5d0e38
leaq 0xb3(%rsp), %rdi
callq 0xaba00
jmp 0xa7666
movl 0xb4(%rsp), %eax
subl $0xfffffedc, %eax # imm = 0xFFFFFEDC
movl $0x1b, %ecx
cltd
idivl %ecx
movl %eax, 0xac(%rsp)
imull $0x1b, 0xac(%rsp), %eax
addl $0xfffffedc, %eax # imm = 0xFFFFFEDC
movl %eax, 0xa8(%rsp)
movl 0xb4(%rsp), %eax
subl 0xa8(%rsp), %eax
movl %eax, 0xa4(%rsp)
movslq 0xac(%rsp), %rcx
leaq 0x529bb7(%rip), %rax # 0x5d1270
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rcx
movq %rcx, 0x90(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x98(%rsp)
cmpl $0x0, 0xa4(%rsp)
jne 0xa7706
movq 0x90(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x98(%rsp), %rax
movq %rax, 0xc0(%rsp)
jmp 0xa78fc
movl 0xa8(%rsp), %edi
addl 0xa4(%rsp), %edi
callq 0xa9910
movl %eax, 0x38(%rsp)
movl 0xa8(%rsp), %edi
callq 0xa9910
movl %eax, %ecx
movl 0x38(%rsp), %eax
subl %ecx, %eax
subl 0xa4(%rsp), %eax
movl %eax, 0x8c(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x8c(%rsp)
movb %al, 0x3d(%rsp)
jle 0xa775e
cmpl $0x40, 0x8c(%rsp)
setl %al
movb %al, 0x3d(%rsp)
movb 0x3d(%rsp), %al
andb $0x1, %al
movb %al, 0x8b(%rsp)
leaq 0x5296d8(%rip), %rsi # 0x5d0e4a
leaq 0x8b(%rsp), %rdi
callq 0xaba10
jmp 0xa7781
movslq 0xa4(%rsp), %rcx
leaq 0x529c60(%rip), %rax # 0x5d13f0
movq (%rax,%rcx,8), %rax
movq %rax, 0x80(%rsp)
leaq 0x90(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0xaba70
movq %rax, %rdi
movq 0x80(%rsp), %rsi
callq 0xaba20
movq 0x18(%rsp), %rdi
movq %rax, 0x70(%rsp)
movq %rdx, 0x78(%rsp)
callq 0xaba80
movq %rax, %rdi
movq 0x80(%rsp), %rsi
callq 0xaba20
movq %rax, 0x60(%rsp)
movq %rdx, 0x68(%rsp)
leaq 0x60(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0xaba70
movq %rax, %rsi
leaq 0x70(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0xaba90
movq 0x20(%rsp), %rdi
callq 0xaba70
movq 0x20(%rsp), %rdi
movb 0x8c(%rsp), %cl
negb %cl
shlq %cl, %rax
movq %rax, 0x58(%rsp)
callq 0xaba80
movq 0x20(%rsp), %rdi
movb 0x8c(%rsp), %cl
negb %cl
shlq %cl, %rax
movq %rax, 0x50(%rsp)
callq 0xaba80
movq 0x28(%rsp), %rdi
movb 0x8c(%rsp), %cl
shrq %cl, %rax
movq 0x58(%rsp), %rcx
orq %rcx, %rax
movq %rax, 0x30(%rsp)
callq 0xaba80
movq 0x30(%rsp), %rsi
movq %rax, %rdx
movb 0x8c(%rsp), %cl
shrq %cl, %rdx
movq 0x50(%rsp), %rax
orq %rax, %rdx
leaq 0x40(%rsp), %rdi
callq 0xabae0
jmp 0xa7894
movups 0x40(%rsp), %xmm0
movaps %xmm0, 0x70(%rsp)
leaq 0x70(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0xaba80
subq $-0x1, %rax
setne 0x3f(%rsp)
leaq 0x545d9f(%rip), %rsi # 0x5ed65c
leaq 0x3f(%rsp), %rdi
callq 0xa6b30
movq 0x8(%rsp), %rdi
callq 0xaba70
movq 0x8(%rsp), %rdi
movq %rax, 0x10(%rsp)
callq 0xaba80
movq 0x10(%rsp), %rsi
movq %rax, %rdx
incq %rdx
leaq 0xb8(%rsp), %rdi
callq 0xabae0
jmp 0xa78fa
jmp 0xa78fc
movq 0xb8(%rsp), %rax
movq 0xc0(%rsp), %rdx
addq $0xc8, %rsp
retq
movq %rax, %rdi
callq 0x1b1d0
nopl (%rax)
| _ZN3fmt3v116detail9dragonbox14cache_accessorIdE16get_cached_powerEi:
sub rsp, 0C8h
mov [rsp+0C8h+var_14], edi
xor eax, eax
cmp [rsp+0C8h+var_14], 0FFFFFEDCh
mov [rsp+0C8h+var_8A], al
jl short loc_A7643
cmp [rsp+0C8h+var_14], 155h
setle al
mov [rsp+0C8h+var_8A], al
loc_A7643:
mov al, [rsp+0C8h+var_8A]
and al, 1
mov [rsp+0C8h+var_15], al
lea rsi, aKIsOutOfRange; "k is out of range"
lea rdi, [rsp+0C8h+var_15]
call _ZN3fmt3v116detail13ignore_unusedIJbA18_cEEEvDpRKT_; fmt::v11::detail::ignore_unused<bool,char [18]>(bool,char [18] const&)
jmp short $+2
loc_A7666:
mov eax, [rsp+0C8h+var_14]
sub eax, 0FFFFFEDCh
mov ecx, 1Bh
cdq
idiv ecx
mov dword ptr [rsp+0C8h+var_20+4], eax
imul eax, dword ptr [rsp+0C8h+var_20+4], 1Bh
add eax, 0FFFFFEDCh
mov dword ptr [rsp+0C8h+var_20], eax
mov eax, [rsp+0C8h+var_14]
sub eax, dword ptr [rsp+0C8h+var_20]
mov [rsp+0C8h+var_24], eax
movsxd rcx, dword ptr [rsp+0C8h+var_20+4]
lea rax, _ZZN3fmt3v116detail9dragonbox14cache_accessorIdE16get_cached_powerEiE18pow10_significands; fmt::v11::detail::dragonbox::cache_accessor<double>::get_cached_power(int)::pow10_significands
shl rcx, 4
add rax, rcx
mov rcx, [rax]
mov [rsp+0C8h+var_38], rcx
mov rax, [rax+8]
mov [rsp+0C8h+var_30], rax
cmp [rsp+0C8h+var_24], 0
jnz short loc_A7706
mov rax, [rsp+0C8h+var_38]
mov [rsp+0C8h+var_10], rax
mov rax, [rsp+0C8h+var_30]
mov [rsp+0C8h+var_8], rax
jmp loc_A78FC
loc_A7706:
mov edi, dword ptr [rsp+0C8h+var_20]
add edi, [rsp+0C8h+var_24]; this
call _ZN3fmt3v116detail9dragonbox16floor_log2_pow10Ei; fmt::v11::detail::dragonbox::floor_log2_pow10(int)
mov [rsp+0C8h+var_90], eax
mov edi, dword ptr [rsp+0C8h+var_20]; this
call _ZN3fmt3v116detail9dragonbox16floor_log2_pow10Ei; fmt::v11::detail::dragonbox::floor_log2_pow10(int)
mov ecx, eax
mov eax, [rsp+0C8h+var_90]
sub eax, ecx
sub eax, [rsp+0C8h+var_24]
mov [rsp+0C8h+var_3C], eax
xor eax, eax
cmp [rsp+0C8h+var_3C], 0
mov [rsp+0C8h+var_8B], al
jle short loc_A775E
cmp [rsp+0C8h+var_3C], 40h ; '@'
setl al
mov [rsp+0C8h+var_8B], al
loc_A775E:
mov al, [rsp+0C8h+var_8B]
and al, 1
mov [rsp+0C8h+var_3D], al
lea rsi, aShiftingErrorD; "shifting error detected"
lea rdi, [rsp+0C8h+var_3D]
call _ZN3fmt3v116detail13ignore_unusedIJbA24_cEEEvDpRKT_; fmt::v11::detail::ignore_unused<bool,char [24]>(bool,char [24] const&)
jmp short $+2
loc_A7781:
movsxd rcx, [rsp+0C8h+var_24]
lea rax, _ZZN3fmt3v116detail9dragonbox14cache_accessorIdE16get_cached_powerEiE14powers_of_5_64
mov rax, [rax+rcx*8]
mov [rsp+0C8h+var_48], rax
lea rdi, [rsp+0C8h+var_38]; this
mov [rsp+0C8h+var_B0], rdi
call _ZNK3fmt3v116detail16uint128_fallback4highEv; fmt::v11::detail::uint128_fallback::high(void)
mov rdi, rax; this
mov rsi, [rsp+0C8h+var_48]; unsigned __int64
call _ZN3fmt3v116detail7umul128Emm; fmt::v11::detail::umul128(ulong,ulong)
mov rdi, [rsp+0C8h+var_B0]; this
mov qword ptr [rsp+0C8h+var_58], rax
mov qword ptr [rsp+0C8h+var_58+8], rdx
call _ZNK3fmt3v116detail16uint128_fallback3lowEv; fmt::v11::detail::uint128_fallback::low(void)
mov rdi, rax; this
mov rsi, [rsp+0C8h+var_48]; unsigned __int64
call _ZN3fmt3v116detail7umul128Emm; fmt::v11::detail::umul128(ulong,ulong)
mov [rsp+0C8h+var_68], rax
mov [rsp+0C8h+var_60], rdx
lea rdi, [rsp+0C8h+var_68]; this
mov [rsp+0C8h+var_A0], rdi
call _ZNK3fmt3v116detail16uint128_fallback4highEv; fmt::v11::detail::uint128_fallback::high(void)
mov rsi, rax
lea rdi, [rsp+0C8h+var_58]
mov [rsp+0C8h+var_A8], rdi
call _ZN3fmt3v116detail16uint128_fallbackpLEm; fmt::v11::detail::uint128_fallback::operator+=(ulong)
mov rdi, [rsp+0C8h+var_A8]; this
call _ZNK3fmt3v116detail16uint128_fallback4highEv; fmt::v11::detail::uint128_fallback::high(void)
mov rdi, [rsp+0C8h+var_A8]; this
mov cl, byte ptr [rsp+0C8h+var_3C]
neg cl
shl rax, cl
mov [rsp+0C8h+var_70], rax
call _ZNK3fmt3v116detail16uint128_fallback3lowEv; fmt::v11::detail::uint128_fallback::low(void)
mov rdi, [rsp+0C8h+var_A8]; this
mov cl, byte ptr [rsp+0C8h+var_3C]
neg cl
shl rax, cl
mov [rsp+0C8h+var_78], rax
call _ZNK3fmt3v116detail16uint128_fallback3lowEv; fmt::v11::detail::uint128_fallback::low(void)
mov rdi, [rsp+0C8h+var_A0]; this
mov cl, byte ptr [rsp+0C8h+var_3C]
shr rax, cl
mov rcx, [rsp+0C8h+var_70]
or rax, rcx
mov [rsp+0C8h+var_98], rax
call _ZNK3fmt3v116detail16uint128_fallback3lowEv; fmt::v11::detail::uint128_fallback::low(void)
mov rsi, [rsp+0C8h+var_98]; unsigned __int64
mov rdx, rax
mov cl, byte ptr [rsp+0C8h+var_3C]
shr rdx, cl
mov rax, [rsp+0C8h+var_78]
or rdx, rax; unsigned __int64
lea rdi, [rsp+0C8h+var_88]; this
call _ZN3fmt3v116detail16uint128_fallbackC2Emm; fmt::v11::detail::uint128_fallback::uint128_fallback(ulong,ulong)
jmp short $+2
loc_A7894:
movups xmm0, [rsp+0C8h+var_88]
movaps [rsp+0C8h+var_58], xmm0
lea rdi, [rsp+0C8h+var_58]; this
mov [rsp+0C8h+var_C0], rdi
call _ZNK3fmt3v116detail16uint128_fallback3lowEv; fmt::v11::detail::uint128_fallback::low(void)
sub rax, 0FFFFFFFFFFFFFFFFh
setnz [rsp+0C8h+var_89]
lea rsi, asc_5ED65A+2; ""
lea rdi, [rsp+0C8h+var_89]
call _ZN3fmt3v116detail13ignore_unusedIJbA1_cEEEvDpRKT_; fmt::v11::detail::ignore_unused<bool,char [1]>(bool,char [1] const&)
mov rdi, [rsp+0C8h+var_C0]; this
call _ZNK3fmt3v116detail16uint128_fallback4highEv; fmt::v11::detail::uint128_fallback::high(void)
mov rdi, [rsp+0C8h+var_C0]; this
mov [rsp+0C8h+var_B8], rax
call _ZNK3fmt3v116detail16uint128_fallback3lowEv; fmt::v11::detail::uint128_fallback::low(void)
mov rsi, [rsp+0C8h+var_B8]; unsigned __int64
mov rdx, rax
inc rdx; unsigned __int64
lea rdi, [rsp+0C8h+var_10]; this
call _ZN3fmt3v116detail16uint128_fallbackC2Emm; fmt::v11::detail::uint128_fallback::uint128_fallback(ulong,ulong)
jmp short $+2
loc_A78FA:
jmp short $+2
loc_A78FC:
mov rax, [rsp+0C8h+var_10]
mov rdx, [rsp+0C8h+var_8]
add rsp, 0C8h
retn
mov rdi, rax
call __clang_call_terminate
| long long fmt::v11::detail::dragonbox::cache_accessor<double>::get_cached_power(int a1)
{
long long *v1; // rax
fmt::v11::detail *v2; // rax
unsigned long long v3; // rdx
__int128 v4; // rax
fmt::v11::detail *v5; // rax
unsigned long long v6; // rdx
long long v7; // rdx
long long v8; // rax
long long v9; // rax
long long v10; // rax
unsigned long long v11; // rax
unsigned long long v12; // rax
long long v13; // rax
long long v15; // [rsp+10h] [rbp-B8h]
unsigned long long v16; // [rsp+30h] [rbp-98h]
int v17; // [rsp+38h] [rbp-90h]
bool v18; // [rsp+3Dh] [rbp-8Bh]
bool v19; // [rsp+3Eh] [rbp-8Ah]
__int128 v20; // [rsp+40h] [rbp-88h] BYREF
long long v21; // [rsp+50h] [rbp-78h]
long long v22; // [rsp+58h] [rbp-70h]
_QWORD v23[2]; // [rsp+60h] [rbp-68h] BYREF
__int128 v24; // [rsp+70h] [rbp-58h] BYREF
unsigned long long v25; // [rsp+80h] [rbp-48h]
bool v26; // [rsp+8Bh] [rbp-3Dh] BYREF
int v27; // [rsp+8Ch] [rbp-3Ch]
long long v28; // [rsp+90h] [rbp-38h] BYREF
long long v29; // [rsp+98h] [rbp-30h]
signed int v30; // [rsp+A4h] [rbp-24h]
unsigned int v31; // [rsp+A8h] [rbp-20h]
int v32; // [rsp+ACh] [rbp-1Ch]
bool v33; // [rsp+B3h] [rbp-15h] BYREF
int v34; // [rsp+B4h] [rbp-14h]
_QWORD v35[2]; // [rsp+B8h] [rbp-10h] BYREF
v34 = a1;
v19 = 0;
if ( a1 >= -292 )
v19 = v34 <= 341;
v33 = v19;
fmt::v11::detail::ignore_unused<bool,char [18]>(&v33, "k is out of range");
v32 = (v34 + 292) / 27;
v31 = 27 * v32 - 292;
v30 = v34 - v31;
v1 = (long long *)((char *)&fmt::v11::detail::dragonbox::cache_accessor<double>::get_cached_power(int)::pow10_significands
+ 16 * v32);
v28 = *v1;
v29 = v1[1];
if ( v34 == v31 )
{
v35[0] = v28;
v35[1] = v29;
}
else
{
v17 = fmt::v11::detail::dragonbox::floor_log2_pow10(
(fmt::v11::detail::dragonbox *)(v30 + v31),
(int)"k is out of range");
v27 = v17
- fmt::v11::detail::dragonbox::floor_log2_pow10((fmt::v11::detail::dragonbox *)v31, (int)"k is out of range")
- v30;
v18 = 0;
if ( v27 > 0 )
v18 = v27 < 64;
v26 = v18;
fmt::v11::detail::ignore_unused<bool,char [24]>(&v26, "shifting error detected");
v25 = fmt::v11::detail::dragonbox::cache_accessor<double>::get_cached_power(int)::powers_of_5_64[v30];
v2 = (fmt::v11::detail *)fmt::v11::detail::uint128_fallback::high((fmt::v11::detail::uint128_fallback *)&v28);
*(_QWORD *)&v4 = fmt::v11::detail::umul128(v2, v25, v3);
v24 = v4;
v5 = (fmt::v11::detail *)fmt::v11::detail::uint128_fallback::low((fmt::v11::detail::uint128_fallback *)&v28);
v23[0] = fmt::v11::detail::umul128(v5, v25, v6);
v23[1] = v7;
v8 = fmt::v11::detail::uint128_fallback::high((fmt::v11::detail::uint128_fallback *)v23);
fmt::v11::detail::uint128_fallback::operator+=(&v24, v8);
v9 = fmt::v11::detail::uint128_fallback::high((fmt::v11::detail::uint128_fallback *)&v24);
v22 = v9 << -(char)v27;
v10 = fmt::v11::detail::uint128_fallback::low((fmt::v11::detail::uint128_fallback *)&v24);
v21 = v10 << -(char)v27;
v11 = fmt::v11::detail::uint128_fallback::low((fmt::v11::detail::uint128_fallback *)&v24);
v16 = v22 | (v11 >> v27);
v12 = fmt::v11::detail::uint128_fallback::low((fmt::v11::detail::uint128_fallback *)v23);
fmt::v11::detail::uint128_fallback::uint128_fallback(
(fmt::v11::detail::uint128_fallback *)&v20,
v16,
v21 | (v12 >> v27));
v24 = v20;
fmt::v11::detail::uint128_fallback::low((fmt::v11::detail::uint128_fallback *)&v24);
fmt::v11::detail::ignore_unused<bool,char [1]>();
v15 = fmt::v11::detail::uint128_fallback::high((fmt::v11::detail::uint128_fallback *)&v24);
v13 = fmt::v11::detail::uint128_fallback::low((fmt::v11::detail::uint128_fallback *)&v24);
fmt::v11::detail::uint128_fallback::uint128_fallback((fmt::v11::detail::uint128_fallback *)v35, v15, v13 + 1);
}
return v35[0];
}
| get_cached_power:
SUB RSP,0xc8
MOV dword ptr [RSP + 0xb4],EDI
XOR EAX,EAX
CMP dword ptr [RSP + 0xb4],0xfffffedc
MOV byte ptr [RSP + 0x3e],AL
JL 0x001a7643
CMP dword ptr [RSP + 0xb4],0x155
SETLE AL
MOV byte ptr [RSP + 0x3e],AL
LAB_001a7643:
MOV AL,byte ptr [RSP + 0x3e]
AND AL,0x1
MOV byte ptr [RSP + 0xb3],AL
LAB_001a7650:
LEA RSI,[0x6d0e38]
LEA RDI,[RSP + 0xb3]
CALL 0x001aba00
JMP 0x001a7666
LAB_001a7666:
MOV EAX,dword ptr [RSP + 0xb4]
SUB EAX,0xfffffedc
MOV ECX,0x1b
CDQ
IDIV ECX
MOV dword ptr [RSP + 0xac],EAX
IMUL EAX,dword ptr [RSP + 0xac],0x1b
ADD EAX,0xfffffedc
MOV dword ptr [RSP + 0xa8],EAX
MOV EAX,dword ptr [RSP + 0xb4]
SUB EAX,dword ptr [RSP + 0xa8]
MOV dword ptr [RSP + 0xa4],EAX
MOVSXD RCX,dword ptr [RSP + 0xac]
LEA RAX,[0x6d1270]
SHL RCX,0x4
ADD RAX,RCX
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP + 0x90],RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x98],RAX
CMP dword ptr [RSP + 0xa4],0x0
JNZ 0x001a7706
MOV RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0xb8],RAX
MOV RAX,qword ptr [RSP + 0x98]
MOV qword ptr [RSP + 0xc0],RAX
JMP 0x001a78fc
LAB_001a7706:
MOV EDI,dword ptr [RSP + 0xa8]
ADD EDI,dword ptr [RSP + 0xa4]
CALL 0x001a9910
MOV dword ptr [RSP + 0x38],EAX
MOV EDI,dword ptr [RSP + 0xa8]
CALL 0x001a9910
MOV ECX,EAX
MOV EAX,dword ptr [RSP + 0x38]
SUB EAX,ECX
SUB EAX,dword ptr [RSP + 0xa4]
MOV dword ptr [RSP + 0x8c],EAX
XOR EAX,EAX
CMP dword ptr [RSP + 0x8c],0x0
MOV byte ptr [RSP + 0x3d],AL
JLE 0x001a775e
CMP dword ptr [RSP + 0x8c],0x40
SETL AL
MOV byte ptr [RSP + 0x3d],AL
LAB_001a775e:
MOV AL,byte ptr [RSP + 0x3d]
AND AL,0x1
MOV byte ptr [RSP + 0x8b],AL
LEA RSI,[0x6d0e4a]
LEA RDI,[RSP + 0x8b]
CALL 0x001aba10
JMP 0x001a7781
LAB_001a7781:
MOVSXD RCX,dword ptr [RSP + 0xa4]
LEA RAX,[0x6d13f0]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RSP + 0x80],RAX
LEA RDI,[RSP + 0x90]
MOV qword ptr [RSP + 0x18],RDI
CALL 0x001aba70
MOV RDI,RAX
MOV RSI,qword ptr [RSP + 0x80]
CALL 0x001aba20
MOV RDI,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x70],RAX
MOV qword ptr [RSP + 0x78],RDX
CALL 0x001aba80
MOV RDI,RAX
MOV RSI,qword ptr [RSP + 0x80]
CALL 0x001aba20
MOV qword ptr [RSP + 0x60],RAX
MOV qword ptr [RSP + 0x68],RDX
LEA RDI,[RSP + 0x60]
MOV qword ptr [RSP + 0x28],RDI
CALL 0x001aba70
MOV RSI,RAX
LEA RDI,[RSP + 0x70]
MOV qword ptr [RSP + 0x20],RDI
CALL 0x001aba90
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x001aba70
MOV RDI,qword ptr [RSP + 0x20]
MOV CL,byte ptr [RSP + 0x8c]
NEG CL
SHL RAX,CL
MOV qword ptr [RSP + 0x58],RAX
CALL 0x001aba80
MOV RDI,qword ptr [RSP + 0x20]
MOV CL,byte ptr [RSP + 0x8c]
NEG CL
SHL RAX,CL
MOV qword ptr [RSP + 0x50],RAX
CALL 0x001aba80
MOV RDI,qword ptr [RSP + 0x28]
MOV CL,byte ptr [RSP + 0x8c]
SHR RAX,CL
MOV RCX,qword ptr [RSP + 0x58]
OR RAX,RCX
MOV qword ptr [RSP + 0x30],RAX
CALL 0x001aba80
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,RAX
MOV CL,byte ptr [RSP + 0x8c]
SHR RDX,CL
MOV RAX,qword ptr [RSP + 0x50]
OR RDX,RAX
LEA RDI,[RSP + 0x40]
CALL 0x001abae0
JMP 0x001a7894
LAB_001a7894:
MOVUPS XMM0,xmmword ptr [RSP + 0x40]
MOVAPS xmmword ptr [RSP + 0x70],XMM0
LEA RDI,[RSP + 0x70]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x001aba80
SUB RAX,-0x1
SETNZ byte ptr [RSP + 0x3f]
LEA RSI,[0x6ed65c]
LEA RDI,[RSP + 0x3f]
CALL 0x001a6b30
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001aba70
MOV RDI,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x10],RAX
CALL 0x001aba80
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,RAX
INC RDX
LEA RDI,[RSP + 0xb8]
CALL 0x001abae0
JMP 0x001a78fa
LAB_001a78fa:
JMP 0x001a78fc
LAB_001a78fc:
MOV RAX,qword ptr [RSP + 0xb8]
MOV RDX,qword ptr [RSP + 0xc0]
ADD RSP,0xc8
RET
|
/* fmt::v11::detail::dragonbox::cache_accessor<double>::get_cached_power(int) */
int1 [16] fmt::v11::detail::dragonbox::cache_accessor<double>::get_cached_power(int param_1)
{
int1 auVar1 [16];
int8 uVar2;
int8 uVar3;
int iVar4;
int iVar5;
ulong uVar6;
long lVar7;
ulong uVar8;
bool local_8b;
bool local_8a;
bool local_89;
int8 local_88;
int8 uStack_80;
ulong local_78;
ulong local_70;
uint128_fallback local_68 [16];
int1 local_58 [16];
ulong local_48;
bool local_3d;
int local_3c;
int8 local_38;
int8 local_30;
int local_24;
int local_20;
int local_1c;
bool local_15;
int local_14;
int8 local_10;
int8 local_8;
local_8a = -0x125 < param_1 && param_1 < 0x156;
local_15 = local_8a;
/* try { // try from 001a7650 to 001a78f7 has its CatchHandler @ 001a7914 */
local_14 = param_1;
ignore_unused<bool,char[18]>(&local_15,"k is out of range");
local_1c = (local_14 + 0x124) / 0x1b;
local_20 = local_1c * 0x1b + -0x124;
local_24 = local_14 - local_20;
local_38 = *(int8 *)(get_cached_power(int)::pow10_significands + (long)local_1c * 0x10);
local_30 = *(int8 *)(get_cached_power(int)::pow10_significands + (long)local_1c * 0x10 + 8);
uVar2 = local_38;
uVar3 = local_30;
if (local_24 != 0) {
iVar4 = floor_log2_pow10(local_20 + local_24);
iVar5 = floor_log2_pow10(local_20);
local_3c = (iVar4 - iVar5) - local_24;
local_8b = 0 < local_3c && local_3c < 0x40;
local_3d = local_8b;
ignore_unused<bool,char[24]>(&local_3d,"shifting error detected");
local_48 = *(ulong *)(get_cached_power(int)::powers_of_5_64 + (long)local_24 * 8);
uVar6 = uint128_fallback::high((uint128_fallback *)&local_38);
local_58 = umul128(uVar6,local_48);
uVar6 = uint128_fallback::low((uint128_fallback *)&local_38);
local_68 = (uint128_fallback [16])umul128(uVar6,local_48);
uVar6 = uint128_fallback::high(local_68);
uint128_fallback::operator+=((uint128_fallback *)local_58,uVar6);
lVar7 = uint128_fallback::high((uint128_fallback *)local_58);
local_70 = lVar7 << (-(byte)local_3c & 0x3f);
lVar7 = uint128_fallback::low((uint128_fallback *)local_58);
local_78 = lVar7 << (-(byte)local_3c & 0x3f);
uVar6 = uint128_fallback::low((uint128_fallback *)local_58);
uVar6 = uVar6 >> ((byte)local_3c & 0x3f) | local_70;
uVar8 = uint128_fallback::low(local_68);
uint128_fallback::uint128_fallback
((uint128_fallback *)&local_88,uVar6,uVar8 >> ((byte)local_3c & 0x3f) | local_78);
local_58._0_8_ = local_88;
local_58._8_8_ = uStack_80;
lVar7 = uint128_fallback::low((uint128_fallback *)local_58);
local_89 = lVar7 != -1;
ignore_unused<bool,char[1]>(&local_89,"");
uVar6 = uint128_fallback::high((uint128_fallback *)local_58);
lVar7 = uint128_fallback::low((uint128_fallback *)local_58);
uint128_fallback::uint128_fallback((uint128_fallback *)&local_10,uVar6,lVar7 + 1);
uVar2 = local_10;
uVar3 = local_8;
}
local_8 = uVar3;
local_10 = uVar2;
auVar1._8_8_ = local_8;
auVar1._0_8_ = local_10;
return auVar1;
}
| |
22,388 | my_scan_utf32 | eloqsql/strings/ctype-ucs2.c | static size_t
my_scan_utf32(CHARSET_INFO *cs,
const char *str, const char *end, int sequence_type)
{
const char *str0= str;
switch (sequence_type)
{
case MY_SEQ_SPACES:
for ( ; str < end; )
{
my_wc_t wc;
int res= my_utf32_uni(cs, &wc, (uchar*) str, (uchar*) end);
if (res < 0 || wc != ' ')
break;
str+= res;
}
return (size_t) (str - str0);
case MY_SEQ_NONSPACES:
DBUG_ASSERT(0); /* Not implemented */
/* pass through */
default:
return 0;
}
} | O3 | c | my_scan_utf32:
cmpl $0x2, %ecx
jne 0xdc689
pushq %rbp
movq %rsp, %rbp
movq %rsi, %rcx
movq %rcx, %rax
cmpq %rdx, %rcx
jae 0xdc684
leaq 0x4(%rax), %rcx
cmpq %rdx, %rcx
ja 0xdc684
movzbl (%rax), %ecx
shll $0x18, %ecx
movzbl 0x1(%rax), %edi
shll $0x10, %edi
orl %ecx, %edi
xorl %ecx, %ecx
cmpl $0x110000, %edi # imm = 0x110000
setb %cl
movzwl 0x2(%rax), %r8d
rolw $0x8, %r8w
movzwl %r8w, %r8d
orl %edi, %r8d
leaq (%rax,%rcx,4), %rcx
cmpl $0x20, %r8d
je 0xdc63e
subq %rsi, %rax
popq %rbp
retq
xorl %eax, %eax
retq
| my_scan_utf32:
cmp ecx, 2
jnz short loc_DC689
push rbp
mov rbp, rsp
mov rcx, rsi
loc_DC63E:
mov rax, rcx
cmp rcx, rdx
jnb short loc_DC684
lea rcx, [rax+4]
cmp rcx, rdx
ja short loc_DC684
movzx ecx, byte ptr [rax]
shl ecx, 18h
movzx edi, byte ptr [rax+1]
shl edi, 10h
or edi, ecx
xor ecx, ecx
cmp edi, 110000h
setb cl
movzx r8d, word ptr [rax+2]
rol r8w, 8
movzx r8d, r8w
or r8d, edi
lea rcx, [rax+rcx*4]
cmp r8d, 20h ; ' '
jz short loc_DC63E
loc_DC684:
sub rax, rsi
pop rbp
retn
loc_DC689:
xor eax, eax
retn
| long long my_scan_utf32(long long a1, unsigned __int8 *a2, unsigned long long a3, int a4)
{
unsigned __int8 *v4; // rcx
unsigned __int8 *v5; // rax
unsigned int v6; // edi
if ( a4 != 2 )
return 0LL;
v4 = a2;
do
{
v5 = v4;
if ( (unsigned long long)v4 >= a3 )
break;
if ( (unsigned long long)(v4 + 4) > a3 )
break;
v6 = (*v4 << 24) | (v4[1] << 16);
v4 += 4 * (v6 < 0x110000);
}
while ( (v6 | (unsigned __int16)__ROL2__(*((_WORD *)v5 + 1), 8)) == 0x20 );
return v5 - a2;
}
| my_scan_utf32:
CMP ECX,0x2
JNZ 0x001dc689
PUSH RBP
MOV RBP,RSP
MOV RCX,RSI
LAB_001dc63e:
MOV RAX,RCX
CMP RCX,RDX
JNC 0x001dc684
LEA RCX,[RAX + 0x4]
CMP RCX,RDX
JA 0x001dc684
MOVZX ECX,byte ptr [RAX]
SHL ECX,0x18
MOVZX EDI,byte ptr [RAX + 0x1]
SHL EDI,0x10
OR EDI,ECX
XOR ECX,ECX
CMP EDI,0x110000
SETC CL
MOVZX R8D,word ptr [RAX + 0x2]
ROL R8W,0x8
MOVZX R8D,R8W
OR R8D,EDI
LEA RCX,[RAX + RCX*0x4]
CMP R8D,0x20
JZ 0x001dc63e
LAB_001dc684:
SUB RAX,RSI
POP RBP
RET
LAB_001dc689:
XOR EAX,EAX
RET
|
long my_scan_utf32(int8 param_1,byte *param_2,byte *param_3,int param_4)
{
byte *pbVar1;
byte *pbVar2;
uint uVar3;
pbVar1 = param_2;
if (param_4 != 2) {
return 0;
}
do {
pbVar2 = pbVar1;
if ((param_3 <= pbVar2) || (param_3 < pbVar2 + 4)) break;
uVar3 = (uint)pbVar2[1] << 0x10 | (uint)*pbVar2 << 0x18;
pbVar1 = pbVar2 + (ulong)(uVar3 < 0x110000) * 4;
} while (((ushort)(*(ushort *)(pbVar2 + 2) << 8 | *(ushort *)(pbVar2 + 2) >> 8) | uVar3) == 0x20);
return (long)pbVar2 - (long)param_2;
}
| |
22,389 | mysql_session_track_get_next | eloqsql/libmariadb/libmariadb/mariadb_lib.c | int STDCALL mysql_session_track_get_next(MYSQL *mysql, enum enum_session_state_type type,
const char **data, size_t *length)
{
MYSQL_LEX_STRING *str;
if (!mysql->extension->session_state[type].current)
return 1;
str= (MYSQL_LEX_STRING *)mysql->extension->session_state[type].current->data;
mysql->extension->session_state[type].current= mysql->extension->session_state[type].current->next;
*data= str->str ? str->str : NULL;
*length= str->str ? str->length : 0;
return 0;
} | O3 | c | mysql_session_track_get_next:
pushq %rbp
movq %rsp, %rbp
movq 0x4f0(%rdi), %rax
movl %esi, %esi
shlq $0x4, %rsi
movq 0x10(%rax,%rsi), %rdi
testq %rdi, %rdi
je 0x789bb
addq %rsi, %rax
addq $0x10, %rax
movq 0x8(%rdi), %r8
movq 0x10(%rdi), %rsi
movq %r8, (%rax)
movq (%rsi), %rdi
movq %rdi, (%rdx)
xorl %eax, %eax
testq %rdi, %rdi
je 0x789c2
movq 0x8(%rsi), %rdx
jmp 0x789c4
movl $0x1, %eax
jmp 0x789c7
xorl %edx, %edx
movq %rdx, (%rcx)
popq %rbp
retq
| mysql_session_track_get_next:
push rbp
mov rbp, rsp
mov rax, [rdi+4F0h]
mov esi, esi
shl rsi, 4
mov rdi, [rax+rsi+10h]
test rdi, rdi
jz short loc_789BB
add rax, rsi
add rax, 10h
mov r8, [rdi+8]
mov rsi, [rdi+10h]
mov [rax], r8
mov rdi, [rsi]
mov [rdx], rdi
xor eax, eax
test rdi, rdi
jz short loc_789C2
mov rdx, [rsi+8]
jmp short loc_789C4
loc_789BB:
mov eax, 1
jmp short loc_789C7
loc_789C2:
xor edx, edx
loc_789C4:
mov [rcx], rdx
loc_789C7:
pop rbp
retn
| long long mysql_session_track_get_next(long long a1, unsigned int a2, long long *a3, _QWORD *a4)
{
long long v4; // rax
long long v5; // rsi
long long v6; // rdi
_QWORD *v7; // rax
long long *v8; // rsi
long long v9; // rdi
long long result; // rax
long long v11; // rdx
v4 = *(_QWORD *)(a1 + 1264);
v5 = 16LL * a2;
v6 = *(_QWORD *)(v4 + v5 + 16);
if ( !v6 )
return 1LL;
v7 = (_QWORD *)(v5 + v4 + 16);
v8 = *(long long **)(v6 + 16);
*v7 = *(_QWORD *)(v6 + 8);
v9 = *v8;
*a3 = *v8;
result = 0LL;
if ( v9 )
v11 = v8[1];
else
v11 = 0LL;
*a4 = v11;
return result;
}
| mysql_session_track_get_next:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RDI + 0x4f0]
MOV ESI,ESI
SHL RSI,0x4
MOV RDI,qword ptr [RAX + RSI*0x1 + 0x10]
TEST RDI,RDI
JZ 0x001789bb
ADD RAX,RSI
ADD RAX,0x10
MOV R8,qword ptr [RDI + 0x8]
MOV RSI,qword ptr [RDI + 0x10]
MOV qword ptr [RAX],R8
MOV RDI,qword ptr [RSI]
MOV qword ptr [RDX],RDI
XOR EAX,EAX
TEST RDI,RDI
JZ 0x001789c2
MOV RDX,qword ptr [RSI + 0x8]
JMP 0x001789c4
LAB_001789bb:
MOV EAX,0x1
JMP 0x001789c7
LAB_001789c2:
XOR EDX,EDX
LAB_001789c4:
MOV qword ptr [RCX],RDX
LAB_001789c7:
POP RBP
RET
|
int8 mysql_session_track_get_next(long param_1,uint param_2,long *param_3,long *param_4)
{
long *plVar1;
int8 uVar2;
long lVar3;
lVar3 = *(long *)(*(long *)(param_1 + 0x4f0) + 0x10 + (ulong)param_2 * 0x10);
if (lVar3 == 0) {
uVar2 = 1;
}
else {
plVar1 = *(long **)(lVar3 + 0x10);
*(int8 *)(*(long *)(param_1 + 0x4f0) + (ulong)param_2 * 0x10 + 0x10) =
*(int8 *)(lVar3 + 8);
lVar3 = *plVar1;
*param_3 = lVar3;
uVar2 = 0;
if (lVar3 == 0) {
lVar3 = 0;
}
else {
lVar3 = plVar1[1];
}
*param_4 = lVar3;
}
return uVar2;
}
| |
22,390 | 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>::push_back(std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&) | monkey531[P]llama/common/./json.hpp | void push_back(const typename object_t::value_type& val)
{
// push_back only works for null objects or objects
if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_object())))
{
JSON_THROW(type_error::create(308, detail::concat("cannot use push_back() with ", type_name()), this));
}
// transform null object into an object
if (is_null())
{
m_data.m_type = value_t::object;
m_data.m_value = value_t::object;
assert_invariant();
}
// add element to object
auto res = m_data.m_value.object->insert(val);
set_parent(res.first->second);
} | O3 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::push_back(std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movzbl (%rdi), %eax
testl %eax, %eax
jne 0x5d69e
movb $0x1, (%r14)
movl $0x20, %edi
callq 0x1fab0
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rax, 0x8(%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x438fc
jmp 0x5d6a3
cmpl $0x1, %eax
jne 0x5d6b7
movq 0x8(%r14), %rdi
movq %rbx, %rsi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x5db0c
movl $0x20, %edi
callq 0x1f550
movq %rax, %rbx
movq %r14, %rdi
callq 0x568fa
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0xe9752(%rip), %rsi # 0x146e2d
leaq 0x10(%rsp), %rdi
callq 0x5da83
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x134, %esi # imm = 0x134
movq %r14, %rcx
callq 0x5d8b8
xorl %ebp, %ebp
leaq 0x1452aa(%rip), %rsi # 0x1a29b0
leaq 0x1f8b1(%rip), %rdx # 0x7cfbe
movq %rbx, %rdi
callq 0x202e0
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5d733
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x1fae0
testb %bpl, %bpl
jne 0x5d73d
jmp 0x5d745
movq %rax, %r14
movq %rbx, %rdi
callq 0x1f7e0
movq %r14, %rdi
callq 0x20380
nop
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backERKSt4pairIKS9_SD_E:
push rbp; char
push r14; int
push rbx; __int64
sub rsp, 30h
mov rbx, rsi
mov r14, rdi
movzx eax, byte ptr [rdi]
test eax, eax
jnz short loc_5D69E
mov byte ptr [r14], 1
mov edi, 20h ; ' '; unsigned __int64
call __Znwm; operator new(ulong)
xorps xmm0, xmm0
movups xmmword ptr [rax], xmm0
mov qword ptr [rax+10h], 0
mov [r14+8], rax
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)
jmp short loc_5D6A3
loc_5D69E:
cmp eax, 1
jnz short loc_5D6B7
loc_5D6A3:
mov rdi, [r14+8]
mov rsi, rbx
add rsp, 30h
pop rbx
pop r14
pop rbp
jmp _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE6insertERKSI_; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::insert(std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&)
loc_5D6B7:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+48h+var_40]
mov [rdx], rax
lea rsi, aCannotUsePushB; "cannot use push_back() with "
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 134h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+48h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5D733
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5D733:
test bpl, bpl
jnz short loc_5D73D
jmp short loc_5D745
mov r14, rax
loc_5D73D:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_5D745:
mov rdi, r14
call __Unwind_Resume
| push_back:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV RBX,RSI
MOV R14,RDI
MOVZX EAX,byte ptr [RDI]
TEST EAX,EAX
JNZ 0x0015d69e
MOV byte ptr [R14],0x1
MOV EDI,0x20
CALL 0x0011fab0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
MOV qword ptr [RAX + 0x10],0x0
MOV qword ptr [R14 + 0x8],RAX
MOV RDI,R14
MOV ESI,0x1
CALL 0x001438fc
JMP 0x0015d6a3
LAB_0015d69e:
CMP EAX,0x1
JNZ 0x0015d6b7
LAB_0015d6a3:
MOV RDI,qword ptr [R14 + 0x8]
MOV RSI,RBX
ADD RSP,0x30
POP RBX
POP R14
POP RBP
JMP 0x0015db0c
LAB_0015d6b7:
MOV EDI,0x20
CALL 0x0011f550
MOV RBX,RAX
MOV RDI,R14
CALL 0x001568fa
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_0015d6d4:
LEA RSI,[0x246e2d]
LEA RDI,[RSP + 0x10]
CALL 0x0015da83
MOV BPL,0x1
LAB_0015d6e8:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x134
MOV RCX,R14
CALL 0x0015d8b8
XOR EBP,EBP
LEA RSI,[0x2a29b0]
LEA RDX,[0x17cfbe]
MOV RDI,RBX
CALL 0x001202e0
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::push_back(std::pair<std::__cxx11::string const,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> > const&) */
void __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::push_back(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,pair *param_1)
{
int8 *puVar1;
int8 uVar2;
char *local_40;
detail local_38 [32];
if (*this == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0) {
*this = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1;
puVar1 = (int8 *)operator_new(0x20);
*puVar1 = 0;
puVar1[1] = 0;
puVar1[2] = 0;
*(int8 **)(this + 8) = puVar1;
assert_invariant(SUB81(this,0));
}
else if (*this != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) {
uVar2 = __cxa_allocate_exception(0x20);
local_40 = (char *)type_name(this);
/* try { // try from 0015d6d4 to 0015d6e4 has its CatchHandler @ 0015d73a */
detail::concat<std::__cxx11::string,char_const(&)[29],char_const*>
(local_38,"cannot use push_back() with ",&local_40);
/* try { // try from 0015d6e8 to 0015d714 has its CatchHandler @ 0015d715 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar2,0x134,local_38,this);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&detail::type_error::typeinfo,detail::exception::~exception);
}
ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::insert(*(ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
**)(this + 8),param_1);
return;
}
| ||
22,391 | my_uca_charcmp_onelevel | eloqsql/strings/ctype-uca.c | static int my_uca_charcmp_onelevel(CHARSET_INFO *cs, my_wc_t wc1,
my_wc_t wc2, uint level)
{
size_t length1, length2;
const uint16 *weight1= my_char_weight_addr(&cs->uca->level[level], wc1);
const uint16 *weight2= my_char_weight_addr(&cs->uca->level[level], wc2);
if (!weight1 || !weight2)
return wc1 != wc2;
/* Quickly compare first weights */
if (weight1[0] != weight2[0])
return 1;
/* Thoroughly compare all weights */
length1= cs->uca->level[level].lengths[wc1 >> MY_UCA_PSHIFT];
length2= cs->uca->level[level].lengths[wc2 >> MY_UCA_PSHIFT];
if (length1 > length2)
return memcmp((const void*)weight1, (const void*)weight2, length2*2) ?
1: weight1[length2];
if (length1 < length2)
return memcmp((const void*)weight1, (const void*)weight2, length1*2) ?
1 : weight2[length1];
return memcmp((const void*)weight1, (const void*)weight2, length1*2);
} | O0 | c | my_uca_charcmp_onelevel:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rdi
movl -0x24(%rbp), %eax
imulq $0x38, %rax, %rax
addq %rax, %rdi
movq -0x18(%rbp), %rax
movl %eax, %esi
callq 0x59990
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rdi
movl -0x24(%rbp), %eax
imulq $0x38, %rax, %rax
addq %rax, %rdi
movq -0x20(%rbp), %rax
movl %eax, %esi
callq 0x59990
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x59857
cmpq $0x0, -0x48(%rbp)
jne 0x5986f
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x4(%rbp)
jmp 0x59978
movq -0x40(%rbp), %rax
movzwl (%rax), %eax
movq -0x48(%rbp), %rcx
movzwl (%rcx), %ecx
cmpl %ecx, %eax
je 0x5988d
movl $0x1, -0x4(%rbp)
jmp 0x59978
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rax
movl -0x24(%rbp), %ecx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
shrq $0x8, %rcx
movzbl (%rax,%rcx), %eax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rax
movl -0x24(%rbp), %ecx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq -0x20(%rbp), %rcx
shrq $0x8, %rcx
movzbl (%rax,%rcx), %eax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
jbe 0x5991d
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x38(%rbp), %rdx
shlq %rdx
callq 0x24130
cmpl $0x0, %eax
je 0x59906
movl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x59915
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movzwl (%rax,%rcx,2), %eax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x59978
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0x59961
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x30(%rbp), %rdx
shlq %rdx
callq 0x24130
cmpl $0x0, %eax
je 0x5994a
movl $0x1, %eax
movl %eax, -0x50(%rbp)
jmp 0x59959
movq -0x48(%rbp), %rax
movq -0x30(%rbp), %rcx
movzwl (%rax,%rcx,2), %eax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x59978
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x30(%rbp), %rdx
shlq %rdx
callq 0x24130
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_uca_charcmp_onelevel:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_24], ecx
mov rax, [rbp+var_10]
mov rdi, [rax+60h]
mov eax, [rbp+var_24]
imul rax, 38h ; '8'
add rdi, rax
mov rax, [rbp+var_18]
mov esi, eax
call my_char_weight_addr
mov [rbp+var_40], rax
mov rax, [rbp+var_10]
mov rdi, [rax+60h]
mov eax, [rbp+var_24]
imul rax, 38h ; '8'
add rdi, rax
mov rax, [rbp+var_20]
mov esi, eax
call my_char_weight_addr
mov [rbp+var_48], rax
cmp [rbp+var_40], 0
jz short loc_59857
cmp [rbp+var_48], 0
jnz short loc_5986F
loc_59857:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
setnz al
and al, 1
movzx eax, al
mov [rbp+var_4], eax
jmp loc_59978
loc_5986F:
mov rax, [rbp+var_40]
movzx eax, word ptr [rax]
mov rcx, [rbp+var_48]
movzx ecx, word ptr [rcx]
cmp eax, ecx
jz short loc_5988D
mov [rbp+var_4], 1
jmp loc_59978
loc_5988D:
mov rax, [rbp+var_10]
mov rax, [rax+60h]
mov ecx, [rbp+var_24]
imul rcx, 38h ; '8'
add rax, rcx
mov rax, [rax+8]
mov rcx, [rbp+var_18]
shr rcx, 8
movzx eax, byte ptr [rax+rcx]
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
mov rax, [rax+60h]
mov ecx, [rbp+var_24]
imul rcx, 38h ; '8'
add rax, rcx
mov rax, [rax+8]
mov rcx, [rbp+var_20]
shr rcx, 8
movzx eax, byte ptr [rax+rcx]
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jbe short loc_5991D
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_48]
mov rdx, [rbp+var_38]
shl rdx, 1
call _memcmp
cmp eax, 0
jz short loc_59906
mov eax, 1
mov [rbp+var_4C], eax
jmp short loc_59915
loc_59906:
mov rax, [rbp+var_40]
mov rcx, [rbp+var_38]
movzx eax, word ptr [rax+rcx*2]
mov [rbp+var_4C], eax
loc_59915:
mov eax, [rbp+var_4C]
mov [rbp+var_4], eax
jmp short loc_59978
loc_5991D:
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jnb short loc_59961
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_48]
mov rdx, [rbp+var_30]
shl rdx, 1
call _memcmp
cmp eax, 0
jz short loc_5994A
mov eax, 1
mov [rbp+var_50], eax
jmp short loc_59959
loc_5994A:
mov rax, [rbp+var_48]
mov rcx, [rbp+var_30]
movzx eax, word ptr [rax+rcx*2]
mov [rbp+var_50], eax
loc_59959:
mov eax, [rbp+var_50]
mov [rbp+var_4], eax
jmp short loc_59978
loc_59961:
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_48]
mov rdx, [rbp+var_30]
shl rdx, 1
call _memcmp
mov [rbp+var_4], eax
loc_59978:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
| long long my_uca_charcmp_onelevel(long long a1, unsigned long long a2, unsigned long long a3, unsigned int a4)
{
unsigned __int16 *v7; // [rsp+8h] [rbp-48h]
unsigned __int16 *v8; // [rsp+10h] [rbp-40h]
unsigned long long v9; // [rsp+18h] [rbp-38h]
unsigned long long v10; // [rsp+20h] [rbp-30h]
v8 = (unsigned __int16 *)my_char_weight_addr(56LL * a4 + *(_QWORD *)(a1 + 96), (unsigned int)a2);
v7 = (unsigned __int16 *)my_char_weight_addr(56LL * a4 + *(_QWORD *)(a1 + 96), (unsigned int)a3);
if ( v8 && v7 )
{
if ( *v8 == *v7 )
{
v10 = *(unsigned __int8 *)(*(_QWORD *)(56LL * a4 + *(_QWORD *)(a1 + 96) + 8) + (a2 >> 8));
v9 = *(unsigned __int8 *)(*(_QWORD *)(56LL * a4 + *(_QWORD *)(a1 + 96) + 8) + (a3 >> 8));
if ( v10 <= v9 )
{
if ( v10 >= v9 )
{
return (unsigned int)memcmp(v8, v7, 2 * v10);
}
else if ( !(unsigned int)memcmp(v8, v7, 2 * v10) )
{
return v7[v10];
}
else
{
return 1;
}
}
else if ( !(unsigned int)memcmp(v8, v7, 2 * v9) )
{
return v8[v9];
}
else
{
return 1;
}
}
else
{
return 1;
}
}
else
{
return a2 != a3;
}
}
| my_uca_charcmp_onelevel:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x60]
MOV EAX,dword ptr [RBP + -0x24]
IMUL RAX,RAX,0x38
ADD RDI,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV ESI,EAX
CALL 0x00159990
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x60]
MOV EAX,dword ptr [RBP + -0x24]
IMUL RAX,RAX,0x38
ADD RDI,RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV ESI,EAX
CALL 0x00159990
MOV qword ptr [RBP + -0x48],RAX
CMP qword ptr [RBP + -0x40],0x0
JZ 0x00159857
CMP qword ptr [RBP + -0x48],0x0
JNZ 0x0015986f
LAB_00159857:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00159978
LAB_0015986f:
MOV RAX,qword ptr [RBP + -0x40]
MOVZX EAX,word ptr [RAX]
MOV RCX,qword ptr [RBP + -0x48]
MOVZX ECX,word ptr [RCX]
CMP EAX,ECX
JZ 0x0015988d
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00159978
LAB_0015988d:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x60]
MOV ECX,dword ptr [RBP + -0x24]
IMUL RCX,RCX,0x38
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x18]
SHR RCX,0x8
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x60]
MOV ECX,dword ptr [RBP + -0x24]
IMUL RCX,RCX,0x38
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x20]
SHR RCX,0x8
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JBE 0x0015991d
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x38]
SHL RDX,0x1
CALL 0x00124130
CMP EAX,0x0
JZ 0x00159906
MOV EAX,0x1
MOV dword ptr [RBP + -0x4c],EAX
JMP 0x00159915
LAB_00159906:
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x38]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV dword ptr [RBP + -0x4c],EAX
LAB_00159915:
MOV EAX,dword ptr [RBP + -0x4c]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00159978
LAB_0015991d:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x00159961
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x30]
SHL RDX,0x1
CALL 0x00124130
CMP EAX,0x0
JZ 0x0015994a
MOV EAX,0x1
MOV dword ptr [RBP + -0x50],EAX
JMP 0x00159959
LAB_0015994a:
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV dword ptr [RBP + -0x50],EAX
LAB_00159959:
MOV EAX,dword ptr [RBP + -0x50]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00159978
LAB_00159961:
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x30]
SHL RDX,0x1
CALL 0x00124130
MOV dword ptr [RBP + -0x4],EAX
LAB_00159978:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
uint my_uca_charcmp_onelevel(long param_1,ulong param_2,ulong param_3,uint param_4)
{
int iVar1;
short *__s1;
short *__s2;
ulong uVar2;
ulong uVar3;
uint local_58;
uint local_54;
uint local_c;
__s1 = (short *)my_char_weight_addr(*(long *)(param_1 + 0x60) + (ulong)param_4 * 0x38,
param_2 & 0xffffffff);
__s2 = (short *)my_char_weight_addr(*(long *)(param_1 + 0x60) + (ulong)param_4 * 0x38,
param_3 & 0xffffffff);
if ((__s1 == (short *)0x0) || (__s2 == (short *)0x0)) {
local_c = (uint)(param_2 != param_3);
}
else if (*__s1 == *__s2) {
uVar2 = (ulong)*(byte *)(*(long *)(*(long *)(param_1 + 0x60) + (ulong)param_4 * 0x38 + 8) +
(param_2 >> 8));
uVar3 = (ulong)*(byte *)(*(long *)(*(long *)(param_1 + 0x60) + (ulong)param_4 * 0x38 + 8) +
(param_3 >> 8));
if (uVar3 < uVar2) {
iVar1 = memcmp(__s1,__s2,uVar3 << 1);
if (iVar1 == 0) {
local_54 = (uint)(ushort)__s1[uVar3];
}
else {
local_54 = 1;
}
local_c = local_54;
}
else if (uVar2 < uVar3) {
iVar1 = memcmp(__s1,__s2,uVar2 << 1);
if (iVar1 == 0) {
local_58 = (uint)(ushort)__s2[uVar2];
}
else {
local_58 = 1;
}
local_c = local_58;
}
else {
local_c = memcmp(__s1,__s2,uVar2 << 1);
}
}
else {
local_c = 1;
}
return local_c;
}
| |
22,392 | google::protobuf::internal::ExtensionSet::RegisterExtension(google::protobuf::MessageLite const*, int, unsigned char, bool, bool, char const* (*)(char const*, google::protobuf::internal::ParseContext*)) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc | void ExtensionSet::RegisterExtension(const MessageLite* extendee, int number,
FieldType type, bool is_repeated,
bool is_packed,
LazyEagerVerifyFnType verify_func) {
GOOGLE_CHECK_NE(type, WireFormatLite::TYPE_ENUM);
GOOGLE_CHECK_NE(type, WireFormatLite::TYPE_MESSAGE);
GOOGLE_CHECK_NE(type, WireFormatLite::TYPE_GROUP);
ExtensionInfo info(extendee, number, type, is_repeated, is_packed,
verify_func);
Register(info);
} | O3 | cpp | google::protobuf::internal::ExtensionSet::RegisterExtension(google::protobuf::MessageLite const*, int, unsigned char, bool, bool, char const* (*)(char const*, google::protobuf::internal::ParseContext*)):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, %rbp
movl %r8d, %r14d
movl %ecx, %r12d
movl %edx, %r15d
movq %rdi, %r13
cmpl $0xe, %edx
jne 0xb2aa3
movq %r13, 0x8(%rsp)
movl %esi, %r13d
leaq 0xb8613(%rip), %rdx # 0x16b06c
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
movl $0x3, %esi
movl $0x8a, %ecx
callq 0x857c2
leaq 0xb865f(%rip), %rsi # 0x16b0d6
movq %rbx, %rdi
callq 0x852c0
leaq 0x7(%rsp), %rdi
movq %rax, %rsi
callq 0x8539a
leaq 0x10(%rsp), %rdi
callq 0x857e0
movl %r13d, %esi
movq 0x8(%rsp), %r13
jmp 0xb2b44
cmpb $0xb, %r15b
jne 0xb2af7
movl %esi, 0x8(%rsp)
leaq 0xb85b8(%rip), %rdx # 0x16b06c
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
movl $0x3, %esi
movl $0x8b, %ecx
callq 0x857c2
leaq 0xb863a(%rip), %rsi # 0x16b10c
movq %rbx, %rdi
callq 0x852c0
leaq 0x7(%rsp), %rdi
movq %rax, %rsi
callq 0x8539a
leaq 0x10(%rsp), %rdi
callq 0x857e0
movl 0x8(%rsp), %esi
jmp 0xb2b44
cmpb $0xa, %r15b
jne 0xb2b44
movq %r13, 0x8(%rsp)
movl %esi, %r13d
leaq 0xb8560(%rip), %rdx # 0x16b06c
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
movl $0x3, %esi
movl $0x8c, %ecx
callq 0x857c2
leaq 0xb861b(%rip), %rsi # 0x16b145
movq %rbx, %rdi
callq 0x852c0
leaq 0x7(%rsp), %rdi
movq %rax, %rsi
callq 0x8539a
jmp 0xb2a8c
leaq 0x10(%rsp), %rdi
movq %r13, (%rdi)
movl %esi, 0x8(%rdi)
movb %r15b, 0xc(%rdi)
movb %r12b, 0xd(%rdi)
movb %r14b, 0xe(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movq $0x0, 0x20(%rdi)
movq %rbp, 0x28(%rdi)
callq 0xb2ba1
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xb2b8c
jmp 0xb2b8c
jmp 0xb2b8c
jmp 0xb2b8c
jmp 0xb2b8c
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x857e0
movq %rbx, %rdi
callq 0x2e220
| _ZN6google8protobuf8internal12ExtensionSet17RegisterExtensionEPKNS0_11MessageLiteEihbbPFPKcS7_PNS1_12ParseContextEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov rbp, r9
mov r14d, r8d
mov r12d, ecx
mov r15d, edx
mov r13, rdi
cmp edx, 0Eh
jnz short loc_B2AA3
mov [rsp+78h+var_70], r13
mov r13d, esi
lea rdx, aWorkspaceLlm4b_29; "/workspace/llm4binary/github2025/aimrt_"...
lea rbx, [rsp+78h+var_68]
mov rdi, rbx
mov esi, 3
mov ecx, 8Ah
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
lea rsi, aCheckFailedTyp; "CHECK failed: (type) != (WireFormatLite"...
mov rdi, rbx
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rdi, [rsp+78h+var_71]
mov rsi, rax
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
loc_B2A8C:
lea rdi, [rsp+78h+var_68]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
mov esi, r13d
mov r13, [rsp+78h+var_70]
jmp loc_B2B44
loc_B2AA3:
cmp r15b, 0Bh
jnz short loc_B2AF7
mov dword ptr [rsp+78h+var_70], esi
lea rdx, aWorkspaceLlm4b_29; "/workspace/llm4binary/github2025/aimrt_"...
lea rbx, [rsp+78h+var_68]
mov rdi, rbx
mov esi, 3
mov ecx, 8Bh
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
lea rsi, aCheckFailedTyp_0; "CHECK failed: (type) != (WireFormatLite"...
mov rdi, rbx
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rdi, [rsp+78h+var_71]
mov rsi, rax
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
lea rdi, [rsp+78h+var_68]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
mov esi, dword ptr [rsp+78h+var_70]
jmp short loc_B2B44
loc_B2AF7:
cmp r15b, 0Ah
jnz short loc_B2B44
mov [rsp+78h+var_70], r13
mov r13d, esi
lea rdx, aWorkspaceLlm4b_29; "/workspace/llm4binary/github2025/aimrt_"...
lea rbx, [rsp+78h+var_68]
mov rdi, rbx
mov esi, 3
mov ecx, 8Ch
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
lea rsi, aCheckFailedTyp_1; "CHECK failed: (type) != (WireFormatLite"...
mov rdi, rbx
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
lea rdi, [rsp+78h+var_71]
mov rsi, rax
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp loc_B2A8C
loc_B2B44:
lea rdi, [rsp+78h+var_68]
mov [rdi], r13
mov [rdi+8], esi
mov [rdi+0Ch], r15b
mov [rdi+0Dh], r12b
mov [rdi+0Eh], r14b
xorps xmm0, xmm0
movups xmmword ptr [rdi+10h], xmm0
mov qword ptr [rdi+20h], 0
mov [rdi+28h], rbp
call _ZN6google8protobuf8internal12_GLOBAL__N_18RegisterERKNS1_13ExtensionInfoE; google::protobuf::internal::`anonymous namespace'::Register(google::protobuf::internal::ExtensionInfo const&)
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_B2B8C
jmp short loc_B2B8C
jmp short loc_B2B8C
jmp short loc_B2B8C
jmp short $+2
loc_B2B8C:
mov rbx, rax
lea rdi, [rsp+arg_8]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
mov rdi, rbx
call __Unwind_Resume
| long long google::protobuf::internal::ExtensionSet::RegisterExtension(
google::protobuf::internal::ExtensionSet *this,
const google::protobuf::MessageLite *a2,
int a3,
char a4,
char a5,
long long a6)
{
char v9; // r15
google::protobuf::internal::ExtensionSet *v10; // r13
int v11; // r13d
google::protobuf::internal::LogMessage *v12; // rax
google::protobuf::internal::LogMessage *v13; // rax
google::protobuf::internal::LogMessage *v14; // rax
char v16; // [rsp+7h] [rbp-71h] BYREF
google::protobuf::internal::ExtensionSet *v17; // [rsp+8h] [rbp-70h]
google::protobuf::internal::ExtensionSet *v18; // [rsp+10h] [rbp-68h] BYREF
int v19; // [rsp+18h] [rbp-60h]
char v20; // [rsp+1Ch] [rbp-5Ch]
char v21; // [rsp+1Dh] [rbp-5Bh]
char v22; // [rsp+1Eh] [rbp-5Ah]
__int128 v23; // [rsp+20h] [rbp-58h]
long long v24; // [rsp+30h] [rbp-48h]
long long v25; // [rsp+38h] [rbp-40h]
v9 = a3;
v10 = this;
if ( a3 == 14 )
{
v17 = this;
v11 = (int)a2;
google::protobuf::internal::LogMessage::LogMessage(
(long long)&v18,
3,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc",
138);
v12 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(
(long long)&v18,
(long long)"CHECK failed: (type) != (WireFormatLite::TYPE_ENUM): ");
google::protobuf::internal::LogFinisher::operator=((long long)&v16, v12);
}
else
{
if ( (_BYTE)a3 == 11 )
{
LODWORD(v17) = (_DWORD)a2;
google::protobuf::internal::LogMessage::LogMessage(
(long long)&v18,
3,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc",
139);
v13 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(
(long long)&v18,
(long long)"CHECK failed: (type) != (WireFormatLite::TYPE_MESSAGE): ");
google::protobuf::internal::LogFinisher::operator=((long long)&v16, v13);
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)&v18);
LODWORD(a2) = (_DWORD)v17;
goto LABEL_8;
}
if ( (_BYTE)a3 != 10 )
goto LABEL_8;
v17 = this;
v11 = (int)a2;
google::protobuf::internal::LogMessage::LogMessage(
(long long)&v18,
3,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc",
140);
v14 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(
(long long)&v18,
(long long)"CHECK failed: (type) != (WireFormatLite::TYPE_GROUP): ");
google::protobuf::internal::LogFinisher::operator=((long long)&v16, v14);
}
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)&v18);
LODWORD(a2) = v11;
v10 = v17;
LABEL_8:
v18 = v10;
v19 = (int)a2;
v20 = v9;
v21 = a4;
v22 = a5;
v23 = 0LL;
v24 = 0LL;
v25 = a6;
return google::protobuf::internal::`anonymous namespace'::Register();
}
| RegisterExtension:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV RBP,R9
MOV R14D,R8D
MOV R12D,ECX
MOV R15D,EDX
MOV R13,RDI
CMP EDX,0xe
JNZ 0x001b2aa3
MOV qword ptr [RSP + 0x8],R13
MOV R13D,ESI
LEA RDX,[0x26b06c]
LEA RBX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x3
MOV ECX,0x8a
CALL 0x001857c2
LAB_001b2a70:
LEA RSI,[0x26b0d6]
MOV RDI,RBX
CALL 0x001852c0
LAB_001b2a7f:
LEA RDI,[RSP + 0x7]
MOV RSI,RAX
CALL 0x0018539a
LAB_001b2a8c:
LEA RDI,[RSP + 0x10]
CALL 0x001857e0
MOV ESI,R13D
MOV R13,qword ptr [RSP + 0x8]
JMP 0x001b2b44
LAB_001b2aa3:
CMP R15B,0xb
JNZ 0x001b2af7
MOV dword ptr [RSP + 0x8],ESI
LEA RDX,[0x26b06c]
LEA RBX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x3
MOV ECX,0x8b
CALL 0x001857c2
LAB_001b2acb:
LEA RSI,[0x26b10c]
MOV RDI,RBX
CALL 0x001852c0
LAB_001b2ada:
LEA RDI,[RSP + 0x7]
MOV RSI,RAX
CALL 0x0018539a
LAB_001b2ae7:
LEA RDI,[RSP + 0x10]
CALL 0x001857e0
MOV ESI,dword ptr [RSP + 0x8]
JMP 0x001b2b44
LAB_001b2af7:
CMP R15B,0xa
JNZ 0x001b2b44
MOV qword ptr [RSP + 0x8],R13
MOV R13D,ESI
LEA RDX,[0x26b06c]
LEA RBX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x3
MOV ECX,0x8c
CALL 0x001857c2
LAB_001b2b23:
LEA RSI,[0x26b145]
MOV RDI,RBX
CALL 0x001852c0
LAB_001b2b32:
LEA RDI,[RSP + 0x7]
MOV RSI,RAX
CALL 0x0018539a
LAB_001b2b3f:
JMP 0x001b2a8c
LAB_001b2b44:
LEA RDI,[RSP + 0x10]
MOV qword ptr [RDI],R13
MOV dword ptr [RDI + 0x8],ESI
MOV byte ptr [RDI + 0xc],R15B
MOV byte ptr [RDI + 0xd],R12B
MOV byte ptr [RDI + 0xe],R14B
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x10],XMM0
MOV qword ptr [RDI + 0x20],0x0
MOV qword ptr [RDI + 0x28],RBP
CALL 0x001b2ba1
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::internal::ExtensionSet::RegisterExtension(google::protobuf::MessageLite const*,
int, unsigned char, bool, bool, char const* (*)(char const*,
google::protobuf::internal::ParseContext*)) */
void google::protobuf::internal::ExtensionSet::RegisterExtension
(MessageLite *param_1,int param_2,uchar param_3,bool param_4,bool param_5,
_func_char_ptr_char_ptr_ParseContext_ptr *param_6)
{
LogMessage *pLVar1;
int7 in_register_00000011;
LogFinisher local_71;
MessageLite *local_70;
MessageLite *local_68;
int local_60;
uchar local_5c;
int1 local_5b;
int1 local_5a;
int8 local_58;
int8 uStack_50;
int8 local_48;
_func_char_ptr_char_ptr_ParseContext_ptr *local_40;
if ((int)CONCAT71(in_register_00000011,param_3) == 0xe) {
local_70 = param_1;
LogMessage::LogMessage
((LogMessage *)&local_68,3,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc"
,0x8a);
/* try { // try from 001b2a70 to 001b2a7e has its CatchHandler @ 001b2b8c */
pLVar1 = (LogMessage *)
LogMessage::operator<<
((LogMessage *)&local_68,
"CHECK failed: (type) != (WireFormatLite::TYPE_ENUM): ");
/* try { // try from 001b2a7f to 001b2a8b has its CatchHandler @ 001b2b8a */
LogFinisher::operator=(&local_71,pLVar1);
}
else {
local_68 = param_1;
if (param_3 == '\v') {
local_70 = (MessageLite *)CONCAT44(local_70._4_4_,param_2);
LogMessage::LogMessage
((LogMessage *)&local_68,3,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc"
,0x8b);
/* try { // try from 001b2acb to 001b2ad9 has its CatchHandler @ 001b2b88 */
pLVar1 = (LogMessage *)
LogMessage::operator<<
((LogMessage *)&local_68,
"CHECK failed: (type) != (WireFormatLite::TYPE_MESSAGE): ");
/* try { // try from 001b2ada to 001b2ae6 has its CatchHandler @ 001b2b86 */
LogFinisher::operator=(&local_71,pLVar1);
LogMessage::~LogMessage((LogMessage *)&local_68);
param_2 = (int)local_70;
goto LAB_001b2b44;
}
if (param_3 != '\n') goto LAB_001b2b44;
local_70 = param_1;
LogMessage::LogMessage
((LogMessage *)&local_68,3,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc"
,0x8c);
/* try { // try from 001b2b23 to 001b2b31 has its CatchHandler @ 001b2b84 */
pLVar1 = (LogMessage *)
LogMessage::operator<<
((LogMessage *)&local_68,
"CHECK failed: (type) != (WireFormatLite::TYPE_GROUP): ");
/* try { // try from 001b2b32 to 001b2b3e has its CatchHandler @ 001b2b82 */
LogFinisher::operator=(&local_71,pLVar1);
}
LogMessage::~LogMessage((LogMessage *)&local_68);
local_68 = local_70;
LAB_001b2b44:
local_58 = 0;
uStack_50 = 0;
local_48 = 0;
local_60 = param_2;
local_5c = param_3;
local_5b = param_4;
local_5a = param_5;
local_40 = param_6;
(anonymous_namespace)::Register((ExtensionInfo *)&local_68);
return;
}
| |
22,393 | minja::Parser::parse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, minja::Options const&) | monkey531[P]llama/common/minja.hpp | static std::shared_ptr<TemplateNode> parse(const std::string& template_str, const Options & options) {
Parser parser(std::make_shared<std::string>(normalize_newlines(template_str)), options);
auto tokens = parser.tokenize();
TemplateTokenIterator begin = tokens.begin();
auto it = begin;
TemplateTokenIterator end = tokens.end();
return parser.parseTemplate(begin, it, end, /* full= */ true);
} | O1 | cpp | minja::Parser::parse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, minja::Options const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rsp, %rdi
movq %rax, %rsi
callq 0x2887a
movq $0x0, 0x20(%rsp)
movl $0x30, %edi
callq 0x196a0
movabsq $0x100000001, %rcx # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x885c3(%rip), %rcx # 0xed3d0
addq $0x10, %rcx
movq %rcx, (%rax)
leaq 0x10(%rax), %rcx
movq %rax, %rdx
addq $0x20, %rdx
movq %rdx, 0x10(%rax)
movq (%rsp), %rsi
cmpq %r15, %rsi
je 0x64e39
movq %rsi, (%rcx)
movq 0x10(%rsp), %rsi
movq %rsi, (%rdx)
jmp 0x64e40
movups (%r15), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rsp), %rdx
movq %rdx, 0x18(%rax)
movq %r15, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
leaq 0x20(%rsp), %rsi
movq %rax, 0x8(%rsi)
movq %rcx, (%rsi)
leaq 0x40(%rsp), %rdi
movq %r14, %rdx
callq 0x65c2a
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x64e83
callq 0x42d00
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x64e99
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x196b0
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x65cf4
movq (%rsp), %rax
movq 0x8(%rsp), %rsi
leaq 0x20(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x38(%rsp), %rcx
movq %rax, (%rcx)
leaq 0x30(%rsp), %r8
movq %rsi, (%r8)
leaq 0x40(%rsp), %rsi
movq %rbx, %rdi
movl $0x1, %r9d
callq 0x68494
movq %rsp, %rdi
callq 0x6988e
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x64ef1
callq 0x42d00
movq %rbx, %rax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x6988e
jmp 0x64f0e
movq %rax, %rbx
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x64f4c
callq 0x42d00
jmp 0x64f4c
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x64f36
callq 0x42d00
jmp 0x64f36
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x64f4c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x196b0
movq %rbx, %rdi
callq 0x19be0
| _ZN5minja6Parser5parseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7OptionsE:
push r15
push r14
push rbx
sub rsp, 70h
mov r14, rdx
mov rbx, rdi
lea r15, [rsp+88h+var_78]
mov [r15-10h], r15
mov rax, [rsi]
mov rdx, [rsi+8]
add rdx, rax
mov rdi, rsp
mov rsi, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
mov [rsp+88h+var_68], 0
mov edi, 30h ; '0'; unsigned __int64
call __Znwm; operator new(ulong)
mov rcx, 100000001h
mov [rax+8], rcx
lea rcx, _ZTVSt23_Sp_counted_ptr_inplaceINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<std::string,std::allocator<std::string>,(__gnu_cxx::_Lock_policy)2>
add rcx, 10h
mov [rax], rcx
lea rcx, [rax+10h]
mov rdx, rax
add rdx, 20h ; ' '
mov [rax+10h], rdx
mov rsi, [rsp+88h+var_88]
cmp rsi, r15
jz short loc_64E39
mov [rcx], rsi
mov rsi, [rsp+88h+var_78]
mov [rdx], rsi
jmp short loc_64E40
loc_64E39:
movups xmm0, xmmword ptr [r15]
movups xmmword ptr [rdx], xmm0
loc_64E40:
mov rdx, [rsp+88h+var_80]
mov [rax+18h], rdx
mov [rsp+88h+var_88], r15
mov [rsp+88h+var_80], 0
mov byte ptr [rsp+88h+var_78], 0
lea rsi, [rsp+88h+var_68]
mov [rsi+8], rax
mov [rsi], rcx
lea rdi, [rsp+88h+var_48]
mov rdx, r14
call _ZN5minja6ParserC2ERKSt10shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEERKNS_7OptionsE; minja::Parser::Parser(std::shared_ptr<std::string> const&,minja::Options const&)
mov rdi, [rsp+88h+var_60]
test rdi, rdi
jz short loc_64E83
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_64E83:
mov rdi, [rsp+88h+var_88]; void *
cmp rdi, r15
jz short loc_64E99
mov rsi, [rsp+88h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_64E99:
mov rdi, rsp; this
lea rsi, [rsp+88h+var_48]
call _ZN5minja6Parser8tokenizeEv; minja::Parser::tokenize(void)
mov rax, [rsp+88h+var_88]
mov rsi, [rsp+88h+var_80]
lea rdx, [rsp+88h+var_68]
mov [rdx], rax
lea rcx, [rsp+88h+var_50]
mov [rcx], rax
lea r8, [rsp+88h+var_58]
mov [r8], rsi
lea rsi, [rsp+88h+var_48]
mov rdi, rbx
mov r9d, 1
call _ZNK5minja6Parser13parseTemplateERKN9__gnu_cxx17__normal_iteratorIPKSt10unique_ptrINS_13TemplateTokenESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEERSD_SF_b; minja::Parser::parseTemplate(__gnu_cxx::__normal_iterator<std::unique_ptr<minja::TemplateToken> const*,std::vector<std::unique_ptr<minja::TemplateToken>>> const&,__gnu_cxx::__normal_iterator<std::unique_ptr<minja::TemplateToken> const*,std::vector<std::unique_ptr<minja::TemplateToken>>>&,__gnu_cxx::__normal_iterator<std::unique_ptr<minja::TemplateToken> const*,std::vector<std::unique_ptr<minja::TemplateToken>>> const&,bool)
mov rdi, rsp
call _ZNSt6vectorISt10unique_ptrIN5minja13TemplateTokenESt14default_deleteIS2_EESaIS5_EED2Ev; std::vector<std::unique_ptr<minja::TemplateToken>>::~vector()
mov rdi, [rsp+88h+var_40]
test rdi, rdi
jz short loc_64EF1
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_64EF1:
mov rax, rbx
add rsp, 70h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rdi, rsp
call _ZNSt6vectorISt10unique_ptrIN5minja13TemplateTokenESt14default_deleteIS2_EESaIS5_EED2Ev; std::vector<std::unique_ptr<minja::TemplateToken>>::~vector()
jmp short loc_64F0E
mov rbx, rax
loc_64F0E:
mov rdi, [rsp+arg_40]
test rdi, rdi
jz short loc_64F4C
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
jmp short loc_64F4C
mov rbx, rax
mov rdi, [rsp+arg_20]
test rdi, rdi
jz short loc_64F36
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
jmp short loc_64F36
mov rbx, rax
loc_64F36:
mov rdi, [rsp+0]; void *
cmp rdi, r15
jz short loc_64F4C
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_64F4C:
mov rdi, rbx
call __Unwind_Resume
| long long minja::Parser::parse(long long a1, long long a2, long long a3)
{
long long v4; // rax
_OWORD *v5; // rdx
void *v7; // [rsp+0h] [rbp-88h] BYREF
long long v8; // [rsp+8h] [rbp-80h]
__int128 v9; // [rsp+10h] [rbp-78h] BYREF
void *v10; // [rsp+20h] [rbp-68h] BYREF
volatile signed __int32 *v11; // [rsp+28h] [rbp-60h]
long long v12; // [rsp+30h] [rbp-58h] BYREF
void *v13; // [rsp+38h] [rbp-50h] BYREF
_BYTE v14[8]; // [rsp+40h] [rbp-48h] BYREF
volatile signed __int32 *v15; // [rsp+48h] [rbp-40h]
v7 = &v9;
std::string::_M_construct<char *>(&v7, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8));
v10 = 0LL;
v4 = operator new(0x30uLL);
*(_QWORD *)(v4 + 8) = 0x100000001LL;
*(_QWORD *)v4 = &`vtable for'std::_Sp_counted_ptr_inplace<std::string,std::allocator<std::string>,(__gnu_cxx::_Lock_policy)2>
+ 2;
v5 = (_OWORD *)(v4 + 32);
*(_QWORD *)(v4 + 16) = v4 + 32;
if ( v7 == &v9 )
{
*v5 = v9;
}
else
{
*(_QWORD *)(v4 + 16) = v7;
*(_QWORD *)v5 = v9;
}
*(_QWORD *)(v4 + 24) = v8;
v7 = &v9;
v8 = 0LL;
LOBYTE(v9) = 0;
v11 = (volatile signed __int32 *)v4;
v10 = (void *)(v4 + 16);
minja::Parser::Parser(v14, &v10, a3);
if ( v11 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v11);
if ( v7 != &v9 )
operator delete(v7, v9 + 1);
minja::Parser::tokenize((minja::Parser *)&v7);
v10 = v7;
v13 = v7;
v12 = v8;
minja::Parser::parseTemplate(a1, v14, &v10, &v13, &v12, 1LL);
std::vector<std::unique_ptr<minja::TemplateToken>>::~vector(&v7);
if ( v15 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v15);
return a1;
}
| parse:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x70
MOV R14,RDX
MOV RBX,RDI
LEA R15,[RSP + 0x10]
MOV qword ptr [R15 + -0x10],R15
MOV RAX,qword ptr [RSI]
MOV RDX,qword ptr [RSI + 0x8]
ADD RDX,RAX
MOV RDI,RSP
MOV RSI,RAX
CALL 0x0012887a
MOV qword ptr [RSP + 0x20],0x0
LAB_00164dee:
MOV EDI,0x30
CALL 0x001196a0
MOV RCX,0x100000001
MOV qword ptr [RAX + 0x8],RCX
LEA RCX,[0x1ed3d0]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
LEA RCX,[RAX + 0x10]
MOV RDX,RAX
ADD RDX,0x20
MOV qword ptr [RAX + 0x10],RDX
MOV RSI,qword ptr [RSP]
CMP RSI,R15
JZ 0x00164e39
MOV qword ptr [RCX],RSI
MOV RSI,qword ptr [RSP + 0x10]
MOV qword ptr [RDX],RSI
JMP 0x00164e40
LAB_00164e39:
MOVUPS XMM0,xmmword ptr [R15]
MOVUPS xmmword ptr [RDX],XMM0
LAB_00164e40:
MOV RDX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x18],RDX
MOV qword ptr [RSP],R15
MOV qword ptr [RSP + 0x8],0x0
MOV byte ptr [RSP + 0x10],0x0
LEA RSI,[RSP + 0x20]
MOV qword ptr [RSI + 0x8],RAX
MOV qword ptr [RSI],RCX
LAB_00164e67:
LEA RDI,[RSP + 0x40]
MOV RDX,R14
CALL 0x00165c2a
MOV RDI,qword ptr [RSP + 0x28]
TEST RDI,RDI
JZ 0x00164e83
CALL 0x00142d00
LAB_00164e83:
MOV RDI,qword ptr [RSP]
CMP RDI,R15
JZ 0x00164e99
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001196b0
LAB_00164e99:
MOV RDI,RSP
LEA RSI,[RSP + 0x40]
CALL 0x00165cf4
MOV RAX,qword ptr [RSP]
MOV RSI,qword ptr [RSP + 0x8]
LEA RDX,[RSP + 0x20]
MOV qword ptr [RDX],RAX
LEA RCX,[RSP + 0x38]
MOV qword ptr [RCX],RAX
LEA R8,[RSP + 0x30]
MOV qword ptr [R8],RSI
LAB_00164ec7:
LEA RSI,[RSP + 0x40]
MOV RDI,RBX
MOV R9D,0x1
CALL 0x00168494
LAB_00164eda:
MOV RDI,RSP
CALL 0x0016988e
MOV RDI,qword ptr [RSP + 0x48]
TEST RDI,RDI
JZ 0x00164ef1
CALL 0x00142d00
LAB_00164ef1:
MOV RAX,RBX
ADD RSP,0x70
POP RBX
POP R14
POP R15
RET
|
/* minja::Parser::parse(std::__cxx11::string const&, minja::Options const&) */
Parser * __thiscall minja::Parser::parse(Parser *this,string *param_1,Options *param_2)
{
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Var1;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_88;
int8 local_80;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> local_78;
int7 uStack_77;
int8 uStack_70;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_68;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_60;
int8 local_58;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_50;
Parser local_48 [8];
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_40;
local_88 = &local_78;
std::__cxx11::string::_M_construct<char*>
(&local_88,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1);
local_68 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
/* try { // try from 00164dee to 00164df7 has its CatchHandler @ 00164f33 */
local_60 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)operator_new(0x30);
*(int8 *)(local_60 + 8) = 0x100000001;
*(int ***)local_60 = &PTR___Sp_counted_ptr_inplace_001ed3e0;
local_68 = local_60 + 0x10;
p_Var1 = local_60 + 0x20;
*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(local_60 + 0x10) = p_Var1;
if (local_88 == &local_78) {
*(ulong *)p_Var1 = CONCAT71(uStack_77,local_78);
*(int8 *)(local_60 + 0x28) = uStack_70;
}
else {
*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)local_68 = local_88;
*(ulong *)p_Var1 = CONCAT71(uStack_77,local_78);
}
*(int8 *)(local_60 + 0x18) = local_80;
local_80 = 0;
local_78 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>)0x0;
/* try { // try from 00164e67 to 00164e73 has its CatchHandler @ 00164f1f */
local_88 = &local_78;
Parser(local_48,(shared_ptr *)&local_68,param_2);
if (local_60 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_60);
}
if (local_88 != &local_78) {
operator_delete(local_88,CONCAT71(uStack_77,local_78) + 1);
}
/* try { // try from 00164e99 to 00164ea5 has its CatchHandler @ 00164f0b */
tokenize();
local_68 = local_88;
local_50 = local_88;
local_58 = local_80;
/* try { // try from 00164ec7 to 00164ed9 has its CatchHandler @ 00164efe */
parseTemplate(this,local_48,(__normal_iterator *)&local_68,SUB81(&local_50,0));
std::
vector<std::unique_ptr<minja::TemplateToken,std::default_delete<minja::TemplateToken>>,std::allocator<std::unique_ptr<minja::TemplateToken,std::default_delete<minja::TemplateToken>>>>
::~vector((vector<std::unique_ptr<minja::TemplateToken,std::default_delete<minja::TemplateToken>>,std::allocator<std::unique_ptr<minja::TemplateToken,std::default_delete<minja::TemplateToken>>>>
*)&local_88);
if (local_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_40);
}
return this;
}
| |
22,394 | my_default_csname | eloqsql/mysys/charset.c | const char* my_default_csname()
{
const char* csname = NULL;
#ifdef _WIN32
char cpbuf[64];
int cp = GetConsoleCP();
if (cp == 0)
cp = GetACP();
snprintf(cpbuf, sizeof(cpbuf), "cp%d", (int)cp);
csname = my_os_charset_to_mysql_charset(cpbuf);
#elif defined(HAVE_SETLOCALE) && defined(HAVE_NL_LANGINFO)
if (setlocale(LC_CTYPE, "") && (csname = nl_langinfo(CODESET)))
csname = my_os_charset_to_mysql_charset(csname);
#endif
return csname ? csname : MYSQL_DEFAULT_CHARSET_NAME;
} | O3 | c | my_default_csname:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
leaq 0x40730(%rip), %rsi # 0x9bc52
xorl %r14d, %r14d
xorl %edi, %edi
callq 0x36820
testq %rax, %rax
je 0x5b57e
movl $0xe, %edi
callq 0x36790
testq %rax, %rax
je 0x5b57b
movq %rax, %rbx
leaq 0x3d94f(%rip), %rdi # 0x98e99
leaq 0x2d5f07(%rip), %r15 # 0x331458
xorl %r14d, %r14d
movq %rbx, %rsi
callq 0x36880
testl %eax, %eax
je 0x5b56e
movq (%r15), %rdi
addq $0x18, %r15
testq %rdi, %rdi
jne 0x5b554
jmp 0x5b57e
cmpl $0x2, -0x8(%r15)
jae 0x5b57b
movq -0x10(%r15), %r14
jmp 0x5b57e
xorl %r14d, %r14d
testq %r14, %r14
leaq 0x38e24(%rip), %rax # 0x943ac
cmovneq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| my_default_csname:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
lea rsi, asc_9BC4E+4; ""
xor r14d, r14d
xor edi, edi
call _setlocale
test rax, rax
jz short loc_5B57E
mov edi, 0Eh
call _nl_langinfo
test rax, rax
jz short loc_5B57B
mov rbx, rax
lea rdi, a646; "646"
lea r15, off_331458; "ANSI_X3.4-1968"
xor r14d, r14d
loc_5B554:
mov rsi, rbx
call _strcasecmp
test eax, eax
jz short loc_5B56E
mov rdi, [r15]
add r15, 18h
test rdi, rdi
jnz short loc_5B554
jmp short loc_5B57E
loc_5B56E:
cmp dword ptr [r15-8], 2
jnb short loc_5B57B
mov r14, [r15-10h]
jmp short loc_5B57E
loc_5B57B:
xor r14d, r14d
loc_5B57E:
test r14, r14
lea rax, aLatin1; "latin1"
cmovnz rax, r14
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| const char *my_default_csname()
{
long long v0; // r14
long long v1; // rax
long long v2; // rbx
const char *v3; // rdi
const char **v4; // r15
const char *result; // rax
v0 = 0LL;
if ( setlocale(0LL, "") )
{
v1 = nl_langinfo(14LL);
if ( !v1 )
goto LABEL_9;
v2 = v1;
v3 = "646";
v4 = (const char **)off_331458;
v0 = 0LL;
while ( (unsigned int)strcasecmp(v3, v2) )
{
v3 = *v4;
v4 += 3;
if ( !v3 )
goto LABEL_10;
}
if ( *((_DWORD *)v4 - 2) < 2u )
v0 = (long long)*(v4 - 2);
else
LABEL_9:
v0 = 0LL;
}
LABEL_10:
result = "latin1";
if ( v0 )
return (const char *)v0;
return result;
}
| my_default_csname:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
LEA RSI,[0x19bc52]
XOR R14D,R14D
XOR EDI,EDI
CALL 0x00136820
TEST RAX,RAX
JZ 0x0015b57e
MOV EDI,0xe
CALL 0x00136790
TEST RAX,RAX
JZ 0x0015b57b
MOV RBX,RAX
LEA RDI,[0x198e99]
LEA R15,[0x431458]
XOR R14D,R14D
LAB_0015b554:
MOV RSI,RBX
CALL 0x00136880
TEST EAX,EAX
JZ 0x0015b56e
MOV RDI,qword ptr [R15]
ADD R15,0x18
TEST RDI,RDI
JNZ 0x0015b554
JMP 0x0015b57e
LAB_0015b56e:
CMP dword ptr [R15 + -0x8],0x2
JNC 0x0015b57b
MOV R14,qword ptr [R15 + -0x10]
JMP 0x0015b57e
LAB_0015b57b:
XOR R14D,R14D
LAB_0015b57e:
TEST R14,R14
LEA RAX,[0x1943ac]
CMOVNZ RAX,R14
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
char * my_default_csname(void)
{
int iVar1;
char *pcVar2;
char *__s1;
char *pcVar3;
long *plVar4;
pcVar3 = (char *)0x0;
pcVar2 = setlocale(0,"");
if (pcVar2 != (char *)0x0) {
pcVar2 = nl_langinfo(0xe);
if (pcVar2 == (char *)0x0) {
LAB_0015b57b:
pcVar3 = (char *)0x0;
}
else {
__s1 = "646";
plVar4 = (long *)(charsets + 0x18);
pcVar3 = (char *)0x0;
do {
iVar1 = strcasecmp(__s1,pcVar2);
if (iVar1 == 0) {
if (1 < *(uint *)(plVar4 + -1)) goto LAB_0015b57b;
pcVar3 = (char *)plVar4[-2];
break;
}
__s1 = (char *)*plVar4;
plVar4 = plVar4 + 3;
} while (__s1 != (char *)0x0);
}
}
pcVar2 = "latin1";
if (pcVar3 != (char *)0x0) {
pcVar2 = pcVar3;
}
return pcVar2;
}
| |
22,395 | mcp::sse_client::set_auth_token(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | hkr04[P]cpp-mcp/src/mcp_sse_client.cpp | void sse_client::set_auth_token(const std::string& token) {
std::lock_guard<std::mutex> lock(mutex_);
auth_token_ = token;
set_header("Authorization", "Bearer " + auth_token_);
} | O0 | cpp | mcp::sse_client::set_auth_token(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq 0x80(%rsp), %rsi
movq %rsi, 0x10(%rsp)
addq $0x128, %rsi # imm = 0x128
leaq 0x70(%rsp), %rdi
callq 0xeee0
movq 0x10(%rsp), %rdi
movq 0x78(%rsp), %rsi
addq $0xb0, %rdi
callq 0xb080
jmp 0x8155a
leaq 0x3f(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0xbe20
movq 0x8(%rsp), %rdx
leaq 0x51f85(%rip), %rsi # 0xd34fa
leaq 0x40(%rsp), %rdi
callq 0xf160
jmp 0x81581
movq 0x10(%rsp), %rdx
addq $0xb0, %rdx
leaq 0x51b84(%rip), %rsi # 0xd3118
leaq 0x18(%rsp), %rdi
callq 0x218f0
jmp 0x815a0
movq 0x10(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0x18(%rsp), %rdx
callq 0x81660
jmp 0x815b6
leaq 0x18(%rsp), %rdi
callq 0xbfb0
leaq 0x40(%rsp), %rdi
callq 0xbfb0
leaq 0x3f(%rsp), %rdi
callq 0xb8e0
leaq 0x70(%rsp), %rdi
callq 0xef90
addq $0x88, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
jmp 0x81642
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
jmp 0x81638
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
jmp 0x8162e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
leaq 0x18(%rsp), %rdi
callq 0xbfb0
leaq 0x40(%rsp), %rdi
callq 0xbfb0
leaq 0x3f(%rsp), %rdi
callq 0xb8e0
leaq 0x70(%rsp), %rdi
callq 0xef90
movq 0x68(%rsp), %rdi
callq 0xbe10
nopw %cs:(%rax,%rax)
| _ZN3mcp10sse_client14set_auth_tokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
sub rsp, 88h
mov [rsp+88h+var_8], rdi
mov [rsp+88h+var_10], rsi
mov rsi, [rsp+88h+var_8]
mov [rsp+88h+var_78], rsi; void *
add rsi, 128h
lea rdi, [rsp+88h+var_18]
call _ZNSt10lock_guardISt5mutexEC2ERS0_; std::lock_guard<std::mutex>::lock_guard(std::mutex&)
mov rdi, [rsp+88h+var_78]
mov rsi, [rsp+88h+var_10]
add rdi, 0B0h
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_8155A:
lea rdi, [rsp+88h+var_49]
mov qword ptr [rsp+88h+var_80], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, qword ptr [rsp+88h+var_80]
lea rsi, aProxyAuthoriza+6; "Authorization"
lea rdi, [rsp+88h+var_49+1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_81581:
mov rdx, [rsp+88h+var_78]
add rdx, 0B0h; int
lea rsi, aBearer; "Bearer "
lea rdi, [rsp+88h+var_70]; int
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&)
jmp short $+2
loc_815A0:
mov rdi, [rsp+88h+var_78]
lea rsi, [rsp+88h+var_49+1]
lea rdx, [rsp+88h+var_70]
call _ZN3mcp10sse_client10set_headerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_; mcp::sse_client::set_header(std::string const&,std::string const&)
jmp short $+2
loc_815B6:
lea rdi, [rsp+88h+var_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+88h+var_49+1]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+88h+var_49]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
lea rdi, [rsp+88h+var_18]
call _ZNSt10lock_guardISt5mutexED2Ev; std::lock_guard<std::mutex>::~lock_guard()
add rsp, 88h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_60], rcx
mov [rsp+arg_5C], eax
jmp short loc_81642
mov rcx, rax
mov eax, edx
mov [rsp+arg_60], rcx
mov [rsp+arg_5C], eax
jmp short loc_81638
mov rcx, rax
mov eax, edx
mov [rsp+arg_60], rcx
mov [rsp+arg_5C], eax
jmp short loc_8162E
mov rcx, rax
mov eax, edx
mov [rsp+arg_60], rcx
mov [rsp+arg_5C], eax
lea rdi, [rsp+arg_10]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_8162E:
lea rdi, [rsp+arg_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_81638:
lea rdi, [rsp+arg_37]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
loc_81642:
lea rdi, [rsp+arg_68]
call _ZNSt10lock_guardISt5mutexED2Ev; std::lock_guard<std::mutex>::~lock_guard()
mov rdi, [rsp+arg_60]
call __Unwind_Resume
| std::mutex ** mcp::sse_client::set_auth_token(long long a1, long long a2)
{
long long v2; // rsi
long long v3; // rdx
int v5[9]; // [rsp+18h] [rbp-70h] BYREF
int v6[12]; // [rsp+3Fh] [rbp-49h] BYREF
std::mutex *v7; // [rsp+70h] [rbp-18h] BYREF
long long v8; // [rsp+78h] [rbp-10h]
void *v9; // [rsp+80h] [rbp-8h]
v9 = (void *)a1;
v8 = a2;
std::lock_guard<std::mutex>::lock_guard(&v7, (std::mutex *)(a1 + 296));
v2 = v8;
std::string::operator=(a1 + 176, v8);
std::allocator<char>::allocator(v6, v2, v3);
std::string::basic_string<std::allocator<char>>((long long)v6 + 1, (long long)"Authorization", (long long)v6);
std::operator+<char>((long long)v5, (long long)"Bearer ", a1 + 176);
mcp::sse_client::set_header(a1, (char *)v6 + 1, v5);
std::string::~string(v5);
std::string::~string((char *)v6 + 1);
std::allocator<char>::~allocator(v6);
return std::lock_guard<std::mutex>::~lock_guard(&v7);
}
| set_auth_token:
SUB RSP,0x88
MOV qword ptr [RSP + 0x80],RDI
MOV qword ptr [RSP + 0x78],RSI
MOV RSI,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x10],RSI
ADD RSI,0x128
LEA RDI,[RSP + 0x70]
CALL 0x0010eee0
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x78]
ADD RDI,0xb0
LAB_00181553:
CALL 0x0010b080
JMP 0x0018155a
LAB_0018155a:
LEA RDI,[RSP + 0x3f]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x0010be20
MOV RDX,qword ptr [RSP + 0x8]
LAB_0018156e:
LEA RSI,[0x1d34fa]
LEA RDI,[RSP + 0x40]
CALL 0x0010f160
JMP 0x00181581
LAB_00181581:
MOV RDX,qword ptr [RSP + 0x10]
ADD RDX,0xb0
LAB_0018158d:
LEA RSI,[0x1d3118]
LEA RDI,[RSP + 0x18]
CALL 0x001218f0
JMP 0x001815a0
LAB_001815a0:
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[RSP + 0x40]
LEA RDX,[RSP + 0x18]
CALL 0x00181660
LAB_001815b4:
JMP 0x001815b6
LAB_001815b6:
LEA RDI,[RSP + 0x18]
CALL 0x0010bfb0
LEA RDI,[RSP + 0x40]
CALL 0x0010bfb0
LEA RDI,[RSP + 0x3f]
CALL 0x0010b8e0
LEA RDI,[RSP + 0x70]
CALL 0x0010ef90
ADD RSP,0x88
RET
|
/* mcp::sse_client::set_auth_token(std::__cxx11::string const&) */
void __thiscall mcp::sse_client::set_auth_token(sse_client *this,string *param_1)
{
string local_70 [39];
allocator local_49;
string local_48 [48];
lock_guard<std::mutex> local_18 [8];
string *local_10;
sse_client *local_8;
local_10 = param_1;
local_8 = this;
std::lock_guard<std::mutex>::lock_guard(local_18,(mutex *)(this + 0x128));
/* try { // try from 00181553 to 00181557 has its CatchHandler @ 001815e6 */
std::__cxx11::string::operator=((string *)(this + 0xb0),local_10);
std::allocator<char>::allocator();
/* try { // try from 0018156e to 0018157e has its CatchHandler @ 001815f6 */
std::__cxx11::string::string<std::allocator<char>>(local_48,"Authorization",&local_49);
/* try { // try from 0018158d to 0018159d has its CatchHandler @ 00181606 */
std::operator+((char *)local_70,(string *)"Bearer ");
/* try { // try from 001815a0 to 001815b3 has its CatchHandler @ 00181616 */
set_header(this,local_48,local_70);
std::__cxx11::string::~string(local_70);
std::__cxx11::string::~string(local_48);
std::allocator<char>::~allocator((allocator<char> *)&local_49);
std::lock_guard<std::mutex>::~lock_guard(local_18);
return;
}
| |
22,396 | mcp::tool_builder::with_object_param(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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&, bool) | hkr04[P]cpp-mcp/src/mcp_tool.cpp | tool_builder& tool_builder::with_object_param(const std::string& name,
const std::string& description,
const json& properties,
bool required) {
json param = {
{"type", "object"},
{"description", description},
{"properties", properties}
};
parameters_["properties"][name] = param;
if (required) {
required_params_.push_back(name);
}
return *this;
} | O3 | cpp | mcp::tool_builder::with_object_param(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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&, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp # imm = 0x118
movl %r8d, %ebp
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1107(%rip), %rsi # 0x56070
leaq 0x70(%rsp), %rdi
callq 0x113fa
leaq 0x88(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x137b(%rip), %rsi # 0x56305
callq 0x2d680
leaq 0x70(%rsp), %rsi
movq $0x0, 0x28(%rsi)
leaq 0xa0(%rsp), %r15
movl $0x2, %edx
movq %r15, %rdi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0xe7b6
leaq 0xb8(%rsp), %r15
movq $0x0, -0x8(%r15)
leaq 0x4ee7(%rip), %rsi # 0x59eba
leaq 0x40(%rsp), %rdi
callq 0x45192
leaq 0x58(%rsp), %rdi
movq $0x0, -0x8(%rdi)
movq %r13, %rsi
callq 0x2d56e
leaq 0x40(%rsp), %rsi
movq $0x0, 0x28(%rsi)
movl $0x2, %edx
movq %r15, %rdi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0xe7b6
leaq 0xd0(%rsp), %r15
movq $0x0, -0x8(%r15)
leaq 0x90a2(%rip), %rsi # 0x5e0d0
leaq 0xe8(%rsp), %rdi
callq 0x5277a
xorl %eax, %eax
leaq 0xe8(%rsp), %rsi
movq %rax, 0x10(%rsi)
movb $0x0, 0x18(%rsi)
movq %rax, 0x20(%rsi)
movq %r12, 0x28(%rsi)
movl $0x2, %edx
movq %r15, %rdi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0xe7b6
leaq 0xa0(%rsp), %rsi
movq $0x0, 0x40(%rsi)
leaq 0x10(%rsp), %rdi
movl $0x3, %edx
movl $0x1, %ecx
movl $0x2, %r8d
callq 0xe7b6
movl $0x30, %r15d
leaq (%rsp,%r15), %rdi
addq $0xa0, %rdi
callq 0xf998
addq $-0x18, %r15
cmpq $-0x18, %r15
jne 0x5509d
movl $0x18, %r15d
leaq (%rsp,%r15), %rdi
addq $0xe8, %rdi
callq 0xf998
addq $-0x18, %r15
cmpq $-0x18, %r15
jne 0x550bd
movl $0x18, %r15d
leaq (%rsp,%r15), %rdi
addq $0x40, %rdi
callq 0xf998
addq $-0x18, %r15
cmpq $-0x18, %r15
jne 0x550dd
movl $0x18, %r15d
leaq (%rsp,%r15), %rdi
addq $0x70, %rdi
callq 0xf998
addq $-0x18, %r15
cmpq $-0x18, %r15
jne 0x550fa
movq %rsp, %rdi
leaq 0x10(%rsp), %rsi
callq 0xe982
leaq 0x40(%rbx), %rdi
leaq 0x8fa7(%rip), %rsi # 0x5e0d0
callq 0xeb86
movq %rax, %r15
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0xf80e
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
callq 0x10f78
movb (%rax), %cl
movb (%rsp), %dl
movb %dl, (%rax)
movb %cl, (%rsp)
movq 0x8(%rax), %rcx
movq 0x8(%rsp), %rdx
movq %rdx, 0x8(%rax)
movq %rcx, 0x8(%rsp)
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x5518f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xa630
movq %rsp, %rdi
callq 0xf998
testb %bpl, %bpl
je 0x551a8
leaq 0x50(%rbx), %rdi
movq %r14, %rsi
callq 0x1e07a
leaq 0x10(%rsp), %rdi
callq 0xf998
movq %rbx, %rax
addq $0x118, %rsp # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x552d5
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xa630
jmp 0x552d5
movq %rax, %rbx
movl $0x30, %r14d
leaq (%rsp,%r14), %rdi
addq $0xa0, %rdi
callq 0xf998
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x551f3
xorl %ebp, %ebp
jmp 0x55217
movq %rax, %rbx
movb $0x1, %bpl
movl $0x18, %r14d
leaq (%rsp,%r14), %rdi
addq $0xe8, %rdi
callq 0xf998
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x5521d
jmp 0x55241
jmp 0x5523b
movq %rax, %rbx
movb $0x1, %bpl
movl $0x18, %r14d
leaq (%rsp,%r14), %rdi
addq $0x40, %rdi
callq 0xf998
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x55247
jmp 0x55277
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0xf998
jmp 0x55274
jmp 0x55271
movq %rax, %rbx
movb $0x1, %bpl
movl $0x18, %r14d
leaq (%rsp,%r14), %rdi
addq $0x70, %rdi
callq 0xf998
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x5527d
leaq 0xa0(%rsp), %r14
cmpq %r15, %r14
setne %al
andb %al, %bpl
cmpb $0x1, %bpl
jne 0x552e7
addq $-0x18, %r15
movq %r15, %rdi
callq 0xf998
cmpq %r14, %r15
jne 0x552ab
jmp 0x552e7
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
jmp 0x552e2
movq %rax, %rbx
jmp 0x552e7
movq %rax, %rbx
jmp 0x552dd
movq %rax, %rbx
movq %rsp, %rdi
callq 0xf998
leaq 0x10(%rsp), %rdi
callq 0xf998
movq %rbx, %rdi
callq 0xaa50
nop
| _ZN3mcp12tool_builder17with_object_paramERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS6_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 118h
mov ebp, r8d
mov r12, rcx
mov r13, rdx
mov r14, rsi
mov rbx, rdi
lea rsi, aType; "type"
lea rdi, [rsp+148h+var_D8]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA5_KcA5_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
lea rdi, [rsp+148h+var_C0]
mov qword ptr [rdi-8], 0
lea rsi, aObject; "object"
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA7_KcA7_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
lea rsi, [rsp+148h+var_D8]
mov qword ptr [rsi+28h], 0
lea r15, [rsp+148h+var_A8]
mov edx, 2
mov rdi, r15
mov ecx, 1
mov r8d, 2
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)
lea r15, [rsp+148h+var_90]
mov qword ptr [r15-8], 0
lea rsi, aDescription; "description"
lea rdi, [rsp+148h+var_108]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA12_KcA12_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
lea rdi, [rsp+148h+var_F0]
mov qword ptr [rdi-8], 0
mov rsi, r13
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRKS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
lea rsi, [rsp+148h+var_108]
mov qword ptr [rsi+28h], 0
mov edx, 2
mov rdi, r15
mov ecx, 1
mov r8d, 2
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)
lea r15, [rsp+148h+var_78]
mov qword ptr [r15-8], 0
lea rsi, aProperties; "properties"
lea rdi, [rsp+148h+var_60]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA11_KcA11_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
xor eax, eax
lea rsi, [rsp+148h+var_60]
mov [rsi+10h], rax
mov byte ptr [rsi+18h], 0
mov [rsi+20h], rax
mov [rsi+28h], r12
mov edx, 2
mov rdi, r15
mov ecx, 1
mov r8d, 2
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)
lea rsi, [rsp+148h+var_A8]
mov qword ptr [rsi+40h], 0
lea rdi, [rsp+148h+var_138]
mov edx, 3
mov ecx, 1
mov r8d, 2
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)
mov r15d, 30h ; '0'
loc_5509D:
lea rdi, [rsp+r15+148h+var_148]
add rdi, 0A0h
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()
add r15, 0FFFFFFFFFFFFFFE8h
cmp r15, 0FFFFFFFFFFFFFFE8h
jnz short loc_5509D
mov r15d, 18h
loc_550BD:
lea rdi, [rsp+r15+148h+var_148]
add rdi, 0E8h
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()
add r15, 0FFFFFFFFFFFFFFE8h
cmp r15, 0FFFFFFFFFFFFFFE8h
jnz short loc_550BD
mov r15d, 18h
loc_550DD:
lea rdi, [rsp+r15+148h+var_148]
add rdi, 40h ; '@'
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()
add r15, 0FFFFFFFFFFFFFFE8h
cmp r15, 0FFFFFFFFFFFFFFE8h
jnz short loc_550DD
mov r15d, 18h
loc_550FA:
lea rdi, [rsp+r15+148h+var_148]
add rdi, 70h ; 'p'
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()
add r15, 0FFFFFFFFFFFFFFE8h
cmp r15, 0FFFFFFFFFFFFFFE8h
jnz short loc_550FA
mov rdi, rsp
lea rsi, [rsp+148h+var_138]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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> const&)
lea rdi, [rbx+40h]
lea rsi, aProperties; "properties"
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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[]<char const>(char const *)
mov r15, rax
lea r12, [rsp+148h+var_118]
mov [r12-10h], r12
mov rsi, [r14]
mov rdx, [r14+8]
add rdx, rsi
lea rdi, [rsp+148h+var_128]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rsi, [rsp+148h+var_128]
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[](std::string)
mov cl, [rax]
mov dl, [rsp+148h+var_148]
mov [rax], dl
mov [rsp+148h+var_148], cl
mov rcx, [rax+8]
mov rdx, [rsp+148h+var_140]
mov [rax+8], rdx
mov [rsp+148h+var_140], rcx
mov rdi, [rsp+148h+var_128]; void *
cmp rdi, r12
jz short loc_5518F
mov rsi, [rsp+148h+var_118]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5518F:
mov rdi, rsp
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()
test bpl, bpl
jz short loc_551A8
lea rdi, [rbx+50h]
mov rsi, r14
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_; std::vector<std::string>::push_back(std::string const&)
loc_551A8:
lea rdi, [rsp+148h+var_138]
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 rax, rbx
add rsp, 118h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_18]; void *
cmp rdi, r12
jz loc_552D5
mov rsi, [rsp+arg_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp loc_552D5
mov rbx, rax
mov r14d, 30h ; '0'
loc_551F3:
lea rdi, [rsp+r14+0]
add rdi, 0A0h
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()
add r14, 0FFFFFFFFFFFFFFE8h
cmp r14, 0FFFFFFFFFFFFFFE8h
jnz short loc_551F3
xor ebp, ebp
jmp short loc_55217
mov rbx, rax
mov bpl, 1
loc_55217:
mov r14d, 18h
loc_5521D:
lea rdi, [rsp+r14+0]
add rdi, 0E8h
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()
add r14, 0FFFFFFFFFFFFFFE8h
cmp r14, 0FFFFFFFFFFFFFFE8h
jnz short loc_5521D
jmp short loc_55241
jmp short $+2
loc_5523B:
mov rbx, rax
mov bpl, 1
loc_55241:
mov r14d, 18h
loc_55247:
lea rdi, [rsp+r14+0]
add rdi, 40h ; '@'
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()
add r14, 0FFFFFFFFFFFFFFE8h
cmp r14, 0FFFFFFFFFFFFFFE8h
jnz short loc_55247
jmp short loc_55277
mov rbx, rax
lea rdi, [rsp+arg_38]
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()
jmp short loc_55274
jmp short $+2
loc_55271:
mov rbx, rax
loc_55274:
mov bpl, 1
loc_55277:
mov r14d, 18h
loc_5527D:
lea rdi, [rsp+r14+0]
add rdi, 70h ; 'p'
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()
add r14, 0FFFFFFFFFFFFFFE8h
cmp r14, 0FFFFFFFFFFFFFFE8h
jnz short loc_5527D
lea r14, [rsp+arg_98]
cmp r14, r15
setnz al
and bpl, al
cmp bpl, 1
jnz short loc_552E7
loc_552AB:
add r15, 0FFFFFFFFFFFFFFE8h
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()
cmp r15, r14
jnz short loc_552AB
jmp short loc_552E7
mov rbx, rax
lea rdi, [rsp+arg_68]
jmp short loc_552E2
mov rbx, rax
jmp short loc_552E7
mov rbx, rax
jmp short loc_552DD
mov rbx, rax
loc_552D5:
mov rdi, rsp
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_552DD:
lea rdi, [rsp+arg_8]
loc_552E2:
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_552E7:
mov rdi, rbx
call __Unwind_Resume
| long long mcp::tool_builder::with_object_param(long long a1, long long a2, long long a3, long long a4, char a5)
{
long long i; // r15
long long j; // r15
long long k; // r15
long long m; // r15
long long v12; // r15
long long v13; // rax
char v14; // cl
long long v15; // rcx
_BYTE v17[8]; // [rsp+0h] [rbp-148h] BYREF
long long v18; // [rsp+8h] [rbp-140h]
unsigned __int8 v19[16]; // [rsp+10h] [rbp-138h] BYREF
void *v20[2]; // [rsp+20h] [rbp-128h] BYREF
_QWORD v21[2]; // [rsp+30h] [rbp-118h] BYREF
_BYTE v22[16]; // [rsp+40h] [rbp-108h] BYREF
long long v23; // [rsp+50h] [rbp-F8h]
_BYTE v24[16]; // [rsp+58h] [rbp-F0h] BYREF
long long v25; // [rsp+68h] [rbp-E0h]
_BYTE v26[16]; // [rsp+70h] [rbp-D8h] BYREF
long long v27; // [rsp+80h] [rbp-C8h]
_BYTE v28[16]; // [rsp+88h] [rbp-C0h] BYREF
long long v29; // [rsp+98h] [rbp-B0h]
_BYTE v30[16]; // [rsp+A0h] [rbp-A8h] BYREF
long long v31; // [rsp+B0h] [rbp-98h]
_BYTE v32[16]; // [rsp+B8h] [rbp-90h] BYREF
long long v33; // [rsp+C8h] [rbp-80h]
_BYTE v34[16]; // [rsp+D0h] [rbp-78h] BYREF
long long v35; // [rsp+E0h] [rbp-68h]
_BYTE v36[16]; // [rsp+E8h] [rbp-60h] BYREF
long long v37; // [rsp+F8h] [rbp-50h]
char v38; // [rsp+100h] [rbp-48h]
long long v39; // [rsp+108h] [rbp-40h]
long long v40; // [rsp+110h] [rbp-38h]
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA5_KcA5_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_(
(long long)v26,
(long long)"type");
v27 = 0LL;
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA7_KcA7_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_(
(long long)v28,
(long long)"object");
v29 = 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>::basic_json(
v30,
v26,
2LL,
1LL,
2LL);
v31 = 0LL;
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA12_KcA12_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_(
(long long)v22,
(long long)"description");
v23 = 0LL;
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRKS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_(
(long long)v24,
a3);
v25 = 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>::basic_json(
v32,
v22,
2LL,
1LL,
2LL);
v33 = 0LL;
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA11_KcA11_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_(
(long long)v36,
(long long)"properties");
v37 = 0LL;
v38 = 0;
v39 = 0LL;
v40 = a4;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(
v34,
v36,
2LL,
1LL,
2LL);
v35 = 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>::basic_json(
v19,
v30,
3LL,
1LL,
2LL);
for ( i = 48LL; i != -24; i -= 24LL )
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(&v30[i]);
for ( j = 24LL; j != -24; j -= 24LL )
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(&v36[j]);
for ( k = 24LL; k != -24; k -= 24LL )
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(&v22[k]);
for ( m = 24LL; m != -24; m -= 24LL )
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v26[m]);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
(long long)v17,
v19);
v12 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
a1 + 64,
(long long)"properties");
v20[0] = v21;
std::string::_M_construct<char *>((long long)v20, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8));
v13 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[](
v12,
v20);
v14 = *(_BYTE *)v13;
*(_BYTE *)v13 = v17[0];
v17[0] = v14;
v15 = *(_QWORD *)(v13 + 8);
*(_QWORD *)(v13 + 8) = v18;
v18 = v15;
if ( v20[0] != v21 )
operator delete(v20[0], v21[0] + 1LL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v17);
if ( a5 )
std::vector<std::string>::push_back(a1 + 80, 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>::data::~data(v19);
return a1;
}
| with_object_param:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x118
MOV EBP,R8D
MOV R12,RCX
MOV R13,RDX
MOV R14,RSI
MOV RBX,RDI
LAB_00154f62:
LEA RSI,[0x156070]
LEA RDI,[RSP + 0x70]
CALL 0x001113fa
LEA RDI,[RSP + 0x88]
MOV qword ptr [RDI + -0x8],0x0
LAB_00154f83:
LEA RSI,[0x156305]
CALL 0x0012d680
LEA RSI,[RSP + 0x70]
MOV qword ptr [RSI + 0x28],0x0
LAB_00154f9c:
LEA R15,[RSP + 0xa0]
MOV EDX,0x2
MOV RDI,R15
MOV ECX,0x1
MOV R8D,0x2
CALL 0x0010e7b6
LEA R15,[RSP + 0xb8]
MOV qword ptr [R15 + -0x8],0x0
LAB_00154fcc:
LEA RSI,[0x159eba]
LEA RDI,[RSP + 0x40]
CALL 0x00145192
LEA RDI,[RSP + 0x58]
MOV qword ptr [RDI + -0x8],0x0
LAB_00154fea:
MOV RSI,R13
CALL 0x0012d56e
LEA RSI,[RSP + 0x40]
MOV qword ptr [RSI + 0x28],0x0
LAB_00154fff:
MOV EDX,0x2
MOV RDI,R15
MOV ECX,0x1
MOV R8D,0x2
CALL 0x0010e7b6
LEA R15,[RSP + 0xd0]
MOV qword ptr [R15 + -0x8],0x0
LAB_00155027:
LEA RSI,[0x15e0d0]
LEA RDI,[RSP + 0xe8]
CALL 0x0015277a
XOR EAX,EAX
LEA RSI,[RSP + 0xe8]
MOV qword ptr [RSI + 0x10],RAX
MOV byte ptr [RSI + 0x18],0x0
MOV qword ptr [RSI + 0x20],RAX
MOV qword ptr [RSI + 0x28],R12
LAB_00155055:
MOV EDX,0x2
MOV RDI,R15
MOV ECX,0x1
MOV R8D,0x2
CALL 0x0010e7b6
LEA RSI,[RSP + 0xa0]
MOV qword ptr [RSI + 0x40],0x0
LAB_0015507d:
LEA RDI,[RSP + 0x10]
MOV EDX,0x3
MOV ECX,0x1
MOV R8D,0x2
CALL 0x0010e7b6
MOV R15D,0x30
LAB_0015509d:
LEA RDI,[RSP + R15*0x1]
ADD RDI,0xa0
CALL 0x0010f998
ADD R15,-0x18
CMP R15,-0x18
JNZ 0x0015509d
MOV R15D,0x18
LAB_001550bd:
LEA RDI,[RSP + R15*0x1]
ADD RDI,0xe8
CALL 0x0010f998
ADD R15,-0x18
CMP R15,-0x18
JNZ 0x001550bd
MOV R15D,0x18
LAB_001550dd:
LEA RDI,[RSP + R15*0x1]
ADD RDI,0x40
CALL 0x0010f998
ADD R15,-0x18
CMP R15,-0x18
JNZ 0x001550dd
MOV R15D,0x18
LAB_001550fa:
LEA RDI,[RSP + R15*0x1]
ADD RDI,0x70
CALL 0x0010f998
ADD R15,-0x18
CMP R15,-0x18
JNZ 0x001550fa
LAB_00155111:
MOV RDI,RSP
LEA RSI,[RSP + 0x10]
CALL 0x0010e982
LEA RDI,[RBX + 0x40]
LAB_00155122:
LEA RSI,[0x15e0d0]
CALL 0x0010eb86
MOV R15,RAX
LEA R12,[RSP + 0x30]
MOV qword ptr [R12 + -0x10],R12
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
ADD RDX,RSI
LEA RDI,[RSP + 0x20]
CALL 0x0010f80e
LAB_0015514f:
LEA RSI,[RSP + 0x20]
MOV RDI,R15
CALL 0x00110f78
MOV CL,byte ptr [RAX]
MOV DL,byte ptr [RSP]
MOV byte ptr [RAX],DL
MOV byte ptr [RSP],CL
MOV RCX,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x8],RDX
MOV qword ptr [RSP + 0x8],RCX
MOV RDI,qword ptr [RSP + 0x20]
CMP RDI,R12
JZ 0x0015518f
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0010a630
LAB_0015518f:
MOV RDI,RSP
CALL 0x0010f998
TEST BPL,BPL
JZ 0x001551a8
LEA RDI,[RBX + 0x50]
LAB_001551a0:
MOV RSI,R14
CALL 0x0011e07a
LAB_001551a8:
LEA RDI,[RSP + 0x10]
CALL 0x0010f998
MOV RAX,RBX
ADD RSP,0x118
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* mcp::tool_builder::with_object_param(std::__cxx11::string const&, std::__cxx11::string const&,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const&, bool) */
tool_builder * __thiscall
mcp::tool_builder::with_object_param
(tool_builder *this,string *param_1,string *param_2,basic_json *param_3,bool param_4)
{
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
bVar1;
int8 uVar2;
basic_json *pbVar3;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*pbVar4;
long lVar5;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_148 [8];
int8 local_140;
basic_json local_138 [16];
long *local_128 [2];
long local_118 [2];
data local_108 [16];
int8 local_f8;
int1 local_f0 [16];
int8 local_e0;
data local_d8 [16];
int8 local_c8;
int1 local_c0 [16];
int8 local_b0;
data local_a8 [16];
int8 local_98;
int1 local_90 [16];
int8 local_80;
int1 local_78 [16];
int8 local_68;
data local_60 [16];
int8 local_50;
int1 local_48;
int8 local_40;
basic_json *local_38;
/* try { // try from 00154f62 to 00154f72 has its CatchHandler @ 001552c8 */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA5_KcA5_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
(local_d8,&DAT_00156070);
local_c8 = 0;
/* try { // try from 00154f83 to 00154f8e has its CatchHandler @ 001552be */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA7_KcA7_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
(local_c0,"object");
local_b0 = 0;
/* try { // try from 00154f9c to 00154fbb has its CatchHandler @ 00155271 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_a8,local_d8,2,1,2);
local_98 = 0;
/* try { // try from 00154fcc to 00154fdc has its CatchHandler @ 0015526f */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA12_KcA12_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
(local_108,"description");
local_f8 = 0;
/* try { // try from 00154fea to 00154ff1 has its CatchHandler @ 00155260 */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRKS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
(local_f0,param_2);
local_e0 = 0;
/* try { // try from 00154fff to 00155016 has its CatchHandler @ 0015523b */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_108,2,1,2);
local_80 = 0;
/* try { // try from 00155027 to 0015503a has its CatchHandler @ 00155239 */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA11_KcA11_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
(local_60,"properties");
local_50 = 0;
local_48 = 0;
local_40 = 0;
local_38 = param_3;
/* try { // try from 00155055 to 0015506c has its CatchHandler @ 00155211 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_78,local_60,2,1,2);
local_68 = 0;
/* try { // try from 0015507d to 00155096 has its CatchHandler @ 001551ea */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_138,local_a8,3,1,2);
lVar5 = 0x30;
do {
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_a8 + lVar5);
lVar5 = lVar5 + -0x18;
} while (lVar5 != -0x18);
lVar5 = 0x18;
do {
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_60 + lVar5);
lVar5 = lVar5 + -0x18;
} while (lVar5 != -0x18);
lVar5 = 0x18;
do {
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_108 + lVar5);
lVar5 = lVar5 + -0x18;
} while (lVar5 != -0x18);
lVar5 = 0x18;
do {
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_d8 + lVar5);
lVar5 = lVar5 + -0x18;
} while (lVar5 != -0x18);
/* try { // try from 00155111 to 0015511d has its CatchHandler @ 001552cd */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_148,local_138);
/* try { // try from 00155122 to 0015514e has its CatchHandler @ 001552d2 */
pbVar3 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>
((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)(this + 0x40),"properties");
local_128[0] = local_118;
std::__cxx11::string::_M_construct<char*>
(local_128,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1);
/* try { // try from 0015514f to 0015515b has its CatchHandler @ 001551c7 */
pbVar4 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::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>
*)pbVar3,local_128);
bVar1 = *pbVar4;
*pbVar4 = local_148[0];
uVar2 = *(int8 *)(pbVar4 + 8);
*(int8 *)(pbVar4 + 8) = local_140;
local_148[0] = bVar1;
local_140 = uVar2;
if (local_128[0] != local_118) {
operator_delete(local_128[0],local_118[0] + 1);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_148);
if (param_4) {
/* try { // try from 001551a0 to 001551a7 has its CatchHandler @ 001552cd */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x50),
param_1);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_138);
return this;
}
| |
22,397 | nglog::LogDestination::MaybeLogToEmail(nglog::LogSeverity, char const*, unsigned long) | ng-log[P]ng-log/src/logging.cc | inline void LogDestination::MaybeLogToEmail(LogSeverity severity,
const char* message, size_t len) {
if (severity >= email_logging_severity_ || severity >= FLAGS_logemaillevel) {
string to(FLAGS_alsologtoemail);
if (!addresses_.empty()) {
if (!to.empty()) {
to += ",";
}
to += addresses_;
}
const string subject(string("[LOG] ") + LogSeverityNames[severity] + ": " +
tools::ProgramInvocationShortName());
string body(hostname());
body += "\n\n";
body.append(message, len);
// should NOT use SendEmail(). The caller of this function holds the
// log_mutex and SendEmail() calls LOG/VLOG which will block trying to
// acquire the log_mutex object. Use SendEmailInternal() and set
// use_logging to false.
SendEmailInternal(to.c_str(), subject.c_str(), body.c_str(), false);
}
} | O2 | cpp | nglog::LogDestination::MaybeLogToEmail(nglog::LogSeverity, char const*, unsigned long):
pushq %rbp
pushq %r14
pushq %rbx
subq $0xb0, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
cmpl %edi, 0x206ef(%rip) # 0x2e5b8
jbe 0xdeda
leaq 0x20b76(%rip), %rax # 0x2ea48
cmpl %ebp, (%rax)
jg 0xe013
leaq 0x1f6bf(%rip), %rax # 0x2d5a0
movq (%rax), %rsi
leaq 0x30(%rsp), %rdi
callq 0x77e0
cmpq $0x0, 0x20c82(%rip) # 0x2eb78
je 0xdf22
cmpq $0x0, 0x38(%rsp)
je 0xdf11
leaq 0x10c6a(%rip), %rsi # 0x1eb71
leaq 0x30(%rsp), %rdi
callq 0x7a80
leaq 0x20c58(%rip), %rsi # 0x2eb70
leaq 0x30(%rsp), %rdi
callq 0x7ab0
leaq 0x10c4a(%rip), %rsi # 0x1eb73
leaq 0x50(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x8e36
movl %ebp, %eax
leaq 0x1f69f(%rip), %rcx # 0x2d5e0
movq (%rcx,%rax,8), %rdx
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xe783
leaq 0x10ab0(%rip), %rdx # 0x1ea0b
leaq 0x10(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0xe783
callq 0x1c7e9
leaq 0x90(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movq %rax, %rdx
callq 0xe783
leaq 0x10(%rsp), %rdi
callq 0x7b38
leaq 0x70(%rsp), %rdi
callq 0x7b38
leaq 0x50(%rsp), %rdi
callq 0x7b38
callq 0x8f34
leaq 0x20be2(%rip), %rsi # 0x2eb90
leaq 0x10(%rsp), %rdi
callq 0x77e0
leaq 0x10bbb(%rip), %rsi # 0x1eb7a
leaq 0x10(%rsp), %rdi
callq 0x7a80
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x70c0
movq 0x30(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x10(%rsp), %rdx
xorl %ecx, %ecx
callq 0xa865
leaq 0x10(%rsp), %rdi
callq 0x7b38
leaq 0x90(%rsp), %rdi
callq 0x7b38
leaq 0x30(%rsp), %rdi
callq 0x7b38
addq $0xb0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
jmp 0xe042
movq %rax, %rbx
jmp 0xe04c
jmp 0xe02b
movq %rax, %rbx
jmp 0xe06d
movq %rax, %rbx
jmp 0xe060
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x7b38
leaq 0x70(%rsp), %rdi
callq 0x7b38
leaq 0x50(%rsp), %rdi
jmp 0xe068
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x7b38
leaq 0x90(%rsp), %rdi
callq 0x7b38
leaq 0x30(%rsp), %rdi
callq 0x7b38
movq %rbx, %rdi
callq 0x7a00
nop
| _ZN5nglog14LogDestination15MaybeLogToEmailENS_11LogSeverityEPKcm:
push rbp
push r14
push rbx
sub rsp, 0B0h
mov rbx, rdx
mov r14, rsi
mov ebp, edi
cmp cs:_ZN5nglog14LogDestination23email_logging_severity_E, edi; nglog::LogDestination::email_logging_severity_
jbe short loc_DEDA
lea rax, _ZN3fLI19FLAGS_logemaillevelE; fLI::FLAGS_logemaillevel
cmp [rax], ebp
jg loc_E013
loc_DEDA:
lea rax, _ZN3fLS20FLAGS_alsologtoemailB5cxx11E; fLS::FLAGS_alsologtoemail
mov rsi, [rax]
lea rdi, [rsp+0C8h+var_98]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
cmp cs:qword_2EB78, 0
jz short loc_DF22
cmp [rsp+0C8h+var_90], 0
jz short loc_DF11
lea rsi, asc_1EB71; ","
lea rdi, [rsp+0C8h+var_98]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
loc_DF11:
lea rsi, _ZN5nglog14LogDestination10addresses_B5cxx11E; nglog::LogDestination::addresses_
lea rdi, [rsp+0C8h+var_98]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&)
loc_DF22:
lea rsi, aLog_0; "[LOG] "
lea rdi, [rsp+0C8h+var_78]
lea rdx, [rsp+0C8h+var_B9]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov eax, ebp
lea rcx, _ZN5nglogL16LogSeverityNamesE; nglog::LogSeverityNames
mov rdx, [rcx+rax*8]
lea rdi, [rsp+0C8h+var_58]
lea rsi, [rsp+0C8h+var_78]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
lea rdx, aRunningDuratio+1Ah; ": "
lea rdi, [rsp+0C8h+var_B8]; this
lea rsi, [rsp+0C8h+var_58]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
call _ZN5nglog5tools26ProgramInvocationShortNameEv; nglog::tools::ProgramInvocationShortName(void)
lea rdi, [rsp+0C8h+var_38]
lea rsi, [rsp+0C8h+var_B8]
mov rdx, rax
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
lea rdi, [rsp+0C8h+var_B8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0C8h+var_58]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0C8h+var_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
call _ZN5nglog14LogDestination8hostnameB5cxx11Ev; nglog::LogDestination::hostname(void)
lea rsi, _ZN5nglog14LogDestination9hostname_B5cxx11E; nglog::LogDestination::hostname_
lea rdi, [rsp+0C8h+var_B8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
lea rsi, asc_1EB7A; "\n\n"
lea rdi, [rsp+0C8h+var_B8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rdi, [rsp+0C8h+var_B8]
mov rsi, r14
mov rdx, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong)
mov rdi, [rsp+0C8h+var_98]; this
mov rsi, [rsp+0C8h+var_38]; char *
mov rdx, [rsp+0C8h+var_B8]; char *
xor ecx, ecx; char *
call _ZN5nglogL17SendEmailInternalEPKcS1_S1_b; nglog::SendEmailInternal(char const*,char const*,char const*,bool)
lea rdi, [rsp+0C8h+var_B8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0C8h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0C8h+var_98]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_E013:
add rsp, 0B0h
pop rbx
pop r14
pop rbp
retn
mov rbx, rax
jmp short loc_E042
mov rbx, rax
jmp short loc_E04C
jmp short $+2
loc_E02B:
mov rbx, rax
jmp short loc_E06D
mov rbx, rax
jmp short loc_E060
mov rbx, rax
lea rdi, [rsp+arg_8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_E042:
lea rdi, [rsp+arg_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_E04C:
lea rdi, [rsp+arg_48]
jmp short loc_E068
mov rbx, rax
lea rdi, [rsp+arg_8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_E060:
lea rdi, [rsp+arg_88]; void *
loc_E068:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_E06D:
lea rdi, [rsp+arg_28]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx
call __Unwind_Resume
| void nglog::LogDestination::MaybeLogToEmail(unsigned int a1, long long a2, long long a3)
{
long long v4; // rdx
long long v5; // rcx
long long v6; // r8
long long v7; // r9
long long v8; // rax
long long v9; // rdx
long long v10; // rcx
long long v11; // r8
long long v12; // r9
char *v13[4]; // [rsp+10h] [rbp-B8h] BYREF
nglog *v14[4]; // [rsp+30h] [rbp-98h] BYREF
_QWORD v15[4]; // [rsp+50h] [rbp-78h] BYREF
_BYTE v16[32]; // [rsp+70h] [rbp-58h] BYREF
char *v17[7]; // [rsp+90h] [rbp-38h] BYREF
if ( nglog::LogDestination::email_logging_severity_ <= a1 || fLI::FLAGS_logemaillevel <= (int)a1 )
{
std::string::basic_string(v14, &fLS::FLAGS_alsologtoemail_buf[abi:cxx11]);
if ( qword_2EB78 )
{
if ( v14[1] )
std::string::append(v14, ",", v4, v5, v6, v7);
std::string::append(v14, &nglog::LogDestination::addresses_[abi:cxx11]);
}
std::string::basic_string<std::allocator<char>>(v15, (long long)"[LOG] ");
std::operator+<char>(v16, v15, *(&nglog::LogSeverityNames + a1));
std::operator+<char>(v13, v16, ": ");
v8 = nglog::tools::ProgramInvocationShortName((nglog::tools *)v13);
std::operator+<char>(v17, v13, v8);
std::string::~string(v13);
std::string::~string(v16);
std::string::~string(v15);
nglog::LogDestination::hostname[abi:cxx11]();
std::string::basic_string(v13, &nglog::LogDestination::hostname_[abi:cxx11]);
std::string::append(v13, "\n\n", v9, v10, v11, v12);
std::string::append(v13, a2, a3);
nglog::SendEmailInternal(v14[0], v17[0], (long long)v13[0], 0LL);
std::string::~string(v13);
std::string::~string(v17);
std::string::~string(v14);
}
}
| MaybeLogToEmail:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0xb0
MOV RBX,RDX
MOV R14,RSI
MOV EBP,EDI
CMP dword ptr [0x0012e5b8],EDI
JBE 0x0010deda
LEA RAX,[0x12ea48]
CMP dword ptr [RAX],EBP
JG 0x0010e013
LAB_0010deda:
LEA RAX,[0x12d5a0]
MOV RSI,qword ptr [RAX]
LEA RDI,[RSP + 0x30]
CALL 0x001077e0
CMP qword ptr [0x0012eb78],0x0
JZ 0x0010df22
CMP qword ptr [RSP + 0x38],0x0
JZ 0x0010df11
LAB_0010df00:
LEA RSI,[0x11eb71]
LEA RDI,[RSP + 0x30]
CALL 0x00107a80
LAB_0010df11:
LEA RSI,[0x12eb70]
LEA RDI,[RSP + 0x30]
CALL 0x00107ab0
LAB_0010df22:
LEA RSI,[0x11eb73]
LEA RDI,[RSP + 0x50]
LEA RDX,[RSP + 0xf]
CALL 0x00108e36
MOV EAX,EBP
LEA RCX,[0x12d5e0]
MOV RDX,qword ptr [RCX + RAX*0x8]
LAB_0010df45:
LEA RDI,[RSP + 0x70]
LEA RSI,[RSP + 0x50]
CALL 0x0010e783
LAB_0010df54:
LEA RDX,[0x11ea0b]
LEA RDI,[RSP + 0x10]
LEA RSI,[RSP + 0x70]
CALL 0x0010e783
LAB_0010df6a:
CALL 0x0011c7e9
LEA RDI,[RSP + 0x90]
LEA RSI,[RSP + 0x10]
MOV RDX,RAX
CALL 0x0010e783
LEA RDI,[RSP + 0x10]
CALL 0x00107b38
LEA RDI,[RSP + 0x70]
CALL 0x00107b38
LEA RDI,[RSP + 0x50]
CALL 0x00107b38
LAB_0010dfa2:
CALL 0x00108f34
LEA RSI,[0x12eb90]
LEA RDI,[RSP + 0x10]
CALL 0x001077e0
LAB_0010dfb8:
LEA RSI,[0x11eb7a]
LEA RDI,[RSP + 0x10]
CALL 0x00107a80
LEA RDI,[RSP + 0x10]
MOV RSI,R14
MOV RDX,RBX
CALL 0x001070c0
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x90]
MOV RDX,qword ptr [RSP + 0x10]
XOR ECX,ECX
CALL 0x0010a865
LAB_0010dff2:
LEA RDI,[RSP + 0x10]
CALL 0x00107b38
LEA RDI,[RSP + 0x90]
CALL 0x00107b38
LEA RDI,[RSP + 0x30]
CALL 0x00107b38
LAB_0010e013:
ADD RSP,0xb0
POP RBX
POP R14
POP RBP
RET
|
/* nglog::LogDestination::MaybeLogToEmail(nglog::LogSeverity, char const*, unsigned long) */
void nglog::LogDestination::MaybeLogToEmail(uint param_1,ulong param_2)
{
allocator local_b9;
char *local_b8 [4];
char *local_98;
long local_90;
string local_78 [32];
string local_58 [32];
char *local_38 [4];
if ((email_logging_severity_ <= param_1) || (fLI::FLAGS_logemaillevel <= (int)param_1)) {
std::__cxx11::string::string((string *)&local_98,(string *)fLS::FLAGS_alsologtoemail_abi_cxx11_)
;
if (addresses__abi_cxx11_._8_8_ != 0) {
if (local_90 != 0) {
/* try { // try from 0010df00 to 0010df21 has its CatchHandler @ 0010e02b */
std::__cxx11::string::append((char *)&local_98);
}
std::__cxx11::string::append((string *)&local_98);
}
/* try { // try from 0010df22 to 0010df37 has its CatchHandler @ 0010e029 */
std::__cxx11::string::string<std::allocator<char>>(local_78,"[LOG] ",&local_b9);
/* try { // try from 0010df45 to 0010df53 has its CatchHandler @ 0010e024 */
std::operator+(local_58,(char *)local_78);
/* try { // try from 0010df54 to 0010df69 has its CatchHandler @ 0010e01f */
std::operator+((string *)local_b8,(char *)local_58);
/* try { // try from 0010df6a to 0010df83 has its CatchHandler @ 0010e035 */
tools::ProgramInvocationShortName();
std::operator+((string *)local_38,(char *)local_b8);
std::__cxx11::string::~string((string *)local_b8);
std::__cxx11::string::~string(local_58);
std::__cxx11::string::~string(local_78);
/* try { // try from 0010dfa2 to 0010dfb7 has its CatchHandler @ 0010e030 */
hostname_abi_cxx11_();
std::__cxx11::string::string((string *)local_b8,(string *)hostname__abi_cxx11_);
/* try { // try from 0010dfb8 to 0010dff1 has its CatchHandler @ 0010e053 */
std::__cxx11::string::append((char *)local_b8);
std::__cxx11::string::append((char *)local_b8,param_2);
SendEmailInternal(local_98,local_38[0],local_b8[0],false);
std::__cxx11::string::~string((string *)local_b8);
std::__cxx11::string::~string((string *)local_38);
std::__cxx11::string::~string((string *)&local_98);
}
return;
}
| |
22,398 | mbedtls_pem_write_buffer | msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/pem.c | int mbedtls_pem_write_buffer(const char *header, const char *footer,
const unsigned char *der_data, size_t der_len,
unsigned char *buf, size_t buf_len, size_t *olen)
{
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
unsigned char *encode_buf = NULL, *c, *p = buf;
size_t len = 0, use_len, add_len = 0;
mbedtls_base64_encode(NULL, 0, &use_len, der_data, der_len);
add_len = strlen(header) + strlen(footer) + (use_len / 64) + 1;
if (use_len + add_len > buf_len) {
*olen = use_len + add_len;
return MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL;
}
if (use_len != 0 &&
((encode_buf = mbedtls_calloc(1, use_len)) == NULL)) {
return MBEDTLS_ERR_PEM_ALLOC_FAILED;
}
if ((ret = mbedtls_base64_encode(encode_buf, use_len, &use_len, der_data,
der_len)) != 0) {
mbedtls_free(encode_buf);
return ret;
}
memcpy(p, header, strlen(header));
p += strlen(header);
c = encode_buf;
while (use_len) {
len = (use_len > 64) ? 64 : use_len;
memcpy(p, c, len);
use_len -= len;
p += len;
c += len;
*p++ = '\n';
}
memcpy(p, footer, strlen(footer));
p += strlen(footer);
*p++ = '\0';
*olen = p - buf;
/* Clean any remaining data previously written to the buffer */
memset(buf + *olen, 0, buf_len - *olen);
mbedtls_free(encode_buf);
return 0;
} | O3 | c | mbedtls_pem_write_buffer:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, %r15
movq %r8, 0x28(%rsp)
movq %rcx, %rbp
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x10(%rsp), %r12
xorl %edi, %edi
xorl %esi, %esi
movq %r12, %rdx
movq %r14, %rcx
movq %rbp, %r8
callq 0x99cb4
movq %rbx, 0x18(%rsp)
movq %rbx, %rdi
callq 0xf240
movq %rax, %rbx
movq %r13, 0x20(%rsp)
movq %r13, %rdi
callq 0xf240
movq (%r12), %r12
movq %r12, %rcx
shrq $0x6, %rcx
addq %rbx, %rax
addq %r12, %rax
addq %rcx, %rax
incq %rax
movq %r15, 0x30(%rsp)
cmpq %r15, %rax
jbe 0x98873
movq 0x70(%rsp), %rcx
movq %rax, (%rcx)
movl $0xffffffd6, %ebp # imm = 0xFFFFFFD6
jmp 0x9898e
movq 0x70(%rsp), %rbx
testq %r12, %r12
je 0x9889c
movl $0x1, %edi
movq %r12, %rsi
callq 0xf2f0
movq %rax, %r15
testq %rax, %rax
jne 0x9889f
movl $0xffffee80, %ebp # imm = 0xFFFFEE80
jmp 0x9898e
xorl %r15d, %r15d
leaq 0x10(%rsp), %rdx
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rcx
movq %rbp, %r8
callq 0x99cb4
testl %eax, %eax
je 0x988c3
movl %eax, %ebp
movq %r15, %rdi
jmp 0x98989
movq %r15, 0x8(%rsp)
movq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0xf240
movq 0x28(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xf3a0
movq %r14, %rdi
callq 0xf240
movq %rax, %r14
addq %r15, %r14
movq 0x10(%rsp), %r13
testq %r13, %r13
je 0x98938
movq 0x8(%rsp), %r12
movq %rbx, %rbp
cmpq $0x40, %r13
movl $0x40, %ebx
cmovbq %r13, %rbx
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0xf3a0
addq %rbx, %r12
addq %rbx, %r14
incq %r14
movb $0xa, -0x1(%r14)
subq %rbx, %r13
jne 0x98908
jmp 0x9893b
movq %rbx, %rbp
movq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0xf240
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0xf3a0
movq %rbx, %rdi
callq 0xf240
leaq (%r14,%rax), %rdi
incq %rdi
movb $0x0, -0x1(%rdi)
movq %rdi, %rax
subq %r15, %rax
movq %rax, (%rbp)
movq 0x30(%rsp), %rdx
subq %rax, %rdx
xorl %ebp, %ebp
xorl %esi, %esi
callq 0xf2b0
movq 0x8(%rsp), %rdi
callq 0xf560
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| mbedtls_pem_write_buffer:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r15, r9
mov [rsp+68h+var_40], r8
mov rbp, rcx
mov r14, rdx
mov r13, rsi
mov rbx, rdi
lea r12, [rsp+68h+var_58]
xor edi, edi
xor esi, esi
mov rdx, r12
mov rcx, r14
mov r8, rbp
call mbedtls_base64_encode
mov [rsp+68h+var_50], rbx
mov rdi, rbx
call _strlen
mov rbx, rax
mov [rsp+68h+var_48], r13
mov rdi, r13
call _strlen
mov r12, [r12]
mov rcx, r12
shr rcx, 6
add rax, rbx
add rax, r12
add rax, rcx
inc rax
mov [rsp+68h+var_38], r15
cmp rax, r15
jbe short loc_98873
mov rcx, [rsp+68h+arg_0]
mov [rcx], rax
mov ebp, 0FFFFFFD6h
jmp loc_9898E
loc_98873:
mov rbx, [rsp+68h+arg_0]
test r12, r12
jz short loc_9889C
mov edi, 1
mov rsi, r12
call _calloc
mov r15, rax
test rax, rax
jnz short loc_9889F
mov ebp, 0FFFFEE80h
jmp loc_9898E
loc_9889C:
xor r15d, r15d
loc_9889F:
lea rdx, [rsp+68h+var_58]
mov rdi, r15
mov rsi, r12
mov rcx, r14
mov r8, rbp
call mbedtls_base64_encode
test eax, eax
jz short loc_988C3
mov ebp, eax
mov rdi, r15
jmp loc_98989
loc_988C3:
mov [rsp+68h+var_60], r15
mov r14, [rsp+68h+var_50]
mov rdi, r14
call _strlen
mov r15, [rsp+68h+var_40]
mov rdi, r15
mov rsi, r14
mov rdx, rax
call _memcpy
mov rdi, r14
call _strlen
mov r14, rax
add r14, r15
mov r13, [rsp+68h+var_58]
test r13, r13
jz short loc_98938
mov r12, [rsp+68h+var_60]
mov rbp, rbx
loc_98908:
cmp r13, 40h ; '@'
mov ebx, 40h ; '@'
cmovb rbx, r13
mov rdi, r14
mov rsi, r12
mov rdx, rbx
call _memcpy
add r12, rbx
add r14, rbx
inc r14
mov byte ptr [r14-1], 0Ah
sub r13, rbx
jnz short loc_98908
jmp short loc_9893B
loc_98938:
mov rbp, rbx
loc_9893B:
mov rbx, [rsp+68h+var_48]
mov rdi, rbx
call _strlen
mov rdi, r14
mov rsi, rbx
mov rdx, rax
call _memcpy
mov rdi, rbx
call _strlen
lea rdi, [r14+rax]
inc rdi
mov byte ptr [rdi-1], 0
mov rax, rdi
sub rax, r15
mov [rbp+0], rax
mov rdx, [rsp+68h+var_38]
sub rdx, rax
xor ebp, ebp
xor esi, esi
call _memset
mov rdi, [rsp+68h+var_60]
loc_98989:
call _free
loc_9898E:
mov eax, ebp
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long mbedtls_pem_write_buffer(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
unsigned long long a6,
unsigned long long *a7)
{
long long v10; // rdx
long long v11; // rcx
long long v12; // r8
long long v13; // r9
long long v14; // rbx
long long v15; // rdx
long long v16; // rcx
long long v17; // r8
long long v18; // r9
long long v19; // rax
unsigned long long v20; // r12
unsigned long long v21; // rax
unsigned int v22; // ebp
long long v23; // r15
unsigned int v24; // eax
long long v25; // rdx
long long v26; // rcx
long long v27; // r8
long long v28; // r9
long long v29; // rdi
long long v30; // r14
long long v31; // rax
long long v32; // r15
long long v33; // rsi
long long v34; // rdx
long long v35; // rcx
long long v36; // r8
long long v37; // r9
long long v38; // rdx
long long v39; // rcx
long long v40; // r8
long long v41; // r9
long long v42; // r14
unsigned long long v43; // r13
long long v44; // r12
unsigned long long *v45; // rbp
long long v46; // rbx
long long v47; // rbx
long long v48; // rax
long long v49; // rdx
long long v50; // rcx
long long v51; // r8
long long v52; // r9
long long v53; // rdi
long long v55; // [rsp+8h] [rbp-60h]
unsigned long long v56; // [rsp+10h] [rbp-58h] BYREF
long long v57; // [rsp+18h] [rbp-50h]
long long v58; // [rsp+20h] [rbp-48h]
long long v59; // [rsp+28h] [rbp-40h]
unsigned long long v60; // [rsp+30h] [rbp-38h]
v59 = a5;
mbedtls_base64_encode(0LL, 0LL, &v56, a3, a4);
v57 = a1;
v14 = strlen(a1, 0LL, v10, v11, v12, v13);
v58 = a2;
v19 = strlen(a2, 0LL, v15, v16, v17, v18);
v20 = v56;
v21 = (v20 >> 6) + v20 + v14 + v19 + 1;
v60 = a6;
if ( v21 <= a6 )
{
if ( v56 )
{
v23 = calloc(1LL, v56);
if ( !v23 )
return (unsigned int)-4480;
}
else
{
v23 = 0LL;
}
v24 = mbedtls_base64_encode(v23, v20, &v56, a3, a4);
if ( v24 )
{
v22 = v24;
v29 = v23;
}
else
{
v55 = v23;
v30 = v57;
v31 = strlen(v57, v20, v25, v26, v27, v28);
v32 = v59;
v33 = v30;
memcpy(v59, v30, v31);
v42 = v32 + strlen(v30, v30, v34, v35, v36, v37);
v43 = v56;
if ( v56 )
{
v44 = v55;
v45 = a7;
do
{
v46 = 64LL;
if ( v43 < 0x40 )
v46 = v43;
v33 = v44;
memcpy(v42, v44, v46);
v44 += v46;
v42 += v46 + 1;
*(_BYTE *)(v42 - 1) = 10;
v43 -= v46;
}
while ( v43 );
}
else
{
v45 = a7;
}
v47 = v58;
v48 = strlen(v58, v33, v38, v39, v40, v41);
memcpy(v42, v47, v48);
v53 = v42 + strlen(v47, v47, v49, v50, v51, v52) + 1;
*(_BYTE *)(v53 - 1) = 0;
*v45 = v53 - v32;
v22 = 0;
memset(v53, 0LL, v60 - (v53 - v32));
v29 = v55;
}
free(v29);
}
else
{
*a7 = v21;
return (unsigned int)-42;
}
return v22;
}
| mbedtls_pem_write_buffer:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R15,R9
MOV qword ptr [RSP + 0x28],R8
MOV RBP,RCX
MOV R14,RDX
MOV R13,RSI
MOV RBX,RDI
LEA R12,[RSP + 0x10]
XOR EDI,EDI
XOR ESI,ESI
MOV RDX,R12
MOV RCX,R14
MOV R8,RBP
CALL 0x00199cb4
MOV qword ptr [RSP + 0x18],RBX
MOV RDI,RBX
CALL 0x0010f240
MOV RBX,RAX
MOV qword ptr [RSP + 0x20],R13
MOV RDI,R13
CALL 0x0010f240
MOV R12,qword ptr [R12]
MOV RCX,R12
SHR RCX,0x6
ADD RAX,RBX
ADD RAX,R12
ADD RAX,RCX
INC RAX
MOV qword ptr [RSP + 0x30],R15
CMP RAX,R15
JBE 0x00198873
MOV RCX,qword ptr [RSP + 0x70]
MOV qword ptr [RCX],RAX
MOV EBP,0xffffffd6
JMP 0x0019898e
LAB_00198873:
MOV RBX,qword ptr [RSP + 0x70]
TEST R12,R12
JZ 0x0019889c
MOV EDI,0x1
MOV RSI,R12
CALL 0x0010f2f0
MOV R15,RAX
TEST RAX,RAX
JNZ 0x0019889f
MOV EBP,0xffffee80
JMP 0x0019898e
LAB_0019889c:
XOR R15D,R15D
LAB_0019889f:
LEA RDX,[RSP + 0x10]
MOV RDI,R15
MOV RSI,R12
MOV RCX,R14
MOV R8,RBP
CALL 0x00199cb4
TEST EAX,EAX
JZ 0x001988c3
MOV EBP,EAX
MOV RDI,R15
JMP 0x00198989
LAB_001988c3:
MOV qword ptr [RSP + 0x8],R15
MOV R14,qword ptr [RSP + 0x18]
MOV RDI,R14
CALL 0x0010f240
MOV R15,qword ptr [RSP + 0x28]
MOV RDI,R15
MOV RSI,R14
MOV RDX,RAX
CALL 0x0010f3a0
MOV RDI,R14
CALL 0x0010f240
MOV R14,RAX
ADD R14,R15
MOV R13,qword ptr [RSP + 0x10]
TEST R13,R13
JZ 0x00198938
MOV R12,qword ptr [RSP + 0x8]
MOV RBP,RBX
LAB_00198908:
CMP R13,0x40
MOV EBX,0x40
CMOVC RBX,R13
MOV RDI,R14
MOV RSI,R12
MOV RDX,RBX
CALL 0x0010f3a0
ADD R12,RBX
ADD R14,RBX
INC R14
MOV byte ptr [R14 + -0x1],0xa
SUB R13,RBX
JNZ 0x00198908
JMP 0x0019893b
LAB_00198938:
MOV RBP,RBX
LAB_0019893b:
MOV RBX,qword ptr [RSP + 0x20]
MOV RDI,RBX
CALL 0x0010f240
MOV RDI,R14
MOV RSI,RBX
MOV RDX,RAX
CALL 0x0010f3a0
MOV RDI,RBX
CALL 0x0010f240
LEA RDI,[R14 + RAX*0x1]
INC RDI
MOV byte ptr [RDI + -0x1],0x0
MOV RAX,RDI
SUB RAX,R15
MOV qword ptr [RBP],RAX
MOV RDX,qword ptr [RSP + 0x30]
SUB RDX,RAX
XOR EBP,EBP
XOR ESI,ESI
CALL 0x0010f2b0
MOV RDI,qword ptr [RSP + 0x8]
LAB_00198989:
CALL 0x0010f560
LAB_0019898e:
MOV EAX,EBP
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int mbedtls_pem_write_buffer
(char *param_1,char *param_2,int8 param_3,int8 param_4,void *param_5,
ulong param_6,ulong *param_7)
{
char *pcVar1;
void *pvVar2;
int iVar3;
size_t sVar4;
size_t sVar5;
ulong uVar6;
void *__ptr;
ulong uVar7;
void *__src;
int1 *puVar8;
int1 *puVar9;
ulong local_58;
char *local_50;
char *local_48;
void *local_40;
ulong local_38;
local_40 = param_5;
mbedtls_base64_encode(0,0,&local_58,param_3,param_4);
local_50 = param_1;
sVar4 = strlen(param_1);
local_48 = param_2;
sVar5 = strlen(param_2);
uVar7 = local_58;
uVar6 = sVar5 + sVar4 + local_58 + (local_58 >> 6) + 1;
if (param_6 < uVar6) {
*param_7 = uVar6;
iVar3 = -0x2a;
}
else {
local_38 = param_6;
if (local_58 == 0) {
__ptr = (void *)0x0;
}
else {
__ptr = calloc(1,local_58);
if (__ptr == (void *)0x0) {
return -0x1180;
}
}
iVar3 = mbedtls_base64_encode(__ptr,uVar7,&local_58,param_3,param_4);
pcVar1 = local_50;
if (iVar3 == 0) {
sVar4 = strlen(local_50);
pvVar2 = local_40;
memcpy(local_40,pcVar1,sVar4);
sVar4 = strlen(pcVar1);
puVar8 = (int1 *)(sVar4 + (long)pvVar2);
__src = __ptr;
pcVar1 = local_48;
for (; local_48 = pcVar1, local_58 != 0; local_58 = local_58 - sVar4) {
sVar4 = 0x40;
if (local_58 < 0x40) {
sVar4 = local_58;
}
memcpy(puVar8,__src,sVar4);
__src = (void *)((long)__src + sVar4);
puVar9 = puVar8 + sVar4;
puVar8 = puVar9 + 1;
*puVar9 = 10;
pcVar1 = local_48;
}
sVar4 = strlen(pcVar1);
memcpy(puVar8,pcVar1,sVar4);
sVar4 = strlen(pcVar1);
puVar8 = puVar8 + sVar4;
*puVar8 = 0;
uVar7 = (long)(puVar8 + 1) - (long)pvVar2;
*param_7 = uVar7;
iVar3 = 0;
memset(puVar8 + 1,0,local_38 - uVar7);
}
free(__ptr);
}
return iVar3;
}
| |
22,399 | my_xml_leave | eloqsql/strings/xml.c | static int my_xml_leave(MY_XML_PARSER *p, const char *str, size_t slen)
{
char *e, *tag;
size_t glen;
char s[32];
char g[32];
int rc;
/* Find previous '/' or beginning */
for (e= p->attr.end; (e > p->attr.start) && (e[0] != '/') ; e--);
glen= (size_t) ((e[0] == '/') ? (p->attr.end - e - 1) : p->attr.end - e);
tag= e[0] == '/' ? e + 1 : e;
if (str && (slen != glen || memcmp(str, tag, slen)))
{
mstr(s,str,sizeof(s)-1,slen);
if (glen)
{
mstr(g, tag, sizeof(g)-1, glen);
sprintf(p->errstr,"'</%s>' unexpected ('</%s>' wanted)",s,g);
}
else
sprintf(p->errstr,"'</%s>' unexpected (END-OF-INPUT wanted)", s);
return MY_XML_ERROR;
}
if (p->flags & MY_XML_FLAG_RELATIVE_NAMES)
rc= p->leave_xml ? p->leave_xml(p, str, slen) : MY_XML_OK;
else
rc= (p->leave_xml ?
p->leave_xml(p, p->attr.start, p->attr.end - p->attr.start) :
MY_XML_OK);
*e='\0';
p->attr.end= e;
return rc;
} | O0 | c | my_xml_leave:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x60(%rbp)
movq %rsi, -0x68(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x60(%rbp), %rax
movq 0x120(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rcx
movq -0x60(%rbp), %rdx
xorl %eax, %eax
cmpq 0x118(%rdx), %rcx
movb %al, -0x8d(%rbp)
jbe 0xd688f
movq -0x78(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2f, %eax
setne %al
movb %al, -0x8d(%rbp)
movb -0x8d(%rbp), %al
testb $0x1, %al
jne 0xd689b
jmp 0xd68ab
jmp 0xd689d
movq -0x78(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x78(%rbp)
jmp 0xd6863
movq -0x78(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2f, %eax
jne 0xd68d6
movq -0x60(%rbp), %rax
movq 0x120(%rax), %rax
movq -0x78(%rbp), %rcx
subq %rcx, %rax
subq $0x1, %rax
movq %rax, -0x98(%rbp)
jmp 0xd68ef
movq -0x60(%rbp), %rax
movq 0x120(%rax), %rax
movq -0x78(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x78(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2f, %eax
jne 0xd691a
movq -0x78(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa0(%rbp)
jmp 0xd6925
movq -0x78(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x80(%rbp)
cmpq $0x0, -0x68(%rbp)
je 0xd69dd
movq -0x70(%rbp), %rax
cmpq -0x88(%rbp), %rax
jne 0xd695e
movq -0x68(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq -0x70(%rbp), %rdx
callq 0x38b10
cmpl $0x0, %eax
je 0xd69dd
leaq -0x30(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0x70(%rbp), %rcx
movl $0x1f, %edx
callq 0xd6f90
cmpq $0x0, -0x88(%rbp)
je 0xd69b7
leaq -0x50(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq -0x88(%rbp), %rcx
movl $0x1f, %edx
callq 0xd6f90
movq -0x60(%rbp), %rdi
addq $0x8, %rdi
leaq -0x30(%rbp), %rdx
leaq -0x50(%rbp), %rcx
leaq 0xfba7(%rip), %rsi # 0xe6555
movb $0x0, %al
callq 0x38a10
jmp 0xd69d1
movq -0x60(%rbp), %rdi
addq $0x8, %rdi
leaq -0x30(%rbp), %rdx
leaq 0xfbaf(%rip), %rsi # 0xe6579
movb $0x0, %al
callq 0x38a10
movl $0x1, -0x54(%rbp)
jmp 0xd6ab2
movq -0x60(%rbp), %rax
movl (%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xd6a32
movq -0x60(%rbp), %rax
cmpq $0x0, 0x158(%rax)
je 0xd6a1a
movq -0x60(%rbp), %rax
movq 0x158(%rax), %rax
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0x70(%rbp), %rdx
callq *%rax
movl %eax, -0xa4(%rbp)
jmp 0xd6a24
xorl %eax, %eax
movl %eax, -0xa4(%rbp)
jmp 0xd6a24
movl -0xa4(%rbp), %eax
movl %eax, -0x8c(%rbp)
jmp 0xd6a93
movq -0x60(%rbp), %rax
cmpq $0x0, 0x158(%rax)
je 0xd6a7d
movq -0x60(%rbp), %rax
movq 0x158(%rax), %rax
movq -0x60(%rbp), %rdi
movq -0x60(%rbp), %rcx
movq 0x118(%rcx), %rsi
movq -0x60(%rbp), %rcx
movq 0x120(%rcx), %rdx
movq -0x60(%rbp), %rcx
movq 0x118(%rcx), %rcx
subq %rcx, %rdx
callq *%rax
movl %eax, -0xa8(%rbp)
jmp 0xd6a87
xorl %eax, %eax
movl %eax, -0xa8(%rbp)
jmp 0xd6a87
movl -0xa8(%rbp), %eax
movl %eax, -0x8c(%rbp)
movq -0x78(%rbp), %rax
movb $0x0, (%rax)
movq -0x78(%rbp), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x120(%rax)
movl -0x8c(%rbp), %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
movl %eax, -0xac(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xd6adc
movl -0xac(%rbp), %eax
addq $0xb0, %rsp
popq %rbp
retq
callq 0x382c0
nopw %cs:(%rax,%rax)
| my_xml_leave:
push rbp
mov rbp, rsp
sub rsp, 0B0h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_60], rdi
mov [rbp+var_68], rsi
mov [rbp+var_70], rdx
mov rax, [rbp+var_60]
mov rax, [rax+120h]
mov [rbp+var_78], rax
loc_D6863:
mov rcx, [rbp+var_78]
mov rdx, [rbp+var_60]
xor eax, eax
cmp rcx, [rdx+118h]
mov [rbp+var_8D], al
jbe short loc_D688F
mov rax, [rbp+var_78]
movsx eax, byte ptr [rax]
cmp eax, 2Fh ; '/'
setnz al
mov [rbp+var_8D], al
loc_D688F:
mov al, [rbp+var_8D]
test al, 1
jnz short loc_D689B
jmp short loc_D68AB
loc_D689B:
jmp short $+2
loc_D689D:
mov rax, [rbp+var_78]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_78], rax
jmp short loc_D6863
loc_D68AB:
mov rax, [rbp+var_78]
movsx eax, byte ptr [rax]
cmp eax, 2Fh ; '/'
jnz short loc_D68D6
mov rax, [rbp+var_60]
mov rax, [rax+120h]
mov rcx, [rbp+var_78]
sub rax, rcx
sub rax, 1
mov [rbp+var_98], rax
jmp short loc_D68EF
loc_D68D6:
mov rax, [rbp+var_60]
mov rax, [rax+120h]
mov rcx, [rbp+var_78]
sub rax, rcx
mov [rbp+var_98], rax
loc_D68EF:
mov rax, [rbp+var_98]
mov [rbp+var_88], rax
mov rax, [rbp+var_78]
movsx eax, byte ptr [rax]
cmp eax, 2Fh ; '/'
jnz short loc_D691A
mov rax, [rbp+var_78]
add rax, 1
mov [rbp+var_A0], rax
jmp short loc_D6925
loc_D691A:
mov rax, [rbp+var_78]
mov [rbp+var_A0], rax
loc_D6925:
mov rax, [rbp+var_A0]
mov [rbp+var_80], rax
cmp [rbp+var_68], 0
jz loc_D69DD
mov rax, [rbp+var_70]
cmp rax, [rbp+var_88]
jnz short loc_D695E
mov rdi, [rbp+var_68]
mov rsi, [rbp+var_80]
mov rdx, [rbp+var_70]
call _memcmp
cmp eax, 0
jz short loc_D69DD
loc_D695E:
lea rdi, [rbp+var_30]
mov rsi, [rbp+var_68]
mov rcx, [rbp+var_70]
mov edx, 1Fh
call mstr_0
cmp [rbp+var_88], 0
jz short loc_D69B7
lea rdi, [rbp+var_50]
mov rsi, [rbp+var_80]
mov rcx, [rbp+var_88]
mov edx, 1Fh
call mstr_0
mov rdi, [rbp+var_60]
add rdi, 8
lea rdx, [rbp+var_30]
lea rcx, [rbp+var_50]
lea rsi, aSUnexpectedSWa; "'</%s>' unexpected ('</%s>' wanted)"
mov al, 0
call _sprintf
jmp short loc_D69D1
loc_D69B7:
mov rdi, [rbp+var_60]
add rdi, 8
lea rdx, [rbp+var_30]
lea rsi, aSUnexpectedEnd; "'</%s>' unexpected (END-OF-INPUT wanted"...
mov al, 0
call _sprintf
loc_D69D1:
mov [rbp+var_54], 1
jmp loc_D6AB2
loc_D69DD:
mov rax, [rbp+var_60]
mov eax, [rax]
and eax, 1
cmp eax, 0
jz short loc_D6A32
mov rax, [rbp+var_60]
cmp qword ptr [rax+158h], 0
jz short loc_D6A1A
mov rax, [rbp+var_60]
mov rax, [rax+158h]
mov rdi, [rbp+var_60]
mov rsi, [rbp+var_68]
mov rdx, [rbp+var_70]
call rax
mov [rbp+var_A4], eax
jmp short loc_D6A24
loc_D6A1A:
xor eax, eax
mov [rbp+var_A4], eax
jmp short $+2
loc_D6A24:
mov eax, [rbp+var_A4]
mov [rbp+var_8C], eax
jmp short loc_D6A93
loc_D6A32:
mov rax, [rbp+var_60]
cmp qword ptr [rax+158h], 0
jz short loc_D6A7D
mov rax, [rbp+var_60]
mov rax, [rax+158h]
mov rdi, [rbp+var_60]
mov rcx, [rbp+var_60]
mov rsi, [rcx+118h]
mov rcx, [rbp+var_60]
mov rdx, [rcx+120h]
mov rcx, [rbp+var_60]
mov rcx, [rcx+118h]
sub rdx, rcx
call rax
mov [rbp+var_A8], eax
jmp short loc_D6A87
loc_D6A7D:
xor eax, eax
mov [rbp+var_A8], eax
jmp short $+2
loc_D6A87:
mov eax, [rbp+var_A8]
mov [rbp+var_8C], eax
loc_D6A93:
mov rax, [rbp+var_78]
mov byte ptr [rax], 0
mov rcx, [rbp+var_78]
mov rax, [rbp+var_60]
mov [rax+120h], rcx
mov eax, [rbp+var_8C]
mov [rbp+var_54], eax
loc_D6AB2:
mov eax, [rbp+var_54]
mov [rbp+var_AC], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_D6ADC
mov eax, [rbp+var_AC]
add rsp, 0B0h
pop rbp
retn
loc_D6ADC:
call ___stack_chk_fail
| long long my_xml_leave(long long a1, long long a2, long long a3)
{
unsigned int v4; // [rsp+8h] [rbp-A8h]
unsigned int v5; // [rsp+Ch] [rbp-A4h]
_BYTE *v6; // [rsp+10h] [rbp-A0h]
long long v7; // [rsp+18h] [rbp-98h]
bool v8; // [rsp+23h] [rbp-8Dh]
unsigned int v9; // [rsp+24h] [rbp-8Ch]
_BYTE *i; // [rsp+38h] [rbp-78h]
char v13[32]; // [rsp+60h] [rbp-50h] BYREF
char v14[40]; // [rsp+80h] [rbp-30h] BYREF
unsigned long long v15; // [rsp+A8h] [rbp-8h]
v15 = __readfsqword(0x28u);
for ( i = *(_BYTE **)(a1 + 288); ; --i )
{
v8 = 0;
if ( (unsigned long long)i > *(_QWORD *)(a1 + 280) )
v8 = *i != 47;
if ( !v8 )
break;
}
if ( *i == 47 )
v7 = *(_QWORD *)(a1 + 288) - (_QWORD)i - 1LL;
else
v7 = *(_QWORD *)(a1 + 288) - (_QWORD)i;
if ( *i == 47 )
v6 = i + 1;
else
v6 = i;
if ( !a2 || a3 == v7 && !(unsigned int)memcmp(a2, v6, a3) )
{
if ( (*(_DWORD *)a1 & 1) != 0 )
{
if ( *(_QWORD *)(a1 + 344) )
v5 = (*(long long ( **)(long long, long long, long long))(a1 + 344))(a1, a2, a3);
else
v5 = 0;
v9 = v5;
}
else
{
if ( *(_QWORD *)(a1 + 344) )
v4 = (*(long long ( **)(long long, _QWORD, _QWORD))(a1 + 344))(
a1,
*(_QWORD *)(a1 + 280),
*(_QWORD *)(a1 + 288) - *(_QWORD *)(a1 + 280));
else
v4 = 0;
v9 = v4;
}
*i = 0;
*(_QWORD *)(a1 + 288) = i;
return v9;
}
else
{
mstr_0(v14, a2, 31LL, a3);
if ( v7 )
{
mstr_0(v13, v6, 31LL, v7);
sprintf(a1 + 8, "'</%s>' unexpected ('</%s>' wanted)", v14, v13);
}
else
{
sprintf(a1 + 8, "'</%s>' unexpected (END-OF-INPUT wanted)", v14);
}
return 1;
}
}
| my_xml_leave:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xb0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x60],RDI
MOV qword ptr [RBP + -0x68],RSI
MOV qword ptr [RBP + -0x70],RDX
MOV RAX,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RAX + 0x120]
MOV qword ptr [RBP + -0x78],RAX
LAB_001d6863:
MOV RCX,qword ptr [RBP + -0x78]
MOV RDX,qword ptr [RBP + -0x60]
XOR EAX,EAX
CMP RCX,qword ptr [RDX + 0x118]
MOV byte ptr [RBP + -0x8d],AL
JBE 0x001d688f
MOV RAX,qword ptr [RBP + -0x78]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2f
SETNZ AL
MOV byte ptr [RBP + -0x8d],AL
LAB_001d688f:
MOV AL,byte ptr [RBP + -0x8d]
TEST AL,0x1
JNZ 0x001d689b
JMP 0x001d68ab
LAB_001d689b:
JMP 0x001d689d
LAB_001d689d:
MOV RAX,qword ptr [RBP + -0x78]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x78],RAX
JMP 0x001d6863
LAB_001d68ab:
MOV RAX,qword ptr [RBP + -0x78]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2f
JNZ 0x001d68d6
MOV RAX,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RAX + 0x120]
MOV RCX,qword ptr [RBP + -0x78]
SUB RAX,RCX
SUB RAX,0x1
MOV qword ptr [RBP + -0x98],RAX
JMP 0x001d68ef
LAB_001d68d6:
MOV RAX,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RAX + 0x120]
MOV RCX,qword ptr [RBP + -0x78]
SUB RAX,RCX
MOV qword ptr [RBP + -0x98],RAX
LAB_001d68ef:
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0x88],RAX
MOV RAX,qword ptr [RBP + -0x78]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2f
JNZ 0x001d691a
MOV RAX,qword ptr [RBP + -0x78]
ADD RAX,0x1
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x001d6925
LAB_001d691a:
MOV RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0xa0],RAX
LAB_001d6925:
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x80],RAX
CMP qword ptr [RBP + -0x68],0x0
JZ 0x001d69dd
MOV RAX,qword ptr [RBP + -0x70]
CMP RAX,qword ptr [RBP + -0x88]
JNZ 0x001d695e
MOV RDI,qword ptr [RBP + -0x68]
MOV RSI,qword ptr [RBP + -0x80]
MOV RDX,qword ptr [RBP + -0x70]
CALL 0x00138b10
CMP EAX,0x0
JZ 0x001d69dd
LAB_001d695e:
LEA RDI,[RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x70]
MOV EDX,0x1f
CALL 0x001d6f90
CMP qword ptr [RBP + -0x88],0x0
JZ 0x001d69b7
LEA RDI,[RBP + -0x50]
MOV RSI,qword ptr [RBP + -0x80]
MOV RCX,qword ptr [RBP + -0x88]
MOV EDX,0x1f
CALL 0x001d6f90
MOV RDI,qword ptr [RBP + -0x60]
ADD RDI,0x8
LEA RDX,[RBP + -0x30]
LEA RCX,[RBP + -0x50]
LEA RSI,[0x1e6555]
MOV AL,0x0
CALL 0x00138a10
JMP 0x001d69d1
LAB_001d69b7:
MOV RDI,qword ptr [RBP + -0x60]
ADD RDI,0x8
LEA RDX,[RBP + -0x30]
LEA RSI,[0x1e6579]
MOV AL,0x0
CALL 0x00138a10
LAB_001d69d1:
MOV dword ptr [RBP + -0x54],0x1
JMP 0x001d6ab2
LAB_001d69dd:
MOV RAX,qword ptr [RBP + -0x60]
MOV EAX,dword ptr [RAX]
AND EAX,0x1
CMP EAX,0x0
JZ 0x001d6a32
MOV RAX,qword ptr [RBP + -0x60]
CMP qword ptr [RAX + 0x158],0x0
JZ 0x001d6a1a
MOV RAX,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RAX + 0x158]
MOV RDI,qword ptr [RBP + -0x60]
MOV RSI,qword ptr [RBP + -0x68]
MOV RDX,qword ptr [RBP + -0x70]
CALL RAX
MOV dword ptr [RBP + -0xa4],EAX
JMP 0x001d6a24
LAB_001d6a1a:
XOR EAX,EAX
MOV dword ptr [RBP + -0xa4],EAX
JMP 0x001d6a24
LAB_001d6a24:
MOV EAX,dword ptr [RBP + -0xa4]
MOV dword ptr [RBP + -0x8c],EAX
JMP 0x001d6a93
LAB_001d6a32:
MOV RAX,qword ptr [RBP + -0x60]
CMP qword ptr [RAX + 0x158],0x0
JZ 0x001d6a7d
MOV RAX,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RAX + 0x158]
MOV RDI,qword ptr [RBP + -0x60]
MOV RCX,qword ptr [RBP + -0x60]
MOV RSI,qword ptr [RCX + 0x118]
MOV RCX,qword ptr [RBP + -0x60]
MOV RDX,qword ptr [RCX + 0x120]
MOV RCX,qword ptr [RBP + -0x60]
MOV RCX,qword ptr [RCX + 0x118]
SUB RDX,RCX
CALL RAX
MOV dword ptr [RBP + -0xa8],EAX
JMP 0x001d6a87
LAB_001d6a7d:
XOR EAX,EAX
MOV dword ptr [RBP + -0xa8],EAX
JMP 0x001d6a87
LAB_001d6a87:
MOV EAX,dword ptr [RBP + -0xa8]
MOV dword ptr [RBP + -0x8c],EAX
LAB_001d6a93:
MOV RAX,qword ptr [RBP + -0x78]
MOV byte ptr [RAX],0x0
MOV RCX,qword ptr [RBP + -0x78]
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x120],RCX
MOV EAX,dword ptr [RBP + -0x8c]
MOV dword ptr [RBP + -0x54],EAX
LAB_001d6ab2:
MOV EAX,dword ptr [RBP + -0x54]
MOV dword ptr [RBP + -0xac],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001d6adc
MOV EAX,dword ptr [RBP + -0xac]
ADD RSP,0xb0
POP RBP
RET
LAB_001d6adc:
CALL 0x001382c0
|
int4 my_xml_leave(uint *param_1,void *param_2,size_t param_3)
{
int iVar1;
long in_FS_OFFSET;
bool bVar2;
int4 local_b0;
int4 local_ac;
char *local_a8;
size_t local_a0;
int4 local_94;
char *local_80;
int4 local_5c;
int1 local_58 [32];
int1 local_38 [40];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_80 = *(char **)(param_1 + 0x48);
while( true ) {
bVar2 = false;
if (*(char **)(param_1 + 0x46) < local_80) {
bVar2 = *local_80 != '/';
}
if (!bVar2) break;
local_80 = local_80 + -1;
}
if (*local_80 == '/') {
local_a0 = (*(long *)(param_1 + 0x48) - (long)local_80) - 1;
}
else {
local_a0 = *(long *)(param_1 + 0x48) - (long)local_80;
}
if (*local_80 == '/') {
local_a8 = local_80 + 1;
}
else {
local_a8 = local_80;
}
if (param_2 == (void *)0x0) {
LAB_001d69dd:
if ((*param_1 & 1) == 0) {
if (*(long *)(param_1 + 0x56) == 0) {
local_b0 = 0;
}
else {
local_b0 = (**(code **)(param_1 + 0x56))
(param_1,*(int8 *)(param_1 + 0x46),
*(long *)(param_1 + 0x48) - *(long *)(param_1 + 0x46));
}
local_94 = local_b0;
}
else {
if (*(long *)(param_1 + 0x56) == 0) {
local_ac = 0;
}
else {
local_ac = (**(code **)(param_1 + 0x56))(param_1,param_2,param_3);
}
local_94 = local_ac;
}
*local_80 = '\0';
*(char **)(param_1 + 0x48) = local_80;
local_5c = local_94;
}
else {
if (param_3 == local_a0) {
iVar1 = memcmp(param_2,local_a8,param_3);
if (iVar1 == 0) goto LAB_001d69dd;
}
mstr(local_38,param_2,0x1f,param_3);
if (local_a0 == 0) {
sprintf((char *)(param_1 + 2),"\'</%s>\' unexpected (END-OF-INPUT wanted)",local_38);
}
else {
mstr(local_58,local_a8,0x1f,local_a0);
sprintf((char *)(param_1 + 2),"\'</%s>\' unexpected (\'</%s>\' wanted)",local_38,local_58);
}
local_5c = 1;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_5c;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
Subsets and Splits
C++ Functions Using STL
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ STL Function Queries
Filters C++ code examples that use standard library containers and algorithms, helping identify common programming patterns and library usage in code generation tasks.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.